seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
)
f_out = os.path.join(
tab2rdf_service.get_tmp_dir(), tab2rdf_service.get_link_filename_template(i)
)
tab2rdf_service.link(f_in, f_out)
assert_exists(f_out)
def test_map(tab2rdf_service):
for i in range(0, tab2rdf_service.get_nb_chunks()):
f_in = os.path.join(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Generated by Django 3.2.6 on 2021-08-18 12:38
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
| ise-uiuc/Magicoder-OSS-Instruct-75K |
namespace GPBMetadata\Google\Ads\GoogleAds\V1\Enums;
class SearchEngineResultsPageType
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let crumbs = actual["breadcrumbs"] as? [[String: Any]]
XCTAssertNotNil(crumbs)
XCTAssertEqual(1, crumbs?.count)
let context = actual["contexts"] as? [String: [String: Any]]
XCTAssertEqual(1, context?.count)
XCTAssertEqual(TestData.context["context"], context?["context"] as? [String: String])
XCTAssertNotNil(actual["message"] as? [String: Any])
XCTAssertEqual(expected.logger, actual["logger"] as? String)
XCTAssertEqual(expected.serverName, actual["server_name"] as? String)
XCTAssertEqual(expected.type, actual["type"] as? String)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@Override
public void jumping(final int _true, final int _false) {}
@Override
public String toAssembly() {
return " push " + value + "\n";
}
@Override
public String toS(int tab) {
if (value) {
return "#t";
} else {
return "#f";
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import boto3
from botocore.exceptions import ClientError
from datetime import datetime, timedelta
from botocore import session
from awscli.customizations.eks.get_token import STSClientFactory, TokenGenerator, TOKEN_EXPIRATION_MINS
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from person import Person
class Player(Person):
def __init__(self,starting_chips=100):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
cd $FTP_PATH
hash
get $REMOTE_FILE
bye
| ise-uiuc/Magicoder-OSS-Instruct-75K |
UInt8.signerfromHex(hexString: String(hexa[$0..<$0.advanced(by: 2)]))
}
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
sm.spawnMob(2700303, 250, 57, False)
sm.spawnMob(2700303, 250, 57, False)
sm.spawnMob(2700304, 300, 57, False)
sm.spawnMob(2700304, 300, 57, False)
sm.spawnMob(2700304, 300, 57, False)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'heading': 'Main Menu',
})
IogtFlatMenuItem.objects.get_or_create(link_url='#menu', menu=menu, defaults={
| ise-uiuc/Magicoder-OSS-Instruct-75K |
--output_dir $OUTPUT \
--from_pretrained $FROM_PRETRAIN \
--batch_size 1 \
--init_checkpoint $CKPT \
--n-samples 300 \
--doc_stride 128 \
--language $LANGUAGE
done
| ise-uiuc/Magicoder-OSS-Instruct-75K |
egtriangle!(
(32, 0),
(0, 64),
(64, 64),
stroke_color = Some(BinaryColor::Off),
fill_color = Some(BinaryColor::Off)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
else {
wc.x = CB_ALGS::get_cost_pred<is_learn>(c.scorer, nullptr, *(examples[i]), 0, 2);
}
if(shared)
wc.class_index = i-1;
else
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public string Email { get; set; }
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import React, {Component} from 'react';
import Base, {BaseProps} from './base';
export default class EyeSeen extends Component<Partial<BaseProps>> {
static defaultProps = {
height: '16px',
predefinedClassName: 'data-ex-icons-eyeseen'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print(f'O número {n1} possui como porção inteira {math.trunc(n1)}')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
n,c,h,w = self.input_shape
process_img = cv2.resize(image, (w, h) ,interpolation=cv2.INTER_AREA)
#Chaning the channels
| ise-uiuc/Magicoder-OSS-Instruct-75K |
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: self.reuseId, for: indexPath)
let (feature, enabled) = self.features[indexPath.row]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
num = 1
| ise-uiuc/Magicoder-OSS-Instruct-75K |
DB::table('categories')->insert([
'name' => 'Pasta Salad Recipes'
]);
DB::table('categories')->insert([
'name' => 'Smoothie Recipes'
]);
DB::table('categories')->insert([
'name' => 'Sandwiches'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
]
result = model.predictAsync(features).get()
assert len(result[0].outputs) == 5
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$table->string('ae_code');
$table->string('bo_code');
| ise-uiuc/Magicoder-OSS-Instruct-75K |
height=6, kind="bar", palette="muted", legend=False, orient='h')
g.despine(left=True)
g.set_ylabels("Sensitivity")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
searcher = Castella()
searcher.execute_search() | ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>Hough-Lab/Next-JS-Landing-Page-Starter-Template
import React from 'react';
const Logo = () => {
return (
<span>
<img className={`w-40 h-40 z-20 flex inline-flex`} src={`${process.env.baseUrl}/assets/images/isonode_logo_purple_2-cropped.png`}></img>
</span>
);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public void testNoIP() {
thrown.expect(IllegalArgumentException.class);
thrown.expectMessage("should be a ipv4 address");
a("www.denominator.io.", "");
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from .pyramid import merge_pyramid, create_pyramid
from .segmentation.segment import cell_seg
from .tissue_cut.tissue_seg import tissue_seg
from .segmentation_deepcell.segment import cell_seg_deepcell
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
positions = [
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
name.parse::<CLAsAvailable>().unwrap()
}
pub fn cla_settings(name: String) -> Option<HashMap<String, String>> {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
status = {}
# Open 4000 series PicoScope
# Returns handle to chandle for use in future API functions
status["openunit"] = ps.ps4000aOpenUnit(ctypes.byref(chandle), None)
try:
assert_pico_ok(status["openunit"])
except:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Check for ioutil in any .go file, excluding one special case we
# already know about
OUT=$(grep -r ioutil -I --include=\*.go --exclude stdlib.go .)
if [ -z "$OUT" ]; then
echo "Success: No usages of ioutil found"
exit 0
else
echo "ERROR: ioutil check failed"
echo "$OUT"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
void generateStringMap(const EnumItems &enumItems, std::string displayName)
{
std::string variableName = toLower(displayName) + "Names";
print(indent1, "const std::map<", displayName, ", std::string> ", variableName, "({");
for(const auto& value : enumItems)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
/// New data request with provided offsets
pub fn offsets(
topic: String,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$this->assertEquals( '444', $Media->height );
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return BertEvaluator(self, iter_steps=iter_steps)
def get_model_fn(self, *args):
return NotImplementedError() | ise-uiuc/Magicoder-OSS-Instruct-75K |
cur += 2
i = 0
while i < Number_of_static_fields:
i += 1
cur += 4
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from dvc.tree.pool import get_connection
from dvc.tree.ssh.connection import SSHConnection
from tests.remotes.ssh import TEST_SSH_KEY_PATH, TEST_SSH_USER
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for record in fasta::Reader::new(io::stdin(), true).records() {
let fasta::Record { header, sequence } = record?;
let forward = Strand::from(&sequence);
let reverse = forward.reversed();
for &(name, frame, reversed) in &frames {
let strand = if reversed { &reverse } else { &forward };
| ise-uiuc/Magicoder-OSS-Instruct-75K |
} from "../../../lib/index";
import fragmentSource from "./fragment.glsl";
| ise-uiuc/Magicoder-OSS-Instruct-75K |
this_node = ModuleAttribute.objects.create(
module=parent_node,
name=member_name,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
__EMAIL__ = "<EMAIL>"
import boto3
s3_resource = boto3.resource("s3")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@register.simple_tag
def get_recent_posts(num=5):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
verbose_name, _('(object)')))
dd.update_field(cls, 'owner_id', **kwargs)
if verbose_name is not None:
kwargs.update(
verbose_name=format_lazy(u"{} {}",
verbose_name, _('(type)')))
dd.update_field(cls, 'owner_type', **kwargs)
def update_owned_instance(self, controllable):
if self.owner:
self.owner.update_owned_instance(controllable)
super(Controllable, self).update_owned_instance(controllable)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
});
c.bench_function("legion create_transforms 10000", move |b| {
b.iter_batched(prepare, run10000, BatchSize::SmallInput);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
down_revision = '<PASSWORD>'
branch_labels = None
depends_on = None
def upgrade():
op.add_column("collection",
sa.Column('gather_start_at', sa.DateTime(timezone=False), nullable=True)
)
op.add_column("collection",
sa.Column('gather_end_at', sa.DateTime(timezone=False), nullable=True)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// SocialAppCleanSwift
//
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Sometimes we might run into a situation where a different user takes over
# control of the brew dirs. That causes the brew update to fail.
# Temporarily allow the user to take over control of brew files.
echo ***
echo *** You may need to enter your admin password to update the brew files:
echo ***
sudo chown -R $(whoami) /usr/local/Cellar
sudo chown -R $(whoami) /usr/local/Homebrew
sudo chown -R $(whoami) /usr/local/var/homebrew
sudo chown -R $(whoami) /usr/local/etc/bash_completion.d /usr/local/include /usr/local/lib/pkgconfig /usr/local/share/aclocal /usr/local/share/locale /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew/locks
brew install cmake
brew install wget
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public NTShare[] GetShares() {
Exception[] errors;
return GetShares(out errors);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
--configuration-settings "customConfigMap=$CUSTOM_LOCATION_NAMESPACE/kube-environment-config" \
--configuration-settings "envoy.annotations.service.beta.kubernetes.io/azure-load-balancer-resource-group=${RESOURCE_GROUP}"
EXTENSION_ID=$(az k8s-extension show --cluster-type connectedClusters -c $CLUSTER_NAME -g $RESOURCE_GROUP --name $EXTENSION_NAME --query id -o tsv)
az resource wait --ids $EXTENSION_ID --custom "properties.installState=='Installed' || properties.installState=='Failed'" --api-version "2020-07-01-preview"
EXTENSION_INSTALL_STATE=$(az k8s-extension show --cluster-type connectedClusters -c $CLUSTER_NAME -g $RESOURCE_GROUP --name $EXTENSION_NAME --query "installState" -o tsv) && echo $EXTENSION_INSTALL_STATE
[[ $EXTENSION_INSTALL_STATE != "Installed" ]] && echo "extension not installed, check for errors">&2
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# shape = [100, 100]
# test(shape, input_data, max_iterations=2, save_as="sample_100X100_1000N") | ise-uiuc/Magicoder-OSS-Instruct-75K |
getProfile(@Request() req) {
return {
text: 'You passed jwt guard',
user: req.user,
};
}
@UseGuards(AuthGuard('jwt'))
@HttpCode(HttpStatus.OK)
@Post('token')
async refresh(@Request() req) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'src': {
'index.ts': 'export * from "./hello";',
'hello.ts': 'export const hello = "HELLO"',
},
'package.json': '',
},
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.assertIsNotNone(self.JSCuisine.platformtype)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* i2c_lpc11uxx.cpp
*
* Created on: Mar. 1, 2019
* Author: hoan
*/
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<!-- this will be full of group specific links -->
<!--to be added on completion of entire project-->
<?php if($reg_clearance[0] || $reg_clearance[2]): ?>
<li><a href="<?php echo base_url('registration') ?>">Registration</a></li>
<?php endif; ?>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import UIKit
@objc
public protocol FPNTextFieldDelegate: UITextFieldDelegate {
@objc
optional func fpnDidSelectCountry(name: String, dialCode: String, code: String)
func fpnDidValidatePhoneNumber(isValid: Bool)
func fpnDisplay(selectCountryListController: UIViewController)
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
`ValidationError` exception whenever a statement whose severity
level is greater or equal to `exception_level` fails.
Parameters
----------
validation_result_document : dict
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//
import UIKit
class SportSelectionViewController: UIViewController {
let sportController = SportController()
//changed to var from let to function
var selectedLevel = LevelSelectionViewController.selectedLevel ?? "High School"
static var selectedSport: String!
@IBOutlet var sportPickerView: UIPickerView!
| ise-uiuc/Magicoder-OSS-Instruct-75K |
curs.execute(sql_cmd, row)
load_course_database('course1.db', 'seas-courses-5years.csv') | ise-uiuc/Magicoder-OSS-Instruct-75K |
Photoeffect_Plank() | ise-uiuc/Magicoder-OSS-Instruct-75K |
export class TextareaInputComponent implements OnInit {
@Output() changed = new EventEmitter<boolean | null>();
@Input() set form(value: FormGroup) {
this.formGroup = value;
this.ngOnInit();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from utils.libraries.Get_duration_execution_time import Get_duration_execution_time
from utils.libraries.Bubble_sort import Bubble_sort
from utils.libraries.Insertion_sort import Insertion_sort
| ise-uiuc/Magicoder-OSS-Instruct-75K |
###############################################################################
# lit tests
###############################################################################
if [ ${COVERAGE} -eq 1 ]; then
coverage_setup
fi
make systemtests
# If metaSMT is the only solver, then rerun lit tests with non-default metaSMT backends
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""Construct the email in a sensible order.
Make sure the message text comes before any extra attachments.
"""
if self.message:
self.email.attach(MIMEText(self.message))
for f in self.files:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
yaw_interp = None
pitch_interp = None
roll_interp = None
north_interp = None
east_interp = None
down_interp = None
def load_horiz(filename):
global roll_interp
global pitch_interp
| ise-uiuc/Magicoder-OSS-Instruct-75K |
task_date_month = int(groups[2])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
assert_allclose(ds['b'].data, [20])
assert_allclose(ds['c'].data, [100, 300])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
session = get_session(arg_config.url_path)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if (!isLast && !_isRepeatedProcessor)
{
return;
}
// cache and forward the new result
CloseableReference<CloseableImage> newCachedResult =
_memoryCache.Cache(_cacheKey, newResult);
try
{
Consumer.OnProgressUpdate(1f);
Consumer.OnNewResult(
(newCachedResult != null) ? newCachedResult : newResult, isLast);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import Foundation
import UIKit
struct Meme {
var topString: String
var bottomString: String
var originalImage: UIImage
var memedImage: UIImage
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public protocol CardObjectIdentifierType: Equatable, ExpressibleByStringLiteral {
/// The representation for the Card Object Identifier (E.g. AID, FID)
var rawValue: Data { get }
/// Figure out whether a value could be plausible as identifier type
static func isValid(_ value: Data) -> Result<Data, Error>
}
extension CardObjectIdentifierType {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
sq_dist, face_idx, closest_pts = distance_to_mesh(mesh, pts, "cgal")
self.assert_array_equal(sq_dist, np.zeros(2))
def test_boundary_pts_geogram(self):
mesh = generate_box_mesh(
np.array([0, 0, 0]), np.array([1, 1, 1]))
pts = np.array([
[0.0, 0.0, 0.0],
[1.0, 1.0, 1.0] ])
if "geogram" in BVH.available_engines:
sq_dist, face_idx, closest_pts = distance_to_mesh(mesh, pts, "geogram")
self.assert_array_equal(sq_dist, np.zeros(2))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self, mocker, stage, stages_configured_for_both, add_pipeline_root, method_request_event
| ise-uiuc/Magicoder-OSS-Instruct-75K |
True
False
Raises:
None
'''
all_apps_achieved_requested_state = False
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public int[] removedTokensStart;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
while [[ -z "${BEASTSPLITTER_CONNECT_PORT}" ]] ; do
BEASTSPLITTER_CONNECT_PORT=$(whiptail --backtitle "${RECEIVER_PROJECT_TITLE}" --title "${BEASTSPLITTER_CONNECT_PORT_TITLE}" --nocancel --inputbox "\nPlease enter the port beast-splitter will connect to.\nThis is generally port 30104 on dump1090." 10 78 "30104" 3>&1 1>&2 2>&3)
BEASTSPLITTER_CONNECT_PORT_TITLE="Connect Port (REQUIRED)"
done
fi
## DOWNLOAD SOURCE
echo -e ""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for the ith input.
- y: Vector of labels, of shape (N,) where y[i] is the label for x[i] and
0 <= y[i] < C
Returns a tuple of:
- loss: Scalar giving the loss
- dx: Gradient of the loss with respect to x
"""
N = x.shape[0]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Box::new(ProjectionDb {}),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""Tests the TSK partition directory."""
def setUp(self):
"""Sets up the needed objects used throughout the test."""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
public init(includeInternalResources: Bool = true,
includeDocumentPath: String? = "LispKit") {
self.fileManager = FileManager.default
self.searchUrls = []
| ise-uiuc/Magicoder-OSS-Instruct-75K |
c_set = set(three)
if (a_set & b_set & c_set):
all.append(a_set & b_set & c_set)
print("All 3 mentioned ", all)
messenger(all)
else: print("Nothing Notable")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
context.onboardingID = onboardingID
let flow = OnboardingFlow(flowType: .restore(onboardingID: onboardingID), context: context, steps: steps)
return flow
}
func resettingFlow(for onboardingID: UUID) -> OnboardingFlow {
let steps = self.resettingSteps
var context = OnboardingContext(onboardingID: onboardingID, presentationDelegate: OnboardingFlowProvider.modalUIViewControllerPresenter)
context.onboardingID = onboardingID
let flow = OnboardingFlow(flowType: .reset(onboardingID: onboardingID), context: context, steps: steps)
return flow
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for myfollowingboard in result["data"]:
followingboard = PinterestBoard(myfollowingboard)
graph.create_node(followingboard)
graph.create_edge(Edge(user.get_id(), followingboard.get_id(), "FOLLOWING"))
creator_username = myfollowingboard["creator"]["url"].split('/')[3]
creator_result = self.get_single_user(creator_username)
creator = PinterestUser(creator_result["data"])
graph.create_node(creator)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
}
};
#endif
| ise-uiuc/Magicoder-OSS-Instruct-75K |
mod sugar;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
build=$(< .build)
build=build+1
echo "Build:1."${build}
docker build -t 01alchemist/django-host:1.${build} .
docker build -t 01alchemist/django-host:latest .
echo ${build} > .build | ise-uiuc/Magicoder-OSS-Instruct-75K |
topic_selected = topic_selection()
pathToTopic = pathToDataFolder+"/"+topic_selected
pathToUserCsv = pathToTopic + potentialMiPath + "user_list.csv"
unique_users_returned = retrieve_user_list(pathToUserCsv)
retrieve_and_store_tweet_tab_back(pathToTopic + tweetsPath, unique_users_returned, api) | ise-uiuc/Magicoder-OSS-Instruct-75K |
if ($inventoryDetailRes['status'] != 200) {
$tr->rollBack();
file_put_contents(Yii::getAlias('@webroot/') . '/inventory_error.text', date('Y-m-d H:i:s') . '盘点详情插入失败' . $goods_val['stock_id'] . PHP_EOL, FILE_APPEND);
continue;
}
$tr->commit();
}
$array = $inventoryModel->do_update(['id' => $inventoryRes['data']], ['new_number' => $number, 'old_number' => $old_goods_number]);
if ($array['status'] == 200) {
$transaction->commit();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
use wasm_bindgen_futures::spawn_local;
use crate::on_click;
//use crate::row_on_click;
use crate::utils_mod as ut;
use crate::web_sys_mod as w;
/// fetch and inject HTML fragment into index.html/div_for_wasm_html_injecting
pub async fn page_manual_rates() {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#v_min *= 1.3
v_min = max(v_min, np.percentile(img[..., i], (40.0)))
v_max = np.percentile(img[..., i], (98.0))
output_img[..., c] = exposure.rescale_intensity(img[..., i], in_range=(v_min, v_max))
return output_img
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
@_versioned
@_transparent
internal func _isReleaseAssertConfiguration() -> Bool {
// The values for the assert_configuration call are:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return $$name;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
nasm multiboot.asm -o multiboot.sys
nasm multiboot2.asm -o multiboot2.sys
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def f(self, x):
m = self.xdim/2
a = self.c * norm(x[:m])
b = norm(x[m:])
return a + b + sqrt(2*a*b+b**2)
class BoundedLinear(FunctionEnvironment):
""" Linear function within the domain [-5,5], constant from the
best corner onwards. """
def __init__(self, *args, **kwargs):
FunctionEnvironment.__init__(self, *args, **kwargs)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
plt.autoscale(axis = "x",tight=True)
plt.plot(flight_data["passengers"])
#Please note that this is univariate time series data : consisting of one variable passengers
#
data = flight_data["passengers"].values.astype(float)
print(data)
print(len(data))
# Train-Test Split
# Consider the last the 12 months data as evaluation data for testing the model's behaviour
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class BrownDwarf():
def __init__(self, bd, observ_date, array_col_names=None):
# grab column names before make bd an np.array() (bc takes away column names)
if isinstance(bd, pd.DataFrame):
column_names = bd.columns.values
if isinstance(bd, Table):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public class QuizFeedbackProfile : Profile
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
alias cfstart='mysql.server start && /Applications/ColdFusion10/cfusion/bin/cf-standalone-startup start'
alias cfstop='/Applications/ColdFusion10/cfusion/bin/cf-standalone-startup stop'
alias cflog='tail -f /Applications/ColdFusion10/cfusion/logs/coldfusion-out.log' | ise-uiuc/Magicoder-OSS-Instruct-75K |
path('profile/<int:pk>/', views.OtherUserDetail.as_view()), #includes favorites, and friends' recipes for the feed
path('profile/<int:pk>/favorites/', views.UserFavoriteList.as_view()),
path('profile/<int:pk>/friends/', views. UserFriendsList.as_view()),
path('profile/search/<str:query>/', views. UserSearchList.as_view())
]
urlpatterns = format_suffix_patterns(urlpatterns) | 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.