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/MrPepperoni/Reaping2-1/blob/master/src/core/weapon.cpp | Github Open Source | Open Source | MIT | null | Reaping2-1 | MrPepperoni | C++ | Code | 937 | 3,199 | #include "platform/i_platform.h"
#include "core/weapon.h"
#include "core/i_position_component.h"
#include "core/i_move_component.h"
#include "core/scene.h"
#include <portable_iarchive.hpp>
#include <portable_oarchive.hpp>
Weapon::Weapon( int32_t Id )
: Item( Id )
, mActorFactory( ActorFactory::Get() )
, mC... | 34,111 |
https://github.com/akDeveloper/Aktive-Merchant/blob/master/lib/AktiveMerchant/Common/Address.php | Github Open Source | Open Source | MIT | 2,022 | Aktive-Merchant | akDeveloper | PHP | Code | 325 | 801 | <?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
namespace AktiveMerchant\Common;
/**
* Address class allows mapping user defined fields of an address array to
* corresponding fields of a gateway.
*
* <code>
* $user_address = array(
* 'city' => 'Athens',
* 'country' ... | 10,123 |
https://github.com/uiharness/platform/blob/master/code/cell.client/src/Client.http/index.ts | Github Open Source | Open Source | MIT | 2,021 | platform | uiharness | TypeScript | Code | 21 | 40 | import { t } from '../common';
import { HttpClient as HttpClientClass } from './HttpClient';
export const HttpClient = HttpClientClass as t.HttpClient;
| 47,853 |
https://github.com/redzjovi/laravel5skeleton/blob/master/config/image.php | Github Open Source | Open Source | MIT | 2,018 | laravel5skeleton | redzjovi | PHP | Code | 79 | 225 | <?php
return [
/*
|--------------------------------------------------------------------------
| Image Driver
|--------------------------------------------------------------------------
|
| Intervention Image supports "GD Library" and "Imagick" to process images
| internally. You may choose... | 27,569 |
https://github.com/eea/eea.docker.flis/blob/master/code/topics/static/topics/js/nexus2.js | Github Open Source | Open Source | BSD-3-Clause | null | eea.docker.flis | eea | JavaScript | Code | 313 | 1,152 | $(document).ready(function () {
$('.nexus__graph').nexusGraphInit();
});
(function( $ ) {
$.fn.nexusGraphInit = function() {
var centerText = function(name) {
//var b = p.getBBox();
//t.setAttribute("transform", "translate(" + (b.x + b.width/2) + " " + (b.y + b.height/2) + ")");
//t.textC... | 21,443 |
https://github.com/Wamiti2/dhis2/blob/master/dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/test/controllers/ColumnDisplayController.test.js | Github Open Source | Open Source | BSD-3-Clause | 2,022 | dhis2 | Wamiti2 | JavaScript | Code | 191 | 631 | const {module, inject} = angular.mock;
const {spy} = sinon;
describe('Tracker Controllers: ColumnDisplayController', () => {
let columnDisplayController;
let mockScope;
let mock$modelInstance;
beforeEach(module('d2Controllers'));
beforeEach(inject(($injector) => {
const $controller = $inje... | 53,297 |
https://github.com/arguzmx/pika-gd-web/blob/master/src/app/@editor-entidades/model/i-diccionario-navegacion.ts | Github Open Source | Open Source | MIT | 2,020 | pika-gd-web | arguzmx | TypeScript | Code | 20 | 65 | export interface IDiccionarioNavegacion {
urlPorNombre(nombre: string): string;
}
export abstract class DiccionarioNavegacion implements IDiccionarioNavegacion {
abstract urlPorNombre(nombre: string): string;
}
| 2,296 |
https://github.com/kellzu/juzhitest/blob/master/src/views/exWarehouse/compoment/shipmentsInfo.vue | Github Open Source | Open Source | Apache-2.0 | null | juzhitest | kellzu | Vue | Code | 315 | 1,758 | <template>
<div class="operate-container">
<h1>添加发货物流</h1>
<el-card class="operate-container" shadow="never">
<el-row :span="24">
<el-col :span="12" style="display:flex;align-items: center;">
<h3>客户名称:</h3>
<span>{{exDetail.customerFirstName}} {{exDetail.customerLastName}}</s... | 20,640 |
https://github.com/Mekeri/chelseaporter.com/blob/master/js/script.js | Github Open Source | Open Source | BSD-3-Clause | 2,016 | chelseaporter.com | Mekeri | JavaScript | Code | 181 | 586 | // JavaScript Document
$(document).ready(function(){
// cache the window object
$window = $(window);
$('section[data-type="background"]').each(function(){
// declare the variable to affect the defined data-type
var $scroll = $(this);
$(window).scroll(function() {
... | 51,341 |
https://github.com/Watemlifts/reactor/blob/master/reactor.web.socket/request/ServerWebSocketUpgradeRequest.cs | Github Open Source | Open Source | MIT | 2,021 | reactor | Watemlifts | C# | Code | 295 | 719 | /*--------------------------------------------------------------------------
Reactor.Web.Sockets
The MIT License (MIT)
Copyright (c) 2015 Haydn Paterson (sinclair) <haydn.developer@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation ... | 36,542 |
https://github.com/sritejakv/eval_CG/blob/master/real_world_test/CallgraphAnalyzer/src/main/java/Main.java | Github Open Source | Open Source | MIT | null | eval_CG | sritejakv | Java | Code | 213 | 945 | import adapters.*;
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.CommandLineParser;
import org.apache.commons.cli.DefaultParser;
import org.apache.commons.cli.ParseException;
import reports.CSVReporter;
import utils.Constants;
import java.io.FileNotFoundException;
import java.util.ArrayList;... | 25,559 |
https://github.com/CodePrometheus/SpringBoot-The-Avengers/blob/master/Starry-Webservice/src/main/java/com/star/webservice/WebServer.java | Github Open Source | Open Source | MIT | null | SpringBoot-The-Avengers | CodePrometheus | Java | Code | 28 | 100 | package com.star.webservice;
import javax.xml.ws.Endpoint;
/**
* @Author: zzStar
* @Date: 08-09-2021 21:22
*/
public class WebServer {
public static void main(String[] args) {
Endpoint.publish("http://127.0.0.1:8989/weather",
new WeatherImpl());
}
}
| 18,345 |
https://github.com/MishaVernik/XLStoSQL/blob/master/XLStoSQL/Models/Finance_DB.cs | Github Open Source | Open Source | MIT | null | XLStoSQL | MishaVernik | C# | Code | 119 | 224 | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.... | 19,018 |
https://github.com/nirrozenbaum/governance-policy-propagator/blob/master/controllers/automation/policyMapper.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | governance-policy-propagator | nirrozenbaum | Go | Code | 123 | 520 | // Copyright Contributors to the Open Cluster Management project
package automation
import (
"context"
policiesv1 "github.com/open-cluster-management/governance-policy-propagator/api/v1"
policyv1beta1 "github.com/open-cluster-management/governance-policy-propagator/api/v1beta1"
"k8s.io/apimachinery/pkg/types"
"... | 19,374 |
https://github.com/Itxaka/elemental-cli/blob/master/pkg/cloudinit/layout_plugin.go | Github Open Source | Open Source | Apache-2.0 | null | elemental-cli | Itxaka | Go | Code | 367 | 1,178 | /*
Copyright © 2022 SUSE LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dist... | 43,728 |
https://github.com/arnasdev/mean-vdr-ns/blob/master/backend/routes/user.js | Github Open Source | Open Source | Apache-2.0 | 2,020 | mean-vdr-ns | arnasdev | JavaScript | Code | 39 | 208 | const express = require("express");
const checkAuth = require("../middleware/check-auth");
const UserController = require("../controllers/user");
const router = express.Router();
router.post("/signup", UserController.createUser);
router.post("/login", UserController.userLogin);
router.post("/logout", UserControlle... | 6,342 |
https://github.com/abhirocks1211/litho/blob/master/litho-processor/src/main/java/com/facebook/litho/specmodels/processor/TestTargetExtractor.java | Github Open Source | Open Source | BSD-3-Clause | 2,020 | litho | abhirocks1211 | Java | Code | 115 | 307 | /*
* Copyright (c) 2017-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
package com... | 9,565 |
https://github.com/RamyBadr/quiz-nest-app/blob/master/src/modules/question/question.controller.ts | Github Open Source | Open Source | MIT | null | quiz-nest-app | RamyBadr | TypeScript | Code | 281 | 1,079 | 'use strict';
import {
Controller,
Get,
HttpCode,
HttpStatus,
Query,
UseGuards,
UseInterceptors,
ValidationPipe,
Post,
Body,
Patch,
Param,
} from '@nestjs/common';
import {
ApiBearerAuth,
ApiResponse,
ApiUseTags,
ApiOkResponse,
ApiModelProperty,
} fro... | 28,891 |
https://github.com/ak52h/easypastes/blob/master/pages/pastes/[[...paste]].tsx | Github Open Source | Open Source | MIT | 2,022 | easypastes | ak52h | TypeScript | Code | 636 | 2,235 | /* eslint-disable react/no-children-prop */
// Own imports
import Layout from 'components/Layout';
import DisplayCode from 'components/CodePastes/DisplayCode';
import supabaseClient from 'utils/supabase';
// Other imports
import {
Alert,
AlertProps,
Avatar,
Container,
Heading,
Input,
InputGroup,
InputL... | 29,572 |
https://github.com/HiMyNameIsGarch/EgyptianMythology/blob/master/lib/pages/tabs/gods/anubis.dart | Github Open Source | Open Source | MIT | null | EgyptianMythology | HiMyNameIsGarch | Dart | Code | 94 | 294 | import 'package:flutter/material.dart';
import 'package:egyptianmythology/pages/details_page.dart';
class AnubisGod extends StatefulWidget {
@override
State<AnubisGod> createState() => _AnubisGodState();
}
class _AnubisGodState extends State<AnubisGod> {
@override
Widget build(BuildContext context) {
r... | 45,263 |
https://github.com/MagicalBottle/HbCrm/blob/master/src/Presentation/HbCrm.Web/Areas/Admin/Validators/HbCrmAdminBaseValidator.cs | Github Open Source | Open Source | MIT | 2,018 | HbCrm | MagicalBottle | C# | Code | 22 | 81 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using FluentValidation;
namespace HbCrm.Web.Areas.Validators
{
public abstract class HbCrmAdminBaseValidator<T>:AbstractValidator<T> where T:class
{
}
}
| 32,504 |
https://github.com/detiber/origin/blob/master/vendor/github.com/openshift/source-to-image/pkg/ignore/ignore_test.go | Github Open Source | Open Source | Apache-2.0 | null | origin | detiber | Go | Code | 735 | 2,249 | package ignore
import (
"os"
"path/filepath"
"strings"
"testing"
"github.com/openshift/source-to-image/pkg/api"
"github.com/openshift/source-to-image/pkg/util"
)
func baseTest(t *testing.T, patterns []string, filesToDel []string, filesToKeep []string) {
// create working dir
workingDir, werr := util.NewFileS... | 20,902 |
https://github.com/tuhinmas/ta-asosiasi/blob/master/resources/js/components/customer/CustomerComponent.vue | Github Open Source | Open Source | MIT | null | ta-asosiasi | tuhinmas | Vue | Code | 909 | 3,108 | <!-- We put our HTML code inside template tag -->
<template>
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-header">
<h3 class="card-title">Customer</h3>
<div class="card-tools">
<div class="input-group mb-3">
<div class="inp... | 38,944 |
https://github.com/bono-cms/Menu/blob/master/Storage/ItemMapperInterface.php | Github Open Source | Open Source | CC-BY-3.0 | null | Menu | bono-cms | PHP | Code | 318 | 693 | <?php
/**
* This file is part of the Bono CMS
*
* Copyright (c) No Global State Lab
*
* For the full copyright and license information, please view
* the license file that was distributed with this source code.
*/
namespace Menu\Storage;
use Krystal\Tree\AdjacencyList\ChildrenOrderSaverMapperInterface;
int... | 44,876 |
https://github.com/ScrutinyProjects/SSS_Cargo/blob/master/SSS_Cargo/SSS_Cargo_Web/scripts/loadingprint.js | Github Open Source | Open Source | MIT | 2,019 | SSS_Cargo | ScrutinyProjects | JavaScript | Code | 182 | 669 | function getloadingdetails() {
hideallalerts();
var loadingid = $('#hiddenloadingid').val();
var input = [];
input = {
LoadingId: loadingid
};
$.ajax({
type: "POST",
data: (input),
url: apiurl + "api/booking/getloadingdetailstoprintbyloadingid",
dataTyp... | 7,702 |
https://github.com/birdman98/LicenseManager-backend/blob/master/backend/src/main/java/io/licensemanager/backend/scheduledtask/AlertScheduledTask.java | Github Open Source | Open Source | MIT | 2,021 | LicenseManager-backend | birdman98 | Java | Code | 64 | 271 | package io.licensemanager.backend.scheduledtask;
import io.licensemanager.backend.job.impl.EmailLicenseAlert;
import lombok.RequiredArgsConstructor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.A... | 15,132 |
https://github.com/hongjingping/angelEase/blob/master/fe-h5/static/changemobile/changemobile-four.js | Github Open Source | Open Source | Apache-2.0 | null | angelEase | hongjingping | JavaScript | Code | 63 | 256 | (function () {
// 倒计时
var InterValObj;
var count = 20000;
var curCount;
var ChangeMobile = {
init: function () {
this.changeMobileHeader();
this.showSuc();
},
changeMobileHeader: function () {
$('.cmn-header-title').text('更换绑定手机号');
},
showSuc:function(){
$('.toast').attr("style","display... | 47,908 |
https://github.com/aadhil-kh/Regix/blob/master/android/staff-signin.php | Github Open Source | Open Source | MIT | 2,018 | Regix | aadhil-kh | PHP | Code | 120 | 909 | <?php
require("../dbconnect.php");
$password=$_POST['password'];
$username=$_POST['username'];
$regix_id=$_POST['clg_id'];
try{
$pdo = new PDO($dsn, $user, $pass, $opt);
$table_name=$regix_id.'_staff_list';
$stm=$pdo->prepare("select password from ".$table_name." where username=?");
$stm->execute([$username]);
$y=$stm-... | 27,396 |
https://github.com/sucrose0413/nextcloud_net/blob/master/privatelib/OC/Authentication/Login/LoginData.cs | Github Open Source | Open Source | MIT | 2,021 | nextcloud_net | sucrose0413 | C# | Code | 204 | 540 | using OCP;
namespace OC.Authentication.Login
{
public class LoginData
{
/** @var IRequest */
private IRequest request;
/** @var string */
private string username;
/** @var string */
private string password;
/** @var string */
private string red... | 8,062 |
https://github.com/fusion-jena/KeySearchWiki/blob/master/src/candidate-generation/groupProperties.js | Github Open Source | Open Source | MIT | 2,022 | KeySearchWiki | fusion-jena | JavaScript | Code | 259 | 730 | import extractTargetKeyword from './../keyword-target-extraction/extractTargetKeyword' ;
/**
* group properties of set categories: e.g, some categories have more that one corresponding sparql query
* input : {setCat: , result: [{sparql : , ...}, {sparql : ..}]} => output : {setCat: , result: {sparql: [] ..... | 6,062 |
https://github.com/pbridd/lzrw1-compression-core/blob/master/TBandDesign/testcase.sv | Github Open Source | Open Source | MIT | 2,021 | lzrw1-compression-core | pbridd | null | Spoken | 28 | 119 | //`include "env.sv"
program testcase(input_interface.IP input_intf,output_interface.OP output_intf);
Environment env1;
initial
begin
$display("******************** Start of testcase*************************");
env1 = new(input_intf,output_intf);
//env1=new();
env1.run();
#1000;
end
final
$display("*************** End... | 50,746 |
https://github.com/iantal/AndroidPermissions/blob/master/apks/playstore_apps/com_ubercab/source/com/facebook/react/views/art/ARTTextViewManager.java | Github Open Source | Open Source | Apache-2.0, GPL-1.0-or-later | 2,019 | AndroidPermissions | iantal | Java | Code | 13 | 55 | package com.facebook.react.views.art;
public class ARTTextViewManager
extends ARTRenderableViewManager
{
ARTTextViewManager()
{
super("ARTText");
}
}
| 47,023 |
https://github.com/mogilev/TCPTaskLists/blob/master/src/main/java/pt/ual/sdp/tasklist/util/SocketUtil.java | Github Open Source | Open Source | BSD-3-Clause | 2,020 | TCPTaskLists | mogilev | Java | Code | 85 | 243 | package pt.ual.sdp.tasklist.util;
import java.io.IOException;
import java.io.PrintWriter;
import java.net.Socket;
import java.util.Scanner;
public class SocketUtil {
public static Scanner getScanner(Socket socket) {
try {
return new Scanner(socket.getInputStream());
} catch (IOExceptio... | 24,986 |
https://github.com/montemyk/openehr-ruby/blob/master/spec/lib/openehr/rm/data_structures/item_structure/item_tree_spec.rb | Github Open Source | Open Source | Apache-2.0 | 2,014 | openehr-ruby | montemyk | Ruby | Code | 135 | 460 | require File.dirname(__FILE__) + '/../../../../../spec_helper'
include OpenEHR::RM::DataStructures::ItemStructure
include OpenEHR::RM::DataStructures::ItemStructure::Representation
include OpenEHR::RM::DataTypes::Text
describe ItemTree do
before(:each) do
i = 1
items = %w{one two three}.collect do |name|
... | 49,516 |
https://github.com/apache/openoffice/blob/master/main/sw/source/ui/inc/optcomp.hxx | Github Open Source | Open Source | Apache-2.0, CPL-1.0, bzip2-1.0.6, LicenseRef-scancode-other-permissive, Zlib, LZMA-exception, LGPL-2.0-or-later, LicenseRef-scancode-free-unknown, LicenseRef-scancode-philippe-de-muyter, OFL-1.1, LGPL-2.1-only, MPL-1.1, X11, LGPL-2.1-or-later, GPL-2.0-only, OpenSSL, LicenseRef-scancode-cpl-0.5, GPL-1.0-or-later, NPL-1.... | 2,023 | openoffice | apache | C++ | Code | 292 | 812 | /**************************************************************
*
* 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 y... | 48,963 |
https://github.com/UnixJunkie/get_conformations/blob/master/get_conformations.py | Github Open Source | Open Source | MIT | 2,018 | get_conformations | UnixJunkie | Python | Code | 153 | 828 | # written by Jan Jensen
from rdkit import Chem
from rdkit.Chem import AllChem
from rdkit.Chem import rdMolTransforms
import itertools
import random
def get_subset(number_of_conformations,max_number_of_conformations,angle_combinations):
subset = []
subset_index = random.sample(range(number_of_conformations), ma... | 41,406 |
https://github.com/doytsujin/kubeapps/blob/master/dashboard/src/components/AppView/AppValues/AppValues.scss | Github Open Source | Open Source | Apache-2.0 | 2,022 | kubeapps | doytsujin | SCSS | Code | 16 | 48 | // Copyright 2020-2022 the Kubeapps contributors.
// SPDX-License-Identifier: Apache-2.0
.installation-values {
margin: 0.6rem 0 1rem;
}
| 47,171 |
https://github.com/wethegit/wagtail/blob/master/wagtail/images/views/chooser.py | Github Open Source | Open Source | BSD-3-Clause | 2,020 | wagtail | wethegit | Python | Code | 1,281 | 5,306 | import hashlib
import json
import uuid
import urllib
from urllib import parse as urlparse
import urllib3
from django.core.files import uploadedfile
from django.conf import settings
from django.core.paginator import Paginator
from django.shortcuts import get_object_or_404, render
from django.urls import reverse
from d... | 46,978 |
https://github.com/mF2C/Registration-Identification/blob/master/Identification Module/ResourceManagement/src/java/Identification/RegisterDevice.java | Github Open Source | Open Source | Apache-2.0 | null | Registration-Identification | mF2C | Java | Code | 377 | 1,256 | package Identification;
import java.io.File;
import java.io.PrintWriter;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.client.Client;
import javax.ws.rs.client.ClientBuilder;
import javax.ws.rs.client.Entity;
import javax.ws.rs.client.WebTarget;
import javax.ws.rs.core.MediaType;
import javax.ws... | 11,181 |
https://github.com/ric2b/Vivaldi-browser/blob/master/chromium/base/json/json_reader.cc | Github Open Source | Open Source | BSD-3-Clause | 2,022 | Vivaldi-browser | ric2b | C++ | Code | 265 | 1,182 | // Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/json/json_reader.h"
#include <utility>
#include "base/logging.h"
#include "base/parsing_buildflags.h"
#include "third_party/abseil-cpp/absl/types/optional.h"
... | 42,065 |
https://github.com/j-f1/forked-eslint-docgen/blob/master/src/rule-tester.js | Github Open Source | Open Source | MIT | null | forked-eslint-docgen | j-f1 | JavaScript | Code | 115 | 289 | 'use strict';
const packagePath = require( './package-path' );
// Use plugin's version of ESLint
const ESLintRuleTester = require( packagePath( 'node_modules/eslint' ) ).RuleTester;
const docMode = process.argv.includes( '--doc' );
/**
* Extends ESLint's RuleTester to also build documentation
*/
class RuleTester ex... | 1,269 |
https://github.com/Tokazama/GtkIDE.jl/blob/master/src/ConsoleCommands.jl | Github Open Source | Open Source | MIT | 2,018 | GtkIDE.jl | Tokazama | Julia | Code | 412 | 1,448 | "
ConsoleCommand
Commands that are first executed in the console before Julia code.
- `edit filename` : open filename in the Editor. If filename does not exists it will be created instead.
- `clc` : clear the console.
- `pwd` : get the current working directory.
- `cd dirname` : set the current working directory.... | 46,295 |
https://github.com/viksgaud/school_management_system/blob/master/application/views/admin/student_result.php | Github Open Source | Open Source | MIT | null | school_management_system | viksgaud | PHP | Code | 840 | 3,682 | <!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>School Management System</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="st... | 47,545 |
https://github.com/SkillsFundingAgency/das-data-management/blob/master/src/SFA.DAS.DATA.MANAGEMENT/Tables/AsDataPL_Va_EducationLevel.sql | Github Open Source | Open Source | MIT | 2,023 | das-data-management | SkillsFundingAgency | SQL | Code | 21 | 108 | CREATE TABLE [AsData_PL].[Va_EducationLevel]
(
EducationLevelId int Primary Key
,EducationLevelCodeName nvarchar(3)
,EducationLevelShortName nvarchar(10)
,EducationLevelFullName nvarchar(50)
,EducationLevelNamev2 nvarchar(100)
,[AsDm_UpdatedDateTime] [datetime2](7) DEFAULT (getdate())
)
| 44,855 |
https://github.com/mb0/babasite/blob/master/src/web/socket.ts | Github Open Source | Open Source | BSD-2-Clause | null | babasite | mb0 | TypeScript | Code | 140 | 426 | export interface Conn {
ws:WebSocket
send(subj:string, data?:any):void
}
export function connect(url:string, hand:(subj:string, data?:any)=>void):Conn {
const ws = new WebSocket(url)
ws.onopen = () => hand('_open', url)
ws.onerror = (e:Event) => hand('_error', e)
ws.onclose = () => hand('_close', url)
ws.onmess... | 16,735 |
https://github.com/malyEzecek/pa2/blob/master/CMakeLists.txt | Github Open Source | Open Source | Apache-2.0 | 2,018 | pa2 | malyEzecek | CMake | Code | 33 | 198 | cmake_minimum_required(VERSION 3.8)
project(editor)
set(CMAKE_CXX_STANDARD 11)
set(SOURCE_FILES src/main.cpp src/View.h src/View.cpp src/Model.h src/Model.cpp src/Cell.h src/Bool.h src/Cell.cpp src/Bool.cpp src/Text.cpp src/Text.h src/Reference.h src/Reference.cpp src/Number.cpp src/Number.h src/Operator.cpp src/Oper... | 18,651 |
https://github.com/stefanoberdoerfer/jacobshack/blob/master/androidapp/ShopsNoffs/app/src/main/java/com/app/shopsnoffs/MainActivity.java | Github Open Source | Open Source | MIT | 2,016 | jacobshack | stefanoberdoerfer | Java | Code | 541 | 2,333 | package com.app.shopsnoffs;
import android.app.Activity;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v4.app.ActivityOptionsCompat;
import android.suppor... | 31,033 |
https://github.com/bosschaert/jclouds/blob/master/sandbox-providers/ibmdev/src/main/java/org/jclouds/ibmdev/domain/StorageOffering.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | jclouds | bosschaert | Java | Code | 406 | 856 | /**
*
* Copyright (C) 2010 Cloud Conscious, LLC. <info@cloudconscious.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 L... | 36,146 |
https://github.com/JurajKubelka/pillar/blob/master/src/Pillar-Model.package/PRRealScriptLanguage.class/instance/isSpecified.st | Github Open Source | Open Source | MIT | 2,018 | pillar | JurajKubelka | null | Spoken | 4 | 10 | testing
isSpecified
^ true | 33,770 |
https://github.com/RiadOliveira/Tradelous-backend/blob/master/src/modules/users/services/RecoverPasswordService.ts | Github Open Source | Open Source | MIT | null | Tradelous-backend | RiadOliveira | TypeScript | Code | 104 | 355 | import IUsersRepository from '../repositories/IUsersRepository';
import AppError from '@shared/errors/AppError';
import { injectable, inject } from 'tsyringe';
import IHashProvider from '@shared/providers/HashProvider/IHashProvider';
interface IRecoverPasswordData {
confirmEmail: string;
recoverToken: string;... | 14,010 |
https://github.com/cathaysia/BASIS/blob/master/tools/basisproject/templates/basis/1.0/config/ConfigSettings.cmake | Github Open Source | Open Source | BSD-2-Clause | 2,022 | BASIS | cathaysia | CMake | Code | 144 | 286 | # ============================================================================
# Copyright (c) <copyright>
# All rights reserved.
#
# <license>
# ============================================================================
##############################################################################
# @file ConfigSe... | 9,402 |
https://github.com/dbaggerman/kombustion/blob/master/pkg/parsers/properties/FilterFindingCriteria.go | Github Open Source | Open Source | MIT | 2,018 | kombustion | dbaggerman | Go | Code | 46 | 171 | package properties
// Code generated by go generate; DO NOT EDIT.
// It's generated by "github.com/KablamoOSS/kombustion/generate"
// FilterFindingCriteria Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-filter-findingcriteria.html
type FilterFindingCriteria struc... | 12,662 |
https://github.com/LiquidatorCoder/fluentui-system-icons/blob/master/packages/react-icons/src/components/MailInboxAll24Regular.tsx | Github Open Source | Open Source | MIT | null | fluentui-system-icons | LiquidatorCoder | TypeScript | Code | 104 | 593 | import * as React from "react";
import { JSX } from "react-jsx";
import { IFluentIconsProps } from '../IFluentIconsProps.types';
const MailInboxAll24Regular = (iconProps: IFluentIconsProps, props: React.HTMLAttributes<HTMLElement>): JSX.Element => {
const {
primaryFill,
className
} = iconProps;
return <s... | 5,733 |
https://github.com/jimmo/micropython/blob/master/ports/esp32/esp32_rmt.c | Github Open Source | Open Source | MIT, GPL-1.0-or-later | 2,023 | micropython | jimmo | C | Code | 1,462 | 5,879 | /*
* This file is part of the MicroPython project, http://micropython.org/
*
* The MIT License (MIT)
*
* Copyright (c) 2019 "Matt Trentini" <matt.trentini@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softw... | 46,697 |
https://github.com/lhk3337/JS-Array-Challenge/blob/master/Challenge/dongjay00/sortByPriceAndQuantity/solve.js | Github Open Source | Open Source | MIT | 2,021 | JS-Array-Challenge | lhk3337 | JavaScript | Code | 23 | 58 | // write your codes
function solution(inputArray) {
inputArray.sort((a, b) => a.price - b.price || a.quantity - b.quantity);
return inputArray;
}
exports.solution = solution;
| 6,468 |
https://github.com/JeronimoNadalRuiz/Cliente-Contabilidad-Personal-Ionic/blob/master/src/pages/movimientos/movimientos.ts | Github Open Source | Open Source | MIT | null | Cliente-Contabilidad-Personal-Ionic | JeronimoNadalRuiz | TypeScript | Code | 723 | 3,227 | import { Component, ViewChild } from '@angular/core';
import { IonicPage, ModalController, NavController, ToastController, ViewController } from 'ionic-angular';
import { FormBuilder, FormGroup } from '@angular/forms';
import { Item } from '../../models/item';
import { Contabilidad } from '../../providers/providers'... | 50,728 |
https://github.com/Ermiya/PMS/blob/master/Client/src/app/routes/monthly-functionality/monthly-functionality.component.ts | Github Open Source | Open Source | MIT | 2,019 | PMS | Ermiya | TypeScript | Code | 476 | 1,560 | import { Component, OnInit } from '@angular/core';
import { NzMessageService } from 'ng-zorro-antd/message';
import { TitleService } from '@delon/theme';
@Component({
selector: 'app-monthly-functionality',
templateUrl: './monthly-functionality.component.html',
styleUrls: ['./monthly-functionality.component.less'... | 36,252 |
https://github.com/laubfall/react-select-async-paginate/blob/master/packages/react-select-fetch/src/index.ts | Github Open Source | Open Source | MIT | 2,022 | react-select-async-paginate | laubfall | TypeScript | Code | 41 | 110 | import Select from 'react-select';
import { withSelectFetch } from './withSelectFetch';
export { withSelectFetch };
export { useSelectFetchBase } from './useSelectFetchBase';
export { useSelectFetch } from './useSelectFetch';
export { useMapToAsyncPaginate } from './useMapToAsyncPaginate';
export const SelectFetch ... | 36,971 |
https://github.com/micheltlutz/MLStarRating/blob/master/Sources/Core/MLStarButton.swift | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,021 | MLStarRating | micheltlutz | Swift | Code | 427 | 952 | ////MIT License
////
////Copyright (c) 2018 Michel Anderson Lüz Teixeira
////
////Permission is hereby granted, free of charge, to any person obtaining a copy
////of this software and associated documentation files (the "Software"), to deal
////in the Software without restriction, including without limitation the right... | 40,674 |
https://github.com/LordDeatHunter/ColoredCraftingStations/blob/master/src/main/java/wraith/coloredcraftingstations/registries/BlockRegistry.java | Github Open Source | Open Source | MIT | null | ColoredCraftingStations | LordDeatHunter | Java | Code | 79 | 349 | package wraith.coloredcraftingstations.registries;
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
import net.minecraft.block.*;
import net.minecraft.sound.BlockSoundGroup;
import net.minecraft.util.Identifier;
import net.minecraft.util.registry.Registry;
import wraith.coloredcraftingstatio... | 21,620 |
https://github.com/obsidiansystems/Obelisk/blob/master/haskell-overlays/ghcide.nix | Github Open Source | Open Source | BSD-3-Clause | 2,022 | Obelisk | obsidiansystems | null | Spoken | 151 | 684 | self: super:
let
pkgs = self.callPackage ({ pkgs }: pkgs) { };
inherit (pkgs.haskell.lib) dontCheck justStaticExecutables;
inherit (pkgs.haskellPackages) callHackageDirect callHackage;
in {
ghcide = justStaticExecutables (dontCheck (callHackageDirect {
pkg = "ghcide";
ver = "0.2.0";
sha256 = "199l4... | 11,504 |
https://github.com/wkammersell/rally-plan-readout/blob/master/App.js | Github Open Source | Open Source | MIT | 2,019 | rally-plan-readout | wkammersell | JavaScript | Code | 1,162 | 3,845 | var app;
var UNALIGNED = 'Unaligned';
Ext.define('CustomApp', {
extend: 'Rally.app.TimeboxScopedApp',
scopeType: 'release',
componentCls: 'app',
launch: function() {
app = this;
app.callParent( arguments );
},
// If the scope changes, such as the release filter, update ourselves
onScopeChange:... | 46,300 |
https://github.com/xuyu199742/go-bc/blob/master/admin/api/v1/autocode/enter.go | Github Open Source | Open Source | MIT | null | go-bc | xuyu199742 | Go | Code | 26 | 55 | package autocode
type ApiGroup struct {
// Code generated by go-bc/admin Begin; DO NOT EDIT.
AutoCodeExampleApi
// Code generated by go-bc/admin End; DO NOT EDIT.
}
| 23,211 |
https://github.com/Ya-Za/KaMIS/blob/master/wmis/extern/argtable3-3.0.3/tests/testargdbl.c | Github Open Source | Open Source | MIT | 2,022 | KaMIS | Ya-Za | C | Code | 2,213 | 7,399 | /*******************************************************************************
* This file is part of the argtable3 library.
*
* Copyright (C) 2013-2014 Tom G. Huang
* <tomghuang@gmail.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permit... | 38,533 |
https://github.com/genomics-geek/exome_slicer/blob/master/frontend/src/apollo/schema-parser.js | Github Open Source | Open Source | MIT | 2,019 | exome_slicer | genomics-geek | JavaScript | Code | 102 | 278 | import { findIndex, remove } from 'lodash'
import { buildClientSchema } from 'graphql'
import * as jsonFile from './schema'
export const mockSchema = () => {
// new json loader update adds a `defulat` parent level to json
const x = jsonFile.default
// Apollo won't accept introspection that has any '__debug' va... | 44,093 |
https://github.com/undefinedlabs/opentelemetry-swift/blob/master/Sources/OpenTelemetryApi/CorrelationContext/EntryValue.swift | Github Open Source | Open Source | Apache-2.0 | 2,020 | opentelemetry-swift | undefinedlabs | Swift | Code | 243 | 401 | // Copyright 2020, OpenTelemetry 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 ag... | 17,597 |
https://github.com/flying-sheep/linalg.rs/blob/master/tests/row_mul/col.rs | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference, MIT | 2,015 | linalg.rs | flying-sheep | Rust | Code | 1,707 | 5,257 | macro_rules! blas {
($($ty:ident),+) => {$(mod $ty {
mod owned {
use linalg::prelude::*;
use quickcheck::TestResult;
use setup;
// Test that `mul(&ColVec)` is correct for `RowVec`
#[quickcheck]
fn owned(size: uint) -> TestResult {
... | 44,178 |
https://github.com/cheonbok94/Pytorch-Latent-Constraints-Learning-to-Generate-Conditionally-from-Unconditional-Generative-Models/blob/master/model/loss.py | Github Open Source | Open Source | MIT | 2,021 | Pytorch-Latent-Constraints-Learning-to-Generate-Conditionally-from-Unconditional-Generative-Models | cheonbok94 | Python | Code | 82 | 533 | import torch
import torch.nn.functional as F
def loss_function(recon_x,x,mu,sig_var):
reconstruction_loss = F.mse_loss(recon_x,x.view(-1,784),size_average = False)/0.01
KLD_element = mu.pow(2).add_(sig_var.pow(2)).mul_(-1).add_(1).add_(sig_var.pow(2).log())
KLD = torch.sum(KLD_element).mul_(-0.5)
return KLD+ re... | 10,358 |
https://github.com/leninpardo/ganatec/blob/master/public/assets/js/validaciones.js | Github Open Source | Open Source | MIT | 2,014 | ganatec | leninpardo | JavaScript | Code | 116 | 440 |
//validar solo letras
var soloLetras = function(e)
{
key = e.keyCode || e.which;
tecla = String.fromCharCode(key).toLowerCase();
letras = " áéíóúabcdefghijklmnñopqrstuvwxyz";
especiales = [8,9,37,39,46];
tecla_especial = false
for(var i in especiales){
if(key == especiales[i]){
... | 25,060 |
https://github.com/bertanbee/Binary-System-Teacher/blob/master/teacher/src/Pages/Home/Home.tsx | Github Open Source | Open Source | MIT | 2,020 | Binary-System-Teacher | bertanbee | TypeScript | Code | 35 | 129 | import React from 'react';
import './styles.css';
import Card from '../../Components/Card';
function Home() {
return (
<div className="div">
<div className="img-content">
</div>
<div className="selector">
<h1>Computer Scienc... | 29,291 |
https://github.com/MidnightRiders/MemberPortal/blob/master/app/javascript/admin/users.js | Github Open Source | Open Source | MIT | 2,023 | MemberPortal | MidnightRiders | JavaScript | Code | 12 | 92 | jQuery(function($) {
return $('a.edit-membership').on('click', function(e) {
e.preventDefault();
$(this).closest('.row').slideUp(150);
return $('#edit-membership').find(':input').removeProp('disabled').end().removeClass('hide').hide().slideDown(150);
});
});
| 30,225 |
https://github.com/alphagov/pay-publicapi/blob/master/src/main/java/uk/gov/pay/api/ledger/model/AgreementSearchParams.java | Github Open Source | Open Source | MIT, LicenseRef-scancode-proprietary-license | 2,023 | pay-publicapi | alphagov | Java | Code | 316 | 986 | package uk.gov.pay.api.ledger.model;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.media.Schema;
import javax.ws.rs.QueryParam;
import java.util.HashMap;
import java.util.Map;
import java.util.Optional;
import static uk.gov.pay.api.common.SearchConstants.DISPLAY_SIZE;
import st... | 19,681 |
https://github.com/aqiill/SI-Kepegawaian/blob/master/application/models/M_pangkatgolongan.php | Github Open Source | Open Source | MIT | 2,021 | SI-Kepegawaian | aqiill | PHP | Code | 91 | 548 | <?php
defined('BASEPATH') or exit('No direct script access allowed');
class M_pangkatgolongan extends CI_Model {
public function daftar($table){
return $this->db->get($table);
}
public function daftar_detail($table,$id){
return $this->db->get_where($table,array('id_pangkatgolongan' => $i... | 7,937 |
https://github.com/qfizik/becpy/blob/master/scripts/hf_scan.py | Github Open Source | Open Source | MIT | 2,021 | becpy | qfizik | Python | Code | 185 | 687 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Created: 11-2020 - Carmelo Mordini <carmelo> <carmelo.mordini@unitn.it>
"""
Module docstring
"""
import numpy as np
import matplotlib.pyplot as plt
import concurrent.futures
from tqdm import tqdm
from becpy.physics import hartree_fock as hf
from scipy.constants impo... | 15,113 |
https://github.com/gstsgy/Util/blob/master/sample/Util.Samples.Angular.Material/wwwroot/css/common/form/_form.scss | Github Open Source | Open Source | MIT | 2,022 | Util | gstsgy | SCSS | Code | 42 | 136 | //表单内容区
.form-content {
padding: 30px 50px 0 50px;
}
.form-list-content {
padding: 30px 50px 0 50px;
> div {
> div {
padding-bottom: 10px;
border-bottom: 1px dashed rgba(0,0,0,.2);
}
}
}
.form-content .mt30 {
margin-top: 30px;
&:first-child {
ma... | 45,450 |
https://github.com/tylerfowle/ubersicht/blob/master/widgets/n3rdb4r/bar.coffee | Github Open Source | Open Source | MIT | null | ubersicht | tylerfowle | CoffeeScript | Code | 28 | 124 | refreshFrequency: false
render: (output) ->
"""
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
"""
style: """
background-color: #222525
bottom: 0
right: 0
left: 0
width: 100%
height: 30px
z-index: -1
"""
| 40,720 |
https://github.com/Watfaq/add-egg/blob/master/Procfile | Github Open Source | Open Source | Unlicense | 2,023 | add-egg | Watfaq | null | Spoken | 3 | 8 | web: python ss.py
| 45,443 |
https://github.com/BastianBlokland/novus/blob/master/tests/frontend/get_call_expr_test.cpp | Github Open Source | Open Source | MIT | 2,021 | novus | BastianBlokland | C++ | Code | 928 | 3,865 | #include "catch2/catch.hpp"
#include "frontend/diag_defs.hpp"
#include "helpers.hpp"
#include "prog/expr/node_const.hpp"
#include "prog/expr/node_lit_bool.hpp"
#include "prog/expr/node_lit_int.hpp"
#include "prog/expr/node_lit_string.hpp"
#include "prog/expr/node_switch.hpp"
namespace frontend {
TEST_CASE("[frontend]... | 15,961 |
https://github.com/dasmer/Gilt-iOS-watchOS/blob/master/Gilt Watch Extension/SaleInterfaceController.swift | Github Open Source | Open Source | MIT | 2,016 | Gilt-iOS-watchOS | dasmer | Swift | Code | 85 | 314 | import WatchKit
import AlamofireImage
import GiltKit
class SaleInterfaceController: WKInterfaceController {
@IBOutlet var loadingImageLabel: WKInterfaceLabel!
@IBOutlet var photoView: WKInterfaceImage!
@IBOutlet var nameLabel: WKInterfaceLabel!
@IBOutlet var descriptionLabel: WKInterfaceLabel!
le... | 13,419 |
https://github.com/wilson2403/ionic-4-components/blob/master/projects/core/src/lib/popover/popover.component.scss | Github Open Source | Open Source | MIT | 2,019 | ionic-4-components | wilson2403 | SCSS | Code | 14 | 51 | .popover-item {
--border-style: none;
}
.popover-item:hover {
--background: rgb(240, 240, 240);
cursor: pointer;
}
| 45,944 |
https://github.com/JohT/AxonFramework/blob/master/axon-server-connector/src/test/java/org/axonframework/axonserver/connector/processor/grpc/GrpcEventProcessorInfoSourceTest.java | Github Open Source | Open Source | ECL-2.0, Apache-2.0 | 2,022 | AxonFramework | JohT | Java | Code | 94 | 463 | package org.axonframework.axonserver.connector.processor.grpc;
import com.google.common.collect.ImmutableMap;
import io.axoniq.axonserver.grpc.control.PlatformInboundInstruction;
import org.axonframework.axonserver.connector.AxonServerConnectionManager;
import org.axonframework.config.EventProcessingConfiguration;
imp... | 35,728 |
https://github.com/timdue/socialite/blob/master/src/SessionTrait.php | Github Open Source | Open Source | MIT | 2,022 | socialite | timdue | PHP | Code | 149 | 453 | <?php
namespace Socialite;
trait SessionTrait
{
/**
* The Session instance.
*
* @var mixed
*/
protected $session;
/**
* Set the session instance.
*
* @param mixed $session
* @return $this
*/
public function setSession($session)
{
$this->session... | 31,635 |
https://github.com/loic-sharma/ExplorePackages/blob/master/src/ExplorePackages.Worker.Logic/MessageProcessors/StreamWriterUpdater/IStreamWriterUpdaterService.cs | Github Open Source | Open Source | MIT | null | ExplorePackages | loic-sharma | C# | Code | 22 | 88 | using System;
using System.Threading.Tasks;
namespace Knapcode.ExplorePackages.Worker.StreamWriterUpdater
{
public interface IStreamWriterUpdaterService<T>
{
Task InitializeAsync();
Task StartAsync(bool loop, TimeSpan notBefore);
Task<bool> IsRunningAsync();
}
}
| 15,400 |
https://github.com/Tata-Images/x-alpha/blob/master/src/common/ls.ts | Github Open Source | Open Source | MIT | null | x-alpha | Tata-Images | TypeScript | Code | 280 | 573 | /**
* List all files under the directory, recursively.
*
* Use filter paramerer to pass in a filter function, which
* - takes in a file name string
* (use path.join(__dirname, file) to construct full path if you wish)
* - perform checking, as well as transformation of file name
* - return the file names to be s... | 45,330 |
https://github.com/bravedave/forum/blob/master/src/idea/dao/db/forum_idea.php | Github Open Source | Open Source | MIT | 2,023 | forum | bravedave | PHP | Code | 43 | 177 | <?php
/*
* David Bray
* BrayWorth Pty Ltd
* e. david@brayworth.com.au
*
* MIT License
*
*/
namespace dao;
$dbc = \sys::dbCheck('forum_idea');
$dbc->defineField('idea', 'varchar', 100);
$dbc->defineField('data', 'text');
$dbc->defineField('tag', 'varchar');
$dbc->defineField('created', 'datetime');
$dbc->defineF... | 43,829 |
https://github.com/DougGregor/swift-lldb/blob/master/tools/lldb-mi/MIUtilDebug.cpp | Github Open Source | Open Source | NCSA | 2,016 | swift-lldb | DougGregor | C++ | Code | 358 | 1,041 | //===-- MIUtilDebug.cpp -----------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 18,510 |
https://github.com/HD-Extreeem/Esp8266-Heltec-Drawing-Snake-Game/blob/master/Acc_gyro_drawing/Acc_gyro_drawing.ino | Github Open Source | Open Source | MIT | 2,019 | Esp8266-Heltec-Drawing-Snake-Game | HD-Extreeem | null | Spoken | 893 | 2,428 | #include <Wire.h>
#include "OLED.h"
#include <I2Cdev.h>
#include <ESP8266HTTPClient.h>
#include <ESP8266WiFi.h>
#include <MPU6050.h>
#define RST_OLED 16
OLED display(4, 5);
/************************************************************************************/
/*This arduino application uses a Heltec wifi kit 8 and acc... | 44,144 |
https://github.com/alaj/PicGo/blob/master/src/main/utils/uploader.js | Github Open Source | Open Source | MIT | 2,019 | PicGo | alaj | JavaScript | Code | 102 | 288 | import db from '../../datastore/index'
import { Notification } from 'electron'
import picBeds from '../../datastore/pic-bed-handler'
// const checkUploader = (type) => {
// const currentUploader = db.read().get(`picBed.${type}`).value()
// if (currentUploader) {
// return true
// } else {
// return false... | 27,361 |
https://github.com/andreshp/GeneticQAP/blob/master/results/paper/tai50b/MADEGD/original/ps=64/6.sol | Github Open Source | Open Source | MIT | 2,017 | GeneticQAP | andreshp | Gerber Image | Code | 88 | 144 | Time (s): 25.01282238960266
Number of evaluations: 5584087
Number of iterations: 935
Number of local search applications: 935
Number of greedy solutions: 7337
Number of reemplacements in GADEGD: 29636
The solution has objective value 481161159 .
The permutation is:
[33 8 26 10 25 47 37 22 31 20 36 14 13 3 18 39 48 30... | 14,242 |
https://github.com/X-DataInitiative/SCALPEL-Extraction/blob/master/src/main/scala/fr/polytechnique/cmap/cnam/etl/sources/general/GeneralSource.scala | Github Open Source | Open Source | BSD-3-Clause | 2,020 | SCALPEL-Extraction | X-DataInitiative | Scala | Code | 8 | 47 | package fr.polytechnique.cmap.cnam.etl.sources.general
import fr.polytechnique.cmap.cnam.etl.sources.SourceManager
object GeneralSource extends SourceManager
| 47,819 |
https://github.com/qthibeault/gradecalc/blob/master/gradecalc/grade.py | Github Open Source | Open Source | MIT | 2,021 | gradecalc | qthibeault | Python | Code | 38 | 85 | from functools import reduce
def weighted(categories):
return sum(category.percentage * category.weight for category in categories)
def points_based(categories):
assignments = [assignment for category in categories for assignment in category.assignments]
points = reduce(lambda a, b: a + b, assignments)
... | 22 |
https://github.com/BBVA/masquerade/blob/master/pkg/csv/csv_test.go | Github Open Source | Open Source | Apache-2.0 | 2,020 | masquerade | BBVA | Go | Code | 393 | 1,200 | // Copyright 2018 BBVA
//
// 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,... | 13,574 |
https://github.com/bmoreau/COPASI/blob/master/copasi/UI/CQCompartment.cpp | Github Open Source | Open Source | Artistic-2.0 | null | COPASI | bmoreau | C++ | Code | 1,568 | 6,777 | // Copyright (C) 2010 - 2014 by Pedro Mendes, Virginia Tech Intellectual
// Properties, Inc., University of Heidelberg, and The University
// of Manchester.
// All rights reserved.
// Copyright (C) 2008 - 2009 by Pedro Mendes, Virginia Tech Intellectual
// Properties, Inc., EML Research, gGmbH, University of Heidelber... | 7,400 |
https://github.com/wrs28/Kwant.jl/blob/master/src/Kwant.jl | Github Open Source | Open Source | MIT | 2,019 | Kwant.jl | wrs28 | Julia | Code | 152 | 808 | module Kwant
export Builder,
TranslationalSymmetry,
smatrix,
lattice,
builder
abstract type AbstractKwantObject end
include("load_kwant.jl")
include("Lattice.jl")
include("Builder.jl")
using PyPlot
using .builder
function Base.getproperty(k::AbstractKwantObject, name::Symbol)
if name==:o
p = getfield(k... | 21,194 |
https://github.com/pcxod/olex2/blob/master/repository/shellutil.h | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, BSD-2-Clause | 2,023 | olex2 | pcxod | C++ | Code | 228 | 649 | /******************************************************************************
* Copyright (c) 2004-2011 O. Dolomanov, OlexSys *
* *
* This file is part of the OlexSys Development Framework. *
... | 16,435 |
https://github.com/Mattlk13/vscode-tslint/blob/master/tslint-server/test/autofixes.test.ts | Github Open Source | Open Source | MIT | 2,019 | vscode-tslint | Mattlk13 | TypeScript | Code | 171 | 620 | import * as assert from 'assert';
import { AutoFix, getAllNonOverlappingFixes } from '../src/server';
import { TSLintAutofixEdit } from '../src/fixer';
import * as server from 'vscode-languageserver';
function pos(line, char): server.Position {
return server.Position.create(line, char);
}
function range(startLine,... | 38,971 |
https://github.com/mit-dci/opencx/blob/master/crypto/rsw/timelockverify.go | Github Open Source | Open Source | MIT | 2,022 | opencx | mit-dci | Go | Code | 222 | 601 | package rsw
import (
"bytes"
"fmt"
"math/big"
)
// VerifyPuzzleOutput verifies that the timelock puzzle PuzzleRSW
func VerifyPuzzleOutput(p *big.Int, q *big.Int, pz *PuzzleRSW, claimedKey []byte) (valid bool, err error) {
if p == nil {
err = fmt.Errorf("p pointer cannot be nil, please investigate")
return
}
... | 31,891 |
https://github.com/tequilarapido/diskstore/blob/master/src/DiskStorage.php | Github Open Source | Open Source | MIT | null | diskstore | tequilarapido | PHP | Code | 249 | 732 | <?php
namespace Tequilarapido\DiskStore;
use Illuminate\Contracts\Filesystem\Filesystem;
use Illuminate\Filesystem\FilesystemManager;
class DiskStorage
{
/** @var disk name that will be used for storing objects */
protected $diskName;
/**
* @var Filesystem
*/
private $files;
/**
... | 45,542 |
https://github.com/data61/anonlink-entity-service/blob/master/backend/entityservice/views/run/results.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | anonlink-entity-service | data61 | Python | Code | 416 | 1,437 | from flask import request, g
from structlog import get_logger
import opentracing
from entityservice.settings import Config as config
from entityservice import database as db
from entityservice.serialization import get_similarity_scores
from entityservice.utils import safe_fail_request
from entityservice.views import b... | 41,591 |
https://github.com/yyd01245/netlink/blob/master/neigh_test.go | Github Open Source | Open Source | Apache-2.0 | null | netlink | yyd01245 | Go | Code | 1,375 | 4,522 | // +build linux
package netlink
import (
"net"
"testing"
"time"
"github.com/vishvananda/netns"
"golang.org/x/sys/unix"
)
type arpEntry struct {
ip net.IP
mac net.HardwareAddr
}
type proxyEntry struct {
ip net.IP
dev int
}
func parseMAC(s string) net.HardwareAddr {
m, err := net.ParseMAC(s)
if err != ... | 33,390 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.