hexsha stringlengths 40 40 | size int64 140 1.03M | ext stringclasses 94
values | lang stringclasses 21
values | max_stars_repo_path stringlengths 3 663 | max_stars_repo_name stringlengths 4 120 | 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 663 | max_issues_repo_name stringlengths 4 120 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 116k ⌀ | 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 663 | 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 140 1.03M | avg_line_length float64 2.32 23.1k | max_line_length int64 11 938k | alphanum_fraction float64 0.01 1 | score float32 3 4.25 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
75553f12364fcac7b0d50118d7540b7a870c3770 | 4,482 | go | Go | pkg/operator/client/client.go | haotaogeng/fabedge | 029ef6f41254ac131f468f5968f167c1e123e3ae | [
"Apache-2.0"
] | 380 | 2021-07-16T04:53:57.000Z | 2022-03-31T12:54:34.000Z | pkg/operator/client/client.go | haotaogeng/fabedge | 029ef6f41254ac131f468f5968f167c1e123e3ae | [
"Apache-2.0"
] | 12 | 2021-08-04T02:04:44.000Z | 2022-02-18T10:28:26.000Z | pkg/operator/client/client.go | haotaogeng/fabedge | 029ef6f41254ac131f468f5968f167c1e123e3ae | [
"Apache-2.0"
] | 48 | 2021-07-16T06:23:27.000Z | 2022-03-22T12:04:53.000Z | package client
import (
"bytes"
"crypto/tls"
"crypto/x509"
"encoding/json"
"io"
"io/ioutil"
"net/http"
"net/url"
"time"
apis "github.com/fabedge/fabedge/pkg/apis/v1alpha1"
"github.com/fabedge/fabedge/pkg/operator/apiserver"
certutil "github.com/fabedge/fabedge/pkg/util/cert"
)
const defaultTimeout = 5 * ... | 21.342857 | 125 | 0.700357 | 3.0625 |
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 | 3.125 |
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 | 3.171875 |
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 | 3.15625 |
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 | 3.03125 |
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 | 3.28125 |
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 | 3.296875 |
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 | 3.09375 |
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 | 3.078125 |
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 | 3.359375 |
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 | 3.015625 |
3901b90912c92ecbec531d317c18d9b08a3fe90d | 2,106 | py | Python | molior/molior/utils.py | randombenj/molior | 5f22935a1860c9ab206acfa52ba6206ae1755594 | [
"Apache-2.0"
] | null | null | null | molior/molior/utils.py | randombenj/molior | 5f22935a1860c9ab206acfa52ba6206ae1755594 | [
"Apache-2.0"
] | null | null | null | molior/molior/utils.py | randombenj/molior | 5f22935a1860c9ab206acfa52ba6206ae1755594 | [
"Apache-2.0"
] | null | null | null | """
Provides utilities for molior core.
"""
import re
import os
import shlex
from launchy import Launchy
from molior.aptly import AptlyApi
from .configuration import Configuration
from .logger import get_logger
logger = get_logger()
def get_aptly_connection():
"""
Connects to aptly server and returns aptly
... | 23.931818 | 103 | 0.617759 | 3.25 |
25c0f376d9ae58354eed6e30a086ccc6edd4d77f | 821 | js | JavaScript | src/main.js | 1808vue/vue | 9969d3ca1f28a8525207dd2e2c126c988eef533a | [
"MIT"
] | null | null | null | src/main.js | 1808vue/vue | 9969d3ca1f28a8525207dd2e2c126c988eef533a | [
"MIT"
] | null | null | null | src/main.js | 1808vue/vue | 9969d3ca1f28a8525207dd2e2c126c988eef533a | [
"MIT"
] | null | null | null | import "./styls/reset.less"
import Vue from 'vue'
import App from './App'
import Axios from "axios"
// 组件是vue实例的一个子类,所有vue原型链上的属性子类也会继承
Vue.prototype.$axios=Axios
Vue.config.productionTip = false
import router from './router'
// mint-ui的使用
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
Vue.use(MintUI)... | 19.093023 | 46 | 0.666261 | 3.0625 |
5ae11a799c495bdb135f12cf80ee513c6bbd408d | 1,399 | lua | Lua | ld48/app/window.lua | aglitchman/defold-ld48-game | 04844f623adcad675307566b0256d0a0a6145942 | [
"Apache-2.0"
] | 7 | 2021-04-27T12:52:16.000Z | 2021-08-08T19:30:10.000Z | ld48/app/window.lua | aglitchman/defold-ld48-game | 04844f623adcad675307566b0256d0a0a6145942 | [
"Apache-2.0"
] | null | null | null | ld48/app/window.lua | aglitchman/defold-ld48-game | 04844f623adcad675307566b0256d0a0a6145942 | [
"Apache-2.0"
] | null | null | null | local M = {}
function M.resize(game_width, game_height)
if sys.get_sys_info().system_name == "Windows" then
local displays = defos.get_displays()
local current_display_id = defos.get_current_display_id()
local screen_width = displays[current_display_id].bounds.width
local screen_hei... | 31.795455 | 72 | 0.626876 | 3.484375 |
99e532df9beb7587e655ef6e1140fc111900aeb4 | 2,786 | rs | Rust | src/lib.rs | mith-mmk/rust-rect | 48544c09c6320e4413d740f31fc3df2ef7452425 | [
"Apache-2.0",
"MIT"
] | null | null | null | src/lib.rs | mith-mmk/rust-rect | 48544c09c6320e4413d740f31fc3df2ef7452425 | [
"Apache-2.0",
"MIT"
] | null | null | null | src/lib.rs | mith-mmk/rust-rect | 48544c09c6320e4413d740f31fc3df2ef7452425 | [
"Apache-2.0",
"MIT"
] | null | null | null | mod utils;
use wasm_bindgen::prelude::*;
// When the `wee_alloc` feature is enabled, use `wee_alloc` as the global
// allocator.
#[cfg(feature = "wee_alloc")]
#[global_allocator]
static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;
#[wasm_bindgen]
extern {
fn alert(s: &str);
#[wasm_bindgen(js_namesp... | 25.559633 | 73 | 0.488155 | 3.0625 |
dae32a68d1054438c2c880ab4935911ec9323be4 | 12,469 | dart | Dart | lib/ui/bordered_container.dart | ashishbeck/slide_puzzle | e07be4cd82df851b5ce2099322495426a98cb6f5 | [
"MIT"
] | 1 | 2022-03-28T16:25:09.000Z | 2022-03-28T16:25:09.000Z | lib/ui/bordered_container.dart | ashishbeck/slide_puzzle | e07be4cd82df851b5ce2099322495426a98cb6f5 | [
"MIT"
] | null | null | null | lib/ui/bordered_container.dart | ashishbeck/slide_puzzle | e07be4cd82df851b5ce2099322495426a98cb6f5 | [
"MIT"
] | null | null | null | import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter/scheduler.dart';
import 'package:provider/provider.dart';
import 'package:slide_puzzle/code/audio.dart';
import 'package:slide_puzzle/code/constants.dart';
import 'package:slide_puzzle/code/providers.dart';
class ... | 32.471354 | 80 | 0.565723 | 3.1875 |
14bc716203b428eaa5bae937e64391a16dfa6668 | 4,419 | ts | TypeScript | src/MesaView.ts | 9sako6/MESA | 5a4f170a132d20410cf554890f5d26d107ca0664 | [
"MIT"
] | 3 | 2019-02-12T10:03:07.000Z | 2020-09-05T07:07:19.000Z | src/MesaView.ts | 9sako6/MESA | 5a4f170a132d20410cf554890f5d26d107ca0664 | [
"MIT"
] | 9 | 2019-02-11T20:11:31.000Z | 2020-01-03T20:35:40.000Z | src/MesaView.ts | 9sako6/MESA | 5a4f170a132d20410cf554890f5d26d107ca0664 | [
"MIT"
] | null | null | null | import $ from "jquery";
import MesaModel, { Attribute, Tag } from "./MesaModel";
export default class MesaView {
writeTextArea(text: string, model: MesaModel): void {
model.editor.session.setValue(text);
}
initUploadButton(): void {
const button: string = `
<form>
<label class="func-btn" for="up... | 30.6875 | 139 | 0.589274 | 3.015625 |
148fa05e5b14693b5257d98c8e442f1c68fe7737 | 6,180 | ts | TypeScript | src/modules/cau-notice-watcher/index.ts | paywteam/eodiro-api-mysql | 5276aa32340da11a627bf61dc3b37db63c73ead2 | [
"MIT"
] | 10 | 2020-06-22T11:41:15.000Z | 2021-07-16T02:19:22.000Z | src/modules/cau-notice-watcher/index.ts | paywteam/eodiro-api-mysql | 5276aa32340da11a627bf61dc3b37db63c73ead2 | [
"MIT"
] | 19 | 2020-06-02T11:40:17.000Z | 2021-04-13T23:14:30.000Z | src/modules/cau-notice-watcher/index.ts | paywteam/eodiro-api2 | 5276aa32340da11a627bf61dc3b37db63c73ead2 | [
"MIT"
] | 3 | 2020-10-04T13:02:05.000Z | 2021-01-22T16:05:35.000Z | import prisma from '@/modules/prisma'
import appRoot from 'app-root-path'
import chalk from 'chalk'
import fs from 'fs'
import { JSDOM } from 'jsdom'
import { PendingXHR } from 'pending-xhr-puppeteer'
import puppeteer, { Browser, Page } from 'puppeteer'
import { telegramBot } from '../telegram-bot'
export type TitleBu... | 23.769231 | 80 | 0.628964 | 3.109375 |
66471c1bcf910bbfac3a5d1798572d1132da56b2 | 14,811 | py | Python | roverpro/rover_data.py | RoverRobotics/openrover_python | bbbd24596db9f1c4e5a57d92fca048e289b668f0 | [
"BSD-3-Clause"
] | 1 | 2020-05-20T18:43:28.000Z | 2020-05-20T18:43:28.000Z | roverpro/rover_data.py | RoverRobotics/openrover_python | bbbd24596db9f1c4e5a57d92fca048e289b668f0 | [
"BSD-3-Clause"
] | 3 | 2019-04-22T21:48:07.000Z | 2020-06-17T19:10:04.000Z | roverpro/rover_data.py | RoverRobotics/openrover_python | bbbd24596db9f1c4e5a57d92fca048e289b668f0 | [
"BSD-3-Clause"
] | 1 | 2020-08-16T21:40:00.000Z | 2020-08-16T21:40:00.000Z | import abc
import enum
import functools
import re
from typing import NamedTuple, Optional
class ReadDataFormat(abc.ABC):
python_type = None
@abc.abstractmethod
def description(self):
raise NotImplementedError
@abc.abstractmethod
def unpack(self, b: bytes):
raise NotImplementedErr... | 30.85625 | 97 | 0.629735 | 3.109375 |
1a3f153b6496e72131bae8cb8f13d77c521410a0 | 42,940 | py | Python | classification/ecrire2.py | kachaloali/m1Stage | 9fd254637dca0aea7f0e930164079fd18c499284 | [
"MIT"
] | null | null | null | classification/ecrire2.py | kachaloali/m1Stage | 9fd254637dca0aea7f0e930164079fd18c499284 | [
"MIT"
] | null | null | null | classification/ecrire2.py | kachaloali/m1Stage | 9fd254637dca0aea7f0e930164079fd18c499284 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import commands
import operator
from optparse import OptionParser
parser = OptionParser(usage="%prog -f FILE, FILE,... -o FILE -l FILE")
parser.add_option("-f", "--files", dest="files",help ="The classification files separated by commas")
parser.add_option("-o", "--out", dest="out",he... | 57.948718 | 156 | 0.437215 | 3.359375 |
7d2feac86e578379277416be2a214f8e414779f1 | 6,468 | ps1 | PowerShell | CommonScripts/SqlSsisFunctions.ps1 | DrJohnT/devops-your-dwh | 9c06912b7fd82f2a05f3a2416ea73c509deb0ad9 | [
"MIT"
] | 2 | 2019-08-19T19:27:34.000Z | 2019-12-06T15:44:19.000Z | CommonScripts/SqlSsisFunctions.ps1 | DrJohnT/devops-your-dwh | 9c06912b7fd82f2a05f3a2416ea73c509deb0ad9 | [
"MIT"
] | null | null | null | CommonScripts/SqlSsisFunctions.ps1 | DrJohnT/devops-your-dwh | 9c06912b7fd82f2a05f3a2416ea73c509deb0ad9 | [
"MIT"
] | 4 | 2018-12-31T06:51:16.000Z | 2019-08-19T19:29:18.000Z | #####################################################################################################
# Script written by © Dr. John Tunnicliffe, 2015-2018 https://github.com/DrJohnT/devops-your-dwh
# This PowerShell script is released under the MIT license http://www.opensource.org/licenses/MIT
#
# Functions to build ... | 45.230769 | 203 | 0.69697 | 3.078125 |
c9b51d740ca506f46d6f6272eb571f10a2679f47 | 6,909 | rs | Rust | mqttbytes/src/v5/pubrel.rs | IniterWorker/rumqtt | eb1713241584bf602bf3efe02ecceff0ed1c15d7 | [
"Apache-2.0"
] | 342 | 2020-06-25T01:00:36.000Z | 2022-03-28T21:46:35.000Z | mqttbytes/src/v5/pubrel.rs | IniterWorker/rumqtt | eb1713241584bf602bf3efe02ecceff0ed1c15d7 | [
"Apache-2.0"
] | 209 | 2020-06-30T16:49:01.000Z | 2022-03-31T08:11:37.000Z | mqttbytes/src/v5/pubrel.rs | thin-edge/rumqtt | 73e8ea2d91d3136c02c8eec55c9aa26076fa6ab7 | [
"Apache-2.0"
] | 102 | 2020-07-01T06:33:21.000Z | 2022-03-21T07:28:15.000Z | use super::*;
use bytes::{Buf, BufMut, Bytes, BytesMut};
/// Return code in connack
#[derive(Debug, Clone, Copy, PartialEq)]
#[repr(u8)]
pub enum PubRelReason {
Success = 0,
PacketIdentifierNotFound = 146,
}
/// Acknowledgement to QoS1 publish
#[derive(Debug, Clone, PartialEq)]
pub struct PubRel {
pub pki... | 29.029412 | 92 | 0.549139 | 3.078125 |
66339ce83f38e414fa9f11177e154a8677ed132f | 8,041 | py | Python | foods3/direct_corn_supply_chain.py | taegon/spatial-scale-lca-us-corn | c76e8477a222e98ff1c28332006447d45b12960f | [
"CNRI-Python"
] | null | null | null | foods3/direct_corn_supply_chain.py | taegon/spatial-scale-lca-us-corn | c76e8477a222e98ff1c28332006447d45b12960f | [
"CNRI-Python"
] | null | null | null | foods3/direct_corn_supply_chain.py | taegon/spatial-scale-lca-us-corn | c76e8477a222e98ff1c28332006447d45b12960f | [
"CNRI-Python"
] | null | null | null | import csv
import os
import numpy as np
from foods3 import util
from gurobipy import *
county_size = 3109
def optimize_gurobi(supply_code, supply_corn, demand_code, demand_corn, dist_mat):
env = Env("gurobi_spatial_lca.log")
model = Model("lp_for_spatiallca")
var = []
# add constraint for corn prod... | 33.644351 | 130 | 0.596443 | 3.171875 |
2fd55a9541f3cdf811e93acd233be903776f8c4b | 2,268 | py | Python | spNQueenTheorem/generator.py | lightofanima/Adventures | efb9d001520ff0b88746d8b3cf024de3307e45c7 | [
"MIT"
] | null | null | null | spNQueenTheorem/generator.py | lightofanima/Adventures | efb9d001520ff0b88746d8b3cf024de3307e45c7 | [
"MIT"
] | null | null | null | spNQueenTheorem/generator.py | lightofanima/Adventures | efb9d001520ff0b88746d8b3cf024de3307e45c7 | [
"MIT"
] | null | null | null | # This script generates a theorem for them Z3 SAT solver. The output of this program
# is designed to be the input for http://rise4fun.com/z3
# The output of z3 is the coordinates of the queens for a solution to the N Queen problem :)
#Prints an assert statement
def zassert(x):
print("( assert ( {} ) )".format(x)... | 36 | 211 | 0.507055 | 3.53125 |
448226b0b0bb3e7dfc88ffd8561110cbae44b23e | 941 | py | Python | gpu_watchdog.py | AlphaGoMK/GPU_Watchdog | 01aa3370d4521d800c23a8afe396e4424a94b77e | [
"MIT"
] | null | null | null | gpu_watchdog.py | AlphaGoMK/GPU_Watchdog | 01aa3370d4521d800c23a8afe396e4424a94b77e | [
"MIT"
] | null | null | null | gpu_watchdog.py | AlphaGoMK/GPU_Watchdog | 01aa3370d4521d800c23a8afe396e4424a94b77e | [
"MIT"
] | null | null | null | import GPUtil
import time
import datetime
import argparse
import sys
import requests
parser = argparse.ArgumentParser()
parser.add_argument('--threshold', type=int, default=1024, help='GPU memory threshold (MB)')
parser.add_argument('--index', type=int, default=0, help='Index of the GPU to be monitored')
opt = parser.... | 29.40625 | 117 | 0.609989 | 3.234375 |
c6f175b70fd25d8633c97d3d0d59465e21251689 | 978 | py | Python | example/apps/buttons/methods/Buttons.py | NinjaDero/Directly | bb241b49c54c8a1510438f955b39d1785594cc64 | [
"MIT"
] | 4 | 2015-03-09T10:50:05.000Z | 2020-07-02T17:22:37.000Z | example/apps/buttons/methods/Buttons.py | NinjaDero/Directly | bb241b49c54c8a1510438f955b39d1785594cc64 | [
"MIT"
] | null | null | null | example/apps/buttons/methods/Buttons.py | NinjaDero/Directly | bb241b49c54c8a1510438f955b39d1785594cc64 | [
"MIT"
] | null | null | null | from Directly import Ext
@Ext.cls
class Buttons():
@staticmethod
@Ext.method
def ping(request):
return "Pong!"
@staticmethod
@Ext.method
def reverse(request, text):
return text[::-1]
@staticmethod
@Ext.method
def full_caps(request, text):
all_caps = Buttons... | 23.853659 | 87 | 0.621677 | 3.015625 |
489240a5d6ab7946d2288fbd32e8a8541cb5a64d | 534 | sql | SQL | db/Visitante/sp_visitante_add.sql | WilmoMorandeDeodato/Hotel-Restaurante-Golai | ce646176c55a729c83a35a13b33431aed2d872bf | [
"CC-BY-3.0"
] | null | null | null | db/Visitante/sp_visitante_add.sql | WilmoMorandeDeodato/Hotel-Restaurante-Golai | ce646176c55a729c83a35a13b33431aed2d872bf | [
"CC-BY-3.0"
] | null | null | null | db/Visitante/sp_visitante_add.sql | WilmoMorandeDeodato/Hotel-Restaurante-Golai | ce646176c55a729c83a35a13b33431aed2d872bf | [
"CC-BY-3.0"
] | null | null | null | DROP PROCEDURE sp_visitante_add;
DELIMITER //
CREATE PROCEDURE sp_visitante_add(
v_id_hotel INT,
v_ip VARCHAR(15),
v_navegador VARCHAR(30),
v_sistema VARCHAR(30)
)
BEGIN
DECLARE v_auto_id INT;
SELECT COUNT(id_visitante) + 1 FROM tb_visitante INTO v_auto_id;
INSERT
INTO tb_visitante... | 25.428571 | 65 | 0.679775 | 3.078125 |
e2276f9a3a6d51e31f6fa4d77cfffd8a30ff5c23 | 1,959 | py | Python | remorse/wavegen.py | jhobbs/morsegen | 771b8bb38fd3ad6f94d775edc00323dd0b42f566 | [
"Apache-2.0"
] | 2 | 2016-05-27T04:08:50.000Z | 2016-05-27T12:48:59.000Z | remorse/wavegen.py | jhobbs/remorse | 771b8bb38fd3ad6f94d775edc00323dd0b42f566 | [
"Apache-2.0"
] | null | null | null | remorse/wavegen.py | jhobbs/remorse | 771b8bb38fd3ad6f94d775edc00323dd0b42f566 | [
"Apache-2.0"
] | null | null | null | import itertools
import math
from pyaudio import PyAudio
BITRATE = 16000
FADE_LENGTH = 0.003
FADE_FRAMES = int(BITRATE * FADE_LENGTH)
MAX_AMPLITUDE = 127
def sine(frequency, length):
"""Generate a sine wave in 8-bit unsigned PCM format.
Uses linear fading at the beginning and end to avoid click noise.
... | 28.808824 | 81 | 0.64829 | 3.390625 |
af91089c95e4ed7d63c9f6848966cba3c13704d1 | 1,259 | py | Python | tests/task/test_can_task.py | jha929/pyMODI | 6175e6579b7fab4d26a8add852bbc8357eb8bf30 | [
"MIT"
] | 2 | 2020-11-25T03:20:12.000Z | 2020-11-25T03:20:14.000Z | tests/task/test_can_task.py | jha929/pyMODI | 6175e6579b7fab4d26a8add852bbc8357eb8bf30 | [
"MIT"
] | null | null | null | tests/task/test_can_task.py | jha929/pyMODI | 6175e6579b7fab4d26a8add852bbc8357eb8bf30 | [
"MIT"
] | null | null | null | import json
import unittest
from queue import Queue
from modi.task.can_task import CanTask
from modi.util.msgutil import parse_message
class MockCan:
def __init__(self):
self.recv_buffer = Queue()
def recv(self, timeout):
json_pkt = parse_message(0x03, 0, 1)
return CanTask.compose_ca... | 25.693878 | 75 | 0.625894 | 3.140625 |
be8465a0f3ff16adcd08cbb851646be9bdf7fa57 | 5,905 | ts | TypeScript | packages/plugin-node-unhandled-rejection/test/unhandled-rejection.test.ts | orinamio/bugsnag-js-7.14.2-patch | bc15fa8cf6c5442710aaeeb7749c489c5558f85c | [
"MIT"
] | 682 | 2015-01-02T06:35:11.000Z | 2022-03-31T07:49:05.000Z | packages/plugin-node-unhandled-rejection/test/unhandled-rejection.test.ts | orinamio/bugsnag-js-7.14.2-patch | bc15fa8cf6c5442710aaeeb7749c489c5558f85c | [
"MIT"
] | 1,456 | 2015-01-10T01:56:02.000Z | 2022-03-31T07:26:24.000Z | packages/plugin-node-unhandled-rejection/test/unhandled-rejection.test.ts | orinamio/bugsnag-js-7.14.2-patch | bc15fa8cf6c5442710aaeeb7749c489c5558f85c | [
"MIT"
] | 266 | 2015-01-23T02:25:34.000Z | 2022-03-19T04:37:48.000Z | import Client from '@bugsnag/core/client'
import { schema } from '@bugsnag/core/config'
import plugin from '../'
import EventWithInternals from '@bugsnag/core/event'
describe('plugin: node unhandled rejection handler', () => {
it('should listen to the process#unhandledRejection event', () => {
const before = pro... | 33.361582 | 113 | 0.62591 | 3.03125 |
9376b61a21ae5b5a375e0f74ef6c2f453a4c152c | 3,917 | cs | C# | Assets/Scripts/Handlers/MultiTouchCurvedNoteDetector.cs | nopponaim603/BMP-U | 52072a1134d8a4304a41013c3b8d141da8a348a9 | [
"Artistic-2.0"
] | 74 | 2016-05-29T21:06:53.000Z | 2022-02-11T11:42:44.000Z | Assets/Scripts/Handlers/MultiTouchCurvedNoteDetector.cs | nopponaim603/BMP-U | 52072a1134d8a4304a41013c3b8d141da8a348a9 | [
"Artistic-2.0"
] | 1 | 2020-08-02T13:00:14.000Z | 2020-08-02T13:00:14.000Z | Assets/Scripts/Handlers/MultiTouchCurvedNoteDetector.cs | nopponaim603/BMP-U | 52072a1134d8a4304a41013c3b8d141da8a348a9 | [
"Artistic-2.0"
] | 17 | 2017-06-30T13:20:39.000Z | 2021-12-28T02:58:50.000Z | using UnityEngine;
using System.Collections.Generic;
using BMS;
using BMS.Visualization;
[RequireComponent(typeof(NoteSpawnerSP))]
public class MultiTouchCurvedNoteDetector : MonoBehaviour {
public Camera hitTestCamera;
public NoteDetector noteDetector;
public NoteSpawnerSP noteSpawner;
public float ... | 44.011236 | 178 | 0.615777 | 3.0625 |
e2f603c5ae6e42e16ccac0c3158c3b5c4e70a4e6 | 1,514 | py | Python | coarseactin/utils/HexGrid.py | cabb99/CoarseGrainedActin | 037dfddec2b985e529620e1b83d1cc48bd930b93 | [
"MIT"
] | 1 | 2021-03-02T22:45:04.000Z | 2021-03-02T22:45:04.000Z | coarseactin/utils/HexGrid.py | cabb99/CoarseGrainedActin | 037dfddec2b985e529620e1b83d1cc48bd930b93 | [
"MIT"
] | 1 | 2021-09-17T18:21:39.000Z | 2021-09-17T18:21:39.000Z | coarseactin/utils/HexGrid.py | cabb99/CoarseGrainedActin | 037dfddec2b985e529620e1b83d1cc48bd930b93 | [
"MIT"
] | null | null | null | import numpy as np
class HexGrid():
deltas = [[1, 0, -1], [0, 1, -1], [-1, 1, 0], [-1, 0, 1], [0, -1, 1], [1, -1, 0]]
a0 = 0
a1 = np.pi / 3
a2 = -np.pi / 3
vecs = np.array([[np.sqrt(3) * np.cos(a0), np.sin(a0) / np.sqrt(3)],
[np.sqrt(3) * np.cos(a1), np.sin(a1) / np.sqrt(3)],
... | 34.409091 | 89 | 0.416116 | 3.109375 |
0d36f1d9b9a915debcac4d12e07eee5d7d8cab16 | 4,512 | cs | C# | CSharp Advanced/CSharp Advanced Exams/CSharp Advanced Exam - 19 June 2016/01. Cubic Artillery/Program.cs | stoyanovmiroslav/CSharp-Fundamentals | f941c73adc341e39a696ad5a5563c845ca296141 | [
"MIT"
] | null | null | null | CSharp Advanced/CSharp Advanced Exams/CSharp Advanced Exam - 19 June 2016/01. Cubic Artillery/Program.cs | stoyanovmiroslav/CSharp-Fundamentals | f941c73adc341e39a696ad5a5563c845ca296141 | [
"MIT"
] | null | null | null | CSharp Advanced/CSharp Advanced Exams/CSharp Advanced Exam - 19 June 2016/01. Cubic Artillery/Program.cs | stoyanovmiroslav/CSharp-Fundamentals | f941c73adc341e39a696ad5a5563c845ca296141 | [
"MIT"
] | null | null | null | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace _01._Cubic_Artillery
{
class Program
{
static void Main(string[] args)
{
int bunkersCapacity = int.Parse(Console.ReadLine());
string input = "";
var dict ... | 34.442748 | 135 | 0.432624 | 3.234375 |
b0d74d87e094d09c0881fb214c8227631dbb222d | 4,864 | py | Python | speech_enhance/utils/utils.py | hit-thusz-RookieCJ/FullSubNet-plus | a6c89083cd083e729ca3def9a291743e8c3b516b | [
"Apache-2.0"
] | 41 | 2022-01-23T12:45:13.000Z | 2022-03-31T03:04:26.000Z | speech_enhance/utils/utils.py | hit-thusz-RookieCJ/FullSubNet-plus | a6c89083cd083e729ca3def9a291743e8c3b516b | [
"Apache-2.0"
] | 5 | 2022-01-24T07:05:01.000Z | 2022-03-29T12:58:07.000Z | speech_enhance/utils/utils.py | hit-thusz-RookieCJ/FullSubNet-plus | a6c89083cd083e729ca3def9a291743e8c3b516b | [
"Apache-2.0"
] | 10 | 2022-01-23T01:40:18.000Z | 2022-03-29T12:11:11.000Z | import os
import shutil
import yaml
import numpy as np
import torch
import torch.nn.functional as F
from .logger import log
def touch_dir(d):
os.makedirs(d, exist_ok=True)
def is_file_exists(f):
return os.path.exists(f)
def check_file_exists(f):
if not os.path.exists(f):
l... | 27.636364 | 90 | 0.58861 | 3.3125 |
2caf4f07438e65cc804bea91704c942233c37e81 | 4,344 | cpp | C++ | Client/Client.cpp | laboox/Computer-Networks-CA3-S2015 | 1c6d6cd03be06c1978dda355bdeb2401d6d154d5 | [
"MIT"
] | null | null | null | Client/Client.cpp | laboox/Computer-Networks-CA3-S2015 | 1c6d6cd03be06c1978dda355bdeb2401d6d154d5 | [
"MIT"
] | null | null | null | Client/Client.cpp | laboox/Computer-Networks-CA3-S2015 | 1c6d6cd03be06c1978dda355bdeb2401d6d154d5 | [
"MIT"
] | null | null | null | /**
* File "Client.cpp"
* Created by Sina on Sun May 31 13:39:03 2015.
*/
#include "Client.h"
Client::Client(string name, address IP, address serverIp, int routerPort)
: SuperClient(IP, serverIp, routerPort)
{
this->name = name;
}
void Client::run(){
fd_set router_fds, read_fds;
FD_ZERO(&... | 24.542373 | 84 | 0.508748 | 3.015625 |
e1f47856e8e72282c7ab646d364bda2cc40a97bc | 1,091 | cpp | C++ | stacks_queues/assignments/stock_span.cpp | ramchandra94/datastructures_in_cpp | 28274ff4f0d9736cfe690ef002b90b9ebbfaf2f7 | [
"MIT"
] | null | null | null | stacks_queues/assignments/stock_span.cpp | ramchandra94/datastructures_in_cpp | 28274ff4f0d9736cfe690ef002b90b9ebbfaf2f7 | [
"MIT"
] | null | null | null | stacks_queues/assignments/stock_span.cpp | ramchandra94/datastructures_in_cpp | 28274ff4f0d9736cfe690ef002b90b9ebbfaf2f7 | [
"MIT"
] | null | null | null | class Node {
public:
int data;
int index;
Node *next;
Node(int data, int index){
this -> data = data;
this -> index = index;
this -> next = NULL;
}
};
class Stack {
Node *stackArr;
int size;
public:
Stack(){
stackArr = NULL;
size = 0;
}
... | 19.140351 | 61 | 0.454629 | 3.265625 |
dd9e94ae6db649288500bbba7f5726dbdbe7c3aa | 1,873 | dart | Dart | test/widget_test.dart | AndriousSolutions/app_template | 6937c151b924f42a214b00bb6def005e700c7a53 | [
"BSD-2-Clause"
] | 1 | 2021-12-20T10:19:08.000Z | 2021-12-20T10:19:08.000Z | test/widget_test.dart | AndriousSolutions/app_template | 6937c151b924f42a214b00bb6def005e700c7a53 | [
"BSD-2-Clause"
] | null | null | null | test/widget_test.dart | AndriousSolutions/app_template | 6937c151b924f42a214b00bb6def005e700c7a53 | [
"BSD-2-Clause"
] | null | null | null | ///
import 'src/view.dart';
void main() {
/// Define a test. The TestWidgets function also provides a WidgetTester
/// to work with. The WidgetTester allows you to build and interact
/// with widgets in the test environment.
testWidgets('app_template testing', (WidgetTester tester) async {
//
await tes... | 24.973333 | 80 | 0.6252 | 3.046875 |
e5902b445cf25928a537a552d8b72f9bef862fae | 5,277 | go | Go | google/SheetData.go | RescueDen/restlib | 91c3050fdf31305bc8576a5da06d505ce8be9eb6 | [
"MIT"
] | 1 | 2019-07-26T23:15:21.000Z | 2019-07-26T23:15:21.000Z | google/SheetData.go | RescueDen/restlib | 91c3050fdf31305bc8576a5da06d505ce8be9eb6 | [
"MIT"
] | 4 | 2020-06-24T23:04:11.000Z | 2020-11-19T20:23:34.000Z | google/SheetData.go | RescueDen/restlib | 91c3050fdf31305bc8576a5da06d505ce8be9eb6 | [
"MIT"
] | 2 | 2019-11-23T21:10:13.000Z | 2020-05-23T21:37:23.000Z | // Copyright 2019 Reaction Engineering International. All rights reserved.
// Use of this source code is governed by the MIT license in the file LICENSE.txt.
package google
import (
"errors"
"fmt"
"strings"
)
/**
Used to store a row of data
*/
type SheetData struct {
//Store the values in the row
Values [][]in... | 21.627049 | 83 | 0.672162 | 3.421875 |
af2a406838efea757cc4acb358285b7045e3197f | 5,021 | py | Python | code/figures/Chure2019_FigS17-FigS18_IND_pairwise_comparison.py | RPGroup-PBoC/mwc_mutants | 35581602c35793fc8ec42c8aff37b8305c5e54e1 | [
"MIT"
] | 3 | 2020-11-11T21:33:26.000Z | 2021-07-14T21:22:43.000Z | code/figures/Chure2019_FigS17-FigS18_IND_pairwise_comparison.py | RPGroup-PBoC/mwc_mutants | 35581602c35793fc8ec42c8aff37b8305c5e54e1 | [
"MIT"
] | null | null | null | code/figures/Chure2019_FigS17-FigS18_IND_pairwise_comparison.py | RPGroup-PBoC/mwc_mutants | 35581602c35793fc8ec42c8aff37b8305c5e54e1 | [
"MIT"
] | 1 | 2021-07-14T21:22:45.000Z | 2021-07-14T21:22:45.000Z | # -*- coding: utf-8 -*-
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import mut.thermo
import mut.stats
import mut.viz
color = mut.viz.color_selector('mut')
pboc = mut.viz.color_selector('pboc')
constants = mut.thermo.load_constants()
mut.viz.plotting_style()
# Load the data
data = pd.read_c... | 41.495868 | 104 | 0.520215 | 3.09375 |
e27214e5385893d35837af6ee99a8f609104855b | 5,580 | py | Python | mupf/log/_tracks.py | kimbar/mupf_project | 21de9ed94f604220f8b8dcc64d45e30a0b94d2a1 | [
"MIT"
] | null | null | null | mupf/log/_tracks.py | kimbar/mupf_project | 21de9ed94f604220f8b8dcc64d45e30a0b94d2a1 | [
"MIT"
] | 44 | 2019-06-14T03:43:43.000Z | 2020-12-27T19:17:15.000Z | mupf/log/_tracks.py | kimbar/mupf_project | 21de9ed94f604220f8b8dcc64d45e30a0b94d2a1 | [
"MIT"
] | null | null | null | from . import _main as main
from . import settings
_tracks = []
_styles = dict(
_reference = "|,`}+-{><.T^tE",
default = "│┌└├┼─┤><·┐┘─E",
rounded = "│╭╰├┼─┤><·╮╯─E",
simple = "|,`|+-|><*,'-E",
)
glyphs = {}
ligatures = {}
def get_style(name):
if not isinstance(name, str):
name =... | 31.348315 | 101 | 0.505556 | 3.171875 |
20e16cb94dcb9dfa59991a388be7903b9e6de468 | 5,829 | py | Python | chemml/chem/magpie_python/attributes/generators/composition/YangOmegaAttributeGenerator.py | iamchetry/DataChallenge-Fall2021 | fa7748c9ea2f3c0f6bde8d0b094fc75463e28f33 | [
"BSD-3-Clause"
] | 108 | 2018-03-23T20:06:03.000Z | 2022-01-06T19:32:46.000Z | chemml/chem/magpie_python/attributes/generators/composition/YangOmegaAttributeGenerator.py | hachmannlab/ChemML | 42b152579872a57c834884596f700c76b9320280 | [
"BSD-3-Clause"
] | 18 | 2019-08-09T21:16:14.000Z | 2022-02-14T21:52:06.000Z | chemml/chem/magpie_python/attributes/generators/composition/YangOmegaAttributeGenerator.py | hachmannlab/ChemML | 42b152579872a57c834884596f700c76b9320280 | [
"BSD-3-Clause"
] | 28 | 2018-04-28T17:07:33.000Z | 2022-02-28T07:22:56.000Z | # coding=utf-8
import math
import types
import numpy as np
import pandas as pd
from ....data.materials.CompositionEntry import CompositionEntry
from ....data.materials.util.LookUpData import LookUpData
class YangOmegaAttributeGenerator:
"""Class to compute the attributes :math:`\Omega` and :math:`\delta`
devel... | 40.2 | 80 | 0.618974 | 3.078125 |
be3922d18c6120c11563e6101f16589df23b4c90 | 1,483 | ts | TypeScript | src/ts/tool/shapeStroke.ts | wjheesen/vector-art | d73729c1b0ee236fe9d45a879e5e83cb00e245a0 | [
"MIT"
] | null | null | null | src/ts/tool/shapeStroke.ts | wjheesen/vector-art | d73729c1b0ee236fe9d45a879e5e83cb00e245a0 | [
"MIT"
] | null | null | null | src/ts/tool/shapeStroke.ts | wjheesen/vector-art | d73729c1b0ee236fe9d45a879e5e83cb00e245a0 | [
"MIT"
] | null | null | null | import { MouseOrTouchEvent } from '../event/mouseOrTouch';
import { Surface } from '../rendering/surface';
import { Status } from 'gl2d/event/status';
import { Point } from 'gl2d/struct/point';
import { MouseOrTouchTool } from 'gl2d/tool/mouseOrTouch';
export class ShapeStrokeTool extends MouseOrTouchTool<Surface> {
... | 31.553191 | 73 | 0.626433 | 3.03125 |
944c14e902127faa07a787e5c3c04d319c6b159f | 1,111 | lua | Lua | WIP/Set/Negation.spec.lua | Novaly-Studios/TableUtil | c9ed2ed3b7f4a43947f6d539f0f1cff0774260ee | [
"MIT"
] | null | null | null | WIP/Set/Negation.spec.lua | Novaly-Studios/TableUtil | c9ed2ed3b7f4a43947f6d539f0f1cff0774260ee | [
"MIT"
] | null | null | null | WIP/Set/Negation.spec.lua | Novaly-Studios/TableUtil | c9ed2ed3b7f4a43947f6d539f0f1cff0774260ee | [
"MIT"
] | null | null | null | return function()
local Negation = require(script.Parent.Negation)
local FromValues = require(script.Parent.FromValues)
describe("Set/Negation", function()
it("should return a blank set from two blank set inputs", function()
local Result = Negation(FromValues( {} ), FromValues( {} ))
... | 42.730769 | 115 | 0.605761 | 3.1875 |
05cb604c87fea6779300d4d37db8a6a66707877e | 2,908 | py | Python | JPS_Chatbot/jps-chatbot/UI/source/Wikidata_Query/fuzzysearch_wiki.py | cambridge-cares/TheWorldAvatar | baf08ddc090414c6d01e48c74b408f2192461e9e | [
"MIT"
] | 21 | 2021-03-08T01:58:25.000Z | 2022-03-09T15:46:16.000Z | JPS_Chatbot/jps-chatbot/UI/source/Wikidata_Query/fuzzysearch_wiki.py | cambridge-cares/TheWorldAvatar | baf08ddc090414c6d01e48c74b408f2192461e9e | [
"MIT"
] | 63 | 2021-05-04T15:05:30.000Z | 2022-03-23T14:32:29.000Z | JPS_Chatbot/jps-chatbot/UI/source/Wikidata_Query/fuzzysearch_wiki.py | cambridge-cares/TheWorldAvatar | baf08ddc090414c6d01e48c74b408f2192461e9e | [
"MIT"
] | 15 | 2021-03-08T07:52:03.000Z | 2022-03-29T04:46:20.000Z | from rapidfuzz import process, fuzz
from .load_dicts import FORMULA_URI_DICT, SMILES_URI_DICT, NAME_URI_DICT, \
FORMULA_KEYS, NAME_KEYS, SMILES_KEYS, ATTRIBUTE_URI_DICT, \
ATTRIBUTE_KEYS, CLASS_URI_DICT, CLASS_KEYS, process_species, process_species_reversed
def find_nearest_match(entity_value, entity_type):
... | 33.425287 | 89 | 0.666437 | 3.171875 |
8dab17afdff53a31a1b8a809dd2bc03669e409b0 | 1,620 | js | JavaScript | test/specs/Format_Spec.js | isuttell/Amber | 98b88a932b4845ae9550a50da10c9e32a743ad60 | [
"MIT"
] | 1 | 2018-12-13T08:08:00.000Z | 2018-12-13T08:08:00.000Z | test/specs/Format_Spec.js | isuttell/Amber | 98b88a932b4845ae9550a50da10c9e32a743ad60 | [
"MIT"
] | null | null | null | test/specs/Format_Spec.js | isuttell/Amber | 98b88a932b4845ae9550a50da10c9e32a743ad60 | [
"MIT"
] | null | null | null | describe("Amber.Format", function() {
it("should be defined", function() {
expect(Amber.Format).toBeDefined();
});
describe('numberWithCommas', function(){
it("should have a function to add commas to large numbers", function() {
expect(Amber.Format.numberWithCommas).toBeDefined();
expect(Amber.Format.nu... | 27.931034 | 74 | 0.687037 | 3.03125 |
0d45e35e24e6350affa5974bb06d5ece05c0ff4d | 2,732 | cs | C# | Travelling Salesman Problem/Graph.cs | JR-Morgan/Travelling-Salesman-Problem | 99389190e7bb29af05904f1296c236eee4289704 | [
"MIT"
] | 4 | 2021-02-27T01:10:59.000Z | 2022-03-23T00:29:15.000Z | Travelling Salesman Problem/Graph.cs | JR-Morgan/Travelling-Salesman-Problem | 99389190e7bb29af05904f1296c236eee4289704 | [
"MIT"
] | null | null | null | Travelling Salesman Problem/Graph.cs | JR-Morgan/Travelling-Salesman-Problem | 99389190e7bb29af05904f1296c236eee4289704 | [
"MIT"
] | null | null | null | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text.RegularExpressions;
namespace TSP
{
/// <summary>
/// This class encapsulates a graph of nodes
/// </summary>
public class Graph
{
public readonly List<Node> nodes;
... | 33.728395 | 127 | 0.499268 | 3.265625 |
46cefff5ed61863f93b98821cfc2c966db8b160e | 1,754 | py | Python | tests/test_radio_command.py | notfoundsam/smart-remote | 0c23fbb9b92ec1c8e7fbbf6d4613ae4b955eada8 | [
"Unlicense"
] | null | null | null | tests/test_radio_command.py | notfoundsam/smart-remote | 0c23fbb9b92ec1c8e7fbbf6d4613ae4b955eada8 | [
"Unlicense"
] | 14 | 2018-06-06T14:54:18.000Z | 2018-07-29T02:44:07.000Z | tests/test_radio_command.py | notfoundsam/smart-remote | 0c23fbb9b92ec1c8e7fbbf6d4613ae4b955eada8 | [
"Unlicense"
] | null | null | null | import serial
import time
import array
command = "status"
# radio_pipe = 'AABBCCDD33'
radio_pipe = 'AABBCCDD44'
success = 0
fail = 0
error = 0
ser = serial.Serial()
ser.baudrate = 500000
ser.port = '/dev/ttyUSB0'
ser.timeout = 10
ser.open()
# Only after writing sketch into Arduino
# print(repr(ser.readline()))
time... | 20.880952 | 75 | 0.526226 | 3.390625 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.