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/WalkerKnapp/sdp-java/blob/master/src/main/java/io/wkna/sdp/messages/CustomDataMessage.java
Github Open Source
Open Source
Apache-2.0
null
sdp-java
WalkerKnapp
Java
Code
177
522
package io.wkna.sdp.messages; import java.io.IOException; import java.nio.ByteBuffer; import java.nio.channels.SeekableByteChannel; import static io.wkna.sdp.DemoUtils.*; public class CustomDataMessage extends DemoMessage { //TODO: Research the purpose of this private int unknown; private int size; p...
23,907
https://github.com/yigityilmaz-m/ReactNative6-Patika-MarvelApp/blob/master/src/pages/FavoriteComics/FavoriteComics.js
Github Open Source
Open Source
MIT
2,021
ReactNative6-Patika-MarvelApp
yigityilmaz-m
JavaScript
Code
126
449
import React, { useContext } from 'react'; import { View, Text, FlatList, Button } from 'react-native'; import { MarvelContext } from '../../context/MarvelProvider'; import LottieView from 'lottie-react-native'; import styles from './FavoriteComics.styles'; import routes from '../../Navigation/routes'; import { useNavi...
46,893
https://github.com/neighborhood999/recompose/blob/master/src/packages/recompose/__tests__/pure-test.js
Github Open Source
Open Source
MIT
2,018
recompose
neighborhood999
JavaScript
Code
87
354
import React from 'react' import { mount } from 'enzyme' import sinon from 'sinon' import { pure, compose, withState } from '../' import { countRenders } from './utils' test('pure implements shouldComponentUpdate() using shallowEqual()', () => { const component = sinon.spy(() => null) component.displayName = 'comp...
1,427
https://github.com/JonathanAlejandroTorres/Educa05/blob/master/Educa05-web/target/maven-archiver/pom.properties
Github Open Source
Open Source
MIT
2,017
Educa05
JonathanAlejandroTorres
null
Spoken
12
55
#Generated by Maven #Sat Jul 15 09:13:18 COT 2017 version=1.0-SNAPSHOT groupId=espe.edu.ec.educat artifactId=Educa05-web
35,733
https://github.com/garfiedhuang/FileHelper/blob/master/FileHelpers/Attributes/FieldNotEmptyAttribute.cs
Github Open Source
Open Source
MIT
2,022
FileHelper
garfiedhuang
C#
Code
54
125
using System; namespace FileHelpers { /// <summary> /// Indicates that the target field cannot contain an empty string value. /// This attribute is used for read. /// </summary> /// <remarks>See the <a href="http://www.filehelpers.net/mustread">complete attributes list</a> for more information and ...
20,115
https://github.com/cynnyx/auto-value-map/blob/master/settings.gradle
Github Open Source
Open Source
Apache-2.0
2,016
auto-value-map
cynnyx
Gradle
Code
3
13
include ':app', ':auto-value-map'
24,961
https://github.com/boraikizoglu/FreeCodeCamp-AlgorithmScripting-Solutions/blob/master/02-factorializeANumber.js
Github Open Source
Open Source
MIT
null
FreeCodeCamp-AlgorithmScripting-Solutions
boraikizoglu
JavaScript
Code
22
64
function factorialize(num) { var temp = 1; for(i=0; i<num; i++) { temp *= num-i; } num = temp; return num; } factorialize(5);
32,612
https://github.com/heitaoflower/MIDIVisualizer/blob/master/src/resources/data.h
Github Open Source
Open Source
MIT
2,021
MIDIVisualizer
heitaoflower
C
Code
28
101
#ifndef DATA_RESOURCES_H #define DATA_RESOURCES_H #include <string> #include <map> #include <vector> extern const std::map<std::string, std::string> shaders; extern unsigned char flash_image[262144]; extern unsigned char font_image[131072]; extern unsigned char particles_image[32352]; #endif
10,747
https://github.com/CherokeeLanguage/Animals/blob/master/android/assets/images/backdrops/00split_1080p.sh
Github Open Source
Open Source
MIT
2,022
Animals
CherokeeLanguage
Shell
Code
43
145
#!/bin/sh width=1920 height=1080 for f in dsci????.png; do i=0 for y in $(seq 0 270 1079); do for x in $(seq 0 240 1919); do dest="p_${i}_$f" echo gm convert -crop 240x270+${x}+${y} "$f" "${dest}" gm convert -crop 240x270+${x}+${y} "$f" "${dest}" i=$((${i}+1)) done done done
5,282
https://github.com/JasonConger/addonfactory-ucc-generator/blob/master/splunk_add_on_ucc_framework/UCC-UI-lib/bower_components/SplunkWebCore/search_mrsparkle/source/flash/libraries/splunk/src/com/splunk/time/SimpleTimeZone.as
Github Open Source
Open Source
Apache-2.0
2,021
addonfactory-ucc-generator
JasonConger
null
Spoken
54
168
package com.splunk.time { public class SimpleTimeZone implements ITimeZone { // Private Properties private var _offset:Number; // Constructor public function SimpleTimeZone(offset:Number = 0) { this._offset = offset; } // Public Getters/Setters public function get standardOffset() : Number ...
26,631
https://github.com/terratenney/aws-tools/blob/master/ECS/ecs.py
Github Open Source
Open Source
MIT
2,022
aws-tools
terratenney
Python
Code
147
496
""" Output: - List of Task Definition ARNs Output (if `detailed` is specified): - List of Task Definition ARNs and details """ import json import logging import click from helper.aws import AwsApiHelper logging.getLogger().setLevel(logging.DEBUG) class Helper(AwsApiHelper): def __init__(self, detailed): ...
54,252
https://github.com/shaw-wong/Malmo/blob/master/Documentation/search/enums_0.js
Github Open Source
Open Source
MIT
2,018
Malmo
shaw-wong
JavaScript
Code
5
69
var searchData= [ ['loggingseveritylevel',['LoggingSeverityLevel',['../classmalmo_1_1_logger.html#a3e1f4546121d7847f51b22d6be701a38',1,'malmo::Logger']]] ];
44,185
https://github.com/david-intersys/checkout-sdk-js/blob/master/src/common/error/throw-error-action.ts
Github Open Source
Open Source
MIT
2,022
checkout-sdk-js
david-intersys
TypeScript
Code
63
183
import { createErrorAction, Action } from '@bigcommerce/data-store'; import { concat, of, throwError, Observable } from 'rxjs'; export default function throwErrorAction<TPayload, TMeta, TType extends string>( type: TType, error?: TPayload, meta?: TMeta ): Observable<Action<TPayload, TMeta, TType>> { if...
2,729
https://github.com/martinspedro/IAPS_15_16/blob/master/Guião 3/ex1.m
Github Open Source
Open Source
MIT
2,017
IAPS_15_16
martinspedro
MATLAB
Code
365
921
%% Exercício 1 % Usando a função whos, obtenha o número de bytes ocupado por cada uma das % imagens clear; clc; % adicionar ao path o diretorio onde estão guardadas as imagens addpath('../Imagens'); % ler ficheiros *.jpg do path imagdir = dir('../Imagens/*.jpg'); % criar uma célula de arrays...
38,488
https://github.com/LeNiglo/minesweeper_cpp/blob/master/src/Arbiter.cpp
Github Open Source
Open Source
MIT
2,021
minesweeper_cpp
LeNiglo
C++
Code
186
619
#include "Arbiter.hpp" Arbiter::Arbiter(Board *board) { this->board = board; } boost::logic::tribool Arbiter::check() { int mines = this->board->getMines(); int flags = this->getFlags(true); int freeCells = this->getFreeCells(); bool foundMines = this->hasFoundMines(); if (foundMines) { // LOOSE CONDITION ...
48,278
https://github.com/deanwyns/Laravel/blob/master/app/repositories/address/AddressRepositoryImpl.php
Github Open Source
Open Source
MIT
null
Laravel
deanwyns
PHP
Code
69
215
<?php class AddressRepositoryImpl extends AbstractRepository implements AddressRepository { public function __construct(Address $model) { $this->model = $model; } public function getById($id, array $with = []) { $query = $this->make($with); return $query->where('id', '=', $id)->first(); } public function...
45,034
https://github.com/pocka/TurtleUI/blob/master/src/turtle-selectbox.stories.ts
Github Open Source
Open Source
Apache-2.0
2,022
TurtleUI
pocka
TypeScript
Code
189
666
import type { Meta, Story } from "@storybook/web-components"; import { html } from "lit-html"; import { ifDefined } from "lit-html/directives/if-defined"; import { config } from "storybook-addon-designs"; import { disableControls } from "../.storybook/helpers"; import { TurtleSelectbox } from "./turtle-selectbox"; i...
37,501
https://github.com/armvndj/AILA-Artificial-Intelligence-for-Legal-Assistance/blob/master/Methods/best_match_retrieval.py
Github Open Source
Open Source
MIT
2,021
AILA-Artificial-Intelligence-for-Legal-Assistance
armvndj
Python
Code
229
868
import argparse import os import string from pathlib import Path import pickle import nltk import numpy as np from gensim import corpora from nltk import word_tokenize from nltk.corpus import stopwords, wordnet from nltk.stem import WordNetLemmatizer from rank_bm25 import BM25Okapi import json import helpers def get_w...
14,626
https://github.com/clebersonjose/cj-management-api/blob/master/src/controllers/getUserByEmail.ts
Github Open Source
Open Source
MIT
null
cj-management-api
clebersonjose
TypeScript
Code
101
231
import { Request, Response } from 'express'; import User from '../models/user'; /** * @access public * @desc Controller for get a user by email. * @param {Request} request The request object. * @param {Object} request.body The request's body. * @param {string} request.body.email The user's email. * @param {Resp...
25,607
https://github.com/adaept/ae-ionicons/blob/master/src/components/ae-icons-component/ae-icons-component.tsx
Github Open Source
Open Source
MIT
null
ae-ionicons
adaept
TypeScript
Code
441
1,424
import { Component, h, Element, Prop } from "@stencil/core"; import "ionicons"; let maxsize: number = 128; let initsize: number = 40; //let prevsizeplus: number = 8; //let prevsizeminus: number = 8; let currsizeplus: number = 8; let currsizeminus: number = 8; @Component({ tag: "ae-icons-component", styleUrl: "ae-...
16,121
https://github.com/wish/mongoproxy/blob/master/pkg/bsonutil/arrayreader.go
Github Open Source
Open Source
MIT
2,022
mongoproxy
wish
Go
Code
108
402
package bsonutil import ( "fmt" "go.mongodb.org/mongo-driver/bson/bsonrw" "go.mongodb.org/mongo-driver/bson/primitive" ) func NewArrayReader(a interface{}, disallow bool) *ArrayReader { return &ArrayReader{A: a, disallowUnknownFields: disallow} } type ArrayReader struct { A interface{} off...
40,654
https://github.com/ann-inc/react-native-mathjax-html-to-svg/blob/master/mathjax/output/svg/Wrappers/mtd.js
Github Open Source
Open Source
MIT
2,021
react-native-mathjax-html-to-svg
ann-inc
JavaScript
Code
234
768
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnPrope...
14,443
https://github.com/ShiftLeftSecurity/Exceptionless/blob/master/tests/Exceptionless.Tests/Miscellaneous/EfficientPagingTests.cs
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-free-unknown
2,020
Exceptionless
ShiftLeftSecurity
C#
Code
199
708
using System; using System.Collections.Generic; using Exceptionless.Web.Utility.Results; using Xunit; using Xunit.Abstractions; using Microsoft.Extensions.Logging; namespace Exceptionless.Tests.Miscellaneous { public class EfficientPagingTests : TestWithServices { public EfficientPagingTests(ServicesFixtu...
47,834
https://github.com/tshion/mktools_lab/blob/master/android/src/debug/java/com/github/tshion/mktools_android/strict_mode/VmPolicyAndroidActivity.java
Github Open Source
Open Source
MIT
2,022
mktools_lab
tshion
Java
Code
43
223
package com.github.tshion.mktools_android.strict_mode; import android.os.Bundle; import android.os.StrictMode; import android.os.StrictMode.ThreadPolicy; import android.os.StrictMode.VmPolicy; import androidx.annotation.Nullable; /** * StrictMode.VmPolicy を標準機能を使って有効化 */ public class VmPolicyAndroidActivity extend...
2,029
https://github.com/desto-git/scrollbar.js/blob/master/demo/script.js
Github Open Source
Open Source
0BSD
2,018
scrollbar.js
desto-git
JavaScript
Code
404
954
var paragraphs = [ 'Magni veniam iste aut nemo. Id atque quia cum totam dolore velit. Rerum dignissimos modi et alias non aliquid dolorem. Est perspiciatis commodi aut accusamus eos maxime itaque quos.<br>Quos delectus ipsam dicta voluptas quo earum aut inventore. Modi sequi quo excepturi recusandae minima aut corrupt...
16,859
https://github.com/mezz/EnderIO/blob/master/src/main/java/crazypants/enderio/machine/gui/AbstractMachineContainer.java
Github Open Source
Open Source
Unlicense
2,021
EnderIO
mezz
Java
Code
829
2,898
package crazypants.enderio.machine.gui; import java.awt.Point; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.InventoryPlayer; import net.minecraft.inve...
50,017
https://github.com/ilscipio/scipio-erp/blob/master/tools/scripts/rc.scipio.for.ubuntu
Github Open Source
Open Source
LicenseRef-scancode-warranty-disclaimer, Apache-2.0, LicenseRef-scancode-unknown, LicenseRef-scancode-jdom, BSD-3-Clause, LicenseRef-scancode-generic-cla, MPL-1.1, CPL-1.0, GFDL-1.1-or-later, MPL-2.0, CC-BY-2.5, SPL-1.0, LicenseRef-scancode-proprietary-license, CDDL-1.0, MIT, LicenseRef-scancode-unknown-license-referen...
2,023
scipio-erp
ilscipio
Shell
Code
380
981
#!/bin/sh ##################################################################### # This file is subject to the terms and conditions defined in the\n # files 'LICENSE' and 'NOTICE', which are part of this source\n # code package. ##################################################################### # # scipio Thi...
52,606
https://github.com/evilgeniee/evilgeniee.github.io/blob/master/vendor/cache/ruby/2.2.0/gems/posix-spawn-0.3.6/test/test_backtick.rb
Github Open Source
Open Source
MIT
null
evilgeniee.github.io
evilgeniee
Ruby
Code
84
276
require 'test/unit' require 'posix-spawn' class BacktickTest < Test::Unit::TestCase include POSIX::Spawn def test_backtick_simple out = `exit` assert_equal '', out assert_equal 0, $?.exitstatus end def test_backtick_output out = `echo 123` assert_equal "123\n", out assert_equal 0, $?....
5,071
https://github.com/mourmoerl/med_segmentation/blob/master/readme/Patient_example.py
Github Open Source
Open Source
Apache-2.0
2,021
med_segmentation
mourmoerl
Python
Code
58
244
from ..Patient.Patient import * import yaml import argparse from ..util import convert_yaml_config def args_argument(): parser = argparse.ArgumentParser(prog='Nora') parser.add_argument("--gpu", type=int, default=0, help=" which gpu") parser.add_argument('-c', '--config_path', type=str, default='../config/...
13,526
https://github.com/lacti/json-mod/blob/master/__tests__/resource/readChildValue.test.ts
Github Open Source
Open Source
MIT
null
json-mod
lacti
TypeScript
Code
104
357
import readChildValue from "../../src/resource/readChildValue"; test("readChildValue", () => { expect(readChildValue({}, "")).toEqual(undefined); expect(readChildValue({}, "abc")).toEqual(undefined); expect(readChildValue({ abc: 100 }, "abc")).toEqual(100); expect(readChildValue({ abc: "def" }, "abc")).toEqual...
49,157
https://github.com/rameezcm/rameez_poc/blob/master/node_modules/typedoc/dist/lib/utils/options/index.js
Github Open Source
Open Source
MIT
null
rameez_poc
rameezcm
JavaScript
Code
22
89
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var options_1 = require("./options"); exports.Options = options_1.Options; exports.OptionsReadMode = options_1.OptionsReadMode; require("./readers/index"); require("./sources/index"); //# sourceMappingURL=index.js.map
17,808
https://github.com/raghulraj/ExecDashboard/blob/master/executive-api/src/main/java/com/capitalone/dashboard/executive/rest/MetricsController.java
Github Open Source
Open Source
Apache-2.0
2,019
ExecDashboard
raghulraj
Java
Code
162
878
package com.capitalone.dashboard.executive.rest; import java.util.List; import org.springframework.web.bind.annotation.CrossOrigin; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; imp...
6,027
https://github.com/Kirkq/bizhawk-shuffler-2/blob/master/plugins/sonic-sync-rings.lua
Github Open Source
Open Source
MIT
null
bizhawk-shuffler-2
Kirkq
Lua
Code
167
405
--[[ This plugin is designed for Sonic 1, 2, and 3 in a shuffle. This syncs the ring count across all three games. They have very similar RAM maps, so the addresses were the same for all three games, but if you needed to do different things for each game, you could check rom hashes with gameinfo.getromhash() --]] ...
11,867
https://github.com/startalkIM/libqimuikit-ios/blob/master/QIMUIKit/General/Controls/NavigationBar/SkinManager.m
Github Open Source
Open Source
MIT
2,021
libqimuikit-ios
startalkIM
Objective-C
Code
491
2,207
// // SkinManager.m // QunarUGC // // Created by ping.xue on 13-11-27. // // #import "SkinManager.h" #define kUserDefault_SkinInfo @"kUserDefault_SkinInfo" #define kUserDefault_DocumentFontName @"kUserDefault_DocumentFontName" #define kUserDefault_DocumentColor @"kUserDefault_DocumentColor" #defin...
17,987
https://github.com/lexus132/yii2.base/blob/master/migrations/m170603_141056_create_coments.php
Github Open Source
Open Source
BSD-3-Clause
null
yii2.base
lexus132
PHP
Code
183
496
<?php use yii\db\Migration; class m170603_141056_create_coments extends Migration { // public function safeUp() // { // // } // // public function safeDown() // { // echo "m170603_141056_create_coments cannot be reverted.\n"; // // return false; // } // Use up()/down() to run migr...
38,054
https://github.com/AlienCoffee/Conduit-app-web-GUI/blob/master/resources/ts/network.ts
Github Open Source
Open Source
Apache-2.0
2,019
Conduit-app-web-GUI
AlienCoffee
TypeScript
Code
460
1,028
import { ResponseBox } from "./bridge/gen-dtos"; import { ErrorPopupTile } from "./popup"; // // (c) Shemplo // export function sendRequest <T extends ResponseBox <any>> (method : string, url : string, data : FormData) : Promise <T> { var metas = document.getElementsByTagName ("meta"); var token = meta...
39,956
https://github.com/iitjee/SteppinsPHP/blob/master/SimpleUnorderedListDatabase.php
Github Open Source
Open Source
Apache-2.0
null
SteppinsPHP
iitjee
PHP
Code
17
60
<ul> <?php while($row = mysqli_fetch_assoc($result)) { ?> <li> <?php echo $row["column_name"] ?> </li> <?php } ?> </ul>
34,012
https://github.com/payeverworldwide/sdk-php/blob/master/lib/Payever/ExternalIntegration/Core/ClientConfiguration.php
Github Open Source
Open Source
MIT
2,023
sdk-php
payeverworldwide
PHP
Code
575
1,819
<?php /** * PHP version 5.4 and 8 * * @category Core * @package Payever\Core * @author payever GmbH <service@payever.de> * @author Andrey Puhovsky <a.puhovsky@gmail.com> * @author Hennadii.Shymanskyi <gendosua@gmail.com> * @copyright 2017-2021 payever GmbH * @license MIT <https://opensource.org/...
19,481
https://github.com/goonode/mogo/blob/master/document.go
Github Open Source
Open Source
MIT
2,022
mogo
goonode
Go
Code
1,608
4,089
package mogo import ( "errors" "reflect" "time" "github.com/globalsign/mgo" "github.com/globalsign/mgo/bson" ) // Model ... type Model interface { // Collection GetCollName() string SetCollName(name string) GetColl() *Collection // Indexes GetParsedIndex(name string) []ParsedIndex GetAllParsedIndex() ...
4,800
https://github.com/ZenyCher/jeecg-water-compare1/blob/master/jeecg-water/src/main/webapp/webpage/jeecg/wdevicetype/wDeviceType-add.jsp
Github Open Source
Open Source
MIT
2,018
jeecg-water-compare1
ZenyCher
null
Spoken
276
1,625
<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@include file="/context/mytags.jsp"%> <!DOCTYPE html> <html> <head> <title>净水器类型</title> <t:base type="jquery,easyui,tools,DatePicker"></t:base> </head> <body> <t:formvalid formid="formobj" dialog="tru...
52,061
https://github.com/gutierrpdev/gift-plus-plus/blob/master/app/src/components/audio-transcription/r-outro-remote-personal/r-outro-remote-personal-munch.tsx
Github Open Source
Open Source
MIT
2,021
gift-plus-plus
gutierrpdev
TypeScript
Code
93
169
import React from 'react'; // tslint:disable max-line-length const ROutroRemotePersonalTranscriptMunch: React.FC = () => ( <> <h5>Postscript</h5> <p>Hey. I figured I’d leave you to it. I wonder... did the gift surprise you, or do you know each other so well that surprises are kind of impossible? If getting t...
6,088
https://github.com/kaosat-dev/R/blob/master/src/Hook.js
Github Open Source
Open Source
MIT
2,015
R
kaosat-dev
JavaScript
Code
26
84
module.exports = function (observer, method) { var boundArgs = [].slice.call(arguments, 0); boundArgs.splice(0, 2); return function () { var args = [].slice.call(arguments, 0); observer[method].apply(observer, boundArgs.concat(args)); }; };
24,048
https://github.com/Test-mycode/mqtt/blob/master/socket/build.gradle
Github Open Source
Open Source
Apache-2.0
2,020
mqtt
Test-mycode
Gradle
Code
205
773
plugins { id 'kotlin-multiplatform' } repositories { mavenCentral() jcenter() } apply from: "../gradle/android.gradle" apply from: "../gradle/experimental.gradle" kotlin { jvm() if (System.getenv("ANDROID_HOME")) { android() } js { nodejs { testTask { ...
981
https://github.com/timesofbadri/ArmadilloJava/blob/master/test/data/expected/TestArmaMatrixValuedFunctionsOfVectorsMatricesMiscellaneousParameterised/testDiagvec.k41.numbered.4x100.mat
Github Open Source
Open Source
MIT
2,013
ArmadilloJava
timesofbadri
Unity3D Asset
Code
4
41
1.640000000000e+002 1.690000000000e+002 1.740000000000e+002 1.790000000000e+002
47,713
https://github.com/mmarszik/01ToBin/blob/master/.gitignore
Github Open Source
Open Source
MIT
2,021
01ToBin
mmarszik
Ignore List
Code
12
48
release/* debug/* Release/* Debug/* vendor/* Vendor/* *.autosave assert.log bench.log log.log export.zip nohup.out
51,707
https://github.com/emilypi/pact-core/blob/master/src/Pact/AST/KeySet.hs
Github Open Source
Open Source
BSD-3-Clause
2,019
pact-core
emilypi
Haskell
Code
121
355
{-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE TemplateHaskell #-} -- | -- Copyright : (c) Emily Pillmore 2019-2019 -- License : BSD-2-Clause -- Maintainer: Emily Pillmore <emily@kadena.io>, Emmanuel Denloye-Ito <emmanul@kadena.io> -- Stability : experimental -- Portability: non-porta...
16,304
https://github.com/Zitong-Jin/TopoScope/blob/master/link.py
Github Open Source
Open Source
BSD-3-Clause
2,021
TopoScope
Zitong-Jin
Python
Code
872
3,366
import numpy as np import networkx as nx import os, copy, math, operator, random, json, scipy, sqlite3, resource from collections import defaultdict from itertools import permutations from hierarchy import Hierarchy resource.setrlimit(resource.RLIMIT_STACK, (resource.RLIM_INFINITY, resource.RLIM_INFINITY)) class Links...
31,762
https://github.com/jacobsjo/minecraft-biome-builder/blob/master/src/main/UI/VisualizationManager.ts
Github Open Source
Open Source
MIT
2,022
minecraft-biome-builder
jacobsjo
TypeScript
Code
757
3,056
import { lerp2, TerrainShaper } from "deepslate"; import * as L from "leaflet"; import { last } from "lodash"; import { BiomeBuilder } from "../BuilderData/BiomeBuilder"; import { GridElementUnassigned } from "../BuilderData/GridElementUnassigned"; import { BiomeLayer } from "../Visualization/BiomeLayer"; import { Cont...
3,184
https://github.com/winston-zillow/paddle2onnx/blob/master/tests/test_pool2d_op.py
Github Open Source
Open Source
Apache-2.0
2,021
paddle2onnx
winston-zillow
Python
Code
307
1,072
# Copyright (c) 2018 PaddlePaddle Authors. 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 appli...
14,130
https://github.com/stoman/CompetitiveProgramming/blob/master/problems/sortingundersquaredistance/submissions/time_limit_exceeded/stefan.cpp
Github Open Source
Open Source
MIT
2,021
CompetitiveProgramming
stoman
C++
Code
105
258
//Author: Stefan Toman //Sorting the numbers needs to be done in O(n log n) instead of O(n^2). #include <iostream> #include <string.h> #include <algorithm> using namespace std; int main() { int n; cin >> n; long long d[n]; for (int i = 0; i < n; ++i) { cin >> d[i]; } long long r = 0; bool change = true; w...
51,747
https://github.com/mrdulin/main-poject/blob/master/src/graphql-authentication-and-authorization/directive/auth.ts
Github Open Source
Open Source
MIT
2,021
main-poject
mrdulin
TypeScript
Code
125
400
import { SchemaDirectiveVisitor, AuthenticationError } from 'apollo-server'; import { defaultFieldResolver } from 'graphql'; class AuthDirective extends SchemaDirectiveVisitor { public visitObject(type) { this.ensureFieldsWrapped(type); type._requiredAuthRole = this.args.requires; } public visitFieldDef...
22,172
https://github.com/jwiesel/QrAndBarcodeScanner/blob/master/app/src/main/java/com/example/barcodescanner/feature/tabs/create/qr/CreateQrCodeBookmarkFragment.kt
Github Open Source
Open Source
Unlicense
2,021
QrAndBarcodeScanner
jwiesel
Kotlin
Code
103
507
package com.example.barcodescanner.feature.tabs.create.qr import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.core.widget.addTextChangedListener import com.example.barcodescanner.R import com.example.barcodescanner.extension.isNotBlank impo...
56,447
https://github.com/FreddyCode/fleetManagement/blob/master/app/Driver.php
Github Open Source
Open Source
MIT
2,019
fleetManagement
FreddyCode
PHP
Code
31
108
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Driver extends Model { protected $table = 'drivers'; protected $fillable = [ 'first_name','last_name','telephone','email', 'image','detail_id','insurance', 'license','identity' ]; protected $primaryKey = 'id'; ...
48,077
https://github.com/triadasystems/terceros/blob/master/app/Applications.php
Github Open Source
Open Source
MIT
2,019
terceros
triadasystems
PHP
Code
36
114
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Applications extends Model { protected $table="applications"; protected $fillable = [ 'id', 'name', 'alias', 'active' ]; protected $hidden = ["responsability_id", "instance_id"]; public $timestam...
34,276
https://github.com/PaddlePaddle/Paddle-Lite/blob/master/lite/kernels/xpu/linspace_compute.cc
Github Open Source
Open Source
Apache-2.0
2,023
Paddle-Lite
PaddlePaddle
C++
Code
282
1,172
// Copyright (c) 2023 PaddlePaddle Authors. 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...
34,476
https://github.com/pbnjay/anydata/blob/master/formats/simple.go
Github Open Source
Open Source
MIT
2,015
anydata
pbnjay
Go
Code
855
2,440
package formats import ( "bufio" "bytes" "encoding/csv" "fmt" "io" "strings" "unicode/utf8" ) type simpleDelimited struct { FieldDelim string RecordDelim string rdLen int reader io.Reader scanner *bufio.Scanner } func (f *simpleDelimited) Init(spec map[string]string) error { // defaults ...
45,550
https://github.com/toricls/cobolambda/blob/master/serverless.cbl
Github Open Source
Open Source
MIT
2,021
cobolambda
toricls
null
Spoken
14
56
IDENTIFICATION DIVISION. PROGRAM-ID. COBOLAMBDA. ENVIRONMENT DIVISION. DATA DIVISION. PROCEDURE DIVISION. DISPLAY "Hello Serverless World!".
18,358
https://github.com/Royal-Navy/design-system/blob/master/packages/react-component-library/src/components/Select/hooks/useSelectMenu.ts
Github Open Source
Open Source
Apache-2.0
2,023
design-system
Royal-Navy
TypeScript
Code
42
146
import React, { useCallback } from 'react' export function useSelectMenu(inputRef: React.RefObject<HTMLInputElement>): { onMenuKeyDownHandler: (e: React.KeyboardEvent<HTMLUListElement>) => void } { const onMenuKeyDownHandler = useCallback( (e: React.KeyboardEvent<HTMLUListElement>) => { if (e.key === 'Ta...
4,928
https://github.com/Zheng-Lu/LeetcodeSolutions/blob/master/Array/src/MergeSortrdArr2.java
Github Open Source
Open Source
MIT
2,021
LeetcodeSolutions
Zheng-Lu
Java
Code
27
105
import java.util.Arrays; public class MergeSortrdArr2 { public void merge(int[] nums1, int m, int[] nums2, int n) { int index=0; for(int i=m;i<m+n;i++) { nums1[i]=nums2[index++]; } Arrays.sort(nums1); } }
32,713
https://github.com/ccrama/ARAW/blob/master/sampleapp/src/main/java/com/kirkbushman/sampleapp/models/SubmissionModel.kt
Github Open Source
Open Source
MIT
2,022
ARAW
ccrama
Kotlin
Code
128
674
package com.kirkbushman.sampleapp.models import android.view.View import com.airbnb.epoxy.EpoxyAttribute import com.airbnb.epoxy.EpoxyAttribute.Option.DoNotHash import com.airbnb.epoxy.EpoxyModelClass import com.kirkbushman.sampleapp.R import com.kirkbushman.sampleapp.databinding.ItemSubmissionBinding import com.kirkb...
47,635
https://github.com/simondean/component-catalog/blob/master/service/src/test/java/com/moneysupermarket/componentcatalog/service/tests/lastcommitage/LastCommitAgeTestTest.java
Github Open Source
Open Source
MIT
null
component-catalog
simondean
Java
Code
355
1,233
package com.moneysupermarket.componentcatalog.service.tests.lastcommitage; import com.moneysupermarket.componentcatalog.sdk.models.Component; import com.moneysupermarket.componentcatalog.sdk.models.Priority; import com.moneysupermarket.componentcatalog.sdk.models.TestOutcome; import com.moneysupermarket.componentcatal...
47,743
https://github.com/loreggia/micser/blob/master/src/Micser.App.Infrastructure/Interaction/MessageBoxViewModel.cs
Github Open Source
Open Source
Apache-2.0
2,021
micser
loreggia
C#
Code
333
935
using Prism.Commands; using Prism.Services.Dialogs; using System; using System.Drawing; using System.Windows; namespace Micser.App.Infrastructure.Interaction { /// <summary> /// View model for generic message box interaction requests. /// </summary> public class MessageBoxViewModel : ViewModel, IDialo...
19,790
https://github.com/apache/geronimo/blob/master/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/config/ConfigurationData.java
Github Open Source
Open Source
LicenseRef-scancode-generic-cla, LGPL-2.1-or-later, MPL-1.1, JSON, LGPL-2.1-only, MPL-1.0, Apache-2.0, LicenseRef-scancode-unknown, X11, W3C, GPL-1.0-or-later, CPL-1.0, LicenseRef-scancode-oracle-openjdk-exception-2.0, W3C-19980720, LicenseRef-scancode-indiana-extreme, BSD-3-Clause, LicenseRef-scancode-unknown-license-...
2,013
geronimo
apache
Java
Code
1,079
2,819
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); yo...
27,742
https://github.com/themightychris/slate-cbl/blob/master/sencha-workspace/SlateDemonstrationsStudent/app/controller/Skills.js
Github Open Source
Open Source
MIT
2,021
slate-cbl
themightychris
JavaScript
Code
79
365
Ext.define('SlateDemonstrationsStudent.controller.Skills', { extend: 'Ext.app.Controller', // controller configuration views: [ 'Window@Slate.ui', 'StudentSkillPanel@Slate.cbl.view.demonstrations' ], refs: { dashboardCt: 'slate-demonstrations-student-dashboard', ...
35,817
https://github.com/vicb/flyxc/blob/master/apps/fxc-front/src/app/components/ui/ionic.ts
Github Open Source
Open Source
MIT
2,023
flyxc
vicb
TypeScript
Code
451
1,371
// Import all used ionic components. import { initialize } from '@ionic/core/components'; import { defineCustomElement as d1 } from '@ionic/core/components/ion-accordion'; import { defineCustomElement as d2 } from '@ionic/core/components/ion-accordion-group'; import { defineCustomElement as d3 } from '@ionic/core/comp...
42,843
https://github.com/dropofwill/upm-ui/blob/master/front/js/main.js
Github Open Source
Open Source
BSD-3-Clause
null
upm-ui
dropofwill
JavaScript
Code
296
1,215
(function() { "use strict"; var app; app = window.config_app(); window.onload = function() { app.$window = $(window); app.spotify = new app.SpotifyClient(); app.dom_playlists = $("#js-playlists"); app.dom_playlists_list = $("#js-playlists-list"); app.dom_playlist = $("#js-playlist"); a...
12
https://github.com/victorpaucas/Constructora/blob/master/Constructora.Presentacion.Web/Views/Home/Index.cshtml
Github Open Source
Open Source
MIT
2,020
Constructora
victorpaucas
HTML+Razor
Code
21
91
@{ ViewBag.Title = "Constructora | Home"; Layout = "~/Views/Shared/Layout.cshtml"; } <div class="loader"> <img src="~/img/loading.gif" /> </div> @section scripts{ <script src="~/data/home/home.js"></script> }
31,073
https://github.com/kusita8/Task-Manager-Servidor/blob/master/index.js
Github Open Source
Open Source
MIT
null
Task-Manager-Servidor
kusita8
JavaScript
Code
88
278
const express = require('express'); const conectarDB = require('./config/db') const cors = require('cors') // crear el servidor const app = express(); // conectar a la base de datos conectarDB(); // habilitar cors app.use(cors()) // habilitar express.json app.use(express.json({ extended: true })); // Puerto de la...
18,931
https://github.com/okitavera/okitavera.github.io/blob/master/gulpfile.babel.js
Github Open Source
Open Source
MIT
2,018
okitavera.github.io
okitavera
JavaScript
Code
198
752
import fs from "fs"; import {spawn} from "child_process"; import gulp from "gulp"; import babel from "gulp-babel"; import clean from "gulp-clean"; import stylus from "gulp-stylus"; import postcss from "gulp-postcss"; import autoprefixer from "autoprefixer"; import cssnano from "cssnano"; import mqpacker from "css-mqpac...
43,783
https://github.com/Draco-nz/tinyMediaManager/blob/master/AppBundler/dist-mac/MacOS/JavaApplicationStub
Github Open Source
Open Source
Apache-2.0
2,021
tinyMediaManager
Draco-nz
Shell
Code
64
207
#!/usr/bin/env bash # # tinyMediaManager v4 by Manuel Laggner # https://www.tinymediamanager.org/ # SPDX-License-Identifier: Apache-2.0 # # launch tinyMediaManager v4 launcher # find the path where to execute tmm PRG=$0 while [ -h "$PRG" ]; do ls=`ls -ld "$PRG"` link=`expr "$ls" : '^.*-> \(.*\)$' 2>/dev/null`...
20,487
https://github.com/ValeeraJS/Nova/blob/master/src/components/tween/index.ts
Github Open Source
Open Source
MIT
2,022
Nova
ValeeraJS
TypeScript
Code
6
13
export {default as Tween} from "./Tween";
23,268
https://github.com/eoy4/nelaytovi.com/blob/master/src/components/countdown.js
Github Open Source
Open Source
CC0-1.0, MIT
null
nelaytovi.com
eoy4
JavaScript
Code
161
616
import { default as moment } from 'moment'; export function countdown(el) { const $ = window.jQuery || {}; const $countdown = $(el); if (!$countdown.length) { return false; } if (!$countdown.find('.box.seconds').length) { $countdown.append($('<div>').addClass('box seconds')); } if (!$countdown...
19,722
https://github.com/vitodtagliente/pure/blob/master/app/Views/welcome.php
Github Open Source
Open Source
MIT
null
pure
vitodtagliente
PHP
Code
36
153
<html> <head> <title>Welcome</title> <style> body { background-color: #fff; font: 22px/20px normal Helvetica, Arial, sans-serif; color: #4F5155; text-align: center; } h1 { padding-top:...
1,683
https://github.com/ixc/django-orm-fixtures/blob/master/orm_fixtures/management/commands/orm_fixtures.py
Github Open Source
Open Source
MIT
2,014
django-orm-fixtures
ixc
Python
Code
295
795
from django.conf import settings from django.core.management.base import BaseCommand, CommandError from django.utils.importlib import import_module try: from django.db.transaction import atomic except ImportError: # For Django <= 1.5.x backward compatibility. This should be removed by # Django >= 1.8.x. ...
12,154
https://github.com/jonathanAgarcia/hratx52-hungry-bunch/blob/master/front-end/src/containers/addRecipeContainer.js
Github Open Source
Open Source
MIT
2,021
hratx52-hungry-bunch
jonathanAgarcia
JavaScript
Code
126
360
import { createSelector } from 'reselect'; export const selectSomething = createSelector( state => state.addRecipes, addRecipes => addRecipes.recipe ); export const selectCurrentIngredients = createSelector( state => state.addRecipes, addRecipes => addRecipes.currentIngredients ); export const selectCurrentS...
40,798
https://github.com/3salles/letask/blob/master/src/pages/AdminRoom.tsx
Github Open Source
Open Source
MIT
null
letask
3salles
TypeScript
Code
229
839
import { useState } from "react"; import { useParams } from "react-router-dom"; import Header from "../components/Header"; import QuestionCard from "../components/QuestionCard"; import DeleteQuestionModal from "../components/DeleteQuestionModal"; import { RoomParams } from "../models/index"; import { Question } from...
31,149
https://github.com/3x1io/filament-kit/blob/master/database/settings/2021_12_13_205437_payments_settings.php
Github Open Source
Open Source
MIT
null
filament-kit
3x1io
PHP
Code
21
109
<?php use Spatie\LaravelSettings\Migrations\SettingsMigration; class PaymentsSettings extends SettingsMigration { public function up(): void { $this->migrator->add('payments.payment_gate', 'paytabs'); $this->migrator->add('payments.payment_online', false); $this->migrator->add('payment...
32,600
https://github.com/bot-motion/gap_sdk/blob/master/examples/pmsis/bsp/cameras/camera_ir_thermeye/Makefile
Github Open Source
Open Source
Apache-2.0
null
gap_sdk
bot-motion
Makefile
Code
41
127
# User Test #------------------------------------ APP = test # App sources APP_SRCS = test_thermeye.c # App includes APP_INC = . # Compiler flags APP_CFLAGS = # Linker flags APP_LDFLAGS = # Include GAP_LIB/IMGIO CONFIG_GAP_LIB_IMGIO = 1 BOARD_NAME = gapoc_b io=host include $(...
11,161
https://github.com/prasejaya/proyek/blob/master/application/views/progress/tb_progress_form.php
Github Open Source
Open Source
MIT
null
proyek
prasejaya
PHP
Code
236
982
<section class='content-header'> <h1> Progress <small>Form Progress</small> </h1> <?php $proyek = $this->db->get("proyek")->result_array() ; ?> <ol class='breadcrumb'> <li><a href='#'><i class='fa fa-suitcase'></i>Master</a></li> <li class='active'>Form Progr...
15,442
https://github.com/kieferrm/vscode/blob/master/resources/win32/bin/code.sh
Github Open Source
Open Source
MIT
2,021
vscode
kieferrm
Shell
Code
93
309
#!/usr/bin/env bash # # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. NAME="@@NAME@@" VSCODE_PATH="$(dirname "$(dirname "$(realpath "$0")")")" ELECTRON="$VSCODE_PATH/$NAME.exe" if grep -q Microsoft /proc/version;...
47,188
https://github.com/MittBrukernavn/alexandersen/blob/master/client/src/components/bingo/Row.jsx
Github Open Source
Open Source
MIT
null
alexandersen
MittBrukernavn
null
Spoken
59
218
import React from 'react'; import PropTypes from 'prop-types'; import Tile from './Tile'; const Row = ({ data, rowIndex, toggle }) => ( <tr> {data.map((tile, columnIndex) => ( <Tile // eslint-disable-next-line key={columnIndex} data={tile} rowIndex={rowIndex} column...
40,244
https://github.com/Ha1lowe3n/online-cinema-backend/blob/master/src/utils/error-messages/genre-error-messages.ts
Github Open Source
Open Source
MIT
null
online-cinema-backend
Ha1lowe3n
TypeScript
Code
106
354
export const GenreErrorMessages = { /** * Жанр не найден */ GENRE_NOT_FOUND: 'Жанр не найден', /** * Такой жанр уже создан 'Название жанра не может быть пустым' */ GENRE_ALREADY_REGISTERED: 'Такой жанр уже создан', /** * Название жанра не может быть пустым */ GENRE_TITLE_CANT_BE_EMPTY: 'Название жанра...
6,256
https://github.com/Juta/beam/blob/master/sdks/java/core/src/test/java/org/apache/beam/sdk/schemas/FieldAccessDescriptorTest.java
Github Open Source
Open Source
Apache-2.0
2,020
beam
Juta
Java
Code
643
3,328
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
3,087
https://github.com/carlocorradini/cup/blob/master/src/main/java/it/unitn/disi/wp/cup/service/model/health_service/CredentialsModel.java
Github Open Source
Open Source
MIT
2,020
cup
carlocorradini
Java
Code
265
602
package it.unitn.disi.wp.cup.service.model.health_service; import it.unitn.disi.wp.cup.config.AuthConfig; import it.unitn.disi.wp.cup.persistence.entity.HealthService; import it.unitn.disi.wp.cup.service.model.Model; /** * Credentials Model for authenticating the {@link HealthService Health Service} * * @author Ca...
48,421
https://github.com/timmyreilly/draco/blob/master/src/draco/api/ExecutionAdapter.Api/Controllers/ExecutionAdapterController.cs
Github Open Source
Open Source
MIT
null
draco
timmyreilly
C#
Code
245
671
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using Draco.Api.InternalModels; using Draco.Api.InternalModels.Extensions; using Draco.Core.Execution.Interfaces; using Microsoft.AspNetCore.Mvc; using System.Linq; using System.Threading; using System.Threading.Tasks; namespace Draco.Executio...
43,755
https://github.com/minchao/go-ptx/blob/master/basic/v2/client/common/web_site_api_news2163_responses.go
Github Open Source
Open Source
BSD-2-Clause
2,022
go-ptx
minchao
Go
Code
311
1,074
// Code generated by go-swagger; DO NOT EDIT. package common // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/minchao/go-ptx/basic/...
4,841
https://github.com/orryverducci/TtxFromTS/blob/master/.editorconfig
Github Open Source
Open Source
BSD-3-Clause, Apache-2.0
2,023
TtxFromTS
orryverducci
null
Spoken
599
3,006
root = true ########################################## # All files ########################################## [*] charset = utf-8 indent_style = space indent_size = 4 insert_final_newline = true trim_trailing_whitespace = true ########################################## # File Extension Settings #####################...
52,537
https://github.com/CeTesDev/EthernautLevels/blob/master/gatekeeper-one/contracts/Hacker.sol
Github Open Source
Open Source
MIT
2,021
EthernautLevels
CeTesDev
Solidity
Code
157
363
// SPDX-License-Identifier: MIT pragma solidity >=0.8.5 <0.9.0; contract Hacker { address public hacker; modifier onlyHacker { require(msg.sender == hacker, "caller is not the hacker"); _; } constructor() { hacker = payable(msg.sender); } function attack(address _target) public onlyHacker { ...
49,927
https://github.com/jfernstad/QP_fun/blob/master/RFduino_core/RFduino/libraries/RFduinoNonBLE/examples/01.Basics/Fade/Fade.ino
Github Open Source
Open Source
MIT
2,021
QP_fun
jfernstad
null
Spoken
164
270
/* Fade This example shows how to fade an green LED on pin 3 using the analogWrite() function. This example code is in the public domain. */ int led_green = 3; // the pin that the green LED is attached to int brightness = 0; // how bright the LED is int fadeAmount = 5; // how many points to fade the...
26,653
https://github.com/BLACKujira/SekaiTools/blob/master/SekaiTools/Assets/Live2D/Motions/06haruka_motion_base/face_cry_01.motion3.json.meta
Github Open Source
Open Source
MIT
2,023
SekaiTools
BLACKujira
Unity3D Asset
Code
11
84
fileFormatVersion: 2 guid: cfaaaa1229d41614581e6bd5d255ddc7 TextScriptImporter: externalObjects: {} userData: '{"_animationClipGuid":"cf6b370ff9feea64da4a561e91f41337"}' assetBundleName: assetBundleVariant:
3,575
https://github.com/chandraseta/spam-mails-detection/blob/master/dataset/TR-mails/TR-processed/TRAIN_1761.eml
Github Open Source
Open Source
MIT
2,018
spam-mails-detection
chandraseta
null
Spoken
297
455
Re: Re[3]: Selling Wedded Bliss (was Re: Ouch...) Here are numbers that come from a study of a couple of thousand swedes, with no reference to sexual preference that I could find. The point would seem to be that (1) sexual activity follows a power curve, with a few people, a la Wilt Chamberlain, having an extaordina...
17,485
https://github.com/nomanabdullah-dev/store_inventroy_management/blob/master/app/Http/Controllers/UserController.php
Github Open Source
Open Source
MIT
null
store_inventroy_management
nomanabdullah-dev
PHP
Code
147
580
<?php namespace App\Http\Controllers; use App\Models\User; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Hash; class UserController extends Controller { public function index() { $users = User::all(); return view('user.index', compact('users'...
29,303
https://github.com/HPE-Haven-OnDemand/havenondemand-java-deprecated/blob/master/src/main/java/com/hp/autonomy/iod/client/api/search/GetContentService.java
Github Open Source
Open Source
MIT
2,016
havenondemand-java-deprecated
HPE-Haven-OnDemand
Java
Code
235
503
/* * Copyright 2015 Hewlett-Packard Development Company, L.P. * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. */ package com.hp.autonomy.iod.client.api.search; import com.hp.autonomy.iod.client.error.IodErrorException; import retrofit.http.GET; imp...
39,959
https://github.com/etienne-dldc/synclock/blob/master/tests/index.test.ts
Github Open Source
Open Source
MIT
null
synclock
etienne-dldc
TypeScript
Code
393
1,240
import { store, derive, join, mountMaybe, unwrap } from '../src'; test('simple store', () => { const num = store(42); const cb = jest.fn(); num.sub(cb); expect(num.get()).toEqual(42); num.emit(3); expect(num.get()).toEqual(3); expect(cb).toHaveBeenCalledWith(3); }); test('simple store does not emit when...
30,102
https://github.com/mastermind88/HTTP-Shortcuts/blob/master/HTTPShortcuts/app/src/main/kotlin/ch/rmy/android/http_shortcuts/activities/main/ShortcutListEvent.kt
Github Open Source
Open Source
MIT
null
HTTP-Shortcuts
mastermind88
Kotlin
Code
34
176
package ch.rmy.android.http_shortcuts.activities.main import ch.rmy.android.framework.viewmodel.ViewModelEvent import ch.rmy.android.http_shortcuts.data.domains.categories.CategoryId import ch.rmy.android.http_shortcuts.data.domains.shortcuts.ShortcutId import ch.rmy.android.http_shortcuts.import_export.ExportFormat ...
44,054
https://github.com/sathzsmith/akaunting/blob/master/assets/build/Akaunting_1.3.17-Stable/app/Filters/Expenses/Vendors.php
Github Open Source
Open Source
MIT
2,020
akaunting
sathzsmith
PHP
Code
80
222
<?php namespace App\Filters\Expenses; use EloquentFilter\ModelFilter; class Vendors extends ModelFilter { /** * Related Models that have ModelFilters as well as the method on the ModelFilter * As [relatedModel => [input_key1, input_key2]]. * * @var array */ public $relations = []; ...
15,339
https://github.com/karenlaw-0316/portfolio.github.io/blob/master/js/FullPageScroll-master/app/assets/javascript/script.js
Github Open Source
Open Source
MIT
2,021
portfolio.github.io
karenlaw-0316
JavaScript
Code
37
161
var page = new FullPage("#main", { onLeave: function(index) { console.log(index); }, afterLoad: function(index) { console.log(index); } }); var moveToTop = document.getElementById("moveToTop"); var moveToLast = document.getElementById("moveToLast"); moveToTop.addEventListener('click', function(e) {...
9,093
https://github.com/gusarov/SimpleGrep/blob/master/Grepl.Tests/Commands/BasicCommands.cs
Github Open Source
Open Source
Apache-2.0
2,022
SimpleGrep
gusarov
C#
Code
1,148
5,291
using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Collections.Generic; using System.IO; using System.Text; namespace Grepl.Tests.Commands { [TestClass] public class BasicCommands : GrepCommands { string Data1 { get { return @" dir1\dir11\file.txt some data5 dir1\file.txt...
48,158
https://github.com/okkann/LibRbxl/blob/master/LibRbxl/Instances/Shirt.cs
Github Open Source
Open Source
MIT, BSD-2-Clause
2,016
LibRbxl
okkann
C#
Code
24
55
namespace LibRbxl.Instances { public class Shirt : Clothing { public override string ClassName => "Shirt"; public string ShirtTemplate { get; set; } } }
4,369
https://github.com/tgeng/intellij-kotlin/blob/master/idea/testData/compiler/asJava/script/ide/HelloWorld.java
Github Open Source
Open Source
ECL-2.0, Apache-2.0
2,022
intellij-kotlin
tgeng
Java
Code
25
45
public class HelloWorld { public static final void main(java.lang.String[] p) { /* compiled code */ } public HelloWorld() { /* compiled code */ } }
34,590