seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
index = 0
if depth != 0:
url_string = url_string + "," + chord_ID
print(url_string)
response = requests.get(url_string, headers={'Authorization': "Bearer <KEY>"})
hook_result = json.loads(response.text)
time.sleep(2)
print("Called API Depth " + str(depth))
for obj in hook_result[:4]:
probability = obj["probability"]
chord_ID = obj["chord_ID"].encode("ascii")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for sh in bash zsh fish; do
go run ./cmd/operator-builder completion "$sh" >"completions/operator-builder.$sh"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.CONSTRUCTOR})
@Inherited
public @interface ConstructorAnno {
String value() default "default";
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
use test::Bencher;
#[bench]
fn bench_std_iter(b: &mut Bencher) {
let v: Vec<u32> = (0..1000).collect();
let mut sum = 0;
b.iter(|| sum = v.iter().sum::<u32>());
println!("{}", sum)
}
#[bench]
fn bench_warmup(b: &mut Bencher) {
let s: Series = (0u32..1000).collect();
b.iter(|| {
s.u32().unwrap().into_iter();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
get_previous_price_list = _Btc_Converter.get_previous_price_list
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<html>
<head>
<meta charset=\"utf-8\">
<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
<title>Connexion</title>
<!-- Tell the browser to be responsive to screen width -->
<meta content=\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\" name=\"viewport\">
<!-- Bootstrap 3.3.6 -->
<link rel=\"stylesheet\" href=\"";
// line 18
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Y = np.zeros((1001, 14))
T = np.linspace(0, 1, len(Y))
sigmoid = 0.5 * (np.tanh(1.5 * np.pi * (T - 0.5)) + 1.0)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import java.io.IOException;
import java.util.Collection;
import ch.skymarshall.tcwriter.generators.model.persistence.IModelPersister;
import ch.skymarshall.tcwriter.generators.model.persistence.JsonModelPersister;
import ch.skymarshall.tcwriter.generators.model.testapi.TestDictionary;
import ch.skymarshall.tcwriter.generators.visitors.ClassToDictionaryVisitor;
import ch.skymarshall.util.helpers.ClassFinder;
public class JavaToDictionary {
private final Collection<Class<?>> tcClasses;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
private:
double mValue;
std::string mString;
mutable int mNumAccesses = 0;
};
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public class ConnectionPerformanceReaderClass implements ConnectionPerformanceReader {
private PerformanceType conn;
public ConnectionPerformanceReaderClass(PerformanceType conn){
this.conn= conn;
}
@Override
| ise-uiuc/Magicoder-OSS-Instruct-75K |
deactivate
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# index_server = j
# print(env.cost_init)
# print("The reward of initial state is:")
# print(env.reward(env.cost_all(env.cost_init), env.state_init))
# print(env.state_init)
# actions=list(range(env.n_actions))
# print(actions)
# env.after(100, update)
# env.mainloop() | ise-uiuc/Magicoder-OSS-Instruct-75K |
if user is None or not user.is_active:
raise HTTPException(
status_code=status.HTTP_400_BAD_REQUEST,
detail=ErrorCode.LOGIN_BAD_CREDENTIALS,
)
if requires_verification and not user.is_verified:
raise HTTPException(
status_code=status.HTTP_400_BAD_REQUEST,
detail=ErrorCode.LOGIN_USER_NOT_VERIFIED,
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
message: {
type: GT.NonNull(GT.String),
},
path: {
type: GT.List(GT.String),
},
// Non-interface fields
code: {
type: GT.NonNull(InputErrorCode),
},
}),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import org.portletbridge.mock.MockPerPortletMemento;
import org.portletbridge.mock.MockPortletBridgeMemento;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# your code goes here
print len(data[1])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
it('should not add JavaBase when project path is not filled', async () => {
const projectService = stubProjectService();
projectService.addJavaBase.resolves({});
await wrap({ projectService, project: createProjectToUpdate({ folder: '' }) });
await component.addJavaBase();
expect(projectService.addJavaBase.called).toBe(false);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
DLL_PUBLIC void DLL_ENTRY alGetBuffer3f(ALuint buffer, ALenum param, ALfloat *value1, ALfloat *value2, ALfloat *value3);
DLL_PUBLIC void DLL_ENTRY alGetBufferfv(ALuint buffer, ALenum param, ALfloat *values);
DLL_PUBLIC void DLL_ENTRY alGetBufferi(ALuint buffer, ALenum param, ALint *value);
DLL_PUBLIC void DLL_ENTRY alGetBuffer3i(ALuint buffer, ALenum param, ALint *value1, ALint *value2, ALint *value3);
DLL_PUBLIC void DLL_ENTRY alGetBufferiv(ALuint buffer, ALenum param, ALint *values);
// ALC
DLL_PUBLIC ALCcontext* DLL_ENTRY alcCreateContext(ALCdevice *device, const ALCint *attrlist);
DLL_PUBLIC ALCboolean DLL_ENTRY alcMakeContextCurrent(ALCcontext *context);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
chkp = tf.compat.v1.train.NewCheckpointReader(self.backbone_checkpoint)
weights = [chkp.get_tensor(i) for i in ['/'.join(i.name.split('/')[-2:]).split(':')[0] \
for i in runner.trainer.model.layers[0].weights]]
runner.trainer.model.layers[0].set_weights(weights)
return
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
// A simple implementation of `% touch path` (ignores existing files)
fn touch(path: &Path) -> io::Result<()> {
match OpenOptions::new().create(true).write(true).open(path) {
Ok(_) => Ok(()),
Err(e) => Err(e),
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/**
* After visiting the construct, attempt to
* visit all its children as well.
*/
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def get_manuel_ttbarzp_cs():
r"""
Contains cross section information produced through MadGraph by Manuel for collider phenomenology regarding
the semihadronic, semileptonic $pp \to t\overline{t} \; Z', Z' \to b\overline{b}$ channel
"""
# Z' masses (GeV) for which I (Elijah) created signal samples
manuel_masses = [350, 500, 750, 1000, 2000, 3000, 4000]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
--pac https://s3-us-west-2.amazonaws.com/cgl-alignment-inputs/genome.fa.pac \
--sa https://s3-us-west-2.amazonaws.com/cgl-alignment-inputs/genome.fa.sa \
--fai https://s3-us-west-2.amazonaws.com/cgl-alignment-inputs/genome.fa.fai \
--ssec "/home/ubuntu/master.key" \
-o "/mnt/final_output" \
--s3_dir "cgl-driver-projects-encrypted/wcdt/exome_bams/"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
base = boroughs.plot(color='lightblue', edgecolor='black',ax=ax);
cityhotels.plot(ax=ax, marker='o', color='red', markersize=8);
ax.axis('off');
| ise-uiuc/Magicoder-OSS-Instruct-75K |
protocol A{typealias B>typealias B<a>:a}extension A
| ise-uiuc/Magicoder-OSS-Instruct-75K |
data += str(i) + """ value="1">
</td>
</tr>\n
"""
i += 1
if lines.__len__() == 0:
data = "<tr>\n<h3>Nothing</h3></tr>"
print template[0] + data + template[1]
except Exception as e:
print "{code:0,msg:\"Internal error\"}\n"
exit(1)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'themis',
'themis.finals',
'themis.finals.checker'
],
entry_points=dict(
console_scripts=[
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# *****************************************************************************
ES_INDEX = 'bts_test'
ES_DOC_TYPE = 'gene'
ES_SCROLL_SIZE = 60
# *****************************************************************************
# User Input Control
# *****************************************************************************
# use a smaller size for testing
QUERY_KWARGS['GET']['facet_size']['default'] = 3
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ret = ball.ball(ballId, startPoint, aim, self.scene)
print "Ghost(%d) Attack<%d>" % (self.id, ballId)
self.attackId += 1
self.action = 2 # wait for animation end
else: # aiming
if self.attackCurrTime == 0: # animation begin
self.action = 3
else: # animation already begun
self.action = 2
self.rotationY = self.getRotationY(self.position[0], self.position[2], aim[0], aim[2])
self.attackCurrTime += dt
return ret
def bomb(self, character):
if character.isAlive:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#[doc = "Checks if the value of the field is `YES`"]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
maj_third = sg.sin_constant(key.interval(Interval.major_third))
min_third = sg.sin_constant(key.interval(Interval.minor_third))
fifth = sg.sin_constant(key.interval(Interval.fifth))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class TaskInputSchema(ma.Schema):
list_id = fields.Integer(required=True, allow_none=False)
value = fields.String(required=True, allow_none=False)
@staticmethod
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace CloudantDotNet.Models
{
public class UserModel
{
public string UserName { get; set; }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
rc('axes', titlesize=18) # fontsize of the axes title
rc('axes', labelsize=18) # fontsize of the x and y labels
rc('xtick', labelsize=18) # fontsize of the tick labels
rc('ytick', labelsize=18) # fontsize of the tick labels
rc('legend', fontsize=14) # legend fontsize
rc('figure', titlesize=BIGGER_SIZE) # fontsize of the figure title
rc('font', size=18)
#rc('font', family='Times New Roman')
rc('text', usetex=True)
#plt.rcParams['font.family'] = 'Times New Roman'
#plt.rcParams.update({
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return organizationSnapShot;
}
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
@using SubUrbanClothes.Web.Areas.Identity.Pages.Account | ise-uiuc/Magicoder-OSS-Instruct-75K |
assert 'csrf_token The CSRF token is missing' in str(response.data)
def test_post_with_token(client):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
In the former cases, the returned value will be added to the list.
In the following example, FloatList transforms anything that float() understands into a
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#print(file_contents)
response = requests.post('http://localhost:8000/owntracks/mizamae/', data=file_contents, headers=headers)
print(str(response)) | ise-uiuc/Magicoder-OSS-Instruct-75K |
cosPhi.push_back(cos(2. * 3.1415927 * i * 1.0 / L1CaloRegionDetId::N_PHI));
}
}
//double l1t::Stage1Layer2EtSumAlgorithmImpPP::regionPhysicalEt(const l1t::CaloRegion& cand) const {
// return jetLsb*cand.hwPt();
//}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# a.mul(2, 100)
# a.mul(2323, 3)
# a.mul(2, 2)
# a.mul(2, 3414)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if lang in key_locale: return key_locale[lang]
if key in glb_locale:
key_locale = glb_locale[key]
for lang in self._lang:
if lang in key_locale: return key_locale[lang]
return key
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print('\nRANSAC global registration on scaled point clouds...')
initial_result = global_registration(pcd0, pcd1, feature1, feature2, voxel_size)
elif method == 'fast_global':
print('\nFast global registration on scaled point clouds...')
initial_result = fast_global_registration(pcd0, pcd1, feature1, feature2, voxel_size)
else:
print(':: Registration method not supported')
return
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pipenv run flask run --host=0.0.0.0
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<filename>my_classes/Tuples/.history/name_tuples_20210721185526.py
""" Tuple as Data Structure
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Cost of a parking pass per month (per month cause everythings per mo)
parking_pass_cost = parking_pass_price_per_year/12
self.drive_cost = (drive_time_cost + gas_cost) * days_on_campus_p_mo + parking_pass_cost
########################################
### Funcs that require specific_soup ###
| ise-uiuc/Magicoder-OSS-Instruct-75K |
doc_data = dict(
ltable_user=ltable_user,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
await guild.create_role(name="50-59 WPM")
await guild.create_role(name="40-49 WPM")
await guild.create_role(name="30-39 WPM")
await guild.create_role(name="20-29 WPM")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
FILE the file to drop trailing lines from (default: stdin)
options:
-h, --help show this help message and exit
-n COUNT, --lines COUNT
how many leading lines to show (default: 10)
quirks:
takes a count led by "+" as how many trailing lines to drop
takes "-5" or "+9" and such, like mac "tail", unlike bash "head"
unsurprising quirks:
prompts for stdin, like mac bash "grep -R .", unlike bash "head"
accepts the "stty -a" line-editing c0-control's, not also the "bind -p" c0-control's
takes file "-" as meaning "/dev/stdin", like linux "head -", unlike mac "head -"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ACCESS_TOKEN_METHOD = 'POST'
SCOPE_SEPARATOR = ','
EXTRA_DATA = [
('email', 'email'),
('username', 'username'),
('fullname', 'fullname'),
('district', 'district'),
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import torch
from ._cov_cov_cases import case1, case2, case3, case4, case5, case6, case7
from ._indices import indice_for_all_cases, matching_indices
def covCov_estimator(X=None):
ind_uptri, ind_ijkl, ind_qr = matching_indices(X.size(0))
ind_c1, ind_c2, ind_c3, ind_c4, ind_c5, ind_c6, ind_c7 = indice_for_all_cases(ind_ijkl)
ind_ijkl = ind_ijkl.long() - 1
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public func serialized() -> Data {
var data = Data()
data += privateKey.raw
data += publicKey.raw
return data
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# PERFORMANCE OF THIS SOFTWARE.
SYSTEMTESTTOP=..
. $SYSTEMTESTTOP/conf.sh
DIG="./dig.sh"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
addi r3, r1, 8
li r5, -1
bl __ct__9RamStreamFPvi
li r0, 1
cmpwi r0, 1
stw r0, 0x14(r1)
bne lbl_803C0B54
li r0, 0
stw r0, 0x41c(r1)
lbl_803C0B54:
mr r3, r31
addi r4, r1, 8
bl read__10ParametersFR6Stream
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}).then(function (response) {
return response.text();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Location destiny = new Location(tx, ty, tz);
return moveCheck(startpoint, destiny, (x - L2World.MAP_MIN_X) >> 4, (y - L2World.MAP_MIN_Y) >> 4, z, (tx - L2World.MAP_MIN_X) >> 4, (ty - L2World.MAP_MIN_Y) >> 4, tz);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# 2021-07-13 22:55:43.029046
| ise-uiuc/Magicoder-OSS-Instruct-75K |
scoped_array<uint8> v_plane(new uint8[uv_stride * source_height / 2]);
TimeTicks start = TimeTicks::HighResNow();
for (int i = 0; i < num_frames; ++i) {
media::ConvertRGB32ToYUV(rgb_frame.get(),
y_plane.get(),
u_plane.get(),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
bound = int(input())
for num in range(bound, 0, -1):
if num % divisor == 0:
print(num)
break
| ise-uiuc/Magicoder-OSS-Instruct-75K |
os.system("cgx -bg blisk_post.fbd")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
mock_elb = elb_backend.decorator
| ise-uiuc/Magicoder-OSS-Instruct-75K |
suffix = SHOULD_PLOT_FOR
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def setUp(self):
self._ll = None
self._sampler = np.random.normal
self._n = 1000
self._eps = 1e-7
def test_energy(self):
pass
def test_finite_difference(self):
x = np.random.gamma(10,10, size=self._n)
d = np.random.gamma(10,10, size=self._n)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
Type = "apiKey";
| ise-uiuc/Magicoder-OSS-Instruct-75K |
--arch=$arch \
--sym=$sym \
--config="$LIBVPX_PATH/generate-rtcd.config" \
"$file" \
> "$LIBVPX_PATH/gen/rtcd/$arch/$sym.h"
}
generate_rtcd_per_arch() {
local arch=$1
mkdir -p "$LIBVPX_PATH/gen/rtcd/$arch"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
&& this_exhaustive == *other_exhaustive
&& fields_are_related(this_slots, other_slots, this_exhaustive)
{
Some(cmp_related(
this_slots.len(),
other_slots.len(),
this_exhaustive,
))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return decorator | ise-uiuc/Magicoder-OSS-Instruct-75K |
export IOTCORE_PROJECT="s9-demo"
export IOTCORE_REG="next18-demo"
export IOTCORE_DEVICE="next18-demo-client"
export IOTCORE_REGION="us-central1"
export IOTCORE_TOPIC_DATA="iot-demo"
export IOTCORE_TOPIC_DEVICE="iot-demo-device"
node send-data.js --projectId=$IOTCORE_PROJECT \
--cloudRegion=$IOTCORE_REGION \
--registryId=$IOTCORE_REG \
--deviceId=$IOTCORE_DEVICE \
--privateKeyFile=./iot_demo_private.pem \
--algorithm=RS256 | ise-uiuc/Magicoder-OSS-Instruct-75K |
"H:|-16-[sub]-16-|",
"H:|-16-[sep2]-16-|",
"H:|-30-[title]-30-|",
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# url(r'^jobposting/', views.JobPostingList.as_view()),
# url(r'^jobpostings/(?P<pk>[0-9]+)/$', views.JobPostingDetail.as_view()),
path("jobpostings/", views.JobPostingList),
path("jobpostings/<int:pk>/", views.JobPostingDetails),
path("resources/", views.ResourceList),
path("resources/<int:pk>/", views.ResourceDetails),
path("resources_pages/", views.ResourcePageList),
path("resources_pages/<int:pk>/", views.ResourcePageDetails),
# path('', include(router.urls)),
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//
import Cocoa
enum RequestMethod: String, Codable {
case get = "GET"
case post = "POST"
case put = "PUT"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for(ppp=0; ppp<distpt; ppp++)
{
kripley(distpt) += ripknl(ppp);
kfrank(distpt) += frank(ppp);
}
kripley(distpt) = areaDens * kripley(distpt);
kfrank(distpt) = areaDens * kfrank(distpt);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
bge.logic.mouse.position = tuple(mouse) | ise-uiuc/Magicoder-OSS-Instruct-75K |
set -o errexit # Exit the script with error if any of the commands fail
AUTH=${AUTH:-noauth}
SSL=${SSL:-nossl}
MONGODB_URI=${MONGODB_URI:-}
TOPOLOGY=${TOPOLOGY:-standalone}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
}
//MARK:- 配置UI
extension ShieldsLabel {
private func setupUI(style: ShieldsStyle) {
backgroundColor = UIColor(red: 93/255.0, green: 93/255.0, blue: 93/255.0, alpha: 1.0)
switch style {
case .ShieldsDefault:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for (var runNumber = 0; runNumber < options.TestRuns; runNumber++)
{
var processStartInfo = new ProcessStartInfo
{
FileName = "dotnet",
Arguments = $"test \"{options.SolutionFile}\" --no-build --logger trx --results-directory \"{testResultPath}\"",
WorkingDirectory = solutionDirectory ?? string.Empty,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Construct and evaluate cubic spline interpolant
S = BasisSpline(n, a, b, f=f) # chose basis functions
| ise-uiuc/Magicoder-OSS-Instruct-75K |
name='stripe_charge_id',
),
migrations.AddField(
model_name='payment',
name='message',
field=models.CharField(blank=True, help_text='Message from Paystack', max_length=255, null=True),
),
migrations.AddField(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
return processes
.Where(p => p.MessagingSteps.Any(ms => ms.Status == fm) || p.ProcessingSteps.Any(ps => ps.Status == f));
}
if (Value == Status.FailedStep && Operator == ComparisonOperator.NotEqual)
{
return processes
.Where(p => p.MessagingSteps.All(ms => ms.Status != fm) && p.ProcessingSteps.All(ps => ps.Status != f));
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def dumps(
obj,
protocol=pickle.HIGHEST_PROTOCOL,
level=zlib.Z_DEFAULT_COMPRESSION
):
pickled = pickle.dumps(obj, protocol=protocol)
compressed = zlib.compress(pickled, level)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
variable_manager=variable_manager,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for i in range(0, len(items)):
print(str(i + 1) + ". " + items[i])
print()
# ask user to enter prices for
# each grocery item
prices = []
for i in range(0, len(items)):
price = float(input("Enter price for " + items[i] + ": $"))
prices.append(price)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
app = Flask(__name__)
@app.route('/')
def inicio():
return render_template('inicio.html')
app.run() | ise-uiuc/Magicoder-OSS-Instruct-75K |
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DotVVM.Framework.Compilation
{
public interface IAttributeValueMerger
{
ResolvedPropertySetter MergeValues(ResolvedPropertySetter a, ResolvedPropertySetter b, out string error);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if values or args.all:
print("[%s]" % section)
for k, v in values.items():
print(" %s = %s" % (k, v))
print()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#pragma once
#include <Tanker/Network/HttpMethod.hpp>
#include <string>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
PathName PMemIndexLocation::url() const
{
::pmem::PersistentPool& pool(::pmem::PoolRegistry::instance().poolFromPointer(&node_));
return pool.path();
}
IndexLocation* PMemIndexLocation::clone() const {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//
INTEGER i = 0;
for (i = 1; i <= k; i = i + 1) {
dsigma[i - 1] = Rlamc3(dsigma[i - 1], dsigma[i - 1]) - dsigma[i - 1];
}
//
// Book keeping.
//
INTEGER iwk1 = 1;
INTEGER iwk2 = iwk1 + k;
INTEGER iwk3 = iwk2 + k;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
UnityEngine::Color color;
// Get static field: static private System.Collections.Generic.List`1<BloomPrePassBGLight> _bloomBGLightList
static System::Collections::Generic::List_1<GlobalNamespace::BloomPrePassBGLight*>* _get__bloomBGLightList();
// Set static field: static private System.Collections.Generic.List`1<BloomPrePassBGLight> _bloomBGLightList
static void _set__bloomBGLightList(System::Collections::Generic::List_1<GlobalNamespace::BloomPrePassBGLight*>* value);
// static public System.Collections.Generic.List`1<BloomPrePassBGLight> get_bloomBGLightList()
// Offset: 0x1826234
static System::Collections::Generic::List_1<GlobalNamespace::BloomPrePassBGLight*>* get_bloomBGLightList();
// public UnityEngine.Color get_color()
// Offset: 0x182629C
UnityEngine::Color get_color();
// public System.Void set_color(UnityEngine.Color value)
// Offset: 0x18262A8
void set_color(UnityEngine::Color value);
// public UnityEngine.Color get_bgColor()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#log files
self.notify_log_file = notify_log_file
self.warn_log_file = warn_log_file
self.err_log_file = err_log_file
def log_write(self, log: str, type):
while True:
if type == 1:
log = '[INFO]: {}'.format(log)
break
if type == 2:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# process test cases
classes = ['NZP']
# loop through class folder
output = list()
for this_class in classes:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
const parsedLog: string = JSON.stringify(req.body).slice(2, -2).slice(0, -3);
const fullLog: string = `--- [${time}] ---${os.EOL}${parsedLog}${os.EOL}--------------${os.EOL}`
fs.appendFile(`shop-logs-${date}.txt`, fullLog, err => {
res.status(200).end();
return resolve(200);
})
})
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public interface IHealable
| ise-uiuc/Magicoder-OSS-Instruct-75K |
swap2ijs[swap] = [(i, j), (i+1, j)]
ij2swaps[(i, j)].append(swap)
ij2swaps[(i+1, j)].append(swap)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.sha_hash == other.sha_hash and
self.filename == other.filename)
def __hash__(self):
return hash(self.url, self.sha_hash, self.filename) | ise-uiuc/Magicoder-OSS-Instruct-75K |
const getEventRowKey = ({ rowData }: ExtraParamsType) =>
rowData?.props?.event.sortableTime + rowData?.props?.event.message;
const getLabelColor = (severity: Event['severity']) => {
switch (severity) {
case 'info':
return 'blue';
| ise-uiuc/Magicoder-OSS-Instruct-75K |
*
* @param \Illuminate\Http\Request $request
* @param int $id
* @return \Illuminate\Http\Response
*/
public function update(Request $request, $id)
{
$validator = Validator::make($request->all(), [
'ads_position' => 'required',
'start_date' => 'required',
'end_date' => 'required',
'status' => 'required',
]);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<filename>tests/spec/non_conformant/sass/pseudo.rs<gh_stars>0
//! Tests auto-converted from "sass-spec/spec/non_conformant/sass/pseudo.hrx"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
If ($benutzer == "admin" && $passwort == "<PASSWORD>") {
$_SESSION["wi_login"] = true; // Loginflag -> true: angemeldet, false: nicht angemeldet
$_SESSION["wi_benutzername"] = $benutzer; //Benutzername
$_SESSION["wi_benutzerid"] = 1; //Benutzer-ID
$_SESSION["wi_anzeigename"] = "<NAME>"; //Vorname Nachname
$_SESSION["wi_rolle"] = "Admin"; //Rollen: hier nur Admin
$_SESSION["wi_error"] = false; //Fehlermeldung Login
header( "Location: home.php" );
} else {
$_SESSION["wi_error"] = true;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
FLUSH_START, BARRIER_START, BARRIER_END, CRITICAL_START, CRITICAL_END, ATOMIC_START, ATOMIC_END, ORDERED_START,
ORDERED_END, LOCK_MODIFY_START, LOCK_MODIFY_END, LOCK_WRITE_END, TASK_START, TASK_END, TASKWAIT_START,
TASKYIELD_START
}
| 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.