seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
Since normally only a single equation is needed in a given script,
no equations are imported by default when importing :mod:`psdns`.
Users can also implement their own equations. There is no need to
subclass from any specific base class, any class that implements a
:meth:`rhs` method can be used as an equation.
The :mod:`~psdns.equations` sub-module also includes some functions
| ise-uiuc/Magicoder-OSS-Instruct-75K |
rx = lambda: sock.recv_string()
return ctx, rx
def wire_pickle(x):
return pickle.dumps(x).decode('latin1')
def wire_unpickle(x):
return pickle.loads(x.encode('latin1')) | ise-uiuc/Magicoder-OSS-Instruct-75K |
public void setUseServerPrepStmts(String useServerPrepStmts) {
this.useServerPrepStmts = useServerPrepStmts;
}
public String getConnectionCharacter() {
return connectionCharacter;
}
public void setConnectionCharacter(String connectionCharacter) {
this.connectionCharacter = connectionCharacter;
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
rng = np.random.default_rng(0)
return rng.poisson(mean_val, size=shape).astype(dtype)
def check_downscaled(self, downscaled, shape, scale_factor=2):
expected_shape = shape
for data in downscaled:
assert data.shape == expected_shape
expected_shape = expected_shape[:-2] + tuple(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from yt_concate.pipeline.steps.step import Step
from yt_concate.setting import VIDEOS_DIR, CAPTIONS_DIR
class Postflight(Step):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for m in self.modules():
if isinstance(m, nn.Conv2d):
nn.init.kaiming_normal_(m.weight, mode='fan_out', nonlinearity='relu')
if m.bias is not None:
nn.init.constant_(m.bias, 0)
elif isinstance(m, nn.BatchNorm2d):
nn.init.constant_(m.weight, 1)
nn.init.constant_(m.bias, 0)
elif isinstance(m, nn.Linear):
nn.init.normal_(m.weight, 0, 0.01)
nn.init.constant_(m.bias, 0)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@IBOutlet weak var mBarValueLabel: UILabel!
@IBOutlet weak var mmHgValueLabel: UILabel!
@IBOutlet weak var torrValueLabel: UILabel!
@IBOutlet weak var atmValueLabel: UILabel!
| ise-uiuc/Magicoder-OSS-Instruct-75K |
url(r'^bar/$', url, name='bar'),
]
self.patcher = patch.object(
wagtail_core_urls,
'urlpatterns',
root_patterns
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
max_num = "".join([str(i) for i in number])
print(max_num) | ise-uiuc/Magicoder-OSS-Instruct-75K |
setup(
name = 'Python 3 bindings for libtcod',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.adjusted_close_values_with_http_info(registration_number, currency, start_date, end_date, period_frequency, interpolation_type, **kwargs) # noqa: E501
else:
(data) = self.adjusted_close_values_with_http_info(registration_number, currency, start_date, end_date, period_frequency, interpolation_type, **kwargs) # noqa: E501
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import os
_DOCUMENTS = os.path.expanduser('~/Documents')
def strip_documents_folder(path):
"""
Strip ~/Documents part of the path.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if i not in noRepetitions:
noRepetitions.append(i)
# Same thing in one line:
# [noRepetitions.append(i) for i in resultRepetitions if i not in noRepetitions]
# See Exercise 14 for functions to remove duplicates!
print("List 1: " + str(a))
print("List 2: " + str(b))
print("List of numbers in both lists with repetitions:" + str(resultRepetitions))
print("List of numbers in both lists without repetitions:" + str(noRepetitions))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
urlpatterns = default_urlpatterns(AgaveProvider)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
logger.info(f"Saving 'x' to {self.x_path}")
pd.DataFrame(x).to_csv(self.x_path, sep='\t')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from flask import Flask
from .config import app_config
from .models import db, bcrypt
from .models import UserModel, ReviewModel, NodeModel,AmenityModel,TourismModel,ShopModel
def create_app(env_name):
"""
Create app
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import example.model.Customer223;
import java.util.List;
import org.springframework.data.repository.CrudRepository;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# project_dir is a convienience variable assuming each project is
# rooted from a common directory inside the workspace dir.
#
# workspace_dir
# -> project_dir (indexer)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public async Task<AuthenticationResult> Login( AuthenticateUserCommand authenticateUserCommand )
{
User user = await _userRepository.GetByLogin( authenticateUserCommand.Login );
if ( user == null )
{
return new AuthenticationResult( false, "user" );
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// Copyright (c) 2018 SummerHF(https://github.com/summerhf)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
| ise-uiuc/Magicoder-OSS-Instruct-75K |
url = 'https://api.douban.com/v2/group/656297/topics?start=' + str(start) + '&count=' + str(count)
header = {'User-Agent':'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36 Edg/79.0.309.56'}
req = urllib.request.Request(url = url, headers = header)
nowtime = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
| ise-uiuc/Magicoder-OSS-Instruct-75K |
T inf = std::numeric_limits<T>::max();
std::vector<T> lis(a.size(), inf);
for (const T& x: a) *std::lower_bound(lis.begin(), lis.end(), x) = x;
auto i = std::lower_bound(lis.begin(), lis.end(), inf);
return std::vector<T>(lis.begin(), i);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* @return true,若边添加成功。当边已存在时,返回false。
*/
virtual bool addEdge(int tail, int head) = 0;
/**
* 添加新边。
* @param tail 弧尾。
* @param head 弧头。
* @param weight 边权。
* @return true,若边添加成功。当边已存在时,返回false。
*/
virtual bool addEdge(int tail, int head, double weight) = 0;
~Graph() {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if lang == 'en-us':
from en_us import *
elif lang == 'pt-br':
from pt_br import *
else:
raise Exception(f'There are no lang option called {lang}')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
model_name='catenauser',
name='public_key',
field=models.CharField(blank=True, max_length=31, verbose_name='public key'),
),
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
response = []
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import UIKit
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
// ----------------------------------------------------------------------//
}; // namespace sim
| ise-uiuc/Magicoder-OSS-Instruct-75K |
s0_ref = [x for i, x in enumerate(s0_ref) if i in sampled_idxs]
s0_pred = [x for i, x in enumerate(s0_pred) if i in sampled_idxs]
sampled_idxs = sample(range(len(s1_ref)), n_sample)
s1_ref = [x for i, x in enumerate(s1_ref) if i in sampled_idxs]
s1_pred = [x for i, x in enumerate(s1_pred) if i in sampled_idxs]
bleu_s0 = eval_bleu_detail(s0_ref, s0_pred)
bleu_s1 = eval_bleu_detail(s1_ref, s1_pred)
dist_s0 = eval_distinct_detail(s0_pred)
dist_s1 = eval_distinct_detail(s1_pred)
f1_s0 = eval_f1(s0_ref, s0_pred)
f1_s1 = eval_f1(s1_ref, s1_pred)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<?php
namespace App;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for r in zip(*layers):
layer = []
for p in zip(*r):
layer.append([x for x in p if x != "2"][0])
res.append(layer)
return res
for l in p2():
print("".join(l).replace("0", " ").replace("1", "█"))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
cat iteg.out
| ise-uiuc/Magicoder-OSS-Instruct-75K |
--preemptible \
--num-nodes 0 \
--disk-size 10GB \
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public function photo()
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public IDictionary<string, string> DictionaryStrings { get; set; }
}
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
ads_data: [u8; MAXDATALEN], // contains the data
}
#[derive(Debug, PartialEq, Clone, FromPrimitive)]
pub enum IndexGroup {
/// READ_M - WRITE_M
Memorybyte = 0x4020,
/// plc memory area (%M), offset means byte-offset
/// READ_MX - WRITE_MX
| ise-uiuc/Magicoder-OSS-Instruct-75K |
access_header, _ = login_get_headers(client, "admin", "xss")
create_client(client, access_header, name="name1", description="desc1")
client_name1 = Client.query.first()
get_x(client, access_header, "r", client_name1.uid, test_data="test")
rv = get_clients(client, access_header)
assert json.loads(rv.data)[0]["data"] == 1
def test_client_to_dict_client(client):
access_header, _ = login_get_headers(client, "admin", "xss")
new_user(client, access_header, username="test")
create_client(client, access_header, name="name1", description="desc1")
edit_client(client, access_header, 1, owner=2)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
}
}
fn setup_agent_graphics(
&self,
agent: &Box<dyn Agent>,
agent_render: Box<dyn AgentRender>,
mut sprite_bundle: SpriteBundle,
commands: &mut Commands,
state: &Box<&dyn State>,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class TripService : CrudServiceBase<int, Trip, ITripRepository>, ITripService
{
public TripService(ITripRepository repository)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
n = int(sys.stdin.readline().rstrip())
s, t = sys.stdin.readline().split()
def main():
res = [None] * n * 2
res[::2] = list(s)
res[1::2] = list(t)
return ''.join(res)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.concurrent.Callable;
import java.util.concurrent.FutureTask;//JUC包,java的并发包,老jdk中没有这个包,新特性
/**
* 创建线程的第三种方式(JDK8新特性):
* 1. 编写自定义类实现java.util.concurrent.Callable接口,并重写未实现方法call(),call()类似于Runnable的run()方法,只不过call()方法有返回值
* 2. 创建java.util.concurrent.FutureTask对象,将Callable接口的实现类对象作为构造参数传入
* 3. 创建java.util.Thread对象,将FutureTask对象作为构造参数传入
*/
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub use error::Error as WalletError;
pub use keystore::{
zeroize_privkey, zeroize_slice, CipherParams, Crypto, DerivedKeySet, Error as KeyStoreError,
KdfParams, Key, KeyChain, KeyStore, KeyTimeout, MasterPrivKey, ScryptParams, ScryptType,
};
| ise-uiuc/Magicoder-OSS-Instruct-75K |
walls_witdh = int(input())
percentage_walls_tottal_area_not_painted = int(input())
total_walls_area = walls_hight * walls_witdh * 4
quadratic_meters_left = total_walls_area - ceil(total_walls_area * percentage_walls_tottal_area_not_painted / 100)
while True:
paint_liters = input()
if paint_liters == "Tired!":
print(f"{quadratic_meters_left} quadratic m left.")
break
| ise-uiuc/Magicoder-OSS-Instruct-75K |
('accepted', models.BooleanField(default=False)),
('deleted', models.BooleanField(default=False)),
('requester', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='membership_requests', to=settings.AUTH_USER_MODEL)),
('target', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='membership_requests', to='friends.Group')),
],
),
migrations.AlterField(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
reward = -1000
numPt = len(closestPoints)
#print(numPt)
if (numPt>0):
#print("reward:")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<a href="#" class="close" data-dismiss="alert">×</a>
<strong>¡Información!</strong> <?php echo $Mensaje; ?>
</div>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pre_release_version_no_space="$(echo -e "${pre_release_version}" | tr -d '[[:space:]]')"
if [ ! -z "$pre_release_version_no_space" ]; then
full_version=$full_version-$pre_release_version_no_space
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#ifndef LZZ_ENABLE_INLINE
#include "smtc_NavSubmitFuncDefn.inl"
#endif
#define LZZ_INLINE inline
namespace smtc
{
NavSubmitFuncDefn::~ NavSubmitFuncDefn ()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Salidas
Descuento --> float -->desc
"""
C=float(input("Digite el valor de la compra: "))
desc=(C*0.15)
#cajanegra
toaltal=(C-desc)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
libcairo2-dev libx11-dev libxpm-dev libxt-dev python-dev \
ruby-dev mercurial checkinstall build-essential cmake
e_header "Removing old vim installs."
sudo apt-get -qq remove vim vim-runtime vim-common vim-gui-common gvim
e_header "Cloning VIM repository."
cd ~
hg clone https://code.google.com/p/vim/ ~/vim-build
cd vim
./configure --with-features=huge \
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if __name__ == '__main__':
app = get_pages_specs([multiple_input], page_factory=DFLT_PAGE_FACTORY)
app['Multiple Input'](None)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
use Shopware\Core\Framework\ShopwareHttpException;
class SatispaySettingsInvalidException extends ShopwareHttpException
{
public function getErrorCode(): string
{
return 'SATISPAY_PLUGIN__SETTING_EXCEPTION';
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
});
Assert.Equal(@"{""c"":{""d"":5,""a"":1},""b"":2,""a"":1}", obj2.ToString(Formatting.None));
var signedString = s1.Sign(obj1);
Assert.Equal("<KEY>==.RHngY7sw47+PQ0P20W4+dNmPKV8=", signedString);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
.add("handsome", handsome)
.add("house", house)
.toString();
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@flask.cli.with_appcontext
def drop_db():
try:
if flask.current_app.config.get('RESTAPI_VERSION', 'prod') != 'dev':
print('Cannot drop DB: RESTAPI_VERSION is not \'dev\'')
return
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Ask the API who this RFID corresponds to
(user_id, api_request_id) = client.rfid(rfid, "Some Meta String")
if user_id is None:
print("No such User")
else:
# Get more information about the user
user = client.user(user_id)
print("Username: {}".format(user['username']))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<div class="md-p-l-20 md-p-r-20 xs-no-padding" style="color:{{$estrutura->corfonte}}">
<div class="row">
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let mut image = TgaImage::new(TgaImageType::TrueColorImage, 25, 25, 24)?;
// Set first pixel to red
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#include "base/strings/string_util.h"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
-------------------------------------------------
"""
__author__ = 'x3nny'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# result in fk_gpu.
plan.execute(to_gpu(c), fk_gpu)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for index, valor in enumerate(valores):
menor = min(valores)
if valor == menor:
print(f' {index}... ', end='')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
use anyhow::{Context, Result};
#[cfg(unix)]
pub use crate::dense_file::Advice;
pub use crate::dense_file::{DenseFileCache, DenseFileCacheOpts};
pub use crate::hashmap::HashMapCache;
mod dense_file;
mod hashmap;
const LAT_I32_RATE: f64 = i32::MAX as f64 / 90_f64;
const I32_LAT_RATE: f64 = 1_f64 / LAT_I32_RATE;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return;
}
}
},
None => {
eprintln!("Invalid zip path. Exiting...");
return;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from fts.backends.base import InvalidFtsBackendError
raise InvalidFtsBackendError("Xapian FTS backend not yet implemented") | ise-uiuc/Magicoder-OSS-Instruct-75K |
verify( updater, times( 1 ) ).updateEntity( userObject2, data2 );
assertEquals( response.getEntityUpdateCount(), 2 );
assertEquals( response.getEntityRemoveCount(), 1 );
assertFalse( Disposable.isDisposed( entity2 ) );
assertTrue( Disposable.isDisposed( entity3 ) );
}
@SuppressWarnings( "unchecked" )
@Test
public void processEntityChanges_referenceNonExistentSubscription()
{
final int schemaId = 1;
final ChannelSchema channelSchema =
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<gh_stars>1-10
#include <iostream>
#include <iomanip>
#include <cmath>
#include <cstring>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
export default Timer as SFCWithInstall<typeof Timer>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
src_file = os.path.join(src_path, filename)
with open(src_file, 'r') as f:
for line in f.readlines():
fill = line.replace('\n', '')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.horizontalLayout = QtWidgets.QHBoxLayout()
self.horizontalLayout.setObjectName("horizontalLayout")
self.monoMix = QtWidgets.QCheckBox(extractAudioDialog)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// a closing inline tag then dont replace with a space
if scanner.scanString("/", intoString: nil) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
name='emails',
field=models.ManyToManyField(to='companies.Email', verbose_name='emails'),
),
migrations.AddField(
model_name='company',
name='phones',
field=models.ManyToManyField(to='companies.Phone', verbose_name='phones'),
),
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import dials.model.data # noqa: F401; true import dependency
| ise-uiuc/Magicoder-OSS-Instruct-75K |
package splosno;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
private function addAALevelConformanceTag(Issue $issue) : void
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ZeroCrossingRateExtractor,
ChromaSTFTExtractor,
ChromaCQTExtractor,
ChromaCENSExtractor,
MelspectrogramExtractor,
MFCCExtractor,
TonnetzExtractor,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self._maxSpeeds[token] = speed
(limit, callback) = self._speedLimits[token]
if speed > limit:
self.notify.warning('%s over speed limit (%s, cur speed=%s)' % (nodepath, limit, speed))
callback(speed)
return Task.cont
| ise-uiuc/Magicoder-OSS-Instruct-75K |
kw = self.kwargs.copy()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
long distX(0), distY(0);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
namespace LegacyTimeDemoRecorder
{
class LegacyTimeDemoRecorderModule
: public CryHooksModule
{
public:
AZ_RTTI(LegacyTimeDemoRecorderModule, "{990D14D8-02AC-41C3-A0D2-247B650FCDA1}", CryHooksModule);
AZ_CLASS_ALLOCATOR(LegacyTimeDemoRecorderModule, AZ::SystemAllocator, 0);
LegacyTimeDemoRecorderModule()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
cmd = "git show -s --format=%ct"
dt = datetime.fromtimestamp(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub fn try_get_proc(&self) -> Result<&Injectee> {
match &self.proc {
None => bail!("programming error: tracee is not attached."),
Some(proc) => Ok(proc),
}
}
fn try_get_proc_mut(&mut self) -> Result<&mut Injectee> {
match &mut self.proc {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
osrm-extract osrm/map.osm.xml -p osrm/profiles/bicycle.lua
osrm-contract osrm/map.osrm
osrm-routed osrm/map.osrm
| ise-uiuc/Magicoder-OSS-Instruct-75K |
model_name='task',
name='author',
field=models.CharField(default='Anonymous', max_length=100),
),
migrations.AlterField(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def pre(this):
pass
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if __name__ == "__main__":
debugger = GraphicDebuggerController(Config())
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from sklearn.model_selection import train_test_split, KFold, TimeSeriesSplit
import keras.backend as K
import keras
from typing import List, Tuple
import copy
import tensorflow as tf
import matplotlib.pyplot as plt
from collections import deque
plt.style.use('seaborn-whitegrid')
import matplotlib.gridspec as gridspec
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// CharacterDetailPresenterProtocol.swift
// StarWarsApp
//
// Created by Aleksandr Fetisov on 27.10.2021.
//
import Foundation
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// prueba para la nueva vista
Route::get('index', 'HomeController@prueba'); | ise-uiuc/Magicoder-OSS-Instruct-75K |
def parse(self, s):
q = self.ur.Quantity(s)
my_q = Quantity(0,"mL")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
preventApplicationFromStartingInTheBackgroundWhenTheStructureSensorIsPlugged()
let authStatus = AVCaptureDevice.authorizationStatus(for: AVMediaType.video)
if authStatus != .authorized {
NSLog("Not authorized to use the camera!")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
("sleuthpr", "0016_auto_20201010_0654"),
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if(!isset($province)){return redirect($redirect_error);};
if(!isset($phone)){return redirect($redirect_error);};
if(!isset($nit)){return redirect($redirect_error);};
if(!isset($utility)){return redirect($redirect_error);};
if(!isset($payment_number)){return redirect($redirect_error);};
if(!isset($amount)){return redirect($redirect_error);};
$base=db_supervisor_has_agent::where('id_user_agent',Auth::id())->first()->base;
$base_credit = db_credit::whereDate('created_at',Carbon::now()->toDateString())
->where('id_agent',Auth::id())
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""Gets the probability_calibrated of this FirstLastNameUSRaceEthnicityOut. # noqa: E501
:return: The probability_calibrated of this FirstLastNameUSRaceEthnicityOut. # noqa: E501
| ise-uiuc/Magicoder-OSS-Instruct-75K |
i = i + 1
i = 0
for fflinem in myfilem:
newfilem = fflinem.strip('\n')
memmispell[i] = newfilem
i = i + 1
#**********************data initialization*******************************
# three data set are : memmispell. .
# memcorrect .
#.............memdictionary.............................................
info = []
max_distance = 1
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# potentially be large amount of time between that call and this one,
# and the element might have gone stale. Lets just re-acquire it to avoid
# tha
last_follower = waiter.find_element(self.driver, follower_css.format(group+11))
self.driver.execute_script("arguments[0].scrollIntoView();", last_follower)
'''
High level API
'''
def sign_in(self):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/**
* Copyright by <NAME>
* Research Group Applied Systems Biology - Head: Prof. Dr. <NAME>
* https://www.leibniz-hki.de/en/applied-systems-biology.html
* HKI-Center for Systems Biology of Infection
* Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Insitute (HKI)
* Adolf-Reichwein-Straße 23, 07745 Jena, Germany
*
* This code is licensed under BSD 2-Clause
* See the LICENSE file provided with this code for the full license.
*/
#include <misaxx/ome/caches/misa_ome_tiff_cache.h>
#include <misaxx/ome/attachments/misa_ome_planes_location.h>
#include <misaxx/core/runtime/misa_parameter_registry.h>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
entry = self.feed.entry[0]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
travis = yaml.load(open(sys.argv[1]))
travis_sources = travis['addons']['apt']['sources']
travis_packages = travis['addons']['apt']['packages']
before_install = travis['before_install']
script = travis['script']
# I could not get a better way to do this
AddSourceCmd = {
"llvm-toolchain-trusty-6.0" : "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-6.0 main | tee -a /etc/apt/sources.list > /dev/null",
"ubuntu-toolchain-r-test" : "apt-add-repository -y \"ppa:ubuntu-toolchain-r/test\""
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
func sceneDidDisconnect(_ scene: UIScene) {
// Called as the scene is being released by the system.
// 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 neccessarily discarded (see `application:didDiscardSceneSessions` instead).
}
func sceneDidBecomeActive(_ scene: UIScene) {
// Called when the scene has moved from an inactive state to an active state.
// Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive.
}
func sceneWillResignActive(_ scene: UIScene) {
| 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.