seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
)
# запись в базу данных
CurvesSet = {}
hex = {}
# конкретные кривые
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/**
* Created by wakim on 19/04/15.
*/
public class Application extends android.app.Application implements Thread.UncaughtExceptionHandler {
private static Application sInstance;
private Thread.UncaughtExceptionHandler mDefaultExceptionHandler;
@Override
public void onCreate() {
super.onCreate();
sInstance = this;
mDefaultExceptionHandler = Thread.getDefaultUncaughtExceptionHandler();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class ForemanSubnetModule(ParametersMixin, ForemanTaxonomicEntityAnsibleModule):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
vCount=0
keys = {"byr",
"iyr",
"eyr",
"hgt",
"hcl",
"ecl",
"pid"}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
QFontDatabase::addApplicationFont(":ui/fonts/Ubuntu-Regular.ttf");
gSansFont = QFont("Ubuntu", 13);
gSansFontInitialized = true;
}
return gSansFont;
}
const QFont& Theme::monoFont()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
sed -i "s/\(\bversion := \)\"$RELEASE_VERSION\"/\1\"${NEXT_VERSION}\"/" build.sbt
sed -i "1s/^/## Unreleased\n\n/" Changelog.md
git add build.sbt Changelog.md
git commit -v -q -m "Starting v${NEXT_VERSION}"
git tag -a v${NEXT_VERSION} -m "Start snapshot for v${NEXT_VERSION}"
# push commits & tags
git push --follow-tags
echo "Release was successful"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<div class="row mt-5">
<div class="col-md-6 mx-auto">
<h1 class="text-center py-4">Login Form</h1>
<form action="<?= site_url('api/v1/auth/login') ?>" method="post">
<div class="form-floating mb-3">
<input type="email" class="form-control" id="emailField" placeholder="Email" required>
<label for="email">Email address</label>
</div>
<div class="form-floating mb-3">
<input type="password" class="form-control" id="passwordField" placeholder="Password" required>
<label for="password">Password</label>
</div>
<button class="btn btn-primary " id="loginBtn">Login</button>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
([14, 1], [225], packed_U4),
([15, 0], [240], packed_U4),
([-8], [128], packed_I4),
([-7], [144], packed_I4),
([-6], [160], packed_I4),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
}
#[cfg(test)]
mod tests {
use {
super::{SuperBlock, SuperBlockInstance, SuperBlockItem, MIN_SUPER_BLOCK_SIZE},
crate::{
filesystem::{Filesystem, FxFilesystem},
lsm_tree::types::LayerIterator,
object_store::{
constants::{SUPER_BLOCK_A_OBJECT_ID, SUPER_BLOCK_B_OBJECT_ID},
| ise-uiuc/Magicoder-OSS-Instruct-75K |
hass.async_create_task(
hass.config_entries.flow.async_init(
DOMAIN, context={"source": config_entries.SOURCE_IMPORT}
)
)
return True
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{ name: 'Registration', path: 'registration' }
];
constructor(private dialog: MdDialog, private snackBar: MdSnackBar, private bookStoreService: BookStoreService) {
}
openAddBookDialog() {
this.dialog.open(AddBookDialogComponent)
.afterClosed()
.filter(book => !!book)
.switchMap(book => this.bookStoreService.addBook(book))
.subscribe(result => {
if (result.ok) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
goodSegement1([2,5,8,10,3],1,12)
goodSegement1([37,7,22,15,49,60],3,48)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for line in f:
try:
var1, var2 = line.strip().split()
except ValueError:
print("skpped: ", line)
def canon(var):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
await Task.Delay(1);
}
var list = await Subject.List(10, 50, ascendingByTimestamp: false);
Assert.Equal(50, list.Length);
var s = 89;
foreach (var streamInfo in list)
{
Assert.Equal(s.ToString(), streamInfo.Stream);
s--;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* @param cause the cause
*/
public DockerException(String message, int httpStatus, Throwable cause) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
do
for nn in 5 10 20 30 40 50 100 200 500 1000
do
for normalization in None BothSides
do
for graph_type in Cosine RBF Covariance L2Distance
do
time python generate_graph.py --dataset $dataset --normalization $normalization --graph_type $graph_type --nn $nn --nnk
time python generate_graph.py --dataset $dataset --normalization $normalization --graph_type $graph_type --nn $nn --minmaxscaler --nnk
time python generate_graph.py --dataset $dataset --normalization $normalization --graph_type $graph_type --nn $nn --nnk --add_self_loops
time python generate_graph.py --dataset $dataset --normalization $normalization --graph_type $graph_type --nn $nn --minmaxscaler --nnk --add_self_loops
done
done
done
| ise-uiuc/Magicoder-OSS-Instruct-75K |
sudo apt -y install python-dev libssl-dev libffi-dev;
sudo apt -y install python3-pip;
sudo pip3 install petlib;
sudo pip3 install bplib;
sudo pip3 install numpy; sudo pip3 install flask;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
return tamanho;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'EndpointsOperations',
'PoliciesOperations',
'ManagedRuleSetsOperations',
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""Moves the object origin to the average location of the vertices selected in edit mode."""
# FIXME: Undoing this action takes 3 or more undos when it should take one. Also, it can't be fully re-done
# after it has been undone.
edit_object = context.edit_object
mesh = edit_object.data
bm = bmesh.from_edit_mesh(mesh)
# active_verts are the vertices that are selected in edit mode.
active_verts = [v for v in bm.verts if v.select]
if not len(active_verts):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Ans(StdAns):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
}
]
}
"#;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
l1 = float(input("Diga o primeiro lado"))
l2 = float(input("Diga o segundo lado"))
l3 = float(input("Diga o terceiro lado"))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
bool IsSupported(SerialisedObject elem);
IMapElement Deserialise(SerialisedObject obj);
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
join_df = left_df.merge(right_df[['tmp', key]], how='left', on=key)
join_df = join_df[pd.isnull(join_df['tmp'])]
join_df.drop('tmp', axis=1, inplace=True)
right_df.drop('tmp', axis=1, inplace=True)
return join_df
def rightOuterJoin(left_df, right_df, key):
return leftOuterJoin(right_df, left_df, key)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Slider slider = findViewById(R.id.slider);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
catch let error {
XCTAssertTrue(false, "Must instantiate and test Consent successfully, but threw:\n---\n\(error)\n---")
}
}
@discardableResult
func runConsent4(_ json: FHIRJSON? = nil) throws -> SwiftFHIRConsent {
let inst = (nil != json) ? try instantiateFrom(json: json!) : try instantiateFrom(filename: "consent-example-notTime.json")
XCTAssertEqual(inst.category?[0].coding?[0].code, "59284-0")
XCTAssertEqual(inst.category?[0].coding?[0].system?.absoluteString, "http://loinc.org")
XCTAssertEqual(inst.dateTime?.description, "2015-11-18")
XCTAssertEqual(inst.id, "consent-example-notTime")
XCTAssertEqual(inst.meta?.tag?[0].code, "HTEST")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
)
finally:
cursor.close()
return contact
def destroy(self):
self.connection.close()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
threadPool.scheduleAtFixedRate(() -> {
if (!holder.isEmpty()) {
holder.forEach((k, v) -> {
v.forEach(session -> {
try {
session.getBasicRemote().sendText(profiles + " --- " + count.getAndIncrement());
} catch (IOException e) {
e.printStackTrace();
}
});
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""load AQUCT keyword"""
_ = kwargs
while True:
line = next(buffer)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if __name__ == "__main__":
app = Gui()
app.start() | ise-uiuc/Magicoder-OSS-Instruct-75K |
((System.ComponentModel.ISupportInitialize)(this.DailyValue)).EndInit();
this.ResumeLayout(false);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#redundant since required, might add check for .lua extension
if args['outFile'] == None:
outFileName='luaTemplateSimple.lua'
else:
outFileName=args['outFile']
print 'Outputing Script to '+outFileName
#open template
file= open(inputFileName, 'r')
templateData= file.read()
tmp=templateData
file.close()
#add mappings
if args['waveIn'] != None:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$DIR/nginx.sh
| ise-uiuc/Magicoder-OSS-Instruct-75K |
plt.ylabel("Frequency")
plt.title(r"A $\to$ D")
stashfig("sf-brain")
#%%
fg = sns.FacetGrid(
scatter_df,
col="Class",
aspect=2,
hue="Class",
hue_order=hue_order,
col_order=hue_order,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def insert_buffer(self, item):
self._item_buffer.append(item)
if len(self._item_buffer) >= self.config['buffer_length']:
self._commit_buffer()
def insert_one(self, item):
unique_key = self.config['unique_key']
if unique_key is None:
self.collection.insert_one(item)
else:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from everest.tests.complete_app.resources import MyEntityChildMember
from everest.tests.complete_app.resources import MyEntityMember
__docformat__ = 'reStructuredText en'
__all__ = ['AttributeKeyTestCase',
]
class MappedAttributeTestCase(Pep8CompliantTestCase):
def test_invalid_kind(self):
attr = terminal_attribute(str, 'foo')
attr.kind = 'INVALID'
mp_attr = MappedAttribute(attr, options={IGNORE_OPTION:None})
key = MappedAttributeKey(())
self.assert_raises(ValueError, mp_attr.should_ignore, key)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# We should only try this if we have a region to set as well.
if loc and enc != "UTF8":
try:
locale.setlocale(locale.LC_ALL, (loc, "UTF8"))
log.warning("Manually set encoding to UTF-8")
except locale.Error:
# Nope, no UTF8 either.
log.warning("Could not set user's locale to UTF-8")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def get_congestion_control():
prev_cc = os.popen("sysctl -n net.ipv4.tcp_congestion_control").read()
return prev_cc
def load_congestion_control(tcp_policy):
if tcp_policy == "dctcp":
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$shipping_content = array ();
if ($free_shipping == true) {
$shipping_content[] = array('country' => $order->delivery['country']['iso_code_2'],
'service' => mod_convert(FREE_SHIPPING_TITLE),
'price' => floatval(0)
);
} elseif ($free_shipping_freeamount) {
$shipping_content[] = array('country' => $order->delivery['country']['iso_code_2'],
'service' => mod_convert($quote['module']),
'price' => floatval(0)
);
} else {
foreach ($quotes AS $quote) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
builder.Property(s => s.ConversaId).IsRequired();
builder.HasOne(s => s.Conversa)
.WithMany(s => s.Mensagens)
.HasForeignKey(s => s.ConversaId)
.OnDelete(DeleteBehavior.Restrict);
builder.Property(s => s.ContatoRemetenteId).IsRequired();
builder.HasOne(s => s.ContatoRemetente)
.WithMany()
.HasForeignKey(s => s.ContatoRemetenteId)
.OnDelete(DeleteBehavior.Restrict);
builder.Property(s => s.ContatoDestinatarioId).IsRequired();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
args = parser.parse_args()
input_vcf_file = args.input_vcf
| ise-uiuc/Magicoder-OSS-Instruct-75K |
vec![(6, 11)],
vec![],
])),
39
);
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
address = ('127.0.0.1', 5556)
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.bind(address)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
else:
arr.extend(RS[i].halodata)
#print nhalos,len(arr)
return np.asarray(arr)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
''' This method tries to parse the Bro log header section.
Note: My googling is failing me on the documentation on the format,
so just making a lot of assumptions and skipping some shit.
Assumption 1: The delimeter is a tab.
Assumption 2: Types are either time, string, int or float
Assumption 3: The header is always ends with #fields and #types as
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print('\t general_h:', general_h)
for i, h in enumerate(concepts):
if target[i] == "yes":
for x in range(len(specific_h)):
if h[x]!= specific_h[x]:
specific_h[x] ='?'
general_h[x][x] ='?'
if target[i] == "no":
for x in range(len(specific_h)):
if h[x]!= specific_h[x]:
general_h[x][x] = specific_h[x]
else:
general_h[x][x] = '?'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Solver(object):
# no doc
@staticmethod
def Compute(nodes,hull):
""" Compute(nodes: Node2List,hull: List[int]) -> bool """
pass
@staticmethod
def ComputeHull(*__args):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
while True:
recorder = you_live.Recorder.createRecorder(liver, args.id, **params)
# 获取房间信息
roomInfo = recorder.getRoomInfo()
if debug:
print(roomInfo)
# 获取如果在直播,那么录制
if roomInfo['live_status'] == '1':
print(roomInfo['live_rates'])
if args.qn:
qn = args.qn
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* @package NCS Framework
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print("Got page of %d objects from S3…" % len(page["Contents"]))
for s3_object in page["Contents"]:
yield s3_object["Key"]
def build_report(s3_client, bucket, resource_type):
"""
Generate a complete set of covering windows for a resource type.
"""
keys = get_matching_s3_keys(
s3_client=s3_client, bucket=bucket, prefix=f"windows_{resource_type}_complete"
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
get_loss = False,
model=Net,
users_used_for_training = None,
train_data=False,
train_proportion=0.8,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
setup(name='fio_taxa',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
case stream = "stream"
case progressive = "progressive"
case download = "download"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export type InternalProps<T> = BaseProps & T;
const Internal = <T extends HTMLDivElement, P extends InternalProps<Element>>(
{
addonBefore,
addonAfter,
spanProps,
disabled,
className,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
mod logical;
mod physical;
mod playback;
mod playlist;
mod prefs;
mod reference;
mod scan;
mod db;
mod ui;
mod remote;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
router = APIRouter()
router.include_router(job_router)
router.include_router(record_router) | ise-uiuc/Magicoder-OSS-Instruct-75K |
model_name="convention",
name="premiere_soumission_le",
field=models.DateTimeField(null=True),
),
migrations.RunPython(set_premiere_soumission_le),
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
block1 = Conv2D(self.F1, (1, self.kernLength), padding='same',
input_shape=(self.chans, self.samples, 1),
use_bias=False)(input1)
block1 = BatchNormalization()(block1)
block1 = DepthwiseConv2D((self.chans, 1), use_bias=False,
depth_multiplier=self.D,
depthwise_constraint=max_norm(1.))(block1)
block1 = BatchNormalization()(block1)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//'last' => true, // Stop validation after this rule
//'on' => 'create', // Limit validation to 'create' or 'update' operations
),
),
'group_id' => array(
'numeric' => array(
'rule' => array('numeric'),
//'message' => 'Your custom message here',
//'allowEmpty' => false,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@staticmethod
def _encode_bool(value: bool, n_bytes: int = 1) -> bytes:
return value.to_bytes(n_bytes, byteorder=BYTEORDER, signed=SIGNED)
@staticmethod
def _encode_str(value: str) -> bytes:
return value.encode(encoding=ENCODING)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>ZenPylon/professional-services
# Copyright 2018 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from __future__ import unicode_literals
from django.db import migrations, models
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if new_loc >= self.col:
new_loc = self.col - 1 # Out of bound
self.agent_loc = np.array([self.agent_loc[0], new_loc])
elif action == 3:
new_loc = self.agent_loc[1] - 1
if new_loc < 0:
new_loc = 0 # Out of bound
self.agent_loc = np.array([self.agent_loc[0], new_loc])
else:
raise ValueError("Wrong action")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>The-Ludwig/iminuit
#include <pybind11/numpy.h>
#include <pybind11/pybind11.h>
#include <algorithm>
#include <vector>
namespace pybind11 {
namespace detail {
template <typename Value>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
_0ms = pd.read_pickle('./pkl/msg_cb_0ms.pkl')
_0ms['delay'] = '0ms'
_1ms = pd.read_pickle('./pkl/msg_cb_1ms.pkl')
_1ms['delay'] = '1ms'
_10ms = pd.read_pickle('./pkl/msg_cb_10ms.pkl')
_10ms['delay'] = '10ms'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
frequency = calibrate(deltas)
print(frequency)
test_calibrate(TEST_CHANGES_2, calibrate_2)
frequency = calibrate_2(deltas)
print(frequency)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from django.conf import settings
from django.template import Context
from django.template.loader import render_to_string, get_template
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// Bottom segment
/// - attention:
/// Never rotated to simplify future calculations
public let bottomSegment: Segment
/// Left segment
/// - attention:
/// Never rotated to simplify future calculations
public let leftSegment: Segment
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'requests'
],
classifiers=[
'Development Status :: 3 - Alpha', # Chose either "3 - Alpha", "4 - Beta" or "5 - Production/Stable" as the current state of your package
'Intended Audience :: Developers', # Define that your audience are developers
'Topic :: Software Development :: Build Tools',
'License :: OSI Approved :: MIT License', # Again, pick a license
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
],
entry_points = {
'console_scripts': ['organise_files=organise_files.cli:main'],
}
) | ise-uiuc/Magicoder-OSS-Instruct-75K |
internal static GUIStyle StyleForAccessMode(ComponentType.AccessMode mode, bool archetypeQueryMode)
{
switch (mode)
{
case ComponentType.AccessMode.ReadOnly:
return EntityDebuggerStyles.ComponentReadOnly;
case ComponentType.AccessMode.ReadWrite:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'user' => 'User',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
string Username { get; }
}
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
}
//Create
return await this.dailyRepository.Create(dailyCreateDto)
}
async Update(dailyUpdateDto: DailyUpdateDto) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print("Congratulations, " + names[game.is_won]+", you won!")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class test189c2(test189c):
def getListCellRendererComponent(self):
return "test189c2"
print test189c().getListCellRendererComponent()
print test189c2().getListCellRendererComponent() | ise-uiuc/Magicoder-OSS-Instruct-75K |
import requests
url = 'http://localhost:5000'
def test(document_name: str, output_name: str, _type: str, data: dict):
data = {
'data': data,
'template_name': document_name,
'filename': output_name,
'type': _type,
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
[ValidationMethod(ValidationCategories.Open | ValidationCategories.Save | ValidationCategories.Menu)]
// ReSharper disable once UnusedMember.Local
private void SummaryDescriptionIsEmpty(ValidationContext context)
{
ModelRoot modelRoot = Store.ElementDirectory.FindElements<ModelRoot>().FirstOrDefault();
if (modelRoot.WarnOnMissingDocumentation)
{
if (string.IsNullOrWhiteSpace(SourceSummary))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for msg in self.receiver.try_recv() {
println!("{}", msg);
}
None
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.InputSystem;
public class InputHandler : MonoBehaviour
{
private bool shouldSendInput;
private void Awake()
{
shouldSendInput = GameplayManager.Instance.myPlayer;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
NSApplication.shared().presentationOptions = [.hideMenuBar, .hideDock]
window.toggleFullScreen(self)
NSCursor.hide()
}
func applicationWillTerminate(_ aNotification: Notification) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
backup_folder = 'backups'
## min_max_custom_folder = 'custom_norm'
## correlation_indices_folder = 'corr_indices'
# variables
features_choices_labels = ['filters_statistics', 'svd', 'filters_statistics_sobel', 'svd_sobel']
models_names_list = ["rfe_svm_model"]
## models_names_list = ["svm_model","ensemble_model","ensemble_model_v2","deep_keras"]
## normalization_choices = ['svd', 'svdn', 'svdne']
# parameters | ise-uiuc/Magicoder-OSS-Instruct-75K |
pass
def _execute(self, query, params=None):
# Raise error if that was expected, otherwise set the output
if self._throw_on_execute:
raise DatabaseError()
def fetchall(self):
return self._results
class MockMySQLServerConnection(MySQLConnection):
'''Class used to mock MySQL ServerConnection object for testing'''
| ise-uiuc/Magicoder-OSS-Instruct-75K |
})
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print 'Total tweets', len(txt)
for i in range(len(txt)):
# sample line
# {"_id":"907538177992339456","t":"@RRTIndustries @brianmcarey They werent stealing shoes, they were rescuing them from the floods..."}
tweet = txt[i][txt[i].index('t":"') + 4 : -2]
hashes = [word.lower() for word in tweet.split() if word.startswith('#')]
for each in hashes:
if each not in hashtags:
hashtags[each] = 0
hashtags[each] += 1
| ise-uiuc/Magicoder-OSS-Instruct-75K |
curl http://admin:xxxx@illusion.pwn2win.party:1337/
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.refresh()
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
raise RuntimeError
def _getCaretOffset(self):
# We want the active (moving) end of the selection.
return self._getRawSelectionOffsets()[1]
def _getSelectionOffsets(self):
# This might be a backwards selection, but for now, we should always return the values in ascending order.
return sorted(self._getRawSelectionOffsets())
class InputTextField(EditableTextWithoutAutoSelectDetection, IAccessible):
TextInfo = InputTextFieldTextInfo
| ise-uiuc/Magicoder-OSS-Instruct-75K |
RandomCropDecodeResizeOp::RandomCropDecodeResizeOp(int32_t target_height, int32_t target_width, float scale_lb,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
seeds_dir=seeds_dir, afl_config_file_path=os.path.join(self.volume_path, package_name, os.path.basename(binary_path))+".afl_conf")
fuzzer_wrapper.start_fuzzer(cores=4)
self.assertTrue(os.path.exists(os.path.join(fuzzer_wrapper.get_afl_multi_core_config_dict()["output"], fuzzer_wrapper.session_name + "000/fuzzer_stats")))
self.assertGreater(int(utils.get_afl_stats_from_syncdir(fuzzer_wrapper.multicore_dict["output"])["execs_done"]), 0)
def test_multi_core_fuzzing_timeout(self):
package_name = "timeut_jpg_parser"
binary_path = self.timeout_binary_path
parameter = "@@"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
await self.redis.rpush(R_OUTPUT, output.encode())
return total_size
async def shutdown(self):
self.session.close()
html_template = """
<h1>arq demo</h1>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@retry(stop_max_attempt_number=20)
def _try_sign():
with pk11.pkcs11(P11_MODULE, 'test', "secret1") as si:
assert si is not None
key, cert = si.find_key('test')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
func didPressLoginVC(_ viewController: LoginViewController)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Generate data
# dkxL = 1e-2; dkyL = 1e-2; dkzL = 1e-2
# linDimList = [(2, 2)]
dkxL = 5e-2; dkyL = 5e-2; dkzL = 5e-2
linDimList = [(10, 10)]
for ldtup in linDimList:
tupstart = timer()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
case customerID
case pac
case password
case defaultAccountNumber
}
struct AccountModel: Equatable {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from numpy import where
from flask import Flask, request, jsonify, render_template
import pandas as pd
from sklearn.ensemble import IsolationForest
from sklearn.decomposition import PCA
from sklearn.preprocessing import StandardScaler
import matplotlib.pyplot as plt
from pyod.models.knn import KNN
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print(' Annotation Legend : {}'.format(params['key']))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
python setup.py sdist upload -r pypitest
python setup.py sdist upload -r pypi
# sources: https://stackoverflow.com/questions/45207128/failed-to-upload-packages-to-pypi-410-gone http://peterdowns.com/posts/first-time-with-pypi.html
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Parameters
----------
kwargs: Dict[str, Any]
generate method options of each Generator
"""
pass
@abstractmethod
def get_exmatrix(self, **info: Dict[str, Any]) -> np.ndarray:
"""
Generate Experiment Matrix
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import { Dimensions, StyleSheet } from 'react-native'
const { width, height } = Dimensions.get('window')
const useStyles = () =>
StyleSheet.create({
| 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.