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/timothywangdev/Chainsfr/blob/master/src/static/Footer.jsx | Github Open Source | Open Source | MIT | 2,020 | Chainsfr | timothywangdev | JavaScript | Code | 285 | 1,183 | import React from 'react'
import { withStyles } from '@material-ui/core'
import Grid from '@material-ui/core/Grid'
import Typography from '@material-ui/core/Typography'
class FooterComponent extends React.Component {
render () {
const { classes } = this.props
return (
<footer className={classes.root}>
... | 279 |
https://github.com/reinteractive/CodeCareGem/blob/master/exe/run_ci_checks.sh | Github Open Source | Open Source | MIT | 2,021 | CodeCareGem | reinteractive | Shell | Code | 43 | 113 | #!/usr/bin/env bash
# Install needed dependencies
gem install brakeman
gem install bundler-audit
# Run checks
brakeman -A
brakeman_res=$?
bundle audit check --update
bundler_res=$?
# ignore warnings on PR/branch-triggered runs
if [ "$TRAVIS_EVENT_TYPE" = "cron" ]; then
exit $(( $brakeman_res || $bundler_res ))
fi
| 26,187 |
https://github.com/navarr/advent-of-code/blob/master/2016/day-06/part1.php | Github Open Source | Open Source | 2,021 | advent-of-code | navarr | PHP | Code | 79 | 278 | <?php
$input = file('input.txt', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
$repetitions = [];
foreach ($input as $line) {
$characters = str_split($line);
for ($i = 0, $l = count($characters); $i < $l; ++$i) {
$character = $characters[$i];
if (!isset($repetitions[$i]) || !isset($repetiti... | 27,438 | |
https://github.com/abdolence/analytics-zoo/blob/master/zoo/src/main/scala/com/intel/analytics/zoo/feature/image/RowToImageFeature.scala | Github Open Source | Open Source | Apache-2.0 | 2,022 | analytics-zoo | abdolence | Scala | Code | 163 | 429 | /*
* Copyright 2018 Analytics Zoo 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... | 17,396 |
https://github.com/tkomatsu/miniRayTracer/blob/master/lib/libvct/arithmetric.c | Github Open Source | Open Source | MIT | null | miniRayTracer | tkomatsu | C | Code | 173 | 568 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* arithmetric.c :+: :+: :+: ... | 15,769 |
https://github.com/Cantara/ConfigService-Dashboard/blob/master/src/main/java/no/cantara/csdb/cs_application/commands/CommandGetApplicationByArtifactId.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | ConfigService-Dashboard | Cantara | Java | Code | 32 | 140 | package no.cantara.csdb.cs_application.commands;
import no.cantara.csdb.util.basecommands.BaseGetCommand;
public class CommandGetApplicationByArtifactId extends BaseGetCommand<String> {
String artifactId;
public CommandGetApplicationByArtifactId(String artifactId) {
super();
this.artifactId = artifactId;
}... | 47,690 |
https://github.com/tjbaron/UnityTerrain/blob/master/Assets/PlanetTerrain/Shaders/WaterShader.shader | Github Open Source | Open Source | MIT | 2,022 | UnityTerrain | tjbaron | GLSL | Code | 67 | 283 | Shader "Terrain/Water Shader" {
Properties {
_Color ("Color", Color) = (1,1,1,1)
}
SubShader {
Tags { "RenderType"="Opaque" }
ZWrite Off
CGPROGRAM
#pragma surface surf Lambert alpha
struct Input {
float4 screenPos;
... | 49,814 |
https://github.com/nizam432/du_web_new/blob/master/bp_application/models/Model_backend_notice.php | Github Open Source | Open Source | MIT | null | du_web_new | nizam432 | PHP | Code | 155 | 680 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Model_backend_notice extends CI_Model
{
public function get_notice_list_data()
{
$this->db->select('notice.notice_id,notice.notice,notice.attached_file,notice.status,notice.entry_date_time as entry_date_time,users.name as entry_by');
$... | 18,814 |
https://github.com/loggly/ketama/blob/master/csharp_ketama/KetamaServers.cs | Github Open Source | Open Source | MIT | 2,013 | ketama | loggly | C# | Code | 689 | 1,712 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Ketama
{
public class KetamaServers
{
public List<KetamaServer> servers; //An array containing each KetamaServer object we're connected to
private Dictio... | 1,214 |
https://github.com/ru-ccmt/EDMFTF/blob/master/src/python/debug.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | EDMFTF | ru-ccmt | Python | Code | 414 | 987 | #!/usr/bin/env python
from types import FileType
from inspect import trace
from traceback import print_exc
from sys import stderr
import math # log and floor
def print_stacktrace(exception=None, file=stderr, context=10, printshort=True):
'''Prints detailed backtrace including local variables in
each stack ... | 28,593 |
https://github.com/MHPHasan/ajax_project/blob/master/src/scripts/index.js | Github Open Source | Open Source | Apache-2.0 | null | ajax_project | MHPHasan | JavaScript | Code | 291 | 1,097 | import Axios from "axios";
const BASE_URL = 'https://jsonplaceholder.typicode.com/users';
/* Ajax Project */
// const BASE_URL = 'http://localhost:3000/Contacts';
const tbody = document.querySelector('#tbody');
let saveBtn = document.querySelector('#saveBtn')
//Create New Contact
function createNewContact() {
... | 20,314 |
https://github.com/Anonsubmission/DSV/blob/master/ASPNetWebStack/DotNetOpenAuth/samples/OpenIdRelyingPartyWebForms/Code/State.cs | Github Open Source | Open Source | MS-PL, Apache-2.0 | 2,015 | DSV | Anonsubmission | C# | Code | 143 | 459 | namespace OpenIdRelyingPartyWebForms {
using System.Web;
using DotNetOpenAuth.OpenId.Extensions.AttributeExchange;
using DotNetOpenAuth.OpenId.Extensions.ProviderAuthenticationPolicy;
using DotNetOpenAuth.OpenId.Extensions.SimpleRegistration;
/// <summary>
/// Strong-typed bag of session state.
/// </summary>
... | 25,725 |
https://github.com/kevinjanbarluado2/ci3Login/blob/master/js/myjs.js | Github Open Source | Open Source | MIT | null | ci3Login | kevinjanbarluado2 | JavaScript | Code | 1,187 | 6,612 | var procTable;
$(function() {
const base_url = $('#base_url').val();
var $m=$('#salesMonth').val();
var $y=$('#salesYear').val();
var procTable = $('#procTable').DataTable( {
"processing": true,
// "autoWidth": true,
// "serverSide": true,
"responsive":true,
"language": {
... | 45,847 |
https://github.com/costjalisco/cost/blob/master/app/Http/Controllers/Admin/EventController.php | Github Open Source | Open Source | MIT | 2,021 | cost | costjalisco | PHP | Code | 156 | 598 | <?php
namespace App\Http\Controllers\Admin;
use Illuminate\Support\Facades\DB;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Models\Event;
class EventController extends Controller
{
public function index()
{
// Mostramos todos los eventos
$events = Event::orderBy(... | 6,412 |
https://github.com/msmallikarjuns/microservice-restaurant-management/blob/master/common-restaurants/src/main/java/net/chrisrichardson/eventstore/examples/management/restaurant/common/event/RestaurantUpdatedEvent.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | microservice-restaurant-management | msmallikarjuns | Java | Code | 42 | 174 | package net.chrisrichardson.eventstore.examples.management.restaurant.common.event;
import net.chrisrichardson.eventstore.examples.management.restaurant.common.RestaurantInfo;
public class RestaurantUpdatedEvent extends RestaurantEvent {
private RestaurantInfo restaurantInfo;
public RestaurantUpdatedEvent() ... | 6,102 |
https://github.com/joe513/Miscellaneous/blob/master/Singleton (__new__ version).py | Github Open Source | Open Source | Apache-2.0 | null | Miscellaneous | joe513 | Python | Code | 52 | 157 | class Person:
IS = None
def __init__(self, name, hours, rate):
self.name = name
self.hours = hours
self.rate = rate
def __new__(cls, *args, **kwargs):
if cls.IS == None:
cls.IS = object.__new__(Person)
return cls.IS
def pay(self):
r... | 19,696 |
https://github.com/youarebritish/FoxKitPrototype/blob/master/Assets/Scripts/Framework/Tpp/Classes/GameObjectLocator.cs | Github Open Source | Open Source | MIT | 2,021 | FoxKitPrototype | youarebritish | C# | Code | 43 | 184 | using System;
using System.Collections.Generic;
using FoxKit.Framework.Fox;
using FoxTool.Fox.Types;
using FoxTool.Fox.Containers;
using FoxTool.Fox.Types.Structs;
using UnityEngine;
namespace FoxKit.Framework.Tpp.Classes
{
public class GameObjectLocator : TransformData
{
[EntityProperty("typeName", Fo... | 4,787 |
https://github.com/LordTylus/SE-Torch-ALE-Core/blob/master/ALE-Core/Attribute/Filter/AttributeRelation.cs | Github Open Source | Open Source | Apache-2.0 | null | SE-Torch-ALE-Core | LordTylus | C# | Code | 16 | 70 |
namespace ALE_Core.Attribute.Filter {
public enum AttributeRelation {
EQUALS,
NOT_EQUALS,
BIGGER,
BIGGER_EQUALS,
SMALLER,
SMALLER_EQUALS,
}
} | 11,836 |
https://github.com/GrupoDiia-Udlap/DataFaker/blob/master/src/main/java/tables/Escuela.java | Github Open Source | Open Source | Apache-2.0 | null | DataFaker | GrupoDiia-Udlap | Java | Code | 98 | 299 | package tables;
import com.github.javafaker.Address;
import com.github.javafaker.Faker;
import java.util.Locale;
/**
* Created by Thagus on 18/06/17.
*/
public class Escuela {
private long id_escuela;
private String nombre;
private String direccion;
private String ciudad;
public Escuela(long i... | 20,615 |
https://github.com/jnagykuhlen/CompactMPC/blob/master/CompactMPC/BitQuadrupleArray.cs | Github Open Source | Open Source | MIT | 2,022 | CompactMPC | jnagykuhlen | C# | Code | 124 | 431 | using System.Collections.Generic;
namespace CompactMPC
{
public class BitQuadrupleArray : PackedArray<BitQuadruple>
{
private const int ElementsPerByte = 2;
private const int BitMask = 0xf;
public BitQuadrupleArray(int numberOfElements)
: base(numberOfElements, ElementsPer... | 35,370 |
https://github.com/ParkerTenBroeck/DLibXX/blob/master/src/main/java/Main/Main.java | Github Open Source | Open Source | MIT | null | DLibXX | ParkerTenBroeck | Java | Code | 1,769 | 6,698 | package Main;
import DLibX.DCanvas;
import DLibX.util.BezierCurve;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.awt.geom.Line2D;
import java.awt.geom.Point2D;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.nio.channels.Channels;
import java.n... | 45,903 |
https://github.com/TechnologyEnhancedLearning/DLSV2/blob/master/DigitalLearningSolutions.Data.Migrations/202109230834_AddManageOptionalCompetenciesPromptToSelfAssessments.cs | Github Open Source | Open Source | MIT | 2,022 | DLSV2 | TechnologyEnhancedLearning | C# | Code | 21 | 109 | namespace DigitalLearningSolutions.Data.Migrations
{
using FluentMigrator;
[Migration(202109230834)]
public class AddManageOptionalCompetenciesPromptToSelfAssessments : AutoReversingMigration
{
public override void Up()
{
Alter.Table("SelfAssessments").AddColumn("ManageOptio... | 4,137 |
https://github.com/MeasureAuthoringTool/MeasureAuthoringTool/blob/master/src/main/java/mat/server/MappingSpreadsheetService.java | Github Open Source | Open Source | CC0-1.0 | 2,023 | MeasureAuthoringTool | MeasureAuthoringTool | Java | Code | 399 | 1,671 | package mat.server;
import mat.client.shared.MatRuntimeException;
import mat.server.spreadsheet.DataType;
import mat.client.shared.FhirDatatypeAttributeAssociation;
import mat.server.spreadsheet.MatAttribute;
import mat.server.spreadsheet.QdmToQicoreMapping;
import mat.server.spreadsheet.RequiredMeasureField;
import m... | 49,185 |
https://github.com/whitechiina/vue-element-jin/blob/master/src/i18n/lang/cn.js | Github Open Source | Open Source | MIT | null | vue-element-jin | whitechiina | JavaScript | Code | 50 | 258 | import zhLocale from "element-ui/lib/locale/lang/zh-CN"
const cn = {
routeName: {
home: "主页",
network: "网络请求",
user: "用户管理",
statement: "报表管理",
reportprinting: "报表打印",
reportexport: "报表导出",
reportfiltrate: "报表筛选",
reportsynthesize: "综合报表",
pdf... | 8,354 |
https://github.com/huaisun/Ahstu-oj/blob/master/src/cn/test10/cc/J1098.java | Github Open Source | Open Source | MIT | 2,018 | Ahstu-oj | huaisun | Java | Code | 73 | 299 | package cn.test10.cc;
import java.math.BigInteger;
import java.util.Scanner;
public class J1098 {
public static void main(String[] args) {
Scanner cn = new Scanner(System.in);
int n = cn.nextInt();
String str = cn.next();
char[] c = str.toCharArray();
BigInteger answer = factorial(n);
int b =1;
for(int... | 17,080 |
https://github.com/geneontology/noctua-models/blob/master/models/R-HSA-5693606.ttl | Github Open Source | Open Source | CC-BY-4.0 | 2,021 | noctua-models | geneontology | Turtle | Code | 190 | 1,268 |
<http://model.geneontology.org/R-HSA-5693606> a <http://www.w3.org/2002/07/owl#Ontology> .
<http://geneontology.org/lego/modelstate> a <http://www.w3.org/2002/07/owl#AnnotationProperty> .
<http://purl.org/pav/providedBy> a <http://www.w3.org/2002/07/owl#AnnotationProperty> .
<https://w3id.org/biolink/vocab/in_taxon... | 10,691 |
https://github.com/Epono/GlobalGameJam2017/blob/master/Assets/Scripts/Controler/PlayerController.cs | Github Open Source | Open Source | MIT | null | GlobalGameJam2017 | Epono | C# | Code | 298 | 1,098 | using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public enum Action
{
ACCELERATE,
DECCELERATE,
RIGHT,
LEFT,
FIRE,
WAVESHOT,
AIM,
NEARSCAN,
IMMERGE,
SWITCH_ROCKET,
}
public class InfoSend
{
public float move;
public Vector2 aim... | 10,850 |
https://github.com/properati/prosperworks-ruby/blob/master/lib/prosperworks/base_entity.rb | Github Open Source | Open Source | MIT | null | prosperworks-ruby | properati | Ruby | Code | 33 | 108 | module ProsperWorks
class BaseEntity < Base
# used for the 6 main entity types
attr_accessor :assignee_id,
:custom_fields,
:date_modified,
:details,
:name,
:tags
extend ApiOperations::Create
extend ApiOperati... | 31,287 |
https://github.com/shengchengchao/elasticsearch-helper/blob/master/common/src/main/java/com/xixi/search/common/dto/SearchTreeDTO.java | Github Open Source | Open Source | Apache-2.0 | null | elasticsearch-helper | shengchengchao | Java | Code | 36 | 121 | package com.xixi.search.common.dto;
import lombok.Data;
import java.util.List;
/**
* @author shengchengchao
* @Description
* @createTime 2021/8/31
*/
@Data
public class SearchTreeDTO extends BaseSearchDTO {
private List<SearchTreeDTO> childrenLists;
/**类型 是 树父节点 LOGIC 还是 CONDITION*/
private String t... | 8,861 |
https://github.com/geneontology/noctua-models/blob/master/models/R-HSA-1296071.ttl | Github Open Source | Open Source | CC-BY-4.0 | 2,021 | noctua-models | geneontology | Turtle | Code | 203 | 1,289 |
<http://model.geneontology.org/R-HSA-1296071> a <http://www.w3.org/2002/07/owl#Ontology> .
<http://geneontology.org/lego/modelstate> a <http://www.w3.org/2002/07/owl#AnnotationProperty> .
<http://purl.org/pav/providedBy> a <http://www.w3.org/2002/07/owl#AnnotationProperty> .
<https://w3id.org/biolink/vocab/in_taxon... | 438 |
https://github.com/AgileAdaptiveTools/POETTools/blob/master/poet/trunk/pythonLibs/Django-1.3/django/contrib/admin/locale/eu/LC_MESSAGES/djangojs.po | Github Open Source | Open Source | BSD-3-Clause | 2,013 | POETTools | AgileAdaptiveTools | Gettext Catalog | Code | 457 | 1,665 | # This file is distributed under the same license as the Django package.
#
msgid ""
msgstr ""
"Project-Id-Version: Django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-03-15 13:13-0400\n"
"PO-Revision-Date: 2011-03-04 18:14+0000\n"
"Last-Translator: Jannis <jannis@leidel.info>\n"
"Language-Team: Basque <None>\... | 24,776 |
https://github.com/dakhipp/gatsby-starter/blob/master/src/mutations.js | Github Open Source | Open Source | MIT | 2,017 | gatsby-starter | dakhipp | JavaScript | Code | 68 | 206 | import gql from 'graphql-tag'
export const registerMutation = gql`
mutation Register(
$name: String!
$username: String!
$phone_number: String!
$email: String!
$password: String!
$password_conf: String!
) {
register(
name: $name
username: $username
phone_number: $phone_... | 1,963 |
https://github.com/shulmang/extempore/blob/master/examples/external/shader-tutorials/triangle.vert | Github Open Source | Open Source | Unlicense | 2,022 | extempore | shulmang | GLSL | Code | 43 | 111 | #version 400
layout(location = 0) in vec2 vertex_position;
layout(location = 1) in vec3 vertex_colour;
// uniform mat4 model_mat;
uniform mat4 view_mat;
// uniform mat4 proj_mat;
out vec3 colour;
void main () {
colour = vertex_colour;
gl_Position = view_mat * vec4(vertex_position, 0.0, 1.0);
}
| 8,825 |
https://github.com/MarcosSpessatto/Rocket.Chat/blob/master/apps/meteor/server/lib/dataExport/getRoomData.ts | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT, LicenseRef-scancode-free-unknown | 2,023 | Rocket.Chat | MarcosSpessatto | TypeScript | Code | 104 | 316 | import type { IRoom, IUser, RoomType } from '@rocket.chat/core-typings';
import { Rooms } from '@rocket.chat/models';
export const getRoomData = async (
roomId: IRoom['_id'],
ownUserId?: IUser['_id'],
): Promise<
| {
roomId: string;
roomName: string;
userId: string | undefined;
exportedCount: number;
... | 6,744 |
https://github.com/kenwalker/feastaid/blob/master/imports/api/dietary.js | Github Open Source | Open Source | MIT | null | feastaid | kenwalker | JavaScript | Code | 112 | 331 | import { Meteor } from 'meteor/meteor';
import { Mongo } from 'meteor/mongo';
import { check } from 'meteor/check';
export const Dietary = new Mongo.Collection('dietary');
export const RESTRICTIONS = [
"dairy", "eggs", "fish", "honey", "poultry", "redmeat", "shellfish", "slaughter"
];
export const DIET = [
"halal"... | 510 |
https://github.com/EshaMaharishi/pubsub-1/blob/master/jstests/replsets/replsetrestart2.js | Github Open Source | Open Source | Apache-2.0 | 2,022 | pubsub-1 | EshaMaharishi | JavaScript | Code | 107 | 411 | // config saved on shutdown
var compare_configs = function(c1, c2) {
assert.eq(c1.version, c2.version, 'version same');
assert.eq(c1._id, c2._id, '_id same');
printjson(c1);
printjson(c2);
for (var i in c1.members) {
assert(c2.members[i] !== undefined, 'field '+i+' exists in both configs'... | 45,551 |
https://github.com/gokhangunay/flink/blob/master/flink-runtime/src/test/java/org/apache/flink/runtime/rest/handler/FileUploadsTest.java | Github Open Source | Open Source | BSD-3-Clause | null | flink | gokhangunay | Java | Code | 325 | 1,158 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 33,380 |
https://github.com/ckamtsikis/cmssw/blob/master/TrackingTools/GeomPropagators/src/StraightLineCylinderCrossing.cc | Github Open Source | Open Source | Apache-2.0 | 2,022 | cmssw | ckamtsikis | C++ | Code | 283 | 894 | #include "TrackingTools/GeomPropagators/interface/StraightLineCylinderCrossing.h"
#include "DataFormats/GeometrySurface/interface/Cylinder.h"
#include "TrackingTools/GeomPropagators/src/RealQuadEquation.h"
#include <cmath>
#include <iostream>
using namespace std;
StraightLineCylinderCrossing::StraightLineCylinderCro... | 790 |
https://github.com/ks2002119/FeedManager/blob/master/src/main/java/proj/karthik/feed/reader/Constants.java | Github Open Source | Open Source | Apache-2.0 | null | FeedManager | ks2002119 | Java | Code | 146 | 301 | package proj.karthik.feed.reader;
/**
* Constants commonly used across the application.
*/
public class Constants {
//-------------- Configuration related constants ---------------//
public static final String PORT = "port";
public static final String APP_CONF = "app_conf";
public static final String... | 47,919 |
https://github.com/koadma/robotization-dilemma/blob/master/Ship.cpp | Github Open Source | Open Source | MIT | 2,017 | robotization-dilemma | koadma | C++ | Code | 733 | 2,000 | #include "Ship.h"
#include <iostream>
#include <cmath>
#include <vector>
using namespace std;
int Ship::getSpentEnergy() const
{
return command.accel.length()+(command.didFire?100:0)+command.sensorEnergy;
}
ostream& operator<<(ostream& os, const Command& c)
{
cout << "Gyorsulas: " << c.accel << endl;
cout << "... | 26,612 |
https://github.com/tickct/optimizing-react/blob/master/webpack.config.js | Github Open Source | Open Source | Unlicense | 2,019 | optimizing-react | tickct | JavaScript | Code | 74 | 322 | const webpack = require('webpack');
const { resolve } = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
devtool: 'inline-source-map',
entry: [
'react-hot-loader/patch',
resolve(__dirname, 'src', 'app.js'),
],
output: {
filename: '[name].[hash].bundle.js... | 9,050 |
https://github.com/muammar/vimfiles/blob/master/_vimrc | Github Open Source | Open Source | MIT | 2,021 | vimfiles | muammar | Vim Script | Code | 1,041 | 3,641 | "" Main Vim configuration
""
"" Muammar El Khatib <muammar@muammar.me>
"NeoBundle Scripts-----------------------------
if has('vim_starting')
if &compatible
set nocompatible
endif
" Required:
set runtimepath+=~/.vim/bundle/neobundle.vim/
endif
" Required:
call neobundle#begin(expand('~/.vim/bundle'))
" ... | 37,356 |
https://github.com/mtalaga/dotAPNS/blob/master/dotAPNS/ApnsJwtOptions.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | dotAPNS | mtalaga | C# | Code | 259 | 662 | using System;
using JetBrains.Annotations;
namespace dotAPNS
{
public class ApnsJwtOptions
{
/// <summary>
/// Path to a .p8 certificate containing a key to be used to encrypt JWT. If specified, <see cref="CertContent"/> must be null.
/// </summary>
[CanBeNull]
public s... | 30,678 |
https://github.com/SuperMap/iClient3D-vue/blob/master/build-style.js | Github Open Source | Open Source | Apache-2.0 | 2,022 | iClient3D-vue | SuperMap | JavaScript | Code | 98 | 602 |
// 打包scss
const gulp = require("gulp");
const sass = require("gulp-sass");
const minifyCss = require("gulp-clean-css");
const renameCss = require("gulp-rename");
// gulp创建任务
// gulp.task("sass", function () {
// return gulp.src("./src/style/globle.scss") // 编写的scss文件路径
// .pipe(sass()) //将scss编译成css
//... | 24,814 |
https://github.com/opatrascoiu/jmf/blob/master/uml/src/main/java/uk/ac/ukc/cs/kmf/kmfstudio/uml/Foundation/Core/Operation$Class.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | jmf | opatrascoiu | Java | Code | 1,663 | 6,974 | /**
*
* Class Operation$Class.java
*
* Generated by KMFStudio at 14 April 2004 22:36:45
* Visit http://www.cs.ukc.ac.uk/kmf
*
*/
package uk.ac.ukc.cs.kmf.kmfstudio.uml.Foundation.Core;
public class Operation$Class
extends
BehavioralFeature$Class
implements
Operation,
uk.ac.ukc.cs.kmf.kmfstudio.uml.Uml... | 6,524 |
https://github.com/alok8765/basic_python_practicse/blob/master/python_basics/Method_ function/function_problem 2/volume_sphare.py | Github Open Source | Open Source | MIT | null | basic_python_practicse | alok8765 | Python | Code | 5 | 31 | def vol(rad):
return (4/3)*(3.14)*(rad**3)
print(vol(5)) | 7,850 |
https://github.com/novastosha/MinigameAPI/blob/master/src/dev/nova/gameapi/game/base/instance/values/BooleanGameValue.java | Github Open Source | Open Source | MIT | 2,022 | MinigameAPI | novastosha | Java | Code | 37 | 147 | package dev.nova.gameapi.game.base.instance.values;
import dev.nova.gameapi.game.base.instance.GameInstance;
import dev.nova.gameapi.game.base.instance.values.base.GameValue;
public class BooleanGameValue extends GameValue<Boolean> {
public BooleanGameValue(GameInstance instance, String id, String displayName, Bo... | 22,456 |
https://github.com/SplinterGP/OpenDream/blob/master/OpenDreamRuntime/Objects/MetaObjects/DreamMetaObjectMob.cs | Github Open Source | Open Source | MIT | 2,021 | OpenDream | SplinterGP | C# | Code | 223 | 839 | using OpenDreamRuntime.Procs;
using OpenDreamShared.Dream;
namespace OpenDreamRuntime.Objects.MetaObjects {
class DreamMetaObjectMob : DreamMetaObjectMovable {
public DreamMetaObjectMob(DreamRuntime runtime)
: base(runtime)
{}
public override void OnObjectCreated(DreamObject d... | 34,323 |
https://github.com/True-Islam/quran-backend-api/blob/master/api/models/audio.js | Github Open Source | Open Source | Apache-2.0 | null | quran-backend-api | True-Islam | JavaScript | Code | 98 | 351 | class Audio {
constructor() {
this.id;
this.ayahId;
this.ayahNumber;
this.editionId;
this.type;
this.link;
}
static fromJson(data, id = null) {
const audio = new Audio();
audio.id = id;
audio.ayahId = data.ayahId;
audio.ayahNumber = data.ayahNumber;
audio.editionId = d... | 1,189 |
https://github.com/sleticalboy/Daily-Work/blob/master/MainApp/src/main/java/com/sleticalboy/learning/accounts/sync/RoutineSyncAdapter.kt | Github Open Source | Open Source | Apache-2.0 | 2,020 | Daily-Work | sleticalboy | Kotlin | Code | 95 | 261 | package com.sleticalboy.learning.accounts.sync
import android.accounts.Account
import android.content.AbstractThreadedSyncAdapter
import android.content.ContentProviderClient
import android.content.Context
import android.content.SyncResult
import android.os.Bundle
import android.os.SystemClock
import android.util.Log
... | 35,177 |
https://github.com/KevinAnthony/Wyvern/blob/master/src/Noside.Wyvern.Coin/Views/CoinView.xaml.cs | Github Open Source | Open Source | MIT | null | Wyvern | KevinAnthony | C# | Code | 29 | 94 | namespace Noside.Wyvern.CoinCounter.Views {
/// <summary>
/// Interaction logic for CoinView.xaml
/// </summary>
public partial class CoinView {
#region Constructors and Destructors
public CoinView() {
this.InitializeComponent();
}
#endregion
}
} | 19,158 |
https://github.com/1CharlesStern/Web-Verifier/blob/master/src/test/org/apache/velocity/test/BaseTestCase.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | Web-Verifier | 1CharlesStern | Java | Code | 1,415 | 3,775 | package org.apache.velocity.test;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, V... | 37,145 |
https://github.com/gumtreeuk/AStickyHeader/blob/master/library/src/dev/dworks/libs/astickyheader/SimpleSectionedGridAdapter.java | Github Open Source | Open Source | Apache-2.0 | 2,014 | AStickyHeader | gumtreeuk | Java | Code | 1,301 | 3,635 | /*
* Copyright 2013 Hari Krishna Dulipudi
*
* 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... | 38,623 |
https://github.com/geoHeil/dagster/blob/master/js_modules/dagit/packages/core/src/partitions/types/PartitionGraphSetRunFragment.ts | Github Open Source | Open Source | Apache-2.0 | 2,021 | dagster | geoHeil | TypeScript | Code | 159 | 580 | // @generated
/* tslint:disable */
/* eslint-disable */
// @generated
// This file was automatically generated and should not be edited.
import { PipelineRunStatus, StepEventStatus } from "./../../types/globalTypes";
// ====================================================
// GraphQL fragment: PartitionGraphSetRunFrag... | 47,418 |
https://github.com/tjcchen/practice-makes-perfect/blob/master/CommonJS/moduleA.js | Github Open Source | Open Source | MIT | 2,022 | practice-makes-perfect | tjcchen | JavaScript | Code | 29 | 54 | const moduleB = require('./moduleB');
// print out timestamp coming from moduleB with 1s delay
// execute passed-in function first, then print out result 1s later
setTimeout(() => console.log(moduleB), 1000); | 23,033 |
https://github.com/sinagilassi/rmt-app/blob/master/PyREMOT/core/setting.py | Github Open Source | Open Source | MIT | null | rmt-app | sinagilassi | Python | Code | 264 | 902 | # APP SETTING
# ------------
# define all constants used in this app
modelTypes = {
"M0": {
"id": "M0",
"des":
"plug-flow reactor"
},
"M1": {
"id": "M1",
"des":
"packed bed reactor, isothermal, plug-flow, no pressure drop"
},
"M2": {
"id":... | 33,132 |
https://github.com/Zovube/Tasks-solutions/blob/master/Timus/Vol.02/1123/sol.cpp | Github Open Source | Open Source | MIT | 2,018 | Tasks-solutions | Zovube | C++ | Code | 120 | 285 | #include<bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
string old_s = s;
int l = 0, r = s.size() - 1;
bool fl = 0;
int posl = -1, posr = -1;
while(l < r) {
if(s[l] != s[r]) {
posl = l, posr = r;
s[r] = s[l];
}
l++, r--;
... | 34,220 |
https://github.com/otronarp/ModelicaStandardLibrary/blob/master/Modelica/Electrical/Polyphase/Interfaces/FourPlug.mo | Github Open Source | Open Source | BSD-3-Clause | null | ModelicaStandardLibrary | otronarp | Modelica | Code | 152 | 488 | within Modelica.Electrical.Polyphase.Interfaces;
partial model FourPlug "Component with two polyphase electrical ports"
parameter Integer m(final min=1) = 3 "Number of phases";
Modelica.SIunits.Voltage v1[m] "Voltage drops of port 1";
Modelica.SIunits.Voltage v2[m] "Voltage drops of port 2";
Modelica.SIunits.Cu... | 27,556 |
https://github.com/eidetikos/multi-n-back/blob/master/src/app/Error.js | Github Open Source | Open Source | MIT | 2,017 | multi-n-back | eidetikos | JavaScript | Code | 38 | 106 | import React from 'react';
import { ErrorDiv } from '../styles/style';
export default ({ error }) => {
if(!error) return null;
return (
<ErrorDiv>
{Array.isArray(error)
? <ul>error.map(err => <li>err</li>)</ul>
: error.error ? error.error : error
}
</ErrorDiv>
);
}; | 43,928 |
https://github.com/SkillsFundingAgency/das-shared-packages/blob/master/Messaging/SFA.DAS.Messaging.Syndication.UnitTests/SyndicationPollingMessageReceiverTests/WhenReceivingAsAType.cs | Github Open Source | Open Source | MIT | 2,023 | das-shared-packages | SkillsFundingAgency | C# | Code | 99 | 396 | using System.Threading.Tasks;
using Moq;
using NUnit.Framework;
namespace SFA.DAS.Messaging.Syndication.UnitTests.SyndicationPollingMessageReceiverTests
{
public class WhenReceivingAsAType
{
private Mock<IMessageClient> _messageClient;
private Mock<IFeedPositionRepository> _feedPositionReposit... | 17,487 |
https://github.com/Aaronoooooo/LocalDesk/blob/master/flink/src/main/java/com/test/table/SqlTumbleWindowEventTimeStream.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | LocalDesk | Aaronoooooo | Java | Code | 212 | 1,076 | package com.test.table;
import org.apache.flink.api.common.typeinfo.TypeInformation;
import org.apache.flink.api.common.typeinfo.Types;
import org.apache.flink.streaming.api.TimeCharacteristic;
import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;
import org.apache.flink.table.api.Table;
import... | 14,262 |
https://github.com/researchstudio-sat/webofneeds/blob/master/webofneeds/won-utils/won-utils-shacl2java/src/main/java/won/shacl2java/sourcegen/typegen/mapping/IndividualClassNames.java | Github Open Source | Open Source | Zlib, EPL-1.0, LZMA-exception, bzip2-1.0.6, CPL-1.0, CDDL-1.0, Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,021 | webofneeds | researchstudio-sat | Java | Code | 16 | 87 | package won.shacl2java.sourcegen.typegen.mapping;
import com.squareup.javapoet.ClassName;
import org.apache.jena.graph.Node;
import won.shacl2java.sourcegen.typegen.support.ProducerConsumerMap;
public class IndividualClassNames extends ProducerConsumerMap<Node, ClassName> {
}
| 33,458 |
https://github.com/RishabhKodes/console/blob/master/frontend/packages/ceph-storage-plugin/integration-tests/views/storage-dashboard.view.ts | Github Open Source | Open Source | Apache-2.0 | 2,019 | console | RishabhKodes | TypeScript | Code | 96 | 307 | import { $, $$, browser } from 'protractor';
import { appHost } from '@console/internal-integration-tests/protractor.conf';
import { isLoaded } from '@console/shared/src/test-views/dashboard-shared.view';
// export const clusterHealth = $('[class="co-health-card__text"]');
export const clusterHealth = $('div.co-status... | 11,545 |
https://github.com/matthamil/Community/blob/master/Controllers/EventController.cs | Github Open Source | Open Source | MIT | 2,018 | Community | matthamil | C# | Code | 1,122 | 3,481 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
usi... | 6,275 |
https://github.com/rohankumardubey/Monix/blob/master/monifu/shared/src/test/scala/monifu/reactive/internals/builders/FromFutureSuite.scala | Github Open Source | Open Source | Apache-2.0 | 2,021 | Monix | rohankumardubey | Scala | Code | 378 | 1,011 | /*
* Copyright (c) 2014-2016 by its authors. Some rights reserved.
* See the project homepage at: https://monix.io
*
* 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.a... | 15,768 |
https://github.com/JungKyuHyun/guest-book/blob/master/client/services/message.service.ts | Github Open Source | Open Source | MIT | 2,021 | guest-book | JungKyuHyun | TypeScript | Code | 102 | 267 | import { HttpClient } from 'core/HttpClient';
import { Message, Messages } from 'models/Message';
export class MsgServices {
static async getMsgs() {
const { data } = await HttpClient.get<Messages>('/messages');
return data;
}
static async createMsg(userId: string, description: string) {
const { dat... | 21,575 |
https://github.com/implicit-invocation/flat/blob/master/src/index.js | Github Open Source | Open Source | MIT | 2,019 | flat | implicit-invocation | JavaScript | Code | 231 | 782 | import Plugin from './plugin';
import printTables from './print-tables';
import Promise from 'bluebird';
import winston from 'winston';
const CONTAINER_DEFAULT_CONFIG = {
interactive: true,
loggingLevel: 'info'
};
class Container {
constructor(root, configFilePath, configs) {
configs = {
...CONTAINER... | 31,487 |
https://github.com/alexwoolford/neo4j-apoc-procedures/blob/master/docs/asciidoc/modules/ROOT/partials/expand-sample-graph.adoc | Github Open Source | Open Source | Apache-2.0 | 2,022 | neo4j-apoc-procedures | alexwoolford | AsciiDoc | Code | 122 | 503 | [source,cypher]
----
MERGE (mark:Person:DevRel {name: "Mark"})
MERGE (praveena:Person:Engineering {name: "Praveena"})
MERGE (joe:Person:Field {name: "Joe"})
MERGE (lju:Person:DevRel {name: "Lju"})
MERGE (zhen:Person:Engineering {name: "Zhen"})
MERGE (stefan:Person:Field {name: "Stefan"})
MERGE (alicia:Person:Product {n... | 28,377 |
https://github.com/ckaarle/otree-core/blob/master/otree/checks.py | Github Open Source | Open Source | MIT | 2,021 | otree-core | ckaarle | Python | Code | 1,001 | 3,059 | import inspect
import os
from importlib import import_module
from pathlib import Path
import sys
from otree import common
from otree.api import BasePlayer, BaseGroup, BaseSubsession, Currency, WaitPage, Page
from otree import settings
from otree.common import get_pages_module, get_models_module
from collections import ... | 47,044 |
https://github.com/Midex26/test_dev/blob/master/templates/base.html.twig | Github Open Source | Open Source | MIT | null | test_dev | Midex26 | Twig | Code | 87 | 593 | <!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>{% block title %}Welcome!{% endblock %}</title>
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text></svg>">
{# Run ... | 41,166 |
https://github.com/Oubaida996/auth-api/blob/master/src/auth/routes/v2.js | Github Open Source | Open Source | MIT | null | auth-api | Oubaida996 | JavaScript | Code | 110 | 528 | 'use strict';
const express =require('express');
const models =require('../models/database.js');
const router =express.Router();
const bearerAuth = require('../middleware/bearer.auth');
const acl =require('../middleware/acl.auth');
router.param('model' , (req,res,next)=>{
if(models[req.params.model]){
... | 30,578 |
https://github.com/carlosyslas/gato/blob/master/src/components/Tile.vue | Github Open Source | Open Source | MIT | null | gato | carlosyslas | Vue | Code | 170 | 620 | <template>
<div class="tile" v-bind:class="dynamicClass" v-on:click="$emit('mark')">
<div class="tile-content">{{content}}</div>
</div>
</template>
<script>
import { mapActions } from "vuex";
import { MARKS } from "../constants";
export default {
props: ["tile", "turn", "not-winning"],
methods: mapActions... | 9,800 |
https://github.com/predix/acs/blob/master/service/src/test/java/com/ge/predix/acs/zone/management/ZoneServiceTest.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | acs | predix | Java | Code | 321 | 1,347 | /*******************************************************************************
* Copyright 2017 General Electric Company
*
* 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:... | 48,749 |
https://github.com/bluerogue251/DBSubsetter/blob/master/src/main/scala/trw/dbsubsetter/datacopy/DataCopier.scala | Github Open Source | Open Source | MIT | 2,021 | DBSubsetter | bluerogue251 | Scala | Code | 44 | 171 | package trw.dbsubsetter.datacopy
import trw.dbsubsetter.db.{DbAccessFactory, DbVendor, SchemaInfo}
private[datacopy] trait DataCopier {
def runTask(task: DataCopyTask): Unit
}
private[datacopy] object DataCopier {
def from(dbAccessFactory: DbAccessFactory, schemaInfo: SchemaInfo): DataCopier = {
dbAccessFact... | 45,976 |
https://github.com/MindFlavor/azure-sdk-for-rust/blob/master/sdk/storage/examples/emulator_00.rs | Github Open Source | Open Source | MIT, LicenseRef-scancode-generic-cla, LGPL-2.1-or-later | 2,021 | azure-sdk-for-rust | MindFlavor | Rust | Code | 61 | 232 | use azure_storage::blob::prelude::*;
use azure_storage::core::prelude::*;
use std::error::Error;
#[tokio::main]
async fn main() -> Result<(), Box<dyn Error + Send + Sync>> {
env_logger::init();
// this is how you use the emulator.
let storage_account = StorageAccountClient::new_emulator_default().as_stora... | 47,708 |
https://github.com/nate-trojian/go-snmp/blob/master/ber.go | Github Open Source | Open Source | Apache-2.0 | null | go-snmp | nate-trojian | Go | Code | 2,012 | 4,857 | package wapsnmp
/* This file implements BER ASN1 encoding and decoding.
References : http://rane.com/note161.html
This package was made due to the inability of the encoding/asn1 library to
parse SNMP packets received from actual network devices. In order to fix
encoding/asn1 I would need to make deep changes in that... | 15,985 |
https://github.com/Kassan424kh/berichtsheft/blob/master/berichtsheft_app/lib/Components/Sites/home_site.dart | Github Open Source | Open Source | MIT | null | berichtsheft | Kassan424kh | Dart | Code | 46 | 203 | import 'package:berichtsheft_app/Components/site_overview.dart';
import 'package:flutter/material.dart';
class HomeSite extends StatelessWidget {
@override
Widget build(BuildContext context) {
return SiteOverview(
backgroundImageLink: "https://cutt.ly/0edQwvJ",
color: Color(0xfff1f1f3),
child... | 1,435 |
https://github.com/anodyne/anodyne-productions.com/blob/master/app/CommonMark/Extensions/Tag/Renderers/NoteRenderer.php | Github Open Source | Open Source | MIT | 2,023 | anodyne-productions.com | anodyne | PHP | Code | 90 | 438 | <?php
namespace App\CommonMark\Extensions\Tag\Renderers;
use League\CommonMark\Node\Node;
use League\CommonMark\Renderer\ChildNodeRendererInterface;
use League\CommonMark\Renderer\NodeRendererInterface;
use League\CommonMark\Util\HtmlElement;
class NoteRenderer implements NodeRendererInterface
{
public function ... | 23,482 |
https://github.com/Pumzow/ASP.NET-Core-DigitalArts/blob/master/DigitalArts.Test/Controllers/Administration/ArtsController.cs | Github Open Source | Open Source | MIT | null | ASP.NET-Core-DigitalArts | Pumzow | C# | Code | 139 | 516 | using DigitalArts.Data.Models;
using DigitalArts.Services.Artist;
using DigitalArts.Services.Arts;
using DigitalArts.Services.Gallery;
using DigitalArts.Test.Mocks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using MyTested.AspNetCore.Mvc;
using System.Linq;
using Xunit;
namespace DigitalArts.Tes... | 46,337 |
https://github.com/adcimon/gameoff2018/blob/master/Assets/Code/Editor/SpriteAnimationTool.cs | Github Open Source | Open Source | MIT | 2,019 | gameoff2018 | adcimon | C# | Code | 186 | 618 | using UnityEngine;
using UnityEditor;
public class SpriteAnimationTool : EditorWindow
{
private new string name = "";
private GameObject model;
[MenuItem("Window/SpriteAnimationTool")]
private static void Init()
{
SpriteAnimationTool window = (SpriteAnimationTool)EditorWindow.GetWindow(typeof(SpriteAnim... | 27,890 |
https://github.com/alanoooaao/YDWE/blob/master/Development/Core/ydbase/base/win/file_version.h | Github Open Source | Open Source | Apache-2.0 | 2,022 | YDWE | alanoooaao | C | Code | 137 | 524 | #pragma once
#include <base/config.h>
#include <Windows.h>
#include <cstdint>
#pragma warning(push)
#pragma warning(disable:4996)
#include <memory>
#pragma warning(pop)
namespace base {
namespace win {
class _BASE_API file_version
{
const static WORD ansi_code_page = 1252;
public:
file_version();
file_versio... | 4,175 |
https://github.com/fylein/fyle-teams-app/blob/master/fyle_teams_app/views/handlers/action_handlers.py | Github Open Source | Open Source | MIT | null | fyle-teams-app | fylein | Python | Code | 296 | 1,107 | from typing import Dict
from fyle.platform import exceptions as platform_exceptions
from botbuilder.core import TurnContext, CardFactory, MessageFactory
from botbuilder.schema import AdaptiveCardInvokeValue
from django.http.response import JsonResponse
from fyle_teams_app.models import User
from fyle_teams_app.libs... | 19,069 |
https://github.com/topolr/ada/blob/master/src/dispatcher.js | Github Open Source | Open Source | MIT | 2,018 | ada | topolr | JavaScript | Code | 102 | 348 | let {View} = require("./view");
let {SUBSCRIBE} = require("./util/const");
class Dispatcher {
constructor() {
this._listener = [];
}
observe(view) {
if (view instanceof View) {
if (this._listener.indexOf(view) === -1) {
this._listener.push(view);
}
}
return this;
}
unobserve(view) {
let inde... | 27,459 |
https://github.com/PolideaInternal/fluffy-airflow/blob/master/init/build.sh | Github Open Source | Open Source | Apache-2.0 | 2,020 | fluffy-airflow | PolideaInternal | Shell | Code | 17 | 72 | #!/bin/bash
set -ex
version="ver-${RANDOM}"
image="eu.gcr.io/polidea-airflow/worker_init:${version}"
echo ${version}
docker build . -t "${image}"
docker push "${image}"
echo ${image} | 18,538 |
https://github.com/banayoyo/m22det/blob/master/utils/generate_priors.py | Github Open Source | Open Source | MIT | null | m22det | banayoyo | Python | Code | 176 | 579 | import numpy as np
def generate_priors(image_size, num_scales=3):
if image_size == 320:
anchor_scale = 1.2
shapes = [40, 20, 10, 5, 3, 1]
elif image_size == 640:
anchor_scale = 3.0
shapes = [80, 40, 20, 10, 5, 3]
anchor_configs = {}
for shape in [40, 20, 10, 5, 3, 1]:
... | 25,284 |
https://github.com/vv-ippei/vv-slackbot/blob/master/lib/utils.js | Github Open Source | Open Source | MIT | null | vv-slackbot | vv-ippei | JavaScript | Code | 56 | 123 | function formatUptime(uptime) {
var unit = 'second';
if (uptime > 60) {
uptime = uptime / 60;
unit = 'minute';
}
if (uptime > 60) {
uptime = uptime / 60;
unit = 'hour';
}
if (uptime != 1) {
unit = unit +'s';
}
uptime = uptime + ' ' + unit;
return uptime;
}
| 1,924 |
https://github.com/PureWeen/Xamarin.Forms.UWPShell.Sample/blob/master/src/Gastropod/Shell.xaml.cs | Github Open Source | Open Source | Apache-2.0 | null | Xamarin.Forms.UWPShell.Sample | PureWeen | C# | Code | 52 | 222 |
using System;
using System.Collections.Generic;
using System.Windows.Input;
using Xamarin.Forms;
namespace Gastropod
{
public partial class Shell : Xamarin.Forms.Shell
{
public ICommand TakePhotoCommand => new Command(GoToCamera);
public Shell()
{
InitializeComponent();
... | 26,920 |
https://github.com/bayonmbayo/Symfony/blob/master/src/Form/UserType.php | Github Open Source | Open Source | MIT | null | Symfony | bayonmbayo | PHP | Code | 38 | 218 | <?php
namespace App\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\Extension\Core\Type\EmailType;
use Symfony\Component\Form\Extension\Core\Type\DateType;
us... | 14,340 |
https://github.com/genghisken/psat-server-web/blob/master/psat_server_web/schema/atlas_detectionsddc.sql | Github Open Source | Open Source | MIT | null | psat-server-web | genghisken | SQL | Code | 213 | 611 | drop table if exists `atlas_detectionsddc`;
--
-- atlas_detectionsddc.sql
-- Author: K. W. Smith
-- Initially created by generateATLASSchemaAndCPPClasses.py
-- on 2017-06-06
--
CREATE TABLE `atlas_detectionsddc` (
`id` bigint unsigned not null auto_increment, -- autoincrementing detection id
`atlas_metadata_id` big... | 38,499 |
https://github.com/celestialized/hmda-platform/blob/master/hmda-data-publisher/src/main/scala/hmda/publisher/scheduler/LarPublicScheduler.scala | Github Open Source | Open Source | CC0-1.0 | 2,021 | hmda-platform | celestialized | Scala | Code | 352 | 1,509 | package hmda.publisher.scheduler
import akka.NotUsed
import akka.stream.Materializer
import akka.stream.alpakka.file.ArchiveMetadata
import akka.stream.alpakka.file.scaladsl.Archive
import akka.stream.alpakka.s3.ApiVersion.ListBucketVersion2
import akka.stream.alpakka.s3._
import akka.stream.alpakka.s3.scaladsl.S3
imp... | 4,434 |
https://github.com/kakadu-dev/symfony-microservice-template/blob/master/src/Helpers/Query/Symfony/SymfonyQueryInterface.php | Github Open Source | Open Source | MIT | null | symfony-microservice-template | kakadu-dev | PHP | Code | 24 | 77 | <?php
namespace App\Helpers\Query\Symfony;
/**
* Interface SymfonyQueryInterface
* @package App\Helpers\Query\Symfony
*/
interface SymfonyQueryInterface
{
/**
* @return array
*/
public function getParameters(): array;
}
| 8,075 |
https://github.com/consulo/consulo-java/blob/master/java-analysis-impl/src/main/java/com/intellij/codeInspection/dataFlow/TrackingDfaMemoryState.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | consulo-java | consulo | Java | Code | 1,722 | 6,699 | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.codeInspection.dataFlow;
import com.intellij.codeInspection.dataFlow.instructions.AssignInstruction;
import com.intellij.codeInspection.dataFlow.instructions... | 22,919 |
https://github.com/AoCoin-Lab/aocoin-android/blob/master/app/src/main/java/com/aocoin/wallet/event/AppEvent.kt | Github Open Source | Open Source | Apache-2.0 | 2,020 | aocoin-android | AoCoin-Lab | Kotlin | Code | 70 | 272 | package com.aocoin.wallet.event
/**
* @FileName AppEvent
* @Description
* @Author dingyan
* @Date 2020/10/14 4:42 PM
*/
class AppEvent {
enum class Type {
// 钱包创建成功
WALLET_CREATE_SUCCESS,
// 钱包导入成功
WALLET_IMPORT_SUCCESS,
// 更新钱包管理 Icon
UPDATE_WALLET_MANAGEMEN... | 2,888 |
https://github.com/hrb90/kripke-explorer/blob/master/src/purs/Data/Kripke/Validation.purs | Github Open Source | Open Source | MIT | null | kripke-explorer | hrb90 | PureScript | Code | 572 | 1,034 | module Data.Kripke.Validation
( Errors
, Validation
, toEither
, isTransitive
, validateReflexive
, validateTransitive
, validateMonotonic
, validateDomain
, validateTotal
, validateEuclidean ) where
import Prelude
import Data.Array (filter)
import Data.Either (Either(..))
import Data.Foldable ... | 20,380 |
https://github.com/ferra-rally/avro/blob/master/lang/java/avro/src/test/java/org/apache/avro/BinaryDecoderMapTest.java | Github Open Source | Open Source | Apache-2.0 | null | avro | ferra-rally | Java | Code | 161 | 598 | package org.apache.avro;
import org.apache.avro.io.BinaryDecoder;
import org.apache.avro.io.DecoderFactory;
import org.apache.avro.io.Encoder;
import org.apache.avro.io.EncoderFactory;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Par... | 4,510 |
https://github.com/hlorenzi/customasm/blob/master/tests/rule_empty/ok.asm | Github Open Source | Open Source | Apache-2.0 | 2,023 | customasm | hlorenzi | Assembly | Code | 53 | 129 | #subruledef reg
{
{} => 0x00
a, => 0xaa
b, => 0xbb
c, => 0xcc
}
#ruledef
{
load {r: reg} {val: u8} => 0x55 @ r @ val
}
load 0x11 ; = 0x550011
load a, 0x11 ; = 0x55aa11
load b, 0x11 ; = 0x55bb11
load c, 0x11 ; = 0x55cc11 | 17,494 |
https://github.com/carloseduardomarques/java-fundamentals-poo/blob/master/2Disciplina/2Disciplina/src/unidade3/UsoGenerico.java | Github Open Source | Open Source | Apache-2.0 | null | java-fundamentals-poo | carloseduardomarques | Java | Code | 26 | 101 | package unidade3;
public class UsoGenerico {
public static void main(String[] args) {
ExemploGenerics<Integer> iob = new ExemploGenerics<>(88);
iob.showType();
ExemploGenerics<String> sob = new ExemploGenerics<>("Antonio");
sob.showType();
}
}
| 11,196 |
https://github.com/Mithenks/strapi/blob/master/examples/getstarted/global.d.ts | Github Open Source | Open Source | MIT | 2,022 | strapi | Mithenks | TypeScript | Code | 18 | 39 | interface Restaurant {
name: string;
}
declare global {
interface AllTypes {
restaurant: Restaurant;
}
}
export {};
| 4,476 |
https://github.com/peng49/fly/blob/master/fly-admin/src/main/java/fly/admin/service/SystemConfigService.java | Github Open Source | Open Source | MIT | 2,021 | fly | peng49 | Java | Code | 32 | 119 | package fly.admin.service;
import fly.admin.entity.model.SystemConfig;
import fly.admin.entity.vo.ResultVO;
import java.util.Map;
public interface SystemConfigService {
SystemConfig add(SystemConfig config);
void delete(SystemConfig config);
SystemConfig update(SystemConfig config);
SystemConfig ... | 49,895 |
https://github.com/spelletie/openVulnQuery/blob/master/openVulnQuery/_library/advisory.py | Github Open Source | Open Source | MIT | 2,022 | openVulnQuery | spelletie | Python | Code | 373 | 1,355 | from abc import ABCMeta
from . import constants
from ._compatibility import is_unicode_or_bytes
NA = constants.NA_INDICATOR
IPS_SIG = constants.IPS_SIGNATURE_LABEL
ADVISORIES_COMMONS_MAP = {
'advisory_id': "advisoryId",
'advisory_title': "advisoryTitle",
'bug_ids': "bugIDs",
'cves': "cves",
'cvss... | 32,566 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.