seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
self.close()
class Lake_Level_App(QtGui.QMainWindow, Ui_Lake_Level_UI):
def __init__(self):
super(self.__class__, self).__init__()
self.setupUi(self)
self.start_date = '1984-04-25'
# Sets end date to current date.
self.end_date = str((QtCore.QDate.currentDate()).toString('yyyy-MM-dd'))
self.selected_lake = 'Lake Tahoe'
self.selectlakeDropMenu.activated[str].connect(self.selectLakeHandle)
self.okBtn.clicked.connect(self.okHandle)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// pstmt.setString(1, vlcpath);
// pstmt.executeUpdate();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if (source.CertificateCode != null) {
this.CertificateCode = new String(source.CertificateCode);
}
if (source.CertificateType != null) {
this.CertificateType = new String(source.CertificateType);
}
if (source.ImgUrl != null) {
this.ImgUrl = new String(source.ImgUrl);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
cmdlist = ["gradle", "test"]
LOG.info(cmdlist)
result = run_command(cmdlist, Path(self.cwd, code_directory))
self.assertIn("BUILD SUCCESSFUL", result.stdout.decode())
class JavaUnitTestMavenBase(UnitTestBase):
def _test_install(self, code_directory: str):
pass
| ise-uiuc/Magicoder-OSS-Instruct-75K |
docker ps
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@staticmethod
def main():
cities = ["Albuquerque", "Anaheim", "Anchorage", "Arlington", "Atlanta", "Aurora", "Austin", "Bakersfield", "Baltimore", "Boston", "Buffalo", "Charlotte-Mecklenburg", "Cincinnati", "Cleveland", "Colorado Springs", "<NAME>", "Dallas", "Denver", "Detroit", "El Paso", "<NAME>", "<NAME>", "Fresno", "Greensboro", "Henderson", "Houston", "Indianapolis", "Jacksonville", "Jersey City", "Kansas City", "Las Vegas", "Lexington", "Lincoln", "Long Beach", "Los Angeles", "Louisville Metro", "Memphis", "Mesa", "Miami", "Milwaukee", "Minneapolis", "Mobile", "Nashville", "New Orleans", "New York", "Newark", "Oakland", "Oklahoma City", "Omaha", "Philadelphia", "Phoenix", "Pittsburgh", "Plano", "Portland", "Raleigh", "Riverside", "Sacramento", "San Antonio", "San Diego", "San Francisco", "San Jose", "Santa Ana", "Seattle", "St. Louis", "St. Paul", "Stockton", "Tampa", "Toledo", "Tucson", "Tulsa", "Virginia Beach", "Washington", "Wichita"]
first_alb = ((cities[0] if 0 < len(cities) else None) == "Albuquerque")
second_alb = ((cities[1] if 1 < len(cities) else None) == "Albuquerque")
first_last = ((cities[0] if 0 < len(cities) else None) == python_internal_ArrayImpl._get(cities, (len(cities) - 1)))
print(str(first_alb))
print(str(second_alb))
print(str(first_last))
class python_internal_ArrayImpl:
@staticmethod
| ise-uiuc/Magicoder-OSS-Instruct-75K |
TEST_F(ContextFixtureWindowShouldntClose, RunOne_CallsSwapBuffersThenPollEvents)
{
InSequence s;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def short_text(values):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
TitleOnly ,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Battleships can only be placed horizontally or vertically. In other words,
# they can only be made of the shape 1xN (1 row, N columns) or Nx1
# (N rows, 1 column),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
linked_annotations = [ca.rois_review.label for ca in ClinicalAnnotation.objects.all()]
return ROIsAnnotation.objects.exclude(label__in=linked_annotations)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
path('download_trial_balance/', DownloadTrialBalanceView.as_view(),
name = 'download_trial_balance'),
path('download_profit_and_loss/', DownloadProfitAndLossView.as_view(),
name = 'download_profit_and_loss'),
path('download_balance_sheet/', DownloadBalanceSheetView.as_view(),
name = 'download_balance_sheet')
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// .shstrtab is a hard-coded string table of the four section names
// we always generate. This must be the first entry in the section
// header table below, because our ELF header points to it there.
w.align(ALIGN)?;
let shstrtab_start = w.position()?;
w.write(SHSTRTAB)?;
let shstrtab_len = w.position()? - shstrtab_start;
// .strtab is the table of our symbol names.
w.align(ALIGN)?;
let strtab_start = w.position()?;
w.write(0_u8)?; // string tables always start with a null
let mut symbol_name_idx: Vec<u32> = Vec::with_capacity(syms.len());
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
var isRestricted: Bool {
switch self {
case .message, .messageFill, .messageCircle, .messageCircleFill, .teletype, .video, .videoFill, .videoCircle, .videoCircleFill, .videoSlash, .videoSlashFill, .videoBadgePlus, .videoBadgePlusFill, .arrowUpRightVideo, .arrowUpRightVideoFill, .arrowDownLeftVideo, .arrowDownLeftVideoFill, .questionmarkVideo, .questionmarkVideoFill, .envelopeBadge, .envelopeBadgeFill, .pencilTip, .pencilTipCropCircle, .pencilTipCropCircleBadgePlus, .pencilTipCropCircleBadgeMinus:
return true
default:
return false
}
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//
// Created by ___FULLUSERNAME___ on ___DATE___.
// Copyright © ___YEAR___ ___ORGANIZATIONNAME___. All rights reserved.
//
import XCTest
//@testable import YOUR_MODULE_NAME
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import { CircularProgress } from '@material-ui/core'
import FetchError from './FetchError/FetchError'
interface IFetchHandlerProps<T> {
data?: T
isLoading: boolean
children: JSX.Element | JSX.Element[] | ((data: T) => JSX.Element)
error: IApiError | null
loadingComponent?: JSX.Element | JSX.Element[]
}
const FetchHandler = <T extends any>({
isLoading,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
match read_packet(&mut self.sock, DEFAULT_MAX_PACKET_SIZE) {
Ok(Packet::RStoragePrepareForSweep) => (),
Ok(_) => anyhow::bail!("unexpected packet response, expected RStoragePrepareForSweep"),
Err(err) => return Err(err),
}
Ok(())
}
fn estimate_chunk_count(&mut self) -> Result<u64, anyhow::Error> {
write_packet(&mut self.sock, &Packet::TStorageEstimateCount)?;
match read_packet(&mut self.sock, DEFAULT_MAX_PACKET_SIZE) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
bounds: list
args: list = []
def fitness(self, x):
return [self.objective_function(x, *self.args)]
def get_bounds(self):
return self._transform_bounds_to_pygmo_standard
def gradient(self, x):
return pg.estimate_gradient_h(lambda x: self.fitness(x), x)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from matplotlib import pyplot as plt
import simulation
from eval_functions import oks_score_multi
import utils
def alter_location(points, x_offset, y_offset):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize3693 = { sizeof (GdipImageCodecInfo_t2577501090)+ sizeof (Il2CppObject), sizeof(GdipImageCodecInfo_t2577501090 ), 0, 0 };
| ise-uiuc/Magicoder-OSS-Instruct-75K |
void logError(std::stringstream& stream) {
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "%s", stream.str().c_str());
if (SDL_WasInit(SDL_INIT_VIDEO))
displayError(stream);
else
handleErrorWithoutSdl();
exit(1);
}
void logWarning(std::stringstream& stream) {
SDL_LogWarn(SDL_LOG_CATEGORY_APPLICATION, "%s", stream.str().c_str());
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// The Wild Magic Version 4 Foundation Library source code is supplied
// under the terms of the license agreement
// http://www.geometrictools.com/License/Wm4FoundationLicense.pdf
// and may not be copied or disclosed except in accordance with the terms
// of that agreement.
#include "Wm4FoundationPCH.h"
#include "Wm4DistVector3Rectangle3.h"
namespace Wm4
{
//----------------------------------------------------------------------------
template <class Real>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from Tools import *
from Filter_Rect_LogSpaced import *
import matplotlib.pyplot as plt
import numpy as np
import copy
import os
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Vec3d vecMoved = vec.add(vecEntity.x * distOrg, vecEntity.y * distOrg, vecEntity.z * distOrg);
//noinspection Guava
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>francoiskha/dotfiles
#!/bin/sh
if [[ "$(uname -s)" == "Darwin" ]]
then
brew install CleverCloud/homebrew-tap/clever-tools
fi | ise-uiuc/Magicoder-OSS-Instruct-75K |
class HyperworksNodeCollectorFactory : public CollectorFactory
{
public:
HyperworksNodeCollectorFactory(void);
~HyperworksNodeCollectorFactory(void);
virtual void Destroy( void ) const;
virtual axis::services::language::parsing::ParseResult TryParse(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
39: "otherfurniture"
}
def visualize_instance_mask(clusters: np.ndarray,
room_name: str,
visual_dir: str,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
func prepareToPlay(with data: Data)
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"Cuboctahedron",
"Dodecahedron",
"Dodecahedron with triangular faces - p2345 plane normalized",
"Square-face capped square prism",
"Icosahedron",
"Dodecahedron with triangular faces",
"Pentagonal bipyramid",
"Tricapped octahedron (cap faces are aligned)",
| ise-uiuc/Magicoder-OSS-Instruct-75K |
BACKGROUND_08 = "spritesheet/background_08.png"
BACKGROUND_09 = "spritesheet/background_09.png"
BACKGROUND_10 = "spritesheet/background_10.png"
TIP_LVL = _("I don't give tips unless you (p)ress me")
TIP_LVL1 = _("Walk around")
TIP_LVL2 = _("Faster")
TIP_LVL3 = _("But don't stay in horizontal")
TIP_LVL4 = _("Face the snake at space")
TIP_LVL5 = _("Or jump them again")
TIP_LVL6 = _("When they come along better go down")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
alert.addAction(UIAlertAction(title: "CANCEL".localized(), style: .cancel, handler: nil))
vc.present(alert, animated: true, completion: nil)
}
func addEmptyConfigGroup(_ name: String) throws {
let trimmedName = name.trimmingCharacters(in: CharacterSet.whitespaces)
if trimmedName.isEmpty {
throw "Name can't be empty".localized()
}
let group = ConfigurationGroup()
group.name = trimmedName
try DBUtils.add(group)
CurrentGroupManager.shared.setConfigGroupId(group.uuid)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pass
class RESTAPIError(ScenarioError):
pass
class RESTAPIStatusMismatchError(ScenarioError):
pass
class UnknownTaskTypeError(ScenarioError):
pass
| ise-uiuc/Magicoder-OSS-Instruct-75K |
setup(
name='deps',
license='MIT',
version=version,
description='Dependency injection based on attrs',
long_description=open('README.rst').read(),
author='<NAME>',
author_email='<EMAIL>',
url='https://github.com/danie1k/deps',
py_modules=[
'deps',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
int main()
{
map<int, int> myMap = { {4,40}, {5,50}, {6,60} };
for_each(myMap.cbegin(), myMap.cend(),
[](const pair<int, int>& p) { cout << p.first << "->" << p.second << endl;});
vector<int> vec;
vec.push_back(1);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
RVIZ_COMMON_PUBLIC
explicit FrameTransformerException(const char * error_message)
: std::runtime_error(error_message) {}
RVIZ_COMMON_PUBLIC
~FrameTransformerException() noexcept override = default;
};
/// Class from which the plugin specific implementation of FrameTransformer should inherit.
class RVIZ_COMMON_PUBLIC TransformationLibraryConnector
{
public:
virtual ~TransformationLibraryConnector() = default;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return cell
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{ role: "read", db: "admin"}
]
}
);
use ${MONGO_INITDB_DATABASE}_stat;
db.createUser(
{
user: "${MONGO_INITDB_USER}",
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class ViewController: UIViewController {
@IBOutlet weak var tipControl: UISegmentedControl!
@IBOutlet weak var billField: UITextField!
@IBOutlet weak var totalLabel: UILabel!
| ise-uiuc/Magicoder-OSS-Instruct-75K |
VOCAB.producer(convert, """ (?P<value> state vagina state? ) """),
VOCAB.producer(convert, """ (?P<value> ( state | abbrev ) vagina? ) """),
],
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if print_result:
print(self.kernel)
print(self.stat_kernel.lengthscale)
class GPyWrapper_MultiSeparate(object):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
step += 1
precision = true_count / total_sample_count
print('%s: precision @ 1 = %.3f' % (datetime.now(), precision))
summary = tf.Summary()
summary.ParseFromString(sess.run(summary_op))
summary.value.add(tag='Precision @ 1', simple_value=precision)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def extract_cb(self, filename: str, worker_home: str):
logger.info('extra couchbase.rpm')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
dataset.save_metadata()
print('The total amount of examples are')
for label, count in dataset.get_sample_count().items():
print(' - {0} -> {1} samples'.format(label, count)) | ise-uiuc/Magicoder-OSS-Instruct-75K |
def test_nlp_merge():
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// The size of the info icon in the tooltip view.
constexpr int kInfoIconSizeDp = 20;
} // namespace
LoginTooltipView::LoginTooltipView(const std::u16string& message,
views::View* anchor_view)
: LoginBaseBubbleView(anchor_view) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
else:
text = sys.argv[1]
encodedRequest = encodeRequest(text)
response = sendRequest(encodedRequest)
response = json.loads(response.text)
print(response['result']['translations'][0]['beams'][0]['postprocessed_sentence'])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* user is not suspended.
*/
suspensionExpirationUtc: number | null;
}
/** The authorized user. */
export class MyUser extends User implements MyUserData {
isMe: true = true;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
current_block.append(m)
continue
# Incompatible stride, start a new block.
dump_block(current_block)
current_block = [m]
f.close()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from botbase import *
def warendorf(sheets):
data = get_json("https://geoportal.kreis-warendorf.de/geoportal/snippets/corona/data/confirmed.json")
data = [x for x in data if x["region"] == "Kreis Warendorf"]
d1, d2 = data[-2:]
#print(d1, d2)
date = check_date(d2["datetime"], "Warendorf")
c, cc = int(d2["confirmed"]), int(d2["new"])
g, d = int(d2["recovered"]), int(d2["death"])
gg, dd = g - int(d1["recovered"]), d - int(d1["death"])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
spec:
replicas: 1
selector:
matchLabels:
name: etcd-operator
template:
metadata:
labels:
name: etcd-operator
spec:
containers:
- name: etcd-operator
image: quay.io/coreos/etcd-operator:v0.9.4
command:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
webView = null;
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/**
* Override to create a Scaleway
* {@link com.github.segator.jenkins.scaleway.Computer}
*
* @return a new Computer instance, instantiated with this Slave instance.
*/
@Override
public Computer createComputer() {
return new Computer(this);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
void _set(lua::Handle h,lua::Register::Item i)
{
if ( _lua ) lua::Log<<"warning:why you set handle of function again?"<<lua::End;
_item = i;
_lua = h;
}
lua::Register::Item _getItem()
{
return this->_item;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
echo .
echo ${xcrun_instruments_cmd}
${xcrun_instruments_cmd}
# UNINSTALLが "YES"で APP_BUNDLE_IDの指定が有る場合はアンインストールする
if [ "${UNINSTALL}" = "YES" ]; then
if [ -n "${APP_BUNDLE_ID}" ]; then
xcrun simctl uninstall ${SIMLATOR_TARGET_ID} ${APP_BUNDLE_ID}
fi
fi
# 対象のアプリを指定して、シミュレータにインストールする
ls -l "${APP_FILE}"
echo xcrun simctl install booted "${APP_FILE}"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
let resp = await request(server).get('/home/index1/1')
expect(resp.status).toBe(404)
}
})
test('BindBody', async function () {
let resp = await request(server).post('/home/index2').send({ a: '1' })
expect(resp.status).toBe(200)
expect(resp.text).toBe('1')
})
test('BindContext', async function () {
let resp = await request(server).get('/home/index3?a=1')
expect(resp.status).toBe(200)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Config(Model):
label = fields.CharField(max_length=200)
key = fields.CharField(max_length=20)
value = fields.JSONField()
status: Status = fields.IntEnumField(Status, default=Status.on)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
particles.delta[1] = particles.delta[2]
assert particles.delta[2] == particles.delta[1]
assert particles.ptau[2] == particles.ptau[1]
assert particles.rpp[2] == particles.rpp[1]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
#[cfg(target_family = "windows")]
{
use std::os::windows::ffi::OsStrExt;
iter = text.encode_wide();
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
result1,
size,
dep_event_vec_ref);
DPCTLEvent_WaitAndThrow(event_ref);
}
template <typename _DataType>
void (*dpnp_elemwise_transpose_default_c)(void*,
const shape_elem_type*,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
my_list = list()
pos = 0
for i in range(10000):
val = randrange(0, 10000)
fun = choice(test_functions)
pos = fun(my_ll, my_list, pos, val)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.is_softmax = isinstance(self.activation, SoftMax)
self.cache = {}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print('Seu último nome é: {}'.format(dividido[len(dividido) - 1]))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
elif data.drawMode == 4:
return 'Vegetation: {:.2f}'.format(self.vegetation)
elif data.drawMode == 5:
if self.maxCulture:
return printWord(self.maxCulture.name).capitalize()
else:
return 'Uninhabited'
elif data.drawMode == 6:
if self.polity:
direct = printWord(self.polity.name).capitalize()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
);
}else{
$manager_id=ManagerBusinessDetails::where('businesss_name',$subdomain)->select('user_id')->first();
$manager_level_employee_ids = Employee::where('manager_id',$manager_id['user_id'])->pluck('employee_id')->all();
$users=User::whereIn('id',$manager_level_employee_ids)->where('email',Input::get('email'))->select('email','id')->first();
if(count($users) == 0){
| ise-uiuc/Magicoder-OSS-Instruct-75K |
std::stringstream ss;
ss << i;
s.insert(i, ss.str());
}
// 2a. print()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if self._is_running:
return
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print(data) | ise-uiuc/Magicoder-OSS-Instruct-75K |
x = 4
y = 3.5
point = Point(x=x, y=y)
assert repr(x) in repr(point)
assert repr(y) in repr(point)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
use crate::build_solidity;
#[test]
fn hash_tests() {
let mut runtime = build_solidity(
r##"
contract tester {
function test() public {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#!/usr/bin/env python
"""This is a minimal example for calling Fortran functions"""
import json
import numpy as np
from kernel_tuner import run_kernel
def test():
| ise-uiuc/Magicoder-OSS-Instruct-75K |
var isShowingLoadingIndicator: Bool {
return refreshControl?.isRefreshing == true
}
var errorMessage: String? {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if(file_exists($_SESSION['media_path'] . $book . "/_book_conf.php")){
include $_SESSION['media_path'] . $book . "/_book_conf.php";
}
if($book != ""){
$html_template = get_html_template("page", $_SESSION['cm__gallery']['module_name']);
$re_paging = "";
preg_match("~{\{" . $_SESSION['cm__gallery']['display'] . "_start\}\}(.*)\{\{item_start\}\}(.+)\{\{item_end\}\}(.*)\{\{" . $_SESSION['cm__gallery']['display'] . "_end\}\}~s", $html_template, $item_html_components);
//Intro
$item_content['intro'] = nl2br(get_gallery_intro($page));
//PAGING LINKS
preg_match("~\{\{paging_start\}\}(.*)\{\{paging_previous_start\}\}(.+)\{\{paging_previous_end\}\}(.*)\{\{paging_next_start\}\}(.+)\{\{paging_next_end\}\}(.*)\{\{paging_end\}\}~s", $html_template, $paging_html_components);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def main(redownload=True, reparse=True):
igralci = igralci_iz_datoteke(mapa, datoteka_html)
zapisi_igralce_v_csv(igralci, mapa, datoteka_csv)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
set -x
cp $TRAVIS_BUILD_DIR/platform/osx/bin/RhoSimulator/*.zip $BUILD_ARTEFACTS_DIR
| ise-uiuc/Magicoder-OSS-Instruct-75K |
-------------------------------------------------
# @Project :外卖系统
# @File :shopping
# @Date :2021/8/8 10:21
# @Author :小成
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
var getAnimalImg: String {
return animalImg
}
var getAnimalName: String {
return animalName
}
var getAnimlaSmallImg: String {
return animalSmallImg
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.assertEqual(combined.keys(), pre_clean_keys)
def test_clean_with_dates(self):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from collection2item
inner join collection
on collection2item.collection_id = collection.collection_id
inner join handle
on collection.collection_id = handle.resource_id
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public var ok = "好的"
public var done = "完成"
public var cancel = "取消"
public var save = "保存"
public var processing = "处理中.."
public var trim = "剪辑"
public var cover = "封面"
public var albumsTitle = "相簿"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// reqModifyPassword()
// default:
// break
// }
// }
func reqSignUp(params: SWSignUpStruct) {
let pathStr = APIManager.baseUrl + "users/register"
let dict = ["account": params.account,
"password": params.password]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"cpu": 0,
"rss": 0
}
try:
current_data["heap_size"], current_data["heap_alloc"] = self.adb_tool.get_memory_info(self.package_name)
except Exception as e:
logger.error(e)
try:
current_data["cpu"], current_data["rss"] = self.adb_tool.get_cpu(self.package_name, by_pid=True)
except Exception as e:
logger.error(e)
self.all_data[current_test_name]["data"][time_now_format()] = current_data
time.sleep(0.1)
if wait_flag:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
this.date = date;
if (args && args.length > 0) {
this.format = args[0];
| ise-uiuc/Magicoder-OSS-Instruct-75K |
standard = stdlib_list("3.6")
packages = [p for p in packages if p not in standard and p not in exclude]
return packages
if __name__ == '__main__':
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def get_image_for_paper(original_image_object, prediction_map, IHC_map=None,
activation_threshold=0.3, overlay_alpha=0.6, sigma_filter=128,
mix=False, colormap_style="coolwarm"):
"""
Get paper used images (raw, overlay_only, raw+overlay, IHC responding region)
Args:
- original_image_object: PIL image obejct
- prediction_map: Array of prediction
- IHC_map: PIL object of IHC
- overlap_alpha: control overlay color (0. - 1.0)
- sigma_filter: Use a Gaussian filter to smooth the prediction map (prevent grid-like looking)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#[cfg(feature = "wmi_hotfixes")]
"wmi_hotfixes".to_string(),
#[cfg(feature = "wmi_shares")]
"wmi_shares".to_string(),
#[cfg(feature = "wmi_network_adapters")]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
echo Testing \"$file\" ...
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from homeassistant.const import ATTR_ATTRIBUTION, ATTR_DEVICE_CLASS, ATTR_ICON, CONF_NAME
from homeassistant.components.sensor import ATTR_STATE_CLASS, SensorEntity
from homeassistant.helpers.update_coordinator import CoordinatorEntity
from homeassistant.helpers.typing import StateType
from homeassistant.helpers.entity import DeviceInfo
import logging
from .const import (
DOMAIN,
SENSOR_TYPES,
ATTR_LABEL,
ATTRIBUTION,
ATTR_UNIT_IMPERIAL,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
throw (HessianFieldException) e;
} else if (e instanceof IOException) {
throw new HessianFieldException(fieldName + ": " + e.getMessage(), e);
}
if (value != null) {
throw new HessianFieldException(fieldName + ": " + value.getClass().getName() + " (" + value + ")"
+ " cannot be assigned to '" + field.getType().getName() + "'", e);
} else {
throw new HessianFieldException(fieldName + ": " + field.getType().getName() + " cannot be assigned from null", e);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
name {[type]} -- [description] (default: {None})
dropout_val {float} -- [description] (default: {0.85})
activation {str} -- [description] (default: {"LRELU"})
lrelu_alpha {float} -- [description] (default: {0.2})
data_type {[type]} -- [description] (default: {tf.float32})
is_training {bool} -- [description] (default: {True})
use_bias {bool} -- [description] (default: {True})
Returns:
[type] -- [description]
"""
weights = new_weights(shape=[num_inputs, num_outputs], name=name, data_type=data_type)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
text
.then((response) => response.text())
.then((textData) => {
console.log(textData);
});
/**
* Output: Error Message
*/
const error = fetch('https://does.not.exist/');
error.catch((error) => console.log(error.message));
| ise-uiuc/Magicoder-OSS-Instruct-75K |
docker exec -it $docker_name bash
| ise-uiuc/Magicoder-OSS-Instruct-75K |
printf ("Edge on pin %d, reading %d.\n", MAIN_pin, val);
}
int main (int argc, char *argv [])
{
::wiringPiSetupPhys ();
::pinMode (MAIN_pin, INPUT);
::wiringPiISR (MAIN_pin, INT_EDGE_BOTH, &interrupt_cb) ;
while (true)
{
sleep (1);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
l1.connect(l2)
txid = l1.rpc.fundchannel(l2.info['id'], 10**5)['txid']
# next call warned about SQL Accessing a null column
# and crashed the daemon for accessing random memory or null
txs = l1.rpc.listtransactions()['transactions']
| ise-uiuc/Magicoder-OSS-Instruct-75K |
window.rootViewController = profileViewController
}
}
func logout() {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
. $(cd `dirname $0` && pwd)/config.sh
echo Stopping $DEVMACHINE_NAME container
docker stop $DEVMACHINE_NAME | ise-uiuc/Magicoder-OSS-Instruct-75K |
[SuppressMessage("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily", Justification = "It's necessary.")]
private static object GetValue(object obj, MemberInfo member)
{
if (member is PropertyInfo)
return ((PropertyInfo)member).GetValue(obj, null);
if (member is FieldInfo)
return ((FieldInfo)member).GetValue(obj);
throw new ArgumentException("Passed member is neither a PropertyInfo nor a FieldInfo.");
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
import math
def factorial(num):
result = 1
for num in range(1, num + 1):
result *= num
return result
| ise-uiuc/Magicoder-OSS-Instruct-75K |
default_app_config = 'sponsoring.apps.SponsoringConfig'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
} else {
methodsNotMentioned.remove(methodName);
}
}
if (!notFound.isEmpty()) {
throw new RuntimeException("Unable to locate methods: " + notFound);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from .io import yodlify
__author__ = "<NAME>"
__email__ = "<EMAIL>"
__license__ = "MIT"
__all__ = ["yodl", "yodlify"]
| 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.