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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dda5c3983af87d62df4fbc4ec8b319f2d01e73ae | 509 | java | Java | Catalogo-Web/src/co/gov/ideamredd/servlets/IrARegistrarEspecieCatalogoServlet.java | danielrcardenas/mapas_ideam | e2bb4235621aa789d8af9758a91e0ac05c622607 | [
"Apache-2.0"
] | 1 | 2020-01-03T09:29:34.000Z | 2020-01-03T09:29:34.000Z | Catalogo-Web/src/co/gov/ideamredd/servlets/IrARegistrarEspecieCatalogoServlet.java | danielrcardenas/mapas_ideam | e2bb4235621aa789d8af9758a91e0ac05c622607 | [
"Apache-2.0"
] | null | null | null | Catalogo-Web/src/co/gov/ideamredd/servlets/IrARegistrarEspecieCatalogoServlet.java | danielrcardenas/mapas_ideam | e2bb4235621aa789d8af9758a91e0ac05c622607 | [
"Apache-2.0"
] | null | null | null | package co.gov.ideamredd.servlets;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class IrARegistrarEspecieCatalogoServlet extends HttpServlet {
@Override
... | 24.238095 | 71 | 0.831041 |
e23ac0c99162a0ea92f7f76c6664dfe96d46bb75 | 3,603 | py | Python | sila_library/sila2lib/fdl_parser/tests/test_fdl_parser.py | lemmi25/sila2lib | ac4db8ee7fe6c99bde498151a539b25be2021d2f | [
"MIT"
] | null | null | null | sila_library/sila2lib/fdl_parser/tests/test_fdl_parser.py | lemmi25/sila2lib | ac4db8ee7fe6c99bde498151a539b25be2021d2f | [
"MIT"
] | null | null | null | sila_library/sila2lib/fdl_parser/tests/test_fdl_parser.py | lemmi25/sila2lib | ac4db8ee7fe6c99bde498151a539b25be2021d2f | [
"MIT"
] | null | null | null | # Set pylint configuration for this file
# pylint: disable=missing-docstring, protected-access
# import general Packages
import unittest
import os
# import package related modules and classes
from ..fdl_parser import FDLParser
from ..command import Command
from ..property import Property
from ..data_type_definition i... | 40.943182 | 115 | 0.696087 |
32513d9e656fbbb8b278aa1527e4f1ca219ea06b | 5,436 | rs | Rust | examples/basic/src/main.rs | Unoqwy/polecen | 7c761f16764a7329950c4bcd483ebf140cec13a0 | [
"Apache-2.0",
"MIT"
] | null | null | null | examples/basic/src/main.rs | Unoqwy/polecen | 7c761f16764a7329950c4bcd483ebf140cec13a0 | [
"Apache-2.0",
"MIT"
] | null | null | null | examples/basic/src/main.rs | Unoqwy/polecen | 7c761f16764a7329950c4bcd483ebf140cec13a0 | [
"Apache-2.0",
"MIT"
] | null | null | null | use std::env;
use std::str::FromStr;
use polecen::arguments::prelude::*;
use serenity::client::{Context, EventHandler};
use serenity::model::channel::Message;
use serenity::model::guild::Member;
use serenity::model::prelude::Ready;
use serenity::{async_trait, Client};
struct Handler;
#[async_trait]
impl EventHandler... | 29.704918 | 100 | 0.444077 |
bb8094351a848a5d99d06e8544507e615678acfb | 4,002 | cs | C# | Defs/ExtJs/Ext.tip.Tip.cs | SharpKit/SharpKit-SDK | 66a6e64436c6254b60b7ea5aee54d026fff78237 | [
"MIT"
] | 12 | 2015-02-05T06:46:20.000Z | 2020-12-05T17:31:51.000Z | Defs/ExtJs/Ext.tip.Tip.cs | SharpKit/SharpKit-SDK | 66a6e64436c6254b60b7ea5aee54d026fff78237 | [
"MIT"
] | 4 | 2015-01-08T10:32:01.000Z | 2017-07-06T08:57:11.000Z | Defs/ExtJs/Ext.tip.Tip.cs | SharpKit/SharpKit-SDK | 66a6e64436c6254b60b7ea5aee54d026fff78237 | [
"MIT"
] | 8 | 2015-03-18T18:18:58.000Z | 2020-04-04T08:01:53.000Z | //***************************************************
//* This file was generated by tool
//* SharpKit
//* At: 29/08/2012 03:59:41 p.m.
//***************************************************
using SharpKit.JavaScript;
namespace Ext.tip
{
#region Tip
/// <inheritdocs />
/// <summary>
/// <p>This is the ba... | 43.032258 | 178 | 0.591704 |
b673287b607fd78956d79e0586763a709eb41943 | 413 | rb | Ruby | db/migrate/20160809043736_create_naturesoft_projects_images.rb | globalnaturesoft/naturesoft-projects | b782717f9feed4ca33f6ee8e0f49d806a35cba6d | [
"MIT"
] | null | null | null | db/migrate/20160809043736_create_naturesoft_projects_images.rb | globalnaturesoft/naturesoft-projects | b782717f9feed4ca33f6ee8e0f49d806a35cba6d | [
"MIT"
] | null | null | null | db/migrate/20160809043736_create_naturesoft_projects_images.rb | globalnaturesoft/naturesoft-projects | b782717f9feed4ca33f6ee8e0f49d806a35cba6d | [
"MIT"
] | null | null | null | class CreateNaturesoftProjectsImages < ActiveRecord::Migration[5.0]
def change
create_table :naturesoft_projects_images do |t|
t.string :name
t.text :description
t.string :image
t.string :status, :default => "active"
t.boolean :is_main, :default => false
t.references :project, ... | 27.533333 | 83 | 0.690073 |
f600003f47e60792dabea9657b35e02919c55e2e | 2,956 | hpp | C++ | common/SoapySSDPEndpoint.hpp | bastille-attic/SoapyRemote | 63664b890ccfe2d5472901b879b1593aacc92ef1 | [
"BSL-1.0"
] | null | null | null | common/SoapySSDPEndpoint.hpp | bastille-attic/SoapyRemote | 63664b890ccfe2d5472901b879b1593aacc92ef1 | [
"BSL-1.0"
] | null | null | null | common/SoapySSDPEndpoint.hpp | bastille-attic/SoapyRemote | 63664b890ccfe2d5472901b879b1593aacc92ef1 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2015-2016 Josh Blum
// SPDX-License-Identifier: BSL-1.0
#pragma once
#include "SoapyRPCSocket.hpp"
#include <string>
#include <csignal> //sig_atomic_t
#include <mutex>
#include <vector>
#include <memory>
class SoapyHTTPHeader;
struct SoapySSDPEndpointData;
/*!
* Service an SSDP endpoint to:
* keep... | 31.784946 | 116 | 0.715832 |
f42e012725c283577d4fbe6cf894083edb2db581 | 308 | cs | C# | COZO/IDepartmentTransaction.cs | pjlammertyn/Cozo-Broker | 8710a478d4a14dff63d3f258614066d90fc980c9 | [
"Apache-2.0"
] | null | null | null | COZO/IDepartmentTransaction.cs | pjlammertyn/Cozo-Broker | 8710a478d4a14dff63d3f258614066d90fc980c9 | [
"Apache-2.0"
] | 1 | 2016-11-09T14:36:57.000Z | 2016-11-09T14:36:57.000Z | COZO/IDepartmentTransaction.cs | pjlammertyn/Cozo-Broker | 8710a478d4a14dff63d3f258614066d90fc980c9 | [
"Apache-2.0"
] | null | null | null | using COZO.KMEHR;
namespace COZO
{
public interface IDepartmentTransaction
{
transaction GetDepartmentTransaction(string departmentId);
//CDHCPARTYvalues GetDepartment(string departmentId);
hcpartyType GetDepartmentHcpartyType(string aHCParty, string departmentId);
}
}
| 25.666667 | 83 | 0.746753 |
03604b29ef9d817ee736de4dc4f11d1006ba9042 | 705 | swift | Swift | huff/views/TweetPhotoCollectionViewCell.swift | rluftw/huff | 153dbbb4b8929ca2fbc590ca88804f189f8115d7 | [
"MIT"
] | 1 | 2021-02-23T21:08:30.000Z | 2021-02-23T21:08:30.000Z | huff/views/TweetPhotoCollectionViewCell.swift | rluftw/huff | 153dbbb4b8929ca2fbc590ca88804f189f8115d7 | [
"MIT"
] | null | null | null | huff/views/TweetPhotoCollectionViewCell.swift | rluftw/huff | 153dbbb4b8929ca2fbc590ca88804f189f8115d7 | [
"MIT"
] | null | null | null | //
// TweetPhotoCollectionCollectionViewCell.swift
// huff
//
// Created by Xing Hui Lu on 12/10/16.
// Copyright © 2016 Xing Hui Lu. All rights reserved.
//
import UIKit
class TweetPhotoCollectionViewCell: UICollectionViewCell {
// MARK: - properties
var photo: UIImage? {
didSet {
... | 22.03125 | 66 | 0.634043 |
e74db4c4bfbceab3b1a7a69d6dd5d71fca431790 | 4,416 | php | PHP | resources/views/home/index.blade.php | way640/zdmoney | 5319ec58322937a3dc18f9800c695852b90b899b | [
"MIT"
] | null | null | null | resources/views/home/index.blade.php | way640/zdmoney | 5319ec58322937a3dc18f9800c695852b90b899b | [
"MIT"
] | null | null | null | resources/views/home/index.blade.php | way640/zdmoney | 5319ec58322937a3dc18f9800c695852b90b899b | [
"MIT"
] | null | null | null | @extends('Home.title')
@section('content')
<!--main-------------------------------------------------------------------------------------------------------------->
<!--banner-----轮播图---------------------------------------------------------------------------------------->
<div id="banner" >
<img id="imgs" src="/ima... | 33.709924 | 133 | 0.409647 |
662749aa4f924566389584889915ed287ffe6301 | 23,848 | py | Python | classification/ngram_based_classifier.py | gbosetti/ca | 3f37edc4b8f69f61d02b881242522f6fa15e2695 | [
"MIT"
] | null | null | null | classification/ngram_based_classifier.py | gbosetti/ca | 3f37edc4b8f69f61d02b881242522f6fa15e2695 | [
"MIT"
] | 4 | 2021-06-08T22:30:03.000Z | 2022-03-12T00:48:52.000Z | classification/ngram_based_classifier.py | gbosetti/cati | 3f37edc4b8f69f61d02b881242522f6fa15e2695 | [
"MIT"
] | null | null | null | import string
import nltk
import traceback
from nltk.corpus import stopwords
nltk.download('stopwords')
from collections import Counter
from mabed.es_connector import Es_connector
from nltk.tokenize import TweetTokenizer
import re
import json
from elasticsearch_dsl import UpdateByQuery
from nltk.stem.snowball import Fr... | 36.024169 | 225 | 0.497358 |
3dc15dba2cd94dd8a6dd52f4da3685548d08164d | 297 | lua | Lua | easy/delta_time.lua | IlkhamGaysin/ce-challenges | ac6b8c1fc4b6c098e380b9d694e93e614f6c969b | [
"BSD-3-Clause"
] | 2 | 2018-06-24T17:09:16.000Z | 2020-08-03T11:44:54.000Z | easy/delta_time.lua | IlkhamGaysin/ce-challenges | ac6b8c1fc4b6c098e380b9d694e93e614f6c969b | [
"BSD-3-Clause"
] | null | null | null | easy/delta_time.lua | IlkhamGaysin/ce-challenges | ac6b8c1fc4b6c098e380b9d694e93e614f6c969b | [
"BSD-3-Clause"
] | null | null | null | function div(a, b) return math.floor(a/b) end
for line in io.lines(arg[1]) do
local a = {}
for i in line:gmatch("%d%d") do a[#a+1] = i end
local t = math.abs((a[1]-a[4])*3600 + (a[2]-a[5])*60 + a[3]-a[6])
io.write(string.format("%02d:%02d:%02d\n", div(t, 3600), div(t, 60)%60, t%60))
end
| 33 | 80 | 0.572391 |
834082bcebe844ffe9fc74287f3911a165e230d9 | 242 | ts | TypeScript | api/permissions/serialised.ts | usekoppa/api | 43bfad59e9e2594d4799a94902c87964e890d14d | [
"MIT"
] | 4 | 2021-11-20T14:24:11.000Z | 2021-12-12T05:12:13.000Z | api/permissions/serialised.ts | usekoppa/api | 43bfad59e9e2594d4799a94902c87964e890d14d | [
"MIT"
] | null | null | null | api/permissions/serialised.ts | usekoppa/api | 43bfad59e9e2594d4799a94902c87964e890d14d | [
"MIT"
] | null | null | null | import { Permission } from "./permission.ts";
/**
* A serialised permission field sent from the API.
*
* https://discord.com/developers/docs/topics/permissions#permissions
*/
export type SerialisedPermissions = `${Permission | number}`;
| 26.888889 | 69 | 0.727273 |
4c9917a0b1ce6fde5d1731a8004f021831445b92 | 5,029 | dart | Dart | lib/models/dokter_model.dart | mf4lsb/adc_nakama | a19dbe23f95afe181ed3895ffe55eb80c0f057ca | [
"Unlicense"
] | 1 | 2020-12-02T07:08:37.000Z | 2020-12-02T07:08:37.000Z | lib/models/dokter_model.dart | mf4lsb/adc_nakama | a19dbe23f95afe181ed3895ffe55eb80c0f057ca | [
"Unlicense"
] | null | null | null | lib/models/dokter_model.dart | mf4lsb/adc_nakama | a19dbe23f95afe181ed3895ffe55eb80c0f057ca | [
"Unlicense"
] | null | null | null | // To parse this JSON data, do
//
// final dokterModel = dokterModelFromJson(jsonString);
import 'dart:convert';
DokterModel dokterModelFromJson(String str) => DokterModel.fromJson(json.decode(str));
String dokterModelToJson(DokterModel data) => json.encode(data.toJson());
class DokterModel {
DokterModel({
... | 23.721698 | 86 | 0.58958 |
1a61caa4639109bcd033cdcb3e111c6b139be2a4 | 14,428 | py | Python | roboTraining/unitTest.py | Gabs48/SpringMassNetworks | d917ef242ed99b02f82e9ff8697960d0d1d65178 | [
"MIT"
] | 3 | 2019-11-27T15:35:20.000Z | 2021-12-09T08:20:34.000Z | roboTraining/unitTest.py | Gabs48/SpringMassNetworks | d917ef242ed99b02f82e9ff8697960d0d1d65178 | [
"MIT"
] | null | null | null | roboTraining/unitTest.py | Gabs48/SpringMassNetworks | d917ef242ed99b02f82e9ff8697960d0d1d65178 | [
"MIT"
] | 1 | 2021-03-16T15:42:36.000Z | 2021-03-16T15:42:36.000Z | from robot import SoftEnvironment, HardEnvironment, Morphology, SineControl, RobotState, Robot, SpringMorphology, SpringMorphology3D
from simulate import Plotter, Simulation, SimulationEnvironment, VerletSimulation
from training import Training, TrainingScheme, TrainingVariable, RandomTraining
from utils import SpaceL... | 36.342569 | 153 | 0.696562 |
cf0f741a09383991aab60c2811538dcff553fafb | 5,436 | php | PHP | qrcode.php | Ayshwarya02/QR-Attendance | 9dadad3b5326af1b565aa174cfa6bb2c948af2cf | [
"Unlicense"
] | 50 | 2015-02-27T02:01:59.000Z | 2022-01-16T10:16:58.000Z | qrcode.php | Ayshwarya02/QR-Attendance | 9dadad3b5326af1b565aa174cfa6bb2c948af2cf | [
"Unlicense"
] | 3 | 2017-03-13T14:38:00.000Z | 2021-12-03T15:37:36.000Z | qrcode.php | Ayshwarya02/QR-Attendance | 9dadad3b5326af1b565aa174cfa6bb2c948af2cf | [
"Unlicense"
] | 37 | 2016-06-29T11:33:17.000Z | 2022-03-13T13:38:52.000Z | <?php
require_once('classes/session.php');
require_once('classes/utilisateur.php');
require_once('classes/infos.php');
require_once('classes/ouvrier.php');
require_once('includes/functions.php');
require_once('includes/qrs.php');
$session = new Session();
if(!$session->is_loggedin())
{
$session->message("vous deve... | 34.624204 | 181 | 0.563098 |
a196ea0a1b34ac4e2ece197bd776240c2b0c10fb | 208 | ts | TypeScript | src/_core/interface/index.ts | neophytes08/OnlineBooking | f82c8a0890faa586a9b33013665d6846375ca4d7 | [
"MIT"
] | null | null | null | src/_core/interface/index.ts | neophytes08/OnlineBooking | f82c8a0890faa586a9b33013665d6846375ca4d7 | [
"MIT"
] | null | null | null | src/_core/interface/index.ts | neophytes08/OnlineBooking | f82c8a0890faa586a9b33013665d6846375ca4d7 | [
"MIT"
] | null | null | null | export * from './_Address.interface';
export * from './_ContactDetails.interface';
export * from './_Position.interface';
export * from './_UserCreate.interface';
export * from './_VerifiedStatus.interface';
| 34.666667 | 44 | 0.735577 |
1848bf55262c01745cbf8ab86a9bb4790bcd04bf | 695 | tsx | TypeScript | packages/native/src/assets/icons/SevenCircledFinaThin.tsx | jelbaz-ledger/ui | 893b82250c76d8c96d82c96f268c82dd8cfbd428 | [
"MIT"
] | null | null | null | packages/native/src/assets/icons/SevenCircledFinaThin.tsx | jelbaz-ledger/ui | 893b82250c76d8c96d82c96f268c82dd8cfbd428 | [
"MIT"
] | 3 | 2021-09-28T14:14:19.000Z | 2021-09-28T15:47:45.000Z | packages/native/src/assets/icons/SevenCircledFinaThin.tsx | nparigi-ledger/ui | 708d293aeac0d20eb3563e143d676be11def4cd4 | [
"MIT"
] | null | null | null | import * as React from "react";
import Svg, { Path } from "react-native-svg";
type Props = {
size?: number | string;
color?: string;
};
function SevenCircledFinaThin({
size = 16,
color = "currentColor",
}: Props): JSX.Element {
return (
<Svg width={size} height={size} viewBox="0 0 24 24" fill="none">
... | 30.217391 | 279 | 0.627338 |
4952b3768b0dca48691dc5c5b83eaddb86ce8c10 | 199 | py | Python | homeassistant/components/cloudflare/const.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 30,023 | 2016-04-13T10:17:53.000Z | 2020-03-02T12:56:31.000Z | homeassistant/components/cloudflare/const.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 31,101 | 2020-03-02T13:00:16.000Z | 2022-03-31T23:57:36.000Z | homeassistant/components/cloudflare/const.py | Vaarlion/core | f3de8b9f28de01abf72c0f5bb0b457eb1841f201 | [
"Apache-2.0"
] | 11,956 | 2016-04-13T18:42:31.000Z | 2020-03-02T09:32:12.000Z | """Constants for Cloudflare."""
DOMAIN = "cloudflare"
# Config
CONF_RECORDS = "records"
# Defaults
DEFAULT_UPDATE_INTERVAL = 60 # in minutes
# Services
SERVICE_UPDATE_RECORDS = "update_records"
| 15.307692 | 42 | 0.748744 |
02c6b4dbed15e710d6e9dbd33aee3f9119917f39 | 3,165 | cpp | C++ | GameDownloader/src/GameDownloader/Behavior/PostHookBehavior.cpp | ProtocolONE/cord.game-downloader | 90950019937cd2974801ca2f53ed3b4ecd1d219b | [
"Apache-2.0"
] | 1 | 2019-08-07T06:13:15.000Z | 2019-08-07T06:13:15.000Z | GameDownloader/src/GameDownloader/Behavior/PostHookBehavior.cpp | ProtocolONE/cord.game-downloader | 90950019937cd2974801ca2f53ed3b4ecd1d219b | [
"Apache-2.0"
] | null | null | null | GameDownloader/src/GameDownloader/Behavior/PostHookBehavior.cpp | ProtocolONE/cord.game-downloader | 90950019937cd2974801ca2f53ed3b4ecd1d219b | [
"Apache-2.0"
] | null | null | null | #include <GameDownloader/Behavior/PostHookBehavior.h>
#include <GameDownloader/ServiceState.h>
#include <GameDownloader/GameDownloadService.h>
#include <Core/Service.h>
#include <QtConcurrent/QtConcurrentRun>
namespace P1 {
namespace GameDownloader {
namespace Behavior {
PostHookBehavior::Po... | 35.965909 | 137 | 0.64139 |
3914e8e0dae31a6e8c8d799c2c0d1bd694a14fb2 | 2,279 | py | Python | notebooks/utils.py | cheginit/coastal_transition_zone | 84bcd77cf6246210d8fb592006cedc6e4a4091b5 | [
"MIT"
] | 1 | 2021-10-25T00:44:24.000Z | 2021-10-25T00:44:24.000Z | notebooks/utils.py | cheginit/coastal_transition_zone | 84bcd77cf6246210d8fb592006cedc6e4a4091b5 | [
"MIT"
] | null | null | null | notebooks/utils.py | cheginit/coastal_transition_zone | 84bcd77cf6246210d8fb592006cedc6e4a4091b5 | [
"MIT"
] | null | null | null | from pathlib import Path
import os
import geopandas as gpd
import pyproj
from shapely.geometry import Polygon
def read_config(fname):
if Path(fname).exists():
with open(fname, "r") as f:
inputs = filter(None, (line.rstrip() for line in f))
inputs = [line for line in inputs if not ... | 30.797297 | 105 | 0.605968 |
a4a44f29c0541b33ec09b93874666557517f0d07 | 7,910 | kt | Kotlin | src/main/kotlin/com/jetbrains/snakecharm/codeInsight/SmkTypeProvider.kt | JetBrains-Research/snakecharm | 3c1f8fd123812f5c5c3c9971d93daaee68c69fdf | [
"MIT"
] | 52 | 2019-01-11T22:51:59.000Z | 2021-12-12T13:28:21.000Z | src/main/kotlin/com/jetbrains/snakecharm/codeInsight/SmkTypeProvider.kt | JetBrains-Research/snakecharm | 3c1f8fd123812f5c5c3c9971d93daaee68c69fdf | [
"MIT"
] | 417 | 2019-01-11T19:02:48.000Z | 2022-03-28T14:52:04.000Z | src/main/kotlin/com/jetbrains/snakecharm/codeInsight/SmkTypeProvider.kt | JetBrains-Research/snakecharm | 3c1f8fd123812f5c5c3c9971d93daaee68c69fdf | [
"MIT"
] | 10 | 2019-05-17T08:10:52.000Z | 2021-07-26T18:20:03.000Z | package com.jetbrains.snakecharm.codeInsight
import com.intellij.lang.injection.InjectedLanguageManager
import com.intellij.openapi.util.Ref
import com.intellij.psi.PsiElement
import com.intellij.psi.util.PsiTreeUtil
import com.jetbrains.python.psi.*
import com.jetbrains.python.psi.types.PyType
import com.jetbrains.py... | 40.984456 | 103 | 0.6622 |
3942456ee32b1b28218016db5412e47d5bcbf561 | 984 | py | Python | 945MinUnique/MinUnique.py | Easonyesheng/CodePractice | 91c8b09c278f5abb67e90f0096fc83bef975647b | [
"MIT"
] | null | null | null | 945MinUnique/MinUnique.py | Easonyesheng/CodePractice | 91c8b09c278f5abb67e90f0096fc83bef975647b | [
"MIT"
] | null | null | null | 945MinUnique/MinUnique.py | Easonyesheng/CodePractice | 91c8b09c278f5abb67e90f0096fc83bef975647b | [
"MIT"
] | null | null | null | """
给定整数数组 A,每次 move 操作将会选择任意 A[i],并将其递增 1。
返回使 A 中的每个值都是唯一的最少操作次数。
示例 1:
输入:[1,2,2]
输出:1
解释:经过一次 move 操作,数组将变为 [1, 2, 3]。
示例 2:
输入:[3,2,1,2,1,7]
输出:6
解释:经过 6 次 move 操作,数组将变为 [3, 4, 1, 2, 5, 7]。
可以看出 5 次或 5 次以下的 move 操作是不能让数组的每个值唯一的。
提示:
0 <= A.length <= 40000
0 <= A[i] < 40000
来源:力扣(LeetCode)
链接:https://leetcode... | 20.93617 | 144 | 0.572154 |
c676e82ef3436104b3f186fe3892e98b4d398930 | 1,476 | py | Python | _internal/generate.py | damz/gopherjs-feather-icons | 0ac41d4810753949b40a018597e32a185b002db1 | [
"MIT"
] | null | null | null | _internal/generate.py | damz/gopherjs-feather-icons | 0ac41d4810753949b40a018597e32a185b002db1 | [
"MIT"
] | null | null | null | _internal/generate.py | damz/gopherjs-feather-icons | 0ac41d4810753949b40a018597e32a185b002db1 | [
"MIT"
] | null | null | null | import os
import glob
import lxml.etree
import subprocess
if __name__ == "__main__":
parser = lxml.etree.XMLParser(remove_blank_text=True)
def normalize_xml(data):
root = lxml.etree.XML(data, parser=parser)
root.insert(
0,
root.makeelement("path", {
"vis... | 25.016949 | 78 | 0.47832 |
67733bffcace52d922f0fb77e0f81f89ac61065b | 1,524 | swift | Swift | Package.swift | vignatiev/periphery | 4ad5fb7ee5ab7f023445bd48e7be03646b9974d6 | [
"MIT"
] | 1 | 2020-09-16T15:24:18.000Z | 2020-09-16T15:24:18.000Z | Package.swift | vignatiev/periphery | 4ad5fb7ee5ab7f023445bd48e7be03646b9974d6 | [
"MIT"
] | null | null | null | Package.swift | vignatiev/periphery | 4ad5fb7ee5ab7f023445bd48e7be03646b9974d6 | [
"MIT"
] | 1 | 2020-03-06T09:49:52.000Z | 2020-03-06T09:49:52.000Z | // swift-tools-version:5.0
import PackageDescription
let package = Package(
name: "Periphery",
platforms: [
.macOS(.v10_12),
],
products: [
.executable(name: "periphery", targets: ["Periphery"]),
.library(name: "PeripheryKit", targets: ["PeripheryKit"])
],
dependencies: [
... | 30.48 | 90 | 0.519029 |
b0d25c37a192db0bb22af91d782716426346dd9e | 747 | lua | Lua | test/testping.lua | Ron2014/skynet-study | f13e57d11f326ec83451b4ed2fbd50d14a09bdca | [
"MIT"
] | 1 | 2021-02-08T12:27:24.000Z | 2021-02-08T12:27:24.000Z | test/testping.lua | Ron2014/skynet-study | f13e57d11f326ec83451b4ed2fbd50d14a09bdca | [
"MIT"
] | null | null | null | test/testping.lua | Ron2014/skynet-study | f13e57d11f326ec83451b4ed2fbd50d14a09bdca | [
"MIT"
] | 1 | 2022-01-23T05:14:55.000Z | 2022-01-23T05:14:55.000Z | local skynet = require "skynet"
local snax = require "skynet.snax"
skynet.start(function()
skynet.trace()
local ps = snax.newservice ("pingserver", "hello world")
print(ps.req.ping("foobar"))
print(ps.post.hello())
print(pcall(ps.req.error))
print("Hotfix (i) :", snax.hotfix(ps, [[
local i
local hel... | 19.657895 | 70 | 0.621151 |
a4981b2c5145e99b0ab15123b08119be1228b0ad | 688 | php | PHP | frontend/controllers/NewsController.php | Qosimjondev/Online-Magazin | 1a11dee06ab7f60339ec35a24925e51e01edd6bf | [
"BSD-3-Clause"
] | null | null | null | frontend/controllers/NewsController.php | Qosimjondev/Online-Magazin | 1a11dee06ab7f60339ec35a24925e51e01edd6bf | [
"BSD-3-Clause"
] | null | null | null | frontend/controllers/NewsController.php | Qosimjondev/Online-Magazin | 1a11dee06ab7f60339ec35a24925e51e01edd6bf | [
"BSD-3-Clause"
] | null | null | null | <?php
namespace frontend\controllers;
use common\models\News;
use yii\base\BaseObject;
use yii\data\ActiveDataProvider;
use yii\web\Controller;
class NewsController extends Controller
{
public function actionIndex(){
$newsDataProvider = new ActiveDataProvider([
'query' => News::find()->wher... | 21.5 | 58 | 0.579942 |
cda0b9dd7d8976468d726f1f5d2a7c9d37454b28 | 2,636 | cs | C# | Kooboo.Sites/Models/CmsFile.cs | tenghui-kooboo/Kooboo | 309c279f69a85a9e64b7205540fd94a4c3565bfc | [
"MIT"
] | null | null | null | Kooboo.Sites/Models/CmsFile.cs | tenghui-kooboo/Kooboo | 309c279f69a85a9e64b7205540fd94a4c3565bfc | [
"MIT"
] | null | null | null | Kooboo.Sites/Models/CmsFile.cs | tenghui-kooboo/Kooboo | 309c279f69a85a9e64b7205540fd94a4c3565bfc | [
"MIT"
] | null | null | null | //Copyright (c) 2018 Yardi Technology Limited. Http://www.kooboo.com
//All rights reserved.
using Kooboo.Data.Interface;
using Kooboo.Extensions;
using System;
using System.Security.Cryptography;
namespace Kooboo.Sites.Models
{
[Kooboo.Attributes.Diskable(Kooboo.Attributes.DiskType.Binary)]
[Kooboo.Attributes.R... | 25.843137 | 88 | 0.481411 |
c9debb7fcbb24d9468fe346ba1e2e390c487e7ed | 853 | ts | TypeScript | src/deleteChannel.ts | TriForMine/permissions-plugin | 4151ec8c40724193766fc33cf50cbc0ed6a87a5a | [
"Apache-2.0"
] | null | null | null | src/deleteChannel.ts | TriForMine/permissions-plugin | 4151ec8c40724193766fc33cf50cbc0ed6a87a5a | [
"Apache-2.0"
] | null | null | null | src/deleteChannel.ts | TriForMine/permissions-plugin | 4151ec8c40724193766fc33cf50cbc0ed6a87a5a | [
"Apache-2.0"
] | null | null | null | import { Bot } from "../deps.ts";
import { requireBotGuildPermissions } from "./permissions.ts";
export default function deleteChannel(bot: Bot) {
const deleteChannel = bot.helpers.deleteChannel;
bot.helpers.deleteChannel = async function (channelId, reason) {
const channel = await bot.cache.channels.get(chan... | 30.464286 | 72 | 0.689332 |
06e52ed56fd8ab1447e3e706695b5636bce5f12a | 66 | py | Python | cfdata/tabular/converters/string/__init__.py | carefree0910/carefree-data | ae0f4ea5724b4efd5d76f2a9d420acf3322c1d19 | [
"MIT"
] | 9 | 2020-10-25T11:52:34.000Z | 2022-01-23T02:45:41.000Z | cfdata/tabular/converters/string/__init__.py | carefree0910/carefree-data | ae0f4ea5724b4efd5d76f2a9d420acf3322c1d19 | [
"MIT"
] | 2 | 2020-08-02T01:58:48.000Z | 2021-02-26T11:24:19.000Z | cfdata/tabular/converters/string/__init__.py | carefree0910/carefree-data | ae0f4ea5724b4efd5d76f2a9d420acf3322c1d19 | [
"MIT"
] | 1 | 2021-11-04T14:34:13.000Z | 2021-11-04T14:34:13.000Z | from .core import StringConverter
__all__ = ["StringConverter"]
| 13.2 | 33 | 0.772727 |
7f2608feea144d943fc221d49f447c0ea7655c2c | 841 | cs | C# | LgTvController.cs | jasminetroll/LgTvControl | 397f71c5c9af9715d9262df2fb563a1b67b1a82e | [
"Beerware"
] | null | null | null | LgTvController.cs | jasminetroll/LgTvControl | 397f71c5c9af9715d9262df2fb563a1b67b1a82e | [
"Beerware"
] | null | null | null | LgTvController.cs | jasminetroll/LgTvControl | 397f71c5c9af9715d9262df2fb563a1b67b1a82e | [
"Beerware"
] | null | null | null | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Configuration;
namespace LagrangianDesign.LgTvControl {
[ApiController]
[Route("[controller]")]
public ... | 33.64 | 75 | 0.681332 |
60ecea9a72d5b9e11f86f83a7c099416846b154b | 3,241 | dart | Dart | lib/common/ab/provider/repos/read_history_db_provider.dart | sppsun/nlp_starter | bbeee24435c3a7b4475a426fda57b87a1fe2821f | [
"Apache-2.0"
] | 5 | 2019-07-08T03:25:51.000Z | 2020-08-20T03:32:52.000Z | lib/common/ab/provider/repos/read_history_db_provider.dart | sppsun/nlp_starter | bbeee24435c3a7b4475a426fda57b87a1fe2821f | [
"Apache-2.0"
] | null | null | null | lib/common/ab/provider/repos/read_history_db_provider.dart | sppsun/nlp_starter | bbeee24435c3a7b4475a426fda57b87a1fe2821f | [
"Apache-2.0"
] | null | null | null | import 'dart:async';
import 'package:flutter/foundation.dart';
import 'package:nlp_starter/common/ab/sql_provider.dart';
import 'package:nlp_starter/common/config/config.dart';
import 'package:nlp_starter/common/model/Repository.dart';
import 'package:sqflite/sqflite.dart';
import 'package:nlp_starter/common/utils/cod... | 28.182609 | 125 | 0.670781 |
747986f5c245dcedaf05244e566aa01213a94ebe | 71 | c | C | test.c | alexander-novo/CS460Novotny | 201eae265587602e72c11c88d25036cd8c56c5ce | [
"MIT"
] | null | null | null | test.c | alexander-novo/CS460Novotny | 201eae265587602e72c11c88d25036cd8c56c5ce | [
"MIT"
] | null | null | null | test.c | alexander-novo/CS460Novotny | 201eae265587602e72c11c88d25036cd8c56c5ce | [
"MIT"
] | 1 | 2019-03-23T01:00:46.000Z | 2019-03-23T01:00:46.000Z | void main(void) {
int x = 1;
if (x == 1) {
int y = 2;
}
y = 3;
}
| 8.875 | 17 | 0.394366 |
a00b4757562002db1c2ed29755305c5fd1be9807 | 8,286 | ts | TypeScript | src/ServiceWorker/sw.ts | NYPL-Simplified/web-reader | 601521d411299e2453d9942bd8c43b0aa5fd1a33 | [
"MIT"
] | 14 | 2016-08-04T16:32:51.000Z | 2022-01-24T14:55:51.000Z | src/ServiceWorker/sw.ts | NYPL-Simplified/web-reader | 601521d411299e2453d9942bd8c43b0aa5fd1a33 | [
"MIT"
] | 110 | 2017-02-10T15:26:10.000Z | 2022-03-30T13:40:51.000Z | src/ServiceWorker/sw.ts | NYPL-Simplified/web-reader | 601521d411299e2453d9942bd8c43b0aa5fd1a33 | [
"MIT"
] | 3 | 2021-06-28T19:35:27.000Z | 2022-02-12T07:34:13.000Z | import { clientsClaim } from 'workbox-core';
import { ExpirationPlugin } from 'workbox-expiration';
import { CacheFirst, StaleWhileRevalidate } from 'workbox-strategies';
import { IS_DEV } from '../constants';
import { WebpubManifest } from '../types';
import { ReadiumLink } from '../WebpubManifestTypes/ReadiumLink';
i... | 31.505703 | 125 | 0.657012 |
f142a150dad64f68ddef062796c67fa7cd4f804f | 1,484 | dart | Dart | pkg/analyzer/test/src/diagnostics/unqualified_reference_to_non_local_static_member_test.dart | lfkdsk/sdk | 07aa9ec332600b585b0edc8d3805fb413e4370bd | [
"BSD-3-Clause"
] | 1 | 2021-03-12T13:52:01.000Z | 2021-03-12T13:52:01.000Z | pkg/analyzer/test/src/diagnostics/unqualified_reference_to_non_local_static_member_test.dart | lfkdsk/sdk | 07aa9ec332600b585b0edc8d3805fb413e4370bd | [
"BSD-3-Clause"
] | null | null | null | pkg/analyzer/test/src/diagnostics/unqualified_reference_to_non_local_static_member_test.dart | lfkdsk/sdk | 07aa9ec332600b585b0edc8d3805fb413e4370bd | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:analyzer/src/error/codes.dart';
import 'package:test_reflective_loader/test_reflective_l... | 20.054054 | 80 | 0.656334 |
57fbeaf9d2574bc6917a3dde0d1ba025403a4229 | 6,632 | php | PHP | app/search.php | psztrnk/catalog-app | 74e972739db79a837f7be0b0d6222e53f8ade964 | [
"MIT"
] | 16 | 2020-07-28T11:44:39.000Z | 2022-02-28T04:28:48.000Z | app/search.php | psztrnk/catalog-app | 74e972739db79a837f7be0b0d6222e53f8ade964 | [
"MIT"
] | 11 | 2017-08-10T07:55:26.000Z | 2022-01-17T21:25:49.000Z | app/search.php | psztrnk/catalog-app | 74e972739db79a837f7be0b0d6222e53f8ade964 | [
"MIT"
] | 12 | 2020-01-20T17:38:22.000Z | 2022-03-01T21:48:44.000Z | <?php include_once('snippets/header.php') ?>
<?php
$term_suffix = $_POST['term'];
$collection = $db->table('books');
if (strpos($term_suffix, 'title:') !== FALSE) {
$term = trim(str_replace('title:', '', $term_suffix));
$s_field = $lang['SFIELD_TITLE'];
$results_books = $db->table('books')
... | 37.050279 | 194 | 0.489897 |
2083ab7300b381c6da6179e07ba2636b7c6d6146 | 5,257 | ddl | SQL | Data/Samples/Testing Chambers/InputConfig.ddl | Tekh-ops/ezEngine | d6a5887d8709f267bf8f2943ef15054e29f6d3d5 | [
"MIT"
] | 703 | 2015-03-07T15:30:40.000Z | 2022-03-30T00:12:40.000Z | Data/Samples/Testing Chambers/InputConfig.ddl | Tekh-ops/ezEngine | d6a5887d8709f267bf8f2943ef15054e29f6d3d5 | [
"MIT"
] | 233 | 2015-01-11T16:54:32.000Z | 2022-03-19T18:00:47.000Z | Data/Samples/Testing Chambers/InputConfig.ddl | Tekh-ops/ezEngine | d6a5887d8709f267bf8f2943ef15054e29f6d3d5 | [
"MIT"
] | 101 | 2016-10-28T14:05:10.000Z | 2022-03-30T19:00:59.000Z | InputAction
{
string %Set{"Player"}
string %Action{"MoveForwards"}
bool %TimeScale{false}
Slot
{
string %Key{"keyboard_w"}
float %Scale{1}
}
Slot
{
string %Key{"controller0_leftstick_posy"}
float %Scale{1}
}
}
InputAction
{
string %Set{"Player"}
string %Action{"MoveBackwards"}
bool %TimeScale{false}... | 13.7979 | 44 | 0.661594 |
a3bf8a97e01e5259008d2221ae4a3a724d2a70da | 6,961 | java | Java | rxtomcat-container/src/main/java/net/tonwu/tomcat/container/core/AdapterImpl.java | ctlcom2010/RxTomcat | a28692469ebf662fcc418f330d4b35015175e817 | [
"Apache-2.0"
] | 7 | 2019-07-04T13:01:44.000Z | 2021-09-14T10:15:59.000Z | rxtomcat-container/src/main/java/net/tonwu/tomcat/container/core/AdapterImpl.java | ctlcom2010/RxTomcat | a28692469ebf662fcc418f330d4b35015175e817 | [
"Apache-2.0"
] | null | null | null | rxtomcat-container/src/main/java/net/tonwu/tomcat/container/core/AdapterImpl.java | ctlcom2010/RxTomcat | a28692469ebf662fcc418f330d4b35015175e817 | [
"Apache-2.0"
] | 3 | 2020-09-20T15:11:16.000Z | 2021-05-20T01:11:02.000Z | /**
* Copyright 2019 tonwu.net - 顿悟源码
*
* 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 agre... | 34.122549 | 106 | 0.568022 |
7f508bb25cd6de158f0e6d283332258cc1cb8f2c | 535 | sql | SQL | WebContent/bookstore.sql | sumitprojects/JavaProject | 073f14dca17cfc30b702caf3080276ac8bc6f05e | [
"MIT"
] | 4 | 2018-07-03T12:14:35.000Z | 2019-08-13T13:54:03.000Z | WebContent/bookstore.sql | sumitprojects/JavaProject | 073f14dca17cfc30b702caf3080276ac8bc6f05e | [
"MIT"
] | null | null | null | WebContent/bookstore.sql | sumitprojects/JavaProject | 073f14dca17cfc30b702caf3080276ac8bc6f05e | [
"MIT"
] | 1 | 2019-07-24T13:43:35.000Z | 2019-07-24T13:43:35.000Z | CREATE TABLE `book` (
`book_id` int(11) NOT NULL,
`title` varchar(128) NOT NULL,
`author` varchar(45) NOT NULL,
`price` float NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
INSERT INTO `book` (`book_id`, `title`, `author`, `price`) VALUES
(1, 'testsds', 'test', 1000),
(2, 'test', 'test', 2000);
ALTER TABLE `b... | 33.4375 | 69 | 0.678505 |
9c4ab19b84978152cefc6bc4d6d5aac07824fc10 | 1,338 | rs | Rust | src/player/bullet.rs | roeldev/godot-rust-space-sidescroller | 0ec9737e47d5554e7995a1b5cd2333af0c5c0630 | [
"BSD-3-Clause"
] | 2 | 2021-08-30T23:53:23.000Z | 2021-12-14T06:29:11.000Z | src/player/bullet.rs | roeldev/godot-rust-space-sidescroller | 0ec9737e47d5554e7995a1b5cd2333af0c5c0630 | [
"BSD-3-Clause"
] | null | null | null | src/player/bullet.rs | roeldev/godot-rust-space-sidescroller | 0ec9737e47d5554e7995a1b5cd2333af0c5c0630 | [
"BSD-3-Clause"
] | 1 | 2021-07-12T15:21:43.000Z | 2021-07-12T15:21:43.000Z | // Copyright (c) 2021, Roel Schut. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
use crate::*;
use crate::utils::convert::TryInstanceFrom;
#[derive(NativeClass)]
#[inherit(Sprite)]
pub struct PlayerBullet {
#[property(default = 100.0)]... | 26.235294 | 108 | 0.578475 |
d27eae2bf6995f06d39f58fcb2b49558cf90a952 | 2,218 | sh | Shell | by-tag/os/verify_copy_process.sh | milosz/shell-octo-adventure | d5db9c42043f0952aaae6fc5ca788084497e7444 | [
"MIT"
] | null | null | null | by-tag/os/verify_copy_process.sh | milosz/shell-octo-adventure | d5db9c42043f0952aaae6fc5ca788084497e7444 | [
"MIT"
] | null | null | null | by-tag/os/verify_copy_process.sh | milosz/shell-octo-adventure | d5db9c42043f0952aaae6fc5ca788084497e7444 | [
"MIT"
] | null | null | null | #!/bin/sh
# Simple "copy [directories] and verify [files]" shell script
# Sample usage: copy.sh /from_directory /to_directory
# https://blog.sleeplessbeastie.eu/2014/11/21/how-to-verify-copy-process/
# used commands
find_command=$(which find)
shasum_command=$(which sha256sum)
cat_command=$(which cat)
unlink_command=$(... | 30.805556 | 122 | 0.632552 |
49162563ee7a5c06c5af0b306fed87f317ec328d | 12,136 | py | Python | Fiji/imgproc.py | eufmike/storm_image_processing | 076335519be0be3b66d289a180421d36770ab820 | [
"CC-BY-4.0"
] | null | null | null | Fiji/imgproc.py | eufmike/storm_image_processing | 076335519be0be3b66d289a180421d36770ab820 | [
"CC-BY-4.0"
] | null | null | null | Fiji/imgproc.py | eufmike/storm_image_processing | 076335519be0be3b66d289a180421d36770ab820 | [
"CC-BY-4.0"
] | null | null | null | #@ UIService uiService
#@ LogService log
#@ File(label="Select the main directory", style="directory", value="/Volumes/LaCie_DataStorage/xiaochao_wei_STORM imaging/STORM_imaging/", persist=false) path
#@ String(label="Name of Analysis Folder", value = "analysis_20190419", persist=false) dir_output
#@ File(label="Folder... | 29.672372 | 176 | 0.689436 |
729c12dbac0340a861dab19eb8b1fc43fc64d8e8 | 68,725 | cs | C# | FHSDK/Sync/FHSyncDataset.cs | alexlobanov/fh-dotnet-sdk | 6b5b1c5b351386a396d3f0ba600ca7194d691ce4 | [
"Apache-2.0"
] | null | null | null | FHSDK/Sync/FHSyncDataset.cs | alexlobanov/fh-dotnet-sdk | 6b5b1c5b351386a396d3f0ba600ca7194d691ce4 | [
"Apache-2.0"
] | 46 | 2015-02-17T13:24:52.000Z | 2019-06-08T19:26:30.000Z | FHSDK/Sync/FHSyncDataset.cs | alexlobanov/fh-dotnet-sdk | 6b5b1c5b351386a396d3f0ba600ca7194d691ce4 | [
"Apache-2.0"
] | 14 | 2015-01-27T08:17:52.000Z | 2018-09-17T22:30:40.000Z | using System;
using System.Collections.Generic;
using FHSDK.Services;
using System.Threading.Tasks;
using System.IO;
using System.Diagnostics.Contracts;
using System.Xml;
using Newtonsoft.Json;
using System.Net;
using System.Runtime.CompilerServices;
using FHSDK.Services.Data;
using FHSDK.Services.Log;
using FHSDK.Ser... | 42.527847 | 239 | 0.515387 |
2fb4e2d871819b3c8343ec0beb98ef31b9d2ee82 | 547 | py | Python | contrib/tornado/test/curl_httpclient_test.py | loggly/alertbirds-community-edition | b35f0ffbe80049dfa74d79e9e45b4cce4cdbf47a | [
"Apache-2.0"
] | 2 | 2015-10-28T23:14:47.000Z | 2015-11-27T18:00:12.000Z | tornado/test/curl_httpclient_test.py | joetyson/tornado | 02ce53b1fd8b4acc4721e6616b73d11bf6c6a4fb | [
"Apache-2.0"
] | null | null | null | tornado/test/curl_httpclient_test.py | joetyson/tornado | 02ce53b1fd8b4acc4721e6616b73d11bf6c6a4fb | [
"Apache-2.0"
] | null | null | null | from tornado.test.httpclient_test import HTTPClientCommonTestCase
try:
import pycurl
except ImportError:
pycurl = None
if pycurl is not None:
from tornado.curl_httpclient import CurlAsyncHTTPClient
class CurlHTTPClientCommonTestCase(HTTPClientCommonTestCase):
def get_http_client(self):
return... | 26.047619 | 73 | 0.800731 |
4376a7f943138627d4508c1123ab3d7c99af91c6 | 472 | ts | TypeScript | server/api/tasks/controller.ts | huideyeren/iosifWeb | 7be7b35788d0a30084581befde28df617aa9474d | [
"MIT"
] | null | null | null | server/api/tasks/controller.ts | huideyeren/iosifWeb | 7be7b35788d0a30084581befde28df617aa9474d | [
"MIT"
] | null | null | null | server/api/tasks/controller.ts | huideyeren/iosifWeb | 7be7b35788d0a30084581befde28df617aa9474d | [
"MIT"
] | null | null | null | import { defineController } from './$relay'
import { getTasks, createTask } from '$/service/tasks'
const print = (text: string) => console.log(text)
export default defineController({ getTasks, print }, ({ getTasks, print }) => ({
get: async ({ query }) => {
if (query?.message) print(query.message)
return {... | 27.764706 | 80 | 0.627119 |
c42540e5c27ad1cc5aea128573f1731dc0b40771 | 3,385 | cc | C++ | stig/rpc/msg.cc | ctidder/stigdb | d9ef3eb117d46542745ca98c55df13ec71447091 | [
"Apache-2.0"
] | 5 | 2018-04-24T12:36:50.000Z | 2020-03-25T00:37:17.000Z | stig/rpc/msg.cc | ctidder/stigdb | d9ef3eb117d46542745ca98c55df13ec71447091 | [
"Apache-2.0"
] | null | null | null | stig/rpc/msg.cc | ctidder/stigdb | d9ef3eb117d46542745ca98c55df13ec71447091 | [
"Apache-2.0"
] | 2 | 2018-04-24T12:39:24.000Z | 2020-03-25T00:45:08.000Z | /* <stig/rpc/msg.cc>
Implements <stig/rpc/msg.h>.
Copyright 2010-2014 Tagged
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
... | 32.864078 | 109 | 0.690694 |
e28f815e05920f26f0bd6064ce5648e50bec33d2 | 533 | py | Python | materials/Au.py | zhangzheng1023/PyPhysics | c06f632144e21f5edd9653d95e566d532efbc937 | [
"MIT"
] | null | null | null | materials/Au.py | zhangzheng1023/PyPhysics | c06f632144e21f5edd9653d95e566d532efbc937 | [
"MIT"
] | null | null | null | materials/Au.py | zhangzheng1023/PyPhysics | c06f632144e21f5edd9653d95e566d532efbc937 | [
"MIT"
] | null | null | null | # coding=utf-8
import basic
import matplotlib.pyplot as plt
def au_dielectric_complex(lambda_0):
lambda_c = 8.9342e-6
lambda_p = 1.6826e-7
epsilon_complex = 1 - (lambda_0**2*lambda_c)/(lambda_p**2*(lambda_c+complex(0, lambda_0)))
return epsilon_complex
# Au材料的折射率实部的可视化
x = []
y = []
wavelength = 400... | 24.227273 | 94 | 0.72045 |
7c829ae2b11e47b7a3c1e1998d8a816e91d550a5 | 807 | swift | Swift | QiitaKit/Sources/UI/LoadingFooterView.swift | masashi-sutou/QiitaKitForSample | 1efa35eebe3735d5857c73023c724037bbfe7853 | [
"MIT"
] | 1 | 2020-04-03T00:36:50.000Z | 2020-04-03T00:36:50.000Z | QiitaKit/Sources/UI/LoadingFooterView.swift | masashi-sutou/QiitaKitForSample | 1efa35eebe3735d5857c73023c724037bbfe7853 | [
"MIT"
] | null | null | null | QiitaKit/Sources/UI/LoadingFooterView.swift | masashi-sutou/QiitaKitForSample | 1efa35eebe3735d5857c73023c724037bbfe7853 | [
"MIT"
] | null | null | null | //
// LoadingFooterView.swift
// QiitaKit
//
// Created by 須藤将史 on 2017/11/23.
// Copyright © 2017年 須藤将史. All rights reserved.
//
import UIKit
final public class LoadingFooterView: UITableViewHeaderFooterView, Nibable {
public static let defaultHeight: CGFloat = 44
@IBOutlet weak var activityIndicat... | 26.032258 | 76 | 0.578686 |
7489b4c4ba9e53aed3a3a7e068aa7f1e27348224 | 15,659 | dart | Dart | lib/solitaire/game_screen.dart | lepak-xyz/Flutter-Games | 84185c988f96683b0a13816b602afcab75859ce5 | [
"MIT"
] | null | null | null | lib/solitaire/game_screen.dart | lepak-xyz/Flutter-Games | 84185c988f96683b0a13816b602afcab75859ce5 | [
"MIT"
] | null | null | null | lib/solitaire/game_screen.dart | lepak-xyz/Flutter-Games | 84185c988f96683b0a13816b602afcab75859ce5 | [
"MIT"
] | null | null | null | import 'dart:math';
import 'package:flutter/material.dart';
import 'package:flutter_games/solitaire/card_column.dart';
import 'package:flutter_games/solitaire/empty_card.dart';
import 'package:flutter_games/solitaire/playing_card.dart';
import 'package:flutter_games/solitaire/transformed_card.dart';
class GameScreen ... | 29.769962 | 70 | 0.456351 |
e1bd0d9ce6d8461ee82dc741593ffee23a0dea80 | 4,612 | ps1 | PowerShell | DomainManagement/functions/passwordpolicies/Register-DMPasswordPolicy.ps1 | WillyMoselhy/DomainManagement | e9b2fff30e7c7b66d9057389909447180a0fb634 | [
"MIT"
] | 6 | 2020-02-24T12:34:47.000Z | 2020-08-25T08:48:16.000Z | DomainManagement/functions/passwordpolicies/Register-DMPasswordPolicy.ps1 | WillyMoselhy/DomainManagement | e9b2fff30e7c7b66d9057389909447180a0fb634 | [
"MIT"
] | 22 | 2020-02-03T15:37:16.000Z | 2021-03-15T07:33:48.000Z | DomainManagement/functions/passwordpolicies/Register-DMPasswordPolicy.ps1 | WillyMoselhy/DomainManagement | e9b2fff30e7c7b66d9057389909447180a0fb634 | [
"MIT"
] | 2 | 2020-09-28T15:19:35.000Z | 2021-12-30T02:10:06.000Z | function Register-DMPasswordPolicy
{
<#
.SYNOPSIS
Register a new Finegrained Password Policy as the desired state.
.DESCRIPTION
Register a new Finegrained Password Policy as the desired state.
These policies are then compared to the current state in a domain.
.PARAMETER Name
The name of the PSO.
.PA... | 28.645963 | 120 | 0.754553 |
76f2e862f3c8a31b6cac1d4d62cdd0a2bbd9a42e | 436 | c | C | linux-2.6.0/drivers/media/common/saa7146_vv_ksyms.c | dnhua/Linux_study | 96863b599cbba9c925b3209bed07b1d7b60cb463 | [
"MIT"
] | 1 | 2020-11-10T12:47:02.000Z | 2020-11-10T12:47:02.000Z | linux-2.6.0/drivers/media/common/saa7146_vv_ksyms.c | dnhua/Linux_study | 96863b599cbba9c925b3209bed07b1d7b60cb463 | [
"MIT"
] | null | null | null | linux-2.6.0/drivers/media/common/saa7146_vv_ksyms.c | dnhua/Linux_study | 96863b599cbba9c925b3209bed07b1d7b60cb463 | [
"MIT"
] | null | null | null | #include <linux/module.h>
#include <media/saa7146_vv.h>
EXPORT_SYMBOL_GPL(saa7146_vbi_uops);
EXPORT_SYMBOL_GPL(saa7146_video_uops);
EXPORT_SYMBOL_GPL(saa7146_start_preview);
EXPORT_SYMBOL_GPL(saa7146_stop_preview);
EXPORT_SYMBOL_GPL(saa7146_set_hps_source_and_sync);
EXPORT_SYMBOL_GPL(saa7146_register_device);
EXPORT... | 27.25 | 51 | 0.876147 |
0dab6a11c0d89d6eb3153b6d95c8cae9e117a816 | 992 | rb | Ruby | db/migrate/20210219061358_create_colors.rb | cpcsacggc/barbershopHQ | 6c67125d89ef638915cf4a95bee68f08719cf4cd | [
"MIT"
] | null | null | null | db/migrate/20210219061358_create_colors.rb | cpcsacggc/barbershopHQ | 6c67125d89ef638915cf4a95bee68f08719cf4cd | [
"MIT"
] | null | null | null | db/migrate/20210219061358_create_colors.rb | cpcsacggc/barbershopHQ | 6c67125d89ef638915cf4a95bee68f08719cf4cd | [
"MIT"
] | null | null | null | class CreateColors < ActiveRecord::Migration[6.1]
def change
create_table :colors do |t|
t.text :name
t.text :value
t.timestamps
end
Color.create :name => 'Black', :value =>'#000000'
Color.create :name => 'SaddleBrown', :value =>'#8b4513'
Color.create :name => 'Orange', :valu... | 41.333333 | 63 | 0.570565 |
e2f526138b8678858f8ed7c6cd655bed425ce0eb | 138 | py | Python | hindi_numbers_info/biggerNumbers.py | gvvishwanath/numbers-to-words | 16e016a8b135bf1ba4791e2426ce9d40d3bfd8ad | [
"MIT"
] | 1 | 2020-07-03T08:03:28.000Z | 2020-07-03T08:03:28.000Z | hindi_numbers_info/biggerNumbers.py | gvvishwanath/numbers-to-words | 16e016a8b135bf1ba4791e2426ce9d40d3bfd8ad | [
"MIT"
] | null | null | null | hindi_numbers_info/biggerNumbers.py | gvvishwanath/numbers-to-words | 16e016a8b135bf1ba4791e2426ce9d40d3bfd8ad | [
"MIT"
] | null | null | null | Lakh = 100 * 1000
Crore = 100 * Lakh
biggerNumbers = {
100 : "sau",
1000 : "hazaar",
Lakh : "laakh",
Crore : "karoD"
}
| 13.8 | 21 | 0.514493 |
395058d4b785c1a242a2aee8ca684f57e965ec58 | 494 | py | Python | plot.py | bandreghetti/autoplay | 4d3ba7c7383dfb2abf73040bf521f463b1966c30 | [
"MIT"
] | null | null | null | plot.py | bandreghetti/autoplay | 4d3ba7c7383dfb2abf73040bf521f463b1966c30 | [
"MIT"
] | null | null | null | plot.py | bandreghetti/autoplay | 4d3ba7c7383dfb2abf73040bf521f463b1966c30 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from games import gameList
import numpy as np
import sys
import os
from matplotlib import pyplot as plt
def main():
if len(sys.argv) <= 1:
print("Usage: ./plot.py <foldername>")
print("Example: ./plot.py MLP")
exit()
foldername = sys.argv[1]
history_x = np.... | 20.583333 | 66 | 0.649798 |
27de48cba1d7ce9aef8b737afb99a4c5e937fade | 8,179 | dart | Dart | packages/flutter_goldens_client/lib/skia_client.dart | josh-ksr/flutter | abfad9cc4994b61de64c9ef1cb096498e18275dc | [
"BSD-3-Clause"
] | 7 | 2020-07-04T06:05:52.000Z | 2022-02-26T00:41:51.000Z | packages/flutter_goldens_client/lib/skia_client.dart | josh-ksr/flutter | abfad9cc4994b61de64c9ef1cb096498e18275dc | [
"BSD-3-Clause"
] | 1 | 2019-03-06T07:31:58.000Z | 2019-03-06T07:31:58.000Z | packages/flutter_goldens_client/lib/skia_client.dart | josh-ksr/flutter | abfad9cc4994b61de64c9ef1cb096498e18275dc | [
"BSD-3-Clause"
] | 2 | 2019-12-24T10:06:47.000Z | 2021-09-26T14:04:57.000Z | // 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 'dart:convert';
import 'dart:io' as io;
import 'package:file/file.dart';
import 'package:file/local.dart';
import 'package:pa... | 36.67713 | 114 | 0.685903 |
c7c19bdd2726a3afd0396471d40879a8dcd1b67b | 181 | sql | SQL | apps/intake-db-workflows/schema/0002-intake_table.sql | MattHodge/tilt-demo | c3b00d71f1ba50c1e4d94f79b3da60ca10fb7e5b | [
"MIT"
] | null | null | null | apps/intake-db-workflows/schema/0002-intake_table.sql | MattHodge/tilt-demo | c3b00d71f1ba50c1e4d94f79b3da60ca10fb7e5b | [
"MIT"
] | null | null | null | apps/intake-db-workflows/schema/0002-intake_table.sql | MattHodge/tilt-demo | c3b00d71f1ba50c1e4d94f79b3da60ca10fb7e5b | [
"MIT"
] | null | null | null | USE intake;
create table if not exists intake
(
id int auto_increment,
host text null,
metric_name text null,
value int null,
constraint table_name_pk
primary key (id)
);
| 12.928571 | 33 | 0.740331 |
4450d8cd723d33dd7e7d4c06aaf2064c6fbb2e75 | 4,266 | py | Python | tests/test_cli.py | mriedmann/pipecheck | 9919c13c96d1c9ec28e90ca9c4da5f5b33eb41e9 | [
"MIT"
] | null | null | null | tests/test_cli.py | mriedmann/pipecheck | 9919c13c96d1c9ec28e90ca9c4da5f5b33eb41e9 | [
"MIT"
] | 5 | 2021-06-05T22:09:17.000Z | 2021-11-24T22:17:08.000Z | tests/test_cli.py | mriedmann/pipecheck | 9919c13c96d1c9ec28e90ca9c4da5f5b33eb41e9 | [
"MIT"
] | null | null | null | import unittest
from icecream import ic
from parameterized import parameterized
from pipecheck.cli import get_commands_and_config_from_args, parse_args
class CliTests(unittest.TestCase):
def assertSubset(self, collection, subset):
self.assertTrue(subset.items() <= collection.items(), f"{subset} not in {... | 45.870968 | 123 | 0.473277 |
b935c2efa78679e5745ca4fb8bff6d8f5a2018d8 | 240 | css | CSS | src/lib/VideoJsPlayerCss.css | Commission-on-POST/video-js-component-example | 9173cfa8ae7d5305c2e7311b00003c64120715e4 | [
"Unlicense"
] | null | null | null | src/lib/VideoJsPlayerCss.css | Commission-on-POST/video-js-component-example | 9173cfa8ae7d5305c2e7311b00003c64120715e4 | [
"Unlicense"
] | null | null | null | src/lib/VideoJsPlayerCss.css | Commission-on-POST/video-js-component-example | 9173cfa8ae7d5305c2e7311b00003c64120715e4 | [
"Unlicense"
] | null | null | null | .vjs-loading-spinner {
display: none !important;
}
.video-js .vjs-progress-control .vjs-play-progress .vjs-time-tooltip {
display: none;
}
.video-js .vjs-progress-control:hover .vjs-play-progress .vjs-time-tooltip {
display: block;
}
| 24 | 76 | 0.720833 |
3e6e8d9349438466b1c3c3102d66603ae7b35a14 | 1,014 | lua | Lua | copy-paste-recipe-signals_1.1.1/settings.lua | Zomis/FactorioMonitorMod | 8dc38e74d8a69c2e3dcf6f721490dc23433dab94 | [
"MIT"
] | 12 | 2017-05-28T10:56:36.000Z | 2021-01-14T19:57:26.000Z | copy-paste-recipe-signals_1.1.1/settings.lua | Zomis/FactorioMods | f0f7e6345a2c200a6b2dce07bc5aaf942ea3ab5f | [
"MIT"
] | 51 | 2016-04-04T16:31:58.000Z | 2022-02-11T23:46:28.000Z | copy-paste-recipe-signals_1.1.1/settings.lua | Zomis/FactorioMonitorMod | 8dc38e74d8a69c2e3dcf6f721490dc23433dab94 | [
"MIT"
] | 4 | 2016-06-06T19:09:19.000Z | 2021-01-29T22:30:49.000Z | data:extend({
{
type = "int-setting",
name = "copy-paste-recipe-signals-ingredient-multiplier",
setting_type = "runtime-per-user",
order = "a",
default_value = -1,
minimum_value = -100000,
maximum_value = 100000
}
})
data:extend({
{
type = "int-setting",
name = "copy-paste-recipe-signals-product-mu... | 20.28 | 59 | 0.635108 |
e77dc2b27ea791af68b709376ab3318e95095614 | 2,747 | php | PHP | routes/web.php | thanhlt-28/thanh-mvc | 585d0b23a75b8d1d705debb6c95e572895d6a7a6 | [
"MIT"
] | null | null | null | routes/web.php | thanhlt-28/thanh-mvc | 585d0b23a75b8d1d705debb6c95e572895d6a7a6 | [
"MIT"
] | null | null | null | routes/web.php | thanhlt-28/thanh-mvc | 585d0b23a75b8d1d705debb6c95e572895d6a7a6 | [
"MIT"
] | null | null | null | <?php
use App\Http\Controllers\CategoryController;
use App\Http\Controllers\HomeController;
use App\Http\Controllers\PostController;
use Illuminate\Routing\RouteGroup;
use Symfony\Component\HttpFoundation\Request;
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\LoginController;
use Illuminate\Support\Fa... | 41 | 96 | 0.617401 |
c9cba4b804574cf5a33dc4a2bacbd4f85351520f | 7,252 | ts | TypeScript | src/app/watch/routemap.ts | routehub/route_web | 45134159708b943c144a98f5cd04b5c0c2f889e1 | [
"MIT"
] | 27 | 2020-04-02T01:18:03.000Z | 2022-03-30T05:20:36.000Z | src/app/watch/routemap.ts | routehub/route_web | 45134159708b943c144a98f5cd04b5c0c2f889e1 | [
"MIT"
] | 25 | 2020-03-29T07:29:56.000Z | 2022-03-02T07:57:34.000Z | src/app/watch/routemap.ts | routehub/route_web | 45134159708b943c144a98f5cd04b5c0c2f889e1 | [
"MIT"
] | 6 | 2020-04-02T00:30:27.000Z | 2021-08-08T14:56:10.000Z | import * as L from 'leaflet'
import * as Elevation from 'leaflet.elevation/src/L.Control.Elevation.js'
import * as Hotline from 'leaflet-hotline'
import turfbbox from '@turf/bbox'
import * as turf from '@turf/helpers'
import * as AnimatedMarker from './animatedMarker.js'
export class Routemap {
gpsIcon = new L.icon(... | 35.90099 | 415 | 0.593354 |
8335eda676ff7416d3cb1c8adbd3674fb12015d6 | 1,812 | ts | TypeScript | node_modules/rmi/src/client/File/Attach/Lazy.ts | nikitabelotelov/coffee | 63cd862b827337a373301677f02d341d59ce2485 | [
"MIT"
] | null | null | null | node_modules/rmi/src/client/File/Attach/Lazy.ts | nikitabelotelov/coffee | 63cd862b827337a373301677f02d341d59ce2485 | [
"MIT"
] | null | null | null | node_modules/rmi/src/client/File/Attach/Lazy.ts | nikitabelotelov/coffee | 63cd862b827337a373301677f02d341d59ce2485 | [
"MIT"
] | null | null | null | /// <amd-module name="File/Attach/Lazy" />
import Base = require("File/Attach/Base");
import GetterContainerLazy = require("File/Attach/Container/GetterLazy");
import SourceContainerLazy = require("File/Attach/Container/SourceLazy");
import {IResourceGetter} from "File/IResourceGetter";
import {IResourceConstructor} fr... | 37.75 | 94 | 0.71468 |
806a156b5b274e016b13e781288c060354a4eda6 | 200 | swift | Swift | WeChatSwift/WebView/WebBottomToolBar.swift | InHisName/WeChatSwift | 3bbd4bf1abc741226aad5b05c333eb6db819bff9 | [
"MIT"
] | 132 | 2019-07-15T11:14:28.000Z | 2022-02-21T02:56:26.000Z | WeChatSwift/WebView/WebBottomToolBar.swift | InHisName/WeChatSwift | 3bbd4bf1abc741226aad5b05c333eb6db819bff9 | [
"MIT"
] | 6 | 2019-08-19T09:48:33.000Z | 2021-11-03T01:34:20.000Z | WeChatSwift/WebView/WebBottomToolBar.swift | InHisName/WeChatSwift | 3bbd4bf1abc741226aad5b05c333eb6db819bff9 | [
"MIT"
] | 33 | 2019-08-04T15:16:47.000Z | 2022-01-07T07:06:04.000Z | //
// WebBottomToolBar.swift
// WeChatSwift
//
// Created by xu.shuifeng on 2019/7/29.
// Copyright © 2019 alexiscn. All rights reserved.
//
import UIKit
class WebBottomToolBar: UIView {
}
| 14.285714 | 51 | 0.68 |
f40210eba3b29a277a2e41fd3218dfd7d72283c1 | 920 | cs | C# | Tests/Totem.Runtime.Tests/Json/TotemSerializerSettingsSpecs.cs | snickroger/Totem | d1c691391579f3af6cc29e851488bd9cc14d7141 | [
"MIT"
] | null | null | null | Tests/Totem.Runtime.Tests/Json/TotemSerializerSettingsSpecs.cs | snickroger/Totem | d1c691391579f3af6cc29e851488bd9cc14d7141 | [
"MIT"
] | null | null | null | Tests/Totem.Runtime.Tests/Json/TotemSerializerSettingsSpecs.cs | snickroger/Totem | d1c691391579f3af6cc29e851488bd9cc14d7141 | [
"MIT"
] | null | null | null | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Totem.Runtime.Json
{
/// <summary>
/// Scenarios involving the <see cref="TotemSerializerSettings"/> class
/// </summary>
public class TotemSerializerSettingsSpecs : Specs
{
void... | 27.878788 | 96 | 0.705435 |
7afc076b093a84eec20c246e69ae706ca325b959 | 5,671 | cs | C# | TOTPAuthenticationProvider/TOTPAuthenticationProviderTests/TOTPAuthenticatorDummyStore.cs | tinodo/adfsmfaadapter | 89f3695635eb962883e709cd113dee16a28051d1 | [
"MIT"
] | null | null | null | TOTPAuthenticationProvider/TOTPAuthenticationProviderTests/TOTPAuthenticatorDummyStore.cs | tinodo/adfsmfaadapter | 89f3695635eb962883e709cd113dee16a28051d1 | [
"MIT"
] | null | null | null | TOTPAuthenticationProvider/TOTPAuthenticationProviderTests/TOTPAuthenticatorDummyStore.cs | tinodo/adfsmfaadapter | 89f3695635eb962883e709cd113dee16a28051d1 | [
"MIT"
] | null | null | null | //-----------------------------------------------------------------------
// <copyright file="AuthenticationAdapterMetadata.cs" company="Microsoft">
// Copyright (c) Microsoft. All rights reserved.
// </copyright>
// <author>Tino Donderwinkel</author>
//
// THIS CODE AND ANY ASSOCIATED INFORMATION ARE PROVIDED “AS I... | 32.405714 | 115 | 0.507671 |
14f50ceda46d3d8f65de2bb29388df988b1d64f3 | 1,492 | ts | TypeScript | packages/muban-transition-component/src/hooks/useScrollTransition.ts | pigeonfresh/transition-component | fb829d18376741cc000638decf419b673f60d919 | [
"MIT"
] | null | null | null | packages/muban-transition-component/src/hooks/useScrollTransition.ts | pigeonfresh/transition-component | fb829d18376741cc000638decf419b673f60d919 | [
"MIT"
] | null | null | null | packages/muban-transition-component/src/hooks/useScrollTransition.ts | pigeonfresh/transition-component | fb829d18376741cc000638decf419b673f60d919 | [
"MIT"
] | null | null | null | import gsap from 'gsap';
import ScrollTrigger from 'gsap/ScrollTrigger';
import type { SetupScrollTransitionOptions } from '@mediamonks/core-transition-component';
import { useTransitionController } from './useTransitionController';
import type {
SetupSignatureElements,
TransitionRef,
TransitionRefElement,
} fro... | 33.909091 | 103 | 0.738606 |
be6a501da28d8dd85a162bf726b58568b716f3fa | 7,251 | ts | TypeScript | frontend/e2e/authenticated/special-uses/application-temp-outfitters.e2e-spec.ts | thimonas/fs-open-forest-platform | dd754d81833f1bc44e5c150f75f00fe91dd0c4b3 | [
"CC0-1.0"
] | null | null | null | frontend/e2e/authenticated/special-uses/application-temp-outfitters.e2e-spec.ts | thimonas/fs-open-forest-platform | dd754d81833f1bc44e5c150f75f00fe91dd0c4b3 | [
"CC0-1.0"
] | null | null | null | frontend/e2e/authenticated/special-uses/application-temp-outfitters.e2e-spec.ts | thimonas/fs-open-forest-platform | dd754d81833f1bc44e5c150f75f00fe91dd0c4b3 | [
"CC0-1.0"
] | null | null | null | import { TempOutfittersForm } from './app.po';
import { FieldValidation } from './field-validation.po';
import { browser, element, by, Key } from 'protractor';
describe('Apply for a temp outfitters permit', () => {
let page: TempOutfittersForm;
let fieldValidation: FieldValidation;
fieldValidation = new FieldVal... | 52.543478 | 127 | 0.680458 |
bb4730677c5a9788a92eb97b33a5e073c8f625d8 | 182 | cs | C# | src/Vyr.Agents/IAgent.cs | kaep7n/vyr | 265c9a1a5f6300023db460c73bd135efa6e30e66 | [
"MIT"
] | null | null | null | src/Vyr.Agents/IAgent.cs | kaep7n/vyr | 265c9a1a5f6300023db460c73bd135efa6e30e66 | [
"MIT"
] | 58 | 2016-09-23T06:03:34.000Z | 2020-04-07T05:55:25.000Z | src/Vyr.Agents/IAgent.cs | kaep7n/vyr | 265c9a1a5f6300023db460c73bd135efa6e30e66 | [
"MIT"
] | null | null | null | using System.Threading.Tasks;
namespace Vyr.Agents
{
public interface IAgent
{
bool IsRunning { get; }
Task RunAsync();
Task IdleAsync();
}
}
| 13 | 31 | 0.576923 |
3687a983baac1833fb066e512ed89f875275337a | 301 | dart | Dart | lib/models/Todo.dart | osmankh/flutter-todo | d20a3b5ccd2ea303c50819d586a66f7b75302d10 | [
"MIT"
] | null | null | null | lib/models/Todo.dart | osmankh/flutter-todo | d20a3b5ccd2ea303c50819d586a66f7b75302d10 | [
"MIT"
] | null | null | null | lib/models/Todo.dart | osmankh/flutter-todo | d20a3b5ccd2ea303c50819d586a66f7b75302d10 | [
"MIT"
] | null | null | null | class Todo {
final int id;
final String label;
final int checked;
final int task_id;
Todo({this.id, this.label, this.checked, this.task_id});
Map<String, dynamic> toMap() {
return {
'id': id,
'label': label,
'checked': checked,
'task_id': task_id
};
}
} | 17.705882 | 58 | 0.581395 |
555467d726a71f689bb9ce24db66e8ac095deaf9 | 15,824 | sql | SQL | sample-data/SQL/countries.sql | iohexo/graph | 3e0d2e3187d2ba6d2e0c2e6d84f31ea267581972 | [
"Apache-2.0"
] | null | null | null | sample-data/SQL/countries.sql | iohexo/graph | 3e0d2e3187d2ba6d2e0c2e6d84f31ea267581972 | [
"Apache-2.0"
] | null | null | null | sample-data/SQL/countries.sql | iohexo/graph | 3e0d2e3187d2ba6d2e0c2e6d84f31ea267581972 | [
"Apache-2.0"
] | null | null | null | INSERT INTO countries
(CODE,DESCR)
VALUES ('AF','Afghanistan');
INSERT INTO countries
(CODE,DESCR)
VALUES ('AL','Albania');
INSERT INTO countries
(CODE,DESCR)
VALUES ('DZ','Algeria');
INSERT INTO countries
(CODE,DESCR)
VALUES ('AS','American Samoa');
INSERT INTO countries
(CODE,DESCR)
VALUES ('AD','... | 22.193548 | 57 | 0.676694 |
f8f85a34f18c825113ef3cfaddb67d4103cb9dd5 | 3,948 | cc | C++ | ns-allinone-3.27/ns-3.27/src/wimax/model/simple-ofdm-send-param.cc | zack-braun/4607_NS | 43c8fb772e5552fb44bd7cd34173e73e3fb66537 | [
"MIT"
] | 93 | 2019-04-21T08:22:26.000Z | 2022-03-30T04:26:29.000Z | ns-allinone-3.27/ns-3.27/src/wimax/model/simple-ofdm-send-param.cc | zack-braun/4607_NS | 43c8fb772e5552fb44bd7cd34173e73e3fb66537 | [
"MIT"
] | 12 | 2019-04-19T16:39:58.000Z | 2021-06-22T13:18:32.000Z | ns-allinone-3.27/ns-3.27/src/wimax/model/simple-ofdm-send-param.cc | zack-braun/4607_NS | 43c8fb772e5552fb44bd7cd34173e73e3fb66537 | [
"MIT"
] | 21 | 2019-05-27T19:36:12.000Z | 2021-07-26T02:37:41.000Z | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2007,2008, 2009 INRIA, UDcast
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation;
*
* This pr... | 25.146497 | 82 | 0.664387 |
b89fb7891ced41338d0b2c020a66001d277672b7 | 4,813 | h | C | src/mame/includes/nbmj8891.h | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | 26 | 2015-03-31T06:25:51.000Z | 2021-12-14T09:29:04.000Z | src/mame/includes/nbmj8891.h | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | null | null | null | src/mame/includes/nbmj8891.h | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | 10 | 2015-03-27T05:45:51.000Z | 2022-02-04T06:57:36.000Z | // license:BSD-3-Clause
// copyright-holders:Takahiro Nogi
#include "machine/nb1413m3.h"
#include "emupal.h"
#include "screen.h"
class nbmj8891_state : public driver_device
{
public:
enum
{
TIMER_BLITTER
};
nbmj8891_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconf... | 30.08125 | 96 | 0.783295 |
0566524fa9092ac00f85807dd1b3596c8887f014 | 1,096 | rb | Ruby | db/post_migrate/20200608072931_backfill_imported_snippet_repositories.rb | glimmerhq/glimmerhq | e2cbbd9edadb5c3e40e7c29dd501e3bb26c0889f | [
"MIT"
] | 2 | 2020-10-10T05:58:12.000Z | 2020-10-10T09:30:57.000Z | db/post_migrate/20200608072931_backfill_imported_snippet_repositories.rb | glimmerhq/glimmerhq | e2cbbd9edadb5c3e40e7c29dd501e3bb26c0889f | [
"MIT"
] | 818 | 2016-07-12T01:02:16.000Z | 2022-03-31T23:54:44.000Z | db/post_migrate/20200608072931_backfill_imported_snippet_repositories.rb | glimmerhq/glimmerhq | e2cbbd9edadb5c3e40e7c29dd501e3bb26c0889f | [
"MIT"
] | 3 | 2020-11-04T05:28:36.000Z | 2020-11-06T04:49:03.000Z | # frozen_string_literal: true
class BackfillImportedSnippetRepositories < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
DELAY_INTERVAL = 2.minutes.to_i
BATCH_SIZE = 200
MIGRATION = 'BackfillSnippetRepositories'
disable_ddl_transaction!
class Snippet < ActiveR... | 22.833333 | 128 | 0.714416 |
cd72f5fa197b677dea6bef8d663f9ff36cc335a5 | 1,461 | cs | C# | ExpressionEngine/FunctionExpressions/CosExpression.cs | webmaster442/ExpressionEngine | 458331209aabcaa189221e51bedc827a95d967f3 | [
"MIT"
] | null | null | null | ExpressionEngine/FunctionExpressions/CosExpression.cs | webmaster442/ExpressionEngine | 458331209aabcaa189221e51bedc827a95d967f3 | [
"MIT"
] | null | null | null | ExpressionEngine/FunctionExpressions/CosExpression.cs | webmaster442/ExpressionEngine | 458331209aabcaa189221e51bedc827a95d967f3 | [
"MIT"
] | null | null | null | //-----------------------------------------------------------------------------
// (c) 2020 Ruzsinszki Gábor
// This code is licensed under MIT license (see LICENSE for details)
//-----------------------------------------------------------------------------
using ExpressionEngine.Base;
using ExpressionEngine.BaseExpr... | 31.085106 | 124 | 0.568789 |
af59165c25dfc49bc06440d9d1871b1138bd54ec | 970 | py | Python | backend/underbudget/schemas/envelope.py | vimofthevine/underbudget4 | c90eecf9879f7ce57c77a68b3f83b1d76c4451af | [
"MIT"
] | null | null | null | backend/underbudget/schemas/envelope.py | vimofthevine/underbudget4 | c90eecf9879f7ce57c77a68b3f83b1d76c4451af | [
"MIT"
] | 45 | 2019-12-23T23:45:10.000Z | 2022-03-31T05:01:22.000Z | backend/underbudget/schemas/envelope.py | vimofthevine/underbudget4 | c90eecf9879f7ce57c77a68b3f83b1d76c4451af | [
"MIT"
] | 1 | 2020-12-26T17:16:58.000Z | 2020-12-26T17:16:58.000Z | """ Envelope schema """
from marshmallow import Schema, fields, validate
class EnvelopeSchema(Schema):
""" Envelope schema """
id = fields.Integer(dump_only=True)
category_id = fields.Integer(data_key="categoryId")
name = fields.String(required=True, validate=validate.Length(min=1))
archived = fi... | 35.925926 | 86 | 0.717526 |
3a71b3ac8cd39a657b65824d87e57350163c28c3 | 2,231 | lua | Lua | 2015/Severance/gamemodes/cwseverance/plugins/sevsweps/plugin/entities/weapons/bs_sniper_base/cl_init.lua | kurozael/project-archive | dcac1a9a8dee65c11f4a631ec08d6eef320f5ad0 | [
"MIT"
] | null | null | null | 2015/Severance/gamemodes/cwseverance/plugins/sevsweps/plugin/entities/weapons/bs_sniper_base/cl_init.lua | kurozael/project-archive | dcac1a9a8dee65c11f4a631ec08d6eef320f5ad0 | [
"MIT"
] | null | null | null | 2015/Severance/gamemodes/cwseverance/plugins/sevsweps/plugin/entities/weapons/bs_sniper_base/cl_init.lua | kurozael/project-archive | dcac1a9a8dee65c11f4a631ec08d6eef320f5ad0 | [
"MIT"
] | 2 | 2020-03-16T22:49:09.000Z | 2022-01-02T23:04:32.000Z | --[[ TETA_BONITA MADE THE FADING EFFECT. THANKS TETA_BONITA IF YOU'RE STILL ALIVE. --]]
include("shared.lua")
local iScreenWidth = surface.ScreenWidth()
local iScreenHeight = surface.ScreenHeight()
local SCOPEFADE_TIME = 1
function SWEP:DrawHUD()
if self.UseScope then
local bScope = self.Weapon:GetNetworkedBool("... | 29.746667 | 120 | 0.727476 |
70666cc9346f32437dccb5e903a66c9843e1095a | 1,325 | lua | Lua | StarfallEx/Libraries/PNGWriter/Example.lua | Vurv78/lua | 715c654a6a3130c8de3142a700d5463a73f3ebe0 | [
"Apache-2.0"
] | 2 | 2021-08-08T22:06:37.000Z | 2022-02-11T12:29:50.000Z | StarfallEx/Libraries/PNGWriter/Example.lua | Vurv78/Lua | 7b07d4a13f16ea5222229c5cda24090bcf6e98be | [
"Apache-2.0"
] | 2 | 2020-06-23T08:25:57.000Z | 2020-12-09T04:17:11.000Z | StarfallEx/Libraries/PNGWriter/Example.lua | Vurv78/starfallex-creations | 7b07d4a13f16ea5222229c5cda24090bcf6e98be | [
"Apache-2.0"
] | null | null | null | --@name PNG Library Example 2
--@author Vurv
--@client
--@include pnglib.txt
if player() ~= owner() then return end
local createPNG = require("pnglib.txt")
local function canRun()
return quotaTotalAverage() < quotaMax()*0.4
end
local main_routine = coroutine.create(function()
render.createRenderTarget("rt")... | 28.804348 | 127 | 0.630189 |
c67aa9d2f3d66a14ff0ce79951866368734a7c25 | 276 | py | Python | dynamic_image_networks/hmdb51/utilities/calculate_training_metrics.py | DoranLyong/dynamic-images-for-action-recognition | 06a68c2337b45c44a8c7ec50e94585a9b9615ad0 | [
"MIT"
] | 22 | 2018-09-14T00:32:41.000Z | 2020-10-23T11:19:12.000Z | dynamic_image_networks/hmdb51/utilities/calculate_training_metrics.py | DoranLyong/dynamic-images-for-action-recognition | 06a68c2337b45c44a8c7ec50e94585a9b9615ad0 | [
"MIT"
] | 1 | 2020-07-08T03:10:54.000Z | 2020-07-13T19:04:26.000Z | dynamic_image_networks/hmdb51/utilities/calculate_training_metrics.py | DoranLyong/dynamic-images-for-action-recognition | 06a68c2337b45c44a8c7ec50e94585a9b9615ad0 | [
"MIT"
] | 7 | 2018-11-01T02:32:09.000Z | 2020-10-03T12:19:02.000Z | import torch
import numpy as np
def calculate_accuracy(y_pred, y_true):
# Inspired from https://pytorch.org/tutorials/beginner/blitz/cifar10_tutorial.html.
_, predicted = torch.max(y_pred, 1)
acc = (predicted == y_true).sum().item() / len(y_pred)
return acc
| 27.6 | 87 | 0.710145 |
c96bad685ee180ee39cee136f5d59721dfa4236c | 3,490 | tsx | TypeScript | src/CarouselNotice/index.tsx | joye61/cl-util | 4dca7d807c731c008248ea90fc05674f823726ed | [
"MIT"
] | 38 | 2018-12-28T10:32:17.000Z | 2019-12-18T02:42:40.000Z | src/CarouselNotice/index.tsx | joye61/cl-util | 4dca7d807c731c008248ea90fc05674f823726ed | [
"MIT"
] | null | null | null | src/CarouselNotice/index.tsx | joye61/cl-util | 4dca7d807c731c008248ea90fc05674f823726ed | [
"MIT"
] | 5 | 2019-09-25T13:21:55.000Z | 2019-11-12T09:08:46.000Z | /** @jsx jsx */
import { jsx, Interpolation, css, Theme } from "@emotion/react";
import * as CSS from "csstype";
import { useState, useEffect } from "react";
import { useInterval } from "../Effect/useInterval";
import { style, Bubble } from "./style";
export interface CarouselNoticeOption extends React.DetailedHTMLPro... | 23.90411 | 149 | 0.574212 |
38771d74cfeb86a93fa98bb01ade4f76435b0a0f | 773 | php | PHP | vendor/everlutionsk/email-bundle-2/Everlution/EmailBundle/Outbound/Message/UniqueOutboundMessage.php | rasbak/gamehub | 7221af9a0742c69cf32d66b8ff7a9f12d28b2d73 | [
"MIT"
] | null | null | null | vendor/everlutionsk/email-bundle-2/Everlution/EmailBundle/Outbound/Message/UniqueOutboundMessage.php | rasbak/gamehub | 7221af9a0742c69cf32d66b8ff7a9f12d28b2d73 | [
"MIT"
] | null | null | null | vendor/everlutionsk/email-bundle-2/Everlution/EmailBundle/Outbound/Message/UniqueOutboundMessage.php | rasbak/gamehub | 7221af9a0742c69cf32d66b8ff7a9f12d28b2d73 | [
"MIT"
] | null | null | null | <?php
namespace Everlution\EmailBundle\Outbound\Message;
use Everlution\EmailBundle\Message\IdentifiableMessage;
class UniqueOutboundMessage implements IdentifiableMessage
{
/** @var string */
protected $messageId;
/** @var OutboundMessage */
protected $message;
/**
* @param string $messa... | 18.404762 | 69 | 0.615783 |
6d03372f0bf5b0525f4e841f989a3358e82cd9e7 | 159 | ts | TypeScript | frontend-angular/projects/ui/autocomplete/public-api.ts | alaindet/mazu | 2945037bf58924f2e1568ebb5a7c0b98de8d44af | [
"MIT"
] | null | null | null | frontend-angular/projects/ui/autocomplete/public-api.ts | alaindet/mazu | 2945037bf58924f2e1568ebb5a7c0b98de8d44af | [
"MIT"
] | null | null | null | frontend-angular/projects/ui/autocomplete/public-api.ts | alaindet/mazu | 2945037bf58924f2e1568ebb5a7c0b98de8d44af | [
"MIT"
] | null | null | null | export * from './autocomplete-item/autocomplete-item.component';
export * from './autocomplete.module';
export * from './autocomplete/autocomplete.component';
| 39.75 | 64 | 0.767296 |
0dcddc261e0d438f73c18e1ed14e2a6a917535c8 | 142 | cs | C# | src/SFA.DAS.ApprenticeCommitments.Web/Services/IHasBackLink.cs | SkillsFundingAgency/das-apprentice-commitments-web | a27cf6878b0d4179ec19a7ebb8fb1a53afa3162c | [
"MIT"
] | null | null | null | src/SFA.DAS.ApprenticeCommitments.Web/Services/IHasBackLink.cs | SkillsFundingAgency/das-apprentice-commitments-web | a27cf6878b0d4179ec19a7ebb8fb1a53afa3162c | [
"MIT"
] | 77 | 2021-02-12T13:44:36.000Z | 2022-03-31T10:13:34.000Z | src/SFA.DAS.ApprenticeCommitments.Web/Services/IHasBackLink.cs | SkillsFundingAgency/das-apprentice-commitments-web | a27cf6878b0d4179ec19a7ebb8fb1a53afa3162c | [
"MIT"
] | 1 | 2021-04-11T08:32:47.000Z | 2021-04-11T08:32:47.000Z | namespace SFA.DAS.ApprenticeCommitments.Web.Services
{
public interface IHasBackLink
{
string Backlink { get; }
}
} | 20.285714 | 54 | 0.640845 |
f62b23f95c442075e0a6cadee50fc25b565bf479 | 4,132 | cpp | C++ | src/download.cpp | toyobayashi/evm-windows | 5734cfe8555ccc492671e15bc30b54467681c749 | [
"MIT"
] | null | null | null | src/download.cpp | toyobayashi/evm-windows | 5734cfe8555ccc492671e15bc30b54467681c749 | [
"MIT"
] | null | null | null | src/download.cpp | toyobayashi/evm-windows | 5734cfe8555ccc492671e15bc30b54467681c749 | [
"MIT"
] | null | null | null | #include <sstream>
#include <math.h>
#include <time.h>
#include "download.h"
#include <curl/curl.h>
#include <iostream>
#include "path.hpp"
//static size_t onDataString(void* buffer, size_t size, size_t nmemb, progressInfo * userp) {
// const char* d = (const char*)buffer;
// // userp->headerString.append(d, size * ... | 27.731544 | 110 | 0.644966 |
78ed36a96c2539e535ae3912ec2e1803531ec6e1 | 29 | dart | Dart | test/simple_cookies_test.dart | jannikhst/simple_cookies | c7f0b00488b5a3089efced57070ddfca386c950c | [
"MIT"
] | 1 | 2022-01-22T10:48:54.000Z | 2022-01-22T10:48:54.000Z | test/simple_cookies_test.dart | jannikhst/simple_cookies | c7f0b00488b5a3089efced57070ddfca386c950c | [
"MIT"
] | null | null | null | test/simple_cookies_test.dart | jannikhst/simple_cookies | c7f0b00488b5a3089efced57070ddfca386c950c | [
"MIT"
] | 1 | 2021-07-04T16:07:26.000Z | 2021-07-04T16:07:26.000Z | // @dart=2.9
void main() {}
| 7.25 | 14 | 0.482759 |
3b1240768082b6f7210dbe8da1f03534760b8482 | 895 | dart | Dart | test/yanti_test.dart | qqmikey/yanti | f1d53795a0cebf388f5f3888eba2fea0c8ef5366 | [
"MIT"
] | null | null | null | test/yanti_test.dart | qqmikey/yanti | f1d53795a0cebf388f5f3888eba2fea0c8ef5366 | [
"MIT"
] | null | null | null | test/yanti_test.dart | qqmikey/yanti | f1d53795a0cebf388f5f3888eba2fea0c8ef5366 | [
"MIT"
] | null | null | null | import 'package:flutter_test/flutter_test.dart';
import 'package:yanti/yanti.dart';
class TestClass {
TestClass({this.value});
String? value;
TestClass copyWith({Optional<String>? value}) {
return TestClass(
value: value.or(this.value),
);
}
}
void main() {
final foo = TestClass(value: 'foo'... | 20.813953 | 54 | 0.612291 |
db2609d868d52b0041dd7e4be081ff205e4b258b | 2,538 | rs | Rust | eventific_rabbitmq/src/rabbitmq_sender.rs | Joatin/eventific | 6e28ac6c3767690e4a6e326a4716ee64efc9345e | [
"MIT"
] | 8 | 2019-07-14T02:20:35.000Z | 2021-06-01T14:14:13.000Z | eventific_rabbitmq/src/rabbitmq_sender.rs | Joatin/eventific | 6e28ac6c3767690e4a6e326a4716ee64efc9345e | [
"MIT"
] | 9 | 2018-01-24T19:59:42.000Z | 2018-02-15T15:02:53.000Z | eventific_rabbitmq/src/rabbitmq_sender.rs | eventific/eventific | 6e28ac6c3767690e4a6e326a4716ee64efc9345e | [
"MIT"
] | 1 | 2018-02-04T22:28:16.000Z | 2018-02-04T22:28:16.000Z | use futures::{Future, TryStreamExt, FutureExt, StreamExt};
use std::process;
use std::sync::{Arc, RwLock};
use eventific::Uuid;
use eventific::{Component, Eventific};
use eventific::store::Store;
use std::fmt::Debug;
use strum::IntoEnumIterator;
use std::error::Error;
use lapin::{Connection, ConnectionProperties, Excha... | 32.126582 | 151 | 0.5658 |
cdcac765dd752315b2b36cbe161475ac038d015f | 1,054 | cs | C# | src/AspNet.Security.OAuth.HealthGraph/HealthGraphAuthenticationOptions.cs | TrovoLib/AspNet.Security.OAuth.Providers | f0f864a7ee5aecfb58657f016dac6bedd3008162 | [
"Apache-2.0"
] | 2 | 2020-01-30T08:40:13.000Z | 2021-06-04T20:07:44.000Z | src/AspNet.Security.OAuth.HealthGraph/HealthGraphAuthenticationOptions.cs | aabb1212/AspNet.Security.OAuth.Providers | 627626387fb5aa41ade3f21506aed2b8a35b71c9 | [
"Apache-2.0"
] | 1 | 2020-09-24T20:43:48.000Z | 2020-09-24T20:43:48.000Z | src/AspNet.Security.OAuth.HealthGraph/HealthGraphAuthenticationOptions.cs | aabb1212/AspNet.Security.OAuth.Providers | 627626387fb5aa41ade3f21506aed2b8a35b71c9 | [
"Apache-2.0"
] | null | null | null | /*
* Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
* See https://github.com/aspnet-contrib/AspNet.Security.OAuth.Providers
* for more information concerning the license and the contributors participating to this project.
*/
using System.Security.Claims;
namespace Asp... | 36.344828 | 98 | 0.777989 |
ce9d622741a01ad4f48dbc778932f1134400776c | 10,229 | lua | Lua | spec/plugins/cors/access_spec.lua | totalkyos/maskong | c28fad03c27bb23c8b394f8db19dd98d4b87b577 | [
"Apache-2.0"
] | null | null | null | spec/plugins/cors/access_spec.lua | totalkyos/maskong | c28fad03c27bb23c8b394f8db19dd98d4b87b577 | [
"Apache-2.0"
] | null | null | null | spec/plugins/cors/access_spec.lua | totalkyos/maskong | c28fad03c27bb23c8b394f8db19dd98d4b87b577 | [
"Apache-2.0"
] | 1 | 2019-10-07T17:55:19.000Z | 2019-10-07T17:55:19.000Z | local spec_helper = require "spec.spec_helpers"
local http_client = require "kong.tools.http_client"
local PROXY_URL = spec_helper.PROXY_URL
describe("CORS Plugin", function()
setup(function()
spec_helper.prepare_db()
spec_helper.insert_fixtures {
api = {
{ name = "tests-cors-1", request_host... | 48.942584 | 143 | 0.622642 |
a3757c611ccb467bdc6edf2f45a174be9efac9b9 | 124 | ts | TypeScript | src/app/components/page/index.ts | deniss-muhla/web-app-template | 4b89673fc094b93e8896ab9c7dd5616a42762ab6 | [
"MIT"
] | null | null | null | src/app/components/page/index.ts | deniss-muhla/web-app-template | 4b89673fc094b93e8896ab9c7dd5616a42762ab6 | [
"MIT"
] | 3 | 2021-03-09T17:30:36.000Z | 2021-09-01T22:24:59.000Z | src/app/components/page/index.ts | deniss-muhla/web-app-template | 4b89673fc094b93e8896ab9c7dd5616a42762ab6 | [
"MIT"
] | null | null | null | import _ from 'lodash';
import Page from './page';
import { memo } from 'react';
export default _.flowRight([memo])(Page);
| 20.666667 | 41 | 0.685484 |
e71932197432afb6ee415501a031cf97c0bd43e1 | 3,220 | php | PHP | src/app/code/Magestudy/Crud/Model/Repository/TagRepository.php | waghron/m2_code | a87d4999a10a9d7df645e5968487c345e2ec1a31 | [
"MIT"
] | 73 | 2018-02-19T16:46:02.000Z | 2022-03-21T07:06:05.000Z | Crud/Model/Repository/TagRepository.php | dbashyal/Magestudy | d6e8f234e2c4da4dc3c6cf6939e370b1e7ce3975 | [
"MIT"
] | 2 | 2019-06-23T13:41:04.000Z | 2020-12-29T19:42:15.000Z | Crud/Model/Repository/TagRepository.php | dbashyal/Magestudy | d6e8f234e2c4da4dc3c6cf6939e370b1e7ce3975 | [
"MIT"
] | 31 | 2018-07-31T20:18:22.000Z | 2022-03-02T13:44:07.000Z | <?php
namespace Magestudy\Crud\Model\Repository;
use Exception;
use Magento\Framework\Exception\CouldNotSaveException;
use Magento\Framework\Exception\NoSuchEntityException;
use Magento\Framework\Exception\StateException;
use Magento\Framework\Exception\ValidatorException;
use Magestudy\Crud\Api\TagRepositoryInterfac... | 27.058824 | 83 | 0.586025 |
2fa49b0ebec4aa7284ee66766356611800b89a25 | 4,072 | py | Python | test/test_mittens.py | akanshajainn/mittens | da8986385f785ef33954f59f3f907565e7b3da2f | [
"Apache-2.0"
] | 234 | 2018-03-28T11:55:53.000Z | 2022-01-05T13:09:35.000Z | test/test_mittens.py | akanshajainn/mittens | da8986385f785ef33954f59f3f907565e7b3da2f | [
"Apache-2.0"
] | 17 | 2018-04-16T03:50:38.000Z | 2022-03-16T16:36:38.000Z | test/test_mittens.py | akanshajainn/mittens | da8986385f785ef33954f59f3f907565e7b3da2f | [
"Apache-2.0"
] | 32 | 2018-03-29T08:17:57.000Z | 2021-09-03T13:08:35.000Z | """test_mittens.py
Test Mittens and GloVe using both NumPy and TensorFlow (if available).
If TensorFlow is not installed, those tests are skipped. If it is,
all tests are run twice: first with NumPy and then with TensorFlow,
according to the `framework` fixture.
Tests use pytest: from the command line, run:
$ pytes... | 30.616541 | 74 | 0.649312 |
fa22efbe915b9c31259c8762a991b410db1c96cb | 2,920 | cpp | C++ | client/cpp/src/net/tcp_client.cpp | Heng-W/network | 49e34a51b19f34b443f7a914b45f47acd146d562 | [
"MIT"
] | null | null | null | client/cpp/src/net/tcp_client.cpp | Heng-W/network | 49e34a51b19f34b443f7a914b45f47acd146d562 | [
"MIT"
] | null | null | null | client/cpp/src/net/tcp_client.cpp | Heng-W/network | 49e34a51b19f34b443f7a914b45f47acd146d562 | [
"MIT"
] | null | null | null |
#include "tcp_client.h"
#include "../util/logger.h"
#include "connector.h"
#include "socket.h"
namespace net
{
TcpClient::TcpClient(const InetAddress& serverAddr)
: connector_(new Connector(serverAddr)),
connectionCallback_(defaultConnectionCallback),
messageCallback_(defaultMessageCallback),
... | 21.62963 | 94 | 0.603082 |
b0e1a13c6288ba1ad7da38f63107757e48bb6f3b | 6,573 | sql | SQL | crud_laravel.sql | birunidev/lara-crud | 2e2d79be358908392d0f29f2780a5f0bb313e82b | [
"MIT"
] | null | null | null | crud_laravel.sql | birunidev/lara-crud | 2e2d79be358908392d0f29f2780a5f0bb313e82b | [
"MIT"
] | 3 | 2021-02-02T20:16:54.000Z | 2022-02-27T07:39:00.000Z | crud_laravel.sql | birunidev/lara-crud | 2e2d79be358908392d0f29f2780a5f0bb313e82b | [
"MIT"
] | null | null | null | -- phpMyAdmin SQL Dump
-- version 4.9.5deb2
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Jul 03, 2020 at 09:17 PM
-- Server version: 8.0.20-0ubuntu0.20.04.1
-- PHP Version: 7.4.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
... | 29.877273 | 214 | 0.695573 |
79ae852e4da7fb4f202b819a625c8d9368eae0d2 | 10,115 | php | PHP | extensions/language_redirect/lib/class.languageredirect.php | Sasha-Olesky/Symphony-CMS | 1e77b0ec058b53879984fa9d08baf7a3e82d1864 | [
"MIT"
] | null | null | null | extensions/language_redirect/lib/class.languageredirect.php | Sasha-Olesky/Symphony-CMS | 1e77b0ec058b53879984fa9d08baf7a3e82d1864 | [
"MIT"
] | 1 | 2020-08-31T12:18:48.000Z | 2020-08-31T20:30:17.000Z | extensions/language_redirect/lib/class.languageredirect.php | Sasha-Olesky/Symphony-CMS | 1e77b0ec058b53879984fa9d08baf7a3e82d1864 | [
"MIT"
] | null | null | null | <?php
if(!defined('__IN_SYMPHONY__')) die('<h2>Error</h2><p>You cannot directly access this file</p>');
Class LanguageRedirect{
private static $_instance;
private $_language;
private $_region;
private $_language_code;
private $_supported_language_codes;
// I don't know those languages, so if Y... | 37.60223 | 134 | 0.504498 |
f881928db93179030bf2887c8e6986133f13352f | 311 | lua | Lua | Projects/DataTemplates/template_lua/test_tbexcelfromjsonmultirow.lua | fanlanweiy/luban_examples | 9ddca2a01e8db1573953be3f32c59104451cd96e | [
"MIT"
] | 44 | 2021-05-06T06:16:55.000Z | 2022-03-30T06:27:25.000Z | Projects/DataTemplates/template_lua/test_tbexcelfromjsonmultirow.lua | HFX-93/luban_examples | 5b90e392d404950d12ff803a186b26bdea5e0292 | [
"MIT"
] | 1 | 2021-07-25T16:35:32.000Z | 2021-08-23T04:59:49.000Z | Projects/DataTemplates/template_lua/test_tbexcelfromjsonmultirow.lua | HFX-93/luban_examples | 5b90e392d404950d12ff803a186b26bdea5e0292 | [
"MIT"
] | 14 | 2021-06-09T10:38:59.000Z | 2022-03-30T06:27:24.000Z |
return
{
[1] = {id=1,x=5,items={{x=1,y=true,z="abcd",a={x=10,y=100,},b={1,3,5,},},{x=2,y=false,z="abcd",a={x=22,y=33,},b={4,5,},},},},
[2] = {id=2,x=9,items={{x=2,y=true,z="abcd",a={x=10,y=11,},b={1,3,5,},},{x=4,y=false,z="abcd",a={x=22,y=33,},b={4,5,},},{x=5,y=false,z="abcd",a={x=22,y=33,},b={4,5,},},},},
}
| 44.428571 | 172 | 0.463023 |
6f5481483630fab3929c5afff0a8d8782f073f9d | 408 | rb | Ruby | qa/qa/page/main/oauth.rb | abdullatif1992/gitlabhq | 2de002b3db1bc199755f8be212fa8804fcb80905 | [
"MIT"
] | 1 | 2018-07-31T00:12:33.000Z | 2018-07-31T00:12:33.000Z | qa/qa/page/main/oauth.rb | abdullatif1992/gitlabhq | 2de002b3db1bc199755f8be212fa8804fcb80905 | [
"MIT"
] | 5 | 2021-05-21T00:46:08.000Z | 2022-03-02T11:15:45.000Z | qa/qa/page/main/oauth.rb | abdullatif1992/gitlabhq | 2de002b3db1bc199755f8be212fa8804fcb80905 | [
"MIT"
] | 2 | 2019-11-28T19:12:40.000Z | 2020-11-04T05:29:58.000Z | module QA
module Page
module Main
class OAuth < Page::Base
view 'app/views/doorkeeper/authorizations/new.html.haml' do
element :authorization_button, 'submit_tag "Authorize"'
end
def needs_authorization?
page.current_url.include?('/oauth')
end
de... | 20.4 | 67 | 0.598039 |
3895c2dac4fe91113cd4e588a16c600c628b1428 | 91 | php | PHP | sites/index.php | cbatista8a/docker-lamp | ecfc33edcc9e5530f16ba85310478d60cceee303 | [
"MIT"
] | null | null | null | sites/index.php | cbatista8a/docker-lamp | ecfc33edcc9e5530f16ba85310478d60cceee303 | [
"MIT"
] | null | null | null | sites/index.php | cbatista8a/docker-lamp | ecfc33edcc9e5530f16ba85310478d60cceee303 | [
"MIT"
] | null | null | null | <html>
<head>
<title>Hello Docker</title>
</head>
<body>
Hello Docker
</body>
</html>
| 9.1 | 31 | 0.615385 |
80f694ead0128a352106ea998f863e06c1a0fb1c | 1,494 | dart | Dart | test/render_mark_test.dart | contentstack/contentstack-utils-dart | a3c1db59179fd672d01dfdf3de98ccf382fcdea5 | [
"MIT"
] | null | null | null | test/render_mark_test.dart | contentstack/contentstack-utils-dart | a3c1db59179fd672d01dfdf3de98ccf382fcdea5 | [
"MIT"
] | null | null | null | test/render_mark_test.dart | contentstack/contentstack-utils-dart | a3c1db59179fd672d01dfdf3de98ccf382fcdea5 | [
"MIT"
] | 1 | 2021-04-15T19:17:30.000Z | 2021-04-15T19:17:30.000Z | import 'package:contentstack_utils/src/model/Option.dart';
import 'package:test/expect.dart';
import 'package:test/scaffolding.dart';
void main() {
test('test option superscript styletype', () {
var option = Option().renderMark('superscript', 'lorem ipsum lorem ipsum');
expect('<sup>lorem ipsum lorem ipsum</... | 35.571429 | 79 | 0.662651 |
d5772eae82d09423d8f21d9f657e8d5a7e3382a2 | 245 | swift | Swift | crashes-duplicates/13580-swift-typechecker-checksubstitutions.swift | radex/swift-compiler-crashes | 41a18a98ae38e40384a38695805745d509b6979e | [
"MIT"
] | null | null | null | crashes-duplicates/13580-swift-typechecker-checksubstitutions.swift | radex/swift-compiler-crashes | 41a18a98ae38e40384a38695805745d509b6979e | [
"MIT"
] | null | null | null | crashes-duplicates/13580-swift-typechecker-checksubstitutions.swift | radex/swift-compiler-crashes | 41a18a98ae38e40384a38695805745d509b6979e | [
"MIT"
] | null | null | null | // Distributed under the terms of the MIT license
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
// Test case found by fuzzing
enum A {
{
}
enum S<e {
{
}
{
}
func b( f
{
}
}
enum S<I : S<Int>
let f = S
| 12.894737 | 87 | 0.665306 |
35d17e941d18189b429c256b0990de2de1009f1a | 214 | swift | Swift | Example/ItemEdit.swift | Weebly/Cereal | 11833453f2ef1e19afb0e97e545d5e2b7df4e044 | [
"BSD-3-Clause"
] | 410 | 2015-10-16T00:33:12.000Z | 2021-12-07T08:42:50.000Z | Example/ItemEdit.swift | Weebly/Cereal | 11833453f2ef1e19afb0e97e545d5e2b7df4e044 | [
"BSD-3-Clause"
] | 26 | 2015-10-17T10:15:39.000Z | 2017-11-16T12:20:18.000Z | Example/ItemEdit.swift | Weebly/Cereal | 11833453f2ef1e19afb0e97e545d5e2b7df4e044 | [
"BSD-3-Clause"
] | 23 | 2015-10-23T05:16:50.000Z | 2018-03-26T11:08:08.000Z | //
// ItemEdit.swift
// Cereal
//
// Created by James Richard on 9/30/15.
// Copyright © 2015 Weebly. All rights reserved.
//
import Foundation
enum ItemEdit {
case creating
case editing(IndexPath)
}
| 14.266667 | 49 | 0.668224 |
589deb75b6eebc5f0c11156b959e21f2461163a2 | 3,090 | css | CSS | css/good_typography/intentional_typography.css | jpamental/rwt-workshop | 0feaeea5fd3a33f59db9c3084b62915ece9eceef | [
"MIT"
] | 2 | 2016-09-13T07:24:49.000Z | 2020-02-11T04:33:04.000Z | css/good_typography/intentional_typography.css | jpamental/rwt-workshop | 0feaeea5fd3a33f59db9c3084b62915ece9eceef | [
"MIT"
] | null | null | null | css/good_typography/intentional_typography.css | jpamental/rwt-workshop | 0feaeea5fd3a33f59db9c3084b62915ece9eceef | [
"MIT"
] | null | null | null | body,
p,
th,
td,
ul,
li {
font-family: "Playfair Display", Georgia, "New Times Roman", serif;
font-feature-settings: "liga" 1, "kern" 1;
}
p {
/* Warning: Needed for oldIE support, but words are broken up letter-by-letter */
-ms-word-break: break-all;
word-break: break-all;
/* Non standard for webk... | 21.458333 | 81 | 0.656958 |