seed
stringlengths
1
14k
source
stringclasses
2 values
[XmlElement(ElementName = "payload")] public TransactionResponse Transaction { get; set; } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
assert result == "result"
ise-uiuc/Magicoder-OSS-Instruct-75K
// BitFreezer-BitcoinKit // // Created by Oleksii Shulzhenko on 26.03.2020. //
ise-uiuc/Magicoder-OSS-Instruct-75K
public function tags(){ return $this->hasMany(tag::class,'id','tag_id'); } public function jobs(){
ise-uiuc/Magicoder-OSS-Instruct-75K
from gppylib.commands.base import Command from tinctest import logger from mpp.lib.PSQL import PSQL from mpp.models import MPPTestCase import os import re import socket import time import shutil import sys
ise-uiuc/Magicoder-OSS-Instruct-75K
# Copyright 2009-2017 <NAME>. # This program is distributed under the MIT license. '''Defines exceptions.''' class CuteBaseException(BaseException): '''
ise-uiuc/Magicoder-OSS-Instruct-75K
loss_mask: used to mask and ignore tokens in the loss function
ise-uiuc/Magicoder-OSS-Instruct-75K
... [11, 23, 'good'], ... [25, 17, 'good'], ... [20, 11, 'poor']], ... columns=['feature1', 'feature2', 'target']) >>> >>> op = LinearFitOperator(feature_names='all', ... target='target', ... target_type='categorical') >>>...
ise-uiuc/Magicoder-OSS-Instruct-75K
return [ 'Please select module' => 'Prosím zvolte modul', 'Vendor' => 'Poskytovatel', 'Module' => 'Modul', 'Installed?' => 'Nainstalován?', 'Activated?' => 'Aktivován?', 'NO' => 'NE', 'Modules installation' => 'Instalace modulů', 'Result' ...
ise-uiuc/Magicoder-OSS-Instruct-75K
wget -O gpt2_bpe_small/encoder.json https://dl.fbaipublicfiles.com/fairseq/gpt2_bpe/encoder.json wget -O gpt2_bpe_small/vocab.bpe https://dl.fbaipublicfiles.com/fairseq/gpt2_bpe/vocab.bpe for SPLIT in train_small valid_small test_small; do \ python -m examples.roberta.multiprocessing_bpe_encoder \ --encoder...
ise-uiuc/Magicoder-OSS-Instruct-75K
} return Bool(value) } }
ise-uiuc/Magicoder-OSS-Instruct-75K
}; for (int i428 = 0; i428 < interface_len; i428++) { api_in[i428].re = in[i428].f32_2; }; StartAcceleratorTimer();;
ise-uiuc/Magicoder-OSS-Instruct-75K
git pull git checkout v"$version" git tag -d v1 git push origin :refs/tags/v1 git tag v1 git push origin v1 git checkout main
ise-uiuc/Magicoder-OSS-Instruct-75K
# Flask configurations import os import sys sys.path.append(os.path.dirname(__file__)+'/AI') os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
ise-uiuc/Magicoder-OSS-Instruct-75K
eprintln!("Error: {}", err); process::exit(1); }); // Save power spectrum to output file output.save_result(&config).unwrap_or_else(|err| { eprintln!("Error: {}", err); process::exit(1); }); }
ise-uiuc/Magicoder-OSS-Instruct-75K
import ROOT if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument('-f', dest="fname", type=str, help="path to summary hdf5") parser.add_argument("-s", "--save_path", type=str, default="./", help="Enter destination path for plots.")...
ise-uiuc/Magicoder-OSS-Instruct-75K
linkedin=linkedin )
ise-uiuc/Magicoder-OSS-Instruct-75K
/// using AvorilConsole.Core.Input.Controllers; namespace AvorilConsole.Core.Input { // Core.Input Namespace ----------------------------- public class PlayerInput {
ise-uiuc/Magicoder-OSS-Instruct-75K
echo $(</dev/stdin) sleep 0.5; echo 3
ise-uiuc/Magicoder-OSS-Instruct-75K
var currencyType: CurrencyType { get { let key = Keys.currencyType.rawValue let saved: CurrencyType? = UserDefaults.standard.getCodable(forKey: key) return saved ?? CurrencyType.bitcoin } set { let key = Keys.currencyType.rawValue UserDefaults.standard.setCodable(value: newValue, forKey: key) ...
ise-uiuc/Magicoder-OSS-Instruct-75K
import { NavLink } from 'react-router-dom' const wrapper = require('./style.css')['filter'] /* ** Structure of filters prop ** @param {filters} render filters' name etc ** { ** [ ** title: string, ** icon: string, ** children: string[], ** ], ** }
ise-uiuc/Magicoder-OSS-Instruct-75K
from . import EldesDeviceEntity _LOGGER = logging.getLogger(__name__) async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry, async_add_entities): """Set up the Eldes binary sensor platform.""" client = hass.data[DOMAIN][entry.entry_id][DATA_CLIENT] coordinator = hass.data[DOMAIN][entry.entr...
ise-uiuc/Magicoder-OSS-Instruct-75K
import tk.mybatis.mapper.common.Mapper; import java.util.List; /** * PermissionMapper
ise-uiuc/Magicoder-OSS-Instruct-75K
model.OnDirectionChanged -= HandleDirectionChanged; base.Dispose(); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
self.stopped = True
ise-uiuc/Magicoder-OSS-Instruct-75K
topic_name=$(cat /opt/kafka-topic-configuration.json | jq '.'[$cnt].name | tr -d '"') topic_partitions=$(cat /opt/kafka-topic-configuration.json | jq '.'[$cnt].partitions | tr -d '"') topic_replication_factor=$(cat /opt/kafka-topic-configuration.json | jq '.'[$cnt].replication_factor | tr -d '"') $KAFK...
ise-uiuc/Magicoder-OSS-Instruct-75K
def test_cover(self): pass
ise-uiuc/Magicoder-OSS-Instruct-75K
function getId($controller){ $query = "SELECT id FROM modules WHERE controller = '$controller'"; //echo $query."<br>"; $data = $this->db->query($query);
ise-uiuc/Magicoder-OSS-Instruct-75K
USER_PERMISSIONS = set() MEMBER_PERMISSIONS = set()
ise-uiuc/Magicoder-OSS-Instruct-75K
def test_put_artifacts_get_artifacts_by_id(self): store = _get_metadata_store() artifact_type = _create_example_artifact_type() type_id = store.put_artifact_type(artifact_type) artifact = metadata_store_pb2.Artifact() artifact.type_id = type_id artifact.properties["foo"].int_value = 3 arti...
ise-uiuc/Magicoder-OSS-Instruct-75K
CEGUI::Window *controlsWindow = winMgr.loadWindowLayout("ControlsWindow.layout"); guiRoot->addChildWindow(controlsWindow); controlsWindow->setVisible(false);
ise-uiuc/Magicoder-OSS-Instruct-75K
.clang-format
ise-uiuc/Magicoder-OSS-Instruct-75K
* Run the database seeds. * * @return void */ public function run() { $users=[ ['surname'=>'admin', 'name' => 'admin', 'patronymic' => 'admin',
ise-uiuc/Magicoder-OSS-Instruct-75K
import net.minecraft.util.ResourceLocation; import net.minecraft.world.storage.loot.LootEntry; import net.minecraft.world.storage.loot.LootEntryEmpty; import net.minecraft.world.storage.loot.LootEntryItem; import net.minecraft.world.storage.loot.LootEntryTable; import net.minecraft.world.storage.loot.conditions.LootCon...
ise-uiuc/Magicoder-OSS-Instruct-75K
genre_name = genre_name.lower() genre_name = genre_name.strip() genre_name = "".join(genre_name.split(" ")) folder = os.path.join("genresDataset", genre_name, "midiworld") if not os.path.isdir(folder): os.mkdir(folder) #Here I was lazy, the biggest genre on that page has 38 pages so I've done it that way. #If the...
ise-uiuc/Magicoder-OSS-Instruct-75K
print( [self.classes.index(pose_est.name) for pose_est in pose_ests]) bgr, depth,_ = self.renderer.render_many(obj_ids = [self.classes.index(pose_est.name) for pose_est in pose_ests], W = W_d, H = H_d, K = camK.copy(),
ise-uiuc/Magicoder-OSS-Instruct-75K
r*=2; } while (z==1); if (z==n) do { /* back-track */ ys=(ys*ys+3); z=gcd(ys-x,n); } while (z==1); if (!prime(z)) cout << "\ncomposite factor "; else cout << "\nprime factor "; cout << z << endl;
ise-uiuc/Magicoder-OSS-Instruct-75K
// 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 // copies of the Software, and to permit persons to whom the Software is // furnis...
ise-uiuc/Magicoder-OSS-Instruct-75K
} public function checkValIn($attribute, $params) {
ise-uiuc/Magicoder-OSS-Instruct-75K
__copyright__ = "Copyright 2016-2019, <NAME>" __maintainer__ = "<NAME>" __email__ = "<EMAIL>" redis_pid = None server_test = False custom_actinia_cfg = False create_actinia_endpoints() create_endpoints(flask_api) # If this environmental variable is set, then a real http request will be send # instead of using ...
ise-uiuc/Magicoder-OSS-Instruct-75K
return 'git' else: raise Exception('thats odd') get_repo_type.side_effect = se with open(FX('duplicate_repositories_in_github_and_bitbucket.results.txt')) as f: output = f.read() results, count = parse_search_results(output, 'AbstractSen...
ise-uiuc/Magicoder-OSS-Instruct-75K
Create Client </Button> </div> </div> </> )} {success && ( <div data-testid="success"> <p>Client created</p> <p>
ise-uiuc/Magicoder-OSS-Instruct-75K
('sweetberry', '0x47:3', 'j3_13', 5.0, 0.010, 'j3', False), ('sweetberry', '0x47:1', 'j3_14', 5.0, 0.010, 'j3', False), ('sweetberry', '0x47:2', 'j3_15', 5.0, 0.010, 'j3', False),
ise-uiuc/Magicoder-OSS-Instruct-75K
// | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, // | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY // | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // | OF THIS SOFTWARE,...
ise-uiuc/Magicoder-OSS-Instruct-75K
self.vertices.keys().collect()
ise-uiuc/Magicoder-OSS-Instruct-75K
@extends('master') @section('title', 'Halaman Utama Portal - Kabar Kabarin')
ise-uiuc/Magicoder-OSS-Instruct-75K
start and stop. """ import os import sys import time
ise-uiuc/Magicoder-OSS-Instruct-75K
'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python', 'Programming Language :: Python :: 2.6',
ise-uiuc/Magicoder-OSS-Instruct-75K
mod model;
ise-uiuc/Magicoder-OSS-Instruct-75K
-e "VAULT_DEV_LISTEN_ADDRESS=0.0.0.0:8200" \ "vault:${VAULT_VERSION}" &> /dev/null docker cp "$DIR/policy-no-root.hcl" ${VAULT_CONTAINER_NAME}:. docker cp "$DIR/policy-delete-only.hcl" ${VAULT_CONTAINER_NAME}:. # need some time for GH Actions CI sleep 3 vault_exec "vault secrets disa...
ise-uiuc/Magicoder-OSS-Instruct-75K
#export ros_master=global export ros_master=local export ros_master_global=192.168.1.55 export ROS_HOME=~/.ros export TARGET_IP=$(LANG=C /sbin/ifconfig $network_if | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*') if [ -z "$TARGET_IP" ] ; then echo "ROS_IP is not set." else export...
ise-uiuc/Magicoder-OSS-Instruct-75K
logger = logging.getLogger('soapfish')
ise-uiuc/Magicoder-OSS-Instruct-75K
from kerasmodels.models.skip_gram import SkipGramDataGenerator, SkipGram from pathlib import Path def test_data_gen(): gen = SkipGramDataGenerator(datafile=Path(__file__).resolve().parent / 'text.txt', batch_size=32) print(gen.summary()) for i in range(88): print(i, gen[i][0].shape)
ise-uiuc/Magicoder-OSS-Instruct-75K
class RightAngle(VGroup): CONFIG = { 'size': 0.25, 'stroke_color': WHITE,
ise-uiuc/Magicoder-OSS-Instruct-75K
return self.servers[self.current_server_index] def connect(self, event): print("Connecting to {0}".format(self.current_server()))
ise-uiuc/Magicoder-OSS-Instruct-75K
# Show Speech to Text Transcript 'live' as it happens if asr.live: self.LIVE_SPEECH = asr.live self.LIVE_SPEECH_TIME = time()
ise-uiuc/Magicoder-OSS-Instruct-75K
export * from './vendor.entity'; export * from './enum';
ise-uiuc/Magicoder-OSS-Instruct-75K
* * Copyright 2005 Sun Microsystems Inc. All Rights Reserved * * Modifications by: <NAME>
ise-uiuc/Magicoder-OSS-Instruct-75K
import sys import math import random # Figure out what we should name our output file, and how big it should be if len(sys.argv) != 3: # Make sure we get a file argument, and only that print("Incorrect number of arguments found, should be \"generate <file> 10^<x>\"")
ise-uiuc/Magicoder-OSS-Instruct-75K
#Mem: 16148M total, 2906M used, 13242M free, 0M buffers #Swap: 0M total, 0M used, 0M free, 1364M cached # # PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND #29975 mheil 20 0 8912 1212 756 R 4 0.0 0:00.02 top #20595 mheil 20 0 144m 2...
ise-uiuc/Magicoder-OSS-Instruct-75K
HandlerClass = AuthCodeRequestHandler
ise-uiuc/Magicoder-OSS-Instruct-75K
} .accentColor(.init(red: 1, green: 0.4, blue: 0.4)) } } struct ContentView_Previews: PreviewProvider { static var previews: some View { ContentView() } }
ise-uiuc/Magicoder-OSS-Instruct-75K
* copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS B...
ise-uiuc/Magicoder-OSS-Instruct-75K
AUTH_PASSWORD_VALIDATORS = [ { 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', }, { 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', }, { 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', ...
ise-uiuc/Magicoder-OSS-Instruct-75K
mod db; mod handlers; pub use db::*; pub use handlers::*;
ise-uiuc/Magicoder-OSS-Instruct-75K
Task<GetCurrentLoginInformationsOutput> GetCurrentLoginInformations(); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
deinit { var fooParam = FooStruct() #^IN_INVALID_3^# } func testInInvalid5() { var fooParam = FooStruct() init() { #^IN_INVALID_5^# } }
ise-uiuc/Magicoder-OSS-Instruct-75K
os.path.join(self.cache.cache_root, '.stagecache.global') ) self.write_lock = os.path.join(self.md_dir, "write_lock") self.asset_list = os.path.join(self.md_dir, "asset_list") if not os.path.exists(self.md_dir): makedirs(self.md_dir, self.umask_dir) LOGGER...
ise-uiuc/Magicoder-OSS-Instruct-75K
def __init__(self, coordinator, device_info, room_name, unique_id): """Initialize the entity.""" super().__init__(coordinator) self._room_name = room_name self._unique_id = unique_id
ise-uiuc/Magicoder-OSS-Instruct-75K
operations = [ migrations.AddField( model_name='profile', name='id_expiry', field=models.CharField(default=1, max_length=30, blank=True), preserve_default=False,
ise-uiuc/Magicoder-OSS-Instruct-75K
from dash_extensions.enrich import DashBlueprint, DashProxy, html, Output, Input def page_name(i: int): return f"page{i}"
ise-uiuc/Magicoder-OSS-Instruct-75K
conn.setDoInput(true); conn.setDoOutput(true); try (final OutputStream os = conn.getOutputStream()) { os.write(data); } switch (conn.getResponseCode()) { case 200: LOG.info("Message {} pushed successfully: {}.", msgId, conn.getResponseMessage()); break;
ise-uiuc/Magicoder-OSS-Instruct-75K
raise ValueError("Invalid key type") if not re.match("^[A-Za-z0-9+/]+[=]{0,3}$", key): raise ValueError("Invalid key data") except ValueError: raise ValueError("Invalid public key")
ise-uiuc/Magicoder-OSS-Instruct-75K
using System; namespace TubumuMeeting.Libuv { public interface IConnectable<TType, TEndPoint> { void Connect(TEndPoint endPoint, Action<Exception> callback); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
<body> <form method="post" action="{{ url('dashboard/add/store') }}">
ise-uiuc/Magicoder-OSS-Instruct-75K
@IBOutlet weak var installButton: NSButton! { didSet { refreshInstallButton() } } @IBOutlet weak var parameterAlignmentCheckbox: NSButton! { didSet {
ise-uiuc/Magicoder-OSS-Instruct-75K
handlerID = len(self._eventHandlers[eventType]) self._eventHandlers[eventType].append(callback) return handlerID def unregisterEventHandler(self, eventType, handlerID): ''' Unregister a handler, so it won't be called on the specified event. eventType specifies the type of ...
ise-uiuc/Magicoder-OSS-Instruct-75K
""" resp = get("all_patients") return byte_2_json(resp)
ise-uiuc/Magicoder-OSS-Instruct-75K
} static func createTerrainPSO() -> MTLRenderPipelineState { let vertexFunction = Renderer.library?.makeFunction(name: "vertex_main") let fragmentFunction = Renderer.library?.makeFunction(name: "fragment_terrain") let pipelineDescriptor = MTLRenderPipelineDescriptor() pipelineDescriptor...
ise-uiuc/Magicoder-OSS-Instruct-75K
# get utility from utlity class m = np.array(m) #result_array=np.array([])
ise-uiuc/Magicoder-OSS-Instruct-75K
if unsure: while (len(space) > 1 and check_response("Come back to previous step(y/n)?\n")): space.pop() obj = space[-1][0] print("Now at step {}: {}".format(len(space), space[-1][1])) def main(get: str, store: str = None, mode: str...
ise-uiuc/Magicoder-OSS-Instruct-75K
optional func detailViewController(homeVC: DetailViewController, option: String) }
ise-uiuc/Magicoder-OSS-Instruct-75K
import torch def kl_divergence(mu, sigma, mu_prior, sigma_prior): kl = 0.5 * (2 * torch.log(sigma_prior / sigma) - 1 + (sigma / sigma_prior).pow(2) + ((mu_prior - mu) / sigma_prior).pow(2)).sum() return kl def softplusinv(x): return torch.log(torch.exp(x)-1.)
ise-uiuc/Magicoder-OSS-Instruct-75K
cd temp_softwares echo "files will be donloaded from web" echo "Downloading spark from - https://www.apache.org/dyn/closer.lua/spark/spark-3.0.0/spark-3.0.0-bin-hadoop3.2.tgz" wget --no-verbose https://www.apache.org/dyn/closer.lua/spark/spark-3.0.0/spark-3.0.0-bin-hadoop3.2.tgz
ise-uiuc/Magicoder-OSS-Instruct-75K
return myself.HandCards.OrderBy(x => new Guid()).First(); } protected override void OnWatch(IPlayer myself, GameState state) { // la strategia stupida non pensa } public IlmiorStrategy() : base("ilmior") { } }
ise-uiuc/Magicoder-OSS-Instruct-75K
ln -sf /dev/stdout logs/access_log ln -sf /dev/stderr logs/error_log
ise-uiuc/Magicoder-OSS-Instruct-75K
<?= \appxq\sdii\helpers\SDNoty::show('data.message', 'data.status') ?> $('#tb-'+id).remove(); }
ise-uiuc/Magicoder-OSS-Instruct-75K
if (isset($map['ImageURLAObject'])) { $model->imageURLAObject = $map['ImageURLAObject']; } if (isset($map['ImageURLB'])) { $model->imageURLB = $map['ImageURLB']; } return $model; } }
ise-uiuc/Magicoder-OSS-Instruct-75K
if (created) { Logger::error("Cannot create more than 1 KeyboardInput"); abort(); } created = true; int length; SDL_GetKeyboardState(&length);
ise-uiuc/Magicoder-OSS-Instruct-75K
file_path, metadata_source="amazon_de", metadata_query="012kd3o2llds" ) @pytest.mark.vcr(record_mode="once") def test_metadata_fetched(uploader: LibgenUploader): file_path = os.path.join(files_path, "minimal.epub") form = get_return_value( uploader._fetch_metadata, partial(...
ise-uiuc/Magicoder-OSS-Instruct-75K
@property def datatype(self):
ise-uiuc/Magicoder-OSS-Instruct-75K
if ! container_running $NODE_NAME || [[ "$(docker inspect -f "{{.State.Health.Status}}" ${NODE_NAME})" != "healthy" ]]; then cleanup 1 echo echo -e "\033[31;1mERROR:\033[0m Failed to start ${ELASTICSEARCH_VERSION} in detached mode beyond health checks\033[0m" echo -e "\033[31;1mERROR:\033[0m dumped th...
ise-uiuc/Magicoder-OSS-Instruct-75K
export const SERVER = 'http://localhost:3000/api/';
ise-uiuc/Magicoder-OSS-Instruct-75K
factory.addIndexedProvider(new IndexedProvider<SampleForPersistencePresenter>() { @Override protected SampleForPersistencePresenter provide() { return new SampleForPersistencePresenter( new TaskRunnerAsyncShared<SampleForPersistencePresenter.View>(...
ise-uiuc/Magicoder-OSS-Instruct-75K
def compute_trajectory_features_set1(aligned_trajector_key_file: pd.DataFrame, parameters: Dict, start_time, end_time): features_df = pd.DataFrame()
ise-uiuc/Magicoder-OSS-Instruct-75K
"srcLang": 1033, "dstLang": 1049 } r = requests.get(URL_TRANSLATE, headers=headers_translate, params=params) res = r.json() try: print(res["Translation"] ["Translation"]) except: print("net word")...
ise-uiuc/Magicoder-OSS-Instruct-75K
return {'rooms': map(lambda t: marshal(t, room_fields), rooms)} class RoomTypeListAPI(Resource): decorators = [requires_auth] def __init__(self): super(RoomTypeListAPI, self).__init__() def get(self, api_user): room_types = RoomComponent.query.all()
ise-uiuc/Magicoder-OSS-Instruct-75K
Assert.Throws<DataCorruptedException>(() => serializer.Deserialize<int>(data)); } private Serializer serializer; } }
ise-uiuc/Magicoder-OSS-Instruct-75K
self.retranslateUi(Form)
ise-uiuc/Magicoder-OSS-Instruct-75K
"gunicorn.access": { "propagate": True, }, "app.app": { "propagate": False, } }, "handlers": { "console": {
ise-uiuc/Magicoder-OSS-Instruct-75K