seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
import pic
target_image = pic.pic2rgb("../data/img03.jpg", 50, 50)
cf.set_target_image(target_image)
s = "(H 0.73 (V 0.451 (H 0.963 (L color)(L color))(V 0.549 (L color)(L color)))(L color))"
matrix = cf.to_array(s, 50, 50, 1)
#print(matrix)
pic.rgb2pic(matrix, 'LAB', "./master_piece.png")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>mission-liao/hashtags
mod persistence;
mod tokenizer;
mod model;
mod tag;
mod error;
pub mod core;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from .file_open_hook import FileOpenHook
from .logging_hook import LoggingHook
from .profiler_hook import ProfilerHook
from .runtime_audit_hook import RuntimeAuditHook
from .stack_trace_hook import StackTraceHook
from .timer_hook import TimerHook
from .tracing_hook import TracingHook
__all__ = [
"CounterHook",
"FileOpenHook",
"LoggingHook",
"ProfilerHook",
| ise-uiuc/Magicoder-OSS-Instruct-75K |
?>
<html lang="en" dir="ltr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
| ise-uiuc/Magicoder-OSS-Instruct-75K |
std::fs::read_to_string(path)?
} else {
log::trace!(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.vertices = [a[1] for a in l] | ise-uiuc/Magicoder-OSS-Instruct-75K |
# -*- coding: utf-8 -*-
"""
Test module for prometheus
@author: <NAME>
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export { cliProgressBar } from './cli-progress-bar';
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from egcd.egcd import egcd
| ise-uiuc/Magicoder-OSS-Instruct-75K |
logger.info("Software extracted to %s", target_loc)
else:
logger.debug("Software %s already found. Skipping unzip ...", file)
else:
logger.warning("File extension not supported for file %s", file)
@staticmethod
| ise-uiuc/Magicoder-OSS-Instruct-75K |
IncomeTag,
IncomeCategory,
Income,
TransferTag,
Transfer
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# set to INFO to see less information during training
logging.basicConfig(level=logging.DEBUG)
ae_model = AutoEncoderModel(mx.gpu(0), [784,500,500,2000,10], pt_dropout=0.2,
internal_act='relu', output_act='relu')
X, _ = data.get_mnist()
train_X = X[:60000]
val_X = X[60000:]
ae_model.layerwise_pretrain(train_X, 256, 50000, 'sgd', l_rate=0.1, decay=0.0,
lr_scheduler=mx.misc.FactorScheduler(20000,0.1))
ae_model.finetune(train_X, 256, 100000, 'sgd', l_rate=0.1, decay=0.0,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import { expect } from '@playwright/test';
const NOTEBOOK = 'empty.ipynb';
const MENU_PATHS = [
'File',
'File>New',
'Edit',
'View',
'Run',
'Kernel',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def test_future():
fut = utils.Future(iter('abcdefg'))
ret = fut.filter(lambda x: x < 'e').execute()
exp = list('abcd')
assert ret == exp
| ise-uiuc/Magicoder-OSS-Instruct-75K |
AssertEx.AreEqual("first byte of decimal converted properly", 0xff, bytes[0] & 0xFF);
AssertEx.AreEqual("last byte of decimal converted properly", 0xfe, bytes[1] & 0xFF);
}
[Test]
public void testToByteArrayFromByteArray() {
byte[] byteVal = new byte[] {(byte) 0xFF, (byte) 0xAB, 0x12, 0x25};
Identifier identifier1 = Identifier.FromBytes(byteVal, 0, byteVal.Length, false);
byte[] bytes = identifier1.ToByteArrayOfSpecifiedEndianness(true);
AssertEx.AreEqual("byte array is correct length", bytes.Length, 4);
AssertEx.AreEqual("correct string representation", identifier1.ToString(), "0xffab1225");
AssertEx.True("arrays equal", Arrays.Equals(byteVal, bytes));
AssertEx.AreNotSame("arrays are copied", bytes, byteVal);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# @property
# def topo(self):
# num_input = self.config['input']
# shape = [[num_input, h, 1] for h in self.config['hiddens']]
# return shape
def indirect_decode(self, solution, sf):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
""" """
self.node_name = rospy.get_name()
rospack = rospkg.RosPack()
self.pkg_path = rospack.get_path('apriltags')
tags_filepath = self.setupParam("~tags_file", self.pkg_path+"/apriltagsDB/apriltagsDB.yaml") # No tags_file input atm., so default value is used
self.loc = self.setupParam("~loc", -1) # -1 if no location is given
tags_file = open(tags_filepath, 'r')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@Test
public void testGetBuildDateAsLocalDate() {
SimpleDateFormat sdf = new SimpleDateFormat(BuildVersion.JAR_BUILD_DATE_FORMAT);
initManifestGetter(null, null, sdf.format(new Date()), null);
BuildVersion.refreshInstance();
BuildVersion version = BuildVersion.getInstance();
Date buildDate = version.getBuildDateAsLocalDate();
if (buildDate == null) {
fail("Unable to retrieve build date as Local date");
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
MonoMac.AppKit.NSButton selectUnity { get; set; }
[Outlet]
MonoMac.AppKit.NSButton signBarFile { get; set; }
[Outlet]
MonoMac.AppKit.NSButton unityClassicMode { get; set; }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
proc = specfemGlobeMesher(name='specfemGlobeMesher', input=data, params=parameters, vercejson=verce,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
test_budget_flights,
test_collection,
test_counts,
test_get_all,
test_entity_get_save,
test_full,
test_limit,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
[SerializeField] List<RuntimeBuildLog> m_RuntimeBuildLogs = new List<RuntimeBuildLog>();
/// <summary>
/// List of logs that need to appear in the runtime that was generated by the build.
/// </summary>
public List<RuntimeBuildLog> RuntimeBuildLogs
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Fields:
createTime: Output only. The time when the metadata import was started.
databaseDump: Immutable. A database dump from a pre-existing metastore's
database.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
it->second = data > 0 ? elrond::high : elrond::low;
break;
case elrond::GpioType::PWM:
case elrond::GpioType::SERVO:
it->second = data;
break;
default:
return;
}
if(this->onWrite != nullptr) this->onWrite(pin, it->second);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
type ContainerProps = {
children?: ReactNode;
title?: string;
toggleNav?: boolean;
};
const MainContainer: React.FC<ContainerProps> = ({
children,
title = 'This is a default title string!',
toggleNav = true,
}: ContainerProps) => {
return (
| ise-uiuc/Magicoder-OSS-Instruct-75K |
os.environ["CUDA_VISIBLE_DEVICES"] = "-1"
#from tensorflow_asr.augmentations.augments import Augmentation
from tensorflow_asr.featurizers.speech_featurizers import read_raw_audio
from tensorflow_asr.configs.config import Config
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def diameterOfBinaryTree(self, root: TreeNode) -> int:
_, res = self.max_depth(root)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if data[i] == 'down':
aim += int(num)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
run_example()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
6: 'VI',
7: 'VII',
8: 'VIII',
9: 'IX'
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#ifdef _OPENMP
#include <omp.h>
#endif
namespace RedMF::Kernel {
template <typename T>
using kernelFuncType = std::function<T(std::vector<T>, std::vector<T>)>;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
rm -f /var/www/html/index.html
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import './style.scss';
const Page: React.FunctionComponent = props => {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
rm -rf build cryptoString.egg-info dist
echo "clean dist folder!"
python setup.py sdist bdist_wheel
echo "build successfully!" | ise-uiuc/Magicoder-OSS-Instruct-75K |
self.servers_client.delete_server(
self.server.id,
requestslib_kwargs=self.auth_token)
@tags(type='negative', net='no')
def test_change_server_password_with_invalid_token(self):
with self.assertRaises(Unauthorized):
self.servers_client.change_password(
self.server.id, '<PASSWORD>',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
action_sprint = CoreAction(e_BackendAction.sprint, "sprint", sticky=True)
action_dribble = CoreAction(
e_BackendAction.dribble, "dribble", sticky=True)
action_release_direction = CoreAction(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
// nothing yet
return 0;
}
int __declspec(dllexport) GetConfigItem(unsigned int outt, char *item, char *data, int len, char *configfile)
{
if (outt == mmioFOURCC('F', 'L', 'A', 'k'))
{
configtype cfg;
readconfig(configfile, &cfg);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
fastrtps::rtps::Count_t count;
ParameterCount_t()
: count(0)
{
}
/**
* Constructor using a parameter PID and the parameter length
* @param pid Pid of the parameter
* @param in_length Its associated length
*/
ParameterCount_t(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# suppose we are combining two differnce data sources, want top 3 us states
# by area, and top 3 by population
area = pd.Series({'Alaska': 1723337, 'Texas': 695662,
'California': 423967}, name='area')
population = pd.Series({'California': 38332521, 'Texas': 26448193,
'New York': 19651127}, name='population')
# now, divide to compute population density
population / area
# we see the resulting array contains the Union of indeces of two input arrs
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import org.squonk.jobdef.JobStatus;
import java.io.IOException;
import java.util.List;
/**
* Created by timbo on 04/01/16.
*/
public interface JobStatusClient {
/** Creates the job
*
* @param jobdef The Job definition
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print(arr[0] + arr[2] + arr[4] + arr[6] + arr[8])
print(arr[1] + arr[3] + arr[5] + arr[7]) | ise-uiuc/Magicoder-OSS-Instruct-75K |
@staticmethod
def logging_multi_outputs(
log_targets: Dict[str, torch.Tensor],
logger: Callable,
log_name: str = "loss",
log_header: str = "train",
logger_name: str = "tensorboard",
) -> None:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
FILENAME_C_ELEVATION = "country-by-elevation.json"
FILENAME_C_EXPECTANCY = "country-by-life-expectancy.json"
OUTFILE_PATH = 'output/data.json'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return ids_list
class GetRunner(BaseRunner):
"""run get"""
name = "get_performance"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
labels_sentence.items(), key=lambda item: item[1], reverse=True
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if Pw(token.lower())>1e-06 and token not in firstnames.words():
sentence = re.sub(token,token.lower(),sentence)
return sentence
def capitalize_fragment(sentence):
sentence = re.sub(r"(^|\W)i($|\W)",r"\1I\2",sentence)
names = extract_named_entities(sentence.title())
for name in names:
sentence = re.sub(name.lower(),name,sentence)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
app = Flask(__name__)
@app/route('/')
def index():
return 'hello world'
>>>>>>> b644c89d3eb5e1fcd31fedf63470ab57d597d9dd
| ise-uiuc/Magicoder-OSS-Instruct-75K |
snap_name = "-;" + snapshot_name1
create_snapshot(snap_name,
vol_id=volume.vol_to_delete[0],
description="created by testcase",
online=False,
writable=False)
except exceptions.NimOSAPIError as ex:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
df = pd.concat([df,categories], axis=1)
# Droping Rows with Duplicates Data
df.drop_duplicates(inplace=True)
# drop original column as it is not needed for the ML model
df.drop(['original'], axis=1, inplace=True)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union IfrIfrn {
pub ifrn_name: [libc::c_char; libc::IFNAMSIZ],
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.properties.append(prop)
self.entryPropList[name] = None
def addBooleanProperty(self,
name,
label="",
group=None,
updateHandler=None,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
patterns, self.num_visited = self.pattern_finder.get_divergent_patterns(threshold, num_patterns, True)
patterns = [self.convert_pattern(p) for p in patterns]
return patterns
def find_any_discriminating(self, threshold, num_patterns):
patterns, self.num_visited = self.pattern_finder.get_discriminating_patterns(threshold, num_patterns, True)
patterns = [self.convert_pattern(p) for p in patterns]
return patterns
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import ClientTank from "./client-tank";
for(let Model of Types) {
ClientTank.register(Model)
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
index: usize,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def isLineStacked(index) :
if TOTAL_DEMAND in index:
return False
return True
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'ComplianceResourceType': invoking_event['configurationItem']['resourceType'],
'ComplianceResourceId': vpc_id,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import java.util.List;
@Repository
public interface SearchMapper {
public List<Novel> searchBookByName (String keywords);
public List<Novel> searchBookByAuth (String keywords);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for w in lst:
ret_val.append(w.lower( ))
return ret_val
def test_map(lst):
ret_val = map(str.lower, lst)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
read -n 1 key
if [ "$key" = "" ]; then
return 1
#echo "This was really Enter, not space, tab or something else"
fi
return 2
}
source=./data/vocabularies.txt
total=`wc -l $source | awk '{print $1}'`
| ise-uiuc/Magicoder-OSS-Instruct-75K |
it('should correctly render an Alert when the bitrate test returns an "expired" error', () => {
mockUseTestRunner.mockImplementation(() => ({
isRunning: false,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
};
TEST(mathMixCore, opratorSubraction) {
stan::math::test::test_common_args<op_subtraction_f, false>();
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
BindingList<CustomerLookupModel> Customers { get; set; }
DelegateCommand NextPageCommand { get; }
DelegateCommand PrevPageCommand { get; }
int CurrentPage { get; }
bool HasNextPage { get; }
bool HasPrevPage { get; }
void JumpToPage(int? page);
void Load();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if len(classes) == 2:
self._n_support = (self._n_support / 2).astype(np.int32)
linear = model.find('LinearKernelType')
poly = model.find('PolynomialKernelType')
rbf = model.find('RadialBasisKernelType')
sigmoid = model.find('SigmoidKernelType')
if linear is not None:
self.kernel = 'linear'
self._gamma = self.gamma = 0.0
elif poly is not None:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public Response deleteComplaintById(int id) {
return preparedRequest()
.header("Authorization", String.format("Bearer %s",token))
.delete(clientUrl + "/" + id);
}
public Response putComplaintById(int id,JSONObject putComplaint){
return preparedRequest()
.header("Authorization", String.format("Bearer %s",token))
.body(putComplaint.toString())
.when()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
>> $DATASET_ROOT/$SEQUENCE_NAME/rgbd.txt
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Configure a user with non root privileges, if no user is specified do not change user
if [ -z "$SERVER_USER" ] ; then
SERVER_USER=""
fi
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/**
* Description of EmptyController
* 空控制器,指当系统找不到请求的控制器名称的时候,系统会尝试定位空控制器(EmptyController),利用这个机制我们可以用来定制错误页面和进行URL的优化
* 空控制器和空操作还可以同时使用,用以完成更加复杂的操作。
* @author Administrator
*/
class EmptyController extends Controller{
//put your code here
public function index(){
$cityName=CONTROLLER_NAME;
$this->city($cityName);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
x1 = None
min_width = h_min_orig
# Get stretching factor (a = 1+alpha).
if min_width == 0 or min_width > np.diff(domain)/nx:
# If min_width is bigger than the domain-extent divided by nx, no
# stretching is required at all.
alpha = 0
else:
# Wrap _get_dx into a minimization function to call with fsolve.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
rm $js
| ise-uiuc/Magicoder-OSS-Instruct-75K |
app.jinja_env.globals['is_admin'] = is_admin
Themes(app, app_identifier='yelplove')
# if debug property is present, let's use it
try:
app.debug = config.DEBUG
except AttributeError:
app.debug = False
import views
| ise-uiuc/Magicoder-OSS-Instruct-75K |
*
* @return bool
*/
public function isPersonOnList($fullName)
{
return null !== $this->getDocument()->find('css', sprintf('#people-list .lead:contains("%s")', $fullName));
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print("En carrito de compras:",username.carritoDCompras)
class Reporter(Perfil):
def __init__(self,username,tipo="Reporter"):
super().__init__(username, tipo)
self.tipo = "Reporter"
def CheckCarrito(self,userVar):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>NREL/EMISApproximateEquilibrium.jl<filename>approximate_equilibrium/optimize/__init__.py
| ise-uiuc/Magicoder-OSS-Instruct-75K |
system_key = 'character'
help_category = "Character Channel Aliases"
user_controller = 'character'
class CmdCharacterChannelAdmin(AbstractChannelAdminCommand):
account_caller = False
| ise-uiuc/Magicoder-OSS-Instruct-75K |
yield 1;
yield 2;
};
let expected_numbers = vec!(0, 1, 2);
let generator_iter = GeneratingIterator(generator);
let collected_result: Vec<_> = generator_iter.collect();
assert_eq!(collected_result, expected_numbers);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
prefixRE = "0c";
}
else if (fromBase == 2) {
prefixRE = "0b";
}
var parts = new JSRegExp("^([+\\-]?)(" + prefixRE + ")?([0-9a-z]*)(?:\\.\\d*)?$", "i").Exec(s);
//var parts = new JSRegExp(@"^([+\-]?)(0[xXcCbB])?([0-9A-Za-z]*)(?:\.\d*)?$").Exec(s);
if (parts != null) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def step(self, x):
steps_high = self._to_batch(self._get_input(self.steps_high, x))
steps_low = self._to_batch(self._get_input(self.steps_low, x))
y = self.beta(steps_high, steps_low)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
package org.jeecg.rpc.serialize.impl;//package org.jeecg.rpc.serialize.impl;
//
//import com.caucho.hessian.io.HessianInput;
//import com.caucho.hessian.io.HessianOutput;
//import org.jeecg.rpc.serialize.Serializer;
//import org.jeecg.rpc.util.XxlRpcException;
//
//import java.io.ByteArrayInputStream;
//import java.io.ByteArrayOutputStream;
//import java.io.IOException;
//
///**
// * hessian serialize
| ise-uiuc/Magicoder-OSS-Instruct-75K |
];
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print('--------------')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
]
}
anno_count += 1
members.append(member)
if len(members) > 0:
label = ""
if "label" in df:
label = df["label"]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// =-=-=-=-=-=-=-
// 4c. return the pointer through the generic interface of an
// irods::resource pointer
return dynamic_cast<irods::resource*>( resc );
} // plugin_factory
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from floodsystem.flood import stations_level_over_threshold
from floodsystem.datafetcher import fetch_measure_levels
from floodsystem.plot import plot_water_levels
import datetime
import matplotlib as plt
from floodsystem.utils import sorted_by_key
def run():
stations = build_station_list()
update_water_levels(stations)
stations_by_water_level = []
for station in stations:
if station.latest_level == None:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if len(comment_format) == 1:
split_body = body.splitlines(True)
mod_body = (comment_format[0] + ' ').join(['', *split_body])
elif len(comment_format) == 2:
mod_body = comment_format[0] + \
'\n' + body.rstrip() + '\n' + comment_format[1]
trimmed_body = ' '.join(body.split())
trimmed_file = ' '.join(content.replace(comment_format[0], '').split())
if trimmed_body not in trimmed_file:
split_content = content.splitlines(True)
# Respect shebang lines
updated_body = mod_body
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#ifndef GAZEBO_RENDERING_CUSTOMPSSMSHADOWCAMERASETUP_HH_
#define GAZEBO_RENDERING_CUSTOMPSSMSHADOWCAMERASETUP_HH_
#include "gazebo/rendering/ogre_gazebo.h"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
with open(pickle_file, 'wb') as f:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def get_absolute_path(relative_path: str, file_path: str) -> str:
absolute_path: str = join(abspath(dirname(file_path)), relative_path)
# assert exists(absolute_path), "'%s' must be a valid directory path" % absolute_path
return absolute_path
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def __gt__(self, other):
"""
>>> results = []
>>> for (x, y) in [(0, 0), (0, 1), (1, 0), (1, 1)]:
... bit.circuit(circuit())
... b = output(input(x) > input(y))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'tools.staticdir.on': True,
'tools.staticdir.dir': PATH,
'tools.staticdir.index': 'index.html',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def run(self, mode, recording, emergency_brake):
if self.on:
prev_mode = self.mode
prev_recording = self.recording
prev_emergency = self.emergency_brake
self.mode = mode
| ise-uiuc/Magicoder-OSS-Instruct-75K |
MF_COLLIDABLE
};
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for j in range(BLOCK_SIZE - i):
delta2[BLOCK_SIZE - (1 + j)] = (BLOCK_SIZE - i)
for j in range(256):
cipherInter = probeBlocks.copy()
delta2[i] = j
delta = bytearray(bytes([a ^ b for (a,b) in zip(delta1, delta2)]))
block = cipherInter[len(cipherInter) - 2]
probe = bytearray(bytes([a ^ b for (a,b) in zip(block, delta)]))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import sys, atexit
from .platform import platform_init, platform_cleanup
from .common import ADDITIONAL_CLEANUP, util_init
def bbio_init():
""" Pre-run initialization, i.e. starting module clocks, etc. """
util_init()
platform_init()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'''
try:
current_url = 'https://'+self.post_url+'/in.php'
if files:
files = {key: open(path, 'rb') for key, path in files.items()}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Create the ADC 12 bit instance
adc = Adafruit_ADS1x15.ADS1015()
# Max reading value for 12 bit instance
MAX_READING_VAL = 2047
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def test_printf_runs_into_end_of_memory(capsys):
k = init_kernel()
k.RAM.set(255, ord('A'))
k.stack.push(255)
k.stack.push(0)
k.syscall()
out, err = capsys.readouterr()
assert out == 'A'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#[cfg(web_sys_unstable_apis)]
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = MediaStreamTrack , extends = EventTarget , extends = :: js_sys :: Object , js_name = MediaStreamTrackGenerator , typescript_type = "MediaStreamTrackGenerator")]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `MediaStreamTrackGenerator` class."]
#[doc = ""]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public interface IDomainEventDispatcher
{
void Dispatch(BaseDomainEvent domainEvent);
}
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
|-- weather (天气包)
|-- notice (通知包)
```
''' | ise-uiuc/Magicoder-OSS-Instruct-75K |
@Component({
selector: 'ngx-create-bus-route',
templateUrl: './create-bus-route.component.html',
styleUrls: ['./create-bus-route.component.scss']
})
export class CreateBusRouteComponent implements OnInit {
private routeData: BusRouteListResponseData
| 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.