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/cyucelen/wirect/blob/master/api/router.go | Github Open Source | Open Source | MIT | 2,019 | wirect | cyucelen | Go | Code | 163 | 567 | package api
import (
"net/http"
"github.com/cyucelen/wirect/model"
"github.com/labstack/echo"
)
type RouterDatabase interface {
CreateRouter(router *model.Router) error
GetRoutersBySniffer(snifferMAC string) []model.Router
}
type RouterAPI struct {
DB RouterDatabase
}
func (r *RouterAPI) CreateRouters(ctx ec... | 34,024 |
https://github.com/vteco/cfin/blob/master/lib/migration/doctrine/1381333357_version26.php | Github Open Source | Open Source | Apache-2.0 | null | cfin | vteco | PHP | Code | 61 | 191 | <?php
/**
* This class has been auto-generated by the Doctrine ORM Framework
*/
class Version26 extends Doctrine_Migration_Base
{
public function up()
{
$this->changeColumn('news', 'flag', 'boolean', '25', array(
'default' => '0',
));
$this->changeColumn('news_version... | 35,594 |
https://github.com/cms-nanoAOD/cmssw/blob/master/FWCore/Utilities/test/isFinite_t.cpp | Github Open Source | Open Source | Apache-2.0 | 2,020 | cmssw | cms-nanoAOD | C++ | Code | 72 | 451 | #include "FWCore/Utilities/interface/isFinite.h"
#include <limits>
#include <cmath>
#include <cstdlib>
#include <cassert>
int main(int n, const char**) {
using namespace edm;
typedef long double LD;
double zero = atof("0");
assert(isFinite(double(0)));
assert(isFinite(float(0)));
assert(isFinite(double(... | 2,025 |
https://github.com/mongodb-js/compass-databases-ddl/blob/master/src/modules/databases.spec.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | compass-databases-ddl | mongodb-js | JavaScript | Code | 487 | 1,556 | import reducer, {
loadDatabases,
sortDatabases,
LOAD_DATABASES,
SORT_DATABASES
} from 'modules/databases';
const SPOTIFY = {
_id: 'spotify',
collections: [ 1, 2, 3, 4],
index_count: 10,
storage_size: 15
};
const SOUNDCLOUD = {
_id: 'soundcloud',
collections: [ 1 ],
index_count: 15,
storage_size... | 8,493 |
https://github.com/abc661234/TrainDisplay/blob/master/20200507TrainDisplay.sln | Github Open Source | Open Source | MIT | 2,020 | TrainDisplay | abc661234 | null | Spoken | 80 | 451 |
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.29709.97
MinimumVisualStudioVersion = 10.0.40219.1
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "20200507TrainDisplay", "20200507TrainDisplay\20200507TrainDisplay.vbproj", "{383D9E29-0418-4793-AED1... | 9,962 |
https://github.com/divol/arclatvedas/blob/master/arclatvedas/TargetController.swift | Github Open Source | Open Source | MIT, Unlicense | null | arclatvedas | divol | Swift | Code | 1,395 | 5,162 | //
// ViewController.swift
// cropcircles
//
// Created by divol on 26/05/2015.
// Copyright (c) 2015 jack. All rights reserved.
//
import UIKit
import CoreData
import CoreDataProxy
class TargetController: UIViewController,DCDMagnifyingGlassViewDelegate ,UIPickerViewDataSource,UIPickerViewDelegate,DataSourceChang... | 27,348 |
https://github.com/igoriochek/eshopcode/blob/master/app/Exports/ProductsExport.php | Github Open Source | Open Source | MIT | null | eshopcode | igoriochek | PHP | Code | 51 | 229 | <?php
namespace App\Exports;
use App\Models\Product;
use Maatwebsite\Excel\Concerns\FromCollection;
use Maatwebsite\Excel\Concerns\WithHeadings;
class ProductsExport implements FromCollection, WithHeadings
{
public function headings(): array
{
return [
'price',
'count',
... | 5,182 |
https://github.com/paulcam206/WindowsCommunityToolkit/blob/master/Microsoft.Toolkit.Uwp.UI.Controls/Eyedropper/EyedropperToolButton.cs | Github Open Source | Open Source | MIT | 2,020 | WindowsCommunityToolkit | paulcam206 | C# | Code | 601 | 2,251 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Threading.Tasks;
using Windows.Foundation;
using Windows.UI.Core;
using Windows.UI.Xaml;
... | 47,665 |
https://github.com/igiu1988/iOS13.4.1-Runtime-Headers/blob/master/PrivateFrameworks/PhotosUICore.framework/PXPhotosDetailsSettings.h | Github Open Source | Open Source | MIT | 2,020 | iOS13.4.1-Runtime-Headers | igiu1988 | Objective-C | Code | 496 | 2,446 | /* Generated by EzioChiu
Image: /System/Library/PrivateFrameworks/PhotosUICore.framework/PhotosUICore
*/
@interface PXPhotosDetailsSettings : PXSettings {
double _addToTabDuration;
double _addToTabEndRotation;
double _addToTabFadeOutDelay;
double _addToTabOpacity;
double _addToTabRotationD... | 51,870 |
https://github.com/senecajs/seneca-auth/blob/master/test/do_respond_login.test.js | Github Open Source | Open Source | MIT | 2,019 | seneca-auth | senecajs | JavaScript | Code | 203 | 699 | 'use strict'
var Assert = require('assert')
var agent
var Lab = require('lab')
var lab = exports.lab = Lab.script()
var suite = lab.suite
var test = lab.test
var before = lab.before
var Util = require('./util.js')
var options = {
redirect: {
login: {
always: true,
fail: '/fail',
win: '/win'
... | 27,878 |
https://github.com/KevinTCoughlin/rushstack/blob/master/apps/heft/src/plugins/WebpackWarningPlugin.ts | Github Open Source | Open Source | LicenseRef-scancode-generic-cla, MIT | 2,021 | rushstack | KevinTCoughlin | TypeScript | Code | 310 | 947 | // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
// See LICENSE in the project root for license information.
import { FileSystem } from '@rushstack/node-core-library';
import { HeftSession } from '../pluginFramework/HeftSession';
import { HeftConfiguration } from '../config... | 4,901 |
https://github.com/michaelmurad/redimiter/blob/master/src/redimiter.ts | Github Open Source | Open Source | MIT | null | redimiter | michaelmurad | TypeScript | Code | 643 | 1,405 | import { Redis as RedisClient } from "ioredis";
import { NextFunction, Request, Response } from "express";
import { nonOverdrive, overDrive } from "./rateLimiter";
import { nonOverdrivePromise, overdrivePromise } from "./rateLimiterPromise";
import {
rLPathErr,
rLExpErr,
rLLimitErr,
rLPActionErr,
rLPUsernameE... | 14,678 |
https://github.com/carnells/terraform-iac-usecases/blob/master/terraform-onboarding/demo-import/ec2.tf | Github Open Source | Open Source | Apache-2.0 | 2,021 | terraform-iac-usecases | carnells | HCL | Code | 30 | 140 | resource "aws_instance" "myec2" {
ami = "ami-0b1e534a4ff9019e0"
instance_type = "t2.micro"
vpc_security_group_ids = ["sg-5dee7129","sg-061c527def3061da2"]
key_name = "tf-20200805"
subnet_id = "subnet-3f9f5877"
tags = {
Name = "test"
Env = "Prod"
... | 12,444 |
https://github.com/kelvinjjwong/ImageDocker/blob/master/ImageDocker/Data/DAO/Interface/PlaceDaoInterface.swift | Github Open Source | Open Source | MIT | 2,020 | ImageDocker | kelvinjjwong | Swift | Code | 60 | 190 | //
// PlaceDaoInterface.swift
// ImageDocker
//
// Created by Kelvin Wong on 2020/3/18.
// Copyright © 2020 nonamecat. All rights reserved.
//
import Foundation
protocol PlaceDaoInterface {
func getOrCreatePlace(name:String, location:Location) -> ImagePlace
func getPlace(name:String) -> ImagePla... | 23,114 |
https://github.com/dongshengfan/QFramework/blob/master/Unity2018DemoParkour/Assets/QFramework/Demo/ArtRes/Prefabs/Stage/Stage1/component6.prefab.meta | Github Open Source | Open Source | MIT | 2,021 | QFramework | dongshengfan | Unity3D Asset | Code | 12 | 67 | fileFormatVersion: 2
guid: 0164fd6ea7a6f4f8e80c2119c685a200
timeCreated: 1452582679
licenseType: Free
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:
| 35,051 |
https://github.com/ezmaxinc/eZmax-SDK-c/blob/master/api/ObjectEzsignfolderAPI.c | Github Open Source | Open Source | curl, MIT | null | eZmax-SDK-c | ezmaxinc | C | Code | 4,858 | 22,130 | #include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
#include "ObjectEzsignfolderAPI.h"
#define MAX_NUMBER_LENGTH 16
#define MAX_BUFFER_LENGTH 4096
#define intToStr(dst, src) \
do {\
char dst[256];\
snprintf(dst, 256, "%ld", (long int)(src));\
}while(0)
// Functions for enum EORDERBY for ObjectEzsign... | 49,335 |
https://github.com/doep-manual/CMON-App/blob/master/cmon-app-portlet/docroot/WEB-INF/service/org/oep/cmon/dao/tlct/service/LichSuGiayToDinhKemLocalServiceUtil.java | Github Open Source | Open Source | Apache-2.0 | 2,015 | CMON-App | doep-manual | Java | Code | 1,601 | 4,744 | /**
* Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later... | 12,583 |
https://github.com/mazik/corona/blob/master/src/subpage/main.js | Github Open Source | Open Source | MIT | 2,020 | corona | mazik | JavaScript | Code | 18 | 54 | import Vue from "vue";
import Settings from "./SettingsWindow.vue";
Vue.config.productionTip = false;
new Vue({
render: h => h(Settings)
}).$mount("#app");
| 33,900 |
https://github.com/ryanhadfield/SWAPIFY/blob/master/models/users.js | Github Open Source | Open Source | MIT | null | SWAPIFY | ryanhadfield | JavaScript | Code | 51 | 156 | const mongoose = require("mongoose");
const Schema = mongoose.Schema;
const usersSchema = new mongoose.Schema({
email: {
type: String,
},
firstName: {
type: String,
},
lastName: {
type: String,
},
image: {
type: String
},
googleId: {
type: String
},
listedItems: [... | 11,614 |
https://github.com/stefanbrittain/central-bookmarks/blob/master/services/spec/calculator-spec.js | Github Open Source | Open Source | MIT | null | central-bookmarks | stefanbrittain | JavaScript | Code | 34 | 89 | /*global describe: false, it: false, expect: false */
"use strict";
var calculator = require("../public/calculator");
describe("multiplication", function () {
it("should multiply 2 and 3", function () {
var product = calculator.multiply(2, 3);
expect(product).toBe(6);
});
});
| 23,685 |
https://github.com/StormtideGame/stormtide-core/blob/master/test/generateId.js | Github Open Source | Open Source | MIT | null | stormtide-core | StormtideGame | JavaScript | Code | 63 | 192 | // @flow
import { expect } from "chai";
import { generateId } from "stormtide-core";
describe("generateId", () => {
it("should generate string IDs", () => {
const id = generateId();
expect(id).to.be.a("string");
expect(id).to.have.length.of.at.least(1);
});
it("should generate unique IDs", () => {
const ... | 10,349 |
https://github.com/palash211/Algorithm/blob/master/binarySearch.cpp | Github Open Source | Open Source | MIT | null | Algorithm | palash211 | C++ | Code | 108 | 371 | //binary Search implementation only for sorted array
//time complexity is O(logn)
#include<iostream>
using namespace std;
//recursively use divide and conquer strategy as after every recursion
//array is half of the original size
int binarySearch(int a[],int low,int high,int key){
int mid;
if(high<low)
return ... | 3,603 |
https://github.com/lumamaia/collab-activity/blob/master/src/com/app/colaborativa/Receiver.java | Github Open Source | Open Source | Apache-2.0 | 2,015 | collab-activity | lumamaia | Java | Code | 40 | 197 | package com.app.colaborativa;
import utils.PullParse;
import com.app.colaborativa.atividade.Feed;
import com.parse.ParsePushBroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
public class Receiver extends ParsePushBroadcastReceiver {
@Override
public void o... | 7,042 |
https://github.com/cafjs/caf_sim/blob/master/start.js | Github Open Source | Open Source | Apache-2.0 | 2,014 | caf_sim | cafjs | JavaScript | Code | 37 | 125 | #!/usr/bin/env node
var sim = require('./index.js');
if (process.argv.length != 5) {
console.log('Error: Wrong number of arguments: node start.js <localPort>' +
' <remoteHost> <remotePort>');
} else {
var config = {remoteHost: process.argv[3],
remotePort: parseInt(process.argv[... | 28,501 |
https://github.com/harshp8l/deep-learning-lang-detection/blob/master/data/test/scala/c28fcf66da3bb459d57e5e290ae35cc5095f6aeeLoader.scala | Github Open Source | Open Source | MIT | 2,021 | deep-learning-lang-detection | harshp8l | Scala | Code | 505 | 1,525 | package ch.epfl.data
package legobase
package storagemanager
import utils.Utilities._
// FIXME just to cheat on auto-lifter
trait Loader {
}
object Loader {
import queryengine.TPCHRelations._
def loadString(size: Int, s: K2DBScanner) = {
val NAME = new Array[Byte](size)
s.next(NAME)
LBString(NAME.fi... | 53,868 |
https://github.com/evilcomputer12/room-monitoring-android/blob/master/php-mysql/filter.php | Github Open Source | Open Source | MIT | null | room-monitoring-android | evilcomputer12 | PHP | Code | 158 | 565 | <?php
//filter.php
$servername = "localhost";
// REPLACE with your Database name
$dbname = "";
// REPLACE with Database user
$username = "";
// REPLACE with Database user password
$password = "";
if(isset($_POST["from_date"], $_POST["to_date"]))
{
$connect = mysqli_connect($servername, $username, $p... | 10,910 |
https://github.com/IOR-BIC/ALBA/blob/master/Testing/Gui/11_testTree/testTreeLogic.cpp | Github Open Source | Open Source | Apache-2.0, BSD-3-Clause | 2,021 | ALBA | IOR-BIC | C++ | Code | 335 | 1,473 | /*=========================================================================
Program: ALBA (Agile Library for Biomedical Applications)
Module: testTreeLogic
Authors: Silvano Imboden
Copyright (c) BIC
All rights reserved. See Copyright.txt or
This software is distributed WITHOUT ANY WARRANTY; without even
the... | 29,169 |
https://github.com/Mine77/ckb/blob/master/rpc/src/server.rs | Github Open Source | Open Source | MIT | 2,019 | ckb | Mine77 | Rust | Code | 694 | 3,115 | use ckb_chain::chain::ChainController;
use ckb_core::block::Block;
use ckb_core::cell::CellProvider;
use ckb_core::header::{BlockNumber, Header};
use ckb_core::transaction::{OutPoint, Transaction};
use ckb_miner::{AgentController, BlockTemplate};
use ckb_network::NetworkService;
use ckb_pool::txs_pool::TransactionPoolC... | 8,527 |
https://github.com/mkubliniak/XChange/blob/master/xchange-examples/src/main/java/org/knowm/xchange/examples/koinim/marketdata/KoinimTickerDemo.java | Github Open Source | Open Source | MIT | 2,021 | XChange | mkubliniak | Java | Code | 120 | 460 | package org.knowm.xchange.examples.koinim.marketdata;
import java.io.IOException;
import org.knowm.xchange.Exchange;
import org.knowm.xchange.currency.CurrencyPair;
import org.knowm.xchange.dto.marketdata.Ticker;
import org.knowm.xchange.examples.koinim.KoinimDemoUtils;
import org.knowm.xchange.koinim.dto.marketdata.... | 9,334 |
https://github.com/mhor-music/php-waveform-generator/blob/master/test/Test/WaveformGenerator/Command/WaveformGeneratorCommandTest.php | Github Open Source | Open Source | MIT | 2,018 | php-waveform-generator | mhor-music | PHP | Code | 15 | 52 | <?php
namespace Test\WaveformGenerator\Command;
/**
* Class WaveformGeneratorCommandTest
* @package Test\WaveformGenerator\Command
*/
class WaveformGeneratorCommandTest
{
}
| 35,226 |
https://github.com/masoudsiam/Chat-Application/blob/master/ChatApplication/User_SaveLoad.cs | Github Open Source | Open Source | MIT | null | Chat-Application | masoudsiam | C# | Code | 79 | 274 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.Serialization.Formatters.Binary;
using System.Text;
using System.Threading.Tasks;
namespace ChatApplication
{
public class User_SaveLoad
{
public void SaveUser(List<User> users)
{
... | 30,278 |
https://github.com/zaetrik/omicron/blob/master/src/core/src/http/handler/handler.response.ts | Github Open Source | Open Source | MIT | 2,021 | omicron | zaetrik | TypeScript | Code | 389 | 1,053 | import { HttpRequest, HttpResponse, ContentType } from "../../http.interface";
import * as E from "fp-ts/lib/Either";
import { pipe } from "fp-ts/lib/pipeable";
import { RouteHandlerFn, RouteResponse, ErrorRouteHandlerFn } from "../router/router.interface";
import { IO } from "fp-ts/lib/IO";
import { isRouteResponse, t... | 49,110 |
https://github.com/hushilin/iOS1351Headers/blob/master/System/Library/Frameworks/MessageUI.framework/MFComposeSubjectView.h | Github Open Source | Open Source | MIT | 2,021 | iOS1351Headers | hushilin | Objective-C | Code | 267 | 1,263 | /*
* This header is generated by classdump-dyld 1.5
* on Friday, April 30, 2021 at 11:36:59 AM Mountain Standard Time
* Operating System: Version 13.5.1 (Build 17F80)
* Image Source: /System/Library/Frameworks/MessageUI.framewor... | 46,869 |
https://github.com/pupper68k/arcusplatform/blob/master/platform/arcus-containers/notification-services/src/dist/templates/alarm.smoke.dispatched-apns.hbs | Github Open Source | Open Source | Apache-2.0 | null | arcusplatform | pupper68k | null | Spoken | 15 | 33 | {
"body": "The Fire Dept. has been notified of a Smoke Alarm at {{{_place.name}}}."
}
| 32,880 |
https://github.com/valiton/gatsby-technology-radar/blob/master/packages/technology-radar/test/itemCoordinates.test.js | Github Open Source | Open Source | MIT | 2,023 | gatsby-technology-radar | valiton | JavaScript | Code | 128 | 472 | const {calculateCoordinates} = require('../src/itemCoordinates');
test('It calculates coordinates for items in ring', () => {
const items = [
{width: 22},
{width: 22},
{width: 22},
{width: 22},
{width: 22},
{width: 22},
{width: 22},
{width: 22},
{width: 22},
{width: 22},
{... | 14,978 |
https://github.com/lucarin91/myscripts/blob/master/dmenu_code | Github Open Source | Open Source | MIT | 2,021 | myscripts | lucarin91 | Shell | Code | 68 | 180 | #!/bin/sh
DMENU="dmenu -i -m 0"
prjs=$(cd "$HOME" && find . -maxdepth 4 -iname ".git" -type d ! -path "./.*" -exec ls -t "{}" +)
prjs=$(printf "$prjs" | sed -n 's/\/.git://p') # remove .git at the end
workspace=$(cd "$HOME" && find . -maxdepth 4 -name "*.code-workspace" -type f -exec ls -t "{}" +)
prj=$(printf "$pr... | 34,764 |
https://github.com/abe33/agt/blob/master/src/particles/timers/unlimited.coffee | Github Open Source | Open Source | MIT | 2,021 | agt | abe33 | CoffeeScript | Code | 24 | 53 | Limited = require './limited'
# Public:
module.exports =
class Unlimited extends Limited
### Public ###
constructor: (since) -> super Infinity, since
finished: -> false
| 36,879 |
https://github.com/MarketingPlus/employee-management-system/blob/master/db/seed.sql | Github Open Source | Open Source | MIT | null | employee-management-system | MarketingPlus | SQL | Code | 200 | 520 | USE employee_tracker;
-- DEPARTMENT 1
INSERT INTO department (name)
VALUES ('Development');
-- DEPARTMENT 2
INSERT INTO department (name)
VALUES ('Quality Assurance');
-- DEPARTMENT 3
INSERT INTO department (name)
VALUES ('Operations');
-- ROLE 1
INSERT INTO role (title, salary, department_id)
VALUES ('Lead Enginee... | 19,273 |
https://github.com/jdbi/jdbi/blob/master/core/src/test/java/org/jdbi/v3/core/statement/TestBindBeanList.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | jdbi | jdbi | Java | Code | 407 | 1,192 | /*
* 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, software
* distributed u... | 6,597 |
https://github.com/santer545/MyCredit/blob/master/js/jquery.sameheight.js | Github Open Source | Open Source | MIT | 2,018 | MyCredit | santer545 | JavaScript | Code | 593 | 2,322 | jQuery(function() {
initSameHeight();
});
$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
initSameHeight();
})
function initSameHeight() {
jQuery('.contact-list').sameHeight({
elements: '.contact-item',
flexible: true,
multiLine: true,
biggestHeight: true
});
... | 6,476 |
https://github.com/AquiburRKhan/ico-user-interface/blob/master/src/app/pages/home/registerProgress/RegisterProgressCtrl.js | Github Open Source | Open Source | MIT | null | ico-user-interface | AquiburRKhan | JavaScript | Code | 353 | 1,460 | (function () {
'use strict';
angular.module('BlurAdmin.pages.home')
.controller('RegisterProgressCtrl', RegisterProgressCtrl);
/** @ngInject */
function RegisterProgressCtrl($rootScope,$scope,$http,cookieManagement,environmentConfig,$location,errorToasts,userVerification) {
var vm = t... | 38,123 |
https://github.com/tiandaokabuto/designer/blob/master/app/containers/designerGraphBlock/DragCardStatement/BasicStatement/components/PVC/components/UploadImages/index.jsx | Github Open Source | Open Source | MIT | 2,020 | designer | tiandaokabuto | JavaScript | Code | 219 | 811 | import React from "react";
import { Image } from "antd";
import {
CloudUploadOutlined,
CloudDownloadOutlined,
DeleteOutlined,
ArrowUpOutlined,
ArrowDownOutlined,
FileImageOutlined,
} from "@ant-design/icons";
import "../public.less";
import { DOWNLOAD_COMPONENT } from "../componentTypes";
import "./uploadI... | 2,633 |
https://github.com/bellmit/ddd-building-blocks/blob/master/examples/orders/orders-domain/src/main/java/io/github/bhuwanupadhyay/rtms/order/domain/Quantity.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | ddd-building-blocks | bellmit | Java | Code | 91 | 320 | package io.github.bhuwanupadhyay.rtms.order.domain;
import io.github.bhuwanupadhyay.ddd.DomainAsserts;
import io.github.bhuwanupadhyay.ddd.DomainError;
import io.github.bhuwanupadhyay.ddd.ValueObject;
import java.util.Objects;
public final class Quantity extends ValueObject {
private final Integer value;
public... | 3,021 |
https://github.com/janczer/dcos-ui/blob/master/src/js/utils/rxjsUtils.ts | Github Open Source | Open Source | Apache-2.0 | null | dcos-ui | janczer | TypeScript | Code | 82 | 243 | import { timer } from "rxjs/observable/timer";
import "rxjs/add/operator/delayWhen";
import "rxjs/add/operator/scan";
import { IScheduler } from "rxjs/Scheduler";
import { Observable } from "rxjs/Observable";
export function linearBackoff(
delay: number,
maxRetries: number = -1,
maxDelay?: number,
scheduler?:... | 25,174 |
https://github.com/Assimalign-LLC/asal-dotnet-extensions/blob/master/src/validation/benchmarks/Assimalign.Extensions.ValidationBenchmarks/ValidatorMovingAverage.cs | Github Open Source | Open Source | MIT | null | asal-dotnet-extensions | Assimalign-LLC | C# | Code | 229 | 654 | public class ValidatorMovingAverage
{
private readonly int avgSize;
private readonly Queue<double> entries;
private double lowestEntry;
private double highestEntry;
private double lowestAvg;
private double highestAvg;
private double acummulation;
private double current;
private lo... | 37,198 |
https://github.com/gg2001/levered-v0/blob/master/contracts/factory/Position.sol | Github Open Source | Open Source | MIT | 2,021 | levered-v0 | gg2001 | Solidity | Code | 200 | 724 | // SPDX-License-Identifier: MIT
pragma solidity ^0.7.5;
import {
Initializable
} from "@openzeppelin/contracts-upgradeable/proxy/Initializable.sol";
import {SafeMath} from "@openzeppelin/contracts/math/SafeMath.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {SafeERC20} from "@o... | 46,923 |
https://github.com/dolittle/javascript.core/blob/master/Source/validation/rules/Regex.ts | Github Open Source | Open Source | MIT | null | javascript.core | dolittle | TypeScript | Code | 151 | 359 | // Copyright (c) Dolittle. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
import { IRuleContext, Reason, ValueRule } from '@dolittle/rules';
/**
* Represents a {@link ValueRule} for specific regular expression - any value must conform to a r... | 41,544 |
https://github.com/r0hitl/cs851-s15/blob/master/A1/Q2/URIAge.py | Github Open Source | Open Source | MIT | 2,015 | cs851-s15 | r0hitl | Python | Code | 219 | 778 | '''
Created on Feb 7, 2015
@author: rlambi
'''
import requests
import json
import csv
import os
import datetime
def skip(row):
print 'Skipped ' + '\t' + row['serialNo'] + '\t' + row['tweetSeqNo'] + '\t' + row['tcoURL'] + '\t' + row['finalURL'] + '\t' + row['tweetedOn'] + '\n'
errorLogFile.write('Skipped ... | 17,004 |
https://github.com/wladitavar/choco3/blob/master/choco-parser/src/main/antlr3/parser/flatzinc/FlatzincFullExtParser.g | Github Open Source | Open Source | BSD-3-Clause | 2,014 | choco3 | wladitavar | GAP | Code | 1,100 | 2,819 | parser grammar FlatzincFullExtParser;
options{
language = Java;
output=AST;
tokenVocab=FlatzincFullExtLexer;
backtrack = true;
}
@header {
/*
* Copyright (c) 1999-2012, Ecole des Mines de Nantes
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modificat... | 52,536 |
https://github.com/hiroyasuando/CH_traffic/blob/master/code/src/run_prediction_day2.py | Github Open Source | Open Source | MIT | null | CH_traffic | hiroyasuando | Python | Code | 99 | 321 | import pandas as pd
import numpy as np
import load_data
from utils import *
############
target = '05e'
rlist=['05e'] # remove_list
delay = 7
interval = 24
p=0.
depth=2
depth_ar=6
############
## load data
# df_sum1 : data on day 1
# df_sum2 : data on day2
df_sum1, df_sum2 = load_data.load_data(interval=interval,p=... | 7,164 |
https://github.com/liutuoni/skia/blob/master/BUILD.bazel | Github Open Source | Open Source | BSD-3-Clause | 2,021 | skia | liutuoni | Starlark | Code | 19 | 84 | cc_test(
name = "bazel_test",
size = "small",
srcs = [
"//experimental/bazel_test:srcs",
],
deps = [
"//third_party:libpng",
"//third_party:musl_compat",
],
)
| 49,212 |
https://github.com/tynesjo/lookr/blob/master/man/GitConnectionTestResult.Rd | Github Open Source | Open Source | MIT | 2,019 | lookr | tynesjo | R | Code | 43 | 176 | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GitConnectionTestResult.r
\docType{data}
\name{GitConnectionTestResult}
\alias{GitConnectionTestResult}
\title{GitConnectionTestResult Class}
\format{An object of class \code{R6ClassGenerator} of length 24.}
\usage{
GitConnectionTestResult
}
... | 26,595 |
https://github.com/aungkokhantace/ros/blob/master/app/RMS/Utility.php | Github Open Source | Open Source | MIT | null | ros | aungkokhantace | PHP | Code | 261 | 873 | <?php namespace App\RMS;
use Auth;
use DB;
use PDF;
use App\Http\Requests;
use App\Session;
use App\RMS\User\UserRepository;
use App\RMS\SyncsTable\SyncsTable;
class Utility
{
public static function addCreatedBy($newObj)
{
if(Auth::guard('Cashier')->check()){
$loginUserId = Auth::guard('Ca... | 16,980 |
https://github.com/shubhamxy/minze-server/blob/master/packages/minze-server/src/resolvers/User/Notification.ts | Github Open Source | Open Source | BSD-3-Clause, MIT | 2,019 | minze-server | shubhamxy | TypeScript | Code | 74 | 230 | import {NotificationResolvers} from '../generated/resolvers';
import {TypeMap} from '../types/TypeMap';
import {UserParent} from './User';
export type NOTIFICATION_TYPE =
| 'OFFER'
| 'INSTANT_BOOK'
| 'RESPONSIVENESS'
| 'NEW_AMENITIES'
| 'HOUSE_RULES';
export interface NotificationParent {
createdAt: strin... | 10,545 |
https://github.com/Devolicious/platform/blob/master/src/Oro/Bundle/SecurityBundle/Tests/Unit/Owner/Metadata/ChainMetadataProviderTest.php | Github Open Source | Open Source | MIT | 2,017 | platform | Devolicious | PHP | Code | 581 | 3,131 | <?php
namespace Oro\Bundle\SecurityBundle\Tests\Unit\Owner\Metadata;
use Oro\Bundle\SecurityBundle\Acl\AccessLevel;
use Oro\Bundle\SecurityBundle\Owner\Metadata\ChainMetadataProvider;
use Oro\Bundle\SecurityBundle\Owner\Metadata\MetadataProviderInterface;
class ChainMetadataProviderTest extends \PHPUnit_Framework_Te... | 5,543 |
https://github.com/mrk-andreev/ClickHouse/blob/master/src/TableFunctions/TableFunctionMerge.cpp | Github Open Source | Open Source | Apache-2.0 | 2,019 | ClickHouse | mrk-andreev | C++ | Code | 409 | 1,745 | #include <Common/OptimizedRegularExpression.h>
#include <Common/typeid_cast.h>
#include <Storages/StorageMerge.h>
#include <Parsers/ASTLiteral.h>
#include <Parsers/ASTFunction.h>
#include <TableFunctions/ITableFunction.h>
#include <Interpreters/evaluateConstantExpression.h>
#include <Interpreters/Context.h>
#include <A... | 38,220 |
https://github.com/thibauth01/Mastermind/blob/master/src/view/ViewRules.java | Github Open Source | Open Source | MIT | 2,018 | Mastermind | thibauth01 | Java | Code | 1,486 | 6,170 | package view;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import model.ModelGame;
import java.awt.GridBagLayout;
import javax.swing.JButton;
import java.awt.GridBagConstraints;
import java.awt.Insets;
import java.awt.event.ActionEvent;
impor... | 38,634 |
https://github.com/RemiFusade2/FightingGame/blob/master/Fighting game/Assets/Scripts/CharacterBehaviour.cs | Github Open Source | Open Source | MIT | null | FightingGame | RemiFusade2 | C# | Code | 291 | 1,106 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CharacterBehaviour : MonoBehaviour
{
public bool controledByPlayer;
public Rigidbody characterRigidbody;
public Animator animator;
public GameObject head;
public GameObject chest;
public GameObject ... | 36,665 |
https://github.com/tokusanya/seacas/blob/master/packages/seacas/libraries/suplib_c/cmake/Dependencies.cmake | Github Open Source | Open Source | Zlib, NetCDF, MIT, BSL-1.0, X11, BSD-3-Clause | null | seacas | tokusanya | CMake | Code | 2 | 20 | TRIBITS_PACKAGE_DEFINE_DEPENDENCIES(
)
| 4,519 |
https://github.com/14squared/BotFramework-Composer/blob/master/Composer/packages/client/src/pages/publish/publishStatusList.tsx | Github Open Source | Open Source | MIT | null | BotFramework-Composer | 14squared | TypeScript | Code | 559 | 1,908 | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
/** @jsx jsx */
import { jsx } from '@emotion/core';
import {
DetailsList,
DetailsListLayoutMode,
SelectionMode,
IColumn,
IGroup,
CheckboxVisibility,
} from 'office-ui-fabric-react/lib/DetailsList';
import { Sticky, StickyPositionTy... | 26,327 |
https://github.com/lvjinliang/ylshop/blob/master/Application/Runtime/Cache/Home/0f955c061702ed2d9b3a6d65b386a62a.php | Github Open Source | Open Source | BSD-2-Clause | null | ylshop | lvjinliang | PHP | Code | 151 | 668 | <?php if (!defined('THINK_PATH')) exit();?>
<?php if(!empty($data['reviewList'])): ?><div class="orders table-responsive">
<table class="table table-bordered ">
<?php if(is_array($data['reviewList'])): $i = 0; $__LIST__ = $data['reviewList'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST... | 37,854 |
https://github.com/sadiiskiqt/vivos.dev/blob/master/modules/atlantis/site/src/Module/Site/Controllers/Modules/TestModuleController.php | Github Open Source | Open Source | Apache-2.0 | null | vivos.dev | sadiiskiqt | PHP | Code | 51 | 133 | <?php
namespace Module\Site\Controllers\Modules;
use App\Http\Controllers\Controller;
/**
* TestModuleController
* exemplary front-end controller
* This controller is used to overrides module controller
*/
class TestModuleController extends Controller {
/**
* overrides function from: \Module\TestModule\Con... | 46,718 |
https://github.com/elliotcourant/go-pg-multitenant/blob/master/main_test.go | Github Open Source | Open Source | Unlicense | 2,021 | go-pg-multitenant | elliotcourant | Go | Code | 88 | 347 | package multitenant
import (
"os"
"testing"
"github.com/go-pg/pg/v10"
)
type (
Tenant struct {
TenantId int64 `pg:"tenant_id,pk,type:'bigserial'"`
Name string `pg:"name,notnull"`
}
Product struct {
TenantId int64 `pg:"tenant_id,pk,notnull,on_delete:RESTRICT"`
Tenant *Tenant // Add the f... | 8,226 |
https://github.com/monsterhxw/leetcode-java-practice/blob/master/leetcode-0677-map-sum-pairs/src/algorithm/Main.java | Github Open Source | Open Source | MIT | 2,022 | leetcode-java-practice | monsterhxw | Java | Code | 31 | 111 | package algorithm;
public class Main {
public static void main(String[] args) {
MapSum mapSum = new MapSum();
mapSum.insert("apple", 3);
// 输出: 3
System.out.println(mapSum.sum("app"));
mapSum.insert("app", 2);
// 输出: 5
System.out.println(mapSum.sum("ap"));
... | 6,965 |
https://github.com/azizulhasan/codeigniter_blog/blob/master/application/views/advertiser/common/footer.php | Github Open Source | Open Source | MIT | 2,020 | codeigniter_blog | azizulhasan | PHP | Code | 126 | 822 |
<!-- https://stackoverflow.com/questions/21044798/how-to-use-formdata-for-ajax-file-upload -->
<!-- Footer -->
<footer class="sticky-footer bg-white">
<div class="container my-auto">
<div class="copyright text-center my-auto">
<span>copyright © <script> document.write(new Date().... | 22,472 |
https://github.com/crazzyghost/alphavantage-java/blob/master/src/main/java/com/crazzyghost/alphavantage/indicator/response/bbands/BBANDSResponse.java | Github Open Source | Open Source | MIT | 2,022 | alphavantage-java | crazzyghost | Java | Code | 454 | 1,553 | package com.crazzyghost.alphavantage.indicator.response.bbands;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import com.crazzyghost.alphavantage.parser.DefaultParser;
import com.crazzyghost.alphavantage.parser.Parser;
public class BBANDSResponse {
private MetaData metaData;
priva... | 1,889 |
https://github.com/viktoras25/scryfall/blob/master/src/Enums/ResponseFormats.php | Github Open Source | Open Source | MIT | null | scryfall | viktoras25 | PHP | Code | 27 | 68 | <?php
namespace Viktoras\Scryfall\Enums;
interface ResponseFormats
{
public const JSON = 'json';
public const CSV = 'csv';
public const IMAGE = 'image';
public const TEXT = 'text';
}
| 8,349 |
https://github.com/JavaFXMax/transworld_brand_new/blob/master/dat/app/controllers/MembersFeeController.php | Github Open Source | Open Source | MIT | null | transworld_brand_new | JavaFXMax | PHP | Code | 332 | 1,409 | <?php
class MembersFeeController extends \BaseController {
/**
* Display a listing of currencies
*
* @return Response
*/
public function index()
{
$memberfees = Memberfee::all();
$equities = Account::where('category','EQUITY')->get();
return View::make('membersfee.index', compact('memberfees... | 19,659 |
https://github.com/JetBrains-Research/sysbio-workshop/blob/master/2019_bioinf_summer_school/chipseq/match_control.py | Github Open Source | Open Source | MIT | 2,019 | sysbio-workshop | JetBrains-Research | Python | Code | 224 | 661 | import re
import os
import glob
def find_control_for(file, ext="bam"):
bam_name = os.path.basename(file).lower()
if 'input' in bam_name:
return ''
# Find all the files within folder
parent_dir = os.path.dirname(file)
names = [os.path.basename(n) for n in glob.glob(f'{parent_dir}/*.{ext}')... | 51,743 |
https://github.com/GrigoriyMikhalkin/cloudctl/blob/master/cmd/project.go | Github Open Source | Open Source | MIT | null | cloudctl | GrigoriyMikhalkin | Go | Code | 1,015 | 3,254 | package cmd
import (
"fmt"
"log"
"strings"
"github.com/fi-ts/cloud-go/api/models"
"gopkg.in/yaml.v3"
"github.com/fi-ts/cloud-go/api/client/project"
"github.com/fi-ts/cloudctl/cmd/helper"
"github.com/spf13/cobra"
"github.com/spf13/viper"
)
var (
projectCmd = &cobra.Command{
Use: "project",
Short: "ma... | 4,432 |
https://github.com/lordmen99/LoyaltyPlatform/blob/master/app/Helpers/HEthereum.php | Github Open Source | Open Source | MIT | 2,022 | LoyaltyPlatform | lordmen99 | PHP | Code | 31 | 95 | <?php
class HEthereum
{
public static function toWei($amount)
{
return number_format($amount * 1e18, 0, '.', '');
}
public static function fromWei($amountInWei)
{
return number_format($amountInWei * (1e-18), 18, '.', '');
}
}
| 9,526 |
https://github.com/speezepearson/defects4j/blob/master/framework/projects/Closure/patches/2000081.src.patch | Github Open Source | Open Source | MIT | 2,022 | defects4j | speezepearson | null | Spoken | 57 | 260 | diff --git a/src/com/google/javascript/jscomp/PeepholeSubstituteAlternateSyntax.java b/src/com/google/javascript/jscomp/PeepholeSubstituteAlternateSyntax.java
index 86521bd..898c12e 100644
--- a/src/com/google/javascript/jscomp/PeepholeSubstituteAlternateSyntax.java
+++ b/src/com/google/javascript/jscomp/PeepholeSubsti... | 24,973 |
https://github.com/JFouts-BlueModus/kentico-contrib/blob/master/src/CMS/CMSModules/Widgets/Controls/WidgetSecurity.ascx.designer.cs | Github Open Source | Open Source | MIT | 2,019 | kentico-contrib | JFouts-BlueModus | C# | Code | 562 | 1,600 | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//----------------------------------------... | 26,946 |
https://github.com/simoncozens/SuperTool/blob/master/SuperTool/SuperTool.h | Github Open Source | Open Source | Apache-2.0 | 2,021 | SuperTool | simoncozens | Objective-C | Code | 231 | 760 | /*
* Copyright 2019 Google LLC
*
* 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 ... | 12,012 |
https://github.com/ashwanikaggarwal/jinx-com4j/blob/master/jinx-com4j/src/main/java/com/exceljava/com4j/excel/XlCalcMemNumberFormatType.java | Github Open Source | Open Source | MIT | 2,020 | jinx-com4j | ashwanikaggarwal | Java | Code | 63 | 160 | package com.exceljava.com4j.excel ;
import com4j.*;
/**
*/
public enum XlCalcMemNumberFormatType {
/**
* <p>
* The value of this constant is 0
* </p>
*/
xlNumberFormatTypeDefault, // 0
/**
* <p>
* The value of this constant is 1
* </p>
*/
xlNumberFormatTypeNumber, // 1
/**
* <p>... | 47,139 |
https://github.com/hilanmiao/oneframephoto/blob/master/backend/app/model/permission.js | Github Open Source | Open Source | MIT | null | oneframephoto | hilanmiao | JavaScript | Code | 96 | 304 | 'use strict';
// 权限表
const base = require('./base');
module.exports = app => {
const { STRING, UUID, UUIDV1, BOOLEAN } = app.Sequelize;
const Permission = base.defineModel(app, 'permission', {
id: {
type: UUID,
primaryKey: true,
allowNull: false,
defaultValue: UUIDV1,
},
roleId: ... | 7,187 |
https://github.com/coulibaly-mouhamed/hipace/blob/master/examples/beam_in_vacuum/analysis_grid_current.py | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, BSD-2-Clause | 2,021 | hipace | coulibaly-mouhamed | Python | Code | 113 | 281 | #! /usr/bin/env python3
# This Python analysis script is part of the code Hipace
#
# It calculates the sum of jz. The beam current and the grid current should cancel each other.
import argparse
import numpy as np
from openpmd_viewer import OpenPMDTimeSeries
parser = argparse.ArgumentParser(description='Script to ana... | 11,685 |
https://github.com/tangjz/acm-icpc/blob/master/lydsy/4143.cpp | Github Open Source | Open Source | Apache-2.0 | 2,022 | acm-icpc | tangjz | C++ | Code | 143 | 430 | #include <cstdio>
const int maxm = 21;
int n, m, ans[maxm][2][2];
template<class T> void scan(T& x)
{
int ch, flag;
while(((ch = getchar()) < '0' || ch > '9') && ch != '-');
flag = ch == '-';
x = flag ? 0 : ch - '0';
while((ch = getchar()) >= '0' && ch <= '9')
x = (x << 3) + (x << 1) + (ch - '0');
if(flag)
x ... | 16,441 |
https://github.com/juangesino/gazette/blob/master/client/routes.js | Github Open Source | Open Source | MIT | 2,022 | gazette | juangesino | JavaScript | Code | 120 | 426 | // Define the template for Iron Router.
Router.configure({
layoutTemplate: 'ApplicationLayout'
});
// Create the index route.
Router.map(function() {
this.route('home', {
path: '/',
to: 'main',
name: 'home',
template: 'home',
loadingTemplate: 'loading',
waitOn: function () {
return Me... | 17,924 |
https://github.com/kaisltr/Repository/blob/master/ExamenLundi1/src/EspritClubsBundle/Entity/EvenementRepository.php | Github Open Source | Open Source | BSD-3-Clause, MIT | 2,018 | Repository | kaisltr | PHP | Code | 49 | 158 | <?php
/**
* Created by PhpStorm.
* User: Kais
* Date: 12/03/2018
* Time: 09:36
*/
namespace EspritClubsBundle\Entity;
use Doctrine\ORM\EntityRepository;
class EvenementRepository extends EntityRepository
{
public function Recherche($rech)
{
$query = $this->getEntityManager()
->creat... | 53,062 |
https://github.com/DeveloperPaul123/cuda-api-wrappers/blob/master/cmake/Modules/sugar/sugar_generate_warning_flags.cmake | Github Open Source | Open Source | BSD-3-Clause | 2,021 | cuda-api-wrappers | DeveloperPaul123 | CMake | Code | 680 | 3,094 | # Copyright (c) 2014, Ruslan Baratov
# All rights reserved.
include(sugar_add_this_to_sourcelist)
sugar_add_this_to_sourcelist()
include(CMakeParseArguments) # cmake_parse_arguments
include(sugar_fatal_error)
include(sugar_generate_warning_flag_by_name)
include(sugar_generate_warning_xcode_attr_by_name)
include(sugar... | 36,072 |
https://github.com/jjjkkkjjj/Matft/blob/master/Sources/Matft/core/method/creation_mfarray.swift | Github Open Source | Open Source | BSD-3-Clause | 2,022 | Matft | jjjkkkjjj | Swift | Code | 414 | 943 | //
// creation_mfarray.swift
// Matft
//
// Created by Junnosuke Kado on 2020/02/26.
// Copyright © 2020 jkado. All rights reserved.
//
import Foundation
import Accelerate
extension MfArray{
/**
Create deep copy of mfarray. Deep means copied mfarray will be different object from original one
- p... | 38,870 |
https://github.com/billyriantono/ObjectOrientedLearning/blob/master/DependencyInversion/src/Driver.java | Github Open Source | Open Source | MIT | 2,020 | ObjectOrientedLearning | billyriantono | Java | Code | 45 | 143 | public class Driver {
Radio radio = new Radio();
Car car = new Car();
public void listenToRadio(){
radio.turnOn();
}
public void listeningToFavouriteSong(){
radio.turnUp();
}
public void talkingToPassenger(){
radio.turnDown();
}
public void concentrate(){
... | 40,744 |
https://github.com/aklarl/Helena/blob/master/eu.ascens.helenaText/xtend-gen/eu/ascens/generator/jHelena/EnsembleStructureGenerator.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | Helena | aklarl | Java | Code | 459 | 2,202 | /**
* The Helena workbench is an Eclipse plugin for the development of ensemble-based systems
* according to the Helena approach. It is fully documented in the PhD
* thesis "Helena - Handling massively distributed systems with ELaborate
* ENsemble Architectures" by Annabelle Klarl in 2016.
*
* Website: http:... | 34,036 |
https://github.com/blackfatTeam/newsroom/blob/master/views/gallary/confbar.php | Github Open Source | Open Source | BSD-3-Clause | null | newsroom | blackfatTeam | PHP | Code | 371 | 1,924 | <?php
use kartik\date\DatePicker;
use kartik\widgets\TimePicker;
use yii\base\Widget;
use yii\bootstrap\Html;
use app\models\Contents;
use app\lib\Workflow;
use backend\components\Category;
use yii\helpers\Url;
$baseUri = Yii::getAlias('@web');
$tagSearchUri = Url::toRoute(['contents/tagapi']);
$str = <<<EOT
$('#... | 10,318 |
https://github.com/minyk/phoenix/blob/master/phoenix-core/src/main/java/org/apache/phoenix/schema/SortOrder.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | phoenix | minyk | Java | Code | 631 | 1,346 | /*
* 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,787 |
https://github.com/techtrauma26/Flashcodes/blob/master/views/cards.handlebars | Github Open Source | Open Source | MIT | 2,019 | Flashcodes | techtrauma26 | null | Spoken | 514 | 2,181 | <header>
<nav class="top-nav" style="height: 10rem">
<div class="container">
<div class="nav-wrapper">
<div class="row">
<div class="col s12 m10">
<h1 class="header">FlashCodes</h1>
</div>
</div>
... | 21,631 |
https://github.com/s4-2/scancode-toolkit/blob/master/tests/cluecode/data/ics/qemu-distrib-sdl-1.2.12-src-hermes/HeadMMX.h | Github Open Source | Open Source | Apache-2.0, CC-BY-4.0 | 2,022 | scancode-toolkit | s4-2 | C | Code | 26 | 57 | /*
Header definitions for the MMX routines for the HERMES library
Copyright (c) 1998 Christian Nentwich (c.nentwich@cs.ucl.ac.uk)
This source code is licensed under the GNU LGPL
| 46,873 |
https://github.com/svenvc/zinc/blob/master/repository/Zinc-SSO-OpenID-Core.package/ZnOpenIDAuthRequest.class/instance/axRequestLanguage.st | Github Open Source | Open Source | MIT | 2,023 | zinc | svenvc | null | Spoken | 27 | 96 | accessing attribute exchange
axRequestLanguage
self
nsAx: self class nsAttributeExchangeExtension;
axMode: 'fetch_request';
axTypeLanguage: 'http://axschema.org/pref/language';
axRequired: (self axRequired isNil
ifTrue: [ '' ]
ifFalse: [ self axRequired, ',']), 'language' | 12,226 |
https://github.com/TeaWeb/code/blob/master/teaweb/actions/default/api/v1/proxy/servers.go | Github Open Source | Open Source | MIT | 2,022 | code | TeaWeb | Go | Code | 53 | 230 | package proxy
import (
"github.com/TeaWeb/code/teaconfigs"
"github.com/TeaWeb/code/teaweb/actions/default/api/apiutils"
"github.com/iwind/TeaGo/actions"
"github.com/iwind/TeaGo/maps"
)
type ServersAction actions.Action
// 代理服务列表
func (this *ServersAction) RunGet(params struct{}) {
serverList, err := teaconfigs.... | 8,826 |
https://github.com/GuillaumeLagrange/aoc-2021/blob/master/src/day15/index.ts | Github Open Source | Open Source | 0BSD | null | aoc-2021 | GuillaumeLagrange | TypeScript | Code | 538 | 1,554 | import { readInput, readExample } from '../utils/index';
interface Neighbour {
label: string;
weight: number;
}
type Graph = Record<string, Neighbour[]>;
interface Input {
graph: Graph;
size: number;
size2: number;
}
const prepareInput = (rawInput: string) => {
let parsedArray: number[][] = rawInput
... | 37,329 |
https://github.com/roeder/mapstatHelpers/blob/master/man/get_single_metadata.Rd | Github Open Source | Open Source | MIT | 2,019 | mapstatHelpers | roeder | R | Code | 84 | 220 | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mapstat_metadata.R
\name{get_single_metadata}
\alias{get_single_metadata}
\title{Import the metadata of a mapstat file}
\usage{
get_single_metadata(path, shorten_sample_id = TRUE)
}
\arguments{
\item{path}{Path to file}
\item{shorten_sample_... | 423 |
https://github.com/itkSource/yoga/blob/master/yoga-core/src/main/java/org/skyscreamer/yoga/metadata/MetaDataRegistry.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | yoga | itkSource | Java | Code | 43 | 137 | package org.skyscreamer.yoga.metadata;
import java.util.Collection;
import org.skyscreamer.yoga.selector.CoreSelector;
public interface MetaDataRegistry
{
Collection<String> getTypes();
TypeMetaData getMetaData( String type, String suffix );
String getMetadataHref( Class<?> type, String suffix );
... | 8,597 |
https://github.com/aydenjahola/ArrowPoint-Telemetry/blob/master/src/main/java/com/prohelion/model/PowerUseDto.java | Github Open Source | Open Source | MIT | 2,020 | ArrowPoint-Telemetry | aydenjahola | Java | Code | 134 | 453 | package com.prohelion.model;
import java.io.Serializable;
import java.time.OffsetDateTime;
import javax.persistence.Column;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.... | 20,738 |
https://github.com/berazo29/network-fundamentals-py/blob/master/Server.py | Github Open Source | Open Source | MIT | 2,021 | network-fundamentals-py | berazo29 | Python | Code | 174 | 574 | import argparse
from sys import argv
import socket
parser = argparse.ArgumentParser(description="""This is a very basic server program""")
parser.add_argument('-f', type=str, help='File to read the pairs words', default='Pairs.txt', action='store', dest='in_file')
parser.add_argument('port', type=int, help='This is t... | 21,077 |
https://github.com/dcrosta/nymwit/blob/master/nymwit/util.py | Github Open Source | Open Source | BSD-2-Clause, LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-other-permissive | 2,011 | nymwit | dcrosta | Python | Code | 272 | 552 | # Copyright (c) 2011, Daniel Crosta
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# this list of conditions and the... | 11,965 |
https://github.com/AlamLopez/syscon2v1/blob/master/app/Http/Controllers/CategoriaController.php | Github Open Source | Open Source | MIT | null | syscon2v1 | AlamLopez | PHP | Code | 213 | 704 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Categoria;
class CategoriaController extends Controller
{
public function index(Request $request)
{
//
/**
* Desplegar el listado de tipos de actividades registrados en el sistema con paginacion
* Se ... | 48,566 |
https://github.com/UziTech/prado/blob/master/tests/FunctionalTests/tickets/tests/Ticket592TestCase.php | Github Open Source | Open Source | BSD-3-Clause | 2,017 | prado | UziTech | PHP | Code | 70 | 598 | <?php
class Ticket592TestCase extends PradoGenericSelenium2Test
{
function test()
{
$base = 'ctl0_Content_';
$this->url('tickets/index.php?page=Ticket592');
$this->assertEquals($this->title(), "Verifying Ticket 592");
$this->assertText("{$base}label1", "Label 1");
$this->byId("{$base}radio1")->click();
... | 15,280 |
https://github.com/alec-deason/bevy/blob/master/crates/bevy_scene/src/dynamic_scene.rs | Github Open Source | Open Source | MIT | 2,020 | bevy | alec-deason | Rust | Code | 304 | 1,164 | use crate::{serde::SceneSerializer, Scene};
use anyhow::Result;
use bevy_ecs::{EntityMap, Resources, World};
use bevy_property::{DynamicProperties, PropertyTypeRegistry};
use bevy_type_registry::{ComponentRegistry, TypeRegistry, TypeUuid};
use serde::Serialize;
use thiserror::Error;
#[derive(Error, Debug)]
pub enum Dy... | 18,860 |
https://github.com/cryptobuks1/jobschain-/blob/master/routes/console.php | Github Open Source | Open Source | MIT | 2,019 | jobschain- | cryptobuks1 | PHP | Code | 164 | 622 | <?php
use Illuminate\Foundation\Inspiring;
use BitWasp\Bitcoin\Address\AddressCreator;
use BitWasp\Bitcoin\Address\PayToPubKeyHashAddress;
use BitWasp\Bitcoin\Bitcoin;
use BitWasp\Bitcoin\Key\Factory\PrivateKeyFactory;
use BitWasp\Bitcoin\Key\Factory\PublicKeyFactory;
use BitWasp\Bitcoin\Network\NetworkFactory;
use Bi... | 969 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.