seed
stringlengths
1
14k
source
stringclasses
2 values
else { ObjectId = data; Name = rawData.ExtractValue<string>(Constants.Name); var attributes = rawData.ExtractValue<JObject>(Constants.Attributes); if (attributes != null) { ObjectType = attributes...
ise-uiuc/Magicoder-OSS-Instruct-75K
CpuTime time; time.user += user_step * count; time.kernel += kernel_step * count;
ise-uiuc/Magicoder-OSS-Instruct-75K
export PATH="/usr/local/opt/gettext/bin:$PATH" ./contrib/make_locale find . -name '*.po' -delete
ise-uiuc/Magicoder-OSS-Instruct-75K
cp libb64.a ../../lib cp -r ../include ../../ echo "Fetched b64" # Fetch tinyxml2 cd ../../ git clone https://github.com/leethomason/tinyxml2.git cd tinyxml2
ise-uiuc/Magicoder-OSS-Instruct-75K
valid_topic_name, valid_channel_name, identify, subscribe, ready, finish, touch, requeue, nop, pub, mpub, FRAME_TYPE_RESPONSE, FRAME_TYPE_ERROR, FRAME_TYPE_MESSAGE,
ise-uiuc/Magicoder-OSS-Instruct-75K
set -a source .env
ise-uiuc/Magicoder-OSS-Instruct-75K
common_config, log_path: log_path_buf.clone(), log_file: rnp_utils::create_log_file(log_path_buf), is_first_element: true, }; } fn log_result_as_json(&mut self, ping_result: &PingResult) -> io::Result<()> { if self.is_first_element { s...
ise-uiuc/Magicoder-OSS-Instruct-75K
pretrained_files = params.pop("pretrained_files", {}, keep_as_dict=True) min_pretrained_embeddings = params.pop("min_pretrained_embeddings", None) only_include_pretrained_words = params.pop_bool("only_include_pretrained_words", False) tokens_to_add = params.pop("tokens_to_add", None) ...
ise-uiuc/Magicoder-OSS-Instruct-75K
blurHandler: this.blurHandler, }) : null; const triggerSlot = this.$scopedSlots.trigger ? this.$scopedSlots.trigger({ isShown: this.localShow, hide: this.doHide, hideIfFocusOutside: this.hideIfFocusOutside, show: this.doShow, toggle: thi...
ise-uiuc/Magicoder-OSS-Instruct-75K
expected = [(['B'], 0, 20)] # shouldn't be [(['B'], 0, 20), ([ ], 0, 0)] self.assertEqual(expected, _file_start_length_list(*args)) args = ([('A', 20), ('B', 0), ('C', 0)], 20, 2) expected = [(['A'], 0, 20)] self.assertEqual(expected, _file_start_length_list(*args)) def tes...
ise-uiuc/Magicoder-OSS-Instruct-75K
list: True, dict: True, }.get(value, False) # False is default if type value not found
ise-uiuc/Magicoder-OSS-Instruct-75K
impl Renderer { pub fn new(mem: Arc<Mutex<VRAM>>) -> Self { Renderer { mem: mem, target: None, } } pub fn start_frame(&mut self, target: RenderTarget) { self.target = Some(target); }
ise-uiuc/Magicoder-OSS-Instruct-75K
#!/bin/sh if [ -f "/opt/supervisor.installed" ]; then
ise-uiuc/Magicoder-OSS-Instruct-75K
'filters:\n\"{}\"'.format(", ".join(self.filter_functions))) print(self.separator) return validation_level, cf = self._validate_properties(using_filter) if validation_level == 1 and not cf: print('Properties from CIF files could not be validated.' ...
ise-uiuc/Magicoder-OSS-Instruct-75K
ATLAS_REPL_SRV="$ATLAS_REPL_SRV" ATLAS_SHRD_SRV="$ATLAS_SHRD_SRV" ATLAS_FREE_SRV="$ATLAS_FREE_SRV" ATLAS_TLS11_SRV="$ATLAS_TLS11_SRV" ATLAS_TLS12_SRV="$ATLAS_TLS12_SRV" \ swift run AtlasConnectivity $EXTRA_FLAGS
ise-uiuc/Magicoder-OSS-Instruct-75K
// MARK: - Touch Events override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
ise-uiuc/Magicoder-OSS-Instruct-75K
total *= i; }
ise-uiuc/Magicoder-OSS-Instruct-75K
import tempfile
ise-uiuc/Magicoder-OSS-Instruct-75K
mapper: UIImage.tryMake)
ise-uiuc/Magicoder-OSS-Instruct-75K
if __name__ == '__main__': # Get hackerrank input N = int(input()) A = [[float(i) for i in input().split(' ')] for _ in range(N)] determinant = np.linalg.det(A) print(round(determinant, ndigits=2))
ise-uiuc/Magicoder-OSS-Instruct-75K
Retrieving values checks memcache via NDB first, and if datastore is used it
ise-uiuc/Magicoder-OSS-Instruct-75K
from .core import UJSPortalScraper # noqa: F401 from .schema import PortalResult, PortalResults # noqa: F401 __all__ = ["UJSPortalScraper", "PortalResult", "PortalResults"]
ise-uiuc/Magicoder-OSS-Instruct-75K
// BobRunner // // Created by Horváth Balázs on 2018. 05. 06.. // Copyright © 2018. Horváth Balázs. All rights reserved. // enum PhysicsCategory: UInt32 { case noCategory = 0 case ground = 1 case cat = 2 case cloud = 4 case raindrop = 8 case umbrella = 16 case house = 32 case dangerZ...
ise-uiuc/Magicoder-OSS-Instruct-75K
settings = get_settings() app = FastAPI(debug=settings.debug, title=settings.app_name) app.add_middleware(SessionMiddleware, secret_key=settings.session_secret) @app.on_event("startup") async def setup_edgedb_pool(): app.state.db = await edgedb.create_async_pool(settings.edgedb_dsn) @a...
ise-uiuc/Magicoder-OSS-Instruct-75K
queue = PriorityQueue(settings.queue_size) quit_event = Event() session = ClientSession() for s in (signal.SIGINT, signal.SIGTERM): loop.add_signal_handler(s, loop.stop)
ise-uiuc/Magicoder-OSS-Instruct-75K
parser.add_option("--json", help="If present with JSON file as argument, use JSON file for good lumi mask. "+\ "The latest JSON file is available at /afs/cern.ch/cms/CAF/CMSCOMM/COMM_DQM/certification/Collisions10/7TeV/StreamExpress/", type="string", ...
ise-uiuc/Magicoder-OSS-Instruct-75K
return response def _parse_site_results(response: str): """Parse the HTML of a site:url query and return the number of pages "indexed". Args: response: HTML of site:url query. Returns:
ise-uiuc/Magicoder-OSS-Instruct-75K
# Register your models here. admin.site.register(Jobs)
ise-uiuc/Magicoder-OSS-Instruct-75K
//- Switch for the execution of the functionObjects bool execution_; //- Tracks if read() was called while execution is on
ise-uiuc/Magicoder-OSS-Instruct-75K
))), None => Ok(RoomMessageEventContent::text_plain(format!( "Transmitter Group \"{}\" not found.", &self.name, ))), } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
#largeFile=/scratch2/esadrfa/mlsvm_data/susy_4M_train_zsc_data.dat for i in `seq 1 1 10` do size=$((i*$scale)) echo $size #./petsc_utility/getSubMatrix -i $largeFile -s 0 -e $size -p $tmp_path -w "susy_"$size"_train_zsc_data.dat" ds_name="susy_"$size echo " * * * * * "" Calculating the k-nearest neighbors...
ise-uiuc/Magicoder-OSS-Instruct-75K
graph[from][to] = w; // 计算各顶点入度 indegrees[to]++; // 初始化并茶几 } int result = tlsort(); if (result == -1) cout << "Impossible\n"; else cout << result << '\n'; return 0; }
ise-uiuc/Magicoder-OSS-Instruct-75K
self.test_send_message_topic_id.__doc__,
ise-uiuc/Magicoder-OSS-Instruct-75K
from app_data.threads import threads_invitations from app_utils.helpers.pagination import Paginate class ThreadInvitationsHandler(object): def get(self, thread_id, start, limit): paginated_thread_invitation_models = Paginate( start=start, limit=limit, resource=threads_i...
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>ihcsim/kubernetes-terraform-secured #!/bin/bash
ise-uiuc/Magicoder-OSS-Instruct-75K
class Form extends Model { protected $guarded = []; /** * The fields that belong to the form. */ public function fields() { return $this->belongsToMany('App\Field', 'form_fields')->withPivot('id', 'options'); }
ise-uiuc/Magicoder-OSS-Instruct-75K
TCommonBlock block = (TCommonBlock)parser.sqlstatements.get(0); TBlockSqlNode blockSqlNode = (TBlockSqlNode) block.rootNode;
ise-uiuc/Magicoder-OSS-Instruct-75K
</div> <div><li class="collapsable startCollapsed"><strong>Items</strong> <a href="/item/add">+</a></li> @foreach( $item_categories as $item_category) <div> <li class="section"><a href="#{{$item_category->title}}Items">{{ $item_category->title }} Ite...
ise-uiuc/Magicoder-OSS-Instruct-75K
} } public void initWithDefaults() { } public IASN1PreparedElementData PreparedData { get { return preparedData;
ise-uiuc/Magicoder-OSS-Instruct-75K
if (this._settings != null) { this._settings.Dispose(); } } [Test] [TestCase("[YOUR_SECRET_KEY]", "YOUR_RESPONSE_KEY", "127.0.0.1")] public void GetReCaptchaV2Request_GivenFormAndServerVariables_Should_ReturnReCaptchaV2Request(string ...
ise-uiuc/Magicoder-OSS-Instruct-75K
input_json = sys.argv[1] main(input_json)
ise-uiuc/Magicoder-OSS-Instruct-75K
class RoleBased(FieldPerm): def __init__(self, role_perms): self.role_perms = role_perms def check(self, field): user = field.env.user perms = set(self.role_perms.get('*', ''))
ise-uiuc/Magicoder-OSS-Instruct-75K
void ClearItem::SetSubAcctType(const string& _subAcctType) { m_subAcctType = _subAcctType; m_subAcctTypeHasBeenSet = true; } bool ClearItem::SubAcctTypeHasBeenSet() const { return m_subAcctTypeHasBeenSet; } string ClearItem::GetReconcileStatus() const { return m_reconcileStatus;
ise-uiuc/Magicoder-OSS-Instruct-75K
#![cfg(feature = "nightly")] #![feature(custom_test_frameworks)] #![test_runner(mimicaw_framework::test_runner)] #[mimicaw_framework::test] async fn foo() {} #[mimicaw_framework::test] async fn bar() { panic!("explicit panic"); }
ise-uiuc/Magicoder-OSS-Instruct-75K
cout << "Digite x, y, raio e a altura para o cilindro: " << endl; cin >> c1; cout << c1 << endl; cout << "Area da base do cilindro: " << c1.area() << endl; cout << "Volume do cilindro: " << c1.volume() << endl;
ise-uiuc/Magicoder-OSS-Instruct-75K
</div> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary close-delete" data-dismiss="modal"><i class="fas fa-times"></i> Close</button> <button type="button" data-url="" class="btn btn-danger delete-confirm-btn"><i class="fas fa-trash-al...
ise-uiuc/Magicoder-OSS-Instruct-75K
Parameters: num_inputs: int Number of input variables. Default is 2 for (t, x). layers: array_like List of length equal to number of hidden layers, with the number of nodes for each of them. activation: stror tensorflow activation o...
ise-uiuc/Magicoder-OSS-Instruct-75K
[ -e $apt_source_path ] && rm $apt_source_path exit 1 elif [ "$curl_exit_code" -gt "0" ]; then
ise-uiuc/Magicoder-OSS-Instruct-75K
"rdata": '{ipv4}', "rclass": 'IN',
ise-uiuc/Magicoder-OSS-Instruct-75K
componentHasTheseFiles (list, optional): the directories with there files are considered as components. if not given, `DEFAULT_COMPONENT_HAS_THESE_FILES` will be used. isComponent (function, optional): a function that determines if a directory is a Heppy component. if not give, `IsComponent` will be use...
ise-uiuc/Magicoder-OSS-Instruct-75K
def get_data(self): return def get_trace_data(self): return
ise-uiuc/Magicoder-OSS-Instruct-75K
podman run --rm --interactive \ --volume "${KUBECONFIG}:/root/.kube/config:z" \ "registry.ci.openshift.org/origin/${OPT_PAYLOAD}:tests" \ /bin/bash -c 'export KUBECONFIG=/root/.kube/config && openshift-tests run openshift/conformance/parallel'
ise-uiuc/Magicoder-OSS-Instruct-75K
TypedVector { type_id, vec } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
from setuptools import setup from vswitch import install_params setup(**install_params)
ise-uiuc/Magicoder-OSS-Instruct-75K
try: partition = q.get_nowait() if partition == EOF: eof_count += 1 continue for p in partition: outFile.write(p) count += 1 except ...
ise-uiuc/Magicoder-OSS-Instruct-75K
namespace Kun\Dashboard\Core\Domain\Repository; interface ProvinceRepositoryInterface { public function getAllProvince() : array; }
ise-uiuc/Magicoder-OSS-Instruct-75K
/** * Allows for the inspection of the name of this union member * without checking the value of the discriminator. * @return the name of this union member */
ise-uiuc/Magicoder-OSS-Instruct-75K
def prepare_targets(self, targets, images): h_pad, w_pad = images.tensor.shape[-2:] gt_instances = [] for targets_per_video in targets: _num_instance = len(targets_per_video["instances"][0]) mask_shape = [_num_instance, self.num_frames, h_pad, w_pad] gt_m...
ise-uiuc/Magicoder-OSS-Instruct-75K
import sys print(sys.argv)
ise-uiuc/Magicoder-OSS-Instruct-75K
} /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */
ise-uiuc/Magicoder-OSS-Instruct-75K
'ad_over_edit' => "Editer", 'ad_over_delete' => "Supprimer", 'ad_over_makebutton' => "Créer un OverForum", 'ad_over_stdhead' => "Gestionnaire d'OverForum" ); ?>
ise-uiuc/Magicoder-OSS-Instruct-75K
where D = delay in microseconds between writes F = number of writes between flushes and chunksize N = total number of elements to write outputfile = name of output file
ise-uiuc/Magicoder-OSS-Instruct-75K
* Autopsy Forensic Browser * * Copyright 2011 Basis Technology Corp. * Contact: carrier <at> sleuthkit <dot> org * * 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.a...
ise-uiuc/Magicoder-OSS-Instruct-75K
'../examples/Tutorial5_Parallelization.ipynb', '../examples/Tutorial6_ComplexModelling.ipynb', '../examples/Tutorial7_AssemblingPipelines.ipynb', '../examples/Tutorial8_AlignmentGeneration.ipynb', ]
ise-uiuc/Magicoder-OSS-Instruct-75K
transform=transform_train, joint_transform=transform_joint) # Data processing to do on the validation pairs data_processing_val = processing.ATOMProcessing(search_area_factor=settings.search_area_factor,...
ise-uiuc/Magicoder-OSS-Instruct-75K
* @param timestampPrefix timestamp prefix * @return Map of {@link ServingAPIProto.FeatureReferenceV2} to {@link Feature}
ise-uiuc/Magicoder-OSS-Instruct-75K
/// in little-endian format pub fn new(key: &GenericArray<u8, U32>, sbox: &'a SBoxExp) -> Gost89<'a> { let mut cipher = Gost89{sbox: sbox, key: Default::default()}; read_u32v_le(&mut cipher.key, key);
ise-uiuc/Magicoder-OSS-Instruct-75K
#026 - Primeira e última ocorrência de uma string frase = str(input('Digite uma frase: ')).upper().strip() print(f'A letra A aparece {frase.count("A")}') print(f'A primeira letra A apareeceu na posicao {frase.find("A")+1}') print(f'A ultima letra A aparece na posicao {frase.rfind("A")+1}')
ise-uiuc/Magicoder-OSS-Instruct-75K
mut global: ResMut<Global>, ) {
ise-uiuc/Magicoder-OSS-Instruct-75K
public function getUrl(){ return URL::route('frontend.information.view',['id'=>$this->id,'url'=>$this->url_title.'.html']); }
ise-uiuc/Magicoder-OSS-Instruct-75K
subparts = re.split(REGEX_EPISODE_SPLITTER, parts[1]) season = int(subparts[1]) episode = int(subparts[2]) meta = SceneFileMetadata(show=show, season=season, episode=episode) return meta def generateFilename(sceneFile, pattern, zeroesSeason=False, zeroesEpisodes=False): meta = sceneFile.meta ...
ise-uiuc/Magicoder-OSS-Instruct-75K
cat ./docker/oauth2_proxy.config > /etc/oauth2_proxy.config sed -i -e "s/{{ALLOWED_DOMAINS}}/$ALLOWED_DOMAINS/g" /etc/oauth2_proxy.config sed -i -e "s/{{OAUTH2_PROXY_CLIENT_ID}}/$OAUTH2_PROXY_CLIENT_ID/g" /etc/oauth2_proxy.config sed -i -e "s/{{OAUTH2_PROXY_CLIENT_SECRET}}/$OAUTH2_PROXY_CLIENT_SECRET/g" /etc/oauth2_pro...
ise-uiuc/Magicoder-OSS-Instruct-75K
from core.exceptions import MessagingException from uuid import UUID, uuid4
ise-uiuc/Magicoder-OSS-Instruct-75K
@property def experiment_args(self): return self._config_args["Experiment"] @property def train_dataset_args(self): return self._config_args["Dataset - metatrain"] @property def valid_dataset_args(self): return self._config_args["Dataset - metatest"]
ise-uiuc/Magicoder-OSS-Instruct-75K
self.label.setText(QtGui.QApplication.translate("Form", "<html><head/><body><p align=\"center\"><span style=\" font-weight:600;\">Crop border (mm)</span></p></body></html>", None, QtGui.QApplication.U...
ise-uiuc/Magicoder-OSS-Instruct-75K
using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace LogParser.DAL.Configure { public class ProtocolConfiguration : IEntityTypeConfiguration<Protocol> { public void Configure(EntityTypeBuilder<Protocol> builder) { builder.Property(x => x.Name).IsRequired();
ise-uiuc/Magicoder-OSS-Instruct-75K
void func3_logData(func3Class & f3Class) { LOG_MESSAGE("func3_logData",f3Class.getData());
ise-uiuc/Magicoder-OSS-Instruct-75K
} public func operation(_ operation: Operation, didProduceOperation newOperation: Foundation.Operation) { // No op. } public func operationDidFinish(_ operation: Operation, errors: [Error]) { // No op. } } public extension TimeoutObserver {
ise-uiuc/Magicoder-OSS-Instruct-75K
const std::string MarketSort::MAXIMUM_AVAILABLE = "MAXIMUM_AVAILABLE"; const std::string MarketSort::FIRST_TO_START = "FIRST_TO_START"; const std::string MarketSort::LAST_TO_START = "LAST_TO_START"; MarketSort::MarketSort() { valid = false; } MarketSort::MarketSort(const std::string& v) { if (v != MINIMUM_TRA...
ise-uiuc/Magicoder-OSS-Instruct-75K
from restlib2.http import codes
ise-uiuc/Magicoder-OSS-Instruct-75K
@view_config(route_name='faq', renderer='faq.mako') def faq_view(request): dir_path = os.path.dirname(__file__) faq_file = os.path.join(dir_path, 'static/faq_with_indexes.html')
ise-uiuc/Magicoder-OSS-Instruct-75K
from .model import PeakPoModel
ise-uiuc/Magicoder-OSS-Instruct-75K
relative_points = [] for point in list_of_points: relative_points.append([point[0] - main_point[0], point[1] - main_point[1]]) ang_x = 1e9
ise-uiuc/Magicoder-OSS-Instruct-75K
try: from automail.cli import main assert True except (ImportError, ModuleNotFoundError): raise AssertionError
ise-uiuc/Magicoder-OSS-Instruct-75K
/** * Base Judo Member Migration */ class ClubMigration extends AbstractMigration { public function up() {
ise-uiuc/Magicoder-OSS-Instruct-75K
export const RouteData: TRouteData[] = [ HomeData, LoginData, RegisterData ]; // generate route components from RouteData const routes: Routes = []; for (let i = 0; i < RouteData.length; i++) { routes.push( {path: RouteData[i].href, component: RouteData[i].comp} ); } @NgModule({ imports: [ RouterModule.forRoo...
ise-uiuc/Magicoder-OSS-Instruct-75K
# Login URL url(r'^login/$', auth_views.LoginView.as_view(template_name="users/login.html"),name="login"), # Logout URL url(r'^logout/$',auth_views.logout,{'next_page':'/login'},name='logout'), url(r'^',include('users.urls', namespace='usuarios')), ]+ static(settings.MEDIA_URL,document_root=settings.MEDIA_ROOT)
ise-uiuc/Magicoder-OSS-Instruct-75K
<x-form-input type="text" name="name" id="name" label="Name" placeholder="Name" class="mb-3" value="{{ $comment->name }}" required /> <x-form-input type="email" name="email" id="email" label="Email" placeholder="Email" class="mb-3" value="{{ $comment->email }}" required />
ise-uiuc/Magicoder-OSS-Instruct-75K
import time def timer(func): def wrapper(*args, **kwargs): start = time.time() rv = func() total = time.time() - start print("Time:", total) return rv return wrapper # how to implement a simple decorator
ise-uiuc/Magicoder-OSS-Instruct-75K
parallel --jobs 6 < ./results/exp_lustre_rw/run-1/lustre_5n_6t_6d_1000f_617m_5i/jobs/jobs_n0.txt
ise-uiuc/Magicoder-OSS-Instruct-75K
type: bool next_hop_unchanged: description: Preserve original nexthop while advertising routes to eBGP peers. type: bool
ise-uiuc/Magicoder-OSS-Instruct-75K
del os.environ[env_var] # Try setting the value with the overwrite flag set to False set_env_var(env_var, new_value, overwrite_existing=False) # Verify that we now have a value assert os.environ[env_var] == new_value
ise-uiuc/Magicoder-OSS-Instruct-75K
# we'd like __init__ to be fast because it's going to be # called a lot. What's the fastest way to move the existing # params dictionary into this one? Would # def __init__(self,overridden,**kw):
ise-uiuc/Magicoder-OSS-Instruct-75K
self.head = None self.tail = None def get(self, key: int) -> int: if key not in self.hash: return -1
ise-uiuc/Magicoder-OSS-Instruct-75K
"members": { "GigabitEthernet0/0/1": { "activity": "Active", "age": 18, "aggregatable": True, "collecting": True, "defaulted": False, "distributing": True, ...
ise-uiuc/Magicoder-OSS-Instruct-75K
import com.tingke.admin.entity.AclEvent; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Param; import java.util.List; /** * <p> * Mapper 接口 * </p> * * @author zhx * @since 2020-05-19 */
ise-uiuc/Magicoder-OSS-Instruct-75K
public function up() { Schema::create('configurations', function (Blueprint $table): void {
ise-uiuc/Magicoder-OSS-Instruct-75K
if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument("-c", "--config", help="path to launch config YAML file", type=str, required=True) args = parser.parse_args() config_path = args.config with open(config_path, "r") as file: config = yaml.load(file, Loader=yaml....
ise-uiuc/Magicoder-OSS-Instruct-75K
// SIL-LABEL: sil public_external [transparent] [serialized] [canonical] @$SSi1poiyS2i_SitFZ : $@convention(method) (Int, Int, @thin Int.Type) -> Int
ise-uiuc/Magicoder-OSS-Instruct-75K
:param version: One of - original: `astro-ph/0207664 <http://arxiv.org/abs/astro-ph/0207664>`_ - bird: `arXiv:1109.4416 <http://arxiv.org/abs/1109.4416>`_ - peacock: `Peacock fit <http://www.roe.ac.uk/~jap/haloes/>`_ - takahashi: `arXiv:1208.2701 <http://arxiv.org/ab...
ise-uiuc/Magicoder-OSS-Instruct-75K