seed
stringlengths
1
14k
source
stringclasses
2 values
test_input = "--json" # When output = windowslex.quote(test_input)
ise-uiuc/Magicoder-OSS-Instruct-75K
#./bulkmail.pl -c utf8 -l test.recipts -f email.eml ./bulkmail.pl -c utf8 -l test.recipts.beta -f email.eml
ise-uiuc/Magicoder-OSS-Instruct-75K
try container.encodeIfPresent(distance, forKey: .distance) try container.encodeIfPresent(estimatedDuration, forKey: .estimatedDuration)
ise-uiuc/Magicoder-OSS-Instruct-75K
return view(front_dir() . '.pages.show', compact('menu')); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
under the terms of the QuantLib license. You should have received a copy of the license along with this program; if not, please email <<EMAIL>>. The license is also available online at <http://quantlib.org/license.shtml>. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; ...
ise-uiuc/Magicoder-OSS-Instruct-75K
allowProjectAdminsCreateUsers = accountDictionary[TWProjectsClient.AccountResponseKeys.AllowProjectAdminsCreateUsers] as? Bool priceplanBranding = accountDictionary[TWProjectsClient.AccountResponseKeys.PricePlanBranding] as? Bool canEditCustomDomain = accountDictionary[TWProjectsClient.AccountRe...
ise-uiuc/Magicoder-OSS-Instruct-75K
date_1 = date(2020, 1, 24) date_2 = date(2020, 6, 24)
ise-uiuc/Magicoder-OSS-Instruct-75K
ng.sparky.write("2d_sparky.ucsf",*C.to_sparky(),overwrite=True) # check the conversion against NMRPipe print "Conversion complete, listing differences between files:" sdic,sdata = ng.sparky.read("2d_sparky.ucsf") sdic2,sdata2 = ng.sparky.read("../common_data/2d_sparky/data.ucsf") print ng.misc.pair_similar(sdic,sdata,...
ise-uiuc/Magicoder-OSS-Instruct-75K
#SBATCH -e /home/bakrinski/segtool/logs/medseg_timm-regnetx_002_random_snow_error.out export PATH="/home/bakrinski/anaconda3/bin:$PATH" module load libraries/cuda/10.1 srun python main.py --configs configs/train_medseg_unetplusplus_timm-regnetx_002_fold0_random_snow.yml
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>jgrigera/indico<filename>indico/web/forms/fields/protection.py<gh_stars>1-10 # This file is part of Indico. # Copyright (C) 2002 - 2020 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details.
ise-uiuc/Magicoder-OSS-Instruct-75K
} btn.addTarget(target, action: action, for: .touchUpInside)
ise-uiuc/Magicoder-OSS-Instruct-75K
from flask import Blueprint, Response, request import json from base.webserver_utils import apply_on_node import flex from flex.loading.schema.paths.path_item.operation.responses.single.schema\ import schema_validator import os import subprocess mu_blueprint = Blueprint("mu_blueprint", __name__)
ise-uiuc/Magicoder-OSS-Instruct-75K
set -eo pipefail docker-compose down -v --rmi all
ise-uiuc/Magicoder-OSS-Instruct-75K
{ var (paramName, paramValue) = ExtractNameAndValueOfLambda(returnLambda); ThrowIfNull(paramValue, paramName, errorMsg); return paramValue; } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
jack1 = Person('Jack', 23)
ise-uiuc/Magicoder-OSS-Instruct-75K
assert repr(h) == 'Hict([])'
ise-uiuc/Magicoder-OSS-Instruct-75K
'''Test xroms.open_netcdf().''' base = os.path.join(xroms.__path__[0],'..','tests','input') files = glob('%s/ocean_his_000?.nc' % base) ds = xroms.open_netcdf(files) assert ds def test_open_zarr(): '''Test xroms.open_zarr().'''
ise-uiuc/Magicoder-OSS-Instruct-75K
$tio->save_mr(); return; } }
ise-uiuc/Magicoder-OSS-Instruct-75K
# THIS SCRIPT WILL LAUNCH AN NPM UPDATE ONLY IF IS LAUNCHED BY A TRAVIS CRON # WE USE IT TO TEST A BUILD WE THE LATEST VERSION OF OUR DEPENDENCIES, EVERY NIGHT if [ "$TRAVIS_EVENT_TYPE" != "cron" ]; then
ise-uiuc/Magicoder-OSS-Instruct-75K
public IEnumerable<Person> GetPeopleByLastName(string lastName) { return _applicationContext.Persons.Where(p => EF.Functions.Like(p.LastName, "%" + lastName + "%")); } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
## Custom CSS does not play nicely with Bokeh HTML, CSS and Javascipt I've experienced numerous problems when using css. I have a feeling that the Bokeh Javascript on elements does not take everything like images and inline css into account. But it's difficult for me to catch and understand. For example I struggled ...
ise-uiuc/Magicoder-OSS-Instruct-75K
/// Base class for concrete build targets. class PBXTarget: PBXObjectProtocol, Hashable { enum ProductType: String { case StaticLibrary = "com.apple.product-type.library.static" case DynamicLibrary = "com.apple.product-type.library.dynamic" case Tool = "com.apple.product-type.tool" case Bundle = "com....
ise-uiuc/Magicoder-OSS-Instruct-75K
for i in range(100): v.sim_step(v.u)
ise-uiuc/Magicoder-OSS-Instruct-75K
STASHLOG = os.environ.get('STASHLOG') except KeyError: print("Error. Try doing that in StaSH.")
ise-uiuc/Magicoder-OSS-Instruct-75K
@testable import SwinjectAutoregistration
ise-uiuc/Magicoder-OSS-Instruct-75K
self.id = id_ def get_id(self): """Return the id of this quantum processor
ise-uiuc/Magicoder-OSS-Instruct-75K
break else: ok.append(i) print(len(ok))
ise-uiuc/Magicoder-OSS-Instruct-75K
gamma += "1" epsilon += "0" else: gamma += "0" epsilon += "1" gamma = int(gamma, 2) epsilon = int(epsilon, 2) print(f"{gamma=} * {epsilon=} = {gamma*epsilon}")
ise-uiuc/Magicoder-OSS-Instruct-75K
pass cv2.namedWindow('ESF_preview') cv2.namedWindow('Trackbars') cv2.createTrackbar('ACC_RATE','Trackbars',80,100,nothing) cv2.createTrackbar('MIN_GRAY','Trackbars',10,255,nothing) cv2.createTrackbar('MIN_DIFF','Trackbars',1,10,nothing) cv2.createTrackbar('SCALE','Trackbars',20,100,nothing) cv2.createTrack...
ise-uiuc/Magicoder-OSS-Instruct-75K
<label> _ {{$transaction->created_at->diffForHumans()}}</label> </p> <!-- <h3><a href = "transaction/{{$transaction->id}}">{{$transaction->created_at->diffForHumans()}} by User {{$transaction->user_id}}</a></h3> {{$transaction->created_at->formatLocalized('%A %d %B %Y')}} ...
ise-uiuc/Magicoder-OSS-Instruct-75K
return ERROR_INVALID_PARAMETER; } // Call GetFileAttributes *nAttributes = GetFileAttributes (sPath); if (*nAttributes == INVALID_FILE_ATTRIBUTES) { nError = GetLastError (); } else {
ise-uiuc/Magicoder-OSS-Instruct-75K
@objc var tintColor: XCThemeColor? { get { base?.tintColor } set { base?.tintColor = newValue } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
filter_method = self.get_filter_method() for col_no, col in enumerate(self.columns_data): # apply global search to all searchable columns if search and col['searchable']: # cannot search binary fields or tags if not columns[...
ise-uiuc/Magicoder-OSS-Instruct-75K
// Create a file mapping object that refers to the file. HANDLE file_mapping_object = CreateFileMappingA(file_handle, nullptr, PAGE_READONLY, 0, 0, nullptr); if (file_mapping_object == NULL) { const std::string last_error = GetLastSystemError(); SAFTM_LOG(ERROR) << "Error while mmapping: " << last_e...
ise-uiuc/Magicoder-OSS-Instruct-75K
/// Read object using file URL; /// /// - parameter objectType: Type of the object, it must conform to codable protocol;
ise-uiuc/Magicoder-OSS-Instruct-75K
$image->storeAs('public/img_users/' . Auth::user()->id, $file); $user->image = $file; } $user->save(); $address->save(); return redirect()->route('user.profile'); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
def test_searchAllNoneFound(self): import json other = self.create_user('other', 'other') res = self.app.get('/api/posts', follow_redirects=True) self.assertEqual(res.status, '404 NOT FOUND') def test_searchAll(self): import json other = self.create_user('o...
ise-uiuc/Magicoder-OSS-Instruct-75K
api.cinder.volume_snapshot_list(self.request) def test_volume_snapshot_list_no_volume_configured(self): # remove volume from service catalog catalog = self.service_catalog for service in catalog: if service["type"] == "volume": self.service_catalog.remove...
ise-uiuc/Magicoder-OSS-Instruct-75K
class PlanetSchema(ma.Schema): class Meta:
ise-uiuc/Magicoder-OSS-Instruct-75K
parser.add_argument('--no_cuda', action='store_true', default=True, help='disables CUDA training')
ise-uiuc/Magicoder-OSS-Instruct-75K
) else: # Re-raise as this is an unexpected problem raise return group def group_update_factory(context, request): """Return a GroupUpdateService instance for the passed context and request.""" return GroupUpdateService(session=request.db)
ise-uiuc/Magicoder-OSS-Instruct-75K
from .forms import CustomAuthForm, TokenOnlyAuthForm
ise-uiuc/Magicoder-OSS-Instruct-75K
return numpy.random.choice(available_actions)
ise-uiuc/Magicoder-OSS-Instruct-75K
# Evidence tuple self._evidence_tuples = () # Whether to print loop passing and propagating node-to-node messages self._print_info = False # Temporary buffers self._from_factors = [] self._next_factors = [] self._from_variables = [] self._next_vari...
ise-uiuc/Magicoder-OSS-Instruct-75K
self.ussSet = args
ise-uiuc/Magicoder-OSS-Instruct-75K
<div class="row">
ise-uiuc/Magicoder-OSS-Instruct-75K
long maxDeviation = maxRunValue - minRunValue; double variance = (double)maxDeviation / (double)tries;
ise-uiuc/Magicoder-OSS-Instruct-75K
<?php namespace App\Http\Controllers; use App\User; use Illuminate\Http\Request; use Hash; use Auth; class UsersController extends Controller { public function passwordChangeView() {
ise-uiuc/Magicoder-OSS-Instruct-75K
def cleartext(string): string,sep,throw=string.partition('/') return string def clean(string): string=' '.join(c.lower() for c in string.replace('-',' ').split()) string=[w for w in string.split() if w not in to_remove] string=[parser[w] if w in parser_keys else w for w in string] string='...
ise-uiuc/Magicoder-OSS-Instruct-75K
"Check if given node should be formatted in its parent context" parent = state.parent config = state.config if not config.options.get('output.format'): return False
ise-uiuc/Magicoder-OSS-Instruct-75K
class Font: """Contains methods for interacting with fonts.""" @staticmethod def register_font(font_name: str, ttf_stream: bytes) -> bool: """Registers a font from a ttf file stream."""
ise-uiuc/Magicoder-OSS-Instruct-75K
items_per_request: int cursor = None def __init__(self, url: str, items_per_request: int) -> None: self.url = url self.items_per_request = items_per_request def get_disk_usage_query(self, owner: str, name: str): return """ query { repository(owne...
ise-uiuc/Magicoder-OSS-Instruct-75K
bufferSize = rumbleBufferSize }; //TODO TOMB: There must be a more effective, bulk copy operation for fixed buffers than this. //Replace if found. SendBufferedHapticCommand* commandPtr = &newCommand; fixed(byte* src = rumbleBuffer) ...
ise-uiuc/Magicoder-OSS-Instruct-75K
class AKTremoloTests: AKTestCase { func testDefault() { let input = AKOscillator() output = AKTremolo(input) input.start() AKTestMD5("aebe2f176b405950e82844ea213cae3a") } }
ise-uiuc/Magicoder-OSS-Instruct-75K
if b == 0: exit elif b != 0: print(a, "/", b, "=", div(a,b)) else: print("Invalid input")
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>hamza1886/cses # https://cses.fi/problemset/task/1083 d = [False for _ in range(int(input()))]
ise-uiuc/Magicoder-OSS-Instruct-75K
/** * 注入 service * @param serviceName 文件名 */
ise-uiuc/Magicoder-OSS-Instruct-75K
while [ "$fullVersion" != "$version" -a "${fullVersion%[.-]*}" != "$fullVersion" ]; do versionAliases+=( $fullVersion ) fullVersion="${fullVersion%[.-]*}" done versionAliases+=( $version ${aliases[$version]:-} ) for variant in '' slim; do dir="$version${variant:+/$variant}" [ -f "$dir/Dockerfile" ] || cont...
ise-uiuc/Magicoder-OSS-Instruct-75K
</div> <div class="form-group"> {{ Form::label('password2', '<PASSWORD>') }} {{ Form::password('<PASSWORD>', array('placeholder'=>'<PASSWORD>', 'class' => 'form-control')) }} </div> {{ Form::button('Cambiar !', array('type' => 'submit', 'class' => 'btn btn-primar...
ise-uiuc/Magicoder-OSS-Instruct-75K
self._logger.info("{} is processing logout task {}".format(tsk.batchid, self._spider_dealing_dict[tsk].name)) return appcfg: AppConfig = self._spideradapter.adapter(tsk)[0] if not isinstance(appcfg, AppConfig): self._logger.info("No spider ...
ise-uiuc/Magicoder-OSS-Instruct-75K
TimeZone.setDefault(original); } } }; } }
ise-uiuc/Magicoder-OSS-Instruct-75K
printResults(resultsModified); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
} void AotCompiler::AotStmtVisitor::VisitBreakStmt(natRefPointer<Statement::BreakStmt> const& stmt) { assert(!m_BreakContinueStack.empty() && "break not in a breakable scope"); const auto dest = m_BreakContinueStack.back().first; assert(dest.GetBlock());
ise-uiuc/Magicoder-OSS-Instruct-75K
print("Winner: " + election.getPollResults())
ise-uiuc/Magicoder-OSS-Instruct-75K
items.append((new_key, v)) return dict(items) def collect_yaml_config(config): df = pd.DataFrame() keys = list(filter(lambda key: key not in ['policies', 'seed'], config.keys())) global_setting = {key:config[key] for key in keys}
ise-uiuc/Magicoder-OSS-Instruct-75K
#include <common/Scene.hpp> #include <common/Triangle.hpp> #include <common/BasicMaterialShader.hpp>
ise-uiuc/Magicoder-OSS-Instruct-75K
print("Human age:", human_age) break import math start_int = int(input("Input starting integer: ")) while start_int >= 2:
ise-uiuc/Magicoder-OSS-Instruct-75K
isInline {...props} > <img src={TrubitLogo}
ise-uiuc/Magicoder-OSS-Instruct-75K
break return nextScenario
ise-uiuc/Magicoder-OSS-Instruct-75K
LAUNCH_ISPN_IN_BACKGROUND=1 \ bin/server.sh \ -b 0.0.0.0 \ -Djgroups.tcp.address=`hostname -i` \ "$@" > /tmp/stdout.log & tail -f /tmp/stdout.log
ise-uiuc/Magicoder-OSS-Instruct-75K
from corenlp import StanfordCoreNLP from remove_random_word import remove_random_word print "Booting StanfordCoreNLP" nlp = StanfordCoreNLP() print "Initializing train file"
ise-uiuc/Magicoder-OSS-Instruct-75K
from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('users', '0014_auto_20200627_1001'), ]
ise-uiuc/Magicoder-OSS-Instruct-75K
folder = OUTPUT_FOLDER_PATH for subdir in os.listdir(folder): predictions,filenames = predict(f'{folder}{"/"}{subdir}', classes, model) # print("filename:",filenames,",Predictions:",predictions) with open('SER_'+subdir+'.csv', 'w') as csvFile: writer = csv.writer(csvFile) ...
ise-uiuc/Magicoder-OSS-Instruct-75K
https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/
ise-uiuc/Magicoder-OSS-Instruct-75K
from fastapi import APIRouter, Depends, HTTPException, status from fastapi.security import OAuth2PasswordRequestForm from sqlalchemy.orm import Session from counter import schemas, crud, model
ise-uiuc/Magicoder-OSS-Instruct-75K
protected $table = 'keg_spj'; protected $primaryKey = 'keg_s_id'; }
ise-uiuc/Magicoder-OSS-Instruct-75K
resolve(res.statusCode); }); } }, ); }); }
ise-uiuc/Magicoder-OSS-Instruct-75K
swap ( $(T_VARIABLE as A) , $(T_VARIABLE as B) ) } >> { (list($(A), $(B)) = [$(B), $(A)]) } $x = 1; $y = 0; swap($x, $y); var_dump($x, $y);
ise-uiuc/Magicoder-OSS-Instruct-75K
<gh_stars>0 30 mtime=1556801173.131370668 24 SCHILY.fflags=extent
ise-uiuc/Magicoder-OSS-Instruct-75K
if (repos === undefined) { repos = [...(await Container.git.getOrderedRepositories())]; } if (state.repos === undefined || state.counter < 1) { if (repos.length === 1) { state.counter++; state.repos = [repos[0]]; } else { let actives: Repository[]; if (state.repos) { ...
ise-uiuc/Magicoder-OSS-Instruct-75K
""" ) ) @rule def get_multi_platform_request_description(req: MultiPlatformProcess) -> ProductDescription: return req.product_description
ise-uiuc/Magicoder-OSS-Instruct-75K
/// /// A Hadoop configuration can be passed in as a Python dict. This will be converted into a Configuration in Java /// /// </summary> /// <param name="filePath">path to Hadoop file</param> /// <param name="inputFormatClass">fully qualified classname of Hadoop InputFo...
ise-uiuc/Magicoder-OSS-Instruct-75K
def eval(self, loader: _Loader, pbar: tqdm) -> m.Scores: return self._run(self.stages[1], loader, pbar) def run(self, train_loader: _Loader, eval_loader: _Loader, epochs: int = 1): for i in tqdm(range(1, 1 + epochs), smoothing=0): with tqdm(train...
ise-uiuc/Magicoder-OSS-Instruct-75K
# API v0, new namespace: MULTICLOUD-335 url(r'^api/multicloud-titaniumcloud/v0/swagger.json$', SwaggerJsonView.as_view()), # API v1, new namespace: MULTICLOUD-335 url(r'^api/multicloud-titaniumcloud/v1/swagger.json$', APIv1SwaggerJsonView.as_view()), ] urlpatterns = format_suffix_patterns(URLPATTERN...
ise-uiuc/Magicoder-OSS-Instruct-75K
ConnectionFactory.register_connection(KombuConnection) ConnectionFactory.register_connection(MongoConnection) ConnectionFactory.register_connection(TCPConnection) ConnectionFactory.register_connection(UDPConnection)
ise-uiuc/Magicoder-OSS-Instruct-75K
def decorator_protocol(socket): pass def non_decorator_protocol(socket): pass
ise-uiuc/Magicoder-OSS-Instruct-75K
url='https://github.com/mcspring/XML2Dict', license='http://www.apache.org/licenses/LICENSE-2.0.html', description='Convert between XML String and Python Dict',
ise-uiuc/Magicoder-OSS-Instruct-75K
public interface ViewportListener extends LiteMod { void onViewportResized(Window resolution, int displayWidth, int displayHeight);
ise-uiuc/Magicoder-OSS-Instruct-75K
#!/bin/bash # this depends on the build step cd $HOME/optimism-integration ./test.sh
ise-uiuc/Magicoder-OSS-Instruct-75K
Task Open(string bridgeURL, bool clearSubscriptions = true); Task Close();
ise-uiuc/Magicoder-OSS-Instruct-75K
from Bio.Seq import Seq import gzip from pybedtools import BedTool import matplotlib import pysam
ise-uiuc/Magicoder-OSS-Instruct-75K
{ var v = Json.JsonValue[parameter]; if (v != null) { if (v.IsString) return Operand.Create(v.StringValue); if (v.IsBoolean) return Operand.Create(v.BooleanValue); if (v.IsDouble) return Operand.Create(v.NumberValue); if (v....
ise-uiuc/Magicoder-OSS-Instruct-75K
button.click() f(browser) except Exception as e: print('No consent needed.') pass return f class BitlyFixture(BaseProviderFixture): PRE_LOGIN_CLICKS_XPATH = ['//*[@id="oauth_access"]/form/div/div[1]/a'] LOG...
ise-uiuc/Magicoder-OSS-Instruct-75K
Response.Headers.Add("X-Pagination", JsonConvert.SerializeObject( new { users.TotalCount, users.PageSize, users.CurrentPage, users.TotalPages, users.HasNext,
ise-uiuc/Magicoder-OSS-Instruct-75K
revision = '<KEY>' down_revision = '<KEY>' branch_labels = None depends_on = None def upgrade(): # ### commands auto generated by Alembic - please adjust! ### op.drop_constraint(
ise-uiuc/Magicoder-OSS-Instruct-75K
/** * Assigns the given String id to the given MapDataBase, removing any existing ones of the same id. */ public void setData(String par1Str, WorldSavedData par2WorldSavedData) { if (par2WorldSavedData == null) { throw new RuntimeException("Can\'t set null data"); ...
ise-uiuc/Magicoder-OSS-Instruct-75K
super(context); initFont(); } public FontCheckBox(Context context, AttributeSet attrs) { super(context, attrs);
ise-uiuc/Magicoder-OSS-Instruct-75K
throws CoreException { Multimap<IProject, IFile> files = HashMultimap.create(); if (topDelta == null) { return files; } topDelta.accept( delta -> { if (delta.getResource() instanceof IFile) { IFile file = (IFile) delta.getResource(); files.put(file....
ise-uiuc/Magicoder-OSS-Instruct-75K
*/ function creatPay($data)
ise-uiuc/Magicoder-OSS-Instruct-75K
SoCSDRAM.__init__(self, platform, sys_clk_freq, #cpu_type="vexriscv", l2_size=32, cpu_type=None, l2_size=32, #csr_data_width=8, csr_address_width=14, csr_data_width=32, csr_address_width=14, integrated_rom_size=0x8000,
ise-uiuc/Magicoder-OSS-Instruct-75K