seed
stringlengths
1
14k
source
stringclasses
2 values
params[self.FEED_ID] = feed_id
ise-uiuc/Magicoder-OSS-Instruct-75K
print('\033[33m Fim do programa! Volte sempre! \033[m')
ise-uiuc/Magicoder-OSS-Instruct-75K
comment: [Optional] A comment for this entry, as a string. raw_comment: [Optional] The entry comment, as a byte string, if for some reason it could not be interpreted as valid LATIN-1 characters. """ flags: GZEntryFlags compression_method: Union[GZCompressionMethod, int] co...
ise-uiuc/Magicoder-OSS-Instruct-75K
it('should return error ', async () => { mockChannel.queryByChaincode.resolves([errorResponse]); const result: {
ise-uiuc/Magicoder-OSS-Instruct-75K
use chrono::{ DateTime, Utc, }; use derive_into_owned::IntoOwned;
ise-uiuc/Magicoder-OSS-Instruct-75K
In order to get around this, this add-in registers a custom event, which gets fired by the injection script with the name of the script to run. The event handler runs on the main thread and runs the script similarly to how Fusion would normally run it. """ import adsk.core import adsk.fusion import importlib import i...
ise-uiuc/Magicoder-OSS-Instruct-75K
old_name='user', new_name='user_id', ), ]
ise-uiuc/Magicoder-OSS-Instruct-75K
novoEmprestimo(200, 5, 1);
ise-uiuc/Magicoder-OSS-Instruct-75K
# --------------------------------------------------------- doSpecRemovePackage(){
ise-uiuc/Magicoder-OSS-Instruct-75K
def test_cbc_encrypt(self): data = bytes_to_intlist(self.secret_msg) encrypted = intlist_to_bytes(aes_cbc_encrypt(data, self.key, self.iv)) self.assertEqual( encrypted, b"\x97\x92+\xe5\x0b\xc3\x18\x91ky9m&\xb3\xb5@\xe6'\xc2\x96.\xc8u\x88\xab9-[\x9e|\xf1\xcd") def...
ise-uiuc/Magicoder-OSS-Instruct-75K
"Programming Language :: Python :: 3.6", ], packages=["metabot2txt"], include_package_data=True, install_requires=["pillow", "pytesseract", "scikit-image"], entry_points={ "console_scripts": [ "metabot2txt=metabot2txt.__main__:main" ] } )
ise-uiuc/Magicoder-OSS-Instruct-75K
self.reaction: Vector3 = Vector3(0, 0, 0) if SupportType[name].value[0] > 1: self.reaction.x = 1 self.reaction.y = 1 else: self.reaction.x = pcos(angle) self.reaction.y = psin(angle) if SupportType[name].value[1] == 1:
ise-uiuc/Magicoder-OSS-Instruct-75K
async fn bar<'a> (_: &(), _: Box<dyn Send>) { /* … */ } #[fix_hidden_lifetime_bug]
ise-uiuc/Magicoder-OSS-Instruct-75K
ecolor("This is bold blue text", "bold_blue") slow_print("This is slow_print\n", 0.025) slow_color("This is slow_print but colorful\n", "blue", 0.025) slow_color("This is slow_print but colorful and bold\n", "bold_blue", 0.025)
ise-uiuc/Magicoder-OSS-Instruct-75K
this.setSound("dayyyn"); //aClavierShouldMakeDayyyn() this.setSoundVolume(1); //aClavierShouldNotBeMute() this.setColor("ivory"); //aClavierShouldBeIvory() } }
ise-uiuc/Magicoder-OSS-Instruct-75K
for p in pagedata:
ise-uiuc/Magicoder-OSS-Instruct-75K
</tr> ); })} </tbody> </table> </TableCellContainer> ); }
ise-uiuc/Magicoder-OSS-Instruct-75K
@endif <tr> <td colspan="{{ $option->is_use_tax ? 8 : 7 }}" class="total-title"><strong>Grand Total</strong></td> <td class="currency total">{{ $purchaseOrder->currency->symbol}}</td> <td class="price total">{{ number_format($purchaseOrder->grand_total, 2) }}</td>...
ise-uiuc/Magicoder-OSS-Instruct-75K
import Foundation import VoodooLabChatto open class TextMessagePresenterBuilder<ViewModelBuilderT, InteractionHandlerT>: ChatItemPresenterBuilderProtocol where ViewModelBuilderT: ViewModelBuilderProtocol, ViewModelBuilderT.ViewModelT: TextMessageViewModelProtocol, InteractionHandlerT: BaseMessageInteracti...
ise-uiuc/Magicoder-OSS-Instruct-75K
import string def main(): progname = os.path.basename(sys.argv[0]) usage = progname + """ [options] <pdbs> Given pdb files, report the built residues in csv files. """ args_def = {} parser = argparse.ArgumentParser() parser.add_argument("pdb", nargs='*', help="specify pdbs to be processed") args = parser.pa...
ise-uiuc/Magicoder-OSS-Instruct-75K
from django.contrib import admin from opensteer.teams.models import Team, Member
ise-uiuc/Magicoder-OSS-Instruct-75K
return r2_score(np.log(y), np.log(out[0]*np.exp(out[1]*x))) # calculate exponential fit for error rate extrapolation # report as annual decay (i.e. error rate decreases by fixed factor every year) errors = pd.read_csv('error_rates.csv') x = pd.to_datetime(errors.iloc[:, 0]).astype(int) y = errors.iloc[:, 1] out = ...
ise-uiuc/Magicoder-OSS-Instruct-75K
#ifndef PY4DGEO_TEST_DATA_DIRECTORY #error Test data directory needs to be set from CMake #endif #define DATAPATH(filename) PY4DGEO_TEST_DATA_DIRECTORY "/" #filename
ise-uiuc/Magicoder-OSS-Instruct-75K
A new incident was posted to the Repository by {{ $incident->user->name }} on {{ \Carbon\Carbon::parse($incident->created_at)->toFormattedDateString() }} at {{ \Carbon\Carbon::parse($incident->created_at)->format('g:i:s A') }}. @component('mail::button', ['url' => url('incidents', [$incident->id])]) View Incident @...
ise-uiuc/Magicoder-OSS-Instruct-75K
assert_eq!(balance, 0); let _ = context; Ok(()) }) })) .unwrap(); } #[test] fn fails_on_duplicate_http_incoming_auth() { let mut account = ACCOUNT_DETAILS_2.clone(); account.http_incoming_token = Some("incoming_auth_token".to_string()); let result = block...
ise-uiuc/Magicoder-OSS-Instruct-75K
tokenizer( line, ',', tokens ); std::list<const char *>::iterator I = tokens.begin(); int hostid = atoi( *I ); ++I;
ise-uiuc/Magicoder-OSS-Instruct-75K
new_shape = Shape(new_shape) if not isinstance(prev_shape, Shape): prev_shape = Shape(prev_shape) if not self.start_pose: raise ValueError('No inital pose parameters found.') # find pose parameters to align with new image points Tx, Ty, s, theta = sel...
ise-uiuc/Magicoder-OSS-Instruct-75K
*/ ?> <a class="logo" href="<?= $site->url() ?>"> <?= $site->title()->html() ?> </a> <nav class="menu"> <?php /* In the menu, we only fetch listed pages, i.e. the pages that have a prepended number in their foldername. We do not want to display lin...
ise-uiuc/Magicoder-OSS-Instruct-75K
def byte_to_int(b): return int.from_bytes(b, byteorder='big', signed=False)
ise-uiuc/Magicoder-OSS-Instruct-75K
) def sdr_v2(s_sep, s_ref, eps = 1e-8): # pred = [B, T], true = [B, T] s_sep = tf.expand_dims(s_sep, 1) s_ref = tf.expand_dims(s_ref, 1) s_sep_mean = tf.reduce_mean(s_sep, axis = -1, keep_dims = True) s_ref_mean = tf.reduce_mean(s_ref, axis = -1, keep_dims = True) s_sep -= s_sep_mean s...
ise-uiuc/Magicoder-OSS-Instruct-75K
//内容添加完成 return $res; } /** * 查询一条数据 * @return boolean fasle 失败 , int 成功 返回完整的数据 */ public function SelectLogData($type = 0) { $p = I('get.p'); $ip = trim(I('get.ip')); $name = trim(I('get.name')); $page_size = C('DEFAULT_PAGE_SIZ...
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>src/simple-type-comparison-options.ts export interface SimpleTypeComparisonOptions { strict?: boolean;
ise-uiuc/Magicoder-OSS-Instruct-75K
//页面跳转到error //filterContext.RequestContext.HttpContext.Response.Redirect("~/Account/Error"); //无权限 } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
num_lines += buf.count(b'\n') buf = read_f(buf_size) return num_lines
ise-uiuc/Magicoder-OSS-Instruct-75K
public double getX2() { return x2; } public double getY() { return y; } public Color getColor() { return color; } public String getTooltipHtml() { return tooltipHtml;
ise-uiuc/Magicoder-OSS-Instruct-75K
public class CellSolidFilterEvent : CellEvent { public CellSolidFilterEvent(string id, bool enable_logging = true)
ise-uiuc/Magicoder-OSS-Instruct-75K
self.assertEqual(len(graph.edges()), 2) self.assertTrue(graph.has_edge(depgraph.ROOT_NODE_LABEL, 'a.cpp')) self.assertTrue(graph.has_edge(depgraph.ROOT_NODE_LABEL, 'b.cpp')) def test_adds_dependency_nodes(self): depgraph = DependencyGraph()
ise-uiuc/Magicoder-OSS-Instruct-75K
// Usage: - import to desired components // - `Usedispatch()` from "react-redux" to dispatch :D export const login = ({ displayName,
ise-uiuc/Magicoder-OSS-Instruct-75K
'id_produk', 'month',
ise-uiuc/Magicoder-OSS-Instruct-75K
metadata_cols = ( "GROUPS TAG DATA_SCHEDA NOME ID_SCHEDA COMUNE PROV MONTH YEAR BREED" " SEX AGE SEXUAL STATUS BODYWEIGHT PULSE RATE RESPIRATORY RATE TEMP " "BLOOD PRESS MAX BLOOD PRESS MIN BLOOD PRESS MEAN BODY CONDITION SCORE " "HT H DEATH TIME OF DEATH PROFILO_PAZIENTE ANAMNESI_AMBIENTALE" " ...
ise-uiuc/Magicoder-OSS-Instruct-75K
target_classes = [893, 858, 350, 71, 948, 715, 558, 408, 349, 215] target_classes = target_classes attack = norm(sess, model, max_iterations=1000, confidence=args.conf) inputs, targets = generate_data(data, samples=len(target_classes), targeted=Tru...
ise-uiuc/Magicoder-OSS-Instruct-75K
/// Construct an empty formatter result pub fn new_empty() -> Self { Self { code: String::new(), range: None, sourcemap: Vec::new(), verbatim_source: Vec::new(), } }
ise-uiuc/Magicoder-OSS-Instruct-75K
--data @fashion-mnist/managed-endpoint/sample-request/sample_request.json) echo "OUTPUT: $OUTPUT"
ise-uiuc/Magicoder-OSS-Instruct-75K
------------------------------------------------------------ ''' sys.stderr.write(msg)
ise-uiuc/Magicoder-OSS-Instruct-75K
self.max_len = max_len self.compress = compress self.encoding = encoding self.expires = expires def url_to_path(self, url): """ Return file system path string for given URL """ components = urlsplit(url) # append index.html to empty paths path = compo...
ise-uiuc/Magicoder-OSS-Instruct-75K
install_banner() { name=$1 echo -e "\033[1;32m[+] Installing $name \033[1;37m" } install_banner "Initial config for Osmedeus" chmod +x osmedeus.py mkdir -p ~/.osmedeus 2>/dev/null python3 server/manage.py makemigrations python3 server/manage.py migrate python3 server/manage.py makemigrations api
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
command -v "$i" >/dev/null 2>&1 || { echo >&2 "Please install $i or set it in your path. Aborting."; exit 1; } done # Check if docker is running if ! docker info >/dev/null 2>&1; then echo "Docker does not seem to be running, run it first and retry. Aborting."; exit 1 fi if ! timeout -s SIGKILL 3s docker logi...
ise-uiuc/Magicoder-OSS-Instruct-75K
assert type(page.location_blocks.stream_data[0]['value']['location_page']) == int @pytest.mark.django_db def test_create_event_page_with_remote_location(): page = fixtures.at_remote_location() assert isinstance(page, EventPage) assert page.title == "Event at remote location" assert page.slug == "e...
ise-uiuc/Magicoder-OSS-Instruct-75K
find_element_by_class_name find_element_by_css_selector """ from selenium import webdriver from time import sleep from selenium.webdriver.chrome.options import Options import json from hexor import hexor
ise-uiuc/Magicoder-OSS-Instruct-75K
@ClassFactory.register(ClassType.TRANSFORM) class Numpy2Tensor(object): """Transform a numpy to tensor.""" def __call__(self, *args): """Call function of Numpy2Tensor.""" if len(args) == 1:
ise-uiuc/Magicoder-OSS-Instruct-75K
# TODO: Element JSON data.
ise-uiuc/Magicoder-OSS-Instruct-75K
echo Accounts command-side service = http://${IP}:8080/swagger-ui.html echo Money Transfers command-side service = http://${IP}:8082/swagger-ui.html echo Accounts query-side service = http://${IP}:8081/swagger-ui.html
ise-uiuc/Magicoder-OSS-Instruct-75K
import { faCommentAlt, faComments, faEnvelopeOpen, faInbox } from '@fortawesome/free-solid-svg-icons' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
ise-uiuc/Magicoder-OSS-Instruct-75K
ctx.setLineDash([]); ctx.beginPath(); ctx.moveTo(to.x, to.y); ctx.lineTo(to.x - headlen * Math.cos(angle - Math.PI / 6), to.y - headlen * Math.sin(angle - Math.PI / 6));
ise-uiuc/Magicoder-OSS-Instruct-75K
#!/usr/bin/python import elasticsearch from elasticsearch_dsl import Search, A, Q #import logging import sys import os #logging.basicConfig(level=logging.WARN) #es = elasticsearch.Elasticsearch(
ise-uiuc/Magicoder-OSS-Instruct-75K
{ $table = $command->getParameter('table'); $id = $command->getParameter('id'); try { $this->connection->delete($table, $id); } catch (ForeignKeyConstraintViolationException $e) { return CommandResult::error('constraint_violation'); } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
<?php return [ 'avatar' => 'Avatar', 'edit' => 'Edytuj mój profil', 'edit_user' => 'Edytuj użytkownika', 'password' => '<PASSWORD>', 'password_hint' => '<PASSWORD>', 'role' => 'Role', 'user_role' => 'Role użytkownika', ];
ise-uiuc/Magicoder-OSS-Instruct-75K
def getInstance(vType):
ise-uiuc/Magicoder-OSS-Instruct-75K
if DEBUG: DATABASES = { 'default': {
ise-uiuc/Magicoder-OSS-Instruct-75K
name = db.StringField(required=True, unique=True) casts = db.StringField(required=True) genres = db.StringField(required=True)
ise-uiuc/Magicoder-OSS-Instruct-75K
-- | 3 | 2020-02-24 | 3 | -- | 4 | 2020-03-01 | 20 | -- | 4 | 2020-03-04 | 30 | -- | 4 | 2020-03-04 | 60 | -- | 5 | 2020-02-25 | 50 | -- | 5 | 2020-02-27 | 50 | -- | 5 | 2020-03-01 | 50 ...
ise-uiuc/Magicoder-OSS-Instruct-75K
if self.as_dict: return dict(zip(self.data_stream.sources, data))
ise-uiuc/Magicoder-OSS-Instruct-75K
class TestNSExtensionRequestHandling(TestCase): @min_sdk_level("10.10") @onlyOn64Bit def testProtocols10_10(self): objc.protocolNamed("NSExtensionRequestHandling")
ise-uiuc/Magicoder-OSS-Instruct-75K
value: Option<wamp_async::WampKwArgs>, ) -> Result<T, wamp_async::WampError> { if let Some(value) = value { wamp_async::try_from_kwargs(value)
ise-uiuc/Magicoder-OSS-Instruct-75K
updateCell(cell: cell, indexPath: indexPath)
ise-uiuc/Magicoder-OSS-Instruct-75K
label = "seconddemo" # the description applies to all the commands under this controller description = "Rtseconddemo Plugin for Easyengine." # the combined values of 'stacked_on' and 'stacked_type' determines
ise-uiuc/Magicoder-OSS-Instruct-75K
dataset['images'] = imgs
ise-uiuc/Magicoder-OSS-Instruct-75K
@Component({ selector: "angular4-spinup", //changed the url name for this project templateUrl: "./templates/angular4-spinup-app.php" })
ise-uiuc/Magicoder-OSS-Instruct-75K
is_variant!(UVariant, Alias::<()>::UVariant); is_variant!(UVariant, AliasFixed::UVariant);
ise-uiuc/Magicoder-OSS-Instruct-75K
import os # Open the main data taxi_path = 's3://vaex/taxi/yellow_taxi_2012_zones.hdf5?anon=true' # override the path, e.g. $ export TAXI_PATH=/data/taxi/yellow_taxi_2012_zones.hdf5 taxi_path = os.environ.get('TAXI_PATH', taxi_path) df_original = vaex.open(taxi_path) # Make sure the data is cached locally used_columns...
ise-uiuc/Magicoder-OSS-Instruct-75K
from typing import Tuple from ..db import DB from ..models import create as create_models from ..trace_graph import TraceGraph from . import DictEntries, PipelineStep, Summary log: logging.Logger = logging.getLogger("sapp") class CreateDatabase(PipelineStep[DictEntries, DictEntries]): def __init__(self, databa...
ise-uiuc/Magicoder-OSS-Instruct-75K
def add(a, b): """ add two values """ return a + b def sub(a, b): """ subtract two values """
ise-uiuc/Magicoder-OSS-Instruct-75K
<b>Important!</b> This content is made available for experimental purposes, and is not meant to be shared. <a href="tos" target="_blank">Learn more</a> <button type="button" class="btn btn-primary btn-sm acceptcookies"> I agree </button> </div> <script src="https://cdn.jsdelivr.net/gh/Wrucz...
ise-uiuc/Magicoder-OSS-Instruct-75K
.map(|a| a % d) .collect::<Vec<_>>(); B.sort(); let mut acc = vec!(0; N + 1); let mut rev_acc = vec!(0; N + 2); for i in 0..N { acc[i + 1] = B[i] + acc[i];
ise-uiuc/Magicoder-OSS-Instruct-75K
# set2 = createSet() # printResult(set1 ^ set2) # print('\n')
ise-uiuc/Magicoder-OSS-Instruct-75K
"#af3a03", "#d65d0e", "#fe8019", # oranges ], [ "black", "red", "green", "yellow", "blue", "purple", "aqua", "lightgray", "gray", "lightred", "lightgreen", "lightyellow", "lightblue", "lightpurple", "lightaqua", "white", "brightwhite", "darkred", "darkgreen", "darkyellow", "darkblue", "darkpurple", "da...
ise-uiuc/Magicoder-OSS-Instruct-75K
} pub fn raise_exception(&self, message: &str) -> ERL_NIF_TERM {
ise-uiuc/Magicoder-OSS-Instruct-75K
<div class="btn-group"> <button type="button" class="btn btn-sm btn-outline-secondary">View</button> <button type="button" class="btn btn-sm btn-outline-secondary">Edit</button> </div> <small class="text-muted">9 min...
ise-uiuc/Magicoder-OSS-Instruct-75K
self.meta = meta } /** The type and ID of a related resource. Full documentation: <https://developer.apple.com/documentation/appstoreconnectapi/appeventlocalization/relationships/appeventscreenshots/data> */ public...
ise-uiuc/Magicoder-OSS-Instruct-75K
self.frame.Close() ################################################################################ ################################################################################ if __name__ == "__main__": app = wx.App()
ise-uiuc/Magicoder-OSS-Instruct-75K
autopep8 --in-place --aggressive --aggressive ./**/*.py autopep8 -riv --aggressive ./**/*.py isort ./**/*.py --diff
ise-uiuc/Magicoder-OSS-Instruct-75K
expect((await carve.balanceOf(bob.address)).valueOf()).to.eq(619); expect((await carve.balanceOf(carol.address)).valueOf()).to.eq(0); expect((await carve.balanceOf(masterCarver.address)).valueOf()).to.eq(815); expect((await carve.balanceOf(dev.address)).valueOf()).to.eq(200); // Alice wit...
ise-uiuc/Magicoder-OSS-Instruct-75K
def parse(v: str) -> List[Tuple[int, Optional[str]]]: parts: List[Tuple[int, Optional[str]]] = [] seps = 0 current = "" for c in v: if get_type(c) == other: if current: parts.append((seps, current))
ise-uiuc/Magicoder-OSS-Instruct-75K
id_tensor = torch.tensor([indexed_decoder_tokens]) #convert to tensor encoder = model.encoder decoder = model.decoder with torch.no_grad(): h_s = encoder(it_tensor)[0] #last_hidden_state mask_ids = [[1, 0]] #attention mask mask_tensor = torch.tensor(mask_ids) i = 1 #word_counter ref = tgt_tokenizer.eos...
ise-uiuc/Magicoder-OSS-Instruct-75K
all_anchors[(anchor.span.begin, anchor.span.end)].append(anchor) for span in all_anchors.keys(): l_a: List[WikiAnchor] = all_anchors[span] if len(l_a) > 1: if len(l_a) > 2: print(input_pack.pack_name, l_a[0].target_page_name, ...
ise-uiuc/Magicoder-OSS-Instruct-75K
use app\models\excelReader\excelDataConverter\ArrayConverter; use app\models\excelReader\excelDataSave\SaveToJsonFile; use app\models\excelReader\ExcelParser;
ise-uiuc/Magicoder-OSS-Instruct-75K
subscriber.onCompleted()
ise-uiuc/Magicoder-OSS-Instruct-75K
def add_init(self, test_spec): """ Add _client registration and provider info gathering if necessary :param test_spec: :return: """ _seq = test_spec["sequence"] _flow = test_spec["flow"] if "client_info" in self.test_features and \ "r...
ise-uiuc/Magicoder-OSS-Instruct-75K
use gatsby_transformer_markdown_wasm::{render, render_markdown}; #[wasm_bindgen_test] pub fn test_render_markdown() { let markdown = "__Strong__"; assert_eq!(render_markdown(markdown), "<p><strong>Strong</strong></p>\n"); } #[wasm_bindgen_test] pub fn test_render() { let markdown = "---\ntitle: Valid Yam...
ise-uiuc/Magicoder-OSS-Instruct-75K
* @var AppRegistrationService */ private $registrationService; public function __construct( AbstractAppLoader $appLoader, EntityRepositoryInterface $appRepository,
ise-uiuc/Magicoder-OSS-Instruct-75K
paragraph = paragraph.lower() # Store banned words in set for fast loopup. bans = set(banned) # Use dict for word count. word_count_d = defaultdict(int) words = paragraph.split() for w in words: if w not in bans:
ise-uiuc/Magicoder-OSS-Instruct-75K
):
ise-uiuc/Magicoder-OSS-Instruct-75K
1 1 1 0 18 2 23 3 0 3 19 24 25 1 1 2 1 21 23 3 5 21 19 20 24 25 0 0 6 0 5 5 21 19 20 24 25 1 1 1 1 1 0 21 a 19 b 20 c 24 d 25 e
ise-uiuc/Magicoder-OSS-Instruct-75K
gearoenix::gles2::shader::ShadowMapper::ShadowMapper(engine::Engine* const e, const core::sync::EndCaller<core::sync::EndCallerIgnore>& c) noexcept : Shader(e, c) { e->get_function_loader()->load([this] { const std::string vertex_shader_code = GX_GLES2_SHADER_SRC_DEFAULT_VERTEX_STARTING // ...
ise-uiuc/Magicoder-OSS-Instruct-75K
Cookie.shared.handleShake() } super.motionEnded(motion, with: event) } static var key: UIWindow? { return UIApplication.shared.windows.first { $0.isKeyWindow } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
import datetime from urllib import urlencode from django.conf import settings from django.http import HttpResponse from django.core.exceptions import ObjectDoesNotExist from django.urls import reverse from django.utils.encoding import force_text import debug # pyflakes:ignore import tastyp...
ise-uiuc/Magicoder-OSS-Instruct-75K
model.set_threshold(config["threshold"]) # Train scores_dev = trainer.train(evaluator) # Write preds preds_file = model_dir / 'preds_dev.json' evaluator.write_preds(preds_file) logging.info(f"Wrote preds to {preds_file}") return scores_dev, model
ise-uiuc/Magicoder-OSS-Instruct-75K
class DetailResponseSerializer(serializers.Serializer): detail = serializers.CharField(read_only=True) class NonFieldErrorResponseSerializer(serializers.Serializer): non_field_errors = serializers.CharField(read_only=True)
ise-uiuc/Magicoder-OSS-Instruct-75K
self.x = y } }
ise-uiuc/Magicoder-OSS-Instruct-75K