seed
stringlengths
1
14k
source
stringclasses
2 values
} continue; } if (!channel.HasValue) { if (!string.IsNullOrWhiteSpace(outputLine)) { var match = channelPattern.Match(outputLine);
ise-uiuc/Magicoder-OSS-Instruct-75K
""" The main entry point. Invoke as `poego' or `python -m poego'. """
ise-uiuc/Magicoder-OSS-Instruct-75K
@Override public void clear() { errorList.clear(); } @Override public boolean validate(ERDiagram diagram) { this.database = diagram.getDatabase();
ise-uiuc/Magicoder-OSS-Instruct-75K
def ready(self): """Registers the product implementations with other applications.""" from job.configuration.data.data_file import DATA_FILE_STORE from product.configuration.product_data_file import ProductDataFileStore # Register product files for the data file store DATA_...
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>vignesh-sankaran/google-maps-services-rust<filename>src/distance_matrix/duration_seconds.rs use serde::{Deserialize, Deserializer}; use std::time::Duration; pub fn deserialize<D>(deserializer: D) -> Result<Duration, D::Error> where D: Deserializer {
ise-uiuc/Magicoder-OSS-Instruct-75K
with open("../data/amzn/train_title.jsonl", "w") as fout: with open("../data/amzn/train.jsonl", "r") as fp: p = tqdm() while True: line = fp.readline() if not line: break
ise-uiuc/Magicoder-OSS-Instruct-75K
# git clone --origin vps5 ssh://git@vps5.dgt-bv.com:2221/opt/git/dns-de-graaffnet.git ./dns-de-graaffnet/ # if [ ! -d "/home/jdg/dev/dns-deploy" ] ; then echo "dir not exist" ; exit 1; fi if [ ! -d "/home/jdg/dev/dns-de-graaffnet" ] ; then echo "dir not exist" ; exit 1; fi # apt install opendnssec bind9utils...
ise-uiuc/Magicoder-OSS-Instruct-75K
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. do_install(...
ise-uiuc/Magicoder-OSS-Instruct-75K
for (int bitIndex = 0; bitIndex < input.Length * 5 - compensation; bitIndex += 8) { int dualbyte = _alphabet.IndexOf(bytes[bitIndex / 5]) << 10;
ise-uiuc/Magicoder-OSS-Instruct-75K
fn find_palindrome(s: &String, i: usize, j: usize) -> (i32, i32) { let mut l = i as i32; let mut r = j as i32; let chs = s.as_bytes(); while l >= 0 && r < s.len() as i32 && chs[l as usize] == chs[r as usize] { l = l - 1; r = r + 1; } (l + 1, r...
ise-uiuc/Magicoder-OSS-Instruct-75K
public class DateUtil { public static String dateFormat = "yyyy-MM-dd HH:mm:ss";
ise-uiuc/Magicoder-OSS-Instruct-75K
defaultOption?: boolean; label: string | React.ReactElement; }
ise-uiuc/Magicoder-OSS-Instruct-75K
@section('content')
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>clementcolne/nwt-nest import { Injectable } from '@nestjs/common'; import { InjectModel } from '@nestjs/mongoose'; import { Model } from 'mongoose'; import { defaultIfEmpty, filter, from, map, Observable } from 'rxjs'; import { CreateNotificationDto } from '../dto/create-notification.dto'; import { Notifica...
ise-uiuc/Magicoder-OSS-Instruct-75K
throw new ArgumentNullException(nameof(request)); }
ise-uiuc/Magicoder-OSS-Instruct-75K
config_results = [] for sernum, device in self.labs.items(): t_u3 = self.labs[sernum] config_results.append( t_u3.configU3(LocalID=LocalID, TimerCounterConfig=TimerCounterConfig, FIOAnalog=FIOAnalog, FIODirection=FIODirection, FIOStat...
ise-uiuc/Magicoder-OSS-Instruct-75K
let mut ret = Vec::new(); if n == 1 { return ret; }
ise-uiuc/Magicoder-OSS-Instruct-75K
std::cout << "Part 2: " << part2 << '\n'; }
ise-uiuc/Magicoder-OSS-Instruct-75K
def cuda(self): super(GAN, self).cuda() self.generator.cuda() self.discriminator.cuda() def cpu(self): super(GAN, self).cpu()
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>docker/node/entrypoint.sh #!/usr/bin/env bash set -o errexit set -o pipefail exec "${@}"
ise-uiuc/Magicoder-OSS-Instruct-75K
### [Batch Normalization](../batch_norm/index.html) $$\mathcal{S}_i = \{k | k_C = i_C\}$$ The values that share the same feature channel are normalized together. ### [Layer Normalization](../layer_norm/index.html) $$\mathcal{S}_i = \{k | k_N = i_N\}$$ The values from the same sample in the batch are normalized to...
ise-uiuc/Magicoder-OSS-Instruct-75K
use Illuminate\Database\Eloquent\Model; use Spatie\Activitylog\Traits\LogsActivity; use Illuminate\Database\Eloquent\Factories\HasFactory; class ActivityLog extends Model { use HasFactory, LogsActivity;
ise-uiuc/Magicoder-OSS-Instruct-75K
double mImageHeight{0}; double mImagePieceWidth{0}; double mImagePieceHeight{0}; double mPieceXPosition{0}; double mPieceYPosition{0};
ise-uiuc/Magicoder-OSS-Instruct-75K
if not issubclass(ib_primitive_type, MetaData): parsed_retrieve_expression[ ''.join( [ k, ':', md_type.__name__, ...
ise-uiuc/Magicoder-OSS-Instruct-75K
@push('additional-css') <style type="text/css"> #submitBtnSales{ display: none; } </style>
ise-uiuc/Magicoder-OSS-Instruct-75K
return seamlessclone
ise-uiuc/Magicoder-OSS-Instruct-75K
/** Applies the given state to the given view.
ise-uiuc/Magicoder-OSS-Instruct-75K
""" Chops the message into 150-char blocks and prepends (XX/YY) Args: long_msg: the original, long message string
ise-uiuc/Magicoder-OSS-Instruct-75K
from plugin import TaskPlugin, PLUGIN_CONST, plugin_name
ise-uiuc/Magicoder-OSS-Instruct-75K
String transitionName = "movie_item_" + String.valueOf(getAdapterPosition()); movieItemClickListener.onMovieItemClick( getAdapterPosition(), movieList.get(getAdapterPosition()).getMovieId(), mImvMovieImage, transitio...
ise-uiuc/Magicoder-OSS-Instruct-75K
} }))},url="https://messengerg2c66.iranlms.ir/") def getUserInfo(self, chat_id): return loads(self.enc.decrypt(post(json={"api_version":"5","auth":self.auth,"data_enc":self.enc.encrypt(dumps({ "method":"getUserInfo", "input":{ "user_guid":chat_id }, "client":{ "app_name":"Main", "app_ve...
ise-uiuc/Magicoder-OSS-Instruct-75K
<div class="package-col col-xs-12 col-sm-4"> <div class="package purple-package"> <h3 class="package-title">Ecosystem Package</h3>
ise-uiuc/Magicoder-OSS-Instruct-75K
'profile_required' => 'Email or password is not valid ', 'phone' => 'This phone number already exists', 'old_password' => '<PASSWORD>', 'send_mail' => 'Unable to Send Email. Please try again', 'auth_key' => 'Invalid key', 'password_confirm' => '',
ise-uiuc/Magicoder-OSS-Instruct-75K
Node next = headNR.nextNR; headNR.nextNR = this; next.prevNR = this; this.nextNR = next; this.prevNR = headNR; isInNR = true; sizeNR++; } else { throw new IllegalArgumentException(); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
public static class SqlNomeMsg { public const string HaSessaoAberta = "HaSessaoAberta"; public const string NaoAtualizado = "NaoAtualizado"; public const string NaoDeletado = "NaoDeletado"; public const string NaoEncontrado = "NaoEncontrado"; public const string NaoHaSess...
ise-uiuc/Magicoder-OSS-Instruct-75K
An array of values representing the amount of votes (uints) for each vote option should be returned
ise-uiuc/Magicoder-OSS-Instruct-75K
WriteEntry(w, "GithubUser", "Github user name"); WriteEntry(w, "GithubPW", "Github password"); } if (settings.RequireLocalWebPath) { WriteEntry(w, "localWebPath", "relative path from project to working copy of website repository"); } if (settings.Options.ReleaseOnSourceForge || settings.Op...
ise-uiuc/Magicoder-OSS-Instruct-75K
cout << "#refs = " << s0.refs() << endl;
ise-uiuc/Magicoder-OSS-Instruct-75K
for i in vec![a, b, c] {
ise-uiuc/Magicoder-OSS-Instruct-75K
# app.logger = logging.getLogger(__name__) # app.logger.setLevel(level=logging.INFO) # handler = logging.FileHandler("/var/log/uwsgi/flaskapi_info.log") # handler.setLevel(logging.INFO) # formatter = logging.Formatter( # '%(asctime)s - %(name)s - %(process)d - %(thread)d - %(filename)s - %(l...
ise-uiuc/Magicoder-OSS-Instruct-75K
install_requires=[ "Flask-Session>=0.3.1", "attrs>=18.1.0", "flask-login>=0.4.1", "flask>=1.0", "gunicorn>=19.8.1", "requests>=2.19.1", ], entry_points={ "console_scripts": [ "app = lwhn_example_app_python_flask.app:app.run", ], ...
ise-uiuc/Magicoder-OSS-Instruct-75K
public IEnumerable<SubscriptionInfo> GetHandlersForEvent(string eventName, String vHost) => _handlers[new CompositeHandler{EventName = eventName, TenantVHostName = vHost}]; private void RaiseOnEventRemoved(string eventName) { var handler = OnEventRemoved; handler?.Invoke...
ise-uiuc/Magicoder-OSS-Instruct-75K
for buy, sell in zip(self.positions['buy'], self.positions['sell']): profit = self.portfolio.calculate_profit(seed, buy, sell) holding = seed - self.portfolio.buy_price(seed, buy)[1] profit_rate = round((profit / seed) * 100, 2)
ise-uiuc/Magicoder-OSS-Instruct-75K
def unique_values(pairs):
ise-uiuc/Magicoder-OSS-Instruct-75K
if not sum(s.values()): break m += 1 print("WIN" if m < 10 else "LOSE")
ise-uiuc/Magicoder-OSS-Instruct-75K
"up a freeway retaining wall." }, // Dukes/Broker 26 { new Vector3(1175.78f, 439.37f, 32.385f), "Cerveza Heights\n" + "Atop the basketball backboard in the back-\n" + "alley court." }, // Dukes/Broker 27 { ...
ise-uiuc/Magicoder-OSS-Instruct-75K
axs_periodogram_raw.semilogy(f_raw, periodogram_raw) axs_periodogram_raw.set_xlabel('frequency [Hz]', fontsize=FONT_SIZE) axs_periodogram_raw.set_ylabel('PSD [V**2/Hz]', fontsize=FONT_SIZE) axs_periodogram_raw.set_title("Periodogram raw signal", fontsize=FONT_SIZE) axs_periodogram_low.semilogy(f_ra...
ise-uiuc/Magicoder-OSS-Instruct-75K
# Check dtypes print(vdem.dtypes) df = vdem[['year', 'country_name', 'v2clacfree', 'v2cltort', 'v2clkill', 'v2clfmove', 'v2cldmovem', 'v2cldmovew', 'v2cldiscm', 'v2cldiscw', 'v2meharjrn', 'v2meslfcen', 'v2mecenefm', 'v2mecenefi']]
ise-uiuc/Magicoder-OSS-Instruct-75K
// MARK: - toMain var toMain_Called = false func toMain() { toMain_Called = true } }
ise-uiuc/Magicoder-OSS-Instruct-75K
UpSum[i][j] = UpSum[i - 1][j] + a[i][j]; long long v[Mmax]; /// v[i] = a[r1][i] + a[r1+1][i] + ... + a[r2][i] long long ans = a[1][1]; for(int r1 = 1; r1 <= n; r1++) for(int r2 = r1; r2 <= n; r2++) { for(int i = 1; i <= m; i++) v[i] = UpSum[r2][i] - UpSum[r1 ...
ise-uiuc/Magicoder-OSS-Instruct-75K
// OCToSwift // // Created by MA806P on 2019/1/22. // Copyright © 2019 myz. All rights reserved. // import Foundation class MyClass { }
ise-uiuc/Magicoder-OSS-Instruct-75K
class MissionObjectiveData(HasTunableSingletonFactory, AutoFactoryInit): MISSION_OBJECTIVE_INVALID = 0 MISSION_OBJECTIVE_NOT_ACTIVE = 1 MISSION_OBJECTIVE_ACTIVE = 2 MISSION_OBJECTIVE_COMPLETE = 3 FACTORY_TUNABLES = {'weighted_objectives':WeightedObjectives(description='\n A list of tested...
ise-uiuc/Magicoder-OSS-Instruct-75K
var trace = core.ServiceFactory.GetService(typeof(ITracingService)) as ITracingService; trace.Trace($"Delete restricted for {relatedEntities.Key.SchemaName} when trying to delete {entity.LogicalName} with id {entity.Id}"); return new De...
ise-uiuc/Magicoder-OSS-Instruct-75K
# numba.tests.test_support.main(). logging.basicConfig(level=logging.DEBUG, format="\n\033[1m%(levelname)s -- %(module)s:%(lineno)d:%(funcName)s\033[0m\n%(message)s")
ise-uiuc/Magicoder-OSS-Instruct-75K
User = get_user_model() class RecipeIngredientInline(admin.StackedInline): model = RecipeIngredient extra = 0 class RecipeAdmin(admin.ModelAdmin): inlines = [RecipeIngredientInline] list_display = ['name', 'user'] raw_id_fields = ['user']
ise-uiuc/Magicoder-OSS-Instruct-75K
* data store block */ protected DataStoreBlock datablock; public BtreeLeafNodeIterator(DataStoreBlock datablock, long totalNumberOfBlocksToScan) { this.datablock=datablock; this.totalNumberOfBlocksToScan = totalNumberOfBlocksToScan; } @Override public boo...
ise-uiuc/Magicoder-OSS-Instruct-75K
let tokens : Vec<&str> = input.split(" ").collect();
ise-uiuc/Magicoder-OSS-Instruct-75K
from typing import Optional from torch.utils.data import DataLoader
ise-uiuc/Magicoder-OSS-Instruct-75K
$q = $this->db->query("SELECT MAX(RIGHT(id_pembayaran,2)) AS idmax FROM pembayaran"); $kd = ""; //kode awal if($q->num_rows()>0){ //jika data ada foreach($q->result() as $k){ $tmp = ((int)$k->idmax)+1; //string kode diset ke integer dan ditambahkan 1 dari kode terakhir...
ise-uiuc/Magicoder-OSS-Instruct-75K
class PhotometricLossParameters(object): def __init__(self, alpha=0.85, l1_estimator='none',\ ssim_estimator='none', window=7, std=1.5, ssim_mode='gaussian'): super(PhotometricLossParameters, self).__init__() self.alpha = alpha self.l1_estimator = l1_estimator self.ss...
ise-uiuc/Magicoder-OSS-Instruct-75K
print("Recovery Gate: [" + cliffords.Gate_to_strGate(recovery_gate) +"]", file=text_file) single_gate_seq.append(recovery_gate) multi_gate_seq.append(single_gate_seq) # transpose list of lists # - (06/23/2019 Update) Fill identity gates to ...
ise-uiuc/Magicoder-OSS-Instruct-75K
all_sets = [METAL_CONTAINING, STABILIZERS, BUFFERS, COFACTORS, COVALENT_MODS, \ FRAGMENTS, EXCIPIENTS, JUNK, DO_NOT_CALL] ALL_GROUPS = {item for subset in all_sets for item in subset}
ise-uiuc/Magicoder-OSS-Instruct-75K
assert a_sm.requires_grad assert np.allclose( a_sm.tolist(), [[0.2447, 0.6652, 0.09], [0.1185, 0.0059, 0.8756]], atol=1e-4,
ise-uiuc/Magicoder-OSS-Instruct-75K
n = int(input()) arr = [list(map(int,input().split())) for i in range(n)] ans = [0]*n ans[0] = int(pow((arr[0][1]*arr[0][2])//arr[1][2], 0.5)) for i in range(1,n): ans[i]=(arr[0][i]//ans[0]) print(*ans)
ise-uiuc/Magicoder-OSS-Instruct-75K
assert sound_file[0] >= 0 assert sound_file[1] >= 0
ise-uiuc/Magicoder-OSS-Instruct-75K
np.array: Array of indexes representing the city Tour. float: Time to complete the algorithm. """ t0 = time() Tour = [start] dist_matrix = dist_matrix.astype(float) # Making the distance to go to the same
ise-uiuc/Magicoder-OSS-Instruct-75K
get { return "Missing Id declaration"; } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
The point is added within an hypercube around the max error point. The size of the hypercube is equal to the distance with the nearest point.
ise-uiuc/Magicoder-OSS-Instruct-75K
salesReceipt(storeID=27, saleDate='11-13-2017', saleAmount=84.98, totalGuests=5)
ise-uiuc/Magicoder-OSS-Instruct-75K
return self.parent.request( path="/financialTransactions", method="GET", query=query, auth=kwars.get("auth"), )
ise-uiuc/Magicoder-OSS-Instruct-75K
@replication_record_id.setter def replication_record_id(self, replication_record_id): """Sets the replication_record_id of this BackupReplicateRespBody. 复制记录ID
ise-uiuc/Magicoder-OSS-Instruct-75K
.do(onNext: { (value) in pauserSubject.onNext((value % 2) == 0) }) .pausable(afterCount: 6, withPauser: pauserSubject) .toBlocking().toArray() // Then: the pauser has begun to pause the sequence only after 6 first values and // then paused...
ise-uiuc/Magicoder-OSS-Instruct-75K
public void sleep() throws InterruptedException { Thread.sleep(2_000); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
print('Index: ', result[0][0], ' is the best')
ise-uiuc/Magicoder-OSS-Instruct-75K
engine = pyttsx3.init()
ise-uiuc/Magicoder-OSS-Instruct-75K
make -j${CPU_COUNT} make install
ise-uiuc/Magicoder-OSS-Instruct-75K
// return [
ise-uiuc/Magicoder-OSS-Instruct-75K
<gh_stars>0 import { ReactEventHandler, KeyboardEventHandler, KeyboardEvent, HTMLProps, FC, createElement } from 'react' function createHandleKeyPress(onClick: ReactEventHandler, onKeyPress?: KeyboardEventHandler): KeyboardEventHandler { return function handleKeyPress(event: KeyboardEvent) {
ise-uiuc/Magicoder-OSS-Instruct-75K
matches_solution = False
ise-uiuc/Magicoder-OSS-Instruct-75K
# upload preview url = '%sapi/previews?key=%s' % (host, key) with open(previewfile, 'rb') as filebytes: result = requests.post(url, files={"File": filebytes}, verify=connector.ssl_verify if connector else True) result.raise_for_status() previewid = result....
ise-uiuc/Magicoder-OSS-Instruct-75K
console.log('[SETUP] Start...'); } // add databases console.log('[SETUP] Create memory [system, rooms, spawns, flags and creeps]!'); Memory.system = {}; Memory.flags = {}; Memory.rooms = {}; Memory.spawns = {}; Memory.creeps = {}; // set config console.log('[SETUP] ...
ise-uiuc/Magicoder-OSS-Instruct-75K
/** * @inheritdoc */
ise-uiuc/Magicoder-OSS-Instruct-75K
recent_day[T[i]] = i return warmer_day
ise-uiuc/Magicoder-OSS-Instruct-75K
} #[derive(Debug)] struct MyType; impl A for MyType {
ise-uiuc/Magicoder-OSS-Instruct-75K
docker build -t anoopnair/storm-supervisor_debian:0.10.0 .
ise-uiuc/Magicoder-OSS-Instruct-75K
protected void doDecode(MessageContext messageContext) throws MessageDecodingException { if (!(messageContext instanceof SAMLMessageContext)) { log.error("Invalid message context type, this decoder only support SAMLMessageContext"); throw new MessageDecodingException( ...
ise-uiuc/Magicoder-OSS-Instruct-75K
#%% parameter figuration num_x = 10 num_y = 100 num_z = 1000 num_pixel = 100 size_grid = 10 dimension = 10 min_dist_x = 0 variance_x = 100 variance_yz = 100 #%% Generate data x = generate_centroids(num_x,dimension,variance_x,min_dist_x)
ise-uiuc/Magicoder-OSS-Instruct-75K
public static TEST = /webfont\.(ttf|otf|eot|svg|woff(2)?)(\?[a-z0-9]+)?$/ public constructor(outputDirectory: string, excludeNodeModules: boolean = false) {
ise-uiuc/Magicoder-OSS-Instruct-75K
parser = jp.JavaParser(stream) return parser.compilationUnit() def _parse_cpp(self): raise NotImplementedError() class TemplateCodeRemover: @staticmethod def clean_file(cur_path, new_path, quiet=True, log_msg=''): if not quiet:
ise-uiuc/Magicoder-OSS-Instruct-75K
-l $trials -r $key -p ${p[$i]} | awk '!/VAST/ && !/Both/' > ${results}_$name & done wait
ise-uiuc/Magicoder-OSS-Instruct-75K
Quaternion randomRotation = Random.rotation; // Create the giblet and store it in a variable GameObject createdGiblet = Instantiate(giblets[gibletIndex], transform.position, randomRotation, null); Rigidbody gibletRigidbody = createdGiblet.GetComponent<Rigidbody>(); if (gibletRi...
ise-uiuc/Magicoder-OSS-Instruct-75K
<gh_stars>1000+ def foo(a, b): a + b
ise-uiuc/Magicoder-OSS-Instruct-75K
func extractColorList() -> [(String, String)] { var colors = [String: Int]() let regexString = "<font color=\\\"#+([.0-9a-zA-z]+)\\\">.*?</font>" var counter = 0 var index = 1 let maxCounter = 2 for capture in (self =~ Regex(regexString)).captures { // ca...
ise-uiuc/Magicoder-OSS-Instruct-75K
def execute(self): self.logger.info('Hello world! %r', self.kwargs) class HelloWorldAsyncAction(ievv_batchframework.Action):
ise-uiuc/Magicoder-OSS-Instruct-75K
sess = tf.InteractiveSession() # 加载模型进当前会话 saver = tf.train.Saver()
ise-uiuc/Magicoder-OSS-Instruct-75K
Keyword Arguments: Limit (int): Number of retries. limit >= 0, 0 means no retries backoff_ms (int): Milliseconds to backoff. retry_on_timeouts: """ RetryOptions = namedtuple("RetryOptions", ["limit", "backoff_ms", "retry_on_timeouts"])
ise-uiuc/Magicoder-OSS-Instruct-75K
public async onlineCron() { console.log("online cron", Date.now())
ise-uiuc/Magicoder-OSS-Instruct-75K
while counter < total_frames: start_index = counter if counter + num_frames_per_iteration > total_frames: end_index = total_frames else: end_index = counter + num_frames_per_iteration area_movement_counter = get_centroid_area_history(files[...
ise-uiuc/Magicoder-OSS-Instruct-75K
admin.site.register(Admin) admin.site.register(Profile) # admin.site.register(Bus) # admin.site.register(Book)
ise-uiuc/Magicoder-OSS-Instruct-75K
S: Into<String>, {
ise-uiuc/Magicoder-OSS-Instruct-75K