seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
self._fetch_request_token = fetch_request_token
self._save_request_token = save_request_token
def _on_update_token(self, token, refresh_token=None, access_token=None):
self.token = token
super(FlaskRemoteApp, self)._on_update_token(
token, refresh_token, access_token
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// A port of MPAndroidChart for iOS
// Licensed under Apache License 2.0
//
// https://github.com/danielgindi/Charts
//
import Foundation
import CoreGraphics
#if canImport(UIKit)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# folder bookmarks
export FOLDER_BOOKMARK_FILE=~/.coat/storage/bookmarks
alias bookmarkfolder='pwd >> $FOLDER_BOOKMARK_FILE'
# fuzzy search for
alias cdg='cat $FOLDER_BOOKMARK_FILE | fzf'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""Warnings"""
# Authors: <NAME>
# License: BSD 3 clause
class ConvergenceWarning(UserWarning):
"""
Custom warning to capture convergence issues.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export { prolog as default } from "./";
| ise-uiuc/Magicoder-OSS-Instruct-75K |
comparison_vector = [0]*self.cardinality
position = 0
entry = list(entry)
# Once the dict_words is created, we get the number of entries with the same word by only one access to the dictionnary.
for word in entry:
comparison_vector[position] += self.dict_words[position][word]
position += 1
# We take the best subset of the similar words, i.e [10,10,2,2,2] keeps 2 as best subset.
best_subset_words_number = Counter(comparison_vector).most_common(1)[0][0] # [(value, nb_value)]
# We compute the index of the words kept
best_subset_words_index = [i for i, e in enumerate(comparison_vector) if e == best_subset_words_number]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// MARK: - Part One
func memoryGame(startingArray: [Int], turns: Int) -> Int {
guard var number = startingArray.last else {
preconditionFailure("Can't play the memory game with an empty array.")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.TextComment = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.TE_MULTILINE)
self.LabelStatus = wx.StaticText(self, wx.ID_ANY, "Welcome")
self.LabelOkCancelPlaceholder = wx.StaticText(self, wx.ID_ANY, "LabelOkCancelPlaceholder", style=wx.ALIGN_RIGHT)
self.__set_properties()
self.__do_layout()
self.Bind(wx.EVT_CHOICE, self.on_loop, self.ChoiceLoop)
# end wxGlade
def __set_properties(self):
# begin wxGlade: MyDialog.__set_properties
self.SetTitle("Calculate Add/Sub to New Tab")
self.ChoiceLoop.SetSelection(0)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
tokens = nltk.word_tokenize(sentence)
print(tokens)
tagged = nltk.pos_tag(tokens)
tagged[0:6]
print(tagged)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
C=3*pF)
S11 = node.sparam(1, 1)
S21 = node.sparam(2, 1)
plt.figure()
plt.plot(freqs/GHz, 10*np.log10(np.abs(S11)))
plt.plot(freqs/GHz, 10*np.log10(np.abs(S21)))
plt.grid()
plt.show()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print(xval[i], "of", products[i], ":", price[i] / 100.0)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Author: hankcs
# Date: 2019-12-28 21:12
from hanlp_common.constant import HANLP_URL
SIGHAN2005_PKU_CONVSEG = HANLP_URL + 'tok/sighan2005-pku-convseg_20200110_153722.zip'
'Conv model (:cite:`wang-xu-2017-convolutional`) trained on sighan2005 pku dataset.'
SIGHAN2005_MSR_CONVSEG = HANLP_URL + 'tok/convseg-msr-nocrf-noembed_20200110_153524.zip'
'Conv model (:cite:`wang-xu-2017-convolutional`) trained on sighan2005 msr dataset.'
CTB6_CONVSEG = HANLP_URL + 'tok/ctb6_convseg_nowe_nocrf_20200110_004046.zip'
'Conv model (:cite:`wang-xu-2017-convolutional`) trained on CTB6 dataset.'
PKU_NAME_MERGED_SIX_MONTHS_CONVSEG = HANLP_URL + 'tok/pku98_6m_conv_ngram_20200110_134736.zip'
'Conv model (:cite:`wang-xu-2017-convolutional`) trained on pku98 six months dataset with familiy name and given name merged into one unit.'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class TestVoltageSensorMethods(unittest.TestCase):
def setUp(self):
configure_logging()
self.configFile = Config('tests/config-test.json')
def tearDown(self):
self.configFile.dispose()
def runTest(self):
sensor = VoltageSensor(self.configFile.sensors.voltage)
self.assertNotEqual(0, sensor.voltage)
self.assertNotEqual(0, sensor.current)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
private void ThenEqual()
{
Assert.That(_result, Is.True);
}
private void ThenNotEqual()
{
Assert.That(_result, Is.False);
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for i, data in enumerate(tbar):
image, seg_target, vertex_target = [d.cuda() for d in data[:3]]
valid_mask = data[-1].cuda()
pose_target, camera_k_matrix, ori_img = data[3:]
seg_target = seg_target.long()
valid_mask = (seg_target.detach() > 0).float()
with torch.no_grad():
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return CommandResults(outputs=outputs,
readable_output=readable_output,
raw_response=raw_response)
class AADClient(MicrosoftClient):
def __init__(self, app_id: str, subscription_id: str, verify: bool, proxy: bool, azure_ad_endpoint: str):
if '@' in app_id: # for use in test-playbook
app_id, refresh_token = app_id.split('@')
integration_context = get_integration_context()
integration_context.update(current_refresh_token=refresh_token)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
/**
* Remove the group invite.
*
| ise-uiuc/Magicoder-OSS-Instruct-75K |
adress_link = []
for i in adrs:
adress_link.append('https://bcy.net'+i.get('href'))
return(adress_link)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* (optional) TRUE if the provider is to be applied globally on all routes.
* Defaults to FALSE.
*/
public function addProvider(AuthenticationProviderInterface $provider, $provider_id, $priority = 0, $global = FALSE);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return mod_graph
if __name__ == "__main__":
main()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export const GlobalStyle = createGlobalStyle`
body {
background: ${themes.light.backgroundColor};
}
` | ise-uiuc/Magicoder-OSS-Instruct-75K |
np.array(static_loss_rec),
rtol=rtol,
atol=atol,
equal_nan=True),
msg='Failed to do the imperative qat.')
# load dynamic model
| ise-uiuc/Magicoder-OSS-Instruct-75K |
assert!(!valid_passphrase_part1("aa bb cc dd aa"));
| ise-uiuc/Magicoder-OSS-Instruct-75K |
sys.exit(-1)
WINRM_HOST=sys.argv[1]
WINRM_USER=sys.argv[2]
WINRM_PASS=sys.argv[3]
return WINRM_HOST, WINRM_USER, WINRM_PASS
| ise-uiuc/Magicoder-OSS-Instruct-75K |
visibility = kwargs.pop("visibility", None)
_ng_package(
name = name,
deps = deps,
readme_md = readme_md,
license_banner = license_banner,
substitutions = PKG_GROUP_REPLACEMENTS,
ng_packager = _INTERNAL_NG_PACKAGE_PACKAGER,
terser_config_file = _INTERNAL_NG_PACKAGE_DEFALUT_TERSER_CONFIG_FILE,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# no need to compute deltas for initial guesses
# (will be zero)
continue
Aij, Bij, eij = self.add_edge(z, z0, z1)
self._H[z0,z0] += Aij.T.dot(o).dot(Aij)
self._H[z0,z1] += Aij.T.dot(o).dot(Bij)
self._H[z1,z0] += Bij.T.dot(o).dot(Aij)
self._H[z1,z1] += Bij.T.dot(o).dot(Bij)
self._b[z0] += Aij.T.dot(o).dot(eij)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import Lambda from "../core/Lambda";
| ise-uiuc/Magicoder-OSS-Instruct-75K |
setRed(pixel, getRed(pixel) * 0.2)
repaint(picture)
def makeNetherlands(picture):
pixels = getPixels(picture)
color1 = makeColor(174,28,40)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
queues = conn.get_all_queues()
return lookup(queues, filter_by=filter_by_kwargs)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def list_specd(input_dir: str):
spec_dir = SpecDir(input_dir)
assert spec_dir.exists(), f"Specd not found: {input_dir}"
collect = []
defns = sorted([f"\t\t{d.name}" for d in spec_dir.definitions()])
if defns:
collect += ["\n\tDefinitions:\n"] + defns
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<filename>src/czml3/utils.py<gh_stars>0
from .properties import Color
def get_color(color):
# Color.from_string, Color.from_int, ...
if isinstance(color, str) and 6 <= len(color) <= 10:
return Color.from_str(color)
elif isinstance(color, int):
return Color.from_hex(color)
elif isinstance(color, list) and len(color) <= 4:
return Color.from_list(color)
else:
raise ValueError("Invalid input")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<td><form action="{{url('eliminarPersona/'.$persona->id)}}" method="POST">
@csrf
<!--{{csrf_field()}}--->
{{method_field('DELETE')}}
<!--@method('DELETE')--->
<button class= "botonEli" type="submit" name="Eliminar" value="Eliminar">Eliminar</button>
</form></td>
<td><form action="{{url('modificarPersona/'.$persona->id)}}" method="GET">
<button class= "botonAct" type="submit" name="Modificar" value="Modificar">Modificar</button>
</form></td>
<td><form action="{{url('correoPersona2/'.$persona->correo_persona)}}" method="GET">
<button class= "botonCre" type="submit" name="Correo" value="Correo">Correo</button>
</form></td>
<td><form action="{{url('enviarDinero/10/'.$persona->id)}}" method="GET">
<button class= "botonAct" id="logout" type="submit" name="Pagar" value="Pagar">Pagar</button>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub fn serialize<S>(num: &u128, serializer: S) -> Result<S::Ok, S::Error>
where
S: Serializer,
{
serializer.serialize_str(&num.to_string())
}
pub fn deserialize<'de, D>(deserializer: D) -> Result<u128, D::Error>
where
D: Deserializer<'de>,
{
String::deserialize(deserializer)?
| ise-uiuc/Magicoder-OSS-Instruct-75K |
while (IsRunning)
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
exit 1
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#!/bin/sh
# Script to build the code and Run.
mvn clean install
java -jar target/apple-client-1.0.jar | ise-uiuc/Magicoder-OSS-Instruct-75K |
builder->Add("gaiaLoading", IDS_LOGIN_GAIA_LOADING_MESSAGE);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
namespace mimir {
/// Global signal for user event Ctrl-C.
extern sig_atomic_t signaled;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@name.setter
def name(self, name):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<gh_stars>1-10
basepath = "<path to dataset>"
with open(basepath+"/**/train_bg/wav.scp") as f:
lines = f.read().strip().split('\n')
for line in tqdm.tqdm(lines):
# name, _ = line.strip().split('\t')
name = line.strip().split(' ')[0]
shutil.copy(basepath+"/audio/"+name+".flac", basepath+"/**/train_wav/"+name+".flac")
with open(basepath+"/**/dev_bg/wav.scp") as f:
lines = f.read().strip().split('\n')
for line in tqdm.tqdm(lines):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Create a DPC object that will call the supplied function with
context when it fires. It returns a handle to the WDFDPC object.
Arguments:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
in_plane: int,
zero_init_bias: bool = False,
):
"""Constructor for FullyConnectedHead
Args:
unique_id: A unique identifier for the head. Multiple instances of
the same head might be attached to a model, and unique_id is used
to refer to them.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
HERE = os.path.abspath(os.path.dirname(__file__))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let mut window = Some(
WindowBuilder::new()
.with_title("A fantastic window!")
.with_inner_size(tao::dpi::LogicalSize::new(128.0, 128.0))
.build(&event_loop)
.unwrap(),
);
event_loop.run(move |event, _, control_flow| {
*control_flow = ControlFlow::Wait;
println!("{:?}", event);
match event {
Event::WindowEvent {
event: WindowEvent::CloseRequested,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print(len(names))
# Отримання довжини списку
print(len(names))
# Отримання елемента списку за індексом
| ise-uiuc/Magicoder-OSS-Instruct-75K |
onClose(boolean: any): void;
title: string;
message: string;
} & {
classes: import("@material-ui/styles").ClassNameMap<"layout" | "editor" | "header_bar" | "version_control" | "script_history" | "vc_history" | "panel_content" | "panel_heading">;
}, "open" | "message" | "title" | "onClose"> & import("@material-ui/core").StyledComponentProps<"layout" | "editor" | "header_bar" | "version_control" | "script_history" | "vc_history" | "panel_content" | "panel_heading">>;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
maxExpArray = getMaxExpArray(MAX_PRECISION+1)
print ' uint256[{}] maxExpArray;'.format(len(maxExpArray))
print ' function BancorFormula() {'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public IEnumerable<MovieServiceModel> TopRatedMovies()
=> this.data.Movies
.OrderByDescending(m => m.Rating.Sum(r => r.Rating) / (m.Rating.Count() + 0.1))
.Select(m => new MovieServiceModel
{
Id = m.Id,
Name = m.Name,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Hard (37.15%)
# Likes: 1741
# Dislikes: 289
# Total Accepted: 136.2K
# Total Submissions: 365.5K
# Testcase Example: '"123"\n6'
#
# Given a string num that contains only digits and an integer target, return
# all possibilities to add the binary operators '+', '-', or '*' between the
# digits of num so that the resultant expression evaluates to the target
# value.
#
| ise-uiuc/Magicoder-OSS-Instruct-75K |
git commit -m "published version $OLD_VERSION begining work for version $NEW_VERSION" composer.json
git push origin master
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import argparse
from hyp3lib import saa_func_lib as saa
from osgeo import gdal
def copy_metadata(infile, outfile):
ds = saa.open_gdal_file(infile)
md = ds.GetMetadata()
print(md)
# ds = saa.open_gdal_file(outfile)
# ds.SetMetadata(md)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if (PrevChild == BTSpecialChild::NotInitialized)
{
NextChildIdx = 0;
}
else if (VerifyExecution(LastResult) && (PrevChild + 1) < GetChildrenNum())
{
NextChildIdx = PrevChild + 1;
}
return NextChildIdx;
}
#if WITH_EDITOR
| ise-uiuc/Magicoder-OSS-Instruct-75K |
operations = [
migrations.AddField(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from cryptography.hazmat.primitives.asymmetric import rsa
ALGORITHM_DICT = {
'sha1': hashes.SHA1(),
'sha224': hashes.SHA224(),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
option_list = BaseCommand.option_list + (
make_option('--from', default=None, dest='orig',
help='Domain of original site'),
make_option('--to', default=None,
help='Domain of new site'),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
urlpatterns = [
url(r'^$', load_checkout(views.index_view), name='index'),
url(r'^shipping-address/', load_checkout(views.shipping_address_view),
name='shipping-address'),
url(r'^shipping-method/', load_checkout(views.shipping_method_view),
name='shipping-method'),
url(r'^summary/', load_checkout(views.summary_view), name='summary'),
url(r'^remove_voucher/', load_checkout(remove_voucher_view), name='remove-voucher')
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# This allows the error pages to be debugged during development, just visit
# these url in browser to see how these error pages look like.
urlpatterns += [
url(r'^400/$', default_views.bad_request, kwargs={'exception': Exception("Bad Request!")}),
url(r'^403/$', default_views.permission_denied, kwargs={'exception': Exception("Permission Denied")}),
url(r'^404/$', default_views.page_not_found, kwargs={'exception': Exception("Page not Found")}),
url(r'^500/$', default_views.server_error),
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#pragma omp teams
#pragma omp distribute parallel for simd private(i), shared(i) // expected-error {{private variable cannot be shared}} expected-note {{defined as private}}
for(int k = 0 ; k < n ; k++) {
acc++;
}
#pragma omp target
#pragma omp teams
#pragma omp distribute parallel for simd firstprivate(i), shared(i) // expected-error {{firstprivate variable cannot be shared}} expected-note {{defined as firstprivate}}
for(int k = 0 ; k < n ; k++) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""Data Split keys"""
TRAIN = "train"
VALIDATION = "validation"
TEST = "test"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
GAMMA = 0.9 # Set the gamma parameter here
# Choose one of the loss functions below:
loss = SecureTripletLossKLD(margin=1.0, gamma=GAMMA)
#loss = SecureTripletLossSL(margin=1.0, gamma=GAMMA)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
attrs = vars(self)
return str(', '.join("%s: %s" % item for item in attrs.items()))
@abstractmethod
def start(self, session=None):
pass
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
}
SingleStatement::SingleStatement(const wxString& sql)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""Implementation of the 'updateOrganizationBrandingPoliciesPriorities' model.
TODO: type model description here.
Attributes:
branding_policy_ids (list of string): A list of branding policy IDs
arranged in ascending priority order (IDs later in the array have
higher priority).
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/**
*
* Simple (JUnit) tests that can call all parts of a play app.
* If you are interested in mocking a whole application, see the wiki for more details.
*
*/
public class ApplicationTest {
@Test
public void simpleCheck() {
int a = 1 + 1;
assertEquals(2, a);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
JSC_FINALIZER(Navigator::Finalizer)
{
FreeNativeInstance(object);
}
JSC::Class &Navigator::GetClassRef()
{
if (!_class)
{
static JSStaticValue staticValues[] = {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
authorization_code=OAuthFlow(
authorization_url="authorization_url", token_url="token_url", scopes={"scope1": "", "scope2": ""},
)
).as_yamlable_object() == {
"authorizationCode": {
"authorizationUrl": "authorization_url",
"tokenUrl": "token_url",
"scopes": {"scope1": "", "scope2": ""},
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
assert repr(cf.version) == 'ClassVersion(major=50, minor=0)'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
arguments.r,
maxCounts
]
for value in self.constants:
argumentList.append(value)
argumentList.append(arguments.m)
argumentList.append(arguments.w)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public String getNameAsString() {
return this.nameAsString;
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
app = webapp2.WSGIApplication([
('/worker/process_vote', VoteHandler)
],debug = True)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
*/
/*!
* \file
* \brief Test of JsonReporter class.
*/
#include "stat_bench/reporter/json_reporter.h"
#include <algorithm>
#include <exception>
#include <memory>
#include <ApprovalTests.hpp>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
gui.quit()
return False
if event.type == gui.VIDEORESIZE:
self.display = gui.display.set_mode((event.w, event.h), gui.RESIZABLE)
self.display.fill((255, 255, 255))
num_cams = len(self.cap_list)
num_cols = 4 # how to make this dynamic? # calculate based on num_cams
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ssh_file_transfer(self, client, machine_id)
threads = []
if run_central_node:
t = threading.Thread(
target=run_central_machine,
args=(self, n_splits, run_central_node),
)
t.start()
threads.append(t)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import sys
| ise-uiuc/Magicoder-OSS-Instruct-75K |
param_two=0,
param_three={},
):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
e.message)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
</form>
</div> | ise-uiuc/Magicoder-OSS-Instruct-75K |
__version__ = '1.7.1'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* ...textfieldProps
* }
* @returns {ReactElement}
*/
export default React.memo(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#[test]
fn save_and_load_json() -> Result <(), String> {
assert_eq!(
test_save_and_load(
&Body::new(
"Sol".to_string(),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ui.tab(name='email', label='Mail', icon='Mail'),
ui.tab(name='events', label='Events', icon='Calendar'),
ui.tab(name='spam', label='Spam', icon='Heart'),
]),
]
)
page.save()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
imv 5MCP19_20210714.bin
imv 5MCP19_20210722.bin
| ise-uiuc/Magicoder-OSS-Instruct-75K |
description: IObservable<string | undefined>;
/**
* Allow to notify about warnings
*/
hasWarning: IObservable<boolean | undefined>;
/**
* Change the tab appearance
*/
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export class RepositoriesNode extends ExplorerNode {
constructor(
private readonly repositories: Repository[],
private readonly explorer: GitExplorer
) {
super(undefined!);
}
async getChildren(): Promise<ExplorerNode[]> {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
articles.append(data)
return articles
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Features:
"""Stores the features produces by any featurizer."""
def __init__(
self,
features: Union[np.ndarray, scipy.sparse.spmatrix],
message_attribute: Text,
origin: Text,
) -> None:
self.features = features
self.type = type
self.origin = origin
self.message_attribute = message_attribute
def is_sparse(self) -> bool:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<input type="hidden" name="partID" value="<?php echo $_GET['partID']?>">
<input type="hidden" name="partname" value="<?php echo $_GET['partname']?>">
<?php ;} else echo '<br><b>No other packages to add!</b>';?>
</form>
</div>
<div id="popup_middle" class="hide">
</div>
<div id="popup_footer">
| ise-uiuc/Magicoder-OSS-Instruct-75K |
s2srun=pyreshaper.cli.s2srun:main
""",
install_requires=install_requires,
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import java.util.Map;
public class MapModel implements Serializable {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if '+stats' in spec:
args.append('--enable-stats')
if '+prof' in spec:
args.append('--enable-prof')
je_prefix = spec.variants['jemalloc_prefix'].value
if je_prefix != 'none':
args.append('--with-jemalloc-prefix={0}'.format(je_prefix))
return args
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def findErrorNums(self, nums):
# creating multiple variables to store various sums.
actual_sum = sum(nums)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using UnityEngine;
public class Platforms : MonoBehaviour {
[Header("Platform Details")]
public int platform_length = 1;
public GameObject platform_prefab;
public Sprite platform_sprite;
[HideInInspector]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
cost_y2 = -T.sum(self.Y * T.log(noise_py_x))
cost = cost_y2 + cost_recon
| ise-uiuc/Magicoder-OSS-Instruct-75K |
string ip = "127.0.0.1:5000/hello";
std::vector< std::future<Json::Value>> results;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//
// Created by Santos Solorzano on 2/3/16.
// Copyright © 2016 santosjs. All rights reserved.
//
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
| ise-uiuc/Magicoder-OSS-Instruct-75K |
key: "appState",
atomsToPersist: ["loading", "user"],
};
if (process.env.NODE_ENV === "development") {
console.log("\n");
console.log("NODE_ENV ", process.env.NODE_ENV);
console.log("IS_SERVER ", IS_SERVER);
console.log("GRAPHQL ", GRAPHQL);
console.log("WSS ", WSS);
console.log("STORAGE_KEY ", STORAGE_KEY);
console.log("\n");
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
data = urllib.parse.urlencode(data)
headers = {"Content-Type": "application/x-www-form-urlencoded"}
resp = requests.post(hubot_webhook_url, headers=headers, data=data)
if resp.ok:
logger.info("Sent alert to user/channel %s" % send_to)
else:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
int worker_process_id,
content::GlobalFrameRoutingId ancestor_render_frame_host_id) {
DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Client.connect(ip)
Client.waitTick(100)
| 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.