seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
import Foundation
import RxSwift
import Extensions
public protocol AssetsUseCaseProtocol {
func assets(by ids: [String], accountAddress: String) -> Observable<[DomainLayer.DTO.Asset]>
func assetsSync(by ids: [String], accountAddress: String) -> SyncObservable<[DomainLayer.DTO.Asset]>
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
brew unlink gcc && brew link gcc
export HOMEBREW_CC=gcc
brew install bzip2 curl expat
brew install git --with-brewed-curl --with-brewed-openssl --without-tcl-tk
brew tap homebrew/dupes
brew install coreutils findutils gawk gnu-sed gnu-which grep libpng libxml2 libxslt make ncurses readline
#ln -s ncursesw/curses.h ncu... | ise-uiuc/Magicoder-OSS-Instruct-75K |
bundled_ts_dir = ts_client / "typeshed"
if bundled_ts_dir.exists():
shutil.rmtree(bundled_ts_dir)
with tempfile.TemporaryDirectory() as temp_dir_str:
temp_dir = Path(temp_dir_str)
subprocess.check_call(
["git", "clone", "https://github.com/python/typeshed.git", "--depth",... | ise-uiuc/Magicoder-OSS-Instruct-75K |
#include "lumix.h"
#include "renderer/material_manager.h"
#include "core/resource.h"
#include "renderer/material.h"
namespace Lumix
{
Resource* MaterialManager::createResource(const Path& path)
{
return m_allocator.newObject<Material>(path, getOwner(), m_allocator);
}
void MaterialManager::destroyResource(Reso... | ise-uiuc/Magicoder-OSS-Instruct-75K |
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class PhoneApplication {
public static void main(String[] args) {
SpringApplication.run(PhoneApplication.class, args);
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
public override TR Accept<TR, TP>(IVisitor<TR, TP> visitor, TP p)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
PrintUtil.PrintOutputs(outputs) | ise-uiuc/Magicoder-OSS-Instruct-75K |
test_word_dict();
return 0;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
self->isBinary = 1;
}
void THFile_ascii(THFile *self)
{
self->isBinary = 0;
}
void THFile_autoSpacing(THFile *self)
{
self->isAutoSpacing = 1;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
assert params["location_id"] # nosec
assert query["user_id"] # nosec
with handle_storage_errors():
location_id = params["location_id"]
user_id = query["user_id"]
uuid_filter = query.get("uuid_filter", "")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<!--body-->
<div class="justify-center flex-auto p-5 text-center">
<svg xmlns="http://www.w3.org/2000/svg" class="flex items-center w-4 h-4 mx-auto -m-1 text-red-500" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" strok... | ise-uiuc/Magicoder-OSS-Instruct-75K |
*/
public Auth(VkApiClient client) {
super(client);
}
/**
* Allows to restore account access using a code received via SMS. " This method is only available for apps with [vk.com/dev/auth_direct|Direct authorization] access. "
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return
}
firstly {
repository.toggleFavoriteStateForCertificateWithIdentifier(id)
}
.get { isFavorite in
self.isFavorite = isFavorite
}
.done { _ in
self.delegate?.viewModelDidUpdate()
}
.catch { [weak self] ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
item = QtWidgets.QTableWidgetItem()
self.tableWidget_B.setVerticalHeaderItem(7, item)
item = QtWidgets.QTableWidgetItem()
self.tableWidget_B.setVerticalHeaderItem(8, item)
item = QtWidgets.QTableWidgetItem()
self.tableWidget_B.setVerticalHeaderItem(9, item)
item =... | ise-uiuc/Magicoder-OSS-Instruct-75K |
loop {
buf.clear();
match reader.read_event(buf) {
Ok(Event::Start(ref e)) => {
if let b"Trackpoint" = e.name() {
match parse_trackpoint(&mut reader, &mut buf) {
Ok(pt) => trk_pts.push(pt),
Err(e) => epr... | ise-uiuc/Magicoder-OSS-Instruct-75K |
function("scReduce32", &Core::Cryptography::scReduce32);
function("hashToScalar", &Core::Cryptography::hashToScalar);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#%% [markdown]
# ## Filter data
# Make sure neurons are lateralized and fully connected
#%%
for sex in ["male", "herm"]:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#umask=022 #default
umask 0027
#Aliases
alias rsync_server="sudo /home/opc/bin/rsync_server.sh"
alias restart_services="sudo /home/opc/bin/restart_services.sh now"
alias set_permissions="sudo /home/opc/bin/set_permissions.sh"
alias update_root_cron="sudo /home/opc/bin/update_root_cron.sh"
# END
| ise-uiuc/Magicoder-OSS-Instruct-75K |
then
list $root/
else
abort "Error: $msg."
fi
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// Set one hart with id `hart_id`
pub fn set(&mut self, hart_id: usize) {
assert!(hart_id <= self.max_hart_id);
let (i, j) = split_index_usize(hart_id);
self.inner[i] |= 1 << j;
}
/// Unset one hart with id `hart_id`
pub fn clear(&mut self, hart_id: usize) {
assert!... | ise-uiuc/Magicoder-OSS-Instruct-75K |
CliTest.class,
ConstantParserTest.class,
EvokeTest.class,
ExampleEvokeTest.class,
ExampleTest.class,
GetValueTest.class,
JDBCQueryTest.class,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'SignatureMethod': 'HmacSHA256',
'SignatureVersion': '2',
'Timestamp': timestamp})
host_url = TRADE_URL
host_name = urllib.parse.urlparse(host_url).hostname
host_name = host_name.lower()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Etymology languages
url = "https://en.wiktionary.org/wiki/Module:etymology_languages/data"
lines = get_content(url)
m = read_all_lines_etym(lines)
languages = {key: m[key]["canonicalName"] for key in m.keys()}
# Families
url = "https://en.wiktionary.org/wiki/Module:families/data"
lines = get_content(url)
m = read_a... | ise-uiuc/Magicoder-OSS-Instruct-75K |
# print(row)
awhere = (row[2],) + (row[3],)+(row[6],) + (row[7],)
# print(awhere)
to_cursor.execute('SELECT state_id FROM states WHERE entity_id=? AND state=? AND last_changed=? AND last_updated=?', awhere)
isunique = to_cursor.fetchone()
# pr... | ise-uiuc/Magicoder-OSS-Instruct-75K |
interface PostRepository extends BaseRepository
{
public function getListEmployer ();
public function getListMember ();
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
echo " $project_repo_path"
echo ""
echo "For this script to work, the 'codiv-sanger-bake-off' project repo "
echo "needs to be in the same directory as this ('codiv-sanger-bake-off-tex')"
echo "repo."
exit 1
fi
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export type HttpHeader = {
name: string;
value: string;
};
export type HttpHeaders = {
headers: HttpHeader[];
};
export type HtmlEntities = {
content: Content[];
pageable?: Pageable;
last: boolean;
totalPages: number;
totalElements: number;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
var isValid: Bool { get }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
description: 'Administrador criado.',
type: AdministradorDto,
})
create(@Body() createAdministradorDto: AdministradorDto) {
return this.administradorService.create(createAdministradorDto);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
export function HttpLoaderFactory(
http: HttpClient,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if (r.status_code == 200):
print()
print('JSON : ', r.json())
print()
else:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
private static final Pattern PATTERN_FORMAT = Pattern.compile("[\\d]{4,4}-[\\d]{2,2}-[\\d]{2,2}");
private static Long UTCEpochSeconds;
public static String format(final Date value) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if __name__ == "__main__":
import sys
f = open("1.in", "r")
# f = sys.stdin
solution = Solution()
N, K = map(int, f.readline().strip().split(' '))
lst = map(int, f.readline().strip().split(' '))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# @@protoc_insertion_point(module_scope)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
publisher_name = '<NAME>'
url = 'https://opentender.eu/download'
source_id = 'digiwhist_germany'
def get_data_url(self):
return 'https://opentender.eu/data/files/DE_ocds_data.json.tar.gz'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
[CustomPropertyDrawer(typeof(BoolReference))]
public class BoolReferenceDrawer : ReferenceDrawer
{ }
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
import com.facebook.presto.verifier.retry.RetryConfig;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return searchResult.get();
}else {
throw new NoSuchElementException("Pet with id:" + id + " can not be found");
}
}
public Pet savePet(Pet pet) {
return petRepository.save(pet);
}
public List<Pet> getPetsByOwnerId(long ownerId) {
return petReposit... | ise-uiuc/Magicoder-OSS-Instruct-75K |
def parse_args(argv=None):
root = argparse.ArgumentParser()
root.add_argument('--config', '-c', default='config.ini')
root.add_argument('--length', '-n', default=100, type=int)
root.add_argument('--last', '-l', type=int, help='Markov Last param. Default: use config.')
root.add_argument('command', c... | ise-uiuc/Magicoder-OSS-Instruct-75K |
#!/bin/bash
dconf dump /org/gnome/terminal/ > .config
| ise-uiuc/Magicoder-OSS-Instruct-75K |
except AttributeError: # 3.5 / 3.6
loop = asyncio._get_running_loop() # pylint: disable=protected-access
if loop is None:
raise RuntimeError('No running event loop')
return loop
| ise-uiuc/Magicoder-OSS-Instruct-75K |
else
{
return number;
}
}
public static decimal ParseStringToDecimal(string numberString)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
API_CALLS = 0
def __init__(self, api_key, app_key):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
std::istream& operator>>(std::istream& is, DataFile::pixels_t& str)
{
char c;
str.clear();
while (isspace(is.peek())) is.get();
while (is.get(c))
{
if (c >= '0' && c <= '9')
str.push_back(c - '0');
else if (c >= 'A' && c <= 'F')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using MLDB.Domain;
using MLDB.Api.Mapping;
using Microsoft.Extensions.Logging;
using AutoMapper;
using System.Globalization;
using System.Linq;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#!/bin/bash
clusterGenes 2> /dev/null || [[ "$?" == 255 ]]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
open ${GN}"${1}"
open ${MM}"${1}"
open ${NK}"${1}"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if(serialization.valueForKey("Elements")?.count > 0)
{
let dataAvailable = true
let chart = ChartContract()
chart.Positions = serializ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
if (old_features != last_window_features_.value())
LogWindowMetricsUkmEntry(last_window_features_.value());
}
private:
// TabStripModelObserver:
void TabInsertedAt(TabStripModel* tab_strip_model,
content::WebContents* contents,
int index,
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
# echo "additional args: $@"
# echo "expected: ${RECORD[0]}"
# echo "actual: $RET"
# echo "output:"
# echo "Output is in $OUTFILE:"
# echo "***********************************************************************"
# head -10 "$OUTFILE"
# WC=$(wc -l $OUTFILE| cut -d... | ise-uiuc/Magicoder-OSS-Instruct-75K |
self.is_presence_container = True
self._leafs = OrderedDict([
('access_list_name', YLeaf(YType.str, 'access-list-name')),
('maximum_server', YLeaf(YType.uint32, 'maximu... | ise-uiuc/Magicoder-OSS-Instruct-75K |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'ignore_addresses': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
metadata = {
'name': 'Python Module Example',
'description': '''
Python communication with msfconsole.
''',
'authors': [
'<NAME>'
],
'date': '2018-03-22',
'license': 'MSF_LICENSE',
'references': [
{'type': 'url', 'ref': 'https://www.rapid7.com/blog/post/2017/12/28... | ise-uiuc/Magicoder-OSS-Instruct-75K |
import FWCore.ParameterSet.Config as cms
initialStepTrajectoryFilterShapePreSplitting = cms.PSet(
ComponentType = cms.string('StripSubClusterShapeTrajectoryFilter'),
layerMask = cms.PSet(
TEC = cms.bool(False),
TIB = cms.vuint32(1, 2),
TID = cms.vuint32(1, 2),
TOB = cms.bool(Fal... | ise-uiuc/Magicoder-OSS-Instruct-75K |
if fabsf(Float(candidateDistance)) < fabsf(Float(targetDistance)) {
target = candidate;
}
}
}
// Adjust the (lefthand side) offset such that our target cell will be centered in the collecti... | ise-uiuc/Magicoder-OSS-Instruct-75K |
if(BodyInst0 && BodyInst1)
{
// Find relative velocity.
FVector Velocity0 = BodyInst0->GetUnrealWorldVelocityAtPoint_AssumesLocked(ContactInfo.ContactPosition);
FVector AngularVel0 = FMath::RadiansToDegrees(BodyInst0->GetUnrealWorldAngularVelocityInRadians_AssumesLocked());
FVector Velocity1 = BodyInst1->Get... | ise-uiuc/Magicoder-OSS-Instruct-75K |
namespace UnityEngine.UIElements
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// The object ID of a user, service principal or security group in the Azure Active Directory tenant for the vault. The object ID must be unique for the list of access policies.
/// </summary>
[Input("objectId", required: true)]
public Input<string> ObjectId { get; set; } = null!;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#!/home/tmenegaz/Documentos/cimatec/2016.2/escolaTecnica/mundoSenai/django/aula/aulaDjango/py3.5/bin/python3.5
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<filename>Applications/SlicerApp/Testing/Python/SlicerSceneObserverTest.py<gh_stars>0
from __future__ import print_function
import unittest
| ise-uiuc/Magicoder-OSS-Instruct-75K |
trap cleanup EXIT
| ise-uiuc/Magicoder-OSS-Instruct-75K |
PACKAGE_INFO=$(mktemp)
echo "Fetching info for the Azure kernel package..." 1>&2
wget "$PKGURL" -O $PACKAGE_INFO >& /dev/null ||
fail "Failed to download info on the Azure kernel package"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
local context="$1"
local namespace="$2"
local main_header="Context:$context"
if [[ -n $namespace ]]; then
main_header="$main_header, Namespace:$namespace"
fi
echo $main_header
}
# $1 is awk end print command
# $2 isFlag
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def merge(source, target_filename):
"""Merges the messages from the source Catalog into a .po file at
| ise-uiuc/Magicoder-OSS-Instruct-75K |
indices_base_dataset = [
base_dataset_header.split("\t").index(x)
for x in relevant_headers[FLAGS.task_name]
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//--- END OF USER ZONE 2
}
//——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* {@inheritDoc}
*/
@Override public <T> T getValue(Object object, Class<T> expectedClass) throws DocumentFactoryException {
Object value;
try {
value = method.invoke(object);
} catch (Exception e) {
throw new DocumentFactoryException("Value from Method failed: object=" + o... | ise-uiuc/Magicoder-OSS-Instruct-75K |
[Command("example")]
public async Task SetExampleFiltersCommand(CommandContext ctx)
{
var example = new AudioFilters
{
Karaoke = new Karaoke
{
Level = 1,
MonoLevel = 1,
FilterBand ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
piano_min = 27.5000 # Hz - not audible
__all__ = ['cent_per_value','get_f_min','get_f_max','FrequencyScale']
def cent_per_value(f_min, f_max, v_min, v_max):
"""
This function takes in a frequency max and min, and y value max and min and returns a y scale parameter in units of cents/y value.
Cents are a l... | ise-uiuc/Magicoder-OSS-Instruct-75K |
<div className={classes.Loader}>
<CircularProgress color={'primary'} size={70} />
</div>
);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
x = Tensor(x).cuda()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
int component315_3 () {
printf("Hello world!\n");
return 0;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<span>" . __('Indicates the total number of rows in your option tables of all your network sites, including transients...','advanced-database-cleaner') ." </span>
</a>";
}else{
$aDBc_options_toolip = "<a style='line-height: 18px' class='aDBc-tooltips'>
<img class='aDBc-margin-l-3' src='". ADBC... | ise-uiuc/Magicoder-OSS-Instruct-75K |
"""Constructor"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@get(path="/")
def handler() -> None:
...
def test_trusted_hosts_middleware():
client = create_test_client(route_handlers=[handler], allowed_hosts=["*"])
unpacked_middleware = []
| ise-uiuc/Magicoder-OSS-Instruct-75K |
seqs = [json.load(s) for s in seq]
run_gui(SerialIO.new_and_start(ser), seqs)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def test_it(self):
pass
| ise-uiuc/Magicoder-OSS-Instruct-75K |
string Customer::get_name(){
return name;
}
char Customer::get_initial(){
return initial;
}
int Customer::get_account(){
return account;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# invoke app to run
app.run()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def draw_hyps(self, labels, scores, data=None):
'''
Draw a set of line hypothesis for a batch of images.
labels -- line parameters, array shape (NxMx2) where
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
export class ImagesLoadFirstPageAction {
static type = '[Images] Load First page';
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#animacja (co 4)
if self.movement_x > 0:
self._move(gm.IMAGES_R)
if self.movement_x < 0:
self._move(gm.IMAGES_L)
self._gravity()
self.rect[1] += self.movement_y
collisions = pygame.sprite.spritecollide(self,self.level.set_of_platforms,False)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
/**
* An interface representing an arbitrary HTTP encoding.
* <p>
* An implementation of this interface can be specified on the
* {@link com.flat502.rox.client.HttpClient#setContentEncoding(Encoding) client API} for requ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
from armulator.armv6.opcodes.opcode import Opcode
class UbfxT1(Ubfx, Opcode):
def __init__(self, instruction, lsbit, widthminus1, d, n):
Opcode.__init__(self, instruction)
Ubfx.__init__(self, lsbit, widthminus1, d, n)
def is_pc_changing_opcode(self):
return False
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#include <boost/uuid/sha1.hpp>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using Core;
/// <summary>
/// The name hsbw stands for horizontal sidebearing and width;
/// horizontal indicates that the y component of both the sidebearing and width is 0.
/// This command sets the left sidebearing point at (sbx, 0) and sets the character width vector to(wx, 0) in character sp... | ise-uiuc/Magicoder-OSS-Instruct-75K |
class SetupLogger(py_trees.visitors.VisitorBase):
"""
Use as a visitor to :meth:`py_trees_ros.trees.TreeManager.setup`
to log the name and timings of each behaviours' setup
to the ROS debug channel.
Args:
node: an rclpy node that will provide debug logger
"""
def __init__(self, nod... | ise-uiuc/Magicoder-OSS-Instruct-75K |
fi
port='@(6553[0-5]|655[0-2][0-9]|65[0-4][0-9][0-9]|6[0-4][0-9][0-9][0-9]|[1-5][0-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9]|[1-9])'
byte='@(25[0-5]|2[0-4][0-9]|[1][0-9][0-9]|[1-9][0-9]|[0-9])'
ipv4="$byte\.$byte\.$byte\.$byte"
# Default port is for a HostPort service
case "$CLUSTER_ADDR" in
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
underestimates of eta
"""
if rest_ranges is None:
rest_ranges = [[1350, 1360], [1470, 1480]]
zq_ind = np.where((qso.zq > zq_range[0]) & (qso.zq <= zq_range[1]) & (qso.sn > 5))[0]
# restframe ranges over which to analyze
# currently this allows for only a single bin
if np.... | ise-uiuc/Magicoder-OSS-Instruct-75K |
out = [1] + [0]*N
for p in range(0, N+1):
x = out[p]
for (o,s) in diffs:
p += o
if p > N: break
| ise-uiuc/Magicoder-OSS-Instruct-75K |
packages=find_packages("src"),
package_dir={"": "src"},
package_data={"naima": ["data/*.npz"]},
install_requires=[
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if dp[i][j]:
print('YES')
else:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public enum Colors {
None = -1,
White,
Black,
Blue,
Green,
Red,
Brown,
Purple,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
expect(updatedGroup!!.userIds.length).eq(1);
expect(updatedGroup!!.userIds[0]).eq("2");
});
it('It should remove member from group.', async () => {
const user = await client.addUser(new User("2", "test-2", []));
const group = await client.addGroup(new Group("test2", []));
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
cd /home/wwwroot/aos
/usr/local/bin/composer install --no-interaction
./bin/doctrine -q dbal:run-sql "CREATE SCHEMA IF NOT EXISTS ${MYSQL_TEST_DATABASE}"
./bin/phpunit -c phpunit.xml.docker --coverage-text
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def main():
print("python version:", sys.version)
pprint.pprint(os.environ._data)
if __name__ == "__main__":
main()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
$this->session->set_userdata('carrinho_loja', $carrinho);
redirect(base_url('carrinho'));
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def write_navbars():
for nb_name, navbar in iter_navbars():
nb = nbformat.read(nb_name, as_version=4)
nb_file = os.path.basename(nb_name)
is_comment = lambda cell: cell.source.startswith(NAV_COMMENT)
if is_comment(nb.cells[1]):
print("- amending navbar for {0}".format(n... | ise-uiuc/Magicoder-OSS-Instruct-75K |
dirname = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'Indexes'))
path = os.path.join(dirname, filename)
try:
readSerializer = open(path, "rb")
inMemoryStructure = pickle.load(readSerializer)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
c1: -Fp::one()
}
.sgn0()
),
false
);
assert_eq!(
bool::from(
Fp2 {
c0: Fp::zero(),
c1: -Fp::one()
}
.sgn0()
),
false
| 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.