seed
stringlengths
1
14k
source
stringclasses
2 values
def _get_comment(self): return 'Resources'
ise-uiuc/Magicoder-OSS-Instruct-75K
<SentimentDissatisfied style={{fontSize: '7rem', color: 'rgba(255, 255, 255, 0.5)'}}/> <Box marginY={1}/> <Typography variant={'h5'} children={props.children}/> </Box> ) }
ise-uiuc/Magicoder-OSS-Instruct-75K
//studentNumber Route Route::resource('/studentnumbers', StudentNumberController::class); }); Route::group(['prefix' => '/professor', 'middleware' => 'role:Professor'], function () { //profile Routes Route::resource('/profprofile', ProfessorProfileController::class); // lectures Routes Route::...
ise-uiuc/Magicoder-OSS-Instruct-75K
def recompute(self, sort=False, **kwargs): """ Re-compute a previously computed model. You might want to do this if the kernel parameters change and the kernel is labeled as ``dirty``. :params sort: (optional) Should the samples be sorted before computing the covariance ...
ise-uiuc/Magicoder-OSS-Instruct-75K
universe = cls(len(min_row), len(data)) for x, y in universe.through(): universe[x, y] = data[y][x] if is_cell(data[y][x]) else None return universe @classmethod def random(cls, width: int, height: int, get_random: Callable[[], T]) -> BaseUniverseType: """Creates a...
ise-uiuc/Magicoder-OSS-Instruct-75K
} ) ] ) } #[entry_def] fn person_entry_def() -> ValidatingEntryType { entry!(
ise-uiuc/Magicoder-OSS-Instruct-75K
import com.rrcorpus.domain.ShippingAddress; import com.rrcorpus.domain.ShoppingCart; import com.rrcorpus.domain.User; public interface OrderService { Order createOrder( ShoppingCart shoppingCart,
ise-uiuc/Magicoder-OSS-Instruct-75K
__all__ = 'MissingContextVariable', class MissingContextVariable(KeyError): pass
ise-uiuc/Magicoder-OSS-Instruct-75K
# get output data path data_path = kanban.get_data_path() # get previous service list service_list = kanban.get_services() ######### main function ############# # output after kanban conn.output_kanban(
ise-uiuc/Magicoder-OSS-Instruct-75K
sort(s.begin(),s.end(),sortbysec); FOR(0,a,1) { cout<<s[i].first<<" "; }
ise-uiuc/Magicoder-OSS-Instruct-75K
bsp_dependency, parameter, }; attributes.report_unexpected_if_not_empty()?; Ok(result) } }
ise-uiuc/Magicoder-OSS-Instruct-75K
void Sruba::krec(double kat) { kat_obrotu_sruby+=kat; if(kat_obrotu_sruby>=360 || kat_obrotu_sruby<=-360)
ise-uiuc/Magicoder-OSS-Instruct-75K
products: [
ise-uiuc/Magicoder-OSS-Instruct-75K
case mainThreadChecker }
ise-uiuc/Magicoder-OSS-Instruct-75K
} for data_point in Y_dev: counts[tuple(data_point)] += 1 cb = JointProbabilityDistribution( Ys_ordered, cardinalities, [ float(counts[tuple(Y_vec)]) / len(Y_dev) for Y_vec in Y_vecs ...
ise-uiuc/Magicoder-OSS-Instruct-75K
from rest_framework import routers from drf.base import views router = routers.DefaultRouter() router.register(r'members', views.MemberViewSet) # Wire up our API using automatic URL routing. # Additionally, we include login URLs for the browsable API. urlpatterns = [ path('api/', include(router.urls)), path(...
ise-uiuc/Magicoder-OSS-Instruct-75K
def __init__(self,ai_settings): """初始化统计信息""" self.ai_settings=ai_settings self.reset_states()
ise-uiuc/Magicoder-OSS-Instruct-75K
example_2_57 = map_from_text( """..>>v>vv.. ..v.>>vv.. ..>>v>>vv. ..>>>>>vv. v......>vv v>v....>>v vvv.....>> >vv......> .>v.vv.v..""" )
ise-uiuc/Magicoder-OSS-Instruct-75K
chances['slow-spike'] -= chance_modifier chances['sudden-spike'] -= chance_modifier if linear_model.coeffs[0] <= -1:
ise-uiuc/Magicoder-OSS-Instruct-75K
#[inline] async fn from_file_with_offset_async<P>( path: P, initial_offset: usize, endidness: Endidness, ) -> Result<Self> where P: AsRef<Path> + Sync + Send, { let path = path.as_ref().to_path_buf(); spawn_blocking(move || Self::from_file_with_offset(...
ise-uiuc/Magicoder-OSS-Instruct-75K
} } public AbstractDualSequenceCreator() { } public AbstractDualSequenceCreator(ICodeCreatorContainerCreator pParentContainerCreator)
ise-uiuc/Magicoder-OSS-Instruct-75K
def on_workdays(func): def wrapper(*args, **kwargs): if not workday(args[0]): return "" else: return func(*args, **kwargs) return wrapper
ise-uiuc/Magicoder-OSS-Instruct-75K
if section not in self.sections: return [] return list(self.configparser[section].keys())
ise-uiuc/Magicoder-OSS-Instruct-75K
uboot_test \ RPI_UBOOT_SRC \ "$RPI_UBOOT_SRC/board/raspberrypi/rpi_b/Makefile" \ "git clone git://github.com/gonzoua/u-boot-pi.git ${RPI_UBOOT_SRC}" strategy_add $PHASE_BUILD_OTHER uboot_patch ${RPI_UBOOT_SRC} `uboot_patch_files`
ise-uiuc/Magicoder-OSS-Instruct-75K
def on_subscribe(self, subscription: DefaultSubscription): self.subscription = subscription def on_next(self, value, is_complete=False): self.values.append(value) if is_complete:
ise-uiuc/Magicoder-OSS-Instruct-75K
static boolean loadRotationMetadata(final FilmstripItem data) { final String path = data.getData().getFilePath(); MediaMetadataRetriever retriever = new MediaMetadataRetriever(); try { retriever.setDataSource(path); data.getMetadata().setVideoOrientation(retriever.ext...
ise-uiuc/Magicoder-OSS-Instruct-75K
1.85, 1.46, 2.37, 2.77, 2.88, 2.76, 2.72, 3.17,
ise-uiuc/Magicoder-OSS-Instruct-75K
import ast import random import time import math
ise-uiuc/Magicoder-OSS-Instruct-75K
XCTAssertEqual( try PackageController.awsDocumentationURL(owner: "Foo", repository: "Bar", reference: "1.2.3", fragment: .data, path: "path").string, "http://spi-prod-docs.s3-website.us-east-2.amazonaws.com/foo/bar/1.2.3/data/path" ) XCTAssertEqual( try Packag...
ise-uiuc/Magicoder-OSS-Instruct-75K
*/ @TableField("file_upload_type") private String fileUploadType; /** * 微博 */ private String weibo; /** * qq
ise-uiuc/Magicoder-OSS-Instruct-75K
w.close() def saveAnn(annpath, outpath, termcodes): annotation_content = list() #Load annotation, and save with new field. for linea,code in zip(csv.reader(open(annpath),dialect='excel',delimiter="\t"),termcodes): # Prepare code depending on the result (NIL, one term or list of terms) i...
ise-uiuc/Magicoder-OSS-Instruct-75K
const SimplePropertyContent = ({content}) => { return ( <Typography variant="body1">{content}</Typography> ) } export default SimplePropertyContent;
ise-uiuc/Magicoder-OSS-Instruct-75K
<div> <h3>Posts</h3> {!isAuthenticated ? ( <button onClick={() => login({ ignore: 'This will just set the headers' })}>Login</button> ) : ( <button onClick={() => dispatch(logout())}>Logout</button> )} <button onClick={() => setInitRetries(true)}>{isFetching ? 'r...
ise-uiuc/Magicoder-OSS-Instruct-75K
DA_PIPERMAIL_ES_CACHE_USERNAME="" \ DA_PIPERMAIL_ES_CACHE_PASSWORD="" \ DA_PIPERMAIL_AUTH0_GRANT_TYPE="" \ DA_PIPERMAIL_AUTH0_CLIENT_ID="" \ DA_PIPERMAIL_AUTH0_CLIENT_SECRET="" \ DA_PIPERMAIL_AUTH0_AUDIENCE="" \ DA_PIPERMAIL_AUTH0_BASE_URL="" \ DA_PIPERMAIL_ENVIRONMENT="" \ ./dads --pipermail-origin=https://www.openemb...
ise-uiuc/Magicoder-OSS-Instruct-75K
import xlrd from simple_report.core.document_wrap import BaseDocument, SpreadsheetDocument
ise-uiuc/Magicoder-OSS-Instruct-75K
package set summary "Command-line interface for SQLite" package set webpage "https://sqlite.org" package set src.url "https://sqlite.org/2020/sqlite-autoconf-3320100.tar.gz" package set src.sum "486748abfb16abd8af664e3a5f03b228e5f124682b0c942e157644bf6fff7d10" package set version "3.32.1" package set bsystem "configure...
ise-uiuc/Magicoder-OSS-Instruct-75K
def sample(n, d): pass @staticmethod @abstractmethod def loglikely(n, d, k): pass @staticmethod def likelihood(n, d, k): return np.exp(loglikely(n, d, k))
ise-uiuc/Magicoder-OSS-Instruct-75K
import demisto_client from demisto_sdk.commands.common.constants import WIDGET from demisto_sdk.commands.common.content.objects.pack_objects.abstract_pack_objects.json_content_object import \ JSONContentObject from wcmatch.pathlib import Path
ise-uiuc/Magicoder-OSS-Instruct-75K
HScrollBar_DrawLabel(&context, labelRect); Rect textRect = windAngle0; textRect._topLeft[0] += 32; /*Coord a = */DrawFormatText(&context, textRect, nullptr, ColorB(0xffffffff), objects[q]._name); Rect scrollBar = windAngle0; scrollBar...
ise-uiuc/Magicoder-OSS-Instruct-75K
if valid: pfx = 'valid_' else: pfx = 'invalid_'
ise-uiuc/Magicoder-OSS-Instruct-75K
<!-- GLOBAL-LOADER -->
ise-uiuc/Magicoder-OSS-Instruct-75K
this.x = source.x; this.y = source.y; this.z = source.z; }
ise-uiuc/Magicoder-OSS-Instruct-75K
from optimization.stackoverflow_lr import centralized_stackoverflow_lr class CentralizedTasksTest(tf.test.TestCase, parameterized.TestCase):
ise-uiuc/Magicoder-OSS-Instruct-75K
#include "./cone.hpp" #include "./cylinder.hpp" #include "./ucylinder.hpp" #include "./paraboloid.hpp"
ise-uiuc/Magicoder-OSS-Instruct-75K
import Quartz import WebKit import CoreSpotlight class PreviewViewController: NSViewController, QLPreviewingController {
ise-uiuc/Magicoder-OSS-Instruct-75K
// rng_future.poll(); let w = unsafe { Waker::from_raw(RawWaker::new(core::ptr::null(), &RWV)) }; let mut ctx = Context::from_waker(&w);
ise-uiuc/Magicoder-OSS-Instruct-75K
throw new NotFoundException('Task not found'); } } this.logger.error('update', 'Failed to update task', error);
ise-uiuc/Magicoder-OSS-Instruct-75K
from transifex.native.cache import MemoryCache class TestMemoryCache(object): """Tests the functionality of the MemoryCache class.""" def test_returns_none_if_not_exists(self): cache = MemoryCache() assert cache.get('missing_key', 'en') is None def test_returns_entry_if_exists(self):
ise-uiuc/Magicoder-OSS-Instruct-75K
make -j4 make install echo "编译结束$ARCH" } preBuild
ise-uiuc/Magicoder-OSS-Instruct-75K
def decode(encoded_message, rails): rail_matrix = [list() for i in range(rails)] indices = [*[i for i in range(rails)], *[i for i in range(rails-2,0,-1)]] #The logic is that if walk along the rails and count the chars per rail, we know how many letters each rail will have #We can break the diagonals in...
ise-uiuc/Magicoder-OSS-Instruct-75K
pub fn new_start(period: Duration) -> Self { let mut me = Self::new(period); me.start(); me } /// Start the timer. Reset if already started. pub fn start(&mut self) { if !self.is_elapsed() {
ise-uiuc/Magicoder-OSS-Instruct-75K
export class Context {
ise-uiuc/Magicoder-OSS-Instruct-75K
return karma::generate(out,long_,number); } bool generators::float_to_string(std::string &str,float number)
ise-uiuc/Magicoder-OSS-Instruct-75K
new_content = hxs.xpath("//div[contains(@class,'content')]/div//text()").extract() # # Processing outputs item["intro"] = ' '.join(intro) item["title"] = ' '.join(title) new_content = ' '.join(new_content) new_content = re.sub('\n'...
ise-uiuc/Magicoder-OSS-Instruct-75K
class TreeNode: pass
ise-uiuc/Magicoder-OSS-Instruct-75K
</tr> } </tbody> <tfoot> <tr> <td colspan="9"> <ul class="pagination float-right"></ul> </td>
ise-uiuc/Magicoder-OSS-Instruct-75K
| 'AgKa2' | 'AgKb1';
ise-uiuc/Magicoder-OSS-Instruct-75K
def maximo(a, b, c): if a > b and a > c: return a elif b > c and b > a: return b
ise-uiuc/Magicoder-OSS-Instruct-75K
class Migration(migrations.Migration): dependencies = [ ('cadastro', '0005_auto_20191116_2034'), ] operations = [
ise-uiuc/Magicoder-OSS-Instruct-75K
## Increment the window currStart = currStart + offset currEnd = currStart + window return edits
ise-uiuc/Magicoder-OSS-Instruct-75K
import AVKit #if os(iOS)
ise-uiuc/Magicoder-OSS-Instruct-75K
if case .failure(let error) = result.toResult() { print(error) } else {
ise-uiuc/Magicoder-OSS-Instruct-75K
.unwrap(); } } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
class ConfigException(Exception): """ Raised if a configuration file is in the wrong format or cannot be parsed """ class Config: """ Find and parse values from the configuration file
ise-uiuc/Magicoder-OSS-Instruct-75K
return self._f160 @property def grid(self): """ grid onto which the image is plotted """ return self._grid @property def pixels_per_image(self): """
ise-uiuc/Magicoder-OSS-Instruct-75K
print("O maior numero eh %.0f"%num1) elif(num2>num1): print("O maior numero eh %.0f"%num2) else:
ise-uiuc/Magicoder-OSS-Instruct-75K
import os import importlib from gnip_tweet_evaluation import analysis,output """ Perform audience and/or conversation analysis on a set of Tweets. """ logger = logging.getLogger('analysis') logger.setLevel(logging.INFO) logger.addHandler(logging.StreamHandler())
ise-uiuc/Magicoder-OSS-Instruct-75K
def _get_argspec_from_func_def(self, node, obj, mod): if node.decorator_list: # might be @overload or something else we don't recognize return None
ise-uiuc/Magicoder-OSS-Instruct-75K
maxn u, v; std::cin >> u >> v; --u, --v; ad[u].push_back(v); ad[v].push_back(u);
ise-uiuc/Magicoder-OSS-Instruct-75K
* Written 2017, by SK Telecom */ @NamespaceList({ @Namespace(prefix = "xsi", reference = "http://www.w3.org/2001/XMLSchema-instance") }) @Root(strict = false) public class execInstanceControl extends oneM2MResource {
ise-uiuc/Magicoder-OSS-Instruct-75K
"""Execute compiled code using `exc_func`.
ise-uiuc/Magicoder-OSS-Instruct-75K
AddShaderDefination ("USE_LIGHTING", (double) material.GetFloat ("_Lighting") == 0.0 ? true : false); // laya里面,这个shader属性是写反了的
ise-uiuc/Magicoder-OSS-Instruct-75K
return (self.prefixes[-1] - self.prefixes[n-self.size]) / self.size # Your MovingAverage object will be instantiated and called as such: # obj = MovingAverage(size) # param_1 = obj.next(val)
ise-uiuc/Magicoder-OSS-Instruct-75K
if not tree.add_type_branch(type, type_dict) and not tree.is_in_tree(type): logger.error("No Type \"" + type + "\" found in type dictionary!") raise LookupError("No Type \"" + type + "\" found in type dictionary!") else:...
ise-uiuc/Magicoder-OSS-Instruct-75K
@author <NAME> <<EMAIL>> """ # # $Header: /nfs/slac/g/glast/ground/cvs/fitsGen/python/DC2_Classifier.py,v 1.3 2006/12/11 19:09:51 jchiang Exp $ # from EventClassifier import EventClassifier meritVariables = """ Tkr1FirstLayer CTBCORE CTBGAM CTBBestEnergyProb """.split()
ise-uiuc/Magicoder-OSS-Instruct-75K
y_start_stop[0] = 0 if y_start_stop[1] == None: y_start_stop[1] = img.shape[0] # Compute the span of the region to be searched xspan = x_start_stop[1] - x_start_stop[0] yspan = y_start_stop[1] - y_start_stop[0] # Compute the number of pixels per step in x/y nx_pix_per_step = ...
ise-uiuc/Magicoder-OSS-Instruct-75K
for index in 0..<3 { frame.origin.x = scrollViewWidth * CGFloat(index) frame.size = self.scrollView.frame.size self.scrollView.isPagingEnabled = true let subView = UIImageView(frame: frame) subView.contentMode = .scaleAspectFi...
ise-uiuc/Magicoder-OSS-Instruct-75K
} export enum CHUNITHM_LAMPS { FAILED, CLEAR, FULL_COMBO, ALL_JUSTICE,
ise-uiuc/Magicoder-OSS-Instruct-75K
}), label: Stage::ProcBlock(ProcBlockStage { proc_block: "hotg-ai/rune#proc_blocks/ohv_label".parse().unwrap(), inputs: vec!["model".parse().unwrap()], outputs: vec![Type { name: String::from("utf8"), dimensions: Vec::new() }], ...
ise-uiuc/Magicoder-OSS-Instruct-75K
# # TODO: get_current_url can be attached to window.loaded, where current_window = webview.windows[0] # webview.start(open_file_dialog, window, debug=True, http_server=True)
ise-uiuc/Magicoder-OSS-Instruct-75K
yaml.dump(refresh_token_data, write_file) # Sample API call to GET Central APs and print JSON to screen get_ap_url = base_url + "/monitoring/v1/aps" header = {"authorization": f"Bearer {access_token}"} get_ap_call = requests.get(get_ap_url, headers=header) pprint.pprint(get_ap_call.json())
ise-uiuc/Magicoder-OSS-Instruct-75K
docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY docker build -t registry.gitlab.com/allawaabdat/haproxy . docker push registry.gitlab.com/allawaabdat/haproxy
ise-uiuc/Magicoder-OSS-Instruct-75K
if [ ! -e $L4T_DRIVER_PACKAGE ]; then curl -LO $L4T_DRIVER_PACKAGE_URL fi if [ ! -e $MULTIMEDIA_API ]; then curl -LO $MULTIMEDIA_API_URL fi if [ ! -e $SAMPLE_ROOT_FILESYSTEM ]; then
ise-uiuc/Magicoder-OSS-Instruct-75K
private float theTime = 0f; private bool timerOn = false; private bool speedReached = false; public bool enableTimer;
ise-uiuc/Magicoder-OSS-Instruct-75K
<gh_stars>10-100 #!/bin/bash # finding files in the PATH IFS=:
ise-uiuc/Magicoder-OSS-Instruct-75K
lst=sys.argv for i in lst:print(i) print(len(lst)) print(lst[0])
ise-uiuc/Magicoder-OSS-Instruct-75K
defined('BASEPATH') OR exit('No direct script access allowed'); class M_users extends CI_Model{ function show_users(){ $hasil=$this->db->query("SELECT * FROM users"); return $hasil;
ise-uiuc/Magicoder-OSS-Instruct-75K
} PlanetEngine::~PlanetEngine() { sEngine = nullptr; } // TODO: Remove this global PlanetEngine* PlanetEngine::Get() {
ise-uiuc/Magicoder-OSS-Instruct-75K
* Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge, publish, distribute, sublicense, and/or sell co...
ise-uiuc/Magicoder-OSS-Instruct-75K
from pyupdater.core.uploader import BaseUploader from pyupdater.utils.exceptions import UploaderError import os, uuid
ise-uiuc/Magicoder-OSS-Instruct-75K
'B-C': 4, 'C-D': 3 } ) print(grafo_aula) print('Menor caminho por Dijkstra: ', grafo_aula.dijkstra('E', 'D')) print("-------------------------") grafo_aula2 = GrafoComPesos(
ise-uiuc/Magicoder-OSS-Instruct-75K
#[derive(Debug, Fail)] pub enum ParentsError {
ise-uiuc/Magicoder-OSS-Instruct-75K
"( {} + {} )", checker_aux( [ &get_dual(&branching_1[index[0]]), &get_dual(&branching_2[index[1]]), &tails[0],
ise-uiuc/Magicoder-OSS-Instruct-75K
// Quiz //
ise-uiuc/Magicoder-OSS-Instruct-75K
args: [ electronLoader ] }; app = new Application(appOptions); await app.start(); await app.client.waitUntilWindowLoaded();
ise-uiuc/Magicoder-OSS-Instruct-75K
output_type dac_top(input_type in, bool valid);
ise-uiuc/Magicoder-OSS-Instruct-75K
if (index >= 0 && index < points.count){ self.currentValue = points[index] return CGPoint(x: CGFloat(index)*stepWidth, y: CGFloat(points[index])*stepHeight)
ise-uiuc/Magicoder-OSS-Instruct-75K
// import Foundation /// A request containing the ID of the related resource. public struct BuildAppEncryptionDeclarationLinkageRequest: Decodable { /// (Required) The types and IDs of related resources. public let data: BuildAppEncryptionDeclarationLinkageRequest.Data public struct Data: Decoda...
ise-uiuc/Magicoder-OSS-Instruct-75K
import { HubUtility } from "./HubUtility"; import { TestConfig } from "../TestConfig"; import { ActivityLoggingContext } from "@bentley/bentleyjs-core"; describe("OpenIModelDbMemoizer (#integration)", () => { let accessToken: AccessToken; let testProjectId: string; const actx = new ActivityLoggingContext(""); ...
ise-uiuc/Magicoder-OSS-Instruct-75K
from rta.provision.kapacitor import *
ise-uiuc/Magicoder-OSS-Instruct-75K