seed
stringlengths
1
14k
source
stringclasses
2 values
cd ${KOKORO_GITHUB_DIR}/nodejs-docker ./builder/bin/build.sh ${BUILDER_NAMESPACE} ${BUILDER_TAG} ${UPLOAD_TO_STAGING}
ise-uiuc/Magicoder-OSS-Instruct-75K
s = f.multiply(self.stretch.to_string().as_str(), s.as_str()); } if self.asymptote != num::zero() { s = f.add(s.as_str(), self.asymptote.to_string().as_str()) } s } } #[cfg(test)] mod tests { use super::Exponential; use crate::util::as_ratios; use config::fmt::{formatters, FmtAble}; use num::rational::Ratio;
ise-uiuc/Magicoder-OSS-Instruct-75K
const password = control.get('Password'); const confirmPassword = control.get('ConfirmPassword'); if (password.pristine || confirmPassword.pristine) { return null; } // tslint:disable-next-line: object-literal-key-quotes return password && confirmPassword && password.value !== confirmPassword.value
ise-uiuc/Magicoder-OSS-Instruct-75K
Ensures that Django is correctly configured according to users settings """ def test_tracer_flags(self): assert self.tracer.enabled
ise-uiuc/Magicoder-OSS-Instruct-75K
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |Version| +-+-+-+-+ """
ise-uiuc/Magicoder-OSS-Instruct-75K
pass def onRedo(self): print('extension.onRedo') pass # Own methods def setButtonsState(self): if button is not None: button.changeEnabled()
ise-uiuc/Magicoder-OSS-Instruct-75K
# if object was queried, this overwrites any ra and dec that might have been queried
ise-uiuc/Magicoder-OSS-Instruct-75K
"new", "override", "partial", "readonly", "sealed", "static",
ise-uiuc/Magicoder-OSS-Instruct-75K
} }; int main() { return 0; }
ise-uiuc/Magicoder-OSS-Instruct-75K
def transform(self, X): def _removeStopWords(x): final_tokens = []
ise-uiuc/Magicoder-OSS-Instruct-75K
#include <string> using namespace std; int ctoi(char a) { return a - '0';
ise-uiuc/Magicoder-OSS-Instruct-75K
public interface IHuman extends ICreature, IHumanoid { }
ise-uiuc/Magicoder-OSS-Instruct-75K
@Override public List<List<Relationship>> getPathsAsRelationships() { return getPathsAsRelationships( endNode ); } /** * @see SingleSourceShortestPath */ public List<Node> getPredecessorNodes( Node node ) { List<Node> result = new LinkedList<Node>(); List<Relationship> predecessorRelationShips = predecessors1.get( node ); if ( predecessorRelationShips == null
ise-uiuc/Magicoder-OSS-Instruct-75K
int closest(int c) { int op1 = *lower_bound(options.begin(), options.end(), c); int op2 = *prev(upper_bound(options.begin(), options.end(), c)); if (abs(op1 - c) < abs(op2 - c)) return op1; return op2; } };
ise-uiuc/Magicoder-OSS-Instruct-75K
/// Required features: "java-util-Enumeration" #[cfg(any(feature = "all", all(feature = "java-util-Enumeration")))] pub fn elements<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::Enumeration>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> { // class.path == "java/security/PermissionCollection", java.flags == PUBLIC | ABSTRACT, .name == "elements", .descriptor == "()Ljava/util/Enumeration;" unsafe { let __jni_args = []; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("java/security/PermissionCollection\0", "elements\0", "()Ljava/util/Enumeration;\0"); __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
ise-uiuc/Magicoder-OSS-Instruct-75K
impl Fib { fn new() -> Fib { Fib {one_back: 0, current: 1} } } impl iter::Iterator for Fib { type Item = u64; fn next(&mut self) -> Option<u64> { let result = self.one_back + self.current; self.one_back = self.current;
ise-uiuc/Magicoder-OSS-Instruct-75K
delegate_ref<int(int)> d(f1); d(2); CHECK(i1 == 4); d = f2; d(4); CHECK(i2 == 8); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
win_cossim.append(cossim_test) LOGGER.info('Showing results using POS tags: {}'.format(pos_tags)) LOGGER.info('*************************************') ret_val = { "control_scores": control_scores_gs, "patients_scores": patients_scores_gs, "ttest_scores": ttest_scores_gs, } return ret_val
ise-uiuc/Magicoder-OSS-Instruct-75K
pub fn withdraw(&mut self,erc_20_address:AccountId,to_address:AccountId,value:u64) -> bool { if erc_20_address == AccountId::from([0xee; 32]) { return self.withdraw_native_token(to_address, value.into()); } let from_address = self.vault_contract_address; if self.visible_tokens.contains_key(&erc_20_address) { let _caller = self.env().caller(); let _auth = self.get_auth_by_address(self.auth_contract_address); // let is_permission = auth.has_permission(caller,String::from("vault"),String::from("withdraw"));
ise-uiuc/Magicoder-OSS-Instruct-75K
border-radius: 50%; background: ${palette.lightwhite}; } `;
ise-uiuc/Magicoder-OSS-Instruct-75K
test_history.py """ # Copyright (c) 2011 <NAME>, Real Programmers. All rights reserved. import unittest from OR_Client_Library.openrefine_client.google.refine.history import *
ise-uiuc/Magicoder-OSS-Instruct-75K
template<class T> using enable_if_is_directly_serializable_t = typename std::enable_if< std::is_fundamental<T>::value || traits::is_string<T>::value
ise-uiuc/Magicoder-OSS-Instruct-75K
d=c-a print d
ise-uiuc/Magicoder-OSS-Instruct-75K
from . import type from . import compound from . import nested
ise-uiuc/Magicoder-OSS-Instruct-75K
@wraps(f) def decorated_function(*args, **kwargs): if current_user.is_authenticated: if current_user.is_admin and 'admin' in request.endpoint:
ise-uiuc/Magicoder-OSS-Instruct-75K
interface. """ from __future__ import division from .algorithm import Algorithm import torch import torch.nn.functional as F import torch.optim as optim class SGD(Algorithm): def __init__(self, model, alg_params): """Model is owned by the class, so it is set as a class attribute.
ise-uiuc/Magicoder-OSS-Instruct-75K
master_connector.close_connection(fd)
ise-uiuc/Magicoder-OSS-Instruct-75K
a = str(input('Enter the number you want to reverse:')) b = (a[::-1]) c = int(b)
ise-uiuc/Magicoder-OSS-Instruct-75K
{ lock l(mutex_); #ifdef CAPSTOMP_TRACE_LOG capst_journal.trace([&]{ std::string text; text.reserve(64);
ise-uiuc/Magicoder-OSS-Instruct-75K
* @param {Configurator.Configuration} configuration - Configuration * @param {ConfiguratorRouter.Data} routerData - Reflects the current router state */ onAddToCart( configuration: Configurator.Configuration, routerData: ConfiguratorRouter.Data ): void {
ise-uiuc/Magicoder-OSS-Instruct-75K
def console_log(message): print(message)
ise-uiuc/Magicoder-OSS-Instruct-75K
New to Python or choosing between Python 2 and Python 3? Read Python 2 or Python 3. Then, the output should be: 2:2 3.:1 3?:1 New:1 Python:5 Read:1
ise-uiuc/Magicoder-OSS-Instruct-75K
return output def output_table(self): # Derived from the mistune library source code
ise-uiuc/Magicoder-OSS-Instruct-75K
audio_paths = glob.glob('data/TIMIT/TRAIN/DR1/FCJF0/*.WAV') text_paths = glob.glob('data/TIMIT/TRAIN/DR1/FCJF0/*.TXT') audio_paths.sort() text_paths.sort() # print(audio_paths) # print(text_paths) f_train = open('data/train.csv', 'w') f_train.write('path,transcript'+os.linesep)
ise-uiuc/Magicoder-OSS-Instruct-75K
use Symfony\Component\Form\Extension\Core\Type\SubmitType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; use Symfony\Component\Form\Extension\Core\Type\FileType; use Symfony\Bridge\Doctrine\Form\Type\EntityType; class RatingType extends AbstractType { public function buildForm(FormBuilderInterface $builder, array $options) {
ise-uiuc/Magicoder-OSS-Instruct-75K
wndClass.hCursor = LoadCursor(0, IDC_ARROW);
ise-uiuc/Magicoder-OSS-Instruct-75K
import javax.swing.text.JTextComponent; import java.awt.*; import java.awt.datatransfer.StringSelection; public final class CodePanelPopupMenu extends JPopupMenu { public CodePanelPopupMenu(JTextComponent textComponent) { super("Edit");
ise-uiuc/Magicoder-OSS-Instruct-75K
for block in self.blocks: if block.name == name: return block raise ValueError('Cannot find block named {name}.'.format(name=name)) def get_state(self): # TODO: Include everything including the graph structure. block_state = {str(block_id): block.get_state() for block_id, block in enumerate(self.blocks)} node_state = {str(node_id): node.get_state() for node_id, node in enumerate(self._nodes)} return {'blocks': block_state, 'nodes': node_state} def set_state(self, state):
ise-uiuc/Magicoder-OSS-Instruct-75K
public byte getSystem() throws IOException { if ((__io__pointersize == 8)) { return __io__block.readByte(__io__address + 4); } else { return __io__block.readByte(__io__address + 4); } } /** * Set method for struct member 'system'. * <h3>Field Documentation</h3> * <h4>Blender Python API:</h4>
ise-uiuc/Magicoder-OSS-Instruct-75K
$question_option->save(); $option = new QuestionOptionResource($question_option); return $this->showOne($option, 201); } public function update(Request $request, Question $question, QuestionOption $questionOption){ $this->validate($request, [ 'option' => 'required',
ise-uiuc/Magicoder-OSS-Instruct-75K
return try encoder.encodeAsByteBuffer(self, allocator: byteBufferAllocator) } /// Encode AWSShape as XML func encodeAsXML(rootName: String? = nil) throws -> XML.Element { let xml = try XMLEncoder().encode(self, name: rootName) if let xmlNamespace = Self._xmlNamespace { xml.addNamespace(XML.Node.namespace(stringValue: xmlNamespace))
ise-uiuc/Magicoder-OSS-Instruct-75K
plt.xlabel('time')
ise-uiuc/Magicoder-OSS-Instruct-75K
// SIMD constexpr, and character set masks.
ise-uiuc/Magicoder-OSS-Instruct-75K
fi done 9< <( find $videodir -type f -exec printf '%s\0' {} + ) echo "scan done" # Sort the array.
ise-uiuc/Magicoder-OSS-Instruct-75K
/* switch the antenna OFF by SW */ set_antenna_switch(RBI_SWITCH_OFF); Radio_SMPS_Set(SMPS_DRIVE_SETTING_DEFAULT);
ise-uiuc/Magicoder-OSS-Instruct-75K
{ case 0: c = new C(); b = new B() { C = c }; a.B = b; break; case 1: c = new C(); b.C = c; break; case 2: { string testString = "test string" + _random.Next(100000);
ise-uiuc/Magicoder-OSS-Instruct-75K
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.sql.SQLOutput; import static java.lang.System.in; public class Main { public static void main(String[] args) throws IOException {
ise-uiuc/Magicoder-OSS-Instruct-75K
func isGreaterThan(other: DateComponents) -> Bool { return isLessThan(other: other) == false && (self != other) } func setting(era: Int? = nil, year: Int? = nil, month: Int? = nil, day: Int? = nil, hour: Int? = nil, minute: Int? = nil, second: Int? = nil, nanosecond: Int? = nil) -> DateComponents { let merge = DateComponents(era: era, year: year, month: month, day: day, hour: hour, minute: minute, second: second, nanosecond: nanosecond) return merging(merge) } func merging(_ other: DateComponents) -> DateComponents { var copy = self for unit in Calendar.Component.descendingOrder {
ise-uiuc/Magicoder-OSS-Instruct-75K
'addr:city': u'San Francisco',
ise-uiuc/Magicoder-OSS-Instruct-75K
int main(void) { Factory* pFactory = new Lumia920Factory(); Nokia* pNokia = pFactory->CreateNokia(); pNokia->Call("12345680"); return 0; }
ise-uiuc/Magicoder-OSS-Instruct-75K
GhostBitmask = BitMask32(2048) PathFindingBitmask = BitMask32.bit(29) PickerBitmask = BitMask32(4096) CeilingBitmask = BitMask32(256) FloorEventBitmask = BitMask32(16) PieBitmask = BitMask32(256) PetBitmask = BitMask32(8) CatchGameBitmask = BitMask32(16) CashbotBossObjectBitmask = BitMask32(16) FurnitureSideBitmask = BitMask32(32) FurnitureTopBitmask = BitMask32(64)
ise-uiuc/Magicoder-OSS-Instruct-75K
__nwbfields__ = ('unit', )
ise-uiuc/Magicoder-OSS-Instruct-75K
//! // Look! We have just call `display` method on the target type... //! let foo = ExternCrateType(42); //! println!("{}", foo.display());
ise-uiuc/Magicoder-OSS-Instruct-75K
> A* Search </Menu.Item> <Menu.Item
ise-uiuc/Magicoder-OSS-Instruct-75K
for j in reversed(range(len(A))): while stack and A[stack[-1]] <= A[j]: result = max(result, j - stack.pop()) return result
ise-uiuc/Magicoder-OSS-Instruct-75K
import bluesky.plans as bp import bluesky.plan_stubs as bps import bluesky.preprocessors as bpp #Optional: set any metadata that rarely changes. RE.md['beamline_id'] = 'AMX'
ise-uiuc/Magicoder-OSS-Instruct-75K
if __name__ == '__main__': src_conn = sqlite3.connect(sys.argv[1]) tgt_conn = sqlite3.connect(sys.argv[2]) seen = set() for row in src_conn.execute('SELECT * FROM t3'): name = row[2] base_name = name.lower()
ise-uiuc/Magicoder-OSS-Instruct-75K
def test_parse(): assert parse('hello') is None assert parse('BAP: hello') == {'hello': []} assert parse('BAP: hello,world') == {'hello': [], 'world': []} assert parse('BAP: hello=cruel,world') == {'hello': ['cruel', 'world']} assert parse('BAP: hello="hello, world"') == {'hello': ['hello, world']} assert parse('BAP: hello=cruel,world goodbye=real,life') == { 'hello': ['cruel', 'world'],
ise-uiuc/Magicoder-OSS-Instruct-75K
go build --tags fts5 -o gosimple ./gosimple
ise-uiuc/Magicoder-OSS-Instruct-75K
pass elif not visited[to]:
ise-uiuc/Magicoder-OSS-Instruct-75K
\x59\x91\x00\x02\x5c\x07\x6e\x30\x79\xa6\x1c\x54\x36\x84\x57\x00\ \xff\x00\xf1\x00\xf2\xbe\xa6\x77\x61\xc0\x00\x00\x00\x00\x49\x45\ \x4e\x44\xae\x42\x60\x82\ \x00\x00\x04\x3c\ \x89\ \x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\ \x00\x00\x16\x00\x00\x00\x16\x08\x06\x00\x00\x00\xc4\xb4\x6c\x3b\ \x00\x00\x00\x04\x73\x42\x49\x54\x08\x08\x08\x08\x7c\x08\x64\x88\ \x00\x00\x00\x09\x70\x48\x59\x73\x00\x00\x0d\xd7\x00\x00\x0d\xd7\ \x01\x42\x28\x9b\x78\x00\x00\x00\x19\x74\x45\x58\x74\x53\x6f\x66\ \x74\x77\x61\x72\x65\x00\x77\x77\x77\x2e\x69\x6e\x6b\x73\x63\x61\
ise-uiuc/Magicoder-OSS-Instruct-75K
this.e.clear(); if (!com.ziroom.ziroomcustomer.minsu.f.c.isNullList(paramArrayList)) { this.e.addAll(paramArrayList); } } } /* Location: /Users/gaoht/Downloads/zirom/classes3-dex2jar.jar!/com/ziroom/ziroomcustomer/minsu/adapter/i.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */
ise-uiuc/Magicoder-OSS-Instruct-75K
let path = match &file.path { Some(path) => path, None => return Err(errors::Download::NoPath), }; if Path::new(&path).is_absolute() { return Ok(fs::read(&path).await?); }
ise-uiuc/Magicoder-OSS-Instruct-75K
namespace SubmissionEvaluation.Contracts.Data { public class InputDefinition { [YamlMember(ScalarStyle = ScalarStyle.DoubleQuoted)] public string Content { get; set; }
ise-uiuc/Magicoder-OSS-Instruct-75K
{"mixamorig:LeftHandMiddle3", "Left Middle Distal" }, {"mixamorig:LeftHandMiddle2", "Left Middle Intermediate" }, {"mixamorig:LeftHandMiddle1", "Left Middle Proximal" }, {"mixamorig:LeftHandRing3", "Left Ring Distal" }, {"mixamorig:LeftHandRing2", "Left Ring Intermediate" }, {"mixamorig:LeftHandRing1", "Left Ring Proximal" },
ise-uiuc/Magicoder-OSS-Instruct-75K
// UITableViewDataSource override func numberOfSections(in tableView: UITableView) -> Int { return 1 } override func tableView(_: UITableView, numberOfRowsInSection section: Int) -> Int { return self.sortOrders.count } override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let cell = tableView.dequeueReusableCell(withIdentifier: MainStoryboard.configureScanModeCell, for: indexPath) as UITableViewCell let sortOrderString = sortOrders[(indexPath as NSIndexPath).row] cell.textLabel?.text = sortOrderString if let sortOrder = PeripheralSortOrder(sortOrderString) , sortOrder == ConfigStore.getPeripheralSortOrder() {
ise-uiuc/Magicoder-OSS-Instruct-75K
echo -n "${benchmark},${vs[i]},${params[i]},${displayNames[i]}," >> ${bestAndWorstFileName[i]} ./calculateDifferences ${originalBenchmarks[i]} ${parrowsBenchmarks[i]} ${bestAndWorstFileName[i]} True done for i in $(seq 0 $(expr ${count} - 1)); do cp ${bestAndWorstFileName[i]} ${outputFolder}
ise-uiuc/Magicoder-OSS-Instruct-75K
assert(c in actions)
ise-uiuc/Magicoder-OSS-Instruct-75K
clientSslCtx = wrapContext(SslContextBuilder.forClient()
ise-uiuc/Magicoder-OSS-Instruct-75K
class Acars618(Acars620Parser, Acars618Assembler): pass
ise-uiuc/Magicoder-OSS-Instruct-75K
/// </summary> [Newtonsoft.Json.JsonProperty("expired_at")] [System.Text.Json.Serialization.JsonPropertyName("expired_at")] public long? ExpireTimestamp { get; set; } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
def set_cmdln_info(self, cmdln, subcmd):
ise-uiuc/Magicoder-OSS-Instruct-75K
* Returns the single instance. * * @return the single instance. */ public static synchronized ChemicalTable instance() { if (instance == null) instance = new ChemicalTable(); instance.require(); return instance; } /**
ise-uiuc/Magicoder-OSS-Instruct-75K
translated = "" for symbol in encrypted_text: if symbol == " ": translated += " "
ise-uiuc/Magicoder-OSS-Instruct-75K
from dask_gateway_server.app import DaskGateway class DaskGatewayServer(NamedTuple): address: str proxy_address: str
ise-uiuc/Magicoder-OSS-Instruct-75K
from operations.lanefinder import LaneFinder from operations.perspectivefinder import PerspectiveFinder from operations.statswriter import StatsWriter from operations.vehicledetection.vehiclefinder import VehicleFinder from operations.vehicledetection.vehicleclusterer import VehicleClusterer from operations.vehicledetection.vehicletracker import VehicleTracker
ise-uiuc/Magicoder-OSS-Instruct-75K
Args: **kwargs(optional): Keyword arguments directly passed to base class """ self.s3_source_dir = kwargs['s3_source_dir'] assert exactly_one(sql, source, script), 'One of sql/source/script' # Input formatting dest = Table(SqlScript(filename=parse_path(destination))) if source is not None: source_relation = Table(SqlScript(filename=parse_path(source))) else: source_relation = SelectStatement(
ise-uiuc/Magicoder-OSS-Instruct-75K
sendto(sock, msg1, sizeof(msg1), 0, (struct sockaddr *)&yourAddr, sizeof(yourAddr)); sendto(sock, msg2, sizeof(msg2), 0, (struct sockaddr *)&yourAddr, sizeof(yourAddr)); sendto(sock, msg3, sizeof(msg3), 0, (struct sockaddr *)&yourAddr, sizeof(yourAddr)); close(sock); return 0; } void errorHandling(char *message) { fputs(message, stderr); fputc('\n', stderr); exit(1);
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>test/test_tracer.py # TODO: write test
ise-uiuc/Magicoder-OSS-Instruct-75K
public extension Array { func jsonStringify(_ prettyPrinted: Bool = false) -> String { let options = prettyPrinted ? JSONSerialization.WritingOptions.prettyPrinted : JSONSerialization.WritingOptions(rawValue: 0) if JSONSerialization.isValidJSONObject(self) { do { let data = try JSONSerialization.data(withJSONObject: self, options: options)
ise-uiuc/Magicoder-OSS-Instruct-75K
MemoryStream Decompress(Stream compressedStream, bool leaveStreamOpen = false); ValueTask<ArraySegment<byte>> DecompressAsync(ReadOnlyMemory<byte> compressedData); ValueTask<MemoryStream> DecompressAsync(Stream compressedStream, bool leaveStreamOpen = false); MemoryStream DecompressToStream(ReadOnlyMemory<byte> compressedData); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
assert (all([ind in population for ind in selected_individuals]) and len(selected_individuals) == num_of_inds) def test_individuals_selection_random_individuals(): num_of_inds = 2 population = rand_population_gener_and_eval(pop_size=4) types = [SelectionTypesEnum.tournament] graph_params = GraphGenerationParams(advisor=PipelineChangeAdvisor(), adapter=PipelineAdapter()) selected_individuals = individuals_selection(types=types, individuals=population, pop_size=num_of_inds, graph_params=graph_params) selected_individuals_ref = [str(ind) for ind in selected_individuals]
ise-uiuc/Magicoder-OSS-Instruct-75K
public virtual DbSet<AssetPuchase> AssetPuchase { set; get; } public virtual DbSet<ITPurchase> ITPurchase { set; get; } #endregion }
ise-uiuc/Magicoder-OSS-Instruct-75K
{ return 29; // feb has 29 days in a leap year } const int daysinmonth[12]={31,28,31,30,31,30,31,31,30,31,30,31}; return daysinmonth[month-1]; }
ise-uiuc/Magicoder-OSS-Instruct-75K
#!/usr/bin/env bash
ise-uiuc/Magicoder-OSS-Instruct-75K
<? exec('C:\WINDOWS\system32\cmd.exe /c "C:/apache24/htdocs/impactTrade/public/bat/exclusiones.bat"'); ?>
ise-uiuc/Magicoder-OSS-Instruct-75K
import discord from discord.ext import commands,tasks import time import json with open('./setting.json', mode='r',encoding='utf8') as jfile: jdata = json.load(jfile) intents = discord.Intents.all()
ise-uiuc/Magicoder-OSS-Instruct-75K
'html' : fields.text('webkit header', help="Set Webkit Report Header"), 'footer_html' : fields.text('webkit footer', help="Set Webkit Report Footer."), 'css' : fields.text('Header CSS'), 'name' : fields.char('Name', size=128, required=True), 'margin_top' : fields.float('Top Margin (mm)'), 'margin_bottom' : fields.float('Bottom Margin (mm)'), 'margin_left' : fields.float('Left Margin (mm)'), 'margin_right' : fields.float('Right Margin (mm)'), 'orientation' : fields.selection( [('Landscape','Landscape'),('Portrait', 'Portrait')], 'Orientation' ),
ise-uiuc/Magicoder-OSS-Instruct-75K
if self.table_name: return self.table_name + '.' + self.attr_name
ise-uiuc/Magicoder-OSS-Instruct-75K
#with open(filename, 'rb') as handle:
ise-uiuc/Magicoder-OSS-Instruct-75K
} declare const ListItem: React.SFC<ListItemProps> export default ListItem
ise-uiuc/Magicoder-OSS-Instruct-75K
$id = ShippingRuleId::fromInteger(2); $this->assertEquals(2, $id->get());
ise-uiuc/Magicoder-OSS-Instruct-75K
if event.action != ACTION_RELEASED: pressure = sense.get_pressure() converted = (pressure * 1.029) * 0.0295301 inHG = round(converted, 2) sense.show_message(str(inHG), text_colour = [0, 150, 150])
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>livefire2015/DataEngineeringProject class Config: PROXY_WEBPAGE = "https://free-proxy-list.net/" TESTING_URL = "https://google.com" REDIS_CONFIG = {
ise-uiuc/Magicoder-OSS-Instruct-75K
name='isbn',
ise-uiuc/Magicoder-OSS-Instruct-75K
keywords=['python', 'deep learning', 'mlp', 'cnn', 'cagd', 'bspline', 'bezier'], classifiers=[
ise-uiuc/Magicoder-OSS-Instruct-75K
sys.path.append('./model') sys.path.append('./helpers') from model import * from helpers import * ################################################# # DEA problem definition & run ################################################# e = korali.Experiment()
ise-uiuc/Magicoder-OSS-Instruct-75K
raise ValueError("Unable to compute generator for x equals to {}".format(x)) def claytonGenerator(x, theta): boundsConditions(x) if theta == 0: raise ValueError("The parameter of a Clayton copula must not be equal to 0.") if theta < -1: raise ValueError("The parameter of a Clayton copula must be greater than -1 and different from 0.") return (1. / theta) * (x**(-theta) - 1.) def claytonGeneratorInvert(x, theta): if theta == 0: raise ValueError("The parameter of a Clayton copula must not be equal to 0.")
ise-uiuc/Magicoder-OSS-Instruct-75K
resultList.append(tehresult) except: print "failed, ignoring",ref time.sleep(1)
ise-uiuc/Magicoder-OSS-Instruct-75K
unit = 'deg', abslimits = (-720, 720), visibility = (), speed = 2, ), precision = 0.001, ), ) startupcode = ''' SetDetectors(adet) '''
ise-uiuc/Magicoder-OSS-Instruct-75K