identifier
stringlengths
42
383
collection
stringclasses
1 value
open_type
stringclasses
1 value
license
stringlengths
0
1.81k
date
float64
1.99k
2.02k
title
stringlengths
0
100
creator
stringlengths
1
39
language
stringclasses
157 values
language_type
stringclasses
2 values
word_count
int64
1
20k
token_count
int64
4
1.32M
text
stringlengths
5
1.53M
__index_level_0__
int64
0
57.5k
https://github.com/cmsxbc/ClickHouse/blob/master/src/Functions/array/arrayNorm.cpp
Github Open Source
Open Source
Apache-2.0
null
ClickHouse
cmsxbc
C++
Code
545
1,835
#include <cmath> #include <Columns/ColumnArray.h> #include <Columns/ColumnsNumber.h> #include <Columns/IColumn.h> #include <DataTypes/DataTypeArray.h> #include <DataTypes/DataTypesNumber.h> #include <DataTypes/IDataType.h> #include <DataTypes/getLeastSupertype.h> #include <Functions/FunctionFactory.h> #include <Functio...
40,181
https://github.com/NinelK/course-content/blob/master/tutorials/W3D1_RealNeurons/solutions/W3D1_Tutorial3_Solution_bcc89e9d.py
Github Open Source
Open Source
CC-BY-4.0
2,021
course-content
NinelK
Python
Code
121
179
""" Discussion: 1. We can push the neuron to spike almost like a Poisson neuron. Of course given that there is a refractoriness it will never spike completely like a Poisson process. Poisson type spike irregularity will be achieved when mean is small (far from the spike threshold) and fluctuations are large. This...
51,319
https://github.com/floiges/nest-starter/blob/master/src/cats/cats.controller.ts
Github Open Source
Open Source
MIT
null
nest-starter
floiges
TypeScript
Code
188
638
import { Controller, Get, Post, HttpCode, Header, Param, Body, Res, HttpStatus, HttpException, UseFilters, UsePipes, UseGuards, UseInterceptors } from '@nestjs/common'; import { CreateCatDto } from './dto/create-cat.dto'; import { CatsService } from './cats.service'; import { Cat } from './interfaces/cat.interface'; im...
50,321
https://github.com/AccelerateX-org/NINE/blob/master/Sources/TimeTable/MyStik.TimeTable.Web/Controllers/MailControllerThesis.cs
Github Open Source
Open Source
MIT
2,021
NINE
AccelerateX-org
C#
Code
573
2,356
using System; using System.Configuration; using System.Linq; using System.Net.Configuration; using ActionMailer.Net.Mvc; using log4net; using MyStik.TimeTable.Web.Models; using System.Net.Mail; using MyStik.TimeTable.Data; namespace MyStik.TimeTable.Web.Controllers { /// <summary> /// Hier werden Mails direk...
21,573
https://github.com/Keneral/aptools1/blob/master/windows/swt/Android.mk
Github Open Source
Open Source
Unlicense
null
aptools1
Keneral
Makefile
Code
11
73
LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL_PREBUILT_JAVA_LIBRARIES := \ swt$(COMMON_JAVA_PACKAGE_SUFFIX) include $(BUILD_HOST_PREBUILT)
11,059
https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/koa-xml-body/koa-xml-body-tests.ts
Github Open Source
Open Source
MIT
2,023
DefinitelyTyped
DefinitelyTyped
TypeScript
Code
30
113
import Koa = require('koa'); import KoaXmlBody = require('koa-xml-body'); const app = new Koa(); app.use(KoaXmlBody({ key: 'body', onerror: (err, ctx) => { ctx.throw(err.message); } })); app.use((ctx) => { console.log(ctx.request.body); }); app.listen(80);
43,765
https://github.com/Dojo414/reverse-each-word-online-web-pt-081219/blob/master/reverse_each_word.rb
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-public-domain
2,019
reverse-each-word-online-web-pt-081219
Dojo414
Ruby
Code
19
75
require 'pry' def reverse_each_word(sentence) new_array = sentence.split(" ") finished_array = [] new_array.collect do |word| finished_array.push(word.reverse) end finished_array.join(" ") end
15,360
https://github.com/indeterminateoutcomesstudios/hankerchief/blob/master/hankerchief/Main.hx
Github Open Source
Open Source
MIT
2,019
hankerchief
indeterminateoutcomesstudios
Haxe
Code
24
77
package hankerchief; import hankerchief.Placeholder; class Main { public static function main() { var unsplash = new Unsplash(sys.environment()['UNSPLASH_KEY']); unsplash.sprite('goat', 0, 0, 100, 100); } }
44,787
https://github.com/bobwise/spark-design-system/blob/master/html/base/inputs/_checkbox.scss
Github Open Source
Open Source
MIT
2,020
spark-design-system
bobwise
SCSS
Code
180
899
//// /// @group input //// // Added for potential future use. // .sprk-b-Checkbox { } // Hide the native control .sprk-b-Checkbox__input { opacity: $sprk-checkbox-input-opacity; } .sprk-b-Checkbox__label { position: relative; } .sprk-b-Checkbox__label::before, .sprk-b-Checkbox__label::after { transition: $spr...
32,165
https://github.com/TeamSPoon/CYC_JRTL_with_CommonLisp_OLD/blob/master/ansi-tests/import.lsp
Github Open Source
Open Source
Apache-2.0
2,020
CYC_JRTL_with_CommonLisp_OLD
TeamSPoon
Common Lisp
Code
837
3,127
;-*- Mode: Lisp -*- ;;;; Author: Paul Dietz ;;;; Created: Thu Feb 19 07:06:48 2004 ;;;; Contains: Tests of IMPORT (in-package :cl-test) (compile-and-load "package-aux.lsp") ;;; Create a package name that does not collide with an existing package ;;; name or nickname (defvar *import-package-test-name* (loop ...
50,348
https://github.com/percussion/percussioncms/blob/master/system/services/src/com/percussion/services/jms/impl/PSQueueErrorHandler.java
Github Open Source
Open Source
LicenseRef-scancode-dco-1.1, Apache-2.0, OFL-1.1, LGPL-2.0-or-later
2,023
percussioncms
percussion
Java
Code
206
624
/* * Copyright 1999-2023 Percussion Software, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicabl...
28,016
https://github.com/jamesljlster/lstm/blob/master/src_cuda/lstm_alloc.cu
Github Open Source
Open Source
MIT
null
lstm
jamesljlster
null
Spoken
444
1,627
#include <string.h> #include <cuda_runtime.h> #include "lstm_private_cuda.h" #include "lstm_builtin_math_cuda.h" #include <debug.h> int lstm_network_alloc_cuda(struct LSTM_CUDA* lstmCuda, const struct LSTM_CONFIG_STRUCT* lstmCfg) { int i; int ret = LSTM_NO_ERROR; int nodeType, netSize, reNetSize, nodeCount; in...
19,977
https://github.com/maheshattarde-xilinx/XRT/blob/master/src/runtime_src/driver/zynq/skd/sk_daemon.cpp
Github Open Source
Open Source
Apache-2.0
2,018
XRT
maheshattarde-xilinx
C++
Code
1,024
2,762
/** * Copyright (C) 2019 Xilinx, Inc * Author(s): Min Ma <min.ma@xilinx.com> * : Larry Liu <yliu@xilinx.com> * * Licensed under the Apache License, Version 2.0 (the "License"). You may * not use this file except in compliance with the License. A copy of the * License is located at * * http://www.a...
11,275
https://github.com/kevinkk525/GUI/blob/master/examples/panel.lua
Github Open Source
Open Source
MIT
2,021
GUI
kevinkk525
Lua
Code
41
123
local GUI = require("GUI") -------------------------------------------------------------------------------- -- Create new workspace local workspace = GUI.workspace() -- Add panel that fits workspace workspace:addChild(GUI.panel(1, 1, workspace.width, workspace.height, 0x262626)) -- Add smaller red panel worksp...
38,950
https://github.com/amirmasoud/passwords/blob/master/backend/app/Models/Key.php
Github Open Source
Open Source
MIT
2,019
passwords
amirmasoud
PHP
Code
119
367
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\Relations\HasMany; use Illuminate\Database\Eloquent\Relations\BelongsToMany; class Key extends Model { /** * The attributes that are mass assignable. ...
14,631
https://github.com/MarsBased/marscss/blob/master/config.rb
Github Open Source
Open Source
MIT
2,018
marscss
MarsBased
Ruby
Code
119
470
require "lib/helpers" helpers Helpers set :markdown, :fenced_code_blocks => true set :relative_links, true activate :pry activate :directory_indexes activate :syntax activate :webpack, development_webpack_cmd: './node_modules/webpack/bin/webpack.js --mode development ' \ '--watch --config config/webpack/develo...
22,498
https://github.com/MatyilaGoodwish/cft-za.org.za/blob/master/public/form/editordata/localization/en/messages_validation.js
Github Open Source
Open Source
Apache-2.0
2,019
cft-za.org.za
MatyilaGoodwish
JavaScript
Code
202
483
/* * Translated default messages for the jQuery validation plugin. * Locale: ES */ jQuery.extend(jQuery.validator.messages, { required: _("This field is required."), remote: _("Please fix this field."), email: _("Please enter a valid email address."), url: _("Please enter a valid URL."), date: _("Please enter a...
2,253
https://github.com/MAbdurahman/reactjs-grocery-list/blob/master/src/components/alert/Alert.jsx
Github Open Source
Open Source
MIT
null
reactjs-grocery-list
MAbdurahman
null
Spoken
45
110
import React, { useEffect } from 'react'; const Alert = ({ type, msg, removeAlert, list }) => { useEffect(() => { const timeout = setTimeout(() => { removeAlert(); }, 3000); return () => clearTimeout(timeout); }, [list, removeAlert]); return <p className={`alert alert-${type}`}>{msg}</p>; }; export defaul...
42,387
https://github.com/stevenmg/zeroclickinfo-spice/blob/master/lib/DDG/Spice/DogoMovies.pm
Github Open Source
Open Source
Apache-2.0
2,021
zeroclickinfo-spice
stevenmg
Perl
Code
73
327
package DDG::Spice::DogoMovies; use DDG::Spice; primary_example_queries "kids movies"; secondary_example_queries "frozen kids movie", "hunger games movies"; description "Search for kids movie reviews and ratings"; name "DOGOmovies"; code_url "https://github.com/dogomedia/zeroclickinfo-spice/blob/master/lib/DDG/Spice/...
23,333
https://github.com/bluesky0960/Jiam_Floaty/blob/master/lora/lora_receiver/lora_receiver.ino
Github Open Source
Open Source
MIT
null
Jiam_Floaty
bluesky0960
null
Spoken
196
945
#include <Arduino.h> #include "font.h" #include <Wire.h> #include "SSD1306.h" #include <SPI.h> #include <LoRa.h> #define OLED_ADDR 0x3C #define OLED_SDA 4 #define OLED_SCL 15 #define OLED_RST 16 SSD1306 display(OLED_ADDR, OLED_SDA, OLED_SCL); #define SX1278_SCK 5 #define SX1278_MISO 19 #define SX1278_MOSI 27 #...
48,909
https://github.com/developer91649/Laravel5-Pivot-Custom-Vendor-Package/blob/master/workbench/pivotal/course/src/models/Course.php
Github Open Source
Open Source
MIT
2,019
Laravel5-Pivot-Custom-Vendor-Package
developer91649
PHP
Code
244
950
<?php namespace Pivotal\Course\Models; use Pivotal\Course\Models\Collections\CourseCollection; use Pivotal\Cycle\Models\Cycle; use Pivotal\Survey\Models\Survey; use Codesleeve\Stapler\ORM\EloquentTrait; use Illuminate\Database\Eloquent\Model as Eloquent; use Pivotal\Course\Models\Relations\CourseSurveysRelation; use P...
55,349
https://github.com/96boards/arm-trusted-firmware/blob/master/tools/cert_create/src/tbb_cert.c
Github Open Source
Open Source
BSD-3-Clause
2,016
arm-trusted-firmware
96boards
C
Code
477
1,204
/* * Copyright (c) 2015, ARM Limited and Contributors. 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 o...
25,349
https://github.com/hackmad/pbr-rust/blob/master/core/src/mipmap/convert_in.rs
Github Open Source
Open Source
MIT
2,021
pbr-rust
hackmad
Rust
Code
398
819
//! Per-texel Conversion use crate::pbrt::*; use crate::spectrum::*; /// Interface to convert texels into type `Tmemory` for MIPMap generation. pub trait ConvertIn<Tmemory> { /// Convert the texel to the type `M` and apply the scale and inverse /// gamma correction to texel values. /// /// * `scale` -...
13,780
https://github.com/hydro-sdk/hydro-sdk/blob/master/lib/swid/ir/swidOriginatedAncestorTypeFormal.freezed.dart
Github Open Source
Open Source
MIT
2,022
hydro-sdk
hydro-sdk
Dart
Code
514
2,685
// GENERATED CODE - DO NOT MODIFY BY HAND // ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overr...
34,705
https://github.com/aspose-slides-cloud/aspose-slides-cloud-python/blob/master/test/test_math.py
Github Open Source
Open Source
MIT, Python-2.0
2,023
aspose-slides-cloud-python
aspose-slides-cloud
Python
Code
445
2,055
from __future__ import absolute_import import os from asposeslidescloud import TextElement, FunctionElement, BlockElement, MathParagraph, Portion, LimitElement, \ FractionElement from asposeslidescloud.rest import ApiException from test.base_test import BaseTest import asposeslidescloud class TestMath(BaseTest):...
31,579
https://github.com/Nattapoomtn/flutter_test/blob/master/experimental/web_dashboard/lib/src/widgets/third_party/adaptive_scaffold.dart
Github Open Source
Open Source
Apache-2.0
2,021
flutter_test
Nattapoomtn
Dart
Code
335
1,126
// Copyright 2020, the Flutter project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. import 'package:flutter/material.dart'; bool _isLargeScreen(BuildContext context) { return MediaQuery....
54,831
https://github.com/emanuelet/Trove/blob/master/app/src/main/java/com/etapps/trovenla/fragments/BaseFragment.java
Github Open Source
Open Source
Apache-2.0
2,018
Trove
emanuelet
Java
Code
367
962
package com.etapps.trovenla.fragments; import android.os.Bundle; import androidx.annotation.IdRes; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.fragment.app.Fragment; import androidx.fragment.app.FragmentManager; import android.view.LayoutInflater; import android.view.View; ...
41,900
https://github.com/niharikatrikha/niharika.github.io/blob/master/air india full website/Air India J query/form.js
Github Open Source
Open Source
MIT
2,019
niharika.github.io
niharikatrikha
JavaScript
Code
24
85
// JavaScript Document $(document).ready(function() { 'use strict'; $( "input" ).checkboxradio(); $( "#datepicker1" ).datepicker({ showButtonPanel: true }); $( "#datepicker2" ).datepicker({ showButtonPanel: true }); } );
49,973
https://github.com/larme/weir/blob/master/src/draw/sandpaint.lisp
Github Open Source
Open Source
BSD-3-Clause
null
weir
larme
Common Lisp
Code
1,884
5,626
(in-package :sandpaint) (deftype small-int (&optional (size 30000)) `(integer 0 ,size)) (deftype pos-int (&optional (bits 31)) `(unsigned-byte ,bits)) (deftype pos-double () `(double-float 0d0 *)) (declaim (inline -vfloor*)) (defun -vfloor* (v) (declare #.*opt-settings* (vec:vec v)) (values (the fixnum (f...
26,134
https://github.com/YLonely/criuimages/blob/master/types/sa.pb.go
Github Open Source
Open Source
Apache-2.0
null
criuimages
YLonely
Go
Code
809
3,076
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.13.0 // source: sa.proto package types import ( proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimp...
37,758
https://github.com/arif-hanif/boldr/blob/master/packages/boldr-api/src/services/redis/redis.js
Github Open Source
Open Source
MIT
2,017
boldr
arif-hanif
JavaScript
Code
99
305
/* @flow */ require('dotenv').config(); import url from 'url'; import Redis from 'ioredis'; import bluebird from 'bluebird'; import logger from '../logger'; // $FlowIssue const redisCon = url.parse(process.env.REDIS_URI); // $FlowIssue const hostAddr = redisCon.host.split(':'); const redisClient = new Redis({ port:...
18,796
https://github.com/Panthro/npm-adaptiveme-nibble/blob/master/bin/install.js
Github Open Source
Open Source
Apache-2.0
2,015
npm-adaptiveme-nibble
Panthro
JavaScript
Code
245
902
'use strict'; var colors = require('colors/safe'), trycatch = require('trycatch'), exit = require('exit'), lib = require('../lib/lib.js'), os = require('os'), async = require('async'), wget = require('wget-improved'), Progress = require('progress'), fs = require('fs'), path = require('path'), tarba...
19,746
https://github.com/gaozhongkui/callshow/blob/master/app/src/main/java/com/epiphany/callshow/common/base/BaseDialogFragment.kt
Github Open Source
Open Source
MIT
null
callshow
gaozhongkui
Kotlin
Code
128
442
package com.epiphany.callshow.common.base import android.app.Dialog import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.databinding.DataBindingUtil import androidx.databinding.ViewDataBinding import androidx.fragment.app.DialogFragment impo...
39,430
https://github.com/martin-lizner/prism/blob/master/infra/util/src/main/java/com/evolveum/midpoint/util/ClassPathUtil.java
Github Open Source
Open Source
Apache-2.0
null
prism
martin-lizner
Java
Code
765
2,281
/* * Copyright (c) 2010-2017 Evolveum and contributors * * This work is dual-licensed under the Apache License 2.0 * and European Union Public License. See LICENSE file for details. */ package com.evolveum.midpoint.util; import com.evolveum.midpoint.util.logging.Trace; import com.evolveum.midpoint.util.logging.Tr...
13,332
https://github.com/hjc851/Dataset2-HowToDetectAdvancedSourceCodePlagiarism/blob/master/Variant Programs/2-5/35/writer/Operation.java
Github Open Source
Open Source
MIT
null
Dataset2-HowToDetectAdvancedSourceCodePlagiarism
hjc851
Java
Code
221
747
package writer; import static java.lang.Integer.parseInt; public class Operation implements Comparable<Operation> { static final double rolled = 0.6666832270333387; private java.lang.String identification; private int adoptAmount; private int implementationSmall; private int startleWeek; private int dieYe...
31,276
https://github.com/agirorn/factful/blob/master/example-apps/users-streams-only/src/UserForm.jsx
Github Open Source
Open Source
MIT
null
factful
agirorn
null
Spoken
157
415
import React, { useState } from 'react'; import { postCommand } from './fetch'; import { create } from './commands'; const Text = (props) => (<input type="text" {...props} />); const Checkbox = (props) => (<input type="checkbox" {...props} />); const LabeldCheckbox = ({ id, children, ...props }) => ( <label htmlFor=...
34,838
https://github.com/DalavanCloud/Whitebox-crypto-AES-java/blob/master/src/main/java/cz/muni/fi/xklinec/whiteboxAES/generator/AEShelper.java
Github Open Source
Open Source
BSD-3-Clause, LicenseRef-scancode-unknown-license-reference
2,015
Whitebox-crypto-AES-java
DalavanCloud
Java
Code
2,517
8,399
/* * Copyright (c) 2014, Dusan (Ph4r05) Klinec, Petr Svenda * 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...
24,211
https://github.com/mononobi/pyrin/blob/master/src/pyrin/logging/masking/structs.py
Github Open Source
Open Source
BSD-3-Clause
2,023
pyrin
mononobi
Python
Code
400
1,057
# -*- coding: utf-8 -*- """ logging masking structs module. """ from werkzeug.datastructures import Headers import pyrin.logging.masking.services as masking_services import pyrin.utils.headers as header_utils from pyrin.core.globals import LIST_TYPES from pyrin.core.structs import CoreImmutableDict class MaskedDic...
31,783
https://github.com/mhdiqbal19/landingpage-bariqi/blob/master/application/views/dashboard.php
Github Open Source
Open Source
MIT
null
landingpage-bariqi
mhdiqbal19
PHP
Code
1,178
5,193
<!doctype html> <html lang="zxx"> <head> <!-- Required meta tags --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <!-- Bootstrap CSS --> <link rel="stylesheet" href="<?php echo base_url() ?>assets/home/css/boo...
49,046
https://github.com/maartenhoog/asreview/blob/master/asreview/webapp/src/PreReviewComponents/ProjectInit.js
Github Open Source
Open Source
Apache-2.0
null
asreview
maartenhoog
JavaScript
Code
314
1,138
import React from 'react' import { makeStyles } from '@material-ui/core/styles' import { Box, Button, Typography, Toolbar, TextField, Snackbar, IconButton, } from '@material-ui/core' import CloseIcon from '@material-ui/icons/Close'; import axios from 'axios' import store from '../redux/store' import {...
4,389
https://github.com/MahatmaFatalError/effective-java/blob/master/src/main/java/org/codefx/demo/effective_java/_03_04_05_singleton_utilities_di/EventBusUtility.java
Github Open Source
Open Source
MIT
2,019
effective-java
MahatmaFatalError
Java
Code
133
291
package org.codefx.demo.effective_java._03_04_05_singleton_utilities_di; import java.util.function.Consumer; public class EventBusUtility { // NOTE utility: // We're preventing instantiation by regular means with a private // constructor. To prevent reflection or implementation errors within // this source...
24,691
https://github.com/rackeric/rack/blob/master/commands/orchestrationcommands/stackresourcecommands/list.go
Github Open Source
Open Source
Apache-2.0
2,021
rack
rackeric
Go
Code
377
1,329
package stackresourcecommands import ( "github.com/rackspace/rack/commandoptions" "github.com/rackspace/rack/commands/orchestrationcommands/stackcommands" "github.com/rackspace/rack/handler" "github.com/rackspace/rack/internal/github.com/codegangsta/cli" "github.com/rackspace/rack/internal/github.com/fatih/struct...
3,095
https://github.com/brunolauze/openpegasus-providers-old/blob/master/src/Providers/UNIXProviders/IPsecPolicyForEndpoint/UNIX_IPsecPolicyForEndpointDeps.h
Github Open Source
Open Source
MIT
2,020
openpegasus-providers-old
brunolauze
C
Code
50
373
#if defined(PEGASUS_OS_HPUX) # include "UNIX_IPsecPolicyForEndpointDeps_HPUX.h" #elif defined(PEGASUS_OS_LINUX) # include "UNIX_IPsecPolicyForEndpointDeps_LINUX.h" #elif defined(PEGASUS_OS_DARWIN) # include "UNIX_IPsecPolicyForEndpointDeps_DARWIN.h" #elif defined(PEGASUS_OS_AIX) # include "UNIX_IPsecPolicyForEndpointD...
43,373
https://github.com/aimuz/dart-sass/blob/master/lib/src/visitor/evaluate.dart
Github Open Source
Open Source
MIT
null
dart-sass
aimuz
Dart
Code
12,114
33,848
// Copyright 2016 Google Inc. Use of this source code is governed by an // MIT-style license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. // DO NOT EDIT. This file was generated from async_evaluate.dart. // See tool/grind/synchronize.dart for details. // // Checksum: b36c6c618b22...
5,016
https://github.com/cdli-gh/mtaac_cdli_ur3_corpus/blob/master/ur3_corpus_data/conll/P138401.conll
Github Open Source
Open Source
CC0-1.0, LicenseRef-scancode-public-domain
2,022
mtaac_cdli_ur3_corpus
cdli-gh
null
Spoken
63
328
#new_text=P138401 # ID FORM SEGM XPOSTAG HEAD DEPREL MISC o.1'.1 ...-e2-a o.2'.1 x o.2'.2 tug2 o.2'.3 guz-za o.2'.4 4(disz)-kam o.2'.5 us2 o.3'.1 lu2-bala-sa6-ga o.4'.1 n o.4'.2 tug2 o.4'.3 nig2-lam2 o.4'.4 4(disz)-kam o.4'.5 us2 r.1.1 x r.1.2 1(disz) r.1.3 tug2 r.1.4 guz-za r.1.5 4(disz)-kam r.1.6 us2 r.2.1 tug2 r.2.2...
48,862
https://github.com/koshyari/Competitive/blob/master/codeforces/493B.cpp
Github Open Source
Open Source
MIT
null
Competitive
koshyari
C++
Code
165
646
#include <iostream> #include <fstream> #include <algorithm> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <deque> #include <functional> #include <list> #include <map> #include <queue> #include <set> #include <stack> #include...
22,277
https://github.com/meodaiduoi/onos/blob/master/core/api/src/test/java/org/onosproject/net/behaviour/BandwidthProfileActionTest.java
Github Open Source
Open Source
Apache-2.0
2,022
onos
meodaiduoi
Java
Code
174
547
/* * Copyright 2016-present Open Networking Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
3,520
https://github.com/bakerbrandond/geopm/blob/master/copying_headers/test-dist
Github Open Source
Open Source
LicenseRef-scancode-warranty-disclaimer, MIT
2,020
geopm
bakerbrandond
Shell
Code
320
604
#!/bin/bash # Copyright (c) 2015, 2016, 2017, 2018, 2019, 2020, Intel Corporation # # 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 # ...
48,012
https://github.com/violigon/FIAP-Sandbox/blob/master/Assets/TerrenoTeste/TerrainToolkit/__MACOSX/Documentation.meta
Github Open Source
Open Source
Unlicense
2,017
FIAP-Sandbox
violigon
Unity3D Asset
Code
14
66
fileFormatVersion: 2 guid: 62ae2ec1840526e449354e535082de36 folderAsset: yes timeCreated: 1497488824 licenseType: Free DefaultImporter: userData: assetBundleName: assetBundleVariant:
51,127
https://github.com/nirzaf/ProfessionalCSharp2021/blob/master/2_Libs/EFCore/Tracking/MenusContext.cs
Github Open Source
Open Source
LicenseRef-scancode-proprietary-license, MIT
2,021
ProfessionalCSharp2021
nirzaf
C#
Code
179
611
using Microsoft.EntityFrameworkCore; using System; class MenusContext : DbContext { public MenusContext(DbContextOptions<MenusContext> options) : base(options) {} public DbSet<MenuCard> MenuCards => Set<MenuCard>(); public DbSet<MenuItem> MenusItems => Set<MenuItem>(); protected override voi...
39,511
https://github.com/cpldhycxc/9321Group-Project/blob/master/frontend/src/js/index.js
Github Open Source
Open Source
MIT
null
9321Group-Project
cpldhycxc
JavaScript
Code
61
179
import React from "react"; import ReactDOM from "react-dom"; import { Provider } from "react-redux"; import { HashRouter as Router, Route, Switch } from 'react-router-dom'; import Main from "./containers/Main"; import store from "./store"; const app = document.getElementById('app'); class App extends React.Component...
32,486
https://github.com/balasan/indra/blob/master/modules/client/src/testing/mocks.ts
Github Open Source
Open Source
MIT
null
indra
balasan
TypeScript
Code
636
1,996
import { IMessagingService } from "@connext/messaging"; import { ILoggerService } from "@connext/types"; import { providers } from "ethers"; import { BigNumber, Transaction } from "ethers/utils"; import { Logger } from "../lib"; import { AppRegistry, ChannelAppSequences, CreateChannelResponse, GetChannelRespon...
44,465
https://github.com/cdli-gh/mtaac_cdli_ur3_corpus/blob/master/ur3_corpus_data/conll/P456206.conll
Github Open Source
Open Source
CC0-1.0, LicenseRef-scancode-public-domain
2,022
mtaac_cdli_ur3_corpus
cdli-gh
null
Spoken
19
95
#new_text=P456206 # ID FORM SEGM XPOSTAG HEAD DEPREL MISC a.1.1 lugal-he2-gal2 a.2.1 mu6-sub3 a.2.2 {d}szara2 a.3.1 dumu a.3.2 ur-nigar{gar}
1,502
https://github.com/RSDosev/Rockspin-Android-Code-Test/blob/master/app/src/main/java/com/rockspin/androiddevtest/MyApplication.kt
Github Open Source
Open Source
Apache-2.0
null
Rockspin-Android-Code-Test
RSDosev
Kotlin
Code
30
125
package com.rockspin.androiddevtest import com.rockspin.androiddevtest.di.app.DaggerAppComponent import dagger.android.AndroidInjector import dagger.android.DaggerApplication class MyApplication : DaggerApplication() { private val appComponent: AndroidInjector<MyApplication> by lazy { DaggerAppComponent....
25,031
https://github.com/SvetoslavGochev/Rest-Api/blob/master/Locations/Migrations/20210726121334_InitialCreate.cs
Github Open Source
Open Source
MIT
2,021
Rest-Api
SvetoslavGochev
C#
Code
199
741
// <copyright file="20210726121334_InitialCreate.cs" company="Locations"> // Copyright (c) Locations. All rights reserved. // </copyright> namespace Locations.Migrations { using System; using Microsoft.EntityFrameworkCore.Migrations; public partial class InitialCreate : Migration { protected...
24,585
https://github.com/aws-samples/aws-builders-fair-projects/blob/master/reinvent-2019/rhythm-cloud/lambda/Greengrass_startSong/s3transfer/compat.py
Github Open Source
Open Source
Apache-2.0
2,022
aws-builders-fair-projects
aws-samples
Python
Code
610
1,556
# Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompa...
11,402
https://github.com/SteffenMeinecke/pandapipes/blob/master/pandapipes/test/pipeflow_internals/test_update_matrix.py
Github Open Source
Open Source
BSD-3-Clause
null
pandapipes
SteffenMeinecke
Python
Code
112
369
# Copyright (c) 2020-2022 by Fraunhofer Institute for Energy Economics # and Energy System Technology (IEE), Kassel, and University of Kassel. All rights reserved. # Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. import numpy as np import pandapipes.networks.simple_ga...
39,379
https://github.com/Tomella/photos/blob/master/lib/dev-security.js
Github Open Source
Open Source
Apache-2.0
null
photos
Tomella
JavaScript
Code
22
64
export default class DevSecurity { constructor(config) { this.config = config; } isAdmin() { return true; } user() { return this.config.isLocal.user; } }
20,485
https://github.com/psavery/VTK/blob/master/Filters/ReebGraph/vtkReebGraphSimplificationFilter.h
Github Open Source
Open Source
BSD-3-Clause
2,021
VTK
psavery
C
Code
196
670
/*========================================================================= Program: Visualization Toolkit Module: vtkReebGraphSimplificationFilter.h Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. ...
23,955
https://github.com/covid19br/now_fcts/blob/master/man/fixUTIDates.Rd
Github Open Source
Open Source
CC0-1.0, LicenseRef-scancode-unknown-license-reference
2,021
now_fcts
covid19br
R
Code
29
116
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fix.dates.R \name{fixUTIDates} \alias{fixUTIDates} \title{Title} \usage{ fixUTIDates(x, UTI_stay_wait_fit) } \arguments{ \item{x}{vector} \item{UTI_stay_wait_fit}{fit} } \description{ Title }
39,986
https://github.com/cventus/otivm/blob/master/src/glapi/glx/getproc.c
Github Open Source
Open Source
0BSD
null
otivm
cventus
C
Code
18
77
#include <GL/glx.h> #include "../fwd.h" void (*gl_get_proc(struct gl_api *api, char const *name))(void) { (void)api; return glXGetProcAddressARB((GLubyte const *)name); }
48,596
https://github.com/beihuxiansheng/elasticsearch-token/blob/master/modules/parent-join/src/test/java/org/elasticsearch/join/query/InnerHitsIT.java
Github Open Source
Open Source
Apache-2.0
2,017
elasticsearch-token
beihuxiansheng
Java
Code
6,376
30,721
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1 begin_comment comment|/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you u...
39,165
https://github.com/Vinodh-thimmisetty/booking/blob/master/booking.api/src/main/java/com/vinodh/booking/api/repository/AdminMongoRepository.java
Github Open Source
Open Source
MIT
2,021
booking
Vinodh-thimmisetty
Java
Code
20
99
package com.vinodh.booking.api.repository; import com.vinodh.booking.api.collections.Admin; import org.springframework.data.mongodb.repository.MongoRepository; public interface AdminMongoRepository extends MongoRepository<Admin, String> { Admin findAdminByAdminName(String adminName); Admin findAdminByAdminEma...
53,501
https://github.com/gmortuza/dnam/blob/master/test/simulation.py
Github Open Source
Open Source
MIT
2,021
dnam
gmortuza
Python
Code
1,037
3,865
import sys import numpy as np import time import os import filecmp import datetime import random import argparse sys.path.append("../dnam/") from processfile import ProcessFile from log import get_logger parser = argparse.ArgumentParser(description="Simulation file for dNAM") parser.add_argument("-s", "--start", help...
44,508
https://github.com/Ritesh45C/Studyfine/blob/master/src/views/StudentView/Report/Report.jsx
Github Open Source
Open Source
MIT
2,020
Studyfine
Ritesh45C
JavaScript
Code
47
128
import React from "react"; import { Row, Col } from "reactstrap"; import "./Report.css"; import ReportCard from "./ReportCard"; class Report extends React.Component { render() { return ( <div className="content"> <div className="content"> <Row className="centerreport"> <Col cl...
11,717
https://github.com/Ecalderon10/teacher-force/blob/master/views/login.handlebars
Github Open Source
Open Source
MIT
2,021
teacher-force
Ecalderon10
null
Spoken
76
353
<div id="login-container"> <div id="left-display"> <h1 class="app-name">Teacher Force</h1> <img src="/css/images/kids.jpg" /> </div> <section id="login"> <div id="right-display"> <h2 class="title">Login To Get Started!</h2> <div class="container row justify-content-center align-items-center ...
7,544
https://github.com/windystrife/UnrealEngine_NVIDIAGameWorks/blob/master/Engine/Source/ThirdParty/PhysX/APEX_1.4/shared/external/include/MultiClientRenderResourceManager.h
Github Open Source
Open Source
MIT, LicenseRef-scancode-proprietary-license
2,022
UnrealEngine_NVIDIAGameWorks
windystrife
C++
Code
221
1,019
/* * Copyright (c) 2008-2017, NVIDIA CORPORATION. All rights reserved. * * NVIDIA CORPORATION and its licensors retain all intellectual property * and proprietary rights in and to this software, related documentation * and any modifications thereto. Any use, reproduction, disclosure or * distribution of this so...
11,117
https://github.com/ZehMatt/gm_neat/blob/master/gm_neat/include/Neat/Utils.h
Github Open Source
Open Source
MIT
2,018
gm_neat
ZehMatt
C++
Code
778
1,910
#ifndef _UTILS_H #define _UTILS_H /////////////////////////////////////////////////////////////////////////////////////////// // MultiNEAT - Python/C++ NeuroEvolution of Augmenting Topologies Library // // Copyright (C) 2012 Peter Chervenski // // This program is free software: you can redistribute it and/or ...
15,552
https://github.com/tectronics/dryad/blob/master/dryad/dspace/modules/solr/pom.xml
Github Open Source
Open Source
BSD-2-Clause
2,012
dryad
tectronics
null
Spoken
132
1,132
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>org.dspace.modules</groupId> <artifactId>solr</artifactId> <pa...
18,450
https://github.com/IbrahemSarayrah/401-data-structures-and-algorithms/blob/master/code-challenges/array-insert-shift/array-insert-shift.test.js
Github Open Source
Open Source
MIT
null
401-data-structures-and-algorithms
IbrahemSarayrah
JavaScript
Code
55
199
'use strict'; let insertShiftArray = require('./array-insert-shift') describe('test insertShiftArray', () => { it('check if the array take a value to be added in the middle index', () => { let input = [2, 4, 6, -8] let input2 = [42,8,15,23,42] let input3 = ['a','b','d','e'] expec...
43,420
https://github.com/YunLemon/ProvToolbox/blob/master/modules-js/prov-js-core/target.bak/ts/org/openprovenance/prov/vanilla/LangString.ts
Github Open Source
Open Source
MIT
2,022
ProvToolbox
YunLemon
TypeScript
Code
492
1,881
/* Generated from Java with JSweet 3.0.0 - http://www.jsweet.org */ namespace org.openprovenance.prov.vanilla { export class LangString implements org.openprovenance.prov.model.LangString, org.openprovenance.apache.commons.lang.builder.Equals, org.openprovenance.apache.commons.lang.builder.HashCode, org.openprovena...
49,925
https://github.com/yogeshprasad/wavefront-sdk/blob/master/spec/spec_helper.rb
Github Open Source
Open Source
BSD-2-Clause
2,019
wavefront-sdk
yogeshprasad
Ruby
Code
488
1,753
# # Stuff needed by multiple tests # require 'simplecov' SimpleCov.start do add_filter '/spec/' end require 'minitest/autorun' require 'webmock/minitest' # rubocop:disable Style/MutableConstant CREDS = { endpoint: 'test.example.com', token: '0123456789-ABCDEF' } # rubocop:enable Style/MutableConstant ...
36,616
https://github.com/ufal/npfl087/blob/master/1920-summer/projects/synthetic-asr-errors-for-more-robust-mt/train_dictionary/dictionary_from_scrape.py
Github Open Source
Open Source
BSD-3-Clause
2,021
npfl087
ufal
Python
Code
531
1,551
from train_dictionary.train_util import pickle_data def write_dict_to_file(filename, dict_): """ This function is only for 'visual' debug. It creates text file representing the dictionary. """ print("writing dict to file") with open(filename, "w") as file: for key, val in dict_.items(): #...
49,028
https://github.com/aliyun/aliyun-openapi-cpp-sdk/blob/master/ecs/src/model/RenewDedicatedHostsRequest.cc
Github Open Source
Open Source
Apache-2.0
2,023
aliyun-openapi-cpp-sdk
aliyun
C++
Code
273
1,023
/* * Copyright 2009-2017 Alibaba Cloud All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
27,233
https://github.com/turbo/js2lua/blob/master/test/es5/ch15/15.2/15.2.3/15.2.3.12/15.2.3.12-3-28.js
Github Open Source
Open Source
MIT
2,022
js2lua
turbo
JavaScript
Code
122
332
/// Copyright (c) 2012 Ecma International. All rights reserved. /// Ecma International makes this code available under the terms and conditions set /// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the /// "Use Terms"). Any redistribution of this code must retain the above /// copyright an...
34,167
https://github.com/paulvanmol/pgviya/blob/master/demo/oracle_example.sas
Github Open Source
Open Source
Apache-2.0
null
pgviya
paulvanmol
null
Spoken
82
263
libname orabase oracle path=orcl user=student pw=Metadata0 schema=STUDENT; /*****************************************************************************/ /* Load SAS data set from a Base engine library (library.tableName) into */ /* the specified caslib ("myCaslib") and save as "targetTableName". */ /*...
26,375
https://github.com/NightOfTwelve/iOS-Cracked-Apps/blob/master/DumpedClasses/Kugou/FXSRich.h
Github Open Source
Open Source
MIT
2,018
iOS-Cracked-Apps
NightOfTwelve
Objective-C
Code
43
173
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. // #import "FXBaseJSONModel.h" @class NSArray<FXSRich_RichVO><Optional>; @interface FXSRich : FXBaseJSONModel { NSArray<FXSRich_RichVO><Optional> *_richVO; } @property(retain, n...
9,533
https://github.com/jawhnycooke/nxos-netbox-sync/blob/master/utils/message_templates.py
Github Open Source
Open Source
MIT
2,020
nxos-netbox-sync
jawhnycooke
Python
Code
39
207
from jinja2 import Template with open("templates/notification_vlan_exist_test.j2") as f: message_vlan_exist_template = Template(f.read()) with open("templates/notification_interface_enabled_test.j2") as f: message_interface_enabled_template = Template(f.read()) with open("templates/notification_interface_d...
4,550
https://github.com/dint-dev/kind/blob/master/lib/src/kind/currency_amount_kind.dart
Github Open Source
Open Source
Apache-2.0
2,021
kind
dint-dev
Dart
Code
283
791
// Copyright 2021 Gohilla Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wri...
39,271
https://github.com/jairosolarte/api_user/blob/master/laravel/tests/UserControllerTest.php
Github Open Source
Open Source
MIT
2,017
api_user
jairosolarte
PHP
Code
127
658
<?php use Illuminate\Foundation\Testing\WithoutMiddleware; use Illuminate\Foundation\Testing\DatabaseMigrations; use Illuminate\Foundation\Testing\DatabaseTransactions; use App\User; class UserControllerTest extends TestCase { use DatabaseTransactions; /*Test list user*/ public function testList() ...
39,539
https://github.com/zktzktzkt/SwipeMenuContainer/blob/master/app/src/main/java/qdx/swipemenucontainer/SwipeMenuLayout.java
Github Open Source
Open Source
MIT
2,017
SwipeMenuContainer
zktzktzkt
Java
Code
1,136
4,638
package qdx.swipemenucontainer; import android.animation.Animator; import android.animation.AnimatorListenerAdapter; import android.animation.ValueAnimator; import android.content.Context; import android.content.res.TypedArray; import android.graphics.PointF; import android.util.AttributeSet; import android.view.Motio...
22,975
https://github.com/gbrls/CompetitiveCode/blob/master/LeetCode_problems/Rotate Image/solution.js
Github Open Source
Open Source
MIT
2,022
CompetitiveCode
gbrls
JavaScript
Code
306
535
// This function will take a matrix as a parameter : example : [[1,2,3],[4,5,6],[7,8,9]] const rotate = (matrix) => { // we define row variable which will iterate through the rows of the matrix; // we define col variable which will iterate through the columns of the matrix; // we define l variable which is...
48,967
https://github.com/dubbha/croton/blob/master/packages/server/src/models/mobile-verification.entity.ts
Github Open Source
Open Source
MIT
2,020
croton
dubbha
TypeScript
Code
27
89
import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm'; @Entity() export default class MobileVerification { @PrimaryGeneratedColumn() id: number; @Column() userId: number; @Column() mobileVerificationToken: string; @Column('bigint') expiresIn: number; }
18,037
https://github.com/sanjul/AsciiArtist/blob/master/PictToASCII.cls
Github Open Source
Open Source
MIT
2,014
AsciiArtist
sanjul
null
Spoken
676
1,356
VERSION 1.0 CLASS BEGIN MultiUse = -1 'True Persistable = 0 'NotPersistable DataBindingBehavior = 0 'vbNone DataSourceBehavior = 0 'vbNone MTSTransactionMode = 0 'NotAnMTSObject END Attribute VB_Name = "PictToASCII" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = True Attribute VB_Predecl...
54,318
https://github.com/prisnormando/ember-osf-web/blob/master/app/utils/default-to.ts
Github Open Source
Open Source
Apache-2.0
2,019
ember-osf-web
prisnormando
TypeScript
Code
22
49
export default function defaultTo<T>(value: T, defaultValue: Exclude<T, undefined>) { return typeof value === 'undefined' ? defaultValue : value as Exclude<T, undefined>; }
50,226
https://github.com/suver/yii2-example/blob/master/vendor/voskobovich/yii2-many-many-behavior/tests/unit/BehaviorTest.php
Github Open Source
Open Source
BSD-3-Clause
2,020
yii2-example
suver
PHP
Code
828
3,047
<?php use data\Book; use data\BookJson; use yii\Helpers\ArrayHelper; use yii\Helpers\Json; class BehaviorTest extends \yii\codeception\TestCase { public $appConfig = '@tests/unit/_config.php'; private function saveAndReload($class, $id, $post) { $class = 'data\\'.$class; $model = $class...
51,978
https://github.com/CS2103-AY1819S1-W14-4/main/blob/master/src/test/java/seedu/inventory/logic/commands/purchaseorder/DeletePurchaseOrderCommandTest.java
Github Open Source
Open Source
MIT
2,019
main
CS2103-AY1819S1-W14-4
Java
Code
325
1,402
package seedu.inventory.logic.commands.purchaseorder; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import static seedu.inventory.logic.commands.CommandTestUtil.assertCommandFailure; import static seedu.inventory.logic.commands.CommandTestUtil.assertCommandSuccess; import stati...
34,142
https://github.com/axdii/TrademarkSearchAssistantServer/blob/master/src/main/java/top/atzlt/service/Impl/TrademarkServiceImpl.java
Github Open Source
Open Source
Apache-2.0
2,019
TrademarkSearchAssistantServer
axdii
Java
Code
514
2,540
package top.atzlt.service.Impl; import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Propagation; import org.springframework.transac...
31,222
https://github.com/tddhit/vasto/blob/master/util/network_test.go
Github Open Source
Open Source
Apache-2.0
2,018
vasto
tddhit
Go
Code
12
42
package util import ( "testing" ) func TestGetLocalIP(t *testing.T) { println(GetLocalIP()) }
8,859
https://github.com/bgoonz/UsefulResourceRepo2.0/blob/master/_ORGS/NETLIFY/netlify-cms/packages/netlify-cms-core/src/components/Collection/NestedCollection.js
Github Open Source
Open Source
MIT
2,022
UsefulResourceRepo2.0
bgoonz
JavaScript
Code
817
2,497
import React from 'react'; import { List } from 'immutable'; import { css } from '@emotion/core'; import styled from '@emotion/styled'; import { connect } from 'react-redux'; import { NavLink } from 'react-router-dom'; import { dirname, sep } from 'path'; import { stringTemplate } from 'netlify-cms-lib-widgets'; import...
50,975
https://github.com/TooTallNate/umbrella/blob/master/packages/transducers/src/xform/throttle.ts
Github Open Source
Open Source
Apache-2.0
2,018
umbrella
TooTallNate
TypeScript
Code
176
378
import { StatefulPredicate } from "@thi.ng/api/api"; import { Reducer, Transducer } from "../api"; import { compR } from "../func/compr"; import { iterator1 } from "../iterator"; /** * Similar to `filter`, but works with possibly stateful predicates * to achieve rate limiting capabilities. Emits only values when *...
8,990
https://github.com/baislsl/java-class-decompiler/blob/master/src/main/java/com/baislsl/decompiler/instruction/ISUB.java
Github Open Source
Open Source
MIT
null
java-class-decompiler
baislsl
Java
Code
9
29
package com.baislsl.decompiler.instruction; public class ISUB extends SubstractInstruction { }
27,385
https://github.com/brucetoo/ExpandRecyclerView/blob/master/app/src/main/java/com/brucetoo/expandrecyclerview/lockscreen/LockScreenActivity.java
Github Open Source
Open Source
Apache-2.0
2,019
ExpandRecyclerView
brucetoo
Java
Code
298
1,422
package com.brucetoo.expandrecyclerview.lockscreen; import android.content.Intent; import android.os.Build; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.FragmentActivity; import android.util.Log; import android.view.KeyEvent; import android.view.View; import andro...
28,012
https://github.com/Kendralabs/spark-tk-jupyter/blob/master/jupyter-default-notebooks/notebooks/examples/tklibs/sparktk/logistic-regression-example.ipynb
Github Open Source
Open Source
Apache-2.0
2,017
spark-tk-jupyter
Kendralabs
Jupyter Notebook
Code
876
3,878
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Logistic Regression Example\n", "\n", "Logistic Regression is a widely used supervised binary and multi-class classification algorithm. The Logistic Regression model is initialized, trained on columns of a frame, predicts the...
50,419
https://github.com/p829911/study/blob/master/shell/sys_info_page.sh
Github Open Source
Open Source
BSD-2-Clause
2,019
study
p829911
Shell
Code
73
320
#! /bin/bash # Program to output a system information page TITLE="System Information Report For $HOSTNAME" CURRENT_TIME=$(date +"%x %r %Z") TIME_STAMP="Generated $CURRENT_TIME, by $USER" report_uptime() { cat <<-EOF <H2>System Uptime</H2> <PRE>$(uptime)</PRE> EOF return } report_disk...
45,186
https://github.com/MagicTelecom/mt_demo_app/blob/master/template/images/icons/flags/120x70/process_pngs.pl
Github Open Source
Open Source
MIT
2,016
mt_demo_app
MagicTelecom
Perl
Code
62
205
#!/usr/bin/perl -w use strict; use warnings; $| = 1; my @pngs = @ARGV ? @ARGV : glob("*.png"); foreach my $png (@pngs) { (my $name = $png) =~ s/\.png$//; next if $name =~ /-\d+\.\d+$/; print "$png... "; system('pngnq', '-f', '-s 1', $png); system('pngcrush', '-reduce', '-brute', '-l 9'...
53,408
https://github.com/dvamedveda/job4j_dreamjob/blob/master/src/main/java/ru/job4j/dream/model/Post.java
Github Open Source
Open Source
Apache-2.0
null
job4j_dreamjob
dvamedveda
Java
Code
170
427
package ru.job4j.dream.model; import java.util.Objects; /** * Модель данных для вакансии. */ public class Post { private int id; private String name; private String desc; private long created; public Post(int id, String name, String desc, long created) { this.id = id; this.name...
20,766
https://github.com/RobertApikyan/GpsGenerator/blob/master/src/src/modulators/Modulator.java
Github Open Source
Open Source
Apache-2.0
2,020
GpsGenerator
RobertApikyan
Java
Code
18
42
package src.modulators; /** * Created by Robert on 01.10.2017. */ public interface Modulator<R> { public R modulate(); }
20,323
https://github.com/jamesporter/solandra/blob/master/src/lib/colors.ts
Github Open Source
Open Source
MIT
2,022
solandra
jamesporter
TypeScript
Code
409
899
type Color = string /** * @param h hue 0 to 360 * @param s saturation 0 to 100 * @param l lightness 0 to 100 * @param a alpha 0 to 1 */ export function hsla(h: number, s: number, l: number, a: number = 1): Color { return `hsla(${h}, ${s}%, ${l}%, ${a})` } export type ColorSpec = { h: number; s: number; l: numb...
29,248
https://github.com/netman2k/efs-backup/blob/master/source/lib/__init__.py
Github Open Source
Open Source
Apache-2.0
2,021
efs-backup
netman2k
Python
Code
17
60
__author__ = 'Lalit G.' __all__ = ["events", "dynamodb", "ssm", "notify", "logger", "efs", "asg", "cloudwatch"] __version__ = ["1.0.0"]
113