seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
from .surface import BlenderSurface
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<filename>serverless-search-core/src/main/java/au/qut/edu/eresearch/serverlesssearch/index/AllField.java<gh_stars>0
package au.qut.edu.eresearch.serverlesssearch.index;
import org.apache.lucene.document.Field;
import org.apache.lucene.document.FieldType;
import org.apache.lucene.index.IndexOptions;
public class AllField extends Field {
public static final FieldType FIELD_TYPE = new FieldType();
static {
FIELD_TYPE.setIndexOptions(IndexOptions.DOCS_AND_FREQS_AND_POSITIONS);
FIELD_TYPE.setTokenized(true);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$formalities = FormalitiesSicar::orderBy('created_at', 'DESC')
->where('key_units',auth()->user()->determinant->determinant)
->search($this->data['filters'])
->get();
}
$records = $formalities->map(function ($item) {
++$this->totalRecords;
$determinant = $item->key_units;
$classification = $item->i_topograf;
$section = $item->key_section;
if (isset($item->section)){
| ise-uiuc/Magicoder-OSS-Instruct-75K |
CSHARP_UNK_THRESHOLD = 2
TEXT_UNK_THRESHOLD = 2
# 是否使用cuda
USE_CUDA = True
# 设置神经网络参数
teacher_forcing_ratio = 0.5
HIDDDEN_SIAZE = 256
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#
# https://github.com/idleberg/sublime-makensis
# Set path
PATH=/usr/bin:/usr/local/bin:/opt/local/bin:/bin:$PATH
# Native makensis
if makensis -VERSION >/dev/null
then
# Check for arguments
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Triangle = 1
while True:
i += 1
Triangle += i
Count = GetCountDel(Triangle)
if Count > 500:
print(Triangle, Count)
break
stop_time = datetime.datetime.now()
print(stop_time - start_time)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
The user to connect as (must be able to create the user)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'Request Type',
'Status',
'Reception Datetime',
'Commit Datetime',
'Request Body',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
filemode='w')
console = logging.StreamHandler()
console.setLevel(logging.DEBUG)
formatter = logging.Formatter('%(name)-12s: %(levelname)-8s %(message)s')
console.setFormatter(formatter)
log = logging.getLogger(__name__)
log.addHandler(console) | ise-uiuc/Magicoder-OSS-Instruct-75K |
assert not response.error
assert response.kind == TransactionKind.AUTH
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<filename>Homeworks/hw08-0036506587/src/main/java/hr/fer/zemris/java/hw06/shell/Environment.java
package hr.fer.zemris.java.hw06.shell;
import java.nio.file.Path;
import java.util.Collections;
import java.util.HashMap;
import java.util.SortedMap;
import java.util.Stack;
/**
* Interface representing shell environment. In other words, it is used as a
* communication with user and it provides a numerous methods which are used to
| ise-uiuc/Magicoder-OSS-Instruct-75K |
mod boyer_moore; | ise-uiuc/Magicoder-OSS-Instruct-75K |
import { map, switchMap } from 'rxjs/operators';
import { Observable } from 'rxjs';
import { Store, select } from '@ngrx/store';
import { Contact } from '../../shared/contact';
import { State } from '../../reducers';
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'Multivariate',
'GaussianMultivariate',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
face_detection = cv2.CascadeClassifier(detection_model_path)
ret=1
flag=True
cap = cv2.VideoCapture(0) #default 0 for webcam
frameRate = cap.get(30)
while(cap.isOpened()):
ret, fm=cap.read()
fm = cv2.resize(fm, (224, 224))
file = cv2.cvtColor(fm, cv2.COLOR_BGR2RGB)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
curl -sS -X POST http://127.0.0.1:8091/node/controller/setupServices \
-d "services=${CB_SERVICES}"
echo "* Setting up storage"
curl -sS -X POST http://127.0.0.1:8091/settings/indexes \
-d "storageMode=forestdb" | python -c 'import json,sys; print("\n".join([" %s: %s" % (k, v) for k, v in json.load(sys.stdin).items()]))'
echo "* Setting up credentials and port"
curl -sS -X POST http://127.0.0.1:8091/settings/web \
-d "username=${CB_ADMIN_USER}&password=${<PASSWORD>}&port=8091&" | python -c 'import json,sys; print("\n".join([" %s: %s" % (k, v) for k, v in json.load(sys.stdin).items()]))'
else
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.prevBatch = self.values.copy()
for state in mdp.getStates():
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<!--[if lt IE 9]>
<script src="/js/html5shiv.min.js"></script>
<script src="/js/respond.min.js"></script>
<style>
a.item, div.item {
border: 1px solid #d8d8d8;
}
</style>
<![endif]-->
<!--
<script src="/js/css3-mediaqueries.js"></script>
-->
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using NNSharp.DataTypes;
using NNSharp.SequentialBased.SequentialLayers;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
alias h='heroku'
fi
| ise-uiuc/Magicoder-OSS-Instruct-75K |
DART_EXPORT void SfxrNode_setStartFrequencyInHz(int nodeId, float value) {
auto node = std::static_pointer_cast<SfxrNode>(getNode(nodeId));
if(node) node->setStartFrequencyInHz(value);
}
DART_EXPORT void SfxrNode_setVibratoSpeedInHz(int nodeId, float value) {
auto node = std::static_pointer_cast<SfxrNode>(getNode(nodeId));
if(node) node->setVibratoSpeedInHz(value);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
if (!packer_found)
{
fprintf(stderr, "Failed to find unpacker for sub event id 0x%08x\n", id);
fflush(stderr);
missing_packer++;
}
}
packSeq_ = ordered;
return missing_packer;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Extract title which is either surrounded with "" or not
if line[0] == '"':
line = line[1:]
title = line[:line.find('"')]
else:
title = line[:line.find(' ')]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
import unittest
from tensorforce.agents import VPGAgent
| ise-uiuc/Magicoder-OSS-Instruct-75K |
interestingly, nature. The sequence goes as such:
1,1,2,3,5,8,13,21,34,55,...
where the sequence starts with 1 and 1, and then each number is the sum of the
| ise-uiuc/Magicoder-OSS-Instruct-75K |
imageAlt="Rusty orange circle with the letter O in white text at the center"
/>
<Persona
| ise-uiuc/Magicoder-OSS-Instruct-75K |
img, img_bytes_per_line
);
}
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
gcc -std=c++11 -shared -DOS_LINUX Exports.cpp Photino.Linux.cpp -o x64/Photino.Native.so `pkg-config --cflags --libs gtk+-3.0 webkit2gtk-4.0 libnotify` -fPIC
cp ./x64/Photino.Native.so ../Photino.Test/bin/Debug/net5.0/Photino.Native.so
| ise-uiuc/Magicoder-OSS-Instruct-75K |
scopedata['high tension'] = info['high tension']
if 'stage a' in info.keys():
tiltseriesdata = leginon.leginondata.TiltSeriesData(session=self.session)
scopedata['stage position'] = {'x':0.0,'y':0.0,'z':0.0,'a':info['stage a']}
else:
scopedata['stage position'] = {'x':0.0,'y':0.0,'z':0.0,'a':0.0}
return scopedata
| ise-uiuc/Magicoder-OSS-Instruct-75K |
assert os.access(executable_path, os.X_OK)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from pathlib import Path
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using System.Collections.Generic;
using Timetracker.Tracker;
namespace Timetracker.Commands
{
[VerbAttribute(
"pop",
HelpText = "Ends the current job and continues the previous one"
)]
public class PopJobsCommand : TrackerCommand
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
leap=False
if year%400==0:
leap=True
elif year%4==0 and year%100!=0:
leap=True
else:
leap=False
return leap
year = int(input())
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// You must assume that it is invalid to have more than one Context at a time (it's also pointless).
/// It may work on some platforms (because we can make it so), but otherwise this could cause failures
/// at various points.
pub fn new() -> Result<Self> {
OsContext::new().map(Context)
}
/// Undoes any mouse trap caused by any window.
pub fn untrap_mouse(&self) -> Result<()> {
self.0.untrap_mouse()
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let mut v =
CrdsValue::ContactInfo(ContactInfo::new_localhost(&keypair.pubkey(), timestamp()));
verify_signatures(&mut v, &keypair, &wrong_keypair);
v = CrdsValue::Vote(Vote::new(&keypair.pubkey(), test_tx(), timestamp()));
verify_signatures(&mut v, &keypair, &wrong_keypair);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def _is_authentic_twilio_request(self, request):
logger.info("Authenticating {} {}".format(request.method, request.path))
twilio_auth_key = os.environ["TWILIO_AUTH_TOKEN"]
request_validator = RequestValidator(twilio_auth_key)
twilio_signature = request.headers.get("X-Twilio-Signature", "")
is_authentic = request_validator.validate(
request.url,
request.POST,
twilio_signature,
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return entityMapper.toTargets(genotypePrimers, GenotypePrimerDTO.class);
}
public GenotypePrimer toEntity(GenotypePrimerDTO genotypePrimerDTO)
{
GenotypePrimer genotypePrimer = entityMapper.toTarget(genotypePrimerDTO, GenotypePrimer.class);
return genotypePrimer;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
Generating squares
This example will generate 25 squares each in a randomly chosen grayvalue.
The grayvalue is chosen out of 25 different possiblities. Every redraw of the
window will create a new set of squares.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import requests
def get_city_id_from_city_name(city_name: str) -> Optional[str]:
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from .filter_method import *
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ColumnValues = InColumnValues;
}
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"cpuLists": {
"0": {
"cpus": "0",
"tasks": []
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
samples_per_gpu=2,
workers_per_gpu=2,
train=dict(
type=dataset_type,
ann_file=data_root + 'annotations/instances_train2017.json',
img_prefix=data_root + 'train2017/',
pipeline=train_pipeline),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
net.sf.jasperreports.components.map.fill.FillItemData
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if(not overlap) error_msg.append("\t overlap \n");
if(not norm) error_msg.append("\t norm \n");
if(not length) error_msg.append("\t length \n");
if(not iter) error_msg.append("\t iter \n");
if(not counter) error_msg.append("\t counter \n");
if(not time) error_msg.append("\t time \n");
if constexpr (settings::debug){
if(has_nan()) throw std::runtime_error("opt_mps error: mps has nan's");
}
/* clang-format on */
if(not error_msg.empty()) { throw std::runtime_error(fmt::format("opt_mps error: Missing fields:\n{}", error_msg)); }
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
########################################################################
class MyPlugin2(pyblish.api.ContextPlugin):
""""""
#----------------------------------------------------------------------
def process(self, context):
print('hello from plugin2')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#endregion //DEBUG
}
}
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
void DES_decrypt3(DES_LONG * data,DES_key_schedule * ks1,DES_key_schedule * ks2,DES_key_schedule * ks3,t_DES_SPtrans * sp)
{
register DES_LONG l,r;
l=data[0];
r=data[1];
IP(l,r);
data[0]=l;
data[1]=r;
DES_encrypt2((DES_LONG *)data,ks3,sp,DES_DECRYPT);
DES_encrypt2((DES_LONG *)data,ks2,sp,DES_ENCRYPT);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
M = DOB_numbers[3]
Y = DOB_numbers[4]
return '%i:%i %i-%i-%i' % (h,m,D,M,Y)
def n51():
blood_group = ['A','B','O','B']
class Person:
blood = 'X'
p1 = Person()
p1.blood = blood_group[0]
p2 = Person()
p2.blood = blood_group[1]
p3 = Person()
p3.blood = blood_group[2]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
license = 'MIT',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.assertIsInstance(logger, Logger)
os.remove("test.log")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<?php
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from metaci.api.serializers.cumulusci import (
OrgSerializer,
ScratchOrgInstanceSerializer,
ServiceSerializer,
)
from metaci.cumulusci.filters import OrgFilter, ScratchOrgInstanceFilter
from metaci.cumulusci.models import Org, ScratchOrgInstance, Service
class OrgViewSet(viewsets.ModelViewSet):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
while(T--) {
int N;
cin >> N;
vector<int> arr(N);
for(int i = 0; i < N; i++) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.body_parts = {}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
std::array<Genome, PopSize>& getPopulation() const { return population; }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from aiohttp import WSMsgType
| ise-uiuc/Magicoder-OSS-Instruct-75K |
random_device rd;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<gh_stars>0
""" Settings for grow """
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
get count(): number {
return this._count;
}
get unpagedCount(): number {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
_cc_voltages = {6300: '5', 10000: '6', 16000: '7', 25000: '8', 50000: '9'}
def CC_XxR(value, tolerance=10, voltage=16, package='0603', pkgcode='R', dielectric="X7R"):
res = {"manufacturer": "Yageo"}
c_pf = int(value * 1e12)
exp = 0
while c_pf >= 100:
exp += 1
c_pf /= 10
if package > '0603' and pkgcode == 'R':
pkgcode = 'K'
c_str = str(int(c_pf))+str(exp)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.patternPos = '111111111111'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$JAVA_HOME/bin/java \
-Xgcpolicy:optthruput \
-Xmx32g -Xms32g -Xmn31g \
--add-opens java.base/java.io=ALL-UNNAMED \
-jar target/java8comparison-1.0.0-SNAPSHOT.jar ibm9.txt
| ise-uiuc/Magicoder-OSS-Instruct-75K |
battlePasses.append(
{
"name": self.localize.get(f"SEASONS/SEASON_{season}"),
"value": season,
"items": [],
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
else:
local_coefficient[v] = 0
medium_coefficient += local_coefficient[v]
print("\nMedium clustering coefficient:", medium_coefficient / len(p))
if __name__== "__main__" :
main()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
DispatchQueue.main.async {
let detailViewController = DetailViewController(image: capturedImage)
self.navigationController?.pushViewController(detailViewController, animated: true)
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
the main excution file
"""
import os
from os.path import join, isfile
from collections import namedtuple
import sys
from PyQt5.QtWidgets import QApplication
from fuzzy_system.gui.gui_root import GuiRoot
def main():
"""Read data as dictionary"""
app = QApplication(sys.argv)
gui_root = GuiRoot(read_file())
sys.exit(app.exec_())
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.title = title
self.generating_url = ''
# should be a list of DataSets
self.datasets = []
def __unicode__(self):
string = "Report: " + unicode(self.title) + "\n"
for dataset in self.datasets:
string = string + unicode(dataset)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# cd ~/workspace/Gitlab/detectron2/projects/DensePose
# cfg_name='densepose_CondInst_R_50_s1x'
# CUDA_LAUNCH_BLOCKING=1 python train_net.py --config-file configs/${cfg_name}.yaml \
# --resume \
# SOLVER.IMS_PER_BATCH 2 SOLVER.BASE_LR 0.0025 \
# OUTPUT_DIR ./output/${cfg_name}_1chSeg_IUVSparsePooler2Head_AggFea_V1ConvXGNSparseInsINLowMemNoOverlapTrueWSaggheads_GTinsDilated3 \
| ise-uiuc/Magicoder-OSS-Instruct-75K |
cv2.circle(image, tuple([int(point[0]), int(point[1])]), 3, (0, 255, 0), -1)
cv2.imwrite(self.output_folder + "{}_midpoints_of_lane.jpg".format(self.process_number), image)
self.process_number += 1
return width_of_lane, length_of_lane, adjusted_midpoints_of_lane
| ise-uiuc/Magicoder-OSS-Instruct-75K |
x = self.net.Mixed_6c(x)
# N x 768 x 17 x 17
x = self.net.Mixed_6d(x)
# N x 768 x 17 x 17
x = self.net.Mixed_6e(x)
# N x 768 x 17 x 17
###aux_defined = self.net.training and self.net.aux_logits
###if aux_defined:
### aux = self.net.AuxLogits(x)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return ''.join(out)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
data = data.dropna(axis=1)
pca = PCA(n_components=2)
pca.fit(data.to_numpy())
x = pd.DataFrame(pca.transform(data.to_numpy()))
x.columns = ["PC1", "PC2"]
x["labels"] = data.index
d = x["PC1"].abs().max() + x["PC2"].abs().max()
# rotation = pd.DataFrame(pca.transform(np.identity(len(data.columns))))
rotation = pd.DataFrame(pca.components_.T) * d
rotation.columns = ["PC1", "PC2"]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export interface Parameter {
name: string;
constraints: Constraint[];
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
test_expect_success 'config-specified template should commit' '
echo "new template" > "$TEMPLATE" &&
git config commit.template "$TEMPLATE" &&
echo "more content" >> foo &&
git add foo &&
| ise-uiuc/Magicoder-OSS-Instruct-75K |
yolk.flush()
self.assertEqual(yolk.default_client.queue.maxsize, 1337)
def test_max_retries(self):
self.assertIsNone(yolk.default_client)
client = Client('testsecret', max_retries=42)
for consumer in client.consumers:
self.assertEqual(consumer.retries, 42)
def test_sync_mode(self):
self.assertIsNone(yolk.default_client)
yolk.sync_mode = True
yolk.flush()
self.assertTrue(yolk.default_client.sync_mode)
yolk.default_client = None
| ise-uiuc/Magicoder-OSS-Instruct-75K |
source ./prepare-jdk.sh
switch_to_jdk 8
cd "$ROOT_PROJECT_DIR"
runCmd ./mvnw -Pgen-code-cov clean package cobertura:cobertura coveralls:report
| ise-uiuc/Magicoder-OSS-Instruct-75K |
name = TextField('Company name')
employees = QuerySelectMultipleField(
u'Employees', get_label='fullname', query_factory=
lambda: database.Employee.query.filter_by(company_id=None))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print("The number of lines in the file are : ")
print(number_of_lines)
newContents = ""
lineIndex = 1
for line in line_by_line:
newContents = newContents + "Line #" +str(lineIndex) + ": " + line + "\n"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
robot.linear_move_poll(point, speed)
# Back to first point
robot.linear_move_poll(square_corners[0], speed)
# Increment z
square_corners = [point + z_vector for point in square_corners]
def cylinder(robot: MelfaRobot, speed: float) -> None:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return null;
}
}
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
bankAccount['postcode'] = account['bsb']['content']['activity'][0][
'role'][0]['party'][0]['address'][0]['postcode']
except:
bankAccount['postcode'] = '2000'
try:
bankAccount['suburb'] = account['bsb']['content']['activity'][0][
'role'][0]['party'][0]['address'][0]['suburb'].title()
except:
bankAccount['suburb'] = 'Sydney'
bankAccount['state'] = account['bsb']['content']['activity'][0]['role'][0][
'party'][0]['address'][0]['state']
bankAccount['accountNumber'] = fake.numerify(text="##-###-####")
return bankAccount
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
}
fn part_two(input: &str) -> String {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return True
return False
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def test_add_xyz(self):
self.assertEqual(self.x + self.y + self.z, self.expected)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<!DOCTYPE html>
<html>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"D": "Other Details Amended",
}
ISD_TYPE = {"ISDCN": "ISD Credit Note", "ISD": "ISD Invoice"}
SUP_DETAIL = {
"supplier_gstin": "ctin",
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#include <stdbool.h>
#include <time.h>
#include <stdlib.h>
double getRandouble(const double min, const double max) {
double temp = ((double)rand()) / (double)RAND_MAX;
temp = min + (max - min)*temp;
return temp;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if cafeteria == '인문관':
cur.execute("SELECT dinner from 인문관")
elif cafeteria == '교수회관':
cur.execute("SELECT dinner from 교수회관")
elif cafeteria == '스카이 라운지':
cur.execute("SELECT dinner from 스카이라운지")
elif cafeteria == '후생관':
cur.execute("SELECT dinner from 후생관")
elif cafeteria == '어문관':
cur.execute("SELECT dinner from 어문관")
elif cafeteria == '기숙사 식당':
cur.execute("SELECT dinner from 기숙사")
elif cafeteria == '교직원 식당':
| ise-uiuc/Magicoder-OSS-Instruct-75K |
request = FakeRequest()
request.force_media_none = True
test_suite_id = "b58415d4-2f39-4ab0-8763-7277e18f9606"
request.fake_params["suite_id"] = test_suite_id
self.logger.info(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/**
* @author: yuxuanting
* @description:
* @date: 2020-09-08 18:14
*/
public interface RentRevenueRepository extends BaseDao<RentRevenue,Long>, JpaSpecificationExecutor<RentRevenue> {
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
mv junit.xml /home/jenkins/workspace/indigo/tosca-templates/
| ise-uiuc/Magicoder-OSS-Instruct-75K |
expresionMapper.map("test", null);
assertNull(expresionMapper.getExpressionValue("test"));
}
@Test
public void should_return_correctly_assign_expression_value() {
final String value = "lore ipsum";
final String expression = "test";
ExpressionMapper expressionMapper = BuildExpressionMapper();
expressionMapper.map(expression, value);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
return x.detach().cpu().numpy()
def train(net, train_metadataset, val_metadataset, args):
net = net.to(args.device)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def load_list(load_fn):
npy = np.load(load_fn)
# (2,62) object. (paths, num_ims) x categories
return npy[0], npy[1]
if __name__ == "__main__":
# only capitals
capitals = ['4a', '4b', '4c', '4e', '4f',
'5a', '6c', '6f',
'41', '42', '43', '44', '45', '47', '48', '49',
'50', '51', '52', '53', '54', '55', '56', '57', '58']
numbers = ['30', '31', '32', '33', '34', '35', '36', '37', '38', '39']
nist_root = str(sys.argv[1])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
f"~Internet~. {es.get_type()}: `{es.get_friendly_name()}` is publicly accessible. "
f"{es.get_type()} is currently not deployed within a VPC. ~ElasticSearch~", es, es)
for es in env_context.elastic_search_domains if es.is_public]
return issues
def should_run_rule(self, environment_context: AwsEnvironmentContext) -> bool:
return bool(environment_context.elastic_search_domains)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
login_server = 'https://api.paas.okd.cern.ch:443'
if args.instance == 'cara-prod':
project_name = 'cara-prod'
elif args.instance == 'test-cara':
project_name = 'test-cara'
actual_login_server = get_oc_server()
if actual_login_server != login_server:
print(f'\nPlease login to the correct OpenShift server with: \n\n oc login {login_server}\n', file=sys.stderr)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
In order to list your hostel, we need you to provide some information on the property.
</p>
</div>
</div>
<div class="mt-5 md:mt-0 md:col-span-2">
<div class="shadow overflow-hidden sm:rounded-md">
<div class="px-4 py-5 bg-white sm:p-6">
<div class="grid grid-cols-6 gap-6">
<div class="col-span-6">
<label for="hostel_name" class="block text-sm font-medium text-gray-700">Hostel name</label>
<input type="text" name="hostel_name" id="hostel_name" autocomplete="hostel_name"
| 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.