hexsha string | size int64 | ext string | lang string | max_stars_repo_path string | max_stars_repo_name string | max_stars_repo_head_hexsha string | max_stars_repo_licenses list | max_stars_count int64 | max_stars_repo_stars_event_min_datetime string | max_stars_repo_stars_event_max_datetime string | max_issues_repo_path string | max_issues_repo_name string | max_issues_repo_head_hexsha string | max_issues_repo_licenses list | max_issues_count int64 | max_issues_repo_issues_event_min_datetime string | max_issues_repo_issues_event_max_datetime string | max_forks_repo_path string | max_forks_repo_name string | max_forks_repo_head_hexsha string | max_forks_repo_licenses list | max_forks_count int64 | max_forks_repo_forks_event_min_datetime string | max_forks_repo_forks_event_max_datetime string | content string | avg_line_length float64 | max_line_length int64 | alphanum_fraction float64 | qsc_code_num_words_quality_signal int64 | qsc_code_num_chars_quality_signal float64 | qsc_code_mean_word_length_quality_signal float64 | qsc_code_frac_words_unique_quality_signal float64 | qsc_code_frac_chars_top_2grams_quality_signal float64 | qsc_code_frac_chars_top_3grams_quality_signal float64 | qsc_code_frac_chars_top_4grams_quality_signal float64 | qsc_code_frac_chars_dupe_5grams_quality_signal float64 | qsc_code_frac_chars_dupe_6grams_quality_signal float64 | qsc_code_frac_chars_dupe_7grams_quality_signal float64 | qsc_code_frac_chars_dupe_8grams_quality_signal float64 | qsc_code_frac_chars_dupe_9grams_quality_signal float64 | qsc_code_frac_chars_dupe_10grams_quality_signal float64 | qsc_code_frac_chars_replacement_symbols_quality_signal float64 | qsc_code_frac_chars_digital_quality_signal float64 | qsc_code_frac_chars_whitespace_quality_signal float64 | qsc_code_size_file_byte_quality_signal float64 | qsc_code_num_lines_quality_signal float64 | qsc_code_num_chars_line_max_quality_signal float64 | qsc_code_num_chars_line_mean_quality_signal float64 | qsc_code_frac_chars_alphabet_quality_signal float64 | qsc_code_frac_chars_comments_quality_signal float64 | qsc_code_cate_xml_start_quality_signal float64 | qsc_code_frac_lines_dupe_lines_quality_signal float64 | qsc_code_cate_autogen_quality_signal float64 | qsc_code_frac_lines_long_string_quality_signal float64 | qsc_code_frac_chars_string_length_quality_signal float64 | qsc_code_frac_chars_long_word_length_quality_signal float64 | qsc_code_frac_lines_string_concat_quality_signal float64 | qsc_code_cate_encoded_data_quality_signal float64 | qsc_code_frac_chars_hex_words_quality_signal float64 | qsc_code_frac_lines_prompt_comments_quality_signal float64 | qsc_code_frac_lines_assert_quality_signal float64 | qsc_codepython_cate_ast_quality_signal float64 | qsc_codepython_frac_lines_func_ratio_quality_signal float64 | qsc_codepython_cate_var_zero_quality_signal bool | qsc_codepython_frac_lines_pass_quality_signal float64 | qsc_codepython_frac_lines_import_quality_signal float64 | qsc_codepython_frac_lines_simplefunc_quality_signal float64 | qsc_codepython_score_lines_no_logic_quality_signal float64 | qsc_codepython_frac_lines_print_quality_signal float64 | qsc_code_num_words int64 | qsc_code_num_chars int64 | qsc_code_mean_word_length int64 | qsc_code_frac_words_unique null | qsc_code_frac_chars_top_2grams int64 | qsc_code_frac_chars_top_3grams int64 | qsc_code_frac_chars_top_4grams int64 | qsc_code_frac_chars_dupe_5grams int64 | qsc_code_frac_chars_dupe_6grams int64 | qsc_code_frac_chars_dupe_7grams int64 | qsc_code_frac_chars_dupe_8grams int64 | qsc_code_frac_chars_dupe_9grams int64 | qsc_code_frac_chars_dupe_10grams int64 | qsc_code_frac_chars_replacement_symbols int64 | qsc_code_frac_chars_digital int64 | qsc_code_frac_chars_whitespace int64 | qsc_code_size_file_byte int64 | qsc_code_num_lines int64 | qsc_code_num_chars_line_max int64 | qsc_code_num_chars_line_mean int64 | qsc_code_frac_chars_alphabet int64 | qsc_code_frac_chars_comments int64 | qsc_code_cate_xml_start int64 | qsc_code_frac_lines_dupe_lines int64 | qsc_code_cate_autogen int64 | qsc_code_frac_lines_long_string int64 | qsc_code_frac_chars_string_length int64 | qsc_code_frac_chars_long_word_length int64 | qsc_code_frac_lines_string_concat null | qsc_code_cate_encoded_data int64 | qsc_code_frac_chars_hex_words int64 | qsc_code_frac_lines_prompt_comments int64 | qsc_code_frac_lines_assert int64 | qsc_codepython_cate_ast int64 | qsc_codepython_frac_lines_func_ratio int64 | qsc_codepython_cate_var_zero int64 | qsc_codepython_frac_lines_pass int64 | qsc_codepython_frac_lines_import int64 | qsc_codepython_frac_lines_simplefunc int64 | qsc_codepython_score_lines_no_logic int64 | qsc_codepython_frac_lines_print int64 | effective string | hits int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e81d9b0b490485d24940928f241dddb40fd49833 | 209,857 | py | Python | layers/eight_mile/pytorch/layers.py | dpressel/baseline | 2f46f3b043f2d20bc348495cc54c834f31f71098 | [
"Apache-2.0"
] | 241 | 2016-04-25T20:02:31.000Z | 2019-09-03T05:44:09.000Z | layers/eight_mile/pytorch/layers.py | dpressel/baseline | 2f46f3b043f2d20bc348495cc54c834f31f71098 | [
"Apache-2.0"
] | 42 | 2017-08-21T16:04:36.000Z | 2019-09-30T20:45:17.000Z | layers/eight_mile/pytorch/layers.py | dpressel/baseline | 2f46f3b043f2d20bc348495cc54c834f31f71098 | [
"Apache-2.0"
] | 75 | 2016-06-28T01:18:58.000Z | 2019-08-29T06:47:22.000Z | import copy
import math
import logging
from typing import Dict, List, Optional, Tuple, Union
import os
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.jit as jit
import torch.autograd
import contextlib
import glob
from eight_mile.utils import listify, Offsets, is_seque... | 41.613524 | 202 | 0.62778 | 29,088 | 209,857 | 4.3772 | 0.055281 | 0.036026 | 0.020986 | 0.02851 | 0.600075 | 0.565651 | 0.539537 | 0.521975 | 0.505058 | 0.485022 | 0 | 0.011987 | 0.265362 | 209,857 | 5,042 | 203 | 41.621777 | 0.813886 | 0.302911 | 0 | 0.540366 | 0 | 0 | 0.017254 | 0.001407 | 0 | 0 | 0 | 0.001983 | 0.000678 | 1 | 0.115332 | false | 0.004071 | 0.005427 | 0.015943 | 0.246608 | 0.000339 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e82007b9763c2cfe490672fce1bfbb724173644a | 2,776 | py | Python | conanfile.py | sintef-ocean/conan-clapack | 9c472130eaadee71253ced9b5fe25ee1b868bcb3 | [
"MIT"
] | null | null | null | conanfile.py | sintef-ocean/conan-clapack | 9c472130eaadee71253ced9b5fe25ee1b868bcb3 | [
"MIT"
] | null | null | null | conanfile.py | sintef-ocean/conan-clapack | 9c472130eaadee71253ced9b5fe25ee1b868bcb3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from conans import ConanFile, CMake, tools
import shutil
class ClapackConan(ConanFile):
name = "clapack"
version = "3.2.1"
license = "BSD 3-Clause"
# BSD-3-Clause-Clear
url = "https://github.com/sintef-ocean/conan-clapack"
author = "SINTEF Ocean"
... | 35.139241 | 84 | 0.610231 | 319 | 2,776 | 5.166144 | 0.407524 | 0.081917 | 0.092233 | 0.046117 | 0.214806 | 0.17233 | 0.139563 | 0.114078 | 0.114078 | 0.114078 | 0 | 0.016066 | 0.260086 | 2,776 | 78 | 85 | 35.589744 | 0.786271 | 0.021974 | 0 | 0.063492 | 0 | 0 | 0.243363 | 0.064897 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.031746 | 0 | 0.396825 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e82053dc2380e925870bdf15395c02b067f76451 | 8,924 | py | Python | lab_03/main.py | solnishko-pvs/Modeling_BMSTU | 0ecb82aea23b6726912f72d3230097d7b679eaf9 | [
"MIT"
] | null | null | null | lab_03/main.py | solnishko-pvs/Modeling_BMSTU | 0ecb82aea23b6726912f72d3230097d7b679eaf9 | [
"MIT"
] | null | null | null | lab_03/main.py | solnishko-pvs/Modeling_BMSTU | 0ecb82aea23b6726912f72d3230097d7b679eaf9 | [
"MIT"
] | null | null | null | import tkinter as tk
from scipy.stats import chi2, chisquare
COLOR = '#dddddd'
COLUMNS_COLOR = '#ffffff'
MAX_SIZE = 10
WIDGET_WIDTH = 25
class LinearCongruent:
m = 2**32
a = 1664525
c = 1013904223
_cur = 1
def next(self):
self._cur = (self.a * self._cur + self.c) % self.m
return s... | 40.748858 | 140 | 0.632788 | 1,373 | 8,924 | 3.91697 | 0.131828 | 0.050205 | 0.050205 | 0.028449 | 0.632019 | 0.536817 | 0.48624 | 0.363518 | 0.273894 | 0.264597 | 0 | 0.037353 | 0.22602 | 8,924 | 218 | 141 | 40.93578 | 0.741277 | 0.005155 | 0 | 0.035294 | 0 | 0 | 0.037742 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064706 | false | 0 | 0.011765 | 0 | 0.141176 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e8218935d90ebb72cee991e2f05f077a46339325 | 846 | py | Python | porthole/management/commands/brocade.py | jsayles/Porthole | a4176aad632e319eba88dfbe40cb96a4c437725d | [
"Apache-2.0"
] | null | null | null | porthole/management/commands/brocade.py | jsayles/Porthole | a4176aad632e319eba88dfbe40cb96a4c437725d | [
"Apache-2.0"
] | null | null | null | porthole/management/commands/brocade.py | jsayles/Porthole | a4176aad632e319eba88dfbe40cb96a4c437725d | [
"Apache-2.0"
] | null | null | null | from django.core.management.base import BaseCommand, CommandError
from django.conf import settings
from porthole import models, brocade
class Command(BaseCommand):
help = "Command the Brocade switch stacks"
args = ""
requires_system_checks = False
def add_arguments(self, parser):
parser.add_... | 29.172414 | 106 | 0.634752 | 101 | 846 | 5.178218 | 0.544554 | 0.105163 | 0.057361 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.265957 | 846 | 28 | 107 | 30.214286 | 0.84219 | 0 | 0 | 0 | 0 | 0 | 0.144208 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0.045455 | 0.136364 | 0 | 0.454545 | 0.318182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e82434209f26613cf2f4d4081789832c2affad67 | 1,127 | py | Python | Django/blog/tests.py | zarif007/Blog-site | e20e3f73fedbd7acb2f3d22398c36f3dcd4f88b4 | [
"MIT"
] | 1 | 2021-03-15T22:28:26.000Z | 2021-03-15T22:28:26.000Z | Django/blog/tests.py | zarif007/Blog-site | e20e3f73fedbd7acb2f3d22398c36f3dcd4f88b4 | [
"MIT"
] | null | null | null | Django/blog/tests.py | zarif007/Blog-site | e20e3f73fedbd7acb2f3d22398c36f3dcd4f88b4 | [
"MIT"
] | null | null | null | from django.contrib.auth.models import User
from django.test import TestCase
from blog.models import Category, Post
class Test_Create_Post(TestCase):
@classmethod
def setUpTestData(cls):
test_category = Category.objects.create(name='django')
testuser1 = User.objects.create_user(
... | 36.354839 | 104 | 0.616681 | 129 | 1,127 | 5.317829 | 0.325581 | 0.131195 | 0.017493 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013049 | 0.251996 | 1,127 | 31 | 105 | 36.354839 | 0.800712 | 0 | 0 | 0 | 0 | 0 | 0.139184 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 1 | 0.076923 | false | 0.038462 | 0.115385 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e82619fe802bc3c2cff480de32dc1445ec9e1c68 | 17,055 | py | Python | TrainingPreprocess/filtered_to_dataset.py | CsekM8/LVH-THESIS | b0dc60daaf0825ad43951e6895289da4e3ed911b | [
"MIT"
] | null | null | null | TrainingPreprocess/filtered_to_dataset.py | CsekM8/LVH-THESIS | b0dc60daaf0825ad43951e6895289da4e3ed911b | [
"MIT"
] | null | null | null | TrainingPreprocess/filtered_to_dataset.py | CsekM8/LVH-THESIS | b0dc60daaf0825ad43951e6895289da4e3ed911b | [
"MIT"
] | null | null | null | import os
import pickle
from PIL import Image
class PatientToImageFolder:
def __init__(self, sourceFolder):
self.sourceFolder = sourceFolder
# How many patient with contrast SA for each pathology (used for classification)
self.contrastSApathologyDict = {}
# How many patient with c... | 55.373377 | 121 | 0.595075 | 1,278 | 17,055 | 7.902973 | 0.169014 | 0.019604 | 0.029703 | 0.011089 | 0.332178 | 0.29198 | 0.245941 | 0.213366 | 0.163366 | 0.12604 | 0 | 0.01742 | 0.326825 | 17,055 | 307 | 122 | 55.553746 | 0.862294 | 0.179361 | 0 | 0.199052 | 0 | 0 | 0.026257 | 0.003874 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042654 | false | 0 | 0.014218 | 0 | 0.080569 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e82731c89300ff664f879da568d6bdf2c014d59b | 2,140 | py | Python | scripts/pipeline/a06a_submission.py | Iolaum/Phi1337 | c73b01cb85c0187ed5c23c672d4f3d05a6934a9f | [
"Apache-2.0"
] | null | null | null | scripts/pipeline/a06a_submission.py | Iolaum/Phi1337 | c73b01cb85c0187ed5c23c672d4f3d05a6934a9f | [
"Apache-2.0"
] | null | null | null | scripts/pipeline/a06a_submission.py | Iolaum/Phi1337 | c73b01cb85c0187ed5c23c672d4f3d05a6934a9f | [
"Apache-2.0"
] | null | null | null | import pandas as pd
import numpy as np
import pickle
from sklearn.cross_validation import train_test_split
from sklearn.linear_model import LinearRegression
from sklearn.metrics import mean_squared_error
from math import sqrt
from sklearn.svm import SVR
from sklearn.svm import LinearSVR
from sklearn.preprocessing imp... | 21.616162 | 95 | 0.706075 | 307 | 2,140 | 4.749186 | 0.371336 | 0.052812 | 0.04321 | 0.027435 | 0.037037 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003326 | 0.157009 | 2,140 | 99 | 96 | 21.616162 | 0.804878 | 0.095327 | 0 | 0.111111 | 0 | 0 | 0.175156 | 0.060291 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031746 | false | 0 | 0.174603 | 0 | 0.253968 | 0.349206 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e82976f9a06173b4cb3e6c53bd388cb5ba53c170 | 602 | py | Python | Data Gathering/PythonPlottingScript.py | Carter-eng/SeniorDesign | 5305531d251ea749f909cc09eb1ccfe21714cebd | [
"MIT"
] | null | null | null | Data Gathering/PythonPlottingScript.py | Carter-eng/SeniorDesign | 5305531d251ea749f909cc09eb1ccfe21714cebd | [
"MIT"
] | null | null | null | Data Gathering/PythonPlottingScript.py | Carter-eng/SeniorDesign | 5305531d251ea749f909cc09eb1ccfe21714cebd | [
"MIT"
] | null | null | null | import numpy as np
import serial
import time
import matplotlib.pyplot as plt
def getData():
ser = serial.Serial('/dev/ttyACM7', 9600)
sensorReadings = []
start = time.time()
current = time.time()
while current - start < 10:
data =ser.readline()
sensorReadings.append(floa... | 24.08 | 46 | 0.642857 | 64 | 602 | 5.921875 | 0.53125 | 0.063325 | 0.079156 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015521 | 0.250831 | 602 | 24 | 47 | 25.083333 | 0.824834 | 0 | 0 | 0.095238 | 0 | 0 | 0.077855 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.190476 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e82a07131fefc0b08096ef65e989b7c1655ac2a3 | 732 | py | Python | Examples/Rich_Message_Example.py | robinvoogt/text-sdk-python | 1acd624991f396cc673dad22cfa3272b4b3fb53b | [
"MIT"
] | 2 | 2021-05-29T07:22:55.000Z | 2022-01-15T18:23:39.000Z | Examples/Rich_Message_Example.py | robinvoogt/text-sdk-python | 1acd624991f396cc673dad22cfa3272b4b3fb53b | [
"MIT"
] | 2 | 2021-08-04T13:13:50.000Z | 2021-12-31T12:54:00.000Z | Examples/Rich_Message_Example.py | robinvoogt/text-sdk-python | 1acd624991f396cc673dad22cfa3272b4b3fb53b | [
"MIT"
] | 3 | 2020-12-23T15:24:40.000Z | 2021-04-09T11:43:03.000Z | from CMText.TextClient import TextClient
# Message to be send
message = 'Examples message to be send'
# Media to be send
media = {
"mediaName": "conversational-commerce",
"mediaUri": "https://www.cm.com/cdn/cm/cm.png",
"mimeType": "image/png"
}
# AllowedChannels in this ca... | 25.241379 | 110 | 0.709016 | 89 | 732 | 5.797753 | 0.561798 | 0.052326 | 0.046512 | 0.05814 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039933 | 0.178962 | 732 | 29 | 111 | 25.241379 | 0.818636 | 0.259563 | 0 | 0 | 0 | 0 | 0.294007 | 0.043071 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e82b3f9736e429583940ccca0c1055b7a0f8dda1 | 2,630 | py | Python | client/audio.py | Dmitry450/asynciogame | 47a2a118155805db37f2c3bd916bd6c68c504cff | [
"MIT"
] | null | null | null | client/audio.py | Dmitry450/asynciogame | 47a2a118155805db37f2c3bd916bd6c68c504cff | [
"MIT"
] | null | null | null | client/audio.py | Dmitry450/asynciogame | 47a2a118155805db37f2c3bd916bd6c68c504cff | [
"MIT"
] | 1 | 2022-03-10T16:05:09.000Z | 2022-03-10T16:05:09.000Z | import pygame
from pygame.math import Vector2
class Sound:
def __init__(self, manager, snd, volume=1.0):
self.manager = manager
self.snd = pygame.mixer.Sound(snd)
self.snd.set_volume(1.0)
self.ttl = snd.get_length()
self.playing = True
... | 30.229885 | 91 | 0.53308 | 302 | 2,630 | 4.506623 | 0.241722 | 0.035268 | 0.02939 | 0.035268 | 0.102866 | 0.064658 | 0 | 0 | 0 | 0 | 0 | 0.012537 | 0.363118 | 2,630 | 86 | 92 | 30.581395 | 0.8 | 0.098859 | 0 | 0.056604 | 0 | 0 | 0.027484 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.132075 | false | 0 | 0.037736 | 0 | 0.226415 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e82e3c8a5f7b2a855ae8103d8f7b3d7858fce12c | 457 | py | Python | python/util/md_utils.py | walterfan/snippets | 62f87720c411093fcff888f25b338afd1d99a6f9 | [
"Apache-2.0"
] | 1 | 2021-06-18T09:31:59.000Z | 2021-06-18T09:31:59.000Z | python/util/md_utils.py | walterfan/snippets | 62f87720c411093fcff888f25b338afd1d99a6f9 | [
"Apache-2.0"
] | 10 | 2020-12-12T08:12:06.000Z | 2022-03-02T06:54:10.000Z | python/util/md_utils.py | walterfan/snippets | 62f87720c411093fcff888f25b338afd1d99a6f9 | [
"Apache-2.0"
] | null | null | null | import os
import sys
import struct
import re
import logging
logging.basicConfig(stream=sys.stderr, level=logging.DEBUG)
logger = logging.getLogger(__name__)
def list_to_md(str_list):
output = ""
for str in str_list:
output = output + "* %s \n" % str
return output
def str_to_md_list(the_str, sep)... | 19.869565 | 59 | 0.66302 | 68 | 457 | 4.235294 | 0.411765 | 0.097222 | 0.135417 | 0.097222 | 0.347222 | 0.347222 | 0.347222 | 0.347222 | 0.347222 | 0.347222 | 0 | 0 | 0.234136 | 457 | 22 | 60 | 20.772727 | 0.822857 | 0 | 0 | 0.444444 | 0 | 0 | 0.030635 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.277778 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e82febc9f75bb1499d62773b17eb275855bf705c | 374 | py | Python | board/main.py | Josverl/micropython-stubber | 3dc57ea9e957bd9f36fce6abfe051a2fa7ace522 | [
"MIT"
] | 96 | 2019-04-10T15:03:27.000Z | 2022-03-29T09:07:14.000Z | board/main.py | Josverl/micropython-stubber | 3dc57ea9e957bd9f36fce6abfe051a2fa7ace522 | [
"MIT"
] | 154 | 2019-06-02T21:30:56.000Z | 2022-03-30T12:19:00.000Z | board/main.py | Josverl/micropython-stubber | 3dc57ea9e957bd9f36fce6abfe051a2fa7ace522 | [
"MIT"
] | 7 | 2019-06-14T19:54:22.000Z | 2022-03-29T05:02:32.000Z | import uos as os
import time
def countdown():
for i in range(5, 0, -1):
print("start stubbing in {}...".format(i))
time.sleep(1)
import createstubs
# import stub_lvgl
try:
# only run import if no stubs yet
os.listdir("stubs")
print("stub folder was found, stubbing is not aut... | 17.809524 | 73 | 0.636364 | 53 | 374 | 4.471698 | 0.735849 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014388 | 0.256684 | 374 | 20 | 74 | 18.7 | 0.83813 | 0.128342 | 0 | 0 | 0 | 0 | 0.272446 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 0 | 0.333333 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e83023e586a214491a4865df8d7fd4b1c0c4034a | 5,110 | py | Python | third_party/blink/tools/blinkpy/web_tests/breakpad/dump_reader_multipart_unittest.py | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | third_party/blink/tools/blinkpy/web_tests/breakpad/dump_reader_multipart_unittest.py | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | third_party/blink/tools/blinkpy/web_tests/breakpad/dump_reader_multipart_unittest.py | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | # Copyright (C) 2013 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the ... | 45.221239 | 104 | 0.724462 | 652 | 5,110 | 5.453988 | 0.338957 | 0.047807 | 0.023622 | 0.03712 | 0.494938 | 0.473847 | 0.413948 | 0.413948 | 0.413948 | 0.413948 | 0 | 0.003624 | 0.19002 | 5,110 | 112 | 105 | 45.625 | 0.855521 | 0.336595 | 0 | 0.523077 | 0 | 0 | 0.152472 | 0.057772 | 0 | 0 | 0 | 0 | 0.138462 | 1 | 0.061538 | false | 0 | 0.061538 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e832546effca406bca8fea44d6997bf80564cc29 | 19,186 | py | Python | src/ngc/main.py | HubTou/ngc | 9917adfbaff61e7b20b9f06a4be6b51237e4e768 | [
"BSD-3-Clause"
] | null | null | null | src/ngc/main.py | HubTou/ngc | 9917adfbaff61e7b20b9f06a4be6b51237e4e768 | [
"BSD-3-Clause"
] | null | null | null | src/ngc/main.py | HubTou/ngc | 9917adfbaff61e7b20b9f06a4be6b51237e4e768 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
""" ngc - n-grams count
License: 3-clause BSD (see https://opensource.org/licenses/BSD-3-Clause)
Author: Hubert Tournier
"""
import getopt
import logging
import os
import re
import string
import sys
import unicode2ascii
# Version string used by the what(1) and ident(1) commands:
ID = "@(#) $Id:... | 37.472656 | 100 | 0.526686 | 2,021 | 19,186 | 4.942603 | 0.152895 | 0.025929 | 0.048153 | 0.064871 | 0.316748 | 0.226349 | 0.133347 | 0.097908 | 0.066173 | 0.037041 | 0 | 0.013034 | 0.288179 | 19,186 | 511 | 101 | 37.545988 | 0.718386 | 0.073595 | 0 | 0.124352 | 0 | 0.010363 | 0.278257 | 0.005833 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028497 | false | 0 | 0.018135 | 0 | 0.056995 | 0.134715 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e834ba6213863414f344960900a8a67a2181902b | 3,713 | py | Python | sktime/regression/interval_based/_tsf.py | khrapovs/sktime | 1589d007ef5dbcdc1f42f2c8278919ebed516358 | [
"BSD-3-Clause"
] | 1 | 2021-12-22T02:45:39.000Z | 2021-12-22T02:45:39.000Z | sktime/regression/interval_based/_tsf.py | khrapovs/sktime | 1589d007ef5dbcdc1f42f2c8278919ebed516358 | [
"BSD-3-Clause"
] | null | null | null | sktime/regression/interval_based/_tsf.py | khrapovs/sktime | 1589d007ef5dbcdc1f42f2c8278919ebed516358 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""Time Series Forest Regressor (TSF)."""
__author__ = ["Tony Bagnall", "kkoziara", "luiszugasti", "kanand77", "Markus Löning"]
__all__ = ["TimeSeriesForestRegressor"]
import numpy as np
from joblib import Parallel, delayed
from sklearn.ensemble._forest import ForestRegressor
from sklearn.tree... | 30.434426 | 86 | 0.647724 | 446 | 3,713 | 5.29148 | 0.461883 | 0.014831 | 0.027119 | 0.015254 | 0.019068 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011228 | 0.256396 | 3,713 | 121 | 87 | 30.68595 | 0.843535 | 0.500135 | 0 | 0 | 0 | 0 | 0.128951 | 0.030341 | 0 | 0 | 0 | 0 | 0 | 1 | 0.128205 | false | 0 | 0.153846 | 0 | 0.487179 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e834f207abc6dbf424b5c37c56b17f80d4a4a1f6 | 7,766 | py | Python | vectorc2/vectorc2/settings.py | sebastiankruk/vectorc2 | 13232cd63ebed32346fb4a669511b102b8ed24c0 | [
"Apache-2.0"
] | 11 | 2019-02-27T01:38:47.000Z | 2020-11-13T02:14:58.000Z | vectorc2/vectorc2/settings.py | sebastiankruk/vectorc2 | 13232cd63ebed32346fb4a669511b102b8ed24c0 | [
"Apache-2.0"
] | 20 | 2019-02-27T21:22:59.000Z | 2022-01-13T01:22:16.000Z | vectorc2/vectorc2/settings.py | sebastiankruk/vectorc2 | 13232cd63ebed32346fb4a669511b102b8ed24c0 | [
"Apache-2.0"
] | 1 | 2020-01-14T09:14:28.000Z | 2020-01-14T09:14:28.000Z | """
Django settings for vectorc2 project.
Copyright 2019 Sebastian Ryszard Kruk <vectorc2@kruk.me>
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-... | 29.984556 | 107 | 0.676796 | 874 | 7,766 | 5.926773 | 0.371854 | 0.037645 | 0.022973 | 0.016216 | 0.200579 | 0.177413 | 0.118919 | 0.087066 | 0.029344 | 0 | 0 | 0.023588 | 0.197528 | 7,766 | 259 | 108 | 29.984556 | 0.807606 | 0.407674 | 0 | 0.061644 | 0 | 0 | 0.525528 | 0.368838 | 0 | 0 | 0 | 0.003861 | 0 | 1 | 0 | false | 0.034247 | 0.013699 | 0 | 0.013699 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e83506e2b2f1a14d61d7ea9ee2da6803dd09cbf8 | 7,802 | py | Python | datahandlers/wgisd.py | mikewoodson/ssl-transfer | 524e2d57e9ffdbf0497cd4a1404eb1f85dc9fca7 | [
"MIT"
] | null | null | null | datahandlers/wgisd.py | mikewoodson/ssl-transfer | 524e2d57e9ffdbf0497cd4a1404eb1f85dc9fca7 | [
"MIT"
] | null | null | null | datahandlers/wgisd.py | mikewoodson/ssl-transfer | 524e2d57e9ffdbf0497cd4a1404eb1f85dc9fca7 | [
"MIT"
] | null | null | null | from torchvision.datasets.folder import pil_loader, accimage_loader, default_loader
from torch import Tensor
from pathlib import Path
from enum import Enum
from collections import namedtuple
from torchvision import transforms as T
import os
import numpy as np
import pdb
import functools
import torch.utils.data as dat... | 33.34188 | 94 | 0.564214 | 960 | 7,802 | 4.428125 | 0.258333 | 0.019054 | 0.025406 | 0.018819 | 0.104916 | 0.060221 | 0.040932 | 0.034345 | 0.034345 | 0.034345 | 0 | 0.011914 | 0.322225 | 7,802 | 233 | 95 | 33.484979 | 0.791982 | 0.116637 | 0 | 0.156977 | 0 | 0 | 0.080807 | 0.005299 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081395 | false | 0 | 0.087209 | 0.023256 | 0.261628 | 0.011628 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e836afc7bcf3544821610837e954b4a6cbeab66b | 47,925 | py | Python | src/zope/testrunner/formatter.py | jamesjer/zope.testrunner | af8bfec49d90613633b76e914a6f54884463ba94 | [
"ZPL-2.1"
] | 1 | 2021-03-05T17:27:37.000Z | 2021-03-05T17:27:37.000Z | src/zope/testrunner/formatter.py | jamesjer/zope.testrunner | af8bfec49d90613633b76e914a6f54884463ba94 | [
"ZPL-2.1"
] | 91 | 2015-01-12T05:27:27.000Z | 2022-03-07T07:03:09.000Z | src/zope/testrunner/formatter.py | jamesjer/zope.testrunner | af8bfec49d90613633b76e914a6f54884463ba94 | [
"ZPL-2.1"
] | 14 | 2015-04-03T09:53:36.000Z | 2021-05-10T15:51:53.000Z | ##############################################################################
#
# Copyright (c) 2004-2008 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THI... | 35.952738 | 94 | 0.584768 | 5,714 | 47,925 | 4.765313 | 0.133007 | 0.020603 | 0.008227 | 0.011165 | 0.507657 | 0.457233 | 0.435308 | 0.412024 | 0.39704 | 0.374601 | 0 | 0.005263 | 0.306228 | 47,925 | 1,332 | 95 | 35.97973 | 0.813679 | 0.280605 | 0 | 0.488432 | 0 | 0.001285 | 0.083272 | 0.000674 | 0 | 0 | 0 | 0 | 0 | 1 | 0.145244 | false | 0.011568 | 0.046272 | 0.006427 | 0.263496 | 0.105398 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
08fa457de4bf935aa74ea49389d3610e34fb81f5 | 4,179 | py | Python | dask/tests/test_highgraph.py | ianthomas23/dask | 7968e85e2edab95565ebbab1f936c9c549e29126 | [
"BSD-3-Clause"
] | null | null | null | dask/tests/test_highgraph.py | ianthomas23/dask | 7968e85e2edab95565ebbab1f936c9c549e29126 | [
"BSD-3-Clause"
] | null | null | null | dask/tests/test_highgraph.py | ianthomas23/dask | 7968e85e2edab95565ebbab1f936c9c549e29126 | [
"BSD-3-Clause"
] | null | null | null | from functools import partial
import os
import pytest
import dask
import dask.array as da
from dask.utils_test import inc
from dask.highlevelgraph import HighLevelGraph, BasicLayer, Layer
from dask.blockwise import Blockwise
from dask.array.utils import assert_eq
def test_visualize(tmpdir):
pytest.importorskip(... | 27.313725 | 94 | 0.61139 | 599 | 4,179 | 4.09015 | 0.217028 | 0.022857 | 0.020408 | 0.014694 | 0.220816 | 0.14449 | 0.113469 | 0.091429 | 0.043265 | 0.043265 | 0 | 0.016368 | 0.23977 | 4,179 | 152 | 95 | 27.493421 | 0.7548 | 0.07418 | 0 | 0.196429 | 0 | 0 | 0.037863 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 1 | 0.098214 | false | 0 | 0.089286 | 0.008929 | 0.223214 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
08fa7b2b56dd9ac93cd0f3c88381b55adb14d1bc | 4,612 | py | Python | transference.py | webpwnized/cryptography | 52660c14aa71afe087cf380bb1e9d067fa639bc6 | [
"MIT"
] | 13 | 2017-02-20T21:42:08.000Z | 2021-08-01T21:18:51.000Z | transference.py | webpwnized/cryptography | 52660c14aa71afe087cf380bb1e9d067fa639bc6 | [
"MIT"
] | 1 | 2017-03-24T22:52:25.000Z | 2017-03-26T23:14:08.000Z | transference.py | webpwnized/cryptography | 52660c14aa71afe087cf380bb1e9d067fa639bc6 | [
"MIT"
] | 2 | 2019-02-19T05:01:58.000Z | 2020-04-11T04:10:32.000Z | # Requires pip install bitarray
from bitarray import bitarray
import argparse, math
def derive_transfer_function(pTransferFunctionString: str) -> list:
lTransferFunction = list(map(int, pTransferFunctionString.split(',')))
lTransferFunctionValid = True
lLengthTransferFunction = len(lTransferFunction)
... | 36.03125 | 301 | 0.645056 | 529 | 4,612 | 5.544423 | 0.253308 | 0.065462 | 0.027276 | 0.030003 | 0.315718 | 0.287078 | 0.255029 | 0.229117 | 0.210365 | 0.188544 | 0 | 0.010043 | 0.244363 | 4,612 | 127 | 302 | 36.314961 | 0.831564 | 0.042498 | 0 | 0.2875 | 0 | 0.025 | 0.186464 | 0.012037 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0375 | false | 0 | 0.025 | 0 | 0.075 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
08fbd2caaba4bfcce30f566e05b356d741dbf22e | 6,264 | py | Python | tests/test_client.py | mjcaley/spamc | 67c4f2b13d569238ea24794eb5253a1416226a2a | [
"MIT"
] | null | null | null | tests/test_client.py | mjcaley/spamc | 67c4f2b13d569238ea24794eb5253a1416226a2a | [
"MIT"
] | null | null | null | tests/test_client.py | mjcaley/spamc | 67c4f2b13d569238ea24794eb5253a1416226a2a | [
"MIT"
] | null | null | null | import pytest
from aiospamc.client import Client
from aiospamc.exceptions import (
BadResponse,
UsageException,
DataErrorException,
NoInputException,
NoUserException,
NoHostException,
UnavailableException,
InternalSoftwareException,
OSErrorException,
OSFileException,
CantCre... | 30.115385 | 88 | 0.773467 | 754 | 6,264 | 6.068966 | 0.108753 | 0.17264 | 0.133741 | 0.083042 | 0.651442 | 0.581075 | 0.536495 | 0.45083 | 0.3691 | 0.323427 | 0 | 0.00075 | 0.148946 | 6,264 | 207 | 89 | 30.26087 | 0.857625 | 0 | 0 | 0.287671 | 0 | 0 | 0.001596 | 0 | 0 | 0 | 0 | 0 | 0.020548 | 1 | 0 | false | 0 | 0.027397 | 0 | 0.027397 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
08fc5d8c5d3505334ae9288303604f1b7aea6a2c | 3,534 | py | Python | sunpy/conftest.py | tacaswell/sunpy | 1e06d75408d1a621749a5d4e743ae44a31886100 | [
"BSD-2-Clause"
] | null | null | null | sunpy/conftest.py | tacaswell/sunpy | 1e06d75408d1a621749a5d4e743ae44a31886100 | [
"BSD-2-Clause"
] | null | null | null | sunpy/conftest.py | tacaswell/sunpy | 1e06d75408d1a621749a5d4e743ae44a31886100 | [
"BSD-2-Clause"
] | null | null | null | import os
import tempfile
import importlib
import pytest
import astropy
import astropy.config.paths
# Force MPL to use non-gui backends for testing.
try:
import matplotlib
except ImportError:
pass
else:
matplotlib.use('Agg')
# Don't actually import pytest_remotedata because that can do things to the
# e... | 27.184615 | 90 | 0.695812 | 465 | 3,534 | 5.148387 | 0.311828 | 0.045113 | 0.05848 | 0.048037 | 0.310777 | 0.188388 | 0.16249 | 0.146199 | 0.035923 | 0.035923 | 0 | 0 | 0.210809 | 3,534 | 129 | 91 | 27.395349 | 0.858372 | 0.232598 | 0 | 0.184211 | 0 | 0 | 0.138224 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.118421 | false | 0.013158 | 0.171053 | 0 | 0.302632 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
08fd1346d7002eaa8e3e4a99ba4673e257dc45fd | 10,165 | py | Python | qtcalendar/models.py | asmateus/PyQtCalendar | b8e5e468082f08159744f692e8edaf2ad52fccbb | [
"MIT"
] | 7 | 2018-01-30T19:23:18.000Z | 2022-02-04T13:07:57.000Z | qtcalendar/models.py | asmateus/PyQtCalendar | b8e5e468082f08159744f692e8edaf2ad52fccbb | [
"MIT"
] | 1 | 2020-11-13T14:58:41.000Z | 2021-04-27T16:58:46.000Z | qtcalendar/models.py | asmateus/PyQtCalendar | b8e5e468082f08159744f692e8edaf2ad52fccbb | [
"MIT"
] | 3 | 2020-05-20T04:40:35.000Z | 2021-02-24T08:58:40.000Z | '''
Models for QtWidgets
'''
from collections import deque
from math import ceil
import datetime as dt
import calendar
class EventInCalendar__Model:
class Text:
@staticmethod
def getDefault():
return EventInCalendar__Model.Text()
def __init__(self, event=None, overflow=Fal... | 30.61747 | 92 | 0.59331 | 1,259 | 10,165 | 4.567911 | 0.180302 | 0.021909 | 0.026778 | 0.01478 | 0.159972 | 0.117545 | 0.088332 | 0.057729 | 0.013911 | 0.013911 | 0 | 0.025865 | 0.311559 | 10,165 | 331 | 93 | 30.70997 | 0.795942 | 0.117167 | 0 | 0.179039 | 0 | 0 | 0.010453 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.174672 | false | 0 | 0.017467 | 0.056769 | 0.432314 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
08fddb52b339d532616e5502ab7e8a544bac55d1 | 5,457 | py | Python | python/orca/src/bigdl/orca/data/tf/data.py | Forest216/BigDL | 840da9a2eaf395978dd83730b02aa5e5dfbd7989 | [
"Apache-2.0"
] | null | null | null | python/orca/src/bigdl/orca/data/tf/data.py | Forest216/BigDL | 840da9a2eaf395978dd83730b02aa5e5dfbd7989 | [
"Apache-2.0"
] | null | null | null | python/orca/src/bigdl/orca/data/tf/data.py | Forest216/BigDL | 840da9a2eaf395978dd83730b02aa5e5dfbd7989 | [
"Apache-2.0"
] | null | null | null | #
# Copyright 2016 The BigDL Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 36.139073 | 98 | 0.646876 | 647 | 5,457 | 5.183926 | 0.278207 | 0.045617 | 0.067084 | 0.02266 | 0.218843 | 0.148479 | 0.13059 | 0.105546 | 0.105546 | 0.105546 | 0 | 0.003062 | 0.28184 | 5,457 | 150 | 99 | 36.38 | 0.852769 | 0.128092 | 0 | 0.27957 | 0 | 0 | 0.038771 | 0 | 0 | 0 | 0 | 0 | 0.010753 | 1 | 0.129032 | false | 0 | 0.11828 | 0.032258 | 0.397849 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
08fee5df6d43bb80284a92b04bcc18e2811bda85 | 5,629 | py | Python | ampel/cli/AbsStockCommand.py | AmpelProject/Ampel-core | dcbfbe38ba400b7f8e44e641b90217ca1bed4f8f | [
"BSD-3-Clause"
] | 5 | 2021-04-15T07:43:26.000Z | 2022-03-04T09:25:09.000Z | ampel/cli/AbsStockCommand.py | AmpelProject/Ampel-core | dcbfbe38ba400b7f8e44e641b90217ca1bed4f8f | [
"BSD-3-Clause"
] | 67 | 2021-02-23T21:43:20.000Z | 2021-12-15T23:28:32.000Z | ampel/cli/AbsStockCommand.py | AmpelProject/Ampel-core | dcbfbe38ba400b7f8e44e641b90217ca1bed4f8f | [
"BSD-3-Clause"
] | 1 | 2021-04-26T07:52:19.000Z | 2021-04-26T07:52:19.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# File : Ampel-core/ampel/cli/AbsStockCommand.py
# License : BSD-3-Clause
# Author : vb <vbrinnel@physik.hu-berlin.de>
# Date : 25.03.2021
# Last Modified Date: 25.03.2021
# Last Modified By : vb <vbrinnel@physik.hu-berlin.de>... | 39.921986 | 109 | 0.688399 | 740 | 5,629 | 5.155405 | 0.231081 | 0.037746 | 0.022018 | 0.023591 | 0.283617 | 0.151769 | 0.120577 | 0.069987 | 0.014679 | 0 | 0 | 0.004157 | 0.145319 | 5,629 | 140 | 110 | 40.207143 | 0.788817 | 0.071061 | 0 | 0.038835 | 0 | 0 | 0.395353 | 0.041475 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048544 | false | 0 | 0.116505 | 0.009709 | 0.213592 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
08ff6b2659f5dee9c411e3cb6cfb927747bc30ea | 682 | py | Python | programmers/lv2/42888.py | KLumy/Basic-Algorithm | e52e4200c1955a9062569814ff3418dd06666845 | [
"MIT"
] | 1 | 2021-01-22T15:58:32.000Z | 2021-01-22T15:58:32.000Z | programmers/lv2/42888.py | KLumy/Basic-Algorithm | e52e4200c1955a9062569814ff3418dd06666845 | [
"MIT"
] | null | null | null | programmers/lv2/42888.py | KLumy/Basic-Algorithm | e52e4200c1955a9062569814ff3418dd06666845 | [
"MIT"
] | null | null | null | from typing import List
def solution(records: List[str]):
logger = []
id_name = dict()
message = {"Enter": "님이 들어왔습니다.", "Leave": "님이 나갔습니다."}
for record in records:
op, id, *name = record.split()
if name:
id_name[id] = name[0]
if op in message:
logger.... | 22 | 59 | 0.532258 | 82 | 682 | 4.292683 | 0.47561 | 0.085227 | 0.056818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046358 | 0.335777 | 682 | 31 | 60 | 22 | 0.730684 | 0 | 0 | 0 | 0 | 0 | 0.183016 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.04 | 0 | 0.12 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
08ffd799a57ae50947297bcb41ac6ea2c30df0ab | 7,081 | py | Python | app/nets.py | bobosoft/intrepyd | 13f0912b31f86f9bcc50f52ef4ad870e33f0cf65 | [
"BSD-3-Clause"
] | 2 | 2021-04-25T17:38:03.000Z | 2022-03-20T20:48:50.000Z | app/nets.py | bobosoft/intrepyd | 13f0912b31f86f9bcc50f52ef4ad870e33f0cf65 | [
"BSD-3-Clause"
] | 1 | 2016-11-30T22:25:00.000Z | 2017-01-16T22:43:39.000Z | app/nets.py | bobosoft/intrepyd | 13f0912b31f86f9bcc50f52ef4ad870e33f0cf65 | [
"BSD-3-Clause"
] | null | null | null | """
Implementation of REST API for nets creation
"""
from flask import Blueprint, request
from .utils import typename_to_type
from .contexts import contexts
nr = Blueprint('nets', __name__)
def _create_bool_constant(func):
context = request.get_json()['context']
if context is None:
return {'result': '... | 26.82197 | 71 | 0.609942 | 1,045 | 7,081 | 3.976077 | 0.130144 | 0.017329 | 0.077497 | 0.11071 | 0.613718 | 0.444765 | 0.417088 | 0.407461 | 0.340554 | 0.304212 | 0 | 0.013801 | 0.222285 | 7,081 | 263 | 72 | 26.923954 | 0.740694 | 0.082757 | 0 | 0.23125 | 0 | 0 | 0.107557 | 0 | 0 | 0 | 0 | 0 | 0.06875 | 1 | 0.16875 | false | 0 | 0.01875 | 0 | 0.4 | 0.0125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
08fffc77755fbb25f85fc2fc8357c667133dc97d | 3,091 | py | Python | tensorflow_addons/image/utils.py | Soroosh129/addons | d92ae02d04e9052f6ca5ea272873efd15eaa35ce | [
"Apache-2.0"
] | 1 | 2020-09-09T14:51:22.000Z | 2020-09-09T14:51:22.000Z | tensorflow_addons/image/utils.py | pkanwar23/addons | de99c6dd904c475c5c95726911f4aac447c13361 | [
"Apache-2.0"
] | null | null | null | tensorflow_addons/image/utils.py | pkanwar23/addons | de99c6dd904c475c5c95726911f4aac447c13361 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# 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 applica... | 30.303922 | 81 | 0.586218 | 445 | 3,091 | 3.973034 | 0.283146 | 0.039593 | 0.040724 | 0.011312 | 0.393665 | 0.263575 | 0.2319 | 0.2319 | 0.2319 | 0.2319 | 0 | 0.031015 | 0.269816 | 3,091 | 101 | 82 | 30.60396 | 0.752326 | 0.37496 | 0 | 0.307692 | 0 | 0 | 0.029173 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 1 | 0.096154 | false | 0 | 0.019231 | 0.019231 | 0.326923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c00c51dbbd7d3ac777974eea9dbea63a30953c4 | 1,921 | py | Python | backend/users/views.py | jochanmin/Blog | 465dcb951ebe2e2fabcd81d0c4e0221decc66ccc | [
"MIT"
] | 11 | 2020-04-26T13:55:08.000Z | 2022-01-27T08:30:03.000Z | backend/users/views.py | jochanmin/Blog | 465dcb951ebe2e2fabcd81d0c4e0221decc66ccc | [
"MIT"
] | 26 | 2020-09-27T16:14:36.000Z | 2022-01-08T13:29:14.000Z | backend/users/views.py | jochanmin/Blog | 465dcb951ebe2e2fabcd81d0c4e0221decc66ccc | [
"MIT"
] | 3 | 2020-05-22T20:01:56.000Z | 2022-01-08T08:40:37.000Z | from django.shortcuts import render
from django.core import serializers
from .models import User
from django.forms.models import model_to_dict
from rest_framework import status
from rest_framework.response import Response
from rest_framework.decorators import api_view, permission_classes
from rest_framework.permissions... | 36.942308 | 100 | 0.668922 | 238 | 1,921 | 5.252101 | 0.365546 | 0.0784 | 0.0896 | 0.0528 | 0.1584 | 0.1072 | 0.064 | 0 | 0 | 0 | 0 | 0.014637 | 0.217595 | 1,921 | 51 | 101 | 37.666667 | 0.817033 | 0.041124 | 0 | 0.090909 | 0 | 0 | 0.107182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0.045455 | 0.181818 | 0 | 0.386364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c00e4c128a365529289973580dd79e35cc9432c | 4,134 | py | Python | src/test/test_Location.py | MrRollyPanda/astral | 5a1b013c945fa902b475ff0fa6769f0d43fe2999 | [
"Apache-2.0"
] | null | null | null | src/test/test_Location.py | MrRollyPanda/astral | 5a1b013c945fa902b475ff0fa6769f0d43fe2999 | [
"Apache-2.0"
] | null | null | null | src/test/test_Location.py | MrRollyPanda/astral | 5a1b013c945fa902b475ff0fa6769f0d43fe2999 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from pytest import raises
from astral import Astral, AstralError, Location
import datetime
import pytz
def datetime_almost_equal(datetime1, datetime2, seconds=60):
dd = datetime1 - datetime2
sd = (dd.days * 24 * 60 * 60) + dd.seconds
return abs(sd) <= seconds
def test_Location_N... | 20.984772 | 75 | 0.630866 | 543 | 4,134 | 4.661142 | 0.239411 | 0.071908 | 0.154089 | 0.031608 | 0.244567 | 0.125642 | 0.086922 | 0.086922 | 0.086922 | 0.086922 | 0 | 0.041993 | 0.228108 | 4,134 | 196 | 76 | 21.091837 | 0.751175 | 0.00508 | 0 | 0.237037 | 0 | 0 | 0.074678 | 0 | 0 | 0 | 0 | 0 | 0.17037 | 1 | 0.2 | false | 0 | 0.02963 | 0 | 0.237037 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c0280c3ce6e60aeea9f1bd9542b3a69e75d70e4 | 10,478 | py | Python | tensorflow/python/kernel_tests/lu_op_test.py | PaulWang1905/tensorflow | ebf12d22b4801fb8dab5034cc94562bf7cc33fa0 | [
"Apache-2.0"
] | 36 | 2016-12-17T15:25:25.000Z | 2022-01-29T21:50:53.000Z | tensorflow/python/kernel_tests/lu_op_test.py | PaulWang1905/tensorflow | ebf12d22b4801fb8dab5034cc94562bf7cc33fa0 | [
"Apache-2.0"
] | 59 | 2019-06-17T09:37:49.000Z | 2022-01-19T01:21:34.000Z | tensorflow/python/kernel_tests/lu_op_test.py | PaulWang1905/tensorflow | ebf12d22b4801fb8dab5034cc94562bf7cc33fa0 | [
"Apache-2.0"
] | 36 | 2017-07-27T21:12:40.000Z | 2022-02-03T16:45:56.000Z | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# 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 applica... | 36.894366 | 80 | 0.644589 | 1,432 | 10,478 | 4.537011 | 0.215782 | 0.030168 | 0.043097 | 0.024781 | 0.378175 | 0.321841 | 0.265815 | 0.247037 | 0.192089 | 0.179775 | 0 | 0.037577 | 0.227906 | 10,478 | 283 | 81 | 37.024735 | 0.765513 | 0.175415 | 0 | 0.241206 | 0 | 0 | 0.00768 | 0 | 0 | 0 | 0 | 0 | 0.075377 | 1 | 0.060302 | false | 0 | 0.090452 | 0.005025 | 0.175879 | 0.005025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c02cc341eda998a41a468c758008bb1da86efcd | 10,970 | py | Python | aligner/features/processing.py | zhouyangnk/Montreal-Forced-Aligner | 4f8733409e79a50744616921a04fccf115e8af6f | [
"MIT"
] | 1 | 2021-03-09T03:15:14.000Z | 2021-03-09T03:15:14.000Z | aligner/features/processing.py | missaaoo/Montreal-Forced-Aligner | 62a40e2337448752a4b8fc7a4ec9cbf3f159fbff | [
"MIT"
] | null | null | null | aligner/features/processing.py | missaaoo/Montreal-Forced-Aligner | 62a40e2337448752a4b8fc7a4ec9cbf3f159fbff | [
"MIT"
] | 1 | 2021-03-09T03:15:17.000Z | 2021-03-09T03:15:17.000Z | import multiprocessing as mp
import subprocess
import shutil
import os
from ..helper import make_path_safe, thirdparty_binary, filter_scp
from ..exceptions import CorpusError
def mfcc_func(directory, job_name, mfcc_config_path): # pragma: no cover
log_directory = os.path.join(directory, 'log')
raw_mfcc_path... | 52.740385 | 142 | 0.51887 | 1,175 | 10,970 | 4.651915 | 0.178723 | 0.029638 | 0.040249 | 0.069521 | 0.574094 | 0.504391 | 0.487925 | 0.445481 | 0.444566 | 0.409257 | 0 | 0.001437 | 0.365542 | 10,970 | 207 | 143 | 52.995169 | 0.783908 | 0.07484 | 0 | 0.433962 | 0 | 0.006289 | 0.087238 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056604 | false | 0 | 0.037736 | 0 | 0.09434 | 0.006289 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c03e5b1937b24240e10a556ec3658ca89e78e05 | 19,640 | py | Python | ffai/util/bothelper.py | tysen2k/ffai | 2fa1fd45a8877986fdb21e3fea5e01cbf819d3ec | [
"Apache-2.0"
] | null | null | null | ffai/util/bothelper.py | tysen2k/ffai | 2fa1fd45a8877986fdb21e3fea5e01cbf819d3ec | [
"Apache-2.0"
] | null | null | null | ffai/util/bothelper.py | tysen2k/ffai | 2fa1fd45a8877986fdb21e3fea5e01cbf819d3ec | [
"Apache-2.0"
] | null | null | null | """
A number of static methods for interpretting the state of the fantasy football pitch that aren't required directly by
the client
"""
from ffai.core import Game, Action, ActionType
from ffai.core.procedure import *
from ffai.util.pathfinding import *
from typing import Optional, List, Dict
class ActionSequence:
... | 39.676768 | 253 | 0.667668 | 2,865 | 19,640 | 4.391623 | 0.103316 | 0.03505 | 0.046495 | 0.07312 | 0.594182 | 0.51216 | 0.482515 | 0.44214 | 0.415991 | 0.397552 | 0 | 0.016382 | 0.222963 | 19,640 | 494 | 254 | 39.757085 | 0.808073 | 0.129481 | 0 | 0.414239 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.161812 | false | 0.009709 | 0.012945 | 0.045307 | 0.36246 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c04bbf01c459890b136a85f02fecf87b5220fd7 | 601 | py | Python | sb_backend/cli/cli.py | DmitriyGrigoriev/sb-fastapi | 1aef3db6ce26ea054e048e5927552d48c2eccbfb | [
"MIT"
] | null | null | null | sb_backend/cli/cli.py | DmitriyGrigoriev/sb-fastapi | 1aef3db6ce26ea054e048e5927552d48c2eccbfb | [
"MIT"
] | null | null | null | sb_backend/cli/cli.py | DmitriyGrigoriev/sb-fastapi | 1aef3db6ce26ea054e048e5927552d48c2eccbfb | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""sb-fastapi CLI root."""
import logging
import click
from sb_backend.cli.commands.serve import serve
@click.group()
@click.option(
"-v",
"--verbose",
help="Enable verbose logging.",
is_flag=True,
default=False,
)
def cli(**options):
"""sb-fastapi CLI root."""
if ... | 18.78125 | 73 | 0.582363 | 76 | 601 | 4.565789 | 0.618421 | 0.051873 | 0.069164 | 0.092219 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002155 | 0.227953 | 601 | 31 | 74 | 19.387097 | 0.74569 | 0.106489 | 0 | 0 | 0 | 0 | 0.220532 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.136364 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c051e0c55fbe3f232891ef1ecc26d26fcbe892f | 1,152 | py | Python | third_party/webrtc/src/chromium/src/build/android/devil/android/sdk/aapt.py | bopopescu/webrtc-streaming-node | 727a441204344ff596401b0253caac372b714d91 | [
"MIT"
] | 8 | 2016-02-08T11:59:31.000Z | 2020-05-31T15:19:54.000Z | third_party/webrtc/src/chromium/src/build/android/devil/android/sdk/aapt.py | bopopescu/webrtc-streaming-node | 727a441204344ff596401b0253caac372b714d91 | [
"MIT"
] | 1 | 2016-01-29T00:54:49.000Z | 2016-01-29T00:54:49.000Z | third_party/webrtc/src/chromium/src/build/android/devil/android/sdk/aapt.py | bopopescu/webrtc-streaming-node | 727a441204344ff596401b0253caac372b714d91 | [
"MIT"
] | 7 | 2016-02-09T09:28:14.000Z | 2020-07-25T19:03:36.000Z | # Copyright 2015 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.
"""This module wraps the Android Asset Packaging Tool."""
import os
from devil.utils import cmd_helper
from pylib import constants
_AAPT_PATH = os.path.jo... | 27.428571 | 75 | 0.688368 | 166 | 1,152 | 4.716867 | 0.487952 | 0.02682 | 0.034483 | 0.049808 | 0.145594 | 0.091954 | 0.091954 | 0.091954 | 0 | 0 | 0 | 0.005513 | 0.212674 | 1,152 | 41 | 76 | 28.097561 | 0.857773 | 0.447917 | 0 | 0 | 0 | 0 | 0.100671 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.1875 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c0727618b7254d68a22ae858de032e6c20ddbc5 | 2,218 | py | Python | quacc/recipes/psi4/core.py | arosen93/HT-ASE | a76542e7a2bc5bf6e7382d8f1387374eb2abc713 | [
"BSD-3-Clause-LBNL"
] | 9 | 2022-02-08T08:31:30.000Z | 2022-03-30T21:37:35.000Z | quacc/recipes/psi4/core.py | arosen93/HT-ASE | a76542e7a2bc5bf6e7382d8f1387374eb2abc713 | [
"BSD-3-Clause-LBNL"
] | 5 | 2022-02-02T21:47:59.000Z | 2022-03-18T21:28:52.000Z | quacc/recipes/psi4/core.py | arosen93/HT-ASE | a76542e7a2bc5bf6e7382d8f1387374eb2abc713 | [
"BSD-3-Clause-LBNL"
] | 3 | 2022-02-23T12:00:57.000Z | 2022-03-24T23:54:22.000Z | """Core recipes for Psi4"""
from __future__ import annotations
from dataclasses import dataclass
from typing import Any, Dict
from ase.atoms import Atoms
from ase.calculators.psi4 import Psi4
from jobflow import Maker, job
from monty.dev import requires
try:
import psi4
except:
psi4 = None
from quacc.schemas... | 25.494253 | 84 | 0.587917 | 267 | 2,218 | 4.786517 | 0.404494 | 0.015649 | 0.046948 | 0.020344 | 0.129108 | 0.093897 | 0.057903 | 0.057903 | 0.057903 | 0 | 0 | 0.011881 | 0.316952 | 2,218 | 86 | 85 | 25.790698 | 0.831683 | 0.260595 | 0 | 0 | 0 | 0 | 0.090028 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0 | 0.255814 | 0 | 0.418605 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c076dedd327711fd82ede330f8c1964afc14a4e | 7,468 | py | Python | i2vec_cli/__main__.py | rachmadaniHaryono/i2vec_cli | 9e03ca1c930e5eab8e42ac882c66e18f7c7435ba | [
"MIT"
] | null | null | null | i2vec_cli/__main__.py | rachmadaniHaryono/i2vec_cli | 9e03ca1c930e5eab8e42ac882c66e18f7c7435ba | [
"MIT"
] | null | null | null | i2vec_cli/__main__.py | rachmadaniHaryono/i2vec_cli | 9e03ca1c930e5eab8e42ac882c66e18f7c7435ba | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""get tag from http://demo.illustration2vec.net/."""
# note:
# - error 'ERROR: Request Entity Too Large' for file 1.1 mb
# <span style="color:red;">ERROR: Request Entity Too Large</span>
from collections import OrderedDict
from pathlib import Path
from pprint import pformat
import imghdr
import ... | 30.987552 | 98 | 0.644215 | 982 | 7,468 | 4.747454 | 0.247454 | 0.036465 | 0.018018 | 0.011583 | 0.105963 | 0.046547 | 0.03861 | 0.027885 | 0 | 0 | 0 | 0.01127 | 0.239555 | 7,468 | 240 | 99 | 31.116667 | 0.80965 | 0.090252 | 0 | 0.185792 | 0 | 0 | 0.111674 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04918 | false | 0 | 0.103825 | 0 | 0.240437 | 0.032787 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c079634ef4058798430437eb20ed1003701c2d2 | 23,443 | py | Python | cherrypy/lib/cptools.py | debrando/cherrypy | a92c5cc5d888b0aad327bce34e94da4a1f961e43 | [
"BSD-3-Clause"
] | 2 | 2019-03-04T15:17:49.000Z | 2021-04-04T08:08:14.000Z | lib/cherrypy/lib/cptools.py | rrosajp/script.module.cherrypy | 61ae795123755f3be43611e0f2667e85ef20c9d3 | [
"BSD-3-Clause"
] | 2 | 2019-11-16T13:20:55.000Z | 2021-01-10T11:28:43.000Z | lib/cherrypy/lib/cptools.py | rrosajp/script.module.cherrypy | 61ae795123755f3be43611e0f2667e85ef20c9d3 | [
"BSD-3-Clause"
] | 6 | 2020-05-22T15:25:34.000Z | 2021-08-13T09:43:01.000Z | """Functions for builtin CherryPy tools."""
import logging
import re
from hashlib import md5
import six
from six.moves import urllib
import cherrypy
from cherrypy._cpcompat import text_or_bytes
from cherrypy.lib import httputil as _httputil
from cherrypy.lib import is_iterator
# Conditional HTT... | 36.572543 | 81 | 0.601971 | 2,892 | 23,443 | 4.824343 | 0.171508 | 0.022864 | 0.026878 | 0.032253 | 0.206565 | 0.157755 | 0.134103 | 0.125358 | 0.103999 | 0.086296 | 0 | 0.007058 | 0.292838 | 23,443 | 640 | 82 | 36.629688 | 0.83454 | 0.259523 | 0 | 0.28392 | 0 | 0.002513 | 0.138137 | 0.002565 | 0 | 0 | 0 | 0 | 0 | 1 | 0.080402 | false | 0.022613 | 0.025126 | 0.002513 | 0.160804 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c07bfa6e3a91882477a3925b04caaee6211dc0f | 3,216 | py | Python | pyiomica/utilityFunctions.py | benstear/pyiomica | bc26032b610fc911cc03b54115d6abdf53a56fce | [
"MIT"
] | null | null | null | pyiomica/utilityFunctions.py | benstear/pyiomica | bc26032b610fc911cc03b54115d6abdf53a56fce | [
"MIT"
] | null | null | null | pyiomica/utilityFunctions.py | benstear/pyiomica | bc26032b610fc911cc03b54115d6abdf53a56fce | [
"MIT"
] | null | null | null | '''Utility functions'''
import multiprocessing
from .globalVariables import *
def readMathIOmicaData(fileName):
'''Read text files exported by MathIOmica and convert to Python data
Parameters:
fileName: str
Path of directories and name of the file containing data
... | 26.578512 | 107 | 0.60852 | 335 | 3,216 | 5.791045 | 0.414925 | 0.043299 | 0.043299 | 0.021649 | 0.041237 | 0.041237 | 0.028866 | 0 | 0 | 0 | 0 | 0.003429 | 0.274565 | 3,216 | 120 | 108 | 26.8 | 0.828118 | 0.398632 | 0 | 0.055556 | 0 | 0 | 0.062384 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.055556 | 0 | 0.305556 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c0a49535e49079808208d6bb2ff3cdc8ca96e3f | 2,843 | py | Python | python/labbox/api/_session.py | flatironinstitute/labbox | d8b331d55a5cca543567c3b2e92bcdc02b46e799 | [
"Apache-2.0"
] | 1 | 2021-09-23T01:10:39.000Z | 2021-09-23T01:10:39.000Z | python/labbox/api/_session.py | flatironinstitute/labbox | d8b331d55a5cca543567c3b2e92bcdc02b46e799 | [
"Apache-2.0"
] | null | null | null | python/labbox/api/_session.py | flatironinstitute/labbox | d8b331d55a5cca543567c3b2e92bcdc02b46e799 | [
"Apache-2.0"
] | 1 | 2021-09-23T01:10:39.000Z | 2021-09-23T01:10:39.000Z | import time
import multiprocessing
class Session:
def __init__(self, *, labbox_config, default_feed_name: str):
self._labbox_config = labbox_config
pipe_to_parent, pipe_to_child = multiprocessing.Pipe()
self._worker_process = multiprocessing.Process(target=_run_worker_session, args=(pipe_... | 38.418919 | 140 | 0.593739 | 305 | 2,843 | 5.183607 | 0.229508 | 0.049336 | 0.045541 | 0.050601 | 0.404807 | 0.344086 | 0.289058 | 0.237192 | 0.187856 | 0.187856 | 0 | 0.001554 | 0.320788 | 2,843 | 73 | 141 | 38.945205 | 0.817193 | 0 | 0 | 0.285714 | 0 | 0 | 0.108688 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114286 | false | 0.014286 | 0.042857 | 0.014286 | 0.214286 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c0adf2b82d9cbfe6db20d368afa9827c211f577 | 8,114 | py | Python | aldryn_newsblog/tests/test_reversion.py | GabrielDumbrava/aldryn-newsblog | f3be5ff78e88fde532ce4c45e5eeb88d98fa6d93 | [
"BSD-3-Clause"
] | null | null | null | aldryn_newsblog/tests/test_reversion.py | GabrielDumbrava/aldryn-newsblog | f3be5ff78e88fde532ce4c45e5eeb88d98fa6d93 | [
"BSD-3-Clause"
] | null | null | null | aldryn_newsblog/tests/test_reversion.py | GabrielDumbrava/aldryn-newsblog | f3be5ff78e88fde532ce4c45e5eeb88d98fa6d93 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from unittest import skipIf
try:
from django.core.urlresolvers import reverse
except ModuleNotFoundError:
from django.urls import reverse
from django.db import transaction
from aldryn_reversion.core import create_revision as aldryn_create_revisio... | 37.391705 | 78 | 0.646537 | 903 | 8,114 | 5.590255 | 0.188261 | 0.064184 | 0.09271 | 0.062401 | 0.643819 | 0.60103 | 0.544176 | 0.528724 | 0.528724 | 0.528724 | 0 | 0.015839 | 0.260784 | 8,114 | 216 | 79 | 37.564815 | 0.825775 | 0.080232 | 0 | 0.52 | 0 | 0 | 0.028088 | 0.003091 | 0 | 0 | 0 | 0.00463 | 0.193333 | 1 | 0.04 | false | 0 | 0.106667 | 0 | 0.153333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c0c6c9d53be4b7690f691af9859df23fb71fa58 | 38,971 | py | Python | network/network.py | VirtualEmbryo/lumen_network | 35b1dadccd087c9ef234f12c2735098b82890b34 | [
"MIT"
] | 1 | 2019-08-02T07:41:27.000Z | 2019-08-02T07:41:27.000Z | network/network.py | VirtualEmbryo/lumen_network | 35b1dadccd087c9ef234f12c2735098b82890b34 | [
"MIT"
] | null | null | null | network/network.py | VirtualEmbryo/lumen_network | 35b1dadccd087c9ef234f12c2735098b82890b34 | [
"MIT"
] | null | null | null | # Library for the dynamics of a lumen network
# The lumen are 2 dimensional and symmetric and connected with 1 dimensional tubes
#
# Created by A. Mielke, 2018
# Modified by M. Le Verge--Serandour on 8/04/2019
"""
network.py conf.init
Defines the class network and associated functions
Imports
... | 38.700099 | 215 | 0.497575 | 4,293 | 38,971 | 4.409504 | 0.094806 | 0.033809 | 0.029583 | 0.023772 | 0.433756 | 0.362071 | 0.293819 | 0.257792 | 0.221606 | 0.209931 | 0 | 0.012259 | 0.351133 | 38,971 | 1,006 | 216 | 38.738569 | 0.736347 | 0.375382 | 0 | 0.252874 | 0 | 0 | 0.042416 | 0.001155 | 0.002874 | 0 | 0 | 0 | 0 | 1 | 0.08046 | false | 0 | 0.008621 | 0 | 0.140805 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c0d361e8337d02f5fbc92a1db2b014025d1f86f | 943 | py | Python | scripts/upsampling_demo.py | always-newbie161/pyprobml | eb70c84f9618d68235ef9ba7da147c009b2e4a80 | [
"MIT"
] | 2 | 2021-02-26T04:36:10.000Z | 2021-02-26T04:36:24.000Z | scripts/upsampling_demo.py | always-newbie161/pyprobml | eb70c84f9618d68235ef9ba7da147c009b2e4a80 | [
"MIT"
] | 9 | 2021-03-31T20:18:21.000Z | 2022-03-12T00:52:47.000Z | scripts/upsampling_demo.py | always-newbie161/pyprobml | eb70c84f9618d68235ef9ba7da147c009b2e4a80 | [
"MIT"
] | 1 | 2021-06-21T01:18:07.000Z | 2021-06-21T01:18:07.000Z | # Illustrate upsampling in 2d
# Code from Jason Brownlee
# https://machinelearningmastery.com/generative_adversarial_networks/
import tensorflow as tf
from tensorflow import keras
from numpy import asarray
#from keras.models import Sequential
from tensorflow.keras.models import Sequential
#from keras.layers import... | 22.452381 | 74 | 0.709438 | 143 | 943 | 4.65035 | 0.398601 | 0.063158 | 0.051128 | 0.081203 | 0.406015 | 0.312782 | 0.276692 | 0.141353 | 0.141353 | 0.141353 | 0 | 0.035088 | 0.153765 | 943 | 42 | 75 | 22.452381 | 0.798246 | 0.284199 | 0 | 0.333333 | 0 | 0 | 0.011976 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.208333 | 0 | 0.208333 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c1095f5f37cb41b6318b6beaf6df6c400bfad6c | 17,334 | py | Python | V2RaycSpider1225/src/BusinessCentralLayer/scaffold.py | njchj/V2RayCloudSpider | 16154cf48c74fa2c8cf2f6792d2db3632501f5d6 | [
"MIT"
] | 1 | 2021-09-28T09:38:15.000Z | 2021-09-28T09:38:15.000Z | V2RaycSpider1225/src/BusinessCentralLayer/scaffold.py | njchj/V2RayCloudSpider | 16154cf48c74fa2c8cf2f6792d2db3632501f5d6 | [
"MIT"
] | null | null | null | V2RaycSpider1225/src/BusinessCentralLayer/scaffold.py | njchj/V2RayCloudSpider | 16154cf48c74fa2c8cf2f6792d2db3632501f5d6 | [
"MIT"
] | 1 | 2021-09-09T07:22:47.000Z | 2021-09-09T07:22:47.000Z | __all__ = ['scaffold', 'command_set']
from gevent import monkey
monkey.patch_all()
import csv
import os
import sys
import time
import shutil
from typing import List
import gevent
from src.BusinessCentralLayer.setting import logger, DEFAULT_POWER, CHROMEDRIVER_PATH, \
REDIS_MASTER, SERVER_DIR_DATABASE_CACHE, SE... | 37.038462 | 119 | 0.546267 | 1,665 | 17,334 | 5.430631 | 0.261862 | 0.033068 | 0.035612 | 0.014599 | 0.223955 | 0.185578 | 0.099867 | 0.081066 | 0.081066 | 0.055298 | 0 | 0.006594 | 0.291393 | 17,334 | 467 | 120 | 37.117773 | 0.729545 | 0.157609 | 0 | 0.190972 | 0 | 0.003472 | 0.166608 | 0.049002 | 0 | 0 | 0 | 0.002141 | 0 | 1 | 0.072917 | false | 0.006944 | 0.079861 | 0 | 0.184028 | 0.038194 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c1166ff6a3e4c18665f05d1beca5c764b5fda93 | 3,368 | py | Python | AIY/voice/cloudspeech_demo.py | Pougnator/Prometheus | d7c59f3a97b4f60958f130741ccc16b81d65f505 | [
"Apache-2.0"
] | null | null | null | AIY/voice/cloudspeech_demo.py | Pougnator/Prometheus | d7c59f3a97b4f60958f130741ccc16b81d65f505 | [
"Apache-2.0"
] | null | null | null | AIY/voice/cloudspeech_demo.py | Pougnator/Prometheus | d7c59f3a97b4f60958f130741ccc16b81d65f505 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# Copyright 2017 Google Inc.
#
# 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... | 37.010989 | 94 | 0.58462 | 389 | 3,368 | 4.922879 | 0.377892 | 0.051697 | 0.057441 | 0.031332 | 0.133681 | 0.110705 | 0.110705 | 0.069974 | 0.037598 | 0 | 0 | 0.011354 | 0.320071 | 3,368 | 90 | 95 | 37.422222 | 0.824891 | 0.193884 | 0 | 0.1 | 0 | 0 | 0.173284 | 0.050835 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016667 | false | 0 | 0.083333 | 0 | 0.1 | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c11dc94f130a2807798806bad63a6da530e4ff6 | 8,438 | py | Python | cobl/lexicon/management/commands/stats236.py | Bibiko/CoBL-public | 5092a0d01b7a13565c7da6bf2f6c52d648a2debe | [
"BSD-2-Clause"
] | null | null | null | cobl/lexicon/management/commands/stats236.py | Bibiko/CoBL-public | 5092a0d01b7a13565c7da6bf2f6c52d648a2debe | [
"BSD-2-Clause"
] | null | null | null | cobl/lexicon/management/commands/stats236.py | Bibiko/CoBL-public | 5092a0d01b7a13565c7da6bf2f6c52d648a2debe | [
"BSD-2-Clause"
] | 1 | 2020-04-30T11:02:51.000Z | 2020-04-30T11:02:51.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.core.management import BaseCommand
from cobl.lexicon.models import LanguageList, \
MeaningList, \
Meaning, \
Lexeme, \
... | 48.494253 | 79 | 0.508059 | 766 | 8,438 | 5.456919 | 0.246736 | 0.015311 | 0.026316 | 0.019139 | 0.283014 | 0.23756 | 0.174402 | 0.123923 | 0.102871 | 0.102871 | 0 | 0.008906 | 0.401161 | 8,438 | 173 | 80 | 48.774566 | 0.818326 | 0.055937 | 0 | 0.129252 | 0 | 0 | 0.0604 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027211 | false | 0 | 0.020408 | 0 | 0.068027 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c13e64266dfbb7d662d8dc0ddfc5df3b7bd9dd2 | 1,809 | py | Python | collation/test2.py | enabling-languages/dinka | 981ffd07e7468f692c4d17472083a3c5485987f8 | [
"MIT"
] | 1 | 2018-11-13T13:34:58.000Z | 2018-11-13T13:34:58.000Z | collation/test2.py | enabling-languages/dinka | 981ffd07e7468f692c4d17472083a3c5485987f8 | [
"MIT"
] | 6 | 2018-07-18T23:50:31.000Z | 2021-08-24T06:57:49.000Z | collation/test2.py | enabling-languages/dinka | 981ffd07e7468f692c4d17472083a3c5485987f8 | [
"MIT"
] | null | null | null | import pandas as pd
from icu import Collator, Locale, RuleBasedCollator
ddf = pd.read_csv("../word_frequency/unilex/din.txt", sep='\t', skiprows = range(2,5))
collator = Collator.createInstance(Locale('en_AU.UTF-8'))
# https://stackoverflow.com/questions/13838405/custom-sorting-in-pandas-dataframe/27009771#27009771
... | 37.6875 | 459 | 0.655611 | 330 | 1,809 | 3.548485 | 0.330303 | 0.017079 | 0.023057 | 0.030743 | 0.387703 | 0.387703 | 0.387703 | 0.3655 | 0.314261 | 0.314261 | 0 | 0.031193 | 0.096186 | 1,809 | 48 | 460 | 37.6875 | 0.672783 | 0.189055 | 0 | 0.5 | 0 | 0.041667 | 0.334476 | 0.322824 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c154cd85ac8501efc488d575c2d366b73815f35 | 3,495 | py | Python | pkgs/ops-pkg/src/genie/libs/ops/dot1x/ios/tests/test_dot1x.py | jbronikowski/genielibs | 200a34e5fe4838a27b5a80d5973651b2e34ccafb | [
"Apache-2.0"
] | 94 | 2018-04-30T20:29:15.000Z | 2022-03-29T13:40:31.000Z | pkgs/ops-pkg/src/genie/libs/ops/dot1x/ios/tests/test_dot1x.py | jbronikowski/genielibs | 200a34e5fe4838a27b5a80d5973651b2e34ccafb | [
"Apache-2.0"
] | 67 | 2018-12-06T21:08:09.000Z | 2022-03-29T18:00:46.000Z | pkgs/ops-pkg/src/genie/libs/ops/dot1x/ios/tests/test_dot1x.py | jbronikowski/genielibs | 200a34e5fe4838a27b5a80d5973651b2e34ccafb | [
"Apache-2.0"
] | 49 | 2018-06-29T18:59:03.000Z | 2022-03-10T02:07:59.000Z | # Python
import unittest
from copy import deepcopy
from unittest.mock import Mock
# ATS
from pyats.topology import Device
# Genie
from genie.libs.ops.dot1x.ios.dot1x import Dot1X
from genie.libs.ops.dot1x.ios.tests.dot1x_output import Dot1xOutput
# Parser
from genie.libs.parser.ios.show_dot1x import ShowDot1xAllDeta... | 30.657895 | 74 | 0.58083 | 308 | 3,495 | 6.516234 | 0.327922 | 0.059791 | 0.101644 | 0.047833 | 0.509218 | 0.472347 | 0.427504 | 0.427504 | 0.427504 | 0.372696 | 0 | 0.03104 | 0.317883 | 3,495 | 113 | 75 | 30.929204 | 0.810822 | 0.11216 | 0 | 0.492308 | 0 | 0 | 0.03436 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.061538 | false | 0 | 0.107692 | 0 | 0.184615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c1603d1abab233380508e0466aae61f575bb066 | 5,218 | py | Python | script/analysis/check_transformation_matrices.py | lanl/nubhlight | 6c0f2abc05884538fe8e4e2e70a021b7c48a72c2 | [
"BSD-3-Clause"
] | 16 | 2020-02-05T22:59:21.000Z | 2022-03-18T11:05:37.000Z | script/analysis/check_transformation_matrices.py | lanl/nubhlight | 6c0f2abc05884538fe8e4e2e70a021b7c48a72c2 | [
"BSD-3-Clause"
] | 13 | 2020-03-06T02:10:48.000Z | 2021-06-15T20:00:30.000Z | script/analysis/check_transformation_matrices.py | lanl/nubhlight | 6c0f2abc05884538fe8e4e2e70a021b7c48a72c2 | [
"BSD-3-Clause"
] | 4 | 2020-02-21T04:59:44.000Z | 2020-12-10T21:42:12.000Z | # ======================================================================
# copyright 2020. Triad National Security, LLC. All rights
# reserved. This program was produced under U.S. Government contract
# 89233218CNA000001 for Los Alamos National Laboratory (LANL), which
# is operated by Triad National Security, LLC for ... | 28.358696 | 77 | 0.593139 | 801 | 5,218 | 3.769039 | 0.29588 | 0.028155 | 0.013912 | 0.009937 | 0.127194 | 0.073534 | 0.055648 | 0.055648 | 0.055648 | 0.055648 | 0 | 0.046624 | 0.247796 | 5,218 | 183 | 78 | 28.513661 | 0.722548 | 0.494251 | 0 | 0.166667 | 0 | 0 | 0.15452 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02381 | false | 0.035714 | 0.02381 | 0 | 0.071429 | 0.345238 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c1762c8ad20949427e7a540afab16d1a42370e8 | 13,174 | py | Python | pynet/models/braingengan.py | claireguichon/pynet | 92706375e61fb5cb523548303b7d04769c9de134 | [
"CECILL-B"
] | 8 | 2020-06-23T16:30:52.000Z | 2021-07-27T15:07:18.000Z | pynet/models/braingengan.py | claireguichon/pynet | 92706375e61fb5cb523548303b7d04769c9de134 | [
"CECILL-B"
] | 8 | 2019-12-18T17:28:47.000Z | 2021-02-12T09:10:58.000Z | pynet/models/braingengan.py | claireguichon/pynet | 92706375e61fb5cb523548303b7d04769c9de134 | [
"CECILL-B"
] | 18 | 2019-08-19T14:17:48.000Z | 2021-12-20T03:56:39.000Z | # -*- coding: utf-8 -*-
##########################################################################
# NSAp - Copyright (C) CEA, 2020
# Distributed under the terms of the CeCILL-B license, as published by
# the CEA-CNRS-INRIA. Refer to the LICENSE file or to
# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
#... | 37.214689 | 76 | 0.587141 | 1,720 | 13,174 | 4.348837 | 0.126163 | 0.065508 | 0.074866 | 0.024064 | 0.69385 | 0.656016 | 0.626738 | 0.567513 | 0.534893 | 0.475401 | 0 | 0.037865 | 0.280325 | 13,174 | 353 | 77 | 37.320113 | 0.751081 | 0.149157 | 0 | 0.5 | 0 | 0 | 0.042696 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053279 | false | 0 | 0.032787 | 0 | 0.122951 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c1a9dfbfb88778f3a6aa8f06f925295c99a8f4b | 3,182 | py | Python | Widen/LC759_Employee_Free_Time.py | crazywiden/Leetcode_daily_submit | 15637e260ab547022ac0c828dd196337bd8d50a3 | [
"MIT"
] | null | null | null | Widen/LC759_Employee_Free_Time.py | crazywiden/Leetcode_daily_submit | 15637e260ab547022ac0c828dd196337bd8d50a3 | [
"MIT"
] | null | null | null | Widen/LC759_Employee_Free_Time.py | crazywiden/Leetcode_daily_submit | 15637e260ab547022ac0c828dd196337bd8d50a3 | [
"MIT"
] | null | null | null | """
759. Employee Free Time
We are given a list schedule of employees, which represents the working time for each employee.
Each employee has a list of non-overlapping Intervals, and these intervals are in sorted order.
Return the list of finite intervals representing common, positive-length free time for all employe... | 38.804878 | 309 | 0.634192 | 466 | 3,182 | 4.233906 | 0.315451 | 0.055753 | 0.022808 | 0.020274 | 0.284339 | 0.20071 | 0.20071 | 0.20071 | 0.094273 | 0.094273 | 0 | 0.02012 | 0.265871 | 3,182 | 81 | 310 | 39.283951 | 0.824486 | 0.389378 | 0 | 0.216216 | 0 | 0 | 0.027586 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0 | 0.027027 | 0 | 0.189189 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c1aaaf29009692c2f76cb9c4300ce895525d07d | 1,333 | py | Python | storitch/config.py | thomaserlang/storitch | dbcf97af547d9cb1ae5c3994654e8db03e43a253 | [
"MIT"
] | null | null | null | storitch/config.py | thomaserlang/storitch | dbcf97af547d9cb1ae5c3994654e8db03e43a253 | [
"MIT"
] | 1 | 2022-03-03T00:35:08.000Z | 2022-03-03T00:35:08.000Z | storitch/config.py | thomaserlang/storitch | dbcf97af547d9cb1ae5c3994654e8db03e43a253 | [
"MIT"
] | null | null | null | import os, yaml
config = {
'debug': False,
'port': 5000,
'store_path': '/var/storitch',
'pool_size': 5,
'logging': {
'level': 'warning',
'path': None,
'max_size': 100 * 1000 * 1000,# ~ 95 mb
'num_backups': 10,
},
'image_exts': [
'.jpg', '.jpeg', '.png... | 28.361702 | 72 | 0.487622 | 153 | 1,333 | 4.196078 | 0.503268 | 0.093458 | 0.042056 | 0.074766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025229 | 0.345836 | 1,333 | 47 | 73 | 28.361702 | 0.711009 | 0.005251 | 0 | 0.066667 | 0 | 0 | 0.234717 | 0.020377 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022222 | false | 0 | 0.022222 | 0 | 0.044444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c1c06a5f2fd1746b831968ec2394fc2e3c54a63 | 3,727 | py | Python | keras/lstm-securitai/model/pipeline_invoke_python.py | PipelineAI/models | d8df07877aa8b10ce9b84983bb440af75e84dca7 | [
"Apache-2.0"
] | 44 | 2017-11-17T06:19:05.000Z | 2021-11-03T06:00:56.000Z | keras/lstm-securitai/model/pipeline_invoke_python.py | PipelineAI/models | d8df07877aa8b10ce9b84983bb440af75e84dca7 | [
"Apache-2.0"
] | 3 | 2018-08-09T14:28:17.000Z | 2018-09-10T03:32:42.000Z | keras/lstm-securitai/model/pipeline_invoke_python.py | PipelineAI/models | d8df07877aa8b10ce9b84983bb440af75e84dca7 | [
"Apache-2.0"
] | 21 | 2017-11-18T15:12:12.000Z | 2020-08-15T07:08:33.000Z | import io
import os
import numpy as np
import pandas
import json
import logging #<== Optional. Log to console, file, kafka
from pipeline_monitor import prometheus_monitor as monitor #<== Optional. Monitor runtime metrics
from pipeline_logger import log
import tenso... | 38.822917 | 127 | 0.648779 | 405 | 3,727 | 5.755556 | 0.437037 | 0.02145 | 0.03003 | 0.029601 | 0.042471 | 0.030888 | 0 | 0 | 0 | 0 | 0 | 0.003537 | 0.241481 | 3,727 | 95 | 128 | 39.231579 | 0.821012 | 0.214382 | 0 | 0 | 0 | 0 | 0.10686 | 0.025853 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061538 | false | 0 | 0.246154 | 0.015385 | 0.369231 | 0.015385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c1cd0e44417cd753d2dd2376c6b05a4b1e765f1 | 9,465 | py | Python | src/act/common/aCTReport.py | ATLASControlTower/aCT | fb841bddbe086db9f0d620167c4a11ae4634ef4f | [
"Apache-2.0"
] | null | null | null | src/act/common/aCTReport.py | ATLASControlTower/aCT | fb841bddbe086db9f0d620167c4a11ae4634ef4f | [
"Apache-2.0"
] | 8 | 2019-12-12T14:41:50.000Z | 2020-12-04T21:06:44.000Z | src/act/common/aCTReport.py | ATLASControlTower/aCT | fb841bddbe086db9f0d620167c4a11ae4634ef4f | [
"Apache-2.0"
] | 4 | 2018-02-05T11:25:20.000Z | 2018-07-19T09:53:13.000Z | import argparse
import importlib
import os
import re
import signal
import subprocess
import sys
import time
import logging
from act.common import aCTLogger
from act.common.aCTConfig import aCTConfigAPP
from act.arc import aCTDBArc
class aCTReport:
'''Print summary info on jobs in DB. Use --web to print html that ... | 32.979094 | 123 | 0.481247 | 1,007 | 9,465 | 4.499503 | 0.28997 | 0.032443 | 0.010594 | 0.011918 | 0.225557 | 0.21055 | 0.21055 | 0.200397 | 0.197749 | 0.1951 | 0 | 0.01244 | 0.388484 | 9,465 | 286 | 124 | 33.094406 | 0.770387 | 0.058954 | 0 | 0.407725 | 0 | 0.008584 | 0.170005 | 0.007426 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038627 | false | 0.004292 | 0.055794 | 0 | 0.11588 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c25a6c39831217b32cbaed42c9755b9bd09bf27 | 7,655 | py | Python | flexmeasures/cli/data_edit.py | FlexMeasures/flexmeasures | a4367976d37ac5721b8eb3ce8a2414595e52c678 | [
"Apache-2.0"
] | 12 | 2021-12-18T10:41:10.000Z | 2022-03-29T23:00:29.000Z | flexmeasures/cli/data_edit.py | FlexMeasures/flexmeasures | a4367976d37ac5721b8eb3ce8a2414595e52c678 | [
"Apache-2.0"
] | 103 | 2021-12-07T08:51:15.000Z | 2022-03-31T13:28:48.000Z | flexmeasures/cli/data_edit.py | FlexMeasures/flexmeasures | a4367976d37ac5721b8eb3ce8a2414595e52c678 | [
"Apache-2.0"
] | 3 | 2022-01-18T04:45:48.000Z | 2022-03-14T09:48:22.000Z | from datetime import timedelta
from typing import Union, List, Optional
import click
import pandas as pd
from flask import current_app as app
from flask.cli import with_appcontext
from flexmeasures import Sensor
from flexmeasures.data import db
from flexmeasures.data.schemas.generic_assets import GenericAssetIdField
... | 31.502058 | 189 | 0.679556 | 963 | 7,655 | 5.203531 | 0.194185 | 0.050888 | 0.030333 | 0.018958 | 0.292956 | 0.228098 | 0.168629 | 0.138495 | 0.09978 | 0.08621 | 0 | 0.001348 | 0.22469 | 7,655 | 242 | 190 | 31.632231 | 0.842965 | 0.038014 | 0 | 0.246512 | 0 | 0.013953 | 0.238043 | 0.029159 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0.004651 | 0.060465 | 0 | 0.111628 | 0.013953 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c2623d238b3de2bae87d9eae327584f97cd5fb9 | 6,341 | py | Python | tools/mkblocks.py | Commodore-Bench/u5remastered | 02c7ed86055e368b97d3c3c5ca26622782bd564d | [
"Apache-2.0"
] | 14 | 2020-02-07T06:55:40.000Z | 2022-01-15T19:54:00.000Z | tools/mkblocks.py | Commodore-Bench/u5remastered | 02c7ed86055e368b97d3c3c5ca26622782bd564d | [
"Apache-2.0"
] | 1 | 2021-11-21T23:06:24.000Z | 2021-11-21T23:06:24.000Z | tools/mkblocks.py | Commodore-Bench/u5remastered | 02c7ed86055e368b97d3c3c5ca26622782bd564d | [
"Apache-2.0"
] | 3 | 2020-02-22T13:48:18.000Z | 2021-04-06T17:09:43.000Z | #!/usr/bin/env python3
# ----------------------------------------------------------------------------
# Copyright 2019 Drunella
#
# 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:/... | 32.352041 | 109 | 0.598171 | 804 | 6,341 | 4.618159 | 0.271144 | 0.015082 | 0.022623 | 0.037167 | 0.226501 | 0.113924 | 0.09157 | 0.09157 | 0.082952 | 0.082952 | 0 | 0.02831 | 0.259107 | 6,341 | 195 | 110 | 32.517949 | 0.762026 | 0.211481 | 0 | 0.204918 | 0 | 0 | 0.080056 | 0 | 0 | 0 | 0.012099 | 0 | 0 | 1 | 0.081967 | false | 0 | 0.065574 | 0 | 0.213115 | 0.02459 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c27318c3cab57ef8dbbc5271fbb6a638278cdd3 | 5,079 | py | Python | src/apetest/decode.py | boxingbeetle/apetest | c6dd7aaca014c64eec4bde7e755c4a3dec72404a | [
"BSD-3-Clause"
] | 6 | 2019-04-01T09:42:31.000Z | 2020-05-20T15:23:17.000Z | src/apetest/decode.py | boxingbeetle/apetest | c6dd7aaca014c64eec4bde7e755c4a3dec72404a | [
"BSD-3-Clause"
] | 31 | 2019-02-04T11:38:32.000Z | 2022-03-03T02:51:15.000Z | src/apetest/decode.py | boxingbeetle/apetest | c6dd7aaca014c64eec4bde7e755c4a3dec72404a | [
"BSD-3-Clause"
] | null | null | null | # SPDX-License-Identifier: BSD-3-Clause
"""
Text decode functions.
These functions can be used to get Unicode strings from a series of bytes.
"""
from codecs import (
BOM_UTF8,
BOM_UTF16_BE,
BOM_UTF16_LE,
BOM_UTF32_BE,
BOM_UTF32_LE,
CodecInfo,
lookup as lookup_codec,
)
from collections im... | 30.596386 | 88 | 0.620398 | 645 | 5,079 | 4.807752 | 0.313178 | 0.017414 | 0.027411 | 0.018381 | 0.24218 | 0.177685 | 0.146404 | 0.118026 | 0.095453 | 0.06901 | 0 | 0.01703 | 0.294743 | 5,079 | 165 | 89 | 30.781818 | 0.848688 | 0.38039 | 0 | 0.238636 | 0 | 0 | 0.124196 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0.011364 | 0.045455 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c27f0ef99cad37dbc55d60ec83e6ae7afff0829 | 3,484 | py | Python | bridger/serializers/fields/related.py | intellineers/django-bridger | ed097984a99df7da40a4d01bd00c56e3c6083056 | [
"BSD-3-Clause"
] | 2 | 2020-03-17T00:53:23.000Z | 2020-07-16T07:00:33.000Z | bridger/serializers/fields/related.py | intellineers/django-bridger | ed097984a99df7da40a4d01bd00c56e3c6083056 | [
"BSD-3-Clause"
] | 76 | 2019-12-05T01:15:57.000Z | 2021-09-07T16:47:27.000Z | bridger/serializers/fields/related.py | intellineers/django-bridger | ed097984a99df7da40a4d01bd00c56e3c6083056 | [
"BSD-3-Clause"
] | 1 | 2020-02-05T15:09:47.000Z | 2020-02-05T15:09:47.000Z | from typing import Dict
from rest_framework import serializers
from rest_framework.fields import empty
from rest_framework.relations import ManyRelatedField
from rest_framework.request import Request
from .mixins import BridgerSerializerFieldMixin
from .types import BridgerType, ReturnContentType
class BridgerManyR... | 34.156863 | 104 | 0.639208 | 418 | 3,484 | 5.15311 | 0.279904 | 0.03714 | 0.031569 | 0.020427 | 0.32312 | 0.252553 | 0.237697 | 0.237697 | 0.148561 | 0.122563 | 0 | 0.002707 | 0.25775 | 3,484 | 101 | 105 | 34.49505 | 0.83024 | 0.125431 | 0 | 0.239437 | 0 | 0 | 0.085535 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.112676 | false | 0 | 0.098592 | 0 | 0.352113 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c2af8e5727d2303652df4218b453994acacde5b | 1,875 | py | Python | tests/param/get_param_type_spec_test.py | nickgaya/bravado-core | 16e752963bfceb4adfa43724085bc4127eefcd59 | [
"BSD-3-Clause"
] | 122 | 2015-04-22T17:31:18.000Z | 2021-11-08T10:29:57.000Z | tests/param/get_param_type_spec_test.py | nickgaya/bravado-core | 16e752963bfceb4adfa43724085bc4127eefcd59 | [
"BSD-3-Clause"
] | 364 | 2015-04-10T22:19:23.000Z | 2022-02-25T08:55:10.000Z | tests/param/get_param_type_spec_test.py | nickgaya/bravado-core | 16e752963bfceb4adfa43724085bc4127eefcd59 | [
"BSD-3-Clause"
] | 118 | 2015-04-20T15:11:53.000Z | 2021-12-09T10:03:34.000Z | # -*- coding: utf-8 -*-
import pytest
from mock import Mock
from bravado_core.exception import SwaggerMappingError
from bravado_core.operation import Operation
from bravado_core.param import get_param_type_spec
from bravado_core.param import Param
from bravado_core.spec import Spec
@pytest.fixture
def body_param_spe... | 31.25 | 76 | 0.678933 | 237 | 1,875 | 5.054852 | 0.257384 | 0.09015 | 0.097663 | 0.066778 | 0.34808 | 0.269616 | 0.189482 | 0.189482 | 0.093489 | 0.093489 | 0 | 0.000673 | 0.207467 | 1,875 | 59 | 77 | 31.779661 | 0.805518 | 0.0112 | 0 | 0.130435 | 0 | 0 | 0.12527 | 0.012419 | 0 | 0 | 0 | 0 | 0.086957 | 1 | 0.108696 | false | 0 | 0.152174 | 0.021739 | 0.282609 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c2b4a1c07a03c84645790de2fd147b0a49af942 | 779 | py | Python | Python Files/Dataset_Formating/Audio_splicing.py | brennanMosher/Music-Genre-Recognition-using-a-Machine-Learning-Appraoch | 7834fe5d709e894322ad76ef118067febaa78bce | [
"MIT"
] | 1 | 2021-04-13T16:22:27.000Z | 2021-04-13T16:22:27.000Z | Python Files/Dataset_Formating/Audio_splicing.py | brennanMosher/Music-Genre-Recognition-using-a-Machine-Learning-Appraoch | 7834fe5d709e894322ad76ef118067febaa78bce | [
"MIT"
] | null | null | null | Python Files/Dataset_Formating/Audio_splicing.py | brennanMosher/Music-Genre-Recognition-using-a-Machine-Learning-Appraoch | 7834fe5d709e894322ad76ef118067febaa78bce | [
"MIT"
] | null | null | null | from pydub import AudioSegment
import os
import math
from pathlib import Path
'''
Splice wav files into multiple segments.
'''
LENGTH = 3 # Set splice length in seconds
def splice(audioPath, outputPath):
# try:
# os.mkdir('Spliced Spectrogram training') # Need to figure out where to put this
# excep... | 25.129032 | 89 | 0.65982 | 105 | 779 | 4.866667 | 0.609524 | 0.027397 | 0.046967 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030457 | 0.241335 | 779 | 30 | 90 | 25.966667 | 0.834179 | 0.273427 | 0 | 0 | 0 | 0 | 0.027505 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.25 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c2c9eed7b32e658c90b6a2885b2e30dd90f1dbc | 2,702 | py | Python | multinet/api/views/common.py | multinet-app/multinet-api | a658d787f0fb9ba415ed85a1e37c29953486287f | [
"Apache-2.0"
] | null | null | null | multinet/api/views/common.py | multinet-app/multinet-api | a658d787f0fb9ba415ed85a1e37c29953486287f | [
"Apache-2.0"
] | 91 | 2021-03-15T19:00:15.000Z | 2022-03-11T00:04:05.000Z | multinet/api/views/common.py | multinet-app/multinet-api | a658d787f0fb9ba415ed85a1e37c29953486287f | [
"Apache-2.0"
] | 1 | 2022-02-05T15:53:04.000Z | 2022-02-05T15:53:04.000Z | from typing import Dict, List
from arango.cursor import Cursor
from django.http.response import Http404
from django.shortcuts import get_object_or_404
from rest_framework.pagination import LimitOffsetPagination
from rest_framework.request import Request
from rest_framework_extensions.mixins import NestedViewSetMixin
... | 33.358025 | 96 | 0.703923 | 320 | 2,702 | 5.75625 | 0.38125 | 0.029859 | 0.027687 | 0.015201 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008666 | 0.23131 | 2,702 | 80 | 97 | 33.775 | 0.87819 | 0.162472 | 0 | 0.083333 | 0 | 0 | 0.020711 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.1875 | 0 | 0.458333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c2cf799737827ae82cb008c68687ac40ab5260f | 2,613 | py | Python | scripts/tests/generate_host_files.py | NDevTK/cel | e97226416b6e12245564bfc1c3631d610d62f052 | [
"BSD-3-Clause"
] | null | null | null | scripts/tests/generate_host_files.py | NDevTK/cel | e97226416b6e12245564bfc1c3631d610d62f052 | [
"BSD-3-Clause"
] | null | null | null | scripts/tests/generate_host_files.py | NDevTK/cel | e97226416b6e12245564bfc1c3631d610d62f052 | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2018 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 argparse
import logging
import os
import sys
def ParseArgs():
parser = argparse.ArgumentParser(
description='Host file generator for CELab E... | 31.107143 | 78 | 0.677 | 332 | 2,613 | 5.210843 | 0.388554 | 0.031214 | 0.049133 | 0.032948 | 0.10289 | 0.07052 | 0.046243 | 0.046243 | 0 | 0 | 0 | 0.002826 | 0.187524 | 2,613 | 83 | 79 | 31.481928 | 0.812058 | 0.082281 | 0 | 0.177419 | 0 | 0.016129 | 0.319682 | 0.019641 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.064516 | 0 | 0.112903 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c2fb781ddcd4218fd8a81658d8b1820f7658753 | 425 | py | Python | setup.py | dhruvdcoder/allennlp-wandb | 160dceb1f4cec8e893b856d333bc302748afdd74 | [
"MIT"
] | null | null | null | setup.py | dhruvdcoder/allennlp-wandb | 160dceb1f4cec8e893b856d333bc302748afdd74 | [
"MIT"
] | null | null | null | setup.py | dhruvdcoder/allennlp-wandb | 160dceb1f4cec8e893b856d333bc302748afdd74 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
install_requires = [
"allennlp>=0.9.0",
"wandb==0.8.15",
]
setup(
name='allennlp_wandb',
version='0.0.1',
description='Utilities to use allennlp with wandb',
packages=find_packages(
exclude=["*.tests", "*.tests.*", "tests.*", "tests"]),
p... | 25 | 62 | 0.647059 | 52 | 425 | 5.115385 | 0.596154 | 0.169173 | 0.112782 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 0.176471 | 425 | 16 | 63 | 26.5625 | 0.731429 | 0 | 0 | 0 | 0 | 0 | 0.312941 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c32015a3c35228c38c5bac706f794e1cdc33050 | 7,376 | py | Python | validation/utils/m1.py | PedrV/stfX | 017436cd4ade7f0ea95185d82408697c43ac6ce6 | [
"MIT"
] | null | null | null | validation/utils/m1.py | PedrV/stfX | 017436cd4ade7f0ea95185d82408697c43ac6ce6 | [
"MIT"
] | null | null | null | validation/utils/m1.py | PedrV/stfX | 017436cd4ade7f0ea95185d82408697c43ac6ce6 | [
"MIT"
] | null | null | null | import unittest
import os
from matplotlib import pyplot as plt
from shapely import geometry, affinity
X_COORDINATE = 0
Y_COORDINATE = 1
def extract_x_y(polygon: list) -> (list, list):
"""Extract the x and y coordinates as two separate lists"""
x_list = []
y_list = []
for vertex in polygon:
x... | 33.990783 | 102 | 0.590564 | 872 | 7,376 | 4.774083 | 0.201835 | 0.007687 | 0.010089 | 0.01153 | 0.196733 | 0.150853 | 0.080951 | 0.065818 | 0.065818 | 0.010569 | 0 | 0.032812 | 0.289317 | 7,376 | 216 | 103 | 34.148148 | 0.761351 | 0.105342 | 0 | 0.141026 | 0 | 0 | 0.072813 | 0 | 0 | 0 | 0 | 0 | 0.044872 | 1 | 0.076923 | false | 0 | 0.025641 | 0 | 0.141026 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c334c43ec9647ed0e0ec846ea0ec8b0f1abcbfa | 1,332 | py | Python | movefiles.py | linhailan/JPG-PNG-to-MNIST-NN-Format | c2ff84cb8d2dc6cd49c4d462b4d8ea2ba4620719 | [
"Apache-2.0"
] | null | null | null | movefiles.py | linhailan/JPG-PNG-to-MNIST-NN-Format | c2ff84cb8d2dc6cd49c4d462b4d8ea2ba4620719 | [
"Apache-2.0"
] | null | null | null | movefiles.py | linhailan/JPG-PNG-to-MNIST-NN-Format | c2ff84cb8d2dc6cd49c4d462b4d8ea2ba4620719 | [
"Apache-2.0"
] | null | null | null | import os
from PIL import Image
from array import *
from random import shuffle
import shutil
def move_file(src_path, dst_path, file):
print("from : ",src_path)
print("to : ",dst_path)
try:
# cmd = 'chmod -R +x ' + src_path
# os.popen(cmd)
f_src = os.path.join(src_path, file)
... | 25.615385 | 65 | 0.553303 | 188 | 1,332 | 3.819149 | 0.308511 | 0.068245 | 0.083565 | 0.077994 | 0.28273 | 0.233983 | 0.172702 | 0.077994 | 0 | 0 | 0 | 0.015102 | 0.304054 | 1,332 | 51 | 66 | 26.117647 | 0.759439 | 0.0503 | 0 | 0.054054 | 0 | 0 | 0.060461 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0 | 0.135135 | 0 | 0.189189 | 0.162162 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c3558d607658f8dea73cab624fa5807f1ade4f4 | 4,544 | py | Python | plots.py | olihawkins/penguin-models | fabecdf6336390fc50e67cfd8494ade69fc3ef7f | [
"BSD-3-Clause"
] | 1 | 2021-05-05T10:17:01.000Z | 2021-05-05T10:17:01.000Z | plots.py | olihawkins/penguin-models | fabecdf6336390fc50e67cfd8494ade69fc3ef7f | [
"BSD-3-Clause"
] | null | null | null | plots.py | olihawkins/penguin-models | fabecdf6336390fc50e67cfd8494ade69fc3ef7f | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""A module for plotting penguins data for modelling with scikit-learn."""
# Imports ---------------------------------------------------------------------
import matplotlib as mpl
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
# Constants -----------------------------... | 28.759494 | 79 | 0.574604 | 603 | 4,544 | 4.189055 | 0.296849 | 0.021774 | 0.023753 | 0.031671 | 0.446556 | 0.413302 | 0.334917 | 0.28266 | 0.28266 | 0.28266 | 0 | 0.029485 | 0.208847 | 4,544 | 158 | 80 | 28.759494 | 0.673157 | 0.213908 | 0 | 0.416667 | 0 | 0 | 0.151301 | 0.007919 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052083 | false | 0 | 0.041667 | 0 | 0.114583 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c362cfcd82b4292b1b1b46edbeee9a97e7fba89 | 9,756 | py | Python | invconv/xlsx.py | TechPowerAwaits/ax-toolkit | d49924ef2dcd3f54f494ba3859afb070cc12ef91 | [
"0BSD"
] | null | null | null | invconv/xlsx.py | TechPowerAwaits/ax-toolkit | d49924ef2dcd3f54f494ba3859afb070cc12ef91 | [
"0BSD"
] | 16 | 2021-04-14T03:46:37.000Z | 2022-02-11T16:15:00.000Z | invconv/xlsx.py | TechPowerAwaits/ax-toolkit | d49924ef2dcd3f54f494ba3859afb070cc12ef91 | [
"0BSD"
] | null | null | null | # Copyright 2021 Richard Johnston <techpowerawaits@outlook.com>
# SPDX-license-identifier: 0BSD
import string
from loguru import logger
try:
import cell_pos
from exceptions import InvconvMissingHeaders
import ftype
import msg_handler
except ModuleNotFoundError:
import invconv.cell_pos as cell_pos... | 33.410959 | 119 | 0.625974 | 1,349 | 9,756 | 4.29874 | 0.188288 | 0.03104 | 0.013795 | 0.012933 | 0.280048 | 0.23642 | 0.198483 | 0.166408 | 0.14468 | 0.118124 | 0 | 0.003907 | 0.291718 | 9,756 | 291 | 120 | 33.525773 | 0.835311 | 0.170254 | 0 | 0.223301 | 0 | 0.004854 | 0.100783 | 0.007829 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058252 | false | 0 | 0.053398 | 0.004854 | 0.169903 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c369e5832adc50f438c555f56dfcb9a9431f342 | 5,501 | py | Python | solvers/generation_solver/img_interface.py | Anthony102899/Lego-ImageGenerator | 52b19c8bb20f77a3394675e7c037c943a50c1e15 | [
"Unlicense"
] | 1 | 2022-03-20T10:23:38.000Z | 2022-03-20T10:23:38.000Z | solvers/generation_solver/img_interface.py | Anthony102899/Lego-ImageGenerator | 52b19c8bb20f77a3394675e7c037c943a50c1e15 | [
"Unlicense"
] | null | null | null | solvers/generation_solver/img_interface.py | Anthony102899/Lego-ImageGenerator | 52b19c8bb20f77a3394675e7c037c943a50c1e15 | [
"Unlicense"
] | null | null | null | import os
from tkinter import *
import tkinter.filedialog as tkfd
from PIL import Image
import numpy as np
import solvers.generation_solver.image_seperation as IS
def layer_interface(img_num):
layer_names = []
layer_nums = []
for k in range(img_num):
master = Toplevel()
master.title(f"Imag... | 42.315385 | 158 | 0.616797 | 812 | 5,501 | 4.043103 | 0.165025 | 0.066098 | 0.055437 | 0.043862 | 0.450503 | 0.26226 | 0.211697 | 0.197076 | 0.123667 | 0.102345 | 0 | 0.044998 | 0.204145 | 5,501 | 130 | 159 | 42.315385 | 0.704888 | 0.021087 | 0 | 0.037037 | 0 | 0 | 0.090706 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018519 | false | 0 | 0.055556 | 0 | 0.092593 | 0.018519 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c3759df5a38cc9eec92e29506b100742f627706 | 953 | py | Python | Constellations/get_brightest_stars.py | PatD123/Polar-Constellation | 86f54ae2028a4f351b9f1a056aa3166f49541679 | [
"MIT"
] | null | null | null | Constellations/get_brightest_stars.py | PatD123/Polar-Constellation | 86f54ae2028a4f351b9f1a056aa3166f49541679 | [
"MIT"
] | null | null | null | Constellations/get_brightest_stars.py | PatD123/Polar-Constellation | 86f54ae2028a4f351b9f1a056aa3166f49541679 | [
"MIT"
] | null | null | null | from bs4 import BeautifulSoup as soup
from urllib.request import urlopen as uReq
import re, json
# Getting the page
URL = "https://www.astronomytrek.com/star-constellations-brightest-stars/"
uClient = uReq(url=URL)
page_html = uClient.read()
page_soup = soup(page_html, "html.parser")
# Opening a file to write in
star... | 27.228571 | 74 | 0.651626 | 151 | 953 | 3.933775 | 0.430464 | 0.047138 | 0.020202 | 0.050505 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026882 | 0.219307 | 953 | 35 | 75 | 27.228571 | 0.771505 | 0.045121 | 0 | 0 | 0 | 0 | 0.131202 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.115385 | 0 | 0.192308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c38c6e2555cdc9fef807ccf4fe2adf10311bc9a | 13,688 | py | Python | tensorflow_text/python/ops/bert_tokenizer_test.py | hashim361/text | 141ed3ae72078a5da431831ce718c8d09fbf4f92 | [
"Apache-2.0"
] | 1 | 2020-10-10T14:10:07.000Z | 2020-10-10T14:10:07.000Z | tensorflow_text/python/ops/bert_tokenizer_test.py | pranayjoshi/text | 5a12211ac370f989ca359d232d3081a889e859dd | [
"Apache-2.0"
] | null | null | null | tensorflow_text/python/ops/bert_tokenizer_test.py | pranayjoshi/text | 5a12211ac370f989ca359d232d3081a889e859dd | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# Copyright 2020 TF.Text Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | 31.179954 | 80 | 0.512566 | 1,631 | 13,688 | 4.101778 | 0.242796 | 0.057549 | 0.007623 | 0.005979 | 0.363677 | 0.289088 | 0.246786 | 0.239013 | 0.193124 | 0.18296 | 0 | 0.019059 | 0.329193 | 13,688 | 438 | 81 | 31.251142 | 0.70856 | 0.080362 | 0 | 0.25 | 0 | 0 | 0.127599 | 0.001673 | 0 | 0 | 0 | 0.002283 | 0.015464 | 1 | 0.018041 | false | 0 | 0.041237 | 0.002577 | 0.072165 | 0.005155 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c3b16c69b0c5704668f2afab4edc623fff685bf | 5,324 | py | Python | tests/index_test.py | DubeySandeep/pending-review-notification | 353fa74d98eeb6c8386818273a2fe02af39d6b9d | [
"Apache-2.0"
] | null | null | null | tests/index_test.py | DubeySandeep/pending-review-notification | 353fa74d98eeb6c8386818273a2fe02af39d6b9d | [
"Apache-2.0"
] | null | null | null | tests/index_test.py | DubeySandeep/pending-review-notification | 353fa74d98eeb6c8386818273a2fe02af39d6b9d | [
"Apache-2.0"
] | 1 | 2021-10-20T16:24:04.000Z | 2021-10-20T16:24:04.000Z | """Unit test for the index.py file."""
import unittest
from datetime import datetime, timedelta, timezone
import json
from unittest.mock import patch, mock_open
import requests_mock
from src import index
from src import github_services
class ModuleIntegerationTest(unittest.TestCase):
"""Integeration test for th... | 35.493333 | 79 | 0.523666 | 509 | 5,324 | 5.261297 | 0.255403 | 0.049291 | 0.049664 | 0.054892 | 0.498133 | 0.425691 | 0.420463 | 0.400299 | 0.352502 | 0.352502 | 0 | 0.028431 | 0.352554 | 5,324 | 149 | 80 | 35.731544 | 0.748477 | 0.015965 | 0 | 0.389706 | 0 | 0 | 0.191278 | 0.004591 | 0 | 0 | 0 | 0 | 0.029412 | 1 | 0.036765 | false | 0 | 0.051471 | 0.007353 | 0.110294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c3d09dc17bc58a64b3b41021ca264b66d8e9b31 | 427 | py | Python | tutorials/30-days-of-code/30-operators.py | PingHuskar/hackerrank | 1bfdbc63de5d0f94cd9e6ae250476b4a267662f2 | [
"Unlicense"
] | 41 | 2018-05-11T07:54:34.000Z | 2022-03-29T19:02:32.000Z | tutorials/30-days-of-code/30-operators.py | PingHuskar/hackerrank | 1bfdbc63de5d0f94cd9e6ae250476b4a267662f2 | [
"Unlicense"
] | 2 | 2021-09-13T10:03:26.000Z | 2021-10-04T10:21:05.000Z | tutorials/30-days-of-code/30-operators.py | PingHuskar/hackerrank | 1bfdbc63de5d0f94cd9e6ae250476b4a267662f2 | [
"Unlicense"
] | 21 | 2019-01-23T19:06:59.000Z | 2021-12-23T16:03:47.000Z | # Day 2: Operators
# Start using arithmetic operators.
#
# https://www.hackerrank.com/challenges/30-operators/problem
#
#!/bin/python3
import sys
if __name__ == "__main__":
meal_cost = float(input().strip())
tip_percent = int(input().strip())
tax_percent = int(input().strip())
cost = meal_cost * (1 ... | 22.473684 | 66 | 0.665105 | 57 | 427 | 4.736842 | 0.666667 | 0.088889 | 0.111111 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033994 | 0.173302 | 427 | 18 | 67 | 23.722222 | 0.730878 | 0.285714 | 0 | 0 | 0 | 0 | 0.154362 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c41d05846e91ffb115828352ba38c0ccc9074be | 444 | py | Python | backend/src/libs/strings.py | codeglitchz/attendance-system | c82a8d75375069b15e0b827608209bfacb67cde7 | [
"MIT"
] | 37 | 2019-12-15T17:39:38.000Z | 2022-03-13T08:16:09.000Z | backend/src/libs/strings.py | codeglitchz/attendance-system | c82a8d75375069b15e0b827608209bfacb67cde7 | [
"MIT"
] | 16 | 2020-05-05T14:17:26.000Z | 2022-03-02T09:09:38.000Z | backend/src/libs/strings.py | codeglitchz/attendance-system | c82a8d75375069b15e0b827608209bfacb67cde7 | [
"MIT"
] | 18 | 2019-12-15T17:39:43.000Z | 2022-01-22T10:42:41.000Z | """
libs.strings
By default, uses `en-gb.json` file inside the `strings` top-level folder.
If language changes, set `libs.strings.default_locale` and run `libs.strings.refresh()`.
"""
import json
default_locale = "en-us"
cached_strings = {}
def refresh():
global cached_strings
with open(f"strings/{default_... | 17.76 | 88 | 0.702703 | 63 | 444 | 4.84127 | 0.555556 | 0.170492 | 0.131148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 444 | 24 | 89 | 18.5 | 0.824324 | 0.398649 | 0 | 0 | 0 | 0 | 0.131274 | 0.111969 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0.1 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c420085b055ce7cdac960f6e45563c43bc3b205 | 5,881 | py | Python | nemo_cmd/deflate.py | SalishSeaCast/NEMO-Cmd | a1fb05c4430e152a7dae57296bce364f73752129 | [
"Apache-2.0"
] | 1 | 2020-03-26T16:42:26.000Z | 2020-03-26T16:42:26.000Z | nemo_cmd/deflate.py | SalishSeaCast/NEMO-Cmd | a1fb05c4430e152a7dae57296bce364f73752129 | [
"Apache-2.0"
] | 10 | 2020-03-23T21:19:25.000Z | 2021-11-01T22:12:17.000Z | nemo_cmd/deflate.py | SalishSeaCast/NEMO-Cmd | a1fb05c4430e152a7dae57296bce364f73752129 | [
"Apache-2.0"
] | null | null | null | # Copyright 2013-2021 The Salish Sea MEOPAR Contributors
# and The University of British Columbia
# 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... | 32.672222 | 87 | 0.631185 | 724 | 5,881 | 5.033149 | 0.303867 | 0.016465 | 0.038419 | 0.034303 | 0.307355 | 0.28595 | 0.270582 | 0.169045 | 0.169045 | 0.149835 | 0 | 0.008323 | 0.284986 | 5,881 | 179 | 88 | 32.854749 | 0.858264 | 0.311512 | 0 | 0.127273 | 0 | 0.009091 | 0.193308 | 0.01184 | 0 | 0 | 0 | 0 | 0 | 1 | 0.063636 | false | 0 | 0.081818 | 0 | 0.236364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c42d191e50517487ce29edd00a0d3e85b40a9be | 15,309 | py | Python | RocketSimulation.py | pietrotrope/SolarSystemSimulation | 905eec31eb73e1203ee23a32846954b30bbc5925 | [
"MIT"
] | null | null | null | RocketSimulation.py | pietrotrope/SolarSystemSimulation | 905eec31eb73e1203ee23a32846954b30bbc5925 | [
"MIT"
] | null | null | null | RocketSimulation.py | pietrotrope/SolarSystemSimulation | 905eec31eb73e1203ee23a32846954b30bbc5925 | [
"MIT"
] | null | null | null | import sys
import csv
import json
import math
import pygame
import numpy as np
from pygame.locals import *
import pandas as pd
from data import *
from agent import agentsList, Agent
global screenSize
screenSize = [1920, 1080]
def load_parameters(path):
package = []
file = open(path, 'r')
j = json.load(f... | 33.720264 | 118 | 0.528317 | 2,072 | 15,309 | 3.808398 | 0.197394 | 0.025726 | 0.050564 | 0.065898 | 0.330503 | 0.2807 | 0.258269 | 0.236852 | 0.236852 | 0.178431 | 0 | 0.135866 | 0.331243 | 15,309 | 453 | 119 | 33.794702 | 0.63489 | 0.061728 | 0 | 0.281065 | 0 | 0 | 0.019439 | 0.004265 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085799 | false | 0.002959 | 0.029586 | 0.008876 | 0.230769 | 0.002959 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c4559619debbfab81b5667b6115f6d8185615c5 | 1,229 | py | Python | benchmark/generate_libs/jamplus.py | chadaustin/ibb | ea1e25cc53a1ad7c302a12d95fc704c443924dff | [
"MIT"
] | 4 | 2015-04-09T17:24:58.000Z | 2019-07-02T12:05:56.000Z | benchmark/generate_libs/jamplus.py | chadaustin/ibb | ea1e25cc53a1ad7c302a12d95fc704c443924dff | [
"MIT"
] | null | null | null | benchmark/generate_libs/jamplus.py | chadaustin/ibb | ea1e25cc53a1ad7c302a12d95fc704c443924dff | [
"MIT"
] | 1 | 2019-11-08T15:38:29.000Z | 2019-11-08T15:38:29.000Z | #!/usr/bin/python
import os.path
import cppcodebase
import random
def CreateLibJamfile(lib_number, classes):
os.chdir(cppcodebase.lib_name(lib_number))
handle = file("Jamfile.jam", "w")
handle.write ("SubDir TOP lib_" + str(lib_number) + " ;\n\n")
handle.write ("SubDirHdrs $(INCLUDES) ;\n\n")
han... | 29.261905 | 107 | 0.643613 | 152 | 1,229 | 5.111842 | 0.309211 | 0.155727 | 0.07722 | 0.057915 | 0.42471 | 0.368082 | 0.2574 | 0.177606 | 0.105534 | 0 | 0 | 0 | 0.185517 | 1,229 | 41 | 108 | 29.97561 | 0.776224 | 0.013019 | 0 | 0.275862 | 0 | 0 | 0.189926 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.103448 | 0 | 0.206897 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c45bee0b72f7290f98a152d2fd4047f74e16502 | 8,482 | py | Python | inbm/dispatcher-agent/dispatcher/fota/fota.py | intel/intel-inb-manageability | cdb17765120857fd41cacb838d6ee6e34e1f5047 | [
"Apache-2.0"
] | 5 | 2021-12-13T21:19:31.000Z | 2022-01-18T18:29:43.000Z | inbm/dispatcher-agent/dispatcher/fota/fota.py | intel/intel-inb-manageability | cdb17765120857fd41cacb838d6ee6e34e1f5047 | [
"Apache-2.0"
] | 45 | 2021-12-30T17:21:09.000Z | 2022-03-29T22:47:32.000Z | inbm/dispatcher-agent/dispatcher/fota/fota.py | intel/intel-inb-manageability | cdb17765120857fd41cacb838d6ee6e34e1f5047 | [
"Apache-2.0"
] | 4 | 2022-01-26T17:42:54.000Z | 2022-03-30T04:48:04.000Z | """
FOTA update tool which is called from the dispatcher during installation
Copyright (C) 2017-2022 Intel Corporation
SPDX-License-Identifier: Apache-2.0
"""
import logging
import os
import platform
from threading import Timer
from typing import Any, Optional, Mapping
from future.moves.urllib.parse impo... | 42.838384 | 113 | 0.630512 | 933 | 8,482 | 5.474812 | 0.24866 | 0.036609 | 0.03289 | 0.022709 | 0.166993 | 0.132929 | 0.074002 | 0.074002 | 0.052858 | 0.03289 | 0 | 0.001999 | 0.292266 | 8,482 | 197 | 114 | 43.055838 | 0.848909 | 0.127328 | 0 | 0.14966 | 0 | 0 | 0.119249 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034014 | false | 0.013605 | 0.136054 | 0 | 0.190476 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c46065a2d7cec80d32a5396991fd1b74b074e66 | 8,727 | py | Python | syncflux.py | nagylzs/syncflux | c070267065cad817708d0680e17bfe5f8942310f | [
"Apache-2.0"
] | null | null | null | syncflux.py | nagylzs/syncflux | c070267065cad817708d0680e17bfe5f8942310f | [
"Apache-2.0"
] | null | null | null | syncflux.py | nagylzs/syncflux | c070267065cad817708d0680e17bfe5f8942310f | [
"Apache-2.0"
] | null | null | null | import copy
import datetime
import sys
import os
import time
import argparse
import traceback
import pytz
import syncthing
from influxdb import InfluxDBClient
import yaml
from yaml2dataclass import Schema, SchemaPath
from typing import Optional, Dict, Type, List
from dataclasses import dataclass, asdict, field
@dat... | 33.694981 | 119 | 0.605936 | 1,040 | 8,727 | 4.965385 | 0.238462 | 0.009295 | 0.023044 | 0.009876 | 0.115027 | 0.115027 | 0.077847 | 0.05151 | 0.035631 | 0.020527 | 0 | 0.004765 | 0.278561 | 8,727 | 258 | 120 | 33.825581 | 0.815438 | 0.032886 | 0 | 0.149038 | 0 | 0 | 0.151371 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0.019231 | 0.067308 | 0 | 0.25 | 0.009615 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c4921cfeca9e8e27f2d0b623dc27dabba9abc92 | 10,495 | py | Python | ipt/ipt_filter_contour_by_size.py | tpmp-inra/ipapi | b0f6be8960a20dbf95ef9df96efdd22bd6e031c5 | [
"MIT"
] | 1 | 2020-06-30T06:53:36.000Z | 2020-06-30T06:53:36.000Z | ipt/ipt_filter_contour_by_size.py | tpmp-inra/ipapi | b0f6be8960a20dbf95ef9df96efdd22bd6e031c5 | [
"MIT"
] | null | null | null | ipt/ipt_filter_contour_by_size.py | tpmp-inra/ipapi | b0f6be8960a20dbf95ef9df96efdd22bd6e031c5 | [
"MIT"
] | null | null | null | from ipso_phen.ipapi.base.ipt_abstract import IptBase
from ipso_phen.ipapi.tools import regions
import numpy as np
import cv2
import logging
logger = logging.getLogger(__name__)
from ipso_phen.ipapi.base import ip_common as ipc
class IptFilterContourBySize(IptBase):
def build_params(self):
... | 38.443223 | 107 | 0.429252 | 1,024 | 10,495 | 4.214844 | 0.204102 | 0.030584 | 0.033133 | 0.045181 | 0.536376 | 0.474745 | 0.456905 | 0.44393 | 0.399676 | 0.36747 | 0 | 0.026637 | 0.484898 | 10,495 | 272 | 108 | 38.584559 | 0.771735 | 0.06565 | 0 | 0.482301 | 0 | 0 | 0.057739 | 0.004662 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039823 | false | 0.004425 | 0.026549 | 0.030973 | 0.115044 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c4bdbc2c162e12eac3d923f38fe6b53d36966ae | 541 | py | Python | main.py | ngh3053/auto_spacing_with_tensorflow | 0569b734c087d13cdf6cbb8e79dd8c579d7e66e4 | [
"MIT"
] | null | null | null | main.py | ngh3053/auto_spacing_with_tensorflow | 0569b734c087d13cdf6cbb8e79dd8c579d7e66e4 | [
"MIT"
] | null | null | null | main.py | ngh3053/auto_spacing_with_tensorflow | 0569b734c087d13cdf6cbb8e79dd8c579d7e66e4 | [
"MIT"
] | null | null | null | from utils import *
from model import Model2
if __name__ == '__main__':
train_data = DataLoader('../data/trainX.txt', '../data/trainY.txt')
test_data = DataLoader('../data/testX.txt', '../data/testY.txt')
train_data.set_batch(100)
test_data.set_batch(100)
char_dic = CharDic([train_data]... | 28.473684 | 72 | 0.608133 | 68 | 541 | 4.441176 | 0.411765 | 0.149007 | 0.119205 | 0.099338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0.260628 | 541 | 19 | 73 | 28.473684 | 0.715 | 0 | 0 | 0 | 0 | 0 | 0.194656 | 0.045802 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c4c3d7288804166b00482d9413cd64068adedd3 | 3,475 | py | Python | src/sardana/taurus/qt/qtgui/extra_macroexecutor/macrodescriptionviewer.py | marc2332/sardana | 48dc9191baaa63f6c714d8c025e8f3f96548ad26 | [
"CC-BY-3.0"
] | 43 | 2016-11-25T15:21:23.000Z | 2021-08-20T06:09:40.000Z | src/sardana/taurus/qt/qtgui/extra_macroexecutor/macrodescriptionviewer.py | marc2332/sardana | 48dc9191baaa63f6c714d8c025e8f3f96548ad26 | [
"CC-BY-3.0"
] | 1,263 | 2016-11-25T15:58:37.000Z | 2021-11-02T22:23:47.000Z | src/sardana/taurus/qt/qtgui/extra_macroexecutor/macrodescriptionviewer.py | marc2332/sardana | 48dc9191baaa63f6c714d8c025e8f3f96548ad26 | [
"CC-BY-3.0"
] | 58 | 2016-11-21T11:33:55.000Z | 2021-09-01T06:21:21.000Z | #!/usr/bin/env python
##############################################################################
##
# This file is part of Sardana
##
# http://www.sardana-controls.org/
##
# Copyright 2011 CELLS / ALBA Synchrotron, Bellaterra, Spain
##
# Sardana is free software: you can redistribute it and/or modify
# it under th... | 35.10101 | 90 | 0.649784 | 358 | 3,475 | 6.234637 | 0.53352 | 0.008961 | 0.016129 | 0.025538 | 0.044803 | 0.044803 | 0.030466 | 0 | 0 | 0 | 0 | 0.003713 | 0.225036 | 3,475 | 98 | 91 | 35.459184 | 0.825102 | 0.319424 | 0 | 0 | 0 | 0 | 0.049157 | 0.022472 | 0 | 0 | 0 | 0 | 0 | 1 | 0.145833 | false | 0 | 0.104167 | 0.020833 | 0.395833 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c4e17f4910c6d5e94aabd5e46b41369a206e931 | 462 | py | Python | asaas/financial_transactions.py | marlonjsilva/asaas_sdk_python | 871a199e8156d9baa9f78972232feee38b0608bb | [
"MIT"
] | null | null | null | asaas/financial_transactions.py | marlonjsilva/asaas_sdk_python | 871a199e8156d9baa9f78972232feee38b0608bb | [
"MIT"
] | 4 | 2022-02-16T13:53:36.000Z | 2022-02-16T14:10:40.000Z | asaas/financial_transactions.py | marlonjsilva/asaas_sdk_python | 871a199e8156d9baa9f78972232feee38b0608bb | [
"MIT"
] | null | null | null | from asaas.typing import SyncAsync
from typing import Any, Optional, Dict
class FinancialTransactions:
def __init__(self, parent: Any) -> None:
self.parent = parent
def list(
self, query: Optional[Dict[Any, Any]] = None, **kwars: Any
) -> SyncAsync[Any]:
return self.parent.request... | 25.666667 | 66 | 0.588745 | 49 | 462 | 5.469388 | 0.489796 | 0.11194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.294372 | 462 | 17 | 67 | 27.176471 | 0.822086 | 0 | 0 | 0 | 0 | 0 | 0.062771 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.071429 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c4fabe61f50bb8ab5d328236ac8daab3e74249e | 17,672 | py | Python | datahub/core/serializers.py | uktrade/data-hub-api | c698cba533ff002293b821d01916f6334549f778 | [
"MIT"
] | 6 | 2019-12-02T16:11:24.000Z | 2022-03-18T10:02:02.000Z | datahub/core/serializers.py | uktrade/data-hub-api | c698cba533ff002293b821d01916f6334549f778 | [
"MIT"
] | 1,696 | 2019-10-31T14:08:37.000Z | 2022-03-29T12:35:57.000Z | datahub/core/serializers.py | uktrade/data-hub-api | c698cba533ff002293b821d01916f6334549f778 | [
"MIT"
] | 9 | 2019-11-22T12:42:03.000Z | 2021-09-03T14:25:05.000Z | from functools import partial
from uuid import UUID
from dateutil.parser import parse as dateutil_parse
from django.apps import apps
from django.conf import settings
from django.core.exceptions import ObjectDoesNotExist
from rest_framework import serializers
from rest_framework.exceptions import ValidationError
from r... | 33.093633 | 99 | 0.587992 | 1,821 | 17,672 | 5.514003 | 0.197144 | 0.028682 | 0.02689 | 0.031371 | 0.274574 | 0.22926 | 0.214321 | 0.18305 | 0.149786 | 0.149786 | 0 | 0.005955 | 0.325373 | 17,672 | 533 | 100 | 33.155722 | 0.836269 | 0.350951 | 0 | 0.256318 | 0 | 0 | 0.07285 | 0.019989 | 0 | 0 | 0 | 0 | 0.00361 | 1 | 0.075812 | false | 0 | 0.046931 | 0 | 0.277978 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c50b9af34c1306cdbc9fec048d28309381c28e4 | 4,763 | py | Python | samples/s07-rigid-objects/main.py | nomadsinteractive/ark | 52f84c6dbd5ca6bdd07d450b3911be1ffd995922 | [
"Apache-2.0"
] | 5 | 2018-03-28T09:14:55.000Z | 2018-04-02T11:54:33.000Z | samples/s07-rigid-objects/main.py | nomadsinteractive/ark | 52f84c6dbd5ca6bdd07d450b3911be1ffd995922 | [
"Apache-2.0"
] | null | null | null | samples/s07-rigid-objects/main.py | nomadsinteractive/ark | 52f84c6dbd5ca6bdd07d450b3911be1ffd995922 | [
"Apache-2.0"
] | null | null | null | import math
import random
from ark import dear_imgui, ApplicationFacade, Arena, Event, Integer, Collider, RenderObject, Size, Camera, Vec3, Numeric
class Application:
def __init__(self, application: ApplicationFacade):
self._down_x = 0
self._down_y = 0
self._application = application
... | 43.3 | 153 | 0.669116 | 640 | 4,763 | 4.648438 | 0.225 | 0.056471 | 0.02958 | 0.02958 | 0.272941 | 0.212101 | 0.170756 | 0.170756 | 0.127059 | 0.065882 | 0 | 0.037544 | 0.21709 | 4,763 | 109 | 154 | 43.697248 | 0.760257 | 0 | 0 | 0.096774 | 0 | 0 | 0.04325 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107527 | false | 0 | 0.032258 | 0.010753 | 0.215054 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c51a22587be89037e69f604118ecdbeda84cab5 | 11,693 | py | Python | jamf/models/computer_extension_attribute.py | jensenbox/python-jamf | 85213085b1064a00375a7aa7df5e33c19f5178eb | [
"RSA-MD"
] | 1 | 2021-04-20T15:28:57.000Z | 2021-04-20T15:28:57.000Z | jamf/models/computer_extension_attribute.py | jensenbox/python-jamf | 85213085b1064a00375a7aa7df5e33c19f5178eb | [
"RSA-MD"
] | null | null | null | jamf/models/computer_extension_attribute.py | jensenbox/python-jamf | 85213085b1064a00375a7aa7df5e33c19f5178eb | [
"RSA-MD"
] | null | null | null | # coding: utf-8
"""
Jamf Pro API
## Overview This is a sample Jamf Pro server which allows for usage without any authentication. The Jamf Pro environment which supports the Try it Out functionality does not run the current beta version of Jamf Pro, thus any newly added endpoints will result in an error and sh... | 33.408571 | 342 | 0.625673 | 1,351 | 11,693 | 5.287935 | 0.150999 | 0.055991 | 0.161254 | 0.136058 | 0.55963 | 0.491881 | 0.455627 | 0.352324 | 0.2528 | 0.211926 | 0 | 0.020019 | 0.290858 | 11,693 | 349 | 343 | 33.504298 | 0.841534 | 0.443513 | 0 | 0.098684 | 0 | 0 | 0.080595 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.026316 | 0 | 0.309211 | 0.013158 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c5370b938a0a9b556d9850b79dfef4883c667c0 | 4,138 | py | Python | util/n_download_util.py | TwrFyr/n-hen.py | 8d20639ee78cc34e4333fb247574ff10af81556c | [
"MIT"
] | null | null | null | util/n_download_util.py | TwrFyr/n-hen.py | 8d20639ee78cc34e4333fb247574ff10af81556c | [
"MIT"
] | 22 | 2020-12-04T15:16:36.000Z | 2021-04-29T12:20:04.000Z | util/n_download_util.py | TwrFyr/n-henpy | 8d20639ee78cc34e4333fb247574ff10af81556c | [
"MIT"
] | null | null | null | import urllib.request
import os
from typing import List
from util.n_util import NUser
from util.n_util import get_n_entry
import time
import threading
from util.array_util import slice_array
delay: float = 2.5
class ProgressWrapper:
"""The progress wrapper keeps track of the progress of a operation by wrapping a... | 38.672897 | 150 | 0.646931 | 565 | 4,138 | 4.568142 | 0.315044 | 0.046881 | 0.025571 | 0.010074 | 0.119334 | 0.082139 | 0.054243 | 0.03487 | 0.03487 | 0.03487 | 0 | 0.013359 | 0.258337 | 4,138 | 106 | 151 | 39.037736 | 0.827631 | 0.205413 | 0 | 0.148649 | 0 | 0 | 0.080824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067568 | false | 0 | 0.108108 | 0 | 0.202703 | 0.121622 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c542217eb772ffd5114bee20efa5d974df6a3d5 | 2,907 | py | Python | stable-baselines/tests/test_deterministic.py | princeton-vl/PackIt | 9894d252c5238d582cba7c3d19540f89d47e4166 | [
"BSD-3-Clause"
] | 49 | 2020-07-24T18:17:12.000Z | 2022-01-04T15:30:52.000Z | stable-baselines/tests/test_deterministic.py | princeton-vl/PackIt | 9894d252c5238d582cba7c3d19540f89d47e4166 | [
"BSD-3-Clause"
] | 14 | 2020-07-21T20:21:08.000Z | 2022-03-12T00:42:18.000Z | stable-baselines/tests/test_deterministic.py | princeton-vl/PackIt | 9894d252c5238d582cba7c3d19540f89d47e4166 | [
"BSD-3-Clause"
] | 5 | 2020-07-27T12:35:00.000Z | 2021-07-19T03:04:21.000Z | import pytest
from stable_baselines import A2C, ACER, ACKTR, DeepQ, DDPG, PPO1, PPO2, TRPO
from stable_baselines.ddpg import AdaptiveParamNoiseSpec
from stable_baselines.common.identity_env import IdentityEnv, IdentityEnvBox
from stable_baselines.common.vec_env import DummyVecEnv
PARAM_NOISE_DDPG = AdaptiveParamNoise... | 40.943662 | 112 | 0.711042 | 398 | 2,907 | 5.050251 | 0.218593 | 0.054726 | 0.071642 | 0.075622 | 0.677612 | 0.677612 | 0.650746 | 0.650746 | 0.504478 | 0.457711 | 0 | 0.028186 | 0.157895 | 2,907 | 70 | 113 | 41.528571 | 0.792892 | 0.138287 | 0 | 0.488889 | 0 | 0 | 0.070411 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.044444 | false | 0 | 0.111111 | 0 | 0.155556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c547eed055111ebe6fcfe3bbff16bf6a9eb3360 | 1,129 | py | Python | tests/models/tensorflow/convert_to_tensorflow_serving.py | filipecosta90/dlbench | 11dd2fb58050c38a4baa429b207aaecad9097ce3 | [
"MIT"
] | 14 | 2019-09-14T16:37:39.000Z | 2022-03-19T08:28:50.000Z | tests/models/tensorflow/convert_to_tensorflow_serving.py | filipecosta90/dlbench | 11dd2fb58050c38a4baa429b207aaecad9097ce3 | [
"MIT"
] | 40 | 2019-11-14T16:07:08.000Z | 2022-03-29T21:47:15.000Z | tests/models/tensorflow/convert_to_tensorflow_serving.py | filipecosta90/dlbench | 11dd2fb58050c38a4baa429b207aaecad9097ce3 | [
"MIT"
] | 2 | 2021-01-07T01:50:53.000Z | 2021-02-24T22:22:23.000Z | import tensorflow as tf
from tensorflow.python.saved_model import signature_constants
from tensorflow.python.saved_model import tag_constants
export_dir = './reference/00000002'
graph_pb = './creditcardfraud.pb'
builder = tf.saved_model.builder.SavedModelBuilder(export_dir)
with tf.gfile.GFile(graph_pb, "rb") as f:
... | 34.212121 | 70 | 0.689105 | 149 | 1,129 | 4.939597 | 0.416107 | 0.054348 | 0.040761 | 0.048913 | 0.163043 | 0.097826 | 0 | 0 | 0 | 0 | 0 | 0.016611 | 0.200177 | 1,129 | 32 | 71 | 35.28125 | 0.79845 | 0.054916 | 0 | 0 | 0 | 0 | 0.093897 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.173913 | 0 | 0.173913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c5842430ac7ddf81b0dae7e72f5e8595722304e | 26,713 | py | Python | qutip/operators.py | pschindler/qutip | dc399135b77a01077898e13bb7d30d60db9b6e67 | [
"BSD-3-Clause"
] | 1 | 2018-05-31T17:38:03.000Z | 2018-05-31T17:38:03.000Z | qutip/operators.py | pschindler/qutip | dc399135b77a01077898e13bb7d30d60db9b6e67 | [
"BSD-3-Clause"
] | 3 | 2021-08-23T19:00:52.000Z | 2021-08-24T21:38:04.000Z | qutip/operators.py | pschindler/qutip | dc399135b77a01077898e13bb7d30d60db9b6e67 | [
"BSD-3-Clause"
] | 2 | 2017-08-11T11:14:52.000Z | 2022-03-13T21:37:47.000Z | # This file is part of QuTiP: Quantum Toolbox in Python.
#
# Copyright (c) 2011 and later, Paul D. Nation and Robert J. Johansson.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
... | 26.370188 | 79 | 0.573129 | 3,665 | 26,713 | 4.15498 | 0.140518 | 0.009325 | 0.011623 | 0.02456 | 0.479643 | 0.437812 | 0.410494 | 0.387444 | 0.354873 | 0.345022 | 0 | 0.063122 | 0.284768 | 26,713 | 1,012 | 80 | 26.396245 | 0.733906 | 0.616367 | 0 | 0.163265 | 0 | 0 | 0.060977 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173469 | false | 0 | 0.056122 | 0 | 0.413265 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c59d4c3c8cb7118c29dce871107ae825dc23c99 | 8,959 | py | Python | tcex/bin/dep.py | phuerta-tc/tcex | 4a4e800e1a6114c1fde663f8c3ab7a1d58045c79 | [
"Apache-2.0"
] | null | null | null | tcex/bin/dep.py | phuerta-tc/tcex | 4a4e800e1a6114c1fde663f8c3ab7a1d58045c79 | [
"Apache-2.0"
] | null | null | null | tcex/bin/dep.py | phuerta-tc/tcex | 4a4e800e1a6114c1fde663f8c3ab7a1d58045c79 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""TcEx Dependencies Command"""
# standard library
import os
import platform
import shutil
import subprocess # nosec
import sys
from distutils.version import StrictVersion # pylint: disable=no-name-in-module
from pathlib import Path
from typing import List
from urllib.parse import quote
# third... | 36.125 | 99 | 0.58444 | 1,027 | 8,959 | 4.92113 | 0.26777 | 0.035615 | 0.031658 | 0.022161 | 0.117135 | 0.056193 | 0.025326 | 0.014642 | 0.014642 | 0 | 0 | 0.000821 | 0.320348 | 8,959 | 247 | 100 | 36.271255 | 0.8292 | 0.198683 | 0 | 0.025316 | 0 | 0 | 0.145887 | 0.052235 | 0 | 0 | 0 | 0.004049 | 0 | 1 | 0.050633 | false | 0.031646 | 0.075949 | 0 | 0.158228 | 0.031646 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c5b0f1bcbcc57bddee91b24e585d8faf96244eb | 5,592 | py | Python | src/test/cli/component.py | huseyinbolt/cord-tester | ed9b79916e6326a45bfaf3227b8ff922d76df4f1 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/test/cli/component.py | huseyinbolt/cord-tester | ed9b79916e6326a45bfaf3227b8ff922d76df4f1 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/test/cli/component.py | huseyinbolt/cord-tester | ed9b79916e6326a45bfaf3227b8ff922d76df4f1 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
# Copyright 2017-present Open Networking Foundation
#
# 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 ag... | 35.392405 | 76 | 0.619456 | 684 | 5,592 | 4.988304 | 0.352339 | 0.038101 | 0.021102 | 0.028136 | 0.318288 | 0.287222 | 0.243845 | 0.243845 | 0.243845 | 0.243845 | 0 | 0.006865 | 0.296674 | 5,592 | 157 | 77 | 35.617834 | 0.860666 | 0.449571 | 0 | 0.107692 | 0 | 0 | 0.101533 | 0 | 0 | 0 | 0 | 0.006369 | 0 | 1 | 0.184615 | false | 0.015385 | 0.046154 | 0.061538 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c5dc3f5290f019cca3cade7daba3d9be28fa2da | 6,387 | py | Python | autograd_hacks/test_autograd_hacks.py | jusjusjus/autograd-hacks | c12556d03e40cccaa0e70e14b0120b723002ed9e | [
"Unlicense"
] | 1 | 2020-05-01T12:14:43.000Z | 2020-05-01T12:14:43.000Z | autograd_hacks/test_autograd_hacks.py | jusjusjus/autograd-hacks | c12556d03e40cccaa0e70e14b0120b723002ed9e | [
"Unlicense"
] | null | null | null | autograd_hacks/test_autograd_hacks.py | jusjusjus/autograd-hacks | c12556d03e40cccaa0e70e14b0120b723002ed9e | [
"Unlicense"
] | null | null | null |
import torch
import torch.nn as nn
import torch.nn.functional as F
import pytest
from . import autograd_hacks
class StriddenNet(nn.Module):
def __init__(self):
super().__init__()
self.conv1 = nn.Conv2d(1, 20, 5, stride=2, padding=2)
self.conv2 = nn.Conv2d(20, 30, 5, stride=2, padding=2)
... | 29.706977 | 102 | 0.614686 | 920 | 6,387 | 4.104348 | 0.190217 | 0.055085 | 0.014301 | 0.023835 | 0.478549 | 0.420286 | 0.351165 | 0.311441 | 0.273835 | 0.208686 | 0 | 0.048663 | 0.250352 | 6,387 | 214 | 103 | 29.845794 | 0.739975 | 0.053077 | 0 | 0.462963 | 0 | 0 | 0.013781 | 0 | 0 | 0 | 0 | 0 | 0.04321 | 1 | 0.098765 | false | 0.006173 | 0.030864 | 0.012346 | 0.203704 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c5fd36ae0b1a46a987890321b0748ee13ed63f6 | 7,739 | py | Python | navrep/envs/rosnavtrainencodedenv.py | ReykCS/navrep | 22ee4727268188414a8121f069e45c2ab798ca19 | [
"MIT"
] | null | null | null | navrep/envs/rosnavtrainencodedenv.py | ReykCS/navrep | 22ee4727268188414a8121f069e45c2ab798ca19 | [
"MIT"
] | null | null | null | navrep/envs/rosnavtrainencodedenv.py | ReykCS/navrep | 22ee4727268188414a8121f069e45c2ab798ca19 | [
"MIT"
] | null | null | null | from gym import spaces
import numpy as np
from scipy import interpolate
import yaml
from navrep.envs.navreptrainenv import NavRepTrainEnv
from navrep.rosnav_models.utils.reward import RewardCalculator
from navrep.rosnav_models.utils.reward import RewardCalculator
class RosnavTrainEncodedEnv(NavRepTrainEnv):
""" ... | 35.663594 | 127 | 0.580178 | 892 | 7,739 | 4.793722 | 0.220852 | 0.01637 | 0.019645 | 0.016838 | 0.185454 | 0.132834 | 0.080449 | 0.080449 | 0.054724 | 0.038821 | 0 | 0.030263 | 0.308309 | 7,739 | 217 | 128 | 35.663594 | 0.768541 | 0.12857 | 0 | 0.072993 | 0 | 0 | 0.034591 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.087591 | false | 0.007299 | 0.051095 | 0 | 0.233577 | 0.036496 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c6030cb89b906c901110530b42acd2d1d95f2a5 | 9,789 | py | Python | pdm/models/repositories.py | gaojiuli/pdm | 9aedd12e864b57826e850a10eeea45900bb62aad | [
"MIT"
] | 1 | 2021-02-04T19:43:38.000Z | 2021-02-04T19:43:38.000Z | pdm/models/repositories.py | gaojiuli/pdm | 9aedd12e864b57826e850a10eeea45900bb62aad | [
"MIT"
] | null | null | null | pdm/models/repositories.py | gaojiuli/pdm | 9aedd12e864b57826e850a10eeea45900bb62aad | [
"MIT"
] | null | null | null | from __future__ import annotations
import sys
from functools import wraps
from typing import TYPE_CHECKING, Callable, Dict, Iterable, List, Optional, Tuple
from pdm._types import CandidateInfo, Source
from pdm.context import context
from pdm.exceptions import CandidateInfoNotFound, CorruptedCacheError
from pdm.models... | 39.156 | 88 | 0.629073 | 1,039 | 9,789 | 5.743985 | 0.21078 | 0.042225 | 0.022286 | 0.023458 | 0.194202 | 0.174263 | 0.151977 | 0.151977 | 0.137567 | 0.113773 | 0 | 0.000434 | 0.294412 | 9,789 | 249 | 89 | 39.313253 | 0.863617 | 0.151088 | 0 | 0.259259 | 0 | 0 | 0.020398 | 0.009339 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.063492 | 0.005291 | 0.227513 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c627c266e817eb089303a3e29f35bf34a1b6c4c | 6,652 | py | Python | neuralintents/main.py | nitori/neuralintents | 7a63075fbdca24ec6a6e5281552f64325dd279ff | [
"MIT"
] | null | null | null | neuralintents/main.py | nitori/neuralintents | 7a63075fbdca24ec6a6e5281552f64325dd279ff | [
"MIT"
] | null | null | null | neuralintents/main.py | nitori/neuralintents | 7a63075fbdca24ec6a6e5281552f64325dd279ff | [
"MIT"
] | null | null | null | from abc import ABCMeta, abstractmethod
import random
import json
import pickle
import numpy as np
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
import nltk
from nltk.stem import WordNetLemmatizer
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense, Dropout
from tensorflow.... | 33.766497 | 109 | 0.599519 | 852 | 6,652 | 4.534038 | 0.20892 | 0.051256 | 0.030287 | 0.021745 | 0.309086 | 0.272327 | 0.263526 | 0.22599 | 0.159462 | 0.157391 | 0 | 0.009967 | 0.276007 | 6,652 | 197 | 110 | 33.766497 | 0.792151 | 0.020746 | 0 | 0.222973 | 0 | 0 | 0.076508 | 0.035169 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121622 | false | 0.02027 | 0.081081 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c6615aacc368931eb1fadc13190d4aad9dc4cda | 32,663 | py | Python | pcdet/models/backbones_3d/pfe/voxel_set_abstraction.py | rayguan97/M3DETR | cb76890a28c1555f2c0138030e0a432df6ee731b | [
"Apache-2.0"
] | 21 | 2022-01-21T11:02:15.000Z | 2022-03-08T14:55:30.000Z | pcdet/models/backbones_3d/pfe/voxel_set_abstraction.py | rayguan97/M3DETR | cb76890a28c1555f2c0138030e0a432df6ee731b | [
"Apache-2.0"
] | 2 | 2022-01-21T08:10:49.000Z | 2022-01-21T23:44:40.000Z | pcdet/models/backbones_3d/pfe/voxel_set_abstraction.py | rayguan97/M3DETR | cb76890a28c1555f2c0138030e0a432df6ee731b | [
"Apache-2.0"
] | 3 | 2022-01-21T11:41:55.000Z | 2022-01-24T14:20:19.000Z | import math
import numpy as np
import torch
import torch.nn as nn
from ....ops.pointnet2.pointnet2_stack import pointnet2_modules as pointnet2_stack_modules
from ....ops.pointnet2.pointnet2_stack import pointnet2_utils as pointnet2_stack_utils
from ....utils import common_utils
from ...backbones_2d.transformer import ... | 42.585398 | 174 | 0.608732 | 4,248 | 32,663 | 4.318974 | 0.067326 | 0.030904 | 0.036627 | 0.013081 | 0.728348 | 0.654821 | 0.618248 | 0.581021 | 0.553224 | 0.528533 | 0 | 0.016952 | 0.284818 | 32,663 | 766 | 175 | 42.640992 | 0.76845 | 0.062823 | 0 | 0.505455 | 0 | 0 | 0.033809 | 0.011782 | 0 | 0 | 0 | 0 | 0.001818 | 1 | 0.029091 | false | 0 | 0.018182 | 0 | 0.076364 | 0.001818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c66241d3877e47cd775f05edef325a5a8e7b8d8 | 451 | py | Python | metabot2txt/display.py | HeitorBoschirolli/metabot2txt | 845c6b1042f7e586cf80de56e78c976e3c919f0a | [
"MIT"
] | null | null | null | metabot2txt/display.py | HeitorBoschirolli/metabot2txt | 845c6b1042f7e586cf80de56e78c976e3c919f0a | [
"MIT"
] | null | null | null | metabot2txt/display.py | HeitorBoschirolli/metabot2txt | 845c6b1042f7e586cf80de56e78c976e3c919f0a | [
"MIT"
] | null | null | null | import os
def display_on_editor(text):
with open('.metabot2txt', 'w') as f:
f.write(text)
os.system('gedit .metabot2txt')
def display_list_on_editor(texts):
if os.path.isfile('.metabot2txt'):
os.remove('.metabot2txt')
for text in texts:
with open('.metabot2txt', 'a') as ... | 22.55 | 64 | 0.536585 | 55 | 451 | 4.309091 | 0.472727 | 0.075949 | 0.160338 | 0.075949 | 0.109705 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017493 | 0.239468 | 451 | 19 | 65 | 23.736842 | 0.673469 | 0 | 0 | 0.307692 | 0 | 0 | 0.281596 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.076923 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c672bcb64cc19b33318c71e9093a770db7e263e | 1,315 | py | Python | Using Python to Access Web Data/Problem 6_Extracting Data from JSON 5.py | Karoline0097/University-of-Michigan-Python-for-Everybody | 8b3999638c0c074ae3c1120de87cf8f31740ebb8 | [
"MIT"
] | null | null | null | Using Python to Access Web Data/Problem 6_Extracting Data from JSON 5.py | Karoline0097/University-of-Michigan-Python-for-Everybody | 8b3999638c0c074ae3c1120de87cf8f31740ebb8 | [
"MIT"
] | null | null | null | Using Python to Access Web Data/Problem 6_Extracting Data from JSON 5.py | Karoline0097/University-of-Michigan-Python-for-Everybody | 8b3999638c0c074ae3c1120de87cf8f31740ebb8 | [
"MIT"
] | null | null | null | ## Problem 5: Extracting Data from JSON
# Example: http://py4e-data.dr-chuck.net/comments_42.json
# data consists of a number of names and comment counts in JSON
# {
# comments: [
# {
# name: "Matthias"
# count: 97
# },
# {
# name: "Geomer"
# count: 97
# }
# ...
# ]
# }
... | 24.811321 | 90 | 0.686692 | 190 | 1,315 | 4.663158 | 0.463158 | 0.03386 | 0.047404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013245 | 0.196198 | 1,315 | 52 | 91 | 25.288462 | 0.824976 | 0.565779 | 0 | 0 | 0 | 0 | 0.103896 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1875 | 0 | 0.1875 | 0.1875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c6d48cdfb7c008c470c879e2a06b5ce0223008d | 1,208 | py | Python | src/decanter/core/extra/utils.py | MatthewK3023/decanter-ai-core-sdk | d09a0316d5c3f28d55fd0dd83ef7f3e141d421de | [
"MIT"
] | null | null | null | src/decanter/core/extra/utils.py | MatthewK3023/decanter-ai-core-sdk | d09a0316d5c3f28d55fd0dd83ef7f3e141d421de | [
"MIT"
] | null | null | null | src/decanter/core/extra/utils.py | MatthewK3023/decanter-ai-core-sdk | d09a0316d5c3f28d55fd0dd83ef7f3e141d421de | [
"MIT"
] | null | null | null | """
Functions support other modules.
"""
import uuid
def check_response(response, key=None):
"""CHeck the api response.
Make sure the status call is successful and the response have specific key.
Return:
class: `Response <Response>`
"""
code = response.status_code
if not 200 <= code ... | 23.686275 | 79 | 0.626656 | 148 | 1,208 | 4.986486 | 0.506757 | 0.03252 | 0.054201 | 0.067751 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00927 | 0.285596 | 1,208 | 50 | 80 | 24.16 | 0.845886 | 0.286424 | 0 | 0.125 | 0 | 0 | 0.162129 | 0.029703 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.041667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1c6e264ceb5ab2e61f2f2b6e3294aa8858b8f9fd | 1,064 | py | Python | 03/03.py | stevenpclark/aoc2021 | 726009e5a2a87025943a736e8676784ca7cdc8bd | [
"MIT"
] | 1 | 2021-11-30T05:25:58.000Z | 2021-11-30T05:25:58.000Z | 03/03.py | stevenpclark/aoc2021 | 726009e5a2a87025943a736e8676784ca7cdc8bd | [
"MIT"
] | null | null | null | 03/03.py | stevenpclark/aoc2021 | 726009e5a2a87025943a736e8676784ca7cdc8bd | [
"MIT"
] | null | null | null | import numpy as np
def filter_data(data, use_most_common):
_, nc = data.shape
for c in range(nc):
nr, _ = data.shape
if nr <= 1:
break
col_score = sum(data[:,c])/nr
if use_most_common:
keep_val = col_score >= 0.5
else:
keep_va... | 20.461538 | 67 | 0.535714 | 158 | 1,064 | 3.411392 | 0.360759 | 0.059369 | 0.096475 | 0.09462 | 0.213358 | 0.213358 | 0 | 0 | 0 | 0 | 0 | 0.02805 | 0.329887 | 1,064 | 51 | 68 | 20.862745 | 0.72791 | 0.014098 | 0 | 0 | 0 | 0 | 0.016221 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.028571 | 0 | 0.114286 | 0.057143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |