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/ratuaryella/Sistem-Antrian-Puskemas/blob/master/resources/views/template/user.blade.php | Github Open Source | Open Source | MIT | null | Sistem-Antrian-Puskemas | ratuaryella | PHP | Code | 105 | 672 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/user.css">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm... | 9,543 |
https://github.com/LaTeXhelper/LaTeX-helper/blob/master/setup.py | Github Open Source | Open Source | MIT | 2,022 | LaTeX-helper | LaTeXhelper | Python | Code | 58 | 254 | from importlib_metadata import entry_points
from setuptools import setup, find_packages
import os
import platform
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname),encoding='utf-8').read()
setup(
name="latexhelper",
version="1.0",
author="Yujin Wang, Zhi Wang, Jianwei Zhu",
... | 27,404 |
https://github.com/deplax/mcnote/blob/master/terminal/week03/lab04.cs | Github Open Source | Open Source | MIT | 2,014 | mcnote | deplax | C# | Code | 59 | 178 | using System;
namespace NEXT{
class lab4{
public static void Main(String [] args){
const int SIZE = 5;
int[] arr;
int i, sum = 0;
arr = new int[SIZE];
string temp;
i = 0;
while(i < SIZE){
Console.Write("num[{0}]? ", i + 1);
temp = Console.ReadLine();
arr[i] = Convert.ToInt32(temp... | 11,813 |
https://github.com/rjmcguire/esparse/blob/master/index.js | Github Open Source | Open Source | MIT | 2,016 | esparse | rjmcguire | JavaScript | Code | 3 | 13 | module.exports = require("./build/esparse") | 41,827 |
https://github.com/zmatsh/NSS/blob/master/src/main/java/net/fs/rudp/PipeListener.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | NSS | zmatsh | Java | Code | 14 | 42 | // Copyright (c) 2015 D1SM.net
package net.fs.rudp;
public interface PipeListener {
void pipeClose();
}
| 44,260 |
https://github.com/GabrielRavier/CuckySonic/blob/master/src/Backend_SDL2/Audio.cpp | Github Open Source | Open Source | MIT | null | CuckySonic | GabrielRavier | C++ | Code | 1,799 | 6,199 | #include <math.h>
#include <stdlib.h>
#include <string.h>
#include "SDL_timer.h"
#include "../Audio.h"
#include "../Filesystem.h"
#include "../MathUtil.h"
#include "../Log.h"
#include "../Error.h"
//The current audio device
SDL_AudioDeviceID gAudioDevice;
//Sound and music lists (for mixing and remembering what sou... | 32,070 |
https://github.com/mmeysenburg/DEA/blob/master/src/edu/doane/dugal/dea/kits/general/TournamentSelection.java | Github Open Source | Open Source | MIT | 2,020 | DEA | mmeysenburg | Java | Code | 365 | 811 | package edu.doane.dugal.dea.kits.general;
import edu.doane.dugal.dea.Individual;
import edu.doane.dugal.dea.Operator;
import edu.doane.dugal.dea.PRNG;
/**
* Class implementing non-elitist tournament selection.
*
* @author Mark M. Meysenburg
* @version 12/26/2014
*/
public class TournamentSelection implements Ope... | 27,678 |
https://github.com/tommelo/fundamentos-java/blob/master/fundamentos-atividade-3/src/br/com/fiap/fundamentos/listas/CollectionsTest.java | Github Open Source | Open Source | Apache-2.0 | null | fundamentos-java | tommelo | Java | Code | 252 | 884 | package br.com.fiap.fundamentos.listas;
import java.time.LocalDateTime;
import java.time.temporal.ChronoUnit;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.Stack;
public class CollectionsTest implements PerformanceTest<Integer>{
@Override
public long populate(List<Integer> lis... | 40,674 |
https://github.com/quantosnetwork/karod/blob/master/api/authorization.go | Github Open Source | Open Source | MIT | null | karod | quantosnetwork | Go | Code | 38 | 127 | package api
import (
"context"
apipb "karod/pb/api"
)
type AuthorizationServer struct{}
func (a AuthorizationServer) mustEmbedUnimplementedAuthorizationServerServer() {
//TODO implement me
panic("implement me")
}
func (a AuthorizationServer) Authorize(ctx context.Context, request *apipb.AuthorizationRequest) (*... | 21,155 |
https://github.com/tunnelvisionlabs/InheritanceMargin/blob/master/Tvl.VisualStudio.InheritanceMargin.Interfaces/IInheritanceTarget.cs | Github Open Source | Open Source | MIT | 2,021 | InheritanceMargin | tunnelvisionlabs | C# | Code | 97 | 198 | // Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved.
// Licensed under the MIT License. See LICENSE.txt in the project root for license information.
namespace Tvl.VisualStudio.InheritanceMargin
{
/// <summary>
/// Represents the target of an inheritance relation.
/// </summary>
publi... | 37,360 |
https://github.com/ncdc/velero/blob/master/pkg/controller/backup_controller_test.go | Github Open Source | Open Source | Apache-2.0 | null | velero | ncdc | Go | Code | 1,190 | 4,527 | /*
Copyright 2017 the Heptio Ark contributors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writ... | 12,395 |
https://github.com/godoakbrutal/changmin/blob/master/src/PhpMob/Grid/FieldType/TextFieldType.php | Github Open Source | Open Source | MIT | 2,017 | changmin | godoakbrutal | PHP | Code | 84 | 347 | <?php
namespace PhpMob\Grid\FieldType;
use Sylius\Component\Grid\DataExtractor\DataExtractorInterface;
use Sylius\Component\Grid\Definition\Field;
use Sylius\Component\Grid\FieldTypes\FieldTypeInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
class TextFieldType implements FieldTypeInterface
{
/*... | 35,240 |
https://github.com/Garados007/MaxLib/blob/master/MaxLib/Net/Webserver/Lazy/LazySource.cs | Github Open Source | Open Source | MIT | 2,021 | MaxLib | Garados007 | C# | Code | 282 | 727 | using MaxLib.Data;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
namespace MaxLib.Net.Webserver.Lazy
{
[Serializable]
public class LazySource : HttpDataSource
{
public LazySource(WebProgressTask task, LazyEventHandler handler)
... | 12,613 |
https://github.com/mquaker/Scheduler/blob/master/Unity/Assets/Ashkatchap/Shared.meta | Github Open Source | Open Source | MIT | 2,018 | Scheduler | mquaker | Unity3D Asset | Code | 14 | 71 | fileFormatVersion: 2
guid: ac869320d66dc7b44a7a2f1700ea2814
folderAsset: yes
timeCreated: 1496265499
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
| 8,442 |
https://github.com/Marcokbc/ProgWeb-PHP/blob/master/progrmacaoweb2/Aula5/receber01.php | Github Open Source | Open Source | MIT | null | ProgWeb-PHP | Marcokbc | PHP | Code | 29 | 97 | <?php
$idade = filter_input(INPUT_GET,'idade_inicial');
$quantofalta = 0;
while($idade <= 18){
echo $idade."<br>";
if($idade < 18){
$quantofalta++;
}
$idade++;
}
echo "Faltam $quantofalta anos para essa pessoa completar 18 anos";
| 19,140 |
https://github.com/susisu/js-sandbox/blob/master/bezier/src/div.js | Github Open Source | Open Source | MIT | 2,017 | js-sandbox | susisu | JavaScript | Code | 208 | 541 | "use strict";
class Point {
constructor(x, y) {
this.x = x;
this.y = y;
}
toString() {
return "(" + this.x.toString() + ", "
+ this.y.toString() + ")";
}
}
function next(ps, t) {
var qs = [];
for (var i = 0; i < ps.length - 1; i++) {
var p1 = ps[i],... | 16,198 |
https://github.com/qiyinfei/alibaba-cloud-sdk-go/blob/master/services/emr/describe_workspace_repo_setting.go | Github Open Source | Open Source | Apache-2.0 | 2,022 | alibaba-cloud-sdk-go | qiyinfei | Go | Code | 391 | 1,322 | package emr
//Licensed under the Apache License, Version 2.0 (the "License");
//you may not use this file except in compliance with the License.
//You may obtain a copy of the License at
//
//http://www.apache.org/licenses/LICENSE-2.0
//
//Unless required by applicable law or agreed to in writing, software
//distribut... | 45,406 |
https://github.com/xarvh/lexical-random-generator/blob/master/examples/real-world/NameGenerator.elm | Github Open Source | Open Source | BSD-3-Clause | 2,017 | lexical-random-generator | xarvh | null | Spoken | 285 | 2,309 | module NameGenerator exposing (ship)
import Array
import Dict
import LexicalRandom
import Random
import String.Extra
defaultLexicon =
LexicalRandom.fromString """
# These phonems have been generated from a dictionary of common english words.
# I think that using a dictionary of proper nouns only would yield bet... | 55,320 |
https://github.com/ngaurav/chi_food/blob/master/lib/model/restaurants.g.dart | Github Open Source | Open Source | MIT | 2,022 | chi_food | ngaurav | Dart | Code | 1,552 | 6,609 | // GENERATED CODE - DO NOT MODIFY BY HAND
part of 'restaurants.dart';
// **************************************************************************
// BuiltValueGenerator
// **************************************************************************
Serializer<Restaurants> _$restaurantsSerializer = new _$RestaurantsS... | 30,415 |
https://github.com/theopolis/osquery/blob/master/osquery/utils/conversions/darwin/cfdata.cpp | Github Open Source | Open Source | GPL-2.0-only, LicenseRef-scancode-generic-cla, Apache-2.0 | 2,019 | osquery | theopolis | C++ | Code | 137 | 354 | /**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed in accordance with the terms specified in
* the LICENSE file found in the root directory of this source tree.
*/
#include "cfdata.h"
#include <iomanip>
#include <sstream>
namespace osquery {
std::strin... | 33,445 |
https://github.com/reinfi/bamboo-spec/blob/master/src/Entity/Notification/Type/PlanStatusChangedNotification.php | Github Open Source | Open Source | MIT | 2,018 | bamboo-spec | reinfi | PHP | Code | 23 | 109 | <?php
declare(strict_types=1);
namespace Reinfi\BambooSpec\Entity\Notification\Type;
/**
* @package Reinfi\BambooSpec\Entity\Notification\Type
*/
class PlanStatusChangedNotification extends AnyType
{
public function getNotificationClass(): string
{
return 'com.atlassian.bamboo.plugin.system.notific... | 11,623 |
https://github.com/j3pz/j3pz-web/blob/master/src/components/dashboard/case_list.less | Github Open Source | Open Source | MIT | 2,021 | j3pz-web | j3pz | Less | Code | 70 | 228 | .school-icon {
position: absolute;
font-size: 80px;
right: 0;
opacity: 0.16;
top: -50px;
display: none;
}
.kungfu-icon {
width: 48px;
height: 48px;
}
.case-more {
display: none;
position: absolute;
font-size: 20px;
top: 10px;
opacity: 0.64;
cursor: pointer;
&:... | 49,086 |
https://github.com/indigothm/flutter-terra-apple/blob/master/example/lib/main.dart | Github Open Source | Open Source | MIT | null | flutter-terra-apple | indigothm | Dart | Code | 128 | 427 | import 'package:flutter/material.dart';
import 'package:terra_apple_health/terra_apple_health.dart';
import 'package:terra_apple_health_example/secrets.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({Key? key}) : super(key: key);
@override
State<MyApp> createSt... | 34,132 |
https://github.com/ultraman231998/anhnguyen2310/blob/master/SuperMarket/application/controllers/Admin/Transaction.php | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,020 | anhnguyen2310 | ultraman231998 | PHP | Code | 99 | 329 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Transaction extends CI_Controller {
public function __construct()
{
parent::__construct();
$this->load->model('Transaction_model');
$this->load->model('Transactiondetail_model');
//Load Dependencies
}
// List all your items
pub... | 17,672 |
https://github.com/b4bhadresh2020/sohyper/blob/master/app/Asset_social_list.php | Github Open Source | Open Source | MIT | null | sohyper | b4bhadresh2020 | PHP | Code | 30 | 101 | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
/**
* Class Asset_social_list.
*/
class Asset_social_list extends Model
{
protected $table = 'asset_social_list';
protected $primaryKey = 'list_id';
public $timestamps = false;
}
| 533 |
https://github.com/kyleduo/Aladdin/blob/master/core-api/src/main/java/com/kyleduo/aladdin/api/manager/AladdinManager.kt | Github Open Source | Open Source | MIT | null | Aladdin | kyleduo | Kotlin | Code | 44 | 103 | package com.kyleduo.aladdin.api.manager
/**
* General interface for a manager.
*
* @author kyleduo on 2021/5/18
*/
interface AladdinManager {
/**
* Invoked while managers was being install.
*/
fun attach()
/**
* Invoked when all managers has been installed properly.
*/
fun rea... | 17,774 |
https://github.com/HuiSF/Scratch-JS/blob/master/panel/scripts/util.js | Github Open Source | Open Source | MIT | 2,021 | Scratch-JS | HuiSF | JavaScript | Code | 79 | 208 | function debounce(fn, delay, ctx) {
var timer = null;
return function () {
var context = ctx || this, args = arguments;
clearTimeout(timer);
timer = setTimeout(function () {
fn.apply(context, args);
}, delay);
};
}
function logError(err) {
err = JSON.stringify(err);
chrome.devtools.insp... | 56,028 |
https://github.com/isotopsweden/wp-cargo/blob/master/src/contracts/interface-runner.php | Github Open Source | Open Source | MIT | 2,020 | wp-cargo | isotopsweden | PHP | Code | 38 | 101 | <?php
namespace Isotop\Cargo\Contracts;
interface Runner_Interface extends Driver_Interface {
/**
* Bootstrap the runner.
*/
public function bootstrap();
/**
* Run all content task.
*/
public function run_all();
/**
* Run queued content task.
*/
public function run_queue();
}
| 20,346 |
https://github.com/dram/metasfresh/blob/master/misc/services/camel/de-metas-camel-externalsystems/core/src/main/java/de/metas/camel/externalsystems/core/restapi/auth/TokenService.java | Github Open Source | Open Source | RSA-MD | 2,022 | metasfresh | dram | Java | Code | 245 | 723 | /*
* #%L
* de-metas-camel-externalsystems-core
* %%
* Copyright (C) 2021 metas GmbH
* %%
* 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 o... | 9,487 |
https://github.com/hdbc/hdbc/blob/master/testsrc/TestSqlValue.hs | Github Open Source | Open Source | 2,022 | hdbc | hdbc | Haskell | Code | 209 | 682 | {-
Copyright (C) 2009 John Goerzen <jgoerzen@complete.org>
All rights reserved.
For license and copyright information, see the file COPYRIGHT
-}
module TestSqlValue where
import Test.QuickCheck hiding (Result)
import Test.QuickCheck.Property (Result)
import qualified Test.HUnit as HU
import Database.HDBC
import Data... | 24,544 | |
https://github.com/john29917958/Swincher/blob/master/swincher/src/reducers/index.js | Github Open Source | Open Source | MIT | 2,018 | Swincher | john29917958 | JavaScript | Code | 55 | 136 | 'use strict';
import { combineReducers } from 'redux';
import activationReducer from './activationReducer';
import appShortcutsReducer from './appShortcutsReducer';
// Combines reducers with the state specified by the key
// in given JSON object.
// state.page => pageReducer
// state.activation => activationReducer
/... | 2,700 |
https://github.com/zxcwhale/android_gpsbd/blob/master/hardware/libgps/asn-supl/UTRANGPSDriftRate.h | Github Open Source | Open Source | MIT | 2,021 | android_gpsbd | zxcwhale | C | Code | 133 | 812 | /*
* Generated by asn1c-0.9.28 (http://lionet.info/asn1c)
* From ASN.1 module "Ver2-ULP-Components"
* found in "../ver2-ulp-components.asn"
* `asn1c -fcompound-names -gen-PER`
*/
#ifndef _UTRANGPSDriftRate_H_
#define _UTRANGPSDriftRate_H_
#include <asn_application.h>
/* Including external dependencies */
#in... | 459 |
https://github.com/mike7ant/SGParser/blob/master/samples/calc/generate.sh | Github Open Source | Open Source | MIT | null | SGParser | mike7ant | Shell | Code | 144 | 559 | #!/usr/bin/env bash
# Filename: generate.sh
# Content: Script that generates calculator parser files
# Provided AS IS under MIT License; see LICENSE file in root folder.
#
# It generates files required by the calculator sample.
# It will create directory specified as the output for the files if it doesn't exist.
a... | 28,646 |
https://github.com/dgreid/platform2/blob/master/camera/hal/intel/ipu6/modules/sandboxing/server/IntelTNRServer.cpp | Github Open Source | Open Source | BSD-3-Clause | 2,021 | platform2 | dgreid | C++ | Code | 416 | 1,525 | /*
* Copyright (C) 2020 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | 4,190 |
https://github.com/MoguCloud/server/blob/master/tests/app/api_v0/test_ep.py | Github Open Source | Open Source | BSD-3-Clause | null | server | MoguCloud | Python | Code | 94 | 342 | from starlette.testclient import TestClient
def test_episode_404(client: TestClient):
response = client.get("/v0/episodes/10000000")
assert response.status_code == 404
assert response.headers["content-type"] == "application/json"
def test_episode(client: TestClient):
response = client.get("/v0/episo... | 47,923 |
https://github.com/scoffey/jz80sim/blob/master/src/ar/edu/itba/it/obc/jz80/instructions/JZ8016BitRegister.java | Github Open Source | Open Source | MIT | 2,015 | jz80sim | scoffey | Java | Code | 123 | 491 | package ar.edu.itba.it.obc.jz80.instructions;
import ar.edu.itba.it.obc.jz80.api.DeviceListener;
import ar.edu.itba.it.obc.jz80.api.Processor;
import ar.edu.itba.it.obc.jz80.api.Register;
import ar.edu.itba.it.obc.jz80.api.WordOperand;
import ar.edu.itba.it.obc.jz80.api.Z80System;
import ar.edu.itba.it.obc.jz80.system... | 25,678 |
https://github.com/elkraken18/NEAT_for_Godot/blob/master/src/demos/lunar_lander/Lander/lander.gd | Github Open Source | Open Source | MIT | 2,020 | NEAT_for_Godot | elkraken18 | GDScript | Code | 1,064 | 2,323 | extends RigidBody2D
"""A lunar lander that uses impulses to move around. It uses three colliders to check
for ground contact or crashing, and three raycasts to scan the distance to the ground
and to the left and right.
"""
# ---------- THRUSTERS AND CONTROL
# the power with which the thrusters will fire. Should be hi... | 48,603 |
https://github.com/xiaohaiz/goblinframework/blob/master/goblin-dao/src/main/java/org/goblinframework/dao/mapping/EntityIdField.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | goblinframework | xiaohaiz | Java | Code | 64 | 271 | package org.goblinframework.dao.mapping;
import org.bson.types.ObjectId;
import org.goblinframework.core.util.GoblinField;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
final public class EntityIdFiel... | 9,268 |
https://github.com/pamboo80/rockset-java-client/blob/master/src/main/java/com/rockset/examples/QueryExample.java | Github Open Source | Open Source | Apache-2.0 | null | rockset-java-client | pamboo80 | Java | Code | 53 | 184 | package com.rockset.examples;
import com.rockset.client.ApiException;
import com.rockset.client.RocksetClient;
import com.rockset.client.model.*;
public class QueryExample {
public static void main(String[] args) {
RocksetClient rs = new RocksetClient("<apiKey>", "<apiServer>");
QueryRequest request = new ... | 29,809 |
https://github.com/992735020/terraform-alicloud-influxdb/blob/master/main.tf | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,021 | terraform-alicloud-influxdb | 992735020 | HCL | Code | 23 | 92 | resource "alicloud_tsdb_instance" "example" {
payment_type = var.payment_type
vswitch_id = var.vswitch_id
instance_storage = var.instance_storage
instance_class = var.instance_class
engine_type = var.engine_type
instance_alias = var.instance_alias
}
| 11,183 |
https://github.com/AaronChen0/cl-primesieve/blob/master/primesieve.lisp | Github Open Source | Open Source | MIT | 2,020 | cl-primesieve | AaronChen0 | Common Lisp | Code | 619 | 2,010 | (in-package :cl-primesieve)
(define-foreign-library libprimesieve
(:darwin (:or "libprimesieve.9.dylib" "libprimesieve.dylib"))
(:unix (:or "libprimesieve.so.9" "libprimesieve.so"))
(t (:default "libprimesieve")))
(defun load-lib ()
(handler-case
(use-foreign-library libprimesieve)
(error (e)
... | 16,268 |
https://github.com/laraerp/laraerp/blob/master/template/resources/views/endereco/fields.blade.php | Github Open Source | Open Source | MIT | 2,016 | laraerp | laraerp | Blade | Code | 201 | 1,060 | <div class="form-group">
<label class="col-sm-2 control-label">Cep:</label>
<div class="col-sm-10">
<div class="input-group">
<input type="text" class="form-control cep" id="cep" name="endereco[cep]" value="{{ $params['endereco']['cep'] or '' }}" placeholder="CEP" />
<span class=... | 14,096 |
https://github.com/durandx/focus-core/blob/master/src/site-description/index.js | Github Open Source | Open Source | MIT | 2,017 | focus-core | durandx | JavaScript | Code | 46 | 106 | let _builder = require('./builder');
/**
* @description Get th site structure processed with the user roles.
* @return {object} - The user site structure.
*/
function getUserSiteStructure(){
//Seems wiered looking like a ci
return _builder.getSiteStructure();
}
module.exports = {
builder: _builder,
reader: ... | 47,952 |
https://github.com/JonathanMerritt/AndroidScabbard/blob/master/core/src/main/java/com/github/jonathanmerritt/androidscabbard/core/IsGrandChildFragmentModule.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | AndroidScabbard | JonathanMerritt | Java | Code | 222 | 789 | /*
* Copyright 2018 Jonathan Merritt 11R00TT00R11@GMAIL.COM
*
* 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
*
* ... | 53,057 |
https://github.com/JPereirax/Socket4M/blob/master/Server/src/main/java/me/devnatan/socket4m/server/handler/IOHandler.java | Github Open Source | Open Source | MIT | 2,020 | Socket4M | JPereirax | Java | Code | 157 | 547 | package me.devnatan.socket4m.server.handler;
import lombok.Value;
import me.devnatan.socket4m.server.Server;
import me.devnatan.socket4m.server.connection.Connection;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.channels.AsynchronousSocketChannel;
import java.nio.channels.CompletionHandler;... | 22,044 |
https://github.com/kmiya/scenario_simulator_v2/blob/master/simulation/simple_sensor_simulator/src/sensor_simulation/lidar/lidar_sensor.cpp | Github Open Source | Open Source | Apache-2.0 | 2,021 | scenario_simulator_v2 | kmiya | C++ | Code | 306 | 1,075 | // Copyright 2015-2020 Tier IV, Inc. 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 app... | 2,903 |
https://github.com/zaporozhets/scopeApp/blob/master/third_party/libbtbb/src/wireshark/plugins/btbb/packet-btbb.c | Github Open Source | Open Source | MIT | null | scopeApp | zaporozhets | C | Code | 2,121 | 7,632 | /* packet-btbb.c
* Routines for Bluetooth baseband dissection
* Copyright 2009, Michael Ossmann <mike@ossmann.com>
*
* $Id$
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* This program is free software; you can redistribute it and/or
* modif... | 31,981 |
https://github.com/Feodor2/Mypal68/blob/master/third_party/python/python-hglib/tests/test-hglib.py | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,023 | Mypal68 | Feodor2 | Python | Code | 69 | 255 | from tests import common
import hglib
class test_hglib(common.basetest):
def setUp(self):
pass
def test_close_fds(self):
"""A weird Python bug that has something to do to inherited file
descriptors, see http://bugs.python.org/issue12786
"""
common.basetest.setUp(self)
... | 42,792 |
https://github.com/zonxin/grunt-expandC/blob/master/clib/data_structure/SymbolTable/RedBlackTree.c | Github Open Source | Open Source | MIT | 2,020 | grunt-expandC | zonxin | C | Code | 301 | 1,151 | #ifndef __CLIB_DATA_STRUCTURE_TREE_REDBLACKTREE_C__
#define __CLIB_DATA_STRUCTURE_TREE_REDBLACKTREE_C__
// class Ord Key
// #define Key char
// #define Value int
// #define compare(a,b) ((a)-(b))
#include <malloc.h>
typedef enum { BLACK=0,RED=1 } _RBcolor_;
typedef struct _RB_NODE_{
Key key;
Value val;
_... | 27,402 |
https://github.com/segmentio/topicctl/blob/master/cmd/topicctl/subcmd/get.go | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,023 | topicctl | segmentio | Go | Code | 389 | 1,211 | package subcmd
import (
"context"
"fmt"
"strings"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/segmentio/topicctl/pkg/cli"
log "github.com/sirupsen/logrus"
"github.com/spf13/cobra"
)
var getCmd = &cobra.Command{
Use: "get [resource type]",
Short: "get instances of a particular type",
Long: strings... | 42,208 |
https://github.com/dhamodharanrk/examples/blob/master/Face Detection Tkinter/FaceDetection.py | Github Open Source | Open Source | MIT | 2,019 | examples | dhamodharanrk | Python | Code | 156 | 669 | from tkinter import *
from PIL import Image
from PIL import ImageTk
from tkinter import filedialog
import cv2
def faceDetect(imge):
face_cascade = cv2.CascadeClassifier("haarcascade_frontalface_default.xml")
eye_cascade = cv2.CascadeClassifier("haarcascade_eye.xml")
img = cv2.imread(imge)
gray = cv2.cv... | 12,752 |
https://github.com/okkez/fluent-benchmark-client/blob/master/src/main/kotlin/org/fluentd/benchmark/PeriodicalReporter.kt | Github Open Source | Open Source | Apache-2.0 | 2,019 | fluent-benchmark-client | okkez | Kotlin | Code | 111 | 363 | package org.fluentd.benchmark
import kotlinx.coroutines.*
import kotlinx.coroutines.channels.SendChannel
import org.slf4j.LoggerFactory
import java.util.concurrent.atomic.AtomicLong
class PeriodicalReporter(private val statistics: SendChannel<Statistics.Recorder>,
private val eventCounter: At... | 17,317 |
https://github.com/Arairn/potential-octo-journey/blob/master/Assets/SampleSceneAssets/Tutorials/Pages/ReflectionProbes_01.asset | Github Open Source | Open Source | MIT | 2,021 | potential-octo-journey | Arairn | Unity3D Asset | Code | 328 | 1,304 | %YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: ff771ccdf4150... | 50,618 |
https://github.com/ruby-rdf/json-ld-preloaded/blob/master/lib/json/ld/preloaded/rdfa.rb | Github Open Source | Open Source | LicenseRef-scancode-public-domain, Unlicense | 2,022 | json-ld-preloaded | ruby-rdf | Ruby | Code | 463 | 2,150 | # -*- encoding: utf-8 -*-
# frozen_string_literal: true
# This file generated automatically from http://www.w3.org/2013/json-ld-context/rdfa11
require 'json/ld'
class JSON::LD::Context
add_preloaded("http://www.w3.org/2013/json-ld-context/rdfa11") do
new(processingMode: "json-ld-1.1", term_definitions: {
"a... | 39,265 |
https://github.com/DFranzkoch/IGEL-Custom-Partitions/blob/master/CP_Source/Apps/Spotify/build-spotify-cp.sh | Github Open Source | Open Source | LicenseRef-scancode-warranty-disclaimer, MIT | 2,021 | IGEL-Custom-Partitions | DFranzkoch | Shell | Code | 212 | 746 | #!/bin/bash
#set -x
#trap read debug
# Creating an IGELOS CP for Spotify
## Development machine (Ubuntu 18.04)
sudo apt install curl -y
sudo apt install unzip -y
sudo curl https://download.spotify.com/debian/pubkey_0D811D58.gpg | sudo apt-key add -
sudo sh -c 'echo "deb [arch=amd64] http://repository.spotify.com stabl... | 41,840 |
https://github.com/2n2n/credibl/blob/master/backend/app/Http/Controllers/MemberController.php | Github Open Source | Open Source | MIT | 2,016 | credibl | 2n2n | PHP | Code | 61 | 232 | <?php
namespace App\Http\Controllers;
use App\Member;
use Illuminate\Http\Request;
class MemberController extends Controller
{
public function info($id)
{
$member = Member::find(1);
if( is_null($member) )
{
return response()->json(['Member not found.']);
}
$data = [
"inf... | 18,357 |
https://github.com/ATRSnail/WoVideo/blob/master/app/src/main/java/com/lt/hm/wovideo/http/RespHeader.java | Github Open Source | Open Source | Apache-2.0 | null | WoVideo | ATRSnail | Java | Code | 183 | 506 | package com.lt.hm.wovideo.http;
/**
* @author leonardo
* @version 1.0
* @create_date 16/6/12
*/
public class RespHeader {
private String appVersion;
private String dataVersion;
private String deployVersion;
private String msgCount;
private String rspCode;
private String rspMsg;
public ... | 1,923 |
https://github.com/brotherp/Course-System-Back/blob/master/src/main/java/cn/ltysyn/dao/impl/ElectiveDaoImpl.java | Github Open Source | Open Source | MIT | 2,021 | Course-System-Back | brotherp | Java | Code | 92 | 379 | package cn.ltysyn.dao.impl;
import java.util.List;
import javax.transaction.Transactional;
import org.hibernate.SessionFactory;
import org.hibernate.query.Query;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import cn.ltysyn.bean.Elective;
import cn... | 47,404 |
https://github.com/ThielHater/GRMFixes_Union/blob/master/GRMFixes/ZenGin/Gothic_I_Classic/API/zAiPlayer.h | Github Open Source | Open Source | MIT | 2,022 | GRMFixes_Union | ThielHater | C++ | Code | 666 | 2,538 | // Supported with union (c) 2018 Union team
#ifndef __ZAI_PLAYER_H__VER0__
#define __ZAI_PLAYER_H__VER0__
namespace Gothic_I_Classic {
class zCAIPlayer : public zCAIBase {
public:
zCLASS_DECLARATION( zCAIPlayer )
enum zTSurfaceAlignMode {
zMV_SURFACE_ALIGN_NONE,
zMV_SURFACE_ALIGN_NORMAL,
... | 28,985 |
https://github.com/talk2sunil83/UpgradLearning/blob/master/Prep/ProgrammingPrac/temp.py | Github Open Source | Open Source | Apache-2.0 | null | UpgradLearning | talk2sunil83 | Python | Code | 144 | 466 | # %%
from typing import Sequence
from numba import njit
# %%
def fib(n: int):
if(n <= 2):
return 1
return fib(n-1) + fib(n-2)
# print(fib(3))
# print(fib(5))
# print(fib(8))
def fib_memo(n: int, memo={1: 1, 2: 1}):
if n >= 1:
if (n in memo):
return memo[n]
memo[n] =... | 52,994 |
https://github.com/sarathiscookie/api/blob/master/app/Http/Controllers/Admin/KeyInstructionController.php | Github Open Source | Open Source | MIT | null | api | sarathiscookie | PHP | Code | 550 | 1,705 | <?php
namespace App\Http\Controllers\Admin;
use App\Country;
use App\Http\Controllers\Controller;
use App\Http\Requests\Admin\KeyInstructionRequest;
use App\Http\Traits\CountryTrait;
use App\KeyInstruction;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Storage;
class KeyInstructionController extends Co... | 12,792 |
https://github.com/YusufDev101/winformspokedex/blob/master/WinformsPokedex/Controls/RegionListItem.Designer.cs | Github Open Source | Open Source | MIT | 2,021 | winformspokedex | YusufDev101 | C# | Code | 276 | 1,177 |
namespace WinformsPokedex.Controls
{
partial class RegionListItem
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </sum... | 10,234 |
https://github.com/djdany01/marper-api/blob/master/models/producto.js | Github Open Source | Open Source | MIT | null | marper-api | djdany01 | JavaScript | Code | 45 | 121 | /* jshint node: true */
/* jshint esversion: 6 */
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var ProductoSchema = Schema({
referencia: String,
nombre: String,
precio: Number,
categoria: String,
marca: String,
imageUrl: String,
destacado: Boolean
});
// exportamos el... | 14,017 |
https://github.com/jo-va/team-track/blob/master/server/resolvers/subscription.js | Github Open Source | Open Source | MIT | 2,018 | team-track | jo-va | JavaScript | Code | 165 | 593 | import { withFilter } from 'graphql-subscriptions';
import { Participant, Group, Event } from '../models';
import getPubSub from '../pubsub';
export const PARTICIPANT_JOINED = 'participantJoined';
export const GROUP_DISTANCE_UPDATED = 'groupDistanceUpdated';
export const EVENT_DISTANCE_UPDATED = 'eventDistanceUpdated'... | 56,630 |
https://github.com/sgrosse/mail/blob/master/tasks/ragel.rake | Github Open Source | Open Source | MIT | null | mail | sgrosse | Ruby | Code | 136 | 470 | load 'lib/mail/parsers.rb'
# RFC 6532 extensions rely on RFC 3629 UTF-8 chars
rule 'lib/mail/parsers/rfc5234_abnf_core_rules.rl' => 'lib/mail/parsers/rfc3629_utf8.rl'
# All RFC 5322 parsers depend on ABNF core rules
rule %r|/rfc5322_.+\.rl\z/| => 'lib/mail/parsers/rfc5234_abnf_core_rules.rl'
# RFC 5322 parser depend... | 22,559 |
https://github.com/seguimentoweb/laravel-project-api/blob/master/app/Http/Resources/ApiResponse.php | Github Open Source | Open Source | MIT | 2,020 | laravel-project-api | seguimentoweb | PHP | Code | 50 | 148 | <?php
namespace App\Http\Resources;
use Illuminate\Http\Response as HttpResponse;
use Illuminate\Support\Facades\Response;
class ApiResponse
{
public static function return($data = [], $error = [], $message = [], $statusCode = null)
{
$objResponse = new HttpResponse();
return Response::json(... | 42,403 |
https://github.com/malex18/lewagon-aoc/blob/master/db/migrate/20211127020610_create_completion_ranks.rb | Github Open Source | Open Source | MIT | 2,021 | lewagon-aoc | malex18 | Ruby | Code | 23 | 91 | # frozen_string_literal: true
class CreateCompletionRanks < ActiveRecord::Migration[6.1]
def change
create_view :completion_ranks, materialized: true
add_index :completion_ranks, :completion_id, unique: true
add_index :completion_ranks, :in_batch
end
end
| 55,986 |
https://github.com/zhangx1923/-QuQ-/blob/master/baseClass/Qubit.py | Github Open Source | Open Source | Apache-2.0 | 2,018 | -QuQ- | zhangx1923 | Python | Code | 1,318 | 4,146 | #!/usr/bin/python3
from baseQubit import BaseQubit
import sys
sys.path.append('../tools/')
import interactCfg
import math
#from Circuit import Circuit
from Error import *
from Bit import Bit
import random
import copy
#get the info about the function name and the line number
def get_curl_info():
try:
raise Exception... | 55,123 |
https://github.com/batect/batect/blob/master/app/src/main/kotlin/batect/execution/ContainerDependencyGraphProvider.kt | Github Open Source | Open Source | Apache-2.0 | 2,023 | batect | batect | Kotlin | Code | 180 | 495 | /*
Copyright 2017-2022 Charles Korn.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or ag... | 49,739 |
https://github.com/Wa-t/BookLendingMiniapp/blob/master/src/pages/index/index.less | Github Open Source | Open Source | MIT | 2,021 | BookLendingMiniapp | Wa-t | Less | Code | 63 | 343 |
.index {
flex-direction: column;
width: 100%;
}
.view-container {
margin-bottom: 106px;
.at-grid__flex .content-inner__icon {
flex: 1;
width: 100%;
text-align: center;
}
.at-grid__flex .content-inner__img {
width: 68%;
height: 100%;
}
}
.search {
.at-search-bar__action {
// ba... | 15,115 |
https://github.com/lbryio/lbry.go/blob/master/schema/.gitignore | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,023 | lbry.go | lbryio | Ignore List | Code | 4 | 37 | .idea/
lbryschema-cli
lbryschema-python-binding.h
lbryschema-python-binding.so
| 6,327 |
https://github.com/solo-io/service-mesh-extensions/blob/master/Makefile | Github Open Source | Open Source | Apache-2.0 | 2,020 | service-mesh-extensions | solo-io | Makefile | Code | 266 | 1,281 | #----------------------------------------------------------------------------------
# Base
#----------------------------------------------------------------------------------
ROOTDIR := $(shell pwd)
OUTPUT_DIR ?= $(ROOTDIR)/_output
VERSION ?= $(shell echo $(TAGGED_VERSION) | cut -c 2-)
LDFLAGS := "-X github.com/solo-i... | 26,232 |
https://github.com/dotnet/orleans/blob/master/src/Azure/Orleans.Reminders.AzureStorage/Storage/AzureTableReminderStorageOptions.cs | Github Open Source | Open Source | MIT | 2,023 | orleans | dotnet | C# | Code | 101 | 291 | namespace Orleans.Reminders.AzureStorage
{
/// <summary>Options for Azure Table based reminder table.</summary>
public class AzureTableReminderStorageOptions : AzureStorageOperationOptions
{
/// <summary>
/// Table name for Azure Storage
/// </summary>
public override string ... | 45,090 |
https://github.com/jackop60506/Unlight/blob/master/app/client/src/model/utils/logs/LevelUpLog.as | Github Open Source | Open Source | MIT | 2,019 | Unlight | jackop60506 | null | Spoken | 213 | 904 | package model.utils.logs
{
import flash.events.*;
import flash.utils.Timer;
import flash.events.TimerEvent;
import flash.net.URLRequest;
import flash.net.URLLoader;
import flash.events.EventDispatcher;
import flash.events.IEventDispatcher;
import model.utils.*;
import model.events.*... | 46,525 |
https://github.com/remore/gemstat/blob/master/lib/gemstat/cache/gemfiles/t/tumblr-follow:0.0.1/Gemfile | Github Open Source | Open Source | MIT | 2,015 | gemstat | remore | Ruby | Code | 4 | 14 | gem 'oauth'
gem 'launchy'
| 25,887 |
https://github.com/Unlikus/rust-autograd/blob/master/tests/test_binary_ops_grad.rs | Github Open Source | Open Source | MIT | 2,022 | rust-autograd | Unlikus | Rust | Code | 883 | 3,551 | extern crate autograd as ag;
extern crate ndarray;
use ag::tensor::Variable;
use ag::with;
use ndarray::array;
#[test]
fn scalar_add() {
ag::with(|g| {
let x = g.placeholder(&[]);
let y = x + 2.;
let grad = g.grad(&[y], &[x])[0];
assert_eq!(1., grad.eval(&[]).unwrap()[ndarray::IxDy... | 30,093 |
https://github.com/g11v8a/ticketeer/blob/master/tests/Unit/ConcertTest.php | Github Open Source | Open Source | MIT | null | ticketeer | g11v8a | PHP | Code | 382 | 2,101 | <?php
namespace Tests\Unit;
use App\Order;
use App\Ticket;
use App\Concert;
use Tests\TestCase;
use Illuminate\Support\Carbon;
use App\Exceptions\NotEnoughTicketsException;
use Illuminate\Foundation\Testing\RefreshDatabase;
class ConcertTest extends TestCase
{
use RefreshDatabase;
/** @test */
function ... | 52,152 |
https://github.com/Tavenem/Randomize/blob/master/src/Randomizer.cs | Github Open Source | Open Source | MIT | null | Randomize | Tavenem | C# | Code | 8,163 | 18,386 | using Tavenem.Mathematics;
using Tavenem.Randomize.Distributions;
using Tavenem.Randomize.Generators;
namespace Tavenem.Randomize;
/// <summary>
/// Provides random number generation and selection capabilities.
/// </summary>
public class Randomizer
{
private readonly RandomNumberGenerator _generator;
/// <... | 54,014 |
https://github.com/pencil-js/pencil.js/blob/master/src/modules/knob/knob.js | Github Open Source | Open Source | MIT | 2,022 | pencil.js | pencil-js | JavaScript | Code | 338 | 912 | import Input from "@pencil.js/input";
import Component from "@pencil.js/component";
import Circle from "@pencil.js/circle";
import Line from "@pencil.js/line";
import MouseEvent from "@pencil.js/mouse-event";
import BaseEvent from "@pencil.js/base-event";
import { map, modulo } from "@pencil.js/math";
import "@pencil.j... | 52,070 |
https://github.com/ramirezmj/Choose-Monster/blob/master/Resources/view/components/Header.js | Github Open Source | Open Source | Apache-2.0 | null | Choose-Monster | ramirezmj | JavaScript | Code | 64 | 202 | /**
* @author Jose Manuel Ramírez Martínez
*/
function Header() {
this.box = null;
this.build = function() {
var header = Ti.UI.createLabel({
width: '100%',
height: 100,
text: 'Choose a Monster',
color: '#fff',
shadowColor: '#444',
... | 43,119 |
https://github.com/dmillerw/AlchemicalBling/blob/master/src/main/java/dmillerw/bling/item/bauble/BaublePotion.java | Github Open Source | Open Source | MIT | null | AlchemicalBling | dmillerw | Java | Code | 630 | 2,599 | package dmillerw.bling.item.bauble;
import baubles.api.BaubleType;
import baubles.api.IBauble;
import com.google.common.collect.HashMultimap;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import dmillerw.bling.entity.EntityPotionBauble;
import dmillerw.bling.potion.BaublePotionEffect;
i... | 50,558 |
https://github.com/mcintyrehh/fakenewsnetwork/blob/master/server/routes/api/fake-articles.js | Github Open Source | Open Source | MIT | 2,018 | fakenewsnetwork | mcintyrehh | JavaScript | Code | 75 | 429 | const router = require("express").Router();
const fakeNewsController = require("../../controllers/fakeArticlesController");
const scrapeController = require("../../controllers/scrapeController");
// "/api/fake-articles/scrape"
router
.route("/scrape")
.get(scrapeController.scrape);
router
.route("/")
.get... | 22,027 |
https://github.com/KamenSentai/Raining_Molecules/blob/master/src/scripts/components/Mouse.js | Github Open Source | Open Source | MIT | 2,019 | Raining_Molecules | KamenSentai | JavaScript | Code | 199 | 751 | import { molecules } from './Canvas'
export default class Mouse {
constructor() {
if (!Modernizr.touchevents) {
this.setSettings()
this.moveMouse()
this.setMovement()
}
}
setSettings() {
// Create elements
const $body = document.body
const $mouse = document.creat... | 9,745 |
https://github.com/ksdperera/developer-studio/blob/master/datamapper/org.wso2.datamapper.engine/resources/MappingConfig3.js | Github Open Source | Open Source | Apache-2.0 | 2,018 | developer-studio | ksdperera | JavaScript | Code | 41 | 177 | function map_S_employees_S_engineers(employees, engineers) {
for(i in employees.employee){
map_L_employee_L_engineer(employees.employee[i], engineers.engineer[i]);
}
return engineers;
}
function map_L_employee_L_engineer(employee, engineer) {
engineer.fullname = employee.firstname.concat(" " + employee.lastn... | 27,134 |
https://github.com/daqiangge/SiJiWuYou/blob/master/YouChengTire/YouChengTire/Vendors/WPAttributedMarkup/NSString+WPAttributedMarkup.h | Github Open Source | Open Source | Apache-2.0 | null | SiJiWuYou | daqiangge | C | Code | 31 | 114 | //
// NSString+WPAttributedMarkup.h
// SonoRoute
//
// Created by Nigel Grange on 07/06/2014.
// Copyright (c) 2014 Nigel Grange. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSString (WPAttributedMarkup)
- (NSAttributedString*)attributedStringWithStyleBook:(NSDictionary*)styleBook;
@end... | 34,184 |
https://github.com/jjcav84/keen/blob/master/packages/charts/src/charts/funnel/funnel-header.component.tsx | Github Open Source | Open Source | MIT | null | keen | jjcav84 | TypeScript | Code | 120 | 440 | import React, { FC } from 'react';
import { Badge, Text } from '@keen.io/ui-core';
import {
Container,
TextContainer,
LabelContainer,
} from './funnel-header.styles';
import { Theme } from '../../types';
type Props = {
theme: Pick<Theme, 'funnel'>;
percentageValue: number;
value: number | string;
label... | 14,680 |
https://github.com/summer-school-cvs/social-control/blob/master/contracts/implementation/actions/UpdateImpl.sol | Github Open Source | Open Source | MIT | 2,020 | social-control | summer-school-cvs | Solidity | Code | 42 | 151 | // SPDX-License-Identifier: MIT
pragma solidity >=0.6.0;
import "../../interface/IAction.sol";
import "../../interface/AllianceStorage.sol";
contract UpdateImpl is AllianceStorage, IAction {
function execute(address new_impl) public override {
IAlliance new_alliance_impl = IAlliance(new_impl);
re... | 26,137 |
https://github.com/azonenberg/starshipraider/blob/master/boards/probes/smpm-test/smpm-test.kicad_pcb | Github Open Source | Open Source | BSD-3-Clause | 2,023 | starshipraider | azonenberg | KiCad Layout | Code | 15,155 | 74,086 | (kicad_pcb (version 20211014) (generator pcbnew)
(general
(thickness 1.6)
)
(paper "A4")
(layers
(0 "F.Cu" signal)
(1 "In1.Cu" signal)
(2 "In2.Cu" signal)
(31 "B.Cu" signal)
(32 "B.Adhes" user "B.Adhesive")
(33 "F.Adhes" user "F.Adhesive")
(34 "B.Paste" user)
(35 "F.Paste" ... | 1,568 |
https://github.com/ralfholly/const_map/blob/master/Makefile | Github Open Source | Open Source | MIT | 2,021 | const_map | ralfholly | Makefile | Code | 100 | 452 | ifneq ("$(MAKECMDGOALS)", "clean")
ifeq ("$(GOOGLE_TEST_HOME)", "")
$(error "Please define GOOGLE_TEST_HOME, ie. `make GOOGLE_TEST_HOME=~/googletest-release-1.8.0'")
endif
endif
TARGET := test/test_const_map
GMOCK_INCLUDE_PATH = $(GOOGLE_TEST_HOME)/googlemock
GTEST_INCLUDE_PATH = $(GOOGLE_TEST_HOME)/googletest
GMOCK... | 6,575 |
https://github.com/XakV/dfm/blob/master/config.go | Github Open Source | Open Source | Apache-2.0 | 2,016 | dfm | XakV | Go | Code | 218 | 672 | package dfm
import (
"encoding/json"
"fmt"
"io/ioutil"
"os"
"path/filepath"
cli "gopkg.in/urfave/cli.v1"
)
// Config holds some basic information about the state of dfm.
type Config struct {
Verbose bool
ConfigDir string
CurrentProfile string
}
// LoadConfig runs as a hook when dfm runs to load... | 22,834 |
https://github.com/treason258/TreLibrary/blob/master/TreBundle/lib_TreCore/src/main/java/com/mjiayou/trecore/dialog/TCBirthdayDialog.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | TreLibrary | treason258 | Java | Code | 362 | 1,613 | package com.mjiayou.trecore.dialog;
import android.content.Context;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.Gravity;
import android.view.View;
import android.view.ViewGroup;
import android.view.WindowManager;
import android.widget.LinearLayout;
import android.widget.TextView;
impo... | 2,105 |
https://github.com/donejs/donejs-bootstrap/blob/master/default/templates/components/page-help/page-help.less | Github Open Source | Open Source | MIT | null | donejs-bootstrap | donejs | Less | Code | 10 | 29 | page-help {
display: block;
ul {
margin: 24px;
}
} | 7,352 |
https://github.com/lbnt1982/jeecg/blob/master/src/main/java/org/jeecgframework/core/common/model/json/TreeGrid.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | jeecg | lbnt1982 | Java | Code | 438 | 1,211 | package org.jeecgframework.core.common.model.json;
import com.alibaba.fastjson.JSON;
import java.util.HashMap;
import java.util.Map;
public class TreeGrid implements java.io.Serializable {
private String id;
private String text;
private String parentId;
private String parentText;
private String code;
priv... | 5,747 |
https://github.com/newleafmedia/cainMVC/blob/master/modules/Application/config.php | Github Open Source | Open Source | MIT | 2,013 | cainMVC | newleafmedia | PHP | Code | 33 | 119 | <?php
return array(
'header'=>array(
'headScripts' => array(),
'headLinks' => array(),
'footerScripts' => array(),
'footerInlineScripts' => array(),
'headInlineScripts' =>array()
),
'viewHelpers' => array(
array('module' => 'Application', 'class' => 'Application')
),
'actionHelpers' => array()
); | 30,847 |
https://github.com/top-5/ruby2cpp/blob/master/ext/libhello.i | Github Open Source | Open Source | MIT | 2,018 | ruby2cpp | top-5 | null | Spoken | 37 | 153 | %module libhello
%{
#include "libhello.h"
%}
%include <stl.i>
//%include <std_map.i>
//%include <std_string.i>
%template(StringMap) std::map<std::string,std::string>;
namespace std {
%template(Imap) map<swig::GC_VALUE, swig::GC_VALUE>;
}
extern int sayHello(const char* s);
extern void printMap(const std::... | 12,137 |
https://github.com/AlexandrKlimkin/StickmanWars/blob/master/Assets/Scripts/Game/Match/MatchService.cs | Github Open Source | Open Source | MIT | null | StickmanWars | AlexandrKlimkin | C# | Code | 112 | 392 | using System.Collections.Generic;
using System.Linq;
using Core.Services;
using KlimLib.SignalBus;
using UnityDI;
namespace Game.Match {
public class MatchService : ILoadableService, IUnloadableService {
[Dependency]
private readonly SignalBus _SignalBus;
private MatchData _MatchData;
... | 9,855 |
https://github.com/rogeriopradoj/vagrant-ip-show/blob/master/.gitignore | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,016 | vagrant-ip-show | rogeriopradoj | Ignore List | Code | 6 | 32 | /pkg/
/tmp/
/.bundle/
/vendor/bundle/
Gemfile.lock
results.html
| 49,422 |
https://github.com/brynbellomy/hook.io-tropo/blob/master/.npmignore | Github Open Source | Open Source | MIT | 2,012 | hook.io-tropo | brynbellomy | Ignore List | Code | 5 | 17 | support
tmp
config.json
.DS_Store
*.log
| 1,974 |
https://github.com/arashsheyda/villa.js/blob/master/app/Models/Villa.php | Github Open Source | Open Source | MIT | null | villa.js | arashsheyda | PHP | Code | 72 | 315 | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Spatie\Translatable\HasTranslations;
use Illuminate\Database\Eloquent\Model;
class Villa extends Model
{
use HasFactory, HasTranslations;
public $translatable = ['name', 'slug', 'body'];
public function getRouteKeyNa... | 13,609 |
https://github.com/shevek/spring-rich-client/blob/master/spring-richclient-core/src/main/java/org/springframework/richclient/factory/DefaultButtonFactory.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | spring-rich-client | shevek | Java | Code | 100 | 273 | /*
* $Header$
* $Revision$
* $Date$
*
* Copyright Computer Science Innovations (CSI), 2004. All rights reserved.
*/
package org.springframework.richclient.factory;
import javax.swing.AbstractButton;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JRadioButton;
import javax.swing.JTog... | 26,129 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.