seed
stringlengths
1
14k
source
stringclasses
2 values
import ca.gc.aafc.dina.repository.external.ExternalResourceProvider; import ca.gc.aafc.dina.security.DinaAuthenticatedUser; import ca.gc.aafc.dina.security.DinaAuthorizationService; import lombok.NonNull; @Repository public class ProjectRepository extends DinaRepository<ProjectDto, Project> { private Optional<Din...
ise-uiuc/Magicoder-OSS-Instruct-75K
SUPPLYCHAIN_RECORD_NAMESPACE = 'supplychain.record' class Addressing(object): _agent_namespace = None
ise-uiuc/Magicoder-OSS-Instruct-75K
$mock = $this->getMockForTrait(ParseModeTrait::class); $this->assertNull($mock->getParseMode()); $mock->setParseMode(ParseMode::MARKDOWN);
ise-uiuc/Magicoder-OSS-Instruct-75K
field=models.DateField(auto_now=True), ), ]
ise-uiuc/Magicoder-OSS-Instruct-75K
#wordDict = ["a","b"] #s="aaaaaaa"
ise-uiuc/Magicoder-OSS-Instruct-75K
def setUp(self): # Graph = # 9 # / | \ # 6 7 8 # \ / \ / # 4 5 # / \ / \ # 1 2 3 self.g = SegmentationGraph() edges = [(1, 4), (2, 4), (2, 5), (3, 5), (4, 6), (4, 7), (5, 7), (5, 8),
ise-uiuc/Magicoder-OSS-Instruct-75K
import latexpages if __name__ == '__main__': latexpages.clean('example/latexpages.ini')
ise-uiuc/Magicoder-OSS-Instruct-75K
""" OLD = 'old'
ise-uiuc/Magicoder-OSS-Instruct-75K
class BookMyListView(SearchContextMixin, OwnerRequiredMixin, SuperuserRequiredMixin, PageableMixin, ListView): logger = logging.getLogger(__name__) context_object_name = 'books' queryset = Book.objects \ .select_related('category', 'owner') def __init__(self): super(BookMyListView, se...
ise-uiuc/Magicoder-OSS-Instruct-75K
gemCounter = 5 }
ise-uiuc/Magicoder-OSS-Instruct-75K
rospy.loginfo('flipping vertically') if hflip: fchain.append(graph.add("hflip")) fchain[-2].link_to(fchain[-1]) rospy.loginfo('flipping horizontally') if len(fchain) > 0: fchain.append(graph.add("buffersink")) # graph must end with buffersin...
ise-uiuc/Magicoder-OSS-Instruct-75K
curl -XPUT "127.0.0.1:8081/users/3" -d '{"name":"Test1"}' -H 'Content-Type: application/json' curl -XGET "127.0.0.1:8081/users/3" curl -XDELETE "127.0.0.1:8081/users/3"
ise-uiuc/Magicoder-OSS-Instruct-75K
"""Runtime for CIS processing.""" CIS_DIR = '/scratch/cis_dataqc/' # Check inputs if work_dir is None: work_dir = CIS_DIR proj_dir = os.path.dirname(bids_dir) if not op.isdir(proj_dir): raise ValueError('Project directory must be an existing directory!') if not op.isfile(c...
ise-uiuc/Magicoder-OSS-Instruct-75K
m[k]=1;
ise-uiuc/Magicoder-OSS-Instruct-75K
fruits_num_2 = 10 # [["りんご", 2], ["みかん", 10]]という出力になるように、fruitsに変数をリスト型に代入してください fruits = [[fruits_name_1, fruits_num_1], [fruits_name_2, fruits_num_2]] # 出力 print(fruits)
ise-uiuc/Magicoder-OSS-Instruct-75K
columns: table => new { Id = table.Column<int>(type: "integer", nullable: false) .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), RoleId = table.Column<string>(type: "text...
ise-uiuc/Magicoder-OSS-Instruct-75K
# INTERNAL FRAGMENTATION # min_internal_mass 0.0 # max_internal_mass 700.0 # FRAG_INTERNAL_YB # Internal series, caused by double backbone cleavage. Combination of b type and y type cleavage. # # FRAG_INTERNAL_YA # Internal series, caused by double backbone cleavage. Combination of a type and y type cleavage.
ise-uiuc/Magicoder-OSS-Instruct-75K
if (!empty($data)) { $user = new UserController(); $update = $user->update($obj, $id); if ($update) { http_response_code(201); echo json_encode(array("message" => "Usuario alterado com sucesso!!")); } else { // 503 service unavailable
ise-uiuc/Magicoder-OSS-Instruct-75K
} Expression<Func<ContractTypeHolder, string, object>> getEntryExpression = (obj, p) => obj.GetEntry(p); MethodInfo getEntryMethod = (getEntryExpression.Body as MethodCallExpression).Method;
ise-uiuc/Magicoder-OSS-Instruct-75K
result.append(LIST_LINESTART_RE.sub(r"\1* ", line)) with open(LIST_OUTPUTFILE, "w") as f: f.write("\n".join(result)) if __name__ == "__main__": if not USERAGENT: print("missing useragent")
ise-uiuc/Magicoder-OSS-Instruct-75K
<gh_stars>0 #!/usr/bin/env bash DATA_FOLDER="/www/faculty/it/bwHPC/SCRIPTS/bwUniCluster2" #SERVER_FOLDER="<EMAIL>:/opt/bwhpc/es/dbdata" SERVER_FOLDER="<EMAIL>:/opt/openfoam/bwUniData" #SERVER_FOLDER="<EMAIL>:/www/faculty/it/bwHPC/SCRIPTS/bwUniCluster2" sync() {
ise-uiuc/Magicoder-OSS-Instruct-75K
SafeAreaView, ScrollView, StatusBar,
ise-uiuc/Magicoder-OSS-Instruct-75K
this.gravity = this.addEmptyTask (); this.script = this.addEmptyTask (); this.gravity.gotoTask (this.getPhysicsTaskX (0.25)); this.m_flockID = GUID.create (); this.m_buggedOut = false; this.createObjects ();
ise-uiuc/Magicoder-OSS-Instruct-75K
scorepose -receptor /var/openeye/hiv1_protease.oeb \ -dbase data/dock_*.sdf \ -hitlist_size 3 \ -out data/global_top3.sdf
ise-uiuc/Magicoder-OSS-Instruct-75K
'create' => 'Thêmmới', 'delete' => 'Xóa', 'description' => 'Mô tả', 'edit' => 'Sửa', 'list' => 'Danh sách', 'name_display' => 'Tên hiện thị', 'role' => 'Vai trò', 'update' => 'Cập nhật', );
ise-uiuc/Magicoder-OSS-Instruct-75K
export * from './sidenav.component'; export * from './toolbar.component';
ise-uiuc/Magicoder-OSS-Instruct-75K
event: | React.ChangeEvent<HTMLInputElement> | React.FocusEvent<HTMLInputElement>, ) => void; };
ise-uiuc/Magicoder-OSS-Instruct-75K
.baseUrl(Util.API_BASE_URL) .addConverterFactory(GsonConverterFactory.create()) .build(); ElasticSearch elastic = retrofit.create(ElasticSearch.class); Callback<ElasticRequestStatus> cb = new Callback<ElasticRequestStatus>() { @Override ...
ise-uiuc/Magicoder-OSS-Instruct-75K
public CompositeListFieldMapping(Property property, org.hibernate.mapping.List value) { super(property, value); this.value = value; } public void assertForeignKey(String foreignKeyColumnName) { KeyValue keyValue = value.getKey(); HibernateAssertUtil.assertColumn(forei...
ise-uiuc/Magicoder-OSS-Instruct-75K
def null_or_format_str(value, str_format: str): if __value_empty(value): return NULL else: return str_format.format(str(value).translate(__escaped_symbols()))
ise-uiuc/Magicoder-OSS-Instruct-75K
# Calculate unscrambled aligment and score s, a, ma, ta = smithWaterman( seqA, seqB, matScore, gapO=gapOpen, gapE=gapExtend) ua = a
ise-uiuc/Magicoder-OSS-Instruct-75K
Method::PUT, Method::POST, Method::DELETE, Method::OPTIONS, ]) .allow_any_origin() .allow_credentials(true) }
ise-uiuc/Magicoder-OSS-Instruct-75K
position_sequence: torch.tensor, noise_std_last_step): """Returns random-walk noise in the velocity applied to the position. Args: position_sequence: A sequence of particle positions. Shape is
ise-uiuc/Magicoder-OSS-Instruct-75K
start_batch_size = args.batch_size for m, c in model_cfgs: batch_size = start_batch_size args.model = m args.checkpoint = c result = OrderedDict(model=args.model) r = {}
ise-uiuc/Magicoder-OSS-Instruct-75K
// create new channel for Flexor Carpi Radialis (Channel 5, Anode Cathode Pair 5, max amp 100 mA, max pw 250 us) Channel flexor_carpi_radialis("Flexor Carpi Radialis", CH_5, AN_CA_1, 100, 250); channels.push_back(flexor_carpi_radialis); // create new channel for Palmaris Longus (Channel 6, Anode Cathod...
ise-uiuc/Magicoder-OSS-Instruct-75K
} void Sound::setPosition(int x, int y) { _position.x = x; _position.y = y; _2d_effect = true; }
ise-uiuc/Magicoder-OSS-Instruct-75K
curl "127.0.0.1/?name=Robert'%3B%20drop%20table%20Students%3B--"
ise-uiuc/Magicoder-OSS-Instruct-75K
kwargs['instance'] = User.objects.get(pk=self.request.user.pk) return kwargs @transaction.atomic def form_valid(self, form): new_email = form.cleaned_data['email'] initiate_email_change(self.request.user, new_email) messages.success(self.request, _("A confirmation email ...
ise-uiuc/Magicoder-OSS-Instruct-75K
"lib/avcodec-56.dll" : { "flag_deps" : True, "should_be_removed" : True }, "lib/avformat-56.dll" : { "flag_deps" : True, "should_be_removed" : True }, "lib/avutil-54.dll" : { "flag_deps" : True, "should_be_removed" : True }, "lib/swscale-3.dll" : { "flag_deps" : True, "should_be_removed" : True ...
ise-uiuc/Magicoder-OSS-Instruct-75K
echo ERROR:installation failed. mv -f ~/.tmux.conf.bak ~/.tmux.conf >/dev/null 2>&1 mv -f ~/.tmux.2.0.conf.bak ~/.tmux.2.0.conf >/dev/null 2>&1 mv -f ~/.tmux.2.4.conf.bak ~/.tmux.2.4.conf >/dev/null 2>&1
ise-uiuc/Magicoder-OSS-Instruct-75K
for var in variables: for k in range(0, 32, 8): s.add(Extract(k+7, k, var) > BitVecVal(0x20, 8)) s.add(ULT(Extract(k+7, k, var), BitVecVal(0x80, 8))) for c in bad_chars: s.add(Extract(k+7, k, var) != BitVecVal(c, 8))
ise-uiuc/Magicoder-OSS-Instruct-75K
Teuchos::rcp(new Example::EquationSetFactory); // where poison equation is defined Example::BCStrategyFactory bc_factory; // where boundary conditions are defined Teuchos::RCP<panzer_stk::STK_MeshFactory> mesh_factory; if (celltype == "Hex") mesh_factory = Teuchos::rcp(new panzer_stk::Cub...
ise-uiuc/Magicoder-OSS-Instruct-75K
$nama = htmlentities($db->escape($_POST["nama"])); $pimpinan = htmlentities($db->escape($_POST["pimpinan"])); $jalan = htmlentities($db->escape($_POST["alamat"])); $rt = htmlentities($db->escape($_POST["rt"])); $rw = htmlentities($db->escape($_POST["rw"])); $kd_kelurahan = htmlentities($db->escape($_POST["kel"]))...
ise-uiuc/Magicoder-OSS-Instruct-75K
await when(Sort) .hasInput([1, 3, 2]) .assertOutput([1, 2, 3]) .finish();
ise-uiuc/Magicoder-OSS-Instruct-75K
# print (P[0]) Pnow=copy.deepcopy(P[t-1])
ise-uiuc/Magicoder-OSS-Instruct-75K
<tbody>
ise-uiuc/Magicoder-OSS-Instruct-75K
<div class="pull-left"> <button class="btn btn-success" type="submit"> <i class="fa fa-check" aria-hidden="true"></i> Gravar </button> </div> ...
ise-uiuc/Magicoder-OSS-Instruct-75K
# Used by Windows binary installer (bdist_inno) license_file='COPYRIGHT', # Fields used in package metadata 1.0 (PEP 241 / Python 2.1+): name='4Suite', #version='1.0rc1', #description='An open-source platform for XML and RDF processing',
ise-uiuc/Magicoder-OSS-Instruct-75K
CONN = util.connectAlpaca()
ise-uiuc/Magicoder-OSS-Instruct-75K
return tuple(ret)
ise-uiuc/Magicoder-OSS-Instruct-75K
# E_LEN = "No es posible operar vectores de diferente módulo"
ise-uiuc/Magicoder-OSS-Instruct-75K
class SettingsException extends \Exception { protected $code = 500; }
ise-uiuc/Magicoder-OSS-Instruct-75K
/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id)
ise-uiuc/Magicoder-OSS-Instruct-75K
* In our example, this class represents the very first step of a workflow. * */ public class CreateWorkflowCommand extends AbstractWorkflowCommand { private static final Logger LOGGER = LoggerFactory.getLogger(CreateWorkflowCommand.class); private String step;
ise-uiuc/Magicoder-OSS-Instruct-75K
for case in self.board : if case.x > x : s_board += "\n" x+=1 s_board += case.show() print(s_board) class Piece : def __init__(self,name,color,point,board): self.name = name
ise-uiuc/Magicoder-OSS-Instruct-75K
$this->success(config('prompt.register_success'), 'index/website/index'); break; } return $this->fetch(); }
ise-uiuc/Magicoder-OSS-Instruct-75K
Get the details of a single Instrument's Position in an Account. The Position may by open or not. Args: instrument: :class:`~async_v20.InstrumentName` Name of the Instrument Returns: status [200] :class:`~async_v20.interface.res...
ise-uiuc/Magicoder-OSS-Instruct-75K
use HasFactory; public function newsind() { return $this->hasMany(NewsInd::class); } public static $_table = "Category"; protected $guarded = []; protected $table = 'category'; public $timestamps = false; }
ise-uiuc/Magicoder-OSS-Instruct-75K
util::to_english_time(self.delete_in as u64)) } else {
ise-uiuc/Magicoder-OSS-Instruct-75K
// // Created by Arcus Team on 1/1/17. /* * Copyright 2019 Arcus Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless ...
ise-uiuc/Magicoder-OSS-Instruct-75K
emailLabel.grid(row=4,column=0,pady=10,padx=0) idLabel.grid(row=5,column=0,pady=10,padx=0) def saveBtnClick(): #this function will store all text boxes in a student class and wipe the text boxes #!!! create an if statement so that it shows an error if all boxes are not filled #create variables to store inputs ...
ise-uiuc/Magicoder-OSS-Instruct-75K
constructor(private userPersonDataService :UserPersonDataService) { }
ise-uiuc/Magicoder-OSS-Instruct-75K
'materium_periodos', 'medios', 'menus', 'mese', 'migrations', 'modulos', 'movimientos',
ise-uiuc/Magicoder-OSS-Instruct-75K
sys.exit(2) server = tuple(args['<socket>'].split(':'))
ise-uiuc/Magicoder-OSS-Instruct-75K
namespace ComLib.Lang.Types { /// <summary> /// Used to store a array /// </summary> public class LArray : LObject { /// <summary> /// Initialize /// </summary> /// <param name="val"></param>
ise-uiuc/Magicoder-OSS-Instruct-75K
* Please read the Capacitor iOS Plugin Development Guide * here: https://capacitorjs.com/docs/plugins/ios */ @objc(MLKitPlugin) public class MLKitPlugin: CAPPlugin { @objc func echo(_ call: CAPPluginCall) { let value = call.getString("value") ?? "" call.success([ "value": value ...
ise-uiuc/Magicoder-OSS-Instruct-75K
})} > <div className={style.side}> <Header onToggle={toggle} expand={show} /> {props.side} </div> <main className={style.main}>{props.main}</main> </div> )
ise-uiuc/Magicoder-OSS-Instruct-75K
class XpThresholds: EASY = 0 MEDIUM = 1 HARD = 2 DEADLY = 3
ise-uiuc/Magicoder-OSS-Instruct-75K
unlink(public_path('uploads/profile_image/'.User::find($user_id)->profile_image)); } User::find($user_id)->delete(); return back();
ise-uiuc/Magicoder-OSS-Instruct-75K
log_dir = writer.get_logdir() os.makedirs(os.path.join(log_dir, "images"), exist_ok=True) os.makedirs(os.path.join(log_dir, "test"), exist_ok=True) device = torch.device("cuda") if torch.cuda.is_available() else torch.device("cpu") # Initialize generator and discriminator generator = UNet(opt....
ise-uiuc/Magicoder-OSS-Instruct-75K
sv.axis = .horizontal sv.distribution = .fillEqually return sv }()
ise-uiuc/Magicoder-OSS-Instruct-75K
#include "gl_helpers/opengl_primitives.h" #include <iostream> namespace fps_mapper { using namespace std; LocalMap::LocalMap(const Eigen::Isometry3f& transform, int id, boss::IdContext* context) : MapNode(transform, id, context){ }
ise-uiuc/Magicoder-OSS-Instruct-75K
let data = try! JSONSerialization.data(withJSONObject: json, options: []) game = gameHandler.startQuestion(in: game, withData: data) XCTAssertEqual(17, game.currentQuestionNumber) } func testQuestionAnswerableWithDataWillReturnCurrentQuestionNumber() { let json: [String: Any] =...
ise-uiuc/Magicoder-OSS-Instruct-75K
':' . $placeholder ); break; case 'not_equal': $expr = $this->builder->getQueryBuilder()->expr()->neq( $this->rule->getField(), ':' . $placeholder ); break;
ise-uiuc/Magicoder-OSS-Instruct-75K
return null; } }
ise-uiuc/Magicoder-OSS-Instruct-75K
<@{extra_tags_iter.next().unwrap()} class="extra-b"/> </@> <@{ let tag = dyn_tag(); if tag == "test" {
ise-uiuc/Magicoder-OSS-Instruct-75K
"""Implementación del algoritmo de optimización UMDA (Univariate Marginal Distribution Algorithm) que encuentra el mínimo de una función objetivo mediante el muestreo de una distribución normal. Attributes: objetivo: Una función de Python que corresponde a la función objetivo.
ise-uiuc/Magicoder-OSS-Instruct-75K
class TestAdminPanelFunctional(BaseMFLACTest): def admin_users_list(self, app, client, auth): for _ in range(randint(1, 3)): admin_username = str(uuid.uuid4()) admin_password = str(uuid.uuid4()) self._add_user(app, admin_username, admin_password, True) auth.l...
ise-uiuc/Magicoder-OSS-Instruct-75K
public extension UIViewController {
ise-uiuc/Magicoder-OSS-Instruct-75K
address = (in / step) - 1U; index = floor(address); prop = address - index;
ise-uiuc/Magicoder-OSS-Instruct-75K
version=version, description="NG Custom", author="https://twitter.com/LarryDevops", author_email="<EMAIL>", packages=find_packages(), zip_safe=False, include_package_data=True, install_requires=install_requires )
ise-uiuc/Magicoder-OSS-Instruct-75K
firmware_analysis['numberofdevices'] = firmware_df.shape[0] # print("Firmware :",firmware_type) # tested_flag = False
ise-uiuc/Magicoder-OSS-Instruct-75K
[MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool operator !=(NilType nil, cfncData value) => value != nil; [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator cfncData(NilType nil) => default(cfncData); } ...
ise-uiuc/Magicoder-OSS-Instruct-75K
# echo "dcr_endpoint: https://$gateway_hostname:$api_gateway_rest_endpoint_port$dcr_api_context" dcr_endpoint="https://"$gateway_hostname":"$api_gateway_rest_endpoint_port$dcr_api_context dcr_response=$(curl -s -k -X POST -H "Authorization: Basic $dcr_authorization_header" -H "Content-Type: application...
ise-uiuc/Magicoder-OSS-Instruct-75K
#if !canImport(ObjectiveC) public func allTests() -> [XCTestCaseEntry] { return [ testCase(StencilRendererTests.allTests), ] } #endif
ise-uiuc/Magicoder-OSS-Instruct-75K
sorting: segyio.TraceSortingFormat, ) -> None: data = np.zeros((ilines, xlines, offsets, samples), np.float32) for i, x, o, s in it.product(*map(range, data.shape)): data[i, x, o, s] = o * 1000 + i * 10 + x + s / 10 if offsets == 1: data = data.squeeze(axis=2) if sorting == segyio.Tr...
ise-uiuc/Magicoder-OSS-Instruct-75K
printf("\n") }'
ise-uiuc/Magicoder-OSS-Instruct-75K
urls = filterVersion(urls, version); } List<URL> resultUrls = loadBalancer.select(urls); if (logger.isDebugEnabled()) {
ise-uiuc/Magicoder-OSS-Instruct-75K
</div> </div> <div class="template-field">
ise-uiuc/Magicoder-OSS-Instruct-75K
def __init__(self, deferred_stash='deferred'): super(DFS, self).__init__() self._random = random.Random() self._random.seed(10) self.deferred_stash = deferred_stash def setup(self, simgr): if self.deferred_stash not in simgr.stashes: simgr.stashes[self.deferr...
ise-uiuc/Magicoder-OSS-Instruct-75K
{batch, 2 * deformable_group * fh * fw, oh, ow}, {batch, deformable_group * fh * fw, oh, ow}}); } else { param.sparse = DeformableConv::Param::Sparse::DENSE;
ise-uiuc/Magicoder-OSS-Instruct-75K
cur = 1 for i in range(n-2, -1, -1): cur *= nums[i+1] out[i] *= cur return out
ise-uiuc/Magicoder-OSS-Instruct-75K
return new CharLexer(Arrays.asList(star, plus, option, begin, end, or, symbol, any)); };
ise-uiuc/Magicoder-OSS-Instruct-75K
use super::*; #[test] fn storage_transition() { let text = Text::<TestKind, $dynamic>::try_from_str("foo").unwrap(); let other: Text<_, $other_dynamic> = text .storage_transition(); asser...
ise-uiuc/Magicoder-OSS-Instruct-75K
if !issues.is_empty() { result.issues.insert((tc.tab.clone(), tc.category.clone()), issues); } } } Ok(result)
ise-uiuc/Magicoder-OSS-Instruct-75K
@property def shared_pdb_flags(self): return set(['/Zi', '/ZI']) def nameForPch(self, source_file): return os.path.splitext(source_file)[0] + '.pch' @property def emits_dependency_file(self): return False class MsvcLinker(Linker): def __init__(self): super(Msvc...
ise-uiuc/Magicoder-OSS-Instruct-75K
set -o xtrace set -e PROJECT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" cd "${PROJECT_DIR}" go test ./...
ise-uiuc/Magicoder-OSS-Instruct-75K
groupId: $("#id").val(), }, success: function (data) { $("#result").text(data) } }) } </script>
ise-uiuc/Magicoder-OSS-Instruct-75K
'password': <PASSWORD>('PASSWORD'),#<password>', 'host': 'sql11.freemysqlhosting.net',
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>libs/uefi/src/result.rs use r_efi::efi; pub type Result<T, E = ()> = core::result::Result<T, crate::Error<E>>; pub(crate) fn from_status_and_value<T>(status: efi::Status, value: T) -> Result<T, ()> { from_status_and_closure(status, || value) }
ise-uiuc/Magicoder-OSS-Instruct-75K