seed
stringlengths
1
14k
source
stringclasses
2 values
// Copyright © 2019 Julie Berry. All rights reserved. // import XCTest class Design_TutorialsUITests: XCTestCase { override func setUp() { // Put setup code here. This method is called before the invocation of each test method in the class. // In UI tests it is usually best to stop immediately when a failure occurs. continueAfterFailure = false // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. XCUIApplication().launch()
ise-uiuc/Magicoder-OSS-Instruct-75K
complex<double> RawFileSource::tick() { short i, q; file.read((char*) &i, sizeof(short)); file.read((char*) &q, sizeof(short)); // convert from [-32767,32767] signed integers to [-1.0, 1.0] doubles double realI = i / 32767.0; double realQ = q / 32767.0; return complex<double>(realI, realQ); }
ise-uiuc/Magicoder-OSS-Instruct-75K
"Power": 1770238, "CO2": 2145561 } } # assume Dual Fuel systems consume 30% of state NG. That's probably low. FUEL_2016["Dual Fuel"] = { "Power": (FUEL_2016["Petroleum"]["Power"] + (FUEL_2016["Natural Gas"]["Power"] * .3)), "CO2": (FUEL_2016["Petroleum"]["CO2"] +
ise-uiuc/Magicoder-OSS-Instruct-75K
@receiver(post_delete, sender=Post) def submission_delete(sender, instance, **kwargs): instance.image.delete(False)
ise-uiuc/Magicoder-OSS-Instruct-75K
print(largest(number1, number2, number3))
ise-uiuc/Magicoder-OSS-Instruct-75K
linkText: strings.InformationMenuLabel, itemIcon: 'ThumbnailView', }, { itemKey: MenuItem.Achievements, linkText: strings.AchievementsMenuLabel, itemIcon: 'Trophy', }, { itemKey: MenuItem.Performance,
ise-uiuc/Magicoder-OSS-Instruct-75K
def upgrade(): # ### commands auto generated by Alembic - please adjust! ### op.add_column('users', sa.Column('email_address', sa.Text(), nullable=False))
ise-uiuc/Magicoder-OSS-Instruct-75K
count = 0
ise-uiuc/Magicoder-OSS-Instruct-75K
class FloatingIP(pulumi.CustomResource): """ Manages a V2 floating IP resource within OpenStack Nova (compute)
ise-uiuc/Magicoder-OSS-Instruct-75K
), label="Collection", ) location_grp = VGroup( Item("latitude", label="Latitude", tooltip=LAT_TT), Item("longitude", label="Longitude", tooltip=LONG_TT), Item("elevation", label="Elevation", tooltip=ELEVATION_TT), Item("primary_location_name", label="Primary Location Name"), Item("country", label="Country"), Item("province", label="State/Province"), Item("county", label="County"), label="Location", )
ise-uiuc/Magicoder-OSS-Instruct-75K
def isEvilNumber(n): count = 0 for char in str(bin(n)[2:]):
ise-uiuc/Magicoder-OSS-Instruct-75K
with open(file, 'r') as f2:
ise-uiuc/Magicoder-OSS-Instruct-75K
try { Thread.sleep(3000); } catch (InterruptedException e) { e.printStackTrace(); } ViewInteraction tagView2 = onView( allOf(withText("General"),
ise-uiuc/Magicoder-OSS-Instruct-75K
letterCounts.put(letter, 1); }else { letterCounts.put(letter, letterCounts.get(letter) + 1); } } for (Character letter: letterCounts.keySet()){ char key = letter; double value = letterCounts.get(letter); double percent = (value/input.length())*100; System.out.println(key + " is: " + Math.round(percent) + "%" ); }
ise-uiuc/Magicoder-OSS-Instruct-75K
//indices[5] = 0; indices[4] = 1; indices[3] = 2; //indices[2] = 2; indices[1] = 1; indices[0] = 3; }
ise-uiuc/Magicoder-OSS-Instruct-75K
// update Events updateEvents(this.extendedEvents, this.instance, this.props, prevProps, this) this.forceReloadIfNeed(this.props, prevProps) } /** * 判断是否需要重新渲染 */ private forceReloadIfNeed(props: P, prevProps: P) { if (!isDesktop && this.extendedForceReloadProperties.length) { let shouldReload = false
ise-uiuc/Magicoder-OSS-Instruct-75K
#parse song data to individual lists ready for feature extraction function (because we can't slice nested lists) song_name=[] #text song_data=[] #list of numbers song_sr=[] #sample rate
ise-uiuc/Magicoder-OSS-Instruct-75K
if (c == 'R'){ i = (i + 1) % 4; }else if(c == 'L'){ i = (i + 3) % 4; }else{ x += dx[i], y += dy[i]; }
ise-uiuc/Magicoder-OSS-Instruct-75K
<img class="img-fluid" src="assets/images/illustration/img-2.png" alt="" style="max-width: 320px"> </div> <h3 class="state-header"> Page Not found! </h3> <p class="state-description lead text-muted"> URL point to something that doesn't exist. </p> <div class="state-action">
ise-uiuc/Magicoder-OSS-Instruct-75K
#!/bin/bash cat data_split_a* > data.tgz tar xvzf data.tgz
ise-uiuc/Magicoder-OSS-Instruct-75K
await ack( // ...blocksAndText( `Alright, <@${user}>! I've reset your HN account with ${resetted.resetUserSecret.balance}‡. Your private access token (IT IS *IMPERATIVE* THAT YOU DO NOT SHARE THIS) is now \`${resetted.resetUserSecret.secret}\`.` // ) ) }) } export default create
ise-uiuc/Magicoder-OSS-Instruct-75K
assert_protobuf_encode_decode::<crate::proto::types::EventProof, EventProof>(&proof); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
setup(name="nbody", ext_modules=cythonize("nbody.pyx"))
ise-uiuc/Magicoder-OSS-Instruct-75K
migrations.CreateModel( name='Category', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', models.DateTimeField(auto_now_add=True)), ('modified', models.DateTimeField(auto_now=True)), ('title', models.CharField(default='', max_length=300)),
ise-uiuc/Magicoder-OSS-Instruct-75K
data = dict(config.items(section)) return data except (ConfigParser.NoOptionError, ConfigParser.NoSectionError) as exc:
ise-uiuc/Magicoder-OSS-Instruct-75K
# top.pprint(5) top.foreachRDD(lambda rdd : myprint(rdd,5)) ssc.start()
ise-uiuc/Magicoder-OSS-Instruct-75K
def is_device(self): return self.__class__.__name__ == "Device"
ise-uiuc/Magicoder-OSS-Instruct-75K
return False @staticmethod def get_phone_number_data(number: str) -> G_T: number_and_plus = f"+{number}" phone_number = parse(number_and_plus) country_name = geocoder.country_name_for_number(phone_number, "en") time_zones_number = timezone.time_zones_for_number(phone_number) return { "country_code": phone_number.country_code, "national_number": phone_number.national_number, "country": country_name,
ise-uiuc/Magicoder-OSS-Instruct-75K
if [ -z "$2" ]; then echo "Simulation launch script. Missing required parameter simulation class:" echo " <simulation class> : fully qualified name of the Simulation class. Example 'uk.gov.hmcts.ccd.simulation.UserProfileSimulation'" exit 0; fi
ise-uiuc/Magicoder-OSS-Instruct-75K
<label for="first_name">Route</label> </div> <div class="input-field col s6"> <select> <option value="" disabled selected>Choose your option</option> <option value="1">GET</option> <option value="2">POST</option> <option value="3">PATCH</option>
ise-uiuc/Magicoder-OSS-Instruct-75K
proc-group=turnserver cipher-list="TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-SHA256:DHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256" web-admin EOF
ise-uiuc/Magicoder-OSS-Instruct-75K
waitOnRunning ${TARGET} ELAPSED_TIME_RUN=$(($SECONDS - $START_TIME_RUN)) echo "rescaling pods 0" >>${LOGFILE} START_TIME_DELETE=$SECONDS rescalePods 0
ise-uiuc/Magicoder-OSS-Instruct-75K
'cloudify.interfaces.worker_installer.start') ] else: tasks += [ host_node_instance.send_event('Creating Agent'), host_node_instance.execute_operation( 'cloudify.interfaces.cloudify_agent.create') ]
ise-uiuc/Magicoder-OSS-Instruct-75K
if self.rot_axis[2]: app[self.roll_name] = self.roll app.modeler.rotate(aedt_object, "X", angle=self.roll_name) return True @aedt_exception_handler def insert(self, app): """Insert 3D component in AEDT. Parameters ---------- app : pyaedt.Hfss
ise-uiuc/Magicoder-OSS-Instruct-75K
import { createUserSessionHandler, deleteSessionHandler, getUserSessionHandler } from '../controllers/SessionController'; import { createUserHandler } from '../controllers/userController'; import requireUser from '../middlewares/requireUser'; import validate from '../middlewares/validate'; import { createUserSessionSchema } from '../schema/session'; import { createUserSchema } from '../schema/user';
ise-uiuc/Magicoder-OSS-Instruct-75K
Author: 2021, <NAME> (Etica.AI) <<EMAIL>> License: Public Domain / BSD Zero Clause License SPDX-License-Identifier: Unlicense OR 0BSD """ # __all__ = [ # 'get_entrypoint_type' # ] # from hxlm.core.io.util import ( # noqa # get_entrypoint_type # )
ise-uiuc/Magicoder-OSS-Instruct-75K
#!/bin/bash sudo apt-get update sudo apt-get install mosquitto-clients -y wget https://raw.githubusercontent.com/eifinger/publish-ip-on-boot/master/publish-ip.sh wget https://raw.githubusercontent.com/eifinger/publish-ip-on-boot/master/publiship.service chmod +x /home/pi/publish-ip.sh sudo mv /home/pi/publiship.service /etc/systemd/system/publiship.service sudo systemctl enable publiship.service sudo systemctl start publiship.service
ise-uiuc/Magicoder-OSS-Instruct-75K
public class VideoCacheSettings { private static var _downloader: Downloader? static let kMCacheAge: Int = 60 * 60 * 24 static let kCachePath = (NSTemporaryDirectory() as NSString).appendingPathComponent("VideoCache") as NSString
ise-uiuc/Magicoder-OSS-Instruct-75K
let needed_food = producer.population * producer.product_usage[0]; let eaten_food = producer.products[0].min(needed_food); producer.products[0] -= eaten_food; let needed_goods = producer.population * producer.product_usage[1]; let used_goods = producer.products[1].min(needed_goods); producer.products[1] -= used_goods; let food_ratio = eaten_food / needed_food; let goods_ratio = used_goods / needed_goods; producer.happiness = food_ratio + food_ratio * goods_ratio * 0.5;
ise-uiuc/Magicoder-OSS-Instruct-75K
mRegistry->mMap[func_name] = kernel; } return kernel; } template <typename... Args> static cl_kernel_wrapper* registerKernel(const std::string& func_name, const std::string& bin_name, Args... argv) { if (nullptr == mRegistry) { // Create a registry mRegistry = new cl_kernel_mgr();
ise-uiuc/Magicoder-OSS-Instruct-75K
print(array[index])
ise-uiuc/Magicoder-OSS-Instruct-75K
format : surface_config.format, blend : Some( wgpu::BlendState::REPLACE ),
ise-uiuc/Magicoder-OSS-Instruct-75K
author_email="<EMAIL>", description="A python interface for the Discord API", long_description=long_description, long_description_content_type="text/markdown", py_modules=["discord_messages"], url="https://github.com/creidinger/discord_messages.py", classifiers=[ "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.8", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", ], package_dir={"": "src"}, packages=setuptools.find_packages(where="src"), python_requires=">=3.8",
ise-uiuc/Magicoder-OSS-Instruct-75K
popd popd
ise-uiuc/Magicoder-OSS-Instruct-75K
download_chromedriver_for_mac
ise-uiuc/Magicoder-OSS-Instruct-75K
except ValueError: raise ValueError( 'max_template_date must be set and have format YYYY-MM-DD.') self._max_hits = max_hits self._kalign_binary_path = kalign_binary_path self._strict_error_check = strict_error_check if release_dates_path: logging.info('Using precomputed release dates %s.', release_dates_path) self._release_dates = _parse_release_dates(release_dates_path) else: self._release_dates = {} if obsolete_pdbs_path:
ise-uiuc/Magicoder-OSS-Instruct-75K
namespace SpaceShipWarBa.Abstracts.DataContainers { public interface IEnemyStats : ICharacterStats
ise-uiuc/Magicoder-OSS-Instruct-75K
<tbody> <tr> <td><?php echo $t ?></td> <td><?php echo $t-$ac-$re ?></td>
ise-uiuc/Magicoder-OSS-Instruct-75K
python /mnt/e/DesignData/ligands/LigandBB/Design_Sam/run_search_struct.py ''' # Generate queryss
ise-uiuc/Magicoder-OSS-Instruct-75K
'working.current': 2, 'queue.low.current': 4, 'queue.mail.current': 3, 'queue.realtime.current': 9,
ise-uiuc/Magicoder-OSS-Instruct-75K
Module with ObjectMapper classes for the icephys-meta Container classes/neurodata_types """ from pynwb import register_map from pynwb.io.file import NWBFileMap from hdmf.common.io.table import DynamicTableMap from ndx_icephys_meta.icephys import ICEphysFile, AlignedDynamicTable @register_map(ICEphysFile) class ICEphysFileMap(NWBFileMap): """ Customize object mapping for ICEphysFile to define the mapping for our custom icephys tables, i.e., InteracellularRecordings, SimultaneousRecordingsTable,
ise-uiuc/Magicoder-OSS-Instruct-75K
xs = [int(x) for x in xs] regular_col = '#b0b0b0' global_col = '#424ef5' local_col = '#f57542' alpha_mean = 1.0 alpha_q = 0.25 alpha_area = 0.2
ise-uiuc/Magicoder-OSS-Instruct-75K
LAST=$(tail -n 1 block-data.csv | cut -d, -f1) HEIGHT=$(bitcoin-cli getblockchaininfo | jq .blocks) START=$((LAST + 1))
ise-uiuc/Magicoder-OSS-Instruct-75K
def down(self, args: Optional[Any], extra_args: Optional[Any]) -> None: if not args: return ShadowenvHelper.unset_environments()
ise-uiuc/Magicoder-OSS-Instruct-75K
get: () => T; set: (value: T) => void; } export class Ref<T> implements IRef<T> { constructor( public readonly get: () => T, public readonly set: (value: T) => void ) {} public map<TNew>(to: (t: T) => TNew, from: (tNew: TNew) => T): Ref<TNew> {
ise-uiuc/Magicoder-OSS-Instruct-75K
self.horizontalLayout.addWidget(self.btMinus) import WalArt.gui.buttons self.btLock = WalArt.gui.buttons.btLock(self.groupBox)
ise-uiuc/Magicoder-OSS-Instruct-75K
'(' + ",".join(c.vars) + ')', c.unpack) unpacked_vals = eval(unpack_expr, prior_globs, {'__v':v}) new_t_data = list(t.tuple) for tv in unpacked_vals[0]: new_t_data.append(tv) new_t = PQTuple(new_t_data, new_schema) yield new_t # Process a join def processJoin(c, table, prior_lcs, prior_globs, left_arg, right_arg): new_schema = None left_conds = c.left_conds right_conds = c.right_conds join_type = 'nl'
ise-uiuc/Magicoder-OSS-Instruct-75K
# Universal public domain dedication. __version__ = '1.0.0' # NOQA
ise-uiuc/Magicoder-OSS-Instruct-75K
std::string dateStr = (boost::format("[%02d/%02d %02d:%02d:%02d]") % date->tm_mon % date->tm_mday % date->tm_hour % date->tm_min % date-> tm_sec).str(); return dateStr; } } namespace logs{ std::ofstream lout;
ise-uiuc/Magicoder-OSS-Instruct-75K
if(audioOnly) { return [audioRecv,audioLoss,aquality].joined(separator: "\n") } return [dimensionFpsBit,videoRecv,audioRecv,videoLoss,audioLoss,aquality].joined(separator: "\n") }
ise-uiuc/Magicoder-OSS-Instruct-75K
// let trustManager = ServerTrustManager(evaluators: evaluators) let configuration = URLSessionConfiguration.af.default return Alamofire.Session(configuration: configuration) } }
ise-uiuc/Magicoder-OSS-Instruct-75K
cfg.GPG.set_motor_dps(cfg.GPG.MOTOR_RIGHT, dps=int(-cfg.distance_correction) + int(cfg.horizontal_correction)) cv2.imshow("outputImage", image) endTime = time.time() print("loopTime: ", endTime - startTime) # Exit if 'esc' is clicked # cleanup hardware key = cv2.waitKey(1) rawCapture.truncate(0)
ise-uiuc/Magicoder-OSS-Instruct-75K
result["language_info"]["version"] = "2018"; result["language_info"]["mimetype"] = "text/x-fortran"; result["language_info"]["file_extension"] = ".f90"; return result; } void custom_interpreter::shutdown_request_impl() { std::cout << "Bye!!" << std::endl; } int run_kernel(const std::string &connection_filename) { // Load configuration file xeus::xconfiguration config = xeus::load_configuration(connection_filename);
ise-uiuc/Magicoder-OSS-Instruct-75K
LogUtil.d(TAG, "Received message is " + text); if (TextUtils.isEmpty(text) || TextUtils.isEmpty(text.trim())) { LogUtil.e(TAG, "onMessage: message is NULL"); return; } try {
ise-uiuc/Magicoder-OSS-Instruct-75K
) from homeassistant.core import HomeAssistant, ServiceCall from homeassistant.helpers import config_validation as cv from homeassistant.helpers.typing import ConfigType from homeassistant.helpers.update_coordinator import CoordinatorEntity from .const import ( ATTR_SPEED, DATA_COORDINATOR, DATA_UNDO_UPDATE_LISTENER, DEFAULT_NAME,
ise-uiuc/Magicoder-OSS-Instruct-75K
$book = new Book([ 'price' => $_POST['price'], 'name' => $_POST['name'], 'supplier_id'=> $_POST['supplier_id'], ]); $book->save(); return redirect('Books'); }
ise-uiuc/Magicoder-OSS-Instruct-75K
for item_group in results { println!("{:?}", item_group); } } Err(_) => { println!("Failed to retrieve result from the database."); } };
ise-uiuc/Magicoder-OSS-Instruct-75K
/// A control that executes your custom code in response to user interactions.
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>t-richard/lift import type { PolicyStatement } from "../CloudFormation"; /** * Defines which methods a Lift construct must expose. */
ise-uiuc/Magicoder-OSS-Instruct-75K
public const BACKUP_CODE = 303; public const CLIENT_CODE = 400; public const REGION_CODE = 304; protected ?int $http_code = null;
ise-uiuc/Magicoder-OSS-Instruct-75K
// in the heirarchy public class EntityHP : Entity { //public members public float mHP;
ise-uiuc/Magicoder-OSS-Instruct-75K
return $this->fetch(); } public function show() { $sys = new S; $info = $sys->show(); $this -> assign('info',$info); return $this->fetch();
ise-uiuc/Magicoder-OSS-Instruct-75K
if yval is not None: # if handed an actual value try: # try indexing index = self.index(xval) if subtract is True: # set sign based on input sign = -1 else: sign = 1 if self.empty is False: # if x list filled try: self.y[index] += yval * sign # try to add value except TypeError: self.y[index] = yval * sign # if None, then set to value else:
ise-uiuc/Magicoder-OSS-Instruct-75K
self.__db: BaseClient = firestore.client() def getDBInstance(self) -> BaseClient: return self.__db
ise-uiuc/Magicoder-OSS-Instruct-75K
"sessions_created": self._sessions_created, "session": session, "session_time_created": session.time_created, "session_time_returned": session.time_returned, "live_sessions_count": len(self._sessions), }, ) return session def _return_http_session( self, http_session: requests.Session, err: bool = False ) -> None:
ise-uiuc/Magicoder-OSS-Instruct-75K
InitializeComponent();
ise-uiuc/Magicoder-OSS-Instruct-75K
TRGL 1 2 3 TRGL 42 40 41 TRGL 46 44 47 TRGL 25 22 31 TRGL 38 39 45 TRGL 62 64 61 TRGL 50 76 74 TRGL 26 23 24 TRGL 37 78 81 TRGL 56 58 53 TRGL 63 59 60
ise-uiuc/Magicoder-OSS-Instruct-75K
self.jobQueue.unassignJob(self.jobId1) job = self.jobQueue.get(self.jobId1) return self.assertEqual(job.assigned, False) def test_makeDead(self): info = self.jobQueue.getInfo()
ise-uiuc/Magicoder-OSS-Instruct-75K
#===================================================# import sys, csv, re infields = ['id', 'str_resource', 'str_description', 'website', 'meta_title', 'meta_description', 'stage_list', 'task_list'] outfields = infields + ['stage_list_facet', 'task_list_facet'] with open(sys.argv[1], 'r') as infile, open(sys.argv[2], 'w') as outfile:
ise-uiuc/Magicoder-OSS-Instruct-75K
kubectl apply -f single/storageclass.yaml while [ ! "$(kubectl get storageclass | grep minio-data-storage | awk '{print $2}')" = "kubernetes.io/no-provisioner" ]; do sleep 2
ise-uiuc/Magicoder-OSS-Instruct-75K
if res['success'] == True: return True else: return False def _get_balances(self): """Get balance""" res = self.client.get_balances() # print("get_balances response:", res) for entry in res['result']: currency = entry['Currency'] if currency not in ( 'BTC', 'BCC'):
ise-uiuc/Magicoder-OSS-Instruct-75K
@testable import MVVMModule class MVVMModuleTests: XCTestCase { override func setUpWithError() throws { // Put setup code here. This method is called before the invocation of each test method in the class. } override func tearDownWithError() throws { // Put teardown code here. This method is called after the invocation of each test method in the class. }
ise-uiuc/Magicoder-OSS-Instruct-75K
from .component import * from .network import * from .utils import * from .reward_fs import *
ise-uiuc/Magicoder-OSS-Instruct-75K
namespace UserAclDesc { class Helper {
ise-uiuc/Magicoder-OSS-Instruct-75K
from SimpleXMLRPCServer import SimpleXMLRPCServer def get_date(): return time.strftime("%H %M %S") server=SimpleXMLRPCServer(('localhost',8888)) server.register_function(get_date,"get_date") server.serve_forever()
ise-uiuc/Magicoder-OSS-Instruct-75K
float dx = cornerPivotCoordinates.x - textureCoordinates.x;
ise-uiuc/Magicoder-OSS-Instruct-75K
class Posts(models.Model): title = models.CharField(max_length=200) body = models.TextField() created_ts = models.DateTimeField(default=datetime.now, blank=True) def __str__(self):
ise-uiuc/Magicoder-OSS-Instruct-75K
echo >&2 echo "ERROR: protos changed. Run bazel run //hack:update-protos" >&2 exit 1
ise-uiuc/Magicoder-OSS-Instruct-75K
return s # How's this for continuous integration. assert dumb_round(10.00000007) == "10" assert dumb_round(4.500000022) == "4.5" assert dumb_round(0.999999987) == "1" assert dumb_round(0.049999999) == "0.05" if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument('num', type=float) args = parser.parse_args()
ise-uiuc/Magicoder-OSS-Instruct-75K
if os.environ['SLACK_TOKEN']: slack = Slacker(os.environ['SLACK_TOKEN']) slack.chat.post_message(os.environ['SLACK_CHANNEL'], log_message)
ise-uiuc/Magicoder-OSS-Instruct-75K
b.iter(|| luhnmod10::valid("4242424242424242")); }
ise-uiuc/Magicoder-OSS-Instruct-75K
# Toss out the first line that declares the version since its not supported YAML syntax next(config_file)
ise-uiuc/Magicoder-OSS-Instruct-75K
'.', MIDDLE_ABBR, '.' ) ############## # # MIDDLE # #############
ise-uiuc/Magicoder-OSS-Instruct-75K
from twisted.web.server import NOT_DONE_YET from twisted.internet.defer import Deferred def test_full_suite_coverage(): assert sanitize_render_output("Foo") == b"Foo" assert sanitize_render_output(b"Foo") == b"Foo" with pytest.raises(RuntimeError): assert sanitize_render_output(("Foo",))
ise-uiuc/Magicoder-OSS-Instruct-75K
plt.ylabel("$\mathrm{" + str(MIN_PTS) + "-distance}$") plt.xlim([0, len(vector) - 1]) plt.ylim([0, 2]) # Set this to a sensible value! plt.scatter(np.arange(len(vector)), vector) def choose_eps(df): sorted_k_distance_vector = _get_k_distance(df) choice = input("Show k-distance plot? [y/n] ")
ise-uiuc/Magicoder-OSS-Instruct-75K
if (it == fd_map_.end()) { return nullptr; }
ise-uiuc/Magicoder-OSS-Instruct-75K
* 消息事件传输对象 * </p> * * @author wenchangwei * @since 11:47 上午 2021/4/4 */ @ToString @EqualsAndHashCode(callSuper = true) public class MessageEvent extends ApplicationEvent {
ise-uiuc/Magicoder-OSS-Instruct-75K
<div class="form-group"> <label class="col-sm-3 col-lg-2 control-label">Model</label> <div class="col-sm-9 col-lg-10 controls"> <select name="model" dependence="model" class="dynamic_mark_model_motorization_power form-control"> <option value="">Select a Model</option> </select> </div> </div>
ise-uiuc/Magicoder-OSS-Instruct-75K
""" This subpackage is for providing the data to the controllers """
ise-uiuc/Magicoder-OSS-Instruct-75K
{ "names": [ "my-package-0.1.0.tar.gz", "my_package-0.1.0-py3-none-any.whl", ], "published": False, "status": "skipped (requested)", "target": "src:dist", }, ]
ise-uiuc/Magicoder-OSS-Instruct-75K