seed
stringlengths
1
14k
source
stringclasses
2 values
pub mod thick2ofn; pub mod ofn2thick; pub mod ofn2man; pub mod owl; pub mod ofn_labeling; pub mod ofn_typing;
ise-uiuc/Magicoder-OSS-Instruct-75K
# randomly pick k rows of X as initial centers return X[np.random.choice(X.shape[0], k, replace=False)] def kmeans_assign_labels(X, centers): # calculate pairwise distances btw data and centers
ise-uiuc/Magicoder-OSS-Instruct-75K
def test_modularity_communities(func): G = nx.karate_club_graph()
ise-uiuc/Magicoder-OSS-Instruct-75K
def main(): """ This function represents a "parent" application/service.. i.e. the originating service of our traces in this example.
ise-uiuc/Magicoder-OSS-Instruct-75K
operations = [ migrations.CreateModel( name='NewsItem', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_date', models.DateTimeField(auto_now_add=True)), ('modified_date', models.DateTimeField(auto_now=True)), ('type', models.CharField(choices=[('new_account', 'new_account'), ('recipe_added', 'recipe_added'), ('recipe_edited', 'recipe_edited'), ('recipe_deleted', 'recipe_deleted')], max_length=100)), ('payload', django.contrib.postgres.fields.jsonb.JSONField(default=dict, help_text='Specifies details (e.g. what fields of a recipe were updated)')), ('paprika_account', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='+', to='core.PaprikaAccount')), ], options={
ise-uiuc/Magicoder-OSS-Instruct-75K
// $Authors: <NAME> $ // -------------------------------------------------------------------------- #include <OpenMS/CONCEPT/ClassTest.h> #include <OpenMS/test_config.h> /////////////////////////// #include <OpenMS/KERNEL/MSSpectrum.h> #include <OpenMS/KERNEL/MSChromatogram.h> #include <OpenMS/KERNEL/SpectrumHelper.h>
ise-uiuc/Magicoder-OSS-Instruct-75K
//! [`async-std`](https://docs.rs/async-std/), [`smol`](https://docs.rs/smol) and similar. //! //! It supports both [`tokio 1.0`](https://docs.rs/tokio/1.2.0/tokio/) and [`tokio 0.2`](https://docs.rs/tokio/0.2.25/tokio/index.html) //! via [Optional features](#optional-features). //! //! # Optional Features //!
ise-uiuc/Magicoder-OSS-Instruct-75K
print(f'payload hex: {reply.payload[name].hex()}') with pa.BufferReader(reply.payload[name]) as reader: tensor = pa.ipc.read_tensor(reader) print(f'Tensor: {tensor.to_numpy()}')
ise-uiuc/Magicoder-OSS-Instruct-75K
# # @version 1.0.0 # @copyright 2017, Kozrum # @license MIT # import sys
ise-uiuc/Magicoder-OSS-Instruct-75K
def test_process_inoliblist_check_library_manager_compliance(self): process_inoliblist( inoliblist_path="tests/" + input_folder_name + "/" + "inoliblist_check_library_manager_compliance.csv") # Repository contains a .exe file self.assertEqual(get_table()[1][Column.exe_found], "True") # Repository doesn't contain a .exe file (the arduino-ci-script checks don't write False) self.assertEqual(get_table()[2][Column.exe_found], "") # @unittest.skip("") def test_install_tools(self): install_tools()
ise-uiuc/Magicoder-OSS-Instruct-75K
# license. See the COPYING file for details.
ise-uiuc/Magicoder-OSS-Instruct-75K
self.xgb = XGBClassifier(objective='binary:logistic') def best_params_randomforest(self,train_x,train_y): """ * method: best_params_randomforest * description: method to get the parameters for Random Forest Algorithm which give the best accuracy.Use Hyper Parameter Tuning. * * return: The model with the best parameters * * Parameters * train_x: * train_y: """ try: self.logger.info('Start of finding best params for randomforest algo...')
ise-uiuc/Magicoder-OSS-Instruct-75K
return await session.execute(cdp.css.set_container_query_text(style_sheet_id, range_, text)) async def set_effective_property_value_for_node( node_id: cdp.dom.NodeId, property_name: str, value: str ) -> None: r'''
ise-uiuc/Magicoder-OSS-Instruct-75K
// return new \App\Readers\MyCSV(); // }); $this->app->bind('mycsv', function ($app) { return new \App\Vendors\PhpOffice\Csv; }); }
ise-uiuc/Magicoder-OSS-Instruct-75K
model.addAttribute("car", car); return "cars/updateCar"; } @RequestMapping("/ModifyCar.do") public String ModifyCar(Cars cars,MultipartFile img) throws IllegalStateException, IOException{ //修改车辆信息
ise-uiuc/Magicoder-OSS-Instruct-75K
e=1 g=2 while c<=d: if c<=2 or c==f: print (a*c) c+=1 elif c>2 and c<f: print (a+(b*e)+a) c+=1 e+=1
ise-uiuc/Magicoder-OSS-Instruct-75K
*/ public class B {
ise-uiuc/Magicoder-OSS-Instruct-75K
import Foundation
ise-uiuc/Magicoder-OSS-Instruct-75K
if isdefined(self.inputs.rights): a.connectome_meta.set_rights(self.inputs.rights) if isdefined(self.inputs.references): a.connectome_meta.set_references(self.inputs.references) if isdefined(self.inputs.relation): a.connectome_meta.set_relation(self.inputs.relation) if isdefined(self.inputs.species):
ise-uiuc/Magicoder-OSS-Instruct-75K
// load bootstrap return require "framework.php";
ise-uiuc/Magicoder-OSS-Instruct-75K
0x0be => String::from("Respawn"), //0x0bf => String::from(""), //0x0c0 => String::from(""), //0x0c1 => String::from(""), //0x0c2 => String::from(""), //0x0c3 => String::from(""), 0x0c4 => String::from("SpringJump"), //0x0c5 => String::from(""), 0x0c6 => String::from("EatenByFishOnSummit"), //0x0c7 => String::from(""), //0x0c8 => String::from(""),
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>meads2/googlesearch<filename>tests/test_import.py def test_import_class(): pass
ise-uiuc/Magicoder-OSS-Instruct-75K
import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import com.ccc.demo.layout.vertical.dragtoslide.R; import com.ccc.lib.layout.vertical.dragtoslide.view.ObservableView; /**
ise-uiuc/Magicoder-OSS-Instruct-75K
# fit the pipe start to finish pipe.fit(X_train, y_train) # plot feature
ise-uiuc/Magicoder-OSS-Instruct-75K
<?php namespace Dotdigitalgroup\Email\Controller\Product; class Upsell extends \Dotdigitalgroup\Email\Controller\Edc {
ise-uiuc/Magicoder-OSS-Instruct-75K
qr = {} if vis is not None: vis = vis.to_dict() qr = query.latest_query_data if qr is None: abort(400, message="No Results for this query") else:
ise-uiuc/Magicoder-OSS-Instruct-75K
now = date.today() print('The date today is', now, now.strftime("%A"))
ise-uiuc/Magicoder-OSS-Instruct-75K
destination_path = "" ################################## #Postgres database and rw user ################################## db_host = "" db_db = "" db_user = ""
ise-uiuc/Magicoder-OSS-Instruct-75K
self.dist_mat = 2 * (1 - np.dot(self.Y.T, self.Z_cos)) self.R = -self.dist_mat self.R = self.R / self.sigma[:,None] self.R -= np.max(self.R, axis = 0) self.R = np.exp(self.R) self.R = self.R / np.sum(self.R, axis = 0) # (3) Batch diversity statistics self.E = np.outer(np.sum(self.R, axis=1), self.Pr_b) self.O = np.inner(self.R , self.Phi) self.compute_objective()
ise-uiuc/Magicoder-OSS-Instruct-75K
rm -rf dist/*
ise-uiuc/Magicoder-OSS-Instruct-75K
// Copyright <NAME> 2006 - 2019. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #include <sge/opengl/call.hpp> #include <sge/opengl/check_state.hpp> #include <sge/opengl/common.hpp> #include <sge/opengl/clear/depth_buffer.hpp> #include <sge/renderer/exception.hpp>
ise-uiuc/Magicoder-OSS-Instruct-75K
Returns: (context, StringIO): JSONLD context, JSONLD data """
ise-uiuc/Magicoder-OSS-Instruct-75K
ForeignKeyConstraint foreignKeyConstraint0 = new ForeignKeyConstraint((Table) null, "\"vkAsct`'zu.", 1, 1); String string0 = foreignKeyConstraint0.getDeleteRuleAlias(); assertEquals(1, foreignKeyConstraint0.getUpdateRule());
ise-uiuc/Magicoder-OSS-Instruct-75K
timerStart(delete);
ise-uiuc/Magicoder-OSS-Instruct-75K
return True async def on_whisper_command(self, whisper, author, ranks, cmd, args): if await super().on_whisper_command( whisper, author, ranks, cmd, args ):
ise-uiuc/Magicoder-OSS-Instruct-75K
'line': '3' } ]) def test_compile_error_in_source_file(self): self.assert_colobot_lint_result( source_file_lines = [ 'void Foo()', '{', ' return Bar();',
ise-uiuc/Magicoder-OSS-Instruct-75K
curObjTexture = doorTexture; } MazeDoor::~MazeDoor() { }
ise-uiuc/Magicoder-OSS-Instruct-75K
from .risk_factor import RiskFactor, RiskFactorList from .symptom import Symptom, SymptomList from .explain import ExplainResults, ExplainResult from .parse import ParseResults, ParseMention from .rationale import RationaleResult from .red_flag import RedFlag, RedFlagList
ise-uiuc/Magicoder-OSS-Instruct-75K
<div class="col-6"> <div class="form-group form-primary form-static-label"> <select class="form-control" id="chantiers" type="dropdown-toggle" name="chantier_id" > <option value="" selected disabled>Choisir chantier</option> @foreach($chantiers as $chantier) <option class="chantiers" value="{{$chantier->id}}">{{$chantier->intitule_chantier}}</option> @endforeach </select> </div> <span class="form-bar"></span> </div>
ise-uiuc/Magicoder-OSS-Instruct-75K
dl.shift()
ise-uiuc/Magicoder-OSS-Instruct-75K
buyOrders: Order[]; }
ise-uiuc/Magicoder-OSS-Instruct-75K
#for parallel C++ K_COST = 4.14 * 1e-11 # d = 5000 takes ~400s K_FILTER_COST = 1.0 * 1e-9 # d = 5000, sieve = 30M takes 10.3s def optimal_sieve(d, expected_cost): non_trivial_a_b = d * 23 # removes 2, 3, 5,
ise-uiuc/Magicoder-OSS-Instruct-75K
hpms::SupplierAdapter* hpms::GetSupplier() { HPMS_ASSERT(gContext, "Context must be initialized"); return gSupplier; } hpms::SimulatorAdapter* hpms::GetSimulator() { HPMS_ASSERT(gContext, "Context must be initialized"); return gSimulator; } hpms::NativeAdapter* hpms::GetNative()
ise-uiuc/Magicoder-OSS-Instruct-75K
"""Allows patient to edit their own readings""" def has_object_permission(self, request, view, obj): """Validates that patient is trying to edit their own reading""" if request.method in permissions.SAFE_METHODS: return True return obj.user_profile.id == request.user.id
ise-uiuc/Magicoder-OSS-Instruct-75K
'via': widgets.HiddenInput(attrs={'value':'Web'}) } class CommentForm(forms.ModelForm): class Meta: model = models.Comment fields = ['text']
ise-uiuc/Magicoder-OSS-Instruct-75K
/// <summary> /// Gets or sets the unique identifier for the block.
ise-uiuc/Magicoder-OSS-Instruct-75K
params['order_id'] is None): raise ValueError("Missing the required parameter `order_id` when calling `cancel_order`") # noqa: E501 collection_formats = {} path_params = {} if 'order_id' in params: path_params['order_id'] = params['order_id'] # noqa: E501
ise-uiuc/Magicoder-OSS-Instruct-75K
prepare_command = chaosblade_prepare_script(chaosblade_prepare, prepare_args) prepare_msg, stderr = executor_command_inside_namespaced_pod(api_instance, namespace, pod, prepare_command) print(prepare_msg, stderr) agent_uid = jsonpath.jsonpath(json.loads(prepare_msg), 'result') return agent_uid[0], api_instance, stderr def check_chaosblade_exists(api_instance, namespace, pod): commands = ["bash",
ise-uiuc/Magicoder-OSS-Instruct-75K
import numpy.linalg as nl from utils.general import connMat
ise-uiuc/Magicoder-OSS-Instruct-75K
# @Desc : # # from PostModule.lib.Configs import * from PostModule.lib.ModuleTemplate import TAG2CH, PostMSFRawModule from PostModule.lib.OptionAndResult import Option, register_options # from PostModule.lib.Session import Session class PostModule(PostMSFRawModule):
ise-uiuc/Magicoder-OSS-Instruct-75K
"$PROFILE_ARG" && \ cp "$OUTPUT_BIN" "$OUTPUT" fi
ise-uiuc/Magicoder-OSS-Instruct-75K
with open(processedFile, 'w') as outfile: json.dump(processed, outfile) logging.info("saved processed files to %s",processedFile) except: processed = {}
ise-uiuc/Magicoder-OSS-Instruct-75K
) op.create_index(op.f('ix_predictor_category_predictor_id'), 'predictor_category', ['predictor_id'], unique=False) # ### end Alembic commands ###
ise-uiuc/Magicoder-OSS-Instruct-75K
// // Demo14Tests.swift // Demo14Tests // // Created by Ben Scheirman on 6/22/20. // import XCTest @testable import Demo14 class Demo14Tests: XCTestCase { override func setUpWithError() throws { // Put setup code here. This method is called before the invocation of each test method in the class.
ise-uiuc/Magicoder-OSS-Instruct-75K
# Need to import late, as the celery_app will have been setup by "create_app()" # pylint: disable=wrong-import-position, unused-import from . import cache, schedules, scheduler # isort:skip # Export the celery app globally for Celery (as run on the cmd line) to find app = celery_app @worker_process_init.connect def reset_db_connection_pool(**kwargs: Any) -> None: # pylint: disable=unused-argument with flask_app.app_context(): # https://docs.sqlalchemy.org/en/14/core/connections.html#engine-disposal db.engine.dispose()
ise-uiuc/Magicoder-OSS-Instruct-75K
import io import os from setuptools import setup, find_packages VERSION = "0.2" with open(os.path.join(os.path.dirname(__file__), "README.md")) as readme: README = readme.read()
ise-uiuc/Magicoder-OSS-Instruct-75K
print ("Selected Travel") travel.navigationItem.title = topicTitles[indexPath.item] travel.setBackButton() self.navigationController?.pushViewController(travel, animated: true) } else if (indexPath.item == 3) { print ("Selected Food") food.navigationItem.title = topicTitles[indexPath.item]
ise-uiuc/Magicoder-OSS-Instruct-75K
def create(self, request, *args, **kwargs): """创建仓库""" serializer = self.get_serializer(data=request.data) serializer.is_valid(raise_exception=True) with transaction.atomic(): instance = serializer.save(creator=request.user.uid) instance.set_owner(request.user.uid) return Response(serializer.data) def destroy(self, request, *args, **kwargs): instance = self.get_object()
ise-uiuc/Magicoder-OSS-Instruct-75K
alias 'oasys2019'='/cadtools/Mentor/Oasys-rtl/2019.1.R1/Oasys-RTL-2019.1.R1/bin/oasys' #alias 'oasys2021'='/cadtools/Mentor/Oasys-rtl/2021.1.R1/Oasys-RTL-2021.1.R1/bin/oasys' export PRECISION_TREE=/cadtools/Mentor/Precision/Mgc_home export PATH=$PATH:$TESSENT_TREE/bin:$CATAPULT_TREE/bin export PATH=$PATH:$QUESTASIM_TREE/bin export PATH=$PATH:$OASYS_TREE/bin export PATH=$PATH:$PRECISION_TREE/bin #make mentor tools work on 64bits model
ise-uiuc/Magicoder-OSS-Instruct-75K
} if name == "system" { return UIFont.systemFont(ofSize: fontSize) } if name.contains("system") { let systemName = name.replacingOccurrences(of: "system", with: "").lowercased() let weight: UIFont.Weight? switch systemName { case "black": weight = UIFont.Weight.black case "heavy": weight = UIFont.Weight.heavy case "light": weight = UIFont.Weight.light case "medium":
ise-uiuc/Magicoder-OSS-Instruct-75K
def reset_password(request): if request.method == "GET":
ise-uiuc/Magicoder-OSS-Instruct-75K
@classmethod def setUpTestData(cls): # create user test_user = User.objects.create_user(username='testuser_system', password='<PASSWORD>') # create object systemstatus_1 = Systemstatus.objects.create(systemstatus_name='systemstatus_1')
ise-uiuc/Magicoder-OSS-Instruct-75K
dvc_dirty = True return dvc_dirty else: # if no mir files in this mir repo, it's clean return False def mir_check_repo_git_dirty(mir_root: str = ".") -> bool: git_scm = scm.Scm(mir_root, scm_executable="git")
ise-uiuc/Magicoder-OSS-Instruct-75K
export * from "./status.component";
ise-uiuc/Magicoder-OSS-Instruct-75K
Args: dset: A dataset containing the data. rpt: Report object. figure_dir: Figure directory. """ rpt.add_text("\n# Number of GNSS navigation messages\n\n") # Generate tables
ise-uiuc/Magicoder-OSS-Instruct-75K
--mount type=bind,source=/mnt/share/hadoop/,target=/share \ --mount type=bind,source=/etc/localtime,target=/etc/localtime \ --endpoint-mode dnsrr \ newnius/hive:2.1.1 docker service create \ --name hadoop-slave1 \ --network swarm-net \ --hostname hadoop-slave1 \ --replicas 1 \
ise-uiuc/Magicoder-OSS-Instruct-75K
return { type: 'CONTENT_PACK_CREATED' as const } }, patchedContentPack: () => {
ise-uiuc/Magicoder-OSS-Instruct-75K
cv2.putText(source_image_with_lines, offset_text, (50, 100), cv2.FONT_HERSHEY_COMPLEX, 1, [255, 255, 255] ) return source_image_with_lines def process_video(process_image): filename = 'project_video' white_output = './../output_videos/' + filename + '.mp4' clip = VideoFileClip('./../' + filename + '.mp4') white_clip = clip.fl_image(process_image) white_clip.write_videofile(white_output, audio=False)
ise-uiuc/Magicoder-OSS-Instruct-75K
def test_searcher_searches_sra(searcher: Searcher, mocker): """ Tests if the searcher, when supplied with a valid search string, calls the correct Biopython's Entrez methods """
ise-uiuc/Magicoder-OSS-Instruct-75K
// NSLocalizedString+Extensions.swift // UnsplashPhotoPicker // // Created by Bichon, Nicolas on 2018-11-04. // Copyright © 2018 Unsplash. All rights reserved. // import Foundation extension String { func localized() -> String { return NSLocalizedString(self, tableName: nil, bundle: Bundle(for: UnsplashPhotoPicker.self), comment: "")
ise-uiuc/Magicoder-OSS-Instruct-75K
opts = { 'include': request.GET.get('include') == 'true' and True, 'cascading': request.GET.get('cascading') == 'true' and True} index_profile = IndexProfile.get_or_raise(name, user=request.user) return JsonResponse( index_profile.detail_renderer(**opts), safe=False, status=200) @BasicAuth() def post(self, request, name): index_profile = IndexProfile.get_or_raise(name, user=request.user) params = dict((k, ','.join(v)) for k, v in dict(request.GET).items())
ise-uiuc/Magicoder-OSS-Instruct-75K
ps = res_ops.query_resource_with_num(res_ops.PRIMARY_STORAGE, cond, limit = 1) if not ps: test_util.test_skip('No Enabled/Connected primary storage was found, skip test.' ) return True host = host[0] ps = ps[0]
ise-uiuc/Magicoder-OSS-Instruct-75K
for j in range(n): if (i == j) or (j == n // 2) or (i == n // 2) or (j == n - 1 - i): lst[i][j] = '*' for line in lst: print(' '.join(line))
ise-uiuc/Magicoder-OSS-Instruct-75K
r2 = float(input('Digite o valor da segunda reta: ')) r3 = float(input('Digite o valor da terceira reta: ')) if r1 < r2 + r3 and r2 < r1 + r3 and r3 < r1 + r2: print('Os segmentos acima podem formar um triângulo.') if r1 == r2 == r3: print('Equilátero') elif r1 != r2 != r3 != r1:
ise-uiuc/Magicoder-OSS-Instruct-75K
private(set) weak var width: NSLayoutConstraint! private(set) weak var height: NSLayoutConstraint!
ise-uiuc/Magicoder-OSS-Instruct-75K
if (root_scroller_ == new_root_scroller) return; root_scroller_ = new_root_scroller; if (LocalFrame* frame = document_->GetFrame()) frame->ScheduleVisualUpdateUnlessThrottled(); }
ise-uiuc/Magicoder-OSS-Instruct-75K
COLON_SEP = 'colon_separated' class ZoneNums(_BaseIntEnum): MAX_INTERNAL = 6000
ise-uiuc/Magicoder-OSS-Instruct-75K
function launch_app() { react-native run-ios \ --configuration=Release \ --simulator "iPhone SE" \
ise-uiuc/Magicoder-OSS-Instruct-75K
@Configuration @EnableWebMvc @ComponentScan @Import(EnableWebMvcConfiguration.class) @EnableConfigurationProperties({ WebMvcProperties.class, ResourceProperties.class }) public class CustomWebMvcAutoConfiguration extends WebMvcConfigurerAdapter { private static final String[] CLASSPATH_RESOURCE_LOCATIONS = { "classpath:/META-INF/resources/", "classpath:/resources/", "classpath:/static/", "classpath:/public/" }; @Override public void addResourceHandlers(ResourceHandlerRegistry registry) { if (!registry.hasMappingForPattern("/getForm/**")) {
ise-uiuc/Magicoder-OSS-Instruct-75K
compatible_with: List of environments target can be built for testonly: If library is only for testing alwayslink: If symbols should be exported """ if "kernel" in name: alwayslink = 1 # These are "random" deps likely needed by each library (http://b/142433427) oss_deps = [ "@com_google_absl//absl/strings:cord", ] deps += select({ "@org_tensorflow//tensorflow:mobile": [
ise-uiuc/Magicoder-OSS-Instruct-75K
ELECTRONIC = 'Electronics' FOOD = 'Food and Drinks' GROCERY = 'Grocery' HOME = 'Home' CATEGORY_CHOICES = ( (BEAUTY, 'Beauty and Health'), (CLOTHING, 'Clothing'), (ELECTRONIC, 'Electronics'), (FOOD,'Food and Drinks'), (GROCERY, 'Grocery'), (HOME, 'Home'),
ise-uiuc/Magicoder-OSS-Instruct-75K
$sort = "a.$sortBy " . $this->sortOrder; } $this->queryBuilder->add('orderBy', $sort); $this->pagerAdapter->setQueryBuilder($this->queryBuilder); $this->filteredResult = $this->pager->getResults(); }
ise-uiuc/Magicoder-OSS-Instruct-75K
paragraphStyle = NSMutableParagraphStyle.default.mutableCopy() as! NSMutableParagraphStyle } paragraphStyle.minimumLineHeight = lineHeight! paragraphStyle.maximumLineHeight = lineHeight! elementAttributes[NSAttributedStringKey.paragraphStyle] = paragraphStyle } attributes[element] = elementAttributes } return MarkdownStylesheet(attributes: attributes)
ise-uiuc/Magicoder-OSS-Instruct-75K
for p in group["params"]: if p.grad is None: continue
ise-uiuc/Magicoder-OSS-Instruct-75K
export * from './event-storage'; export * from './kv-storage'; export * from './session-storage'; export * from './prisma'; export * from './minio'; export { StorageModule } from './storage.module';
ise-uiuc/Magicoder-OSS-Instruct-75K
@center@ Manji broj je @lib.check_number(value_min,20)@, veći broj je @lib.check_number(value_max,20)@. @center@ Zbir ovih brojeva je @lib.check_number(summ,20)@, razlika je @lib.check_number(diff,20)@. @vspace@ @/repeat@
ise-uiuc/Magicoder-OSS-Instruct-75K
ssh -J $1@192.168.127.12 $1@10.1.1.121
ise-uiuc/Magicoder-OSS-Instruct-75K
#[allow(dead_code)] #[allow(non_snake_case)] #[test] fn without_error2() {} #[allow(dead_code)] #[allow(non_snake_case)] #[test]
ise-uiuc/Magicoder-OSS-Instruct-75K
data.index = pd.to_datetime(data.index) except (ValueError, TypeError): raise TypeError("indices of data must be datetime") data_sort = data.sort_index().dropna() try: return {"movmin": data_sort.rolling(t).min()} except (ValueError): raise ValueError(f"t could not be parsed as frequency: {t}")
ise-uiuc/Magicoder-OSS-Instruct-75K
java -jar jenkins-cli.jar -s http://localhost:8080/ restart
ise-uiuc/Magicoder-OSS-Instruct-75K
use App\Helpers\userHelper; use Illuminate\Http\Request; use App\Http\Controllers\Controller; class UserController extends Controller { /** * Save the user preferences. * * @param [String] $index user preference key array * @param [Array] $tags products tags */ public static function setPreferences($index = '', $tags = [])
ise-uiuc/Magicoder-OSS-Instruct-75K
todos = ['first'] def Todo(label): prefix = use_context('prefix') return html('<li>{prefix}{label}</li>') def TodoList(todos): return html('<ul>{[Todo(label) for label in todos]}</ul>') result = render(html(''' <{Context} prefix="Item: "> <h1>{title}</h1>
ise-uiuc/Magicoder-OSS-Instruct-75K
self.inject_cloudinit_values() self.attach_iface_to_vm() if self.secondary_iface else None if self.hotplug_disk_size: print(crayons.cyan(f'Enable hotplug for VM: {self.vm_attributes.name} {self.vmid}'))
ise-uiuc/Magicoder-OSS-Instruct-75K
self.prob = prob self.random_caller = RandomApply(self.augmentation, self.prob) def __call__(self, data, *args, **kwargs): return self.random_caller(data)
ise-uiuc/Magicoder-OSS-Instruct-75K
@pytest.fixture def fixture_farm_state() -> State: yield State(debug=True, current_tick=0) @pytest.fixture(autouse=True) def mock_left_click(mocker): import pyautogui mocker.patch.object(pyautogui, 'mouseUp', return_value=None) mocker.patch.object(pyautogui, 'sleep', return_value=None)
ise-uiuc/Magicoder-OSS-Instruct-75K
#TODO: fix form flashing class AddFixedDepositForm(FlaskForm): ischemes = [('Monthly', 'Monthly'), ('Quarterly', 'Quarterly'), ('Yearly', 'Yearly')] ac_no = StringField('Acc No', validators=[DataRequired(), Length(5, 50, "Length range from 5 to 50")]) # TODO: Fix so autoincrements for user start_date = DateField('Start Date dd/mm/yyyy', validators=[DataRequired()], format='%d-%m-%Y') #, widget=DatePickerWidget()) #TODO: add validators end_date = StringField('End Date dd/mm/yyyy') #TODO: Calculate end_date interest_rate = DecimalField('Interest Rate (%)', validators=[DataRequired(), NumberRange(0, 100, "Please enter percentage range 0 to 100%")]) interest_scheme = SelectField('Interest Scheme', choices=ischemes, validators=[DataRequired()]) period = IntegerField('Deposit time period (days for now)')
ise-uiuc/Magicoder-OSS-Instruct-75K
mod ops; mod fetcher; mod decoder; // Implementations pub mod interpreter; // Control Conditions #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum Cond { None, NZ, Z, NC, C }
ise-uiuc/Magicoder-OSS-Instruct-75K
df=pd.read_json("D:\eiaScrapper\eio.jl") print(df.info())
ise-uiuc/Magicoder-OSS-Instruct-75K
#Step #Vinorm #Underthesea #For each Convert to phoneme #Nếu không được check phoneme tiếng anh #Nếu không có trong từ tiếng anh -> đọc từng kí tự #Now #+Thêm kí tự IPA của tiếng ANH
ise-uiuc/Magicoder-OSS-Instruct-75K
input: state: number between 1 and 25 action: one of [-1, 1, 5 -5] returns: a list of two elements l[0] is the next state l[1] is the reward """ if state < 1 or state > 25: return ['error', 'error']
ise-uiuc/Magicoder-OSS-Instruct-75K