seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
linkedin_email = # place your linkedin login email
linkedin_password = # place your linkedin login password | ise-uiuc/Magicoder-OSS-Instruct-75K |
data_files=[('share/kodespel', dict_files)],
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
mod thickness;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
./build/cli_test_input.sh $BINARY_DIR $SEED $BIN_NUMBER $HAPLOTYPE_COUNT
./search/cli_test_input.sh $BINARY_DIR $SEED $BIN_NUMBER $HAPLOTYPE_COUNT
| ise-uiuc/Magicoder-OSS-Instruct-75K |
execute_test(programs.subroutine)
def test_stack_manipulation_program():
execute_test(programs.stack_manipulation)
def test_stack_arithmetic_program():
execute_test(programs.arithmetic)
def test_heap_program():
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.assertTrue(1 == 1)
if __name__ == "__main__":
unittest.main()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from django.contrib.sites.models import Site
sites = models.ForeignKey(Site, verbose_name=_("Webs"), related_name="related_sites", )
def __unicode__(self):
return "#%s %s" % (self.id, self.title)
def save(self, *args, **kwargs):
super(Ticket, self).save(*args, **kwargs)
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
* @return Apishka_SocialLogin_StorageInterface
*/
public function set()
{
$args = func_get_args();
$value = array_pop($args);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#include "my_tools.hpp"
using namespace std;
int rand_int(int min, int max)
{
return min + rand() % (max - min + 1);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Bcontroller extends Controller
{
public function botonuno(){
return view('mapa');
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return await self.redis.hmset(key, data)
async def get_len(self, key: str):
return await self.redis.hlen(key)
async def get_all(self, key: str):
return await self.redis.hgetall(key)
async def touch(self, key: str):
return await self.redis.touch(key) | ise-uiuc/Magicoder-OSS-Instruct-75K |
tg.read(self.tg_file, 2)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<gh_stars>10-100
package com.toomasr.sgf4j.parser;
import java.nio.file.Paths;
import org.junit.Assert;
import org.junit.Test;
import com.toomasr.sgf4j.Sgf;
public class TestShow3Moves {
@Test
public void testNumberOfMoves() {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
k: SomeRenamedError.Code
) {
// CHECK-objc: type: SomeClass for 'a' mangled=$SSo11SNSomeClassCD
_ = a
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def post(self, request, *args, **kwargs):
self.object = self.get_object()
return super().post(request, *args, **kwargs)
def form_valid(self, form):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
/////////////////////////////
//
// Show while right-click
//
/////////////////////////////
dlg.RMB_Show(); // destructor automatically called afterwards
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
gMainProgressBar = mel.eval('$tmp = $gMainProgressBar');
return gMainProgressBar
def get_node_editors():
found = []
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header">Dashboard</div>
<div class="card-body">
| ise-uiuc/Magicoder-OSS-Instruct-75K |
num_classes=1000
testloader = torch.utils.data.DataLoader(testset, batch_size=1000, shuffle=False, pin_memory=True, num_workers=30)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
};
Some(size)
}
fn format_as_hex(number: usize) -> String {
format!("0x{:x}", number)
}
fn hyphen() -> String {
"-".to_string()
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# TODO: Find out if you can reconstruct chopped trees from the tracker:
import sys
sys.path.append("../")
from Cell_IDs_Analysis.Plotter_Lineage_Trees import PlotLineageTree
raw_file = "/Volumes/lowegrp/Data/Kristina/MDCK_90WT_10Sc_NoComp/17_07_24/pos13/analysis/channel_RFP/cellIDdetails_raw.txt"
xml_file = "/Volume... | ise-uiuc/Magicoder-OSS-Instruct-75K |
slack_user = input("slack username:")
slack_web_hook = input("slack webhook url:")
print("To add a new service please provide the name and url")
name, url, status = input("name:"), input("url:"), input("status code check:")
config['timeout'] = int(timeout)
config['slack_... | ise-uiuc/Magicoder-OSS-Instruct-75K |
<gh_stars>0
import { ContentObjectSubtype } from "./content-object-subtype";
import { ContentObjectType } from "./content-object-type";
import { IContentObjectOptions } from "./i-content-object-options";
export interface IContentObjectParameters {
options: IContentObjectOptions,
subtype: ContentObjectSubtype;
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
message_id
)
return self.protocol.dumps(enveloped_struct)
def envelope_wrap(self,denormalized_struct,connection,message_id):
if isinstance(denormalized_struct,NormalizedData):
enveloped_struct = denormalized_struct.stru... | ise-uiuc/Magicoder-OSS-Instruct-75K |
apt-get update
apt-get upgrade -y
echo " Essencial softwares..."
apt install -y --force-yes build-essential curl git rar zip unzip vim tilix postgresql-client-13 ffmpeg ffmpegthumbnailer neofetch libobs-dev
echo "Installing Vscode..."
snap install -y --force-yes --classic code
| ise-uiuc/Magicoder-OSS-Instruct-75K |
elif query['sort']['key'] == 'title':
sort_key = 'title'
elif query['sort']['key'] == 'visits':
sort_key = 'visits'
elif query['sort']['key'] == 'relevance':
sort_key = 'text_search_score'
else:
# This should never happen
raise ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
if jerr < 7777:
raise RuntimeError("Memory allocation error (glmnet error no. {})."
.format(jerr))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
student_score = float(input ("Enter the student score:"))
if student_score >= 1.0 and student_score <= 39.9:
print("student_score is F9", "fail")
elif student_score >= 40 and student_score <= 49.9:
print("student_score is E8", "pass" )
elif student_score >= 50 and student_score <= 59.9:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
};
// ========================================================
// Props
// ========================================================
export type Props<T = {}> = T & ObjectOf<any>;
export type ReactChildren = React.ReactNodeArray | React.ReactNode;
export type ComponentEventHandler<TProps> = (event: React.SyntheticEve... | ise-uiuc/Magicoder-OSS-Instruct-75K |
}
return ejs.compile(template.html)(data);
}
public async send(user: User, data: SendEmailDto) {
const newReceiversAdded = user.addReceivers(data.receivers);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
maintainer = "q66 <<EMAIL>>"
license = "custom:none"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def test_first_only(self, mock_fetch):
"""Function: test_first_only
Description: Test with first argument only.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
else { return }
let sut = Text("abc \(Image("test"))")
let value = try sut.inspect().text().string()
XCTAssertEqual(value, "abc Image(\"test\")")
}
func testCustomTextInterpolation() throws {
let sut = Text("abc \(braces: "test")")
let value = try sut.inspect... | ise-uiuc/Magicoder-OSS-Instruct-75K |
then
exit 3
fi
exit 0
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Self { albedo }
}
}
impl Material for Lambertian {
fn scatter(
&self,
_r_in: &Ray,
rec: &HitRecord,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
`adafruit_hid`
====================================================
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@main.route("/")
def index():
u = current_user()
template = render_template("index.html", user=u)
r = make_response(template)
r.set_cookie('cookie_name', 'GUA')
return r
@main.route("/register", methods=['POST'])
def register():
form = request.form
u = User.register(form)
return redire... | ise-uiuc/Magicoder-OSS-Instruct-75K |
let mut col_min = 1;
for row in 1..= a.len() {
let mut go_down = false;
for col in col_min..= b.len() {
if dp[row][col] == true {
let val_b = b[col-1];
let val_a = a[row-1];
if val_a == val_b {
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
mRecyclingAction.runIfNecessary(recyclerview);
// 73 156:aload_0
// 74 157:getfield #31 <Field RecyclerView$SmoothScroller$Action mRecyclingAction>
// 75 160:aload 4
// 76 162:invokevirtual #153 <Method void RecyclerView$SmoothScroller$Action.runIfNecessary(RecyclerView)... | ise-uiuc/Magicoder-OSS-Instruct-75K |
token::intern_and_get_ident(&self.get_crate_data(cnum).name[..])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@app.errorhandler(404)
def page_not_found(error):
return render_template('page_not_found.html'), 404
@app.route("/ne2001")
def ne2001landing():
return render_template("ne2001form.html", name="Enter l, b, d for NE2001 calculation")
@app.route("/coord")
def coordlanding():
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.ax.set_xlim(min(x_values), max(x_values))
self.line.set_ydata(y_values)
self.line.set_xdata(x_values)
class DisplayRange(DisplayAll):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
await pool.executeStatement('SELECT 0 AS "defunct"')
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return $this->sendSavedItemResponse($request, $product);
}
/**
* @param ProductItem $product
* @param array $images
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#!/usr/bin/env ash
exec "$@"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
PARAMS = {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
List<Boolean> t = b ? t1 : t2;
int i = r.nextInt(l.size());
if (t.get(i))
{
mf.removeChildLabel(l.get(i));
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
use mitrid_core::io::{Method, Resource};
use io::network::message::message::message::*;
pub struct PingMessage;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import math as m
def unique(socks_pile):
unique_pile=[]
for i in socks_pile:
if i not in unique_pile:
unique_pile.append(i)
else:
continue
return unique_pile
def sockCount(unique_pile, ar):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
</div>
<div class="col-md-6 px-1">
<div class="form-group">
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let perTypeID = storage[
ObjectIdentifier(T.self),
// Note: This is a safe upcast.
default: AnyElementArrayBuffer(
unsafelyCasting: AnyDifferentiableArrayBuffer(ArrayBuffer<T>()))
].unsafelyAppend(value)
return TypedID(perTypeID)
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import Foundation
public class SandboxFileAccessPersist: SandboxFileAccessProtocol {
public func bookmarkData(for url: URL) -> Data? {
let defaults = UserDefaults.standard
// loop through the bookmarks one path at a time down the URL
var subURL = url
while (subURL.pat... | ise-uiuc/Magicoder-OSS-Instruct-75K |
// Created by Ashish Kapoor on 23/04/17.
// Copyright © 2017 Ashish Kapoor. All rights reserved.
//
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Apache License 2.0
from .small import *
from .medium import *
from .large import * | ise-uiuc/Magicoder-OSS-Instruct-75K |
return C
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# 行情卡续订
quote_card_renew = DAG(
"quote_card_renew",
catchup=False,
start_date=pendulum.datetime(2022, 7, 1),
schedule_interval='0 */2 1,2 * *',
default_args={
"owner": "hujing",
"depends_on_past": False,
"retries": 0,
}
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Drop 'body_type' column (duplicate of 'body')
df.drop('body_type', axis=1, inplace = True)
# Drop 'next_inspection' column (created a new column 'next_inspection_bool')
df.drop('next_inspection', axis=1, inplace = True)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
rm ./example_def.json
| ise-uiuc/Magicoder-OSS-Instruct-75K |
permission_classes = (IsAuthenticated,)
filter_backends = generics.ListAPIView.filter_backends + [UserShareFilter,ShareTagFilter,GroupShareFilter]
filter_fields = {'name':['icontains'],'notes':['icontains'],'owner__username':['icontains'],'path_exists':['exact']}
ordering_fields = ('name','owner__userna... | ise-uiuc/Magicoder-OSS-Instruct-75K |
so = Solution()
nums = [1,2,3]
res = so.subsets(nums)
print(res) | ise-uiuc/Magicoder-OSS-Instruct-75K |
{
public int Yes { get; set; }
public int No { get; set; }
}
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
template_name = 'projects/html/projects.html' | ise-uiuc/Magicoder-OSS-Instruct-75K |
if not args.crop == "True":
# scale down if bigger than max size
re_scale = (float(args.max_edge) / float(im_size_max))
im = cv2.resize(im, None, None, fx=re_scale, fy=re_scale,
interpolation=cv2.INTER_LINEAR)
global_scale = global_scale*re_scale
crop_box = [0,0,im.... | ise-uiuc/Magicoder-OSS-Instruct-75K |
import logging
from contextlib import contextmanager
from typing import Any, Dict, Generator, TypeVar, Union
import torch
from composer.core import Precision
from composer.trainer.devices.device import Device, T_nnModule
logger = logging.getLogger(__name__)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
PlayerCharacter {
position: Vec3::new(0.0, 0.0, 1.0),
speed: 0.0,
facing: Direction::Right,
sprite: PLAYER_SPRITE,
}
}
pub fn update_sprite_index(&mut self) -> u32 {
if self.speed == 0.0 {
self.sprite.current_index = self.stil... | ise-uiuc/Magicoder-OSS-Instruct-75K |
#
# http://www.apache.org/licenses/LICENSE-2.0
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for j in range(nb_joints):
d = y_pred[:,s,:,j]
yp[s, 0, j] = d[:,0].mean()
yp[s, 1, j] = d[:,1].mean()
return yp
| ise-uiuc/Magicoder-OSS-Instruct-75K |
func testImplicitlyUnwrappedOptionalProperty() {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
../minim "examples/$file" > "/dev/null"
done
echo "Done."
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
ListNavigationLink(destination: Text("Page 3")) {
Label("A long link to page 3", systemImage: "rectangle.and.pencil.and.ellipsis")
}
ListNavigationLink(destination: Text("Page 4")) {
ListText("Text with icon and su... | ise-uiuc/Magicoder-OSS-Instruct-75K |
df[output_key] = preds
#del test_df['predicted_deaths_exponential']
return df
elif method == 'shared_exponential':
# Fit a poisson GLM with shared parameters across counties. Input to the poisson GLM is demographic_vars and log(previous_days_deaths+1)
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
use k9::assert_matches_snapshot;
use std::collections::BTreeMap;
#[test]
fn basic_test() {
super::setup_test_env();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
else:
model = self._gas_model(
wave,
param[:self.nlines+2])
model += self._baseline_model(
wave,
param[-1-self.baseline_order:],
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
[Header("Move State Settings")]
public float movementSpeed = 7f;
public float jumpSpeed = 40f;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<td style="width: 3%"><p style="font-size: 12px; margin-left: 10px">3.</p></td>
<td style="width: 40%"><p style="font-size: 12px; margin-left: 1px">Tindakan yang dilakukan oleh</p></td>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print ("Hooray!!")
while True:
print("this is an infinite loop")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
password='<PASSWORD>@',
sslmode='require',
sslrootcert='certs/ca.crt',
sslkey='certs/client.maxroach.key',
sslcert='certs/client.maxroach.crt',
port=26257,
host='free-tier.gcp-us-central1.cockroachlabs.cloud'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
triplets[phase] = found
return triplets
| ise-uiuc/Magicoder-OSS-Instruct-75K |
make frontend
(cd deploy ; exec python -m http.server 8888 )
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@endforeach
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$rbac = Podium::getInstance()->getRbac();
if (!$role = $rbac->getRole($role)) {
$this->stderr('No such role.' . PHP_EOL);
return self::EXIT_CODE_ERROR;
}
if (strpos($role->name, 'podium') === 0) {
$this->setPodiumUserRole($user, $role);
} else ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
return _userPersonalizationRepository.DeleteById(entity.UserCustomizationId);
}
return true;
}
public bool DeleteById(Guid id)
{
return _userPersonalizationRepository.DeleteById(id);
}
public Domain.UserPersonalization Convert... | ise-uiuc/Magicoder-OSS-Instruct-75K |
cv2.imshow('Grey SelfCam' , frame)
print("FPS: {}".format(1/(time.time() - last_time)))
if cv2.waitKey(1) & 0xFF == ord('q'):
break
cap.release()
cv2.destroyAllWindows() | ise-uiuc/Magicoder-OSS-Instruct-75K |
public void run() {
setDefaultOptions();
sslConfig = buildSslConfig();
logUnusedOptions();
final MqttClient client = connect();
sslConfig = null;
ShellContextCommand.updateContext(client);
}
private @Nullable MqttClient connect() {
Logger.trace("Comm... | ise-uiuc/Magicoder-OSS-Instruct-75K |
class InvalidECFGFormatException(Exception):
pass
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class role_required:
"""
Check if user has the required roles
"""
def __init__(self, student=False, teacher=False, cd=False, admin=False):
self.student = student
self.teacher = teacher
self.cd = cd
self.admin = admin
def __call__(self, f):
@wraps(f)
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
if [ -f 'webAssembly/dist/logigator-simulation.wasm' ] && [ ! -d 'webAssembly/emscripten' ]; then
exit 0
fi
if [ ! -d 'webAssembly/emscripten' ]; then
git clone https://github.com/emscripten-core/emsdk.git webAssembly/emscripten || exit 1
bash webAssembly/emscripten/emsdk install latest
fi
| ise-uiuc/Magicoder-OSS-Instruct-75K |
s.push(cur);
cur = cur->left;
}
while(k--){
cur = s.top();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
right=False)
## Except 'height', 'weight', 'avg', grouping df by 'avg_category', 'handedness'
## And add all sub-group's entries
avg_handedness_count_df = df.drop(['height', 'weight', 'avg'], axis=1).groupby(by=['avg_category', 'handedness']).sum().reset_index()
avg_partical_count = df.drop(['height', 'weight',... | ise-uiuc/Magicoder-OSS-Instruct-75K |
print 'Process binary was not signed:', proc.binary.signing_data
def testAllEvents(self):
print 'all events:'
for event in self.sample_proc.all_events:
print event.timestamp,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return AnimatedFrame(image: newImage, duration: duration)
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""Perform one generation (step) of the genetic algorithm.
The step method assumes an evaluated Population and performs parent
selection and variation (producing children).
"""
super().step()
self.population = Population(
[self._make_child() for _ in range(s... | ise-uiuc/Magicoder-OSS-Instruct-75K |
* The Jira Cloud platform REST API
*
* Jira Cloud platform REST API documentation
*
* The version of the OpenAPI document: 1001.0.0-SNAPSHOT
* Contact: <EMAIL>
* Generated by: https://openapi-generator.tech
*/
/// SearchResults : The result of a JQL search.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
possible_codes = init_possible_codes.copy()
guesses = set()
# 2. Start with initial guess 1122
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public virtual uint BoundCY { get; set; }
public virtual string DataString { get; set; }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
fn test_nickname_validation() {
assert!(valid_nick("FooBar123"))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
n = S3Notification(s3_notification)
records = []
for e in n.events:
records += e.datalake_records
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#faulty sensor data
id = random.randint(1001,2000)
Today= datetime.datetime.today()
date_list = [Today + datetime.timedelta(minutes=15*x) for x in range(0, 1000)]
range_list=np.linspace(1,2,1000)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.font_size
}
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_font_props() {
let props = ToBitmapFont::new(16, NOTO_SANS_MONO_REGULAR);
println!("bitmap_height = {}", props.bitmap_height());
println!("bitmap_width = {}", props.bitmap_width());
prin... | 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.