seed
stringlengths
1
14k
source
stringclasses
2 values
# List only directories # shellcheck disable=SC2139 alias lsd="ls -lF ${colorflag} | grep --color=never '^d'"
ise-uiuc/Magicoder-OSS-Instruct-75K
df4["Unit"] = "$" df4["ActivityProducedBy"] = "All Species" # add missing dataframe fields (also converts columns to desired datatype) flow_df = add_missing_flow_by_fields(df4, flow_by_activity_fields) parquet_name = 'NOAA_FisheryLandings_2012-2018'
ise-uiuc/Magicoder-OSS-Instruct-75K
400: exceptions.BadUrl('The url passed is poorly framed'), 404: exceptions.APIError(404,'Dagpi is down'), 401: exceptions.IncorrectToken('Your token is invalid'), 408: exceptions.ImageUnaccesible(408,"The API was unable to connect and download your image"), 41...
ise-uiuc/Magicoder-OSS-Instruct-75K
return json.loads(output) except Exception as e: return {} def get_classes(symbol): try: output = Console.run_command('classes', [symbol]) return json.loads(output) except Exception as e: return [] def git_config(config):
ise-uiuc/Magicoder-OSS-Instruct-75K
>>> utils.clear_function_caches() >>> header = data_file.get_header("./removed.fits") >>> assert "CHECKSUM" not in header >>> assert "DATASUM" not in header >>> ChecksumScript("crds.refactor.checksum --verify ./removed.fits")() # doctest: +ELLIPSIS CRDS - INFO - Verifying checksum fo...
ise-uiuc/Magicoder-OSS-Instruct-75K
<title>{{ config('app.name', 'Laravel') }}</title> <!-- Fonts --> <link rel="dns-prefetch" href="https://fonts.gstatic.com"> <link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet" type="text/css"> <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/al...
ise-uiuc/Magicoder-OSS-Instruct-75K
author_email = '<EMAIL>', url = 'https://github.com/ParkJeongseop/PlaylistManager', install_requires = [ 'selenium' ],
ise-uiuc/Magicoder-OSS-Instruct-75K
class secretChat(Type): id = None # type: "int32" user_id = None # type: "int32" state = None # type: "SecretChatState" is_outbound = None # type: "Bool" ttl = None # type: "int32" key_hash = None # type: "bytes" layer = None # type: "int32"
ise-uiuc/Magicoder-OSS-Instruct-75K
namespace RecordPoint.Connectors.SDK.TaskRunner { public class TaskRunnerInformation<T> : TaskRunnerInformationBase
ise-uiuc/Magicoder-OSS-Instruct-75K
Args: x (np.ndarray): MxN input data array y (np.ndarray): M output targets beta (np.ndarray): parameter to optimize Returns: dict of constraints
ise-uiuc/Magicoder-OSS-Instruct-75K
from telegram import InlineKeyboardMarkup, InlineKeyboardButton from telegram.ext import (Updater, CommandHandler, MessageHandler, Filters, CallbackQueryHandler) from telegram.error import (TelegramError, Unauthorized, BadRequest, TimedOut, ChatMigrated, NetworkErro...
ise-uiuc/Magicoder-OSS-Instruct-75K
ASSERT_TRUE(chiller.remove().size() > 0); EXPECT_EQ(5u,plantLoop.demandComponents().size()); } // Add to new demand branch TEST(ChillerElectricEIR,PlantLoop_addDemandBranch) { model::Model m; model::PlantLoop plantLoop(m); model::CurveBiquadratic ccFofT(m);
ise-uiuc/Magicoder-OSS-Instruct-75K
<Route exact path="/profile"> <Profile /> </Route> <Route exact path="/search">
ise-uiuc/Magicoder-OSS-Instruct-75K
DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': ':memory:', 'USER': '', 'PASSWORD': '', 'HOST': '', 'PORT': '', }
ise-uiuc/Magicoder-OSS-Instruct-75K
class StartEvent(catch_event.CatchEvent): """ Class used for representing tStartEvent of BPMN 2.0 graph """ def __init__(self): """ Default constructor, initializes object fields with new instances.
ise-uiuc/Magicoder-OSS-Instruct-75K
self._testParser.add_argument('--max_length', help='maximum of number of words in one sentence', type=int, default=self.config['fixlen']) self._testParser.add_argument('--pos_num', help='number of position embedding vectors', type=int, ...
ise-uiuc/Magicoder-OSS-Instruct-75K
alt = 640.0 global position_, angle_, velocidade position_ = 0 angle_ = 0 velocidade = 0 class Screen: def __init__(self, larg, alt, bg_image): pygame.init() # Set window's name pygame.display.set_caption("Simulador 2D de Drone") # Load background image self.bg_image = bg_image
ise-uiuc/Magicoder-OSS-Instruct-75K
export * from './manufacturing-order.component';
ise-uiuc/Magicoder-OSS-Instruct-75K
class Solution: def buildTree(self, inorder: List[int], postorder: List[int]) -> TreeNode: if not inorder: return None
ise-uiuc/Magicoder-OSS-Instruct-75K
if(targetAgentTypeKey.equals(type.getAgentTypeKey())) { images.add(new Pair<>(profile, image)); break; } } } return new AgentPoolCloudImagesConnection(images, PaginationArguments.everything());
ise-uiuc/Magicoder-OSS-Instruct-75K
def _get_now(): ''' Get the current datetime. This is specified as a function to make testing easier. ''' return datetime_module.datetime.now()
ise-uiuc/Magicoder-OSS-Instruct-75K
from keras2c.keras2c_main import k2c __author__ = "<NAME>" __copyright__ = "Copyright 2020, <NAME>" __license__ = "MIT" __maintainer__ = "<NAME>, https://github.com/f0uriest/keras2c" __email__ = "<EMAIL>"
ise-uiuc/Magicoder-OSS-Instruct-75K
vec![&completer::portforwardaction_values_completer], no_named_complete!(), |matches, env, writer| { let stop = matches.is_present("action") && matches.value_of("action").unwrap() == "stop"; let output = matches.is_present("action") && matches.value_of("action").unwrap() == "outp...
ise-uiuc/Magicoder-OSS-Instruct-75K
[StructLayout(LayoutKind.Sequential)] public struct LPCTSTR : IConstTerminatedAutoStringPointer
ise-uiuc/Magicoder-OSS-Instruct-75K
from archivy.search import search, search_frontmatter_tags from archivy.config import Config
ise-uiuc/Magicoder-OSS-Instruct-75K
mocked_alma, mocked_alma_api_client, po_line_record_all_fields, ): po_line_dict = credit_card_slips.create_po_line_dict( mocked_alma_api_client, po_line_record_all_fields, ) assert po_line_dict["account_1"] == "1239410001021" assert "account_2" not in po_line_dict assert ...
ise-uiuc/Magicoder-OSS-Instruct-75K
override init(){ } init(_ dict : [String :NSObject]) { super.init()
ise-uiuc/Magicoder-OSS-Instruct-75K
# Typing aliases: Vector3D = Union[np.ndarray, list, Tuple[float, float, float]]
ise-uiuc/Magicoder-OSS-Instruct-75K
assert not B == C def testWithArray(self): B = BBox(((1.0, 2.0), (5., 10.))) C = np.array(((1.0, 2.0), (5., 10.))) assert B == C def testWithArray2(self):
ise-uiuc/Magicoder-OSS-Instruct-75K
import RxSwift extension Reactive where Base: UIScrollView { var reachedBottom: Observable<Void> { return contentOffset .flatMap { [weak base] contentOffset -> Observable<CGFloat> in guard let scrollView = base else { return Observable.empty() ...
ise-uiuc/Magicoder-OSS-Instruct-75K
extension VStack: ViewBuildable { public func buildDebugTree(tree: inout ViewNode, parent: ViewNode) { let node = ViewNode(value: VStackDrawable(alignment: _tree.root.alignment)) parent.addChild(node: node) ViewExtractor.extractViews(contents: _tree.content).forEach { $0...
ise-uiuc/Magicoder-OSS-Instruct-75K
getFabricUIicons(): any; }
ise-uiuc/Magicoder-OSS-Instruct-75K
nomad run hashi-ui.nomad
ise-uiuc/Magicoder-OSS-Instruct-75K
def cli(): """ Stop all services. :return: Subprocess call result """ cmd = 'pkill honcho && docker-compose stop'
ise-uiuc/Magicoder-OSS-Instruct-75K
} def __members(self, string: str) -> Optional[int]: regex = match(r"\d+", string) return int(regex.group()) if regex else None
ise-uiuc/Magicoder-OSS-Instruct-75K
switch result { case .success(let array): onComplete(.success(array)) case .failure(let error): onComplete(.failure(error)) } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
"50223".to_string(), "2".to_string(), "no".to_string(), "infared".to_string(), "test".to_string()); let mut encountered_error = false; let utc: Arc<Mutex<DateTime<Utc>>> =Arc::new(Mutex::new(Utc::now())); let times_sensed:Arc<Mutex<...
ise-uiuc/Magicoder-OSS-Instruct-75K
__all__ = ("natural_earth",) from .natural_earth import natural_earth
ise-uiuc/Magicoder-OSS-Instruct-75K
}; size_t SizeInBytes() const { // according to morton_sample_configs.h: // Morton3_8 - 3-slot buckets with 8-bit fingerprints: 11.7 bits/item // (load factor = 0.95) // so in theory we could just hardcode the size here, // and don't measure it // return (siz...
ise-uiuc/Magicoder-OSS-Instruct-75K
public System.Collections.IEnumerator GetEnumerator() => InnerStack.GetEnumerator(); void IStack.Push(object item) => throw GetReadOnlyListOrCollectionException(); object IStack.Pop() => throw GetReadOnlyListOrCollectionException();
ise-uiuc/Magicoder-OSS-Instruct-75K
luis = Persona('Luis') luis.hola() luis.agregarApellido('Perez') pedro = Persona('Pedro') pedro.hola() pedro.agregarEdad(17) print(pedro) pedro.nombre = 'Pablo' print(pedro)
ise-uiuc/Magicoder-OSS-Instruct-75K
self } } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
suite = unittest.TestLoader().loadTestsFromModule(sys.modules[__name__]) if __name__ == '__main__': unittest.TextTestRunner(verbosity=2).run(suite)
ise-uiuc/Magicoder-OSS-Instruct-75K
rm mini-imagenet.zip
ise-uiuc/Magicoder-OSS-Instruct-75K
return def test_add_datasets(tmpdir): """These should add non duplicate smiles to the compounds list.
ise-uiuc/Magicoder-OSS-Instruct-75K
"Deprecated": "DEPRECATED",
ise-uiuc/Magicoder-OSS-Instruct-75K
export default defineSequelizeModel({ tableName: 'categoryRef', fields: { required: { objectID: { kind: 'checked', type: t.number }, objectType: { kind: 'checked', type: CATEGORY_REF_OBJECT_TYPE }, categoryID: { kind: 'branded-integer', brand: CATEGORY_ID }, }, nonNullWithDefault: { ...
ise-uiuc/Magicoder-OSS-Instruct-75K
self.height = height - 1 self.initialize_grid() self.grid_bin = np.zeros((height, width)) self.grid_entities = []
ise-uiuc/Magicoder-OSS-Instruct-75K
locale, ]); const loadCache = useCallback(() => {
ise-uiuc/Magicoder-OSS-Instruct-75K
assert len(pb) == len(data) assert repr(pb) == repr(data) assert str(pb) == str(data) def test_unset(): assert repr(nested.UNSET) == "<UNSET>" def test_resolve_key_path_with_invalid_keys_paths(): assert nested.resolve_key_path({}, "") == ({}, "") assert nested.resolve_key_path({},...
ise-uiuc/Magicoder-OSS-Instruct-75K
'ToDo-sort_order', 'Currency Exchange-sort_order', 'Company-abbr-in_list_view', 'Stock Reconciliation-expense_account-in_standard_filter',
ise-uiuc/Magicoder-OSS-Instruct-75K
public static final String ANY = "ANY"; /** HTTP GET method */ public static final String GET = "GET"; /** HTTP POST method */ public static final String POST = "POST"; /** HTTP PUT method */ public static final String PUT = "PUT"; /** HTTP DELETE method */ public stat...
ise-uiuc/Magicoder-OSS-Instruct-75K
private MS_CipherBuilder() {
ise-uiuc/Magicoder-OSS-Instruct-75K
fMessenger->SendMessage(&message); } } int32 NetworkManager::CheckConnectionThread(void *cookie) { NetworkManager *manager = static_cast<NetworkManager*>(cookie); manager->CheckInternetConnection();
ise-uiuc/Magicoder-OSS-Instruct-75K
image_by_location = Image.location_filter(test_location) self.assertTrue(len(image_by_location) > 0)
ise-uiuc/Magicoder-OSS-Instruct-75K
from curriculum import api as curriculum_api from responses import api as responses_api, socket_server from general import api as general_api from organization import api as organization_api app = Flask(__name__) CORS(app) socket_io = socket_server.initialize_server(app)
ise-uiuc/Magicoder-OSS-Instruct-75K
private void addErrorTab(String title, String message) { JPanel p = new JPanel(new BorderLayout()); String labelMessage = NLS.bind(Messages.JConsolePluginTabbedPane_ERROR_MESSAGE_COULD_NOT_CREATE_PLUGIN_TAB_HTML, message); JLabel l = new JLabel(labelMessage); l.setBackground(Color.WHITE); l.setForeground...
ise-uiuc/Magicoder-OSS-Instruct-75K
for filename in input_files: # Include this file. print(f"Looking at {filename} for tests...") with open(filename, "r") as fp: lines = fp.readlines() # First, discover test names.
ise-uiuc/Magicoder-OSS-Instruct-75K
didSet { selectBtn.mainTintColor = mainTintColor } } lazy var selectBtn: SESelectButton = { let selectBtn = SESelectButton() selectBtn.imageSize = CGSize(width: 30, height: 30) return selectBtn }() lazy var backBtn: UIButton = { let b...
ise-uiuc/Magicoder-OSS-Instruct-75K
filenameer = raw_input("Please type the filename (excluding extension): ").strip() header_file = os.path.join(folderloc, filenameer + ".hpp") if not os.path.isfile(header_file):
ise-uiuc/Magicoder-OSS-Instruct-75K
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ namespace System.Fabric.Health { using System.Collections.Generic; using System.Fabric.Common.Serialization; using System.Fabric.Interop; us...
ise-uiuc/Magicoder-OSS-Instruct-75K
from categories.models import SuggestedCategory class SuggestedCategoryForm(ModelForm): class Meta: model = SuggestedCategory fields = [
ise-uiuc/Magicoder-OSS-Instruct-75K
import java.util.Properties; import org.apache.maven.model.io.xpp3.MavenXpp3Reader; import org.codehaus.plexus.util.xml.pull.XmlPullParserException; public class MvndTestUtil { private MvndTestUtil() { } public static String plugin(Properties props, String artifactId) { return artifactId + ":" + ...
ise-uiuc/Magicoder-OSS-Instruct-75K
self.message += extra_message super().__init__(self.message) class FeatureNotYetImplemented(PyQtSociusError): __module__ = 'pyqtsocius' def __init__(self, requested_feature): super().__init__(f"the feature '{requested_feature}' is currently not yet implemented")
ise-uiuc/Magicoder-OSS-Instruct-75K
* Copyright 2006 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ package java.awt.event; import java.util.EventListener; /** * The listener interface for receiving window state events.
ise-uiuc/Magicoder-OSS-Instruct-75K
d = m.event("subscribe", type="BatteryCharge") e_name = d.get("event_name") time.sleep(1) d = m.event("get_data", name=e_name) # do something with the data here d = m.event("unsubscribe", name=e_name)
ise-uiuc/Magicoder-OSS-Instruct-75K
return True def use(backendName=None): """ use(backendName=None) Use the specified backend and return an App instance that has a run() method to enter the GUI toolkit's mainloop. If no backend is given, a suitable backend is tried automatically. """
ise-uiuc/Magicoder-OSS-Instruct-75K
machine = EmbeddingsMachine(corpusrep, w2vrep, kvsrep) machine.init_work()
ise-uiuc/Magicoder-OSS-Instruct-75K
particle.x += velocity_div_yaw_rate * (sin(particle.theta + yaw_rate_times_delta_t) - sin(particle.theta)); particle.y += velocity_div_yaw_rate * (cos(particle.theta) - cos(particle.theta + yaw_rate_times_delta_t)); particle.theta += yaw_rate_times_delta_t; }
ise-uiuc/Magicoder-OSS-Instruct-75K
self.json_file = os.path.join(os.path.join(self.ansible_base_dir, self.json_file_name)) for file in [self.yml_file, self.json_file]: if os.path.exists(file) is True: os.unlink(file) def tearDown(self):
ise-uiuc/Magicoder-OSS-Instruct-75K
# undef BOOST_FT_cc_name # undef BOOST_FT_cc # undef BOOST_FT_cc_id
ise-uiuc/Magicoder-OSS-Instruct-75K
def __repr__(self): s='<Elem{:4d}> NodeIDs: {}'.format(self.ID, self.nodeIDs) if self.nodes is not None: s+=' l={:.2f}'.format(self.length) return s
ise-uiuc/Magicoder-OSS-Instruct-75K
} } <<<<<<< HEAD public function getReservationsManager(Request $request) {
ise-uiuc/Magicoder-OSS-Instruct-75K
# Open Files task1_file = open_file(exp_folder, submission, 'task1', language + '.txt') task2_file = open_file(exp_folder, submission, 'task2', language + '.txt') # Write to File i = 0 for word in eval_words: task1_res_line = word + '\t' + str(task1_result[i]) + '\n' task1_file.write(task1_res_line) ...
ise-uiuc/Magicoder-OSS-Instruct-75K
if (!$action) { return response()->json([
ise-uiuc/Magicoder-OSS-Instruct-75K
this.generatePasswordConfirmValidator(newPasswordControl, confirmPasswordControl); confirmPasswordControl.setValidators(passwordConfirmValidator);
ise-uiuc/Magicoder-OSS-Instruct-75K
using System.Linq.Expressions; using System.Web.Script.Serialization; namespace Framework.Utility { /// <summary> /// <see cref="Object"/> helper /// </summary> public partial class ObjectHelper { /// <summary> /// Extract property name /// </summary> /// <typepa...
ise-uiuc/Magicoder-OSS-Instruct-75K
void CTriangleSelector::getTriangles(core::triangle3df* triangles, const core::matrix4* transform) { u32 cnt = m_triangles.size(); core::matrix4 mat;
ise-uiuc/Magicoder-OSS-Instruct-75K
def __init__(self, news_dataframe): self.news_dataframe = news_dataframe def plot_topic_distrubtion(self): topics = self.news_dataframe['Topic'].value_counts().index[:10] distributions = self.news_dataframe['Topic'].value_counts()[:10] fig, ax = plt.subplots(figsize=(18,10)) ...
ise-uiuc/Magicoder-OSS-Instruct-75K
if [ "${recursive}" == 'true' ]; then recursive=' -r' fi
ise-uiuc/Magicoder-OSS-Instruct-75K
Class<?> objClass = value.getClass(); if (objClass.isArray()) { Class<?> componentType = value.getClass().getComponentType(); if (componentType != null && componentType.isPrimitive()) if (byte.class.isAssignableFrom(componentType)) statement.se...
ise-uiuc/Magicoder-OSS-Instruct-75K
boost::make_tuple(src1.Begin(), src2.Begin(), dst.Begin()) ), compute::make_zip_iterator( boost::make_tuple(src1.End(), src2.End(), dst.End()) ), get<2>(_1) = get<0>(_1) + factor * get<1>(_1), queue
ise-uiuc/Magicoder-OSS-Instruct-75K
obj.FillObject(row); list.Add(obj); } return list; } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
view.addSubview(confirmedSignsSwitch) view.addSubview(confirmLabel) topLabel.snp.makeConstraints { make in make.top.equalTo(safeArea.snp.top) make.left.equalTo(safeArea.snp.left).offset(defaultLeftOffset) make.width.equalTo(screenSize.width *...
ise-uiuc/Magicoder-OSS-Instruct-75K
def message(self, buf, font, msg, data, _x_what_is_this): print(msg) return True debugger = Debugger() hb.buffer_set_message_func(buf, debugger.message, 1, 0) ## ## Add text to buffer ## # # See https://github.com/harfbuzz/harfbuzz/pull/271 #
ise-uiuc/Magicoder-OSS-Instruct-75K
const std::string& error_table, const std::string& error_column); std::string formatErrorMessage(); virtual const char* what() const throw();
ise-uiuc/Magicoder-OSS-Instruct-75K
# FT_GetDeviceInfoList def get_device_info_list(): stat = DWORD() pDest = (FT_DEVICE_LIST_INFO_NODE * _ipdwNumDevs.value)() # for num in range(_ipdwNumDevs.value): # print(dir(pDest[num]))
ise-uiuc/Magicoder-OSS-Instruct-75K
import { useLocale } from '../../_mixins' export default defineComponent({
ise-uiuc/Magicoder-OSS-Instruct-75K
{ public int Value { get; set; } public IExpression? Initializer { get; set; } public EnumMemberDeclaration(SourceRange source, string name, EnumType type, IExpression? initializer) : base(source, name, type) => Initializer = initializer; public override TReturn Accept<...
ise-uiuc/Magicoder-OSS-Instruct-75K
length -= 1; if length == 0 { stage = 0; } } } println!("{}", len); }
ise-uiuc/Magicoder-OSS-Instruct-75K
# I don't think we want to censor anything right now: # -regress_censor_motion 0.35 \ # -regress_censor_outliers 0.1 \ # -regress_apply_mot_types demean deriv \ # Remove bandpass filtering (too controversial; Apr. 2019) # -regress_bandpass 0.0 0.2 \
ise-uiuc/Magicoder-OSS-Instruct-75K
height = int(im.size[1] * rate) # im = im.resize((width, height), Image.ANTIALIAS) interval = int(0.05 * width) toImage = Image.new("RGB", (n * width + interval * (n - 1), height), "white") # 构造图片的宽和高,如果图片不能填充完全会出现黑色区域 for i in range(n): im = imgs[i] im = im.resize((width, height...
ise-uiuc/Magicoder-OSS-Instruct-75K
setSearchText(text: string) { if (this.searchInput) { this.searchInput.nativeElement.value = text; } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
echo "done."
ise-uiuc/Magicoder-OSS-Instruct-75K
Square(Border.outer, Line.TR), Square(Border.inner, Line.square), Square(Border.outer, Line.BL), Square(Border.outer, Line.BR) ], [ Square(Border.outer, Line.TL), Square(Border.none, Line.TL),
ise-uiuc/Magicoder-OSS-Instruct-75K
# ADD SERVER GATE CONNECTIONS set_of_tcp_settings = set() tcp_settings = ConnectionSettings(ConnectionDirectionRole.server, SERVER_ADDRESS, SERVER_KEYWORD) set_of_tcp_settings.add(tcp_settings) # CREATE SERVER http_server = ASockIOCore(set_of_tcp_settings) # SET SERVER SETTINGS http_s...
ise-uiuc/Magicoder-OSS-Instruct-75K
} static func hide() { activityIndicator.removeFromSuperview() } }
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>custom_components/foobar/__init__.py<gh_stars>0 """foobar2000 media player custom component init file"""
ise-uiuc/Magicoder-OSS-Instruct-75K
<?php /** * Copyright (c) 2011, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * * - Redistributions of source code must retain the above copyright notice, this list of conditions and...
ise-uiuc/Magicoder-OSS-Instruct-75K
$this->attributes['colspan'] = $count; } } public function render() {
ise-uiuc/Magicoder-OSS-Instruct-75K