Datasets and Benchmarks
Collection
A collection of the released datasets, tokenizer training split and evaluated benchmarks for the ObscuraCoder paper. • 4 items • Updated
content stringlengths 10 4.9M |
|---|
def save_dataframe_as_CSV(dataframe,csv_filepath):
csv_header= ['Speaker',
'Time_Stamp',
'Transcript',
'Turn-Taking Facilitation',
'Metacognitive Modeling Questions',
'Behavior Management Questions',
'Teacher Open-Ended S/Q',
'Teacher Close-Ended... |
def create_ocp_node_label_line_item(self, report_period, report, node=None, node_labels=None):
table_name = OCP_REPORT_TABLE_MAP["node_label_line_item"]
data = self.create_columns_for_table(table_name)
data["report_period_id"] = report_period.id
data["report_id"] = report.id
if n... |
package spec
// NewEmptySERVICE - return an empty SERVICE, all fields are initialized
func NewEmptySERVICE() SERVICE {
return SERVICE{
Name: "",
Description: "",
Documentation: "",
Executable: "",
Args: []string{},
WorkingDirectory: ... |
<reponame>Bob-King/WifiTrafficAnalyzer<gh_stars>1-10
package org.mars.kjli.analyzer;
import java.io.BufferedReader;
import java.io.Closeable;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
class ProbeRequestRead... |
/**
* Launches an activity that allows user to select a device to use
*/
public void selectDevice()
{
Intent serverIntent = new Intent(this, DeviceListActivity.class);
startActivityForResult(serverIntent, REQUEST_CONNECT_DEVICE_INSECURE);
} |
/**
* Method to init the Options Dialog
*
* @return
*/
public TagInputDialog build() {
tagInputDialog.hint = Utils.assign(tagInputDialog.hint, tagInputDialog.activity.getString(R.string.add_text_here_text));
tagInputDialog.message = Utils.assign(tagInputDialog... |
Ultra-Microelectrode Voltammetric Measurement of the Hydrodynamic Radii and Shear Plane of Micellar Particles for Sodium Dodecyl Sulfate in Aqueous NaCl Solutions
Abstract Ultra-microelectrode voltammetric measurements have been performed on sodium dodecyl sulfate (SDS) in the aqueous NaCl solutions at 298.2 ± 0.1 K. ... |
/**
* Constants for Simbs.
*/
public final class Constants {
/** Application version */
public static final String APP_VERSION = "1.3.3";
/** Name of {@code ResourceBundle} file */
public static final String I18N_PATH = "i18n/simbs";
// *******************
// ** SQL connection
// ******... |
def handle_starttag(self, tag, attrs):
self.log.debug( u'Encountered a start tag: {0} {1}'.format(tag, attrs) )
if tag in self.sanitizelist:
self.level += 1
return
if self.isNotPurify or tag in self.whitelist_keys:
attrs = self.__attrs_str(tag, attrs)
... |
<reponame>Paruck/ElE<gh_stars>1-10
#include "ElEScene.h"
#include "ElE.h"
ElEScene::ElEScene()
{
}
ElEScene::~ElEScene()
{
this->SceneEnd();
}
void ElEScene::Start()
{
}
void ElEScene::Update()
{
}
void ElEScene::Draw()
{
switch(ElE::getGraphicsRenderer())
{
#ifdef RASPBERRY_COMPILE
case ElEG... |
Buy Photo Redevelopment of Concord Plaza, a large office complex off Silverside Road in Brandywine Hundred is in the planning stages. (Photo: SUCHAT PEDERSON/THE NEWS JOURNAL)Buy Photo
Stores and hundreds of apartments are proposed to be added to Brandywine Hundred's Concord Plaza office complex, one of the largest co... |
import math
def solve():
x, y, p, q = map(int, input().split())
l, r = 0, 10**10
inf = 10**10
while l < r:
mid = (l + r) // 2
mp, mq = mid * p, mid * q
# print(f"l = {l}, r = {r}, mid = {mid}, mp = {mp}, mq = {mq}")
if mp >= x and mq >= y and mp - x <= mq - y:... |
/*
* Board.h
*
* Created on: 07.02.2020
* Author: LK
*/
#ifndef TMC_BOARDS_BOARD_H_
#define TMC_BOARDS_BOARD_H_
#include "Definitions.h"
#include "tmc/helpers/API_Header.h"
#ifndef TMC_CFLAGS
////////////////////////////////////////////////////////////////////////////////
// User defines
#define TMC_AXE... |
package com.zakrywilson.astro.tle;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.text.DecimalFormat;
import java.util.Calendar;
import java.util.TimeZone;
import java.util.concurrent.atomic.AtomicReference;
/**
* A thread-safe epoch utility class for handling conversions between the TLE epo... |
// Adds handlers to a map field.
static void add_handlers_for_mapfield(upb_handlers* h,
const upb_fielddef* fielddef,
size_t offset) {
const upb_msgdef* map_msgdef = upb_fielddef_msgsubdef(fielddef);
map_handlerdata_t* hd = new_map_handlerd... |
from django.shortcuts import render
from django.db import connection
from django.shortcuts import render,redirect
from django.http import HttpResponse
from helpers.format import format_query
from helpers.format import executeSQL
from helpers.navbar import which_nav
from helpers.email import send_email
# Create your vi... |
<reponame>cdslabamotong/StenierSolver<gh_stars>0
import math
import numpy
def mst_instance(current_node):
cost = numpy.zeros([len(current_node), len(current_node)])
for i in range(len(current_node)):
for j in range(i,len(current_node)):
temp = (current_node[j][0] -current_no... |
red_str_list=[]
blue_str_list=[]
blue_cnt=int(input())
for _ in range(blue_cnt):
red_str_list.append(input())
red_cnt=int(input())
for _ in range(red_cnt):
blue_str_list.append(input())
ans=0
dic = dict()
for i in red_str_list:
if (i in dic.keys()):
dic[i]+=1
else:
dic[i]=1
for i in blue... |
The intelligence report of the Philippine National Police (PNP) indicating 17-year-old Kian Lloyd delos Santos was a drug runner could be wrong, President Rodrigo Duterte said Monday night.
“Those are just information gathered by the police and the military. It is an internal thing. Hindi mo masabi na, ‘itong intel na... |
n = int(input())
A, B = list(), list()
check = set()
for i in range(n):
a, b = map(int,input().split())
A.append(a);B.append(b)
check.add(a)
check = sorted(check)
val = dict()
for x in check:
val[x] = list()
for i in range(n):
val[A[i]].append(B[i])
main_lst = list()
for x in check:
... |
How Window Tinting Works- A Beginners Guide in Details You don't need to be a Mafia don or Hollywood star just in order to do a window-tinting job on your … [Continuous Reading--->]
12 Best Air Compressor for Painting Cars to Look This Year (2019)! A serious job requires serious tools. If you intend to paint some cars... |
<filename>src/com/model/Users.java
package com.model;
public class Users {
private String username;
private String password;
private String usersname;
private String branch;
private String privilege;
public String getUsername() {
return username;
}
public void setUsernam... |
// InitGenesis will run module initialization using the genesis state
//nolint:gocritic,gocyclo
func InitGenesis(ctx sdk.Context, k keeper.Keeper, state GenesisState) {
accountKeeper := k.AccountKeeper()
coinKeeper := k.CoinKeeper()
amount := sdk.NewInt(5000)
coins := sdk.Coins{sdk.Coin{
Denom: ModuleName,
Amo... |
def circular_mean(data, weights=None, degrees=True, axis=0,
exponential_weights=True):
if degrees:
data = np.radians(data, dtype=np.float32)
sin = np.sin(data)
cos = np.cos(data)
if weights is None:
sin = np.nanmean(sin, axis=axis)
cos = np.nanmean(cos, axis=axi... |
// Function object for sorting vector of features and associated region ID's based on distance from a given point
class DistanceAtIndexIsGreater {
public:
typedef std::pair< LocationRegistration::feature_sptr_type, LocationRegistration::SegmentedImageType::PixelType > FeatureIDPair;
DistanceAtIndexIsGreater( itk:... |
package faqs
import (
"time"
)
type FaqDocument struct {
Id int64 `json:"id"`
UniqHash string `json:"uniq_hash"`
Question string `json:"question"`
Answer string `json:"answer"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type FaqDocuments []FaqDoc... |
// Encontrar todos los switches de acceso
public List<DatapathId> accessSwitches(SwitchPort[] ap) {
List<DatapathId> switches = new ArrayList<DatapathId>();
for (DatapathId switchId : switchService.getAllSwitchDpids()) {
IOFSwitch sw = switchService.getSwitch(switchId);
for (OFPortDesc port : sw.getPorts()) {... |
//-------------------------------------------------------------
// Procedure: getEntryCount
// Note: Return the number of entries contained in given partition
unsigned int PartitionRecord::getEntryCount(unsigned int ix) const
{
if(ix < m_partition_entry_cnt.size())
return(m_partition_entry_cnt[ix]);
return... |
PORTLAND, Maine — Houlton’s municipal electric utility on Tuesday received final approval to disconnect from the northern Maine power grid and connect directly with Canadian lines.
Houlton Water Co. is in the final stages of securing a $5.4 million loan to fund about 11 miles of new power lines connecting it directly ... |
A Geometric Hamilton-Jacobi Theory for Classical Field Theories
In this paper we extend the geometric formalism of the Hamilton-Jacobi theory for hamiltonian mechanics to the case of classical field theories in the framework of multisymplectic geometry and Ehresmann connections.
Introduction
The standard formulation... |
/**
* @author Adam Gibson
*/
public class ReshapeTests extends BaseNd4jTest {
public ReshapeTests() {
}
public ReshapeTests(String name) {
super(name);
}
public ReshapeTests(String name, Nd4jBackend backend) {
super(name, backend);
}
public ReshapeTests(Nd4jBackend backe... |
<reponame>hjc851/SourceCodePlagiarismDetectionDataset
public class Layouts {
public synchronized void increaseForestall() {
this.barred++;
}
public int barred = 0;
public synchronized int driveSecurity() {
return identification;
}
public synchronized int takeAbortAppendage() {
return allocat... |
def secs_for_next(cron_format: str, tz: tzinfo = None) -> float:
now_ts = time.time()
now = datetime.now(tz) if tz else now_ts
cron_it = croniter(cron_format, start_time=now)
return cron_it.get_next(float) - now_ts |
The influence of the number of graphene layers on the atomic resolution images obtained from aberration-corrected high resolution transmission electron microscopy
Image patterns formed by low voltage aberration-corrected high resolution transmission electron microscopy (HRTEM) of few layer graphene provide insight int... |
// Query the capabilities of a device
int playerc_device_hascapability(playerc_device_t *device, uint32_t type, uint32_t subtype)
{
player_capabilities_req_t capreq;
capreq.type = type;
capreq.subtype = subtype;
return playerc_client_request(device->client, device, PLAYER_CAPABILTIES_REQ,
&capreq, NULL) >= ... |
def _CRsweep(A, B, Findex, Cindex, nu, thetacr, method):
n = A.shape[0]
z = np.zeros((n,))
e = deepcopy(B[:, 0])
e[Cindex] = 0.0
enorm = norm(e)
rhok = 1
it = 0
while True:
if method not in ('habituated', 'concurrent'):
raise NotImplementedError('method not recogn... |
a = input().split()
b = int(a[0])
c = int(a[1])
def f(x,y):
if x*y == 0 or x*y == 1:
return 0
elif x < 3 and y < 3:
return 1
elif x > 2:
return 1 + f(x-2,y+1)
else:
return 1 + f(x+1,y-2)
print(f(b,c)) |
//--------------------------------------------------------
// Constructor
// Grab references to ATC and thermostat data
//--------------------------------------------------------
ThermostatIntegratorFlux::ThermostatIntegratorFlux(AtomicRegulator * thermostat,
... |
A domain free of the zeros of the partial theta function
We prove that for $q\in (0,1)$, the partial theta function $\theta (q,x):=\sum _{j=0}^{\infty}q^{j(j+1)/2}x^j$ has no zeros in the closed domain $\{ \{ |x|\leq 3\} \cap \{${\rm Re}$x\leq 0\} \cap \{ |${\rm Im}$x|\leq 3/\sqrt{2}\} \} \subset \mathbb{C}$ and no re... |
def randbool(n=8):
return randint(0, n*n-1) % n == 0 |
<filename>backend/core/src/main/java/com/github/thiagogarbazza/training/springangular/core/cliente/impl/ClienteRepositoryCustom.java<gh_stars>0
package com.github.thiagogarbazza.training.springangular.core.cliente.impl;
import com.github.thiagogarbazza.training.springangular.core.cliente.Cliente;
import java.util.Col... |
Pep Guardiola says Manchester City are unlikely to be spending big in the January transfer window and would be happy to complete the season with the present squad.
“I’m happy with what we have, I have confidence in the players,” the City manager said. “I’m not saying we won’t do anything in the window, you never know ... |
import * as Vector2D from "./vector-2d";
export interface ControlLine {
readonly length: number;
readonly angle: number;
}
export interface VertexProperty {
readonly point: Vector2D.Unit;
readonly controlLine: ControlLine;
}
export interface PathSegment {
readonly controlPoint1: Vector2D.Unit;
readonly c... |
def restart_workers_signal_callback(sender, instance, field_name, **kwargs):
if settings.DEBUG:
return
prev = getattr(instance, "_original_{}".format(field_name))
curr = getattr(instance, "{}".format(field_name))
if field_name == "evaluation_script":
instance._original_evaluation_script ... |
<reponame>0xen/EnteeZ
#pragma once
#include <EnteeZ/EntityManager.hpp>
#include <EnteeZ\TemplatePair.hpp>
#include <typeindex>
#include <map>
#include <vector>
namespace enteez
{
class EnteeZ
{
public:
// Create a instance of EnteeZ (Entity Component Manager)
EnteeZ();
// Handle destruction of the object
~E... |
<gh_stars>10-100
package xyz.belvi.permissiondialog.Rationale;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import java.util.ArrayList;
import xyz.belvi.permissiondialog.Permission.SmoothPermission;
import static xyz.belvi.permissiondi... |
//==============================================================================
// Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// ... |
The NFLPA has released its latest cap figures for the 2017 offseason, and the Eagles have a little less money than expected
According to the NFLPA, the Eagles will carry over $7.9 million in cap space from 2016 into 2017, which is slightly less than the $8.25 million they were projected to carry over.
Any money not s... |
/**
* Adds <i>append</i> to <i>string</i> if <i>string</i> does not end with <i>append</i>.
* @param string
* @param append
* @return
*/
@NotNull
public static String appendIfNotPresent(@NotNull final String string, @NotNull final String append) {
Objects.requireNonNull(string, "Provided string is null");
... |
<reponame>sasigume/manoikura
interface PostJsonData {
slug: string;
modified_gmt: string;
// パース時にnullになる
acf: {
fetch_on_build?: boolean | null;
};
}
export type { PostJsonData };
|
HOST-PATHOGEN INTERACTION IN INFECTIONS DUE TO STAPHYLOCOCCUS AUREUS. STAPHYLOCOCCUS AUREUS VIRULENCE FACTORS.
Staphylococcus aureus (S. aureus) is a major cause of hospital-acquired (HA-SA) and community-acquired (CA-SA) infections worldwide. It is isolated from many human body sites, from animals and from foods, fro... |
<reponame>surgelt/sptingboot-cloud-st
package com.ggj.encrypt.modules.base.controller;
import java.util.Date;
import com.ggj.encrypt.common.exception.BizException;
import com.ggj.encrypt.common.utils.DateUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpStatus;
import org.springframework.we... |
import { TestBed } from '@angular/core/testing';
import { TodosApi } from './todos.api';
import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing';
import { mockTodo, mockAllTodos } from '../mocks/todos.mock';
import { environment } from 'src/environments/environment';
describe('To... |
/**
* @author Andrea Schweer schweer@waikato.ac.nz for the LCoNZ Institutional Research Repositories
*/
public class SolrStorageService {
private static final DateFormat ISO_DATE_FORMAT;
static {
ISO_DATE_FORMAT = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'");
ISO_DATE_FORMAT.setTimeZone(TimeZone.getTimeZon... |
// CreateUser creates a new org based on seed data in the POST body
func (srv Instance) CreateUser(w http.ResponseWriter, r *http.Request) {
ctx := r.Context()
defer srv.ST.L.Sync()
sugar := srv.ST.L.Sugar()
authLevel, ok := ctx.Value(authLevelCtxKey).(int)
if !ok {
panic("auth missing")
}
if authLevel == Aut... |
MOD = 10 ** 9 + 7
MAXN = 10 ** 5 + 123
MAXK = 22
fact = [1]
inv = [1]
s = [[ 0 for i in range(MAXK)] for j in range(MAXK)]
s[0][0] = 1
for n in range(1, MAXK):
for k in range(1, n + 1):
s[n][k] = (s[n - 1][k - 1] + k * s[n - 1][k]) % MOD
for i in range(1, MAXN):
fact.append(fact[-1] * i... |
/**
* retourne la distance en micro-seconde de l'obstacle a droite
* (retourne 0 si aucun obstacle n'a ete detecte)
* @return la distance en micro-seconde
*/
int detecteDroite()
{
int counter = 0;
while (!(PINA & (1 << PA2)))
{
}
while ((PINA & (1 << PA2)) != 0)
{
count... |
def load_github_owners(neo4j_session: neo4j.Session, update_tag: int, repo_owners: List[Dict]) -> None:
for owner in repo_owners:
ingest_owner_template = Template("""
MERGE (user:$account_type{id: {Id}})
ON CREATE SET user.firstseen = timestamp()
SET user.username = {User... |
// IsSubscriptionActivated checks if the subscription is active or not.
func IsSubscriptionActivated(sub *kymaeventingv1alpha1.Subscription) bool {
eventActivatedCondition := kymaeventingv1alpha1.SubscriptionCondition{Type: kymaeventingv1alpha1.EventsActivated, Status: kymaeventingv1alpha1.ConditionTrue}
knSubReadyCo... |
// -----------------------------------------------------------------------------------
// lossflag - return true if loss calculation required
// metrics - given input(s), target(s) & model output for the batch, calculate metrics
// -----------------------------------------------------------------------------------
stat... |