seed
stringlengths
1
14k
source
stringclasses
2 values
--output "files/resized.jpg" \
ise-uiuc/Magicoder-OSS-Instruct-75K
const action = setSettingsRepositoryLocationsAction(payLoad); expect(reducer(applicationStateInitial(), action).repositoryLocations).toEqual([REPOSITORY_LOCATION_TYPE.Private, REPOSITORY_LOCATION_TYPE.Public]);
ise-uiuc/Magicoder-OSS-Instruct-75K
SCAN_ROOT = os.path.join(os.path.dirname(os.path.realpath(__file__)), '../../scan/') SCAN_DIR = os.path.join(SCAN_ROOT, 'archive/05.06.2017/') # TODO: Discriminate between scan static (normal) files and scan dynamic (generated by code) files (archive dir). BANNERS_DIR = os.path.join(SCAN_DIR, 'banners/') BANNERS_FAIL...
ise-uiuc/Magicoder-OSS-Instruct-75K
p2_X = geodesy.conversions.lla_to_vector(point_2) theta = spherical_geometry.great_circle_arc.length( p1_X, p2_X, degrees=False) return theta
ise-uiuc/Magicoder-OSS-Instruct-75K
using LHGames.Helper; namespace LHGames.Interfaces {
ise-uiuc/Magicoder-OSS-Instruct-75K
import pytumblr, ConfigParser, re, sys config = ConfigParser.RawConfigParser() config.read('settings.cfg') class API(object): # initialize Tumblr client def __init__(self): self.t = pytumblr.TumblrRestClient( config.get('tumblr', 'consumerKey'), config.get('tumblr', 'consumerSe...
ise-uiuc/Magicoder-OSS-Instruct-75K
rundos_path = _run_dos_path() out_name = str(uuid4()) rundos_call = [rundos_path, out_name, str(n0), str(num_dos), str(env["Tae"]), str(env["Tce"]), str(env["Tbe"]), str(env["Tao"]), str(env["Tco"]), str(env["Tbo"]), str(env["EpsilonR"]), str(env["EpsilonM"]), str(env["M"]), str(env...
ise-uiuc/Magicoder-OSS-Instruct-75K
'Gender': 'male', 'Subject_ID': 'SAM111111', 'Paternal_id': 'SAM111115', 'T2D': 0, 'Hispanic or Latino; of Spanish origin': None, 'Cohort ID': 'CO1111', 'Year of Birth': '1986', 'Age': '31', 'Analysis_alias': 'AN001', 'Sample_ID': 'SAM111111'...
ise-uiuc/Magicoder-OSS-Instruct-75K
if !isEnabled { contentTintColor = contentTintColorDisabled } else if mouseDown { contentTintColor = contentTintColorPressed } else { contentTintColor = contentTintColorRest } } private func setColorValues(forStyle: ButtonStyle, accentColor: NSColor) {
ise-uiuc/Magicoder-OSS-Instruct-75K
return out_layer """ # Hidden layer with RELU activation layer = slim.fully_connected(x,n_hidden1, weights_initializer=tf.truncated_normal_initializer(stddev=0.01), weights_regularizer=slim.l2_regularizer(reg_strength),scope='hidden1') layer = slim.fully_connected(lay...
ise-uiuc/Magicoder-OSS-Instruct-75K
intent.putExtra(MainActivity.POSITION, itemPosition); intent.putExtra(EDITED_ITEM_VALUE, item); } else if (operation.equals("add")){ intent.putExtra(FROM, "add"); intent.putExtra(EDITED_ITEM_VALUE, item); } startActivity(intent); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
args = arg_parser.parse_args() # set debug devel logger.setLevel(getattr(logging, args.debug.upper())) logger.debug(args) get = GDGet(args.file_id, args.export_format, args.save_as)
ise-uiuc/Magicoder-OSS-Instruct-75K
} } private void setCurCharPropertyValue(String value) {
ise-uiuc/Magicoder-OSS-Instruct-75K
sections = TreeManyToManyField(Section, verbose_name=_('Sections')) image = ImageField(upload_to='news', verbose_name=_('Image'), blank=True) annotation = models.TextField(blank=True, verbose_name=_('Annotation')) text = RichTextField(blank=True, verbose_name=_('Text')) comments = models.Boolean...
ise-uiuc/Magicoder-OSS-Instruct-75K
virtual bool isTemplate() ; /*! The query parameterableElements() returns the set of ParameterableElements that may be used as the parameteredElements for a TemplateParameter of this TemplateableElement. By default, this set includes all the ownedElements. Subclasses may override this operation if they ch...
ise-uiuc/Magicoder-OSS-Instruct-75K
from pydantic import UUID4, BaseModel, EmailStr
ise-uiuc/Magicoder-OSS-Instruct-75K
# Reconfigure the access service after each reload.
ise-uiuc/Magicoder-OSS-Instruct-75K
protected boolean condition() { if (Robot.tilty.isRetracted()){ return true; } return false; }
ise-uiuc/Magicoder-OSS-Instruct-75K
(2, 'complex'), (3, 'substring'), ]
ise-uiuc/Magicoder-OSS-Instruct-75K
# 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
def lorentzian(x, amplitude, x0, sigma, background): # A lorentzian peak with: # Constant Background : background
ise-uiuc/Magicoder-OSS-Instruct-75K
ObjectPool.Instance.Add(item.Key,obj); } } objectPoolDic.Clear(); } private void CreateSuperWall(){ for(int x = -X ;x < X;x+=2) { for(int y = -Y;y<Y;y+=2)
ise-uiuc/Magicoder-OSS-Instruct-75K
switch (i % 6) { case 0: rgb[0] = hsv[2], rgb[1] = t, rgb[2] = p; break; case 1: rgb[0] = q, rgb[1] = hsv[2], rgb[2] = p; break; case 2: rgb[0] = p, rgb[1] = hsv[2], rgb[2] = t; break; case 3: rgb[0] = p, rgb[1] = q, rgb[2] = hsv[2]; break;
ise-uiuc/Magicoder-OSS-Instruct-75K
let anchorClassName = '' if (router.pathname === href) { anchorClassName = activeClassName } else { anchorClassName = className } if (isAdmin) { return (
ise-uiuc/Magicoder-OSS-Instruct-75K
export const item__add: string; export const item__add_disabled: string;
ise-uiuc/Magicoder-OSS-Instruct-75K
ast_node *block = parse_string(env->parser, "test", test_code); auto node = *(ast_node **)array_front(&block->block->nodes); ASSERT_EQ(BINARY_NODE, node->node_type);
ise-uiuc/Magicoder-OSS-Instruct-75K
fn zero_read_write_pipe() { let (mut tx, mut rx): (SyncWritePipe, SyncReadPipe) = pipe();
ise-uiuc/Magicoder-OSS-Instruct-75K
qrels(pandas.DataFrame): The data frame of relevant documents, indexed by query ID. page_align(pandas.DataFrame): The data frame of page alignments for fairness criteria, indexed by page ID. qtgts(pandas.DataFrame): The data frame of qu...
ise-uiuc/Magicoder-OSS-Instruct-75K
} private static void Despawn(Poolee poolee, float time) { _instance.StartCoroutine(DespawnCoroutine(poolee, time)); } private static IEnumerator DespawnCoroutine( Poolee poolee, float time) {
ise-uiuc/Magicoder-OSS-Instruct-75K
{ Warning("Unable to find trigger name \"%s\" for an action in a storyboard named \"%s\" in \"%s\"!\n", triggerName, storyboardName, filename); return false; } } } // target
ise-uiuc/Magicoder-OSS-Instruct-75K
expect(errors.valid2).not.toBeTruthy() expect(errors.lala).not.toBeTruthy() }) it('should accept a second all value validation function', () => { const validator = createValidator<any>({ foo: required, }, (allValues, propertiesErrors: any) => { const erro...
ise-uiuc/Magicoder-OSS-Instruct-75K
#[cfg(target_os = "linux")] const OS: &str = "linux"; #[cfg(feature = "electrs_0_8_10")] const VERSION: &str = "v0.8.10"; #[cfg(feature = "esplora_a33e97e1")] const VERSION: &str = "esplora_a33e97e1a1fc63fa9c20a116bb92579bbf43b254"; #[cfg(feature = "electrs_0_9_1")] const VERSION: &str = "v0.9.1"; #[cfg(not(any(
ise-uiuc/Magicoder-OSS-Instruct-75K
System.out.println(queue2.offer("two")); // true System.out.println(queue2); // [one, two] System.out.println(queue2.offer("three")); // false System.out.println(queue2); // [one, two] } }
ise-uiuc/Magicoder-OSS-Instruct-75K
with open("c.bat", "rt") as f: bat = f.read() bat = bat.replace("search.cpp", "search_tmp.cpp") os.system(bat)
ise-uiuc/Magicoder-OSS-Instruct-75K
resp = num - (num * tax / 100) return resp if formato is False else moeda(resp) def moeda(num, cifrao='R$'): return f'{cifrao}{num:>.2f}'.replace('.', ',')
ise-uiuc/Magicoder-OSS-Instruct-75K
idfsSpeciesType = d.idfsSpeciesType.GetValueOrDefault(); idfsSampleType = d.idfsSampleType.GetValueOrDefault(); } public void FillAsSessionDisease(AsSessionDisease d) { d.Diagnosis = d.DiagnosisLookup.FirstOrDefault(i => i.idfsDiagnosis == idfsDiagnosis...
ise-uiuc/Magicoder-OSS-Instruct-75K
total_time = 0 for ride in rides: total_distance += ride.distance total_elevation += ride.elevation_gain total_time += ride.moving_time return (len(rides), total_time / 3600, total_distance, total_elevation)
ise-uiuc/Magicoder-OSS-Instruct-75K
<h2 class="h3 text-center animation-slideUp">Thousands of <strong>benefits</strong> are waiting for <strong>you</strong>!</h2> </div> </section> <!-- END Intro --> <!-- Jobs --> <section class="site-content site-section"> ...
ise-uiuc/Magicoder-OSS-Instruct-75K
$_lang['error_log'] = 'エラーログ'; $_lang['error_log_desc'] = 'MODX Revolutionのエラーログ:'; $_lang['error_log_download'] = 'エラーログのダウンロード ([[+size]])';
ise-uiuc/Magicoder-OSS-Instruct-75K
def get_twitter_api(): is_testing = os.getenv('FAKE_TWITTER_API', 'True') consumer_key = os.getenv('CONSUMER_KEY', 'xxx') consumer_secret = os.getenv('CONSUMER_SECRET', 'yyy') if is_testing in ['1', 'true', 'True']: from pardal.api.fake import FakeTwitterAPI as TwitterAPI logger.info('...
ise-uiuc/Magicoder-OSS-Instruct-75K
severity = "🤒" if network_health_status is NetworkHealthStatus.INSECURE: severity = "💀" elif network_health_status is NetworkHealthStatus.INEFFICIENT:
ise-uiuc/Magicoder-OSS-Instruct-75K
@pulumi.getter(name="stackSetId") def stack_set_id(self) -> pulumi.Output[str]:
ise-uiuc/Magicoder-OSS-Instruct-75K
#!/usr/bin/env python # -*- coding: utf-8 -*- from . import NeuralLayer from conv import Convolution
ise-uiuc/Magicoder-OSS-Instruct-75K
print (valid) print (valid2)
ise-uiuc/Magicoder-OSS-Instruct-75K
*/ }
ise-uiuc/Magicoder-OSS-Instruct-75K
'filters' => [], 'name' => 'group', ], ], ], ];
ise-uiuc/Magicoder-OSS-Instruct-75K
public function handle()
ise-uiuc/Magicoder-OSS-Instruct-75K
- What types of position combintations are most frequent in pass-sequences? """ """ Sample Run Script: python manage.py analysis3 --team_uuid="t1326" --print_to_csv python manage.py analysis4 --team_uuid="t1326" --start_date="2016-07-01" python manage.py analysis4 --team_uuid="t1326" --start_date="2...
ise-uiuc/Magicoder-OSS-Instruct-75K
from .welcome import *
ise-uiuc/Magicoder-OSS-Instruct-75K
[Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int SubGroupId { get; set; } public int GroupId { get; set; } public Group? Group { get; set; } public string Name { get; set; } public string? Description { get; set; } [JsonIgnore] ...
ise-uiuc/Magicoder-OSS-Instruct-75K
files = [os.path.join(x["path"],"CALICESiWTBout.root") for x in jobs] print "Found "+ str(len(jobs)) + " jobs with energies (GeV): " + str(energies) + " ,physlist: " + str(set([x["PHYSLIST"] for x in jobs])) #longitudinal profiles analysis # print "Running longitudinal profiles analysis" for counter,energy in enu...
ise-uiuc/Magicoder-OSS-Instruct-75K
return view('inventory.edit', compact('inventory')); } /** * Update the specified resource in storage. * * @param int $id * @param \Illuminate\Http\Request $request * * @return \Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector */
ise-uiuc/Magicoder-OSS-Instruct-75K
) _config = load_swcli_config() assert len(_config["instances"]) == 2 assert "pre-k8s" in _config["instances"] assert ( "http://console.pre.intra.starwhale.ai" == _config["instances"]["pre-k8s"]["uri"] ) assert "test" == _config["instances...
ise-uiuc/Magicoder-OSS-Instruct-75K
y_test = test_set.loc[:, df.columns == 'BG_PBE'].to_numpy() # Train and evaluate KRR model krr = KernelRidge(alpha=alpha, gamma=gamma, kernel=kernel)
ise-uiuc/Magicoder-OSS-Instruct-75K
class AppointmentInICSFormat { public static void Run() { // The path to the File directory. string dataDir = RunExamples.GetDataDir_SMTP(); string dstEmail = dataDir + "test.ics"; // ExStart:CreateAppointment
ise-uiuc/Magicoder-OSS-Instruct-75K
#[cfg(test)] use super::super::builder;
ise-uiuc/Magicoder-OSS-Instruct-75K
autoreconf -fi }
ise-uiuc/Magicoder-OSS-Instruct-75K
] await self._run(coros)
ise-uiuc/Magicoder-OSS-Instruct-75K
# test_complex_line_plots(mag_and_phase_format=True)) wins.append( test_complex_line_plots(single_panel=True, mag_and_phase_format=True)) for w in wins: w.show() return app.exec_()
ise-uiuc/Magicoder-OSS-Instruct-75K
export const GlobalStyle = createGlobalStyle` ${NORMALIZE};
ise-uiuc/Magicoder-OSS-Instruct-75K
private _chunkSize: number; private destroy$ = new Subject<boolean>(); constructor(private _remoteService: RemoteFilteringService, public cdr: ChangeDetectorRef) { } public ngOnInit(): void { this.remoteData = this._remoteService.remoteData; } public ngAfterViewInit() { const ...
ise-uiuc/Magicoder-OSS-Instruct-75K
class AptSettings(proto.Message): r"""Apt patching is completed by executing ``apt-get update && apt-get upgrade``. Additional options can be set
ise-uiuc/Magicoder-OSS-Instruct-75K
from apiclient.discovery import build import requests,json import socket ClientSocket = socket.socket() host='127.0.0.1'
ise-uiuc/Magicoder-OSS-Instruct-75K
selector = AZSelector() game = ConnectFour()
ise-uiuc/Magicoder-OSS-Instruct-75K
version = '1.0.0', description = '', author = '<NAME>', author_email = '<EMAIL>', maintainer = '<NAME>', maintainer_email = '<EMAIL>', url = 'https://github.com/stiebels/', packages = find_packages(exclude=['*test']), license = 'MIT', install_requires = ['numpy', 'matplotlib', 'a...
ise-uiuc/Magicoder-OSS-Instruct-75K
RpcClientConnectionPoolStub pool = new RpcClientConnectionPoolStub(); RpcSenderStub connection1 = new RpcSenderStub(); RpcSenderStub connection3 = new RpcSenderStub(); RpcStrategySingleServer server1 = RpcStrategySingleServer.create(ADDRESS_1); RpcStrategySingleServer server2 = RpcStrategySingleServer.create(...
ise-uiuc/Magicoder-OSS-Instruct-75K
new_dir=/scratch/mlawson/stableABLRuns/infPer_0.001m_5m_ADM_20degYaw #mesh_dir=/projects/windsim/mlawson/wake_steering/stableABLRuns/mesh_3000x2000x750_5m_720c start=0
ise-uiuc/Magicoder-OSS-Instruct-75K
def replaceInFile(fileName, strFind, strReplace): sourceFile = open(fileName, "r") content_file = sourceFile.readlines() cleaned_content_file = [] for line in content_file:
ise-uiuc/Magicoder-OSS-Instruct-75K
__all__ = ['icd9cm', 'comorbidity_mappers', 'icd10']
ise-uiuc/Magicoder-OSS-Instruct-75K
return render (request, 'myawards/awards.html', context) def viewawards(request, pk): projects=Project.objects.get(id=pk) return render (request, 'myawards/myawards.html',{'projects': projects}) def addawards(request): projects=Project.objects.all() if request.method =='POST': data =reque...
ise-uiuc/Magicoder-OSS-Instruct-75K
self.times['all'] = { 'start':time.time(),'forced':False} def start(self,key):
ise-uiuc/Magicoder-OSS-Instruct-75K
# Copyright (c) 2021, <NAME> import numpy as np from ..math import apply_statevec, apply_density, density_matrix
ise-uiuc/Magicoder-OSS-Instruct-75K
admin.site.register(ClientProfile)
ise-uiuc/Magicoder-OSS-Instruct-75K
used by this CRS. """
ise-uiuc/Magicoder-OSS-Instruct-75K
one_letter_word = [ " a ", " b ", " c ", " d ", " e ", " f ", " g ", " h ",
ise-uiuc/Magicoder-OSS-Instruct-75K
lexico_string.append(a_string.copy()) break return lexico_string if __name__ == "__main__": """A quick way to check if the module works correctly is to compare the partition count to the bell number of the correct 'n' size.
ise-uiuc/Magicoder-OSS-Instruct-75K
def print_state(self): print('[{}] in queue: {}, in seats: {}, lost sales: {} '.format(round(self.env.now), self.in_queue, self.in_seats, self.loss)) def reception(self): # deal with arriving potential customers while True: yield self.env.timeout(random.expovariate(1)) ...
ise-uiuc/Magicoder-OSS-Instruct-75K
for i in 0..<points.count { let u = wave[i * n] points[i] = CGPoint(x: 1.06 * size.width * (CGFloat(i * n) + 0.3) / count, y: (yScale * CGFloat(u) + 1) * size.height / 2) } for i in 0..<points.count {
ise-uiuc/Magicoder-OSS-Instruct-75K
* */ #include "TestMushMeshApp.h" using namespace Mushware; using namespace std;
ise-uiuc/Magicoder-OSS-Instruct-75K
impl Message for DeleteRepo { type Result = Result<Repo, APIErrorKind>; } impl Handler<CreateRepo> for DbExecutor { type Result = Result<Repo, APIErrorKind>;
ise-uiuc/Magicoder-OSS-Instruct-75K
} INTEGER_SCHEMA = { "type": "integer" } BOOLEAN_SCHEMA = { "type": "boolean" } FLOAT_SCHEMA = { "type": "number"
ise-uiuc/Magicoder-OSS-Instruct-75K
private static String m_Revision; private static String m_FileVersion;
ise-uiuc/Magicoder-OSS-Instruct-75K
""" self._product_rating_results = product_rating_results def to_dict(self): """Returns the model properties as a dict""" result = {} for attr, _ in six.iteritems(self.openapi_types):
ise-uiuc/Magicoder-OSS-Instruct-75K
/** * 为年份匹配数据库字段 * * @param string $this_year 所输入的成绩的年份 */ public function CheckYear($this_year) { if($this_year==2020) { $this_year_name='ershi'; $last_year_name='yijiu'; }elseif ($this_year==2019){ $this_year_name='yijiu'; ...
ise-uiuc/Magicoder-OSS-Instruct-75K
pwm.stop()
ise-uiuc/Magicoder-OSS-Instruct-75K
* Run the database seeds. * * @return void */ public function run() { $this->call(UsersTableSeeder::class); $this->command->info('Usuario Administrador añadido'); if (app()->environment('local')) { $this->askForAddSampleData(); } ...
ise-uiuc/Magicoder-OSS-Instruct-75K
weights /= np.sum(weights) # zip them self._gaussPoints[i] = zip(rootsArray, weights)
ise-uiuc/Magicoder-OSS-Instruct-75K
T = int(input()) if T > 100: print('Steam')
ise-uiuc/Magicoder-OSS-Instruct-75K
def phone_avg_use_raw(men): result = "0M" if len(men) > 0: result = str(math.ceil(sum(men) / len(men) / 1024)) + "M" return result def phone_max_use_raw(l_men): result = "0M"
ise-uiuc/Magicoder-OSS-Instruct-75K
self.number = number self.balance = balance def __str__(self): ''' Display the account number and balance. ''' display = f'Account number: {self.number}' + '\n' + \ f'Balance: ${self.balance:,.2f}' return display ...
ise-uiuc/Magicoder-OSS-Instruct-75K
EachSorted(assertTool, expectedExp, actualExp, action, null, null);
ise-uiuc/Magicoder-OSS-Instruct-75K
assert dfh_dict[i].null_count().dtype == 'int64' def test_train_test_split(): """Testing the train/test set splitting function""" pass def test_randomize(): """Testing the randomize function"""
ise-uiuc/Magicoder-OSS-Instruct-75K
} } return new int[0]; } public static void main(String[] args) { int[] input = {2, 7, 11, 15}; int target = 9; int[] pair = findPair(input, target); if (pair.length == 0) System.out.println("Target not found"); else Sy...
ise-uiuc/Magicoder-OSS-Instruct-75K
re.compile(r"/3dvisit/", re.I) ) for plugin in plugin_detection_schema: if plugin.search(html) is not None: return True if plugin.search(headers.get(lib.core.common.HTTP_HEADER.SET_COOKIE, "")) is not None:
ise-uiuc/Magicoder-OSS-Instruct-75K
namespace Roslynator.CSharp.Refactorings.Tests { public class RR0130ConvertForToForEachTests : AbstractCSharpRefactoringVerifier { public override string RefactoringId { get; } = RefactoringIdentifiers.ConvertForToForEach; [Fact, Trait(Traits.Refactoring, RefactoringIdentifiers.ConvertForToFor...
ise-uiuc/Magicoder-OSS-Instruct-75K
caging_squares.append(game.get_square(x - 2, y)) else: caging_squares.append(game.get_square(x - 1, y + 1)) caging_squares.append(game.get_square(x - 1, y + 2)) caging_squares.append(game.get_square(x - 2, y + 1)) # caging_squares.append(game.state.pit...
ise-uiuc/Magicoder-OSS-Instruct-75K
} //editar vendedor public async Task<IActionResult> Edit(int? id) { if (id == null) { return RedirectToAction(nameof(Error), new { message = "Id not provided" }); } var obj = await _sellersService.FindByIdAsync(id.Value)...
ise-uiuc/Magicoder-OSS-Instruct-75K
@commands.Cog.listener() async def on_message(self, message): if message.author.bot: return if message.guild is None: return if message.channel.id == 776641961854763058: if message.content.startswith(("#", "//", "--")): return ...
ise-uiuc/Magicoder-OSS-Instruct-75K
#!/bin/bash export PATH="$PATH:./node_modules/nodeunit/bin";
ise-uiuc/Magicoder-OSS-Instruct-75K
nested_types=[ _CONTAINERCREATE_RUNTIME, ], enum_types=[], serialized_options=None, is_extendable=False, syntax="proto3", extension_ranges=[], oneofs=[], serialized_start=175, serialized_end=344,
ise-uiuc/Magicoder-OSS-Instruct-75K