hexsha stringlengths 40 40 | size int64 5 1.05M | ext stringclasses 98
values | lang stringclasses 21
values | max_stars_repo_path stringlengths 3 945 | max_stars_repo_name stringlengths 4 118 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 368k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 945 | max_issues_repo_name stringlengths 4 118 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 134k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 945 | max_forks_repo_name stringlengths 4 135 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 5 1.05M | avg_line_length float64 1 1.03M | max_line_length int64 2 1.03M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a3d351b1132a785f29d95d289d237181d8c9468e | 3,020 | java | Java | src/src/com/mycompany/newsservice/views/SubscribeView.java | golddusty/javaserverface | 164b543884ea25eac1fe02a89e85b3126d50b735 | [
"Apache-1.1"
] | null | null | null | src/src/com/mycompany/newsservice/views/SubscribeView.java | golddusty/javaserverface | 164b543884ea25eac1fe02a89e85b3126d50b735 | [
"Apache-1.1"
] | null | null | null | src/src/com/mycompany/newsservice/views/SubscribeView.java | golddusty/javaserverface | 164b543884ea25eac1fe02a89e85b3126d50b735 | [
"Apache-1.1"
] | null | null | null | package com.mycompany.newsservice.views;
import javax.faces.application.Application;
import javax.faces.component.UICommand;
import javax.faces.component.UIForm;
import javax.faces.component.UIInput;
import javax.faces.component.UIOutput;
import javax.faces.component.UIPanel;
import javax.faces.component.UISel... | 36.385542 | 79 | 0.668543 |
a1e1199e0654701cf8874e922377e891cf9efa04 | 3,692 | dart | Dart | lib/domain/entities/day.dart | digit-srl/MyDay-Apps | f5e9cd5d3e43304126229c26ad2be73c7c98294c | [
"MIT"
] | 8 | 2020-04-15T19:38:15.000Z | 2021-09-10T23:06:58.000Z | lib/domain/entities/day.dart | digit-srl/MyDay-Apps | f5e9cd5d3e43304126229c26ad2be73c7c98294c | [
"MIT"
] | 4 | 2020-03-27T21:50:16.000Z | 2020-06-03T13:00:19.000Z | lib/domain/entities/day.dart | digit-srl/MyDay-Apps | f5e9cd5d3e43304126229c26ad2be73c7c98294c | [
"MIT"
] | 1 | 2020-07-15T22:18:14.000Z | 2020-07-15T22:18:14.000Z | import 'package:diary/application/annotation_notifier.dart';
import 'package:diary/domain/entities/annotation.dart';
import 'package:diary/domain/entities/daily_stats_response.dart';
import 'package:diary/domain/entities/place.dart';
import 'package:diary/utils/generic_utils.dart';
import 'package:hive/hive.dart';
impo... | 28.183206 | 90 | 0.679307 |
437fed0938578140c762b04b5283b18f171075ce | 221 | ts | TypeScript | AmbrosiaTest/JSCodeGen/JS_CodeGen_TestFiles/NegativeTests/TS_StaticMethod2.ts | ronnygunawan/AMBROSIA | 7995ce7060d3783e7b4c6494155208a7e86e98a8 | [
"MIT"
] | 249 | 2018-12-06T20:59:45.000Z | 2019-05-03T14:25:24.000Z | AmbrosiaTest/JSCodeGen/JS_CodeGen_TestFiles/NegativeTests/TS_StaticMethod2.ts | ronnygunawan/AMBROSIA | 7995ce7060d3783e7b4c6494155208a7e86e98a8 | [
"MIT"
] | 32 | 2019-05-19T12:57:32.000Z | 2021-06-09T08:13:09.000Z | AmbrosiaTest/JSCodeGen/JS_CodeGen_TestFiles/NegativeTests/TS_StaticMethod2.ts | ronnygunawan/AMBROSIA | 7995ce7060d3783e7b4c6494155208a7e86e98a8 | [
"MIT"
] | 33 | 2019-05-21T22:30:19.000Z | 2022-02-16T19:51:07.000Z | export class StaticStuff {
/**
* A method must have the 'static' modifier to be published.
* @ambrosia publish=true
*/
hello(name: string): void {
console.log(`Hello ${name}!`);
}
}
| 18.416667 | 64 | 0.561086 |
ea493478f475314988d8829a8cec9374b29bc117 | 429 | sql | SQL | DBMS/M01_MySQL/L06_SubqueriesAndJOIN/Exercises/Solutions/P16_CountriesWithoutAnyMountains.sql | todorkrastev/softuni-software-engineering | cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84 | [
"MIT"
] | null | null | null | DBMS/M01_MySQL/L06_SubqueriesAndJOIN/Exercises/Solutions/P16_CountriesWithoutAnyMountains.sql | todorkrastev/softuni-software-engineering | cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84 | [
"MIT"
] | null | null | null | DBMS/M01_MySQL/L06_SubqueriesAndJOIN/Exercises/Solutions/P16_CountriesWithoutAnyMountains.sql | todorkrastev/softuni-software-engineering | cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84 | [
"MIT"
] | 1 | 2022-02-23T13:03:14.000Z | 2022-02-23T13:03:14.000Z | USE `geography`;
SELECT
COUNT(*) AS `country_count`
FROM
`countries` AS c
WHERE
c.`country_code` NOT IN (SELECT
`country_code`
FROM
`mountains_countries`);
-- Second option
SELECT
COUNT(*) AS `country_count`
FROM
`countries` AS `c`
LEFT JOIN
... | 19.5 | 73 | 0.596737 |
5608abc5f83cd2ba6301142ca47338c752d8ec53 | 310 | swift | Swift | Yameru/ModalViewController.swift | sun-labs/sun-Yameru | 6a962e73af6bf505106be1560cf979e2fc157ee0 | [
"MIT"
] | 3 | 2020-06-08T11:27:35.000Z | 2022-02-23T07:22:26.000Z | Yameru/ModalViewController.swift | sun-labs/yameru-macos | 6a962e73af6bf505106be1560cf979e2fc157ee0 | [
"MIT"
] | 1 | 2020-05-07T09:30:53.000Z | 2020-05-07T09:31:51.000Z | Yameru/ModalViewController.swift | sun-labs/yameru-macos | 6a962e73af6bf505106be1560cf979e2fc157ee0 | [
"MIT"
] | null | null | null | //
// ModalViewController.swift
// Yameru
//
// Created by Victor Ingman on 2020-03-05.
// Copyright © 2020 Sun Labs. All rights reserved.
//
import Foundation
import Cocoa
class ModalViewController : ViewController {
required init?(coder aCoder: NSCoder) {
super.init(coder: aCoder)
}
}
| 18.235294 | 51 | 0.687097 |
1a97568cb802b0e58539125dddab7a776c367a98 | 2,345 | py | Python | authors/apps/articles/renderers.py | andela/ah-backend-odin | 0e9ef1a10c8a3f6736999a5111736f7bd7236689 | [
"BSD-3-Clause"
] | null | null | null | authors/apps/articles/renderers.py | andela/ah-backend-odin | 0e9ef1a10c8a3f6736999a5111736f7bd7236689 | [
"BSD-3-Clause"
] | 43 | 2018-10-25T10:14:52.000Z | 2022-03-11T23:33:46.000Z | authors/apps/articles/renderers.py | andela/ah-backend-odin | 0e9ef1a10c8a3f6736999a5111736f7bd7236689 | [
"BSD-3-Clause"
] | 4 | 2018-10-29T07:04:58.000Z | 2020-04-02T14:15:10.000Z | import json
from rest_framework.renderers import JSONRenderer
from rest_framework.utils.serializer_helpers import ReturnDict, ReturnList
class ArticleJSONRenderer(JSONRenderer):
charset = 'utf-8'
db_object_label = 'object'
def render(self, data, media_type=None, renderer_context=None):
if type... | 24.175258 | 74 | 0.576972 |
f4a57f46d980c2f2743cba47e0768b6601dcc834 | 2,178 | tsx | TypeScript | ui/components/common/Address.tsx | mohanwer/Meets | 960aa4170398ccfd62a8ad0c9ead64ed93b1a4e9 | [
"BSD-3-Clause"
] | null | null | null | ui/components/common/Address.tsx | mohanwer/Meets | 960aa4170398ccfd62a8ad0c9ead64ed93b1a4e9 | [
"BSD-3-Clause"
] | null | null | null | ui/components/common/Address.tsx | mohanwer/Meets | 960aa4170398ccfd62a8ad0c9ead64ed93b1a4e9 | [
"BSD-3-Clause"
] | 1 | 2022-01-20T16:41:00.000Z | 2022-01-20T16:41:00.000Z | import React, {useEffect, useState} from 'react'
interface Props {
addressChange: (place: GoogleAddress) => void,
className?: string
}
export interface GoogleAddress {
address: string,
city: string,
state: string,
postal: string,
country: string,
geoCode: GoogleGeoCode,
}
export interface GoogleGeoCo... | 26.888889 | 97 | 0.675849 |
e707969df18cab20dda429767fa21b2ec25c8594 | 3,420 | php | PHP | app/Http/Controllers/Librarian/BookController.php | indrajithc/library-management-system | e6cd145f1e9d3c5349f794585f0e6d2bdac3e297 | [
"MIT"
] | null | null | null | app/Http/Controllers/Librarian/BookController.php | indrajithc/library-management-system | e6cd145f1e9d3c5349f794585f0e6d2bdac3e297 | [
"MIT"
] | null | null | null | app/Http/Controllers/Librarian/BookController.php | indrajithc/library-management-system | e6cd145f1e9d3c5349f794585f0e6d2bdac3e297 | [
"MIT"
] | null | null | null | <?php
namespace App\Http\Controllers\Librarian;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Hash;
use App\book;
use App\book_category;
use App\shelf;
class BookController extends Controller {
public function index()
{
$booksd = bo... | 22.352941 | 156 | 0.49269 |
e3d2eba2daa3a97800fb7031dcd6756d2c9b0130 | 568 | swift | Swift | PRStrategyPlanner/PRStrategyPlanner/Views/ListView/PRTableViewCell.swift | cuongv/PRStrategyPlanner | ee8059183eddb68c101ddce6f822fc06e084ac9d | [
"MIT"
] | 2 | 2018-11-27T04:10:30.000Z | 2019-04-23T07:25:10.000Z | PRStrategyPlanner/PRStrategyPlanner/Views/ListView/PRTableViewCell.swift | cuongv/PRStrategyPlanner | ee8059183eddb68c101ddce6f822fc06e084ac9d | [
"MIT"
] | null | null | null | PRStrategyPlanner/PRStrategyPlanner/Views/ListView/PRTableViewCell.swift | cuongv/PRStrategyPlanner | ee8059183eddb68c101ddce6f822fc06e084ac9d | [
"MIT"
] | null | null | null | //
// PRTableViewCell.swift
// PRStrategyPlanner
//
// Created by Vuong Cuong on 11/25/18.
// Copyright © 2018 Vuong Cuong. All rights reserved.
//
import UIKit
class PRTableViewCell: UITableViewCell {
@IBOutlet weak var viewColor: UIView!
@IBOutlet weak var lblColorName: UILabel!
func configCell(_ cellVM:... | 25.818182 | 70 | 0.72007 |
28377d83448b8174564bf6001d56fece75a7e73e | 17,275 | sql | SQL | sql/pre_install/tables.sql | tylerfontaine/timescaledb | 2cf3af1eb69ee416fbd233710449e30abc30b633 | [
"Apache-2.0"
] | null | null | null | sql/pre_install/tables.sql | tylerfontaine/timescaledb | 2cf3af1eb69ee416fbd233710449e30abc30b633 | [
"Apache-2.0"
] | null | null | null | sql/pre_install/tables.sql | tylerfontaine/timescaledb | 2cf3af1eb69ee416fbd233710449e30abc30b633 | [
"Apache-2.0"
] | null | null | null | -- This file and its contents are licensed under the Apache License 2.0.
-- Please see the included NOTICE for copyright information and
-- LICENSE-APACHE for a copy of the license.
--NOTICE: UPGRADE-SCRIPT-NEEDED contents in this file are not auto-upgraded.
-- This file contains table definitions for various abstract... | 45.944149 | 187 | 0.812098 |
05886ec2312092a9949931ff0abd1a45e578c008 | 1,356 | rb | Ruby | spec/cipfact_spec.rb | cameronian/cipfact | b0b0ea0efbf6a99d17b8d813ccfa6ab319309eda | [
"MIT"
] | null | null | null | spec/cipfact_spec.rb | cameronian/cipfact | b0b0ea0efbf6a99d17b8d813ccfa6ab319309eda | [
"MIT"
] | null | null | null | spec/cipfact_spec.rb | cameronian/cipfact | b0b0ea0efbf6a99d17b8d813ccfa6ab319309eda | [
"MIT"
] | null | null | null | # frozen_string_literal: true
RSpec.describe Cipfact do
it "has a version number" do
expect(Cipfact::VERSION).not_to be nil
end
#it 'generates keypair' do
#c = Cipfact.instance(:ruby)
#expect(c).not_to be_nil
#keys = []
#keys << c.genkey(:rsa, 2048)
#expect(keys.last).not_to be_nil
... | 21.1875 | 54 | 0.564159 |
da572715dc14f0e067003a6e2dd9566db5547dba | 2,977 | php | PHP | app/Http/Controllers/CategoryController.php | ashangamage93/Barber-Shop-App | e516eee0d66bb9a84e4f036b4663e382d8506b17 | [
"MIT"
] | null | null | null | app/Http/Controllers/CategoryController.php | ashangamage93/Barber-Shop-App | e516eee0d66bb9a84e4f036b4663e382d8506b17 | [
"MIT"
] | null | null | null | app/Http/Controllers/CategoryController.php | ashangamage93/Barber-Shop-App | e516eee0d66bb9a84e4f036b4663e382d8506b17 | [
"MIT"
] | null | null | null | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Validator;
use Illuminate\Database\QueryException;
class CategoryController extends Controller
{
public function __construct()
{
$this->middlew... | 27.82243 | 164 | 0.636211 |
2c950ea8bc485bc27cc267776101ac911fe8a0d2 | 1,630 | cc | C++ | maze/MZCharacter.cc | nandor/MAZE | fd19cff7d82dd9db44925661455dacb3e0a0b38e | [
"BSD-3-Clause"
] | 1 | 2018-03-17T14:23:54.000Z | 2018-03-17T14:23:54.000Z | maze/MZCharacter.cc | nandor/MAZE | fd19cff7d82dd9db44925661455dacb3e0a0b38e | [
"BSD-3-Clause"
] | null | null | null | maze/MZCharacter.cc | nandor/MAZE | fd19cff7d82dd9db44925661455dacb3e0a0b38e | [
"BSD-3-Clause"
] | null | null | null | // This file is part of the MAZE project
// Licensing information can be found in the LICENSE file
// (C) 2012 The MAZE project. All rights reserved.
#include "MZPlatform.h"
using namespace MAZE;
// ------------------------------------------------------------------------------------------------
Character::Character(E... | 25.873016 | 99 | 0.469325 |
b07bd2f5783624439d354063eb75ee232c22f959 | 5,598 | dart | Dart | lib/digital_clock.dart | am1994/digital_clock | 40dcfc58efd454fdcb435de8d6a1aa61bd7c1f81 | [
"Apache-2.0"
] | 1 | 2021-08-02T12:57:21.000Z | 2021-08-02T12:57:21.000Z | lib/digital_clock.dart | am1994/digital_clock | 40dcfc58efd454fdcb435de8d6a1aa61bd7c1f81 | [
"Apache-2.0"
] | null | null | null | lib/digital_clock.dart | am1994/digital_clock | 40dcfc58efd454fdcb435de8d6a1aa61bd7c1f81 | [
"Apache-2.0"
] | null | null | null | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'package:flutter_clock_helper/model.dart';
import 'package:flutter/material.dart';
import 'package:intl/intl.dart';
import 'p... | 25.678899 | 118 | 0.630404 |
21be5e7cb87fe1e121f05d7bb761130f71773996 | 1,510 | js | JavaScript | src/bungie-api/get-manifest.js | acmorris34/savathun_bot | 97c2593acd338ac1fc2d679a360b6cc0b41f5c31 | [
"MIT"
] | null | null | null | src/bungie-api/get-manifest.js | acmorris34/savathun_bot | 97c2593acd338ac1fc2d679a360b6cc0b41f5c31 | [
"MIT"
] | null | null | null | src/bungie-api/get-manifest.js | acmorris34/savathun_bot | 97c2593acd338ac1fc2d679a360b6cc0b41f5c31 | [
"MIT"
] | 1 | 2022-01-10T01:08:18.000Z | 2022-01-10T01:08:18.000Z | import fetch from 'cross-fetch';
import fs from 'fs';
import yauzl from 'yauzl';
const zippedDBFile = 'world-content-manifest.zip';
const getManifest = async () => {
const response = await fetch('https://www.bungie.net/Platform/Destiny2/Manifest/', {
method: 'GET',
headers: {
'X-API-Key': 'e76627c3ed2... | 30.816327 | 97 | 0.61457 |
4572e7338b04a5ee8753fab451880599c0036711 | 1,360 | py | Python | mitxpro_core/middleware.py | umarmughal824/mitxpro-openedx-extensions | 4bab750148033666aef9d34746cfd141d6a78b15 | [
"BSD-3-Clause"
] | null | null | null | mitxpro_core/middleware.py | umarmughal824/mitxpro-openedx-extensions | 4bab750148033666aef9d34746cfd141d6a78b15 | [
"BSD-3-Clause"
] | null | null | null | mitxpro_core/middleware.py | umarmughal824/mitxpro-openedx-extensions | 4bab750148033666aef9d34746cfd141d6a78b15 | [
"BSD-3-Clause"
] | null | null | null | """MIT xPro Open edX middlware"""
import re
from django.conf import settings
from django.shortcuts import redirect
from django.utils.deprecation import MiddlewareMixin
def redirect_to_login():
"""Returns a response redirecting to the login url"""
return redirect(settings.MITXPRO_CORE_REDIRECT_LOGIN_URL)
cl... | 36.756757 | 80 | 0.680882 |
e750e51a3416a3711478eb8101475312a16c7a47 | 925 | php | PHP | resources/views/card_payments/show.blade.php | JrBoc/laravel-paymongo-demo | 4d7439a93ddeea10ccd64c4e00eb34b9cc2ec183 | [
"MIT"
] | 1 | 2021-05-11T06:46:49.000Z | 2021-05-11T06:46:49.000Z | resources/views/card_payments/show.blade.php | JrBoc/laravel-paymongo-demo | 4d7439a93ddeea10ccd64c4e00eb34b9cc2ec183 | [
"MIT"
] | null | null | null | resources/views/card_payments/show.blade.php | JrBoc/laravel-paymongo-demo | 4d7439a93ddeea10ccd64c4e00eb34b9cc2ec183 | [
"MIT"
] | 1 | 2021-03-22T10:35:24.000Z | 2021-03-22T10:35:24.000Z | @extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header d-flex justify-content-between align-items-center">
Create Card Payment Request
... | 29.83871 | 125 | 0.536216 |
a9fec732f40adb89d8ba3ff779d92cf3ee3272fc | 2,029 | php | PHP | App/Classes/Auth.php | DanielLucia/richmond | 3b5bc5d2d125b9a2a0a1b4cf2df2ad238c837e9c | [
"Unlicense"
] | null | null | null | App/Classes/Auth.php | DanielLucia/richmond | 3b5bc5d2d125b9a2a0a1b4cf2df2ad238c837e9c | [
"Unlicense"
] | null | null | null | App/Classes/Auth.php | DanielLucia/richmond | 3b5bc5d2d125b9a2a0a1b4cf2df2ad238c837e9c | [
"Unlicense"
] | null | null | null | <?php
namespace Escuchable\App;
use Hautelook\Phpass\PasswordHash;
use Escuchable\App\Session;
use Escuchable\App\Flash;
use Escuchable\Modelos\Usuarios;
class Auth extends App
{
public static function login()
{
self::$hooks->action->run('login.before');
if (Request::post('email') && Request... | 30.742424 | 95 | 0.507639 |
e2f273db3745edfb59bbcc0a636b585542a69fb6 | 12,832 | py | Python | gan/gan_model.py | TIBHannover/formula_gan | fa01c0101938de254baae8facf479c965ec93ced | [
"MIT"
] | 6 | 2021-06-22T09:53:44.000Z | 2022-01-26T03:56:13.000Z | gan/gan_model.py | ai-motive/formula_gan | fa01c0101938de254baae8facf479c965ec93ced | [
"MIT"
] | 2 | 2021-07-14T16:57:42.000Z | 2021-09-15T03:05:07.000Z | gan/gan_model.py | ai-motive/formula_gan | fa01c0101938de254baae8facf479c965ec93ced | [
"MIT"
] | 2 | 2021-07-27T02:56:23.000Z | 2021-08-24T03:57:29.000Z | import pytorch_lightning as pl
import torch
import torchvision
import numpy as np
from torch import nn
import torch.nn.functional as F
from torch.nn.utils.rnn import pack_padded_sequence
from pytorch_lightning.core.decorators import auto_move_data
from mlcore.config import config_add_options, ConfigEntry, str2bool
f... | 43.945205 | 186 | 0.664043 |
94aaf72bd96dac6aba0cf7e480d494730eadfe41 | 10,702 | sql | SQL | database/latestdb - 26-9-18.sql | wilson1877/FYP | 7eab9bdf1acb9105d10257b15d4c24d9c73a3498 | [
"MIT"
] | 1 | 2018-03-11T07:19:15.000Z | 2018-03-11T07:19:15.000Z | database/latestdb - 26-9-18.sql | wilson1877/FYP | 7eab9bdf1acb9105d10257b15d4c24d9c73a3498 | [
"MIT"
] | null | null | null | database/latestdb - 26-9-18.sql | wilson1877/FYP | 7eab9bdf1acb9105d10257b15d4c24d9c73a3498 | [
"MIT"
] | null | null | null | -- phpMyAdmin SQL Dump
-- version 4.8.3
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Sep 26, 2018 at 02:28 AM
-- Server version: 10.1.35-MariaDB
-- PHP Version: 7.2.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... | 28.312169 | 170 | 0.617642 |
b019c41288f6b196eeeeae25ed45c6a707bb64e6 | 12,071 | py | Python | kubespawner/proxy.py | rccern/kubespawner | 4743a226faae96b4a217d2562f1056d4be08a74d | [
"BSD-3-Clause"
] | null | null | null | kubespawner/proxy.py | rccern/kubespawner | 4743a226faae96b4a217d2562f1056d4be08a74d | [
"BSD-3-Clause"
] | null | null | null | kubespawner/proxy.py | rccern/kubespawner | 4743a226faae96b4a217d2562f1056d4be08a74d | [
"BSD-3-Clause"
] | null | null | null | import asyncio
import functools
import json
import os
import string
import escapism
from jupyterhub.proxy import Proxy
from jupyterhub.utils import exponential_backoff
from kubernetes_asyncio import client
from traitlets import Unicode
from .clients import load_config
from .clients import shared_client
from .objects ... | 35.925595 | 149 | 0.61801 |
eb93cc9b92891c2a75e95f6f83af734f576cb094 | 5,446 | css | CSS | static/answer/css/createQrcode.H5.css | 15711270182/gitqinjia | 98aae8302bda2be30b59c5f8b4421f7d58b4a17a | [
"MIT"
] | 1 | 2021-07-31T01:44:07.000Z | 2021-07-31T01:44:07.000Z | static/answer/css/createQrcode.H5.css | 15711270182/gitqinjia | 98aae8302bda2be30b59c5f8b4421f7d58b4a17a | [
"MIT"
] | null | null | null | static/answer/css/createQrcode.H5.css | 15711270182/gitqinjia | 98aae8302bda2be30b59c5f8b4421f7d58b4a17a | [
"MIT"
] | null | null | null | *{margin: 0;padding: 0;}
body{font-family:'HiraginoGBW31678e854d11d1b4';background-color: #cdcdcd;}
a{color: #333333;text-decoration:none;}
#contenter{max-width: 640px;margin: 0 auto;}
#head{padding: 3rem 2rem 0rem;overflow: auto;position: relative;}
#head img{width: 100%;vertical-align: middle;}
#head #info_btn{width... | 85.09375 | 256 | 0.737422 |
bf0c522fb86525c87e5958d448cf9e471f986c56 | 10,369 | rb | Ruby | spec/unit/lib/services/service_brokers/v2/schema_spec.rb | cfibmers/cloud_controller_ng | b7674e074bbb09402e6d0e4f26e8289243cf1faa | [
"Apache-2.0"
] | null | null | null | spec/unit/lib/services/service_brokers/v2/schema_spec.rb | cfibmers/cloud_controller_ng | b7674e074bbb09402e6d0e4f26e8289243cf1faa | [
"Apache-2.0"
] | null | null | null | spec/unit/lib/services/service_brokers/v2/schema_spec.rb | cfibmers/cloud_controller_ng | b7674e074bbb09402e6d0e4f26e8289243cf1faa | [
"Apache-2.0"
] | null | null | null | require 'spec_helper'
module VCAP::Services::ServiceBrokers::V2
RSpec.describe Schema do
describe 'validating schema' do
subject do
schema = Schema.new(raw_schema)
schema.validate
schema
end
let(:raw_schema) { { '$schema' => 'http://json-schema.org/draft-04/schema#', 't... | 39.276515 | 180 | 0.546726 |
dcf7ca08c2658eae93348fa45a598c337bf75bff | 303,691 | sql | SQL | database/actascabildo.sql | SamuelFlores98/ActasCabildo | 4d50dc213ffa8d58f500915d73d47a3cc2bed47b | [
"MIT"
] | null | null | null | database/actascabildo.sql | SamuelFlores98/ActasCabildo | 4d50dc213ffa8d58f500915d73d47a3cc2bed47b | [
"MIT"
] | null | null | null | database/actascabildo.sql | SamuelFlores98/ActasCabildo | 4d50dc213ffa8d58f500915d73d47a3cc2bed47b | [
"MIT"
] | null | null | null | -- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 04-12-2021 a las 01:46:39
-- Versión del servidor: 10.4.21-MariaDB
-- Versión de PHP: 7.3.31
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... | 31.61472 | 301 | 0.63072 |
6dffe4f389b88f07081dc76a7abb99afeb2bb2fb | 1,150 | ts | TypeScript | src/index.ts | leftstick/express-api-loader | 98f4775401a72781174bfd3a24da00f64e648f3f | [
"MIT"
] | 10 | 2019-06-26T10:33:27.000Z | 2021-04-01T18:25:28.000Z | src/index.ts | leftstick/express-api-loader | 98f4775401a72781174bfd3a24da00f64e648f3f | [
"MIT"
] | 8 | 2019-11-09T09:52:48.000Z | 2022-02-26T20:35:22.000Z | src/index.ts | leftstick/express-api-loader | 98f4775401a72781174bfd3a24da00f64e648f3f | [
"MIT"
] | 2 | 2019-11-25T10:10:01.000Z | 2020-01-06T02:52:32.000Z | import express from 'express'
import { Service, Container, Token, Inject } from 'typedi'
import { PluginRunner } from '@/src/core/plugin'
import { IPlugin, IPluginFactory, PluginOrderEnum } from '@/src/core/plugin/pluginType'
import {
RestController,
GetMapping,
PostMapping,
DeleteMapping,
PutMapping,
Patch... | 22.54902 | 87 | 0.749565 |
525a46c3d5ef5e8a713f49322432cccab50ec78e | 1,408 | lua | Lua | NEAT/SuperMarioBros/server.lua | ShangtongZhang/DataMining | f72a17694ca971dffc80ee6251ab47327c87492c | [
"Apache-2.0"
] | 1 | 2018-02-22T15:40:22.000Z | 2018-02-22T15:40:22.000Z | NEAT/SuperMarioBros/server.lua | ShangtongZhang/DataMining | f72a17694ca971dffc80ee6251ab47327c87492c | [
"Apache-2.0"
] | null | null | null | NEAT/SuperMarioBros/server.lua | ShangtongZhang/DataMining | f72a17694ca971dffc80ee6251ab47327c87492c | [
"Apache-2.0"
] | 3 | 2017-03-31T03:38:36.000Z | 2019-04-27T15:58:26.000Z | --[[
@file server.lua
@author Marcus Edel
Definition of server/client routines.
--]]
local socket = require("socket");
local S = {};
-- Server socket.
tcp_server = 0
-- Server socket error.
err = 0
-- Connected client socket.
client = 0
-- Function to create a socket using the given host and port.
-- @param ... | 18.773333 | 84 | 0.68679 |
bb18414959994c6ec9a94cedb29c20cc0f05760c | 1,543 | cs | C# | Source/Common.MongoDb20/Factory.cs | cdzhoubin/Infrastructure.Net.Core | ddc506f266792d2c4c74a0850fd1ad2855beec91 | [
"Apache-2.0"
] | 1 | 2019-08-29T07:33:49.000Z | 2019-08-29T07:33:49.000Z | Source/Common.MongoDb20/Factory.cs | cdzhoubin/Infrastructure.Net.Core | ddc506f266792d2c4c74a0850fd1ad2855beec91 | [
"Apache-2.0"
] | 2 | 2019-12-27T02:07:38.000Z | 2019-12-27T02:18:47.000Z | Source/Common.MongoDb20/Factory.cs | cdzhoubin/Infrastructure.Net.Core | ddc506f266792d2c4c74a0850fd1ad2855beec91 | [
"Apache-2.0"
] | 1 | 2019-02-14T14:50:29.000Z | 2019-02-14T14:50:29.000Z | using Zhoubin.Infrastructure.Common.Extent;
namespace Zhoubin.Infrastructure.Common.MongoDb
{
/// <summary>
/// 工厂类
/// </summary>
public static class Factory
{
/// <summary>
/// 通过反射生成文件存储对象
/// </summary>
/// <param name="name">Config节点下面的Name节点</param>
//... | 27.553571 | 69 | 0.557356 |
90f37d84ec3d16fec510b1cfbc6f28ca4e8631af | 409 | sql | SQL | postgresql/plsql/function_and_sql.sql | TTGS/IT_script | 25f39fe3199a60e9ad2a0098c8a24d02fa902f1e | [
"BSD-3-Clause"
] | null | null | null | postgresql/plsql/function_and_sql.sql | TTGS/IT_script | 25f39fe3199a60e9ad2a0098c8a24d02fa902f1e | [
"BSD-3-Clause"
] | null | null | null | postgresql/plsql/function_and_sql.sql | TTGS/IT_script | 25f39fe3199a60e9ad2a0098c8a24d02fa902f1e | [
"BSD-3-Clause"
] | null | null | null | 有时候我们发现我们将一些内容封装到函数中会比封装到哪里都好使。
例如我们可以将一个sql直接封装到函数里,例如
CREATE OR REPLACE FUNCTION gen_ser()
RETURNS SETOF int
AS
$$
SELECT generate_series(1,3) id ;
$$
LANGUAGE 'sql' STABLE;
select gen_ser();
gen_ser
--------
1
2
3
我们也可以将变化的内容写进去。
CREATE OR REPLACE FUNCTION pg_oid(o oid )
RETURNS SETOF... | 14.607143 | 46 | 0.684597 |
9573844c4c442abde9aa8ee9197bdd34ba6924f9 | 160 | rb | Ruby | app/models/reservation.rb | condomanagement/condo-api | 23a9360bcb2b25c174cc63a07556503e096f8ff7 | [
"MIT"
] | null | null | null | app/models/reservation.rb | condomanagement/condo-api | 23a9360bcb2b25c174cc63a07556503e096f8ff7 | [
"MIT"
] | 56 | 2020-08-06T03:02:14.000Z | 2021-09-22T01:54:30.000Z | app/models/reservation.rb | condomanagement/condo-api | 23a9360bcb2b25c174cc63a07556503e096f8ff7 | [
"MIT"
] | null | null | null | # frozen_string_literal: true
class Reservation < ApplicationRecord
default_scope { order(start_time: :desc) }
belongs_to :user
belongs_to :resource
end
| 20 | 44 | 0.78125 |
a136744c07c45252a315d4ea4519ec860175501b | 796 | ts | TypeScript | projects/demo/src/modules/components/editor-new/examples/4/image-preview/image-preview.module.ts | limitofzero/taiga-ui | 25f14d7447c213cbde35b846bb7633b51a332fe8 | [
"Apache-2.0"
] | null | null | null | projects/demo/src/modules/components/editor-new/examples/4/image-preview/image-preview.module.ts | limitofzero/taiga-ui | 25f14d7447c213cbde35b846bb7633b51a332fe8 | [
"Apache-2.0"
] | null | null | null | projects/demo/src/modules/components/editor-new/examples/4/image-preview/image-preview.module.ts | limitofzero/taiga-ui | 25f14d7447c213cbde35b846bb7633b51a332fe8 | [
"Apache-2.0"
] | null | null | null | import {CommonModule} from '@angular/common';
import {NgModule} from '@angular/core';
import {TuiEditorImagePreviewModule} from '@taiga-ui/addon-editor';
import {TuiPreviewModule} from '@taiga-ui/addon-preview';
import {TuiButtonModule} from '@taiga-ui/core';
import {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';... | 30.615385 | 71 | 0.723618 |
8e752900c4abbd83537ddee64b6e27f2bcc270b4 | 1,622 | rb | Ruby | lib/pattern_deployer/pattern/connection.rb | ceraslabs/pattern-deployer | 9e97f8f1d0ef9b92c54f79b144b575603b83a12f | [
"Apache-2.0"
] | null | null | null | lib/pattern_deployer/pattern/connection.rb | ceraslabs/pattern-deployer | 9e97f8f1d0ef9b92c54f79b144b575603b83a12f | [
"Apache-2.0"
] | null | null | null | lib/pattern_deployer/pattern/connection.rb | ceraslabs/pattern-deployer | 9e97f8f1d0ef9b92c54f79b144b575603b83a12f | [
"Apache-2.0"
] | null | null | null | #
# Copyright 2013 Marin Litoiu, Hongbin Lu, Mark Shtern, Bradlley Simmons, Mike
# Smit
#
# 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
#
# Un... | 30.037037 | 78 | 0.65783 |
d68cbcc0734de49496d4a78fb7943aacff33fbc3 | 522 | cs | C# | Assets/Scripts/VitrivrVR/Behavior/PulseController.cs | Philipp1202/vitrivr-vr | 1b16f17711a4dce6d387ad15a55498ed654c69ad | [
"MIT"
] | 3 | 2022-02-07T10:04:34.000Z | 2022-02-17T08:16:53.000Z | Assets/Scripts/VitrivrVR/Behavior/PulseController.cs | Philipp1202/vitrivr-vr | 1b16f17711a4dce6d387ad15a55498ed654c69ad | [
"MIT"
] | 3 | 2022-02-07T11:58:58.000Z | 2022-02-07T15:43:28.000Z | Assets/Scripts/VitrivrVR/Behavior/PulseController.cs | Philipp1202/vitrivr-vr | 1b16f17711a4dce6d387ad15a55498ed654c69ad | [
"MIT"
] | 1 | 2022-03-02T13:19:28.000Z | 2022-03-02T13:19:28.000Z | using UnityEngine;
namespace VitrivrVR.Behavior
{
public class PulseController : MonoBehaviour
{
public float pulseCycleTime = 1;
public float pulseStrength = 0.25f;
private float _pulseTime;
private void Update()
{
_pulseTime += Time.deltaTime;
_pulseTime %= pulseCycleTime;
... | 22.695652 | 94 | 0.659004 |
7cb043c378865560a4ad38cd1c4d692baedc495d | 3,959 | js | JavaScript | app/steps/respondent/correspondence/send-to-solicitor/index.test.js | uk-gov-mirror/hmcts.div-petitioner-frontend | 07878b990b2363f21a1719db0a0dae3c30cb232b | [
"MIT"
] | 3 | 2018-06-13T10:34:54.000Z | 2021-12-10T16:19:28.000Z | app/steps/respondent/correspondence/send-to-solicitor/index.test.js | uk-gov-mirror/hmcts.div-petitioner-frontend | 07878b990b2363f21a1719db0a0dae3c30cb232b | [
"MIT"
] | 457 | 2018-03-08T14:52:20.000Z | 2022-03-08T15:36:22.000Z | app/steps/respondent/correspondence/send-to-solicitor/index.test.js | uk-gov-mirror/hmcts.div-petitioner-frontend | 07878b990b2363f21a1719db0a0dae3c30cb232b | [
"MIT"
] | 12 | 2018-03-07T10:15:56.000Z | 2021-04-10T22:33:41.000Z | const request = require('supertest');
const {
testContent, testCYATemplate, testExistenceCYA,
testErrors, testRedirect
} = require('test/util/assertions');
const { withSession } = require('test/util/setup');
const server = require('app');
const idamMock = require('test/mocks/idam');
const { removeStaleData } = requ... | 29.766917 | 117 | 0.659763 |
c545f469ac35b5a5019503eee1a066bc794f3616 | 76 | css | CSS | cms/wp-content/themes/sindikat/style.css | daliborgogic/sindikat | 259821efcb1c12339a0db0e10979405499c2680f | [
"MIT"
] | null | null | null | cms/wp-content/themes/sindikat/style.css | daliborgogic/sindikat | 259821efcb1c12339a0db0e10979405499c2680f | [
"MIT"
] | null | null | null | cms/wp-content/themes/sindikat/style.css | daliborgogic/sindikat | 259821efcb1c12339a0db0e10979405499c2680f | [
"MIT"
] | null | null | null | /*
Theme Name: Sindikat
Author: Dalibor Gogic <mail@daliborgogic.com>
*/ | 19 | 47 | 0.710526 |
030cab2445cdd69010e811163c2eb01c9c3eb963 | 12,814 | kt | Kotlin | dashkit/src/main/kotlin/io/horizontalsystems/dashkit/DashKit.kt | hejiamian/bitcoin-kit-android | ca2a14635399735e840e509f09d7d15d5b91e8c9 | [
"MIT"
] | null | null | null | dashkit/src/main/kotlin/io/horizontalsystems/dashkit/DashKit.kt | hejiamian/bitcoin-kit-android | ca2a14635399735e840e509f09d7d15d5b91e8c9 | [
"MIT"
] | null | null | null | dashkit/src/main/kotlin/io/horizontalsystems/dashkit/DashKit.kt | hejiamian/bitcoin-kit-android | ca2a14635399735e840e509f09d7d15d5b91e8c9 | [
"MIT"
] | null | null | null | package io.horizontalsystems.dashkit
import android.content.Context
import android.database.sqlite.SQLiteDatabase
import io.horizontalsystems.bitcoincore.AbstractKit
import io.horizontalsystems.bitcoincore.BitcoinCore
import io.horizontalsystems.bitcoincore.BitcoinCore.SyncMode
import io.horizontalsystems.bitcoincore.... | 47.459259 | 187 | 0.747698 |
25a567e871ce864d601d046a06478e8d5e68b309 | 1,413 | js | JavaScript | tests/middlewares.js | kkarifan/create-redux-store | f732fcdacfd1a33e99c9e38b8ee527541cd39f83 | [
"MIT"
] | null | null | null | tests/middlewares.js | kkarifan/create-redux-store | f732fcdacfd1a33e99c9e38b8ee527541cd39f83 | [
"MIT"
] | null | null | null | tests/middlewares.js | kkarifan/create-redux-store | f732fcdacfd1a33e99c9e38b8ee527541cd39f83 | [
"MIT"
] | null | null | null | const createStore = require('../')
const log = data => console.dir(data, {colors:true})
const defState = {
count : 0
}
const reduser = (state=defState, action) => {
log('reduser')
log(action);
return state;
}
const middleware = store => next => action => {
console.log('once Fn middleware')
if (action.type == 't... | 17.231707 | 56 | 0.596603 |
e54b9e381cbdcebd8fc1074a39864886be4ec8cf | 6,332 | dart | Dart | lib/main.dart | BossLevan/calculator_app | f0cea6655fc240035dff75fe745d7302b9e3911d | [
"MIT"
] | null | null | null | lib/main.dart | BossLevan/calculator_app | f0cea6655fc240035dff75fe745d7302b9e3911d | [
"MIT"
] | null | null | null | lib/main.dart | BossLevan/calculator_app | f0cea6655fc240035dff75fe745d7302b9e3911d | [
"MIT"
] | null | null | null |
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
String output = '';
String output1 = '';
double num1;
dou... | 32.306122 | 133 | 0.402874 |
915d17a8947a9ffb2e2b91974330b2f0c71bfb98 | 3,576 | lua | Lua | src/lua/lttext.lua | hemantasapkota/lotech | 46598a7c37dfd7cd424e2426564cc32533e1cfd6 | [
"curl"
] | null | null | null | src/lua/lttext.lua | hemantasapkota/lotech | 46598a7c37dfd7cd424e2426564cc32533e1cfd6 | [
"curl"
] | null | null | null | src/lua/lttext.lua | hemantasapkota/lotech | 46598a7c37dfd7cd424e2426564cc32533e1cfd6 | [
"curl"
] | null | null | null | -- Copyright (C) 2010-2013 Ian MacLarty. See Copyright Notice in ../lt.h
function lt.Text(str, font, halign, valign)
halign = halign or "left"
valign = valign or "center"
local em = font.m or font.M or font["0"] or {width = 0.1, height = 0.1}
local space = em.width * (font.space or 1.0)
local hmove... | 30.564103 | 91 | 0.52321 |
7f24ea2c255e99518ca7accb504fd09693f453ba | 6,807 | cs | C# | Src/Essentions/FunctionExtensions.cs | EnoughTea/essentions | cb4666e16246e162e921321edd58823afcd15d49 | [
"MIT"
] | null | null | null | Src/Essentions/FunctionExtensions.cs | EnoughTea/essentions | cb4666e16246e162e921321edd58823afcd15d49 | [
"MIT"
] | null | null | null | Src/Essentions/FunctionExtensions.cs | EnoughTea/essentions | cb4666e16246e162e921321edd58823afcd15d49 | [
"MIT"
] | null | null | null | using System;
using System.Collections.Generic;
using JetBrains.Annotations;
namespace Essentions
{
/// <summary> Extension methods for functions. </summary>
public static class FunctionExtensions
{
/// <summary>
/// Transforms a function that takes n arguments into a function that tak... | 45.993243 | 141 | 0.591156 |
e5999941eda8f178460dba6aec390c889c062320 | 6,110 | sql | SQL | database_file/einzig.sql | prajapatiarun67/test | 2a169e01c7e8dee6de2b3e077961f16081d5efa5 | [
"MIT"
] | null | null | null | database_file/einzig.sql | prajapatiarun67/test | 2a169e01c7e8dee6de2b3e077961f16081d5efa5 | [
"MIT"
] | null | null | null | database_file/einzig.sql | prajapatiarun67/test | 2a169e01c7e8dee6de2b3e077961f16081d5efa5 | [
"MIT"
] | null | null | null | -- --------------------------------------------------------
-- Host: 127.0.0.1
-- Server version: 10.5.8-MariaDB-1:10.5.8+maria~focal - mariadb.org binary distribution
-- Server OS: debian-linux-gnu
-- HeidiSQL Version: 11.1.0.6116
-- ----------------... | 47.734375 | 102 | 0.746318 |
c37b28120c8843c989fd66a80b4bccfb37609d88 | 27,667 | cs | C# | ghostscript/Ghostscript.NET/Viewer/GhostscriptViewer.cs | teo-mateo/bbuc | 818d9eb7a1810d7d2a4c24a2a28d99b29fc3196c | [
"Apache-2.0"
] | null | null | null | ghostscript/Ghostscript.NET/Viewer/GhostscriptViewer.cs | teo-mateo/bbuc | 818d9eb7a1810d7d2a4c24a2a28d99b29fc3196c | [
"Apache-2.0"
] | null | null | null | ghostscript/Ghostscript.NET/Viewer/GhostscriptViewer.cs | teo-mateo/bbuc | 818d9eb7a1810d7d2a4c24a2a28d99b29fc3196c | [
"Apache-2.0"
] | null | null | null | //
// GhostscriptViewer.cs
// This file is part of Ghostscript.NET library
//
// Author: Josip Habjan (habjan@gmail.com, http://www.linkedin.com/in/habjan)
// Copyright (c) 2013 - 2016 by Josip Habjan. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this s... | 24.925225 | 157 | 0.501066 |
dc6bf75976751024720b3fc7746472295326bdc9 | 3,828 | lua | Lua | vendor/RainbowRepacker/tool/engine_android(5)/assets/scripts/games/common2/match/animation/animMatchFusai.lua | huangtao/cloud-test | 8087b1337d47daab9eb39335ca6e286df0e4b4dc | [
"Apache-2.0"
] | 1 | 2018-09-12T15:43:32.000Z | 2018-09-12T15:43:32.000Z | vendor/RainbowRepacker/tool/engine_android(5)/assets/scripts/games/common2/match/animation/animMatchFusai.lua | huangtao/cloud-test | 8087b1337d47daab9eb39335ca6e286df0e4b4dc | [
"Apache-2.0"
] | null | null | null | vendor/RainbowRepacker/tool/engine_android(5)/assets/scripts/games/common2/match/animation/animMatchFusai.lua | huangtao/cloud-test | 8087b1337d47daab9eb39335ca6e286df0e4b4dc | [
"Apache-2.0"
] | 3 | 2018-09-12T15:43:33.000Z | 2019-07-10T09:50:15.000Z |
local AnimMatchFusai = class(AnimBase);
AnimMatchFusai.filesCount = 11;
AnimMatchFusai.files = {};
for i = 1, AnimMatchFusai.filesCount do
AnimMatchFusai.files[i] = string.format("games/common/match/anim/fusai/fusai_%d.png", i);
end
AnimMatchFusai.load = function()
if not AnimMatchFusai.root then
Anim... | 30.870968 | 127 | 0.771421 |
afedcadb49ea41d5c13a82e8c5e90b2add6d0187 | 4,132 | py | Python | mundiapi/models/get_period_response.py | hugocpolos/MundiAPI-PYTHON | 164545cc58bf18c946d5456e9ba4d55a378a339a | [
"MIT"
] | 10 | 2017-08-30T15:53:00.000Z | 2021-02-11T18:06:56.000Z | mundiapi/models/get_period_response.py | hugocpolos/MundiAPI-PYTHON | 164545cc58bf18c946d5456e9ba4d55a378a339a | [
"MIT"
] | 4 | 2018-05-05T15:15:09.000Z | 2021-12-22T00:52:41.000Z | mundiapi/models/get_period_response.py | hugocpolos/MundiAPI-PYTHON | 164545cc58bf18c946d5456e9ba4d55a378a339a | [
"MIT"
] | 7 | 2017-04-27T13:46:52.000Z | 2021-04-14T13:44:23.000Z | # -*- coding: utf-8 -*-
"""
mundiapi
This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
"""
from mundiapi.api_helper import APIHelper
import mundiapi.models.get_subscription_response
class GetPeriodResponse(object):
"""Implementation of the 'GetPeriodResponse' ... | 36.245614 | 181 | 0.595837 |
7520a6815804310e45a9e79834cedc5a29cee9f4 | 1,265 | css | CSS | src/components/PullToRefresh/PullToRefresh.css | johanholmerin/tasks | d0de6ad508887ac5fc330f20a9dd53adc607a221 | [
"MIT"
] | 1 | 2020-03-04T22:20:47.000Z | 2020-03-04T22:20:47.000Z | src/components/PullToRefresh/PullToRefresh.css | johanholmerin/tasks | d0de6ad508887ac5fc330f20a9dd53adc607a221 | [
"MIT"
] | null | null | null | src/components/PullToRefresh/PullToRefresh.css | johanholmerin/tasks | d0de6ad508887ac5fc330f20a9dd53adc607a221 | [
"MIT"
] | null | null | null | .wrapper {
position: fixed;
top: 10px;
left: 50%;
margin-left: -32px;
height: 64px;
width: 64px;
display: none;
}
.show {
display: flex;
align-items: center;
justify-content: center;
}
.svg {
width: 24px;
height: 24px;
transform: rotate(-90deg);
opacity: 0;
color: #202123;
will-change:... | 17.094595 | 42 | 0.664032 |
dfbb68461376daa385b2fb3c6a1b92c2b3e55117 | 1,040 | cs | C# | NetCoreMicro.Common/Exceptions/NetCoreMicroException.cs | lucasven/NetCoreMicro | a1cc1cbaaddd37fe7ad4384d375e4518287ef17e | [
"MIT"
] | null | null | null | NetCoreMicro.Common/Exceptions/NetCoreMicroException.cs | lucasven/NetCoreMicro | a1cc1cbaaddd37fe7ad4384d375e4518287ef17e | [
"MIT"
] | null | null | null | NetCoreMicro.Common/Exceptions/NetCoreMicroException.cs | lucasven/NetCoreMicro | a1cc1cbaaddd37fe7ad4384d375e4518287ef17e | [
"MIT"
] | null | null | null | using System;
using System.Collections.Generic;
using System.Text;
namespace NetCoreMicro.Common.Exceptions
{
public class NetCoreMicroException : Exception
{
public string Code { get; set; }
public NetCoreMicroException()
{
}
public NetCoreMicroException(string code... | 23.636364 | 121 | 0.622115 |
71dedd8d9fc20856a86c622976f496c905a25640 | 1,641 | swift | Swift | NyTimes/NyTimes/Models/NYApiResponse.swift | HabibAli/NyTimes | 5e9d1fc9b799988d361b7a022fe8eb799d9f10c9 | [
"MIT"
] | null | null | null | NyTimes/NyTimes/Models/NYApiResponse.swift | HabibAli/NyTimes | 5e9d1fc9b799988d361b7a022fe8eb799d9f10c9 | [
"MIT"
] | null | null | null | NyTimes/NyTimes/Models/NYApiResponse.swift | HabibAli/NyTimes | 5e9d1fc9b799988d361b7a022fe8eb799d9f10c9 | [
"MIT"
] | null | null | null | //
// NYApiResponse.swift
// Nytimes
//
// Created by Habib Ali on 26/06/2018.
// Copyright © 2018 Folio3. All rights reserved.
//
import UIKit
import Foundation
struct NYApiResponse<T:Decodable> :Decodable {
var status : String?
var copyright : String?
var num_results :Int?
var results : T?
}
st... | 20.5125 | 61 | 0.608775 |
2396bb67524e2a714b04d65518294f4930e50598 | 1,872 | js | JavaScript | selenium/firefox.js | mgadbois124/bots-zoo | 33d0f5b73804aed4b4d936267c54af42b710ecdf | [
"MIT"
] | 61 | 2021-01-16T16:15:16.000Z | 2022-03-22T01:59:45.000Z | selenium/firefox.js | mgadbois124/bots-zoo | 33d0f5b73804aed4b4d936267c54af42b710ecdf | [
"MIT"
] | null | null | null | selenium/firefox.js | mgadbois124/bots-zoo | 33d0f5b73804aed4b4d936267c54af42b710ecdf | [
"MIT"
] | 13 | 2021-02-06T04:48:43.000Z | 2022-03-18T06:52:46.000Z | const webdriver = require('selenium-webdriver');
const firefox = require('selenium-webdriver/firefox');
// To run this program, you need to download geckodriver and place it into the same directory as this program
// https://github.com/mozilla/geckodriver/releases/
(async() => {
let options = new firefox.Options()... | 38.204082 | 109 | 0.67094 |
4958a0389d1c0e680445423aaf3c75921c7ca2d8 | 4,680 | py | Python | learn2learn/vision/datasets/tiered_imagenet.py | Brikwerk/learn2learn | 7997c13c26ec627d13ce77ba98427260df78ada8 | [
"MIT"
] | 1,774 | 2019-09-05T20:41:16.000Z | 2022-03-30T09:49:02.000Z | learn2learn/vision/datasets/tiered_imagenet.py | Kostis-S-Z/learn2learn | c0b7c088f15986880b136ec27059644ac513db60 | [
"MIT"
] | 196 | 2019-09-05T08:11:31.000Z | 2022-03-31T12:08:25.000Z | learn2learn/vision/datasets/tiered_imagenet.py | Kostis-S-Z/learn2learn | c0b7c088f15986880b136ec27059644ac513db60 | [
"MIT"
] | 266 | 2019-09-13T10:17:54.000Z | 2022-03-28T07:17:21.000Z | #!/usr/bin/env python3
import os
import io
import pickle
import tarfile
import numpy as np
import torch
import torch.utils.data as data
from PIL import Image
from learn2learn.data.utils import download_file_from_google_drive
class TieredImagenet(data.Dataset):
"""
[[Source]](https://github.com/learnables/... | 41.052632 | 156 | 0.670299 |
daa3c0251cb8b7b3619c59badc83220fa6eb1f2d | 3,010 | php | PHP | setup_chk.php | wahu33/ideenmelder | 0adebe41a18a498c98953733a0c4103c20f93fd5 | [
"MIT"
] | null | null | null | setup_chk.php | wahu33/ideenmelder | 0adebe41a18a498c98953733a0c4103c20f93fd5 | [
"MIT"
] | null | null | null | setup_chk.php | wahu33/ideenmelder | 0adebe41a18a498c98953733a0c4103c20f93fd5 | [
"MIT"
] | null | null | null | <?php
/** *****************************
* Ideenmelder
* Autor: Walter Hupfeld, Hamm
* E-Mail: info@hupfeld-software.de
* Version: 1.0
* Datum: 18.05.2021
******************************** */
$dbFilename = "db/locations.db";
$db = new SQLite3($dbFilename);
$boolActive = (isset($_POST['active'])) ? "1" : "0";... | 40.133333 | 87 | 0.659468 |
cd691adce2920d81534adc4652733099e2e05aa0 | 159 | cs | C# | src/ApiRestful.Business/Models/FeedbackType.cs | includeVitor/dotnet-core-3.1-api-rest | 9dabca077ac08e0adc862c481cd94a228089bb4f | [
"MIT"
] | null | null | null | src/ApiRestful.Business/Models/FeedbackType.cs | includeVitor/dotnet-core-3.1-api-rest | 9dabca077ac08e0adc862c481cd94a228089bb4f | [
"MIT"
] | null | null | null | src/ApiRestful.Business/Models/FeedbackType.cs | includeVitor/dotnet-core-3.1-api-rest | 9dabca077ac08e0adc862c481cd94a228089bb4f | [
"MIT"
] | 1 | 2021-04-21T17:19:24.000Z | 2021-04-21T17:19:24.000Z | namespace ApiRestful.Business.Models
{
public enum FeedbackType
{
Suggestion = 1,
Question = 2,
Problem = 3,
}
}
| 14.454545 | 37 | 0.522013 |
da42192f9206fd63fe45e46d67a25d020475e99b | 3,741 | php | PHP | app/Http/Controllers/BriefController.php | kairos0ne/base | 5e4a1ac0ebdcbc05b4049a31640f38d4c48da234 | [
"MIT"
] | null | null | null | app/Http/Controllers/BriefController.php | kairos0ne/base | 5e4a1ac0ebdcbc05b4049a31640f38d4c48da234 | [
"MIT"
] | null | null | null | app/Http/Controllers/BriefController.php | kairos0ne/base | 5e4a1ac0ebdcbc05b4049a31640f38d4c48da234 | [
"MIT"
] | null | null | null | <?php
namespace App\Http\Controllers;
use App\Http\Requests;
use App\Brief;
use Illuminate\Http\Request;
use Auth;
use App\Project;
use App\Client;
class BriefController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
... | 28.340909 | 118 | 0.523122 |
6b7836e157cbc2fbf022fd1be2d5b3ee4865f597 | 698 | js | JavaScript | resources/js/Request/CommentVoteRequest.js | winoutt/winoutt | 063572cf225da1775e4d6f2de33328872af63d95 | [
"MIT"
] | null | null | null | resources/js/Request/CommentVoteRequest.js | winoutt/winoutt | 063572cf225da1775e4d6f2de33328872af63d95 | [
"MIT"
] | null | null | null | resources/js/Request/CommentVoteRequest.js | winoutt/winoutt | 063572cf225da1775e4d6f2de33328872af63d95 | [
"MIT"
] | null | null | null | import { isEmpty } from 'lodash'
import CommentVoteHttp from '../Http/CommentVoteHttp'
import PostState from '../State/PostState'
import AuthToken from '../services/AuthToken'
import IntendedRedirect from '../services/IntendedRedirect'
export default {
async create (comment) {
if (!AuthToken.has()) return Intend... | 30.347826 | 71 | 0.740688 |
fa37f5769b1295345adbb4603fd01d164fb2f3b6 | 141 | sql | SQL | src/main/resources/schema.sql | dlarkinc/oosspvaadin | a7bb18b8afc6cc5d2937844ce6ffdb55ee72193d | [
"MIT"
] | null | null | null | src/main/resources/schema.sql | dlarkinc/oosspvaadin | a7bb18b8afc6cc5d2937844ce6ffdb55ee72193d | [
"MIT"
] | null | null | null | src/main/resources/schema.sql | dlarkinc/oosspvaadin | a7bb18b8afc6cc5d2937844ce6ffdb55ee72193d | [
"MIT"
] | null | null | null | CREATE TABLE books (
isbn VARCHAR(13) NOT NULL,
title VARCHAR(255) NOT NULL,
author VARCHAR(255) NOT NULL,
PRIMARY KEY(isbn)
);
| 20.142857 | 32 | 0.673759 |
2ffde592ff53d8bee57d45572316b20d33df1388 | 1,809 | py | Python | EfficientDet/helper_function.py | shenghh2015/cell_detection | 872ea94bf00714b36e617b214e8b13596b2fe61a | [
"Apache-2.0"
] | 1 | 2021-02-20T05:44:27.000Z | 2021-02-20T05:44:27.000Z | EfficientDet/helper_function.py | shenghh2015/cell_detection | 872ea94bf00714b36e617b214e8b13596b2fe61a | [
"Apache-2.0"
] | null | null | null | EfficientDet/helper_function.py | shenghh2015/cell_detection | 872ea94bf00714b36e617b214e8b13596b2fe61a | [
"Apache-2.0"
] | null | null | null | import cv2
def draw_pr_boxes(image, boxes, scores, labels, colors, classes):
for b, l, s in zip(boxes, labels, scores):
class_id = int(l)
class_name = classes[class_id]
xmin, ymin, xmax, ymax = list(map(int, b))
score = '{:.2f}'.format(s)
color = colors[class_id]
... | 50.25 | 119 | 0.594251 |
14fa6346b43df48566142ebd057dc14316532dad | 1,211 | tsx | TypeScript | src/layout-parts/Nav/SideNav/EditAccountSettings.tsx | bcc-code/bcc-activechristianity | f15e6eb3f9b7c3ee8bd668791bf7f0114565af90 | [
"MIT"
] | null | null | null | src/layout-parts/Nav/SideNav/EditAccountSettings.tsx | bcc-code/bcc-activechristianity | f15e6eb3f9b7c3ee8bd668791bf7f0114565af90 | [
"MIT"
] | 8 | 2022-02-15T00:58:32.000Z | 2022-03-23T06:44:34.000Z | src/layout-parts/Nav/SideNav/EditAccountSettings.tsx | bcc-code/bcc-AC-bitbucket-clone | f15e6eb3f9b7c3ee8bd668791bf7f0114565af90 | [
"MIT"
] | null | null | null | import { SideNavItem } from '@/components/Button';
import ac_strings from '@/strings/ac_strings.js';
import loadable from '@loadable/component';
import * as React from 'react';
import ChangePassword from './ChangePassword';
import SideNavWrapper from './SideNavWrapper';
const SideMobile: React.FC<{
isSideNavOpen: bo... | 27.522727 | 77 | 0.696119 |
54c967a4e841e5790f1f61373d90344209ed60b7 | 125 | jbuilder | Ruby | app/views/stages/index.json.jbuilder | Serva95/PassageOnRail | ca7eb67881b75ee0da60ec0795be8fafcd47f74a | [
"Apache-2.0"
] | 4 | 2020-09-28T12:33:48.000Z | 2020-11-04T00:24:13.000Z | app/views/stages/index.json.jbuilder | Serva95/PassageOnRail | ca7eb67881b75ee0da60ec0795be8fafcd47f74a | [
"Apache-2.0"
] | null | null | null | app/views/stages/index.json.jbuilder | Serva95/PassageOnRail | ca7eb67881b75ee0da60ec0795be8fafcd47f74a | [
"Apache-2.0"
] | null | null | null | json.array! @multi_trip_associations, partial: "multi_trip_associations/multi_trip_association", as: :multi_trip_association
| 62.5 | 124 | 0.864 |
e04cfc6de2a9dcf62d1a3ed4324d308d7a3a5f63 | 3,820 | h | C | widgets/settingswidget.h | JLIT0/GBox | f5df851534bfb5cbdf0ae84d25e58a6cfdc69241 | [
"Apache-2.0"
] | null | null | null | widgets/settingswidget.h | JLIT0/GBox | f5df851534bfb5cbdf0ae84d25e58a6cfdc69241 | [
"Apache-2.0"
] | null | null | null | widgets/settingswidget.h | JLIT0/GBox | f5df851534bfb5cbdf0ae84d25e58a6cfdc69241 | [
"Apache-2.0"
] | null | null | null | /***********************************************************************
*Copyright 2010-20XX by 7ymekk
*
* 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.apach... | 25.986395 | 77 | 0.675654 |
18af445490578cace564a85b5b42108e80c57c0f | 204 | tsx | TypeScript | frontend/src/components/molecules/Menu/Menu.stories.tsx | boostcamp-2020/Project18-C-Bootion | 054deb0fa44d96d5ef84a069e11ca9f506c7edb4 | [
"MIT"
] | 50 | 2020-11-16T10:06:57.000Z | 2022-02-26T16:16:02.000Z | frontend/src/components/molecules/Menu/Menu.stories.tsx | boostcamp-2020/Project18-C-Bootion | 054deb0fa44d96d5ef84a069e11ca9f506c7edb4 | [
"MIT"
] | 71 | 2020-11-17T01:10:39.000Z | 2021-03-08T14:52:18.000Z | frontend/src/components/molecules/Menu/Menu.stories.tsx | boostcamp-2020/Project18-C-Bootion | 054deb0fa44d96d5ef84a069e11ca9f506c7edb4 | [
"MIT"
] | 10 | 2020-11-30T05:54:54.000Z | 2021-09-21T21:38:23.000Z | import React from 'react';
import Menu from '.';
const desc = {
component: Menu,
title: 'molecules/Menu',
};
export const Default = (): JSX.Element => {
return <Menu />;
};
export default desc;
| 13.6 | 43 | 0.632353 |
8dea681cc02c96785a062010326ddbaa04b0ebc1 | 418 | js | JavaScript | WebRoot/resources/assets/js/lib/easyui/js/easyui-lang-zh_CN.js | SteveJrong/Steve-Jrong-Blog-Website | 84829b80685fe6b4b220542fc1d71daf53a467b6 | [
"Apache-2.0"
] | 6 | 2018-05-23T03:53:30.000Z | 2019-03-05T06:14:58.000Z | WebRoot/resources/assets/js/lib/easyui/js/easyui-lang-zh_CN.js | SteveJrong/Steve-Jrong-Blog-Website | 84829b80685fe6b4b220542fc1d71daf53a467b6 | [
"Apache-2.0"
] | null | null | null | WebRoot/resources/assets/js/lib/easyui/js/easyui-lang-zh_CN.js | SteveJrong/Steve-Jrong-Blog-Website | 84829b80685fe6b4b220542fc1d71daf53a467b6 | [
"Apache-2.0"
] | 1 | 2020-11-14T08:26:14.000Z | 2020-11-14T08:26:14.000Z | /**
* jQuery EasyUI语言设置 通用JS文件
*
* 创建时间:2016年3月26日 16:20:30
* 创建人:Steve Jrong
* 版本:1.0
*/
define(['jquery.min'],function (){
if ($.fn.pagination) {
$.fn.pagination.defaults.beforePageText = '第';
$.fn.pagination.defaults.afterPageText = '共{pages}页';
$.fn.pagination.defaults.displayMsg = '显示数据从第{from}条到{to}... | 24.588235 | 74 | 0.643541 |
e68ae86205fdef5824ada97d67e4be14ba9c4848 | 317 | c | C | sgf/3.0/headers/Gamecore/compiler/old/to include/parsers.c | rasputtim/SGPacMan | b0fd33f0951a42625a391383b4d1bd378391493c | [
"BSD-2-Clause"
] | 1 | 2021-06-16T15:25:47.000Z | 2021-06-16T15:25:47.000Z | src/mugen/parser/parsers.c | marstau/shinsango | d9468787ae8e18fa478f936770d88e9bf93c11c0 | [
"BSD-3-Clause"
] | null | null | null | src/mugen/parser/parsers.c | marstau/shinsango | d9468787ae8e18fa478f936770d88e9bf93c11c0 | [
"BSD-3-Clause"
] | null | null | null | extern int yywrap(void);
/* lex wants to call airwrap which should have been #defined to yywrap but its not.
* yywrap is defined in libfl.a
*/
int airwrap(void){
return yywrap();
}
int cnswrap(void){
return yywrap();
}
int cmdwrap(void){
return yywrap();
}
int defwrap(void){
return yywrap();
}
| 15.095238 | 83 | 0.662461 |
46efc1648f9fad275e2bf2bb9d5a4c434f1d2120 | 1,981 | py | Python | pushpluck/plucked.py | ejconlon/pushpluck | 4e5b8bcff6fe3955e8f25638268569f901815b5a | [
"MIT"
] | null | null | null | pushpluck/plucked.py | ejconlon/pushpluck | 4e5b8bcff6fe3955e8f25638268569f901815b5a | [
"MIT"
] | 2 | 2021-04-02T03:54:12.000Z | 2021-04-23T18:23:03.000Z | pushpluck/plucked.py | ejconlon/pushpluck | 4e5b8bcff6fe3955e8f25638268569f901815b5a | [
"MIT"
] | null | null | null | from pushpluck.base import Resettable
from pushpluck.config import ColorScheme, Config
from pushpluck.constants import ButtonCC
from pushpluck.menu import Menu, MenuLayout
from pushpluck.midi import MidiSink
from pushpluck.pads import Pads
from pushpluck.push import ButtonEvent, PadEvent, PushEvent
from pushpluck.shado... | 36.018182 | 93 | 0.636042 |
dceabbe85830f0882a654209880dc926e049b712 | 91 | jbuilder | Ruby | app/views/pics/show.json.jbuilder | stralsi/rails-ipfs-pics | fd8c785bcc461d43fc5bd8ef12c47a480652b24f | [
"MIT"
] | 2 | 2018-03-03T00:29:17.000Z | 2018-05-09T23:16:50.000Z | app/views/pics/show.json.jbuilder | stralsi/rails-ipfs-pics | fd8c785bcc461d43fc5bd8ef12c47a480652b24f | [
"MIT"
] | null | null | null | app/views/pics/show.json.jbuilder | stralsi/rails-ipfs-pics | fd8c785bcc461d43fc5bd8ef12c47a480652b24f | [
"MIT"
] | null | null | null | json.extract! @pic, :id, :name, :ipfs_hash, :thumbnail_ipfs_hash, :created_at, :updated_at
| 45.5 | 90 | 0.747253 |
4d16649bdee27a62629aafba60af8baaa634070e | 142 | sql | SQL | todo-example/migrations/2018-11-26-204512_create_tasks_table/up.sql | webframework-rs/webframework | b0b693b6d6940cb6fb85fc38f472ec1d0e7b6a41 | [
"MIT"
] | 4 | 2018-11-16T16:20:07.000Z | 2019-05-03T15:48:13.000Z | todo-example/migrations/2018-11-26-204512_create_tasks_table/up.sql | webframework-rs/webframework | b0b693b6d6940cb6fb85fc38f472ec1d0e7b6a41 | [
"MIT"
] | 7 | 2018-11-19T12:30:21.000Z | 2018-12-06T15:02:20.000Z | todo-example/migrations/2018-11-26-204512_create_tasks_table/up.sql | webframework-rs/webframework | b0b693b6d6940cb6fb85fc38f472ec1d0e7b6a41 | [
"MIT"
] | 1 | 2018-12-02T20:43:08.000Z | 2018-12-02T20:43:08.000Z | CREATE TABLE tasks (
id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
name VARCHAR NOT NULL,
done BOOLEAN NOT NULL DEFAULT false
);
| 23.666667 | 50 | 0.725352 |
6603945f1c8fed4f3f4e46e3bd121342757c4be2 | 1,129 | py | Python | ceesresponse.py | fcgravalos/rest_api | d8d280bd7d2115d1dc3b308f5debe81059891fc7 | [
"Apache-2.0"
] | null | null | null | ceesresponse.py | fcgravalos/rest_api | d8d280bd7d2115d1dc3b308f5debe81059891fc7 | [
"Apache-2.0"
] | null | null | null | ceesresponse.py | fcgravalos/rest_api | d8d280bd7d2115d1dc3b308f5debe81059891fc7 | [
"Apache-2.0"
] | null | null | null | """
File: ceesresponse.py
Author: Fernando Crespo Gravalos (cees.project.official@gmail.com)
Date: 2014/06/04
"""
from datetime import datetime
class CeesResponse:
"""
This class wraps the responses sent to customer device.
The CEES Response contains:
- Status: OK, NOK.
- Root Cause: SUCCESS, INVALID_INPUT... | 38.931034 | 132 | 0.709477 |
6de78716cae4631e1b34b915b2bb71fd02d792c9 | 199 | h | C | tests/test_hipper.h | jglaser/hipper | e0721c697c096aa00158a9576071456ff75b285d | [
"BSD-3-Clause"
] | null | null | null | tests/test_hipper.h | jglaser/hipper | e0721c697c096aa00158a9576071456ff75b285d | [
"BSD-3-Clause"
] | 1 | 2020-10-16T19:03:45.000Z | 2020-10-16T19:03:45.000Z | tests/test_hipper.h | jglaser/hipper | e0721c697c096aa00158a9576071456ff75b285d | [
"BSD-3-Clause"
] | null | null | null | #ifndef HIPPER_TESTS_TEST_HIPPER_H_
#define HIPPER_TESTS_TEST_HIPPER_H_
#include <catch2/catch.hpp>
#define REQUIRE_SUCCESS(f) REQUIRE(f == hipper::success);
#endif // HIPPER_TESTS_TEST_HIPPER_H_
| 22.111111 | 57 | 0.81407 |
978c51febea280d435cc3065a030fc277b8888bb | 470 | rb | Ruby | source/euler09.rb | Zaxser/Project-Euler-Ruby | fd82181b8d0009c709fec9b05dd80257b3a49a10 | [
"Unlicense"
] | null | null | null | source/euler09.rb | Zaxser/Project-Euler-Ruby | fd82181b8d0009c709fec9b05dd80257b3a49a10 | [
"Unlicense"
] | null | null | null | source/euler09.rb | Zaxser/Project-Euler-Ruby | fd82181b8d0009c709fec9b05dd80257b3a49a10 | [
"Unlicense"
] | null | null | null | # Special Pythagorean triplet
# Problem 9
# A Pythagorean triplet is a set of three natural numbers, a < b < c, for which,
# a**2 + b**2 = c**2
# For example, 3**2 + 4**2 = 9 + 16 = 25 = 52.
# There exists exactly one Pythagorean triplet for which a + b + c = 1000.
# Find the product abc.
# Dumb brute force solutio... | 22.380952 | 80 | 0.568085 |
b77cfa1b68cff6fbd2eca0a1d11220cf9d3b33ec | 1,158 | cpp | C++ | common/gui/win32/WinFileUtil.cpp | lesit/NeuroStudio | f505065d694a8614587e7cc243ede72c141bd80b | [
"W3C"
] | 21 | 2018-11-15T08:23:14.000Z | 2022-03-30T15:44:59.000Z | common/gui/win32/WinFileUtil.cpp | lesit/NeuroStudio | f505065d694a8614587e7cc243ede72c141bd80b | [
"W3C"
] | null | null | null | common/gui/win32/WinFileUtil.cpp | lesit/NeuroStudio | f505065d694a8614587e7cc243ede72c141bd80b | [
"W3C"
] | 1 | 2021-12-08T01:17:27.000Z | 2021-12-08T01:17:27.000Z | #include "stdafx.h"
#include "WinFileUtil.h"
using namespace np::gui::win32;
bool WinFileUtil::IsDirectory(const wchar_t* strFilePath)
{
DWORD dwAttr = GetFileAttributes(strFilePath);
if (dwAttr == INVALID_FILE_ATTRIBUTES)
return false;
return (dwAttr & FILE_ATTRIBUTE_DIRECTORY)>0;
}
bool WinFileUtil::GetNorm... | 22.705882 | 89 | 0.765976 |
8ebfeec4d8f35804cae41071a7b79a04093e94aa | 9,011 | js | JavaScript | index.js | rahulx123/-billi-2 | ab3a3f660c5f3e41de9d36288930d4cced88d743 | [
"MIT"
] | null | null | null | index.js | rahulx123/-billi-2 | ab3a3f660c5f3e41de9d36288930d4cced88d743 | [
"MIT"
] | null | null | null | index.js | rahulx123/-billi-2 | ab3a3f660c5f3e41de9d36288930d4cced88d743 | [
"MIT"
] | null | null | null | const Discord = require("discord.js");
const { keep_alive } = require("./keep_alive");
const { Client, Message, MessageEmbed, Collection } = require("discord.js");
const fs = require("fs");
const colors = require("colors")
const config = require("./config/config.json");
const map = new Map()
require('canvas').registerF... | 33.250923 | 309 | 0.656975 |
7abde078bc5b14d031970e877cf2e3c91e7520f7 | 1,527 | cs | C# | src/WinMan.Windows/Windows/WinEventHookHelper.cs | veselink1/winman-windows | 5d6457c63276f713c55493321470fc8379d0157d | [
"MIT"
] | 1 | 2021-12-09T03:00:11.000Z | 2021-12-09T03:00:11.000Z | src/WinMan.Windows/Windows/WinEventHookHelper.cs | veselink1/winman-windows | 5d6457c63276f713c55493321470fc8379d0157d | [
"MIT"
] | null | null | null | src/WinMan.Windows/Windows/WinEventHookHelper.cs | veselink1/winman-windows | 5d6457c63276f713c55493321470fc8379d0157d | [
"MIT"
] | null | null | null | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using WinMan.Windows.Utilities;
using WinMan.Windows.DllImports;
using static WinMan.Windows.DllImports.Constants;
using static WinMan.Windows.DllImports.NativeMethods;
namespace WinMan.Windows
{
internal delegate vo... | 32.489362 | 140 | 0.616241 |
b72b936391aa21915c2919b315579ec3f056cbe4 | 1,023 | cs | C# | GenericTree/Octree/Sphere.cs | Wasserwecken/genericTree | dcbdfb9f811accd41acd0e1f8a11610e63b4964a | [
"MIT"
] | null | null | null | GenericTree/Octree/Sphere.cs | Wasserwecken/genericTree | dcbdfb9f811accd41acd0e1f8a11610e63b4964a | [
"MIT"
] | null | null | null | GenericTree/Octree/Sphere.cs | Wasserwecken/genericTree | dcbdfb9f811accd41acd0e1f8a11610e63b4964a | [
"MIT"
] | null | null | null | using GenericTree.Common;
using System.Numerics;
namespace GenericTree.Octree
{
public struct Sphere
{
public readonly Vector3 origin;
public readonly float radius;
public Sphere(Vector3 origin, float radius)
{
this.origin = origin;
this.radius = radius... | 30.088235 | 117 | 0.639296 |
979a4833a066bc65ce038bece8444c604eaf785e | 160,910 | dart | Dart | example/data.dart | thumbert/dygraphs_dart | b35874f4000f69870579ec1d1bfdbbe8fd716475 | [
"BSD-3-Clause"
] | null | null | null | example/data.dart | thumbert/dygraphs_dart | b35874f4000f69870579ec1d1bfdbbe8fd716475 | [
"BSD-3-Clause"
] | null | null | null | example/data.dart | thumbert/dygraphs_dart | b35874f4000f69870579ec1d1bfdbbe8fd716475 | [
"BSD-3-Clause"
] | null | null | null | String data_nolabel() {
return "" +
"20070101,62,39\n" +
"20070102,62,44\n" +
"20070103,62,42\n" +
"20070104,57,45\n" +
"20070105,54,44\n" +
"20070106,55,36\n" +
"20070107,62,45\n" +
"20070108,66,48\n" +
"20070109,63,39\n" +
"20070110,57,37\n" +
"20070... | 59.906925 | 91 | 0.696451 |
1c719c8c4a1e7bc49fac84130dec0729a4331399 | 120 | sh | Shell | mr/checkout.sh | zoidbergwill/googles-monorepo-demo | ca670496a832d2b10ab0ef0a5106d47c23a028f5 | [
"Apache-2.0"
] | 36 | 2017-01-28T21:44:16.000Z | 2022-01-13T12:44:46.000Z | mr/checkout.sh | zoidbergwill/googles-monorepo-demo | ca670496a832d2b10ab0ef0a5106d47c23a028f5 | [
"Apache-2.0"
] | 2 | 2019-08-20T08:07:54.000Z | 2020-03-24T17:40:20.000Z | mr/checkout.sh | zoidbergwill/googles-monorepo-demo | ca670496a832d2b10ab0ef0a5106d47c23a028f5 | [
"Apache-2.0"
] | 6 | 2017-02-07T12:40:04.000Z | 2020-03-23T12:38:31.000Z | #!/bin/sh
find . -name pom.xml -type f -delete
git checkout --
find . -name "pom-template.xml" | python mr/writepom.py
| 20 | 55 | 0.675 |
a3640246e2079cc5f36ebff36e5663ddc04f85e6 | 2,670 | h | C | KFCommon/KFInclude.h | 282951387/KFrame | 5d6e953f7cc312321c36632715259394ca67144c | [
"Apache-2.0"
] | 1 | 2021-04-26T09:31:32.000Z | 2021-04-26T09:31:32.000Z | KFCommon/KFInclude.h | 282951387/KFrame | 5d6e953f7cc312321c36632715259394ca67144c | [
"Apache-2.0"
] | null | null | null | KFCommon/KFInclude.h | 282951387/KFrame | 5d6e953f7cc312321c36632715259394ca67144c | [
"Apache-2.0"
] | null | null | null | #ifndef __KF_INCLUDE_H__
#define __KF_INCLUDE_H__
#include "stdarg.h"
#include <stdio.h>
#include <string>
#include <string.h>
#include <vector>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <array>
#include <algorithm>
#include <math.h>
#include <fstream>
#include <iostream>
#include <sstre... | 31.411765 | 74 | 0.614232 |
a33b8a491c78bc73f7b4d50455db830525a65c53 | 329 | h | C | VideoShow/VideoShow/CommTools.h | hanbox/VideoShow | 5499716852067b38f9d5a9defd22098f1283e350 | [
"MIT"
] | 2 | 2017-02-24T15:39:21.000Z | 2020-05-03T01:51:43.000Z | VideoShow/VideoShow/CommTools.h | HanBox2016/VideoShow | 5499716852067b38f9d5a9defd22098f1283e350 | [
"MIT"
] | null | null | null | VideoShow/VideoShow/CommTools.h | HanBox2016/VideoShow | 5499716852067b38f9d5a9defd22098f1283e350 | [
"MIT"
] | null | null | null | #pragma once
class CCommTools
{
public:
CCommTools(void);
~CCommTools(void);
public:
CString GetLocTime(int iMode = 0);
void MajorMap(CImage *pImage);
void SetFont(CFont *pfont, long lHeight, CString csFaceName);
char* EncodeToUTF8(const char* mbcsStr);
char* WTUTF8(CString csBuffer);
char* WTA(CString csBuff... | 19.352941 | 62 | 0.738602 |
2ca3dd1b368ce54dc469ef7757f18cd3db0802cd | 2,374 | py | Python | neko_hands_3.1/app/scripts/Status.py | tatsumashoji/neko_hands | e647985f89b7ef87f6a092404216c1ac0567c573 | [
"BSD-3-Clause"
] | null | null | null | neko_hands_3.1/app/scripts/Status.py | tatsumashoji/neko_hands | e647985f89b7ef87f6a092404216c1ac0567c573 | [
"BSD-3-Clause"
] | null | null | null | neko_hands_3.1/app/scripts/Status.py | tatsumashoji/neko_hands | e647985f89b7ef87f6a092404216c1ac0567c573 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#========================================
# Libraries
#========================================
# Libraries (Bokeh)
from bokeh.models import Panel, Div, Tabs
#========================================
# Parameters
#========================================
# Widget : ACC... | 26.087912 | 103 | 0.554339 |
5e963277a4ca0c9870bbbc668e66895384f132fa | 503 | rb | Ruby | lib/materialistic/providers.rb | uetchy/materialistic | 39723b3b85582edfaa3dfbfb7b05b3b6750a9c27 | [
"MIT"
] | null | null | null | lib/materialistic/providers.rb | uetchy/materialistic | 39723b3b85582edfaa3dfbfb7b05b3b6750a9c27 | [
"MIT"
] | null | null | null | lib/materialistic/providers.rb | uetchy/materialistic | 39723b3b85582edfaa3dfbfb7b05b3b6750a9c27 | [
"MIT"
] | 1 | 2015-11-20T10:59:34.000Z | 2015-11-20T10:59:34.000Z | module Materialistic
module Providers
class Base
QUANTITY_UNKNOWN = 'QTY_UNKNOWN'
QUANTITY_HUGE = 'QTY_HUGE'
def id
underscore(self.class.to_s.gsub(/(^.+::)?/, ''))
end
private
def underscore(str)
str.gsub(/([A-Z]+)([A-Z][a-z])/,'\1_\2').
gsub(/([a-z\... | 19.346154 | 73 | 0.518887 |
a36175a34a81f7cd1d41b3e0128f1e288c3f6f2a | 2,248 | java | Java | app/src/main/java/br/com/dgas/especificidade/ui/activity/LoadingActivity.java | diegogeovani/especificidade | deaa0b21fb3d44ba6542710b63c740489395d27d | [
"CC0-1.0"
] | null | null | null | app/src/main/java/br/com/dgas/especificidade/ui/activity/LoadingActivity.java | diegogeovani/especificidade | deaa0b21fb3d44ba6542710b63c740489395d27d | [
"CC0-1.0"
] | null | null | null | app/src/main/java/br/com/dgas/especificidade/ui/activity/LoadingActivity.java | diegogeovani/especificidade | deaa0b21fb3d44ba6542710b63c740489395d27d | [
"CC0-1.0"
] | null | null | null | package br.com.dgas.especificidade.ui.activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.support.v7.app.ActionBarActivity;
import android.view.Menu;
import android.view.MenuItem;
import br.com.dgas.especificidade.R;
import br.com.dgas.especificidade.os.task.Si... | 27.414634 | 92 | 0.644128 |
a42f86bb749a35e0072576431516290b7d5951b3 | 7,364 | php | PHP | app/Http/Controllers/Seller/DashboardController.php | ismadevjs/worketplace_laravel_ghano | 5cae97b82acde141238efeb65b77881546f52744 | [
"MIT"
] | null | null | null | app/Http/Controllers/Seller/DashboardController.php | ismadevjs/worketplace_laravel_ghano | 5cae97b82acde141238efeb65b77881546f52744 | [
"MIT"
] | null | null | null | app/Http/Controllers/Seller/DashboardController.php | ismadevjs/worketplace_laravel_ghano | 5cae97b82acde141238efeb65b77881546f52744 | [
"MIT"
] | null | null | null | <?php
namespace App\Http\Controllers\Seller;
use App\Http\Controllers\Controller;
use App\Model\AdminWalletHistory;
use App\Model\Brand;
use App\Model\Order;
use App\Model\OrderDetail;
use App\Model\Product;
use App\Model\SellerWalletHistory;
use App\Model\Shop;
use App\User;
use Carbon\Carbon;
use Illuminate\Http\Re... | 41.139665 | 144 | 0.523764 |
ff25168c19e1d6fe8c12a205dbf26508166e7155 | 1,404 | py | Python | trajectory_code/trajectory_files/main.py | saimmehmood/POI_Clustering | ffa4d36c1c288427fa6a37773d81c924c3747bd9 | [
"MIT"
] | null | null | null | trajectory_code/trajectory_files/main.py | saimmehmood/POI_Clustering | ffa4d36c1c288427fa6a37773d81c924c3747bd9 | [
"MIT"
] | null | null | null | trajectory_code/trajectory_files/main.py | saimmehmood/POI_Clustering | ffa4d36c1c288427fa6a37773d81c924c3747bd9 | [
"MIT"
] | null | null | null | import imp
API_KEY = 'AIzaSyAkWXgG-uBlb1F-k_1IpC6WS7KjywK2YYg'
write = imp.load_source('writeFile', '../writeFiles/writeFile.py')
coordinate = (52.517671, 13.377802)
#1000 trajectories without any waypoints
waypoints = write.generate_Random_Waypoints(25, coordinate, 0.05, .5)
# for i in range(len(waypoints)):
# p... | 33.428571 | 155 | 0.710114 |
7f1de376dfd872138920295511d3eb297f45d59c | 19 | dart | Dart | app/covsense/lib/screens/auth/index.dart | VolodymyrBiryuk/31_Digitale_Krankheits_Anamnese_CovOx | 66b1eae81670f753d64afb9ebc52954687d13fa5 | [
"MIT"
] | null | null | null | app/covsense/lib/screens/auth/index.dart | VolodymyrBiryuk/31_Digitale_Krankheits_Anamnese_CovOx | 66b1eae81670f753d64afb9ebc52954687d13fa5 | [
"MIT"
] | null | null | null | app/covsense/lib/screens/auth/index.dart | VolodymyrBiryuk/31_Digitale_Krankheits_Anamnese_CovOx | 66b1eae81670f753d64afb9ebc52954687d13fa5 | [
"MIT"
] | null | null | null | export 'auth.dart'; | 19 | 19 | 0.736842 |
67eda3d36dd04f54df7c404f16491dcfebe096a3 | 1,500 | lua | Lua | .config/webkitten/commands/buffernew.lua | kattrali/dotfiles | 12083ee96f3aba63e5c594a6f1aeb22e5f2bd0ee | [
"BSD-2-Clause"
] | 6 | 2016-01-15T16:45:19.000Z | 2017-10-11T09:08:37.000Z | .config/webkitten/commands/buffernew.lua | kattrali/dotfiles | 12083ee96f3aba63e5c594a6f1aeb22e5f2bd0ee | [
"BSD-2-Clause"
] | 5 | 2015-11-09T21:59:30.000Z | 2016-11-15T04:05:44.000Z | .config/webkitten/commands/buffernew.lua | kattrali/dotfiles | 12083ee96f3aba63e5c594a6f1aeb22e5f2bd0ee | [
"BSD-2-Clause"
] | 2 | 2015-11-30T21:05:31.000Z | 2015-12-11T01:58:52.000Z | function description()
return "Opens a new buffer with a URL or configured start page"
end
function run()
local windex = focused_window_index()
if #arguments > 0 then
local target = arguments[1]
if target == "dev" then
return open_with_config(windex, arguments[2], [[
[general]
private-b... | 26.315789 | 124 | 0.676 |
93b133bd14c68e8ce1824269eb0304315d9cc30a | 793 | cs | C# | name-sorter/Program.cs | GhazalK/NameSorterDemo | ef4de25e110937e00feea67b540d8d383ed16ae5 | [
"MIT"
] | null | null | null | name-sorter/Program.cs | GhazalK/NameSorterDemo | ef4de25e110937e00feea67b540d8d383ed16ae5 | [
"MIT"
] | null | null | null | name-sorter/Program.cs | GhazalK/NameSorterDemo | ef4de25e110937e00feea67b540d8d383ed16ae5 | [
"MIT"
] | null | null | null | using System;
using Util;
namespace name_sorter
{
class Program
{
static void Main(string[] args)
{
if(args.Length ==0){
Console.WriteLine("No file entries!");
}
SortingInterface name_sorter = new Sorter();
IOInterfac... | 25.580645 | 86 | 0.539723 |
5187daaee6bc157a2324e6de311316302b3382bc | 684 | swift | Swift | TransmedikSDK/Classes/celljawabanTableViewCell.swift | idhamcuexs/TransmedikSDK | 10e0a02020ea8453bd0f6b58e5ee70332ec1b79c | [
"MIT"
] | null | null | null | TransmedikSDK/Classes/celljawabanTableViewCell.swift | idhamcuexs/TransmedikSDK | 10e0a02020ea8453bd0f6b58e5ee70332ec1b79c | [
"MIT"
] | null | null | null | TransmedikSDK/Classes/celljawabanTableViewCell.swift | idhamcuexs/TransmedikSDK | 10e0a02020ea8453bd0f6b58e5ee70332ec1b79c | [
"MIT"
] | null | null | null | //
// celljawabanTableViewCell.swift
// transmedik
//
// Created by Idham Kurniawan on 10/07/21.
//
import UIKit
class celljawabanTableViewCell: UITableViewCell {
@IBOutlet weak var body: UILabel!
@IBOutlet weak var views: UIView!
@IBOutlet weak var header: UILabel!
@IBOutlet weak var view2: ... | 19.542857 | 65 | 0.647661 |
546ffae4b7b355983fbb407f59cad7bd6f26c5a8 | 5,820 | lua | Lua | src/api/gui/menu/SpellsMenu.lua | Ruin0x11/OpenNefia | 548f1a1442eca704bb1c16b1a1591d982a34919f | [
"MIT"
] | 109 | 2020-04-07T16:56:38.000Z | 2022-02-17T04:05:40.000Z | src/api/gui/menu/SpellsMenu.lua | Ruin0x11/OpenNefia | 548f1a1442eca704bb1c16b1a1591d982a34919f | [
"MIT"
] | 243 | 2020-04-07T08:25:15.000Z | 2021-10-30T07:22:10.000Z | src/api/gui/menu/SpellsMenu.lua | Ruin0x11/OpenNefia | 548f1a1442eca704bb1c16b1a1591d982a34919f | [
"MIT"
] | 15 | 2020-04-25T12:28:55.000Z | 2022-02-23T03:20:43.000Z | local Gui = require("api.Gui")
local Draw = require("api.Draw")
local I18N = require("api.I18N")
local Skill = require("mod.elona_sys.api.Skill")
local Ui = require("api.Ui")
local data = require("internal.data")
local save = require("internal.global.save")
local Shortcut = require("mod.elona.api.Shortcut")
local IUiL... | 28.115942 | 124 | 0.65567 |
b8274b89f3c6256f0bd4bedc2445408094720bf9 | 354 | ps1 | PowerShell | source/Private/Write-Log.ps1 | dsccommunity/DscTools | 755297a0b06313ca54d446309857f7c52d7ac23b | [
"MIT"
] | 1 | 2020-07-05T15:15:17.000Z | 2020-07-05T15:15:17.000Z | source/Private/Write-Log.ps1 | dsccommunity/DscTools | 755297a0b06313ca54d446309857f7c52d7ac23b | [
"MIT"
] | null | null | null | source/Private/Write-Log.ps1 | dsccommunity/DscTools | 755297a0b06313ca54d446309857f7c52d7ac23b | [
"MIT"
] | 2 | 2020-06-18T13:53:52.000Z | 2021-04-23T15:14:49.000Z | function Write-Log()
{
# Logging function - Write logging to screen and log file
[CmdletBinding()]
param
(
[Parameter(Mandatory = $true)]
[System.String]
$Message
)
process
{
$date = Get-Date -Format "yyyy-MM-dd HH:mm:ss"
Write-Host -Obj... | 19.666667 | 62 | 0.519774 |
9edf0b55d53d2b45151deb2d29a9b041490e7b2b | 249 | lua | Lua | MMOCoreORB/bin/scripts/object/custom_content/building/mustafar/particle/must_lava_fire.lua | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 18 | 2017-02-09T15:36:05.000Z | 2021-12-21T04:22:15.000Z | MMOCoreORB/bin/scripts/object/custom_content/building/mustafar/particle/must_lava_fire.lua | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 61 | 2016-12-30T21:51:10.000Z | 2021-12-10T20:25:56.000Z | MMOCoreORB/bin/scripts/object/custom_content/building/mustafar/particle/must_lava_fire.lua | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 71 | 2017-01-01T05:34:38.000Z | 2022-03-29T01:04:00.000Z | object_building_mustafar_particle_must_lava_fire = object_building_mustafar_particle_shared_must_lava_fire:new {
}
ObjectTemplates:addTemplate(object_building_mustafar_particle_must_lava_fire, "object/building/mustafar/particle/must_lava_fire.iff")
| 249 | 249 | 0.911647 |
eb9ede558e92883faad0f5b10353b0096fdf1b0c | 94 | css | CSS | css_includes/MazeSeparator.css | gililior/Ibex-with-Maze | b6be95162134c90b963a4b2185e0c566f1112064 | [
"BSD-3-Clause"
] | 2 | 2020-04-13T22:48:00.000Z | 2021-11-05T16:23:15.000Z | css_includes/MazeSeparator.css | gililior/Ibex-with-Maze | b6be95162134c90b963a4b2185e0c566f1112064 | [
"BSD-3-Clause"
] | null | null | null | css_includes/MazeSeparator.css | gililior/Ibex-with-Maze | b6be95162134c90b963a4b2185e0c566f1112064 | [
"BSD-3-Clause"
] | 6 | 2020-04-13T16:07:19.000Z | 2022-03-09T11:35:19.000Z | .next-item-failure-message {
color: red;
}
.next-item-message {
font-style: italic;
}
| 13.428571 | 28 | 0.638298 |
389876806c4746a9f28df939bc1e6d1de7b9c2ae | 2,932 | php | PHP | app/Http/Controllers/Dashboard/Settings.php | abdulbasit3398/cardealer | 26d5e3902594ecae7b219f1cc3ce7b211b0b443d | [
"MIT"
] | null | null | null | app/Http/Controllers/Dashboard/Settings.php | abdulbasit3398/cardealer | 26d5e3902594ecae7b219f1cc3ce7b211b0b443d | [
"MIT"
] | null | null | null | app/Http/Controllers/Dashboard/Settings.php | abdulbasit3398/cardealer | 26d5e3902594ecae7b219f1cc3ce7b211b0b443d | [
"MIT"
] | null | null | null | <?php
namespace App\Http\Controllers\Dashboard;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Spatie\Permission\Models\Role;
use Spatie\Permission\Models\Permission;
use App\User;
use Option;
use App\ImageUpload;
use Auth;
use File;
use Validator;
class Settings extends Controller
{
/**... | 24.847458 | 83 | 0.569236 |
f44c1b84b3e11156fe15fee6465555fc8d7948b1 | 958 | cs | C# | pjsip4net/Configuration/DefaultAgentConfigurator.cs | moljac/pjsip4net | c53987aae0e641fd96592425ba9ebef357909772 | [
"Apache-2.0"
] | 67 | 2015-02-25T07:28:10.000Z | 2021-06-20T02:25:00.000Z | pjsip4net/Configuration/DefaultAgentConfigurator.cs | moljac/pjsip4net | c53987aae0e641fd96592425ba9ebef357909772 | [
"Apache-2.0"
] | 103 | 2015-01-08T21:11:44.000Z | 2021-09-04T08:33:51.000Z | pjsip4net/Configuration/DefaultAgentConfigurator.cs | moljac/pjsip4net | c53987aae0e641fd96592425ba9ebef357909772 | [
"Apache-2.0"
] | 46 | 2015-03-02T07:19:09.000Z | 2021-10-04T19:10:43.000Z | using pjsip4net.Core.Interfaces;
using pjsip4net.Core.Interfaces.ApiProviders;
using pjsip4net.Interfaces;
namespace pjsip4net.Configuration
{
public class DefaultAgentConfigurator : IConfigureComponents
{
public void Configure(IContainer container)
{
var basicApiProvider = containe... | 39.916667 | 103 | 0.717119 |
38518d3a52f18b7b38cc5c3f381a29e87f446571 | 3,825 | cs | C# | src/OrleansRuntime/Placement/PlacementDirectorsManager.cs | wjk/dotnet-orleans | 8370663edf4bf7a04ba9090de8d784faa0b2c197 | [
"MIT"
] | 4 | 2021-04-30T12:19:03.000Z | 2021-04-30T13:38:11.000Z | src/OrleansRuntime/Placement/PlacementDirectorsManager.cs | wjk/dotnet-orleans | 8370663edf4bf7a04ba9090de8d784faa0b2c197 | [
"MIT"
] | null | null | null | src/OrleansRuntime/Placement/PlacementDirectorsManager.cs | wjk/dotnet-orleans | 8370663edf4bf7a04ba9090de8d784faa0b2c197 | [
"MIT"
] | 1 | 2020-02-04T03:39:13.000Z | 2020-02-04T03:39:13.000Z | using System;
using System.Collections.Concurrent;
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
namespace Orleans.Runtime.Placement
{
internal class PlacementDirectorsManager
{
private readonly ConcurrentDictionary<Type, IPlacementDirector> directors = new ConcurrentDi... | 37.5 | 137 | 0.63268 |
26a005450a1c46a58760b203defde610a12b7d5e | 147 | sh | Shell | dev-tools/add_apache_license.sh | luohongjunnn/jstorm | 8ebdca8616c86e3994e9f0f7eef786c0901672e4 | [
"Apache-2.0"
] | 1 | 2019-02-23T05:29:20.000Z | 2019-02-23T05:29:20.000Z | dev-tools/add_apache_license.sh | luohongjunnn/jstorm | 8ebdca8616c86e3994e9f0f7eef786c0901672e4 | [
"Apache-2.0"
] | null | null | null | dev-tools/add_apache_license.sh | luohongjunnn/jstorm | 8ebdca8616c86e3994e9f0f7eef786c0901672e4 | [
"Apache-2.0"
] | null | null | null | find . -name \*.java -exec sh -c "if ! grep -q 'LICENSE-2.0' '{}';then mv '{}' tmp && cp LICENSEHEADER.txt '{}' && cat tmp >> '{}' && rm tmp;fi" \; | 147 | 147 | 0.510204 |
05caf8e6bf953273c8b7bf7420eadc3747412922 | 9,608 | rs | Rust | leaf/src/app/nat_manager.rs | jarvanh/leaf | 914a0073c510d884013c3bc0a4bd92570faa842f | [
"Apache-2.0"
] | null | null | null | leaf/src/app/nat_manager.rs | jarvanh/leaf | 914a0073c510d884013c3bc0a4bd92570faa842f | [
"Apache-2.0"
] | null | null | null | leaf/src/app/nat_manager.rs | jarvanh/leaf | 914a0073c510d884013c3bc0a4bd92570faa842f | [
"Apache-2.0"
] | null | null | null | use std::collections::HashMap;
use std::sync::Arc;
use std::time::{Duration, Instant};
use futures::future::{abortable, BoxFuture};
use log::*;
use tokio::sync::{
mpsc::{self, Sender},
oneshot, Mutex, MutexGuard,
};
use crate::app::dispatcher::Dispatcher;
use crate::option;
use crate::session::{DatagramSource... | 35.453875 | 95 | 0.450354 |
0507016ae633b16bc1838cc6ad7834163dd5f777 | 366 | css | CSS | 2017-04-21/src/css/app.css | jsdelivrbot/365_programs | 0538fe7aafbc07a5485ef0e93a377b3b059f8808 | [
"Unlicense"
] | null | null | null | 2017-04-21/src/css/app.css | jsdelivrbot/365_programs | 0538fe7aafbc07a5485ef0e93a377b3b059f8808 | [
"Unlicense"
] | null | null | null | 2017-04-21/src/css/app.css | jsdelivrbot/365_programs | 0538fe7aafbc07a5485ef0e93a377b3b059f8808 | [
"Unlicense"
] | 1 | 2018-12-07T18:09:52.000Z | 2018-12-07T18:09:52.000Z | body, html, #app {
padding: 0;
margin: 0;
}
#app {
min-height: 100%;
min-height: 100vh;
padding: 20px;
box-sizing: border-box;
width: 1500px;
height: 600px;
}
#app:after {
content:"Call me bottom collapsed margin destroyer ... or better yet, call me destroyer of worlds.";
heig... | 17.428571 | 104 | 0.598361 |
4208203270665e1073cdb73a8c7f79379ece8fca | 1,401 | cs | C# | Configgy.Tests/Validation/ULongValidatorTests.cs | LazyTarget/Configgy | 444b366513fb2396eb1ef9aa62054807bcfc454e | [
"MIT"
] | 46 | 2016-02-12T19:00:47.000Z | 2019-10-03T08:54:48.000Z | Configgy.Tests/Validation/ULongValidatorTests.cs | LazyTarget/Configgy | 444b366513fb2396eb1ef9aa62054807bcfc454e | [
"MIT"
] | 34 | 2016-03-21T01:13:03.000Z | 2021-03-19T20:11:37.000Z | Configgy.Tests/Validation/ULongValidatorTests.cs | LazyTarget/Configgy | 444b366513fb2396eb1ef9aa62054807bcfc454e | [
"MIT"
] | 6 | 2017-04-08T05:38:25.000Z | 2019-02-28T11:40:17.000Z | using System.Diagnostics.CodeAnalysis;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Configgy.Validation;
namespace Configgy.Tests.Validation
{
[TestClass]
[ExcludeFromCodeCoverage]
public class ULongValidatorTests : NumericishValidatorTests<ULongValidatorAttribute, ulong>
{
protec... | 31.840909 | 111 | 0.68237 |
c6a6f38a96b319cba41c87ae4587f82f5eb28219 | 8,074 | py | Python | model_caculation/BPR.py | xingkong906/CitationRecommend | 14009e44b464de855480b081366a72ebae63c76a | [
"Apache-2.0"
] | 3 | 2021-02-27T03:04:27.000Z | 2021-07-11T13:44:02.000Z | model_caculation/BPR.py | xingkong906/CitationRecommend | 14009e44b464de855480b081366a72ebae63c76a | [
"Apache-2.0"
] | 1 | 2021-07-12T00:47:57.000Z | 2021-09-14T13:40:12.000Z | model_caculation/BPR.py | xingkong906/CitationRecommend | 14009e44b464de855480b081366a72ebae63c76a | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# !/usr/bin/python3
"""
-------------------------------------------------
File Name: BPR.py
Author : Carl
Author_email: xingkong906@outlook.com
date: BPR.py
Description :
-------------------------------------------------
# If this run wrong, don't ask me , I... | 42.494737 | 122 | 0.583106 |
1f3fb958fa3529b1ff2ffb8393e2c3ff24146691 | 9,816 | cs | C# | dotnet/Library/Sers/Sers.Gateway/Sers.Gateway/GatewayHelp.cs | serset/Sers | b57bd73adbd58a67bd2b1232d1f4abd4c2f7a4de | [
"Apache-2.0"
] | 2 | 2021-07-06T08:16:41.000Z | 2021-12-31T13:57:05.000Z | dotnet/Library/Sers/Sers.Gateway/Sers.Gateway/GatewayHelp.cs | LithWang/Sers | b57bd73adbd58a67bd2b1232d1f4abd4c2f7a4de | [
"Apache-2.0"
] | null | null | null | dotnet/Library/Sers/Sers.Gateway/Sers.Gateway/GatewayHelp.cs | LithWang/Sers | b57bd73adbd58a67bd2b1232d1f4abd4c2f7a4de | [
"Apache-2.0"
] | 2 | 2021-03-25T11:39:45.000Z | 2021-12-31T13:56:26.000Z | using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http;
using Newtonsoft.Json.Linq;
using Sers.Core.Module.Api;
using Sers.Core.Module.Message;
using Sers.Core.Module.Rpc;
using Sers.Gateway.RateLimit;
using System;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Thr... | 29.835866 | 187 | 0.535758 |
daa9c7b058544d853ad7cf9d7735c615ccb5b887 | 1,302 | php | PHP | src/SCLeague/TeamBundle/Admin/GameAdmin.php | jhagnere/self | 46cfcbae83e7e92cfee3074118dc5bc6ccefe3da | [
"MIT"
] | null | null | null | src/SCLeague/TeamBundle/Admin/GameAdmin.php | jhagnere/self | 46cfcbae83e7e92cfee3074118dc5bc6ccefe3da | [
"MIT"
] | null | null | null | src/SCLeague/TeamBundle/Admin/GameAdmin.php | jhagnere/self | 46cfcbae83e7e92cfee3074118dc5bc6ccefe3da | [
"MIT"
] | null | null | null | <?php
namespace SCLeague\TeamBundle\Admin;
use Sonata\AdminBundle\Admin\Admin;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Form\FormMapper;
class GameAdmin extends Admin
{
protected function configureFormFields(FormMapper $formMapper) {
... | 31 | 103 | 0.600614 |
a316c9620741a0ddd7bc6c63ad75ae11b70612b4 | 4,434 | h | C | tf2_src/utils/matsysapp/matsysapp.h | d3fc0n6/TeamFortress2 | 1b81dded673d49adebf4d0958e52236ecc28a956 | [
"MIT"
] | 4 | 2021-10-03T05:16:55.000Z | 2021-12-28T16:49:27.000Z | tf2_src/utils/matsysapp/matsysapp.h | Counter2828/TeamFortress2 | 1b81dded673d49adebf4d0958e52236ecc28a956 | [
"MIT"
] | null | null | null | tf2_src/utils/matsysapp/matsysapp.h | Counter2828/TeamFortress2 | 1b81dded673d49adebf4d0958e52236ecc28a956 | [
"MIT"
] | 3 | 2022-02-02T18:09:58.000Z | 2022-03-06T18:54:39.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $Workfile: $
// $Date: $
//
//-----------------------------------------------------------------------------
// $Log: $
//
// $NoKeywords: $
//===================================================================... | 25.77907 | 116 | 0.569463 |
8e70e07409ca76dff50bc659f94ac25ccc47ef32 | 10,186 | js | JavaScript | egov/egov-stmsweb/src/main/webapp/resources/js/search/applicationsearch.js | spiliti/boma | de2a0308dfaa171d70bac96bf42010f1129c0718 | [
"OML"
] | null | null | null | egov/egov-stmsweb/src/main/webapp/resources/js/search/applicationsearch.js | spiliti/boma | de2a0308dfaa171d70bac96bf42010f1129c0718 | [
"OML"
] | null | null | null | egov/egov-stmsweb/src/main/webapp/resources/js/search/applicationsearch.js | spiliti/boma | de2a0308dfaa171d70bac96bf42010f1129c0718 | [
"OML"
] | 1 | 2022-01-03T11:52:38.000Z | 2022-01-03T11:52:38.000Z | /*
* eGov SmartCity eGovernance suite aims to improve the internal efficiency,transparency,
* accountability and the service delivery of the government organizations.
*
* Copyright (C) 2018 eGovernments Foundation
*
* The updated version of eGov suite of products as by eGovernments Foundation
* ... | 36.120567 | 197 | 0.551443 |
237f1e4f32976d88dda54eac03e06fd5342fbde5 | 251 | lua | Lua | MMOCoreORB/bin/scripts/object/custom_content/tangible/loot/npc_loot/elect_module_wires.lua | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 18 | 2017-02-09T15:36:05.000Z | 2021-12-21T04:22:15.000Z | MMOCoreORB/bin/scripts/object/custom_content/tangible/loot/npc_loot/elect_module_wires.lua | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 61 | 2016-12-30T21:51:10.000Z | 2021-12-10T20:25:56.000Z | MMOCoreORB/bin/scripts/object/custom_content/tangible/loot/npc_loot/elect_module_wires.lua | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 71 | 2017-01-01T05:34:38.000Z | 2022-03-29T01:04:00.000Z | object_tangible_loot_npc_loot_elect_module_wires = object_tangible_loot_npc_loot_shared_elect_module_wires:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_npc_loot_elect_module_wires, "object/tangible/loot/npc/loot/elect_module_wires.iff")
| 41.833333 | 133 | 0.900398 |