seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
// must not contain "envSpecific" files
$file = $this->path('tests/res/config/envSpecific/newlines.php');
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using System.Collections.Generic;
using System.Linq;
using IronBlock.Utils;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.assertAllEqual(b.shape, (batch_size, 1))
if __name__ == '__main__':
tf.logging.set_verbosity(tf.logging.INFO)
tf.test.main()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'Dienstag',
'Mittwoch',
'Donnerstag',
'Freitag',
'Samstag',
];
const monthNames = [
'Januar',
'Februar',
'März',
'April',
'Mai',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
uid = request.POST.get('email')
passwd = request.POST.get('pass')
context = {}
ulist = userlist.objects.filter(email = uid, password = <PASSWORD>).values()
if (len(ulist)==0):
return redirect('/login')
else:
for key in ulist:
request.session['name'] = key['name'].split(" ")[0]
request.session['logged'] = 1
return redirect('/dashboard')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if self.zip_format:
logger.info("Finished analysis on " + self.local_path)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using System.Diagnostics;
namespace WebAddressbookTests
{
class ContactRemovalTests : GroupTestBase
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class EventController extends BaseController {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
jsonDict["humidity"] = humidity
jsonDict["daytime"] = daytime
jsonDict["polar"] = polar
jsonDict["season"] = season
jsonDict["source"] = source
jsonDict["accum_prec"] = accumPrec?.toDictionary()
jsonDict["soil_moisture"] = soilMoisture
jsonDict["soil_temp"] = soilTemp
jsonDict["uv_index"] = uvIndex
jsonDict["wind_gust"] = windGust
| ise-uiuc/Magicoder-OSS-Instruct-75K |
. || echo "---") | tee /dev/stderr |
yq 'length > 0' | tee /dev/stderr)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#include "../rules.hpp"
#include "../utf8.hpp"
namespace tao
{
namespace TAO_PEGTL_NAMESPACE
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
are escaped as double backslashes. Other escaped characters are
replaced with ``'\\xYY'``, ``'\\uYYYY', or ``'\\UYYYYYYYY'`` where Y
are hex digits depending on the unicode numerical value of the
character. for ``'.'``, both slashes, and null; this will be the
former (``'\\xYY'``).
.. versionadded:: 0.2
Parameters
----------
pth : str or bytes
The path to escape.
Returns
-------
| ise-uiuc/Magicoder-OSS-Instruct-75K |
nn.Linear(fc_layers[1], fc_layers[2]), nn.ReLU(),
nn.Linear(fc_layers[2], 1))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<button type="submit" class="btn btn-primary btn-success uppercase">確認</button>
<button type="reset" name="reset" class="btn reset btn-primary btn-success uppercase">リセット</button>
</div>
{{ csrf_field() }}
</form>
@endsection | ise-uiuc/Magicoder-OSS-Instruct-75K |
<form id="mc-form" method="POST" action="{{ url('subscribe') }}">
@csrf
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Route::get('/', function () {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def quicksort(myList, start, end):
if start < end:
# partition the list
pivot = divide(myList, start, end)
# sort both halves
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if not value:
return '{}'
return '{{"{}"}}'.format('","'.join(value))
def process_result_value(self, value, dialect):
if value is None:
return value
if isinstance(value, list):
return value
if not value:
return []
# TODO: Value should be Unicode already
value = value.decode('utf-8')
# TODO: Enhance field decoding (eg. core_user.created)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return sum(p.numel() for p in model.parameters() if p.requires_grad)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import { ZSetup } from '../setup';
import type { ZTask } from '../tasks';
import type { ZCall } from './call';
import { ZTaskParams } from './task-params';
| ise-uiuc/Magicoder-OSS-Instruct-75K |
require_once("../database.php");
session_start();
if(isset($_POST['new_mail']) && isset($_SESSION['email'])){
$con = db_connection();
trim($_POST['new_mail']);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
Size Reader::read (void* buffer, Size length)
{
return this->stream.read (buffer, length);
}
GLAY_NS_END()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# define PARPORT_CONTROL_AUTOFD AUTOFEED
| ise-uiuc/Magicoder-OSS-Instruct-75K |
register_trainable("trainable", MyTrainableClass)
def execute_script_with_args(*args):
current_dir = os.path.dirname(__file__)
script = os.path.join(current_dir, "_test_cluster_interrupt_searcher.py")
subprocess.Popen([sys.executable, script] + list(args))
args = (
"--ray-address",
cluster.address,
"--local-dir",
dirpath,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
debug_dentries_agent_versions(rdentries) << "]");
return replay_delta_versions(pc, jocrdt, rdentries, is_sub);
}
static sqlres get_replay_ooo_deltas(string &kqk, bool is_sub) {
LT("get_replay_ooo_deltas");
sqlres sr = zdelt_get_key_subscriber_versions(kqk);
RETURN_SQL_ERROR(sr)
jv mavrsns = sr.jres;
sr = fetch_ooo_key_delta_versions(kqk);
RETURN_SQL_ERROR(sr)
jv joooavrsns = sr.jres;
zh_jv_sort(&joooavrsns, cmp_delta_agent_version);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if chapter_metadata_filename in zip_file.namelist():
info_file = [file for file in zip_file.namelist() if file == chapter_metadata_filename][0]
zip_file_data = zip_file.read(info_file).decode("utf-8")
chapters.append(Chapter.from_file(zip_file_data, file))
else:
chapter_info = zip_file.filename.rsplit(os.sep, 1)[1].replace('.zip', '').rsplit('-', 1)
chapter_number = ''.join([letter for letter in chapter_info[0] if letter.isnumeric()]).strip('0')
chapter_language = chapter_info[1]
chapters.append(
Chapter(volume='Single Volume',
chapter=chapter_number,
title='',
language=chapter_language,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
BATCH_SIZE = 1
EPSILON = 1e-5
MOMENTUM = 0.9
LR = 1e-3
DECAY_STEP = [SAVE_WEIGHTS_INTE*12, SAVE_WEIGHTS_INTE*16, SAVE_WEIGHTS_INTE*20]
MAX_ITERATION = SAVE_WEIGHTS_INTE*20
WARM_SETP = int(1.0 / 8.0 * SAVE_WEIGHTS_INTE)
# -------------------------------------------- Dataset
DATASET_NAME = 'DOTATrain' # 'pascal', 'coco'
PIXEL_MEAN = [123.68, 116.779, 103.939] # R, G, B. In tf, channel is RGB. In openCV, channel is BGR
| ise-uiuc/Magicoder-OSS-Instruct-75K |
b_idx = int(x + ((length - 1) - z) * width)
obuffer[n] = struct.pack("<H", data[b_idx])
except Exception as e:
print(e)
break
return b"".join(obuffer)
def getWidth(self):
return self.width
def getLength(self):
return self.length
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
Get default value for a given `section` and `option`.
This is useful for type checking in `get` method.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#include "../UI/UIEvents.h"
#include "../DebugNew.h"
using namespace Urho3D;
namespace Urho3D
{
static int const UICOMPONENT_DEFAULT_TEXTURE_SIZE = 512;
static int const UICOMPONENT_MIN_TEXTURE_SIZE = 64;
static int const UICOMPONENT_MAX_TEXTURE_SIZE = 4096;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
assert_eq!(body, *shared::api::FORBIDDEN);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
Make a new HexaryTrie, insert all the given keys, with the value equal to the key.
Return the raw database and the HexaryTrie.
"""
# Create trie
node_db = {}
trie = HexaryTrie(node_db, prune=prune)
with trie.squash_changes() as trie_batch:
for k in keys:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def problem_7_solution():
gen = gen_prime()
print [next(gen) for __ in range(10002)][-1] | ise-uiuc/Magicoder-OSS-Instruct-75K |
@Override
| ise-uiuc/Magicoder-OSS-Instruct-75K |
HOST=mydb1.ctiembqzvsd8.us-east-1.rds.amazonaws.com
USER=root
mysql -h$HOST -u$USER -p < $DUMP_FILE
| ise-uiuc/Magicoder-OSS-Instruct-75K |
variantId: 1235,
quantity: 1,
customData: {
pricePromotionKey: 'abc123',
},
}),
).toMatchInlineSnapshot(`
Object {
"data": Object {
"customData": Object {
"pricePromotionKey": "abc123",
},
"quantity": 1,
"variantId": 1235,
},
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
void CP211x:: ListSerial(int pid, int vid)
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.bandages_burdens_mem = self._get_updated_bandages_burdens()
return self.bandages_burdens_mem
def _get_updated_bandages_burdens(self):
bandages_burdens = [0]*self.bandage_n
for i in range(len(self.burdens)):
if self.burdens_assignmts[i] is not None:
bandages_burdens[self.burdens_assignmts[i]] += self.burdens[i]
return bandages_burdens
| ise-uiuc/Magicoder-OSS-Instruct-75K |
System.Uri organizationUri = new System.Uri(Constants.Organization.URI);
System.Net.NetworkCredential networkCredentials = new System.Net.NetworkCredential();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
@Override
public short lowestSupportedVersion() {
return 0;
}
@Override
public short highestSupportedVersion() {
return 8;
}
@Override
public void read(Readable _readable, short _version) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class CamelCaseRenderer(renderers.JSONRenderer):
def render(self, data, *args, **kwargs):
camelized_data = deep_camel_case_transform(data)
return super().render(camelized_data, *args, **kwargs)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
animator.startAnimation()
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
schema = t.StructType([
t.StructField('date', t.DateType()),
t.StructField('country', t.StringType()),
t.StructField('dau', t.IntegerType()),
t.StructField('revenue', t.DoubleType()),
])
rows = [
row(date=to_date("2019-10-17"), country="US", dau=50, revenue=100.0),
row(date=to_date("2019-10-17"), country="GB", dau=20, revenue=20.0),
row(date=to_date("2019-10-17"), country="DE", dau=20, revenue=20.0),
row(date=to_date("2019-10-16"), country="US", dau=50, revenue=100.0),
row(date=to_date("2019-10-16"), country="FI", dau=20, revenue=20.0),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
str_h, str_w, str_d = 1, 1, 1 # default values
strides = onnx_node.get_attribute_value('strides', ()) # stride along each axis
if len(strides) == 2: # ONNX input axes order NCHW
str_h, str_w = strides
elif len(strides) == 3: # ONNX input axes order NCHWD
str_h, str_w, str_d = strides
return str_h, str_w, str_d
def get_dilations(onnx_node): # type: (NodeWrapper) -> Tuple[int, int, int]
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
func sceneDidDisconnect(_ scene: UIScene) {
// Called as the scene is being released by the system.
// This occurs shortly after the scene enters the background, or when its session is discarded.
// Release any resources associated with this scene that can be re-created the next time the scene connects.
// The scene may re-connect later, as its session was not neccessarily discarded (see `application:didDiscardSceneSessions` instead).
}
func sceneDidBecomeActive(_ scene: UIScene) {
// Called when the scene has moved from an inactive state to an active state.
// Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive.
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
win.mainloop()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
}
implementedProtocols.add(protocol);
}
if (implementedProtocols.size() == 0) {
log.warn(sm.getString("jsse.noDefaultProtocols"));
}
String[] implementedCipherSuiteArray = context.getSupportedSSLParameters().getCipherSuites();
// The IBM JRE will accept cipher suites names SSL_xxx or TLS_xxx but
// only returns the SSL_xxx form for supported cipher suites. Therefore
// need to filter the requested cipher suites using both forms with an
// IBM JRE.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$unwarpItem = [];
foreach ($item as $key => $value) {
if(preg_match('/Category([\d]+)CustomField(?<field_name>[\w\d]+)$/', $key,$match)) {
$key = $match["field_name"];
}
$unwarpItem[$key] = $value;
}
return $unwarpItem;
}, $data);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'subtoken_map': create_int_feature(subtoken_map),
'flattened_input_ids': create_int_feature(flattened_input_ids),
'flattened_input_mask': create_int_feature(flattened_input_mask),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
('body', models.TextField(blank=True, null=True)),
('date', models.DateTimeField(default=django.utils.timezone.now)),
('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
| ise-uiuc/Magicoder-OSS-Instruct-75K |
:ivar content_encoding: Content encoding of the message data. Can be 'utf-8', 'utf-16' or 'utf-32'
:ivar content_type: Content type property used to route messages with the message-body. Can be 'application/json'
:ivar output_name: Name of the output that the is being sent to.
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>Luxxii/ProtGraph<filename>protgraph/__init__.py
from protgraph.protgraph import main, parse_args, prot_graph # pyflakes.ignore
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>mcroydon/django-tumbleweed<filename>tumbleweed/models.py
# These are not the droids you are looking for. | ise-uiuc/Magicoder-OSS-Instruct-75K |
import re
from datetime import datetime
| ise-uiuc/Magicoder-OSS-Instruct-75K |
</body>
</html>
@endsection | ise-uiuc/Magicoder-OSS-Instruct-75K |
writeFileSync(file, md);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<gh_stars>1-10
package ru.roborox.itunesconnect.api.analytics.model;
public class AppResponse extends ApiList<App> {
public AppResponse() {
}
public AppResponse(int size, App... results) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
case .english: return "English"
case .japanese: return "Japanese"
case .korean: return "Korean"
case .chinese: return "Chinese"
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let message_lines = diagram
.messages()
.iter()
.map(|message| {
let line = LabeledLine::new(&self.app);
self.display_object.add_child(&line);
let label = format!("{} ({:.2})", &message.label, message.time);
line.set_content(label);
let cap = {
if message.recipient.id as i32 - message.sender.id as i32 > 0 {
Cap::Start
} else {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
</div>
<div class="maps scrollspy" >
<iframe src="https://maps.google.com/maps?q=kuningan%20jakarta%20selatan&t=&z=13&ie=UTF8&iwloc=&output=embed" width="100%" height="380" frameborder="0" style="border:0" allowfullscreen></iframe>
</div>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Filter::initSprite(nullptr);
}
void SharpenFilter::setAttributes(GLProgram* cgp)
{
//CCLOG("SharpenFilter::setAttributes");
cgp->bindAttribLocation(GLProgram::ATTRIBUTE_NAME_POSITION, GLProgram::VERTEX_ATTRIB_POSITION);
cgp->bindAttribLocation(GLProgram::ATTRIBUTE_NAME_COLOR, GLProgram::VERTEX_ATTRIB_COLOR);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public function getOut()
{
$this->db->select('*, SUM(t_feeOut.fee_out) as pengeluaran, COUNT(t_feeOut.num_out) as keluar');
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.places = self.__places(self.vNodes, physical_topo)
def __places(self, vNodes, physical_topo):
places={}
i=0
for node in vNodes:
places[node] = physical_topo[i % len(physical_topo)]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#!/bin/bash
echo "Stopping the Redis Replication Cluster with HAProxy on Docker Swarm"
docker-compose stop
| ise-uiuc/Magicoder-OSS-Instruct-75K |
MonitoringServer = backend.MonitoringServerClass
MonitoringBackend.server_class = MonitoringServer
def get_monitoring(dc, **kwargs):
return backend.get_monitoring(dc, **kwargs)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print(" %")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
function ZillaEdit($cat_id){
$cat = Zilla::findOrFail($cat_id);
return view('fontend/category_edit', compact('cat'));
}
function ZillaUpdate($cat_id, Request $request){
$cat = Zilla::findOrFail($cat_id)->update([
'zilla_name' => $request->category,
'updated_at' => Carbon::now()
]);
return redirect('/home');
}
function Thana(){
$zillas = Zilla::all();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
email = db.Column(db.Unicode(80), nullable=False)
#: User's company name
company = db.Column(db.Unicode(80), nullable=False)
#: User's job title
jobtitle = db.Column(db.Unicode(80), nullable=False)
#: User's twitter id (optional)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def get_runner_class():
from mlcube_singularity.singularity_run import SingularityRun
return SingularityRun
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@classmethod
def create_guest(self, user):
guest = Guest(user=user, last_used=datetime.datetime.now())
return guest
| ise-uiuc/Magicoder-OSS-Instruct-75K |
curl -L -X GET 'https://maps.googleapis.com/maps/api/place/textsearch/json?query=123%20main%20street&location=42.3675294%2C-71.186966&radius=10000&key=YOUR_API_KEY'
# [END maps_http_places_textsearch_location] | ise-uiuc/Magicoder-OSS-Instruct-75K |
This website stores cookies on your computer. These cookies are used to improve your website and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, check the link of our privacy policy given below.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if isLastCell {
cell.separatorInset = .leadingInset(frame.width)
}
if let cell = cell as? FavoriteAdTableViewCell {
cell.loadImage()
}
}
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
tableView.deselectRow(at: indexPath, animated: true)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
protected $fillable = [
'to',
'from',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
break;
}
}
catch (std::exception e) {
std::cout << e.what() << std::endl;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'check_max_memory',
'check_max_parents',
'check_number_of_chains',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for path_to_exclude in ["/a", "/a/", "/a/b", "/a/b/"]:
@test("remove_excluded_paths removes {exclude} from list of paths")
def _(exclude=path_to_exclude, paths=paths_to_py_files):
assert _remove_excluded_paths(paths, [exclude]) == []
@test(
"remove_excluded_paths removes correct files when exclusions relative to each other"
)
def _(paths=paths_to_py_files):
assert _remove_excluded_paths(paths, ["/a/b/d", "/a/b/d/", "/a/b/d/f"]) == [
Path("/a/b/c.py")
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
number_as_string = str(numbers)
for digit in number_as_string:
if int(digit) == 0:
is_Magic = False
break
elif number % int(digit) != 0:
is_Magic = False
break
if is_Magic:
print(f"{number_as_string}", end=" ") | ise-uiuc/Magicoder-OSS-Instruct-75K |
class DeviceUseStatementStatusCodeValues:
"""
The device is still being used.
From: http://hl7.org/fhir/device-statement-status in valuesets.xml
"""
Active = DeviceUseStatementStatusCode("active")
"""
The device is no longer being used.
From: http://hl7.org/fhir/device-statement-status in valuesets.xml
| ise-uiuc/Magicoder-OSS-Instruct-75K |
entry_points={"console_scripts": ["ccz=ccz:main"]},
python_requires=">=3.6",
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
test()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
.eraseToAnyPublisher()
}
.flatMap { $0 }
.eraseToAnyPublisher()
}
/// Runs the given publisher after ``self`` and returns the failure and errors
/// of ``self`` without any transformation.
///
/// ```swift
/// fetchFriends()
/// .passthrough { [weak self] result in
/// self?.log(result)
/// }
/// }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
cout << ".....start ..." << endl;
processor->freeze();
ram->load(BOOT_ADDRESS, hd->read(BOOT_SECTOR, SECTOR_SIZE));
processor->jump(BOOT_ADDRESS);
processor->excute();
cout << ".....over ..." << endl;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export * from "./Translator.js";
| ise-uiuc/Magicoder-OSS-Instruct-75K |
)
)
sim.minimizeEnergy()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public void addBomb(Bomb bomb){
this.bombs.put(bomb.getPosition(),bomb);
}
public Map<Position, Bomb> getBombs() {
return bombs;
}
public void addPowerup(Powerup powerup){
this.powerups.put(powerup.getPosition(),powerup);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
assert len(heap) == i
def test_top_of_heap_always_has_highest_priority():
heap = Heap()
for i in range(1, 6):
heap.push(str(i), -i)
assert heap.top == "1"
for i in range(1, 6):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if not os.path.exists(date_tar_filename):
if download_archive(year, str(month).zfill(2), str(day).zfill(2)) == False:
subprocess.run("rm " + date_tar_filename, shell=True)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from functionality.commands import *
if __name__ == '__main__':
speaking.setup_assistant_voice(core.ttsEngine, core.assistant)
while True:
# start speech recording and speech recognition
recognized_speech = listening.get_listening_and_recognition_result(
core.recognizer,
core.microphone)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Assertion(Statement):
def __init__(self, actual: Expression, expected: Expression) -> None:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
url(r'^((?:[A-Z]+[a-z]+){2,})/$', 'page', {}, name="wiki_page"),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Git:
"""Class to simplify work with git, wrapper for cli git
"""
@classmethod
def add(cls, what, verbose=False):
"""Adds files to next commit
<br>`param what` string, adding files
<br>`return` None
"""
from .console9 import Console
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class SDPSaltModuleModuleConfiguratorTests: XCTestCase {
override func setUp() {
super.setUp()
// Put setup code here. This method is called before the invocation of each test method in the class.
}
override func tearDown() {
// Put teardown code here. This method is called after the invocation of each test method in the class.
super.tearDown()
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
*/
BLACK
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return tmp
def __repr__(self):
return "{} Head: {}, Tail: {}".format(self.queue,self.head,self.tail)
if __name__ == "__main__":
queue = Queue(["a","b","c"],4)
print(queue)
queue.add("d")
print(queue)
queue.pop()
print(queue)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
fn main() {
// Always rebuild, even if nothing changed. This is so that millennium-bindings-cxx can re-scan C++ files
// to detect new command patterns and generate bindings accordingly.
env::set_var("MM_CXX_REBUILD", format!("{:?}", Instant::now()));
println!("cargo:rerun-if-env-changed=MM_CXX_REBUILD");
millennium_bindings_cxx::build(
&PathBuf::from(
// Far from ideal but it's the only way to get the path to the `build.rs` file.
PathBuf::from(env::var("OUT_DIR").unwrap())
.parent() // target/debug/build/.../
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import requests
data = json.dumps({'name':'Aditya'})
res = requests.post('http://127.0.0.1:10001/api', data)
print(res.text)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return (self.treap.max_value - self.treap.min_value) / N
def Add(self, obs, group):
'''Insert new observation into one of the groups.
Args:
obs: the value of the obseration. Tip: a tuple (actual value, random value) is recommended when there is overlap between groups or if values are not guaranteed to be mostly unique.
group (int): which group the observation belongs to. Must be either 0 or 1.
'''
group = 0 if group == 2 else group
assert(group == 0 or group == 1)
key = (obs, group)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
</a>
</div>
<div class="col-lg-2">
<button type="submit" class="btn btn-block btn-info btn-lg">Lưu</button>
</div>
<input type="hidden" name="id" value="{{ $model->id }}">
</div>
</form>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
access: str = "public",
):
user = User(
discord_id=discord_id,
discord_username=discord_username,
quora_username=quora_username,
follower_count=follower_count,
access=access,
)
self.session.add(user)
| 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.