seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
gameObject.SetActive(false);
DidHide();
return ok;
}
async UniTask<bool> Animate(string trigger, CancellationToken token = default) {
if (animator == null || trigger == null || trigger == string.Empty || trigger == "None" || trigger == "Null") { return true; }
if (!Application.isPlaying) { return t... | ise-uiuc/Magicoder-OSS-Instruct-75K |
import pulumi_azure_native.netapp.v20190701 as v20190701
import pulumi_azure_native.netapp.v20190801 as v20190801
import pulumi_azure_native.netapp.v20191001 as v20191001
import pulumi_azure_native.netapp.v20191101 as v20191101
| ise-uiuc/Magicoder-OSS-Instruct-75K |
});
it("getLoaded() should return the current 'loaded' status", () => {
const result = usersQuery.getLoaded(storeState);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
m_nameExp->outputCPP(cg, ar);
cg_printf(")");
}
cg_printf(")");
}
cg_printf(");\n");
cg_printf("MethodCallPackage mcp%d;\n", m_ciTemp);
cg_printf("mcp%d.construct(obj%d);\n", m_ciTemp, m_objectTemp);
cg_printf("const CallInfo *cit%d = mcp%d.ci;\n", m_ciTemp, m_ciTemp);
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
return
}
funcBacktrace(level - 1)
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
eventFile = sys.argv[6];
if targetThroughput == '-':
targetThroughput = None;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
docker run -d --name zipkin -p 9411:9411 openzipkin/zipkin
| ise-uiuc/Magicoder-OSS-Instruct-75K |
vSet[set1].extend(vSet[set2])
del vSet[set2]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public static var name: String = "Virology Testing - Negative Result (Isolation)"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import java.util.List;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
final ByteBuffer buf = ByteBuffer.allocate(serializedKey.length + NEWFLAG_SIZE);
buf.put(serializedKey);
buf.put((byte) (data.newValue != null ? 1 : 0));
return buf.array();
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/**
* Copyright 2021 Shulie Technology, Co.Ltd
* Email: <EMAIL>
* 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
*
| ise-uiuc/Magicoder-OSS-Instruct-75K |
abort();
return E_MAX;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
const propsAPI = usePropsAPI<NodeData, EdgeData, PortData>();
React.useImperativeHandle(props.propsAPIRef, () => propsAPI, [propsAPI]);
const graphConfig = React.useContext(GraphConfigContext);
const enabledFeatures = propsAPI.getEnabledFeatures();
const reducerContext: IGraphReducerContext = React.useMemo(
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
[V.DATE, V.TIME, V.HERO, V.EXPERIENCE], 'hero#N +experience#EXP'),
('ACTION_EVENT_HABIT_MOVE_TO_NOBLE_MONEY', 40026, 'Дневник: В движении, черты, благородство (деньги)', relations.LEXICON_GROUP.ACTION_EVENT,
'События при путешествии благородного героя (деньги)',
[V.DATE, V.TIME, V.CO... | ise-uiuc/Magicoder-OSS-Instruct-75K |
return columns, data
def get_columns(filters):
"""return columns based on filters"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
octave --eval "test largestNumber" | ise-uiuc/Magicoder-OSS-Instruct-75K |
CAMPO_REGIAO = ('VMM_MANAGER_REGIAO',
'Região na qual a VM foi criada (script vmm_manager).')
CAMPO_REDE_PRINCIPAL = ('VMM_MANAGER_REDE_PRINCIPAL',
'Nome da rede principal da VM (script vmm_manager).')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# record the .pkl file output
python PMI.py
# run the following to get the estimated noise level
# record \sigma, the output
python noise_est_pmi.py
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from flask import Flask
from flask import render_template
from flask_restful import Api
from shield_app.utils.route_utils import error_handler
from shield_app.api.route import Certificate
current_path = os.path.dirname(os.path.abspath(__file__))
ui_path = os.path.join(current_path, os.pardir, "shield_ui")
app = Flask... | ise-uiuc/Magicoder-OSS-Instruct-75K |
super(PdfRelayException, self).__init__(args, kwargs)
class JobError(PdfRelayException):
"""Issue with the parameters of the conversion job"""
class EngineError(PdfRelayException):
"""Engine process spawning/execution error"""
class MetadataError(PdfRelayException):
"""An error occurred in the retrieval or savi... | ise-uiuc/Magicoder-OSS-Instruct-75K |
type Err = crate::Error;
fn from_str(s: &str) -> Result<Self, Self::Err> {
try_from(s)
}
}
impl TryFrom<&str> for Box<ServerName> {
type Error = crate::Error;
fn try_from(s: &str) -> Result<Self, Self::Error> {
try_from(s)
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def group_by_day_of_the_week(df):
grouped = df.groupby(['DAY_OF_THE_WEEK']).size().to_frame('Crimes')
labels = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday']
p = grouped.plot.pie(y='Crimes', labels=labels, autopct='%1.1f%%')
p.set_title('Crimes Percentage Grouped By Day o... | ise-uiuc/Magicoder-OSS-Instruct-75K |
items[i_id] +=1
| ise-uiuc/Magicoder-OSS-Instruct-75K |
const bigNum = new BigNumber ( `${ a }` );
return bigNum[ calcType ] ? bigNum[ calcType ] ( b ).toString () : '--';
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
inline void _follow_path(f64 dt)
{
system.update_position = true;
system.update_rotation = true;
if (system.mover.state >= system.mover.steps[system.mover.num_points - 1].time){
system.position = system.mover.steps[system.mover.num_points - 1].position;
system.mover.active = false;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
test_prediction_rate = 0.0
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"created":datetime.utcfromtimestamp(row[3]).strftime('%Y-%m-%dT%H:%M:%S')
})
return news
async def start_background_tasks(app):
app['news_listener'] = asyncio.create_task(main_news_task(app))
async def cleanup_background_tasks(app):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import CoreData
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if not beat_files_dir.endswith("/"):
beat_files_dir += "/"
annotation_files_url = [f for f in os.listdir(annotation_files_dir) if f.endswith((file_extension))]
nb_annotation_files = len(annotation_files_url)
beat_files_url = [f for f in os.listdir(beat_files_dir) if f.endswith((file_extension)... | ise-uiuc/Magicoder-OSS-Instruct-75K |
"data": task.execute.data,
"command": task.execute.command,
"timeout": task.execute.timeout,
"standard": task.execute.standard
}
else:
res["execute"] = None
# Result information
if result and task.result:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
label_count = model_settings['label_count']
| ise-uiuc/Magicoder-OSS-Instruct-75K |
neuroner = Neuroner()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
tree.write(os.path.join(datapath, folder, file))
print('finished')
accesssizes(data) | ise-uiuc/Magicoder-OSS-Instruct-75K |
OutOfMemoryError e = assertThrows(OutOfMemoryError.class, () -> {
cachedService.throwErrorDuringCacheComputation();
});
assertEquals(FORCED_EXCEPTION_MESSAGE, e.getMessage());
}
@Singleton
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from .operations import Multiply, Add, Substract
class MyApp(object):
def __init__(self):
self.operations={'multiply': Multiply,
'add': Add,
'substract': Substract}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return L, [], [], []
class SearchResults (SearchResults):
def __init__ (self, sids, scores, sets):
self._sids = sids
self._scores = scores
self._sets = sets
self._sort = None
self._list = None
self._list_for = None
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
package com.andedit.badtrucks.world;
public class WorldRenderer {
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
path.resolve(
__dirname,
'../__fixtures__/ed25519-did-core-conformance-vectors.json'
),
JSON.stringify(fixture, null, 2)
);
}
});
| ise-uiuc/Magicoder-OSS-Instruct-75K |
with torch.no_grad():
extracted = self.forward(x).detach()
pred = torch.log_softmax(self.linear(extracted), dim=-1)
# Grab samples that have a label.
mask = (y >= 0)
loss += f.nll_loss(pred[mask], y[mask])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public string Path { get; set; }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
const mapStateToProps = ({ member: { interestNodes } }: RootState) => {
return { interestNodes }
}
export default connect(mapStateToProps, {})(NodeDetail)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
var isCompleted: Bool { get }
func begin()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
a = x1 - (x2 - x1)**2/(x3 - 2*x2 + x1)
a = np.asarray(a)
inds = np.isnan(a)
a[inds] = x3[inds]
inds = np.isinf(a)
a[inds] = x3[inds]
return a
| ise-uiuc/Magicoder-OSS-Instruct-75K |
cwd_config_filename = os.path.join(os.getcwd(), tool_name + CONFIG_FILE_EXT)
root_clouni_config_filename = os.path.join(utils.get_project_root_path(),
tool_name + CONFIG_FILE_EXT)
tools_directory = os.path.join(os.path.dirname(os.path.dirname(... | ise-uiuc/Magicoder-OSS-Instruct-75K |
from MPD218 import MPD218
def create_instance(c_instance):
return MPD218(c_instance)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@param (topStreams) -> list of 20 dictionary objects
'''
def insertTopStreams(dbConnection, cursor, time, topStreams):
# multidimensional list
# list order: [channel_id, display_name, language, game, created_at, followers, views, viewers, preview_template]
items = []
for stream in topStreams:
item = []
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
for each piece of data:
shdu.write(data)
shdu.close()
"""
def __init__(self, name, header):
"""
Construct a `StreamingHDU` object given a file name and a header.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Returns:
Vector object.
"""
return next((v for v in self if v.name == name), None)
def get_names(self):
"""Get the vectors names.
Returns:
List of strings. Contain vectors names.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if __name__ == "__main__":
# Tests
# with open("scrap_influx.txt", "r", encoding="utf-8") as f:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
isOnBlur: boolean;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
CSV_URL = 'https://bit.ly/2HiD2i8'
def get_csv():
"""Use requests to download the csv and return the
decoded content"""
resp = requests.get(CSV_URL)
resp.raise_for_status()
return resp.text
| ise-uiuc/Magicoder-OSS-Instruct-75K |
</nav>
<main>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
FILE="$CURDIR/lock.png"
BACKGROUND="355C7D"
swaylock --indicator-radius 50 --indicator-thickness 4 --insidecolor $BACKGROUND --keyhlcolor 000000 --linecolor $BACKGROUND --ringcolor ${BACKGROUND}00 -r -t -i $FILE
| ise-uiuc/Magicoder-OSS-Instruct-75K |
schema->inputWidth = lastSchema->outputWidth;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
with open(csv_file, 'r') as train_set:
for video in train_set:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
void ListboxTextItem::setFont(const String& font_name)
{
setFont(&FontManager::getSingleton().get(font_name));
}
//----------------------------------------------------------------------------//
void ListboxTextItem::setFont(Font* font)
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def testHasFunctions(self):
self.assertEquals(["contains", "getAll", "remove", "request"],
sorted(self.permissions.functions.keys()))
def testHasTypes(self):
self.assertEquals(['Tab'], self.tabs.types.keys())
| ise-uiuc/Magicoder-OSS-Instruct-75K |
namespace Acheve.Common.Messages
{
public class AwaitExternalEstimationToBeProcessed
{
public AwaitExternalEstimationToBeProcessed(Guid caseNumber)
{
CaseNumber = caseNumber;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Licensed under the MIT License
# https://github.com/craigahobbs/template-specialize/blob/master/LICENSE
from .main import main
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Constraints:
releaseTimes.length == n
keysPressed.length == n
2 <= n <= 1000
| ise-uiuc/Magicoder-OSS-Instruct-75K |
:param name: the name of the metric to be constructed.
:type filter_: str
:param filter_: the advanced logs filter expression defining the
entries tracked by the metric. If not
passed, the instance should already exist, to be
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
# TODO: ROLES
# TODO: COLOR
# MAIN SHIT
@client.event
async def on_ready():
await client.change_presence(activity=trailhead)
@client.event
async def on_message(msg):
if msg.author == client.user:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print("Failed to convert type", type(rcurve))
return None
def import_line(rcurve, bcurve, scale):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
hdp206StackAdvisorPath = os.path.join(testDirectory, '../../../../../main/resources/stacks/HDP/2.0.6/services/stack_advisor.py')
stack_advisor = imp.load_source('stack_advisor', hdp206StackAdvisorPath)
services = {
"services": [
{
"StackServices": {
"service_name": "RANG... | ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
Prints output for the data tree.
Example code and output…
Code:
_dict_tree = Dict_tree_node()
_dict_tree.append_path( [ 1, 2, 3, ] )
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export * from './lib/action-type-cache';
export * from './lib/incremantal-http-retry';
| ise-uiuc/Magicoder-OSS-Instruct-75K |
anonymous = {}
getters = [attr for attr in dir(obj) if attr.startswith("get_")]
for getter in getters:
# Call the get_ functions, and call all non-static methods
try:
func = getattr(obj, getter)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
prop = load_cont_property("test_data/BIG_SOFT_DATA_CON_160_141_20.INC",-99)
sgs_params = {
"prop": prop,
"grid": grid,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* @param <T>
* type parameter
* @param str
* the string argument
*/
<T> void foo(String str) {
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* $URL$
* $Id$
***********************************************************************************
*
* Copyright (c) 2005, 2006, 2007, 2008 Sakai Foundation
*
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'StaticMap'
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// get the item class
foreach ($spatialItem->xpath("//arch:spatialUnit/oc:item_class/oc:name") as $item_class) {
$item_class = (string)$item_class;
$LinkedDataItem->assignSubjectClass($item_class);
}
return $LinkedDataItem;
}//end reindex function
| ise-uiuc/Magicoder-OSS-Instruct-75K |
name):
ModelV2.__init__(
self,
obs_space,
action_space,
output_spec,
model_config,
name,
framework="torch")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Results: NSObject {
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
row = np.random.randint(size)
col = np.random.randint(size)
rad = np.random.randint(10, max(10, radius))
draw_circle(img, row, col, rad)
# Noise
img += noise * np.random.rand(*img.shape)
return (row, col, rad), img
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from lldbsuite.test.lldbtest import *
from lldbsuite.test import lldbutil
class TestCase(TestBase):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for plugin_id, plugin in self._repository.items():
await callee(plugin)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* Description of SwiftSalesmanDepartmentPermission
*
* @author kpudaruth
*/
class SwiftSalesmanDepartmentPermission extends Eloquent {
protected $table = "swift_salesman_department_permission";
public function department()
{
return $this->belongsTo('SwiftSalesmanDepartment','department_id'... | ise-uiuc/Magicoder-OSS-Instruct-75K |
from solids import example_one_solid # pylint: disable=import-error
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# calculate expect arithmetic means for ticks and harmonic
# mean for liquidity to compare w actuals
for i in range(len(windows)):
expect_avg_tick = int((tick_cums[now_idxs[i]]-tick_cums[i])/windows[i])
expect_avg_liq = int(windows[i] * ((1 << 160) - 1) /
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@property
def push(self):
return self.main_push_object() # Return de-refernced main Push2 object
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/sbin/mkswap /dev/zram0 2097148
/sbin/swapon -p 100 /dev/zram0
fi
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def discard(self, __obj: _T) -> None:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public void SetPreloaderPrefab(GameObject go)
{
prefab = go;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
k0)
# Start up `hledger web` instances over ports 8000 and 8001.
~/syscfg/script/hledger.sh &
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using System.Linq;
using System.Runtime.Remoting.Messaging;
// For reference: http://www.wintellect.com/blogs/jeffreyr/logical-call-context-flowing-data-across-threads-appdomains-and-processes
namespace Qlue.Logging
| ise-uiuc/Magicoder-OSS-Instruct-75K |
v = lmfit.Parameters()
for name, (mi, ma, va, dim, unit, desc) in df.iterrows():
v.add(name, value=va, min=mi, max=ma, vary=False)
return v
def params_to_dataframe(params):
'''Convert lmfit Parameters to Pandas DataFrame'''
df = get_deb_params_pandas()
for name, p in params.items():
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
if (read != ':')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return '{0.time} {0.id} {0.username} {0.text}'.format(self)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class DeadConnectionException(Exception):
pass | ise-uiuc/Magicoder-OSS-Instruct-75K |
* Date: 2016/12/12
* Author: 105021038 傅琬鈞
*/
public class hw01 {
public static void main(String[] args) {
Scanner scn = new Scanner(System.in);
String str = scn.nextLine();
int n = scn.nextInt();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pass
def get_project(self):
pass
def save_project(self):
pass
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from .genoabc import AlleleContainer
from .alleles import Alleles
from .sparsealleles import SparseAlleles
from .chromosometemplate import ChromosomeTemplate, ChromosomeSet
from .labelledalleles import LabelledAlleles, InheritanceSpan, AncestralAllele
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def test_writing_wrong_values(self):
with self.assertRaises(TypeError):
self.injecter.injectScene(3, "scene")
if __name__ == "__main__":
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""This method updates the database every 3 minutes"""
tags = self.bot.dbconn.get_players()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.assertEqual("two of two values", result[2]['value'])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
double d = Math.pow(1d + monthRate , periods) ;
//计算结果
| ise-uiuc/Magicoder-OSS-Instruct-75K |
error_div = '<div><span class="error-container label label-danger"{}></span></div>'
error_div_html = format_html(error_div, flatatt(error_div_attrs))
return '%s%s' % (input_html, error_div_html)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return int(v)
except:
return None
def rangeOrNone(v):
try:
if "<[" in v:
vs = v.split("..")
return (int(vs[0][2:]),int(vs[1][:-2]))
return None
except:
return None
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.