seed
stringlengths
1
14k
source
stringclasses
2 values
verbose_name_plural = 'Text Answers' def __str__(self): """Unicode representation of TextAnswer.""" return f'{self.answer}'
ise-uiuc/Magicoder-OSS-Instruct-75K
# make sure to skip empty lines if line: # make sure to skip any line that starts with # if not line.startswith("#"): data = re.split(_spliter, line) # Get the access_key and secret_key value, skip all other ...
ise-uiuc/Magicoder-OSS-Instruct-75K
bash -c ./build_win.sh
ise-uiuc/Magicoder-OSS-Instruct-75K
description="Search WHOIS [https://api.passivetotal.org/api/docs/#api-WHOIS-GetV2WhoisSearchQueryField]", input=SearchWhoisInput(), output=SearchWhoisOutput(), ) def run(self, params={}): field = params.get("field") query = params["query"] self.lo...
ise-uiuc/Magicoder-OSS-Instruct-75K
os << Bitcoin::le(v.nSequence); return os; } std::istream& operator>>(std::istream& is, Bitcoin::TxIn& v) { auto scriptSigLen = std::size_t(); is >> v.prevTxid
ise-uiuc/Magicoder-OSS-Instruct-75K
} // Parse the release candidate number. Note: if the String passed in isn't an integer, ignore // it and don't fail since we can append something else to the filenames. if let rcFlag = defaults.string(forKey: Key.rc.rawValue), !rcFlag.isEmpty, let parsedFlag = Int(rcFlag) { print("Pa...
ise-uiuc/Magicoder-OSS-Instruct-75K
// For each incoming TCP connection, spawn a task and call `accept`. let mut incoming = listener.incoming(); while let Some(stream) = incoming.next().await { let stream = stream?; spawn_and_log_error(accept(stream, player_html.clone())); } Ok(()) }
ise-uiuc/Magicoder-OSS-Instruct-75K
rotation.x = std::clamp(rotation.x, Maths::Radians(90.0f), Maths::Radians(270.0f)); } viewMatrix = Matrix4::ViewMatrix(position, rotation);
ise-uiuc/Magicoder-OSS-Instruct-75K
var automationAccountName : String { get set } var jobName : String { get set } var apiVersion : String { get set } var clientRequestId : String? { get set } func execute(client: RuntimeClient,
ise-uiuc/Magicoder-OSS-Instruct-75K
import { Meta, moduleMetadata, Story } from '@storybook/angular'; import { TaskComponent } from './task.component'; import { Task } from '../../models/task.model'; import { INITIAL_VIEWPORTS, MINIMAL_VIEWPORTS } from '@storybook/addon-viewport'; // export default { // title: 'Task', // excludeStories: /.*Data$/, //...
ise-uiuc/Magicoder-OSS-Instruct-75K
* * @author <a href="https://github.com/jchambers"><NAME></a> */
ise-uiuc/Magicoder-OSS-Instruct-75K
self.rtc=repl_rtc # int count_of_replaced_substring() def replace_count(self): #raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO) # *** Implement me # Must return: result return self.rtc.repl_count if __name__ == "__main__":
ise-uiuc/Magicoder-OSS-Instruct-75K
import jinja2 import langdetect
ise-uiuc/Magicoder-OSS-Instruct-75K
} func requiredAttributedHeight(numberOfLines: Int = 0) -> CGFloat { let label: UILabel = UILabel(frame: CGRect(x: 0, y: 0, width: self.frame.width, height: CGFloat.greatestFiniteMagnitude)) label.numberOfLines = numberOfLines label.lineBreakMode = NSLineBreakMode.byWordWrapping ...
ise-uiuc/Magicoder-OSS-Instruct-75K
class CookiecutterOptions(Schema): """ Cookiecutter options """ no_input = fields.Boolean(allow_none=True, default=None) replay = fields.Boolean(allow_none=True, default=False) overwrite_if_exists = fields.Boolean(allow_none=True, default=True) config_file = fields.String(allow_none=True, ...
ise-uiuc/Magicoder-OSS-Instruct-75K
<?php namespace App\Play; class SenderFake extends Sender { public $name = 'sender_fake'; }
ise-uiuc/Magicoder-OSS-Instruct-75K
img += torch.tensor([0.485, 0.456, 0.406]).view(-1, 1, 1) img = to_pil_image(img) target = targets[idx] if isinstance(ignore_index, int): target[target == ignore_index] = 0 axes[0][idx].imshow(img) axes[0][idx].axis("off") axes[0][idx].set_title("Inpu...
ise-uiuc/Magicoder-OSS-Instruct-75K
print "barcode", "barcodeq", "sample" fq_handle = stream_fastq(open(args.fastq)) for rq in tz.partition(2, fq_handle): read = rq[0] quals = rq[1] match = parser_re.match(read) if match: barcode = match.group('barcode') barcodeq = np.mean(quals[match.start('barc...
ise-uiuc/Magicoder-OSS-Instruct-75K
[Required, MaxLength(255), MinLength(1)] public string State { get; set; }
ise-uiuc/Magicoder-OSS-Instruct-75K
| basis. DO NOT DISTRIBUTE and do not use beyond the contract terms. | \-------------------------------------------------------------------- */ namespace AllenCopeland.Abstraction.Slf.Ast.Expressions { /// <summary> /// Defines properties and methods for working with a type of expression
ise-uiuc/Magicoder-OSS-Instruct-75K
shared_key_enc_dec_assert_eq(&msg, &shared_key).unwrap(); }
ise-uiuc/Magicoder-OSS-Instruct-75K
Socket predictorSocket = new Socket(PREDICTOR_HOST, PREDICTOR_PORT); logger.info("Connected to the predictor"); PrintWriter output = new PrintWriter(predictorSocket.getOutputStream(), false);
ise-uiuc/Magicoder-OSS-Instruct-75K
fname=[[] for _ in path] for i in range(ncls):
ise-uiuc/Magicoder-OSS-Instruct-75K
# Get the kernel differentials dlon, dlat = equirectangular_kernel(shape, kernel_size, dilation)
ise-uiuc/Magicoder-OSS-Instruct-75K
ic.add('roi-weightedave', 'active') ic.start()
ise-uiuc/Magicoder-OSS-Instruct-75K
namespace App\Http\Controllers; use App\Models\User; use Illuminate\Http\Request;
ise-uiuc/Magicoder-OSS-Instruct-75K
tasks.push(this.processSpecification(specification)); }); await Promise.all(tasks); this.unhandledSpecifications.forEach(specification => { helper.appendToFile(`${specification}\n`, `${configuration.storage}/.error.txt`); });
ise-uiuc/Magicoder-OSS-Instruct-75K
# e.g. [['str1', 'str2'], ['str3', 'str4']] # No sub-list may be empty. Duplication of sub-lists and duplication of # string elements are not permitted. msg = _('Invalid data type, must be a list of lists comprised of strings. ' 'Sub-lists may not be duplicated. Strings in sub-lists may not ...
ise-uiuc/Magicoder-OSS-Instruct-75K
(1, 2, 3, '2010-06-27 23:19:41', 1, 'test', 'test msg'), (4, 2, 1, '2010-06-04 16:26:29', 1, 'Saturday?', 'Are you still up for going hill walking with Mr. Glen on Saturday; let me know if you do need to borrow my t-rex leash, as I have a spare one.\r\n<br />\r\nCheers,<br />\r\nRick'), (3, 2, 1, '2010-06-01 16:25:57...
ise-uiuc/Magicoder-OSS-Instruct-75K
xx.get("http://www.51testing.com")
ise-uiuc/Magicoder-OSS-Instruct-75K
$this->$key = $value; } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
# main if __name__ == '__main__': pass
ise-uiuc/Magicoder-OSS-Instruct-75K
<!-- Page Heading --> <div class="clearfix"> <h1 class="h3 mb-4 float-left text-gray-800">Edit Jenis Kegiatan</h1> <a href="index.php?halaman=jenis_kegiatan" class="float-right btn btn-primary btn-sm"><i class="fa fa-arrow-left"></i> Kembali</a> </div>
ise-uiuc/Magicoder-OSS-Instruct-75K
@Override public String createpayrecordapp(String payType, String payID, String payNumber, String payMoney, String payChannel, String payTime, String payOrder) { String url = configure.getInnerApiUrl() + "/api/pay/createpayrecordapp.do?payType=" + payType + "&payID=" + payID.replaceAll("\\{", "%7B").replace...
ise-uiuc/Magicoder-OSS-Instruct-75K
<div class="alert alert-success" role="alert"> {{ session('status') }} </div> @endif <div class="container py-5"> <div class="row">
ise-uiuc/Magicoder-OSS-Instruct-75K
from . import length, middleware
ise-uiuc/Magicoder-OSS-Instruct-75K
tick_labels.number_format = number_format2 tick_labels.font.size = font_default_size def save(self,filename=None): assert (filename is not None) or (self.title is not None) filename=self.title+time.strftime('_%Y%m%d%H%M.pptx', time.localtime()) if filename ...
ise-uiuc/Magicoder-OSS-Instruct-75K
UIView.animate(withDuration: animationDuration, delay: 0.0, usingSpringWithDamping: damping, initialSpringVelocity: velocity, options: .allowUserInteraction, animations: { self.bannerState = .showing }, completion: { finished in guard let duration = duration else { return...
ise-uiuc/Magicoder-OSS-Instruct-75K
'goji = goji.commands:cli', ) }, test_suite='tests', )
ise-uiuc/Magicoder-OSS-Instruct-75K
// process the voxel set voxelProcessing processedVoxel(voxelizedCloud.voxelSet); // 3D thinning voxel3DThinning voxelSkeleton(voxelizedCloud.voxelSet); // reconstruct the model from skeleton
ise-uiuc/Magicoder-OSS-Instruct-75K
fn point_eq_point(lhs: &Point, rhs: &Point) -> bool; fn point_normalize(point: &mut Point); fn point_eq_norm_point(lhs: &Point, rhs: &Point) -> bool; fn point_eq_xonly(lhs: &Point, rhs: &XOnly) -> bool; fn point_add_point(lhs: &Point, rhs: &Point) -> Point; fn point_add_norm_point(lhs: &Point, r...
ise-uiuc/Magicoder-OSS-Instruct-75K
def index(self,i): keys=list(self.keys()) try: return keys[i],self[keys[i]] except IndexError: raise IndexError("Out of bounds access in IndexedDict()")
ise-uiuc/Magicoder-OSS-Instruct-75K
public class OIDCCRegisterClientWithIdTokenSignedResponseAlgNone extends AbstractConditionSequence { @Override public void evaluate() { callAndStopOnFailure(SetClientIdTokenSignedResponseAlgToNone.class); callAndStopOnFailure(SetClientGrantTypesToAuthorizationCodeOnly.class); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
fi docker build -f Dockerfile -t $tag .
ise-uiuc/Magicoder-OSS-Instruct-75K
ENGLISH_BUTTON = '/html/body/div/div/div/div[2]/div/div/a/div[2]/div' LOGIN_PAGE_BUTTON = '//*[@id="app"]/div/div/div/div[1]/div/header/div/div/div[3]/div/div/nav/ul/li[6]/button' EMAIL_INPUT = '/html/body/div/div/div/div[3]/div/div/div/form/div[1]/div/div[1]/div/input' PASSWORD_INPUT = '/html/body/div/div/div/div[3]/d...
ise-uiuc/Magicoder-OSS-Instruct-75K
} void ModuleEditor::ShowFbxList(const uint& i) { for (uint j = 0; j < App->resourceManager->fbxList.size(); j++) {
ise-uiuc/Magicoder-OSS-Instruct-75K
utype = NamedUser.type company = NamedUser.company location = NamedUser.location contributions = NamedUser.contributions public_repos = NamedUser.public_repos followers = NamedUser.followers
ise-uiuc/Magicoder-OSS-Instruct-75K
new_actor_list = list(ner - set(new_actor_list)) return new_actor_list, doc_id #, role_dict
ise-uiuc/Magicoder-OSS-Instruct-75K
print('URL: ' + url) curdir=os.getcwd() os.chdir(tdir)
ise-uiuc/Magicoder-OSS-Instruct-75K
if '0' == s[i]: if s[i - 1] not in s2: return 0 # 尾数为0 则前面必须为1or2 dp[i] = dp[i - 2] # 前i-2的位置数量+1 elif '1' == s[i - 1] or ('2' == s[i - 1] and s[i] in s6): dp[i] = dp[i - 2] + dp[i - 1] else: dp[i] = dp[i - 1] # 上一个是0...
ise-uiuc/Magicoder-OSS-Instruct-75K
return serialized.getvalue()
ise-uiuc/Magicoder-OSS-Instruct-75K
npm install -g yarn https://github.com/jez/bars.git
ise-uiuc/Magicoder-OSS-Instruct-75K
if a+b+c == 1000: print(f"a = {a}, b = {b}, c = {c}") print(f"Product = {a*b*c}") break
ise-uiuc/Magicoder-OSS-Instruct-75K
with open('./res/Python课程大纲.pdf', 'rb') as f: reader = PdfFileReader(f, strict=False) print(reader.numPages) if reader.isEncrypted: reader.decrypt('') current_page = reader.getPage(5) print(current_page) print(current_page.extractText())
ise-uiuc/Magicoder-OSS-Instruct-75K
weather function : 좌표에 대한 날씨 정보를 제공해주는 함수 input arguments : openweathermap_api_key, latitude, longitude return current hourly weather in English """ url = f"https://api.openweathermap.org/data/2.5/onecall?lat={lat}&lon={lon}&lang=en&exclude=hourly&appid={WEATHER_KEY}" response = requests.ge...
ise-uiuc/Magicoder-OSS-Instruct-75K
from __future__ import annotations import re from logging import info
ise-uiuc/Magicoder-OSS-Instruct-75K
class any extends fromString implements author\role { function __construct(string $role) { parent::__construct(new role, $role); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
return lawoState } get deviceType () { return DeviceType.LAWO } get deviceName (): string { return 'Lawo ' + this.deviceId } get queue () { return this._doOnTime.getQueue() } getStatus (): DeviceStatus {
ise-uiuc/Magicoder-OSS-Instruct-75K
IMap<Integer, Integer> map2 = node2.getMap(mapName); for (int i = 200; i < 220; i++) { map2.put(i, i);
ise-uiuc/Magicoder-OSS-Instruct-75K
containing a value of this type. @attr name com.hyphenate.easeui:ease_press_color */
ise-uiuc/Magicoder-OSS-Instruct-75K
int from_bitField0_ = bitField0_; result.tokens_ = internalGetTokens(); result.tokens_.makeImmutable();
ise-uiuc/Magicoder-OSS-Instruct-75K
* <p>Returns the settings for sending SMS messages from your Amazon Web Services account.</p> * <p>These settings are set with the <code>SetSMSAttributes</code> action.</p> * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { SNSClient, GetSMSAttrib...
ise-uiuc/Magicoder-OSS-Instruct-75K
args: &[Option<Rational>], kind: &str, with_kind: &str, ) -> Result<(), Error> { if args.iter().all(|v| v.is_none()) { Ok(()) } else { Err(Error::error(format!( "{} parameters may not be passed along with {} parameters.", kind, with_kind
ise-uiuc/Magicoder-OSS-Instruct-75K
self.assertIn(site.name, mail.outbox[0].body)
ise-uiuc/Magicoder-OSS-Instruct-75K
index=self._index, doc_type=self._type, body=insert_data ) except Exception as e: raise e def es_update(self, id_info, update_info): """ es update data args: update_info, id_info return: ""...
ise-uiuc/Magicoder-OSS-Instruct-75K
from torch.autograd import Variable
ise-uiuc/Magicoder-OSS-Instruct-75K
result = raw_result.split(' - ')[0] if result == 'Detect language': result = detect_language(text, result_language=result_language) return str(result)
ise-uiuc/Magicoder-OSS-Instruct-75K
try: self._update_cluster() except KeyError: # A KeyError is raised if the cluster isn't found self._add_cluster() def _get_cluster(self): return self._table_conn.get(redshift_id=self.args.cluster_name)
ise-uiuc/Magicoder-OSS-Instruct-75K
ax.set_ylabel(key, fontsize=LAB, **csfont) ax.set_ylim(0, np.percentile(np.array(sto[key]), 99)) ax.tick_params(axis="both", which="major", labelsize=TMA) ax.tick_params(axis="both", which="minor", labelsize=TMI) # end for axs[0].set_title("@RooTroopNFT", fontsize=TIT, **csfont) axs[3].set_xlab...
ise-uiuc/Magicoder-OSS-Instruct-75K
Format, #[error("Git {0}")] Git(#[from] git2::Error), #[error("")] Editor, #[error("Fail to build plugin: {0}")] Build(String), #[error("Plugin is not installed")] PluginNotInstalled,
ise-uiuc/Magicoder-OSS-Instruct-75K
// This measures how long it takes to launch your application. measure(metrics: [XCTApplicationLaunchMetric()]) { XCUIApplication().launch() } } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
glyphhanger --whitelist=$1 --subset=public/fonts/geostarcat.ttf
ise-uiuc/Magicoder-OSS-Instruct-75K
# For each possible state you could end up in, that's a key. # Associated with that key is the probability of ending up in that state. def OutcomeDistribution(start_state): pass # We define our three abilities (four actions) here: ####################################################################...
ise-uiuc/Magicoder-OSS-Instruct-75K
synchronous, blocking the foreground thread and returning the remote exit code at remote exit. """ def __init__( self, workflow, dag, cores, submitcmd="qsub", cluster_config=None, jobname="snakejob.{rulename}.{jobid}.sh", printreason=False...
ise-uiuc/Magicoder-OSS-Instruct-75K
and param.transfer == ast.PARAM_TRANSFER_NONE): return "const gchar*" + suffix return param.type.ctype + suffix def _write_prelude(self, out, func): if self.function_decoration: out.write(""" %s""" % " ".join(self.function_decoration))
ise-uiuc/Magicoder-OSS-Instruct-75K
#define SA_LOG_CHAN_DEFINE(...) #endif /** * \def SA_LOG_CHAN_DEFINE(_chan) * * \brief Sapphire define LogChannel macro. * * Helper macro to define a new log channel. * Must be used at the top of a .cpp file. */
ise-uiuc/Magicoder-OSS-Instruct-75K
# for id class CustomModelAdminMixin(object): def __init__(self, model, admin_site): self.list_display = [field.name for field in model._meta.fields if field.name != "id"] super(CustomModelAdminMixin, self).__init__(model, admin_site) @admin.register( models.Ma...
ise-uiuc/Magicoder-OSS-Instruct-75K
def __init__(self): logging.basicConfig(level=logging.DEBUG, format='%(asctime)s %(levelname)s %(message)s', datefmt='%Y-%m-%d %H:%M:%S', filename= datetime.now().strftime("%Y%m%d%H%M%S") + '.log', filemode='a') def mccWriteLog(self, l...
ise-uiuc/Magicoder-OSS-Instruct-75K
for arg in args: if arg is not None: return arg return None
ise-uiuc/Magicoder-OSS-Instruct-75K
def __init__( self, url='http://localhost:4242', headers=None, app_name='anon-app', instance_id=None, refresh_interval=60, metrics_interval=60, disable_metrics=False, strategies=DEFAULT_STRATEGIES, ...
ise-uiuc/Magicoder-OSS-Instruct-75K
import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
ise-uiuc/Magicoder-OSS-Instruct-75K
# https://lcb.app.box.com/s/fnku9nr22dhx04f6o646xv6ad6fswfy9?page=1 # https://stackoverflow.com/questions/18171739/unicodedecodeerror-when-reading-csv-file-in-pandas-with-python # https://stackoverflow.com/questions/18039057/python-pandas-error-tokenizing-data #----------------------------------------------------------...
ise-uiuc/Magicoder-OSS-Instruct-75K
return W.get_subfeed_uri()
ise-uiuc/Magicoder-OSS-Instruct-75K
<link href="{{ asset('assets/site/owl-carousel/owl.transitions.css') }}" media="all" rel="stylesheet" type="text/css" /> <link rel="stylesheet" type="text/css" href="{{ asset('assets/site/assest/jquery-ui.min.css') }}" /> <link rel="stylesheet" type="text/css" href="{{ asset('assets/site/assest/style.css') ...
ise-uiuc/Magicoder-OSS-Instruct-75K
s = "123456789" self.assertEqual(number_of_digits(s), 9)
ise-uiuc/Magicoder-OSS-Instruct-75K
test_fingerprint = "FAC10F0C3D1D49F8F9A82CB553E79F7C92E1CF32" def test_register_new(client): rv = client.post("/register/", json={"fingerprint": test_fingerprint}) assert rv.status_code == 201 assert rv.get_json() == {"success": True, "error": None, "data": None}
ise-uiuc/Magicoder-OSS-Instruct-75K
</th> ))}
ise-uiuc/Magicoder-OSS-Instruct-75K
std::mutex *pStrMtx; std::string identifier;
ise-uiuc/Magicoder-OSS-Instruct-75K
_model = word2vec.Word2Vec(sentences, size=100, iter=10, min_count=2) _model.save('../reference/wc_model/output') if __name__ == '__main__': parse = argparse.ArgumentParser(description="choose the way to train word vectors") parse.add_argument("--model", required=True, type=str, help="[word2vec, f...
ise-uiuc/Magicoder-OSS-Instruct-75K
done uid=$uid_base for user in hdfs mapred hbase hive yarn oozie sentry impala spark hue sqoop2 solr sqoop httpfs llama zookeper flume sample admin; do isi auth users create $user --zone $zone --provider local --uid $uid --primary-group $user uid=$(($uid + 1))
ise-uiuc/Magicoder-OSS-Instruct-75K
addSlot(new Slot(inventoryplayer, k + i * 9 + 9, 8 + k * 18, 84 + i * 18)); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
guard let selectedModel = modelGroup.selectedPredictorDetails, let index = allModels.firstIndex(of: selectedModel), index != allModels.count - 1 else { // If there is not a selected model, or the model is the last // model, start at the beginining. Ideally, we would show the plain ...
ise-uiuc/Magicoder-OSS-Instruct-75K
#define ICON_FK_CHEVRON_RIGHT u8"\uf054"
ise-uiuc/Magicoder-OSS-Instruct-75K
import hypothesis import hypothesis.strategies import pytest import zbase32 @pytest.mark.parametrize( ["decoded", "encoded"], [ (b"asdasd", "cf3seamuco"), (b"\xF0\xBF\xC7", "6n9hq"), (b"\xD4\x7A\x04", "4t7ye"),
ise-uiuc/Magicoder-OSS-Instruct-75K
# c: 1 # c++: 2 # java: 3 # js: 4 # node js: 5 # python: 6 # C#: 7 # react: 8 # angular: 9
ise-uiuc/Magicoder-OSS-Instruct-75K
'@class' => 'Grav\\Common\\File\\CompiledMarkdownFile', 'filename' => '/Applications/MAMP/htdocs/spiro_d/user/pages/error/error.md',
ise-uiuc/Magicoder-OSS-Instruct-75K
sentence = re.sub("--", "-", sentence) sentence = re.sub("``", '"', sentence) sentence = re.sub("''", '"', sentence) return sentence def process_wiki_title(title, is_train=True, keep_underscore=False): if is_train:
ise-uiuc/Magicoder-OSS-Instruct-75K
const path = require('path'); import { PostcssTypescriptCss } from './namespace/PostcssTypescriptCss'; const build = (file: PostcssTypescriptCss.Options) => { const extension = path.extname(file.cssFileName); const filename = path.basename(file.cssFileName, extension); return ( `export const ${filename}Style = {
ise-uiuc/Magicoder-OSS-Instruct-75K
git clone git<EMAIL>.com:pip-services-integration/pip-clients-retries-node.git git clone git@github.com:pip-services-integration/pip-clients-mappings-node.git git clone git@github.com:pip-services-integration/pip-clients-changescopes-node.git git clone git@github.com:pip-services-integration/pip-clients-search-node.git...
ise-uiuc/Magicoder-OSS-Instruct-75K
cp -r usr/include $pkgdir/usr/ fi } backup() { return } license() { cd $pkgname-$pkgver cat COPYING }
ise-uiuc/Magicoder-OSS-Instruct-75K