seed
stringlengths
1
14k
source
stringclasses
2 values
// // Created by 杨建祥 on 2020/2/3. // import UIKit import Moya import RxSwift
ise-uiuc/Magicoder-OSS-Instruct-75K
GameSettings.Default.PostScreenEffects = usePostScreenShaders; GameSettings.Default.ShadowMapping = useShadowMapping; GameSettings.Default.HighDetail = useHighDetail; GameSettings.Default.MusicVolume = currentMusicVolume; GameSettings.Defau...
ise-uiuc/Magicoder-OSS-Instruct-75K
char = cmd_args[i] if (in_string): if (char == "'"): cmd_list.append(accum) accum = "" in_string = False else: accum = accum + char else:
ise-uiuc/Magicoder-OSS-Instruct-75K
macro m() { mod w { mod y { pub use std::ops::Deref as _; } use crate::x::*; use self::y::*; use std::ops::DerefMut as _; fn f() { false.not(); (&()).deref(); (&mut ()).deref_mut(); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
'npc_dota_hero_death_prophet', 'npc_dota_hero_dragon_knight', 'npc_dota_hero_drow_ranger', 'npc_dota_hero_earthshaker', 'npc_dota_hero_jakiro',
ise-uiuc/Magicoder-OSS-Instruct-75K
x = "Keep grinding keep hustling" print(x.find("t")) ''' NOTE : print(x.index("t",34)) : Search starts from index value 34 including 34 '''
ise-uiuc/Magicoder-OSS-Instruct-75K
POSITIONAL+=("$1") shift ;; esac done set -- "${POSITIONAL[@]}" # restore positional parameters # https://gist.github.com/lukechilds/a83e1d7127b78fef38c2914c4ececc3c get_latest_release() { curl --silent "https://api.github.com/repos/$REPO/releases/latest" | \ grep '"tag_name":' | \ sed -...
ise-uiuc/Magicoder-OSS-Instruct-75K
private Board(Board board) {
ise-uiuc/Magicoder-OSS-Instruct-75K
/** * Helper class for {@link GeneratedJavaParser} */ class ModifierHolder { final EnumSet<Modifier> modifiers; final NodeList<AnnotationExpr> annotations; final JavaToken begin; ModifierHolder(JavaToken begin, EnumSet<Modifier> modifiers, NodeList<AnnotationExpr> annotations) { this.begin = ...
ise-uiuc/Magicoder-OSS-Instruct-75K
sampling_frequency=new_sampling_frequency, duration=new_duration, starting_time=new_start_time, ) self.assertTrue(np.allclose(self.time_array, new_time_array)) def test_consistency_frequency_array_to_frequency_array(self): ( new_sampling_frequ...
ise-uiuc/Magicoder-OSS-Instruct-75K
def initialize(): global coords_dev, n_vertices ctx = cl.gl.context() coords_dev = cl.gl.empty_gl(ctx, [n_vertices], ctype=float2)
ise-uiuc/Magicoder-OSS-Instruct-75K
# Use GPU if available pyredner.set_use_gpu(tf.test.is_gpu_available(cuda_only=True, min_cuda_compute_capability=None))
ise-uiuc/Magicoder-OSS-Instruct-75K
} private var buttonLabelView: some View { let font: Font = .system(size: Constant.fontSize * 1.22, weight: .bold) return Image("Sticker") .font(font) .foregroundColor(colorScheme.white) .margin([.top, .horizontal]) } }
ise-uiuc/Magicoder-OSS-Instruct-75K
btn_plain_destructive: ButtonStyle::plain_destructive(), btn_solid_primary: ButtonStyle::solid_primary(), btn_plain_primary: ButtonStyle::plain_primary(), } } pub fn pregame() -> Style { Style { panel_bg: Color::grey(0.4), field_bg: Co...
ise-uiuc/Magicoder-OSS-Instruct-75K
* @MinLength 1 * @MaxLength 256 * @var string|null|\CWM\BroadWorksConnector\Ocip\Nil */ private $url2 = null; /** * @ElementName url3 * @Type string * @Nillable * @Optional * @Group c0d21ef9ba207c335d8347e5172fce1d:1014
ise-uiuc/Magicoder-OSS-Instruct-75K
<a href="/menus" class="btn btn-dark text-warning">Back</a> </div> </div> </div> @endsection
ise-uiuc/Magicoder-OSS-Instruct-75K
self.main_layout.addWidget(self.tol_input, 4, 1) self.ftol_label = QLabel(self.tr("-lg(δ<sub>loss</sub>)")) self.ftol_label.setToolTip(self.tr("Controls the precision goal for the value of loss function in the stopping criterion.")) self.ftol_input = QSpinBox() self.ftol_input.s...
ise-uiuc/Magicoder-OSS-Instruct-75K
"name": "Ali", "active": False, "lastSeen": "20-8-2020", "followers": 943,
ise-uiuc/Magicoder-OSS-Instruct-75K
else: nums[nums[i]], nums[i] = nums[i], nums[nums[i]] return -1 if __name__ == "__main__":
ise-uiuc/Magicoder-OSS-Instruct-75K
// Create and link modules with controller, return presenter input static func configure(with reference: ___VARIABLE_viperModuleName___ViewController) -> ___VARIABLE_viperModuleName___PresenterInput { let presenter = ___VARIABLE_viperModuleName___Presenter() let router = ___VARIABL...
ise-uiuc/Magicoder-OSS-Instruct-75K
#include <cstddef> #include <cstring> #include <dirent.h> int dirbuf_add(dirent **buf, size_t *remain, ino_t ino, off_t off, unsigned char type, const char *name) { const size_t align = alignof(dirent); const size_t dirent_noname = offsetof(dirent, d_name);
ise-uiuc/Magicoder-OSS-Instruct-75K
{ auto Entity = m_Context->CreateEntity( "Empty Entity" ); SetSelected( Entity ); } ImGui::EndPopup(); } ImGui::Begin( "Inspector" ); if( m_SelectionContext ) { DrawComponents( m_SelectionContext ); }
ise-uiuc/Magicoder-OSS-Instruct-75K
from . import basic, image, quicksand def get_clamAV_results(file_object): # Connects to UNIX socket on /var/run/clamav/clamd.ctl clam_daemon = clamd.ClamdUnixSocket() clamd_res = clam_daemon.instream(BytesIO(file_object.content)) return clamd_res["stream"][0] def validate(files, upload_config): ...
ise-uiuc/Magicoder-OSS-Instruct-75K
a = (float(input('Введите а: '))) b = (float(input('Введите b: '))) sum = a + b print('сумма = ', sum)
ise-uiuc/Magicoder-OSS-Instruct-75K
$this->load->view('home'); } // Método que processar o upload do arquivo
ise-uiuc/Magicoder-OSS-Instruct-75K
data: schemas.snippet.SnippetData, auth_token: str = fastapi.Depends(oath) ) -> schemas.snippet.SnippetResponse: """ update the code snippet with the specified id. """ with sql.database.Session() as session: with sql.crud.Token(session) as crud:
ise-uiuc/Magicoder-OSS-Instruct-75K
/// Partial key collector. #[derive(Debug)] pub struct PartialKeyCollector<'a> { pub(crate) str_key: HashSet<&'a str>, pub(crate) int_key: Option<usize>, } #[allow(single_use_lifetimes)] impl<'a> PartialKeyCollector<'a> { pub(crate) fn new() -> Self { Self { str_key: HashSet::new(),
ise-uiuc/Magicoder-OSS-Instruct-75K
check_sdk(module) try:
ise-uiuc/Magicoder-OSS-Instruct-75K
import net.haesleinhuepf.clij.benchmark.DefaultBenchmarkableModule; import net.haesleinhuepf.clij.clearcl.ClearCLBuffer; public class GaussianBlur2D extends DefaultBenchmarkableModule { private Double sigma;
ise-uiuc/Magicoder-OSS-Instruct-75K
def delete_service(self, environment_id, session_id, service_id): endpoint = self.get_url('environments/{0}/services/{1}'.format(
ise-uiuc/Magicoder-OSS-Instruct-75K
def test_add_one(self): a = AVLTree() a.update({1:'a'}) self.assertEqual(len(a), 1)
ise-uiuc/Magicoder-OSS-Instruct-75K
q0 = np.array([0, 0, 0, np.pi / 2, 0, 0, 0]) human_arm = simple_human_arm(2.0, 2.0, q0, np.array([3.0, 1.0, 0.0])) # Define environment env = Environment(dimensions=[10.0, 10.0, 20.0],
ise-uiuc/Magicoder-OSS-Instruct-75K
static credentialWithLink(email: string, emailLink: string): AuthCredential; }
ise-uiuc/Magicoder-OSS-Instruct-75K
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/vagrant/Sites/projetoPap/resources/views/contato/contato.blade.php ENDPATH**/ ?>
ise-uiuc/Magicoder-OSS-Instruct-75K
# end of blockquote elif i%4==3: list[i]='\n\n' return ''.join(list) def _sublinks(text): return re.sub('<a href=\"(?P<link>.*?)\">(?P<linktext>.*?)</a>', lambda m : '[' + _markdownify_linktext(m.group('linktext')) + '](' + _fefe_linksintern(m.group('link')) + ')', text)
ise-uiuc/Magicoder-OSS-Instruct-75K
.queue_declare( &random_string(32), QueueDeclareOptions { exclusive: true, auto_delete: true, ..QueueDeclareOptions::default() }, FieldTable::default(), ) .await?; sub_channel .queue_bind...
ise-uiuc/Magicoder-OSS-Instruct-75K
from baseline.pytorch.classify import ClassifierModelBase from baseline.model import register_model def ngrams(x, filtsz, mxlen): chunks = []
ise-uiuc/Magicoder-OSS-Instruct-75K
airspaces = get_airspaces()
ise-uiuc/Magicoder-OSS-Instruct-75K
let options = f(&mut create_options); self.get(api!("/clues")) .query(&options.0) .send() .await? .json::<Vec<Clue>>() .await .map_err(Into::into) } async fn get_random_clues(&self, count: u64) -> Result<Vec<Clue>> {
ise-uiuc/Magicoder-OSS-Instruct-75K
from core.bot import KingBot # LOGS
ise-uiuc/Magicoder-OSS-Instruct-75K
A script to blind the files in a directory for analysis. Ensure that this script is placed in the original directory with the original files to be blinded. It is non-destructive and will create a copy of the files to be blinded and record their identities to a text file.
ise-uiuc/Magicoder-OSS-Instruct-75K
// // Created by 天明 on 2018/7/11. // Copyright © 2018年 天明. All rights reserved.
ise-uiuc/Magicoder-OSS-Instruct-75K
if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// th...
ise-uiuc/Magicoder-OSS-Instruct-75K
ca65 src/game.asm ld65 src/*.o -C nes.cfg -o game.nes java --illegal-access=deny -jar tools/nintaco/bin/Nintaco.jar game.nes
ise-uiuc/Magicoder-OSS-Instruct-75K
baseAPI: "http://127.0.0.1:8080/api/" };
ise-uiuc/Magicoder-OSS-Instruct-75K
# Get context logs forward. log = forward_start_log for _ in range(0, 3): pack_id, pack_meta = extract_pack_info(log) response = client.get_context_logs(project, logstore, pack_id, pack_meta, 0, 10) print('forward log, pack_id:', pack_id, 'pack_meta:', pack_meta) print('total...
ise-uiuc/Magicoder-OSS-Instruct-75K
print >> sys.stderr, name, eval(name, {"self":self}) else: print >> sys.stderr, name, eval(name, g, l) class BaseLoss(object): """Inherit from this class when implementing new losses.""" def calculate_loss(self, unused_predictions, unused_labels, **unused_params): """Calculates the average los...
ise-uiuc/Magicoder-OSS-Instruct-75K
export { getBalance, approveToken, isApproved, getWalletAddress } from './actions'; export { TokensState, BalancePayload } from './tokens.interface';
ise-uiuc/Magicoder-OSS-Instruct-75K
if let Err(error) = notify_result { tracing::error!("Error during keyboard notification: {}", error);
ise-uiuc/Magicoder-OSS-Instruct-75K
} public string? Description { get; } public string Name { get; } public string UnitId { get; } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
#export PATH=/proj/b2010008/nobackup/brynjar/hmp_map/miniconda/bin:$PATH export OLD_PATH=$PATH p=$(readlink -f . ) export PATH=$p/miniconda/bin:$p/bin:$PATH source activate sci3 function conda_remove () { source deactivate export PATH=$OLD_PATH }
ise-uiuc/Magicoder-OSS-Instruct-75K
def create_dir(reference_path): if not os.path.exists(reference_path): os.mkdir(reference_path) def download_raw_data(): download_file( cloud_file_name="sample_submission.csv", cloud_file_path="/kaggle/porto", local_filename=DataFilesConf.FileNames.sample_submission )
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>1923488289/meiduo_mall<filename>meiduo_mall/meiduo_mall/apps/auoth/constants.py OPENID_EXPIRES = 60 * 10
ise-uiuc/Magicoder-OSS-Instruct-75K
import tensorflow as tf from tf.keras.preprocessing.image import img_to_array class ImageToArrayPreprocessor: """Image to array preprpocessor Args: dataFormat: optional parameter. By default None (indicate the keras.json must be used). Other values are channel_first and channel_last. """ ...
ise-uiuc/Magicoder-OSS-Instruct-75K
} } // namespace SkipTestsConfig } // namespace FuncTestUtils
ise-uiuc/Magicoder-OSS-Instruct-75K
echo echo "Choose a theme:" && ls theme/ read theme cp theme/$theme/colors.h dwm-6.2/ cp theme/$theme/$theme.png $HOME/.config/wallpaper.png # Compiles dwm, st, etc cd dwm-6.2 make clean make
ise-uiuc/Magicoder-OSS-Instruct-75K
pub fn upper_bound(root: Option<&Box<Self>>, key: &K) -> usize {
ise-uiuc/Magicoder-OSS-Instruct-75K
// Created by Leo Yu on 8/23/20.
ise-uiuc/Magicoder-OSS-Instruct-75K
'verbose_name_plural': 'SEO URLs', }, ), ]
ise-uiuc/Magicoder-OSS-Instruct-75K
from stix.test import EntityTestCase from stix.common import Names class NamesTests(EntityTestCase, unittest.TestCase): klass = Names _full_dict = [ "foo",
ise-uiuc/Magicoder-OSS-Instruct-75K
#!/bin/bash #python pyinstaller-pyinstaller-67b940c/pyinstaller.py ../pyNastran/pyNastran/gui/gui.py
ise-uiuc/Magicoder-OSS-Instruct-75K
readJSON(); } @Override protected long doBatch(long numIterations) throws InterruptedException { pauseTimer(); for (int inner = 0; inner < numIterations; inner++) { switch (parser) { case "json4j": startTimer(); pauseTimer(); break; case "gson":
ise-uiuc/Magicoder-OSS-Instruct-75K
:param node: Node object as parsed from topology file to execute cmd on. :param cmd: Command to execute. :type ssh: dict :type cmd: str """ print "+", cmd _, stdout, _ = exec_cmd(node, cmd) print stdout
ise-uiuc/Magicoder-OSS-Instruct-75K
admin.site.register([Answer])
ise-uiuc/Magicoder-OSS-Instruct-75K
return self._get_containers_with_state(container_names, select_random, ContainerStatus.UP, ContainerStatus.DOWN) def _get_containers_with_state(self, container_names, select_random, *container_states): containers = self._get_all_containers() c...
ise-uiuc/Magicoder-OSS-Instruct-75K
license="MIT License", description="Library to create and parse ACH files (NACHA)", long_description=open("README.rst").read(), )
ise-uiuc/Magicoder-OSS-Instruct-75K
from django.utils.html import conditional_escape from ..utils import convert_bytes
ise-uiuc/Magicoder-OSS-Instruct-75K
Parameters: None Returns: None """ if self._connected: self.queue_message('v', "Closing gRPC connection to target host")
ise-uiuc/Magicoder-OSS-Instruct-75K
*/ eventFromMessage(message: string, level?: Severity, hint?: EventHint): PromiseLike<Event>; /** * @inheritDoc */ protected _setupTransport(): Transport; /** * If true, native client is availabe and active */ private _isNativeTransportAvailable; /** * Starts native...
ise-uiuc/Magicoder-OSS-Instruct-75K
Image('/content/drive/My Drive/Colab Notebooks/ Data Science - Minerando Dados/datasets/joins.png') """**Consultando os dados nos dois datasets e ligando através da chave order_id** * Selecionando os atributos do dataset **orders (pedidos)** * order_id (id do pedido) * order_status (status do pedido)
ise-uiuc/Magicoder-OSS-Instruct-75K
}}}} #endif
ise-uiuc/Magicoder-OSS-Instruct-75K
import os import json import flask
ise-uiuc/Magicoder-OSS-Instruct-75K
tap((action) => { const {path, title, related: {id, __contentType}} = action.payload.currentPage; this.router.navigateByUrl(path).then(() => { switch (__contentType) { case 'api::page.page': this.navigationService.getPageContent(id) ...
ise-uiuc/Magicoder-OSS-Instruct-75K
export * from './HiveNode';
ise-uiuc/Magicoder-OSS-Instruct-75K
with open(classFile, "rt") as f: class_names = f.read().rstrip("\n").split("\n") detection_model = create_detection_model() while exit_key_pressed(): image = get_webcam_image() image_with_objects = detect_objects_in_image(image) image_in_filter_grey = detect_objects_in_image(greyscale(image))
ise-uiuc/Magicoder-OSS-Instruct-75K
mask = np.zeros(labeled_im.shape) keep_pixels = np.in1d(labeled_im, keep) keep_pixels = keep_pixels.reshape(labeled_im.shape) mask[keep_pixels] = 1 labeled_im[mask == 0] = 0 return labeled_im # %%===========================================================================
ise-uiuc/Magicoder-OSS-Instruct-75K
>>> thread = api.update_remotesupport_connectemc_with_http_info(remotesupport_connectemc, async_req=True) >>> result = thread.get() :param async_req bool
ise-uiuc/Magicoder-OSS-Instruct-75K
-v /images:/images \ -p 9090 \ -t danpersa/remindmetolive-skrop:latest -verbose docker run --rm -d --name nginx -p 80:8080 \ --link node1:node1 --link node2:node2 --link skrop:skrop \ -t danpersa/remindmetolive-nginx:latest docker run -d --restart=always \ -v /var/run/docker.sock:/var/run/docker.sock logz...
ise-uiuc/Magicoder-OSS-Instruct-75K
import re import bs4 from LimeSoup.lime_soup import Soup, RuleIngredient from LimeSoup.parser.elsevier_xml import ( resolve_elsevier_entities, extract_ce_text, find_non_empty_children, node_named, extract_ce_para, extract_ce_section, extract_ce_abstract, extract_ce_title, remove_consecutive_whitespaces) ...
ise-uiuc/Magicoder-OSS-Instruct-75K
LOG = logging.getLogger(__name__) def verify(test, reality, tmpl): for name in tmpl.resources: rsrc_count = len(reality.resources_by_logical_name(name)) test.assertEqual(1, rsrc_count, 'Found %d copies of resource "%s"' % (rsrc_count, ...
ise-uiuc/Magicoder-OSS-Instruct-75K
# # See LICENSE.txt file in the root directory # of this source tree for licensing information. # import selectors import socket import types from typing import Callable from clai.datasource.server_status_datasource import ServerStatusDatasource from clai.server.command_message import Action
ise-uiuc/Magicoder-OSS-Instruct-75K
elif self.rx_state == self.rxfsm['RxEscape']: # Unconditionally buffer any byte following the escape sequence self.rxbuf += b
ise-uiuc/Magicoder-OSS-Instruct-75K
} if ($member->group_level == 0) { return $next($request); } return abort(403); }
ise-uiuc/Magicoder-OSS-Instruct-75K
!isPublicProfile && userProfile?.images?.length > 0 ) { console.log(selectedImage) await updateImageDBMutation(selectedImage) } })() }, [selectedImage])
ise-uiuc/Magicoder-OSS-Instruct-75K
connect_recursive(node2?.left, node2?.right) }
ise-uiuc/Magicoder-OSS-Instruct-75K
import django.db.models.deletion
ise-uiuc/Magicoder-OSS-Instruct-75K
It can generate payload for 32 or 64 bits architectures. The size of the addr is taken from ``context.bits`` Arguments: offset(int): the first formatter's offset you control writes(dict): dict with addr, value ``{addr: value, addr2: value2}`` numbwritten(int): number of byte already...
ise-uiuc/Magicoder-OSS-Instruct-75K
- adjusted_rewards: (batch_size, max_path_length) - env_infos: dict of ndarrays of shape (batch_size, max_path_length, ?) - agent_infos: dict of ndarrays of shape (batch_size, max_path_length, ?) """ assert type(paths) == list, 'paths must be ...
ise-uiuc/Magicoder-OSS-Instruct-75K
#EFF_CRAWL_PATH=$1 #EFF_ROOT_URL=$2
ise-uiuc/Magicoder-OSS-Instruct-75K
class UserApiSerializer(serializers.ModelSerializer): class Meta:
ise-uiuc/Magicoder-OSS-Instruct-75K
} export interface DeviceListDispatchProps { listDevices: (query?: DeviceQuery) => void; deleteDevices: (deviceIds: string[]) => void;
ise-uiuc/Magicoder-OSS-Instruct-75K
AnyDict = Dict[str, Any] # pragma: no mutate datetime_or_str = Union[datetime, str] # pragma: no mutate
ise-uiuc/Magicoder-OSS-Instruct-75K
optionLength = buf[0] & 0xf; GetHelpData().mNextOptionOffset += sizeof(uint8_t); if (optionDelta < kOption1ByteExtension) { // do nothing } else if (optionDelta == kOption1ByteExtension) {
ise-uiuc/Magicoder-OSS-Instruct-75K
formats = [] for k, v in (item.get('source') or {}).items(): if not v: continue if k in ('mp4', 'hls'): for res, video_url in v.items():
ise-uiuc/Magicoder-OSS-Instruct-75K
def xyxy_to_xywh(boxes): assert boxes.shape[1] >= 4 boxes[:, 2:4] -= boxes[:, :2] return boxes def xywh_to_xyxy(boxes):
ise-uiuc/Magicoder-OSS-Instruct-75K
# # Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved. # # This file is part of ewm-cloud-robotics # (see https://github.com/SAP/ewm-cloud-robotics). # # This file is licensed under the Apache Software License, v. 2 except as noted # otherwise in the LICENSE file (https://github.com/SAP/ewm-clo...
ise-uiuc/Magicoder-OSS-Instruct-75K
namespace PropertyValidator;
ise-uiuc/Magicoder-OSS-Instruct-75K
})) }
ise-uiuc/Magicoder-OSS-Instruct-75K
fn help() { print!( "\nUsage: pm <command> Options: -V, --version output the version number -h, --help output usage information
ise-uiuc/Magicoder-OSS-Instruct-75K
/** * 棋牌游戏接口API * @author iceworld * */ public interface ChessGame { /** * 创建一局新游戏[发牌] * * @return
ise-uiuc/Magicoder-OSS-Instruct-75K