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/slowli/corba-int-sequences/blob/master/java/Makefile
Github Open Source
Open Source
Apache-2.0
2,017
corba-int-sequences
slowli
Makefile
Code
121
516
################################################## # Makefile for Java client and server. ################################################## ROOT_DIR=.. include $(ROOT_DIR)/Makevars IDL_OUT=$(MODULE)/$(BASE).java TMP_DIR=tmp CLIENT=client-java.jar SERVER=server-java.jar # Package containing server and client implem...
3,329
https://github.com/vitorbaraujo/batler/blob/master/Makefile
Github Open Source
Open Source
MIT
null
batler
vitorbaraujo
Makefile
Code
92
337
GO ?= go GOLANGCI_LINT := $(GO) run github.com/golangci/golangci-lint/cmd/golangci-lint GOLINT := $(GO) run golang.org/x/lint/golint GOIMPORTS := $(GO) run golang.org/x/tools/cmd/goimports SOURCES := $(shell \ find . -not \( \( -name .git -o -name vendor \) -prune \) \ -name *.go) PACKAGES := $(shell $(GO) list ./....
13,436
https://github.com/yunwwang/cda-2-fhir-net/blob/master/src/Wyw.Cda2Fhir.Core/Serialization/DataType/ContactPointParser.cs
Github Open Source
Open Source
MIT
2,018
cda-2-fhir-net
yunwwang
C#
Code
102
427
using System.Xml.Linq; using Hl7.Fhir.Model; using Wyw.Cda2Fhir.Core.Serialization.ValueSet; namespace Wyw.Cda2Fhir.Core.Serialization.DataType { public class ContactPointParser :BaseParser<ContactPoint> { public override ContactPoint FromXml(XElement element) { if (element == null...
43,502
https://github.com/icunion/election-stats-icu/blob/master/src/components/Stats/TimeLine/TimeLineEntry.jsx
Github Open Source
Open Source
MIT
null
election-stats-icu
icunion
null
Spoken
163
630
import React, { useEffect, useState } from 'react' import AnimatedNumber from 'animated-number-react' import { useSources, useStat, useRollingStat } from '../../../arithmospora/hooks' import usePrevious from '../../../hooks/use-previous' import styles from './TimeLineEntry.module.scss' const TimeLineEntry = (p...
44,538
https://github.com/openspc/Photoshop/blob/master/chapter10/0021/sample/sample.jsx
Github Open Source
Open Source
MIT
2,015
Photoshop
openspc
JavaScript
Code
3
26
// 選択範囲をカットする app.activeDocument.selection.cut();
16,847
https://github.com/spatie/icalendar-generator/blob/master/tests/Components/EventTest.php
Github Open Source
Open Source
MIT
2,023
icalendar-generator
spatie
PHP
Code
1,219
5,448
<?php use function PHPUnit\Framework\assertStringEndsWith; use Spatie\IcalendarGenerator\Components\Alert; use Spatie\IcalendarGenerator\Components\Event; use Spatie\IcalendarGenerator\Enums\Classification; use Spatie\IcalendarGenerator\Enums\Display; use Spatie\IcalendarGenerator\Enums\EventStatus; use Spatie\Icalend...
5,558
https://github.com/Scot3004/secorto/blob/master/src/components/__tests__/ToolbarActions.spec.jsx
Github Open Source
Open Source
MIT
null
secorto
Scot3004
null
Spoken
35
93
import React from 'react'; import { shallow } from 'enzyme'; import toJson from 'enzyme-to-json'; import ToolbarActions from '../ToolbarActions'; const config = "stub" it('renders correctly', () => { const tree = shallow(<ToolbarActions config={config} />); expect(toJson(tree)).toMatchSnapshot(); });
35,119
https://github.com/luyuliu/sharpe/blob/master/visualization/script/main.js
Github Open Source
Open Source
MIT
null
sharpe
luyuliu
JavaScript
Code
210
811
$("#sidebar-hide-btn").click(function () { animateSidebar(); $('.mini-submenu').fadeIn(); return false; }); $('.mini-submenu').on('click', function () { animateSidebar(); $('.mini-submenu').hide(); }) function animateSidebar() { $("#sidebar").animate({ width: "toggle" }, 350, function () { map....
38,327
https://github.com/lubitelpospat/CFM-source/blob/master/frontend/node_modules/lodash-decorators/throttle.d.ts
Github Open Source
Open Source
MIT
2,020
CFM-source
lubitelpospat
TypeScript
Code
66
177
import { LodashMethodDecorator } from './factory'; import { ThrottleOptions } from './shared'; declare const decorator: (...args: any[]) => MethodDecorator & PropertyDecorator; export declare function Throttle(wait?: number, options?: ThrottleOptions): LodashMethodDecorator; export declare function ThrottleGetter(wait?...
48,425
https://github.com/hmrc/vat-registration-frontend/blob/master/test/views/business/ConfirmTradingNameViewSpec.scala
Github Open Source
Open Source
Apache-2.0
2,023
vat-registration-frontend
hmrc
Scala
Code
241
556
/* * Copyright 2023 HM Revenue & Customs * * 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 a...
44,341
https://github.com/StavrosChryselis/hackerrank/blob/master/Strings/Pangrams.cpp
Github Open Source
Open Source
MIT
null
hackerrank
StavrosChryselis
C++
Code
90
280
/* **************************************************************** **************************************************************** -> Coded by Stavros Chryselis -> Visit my github for more solved problems over multiple sites -> https://github.com/StavrosChryselis -> Feel free to email me at stavrikios@gm...
27,719
https://github.com/EnderNightLord-ChromeBook/zircon-rpi/blob/master/src/sys/component_manager/src/model/tests/storage.rs
Github Open Source
Open Source
BSD-2-Clause
null
zircon-rpi
EnderNightLord-ChromeBook
Rust
Code
3,393
15,586
// Copyright 2019 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. use { crate::{ config::{CapabilityAllowlistKey, CapabilityAllowlistSource}, model::{ rights, testing::{routing_...
25,087
https://github.com/appleple/pretty-scroll/blob/master/src/core/index.js
Github Open Source
Open Source
MIT
2,021
pretty-scroll
appleple
JavaScript
Code
416
1,238
import { before, getScrollTop, getOffset, outerHeight } from '../lib/util'; const assign = require('es6-object-assign').assign; const defaults = { container: 'body', condition: () => true, offsetTop: 0, offsetBottom: 0, breakpoint: 0 }; export default class PrettyScroll { constructor(ele, option) { t...
19,018
https://github.com/ryanRfox/bitshares-ui/blob/master/app/components/Modal/ProposalApproveModal.jsx
Github Open Source
Open Source
MIT
2,021
bitshares-ui
ryanRfox
null
Spoken
718
2,780
import React from "react"; import ZfApi from "react-foundation-apps/src/utils/foundation-api"; import BaseModal from "./BaseModal"; import Translate from "react-translate-component"; import ChainTypes from "../Utility/ChainTypes"; import BindToChainState from "../Utility/BindToChainState"; import AccountSelect from "co...
47,718
https://github.com/jzsplk/Wawaji/blob/master/Wawaji-Server-AppServer/appdemo-server/demo-common-dao/src/main/java/com/netease/mmc/demo/httpdao/vcloud/VcloudServerApiHttpDao.java
Github Open Source
Open Source
MIT
2,018
Wawaji
jzsplk
Java
Code
151
737
package com.netease.mmc.demo.httpdao.vcloud; import javax.annotation.Nonnull; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.TypeReference; imp...
52,934
https://github.com/ptarau/binprolog/blob/master/progs/catch.pl
Github Open Source
Open Source
Apache-2.0
2,023
binprolog
ptarau
Prolog
Code
208
612
/* ISO: catch(Goal,Ball,Do) execute Goal on throw(Term): look for closest catch copy Term undo bindings until call to catch; remove choices unify with Ball if fail: throw Ball again if succeed: call Do, continuation of catch goal catch(Goal,Ball,Do,Cont) ::- c4(Goal,Ball,Do,Cont,Cont) . catch(_,_...
455
https://github.com/ArturSymanovic/SimpleShooter/blob/master/Source/SimpleShooter/ShooterAIController.cpp
Github Open Source
Open Source
MIT
null
SimpleShooter
ArturSymanovic
C++
Code
60
264
// Copyright Artur Symanovic 2020. #include "ShooterAIController.h" #include "Kismet/GameplayStatics.h" #include "ShooterCharacter.h" #include "BehaviorTree/BlackboardComponent.h" void AShooterAIController::BeginPlay() { Super::BeginPlay(); if (AIBehavior != nullptr) { RunBehaviorTree(AIBehavior); auto Playe...
37,961
https://github.com/DrSharky/VTMsite/blob/master/char_creator/charCreatorService.js
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,022
VTMsite
DrSharky
JavaScript
Code
110
410
var app = angular.module("site"); app.service('CharCreatorService', [function(){ this.freebiePts = 15; this.freebieMode = false; this.freebieSpent = 0; this.charPlayer = null; this.charChronicle = null; this.charName = null; this.charConcept = null; this.charNature = null; this.charDemeanor = null;...
41,095
https://github.com/qussarah/declare/blob/master/idea/testData/quickfix/increaseVisibility/privateTopLevelVarWithSetterInFile.before.Main.kt
Github Open Source
Open Source
Apache-2.0
2,022
declare
qussarah
Kotlin
Code
31
65
// "Make '<set-prop>' internal" "true" // ACTION: Make '<set-prop>' public // ERROR: Cannot assign to 'prop': the setter is private in file package test fun foo() { <caret>prop = 20 }
50,036
https://github.com/TonyMasse/LogRhythm.Tools/blob/master/src/Public/LogRhythm/Echo/Get-LrEchoUseCases.ps1
Github Open Source
Open Source
MS-PL
2,020
LogRhythm.Tools
TonyMasse
PowerShell
Code
394
1,100
using namespace System using namespace System.IO using namespace System.Collections.Generic Function Get-LrEchoUseCases { <# .SYNOPSIS Retrieve list of LogRhythm Echo use cases. .DESCRIPTION Get-LrEchoUseCases returns a list of available Echo Use Cases. .PARAMETER Title Retrieve...
17,936
https://github.com/mhome527/lvn/blob/master/java/teach/vietnam/asia/activity/BaseActivity.java
Github Open Source
Open Source
Apache-2.0
null
lvn
mhome527
Java
Code
536
2,038
package teach.vietnam.asia.activity; import android.app.Activity; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.View.OnCli...
23,299
https://github.com/telerik/kendo-ui-core/blob/master/tests/notification/events.js
Github Open Source
Open Source
LicenseRef-scancode-generic-cla, Apache-2.0, LicenseRef-scancode-warranty-disclaimer
2,023
kendo-ui-core
telerik
JavaScript
Code
206
616
(function() { describe("events", function() { beforeEach(function() { }); afterEach(function() { if (notification) { notification.destroy(); } $(".k-notification").each(function(idx, element) { var popup = $(element).data(...
20,348
https://github.com/android/wear-os/blob/master/ComposeAdvanced/app/src/main/java/com/example/android/wearable/composeadvanced/presentation/components/CustomTimeText.kt
Github Open Source
Open Source
Apache-2.0
2,019
wear-os
android
Kotlin
Code
397
1,084
/* * Copyright 2021 The Android Open Source Project * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
36,767
https://github.com/DongminK/jiwoo-openstack/blob/master/src/main/java/jiwoo/openstack/rest/RestHandler.java
Github Open Source
Open Source
Apache-2.0
2,019
jiwoo-openstack
DongminK
Java
Code
164
538
package jiwoo.openstack.rest; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import jiwoo.openstack.common.CommonUtil; import jiwoo.openstack.common.Openstack; public abstract class RestHandler { private Logger logger = LoggerFactory.getLogger(RestHandler.class); protected Openstack openstack; protecte...
46,701
https://github.com/oshatrk/actframework/blob/master/testapps/GHIssues/src/main/java/ghissues/Gh830.java
Github Open Source
Open Source
ISC, Apache-2.0, MIT
2,019
actframework
oshatrk
Java
Code
71
241
package ghissues; import act.controller.annotation.UrlContext; import cn.hutool.http.HttpUtil; import org.osgl.mvc.annotation.PostAction; import java.util.HashMap; import java.util.Map; @UrlContext("830") public class Gh830 extends BaseController { @PostAction("svc/{url}") public String server(String url,St...
28,629
https://github.com/egarciahz/sgen-server/blob/master/packages/core/src/utils/normalizePort.ts
Github Open Source
Open Source
MIT
null
sgen-server
egarciahz
TypeScript
Code
40
94
/** * * @param port target port * @returns {number} */ export function normalizePort(port: string): number { const value: number = parseInt(port, 10); if (!isNaN(value) && value >= 0) { return value; } throw new Error(`Invalid Argument: port= [${port}]`); }
6,402
https://github.com/timmartin19/turbogears/blob/master/turbogears/i18n/tests/test_utils.py
Github Open Source
Open Source
MIT
null
turbogears
timmartin19
Python
Code
22
118
from turbogears.i18n.utils import * def test_get_accept_languages(): assert get_accept_languages("da, en-gb;q=0.8, en;q=0.7") == ["da", "en_GB", "en"] assert get_accept_languages("da;q=0.6, en-gb;q=1.0, en;q=0.7") == ["en_GB", "en", "da"]
46,436
https://github.com/gethuman/pancakes-angular/blob/master/lib/ngapp/state.loader.js
Github Open Source
Open Source
MIT
2,017
pancakes-angular
gethuman
JavaScript
Code
411
1,005
/** * Copyright 2014 GetHuman LLC * Author: Jeff Whelpley * Date: 4/16/14 * * Load given set of states into the UI router $stateProvider */ angular.module('pancakesAngular').provider('stateLoader', function () { var stateCounter = 0; /** * Helper function to get pascal case of a route name * @...
30,864
https://github.com/VictorPuga/bungie-api-dart/blob/master/lib/src/models/destiny_postmaster_transfer_request.dart
Github Open Source
Open Source
MIT, BSD-3-Clause
null
bungie-api-dart
VictorPuga
Dart
Code
36
216
import 'package:json_annotation/json_annotation.dart'; part 'destiny_postmaster_transfer_request.g.dart'; @JsonSerializable() class DestinyPostmasterTransferRequest { @JsonKey(name:'itemReferenceHash') int itemReferenceHash; @JsonKey(name:'stackSize') int stackSize; @JsonKey(name:'itemId') String itemId; @...
12,411
https://github.com/judilsteve/linqjs/blob/master/test/count.test.js
Github Open Source
Open Source
MIT
2,021
linqjs
judilsteve
JavaScript
Code
88
251
import '../count'; import { generate } from './utils'; test('Count: Empty sequence, no predicate, length property', () => { expect([].count()).toBe(0); }); test('Count: Empty sequence, length property', () => { expect([].count(x => x === 42)).toBe(0); }); test('Count: No predicate, length property', () => { ...
22,163
https://github.com/jblancoh/Hospital_Nextjs/blob/master/pages/documentsReceived/index.js
Github Open Source
Open Source
MIT
null
Hospital_Nextjs
jblancoh
JavaScript
Code
267
931
import React, { useEffect, useState } from 'react'; import SwipeableViews from 'react-swipeable-views'; import FormDocument from '@components/FormDocument/FormDocument' import Dashboard from '@components/Dashboard/Dashboard' import TableData from '@components/Table/Table' import Container from '@material-ui/core/Contai...
52,863
https://github.com/MorrowM/JSScript/blob/master/src/Language/JSScript/AST.hs
Github Open Source
Open Source
BSD-3-Clause
2,021
JSScript
MorrowM
Haskell
Code
421
943
module Language.JSScript.AST where import Control.Monad.Trans.Except import Control.Monad.Trans.State import Data.List import qualified Data.Map as Map import Data.Text (Text) import qualified Data.Vector as V type VarTable = Map.Map Ident Any type EvalM = ExceptT Text (StateT VarTable IO) newtype Foreign = Foreign...
7,410
https://github.com/manhhabui/EMagizFlowDiff/blob/master/src/components/views/flowComponents/overviewBar.tsx
Github Open Source
Open Source
CC0-1.0
null
EMagizFlowDiff
manhhabui
TypeScript
Code
74
238
/// <reference path="../../../../typings/index.d.ts" /> import * as React from "react"; import * as I from "./interfaces"; export class OverViewBar extends React.Component<{ propotionWidth: number, data: I.IObject, hightlightStyle: any, version: string }, {}>{ render() { let style = { p...
49,051
https://github.com/williamtheaker/fleet/blob/master/tools/mac/config.mk
Github Open Source
Open Source
MIT
2,020
fleet
williamtheaker
Makefile
Code
66
387
# Kolide hostname. Make sure omit https:// or the path KOLIDE_HOSTNAME=kolide.acme.co # Osquery Enroll Secret. Replace with the secret set in Kolide. ENROLL_SECRET=CHANGEME # Paste your kolide certificate chain below. define KOLIDE_TLS_CERTIFICATE CHANGEME endef # Osquery flag file. No need to modify. define KOLIDE_...
16,874
https://github.com/Fabioiantas/ira-backend/blob/master/database/migrations/2020_06_18_130919_create_licenca_ambientals_table.php
Github Open Source
Open Source
MIT
null
ira-backend
Fabioiantas
PHP
Code
73
507
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateLicencaAmbientalsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('licen...
45,602
https://github.com/Joeyvolcic/AP-CS-labs/blob/master/Java Labs/Unit 3/lab5.java
Github Open Source
Open Source
MIT
2,018
AP-CS-labs
Joeyvolcic
Java
Code
111
325
imimport java.util.Scanner; public class odd { public static void main(String[] args) { int x = 0; int evenCount = 0; int length = 0; int run = 0; int yn =1; while(yn == 1) { System.out.print("Enter a number: "); Scanner myScan = new Scanner(System.in); String y = myScan.nextLine(); length = ...
21,756
https://github.com/crsullivan/Beowulf/blob/master/nodesearch.py
Github Open Source
Open Source
MIT
null
Beowulf
crsullivan
Python
Code
39
121
import pp ppservers = ("*",) # autodiscovery mode on! # create the job server job_server = pp.Server(ppservers=ppservers) print("Starting pp! Local machine has {} workers (Logical Processors) available.".format(job_server.get_ncpus())) for computer, cpu_count in job_server.get_active_nodes().items(): print("Fo...
3,908
https://github.com/dizagn/utm/blob/master/utm/coreComponent/coreComponent.php
Github Open Source
Open Source
BSD-3-Clause
2,019
utm
dizagn
PHP
Code
408
996
<?php /** * UTM Framework * * LICENSE * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://framework.dizagn.com/license * If you did not receive a copy of the license and are unab...
36,746
https://github.com/daniel-s-ingram/CppRobotics/blob/master/Localization/HistogramFilter/robot.cpp
Github Open Source
Open Source
MIT
2,022
CppRobotics
daniel-s-ingram
C++
Code
67
177
#include "common.h" #include "robot.h" vector<int> Robot::move() { int dx = std::rand() % 3 - 1; int dy = std::rand() % 3 - 1; vector<int> d{dx, dy}; x = mod((x + dx), n); y = mod((y + dy), m); return d; } bool Robot::sense(const vector<vector<bool> >& map) { bool Z = map[y][x]; float ...
23,959
https://github.com/lgq2015/App-Store/blob/master/appstore/Base/ASBaseNavController.swift
Github Open Source
Open Source
Apache-2.0
2,019
App-Store
lgq2015
Swift
Code
34
94
// // ASBaseNavController.swift // appstore // // Created by guazhac on 2019/1/26. // Copyright © 2019 st. All rights reserved. // import UIKit class ASBaseNavController: UINavigationController { override func viewDidLoad() { super.viewDidLoad() } }
16,041
https://github.com/ersalye/bicodit-android/blob/master/bicoditandroid/app/src/main/java/com/keksec/bicodit_android/core/data/remote/model/request_content/LoginBody.kt
Github Open Source
Open Source
MIT
2,020
bicodit-android
ersalye
Kotlin
Code
19
57
package com.keksec.bicodit_android.core.data.remote.model.request_content /** * This model holds login form data */ data class LoginBody(val login: String, val password: String)
44,820
https://github.com/luotitan/gopa/blob/master/modules/crawler/pipe/context_key.go
Github Open Source
Open Source
Apache-2.0
2,017
gopa
luotitan
Go
Code
163
491
/* Copyright 2016 Medcl (m AT medcl.net) 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 writing, so...
34,964
https://github.com/MaalejWiem/ClarolineConnect/blob/master/Claroline/vendor/claroline/bundle-recorder/Claroline/BundleRecorder/Handler/BundleHandler.php
Github Open Source
Open Source
MIT
2,014
ClarolineConnect
MaalejWiem
PHP
Code
135
530
<?php namespace Claroline\BundleRecorder\Handler; class BundleHandler extends BaseHandler { private $registeredBundles; public function __construct($bundleFile, \Closure $logger = null) { parent::__construct($bundleFile, $logger); $this->registeredBundles = parse_ini_file($this->targetFil...
44,545
https://github.com/eeue56/fuselibs-public/blob/master/Source/Fuse.Common/Internal/MiniList.uno
Github Open Source
Open Source
MIT
2,017
fuselibs-public
eeue56
null
Spoken
343
988
using Uno; using Uno.Collections; namespace Fuse.Internal { /** A simple list that reduces overhead for objects where 0 or 1 items is far more common than 2+. This does not support `null` items. */ struct MiniList<T> : IList<T> where T : class { object _list; public int Count { get { var list...
53,780
https://github.com/ScalablyTyped/Distribution/blob/master/r/react-select/src/main/scala/typings/reactSelect/distDeclarationsSrcAnimatedPlaceholderMod.scala
Github Open Source
Open Source
MIT
2,023
Distribution
ScalablyTyped
Scala
Code
62
313
package typings.reactSelect import typings.react.mod.ReactElement import typings.react.mod.global.JSX.Element import typings.reactSelect.distDeclarationsSrcComponentsPlaceholderMod.PlaceholderProps import typings.reactSelect.distDeclarationsSrcTypesMod.GroupBase import org.scalablytyped.runtime.StObject import scala.s...
49,703
https://github.com/marios8543/TamaBot/blob/master/models/Pet.py
Github Open Source
Open Source
MIT
null
TamaBot
marios8543
Python
Code
107
470
from TamaBot import client,db from models import Tamas,User async def Pet(owner_id): rs = await db.select(table='pets',fields=['name','gender','hunger','happy','discipline','cycle','weight'],params={'owner':owner_id}) if rs: pet = _Pet() pet.name = rs.name pet.gender = rs.gender ...
18,802
https://github.com/nicktar/modelmapper/blob/master/core/src/test/java/org/modelmapper/bugs/GC19.java
Github Open Source
Open Source
Apache-2.0
2,022
modelmapper
nicktar
Java
Code
165
552
package org.modelmapper.bugs; import static org.testng.Assert.assertEquals; import org.modelmapper.AbstractTest; import org.modelmapper.PropertyMap; import org.testng.annotations.Test; /** * https://github.com/jhalterman/modelmapper/issues/19 */ @Test public class GC19 extends AbstractTest { static class Order {...
46,529
https://github.com/wiredcraft-ops/teleport/blob/master/vendor/github.com/duo-labs/webauthn/protocol/doc.go
Github Open Source
Open Source
Apache-2.0
2,022
teleport
wiredcraft-ops
Go
Code
82
121
// The protocol package contains data structures and validation functionality // outlined in the Web Authnentication specification (https://www.w3.org/TR/webauthn). // The data structures here attempt to conform as much as possible to their definitions, // but some structs (like those that are used as part of validatio...
26,439
https://github.com/ripienaar/go-backplane/blob/master/backplane/auth.go
Github Open Source
Open Source
Apache-2.0
2,021
go-backplane
ripienaar
Go
Code
175
398
package backplane import "regexp" // Authorization lists certificate names that may access the backplane type Authorization struct { // Insecure disables security and allow all callers to do anything Insecure bool `json:"insecure" yaml:"insecure"` // Full is a regex list of certnames that can perform changes like...
5,998
https://github.com/haniot/android-app/blob/master/app/src/main/java/br/edu/uepb/nutes/haniot/activity/settings/Session.java
Github Open Source
Open Source
Apache-2.0
2,021
android-app
haniot
Java
Code
283
865
package br.edu.uepb.nutes.haniot.activity.settings; import android.content.Context; import android.content.SharedPreferences; import br.edu.uepb.nutes.haniot.data.model.User; import br.edu.uepb.nutes.haniot.data.model.dao.UserDAO; /** * Session implementation. * * @author Douglas Rafael <douglas.rafael@nutes.uepb....
23,818
https://github.com/zulham724/ptkonline/blob/master/resources/views/custom_pretest_assessment.blade.php
Github Open Source
Open Source
MIT
null
ptkonline
zulham724
PHP
Code
634
3,388
<link href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900" rel="stylesheet"> <link href="https://cdn.jsdelivr.net/npm/@mdi/font@4.x/css/materialdesignicons.min.css" rel="stylesheet"> <link href="https://cdn.jsdelivr.net/npm/vuetify@2.x/dist/vuetify.min.css" rel="stylesheet"> @extends('voyag...
52,625
https://github.com/xiangyu2038/myscan/blob/master/app/Models/Admin/ScanErrorModel.php
Github Open Source
Open Source
MIT
2,019
myscan
xiangyu2038
PHP
Code
56
223
<?php /** * Created by PhpStorm. * User: Administrator * Date: 2017/8/7 * Time: 10:24 */ namespace App\Models\Admin; use Illuminate\Database\Eloquent\Model; class ScanErrorModel extends BaseModel{ protected $table='ts_scan_error'; protected $guarded=[]; /** * 创建要保存的数组 * @param * @retu...
33,130
https://github.com/kyleneideck/ANDS-Online-Services/blob/master/harvester/src/au/edu/apsr/harvester/dao/HarvestDAO.java
Github Open Source
Open Source
Apache-2.0
2,016
ANDS-Online-Services
kyleneideck
Java
Code
2,038
7,025
/** * Date Modified: $Date: 2009-08-18 12:43:25 +1000 (Tue, 18 Aug 2009) $ * Version: $Revision: 84 $ * * Copyright 2008 The Australian National University (ANU) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obta...
3,180
https://github.com/spaceone-dev/action-dev-console/blob/master/src/lib/fluent-api/inventory/collector-schedule.ts
Github Open Source
Open Source
Apache-2.0
null
action-dev-console
spaceone-dev
TypeScript
Code
183
593
/* eslint-disable camelcase */ import { AddAction, GetAction, ListAction, Resource, ResourceActions, SingleDeleteAction, UpdateAction, } from '@/lib/fluent-api/toolset'; import { CollectorScheduleListResp, CollectorScheduleModel, ScheduleAddParameter, ScheduleDeleteParameter, ScheduleGetParameter, S...
23,137
https://github.com/subhodeep/pyensembler/blob/master/pyensembler/pyensembler.py
Github Open Source
Open Source
MIT
2,018
pyensembler
subhodeep
Python
Code
179
803
import pandas as pd import numpy as np from sklearn.model_selection import cross_val_predict class ensembler(): train = None test = None predictors = None target_column = None base_model_list = None top_model = None predict_prob = None nfold = None seed = None def...
1,029
https://github.com/brandonbraun653/Apollo/blob/master/lib/am335x_sdk/ti/board/board_component.mk
Github Open Source
Open Source
MIT
2,022
Apollo
brandonbraun653
Makefile
Code
959
2,652
# # Copyright (c) 2017, Texas Instruments Incorporated # 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 lis...
55,779
https://github.com/hc3/estoquePHP/blob/master/storage/framework/views/fda775348b4d4cb98bed7277d067ce59923aaf07.php
Github Open Source
Open Source
MIT
null
estoquePHP
hc3
PHP
Code
68
329
<?php $__env->startSection('conteudo'); ?> <h1>Detalhes do Peça: <?php echo e($pecas->descricao); ?></h1> <form > <input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>" /> <div class="form-group"> <label>Descrição:</label> <input name="descricao" disabled class="form-con...
55,295
https://github.com/TodorStamenov/FoodDelivery/blob/master/food-delivery.ui/src/components/Home/HomePage.jsx
Github Open Source
Open Source
MIT
null
FoodDelivery
TodorStamenov
null
Spoken
259
797
import React, { Component, Fragment } from 'react' import { connect } from 'react-redux' import home from '../../api/home' import order from '../../api/order' import actions from '../../utils/actions' import './HomePage.css' import CategoryHomeCard from '../Common/CategoryHomeCard' const hiddenClassName = 'hp-product-...
26,139
https://github.com/azoop/az-react-dditem2resource/blob/master/src/hooks/useDropItemToResource.ts
Github Open Source
Open Source
MIT
null
az-react-dditem2resource
azoop
TypeScript
Code
166
459
import { useDispatch } from 'react-redux' import { useDrop } from 'react-dnd' import { EVENT_DROP_ITEM_TO_RESOURCE } from '../constants' import { createActionProcess, canAddItemToResource } from '../utils' import { useAzDDItem2Resource } from './useAzDDItem2Resource' import { useSend } from './useSend' const useDropIt...
19,543
https://github.com/ktanidis2/Modified_CosmoSIS_for_galaxy_number_count_angular_power_spectra/blob/master/cosmosis-standard-library/likelihood/Makefile
Github Open Source
Open Source
BSD-2-Clause
2,021
Modified_CosmoSIS_for_galaxy_number_count_angular_power_spectra
ktanidis2
Makefile
Code
23
131
include ${COSMOSIS_SRC_DIR}/config/compilers.mk include ${COSMOSIS_SRC_DIR}/config/subdirs.mk SUBDIRS = fgas wmap_shift ifeq ($(WMAPDATA_VERSION),v5_00) SUBDIRS += wmap9 endif ifeq ($(WMAPDATA_VERSION),v4_00) SUBDIRS += wmap7 endif #SUBDIRS+=planck planck2015 planck2015_simple/low_ell
4,117
https://github.com/spatie/laravel-settings/blob/master/src/Migrations/SettingsMigration.php
Github Open Source
Open Source
MIT
2,023
laravel-settings
spatie
PHP
Code
27
91
<?php namespace Spatie\LaravelSettings\Migrations; use Illuminate\Database\Migrations\Migration; abstract class SettingsMigration extends Migration { protected SettingsMigrator $migrator; abstract public function up(); public function __construct() { $this->migrator = app(SettingsMigrator::...
24,158
https://github.com/zhuaiballl/venus_lite/blob/master/pkg/types/specactors/builtin/paych/message6.go
Github Open Source
Open Source
Apache-2.0, MIT
null
venus_lite
zhuaiballl
Go
Code
169
796
package paych import ( "github.com/filecoin-project/go-address" "github.com/filecoin-project/go-state-types/abi" builtin6 "github.com/filecoin-project/specs-actors/v6/actors/builtin" init6 "github.com/filecoin-project/specs-actors/v6/actors/builtin/init" paych6 "github.com/filecoin-project/specs-actors/v6/actors...
23,009
https://github.com/pplu/aws-sdk-perl/blob/master/auto-lib/Paws/OpsWorks/TemporaryCredential.pm
Github Open Source
Open Source
Apache-2.0
2,023
aws-sdk-perl
pplu
Perl
Code
286
614
# Generated by default/object.tt package Paws::OpsWorks::TemporaryCredential; use Moose; has InstanceId => (is => 'ro', isa => 'Str'); has Password => (is => 'ro', isa => 'Str'); has Username => (is => 'ro', isa => 'Str'); has ValidForInMinutes => (is => 'ro', isa => 'Int'); 1; ### main pod documentation be...
11,357
https://github.com/Tim-Burbank/react-native-hyphenate/blob/master/android/src/main/java/com/yunio/hypenateplugin/resource/entity/StringConfig.java
Github Open Source
Open Source
MIT
null
react-native-hyphenate
Tim-Burbank
Java
Code
229
772
package com.yunio.hypenateplugin.resource.entity; import com.google.gson.annotations.SerializedName; public class StringConfig implements IConfig { @SerializedName("feedback_system_login") private String feedbackSystemLogin; private String send; @SerializedName("setting_feedback") private String ...
39,153
https://github.com/heal-research/HEAL.Parsers.DIAdem/blob/master/src/HEAL.Parsers.DIAdem/Tdm/Structures/DDCException.cs
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,020
HEAL.Parsers.DIAdem
heal-research
C#
Code
32
90
using System; namespace HEAL.Parsers.DIAdem.Tdm.Structures { public class DDCException : Exception { public DDCException(int errorCode, string message) : base($"{errorCode}: {message}") { ErrorCode = errorCode; } public int ErrorCode { get; } } }
27,557
https://github.com/jeremymv2/habitat/blob/master/components/pkg-export-docker/src/util.rs
Github Open Source
Open Source
Apache-2.0
2,019
habitat
jeremymv2
Rust
Code
277
658
// Copyright (c) 2016-2017 Chef Software Inc. and/or applicable contributors // // 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 // // Unl...
5,833
https://github.com/firebug/devtools-extension-examples/blob/master/HelloReact/data/app/tabs.js
Github Open Source
Open Source
BSD-3-Clause
2,020
devtools-extension-examples
firebug
JavaScript
Code
108
339
/* See license.txt for terms of usage */ define(function(require, exports, module) { // Require external modules var $ = require("jquery"); var React = require("react"); var ReactBootstrap = require("react-bootstrap"); // Shortcuts var TabbedArea = React.createFactory(ReactBootstrap.TabbedArea); var TabPane = React....
31,805
https://github.com/aweiteka/openshift-ansible-contrib/blob/master/reference-architecture/osp-cli/.gitignore
Github Open Source
Open Source
LicenseRef-scancode-warranty-disclaimer, Apache-2.0
2,017
openshift-ansible-contrib
aweiteka
Ignore List
Code
6
28
user-data REFARCH_ENV keys OSEv3.yml inventory rhn_credentials
22,102
https://github.com/peckadesign/pd.ajax/blob/master/extensions/inpCombined.ajax.js
Github Open Source
Open Source
MIT
null
pd.ajax
peckadesign
JavaScript
Code
104
461
(function($, undefined) { /** * @author Radek Šerý * * Inicializace .inp-combined elementů */ $.nette.ext('inpCombined', { init: function() { var snippetsExt = this.ext('snippets', true); var ext = this; snippetsExt.after(function($el) { $el.find(ext.selector + '__input') .trigger('focu...
16,527
https://github.com/enixdark/featurehub/blob/master/sdks/typescript/client-typescript-core/app/feature_state_holders.ts
Github Open Source
Open Source
Apache-2.0
null
featurehub
enixdark
TypeScript
Code
754
2,168
import { FeatureListener, FeatureStateHolder } from './feature_state'; import { FeatureState, FeatureValueType } from './models/models'; import { FeatureHubRepository } from './client_feature_repository'; export class InterceptorValueMatch { public value: string | undefined; constructor(value: string) { this....
35,528
https://github.com/virajs/aws-sdk-net/blob/master/AWSSDK_DotNet35/Amazon.SimpleWorkflow/Model/Internal/MarshallTransformations/WorkflowExecutionStartedEventAttributesUnmarshaller.cs
Github Open Source
Open Source
Apache-2.0
2,019
aws-sdk-net
virajs
C#
Code
326
1,333
/* * Copyright 2010-2013 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 "l...
33,725
https://github.com/scottidler/otto-old/blob/master/src/cli/mod.rs
Github Open Source
Open Source
MIT
2,020
otto-old
scottidler
Rust
Code
9
16
pub mod error; pub mod token; pub mod parser;
48,582
https://github.com/Li357/walkie-talkies/blob/master/main.h
Github Open Source
Open Source
MIT
null
walkie-talkies
Li357
C
Code
138
755
#ifndef MAIN_H #define MAIN_H #include "app_bt_utils.h" #include "wiced_bt_stack.h" #include "cycfg_bt_settings.h" #include "cycfg_gap.h" #include "cycfg_gatt_db.h" typedef void (*pfn_free_buffer_t)(uint8_t *); /* Callback function for Bluetooth stack management type events */ static wiced_bt_dev_status_t app_bt_man...
33,472
https://github.com/lan-mao/ComputerWorld/blob/master/Study_2021/Study_2021-11/SpringIoC-Demo1/src/test/java/top/lanmao/study202111/springioc/demo1/bean/BeanTest.java
Github Open Source
Open Source
MulanPSL-2.0, LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-mulanpsl-2.0-en
2,023
ComputerWorld
lan-mao
Java
Code
180
833
package top.lanmao.study202111.springioc.demo1.bean; import lombok.SneakyThrows; import org.junit.jupiter.api.Test; import org.springframework.context.support.ClassPathXmlApplicationContext; import java.lang.reflect.Field; import java.lang.reflect.Method; public class BeanTest { @Test void testBean() { ...
38,220
https://github.com/dna2fork/zoekt/blob/master/contrib/analysis/project.go
Github Open Source
Open Source
Apache-2.0
2,022
zoekt
dna2fork
Go
Code
3,828
11,811
package analysis import ( "os" "io" "log" "fmt" "bufio" "path/filepath" "strings" "strconv" "regexp" "context" "time" "github.com/google/zoekt" "github.com/google/zoekt/contrib" ) var ( P4_BIN string GIT_BIN string CTAGS_BIN string ) func init() { P4_BIN = os.Getenv("ZOEKT_P4_BIN") GIT_BIN = os.Ge...
5,062
https://github.com/charlesportwoodii/yii2-api/blob/master/api/actions/PostmanAuthAction.php
Github Open Source
Open Source
BSD-3-Clause
2,022
yii2-api
charlesportwoodii
PHP
Code
128
431
<?php namespace api\actions; use yrc\rest\Action; use yrc\web\Response; use yii\helpers\Json; use Yii; use DateTime; /** * @class PostmanAuthAction * Helper to assist with generation the necessary auth headers for postman */ class PostmanAuthAction extends Action { /** * @param array $params */ ...
54,245
https://github.com/harayoki/BitmapFontExporter/blob/master/WebSample/src/MainSprite.as
Github Open Source
Open Source
Apache-2.0
2,016
BitmapFontExporter
harayoki
null
Spoken
252
1,192
package { import flash.display.Stage; import flash.display.StageAlign; import flash.display.StageScaleMode; import flash.geom.Rectangle; import starling.core.Starling; import starling.display.Sprite; import starling.events.Event; import starling.text.TextField; import starling.utils.AssetManager; import st...
43,557
https://github.com/qiwzhang/envoy/blob/master/source/common/json/config_schemas.cc
Github Open Source
Open Source
Apache-2.0
null
envoy
qiwzhang
C++
Code
335
1,297
#include "config_schemas.h" const std::string Json::Schema::LISTENER_SCHEMA(R"EOF( { "$schema": "http://json-schema.org/schema#", "definitions": { "ssl_context" : { "type" : "object", "properties" : { "cert_chain_file" : {"type" : "string"}, "private_key_file": {"typ...
56,397
https://github.com/albertosaurus/ach_builder/blob/master/lib/ach/file/header.rb
Github Open Source
Open Source
MIT
2,014
ach_builder
albertosaurus
Ruby
Code
117
405
module ACH # An ACH::File::Header record is the first record of every ACH::File # (in case the ACH::File::TransmissionHeader record is absent). # # == Fields: # # * record_type # * priority_code # * immediate_dest # * immediate_origin # * date # * time # * file_id_modifier # * record_size # ...
727
https://github.com/sjain28/Logo-IDE/blob/master/src/parser/Environment.java
Github Open Source
Open Source
MIT
2,017
Logo-IDE
sjain28
Java
Code
86
293
package parser; import java.util.List; import java.util.Map; import commands.UserDefinedFunction; import turtle.Agent; import value.Value; public interface Environment { public void setParent(Environment parent); public Environment getParent(); public Environment makeChild(); public void setVariable(String v...
28,988
https://github.com/Alquipo/pokedex-nextjs-pwa/blob/master/src/components/Modal/test.tsx
Github Open Source
Open Source
MIT
2,021
pokedex-nextjs-pwa
Alquipo
TypeScript
Code
35
102
import { render } from '@testing-library/react' import Modal from '.' describe('<Modal />', () => { it('should render the heading', () => { render(<Modal showModal={true} />) // expect(screen.getByRole('heading', { name: /Modal/i })).toBeInTheDocument() // expect(container.firstChild).toMatchSnapshot() ...
53,470
https://github.com/Anton3/kotlin-vk-api/blob/master/vk-api-generated/src/main/kotlin/name/anton3/vkapi/generated/newsfeed/methods/NewsfeedGetListsExtended.kt
Github Open Source
Open Source
MIT
2,020
kotlin-vk-api
Anton3
Kotlin
Code
58
257
@file:Suppress("unused", "MemberVisibilityCanBePrivate", "SpellCheckingInspection") package name.anton3.vkapi.generated.newsfeed.methods import com.fasterxml.jackson.module.kotlin.jacksonTypeRef import name.anton3.vkapi.generated.newsfeed.objects.ListFull import name.anton3.vkapi.method.UserMethod import name.anton3....
23,907
https://github.com/kajij/kajij.github.io/blob/master/CircularMotion/main.js
Github Open Source
Open Source
MIT
2,021
kajij.github.io
kajij
JavaScript
Code
681
2,140
import * as helpers from "../Utils/helpers.js"; import Vector2D from "../Utils/Vector2D.js"; import Circle from "./circle.js"; // #region global variables var canvasHeight = 600; var canvasWidth = 600; const whiteLineStrokeStyle = "rgba(255, 255, 255, 1.0)"; var fadeAway = false; var liveResetCanvas = false; var showW...
31,086
https://github.com/wwalpha/pocket-cards/blob/master/infrastructure/terraform/services/athena.tf
Github Open Source
Open Source
Apache-2.0
2,023
pocket-cards
wwalpha
HCL
Code
59
198
# ----------------------------------------------------------------------------------------------------- # AWS Athena Workgroup # ----------------------------------------------------------------------------------------------------- resource "aws_athena_workgroup" "this" { name = "${local.project_name}-workgroup" co...
13,768
https://github.com/BogdanPasterak/map/blob/master/public/src/Beltany Stone Circle.js
Github Open Source
Open Source
MIT
2,020
map
BogdanPasterak
JavaScript
Code
145
514
{ "results" : [ { "address_components" : [ { "long_name" : "Tops", "short_name" : "Tops", "types" : [ "neighborhood", "political" ] }, { "long_name" : "Raphoe", "short_name" : "Raphoe", ...
10,052
https://github.com/epicfaace/sanskrit/blob/master/dcs/data/conllu/files/Atharvaveda (Śaunaka)/Atharvaveda (Śaunaka)-0378-ŚS, 7, 64-11665.conllu
Github Open Source
Open Source
CC-BY-4.0
2,021
sanskrit
epicfaace
null
Spoken
450
1,662
## text: Atharvaveda (Śaunaka) ## text_id: 464 ## chapter: ŚS, 7, 64 ## chapter_id: 11665 # text_line: idaṃ yat kṛṣṇaḥ śakunir abhiniṣpatann apīpatat # text_line_id: 608833 # text_line_counter: 1 # text_line_subcounter: 1 1 idaṃ idam _ None Case=Acc|Number=1|Gender=Neut _ _ _ _ 37876 idam _ 2 yat yad _ None Case=Acc|N...
20,426
https://github.com/theanh2511/Qsr_kiosk_I/blob/master/database/migrations/2018_11_14_021829_create_f_discount_table.php
Github Open Source
Open Source
MIT
null
Qsr_kiosk_I
theanh2511
PHP
Code
77
411
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateFDiscountTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('f_discount', ...
4,360
https://github.com/InfluxOW/laracasts-project-3/blob/master/app/Thread.php
Github Open Source
Open Source
MIT
2,021
laracasts-project-3
InfluxOW
PHP
Code
382
1,541
<?php namespace App; use App\Traits\Subscribable; use Carbon\Carbon; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Cache; use Illuminate\Support\Str; use Laravel\Scout\Searchable; use Overtrue\LaravelFavorite\Trait...
175
https://github.com/leaderdevops/SecureCodingDojo/blob/master/build/insecureinc/runInsecureInc.sh
Github Open Source
Open Source
ECL-2.0, Apache-2.0
2,021
SecureCodingDojo
leaderdevops
Shell
Code
9
48
docker run -p 8080:8080 \ -e CHALLENGE_MASTER_SALT=$CHALLENGE_MASTER_SALT \ securecodingdojo/insecure.inc
25,727
https://github.com/shouc/corbfuzz/blob/master/php/ext/gd/tests/bug79676.phpt
Github Open Source
Open Source
GD, BSD-3-Clause, BSD-4-Clause-UC, ISC, IJG, Zlib, LicenseRef-scancode-public-domain, LicenseRef-scancode-other-permissive, TCL, BSD-2-Clause, OLDAP-2.8, PHP-3.01, MIT, Apache-2.0
2,021
corbfuzz
shouc
PHP
Code
154
389
--TEST-- Bug #79676 (imagescale adds black border with IMG_BICUBIC) --SKIPIF-- <?php if (!extension_loaded('gd')) die('skip gd extension not available'); ?> --FILE-- <?php function test($image, $desc) { echo "$desc - Test Result: ", (imagecolorat($image, imagesx($image) - 1 , imagesy($image) - 1) != 0x00000...
5,908
https://github.com/monnetproject/kap/blob/master/gelato/src/test/scala/eu/monnetproject/gelato/GelatoTest.scala
Github Open Source
Open Source
BSD-3-Clause
2,016
kap
monnetproject
Scala
Code
2,141
8,694
/********************************************************************************** * Copyright (c) 2011, Monnet Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributi...
33,306
https://github.com/CodeSwifterGit/adwenture-works/blob/master/src/AdventureWorks.Web.Api/ClientApp/src/app/models/data/entities/production/product-model-product-description-culture/product-model-product-description-culture-summary.ts
Github Open Source
Open Source
Unlicense
null
adwenture-works
CodeSwifterGit
TypeScript
Code
5
13
export interface IProductModelProductDescriptionCultureSummary { }
1,991
https://github.com/DEPICTIVE/depictive/blob/master/depictive/models/hill.py
Github Open Source
Open Source
Apache-2.0
2,020
depictive
DEPICTIVE
Python
Code
176
580
import numpy as np from scipy.optimize import fmin class fit: ''' Infer the Hill model parameters from data: Hill pars: 0) amplitude 1) ic50 2) Hill coefficient 3) background ''' def __init__(self, x, y, max_iter=5e4, max_fun=5e4, disp=False, ko=False): self.max_...
56,227
https://github.com/GDXN/CoActionOS-Public/blob/master/CoActionOS/src/hwpl/stm32f/adc_dev.c
Github Open Source
Open Source
Apache-2.0
2,014
CoActionOS-Public
GDXN
C
Code
688
2,522
/* Copyright 2011; All Rights Reserved * Please see http://www.coactionos.com/license.html for * licensing information. */ #include <errno.h> #include <fcntl.h> #include "hwpl/types.h" #include "hwpl/adc.h" #include "dev/gpio.h" #include "hwpl/debug.h" #include "hwpl/core.h" #include "gpio_flags.h" struct pin_cf...
8,533
https://github.com/MRPT/mrpt/blob/master/.editorconfig
Github Open Source
Open Source
BSD-3-Clause
2,023
mrpt
MRPT
null
Spoken
10
31
root = true [*.{cpp,h,hpp}] indent_style = tab indent_size = 4
19,366
https://github.com/TorqueGameEngines/Torque2D/blob/master/engine/source/graphics/bitmapBmp.cc
Github Open Source
Open Source
MIT
2,023
Torque2D
TorqueGameEngines
C++
Code
700
2,451
//----------------------------------------------------------------------------- // Copyright (c) 2013 GarageGames, LLC // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to // deal in the Software without restrictio...
8,865
https://github.com/Tatamo/japari-watch/blob/master/src/scripts/game/effects.ts
Github Open Source
Open Source
BSD-3-Clause
2,021
japari-watch
Tatamo
TypeScript
Code
440
2,008
import * as PIXI from "pixi.js"; export class EffectManager extends PIXI.Container { private score_label: PIXI.Sprite; private miss_label: PIXI.Sprite; private game_start_label: Effect; private game_over_label: Effect; private arai_san_label: Effect; private fennec_label: Effect; private catch_effect: Array<Eff...
16,121
https://github.com/aberja/buildah/blob/master/vendor/github.com/seccomp/libseccomp-golang/Makefile
Github Open Source
Open Source
Apache-2.0
2,022
buildah
aberja
Makefile
Code
102
224
# libseccomp-golang .PHONY: all check check-build check-syntax fix-syntax vet test lint all: check-build check: vet test check-build: go build check-syntax: gofmt -d . fix-syntax: gofmt -w . vet: go vet -v # Previous bugs have made the tests freeze until the timeout. Golang default # timeout for tests is 10...
1,231
https://github.com/tuannha1999/LVTN-WebGiay/blob/master/webgiay1.sql
Github Open Source
Open Source
MIT
2,021
LVTN-WebGiay
tuannha1999
SQL
Code
4,852
20,148
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Aug 21, 2021 at 07:55 AM -- Server version: 10.4.10-MariaDB -- PHP Version: 7.3.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SE...
34,051
https://github.com/osmanys/algorithm-design-manual-skiena/blob/master/src/net.egork/geometry/Point.java
Github Open Source
Open Source
Apache-2.0
2,020
algorithm-design-manual-skiena
osmanys
Java
Code
367
862
package net.egork.geometry; import net.egork.io.InputReader; /** * @author Egor Kulikov (kulikov@devexperts.com) */ public class Point { public static final Point ORIGIN = new Point(0, 0); public final double x; public final double y; @Override public String toString() { return "(" + x ...
1,115