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/chenfangwen/lesson_shuidi/blob/master/wxapp/yun_shop/miniprogram/vant-weapp/build/compiler.js | Github Open Source | Open Source | MIT | 2,022 | lesson_shuidi | chenfangwen | JavaScript | Code | 239 | 915 | const gulp = require('gulp');
const path = require('path');
const less = require('gulp-less');
const insert = require('gulp-insert');
const rename = require('gulp-rename');
const postcss = require('gulp-postcss');
const util = require('util');
const exec = util.promisify(require('child_process').exec);
const src = pat... | 27,163 |
https://github.com/thesubquery/advent_of_code/blob/master/aoc_2015.py | Github Open Source | Open Source | Apache-2.0 | null | advent_of_code | thesubquery | Python | Code | 565 | 1,745 | # Python Standard Library
import argparse
import os
import sys
from collections import Counter
# pypi
# Common
def get_input(file):
with open(file, 'r') as f:
data = f.readlines()
data = [d.strip() for d in data]
return data
def day_1(part, data):
data = list(data[0])
if part ... | 50,663 |
https://github.com/filipe2396/unobtrusive_flash/blob/master/spec/support/assets/javascripts/turbolinks_application.js | Github Open Source | Open Source | MIT | 2,020 | unobtrusive_flash | filipe2396 | JavaScript | Code | 36 | 106 | //=require turbolinks
//=require unobtrusive_flash
//=require_self
// simple handler to log all flashes into a variable accessible from the test suite
loggingFlashHandler = function(e, params) {
if (typeof(window.flashMessages) == 'undefined') window.flashMessages = [];
window.flashMessages.push(params);
};
$(win... | 4,649 |
https://github.com/kolea2/google-cloud-go/blob/master/resourcemanager/apiv3/tag_keys_client.go | Github Open Source | Open Source | Apache-2.0 | 2,022 | google-cloud-go | kolea2 | Go | Code | 3,599 | 9,996 | // Copyright 2022 Google 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 35,500 |
https://github.com/avaire/avaire-node/blob/master/tests/resources/LanguageTests.js | Github Open Source | Open Source | MIT | 2,018 | avaire-node | avaire | JavaScript | Code | 151 | 379 | /** @ignore */
const fs = require('fs');
/** @ignore */
const path = require('path');
/** @ignore */
const _ = require('lodash');
/** @ignore */
const assert = require('assert');
/** @ignore */
const directory = require('require-directory');
describe('resources/lang/...', () => {
describe('Language files', () => {... | 18,591 |
https://github.com/rppacleb/lrvl_cartacar/blob/master/resources/js/src/components/user/cart/List.js | Github Open Source | Open Source | MIT | null | lrvl_cartacar | rppacleb | JavaScript | Code | 99 | 414 | import { Box, Switch, Button } from "@material-ui/core"
import { ChevronLeftRounded as IChevronLeft, ChevronRightRounded as IChevronRight } from "@material-ui/icons"
import { useEffect } from "react"
export const List = ({ c, k, qtyHandler, selectHandler }) => {
return (
<Box mb={3} display="flex" p={2} bo... | 8,794 |
https://github.com/bkvenkatesh/embeddedinfralib/blob/master/services/network_bsd/ConnectionBsd.cpp | Github Open Source | Open Source | LicenseRef-scancode-protobuf, LicenseRef-scancode-x11-xconsortium-veillard, BSD-3-Clause, MIT, Apache-2.0, BSD-2-Clause, Unlicense, LicenseRef-scancode-unknown-license-reference | 2,020 | embeddedinfralib | bkvenkatesh | C++ | Code | 505 | 2,459 | #include "services/network_bsd/ConnectionBsd.hpp"
#include "services/network_bsd/EventDispatcherWithNetwork.hpp"
#include <errno.h>
#include <fcntl.h>
#include <sys/socket.h>
#include <unistd.h>
namespace
{
void SetNonBlocking(int fileDescriptor)
{
if (fcntl(fileDescriptor, F_SETFL, fcntl(fileDescripto... | 31,946 |
https://github.com/JetmirAv/flagpack-core/blob/master/flags/GB-ENG.js | Github Open Source | Open Source | MIT | 2,021 | flagpack-core | JetmirAv | JavaScript | Code | 15 | 55 | import l from '../svg/l/GB-ENG.svg'
import m from '../svg/m/GB-ENG.svg'
import s from '../svg/s/GB-ENG.svg'
export default {l,m,s} | 3,011 |
https://github.com/Kiandr/crackingcodinginterview/blob/master/php/test/chapter16/question16.02/WordFrequencyCalculatorTest.php | Github Open Source | Open Source | Apache-2.0 | null | crackingcodinginterview | Kiandr | PHP | Code | 50 | 291 | <?php
require_once __DIR__ . '/../../../src/chapter16/question16.02/WordFrequencyCalculator.php';
class WordFrequencyCalculatorTest extends \PHPUnit\Framework\TestCase {
public function testGetFrequency() {
$wordFrequencyCalculator = new WordFrequencyCalculator(__DIR__ . DIRECTORY_SEPARATOR . 'book.txt');... | 23,762 |
https://github.com/estruyf/doctor/blob/master/src/models/PageFrontMatter.ts | Github Open Source | Open Source | MIT | 2,022 | doctor | estruyf | TypeScript | Code | 43 | 121 | import { PageLocalization, HeaderOptions, MenuType } from ".";
export interface PageFrontMatter {
title: string;
description?: string;
slug?: string;
draft?: boolean;
comments?: boolean;
header?: HeaderOptions;
menu?: MenuType;
template?: string;
layout?: string;
localization?: PageLocalization;
... | 44,963 |
https://github.com/aic-sri-international/aic-praise/blob/master/src/main/java/com/sri/ai/praise/core/representation/translation/ciaranframework/core/TranslatorFactory.java | Github Open Source | Open Source | BSD-3-Clause | 2,018 | aic-praise | aic-sri-international | Java | Code | 498 | 1,275 | /*
* Copyright (c) 2015, SRI International
* All rights reserved.
* Licensed under the The BSD 3-Clause License;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
* http://opensource.org/licenses/BSD-3-Clause
*
* Redistribution and use in source a... | 10,883 |
https://github.com/PacktPublishing/Angular-6-for-Enterprise-Ready-Web-Applications/blob/master/Chapter10/lemon-mart/src/app/pos/pos.module.spec.ts | Github Open Source | Open Source | MIT | 2,023 | Angular-6-for-Enterprise-Ready-Web-Applications | PacktPublishing | TypeScript | Code | 31 | 81 | import { PosModule } from './pos.module'
describe('PosModule', () => {
let posModule: PosModule
beforeEach(() => {
posModule = new PosModule()
})
it('should create an instance', () => {
expect(posModule).toBeTruthy()
})
})
| 53,060 |
https://github.com/apinanyogaratnam/web3-lottery/blob/master/test/Example.test.js | Github Open Source | Open Source | MIT | null | web3-lottery | apinanyogaratnam | JavaScript | Code | 70 | 208 | const assert = require('assert');
const ganache = require('ganache-cli');
const Web3 = require('web3');
const web3 = new Web3(ganache.provider({ gasLimit: 10000000 }));
const { abi, evm } = require('../ethereum/build/Example.json');
let accounts;
let example;
beforeEach(async () => {
accounts = await web3.eth.ge... | 41,961 |
https://github.com/Elektro1776/chf/blob/master/packages/server/build/index.82da19942f87a326fccd.hot-update.js | Github Open Source | Open Source | MIT | null | chf | Elektro1776 | JavaScript | Code | 963 | 4,770 | require("source-map-support").install();
exports.id = "index";
exports.modules = {
/***/ "../client/src/modules/admin/containers/Vendor.jsx":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_regenerator... | 17,987 |
https://github.com/vunnithan/oaisys/blob/master/src/render_post_processing/TSSRenderPostProcessing.py | Github Open Source | Open Source | MIT | 2,021 | oaisys | vunnithan | Python | Code | 403 | 1,233 | # blender imports
import bpy
# utility imports
import numpy as np
import csv
import random
class TSSRenderPostProcessing(object):
"""docstring for TSSRenderPostProcessing"""
def __init__(self,pass_name):
super(TSSRenderPostProcessing, self).__init__()
# class vars #############################... | 9,105 |
https://github.com/iSLC/newton-dynamics/blob/master/newton-4.00/sdk/dNewton/dJoints/ndJointBallAndSocket.cpp | Github Open Source | Open Source | Zlib | 2,021 | newton-dynamics | iSLC | C++ | Code | 857 | 3,991 | /* Copyright (c) <2003-2021> <Newton Game Dynamics>
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
* includi... | 33,275 |
https://github.com/jamesanto/scala/blob/master/test/scaladoc/resources/t4507.scala | Github Open Source | Open Source | Apache-2.0 | 2,022 | scala | jamesanto | Scala | Code | 109 | 172 | /**
* <pre>
* scala> (new AndOrSpec).execute()
* AndOrSpec:
* The ScalaTest Matchers DSL
* should provide
* an and operator that
* - returns silently when evaluating true and true
* - throws a TestFailedException when evaluating true and false
* - that throws a TestFailedException when evalua... | 644 |
https://github.com/MarkusSagen/pytorch-adapt/blob/master/src/pytorch_adapt/meta_validators/reverse_validator.py | Github Open Source | Open Source | MIT | 2,021 | pytorch-adapt | MarkusSagen | Python | Code | 285 | 1,012 | from typing import Tuple
import torch
from ..datasets import (
CombinedSourceAndTargetDataset,
DataloaderCreator,
PseudoLabeledDataset,
TargetDataset,
)
from ..utils import common_functions as c_f
def get_predicted_labels(adapter, datasets, dataset_name, dataloader_creator):
dataloader = dataloa... | 10,236 |
https://github.com/Pitoontakoonpol/Arduino/blob/master/arduino/working/recycle/data_transfer_V19.02/nodemcu/nodemcu.ino | Github Open Source | Open Source | MIT | 2,020 | Arduino | Pitoontakoonpol | null | Spoken | 214 | 752 | #include <ESP8266WiFi.h>
#include <Wire.h>
int box_id = 191000001;
IPAddress local_ip = {192, 168, 2, 210};
IPAddress gateway = {192, 168, 2, 1};
IPAddress subnet = {255, 255, 255, 0};
const char* ssid = "AmbientSoft_Guest";
const char* password = "020300031";
int slaveAddress2 = 9;
int slaveAddress3 = 10;
int sla... | 40,415 |
https://github.com/SpeedProg/eve-ui/blob/master/lib/es6.d.ts | Github Open Source | Open Source | MIT | 2,016 | eve-ui | SpeedProg | TypeScript | Code | 17 | 43 | interface String {
startsWith(str: string, pos?: number): boolean
repeat(count: number): string
substr(from: number, length?: number): string
}
| 51,146 |
https://github.com/septemhill/go-algorithms/blob/master/sorting/selectionSort.go | Github Open Source | Open Source | MIT | 2,018 | go-algorithms | septemhill | Go | Code | 54 | 140 | package sorting
func SelectionSort(nums []int) []int {
l := len(nums)
arr := make([]int, l)
copy(arr, nums)
for i := 0; i < l-1; i++ {
idx := i
for j := i + 1; j < l; j++ {
if comparator(arr[idx], arr[j]) {
arr[idx], arr[j] = arr[j], arr[idx]
}
}
}
return arr
}
| 42,400 |
https://github.com/vizzuhq/vizzu-lib/blob/master/src/apps/weblib/js-api/data.js | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-free-unknown | 2,023 | vizzu-lib | vizzuhq | JavaScript | Code | 686 | 2,229 | import UnPivot from "./unpivot.js";
class DataRecord {
constructor(chart, record) {
this.chart = chart;
this.record = record;
return new Proxy(this, {
get: (target, columnName) => {
return target._getValue(columnName);
},
});
}
_getValue(columnName) {
let col = this.char... | 18,186 |
https://github.com/antonbeukes/EmersionJS/blob/master/data/data.js | Github Open Source | Open Source | MIT | null | EmersionJS | antonbeukes | JavaScript | Code | 512 | 2,519 | var personData = {
"_id": "5800744a885b5b29afe8d30f",
"index": 0,
"guid": "56a7cf9d-67f8-4072-9bec-c7a3db8cf998",
"isActive": false,
"balance": "$1,575.60",
"picture": "http://placehold.it/120x120",
"age": 20,
"eyeColor": "brown",
"name": "Booker Anthony",
"gender": "male",
"... | 53,830 |
https://github.com/SunOfHomeBoy/shrsServer/blob/master/src/api/planning/lottoQuery.tsx | Github Open Source | Open Source | Apache-2.0 | null | shrsServer | SunOfHomeBoy | TypeScript | Code | 189 | 574 | // Copyright 2017 The Haohaoxiuche Team Authors. All right reserved.
// Use of this source that is governed by a Apache-style
// license that can be found in the LICENSE file.
//
// 定义跨设备服务器端接口 之 抽奖规则及抽奖资格
//
// 调用权限: API_PURVIEW_MEMBER <Passing/>
//
// 参数说明:
// {
// "openID": "3MjFiODU4Mjg0Zjc2NTQ3M... | 15,199 |
https://github.com/Kikon26/profesiolandia/blob/master/application/views/mp/seccionfooter.php | Github Open Source | Open Source | MIT | 2,021 | profesiolandia | Kikon26 | PHP | Code | 163 | 1,395 | <?php
switch ($seccion) {
case 'indicadores':
//<!--chartis chart-->
echo '<script src="'.base_url().'assets/libs/chartist/dist/chartist.min.js"></script>';
echo '<script src="'.base_url().'assets/libs/chartist-plugin-tooltips/dist/chartist-plugin-tooltip.min.js"></script>';
//<!--c3 charts -->
echo '<scrip... | 33,980 |
https://github.com/VisualAcademy/C/blob/master/C/C/memory_allocation.c | Github Open Source | Open Source | MIT | 2,023 | C | VisualAcademy | C | Code | 69 | 303 | #include <stdio.h>
#include <stdlib.h>
int main(void)
{
int* ptr;
// int 형을 저장할 수 있는 메모리를 동적으로 할당합니다.
ptr = (int*)malloc(sizeof(int));
// 메모리 할당에 실패한 경우 에러 메시지를 출력하고 프로그램을 종료합니다.
if (ptr == NULL)
{
printf("메모리 할당에 실패했습니다.\n");
return 1;
}
// 동적으로 할당된 메모리에 10을 저장합니다.
... | 9,711 |
https://github.com/VivianGomez/Foohealli/blob/master/imports/api/patients.js | Github Open Source | Open Source | MIT | 2,019 | Foohealli | VivianGomez | JavaScript | Code | 980 | 3,467 | import {
Meteor
} from 'meteor/meteor';
import {
Mongo
} from 'meteor/mongo';
import {
check
} from 'meteor/check';
import {
Match
} from 'meteor/check';
import {
Nutritionists
} from './nutritionists';
import {
Doctors
} from './doctors';
import axios from 'axios';
const jwt = require('jsonweb... | 2,236 |
https://github.com/Roscoe198/Ansible-Openshift/blob/master/roles/openshift_logging/filter_plugins/openshift_logging.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | Ansible-Openshift | Roscoe198 | Python | Code | 541 | 1,534 | '''
Openshift Logging class that provides useful filters used in Logging
'''
import random
import re
def es_storage(os_logging_facts, dc_name, pvc_claim, root='elasticsearch'):
'''Return a hash with the desired storage for the given ES instance'''
deploy_config = os_logging_facts[root]['deploymentconfigs'].... | 37,584 |
https://github.com/shreya22/MSEmpower/blob/master/application.py | Github Open Source | Open Source | MIT | null | MSEmpower | shreya22 | Python | Code | 225 | 822 | from flask import Flask
from flask import json, jsonify, request
import ssl
import pymongo
from pymongo import MongoClient
from difflib import SequenceMatcher
app = Flask(__name__)
uri = "mongodb://hackathon2019:dp0O0VMaTwXU8PUwdYUxEgeu4UNOeVB5Ve7kU5zqV3tmfz3gNb1sc6VMY3HCjUcBC4Ubq3T9fXs6lJfMUfVIXg==@hackathon2019.docu... | 4,117 |
https://github.com/nickyandreev/AssemblyDefender/blob/master/src/AssemblyDefender.Baml/CodeModel/Strings/BamlStringKind.cs | Github Open Source | Open Source | MIT | 2,021 | AssemblyDefender | nickyandreev | C# | Code | 19 | 63 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AssemblyDefender.Baml
{
public enum BamlStringKind
{
Declaration,
Known,
}
}
| 32,316 |
https://github.com/zhuang13atJHU/dolo/blob/master/dolo/tests/test_iid_processes.py | Github Open Source | Open Source | BSD-2-Clause | null | dolo | zhuang13atJHU | Python | Code | 199 | 964 |
import unittest
import scipy
from scipy.integrate import quad
import numpy as np
from dolo.numeric.processes_iid import *
## Polynomial
def f(x):
return x**2
def f(x):
return x**2
def test_UNormal():
σ = 0.1
μ = 0.2
N = 10
distNorm = UNormal(mu=μ, sigma=σ)
disNorm_gh = distNorm.d... | 27,303 |
https://github.com/belgattitude/mfts/blob/master/src/js/containers/welcome-container.tsx | Github Open Source | Open Source | MIT | null | mfts | belgattitude | TypeScript | Code | 230 | 704 | import React from 'react';
import { DataSupportedLangType } from '@src/models/repository/data-repository';
import { PageOverlay } from '@src/components/layout/page-overlay';
import PageRepository from '@src/models/repository/page-repository';
import { Redirect, RouteComponentProps, withRouter } from 'react-router';
imp... | 14,324 |
https://github.com/bill001w/cms/blob/master/cms-middle/app/Services/cache/views/36d3825784a91a40c04ffe4998cb6253APP_DIR.cache.php | Github Open Source | Open Source | MIT | 2,017 | cms | bill001w | PHP | Code | 164 | 830 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="/views/admin/images/reset.css" rel="stylesheet" type="text/css" />
<link href="/views/admin/images/system.css" rel="stylesh... | 12,298 |
https://github.com/nixplay/bullet-train-api/blob/master/src/api/migrations/0001_initial.py | Github Open Source | Open Source | BSD-3-Clause | 2,022 | bullet-train-api | nixplay | Python | Code | 194 | 1,248 | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2017-04-20 12:59
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
... | 30,809 |
https://github.com/romanV7/rest/blob/master/src/database.sql | Github Open Source | Open Source | MIT | null | rest | romanV7 | SQL | Code | 107 | 260 | SET FOREIGN_KEY_CHECKS=0; DROP TABLE IF EXISTS users; SET FOREIGN_KEY_CHECKS=1;
CREATE TABLE users (
id INTEGER PRIMARY KEY AUTO_INCREMENT,
name varchar(255) NOT NULL,
email varchar(255) NOT NULL UNIQUE,
password varchar(255) NOT NULL
) ENGINE InnoDB;
DROP TABLE IF EXISTS files;
CREATE TABLE files (
id INT... | 34,716 |
https://github.com/boyan-kolev/MyCookbook/blob/master/Services/MyCookbook.Services.Data/IngredientsService.cs | Github Open Source | Open Source | MIT | null | MyCookbook | boyan-kolev | C# | Code | 91 | 366 | namespace MyCookbook.Services.Data
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MyCookbook.Data.Common.Repositories;
using MyCookbook.Data.Models;
using MyCookbook.Services.Data.Contracts;
public class ... | 24,998 |
https://github.com/inovex/scrumlr.io/blob/master/src/components/DotButton/DotButton.scss | Github Open Source | Open Source | MIT | 2,022 | scrumlr.io | inovex | SCSS | Code | 35 | 131 | @import "constants/style";
.dot-button {
border-radius: 100%;
border: none;
transition: all 0.25s ease-in-out;
padding: 0;
font-size: 14px;
line-height: 28px;
font-weight: 600;
cursor: pointer;
outline: none;
}
.dot-button:disabled {
cursor: default;
}
.dot-button:not([disabled]):active {
transfo... | 17,721 |
https://github.com/abhinavbharti/esp32-components/blob/master/Invn/Invn/EmbUtils/UartTxEmulator.c | Github Open Source | Open Source | MIT | null | esp32-components | abhinavbharti | C | Code | 407 | 1,339 | /*
Copyright (c) 2014-2015 InvenSense Inc. Portions Copyright (c) 2014-2015 Movea. All rights reserved.
This software, related documentation and any modifications thereto (collectively "Software") is subject
to InvenSense and its licensors' intellectual property rights under U.S. and international copyrigh... | 39,663 |
https://github.com/paperculture/play-json-schema-validator/blob/master/src/main/scala/com/eclipsesource/schema/internal/validators/NumberValidators.scala | Github Open Source | Open Source | Apache-2.0 | 2,020 | play-json-schema-validator | paperculture | Scala | Code | 369 | 1,345 | package com.eclipsesource.schema.internal.validators
import com.eclipsesource.schema.SchemaResolutionContext
import com.eclipsesource.schema.internal.constraints.Constraints.{Maximum, Minimum}
import com.eclipsesource.schema.internal.validation.Rule
import com.eclipsesource.schema.internal.{Keywords, SchemaUtil, Valid... | 51,254 |
https://github.com/bjornvester/ebean-gradle-plugin/blob/master/src/integration-test/test-java/db-create-all.sql | Github Open Source | Open Source | Apache-2.0 | null | ebean-gradle-plugin | bjornvester | SQL | Code | 34 | 101 | create table my_entity_java (
id bigint auto_increment not null,
name varchar(255),
constraint pk_my_entity_java primary key (id)
);
create table my_test_entity_java (
id bigint auto_increment not null,
name ... | 2,698 |
https://github.com/The-Forecaster/Spark-Client/blob/master/src/main/java/baritone/pathing/calc/Path.java | Github Open Source | Open Source | MIT | 2,022 | Spark-Client | The-Forecaster | Java | Code | 687 | 1,633 | /*
* This file is part of Baritone.
*
* Baritone is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Baritone is distrib... | 19,465 |
https://github.com/evidawei/Hacktoberfest2021-2/blob/master/Python/grocery_sandwich.py | Github Open Source | Open Source | MIT | 2,021 | Hacktoberfest2021-2 | evidawei | Python | Code | 53 | 192 | import random
done = False
count_s=0
sammich=[]
kitchen=[]
while done!= True:
ingredients=input("What is one ingredient inside your kitchen? (Type 'done' if there are no more.)")
kitchen.append(ingredients)
if ingredients == "done":
kitchen.remove("done")
done = True
if "tuna" in ... | 33,889 |
https://github.com/MilindaLaknath/component-ids/blob/master/components/openid-extension/src/main/java/com/wso2telco/openid/extension/scope/ScopeConstant.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | component-ids | MilindaLaknath | Java | Code | 191 | 419 | /*******************************************************************************
* Copyright (c) 2015-2016, WSO2.Telco Inc. (http://www.wso2telco.com)
* <p>
* All Rights Reserved. WSO2.Telco Inc. licences this file to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in c... | 51,843 |
https://github.com/kidboy-man/learn_programming/blob/master/rust/http-request/target/rls/debug/build/hyper-be5d7cacfbffa9b9/build_script_build-be5d7cacfbffa9b9.d | Github Open Source | Open Source | MIT | 2,020 | learn_programming | kidboy-man | Makefile | Code | 5 | 261 | /Users/kidboy/Programming/github.com/learn_programming/rust/http-request/target/rls/debug/build/hyper-be5d7cacfbffa9b9/build_script_build-be5d7cacfbffa9b9: /Users/kidboy/.cargo/registry/src/github.com-1ecc6299db9ec823/hyper-0.12.35/build.rs
/Users/kidboy/Programming/github.com/learn_programming/rust/http-request/targe... | 6,121 |
https://github.com/farrer/memwar/blob/master/CMakeModules/FindKosound.cmake | Github Open Source | Open Source | MIT | null | memwar | farrer | CMake | Code | 161 | 580 | # Locate Kosound library
# This module defines
# KOSOUND_LIBRARY, the name of the library to link against
# KOSOUND_FOUND, if false, do not try to link to KOSOUND
#
# KOSOUND_INCLUDE_DIR, where to find kosoundconfig.h
#
# $KOSOUNDDIR - enviroment variable
#
# Created by Farrer. This was influenced by the FindSDL_image... | 16,669 |
https://github.com/suicvne/Lib_DuelistsOfTheRoses/blob/master/LibDuelistsOfTheRoses/Interfaces/Data/ILookupTable.cs | Github Open Source | Open Source | MIT | null | Lib_DuelistsOfTheRoses | suicvne | C# | Code | 184 | 351 | // /**
// ILookupTable
// Created 4/26/2020 1:09 PM
//
// Copyright (C) 2019 Mike Santiago - All Rights Reserved
// axiom@ignoresolutions.xyz
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and ... | 21,986 |
https://github.com/andrewvo89/tempnote/blob/master/nextjs/page-components/PremiumPage/PremiumFeaturesGrid/index.tsx | Github Open Source | Open Source | MIT | 2,021 | tempnote | andrewvo89 | TypeScript | Code | 173 | 449 | import Feature from '@components/Feature';
import { Box, SimpleGrid } from '@chakra-ui/react';
import {
FcTodoList,
FcFeedback,
FcShare,
FcOvertime,
FcStatistics,
FcVoicePresentation,
} from 'react-icons/fc';
/**
* Grid of premium feature components.
* @return {*} {JSX.Element}
*/
const PremiumFeatures... | 51,450 |
https://github.com/davidvlaminck/OTLMOW/blob/master/src/OTLMOW/OTLModel/Datatypes/KlFiguratieSoortVerschuind.py | Github Open Source | Open Source | MIT | 2,023 | OTLMOW | davidvlaminck | Python | Code | 95 | 589 | # coding=utf-8
import random
from OTLMOW.OTLModel.Datatypes.KeuzelijstField import KeuzelijstField
from OTLMOW.OTLModel.Datatypes.KeuzelijstWaarde import KeuzelijstWaarde
# Generated with OTLEnumerationCreator. To modify: extend, do not edit
class KlFiguratieSoortVerschuind(KeuzelijstField):
"""Soorten van versch... | 49,073 |
https://github.com/Cosmo-Tech/biopredyn/blob/master/Prototype/src/libsbmlsim-1.1.0/src/ev_alter_tree_structure.c | Github Open Source | Open Source | BSD-3-Clause | null | biopredyn | Cosmo-Tech | C | Code | 518 | 2,442 | /**
* <!--------------------------------------------------------------------------
* This file is part of libSBMLSim. Please visit
* http://fun.bio.keio.ac.jp/software/libsbmlsim/ for more
* information about libSBMLSim and its latest version.
*
* Copyright (C) 2011-2013 by the Keio University, Yokohama, Japan
... | 17,871 |
https://github.com/kevin82008/KCool-RSF/blob/master/drive-msg-client/src/main/java/com/drive/cool/rcp/RcpBeanFactory.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | KCool-RSF | kevin82008 | Java | Code | 266 | 1,180 | /**
* kevin 2015年8月7日
*/
package com.drive.cool.rcp;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Proxy;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanF... | 36,322 |
https://github.com/lucifer1004/codeforces/blob/master/1294/c/c.cc | Github Open Source | Open Source | CC-BY-4.0 | 2,023 | codeforces | lucifer1004 | C++ | Code | 142 | 266 | #include <iostream>
using namespace std;
typedef long long ll;
class Solution {
public:
void solve() {
int n;
cin >> n;
int n0 = n;
int a = 0, b = 0, c = 0;
for (int i = 2; i * i <= n; ++i) {
if (n % i == 0) {
if (!a) {
a = i;
n /= a;
} else if (!b) {
... | 33,311 |
https://github.com/ByzanTine/Castlevania-NES-Unity3d/blob/master/Assets/Player-Simon/Jump.anim.meta | Github Open Source | Open Source | MIT | 2,015 | Castlevania-NES-Unity3d | ByzanTine | Unity3D Asset | Code | 6 | 42 | fileFormatVersion: 2
guid: 7e0ff1f0ba1b84876aeeceb2b07f8670
NativeFormatImporter:
userData:
| 9,017 |
https://github.com/HoduRe/NotThatGameEngine/blob/master/NotThatGameEngine/NotThatGameEngine/Camera.cpp | Github Open Source | Open Source | MIT | 2,021 | NotThatGameEngine | HoduRe | C++ | Code | 117 | 538 | #include "Camera.h"
#include "Transform.h"
#include "GameObject.h"
Camera::Camera(long long int _id, GameObject* _gameObject) : Component(_id, _gameObject, COMPONENT_TYPE::CAMERA), camera() { // CAMERA COMPONENT MACHINE BROKEN. UNDERSTANDABLE HAVE A GOOD DAY
/* camera.SetKind(FrustumSpaceGL, FrustumRightHanded);
cam... | 42,248 |
https://github.com/MuhammadSuryono/budget-online-lumen/blob/master/app/Models/DigitalMarket/CommVoucher.php | Github Open Source | Open Source | MIT | null | budget-online-lumen | MuhammadSuryono | PHP | Code | 35 | 168 | <?php
namespace App\Models\DigitalMarket;
use App\Models\ConstantDatabase;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class CommVoucher extends \Illuminate\Database\Eloquent\Model
{
use HasFactory;
protected $table = 'comm_voucher';
protec... | 43,418 |
https://github.com/pledac/trust-code/blob/master/Outils/IHM/TRUST_STATS_JUPYTER/trustutils/stats/trust_statistical_tools_temporal.py | Github Open Source | Open Source | BSD-3-Clause | 2,021 | trust-code | pledac | Python | Code | 1,211 | 3,138 | # coding: utf-8
"""
Morad Ben Tayeb
CEA Saclay - DM2S/STMF/LGLS
Mars 2021 - Stage 6 mois
The main class is TemporalPostProcessing. Using this package allows the following:
- plot the instantaneous evolution of a probe(s) in same/different son file(s)
- Plot the fluctuations evolution of a probe(s) in same/different s... | 45,423 |
https://github.com/uk-gov-mirror/hmrc.trusts-frontend/blob/master/test/controllers/register/suitability/BeforeYouContinueControllerSpec.scala | Github Open Source | Open Source | Apache-2.0 | null | hmrc.trusts-frontend | uk-gov-mirror | Scala | Code | 514 | 1,866 | /*
* Copyright 2021 HM Revenue & Customs
*
* 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 a... | 18,268 |
https://github.com/miniksa/BuildXL/blob/master/Public/Src/FrontEnd/TypeScript.Net/TypeScript.Net.UnitTests/Parsing/NodePositions.cs | Github Open Source | Open Source | MIT | 2,019 | BuildXL | miniksa | C# | Code | 148 | 476 | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System.Linq;
using TypeScript.Net.Printing;
using TypeScript.Net.Types;
using TypeScript.Net.UnitTests.Utils;
using Xunit;
namespace TypeScript.Net.UnitTests.Parsing
{
public class NodePositions
{
[Fact(Skip = "Bug in Typ... | 10,703 |
https://github.com/ocaml/dune/blob/master/otherlibs/configurator/test/blackbox-tests/configurator.t/run.t | Github Open Source | Open Source | MIT | 2,023 | dune | ocaml | Perl | Code | 50 | 151 | Show that config values are present
$ dune exec config/run.exe
INSIDE_DUNE is present
.dune/configurator.v2 file is present
version is present
We're able to compile C program successfully
$ dune exec c_test/run.exe
Successfully compiled c program
Importing #define's from code is successful
$ dune exec i... | 11,916 |
https://github.com/zhangwz/ember-emotion/blob/master/tests/dummy/app/components/tagless-component/style.js | Github Open Source | Open Source | MIT | 2,018 | ember-emotion | zhangwz | JavaScript | Code | 14 | 29 | import { css } from 'emotion';
export const blue = css`
color: blue;
`;
| 26,716 |
https://github.com/LeftySpaceyz/editor/blob/master/src/scss/designeditor/view.scss | Github Open Source | Open Source | MIT | null | editor | LeftySpaceyz | SCSS | Code | 379 | 1,495 | $editor-button-color: #5f80de;
$editor-line-color: rgba($editor-button-color, 0.3);
$editor-resizer-width: 8px;
$editor-canvas-background-color: rgba(236, 236, 236, 0.3);
$editor-ruler-size: 20px;
.horizontal-ruler {
position: absolute;
top: 0px;
left: $editor-ruler-size;
right: 0px;
height: $editor-ruler-si... | 30,228 |
https://github.com/Ayoubuvin1/Thulium/blob/master/src/main.ts | Github Open Source | Open Source | MIT | 2,021 | Thulium | Ayoubuvin1 | TypeScript | Code | 255 | 987 | import { readFileSync } from 'fs';
const code = readFileSync(`./` + process.argv[2], 'utf-8');
function _2DArray(): any[] {
let arr = new Array(1000);
for (let i = 0; i < arr.length; i++) {
arr[i] = new Array(1000);
for (let j = 0; j< arr[i].length; j++) {
arr[i][j] = 0;
}
... | 13,671 |
https://github.com/xy12ta/remote-monitoring-services-java/blob/master/iothub-manager/app/com/microsoft/azure/iotsolutions/iothubmanager/webservice/v1/models/DeploymentMetricsApiModel.java | Github Open Source | Open Source | MIT | 2,019 | remote-monitoring-services-java | xy12ta | Java | Code | 208 | 1,158 | // Copyright (c) Microsoft. All rights reserved.
package com.microsoft.azure.iotsolutions.iothubmanager.webservice.v1.models;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.azure.iotsolutions.iothubmanager.services.models.DeploymentMetrics;
import com.microsoft.azure.iotsolutions.iothubman... | 25,490 |
https://github.com/ElMassimo/vite-plugin-image-presets/blob/master/example/main.ts | Github Open Source | Open Source | MIT | 2,022 | vite-plugin-image-presets | ElMassimo | TypeScript | Code | 34 | 103 | import { createApp } from 'vue'
import App from './App.vue'
import Image from './Image.vue'
import ExternalLink from './ExternalLink.vue'
import Caption from './Caption.vue'
const app = createApp(App)
app.component('Image', Image)
app.component('ExternalLink', ExternalLink)
app.component('Caption', Caption)
app.moun... | 54,021 |
https://github.com/jayfurmanek/xgboost-feedstock/blob/master/recipe/0002-Fix-R-package-PKGROOT.patch | Github Open Source | Open Source | BSD-3-Clause | 2,021 | xgboost-feedstock | jayfurmanek | null | Spoken | 114 | 444 | From 99adf2cb8b82af8b05bb0053e5c5148f69488845 Mon Sep 17 00:00:00 2001
From: Ray Donnelly <mingw.android@gmail.com>
Date: Fri, 24 Mar 2017 07:23:49 -0500
Subject: [PATCH 2/5] Fix R-package PKGROOT
It pointed to the wrong directory on Windows and had a
trailing / on all systems leading to double /
---
R-package/src/Ma... | 17,671 |
https://github.com/php-compassites/learninglocker/blob/master/app/Http/Controllers/xapi/AgentController.php | Github Open Source | Open Source | MIT | null | learninglocker | php-compassites | PHP | Code | 144 | 516 | <?php
namespace App\Http\Controllers\xAPI;
use App\Locker\Repository\Document\DocumentRepository as Document;
use App\Locker\Repository\Document\DocumentType as DocumentType;
class AgentController extends DocumentController
{
// Defines properties to be set to constructor parameters.
protected $document;
... | 15,230 |
https://github.com/eSkry/TMX-Loader-TME-/blob/master/examples/Maps/block4353.tsx | Github Open Source | Open Source | MIT | 2,017 | TMX-Loader-TME- | eSkry | TypeScript | Code | 16 | 84 | <?xml version="1.0" encoding="UTF-8"?>
<tileset version="1.2" tiledversion="1.2.1" name="block4353" tilewidth="64" tileheight="64" tilecount="112" columns="14">
<image source="block.png" width="896" height="512"/>
</tileset>
| 14,511 |
https://github.com/sdrausty/buildAPKsGames/blob/master/am/src/pt/isec/tp/am/Help.java | Github Open Source | Open Source | MIT | 2,019 | buildAPKsGames | sdrausty | Java | Code | 49 | 293 | package pt.isec.tp.am;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.TabHost;
public class Help extends Activity{
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setC... | 17,365 |
https://github.com/iamjohnnym/callbacks/blob/master/app/sendmail/mail.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | callbacks | iamjohnnym | Python | Code | 116 | 410 | import smtplib
class SendMail():
def __init__(self, recipient, ddi, ticket, name, phone, platform, details, status,id):
self.recipient = recipient
self.platform = platform
self.details = details
self.status = status
self.id = id
self.ticket = ticket
self.pho... | 2,876 |
https://github.com/brandonlee503/Assembly-Projects/blob/master/Homework 6/Project06.asm | Github Open Source | Open Source | MIT | 2,019 | Assembly-Projects | brandonlee503 | Assembly | Code | 833 | 2,088 | TITLE Assignment 6 (Project06.asm)
; Name: Brandon Lee
; Email: leebran@onid.oregonstate.edu
; Class: CS271 Section 400
; Assignment: #6A
; Due Date: 6/7/15
INCLUDE Irvine32.inc
;----------------------------------------------------------------------------------------
; Macro: getString
; Description: Moves the u... | 21,490 |
https://github.com/cloudjanak7/AiChat/blob/master/AiChat/Classes/Contacts/Tool/TXLChatTool.h | Github Open Source | Open Source | Apache-2.0 | 2,018 | AiChat | cloudjanak7 | Objective-C | Code | 95 | 331 | //
// TXLChatTool.h
// AiChat
//
// Created by 庄彪 on 15/7/6.
// Copyright (c) 2015年 XMPP. All rights reserved.
//
#import <Foundation/Foundation.h>
@class XMPPJID;
@class RACSignal;
@class XMPPUserCoreDataStorageObject;
@interface TXLChatTool : NSObject
/**
* @brief 有新消息信号
*/
@property (nonatomic, strong, re... | 2,100 |
https://github.com/danielphan2003/devos-ext-lib/blob/master/src/pkgs/misc/vscode-extensions/utils.nix | Github Open Source | Open Source | MIT | 2,021 | devos-ext-lib | danielphan2003 | null | Spoken | 137 | 370 | { lib, pkgSet, pkgSetUtils, vscode, libarchive }:
let
meta' = { inherit (vscode) platforms; };
in pkgSetUtils // rec {
pkgBuilder =
prefix: name':
{ src
, pname
, version
, name
, publisher
, meta ? pkgSetUtils.meta or meta'
, ...
}@source:
let
source' = builtins.rem... | 39,539 |
https://github.com/milarin/moji_app/blob/master/resources/views/profile_edit.blade.php | Github Open Source | Open Source | MIT | null | moji_app | milarin | PHP | Code | 102 | 445 | @extends('layouts.layout')
@section('content')
<main>
<div class="container create">
<h1>{{ $user->name }}の編集</h1>
@if($errors->any())
<ul>
@foreach($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
@endif
{{ Form... | 34,235 |
https://github.com/mirajp/SeaGator/blob/master/EyeDetection/grid.py | Github Open Source | Open Source | MIT | 2,018 | SeaGator | mirajp | Python | Code | 14 | 42 | for x in range(0,11):
for y in range(0,9):
print "(", x, ",", y, "):\n\n\n" | 36,895 |
https://github.com/mdhillmancmcl/TheWorldAvatar-CMCL-Fork/blob/master/JPS_VIRTUALSENSOR/src/test/java/uk/ac/cam/cares/jps/virtualsensor/agents/test/SpeedLoadMapAgentTest.java | Github Open Source | Open Source | MIT | 2,022 | TheWorldAvatar-CMCL-Fork | mdhillmancmcl | Java | Code | 33 | 218 | package uk.ac.cam.cares.jps.virtualsensor.agents.test;
import org.json.JSONObject;
import junit.framework.TestCase;
import uk.ac.cam.cares.jps.base.discovery.AgentCaller;
import uk.ac.cam.cares.jps.virtualsensor.sparql.ShipSparql;
public class SpeedLoadMapAgentTest extends TestCase{
public void testSpeedLoadMapA... | 40,277 |
https://github.com/DayanaChris/Sample2/blob/master/resources/views/lessons/aafinal.blade.php | Github Open Source | Open Source | MIT | null | Sample2 | DayanaChris | PHP | Code | 97 | 614 | <!DOCTYPE html>
<?php session_start(); ?>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- CSRF Token -->
<meta name="csrf-... | 25,854 |
https://github.com/cz303/bett/blob/master/models.py | Github Open Source | Open Source | MIT | null | bett | cz303 | Python | Code | 241 | 815 | from app import db
Model = db.Model
Column = db.Column
String = db.String
Integer = db.Integer
session = db.session
class Users(Model):
__tablename__ = 'users'
id = Column(Integer, primary_key = True)
balance = Column(Integer)
def get(id):
return Users.query.get(id)
def new(id):
... | 35,060 |
https://github.com/161710106/relasi/blob/master/app/Http/Controllers/SantriController.php | Github Open Source | Open Source | MIT | null | relasi | 161710106 | PHP | Code | 286 | 973 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Santri;
use App\Pelajaran;
class SantriController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
$santri = Santri::with('... | 13,753 |
https://github.com/ctera/ctera-ansible-collection/blob/master/tests/ut/mocks/ctera_portal_base_mock.py | Github Open Source | Open Source | Apache-2.0 | null | ctera-ansible-collection | ctera | Python | Code | 78 | 458 | import unittest.mock as mock
from ansible_collections.ctera.ctera.plugins.module_utils.ctera_common import AnsibleReturnValue
from ansible_collections.ctera.ctera.plugins.module_utils.ctera_runner_base import CteraRunnerBase
class CteraPortalBaseMock(CteraRunnerBase):
def __init__(self, _argument_spec, **_kwargs)... | 21,914 |
https://github.com/anoordover/cyclops/blob/master/cyclops-core/src/test/java/com/aol/cyclops/functions/collections/extensions/standard/SetXTest.java | Github Open Source | Open Source | MIT | 2,016 | cyclops | anoordover | Java | Code | 24 | 138 | package com.aol.cyclops.functions.collections.extensions.standard;
import com.aol.cyclops.collections.extensions.CollectionX;
import com.aol.cyclops.collections.extensions.standard.SetX;
import com.aol.cyclops.functions.collections.extensions.AbstractCollectionXTest;
public class SetXTest extends AbstractCollectionXT... | 51,424 |
https://github.com/dvt32/cpp-journey/blob/master/Java/CodeForces/Book Reading.java | Github Open Source | Open Source | MIT | 2,018 | cpp-journey | dvt32 | Java | Code | 75 | 254 | // http://codeforces.com/problemset/problem/884/A
import java.util.Scanner;
public class Solution {
public static void main(String[] args) {
Scanner read = new Scanner(System.in);
final int NUMBER_OF_SECONDS_IN_ONE_DAY = 86400;
int n = read.nextInt();
int t = read.nextInt();
int dayCount = 0;
f... | 8,025 |
https://github.com/IIyass/Portfolio/blob/master/src/pages/blog.js | Github Open Source | Open Source | 0BSD | 2,022 | Portfolio | IIyass | JavaScript | Code | 30 | 75 | import React from "react"
import Layout from "../components/layout"
import Blogs from "../components/Blog"
const Blog = (props) => {
return (
<Layout path={props.location.pathname}>
<Blogs />
</Layout>
)
}
export default Blog
| 5,937 |
https://github.com/coulibaly-mouhamed/hipace/blob/master/src/fields/Fields.H | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, BSD-2-Clause | 2,021 | hipace | coulibaly-mouhamed | C++ | Code | 1,462 | 3,525 | #ifndef FIELDS_H_
#define FIELDS_H_
#include "fft_poisson_solver/FFTPoissonSolver.H"
#include "diagnostics/Diagnostic.H"
#include <AMReX_MultiFab.H>
#include <AMReX_Vector.H>
#include <AMReX_AmrCore.H>
class Hipace;
/** \brief Direction of field copies: from 3D F to 2D slice S or the other way round */
enum struct ... | 6,797 |
https://github.com/adafruit/Adafruit-AR/blob/master/Adafruit AR/Board Scan View Controller/BoardViewController.swift | Github Open Source | Open Source | MIT | 2,021 | Adafruit-AR | adafruit | Swift | Code | 4,029 | 17,429 | //
// BoardViewController.swift
// Adafruit AR
//
// Created by Trevor B on 5/20/19.
// Copyright © 2019 Adafruit. All rights reserved.
//
import UIKit
import ARKit
import SwiftUI
import RealityKit
class BoardViewController: UIViewController, ARSCNViewDelegate {
//Pico
let arVC = UIHostingController(rootV... | 4,105 |
https://github.com/x-f/UKHASnet_Firmware/blob/master/arduino_gateway/arduino_gateway.ino | Github Open Source | Open Source | MIT | 2,018 | UKHASnet_Firmware | x-f | null | Spoken | 255 | 1,094 | /*
UKHASnet Gateway Code by Phil Crump M0DNY
Based on UKHASnet rf69_repeater by James Coxon M6JCX
*/
#include <SPI.h>
#include <string.h>
#include "RFM69Config.h"
#include "RFM69.h"
#include "NodeConfig.h"
//************* Misc Setup ****************/
uint8_t n;
uint32_t count = 1, data_interval = 2;
uint8_t data_c... | 29,406 |
https://github.com/ahahn-gbif/checklistbank/blob/master/checklistbank-common/src/main/java/org/gbif/checklistbank/model/RawUsage.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | checklistbank | ahahn-gbif | Java | Code | 175 | 556 | package org.gbif.checklistbank.model;
import java.util.Date;
import java.util.UUID;
import com.google.common.base.MoreObjects;
import com.google.common.base.Objects;
/**
* Different model for a verbatim name usage record as it is stored in postgres and used in the mybatis DAO layer.
*/
public class RawUsage {
... | 3,346 |
https://github.com/BanditDev/Dream/blob/master/libs/pepega/user-coin/ui/src/index.ts | Github Open Source | Open Source | MIT | 2,019 | Dream | BanditDev | TypeScript | Code | 4 | 14 | export * from './lib/user-coin.api';
| 661 |
https://github.com/simpsonw/atmosphere/blob/master/core/migrations/remove_atmosphereuser_selected_identity.py | Github Open Source | Open Source | BSD-3-Clause | 2,022 | atmosphere | simpsonw | Python | Code | 37 | 123 | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2018-09-06 19:43
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('core', 'remove-old-allocation-models'),
]
operations = [
migrations.RemoveField(
... | 41,690 |
https://github.com/Pablo-Rodriguez/notes/blob/master/frontend/js/lib/css-variables.js | Github Open Source | Open Source | MIT | null | notes | Pablo-Rodriguez | JavaScript | Code | 75 | 240 |
function color (vars, name, light, normal, dark) {
vars[name] = {
l: light,
n: normal,
d: dark
}
}
const vars = {
shadow: {
up: (pxs) => `0px 0px ${pxs}px rgba(0, 0, 0, 0.3)`,
side: (pxs) => `1px 1px ${pxs}px rgba(0, 0, 0, 0.3)`
}
}
color(vars, 'primary', '#c5e99b', '#8fbc94', '#548687')
... | 40,348 |
https://github.com/fathomscott/portal/blob/master/src/AdminBundle/Form/Type/AgentProfileType.php | Github Open Source | Open Source | MIT | null | portal | fathomscott | PHP | Code | 233 | 950 | <?php
namespace AdminBundle\Form\Type;
use BackendBundle\Entity\Agent;
use BackendBundle\Entity\User;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\Form\Extension\Core\Type\DateType;
use Symfony\Component\Form\Extension\Core\Type\EmailType;
us... | 1,315 |
https://github.com/Schalldampfer/Epoch/blob/master/Sources/epoch_code/gui/scripts/craftingv2/EPOCH_crafting_checkGear.sqf | Github Open Source | Open Source | Naumen, Condor-1.1, MS-PL | 2,018 | Epoch | Schalldampfer | SQF | Code | 106 | 401 | /*
Author: Raimonds Virtoss - EpochMod.com
Contributors:
Description:
DESC-TBA
Licence:
Arma Public License Share Alike (APL-SA) - https://www.bistudio.com/community/licenses/arma-public-license-share-alike
Github:
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/gui/scri... | 41,629 |
https://github.com/cl-debug/maitianshe/blob/master/controllers/EncryptController.php | Github Open Source | Open Source | BSD-3-Clause | 2,016 | maitianshe | cl-debug | PHP | Code | 216 | 892 | <?php
/**
* @author oj
* @data : 2016/4/28
* @time: 11:25
*/
namespace app\controllers;
use Yii;
use yii\curl\Curl;
use yii\web\Controller;
use Functions;
class EncryptController extends Controller
{
/**
* @desc验签验证
*/
public function init()
{
$get_appkey_url = Yii::$app->params['g... | 21,855 |
https://github.com/uccross/awkward-1.0/blob/master/src/cpu-kernels/awkward_UnionArray_fillindex.cpp | Github Open Source | Open Source | BSD-3-Clause | null | awkward-1.0 | uccross | C++ | Code | 108 | 505 | // BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/master/LICENSE
#define FILENAME(line) FILENAME_FOR_EXCEPTIONS_C("src/cpu-kernels/awkward_UnionArray_fillindex.cpp", line)
#include "awkward/kernels.h"
template <typename FROM, typename TO>
ERROR awkward_UnionArray_fillindex(
TO* toindex,
... | 9,532 |
https://github.com/KaizNike/gdUnit3/blob/master/addons/gdUnit3/test/fuzzers/GdUnitFuzzerValueInjectionTest.gd | Github Open Source | Open Source | MIT | 2,021 | gdUnit3 | KaizNike | GDScript | Code | 246 | 1,033 | extends GdUnitTestSuite
var _current_test_case: String = ""
var _test_case_iterations: int = 0
var _expected_iterations: Dictionary
var _collect_values_by_seed := Array()
# a simple test fuzzer where provided a hard coded value set
class TestFuzzer extends Fuzzer:
var _data := [0, 1, 2, 3, 4, 5, 6, 23, 8, 9]
func... | 17,661 |
https://github.com/CiscoTestAutomation/genielibs/blob/master/pkgs/conf-pkg/src/genie/libs/conf/ospf/iosxe/areanetwork.py | Github Open Source | Open Source | Apache-2.0 | 2,023 | genielibs | CiscoTestAutomation | Python | Code | 109 | 374 | '''
OSPF Genie Conf Object Implementation for IOSXE:
- AreaNetwork multi-line configuration implementation for IOSXE - CLI
'''
# Python
import warnings
from abc import ABC
# Genie
from genie.conf.base.cli import CliConfigBuilder
from genie.conf.base.attributes import AttributesHelper
class AreaNetwork(ABC):
... | 4,730 |
https://github.com/adityaanugrohoo/Posyantri_Webpro1920/blob/master/application/views/public/footer.php | Github Open Source | Open Source | MIT | 2,020 | Posyantri_Webpro1920 | adityaanugrohoo | PHP | Code | 80 | 505 |
<footer class="page-footer font-small special-color-dark pt-4">
<div class="footer-copyright text-center py-3">Ayo ke Posyandu!
</div>
</footer>
<!--<script src="<?=base_url()?>assets/js/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="... | 35,515 |
https://github.com/SvenMayer/balancer/blob/master/arduino/arduino.ino | Github Open Source | Open Source | MIT | null | balancer | SvenMayer | null | Spoken | 255 | 660 | #define _NWINGS 5
#define _REFSG_PN 10
#define _NSMPLS 4096
#define _F_SH 10
int nms_smpl;
int arvls[_NSMPLS];
unsigned int rfidx[_NSMPLS];
void setup() {
// Set the pin modes.
pinMode(_REFSG_PN, INPUT);
nms_smpl = int(1000.0 / _F_SH)
}
void loop()
{
// Start calling the ref_sgnl function... | 35,691 |
https://github.com/lucasmarcelli/react-composable-forms/blob/master/src/lib/components/Inputs/Select.js | Github Open Source | Open Source | MIT | null | react-composable-forms | lucasmarcelli | JavaScript | Code | 284 | 943 | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { validateOutOfForm } from '../Helpers/formUtils';
class Select extends Component {
constructor(props) {
super(props);
this.renderOptions = this.renderOptions.bind(this);
this.handleChange = this.handleChange.bind(this... | 40,959 |
https://github.com/elifesciences-publications/CNApp/blob/master/funs/extract.stats.R | Github Open Source | Open Source | MIT | 2,020 | CNApp | elifesciences-publications | R | Code | 76 | 331 |
extract.stats <- function(x, y, w){
# 'x' data.frame or matrix
# 'y' is column name where to select extracting vector
# 'w' is a second number to extract info from max and mins
n <- which(colnames(x)==y)
z <- as.numeric(as.character(x[,n]))
mean_z <- mean(z)
sd_z <- sd(z)
#density_z <- density(z)
density_z <- 0
top3_m... | 5,497 |
https://github.com/willbradshaw/killifish-igseq/blob/master/preprocessing/source/scripts/assign_ambiguity.R | Github Open Source | Open Source | MIT | 2,022 | killifish-igseq | willbradshaw | R | Code | 218 | 699 | ######################################################################
# Label rows of a Change-O DB with ambiguity status of segment calls #
######################################################################
aux_dir <- snakemake@params[["aux"]]
source(file.path(aux_dir, "aux.R"))
parse_snakemake(snakemake)
write_... | 21,740 |
https://github.com/Furholeder/jtools/blob/master/test/isMobile.test.js | Github Open Source | Open Source | MIT | 2,020 | jtools | Furholeder | JavaScript | Code | 45 | 255 | /* eslint-disable */
import { isMobile } from "../src/index";
var expect = chai.expect;
describe("判断是否合法手机号", () => {
it("17682340575应该是合法手机号", () => {
expect(isMobile(17682340575)).to.be.true;
});
});
describe("异常流程测试", () => {
it("什么都不传应该返回false", () => {
expect(isMobile()).to.be.false;
});
it("传入非... | 29,423 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.