seed
stringlengths
1
14k
source
stringclasses
2 values
def test_get_message_details(self): request_id = "1234561234567asdf123" report = {"statuscode": "1", "message": "Send Success"} with requests_mock.Mocker() as mock: self.mock_report(mock, request_id, report) self.backend.get_message_details(request_id) def mock_send(self, status_code=200, response=None, report=None): msg = QueuedSMS( phone_number='+15554443333', text="the message", direction="O", ) msg.save = lambda: None # prevent db access in SimpleTestCase
ise-uiuc/Magicoder-OSS-Instruct-75K
return make_pair(node->val, node->val); } public:
ise-uiuc/Magicoder-OSS-Instruct-75K
sortedTo = i; } } public interface Factory { public PartiallyRankedFeatureVector newPartiallyRankedFeatureVector (InstanceList ilist, LabelVector[] posteriors); } public interface PerLabelFactory { public PartiallyRankedFeatureVector[] newPartiallyRankedFeatureVectors (InstanceList ilist, LabelVector[] posteriors);
ise-uiuc/Magicoder-OSS-Instruct-75K
import { Task } from '../task.model'; @Injectable() export class TaskService { constructor(private http: Http) { } // Store all tasks in this array. tasks: Task[] = [];
ise-uiuc/Magicoder-OSS-Instruct-75K
print(engine.get_template('page.pyhtml').script)
ise-uiuc/Magicoder-OSS-Instruct-75K
def args(self): result = [] for name, value in self.options.items(): result.append('--{!s}'.format(name)) # None is special to indicate the option have no value if value is not None: result.append(str(value)) return result def check(self): if self._process is not None: self._process.poll() code = self._process.returncode if code is not None and code != 0:
ise-uiuc/Magicoder-OSS-Instruct-75K
try: s.connect((address, port)) LOGGER.info('Checking port %s:%d - OK', address, port) except socket.error as e: LOGGER.error('Checking port %s:%d - Failed', address, port) raise ValidatorError(e) port.short_name = 'PORT'
ise-uiuc/Magicoder-OSS-Instruct-75K
testCase(sslTests.allTests), ] } #endif
ise-uiuc/Magicoder-OSS-Instruct-75K
mecab_parse_results = list( MecabParser(test_sentence).gen_mecab_token_feature()) for idx, mecab_parse_item in enumerate(mecab_parse_results):
ise-uiuc/Magicoder-OSS-Instruct-75K
return activity_codes().update_or_create_fixture(apps, schema_editor) def unload_activity_codes(apps, schema_editor): return activity_codes().unload_fixture(apps, schema_editor) def subactivity_codes(): fixture = 'migrations/subactivity_codes.json' fixture_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), fixture) return CodeFixture(fixture_path)
ise-uiuc/Magicoder-OSS-Instruct-75K
q[0][1] = j; q[0][2] = k; for (int l = 0, r = 1; l < r; ) { int u = q[l][0], v = q[l][1], w = q[l][2]; l++;
ise-uiuc/Magicoder-OSS-Instruct-75K
* (the "License"); you may not use this file except in compliance with the * License. You may obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * 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
ise-uiuc/Magicoder-OSS-Instruct-75K
plt.subplot(122) plt.plot(x[:,0]) plt.xlim([0,500]) plt.ylim([-10,200]) plt.xlabel('Steps') plt.ylabel('Free Action')
ise-uiuc/Magicoder-OSS-Instruct-75K
get_answer_endpoint = 'user/request_answers'
ise-uiuc/Magicoder-OSS-Instruct-75K
views.CountryList.as_view(), name='country-list'), url(r'^countries/(?P<pk>[0-9]+)/$', views.CountryDetail.as_view(), name='country-detail'), url(r'^distance-units/$', views.DistanceUnitList.as_view(), name='distance-unit-list'), url(r'^distance-units/(?P<pk>[0-9]+)/$', views.DistanceUnitDetail.as_view(), name='distance-unit-detail'), url(r'^geographic-locations/$',
ise-uiuc/Magicoder-OSS-Instruct-75K
return data return None def test_nagios_mysql(host): def assert_topology():
ise-uiuc/Magicoder-OSS-Instruct-75K
// self!.news += $1
ise-uiuc/Magicoder-OSS-Instruct-75K
dataloader = torch.utils.data.DataLoader(dataset,batch_size=1,shuffle=False) model = torch.nn.DataParallel(model) model.load_state_dict(torch.load(args.resume_from)) show = iap.visualize(dataset) with torch.no_grad(): for i, sample in enumerate(dataloader): img = torch.autograd.Variable(sample['image']).cuda() mask = model(img) if not args.non_montgomery: show.ImageWithGround(i,True,True,save=True)
ise-uiuc/Magicoder-OSS-Instruct-75K
self.next = None class LinkedList: def __init__(self): self.size = 0 self.head = None self.last = None
ise-uiuc/Magicoder-OSS-Instruct-75K
import org.workcraft.dom.math.MathNode; public class Symbol extends MathNode { }
ise-uiuc/Magicoder-OSS-Instruct-75K
print("Could not request results from Google Speech Recognition service; {0}".format(e)) # recognize speech using Google Cloud Speech GOOGLE_CLOUD_SPEECH_CREDENTIALS = try: print("Google Cloud Speech thinks you said " + r.recognize_google_cloud(audio, credentials_json=GOOGLE_CLOUD_SPEECH_CREDENTIALS)) except sr.UnknownValueError: print("Google Cloud Speech could not understand audio") except sr.RequestError as e: print("Could not request results from Google Cloud Speech service; {0}".format(e)) # recognize speech using Houndify # Has free level for 12 things/day
ise-uiuc/Magicoder-OSS-Instruct-75K
@main
ise-uiuc/Magicoder-OSS-Instruct-75K
GERMAN = "German" HINDI = "Hindi" INDONESIAN = "Indonesian" IRISH = "Irish" ITALIAN = "Italian" JAPANESE = "Japanese" KOREAN = "Korean" POLISH = "Polish" PORTUGUESE = "Portuguese" RUSSIAN = "Russian" SPANISH = "Spanish" TURKISH = "Turkish" UKRANIAN = "Ukranian" VIETNAMESE = "Vietnamese"
ise-uiuc/Magicoder-OSS-Instruct-75K
start_terms = ('memories','custom_sticker') for file_found in files_found: file_found = str(file_found) filename = os.path.basename(file_found) one = (os.path.split(file_found)) username = (os.path.basename(one[0])) if username not in userlist: userlist.append(username) for name in userlist:
ise-uiuc/Magicoder-OSS-Instruct-75K
import json from importlib.machinery import SourceFileLoader config_file = os.path.join(os.getcwd(), "data", "Configuration.py") configuration = SourceFileLoader("module.name", config_file).load_module() # To delete None values in Input Request Json body def del_none(d): for key, value in list(d.items()): if value is None:
ise-uiuc/Magicoder-OSS-Instruct-75K
num[1].append(n) print('-=' * 24) num[0].sort() num[1].sort()
ise-uiuc/Magicoder-OSS-Instruct-75K
import os import sys import unittest from argparse import Namespace
ise-uiuc/Magicoder-OSS-Instruct-75K
<Flex as="section" w="full" alignItems="center" sx={{ '*': { fontFamily: 'Cutive Mono, monospace', }, }} > <VStack ml={isLargerThan900 ? '20' : 'auto'} mt={isLargerThan900 ? '0' : '10'}
ise-uiuc/Magicoder-OSS-Instruct-75K
return self.redis.mget(('index:movie:{}'.format(m) for m in movies))
ise-uiuc/Magicoder-OSS-Instruct-75K
assert User.data_home().is_dir() def test_data(user: User): assert user.data == User.data_home()
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>sransara/pyright<filename>packages/pyright-internal/src/tests/samples/genericTypes1.py # This sample tests that the type analyzer flags as an error # an attempt to assign to or delete a generic type. from typing import Dict
ise-uiuc/Magicoder-OSS-Instruct-75K
// error-pattern: invalid `--cfg` argument: `""` (expected `key` or `key="value"`) pub fn main() { }
ise-uiuc/Magicoder-OSS-Instruct-75K
file: String::from(path.to_str().unwrap()) + "/" + typ + ".txt", } } fn read(&self) -> (Vec<Point>, Vec<Fold>) { let mut p = Vec::new(); let mut f = Vec::new(); let mut parse_folds = false;
ise-uiuc/Magicoder-OSS-Instruct-75K
__slots__ = ('data',)
ise-uiuc/Magicoder-OSS-Instruct-75K
if(not vc or not vc.is_connected()): return await smart_print(ctx, 'The bot is not connected to a channel.') # noqa # Clean up the bot, its time for it to go. # await self.audio_manager.clear_audio_player(ctx.guild) await vc.disconnect() @commands.command( name="play", aliases=['p'], help="- <url:string | search:string> : Adds a song to the queue."
ise-uiuc/Magicoder-OSS-Instruct-75K
public class RewardDataMergeHelper : IDeinitializable
ise-uiuc/Magicoder-OSS-Instruct-75K
self.__start_time = time.time() # Put the setpoint to zero for safety self.__setpoint = 0 # Set the class flag as running self.__running = 1 # Tell the user we are now running print("Chocks away!") # Method to stop the scheduler
ise-uiuc/Magicoder-OSS-Instruct-75K
} /** * Deletes a animal
ise-uiuc/Magicoder-OSS-Instruct-75K
dbHelper.vague_entire(wordItem,propertyItem,text); for(int i=0;i<wordItem.size();i++) { Map<String,Object> item=new HashMap<String,Object>(); item.put(Word,wordItem.get(i)); item.put(property, propertyItem.get(i)); items.add(item); } adapter=new SimpleAdapter(getContext(),items,R.layout.item,new String[]{Word,property},new int[]{R.id.txtword,R.id.txtproperty}); list.setAdapter(adapter); handler.postDelayed(this, 200); } }; handler.postDelayed(runable, 200);
ise-uiuc/Magicoder-OSS-Instruct-75K
), # TODO(goktug): remove workaround after b/71772385 is fixed "_srcs_hack": attr.label(default = Label("//build_defs/internal_do_not_use:dummy_src")), } _J2CL_LIB_ATTRS.update(J2CL_TRANSPILE_ATTRS) _J2CL_LIB_ATTRS.update(J2CL_JS_ATTRS) j2cl_library = rule(
ise-uiuc/Magicoder-OSS-Instruct-75K
int main(){ #ifdef LOCAL freopen("/Users/didi/ACM/in.txt", "r", stdin);
ise-uiuc/Magicoder-OSS-Instruct-75K
import argparse from typing import Sequence class CLI: def __init__(self, description: str, args: Sequence[str]): self._cli_args = args self._parser = argparse.ArgumentParser(description=description) def set_up_log(self) -> None: pass def logfile(self) -> str: # TODO: yyyy-mm-dd/hh-mm-ss-hash-name.log return self._args.logdir + '/ost.log'
ise-uiuc/Magicoder-OSS-Instruct-75K
import argparse import logging from cycif_db.galaxy_download import download_sandana parser = argparse.ArgumentParser() parser.add_argument( '--server', '-s', type=str, dest='server', required=False, help="Galaxy server URL address. Can be set in `config.yml`.") parser.add_argument(
ise-uiuc/Magicoder-OSS-Instruct-75K
mb.peek(buffer, 50, index); mb.peek(buffer+50, 50, index); for (int i=0; i < 100; i++) { BOOST_CHECK_EQUAL(i, buffer[i]); } BOOST_CHECK_EQUAL(mb.total_bytes(), 4 * small); BOOST_CHECK_EQUAL(mb.bytes_to_write(), 4 * small - 100); BOOST_CHECK_EQUAL(mb.bytes_to_read(), 100); BOOST_CHECK_NE((void*) mb.read_ptr(), (void*) mb.write_ptr()); char buffer2[100]; mb.read(buffer2, 100);
ise-uiuc/Magicoder-OSS-Instruct-75K
organization_desc=request.organization_desc, nationality_code=request.nationality_code ) db.add(new_customer) db.commit() db.refresh(new_customer) return new_customer
ise-uiuc/Magicoder-OSS-Instruct-75K
raise RuntimeError('Not a file: {}'.format(file_path)) file_name = os.path.basename(file_path) shutil.copyfile(file_path, os.path.join(str(target_dir_path), file_name)) def archive_docs(path: str, version: str): """Creates an archive. Args: path (str): Path which will be archived. version (str): Version of Arm NN.
ise-uiuc/Magicoder-OSS-Instruct-75K
#include <sys/types.h>
ise-uiuc/Magicoder-OSS-Instruct-75K
async def on_disconnect(self): print("bot is disconnected") async def on_error(self, err, *args, **kwargs): if err == "on_command_error": await args[0].send("Something went wrong.")
ise-uiuc/Magicoder-OSS-Instruct-75K
class RasterizeTest(test_case.TestCase): def setUp(self):
ise-uiuc/Magicoder-OSS-Instruct-75K
setup(name='classification-banner', version='1.0.0', description='Classification banner compatable with GTK3 and X11.', author='<NAME>', author_email='<EMAIL>', url='https://www.github.com/datamachines/classification-banner', packages=find_packages(), scripts=["bin/classification-banner"], data_files=[("classification-banner", ["style.css"])] )
ise-uiuc/Magicoder-OSS-Instruct-75K
print "target branch:", sys.argv[3], "\nsource branch:", sys.argv[4] subprocess.check_output("git checkout {}".format(sys.argv[3]), shell=True) print "Running pylint on", sys.argv[3] pylint(file_list) print "\n" subprocess.check_output("git checkout {}".format(sys.argv[4]), shell=True)
ise-uiuc/Magicoder-OSS-Instruct-75K
pub type Py_uhash_t = ::libc::size_t;
ise-uiuc/Magicoder-OSS-Instruct-75K
page += 1
ise-uiuc/Magicoder-OSS-Instruct-75K
<gh_stars>0 # Generated by Django 3.1.1 on 2020-09-01 17:58 from django.db import migrations, models import django.db.models.deletion
ise-uiuc/Magicoder-OSS-Instruct-75K
node = nodes.pop() if not node:
ise-uiuc/Magicoder-OSS-Instruct-75K
from .online_accountant import *
ise-uiuc/Magicoder-OSS-Instruct-75K
import voluptuous as vol from socket import timeout import homeassistant.loader as loader from homeassistant.components.switch import (SwitchDevice, PLATFORM_SCHEMA) from homeassistant.const import (CONF_SWITCHES, CONF_COMMAND_OFF, CONF_COMMAND_ON, CONF_TIMEOUT, CONF_HOST, CONF_TOKEN, CONF_TYPE, CONF_NAME, ) import homeassistant.helpers.config_validation as cv from homeassistant.util.dt import utcnow from homeassistant.exceptions import PlatformNotReady
ise-uiuc/Magicoder-OSS-Instruct-75K
override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. textlabel.textColor = UIColor.red } @IBAction func changeContentLabel(_ sender: Any) { textlabel.text = "Hi everyone!" }
ise-uiuc/Magicoder-OSS-Instruct-75K
default: console.warn(`the "${p?.fileName}" file has a highlight token which is of type "${typeof h}"; this is not parsabe and will be ignored.`) } })
ise-uiuc/Magicoder-OSS-Instruct-75K
if [ -f ${pid} ]; then kill -9 $(basename ${pid}) 2> /dev/null || true rm -f ${pid} fi done
ise-uiuc/Magicoder-OSS-Instruct-75K
return { ...state, ...{ miningBonus: action.payload } }; case SettingsActionType.SET_RESEARCH_SPEED: return { ...state, ...{ researchSpeed: action.payload } }; case SettingsActionType.SET_INSERTER_TARGET: return { ...state, ...{ inserterTarget: action.payload } }; case SettingsActionType.SET_INSERTER_CAPACITY: return { ...state, ...{ inserterCapacity: action.payload } }; case SettingsActionType.SET_COST_FACTOR: return { ...state, ...{ costFactor: action.payload } }; case SettingsActionType.SET_COST_FACTORY: return { ...state, ...{ costFactory: action.payload } }; case SettingsActionType.SET_COST_INPUT: return { ...state, ...{ costInput: action.payload } }; case SettingsActionType.SET_COST_IGNORED:
ise-uiuc/Magicoder-OSS-Instruct-75K
from .resnet_vlbert_for_pretraining_multitask import ResNetVLBERTForPretrainingMultitask from .resnet_vlbert_for_attention_vis import ResNetVLBERTForAttentionVis
ise-uiuc/Magicoder-OSS-Instruct-75K
print('Cluster scRAE on DataSet {} ... '.format(self.dataset_name)) autoencoder_optimizer = tf.compat.v1.train.AdamOptimizer(
ise-uiuc/Magicoder-OSS-Instruct-75K
package systems.reformcloud.reformcloud2.executor.api.velocity.event; import systems.reformcloud.reformcloud2.executor.api.common.api.basic.events.ProcessStartedEvent; import systems.reformcloud.reformcloud2.executor.api.common.api.basic.events.ProcessStoppedEvent; import systems.reformcloud.reformcloud2.executor.api.common.api.basic.events.ProcessUpdatedEvent; import systems.reformcloud.reformcloud2.executor.api.common.event.handler.Listener; import systems.reformcloud.reformcloud2.executor.api.velocity.VelocityExecutor; public final class ProcessEventHandler { @Listener public void handleStart(ProcessStartedEvent event) { VelocityExecutor.getInstance().handleProcessUpdate(event.getProcessInformation()); }
ise-uiuc/Magicoder-OSS-Instruct-75K
func adapt() -> Result<O, AdapterError> { return Result.error(.notImplemented) }
ise-uiuc/Magicoder-OSS-Instruct-75K
croncmd = ( '/usr/local/lib/nagios/plugins/check_exit_status.pl '
ise-uiuc/Magicoder-OSS-Instruct-75K
args, kwargs = patched_rsync.call_args assert args[3] == '/users/cbackstrom/.config/syncify/development_personal/' assert args[4] == '/users/cbackstrom/development' def test_file_is_synced_properly(mocker): patched_rsync = mocker.patch('syncify.core.rsync', return_value=None)
ise-uiuc/Magicoder-OSS-Instruct-75K
tuple([int(x) for x in keijoStr.split(":")]) for keijoStr in ( "0:0:0,0:-1:-1,0:99:1,0:99:2,0:99:3,0:98:0,0:97:0," "1:0:0,1:0:13,1:0:2,1:0:23,1:0:24,1:0:313,1:0:32,1:0:4,1:12:0,1:12:13," "1:12:23,1:12:24,1:12:313,1:12:32,1:12:413,1:2:0,1:2:2,1:22:0,1:22:13," "1:22:23,1:22:24,1:22:313,1:22:32,1:22:4,1:22:413,1:32:0,1:32:13," "1:32:23,1:32:24,1:32:313,1:32:32,1:32:4,1:32:413," "2:0:5,2:0:7,2:12:7,2:22:4,2:22:5,2:22:7,2:32:4,2:32:5,2:32:7,2:7:0," "2:7:4,2:7:8," "3:0:0,3:0:5,3:12:0,3:12:5,3:22:5,3:32:0,3:32:5," "4:0:0,4:0:5,4:22:0,4:22:5,"
ise-uiuc/Magicoder-OSS-Instruct-75K
def sequence_interpolant(self, formulas):
ise-uiuc/Magicoder-OSS-Instruct-75K
let printed = pprust::expr_to_string(&e); println!("printed: {}", printed);
ise-uiuc/Magicoder-OSS-Instruct-75K
from package import foo as myfoo
ise-uiuc/Magicoder-OSS-Instruct-75K
HTRewrite.EVENT_BUS.post(new ClientSettingChangeEvent(this)); } public String getConfigLabel() { return "key"; } }
ise-uiuc/Magicoder-OSS-Instruct-75K
@endif </tbody> </table> </div> </div>
ise-uiuc/Magicoder-OSS-Instruct-75K
from streamlink.plugin import Plugin from streamlink.plugin.api import http, validate from streamlink.stream import RTMPStream PAGE_URL = "https://www.tigerdile.com/stream/" ROOT_URL = "rtmp://stream.tigerdile.com/live/{}" STREAM_TYPES = ["rtmp"] _url_re = re.compile(r""" https?://(?:www|sfw)\.tigerdile\.com
ise-uiuc/Magicoder-OSS-Instruct-75K
freq_filt = 10 ** (freq_filt / 20) return features * freq_filt else: return features def freq_mask(features, mask_ratio=16): batch_size, n_freq_bin, _ = features.shape max_mask = int(n_freq_bin/mask_ratio)
ise-uiuc/Magicoder-OSS-Instruct-75K
contentScrollView.addSubview(row4) row4.addSubview(row4Item1)
ise-uiuc/Magicoder-OSS-Instruct-75K
> {' '} contact us </a>{' '} if you'd like help with SAS DevOps or SAS Application development!{' '} </p> </Box>
ise-uiuc/Magicoder-OSS-Instruct-75K
@pytest.mark.usefixtures("betamax_github_session", "module_cassette") def test_via_cli( temp_github_repo, advanced_file_regression: AdvancedFileRegressionFixture, github_manager, ): with in_directory(temp_github_repo): runner = CliRunner()
ise-uiuc/Magicoder-OSS-Instruct-75K
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 3 of the License, (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>. '''
ise-uiuc/Magicoder-OSS-Instruct-75K
}, 'alfred.workflow.action.applescript': { 'config': {'cachescript': False, 'applescript': ''}, 'version': 0, }, 'alfred.workflow.action.terminalcommand': { 'config': {'escaping': 0}, 'version': 0, }, 'alfred.workflow.trigger.remote': { 'config': {'argumenttype': 0, 'workflowonly': False},
ise-uiuc/Magicoder-OSS-Instruct-75K
_store.Clear(); _keyTypes.Clear(); return Task.CompletedTask;
ise-uiuc/Magicoder-OSS-Instruct-75K
public List<FileNames> ListBlobs() { var retval = new List<FileNames>(); var blobs = _container.ListBlobs(null, false); var fileId = 0; foreach (var item in blobs) {
ise-uiuc/Magicoder-OSS-Instruct-75K
// Route::get('/category', 'adminController@category')->name('admin.category'); route::group(['prefix' => 'categories'], function () {
ise-uiuc/Magicoder-OSS-Instruct-75K
def confirm(location): random_business = yelp(location) if random_business is None: flash("Sadly there is no good restaurant to recommend in this location due to limited data, please choose another location") return redirect(url_for('error')) else:
ise-uiuc/Magicoder-OSS-Instruct-75K
/** @private */ export declare class CookieOptions { path: string; domain: string; expires: string | Date; secure: boolean; constructor({path, domain, expires, secure}?: CookieOptionsArgs); merge(options?: CookieOptionsArgs): CookieOptions; private isPresent(obj); } /** @private */ export declare class BaseCookieOptions extends CookieOptions { private baseHref; constructor(baseHref: string); }
ise-uiuc/Magicoder-OSS-Instruct-75K
std::vector<row> A(10, row(5)); std::vector<row> B(5, row(5)); std::vector<row> C; A = initializeMatrix(A); B = initializeMatrix(B); try { C = matrixMultiplication(A, B); } catch(const char* msg)
ise-uiuc/Magicoder-OSS-Instruct-75K
self[key] = getattr(obj, key)
ise-uiuc/Magicoder-OSS-Instruct-75K
} } } let mut cur_quad_ix = 0; for func_inst_ix in func.insn_indices() { // Several items in the mention_map array may refer to the same instruction index, so // iterate over all of them that are related to the current instruction index. while let Some((iix, mention_set, vreg, rreg)) = mention_map.get(cur_quad_ix) {
ise-uiuc/Magicoder-OSS-Instruct-75K
*/ public interface AccountRepository extends CrudRepository<Account, Integer>{ Account findAccountByAccountId(Integer accountId);
ise-uiuc/Magicoder-OSS-Instruct-75K
# # Enter the script directory so we easily can use the other scripts. cd "$(dirname $0)" # Source lib functions. . ./lib.sh # Segments
ise-uiuc/Magicoder-OSS-Instruct-75K
Input: 4 3 Shgirm 20 Mhgcx 88 Kviq 88 Hasdyg 88 Output: -1
ise-uiuc/Magicoder-OSS-Instruct-75K
assert config.reference == "mRFP1" assert config.signal_properties["EYFP"].color == "gold"
ise-uiuc/Magicoder-OSS-Instruct-75K
@Entity() export class GroupEntity { @PrimaryGeneratedColumn() id: number; @Column() name: string;ß @Column() index_id: number; @OneToMany(() => IndexEntity, (index) => index.group) indexes: IndexEntity[]; }
ise-uiuc/Magicoder-OSS-Instruct-75K
super.init(syn) } static var expDesc: String { return "`or`" } var textTreeChildren: [Any] { return terms } }
ise-uiuc/Magicoder-OSS-Instruct-75K
extension L10n { private static func tr(_ table: String, _ key: String, _ args: CVarArg...) -> String { let format = BundleToken.bundle.localizedString(forKey: key, value: nil, table: table) return String(format: format, locale: Locale.current, arguments: args) } } // swiftlint:disable convenience_type private final class BundleToken { static let bundle: Bundle = { #if SWIFT_PACKAGE return Bundle.module #else return Bundle(for: BundleToken.self) #endif
ise-uiuc/Magicoder-OSS-Instruct-75K
avel.combine_videos(filenames,"combined.mp4")
ise-uiuc/Magicoder-OSS-Instruct-75K
} } } fn get_tile_byte(&self, tilebase: u16, txoff: u16, tyoff: u16, bank: usize) -> usize { let l = self.read_vram(tilebase + tyoff * 2, bank);
ise-uiuc/Magicoder-OSS-Instruct-75K
} RMW_CHECK_TYPE_IDENTIFIERS_MATCH( service handle, service->implementation_identifier, toc_coredx_identifier, return RMW_RET_ERROR) if (!ros_request_header) { RMW_SET_ERROR_MSG("ros request header handle is null"); return RMW_RET_ERROR; } if (!ros_response) { RMW_SET_ERROR_MSG("ros response handle is null"); return RMW_RET_ERROR; }
ise-uiuc/Magicoder-OSS-Instruct-75K
nsPath = json.dumps(str(nsPath)).replace("'","") nsPath = nsPath.replace('"', "") out = check_output(["sudo", "ls", "-Li", nsPath]) inum = out.split(" ")[0] print inum ifInum[ct.c_uint(ifindex)] = ct.c_uint64(int(inum))
ise-uiuc/Magicoder-OSS-Instruct-75K
#!/bin/bash gcloud --version 2> /dev/null
ise-uiuc/Magicoder-OSS-Instruct-75K