seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
def test_find(self):
response = getattr(self, self.project_client_attr).collections.find()
response = self.convert_generator_to_list(response)
users_collection = [i for i in response if i['_id'] == '_users']
assert_that(users_collection, is_not(equal_to([])))
def test_find__filt... | ise-uiuc/Magicoder-OSS-Instruct-75K |
for line in file:
person = line.strip()
people[person] = people.get(person, 0) + 1
with open('tweets.txt', 'a') as file:
for i in people:
file.write(str(i) + ': ' + str(people[i]) + '\n')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
try:
from newrelic.build import build_number
except ImportError:
build_number = 0
version_info = list(map(int, version.split('.'))) + [build_number]
version = '.'.join(map(str, version_info))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
assert_eq!(Script::Han, fixed_script('ー'));
assert_eq!(Script::Latin, fixed_script('a'));
assert_eq!(Script::Latin, fixed_script('A'));
assert_eq!(Script::Common, fixed_script('0'));
assert_eq!(Script::Common, fixed_script('$'));
assert_eq!(Script::Common, fixed_script('@... | ise-uiuc/Magicoder-OSS-Instruct-75K |
[980, 720],
[300, 0],
[980, 0]])
m = cv2.getPerspectiveTransform(src, dst)
m_inv = cv2.getPerspectiveTransform(dst, src)
warped = cv2.warpPerspective(img, m, img_size, flags=cv2.INTER_LINEAR)
unwarped = cv2.warpPerspective(warped, m_inv, (warped.shape[1], warped.shape[0]), f... | ise-uiuc/Magicoder-OSS-Instruct-75K |
def guess_extension(mime_type):
"""Given a MIME type string, return a suggested file extension."""
if not mimetypes.inited:
mimetypes.init()
extension = mimetypes.guess_extension(mime_type)
if extension and extension[0] == ".":
extension = extension[1:]
return extension
class JSON... | ise-uiuc/Magicoder-OSS-Instruct-75K |
override func setUpWithError() throws {
// Put setup code here. This method is called before the invocation of each test method in the class.
}
override func tearDownWithError() throws {
// Put teardown code here. This method is called after the invocation of each test method in the class.... | ise-uiuc/Magicoder-OSS-Instruct-75K |
the value leafpred(leaf) will be assigned to leafcache[leaf].
This capability is useful to avoid redundant match tests for
leaves added in "multibox" mode and guarantees that
leafpred(leaf) will be evaluated at most once for each leaf.
The return value will be a dictionary mapping all leaf objects
that mat... | ise-uiuc/Magicoder-OSS-Instruct-75K |
import csv # DB
import socket # For server stuff
import secrets # User-ID
import os # Deleting files
db_fixed_name = ''
user_token = ''
quit = False
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return termsAcceptanceViewController
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
copy = copy // 10
return x == reverse
def isPalindrome_using_str(self, x: int) -> bool:
return str(x) == str(x)[::-1]
if __name__ == '__main__':
x = 121
output = Solution().isPalindrome(x)
print(f'x: {x}\toutput: {output}')
x = -121
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def export(exporter_class, format='xlsx', **kwargs):
"""
Generates the export.
Support for django-tenant-schemas is built in.
"""
tenant = kwargs.pop('tenant', None)
if tenant is not None:
logger.debug('Settings tenant to %s' % tenant)
from django.db import connection
| ise-uiuc/Magicoder-OSS-Instruct-75K |
private let lck = SDConditionLock()
private var storage = Atomic<Result?>(value: nil)
private init(queue: DispatchQueue) {
self.queue = queue
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
# ================================================================== OrderedDict
# This is only an hack until we drop support for python version < 2.7
class OrderedDict(dict):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return float(current)
def set_grads(model: torch.nn.Module, trainable_layers: List[str]):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#establish cookies
sess = requests.Session()
sess.get("http://www.britishairways.com")
params = {
"eId":"199001",
"marketingAirline": airline,
"tier": passengerTier,
"departureAirport":fromLocation,
"arrivalAirport":toLocation,
"airlineClass":fareClass,
}
url = "http://www.britishairwa... | ise-uiuc/Magicoder-OSS-Instruct-75K |
{
public class Bad {
[JsonPropertyName("attributes")]
public Attributes8 Attributes { get; set; }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#31/01/18
#I want to give every spawned NPC a use, and not do what most servers have with useless non functioning NPCs.
#Even small things such as NPC dialogues can help make Runefate more rounded and enjoyable.
npc_ids = [3078, 3079]
dialogue_ids = [7502, 7504, 7506, 7508]
def first_click_npc_3078(player):
pla... | ise-uiuc/Magicoder-OSS-Instruct-75K |
target_path = ["mongodata:/data/db"]
def docker_move_subdag(host_top_dir, input_path, output_path):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#!/bin/bash
export EXTENSION=jpg
export TARGET_EXTENSION=jpg
export EXEC_PATH="runnables/jpgshrink.sh"
export QUAL_ARG=70
bash oneshot_generic.sh
| ise-uiuc/Magicoder-OSS-Instruct-75K |
namespace PadawanEquipment
{
class Program
{
static void Main(string[] args)
{
double amountOfMoney = double.Parse(Console.ReadLine());
int studentsCount = int.Parse(Console.ReadLine());
double priceOFLightsaber = double.Parse(Console.ReadLine());
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
}));
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
background_name = dd.get_sample_name(backgrounds[0]) if backgrounds else "flat"
background_cnn = os.path.join(raw_work_dir, "%s_background.cnn" % (background_name))
ckouts = []
for cur_input in inputs:
cur_raw_work_dir = utils.safe_makedir(os.path.join(_sv_workdir(cur_input), "raw"))
out... | ise-uiuc/Magicoder-OSS-Instruct-75K |
# The stack to keep track of opening brackets.
stack = []
# Hash map for keeping track of mappings. This keeps the code very clean.
# Also makes adding more types of parenthesis easier
mapping = {")": "(", "}": "{", "]": "["}
# For every bracket in the expression.
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
/**
* Filter a track from recording.
* @param track info about the track: { title: "track title" }
* @return truthy to record the track, falsy to skip the track
*/
filter: function(track) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return argumentsMatched
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
echo "Removed eoslocal-keosd-data and wallet_password.txt file"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import string
import warnings
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.metrics.pairwise import cosine_similarity
from textblob import TextBlob
# Setup
warnings.filterwarnings('ignore') # Ignore warning messages
f = open('corpus_linguistics.txt', 'r') # opening the corpus
text = f.read... | ise-uiuc/Magicoder-OSS-Instruct-75K |
_logger = LoggingDescriptor(name=__name__)
def find_free_port() -> int:
with closing(socket.socket(socket.AF_INET, socket.SOCK_STREAM)) as s:
s.bind(("127.0.0.1", 0))
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
return cast(int, s.getsockname()[1])
def check_free_port(port: i... | ise-uiuc/Magicoder-OSS-Instruct-75K |
using Newtonsoft.Json;
namespace ParksApi.Models
{
public class Fee
{
public int FeeId { get; set; }
public int ParkId { get; set; }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for user in data:
user_scores[user['handle']] = int(user['score'])
#If a user with this handle does not exist
if users.find({'handle': user['handle']}).count() == 0:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let appModel = AppModel.current
iconView.image = appModel.currentWallet!.icon.image
nameLabel.text = appModel.currentWallet!.name
addressLabel.text = appModel.currentWallet!.address
let walletAddress = appModel.currentWallet!.address
DispatchQueue.global().async {
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
hotel::init();
let timerhs = {
use hotel::pmu::*;
use hotel::timeus::Timeus;
Clock::new(PeripheralClock::Bank1(PeripheralClock1::TimeUs0Timer)).enable();
Clock::new(PeripheralClock::Bank1(PeripheralClock1::TimeLs0)).enable();
let timer = Timeus::new(0);
timer
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
from django import template
import mistune
register = template.Library()
@register.filter
def markdown(value):
markdown = mistune.Markdown()
return markdown(value)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def distance(o1, o2):
(x1,y1,w1,h1) = o1
(x2,y2,w2,h2) = o2
c1 = (x1+w1/2,y1+h1/2)
c2 = (x2+w2/2,y2+h2/2)
return np.hypot(c1[0]-c2[0],c1[1]-c2[1])
cv2.namedWindow("preview")
cv2.namedWindow("preview2")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
return true;
}
}
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# cmdline.execute(["scrapy","crawl","qsbk_spider"]) | ise-uiuc/Magicoder-OSS-Instruct-75K |
private class DisposedActionQueueState : ActionQueueState
{
/// <summary>
/// Initializes a new instance of the <see cref="ActionQueueState.DisposedActionQueueState" /> class.
/// </summary>
/// <param name="queue">The queue.</param... | ise-uiuc/Magicoder-OSS-Instruct-75K |
// Copyright © 2020 Muhammad Abdullah Al Mamun. All rights reserved.
//
import UIKit
class ViewController: UIViewController {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
##-------------------------------##
## Compile ##
##-------------------------------##
## Imports
from pathlib import Path
from typing import Any, TextIO
from frontend.token import Token
| ise-uiuc/Magicoder-OSS-Instruct-75K |
debug=debug)
try:
pixel.set(led_i, int(color, 16))
time.sleep(sec)
finally:
pixel.end()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
j--;
if (j == 0) // nice! then this was the last char and was a digit
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Some(*l)
} else {
None
| ise-uiuc/Magicoder-OSS-Instruct-75K |
wget -qO /dev/null "$MainURL/$tmpKernelVer"
[ $? -ne '0' ] && echo 'Please input a vaild kernel version! exp: v4.11.9.' && exit 1
KernelVer="$tmpKernelVer"
}
[ -z "$tmpKernelVer" ] && {
KernelVerBIG="$(wget -qO- "$MainURL" |awk -F '/">|href="' '{print $2}' |sed '/rc/d;/^$/d' |tail -n1)"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub title: String,
pub summary: String,
pub content: String,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
socat TCP-LISTEN:25,fork TCP:127.0.0.1:1025 &
socat TCP-LISTEN:143,fork TCP:127.0.0.1:1143 &
# A new one is created each time the container is starting. It does not seem to create any issue
gpg --no-options --generate-key --batch /protonmail/gpgparams
pass init pass-key
set +o errexit
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from django.db import models
# Generic type for a Django model
# Reference: https://mypy.readthedocs.io/en/stable/kinds_of_types.html#the-type-of-class-objects
DjangoModelType = TypeVar('DjangoModelType', bound=models.Model)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from chokozainerrl.experiments.train_agent import train_agent # NOQA
from chokozainerrl.experiments.train_agent import train_agent_with_evaluation # NOQA
from chokozainerrl.experiments.train_agent_async import train_agent_async # NOQA
from chokozainerrl.experiments.train_agent_batch import train_agent_batch # NOQA
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
return True
if not p or not q:
return False
return p.val == q.val and self.is_same_tree(p.left, q.left) and self.is_same_tree(p.right, q.right)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<titres>Noter les élèves</titres></br></br>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Cerr<<" f("<<i<<","<<j<<")= "<<PolyT_(i,j);
}
Cerr<<finl;
}
}
if (MMole_lu==-1)
{
Cerr<<"ERREUR : on attendait la definition de la masse molaire (masse_molaire m)"<<finl;
abort();
}
return is;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
a=float(input("Presupuesto anual al Hospital rural "))
b=a*0.40
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'Invalid timezone {}'.format(tz), 404)
date = datetime.datetime(year, month, day, hour, minute, second,
tzinfo=timezone).astimezone(timezone.utc)
try:
return flask.jsonify(get_highlights(g.conn, date))
except StopIteration:
return flask.make_respo... | ise-uiuc/Magicoder-OSS-Instruct-75K |
using Silk.NET.Core.Attributes;
#pragma warning disable 1591
namespace Silk.NET.Assimp
{
[NativeName("Name", "aiDefaultLogStream")]
public enum DefaultLogStream : int
{
[NativeName("Name", "aiDefaultLogStream_FILE")]
DefaultLogStreamFile = 0x1,
[NativeName("Name", "aiDefaultLogStre... | ise-uiuc/Magicoder-OSS-Instruct-75K |
from django.http import HttpResponse
from .helpers import get_translations
js_catalog_template = r"""
{% autoescape off %}
(function (globals) {
String.prototype.toTitleCase = function() {
return this.replace(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Price(vec![
(ResourceType::Feathers, 500 * factor),
(ResourceType::Sticks, 350 * factor),
(ResourceType::Logs, 150 * factor),
])
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
name: The name of the repository that should be checked.
args: A dictionary that contains "omit_...": bool pairs.
Returns:
boolean indicating whether the repository should be created.
"""
key = "omit_" + name
| ise-uiuc/Magicoder-OSS-Instruct-75K |
f.showgraph()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.scaler = StandardScaler(**params)
def fit(self, X, y=None):
X = numpy.asarray(X)
self.scaler.fit(X[:, :self.n_numeric], y)
return self
def transform(self, X):
X = numpy.asarray(X)
X_head = self.scaler.transform(X[:, :self.n_numeric])
return numpy.co... | ise-uiuc/Magicoder-OSS-Instruct-75K |
"xse_resnext50_deeper",
"squeezenet1_1",
"densenet121",
"densenet201",
"vgg11_bn",
"vgg19_bn",
"alexnet",
]
for dataset in ["corrected-wander-full"]:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
optimizer = dict(lr=0.01)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
return 0;
};
};
if (list && list.length && sortState.star) {
newList = list.sort(numSort(sortState.star, "stars"))
} else if (list && list.length && sortState.updated) {
newList = list.sort(numSort(sortState.updated, "updated_unix"))
}
if (activeLa... | ise-uiuc/Magicoder-OSS-Instruct-75K |
al_unit.health / al_unit.health_max
) # health
if (
self.map_type in ["MMM", "GMMM"]
and al_unit.unit_type == self.medivac_id
):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import json
import threading
from queue import Queue, Empty
try:
from queue import SimpleQueue
except ImportError: # Python 3.6 lacks SimpleQueue
SimpleQueue = Queue
import click
import dns.resolver
import dns.inet
from .dsscanner import do_cds_scan
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from reviewboard.webapi.resources import resources
from reviewboard.webapi.resources.base_patched_file import \
BasePatchedFileResource
class DraftPatchedFileResource(BasePatchedFileResource):
"""Provides the patched file corresponding to a draft file diff."""
added_in = '2.0.4'
name = 'draft_patche... | ise-uiuc/Magicoder-OSS-Instruct-75K |
echo "[WormholeServer] is starting..."
java -DWORMHOLE_HOME=$WORMHOLE_HOME -cp $WORMHOLE_HOME/lib/wormhole-rider-server_1.3-0.4.1-SNAPSHOTS.jar:$WORMHOLE_HOME/lib/* edp.rider.RiderStarter & | ise-uiuc/Magicoder-OSS-Instruct-75K |
]
// MARK: Actual Request tests
func testGetStarredRepositories() {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{{ $clientsItem->moldPostalcode() }} {{ $clientsItem->address1 }}{{ $clientsItem->address2 }}{{ $clientsItem->address3 }}</p><br>
<br>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if main_content_type == 'time':
main_content = time.time()
imported_request_path = ''
if 'path' in request.GET:
imported_request_path = request.GET['path']
imported_request_type = ''
if 'imported' in request.GET:
imported_request_type = request.GET['imported']
imported... | ise-uiuc/Magicoder-OSS-Instruct-75K |
@section('content')
@foreach($groups as $key => $val)
<div style="border: 1px solid #888888">
{{$val->id}} <br>
{{$val->name}} <br>
{{$val->screen_name}}
</div>
@endforeach
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using System.Collections.ObjectModel;
using System.Linq;
using System.Windows.Threading;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.silence_cols = []
self.select_all = None
self.max_num = None
self.ops = []
def fit(self, df, degree=1, target = None, df_feature_type = None, silence_cols = [], select_all = True,
max_num = None):
assert(degree == 1 or degree == 2)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class DataSetType(Enum):
TENSOR_PADDED_SEQ = 'tps'
BOW = 'bow'
RAW = 'raw'
TRANSFORMERS = 'transformers'
@staticmethod
def from_str(enum_str):
if enum_str == 'tps':
return DataSetType.TENSOR_PADDED_SEQ
elif enum_str == 'bow':
return DataSetType.BOW
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
)
clabel = var_units[varname]
if cmap is None:
cmap = color_maps[varname]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
text = response.get_data(as_text=True)
assert (response.status_code == 500 and text == 'Any error') or (response.status_code == 200 and text == 'Payment is processed') | ise-uiuc/Magicoder-OSS-Instruct-75K |
// print(weights)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
xterm -T 'ACG port /dev/ttyUSB0' -e python ./multiselect.py -s 9600 -l /dev/ttyUSB0 -R RFIDIOt.rfidiot.READER_ACG &
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from .basic import Constant, NormalRandom, OrnsteinUhlenbeck, UniformRandom
__all__ = [Agent, Constant, NormalRandom, OrnsteinUhlenbeck, UniformRandom]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
run(80*ms)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def cross_entropy(y, y_, out, stream=None):
assert isinstance(y, _nd.NDArray)
assert isinstance(y_, _nd.NDArray)
assert isinstance(out, _nd.NDArray)
_LIB.DLGpuCrossEntropy(
y.handle, y_.handle, out.handle, stream.handle if stream else None)
def cross_entropy_gradient(grad_arr, y_arr, label, ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
<a href="@Url.Action("Edit",new { id=item.Id} )" class=" " style="font-size:20px; color:lightseagreen; display:inline-block; margin-right:15px;" data-toggle="tooltip" title="Edit">
<i class="fas fa-pencil-alt"></i>
@*<span>
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
const portfolio = computed(
(): UserPortfolioData => {
if (!portfolioQuery.data.value?.portfolio) {
return {
totalValue: 0,
timestamp: 0,
tokens: [],
totalSwapFees: 0,
totalSwapVolume: 0,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
- past mode can only operate with a user account.
- past mode deals with all existing messages.
"""
import asyncio
import logging
import time
from telethon import TelegramClient
from telethon.errors.rpcerrorlist import FloodWaitError
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public static boolean ifExists(String filePath) {
File file = new File(filePath);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// actual diagonal swap
if (team::current_team()->size() == 1) {
myOut.copy(myResults0);
} else {
# ifdef PUSH_DATA
output.allArrays[transposeProc].copy(myResults0);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from digesters.reddit.reddit_notification_digester import RedditNotificationDigester
from digesters.stackexchange.stack_exchange_notification_digester import StackExchangeNotificationDigester
from metastore import MetaStore
from digesters.charges.charge_card_digester import ChargeCardDigester
# This file - my_digeste... | ise-uiuc/Magicoder-OSS-Instruct-75K |
import { LocaleDataType } from 'src/types';
export default interface InfoBlockProps {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
extension UITextView {
func range(_ textRange: UITextRange) -> NSRange {
let start = offset(from: beginningOfDocument, to: textRange.start)
let end = offset(from: textRange.start, to: textRange.end)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>sinoui/icons<filename>src/ScreenRotationSharp.tsx
import React from 'react';
| ise-uiuc/Magicoder-OSS-Instruct-75K |
declarations: publicComponents,
})
export class VirtualScrollModule { }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
text_residenza.setBounds(320, 230, 80, 20);
Label lbl_nazionalita = new Label(shell, SWT.SHADOW_IN);
lbl_nazionalita.setOrientation(SWT.LEFT_TO_RIGHT);
lbl_nazionalita.setBackground(SWTResourceManager.getColor(SWT.COLOR_LINK_FOREGROUND));
lbl_nazionalita.setForeground(SWTResourceManager.getColor(SWT.COLOR_WH... | ise-uiuc/Magicoder-OSS-Instruct-75K |
return ans
def isInside(self, i, j, row, col):
if 0 <= i < row and 0 <= j < col:
return True
return False
def numIslands(self, grid: List[List[str]]) -> int:
stack = []
ans = 0
row, col = len(grid), len(grid[0])
directions = [[1, 0], [-1, 0],... | ise-uiuc/Magicoder-OSS-Instruct-75K |
galspec2d_line2 = galspec2d_line1.copy()
galspec2d_line2[xcen+17:xcen+24,ycen-3:ycen+4] += gauss2d * 35 # 2D emission line
galspec1d_line2 = galspec1d_line1.copy()
galspec1d_line2[xcen+17:xcen+24] += gauss1d * 10 # CIII] 1D doublet emission line
noisegal = np.random.uniform(-1,1,(50,35)) # noise for photometry of 'gal... | ise-uiuc/Magicoder-OSS-Instruct-75K |
<filename>utils/checks.py
def no_delete(cmd):
cmd._delete_ctx = False
return cmd
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from django.contrib.auth.models import User
from .models import Employee
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Burgers1d:
def __init__(self, Ncell):
self.mu_ = np.array([5., 0.02, 0.02])
self.xL_ = 0.
self.xR_ = 100.
self.Ncell_ = Ncell
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ib_module_t m = *IB_MODULE_SYM(m_engine.ib());
EXPECT_EQ(s_module_name, m.name);
EXPECT_EQ(std::string(__FILE__), m.filename);
EXPECT_EQ(m_engine.ib(), m.ib);
ib_status_t rc;
s_delegate_initialized = false;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
flutter build apk --${build_type}
envman add --key BITRISE_APK_PATH --value "`pwd`/build/app/outputs/apk/app.apk"
exit 0
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#P.apply_async(extract_tag,args=(line, out,))
#P.close()
#P.join()
# Checks if insam is a string.
if isinstance(insam, str):
insam.close()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
const firstElem = elemsInSubSection[0];
const {shortLabel, longLabel, dropdownLabel, dropdownSearchString, dropdownValue} = firstElem;
const groupedByYear = (groupByMapObjectProp as any)(elemsInSubSection, 'year');
const perYearPerRibbonData: IDatumPerYearPerRibbonWithoutFinalVal... | 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.