seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
self.agreeToTermsAndConditions()
}
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
// unhide navigationbar
self.navigationController?.setNavigationBarHidden(false, animated: true)
User.resetCurrentUser()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
void Idle();
Bat(SpriteBuilder<Sprite> b);
}; | ise-uiuc/Magicoder-OSS-Instruct-75K |
[Command(Description = "Setups a pipeline for Unity projects.")]
public void Unity(IPrompter prompter,
[Option(LongName = "is-personal", ShortName = "p", Description = "Configure for Unity Personal license.", BooleanMode = BooleanMode.Implicit)] bool isPersonal,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/**
* 通过用户id检测安全码
* @param $userId
* @param $security
*/
public function checkSecurityByUserId($userId, $security)
{
if (empty($security)) {
return ['code' => CodeEnum::ERROR, 'msg' => '安全码不能为空'];
}
$userInfo = $this->modelMs->find($userId);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pipeline = build_tree(start)
runtime = BambooDjangoRuntime()
engine = Engine(runtime)
engine.run_pipeline(pipeline=pipeline, root_pipeline_data={})
sleep(1)
assert_all_failed([eg.id])
engine.skip_exclusive_gateway(eg.id, pipeline["activities"][act_executed_1.id]["incoming"][0])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
df = df[ [x in ["d2h1", "d2h2", "d2h3"] for x in df["m"]] ]
df["d2h"] = [ "overall" if x == "d2h1" else "classification" if x == "d2h2" else "fairness" for x in df["m"] ]
ds_list = df["ds"].unique()
m_list = ["d2h1", "d2h2", "d2h3"]
mn_list = ["Prediction", "Fairness", "Overall"]
tech_list = df["tech"].unique()
for d... | ise-uiuc/Magicoder-OSS-Instruct-75K |
inline float32 cosf32(const float32 value)
{
return cosf(value);
}
inline float32 tanf32(const float32 value)
{
return tanf(value);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#!/bin/bash
PRG="$0"
while [ -h "$PRG" ]; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// This occurs shortly after the scene enters the background, or when its session is discarded.
// Release any resources associated with this scene that can be re-created the next time the scene connects.
// The scene may re-connect later, as its session was not necessarily discarded (see `appli... | ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>uk-gov-mirror/nationalarchives.tdr-jenkins<filename>docker/aws/update_event_mapping.py
import sys
from sessions import get_session
account_number = sys.argv[1]
stage = sys.argv[2]
function_name = sys.argv[3]
version = sys.argv[4]
function_arn = f'arn:aws:lambda:eu-west-2:{account_number}:function:{function_... | ise-uiuc/Magicoder-OSS-Instruct-75K |
$query->where('city', $city);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<div class="card">
<div class="card-body">
<h4 class="card-title pt-4">Pending Provide Help Request</h4>
<div class="pt-4 pl-2">
<p class="">Your request to Provide Help of
<b class="text-primary">₦{{number_format($ph_... | ise-uiuc/Magicoder-OSS-Instruct-75K |
nd, nx = symbols(r'nd, nx', integer=True)
kd = Idx(r'kd', nd)
kx = Idx(r'kx', nx)
xvec = IndexedBase(r'xvec', shape=(nd, nx))
x0 = IndexedBase(r'x0', shape=(nd))
out = IndexedBase(r'out', shape=(nx))
#print(get_indices(xvec[kd, kx] + xvec[kd, kx]))
#expr = Sum(xvec[kd, kx]*xvec[kd, kx], (kd, 0, nd-1))
expr = Sum(xvec[... | ise-uiuc/Magicoder-OSS-Instruct-75K |
BasicDeconv(16, 16, 2, stride=2, use_bn=use_bn),
BasicConv(16, 16, use_bn=use_bn, kernel_size=3, padding=1),
BasicConv(16, 1, use_bn=False, kernel_size=1),
)
initialize_weights(self.modules())
def forward(self, x):
features = self.encoder(x)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
yield secret
| ise-uiuc/Magicoder-OSS-Instruct-75K |
layout.separator()
layout.menu("TEXT_MT_redraw_timer", icon='TIME') #Redraw timer sub menu - Debug stuff
layout.operator("wm.debug_menu", icon='DEBUG') # debug menu
layout.operator("script.reload", icon='FILE_REFRESH') # Reload all python scripts. Mainly meant for the UI scripts... | ise-uiuc/Magicoder-OSS-Instruct-75K |
namespace com.tk.dam.Entity
{
public class Sb_Xtsz
{
public string mJlzt="";
public string mJlfs="";
public string mJlgs="";
public string mFgwj="";
public string mJljg="";
public string mBsm="";
public string mWjdx = "10.2MB";
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
bool
Lab5::Open()
{
App::Open();
this->window = new Window;
int w, h;
this->window->GetSize(w, h);
window->SetKeyPressFunction([this](int32 key, int32, int32 action, int32 mod)
{
this->keyEvent(key, action, mod);
std::cout <<"Key: "<< key << " action: "<<action << std::endl;
if (action == 1) ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
autostart=true
autorestart=true
user=pythonapp
# Environment variables ensure that the application runs inside of the configured virtualenv.
environment=VIRTUAL_ENV="/home/pythonapp/miniconda/envs/app-env/",PATH="/opt/app/tutorial/google_cloud/sinewave/env/bin",\
HOME="/home/pythonapp",USER="root"
stdout_logfile=sy... | ise-uiuc/Magicoder-OSS-Instruct-75K |
# if cnt == 100:
# break
print(time.time() - check_time)
test_model = model.Net().cuda()
check_time = time.time()
cnt = 0
temp = torch.randn(256, 1, 29, 29).cuda()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
json.dump(file_data, file, indent=4)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
],
)
monkeypatch.chdir(tmp_path)
global fake_renderer_instance
fake_renderer_instance = None
main()
assert fake_renderer_instance is not None
assert fake_renderer_instance.processor_options["other_option"] == 13
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return actionResult
class _fuzzymatchLevenshteinDistance(action._action):
checkString = str()
matchString = str()
matchAboveScore = int()
def run(self,data,persistentData,actionResult):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
instance->frames++;
instance->currentSecond++;
if (instance->currentSecond == 60 && instance->gameState == isGamePlay)
{
instance->score++;
instance->currentSecond = 0;
}
Render();
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<gh_stars>0
# Version of couchbase-python-readme package
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#nvidia-docker rm yellow_submarine
else
echo "Argument #2 is $2"
nvidia-docker run -it --name $2 detectron $1
fi
fi
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
/// [rendererPriorityAtExit](https://developer.android.com/reference/android/webkit/RenderProcessGoneDetail.html#rendererPriorityAtExit())
pub fn rendererPriorityAtExit<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
import java.awt.event.MouseEvent;
import java.util.List;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.ListSelectionModel;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public RequestMessageHandlerFactory(final DataSource dataSource,
final Observer<DiagnosticMessage> diagnosticPublisher,
final Scheduler scheduler) {
Preconditions.checkNotNull(dataSource);
Preconditions.checkNotNull(dia... | ise-uiuc/Magicoder-OSS-Instruct-75K |
DOWNLOADER_MIDDLEWARES = {
'p5_downloader_middleware_handson.middlewares.SeleniumDownloaderMiddleware': 543,
}
SELENIUM_ENABLED = True
| ise-uiuc/Magicoder-OSS-Instruct-75K |
tmp_file.write(block)
current_byte = current_byte+chunk_size
tmp_file.close()
print time.clock() - start
#print "Done"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
measuring_device_values = [(device.id, device) for device in MeasuringDevice.objects.all() if device.type == 'S']
self.fields['measuring_device_weather'].choices = measuring_device_values
self.fields['measuring_device_weather'].initial = [c[0] for c in measuring_device_v... | ise-uiuc/Magicoder-OSS-Instruct-75K |
[MemberData(nameof(TestCases))]
public void StaticVerifyOneShotArray(TestCase testCase)
{
StaticVerifyOneShotArrayDriver(testCase);
}
[Theory]
[MemberData(nameof(TestCases))]
public void StaticVerifyOneShotSpanToArray(TestCase testCase)
{
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
return arr
mid = len(arr) // 2
left = merge_sort(arr[:mid])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return JsonResponse::withJson($response, (string) json_encode($posts));
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>fyamamoto10/jigg
#!/bin/bash
set -e
source .checker/scripts/set-env.sh
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<gh_stars>0
while True:
print('\n--- MULTIPLICATION TABLE ---')
num = int(input('Type a number integer: '))
if num < 0:
break
| ise-uiuc/Magicoder-OSS-Instruct-75K |
logger.log_bev_info(global_it, opt_info)
global_it += 1
dmd.bev_scheduler.step()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
output_status_message("-----\nGetMediaMetaDataByAccountId:")
get_responsive_ad_mediametadata = campaign_service.GetMediaMetaDataByAccountId(
MediaEnabledEntities='ResponsiveAd',
PageInfo=None)
output_status_message("MediaMetaData:")
output_array_of_mediametadata(... | ise-uiuc/Magicoder-OSS-Instruct-75K |
if( old_comp_size!=comp->get_size() ) {
recalc_sliders(get_size());
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class ResidualDenseBlock_5C(nn.Module):
def __init__(self, nf=64, gc=32, bias=True):
super(ResidualDenseBlock_5C, self).__init__()
# gc: growth channel, i.e. intermediate channels
self.conv1 = nn.Conv2d(nf, gc, 3, 1, 1, bias=bias)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Agent(ABC):
@abstractmethod
def agent_choice(self, possibilities):
"""
Returns the choice of the specific agent
:param possibilities: list of all possible solutions of which the agent will pick one
"""
pass
| ise-uiuc/Magicoder-OSS-Instruct-75K |
func sceneWillResignActive(_ scene: UIScene) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
LineList,
TriangleList,
};
} // inline namespace render
} // namespace hamon
#endif // HAMON_RENDER_PRIMITIVE_TOPOLOGY_HPP
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import { Box } from '@components/design/box';
import { Section } from '@components/design/section';
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#[cfg(test)]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Execute current script
o2s_mtl $* | ise-uiuc/Magicoder-OSS-Instruct-75K |
}
TOptional<DwarfNode> NextChild() override
{
Dwarf_Error err;
int rc;
mParents.push_back(mCurrentDie);
rc = dwarf_child(mCurrentDie, &mCurrentDie, &err);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ts.remove_polyphony()
self.assertTrue(ts.is_quantized())
self.assertFalse(ts.is_polyphonic())
self.assertEqual(ts.qticks_notes, q_n)
self.assertEqual(ts.qticks_durations, q_d)
def test_duration_to_note_name(self):
"""
Test conversion of durations (in ticks) t... | ise-uiuc/Magicoder-OSS-Instruct-75K |
pub enum PowerStatus {
Off = 0,
On = 1,
}
impl AtDecode for PowerStatus {
fn decode<B: SerialReadTimeout>(
decoder: &mut Decoder<B>,
timeout_ms: u32,
) -> Result<Self, Error<B::SerialError>> {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
tempGroup.duration = duration
return tempGroup
}()
var rotationAnimation: CABasicAnimation = {
var tempRotation = CABasicAnimation(keyPath: "transform.rotation")
tempRotation.repeatCount = Float.infinity
tempRotation.fromValue = 0
tempRotation.toValue = 1
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
uncrustify="uncrustify -c .uncrustify.cfg --replace --no-backup"
# We indent each thing twice because uncrustify is not idempotent - in some
# cases it will flip-flop between two indentation styles.
for dir in bin include src t; do
c_files=`find $dir -maxdepth 1 -name '*.c'`
if [ "$c_files" != "" ]; then
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
tf.test.main()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* 系统配置信息
*/
namespace app\common\model;
use app\common\model\Commons;
use \think\Db;
class System extends Commons {
protected $pk = 'id';
protected $name = "system_base";
public static function systemBaseValue($value=''){
$info = self::where("id","1")->value($value);
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
pub fn _0(self) -> &'a mut W {
self.variant(PRODISW::_0)
}
#[doc = "If a TCP/IP, UDP/IP, or ICMP/IP frame is received that has a wrong TCP, UDP, or ICMP checksum, the frame is discarded. Discarding is only available when the RX FIFO operates in store and forward mode (RSFL cleared)."]
#[inline]
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
'project_ID': Route.VALIDATOR_OBJECTID,
'dataset_ID': Route.VALIDATOR_OBJECTID
}
class _updateForecast(Route):
name = "updateForecast"
httpMethod = Route.POST
path = "/nitro/projects/{project_ID}/datasets/{dataset_ID}/forecasts/{forecast_ID}"
_path_ke... | ise-uiuc/Magicoder-OSS-Instruct-75K |
cat cifar10_quick_solver_lr1.prototxt.template | sed "s/SECOND_ITER/$N_SECOND_ITER/g" > cifar10_quick_solver_lr1_pdcc.prototxt
MV2_ENABLE_AFFINITY=0 MV2_USE_CUDA=1 GLOG_logtostderr=1 \
srun -n $NJOBS -p gpu --gres=gpu:$GRES_GPU --ntasks-per-node=$N_TASKS_PER_NODE \
$TOOLS/train_net.bin cifar10_quick_solver_pdcc.protot... | ise-uiuc/Magicoder-OSS-Instruct-75K |
login ${GITHUB_USERNAME}
password ${<PASSWORD>}
machine api.github.com
login ${GITHUB_USERNAME}
password ${<PASSWORD>}
EOL
chmod 600 $HOME/.netrc
}
if [ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ "${TRAVIS_BRANCH}" = "master" ]; then
saveGitCredentials
git checkout -f ${TRAVIS_BRANCH}
if [ "${RELEASE}"... | ise-uiuc/Magicoder-OSS-Instruct-75K |
this.translators = translators;
this.backupTranslator = backupTranslator;
this.inputService = inputService;
this.translatorCache = translatorCache;
}
public void TranslateInBackgroundAndUpdateGameInput(Tiles tiles)
{
lock (tran... | ise-uiuc/Magicoder-OSS-Instruct-75K |
output = output * self.scale_param
if self.center:
output = output + self.center_param
return output
| ise-uiuc/Magicoder-OSS-Instruct-75K |
destination[i] = interpolation(
source[a as usize],
source[b as usize],
i as f32 / scale - a
);
}
}
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
return 1000*second + date.msec
#second solution
class Solution2():
def compare(self,d1,d2):
d1_list = [d1.year,d1.month,d1.day,d1.hour,d1.minute,d1.second,d1.msec]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
x2 = pt[0]
y2 = pt[1]
return math.sqrt(((x2-x1)**2) + ((y2-y1)**2))
def animate(self):
if self.waitCount < self.maxWait:
self.waitCount += 1
else:
self.waitCount = 0
self.facingChanged = True
if self.frame < self.maxFra... | ise-uiuc/Magicoder-OSS-Instruct-75K |
Examples
========
>>> from sympy.strategies.tools import subs
>>> from sympy import Basic
>>> mapping = {1: 4, 4: 1, Basic(5): Basic(6, 7)}
>>> expr = Basic(1, Basic(2, 3), Basic(4, Basic(5)))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
torch.cuda.synchronize()
top1.update(acc1.item(), images.size(0))
top5.update(acc5.item(), images.size(0))
acc1, acc5 = top1.avg, top5.avg
print('%10.3g' * 2 % (acc1, acc5))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def reposition_match(self, line, col, m, vv):
match = m.match
if (
col is None
or 'endLine' not in match
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import moire
from moire import Expression
__all__ = [
'argmax', 'argmin',
'epsilon_argmax', 'epsilon_argmin',
'gumbel_argmax', 'gumbel_argmin',
]
def argmax(x: Expression, axis: int = None) -> int:
return int(x.npvalue().argmax(axis=axis))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
repeat(filename),
repeat('optional'),
sorted(v.optional_environment_variables)
)))
envvars.extend(list(zip(
repeat(filename),
repeat('required'),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>spacemanspiff2007/eascheduler
from .executor import AsyncExecutor, AsyncThreadSafeExecutor, ExecutorBase, SyncExecutor
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if(a[i] != 0){
swap(a[id++], a[i]) ;
}
}
}
};
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def clear():
"""
clear cmd/term
:return: void
"""
import os
import sys
if sys.platform == 'win32':
os.system('cls') # on windows
else:
os.system('clear') # on linux / os x
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from typing import Dict
from pyspark.sql import DataFrame
dataset_group = Dict[str, DataFrame]
class EtlBase:
@abstractmethod
def etl(self, inputs: dataset_group) -> dataset_group:
raise NotImplementedError()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# The MIT License (MIT) - Copyright (c) 2016-2021 <NAME>.
import pytest
from skidl import netlist_to_skidl
from .setup_teardown import get_filename, setup_function, teardown_function
def test_parser_1():
netlist_to_skidl(get_filename("Arduino_Uno_R3_From_Scratch.net"))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export * from "./getAccess";
export * from "./tryRefresh";
| ise-uiuc/Magicoder-OSS-Instruct-75K |
index_bits_be: &[Scalar<F>],
array: &[Scalar<F>],
) -> Result<Scalar<F>>
where
F: Field,
CS: ConstraintSystem<F>,
{
assert!(!array.is_empty(), "internal error in recursive_select 1");
if array.len() == 1 {
return Ok(array[0].clone());
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
node main.js
| ise-uiuc/Magicoder-OSS-Instruct-75K |
errorSummaryByColumnName[memberName] = validationResults;
return !validationResults.Any();
}
protected void SetUserPropertyValue<T>(T value, [CallerMemberName] string memberName = "") =>
SetUserPropertyValue(value, false, memberName);
protected void SetUserPropertyValue<T>(T value, bool ignoreValidat... | ise-uiuc/Magicoder-OSS-Instruct-75K |
keepout_color.setAlphaF(0.3)
painter.setPen(Qt.black)
painter.setBrush(keepout_color)
painter.drawEllipse(point, size, size)
# レフェリーテキストをカーソル周辺に表示する
if self._decoded_referee.referee_text:
# カーソル座標を取得
current_pos = self._convert_to_... | ise-uiuc/Magicoder-OSS-Instruct-75K |
import UIKit
import PlaygroundSupport
class Ball : UIView{
var color: UIColor!{
didSet{
self.setNeedsDisplay()
}
}
var elasticity: CGFloat!
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#-----------------------------------------------------------------------------------
def add_binding(self, widge):
"""
"""
widge.bind('<Enter>', self.change_txt_color)
widge.bind('<Leave>', self.change_txt_def_color)
return
#... | ise-uiuc/Magicoder-OSS-Instruct-75K |
bLaunched = launchConfirmMenu(pPopup, info);
break;
case BUTTONPOPUP_PYTHON_SCREEN:
bLaunched = launchPythonScreen(pPopup, info);
break;
case BUTTONPOPUP_DEAL_CANCELED:
bLaunched = launchCancelDeal(pPopup, info);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
# Get detections
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pass
class J2XException(Exception):
pass
| ise-uiuc/Magicoder-OSS-Instruct-75K |
postAddrRstCmds = [sC.postAddrResetCmd for sC in superCmds]
Tcmds = [cmd for sC in superCmds for cmd in sC.Tcmds]
postTrstCmds = [sC.postTresetCmd for sC in superCmds]
allCmds = initRstCmds + addrCmds + postAddrRstCmds + Tcmds + postTrstCmds + superCmds
# return list
return allCmds
def TCcmdsFromJSON(JSON):
cmd... | ise-uiuc/Magicoder-OSS-Instruct-75K |
break;
case 'hight':
this.color = '#FCB614';
break;
case 'normal':
this.color = '#00CBB2';
break;
case 'low':
| 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 ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
class CharacterUpdate(UpdateView):
model = Character
fields = ['name', 'lastEpisode']
template_name = 'character_update.html'
success_url = reverse_lazy('character_list')
class DeleteCharacter(DeleteView):
model = Character
template_name = 'character_delete.html'
success_url = reverse_lazy... | ise-uiuc/Magicoder-OSS-Instruct-75K |
}
public function send(Booking $booking): void
{
$this->counter++;
}
public function timesSendWasCalled(): int
{
return $this->counter;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from project.gui.gui import * | ise-uiuc/Magicoder-OSS-Instruct-75K |
# if c==e -1:
# fin = fin+str(c)+":{\"Draw\":"+splitByT[1]+",\"Prepare\":"+splitByT[2]+",\"Process\":"+splitByT[3]+",\"Execute\":"+splitByT[4].strip()+"}}"
# else:
# fin = fin+str(c)+":{\"Draw\":"+splitByT[1]+",\"Prepare\":"+splitByT[2]+",\"Process\":"+splitByT[3]+",\"Execute\":"+splitByT[4].str... | ise-uiuc/Magicoder-OSS-Instruct-75K |
foo = {}
for i,j in enumerate(nums):
complement = target-j
if (complement in foo):
return [foo.get(complement), i]
foo[j] = i
return None
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def main():
parser = argparse.ArgumentParser(description = "lstm segment args.")
parser.add_argument("-a","--action",type=str,default="predict",help="train or predict")
parser.add_argument("-c","--corpus",type=str,default="data/msr_train.txt",help="train file")
parser.add_argument("-v","--vocab_model"... | ise-uiuc/Magicoder-OSS-Instruct-75K |
class Aquifer_yr(Aquifer):
pass
class Aquifer_aa(Aquifer):
pass
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Test conditionals in project requirements.
t.write("jamroot.jam", """
project : requirements <link>static:<define>STATIC ;
exe a : a.cpp ;
""")
t.run_build_system(["link=static"])
t.expect_addition("bin/$toolset/debug/link-static/a.exe")
t.rm("bin")
# Regression test for a bug found by <NAME>ani. Conditionals inside... | ise-uiuc/Magicoder-OSS-Instruct-75K |
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
| ise-uiuc/Magicoder-OSS-Instruct-75K |
plt.subplot(Q, 6, pos);
plt.imshow(np.array(Image.open(query_img)), vmin=0, vmax=255);
plt.title(f'Q{j}')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import android.database.sqlite.SQLiteDatabase.CursorFactory;
import android.database.sqlite.SQLiteOpenHelper;
import android.database.sqlite.SQLiteQueryBuilder;
import android.net.Uri;
import android.text.TextUtils;
public class StudentsProvider extends ContentProvider{
static final String PROVIDER_NAME = "com.laptr... | ise-uiuc/Magicoder-OSS-Instruct-75K |
name='owner_address', full_name='protocol.ProposalApproveContract.owner_address', index=0,
number=1, type=12, cpp_type=9, label=1,
has_default_value=False, default_value=_b(""),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
seriali... | ise-uiuc/Magicoder-OSS-Instruct-75K |
module purge #to avoid conflict with samtools
module load bwa-kit/0.7.15
time bwa index $REF
echo "bwa index completed"
########
#### BAM ALIGNEMENT ####
echo "starting alignment"
module purge #to avoid conflict with samtools
| ise-uiuc/Magicoder-OSS-Instruct-75K |
X = np.concatenate(
[X[i::number_of_examples_per_class]
for i in range(number_of_examples_per_class)])
y = np.concatenate(
[y[i::number_of_examples_per_class]
for i in range(number_of_examples_per_class)])
dataset_size = number_of_classes * number_of_examples_per_class
# train - validation - ... | 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.