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/aviks/SMTPClient.jl/blob/master/src/SMTPClient.jl | Github Open Source | Open Source | MIT | 2,023 | SMTPClient.jl | aviks | Julia | Code | 68 | 299 | module SMTPClient
using Distributed
using LibCURL
using Dates
using Base64
using Markdown
import Base: convert
import Sockets: send
export SendOptions, SendResponse, send
export get_body, get_mime_msg
include("utils.jl")
include("types.jl")
include("cbs.jl") # callbacks
include("mail.jl")
include("mime_types.jl")
... | 18,932 |
https://github.com/PaddlePaddle/Paddle-Lite/blob/master/lite/backends/nnadapter/nnadapter/src/utility/string.cc | Github Open Source | Open Source | Apache-2.0 | 2,023 | Paddle-Lite | PaddlePaddle | C++ | Code | 196 | 461 | // Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... | 16,933 |
https://github.com/FabioRosado/mdx-embed/blob/master/examples/mdx-deck-demo/Layout.js | Github Open Source | Open Source | MIT | null | mdx-embed | FabioRosado | JavaScript | Code | 21 | 63 | import React from 'react';
import { MDXEmbedProvider } from 'mdx-embed';
export default ({ children }) => (
<div>
<MDXEmbedProvider>{children}</MDXEmbedProvider>
</div>
);
| 37,778 |
https://github.com/jjt20/scripts/blob/master/remesher/libremesh/densityfield.h | Github Open Source | Open Source | MIT | 2,021 | scripts | jjt20 | C | Code | 858 | 2,129 | #ifndef REMESHER_DENSITY_FIELD_HEADER
#define REMESHER_DENSITY_FIELD_HEADER
#include <vector>
#include "defines.h"
#include "refptrarray.h"
#include "vec2.h"
#include "trianglemesh.h"
#include "vertexinfo.h"
#include "featureedges.h"
REMESHER_NAMESPACE_BEGIN
struct DensityFieldConf
{
/* Alpha and beta describes h... | 10,562 |
https://github.com/stevenwatterson/MortalityStatistics/blob/master/assets/css/style.scss | Github Open Source | Open Source | CC0-1.0 | 2,021 | MortalityStatistics | stevenwatterson | SCSS | Code | 9 | 33 | ---
---
@import "jekyll-theme-minimal";
h1 {
color: #ff6666;
}
| 23,786 |
https://github.com/ImNotARobot742/DofusProtocol/blob/master/DofusProtocol/D2Parser/Protocol/Messages/game/context/roleplay/houses/HouseToSellListMessage.cs | Github Open Source | Open Source | MIT | null | DofusProtocol | ImNotARobot742 | C# | Code | 131 | 465 |
// Generated on 03/23/2022 09:50:24
using System;
using System.Collections.Generic;
using System.Linq;
using AmaknaProxy.API.Protocol.Types;
using AmaknaProxy.API.IO;
using AmaknaProxy.API.Network;
namespace AmaknaProxy.API.Protocol.Messages
{
public class HouseToSellListMessage : NetworkMessage
{
pu... | 15,307 |
https://github.com/manojpandey/CodeSprint_India_2014/blob/master/Qualification_Round_2/Editorials/array_simp_2.py | Github Open Source | Open Source | MIT | null | CodeSprint_India_2014 | manojpandey | Python | Code | 103 | 299 | t = int(raw_input())
MOD = 10**9 + 7
def modexp(a,b):
res = 1
while b:
if b&1:
res *= a
res %= MOD
a = (a*a)%MOD
b /= 2
return res
fn = [1 for _ in xrange(100001)]
ifn = [1 for _ in xrange(100001)]
for i in range(1,100000):
fn[i] = fn[i-1] * i
fn[i] %... | 2,958 |
https://github.com/Rudigus/general-python/blob/master/OBI/figurinhas.py | Github Open Source | Open Source | MIT | 2,021 | general-python | Rudigus | Python | Code | 48 | 127 | # Rudigus - OBI 2018 - Programação Nível Senior - Fase 1 - Figurinhas da copa
n, c, m = input().split()
x = input().split()
y = input().split()
figurinhasFaltando = len(x)
for i in range(len(y)):
for j in range(len(x)):
if(y[i] == x[j]):
figurinhasFaltando -= 1
x[j] = -1
print(figur... | 51,457 |
https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/nbayes/index.d.ts | Github Open Source | Open Source | MIT | 2,023 | DefinitelyTyped | DefinitelyTyped | TypeScript | Code | 472 | 1,224 | // Type definitions for nbayes 3.0
// Project: https://github.com/derhuerst/nbayes
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export = nbayes;
/**
* Creates a classifier, which can `learn` and then `classify` documents into c... | 9,309 |
https://github.com/merchantli/background_page/blob/master/pages/client/js/popoverr.js | Github Open Source | Open Source | MIT | null | background_page | merchantli | JavaScript | Code | 114 | 499 | const userr = document.querySelectorAll('.u_ser');
const pover = document.querySelector('.popoverr');
const acquire = document.querySelector('.acquire');
const close_btn = document.querySelector('.top_close');
let allHtml = '',
printHtml = '',
printStart = '',
printEnd = '';
//点击用户名时出现模态框
userr.forEach((ite... | 46,531 |
https://github.com/shipard/shipard/blob/master/src/_deprecated/lib/core/DocumentInfo.php | Github Open Source | Open Source | BSD-3-Clause | 2,022 | shipard | shipard | PHP | Code | 37 | 96 | <?php
namespace lib\core;
use e10\utility;
/**
* Class DocumentInfo
* @package lib\core
*/
class DocumentInfo extends Utility
{
/** @var \e10\DocumentCard */
var $card;
var $projectNdx = 0;
var $personNdx = 0;
var $tileMode = 0;
}
| 43,593 |
https://github.com/Azure/durabletask/blob/master/test/DurableTask.Test.Orchestrations/Performance/TestOrchestration.cs | Github Open Source | Open Source | Apache-2.0 | 2,023 | durabletask | Azure | C# | Code | 288 | 815 | // ----------------------------------------------------------------------------------
// Copyright Microsoft 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.... | 32,935 |
https://github.com/Stapleton/ZenScript/blob/master/server/services/zsHover.ts | Github Open Source | Open Source | MIT | 2,019 | ZenScript | Stapleton | TypeScript | Code | 13 | 36 | export class ZenScriptHover {
constructor() {
//
}
doHover() {
//
}
}
| 42,705 |
https://github.com/bogo8liuk/Cmd-line-chat/blob/master/cl_utils.c | Github Open Source | Open Source | MIT | null | Cmd-line-chat | bogo8liuk | C | Code | 817 | 2,534 | /*
Cmd-line-chat
MIT License
Copyright (c) 2020 bogo8liuk
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 rights
to use, copy, modify, merge... | 42,382 |
https://github.com/ci-xulj/myrepo2/blob/master/src/main/java/testTravis/HiTravis.java | Github Open Source | Open Source | Apache-2.0 | 2,014 | myrepo2 | ci-xulj | Java | Code | 21 | 73 | package testTravis;
public class HiTravis {
public static void sayHi(){
System.out.println("Hi, travis");
}
public static void sayBye(){
System.out.println("Bye, travis");
}
}
| 53,254 |
https://github.com/nickjs/batman/blob/master/tests/batman/utilities/_batman_test.coffee | Github Open Source | Open Source | MIT | 2,021 | batman | nickjs | CoffeeScript | Code | 331 | 1,737 |
QUnit.module "_Batman",
setup: ->
class @Animal extends Batman.Object
Batman.initializeObject @::
class @Snake extends @Animal
Batman.initializeObject @::
class @BlackMamba extends @Snake
Batman.initializeObject @::
@mamba = new @BlackMamba()
@snake = new @Snake()
true
... | 30,451 |
https://github.com/sam1016yu/cicada-exp-sigmod2017/blob/master/foedus_code/foedus-core/src/foedus/xct/retrospective_lock_list.cpp | Github Open Source | Open Source | Apache-2.0 | null | cicada-exp-sigmod2017 | sam1016yu | C++ | Code | 1,886 | 6,187 | /*
* Copyright (c) 2014-2015, Hewlett-Packard Development Company, LP.
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 2 of the License, or (at your option)
* any later versi... | 3,545 |
https://github.com/emileypalmquist/run-training-app/blob/master/runner-backend/db/migrate/20191112214241_create_runs.rb | Github Open Source | Open Source | MIT | 2,019 | run-training-app | emileypalmquist | Ruby | Code | 34 | 113 | class CreateRuns < ActiveRecord::Migration[6.0]
def change
create_table :runs do |t|
t.float :distance
t.float :pace
t.date :date
t.integer :rating
t.references :goal, null: false, foreign_key: true
t.references :runner, null: false, foreign_key: true
t.timestamps
en... | 41,593 |
https://github.com/rmpestano/cukedoctor/blob/master/cukedoctor-converter/src/test/java/com/github/cukedoctor/util/Features.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | cukedoctor | rmpestano | Java | Code | 329 | 1,705 | package com.github.cukedoctor.util;
import com.github.cukedoctor.api.model.Feature;
import com.github.cukedoctor.api.model.Match;
import com.github.cukedoctor.api.model.Result;
import com.github.cukedoctor.api.model.Scenario;
import com.github.cukedoctor.api.model.Status;
import com.github.cukedoctor.api.model.Type;
i... | 37,083 |
https://github.com/ecomrobotics/appium/blob/master/lib/devices/android/bootstrap/src/io/appium/android/bootstrap/exceptions/UiSelectorSyntaxException.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | appium | ecomrobotics | Java | Code | 39 | 111 | package io.appium.android.bootstrap.exceptions;
import io.appium.android.bootstrap.utils.UiSelectorParser;
/**
* An exception involving an {@link UiSelectorParser}.
*
* @param msg
* A descriptive message describing the error.
*/
@SuppressWarnings("serial")
public class UiSelectorSyntaxException extends ... | 6,579 |
https://github.com/mebusw/LikeList/blob/master/WebRoot/form/bizSignup.jsp | Github Open Source | Open Source | Apache-2.0 | null | LikeList | mebusw | null | Spoken | 35 | 190 | <%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<html>
<head>
<title>JSP for BizSignupForm form</title>
</head>
<body>
<form action="/bizSignup">
aaa<input type=... | 603 |
https://github.com/TastySnax12/pokecrystal16-493-plus/blob/master/data/pokemon/base_stats/kecleon.asm | Github Open Source | Open Source | blessing | 2,021 | pokecrystal16-493-plus | TastySnax12 | Assembly | Code | 131 | 425 | db 0 ; species ID placeholder
db 60, 90, 70, 40, 60, 120
; hp atk def spd sat sdf
db NORMAL, NORMAL ; type
db 200 ; catch rate
db 132 ; base exp
db NO_ITEM, BITTER_BERRY ; items
db GENDER_F50 ; gender ratio
db 100 ; unknown 1
db 20 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/ke... | 33,472 |
https://github.com/chrisjhill/MVC/blob/master/Library/MyProject/Model/User.php | Github Open Source | Open Source | MIT | 2,021 | MVC | chrisjhill | PHP | Code | 89 | 194 | <?php
namespace MyProject\Model;
use Core;
/**
* Example of what your User Model might be.
*
* @copyright Copyright (c) 2012-2013 Christopher Hill
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
* @author Christopher Hill <cjhill@gmail.com>
* @package MVC
*/
class User exten... | 15,056 |
https://github.com/tiloio/transitional-deno/blob/master/node_modules/@parcel/compressor-gzip/lib/GzipCompressor.js | Github Open Source | Open Source | MIT | 2,021 | transitional-deno | tiloio | JavaScript | Code | 84 | 232 | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
function _plugin() {
const data = require("@parcel/plugin");
_plugin = function () {
return data;
};
return data;
}
function _zlib() {
const data = _interopRequireDefault(require("zlib"));
_zli... | 3,461 |
https://github.com/pontual/site-admin/blob/master/crud/link_edit_exec.php | Github Open Source | Open Source | MIT | 2,020 | site-admin | pontual | PHP | Code | 30 | 133 | <?php
require_once("get_dbh.php");
$sth = $dbh->prepare("update v2_link set nome = :nome, id_categoria = :id_categoria where id = :id");
$sth->execute([ ":nome" => $_POST['nome'],
":id_categoria" => $_POST['id_categoria'],
":id" => $_POST['id']]);
header("Location: pasta_edit_form.ph... | 7,200 |
https://github.com/brunofileh/esqueleto/blob/master/vendor/cyneek/yii2-widget-upload-crop/example/view/upload/index.php | Github Open Source | Open Source | BSD-3-Clause | 2,018 | esqueleto | brunofileh | PHP | Code | 58 | 218 | <?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $object \app\models\ExampleModel */
$form = ActiveForm::begin([
'options' => ['enctype' => 'multipart/form-data'] // important
]);
echo $form->field($object, 'name')->textInput();
// adds the upload crop widget
echo \cyneek\yii2\widget... | 20,121 |
https://github.com/gaguser/hachcat/blob/master/src/outfile.c | Github Open Source | Open Source | MIT | 2,019 | hachcat | gaguser | C | Code | 1,413 | 5,510 | /**
* Author......: See docs/credits.txt
* License.....: MIT
*/
#include "common.h"
#include "types.h"
#include "memory.h"
#include "event.h"
#include "convert.h"
#include "interface.h"
#include "hashes.h"
#include "mpsp.h"
#include "rp.h"
#include "rp_kernel_on_cpu.h"
#include "rp_kernel_on_cpu_optimized.h"
#inclu... | 31,681 |
https://github.com/gotoeasy/gotoeasy-orm/blob/master/src/test/groovy/top/gotoeasy/framework/orm/transaction/config/BookLogService.java | Github Open Source | Open Source | Apache-2.0 | null | gotoeasy-orm | gotoeasy | Java | Code | 47 | 203 | package top.gotoeasy.framework.orm.transaction.config;
import top.gotoeasy.framework.core.log.Log;
import top.gotoeasy.framework.core.log.LoggerFactory;
import top.gotoeasy.framework.ioc.annotation.Component;
import top.gotoeasy.framework.orm.annotation.Transaction;
@Component
public class BookLogService {
priva... | 11,567 |
https://github.com/reportportal/agent-java-junit/blob/master/src/test/java/com/epam/reportportal/junit/step/StepReporterFailureTest.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | agent-java-junit | reportportal | Java | Code | 336 | 1,201 | /*
* Copyright 2020 EPAM Systems
*
* 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 ... | 18,132 |
https://github.com/hmcclungiii/web-speech-recognizer/blob/master/src/speech-recognition-step-mode.js | Github Open Source | Open Source | MIT | 2,019 | web-speech-recognizer | hmcclungiii | JavaScript | Code | 320 | 1,237 | import SpeakRecognition from './speak-recognition';
let speakRecognizer;
let speechRecognizer;
let speechRecognizerStarted = false;
let onUserSpeech;
let onUserSpeak;
let waitingForResultTimeout;
const defaultConfig = {
lang: 'en-US',
interimResults: true,
maxAlternatives: 10,
};
const defaultState = {
error... | 5,953 |
https://github.com/dinagouda/EduCour/blob/master/src/app/admin/contentComp/signupstudnt/signupstudnt.component.ts | Github Open Source | Open Source | MIT | null | EduCour | dinagouda | TypeScript | Code | 72 | 289 | import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { TestService } from 'app/services/test.service';
import { Students } from '../../../interfaces/students';
@Component({
selector: 'app-signupstudnt',
templateUrl: './signupstudnt.component.html',
styleUrls: ['./si... | 40,529 |
https://github.com/vishalbelsare/h2o-3/blob/master/h2o-py/tests/testdir_apis/H2O_Module/pyunit_h2omake_metrics.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | h2o-3 | vishalbelsare | Python | Code | 177 | 848 | from __future__ import print_function
import sys
sys.path.insert(1,"../../../")
from tests import pyunit_utils
import h2o
from h2o.estimators import H2OGradientBoostingEstimator
from h2o.utils.typechecks import assert_is_type
from h2o.model.metrics_base import H2OMultinomialModelMetrics
def h2omake_metrics_mutlinomial... | 38 |
https://github.com/Thraix/Greet-Engine-Win/blob/master/Greet-core/src/graphics/textures/TextureManager.cpp | Github Open Source | Open Source | Apache-2.0 | 2,018 | Greet-Engine-Win | Thraix | C++ | Code | 110 | 488 | #include "TextureManager.h"
namespace Greet{
std::vector<Texture*> TextureManager::m_textures;
void TextureManager::Add(Texture* texture)
{
for (int i = 0;i < m_textures.size();i++)
{
if (texture->GetName() == m_textures[i]->GetName())
{
ErrorHandle::SetErrorCode(GREET_ERROR_MANAGER_ADD);
Log::E... | 26,030 |
https://github.com/fazland/doctrine-extra/blob/master/src/ODM/MongoDB/Exception/NoResultException.php | Github Open Source | Open Source | MIT | 2,019 | doctrine-extra | fazland | PHP | Code | 34 | 124 | <?php declare(strict_types=1);
namespace Fazland\DoctrineExtra\ODM\MongoDB\Exception;
use Doctrine\ODM\MongoDB\MongoDBException;
use Fazland\DoctrineExtra\Exception\NoResultExceptionInterface;
class NoResultException extends MongoDBException implements NoResultExceptionInterface
{
public function __construct()
... | 4,177 |
https://github.com/g-aleprojetos/Microcontroladores/blob/master/arduino/uno/04 - entradaAnalogica/programming/entradaAnalogica/entradaAnalogica.ino | Github Open Source | Open Source | MIT | null | Microcontroladores | g-aleprojetos | null | Spoken | 155 | 428 | /*
* AUTOR: Alexandre Gonçalves
* EMAIL:g.aleprojetos@gmail.com
* SKETCH:leitura da entrada analogica e enviaso pela comunicação serial
* ARQUIVO:conversão digital
* DATA:04/08/2020
*
*/
// *** Protótipo das Funções ***//
int ad_conv(); //função para conversão AD
// *** Programa Principal ... | 5,962 |
https://github.com/geodel1/milestone3.1/blob/master/resources/views/article/create.blade.php | Github Open Source | Open Source | MIT | 2,017 | milestone3.1 | geodel1 | Blade | Code | 17 | 88 | <h4>Create New Article</h4>
<form action="{{url('articles/create')}}" method="POST">
{{csrf_field()}}
Title: <input type="text" name="title"><br>
Content:<br>
<textarea name="content"></textarea><br>
<input type="submit">
</form> | 13,852 |
https://github.com/CJCHEN1230/AD-Census/blob/master/AD-Census/cost_computor.h | Github Open Source | Open Source | MIT | 2,023 | AD-Census | CJCHEN1230 | C++ | Code | 234 | 932 | /* -*-c++-*- AD-Census - Copyright (C) 2020.
* Author : Yingsong Li(Ethan Li) <ethan.li.whu@gmail.com>
* https://github.com/ethan-li-coding/AD-Census
* Describe : header of class CostComputor
*/
#ifndef AD_CENSUS_COST_COMPUTOR_H_
#define AD_CENSUS_COST_COMPUTOR_H_
#include "adcensus_types.h"
/**
* \brief 代價計算器類
*/... | 46,139 |
https://github.com/marrakch94/code-sample/blob/master/angularOlBank/src/app/model/NotificationDef.ts | Github Open Source | Open Source | MIT | 2,021 | code-sample | marrakch94 | TypeScript | Code | 41 | 110 | export enum NotifType {
EMAIL, WEB, BOTH
}
export enum NotifTarget {
USER, ADMIN, ALL, UNSPECIFIED
}
export class NotificationDef {
id: number;
title: string;
body: string;
type: NotifType;
target: NotifTarget;
action: string;
default: boolean;
schedule: boolean;
constructor... | 15,133 |
https://github.com/ArthurClemens/mmsvg/blob/master/google/msvg/action/watch-later.js | Github Open Source | Open Source | MIT | 2,019 | mmsvg | ArthurClemens | JavaScript | Code | 33 | 130 | var m = require('mithril');
module.exports = m.trust('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm4.2 14.2L11 13V7h1.5v5.2l4.5 2.7-.8 1.3z"/></svg>');
| 24,695 |
https://github.com/Frodevan/z88dk/blob/master/libsrc/_DEVELOPMENT/math/float/math16/lm16/c/sdcc/div2.asm | Github Open Source | Open Source | ClArtistic | null | z88dk | Frodevan | Assembly | Code | 10 | 55 |
SECTION code_fp_math16
PUBLIC _f16_div2
EXTERN cm16_sdcc_div2
defc _f16_div2 = cm16_sdcc_div2
| 12,246 |
https://github.com/czy880816/Geek-Framework/blob/master/src/main/java/com/geekcattle/util/MD5Util.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | Geek-Framework | czy880816 | Java | Code | 217 | 523 | /*
* Copyright (c) 2017-2018. 放牛极客<l_iupeiyu@qq.com>
* <p>
* 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 b... | 19,852 |
https://github.com/PhantomRay/matrix_api_lite/blob/master/lib/src/utils/try_get_map_extension.dart | Github Open Source | Open Source | MIT | null | matrix_api_lite | PhantomRay | Dart | Code | 489 | 965 | /* MIT License
*
* Copyright (C) 2019, 2020, 2021 Famedly GmbH
*
* 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 rights
* to use, copy,... | 33,298 |
https://github.com/Vestin/unknown-ci/blob/master/database/migrations/2017_07_14_034836_create_hooks_table.php | Github Open Source | Open Source | MIT | null | unknown-ci | Vestin | PHP | Code | 61 | 238 | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateHooksTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('hooks',function(B... | 54,211 |
https://github.com/pardoman/hig/blob/master/packages/profile-flyout/src/presenters/ProfileContentPresenter.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | hig | pardoman | JavaScript | Code | 153 | 461 | import React from "react";
import PropTypes from "prop-types";
import { css, cx } from "emotion";
import ThemeContext from "@hig/theme-context";
import { createCustomClassNames } from "@hig/utils";
import stylesheet from "./stylesheet";
export default function ProfileContentPresenter(props) {
const {
children,
... | 54,369 |
https://github.com/DecaTec/OCRmyFiles/blob/master/OCRmyFiles.sh | Github Open Source | Open Source | MIT | 2,022 | OCRmyFiles | DecaTec | Shell | Code | 790 | 1,859 | #!/bin/bash
# Bash script for adding a text layer to PDF files and converting images in PDFs (with OCR).
# Requirements:
# - OCRmyPDF: https://github.com/jbarlow83/OCRmyPDF
# Install instructions: https://ocrmypdf.readthedocs.io/en/latest/installation.html
# - Tesseract: https://github.com/tesseract-ocr/
# This is... | 46,999 |
https://github.com/nokia/moler/blob/master/test/device/test_device_configuration.py | Github Open Source | Open Source | BSD-3-Clause | 2,023 | moler | nokia | Python | Code | 1,906 | 10,959 | # -*- coding: utf-8 -*-
"""
Testing possibilities to configure devices
"""
__author__ = 'Michal Ernst, Marcin Usielski'
__copyright__ = 'Copyright (C) 2018-2021, Nokia'
__email__ = 'michal.ernst@nokia.com, marcin.usielski@nokia.com'
import os
import pytest
from moler.util.moler_test import MolerTest
from moler.conne... | 47,806 |
https://github.com/vprince1/generator-alfresco/blob/master/.eslintrc.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | generator-alfresco | vprince1 | JavaScript | Code | 36 | 137 | /* eslint-env node */
module.exports = {
"env": {
"node": true
},
"extends": "standard",
"plugins": [
"standard"
],
"rules": {
"comma-dangle": ["error", "always-multiline"],
"no-template-curly-in-string": ["off"],
"operator-linebreak": ["error", "before"],
"semi": ["error", "always",... | 34,908 |
https://github.com/alif989/project/blob/master/resources/js/pages/category/create.vue | Github Open Source | Open Source | MIT | 2,021 | project | alif989 | Vue | Code | 136 | 613 | <template>
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-header d-flex justify-content-between align-items-center">
<h5>Create Category</h5>
<router-link :... | 5,937 |
https://github.com/Lostefra/TranslationCoherence/blob/master/Datasets/EuroParl/ontologies/first_test/comparisons/en_VS_zh_sentence128.owl | Github Open Source | Open Source | MIT | null | TranslationCoherence | Lostefra | null | Spoken | 426 | 7,092 | <?xml version="1.0" encoding="utf-8"?>
<rdf:RDF
xmlns:translation_coherence_vocabulary="https://w3id.org/stlab/ke/amiala/translation_coherence/"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dct="http://purl.org/dc/terms/"
xmlns:owl="http://ww... | 27,760 |
https://github.com/kzawisto/mc/blob/master/mc/_dict.py | Github Open Source | Open Source | MIT | null | mc | kzawisto | Python | Code | 220 | 682 | import copy
class Dict(dict):
def __init__(self, args):
super(Dict, self).__init__(args)
def map_vals(self, func):
return Dict({key: func(key, val) for key, val in self.items()})
def map_keys(self, func):
return Dict({func(key, val): val for key, val in self.items()})
de... | 15,913 |
https://github.com/apexearth/quadtree-js/blob/master/tests/quadtree-tests.js | Github Open Source | Open Source | MIT | null | quadtree-js | apexearth | JavaScript | Code | 95 | 426 | var should = require('should');
var Quadtree = require('../quadtree');
describe('Quadtree Tests', function () {
it('does stuff', function () {
var quadtree = new Quadtree({
dimension: 8,
sectorObjectLimit: 1
});
quadtree.sectorCount.should.equal(0);
var ob... | 13,945 |
https://github.com/HieuNguyen3010/laravel/blob/master/php24_laravel/routes/web.php | Github Open Source | Open Source | MIT | 2,018 | laravel | HieuNguyen3010 | PHP | Code | 285 | 1,439 | <?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| ... | 43,690 |
https://github.com/daniel2643/Star-Wars-Game/blob/master/src/starwars/entities/actors/Droid.java | Github Open Source | Open Source | MIT | null | Star-Wars-Game | daniel2643 | Java | Code | 655 | 1,840 | package starwars.entities.actors;
import java.util.ArrayList;
import edu.monash.fit2099.gridworld.Grid;
import edu.monash.fit2099.simulator.space.Direction;
import edu.monash.fit2099.simulator.userInterface.MessageRenderer;
import starwars.SWActor;
import starwars.SWLegend;
import starwars.SWLocation;
import starwa... | 18,415 |
https://github.com/ibuttimer/canvasstrac-server/blob/master/test/test_elections.js | Github Open Source | Open Source | MIT | 2,023 | canvasstrac-server | ibuttimer | JavaScript | Code | 1,194 | 3,667 | /*jslint node: true */ /*eslint-env node,mocha*/
'use strict';
var testConsts = require('./test_consts'),
app_path = testConsts.app_path,
request = require('supertest'),
// assert = require('assert'),
chai = require('chai'),
assert = chai.assert,
// expect = chai.expect,
// should = chai.should(),
app ... | 38,454 |
https://github.com/pavlo-rishko/DynamicWeb/blob/master/Admin/Update/updates.xml.aspx | Github Open Source | Open Source | Apache-2.0 | 2,020 | DynamicWeb | pavlo-rishko | null | Spoken | 11,015 | 49,741 | <?xml version="1.0" encoding="utf-8" ?>
<updates>
<!--
Remember to update the corresponding versionnumber in AssemblyInfo.vb (AssemblyInformationalVersionAttribute).
Rules for version number can be found there as well.
-->
<current version="2147" releasedate="31-08-2020" internalversion="9.9.0.0" />... | 47,009 |
https://github.com/nfavero/nx/blob/master/packages/workspace/src/schematics/preset/preset.spec.ts | Github Open Source | Open Source | MIT | null | nx | nfavero | TypeScript | Code | 182 | 760 | import { Tree } from '@angular-devkit/schematics';
import { runSchematic } from '../../utils/testing';
import { createEmptyWorkspace } from '@nrwl/workspace/testing';
describe('preset', () => {
let projectTree: Tree;
beforeEach(() => {
projectTree = createEmptyWorkspace(Tree.empty());
});
it('should crea... | 3,214 |
https://github.com/raducrs/tableta-inmultirii-aws-lambda/blob/master/api/TI-PUser-StatusPut/index.js | Github Open Source | Open Source | Apache-2.0 | 2,020 | tableta-inmultirii-aws-lambda | raducrs | JavaScript | Code | 253 | 818 | var AWS = require('aws-sdk');
var dynamo = new AWS.DynamoDB();
exports.handler = function (event, context, callback) {
let cognitoSub = event.cognitoSub;
let cognitoUser
if (!cognitoSub){
cognitoUser = decodeJWT(event.jwtToken);
cognitoSub = cognitoUser.sub
}
const donationId ... | 49,669 |
https://github.com/MikeMilansky/vakol.by/blob/master/src/app/core/components/contacts/index.ts | Github Open Source | Open Source | MIT | null | vakol.by | MikeMilansky | TypeScript | Code | 8 | 21 | export * from './contacts.module';
export * from './contacts.component';
| 52,451 |
https://github.com/jonathangerbaud/KlyphMessenger/blob/master/KlyphMessenger/src/com/abewy/android/apps/klyph/messenger/service/PRosterEntry.aidl | Github Open Source | Open Source | MIT | 2,014 | KlyphMessenger | jonathangerbaud | null | Spoken | 4 | 30 | package com.abewy.android.apps.klyph.messenger.service;
parcelable PRosterEntry; | 36,534 |
https://github.com/gectorat/react-native-app/blob/master/js/components/tabMenu/styles.js | Github Open Source | Open Source | Apache-2.0 | 2,016 | react-native-app | gectorat | JavaScript | Code | 72 | 239 |
const React = require('react-native');
const { StyleSheet } = React;
module.exports = StyleSheet.create({
container: {
backgroundColor: '#FBFAFA',
},
row: {
flex: 1,
alignItems: 'center',
},
noTextView: {
flex: 1,
backgroundColor:'#ebeef0',
alignItems: 'center',
},
text: {
f... | 52,713 |
https://github.com/AoEiuV020/chromium-ccache-arm64/blob/master/7/3/356d62c4e4076a069ed21abc2a2e3e-3623.d | Github Open Source | Open Source | MIT | 2,021 | chromium-ccache-arm64 | AoEiuV020 | Makefile | Code | 3 | 66 | obj/components/performance_manager/public/mojom/mojom_blink/lifecycle.mojom-blink-test-utils.o: \
gen/components/performance_manager/public/mojom/lifecycle.mojom-blink-test-utils.cc
| 34,501 |
https://github.com/kararia/iviondb/blob/master/web/js/nrdb.tip.js | Github Open Source | Open Source | MIT | 2,022 | iviondb | kararia | JavaScript | Code | 293 | 1,071 | /* global NRDB */
(function (tip, $) {
var hide_event = 'mouseout',
prevent_all = false;
tip.prevent = function (event) {
prevent_all = true;
};
tip.display = function (event) {
var $this = $(this);
if(prevent_all || $this.hasClass('no-popup')) {
retu... | 4,557 |
https://github.com/dgibso29/F3_CA/blob/master/initServer.sqf | Github Open Source | Open Source | Unlicense | null | F3_CA | dgibso29 | SQF | Code | 545 | 1,199 | /* CA - Public Variables/General mission settings
To change a setting Change the middle variable in the array. ie for the example below change east to west
missionNamespace setVariable ["ca_defaultside",east, true];
missionNamespace setVariable ["Variable name for scripts etc",VALUE TO CHANGE, JIP compatability];
*/
... | 40,444 |
https://github.com/shuhai-etsu/WASP/blob/master/app/Http/Controllers/LogController.php | Github Open Source | Open Source | MIT | null | WASP | shuhai-etsu | PHP | Code | 32 | 119 | <?php
namespace App\Http\Controllers;
class LogController extends DefaultController
{
public function __construct()
{
// $this->middleware('auth');
}
public function index()
{
try
{
return view('pages/admin/system/log')
->with('sidebar... | 46,520 |
https://github.com/jdm7dv/rosyln/blob/master/Src/Test/PdbUtilities/Shared/SymUnmanagedReaderExtensions.cs | Github Open Source | Open Source | Apache-2.0 | 2,017 | rosyln | jdm7dv | C# | Code | 709 | 2,255 | // Copyright (c) Microsoft Open Technologies, Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Immutable;
using System.Diagnostics;
namespace Roslyn.Utilities.Pdb
{
internal static clas... | 45,451 |
https://github.com/Huukhanh994/Agricultural-social-network/blob/master/app/Models/Coupon.php | Github Open Source | Open Source | MIT | null | Agricultural-social-network | Huukhanh994 | PHP | Code | 32 | 124 | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Coupon extends Model
{
protected $table ='coupons';
protected $primaryKey = 'coupon_id';
protected $fillable = ['coupon_code','coupon_discount'];
public function products()
{
return $this->belongsToMany(Product::cl... | 15,355 |
https://github.com/OwenKelvin/angular-invoicing-backend/blob/master/app/Models/Purchase.php | Github Open Source | Open Source | MIT | 2,020 | angular-invoicing-backend | OwenKelvin | PHP | Code | 76 | 270 | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
/**
* @method static whereDate(string $string, string $string1, \Carbon\Carbon $start_date)
*/
class Purchase extends Model
{
protected $fillable = [
'product_id',
'seller_id',
'quantity',
'unit_price',
... | 5,670 |
https://github.com/josephcultimate/epic-app/blob/master/www/js/modules/tenant/create.hbs | Github Open Source | Open Source | ECL-2.0, Apache-2.0 | 2,015 | epic-app | josephcultimate | null | Spoken | 69 | 361 | <ol class="breadcrumb">
<li>{{#link-to "index" id="tenant_createTenant_navButton"}}Tenants{{/link-to}}</li>
<li id="tenant_createTenant_listItem" class="active">Create Tenant</li>
</ol>
<form class="form-horizontal" {{action "create" on="submit"}}>
{{form-input input-id="createTenant_name_input" label="Name... | 3,222 |
https://github.com/kmsync/bilge-adam-java-course/blob/master/week-10-multi-threading/homework/distributor/src/com/bilgeadam/simulator/ShareSimulator.java | Github Open Source | Open Source | MIT | null | bilge-adam-java-course | kmsync | Java | Code | 157 | 637 | package com.bilgeadam.simulator;
import com.bilgeadam.distributor.interfaces.Distributor;
import com.bilgeadam.model.Participant;
import com.bilgeadam.threads.DistributorThread;
import java.util.ArrayList;
import java.util.List;
import java.util.function.Consumer;
public class ShareSimulator {
public void simul... | 40,425 |
https://github.com/butirpadi/apppsb/blob/master/vendor/itbz/fpdf/src/fpdf/FPDF/EXTENDED.php | Github Open Source | Open Source | MIT | 2,022 | apppsb | butirpadi | PHP | Code | 2,104 | 4,441 | <?php
/**
*
* Copyright (c) 2011, Hannes Forsgård
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software to use, copy, modify, distribute, sublicense, and/or sell
* copies of the software, and to permit persons to whom the software is
* furnished to do so.
*
* THE S... | 28,167 |
https://github.com/ArkadiumInc/html5-module-analytics/blob/master/sample/src/js/com/arkadium/game/BaseDisplayObjectContainer.js | Github Open Source | Open Source | ISC | 2,016 | html5-module-analytics | ArkadiumInc | JavaScript | Code | 76 | 257 | /**
* Created by jedi on 26-Feb-16.
*/
var GameSettings = require('./GameSettings');
var BaseDisplayObjectContainer = function (game)
{
'use strict';
this._isDestroyed = false;
this._game = game;
Phaser.Group.call(this, this._game, null);
};
// ========== Prototype =========
BaseDisplayObjectConta... | 14,936 |
https://github.com/chpladmin/chpl-api/blob/master/chpl/chpl-service/src/main/java/gov/healthit/chpl/scheduler/job/summarystatistics/SummaryStatisticsEmailJob.java | Github Open Source | Open Source | BSD-3-Clause, BSD-2-Clause-Views | 2,023 | chpl-api | chpladmin | Java | Code | 423 | 1,985 | package gov.healthit.chpl.scheduler.job.summarystatistics;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.StandardCopyOption;
import java.time.ZoneOffset;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import j... | 50,241 |
https://github.com/ontnanda/Weshop-api/blob/master/node_modules/think-cluster/lib/master.js | Github Open Source | Open Source | MIT | 2,021 | Weshop-api | ontnanda | JavaScript | Code | 488 | 1,524 | const cluster = require('cluster');
const util = require('./util.js');
const net = require('net');
const stringHash = require('string-hash');
let waitReloadWorkerTimes = 0;
/**
* default options
*/
const defaultOptions = {
port: 0, // server listen port
host: '', // server listen host
sticky: false, // sticky... | 11,152 |
https://github.com/Br3nda/www.gittip.com/blob/master/gittip/authentication.py | Github Open Source | Open Source | CC0-1.0, LicenseRef-scancode-public-domain, LicenseRef-scancode-unknown-license-reference | 2,013 | www.gittip.com | Br3nda | Python | Code | 398 | 1,170 | """Defines website authentication helpers.
"""
import datetime
import rfc822
import time
import uuid
from aspen import Response
from aspen.utils import typecheck
from sqlalchemy.engine.base import RowProxy
from gittip.orm.tables import participants
from gittip.participant import Participant
from psycopg2.extras import... | 28,253 |
https://github.com/hk-k/churchtools_basic/blob/master/system/churchservice/churchservice_db.php | Github Open Source | Open Source | MIT | 2,019 | churchtools_basic | hk-k | PHP | Code | 1,956 | 6,539 | <?php
include_once('./'. CHURCHSERVICE .'/../churchcore/churchcore_db.php');
/**
* Rebind an event to a new Cal Event
* @param [type] $oldEventId
* @param [type] $newEventId
* @param [type] $splitDate
* @param [type] $untilEnd_yn
*/
function churchservice_rebindServicesToNewEvent($oldEventId, $newEventId, $split... | 1,186 |
https://github.com/MatthiasSchmickler/openroberta-lab/blob/master/OpenRobertaRobot/src/test/java/de/fhg/iais/roberta/testutil/test/JavaBeanTesterTest.java | Github Open Source | Open Source | MIT, GPL-3.0-only, Apache-2.0 | 2,019 | openroberta-lab | MatthiasSchmickler | Java | Code | 97 | 344 | package de.fhg.iais.roberta.testutil.test;
import org.junit.Test;
import de.fhg.iais.roberta.util.test.IValueBuilder;
import de.fhg.iais.roberta.util.test.JavaBeanTester;
public class JavaBeanTesterTest {
@Test
public void testSuccess() throws Exception {
JavaBeanTester.test(BeanTesterSuccess.class, ... | 48,432 |
https://github.com/MicrosoftDocs/mslearn-support-concurrency-blob-storage/blob/master/src/NewsEditor/NewsEditor.sln | Github Open Source | Open Source | MIT, CC-BY-4.0, LicenseRef-scancode-generic-cla | 2,023 | mslearn-support-concurrency-blob-storage | MicrosoftDocs | null | Spoken | 80 | 447 |
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.6.33801.468
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NewsEditor", "NewsEditor.csproj", "{C5352594-D887-4D3B-83F2-8D8EC80F003A}"
EndProject
Global
Globa... | 15,758 |
https://github.com/sanigo/fluxtream-app/blob/master/fluxtream-core/src/main/java/com/fluxtream/mvc/models/GuestModel.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | fluxtream-app | sanigo | Java | Code | 34 | 122 | package com.fluxtream.mvc.models;
import com.fluxtream.domain.Guest;
/**
*
* @author Candide Kemmler (candide@fluxtream.com)
*/
public class GuestModel {
public String fullname;
public String username;
public GuestModel(Guest guest) {
this.fullname = guest.getGuestName();
this.usernam... | 52,619 |
https://github.com/lechium/tvOS135Headers/blob/master/usr/libexec/locationd/CLStepDistanceEstimator.h | Github Open Source | Open Source | MIT | 2,020 | tvOS135Headers | lechium | C | Code | 69 | 233 | //
// Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Jun 10 2020 10:03:13).
//
// Copyright (C) 1997-2019 Steve Nygard.
//
#import <objc/NSObject.h>
@interface CLStepDistanceEstimator : NSObject
{
struct CLExtendedStepCountEntry _lastEntry; // 8 = 0x8
double _t... | 50,048 |
https://github.com/kubernetes/kubernetes/blob/master/vendor/go.uber.org/zap/checklicense.sh | Github Open Source | Open Source | Apache-2.0, MIT | 2,023 | kubernetes | kubernetes | Shell | Code | 42 | 116 | #!/bin/bash -e
ERROR_COUNT=0
while read -r file
do
case "$(head -1 "${file}")" in
*"Copyright (c) "*" Uber Technologies, Inc.")
# everything's cool
;;
*)
echo "$file is missing license header."
(( ERROR_COUNT++ ))
;;
esac
done < <(git ls-files "*\.go")
exit $ERROR_COUNT
| 22,667 |
https://github.com/qrg/playground-plugin-architecture/blob/master/gulpfile.babel.js/task/copy.js | Github Open Source | Open Source | MIT | null | playground-plugin-architecture | qrg | JavaScript | Code | 70 | 250 | 'use strict';
import gulp from 'gulp';
import glob from 'glob';
import {watch} from './watch';
import clean from '../lib/clean';
import {flatten} from '../lib/array';
import {
DIR_SRC,
DIR_DEST,
SRCS_TO_COPY,
WATCH_PATTERN_TEMPLATE
} from '../config';
export default function copy() {
return gulp.src(SRCS_... | 44,507 |
https://github.com/rohitbakoliya/chefs-arena/blob/master/src/components/Ide/editor.js | Github Open Source | Open Source | MIT | 2,021 | chefs-arena | rohitbakoliya | JavaScript | Code | 106 | 362 | import React, { Component, Fragment } from "react";
import Editor from "react-simple-code-editor";
import Highlight, { defaultProps } from "prism-react-renderer";
import './editorStyles.css';
class EnhancedEditor extends Component {
highlight = (code) => (
<Highlight {...defaultProps} theme={this.props.theme}... | 12,306 |
https://github.com/harunpehlivan/FieldDB/blob/master/backbone_client/datum/datum_tag_read_embedded.handlebars | Github Open Source | Open Source | Apache-2.0 | 2,022 | FieldDB | harunpehlivan | null | Spoken | 7 | 24 | <span class="label label-info"><i class = " icon-tag"></i>{{tag}}</span> | 5,828 |
https://github.com/rapidpro/casepro/blob/master/casepro/contacts/views.py | Github Open Source | Open Source | BSD-3-Clause | 2,023 | casepro | rapidpro | Python | Code | 368 | 1,499 | from dash.orgs.views import OrgObjPermsMixin, OrgPermsMixin
from smartmin.views import SmartCRUDL, SmartFormView, SmartListView, SmartReadView
from django import forms
from django.conf import settings
from django.http import HttpResponseRedirect, JsonResponse
from django.utils.translation import gettext_lazy as _
fro... | 35,827 |
https://github.com/shawkins/teiid-modeshape/blob/master/modeshape-jcr/src/main/java/org/modeshape/jcr/query/model/SetCriteria.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | teiid-modeshape | shawkins | Java | Code | 338 | 902 | /*
* ModeShape (http://www.modeshape.org)
*
* 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 o... | 51,098 |
https://github.com/ebellocchia/bip_utils/blob/master/bip_utils/electrum/mnemonic_v1/electrum_v1_mnemonic_generator.py | Github Open Source | Open Source | MIT | 2,023 | bip_utils | ebellocchia | Python | Code | 464 | 1,219 | # Copyright (c) 2022 Emanuele Bellocchia
#
# 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 rights
# to use, copy, modify, merge, publish,... | 28,450 |
https://github.com/manimaranselvam/butterfly/blob/master/butterfly-utilities/src/test/java/com/paypal/butterfly/utilities/java/JavaPackageTest.java | Github Open Source | Open Source | MIT | 2,017 | butterfly | manimaranselvam | Java | Code | 49 | 226 | package com.paypal.butterfly.utilities.java;
import com.paypal.butterfly.extensions.api.TUExecutionResult;
import com.paypal.butterfly.utilities.TransformationUtilityTestHelper;
import org.testng.Assert;
import org.testng.annotations.Test;
/**
* Unit test for {@link JavaPackage}
*
* @author facarvalho
*/
public c... | 3,728 |
https://github.com/share-research/pace-admin/blob/master/ingest/modules/personGraphNode.ts | Github Open Source | Open Source | Apache-2.0 | 2,023 | pace-admin | share-research | TypeScript | Code | 153 | 579 | import _ from "lodash";
import PublicationSet from "./publicationSet";
import PublicationSetGraphNode from "./publicationSetGraphNode";
import ReviewQueueGraphNode from "./reviewQueueGraphNode";
export default class PersonGraphNode {
personId: number
reviewQueueNodes: Map<string,ReviewQueueGraphNode>
// pass in... | 33,532 |
https://github.com/sernst/Trackway-Gait-Analysis/blob/master/tracksim/cli/commands/register.py | Github Open Source | Open Source | MIT | 2,016 | Trackway-Gait-Analysis | sernst | Python | Code | 187 | 602 | import os
import stat
from tracksim import system
from tracksim import paths
DESCRIPTION = """
Adds a tracksim script file to /usr/local/bin so that the tracksim cli
can be executed globally
"""
def register_global_var():
"""
:return:
"""
path = os.path.expanduser('~/.bash_profile')
... | 47,465 |
https://github.com/ArekSredzki/bazel/blob/master/src/main/java/com/google/devtools/build/lib/analysis/skylark/FunctionTransitionUtil.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | bazel | ArekSredzki | Java | Code | 1,288 | 3,671 | // Copyright 2018 The Bazel Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appl... | 31,453 |
https://github.com/jackhumbert/RED4ext.SDK/blob/master/include/RED4ext/Scripting/Natives/Generated/game/ui/ItemAddedNotificationViewData.hpp | Github Open Source | Open Source | MIT | 2,022 | RED4ext.SDK | jackhumbert | C++ | Code | 74 | 245 | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/CName.hpp>
#include <RED4ext/NativeTypes.hpp>
#include <RED4ext/Scripting/Natives/Generated/game/ui/GenericNotificationViewData.hpp>
namespace RED4ext
{
namespace game::ui {
stru... | 91 |
https://github.com/dendisuhubdy/openonload/blob/master/src/tools/jansson-2.7/test/suites/api/test_memory_funcs.c | Github Open Source | Open Source | BSD-3-Clause | null | openonload | dendisuhubdy | C | Code | 280 | 725 | /*
** Copyright 2005-2018 Solarflare Communications Inc.
** 7505 Irvine Center Drive, Irvine, CA 92618, USA
** Copyright 2002-2005 Level 5 Networks Inc.
**
** This program is free software; you can redistribute it and/or modify it
** under the terms of version 2 of the GNU General Public License ... | 1,477 |
https://github.com/SmallTasksFramework/SmallTasksToolkit/blob/master/SmallTasksToolkit.package/AppTwo.class/instance/task1.st | Github Open Source | Open Source | MIT | 2,017 | SmallTasksToolkit | SmallTasksFramework | null | Spoken | 55 | 106 | accessing
task1
| geoFilter counter reporter |
geoFilter := (SmallTask prepare: [ :aTweet | aTweet coordinatePoint notNil ]) filter.
counter := SmallTask counter.
reporter := (SmallTask prepare: [ :count | String cr , ' Cantidad de tweet con coordenadas: ' , count asString ]) reporter: #transcript.
^ self filter ... | 54,363 |
https://github.com/wouwehb/FinalWork/blob/master/FinalWork/Assets/Scripts/AR/ARManager.cs | Github Open Source | Open Source | MIT | null | FinalWork | wouwehb | C# | Code | 111 | 284 | using System.Collections;
using System.Collections.Generic;
using UnityEngine.XR.ARFoundation;
using UnityEngine.XR.ARSubsystems;
using UnityEngine;
public class ARManager : MonoBehaviour
{
[SerializeField] GameObject gameLocationChooser;
[Header("AR Foundation")]
/// <summary>
/// The active AR Ses... | 22,351 |
https://github.com/Illmatikx/jmeter-plugins/blob/master/site/dat/wiki/PluginsManagerNetworkConfiguration.wiki | Github Open Source | Open Source | Apache-2.0 | 2,019 | jmeter-plugins | Illmatikx | null | Spoken | 166 | 519 | = Plugins Manager Network Configuration =
== Using Behind the Proxy ==
[PluginsManager Plugins Manager] respects JMeter's [http://jmeter.apache.org/usermanual/get-started.html#proxy_server proxy settings]. However, to avoid editing the properties files, we recommend to launch JMeter with additional parameters to pass... | 28,783 |
https://github.com/TimothyRLaMora734/iSightDefender/blob/master/iSightDefender/iSightDefenderDriver.cpp | Github Open Source | Open Source | BSD-2-Clause | 2,013 | iSightDefender | TimothyRLaMora734 | C++ | Code | 331 | 891 | /*
* Copyright (c) 2013, Stephen Checkoway <s@cs.jhu.edu>
* 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,
* ... | 33,884 |
https://github.com/tww19861004/fastSQL/blob/master/src/api/FastSQL.App/Migrations/1.0.0/1528054412-AddTableMessageDeliveryChannel.sql | Github Open Source | Open Source | MIT | 2,018 | fastSQL | tww19861004 | SQL | Code | 54 | 172 |
-- Name: example-9b6feb45-2cf0-4505-862b-6adc86111bc1
-- Date: 6/4/2018 2:33:26 AM
-- Author: BaoChau
----------------------------
-- Migration up goes here.
----------------------------
CREATE TABLE core_message_delivery_channels (
[Id] UNIQUEIDENTIFIER PRIMARY KEY DEFAULT NEWID(),
[ChannelId] NVARCHAR(255) NOT NUL... | 16,367 |
https://github.com/GT-Corp/rent-a-car/blob/master/application/interface-adapters/http/src/test/java/ro/ciprianradu/rentacar/http/registerrenter/RegisterRenterAdapterTest.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | rent-a-car | GT-Corp | Java | Code | 282 | 1,394 | package ro.ciprianradu.rentacar.http.registerrenter;
import java.util.ArrayList;
import java.util.List;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import ro.ciprianradu.rentacar.http.HttpResponse;
import ro.ciprianradu.rentacar.http.HttpStatus;
import ro.ciprianradu.rentacar.http.dtos.... | 6,148 |
https://github.com/Andreas237/AndroidPolicyAutomation/blob/master/ExtractedJars/Ibotta_com.ibotta.android/javafiles/com/google/android/gms/common/config/GservicesValue$zzc.java | Github Open Source | Open Source | MIT | 2,019 | AndroidPolicyAutomation | Andreas237 | Java | Code | 422 | 1,440 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package com.google.android.gms.common.config;
import java.util.Map;
// Referenced classes of package com.google.android.gms.common.config:
// Gservices... | 42,929 |
https://github.com/LaurentZuijdwijk/rust-iot/blob/master/ws.js | Github Open Source | Open Source | MIT | null | rust-iot | LaurentZuijdwijk | JavaScript | Code | 83 | 276 | var W3CWebSocket = require('websocket').w3cwebsocket;
for (let i = 10 - 1; i >= 0;) {
let client = new W3CWebSocket('ws://192.168.0.9:3012/', 'echo-protocol');
client.onerror = function() {
console.log('Connection Error');
};
client.onopen = function() {
console.log('WebSocket Client Connected'... | 38,284 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.