seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
def f():
with c1:
print 'in with statement (1)'
with c2:
print 'in with statement (2)'
with c3:
print 'in with statement (3)'
with c4:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self._alpha_electrons = self._total_electrons // 2 + self.get_multiplicity() - 1
return self._alpha_electrons
def get_beta_electrons(self):
return self._total_electrons - self._alpha_electrons
def build_fchk_file(self, name):
txt_fchk = file_io.build_fchk(self._EH)
open(name + '.fchk', 'w').write(txt_fchk)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"RRTConnect",
False)
# sleeping 10 seconds to publish
| ise-uiuc/Magicoder-OSS-Instruct-75K |
globals.harness.pushTestResult();
globals.harness.setResultName(createHierarchalName("Assertion Site Error", error_message));
| ise-uiuc/Magicoder-OSS-Instruct-75K |
The persistent container for the application. This implementation
creates and returns a container, having loaded the store for the
application to it. This property is optional since there are legitimate
error conditions that could cause the creation of the store to fail.
*/
let container = NSPersistentContainer(name: "ViperIos")
container.loadPersistentStores(completionHandler: { (storeDescription, error) in
if let error = error as NSError? {
// Replace this implementation with code to handle the error appropriately.
// fatalError() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development.
/*
Typical reasons for an error here include:
* The parent directory does not exist, cannot be created, or disallows writing.
* The persistent store is not accessible, due to permissions or data protection when the device is locked.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@Override
public String toString() {
return String.format("Offset = %s, Hash = %s, Key = %s", this.offset, this.hash, this.key);
}
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
malertView.centerXAnchor.constraint(equalTo: visibleView.centerXAnchor),
malertView.centerYAnchor.constraint(equalTo: visibleView.centerYAnchor),
malertView.trailingAnchor.constraint(equalTo: visibleView.trailingAnchor, constant: -malertView.trailingSpace),
malertView.leadingAnchor.constraint(equalTo: visibleView.leadingAnchor, constant: malertView.leadingSpace)
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
</div>
<div class="col-md-8">
<h5 id='principalbalance'><b></b></h5>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@classmethod
@deprecated
def isoutput(cls):
return cls.is_output()
@classmethod
@deprecated
def isinout(cls):
return cls.is_inout()
@property
def debug_name(self):
defn_str = ""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import torch
import ttach as tta
from albumentations.augmentations.geometric.resize import Resize
from sklearn.model_selection import train_test_split
from torch.utils.data import DataLoader
from tqdm import tqdm
import missed_planes.engine as engine
import missed_planes.metrics as metrics
from missed_planes.dataset import PlanesDataset
with open(sys.argv[1], "r") as f:
config = json.load(f)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
formatter.dateFormat = "yyyyMMdd'T'HHmmss'Z'"
formatter.timeZone = TimeZone(abbreviation: "UTC")
formatter.locale = Locale(identifier: "en_US_POSIX")
return formatter.string(from: date)
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
else
printf("special symbol");
return 0;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Optional time, as a datetime.
nlinks
The number of links. Defaults to 1.
size
The file size. Defaults to 0.
name
| ise-uiuc/Magicoder-OSS-Instruct-75K |
logger.log("Running trained model")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
name = "objdump",
path = "/bin/false",
),
tool_path(
name = "strip",
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Unsupervised (test) dataset.
predicted = _predict(container, test_data)
predicted = mms.inverse_transform(predicted)
return predicted.ravel()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public interface IAsyncRunnable
{
Task Run();
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
[Reactive]
public User CurrentUser { get; set; }
[Reactive]
public ConnectStatus ConnectStatus { get; set; }
[Reactive]
public Setting Setting { get; set; }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
input_type=CENTRAL_SERVER.Location)
resp, body = update_location_(location)
assert resp.status in [200, 201], "%s %s" % (resp.status, resp.reason)
return Resource.from_iri(resp['location'])
except Exception as e:
print(e)
return None
def add_location(location):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
):
"""Run the agent."""
skip_consistency_check = click_context.obj.config["skip_consistency_check"]
_prepare_environment(click_context, env_file, is_install_deps)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
kubectl scale deployment metal3-baremetal-operator -n metal3 --replicas=0
nohup "${SCRIPTDIR}/hack/run-bmo-loop.sh" >> bmo.out.log 2>>bmo.err.log &
fi
rm -rf "$kustomize_overlay_path"
popd
}
function launch_kind() {
cat <<EOF | sudo su -l -c "kind create cluster --name kind --image=kindest/node:${KUBERNETES_VERSION} --config=- " "$USER"
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
containerdConfigPatches:
- |-
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."${REGISTRY}"]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# The start of a win32gui generic demo.
# Feel free to contribute more demos back ;-)
import win32gui, win32con, win32api
import time, math, random
def _MyCallback(hwnd, extra):
hwnds, classes = extra
hwnds.append(hwnd)
classes[win32gui.GetClassName(hwnd)] = 1
def TestEnumWindows():
windows = []
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using Pulumi.Serialization;
namespace Pulumi.AwsNative.Pinpoint
{
/// <summary>
/// Resource Type definition for AWS::Pinpoint::Campaign
/// </summary>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
""" Assuming col1 and col2 are lists, return set difference between list1 & list2 """
return list(set(df[0]) - set(df[1]))
def coverage(df):
""" How much of column1 does column2 cover """
s = set(df[0])
num = len(s.intersection(set(df[1])))
den = len(s)
if den == 0:
return 0
return num / den
def main(filepath):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
else:
cumulative_negative_tests = None
if not math.isnan(row['death']):
cumulative_deaths = row['death']
else:
cumulative_deaths = None
if not math.isnan(row['hospitalizedCumulative']):
cumulative_hospitalized = row['hospitalizedCumulative']
| ise-uiuc/Magicoder-OSS-Instruct-75K |
serverSocket.listen(1)
hostName = gethostname()
ipAddr = gethostbyname(hostName)
print("Server ready to receive on " + str(ipAddr) + ":" + str(serverPort) + " ...")
while True:
connectionSocket, addr = serverSocket.accept()
print("Connection established: ", addr)
while True:
data = connectionSocket.recv(2048).decode()
if data == "exit":
break
print("Step count recieved: ", data) | ise-uiuc/Magicoder-OSS-Instruct-75K |
<?php echo Customer::where('id',$invoice->customer_id)->first()->name; ?>
</td>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
loc_preds = [(_boxes[_kept], angle) for (_boxes, angle), _kept in zip(loc_preds, is_kept)]
return crops, loc_preds
@staticmethod
def _process_predictions(
loc_preds: List[Tuple[np.ndarray, float]],
word_preds: List[Tuple[str, float]],
allow_rotated_boxes: bool = False,
) -> Tuple[List[np.ndarray], List[List[Tuple[str, float]]]]:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
public static String FUSION_ONTOLOGY_NS = "http://kmi.open.ac.uk/fusion/fusion#";
public static String FUSION_ONTOLOGY_URI = "http://kmi.open.ac.uk/fusion/fusion";
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Some hints:
Could negative integers be palindromes? (ie, -1)
If you are thinking of converting the integer to string, note the restriction of using extra space.
You could also try reversing an integer. However, if you have solved the problem "Reverse Integer", you know that the reversed integer might overflow. How would you handle such case?
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'application/json': {},
| ise-uiuc/Magicoder-OSS-Instruct-75K |
cd ..
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>jujinesy/initdjango-machina<filename>machina/templatetags/forum_tracking_tags.py
# -*- coding: utf-8 -*-
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// Copyright © 2017年 ljb48229. All rights reserved.
//
import UIKit
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def open_files():
# current process
p = psutil.Process()
return p.open_files()
class CheckLogger(object):
def setup_method(self, _):
self.temp_dir = tempfile.mkdtemp()
def check_close_logger(self):
"""Check that calling close_logger properly cleans up resources."""
initial_open_files = open_files()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
setting: Dict, binding: bool, logger: logging.Logger
) -> List:
conn_list = []
for conn in setting:
conn_list.append(
socket_connections.Connection(
conn["name"], conn["ip"], conn["port"], logger
)
)
if binding == True:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
fides_optimizers,
nag_optimizers,
nlopt_optimizers,
pygmo_optimizers,
scipy_optimizers,
tao_optimizers,
bhhh,
neldermead,
pounders,
]
ALL_ALGORITHMS = {}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from processes.get_tmdb import Main as get_tmdb
from processes.get_itunes import Main as get_itunes
from processes.get_amazon import Main as get_amazon
from processes.get_trailer import Main as get_trailer
from processes.get_youtube import Main as get_youtube
from processes.insert_errored import Main as insert_errored
from processes.insert_movies import Main as insert_movies
from processes.insert_movies import Main as insert_movies
from processes.insert_movies2companies import Main as insert_movies2companies
from processes.insert_movies2genres import Main as insert_movies2genres
from processes.insert_movies2keywords import Main as insert_movies2keywords
from processes.insert_movies2numbers import Main as insert_movies2numbers
from processes.insert_movies2persons import Main as insert_movies2persons
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// Note this number is always 10 digits
let number: String
/// Format to xxx-xxx-xxxx for backend request
var formattedNumber: String {
var result = number
result.insert("-", at: number.index(number.startIndex, offsetBy: 3))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from ast import literal_eval
from fastapi import APIRouter
import psycopg2
import psycopg2.extras
from dotenv import load_dotenv
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def get_image_by_id(self, image_id):
"""
Get an image by its id
"""
for image in self.image_list:
if image_id == image.image_id:
return image
def add_image_to_store(self, image):
"""
Add a new image to the list of images
"""
self.image_list.append(image)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return 0
def play():
l=[]
for i in range(5):
l.append(Ivan())
if l==[0,0,0,0,1]:
return 1
else:
return 0
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ArmedState.ARMED_AWAY_IN_ENTRY_DELAY,
]:
state = STATE_ALARM_ARMED_AWAY
elif arm_state in [ArmedState.ALARM, ArmedState.ALARM_FIRE]:
state = STATE_ALARM_TRIGGERED
else:
state = None
return state
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if ('value' in props) {
return {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/**
* Get the integer value of this enum value, as defined in the Thrift IDL.
*/
public int getValue() {
return value;
}
/**
* Find a the enum type by its integer value, as defined in the Thrift IDL.
* @return null if the value is not found.
*/
public static TSetAclAction findByValue(int value) {
switch (value) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
*/
public $bufferSize;
/**
* @var WaitStrategyInterface
*/
public $waitStrategy;
/**
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>madmis/wexapi<gh_stars>1-10
#!/usr/bin/env python
import wexapi
attrs = ('high', 'low', 'avg', 'vol', 'vol_cur', 'last', 'buy', 'sell', 'updated')
print("Tickers:")
connection = wexapi.common.WexConnection()
info = wexapi.public.InfoApi(connection)
api = wexapi.public.PublicApi(connection)
for pair in info.pair_names:
ticker = api.get_ticker(pair, info)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from app.config import API_VERSION, APP_VERSION
client = TestClient(app)
def test_version():
"""Test /version route"""
response = client.get(f"/v{API_VERSION}/version")
version = response.json()
assert response.status_code == 200
assert "api" in version
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from sklearn.linear_model import LinearRegression
from sklearn.preprocessing import StandardScaler
import numpy as np
from ..mlp import MLP
class TestMLP(object):
def __init__(self):
self.X_cl, self.y_cl = make_classification(100)
self.X_mcl, self.y_mcl = make_classification(
1000, n_informative=5, n_classes=3)
self.X_re, self.y_re = make_regression(100)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
seed = 7
numpy.random.seed(seed)
# class_weights = {0: 0.1, 1: 50000.}
files = glob('/Users/karanjani/Desktop/csvWithVecs/TrainCSV/*.csv')
features = ["GS%d" % d for d in range(4096)] + ['wordCount','chartStart','charEnd']
# Create Model
| ise-uiuc/Magicoder-OSS-Instruct-75K |
logging.basicConfig(
filename=outlog,
level=logging.INFO,
format="%(asctime)s [ %(levelname)s ] : %(message)s",
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Returns:
text (dict): A dictionary where keys are the ids and values are the text
'''
results = {}
# We'll loop over the ids to fetch the text data
# We'll split ids into 1000 because of the limit of the API
# Futrue work:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Time.Epicor.Helpers
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for line in lines:
# Ignore errors from CPU instruction set, symbol existing testing,
# or compilation error formatting
ignored_keywords = [
'src.c',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#[derive(Debug, Copy, Clone)]
pub enum TransactionId {
NoTransaction,
StartTransaction,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public int Id { get; set; }
public string Type { get; set; }
public int ScopeId { get; set; }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// Created by CryptoByNight on 06/10/2020.
//
import SwiftUI
struct OnboardingView: View {
// MARK: - PROPERTIES
var onboarding: [Onboarding] = onboardingData
// MARK: - BODY
| ise-uiuc/Magicoder-OSS-Instruct-75K |
sudo apt-get install -y libappindicator1 fonts-liberation
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome*.deb | ise-uiuc/Magicoder-OSS-Instruct-75K |
'none': None,
'empty': [],
'numerals': [1, 1, 2, 3, 5, 8, 13, 21],
'strings': ['foo', 'bar', 'zen'],
'cities': ['san fransisco', 'buenos aires', 'bern', 'kinshasa-brazzaville', 'nairobi']
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// - returns: The sum of all positive values this entry (if stacked) contains.
@objc open var positiveSum: Double {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let mut speed = Point::new_random();
speed.x *= 10.0;
speed.y = (speed.y * 10.0) - 5.0;
entities.add_entity(
(&mut positions, &mut speeds, &mut gravities),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
issues = KnownIssue.objects.all()
categories = BugCategory.objects.order_by('name')
return render(request, 'helper/index.html', {'faqs': faqs, 'issues': issues, 'categories': categories})
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.send_response(200)
self.send_header('Content-type', 'application/json')
self.send_header('Access-Control-Allow-Origin', '*')
self.end_headers()
if self.path != '/favicon.ico':
db_dump = []
entities = {
'MAGA' : 1,
'MCD' : 2,
'MINDEF' : 3,
'MINEDUC' : 4,
'MEM' : 5,
'MINFIN' : 6,
'MINEX' : 7,
'MSPAS' : 8,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
++viter;
++iter;
}
if ( diff )
{
std::cerr << "VectorImage output does not match covariant!" << std::endl;
return EXIT_FAILURE;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
)
''',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$capacityreports = array("hadoop_dfs_space_report", "hadoop_map_capacity_report", "hadoop_reduce_capacity_report");
$capacity_graphs = array();
foreach ($capacityreports as $thisgraph) {
$capacity_graphs[] = array(
'type' => 'ganglia',
'is_report' => true,
'metric' => array('source' => $gangliacluster_nn, 'node' => $hadoopnn, 'datum' => $thisgraph)
);
}
$graphs = array(
'Cluster Hardware Overview' => $ganglia_graphs,
'Running Now' => $running_graphs,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
measurement : {'poles', 'lines', 'rakes', 'radians'}, optional
| ise-uiuc/Magicoder-OSS-Instruct-75K |
.await;
};
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
PLDR_MODULE TempModule = (PLDR_MODULE)((DWORD)TempEntry - 0 * sizeof(LIST_ENTRY));
if (TempModule->BaseAddress == hInstance)
{
TempEntry->Blink->Flink = TempEntry->Flink;
TempEntry->Flink->Blink = TempEntry->Blink;
break;
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
RABBITMQSERVER = os.getenv('RABBITMQSERVER', '192.168.1.138')
FILES_CSV = os.path.join(TARGET, "files.csv")
FACES_CSV = os.path.join(TARGET, "faces.csv")
PLATES_CSV = os.path.join(TARGET, "plates.csv")
FILES_PARQUET = os.path.join(TARGET, "files.parquet")
FACES_PARQUET = os.path.join(TARGET, "faces.parquet")
PLATES_PARQUET = os.path.join(TARGET, "plates.parquet")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
var scrollDirection = GBHomepageComponentScrollDirection.fix
//排序方式
var flowDirection = GBHomepageComponentCellFlowDirection.horizontal
//component 宽度 对于 750px 宽度屏幕
var contentSizeWidthTo750pxWidth:Double = 750
//component 高度 对于 750px 宽度屏幕
var contentSizeHeightTo750pxWidth:Double = 50
//成员
var cells = [GBHomepageCell]()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'status' => 'success'
);
}else{
$response = array(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
input_mask = tf.cast(true_features_dict['input_mask'], tf.int32)
input_mask *= tf.cast(1 - none_replace_mask, tf.int32) # cls, unk, sep are not considered as replace or original
true_logits = true_model_dict['logits']
fake_logits = fake_model_dict['logits']
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if asc>=65 or asc<=90:
asc=asc-cle
resultat=resultat+chr(asc)
print (resultat) | ise-uiuc/Magicoder-OSS-Instruct-75K |
opacity: 1;
}
`;
export const PopOverStyled = styled.div<Props>`
background: ${({ theme }) => theme.content.background};
min-width: 10rem;
min-height: 2rem;
max-width: 40rem;
border-radius: 0.25rem;
animation: ${fadeIn} 150ms ease-in-out;
${(p) =>
p.theme.name === 'dark'
? css`
| ise-uiuc/Magicoder-OSS-Instruct-75K |
phoneNumber: string;
content: string;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from cs50 import get_string
s = get_string("Before: ")
print("After: ", end="")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
resources=self.resources,
pre=self.pre,
text_field=self.text_field,
doc_field=self.doc_field,
language=self.language,
disable=self.disable,
memoize=self.memoize,
gpu=self.gpu,
)
class nlp_labeling_function(base_nlp_labeling_function):
"""Decorator to define an NLPLabelingFunction object from a function.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
#mycursor.execute("SELECT * FROM alunos")
#mycursor.execute("SELECT name FROM alunos WHERE turma = 'BCW23' ")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
use app\models\Emploi;
use app\models\Employe;
use Yii;
use yii\console\Controller;
use yii\console\ExitCode;
class EmployeController extends Controller
| ise-uiuc/Magicoder-OSS-Instruct-75K |
b"144ED325886905B07A82F76B5D434A9805D431E3D0C1306DF6D6E1C27BD7CB95",
b"D57AF1DCF3B5429193319D240AA263567A86F9993AD0801AFDC1709C8FE91907",
b"1CD9CB1BFD39F51C0EDDF166D3C1097D2D7FEDB2B9D2CD92E2E8FE029E05EB0A",
b"AD20CAC4B4EF7E3BD0F29A057538DBBB5CF4CD8B4EDEEFFFB1BC847CD61BFC36",
b"4CDC3C04D7F214CC373D5E67E7EB9EBDC8BEF491D5273E03CFB55D09A3D40320",
]
def test_export_c():
print()
for l in expected_leafs_zeroseed:
print("{", end='')
for idx in range(0, len(l) - 2, 2):
print("0x{}".format(l[idx:idx + 2].decode('ascii')), end='')
print(',', end='')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
assert context.cur_element['input'].owns, "Did not present overlay"
@then(u'the previous dropdown component resolves')
def check_resolve_dropdown1(context):
print("Cur dropdown %s" % context.cur_element['input'].owns)
print("Cur overlays %s" % context.cur_overlays.is_displayed())
raise AssertionError
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def update(self,
args):
"""
Update ImageNet-1K dataset metainfo after user customizing.
Parameters:
----------
args : ArgumentParser
Main script arguments.
"""
super(CocoDetMetaInfo, self).update(args)
self.input_image_size = args.input_size
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@objc func actionCleanup() {
firebase?.removeAllObservers()
firebase = nil
}
// MARK: - Notification methods
//---------------------------------------------------------------------------------------------------------------------------------------------
@objc func refreshUserInterface() {
if (refreshUIBlockeds) {
NotificationCenter.post(notification: NOTIFICATION_REFRESH_BLOCKEDS)
refreshUIBlockeds = false
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'DeviceInfo_Make',
'DeviceInfo_OsBuild',
'DeviceInfo_OsVersion',
'DeviceInfo_Model',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
| ise-uiuc/Magicoder-OSS-Instruct-75K |
):
"""
Add a list of files to the FileManager. Does not emit any signals
"""
files_by_widget = session_id, widget_id
with self._files_lock:
file_list = self._files_by_id.get(files_by_widget, None)
if file_list:
files = file_list + files
self._files_by_id[files_by_widget] = files
| ise-uiuc/Magicoder-OSS-Instruct-75K |
file_size=0
file_number=0
file_content=()
regex='# Source: (.*)'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$("#emailBut").show();
}
})
})
</script>
</body>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def test_calender_event(self):
# Now I will set recurrence for this event to occur monday and friday of week
| ise-uiuc/Magicoder-OSS-Instruct-75K |
sal_Int32 m_nRow;
sal_Bool m_nWasNull;
sal_Int32 m_nOpenMode;
sal_Bool m_bRowCountFinal;
typedef std::vector< com::sun::star::uno::Reference< com::sun::star::ucb::XContentIdentifier > > IdentSet;
typedef std::vector< com::sun::star::uno::Reference< com::sun::star::sdbc::XRow > > ItemSet;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
internal init(_ target: AnyObject?, tag: Int) {
super.init(frame: CGRect.zero)
self.tag = tag
self.addTarget(target,
action: #selector(MagiTabBar.selectAction(_:)),
for: .touchUpInside)
self.addTarget(target,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from lusidtools.jupyter_tools.hide_code_button import toggle_code
| ise-uiuc/Magicoder-OSS-Instruct-75K |
const deltaTimeWeight: number =
(this._userTimeSeconds - this._lastTimeSeconds) * FrameRate;
this._lastTimeSeconds = this._userTimeSeconds;
// 最高速度になるまでの時間を
const timeToMaxSpeed = 0.15;
const frameToMaxSpeed: number = timeToMaxSpeed * FrameRate; // sec * frame/sec
const maxA: number = (deltaTimeWeight * maxV) / frameToMaxSpeed; // 1frameあたりの加速度
// 目指す向きは、(dx, dy)方向のベクトルとなる
const dx: number = this._faceTargetX - this._faceX;
const dy: number = this._faceTargetY - this._faceY;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
extension HistoryViewController: JTAppleCalendarViewDelegate {
func calendar(_ calendar: JTAppleCalendarView, willDisplay cell: JTAppleCell, forItemAt date: Date, cellState: CellState, indexPath: IndexPath) {
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
var rows: RowsProvider<RowModel> { get }
}
class ViewController: UIViewController {
@IBOutlet weak var placeholder: PlaceholderView!
var tableVC: PlaceholderTableVC!
var presenter: Presenter = PresenterImplementation()
override func viewDidLoad() {
super.viewDidLoad()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
},
"urischeme": {
"@id": "urischeme",
"aliases": ["urischeme", "u"],
"required": False,
"default": "RFC5147String",
"options": "RFC5147String"
},
}
def parse_params(indict, spec=NIF_PARAMS):
logger.debug("Parsing: {}\n{}".format(indict, spec))
outdict = indict.copy()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from input_filtered import int_input
| ise-uiuc/Magicoder-OSS-Instruct-75K |
PageOrientation PrintSchema implementation. This implements the features,
options and enumerations that describe the PrintSchema PageOrientation feature.
--*/
#include "precomp.h"
#include "porientschema.h"
LPCWSTR XDPrintSchema::PageOrientation::ORIENTATION_FEATURE = L"PageOrientation";
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# --svm_predict
# CUDA_VISIBLE_DEVICES=1 \
# python hyper_pixelNN.py \
# --fst_preprocessing \
# --st_type tang \
# --dataset KSC \
| 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.