seed
stringlengths
1
14k
source
stringclasses
2 values
# // divisão inteira nom = input('Comment vous vous appellez? ') print('Cest un plaisir de vous conaitre {:20}!'.format(nom)) print('Cest un plaisir de vous conaitre {:>20}!'.format(nom)) print('Cest un plaisir de vous conaitre {:^20}!'.format(nom)) print('Cest un plaisir de vous conaitre {:=^20}!'.format(nom))
ise-uiuc/Magicoder-OSS-Instruct-75K
{ namespace lpc17xx { // The LPC40xx driver is compatible with the lpc17xx peripheral using ::sjsu::lpc40xx::Pwm; // The LPC40xx GetPwm is compatible with the lpc17xx peripheral
ise-uiuc/Magicoder-OSS-Instruct-75K
class ZeroSpider(scrapy.Spider):
ise-uiuc/Magicoder-OSS-Instruct-75K
#endif /* __ACE_INLINE__ */
ise-uiuc/Magicoder-OSS-Instruct-75K
[Option("d", "directory", Required = true, HelpText = "Directory to load benchmarks from")] public string Directory { get; set; } [Option("r", "regression-threshold", DefaultValue = 130, HelpText = "Regression trigger threshold: the percentage of the previous time that the new time must exceed to report a regression")] public int RegressionThreshold { get; set; } [Option("i", "improvement-threshold", DefaultValue = 80, HelpText = "Improvements trigger threshold: the percentage of the previous time that the new time must fall below to report an improvement")] public int ImprovementThreshold { get; set; }
ise-uiuc/Magicoder-OSS-Instruct-75K
# begin wxGlade: MyDialog.__do_layout sizer_1 = wx.BoxSizer(wx.VERTICAL) sizer_2 = wx.BoxSizer(wx.HORIZONTAL) sizer_1.Add(self.ListExperiments, 1, wx.ALL | wx.EXPAND, 10) sizer_2.Add(self.ButtonCopy, 0, 0, 0) sizer_2.Add((20, 20), 1, 0, 0)
ise-uiuc/Magicoder-OSS-Instruct-75K
def test_run_with_profile(self): with mock.patch('force_wfmanager.gui.run.WfManager') as mock_wf: mock_wf.return_value = DummyWfManager() force_wfmanager.gui.run.main( window_size=(1650, 1080), debug=False, profile=True, workflow_file=None ) root = ('force_wfmanager-{}-{}.{}.{}' .format(__version__,
ise-uiuc/Magicoder-OSS-Instruct-75K
version: "3.6.2", version_latest: "3.6.2",
ise-uiuc/Magicoder-OSS-Instruct-75K
</CardBody> </GridItem> </Grid>
ise-uiuc/Magicoder-OSS-Instruct-75K
Generates the ARN of every ECS cluster in an account. """ paginator = ecs_client.get_paginator("list_clusters")
ise-uiuc/Magicoder-OSS-Instruct-75K
return obj.issue.project.organization.get_user_scopes(user)
ise-uiuc/Magicoder-OSS-Instruct-75K
client = InfluxDBClient(*config["influxdb_config"]) # Original config was just a single dictionary, supporting a single bank # account. This allows to have a list of those dicts instead and check more # than one bank account if config["fints_config"] is dict: bank_configs = [config["fints_config"]] else: bank_configs = config["fints_config"] for bank_config in bank_configs:
ise-uiuc/Magicoder-OSS-Instruct-75K
constant_op.constant(58., shape=(strategy.num_replicas_in_sync))) if __name__ == "__main__": test.main()
ise-uiuc/Magicoder-OSS-Instruct-75K
{ return source.Parse(g => g.Function); } private static T Parse<T>(this string source, Func<RookGrammar, Parser<T>> getParser) { var tokens = Tokenize(source); var parser = getParser(new RookGrammar()); return parser.Parse(tokens).Value; } public static TokenStream Tokenize(this string source) {
ise-uiuc/Magicoder-OSS-Instruct-75K
return TwitterRequestToken(authenticate_url=authenticate_url, request_oauth_token=request_oauth_token, request_oauth_secret=request_oauth_secret) class TwitterAccessToken(graphene.Mutation): class Arguments: request_token = graphene.String(required=True) verifier = graphene.String(required=True) access_token = graphene.String() access_token_secret = graphene.String() def mutate(root, info, request_token, verifier):
ise-uiuc/Magicoder-OSS-Instruct-75K
interface LoginButtonProps { form: ILoginForm;
ise-uiuc/Magicoder-OSS-Instruct-75K
public protocol SNSliderDelegate: class { func didSelectFilter(_ slider: SNSlider, at index: Int) }
ise-uiuc/Magicoder-OSS-Instruct-75K
</div> </div> <!--*****END ACTION CALL*****----> @endif
ise-uiuc/Magicoder-OSS-Instruct-75K
payment_details = {}
ise-uiuc/Magicoder-OSS-Instruct-75K
if (!FileFS.begin(true)) { #endif Serial.println("[Core] File System failed.");
ise-uiuc/Magicoder-OSS-Instruct-75K
const GetStartedComponent = (args: OcAppGetStartedComponent) => ({ component: OcAppGetStartedComponent, moduleMetadata: modules, props: args, });
ise-uiuc/Magicoder-OSS-Instruct-75K
# get constants constants = getConstants() def api_request(method, url, header=None, data=None, response_type='json'): response = requests.request(method, url, headers=header, data=data) if response_type == 'json': try: response_message = response.json()
ise-uiuc/Magicoder-OSS-Instruct-75K
fatalError("init(coder:) has not been implemented") } func updateProgress(time:CGFloat, total:CGFloat) { let progressViewWidth = frame.size.width * time / total progressView.frame = CGRectMake(0, 0, progressViewWidth, frame.size.height) let r,g,b :CGFloat let a: CGFloat = 1.0 if time < total/2 { r = time/total*2 g = 1 } else {
ise-uiuc/Magicoder-OSS-Instruct-75K
self.command = command self.name = self.command self.params = params # self.output_path = output_path # this should be removed at somepoint self.stdout_type = stdout_type # this should be removed at somepoint self.process = None
ise-uiuc/Magicoder-OSS-Instruct-75K
video ]
ise-uiuc/Magicoder-OSS-Instruct-75K
/// <summary> /// Gets the target attribute to assign to. /// </summary> /// <value> /// The target. /// </value> public string Target { get { XAttribute property = Assignment; return property != null ? property.Name.LocalName : ""; } }
ise-uiuc/Magicoder-OSS-Instruct-75K
code: response.statusCode ))) case 500..<600: return completionHandler(.failure(NetworkError.serverError( code: response.statusCode
ise-uiuc/Magicoder-OSS-Instruct-75K
// Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`. // If using a storyboard, the `window` property will automatically be initialized and attached to the scene. // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead). guard let _ = (scene as? UIWindowScene) else { return } } func sceneDidDisconnect(_ scene: UIScene) { // Called as the scene is being released by the system.
ise-uiuc/Magicoder-OSS-Instruct-75K
private final SwipeSharedState mSwipeSharedState; public ResetGestureInputConsumer(SwipeSharedState swipeSharedState) { mSwipeSharedState = swipeSharedState; }
ise-uiuc/Magicoder-OSS-Instruct-75K
# Simple benchmark script when searching similar strings by using elasticsearch instead of SimString. # Since Elasticsearch uses Apache Lucene, TF/IDF based searching algorithm, the purpose for searching text will be different from this library. from elasticsearch import Elasticsearch from benchmarker import Benchmarker
ise-uiuc/Magicoder-OSS-Instruct-75K
def exception_is_ban(self, request, exception): # override method completely: don't take exceptions in account return None
ise-uiuc/Magicoder-OSS-Instruct-75K
# try to guess k pixels # if you guess right count it, else continue
ise-uiuc/Magicoder-OSS-Instruct-75K
sudo adduser --system --no-create-home --shell /bin/false --group --disabled-login nginx
ise-uiuc/Magicoder-OSS-Instruct-75K
git add . git commit -m "auto push" git push -u origin main
ise-uiuc/Magicoder-OSS-Instruct-75K
from contextlib import contextmanager MOCK_LOUCSTFILE_CONTENT = ''' """This is a mock locust file for unit testing"""
ise-uiuc/Magicoder-OSS-Instruct-75K
def test_integer_list_get_index__when_value_in_list__expect_to_return_the_index(self): integer_list = IntegerList(1, 2, 3, 4) actual = integer_list.get_index(2) self.assertEqual(1, actual) def test_integer_list_get_index__when_value_not_in_list__expect_exception(self): integer_list = IntegerList(1, 2, 3, 4) with self.assertRaises(IndexError): integer_list.get_index(30)
ise-uiuc/Magicoder-OSS-Instruct-75K
case Required = "required" internal static func fromCassowary(cassowary: Cassowary, value: JSValue) -> Strength { // TODO: return .Weak }
ise-uiuc/Magicoder-OSS-Instruct-75K
// Join `target` and modified `source` Object.assign(target || {}, source); return target; };
ise-uiuc/Magicoder-OSS-Instruct-75K
admin.site.register(Favourite)
ise-uiuc/Magicoder-OSS-Instruct-75K
vec3(0.0, 0.0, 0.0), vec3(1.0, 0.0, 0.0), vec3(1.0, 1.0, 0.0), vec3(0.0, 1.0, 0.0), ],
ise-uiuc/Magicoder-OSS-Instruct-75K
print(m)
ise-uiuc/Magicoder-OSS-Instruct-75K
// add eventView to horz. stack view horizontalStackView.addArrangedSubview(eventView) } // add vert. stack view inside, pin vert. stack view, update content view by the number of horz. stack views verticalStackView.translatesAutoresizingMaskIntoConstraints = false scrollView.addSubview(verticalStackView) verticalStackView.trailingAnchor.constraint(equalTo: scrollView.trailingAnchor, constant: 0).isActive = true verticalStackView.topAnchor.constraint(equalTo: scrollView.topAnchor, constant: 0).isActive = true
ise-uiuc/Magicoder-OSS-Instruct-75K
public function navigateTo($instructions = null); }
ise-uiuc/Magicoder-OSS-Instruct-75K
set_analysis_name("Covariance"); set_luminosity(30.); // fb } void run(const HEPUtils::Event*) {} /// Combine the variables of another copy of this analysis (typically on another thread) into this one.
ise-uiuc/Magicoder-OSS-Instruct-75K
'link': None, } if action == constants.PASSWORD_RESET_CODE_OR_LINK: ctx['link'] = get_password_reset_link(ctx) hookset.send_password_reset_email([user.email], ctx) elif action == constants.CONFIRMATION_EMAIL: ctx['link'] = get_confirmation_email_link(ctx) hookset.send_confirmation_email([user.email], ctx)
ise-uiuc/Magicoder-OSS-Instruct-75K
public string Type { get; set; } = "Text";
ise-uiuc/Magicoder-OSS-Instruct-75K
NWN_API_PROLOGUE(CVirtualMachineDebugLoader) #endif struct CExoString;
ise-uiuc/Magicoder-OSS-Instruct-75K
<gh_stars>0 vector = [{"name": "<NAME>", "age": 37}, {"name": "<NAME>", "age": 35}] # for item in vector: # print(item["name"])
ise-uiuc/Magicoder-OSS-Instruct-75K
('score', models.IntegerField(default=0)), ('pub_date', models.DateTimeField(auto_now_add=True)), ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ('title', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='reviews', to='api.Title')), ], ), migrations.CreateModel(
ise-uiuc/Magicoder-OSS-Instruct-75K
entries: Vec<Slot<T>>, // Number of Filled elements currently in the slab len: usize, // Offset of the next available slot in the slab. Set to the slab's // capacity when the slab is full. next: usize,
ise-uiuc/Magicoder-OSS-Instruct-75K
inner_fiber=inner_fiber, out_fiber=out_fiber ) self.bn1 = nn.InnerBatchNorm(self.layer3.out_type, momentum=0.9) if self.conv2triv: self.relu = nn.ReLU(self.bn1.out_type, inplace=True) else: self.mp = nn.GroupPooling(self.layer3.out_type) self.relu = nn.ReLU(self.mp.out_type, inplace=True) self.linear = torch.nn.Linear(self.relu.out_type.size, num_classes)
ise-uiuc/Magicoder-OSS-Instruct-75K
'Creates the name space given the space and sets the value to that name space' if not isinstance(notation, str): return self keys = notation.split(separator) if notation == '' or not len(keys): return self last = keys.pop(); pointer = self.__dict__ # Now parse for key in keys:
ise-uiuc/Magicoder-OSS-Instruct-75K
13 = lep 14 = ahhh! (interested) 15 = arhhh! (disapointed) 16 = oh yeah 17 = meh (derogatory?) 18 = beh 19 = see yah? 20 = bad a bad a bad a (MiP talking to himself?)
ise-uiuc/Magicoder-OSS-Instruct-75K
* @param Request * * @return array */ public function toArray($request) { return $this->getCollectionData(true);
ise-uiuc/Magicoder-OSS-Instruct-75K
} @Override public boolean isEnum() { return isEnum; } public void setIsEnum(boolean anEnum) { isEnum = anEnum; } // public void ArraySerialize(BinaryWriter writer) // {
ise-uiuc/Magicoder-OSS-Instruct-75K
from file_op import adjust_index from util import check_path_length from util import log_warning def conver(): """The entry point to convert Tensorflow script""" print("Begin conver, input file: " + util_global.get_value('input') + '\n') out_path = util_global.get_value('output') dst_path = os.path.split(util_global.get_value('input').rstrip('\\/'))[-1] dst_path_new = dst_path + util_global.get_value('timestap') conver_path = os.walk(util_global.get_value('input')) report_dir = util_global.get_value('report') mkdir(report_dir) report_xlsx = os.path.join(report_dir, 'api_analysis_report.xlsx')
ise-uiuc/Magicoder-OSS-Instruct-75K
alice_ae_key .decrypt(&(extension.decryptable_available_balance.try_into().unwrap())) .unwrap(), 0 ); token .confidential_transfer_approve_token_account(&alice_token_account, &ct_mint_authority) .await .unwrap();
ise-uiuc/Magicoder-OSS-Instruct-75K
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Title</label></div> <div class="col-12 col-md-9"> <input type="text" id="text-input" name="title" placeholder="title" class="form-control" value="{{ $post->title }}"> @error('title') <span class="text-danger">{{ $message }}</span> @enderror </div> </div> <div class="row form-group"> <div class="col col-md-3"><label for="text-input" class=" form-control-label">Tags</label></div> <div class="col-12 col-md-9">
ise-uiuc/Magicoder-OSS-Instruct-75K
print("\nExercise 3a (role AGG)") print("-" * 20) agg_devs = nr.filter(F(role__contains="AGG")) print(agg_devs.inventory.hosts) print("-" * 20) print("\nExercise 3b (sea or sfo group)") print("-" * 20)
ise-uiuc/Magicoder-OSS-Instruct-75K
curmirr = mcache[lastppu]; if (curmirr != lastmirr) { setmirror(MI_0 + curmirr); lastmirr = curmirr; } } } static void M80Power(void) { wram_enable = 0xFF; Sync(); SetReadHandler(0x7F00, 0x7FFF, M80RamRead); SetWriteHandler(0x7F00, 0x7FFF, M80RamWrite);
ise-uiuc/Magicoder-OSS-Instruct-75K
{ enableCrossPartitionQuery: true }); return res.send(200, results); } @Get("/:id") public async getActorById(req, res) { const actorId = req.params.id; this.telem.trackEvent("get actor by id"); const querySpec: DocumentQuery = { parameters: [ {
ise-uiuc/Magicoder-OSS-Instruct-75K
self.assertRaises(ValueError, imputer.fit, X)
ise-uiuc/Magicoder-OSS-Instruct-75K
switch_pm_text='To bot', switch_pm_parameter='sp')
ise-uiuc/Magicoder-OSS-Instruct-75K
label = 'Время (в отсчетах)', valmin = 0, valmax = J - 1, valstep = 1, valinit = 0, )
ise-uiuc/Magicoder-OSS-Instruct-75K
else: return True def __unicode__(self): return "PR%i" % self.prob
ise-uiuc/Magicoder-OSS-Instruct-75K
// MARK: - Init override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) { super.init(style: style, reuseIdentifier: reuseIdentifier) contentView.addSubview(titleLabel) layout() }
ise-uiuc/Magicoder-OSS-Instruct-75K
for a in res: href1_ = a.xpath('./@href')[0] href_ = ('http://v.7192.com'+href1_) title_ = a.xpath('./@title')[0] src_ = a.xpath('./img/@data-original')[0] print(src_) print(href_,title_) #text_=href_+title_+src_ reponse1 = requests.get('http://v.7192.com'+href1_,headers=headers)
ise-uiuc/Magicoder-OSS-Instruct-75K
//建立表头单元格 this.HeaderCell = new DataGridViewCheckBoxColumnHeaderCellEx() as DataGridViewColumnHeaderCell; //建立单元格模板 this.CellTemplate = new DataGridViewCheckBoxCellEx(); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
about = TextAreaField('Tell us about you.',validators = [Required()]) submit = SubmitField('Submit') class PitchForm(FlaskForm): pitch = TextAreaField('Write a pitch') submit = SubmitField('Submit')
ise-uiuc/Magicoder-OSS-Instruct-75K
{ print("Rotate"); rotating = true;
ise-uiuc/Magicoder-OSS-Instruct-75K
public RetrievePage(WebDriver driver, String depositName) { super(driver); this.depositName = depositName; verifyBreadcrumb("Retrieve data"); } public RetrievePage typeRetrieveNote(String note) {
ise-uiuc/Magicoder-OSS-Instruct-75K
match = regex_throughput.search(line) match_lat = regex_latency.search(line) if match: res = match.group(1) sub_throughputs.append(float(res)) if match_lat: res = match_lat.group(1) sub_latencies.append(float(res)) throughputs.append(sub_throughputs) latencies.append(sub_latencies)
ise-uiuc/Magicoder-OSS-Instruct-75K
#[error("failed to connect to server")]
ise-uiuc/Magicoder-OSS-Instruct-75K
cls.classifier = KerasClassifier((0, 1), model=model) cls.classifier.fit(x_train, y_train, nb_epochs=2, batch_size=128) cls.defence = ActivationDefence(cls.classifier, x_train, y_train) def setUp(self):
ise-uiuc/Magicoder-OSS-Instruct-75K
internal func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) try container.encodeIfPresent(file, forKey: .file) try container.encodeIfPresent(files, forKey: .files) } }
ise-uiuc/Magicoder-OSS-Instruct-75K
pub async fn create_app( url_accounts: Uri, url_cards: Uri,
ise-uiuc/Magicoder-OSS-Instruct-75K
return engine.isClient(); } public static boolean isServer() {
ise-uiuc/Magicoder-OSS-Instruct-75K
<span class="navbar-toggler-icon"></span> </button> <div class="collapse navbar-collapse" id="navbarSupportedContent"> <ul class="navbar-nav ml-auto"> <li class="nav-item active"> <a class="nav-link" href="#">About</a> </li> <li class="nav-item active">
ise-uiuc/Magicoder-OSS-Instruct-75K
</div> <div class="form-group"> <label for="name" class="col-sm-3 control-label">State Name</label>
ise-uiuc/Magicoder-OSS-Instruct-75K
// --------------------------------------------------------------------------- // BinFileOutputStream: Getter methods // ---------------------------------------------------------------------------
ise-uiuc/Magicoder-OSS-Instruct-75K
return view('admin.order.info', [ 'orders' => $this->orders
ise-uiuc/Magicoder-OSS-Instruct-75K
from scripts.helpers.my_logging import init_logging from scripts.helpers.project_params import TESTS_OUTPUT_FOLDER, TESTS_LOG_NAME init_logging(TESTS_OUTPUT_FOLDER, TESTS_LOG_NAME)
ise-uiuc/Magicoder-OSS-Instruct-75K
# altering the core-site configuration sed s/HOSTNAME/$HOSTNAME/ /usr/local/hadoop/etc/hadoop/core-site.xml.template > /usr/local/hadoop/etc/hadoop/core-site.xml
ise-uiuc/Magicoder-OSS-Instruct-75K
//#[test] //fn bin_file_dce_fix_cse() { //let mut fsource = FileSource::open(Some("./test_files/bin_file/bin_file")); //let mut rmod = RadecoModule::from(&mut fsource);
ise-uiuc/Magicoder-OSS-Instruct-75K
assert set() == req_authnr.authenticate(req.as_dict) # identifier for write type req, new_wallet = new_client_request(None, randomString(), wallet1) core_authnr.addIdr(wallet1.defaultId, wallet1.getVerkey(wallet1.defaultId))
ise-uiuc/Magicoder-OSS-Instruct-75K
void ReadImageFromFile(const std::string& file, ImageRGBA& image) { std::string ext = GetFileExtension(file); if (ext != "png" && ext != "tga" && ext != "bmp" && ext != "psd" && ext != "gif" && ext != "jpg") { throw std::runtime_error( MakeString() << "Could not read file " << file); } unsigned char* img;
ise-uiuc/Magicoder-OSS-Instruct-75K
## CLASS ## class SixNimmtEquipments(Equipments): """
ise-uiuc/Magicoder-OSS-Instruct-75K
use diesel::prelude::*; use diesel::BelongingToDsl; use rocket_contrib::databases::diesel; pub fn get_permission(
ise-uiuc/Magicoder-OSS-Instruct-75K
tail -n +$cursor $file | head -$lines_in_batch | nc -l $network_port cursor=$(($cursor + $lines_in_batch)) sleep $interval_sec done
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>JASTYN/pythonmaster from ..is_prime import is_prime
ise-uiuc/Magicoder-OSS-Instruct-75K
diceRolled = false; }
ise-uiuc/Magicoder-OSS-Instruct-75K
assert output == True def test_10_brackets(): output = laurelin.balanced_brackets("!@#$%%^&*(;',.<>?/\|~`'") assert output == False
ise-uiuc/Magicoder-OSS-Instruct-75K
# variables = var_accounts_passwords_pam_faillock_deny=3
ise-uiuc/Magicoder-OSS-Instruct-75K
"aNrmInitStd" : 1.0, # Standard deviation of log initial assets "pLvlInitMean" : 0.0, # Mean of log initial permanent income "pLvlInitStd" : 0.0, # Standard deviation of log initial permanent income "PermGroFacAgg" : 1.0, # Aggregate permanent income growth factor "T_age" : None, # Age after which simulated agents are automatically killed } self.agent_infinite(**SimulationParams) # This implicitly uses the assignParameters method of AgentType
ise-uiuc/Magicoder-OSS-Instruct-75K
addr.sun_family = family; memmove(addr.sun_path, port.c_str(), port.size()); memmove(&sockaddr_, (struct sockaddr_storage *)&addr, sizeof(addr)); return; }
ise-uiuc/Magicoder-OSS-Instruct-75K
brain = stc.plot(hemi='both', subjects_dir=subjects_dir) brain.set_time(170.0) # milliseconds brain.show_view('ventral') # brain.save_image('dSPM_map.png')
ise-uiuc/Magicoder-OSS-Instruct-75K
from .Identifier import t_ID from .LineFeed import t_NEWLINE from .Error import t_error
ise-uiuc/Magicoder-OSS-Instruct-75K
audio, samplerate = _sf.read(audio_path) # soindfile.read(audio) return audiodata(2d nparray), samplerate
ise-uiuc/Magicoder-OSS-Instruct-75K
@using Backend @namespace Backend.Pages
ise-uiuc/Magicoder-OSS-Instruct-75K
import pytest from conftest import datapath, expressed from gpath.genes.molecule import Molecule from gpath.genes.search import Search, IDENTITY
ise-uiuc/Magicoder-OSS-Instruct-75K