seed
stringlengths
1
14k
source
stringclasses
2 values
class Interval(object): def __init__(self, delay_time: int): self.delay_time = delay_time self.current_time = 0
ise-uiuc/Magicoder-OSS-Instruct-75K
} #[doc = "Clock source from HXT"] #[inline(always)] pub fn _0(self) -> &'a mut W { self.variant(STCLKSEL_A::_0) } #[doc = "Clock source from LXT"] #[inline(always)] pub fn _1(self) -> &'a mut W { self.variant(STCLKSEL_A::_1) } #[doc = "Clock source from HXT/2"] ...
ise-uiuc/Magicoder-OSS-Instruct-75K
"queryChanges", "GET", "/filevantage/queries/changes/v2", "Returns one or more change IDs", "filevantage", [ { "minimum": 0, "type": "integer", "description": "The first change index to return in the response. " "If not provided it will default to '0'. " ...
ise-uiuc/Magicoder-OSS-Instruct-75K
if admin_id: if is_admin(admin_id):
ise-uiuc/Magicoder-OSS-Instruct-75K
final class ProgressWindowController: NSWindowController { }
ise-uiuc/Magicoder-OSS-Instruct-75K
z = zipfile.ZipFile(io.BytesIO(zip_data)) z.extractall(os.getcwd()) def build_log_push(build_info): with open(build_info['log']) as f: build_log = f.read() + "\n" + build_info['build_exception'] build_log_key = 'builds/' + build_info['log']
ise-uiuc/Magicoder-OSS-Instruct-75K
include_package_data=True, classifiers=[ "Programming Language :: Python :: 3", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", ], python_requires=">=3.6", )
ise-uiuc/Magicoder-OSS-Instruct-75K
@Test @DisplayName("Binding Exchange and Queue") @Order(5) void successBindQueue(VertxTestContext testContext) { JsonObject expected = new JsonObject() .put(TYPE, SUCCESS); JsonObject request = new JsonObject()
ise-uiuc/Magicoder-OSS-Instruct-75K
Returns: float: the current timestamp on the run directory filesystem. """
ise-uiuc/Magicoder-OSS-Instruct-75K
""" Setup the dataset. """ self.count = len(self.image_ids) self.num_batches = int(np.ceil(self.count * 1.0 / self.batch_size)) self.fake_count = self.num_batches * self.batch_size - self.count self.idxs = list(range(self.count)) self.reset() def reset(self):
ise-uiuc/Magicoder-OSS-Instruct-75K
cp += ZComplex( dFreq * dFreq * dFreq * dFreq * pPoly[4], 0.0); return cp; // 4th order }
ise-uiuc/Magicoder-OSS-Instruct-75K
return resp @jwt.revoked_token_loader def my_revoked_token_callback(e): resp = jsonify({ 'status': 401, 'sub_status': 5, 'description': e, 'message': MSG_INVALID_CREDENTIALS }) resp.status_code = 401
ise-uiuc/Magicoder-OSS-Instruct-75K
import json
ise-uiuc/Magicoder-OSS-Instruct-75K
def get_angle_plot(line1, line2, radius=1, color=None, origin=(0, 0), len_x_axis=1, len_y_axis=1): l1xy = line1.get_xydata() # Angle between line1 and x-axis l1_xs = l1xy[:, 0] l1_ys = l1xy[:, 1] angle1 = np.degrees(np.arctan2(np.diff(l1_ys), np.diff(l1_xs)))
ise-uiuc/Magicoder-OSS-Instruct-75K
// } //} }
ise-uiuc/Magicoder-OSS-Instruct-75K
] operations = [ migrations.RemoveField( model_name='registration', name='transaction_id', ), migrations.AddField( model_name='registration', name='college', field=models.CharField(default='', max_length=200), ), ...
ise-uiuc/Magicoder-OSS-Instruct-75K
public static final String[] PERMISSION_FOR_EXPORT = new String[]{ Manifest.permission.WRITE_EXTERNAL_STORAGE, com.ichi2.anki.api.AddContentApi.READ_WRITE_PERMISSION
ise-uiuc/Magicoder-OSS-Instruct-75K
/** * @method string getAccessKeyId()
ise-uiuc/Magicoder-OSS-Instruct-75K
""" with self._db.begin() as transaction: return [dsid[0] for dsid in transaction.all_dataset_ids(archived)] def get_field_names(self, product_name=None): """ Get the list of possible search fields for a Product :param str product_name: :rtype: set[str] ...
ise-uiuc/Magicoder-OSS-Instruct-75K
num=20 num1=10 isgreaterthan20(num,num1)
ise-uiuc/Magicoder-OSS-Instruct-75K
const repeatCount = i - notRepeatIndex; if (repeatCount > 1) groupList.push(`${currentVal}x${repeatCount}`); else groupList.push(currentVal); currentVal = checkVal; notRepeatIndex = i;
ise-uiuc/Magicoder-OSS-Instruct-75K
print(factorial(80))
ise-uiuc/Magicoder-OSS-Instruct-75K
difference.append(diff) np.array(difference) plt.plot(difference, linewidth=0.1, color = 'black') plt.yticks(np.arange(-0.05, 0.050, step=0.010))
ise-uiuc/Magicoder-OSS-Instruct-75K
# <<MacroName>>
ise-uiuc/Magicoder-OSS-Instruct-75K
from .data import Batcher, TokenBatcher from .model import BidirectionalLanguageModel, dump_token_embeddings, \ dump_bilm_embeddings from .elmo import weight_layers
ise-uiuc/Magicoder-OSS-Instruct-75K
pub const MTU: usize = 1600;
ise-uiuc/Magicoder-OSS-Instruct-75K
config += " speed auto\n" config += " duplex auto\n"
ise-uiuc/Magicoder-OSS-Instruct-75K
} return ANDROID_BITMAP_RESUT_SUCCESS; } int AndroidBitmap_lockPixels(JNIEnv* env, jobject jbitmap, void** addrPtr) { if (NULL == env || NULL == jbitmap) { return ANDROID_BITMAP_RESULT_BAD_PARAMETER; } SkBitmap* bm = GraphicsJNI::getNativeBitmap(env, jbitmap); if (NULL == bm) { ...
ise-uiuc/Magicoder-OSS-Instruct-75K
impl Max<B1> for B1 { type Output = B1;
ise-uiuc/Magicoder-OSS-Instruct-75K
# version of the graw package __version__ = "0.1.0"
ise-uiuc/Magicoder-OSS-Instruct-75K
# Fila con la sumatoria de todas las filas es la probabilidad marginal de Y marg_value_y = [n for n in data.sum(axis=0, numeric_only=True)] print("\nValor marginal de X: ", marg_value_x) print("\nValor marginal de Y: ", marg_value_y) x_curva_modelo, x_mu, x_sigma = ajuste_curva(marg_value_x, 5, 15, distribucion_normal,...
ise-uiuc/Magicoder-OSS-Instruct-75K
def summarize(vars, df): '''
ise-uiuc/Magicoder-OSS-Instruct-75K
_environment = None def global_env():
ise-uiuc/Magicoder-OSS-Instruct-75K
email = email.replace(char, "-") print(email) elif command == "Encrypt": for s in email: print(ord(s), end=" ")
ise-uiuc/Magicoder-OSS-Instruct-75K
0b010000000000000000000000000000000000, 0b000000000000000000000000000111100000, 0b000111100000000000000000000000011100,
ise-uiuc/Magicoder-OSS-Instruct-75K
namespace PHPKitchen\Domain\Contracts; /** * Defines interfaces for recovered entities functionality of DB repository. * * @package PHPKitchen\Domain\Contracts * @author <NAME> <<EMAIL>> */ interface RecoverableRepository { public function recover(DomainEntity $entity); }
ise-uiuc/Magicoder-OSS-Instruct-75K
flags.DEFINE_integer("train_batch_size", 32, "Total batch size for training.")
ise-uiuc/Magicoder-OSS-Instruct-75K
self.bagger_dump() self.first = False
ise-uiuc/Magicoder-OSS-Instruct-75K
labels_ = torch.zeros(torch.numel(labels), 10, device=labels.device) labels_ = labels_.scatter_(1, labels.view(-1, 1), 1) loss = criterion(preds, labels_) num_corrects += torch.argmax(preds, dim=1).eq(labels).sum(dim=0) total_loss += loss.cpu().detach().nump...
ise-uiuc/Magicoder-OSS-Instruct-75K
./gradlew clean build -x test publishToMavenLocal -Plocal=true
ise-uiuc/Magicoder-OSS-Instruct-75K
save_list.destroy(); RemoveDirectory(GetSaveDirectory(p)); } // +--------------------------------------------------------------------+ void CampaignSaveGame::SaveAuto() {
ise-uiuc/Magicoder-OSS-Instruct-75K
def test_vt_dispute_findings_message_creates_two_tables(self): table_names = [table['table'] for table in self.convert_to_tables('vt_dispute_finding.json')] assert table_names[0] == 'etk.events' assert table_names[1] == 'etk.dispute_findings' assert len(table_names) == 2 def tes...
ise-uiuc/Magicoder-OSS-Instruct-75K
set -e # The output is like: # 9.14233e-05 -0.259833 # we do expect the first of these 2 numbers to be close to zero (the second is # nonzero because the backoff weights make the states sum to >1). # Because of the <s> fiasco for these particular LMs, the first number is not # as close to zero as it could...
ise-uiuc/Magicoder-OSS-Instruct-75K
print("The substring between @ and # is:",a[b+1:c])
ise-uiuc/Magicoder-OSS-Instruct-75K
* @return * @throws Exception
ise-uiuc/Magicoder-OSS-Instruct-75K
} static func csComponent(forModel model: Any, context: Any?) -> Component? { return CompositeComponent( view: ViewConfiguration( attributes: A.backgroundColor(.white) ), component: AnimatedComponent(model: 0)...
ise-uiuc/Magicoder-OSS-Instruct-75K
trueForwardReturn = mp.exposure fakeForwardReturn = trueForwardReturn * scaler + np.random.normal(scale=sigma, size=4000) if self.lastvalue is None: thisvalue = fakeForwardReturn else: thisvalue = self.lastvalue * (1 - shrinkage) + fakeForwardReturn * shrinkage ...
ise-uiuc/Magicoder-OSS-Instruct-75K
for input in inputs { let query = sql::parse(input).unwrap(); assert_eq!(input, format!("{}", query)); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
ExclusiveStartKey=scan_response["LastEvaluatedKey"] ) else: break for key in delete_keys: ddb_table.delete_item(Key={"filename": key})
ise-uiuc/Magicoder-OSS-Instruct-75K
return redirect('lista:home')
ise-uiuc/Magicoder-OSS-Instruct-75K
connection_uri = arg_obj.connection_uri if arg_obj.schema is None: schema = config["schema"] else: schema = arg_obj.schema if arg_obj.load_full_concept_files: vocabularies_to_load = ["CONCEPT", "CONCEPT_ANCESTOR", "CONCEPT_CLASS", "CONCEPT_RELATIONSHIP",
ise-uiuc/Magicoder-OSS-Instruct-75K
use crate::{get_box_size, parse_float}; #[derive(Debug, Default, Copy, Clone)] pub struct Bounded { pub x: i32, pub y: i32, pub z: i32,
ise-uiuc/Magicoder-OSS-Instruct-75K
else: # models.py module app_paths.append(upath(app.__file__))
ise-uiuc/Magicoder-OSS-Instruct-75K
/// /// # Panics /// /// This function panics if actix system is not running. pub fn spawn<F>(f: F) where F: futures::Future<Output = ()> + 'static, { if !System::is_set() {
ise-uiuc/Magicoder-OSS-Instruct-75K
print('centenas: {}'.format(c)) print('milhares: {}'.format(m))
ise-uiuc/Magicoder-OSS-Instruct-75K
#[cfg(feature = "runtime_async_std")] fn main() { println!("This example is only compatible with Tokio.") }
ise-uiuc/Magicoder-OSS-Instruct-75K
{ timestamp: new Date(startDate), kilowattHours: 100, co2e: 10, usesAverageCPUConstant: false, }, { timestamp: new Date(endDate), kilowattHours: 100, co2e: 10, usesAverageCPUConstant: false, },
ise-uiuc/Magicoder-OSS-Instruct-75K
internal static class Db {
ise-uiuc/Magicoder-OSS-Instruct-75K
sudo yum install lapack-3.4.2-5.el7.ppc64le -y sudo yum install lapack-static.ppc64le -y sudo yum install lapack-devel.ppc64le -y # download and unpack wget https://sourceforge.net/projects/mcmc-jags/files/JAGS/4.x/Source/JAGS-4.2.0.tar.gz tar -xzvf JAGS-4.2.0.tar.gz cd JAGS-4.2.0
ise-uiuc/Magicoder-OSS-Instruct-75K
""" Save image to local dick """
ise-uiuc/Magicoder-OSS-Instruct-75K
worklist = [(retval, field[0], value)] while len(worklist) > 0: workItem = worklist.pop() obj = workItem[0] keyPath = workItem[1]
ise-uiuc/Magicoder-OSS-Instruct-75K
import { DynamicFormDefinition } from '../dynamic-form/dynamic-form-definition'; import { DynamicFormBuilder } from '../dynamic-form/dynamic-form.builder'; import { DynamicFormAction } from './dynamic-form-action'; export class DynamicFormDialog extends DynamicForm { protected _action: DynamicFormAction; construc...
ise-uiuc/Magicoder-OSS-Instruct-75K
width: 8px; height: 8px; border: 3px solid palette(dark); border-radius: 7px; } QRadioButton::indicator:checked {
ise-uiuc/Magicoder-OSS-Instruct-75K
# # Start Visor console. # case $osname in Darwin*) "$JAVA" ${JVM_OPTS} ${QUIET} "${DOCK_OPTS}" \ -DIGNITE_UPDATE_NOTIFIER=false -DIGNITE_HOME="${IGNITE_HOME}" -DIGNITE_PROG_NAME="$0" \ -DIGNITE_DEPLOYMENT_MODE_OVERRIDE=ISOLATED ${JVM_XOPTS} -cp "${CP}" \ org.apache.ignite.visor.com...
ise-uiuc/Magicoder-OSS-Instruct-75K
#[macro_use] extern crate serde_json; use elastic::prelude::*;
ise-uiuc/Magicoder-OSS-Instruct-75K
self.conoha.power_on_vm, 'jkfljklruin' ) """ Normal test """ while True: vm, vm_status_code = self.conoha.get_vm_detail_specified( self.__server_id ) self.check_response_values(vm, vm_status_code, 200) if vm[...
ise-uiuc/Magicoder-OSS-Instruct-75K
@push('scripts-add_on') <script>
ise-uiuc/Magicoder-OSS-Instruct-75K
{ protected $fillable = [ 'title', 'content', 'user_id',
ise-uiuc/Magicoder-OSS-Instruct-75K
use model to test data Args: test_data """ result = self.model.run(test_data) batch = {'route': test_data['route'], 'result': result, 'rd_nwk': test_data['rd_nwk']}
ise-uiuc/Magicoder-OSS-Instruct-75K
# pages. bill_metainf['extra'] = { "motion" : motion } votes = [] for t in table.xpath("./tr/td"): nodes = t.xpath("./*") for node in nodes: if node.tag == "span": vote = node.t...
ise-uiuc/Magicoder-OSS-Instruct-75K
anRA.inputNeighborWarning() #neighbour warnings issued to anRA anRA.doChAssign()
ise-uiuc/Magicoder-OSS-Instruct-75K
// - Only use `short` with an explicit arg (`short = "x"`) // - Only use `long` with an implicit arg (just `long`) // - Unless it needs a different name, but then also use `name = "..."` // - Add an uppercase value_name to options that take a value /// xh is a friendly and fast tool for sending HTTP requests. /// //...
ise-uiuc/Magicoder-OSS-Instruct-75K
parameters.push(BaseIfc.toStepValue(this.GlobalId)) parameters.push(BaseIfc.toStepValue(this.OwnerHistory)) parameters.push(BaseIfc.toStepValue(this.Name)) parameters.push(BaseIfc.toStepValue(this.Description)) parameters.push(BaseIfc.toStepValue(this.TemplateType)) parameters.push(BaseIfc.toStepValue(this....
ise-uiuc/Magicoder-OSS-Instruct-75K
/** * @param args the command line arguments */ public static void main(String[] args) {
ise-uiuc/Magicoder-OSS-Instruct-75K
def read_yaml_configs(config_folder: str, config, config_objects: dict, secrets: dict) -> dict: """ Read all yaml based configuration files from config folder and subfolders and return dict of all found config objects :param config_folder: the folder to read from
ise-uiuc/Magicoder-OSS-Instruct-75K
} public Customer Customer { get; } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
return self.right_child def set_data(self, data): """ for setting the data of a node """ self.data = data def get_data(self): """ returns the data of the current node
ise-uiuc/Magicoder-OSS-Instruct-75K
with app.app_context():
ise-uiuc/Magicoder-OSS-Instruct-75K
# Install phive with a way following below site. # https://phar.io/ DOT_DIR="$HOME/wsl-dotfiles" INSTALL_DIR="${HOME}/.cache/mybuild/bin" . "${DOT_DIR}/etc/lib/sh/has.sh" if ! has "phive"; then if [ ! -d "${INSTALL_DIR}" ]; then mkdir -p "${INSTALL_DIR}" fi if ! has "wget"; then
ise-uiuc/Magicoder-OSS-Instruct-75K
todo_store.append(todo) return todo # Read - List @app.get("/todo/", response_model = List[Todo]) async def get_all_todos(): return todo_store # Read - Detail @app.get("/todo/{id}") async def get_todo_by_id(id : int): try:
ise-uiuc/Magicoder-OSS-Instruct-75K
if __name__ == "__main__": go()
ise-uiuc/Magicoder-OSS-Instruct-75K
g++ --std=c++20 -pthread -o ../_build/cpp/keyword_or.exe ./cpp/keyword_or.cpp && (cd ../_build/cpp/;./keyword_or.exe) https://en.cppreference.com/w/cpp/keyword/or */ #include <iostream> void show(bool z, const char* s, int n) { const char* r{z ? " true " : " false "}; if (n == 0) std::cout << "┌───────────────...
ise-uiuc/Magicoder-OSS-Instruct-75K
); } let mut use_list: Vec<PServer> = Vec::new(); let random = rand::thread_rng().gen_range(0, server_list.len()); //from list_server find need_num for use let mut index = random % server_list.len(); let mut detected_times = 1;
ise-uiuc/Magicoder-OSS-Instruct-75K
from appJar import gui def DoExit(opt): if app.yesNoBox("Confirm exit","Exit sub window now?", parent="SUB1"):
ise-uiuc/Magicoder-OSS-Instruct-75K
"debpackage", "file",
ise-uiuc/Magicoder-OSS-Instruct-75K
def register_options(cls, register): super().register_options(register) register( "--absolute", type=bool, default=True, help=( "If True, output with absolute path; else, output with path relative to the " "build root."
ise-uiuc/Magicoder-OSS-Instruct-75K
con = MongoClient(mongo_host,port=int(mongo_port), **{"socketKeepAlive":True}) con.linkedbooks_dev.authenticate(mongo_user, mongo_pwd, source=mongo_auth) db_source = con.linkedbooks_dev # DEV the development DB
ise-uiuc/Magicoder-OSS-Instruct-75K
export { default as getCountries } from './core/get-countries'; export { default as getMediaByLocation } from './core/get-media-by-location'; export { default as getMediaByPlaceId } from './core/get-media-by-place-id'; export { default as getMediaByPostId } from './core/get-media-by-post-id'; export { default as getMed...
ise-uiuc/Magicoder-OSS-Instruct-75K
unsafe { let b2: __m128 = hi_dp_bc(self.p1_, self.p1_); let s: __m128 = rsqrt_nr1(b2); let bc: __m128 = hi_dp_bc(self.p1_, self.p2_); let t: __m128 = _mm_mul_ps(_mm_mul_ps(bc, rcp_nr1(b2)), s);
ise-uiuc/Magicoder-OSS-Instruct-75K
</p> </a>
ise-uiuc/Magicoder-OSS-Instruct-75K
x = (x-xmin)/xnorm arrList = [] for ii in range(yOrder + 1): yfact = np.power(y, ii) for jj in range(yOrder + 1-ii): temp = np.power(x,jj)* yfact arrList.append(temp.reshape((temp.size,1))) A = np.hstack(arrList) A = A / snr[:,None] b = dy / snr
ise-uiuc/Magicoder-OSS-Instruct-75K
define('_MD_BLOG_ADMIN', 'Blog');
ise-uiuc/Magicoder-OSS-Instruct-75K
<< demand_matrix->elements().size(); } ctr::PathProvider path_provider(&graph); std::unique_ptr<ctr::Optimizer> opt; if (FLAGS_sp_opt) { opt = nc::make_unique<ctr::ShortestPathOptimizer>(&path_provider); } else { opt = nc::make_unique<ctr::CTROptimizer>(&path_provider,
ise-uiuc/Magicoder-OSS-Instruct-75K
pub const OLDADR: *mut *mut u8 = 0x5e as *mut *mut u8; pub const SDMCTL: *mut u8 = 0x22f as *mut u8; pub const SDLST: *mut *mut u8 = 0x230 as *mut *mut u8; pub const SDLSTL: *mut u8 = 0x230 as *mut u8; pub const SDLSTH: *mut u8 = 0x231 as *mut u8; pub const CRSINH: *mut u8 = 0x2f0 as *mut u8;
ise-uiuc/Magicoder-OSS-Instruct-75K
except: path = name run(['code', path])
ise-uiuc/Magicoder-OSS-Instruct-75K
def log_learn_entry(self, examples_to_learn_from):
ise-uiuc/Magicoder-OSS-Instruct-75K
outputSSH=$($commandSSH 2> /dev/null) echo "***" echo "Test 4 - from Internet to VM1B public IP ${vm1a_public_ip}" echo $outputSSH echo "***"
ise-uiuc/Magicoder-OSS-Instruct-75K
export default async (stringArgs = '') => { const docmap = new __SDocMap(); const pro = await __SProcess.from(docmap.build.bind(docmap), {
ise-uiuc/Magicoder-OSS-Instruct-75K
submit = SubmitField('Update Email Address') def validate_email(self, field): if User.query.filter_by(email=field.data).first(): raise ValidationError('Email already registered.')
ise-uiuc/Magicoder-OSS-Instruct-75K
/* Created by heyu on 2019-10-04. usage: */ import com.noslowq.newsql.newsql.dao.SqlSourceDaoImpl; import com.noslowq.newsql.newsql.persistence.ddl.SqlSourceDO; import com.noslowq.newsql.utils.Logger;
ise-uiuc/Magicoder-OSS-Instruct-75K