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/truongoi/truong-cloud-gatsby-netlify/blob/master/src/components/Sidebar/Toggle/Toggle.js | Github Open Source | Open Source | MIT | null | truong-cloud-gatsby-netlify | truongoi | JavaScript | Code | 34 | 109 | import React from 'react';
import styles from './Toggle.module.scss';
const Toggle = (props) => {
return (
<div className={[styles['Toggle'], props.isOpen ? styles['active'] : null].join(' ')} onClick={props.clicked}>
<div></div>
<div></div>
<div></div>
</div>
)
}
export default Toggle;
| 23,315 |
https://github.com/keygenqt/skill-patterns-kotlin/blob/master/src/main/kotlin/com/keygenqt/patterns/pattern/behavioral/observer/Observer.kt | Github Open Source | Open Source | Apache-2.0 | null | skill-patterns-kotlin | keygenqt | Kotlin | Code | 9 | 33 | package com.keygenqt.patterns.pattern.behavioral.observer
interface Observer {
fun update(message: String)
} | 35,256 |
https://github.com/bilam/ide_jnet/blob/master/util/fiw.ijs | Github Open Source | Open Source | MIT | 2,023 | ide_jnet | bilam | J | Code | 1,421 | 4,689 | require 'regex'
coclass 'jfiw'
coinsert 'j';'jijs'
FIWCASE=: 1
FIWCONNDX=: 0
FIWDOWN=: 1
FIWDEFAULT=: 1
FIWH=: ''
FIWINC=: 0
FIWMSK=: ''
FIWWHAT=: ''
FIWMAX=: 20
FIWTITLE=: 'Find'
FIWRTITLE=: 'Find & Replace'
FIWCONTEXT=: 0 : 0
any
name only
assigned
assigned globally
assigned locally
in comment text
)
3 : 0''
if. _1... | 27,970 |
https://github.com/emelleme/G8-life/blob/master/mysite/javascript/requestform.js | Github Open Source | Open Source | BSD-3-Clause | 2,011 | G8-life | emelleme | JavaScript | Code | 185 | 517 | $(document).ready(function(){
//Load the Request form
//On Click of Continue, submit form and check address
$("#registrant").submit(function(e) {
var form = $(this);
//$("#apple").html('<p>Saving your information...<br><img src="themes/solar/images/ajax-loader.gif" /></p>');
// client-side validation OK.
if (!e.... | 8,737 |
https://github.com/hhandika/yap/blob/master/src/stats/qscores.rs | Github Open Source | Open Source | MIT | 2,021 | yap | hhandika | Rust | Code | 177 | 641 | //! Heru Handika
//! Only support Illumina 1.8 Quality Scores
pub struct QScore {
pub q_len: u32,
pub mean_q: f64,
pub low_bases: u32,
pub sum: u32,
}
impl QScore {
pub fn analyze_qscores(q_line: &[u8]) -> Self {
let q_scores = q_line.iter()
.map(|scr|
{ if... | 18,262 |
https://github.com/gatewayapps/crondroid/blob/master/app/src/main/java/gatewayapps/crondroid/utils/Key.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | crondroid | gatewayapps | Java | Code | 497 | 1,220 | /*
* Copyright 2001-2009 Terracotta, Inc.
*
* 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 applicabl... | 23,236 |
https://github.com/ass-a2s/rancherui/blob/master/lib/shared/addon/components/storage-class/provisioner-gce-pd/component.js | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-warranty-disclaimer | 2,019 | rancherui | ass-a2s | JavaScript | Code | 147 | 427 | import Component from '@ember/component';
import layout from './template';
import StorageClassProvisioner from 'shared/mixins/storage-class-provisioner';
import { get, set, setProperties } from '@ember/object';
export const VOLUME_TYPES = [
'pd-standard',
'pd-ssd',
];
export default Component.extend(StorageClassP... | 43,167 |
https://github.com/juanicastellan0/meli-sdk/blob/master/tests/MeliSdk/Test/Resource/LoggedUser/GetLoggedUserTest.php | Github Open Source | Open Source | MIT | 2,020 | meli-sdk | juanicastellan0 | PHP | Code | 76 | 384 | <?php
namespace Tecnogo\MeliSdk\Test\Resource\LoggedUser;
use Tecnogo\MeliSdk\Client;
use Tecnogo\MeliSdk\Test\Resource\AbstractResourceTest;
use Tecnogo\MeliSdk\Test\Resource\CreateCallbackResponseGetRequest;
class GetLoggedUserTest extends AbstractResourceTest
{
use CreateCallbackResponseGetRequest;
/**
... | 50,020 |
https://github.com/r2d2rigo/Win2D/blob/master/winrt/test.internal/stubs/StubD2DDeviceContext.h | Github Open Source | Open Source | MIT | 2,019 | Win2D | r2d2rigo | C | Code | 205 | 794 | // Copyright (c) Microsoft Corporation. All rights reserved.
//
// Licensed under the MIT License. See LICENSE.txt in the project root for license information.
#pragma once
namespace canvas
{
class StubD2DDeviceContext : public MockD2DDeviceContext
{
ComPtr<ID2D1Device> m_owner;
ComPtr<ID2D1Im... | 35,989 |
https://github.com/sod-21/flexdeck2/blob/master/templates/page-service.php | Github Open Source | Open Source | MIT | null | flexdeck2 | sod-21 | PHP | Code | 283 | 1,059 | <?php
/**
* Template Name: Show Child Pages
*/
get_header();
?>
<main id="primary" class="site-main">
<?php
while ( have_posts() ) :
the_post();
?>
<div data-section="1">
<div class="container">
<div class=" ... | 1,802 |
https://github.com/messersm/bridges/blob/master/src/bridges/gui/BoardCanvas.java | Github Open Source | Open Source | MIT | null | bridges | messersm | Java | Code | 2,087 | 4,954 | package bridges.gui;
import java.awt.Color;
import java.awt.FontMetrics;
import java.awt.Canvas;
import java.awt.Graphics;
import java.awt.Point;
import java.awt.event.ComponentAdapter;
import java.awt.event.ComponentEvent;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.util.List;
i... | 982 |
https://github.com/dydzio0614/dydutility/blob/master/dydutilityTests/UtilityTests.cs | Github Open Source | Open Source | MIT | 2,018 | dydutility | dydzio0614 | C# | Code | 35 | 125 | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using dydutility;
namespace dydutility.Tests
{
[TestClass]
public class UtilityTests
{
[TestMethod]
public void TestUtility()
{
Utility test = new Utility();
Assert.AreEqual<string>(test.Remov... | 14,933 |
https://github.com/byzhang/viaduct/blob/master/compiler/src/main/kotlin/edu/cornell/cs/apl/viaduct/util/Lists.kt | Github Open Source | Open Source | MIT | 2,021 | viaduct | byzhang | Kotlin | Code | 162 | 389 | package edu.cornell.cs.apl.viaduct.util
/**
* Returns the list of all pairs where the first element is from [this] list,
* and the second element is from [other].
*/
internal fun <A, B> List<A>.pairedWith(other: List<B>): List<Pair<A, B>> {
val result = mutableListOf<Pair<A, B>>()
for (a in this) {
... | 34,636 |
https://github.com/met5678/dmx-goddess/blob/master/device.js | Github Open Source | Open Source | MIT | null | dmx-goddess | met5678 | JavaScript | Code | 219 | 731 | var serialPort = require('serialport');
var onExit = require('signal-exit');
var START_VAL = 0x7E;
var MSG_TYPE_DMX_OUT = 0x06;
var DMX_STARTCODE = 0x00;
var END_VAL = 0xE7;
var fps = 40;
var dmxPro;
var open = false;
var portOpen = function(err) {
console.log('OPEN');
open = true;
setInterv... | 35,598 |
https://github.com/harleydk/dotnet-sftpclient/blob/master/SFTPcommandlineClient/UtilityClasses/FileAvailabilityChecker.cs | Github Open Source | Open Source | MIT | 2,021 | dotnet-sftpclient | harleydk | C# | Code | 272 | 868 | using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.InteropServices;
namespace DotNetSftp.UtilityClasses
{
/// <summary>
/// Checks if a file is available and ready to be read.
/// </summary>
/// <remarks>
/// Cannot take credit for this code: thanks, https://stac... | 48,146 |
https://github.com/krung2/DB_Server/blob/master/src/like/like.controller.ts | Github Open Source | Open Source | MIT | 2,021 | DB_Server | krung2 | TypeScript | Code | 94 | 323 | import { Controller, Delete, Param, Post, Query, UseGuards } from '@nestjs/common';
import { Token } from 'src/libs/decorator/token.decorator';
import { IUser } from 'src/libs/interface/IUser';
import { returnLib } from 'src/libs/return.lib';
import AuthGaurd from 'src/middleware/auth.middleware';
import { LikeService ... | 6,071 |
https://github.com/SerhiyShamshetdinov/sugar-bms/blob/master/sugar-bms/src/main/scala/sands/sugar/bms/typeclass/BooleanMonad.scala | Github Open Source | Open Source | Apache-2.0 | null | sugar-bms | SerhiyShamshetdinov | Scala | Code | 475 | 1,311 | /*
* Statements and Logical Operators on Boolean Monads and Collections
*
* Copyright (c) 2021 Serhiy Shamshetdinov (Kyiv, Ukraine)
*
* 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
*
... | 8,161 |
https://github.com/naimishmakawana/b2b/blob/master/resources/views/B2BCustomer/edit.blade.php | Github Open Source | Open Source | MIT | null | b2b | naimishmakawana | PHP | Code | 449 | 2,328 | @extends('layouts.b2b')
@section('content')
@if (count($errors) > 0)
<div class="alert alert-danger">
<strong>Whoops!</strong> There were some problems with your input.<br><br>
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
... | 25,594 |
https://github.com/6d6a/hms-personmgr/blob/master/src/main/java/ru/majordomo/hms/personmgr/dto/alerta/AlertaResponse.java | Github Open Source | Open Source | Apache-2.0 | null | hms-personmgr | 6d6a | Java | Code | 30 | 114 | package ru.majordomo.hms.personmgr.dto.alerta;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.*;
@Getter
@Setter
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@JsonIgnoreProperties(ignoreUnknown = true)
public class AlertaResponse extends AlertaResponseStatus {
priva... | 50,301 |
https://github.com/buberwa88/iLMS_Repayment/blob/master/backend/modules/report/controllers/ReportController.php | Github Open Source | Open Source | BSD-3-Clause | null | iLMS_Repayment | buberwa88 | PHP | Code | 3,588 | 15,201 | <?php
namespace backend\modules\report\controllers;
use Yii;
use backend\modules\report\models\Report;
use backend\modules\report\models\ReportSearch;
//use yii\web\Controller;
use common\components\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
use yii\web\UploadedFile;
use mPDF;
/**
* ... | 16,222 |
https://github.com/Faborah-of-Sarthe/Minimit/blob/master/resources/lang/en/poster.php | Github Open Source | Open Source | MIT | 2,018 | Minimit | Faborah-of-Sarthe | PHP | Code | 194 | 496 | <?php
return [
/*
|--------------------------------------------------------------------------
| Poster Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used for user poster page.
|
*/
'add_image' => "Ad... | 31,236 |
https://github.com/mohamedalzahaby/renovame/blob/master/resources/views/html/pricing.blade.php | Github Open Source | Open Source | MIT | null | renovame | mohamedalzahaby | PHP | Code | 178 | 733 | @extends('layouts.app')
@section('content')
<section class="section pagegrey">
<div class="container">
<div class="title-area text-center">
<h2>Our Pricing <small>Trending stock photos, freebies and more..</small></h2>
<div class="bread">
<ol class="breadcrumb">
... | 29,240 |
https://github.com/ProjectSidewalk/access-score-viz/blob/master/streetviz/street-viz-fulldc-probcount+severity/visproto.js | Github Open Source | Open Source | MIT | 2,019 | access-score-viz | ProjectSidewalk | JavaScript | Code | 101 | 452 | function drawNeighborhoods() {
// North Cleveland Park - 205
// Hillsdale - 231
console.log("drawNeighborhoods");
d3.json("http://localhost:8000/data/neighborhoods.json", function (err, data) {
map.addSource("neighborhoods", {
"type": "geojson",
"data": data
});... | 752 |
https://github.com/rclone/rclone/blob/master/backend/local/about_windows.go | Github Open Source | Open Source | MIT | 2,023 | rclone | rclone | Go | Code | 137 | 417 | //go:build windows
// +build windows
package local
import (
"context"
"fmt"
"syscall"
"unsafe"
"github.com/rclone/rclone/fs"
)
var getFreeDiskSpace = syscall.NewLazyDLL("kernel32.dll").NewProc("GetDiskFreeSpaceExW")
// About gets quota information
func (f *Fs) About(ctx context.Context) (*fs.Usage, error) {
... | 33,422 |
https://github.com/andy521/coadmin/blob/master/sql/coadmin-struct.sql | Github Open Source | Open Source | Apache-2.0 | 2,021 | coadmin | andy521 | SQL | Code | 2,564 | 9,404 | /*
SQLyog Community v13.1.6 (64 bit)
MySQL - 8.0.12 : Database - coadmin
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN... | 1 |
https://github.com/segoja/ember-cli-markdown-editor/blob/master/app/components/markdown-editor.js | Github Open Source | Open Source | MIT | 2,022 | ember-cli-markdown-editor | segoja | JavaScript | Code | 6 | 24 | export { default } from 'ember-cli-markdown-editor/components/markdown-editor';
| 41,595 |
https://github.com/molecular-workflow-repository/molflow/blob/master/molflow/info.py | Github Open Source | Open Source | Apache-2.0 | 2,017 | molflow | molecular-workflow-repository | Python | Code | 282 | 782 | # Copyright 2017 Autodesk Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | 25,143 |
https://github.com/mingwayXue/learning/blob/master/springboot2.0/stream/src/stream/StreamDemo1.java | Github Open Source | Open Source | Apache-2.0 | null | learning | mingwayXue | Java | Code | 66 | 259 | package stream;
import java.util.stream.IntStream;
/**
* Created by mingway on Date:2018-11-29 9:25.
* 修改记录
* 修改后版本: 修改人: 修改日期: 修改内容:
*/
public class StreamDemo1 {
public static void main(String[] args) {
int[] nums = {1, 2, 3};
//外部迭代
int sum1 = 0;
for (int i : nums) {
sum1 += i;
}
Syste... | 8,129 |
https://github.com/ericraffin/givemetime/blob/master/server/migration/sqls/20160609212958-project-table-test.sql | Github Open Source | Open Source | MIT | 2,016 | givemetime | ericraffin | PLpgSQL | Code | 165 | 786 | BEGIN;
select no_plan();
set search_path to give_me_time_public, "$user", public, tap;
select has_table('project'::name);
select has_pk('project'::name);
select has_column('project'::name, 'id'::name);
select col_type_is('project'::name, 'id'::name, 'integer');
select col_has_default('project'::name, 'id'::name);
sel... | 44,177 |
https://github.com/celandro/pogoprotos-java/blob/master/src/main/java/POGOProtos/Rpc/GetImagesForPoiOutProtoOrBuilder.java | Github Open Source | Open Source | BSD-3-Clause | 2,020 | pogoprotos-java | celandro | Java | Code | 112 | 626 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: POGOProtos.Rpc.proto
package POGOProtos.Rpc;
public interface GetImagesForPoiOutProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:POGOProtos.Rpc.GetImagesForPoiOutProto)
com.google.protobuf.MessageOrBuilder {
/**
*... | 43,467 |
https://github.com/borodust/skia/blob/master/tests/sksl/intrinsics/MinFloat.asm.frag | Github Open Source | Open Source | BSD-3-Clause | null | skia | borodust | GLSL | Code | 943 | 2,727 | OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %_entrypoint "_entrypoint" %sk_FragColor %sk_Clockwise
OpExecutionMode %_entrypoint OriginUpperLeft
OpName %sk_FragColor "sk_FragColor"
OpName %sk_Clockwise "sk_Clockwise"
OpName %_UniformBuffer "_UniformBuffer"
... | 25,821 |
https://github.com/pangPython/pms/blob/master/src/main/java/cc/mrbird/febs/pms/entity/ProjectMember.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | pms | pangPython | Java | Code | 41 | 176 | package cc.mrbird.febs.pms.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
/**
* 项目成员实体类
* @author pangPython
*/
@Data
@TableName("project_member")
public class ProjectMember implements Serializable ... | 24,770 |
https://github.com/msyml/site/blob/master/src/views/Main.vue | Github Open Source | Open Source | MIT | null | site | msyml | Vue | Code | 292 | 1,012 | <template>
<div class="main">
<div class="header">
<span
class="btn"
:class="{ check: item.path === checkItem }"
@click="handleClick(item)"
v-for="item in menuList"
:key="item.label"
>{{ item.label }}</span
>
</div>
<router-view class="routerBody... | 50,227 |
https://github.com/OldBeafantles/Discode/blob/master/bot.py | Github Open Source | Open Source | MIT | 2,022 | Discode | OldBeafantles | Python | Code | 795 | 2,875 | """The bot"""
import asyncio
import aiohttp
from datetime import datetime, timedelta
import discord
from discord.ext import commands
import importlib
from modules.utils import utils
import os
import sys
# Useful functions
if sys.platform == "win32" or sys.platform == "win64":
def clear():
return os.syste... | 38,590 |
https://github.com/chumakovvchuma/smooth.js/blob/master/packages/smooth/src/graphql/definitions/index.js | Github Open Source | Open Source | MIT | 2,021 | smooth.js | chumakovvchuma | JavaScript | Code | 76 | 148 | import * as Date from './Date'
import * as directives from './directives'
import * as Media from './Media'
import * as Image from './Image'
import * as Link from './Link'
import * as Metadata from './Metadata'
import * as Mutation from './Mutation'
import * as Query from './Query'
import * as schema from './schema'
imp... | 15,804 |
https://github.com/maxbyz/hydra/blob/master/src/event.js | Github Open Source | Open Source | MIT | 2,013 | hydra | maxbyz | JavaScript | Code | 286 | 900 | //
// Hydra - HTML5 mobile game engine
// https://github.com/aduros/hydra/blob/master/LICENSE.txt
goog.provide("hydra.EventDispatcher");
goog.provide("hydra.ListenerManager");
goog.require("hydra.array");
/** @constructor */
hydra.EventDispatcher = function () {
/**
* @private
*/
this.listenerMap =... | 27,201 |
https://github.com/dfilitto/ProjetosXamarinForms/blob/master/InglesCriancas/InglesCriancas/InglesCriancas.UWP/CloseApplication.cs | Github Open Source | Open Source | MIT | 2,020 | ProjetosXamarinForms | dfilitto | C# | Code | 29 | 95 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.UI.Xaml;
namespace InglesCriancas.UWP
{
public class CloseApplication : ICloseApplication
{
public void closeApplication()
{
Application.Current.Exit();... | 12,966 |
https://github.com/edgardozoppi/analysis-net/blob/master/Backend/Analysis/ReachingDefinitionsAnalysis.cs | Github Open Source | Open Source | MIT | 2,017 | analysis-net | edgardozoppi | C# | Code | 567 | 1,985 | // Copyright (c) Edgardo Zoppi. All Rights Reserved. Licensed under the MIT License. See License.txt in the project root for license information.
using Backend.ThreeAddressCode;
using Backend.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Backend.ThreeAddressCode... | 2,818 |
https://github.com/matzegoebel/run_wrf/blob/master/run_wrf/tests/test_submit.py | Github Open Source | Open Source | BSD-2-Clause | 2,021 | run_wrf | matzegoebel | Python | Code | 1,091 | 4,293 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Nov 26 12:26:51 2019
Test launch_jobs function
@author: Matthias Göbel
"""
import os
from run_wrf.launch_jobs import launch_jobs
import pytest
from run_wrf.tools import Capturing
from collections import Counter
import run_wrf.configs.test.config_test ... | 24,468 |
https://github.com/erikkaBaguio/web-communicationaid/blob/master/app/static/js/enroll1.js | Github Open Source | Open Source | MIT | 2,018 | web-communicationaid | erikkaBaguio | JavaScript | Code | 134 | 511 | function goto_enroll(form) {
xhr = new XMLHttpRequest();
var url = "https://cryptic-fjord-60133.herokuapp.com/api/add_class";
xhr.open("POST", url, true);
xhr.setRequestHeader("Content-type", "application/json");
xhr.onreadystatechange = function () {
if (xhr.readyState == 4 && xhr.status == 2... | 26,571 |
https://github.com/red-gate/ngit/blob/master/NGit/NGit.Patch/HunkHeader.cs | Github Open Source | Open Source | BSD-3-Clause | 2,022 | ngit | red-gate | C# | Code | 1,722 | 4,967 | /*
This code is derived from jgit (http://eclipse.org/jgit).
Copyright owners are documented in jgit's IP log.
This program and the accompanying materials are made available
under the terms of the Eclipse Distribution License v1.0 which
accompanies this distribution, is reproduced below, and is
available at http://www... | 26,381 |
https://github.com/Aayush-Ankit/puma-simulator/blob/master/Security/IAuth.py | Github Open Source | Open Source | MIT | 2,021 | puma-simulator | Aayush-Ankit | Python | Code | 69 | 190 | # Designed by - Guilherme Maurer
# Miguel Xavier
# Plinio Silveira
# Yago Liborio
# Pontifical Catholic University of Rio Grande do Sul
#
# IAuth - Defines the interface used to authenticate models and input
#
#*********************... | 3,327 |
https://github.com/yarhrn/loco/blob/master/core/src/test/scala/loco/repository/InMemoryRepositoryTest.scala | Github Open Source | Open Source | MIT | 2,020 | loco | yarhrn | Scala | Code | 134 | 517 | package loco.repository
import cats.data.NonEmptyList
import cats.effect.IO
import loco.domain._
import cats.implicits._
import loco.IncrementFixture.IncrementEvent
import loco.repository.EventsRepository.ConcurrentModificationException
import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Mat... | 44,396 |
https://github.com/appsignal/appsignal-ruby/blob/master/lib/appsignal/integrations/sinatra.rb | Github Open Source | Open Source | MIT | 2,023 | appsignal-ruby | appsignal | Ruby | Code | 27 | 141 | # frozen_string_literal: true
require "appsignal"
require "appsignal/rack/sinatra_instrumentation"
Appsignal.logger.debug("Loading Sinatra (#{Sinatra::VERSION}) integration")
app_settings = ::Sinatra::Application.settings
Appsignal.config = Appsignal::Config.new(
app_settings.root || Dir.pwd,
app_settings.enviro... | 45,574 |
https://github.com/emlid/publicrepo1/blob/master/devlib/native/macos_utils/auth_open.cpp | Github Open Source | Open Source | BSD-3-Clause | 2,020 | publicrepo1 | emlid | C++ | Code | 441 | 1,538 | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright (C) 2020 Raspberry Pi (Trading) Limited
*/
/**
* authOpenStorageDevice implementation based on authOpen function from RPI-Imager
* https://github.com/raspberrypi/rpi-imager/blob/qml/mac/macfile.cpp
* Anohin Igor <igor.anohin@emlid.com>, 2021
*/
#include "ma... | 34,945 |
https://github.com/yoPCix/nodatime.serialization/blob/master/src/NodaTime.Serialization.Benchmarks/JsonNet/NodaConverterBaseBenchmarks.cs | Github Open Source | Open Source | Apache-2.0 | 2,021 | nodatime.serialization | yoPCix | C# | Code | 183 | 695 | // Copyright 2017 The Noda Time Authors. All rights reserved.
// Use of this source code is governed by the Apache License 2.0,
// as found in the LICENSE.txt file.
using BenchmarkDotNet.Attributes;
using Newtonsoft.Json;
using NodaTime.Serialization.JsonNet;
using System.IO;
namespace NodaTime.Serialization.Benchma... | 395 |
https://github.com/benchmark-gl/benchmark.gl/blob/master/index.js | Github Open Source | Open Source | MIT | 2,017 | benchmark.gl | benchmark-gl | JavaScript | Code | 67 | 272 | var data = require("./dist.json");
var platform = require("platform");
exports.calibrate = function(){
var canvas = document.createElement("canvas");
var gl = (
canvas.getContext("webgl") ||
canvas.getContext("webgl-experimental") ||
canvas.getContext("experimental-webgl")
);
if (... | 17,342 |
https://github.com/AII-G2/ToFilms/blob/master/ToFilms/scrapping/scrappingWeb.py | Github Open Source | Open Source | MIT | null | ToFilms | AII-G2 | Python | Code | 249 | 1,117 | # encoding:utf-8
import codecs
import sys
import urllib2
from bs4 import BeautifulSoup
def extrae_datos_pagina():
file = open('datos.txt', 'r')
lines = file.readlines()
for i in lines:
data_bruto = eval(i)
url = data_bruto[1]
try:
html = urllib2.urlopen(url).read()
... | 32,769 |
https://github.com/pulumi/pulumi-aws-native/blob/master/sdk/dotnet/Ec2/Outputs/SpotFleetRequestConfigData.cs | Github Open Source | Open Source | Apache-2.0 | 2,023 | pulumi-aws-native | pulumi | C# | Code | 263 | 1,259 | // *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
namespace Pulumi.AwsN... | 7,444 |
https://github.com/pesout/xcorejs-ui/blob/master/src/components/Typography/index.tsx | Github Open Source | Open Source | MIT | 2,021 | xcorejs-ui | pesout | TypeScript | Code | 134 | 355 | import { composedTextBase, TextBaseProps } from 'bases';
import React, { forwardRef, ReactNode } from 'react';
import styled from 'styled-components';
import useTheme from 'useTheme';
import useMerge from 'utils/useMerge';
import { typeVariant } from 'utils/variant';
import { shouldForwardProp } from 'utils/withConfig'... | 10,411 |
https://github.com/kollaprasannakrishna/tangerinecloud/blob/master/resources/views/pages/about.blade.php | Github Open Source | Open Source | MIT | null | tangerinecloud | kollaprasannakrishna | PHP | Code | 8 | 96 | @extends('main')
@section('content')
@include('main.about.abt-description')
{{--@include('main.about.abt-counter')--}}
{{--@include('main.about.abt-historyArea')--}}
@include('main.about.abt-teamArea')
{{--@include('main.testimonials')--}}
@endsection | 39,366 |
https://github.com/leocavalcante/hyperf/blob/master/src/resource-grpc/tests/Stubs/Grpc/GPBMetadata/Grpc/Grpc.php | Github Open Source | Open Source | Apache-2.0, MIT | 2,022 | hyperf | leocavalcante | PHP | Code | 85 | 676 | <?php
declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
# source: Grpc/grpc.proto
namespace HyperfTest\ResourceGrpc\Stubs\Grpc\GPBMetadat... | 255 |
https://github.com/FalyaCharisma/proyek-pasar-sayur/blob/master/app/Models/PesananDetail.php | Github Open Source | Open Source | MIT | null | proyek-pasar-sayur | FalyaCharisma | PHP | Code | 25 | 118 | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class PesananDetail extends Model
{
public function sayur(){
return $this->belongsTo('App\Sayur','sayur_id','id');
}
public function pesanan(){
return $this->belongsTo('A... | 38,564 |
https://github.com/telegraph/acs-aem-commons/blob/master/bundle/src/main/java/com/adobe/acs/commons/version/EvolutionEntry.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | acs-aem-commons | telegraph | Java | Code | 45 | 150 | package com.adobe.acs.commons.version;
public interface EvolutionEntry {
int getDepth();
String getName();
String getStatus();
EvolutionEntryType getType();
String getUniqueName();
String getValueString();
String getValueStringShort();
boolean isAdded();
boolean isChanged()... | 5,670 |
https://github.com/Fatizel/EightQueensPuzzle/blob/master/python/equeenInput.py | Github Open Source | Open Source | MIT | null | EightQueensPuzzle | Fatizel | Python | Code | 311 | 811 | import datetime
#import library for conection db
from sqlalchemy import create_engine
# Funtion for define if exist a queen in the dashboard
def verification(row, col, queens):
if not len(queens): return False
for queen in queens:
if not len(queen):
continue
r,c = queen
if ... | 4,328 |
https://github.com/EBIvariation/metadata-ws/blob/master/metadata-load/src/main/java/uk/ac/ebi/ampt2d/metadata/importer/api/ReferenceSequenceXmlRetrieverThroughEntrezApi.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | metadata-ws | EBIvariation | Java | Code | 441 | 1,264 | /*
*
* Copyright 2019 EMBL - European Bioinformatics Institute
*
* 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 require... | 3,523 |
https://github.com/cheng219/tianyu/blob/master/Assets/Protocol/pt_guild_item_info_d379.cs | Github Open Source | Open Source | BSD-3-Clause | 2,021 | tianyu | cheng219 | C# | Code | 162 | 670 | using System.Collections;
using System.Collections.Generic;
public class pt_guild_item_info_d379 : st.net.NetBase.Pt {
public pt_guild_item_info_d379()
{
Id = 0xD379;
}
public override st.net.NetBase.Pt createNew()
{
return new pt_guild_item_info_d379();
}
public List<int> emptys = new List<int>();
public ... | 17,403 |
https://github.com/liquality/atomicagent/blob/master/src/worker/queues/update-market-data.js | Github Open Source | Open Source | MIT | 2,022 | atomicagent | liquality | JavaScript | Code | 47 | 166 | require('../../utils/sentry')
const mongo = require('../../utils/mongo')
const debug = require('debug')('liquality:agent:worker:update-market-data')
const Market = require('../../models/Market')
async function process(job) {
debug('Running....', job.id)
await Market.updateAllMarketData()
return {
next: [
... | 41,349 |
https://github.com/dayupu/acme/blob/master/assist/src/main/java/com/magic/acme/assist/jpa/xtt/entity/HandshakeNoCargo.java | Github Open Source | Open Source | MIT | 2,017 | acme | dayupu | Java | Code | 206 | 679 | package com.magic.acme.assist.jpa.xtt.entity;
// Generated 2017-6-22 10:27:00 by Hibernate Tools 5.2.0.CR1
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import j... | 37,838 |
https://github.com/bgvmysore/miniproject_stepin/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,021 | miniproject_stepin | bgvmysore | Ignore List | Code | 9 | 86 | .vscode/
3_Implementation/*.exe
3_Implementation/*.out
3_Implementation/gnuplot_tmpdatafile_*
3_Implementation/*.csv
6_ImagesAndVideos/*.drawio
3_Implementation/test/*.exe
3_Implementation/test/*.out
3_Implementation/*.gcov | 36,039 |
https://github.com/m4tx/chombot/blob/master/src/kcc3/data_types.rs | Github Open Source | Open Source | MIT | null | chombot | m4tx | Rust | Code | 293 | 1,083 | use std::fmt::{Debug, Display, Formatter};
use chrono::{DateTime, Utc};
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, PartialEq, Eq, Hash, Serialize, Deserialize, Debug)]
pub struct PlayerId(pub String);
#[derive(Clone, Default, PartialEq, Eq, Hash, Serialize, Deserialize, Debug)]
pub struct DiscordI... | 24,903 |
https://github.com/vmandal/rif-identity-manager/blob/master/src/app/Authenticated/AuthenticatedContainer.ts | Github Open Source | Open Source | MIT | 2,021 | rif-identity-manager | vmandal | TypeScript | Code | 224 | 660 | import { connect } from 'react-redux'
import { ThunkDispatch } from 'redux-thunk'
import { AnyAction } from 'redux'
import DataVaultWebClient from '@rsksmart/ipfs-cpinner-client'
import { stateInterface } from '../state/configureStore'
import AuthenticatedComponent from './AuthenticatedComponent'
import { decryptMultip... | 275 |
https://github.com/weenong/Taroco/blob/master/taroco-run-zipkin.sh | Github Open Source | Open Source | Apache-2.0, MIT | 2,019 | Taroco | weenong | Shell | Code | 59 | 176 | #!/bin/bash
echo -- -- begin init taroco eureka... -- --
COMPOSE_FILE=./taroco-docs/docker/docker-compose-zipkin.yml
echo -- -- stop and remove old docker-compose containers -- --
if docker-compose -f ${COMPOSE_FILE} ps
then
docker-compose -f ${COMPOSE_FILE} stop
docker-compose -f ${COMPOSE_FILE} ... | 40,031 |
https://github.com/tanjinajui/educenter_php_laravel_project/blob/master/public/backend/admin/dev/assets/stylesheets/components/_ui-profile.sass | Github Open Source | Open Source | MIT | null | educenter_php_laravel_project | tanjinajui | Sass | Code | 74 | 246 | .profile-cover
position: relative
overflow: hidden
height: 160px
@include media-breakpoint-up(md)
height: 260px
.profile-cover-img
width: 100%
max-width: 100%
height: auto
position: absolute
top: 0
left: 0
z-index: 1
.page-header
position: absolute
bottom: 0
left:... | 43,226 |
https://github.com/cavity-project/data/blob/master/src/Class Libraries/Data.Facts/Data/TestConcatenationTransformer.cs | Github Open Source | Open Source | MIT | null | data | cavity-project | C# | Code | 53 | 149 | namespace Cavity.Data
{
using System.Collections.Generic;
using Cavity.Collections;
public sealed class TestConcatenationTransformer : ITransformData
{
public IEnumerable<KeyStringDictionary> Transform(IEnumerable<KeyStringDictionary> data)
{
foreach (var entry in data)
... | 33,739 |
https://github.com/wanziw/caffe_DeepID2/blob/master/data/deepid2/get_data.py | Github Open Source | Open Source | Intel, BSD-2-Clause | null | caffe_DeepID2 | wanziw | Python | Code | 274 | 801 | import os
import sys
import random
import numpy as np
from sklearn import cross_validation
trainX = []
trainY = []
testX = []
testY = []
intra = []
extra = []
print sys.argv[1], sys.argv[2]
trainingpath= sys.argv[1] + "CASIA-WebFace/"
testingpath = sys.argv[1] + sys.argv[2] + '/'
#training dataset
folder = [na... | 46,886 |
https://github.com/tyhand/ember-symfony-test/blob/master/src/AppBundle/Serializer/EmberSerializer.php | Github Open Source | Open Source | MIT | null | ember-symfony-test | tyhand | PHP | Code | 103 | 284 | <?php
namespace AppBundle\Serializer;
use League\Fractal\Serializer\DataArraySerializer;
class EmberSerializer extends DataArraySerializer
{
/**
* Data key name
*
* @var string
*/
protected $dataKeyName;
/**
* Constructor
*
* @param string $dataKeyName Data key name
... | 18,497 |
https://github.com/nbros/OcaIDE/blob/master/Ocaml/src/ocaml/editor/actions/OpenIntfImplAction.java | Github Open Source | Open Source | CECILL-B | 2,021 | OcaIDE | nbros | Java | Code | 182 | 701 | package ocaml.editor.actions;
import java.io.File;
import ocaml.OcamlPlugin;
import ocaml.editors.OcamlEditor;
import org.eclipse.core.filesystem.EFS;
import org.eclipse.core.filesystem.IFileStore;
import org.eclipse.core.runtime.IPath;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.ISelec... | 19,852 |
https://github.com/huunghiapn/giaitriviet/blob/master/app/src/main/java/com/nghianh/giaitriviet/providers/wordpress/ui/WordpressDetailActivity.java | Github Open Source | Open Source | ECL-2.0, Apache-2.0 | 2,019 | giaitriviet | huunghiapn | Java | Code | 978 | 4,303 | package com.nghianh.giaitriviet.providers.wordpress.ui;
import android.annotation.SuppressLint;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.graphics.Color;
import android.net.Uri;
import android.os.Bundle;
import android.support.v7.widg... | 50,063 |
https://github.com/SpaceIm/conan-vxl/blob/master/conanfile.py | Github Open Source | Open Source | MIT | null | conan-vxl | SpaceIm | Python | Code | 322 | 1,749 | from conans import ConanFile, CMake, tools
from conans.errors import ConanInvalidConfiguration
required_conan_version = ">=1.33.0"
class VxlConan(ConanFile):
name = "vxl"
description = "VXL (the Vision-something-Libraries) is a collection of C++ " \
"libraries designed for computer vision r... | 20,357 |
https://github.com/hoempf/DoH/blob/master/go/dnsrecurser_test.go | Github Open Source | Open Source | BSD-3-Clause | 2,019 | DoH | hoempf | Go | Code | 812 | 1,759 | /*
* go DoH Daemon - DNS recurser test suite
*
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Provided to you under the terms of the BSD 3-Clause License
*
* Copyright (c) 2019. Gianpaolo Del Matto, https://github.com/gpdm, <delmatto _ at _ phunsites _ dot _ net>
* All right... | 26,457 |
https://github.com/fmap-archive/typeclasses.js/blob/master/lib/typeclasses/functor/object.js | Github Open Source | Open Source | BSD-2-Clause | null | typeclasses.js | fmap-archive | JavaScript | Code | 19 | 60 | var _ = require('underscore');
module.exports.map = function(obj, fn) {
_.each(obj, function(vs,k) {
obj[k] = fn(vs);
});
return obj;
};
| 14,955 |
https://github.com/gfpeltier/AdventOfCode-Scala/blob/master/src/main/scala/aoc2020/Day10.scala | Github Open Source | Open Source | MIT | null | AdventOfCode-Scala | gfpeltier | Scala | Code | 125 | 435 | package aoc2020
import scala.collection.mutable.ListBuffer
object Day10 {
def buildChain(adapters: Set[Int]): (List[Int], Int, Int, Int) = {
var chain = ListBuffer.empty[Int]
val diffCnts = Array.fill[Int](4)(0)
var currJ, nextJ = 0
var remAdapters = adapters
while (remAdapters.nonEmpty) {
... | 5,038 |
https://github.com/Greg-Turner/Trasalum/blob/master/Trasalum/Models/Company.cs | Github Open Source | Open Source | MIT | null | Trasalum | Greg-Turner | C# | Code | 121 | 316 | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
namespace Trasalum.Models
{
public class Company
{
[Key]
public int Id { get; set; }
[Required]
public string Name { get; set; }
... | 941 |
https://github.com/connorjsmith/fast-dna/blob/master/packages/fast-components-react-base/src/toggle/index.ts | Github Open Source | Open Source | MIT | 2,022 | fast-dna | connorjsmith | TypeScript | Code | 19 | 39 | import Toggle from "./toggle";
import toggleSchema from "./toggle.schema";
export { toggleSchema };
export default Toggle;
export * from "./toggle";
| 19,589 |
https://github.com/cwmiller/broadworks-connector/blob/master/src/Ocip/Models/CallCenterReportInterval.php | Github Open Source | Open Source | MIT | 2,021 | broadworks-connector | cwmiller | PHP | Code | 269 | 1,087 | <?php
namespace CWM\BroadWorksConnector\Ocip\Models;
/**
* CallCenterReportInterval
*
* Report interval for call center enhanced reporting scheduled reports.
*
* @Groups [{"id":"e2c537e3e39483b96620673a7012ffdd:7466","type":"choice"}]
*/
class CallCenterReportInterval
{
/**
* @ElementName dates
*... | 28,090 |
https://github.com/flyfire-cn/flyfire.CustomSerialPort/blob/master/flyfire.HelloArm/Program.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | flyfire.CustomSerialPort | flyfire-cn | C# | Code | 719 | 2,799 | using System;
using System.Collections.Generic;
using System.IO;
using System.IO.Ports;
using System.Reflection;
using System.Text;
using flyfire.IO.Ports;
namespace flyfire.HelloArm
{
public class Program
{
private static CustomSerialPort csp = null;
private static string[] serailports;
... | 50,522 |
https://github.com/guanxiong/birm/blob/master/themes/mobile/style129/js/alert.js | Github Open Source | Open Source | MIT | 2,015 | birm | guanxiong | JavaScript | Code | 146 | 763 | /**
* Created by 铁手 on 13-11-15.
*/
function alert(str, title ,callback , closedocallback) {
if(closedocallback == undefined) closedocallback = false;
$("#alert_box").remove();
$("body").css('position', 'relative');
//样式
$alert_css = '<style>#alert_warp{height:100%; width:100%; position:fixed; _po... | 35,086 |
https://github.com/JanainaSantos/ouvidoria/blob/master/util/util-core/src/main/java/com/googlecode/ouvidoria/util/ByteArrayUtils.java | Github Open Source | Open Source | BSD-3-Clause | 2,015 | ouvidoria | JanainaSantos | Java | Code | 194 | 491 | package com.googlecode.ouvidoria.util;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
public class ByteArrayUtils {
/**
* Transforma o objeto passado como paramtero em um array de bytes
* ... | 23,942 |
https://github.com/IPDSnelting/velcom/blob/master/frontend/src/components/graphs/comparison/RepoBranchSelector.vue | Github Open Source | Open Source | MIT | 2,022 | velcom | IPDSnelting | Vue | Code | 323 | 1,417 | <template>
<v-expansion-panels multiple accordion>
<v-expansion-panel
v-for="repo in sortedRepos"
:key="repo.id"
:disabled="repo.trackedBranches.length === 0"
>
<v-expansion-panel-header>
<v-checkbox
:input-value="allBranchesSelected(repo)"
:indeterminate="o... | 34,555 |
https://github.com/920232796/NLP_flask/blob/master/nlp_api/webs/controllers/index.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | NLP_flask | 920232796 | Python | Code | 887 | 3,288 | from re import U
from flask import Blueprint, request
from flask.json import jsonify
from flask import make_response
# from application import db
import jieba
from test.classification import text_classification
from test.auto_title_test import title
from test.poem_test import poem
from test.math_test import math_ques
f... | 46,436 |
https://github.com/styler/fleet/blob/master/pkg/args_test.go | Github Open Source | Open Source | Apache-2.0 | 2,022 | fleet | styler | Go | Code | 205 | 526 | // Copyright 2014 The fleet Authors
//
// 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 ... | 7,673 |
https://github.com/svetlimladenov/ASP.NET-MVC-5/blob/master/Template/src/MVC5Template/Web/MvcTemplate.Web/Services/Contracts/IPhonesServices.cs | Github Open Source | Open Source | MIT | null | ASP.NET-MVC-5 | svetlimladenov | C# | Code | 33 | 123 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Principal;
using System.Text;
using System.Threading.Tasks;
using MvcTemplate.Web.Controllers;
using MvcTemplate.Web.Models;
namespace MvcTemplate.Web.Services.Contacts
{
public interface IPhonesServices
{
Phone C... | 631 |
https://github.com/ivanoff/api-i/blob/master/test/_init.js | Github Open Source | Open Source | MIT | 2,020 | api-i | ivanoff | JavaScript | Code | 40 | 118 | const chai = require('chai');
const chaiHttp = require('chai-http');
chai.use(chaiHttp);
const Api = require('../src');
const config = require('./mocks/config');
describe('Init', () => {
global.Api = Api;
global.config = config;
global.configNoToken = {...config, token: undefined};
global.configNoDb = {...co... | 25,069 |
https://github.com/shervs336/paluwagan/blob/master/resources/views/auth/register.blade.php | Github Open Source | Open Source | MIT | null | paluwagan | shervs336 | PHP | Code | 73 | 366 | @extends('layout.app')
@section('content')
<!-- resources/views/auth/register.blade.php -->
<div class="row">
<div class="col-md-6 col-md-offset-3">
<h1 class="text-center">Paluwagan 2018</h1>
<br />
<div class="well">
<form method="POST" action="/auth/register">
... | 8,479 |
https://github.com/DNCBA/test/blob/master/mhcdemo/src/main/java/com/mhc/mybatis/demo/config/QueryInterceptor.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | test | DNCBA | Java | Code | 128 | 509 | package com.mhc.mybatis.demo.config;
import com.alibaba.fastjson.JSON;
import org.apache.ibatis.cache.CacheKey;
import org.apache.ibatis.executor.Executor;
import org.apache.ibatis.mapping.BoundSql;
import org.apache.ibatis.mapping.MappedStatement;
import org.apache.ibatis.plugin.*;
import org.apache.ibatis.session.Re... | 31,156 |
https://github.com/xuedong/time-series/blob/master/TGA_python_wrapper/setup_global_align.py | Github Open Source | Open Source | MIT | 2,019 | time-series | xuedong | Python | Code | 58 | 152 | from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
import numpy
# Note: numy.get_include is important to use the correct numpy version (in a non-std location)
# else we get "RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility"
e... | 2,752 |
https://github.com/theatrejs-labs/from-user-to-maker/blob/master/src/slides/Inklings/components/Photoshop/index.tsx | Github Open Source | Open Source | MIT | 2,019 | from-user-to-maker | theatrejs-labs | TSX | Code | 328 | 967 | import React, { RefObject } from 'react'
import sidebar from './assets/sidebar.png'
import top from './assets/top.png'
import cursorImage from './assets/cursor.svg'
import './style.scss'
import PhotoshopScene from './PhotoshopScene';
import { project } from '../../../../shared/Theatre';
interface IProps {
appear... | 2,862 |
https://github.com/BandwidthOnDemand/nsi-requester/blob/master/app/support/CustomSSLEngineProvider.scala | Github Open Source | Open Source | BSD-3-Clause | 2,019 | nsi-requester | BandwidthOnDemand | Scala | Code | 320 | 560 | /*
* Copyright (c) 2012, 2013, 2014, 2015, 2016 SURFnet BV
* 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, thi... | 3,116 |
https://github.com/apache/sis/blob/master/endorsed/src/org.apache.sis.feature/main/org/apache/sis/feature/builder/AssociationRoleBuilder.java | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference, BSD-3-Clause, MIT, EPL-1.0, Classpath-exception-2.0, GPL-2.0-only, LicenseRef-scancode-public-domain | 2,023 | sis | apache | Java | Code | 1,263 | 2,748 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 37,078 |
https://github.com/johnantoni/plugin.social/blob/master/lib/social_helpers.rb | Github Open Source | Open Source | MIT | 2,009 | plugin.social | johnantoni | Ruby | Code | 48 | 155 | module SocialHelpers
def get_twitter(u, p)
s = ""
if (u.length > 0 && p.length > 0)
client = Twitter::Client.new(:login => u, :pass => p)
timeline = client.timeline_for(:user, :id => u.to_s, :count => 1) do |status|
s = "<a href='http://twitter.com/#{status.user.screen_name}' alt='Twitter'... | 48,360 |
https://github.com/georgeconstantinou/project-template-cakephp/blob/master/config/log_actions.php | Github Open Source | Open Source | MIT | 2,021 | project-template-cakephp | georgeconstantinou | PHP | Code | 44 | 105 | <?php
return [
'LogActions' => [
// Enable actions logs
'enableLogActions' => true,
// List of controllers to Log
'controllers' => [
// example :
// \App\Controller\ThingsController::class,
],
// Actions to log
'actions' => [
... | 36,635 |
https://github.com/ellawg/ellawirstad.se/blob/master/src/components/molecules/ArrowBack.tsx | Github Open Source | Open Source | MIT | 2,020 | ellawirstad.se | ellawg | TypeScript | Code | 29 | 82 | import Link from "next/link";
import Arrow from "../atoms/Arrow";
const ArrowBack = () => (
<Link href="/">
<div className="m-8 h-8 cursor-pointer">
<Arrow left />
</div>
</Link>
);
export default ArrowBack;
| 7,735 |
https://github.com/Chanc3/beta-revai-java-sdk/blob/master/src/test/java/ai/rev/speechtotext/integration/GetCaptionsTest.java | Github Open Source | Open Source | MIT | 2,022 | beta-revai-java-sdk | Chanc3 | Java | Code | 245 | 914 | package ai.rev.speechtotext.integration;
import ai.rev.speechtotext.ApiClient;
import ai.rev.speechtotext.models.asynchronous.RevAiCaptionType;
import ai.rev.speechtotext.models.asynchronous.RevAiJob;
import ai.rev.speechtotext.models.asynchronous.RevAiJobStatus;
import org.junit.Before;
import org.junit.Test;
import... | 19,070 |
https://github.com/hybridappnest/AppNestiOS/blob/master/Pods/Headers/Private/TXIMSDK_TUIKit_iOS/TUIMemberPanelCell.h | Github Open Source | Open Source | Apache-2.0 | 2,021 | AppNestiOS | hybridappnest | C | Code | 1 | 35 | ../../../TXIMSDK_TUIKit_iOS/TUIKit/Classes/Section/Commom/Cell/TUIMemberPanelCell.h | 2,541 |
https://github.com/maazirfan/gearVRProject/blob/master/Assets/Plugins/Android/Shader/MeshVertShader.vsh | Github Open Source | Open Source | MIT | null | gearVRProject | maazirfan | GLSL | Code | 86 | 301 | attribute highp vec3 inVertex;
attribute mediump vec3 inNormal;
attribute mediump vec2 inTexCoord;
uniform highp mat4 MVPMatrix;
uniform mediump vec2 TexCoordMove;
varying mediump vec2 TexCoord;
void main()
{
highp vec4 vPos = vec4(0,0,0,1);
vPos.x = ( inTexCoord.x * 2.0 - 1.0 );
vPos.y = ( inTexC... | 46,470 |
https://github.com/zone117x/CsQuery/blob/master/source/CsQuery.Tests/Utility/FastActivator.cs | Github Open Source | Open Source | MIT | 2,021 | CsQuery | zone117x | C# | Code | 86 | 324 | using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using NUnit.Framework;
using Assert = NUnit.Framework.Assert;
using CollectionAssert = NUnit.Framework.CollectionAssert;
using StringAssert = NUnit.Framework.StringAssert;
using Tes... | 32,980 |
https://github.com/mikegwyn17/LudemDareSpring2020/blob/master/LudemDareSpring2020/Assets/Scripts/Enemy/EnemyReaction.cs | Github Open Source | Open Source | MIT | null | LudemDareSpring2020 | mikegwyn17 | C# | Code | 89 | 197 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement; // This is very important if we want to restart the level
public class EnemyReaction : MonoBehaviour
{
// Use this for initialization
void Start()
{
}
// Update is called once per f... | 23,459 |
https://github.com/solitardj9/timeline-service/blob/master/timelineService/src/main/java/com/solitardj9/timelineService/utils/fileUtil/MapFileUtil.java | Github Open Source | Open Source | Apache-2.0 | null | timeline-service | solitardj9 | Java | Code | 351 | 1,169 | package com.solitardj9.timelineService.utils.fileUtil;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.util.HashMap;
import java.util.Map;
import java.util.TreeMap;
import ... | 3,156 |
https://github.com/gradle/gradle/blob/master/subprojects/core/src/main/java/org/gradle/internal/buildtree/DefaultBuildTreeContext.java | Github Open Source | Open Source | BSD-3-Clause, LGPL-2.1-or-later, LicenseRef-scancode-mit-old-style, EPL-2.0, CDDL-1.0, MIT, LGPL-2.1-only, Apache-2.0, MPL-2.0, EPL-1.0 | 2,023 | gradle | gradle | Java | Code | 176 | 413 | /*
* Copyright 2021 the original author or authors.
*
* 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 applica... | 17,258 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.