seed
stringlengths
1
14k
source
stringclasses
2 values
"Alice_" . } """), ("escaped_literals", """\ PREFIX tag: <http://xmlns.com/foaf/0.1/> PREFIX vcard: <http://www.w3.org/2001/vcard-rdf/3.0#> SELECT ?name WHERE { ?a tag:name ?name ; vcard:TITLE "escape test vcard:TITLE " ; <tag://test/es...
ise-uiuc/Magicoder-OSS-Instruct-75K
3.布局父视图: 如果某个视图的父视图是一个布局视图,那么这个父视图就是布局父视图。 4.非布局父视图:如果某个视图的父视图不是一个布局视图,那么这个父视图就是非布局父视图。 5.布局子视图: 如果某个视图的子视图是一个布局视图,那么这个子视图就是布局子视图。 6.非布局子视图:如果某个视图的子视图不是一个布局视图,那么这个子视图就是非布局子视图。 这要区分一下边距和间距和概念,所谓边距是指子视图距离父视图的距离;而间距则是指子视图距离兄弟视图的距离。 当tg_l...
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>nikibhatt/Groa from scraper import * s = Scraper(start=217404, end=219185, max_iter=30, scraper_instance=122) s.scrape_letterboxd()
ise-uiuc/Magicoder-OSS-Instruct-75K
up += 1 down -= 1 left += 1 right -= 1
ise-uiuc/Magicoder-OSS-Instruct-75K
from boa3.builtin.interop.contract import destroy_contract @public def Main(): destroy_contract()
ise-uiuc/Magicoder-OSS-Instruct-75K
public XMLGregorianCalendar getLastCampaignStartedTimestamp() { return lastCampaignStartedTimestamp; } public XMLGregorianCalendar getLastCampaignClosedTimestamp() {
ise-uiuc/Magicoder-OSS-Instruct-75K
def _gtk_add_item(self, gtk_item): gtk_item.show_all() self._gtk_menu.append(gtk_item) def _add_item_to_platform_menu(self, item, name, command = None, index = None): checked = item.checked if checked is None:
ise-uiuc/Magicoder-OSS-Instruct-75K
// Copyright (c) 2015 HackaZach. All rights reserved. // import UIKit import XCTest class CollectionViewFunTests: XCTestCase { override func setUp() { super.setUp() // Put setup code here. This method is called before the invocation of each test method in the class.
ise-uiuc/Magicoder-OSS-Instruct-75K
from .coint import CointAnalysis
ise-uiuc/Magicoder-OSS-Instruct-75K
func prepareToolbar() { [upVoteButton, downVoteButton, saveButton, replyButton, actionButton].forEach({ toolbar.addSubview($0) $0.translatesAutoresizingMaskIntoConstraints = false let widthConstraint = NSLayoutConstraint(item: $0, attribute: .width, relatedBy: .equal, toI...
ise-uiuc/Magicoder-OSS-Instruct-75K
// Created by Yosuke Ishikawa on 2019/01/14. // Copyright © 2019 Yosuke Ishikawa. All rights reserved.
ise-uiuc/Magicoder-OSS-Instruct-75K
Get the winner ''' dealer_id = self._get_dealer(match_uuid, player_id) if self.session.query(Player).get(player_id).winner is True: return 1 elif self.session.query(Player).get(dealer_id).winner is True: return -1 else: return 0 d...
ise-uiuc/Magicoder-OSS-Instruct-75K
config = yaml.safe_load(f.read()) logging.config.dictConfig(config)
ise-uiuc/Magicoder-OSS-Instruct-75K
:return: """ import re pattern = "|".join(map(re.escape, chars_to_mapping.keys())) return re.sub(pattern, lambda m: chars_to_mapping[m.group()], str(text))
ise-uiuc/Magicoder-OSS-Instruct-75K
<channel> <title>{{ $feed_name}}</title> <link>{{ $feed_url }} </link> <description>{{ $page_description }} </description> <language>{{ $page_language }}</language> <copyright>Copyright {{ gmdate("Y", time()) }} </copyright> <generator>FeedCreator 1.7.3</generator> ...
ise-uiuc/Magicoder-OSS-Instruct-75K
looper.add(node) restartedNodes.append(node) looper.run(checkNodesConnected(restartedNodes)) waitNodeDataEquality(looper, node, *restartedNodes[:-1]) sdk_pool_refresh(looper, sdk_pool_handle) sdk_ensure_pool_functional(looper, restartedNodes, sdk_wallet_client, sdk_pool_handle)
ise-uiuc/Magicoder-OSS-Instruct-75K
session.expunge(conn) return connection_array
ise-uiuc/Magicoder-OSS-Instruct-75K
""" return in_path('golint') or go_bin_path('golint') def match_file(self, filename): base = os.path.basename(filename) name, ext = os.path.splitext(base) return ext == '.go' def process_files(self, files): """ Run code checks with golint. Only a...
ise-uiuc/Magicoder-OSS-Instruct-75K
uid = Column(Integer) text = Column(String) type = Column(Integer) interface = Column(String) datetime = Column(DateTime) state = Column(String) ext = Column(String)
ise-uiuc/Magicoder-OSS-Instruct-75K
], // ... 'clientEvents' => [
ise-uiuc/Magicoder-OSS-Instruct-75K
# one of these edges should point back to where we came from if edges.count(last_pos[i]) != 1: print("Problem: no edge from %i to %i" % (pos[i], last_pos[i]))
ise-uiuc/Magicoder-OSS-Instruct-75K
namespace Parmalen.Contracts.Intent {
ise-uiuc/Magicoder-OSS-Instruct-75K
self.assertEqual(skeys, sorted([x for x in self.st])) self.assertEqual(skeys, sorted([*self.st])) self.assertEqual([], sorted(LinearProbingHashST())) def test_keys(self): skeys = ['b', 'c', 'm', 's', 't', 'y'] self.assertEqual(skeys, sorted(self.st.k...
ise-uiuc/Magicoder-OSS-Instruct-75K
#[inline(always)] pub fn is_not_generated(&self) -> bool { *self == EVENTS_EP0SETUP_A::NOTGENERATED } #[doc = "Checks if the value of the field is `GENERATED`"] #[inline(always)] pub fn is_generated(&self) -> bool { *self == EVENTS_EP0SETUP_A::GENERATED } } #[doc = "Write pro...
ise-uiuc/Magicoder-OSS-Instruct-75K
Filing.FILINGS['registration']['name'] ] try: filing_account_id = json_input['filing']['header']['accountId'] filing_type = json_input['filing']['header']['name'] if filing_type not in valid_filing_types: raise TypeError except (TypeError, KeyError): retu...
ise-uiuc/Magicoder-OSS-Instruct-75K
print(my_count([1, 2, 3, 4, 3, 2, 1], 3)) print(my_count([1, 2, 3], 4)) print(my_count((2, 3, 5), 3))
ise-uiuc/Magicoder-OSS-Instruct-75K
#include <cocos/platform/desktop/CCGLViewImpl-desktop.h>
ise-uiuc/Magicoder-OSS-Instruct-75K
Session::flash('warn','Maaf Lagi Dipinjem Semua :( '); return redirect('/home/customer')->with('warn','Maaf Lagi Dipinjem Semua :( '); } } public function pesan(Request $req,$id){ $durasi = $req->durasi; $harga = $req->harga; $harga_total = $harg...
ise-uiuc/Magicoder-OSS-Instruct-75K
V = []
ise-uiuc/Magicoder-OSS-Instruct-75K
it('should append the path under the primary route to the client URL', () => { const clientInfo = hostRouter.getClientTarget('route/one/foo/bar'); if (!clientInfo) { fail(); return; } expect(clientInfo.url).toBe('http://example.com/#/test/one/foo/bar'); expect(clientInf...
ise-uiuc/Magicoder-OSS-Instruct-75K
sys.exit(1) self.dbCursor = self.dbConn.cursor() if (not self.dbCursor): logger.critical("Could not get databse cursor,Exiting...") print(("Could not get databse cursor,Exiting...")) sys.exit(1) logger.info("Databse Initilized.") self.tableName = ""
ise-uiuc/Magicoder-OSS-Instruct-75K
argument_list|( literal|"indexId should be set"
ise-uiuc/Magicoder-OSS-Instruct-75K
def sigmoidGradient(z): """computes the gradient of the sigmoid function evaluated at z. This should work regardless if z is a matrix or a vector. In particular, if z is a vector or matrix, you should return the gradient for each element."""
ise-uiuc/Magicoder-OSS-Instruct-75K
snippets = [] clip = AudioFileClip(FNAME) if IS_AUDIO_FILE else VideoFileClip(FNAME)
ise-uiuc/Magicoder-OSS-Instruct-75K
listaDeLetras.append(i)
ise-uiuc/Magicoder-OSS-Instruct-75K
XCTAssertNotNil(sut.errorMessage, "Loading error view should be shown after an user initiated feed loading completes with an error") sut.simulateErrorViewTapAction() XCTAssertNil(sut.errorMessage, "Loading error view should be hidden when the user taps the error view after an initiated feed loading completed with...
ise-uiuc/Magicoder-OSS-Instruct-75K
struct BlockBackgroundColorAttribute { var color: DownColor var inset: CGFloat
ise-uiuc/Magicoder-OSS-Instruct-75K
return l_runId; } return -1; } template <typename MAP_TYPE > size_t SerializableMapBT<MAP_TYPE>::getSizeOfRunTable() const { std::string l_sqlQuerry = "SELECT * FROM runDataFunction();"; pqxx::result l_runDbResults = m_dbHandlerInstance.querry(l_sqlQuerry); return l_runDbResults.size();
ise-uiuc/Magicoder-OSS-Instruct-75K
# save timeline and its column names something for merge timelines self.timeline_columns[self.case_name] = column_names def open_directory_dialog(self): directory = QFileDialog.getExistingDirectory(self, "Select Directory")
ise-uiuc/Magicoder-OSS-Instruct-75K
# limitations under the License. set -e function test_launch_ps(){
ise-uiuc/Magicoder-OSS-Instruct-75K
subHeadings = models.ManyToManyField('self', blank=True) log = models.ManyToManyField('Change')
ise-uiuc/Magicoder-OSS-Instruct-75K
body text not null, date timestamp not null default current_timestamp ) ''')
ise-uiuc/Magicoder-OSS-Instruct-75K
keyname = sys.argv[2]
ise-uiuc/Magicoder-OSS-Instruct-75K
is_stopped } #[cfg(any(target_os = "android", target_os = "linux"))] WaitStatus::PtraceEvent(_, _, _) => true, #[cfg(any(target_os = "android", target_os = "linux"))] WaitStatus::PtraceSyscall(_) => true, WaitStatus::Continued(_) =>...
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>ITBear/GpNetwork<gh_stars>0 #include "GpHttpServerNodeSocketTaskFactory.hpp" #include "GpHttpServerNodeSocketTask.hpp" namespace GPlatform {
ise-uiuc/Magicoder-OSS-Instruct-75K
headerTable={} for items in dataSet:
ise-uiuc/Magicoder-OSS-Instruct-75K
self } pub(crate) fn decorate(&mut self, prefix: &str, suffix: &str) { let decor = self.decor_mut(); *decor = Decor::new(prefix, suffix); }
ise-uiuc/Magicoder-OSS-Instruct-75K
mesh.CreateDoubleSidedAttr(False, True) self.assertFalse(mesh.GetDoubleSidedAttr().HasAuthoredValue()) mesh.CreateDoubleSidedAttr(False, False) self.assertTrue(mesh.GetDoubleSidedAttr().HasAuthoredValue())
ise-uiuc/Magicoder-OSS-Instruct-75K
#[derive(Builder)] #[builder(build_fn(name = "data_build"))] pub struct UserData { #[builder(setter(into))]
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>TestZClient/PresentDialog.Designer.cs namespace TestZClient { partial class PresentDialog { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resource...
ise-uiuc/Magicoder-OSS-Instruct-75K
use crate::flows::core::Variant; use crate::structures::config::Config; use anyhow::Error; pub fn main(query: String, config: Config) -> Result<(), Error> { flows::core::main(Variant::Query(query), config, true) }
ise-uiuc/Magicoder-OSS-Instruct-75K
///
ise-uiuc/Magicoder-OSS-Instruct-75K
fd.close() def main(): create_dir(dir_name) for i in range(1, limit + 1): for path in get_links(i):
ise-uiuc/Magicoder-OSS-Instruct-75K
return phone_number
ise-uiuc/Magicoder-OSS-Instruct-75K
def setup(i): s='' cus=i['customize'] env=i['env']
ise-uiuc/Magicoder-OSS-Instruct-75K
ans = (ans << 1) + (n & 1) n >>= 1 return ans
ise-uiuc/Magicoder-OSS-Instruct-75K
vr::VRProperties()->SetInt32Property(propertyContainer, vr::Prop_ControllerHandSelectionPriority_Int32, -1); vr::VRProperties()->SetStringProperty(propertyContainer, vr::Prop_NamedIconPathDeviceOff_String, "{htc}/icons/tracker_status_off.png"); vr::VRProperties()->SetStringProperty(propertyContainer, vr::Pr...
ise-uiuc/Magicoder-OSS-Instruct-75K
pos = nltk.pos_tag(words) for w in pos: if w[1][0] in allowed_word_types: all_words.append( w[0].lower() ) for r in posMovie: documents.append( (r, 0) ) words = word_tokenize(r) pos = nltk.pos_tag(words)
ise-uiuc/Magicoder-OSS-Instruct-75K
#[derive(Debug)] enum UsState { Alabama, }
ise-uiuc/Magicoder-OSS-Instruct-75K
} if let Some(var_21) = &input.database_preferences { let mut object_22 = object.key("databasePreferences").start_object(); crate::json_ser::serialize_structure_crate_model_database_preferences( &mut object_22, var_21, )?; object_22.finish(); } if ...
ise-uiuc/Magicoder-OSS-Instruct-75K
class AuthorDetailView(generic.DetailView): model = Author
ise-uiuc/Magicoder-OSS-Instruct-75K
res = [] for token in nlp(text): # Remove mentions and numeric words, added after checking vectorizer terms/vocabs if token.text not in STOPWORDS and not token.text.startswith("\u2066@") and\ not token.text.startswith("@") and\
ise-uiuc/Magicoder-OSS-Instruct-75K
> app can add a redirect_state argument to the redirect_uri to mimic > it. Set this value to False if the provider likes to > verify the redirect_uri value and this > parameter invalidates that check. So, when enabling it, we should double check with Trinity """ ...
ise-uiuc/Magicoder-OSS-Instruct-75K
from allenact.base_abstractions.sensor import ExpertActionSensor from allenact.utils.experiment_utils import LinearDecay, PipelineStage from baseline_configs.one_phase.one_phase_rgb_il_base import ( il_training_params, StepwiseLinearDecay, ) from baseline_configs.rearrange_base import RearrangeBaseExperimentCon...
ise-uiuc/Magicoder-OSS-Instruct-75K
build_images() { export DOCKER_TAG=$RANDOM export DOCKER_REPOSITORY="local" local make_targets=("build-test-image-local-hub" "build-app-image-hub-js" "build-app-image-secret-storage-backend") for make_target in "${make_targets[@]}" do
ise-uiuc/Magicoder-OSS-Instruct-75K
/* |-------------------------------------------------------------------------- |その他控除用年間の個別経費作成 |-------------------------------------------------------------------------- */ public function oters($year, $strList){ $other1 = $strList[0]; $other1_remark = $strList[1]; $other2 = $strList[2]; $othe...
ise-uiuc/Magicoder-OSS-Instruct-75K
private var rewardModel :BURewardedVideoModel? private var bURewardedVideoAd :BUNativeExpressRewardedVideoAd? public func loadRewardedVideoAd(params : NSDictionary) { LogUtil.logInstance.printLog(message: params) let mCodeId = params.value(forKey: "iosCodeId") as? String le...
ise-uiuc/Magicoder-OSS-Instruct-75K
pageNo?: number; pageSize?: number; };
ise-uiuc/Magicoder-OSS-Instruct-75K
# All rights reserved. #
ise-uiuc/Magicoder-OSS-Instruct-75K
print s.convert("PAYPALISHIRING", 1), "PAHNAPLSIIGYIR" print s.convert("PA", 3), "PA" print s.convert("PA", 1), "pA" print s.convert("", 3), ""
ise-uiuc/Magicoder-OSS-Instruct-75K
result = config.parse( value=",".join(str(v) for v in value), type_=set, subtype=bool ) assert result == value @hypothesis.given(value=st.lists(elements=st.booleans()).map(frozenset)) def test_it_should_be_able_to_parse_boolean_frozenset( value: typing.FrozenSet[bool] ) -> None:
ise-uiuc/Magicoder-OSS-Instruct-75K
name='facility', field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='facility.Facility'), ), migrations.AddField(
ise-uiuc/Magicoder-OSS-Instruct-75K
/** rxjs Imports */
ise-uiuc/Magicoder-OSS-Instruct-75K
self.assertRaises(frappe.ValidationError, template.insert)
ise-uiuc/Magicoder-OSS-Instruct-75K
EnteredDiscRateOutlet.text = EnteredDiscRateOutlet.text!+discRate PriceAfterDiscOutlet.text = PriceAfterDiscOutlet.text!+priceAfterDisc // Do any additional setup after loading the view. } /* // MARK: - Navigation
ise-uiuc/Magicoder-OSS-Instruct-75K
df.y2 -= float(args.buffer[1]) df.y1 *= corr[args.titration_type] df.y2 *= corr[args.titration_type] if not os.path.isdir(args.out): os.makedirs(args.out) df.to_csv(os.path.join(args.out, args.ffile), index=False) main()
ise-uiuc/Magicoder-OSS-Instruct-75K
#z_θ=β*z_θ+grad_log_policy(env,memory_state,observation,action,θ)
ise-uiuc/Magicoder-OSS-Instruct-75K
return [
ise-uiuc/Magicoder-OSS-Instruct-75K
self.connections = {"m1": FakeClient(), "m2": FakeClient()} class ClientTest(unittest.TestCase): def setUp(self): self.client = MockSSHClient() def test_runs_all(self): assert len(self.client.run('stuff')) == 2
ise-uiuc/Magicoder-OSS-Instruct-75K
class_location = models.CharField( "text of location", max_length=300, blank=True, default="S. Dakota Street and 16th Avenue South", help_text='(Optional) Describe in text the location of the event') class_location_link = models.URLField( "Map link to class", blank=True, default=...
ise-uiuc/Magicoder-OSS-Instruct-75K
def menu_func_export(self, context):
ise-uiuc/Magicoder-OSS-Instruct-75K
"\"endpoint\": \"http://localhost:8888\", " + "\"trackingEnabled\": \"true\"" + "}"; // when Subscription subscription = mapper.readValue(json, Subscription.class); // then assertThat(subscription.isTrackingEnabled()).isTrue(); as...
ise-uiuc/Magicoder-OSS-Instruct-75K
@Override public void addCorsMappings(CorsRegistry registry) { registry.addMapping("/**") .allowedMethods("*"); }
ise-uiuc/Magicoder-OSS-Instruct-75K
//////////////////////////////////////////////////////////////////////////////// class Solution { public: vector<int> sumZero(int n) { vector<int> ans; if (n % 2 != 0) { ans.push_back(0); --n; } while (n) {
ise-uiuc/Magicoder-OSS-Instruct-75K
@NoArgsConstructor @ApiModel("问题Webhook报文") public class JiraWebhookDTO { @ApiModelProperty("创建时间") private Long timestamp;
ise-uiuc/Magicoder-OSS-Instruct-75K
Route::group(['prefix' => '/v1', 'namespace' => 'Api\V1', 'as' => 'api.'], function () { }); Route::get('/user', function (Request $request) { return $request->user();
ise-uiuc/Magicoder-OSS-Instruct-75K
return id; } public void setID(GameDebrisID id) { this.id = id; } }
ise-uiuc/Magicoder-OSS-Instruct-75K
print("Episode: {}, total numsteps: {}, episode steps: {}, reward: {}".format(i_episode, total_numsteps, episode_steps, round(episode_reward, 2))) if i_episode % args.eval == 0 and args.eval != 0: episodes = 21 simulator = generate_agent_simulator(agent, args.horizon) avg_reward, _, cra...
ise-uiuc/Magicoder-OSS-Instruct-75K
} if (Common::StringUtility::AreEqualCaseInsensitive(testKeyword, L"Test1")) { return TraceKeywords::Test1; }
ise-uiuc/Magicoder-OSS-Instruct-75K
all_groups_str += "%s]\n" % val else: all_groups_str += "%s],\n" % val
ise-uiuc/Magicoder-OSS-Instruct-75K
// // Copyright © 2020 E-SOFT. All rights reserved. //
ise-uiuc/Magicoder-OSS-Instruct-75K
@app.route("/predict", methods=['POST']) def predict(): url = request.json['url'] maxPages = request.json['maxPages'] scrapper = amazonScrapper(url=url, maxpages=maxPages, driver_path=DRIVER_PATH)
ise-uiuc/Magicoder-OSS-Instruct-75K
@Test
ise-uiuc/Magicoder-OSS-Instruct-75K
output_pickle_file_path = os.path.join(output_folder, output_pickle_file_name)
ise-uiuc/Magicoder-OSS-Instruct-75K
if (!(limitOrder instanceof SellLimitOrder)) throw new IllegalArgumentException("Can compare only with SellLimitOrder"); return Long.compare(price.value, limitOrder.price.value); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
See Also -------- top.tag : Contains explanation of the tag type. """ # Elementwise operator
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,
ise-uiuc/Magicoder-OSS-Instruct-75K
$service->name = $request->get('name'); $service->price = $request->get('price'); $service->image = $image_name;
ise-uiuc/Magicoder-OSS-Instruct-75K
label = label.to(device) else: # -use predicted label to calculate loglikelihood: label = output.max(1)[1] # calculate negative log-likelihood negloglikelihood = torch.nn.functional.nll_loss(torch.nn.functional.log_softmax(output, dim=1), label) # Cal...
ise-uiuc/Magicoder-OSS-Instruct-75K
public function getRegisterProcedure() : ?string { return $this->registerProcedure; } public function setProtocol(?string $protocol) : void { $this->protocol = $protocol; } public function getProtocol() : ?string {
ise-uiuc/Magicoder-OSS-Instruct-75K