seed
stringlengths
1
14k
source
stringclasses
2 values
[FieldOffset(Offset = "0x18")] public float yOffset; // Token: <KEY> RID: 3940
ise-uiuc/Magicoder-OSS-Instruct-75K
fi kubectl get deploy tekton-pipelines-webhook -n tekton-pipelines > /dev/null if [ $? -ne 0 ]; then continue; fi available=$(kubectl get deploy tekton-triggers-webhook -n tekton-pipelines -o json | jq -r ".status.availableReplicas") if [ "${available}" == "null" -o "${available}" == "0"...
ise-uiuc/Magicoder-OSS-Instruct-75K
} /*
ise-uiuc/Magicoder-OSS-Instruct-75K
# 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 permissions and # limitations under the License. ""...
ise-uiuc/Magicoder-OSS-Instruct-75K
return act def model(x): with tf.name_scope('model'):
ise-uiuc/Magicoder-OSS-Instruct-75K
return self.cache[args] else: value = self.func(*args) self.cache[args] = value return value def __repr__(self): '''Return the function's docstring.''' return self.func.__doc__ def __get__(self, obj, objtype): '''Support instance methods.''' ...
ise-uiuc/Magicoder-OSS-Instruct-75K
public static BigDecimal b(double n) { return new BigDecimal(n, MathContext.DECIMAL128); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
self.click("//a[contains(text(),'https://talkpython.fm/episodes/show/226/building-flask-apis-for-data" "-scientists')]") self.switch_to_window(1) # Users Verify the name <NAME> in podcast site self.assert_element_present("//div[1][contains(text(),'<NAME>')]") g...
ise-uiuc/Magicoder-OSS-Instruct-75K
yq 'length > 0' | tee /dev/stderr) [ "${actual}" = "false" ] } @test "syncCatalog/ClusterRole: enabled with sync enabled" { cd `chart_dir` local actual=$(helm template \ -x templates/sync-catalog-clusterrole.yaml \ --set 'syncCatalog.enabled=true' \ . | tee /dev/stderr | yq 'length...
ise-uiuc/Magicoder-OSS-Instruct-75K
def date(): return datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S") def get_args(): arg_parser = argparse.ArgumentParser(description='query_kegg.py: \ creates a JSON dump of the KEGG API') arg_parser.add_argument('outputFile', type=str)
ise-uiuc/Magicoder-OSS-Instruct-75K
import sys print(sys.builtin_module_names)
ise-uiuc/Magicoder-OSS-Instruct-75K
@Override public void onViewCreated(@NonNull final View view, @Nullable Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); a = 0; mainActivity = (MainActivity) getActivity(); mRecyclerView = (RecyclerViewExt) view.findViewById(R.id.rv); // 设置线性布局管...
ise-uiuc/Magicoder-OSS-Instruct-75K
} /** * Retrieves the search query being executed. *
ise-uiuc/Magicoder-OSS-Instruct-75K
from selenium.webdriver.remote.webdriver import WebDriver from selenium.webdriver.common import action_chains from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.support.ui import WebDriverWait from selenium_utils import exception
ise-uiuc/Magicoder-OSS-Instruct-75K
let received = buffer[pos...].withUnsafeMutableBytes { recv(sock, $0.baseAddress, byteCount, 0) } if received < 0 {
ise-uiuc/Magicoder-OSS-Instruct-75K
if asd != 0: newN = [] newGFP = [] newCY5 = [] newDNE = [] intab = "\\" outtab = "/" trantab = maketrans( intab, outtab ) for filename in fnmatch.filter(files, patternN): newNNN = '' newNN = os.path.join(root,filename) count_file += 1 newNNN = newNN.translate(trantab) newN.append( newN...
ise-uiuc/Magicoder-OSS-Instruct-75K
name = self._get_name(self._exc_type) return self._format_message(name, unic(self.error))
ise-uiuc/Magicoder-OSS-Instruct-75K
condition1 = dfJson.loc[dfJson['condition'] == 0]
ise-uiuc/Magicoder-OSS-Instruct-75K
catalogDict[label]={} if 'saveDS9Regions' in f['params'] and f['params']['saveDS9Regions'] == True: DS9RegionsPath=config.filteredMapsDir+os.path.sep+tileName+os.path.sep+"%s_filteredMap.reg" % (label)
ise-uiuc/Magicoder-OSS-Instruct-75K
@section('robots', 'INDEX,FOLLOW') @section('content') <div id="project" class="container"> <div class="col-md-6"> <img class="img-responsive" src="../images/projects/nahar.jpg" alt="Al-Borj Building">
ise-uiuc/Magicoder-OSS-Instruct-75K
self._parse_by_tag(tag, self._tag_to_url[tag], queue)
ise-uiuc/Magicoder-OSS-Instruct-75K
class Company extends Model implements HasMedia { use InteractsWithMedia; protected $fillable = [ 'name', 'email', 'mobile', ]; public function employee() { return $this->belongsToMany(Company::class, 'company_employee'); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
progress_bar = ProgressBar( BAR_X, 50, BAR_WIDTH, BAR_HEIGHT, 1.0, bar_color=0x999999, outline_color=0x000000 ) progress_bar_1 = ProgressBar( BAR_X, 95, BAR_WIDTH, BAR_HEIGHT, 1.0, bar_color=0x999999, outline_color=0x000000 ) magtag.graphics.splash.append(progress_bar) magtag.graphics.splash.append(progress_b...
ise-uiuc/Magicoder-OSS-Instruct-75K
entry = line.split(",") licence_type = entry[2] amount_due = entry[-6] print("%s\t%s" % (licence_type, amount_due))
ise-uiuc/Magicoder-OSS-Instruct-75K
NoUnitFound(String), /// No value at all was found. NoValueFound(String), } impl fmt::Display for Error { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self {
ise-uiuc/Magicoder-OSS-Instruct-75K
Returns ------- float the HSIC statistic. """ # test statistic m*HSICb under H1 return 1 / n * np.sum(np.sum(Kc.T * Lc)) def hsic_test_gamma(X, Y, bw_method='mdbs'): """get the HSIC statistic. Parameters ----------
ise-uiuc/Magicoder-OSS-Instruct-75K
import Foundation public final class WeakRefVirtualProxy<T: AnyObject> { private(set) public weak var object: T? public init(_ object: T) { self.object = object }
ise-uiuc/Magicoder-OSS-Instruct-75K
from enigma_machine.reflector import Reflector
ise-uiuc/Magicoder-OSS-Instruct-75K
connect(alias='connect', host=self.connect_host(), serverSelectionTimeoutMS=1000).testdb.artists.count_documents({}) def test_read(self): with self.raises(ServerSelectionTimeoutError): connect(alias='read', host=self.read_host(), port=self.read_port(), serverSelectionTimeoutMS=1000)...
ise-uiuc/Magicoder-OSS-Instruct-75K
print(fake.first_name(), fake.last_name()) print(fake.job()) # push fake data into database
ise-uiuc/Magicoder-OSS-Instruct-75K
import './assets/md-theme/vue.css'; import './assets/docs-theme/index.css';
ise-uiuc/Magicoder-OSS-Instruct-75K
{ public partial class SyntaxFactory { public static NameColonSyntax NameColon(IdentifierNameSyntax name) => NameColon(name, Token(SyntaxKind.ColonToken)); public static NameColonSyntax NameColon(string name) => NameColon(IdentifierName(name)); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
mv "$TEMPDIR"/$APPNAME-$VERSION/.* "$PREFIX" 2> /dev/null # we silence errors for . and .. rm -rf "$TEMPDIR" # fix tar extract preserving original uid/gid when extracting as root uid=`id -u` [ $uid -eq 0 ] && chown -R 0:0 "$PREFIX" # patch files with actual install path PATCHFILES="__post_insta...
ise-uiuc/Magicoder-OSS-Instruct-75K
Ni = 2*n No = n if numout_limit: No = numout_limit Mp = binmap_from_function(func, Ni, No) np.savez(outfile, matrix=Mp, Ni=Ni, Ne=Mp.Ne) def mapping_from_file(filename): with np.load(filename) as f: return PackedMatrix(f['matrix'], f['Ne'], f['Ni'])
ise-uiuc/Magicoder-OSS-Instruct-75K
async def async_start_program(self, program_key:str=None, options:Sequence[dict]=None, program:Program=None) -> bool: """ Started the specified program Parameters: key: The key of the program to select options: Additional program options to set
ise-uiuc/Magicoder-OSS-Instruct-75K
def __str__(self): """Get the name of this wikidata instance.""" return self.name @property def wikidata_url(self):
ise-uiuc/Magicoder-OSS-Instruct-75K
<gh_stars>1-10 #[derive(Debug, PartialEq, Clone)] pub struct CreatingRoom {}
ise-uiuc/Magicoder-OSS-Instruct-75K
import requests import argparse import logging import json import datetime
ise-uiuc/Magicoder-OSS-Instruct-75K
export default ProjectCreationRequest;
ise-uiuc/Magicoder-OSS-Instruct-75K
try: import gp_grief.models from .gp_grief_model import GPGriefModel except: print('Could not import GPGriefModel - ensure gp_grief package is installed.') print('NOTE: install forked version from https://github.com/scwolof/gp_grief')
ise-uiuc/Magicoder-OSS-Instruct-75K
pub extern "C" fn mod_simulation_load(_s: &mut state::State) {} #[no_mangle] pub extern "C" fn mod_simulation_update(_s: &mut state::State, _dt: &Duration) { //println!("sim tick, probably need deltatime (since this mod was last ticked)"); }
ise-uiuc/Magicoder-OSS-Instruct-75K
public string DeployScript { get; set; } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
###### # The dataset* variables are optional, if these are set in config.ini this script will # not run the relevant DataUploader function datasetId = config.get("dataUploader", "datasetId", fallback=None) datasetVersion = config.get("dataUploader", "datasetVersion", fallback=None) datasetVersionEdition = config.get(
ise-uiuc/Magicoder-OSS-Instruct-75K
protected $table = 'admin_log'; public $timestamps = false; public function admin_Log() { return $this->belongsTo('App\User', 'admin_id', 'id'); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
*/ //set the timezone - See List of Supported Timezones at: http://www.php.net/manual/en/timezones.php date_default_timezone_set( "Europe/London" ); //set the erro reporting //error_reporting(E_ALL ^E_DEPRECATED); error_reporting(E_ALL ^E_DEPRECATED ^E_NOTICE);
ise-uiuc/Magicoder-OSS-Instruct-75K
javascriptInterpreter.isFunction(object: nil, functionName: "test") { (isFunction) in if !isFunction { expectation3.fulfill() } } let expectation4 = self.expectation(description: "foobar") javascriptInterpreter.isFunction(object: nil, functionName...
ise-uiuc/Magicoder-OSS-Instruct-75K
canvas.configure(scrollregion=canvas.bbox("all")) root = tk.Tk() canvas = tk.Canvas(root, borderwidth=0, background="#ffffff")
ise-uiuc/Magicoder-OSS-Instruct-75K
} } /** * Uses the translation file group name to find the input label's PvlKeyword
ise-uiuc/Magicoder-OSS-Instruct-75K
public bool SmtpSSL { get; set; } public string SmtpUser { get; set; } public Settings() { Timeout = 86400; } public Settings Clone() {
ise-uiuc/Magicoder-OSS-Instruct-75K
#define fastio ios::sync_with_stdio(0), cin.tie(0), cout.tie(0) using namespace std; string DB[6] = {"ABC", "ACB", "BAC", "BCA", "CAB", "CBA"}, s; int dp[7001][6], tdp[7001][6];
ise-uiuc/Magicoder-OSS-Instruct-75K
return _C_ops.final_state_imag(x) if _in_legacy_dygraph(): return _C_ops.imag(x) check_variable_and_dtype(x, 'x', ['complex64', 'complex128'], 'imag') helper = LayerHelper('imag', **locals()) out = helper.create_variable_for_type_inference( dtype=_complex_to_real_dtype(helper.in...
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>tags/roombacomm_DPRG_arrival/build-jar.sh #!/bin/sh # # Builds the jar file for the core RoombaComm classes # This core is used for all direct-connect (serial,etc) cases # # Before running this script, compile all the .java files to .class files # and "cd build" # #
ise-uiuc/Magicoder-OSS-Instruct-75K
#[derive(Debug,Serialize,Deserialize)] pub struct ShapedRecipe { result: RecipeItem , // todo #[serde(rename = "inShape")] in_shape: Shape, //todo #[serde(rename = "outShape")] out_shape: Option<Shape>, // todo } #[derive(Debug,Serialize,Deserialize)] pub struct ShapelessRecipe { result: Recip...
ise-uiuc/Magicoder-OSS-Instruct-75K
self.maxG = QLineEdit() self.maxG.setText(str("1.0")) lineLayout = QVBoxLayout() lineLayout.addWidget(QLabel("Entering Velocity[mm/s]")) lineLayout.addWidget(self.init_vel) lineLayout.addWidget(QLabel("Max_G")) lineLayout.addWidget(self.maxG)
ise-uiuc/Magicoder-OSS-Instruct-75K
self.criterion = nn.BCELoss() self.SATcriterion = nn.CrossEntropyLoss() self.real_labels = Variable(torch.FloatTensor(self.batch_size).fill_(1)) self.fake_labels = Variable(torch.FloatTensor(self.batch_size).fill_(0)) self.gradient_one = torch.FloatTensor([1.0]) self.gr...
ise-uiuc/Magicoder-OSS-Instruct-75K
worker_size = 10 pool = multiprocessing.Pool() for idx,conn in enumerate([r0,r1]):
ise-uiuc/Magicoder-OSS-Instruct-75K
@Inject private OrderRepo orderRepo; private List<Order> filterOrderByStatus(List<Order> order,OrderStatus status){ return order.stream() .filter(o -> o.getStatus() == status) .collect(Collectors.toList());
ise-uiuc/Magicoder-OSS-Instruct-75K
{ return DelegateProvider.GetPassword(username, answer);
ise-uiuc/Magicoder-OSS-Instruct-75K
public List<InterfaceMethodDef> getMethods() { return methods; } }
ise-uiuc/Magicoder-OSS-Instruct-75K
class UnitDestroyedEvent: """An event indicating which unit just died.""" def __init__(self, unit_tag: int, unit: Optional[Unit]): assert isinstance(unit_tag, int) assert isinstance(unit, Unit) or unit is None self.unit_tag: int = unit_tag self.unit: Optional[Unit] = ...
ise-uiuc/Magicoder-OSS-Instruct-75K
sh sysutils/service.sh Syncthing syncthing $HOME/syncthing-linux-* else # Get the latest Syncthing release ver=$(curl -Ls -o /dev/null -w %{url_effective} https://github.com/syncthing/syncthing/releases/latest) # Only keep the version number in the url ver=${ver#*v} arch=amd64 [ $ARCHf = arm ] && arch=ar...
ise-uiuc/Magicoder-OSS-Instruct-75K
} export default translate(Component);
ise-uiuc/Magicoder-OSS-Instruct-75K
// MARK: Variables var artistOID: NSManagedObjectID?
ise-uiuc/Magicoder-OSS-Instruct-75K
let (input, cc_socu_default) = le_u32(input)?;
ise-uiuc/Magicoder-OSS-Instruct-75K
def __init__(self, names: Dict[str, str], shapes: Dict[str, List[int]]) -> None: super().__init__() self.feature_name = names['feature'] self.conditioner_name = names['conditioner'] assert len(shapes) == 2, f'shapes {shapes} should specify only two keys for feature and conditioner' ...
ise-uiuc/Magicoder-OSS-Instruct-75K
output_path = self._output_path + "/" + routine.user_name+".cl" self._write_file(output_path, template.render(routine=routine, channels=channels_routine)) #add helpers template = self._read_template_file("helpers/"+gd.TEMPLATE_READ_VECTOR_X) channels_helper = {"channel_out_vecto...
ise-uiuc/Magicoder-OSS-Instruct-75K
: ${WAITER_PORT:=9091} ${WAITER_DIR}/bin/run-using-shell-scheduler.sh ${WAITER_PORT} & # Run the integration tests export WAITER_TEST_KITCHEN_CMD=${KITCHEN_DIR}/bin/kitchen export WAITER_TEST_NGINX_CMD=${NGINX_DIR}/bin/run-nginx-server.sh export WAITER_TEST_SEDIMENT_CMD=${SEDIMENT_DIR}/bin/run-sediment-server.sh
ise-uiuc/Magicoder-OSS-Instruct-75K
class FairseqIncrementalState(object): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) init_incremental_state(self)
ise-uiuc/Magicoder-OSS-Instruct-75K
} catch (PackagingException) { threwPackagingException = true; } // Assert Assert.True(threwPackagingException); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
for i in range(len(a)): a[i] = list(a[i]) return a
ise-uiuc/Magicoder-OSS-Instruct-75K
public string UserId { get; set; } [JsonProperty("domain_name")] public string DomainName { get; set; } [JsonProperty("full_user_id")]
ise-uiuc/Magicoder-OSS-Instruct-75K
@click.argument('filename', nargs=1, default='') @click.argument('starttime', nargs=1, default='') @click.argument('stoptime', nargs=1, default='') def main(filename, starttime, stoptime): """Start filename at specific start time (and/or end at specific end time) """
ise-uiuc/Magicoder-OSS-Instruct-75K
* * This CacheKeyMaker is useful for IndexedCache instances where the cache key can be the same type as the cache value * of the IndexedCache but only when the value type overrides Object.hashCode() and Object.equals() such that * both Object.hashCode() and Object.equals() resolve to the same values for value insta...
ise-uiuc/Magicoder-OSS-Instruct-75K
register = template.Library()
ise-uiuc/Magicoder-OSS-Instruct-75K
print(f"Epoch: {epoch+1}/{epochs} ", f"Training Loss: {running_loss/print_every:.3f} ", f"Validation Loss: {test_loss/len(dataloaders['valid']):.3f} ", f"Validation Accuracy: {accuracy/len(dataloaders['valid']):.3f}") runn...
ise-uiuc/Magicoder-OSS-Instruct-75K
public class BlinkingLabel : UILabel { public func startBlinking() { let options : UIViewAnimationOptions = .Repeat UIView.animateWithDuration(0.25, delay:0.0, options:options, animations: { self.alpha = 0 }, completion: nil) } public func stopBlinking() { ...
ise-uiuc/Magicoder-OSS-Instruct-75K
loadProfile = createEffect(() => this.actions.pipe( ofType(loadProfile), filter(() => this.authService.authenticated), mergeMap(() => this.profileService.fetchProfile()), map(profile => profileLoaded({ profile })), ) );
ise-uiuc/Magicoder-OSS-Instruct-75K
<tr> <td><?= __('Table') ?></td> <td><?= $tablesLog->has('table') ? $this->Html->link($tablesLog->table->name, ['controller' => 'Tables', 'action' => 'view', $tablesLog->table->id]) : '' ?></td> </tr> <tr> <td><?= __('Id') ?></td> <td><?= $this->Nu...
ise-uiuc/Magicoder-OSS-Instruct-75K
import numpy as np import matplotlib.pyplot as plt from model import RL_Policy, Semantic_Mapping from utils.storage import GlobalRolloutStorage
ise-uiuc/Magicoder-OSS-Instruct-75K
} return binaryString; } private String cCommandAssemblyToBinaryCurrentLine() { String binaryString = "111"; // C command starts with 1, followed by 2 unused bits
ise-uiuc/Magicoder-OSS-Instruct-75K
# + from bokeh.plotting import figure from bokeh.io import output_notebook, show, push_notebook
ise-uiuc/Magicoder-OSS-Instruct-75K
nameLabel.text = viewModel.fullName userImageView.reactive.image <~ viewModel.image
ise-uiuc/Magicoder-OSS-Instruct-75K
print(f"Test #{index} {green_bold('passed')}.") except BaseException as exception: print(red_bold(type(exception))) print(red_bold(exception)) print(f"Test #{index} DIDNT pass!")
ise-uiuc/Magicoder-OSS-Instruct-75K
String line; String currentDoc = null; while ((line = in.readLine()) != null) { if( line.contains("DEV-MUC3-") ) { int start = line.indexOf("DEV-MUC3-"); currentDoc = line.substring(start, start+13); }
ise-uiuc/Magicoder-OSS-Instruct-75K
Parameters ---------- magnification : float, or a array with same size as image_atlas magnification for generating mask foe each image applylist : [list of index] None for all images ''' if type(magnification) == float: magnific...
ise-uiuc/Magicoder-OSS-Instruct-75K
parallelism, num_results: 20, rpc_timeout: Duration::from_secs(8), add_provider: SmallVec::new(),
ise-uiuc/Magicoder-OSS-Instruct-75K
// Created by NMI Capstone on 10/22/18. // Copyright © 2018 Apple. All rights reserved. // import Foundation extension ViewController{
ise-uiuc/Magicoder-OSS-Instruct-75K
if (uniqueName.length() > 0) { methodName.append(uniqueName); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
from translate.misc.multistring import multistring from translate.storage import ts2 as ts from translate.storage import test_base from translate.storage.placeables import parse from translate.storage.placeables import xliff from translate.storage.placeables.lisa import xml_to_strelem xliffparsers = [] for attrname i...
ise-uiuc/Magicoder-OSS-Instruct-75K
#include "hash.hh"
ise-uiuc/Magicoder-OSS-Instruct-75K
public var sellIn: Int public var quality: Int public init(name: String, sellIn: Int, quality: Int) { self.name = name
ise-uiuc/Magicoder-OSS-Instruct-75K
import prml.nn as nn class TestGaussian(unittest.TestCase):
ise-uiuc/Magicoder-OSS-Instruct-75K
sudo ./aws/install
ise-uiuc/Magicoder-OSS-Instruct-75K
{ $domains = $this->startConditions()::find($id); $domains->ssltime = $val; $domains->save(); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
use Bracket::*; error_score += match r? { Some(Parenthesis) => 3, Some(Square) => 57,
ise-uiuc/Magicoder-OSS-Instruct-75K
case = "" for row in reader: case = row["case"] if not case in self.data: self.data.update({case:[[], [], [], []]}) x = self.data[case][self.FEATURE_IDX] y = self.data[case][self.LABEL_IDX] ...
ise-uiuc/Magicoder-OSS-Instruct-75K
<!-- USER_PANEL WRAPPER END -->
ise-uiuc/Magicoder-OSS-Instruct-75K
class SimplifiyPathTestCases(TestCases): def __init__(self): super(SimplifiyPathTestCases, self).__init__() self.__add_test_case__('Test 1', '/home/', '/home') self.__add_test_case__('Test 2', '/a/./b/../../c/', '/c') self.__add_test_case__('Test 3', '/../', '/') self.__ad...
ise-uiuc/Magicoder-OSS-Instruct-75K
else { $this->load->view('orders/order_tab_menu'); } } ?> <form id="orderForm"> <div class="modal fade" id="orderGrid" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-dialog" id="modal" style="min-width:250px; max-width:1000px;"> <div class="modal-content"...
ise-uiuc/Magicoder-OSS-Instruct-75K
close_enemies = self.cache.enemy_in_range(unit.position, 7).filter(lambda u: u.is_armored) if close_enemies: return Action(None, False, AbilityId.EFFECT_VOIDRAYPRISMATICALIGNMENT) if not self.should_shoot() and self.should_retreat(unit): pos = self.pather.fin...
ise-uiuc/Magicoder-OSS-Instruct-75K