seed
stringlengths
1
14k
source
stringclasses
2 values
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright 2021 4Paradigm # # 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 required by applicable law or agreed to in writing, software
ise-uiuc/Magicoder-OSS-Instruct-75K
def rainbowCycleFunc(n): return rainbow(n * 256 // length) return rainbowCycleFunc
ise-uiuc/Magicoder-OSS-Instruct-75K
def get_hook_dirs(): return [os.path.dirname(__file__)]
ise-uiuc/Magicoder-OSS-Instruct-75K
#Verify that the request came from facebook if verify_token == messenger.getVerifyToken(): #Return the challenge return challenge
ise-uiuc/Magicoder-OSS-Instruct-75K
total_donnee = data[["Consommation d'électricité (kWh)", "Consommation de gaz (kWh)", "Nom du bien"]] calcul_par_batiment = [[0, 0, ""] for x in range(len(data))] total_donnee.reset_index(inplace=True, drop=True) for idx, row in total_donnee.iterrows(): if row[0] > 0: calcul_par_batiment[idx][0] = row[0] * electricite_emission if row[1] > 0: calcul_par_batiment[idx][1] = row[1] * gaz_emission calcul_par_batiment[idx][2] = row[2] transpose = list(zip(*calcul_par_batiment)) total = np.array([sum(transpose[0]), sum(transpose[1]), "Total"]) calcul_par_batiment.append(total)
ise-uiuc/Magicoder-OSS-Instruct-75K
b.iter(|| CacheString::from_str_truncate(&string)) }); } fn cache_try_from_benchmark(c: &mut Criterion) { let string = "iiiijjjjkkkkllllmmmmn"; c.bench_function("cache try from", move |b| {
ise-uiuc/Magicoder-OSS-Instruct-75K
text = ':samp:`a{{b}}c`' doctree = parse(text) assert_node(doctree[0], [nodes.paragraph, nodes.literal, ("a", [nodes.emphasis, "{b"], "}c")]) # half-opened braces text = ':samp:`a{bc`' doctree = parse(text) assert_node(doctree[0], [nodes.paragraph, nodes.literal, "a{bc"])
ise-uiuc/Magicoder-OSS-Instruct-75K
// These are not meant for end-users to call. // They are an implementation detail of `try_downcast()`. #[doc(hidden)] unsafe fn downcast(base: BaseWidget) -> Self { Self::from_ptr(base.ptr()) } #[doc(hidden)] fn can_downcast(base: &BaseWidget) -> bool; }
ise-uiuc/Magicoder-OSS-Instruct-75K
y_train = joblib.load('ch08/y_train.joblib') X_train = torch.from_numpy(X_train.astype(np.float32)).clone() y_train = torch.from_numpy(y_train.astype(np.int64)).clone() X_valid = joblib.load('ch08/X_valid.joblib')
ise-uiuc/Magicoder-OSS-Instruct-75K
#绘制算法后的类别的散点图
ise-uiuc/Magicoder-OSS-Instruct-75K
pub fn restore(&mut self, state: &ShapedSegmentState) { self.glyphs.truncate(state.glyphs); self.advance_width = state.advance_width; } }
ise-uiuc/Magicoder-OSS-Instruct-75K
Self { ops, provided, cost } } fn bound(&self, binding: Binding) -> bool { self.provided.contains(&binding) }
ise-uiuc/Magicoder-OSS-Instruct-75K
nvidia-docker run -it --privileged -v /home/fabio/SLOW/ImageNet:/ImageNet \ -v /home/fabio/SLOW/cleverhans/examples/nips17_adversarial_competition:/code \ -w /code/adversarial_detection \ adversarial_detection \ bash run_detection.sh
ise-uiuc/Magicoder-OSS-Instruct-75K
@app.post('/add') def add_message(): global oled payload = request.json key = oled.add_message(payload['header'], payload['body']) return key @app.post('/replace/<key>') def replace_message(key): global oled payload = request.json oled.replace_message(key, payload['header'], payload['body']) return 'OK'
ise-uiuc/Magicoder-OSS-Instruct-75K
let mut signature = sum_generator_g1.add(cs.ns(|| "add prepare sig"), &self.prepare_signature)?; signature = signature.add(cs.ns(|| "add commit sig"), &self.commit_signature)?; signature = signature.sub(cs.ns(|| "finalize sig"), sum_generator_g1)?; // Verifies the validity of the signatures. CheckSigGadget::check_signatures( cs.ns(|| "check signatures"),
ise-uiuc/Magicoder-OSS-Instruct-75K
private Account author;
ise-uiuc/Magicoder-OSS-Instruct-75K
# to you 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 required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # https://github.com/apache/storm/blob/master/examples/storm-starter/multilang/resources/splitsentence.py
ise-uiuc/Magicoder-OSS-Instruct-75K
else: return a + b + c
ise-uiuc/Magicoder-OSS-Instruct-75K
class Broker(LazyBrokerMixin, dramatiq.brokers.stub.StubBroker): __doc__ = LAZY_BROKER_DOCSTRING_TEMPLATE.format( description="""A lazy broker of dynamically configurable type. The type of the broker should be specified by the
ise-uiuc/Magicoder-OSS-Instruct-75K
Field& AtmosphereProcess:: get_field_out_impl(const std::string& field_name) const {
ise-uiuc/Magicoder-OSS-Instruct-75K
SensorStateClass, ) from homeassistant.const import ( VOLUME_CUBIC_METERS, TEMP_CELSIUS, ) from homeassistant.util import dt
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>Vauke/Deep-Neural-Networks-HealthCare from .convunet import unet from .dilatedunet import dilated_unet from .dilateddensenet import dilated_densenet, dilated_densenet2, dilated_densenet3
ise-uiuc/Magicoder-OSS-Instruct-75K
ALIASES = ['ctr', 'ctr_plugin', 'CtrFileNamePlugin'] def get_plugin_class() -> Type[Plugin]: """ If need some logic before returning the class itself purely, put it here.
ise-uiuc/Magicoder-OSS-Instruct-75K
+ File.separator + "app" + "/data2.json"; public static final HashMap<String, String> FORM_LIST = new HashMap<String, String>() {{ put("CHT_V1", "Class 1st to 5th CHT School Visit Form"); put("BRCC_V1", "Class 1st to 8th School Visit Form"); put("BPO_V1", "Class 9th to 12th School Visit Form"); }}; }
ise-uiuc/Magicoder-OSS-Instruct-75K
for idx in range(1, len(word)): if word[:idx] in self.wordSet and self.search(word[idx:]):
ise-uiuc/Magicoder-OSS-Instruct-75K
public const string AdminRole = "Administrator"; public const string UserRole = "User"; public const string AdminPassword = "<PASSWORD>"; public const string UserPassword = "<PASSWORD>"; public const int CategoryNameMinLength = 3; public const int CategoryNameMaxLength = 100; public const int CommentTextMinLength = 3; public const int CommentTextMaxLength = 100; public const int CommentNameMinLength = 3; public const int CommentNameMaxLength = 100; public const int PlaceNameMinLength = 2; public const int PlaceNameMaxLength = 100; public const int PlaceDescriptionMinLength = 10;
ise-uiuc/Magicoder-OSS-Instruct-75K
public IEnumerable<string> Timezones { get; set; } public IEnumerable<string> Borders { get; set; } public string NativeName { get; set; } public string NumericCode { get; set; } public IEnumerable<CountryCurrency> Currencies { get; set; } public IEnumerable<CountryLanguage> Languages { get; set; } public IDictionary<string, string> Translations { get; set; } public string Flag { get; set; } public IEnumerable<RegionalBloc> RegionalBlocs { get; set; } public string Cioc { get; set; } }
ise-uiuc/Magicoder-OSS-Instruct-75K
import * as React from 'react'; import './Header.css'; export const Header = () => ( <div className="header"> <h1 className="header__title"><NAME></h1> </div>
ise-uiuc/Magicoder-OSS-Instruct-75K
Ok(i) => (), Err(e) => () } let f = File::create(format!("{}index.html", post.url)).unwrap(); { let mut writer = BufWriter::new(f); // write a byte to the buffer writer.write(x.as_bytes()).unwrap(); } // the buffer is flushed once writer goes out of scope } }
ise-uiuc/Magicoder-OSS-Instruct-75K
""" vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title'].replace('-', '.'))
ise-uiuc/Magicoder-OSS-Instruct-75K
project_name = 'tf-models-official' long_description = """The TensorFlow official models are a collection of
ise-uiuc/Magicoder-OSS-Instruct-75K
} else { println!("[{}]: Malformed IPv4 Packet", interface_name); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
// // Created by Ethan Neff on 3/11/16. // Copyright © 2016 Ethan Neff. All rights reserved. // import XCTest class swipeUITests: XCTestCase { override func setUp() { super.setUp()
ise-uiuc/Magicoder-OSS-Instruct-75K
{ public static string GetNodeText(IWebElement node) { if (node.Matches("input[type=submit], input[type=button]")) { return node.GetProperty("value"); } // Start with the node text, which includes all child nodes. // Remove each child node's text from this node to result in the text representative of this node alone. return node.FindElements(By.XPath("./*"))
ise-uiuc/Magicoder-OSS-Instruct-75K
print("R2 result for Lasso after removal of outliers: ",reg_model.score(test_features, test_labels)) main()
ise-uiuc/Magicoder-OSS-Instruct-75K
if __name__ == "__main__": from api import * app.run(host ='0.0.0.0', port = 5000, debug = False)
ise-uiuc/Magicoder-OSS-Instruct-75K
pub fn new<A: AsRef<Path>, B: AsRef<Path>>(source: A, target: B) -> Move { Move { source: path_to_cstring(source.as_ref()), target: path_to_cstring(target.as_ref()), } } /// Execute a move-mountpoint operation pub fn bare_move_mountpoint(self) -> Result<(), OSError> { let rc = unsafe { mount( self.source.as_ptr(), self.target.as_ptr(),
ise-uiuc/Magicoder-OSS-Instruct-75K
class CrosswalkAdmin(admin.ModelAdmin): list_display = ('get_user_username', 'fhir_id') search_fields = ('user__username', '_fhir_id') raw_id_fields = ("user", ) def get_user_username(self, obj):
ise-uiuc/Magicoder-OSS-Instruct-75K
use Wikimedia\Rdbms\IResultWrapper; /** * Extension mechanism for WatchedItemQueryService * * @since 1.29 * * @file
ise-uiuc/Magicoder-OSS-Instruct-75K
for item in os.scandir(path): if item.is_file() and item.name.split(".")[-1] in ["gz", "mol2"]: files.append(item) elif item.is_dir(): files.extend(cls._get_mol2files(item.path)) return files @classmethod def random_sample_without_index(cls, n_samples, dir_path, verbose=True): # Get Mol2Blocks randomly
ise-uiuc/Magicoder-OSS-Instruct-75K
Ok(io) })) .and_then(rustls::Acceptor::new(tls_acceptor())) .and_then(fn_service(|io: Io<_>| async move { assert!(io.query::<PeerCert>().as_ref().is_none()); assert!(io.query::<PeerCertChain>().as_ref().is_none()); io.send(Bytes::from_static(b"test"), &BytesCodec) .await .unwrap(); assert_eq!(io.recv(&BytesCodec).await.unwrap().unwrap(), "test"); Ok::<_, std::io::Error>(())
ise-uiuc/Magicoder-OSS-Instruct-75K
unsafe fn raw_begin_set_parameter(&self, _param: ParamPtr) { // Since there's no autmoation being recorded here, gestures don't mean anything } unsafe fn raw_set_parameter_normalized(&self, param: ParamPtr, normalized: f32) { self.wrapper.set_parameter(param, normalized); } unsafe fn raw_end_set_parameter(&self, _param: ParamPtr) {} fn get_state(&self) -> crate::wrapper::state::PluginState { self.wrapper.get_state_object() }
ise-uiuc/Magicoder-OSS-Instruct-75K
:type name: python:str :param clear: Whether to clear already cached entries or not. :type clear: python:bool """ log.debug("Enter: cache_setup(location={!r}, clear={!r})".format( name, clear )) log.info("Install cache file at '{}.sqlite'.".format(name)) requests_cache.core.install_cache(backend='sqlite', cache_name=name)
ise-uiuc/Magicoder-OSS-Instruct-75K
/// THE SOFTWARE. import UIKit // The heights are declared as constants outside of the class so they can be easily referenced elsewhere struct UltravisualLayoutConstants { struct Cell {
ise-uiuc/Magicoder-OSS-Instruct-75K
p.record_configuration({"a": Foo()}) p.finish_activity(uuid) p.as_json() def test_context_manager(self): p = Provenance() with p.activity("test"): p.record_input("whatever.file") assert "test" in [b.name for b in p.backlog] def test_outfile(self): p = Provenance() p.reset() fobj = tempfile.NamedTemporaryFile(delete=True) p.outfile = fobj.name
ise-uiuc/Magicoder-OSS-Instruct-75K
summ += value*step+0.5*df*step point += step
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>src/doc_inserter/mod.rs //! Handles inserting documentation into files of a Rust project. /// Consumes a list of documentation produced by a `DocGenerator` /// and handles inserting documentation into the relevant files /// at the relevant locations of a Rust project. /// /// Must be able to gracefully merge newly generated documentation /// with existing documentation, and highlight conflicts accordingly. /// Exactly how to handle this process is still to be determined. #[allow(unused)]
ise-uiuc/Magicoder-OSS-Instruct-75K
unsafe_global_var!( static mut KMSG: KmsgSection = KmsgSection { buffer: [0; KMSG_SIZE + 1], }); safe_global_var!(static BUFFER_INDEX: AtomicUsize = AtomicUsize::new(0));
ise-uiuc/Magicoder-OSS-Instruct-75K
int green = lerpBetweenInt(lerp, from.getGreen(), to.getGreen()); int blue = lerpBetweenInt(lerp, from.getBlue(), to.getBlue()); return new Color(red, green, blue); } private static int lerpBetweenInt(int lerp, int from, int to) { if (from != to) { if (from > to) { return from - lerp; } else { return from + lerp; }
ise-uiuc/Magicoder-OSS-Instruct-75K
def calc_and_plot(self,flux, wave): # 计算线指数,并画图看看效果,与self.calc() 函数传进传出相同 line_index = self.calc(flux, wave) center_wave = []
ise-uiuc/Magicoder-OSS-Instruct-75K
// you may not use this file except in compliance with the License. // You may obtain a copy of the License at //
ise-uiuc/Magicoder-OSS-Instruct-75K
# check if file exists def file(fname): if not os.path.isfile(fname): raise argparse.ArgumentTypeError("%r is not a valid file" % (fname,)) return fname # create output directories # https://stackoverflow.com/a/12517490/6942666
ise-uiuc/Magicoder-OSS-Instruct-75K
echo -n "Your GitHub email:" read email echo -n "Your GitHub name:" read name git config --global user.email $email git config --global user.name $name git remote set-url origin <EMAIL>@github.com:TaiseiIto/SugoiH.git cat gitconfig >> /root/.gitconfig
ise-uiuc/Magicoder-OSS-Instruct-75K
class TestCreate(unittest.TestCase): TEST_FILES_DIR = os.path.join(os.path.dirname(__file__), 'test_files') REAL_FILE = os.path.join(TEST_FILES_DIR, 'real.torrent') def test_simple_create(self): data = collections.OrderedDict()
ise-uiuc/Magicoder-OSS-Instruct-75K
# base_path = './data_imgs/rgb_target_imgs' # filelist = os.listdir(base_path) # for p_file in tqdm(filelist): # filepath = os.path.join(base_path, p_file)
ise-uiuc/Magicoder-OSS-Instruct-75K
import javax.annotation.PostConstruct; import javax.annotation.PreDestroy; import java.util.List;
ise-uiuc/Magicoder-OSS-Instruct-75K
# def test_all_images(self): # self.drinks.save() # images = Image.all_images() # self.assertTrue(len(images) > 0) # # def test_search_by_category(self):
ise-uiuc/Magicoder-OSS-Instruct-75K
#include <hpx/hpx_init.hpp> #include <hpx/hpx_finalize.hpp> /////////////////////////////////////////////////////////////////////////////// // Forwarding of hpx_main, if necessary. This has to be in a separate // translation unit to ensure the linker can pick or ignore this function, // depending on whether the main executable defines this symbol or not. int hpx_main(int argc, char** argv) { // Invoke hpx_startup::user_main
ise-uiuc/Magicoder-OSS-Instruct-75K
:param title: :type title: str :param instructions: :type instructions: ~microsoft.swagger.codegen.cloudintelligencequickstart.models.MicrosoftCiqsModelsGalleryContent :param parameters:
ise-uiuc/Magicoder-OSS-Instruct-75K
headers = { 'User-Agent':'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36' } def get_movie_url(url):
ise-uiuc/Magicoder-OSS-Instruct-75K
self.fs_proc(e) self.think_pin('fs') self.charge(name,self.conf[name+'.sp']) self.fs_alt_uses = 0 def fs_proc(self, e): self.update_fs_hits(self.conf[e.name+'.hit']) def update_fs_hits(self, fs_hits): self.fs_hits += fs_hits if self.fs_hits // 3 > self.fs_ahits: delta = self.fs_hits // 3 - self.fs_ahits self.fs_ahits = self.fs_hits // 3 self.s1.charge(self.sp_convert(0.30*delta, self.conf.s1.sp))
ise-uiuc/Magicoder-OSS-Instruct-75K
$cities = new CsvToSQLConverter(__DIR__ . '/../data/cities.csv', 'cities'); $cities->export(); $cat = new CsvToSQLConverter(__DIR__ . '/../data/categories.csv', 'categories'); $cat->export(); $opinions = new CsvToSQLConverter(__DIR__ . '/../data/opinions.csv', 'opinions'); $opinions->export(); $profiles = new CsvToSQLConverter(__DIR__ . '/../data/profiles.csv', 'profiles'); $profiles->export();
ise-uiuc/Magicoder-OSS-Instruct-75K
#endif };
ise-uiuc/Magicoder-OSS-Instruct-75K
'encode_mask_results' ]
ise-uiuc/Magicoder-OSS-Instruct-75K
this.requiredProductVersions.entrySet()) { final String product = productVersionEntry.getKey(); final Version dbVersion = this.versionDao.getVersion(product); if (dbVersion == null) { throw new ApplicationContextException( "No Version exists for " + product + " in the database. Please check the upgrade instructions for this release."); } final Version codeVersion = productVersionEntry.getValue(); final Field mostSpecificMatchingField = VersionUtils.getMostSpecificMatchingField(dbVersion, codeVersion);
ise-uiuc/Magicoder-OSS-Instruct-75K
# Import packages import numpy as np import pandas as pd # Define functions def feature_importance_linear(pipe): model = pipe.fit(X_train, y_train) feature_names = model['vec'].get_feature_names() coefs = model['clf'].coef_[0] return pd.DataFrame(zip(feature_names, coefs), columns =['feature', 'coef']).sort_values(by='coef', ascending=False).head(10) def feature_importance_tree(pipe): model = pipe.fit(X_train, y_train) feature_names = model['vec'].get_feature_names()
ise-uiuc/Magicoder-OSS-Instruct-75K
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ****************************************************************************** from qiskit.converters import circuit_to_dag, dag_to_circuit from qiskit.transpiler.passes import RemoveFinalMeasurements def get_width_of_circuit(circuit):
ise-uiuc/Magicoder-OSS-Instruct-75K
# cl = server.client_get() print("** DONE **")
ise-uiuc/Magicoder-OSS-Instruct-75K
kwdc: c_int, defs: *mut *mut PyObject,
ise-uiuc/Magicoder-OSS-Instruct-75K
self.uri = 'https://api.kraken.com'
ise-uiuc/Magicoder-OSS-Instruct-75K
</a> </div>
ise-uiuc/Magicoder-OSS-Instruct-75K
using System; using System.Windows;
ise-uiuc/Magicoder-OSS-Instruct-75K
for i in range(K): N = twoN(N) # output print(N) if __name__ == '__main__': main()
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>python/testData/inspections/PyUnresolvedReferencesInspection3K/asyncInitMethod.py class A:
ise-uiuc/Magicoder-OSS-Instruct-75K
data_dir=data_dir, augmentation="light", balance=balance, fast=fast, fold=fold, features=required_features, obliterate_p=obliterate_p, ) criterions_dict, loss_callbacks = get_criterions( modification_flag=modification_flag_loss,
ise-uiuc/Magicoder-OSS-Instruct-75K
return ID; } @Override public void encodeBody(Buffer _buffer) { byte[] dnc5bu = _buffer.convertString(username);
ise-uiuc/Magicoder-OSS-Instruct-75K
} input AddRecipeSourceInput { name: String! website: URL! logo: String! biography: String clientMutationId: String } input UpdateRecipeSourceInput { id: String! name: String website: URL
ise-uiuc/Magicoder-OSS-Instruct-75K
number = random.randint(1, max_range) output.append(number) return output def count_positives(students, simulations): """ Generate simulations of students and count how many of them have at least one pair of students with the same birthday. :rtype: int :param students: :param simulations:
ise-uiuc/Magicoder-OSS-Instruct-75K
if self.realWidth < 1280: self.mod_DisplayUtils__.DisplayUtils.GenerateMinDisplay(self, 1280, self.SavedHeight) if self.realHeight < 720: self.mod_DisplayUtils__.DisplayUtils.GenerateMinDisplay(self, self.SavedWidth, 720) self.mod_Pygame__.display.flip() clock.tick(60) for event in self.mod_Pygame__.event.get(): if event.type == self.mod_Pygame__.QUIT: self.Stop_Thread_Event.set()
ise-uiuc/Magicoder-OSS-Instruct-75K
return (event.type == 'PullRequestEvent' and event.payload.get('action') == 'opened') def handle(self, g, event): repo = GetRepo(event) if repo in self.omit_repos: self.logging.info('Skipping {} because it\'s in omitted repo {}'.format(event, repo))
ise-uiuc/Magicoder-OSS-Instruct-75K
public override void EarlyUpdate(Frame frame) => _onEarlyUpdate?.Invoke(); public override void Update(Frame frame) => _onUpdate?.Invoke(); public override void LateUpdate(Frame frame) => _onLateUpdate?.Invoke(); }
ise-uiuc/Magicoder-OSS-Instruct-75K
</form> </div> </div> <!-- /.widget-inner --> </div> <!-- /.widget-main --> <div class="widget-main"> <div class="widget-main-title"> <h4 class="widget-title">Filter Controls</h4> </div> <div class="widget-inner"> <ul class="mixitup-controls"> <li data-filter="all" class="filter active">Show All</li>
ise-uiuc/Magicoder-OSS-Instruct-75K
aem.set_n_proposal_samples_per_input_validation( args.n_proposal_samples_per_input_validation) log_density_np = [] log_proposal_density_np = []
ise-uiuc/Magicoder-OSS-Instruct-75K
# client packet: 44, bancho response: update match @OsuEvent.register_handler(OsuPacketID.Client_MatchStart)
ise-uiuc/Magicoder-OSS-Instruct-75K
override func cellClass(_ indexPath: IndexPath) -> DatasourceCell.Type? { return HomeCell.self } }
ise-uiuc/Magicoder-OSS-Instruct-75K
newAsset->path = path;
ise-uiuc/Magicoder-OSS-Instruct-75K
if child.returncode: root.status.set_msg('JSON Errors! Check its output.') else: self.area.swap(output, start, end) self.area.chmode('NORMAL') install = FmtJSON
ise-uiuc/Magicoder-OSS-Instruct-75K
playbook .add(AtomScenarios.self) .add(MoleculeScenarios.self) .add(OrganismScenarios.self) } }
ise-uiuc/Magicoder-OSS-Instruct-75K
config.show_help = True return config def print_help(): print("""Bayes Network Demo Usage: python main.py --predict python main.py -p wifes_age_1 -c husbands_occ_1,sol_4 -s 1000
ise-uiuc/Magicoder-OSS-Instruct-75K
@Validated @CrossOrigin public class AuthController { private final UserService userService;
ise-uiuc/Magicoder-OSS-Instruct-75K
std::scoped_lock lock(m_mutex); if (m_running) { // If the current time is before the start time, then the FPGA clock rolled // over. Compensate by adding the ~71 minutes that it takes to roll over to // the current time. if (currentTime < m_startTime) { currentTime += kRolloverTime; } result = (currentTime - m_startTime) + m_accumulatedTime;
ise-uiuc/Magicoder-OSS-Instruct-75K
std::cout
ise-uiuc/Magicoder-OSS-Instruct-75K
import { ViewEventDialogComponent } from './../../../dialogs/view-event-dialog/view-event-dialog.component'; import { EventsService, EventDetail } from './../../services/events.service';
ise-uiuc/Magicoder-OSS-Instruct-75K
# training config batch_size = batch_size_set_dgcca[dataset_name]
ise-uiuc/Magicoder-OSS-Instruct-75K
'role'=>'admin'
ise-uiuc/Magicoder-OSS-Instruct-75K
import printer def do_print(file_path): if file_path.endswith('.pdf'): file_path = convert_pdf_2_jpg.do_convert(file_path)
ise-uiuc/Magicoder-OSS-Instruct-75K
domain = np.linspace(0, np.pi) approx = coeffs @ [p(domain) for p in basis] fig, ax = plt.subplots() ax.plot(domain, function(domain), label='Exact') ax.plot(domain, approx, label='Approx') if __name__ == '__main__':
ise-uiuc/Magicoder-OSS-Instruct-75K
This module contains utility classes and methods to be used in tests """
ise-uiuc/Magicoder-OSS-Instruct-75K
// update the count of the target char char_size.get_mut(&new_first.0).map(|v| *v -= 1); new_first = char_sequence[0]; } if let Some((start, end)) = range { let (new_start, new_end) = (new_first.1, last.1); // check if the window is smaller than the previous window if new_end - new_start < end - start { range = Some((new_start, new_end));
ise-uiuc/Magicoder-OSS-Instruct-75K
HOSTS = ['127.0.0.1', '172.16.58.3']
ise-uiuc/Magicoder-OSS-Instruct-75K