seed
stringlengths
1
14k
source
stringclasses
2 values
this->m_instanceCreateInfo.pApplicationInfo = &this->m_appInfo;
ise-uiuc/Magicoder-OSS-Instruct-75K
*/ public $district_id; /** * @var string * @SWG\Property(enum={"primary","secondary","post_secondary","university","never"}) */ public $education_level;
ise-uiuc/Magicoder-OSS-Instruct-75K
name="last_class_center", shape=[1, self.num_class, channels], dtype=tf.float32, initializer=tf.keras.initializers.GlorotUniform(), trainable=False, ) def call(self, inputs, training=None): inputs, lab...
ise-uiuc/Magicoder-OSS-Instruct-75K
for|for control|( name|JsonWebKey name|key range|: name|keys control|) block|{ name|List argument_list|< name|KeyOperation argument_list|> name|ops init|= name|key
ise-uiuc/Magicoder-OSS-Instruct-75K
using VoteKit.Data.Models; namespace VoteKit.Api; public record Config(string BasePath, Guid EmptyGuid); public partial class Query { public string Echo(string input) => input;
ise-uiuc/Magicoder-OSS-Instruct-75K
interface ActionInfoWithText { name: 'withText' | 'withExactText' | 'withValue' | 'withPlaceholder'; text: string; } interface ActionInfoWithIndex { name: 'nth'; index: number;
ise-uiuc/Magicoder-OSS-Instruct-75K
git tag -d v0.9 #然后,从远程删除。删除命令也是push
ise-uiuc/Magicoder-OSS-Instruct-75K
public string GetConfiguration(string key); }
ise-uiuc/Magicoder-OSS-Instruct-75K
# DATE CREATED : May 28, 2020 # # Copyright 2020, California Institute of Technology. # ALL RIGHTS RESERVED. U.S. Government Sponsorship acknowledged. # =============================================================================== import sys import os
ise-uiuc/Magicoder-OSS-Instruct-75K
SnipExtension().run()
ise-uiuc/Magicoder-OSS-Instruct-75K
file_out=${file/.mp4/_cut.mp4} if [[ -z "$duration" ]] then duration_cmd="" else duration_cmd="-t $duration" fi
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>saltaf07/Public-Scripts export { EditProfile } from './EditProfile';
ise-uiuc/Magicoder-OSS-Instruct-75K
o_dir = "LunarLander-v2/{}/models".format(timestamp) if not os.path.exists(o_dir): os.makedirs(o_dir) nof_episodes = 500 # 8 values in [0, 1]
ise-uiuc/Magicoder-OSS-Instruct-75K
operations = [ migrations.CreateModel( name='Tenant', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('firstName', models.CharField(max_length=100)), ('lastName', models.CharF...
ise-uiuc/Magicoder-OSS-Instruct-75K
AdminList.getEntry(uuid) .setCustomLoginMessage(""); // Set the custom login message to the value. AdminList.save(AdminList.getEntry( uuid)); // Save the modified value to the super admin configuration. AdminList.updateIndexLists(); // Update and refresh configuration. return true; } else...
ise-uiuc/Magicoder-OSS-Instruct-75K
nodes.set_edgecolor('black') networkx.draw_networkx_labels(self._graph, pos=pos, ax=ax, font_size=8) networkx.draw_networkx_edge_labels(self._graph, pos=pos, edge_labels=edge_lable, ax=ax) ax.set_xticks([]) ax.set_yticks([])
ise-uiuc/Magicoder-OSS-Instruct-75K
nodeHtmls.Add(new HtmlString(", ")); }
ise-uiuc/Magicoder-OSS-Instruct-75K
if [[ $currentShell == 'bash' ]]; then echo ${FUNCNAME[1]} elif [[ $currentShell == 'zsh' ]]; then echo ${funcstack[2]}
ise-uiuc/Magicoder-OSS-Instruct-75K
from .segmented_replay_buffer import SegmentedReplayBuffer
ise-uiuc/Magicoder-OSS-Instruct-75K
globalHeaders: (_queryConfig): GlobalHeadersType[] => [ { header: sourceTrackingHeaderName, value: `${packageInfo.name};${packageInfo.version}`,
ise-uiuc/Magicoder-OSS-Instruct-75K
name = 'reservierung'
ise-uiuc/Magicoder-OSS-Instruct-75K
this.input.setText(""); this.output.setText("" + out);
ise-uiuc/Magicoder-OSS-Instruct-75K
def extract_some(infile, outfile): f = open(infile, 'r') out_f = open(outfile, 'w') out_f.write("Start\tStop\tStrand\tNumber of Genes\tGenes\n") line = f.readline() pat = re.compile(r'\-') while True:
ise-uiuc/Magicoder-OSS-Instruct-75K
from __future__ import unicode_literals from tipi import tipi as _tipi tipi = lambda s: _tipi(s, lang='fr') def test_double_quotes(): assert tipi('''"brutal" "quote's"''') == ( '''«brutal» «quote's»''' )
ise-uiuc/Magicoder-OSS-Instruct-75K
setup_log) if __name__ == "__main__": sys.exit(main())
ise-uiuc/Magicoder-OSS-Instruct-75K
S1 = "abcdefghijklmnopqrstuvwxyz" S2 = "cba" map = {} initial = 0
ise-uiuc/Magicoder-OSS-Instruct-75K
// --------------------------------------------------------------------------------------------------------------------- // PortStats // --------------------------------------------------------------------------------------------------------------------- #[derive(Debug, PartialEq)] pub struct PortStats { pub stat...
ise-uiuc/Magicoder-OSS-Instruct-75K
#include "stdafx.h"
ise-uiuc/Magicoder-OSS-Instruct-75K
serializer = UserCollectionSerializer(data={'username': 'user', 'password': '<PASSWORD>', 'is_admin': 'si'}) self.assertEquals(False, serializer.is_valid(), "Serialization invalid") def test_deserialize_user_empty_user_should_give_error_invalid(self): # We need to do import here in order ge...
ise-uiuc/Magicoder-OSS-Instruct-75K
long_description_content_type="text/markdown", url="https://github.com/grunichev/cbr", author="<NAME>", author_email="<EMAIL>", license="MIT", classifiers=[
ise-uiuc/Magicoder-OSS-Instruct-75K
global helvar if helvar <= 2: i01.mouth.speak("I'm fine thank you") helvar += 1 elif helvar == 3:
ise-uiuc/Magicoder-OSS-Instruct-75K
ensure_directory_exists(full_path) return full_path def ensure_directory_exists(directory): try: os.makedirs(directory) except OSError as error: if error.errno != errno.EEXIST: raise def download_segments(playlist, destination_path, new_key):
ise-uiuc/Magicoder-OSS-Instruct-75K
public mutating func set(_ json: SelfDescribingJSON, forKey key: PropertyKey) {
ise-uiuc/Magicoder-OSS-Instruct-75K
# it should be available in centos docker repo yumdownloader --resolve --destdir="$outdir" docker-ce-17.03.2.ce libtool-ltdl docker-ce-selinux yumdownloader --resolve --destdir="$outdir" dnsmasq icewm firefox tigervnc-server perl* createrepo "$outdir"
ise-uiuc/Magicoder-OSS-Instruct-75K
if isGLSL(slVersion): # GLSL source code is directly inlined for runtime-compilation
ise-uiuc/Magicoder-OSS-Instruct-75K
func test_invalidDataButValidResponse() { guard let urlRequest = try? DBURLRequestBuilder(with: URL(string: mockObject.urlString)) .set(method: HTTPMethod.get) .set(timeoutInterval: mockObject.testTimeout) .set(headers: mockObject.defaultHeaders) ...
ise-uiuc/Magicoder-OSS-Instruct-75K
value2 = 74.3 value4 = -100 print(f"O valor 1 é {round(value)} e o valor 2 {round(value2)}") print(f"O valor 1 também é {int(value)}") print(f"O valor absoluto de {value4} é {abs(value4)}") print(3//2)
ise-uiuc/Magicoder-OSS-Instruct-75K
{ private static int Point24Add = 0, Point24Minus = 2, Point24Multiply = 1, Point24Divided = 3; private static double MiniGap = 0.0000001f; public bool JudgePoint24(int[] nums) { List<double> list = new List<double>();
ise-uiuc/Magicoder-OSS-Instruct-75K
Str::deleteUnnecessarySpaces($tester->getDisplay()) ); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
interface GlobalHeaderProps { /** 当前Layout菜单数据 */ layoutMenuData: LayoutMenuData; // ----------------------------------------------------------------------------------- 自定义渲染逻辑 /** 左侧区域class样式 */ leftClassName?: string; /** 左侧区域样式 */ leftStyle?: CSSProperties; /** 中间动态宽度区域class样式 */
ise-uiuc/Magicoder-OSS-Instruct-75K
* 3. The _document_'s browsing context is `null`. * 4. The _document_ is not fully active. * 5. The _document_ is hidden. * 6. The request was aborted.
ise-uiuc/Magicoder-OSS-Instruct-75K
carma_process, get_ar_roots from samplers import MCMCSample
ise-uiuc/Magicoder-OSS-Instruct-75K
('VideoPath', models.FileField(null=True, upload_to=summarize.models.user_directory_path, validators=[summarize.models.file_size], verbose_name='')), ('Name', models.CharField(max_length=400)), ('UserID', models.ForeignKey(default=1, on_delete=django.db.models.deletion.CA...
ise-uiuc/Magicoder-OSS-Instruct-75K
} /// Save the account state on drop. pub fn dropsave(mut self, value: bool) -> Self {
ise-uiuc/Magicoder-OSS-Instruct-75K
class Graph_Process: def __path_cutext2(self,pathkun): pathkun22, extkun = os.path.splitext(os.path.basename(pathkun)) return pathkun22 def __init__(self,filename): self.filename=filename self.path_ONLY=self.__path_cutext2(filename) def process(self,Facearray): Instan...
ise-uiuc/Magicoder-OSS-Instruct-75K
A viccek nagy része a https://viccfaktor.hu/cimke/programozo-viccek/ weboldalról és a https://gremmedia.hu/programozo-viccek weboldalról származik """
ise-uiuc/Magicoder-OSS-Instruct-75K
return email; } public void setEmail(String email) { this.email = email; } public String getObservacao() { return observacao; } public void setObservacao(String observacao) { this.observacao = observacao; }
ise-uiuc/Magicoder-OSS-Instruct-75K
/** * @param url Url path for get request * @param request Request for the post body * @template TRequest Describes the type for the json request * @template TResponse Describes the type for the json response
ise-uiuc/Magicoder-OSS-Instruct-75K
hospital = Hospital.query.filter_by(name=name).first() print("This will be either a name or None: ", hospital) #add new hospital if hospital not found in db if hospital == None: hospital = Hospital(name=name, address=address, city=city, s...
ise-uiuc/Magicoder-OSS-Instruct-75K
<gh_stars>1-10 namespace Topshelf.DryIoc.Sample
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
// 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 BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF ...
ise-uiuc/Magicoder-OSS-Instruct-75K
#include <sstream> namespace phosphor { namespace smbios { std::string System::uUID(std::string value) { uint8_t* dataIn = storage; dataIn = getSMBIOSTypePtr(dataIn, systemType); if (dataIn != nullptr) { auto systemInfo = reinterpret_cast<struct SystemInfo*>(dataIn); std::stringstream s...
ise-uiuc/Magicoder-OSS-Instruct-75K
'hSRPT': (1, 1), 'hFifo': (3, 3), 'hHRRN': (9, 9), 'SRPT': (4, 4), 'PSJF': (5, 5), 'SJF': (5, 5),
ise-uiuc/Magicoder-OSS-Instruct-75K
* SVN用户-仓库信息类 * @author lpf7161 * */ public class SvnInfo {
ise-uiuc/Magicoder-OSS-Instruct-75K
// Unless required by applicable law or agreed to in writing, software
ise-uiuc/Magicoder-OSS-Instruct-75K
interface ParallelProps { shouldStart?: boolean } export const Parallel: React.SFC<ParallelProps> = ({ children, shouldStart = true }) => ( <RunnerHandler shouldStart={shouldStart} getRunner={animations => Animated.parallel(animations)}> {children}
ise-uiuc/Magicoder-OSS-Instruct-75K
pass
ise-uiuc/Magicoder-OSS-Instruct-75K
flat_label = torch.tensor(flat_label) branch_label = torch.tensor(branch_label) pad = torch.tensor([-100] * (self.depth - branch_label.size(0)),dtype=torch.int64) branch_label = torch.cat((branch_label,pad),0) img = Image.fromarray(img.numpy().T, mode='L') ...
ise-uiuc/Magicoder-OSS-Instruct-75K
split = 0.3 breast_cancer_dataset_train, breast_cancer_dataset_test = train_test_split(breast_cancer_dataset, test_size=split) X_train, Y_train = breast_cancer_dataset_train.drop(columns='label'), breast_cancer_dataset_train['label'] X_test, Y_test = breast_cancer_dataset_test.drop(columns='label'), breast_cancer_data...
ise-uiuc/Magicoder-OSS-Instruct-75K
ret_val1 = True for key in kwargs: if key in common_key_list: st.log("Match: Match key {} found => {} : {}".format(key,kwargs[key],rlist[key])) else: for key in kwargs: if key in common_key_list:
ise-uiuc/Magicoder-OSS-Instruct-75K
# # Author: <NAME> (stephen_fewer[at]harmonysecurity[dot]com) #=============================================================================# import os, sys, time from subprocess import Popen from struct import pack #=============================================================================# def clean( dir="./bin/" ...
ise-uiuc/Magicoder-OSS-Instruct-75K
for s in strings: counts[s] += 1 print(counts)
ise-uiuc/Magicoder-OSS-Instruct-75K
//! ).unwrap(); //! //! // for correct axis, you have to set them yourself, //! // since the histograms do not even need to be numeric //! let x_axis = GnuplotAxis::new(0.0, 10.0, 6); //! let y_axis = GnuplotAxis::new(10.0, 20.0, 6); //! settings.x_axis(x_axis) //! .y_axis(y_axis) //! // you can also change the co...
ise-uiuc/Magicoder-OSS-Instruct-75K
// 封禁状态 const closure = 2; // 警告状态 const warning = 3; }
ise-uiuc/Magicoder-OSS-Instruct-75K
smsConsent?: boolean; streetAddress?: string; city?: string; state?: string; zip?: string; housing?: string; email?: string; dateOfIntake?: string; };
ise-uiuc/Magicoder-OSS-Instruct-75K
admin.site.register(DocumentReferencesType_model) admin.site.register(DocumentTitleType_model) admin.site.register(DocumentTrackingType_model) admin.site.register(DocumentTypeType_model) admin.site.register(EngineType_model) admin.site.register(EntitlementType_model)
ise-uiuc/Magicoder-OSS-Instruct-75K
* @author vzamylin * @version 1 * @since 28.02.2018 */ package ru.job4j.array;
ise-uiuc/Magicoder-OSS-Instruct-75K
)
ise-uiuc/Magicoder-OSS-Instruct-75K
{ //Hemos llegado al centro de la casilla transform.position = target; path.Pop(); } } protected void CalculateHeading(Vector3 target) { heading = target - transform.position;
ise-uiuc/Magicoder-OSS-Instruct-75K
s = "\n\nEpoch: {}".format(epoch) print(s) log_str += s + "\n" temptime = time.time() s = "Data steps: {} | Tot running time: {}" s = s.format(steps_seen,temptime-starttime)
ise-uiuc/Magicoder-OSS-Instruct-75K
# decode all the camera-specific MakerNote formats # Note is the data that comprises this MakerNote. The MakerNote will # likely have pointers in it that point to other parts of the file. We'll
ise-uiuc/Magicoder-OSS-Instruct-75K
'ModbusServerContext', ]
ise-uiuc/Magicoder-OSS-Instruct-75K
# please change it too in README.md # DOC_README_0 import nevergrad as ng def fake_training(learning_rate: float, batch_size: int, architecture: str) -> float: # optimal for learning_rate=0.2, batch_size=4, architecture="conv" return (learning_rate - 0.2) ** 2 + (batch_size - 4) ** 2 +...
ise-uiuc/Magicoder-OSS-Instruct-75K
// Pass the selected object to the new view controller. } */ }
ise-uiuc/Magicoder-OSS-Instruct-75K
audioSource.Play(); isPlaying = true; try {
ise-uiuc/Magicoder-OSS-Instruct-75K
"secp256k1_implementation" ] ) ], targets: [ .target( name: "secp256k1_bindings", path: "Sources/bindings", exclude: [ "secp256k1/src/asm", "secp256k1/src/bench_ecdh.c", "secp256k1/src...
ise-uiuc/Magicoder-OSS-Instruct-75K
for i in range(self.snippet_lines_increment): _eof_buffer.append(_buffer.popleft()) # yield full buffer snippet if len(_buffer) == self.snippet_lines_coverage: yield self._buffer_snippet(_buffer, _end)
ise-uiuc/Magicoder-OSS-Instruct-75K
stroke-linejoin=self.props.stroke_linejoin.unwrap_or("round") > <svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24" viewBox="0 0 24 24" width="24"><g><path d="M0,0h24v24H0V0z" fill="none"/></g><g><path d="M20,4H4C2.89,4,2.01,4.89,2.01,6L2,18c0,1....
ise-uiuc/Magicoder-OSS-Instruct-75K
class Migration(migrations.Migration): dependencies = [ ('destinations', '0036_extradestinationpicture_extraeventpicture'),
ise-uiuc/Magicoder-OSS-Instruct-75K
use thiserror::Error as DeriveError; pub use tonic::{Code, Status}; #[derive(Debug, DeriveError)] pub enum ClientError {
ise-uiuc/Magicoder-OSS-Instruct-75K
# ------------------------------------------ ### DEPENDENCIES # ------------------------------------------
ise-uiuc/Magicoder-OSS-Instruct-75K
Ray ray; ray.origin = origin; ray.dir = Normalize( vec ); ray.pos = ray.origin + ray.dir * nearPlane;
ise-uiuc/Magicoder-OSS-Instruct-75K
for el in self._orig: el.flush() sys.stdout, sys.stderr = self._orig for i, orig_fileno in enumerate(self._orig_fileno):
ise-uiuc/Magicoder-OSS-Instruct-75K
* "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
ise-uiuc/Magicoder-OSS-Instruct-75K
* <EMAIL> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or any later version. * * This program is distributed in the hope that it will be useful, ...
ise-uiuc/Magicoder-OSS-Instruct-75K
hessianThreshold = 0.03 minFeatureScales = 3
ise-uiuc/Magicoder-OSS-Instruct-75K
sys.exit(1) server = tornado.httpserver.HTTPServer(self.application, xheaders=True, ssl_options=self.ssl_options) if self.options.proc is None: proc = self.conf.get_int_option('setting',...
ise-uiuc/Magicoder-OSS-Instruct-75K
from openstackx.api import exceptions as api_exceptions TerminateInstance = dash_instances.TerminateInstance RebootInstance = dash_instances.RebootInstance
ise-uiuc/Magicoder-OSS-Instruct-75K
@property def is_unique(self): return self.solve_smart(test_unique=True) def _reset_random_node(self): random.choice(self.nodes).value = 0 return True
ise-uiuc/Magicoder-OSS-Instruct-75K
#!/bin/bash
ise-uiuc/Magicoder-OSS-Instruct-75K
from django.db import migrations, models from django.utils.timezone import utc
ise-uiuc/Magicoder-OSS-Instruct-75K
nums = [1000, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1]#两个数组,从高到低
ise-uiuc/Magicoder-OSS-Instruct-75K
pub mod frame; pub mod free_list; pub use allocator::{Allocator, AllocatorError};
ise-uiuc/Magicoder-OSS-Instruct-75K
} interface EducationClass {
ise-uiuc/Magicoder-OSS-Instruct-75K
if option in 'nN': break else: counter += 1 print(f'{"N°":<4} {"NOME":<7} {"MÉDIA":>8}') print('---------------------') for number, student in enumerate(studentGrade): print(f'{number:<5}', end='') print(f'{student[0]:<7}', end='') media = sum(student[1]) / 2 print(f'{media:>8.1...
ise-uiuc/Magicoder-OSS-Instruct-75K
} /// Assigns "Called a deep function" to phrase and test the value afterwards #[test] pub fn hello4() { env_setup();
ise-uiuc/Magicoder-OSS-Instruct-75K
<gh_stars>1-10 # main.py from preprocess import preprocess from decision_tree import decision_tree
ise-uiuc/Magicoder-OSS-Instruct-75K
* @see SubmitDataRequest */ public function getRequestData() { $this->setValue(array('x' => $_REQUEST['x'], 'y' => $_REQUEST['y'])); } /** * @see Requestable */ public function RequestHandle() { $this->OnEvent(); }
ise-uiuc/Magicoder-OSS-Instruct-75K
duration_ns }; eprintln!("{} ns : {}", duration_ns, name);
ise-uiuc/Magicoder-OSS-Instruct-75K