seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
}
public void show(String message) {
Toast.makeText(mContext, message, Toast.LENGTH_LONG).show();
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
app.register_blueprint(container_module)
app.register_blueprint(mod_log)
app.register_blueprint(mod_stats)
app.register_blueprint(mod_dashboard)
app.register_blueprint(mod_images)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
EXPECT_FALSE(regions.IsRangeAvailable(base + 0x1FFF, 0x2000));
EXPECT_TRUE(regions.IsRangeAvailable(0xFFFFFFFFFFFFFFFF, 1));
EXPECT_FALSE(regions.IsRangeAvailable(base, 0x0001000000000000));
END_TEST;
}
static bool pq_add_remove() {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
sudo -S chroot ${ROOTFS} env HOME=/root LC_ALL=C /bin/bash $@
}
# Check rootfs dir.
if [ ! -d "${ROOTFS}" ]; then
echo "Missing rootfs (${ROOTFS}) directory."
exit 1
fi
# Mount dev and run
sudo -S mount --bind /dev ${ROOTFS}/dev
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public class GLOperationEndTransformFeedback : GLOperationsBase // must be in render queue after object drawn, before shader stops
{
public GLTransformFeedbackObject TFObj { get; set; }
public GLBuffer VaryingBuffer { get; set; }
public int BindingIndex { get; set; }
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
if (!iosActor)
{
return;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"json_metadata": json_metadata,
"parent_username": parent_author,
"parent_permlink": parent_permlink,
"comment_options": "",
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def as_dict(self):
d = dict(self._sections)
for k in d:
d[k] = dict(self._defaults, **d[k])
d[k].pop('__name__', None)
return d
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export default App
| ise-uiuc/Magicoder-OSS-Instruct-75K |
this.kryptonBreadCrumbItem79.ShortText = "Seedless";
//
// kryptonBreadCrumbItem80
//
this.kryptonBreadCrumbItem80.ShortText = "Fern";
//
// kryptonBreadCrumbItem81
//
this.kryptonBreadCrumbItem81.ShortText =... | ise-uiuc/Magicoder-OSS-Instruct-75K |
parser.addoption("--install-dir", action="store", default="/usr/local")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
the 'dollar-format' extension is not in the EXTENSIONS list.
'''
from fparser.two import utils
monkeypatch.setattr(utils, "EXTENSIONS", [])
for my_input in ["$", " $ "]:
with pytest.raises(NoMatchError):
_ = Control_Edit_Desc(my_input)
def test_invalid_format_errors(f2003_crea... | ise-uiuc/Magicoder-OSS-Instruct-75K |
'0' => '0%', '1' => '1%','2' => '2%', '3' => '3%','4' => '4%', '5' => '5%',
'6' => '6%', '7' => '7%','8' => '8%', '9' => '9%','10' => '10%', '11' => '11%',
'12' => '12%', '13' => '13%','14' => '14%', '15' => '15%','16' =>... | ise-uiuc/Magicoder-OSS-Instruct-75K |
def get_all_exe(path: str) -> list:
list_of_file = []
remove_suffix = [".png", ".jpg", ".sh"]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@property
def state_dict(self):
return {}
@state_dict.setter
def state_dict(self, state_dict):
pass
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class BibloiConfig(AppConfig): # Our app config class
name = 'pergamum.bibloi'
verbose_name = _("Articles Database")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<!--Contact form-->
<script src="{{asset('assets/front')}}/plugins/contact/jqBootstrapValidation.js"></script>
<script src="{{asset('assets/front')}}/plugins/contact/contact_me.js"></script>
</div><!-- end container -->
</section><!-- end section -->... | ise-uiuc/Magicoder-OSS-Instruct-75K |
from randomAgent import RandomAgent
from MCTS import *
from NeuralNetwork import Connect4Zero
import numpy as np
import matplotlib.pyplot as plt
import tensorflow as tf
#AI VS RANDOM
'''
def main():
builder = Connect4Zero()
#First, we create an empty board
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#include <ccomplex>
using std::cout;
using std::endl;
int main(int argc, const char * argv[]) {
//Complex类精读全部设置为0.1
Complex a;
Complex b(8,0);
Complex c(0,-4);
Complex d(29.99,88.44);
cout << "Complex number show" << endl;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
private plex: Plex,
private servicioCie10: Cie10Service
) {
}
/* limpiamos la request que se haya ejecutado */
ngOnDestroy() {
if (this.lastRequest) {
this.lastRequest.unsubscribe();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Append spool and rpool
#for i in params.phytoindex:
#y0.append(species[i].get_spool())
#y0.append(species[i].get_rpool())
#for i in params.pocindex:
#y0.append(species[i].get_dissolved())
return y0
| ise-uiuc/Magicoder-OSS-Instruct-75K |
:return: The request's data dictionary, optionally with the group data field(s) filled in
"""
if not (req["method"] == "POST" and req["url"].endswith("/analyses")):
return req
| ise-uiuc/Magicoder-OSS-Instruct-75K |
(
[](todo* self){
cout<<"job1 download file todo.zip \n";
downloading_service(*self);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print('inside init of libs') | ise-uiuc/Magicoder-OSS-Instruct-75K |
impl From<PwmConfigurationError> for AppError {
fn from(_err: PwmConfigurationError) -> Self {
AppError::Unknown
}
}
impl From<UartConfigError> for AppError {
fn from(_err: UartConfigError) -> Self {
AppError::Unknown
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
field=models.CharField(choices=[('Disponivel', 'Disponível'), ('Indisponivel', 'Indisponível')], default='Disponivel', max_length=12),
),
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def pytest_collection_modifyitems(config, items):
'''Tests marked as regression are only run with --regression.
'''
if not config.getoption("--regression"):
skip_regression = pytest.mark.skip(reason="Test only runs with --regression")
for item in items:
if "regression" in item.keywords:
item... | ise-uiuc/Magicoder-OSS-Instruct-75K |
Apparently this closes the EPOS motor
I don't know what "opening" and "closing" the motor means though
and yeah also these random variables don't make any sense to me
"""
def get_motor_current(self):
nodeID = ctypes.wintypes.WORD(0)
eposlib.VCS_GetCurrentIs.argtypes = [ctypes.wintyp... | ise-uiuc/Magicoder-OSS-Instruct-75K |
# The MIT License (MIT)
# Copyright (c) 2021 <NAME>
# 2021-03-03, v1.0
# ----------------------------------------------------------------------------
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import chaincode_pb2
from grpc.beta import implementations
| ise-uiuc/Magicoder-OSS-Instruct-75K |
toggleChild(key: string) {
const childIndex = this.shownDirectChildren.indexOf(key);
if(childIndex == -1) {
this.shownDirectChildren.push(key);
} else {
this.shownDirectChildren.splice(childIndex, 1);
console.log(this.shownDirectChildren);
}
}... | ise-uiuc/Magicoder-OSS-Instruct-75K |
Card c;
c.suit = (Suits)col;
c.name = (CardNames)row;
if (c.name == CardNames::JACK)
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
/// <summary>
/// Encrypts the specified <see cref="byte" />[] using the specified password and returns a <see cref="byte" />[] representing the encrypted version of <paramref name="data" />. The resulting binary is proprietary and can be decrypted using the <see cref="Decrypt" /> method.
/// </summary>
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
preview(killingfield_eqn, viewer='file', filename=r'display4D\output images\killing_field_01.png', euler=True,
dvioptions=['-T', 'tight', '-z', '0', '--truecolor', '-D 1200', '-bg', 'Transparent'])
resize_killing_image4d('Type (0,1) Vector Field')
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
fn solution_part2(&self) -> Self::SolutionPart2 {
unimplemented!()
}
}
fn parse_input<'a>(input: &'a str) -> impl Iterator<Item = usize> + 'a {
input.trim().split(' ').map(|i| i.parse().unwrap())
}
pub static PUZZLE_INPUT: &str = include_str!("../input");
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# - Extract SLC and Parameter File
# - Set dtype equal to zero to save the SLC in FCOMPLEX format.
pg.par_ICEYE_SLC(b_input, par_name, slc_name, 0)
# - run main program
if __name__ == '__main__':
start_time = datetime.datetime.now()
main()
end_time = datetime.datetime.n... | ise-uiuc/Magicoder-OSS-Instruct-75K |
class StreamableApiClientException(StreamableApiException):
"""
Streamable API client exception.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>nazmul629/OJ-Problem_Solution<filename>Beecrowd/Tired/1933 Tri-du.py
a,b =map(int,input().split())
if (a>=1 and a<=13) and (b>=1 and b<=13):
if a>b:print(a)
else:print(b) | ise-uiuc/Magicoder-OSS-Instruct-75K |
2) a way to pull getworks for checking if we should delag pools
"""
import ServerLogic
import bitHopper.Configuration.Workers as Workers
def get_server():
"""
Returns a valid server, worker, username tuple
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def swap(arr, i, j):
temp = arr[i]
arr[i] = arr[j]
arr[j] = temp
class Solution:
def sortColors(self, nums: List[int]) -> None:
"""
Do not return anything, modify nums in-place instead.
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ts = read_mocap_file(path)
# print(ts.shape)
cnt += ts.shape[0]
print(cnt)
path = os.path.join(DATA_DIR, "other", "49_02.amc.4d")
ts = read_mocap_file(path)
cnt += ts.shape[0]
print(cnt)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
output_dir = "gs://{0}/stackoverflow/".format(os.environ['BUCKET_NAME'])
# options
options = PipelineOptions()
google_cloud_options = options.view_as(GoogleCloudOptions)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print("服务器连接异常,尝试重新连接 (5s) ...")
self.conn.close()
time.sleep(5) # 断开连接后,每5s重新连接一次
emsc_client().run()
finally:
print("客户端已关闭 ...")
if __name__=="__main__":
emsc = emsc_client()
emsc.run() | ise-uiuc/Magicoder-OSS-Instruct-75K |
of the sequence you would like to return. The second and third args are
optional, where the second arg is the first number in the sequence and the
third arg is the second number in the sequence.
The second arg will default to 0 if not supplied.
The third arg will default to 1 if not supplied.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
DataRecorder.SENSOR_TRACK_EDGE_4,
DataRecorder.SENSOR_TRACK_EDGE_5,
DataRecorder.SENSOR_TRACK_EDGE_6,
DataRecorder.SENSOR_TRACK_EDGE_7,
DataRecorder.SENSOR_TRACK_EDGE_8,
DataRecorder.SENSOR_TRACK_EDGE_9,
DataRecorder.SENSOR_TRACK_EDGE_1... | ise-uiuc/Magicoder-OSS-Instruct-75K |
(while true; do
./brikkit
sleep 3
done)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
namespace PnP.PowerShell.Commands.Site
{
[Cmdlet(VerbsCommon.Get, "PnPSharingForNonOwnersOfSite")]
[CmdletHelp("Returns $false if sharing of the site and items in the site is restricted only to owners or $true if members and owners are allowed to share",
DetailedDescription = "Returns $false if sharing ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
{
/// <summary>
/// 状态码-1未登录,1登录成功,0登录过期
/// </summary>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
void setPortraitPos(int x, int y)
{
vPortrait.setPos(x, y);
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#[put("/counters/{counter_id}/increment")]
async fn increment(
data: web::Data<AppState>,
web::Path(counter_id): web::Path<u32>,
value: web::Json<JsonBodyChangeBy>,
) -> Result<HttpResponse> {
Ok(HttpResponse::Ok().json(JsonResult {
data: CounterDto {
counter: redux_server_rust::incr... | ise-uiuc/Magicoder-OSS-Instruct-75K |
.stroke(Color.gray, lineWidth: 2)
.frame(width: dim * 0.8, height: dim * 0.8)
Circle()
.stroke(Color.gray, lineWidth: 2)
.frame(width: dim * 0.15, height: dim * 0.15)
.offset(x: 0, y: dim * 0.4)
Text("Q")
.font(.custom("AvenirNextCondensed-Medi... | ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>jebediahelliott/AndcultureCode.CSharp.Core<filename>src/AndcultureCode.CSharp.Core/Models/Configuration/OAuthAccountConfiguration.cs
namespace AndcultureCode.CSharp.Business.Core.Models.Configuration
{
/// <summary>
/// Describes common configuration for OAuth providers
/// </summary>
public c... | ise-uiuc/Magicoder-OSS-Instruct-75K |
ang = float(input('Digite o valor do Ângulo: '))
seno = float(math.sin(math.radians(ang)))
coso = float(math.cos(math.radians(ang)))
tang = float(math.tan(math.radians(ang)))
print('O Seno Do Ângulo {0} é {1:.3f}\nO Cosseno Do Ângulo {0} é {2:.3f}\nA Tangente Do Ângulo {0} é {3:.3f}'.format(ang, seno, coso, tang))
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
use App\Models\Branch;
use Illuminate\Http\Request;
use PhpParser\Node\Expr\AssignOp\Concat;
use Illuminate\Support\Facades\DB;
class branchController extends Controller
{
public function read(){
return Branch::all();
}
public function getEmailAddress($union){
return Branch::select('BRANC... | ise-uiuc/Magicoder-OSS-Instruct-75K |
ennemi.AI(self.player.pos, self.platforms)
#gestion of the collision of the platform if falling
| ise-uiuc/Magicoder-OSS-Instruct-75K |
elif pattern[0] == "p_4":
for p in point2cards:
license_pattern = license_action.pattern
license_card = None
if license_pattern[0] != "p_0" :
license_card = license_action.cards... | ise-uiuc/Magicoder-OSS-Instruct-75K |
@else
<a href="/pensions/estado/{{$item->idPensions}}/1" class="btn btn-icons btn-rounded btn-outline-success" title="Activar" style="border-radius:20px"><i
class="fas fa-exchange-alt"></i></a>
@endif
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
},
success: function(data) {
flash("success", "{{ __('common.updated') }} {{ __('common.msg_reload') }}", 1500);
reload(3000);
}
});
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
fn open_hallway_path(&self, room: usize, hallway_location: usize) -> bool {
debug_assert!(0 < room && room < 5);
debug_assert!(hallway_location < 7);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<filename>pyrobud/mt4/__init__.py
from .zeromq import DWX_ZeroMQ_Connector | ise-uiuc/Magicoder-OSS-Instruct-75K |
from gryphon.lib.logger import get_logger
logger = get_logger(__name__)
class VaultOfSatoshiExchange(Exchange):
def __init__(self, session=None, currency=u"CAD", use_cached_orderbook=False):
super(VaultOfSatoshiExchange, self).__init__(session)
self.name = u'VAULTOFSATOSHI'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
m_pTools->LevelShutdownPostEntityAllTools();
}
void CToolFrameworkServer::FrameUpdatePreEntityThink()
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"scatter": '/apps/scatter-test',
"combo": '/apps/combo-test'
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>IOTLink/streamserver<filename>vendor/github.com/hyperledger/fabric-sdk-go/test/scripts/racedetector.sh
#!/bin/bash
#
# Copyright SecureKey Technologies Inc. All Rights Reserved.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/**
* List of email to add
*/
public readonly newSharings: string[] = []
/**
* List of sharing id to remove
*/
public readonly sharingsToRemove: Sharing[] = []
/**
* List of emails of pending sharings to remove
*/
public readonly pendingSharingToRemove: PendingSharing[] = []
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
override var isHighlighted: Bool {
didSet {
updateBackgroundColor()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
/**
* @return \yii\db\ActiveQuery
*/
public function getEstatus()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
var calendarNotificationsEnabled = userPreferences.CalendarNotificationsEnabled;
var timeSpanForNotifications = userPreferences.TimeSpanBeforeCalendarNotifications;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if jitH < self.param_.jitter or jitW < self.param_.jitter:
glog.info('VERY LARGE JITTER, IMAGES MAY BE RESCALED')
def setup(self, bottom, top):
pass
def format_label(self, theta):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from setuptools import setup
setup(
name="codewars_unittest",
version="0.1.0",
packages=["codewars_unittest"],
license="MIT",
description="unittest runner with Codewars output",
install_requires=[],
url="https://github.com/Codewars/python-unittest",
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//printf("max value: %d\n", maxValue);
// Counting
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* @param array $aName to set as session name, default is null and then use name from config.
*/
| ise-uiuc/Magicoder-OSS-Instruct-75K |
SESMailDelivery.objects.filter(message_id=mail_obj['messageId'], recipient__in=recipients).update(
state=SESMailDelivery.STATE_COMPLAINT,
state_data=complaint_obj,
mail_data=mail_obj,
updated_at=timezone.now(),
)
recipients_complaint.send(__name__, recipients=recipients, comp... | ise-uiuc/Magicoder-OSS-Instruct-75K |
let baseURLString = "https://image.tmdb.org/t/p/w500"
let posterURL = URL(string: baseURLString + posterPathString)!
cell.posterImgView.af_setImage(withURL: posterURL)
}
return cell
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def is_magic_name(name: str) -> bool:
return name.startswith('__') and name.endswith('__')
def is_function(node: ast.AST):
return isinstance(node, (ast.FunctionDef, ast.AsyncFunctionDef))
def is_assign(node: ast.AST):
return isinstance(node, ast.Assign)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# one of these is the pyro.infer.Predictive class
num_samples = 100
posterior_predictive = pyro.infer.Predictive(
state_space_model,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Auxiliary variables
impedance = 0
sound_speed = 1
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<th>begin</th>
<th>end</th>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def __repr__(self):
return 'Customer(id=%r, match=%r, customer=%r)' % (
self.id, self.match, self.customer)
@classmethod
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if __name__ == "__main__":
main(parse_args())
| ise-uiuc/Magicoder-OSS-Instruct-75K |
UserName = viewModel.UserName,
Password = viewModel.Password
//
//RowGuid = viewModel.RowGuid,
//ModifiedDate = viewModel.ModifiedDate
};
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
stock.at[last_idx,"MovAvgDiff" ] = round( stock.at[last_idx,"MovAvgLong"] - stock.at[last_idx,"MovAvgShort" ] , 4)
for idx, curr in row_iterator:
close = stock.at[idx,"Close"]
stock.at[idx,"MovAvgShort"] = round( (K_short*close) + last_close*(1-K_short) , 4)
stock.at[idx,"MovAvgLong" ] = round( (K_long*... | ise-uiuc/Magicoder-OSS-Instruct-75K |
export default AdminBar;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
text=/mnt/jyhou/workspace/my_egs/xiaoying_native/s5c/data/xiaoying_native/text
jsonfile=/mnt/jyhou/data/userTextAudio/json.list
exclude_list=exclude.list
score_low=45
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print(count)
if metric == 'pointing':
acc = hits / (hits + misses)
avg_acc = np.mean(acc)
print('Avg Acc: %.4f' % avg_acc)
for c in range(len(acc)):
print(acc[c])
return acc, avg_acc
elif metric == 'average_precision':
class_mean_avg_prec = sum_pr... | ise-uiuc/Magicoder-OSS-Instruct-75K |
// T1: Begin completions
// T1-DAG: Decl[FreeFunction]/OtherModule[CoreFoundation.CFArray]: CFArrayCreate({#(allocator): CFAllocator!#}, {#(values): UnsafeMutablePointer<UnsafePointer<Void>?>!#}, {#(numValues): CFIndex#}, {#(callBacks): UnsafePointer<CFArrayCallBacks>!#})[#CFArray!#]{{; name=.+$}}
// T1-DAG: Decl[FreeF... | ise-uiuc/Magicoder-OSS-Instruct-75K |
return []
else:
return paths[0]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
neutron_scenario.create_and_list_security_groups(
security_group_create_args=security_group_create_args)
neutron_scenario._create_security_group.assert_called_once_with(
**security_group_data)
neutron_scenario._list_security_groups.assert_called_once_with()
@ddt.data... | ise-uiuc/Magicoder-OSS-Instruct-75K |
## Intrinsic Camera projection
m_v = tf.matmul(m_v, tf.tile(projection_matrix[np.newaxis, ...], (tf.shape(m_v)[0], 1, 1)))
m_f = tf.tile(tf.cast(m_f, tf.int32)[tf.newaxis, ...], (tf.shape(m_v)[0], 1, 1))
## Rasterize
return dirt.rasterise_batch(bg, m_v, m_vc, m_f, name... | ise-uiuc/Magicoder-OSS-Instruct-75K |
help='Redirect output to a file')
parser.add_argument('-i', '--input', metavar='input',
type=argparse.FileType('r'),
default=sys.stdin,
help='Input file')
parser.add_argument('--no-pipe', acti... | ise-uiuc/Magicoder-OSS-Instruct-75K |
urlpatterns = [
path("api/", include(router.urls)),
path('api/contact/', views.api_create_contact_view, name='contact'),
path('api/newsletter/', views.api_create_subscriber_view, name='newsletter'),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if __name__ == "__main__":
app.run(debug=True, host="0.0.0.0", port=8080)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$converter = Factory::centralBank();
$this->assertTrue($converter instanceof \Hexcores\Currency\Converter);
$cache = Factory::centralBank();
$this->assertTrue($cache == $converter);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
else:
for i in range(days):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def file_validator(f):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using System;
using TourOfHeroesData.Models;
using TourOfHeroesMapping.Mapping;
public class UserActivityDTO : IMapFrom<UserActivity>
{
public string Action { get; set; }
public DateTime RegisteredOn { get; set; }
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def __init__(self, auth, coin=Coin.BRLBTC):
"""Set auth properties and coin type.
Keyword argument:
auth -- an Auth object
coin -- coin type (Default Coin.BRLBTC)
"""
self.__id = auth.id()
self.__pin = auth.pin()
self.__secret = auth.secret()
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
return summary_content
def fix_prefix_punctuation(summary_content):
"""
Function merges sentences that start with a punctuation character
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print sum(dgr)
ar = np.array( [vgr,dgr,fixed_gr] )
df = pandas.DataFrame(ar.T,index=r,columns=["VMC","DMC","Fix"])
ax = df.plot(title=r"Probability Distribution of $r_{CH}$")
ax.set_xlabel(r"$r_{CH}$ (bohr)",fontsize=16)
ax.set_ylabel("P(r)",fontsize=16)
plt.show()
# end __main__
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import sys
from flask import Flask, send_file
sys.path.insert(1, ".")
from flask_discord_interactions import DiscordInteractions # noqa: E402
| 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.