seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
* @return true if the change detector is in the warning zone
*/
public boolean getWarningZone() {
return this.isWarningZone;
}
/**
* Gets the prediction of next values.
*
* @return a prediction of the next value
*/
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# perform PUT REQUEST
@app.route('/lang/<string:name>', methods=['PUT'])
def editOne(name):
langs = [language for language in languages if language['name'] == name]
langs[0]['name'] = request.json['name']
return jsonify({'languages': langs[0]})
# perform DELETE REQUEST
@app.route('/lang/<string:name>', me... | ise-uiuc/Magicoder-OSS-Instruct-75K |
@stop
@push('scripts')
<script>
$(function() {
$('#proveedor-table').DataTable({
processing: true,
serverSide: true,
ajax: '{!! route('prov.data') !!}',
columns: [
{ data: 'id', name: 'id' },
{ data: 'proveedor', name: 'proveedor' },
| ise-uiuc/Magicoder-OSS-Instruct-75K |
function->handler(thread, destination);
}
else {
thread->pushStack(self, function->frameSize, function->argumentCount, function, destination,
function->block.instructions);
runFunctionPointerBlock(thread);
}
thread->popStack();
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<?php
namespace tests\codeception\unit\fixtures;
use yii\test\ActiveFixture;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export { default as AddressForm } from './AddressForm'; | ise-uiuc/Magicoder-OSS-Instruct-75K |
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language gove... | ise-uiuc/Magicoder-OSS-Instruct-75K |
self.min_area_size = 30*30
self.rotate_semicircle = False
self.angle_rotate = 30
self.black_color = 0
self.white_color = 255
self.lin = self.col = 0
| ise-uiuc/Magicoder-OSS-Instruct-75K |
urllib3-mock
============
A utility library for mocking out the `urllib3` Python library.
This is an adaptation of the `responses` library.
:copyright: (c) 2015 <NAME>
:copyright: (c) 2015 <NAME>
:license: Apache 2.0
"""
from setuptools import setup
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pass
# transfer_object = globus.TransferData(
# self._globus_transfer_client,
# source_endpoint=par.GLOBUS['SERVER_ENDPOINT'],
# destination_endpoint=par.GLOBUS['LOCAL_ENDPOINT'],
# verify_checksum=True,
# sync_level='checksum',
# label='ONE_transfer_python')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def get_fallback_systemd_xdg_runtime_dir(self) -> str:
xdg_runtime_dir = self.get_config_value(
"service.fallback_systemd_xdg_runtime_dir", default=""
)
if xdg_runtime_dir == "":
user_id = self._config_variables["USER_ID"]
xdg_runtime_dir = f"/run/user/{u... | ise-uiuc/Magicoder-OSS-Instruct-75K |
from .master_async import MasterAsync, trans_int_to_float
import time
import json
import asyncio
import aioredis
slave_id = 1
| ise-uiuc/Magicoder-OSS-Instruct-75K |
DEBUG - 2020-08-15 13:45:49 --> UTF-8 Support Enabled
INFO - 2020-08-15 13:45:49 --> Utf8 Class Initialized
INFO - 2020-08-15 13:45:49 --> URI Class Initialized
INFO - 2020-08-15 13:45:49 --> Router Class Initialized
INFO - 2020-08-15 13:45:49 --> Output Class Initialized
INFO - 2020-08-15 13:45:49 --> Security Class I... | ise-uiuc/Magicoder-OSS-Instruct-75K |
v = quote_plus(v)
append(k, v, tag, lst)
else:
try:
# is this a sufficient test for sequence-ness?
len(v)
except TypeError:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// Zip2Sequence+ExtensionTests.swift
// CollectionKitTests
//
// Created by Yumenosuke Koukata on 2019/11/30.
// Copyright © 2019 ZYXW. All rights reserved.
//
import XCTest
@testable import CollectionKit
class Zip2SequenceExtensionTests: XCTestCase {
func testDictionary() {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public List<String> ccAddresses;
public List<String> bccAddresses;
public String sender;
public String senderDescription;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
a=int(input("Input an integer :"))
n1=int("%s"%a)
n2=int("%s%s"%(a,a))
n3=int("%s%s%s"%(a,a,a))
print(n1+n2+n3)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@blueprint.route('/delete_categoria/<id>')
@login_required
def delete_categoria(id=None):
if not id:
flash(u'Devi fornire un id!', 'error')
else:
categoria = Categoria.query.get_or_404(id)
categoria.delete()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public String save (Employee employee) {
return "successful";
}
public Employee getEmployee (Integer id) {
return new Employee();
}
public String update (Employee employee) {
return "successful";
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub use front::ast::FGrammar;
use partial::*;
pub mod analysis;
pub mod typing;
pub fn typecheck(fgrammar: FGrammar) -> TGrammar {
Partial::Value(fgrammar)
.and_then(|grammar| at_least_one_rule_declared(grammar))
.and_then(|grammar| analysis::analyse(grammar))
.ensure("aborting due to previous error (an... | ise-uiuc/Magicoder-OSS-Instruct-75K |
args = ['-v', '--pyargs', 'iminuit']
pytest.main(args)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for number in range(1, total + 1): # number = page number
currentUrl = manga.CurrentUrl(i, number)
imgSrc = manga.GetSrc(currentUrl)
manga.imgGetter(imgSrc, number)
print("Chapter-{} is Downloaded".format(i))
if zip_flag is True: # zipping block
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
pre_processed = super().format_help_for_context(ctx)
return (
f"{pre_processed}\n\n"
f"`Cog Author :` {self.__author__}\n"
f"`Cog Version :` {self.__version__}"
)
@commands.group()
async def fumo(self, ctx):
"""Generate a random Fumo ᗜˬᗜ"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
var fGreen : CGFloat = 0
var fBlue : CGFloat = 0
var fAlpha: CGFloat = 0
var color = self
#if os(macOS)
color = color.usingColorSpace(.deviceRGB) ?? color
#endif
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{mindspore::TypeId::kNumberTypeFloat, mindspore::DataType::MS_FLOAT32},
{mindspore::TypeId::kNumberTypeFloat32, mindspore::DataType::MS_FLOAT32},
{mindspore::TypeId::kNumberTypeFloat64, mindspore::DataType::MS_FLOAT64},
};
int AicpuOpUtil::MsTypeToProtoType(TypeId ms_type) {
auto iter = MS_PROTO_DATA_TYPE_MAP.... | ise-uiuc/Magicoder-OSS-Instruct-75K |
last[spoken] = turn
spoken = new_spoken
return spoken
run('13,0,10,12,1,5,8', 30000000)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@objc func dismissAction(_ sender: AnyObject?) {
dismissBlock()
}
}
@available(*, unavailable, renamed: "RFDebugViewController")
typealias DebugViewController = RFDebugViewController
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Text(error.description)
.bold()
HStack {
Button("Dismiss") {
self.error = nil
}.padding(.top, 5)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
} else {
$view->assign("errors", $errors);
}
}
$view->assign('form', $form);
$view->assign('room_id', $id);
return;
}
}
$view = new View('b_404', 'back');
}
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
typealias ObjectType = MessageCustomNotificationObject
| ise-uiuc/Magicoder-OSS-Instruct-75K |
best = train_NN(df_full_train,y_full_train,df_test,y_test
,inner_layers=best_ddn2_layer_size
,droprate=best_ddn2_droprate
,learning_rate=best_ddn2_learning_rate
,input_droprate=best_ddn2_input_droprate)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# CPU
##############################
cpuicon() {
echo ""
}
cpu() {
read cpu a b c previdle rest < /proc/stat
prevtotal=$((a+b+c+previdle))
sleep 0.5
read cpu a b c idle rest < /proc/stat
total=$((a+b+c+idle))
cpu=$((100*( (total-prevtotal) - (idle-previdle) ) / (total-prevtotal) ))
echo -e "CPU:... | ise-uiuc/Magicoder-OSS-Instruct-75K |
# if Layers[-1].medium.MODEL == "fluid":
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def is_multiple(self):
value = self.get_attribute('multiple')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
replace KUBEVAL_VERSION=.* KUBEVAL_VERSION="$(latest_version git instrumenta/kubeval)"
replace SHELLCHECK_VERSION=.* SHELLCHECK_VERSION="$(latest_version git koalaman/shellcheck)"
# pin hadolint for now because latest tag does not have a release
# replace HADOLINT_VERSION=.* HADOLINT_VERSION="$(latest_version git hadol... | ise-uiuc/Magicoder-OSS-Instruct-75K |
from keras.layers.recurrent import LSTM
from keras.callbacks import EarlyStopping
from keras.layers.core import Dense, Activation, Dropout
from utils import read_dataset, split_dataset
from nn_common import plot_result, store_model, load_model
from evaluation import mase
def compile_model(nneurons, loss_fn, dropout=(... | ise-uiuc/Magicoder-OSS-Instruct-75K |
from py_mplus.objects.external.ad_network.adsense import Adsense
from py_mplus.objects.external.ad_network.applovin import AppLoving
from py_mplus.objects.external.ad_network.facebook import Facebook
from py_mplus.objects.external.ad_network.mopub import Mopub
class AdNetwork(MPObject):
def _decode(self, buffer: ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
from flask import Flask
from .views import main_views
def create_app(debug=False):
app = Flask(__name__)
app.debug = debug
app.register_blueprint(main_views)
return app | ise-uiuc/Magicoder-OSS-Instruct-75K |
mainmenu = Menu(root)
root.config(menu=mainmenu)
filemenu = Menu(mainmenu, tearoff=0)
filemenu.add_command(label="Открыть...")
filemenu.add_command(label="Новый")
filemenu.add_command(label="Сохранить...")
filemenu.add_command(label="Выход")
helpmenu = Menu(mainmenu, tearoff=0)
helpmenu2 = Menu(helpmenu, ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
@abstractmethod
def snapshot(self):
raise NotImplementedError()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@meter.runtime(REPORT_NAME)
def a_slow_function(a, b):
return a + b
class TestRuntime:
def test_constants(self):
a, b = 1, 2
| ise-uiuc/Magicoder-OSS-Instruct-75K |
tester().tapView(withAccessibilityLabel: "Search")
return [Movie(title: "Brácula (Condemor II)"),
Movie(title: "Aquí llega Condemor, el pecador de la pradera")]
}
}
class TestAssembler: Assembler { }
extension SearchMoviesAssembler where Self: TestAssembler {
func resolve... | ise-uiuc/Magicoder-OSS-Instruct-75K |
internal Token(string content, TokenTypes type)
{
Content = content;
Type = type;
}
internal Token(char content, TokenTypes type) : this(content.ToString(), type) { }
internal Token(string content, TokenTypes type, int order) :... | ise-uiuc/Magicoder-OSS-Instruct-75K |
def end(self, tag):
self.depth -= 1
def close(self):
return self.maxdepth
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* @param \Spawnia\Sailor\Polymorphic\Operations\UserOrPost\Node\User|\Spawnia\Sailor\Polymorphic\Operations\UserOrPost\Node\Post|\Spawnia\Sailor\Polymorphic\Operations\UserOrPost\Node\Task $node
*/
public static function make($node): self
{
$instance = new self;
if ($node !== self::UN... | ise-uiuc/Magicoder-OSS-Instruct-75K |
'Topic :: Software Development :: Libraries :: Python Modules',
]
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from .checks import checkmember, checktype
ENV_PREFIX = "objectio_"
objectio_DEBUG = int(os.environ.get(ENV_PREFIX+"DEBUG", "0"))
objectio_PATH = "/usr/local/etc/objectio.yaml:~/.objectio.yaml:./objectio.yaml"
objectio_PATH += ":" + objectio_PATH.replace("yaml", "yml")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
raise NotImplementedError(
"Build dictionary feature is not yet implemented. Please use sudachipy<0.6.")
def _command_user_build(args, print_usage):
raise NotImplementedError(
"Build dictionary feature is not yet implemented. Please use sudachipy<0.6.")
def print_version():
| ise-uiuc/Magicoder-OSS-Instruct-75K |
[AttributeUsage(AttributeTargets.Property)]
public class PartialRebuildDatePropertyAttribute : Attribute
{
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def test_raises_error_if_array_is_less_than_2(self):
with self.assertRaises(TypeError):
sum_between([1])
def test_first_element_is_smaller(self):
self.assertEqual(sum(range(1, 4)), sum_between([1, 3]), "Expected 6")
def test_second_element_is_smaller(self):
expected = ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
if(imagelistfn == "")
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
while flag + sum_inx < leng:
while flag+index+1<leng and nums[flag]==nums[flag + index + 1]:
index = index + 1
nums[flag:leng - sum_inx - index] = nums[flag + index:leng - sum_inx]
sum_inx = sum_inx + index
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def category(request, pk):
cate = get_object_or_404(Category, pk=pk)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
padding: 0 12px 2px 12px;
height: 27px;
color: #fff;
background: #46B976;
border-radius: 100px;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@IBAction func largeButton() {
let large = Measurement(value: largeDrink, unit: UnitVolume.milliliters)
let today = fetchToday()
today.consumed += large.converted(to: .liters).value
updateSummary()
}
override func awake(withContext context: Any?) {
super.awake(wi... | ise-uiuc/Magicoder-OSS-Instruct-75K |
def math_power(n, p):
power_output = n ** p
print(power_output)
number = float(input())
| ise-uiuc/Magicoder-OSS-Instruct-75K |
COMMONTAIL_SOCIAL_LINKS_OPEN_IN_NEW_WINDOW: bool = True
| ise-uiuc/Magicoder-OSS-Instruct-75K |
aws_rds as rds,
core
)
import rds_cluster_utils as rds_utils
class RdsClusterStack(core.Stack):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
with self.assertLogs('test', level='INFO') as cm:
result = self.new.submit()
self.assertEqual(cm.output, [
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print "Process aborted from too many failed connection tries. Exiting."
#from multiprocessing.managers import BaseManager
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@testable import MarvelAPIClient
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return try context.fetch(fetchRequest)
} catch let error {
fatalError("Error: \(error)")
}
}
static func instance(id: Int64, context: NSManagedObjectContext) -> Ocean? {
let fetchRequest: NSFetchRequest<Ocean> = Ocean.fetchRequest()
fetchRequest.predicate... | ise-uiuc/Magicoder-OSS-Instruct-75K |
}
audioPlayer.play()
}
private func changePitchEffect(_ pitch: Float) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
###########################################
# Copy from Development to Production YUM repositories
###########################################
echo "** Copying from Development to Production YUM repositories $PROD_RPM_BASE"
ssh -t $REPO_HOSTNAME /soft/repo-mgmt/bin/copy_to_production.sh ${TEST_OPTION} $PKG $VER $REL
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# end class klassSub
class cdeclSub(supermod.cdecl):
def __init__(self, attributelist=None, id='', addr=''):
supermod.cdecl.__init__(self, attributelist, id, addr)
supermod.cdecl.subclass = cdeclSub
# end class cdeclSub
class accessSub(supermod.access):
def __init__(self, attributelist=None, id='', ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
static createEmbeddedVrfKeyLinkTransactionBuilder(signerPublicKey: KeyDto, version: number, network: NetworkTypeDto, type: EntityTypeDto, linkedPublicKey: KeyDto, linkAction: LinkActionDto): EmbeddedVrfKeyLinkTransactionBuilder;
getLinkedPublicKey(): KeyDto;
getLinkAction(): LinkActionDto;
getSize(): nu... | ise-uiuc/Magicoder-OSS-Instruct-75K |
if [ -f $OriginFile ]; then
mv $OriginFile $TargetFile
touch $OriginFile
else
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// Send a ping every 10 seconds
match with_timeout(Duration::from_secs(2), inbox.next()).await {
Ok(r) => match r {
Some(mut m) => match *m.message() {
Message::Str(message) => {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
xbnds = [0.0,1.0] # minimum and maximum x values
ybnds = [0.0,1.0] # minimum and maximum y values
Ns = [50,50]
bbox = ot.BoundingBox(xbnds[0],xbnds[1],ybnds[0],ybnds[1])
grid = ot.RegularGrid(bbox, Ns[0], Ns[1])
dens = np.ones(Ns)
for i in range(Ns[0]):
for j in range(Ns[1]):
pt = grid.Center(i,j)
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
if [[ ! -d $DATADIR ]]
then
mkdir -p $DATADIR
if [[ $? -ne 0 ]]
then
echo "Failed to create $DATADIR"
echo "Usage: lang_dataset.sh [datadir]"
exit 1
fi
fi
set -v
pushd $DATADIR
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<filename>app/Models/Order.php
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Order extends Model {
/**
* The database table used by the model.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def get_current_integral(self) -> float:
return self.value
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<gh_stars>0
#!/bin/bash
set -e
# [ 0.000000] [Firmware Bug]: TSC_DEADLINE disabled due to Errata; please update microcode to version: 0x52 (or later)
echo "Run this if you see an error in your bootup screen or dmesg about microcode"
sudo pacman -S intel-ucode --noconfirm
sudo grub-mkconfig -o /boot/grub/grub.cfg
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
else:
fighter_links = helpers.get_fighter_links()
print("Parsing each fighter link.....")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print("Start training..")
#model_training
model.fit(X, y)
#saver.save(sess, model_dir + 'model.cptk')
print("Training done, final model saved")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Comments(object):
def __init__(self, filepath):
self.filepath = filepath
def __iter__(self):
with open(self.filepath, 'r', encoding='utf8') as f:
reader = csv.reader(f, delimiter='\t')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public static final int MapAttrs_uiTiltGestures = 19;
public static final int MapAttrs_uiZoomControls = 20;
public static final int MapAttrs_uiZoomGestures = 21;
public static final int MapAttrs_useViewLifecycle = 22;
public static final int MapAttrs_zOrderOnTop = 23;
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class TestYoudao(unittest.TestCase):
def test_trans_ch_eng(self):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
up.
"""
tempext = '.tmp'
"""The suffix added to files indicating that they are uncommitted."""
def __init__(self, umask):
self.umask = umask
def subdirFilename(self, classname, nodeid, property=None):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if isinstance(ctx.command, MultiCommand):
for name in ctx.command.list_commands(ctx):
if match(name, incomplete):
choices.append(
(name, ctx.command.get_command_short_help(ctx, name)))
for item, help in choices:
yield (item, he... | ise-uiuc/Magicoder-OSS-Instruct-75K |
cursor.execute(sql)
self.get_connection().commit()
def create_database(self):
""" Create the tasks database """
cursor = self.get_cursor()
sql = """
CREATE TABLE IF NOT EXISTS tasks (
id integer PRIMARY KEY,
created_date text NOT NUL... | ise-uiuc/Magicoder-OSS-Instruct-75K |
}
if (j >= half_n) {
y[offset + (j - half_n) * rdim] = sum_part;
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
bool EGLContextX11::Create(const ContextParams& params, WindowHandle window, const EGLContextBase* shareContext)
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from .blast import BlastThread | ise-uiuc/Magicoder-OSS-Instruct-75K |
animate(timing)
]),
transition('* => void', [
animate(timing, inactiveStyle)
])
])
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
except Exception as e:
logging.exception(e)
fast_requests = 0
if fast_requests > 0:
delay = FAST_DELAY
fast_requests -= 1
else:
delay = SLOW_DELAY
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.warmup_epochs = config['warmup_num']
def train(self):
self._init_params()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
} else if (translateItem.de && translateItem.en) {
color = 'orange';
}
return { color };
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<h2 class="no-margin-bottom">Welcome, @{Html.RenderAction("adminname", "Admin");}</h2>
</div>
</header>
<!-- Breadcrumb-->
<div class="breadcrumb-holder container-fluid">
<ul class="breadcrumb">
<li class="breadcrumb-item"><a href="AdminHome">Home</a></li>
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
.flags(MessageFlags::EPHEMERAL)
.build();
context
.http
.interaction_callback(
context.interaction_id,
&context.interaction_token,
&InteractionResponse::ChannelMessageWithSource(reply),
)
.ex... | ise-uiuc/Magicoder-OSS-Instruct-75K |
for each_item in the_list:
if isinstance(each_item, list):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#________CREATING BUTTONS_______
| ise-uiuc/Magicoder-OSS-Instruct-75K |
});
$this->execute($executor);
return $this;
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
name_first: "Orlando".to_owned(),
name_last: "Hernandez".to_owned(),
game_position: None,
bat_order: None,
position: "P".to_owned(),
},
Player {
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
def entity_linker_types(instance, property_id):
return np.concatenate([
_entity_linker_types_from_mention(instance.subject_entity),
_entity_linker_types_from_mention(instance.object_entity)
])
def wikidata_predicates(instance, property_id):
return None
def text_score(instance, property_id):
| 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,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
def test_auth_with_no_data(self):
response = self.client.post('/auth', content_type='application/json')
self.assert400(response)
response_data = json.loads(response.data)
self.assertEqual(response_data["status"], "fail")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
} // namespace animgui
| ise-uiuc/Magicoder-OSS-Instruct-75K |
full paths
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if context is None:
c = None
else:
c = str(context.identifier) # type: ignore
#_tuple = ( s, p, o, o_lit, c, )
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.