seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
echo "${green}Ok!${reset}"
return 0
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
* Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.
*
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def __init__(self, pricebars, tradingday):
self.__pricebars = pricebars
self.__tradingday = tradingday
@property
def price_bars(self):
return self.__pricebars
| ise-uiuc/Magicoder-OSS-Instruct-75K |
namespace Przelewy24\Factory;
use Przelewy24\Authenticate\AuthInterface;
use Przelewy24\Exception\InvalidServiceAuthenticationException,
Przelewy24\Exception\InvalidServiceTypeException;
use Przelewy24\Service\ServiceAbstract,
Przelewy24\Service\ServiceInterface;
use Przelewy24\Environment\EnvironmentInterface;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
super.awakeFromNib()
// Initialization code
}
override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)
// Configure the view for the selected state
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* it only support for {@link Level#EQUALITY} and
* {@link Level#ORDER}
*/
| ise-uiuc/Magicoder-OSS-Instruct-75K |
querynet = QueryNet(sampler, model.arch, surrogate_names, use_square_plus, True, use_nas, l2_attack, eps, batch_size)
def get_surrogate_loss(srgt, x_adv, y_ori): # for transferability evaluation in QueryNet's 2nd forward operation
if x_adv.shape[0] <= batch_size: return get_margin_loss(y_ori, srgt(torch.Tensor(x_adv)).cpu().detach().numpy())
batch_num = int(x_adv.shape[0]/batch_size)
if batch_size * batch_num != int(x_adv.shape[0]): batch_num += 1
loss_value = get_margin_loss(y_ori[:batch_size], srgt(torch.Tensor(x_adv[:batch_size])).cpu().detach().numpy())
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// The new input should be returned as an enumerable/iterable string.
/// </remarks>
IEnumerable<string> Join(IList<ISourceAdapter> sources);
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<filename>crates/maple_cli/src/app.rs
use anyhow::Result;
use structopt::{clap::AppSettings, StructOpt};
use filter::FilterContext;
use icon::IconPainter;
#[derive(StructOpt, Debug)]
pub enum Cmd {
/// Display the current version
#[structopt(name = "version")]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for i in range(len(nstrips_all)):
errs[i] = abs(simpson(integrand_sin, 0, 1, nstrips_all[i]) - (2 * np.sin(1) + np.cos(1) - 2))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
</div>
</div>
</div>
</section>
<script>
$('.cart__close').click(function (e) {
e.preventDefault();
var product_id = $(this).attr('href');
$.ajax({
url: "<?php echo site_url('favourite/addWishlist'); ?>",
method: "POST",
data: {
product_id: product_id
},
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import json
import re
import sys
SECTIONS = defaultdict(list)
CLASS_RE = re.compile(r'(?P<start>[0-9A-F]{4,5})(\.\.(?P<end>[0-9A-F]{4,5}))?\s+;\s*(?P<class>\w+)\s*#\s(?P<comment>.+)$')
for line in sys.stdin.read().split('\n'):
out = CLASS_RE.match(line)
if out is None:
continue
data = out.groupdict()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
annotation_path='/datasets/UCF101-24/UCF101_24Action_Detection_Annotations/UCF101_24Action_Detection_Annotations',
frames_per_clip=4)
import pdb; pdb.set_trace() | ise-uiuc/Magicoder-OSS-Instruct-75K |
assert 'DecisionTreeClassifier' in __solution__, "Make sure you are specifying a 'DecisionTreeClassifier'."
assert model.get_params()['random_state'] == 1, "Make sure you are settting the model's 'random_state' to 1."
assert 'model.fit' in __solution__, "Make sure you are using the '.fit()' function to fit 'X' and 'y'."
assert 'model.predict(X)' in __solution__, "Make sure you are using the model to predict on 'X'."
assert list(predicted).count('Canada') == 6, "Your predicted values are incorrect. Are you fitting the model properly?"
assert list(predicted).count('Both') == 8, "Your predicted values are incorrect. Are you fitting the model properly?"
assert list(predicted).count('America') == 11, "Your predicted values are incorrect. Are you fitting the model properly?"
__msg__.good("Nice work, well done!") | ise-uiuc/Magicoder-OSS-Instruct-75K |
ImmutableArray<AnalyzerFileReference> Analyzers { get; }
DocumentId? DocumentId { get; set; }
event Action<IList<CompilationErrorResultObject>>? CompilationErrors;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'--min-words-length',
action='store',
type=natural_number,
dest='min_words_length',
default=MIN_WORDS_LENGTH,
help=('Minimum word length for XKCD words list '
f'(default: {MIN_WORDS_LENGTH})')
)
parser.add_argument(
'--max-words-length',
action='store',
type=natural_number,
dest='max_words_length',
default=MAX_WORDS_LENGTH,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
current = None
def __init__(
self,
name=None,
identifier=None,
**kwargs
):
if not AUT.cache:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
name='dateTimeCreated',
field=models.DateTimeField(auto_now_add=True, null=True),
),
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public:
KafkaConfiguration producer;
std::string configuration_file{""};
std::string source{""};
std::string source_name{"AMOR.event.stream"};
std::string timestamp_generator{"none"};
int multiplier{0};
int bytes{0};
int rate{0};
int report_time{10};
int num_threads{0};
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public static VersionAdapter getSkriptAdapter() {
boolean usesSkript24 = (Skript.getVersion().getMajor() >= 3 || (Skript.getVersion().getMajor() == 2 && Skript.getVersion().getMinor() >= 4));
if (SKRIPT_ADAPTER == null)
SKRIPT_ADAPTER = usesSkript24 ? new V2_4() : new V2_3();
return SKRIPT_ADAPTER;
}
@NotNull
public Logger getConsoleLogger() {
return logger;
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Const.likeLabelWidth,
Const.bottomHeight))
commentLabel.font = Const.likeLabelFont
commentLabel.textColor = Const.likeLabelTextColor
commentLabel.adjustsFontSizeToFitWidth = true
commentLabel.textAlignment = .center
bottomView.insertSubview(commentLabel, belowSubview: commentButton)
likeButton = UIButton(frame: CGRect(commentButton.frame.origin.x
- Const.likeButtonWidth - Const.likeMarginRight,
0,
Const.likeButtonWidth,
Const.bottomHeight))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
dd($exitCode);
});
Route::get('/storage_link',function (){
$exitCode = Artisan::call('storage:link');
dd($exitCode);
});
//Route::fallback([FallbackController::class,'comingSoon']);
//Route::get('test',[TestController::class,'index']);
//
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import { InvalidParameterCombinationException } from "./InvalidParameterCombinationException";
export type DescribeUserStackAssociationsExceptionsUnion = InvalidParameterCombinationException;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
./hugo
mkdir stage -p
mv public/* stage
cp favicon.png stage/images/
rsync --delete -rcv stage/* con:/www/docs.factcast.org
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import os
import sys
actual_filename = 'actual'
result_filename = 'result'
def read_textfile(filename):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Phase change temperature consitent with phase
self.Tb = 0
self.Tm = 0
self.phase_ref = 'g'
@property
def phase(self): return 'g'
@phase.setter
def phase(self, phase): pass
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.edge_forbidden_paths[link_id as usize].push((global_id, offset + 1, self.node_forbidden_path_counter[tail as usize] as u32));
}
forbidden_path.push((NodeIdT(head), self.node_forbidden_path_counter[head as usize] as u32));
}
for &node in &path[1..path.len() - 1] {
self.node_forbidden_path_counter[node as usize] += 1;
}
self.forbidden_paths.push(forbidden_path);
}
pub fn reset(&mut self, graph: &impl EdgeIdGraph) {
self.num_labels_pushed = 0;
for path in self.forbidden_paths.drain(..) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ki = 1
ctl = linear.PIDController(kp, ki, kd)
# Set Point
q_target = np.array([3.14])
ctl.rbar = q_target
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
historyTitle(i: number): string {
return this.native.historyTitle(i);
}
historyUrl(): QUrl {
return new QUrl(this.native.historyUrl());
}
isBackwardAvailable(): boolean {
return this.native.isBackwardAvailable();
}
isForwardAvailable(): boolean {
return this.native.isForwardAvailable();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
4. Complicated is better than complex.
5. Flat is better than nested.
'''.splitlines(keepends=True)
d = difflib.Differ();
result = list(d.compare(text1, text2))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
ret_y = 0
ret_n = 1
ret_invalid = -1
try:
yn = input(prompt_msg + " (y/n) ").lower()
except KeyboardInterrupt:
# new line so it looks better
print()
return ret_invalid
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from setuptools import setup
CWD = pathlib.Path(__file__).parent
README = (CWD / "README.rst").read_text()
setup(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def main():
mySol = Solution()
print("For the coins 1, 2, 3, 5, and amount 11, the number of combinations to make up the amount are ")
print(mySol.change(11, [1, 2, 3, 5]))
print("For the coins 1, 2, 5, and amount 5, the number of combinations to make up the amount are ")
print(mySol.change(5, [1, 2, 5]))
if __name__ == "__main__":
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class CredentialResource(Struct, MoveResource):
MODULE_NAME = "DualAttestation"
STRUCT_NAME = "Credential"
_fields = [
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
if (_temp != null)
{
if (_group == null)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import hashlib
def check(license_file, settings_file, salt):
# read license
with open(license_file, 'rt') as f:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public record WorldPolygon(List<Vector> points, Color color) {
public static WorldPolygon polygon(final List<Vector> points, final Color color) {
return new WorldPolygon(points, color);
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
vprint("Restoring from backup", backup_id, "to volume", new_volume_id)
dev_name = "vd" + chr(ord('a') + vol_index)
block_device_mapping[dev_name] = new_volume_id
restore = self.cinder.restores.restore(backup_id=backup_id, volume_id=new_volume_id)
restored_volume = self.cinder.volumes.get(restore.volume_id)
self._wait_for(restored_volume, ('restoring-backup',), 'available')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public boolean autoSave = false;
public boolean enablePlugins = true;
public Color backgroundColor = new Color(0.15f, 0.15f, 0.15f, 1.0f);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// }
}
// fn parse_nav(href: String, title: String) {
// println!("par4se file {} {}", href, title);
// let it = cbeta::models::nav::Html::new(&href).unwrap();
// println!("{}", it.head.title.value);
// }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
subject:[
{
id:string;
name:string
}
]
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
@Service
@Slf4j
public class TopicPublisher {
//this going to be a temporary service required for local testing to simulate CRD side messages.
private final JmsTemplate jmsTemplate;
private final String destination;
private final ConnectionFactory connectionFactory;
@Autowired
public TopicPublisher(JmsTemplate jmsTemplate,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
reload(csa)
import pycqed.analysis_v2.cryo_spectrumanalyzer_analysis as csa
reload(csa)
import pycqed.analysis_v2.distortions_analysis as da
import pycqed.analysis_v2.optimization_analysis as oa
reload(da)
import pycqed.analysis_v2.coherence_analysis as cs
reload(cs)
import pycqed.analysis_v2.spectroscopy_analysis as sa
reload(sa)
import pycqed.analysis_v2.dac_scan_analysis as da
reload(da)
import pycqed.analysis_v2.quantum_efficiency_analysis as qea
reload(qea)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import numpy as np
from typing import List, Union
from collections import OrderedDict
from datetime import datetime
| ise-uiuc/Magicoder-OSS-Instruct-75K |
)
error(err)
}
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>filchakov/mautic-custom2
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
public override void ProcessHit(float damage)
{
Debug.Log("Minion Cube Immune");
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
__import__('pkg_resources').declare_namespace(__name__)
| 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. */
import Foundation
struct ElementwiseAddMetalParam {
var fast: Int32 = 0
var axis: Int32 = 0
| ise-uiuc/Magicoder-OSS-Instruct-75K |
int temp=a[j];
a[j] = a[j+1];
a[j+1] = temp;
numberOfSwaps++;
}
}
if (numberOfSwaps == 0) {
break;
}
}
cout << "Array is sorted in "<< numberOfSwaps << " swaps." <<endl;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
54b93e74f84544b592b1909f4f44386c20cea701d01d44da527f326b7893ea80 \
185e5fde30cbc350b92f44ea7f93e9a9 \
b3022319-3c3f-44d3-8023-ee6b540335a5 \
0000000092e26c1446222ecd8d2fe2ac) == \
"54b93e74f84544b592b1909f4f44386c20cea701d01d44da567f336b7893ea80" ]]
[[ $(./rbc_validator --mode=chacha20 -rvca -m2 -t1 |& grep searched | cut -d' ' -f4) == 32897 ]]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using System.Net.Http;
using Gotenberg.Sharp.API.Client.Extensions;
using JetBrains.Annotations;
namespace Gotenberg.Sharp.API.Client.Domain.Requests.Facets
{
public sealed class ContentItem
{
readonly Func<HttpContent> _getHttpContent;
ContentItem(Func<HttpContent> getHttpContent)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
BASE = ldap.SCOPE_BASE
ONELEVEL = ldap.SCOPE_ONELEVEL
SUBTREE = ldap.SCOPE_SUBTREE
SCOPES = [BASE, ONELEVEL, SUBTREE]
del ldap
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// Negitive Vertical Distance Present
public static let totalNegitiveVerticalDistance = FlagsTwo(rawValue: 1 << 0)
/// Total Energy Present
public static let totalEnergy = FlagsTwo(rawValue: 1 << 1)
/// Energy Rate Present
public static let energyRate = FlagsTwo(rawValue: 1 << 2)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return $prefectures;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# 添加想要展示的字段
list_display = ('id', 'kind', 'title', 'recommend', 'author', 'viewscount', 'created_time')
list_per_page = 50
ordering = ('created_time',)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
actorsScheduledForInsertion.addElement (theActor);
} /*addActor*/
| ise-uiuc/Magicoder-OSS-Instruct-75K |
React.cloneElement(props.children, {
...{
flex: 0,
top: shadow / 2,
},
...{ borderRadius: props?.style?.borderRadius },
})}
</View>
);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Base(TemplateView):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
namespace SolrExpress.UnitTests
{
public class TestDocumentNoAttributes : Document
{
public DateTime CreatedAt { get; set; }
public GeoCoordinate Spatial { get; set; }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
name = synset.name().split(".")[0]
offset = synset.offset()
wnid = f"n{offset:08d}"
print(f"{wnid}.{category}.{name}")
r = requests.get(geturls.format(wnid=wnid))
if "\n" not in r.text:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
tstart = time.time()
# because PyPy needs a ton of memory, give it 14G
# client = Client(n_workers=16, threads_per_worker=1, processes=True, memory_limit='8GB')
client = Client(n_workers=16, threads_per_worker=1, processes=True, memory_limit='14GB')
print(client)
# correct for PyPy internal error
meta_title = '__no_default__'
if platform.python_implementation().lower() == 'pypy':
meta_title = ('title', 'str')
startup_time = time.time() - tstart
df = dd.read_csv(paths, low_memory=False)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export default class HTMLScriptElementIsolate implements IHTMLScriptElementIsolate {
public get async(): Promise<boolean> {
return awaitedHandler.getProperty<boolean>(this, 'async', false);
}
public get charset(): Promise<string> {
return awaitedHandler.getProperty<string>(this, 'charset', false);
}
public get crossOrigin(): Promise<string | null> {
return awaitedHandler.getProperty<string | null>(this, 'crossOrigin', true);
}
public get defer(): Promise<boolean> {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
INF = ALPHA_SIZE+1
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'l' => &self.hl.bytes.0,
'a' => &self.psw.bytes.0,
_ => panic!("Invalid register"),
}
}
}
}
impl IndexMut<char> for RegisterArray {
fn index_mut(&mut self, index: char) -> &mut Self::Output {
unsafe {
match index {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export MINIMAL_K8S_E2E="true"
;;
"CLOUD-HYPERVISOR-K8S-CRIO")
init_ci_flags
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export CC=cc
export CXX=CC
export MPICC=cc
export MPICXX=CC
export CFLAGS="-O3 -g -fPIC"
export CXXFLAGS="-O3 -g -fPIC"
export OPENMP_CFLAGS="-fopenmp"
export OPENMP_CXXFLAGS="-fopenmp"
./configure ${OPTS} \
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<label>
<input name="status" type="radio" name="optionsRadios" id="optionsRadios3" value="disapproved" <?php if($comment['status'] == "disapproved"){ echo "checked"; }; ?>>Disapproved
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class TestFile(enum.Enum):
AGRIPRC_2018 = (
0,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Info:
"""
Allows to print out information about the application.
"""
def commands():
print('''Main modules:
imu | Inertial Measurement Unit (GPS, gyro, accelerometer)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"description": description,
'category': category,
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def predict_np(self, x_np):
x = torch.Tensor(x_np)
pred = self.forward(x).detach().cpu().numpy()
return pred[0].squeeze(), pred[1].squeeze()
def train_model(self, training_dataset, testing_dataset, training_params):
X = training_dataset["X"]
Y = training_dataset["Y"]
datasets = split_to_subsets(X, Y, self.ensemble_size)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
func sceneDidDisconnect(_ scene: UIScene) {
// Called as the scene is being released by the system.
// This occurs shortly after the scene enters the background, or when its session is discarded.
// Release any resources associated with this scene that can be re-created the next time the scene connects.
// The scene may re-connect later, as its session was not neccessarily discarded (see `application:didDiscardSceneSessions` instead).
}
func sceneDidBecomeActive(_ scene: UIScene) {
// Called when the scene has moved from an inactive state to an active state.
// Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive.
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
search_fields = ['creator__first_name', 'creator__last_name']
list_select_related = ['creator', 'content_type']
list_filter = ['routine', 'is_active', 'format', 'context', 'content_type']
list_display = ('id', 'routine', 'is_active', 'content_type', 'format', 'creator', 'created')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
use rhabdophis::util::util;
use rhabdophis::runtime;
use rhabdophis::parser::lexer;
use rhabdophis::parser::parser;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
private static final String FILE_WRITE_FAILURE_ERROR_MESSAGE = "Unable to write contents into ";
private static String documentFilePath;
private File file;
private Name name;
private String fileType;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from PIL import Image
def pil_loader(path: str) -> Image:
"""Load image from pathes.
Args:
path: Image path.
Returns:
Loaded PIL Image in rgb.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
d = make(base + 25 * DAY, NEW_YORK);
expect(en.formatDateRaw(d, opts)).toEqual('5');
expect(fr.formatDateRaw(d, opts)).toEqual('4');
d = make(base + 26 * DAY, NEW_YORK);
expect(en.formatDateRaw(d, opts)).toEqual('5');
expect(fr.formatDateRaw(d, opts)).toEqual('4');
// Jump to Sep 30
d = make(base + 29 * DAY, NEW_YORK);
expect(en.formatDateRaw(d, opts)).toEqual('6');
expect(fr.formatDateRaw(d, opts)).toEqual('4');
});
| ise-uiuc/Magicoder-OSS-Instruct-75K |
else
echo "Invalid port";
fi
else
echo ${info[$pointer]}
fi | ise-uiuc/Magicoder-OSS-Instruct-75K |
selectedCampaign: EventEmitter<GloomhavenCampaign | null> = new EventEmitter<GloomhavenCampaign | null>();
@Output()
deleteCampaign: EventEmitter<string> = new EventEmitter<string>();
@ViewChildren("card, addNew", { read: ElementRef }) cardRefs: QueryList<ElementRef>;
private static isAlreadyActive(element: HTMLElement): boolean {
return element.classList.contains(ACCENT_ACTIVE);
}
selectPartyClicked($event: MouseEvent, party: GloomhavenCampaign) {
const activated = this.toggleActive($event);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public BarCharPositioner barChartPositioner;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<filename>Skizzle/us/myles/viaversion/libs/javassist/compiler/ast/StringL.java
/*
* Decompiled with CFR 0.150.
*/
package us.myles.viaversion.libs.javassist.compiler.ast;
import us.myles.viaversion.libs.javassist.compiler.CompileError;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
</small>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
try:
domain = Domain.objects.get(name=rcptdomain)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if save_png != '':
plt.savefig(save_png, format="png")
else:
plt.show()
def plot_grade_roc(target, grade, predicted_proba, title, save_png=''):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
end = datetime.now()
segmentation = '3H'
time_name = 'time'
as_index = True
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
foo
"""
@task(aliases=('a', 'b'))
def with_aliases():
"""foo
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for invalid_id in invalid_ids:
self.tracks.pop(invalid_id)
def update_track(self, id, obj):
"""Update a track."""
for k, v in zip(self.memo_items, obj):
v = v[None]
if self.momentums is not None and k in self.momentums:
m = self.momentums[k]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
sleep 5
mv /www/pages/necron/Cnoda/Cnoda* /
ln -s /Cnoda /www/pages/necron/Cnoda/Cnoda
ln -s /Cnoda.json /www/pages/necron/Cnoda/Cnoda.json | ise-uiuc/Magicoder-OSS-Instruct-75K |
|| value.starts(with: "> ")
|| self.getNumberListPrefix(paragraph: value) != nil {
let prefix = value.getSpacePrefix()
let checkList = [
prefix + "* ",
prefix + "- ",
prefix + "+ ",
prefix + "> ",
"* ",
"- ",
"+ ",
"> "
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
assert result == expected
@pytest.mark.parametrize("candidate, expected", [
('Mark', ['2018-03-09 11:00:36.372339', '2017-10-19 15:11:36.167854']),
('Matt', ['2018-03-10 11:00:32.372339', '2017-10-19 35:11:36.167854'])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Check for conflict with a shorter name
name_parts = resource_name.split('/')[0:-1]
while len(name_parts):
key_name = self.__resource_name_key('/'.join(name_parts))
key = bucket.get_key(key_name)
if key:
return [ key_name ]
name_parts = name_parts[0:-1]
return None
def _resource_file_dest_path(self, resource_file):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import java.util.ArrayList;
import java.util.Arrays;
public class UserLoginActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_login);
EditText usernameField = findViewById(R.id.username);
EditText passwordField = findViewById(R.id.password);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
right = Arc::new(BvhNode::build(object2.to_vec(), object_span - mid, t0, t1));
}
let box_left = left.bounding_box();
let box_right = right.bounding_box();
BvhNode::new_(
AABB::surrounding_box(box_left.unwrap(), box_right.unwrap()),
left,
right,
)
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
final class ConfigurableTest extends TestCase
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return checksum_low_byte == 0;
}
}
}
false
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# using same ${RULES_CONFIG_FILE}, ${ORIGINAL_TEST_FILE}, ${REFERENCE_TEST_FILE}
PATCH_FILE="${TEST_TMPDIR}/autofix.patch"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return _messagePipeConfigurator.Build();
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
## {
## "planet": "Endor",
## "visited": False,
## "reachable": []
## },
## {
## "planet": "Hoth",
## "visited": False,
## "reachable": ["Endor"]
## },
##]
##
##def build_reachables(planets, reachables):
## reachable_planets = []
## for planet in planets:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class SampleView(FormView):
form_class = SampleForm
template_name = 'sample.html'
| 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.