seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
mu = output['x'][2]
P_gauss = A * gaussian(r, sigma, mu)
x_fit = {}
x_fit['A'] = A
x_fit['sigma'] = sigma
x_fit['mu'] = mu
| ise-uiuc/Magicoder-OSS-Instruct-75K |
GCP_PROJECT_ID = os.environ.get("GCP_PROJECT_ID", "example-project")
GCR_FLEX_TEMPLATE_IMAGE = f"gcr.io/{GCP_PROJECT_ID}/samples-dataflow-streaming-beam-sql:latest"
# https://github.com/GoogleCloudPlatform/java-docs-samples/tree/954553c/dataflow/flex-templates/streaming_beam_sql
GCS_TEMPLATE_PARTS = urlparse(GCS_FLE... | ise-uiuc/Magicoder-OSS-Instruct-75K |
mod disassembler;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
vm_name=$(mysql -h $1 --user=root --skip-column-names -U cloud -e "select v.name from vm_instance v, user_vm u where v.id=u.id and u.account_id=$i limit 1,1;")
created_time=$(mysql -h $1 --user=root --skip-column-names -U cloud_usage -e "select TIME_TO_SEC(created) from event where description like '%$vm_name%' and typ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
$.post('main/update_expenses',{id: id,date: date, amount: amount, from: from, to:to, remarks:remarks},function(data){
if(data==true){
alertify.success("Updated successfully");
$('#myModal').modal('hide');
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if not user.is_authenticated:
raise ClientError("USER_HAS_TO_LOGIN")
try:
game = Game.objects.get(pk=game_id)
except Game.DoesNotExist:
raise ClientError("GAME_INVALID")
return game | ise-uiuc/Magicoder-OSS-Instruct-75K |
package co.cask.cdap.etl.spark.streaming.function;
import co.cask.cdap.api.metrics.Metrics;
import co.cask.cdap.api.preview.DataTracer;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
obj = {}
obj['nbr'] = int(node.get('classNbr'))
obj['sec'] = node.get('section')
# obj['loc'] = node.get('location')
# obj['campus'] = node.get('campus')
set_if_truthy(obj, 'topic', node.get('topicDescription'))
self.locations.add((node.get('location'), node.get(... | ise-uiuc/Magicoder-OSS-Instruct-75K |
public Letter(
string id,
string description,
object to,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
res = rekognition_client.detect_labels(Image={
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// Using a device ID, returns a DeviceEventsResponse object containing an array of events for the device.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
timestamp = datetime.datetime.now().strftime(FORMAT)
db.add(winner, loser, score[0], score[1], timestamp)
print "I added the match {} versus {}: score: {}".format(winner,
loser,
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
super(IPBlacklistCB, self).__init__(*args, **kwargs)
self.networks = Radix(None)
for blacklist in self.data["values"]:
self.networks.insert(blacklist, '/' in blacklist)
LOGGER.debug("Blacklisted IP networks: %s", self.networks)
def pre(self, original, *args, **kwargs):
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>0bp/sonos
<?php
namespace duncan3dc\SonosTests;
use duncan3dc\DomParser\XmlParser;
use duncan3dc\Sonos\Controller;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#
# Usually camera coordinate system is represented in the format that
# x: right y: down z: forward
# however, in 'camera_track.txt', they are written in
# x: right y: up z: backward
#
# This means the camera coordinate system is
# rotated 180 degrees around the x-axis from the wo... | ise-uiuc/Magicoder-OSS-Instruct-75K |
Numpy
"""
import numpy as np
# Crear array con la produccion de cada gen para cada temperatura
production = np.array([("Gen1", 5, 3), ("Gen2", 11, 7),
("Gen3", 4, 9), ("Gen4", 2, 6)],
dtype=[("name", (np.str_, 10)),
("production_cond1", ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
'the', 'same', 'as', 'the', 'rest']),
['ain\'t', 'as', 'code', 'rest', 'same', 'the', 'wars'])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.main = main
self.name = folder
| ise-uiuc/Magicoder-OSS-Instruct-75K |
float zoom_y = 1;
projection_matrix_ = Ogre::Matrix4::ZERO;
projection_matrix_[0][0] = 2.0 * fx / (double)image_width_ * zoom_x;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@app.route('/replace_chain', methods=['GET'])
def replace_chain():
is_chain_replaced = need_coin.replace_chain()
print("Chain replaced flag.."+str(is_chain_replaced))
if is_chain_replaced:
response = {'message': 'Applied the consensus protocol to syncing the chain in the network',
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# Use an older version because
# https://apple.stackexchange.com/questions/327817/git-completion-bash-producing-error-on-macos-sierra-10-12-6
LINK="https://raw.githubusercontent.com/git/git/v2.17.1/contrib/completion/git-completion.bash"
# Install Git Tab Complet... | ise-uiuc/Magicoder-OSS-Instruct-75K |
## nodejs
curl -fsSL https://deb.nodesource.com/setup_current.x | sudo -E bash -
sudo apt-get install -y nodejs
## lampp
sudo apt-get update && sudo apt-get install apache2
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return ((_lfsr(l_index) & _low_bitmask) << 16) | ((_lfsr(h_index) & _high_bitmask) >> 15)
def _bit_reconstruction_and_f(xor_x4=False) -> Union[int, None]:
nonlocal lfsr, lfsr_curr_ptr, r1, r2
w_ = ((_get_h_l(15, 14) ^ r1) + r2) & _2_power_32_minus_1
w1 = r1 + _get_l_h(11, 9)
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
expect(query.run()).toHaveLength(1);
expect(query.run()).toHaveLength(1);
expect(query.run()).toHaveLength(1);
expect(query.run()).toHaveLength(1);
expect(query.run()).toHaveLength(0);
});
test('as/merge', () => {
const g = odinGraph();
// Queries all pairs of [parent, child]
const query = g.v().as('p... | ise-uiuc/Magicoder-OSS-Instruct-75K |
std::io::stdin().read_line(&mut return_).ok();
return_.pop();
return_
}
//Sieve of Eratosthenes
fn sieve_of_eratosthenes(n: usize) -> Vec<bool> {
let mut vec: Vec<bool> = vec![true; n];
vec[0] = false;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""Runway providers."""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if (res is Task<T> asyncT) {
alreadyRunningTask = asyncT;
WaitForTaskSuccess(asyncT, originTrace, tcs).ContinueWithSameContext(wasSuccess => {
if (wasSuccess.Result) { tcs.TrySetResult(asyncT.Result); }
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
height = len(image_array)
width = len(image_array[0])
grey_step = 256 // gradation_number
for i in range(0, height, pixel_size):
for j in range(0, width, pixel_size):
summa = np.sum(image_array[i:i + pixel_size, j:j + pixel_size])
summa = int(summa // 3 // pixel_size // p... | ise-uiuc/Magicoder-OSS-Instruct-75K |
dct = dct[key]
except (KeyError, TypeError):
return None
return dct
def extract(string, pattern):
found = re.search(pattern, string)
if found:
return found.group(0)
else:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
def test__generate_database_config(self) -> None:
self.harness.charm._stored.database = {
"host": "localhost",
"database": "MYSQL",
"user": "u7ser",
"password": "password",
}
result = self.harness.charm._generate_database_config()
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
# TODO: add phrases here for eas of use in multiple test suites
| ise-uiuc/Magicoder-OSS-Instruct-75K |
printer.justify("C")
printer.setSize("L")
printer.println("Heute")
printer.println("in der Mensa")
printer.setSize("S")
printer.justify("L")
for char in re.content:
if char == ord("\n"):
printer.underlineOff()
if char == or... | ise-uiuc/Magicoder-OSS-Instruct-75K |
public static var imageAlpha: CGFloat = 0.33
public static var menuItemsSpacing: CGFloat = 4
public static var menuItemTextMargin: CGFloat = 40
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if (filme.getEstoque() == 0) {
throw new RuntimeException("filme sem estoque");
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using osl::Thread::join;
public:
/**
@param xSmtpService
[in] a reference to a mail server. A user must be
connected to the mail server otherwise errors occur
during the delivery of mail messages.
@throws ::com::sun::star::uno::RuntimeExc... | ise-uiuc/Magicoder-OSS-Instruct-75K |
client = ClientReplicationStreamProtocol(
worker_hs,
"client",
"test",
self.clock,
repl_handler,
)
server = self.server_factory.buildProtocol(
IPv4Address("TCP", "127.0.0.1", 0)
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
t_peaks.append(t_peak)
t_halfs.append(t_half - t_peak)
xs.append(x)
ys.append(y)
t = np.linspace(0, 2.0, 10000)
crf = -np.exp(-x * t) + np.exp(-y * t)
crf = crf / sum(crf)
print("t peak", t[np.argmax(crf)])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if len <= delta || len < CMP_EPSILON {
return to;
}
return current + vd / len * delta;
}
#[allow(dead_code)]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
clustering = KMeans(n_clusters=k, random_state=0).fit(zOut)
listResult = clustering.predict(zOut)
#Check criteria
intraArr=clustering.transform(zOut)
intraL1=np.sum(intraArr)
intraL2=np.sum(intraArr**2)
print(str(clustering.score(zOut))+'\t'+str(intraL1)+'\t'+str... | ise-uiuc/Magicoder-OSS-Instruct-75K |
scope.get_local_variable_or_declare_one(tensor.name, tensor_type)
# For each model execution, we call a parsing function to create a computational (sub-)graph because ONNX has no
# model/layer sharing.
for node in _extract_inbound_nodes(model):
_parse_keras(topology, scope, model, node)... | ise-uiuc/Magicoder-OSS-Instruct-75K |
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
) -> anyhow::Result<HashMap<String, HashMap<usize, String>>> {
let mut method_map = HashMap::new();
let offset = &mut (dwarf_data
.code_registration_offset
.ok_or_else(|| anyhow::Error::msg("expected a code registration offset"))?
as usize);
let code_registration: CodeRegistration ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
private int out = 0;
private int inner = 0;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return random.choice(['Stay', 'North', 'West', 'East', 'South']) | ise-uiuc/Magicoder-OSS-Instruct-75K |
class Address(models.Model):
KINDS = (
('P', 'PRINCIPAL'),
('C', 'COBRANÇA'),
('E', 'ENTREGA'),
)
person = models.ForeignKey('persons.Person', related_name='addresses')
kind = models.CharField('Tipo', max_length=1, choices=KINDS)
public_place = models.CharField('Logradouro',m... | ise-uiuc/Magicoder-OSS-Instruct-75K |
pub mod types;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Meta:
verbose_name_plural = _("regions")
verbose_name = _("region")
ordering = ('order',)
def __unicode__(self):
return '%s - %s' % (self.short_name, self.name)
@classmethod
def get_user_count_by_region(cls):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
->check(CLI::ExistingFile)
->group(EXPERIMENTAL_OPTIONS);
app->add_option("--screen-capture-connection-id",
config->screen_capture_connection_id,
"Screen capture connection id")
->excludes(option_screen_capture_report)
->group(EXPERIMENTAL_OPTIONS);... | ise-uiuc/Magicoder-OSS-Instruct-75K |
viewBox="0 0 16 16"
fill="none"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from storages.backends.s3boto3 import S3Boto3Storage
class MediaStorage(S3Boto3Storage):
location = 'media'
file_overwrite = False | ise-uiuc/Magicoder-OSS-Instruct-75K |
def get_cavg(pairs, lang_num, min_score, max_score, bins = 20, p_target = 0.5):
''' Compute Cavg, using several threshhold bins in [min_score, max_score].
'''
cavgs = [0.0] * (bins + 1)
precision = (max_score - min_score) / bins
for section in range(bins + 1):
threshold = min_score + section * precision
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
picker.allowsEditing = true
picker.delegate = self.viewModel
picker.mediaTypes = [kUTTypeImage as String]
self.present(picker, animated: true)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
----------
evaluationData : dataset object
Evaluation data.
verbose : bolean
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from django.contrib.auth.models import User
from django.db.models.signals import post_save
from django.dispatch import receiver
from social_django.models import UserSocialAuth
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{Application::GetPageTypeCode<ManCtrl_Light::TPage>(), ManCtrl_Light::Fabric},
{Application::GetPageTypeCode<ManCtrl_Pump::TPage>(), ManCtrl_Pump::Fabric},
{0, nullptr}, /* Start flooding */
| ise-uiuc/Magicoder-OSS-Instruct-75K |
graph.put_object(
test_user_id,
"feed",
{'message': create_msg()},
callback=self.stop)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export default dashboardSlice.reducer;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
public partial class Categories : System.Web.UI.Page
{
protected bool bound = false;
protected void Page_Load(object sender, EventArgs e)
{
}
private void Repeater_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for _, row in tqdm(
huawei_df.iterrows(),
desc="Adding huawei log hierarchy",
total=len(huawei_df),
):
log_template = str(row[self.config.relevant_log_column]).lower()
for column in relevant_columns:
row_value = (
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
from .lsp import LSP, LSPGenerator
from .rays import Rays, RaysGenerator
from .system_level_scenario import SystemLevelScenario
from .rma_scenario import RMaScenario
from .umi_scenario import UMiScenario
from .uma_scenario import UMaScenario
from .channel_coefficients import Topology, ChannelCoefficientsGenerator
from ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
# Comment this out to disable bi-weekly auto-update checks
# DISABLE_AUTO_UPDATE="true"
# Uncomment to change how many often would you like to wait before auto-updates occur? (in days)
# export UPDATE_ZSH_DAYS=13
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if [ $# -lt 3 ]; then
echo "No Proxy configuration provided"
exit 0
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
return true
}
else if attribute == "PhoneNumberAttribute"
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import System
from System import Array
from System.Collections.Generic import *
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *
clr.AddReference("RevitNodes")
import Revit
clr.ImportExtensions(Revit.Elements)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if __name__ == '__main__':
test()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Role(models.IntegerChoices):
ADMIN = 0, 'Admin'
GENERAL = 1, 'General'
GUEST = 2, 'Guest'
ACCOUNTING = 3, 'Accounting'
IT = 4, 'IT'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
GUILD_ID = "878926572235665418"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
*
* @return mixed|null
* @throws QueryErrorException
*/
public function execute($domain = null)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"TIME_COEFF": 2.,
"COORD_Y_START_SCAN": 200,
"PIECE_BASE_HEIGHT_HALF": 13,
"PIECE_BODY_WIDTH": 49,
"SWIPE_X1": 375,
"SWIPE_Y1": 1055,
"SWIPE_X2": 375,
"SWIPE_Y2": 1055
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// Wait for the CacheClientProxy to be created since its asynchronous
await().until(() -> acceptor.getCacheClientNotifier().getClientProxies().size() == 1);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
display_settings(conf, ["STRING", "INTEGER", "SEQ", "MAP", "NOPE"])
# Check base setting directories
assert caplog.record_tuples == [
("optimus", 10, " - Settings.STRING = ok"),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
[HttpGet]
public async Task<ActionResult<IEnumerable<BankDraftResponse>>> GetBankDraftsByReceiver(string receiverId,
[FromQuery] BankDraftState? state)
{
if (state.HasValue)
{
var bankDraftsByState =
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if length >= 24 && length <= 140 {
output = try;
break 'output;
}
}
writeln!(io::stdout(), "{}", output).unwrap();
io::stdin().read_line(&mut input).unwrap();
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if s % 2 == 0:
median = (a[int(s/2) -1] + a[int(s/2)]) / 2
else:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
global led_g
global led_b
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
if($this->validateRequest($request)) return redirect('/');
$persona = new Persona();
$persona->nombre = $request->nombre;
$persona->tipo_documento = $request->tipo_documento;
$persona->num_documento = $request->num_documento;
$persona->direccion = $request->direccio... | ise-uiuc/Magicoder-OSS-Instruct-75K |
namespace metal {
/// \cond
namespace detail {
template<class num, class... seqs>
struct transformer_impl {
template<template<class...> class expr>
using type = expr<at<seqs, num>...>;
};
template<template<class...> class expr, class... seqs>
str... | ise-uiuc/Magicoder-OSS-Instruct-75K |
onRemoveFile: any,
// Application variables
answers: { [key: string]: string[] },
sectionsValidity: { [key: string]: boolean },
| ise-uiuc/Magicoder-OSS-Instruct-75K |
html_txt: str = (
'<span>a</span>'
'<span></span><span class="c1"># runnable</span>'
'\n<span>b</span>'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import android.widget.TextView;
import com.malalaoshi.android.R;
import com.malalaoshi.android.core.base.BaseRecycleAdapter;
import com.malalaoshi.android.core.utils.MiscUtil;
/**
* Created by donald on 2017/6/22.
*/
public class CourseServiceAdapter extends BaseRecycleAdapter<CourseServiceAdapter.ServiceViewHolder... | ise-uiuc/Magicoder-OSS-Instruct-75K |
//typedef glm::vec2 vec2;
//typedef glm::vec3 vec3;
//typedef glm::vec4 vec4;
//typedef glm::mat4 mat4;
// Standard libraries
#include <string>
#include <iostream>
#include <stdio.h>
// Type definitions
| ise-uiuc/Magicoder-OSS-Instruct-75K |
);
const client = new ApolloClient({
link: authLink.concat(httpLink),
cache: new InMemoryCache(),
});
export default client;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub mod quoted_string;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
std::cout << "The bind energy of E is "
<< myChemicalBasis.chemicalGroups()["E"].bindEnergy()
<< std::endl;
std::cout << "The bind energy of -NH2 is "
<< myChemicalBasis.chemicalGroups()["-NH2"].bindEnergy()
<< std::endl;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
crime_file = './spotcrime.csv.2'
try:
spotcrime_df = pd.read_csv(crime_file, header=0)
print(spotcrime_df.head())
except FileNotFoundError:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<?php
namespace App\Interfaces;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
or (mimetype and 'video' in mimetype and self.video is True)
):
yield Episode(filepath, relative_dir, self.root_url, title_format=self.title_format)
def as_xml(self):
"""Return channel XML with all episode items"""
template = jinja2_env.get_te... | ise-uiuc/Magicoder-OSS-Instruct-75K |
# timeout
# -------
parser.add_argument('--cpucheck_timeout',
action="store",
default=120,
help = "Specify poll timeout value\ndefault "
"to 120 seconds")
# # interval
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
from pydantic import BaseModel, Field
class Schema(BaseModel):
__root__: str = Field(..., description='Identifier string of this object.')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
client = aip.AipNlp("Enter Your APP_ID", "Enter Your API_KEY", "Enter Your SECRET_KEY")
word= {"r":"代词", "v":"动词", "nr":"名词"}
s = ""
for i in client.lexer("我爱米思齐", options={})["items"]:
s = s + i["item"]
s = s + "【"
s = s + word[i["pos"]]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// Remove trailing slash.
("abc/", "abc"),
("abc/def/", "abc/def"),
("a/b/c/", "a/b/c"),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.assertRaises(ValueError, lambda: ScanPlan(bt, ct, exposure=0.2))
# proper frame acq time -> pass
glbl["frame_acq_time"] = 0.1
ScanPlan(bt, ct, 0.2)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<div class="form-group">
<label for="name">Name</label>
<input type="text" class="form-control" id="name" value="{{$category->name}}">
</div>
<div class="form-group">
<label for="description"... | ise-uiuc/Magicoder-OSS-Instruct-75K |
self.leftCells = [mm.addGridCell(0, 1.5, base.a2dLeft, base.a2dRight, base.a2dBottom, base.a2dTop),
mm.addGridCell(0, 2.5, base.a2dLeft, base.a2dRight, base.a2dBottom, base.a2dTop),
mm.addGridCell(0, 3.5, base.a2dLeft, base.a2dRight, base.a2dBottom, base.a2dTop)]
self.bottomCells... | ise-uiuc/Magicoder-OSS-Instruct-75K |
avcodec_decode_video2(pCodecCtx,frame.data,&frameFinished,&packet);
//log("VIDEODECODE","%i",frameFinished);
if(frameFinished)
{
double pts2 = av_frame_get_best_effort_timestamp ( frame.data )*av_q2d(pFormatCtx->streams[packet.stream_index]->time_base);
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
let shapes = ["🔶", "🔵", "🟧", "🟢", "🟨", "🟤", "🔷", "🟩", "🟡", "🟪", "🔻", "🔺", "🟥", "🟣"]
var currentShape = 0
public func randomString() -> String {
currentShape = currentShape % shapes.count
let nextShape = shapes[currentShape]
currentShape += 1
return nextShape
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def add_edge(self, e):
""" Adds an edge to this vertex """
if self != e.v_from and self != e.v_to:
raise ValueError(str(self) + " is not part of " + str(e) + ".")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
NavMesh navMesh = new NavMesh(navMeshParams, 6);
TileCache tc = new TileCache(params, new TileCacheStorageParams(order, cCompatibility), navMesh,
TileCacheCompressorFactory.get(cCompatibility), new TestTileCacheMeshProcess());
return tc;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
private String endpoint;
private String accessKeyId;
private String accessKeySecret;
// 存储空间名字
private String bucketName;
// Bucket域名 访问文件时作为url前缀
private String bucketDomain;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
do
# for j in {1..16}
# do
j=16
/lustre/atlas2/nro101/proj-shared/BigNeuron/Script_Vaa3D_svn_ORNL/script_MPI/gen_bench_pbs_scripts.sh 921 100 /lustre/atlas2/nro101/proj-shared/BigNeuron/zhi/taiwan_16k_valid_batch_run/anisosmooth/pbs_all/taiwan16_aniso_${i}_part${j}.pbs /lustre/atlas2/nro101/proj-sh... | 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.