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/omarmattr/finalProject/blob/master/app/Http/Controllers/user/SearchController.php | Github Open Source | Open Source | MIT | null | finalProject | omarmattr | PHP | Code | 57 | 204 | <?php
namespace App\Http\Controllers\user;
use App\Http\Controllers\Controller;
use App\Models\Category;
use App\Models\store;
use Illuminate\Http\Request;
class SearchController extends Controller
{
function index(Request $request)
{
$search = $request->search;
$categories = Category::where(... | 6,187 |
https://github.com/ColtonBloomquist/u-develop-it/blob/master/node_modules/jess/lib/tree/__tests__/dimension.js | Github Open Source | Open Source | MIT | 2,021 | u-develop-it | ColtonBloomquist | JavaScript | Code | 106 | 391 | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const chai_1 = require("chai");
require("mocha");
const __1 = require("..");
const context_1 = require("../../context");
const output_1 = require("../../output");
let context;
let out;
describe('Dimension', () => {
beforeEach(() => {
... | 27,106 |
https://github.com/DrobnjakS18/Sports-News/blob/master/resources/views/common/nav.blade.php | Github Open Source | Open Source | MIT | null | Sports-News | DrobnjakS18 | PHP | Code | 383 | 1,966 | <div class="trending-bar-dark hidden-xs">
<div class="container">
<div class="row text-center">
<div class="col-md-2 px-0" style="margin-top: 0.3rem;">
<h3 class="trending-bar-title">Breaking Sports News</h3>
</div>
<div class="col-md-6 my-2 my-0 pl-md-0 t... | 20,470 |
https://github.com/Y-Less/SharpVk/blob/master/src/SharpVk/Khronos/DisplayPlaneCapabilities.gen.cs | Github Open Source | Open Source | MIT | null | SharpVk | Y-Less | C# | Code | 496 | 1,123 | // The MIT License (MIT)
//
// Copyright (c) Andrew Armstrong/FacticiusVir 2019
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the r... | 42,829 |
https://github.com/davharris/mistnet2/blob/master/man/log_prob.Rd | Github Open Source | Open Source | BSD-2-Clause | 2,016 | mistnet2 | davharris | R | Code | 55 | 157 | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/log_prob.R
\name{log_prob}
\alias{log_prob}
\title{Calculate the log probability density of an object}
\usage{
log_prob(object, ...)
}
\arguments{
\item{object}{an object}
\item{...}{additional arguments to be passed to other methods}
}
\des... | 24,120 |
https://github.com/yuyo2/corporate-ui/blob/master/src/global/less/corporate-ui/mixins.less | Github Open Source | Open Source | MIT | null | corporate-ui | yuyo2 | Less | Code | 103 | 485 | .mixin-opacity(@opacityValue: 100) {
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=@{opacityValue})";
filter: alpha(opacity=@opacityValue);
-moz-opacity: @opacityValue * 0.01;
-khtml-opacity: @opacityValue * 0.01;
opacity: @opacityValue * 0.01;
}
.btn-mix(@type) {
@color: 'btn-@{type}-colo... | 7,674 |
https://github.com/SaneMinestom/microstom/blob/master/src/main/java/com/github/klainstom/microstom/Settings.java | Github Open Source | Open Source | MIT | 2,022 | microstom | SaneMinestom | Java | Code | 288 | 923 | package com.github.klainstom.microstom;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import net.minestom.server.MinecraftServer;
import net.minestom.server.utils.NetworkUtils;
import java.io.*;
import java.util.List;
public class Settings {
private static final Gson gson = new GsonBuilder()
... | 53,603 |
https://github.com/Llirik1337/orders-backend/blob/master/src/equipment/entities/equipment.entity.ts | Github Open Source | Open Source | MIT | null | orders-backend | Llirik1337 | TypeScript | Code | 130 | 327 | import { Field, Int, ObjectType } from '@nestjs/graphql';
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
import { Document, Schema as MongooseSchema } from 'mongoose';
import { BaseModel } from '../../_core';
export type EquipmentDocument = Equipment & Document;
@ObjectType()
@Schema({ timestamps: tr... | 29,142 |
https://github.com/rubyzhang/OpenSpace/blob/master/modules/touch/include/tuioear.h | Github Open Source | Open Source | LicenseRef-scancode-proprietary-license, MIT | 2,019 | OpenSpace | rubyzhang | C++ | Code | 450 | 1,245 | /*****************************************************************************************
* *
* OpenSpace *
* ... | 34,932 |
https://github.com/nordnet/nordnet-ui-kit/blob/master/src/components/icon/icons/co2.jsx | Github Open Source | Open Source | MIT | 2,021 | nordnet-ui-kit | nordnet | null | Spoken | 90 | 522 | import PropTypes from 'prop-types';
import React from 'react';
import Icon from '../icon';
export default function Co2({
stroke,
fill,
strokeWidth,
style: styleProp,
...rest // eslint-disable-line comma-dangle
}) {
const style = {
...styleProp,
...Icon.defaultProps.style,
};
return (
<svg s... | 28,533 |
https://github.com/bobbyvidal/square_array-prework/blob/master/square_array.rb | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-public-domain | 2,018 | square_array-prework | bobbyvidal | Ruby | Code | 12 | 38 | def square_array(array)
theArray= []
array.each {|num| theArray << num**2}
return theArray
end | 22,401 |
https://github.com/kant/gfw/blob/master/app/javascript/components/maps/main-map/selectors.js | Github Open Source | Open Source | MIT | 2,019 | gfw | kant | JavaScript | Code | 202 | 629 | import { createSelector, createStructuredSelector } from 'reselect';
import {
getDraw,
getMapLoading,
getActiveDatasetsFromState,
getSelectedInteraction
} from 'components/maps/map/selectors';
import { getShowDraw } from 'components/maps/components/analysis/selectors';
import initialState from './initial-stat... | 38,668 |
https://github.com/getnoma/noma/blob/master/packages/@noma/plugin-amqplib/src/index.js | Github Open Source | Open Source | Unlicense | 2,021 | noma | getnoma | JavaScript | Code | 85 | 244 | import { connect } from 'amqplib'
export default async function ({ config }) {
if (!config) {
return
}
let amqplib = {
connections: {}
}
const { connections } = config
if (connections) {
for (const connectionId in connections) {
const { connectionString } = connections[connectionId]
const connect... | 16,475 |
https://github.com/iamsquare/cookie-parse/blob/master/src/utils.ts | Github Open Source | Open Source | MIT | null | cookie-parse | iamsquare | TypeScript | Code | 310 | 801 | import { map, pipe, split, trim, includes, slice, ifElse, identity, replace, always, filter, Arity1Fn } from 'ramda';
import { isNotNil, isTrue, isValidNumber, isNotNilOrEmpty } from 'ramda-adjunct';
import { ParsedCookie, SplitStringOptions } from './interfaces';
import { NameValueTuple, SplitNetscapeString } from './... | 15,625 |
https://github.com/kaedei/DanDanPlayForAndroid/blob/master/local_component/src/main/java/com/xyoye/local_component/ui/weight/step/StepState.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | DanDanPlayForAndroid | kaedei | Java | Code | 19 | 69 | package com.xyoye.local_component.ui.weight.step;
/**
* Created by xyoye on 2021/2/23.
*/
public enum StepState {
DEFAULT,
ONGOING,
COMPLETED,
FAILED
}
| 40,007 |
https://github.com/XmanChai/golang-tools/blob/master/wechat/config_test.go | Github Open Source | Open Source | MIT | null | golang-tools | XmanChai | Go | Code | 30 | 131 | package wechat
import (
"fmt"
"testing"
)
func TestNewWxConfig(t *testing.T) {
wx := NewWxConfig("123456", "225566", "2536")
fmt.Println(*wx, wx)
}
func TestGetSystemConfigFromJson(t *testing.T) {
s := GetSystemConfigFromJson()
fmt.Printf("%T", s)
fmt.Println(s.system.Urls[2].Query[0])
}
| 25,466 |
https://github.com/DonghwanJwa/Project3rd/blob/master/src/main/java/com/jamong/service/AuthorService.java | Github Open Source | Open Source | MIT | null | Project3rd | DonghwanJwa | Java | Code | 44 | 175 | package com.jamong.service;
import java.util.HashMap;
import java.util.List;
import com.jamong.domain.AuthorVO;
import com.jamong.domain.RequestAuthorVO;
public interface AuthorService {
void sendAuthor(AuthorVO a);
int req_count(RequestAuthorVO a);
List<AuthorVO> req_list(RequestAuthorVO a);
AuthorVO req_info(... | 16,397 |
https://github.com/scc-digitalhub/dremio-oss/blob/master/dac/ui/src/utils/config-spec.js | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference, BSD-3-Clause, 0BSD, MIT, OFL-1.1, BSD-2-Clause, Unlicense, CC0-1.0, MIT-0, MITNFA, CC-BY-3.0, ISC, GPL-2.0-only, LicenseRef-scancode-generic-cla | 2,022 | dremio-oss | scc-digitalhub | JavaScript | Code | 155 | 322 | /*
* Copyright (C) 2017-2019 Dremio Corporation
*
* 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 l... | 30,192 |
https://github.com/joshbroton/you-dont-need-jquery/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,015 | you-dont-need-jquery | joshbroton | Ignore List | Code | 8 | 52 | demo/.sass-cache
demo/.sass-cache/
demo/.idea
demo/.idea/
demo/node_modules
demo/node_modules/
demo/bower_components
demo/bower_components/ | 14,565 |
https://github.com/augustoViegas2/phone-info/blob/master/src/app/phone-info/types/phone-info.ts | Github Open Source | Open Source | MIT | null | phone-info | augustoViegas2 | TypeScript | Code | 16 | 33 | import { Phone } from './phone';
export type PhoneInfo = {
phoneInfo: Phone;
country: string;
};
| 32,466 |
https://github.com/dougvj/GPIOvUART/blob/master/src/Makefile | Github Open Source | Open Source | BSD-3-Clause | 2,021 | GPIOvUART | dougvj | Makefile | Code | 33 | 162 | CFLAGS=-c -std=gnu99
libgpiovuart: gpiovuart.o gpiovuart_backend.o
ar rc libgpiovuart.a $?
#$(CC) -shared -o libgpiovuart.so $?
gpiovuart.o: gpiovuart.c
$(CC) $(CFLAGS) $? -o gpiovuart.o
gpiovuart_backend.o: gpiovuart_posix.c
$(CC) $(CFLAGS) $? -o gpiovuart_backend.o
clean:
-rm *.a *.so *.o
| 20,938 |
https://github.com/ferrydeboer/restore/blob/master/Restore/ChangeResolution/ChangeResolverExt.cs | Github Open Source | Open Source | MIT | 2,016 | restore | ferrydeboer | C# | Code | 77 | 232 | using System;
using System.Collections.Generic;
using System.Linq;
using JetBrains.Annotations;
namespace Restore.ChangeResolution
{
public static class ChangeResolverExt
{
public static IEnumerable<ISynchronizationAction<TSynch>> ResolveChange<TSynch>(this IEnumerable<TSynch> items, Func<TSynch, ISync... | 29,348 |
https://github.com/JRaspass/codegolf/blob/master/hole/intersection.go | Github Open Source | Open Source | MIT | 2,020 | codegolf | JRaspass | Go | Code | 792 | 1,859 | package hole
import (
"math/rand"
"strconv"
"strings"
)
// a bounding box (bbox) is defined in
// terms of its top-left vertex coordinates
// (x, y) and its width and height (w, h).
type bbox struct{ x, y, w, h int }
// couldn't find a quick way to loop a struct
func strconvbox(box bbox) (out string) {
var outs ... | 16,238 |
https://github.com/visualizersdotnl/chipchop2-486/blob/master/disk/midas/src/bldopts/doscmd.mak | Github Open Source | Open Source | MIT | null | chipchop2-486 | visualizersdotnl | Makefile | Code | 135 | 292 | #* doscmd.mak
#*
#* Dos-specific command definitions
#*
#* $Id: doscmd.mak,v 1.2 1997/07/31 10:56:33 pekangas Exp $
#*
#* Copyright 1997 Housemarque Inc.
#*
#* This file is part of MIDAS Digital Audio System, and may only be
#* used, modified and distributed under the terms of the MIDAS
#* Digital Audio System lic... | 26,658 |
https://github.com/ramkrishnakc/vendingMachine/blob/master/client/routes/index.js | Github Open Source | Open Source | MIT | null | vendingMachine | ramkrishnakc | JavaScript | Code | 42 | 118 | import React from 'react';
import {
BrowserRouter as Router,
Switch,
Route,
Redirect,
} from 'react-router-dom';
import HomeComponent from '../containers/home';
const mainRoute = () => (
<Router>
<Switch>
<Route exact path="/" component={HomeComponent} />
<Redirect from="*" to="/" />
</S... | 44,350 |
https://github.com/mgregoro/badnews/blob/master/lib/BadNews/ToolRegistry/Cache.pm | Github Open Source | Open Source | Artistic-1.0-Perl | null | badnews | mgregoro | Perl | Code | 204 | 591 | # the Cache module.. for caching multiple sites tool registries.
# $Id: Cache.pm 441 2006-12-11 21:32:47Z corrupt $
package BadNews::ToolRegistry::Cache;
@ISA = ('BadNews');
use BadNews;
use Carp;
sub new {
my ($class, %attribs) = @_;
return bless({cache => {}}, $class);
}
sub add_to_cache {
my... | 54,846 |
https://github.com/sslab-gatech/autofz/blob/master/docker/benchmark/seeds/fuzzer-test-suite/php-fuzz-parser/call_user_func_array_invalid_type.phpt | Github Open Source | Open Source | MIT | 2,023 | autofz | sslab-gatech | PHP | Code | 28 | 77 | <?php
class drv {
function func() {
}
}
$drv = new drv;
try {
call_user_func_array(array($drv, 'func'), null);
} catch (TypeError $e) {
echo $e->getMessage(), "\n";
}
?> | 34,188 |
https://github.com/marcinczeczko/serverless-playground/blob/master/lambda/src/main/java/com/serverless/handler/GetUsersHandler.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | serverless-playground | marcinczeczko | Java | Code | 37 | 221 | package com.serverless.handler;
import com.amazonaws.services.lambda.runtime.Context;
import com.amazonaws.services.lambda.runtime.RequestHandler;
import com.amazonaws.services.lambda.runtime.events.APIGatewayProxyRequestEvent;
import com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent;
import co... | 54,848 |
https://github.com/sgvrlab/OpenIRT/blob/master/OpenIRT/include/Photon.h | Github Open Source | Open Source | BSD-2-Clause | 2,015 | OpenIRT | sgvrlab | C++ | Code | 104 | 383 | #pragma once
#include <vector>
#include "Vector3.h"
#include "RGB.h"
namespace irt
{
class Photon
{
public:
enum SplitChoice
{
SPLIT_CHOICE_ROUND_ROBIN,
SPLIT_CHOICE_HIGHEST_VARIANCE,
SPLIT_CHOICE_LONGEST_DIM
};
enum SplitAxis
{
SPLIT_AXIS_X,
SPLIT_AXIS_Y,
SPLIT_AXIS_Z,
SPLIT_AXIS_LEAF,
SPLIT_A... | 21,568 |
https://github.com/d6t/d6tflow/blob/master/tests/test_workflow.py | Github Open Source | Open Source | MIT | 2,023 | d6tflow | d6t | Python | Code | 2,070 | 10,743 | import sklearn, sklearn.datasets, sklearn.svm, sklearn.linear_model
from pathlib import Path
import pandas as pd
import numpy as np
import pytest
import unittest
import d6tflow
# Test Requires
class Task1(d6tflow.tasks.TaskCache):
def run(self):
df = pd.DataFrame({'a':range(3)})
self.save(df) # q... | 12,431 |
https://github.com/pink-room/kotlin-multiplatform-template/blob/master/common-client/src/main/kotlin/co/pinkroom/multiplatformtemplate/presentation/memes/MemesContract.kt | Github Open Source | Open Source | Apache-2.0 | 2,022 | kotlin-multiplatform-template | pink-room | Kotlin | Code | 25 | 87 | package co.pinkroom.multiplatformtemplate.presentation.memes
class MemesContract {
interface View {
fun showMemeImage(url: String)
fun showMemeTitle(title: String)
}
interface Presenter {
fun start(view: View)
fun onNextClicked()
}
} | 17,435 |
https://github.com/sutouch08/flex/blob/master/application/controllers/inventory/Transform.php | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,022 | flex | sutouch08 | PHP | Code | 1,017 | 5,097 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Transform extends PS_Controller
{
public $menu_code = 'ICTRFM';
public $menu_group_code = 'IC';
public $menu_sub_group_code = 'REQUEST';
public $title = 'เบิกแปรสภาพ(ขาย)';
public $filter;
public $role = 'T';
public function __cons... | 47,553 |
https://github.com/devrsi0n/blog/blob/master/api/_utils/apolloClient.ts | Github Open Source | Open Source | MIT | 2,022 | blog | devrsi0n | TypeScript | Code | 46 | 139 | import fetch from 'node-fetch';
import ApolloClient from 'apollo-boost';
export default new ApolloClient({
uri: 'https://graphql.fauna.com/graphql',
fetch: fetch as any,
request: operation => {
const token = process.env.FAUNADB_SECRET;
if (!token) {
throw new Error('FAUNADB secret not found');
... | 34,643 |
https://github.com/iSamBa/tutoswiki-api/blob/master/src/controllers/auth/index.js | Github Open Source | Open Source | MIT | null | tutoswiki-api | iSamBa | JavaScript | Code | 17 | 54 | import makeRegisterUserController from "./registerUser.js";
import registerUser from "../../use-cases/auth/index.js";
const registerUserController = makeRegisterUserController({ registerUser });
export default registerUserController;
| 26,711 |
https://github.com/deurzen/kranewm/blob/master/src/winsys/xdata/xconnection.cc | Github Open Source | Open Source | BSD-3-Clause | 2,020 | kranewm | deurzen | C++ | Code | 8,306 | 38,339 | #include "../common.hh"
#include "../util.hh"
#include "xconnection.hh"
#include <algorithm>
#include <cstring>
#include <iomanip>
#include <iterator>
#include <numeric>
#include <sstream>
#include <deque>
extern "C" {
#include <X11/XF86keysym.h>
#include <X11/Xatom.h>
#include <X11/Xproto.h>
#include <X11/Xutil.h>
#... | 24,638 |
https://github.com/appirio-tech/direct-app/blob/master/src/web/scripts/instantSearch.js | Github Open Source | Open Source | MIT | 2,022 | direct-app | appirio-tech | JavaScript | Code | 1,717 | 5,228 | /*
* Copyright (C) 2013 - 2014 TopCoder Inc., All Rights Reserved.
*
* This javascript handles the instant search and search all.
*
* Version 1.0 (Module Assembly - TopCoder Cockpit Instant Search)
*
* Version 1.1 (System Assembly - TopCoder Direct Member Payments Dashboard v1.0)
* - Fix the issue if instance s... | 11,651 |
https://github.com/mayankchoubey/deno-rest-api-ephemeral-file-server/blob/master/utils.ts | Github Open Source | Open Source | MIT | 2,021 | deno-rest-api-ephemeral-file-server | mayankchoubey | TypeScript | Code | 120 | 502 | import {readableStreamFromIterable} from "https://deno.land/std/io/mod.ts";
import {HEADER_CONTENT_TYPE, HEADER_CONTENT_DISPOSITION, HEADER_CONTENT_DISPOSITION_VAL} from "./constants.ts";
export function sendResponseCode(resp:any, code:number) {
resp(new Response(undefined, {status: code}));
}
export function sen... | 13,723 |
https://github.com/popcatalin81/boo/blob/master/tests/testcases/compilation/in1.boo | Github Open Source | Open Source | BSD-3-Clause | 2,022 | boo | popcatalin81 | null | Spoken | 30 | 74 | """
False
True
False
True
"""
import System.Console
WriteLine(1 not in (2, 3, 1))
WriteLine(1 not in (2, 3, 5))
WriteLine("foo" not in ("baz", "foo"))
WriteLine("foo" not in ("baz", "bar"))
| 12,502 |
https://github.com/chuaes/main/blob/master/src/test/java/seedu/giatros/logic/commands/account/LogoutCommandTest.java | Github Open Source | Open Source | MIT | 2,019 | main | chuaes | Java | Code | 112 | 690 | package seedu.giatros.logic.commands.account;
import static org.junit.Assert.assertFalse;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static seedu.giatros.testutil.TypicalAccounts.MANAGER;
import static seedu.giatros.testutil.TypicalAccounts.getTypicalGiatrosBook;
import org.junit.Assert;
impo... | 45,142 |
https://github.com/ctti-clinicaltrials/aact-admin/blob/master/app/controllers/releases_controller.rb | Github Open Source | Open Source | MIT | 2,023 | aact-admin | ctti-clinicaltrials | Ruby | Code | 145 | 452 | class ReleasesController < ApplicationController
rescue_from ActiveRecord::RecordNotFound, with: :catch_not_found
before_action :set_release, only: [:edit, :update, :show, :destroy]
before_action :is_admin?
def index
@releases = Release.all.order(released_on: :desc)
end
def new
@release = Release.... | 5,634 |
https://github.com/ttggaa/snippets/blob/master/python/test/test_got_type.py | Github Open Source | Open Source | LicenseRef-scancode-public-domain | 2,019 | snippets | ttggaa | Python | Code | 189 | 744 | # -*- coding: utf-8 -*-
def judge_got_type(data, user_id):
"""
判断got_type
认领类型:0可捡漏(未领取)、1可捡漏已领取(当前用户领取)
2不可捡漏已领(徒弟/徒孙自己领取)、3不可捡漏
:param data:
:param user_id:
:return:
"""
got_type = 3
# 先判断可捡漏
if data['is_reclaimable'] == 1 and data['got'] == 0:
if data['owner_user_i... | 17,548 |
https://github.com/egeniq/egeniq-ios/blob/master/Classes/EFFlatButton.m | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-warranty-disclaimer | 2,019 | egeniq-ios | egeniq | Objective-C | Code | 180 | 708 | //
// EFFlatButton.m
// Egeniq
//
// Created by Johan Kool on 19/6/2012.
// Copyright (c) 2012 Egeniq. All rights reserved.
//
#import "EFFlatButton.h"
@interface EFFlatButton ()
@property (nonatomic, strong) UIColor *normalBackgroundColor;
@property (nonatomic, strong) UIColor *highlightedBackgroundColor;
@prop... | 54,567 |
https://github.com/WiIIiamTang/SummaRuNNer/blob/master/outputs/ROUGE-1.5.5/release_version/ROUGE.pl | Github Open Source | Open Source | MIT | null | SummaRuNNer | WiIIiamTang | Perl | Code | 660 | 3,381 | #!/usr/bin/perl
# calculate ROUGE score
$debug=0;
$NSIZE=shift @ARGV or die $!;
$alpha=0.5;
$metric = shift @ARGV or die $!; # N or L
$modelPath = shift @ARGV or die $!; # reference paths
$peerPath = shift @ARGV or die $!; # system paths
open(MODEL,$modelPath)||die "Cannot open $modelPath\n";
open(PEER,$peerPath)||d... | 2,915 |
https://github.com/magneoe/facilityDiseaseBurden/blob/master/src/app/app.module.ts | Github Open Source | Open Source | MIT | null | facilityDiseaseBurden | magneoe | TypeScript | Code | 257 | 911 | import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';
import { HttpModule } from '@angular/http';
import { RouterModule, Routes } from '@angular/router';
import { PageNotFoundComponent } from './components/notfound.comp... | 9,446 |
https://github.com/norzak/jsweet/blob/master/core-lib/es6/src/main/java/def/dom/SVGStyleElement.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | jsweet | norzak | Java | Code | 63 | 209 | package def.dom;
@jsweet.lang.Extends({SVGLangSpace.class})
public class SVGStyleElement extends SVGElement {
public java.lang.String media;
public java.lang.String title;
public java.lang.String type;
native public void addEventListener(java.lang.String type, EventListener listener, java.lang.Boolean ... | 12,849 |
https://github.com/Friz64/ecsvulk/blob/master/src/graphics/renderer.rs | Github Open Source | Open Source | WTFPL | 2,018 | ecsvulk | Friz64 | Rust | Code | 2,377 | 9,461 | use cgmath::{self, Angle, InnerSpace};
use config::configloader::Config;
use ecs::components::*;
use graphics::pipeline::PipelineSettings;
use graphics::*;
use log::warn;
use objects::Objects;
use rayon::ThreadPool;
use specs::{Entity, Join, World};
use std::{boxed::Box, sync::Arc};
use vulkano::{
buffer::{
... | 3,405 |
https://github.com/fork-for-contribution/ZeldaOS.x86_64/blob/master/vm_monitor/include/vmx_schedule.h | Github Open Source | Open Source | BSD-3-Clause | 2,022 | ZeldaOS.x86_64 | fork-for-contribution | C | Code | 33 | 144 | /*
* Copyright (c) 2019 Jie Zheng
*/
#ifndef _VMX_SCHEDULE_H
#define _VMX_SCHEDULE_H
#include <vm_monitor/include/vmx_exit.h>
#include <vm_monitor/include/vmx_vmcs.h>
struct external_interrupt_info {
struct vmexit_info * exit;
uint16_t vector;
uint16_t interrupt_type;
uint16_t is_errorcode_set;
... | 29,772 |
https://github.com/CryptoMathician/core/blob/master/cpp/core.h | Github Open Source | Open Source | Apache-2.0 | 2,022 | core | CryptoMathician | C | Code | 4,333 | 8,463 | /*
* Copyright (c) 2012-2020 MIRACL UK Ltd.
*
* This file is part of MIRACL Core
* (see https://github.com/miracl/core).
*
* 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... | 48,224 |
https://github.com/robinkyou/stack-dubbo/blob/master/stack-dubbo-dao/src/main/java/org/kyou/stack/dubbo/dao/BaseDao.java | Github Open Source | Open Source | Apache-2.0 | null | stack-dubbo | robinkyou | Java | Code | 265 | 804 | package org.kyou.stack.dubbo.dao;
import org.apache.ibatis.cursor.Cursor;
import org.apache.ibatis.session.ResultHandler;
import org.apache.ibatis.session.RowBounds;
import org.apache.ibatis.session.SqlSession;
import javax.annotation.Resource;
import java.util.List;
import java.util.Map;
public class BaseDao {
... | 21,894 |
https://github.com/JimvandeVen/shelter/blob/master/src/index.js | Github Open Source | Open Source | MIT | null | shelter | JimvandeVen | JavaScript | Code | 99 | 292 | 'use strict'
/* eslint-env browser */
/* eslint-disable semi */
var moment = require('moment')
var times = document.getElementsByTagName('time')
var length = times.length
var index = -1
var time
while (++index < length) {
time = times[index]
time.textContent = moment(time.dateTime, 'YYYY-MM-DD').fromNow()
... | 633 |
https://github.com/Banno/sbt-plantuml-plugin/blob/master/src/main/java/net/sourceforge/plantuml/BlockUml.java | Github Open Source | Open Source | ECL-2.0, Apache-2.0 | 2,021 | sbt-plantuml-plugin | Banno | Java | Code | 375 | 1,051 | /* ========================================================================
* PlantUML : a free UML diagram generator
* ========================================================================
*
* (C) Copyright 2009-2017, Arnaud Roques
*
* Project Info: http://plantuml.com
*
* This file is part of PlantUML.
... | 47,604 |
https://github.com/cicimen/flutter_gps/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,021 | flutter_gps | cicimen | Ignore List | Code | 7 | 38 | .DS_Store
.dart_tool/
.packages
.pub/
Podfile.lock
.project
build/
| 44,172 |
https://github.com/WeilerWebServices/PostgreSQL/blob/master/postgres/postgres-old-soon-decommissioned/src/bin/pgevent/pgevent.c | Github Open Source | Open Source | PostgreSQL | 2,022 | PostgreSQL | WeilerWebServices | C | Code | 329 | 1,032 | /*-------------------------------------------------------------------------
*
* pgevent.c
* Defines the entry point for pgevent dll.
* The DLL defines event source for backend
*
*
* IDENTIFICATION
* $PostgreSQL$
*
*-------------------------------------------------------------------------
*/
#include <w... | 15,974 |
https://github.com/yonestra/PeroReco/blob/master/Resources/setting.js | Github Open Source | Open Source | Apache-2.0 | 2,012 | PeroReco | yonestra | JavaScript | Code | 122 | 469 | // setting.js
var win = Titanium.UI.currentWindow;
Ti.Facebook.appid = '257658350951000';
Ti.Facebook.permissions = ['publish_stream'];
// var button = Ti.Facebook.createLoginButton();
// win.add(button);
var myButton = Ti.UI.createButton({
title: 'login',
top: 50,
left: 100,
height: 50,
width: ... | 12,017 |
https://github.com/viveret/kotlin-tiny-dnn/blob/master/kt-nn/src/main/java/com/viveret/tinydnn/data/formats/BufferedSingleDataSliceReader.kt | Github Open Source | Open Source | BSD-3-Clause | 2,021 | kotlin-tiny-dnn | viveret | Kotlin | Code | 442 | 1,365 | package com.viveret.tinydnn.data.formats
import com.viveret.tinydnn.basis.*
import com.viveret.tinydnn.data.DataValues
import com.viveret.tinydnn.data.io.InputSelection
import com.viveret.tinydnn.data.io.LabelReader
import com.viveret.tinydnn.data.io.VectReader
import com.viveret.tinydnn.data.train.DataSliceReader
imp... | 17,530 |
https://github.com/lelandcypress/full_stack_profile/blob/master/src/pages/Contact.js | Github Open Source | Open Source | MIT | 2,021 | full_stack_profile | lelandcypress | JavaScript | Code | 127 | 522 | import React from "react";
import "./Contact.css";
import { useForm, ValidationError } from "@formspree/react";
import Container from "react-bootstrap/Container";
import Card from "react-bootstrap/Card";
function Contact() {
const [state, handleSubmit] = useForm("xleaydnk");
if (state.succeeded) {
return (
... | 41,292 |
https://github.com/CodingSoldier/java-learn/blob/master/project/web-whole/src/main/java/ssm/fileupdown/model/ImgTest.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | java-learn | CodingSoldier | Java | Code | 95 | 229 | package ssm.fileupdown.model;
public class ImgTest {
private Integer id;
private String name;
private String path;
private byte[] pic;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getName() {
return... | 17,828 |
https://github.com/jianqili/llvm-semantics/blob/master/tests/regression/c-semantics-tests/gcc-torture/20021024-1.ll | Github Open Source | Open Source | MIT | 2,015 | llvm-semantics | jianqili | LLVM | Code | 513 | 1,339 | ; ModuleID = '/home/david/src/c-semantics/tests/gcc-torture/20021024-1.c'
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@cp = common global i64* null, ali... | 29,002 |
https://github.com/vpmedia/swf-read-write-as3/blob/master/swfwire/src/main/actionscript/com/swfwire/decompiler/data/swf/records/LineStyleArrayRecord.as | Github Open Source | Open Source | MIT | 2,014 | swf-read-write-as3 | vpmedia | null | Spoken | 49 | 181 | package com.swfwire.decompiler.data.swf.records
{
public class LineStyleArrayRecord
{
public var count:uint;
public var countExtended:uint;
public var lineStyles:Vector.<LineStyleRecord>;
public function LineStyleArrayRecord(count:uint = 0, countExtended:uint = 0, lineStyles:Vector.<LineStyleRecord> = null)
... | 21,401 |
https://github.com/gcontarini/42course/blob/master/push_swap/Makefile | Github Open Source | Open Source | MIT | null | 42course | gcontarini | Makefile | Code | 169 | 663 | ################### FILES ###################
FILES = ps_args.c \
ps_errors.c \
ps_checksort.c \
ps_insert_sort.c \
ps_selection_sort.c \
ps_mp_sort.c \
ps_mp_sort_a.c \
ps_mp_sort_b.c \
ps_naive_sort.c \
ps_radix_sort.c \
ps_push.c \
ps_rot.c \
ps_rrot.c ... | 20,306 |
https://github.com/endojs/endo/blob/master/packages/test262-runner/test262/test/language/module-code/instn-iee-trlng-comma.js | Github Open Source | Open Source | Apache-2.0, BSD-3-Clause, LicenseRef-scancode-ecma-no-patent | 2,023 | endo | endojs | JavaScript | Code | 99 | 245 | // Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
ExportsList in ExportDeclaration may include a trailing comma
esid: sec-moduledeclarationinstantiation
info: |
[...]
9. For each ExportEntry Record e... | 23,816 |
https://github.com/GTNewHorizons/ExtraCells2/blob/master/src/main/scala/extracells/part/PartOreDictExporter.java | Github Open Source | Open Source | MIT | 2,023 | ExtraCells2 | GTNewHorizons | Java | Code | 1,391 | 4,976 | package extracells.part;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Objects;
import java.util.function.Predicate;
import java.util.regex.Pattern;
import java.util.regex.PatternSyntaxException;
import java.util.stream.IntStream;
import net.minecraft.client.renderer.Re... | 25,130 |
https://github.com/NeuroGameJam/dodge/blob/master/Source Code/Assets/Prefabs/Robots.prefab | Github Open Source | Open Source | MIT | 2,018 | dodge | NeuroGameJam | Unity3D Asset | Code | 12,490 | 56,904 | %YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1001 &100100000
Prefab:
m_ObjectHideFlags: 1
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications: []
m_RemovedComponents: []
m_ParentPrefab: {fileID: 0}
m_RootGameObject: {fileID: 1328241078786856}
m_IsPrefabParent: ... | 21,212 |
https://github.com/auvagha-jb/Hostel_99-CI/blob/master/application/views/student/book/checkout.php | Github Open Source | Open Source | MIT | 2,021 | Hostel_99-CI | auvagha-jb | PHP | Code | 180 | 803 | <?php
//Load model
$CI = &get_instance();
$CI->load->model('actions/cart');
$cart = $CI->cart;
$id = $_SESSION['hostel_no'];
$hostel_name = $_SESSION['hostel_name'];
$type = $_SESSION['type'];
$_SESSION['room'] = $_GET['room'];
// redirect to home if cart is empty
if($cart->total_items() < 1){
redirect('student... | 3,941 |
https://github.com/Ravi-041/devops-playground/blob/master/terraform-localstack-policy-source/main.tf | Github Open Source | Open Source | Unlicense | 2,021 | devops-playground | Ravi-041 | HCL | Code | 87 | 293 | provider "aws" {
region = "us-west-2"
access_key = "0"
secret_key = "0"
skip_credentials_validation = true
skip_requesting_account_id = true
skip_metadata_api_check = true
s3_force_path_style = true
# In order to Mock with localstack
endpoints {
iam = "http://localhost:4566"
}
}
data "aws_iam_p... | 53,663 |
https://github.com/palestar/gamecq/blob/master/ThirdParty/BCGControlBar/BCGControlBar/BCGTearOffManager.h | Github Open Source | Open Source | MIT | 2,020 | gamecq | palestar | C++ | Code | 174 | 681 | //*******************************************************************************
// COPYRIGHT NOTES
// ---------------
// This is a part of the BCGControlBar Library
// Copyright (C) 1998-2006 BCGSoft Ltd.
// All rights reserved.
//
// This source code can be used, distributed or modified
// only under terms and condi... | 15,559 |
https://github.com/zqqiang/household-manager/blob/master/marionette/theme/project/less/home.less | Github Open Source | Open Source | MIT | null | household-manager | zqqiang | Less | Code | 83 | 314 | .login-page, .signup-page, .employee-table, .designer-table, .employee-table, .designer-form, .customer-form, .order-table {
.center-block();
width: 800px;
}
.customer-table {
.center-block();
width: 1000px;
}
a, h1, h4, label, span, caption, th, td, option {
font-family: Microsoft YaHei, '宋体', Taho... | 26,034 |
https://github.com/StevenBlack/aws-sdk-rust/blob/master/sdk/devopsguru/src/error_meta.rs | Github Open Source | Open Source | Apache-2.0 | null | aws-sdk-rust | StevenBlack | Rust | Code | 2,168 | 10,431 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// All possible error types for this service.
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum Error {
/// <p> You don't have permissions to perform the requested operation. The user or role that is making the request must have a... | 10,052 |
https://github.com/jimmy319/useLazyImg/blob/master/src/useLazyImg.js | Github Open Source | Open Source | MIT | 2,021 | useLazyImg | jimmy319 | JavaScript | Code | 245 | 524 | import { useState, useEffect } from "react";
/**
* useLazyImg is a custom hook help you load image only when needed
* How it works:
* This hook exposes a state: imgSrc which is initialized with param - placeholder and it will be set to the actual image url once the custom effect being fired.
* @param {String} imgU... | 25,424 |
https://github.com/sandyhouse/Paddle/blob/master/paddle/infrt/common/CMakeLists.txt | Github Open Source | Open Source | Apache-2.0 | 2,022 | Paddle | sandyhouse | CMake | Code | 18 | 97 | core_gather_headers()
set(core_includes "${core_includes};infrt/common/dtype.def" CACHE INTERNAL "")
gather_srcs(infrt_src SRCS
dtype.cc
global.cc
target.cc
type.cc
shared.cc
object.cc
string.cc
buffer.cc
memory.cc
)
| 3,744 |
https://github.com/CMSgov/managed-care-review/blob/master/dev_tool/src/test/web.ts | Github Open Source | Open Source | CC0-1.0 | null | managed-care-review | CMSgov | TypeScript | Code | 115 | 366 | import LabeledProcessRunner from '../runner.js'
import { spawn } from 'child_process'
import {
compileGraphQLTypesWatchOnce,
compileGraphQLTypesOnce,
installWebDepsOnce,
compileProto,
compileProtoWatch,
} from '../local/index.js'
export async function runWebTestsWatch(jestArgs: string[]) {
con... | 50,769 |
https://github.com/mike-neck/kuickcheck/blob/master/core/src/test/kotlin/org/mikeneck/kuickcheck/generator/NullableGeneratorTest.kt | Github Open Source | Open Source | Apache-2.0 | 2,021 | kuickcheck | mike-neck | Kotlin | Code | 158 | 385 | /*
* Copyright 2016 Shinya Mochida
*
* Licensed under the Apache License,Version2.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... | 36,774 |
https://github.com/atouchofyuhui/Mall/blob/master/src/views/detail/detailCom/DetailParams.vue | Github Open Source | Open Source | MIT | 2,021 | Mall | atouchofyuhui | Vue | Code | 112 | 380 | <template>
<div class="detailParams" v-if="Object.keys(detailParams).length !== 0">
<table>
<tr v-for="(item, index) in detailParams.info.set" :key="index">
<td>{{ item.key }}</td>
<td>{{ item.value }}</td>
</tr>
</table>
<table v-for="(item, index) in detailParams.rule.tables... | 56,636 |
https://github.com/mdklatt/idea-netcdf-plugin/blob/master/src/main/kotlin/software/mdklatt/idea/netcdf/files/CdlFile.kt | Github Open Source | Open Source | Apache-2.0 | 2,021 | idea-netcdf-plugin | mdklatt | Kotlin | Code | 163 | 490 | /**
* Common Data Langauge (CDL) file support.
*/
package software.mdklatt.idea.netcdf.files
import com.intellij.icons.AllIcons
import com.intellij.openapi.fileTypes.UserFileType
import com.intellij.openapi.options.SettingsEditor
/**
* CDL file type.
*
* @see: <a href="https://plugins.jetbrains.com/docs/intelli... | 6,076 |
https://github.com/rakeshwalisheter/sanskrit/blob/master/dcs/data/conllu/files/Mahābhārata/Mahābhārata-0104-MBh, 1, 105-3039.conllu | Github Open Source | Open Source | CC-BY-4.0 | 2,021 | sanskrit | rakeshwalisheter | null | Spoken | 15,334 | 49,792 | ## text: Mahābhārata
## text_id: 154
## chapter: MBh, 1, 105
## chapter_id: 3039
# text_line: vaiśaṃpāyana uvāca
# text_line_id: 168105
# text_line_counter: 1
# text_line_subcounter: 1
1 vaiśaṃpāyana vaiśampāyana NOUN NC Case=Nom|Gender=Masc|Number=Sing _ _ _ _ 118517 _ _
2 uvāca vac VERB V Tense=Perf|Mood=Ind|Person=... | 4,296 |
https://github.com/jcmgray/xyzpy/blob/master/xyzpy/plot/plotter_bokeh.py | Github Open Source | Open Source | MIT | 2,023 | xyzpy | jcmgray | Python | Code | 2,069 | 7,278 | """
"""
# TODO: marker alpha
import functools
import itertools
import numpy as np
from ..manage import auto_xyz_ds
from .core import (
Plotter,
AbstractLinePlot,
AbstractScatter,
AbstractHeatMap,
calc_row_col_datasets,
PLOTTER_DEFAULTS,
intercept_call_arg,
prettify,
)
@functools.lru... | 29,267 |
https://github.com/magma-database/magma/blob/master/src/Ma-Client-Server-Core.package/MaNetworkOrchestra.class/instance/startBlock..st | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,017 | magma | magma-database | null | Spoken | 24 | 40 | accessing
startBlock: aBlock
"The block of code to run immediately upon launch, after becoming the conductor but before launching any players."
startBlock := aBlock | 5,044 |
https://github.com/ScalablyTyped/Distribution/blob/master/d/_dot_typescript-nn5FuAjk/src/main/scala/typings/typescriptNn5FuAjk/global/WebGL2RenderingContext.scala | Github Open Source | Open Source | MIT | 2,023 | Distribution | ScalablyTyped | Scala | Code | 3,970 | 25,255 | package typings.typescriptNn5FuAjk.global
import typings.typescriptNn5FuAjk.GLenum
import typings.typescriptNn5FuAjk.GLint64
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
/* This class was inferred from... | 33,526 |
https://github.com/sarvex/flambe/blob/master/command/data/scaffold/src/urgame/Main.hx | Github Open Source | Open Source | MIT | 2,021 | flambe | sarvex | Haxe | Code | 97 | 294 | package urgame;
import flambe.Entity;
import flambe.System;
import flambe.asset.AssetPack;
import flambe.asset.Manifest;
import flambe.display.FillSprite;
import flambe.display.ImageSprite;
class Main
{
private static function main ()
{
// Wind up all platform-specific stuff
System.init();
... | 26,134 |
https://github.com/kdn-nrw/ozg/blob/master/src/Entity/ModelRegionBeneficiary.php | Github Open Source | Open Source | MIT | null | ozg | kdn-nrw | PHP | Code | 205 | 649 | <?php
/**
* This file is part of the KDN OZG package.
*
* @author Gert Hammes <info@gerthammes.de>
* @copyright 2020 Gert Hammes
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace App\Entity;
use App\Entity\Base\BaseNa... | 25,784 |
https://github.com/hirnimeshrampuresoftware/mocpy/blob/master/mocpy/moc/plot/wcs.py | Github Open Source | Open Source | BSD-3-Clause | 2,022 | mocpy | hirnimeshrampuresoftware | Python | Code | 346 | 1,184 | import numpy as np
from astropy import coordinates
from astropy import wcs
import astropy.units as u
from matplotlib.pyplot import figure
class World2ScreenMPL:
"""
Create a World2ScreenMPL for vizualizing a MOC in a matplotlib axis.
Parameters
----------
fig : `~matplotlib.pyplot.figure`
... | 6,615 |
https://github.com/hsundar/sort/blob/master/Makefile | Github Open Source | Open Source | MIT | null | sort | hsundar | Makefile | Code | 190 | 958 | AR=ar
CXX=mpicxx
NVCXX=nvcc
RM=rm -r -f
MKDIRS=mkdir -p
INCDIR=-I./include -I./include/oct -I./include/point -I./include/par -I./include/binOps -I./include/seq -I./include/omp_par -I./include/sse -I./include/gensort -I./include/avx -I$(PAPI_INC)
SRCDIR=./src
OBJDIR=./obj
LIBDIR=./lib
BINDIR=./bin
TMPDIR=./tmp
KWAY=2
N... | 35,711 |
https://github.com/box-software/SlinkyTyped/blob/master/o/otplib/src/main/scala/typingsSlinky/otplib/coreMod.scala | Github Open Source | Open Source | MIT | 2,020 | SlinkyTyped | box-software | Scala | Code | 87 | 399 | package typingsSlinky.otplib
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation._
@JSImport("otplib/core", JSImport.Namespace)
@js.native
object coreMod extends js.Object {
val hotpCheck: typingsSlinky.otplib.hotpCheck = js.native
val hotpCounter: typingsSlinky.otplib.hotpCount... | 53,762 |
https://github.com/w2h/SomeTool/blob/master/Entry/src/rank/def/RankTypeDef.as | Github Open Source | Open Source | MIT | 2,021 | SomeTool | w2h | null | Spoken | 159 | 451 | package rank.def
{
public class RankTypeDef
{
public static const COMBAT_0:uint = 10;
public static const COMBAT_1:uint = 11;
public static const COMBAT_2:uint = 12;
public static const COMBAT_3:uint = 13;
public static const COMBAT_4:uint = 14;
... | 10,812 |
https://github.com/avvolodin/aceproxy/blob/master/plugins/ttv_plugin.py | Github Open Source | Open Source | MIT | 2,016 | aceproxy | avvolodin | Python | Code | 310 | 1,270 | # coding=utf-8
'''
Torrent-tv.ru Playlist Downloader Plugin
http://ip:port/ttv
'''
import re
import logging
import urllib2
import time
import gevent
from modules.PluginInterface import AceProxyPlugin
from modules.PlaylistGenerator import PlaylistGenerator
import config.ttv as config
import urllib
import urlparse
class... | 35,289 |
https://github.com/xie4ever/alidayu/blob/master/setter.go | Github Open Source | Open Source | Apache-2.0 | null | alidayu | xie4ever | Go | Code | 50 | 126 | package alidayu
// Setter ...
type Setter func(config *config) error
// WithAppKey ...
func WithAppKey(appKey string) Setter {
return func(config *config) error {
config.appKey = appKey
return nil
}
}
// WithAppSecret ...
func WithAppSecret(appSecret string) Setter {
return func(config *config) error {
conf... | 52,607 |
https://github.com/bersuad/itu/blob/master/application/controllers/Country.php | Github Open Source | Open Source | MIT | null | itu | bersuad | PHP | Code | 84 | 391 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Country extends CI_Controller
{
public function add_new()
{
$c_name = $this->input->post('c_name');
$data = array(
"country_name" => $c_name,
);
$this->CountryModel->newCountry($data);
$thi... | 54,561 |
https://github.com/kaushaldeo/Olympics/blob/master/Olympics/ViewControllers/KDMedalsViewController.swift | Github Open Source | Open Source | Apache-2.0 | 2,016 | Olympics | kaushaldeo | Swift | Code | 1,097 | 3,381 | //
// KDMedalsViewController.swift
// Olympics
//
// Created by Kaushal Deo on 6/27/16.
// Copyright © 2016 Scorpion Inc. All rights reserved.
//
import UIKit
import CoreData
class KDMedalsViewController: UITableViewController, NSFetchedResultsControllerDelegate {
lazy var country : Country = {
... | 45,538 |
https://github.com/pavedroad-io/eventbrige-ux/blob/master/portal/src/app/schemas/configuration.ts | Github Open Source | Open Source | CC0-1.0 | null | eventbrige-ux | pavedroad-io | TypeScript | Code | 80 | 238 | import { Hook } from './hook';
import { Dependencies } from './dependencies';
import { Triggers } from './triggers';
export class Configuration {
hook: Hook;
dependencies: Dependencies;
triggers: Triggers;
name: string;
environment: string;
version: string;
kubectx: string;
manifests: string;
templa... | 4,076 |
https://github.com/pcwalton/rust-bindgen/blob/master/tests/expectations/tests/default-template-parameter.rs | Github Open Source | Open Source | BSD-3-Clause | 2,021 | rust-bindgen | pcwalton | Rust | Code | 118 | 447 | #![allow(
dead_code,
non_snake_case,
non_camel_case_types,
non_upper_case_globals
)]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Foo<T, U> {
pub t: T,
pub u: U,
pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<T>>,
pub _phantom_1: ::std::marker::PhantomData<::s... | 18,522 |
https://github.com/ApcarJo/Back-DogeCoin/blob/master/routes/userRouter.js | Github Open Source | Open Source | MIT | null | Back-DogeCoin | ApcarJo | JavaScript | Code | 179 | 510 |
const router = require("express").Router();
const userController = require("../controllers/userController.js");
const authUser = require("../middleware/authUser.js");
// POST - Create a new user
router.post("/", async(req, res) => {
try {
const data = req.body;
res.json(await userController.cre... | 54,073 |
https://github.com/dmitry-kulikov/cpanel-api/blob/master/src/Auth.php | Github Open Source | Open Source | MIT | 2,021 | cpanel-api | dmitry-kulikov | PHP | Code | 401 | 1,085 | <?php
namespace kdn\cpanel\api;
use kdn\cpanel\api\exceptions\InvalidConfigException;
/**
* Class Auth.
* @package kdn\cpanel\api
*/
class Auth extends Object
{
/**
* Names of authentication methods.
*/
const SINGLE_SIGN_ON = 'singleSignOn';
const USERNAME_PASSWORD = 'usernamePassword';
... | 50,131 |
https://github.com/taylorbrooks/Avalanche/blob/master/Plugin/Transactions/AppInteractionTransaction.cs | Github Open Source | Open Source | ECL-2.0 | 2,019 | Avalanche | taylorbrooks | C# | Code | 560 | 1,419 | // <copyright>
//
// Licensed under the Southeast Christian Church License (the "License");
// you may not use this file except in compliance with the License.
// A copy of the License shoud be included with this file.
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the... | 51,793 |
https://github.com/sumukhabsholla/FundooNotes/blob/master/Fundoo/src/app/registration/registration.component.ts | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,018 | FundooNotes | sumukhabsholla | TypeScript | Code | 467 | 1,171 | import { Component, OnInit } from "@angular/core";
import { FormControl, Validators } from "@angular/forms";
import { DataService } from "../Services/data.service";
import { Accounts } from "../core/model/notes";
@Component({
selector: "app-registration",
templateUrl: "./registration.component.html",
styleU... | 47,466 |
https://github.com/fakecoinbase/SeriyinslashKnowLedger/blob/master/ledger-core/db/src/main/kotlin/org/knowledger/ledger/database/StorageType.kt | Github Open Source | Open Source | MIT | 2,021 | SeriyinslashKnowLedger | fakecoinbase | Kotlin | Code | 25 | 113 | package org.knowledger.ledger.database
enum class StorageType {
BOOLEAN,
BYTE,
INTEGER,
LONG,
FLOAT,
DOUBLE,
DECIMAL,
TIME,
STRING,
BYTES,
LINK,
LIST,
SET,
MAP,
LISTEMBEDDED,
HASH,
PAYOUT,
DIFFICULTY
} | 38,278 |
https://github.com/Vipul26Singh/cooperative_bank/blob/master/Copyright.php | Github Open Source | Open Source | MIT | 2,018 | cooperative_bank | Vipul26Singh | PHP | Code | 25 | 74 | <?php
/* include '../superadmin-session.php';
include 'config.php'; */
echo "<b>Copyright © 2016-2017 Salonzap.com, All Rights Reserved.</b>";
?>
<!--
<span>Copyright © 2016-2017 Salonzap.com, All Rights Reserved.</span> -->
| 4,646 |
https://github.com/abdullah/vuex-module-generator/blob/master/src/state/clone.js | Github Open Source | Open Source | MIT | 2,019 | vuex-module-generator | abdullah | JavaScript | Code | 22 | 58 | export default function createCloneState() {
return {
cloning: {
id: '',
isLoading: false,
hasError: false,
data: {},
errors: {}
}
};
}
| 94 |
https://github.com/maandree/libaxl/blob/master/Makefile | Github Open Source | Open Source | 0BSD | 2,020 | libaxl | maandree | Makefile | Code | 758 | 10,002 | .POSIX:
LIB_MAJOR = 0
LIB_MINOR = 1
LIB_VERSION = $(LIB_MAJOR).$(LIB_MINOR)
CONFIGFILE = config.mk
OSCONFIGFILE = linux.mk
include $(CONFIGFILE)
include $(OSCONFIGFILE)
OBJ =\
libaxl_attach.o\
libaxl_close.o\
libaxl_connect.o\
libaxl_connect_without_handshake.o\
libaxl_context_create.o\
libaxl_context_free.o\... | 6,978 |
https://github.com/LibertyPie/libertypie-p2p/blob/master/contracts/PriceFeeds/PriceFeed.sol | Github Open Source | Open Source | MIT | 2,021 | libertypie-p2p | LibertyPie | Gerber Image | Code | 245 | 928 | /*
* LibertyPie Project (https://libertypie.com)
* @author https://github.com/libertypie (hello@libertypie.com)
* @license SPDX-License-Identifier: MIT
*/
pragma solidity ^0.7.6;
pragma experimental ABIEncoderV2;
import "./Oracles/IPriceFeed.sol";
import "./Oracles/ChainLink.sol";
import "./Oracles/OpenPriceFeed.sol";... | 30,055 |
https://github.com/surajmulani/challenger/blob/master/lib/challenger.rb | Github Open Source | Open Source | MIT | 2,013 | challenger | surajmulani | Ruby | Code | 18 | 86 | require "capistrano"
require "capistrano/cli"
require "bundler/capistrano"
require "challenger/version"
Capistrano::Configuration.instance.load do
Dir.glob(File.join(File.dirname(__FILE__), '/challenger/recipes/*.rb')).each { |f| load f }
end
| 848 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.