seed
stringlengths
1
14k
source
stringclasses
2 values
<names> OPTIONS: --count <count> --version
ise-uiuc/Magicoder-OSS-Instruct-75K
except StopIteration: self.next_input = None # self.next_target = None return with torch.cuda.stream(self.stream): self.next_input = self.next_input.cuda(non_blocking=True) # self.next_target = self.next_target.cuda(non_blocking=True) # self.next_target = {key: self.next_target[key].cuda(non_blocking=True) for key in self.next_target} for key, value in self.next_target.items(): if value is not None: if isinstance(value, torch.Tensor): self.next_target[key] = value.cuda(non_blocking=True)
ise-uiuc/Magicoder-OSS-Instruct-75K
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
ise-uiuc/Magicoder-OSS-Instruct-75K
def test_register_duplicate_id(): registry = agent_registration.AgentRegistry() registry.register("Agent-v0") with pytest.raises(ValueError, match=r"Cannot re-register ID"): registry.register("Agent-v0") def test_make_missing_agent(): registry = agent_registration.AgentRegistry() with pytest.raises(KeyError, match=r"No registered agent with ID"):
ise-uiuc/Magicoder-OSS-Instruct-75K
to: to, payload: messageData, nonce: nonce, metaData: metaData ) } } // MARK: - Accountable public extension MessageParticle { func addresses() throws -> Addresses {
ise-uiuc/Magicoder-OSS-Instruct-75K
args = parser.parse_args() import tensorflow as tf os.environ["CUDA_VISIBLE_DEVICES"] = str(args.gpu_id) ####SHOULD THIS BE AN INT???
ise-uiuc/Magicoder-OSS-Instruct-75K
self.connection.commit() except psycopg2.errors.InFailedSqlTransaction as e:
ise-uiuc/Magicoder-OSS-Instruct-75K
with suppress(TypeError): values = list(set(values)) return sorted(values) if sort is True else values def author_set(self, sort=True, **kwargs):
ise-uiuc/Magicoder-OSS-Instruct-75K
class <warning descr="Python version 3.7 does not allow 'async' and 'await' as names">a<caret>wait</warning>(object): pass
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>GalBenZvi/qsiprep_analyses<gh_stars>0 """ Tensor estimation module. """
ise-uiuc/Magicoder-OSS-Instruct-75K
from checkout.orders.order_service import Order, AuthorisationRequest
ise-uiuc/Magicoder-OSS-Instruct-75K
config = Configuration(None, parent_package, top_path) config.set_options(ignore_setup_xxx_py=True, assume_default_configuration=True, delegate_options_to_subpackages=True, quiet=True) config.add_subpackage('sfepy') main_scripts = [ 'phonon.py',
ise-uiuc/Magicoder-OSS-Instruct-75K
fileprivate func authorizationStatus() -> CLAuthorizationStatus { return type(of: locationManager).authorizationStatus() }
ise-uiuc/Magicoder-OSS-Instruct-75K
assert (len(report) == len(atp_binding)) and (len(report[0]) == 2) ligand_info = rcsb_web_services.get_ligand_info_for_structures(['1mru']) assert (len(ligand_info) == 4) print("OK") if (__name__ == "__main__"): exercise()
ise-uiuc/Magicoder-OSS-Instruct-75K
description: string; textToUpload: string; imageToUpload: string; }
ise-uiuc/Magicoder-OSS-Instruct-75K
// nextButton5 // resources.ApplyResources(this.nextButton5, "nextButton5"); this.nextButton5.Name = "nextButton5"; this.nextButton5.UseVisualStyleBackColor = true; this.nextButton5.Click += new System.EventHandler(this.nextButton5_Click); // // pictureBox7 // resources.ApplyResources(this.pictureBox7, "pictureBox7"); this.pictureBox7.Image = global::MeshCentralInstaller.Properties.Resources.EmptyBanner; this.pictureBox7.Name = "pictureBox7"; this.pictureBox7.TabStop = false; // // pictureBox6
ise-uiuc/Magicoder-OSS-Instruct-75K
def timescale_tau2(self, tevs, kappas_tev, proper_pts, curves, steps=3, option=0): r"""Compute the square of the timescale `tau`. This computes \f[ \tau^2 := \left( \frac{1}{A} \int_{\mathcal{S}} \kappa^{(V)} \Theta_{(V)}\ dA \right)^{-1} \,,
ise-uiuc/Magicoder-OSS-Instruct-75K
if N == 0: return 1 return N * factorial(N-1) print(factorial(N))
ise-uiuc/Magicoder-OSS-Instruct-75K
done echo "DONE" exit 0
ise-uiuc/Magicoder-OSS-Instruct-75K
/// the receiver. /// /// [`AppendEntries`]: #variant.AppendEntries AppendEntriesResponse { /// Indicate whether or not the new log entries were accepted. success: bool, /// Indicate the index of the next log entry the receiver should /// send back. next_log_index: usize, }, /// Replace the server state and compacted log with a given snapshot. InstallSnapshot {
ise-uiuc/Magicoder-OSS-Instruct-75K
def exit(n): pass exit(0) stdout = open("/dev/null") stderr = open("/dev/null") stdin = open("/dev/null")
ise-uiuc/Magicoder-OSS-Instruct-75K
if type(rospy.get_param(param_name)) is not required_type:
ise-uiuc/Magicoder-OSS-Instruct-75K
except: pass features.sort( key=lambda feat:( 1 if exons[feat['Name']].length == 1 else 0, exons[feat['Name']].start_pos,
ise-uiuc/Magicoder-OSS-Instruct-75K
use super::*; #[test] fn test_into_char() { let digit = Key::Digit('9'); let c = digit.into();
ise-uiuc/Magicoder-OSS-Instruct-75K
kMaxEpisodeSteps = 700 kImageSize = {'width': 96, 'height': 96} kFinalImageSize = {'width': 84, 'height': 84} def __init__(self, is_render=False, is_good_view=False):
ise-uiuc/Magicoder-OSS-Instruct-75K
$options[$option] = 'true'; } elseif ($options[$option] === false || $options[$option] === 'false') { $options[$option] = 'false'; } else { $options[$option] = "'{$options[$option]}'"; } } } return $options; } }
ise-uiuc/Magicoder-OSS-Instruct-75K
import twint
ise-uiuc/Magicoder-OSS-Instruct-75K
. ./bin/activate pip2 install -r requirements.txt ./bin/pelican content -s pelicanconf.py || exit if [ "$REALLY_DEPLOY" = "1" ]; then rsync -e "ssh -i $HOME/.ssh/twir_deploy_key" -razvP --delete-after output/ <EMAIL>:production fi
ise-uiuc/Magicoder-OSS-Instruct-75K
else: return Status.ONGOING
ise-uiuc/Magicoder-OSS-Instruct-75K
vcfexplorer.frontend.views VCF Explorer frontend views """ from flask import send_file from . import bp @bp.route('/', defaults={'path': ''})
ise-uiuc/Magicoder-OSS-Instruct-75K
<gh_stars>1000+
ise-uiuc/Magicoder-OSS-Instruct-75K
""" binaries_srcdir = os.path.normpath( os.path.join( os.getcwd(), 'integration_tests/security/demo_advanced_seccomp/' ) ) build_path = os.path.join( test_session_root_path, host.CARGO_RELEASE_REL_PATH )
ise-uiuc/Magicoder-OSS-Instruct-75K
# CHECK: func {{@[a-zA-Z_0-9]+}}() -> (
ise-uiuc/Magicoder-OSS-Instruct-75K
{ log::debug!("Using USB PLL, divided down to 120MHz"); ( PERIPH_CLK2_SEL::RW::PERIPH_CLK2_SEL_0, PERIPH_CLK2_PODF::RW::PERIPH_CLK2_PODF_3, ) } else { log::debug!("USB PLL is off; using 24MHz oscillator"); (
ise-uiuc/Magicoder-OSS-Instruct-75K
df_tmp.fillna(method="backfill", inplace=True) assert df_tmp_len == df_tmp.shape[0] assert df_tmp.isnull().values.any() == False df_tmp_list.append(df_tmp) if return_as_list:
ise-uiuc/Magicoder-OSS-Instruct-75K
#include <gtest/gtest.h> #include <yoga/Yoga.h> static float _baselineFunc(YGNodeRef node, const float width, const float height) { return height / 2; }
ise-uiuc/Magicoder-OSS-Instruct-75K
new = getattr(self, round_dir)() self.signbit = new.signbit self.characteristic = new.characteristic self.significand = new.significand self.bin_value = new.bin_value self.dec_value = new.dec_value self.tuple_rep = new.tuple_rep
ise-uiuc/Magicoder-OSS-Instruct-75K
let vec_lines = vec![line1, line2, line3, line4];
ise-uiuc/Magicoder-OSS-Instruct-75K
def generate_random_depth(maxlevel, maxkeys): depth = [] for i in range(maxkeys): depth.append(random.randint(0,maxlevel)) return depth def generate_keys(fields, maxlevel, maxlength, maxkeys): depth = generate_random_depth(maxlevel,maxkeys) for i in range(0,maxkeys): if i==0: print("{ ", end="") print("key" + str(i) + ": ", end="") create_nested(fields, depth[i], maxlength, random.randint(0,maxkeys), create_random_value("int", maxlength)) if i < maxkeys-1:
ise-uiuc/Magicoder-OSS-Instruct-75K
XVEGA_API void to_json(nl::json&, const mark_rule&); } #endif
ise-uiuc/Magicoder-OSS-Instruct-75K
"context.test", "ml-classification.test", "ml-evaluation.test", "ml-feature.test", "ml-param.test", "ml-readable.test", "resultiterable.test", "sql-readwriter.test", "sql-udf.test", ]
ise-uiuc/Magicoder-OSS-Instruct-75K
properties = { "ref": row["LocationNumber"], "name": row["Name"], "addr_full": row["ExtraData"]["Address"]["AddressNonStruct_Line1"], "city": row["ExtraData"]["Address"]["Locality"], "state": row["ExtraData"]["Address"]["Region"], "postcode": row["ExtraData"]["Address"]["PostalCode"], "lat": row["Location"]["coordinates"][1], "lon": row["Location"]["coordinates"][0], "phone": row["ExtraData"]["Phone"], } hours = self.parse_hours(row["ExtraData"]["Hours of operations"]) if hours:
ise-uiuc/Magicoder-OSS-Instruct-75K
//x_rotate(&mut pipeline_point, rot);
ise-uiuc/Magicoder-OSS-Instruct-75K
from . import foo_c
ise-uiuc/Magicoder-OSS-Instruct-75K
res = $"while ({this.expr(whileStat.condition)})" + this.block(whileStat.body); else if (stmt is ForStatement forStat2) res = $"for ({(forStat2.itemVar != null ? this.var(forStat2.itemVar, null) : "")}; {this.expr(forStat2.condition)}; {this.expr(forStat2.incrementor)})" + this.block(forStat2.body); else if (stmt is DoStatement doStat) res = $"do{this.block(doStat.body)} while ({this.expr(doStat.condition)});"; else if (stmt is TryStatement tryStat) { res = "try" + this.block(tryStat.tryBody, false); if (tryStat.catchBody != null) {
ise-uiuc/Magicoder-OSS-Instruct-75K
sudo apt-get install --no-install-recommends libboost-all-dev -y sudo apt-get install libatlas-base-dev libopenblas-dev -y sudo apt-get install the python3-dev -y sudo apt-get install python3-skimage -y sudo pip3 install pydot -y sudo apt-get install graphviz -y
ise-uiuc/Magicoder-OSS-Instruct-75K
else: print("Recompensa obtida abaixo do previsto. FAILED\n")
ise-uiuc/Magicoder-OSS-Instruct-75K
# * A set of three ones is 1000 points # # * A set of three numbers (other than ones) is worth 100 times the # number. (e.g. three fives is 500 points). # # * A one (that is not part of a set of three) is worth 100 points. # # * A five (that is not part of a set of three) is worth 50 points. # # * Everything else is worth 0 points. # # # Examples: # # score([1,1,1,5,1]) => 1150 points
ise-uiuc/Magicoder-OSS-Instruct-75K
echo "Creating symbolic link in autoload directory." ln -s $file $link fi echo "Done."
ise-uiuc/Magicoder-OSS-Instruct-75K
npm install cd ../../ cd ./modules/cmpapi npm install cd ../../ cd ./modules/core npm install cd ../../
ise-uiuc/Magicoder-OSS-Instruct-75K
import * as ts from "typescript"; export declare function toSonarLine(line: number): number; export declare function nodeToSonarLine(node: ts.Node): number; export declare function stringifyToStream(stream: NodeJS.WritableStream, data: any[]): void;
ise-uiuc/Magicoder-OSS-Instruct-75K
from . import schemas SECRET_KEY = "<KEY>" ALGORITHM = "HS256" ACCESS_TOKEN_EXPIRE_TIME = 30
ise-uiuc/Magicoder-OSS-Instruct-75K
from django.contrib import admin from base.conf import settings admin.site.site_title = f'{settings.ICO_TOKEN_NAME} Wallet' admin.site.site_header = f'{settings.ICO_TOKEN_NAME} Wallet Administration'
ise-uiuc/Magicoder-OSS-Instruct-75K
Wrapper for PxFoundation class */ use crate::{owner::Owner, traits::Class, version}; use enumflags2::BitFlags; use physx_sys::{ create_alloc_callback, get_default_allocator, get_default_error_callback,
ise-uiuc/Magicoder-OSS-Instruct-75K
""" def __init__(self, k=2, tol=0.001, max_iter=300): self.k = k self.tol = tol self.max_iter = max_iter def fit(self, data): """Compute k-means clustering.""" self.centroids = centroids = dict() for i in range(self.k): centroids[i] = data[i] for i in range(self.max_iter):
ise-uiuc/Magicoder-OSS-Instruct-75K
} return nil } }
ise-uiuc/Magicoder-OSS-Instruct-75K
// TODO Auto-generated catch block
ise-uiuc/Magicoder-OSS-Instruct-75K
mediaIdade = int(somaIdade / 4) print('A média de idade do grupo de pessoas é de {} anos.'.format(mediaIdade)) print('O homem mais velho tem {} anos e se chama {}.'.format(maiorIdade, nomeVelho)) print('Ao todo são {} mulher com menos de 20 anos.'.format(totmulher20))
ise-uiuc/Magicoder-OSS-Instruct-75K
self.rels[words] = rel def __call__(self, sample: ptb.Sample) -> torch.Tensor: """Map all possible (word, word) pairs to labels. Args:
ise-uiuc/Magicoder-OSS-Instruct-75K
@Test public void comparatorTestsPort() { UriComparator matcher = UriComparators.fullComparator(uri("http://www.proxyNameAndPortRequiredForConstruction.com/"));
ise-uiuc/Magicoder-OSS-Instruct-75K
didSet { self.filteredIcons = self.icons.filter { if self.filterString == "" { return true } else { return ($0 as IconObject).name.lowercased().range(of: filterString) != nil
ise-uiuc/Magicoder-OSS-Instruct-75K
# # 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 # 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. __author__ = "<NAME>"
ise-uiuc/Magicoder-OSS-Instruct-75K
sudo /opt/google-cloud-sdk/bin/kubectl patch statefulset constellation-app --type='json' \ -p='[{"op": "replace", "path": "/spec/template/spec/containers/0/image", "value":"'$IMAGE'"}]' sudo /opt/google-cloud-sdk/bin/kubectl rollout status sts constellation-app
ise-uiuc/Magicoder-OSS-Instruct-75K
"-o", "--open", action="store_true", help="opens the output in the default browser", )
ise-uiuc/Magicoder-OSS-Instruct-75K
<Layout> <Seo title="404 Not found" /> <Template> <Section css={sectionStyle}> <Heading>Not found</Heading> <Text>You just hit a route that doesn&#39;t exist... the sadness.</Text> <Link to={'/'}>Please Try this Link</Link> </Section> </Template> </Layout> ) export default NotFoundPage
ise-uiuc/Magicoder-OSS-Instruct-75K
def correct_colors(image: Tensor, source: Tensor) -> Tensor: if len(image.shape) == 4: image = image.squeeze(0) if len(source.shape) == 4: source = source.squeeze(0) channels = [] for i in range(image.shape[0]): my_std = image[i, :, :].std() if torch.abs(my_std) < epsilon: alpha = 1.0 else:
ise-uiuc/Magicoder-OSS-Instruct-75K
@Override public void update(Product entity) { } }
ise-uiuc/Magicoder-OSS-Instruct-75K
if len(__result) > 1 or len(__result) == 0: raise Exception("SwiftError(109): You tried to execute Single Query. The query returns more than one element or none.") return __result[0] @classmethod def SingleOrDefault(cls, commandText: str, providerKey: KeyProvider, parameters: object = None, classType: Type[T] = None) -> [T]: """ Method responsible to execute queries in database but just return only one item or nothing. For instance: Selects :param providerKey: key of provider that the swift will use the db connection'
ise-uiuc/Magicoder-OSS-Instruct-75K
@param y1Unit: The Y1-axis units of measure. Values are: "A", "rad", "none", "g", "W/Hz", "V", "m2", "VA", "VArh", "N", "Pa", "VAh", "F", "H", "Hz-1", "W/s", "J", "m", "S", "min", "deg", "J/s", "s", "Wh", "m3", "oC", "V/VAr", "s-1", "h", "W", "ohm", "Hz", "VAr", "kg/J" @param curveStyle: The style or shape of the curve. Values are: "straightLineYValues", "rampYValue", "constantYValue", "formula" @param xUnit: The X-axis units of measure. Values are: "A", "rad", "none", "g", "W/Hz", "V", "m2", "VA", "VArh", "N", "Pa", "VAh", "F", "H", "Hz-1", "W/s", "J", "m", "S", "min", "deg", "J/s", "s", "Wh", "m3", "oC", "V/VAr", "s-1", "h", "W", "ohm", "Hz", "VAr", "kg/J" @param CurveDatas: The point data values that define a curve """ #: The Y1-axis units of measure. Values are: "A", "rad", "none", "g", "W/Hz", "V", "m2", "VA", "VArh", "N", "Pa", "VAh", "F", "H", "Hz-1", "W/s", "J", "m", "S", "min", "deg", "J/s", "s", "Wh", "m3", "oC", "V/VAr", "s-1", "h", "W", "ohm", "Hz", "VAr", "kg/J" self.y1Unit = y1Unit #: The style or shape of the curve. Values are: "straightLineYValues", "rampYValue", "constantYValue", "formula" self.curveStyle = curveStyle #: The X-axis units of measure. Values are: "A", "rad", "none", "g", "W/Hz", "V", "m2", "VA", "VArh", "N", "Pa", "VAh", "F", "H", "Hz-1", "W/s", "J", "m", "S", "min", "deg", "J/s", "s", "Wh", "m3", "oC", "V/VAr", "s-1", "h", "W", "ohm", "Hz", "VAr", "kg/J" self.xUnit = xUnit self._CurveDatas = []
ise-uiuc/Magicoder-OSS-Instruct-75K
from .rules import RulesView
ise-uiuc/Magicoder-OSS-Instruct-75K
go get github.com/lib/pq go get github.com/badoux/checkmail go get golang.org/x/crypto/bcrypt go get github.com/badoux/checkmail
ise-uiuc/Magicoder-OSS-Instruct-75K
from kumo.message import Message, MessageType class NodeHandler(BaseHandler):
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>concurrency/example4_client.py import zmq ctx = zmq.Context.instance() sock = ctx.socket(zmq.REQ) sock.connect('tcp://ip-address-here:8001') def get_random(lo=0, hi=1): sock.send_json([lo, hi]) return sock.recv_json()
ise-uiuc/Magicoder-OSS-Instruct-75K
# <NAME>, <NAME> # orthologue # (c) 1998-2019 all rights reserved #
ise-uiuc/Magicoder-OSS-Instruct-75K
self.initialize_initial_input_and_output_values() while True:
ise-uiuc/Magicoder-OSS-Instruct-75K
public init(operation: UINavigationController.Operation) { self.operation = operation
ise-uiuc/Magicoder-OSS-Instruct-75K
return sortedDashboards.map(dashboard => ( <DashboardCard key={dashboard.id} dashboard={dashboard} onCloneDashboard={onCloneDashboard} onDeleteDashboard={onDeleteDashboard} onUpdateDashboard={onUpdateDashboard} onFilterChange={onFilterChange} /> )) }
ise-uiuc/Magicoder-OSS-Instruct-75K
// 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 // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
ise-uiuc/Magicoder-OSS-Instruct-75K
def valid_discovery_config(service, config): """Validate service name.""" try:
ise-uiuc/Magicoder-OSS-Instruct-75K
print(f'{self.GRY_BLD}----------------------------------{self.END_COLOR}\n') print(f"{self.GRY_BLD}status: {self.END_COLOR}{self.GRN} OK{self.END_COLOR}") print(f"{self.GRY_BLD}message:{self.END_COLOR} {message}") print(f'{self.GRY_BLD}----------------------------------{self.END_COLOR}\n') def warn(self, process, message): print( f"|| STATUS == WARN || :: {self.GRY}{process}{self.END_COLOR}\nmessage: {message}\n") def error(self, process, message): print(
ise-uiuc/Magicoder-OSS-Instruct-75K
x = torch.cat((x.mean(dim=-1), x.mean(dim=-2)), dim=-1) qkv = self.to_qkv(x) q, k, v = rearrange(qkv, 'b (qkv h d) n -> qkv b h d n', h=self.heads, qkv=3) dots = einsum('bhdi,bhdj->bhij', q, k) attn = dots.softmax(dim=-1) out = einsum('bhij,bhdj->bhdi', attn, v)
ise-uiuc/Magicoder-OSS-Instruct-75K
Action<T, T> elementAsserter, bool verifyOrdered) { Assert.Equal(expected.Count, actual.Count); elementAsserter = elementAsserter ?? Assert.Equal; if (!verifyOrdered) { expected = expected.OrderBy(elementSorter).ToList();
ise-uiuc/Magicoder-OSS-Instruct-75K
assert title is not None assert mt == title.main_title for mt in ["untitled", "translation"]: title = Title.get_or_create(mt) assert title is not None assert mt == title.main_title assert 1 == title.subtitle title = Title.get_or_create(mt)
ise-uiuc/Magicoder-OSS-Instruct-75K
import re import os import mimetypes
ise-uiuc/Magicoder-OSS-Instruct-75K
## from html.parser import HTMLParser class TagHTMLParser(HTMLParser): def __init__(self): HTMLParser.__init__(self) self.count = 0 def handle_starttag(self, start_tag, attrs): if tag == start_tag: self.count += 1 def handle_endtag(self, end_tag): if tag == end_tag:
ise-uiuc/Magicoder-OSS-Instruct-75K
changeEvents = changeSubject.asObservable(); startupEvents = startupSubject.asObservable(); } @Override public boolean isBooting() { return systemBooting; }
ise-uiuc/Magicoder-OSS-Instruct-75K
import org.restlet.resource.ServerResource; import com.google.inject.Inject; import eu.motogymkhana.server.api.request.GymkhanaRequest; import eu.motogymkhana.server.api.result.ListRidersResult; import eu.motogymkhana.server.api.result.ListRoundsResult; import eu.motogymkhana.server.model.Round; import eu.motogymkhana.server.persist.MyEntityManager; import eu.motogymkhana.server.resource.GetRoundsResource; import eu.motogymkhana.server.round.RoundManager; public class GetRoundsServerResource extends ServerResource implements GetRoundsResource {
ise-uiuc/Magicoder-OSS-Instruct-75K
'fsrm', 'fsserve', 'fstree', 'fsmkdir', 'fsmount']
ise-uiuc/Magicoder-OSS-Instruct-75K
'domain', 'limited', 'validation', 'user-input', 'friendly', 'understandable',
ise-uiuc/Magicoder-OSS-Instruct-75K
Series::new( name, val.iter() .map(|dt| dt.map(|dt| dt.into())) .collect::<Vec<Option<i64>>>(), ) .cast(&DataType::Datetime(TimeUnit::Microseconds, None)) .unwrap(), ) } #[rustler::nif]
ise-uiuc/Magicoder-OSS-Instruct-75K
* "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,
ise-uiuc/Magicoder-OSS-Instruct-75K
def paretovariate(self, name, alpha, **kwargs): """Create a new parameter with the given name modeled by random.paretovariate(alpha).""" return self.param(name, "paretovariate", alpha, **kwargs) def weibullvariate(self, name, alpha, beta, **kwargs): """Create a new parameter with the given name modeled by random.weibullvariate(alpha, beta).""" return self.param(name, "weibullvariate", alpha, beta, **kwargs) # Choice functions: def _categorical(self, name, num_categories, **kwargs): """Create a new parameter with the given name modeled by random.choice(range(num_categories)).""" return self.param(name, "choice", range(num_categories), **kwargs)
ise-uiuc/Magicoder-OSS-Instruct-75K
Parameters ---------- sequence : any object that implements `__iter__` Sequence of elements for which the `__mul__` operator is defined. inplace : bool, default=False Perform the product inplace (using `__imul__` instead of `__mul__`). Returns ------- product : Product of the elements in the sequence. """
ise-uiuc/Magicoder-OSS-Instruct-75K
import Strategy from '../../assets/vectors/strategy.svg' import Training from '../../assets/vectors/training.svg' export default class Services extends React.Component<{}, {}> { render() { return ( <div className={styles.Services} id="Services"> <div className={styles.Centered}> <h1>Tú puedes rescatarlos</h1>
ise-uiuc/Magicoder-OSS-Instruct-75K
if (value is not null) video.Message.Value = value; }); this.StagedDownloadTaskPool.AddTask(task); } /// <summary> /// 複数の動画をステージする /// </summary> /// <param name="videos"></param>
ise-uiuc/Magicoder-OSS-Instruct-75K
Err(TryRecvError::Empty) => Some(Ok(None)), Err(TryRecvError::Disconnected) => { self.is_exhaust.store(true, Ordering::SeqCst); None } }
ise-uiuc/Magicoder-OSS-Instruct-75K
DIR_IN=blockchain20200207 # preprocessed data dir DIR_OUT=blockchain20200207_process # maximum memory use for sorting -- adjust as necessary SORT_MEMORY_USE=64G echo "Join transaction inputs and outputs to create edges" misc/numjoin -j 1 -o1 1,5 -o2 3 <(xzcat $DIR_IN/bitcoin_2020_txin.dat.xz) <(xzcat $DIR_IN/bitcoin_2020_txout.dat.xz) | gzip -c > $DIR_OUT/edges.dat.gz echo "Create unique edges" zcat $DIR_OUT/edges.dat | awk 'BEGIN{OFS="\t";}{if($2!=$3) print $2,$3;}' | sort -k 1n,1 -k 2n,2 -S $SORT_MEMORY_USE | uniq | gzip -c > $DIR_OUT/edges_uniq.dat.gz echo "Add timestamps to the edges"
ise-uiuc/Magicoder-OSS-Instruct-75K
(cd drishti-upload && github_upload)
ise-uiuc/Magicoder-OSS-Instruct-75K
if '+iso' in spec: options.extend([ '-DENABLE_ISO=ON' ]) if '+prune' in spec: options.extend([ '-DENABLE_PRUNE=ON' ]) if '+geometry' in spec: options.extend([ '-DGEOMETRY=ON' ]) if '+stk' in spec: options.extend([ '-DSTK_ENABLED=ON' ]) if '+esp' in spec:
ise-uiuc/Magicoder-OSS-Instruct-75K
matplotlylib = optional_imports.get_module('plotly.matplotlylib') if matplotlylib: import matplotlib # Force matplotlib to not use any Xwindows backend. matplotlib.use('Agg') import matplotlib.pyplot as plt
ise-uiuc/Magicoder-OSS-Instruct-75K