seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
self.assertLessEqual(len(result), 8)
self.assertNotIn(True, result.duplicated().values)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#include "internal/berryWorkbench.h"
#include "internal/berryWorkbenchPlugin.h"
namespace berry
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
name: string
url: string
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
from matplotlib import pyplot as plt
import os,sys,json
import numpy as np
import glob
#[ethical, adversarial, irrelevant]
mu_taos_mu = {"religion":[0.24714, 0.21126, 0.1801], "ethnicity":[0.14523, 0.1748, 0.15563], "gender": [0.469369, 0.43359, 0.34181]}
def get_data(datapth, cat):
print(f"reading *.log.txt data from {datapath}")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
} else
{
//do nothing
}
}
#endif
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Plot the task space
vertices = boundary + hole
xs, ys = zip(*vertices)
ax.set_xlim(min(xs) - 10., max(xs) + 10.)
ax.set_ylim(min(ys) - 10., max(ys) + 10.)
ax.set_aspect('equal')
# Plot boundary polygon
boundary_polygon = plt.Polygon(boundary, alpha=0.9, color=(0., 0., 0.99), fill=False)
ax.add_patch(boundary_polygon)
# Plot agent location
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.fft_invalid_values_label.setGeometry(QtCore.QRect(450, 40, 91, 21))
self.fft_invalid_values_label.setObjectName(_fromUtf8("fft_invalid_values_label"))
self.fft_audio_duration_label = QtGui.QLabel(self.tab_4)
self.fft_audio_duration_label.setGeometry(QtCore.QRect(10, 10, 111, 16))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
blank=True,
null=True
)
pickup = jsonfield.JSONField(_('pickup'), default={})
dropoff = jsonfield.JSONField(_('dropoff'), default={})
isaccepted = models.BooleanField(_('isaccepted'), default=False)
isnotified = models.BooleanField(_('isnotified'), default=False)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
*/
public function down()
{
Schema::dropIfExists('cms_portlets_translations');
Schema::dropIfExists('cms_portlets');
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#[test]
fn test() {
let word1 = "cabaa".to_string();
let word2 = "bcaaa".to_string();
let res = "cbcabaaaaa".to_string();
assert_eq!(Solution::largest_merge(word1, word2), res);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<gh_stars>0
from .boost import VCBooster
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#!/usr/bin/env python3
def merge(L1, L2):
L3 = L1+L2
for j in range(len(L3)):
for i in range(0, len(L3)-j-1):
if L3[i]> L3[i+1]:
L3[i],L3[i+1] = L3[i+1] , L3[i]
return (L3)
def main():
print((merge([1,2,3],[1,6,7])))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
command = "python dump_km_label.py librispeech960h_feature_mfcc_local {} librispeech960h_feature_mfcc_kmeans {} {} librispeech960h_feature_mfcc_kmeans_label".format(args.split, size, rank)
print ("Running command: {}".format(command))
os.system(command)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
document.getElementById("email_verified").textContent="Send OTP";
$('#check_otp').html('');
$('#verify_student_email').attr('disabled',false);
}else{
var email = $('#verify_student_email').val();
console.log(email);
$.ajax({
| ise-uiuc/Magicoder-OSS-Instruct-75K |
yield power
def validate_exponents(numbers):
for k, number in enumerate(numbers):
for power in number.powers:
assert power < 64, (k, str(number))
def main():
numbers = list(precalculate())
validate_exponents(numbers);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//一个角色对应多个权限 一个权限对应多个角色 多对多关系
public function permission()
{
return $this->belongsToMany('App\Http\Model\Admin\Permission','role_per','role_id','per_id');
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def __init__(self, options: Dict[str, Any]):
super().__init__()
self.layout = QGridLayout()
self.setLayout(self.layout)
# Always add header
self.create_header()
for num, (_, option) in enumerate(options.items()):
self.create_config_row(option, num + 1)
def create_header(self, row_num: int = 0) -> None:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
DEFAULT_REQUEST_HEADERS = {
'Referer': 'https://m.douban.com/book/'
}
ITEM_PIPELINES = {
'book.pipelines.CoverPipeline': 0,
'book.pipelines.BookPipeline': 1,
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
]
@pytest.mark.parametrize(['num', 'roman'], cases2)
def test_roman_1(num: int, roman: str):
assert from_roman3(num) == roman
| ise-uiuc/Magicoder-OSS-Instruct-75K |
os.println(o.op.toString());
}
return 1;
}
return -1;
}
protected String actionArgs(List<String> commandArgs){
StringBuilder buf = new StringBuilder();
for(int i = 1; i < commandArgs.size(); i++){
if(i > 1){
buf.append(" ");
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub mod preservation_bucket;
/// Defines structures related to rare combination comparisons
/// between the synthetic and sensitive datasets
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# even if [doc.place] is empty
cityData = db.getByBlock(start_ts='1588261100',end_ts='1588261100',cityname='Sydney')
cityData = db.getByBlock(start_ts='1588261100',end_ts='1588261100') # search for all twitters ignore city information
""" sample7, get analysis results"""
serverURL = 'http://admin:admin1234@172.26.130.149:5984/'
dbname = 'analysis_results'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
logging.info("Execute installation")
self.subprocess_call(command)
package_build = self.parse_lm_installer_builddate()
installed_build = self.get_license_manager_build_date()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export interface GetAdPlacementsResult extends PlayFabModule.IPlayFabResultCommon {
/** Array of results */
AdPlacements?: AdPlacementDetails[];
}
export interface GetCatalogItemsRequest extends PlayFabModule.IPlayFabRequestCommon {
/** Which catalog is being requested. If null, uses the default catalog. */
CatalogVersion?: string;
}
export interface GetCatalogItemsResult extends PlayFabModule.IPlayFabResultCommon {
/** Array of items which can be purchased. */
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// Check the stored code with the passed and if they match, save the new password.
if (! Reminder::complete($user, $code, $password)) {
$this->alertError(trans('auth::code_invalid'));
return;
}
Mail::send('auth::emails.send_password', compact('user', 'password'), function(\Illuminate\Mail\Message $message) use ($email, $user)
{
$message->to($email, $user->username)->subject(trans('auth::new_pw'));
});
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// Defines a contract for a Task
/// </summary>
/// <remarks>
/// Every Task inherits from ICommand giving it an Execute() behavior
/// </remarks>
public interface ITask : ICommand
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// subclass::Property("large_file_url", ..) => {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# create mongo connection instance
platform_db_connection_instance = connect_to_database(
settings.PLATFORM_DEFAULT_ALIAS)
accounts_db_connection_instance = connect_to_database(
settings.ACCOUNT_DEFAULT_ALIAS)
# resolve domain from db
| ise-uiuc/Magicoder-OSS-Instruct-75K |
== "http://afs.org.tw/instance_id/1234-4567-7890/model_respositories/123/upload"
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.HyperLink HomeLink;
/// <summary>
/// BeforeImage control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Image BeforeImage;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
-U SA -P "${PASS}" \
-Q 'RESTORE FILELISTONLY FROM DISK = "/var/opt/mssql/backup/AdventureWorks2017.bak"' \
| ise-uiuc/Magicoder-OSS-Instruct-75K |
max=len(self._routes) - 1,
layout={"width": "80px"},
)
self._buttons["cluster"] = Button(description="Cluster")
self._buttons["cluster"].on_click(self._on_cluster_button_clicked)
box = HBox(
[
Label("Number of clusters to make"),
self._input["number_clusters"],
self._buttons["cluster"],
]
)
display(box)
help_out = Output()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import os #connected with practice10.py
path = 'F:\\Github\\Python_season2'
os.chdir(path)
from practice10 import Snake
from practice13 import Food
from practice14 import Score
screen = t.Screen()
screen.setup(width=600,height=600)
screen.bgcolor("black")
screen.title("My snake")
screen.tracer(0)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# plot graph visualisation
nx.draw(graph, pos, with_labels=False)
plt.show()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#! /usr/bin/env python
# -*- coding: utf-8 -*-
"""
Module that contains utils functions related with Ziva plugin
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
@Override
public List<Po> getIn(final List<Po> records) {
return this.dao.selectIn(records);
}
@Override
public List<Po> getByPage(final PageInfo pageInfo) {
return this.getByPage(pageInfo, "", "");
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# noinspection PyPep8Naming
X_intercept = np.linspace(1, 1, len(XY))
self.X = np.column_stack((X_intercept, XY[:, :-1]))
self.Y = XY[:, -1]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
__version__ = "0.1.3"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""Degree angle for relative x, y pair
"""
return (180/pi)*xy_to_rad(dx, dy)
def get_angle_array(bins, degrees=False, zero_center=False):
"""Get array vector of radian angles for a binned angle range
"""
amax = degrees and 360.0 or TWO_PI
if zero_center:
return arange(-amax/2, amax/2, amax/bins)
return arange(0, amax, amax/bins)
def get_angle_histogram(x0, y0, bins):
"""Bin x and y offset arrays into a directional histogram on [0, 2PI)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
return true
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
A = pd.concat(tst1,ignore_index=False)
df = pd.DataFrame(A)
df.reset_index(inplace=True)
df.drop(columns=['index'],inplace=True)
df.Id_sensor = df.Id_sensor.astype('float64')
data = df.copy()
X = data.iloc[:,:-1]
y = data.Label
x_train , x_test, y_train,y_test = train_test_split(X,y,random_state = random_state)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
public IEnumerable<VideoPreviewViewModel> Videos { get; set; }
}
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
def load_properties_file(self):
"""
This method loads the properties/ini file
:return: this method returns config reader instance.
"""
config = None
try:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
_assert_step_collection(self.index.values)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.navigationController?.popToRootViewController(animated: true)
}catch let err {
print(err)
}
}else{
let confirmVC = PincodeViewController(prevHash: tempPass, mode: .confirm)
show(confirmVC, sender: self)
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def get_context(context):
try:
docname = frappe.form_dict.docname
context.wwave = frappe.get_doc("WWave", docname)
except Exception as e:
frappe.local.flags.redirect_location = '/404'
raise frappe.Redirect
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from pyvisdk.thirdparty import Enum
VirtualMachineUsbInfoFamily = Enum(
'audio',
'bluetooth',
'communication',
'hid',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
:gdf: grouped DataFrame
:returns: @todo
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
else
{
options.Inverse(output, context);
}
}
Handlebars.RegisterHelper("NotDefaultDate", notDefaultDateHelper);
Handlebars.RegisterHelper("FormatDate", (writer, context, parameters) =>
{
var date = (DateTime)parameters[0];
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# it is hard-coded in some service configuration files.
return ssl_private_key, ssl_certificate, None
wildcard_domain = re.sub("^[^\.]+", "*", domain)
if domain in ssl_certificates:
cert_info = ssl_certificates[domain]
cert_type = "multi-domain"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
try:
from StringIO import StringIO
except ImportError:
from io import StringIO
def init(model):
"""
Initialize the server. Loads pyfunc model from the path.
"""
app = flask.Flask(__name__)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using System.Linq;
using System.Text;
namespace NFrame
{
public abstract class NFIKernelModule : NFILogicModule
{
#if NF_CLIENT_FRAME
public abstract NFILogicClassModule GetLogicClassModule();
public abstract NFIElementModule GetElementModule();
#endif
public abstract bool AddHeartBeat(NFGUID self, string strHeartBeatName, NFIHeartBeat.HeartBeatEventHandler handler, float fTime, int nCount);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class FilterFile:
def __init__(self, file='FILTER.RES.latest', path='./'):
"""
Read a EAZY filter file.
.. plot::
:include-source:
import matplotlib.pyplot as plt
from eazy.filters import FilterFile
res = FilterFile(path=None)
print(len(res.filters))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class InfoController extends Controller
{
public function home()
{
return $this->customView('infosort', ['view' => 'infohome']);
}
public function listinfo()
{
return $this->customView('infolist', ['view' => 'infolist']);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def remove(self, infohash):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<filename>src/raft/mod.rs
use std::time::Duration;
use actix::prelude::*;
// use actix::{Arbiter, FinishStream};
use actix_raft::{
config::{Config, SnapshotPolicy},
NodeId, Raft,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/** @var OrderItem */
protected $orderItem;
public function __construct()
{
$this->setId();
$this->setCreated();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/**
* Returns the event details
*
* @param number
* @return array
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Tries to match received packet with a known link
# configuration
matched = False
for link in self.link_configs:
if packet.dest_panid != link.dest_panid:
continue
if packet.fcf_srcaddrmode == 3: # Long addressing mode
if packet.src_addr != link.source.get_long_address():
continue
if packet.dest_addr != link.destination.get_long_address():
continue
else:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import { subscriptions } from './subscriptions'
app({
init: INITIAL_STATE,
view: (s: State) => s.router.view(s) || h('div', {}),
node: document.getElementById('app'),
subscriptions
})
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# import required scripts
DIR="${BASH_SOURCE%/*}"
if [[ ! -d "$DIR" ]]; then DIR="$PWD"; fi
source "$DIR/../config_vars.sh"
source "$DIR/../utils.sh"
# init
script_name=`basename "$0"`
echo "executing script :: $script_name"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Object.keys(error)
.filter((key) => !['code', 'message'].includes(key))
.forEach((key) => (this.additional[key] = error[key]));
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
TransactionRow(transaction: $0)
}.onDelete { offsets in
withAnimation {
viewModel.deleteItems(at: offsets, info: info)
}
}
} header: {
Text(info.transactions[0].timestamp!, style: .date)
.font(.headline)
.fontWeight(.bold)
.foregroundColor(.black.opacity(0.6))
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
log.info("Getting artifact")
# YOUR CODE HERE: get the artifact and store its local path in the variable "artifact_path"
# HINT: you can get the artifact path by using the "file()" method
artifact = run.use_artifact(args.artifact_name)
artifact_path = artifact.file()
log.info("Artifact content:")
with open(artifact_path, "r") as fp:
content = fp.read()
print(content)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
setTitleColor(titleColor, for: UIControl.State.normal)
return self
}
func image(imageName: String? = nil, tintColor: UIColor? = nil, imageContentMode: UIView.ContentMode = UIView.ContentMode.scaleAspectFit, insets: UIEdgeInsets = UIEdgeInsets.zero) -> DButton {
setImage(imageName?.image(), for: UIControl.State.normal)
if let tintColor_ = tintColor {
imageView?.tintColor = tintColor_
}
imageView?.contentMode = imageContentMode
imageEdgeInsets = insets
return self
}
func font(name: String, size: CGFloat) -> DButton {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
if(isset($data['ticket_first_'.$ticket['type'].'_1']) || isset($data['ticket_first_'.$ticket['type'].'_2']))
{
return $response->withJson(array('err'=>'You already have requested a ticket type which you already have the maximum number of.'));
}
}
if($ticketTypes[$ticket['type']]['count'] >= ($ticketTypes[$ticket['type']]['max_per_request'] - 1))
{
if(isset($data['ticket_first_'.$ticket['type'].'_2']))
{
return $response->withJson(array('err'=>'You already have requested two many of a ticket type which you already have some of.'));
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if index == total:
break
counter_file.close()
print("SUCCES!! Check if bake is correct.")
print("Baked from file: ", args.file)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
this.mnuClose = new System.Windows.Forms.ToolStripMenuItem();
this.mnuSpecimenSetup = new System.Windows.Forms.ToolStripMenuItem();
this.mnuUserReportAccess = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator6 = new System.Windows.Forms.ToolStripSeparator();
this.mnuSampleCancellation = new System.Windows.Forms.ToolStripMenuItem();
this.mnuUtility = new System.Windows.Forms.ToolStripMenuItem();
this.mnuResetPassword = new <PASSWORD>.ToolStripMenuItem();
this.toolStripSeparator7 = new System.Windows.Forms.ToolStripSeparator();
this.mnuDemandRequisition = new System.Windows.Forms.ToolStripMenuItem();
this.imageList1 = new System.Windows.Forms.ImageList(this.components);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
path_reproj : '/Volumes/razorback3/cuc36/reproj'
'''
parms = yaml.load(documents)
## Or define the parameteres in a file, and load them with
# stream = file('document.yaml', 'r')
# params = yaml.load(stream)
def makeProjection(hdr):
"""Return a wcs projection object based on the XMM event header keys."""
wcskeys = {
'NAXIS': 2,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// ios-Technical-Test
//
// Created by JORDI GALLEN RENAU on 16/11/20.
//
import UIKit
extension UIScrollView {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Base = declarative_base() | ise-uiuc/Magicoder-OSS-Instruct-75K |
dataset1,
dataset2,
exception_class,
replacements=None):
"""Checks that datasets raise the same error on the first get_next call."""
next1 = self.getNext(dataset1)
next2 = self.getNext(dataset2)
try:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#TODO: Get rid of (conceptually correct) additional request to odesk.com
user = django_authenticate(token = token)
if user:
login(request, user)
else:
pass
#Probably the odesk auth backend is missing. Should we raise an error?
redirect_url = request.session.pop(ODESK_REDIRECT_SESSION_KEY,
redirect_url)
response = HttpResponseRedirect(redirect_url or '/')
if not settings.ODESK_AUTH_ONLY and settings.ODESK_ENCRYPT_API_TOKEN:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>IdeaBot/pipes
| ise-uiuc/Magicoder-OSS-Instruct-75K |
DOXYFILE = 'Doxyfile-mcss' | ise-uiuc/Magicoder-OSS-Instruct-75K |
./build.sh "$TARGET_XCP_NG_VERSION"
REPOS=xcp-emu-manager
CONTAINER_NAME=${CONTAINER_NAME:-build-env}
for REPO in ${REPOS}; do
REPO_PATH=/tmp/"$REPO"
git clone --branch "$TARGET_XCP_NG_VERSION" git://github.com/xcp-ng-rpms/"$REPO" "$REPO_PATH"
./run.py --name "$CONTAINER_NAME" \
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# @param boolean firstTime if is the first access to categories box
# @return String list of selected categories with character
# separator '|'
##
function selectCategoriesToBrowse
{
local categoryArray=(${!1}) firstTime="$2" selection
# Get selected categories from Dialog box / Zenity window
selection=`eval $( getCategoriesWindow categoryArray[@] "$firstTime" )`
if [[ $? -ne 0 ]]; then
echo "$CANCEL_CODE"
else
if [ -n "$selection" ]; then
local selectionArray
| ise-uiuc/Magicoder-OSS-Instruct-75K |
package club.coding.med.staffpayroll.employees;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
genes.append(lineData[1])
regs.append(lineData[0])
genes = np.unique(genes)
regs = set(regs)
#Create directed graph
net = nx.DiGraph()
for gene in genes:
net.add_node(gene)
for edge in edges:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
BulkClassifyUtterance {
text,
}
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
assert(status == Int32(0))
return data
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class EigerDetector(DetectorBase):
_html_docs = ['EigerDoc.html']
cam = C(cam.EigerDetectorCam, 'cam1:')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from django.db import migrations
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class BDFCard(object):
"""
A BDFCard is a list that has a default value of None for fields out of
range.
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<filename>run_pyinstaller.sh<gh_stars>1-10
#!/usr/bin/env bash
pyinstaller "FakemonCreator.spec" | ise-uiuc/Magicoder-OSS-Instruct-75K |
test('[1] to equal 1', () => {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
backup = n01->f;
n01->f += delta;
patch_2 = BicubicPatch::create(n00, n10, n01, n11);
compare_normal_derivative(delta, patch_2, base_normal, 8,
analytic_full_deriv);
n01->f = backup;
backup = n01->dx;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// </summary>
/// <param name="predicate">Parameter <see cref="IRepository{TEntity}.GetByCriteriaAsync(Expression{Func{TEntity, bool}})"/></param>
/// <returns>Return <see cref="IRepository{TEntity, TKey}.GetByCriteriaAsync(Expression{Func{TEntity, bool}})"/></returns>
public Task<TEntity> GetByCriteriaAsync(Expression<Func<TEntity, bool>> predicate)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print("PROD = " + str(PROD))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
results = iterate_query(SQL, conn, arraysize=100)
for row_dict in results:
print row_dict
| ise-uiuc/Magicoder-OSS-Instruct-75K |
fn set_last_modification(&mut self, _time: u32) -> Result<(), ()> {
unimplemented!()
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# a copy of the License at
#
# http://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 governing permissions and limitations
# under the License.
import os
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# international copyright in software created by its employees and domestic
# copyright (or licensing rights) in portions of software that were assigned or
# licensed to NIST. To the extent that NIST holds copyright in this software, it is
# being made available under the Creative Commons Attribution 4.0 International
# license (CC BY 4.0). The disclaimers of the CC BY 4.0 license apply to all parts
# of the software developed or licensed by NIST.
#
# ACCESS THE FULL CC BY 4.0 LICENSE HERE:
# https://creativecommons.org/licenses/by/4.0/legalcode
"""The module defining the task plugin endpoints."""
import uuid
from typing import List, Optional
import structlog
| ise-uiuc/Magicoder-OSS-Instruct-75K |
menu.show();
toogleAI.show();
if(resumeShow){
resume.show();
} else{
resume.hide();
}
} else{
menu.hide();
toogleAI.hide();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
},
validate: values => {
const errors: FormikErrors<SignupValues> = {};
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/** Tells the delegate that the specified row is now selected
- Parameters:
- expandableTableView: An expandable table view object informing the delegate about the new row selection
- indexPath: An index path locating the new selected row in `expandableTableView`
*/
| ise-uiuc/Magicoder-OSS-Instruct-75K |
package ts.com.service.util.db;
import java.util.ArrayList;
import java.util.List;
public class Select {
private String selectBeginning;
private Query query;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
client.describe_stack_events = describe_stack_events
session = Mock()
session.client = Mock(return_value=client)
writer = StringIO()
assert (
entry(
[valid_arn],
session=session,
writer=writer,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<div class="col-sm-12">
<div class="card">
<div class="card-header p-3">
<div class="row">
<div class="col-lg-6">
<h5 class="card-title">Bentuk Paving</h5>
</div>
<div class="col-lg-6">
<a href="<?= site_url('master/tambah_bentuk') ?>" class="btn btn-sm btn-primary float-end">Tambah Data</a>
</div>
</div>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Solution(object):
| 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.