seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
selected: false,
horizontal: false,
isScrollPageItem: false,
isLastPageItem: false,
isFirstPageItem: false,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Generated by Django 2.2.12 on 2020-10-16 01:42
from django.db import migrations, models
| ise-uiuc/Magicoder-OSS-Instruct-75K |
int globalSectorPhi = (globalPhi - 24); // this sets CMS phi = 0 to +15 deg
if (globalSectorPhi < 0) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
while (1):
( stat, id ) = commands.getstatusoutput( "sudo ./nfc-poll")
query = ParsePy.ParseQuery("NFC")
query = query.eq("TagId", id)
fetched=query.fetch()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return None
def add_new_base_message(self, new_base_message: BaseMessage) -> BaseMessage:
if str(new_base_message) in self.base_message_dict:
exist_msgs = self.base_message_dict[str(new_base_message)]
# Check if exactly the same message already exists
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ltr_out.writelines("\n".join(formatted_text))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<filename>bazel_versions.bzl
"""
Common bazel version requirements for tests
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return None
# Try to find direct child first.
for n in elements:
if n.parentNode.nodeName == node.nodeName:
return n
return elements[0]
def getRequiredTextElement(node, tag):
return getRequiredElement(node, tag).firstChild.nodeValue
def getOptionalTextElement(node, tag):
try:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// Check to see if uri is a protocol request
Match protocolMatch = s_protocolRegex.Match(uri.ToString());
if (protocolMatch.Success)
{
if (null != s_lastProtocolUri &&
s_lastProtocolUri.Equals(uri) &&
DateTime.Now.Subtract(s_lastRedirectedTime) < TimeSpan.FromSeconds(5))
{
// There's a WP8 API bug that calls MapUri twice when activated via protocol
// and this check is used to prevent parsing and acting twice
return s_lastRedirectedUri;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
private router: Router
) { };
public resolve(
route: ActivatedRouteSnapshot,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
symmetric_key = self._key(context, query, document2, document1)
if symmetric_key in cache:
# Cache hit for symmetric key.
preference = -cache[symmetric_key]
cache[key] = preference
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/**
* Class MigrationManager_BaseMigrationService
*/
abstract class BaseMigration extends Component implements IMigrationService
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#[derive(Clone, Copy, Debug, PartialEq)]
#[repr(u8)]
pub enum TOS_A {
#[doc = "0: Continuout operation"]
CONT = 0,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print(f"O ano {ano} é Bissesto")
else:
print(f"O ano {ano} NÃO é Bissesto")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
raise OAuthProblem(f'Invalid authentication: "{apikey}"')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export default SkewIncreaseIcon;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@AliasFor(annotation = ReactiveSocket.class)
String mimeType() default "application/java-serialized-object";
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<Change>
<Location targetId="%sLocation">
<longitude>%f</longitude>
<latitude>%f</latitude>
<altitude>%f</altitude>
</Location>
</Change>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"unixSocketFile": "${DDIR}/tm.ipc"
}
EOF
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from django.contrib import admin
from users.views import logout_user, connection
urlpatterns = [
url(
r'^customers/',
include('customers.urls', namespace="customers", app_name='customers')
),
url(
r'^users/',
include('users.urls', namespace="users", app_name='users')
),
url(
r'^projects/',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Migration(migrations.Migration):
dependencies = [
('validated', '0004_auto_20191118_1323'),
]
operations = [
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# add self relation
edgelists[('target', 'self_relation', 'target')] = [(t, t) for t in id_to_node[target_node_type].values()]
g = dgl.heterograph(edgelists)
print(
"Constructed heterograph with the following metagraph structure: Node types {}, Edge types{}".format(
g.ntypes, g.canonical_etypes))
print("Number of nodes of type target : {}".format(g.number_of_nodes('target')))
g.nodes['target'].data['features'] = features
id_to_node = id_to_node[target_node_type]
else:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
&self.spus
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_LinksTab(object):
def setupUi(self, LinksTab):
LinksTab.setObjectName("LinksTab")
LinksTab.resize(1018, 1043)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
impl message::MessageStatic for ServiceBindList {
const MESSAGE_ID: &'static str = "ServiceBindList";
}
impl message::MessageStatic for SupDepart {
const MESSAGE_ID: &'static str = "SupDepart";
}
impl message::MessageStatic for SvcFilePut {
const MESSAGE_ID: &'static str = "SvcFilePut";
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
}
@Override
public void initClient() {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"Intended Audience :: Manufacturing",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: System :: Hardware :: Hardware Drivers",
],
cmdclass={"test": PyTest},
package_data={"": ["VERSION", "*.pyi", "py.typed"]},
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
rospy.init_node('vfk_msb_testing_node')
cls.start = rospy.Publisher("/CI/Scalable/Start", Empty, queue_size=1)
cls.next = rospy.Publisher("/CI/Scalable/Trigger_next", Empty, queue_size=1)
cls.end = rospy.Publisher("/CI/Scalable/End", Empty, queue_size=1)
rospy.sleep(5.0)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Console.WriteLine($"{typeOfTest} : {watch.ElapsedMilliseconds}ms");
}
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
#image_file = 'WellPlate_project/feature_eng/2.jpg'
image_file = 'a2_a_cropped.jpg'
print(image_file)
original_image = cv2.imread(image_file)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.assertEqual(tarfiles, {"dns_consistency.0.tar": map(self.rpt, (0, 1))})
def test_stupid(self): # FIXME: is it really good behaviour?...
asis, tarfiles = canning.pack_bucket(
[(self.rpt(0), 42), (self.rpt(1), 64 * 1048576 - 1), (self.rpt(2), 64)]
)
self.assertEqual(asis, map(self.rpt, (0, 1, 2)))
self.assertEqual(tarfiles, {})
if __name__ == "__main__":
unittest.main()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
parser.add_argument(
'--log-dir', type=str, default=os.path.expanduser("~/rltime_logs"),
help="Base directory where to place training results (Each result "
"gets a separate sub-directory")
parser.add_argument(
'--log-name', type=str,
help="Custom text to add to the log directory (In addition to "
"date/time and ENV name")
parser.add_argument(
'--conf-update', type=str,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pip install midiutil
pip install pygame
apt-get install timidity
apt-get install libasound2-dev
apt-get install mpg123
apt-get install timidity
| ise-uiuc/Magicoder-OSS-Instruct-75K |
mod range_item_header_value;
mod range_condition_header_value;
mod entity_tag_header_value;
mod date_time_offset;
mod content_range_header_value;
pub use range_header_value::RangeHeaderValue;
pub use range_item_header_value::RangeItemHeaderValue;
pub use range_condition_header_value::RangeConditionHeaderValue;
pub use entity_tag_header_value::EntityTagHeaderValue;
pub use content_range_header_value::ContentRangeHeaderValue;
pub use date_time_offset::DateTimeOffset;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Menu:
def __init__(self, Requests, log, presences):
self.Requests = Requests
self.log = log
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class WhatWebToolTest(AsyncTestCase):
def setUp(self):
super(WhatWebToolTest, self).setUp()
self.aucote = MagicMock()
self.exploit = Exploit(exploit_id=1)
self.node = Node(ip=ipaddress.ip_address('127.0.0.1'), node_id=1)
self.port = Port(node=self.node, transport_protocol=TransportProtocol.UDP, number=87)
self.config = MagicMock()
self.context = ScanContext(aucote=self.aucote, scanner=MagicMock(scan=Scan()))
self.tool = WhatWebTool(context=self.context, exploits=[self.exploit], port=self.port, config=self.config)
@patch('tools.whatweb.tool.WhatWebTask')
@gen_test
| ise-uiuc/Magicoder-OSS-Instruct-75K |
list(
map(np.concatenate, combinations_perturbations_means)
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
movedown = true;
counter = 0;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
The index (into the list of stones originally passed to the EventTracker
in construction) for the stone used in the potion or None if no match can
be found.
"""
if len([e for e in [stone_inst, stone] if e is not None]) != 1:
raise ValueError('Exactly one of stone inst and stone must be given.')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
vol.Optional(HMIPC_NAME): str,
vol.Optional(HMIPC_PIN): str,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
XCTAssertTrue(projectMockConfig2.contains(rule: TodoRule.self))
XCTAssertTrue(config0Merge2.contains(rule: TodoRule.self))
XCTAssertFalse(projectMockConfig3.contains(rule: TodoRule.self))
XCTAssertFalse(config0Merge2.merge(with: projectMockConfig3).contains(rule: TodoRule.self))
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
keyfile=key_file)
try:
# handle request based on given keyword
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// </value>
public string[] Funcs { get; set; }
}
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
return yquantity[index] + \
(yquantity[index+1]-yquantity[index])* \
(target-xquantity[index])/(xquantity[index+1]-xquantity[index])
class Fluid(object):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public MemoizingDynamicFibonacciNumberGenerator() {
cache = new ArrayList<>();
cache.add(BigInteger.ONE);
cache.add(BigInteger.ONE);
}
@Override
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from .accountant import GitcoinAccountant # noqa: F401
from .decoder import GitcoinDecoder # noqa: F401
| ise-uiuc/Magicoder-OSS-Instruct-75K |
elif rc > 1:
raise env.error("os.pkg debian dpkg-query -s failed (rc:%d)" % rc)
elif act == 'prune':
rc = call("/usr/bin/dpkg-query -s %s >/dev/null 2>/dev/null" % pkg)
if rc == 0:
diff.append((opt, pkg))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let deserialized = ReadJson::<_, Value>::new(length_delimited)
.map_err(|e| println!("ERR: {:?}", e));
// Spawn a task that prints all received messages to STDOUT
handle.spawn(deserialized.for_each(|msg| {
println!("GOT: {:?}", msg);
Ok(())
}));
Ok(())
| ise-uiuc/Magicoder-OSS-Instruct-75K |
async fn test(ctx: &mut Context) -> crate::Result {
assert_eq!("bar baz", ctx.must_cookie("bar baz")?.value());
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
/// <summary>
/// Body
/// </summary>
public string Body { get; set; }
/// <summary>
/// HtmlContent
/// </summary>
public HtmlContent()
{
this.Body = null;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def test_fake_corrupt_json_file(tmpdir):
""" Creates a bad JSON file and tests the code responds properly"""
try:
d = tmpdir.mkdir("./testdir")
bad_json = d.join("bad_json.txt")
bad_json.write('{"test": }')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import com.linkedpipes.etl.dataunit.core.files.FilesDataUnit;
import com.linkedpipes.etl.dataunit.core.files.WritableFilesDataUnit;
import com.linkedpipes.etl.dataunit.core.rdf.SingleGraphDataUnit;
import com.linkedpipes.etl.executor.api.v1.LpException;
import com.linkedpipes.etl.executor.api.v1.component.Component;
import com.linkedpipes.etl.executor.api.v1.component.SequentialExecution;
import com.linkedpipes.etl.executor.api.v1.service.ExceptionFactory;
import com.linkedpipes.etl.executor.api.v1.service.ProgressReport;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
det_award_1 = DetachedAwardFinancialAssistanceFactory(awarding_office_code='AAAAAA')
det_award_2 = DetachedAwardFinancialAssistanceFactory(awarding_office_code='111111')
det_award_3 = DetachedAwardFinancialAssistanceFactory(awarding_office_code='AAA111')
det_award_4 = DetachedAwardFinancialAssistanceFactory(awarding_office_code='')
det_award_5 = DetachedAwardFinancialAssistanceFactory(awarding_office_code=None)
errors = number_of_errors(_FILE, database, models=[det_award_1, det_award_2, det_award_3, det_award_4, det_award_5])
assert errors == 0
def test_failure(database):
""" AwardingOfficeCode must be six characters long. """
det_award_1 = DetachedAwardFinancialAssistanceFactory(awarding_office_code='AAAA1')
det_award_2 = DetachedAwardFinancialAssistanceFactory(awarding_office_code='AAAAAAA')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
async postNew<T = any, U = any>(
body: T,
config?: AxiosRequestConfig,
): Promise<U> {
const data = await $axios.post(`${pluralize}`, body, config)
return data as any
},
async modifyOne<T = any, U = any>(id: string, body: T): Promise<U> {
const data = await $axios.put(`${pluralize}/${id}`, body)
return data as any
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# As `_BracketStudy` is defined inside `HyperbandPruner`,
# we cannot do `assert isinstance(bracket_study, _BracketStudy)`.
# This is why the below line is ignored by mypy checks.
bracket_study._bracket_id # type: ignore
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for transition in graph.transitions.find(u):
v = transition[1]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
TEST_F(FullBuffer, ArrayBlock_8)
{
fill_buffer_except(8 * SUCCESSFUL_SERIALIZATION + 7);
try_array_block_8(ARRAY_SERIALIZATION);
}
TEST_F(FullBuffer, ArrayBlock_4)
{
fill_buffer_except(4 * SUCCESSFUL_SERIALIZATION + 3);
try_array_block_4(ARRAY_SERIALIZATION);
}
TEST_F(FullBuffer, ArrayBlock_2)
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
auto window::height() const noexcept -> int
{
return m_height;
}
auto window::handle_events() -> void
{
SDL_Event ev;
while(static_cast<bool>(SDL_PollEvent(&ev))) {
switch(ev.type) {
case SDL_QUIT: {
m_should_close = true;
break;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import { Channel } from '../../../state';
import Hls from 'hls.js';
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import { parseMessage } from "./parseMessage"
export const serializeMessage = (e: ReturnType<typeof parseMessage>) => {
const bytes: number[] = []
function add(data: number | number[]) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
extension DataFactory {
public static func createPlannedFailoverInputProtocol() -> PlannedFailoverInputProtocol {
return PlannedFailoverInputData()
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Every time you guess wrong, I'll tell you whether the number is higher or lower.
You call a pre-defined API guess(int num) which returns 3 possible results (-1, 1, or 0):
-1 : My number is lower
1 : My number is higher
0 : Congrats! You got it!
Example :
| ise-uiuc/Magicoder-OSS-Instruct-75K |
///
/// Get the number of bytes that pixel data would occupy if saved
///
pub fn get_bytes_size(&self) -> u32 {
let used_bits = self.pixels.len() as u32 * self.bit_depth.get_step_counter();
let padding = self.padding * self.height;
used_bits + padding
}
///
/// Convert data to RGBA
| ise-uiuc/Magicoder-OSS-Instruct-75K |
BASE_NAMES = [ 'MID_B1_Base', 'MID_B1_Alt', 'MID_B2_Base', 'MID_B2_Upd',
'MID_B2_Alt', 'aLOW_Base', 'aLOW_Upd', 'aLOW_Alt' ]
if len(sys.argv) > 1:
eid = int(sys.argv[1])
print "-"*50
print BASE_NAMES[eid]
print "-"*50
else:
print "Missing argument. Must specify experiment ID as integer."
| ise-uiuc/Magicoder-OSS-Instruct-75K |
SCRIPT=$(readlink -f $0)
# absolute path of the directory this script is in
SCRIPT_PATH=$(dirname "$SCRIPT")
cd "$SCRIPT_PATH"
COMPONENTS="
photo-gallery-common
photo-gallery-photo
photo-gallery-like
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let adulto:boolean = true;
let simbolo:symbol = Symbol('Qualquer symbol');
//let big: bigint = 10n;
// Arrays
let arrayDeNumeros: Array<Number> = [];
let arrayDeStrings: string[] = ['a','b','c'];
// objetos
let pessoa: {nome:string, idade:number,adulto?:boolean} = {nome: 'Pedro', idade: 10, adulto};
// funções
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
/**
| ise-uiuc/Magicoder-OSS-Instruct-75K |
__all__ = ['startClient', 'startServer']
from autobahn.twisted.websocket import connectWS, \
listenWS, \
WebSocketClientFactory, \
WebSocketClientProtocol, \
WebSocketServerFactory, \
WebSocketServerProtocol
| ise-uiuc/Magicoder-OSS-Instruct-75K |
std::wstring w=utow(filename, true);
in=CreateFile(w.c_str(), GENERIC_READ,
FILE_SHARE_READ|FILE_SHARE_WRITE|FILE_SHARE_DELETE, NULL,
OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
aes=a;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""Cython def function, recursive"""
run_func(cyth.fib, 10)
@cli.command()
def example3():
"""Cython def function, built-in typed parameter"""
# NOTE: Cython will attempt to cast argument to correct type
# NOTE: Floats will be cast to int, but string, for example will error
run_func(cyth.fib_int, 10)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Anon::new_file(anon_fs(kernel), Box::new(SyslogFile), OpenFlags::RDWR)
}
}
impl FileOps for SyslogFile {
fd_impl_nonseekable!();
fn write(&self, _file: &FileObject, task: &Task, data: &[UserBuffer]) -> Result<usize, Errno> {
let mut size = 0;
task.mm.read_each(data, |bytes| {
info!(target: "stdio", "{}", String::from_utf8_lossy(bytes));
| ise-uiuc/Magicoder-OSS-Instruct-75K |
__version__ = '0.0.3'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
</form>
<?php } ?>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from eofs.standard import Eof
### Plotting defaults
plt.rc('text',usetex=True)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
} else {return }
} catch {
print(error)
}
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
# fh - repeat history
fh() {
eval $( ([ -n "$ZSH_NAME" ] && fc -l 1 || history) | fzf +s --tac | sed 's/ *[0-9]* *//')
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from typing import Any
from ._classes import *
# Version info
__version_info__ = ver = VersionInfo(0,3,4)
__version__ = '0.3.4'
version = 'miniirc v{}.{}.{} / miniirc_extras v{}'.format(miniirc.ver[0],
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def get_manifest_json(self) -> Mapping:
"""Get a mapping suitable for creating a manifest line in the API."""
return {
'responder_url': self.responder.url,
'subject_certificate': b64encode(self.subject).decode('utf-8'),
'issuer_certificate': b64encode(self.issuer).decode('utf-8'),
'certificate_chain_uuid': str(self.certificate_chain_uuid),
}
def __repr__(self):
return f'{self.responder} at {self.retrieved}'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# !/usr/bin/env python
#
# dates.py
"""
Utilities for working with dates and times.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
else:
dw_ra = width * cos_term / 2.0
if height is not None:
dw = height / 2.0
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.spinner.stop()
self.friend_info.set_sensitive(True)
self.save_bt.set_sensitive(True)
self.close_bt.set_sensitive(True)
self.generate_keys_bt.set_sensitive(True)
self.copy_clipboard_bt.set_sensitive(True)
def on_cancel(self, button):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// static public System.Boolean VolatileKeyExists(System.String dir)
// Offset: 0x1A37BC0
static bool VolatileKeyExists(::Il2CppString* dir);
// static public System.String GetVolatileDir(System.String dir)
// Offset: 0x1A3672C
static ::Il2CppString* GetVolatileDir(::Il2CppString* dir);
// static public Microsoft.Win32.KeyHandler Lookup(Microsoft.Win32.RegistryKey rkey, System.Boolean createNonExisting)
// Offset: 0x1A38914
static Microsoft::Win32::KeyHandler* Lookup(Microsoft::Win32::RegistryKey* rkey, bool createNonExisting);
// static private System.String GetRootFromDir(System.String dir)
// Offset: 0x1A387D4
static ::Il2CppString* GetRootFromDir(::Il2CppString* dir);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
time_since_last_seen))
to_prune.append(obj)
elif time_since_created > self._deletion_threshold and time_since_last_seen / time_since_created > .6:
# delete if we haven't seen most its life
logger.debug("pruning {} because it hasn't been seen for the majority of its life".format(obj.id))
to_prune.append(obj)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// OutcomeValues.swift
// ParseCareKit
//
// Created by Corey Baker on 1/15/20.
// Copyright © 2020 Network Reconnaissance Lab. All rights reserved.
//
| ise-uiuc/Magicoder-OSS-Instruct-75K |
sys.path.append("../tools/")
from email_preprocess import preprocess
from sklearn import tree
features_train, features_test, labels_train, labels_test = preprocess()
clf = tree.DecisionTreeClassifier(min_samples_split=40)
clf.fit(features_train, labels_train)
print clf.score(features_test, labels_test) | ise-uiuc/Magicoder-OSS-Instruct-75K |
@using BForms.Models
@model BForms.Docs.Areas.Demo.Models.ContributorDetailsModel
<h3 class="editable">
@Html.BsGlyphicon(Glyphicon.Tags)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# completion of trial
ax_client.complete_trial(trial_index=trial_index, raw_data=test_accuracy.item())
best_parameters, metrics = ax_client.get_best_parameters()
for param_name, value in best_parameters.items():
mlflow.log_param("optimum_" + param_name, value)
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser = pl.Trainer.add_argparse_args(parent_parser=parser)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Time: O(n)
# Space: O(n)
# Given a string, find the first non-repeating character in it and
# return it's index. If it doesn't exist, return -1.
#
# Examples:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if header.id not in handlers and header.id not in pkt_counters:
rospy.logwarn("No handler for message id %d" % header.id)
except novatel_span_driver.translator.TranslatorError:
if header.id not in bad_pkts:
rospy.logwarn("Error parsing %s.%d" % header.id)
bad_pkts.add(pkt)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
case INT:
return JavaType.Primitive.Int;
case LONG:
return JavaType.Primitive.Long;
case SHORT:
return JavaType.Primitive.Short;
case VOID:
return JavaType.Primitive.Void;
case NONE:
return JavaType.Primitive.None;
case CLASS:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return rdate
def extract_workshop_info(url):
workshop_dummy = {attribute: None for attribute in
["workshop_name", "workshop_organizer", "workshop_description", "workshop_day",
"workshop_location", "workshop_link"]}
workshop_info_list = []
try:
page = request.urlopen(url)
except ConnectionError:
print("Could not connect to url.")
datetimes = get_timestamps(url)
current_date = datetimes[0][0]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
###############################################################################
# Screen #
###############################################################################
# Save screenshots to the desktop
defaults write com.apple.screencapture location -string "${HOME}/Documents/Screenshots"
# Save screenshots in PNG format (other options: BMP, GIF, JPG, PDF, TIFF)
defaults write com.apple.screencapture type -string "png"
# Disable shadow in screenshots
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
start[0], start[1] = start[0] + (-1), start[1] + 0
return start == [0, 0]
# @lc code=end
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using MediatR;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace Application.Features
| ise-uiuc/Magicoder-OSS-Instruct-75K |
.arg("test")
// Disable rust-lang/cargo's cross-compile tests
.env("CFG_DISABLE_CROSS_TESTS", "1")
.current_dir(crate_path)
.status()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def gen_instance(*args):
return NoCapture(*args)
# This creates an empty argparser for the module, which provides only
# description/usage information and no arguments.
create_argparser = util.base_argparser(MODULE_DESCRIPTION, MODULE_NAME)
class NoCapture:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
json.dump(data, f) | ise-uiuc/Magicoder-OSS-Instruct-75K |
it += 1
if it == max_iterazioni:
print("Numero massimo di iterazioni raggiunte")
return xks[it-1],it,xks | ise-uiuc/Magicoder-OSS-Instruct-75K |
Atualizar.grid(row=5, column=1, sticky=W+E)
Excluir = Button(frame, text="Excluir", command=lambda:delt.excluir())
Excluir.grid(row=7, column=1, sticky=W+E)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.