seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
def __repr__(self):
return "<Notification(id={self.id!r})>".format(self=self)
class NotificationSchema(ma.SQLAlchemyAutoSchema):
class Meta:
model = Notification
include_fk = True
load_instance = True
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if query:
return {"query": query}
else:
return {"query": {"nested": {"path": "elisa", "query": {"query_string": {"query": elisa}}}}}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
def __init__(self, rule_id: int=None, rule_name: str=None, description: str=None, priority: int=None): # noqa: E501
"""Rule - a model defined in Swagger
:param rule_id: The rule_id of this Rule. # noqa: E501
:type rule_id: int
:param rule_name: The rule_name of this Rule. # noqa: E501
:type rule_name: str
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class TestMethods(unittest.TestCase):
def test_case_data(self):
#print(test.dataread.data_corl())
el = ['a','b','c']
self.assertEqual(len(test.sklsetups.elements(el)), len(el))
if __name__ == '__main__':
unittest.main() | ise-uiuc/Magicoder-OSS-Instruct-75K |
}
$user->delete();
Session::flash('message', $name.' eliminado con éxito');
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from __future__ import print_function
from nltk.corpus import (gutenberg, genesis, inaugural,
nps_chat, webtext, treebank, wordnet)
from nltk.text import Text
from nltk.probability import FreqDist
from nltk.util import bigrams
print("*** Introductory Examples for the NLTK Book ***")
print("Loading text1, ..., text9 and sent1, ..., sent9")
print("Type the name of the text or sentence to view it.")
print("Type: 'texts()' or 'sents()' to list the materials.")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
reporter = UserSerializer()
class Meta:
model = Issue
fields = ['title', 'key', 'description', 'link', 'assignee', 'status', 'priority', 'reporter', 'created_at', 'due_date']
class IssueCreateSerializer(serializers.ModelSerializer):
assignee = serializers.SlugRelatedField(
slug_field='username',
queryset=User.objects.all(), required=False)
class Meta:
model = Issue
fields = ['title', 'description', 'link', 'assignee', 'status', 'priority', 'due_date'] | ise-uiuc/Magicoder-OSS-Instruct-75K |
"Chrome/96.0.4664.110 Safari/537.36"
)
user_agent = kwargs.get("user_agent", default_user_agent)
data_dir = kwargs.get(
"user_data_dir", os.path.expanduser("~/.config/google-chrome-auto")
)
window_size = kwargs.get("window_size", "2560,1440")
profile = kwargs.get("profile", "Default")
options.add_argument("disable-gpu")
options.add_argument(f"window-size={window_size}")
options.add_argument(f"user-data-dir={data_dir}")
options.add_argument(f"user-agent={user_agent}")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
const result = pipe.transform(date.toString());
expect(result).toEqual('January 01 2020, 00:00');
});
| ise-uiuc/Magicoder-OSS-Instruct-75K |
that the dataset has already been downloaded, or
None to check the existence of root/{cls.name}.
Returns:
dataset_path (str): Path to extracted dataset.
"""
import zipfile,tarfile
path = os.path.join(self.root, self.name)
check = path if check is None else check
if not os.path.isdir(check):
for url in self.urls:
if isinstance(url, tuple):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/**
* Place a reservation on a message encryption key.
*
* Key reservations are used to signal that a particular key is actively in use and should be retained.
* Note that placing reservation on a key does not guarantee that the key wont be removed by an explicit
* action such as the reception of a KeyError message.
*
* For every reservation placed on a particular key, a corresponding call to ReleaseKey() must be made.
*
* This method accepts any form of key id, including None. Key ids that do not name actual keys are ignored.
*
* @param[in] peerNodeId The Weave node id of the peer with which the key shared.
*
* @param[in] keyId The id of the key to be reserved.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def connect_ros(self):
if "name" not in self.args["ros"]["init_node"]:
self.args["ros"]["init_node"]["name"] = "ros_mqtt_bridge"
self.args["ros"]["init_node"]["anonymous"] = True
rospy.init_node(**self.args["ros"]["init_node"])
def connect_mqtt(self):
self.__mqtt_client = mqtt.Client(**self.args["mqtt"]["client"])
if self.args["mqtt"]["tls"] is not None:
self.set_mqtt_tls()
self.__mqtt_client.connect(**self.args["mqtt"]["connect"])
def set_mqtt_tls(self):
self.__mqtt_client.tls_set(**self.args["mqtt"]["tls"])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.m = m
def list_attributes(self):
x_s = "position: " + str(self.x) + ", "
v_s = "velocity: " + str(self.v) + ", "
a_s = "acceleration: " + str(self.a) + ", "
D_s = "derivative of density: " + str(self.D) + ", "
rho_s = "density: " + str(self.rho) + ", "
m_s = "mass: " + str(self.m) + ", "
P_s = "pressure: " + str(self.P) + ", "
boundary_s = "is boundary: " + str(self.boundary)
return [x_s + v_s + a_s + D_s + rho_s + m_s + P_s + boundary_s]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
QuestionTestData data = new() { Test = test, Score = new(10) };
SingleChoiceQuestion question = QuestionTestSamples.CreateSingleChoiceQuestion(data) as SingleChoiceQuestion;
test.ChangePassingScore(10);
PublishingProposal sut = test.ProposeForPublishing(new List<Question>() { question });
var mockedUser = fixture.CreateUserMock();
mockedUser.Setup(u => u.IsAdmin).Returns(false);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
with open(file_path, 'w') as text_file:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
break
if not resultfunction_present:
logging.warning(
"Found assumption containing '\\result' but "
"no resultfunction was specified",
data.sourceline,
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/**
* End value for the animation.
*/
@Option
public Integer to$number;
/**
* End value for the animation.
*/
@Option
public String to$string;
/**
| ise-uiuc/Magicoder-OSS-Instruct-75K |
</tr>
<tr>
<td>Keterangan</td>
<td> <input type="text" class="form-control" name="Keterangan"></td>
</tr>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
delegate?.contentView(self, scrollingWith: sourceIndex, targetIndex: targetIndex, progress: progress)
}
}
extension PageContentView: PageTitleViewDelegate {
public func titleView(_ titleView: PageTitleView, didSelectAt index: Int) {
isForbidDelegate = true
guard currentIndex < childViewControllers.count else { return }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""This module provides a cursor on a datasource's recordset."""
from .dataclient import DataSource
class DataSourceCursorError(Exception):
"""Exception for DataSourceCursor class."""
class DataSourceCursor(DataSource):
"""Provide bsddb3 style cursor access to recordset of arbitrary records."""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
git commit --message "Update SRFI data" ../srfi-data.el
git --no-pager show
| ise-uiuc/Magicoder-OSS-Instruct-75K |
package de.unkrig.antology.task;
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Task;
import org.apache.tools.ant.taskdefs.condition.Condition;
import de.unkrig.antology.util.FlowControlException;
import de.unkrig.commons.nullanalysis.Nullable;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from patterns.checker_board import CheckerBoard
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import requests
class RapidProClient:
def __init__(self, thread):
self.thread = thread
| ise-uiuc/Magicoder-OSS-Instruct-75K |
try:
if int(os.environ.get("_ASTROPATH_VERSION_NO_GIT", 0)):
env_var_no_git = True
raise LookupError
env_var_no_git = False
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// however do not add them if they already exist since that will cause the Matcher
// to create extraneous values. Parens identify a group so multiple parens would
// indicate multiple groups.
if (pattern.startsWith("(") && pattern.endsWith(")")) {
patternBuilder.append(pattern);
} else {
patternBuilder.append('(');
patternBuilder.append(pattern);
patternBuilder.append(')');
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
} catch (IllegalAccessException e) {
e.printStackTrace();
}
if (o == null) {
return null;
}
return (T) o;
}
/**
* 获取对象的属性值(包括继承来的父类属性)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def setUp(self):
pass
def tearDown(self):
pass
def testReleaseUpdateError(self):
"""Test ReleaseUpdateError"""
# FIXME: construct object with mandatory attributes with example values
# model = appcenter_sdk.models.clsReleaseUpdateError.ReleaseUpdateError() # noqa: E501
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Result = namedtuple('response', 'word value tries found time')
class DBTestCreation(unittest.TestCase):
def setUp(self):
self.db_file_name = "temp/tu.db"
# do some house cleaning
if glob.glob(self.db_file_name):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
r = super(BaGPipeEnvironment, self)._get_network_range()
if r:
self._dont_be_paranoid()
return r
def _setUp(self):
self.temp_dir = self.useFixture(fixtures.TempDir()).path
# We need this bridge before rabbit and neutron service will start
self.central_data_bridge = self.useFixture(
net_helpers.OVSBridgeFixture('cnt-data')).bridge
self.central_external_bridge = self.useFixture(
net_helpers.OVSBridgeFixture('cnt-ex')).bridge
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.eventbus.api.Event.Result;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.event.server.FMLServerStartingEvent;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import java.util.Collection;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
internal static class MicrosoftKeyTypes
{
public const string Symmetric = "http://schemas.microsoft.com/idfx/keytype/symmetric";
public const string Asymmetric = "http://schemas.microsoft.com/idfx/keytype/asymmetric";
public const string Bearer = "http://schemas.microsoft.com/idfx/keytype/bearer";
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
targets: [
.target(
name: "ElegantPages",
dependencies: [])
]
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
PartitionRecordJsonConverter.write(newPartitionRecord, PartitionRecord.HIGHEST_SUPPORTED_VERSION).toPrettyString(),
metadataNodeManager.getData().root()
.directory("topicIds", oldPartitionRecord.topicId().toString(), oldPartitionRecord.partitionId() + "")
.file("data").contents()
);
}
@Test
public void testUnfenceBrokerRecordAndFenceBrokerRecord() {
RegisterBrokerRecord record = new RegisterBrokerRecord()
.setBrokerId(1)
.setBrokerEpoch(2);
metadataNodeManager.handleMessage(record);
assertEquals("true",
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#[derive(Debug, Default)]
pub struct Empty;
impl Empty {
pub fn new() -> Self {
Empty
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# @TODO we want to "from .app import main" so the test suite can import the
# main() function but if we do that then app.py throws errors when importing
| ise-uiuc/Magicoder-OSS-Instruct-75K |
__version__ = '10.0'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.category = category
self.name = name
# write metadata to file
with open(self.file, "w") as f:
f.write(
f'THINKER = "{self.thinker}"\nCATEGORY = "{self.category}"\nPROJECT_NAME = "{self.name}"')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import org.graalvm.compiler.nodes.calc.NegateNode;
import org.graalvm.compiler.nodes.util.GraphUtil;
public class DerivedScaledInductionVariable extends DerivedInductionVariable {
private final ValueNode scale;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
break
if i > start and candidates[i] == candidates[i - 1]:
continue
combination.append(candidates[i])
self.dfs(candidates, n, i, target - candidates[i], combination, solutions)
combination.pop() | ise-uiuc/Magicoder-OSS-Instruct-75K |
cat ./build/contracts/BloomAaveBridge.json | jq -r "$requireFields" > ./BloomAaveBridge.json
echo "Generating JSON file for BloomERC1155"
cat ./build/contracts/BloomERC1155.json | jq -r "$requireFields" > ./BloomERC1155.json
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print(contents)
import os
print(os.getcwd())
os.chdir('/Users/denov/Downloads/python-book/')
print(os.getcwd())
os.chdir('/Users/denov/Downloads/python-book/file_examplesch10')
print(os.getcwd())
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if unit[3] == len(unit[2])-1:
unit[3] = 0
else:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import com.u2p.ui.component.ItemFile;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// set VOP
if (contrast > 0x7f) {
contrast = 0x7f;
}
command( PCD8544_SETVOP | contrast); // Experimentally determined
// normal mode
command(PCD8544_FUNCTIONSET);
// Set display to Normal
command(PCD8544_DISPLAYCONTROL | PCD8544_DISPLAYNORMAL);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
elif hasattr(obj, "__dict__"):
d = dict(
(key, value)
for key, value in inspect.getmembers(obj)
if not key.startswith("__")
and not inspect.isabstract(value)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public long? LesseeId
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// TODO: not sure if this is correct
use num_iter::range;
use num_traits::one;
pub fn roll<T>(dice_data: DiceData<T>) -> T
where
T: PrimInt + SampleRange,
{
let mut rng = rand::thread_rng();
roll_with_fn(dice_data, |a, b| { rng.gen_range(a,b) })
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export {EventEmitter} from './EventEmitter';
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if let userInfo = (notification as Notification).userInfo as? [String: Any] {
guard let discoveryInfo = DiscoveredHomeAssistant(JSON: userInfo) else {
Current.Log.error("Unable to parse discovered HA Instance")
return
}
self.discoveredInstances.append(discoveryInfo)
}
}
@objc func HomeAssistantUndiscovered(_ notification: Notification) {
if let userInfo = (notification as Notification).userInfo, let name = userInfo["name"] as? String {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print alignment_a
print alignment_b
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
self.value = newValue
}
}
public init(wrappedValue: [Task], threshold: Int, name: String) {
self.value = wrappedValue
self.threshold = threshold
self.subscription = Timelane.Subscription(name: name)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
BATCH_IMPORT_START_ROW = get_setting('BATCH_IMPORT_START_ROW', 2)
BATCH_IMPORT_END_ROW = get_setting('BATCH_IMPORT_END_ROW', -1)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
yarn run deploy:local | ise-uiuc/Magicoder-OSS-Instruct-75K |
result = MAX_SERVO_ANGLE_RAD * np.vstack([
np.sin(angular_freq_radps * seconds),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from crispy_forms.helper import FormHelper
from crispy_forms.layout import Layout, Submit, Row, Column
class StateForm(forms.Form):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from algotides.interfaces.widgets import CustomListWidget
class Ui_AddressFrame(object):
def setupUi(self, AddressFrame):
if not AddressFrame.objectName():
AddressFrame.setObjectName(u"AddressFrame")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
connectionString?: string;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# requests.post('http://1172.16.31.10:8000/post3', json=json).json()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
@return: returns end joint
"""
self.characterName = characterName
self.suffix = suffix
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def fetch(self):
if self.location["type"] == "local":
self._directory = self.location["directory"]
else:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
vector<Header> req = basicHeaders();
vector<string> values;
int flights = 10;
for (auto i = 0; i < flights * 4; i++) {
values.push_back(folly::to<string>(i));
}
client.setEncoderHeaderTableSize(1024);
for (auto f = 0; f < flights; f++) {
vector<std::tuple<unique_ptr<IOBuf>, bool, TestStreamingCallback>> data;
for (int i = 0; i < 4; i++) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// ------------------------------------- global variables ---------------------------
int buttons[2];
bool new_buttons_msg;
bool new_master_pose;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
timer.stop()
def J(self,A,x):
## Start the timer ##
timer = df.Timer("pFibs: Assemble Jacobian")
## Assemble ##
df.assemble(self.a, tensor=A)
for bc in self.bcs:
bc.apply(A)
if self.ident_zeros:
A.ident_zeros()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# %%
df = pd.read_csv(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# vault
'vault_encrypted': vault_encrypted,
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
use anyhow::*;
use log::*;
use lib_core_channel::URx;
use lib_interop::models::{DEventType, DExperimentId};
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"stream": "ext://sys.stdout",
"formatter": "standard",
},
},
"loggers": {},
"root": {"handlers": ["file"], "level": "INFO"},
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class GithubLoginController extends Controller
{
use AuthenticatesUsers;
protected $adminUser;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
package com.minelittlepony.hdskins.util.net;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from .feature_extraction import word, vocabulary
from .feature_extraction import normalizer
| ise-uiuc/Magicoder-OSS-Instruct-75K |
manager.run() | ise-uiuc/Magicoder-OSS-Instruct-75K |
public void stop() {
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
title (str): The tilte movie.
storyline (str): The storyline.
poster_image_url(str): That image that represent the movie.
trailer_youtube_url(str): The URL trailer from movie.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from pathlib import Path
from typing import Union
import cv2
import pytest
from layered_vision.cli import (
parse_value_expression,
parse_set_value,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// MARK: - Parse Configuration
// ***************************
/*
* Function: joinGroup(sender)
* ---------------------------
* Alternative to picker view that looks nicer. Instead of having a picker view in a table view
* cell, allow a custom picker view to move onto the screen, allowing the user to select industry.
*/
func joinGroup(sender: UIButton) {
let group = self.data[sender.tag]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
cls_serialized_fields = set([column.name for column in
self.__class__.__table__.columns])
for primary_key in inspect(self.__class__).primary_key:
if not getattr(self, primary_key.name):
raise ValueError("The object hasn't been loaded yet.")
if serialized_fields:
for field in serialized_fields:
if field not in cls_serialized_fields:
raise ValueError(
"The field `%s` isn't in `%s`"
% (field, self.__class__.__name__)
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
layer.cornerRadius = frame.size.height / 6
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export = Assert;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def __init__(self, condition, action, tags=None):
self.condition = condition
self.action = action
self.tags = tags or []
def matches(self, *tags):
"""Returns whether the rule is tagged with any of the given tags."""
return any((tag in self.tags for tag in tags))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
}
}
# Internationalization
# https://docs.djangoproject.com/en/1.8/topics/i18n/
LANGUAGE_CODE = 'en'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
UIGraphicsBeginImageContextWithOptions(imageSize, false, UIScreen.main.scale)
let context = UIGraphicsGetCurrentContext()
//
let path = UIBezierPath(roundedRect: CGRect(origin: CGPoint(x: borderWidth, y: borderWidth),
size: textContainerSize),
byRoundingCorners: corner,
cornerRadii: CGSize(width: cornerRadius, height: cornerRadius))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
use metrics::{Counter, Gauge, Histogram, Unit};
#[test]
fn test_basic_functionality() {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from rest_framework import serializers
from .models import Organization
| ise-uiuc/Magicoder-OSS-Instruct-75K |
protected function getRebuildDescription()
{
return 'Rebuilds thread counters.';
}
protected function getRebuildClass()
{
return 'XF:Thread';
}
protected function configureOptions()
{
$this
->addOption(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
sm.removeReactor()
sm.dispose()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if (other.tag == Tags.player)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Enter a weight in kilograms: 7
# The weight in pounds is: 15.4
kilograms = eval(input('Enter a weight in kilograms: '))
pounds = kilograms * 2.2
print('The weight in pounds is:', pounds)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Timestamp('2019-05-01', tz='Asia/Tokyo'),
Timestamp('2019-05-02', tz='Asia/Tokyo'),
Timestamp('2019-05-03', tz='Asia/Tokyo'),
Timestamp('2019-05-06', tz='Asia/Tokyo'),
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
BYTE CallingApTitle[17]; // 16 bytes transfered
BYTE Reserved3[32];
ApplicationContext AppContext;
Array<PresentationContext> PresContexts;
UserInformation UserInfo;
public:
AAssociateRQ();
AAssociateRQ(BYTE *, BYTE *);
virtual ~AAssociateRQ();
void SetCalledApTitle(BYTE *);
void SetCallingApTitle(BYTE *);
void SetApplicationContext(ApplicationContext &);
void SetApplicationContext(UID &);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
(name, id(self)))
repo.dirstate.savebackup(repo.currenttransaction(), self._backupname)
narrowspec.savebackup(repo, self._narrowspecbackupname)
self._active = True
| ise-uiuc/Magicoder-OSS-Instruct-75K |
super(dbs, false);
}
public VannoQuery(final List<Database> dbs, final boolean isCount) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>MarcosCostaDev/IntegrationTest
using IntegrationTest.Core.Command;
using IntegrationTest.Domain.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace IntegrationTest.Domain.Commands.Results
{
public class InvoiceCommandResults
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
__version__ = ".".join(map(str, version_info))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
requests.get.return_value = self
self.text = 'test html'
t = HttpTemplate()
result = t.get('http://baidu.com')
requests.get.assert_called_with('http://baidu.com')
self.assertEqual('test html', result)
...
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public function testCombinedMethods(): void
{
$add = new AddFiles();
// It doesn't really make sense to use all these options at the same
// time with `git add`, but we're testing that the command correctly
// strings them together.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for sub_tree in tree.trees:
self.traverse_tree(processed_dir, sub_tree)
for blob in tree.blobs:
self.process_file(processed_dir, blob)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
const fetchGitHubStats = async (params: Github.GetGitHubStats.RequestQuery) => {
const response = await api.github.getGitHubStats(params);
return response.data;
};
| ise-uiuc/Magicoder-OSS-Instruct-75K |
5 => '',
6 => '',
7 => '',
];
public static $exelHeader = [
1 => 'A',
2 => 'B',
3 => 'C',
4 => 'D',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
d = Dog("Roger")
c = Cat("Fluffy")
d.fetch("paper")
d.eat("dog food")
print("--------")
| 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.