seed stringlengths 1 14k | source stringclasses 2 values |
|---|---|
import tensorflow.keras
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense, Activation, Flatten
# from cleverhans.model import Model, NoSuchLayerError
import tensorflow as tf
from abc import ABCMeta
| ise-uiuc/Magicoder-OSS-Instruct-75K |
finally:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
geopandas.read_file(os.path.join(this_directory, "data/alpha_fifth.gpkg"))
.geometry.to_numpy()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def server(address, port):
serv = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
serv.bind((address, port))
serv.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.lang_name = lang_name
self.lang_code = lang_code
| ise-uiuc/Magicoder-OSS-Instruct-75K |
people: number;
week: number;
};
};
| ise-uiuc/Magicoder-OSS-Instruct-75K |
})
jest.mock('../src/util/utils')
const mockIdentifier = '0x000'
const mockInviter1 = '0x0001'
const mockInviter2 = '0x0002'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
yield scrapy.Request(url=url, callback=self.parseArticle, headers=self.defaultHeaders)
def parseArticle(self, response):
yield {
'title': response.css('.artTit::text')[0].extract(),
'content': "".join(response.css('.artText *::text').extract()),
'tag': " ".join(response.css('.artLabel a::text').extract()),
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public DataAccessException(String msg) {
super(msg);
}
public DataAccessException(Throwable cause) {
super(cause);
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
return { proxyPrefix, preparePluginFunctions, generatePluginFunctions }
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ii(0x100c_e183, 5); call(0x1007_02b9, -0x5_decf); /* call 0x100702b9 */
ii(0x100c_e188, 3); test(ax, ax); /* test ax, ax */
ii(0x100c_e18b, 2); if(jnz(0x100c_e18f, 2)) goto l_0x100c_e18f;/* jnz 0x100ce18f */
l_0x100c_e18d:
ii(0x100c_e18d, 2); jmp(0x100c_e195, 6); goto l_0x100c_e195;/* jmp 0x100ce195 */
l_0x100c_e18f:
ii(0x100c_e18f, 4); mov(memb[ss, ebp - 20], 1); /* mov byte [ebp-0x14], 0x1 */
ii(0x100c_e193, 2); jmp(0x100c_e199, 4); goto l_0x100c_e199;/* jmp 0x100ce199 */
l_0x100c_e195:
ii(0x100c_e195, 4); mov(memb[ss, ebp - 20], 0); /* mov byte [ebp-0x14], 0x0 */
l_0x100c_e199:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
:param shuffle: randomize order of files
:return: AudioIODataset with tuples (data, label)
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
}
// MARK: - Make Frame
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from . import cif
from . import ascii
from . import xyz
# __all__ = filter(lambda s: not s.startswith('_'), dir())
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def to_expr_string(self) -> str:
return self.opkind.to_expr_string()
def __str__(self) -> str:
return str(self.opkind)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let ebb3 = Ebb::new(3);
let ebb4 = Ebb::new(4);
let vals = [ebb1, ebb2, ebb4];
let comp = ();
assert_eq!(comp.search(ebb1, &vals), Ok(0));
assert_eq!(comp.search(ebb3, &vals), Err(2));
assert_eq!(comp.search(ebb4, &vals), Ok(2));
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def populate_matrix(self, t):
treatments = self.sim.treatments[t, :]
for i in range(len(self.sim.subclones)):
for j in range(len(self.sim.subclones)):
fj = np.dot(self.sim.subclones[j].alpha, treatments)
fi = np.dot(self.sim.subclones[i].alpha, treatments)
# print (self.sim.subclones[j].alpha)
# print (treatments)
self.matrix[i, j] = fj - fi
def print_matrix(self):
labs = [s.label for s in self.sim.subclones]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
resize="-resize x${max}"
else
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let var_diff = verifier.commit(commitments[1]);
let alloc_scal_diff = AllocatedScalar {
variable: var_diff,
assignment: None,
};
let var_diff_inv = verifier.commit(commitments[2]);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if (argc == 2) {
uri = argv[1];
} else if (argc > 2) {
std::cout << "Usage: `echo_client test_url`" << std::endl;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
popDF.set_index('State', inplace=True)
population = popDF.loc[stateName, 'Pop']
return population
| ise-uiuc/Magicoder-OSS-Instruct-75K |
description:
Init file for 'visit_utils.builtin' module.
"""
from .evalfuncs import *
from .writescript import WriteScript
from .convert2to3 import ConvertPy2to3 | ise-uiuc/Magicoder-OSS-Instruct-75K |
}
else if (Table.gameState == GameState.Flop)
{
if (cardsPulled.Count - 1 > turnCard)
{
Debug.Log("misdeal here");
Services.Dealer.TriggerMisdeal();
}
}
else if (Table.gameState == GameState.Turn || Table.gameState == GameState.River)
{
if (cardsPulled.Count - 1 > riverCard)
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@section('title', 'Add Startup Script')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
res = { "code": 401, "msg": str(e) }
return res
| ise-uiuc/Magicoder-OSS-Instruct-75K |
printf("Address of c: %u\n", &c);
printf("Value of c: %d\n\n", c);
return 0;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
The name of the accession
files : iterable of str
Files associated with the accession
**kwargs : keyword arguments
Any number of key=value arguments that
contain metadata.
Returns
-------
An accession object
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#include "base.h"
#include "cords.h"
#include "align_util.h"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub mod common;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//
@testable
import TrieCollections
| ise-uiuc/Magicoder-OSS-Instruct-75K |
source /home/pi/mavros_catkin_ws/devel/setup.bash
source /home/pi/aqua_catkin_ws/devel/setup.bash
export ROS_MASTER_URI=http://192.168.2.1:11311
export ROS_IP=192.168.2.2
#export ROS_MASTER_URI=http://blue2shore.clients.wireless.dtu.dk:11311
#export ROS_IP=10.16.154.89
| ise-uiuc/Magicoder-OSS-Instruct-75K |
[SerializeField] private float m_ZeroLiftSpeed = 300; // The speed at which lift is no longer applied.
[SerializeField] private float m_PitchEffect = 1f; // The strength of effect for pitch input.
[SerializeField] private float m_AerodynamicEffect = 0.02f; // How much aerodynamics affect the speed of the aeroplane.
[SerializeField] private float m_AirBrakesEffect = 3f; // How much the air brakes effect the drag.
[SerializeField] private float m_ThrottleChangeSpeed = 0.3f; // The speed with which the throttle changes.
[SerializeField] private float m_DragIncreaseFactor = 0.001f; // how much drag should increase with speed.
[SerializeField] private float m_torqueFactor = 0.1f;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
use casper_contract::contract_api::storage::create_contract_package_at_hash;
#[no_mangle]
pub extern "C" fn call() {
let (contract_package_hash, _) = create_contract_package_at_hash();
let entry_points = cep47::get_entrypoints(Some(contract_package_hash));
cep47::deploy(
get_named_arg::<String>("token_name"),
get_named_arg::<String>("token_symbol"),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if (a-c)*(d-f)==(b-d)*(c-e):
print('WHERE IS MY CHICKEN?')
else:
print('WINNER WINNER CHICKEN DINNER!') | ise-uiuc/Magicoder-OSS-Instruct-75K |
# apply the model to pym
pym_predictions = sequential_model.predict(pym_validation)
poe_accuracy = sum([probs[0] < 0.5 for probs in pym_predictions]) / len(pym_predictions)
nlp_logger.warning("Accuracy for Poe/pym: {:.4f}".format(poe_accuracy))
# Now we have to prepare Tom for validation
tom_set = tom.get_base_training_set()
tom_validation = Book.one_writer_multi_set(tom_set, sentences_per_sample=3,
samples_per_writer=-1, max_sentences_length=208)
# apply the model to tom
tom_predictions = sequential_model.predict(tom_validation)
tom_accuracy = sum([probs[0] > 0.5 for probs in tom_predictions]) / len(tom_predictions)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from django.shortcuts import redirect
from django.urls import clear_url_caches, reverse
# Localfolder Library
from ...base.models import PyPlugin
from .web_father import FatherListView
OBJECT_LIST_FIELDS = [
{'string': 'Nombre', 'field': 'name'},
{'string': 'Author', 'field': 'author'},
{'string': 'Description', 'field': 'description'},
{'string': 'Installed', 'field': 'installed'},
]
def Apps(request):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
String owner;
// final parameter
public void speedUp(final int newSpeed){
// Can't do that
// newSpeed *= 2;
speed = newSpeed;
}
public void setOwner(final String newOwner){
// Can't do that
// newOwner = "<NAME>";
owner = newOwner;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/**
* Debug context holder interface. By default debugging context stores in ThreadLocal variable {@link DefaultDebugContextHolder}
*
* @author <NAME>
*/
public interface DebugContextHolder {
/**
* Get debug context.
*
* @return DebugContext
*/
@Nullable
DebugContext getDebugContext();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
flags.DEFINE_float('momentum', 0.9, 'momentum factor')
flags.DEFINE_float('stddev', 0.02, 'stddev for W initializer')
flags.DEFINE_float('regularization_scale', 0.0001, 'regularization coefficient for W and b')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
except IOError:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
echo $portia_container_id
portia_container_pid=`sudo docker inspect --format {{.State.Pid}} $portia_container_id`
echo $portia_container_pid
sudo nsenter --target $portia_container_pid --mount --uts --ipc --net --pid
| ise-uiuc/Magicoder-OSS-Instruct-75K |
dev_src="../dynet_nmt/data/valid.de-en.de"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
extensions.append(
Extension(
# "name" defines the location of the compiled module
# within the package tree:
name='pypkgexample.mymodule_c_with_ctypes.hellofcctyp',
# "sources" are the source files to be compiled
sources=[('pypkgexample/mymodule_c_with_ctypes/'
+ '/src/hellofunctions.c')],
include_dirs=[('pypkgexample/mymodule_c_with_ctypes'
+ '/include')],
| ise-uiuc/Magicoder-OSS-Instruct-75K |
nn.LeakyReLU(0.2, inplace=True), nn.Dropout3d(0.25)]
if bn:
block.append(nn.BatchNorm3d(out_filters, 0.8))
return block
if self._has_gaussian_filter:
gaussian_weights = torch.distributions.normal.Normal(1, 1).sample(
(1, 1, gaussian_kernel, gaussian_kernel, gaussian_kernel))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/**
* 查询所有账户信息
* @return
*/
public List<Account> findAll();
/**
* 保存账户信息
* @param account
*/
| ise-uiuc/Magicoder-OSS-Instruct-75K |
The gridworld environment to be evaluated.
horizon: int
The horison of evaluating for given state. The good value is 3.
use_segments (optional): bool
The flag determines using of segments instead of cells to evaluate empowerment. By default: False.
use_memory (optional): bool
The flag determines using of the Memory object. Useful only if this object was initialised.
By default: False
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public void testfile() throws IOException {
Configuration conf = new Configuration();
FileSystem fs = FileSystem.get(getConf());
Path path = new Path("/user/tri1/subgraph/line_fd/part-r-00000");
SequenceFile.Reader reader = null;
try {
reader = new SequenceFile.Reader(fs, path, conf);
Writable key = (Writable) ReflectionUtils.newInstance(reader.getKeyClass(), conf);
Writable value = (Writable) ReflectionUtils.newInstance(reader.getValueClass(), conf);
long position = reader.getPosition();
while (reader.next(key, value)) {
String syncSeen = reader.syncSeen() ? "*" : "";
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if ctx.message.author.id != Config.QT_ID:
raise CanNotVerifyQt()
return True
return commands.check(predicate)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<filename>setup-env.sh
#!/bin/sh
export HOST_FQDN=$(kubectl get route knative-eventing-in-mem-demo --output jsonpath='{.status.domain}' -n knative-eventing-in-mem-domain)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
dump_nodes(stub)
dump_links(stub)
dump_addrs(stub)
dump_neighs(stub)
dump_routes(stub)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
unzip 3DShapeNetsCode
# convert to our format
python convert_shapenet10.py 3DShapeNets
| ise-uiuc/Magicoder-OSS-Instruct-75K |
];*/
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
func b<T, A : NSObject {
let d) -> : A : A? = {
class func d.s : C() {
}
func c: AnyObject) {
clas
}
}
}
}
func k) -> T>(m>: Sequence, q
| ise-uiuc/Magicoder-OSS-Instruct-75K |
RembThrottler remb_throttler(remb_sender.AsStdFunction(), &clock);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// public function transact($detailTransaksi = null)
// {
// $this->total = $this->total - $this->logAttribute['debit'] + $this->logAttribute['kredit'];
// isset($detailTransaksi->id) ? $this->logAttribute['detail_transaksi_id'] = $detailTransaksi->id :0;
// $this->save();
// $this->createLog();
// }
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
setCount(count + 1);
}, 1000);
return () => clearInterval(timerInterval);
} else {
setCount(0);
}
}, [status, count, limit]);
const getMinutesAndSeconds = (count: number) => {
return {
minutes: count >= 60 ? Math.floor(count / 60) : 0,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@param x {float}: the base number
@param n {int}: the power number
@return {float}: the result
"""
def myPow(self, x, n):
# write your code here
if n == 0:
return 1
ans = myPow (x, n // 2)
if n % 2 == 0:
return ans * ans
return ans * ans * x | ise-uiuc/Magicoder-OSS-Instruct-75K |
final int nStrikes = strikes.length;
final double[] res = new double[nStrikes];
| ise-uiuc/Magicoder-OSS-Instruct-75K |
kind='option',
options=[
'Magnitudes', 'Counts (per second)',
'Flux Densities (Jansky)'
],
none_string='No Photometry',
default='1')
# Look for columns that are band names if no mag/counts/flux dens
# column was found.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// <summary>
/// エンドポイント
/// </summary>
/// <param name="args">引数</param>
static void Main(string[] args)
{
// ログ出力用メソッド名
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return orientationVector(o.phi, o.theta);
}
McVec3f orientation3intcode::orientationVector(float phiDeg, float thetaDeg)
{
float phiRad = (phiDeg / 180.0) * M_PI;
float thetaRad = (thetaDeg / 180.0) * M_PI;
return McVec3f(
cos(thetaRad) * cos(phiRad),
cos(thetaRad) * sin(phiRad),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# 获得py文件名
def get_pyname():
global FileNum
return 'test_%d' % FileNum
# 接收代码写入文件
def write_file(pyname, code):
fpath = os.path.join(TempFile, '%s.py' % pyname)
with open(fpath, 'w', encoding='utf-8') as f:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
CommonModule,
FormsModule,
ProductRoutingModule,
PaginationModule,
SharedModule,
EditorModule
],
declarations: [
ProductListComponent,
ProductComponent,
PublicComponent
],
exports: [
| ise-uiuc/Magicoder-OSS-Instruct-75K |
(preds, nll) = sample(batch_x, output)
nlls = [nll]
orig_mask = batch_x[0][4:8].copy()
print("Orig mask", orig_mask.shape)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# for ph in self.ph_ob.values():
# if len(ph.shape.as_list()) == 5: # B,T,H,W,C
# logger.info("CnnTarget: using '%s' shape %s as image input" % (ph.name, str(ph.shape)))
# xr = ph[:, 1:]
# xr = tf.cast(xr, tf.float32)
# xr = tf.reshape(xr, (-1, *ph.shape.as_list()[-3:]))[:, :, :, -1:]
# xr = tf.clip_by_value((xr - self.ph_mean) / self.ph_std, -5.0, 5.0)
#
# xr = tf.nn.leaky_relu(conv(xr, 'c1r', nf=convfeat * 1, rf=8, stride=4, init_scale=np.sqrt(2)))
# xr = tf.nn.leaky_relu(conv(xr, 'c2r', nf=convfeat * 2 * 1, rf=4, stride=2, init_scale=np.sqrt(2)))
# xr = tf.nn.leaky_relu(conv(xr, 'c3r', nf=convfeat * 2 * 1, rf=3, stride=1, init_scale=np.sqrt(2)))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
DevMsg("CTFBotSpawner %08x: add periodic(%f, %f)\n", (uintptr_t)&periodic_tasks, task.cooldown, task.when);
periodic_tasks.push_back(task);
return true;
}
void ApplyAddCond(CTFBot *bot, std::vector<AddCond> &addconds, std::vector<DelayedAddCond> &delayed_addconds)
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
func getText() {
let text = getTextHandler()
print(text)
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class JenkinsPluginSourceUpToDatenessCollector(SourceUpToDatenessCollector):
"""Base class for Jenkins plugin source up-to-dateness collectors."""
async def _api_url(self) -> URL:
"""Extend to return the API URL for the job."""
return URL(f"{await super()._api_url()}/lastSuccessfulBuild/api/json")
async def _parse_source_response_date_time(self, response: Response) -> datetime:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
protected $table = 'energy_type';
| ise-uiuc/Magicoder-OSS-Instruct-75K |
di = n1//n2
e = n1 ** n2
print(f'A soma é {s}, o produto é {m} e a divisão é {d}')
print(f'Dovosão inteira {di} e potência {e}') | ise-uiuc/Magicoder-OSS-Instruct-75K |
}
else {
m_irq->Handle(0);
}
if (value & GS_CLEAR_STS) {
m_Status = 0;
m_Index = 0;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
repository.update(dr_key=id, field='mcqs', data=response['mcqs'])
else:
api.abort(404, 'Call this API after summary has been generated')
return response
# Returns response dictionary for McqGenerator Post Request
| ise-uiuc/Magicoder-OSS-Instruct-75K |
weak var delegate: BasePickerCellDelegate? { get set }
var title: String? { get set }
var property: Property<PropertyType>? { get set }
var list: [PropertyType] { get set }
}
extension TableViewCell {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#[inline]
#[cfg(feature = "tls")]
pub fn set_thread_oom_handler(handler: fn() -> !) {
// Logging...
log!(NOTE, "Setting the thread OOM handler.");
THREAD_OOM_HANDLER.with(|thread_oom| {
// Replace it with the new handler.
let res = thread_oom.replace(Some(handler));
// Throw a warning if it overrides another handler.
if res.is_some() {
log!(WARNING, "An old thread OOM handler was overriden.");
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.testtype = args.testtype
if self.testtype == const.SDK:
self.sdktype = args.sdktype
def run(self):
'''
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// Do any additional setup after loading the view.
if(self.fact != nil && self.fact?.imageData != nil){
self.image.image = UIImage(data: self.fact!.imageData!)
self.date.text = Date(timeIntervalSince1970: self.fact!.date.toDouble).relativeTime
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//
// This is an auto-generated file.
//
struct Course {
let id: Int
let name: String
let courseCode: String
let accountId: Int
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
\Auth::user()->unfavorite($itemid);
return back();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export class ContactComponent implements OnInit {
user: any;
constructor(private githubService: GithubService) {}
ngOnInit(): void {
this.githubService.getUser("andrewjbateman").subscribe((user) => {
this.user = user;
});
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
urlpatterns = [
path('admin/', admin.site.urls),
path('', views.root_view, name='root'),
path('home', views.home_view, name='home'),
path('register_user', views.register_user_view, name='register_user'),
path('logout', views.logout_view, name='logout'),
path('get_professors/<str:student_name>', views.get_professors_view, name='get_professors'),
path('add_professors', views.add_professors_view, name='add_professors'),
path('get_student_info/<str:student_name>', views.get_student_info_view, name='get_student_info'),
path('add_grade', views.add_grade_view, name='add_grade'),
path('send_thesis', views.send_thesis_view, name='send_thesis'),
path('check_thesis/<str:student_name>/<str:doc_hash>', views.check_thesis_view, name='check_thesis'),
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"original,suffix,expected",
[("smoketest", "test", "smoke"), ("", "test", ""), ("", "", ""), ("test", "", "test")],
)
def test_strip_suffix(original, suffix, expected):
assert strip_suffix(original, suffix) == expected
def test_is_string_type():
| ise-uiuc/Magicoder-OSS-Instruct-75K |
转换成echarts图需要的格式
"""
pass
def run(self):
self.get_graph()
self.fill_graph()
return self
class Report:
"""
插件过程的report模式,settings/gdxf/report/xxx.py 继承 Report之后
self.text_title_1 = 在text里面{gd_id1}
self.text_bg_2 =
| ise-uiuc/Magicoder-OSS-Instruct-75K |
sed -i 's/<MOOS_BINARY>/<MOOS_BINARY>,/g' $1
| ise-uiuc/Magicoder-OSS-Instruct-75K |
SEMS = {
'BE': 8,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
echo "$LINE" >> "$books_file"
case "$LINE" in
$book_end*) break ;;
esac
done
echo "" >> "$books_file"
echo "" >> "$books_file"
echo "" >> "$books_file"
done
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$confres=$conf->getAllConf();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
match &body.actions {
Add(players) => {
for player in players.iter() {
tablist_members.insert(player.uuid);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# pylint: disable=too-few-public-methods
class Params:
"""Data available in the state"""
name: str
battery: int = 100
state: str = STATE_IDLE
available: bool = True
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import rez.package_order # noqa
import rez.package_repository # noqa
import rez.package_resources # noqa
import rez.package_search # noqa
import rez.package_serialise # noqa
import rez.package_test # noqa
import rez.packages # noqa
import rez.plugin_managers # noqa
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export * from './order-item-popup.service';
export * from './order-item.service';
export * from './order-item-dialog.component';
export * from './order-item-delete-dialog.component';
export * from './order-item-detail.component';
export * from './order-item.component';
export * from './order-item.route';
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if r.status_code == requests.codes.ok or r.status_code == 201:
# print(r)
return r.json()
# print('error', r)
raise IOError(r.message)
return r.message | ise-uiuc/Magicoder-OSS-Instruct-75K |
@Data
@EqualsAndHashCode(callSuper = true)
public class CurrencyResponse extends JSONResponse {
@JsonProperty("Currency")
final double currency;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
timestamp = int(time.mktime(datetime.datetime.now().timetuple()))
self.cursor.execute(f"insert into '{self.table_name}' "
f"(download_date, filename, file_type, file_md5, fileid_tg, file_size,"
f" last_usage_date, usage_count)"
f"values (?, ?, ?, ?, ?, ?, ?, ?)",
(timestamp, filename, file_type, file_md5, fileid_tg, file_size, timestamp, 1))
self.conn.commit()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.input_data = {}
for input in input_nodes:
input_shape = []
for i, dim in enumerate(input.type.tensor_type.shape.dim):
if i == 0 and dim.dim_value <= 0 and self.batch_size != 0:
input_shape.append(self.batch_size)
else:
input_shape.append(dim.dim_value)
if 1 == input.type.tensor_type.elem_type: # 1 for np.float32
self.input_data[input.name] = np.random.randn(*input_shape).astype(np.float32)
# self.input_data[input.name] = np.random.uniform(1, 6, input_shape).astype(np.float32)
elif 7 == input.type.tensor_type.elem_type: # 7 for np.int64 / torch.long
self.input_data[input.name] = np.random.randint(0, 3, input_shape).astype(np.int64)
elif 9 == input.type.tensor_type.elem_type: # 9 for boolean
| ise-uiuc/Magicoder-OSS-Instruct-75K |
gap = int(uniform(5, 20))
x += gap
width = int(uniform(10, 40))
height = int(uniform(20, 50))
add_building(pixeldata, x + (width / 2), width, height)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@inlinable var isConstructor: Bool { self.contains(.constructor) }
/// Return `true` iff this function is a getter
@inlinable var isGetter: Bool { self.contains(.getter) }
/// Return `true` iff this function is a setter
@inlinable var isSetter: Bool { self.contains(.setter) }
/// Return `true` iff this function wraps a virtual function
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if answer:
return answer
return 0
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return not stk | 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.