seed
stringlengths
1
14k
source
stringclasses
2 values
from aa_foam.memory_usage import memory_usage_main if __name__ == '__main__': memory_usage_main()
ise-uiuc/Magicoder-OSS-Instruct-75K
public ApplicationResourceBuilder withCompletion(final BigDecimal... bigDecimals) {
ise-uiuc/Magicoder-OSS-Instruct-75K
<form class="form-horizontal"> @Html.AntiForgeryToken() <fieldset> <legend>Login</legend> <div class="form-group"> <div class="col-lg-12"> <input type="text" class="form-control floating-label" id="EmailAddressInput" placeholder="User name or email"> </div> </div> <div class="form-group"> <div class="col-lg-12">
ise-uiuc/Magicoder-OSS-Instruct-75K
} else if (identifier == "") { idLabel = POS_ID;
ise-uiuc/Magicoder-OSS-Instruct-75K
protected SqlType(SerializationInfo info) { TypeCode = info.GetValue<SqlTypeCode>("typeCode"); } /// <summary> /// Gets the kind of SQL type this data-type handles. /// </summary> /// <remarks> /// The same instance of a <see cref="SqlType"/> can handle multiple
ise-uiuc/Magicoder-OSS-Instruct-75K
return static_cast<const T&>(provider(*this)); } private: ProviderMap providers; std::unordered_map<std::type_index, Component::SharedPtr> components; };
ise-uiuc/Magicoder-OSS-Instruct-75K
object_id = models.PositiveIntegerField() obj = GenericForeignKey('content_type', 'object_id') class Meta: ordering = ('-id', 'phrase')
ise-uiuc/Magicoder-OSS-Instruct-75K
# reset db each session for consistent testing conditions _db.drop_all() _db.create_all()
ise-uiuc/Magicoder-OSS-Instruct-75K
"\n" + "\tngOnInit() {\n" + "\t\tthis."+ this.camelCase(inputName) + "Service.getList().subscribe((res) => {\n" + "\t\t\tthis."+ this.camelCase(inputName) +" = res;\n" +
ise-uiuc/Magicoder-OSS-Instruct-75K
''' orientation = 0 for lines 1 for columns ''' im = 255-im if orientation == 1: x = [sum(im[:,i]) for i in range(im.shape[1])] else: x = [sum(im[i,:]) for i in range(im.shape[0])] return x
ise-uiuc/Magicoder-OSS-Instruct-75K
using Value; using Value.Provider; public static class Combine { public static ScalarInput TriggersToAxis(TriggerInput positive, TriggerInput negative) { return new ScalarInput($"Axis({positive}, {negative})", new TriggerAsAxis(positive, negative)); } public static Vector2Input ScalarsToVector(ScalarInput x, ScalarInput y) { return new Vector2Input($"Vector({x}, {y})", new CombineScalars(x, y)); } class TriggerAsAxis : Combinator<bool, bool, float> { public TriggerAsAxis(TriggerInput positive, TriggerInput negative) : base(positive, negative, Calculate) { }
ise-uiuc/Magicoder-OSS-Instruct-75K
function __construct () { parent::__construct(); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
import random if __name__ == '__main__': try:
ise-uiuc/Magicoder-OSS-Instruct-75K
velocity.y + random_range( -2.0f, 2.0f ), velocity.z + random_range( -1.0f, 1.0f ) ) * Time::deltaTime * 5.0f;
ise-uiuc/Magicoder-OSS-Instruct-75K
width: '90%', marginRight: 25, backgroundColor: '#F40612', padding: 10, justifyContent: 'center', alignItems: 'center', alignSelf: 'center',
ise-uiuc/Magicoder-OSS-Instruct-75K
using System.Web.Http.Filters; namespace DocumentSigner.Attributes { internal class ExceptionResponseFilterAttribute : ExceptionFilterAttribute { public override void OnException(HttpActionExecutedContext context) {
ise-uiuc/Magicoder-OSS-Instruct-75K
LOGIN_URL = 'login/'
ise-uiuc/Magicoder-OSS-Instruct-75K
# Otherwise, it's just a comma-separated string already, but we do checks: try: vals = list(int(n) for n in s.split(',')) except ValueError: print('Oops, wrong GPU number!') raise return s def _parse_driving_envs(driving_environments):
ise-uiuc/Magicoder-OSS-Instruct-75K
""" Yields accumulated recoveries amount data. Args: ascending_order(bool): final result's ordering by de/ascending. Yields: Tuple[str, int], None, None] or str: accumulated tested amount by town data. """ return self._get_data_by_column('accumulated_recoveries', ascending_order)
ise-uiuc/Magicoder-OSS-Instruct-75K
def vts_timestamp(self): return self._vts_timestamp
ise-uiuc/Magicoder-OSS-Instruct-75K
except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self))))) except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self))))) def deserialize(self, str): """ unpack serialized message in str into this message instance :param str: byte array of serialized message, ``str`` """ if python3:
ise-uiuc/Magicoder-OSS-Instruct-75K
def determine_final_official_and_dev_version(tag_list): """ Determine official version i.e 4.1.0 , 4.2.2..etc using oxauths repo @param tag_list: @return: """ # Check for the highest major.minor.patch i.e 4.2.0 vs 4.2.2 dev_image = "" patch_list = [] for tag in tag_list: patch_list.append(int(tag[4:5]))
ise-uiuc/Magicoder-OSS-Instruct-75K
'description': 'Corpo de Deus', 'locale': 'pt-PT', 'notes': '', 'region': '', 'type': 'NRV' }, { 'date': '2018-06-10', 'description': 'Dia de Portugal', 'locale': 'pt-PT', 'notes': '', 'region': '', 'type': 'NF' }, {
ise-uiuc/Magicoder-OSS-Instruct-75K
export function wrapTest(node: Node): ArrowFunction | null { const [testCall] = tsquery(node, `${NEW_BETTERER_TEST}, ${NEW_BETTERER_FILE_TEST}, ${TEST_FACTORY_CALL}`); if (testCall) { const code = tstemplate( ` () => <%= testCall %> `,
ise-uiuc/Magicoder-OSS-Instruct-75K
@classmethod def extend_parser(cls, parser: argparse.ArgumentParser, subparsers: Any) -> None: """Extends the parser (subcommand, argument group, or argument) Arguments: parser: the CLI parser object
ise-uiuc/Magicoder-OSS-Instruct-75K
# deal with axs issue (array if multiple input, otherwise not) if isinstance(axs, np.ndarray): row_pos = int(idx / max_columns) col_pos = idx % max_columns
ise-uiuc/Magicoder-OSS-Instruct-75K
* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met:
ise-uiuc/Magicoder-OSS-Instruct-75K
class BernoulliLayerTestCase(TestCase): def test_basic(self): layer = BernoulliLayer() output = layer({'logits': tf.zeros([10, 2])})
ise-uiuc/Magicoder-OSS-Instruct-75K
mask_cuda( batch, n, m, x.data_ptr(), mask.data_ptr(), value,
ise-uiuc/Magicoder-OSS-Instruct-75K
stepUpdated() { // are we at the end yet? if( this.isEnded() ) { return; } this.layers.forEach( (layer, i ) => { layer.setStep( this.step ); }); } onPlayerMoved( pos: number ) {
ise-uiuc/Magicoder-OSS-Instruct-75K
use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes;
ise-uiuc/Magicoder-OSS-Instruct-75K
var logger = Mock.Of<ILogger<Instance<OrderProcessManagerData>>>(); var instance = new Instance<OrderProcessManagerData>(definition, logger); instance.ProcessEvent(orderCreated); instance.Data.Amount.Should().Be(100); var orderPaymentCreated = new OrderPaymentCreated(orderId, 100, 0, 0); instance.ProcessEvent(orderPaymentCreated); instance.Data.Amount.Should().Be(100);
ise-uiuc/Magicoder-OSS-Instruct-75K
<div class="page-role good-page"> <link type="text/css" rel="stylesheet" href="<?php echo $this->res_base . "/" . 'bqmart/template/css/good/index.css'; ?>" /> <link type="text/css" rel="stylesheet" href="<?php echo $this->res_base . "/" . 'bqmart/template/css/order/index.css'; ?>" /> <div class="pxui-area"> <div class="bq_ordersuccess-box" id="js-attrs-title"> <ul> <br> <li style="text-align:center;"><?php echo $this->_var['message']; ?> <?php if ($this->_var['err_file']): ?> <b style="clear: both; float: left; font-size: 15px;">Error File: <strong><?php echo $this->_var['err_file']; ?></strong> at <strong><?php echo $this->_var['err_line']; ?></strong> line.</b>
ise-uiuc/Magicoder-OSS-Instruct-75K
def decode(core: bytes): return if __name__ == "__main__": import sys if len(sys.argv) == 2:
ise-uiuc/Magicoder-OSS-Instruct-75K
raw_commands += (cmd.name, *cmd.aliases) if similar_command_data := difflib.get_close_matches(command_name, raw_commands, 1): similar_command_name = similar_command_data[0] similar_command = client.get_command(similar_command_name) if not similar_command: return try: if not await similar_command.can_run(ctx):
ise-uiuc/Magicoder-OSS-Instruct-75K
print(style(Fore.LIGHTYELLOW_EX, msg), *args, **kwargs) def prefill_input(text=None): if text: readline.set_startup_hook(lambda: readline.insert_text(text)) else: readline.set_startup_hook() def style(spec, text, for_readline=False): # Thanks to <NAME> fot the article: # 9https://wiki.hackzine.org/development/misc/readline-color-prompt.html RL_PROMPT_START_IGNORE = '\001' RL_PROMPT_END_IGNORE = '\002' term = Style.RESET_ALL
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>timmytimj/anet #!/bin/bash
ise-uiuc/Magicoder-OSS-Instruct-75K
outstring = [] for y in range(maxY+1): row = '' for x in range(maxX+1): if ([x,y] in points): row += '#'
ise-uiuc/Magicoder-OSS-Instruct-75K
private static final Double CONNECTION_TEMPLATE_MAX_BANDWIDTH = Double.valueOf(7000); private static final Double CONNECTION_TEMPLATE_TYPICAL_BANDWIDTH = Double.valueOf(2000); // ================================ private ConnectionTemplateClientSample() { OneViewClient oneViewClient = new OneViewClientSample().getOneViewClient();
ise-uiuc/Magicoder-OSS-Instruct-75K
let mut bytes: Vec<u8> = vec![0; how_many]; secure_rng().fill_bytes(&mut bytes); bytes } /// Returns cryptographically secure PRNG /// Uses ThreadRng - <https://rust-random.github.io/rand/rand/rngs/struct.ThreadRng.html> /// which is StgRng (ChaCha block cipher with 12 as of July 2021 - /// <https://rust-random.github.io/rand/rand/rngs/struct.StdRng.html>) seeded from OsRng - /// <https://rust-random.github.io/rand/rand/rngs/struct.OsRng.html> which is a random number /// generator that retrieves randomness from the operating system. pub fn secure_rng() -> impl RngCore { use rand::thread_rng; thread_rng()
ise-uiuc/Magicoder-OSS-Instruct-75K
->join('brands','brands.id', '=', 'products.brand_id') ->select('products.*','brands.brand_name', 'categories.category_name') ->orderBy('id','DESC') // ->latest()
ise-uiuc/Magicoder-OSS-Instruct-75K
TOP_NETWORK_DEBUG_FOR_REDIS(message, "stability_af"); } static uint64_t af_recv_start_time = 0; static std::atomic<uint32_t> af_recv_count(0); if (message.type() == kTestChainTrade || message.type() == kTestWpingRequest) { if (af_recv_start_time == 0) { af_recv_start_time = GetCurrentTimeMsec(); }
ise-uiuc/Magicoder-OSS-Instruct-75K
} if (!userData.Achivements.Exists(ach => ach.Name == "Jump 1000")) {
ise-uiuc/Magicoder-OSS-Instruct-75K
print("zeroprotection setup complete") def targetv(): while True: # thanks to @kccuber-scratch on github (@kccuber on scratch.mit.edu) for the idea of this "ov" system (my variable names are bad too) # ov = online variable (probably, i forgot) try: ov = str(cloud1.get_cloud_variable("ONLINE")) except: ov = cloud1s
ise-uiuc/Magicoder-OSS-Instruct-75K
self.invalid_location = { "location": "@#$%^&,@#$%^&" } self.invalid_comment = { "comment": "@#$%^&,@#$%^&" } self.status_data = { "status": "resolved" } self.invalid_status_data = { "status": "@#$%^&,@#$%^&"
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>work/Aufgabe13_gui/run.py<gh_stars>10-100 import os, sys
ise-uiuc/Magicoder-OSS-Instruct-75K
height: 50px; } .sp-10 { width: 100%; height: 10px; } .el-shl-loading { background-image: url("shl-loading.gif"); } </style> @endsection @section('content')
ise-uiuc/Magicoder-OSS-Instruct-75K
"cd rpp && PYTHONPATH=/rpp python /rpp/tests/run_tests.py"
ise-uiuc/Magicoder-OSS-Instruct-75K
:return: """ inp_filepath = args.input_file_path out_filepath = args.output_file_path logging.info('Working on book: {}'.format(inp_filepath)) book_list = process_file(inp_filepath) if book_list: try: with open(out_filepath,mode='wb') as cpickle_file:
ise-uiuc/Magicoder-OSS-Instruct-75K
/** * @author <NAME> * */ public class ClassUtilTest { /** */ public ClassUtilTest()
ise-uiuc/Magicoder-OSS-Instruct-75K
? VALIDATION_METHOD_SOFTWARE_AMAZON_AWSCDK_SERVICES_CERTIFICATEMANAGER_VALIDATION_METHOD__EDEFAULT : newValidationMethod_software_amazon_awscdk_services_certificatemanager_ValidationMethod_; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, AwsworkbenchPackage.CERTIFICATE_BUILDER_CERTIFICATEMANAGER__VALIDATION_METHOD_SOFTWARE_AMAZON_AWSCDK_SERVICES_CERTIFICATEMANAGER_VALIDATION_METHOD_, oldValidationMethod_software_amazon_awscdk_services_certificatemanager_ValidationMethod_, validationMethod_software_amazon_awscdk_services_certificatemanager_ValidationMethod_)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated
ise-uiuc/Magicoder-OSS-Instruct-75K
nodesAtDistanceK(root,2,2); return 0; }
ise-uiuc/Magicoder-OSS-Instruct-75K
considering the value of ``time_like`` return_cartesian : bool, optional Whether to return calculated positions in Cartesian Coordinates This only affects the coordinates. The momenta dimensionless quantities, and are returned in Spherical Polar Coordinates.
ise-uiuc/Magicoder-OSS-Instruct-75K
make(epub: EpubMaker, options?: any): Promise<JSZip>; }
ise-uiuc/Magicoder-OSS-Instruct-75K
public class DenialConstraintSet implements Iterable<DenialConstraint> {
ise-uiuc/Magicoder-OSS-Instruct-75K
public function __construct() { parent::__construct(); // your own logic }
ise-uiuc/Magicoder-OSS-Instruct-75K
operations = [ migrations.RunSQL( "UPDATE processes_workflow SET run_environment_id = scheduling_run_environment_id WHERE run_environment_id IS NULL;", reverse_sql='', ),
ise-uiuc/Magicoder-OSS-Instruct-75K
# Send a few setpoints before starting i = 100 while rclpy.ok() and i > 0: ex.pub_setpoint_local.publish(pose) rclpy.spin_once(ex) ex.get_logger().info("Sending initial setpoints", throttle_duration_sec=2.0) # rate.sleep() i -= 1 offb_set_mode = SetMode.Request() offb_set_mode.custom_mode = "OFFBOARD" # px4_cmode_map in uas_stringify.cpp arm_cmd = CommandBool.Request() arm_cmd.value = True last_request = ex.get_clock().now()
ise-uiuc/Magicoder-OSS-Instruct-75K
result = template.render(gs.model) targetPath = Path(gs.targetFile) with targetPath.open(mode="w") as tf: tf.write(result) mirror.copyToMirror(targetPath) mdb.outputFile(targetPath) except TemplateNotFound: logging.error("TemplateNotFound: {0}".format(gs.template))
ise-uiuc/Magicoder-OSS-Instruct-75K
) post_data = { 'new_owner': self.user.username, 'old_owner_role': self.role_contributor.name,
ise-uiuc/Magicoder-OSS-Instruct-75K
description = models.TextField(help_text='A description of your problem') timestamp = models.DateTimeField(auto_now_add=True) def __str__(self): return '#{0} - {1}'.format(self.id, self.name)
ise-uiuc/Magicoder-OSS-Instruct-75K
cont = 0 for pos,c in enumerate(times): #print(f'c = {c} e pos = {pos}') if pos <= 4: print(f'{pos + 1}° COLOCADO {c}') print('='*20,'OS 4 ULTIMOS COLOCADOS','='*20) for pos,c in enumerate(times): if pos >= 16: print(f'{pos + 1}° COLOCADO {c}') print('='*20,'TIMES POR ORDEM ALFABETICA','='*20,) print(f'\n{sorted(times)}') print('='*50) for pos,c in enumerate(times):
ise-uiuc/Magicoder-OSS-Instruct-75K
assert hidden_size % num_directions == 0 hidden_size = hidden_size // num_directions self.embeddings = embeddings self.rnn = nn.LSTM( input_size=embeddings.embedding_dim, hidden_size=hidden_size, num_layers=num_layers, dropout=dropout if num_layers > 1 else 0, bidirectional=bidirectional, ) self.padding_idx = padding_idx
ise-uiuc/Magicoder-OSS-Instruct-75K
void initializeSource(std::shared_ptr<PGDBConnection> connection, long wsid); void setWorkingDir(std::string workingDir); void loadFiles(const char *whereClause); void insertOrUpdateLocalFile(long fileId, long wspaceId); void removeLocalFile(long fileId); long insertDBFile(std::string fname); void updateDBFile(DBFileInfoPtr fobj);
ise-uiuc/Magicoder-OSS-Instruct-75K
def source_path(): """Get the xonsh source path.""" pwd = os.path.dirname(__file__) return os.path.dirname(pwd) @pytest.fixture def xonsh_execer(monkeypatch): """Initiate the Execer with a mocked nop `load_builtins`""" execer = Execer(unload=False) monkeypatch.setattr(XSH, "execer", execer) yield execer
ise-uiuc/Magicoder-OSS-Instruct-75K
let world = "world!"; let hello_world = format!("{}{}", hello, world); println!("{}", hello_world); // Prints "hello world!"
ise-uiuc/Magicoder-OSS-Instruct-75K
break bar = f["PartType0"] u=np.array(bar['InternalEnergy'],dtype=np.float64) rho=np.array(bar['Density'],dtype=np.float64) nelec=np.array(bar['ElectronAbundance'],dtype=np.float64) metalic = np.array(bar['GFM_Metallicity'],dtype=np.float64)
ise-uiuc/Magicoder-OSS-Instruct-75K
# container stopped - start container again and run a command docker commit $CONTAINER_NAME $IMAGE_NAME docker rm $CONTAINER_NAME docker run -it -v $(pwd)/results:/home/benchmark_user/results:z --name=$CONTAINER_NAME $IMAGE_NAME ${1} fi else # container does not exist - create container and run a command docker run -it --rm -v $(pwd)/results:/home/benchmark_user/results:z --name=$CONTAINER_NAME $IMAGE_NAME ${1} fi } rate(){ log "executing check_file_appearance_rate under ./results/serialized folder" execute_command_in_container "/usr/bin/python3.7 shared_tools.py" }
ise-uiuc/Magicoder-OSS-Instruct-75K
import urlparse import psycopg2
ise-uiuc/Magicoder-OSS-Instruct-75K
25, 6, 36, 19, 10, 23, 0, 37, 4, 1, \ 7, 12, 0, 0, 49 ] Expected Output: 8 """ import itertools STDIN_SIO = """
ise-uiuc/Magicoder-OSS-Instruct-75K
print('error: command {cmd} does not exist' .format(cmd=self.args[0])) return 1 except KeyboardInterrupt: print('\nOk, bye') return 1
ise-uiuc/Magicoder-OSS-Instruct-75K
fn get_param_addr(&self, param: Parameter) -> isize { match param { Parameter::Immediate(_) => panic!("Still can't write to immediate values"), Parameter::Position(addr) => addr, Parameter::Relative(offset) => self.relative_base + offset,
ise-uiuc/Magicoder-OSS-Instruct-75K
import { teaMap } from "./data"; import { Route } from "../router"; export const Effect: EffectConstructor = update => state => { if (state.route.page === Route.TeaDetails) { const id = state.route.params.id; update({ tea: teaMap[id].description }); } };
ise-uiuc/Magicoder-OSS-Instruct-75K
""" This module contains subclasses of the armi.runLog.Log class that can be used to determine whether or not
ise-uiuc/Magicoder-OSS-Instruct-75K
BlockEvent.TransactionEvent event = eventResultDTO.getModel(); log.info("========= instantiate chaincode's transactionId: {}", event.getTransactionID()); } if (transfer) { //transfer TransactionProposalRequest transactionProposalRequest = getTransactionProposalRequest(client, chaincodeID); ResultDTO<BlockEvent.TransactionEvent> transactResultDTO = chaincodeHelper.transact(transactionProposalRequest); if (!transactResultDTO.isSuccess()) { log.error("transact fail: {}", transactResultDTO.getMessage()); return; } BlockEvent.TransactionEvent transactionEvent = transactResultDTO.getModel(); log.info("========= move()'s transactionId: {}", transactionEvent.getTransactionID());
ise-uiuc/Magicoder-OSS-Instruct-75K
export * from './CubeTextureElement'; export * from './HDRCubeTextureElement'; export * from './SearchBar'; export * from './TextureElement'; export * from './Tooltip';
ise-uiuc/Magicoder-OSS-Instruct-75K
/// Each side of the relationship has a public property whose collection generic type is equal to the type of the other side of the relationship /// </summary> RelationshipPropertyTypeEqualToEntityType, } }
ise-uiuc/Magicoder-OSS-Instruct-75K
def _test(self, nums, expected): actual = Solution().singleNumber(nums) self.assertEqual(expected, actual)
ise-uiuc/Magicoder-OSS-Instruct-75K
from hubspot.cms.performance.api.public_performance_api import PublicPerformanceApi
ise-uiuc/Magicoder-OSS-Instruct-75K
namespace aiko { namespace postprocessing { EdgeFx::EdgeFx() : Effect("Edge") { } void EdgeFx::init(Shader* shader) { std::array<int, 9> edgeKernel = {
ise-uiuc/Magicoder-OSS-Instruct-75K
from flask import ( Blueprint, flash, g, redirect, render_template, request, session, url_for, current_app, session ) from werkzeug.security import check_password_hash, generate_password_hash from .document import User bp = Blueprint('auth', __name__, url_prefix='/auth') @bp.route('/register', methods=('GET', 'POST')) def register(): if request.method == 'POST':
ise-uiuc/Magicoder-OSS-Instruct-75K
from string import ascii_lowercase as letters c = 0 rotate = 0 tmp_piece = pieces[letters[c]] while True: print(term.clear()) print(x, y)
ise-uiuc/Magicoder-OSS-Instruct-75K
"desc": "城市" }, { "name": "Offset", "desc": "查询开始位置" },
ise-uiuc/Magicoder-OSS-Instruct-75K
{ public function saveState($data) { $this->db->insert('states', $data);
ise-uiuc/Magicoder-OSS-Instruct-75K
import re from nltk.corpus import stopwords import requests from operator import itemgetter def run(url, word1, word2): freq = {} # keep the freq of each word in the file freq[word1] = 0; freq[word2] = 0; stopLex = set() # build a set of english stopwrods success = False# become True when we get the file for i in range(5): # try 5 times
ise-uiuc/Magicoder-OSS-Instruct-75K
/// Generates `PrivateKey` and `Peer` information for a client / node fn generate_private_key_and_peer(op_tool: &OperationalTool) -> (PrivateKey, PeerSet) {
ise-uiuc/Magicoder-OSS-Instruct-75K
sensitive_list = [] openapi_types = { 'trigger_id': 'str', 'trigger_type_code': 'str', 'trigger_status': 'str', 'event_data': 'object', 'last_updated_time': 'datetime', 'created_time': 'datetime' } attribute_map = {
ise-uiuc/Magicoder-OSS-Instruct-75K
<div class="modal-footer"> <button class="btn btn-default pull-left" data-dismiss="modal" type="button">Close</button> <input type="submit" class="btn btn-primary" value="Simpan"/> </div> </form>
ise-uiuc/Magicoder-OSS-Instruct-75K
StringLiterals.PARANTHESES_OPEN + StringLiterals.SPACE + SharedStrings.CNTXT_FXN_TMPLT_VAR_PARM + StringLiterals.COMMA + StringLiterals.SPACE + CommandNames.SHORT_TIME_FORMAT + StringLiterals.PARANTHESES_CLOSE; mnuShortTime.Click += new EventHandler(FXClickHandler); //=========================================================================== ToolStripMenuItem mnuNumberFormats = new ToolStripMenuItem(SharedStrings.CNTXT_FXN_FRMT_NUM); ToolStripMenuItem mnuGeneralNumber = new ToolStripMenuItem(SharedStrings.CNTXT_FXN_FRMT_NUM_GEN);
ise-uiuc/Magicoder-OSS-Instruct-75K
curr_time = datetime.datetime.now() time_str = datetime.datetime.strftime(curr_time, '%Y-%m-%d %H:%M:%S') return time_str def getHour(): curr_time = datetime.datetime.now() return curr_time.hour def getMinute(): curr_time = datetime.datetime.now() return curr_time.minute
ise-uiuc/Magicoder-OSS-Instruct-75K
CASE_STATUS = "case status" TEAM = "team" QUEUE = "queue" TIER = "tier number" ACTIVE_ONLY = "Only show active rules"
ise-uiuc/Magicoder-OSS-Instruct-75K
if args.clean: shutil.rmtree(os.path.join(temp_dir, 'G2P'), ignore_errors=True) shutil.rmtree(os.path.join(temp_dir, 'models', 'G2P'), ignore_errors=True)
ise-uiuc/Magicoder-OSS-Instruct-75K
* * @param string $table name of table * @param string $on_condition condition for crossing with a starting table * @param ?string $as alias table name
ise-uiuc/Magicoder-OSS-Instruct-75K
header_added = True formatted_option = option % option_format_args option_output = '%s%s;\n' % (option_prefix, formatted_option,) existing_option = current_options.pop(formatted_option, None) if existing_option and existing_option != option_output: print 'existing option mismatch. existing: %s, new: %s' % (existing_option, option_output) exit(1) else: header.append(option_output)
ise-uiuc/Magicoder-OSS-Instruct-75K
# These will turn into comments if they were disabled when configuring. ENABLE_WALLET=1 ENABLE_UTILS=1 ENABLE_FLIRTCOIND=1 REAL_FLIRTCOIND="$BUILDDIR/src/flirtcoind${EXEEXT}" REAL_FLIRTCOINCLI="$BUILDDIR/src/flirtcoin-cli${EXEEXT}"
ise-uiuc/Magicoder-OSS-Instruct-75K
return os; }
ise-uiuc/Magicoder-OSS-Instruct-75K
# Array Backtracking # Similar Questions # Letter Combinations of a Phone Number Combination Sum II Combinations Combination Sum III # Factor Combinations Combination Sum IV # 40. Combination Sum II has duplicate # import unittest class Solution: # @param candidates, a list of integers # @param target, integer # @return a list of lists of integers def combinationSum(self, candidates, target):
ise-uiuc/Magicoder-OSS-Instruct-75K
def tearDown(self): self.app = None self.item_list.clear()
ise-uiuc/Magicoder-OSS-Instruct-75K
let ParsedExpArgs { ty, final_t, char_t, cil_mag, coa_mag, adh_scale, adh_break, cal_mag, crl_one_at, zero_at, too_close_dist,
ise-uiuc/Magicoder-OSS-Instruct-75K
EXECUTE_RESPONSE_DOCUMENT = "document" EXECUTE_RESPONSE_OPTIONS = frozenset([ EXECUTE_RESPONSE_RAW, EXECUTE_RESPONSE_DOCUMENT, ]) EXECUTE_TRANSMISSION_MODE_VALUE = "value" EXECUTE_TRANSMISSION_MODE_REFERENCE = "reference" EXECUTE_TRANSMISSION_MODE_OPTIONS = frozenset([
ise-uiuc/Magicoder-OSS-Instruct-75K