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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a20ca70c55bdc3966a3294b9f251425dc430bdab | 4,756 | py | Python | django_hits/models.py | bung87/django_hits | 5b18017a5089e6419502de1cd37199e1cf624fc5 | [
"BSD-3-Clause"
] | null | null | null | django_hits/models.py | bung87/django_hits | 5b18017a5089e6419502de1cd37199e1cf624fc5 | [
"BSD-3-Clause"
] | null | null | null | django_hits/models.py | bung87/django_hits | 5b18017a5089e6419502de1cd37199e1cf624fc5 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from django.contrib.contenttypes.models import ContentType
from django.db import models
import django
if (hasattr(django,"version") and django.version > 1.8) or (hasattr(django,"get_version") and django.get_version()):
from django.contrib.contenttypes.fields import GenericForeignKey
from... | 39.633333 | 130 | 0.656434 | 589 | 4,756 | 5.169779 | 0.264856 | 0.036125 | 0.065025 | 0.066995 | 0.413793 | 0.28243 | 0.269951 | 0.219376 | 0.174713 | 0.153366 | 0 | 0.006919 | 0.240328 | 4,756 | 119 | 131 | 39.966387 | 0.83587 | 0.072119 | 0 | 0.304348 | 0 | 0 | 0.043656 | 0.004775 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065217 | false | 0 | 0.141304 | 0 | 0.565217 | 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 | 1 | 0 | 0 | 1 |
a20fa041ef941820ed25620fdfe212c7ed622042 | 1,751 | py | Python | test/python/WMCore_t/JobSplitting_t/Generators_t/AutomaticSeeding_t.py | khurtado/WMCore | f74e252412e49189a92962945a94f93bec81cd1e | [
"Apache-2.0"
] | 21 | 2015-11-19T16:18:45.000Z | 2021-12-02T18:20:39.000Z | test/python/WMCore_t/JobSplitting_t/Generators_t/AutomaticSeeding_t.py | khurtado/WMCore | f74e252412e49189a92962945a94f93bec81cd1e | [
"Apache-2.0"
] | 5,671 | 2015-01-06T14:38:52.000Z | 2022-03-31T22:11:14.000Z | test/python/WMCore_t/JobSplitting_t/Generators_t/AutomaticSeeding_t.py | khurtado/WMCore | f74e252412e49189a92962945a94f93bec81cd1e | [
"Apache-2.0"
] | 67 | 2015-01-21T15:55:38.000Z | 2022-02-03T19:53:13.000Z | #!/usr/bin/env python
# encoding: utf-8
"""
AutomaticSeeding_t.py
Created by Dave Evans on 2010-08-30.
Copyright (c) 2010 Fermilab. All rights reserved.
"""
from __future__ import print_function
import sys
import os
import unittest
from WMCore.JobSplitting.Generators.AutomaticSeeding import AutomaticSeeding
from WM... | 26.938462 | 100 | 0.688178 | 177 | 1,751 | 6.711864 | 0.531073 | 0.176768 | 0.097643 | 0.191919 | 0.183502 | 0.124579 | 0 | 0 | 0 | 0 | 0 | 0.032919 | 0.219303 | 1,751 | 64 | 101 | 27.359375 | 0.836138 | 0.140491 | 0 | 0.205882 | 0 | 0 | 0.224173 | 0.180959 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088235 | false | 0 | 0.205882 | 0 | 0.323529 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 0 | 1 |
a2117a0c29f775ab4747bb83b09e56dd88b8b81f | 1,052 | py | Python | companies_app/models.py | sabuhish/document-transfer | 53625c709877d8364f781b776b1324ac5f047c69 | [
"MIT"
] | null | null | null | companies_app/models.py | sabuhish/document-transfer | 53625c709877d8364f781b776b1324ac5f047c69 | [
"MIT"
] | 3 | 2019-10-21T18:28:51.000Z | 2021-06-10T21:12:13.000Z | companies_app/models.py | marlin-dev/document-transfer | 53625c709877d8364f781b776b1324ac5f047c69 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Company(models.Model):
voen = models.IntegerField(verbose_name="Vöen", unique=True)
name = models.CharField(max_length=255, verbose_name="sirketin adi")
ceo_first_name = models.CharField(max_length=1... | 35.066667 | 85 | 0.725285 | 132 | 1,052 | 5.606061 | 0.416667 | 0.074324 | 0.097297 | 0.12973 | 0.145946 | 0.102703 | 0.102703 | 0 | 0 | 0 | 0 | 0.019058 | 0.152091 | 1,052 | 30 | 86 | 35.066667 | 0.810538 | 0.022814 | 0 | 0 | 0 | 0 | 0.069133 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.809524 | 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 | 1 | 0 | 0 | 1 |
a21819038927d12243d3fd7855c8a2f6d4466996 | 8,803 | py | Python | source/tagger/dataset/cleaning.py | chrka/cip-tagging-exercise | ca2d835c3676be624c15ae9cf26ab4ce05596d2d | [
"MIT"
] | null | null | null | source/tagger/dataset/cleaning.py | chrka/cip-tagging-exercise | ca2d835c3676be624c15ae9cf26ab4ce05596d2d | [
"MIT"
] | null | null | null | source/tagger/dataset/cleaning.py | chrka/cip-tagging-exercise | ca2d835c3676be624c15ae9cf26ab4ce05596d2d | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
import fasttext
from sklearn.preprocessing import MultiLabelBinarizer
from skmultilearn.model_selection import IterativeStratification, \
iterative_train_test_split
from functools import reduce
CIP_TAGS = list(map(lambda x: x.strip(),
"gratis, mat, musik, ... | 35.212 | 97 | 0.639328 | 1,126 | 8,803 | 4.772647 | 0.281528 | 0.031262 | 0.014886 | 0.015631 | 0.185895 | 0.137142 | 0.101042 | 0.05936 | 0.045218 | 0.032936 | 0 | 0.003194 | 0.253209 | 8,803 | 250 | 98 | 35.212 | 0.814116 | 0.232194 | 0 | 0.015625 | 0 | 0 | 0.195552 | 0.023773 | 0 | 0 | 0 | 0.012 | 0 | 1 | 0.0625 | false | 0 | 0.085938 | 0 | 0.210938 | 0.023438 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2199f7aae105308ec9b2509440180ae09dae47c | 1,874 | py | Python | azure/mgmt/monitor/models/monitor_management_client_enums.py | EnjoyLifeFund/py36pkgs | 0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2 | [
"MIT",
"BSD-2-Clause",
"BSD-3-Clause"
] | 2 | 2020-07-29T14:22:17.000Z | 2020-11-06T18:47:40.000Z | azure/mgmt/monitor/models/monitor_management_client_enums.py | EnjoyLifeFund/py36pkgs | 0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2 | [
"MIT",
"BSD-2-Clause",
"BSD-3-Clause"
] | 1 | 2016-08-01T07:37:04.000Z | 2016-08-01T07:37:04.000Z | azure/mgmt/monitor/models/monitor_management_client_enums.py | EnjoyLifeFund/py36pkgs | 0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2 | [
"MIT",
"BSD-2-Clause",
"BSD-3-Clause"
] | 1 | 2020-12-12T21:04:41.000Z | 2020-12-12T21:04:41.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | 20.822222 | 76 | 0.618997 | 182 | 1,874 | 6.252747 | 0.516484 | 0.038664 | 0.038664 | 0.043937 | 0.289982 | 0.289982 | 0.289982 | 0.289982 | 0.289982 | 0.191564 | 0 | 0.000675 | 0.209712 | 1,874 | 89 | 77 | 21.05618 | 0.767725 | 0.241195 | 0 | 0.372549 | 0 | 0 | 0.225372 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.019608 | 0 | 1 | 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 | 1 | 0 | 0 | 1 |
a21cb0f6a86a9c3ae5db76f9242c7f5a0bfd091d | 524 | py | Python | mercury/services/custom_exceptions.py | CoffeePerry/mercury-py | dd044f9b17d0ea98e09ed49f6a1b0817da3d2de3 | [
"BSD-3-Clause"
] | null | null | null | mercury/services/custom_exceptions.py | CoffeePerry/mercury-py | dd044f9b17d0ea98e09ed49f6a1b0817da3d2de3 | [
"BSD-3-Clause"
] | 8 | 2020-06-13T22:41:14.000Z | 2021-06-05T12:59:20.000Z | mercury/services/custom_exceptions.py | CoffeePerry/mercury-py | dd044f9b17d0ea98e09ed49f6a1b0817da3d2de3 | [
"BSD-3-Clause"
] | null | null | null | # coding=utf-8
from werkzeug.exceptions import HTTPException
class MethodVersionNotFound(HTTPException):
"""*400* `Method Version Not Found` (Bad Request)
Raise if the browser request method through an invalid method version ('Accept-Version').
(Raise if the browser sends something to the application th... | 29.111111 | 109 | 0.711832 | 65 | 524 | 5.738462 | 0.569231 | 0.104558 | 0.085791 | 0.112601 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016949 | 0.211832 | 524 | 17 | 110 | 30.823529 | 0.886199 | 0.477099 | 0 | 0 | 0 | 0.166667 | 0.394422 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 1 |
a2214cf0c9deeb984466f03267cf88cb1fbb5202 | 959 | py | Python | main.py | Poojap19create/Sampling-distribution | ab7a3f660ad44123af197546c1831a733636bc64 | [
"MIT"
] | null | null | null | main.py | Poojap19create/Sampling-distribution | ab7a3f660ad44123af197546c1831a733636bc64 | [
"MIT"
] | null | null | null | main.py | Poojap19create/Sampling-distribution | ab7a3f660ad44123af197546c1831a733636bc64 | [
"MIT"
] | null | null | null | import plotly.figure_factory as ff
import plotly.graph_objects as go
import statistics
import random
import pandas as pd
import csv
df = pd.read_csv("data.csv")
data = df["temp"].tolist()
#function to get the mean of the given data samples
# pass the number of data points you want as counter
#function to plot th... | 24.589744 | 107 | 0.747654 | 154 | 959 | 4.532468 | 0.409091 | 0.040115 | 0.038682 | 0.051576 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010204 | 0.182482 | 959 | 38 | 108 | 25.236842 | 0.880102 | 0.373306 | 0 | 0 | 0 | 0 | 0.127731 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.333333 | 0 | 0.388889 | 0.111111 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
a221dec1dc96691c100a8b0ca267a7846672898c | 2,418 | py | Python | Examples/Multi-Agent_Examples/OpenAI-Repo/multiagent/scenarios/electricty_market/simple_market2.py | alexanderkell/reinforcement-learning-examples | cd154b13ab8247823b71a799dac17008061d56d0 | [
"MIT"
] | null | null | null | Examples/Multi-Agent_Examples/OpenAI-Repo/multiagent/scenarios/electricty_market/simple_market2.py | alexanderkell/reinforcement-learning-examples | cd154b13ab8247823b71a799dac17008061d56d0 | [
"MIT"
] | null | null | null | Examples/Multi-Agent_Examples/OpenAI-Repo/multiagent/scenarios/electricty_market/simple_market2.py | alexanderkell/reinforcement-learning-examples | cd154b13ab8247823b71a799dac17008061d56d0 | [
"MIT"
] | null | null | null | # import sys
# sys.path.insert(0, '/Users/b1017579/Documents/PhD/Projects/10. ELECSIM')
#
# from src.plants.plant_costs.estimate_costs.estimate_costs import select_cost_estimator
# from src.plants.plant_registry import PlantRegistry
import numpy as np
from multiagent.core import World
from multiagent.scenario import Ba... | 34.056338 | 101 | 0.614144 | 280 | 2,418 | 5.110714 | 0.389286 | 0.044025 | 0.035639 | 0.037736 | 0.086653 | 0.050314 | 0.050314 | 0.050314 | 0 | 0 | 0 | 0.018332 | 0.300662 | 2,418 | 70 | 102 | 34.542857 | 0.827912 | 0.448718 | 0 | 0.058824 | 0 | 0 | 0.02439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.147059 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2258171713011b1df3655ee485d75634b5f47f4 | 1,863 | py | Python | Binary_Search/162_Find_Peak_Element.py | hren-ron/LeetCode | 3ba2766f8e6ad2bfb5c9686b362f000824e78474 | [
"Apache-2.0"
] | null | null | null | Binary_Search/162_Find_Peak_Element.py | hren-ron/LeetCode | 3ba2766f8e6ad2bfb5c9686b362f000824e78474 | [
"Apache-2.0"
] | null | null | null | Binary_Search/162_Find_Peak_Element.py | hren-ron/LeetCode | 3ba2766f8e6ad2bfb5c9686b362f000824e78474 | [
"Apache-2.0"
] | null | null | null | '''
A peak element is an element that is greater than its neighbors.
Given an input array nums, where nums[i] ≠ nums[i+1], find a peak element and return its index.
The array may contain multiple peaks, in that case return the index to any one of the peaks is fine.
You may imagine that nums[-1] = nums[n] = -∞.
Exam... | 25.175676 | 100 | 0.496511 | 263 | 1,863 | 3.524715 | 0.315589 | 0.064725 | 0.038835 | 0.037756 | 0.154261 | 0.076591 | 0.062567 | 0.04315 | 0 | 0 | 0 | 0.040105 | 0.384326 | 1,863 | 74 | 101 | 25.175676 | 0.766347 | 0 | 0 | 0.175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a229c8abdd6d4ef255c30485080cfc304ce18b61 | 379 | py | Python | src/mdv/plugins/theme_base16.py | AXGKl/terminal_markdown_viewer | eef1a3b0e1eaa12ff4711f2515473e905a7197c1 | [
"BSD-3-Clause"
] | null | null | null | src/mdv/plugins/theme_base16.py | AXGKl/terminal_markdown_viewer | eef1a3b0e1eaa12ff4711f2515473e905a7197c1 | [
"BSD-3-Clause"
] | null | null | null | src/mdv/plugins/theme_base16.py | AXGKl/terminal_markdown_viewer | eef1a3b0e1eaa12ff4711f2515473e905a7197c1 | [
"BSD-3-Clause"
] | null | null | null | rules = [
('em', {'font-style': 'italic'}),
('strong', {'font-weight': 'bold'}),
('code', {'font-style': 'italic', 'background-color': 'grey'}),
]
hcs = ['lime', 'maroon', 'purple', 'teal', 'yellow', 'red', 'green', 'silver', 'navy']
for level, hc in zip(range(1, len(hcs) + 1), hcs):
rules.insert(level... | 37.9 | 86 | 0.53562 | 49 | 379 | 4.142857 | 0.673469 | 0.08867 | 0.147783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009404 | 0.158311 | 379 | 9 | 87 | 42.111111 | 0.626959 | 0 | 0 | 0 | 0 | 0 | 0.398417 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bf44ea787a00d0dc20e08089e0f6be389ae65424 | 828 | py | Python | rpython/jit/backend/x86/detect_sse2.py | kantai/passe-pypy-taint-tracking | b60a3663f8fe89892dc182c8497aab97e2e75d69 | [
"MIT"
] | 2 | 2016-07-06T23:30:20.000Z | 2017-05-30T15:59:31.000Z | rpython/jit/backend/x86/detect_sse2.py | kantai/passe-pypy-taint-tracking | b60a3663f8fe89892dc182c8497aab97e2e75d69 | [
"MIT"
] | null | null | null | rpython/jit/backend/x86/detect_sse2.py | kantai/passe-pypy-taint-tracking | b60a3663f8fe89892dc182c8497aab97e2e75d69 | [
"MIT"
] | 2 | 2020-07-09T08:14:22.000Z | 2021-01-15T18:01:25.000Z | from rpython.rtyper.lltypesystem import lltype, rffi
from rpython.rlib.rmmap import alloc, free
def detect_sse2():
data = alloc(4096)
pos = 0
for c in ("\xB8\x01\x00\x00\x00" # MOV EAX, 1
"\x53" # PUSH EBX
"\x0F\xA2" # CPUID
... | 30.666667 | 75 | 0.483092 | 95 | 828 | 4.105263 | 0.631579 | 0.05641 | 0.046154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075697 | 0.39372 | 828 | 26 | 76 | 31.846154 | 0.701195 | 0.061594 | 0 | 0 | 0 | 0 | 0.144156 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.090909 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bf48c28483b925e3be4fc22cadaf5575cbfa0caf | 269 | py | Python | app/cesium/router.py | code-lab-org/tatc | 51ab32d69923e99637b8939bca6965ba218d6056 | [
"BSD-3-Clause"
] | null | null | null | app/cesium/router.py | code-lab-org/tatc | 51ab32d69923e99637b8939bca6965ba218d6056 | [
"BSD-3-Clause"
] | null | null | null | app/cesium/router.py | code-lab-org/tatc | 51ab32d69923e99637b8939bca6965ba218d6056 | [
"BSD-3-Clause"
] | null | null | null | from fastapi import APIRouter
from fastapi.responses import PlainTextResponse
def get_cesium_router(token):
router = APIRouter()
@router.get("/token", response_class=PlainTextResponse)
async def get_cesium_token():
return token
return router
| 22.416667 | 59 | 0.747212 | 31 | 269 | 6.322581 | 0.483871 | 0.112245 | 0.122449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182156 | 269 | 11 | 60 | 24.454545 | 0.890909 | 0 | 0 | 0 | 0 | 0 | 0.022305 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.625 | 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 | 1 | 0 | 0 | 1 |
bf491e3a47da76105e994fd5ae3251b6b9e34227 | 730 | py | Python | migrations/versions/4dbf686f4380_added_location_to_pr.py | jace/goafunnel | 5ff25f0e6a247ff1f6e87fce2a793d1775476cc0 | [
"BSD-2-Clause"
] | null | null | null | migrations/versions/4dbf686f4380_added_location_to_pr.py | jace/goafunnel | 5ff25f0e6a247ff1f6e87fce2a793d1775476cc0 | [
"BSD-2-Clause"
] | null | null | null | migrations/versions/4dbf686f4380_added_location_to_pr.py | jace/goafunnel | 5ff25f0e6a247ff1f6e87fce2a793d1775476cc0 | [
"BSD-2-Clause"
] | null | null | null | """Added location to proposal
Revision ID: 4dbf686f4380
Revises: 1fcee2e6280
Create Date: 2013-11-08 23:35:43.433963
"""
# revision identifiers, used by Alembic.
revision = '4dbf686f4380'
down_revision = '1fcee2e6280'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by... | 26.071429 | 122 | 0.70411 | 91 | 730 | 5.582418 | 0.571429 | 0.05315 | 0.082677 | 0.090551 | 0.173228 | 0.173228 | 0.173228 | 0.173228 | 0 | 0 | 0 | 0.081169 | 0.156164 | 730 | 27 | 123 | 27.037037 | 0.743506 | 0.415068 | 0 | 0 | 0 | 0 | 0.185279 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.444444 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bf4ee8bf8a5d7988f242828c8fca8483a32924fd | 4,104 | py | Python | example.py | flywheel-apps/safe-python | b68e0926fa2fc114de4e06fce1d6087a8991d31b | [
"MIT"
] | null | null | null | example.py | flywheel-apps/safe-python | b68e0926fa2fc114de4e06fce1d6087a8991d31b | [
"MIT"
] | null | null | null | example.py | flywheel-apps/safe-python | b68e0926fa2fc114de4e06fce1d6087a8991d31b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# Note:
# The above shebang, and setting the file's executable bit, allows the manifest's "command" key to be "./example.py".
# This is ideal as it removes any further bash processing of the gear command.
import json
invocation = json.loads(open('config.json').read())
# Note:
# The above load ... | 38.35514 | 117 | 0.733431 | 625 | 4,104 | 4.7888 | 0.4176 | 0.021049 | 0.029402 | 0.03007 | 0.151353 | 0.099566 | 0.066823 | 0.025393 | 0 | 0 | 0 | 0.002639 | 0.169103 | 4,104 | 106 | 118 | 38.716981 | 0.875073 | 0.625731 | 0 | 0.190476 | 0 | 0 | 0.253841 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.119048 | 0 | 0.166667 | 0.404762 | 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 | 1 | 0 | 1 |
bf50836ce3f0611d9873c64cefae8a1f6c3e26db | 3,161 | py | Python | coworker/services/views.py | upstar77/spacemap | 1babcecabc42b325dc647294599c309d6bda1ad5 | [
"MIT"
] | null | null | null | coworker/services/views.py | upstar77/spacemap | 1babcecabc42b325dc647294599c309d6bda1ad5 | [
"MIT"
] | null | null | null | coworker/services/views.py | upstar77/spacemap | 1babcecabc42b325dc647294599c309d6bda1ad5 | [
"MIT"
] | null | null | null | from django.shortcuts import render, get_object_or_404, redirect
# Create your views here.
from django.template.response import TemplateResponse
from django.views.generic import DetailView, ListView
from .models import Category, Service
def category_index(request, path, category_id):
category = get_object_or_40... | 38.084337 | 102 | 0.698513 | 382 | 3,161 | 5.575916 | 0.342932 | 0.021127 | 0.020657 | 0.026291 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005219 | 0.211958 | 3,161 | 82 | 103 | 38.54878 | 0.849859 | 0.573553 | 0 | 0.1 | 0 | 0 | 0.106399 | 0.065536 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.2 | 0.1 | 0.85 | 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 | 1 | 0 | 0 | 1 |
bf5270283b9b5ae31322739f3e77695f2b800695 | 3,176 | py | Python | bin/gpio-syslog-daemon.py | Ricapar/ta-splunk-perimeter-security | 146851c82a130a804c8752d9ba968d57d94fa4be | [
"MIT"
] | null | null | null | bin/gpio-syslog-daemon.py | Ricapar/ta-splunk-perimeter-security | 146851c82a130a804c8752d9ba968d57d94fa4be | [
"MIT"
] | null | null | null | bin/gpio-syslog-daemon.py | Ricapar/ta-splunk-perimeter-security | 146851c82a130a804c8752d9ba968d57d94fa4be | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
import sys
import time
import datetime
import logging
import RPi.GPIO as GPIO
from daemon import Daemon
from socket import gethostname
rpiPins = [
[ 4, 17, 21, 22, 18, 23, 24, 25 ],
[ 4, 17, 27, 22, 18, 23, 24, 25 ],
[ 4, 17, 27, 22, 5, 6, 13, 19, 26, 18, 23, 24, 25, 12, 16, 20, 21 ... | 30.834951 | 169 | 0.702456 | 462 | 3,176 | 4.766234 | 0.409091 | 0.019074 | 0.031789 | 0.034514 | 0.255677 | 0.255677 | 0.216167 | 0.216167 | 0.15713 | 0.142598 | 0 | 0.031508 | 0.160579 | 3,176 | 102 | 170 | 31.137255 | 0.794449 | 0.105793 | 0 | 0.111111 | 0 | 0.027778 | 0.323665 | 0.104351 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.013889 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bf540c8797e5a359e4aff0e63f2cd77c11c96c61 | 1,618 | py | Python | model_trainer/basic_trainer.py | NeverendingNotification/nnlibs | 193344b0ae25040a75ef000ed629f4150991064c | [
"MIT"
] | null | null | null | model_trainer/basic_trainer.py | NeverendingNotification/nnlibs | 193344b0ae25040a75ef000ed629f4150991064c | [
"MIT"
] | null | null | null | model_trainer/basic_trainer.py | NeverendingNotification/nnlibs | 193344b0ae25040a75ef000ed629f4150991064c | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Sep 30 11:25:37 2018
@author: nn
"""
class BaseTrainer:
def __init__(self, trainer_setting):
self.setting = trainer_setting
def make_model(self, loader, is_train=True):
raise NotImplementedError()
def get_losses(self, inputs, mo... | 27.896552 | 75 | 0.68356 | 203 | 1,618 | 5.29064 | 0.285714 | 0.100559 | 0.150838 | 0.083799 | 0.212291 | 0.178771 | 0.178771 | 0.178771 | 0.178771 | 0.178771 | 0 | 0.012442 | 0.205192 | 1,618 | 57 | 76 | 28.385965 | 0.822706 | 0.092089 | 0 | 0.25 | 0 | 0 | 0.01512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.305556 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bf56712bd4fbee8a3496bb82b0c8b189f40329cb | 972 | py | Python | tools/clang/scripts/generate_compdb.py | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | tools/clang/scripts/generate_compdb.py | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | tools/clang/scripts/generate_compdb.py | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | #!/usr/bin/env python
# Copyright 2014 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.
"""
Helper for generating compile DBs for clang tooling. On non-Windows platforms,
this is pretty straightforward. On Windows, the tool... | 25.578947 | 80 | 0.737654 | 152 | 972 | 4.585526 | 0.638158 | 0.034433 | 0.025825 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007344 | 0.159465 | 972 | 37 | 81 | 26.27027 | 0.845777 | 0.18107 | 0 | 0 | 0 | 0 | 0.076779 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.277778 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bf572b98bb524628cd68f9579473666398487220 | 6,282 | py | Python | rev1/scripts/bom_csv_multi.py | bzzzm/commodity-hw | be34ba0c4748a64348ee16cfabba83182a2b24c0 | [
"MIT"
] | null | null | null | rev1/scripts/bom_csv_multi.py | bzzzm/commodity-hw | be34ba0c4748a64348ee16cfabba83182a2b24c0 | [
"MIT"
] | null | null | null | rev1/scripts/bom_csv_multi.py | bzzzm/commodity-hw | be34ba0c4748a64348ee16cfabba83182a2b24c0 | [
"MIT"
] | null | null | null | """
@package
A simple way to generate separate CSV BOM files for multiple suppliers in Kicad.
Heavily inspired from https://github.com/wokwi/kicad-jlcpcb-bom-plugin .
This can be made much more efficient than it is, but I didn't really bothered with the performance with my
hobby-sized BOMs.
F... | 29.492958 | 120 | 0.570041 | 770 | 6,282 | 4.592208 | 0.31039 | 0.030543 | 0.014706 | 0.01612 | 0.167421 | 0.154977 | 0.154977 | 0.138009 | 0.138009 | 0.107466 | 0 | 0.003233 | 0.31057 | 6,282 | 212 | 121 | 29.632075 | 0.813207 | 0.425501 | 0 | 0.172043 | 1 | 0 | 0.197216 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043011 | false | 0 | 0.032258 | 0 | 0.096774 | 0.086022 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bf589c1aa908a9be4ec268de90ff93c1b52b5d83 | 2,788 | py | Python | src/main/models.py | HammudElHammud/DjangoProject | 6e9fc3065fec9a7b9e624139c84cca7942c2e2d5 | [
"bzip2-1.0.6"
] | null | null | null | src/main/models.py | HammudElHammud/DjangoProject | 6e9fc3065fec9a7b9e624139c84cca7942c2e2d5 | [
"bzip2-1.0.6"
] | null | null | null | src/main/models.py | HammudElHammud/DjangoProject | 6e9fc3065fec9a7b9e624139c84cca7942c2e2d5 | [
"bzip2-1.0.6"
] | null | null | null | from __future__ import unicode_literals
from django import forms
from django.contrib.auth.models import User
from django.db import models
from ckeditor_uploader.fields import RichTextUploadingField
# Create your models here.
from django.utils.safestring import mark_safe
class Main(models.Model):
STATUS = (
... | 31.681818 | 90 | 0.692253 | 340 | 2,788 | 5.505882 | 0.338235 | 0.110577 | 0.105769 | 0.141026 | 0.45406 | 0.280449 | 0.186432 | 0.055556 | 0.055556 | 0 | 0 | 0.030823 | 0.185438 | 2,788 | 87 | 91 | 32.045977 | 0.793483 | 0.008608 | 0 | 0.19697 | 0 | 0 | 0.051412 | 0.007965 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075758 | false | 0.015152 | 0.090909 | 0.060606 | 0.818182 | 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 | 1 | 0 | 0 | 1 |
bf5b25605b1cdd0019ca8bfd71587b3e8a77a393 | 7,231 | py | Python | generativepy/tween.py | LloydTao/generativepy | 8bf6afed57200cbebd3163e4fdc730fc8761e753 | [
"MIT"
] | 58 | 2019-06-15T16:09:28.000Z | 2022-03-25T03:24:26.000Z | generativepy/tween.py | LloydTao/generativepy | 8bf6afed57200cbebd3163e4fdc730fc8761e753 | [
"MIT"
] | 1 | 2021-09-09T16:12:18.000Z | 2021-09-09T18:13:05.000Z | generativepy/tween.py | LloydTao/generativepy | 8bf6afed57200cbebd3163e4fdc730fc8761e753 | [
"MIT"
] | 4 | 2020-07-26T10:54:19.000Z | 2021-11-17T17:24:13.000Z | # Author: Martin McBride
# Created: 2019-01-25
# Copyright (C) 2018, Martin McBride
# License: MIT
import math
class Tween():
'''
Tweening class for scalar values
Initial value is set on construction.
wait() maintains the current value for the requested number of frames
pad() similar to wait,... | 29.514286 | 120 | 0.581386 | 1,067 | 7,231 | 3.857545 | 0.192127 | 0.061224 | 0.028426 | 0.018707 | 0.434645 | 0.357386 | 0.317055 | 0.276725 | 0.260447 | 0.227891 | 0 | 0.038239 | 0.305629 | 7,231 | 244 | 121 | 29.635246 | 0.781518 | 0.199004 | 0 | 0.428571 | 0 | 0 | 0.031058 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.233766 | false | 0 | 0.006494 | 0.077922 | 0.493506 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bf64c2b9424c37ddaf1a1dbda4870a9aa693f5e3 | 1,036 | py | Python | MySQL/insert_data_to_table.py | arjunjanamatti/pymongo_practise | d69153f6a0cce9416b10c0adf300986bfe9dfe22 | [
"Apache-2.0"
] | null | null | null | MySQL/insert_data_to_table.py | arjunjanamatti/pymongo_practise | d69153f6a0cce9416b10c0adf300986bfe9dfe22 | [
"Apache-2.0"
] | null | null | null | MySQL/insert_data_to_table.py | arjunjanamatti/pymongo_practise | d69153f6a0cce9416b10c0adf300986bfe9dfe22 | [
"Apache-2.0"
] | null | null | null | import mysql.connector
from mysql.connector.errors import Error
databse_name = 'practise_db'
user_name = 'aj'
password = 'italia123'
host_address = 'localhost'
try:
### CONNECT TO THE DATABASE
mydb = mysql.connector.connect(
host = 'localhost',
user = user_name,
passwd = password,
... | 22.521739 | 101 | 0.631274 | 126 | 1,036 | 5.079365 | 0.452381 | 0.065625 | 0.0375 | 0.046875 | 0.315625 | 0.225 | 0.14375 | 0.14375 | 0.14375 | 0 | 0 | 0.008816 | 0.233591 | 1,036 | 46 | 102 | 22.521739 | 0.797229 | 0.087838 | 0 | 0.2 | 0 | 0.033333 | 0.332976 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.066667 | 0.066667 | 0 | 0.066667 | 0.066667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
bf67b91ac914ba65670e8408236e082c9f419332 | 1,594 | py | Python | tests/test_data.py | deep-voice/soundbay | eb19b9932fab0c909c8e9c0627d29dfcd752c18c | [
"Apache-2.0"
] | 7 | 2021-07-29T09:44:20.000Z | 2022-02-01T20:01:05.000Z | tests/test_data.py | mosheman5/soundbay | eb19b9932fab0c909c8e9c0627d29dfcd752c18c | [
"Apache-2.0"
] | 13 | 2021-04-19T05:56:30.000Z | 2022-02-09T09:37:36.000Z | tests/test_data.py | deep-voice/soundbay | eb19b9932fab0c909c8e9c0627d29dfcd752c18c | [
"Apache-2.0"
] | 2 | 2021-04-06T06:32:24.000Z | 2022-01-22T16:37:29.000Z | from hydra.experimental import compose, initialize
from random import randint
from random import seed
from soundbay.data import ClassifierDataset
import numpy as np
def test_dataloader() -> None:
seed(1)
with initialize(config_path="../soundbay/conf"):
# config is relative to a module
cfg = co... | 51.419355 | 111 | 0.651819 | 192 | 1,594 | 5.270833 | 0.354167 | 0.062253 | 0.106719 | 0.168972 | 0.412055 | 0.272727 | 0.124506 | 0.124506 | 0.124506 | 0.124506 | 0 | 0.016892 | 0.257215 | 1,594 | 30 | 112 | 53.133333 | 0.837838 | 0.059598 | 0 | 0.074074 | 0 | 0 | 0.04214 | 0.01806 | 0 | 0 | 0 | 0 | 0.259259 | 1 | 0.037037 | false | 0 | 0.185185 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 0 | 1 |
bf6bca5d28ad239354cae429dda63d36ec02db29 | 209 | py | Python | dev_Hand.py | lpeletan/Poker_Monte-Carlo | 89bc4e9450afb7e867cdf1d537d94228988b06f8 | [
"MIT"
] | null | null | null | dev_Hand.py | lpeletan/Poker_Monte-Carlo | 89bc4e9450afb7e867cdf1d537d94228988b06f8 | [
"MIT"
] | null | null | null | dev_Hand.py | lpeletan/Poker_Monte-Carlo | 89bc4e9450afb7e867cdf1d537d94228988b06f8 | [
"MIT"
] | null | null | null | import poker as p
d = p.Deck.standard_52_card_deck()
print(d)
for c in d:
print(repr(c), c)
h = p.Hand([d['2c']])
print(h._strength)
print(h.strength)
# h = p.Hand.best_from_cards(d.cards)
# print(h)
| 13.0625 | 37 | 0.650718 | 42 | 209 | 3.095238 | 0.5 | 0.138462 | 0.092308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017143 | 0.162679 | 209 | 15 | 38 | 13.933333 | 0.725714 | 0.210526 | 0 | 0 | 0 | 0 | 0.012346 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.5 | 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 | 1 | 0 | 1 |
bf6da82aa7c74df967010931c8ecb3cb2548fc9b | 1,423 | py | Python | 03 Programming Contest/shoffee.py | thinkofmia/Team-MIA-Shopee-Code-League-2021 | 30c97ba424369a7e2c66ba6af6127e7f48d47c30 | [
"CC0-1.0"
] | null | null | null | 03 Programming Contest/shoffee.py | thinkofmia/Team-MIA-Shopee-Code-League-2021 | 30c97ba424369a7e2c66ba6af6127e7f48d47c30 | [
"CC0-1.0"
] | null | null | null | 03 Programming Contest/shoffee.py | thinkofmia/Team-MIA-Shopee-Code-League-2021 | 30c97ba424369a7e2c66ba6af6127e7f48d47c30 | [
"CC0-1.0"
] | 1 | 2021-03-24T16:31:38.000Z | 2021-03-24T16:31:38.000Z | #!/bin/python3
import math
import os
import random
import re
import sys
from itertools import combinations
#
# Complete the 'maxSubstring' function below.
#
# The function is expected to return a STRING.
# The function accepts STRING s as parameter.
#
def findShoffee(coffeeBeanAndExpectation, prefere... | 22.951613 | 68 | 0.629656 | 146 | 1,423 | 6.082192 | 0.445205 | 0.013514 | 0.02027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007866 | 0.285313 | 1,423 | 61 | 69 | 23.327869 | 0.86529 | 0.117358 | 0 | 0 | 0 | 0 | 0.008425 | 0 | 0 | 0 | 0 | 0.016393 | 0 | 1 | 0.027027 | false | 0 | 0.162162 | 0 | 0.216216 | 0.027027 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bf6e939f17c7951ccdc677bec5ef19febd153d36 | 808 | py | Python | leetcode/python/Q0054_Spiral_Matrix.py | lisuizhe/algorithm | 4ae6c774ed202703a9a760eca7ff8b140feb535f | [
"Apache-2.0"
] | 2 | 2019-03-03T04:03:49.000Z | 2019-06-26T02:43:49.000Z | leetcode/python/Q0054_Spiral_Matrix.py | lisuizhe/algorithm | 4ae6c774ed202703a9a760eca7ff8b140feb535f | [
"Apache-2.0"
] | null | null | null | leetcode/python/Q0054_Spiral_Matrix.py | lisuizhe/algorithm | 4ae6c774ed202703a9a760eca7ff8b140feb535f | [
"Apache-2.0"
] | null | null | null | class Solution(object):
def spiralOrder(self, matrix):
"""
:type matrix: List[List[int]]
:rtype: List[int]
"""
ans = []
if not matrix:
return ans
r1, r2 = 0, len(matrix) - 1
c1, c2 = 0, len(matrix[0]) - 1
while c1 <= c2 and r1 <= r2... | 31.076923 | 47 | 0.393564 | 106 | 808 | 3 | 0.283019 | 0.050314 | 0.125786 | 0.201258 | 0.18239 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100703 | 0.471535 | 808 | 26 | 48 | 31.076923 | 0.644028 | 0.058168 | 0 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 0 | 1 |
bf6fffd50ee277fb1acb36c9ae4b3b0716cc9b0c | 1,505 | py | Python | scripts/batch-reverse-complement.py | cherrytrees-kpu/kpu-agc-project-scripts | 1136067fa0a93b833a03979e5dc812ce472583db | [
"MIT"
] | null | null | null | scripts/batch-reverse-complement.py | cherrytrees-kpu/kpu-agc-project-scripts | 1136067fa0a93b833a03979e5dc812ce472583db | [
"MIT"
] | null | null | null | scripts/batch-reverse-complement.py | cherrytrees-kpu/kpu-agc-project-scripts | 1136067fa0a93b833a03979e5dc812ce472583db | [
"MIT"
] | null | null | null | from Bio import Seq, SeqIO
import argparse
import pathlib
def parse_args():
parser = argparse.ArgumentParser(description="Script to quickly generate reverse complement fastas")
parser.add_argument(
'seq_path',
type=pathlib.Path,
action='store',
help='Path to sequence files'
... | 34.204545 | 104 | 0.619269 | 202 | 1,505 | 4.272277 | 0.316832 | 0.089224 | 0.063731 | 0.032445 | 0.495944 | 0.414832 | 0.414832 | 0.414832 | 0.414832 | 0.414832 | 0 | 0 | 0.277076 | 1,505 | 44 | 105 | 34.204545 | 0.793199 | 0.027907 | 0 | 0.292683 | 1 | 0 | 0.138072 | 0.038278 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04878 | false | 0 | 0.073171 | 0 | 0.146341 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bf752a0fbeb6d507311d56e1f4e724814a0350b1 | 1,538 | py | Python | packages/attitude.pkg/providers.py | GrahamCobb/maemo-mud-builder | 7bc03f5a1734a2b256e31808032d079c3e1e5720 | [
"ClArtistic"
] | null | null | null | packages/attitude.pkg/providers.py | GrahamCobb/maemo-mud-builder | 7bc03f5a1734a2b256e31808032d079c3e1e5720 | [
"ClArtistic"
] | null | null | null | packages/attitude.pkg/providers.py | GrahamCobb/maemo-mud-builder | 7bc03f5a1734a2b256e31808032d079c3e1e5720 | [
"ClArtistic"
] | null | null | null | #
# Provider information sources for `Attitude' - a false horizon display using
# accelerometer information. (c) Andrew Flegg 2009
# Released under the Artistic Licence
import os.path
from math import sin, cos, pi
class Dummy:
"""One of the simplest provide... | 29.018868 | 79 | 0.574122 | 203 | 1,538 | 4.330049 | 0.517241 | 0.015927 | 0.051195 | 0.027304 | 0.036405 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072038 | 0.314044 | 1,538 | 52 | 80 | 29.576923 | 0.761137 | 0.429779 | 0 | 0.111111 | 0 | 0 | 0.050481 | 0.049279 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0 | 0.074074 | 0.074074 | 0.62963 | 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 | 1 | 0 | 0 | 1 |
bf82f1ccfa705a7960dcb9f02a2b173736e1d8cc | 562 | py | Python | tests/graphics/RETAINED_INDEXED.py | qbektrix/pyglet | ab3f73dfd37abf75041e86310416b18138c34c33 | [
"BSD-3-Clause"
] | 1 | 2016-07-19T16:56:46.000Z | 2016-07-19T16:56:46.000Z | tests/graphics/RETAINED_INDEXED.py | qbektrix/pyglet | ab3f73dfd37abf75041e86310416b18138c34c33 | [
"BSD-3-Clause"
] | 1 | 2018-08-27T22:31:16.000Z | 2018-08-27T22:31:16.000Z | tests/graphics/RETAINED_INDEXED.py | qbektrix/pyglet | ab3f73dfd37abf75041e86310416b18138c34c33 | [
"BSD-3-Clause"
] | 1 | 2021-06-03T22:50:52.000Z | 2021-06-03T22:50:52.000Z | #!/usr/bin/env python
"""Tests vertex list drawing using indexed data.
"""
import unittest
import pyglet
from graphics_common import GraphicsIndexedGenericTestCase, get_feedback, GL_TRIANGLES
__noninteractive = True
class GraphicsIndexedVertexListTestCase(GraphicsIndexedGenericTestCase, unittest.TestCase):
def... | 28.1 | 98 | 0.786477 | 64 | 562 | 6.5625 | 0.59375 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128114 | 562 | 19 | 99 | 29.578947 | 0.857143 | 0.117438 | 0 | 0 | 0 | 0 | 0.01636 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.6 | 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 | 1 | 0 | 0 | 1 |
bf82f47c5c901d56f937bd9c5c469d9586d7b5a4 | 364 | py | Python | sky/migrations/0007_auto_20180224_1120.py | eethan1/IMnight2018_Backend | 39780f737e57763fdfb171c4687a375d3c5a4bb0 | [
"Apache-2.0"
] | null | null | null | sky/migrations/0007_auto_20180224_1120.py | eethan1/IMnight2018_Backend | 39780f737e57763fdfb171c4687a375d3c5a4bb0 | [
"Apache-2.0"
] | null | null | null | sky/migrations/0007_auto_20180224_1120.py | eethan1/IMnight2018_Backend | 39780f737e57763fdfb171c4687a375d3c5a4bb0 | [
"Apache-2.0"
] | 4 | 2018-01-27T06:01:41.000Z | 2018-02-21T12:18:35.000Z | # Generated by Django 2.0 on 2018-02-24 11:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('sky', '0006_auto_20180224_1118'),
]
operations = [
migrations.AlterField(
model_name='news',
name='label',
... | 19.157895 | 45 | 0.57967 | 38 | 364 | 5.447368 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118577 | 0.304945 | 364 | 18 | 46 | 20.222222 | 0.699605 | 0.118132 | 0 | 0 | 1 | 0 | 0.109718 | 0.0721 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bf881949ce694d615273116c85e3244d5530605f | 46,591 | py | Python | src/shotgun_io.py | shotgunsoftware/shotgun_io | f12209c6a2bb91716ec7054834210aefa71126c4 | [
"BSD-3-Clause"
] | 2 | 2017-08-16T02:03:51.000Z | 2017-11-27T21:13:35.000Z | src/shotgun_io.py | shotgunsoftware/shotgun_io | f12209c6a2bb91716ec7054834210aefa71126c4 | [
"BSD-3-Clause"
] | null | null | null | src/shotgun_io.py | shotgunsoftware/shotgun_io | f12209c6a2bb91716ec7054834210aefa71126c4 | [
"BSD-3-Clause"
] | 2 | 2017-09-14T20:08:15.000Z | 2021-10-03T14:56:01.000Z | #!/usr/bin/env python
# ---------------------------------------------------------------------------------------------
# Copyright (c) 2009-2016, Shotgun Software Inc
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# ... | 40.443576 | 253 | 0.603035 | 5,507 | 46,591 | 4.956601 | 0.148901 | 0.01121 | 0.008793 | 0.010478 | 0.327484 | 0.274143 | 0.239156 | 0.201971 | 0.174531 | 0.170868 | 0 | 0.00489 | 0.302076 | 46,591 | 1,151 | 254 | 40.478714 | 0.834548 | 0.100212 | 0 | 0.245779 | 0 | 0.007505 | 0.211545 | 0.003137 | 0 | 0 | 0 | 0.001738 | 0 | 0 | null | null | 0.007505 | 0.035647 | null | null | 0.033771 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bf8f6e73ce07b1c7ca8c75ad7428ae74175c65fd | 603 | py | Python | boto3_exceptions/discovery.py | siteshen/boto3_exceptions | d6174c2577c9d4b17a09a89cd0e4bd1fe555b26b | [
"MIT"
] | 2 | 2021-06-22T00:00:35.000Z | 2021-07-15T03:25:52.000Z | boto3_exceptions/discovery.py | siteshen/boto3_exceptions | d6174c2577c9d4b17a09a89cd0e4bd1fe555b26b | [
"MIT"
] | null | null | null | boto3_exceptions/discovery.py | siteshen/boto3_exceptions | d6174c2577c9d4b17a09a89cd0e4bd1fe555b26b | [
"MIT"
] | null | null | null | import boto3
exceptions = boto3.client('discovery').exceptions
AuthorizationErrorException = exceptions.AuthorizationErrorException
ConflictErrorException = exceptions.ConflictErrorException
InvalidParameterException = exceptions.InvalidParameterException
InvalidParameterValueException = exceptions.InvalidParameterVa... | 46.384615 | 74 | 0.910448 | 31 | 603 | 17.709677 | 0.419355 | 0.134791 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003497 | 0.05141 | 603 | 12 | 75 | 50.25 | 0.956294 | 0 | 0 | 0 | 0 | 0 | 0.014925 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 1 | 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 | 0 | 1 |
bf945112107c20e7ccbfed785838182d65fe1ae2 | 415 | py | Python | apps/projetos/apps/sentinela/migrations/0006_auto_20210220_1547.py | mequetrefe-do-subtroco/web_constel | 57b5626fb17b4fefc740cbe1ac95fd4ab90147bc | [
"MIT"
] | 1 | 2020-06-18T09:03:53.000Z | 2020-06-18T09:03:53.000Z | apps/projetos/apps/sentinela/migrations/0006_auto_20210220_1547.py | gabrielhjs/web_constel | 57b5626fb17b4fefc740cbe1ac95fd4ab90147bc | [
"MIT"
] | 33 | 2020-06-16T18:59:33.000Z | 2021-08-12T21:33:17.000Z | apps/projetos/apps/sentinela/migrations/0006_auto_20210220_1547.py | gabrielhjs/web_constel | 57b5626fb17b4fefc740cbe1ac95fd4ab90147bc | [
"MIT"
] | null | null | null | # Generated by Django 3.0.7 on 2021-02-20 15:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('sentinela', '0005_sentinelacontratos_status_sentinela'),
]
operations = [
migrations.AlterField(
model_name='sentinelacontratos'... | 21.842105 | 66 | 0.626506 | 42 | 415 | 6.071429 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069079 | 0.26747 | 415 | 18 | 67 | 23.055556 | 0.769737 | 0.108434 | 0 | 0 | 1 | 0 | 0.192935 | 0.108696 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bf9a64686c2489867d54b1fc526d0718e41ed4ea | 1,096 | py | Python | inbox/constants.py | future-haus/django-inbox | 02da1f825b6abc56a0c2c80d6e9b3616f3ef09b8 | [
"MIT"
] | null | null | null | inbox/constants.py | future-haus/django-inbox | 02da1f825b6abc56a0c2c80d6e9b3616f3ef09b8 | [
"MIT"
] | 14 | 2021-08-31T04:18:57.000Z | 2021-08-31T04:55:32.000Z | inbox/constants.py | future-haus/django-inbox | 02da1f825b6abc56a0c2c80d6e9b3616f3ef09b8 | [
"MIT"
] | null | null | null | from functools import lru_cache
from django_enumfield import enum
class MessageMedium(enum.Enum):
APP_PUSH = 1
EMAIL = 2
SMS = 3
WEB_PUSH = 4
__labels__ = {
APP_PUSH: 'App Push',
EMAIL: 'Email',
SMS: 'SMS',
WEB_PUSH: 'Web Push'
}
@classmethod
@lru_ca... | 17.125 | 56 | 0.583942 | 131 | 1,096 | 4.603053 | 0.435115 | 0.039801 | 0.044776 | 0.054726 | 0.079602 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033467 | 0.318431 | 1,096 | 63 | 57 | 17.396825 | 0.773762 | 0 | 0 | 0.069767 | 0 | 0 | 0.110401 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0 | 0.046512 | 0.023256 | 0.55814 | 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 | 1 | 0 | 0 | 1 |
bf9ba68fc1967a78d6919de98214d787af64bf94 | 551 | py | Python | ufss/HLG/base_class.py | peterarose/UFSS | 1dded9c94493b8d681cd8620d45d883a79e41ae3 | [
"MIT"
] | 8 | 2020-08-18T12:19:34.000Z | 2022-01-26T17:33:47.000Z | ufss/vibronic_eigenstates/base_class.py | gharib85/ufss | 9aea2da19127c697e5b344548dbd8e152925b8b2 | [
"MIT"
] | 4 | 2020-09-03T11:43:44.000Z | 2022-03-25T04:13:41.000Z | ufss/vibronic_eigenstates/base_class.py | gharib85/ufss | 9aea2da19127c697e5b344548dbd8e152925b8b2 | [
"MIT"
] | 2 | 2020-08-18T12:19:39.000Z | 2020-09-14T00:58:58.000Z | import yaml
import os
import numpy as np
class DataOrganizer:
def __init__(self,parameter_file_path):
self.base_path = parameter_file_path
self.load_params()
def load_params(self):
params_file = os.path.join(self.base_path,'params.yaml')
with open(params_file) as yamlstream:
... | 29 | 70 | 0.682396 | 75 | 551 | 4.773333 | 0.426667 | 0.072626 | 0.094972 | 0.117318 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225045 | 551 | 18 | 71 | 30.611111 | 0.838407 | 0 | 0 | 0 | 0 | 0 | 0.019964 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.533333 | 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 | 1 | 0 | 0 | 1 |
bfac260fe0ebd85e533d729fd099a3b593514b48 | 3,910 | py | Python | runme.py | ipendlet/SD2_DRP_ML | baa65fcef0650d2f0af40eec5aaff20b3e90b6c5 | [
"MIT"
] | 6 | 2019-02-11T15:38:40.000Z | 2020-10-16T19:26:51.000Z | runme.py | ipendlet/SD2_DRP_ML | baa65fcef0650d2f0af40eec5aaff20b3e90b6c5 | [
"MIT"
] | 65 | 2019-02-19T19:17:15.000Z | 2020-03-09T18:01:09.000Z | runme.py | ipendlet/SD2_DRP_ExperimentGen | baa65fcef0650d2f0af40eec5aaff20b3e90b6c5 | [
"MIT"
] | 2 | 2020-05-30T15:29:34.000Z | 2021-05-16T04:20:26.000Z | """ESCALATE Capture
Main point of entry for for EscalateCAPTURE
"""
import os
import sys
import ast
import xlrd
import logging
import argparse as ap
from log import init
from capture import specify
from capture import devconfig
from utils import globals, data_handling
def escalatecapture(rxndict, vardict):
"""... | 32.857143 | 83 | 0.658568 | 482 | 3,910 | 5.240664 | 0.419087 | 0.028504 | 0.015835 | 0.01346 | 0.065717 | 0.045922 | 0.023753 | 0.023753 | 0.023753 | 0.023753 | 0 | 0.00739 | 0.238619 | 3,910 | 119 | 84 | 32.857143 | 0.841115 | 0.242711 | 0 | 0.027778 | 0 | 0 | 0.105463 | 0.029391 | 0 | 0 | 0 | 0.016807 | 0 | 1 | 0.041667 | false | 0.013889 | 0.138889 | 0 | 0.208333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bfb5cef7fd540c746922de9e21525aec74dffd73 | 422 | py | Python | bindings/pydeck-carto/tests/test_credentials.py | ehtick/deck.gl | ac59a28a6ff03000072f11c9a5520eb87f11944c | [
"MIT"
] | null | null | null | bindings/pydeck-carto/tests/test_credentials.py | ehtick/deck.gl | ac59a28a6ff03000072f11c9a5520eb87f11944c | [
"MIT"
] | null | null | null | bindings/pydeck-carto/tests/test_credentials.py | ehtick/deck.gl | ac59a28a6ff03000072f11c9a5520eb87f11944c | [
"MIT"
] | null | null | null | from pydeck_carto import load_carto_credentials
def test_load_carto_credentials(requests_mock):
requests_mock.post(
"https://auth.carto.com/oauth/token", text='{"access_token":"asdf1234"}'
)
creds = load_carto_credentials("tests/fixtures/mock_credentials.json")
assert creds == {
"apiVe... | 30.142857 | 80 | 0.670616 | 47 | 422 | 5.765957 | 0.617021 | 0.099631 | 0.221402 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026163 | 0.184834 | 422 | 13 | 81 | 32.461538 | 0.761628 | 0 | 0 | 0 | 0 | 0 | 0.376777 | 0.149289 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 0 | 1 |
bfb7d290f3111ced964be32329dbedc9841b64a1 | 724 | py | Python | fewshot/data/samplers/fewshot_sampler.py | sebamenabar/oc-fewshot-public | 2dad8c9f24cb1bfe72d8b13b33d28f6788d86ca8 | [
"MIT"
] | 18 | 2020-07-12T11:07:27.000Z | 2022-02-06T04:17:23.000Z | fewshot/data/samplers/fewshot_sampler.py | renmengye/oc-fewshot | eb12bd5b426518fd8353304f0760f5c24f1b3c12 | [
"MIT"
] | 2 | 2021-10-14T17:38:50.000Z | 2021-11-10T14:07:04.000Z | fewshot/data/samplers/fewshot_sampler.py | renmengye/oc-fewshot | eb12bd5b426518fd8353304f0760f5c24f1b3c12 | [
"MIT"
] | 6 | 2020-11-11T19:18:28.000Z | 2021-06-04T14:20:03.000Z | """Regular few-shot episode sampler.
Author: Mengye Ren (mren@cs.toronto.edu)
"""
from __future__ import (absolute_import, division, print_function,
unicode_literals)
from fewshot.data.registry import RegisterSampler
from fewshot.data.samplers.incremental_sampler import IncrementalSampler
@... | 30.166667 | 72 | 0.745856 | 82 | 724 | 6.317073 | 0.609756 | 0.027027 | 0.057915 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001623 | 0.149171 | 724 | 23 | 73 | 31.478261 | 0.839286 | 0.205801 | 0 | 0 | 0 | 0 | 0.012545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.272727 | 0 | 0.636364 | 0.090909 | 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 | 1 | 0 | 0 | 1 |
bfb92e33e3d164188047d57ee93986387e555312 | 2,848 | py | Python | src/gat.py | simoneazeglio/DeepInf | 60fadcf24befa34472e521a89172839edecca56b | [
"MIT"
] | 258 | 2018-06-14T08:21:33.000Z | 2022-03-27T09:14:26.000Z | src/gat.py | simoneazeglio/DeepInf | 60fadcf24befa34472e521a89172839edecca56b | [
"MIT"
] | 7 | 2019-05-13T08:19:34.000Z | 2021-01-28T06:12:26.000Z | src/gat.py | simoneazeglio/DeepInf | 60fadcf24befa34472e521a89172839edecca56b | [
"MIT"
] | 85 | 2018-08-08T04:34:21.000Z | 2022-03-07T16:15:03.000Z | #!/usr/bin/env python
# encoding: utf-8
# File Name: gat.py
# Author: Jiezhong Qiu
# Create Time: 2017/12/18 21:40
# TODO:
from __future__ import absolute_import
from __future__ import unicode_literals
from __future__ import division
from __future__ import print_function
import torch
import torch.nn as nn
import torc... | 40.685714 | 127 | 0.634831 | 402 | 2,848 | 4.273632 | 0.308458 | 0.105937 | 0.046566 | 0.031432 | 0.140279 | 0.053551 | 0 | 0 | 0 | 0 | 0 | 0.027346 | 0.255267 | 2,848 | 69 | 128 | 41.275362 | 0.78265 | 0.101475 | 0 | 0.075472 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014493 | 0 | 1 | 0.037736 | false | 0 | 0.150943 | 0 | 0.226415 | 0.018868 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bfc1ebc1ade673a7a9bf61da9596283f2de9250e | 5,634 | py | Python | tests/test_sdpb.py | alepiazza/pycftboot | d2f374744f528779cc68860cdbc904e0b7674bd8 | [
"MIT"
] | null | null | null | tests/test_sdpb.py | alepiazza/pycftboot | d2f374744f528779cc68860cdbc904e0b7674bd8 | [
"MIT"
] | null | null | null | tests/test_sdpb.py | alepiazza/pycftboot | d2f374744f528779cc68860cdbc904e0b7674bd8 | [
"MIT"
] | null | null | null | import unittest
import shutil
import os
import subprocess
import filecmp
from symengine.lib.symengine_wrapper import RealMPFR
from pycftboot import SdpbDocker, SdpbBinary, SdpbSingularity
from pycftboot.constants import prec
DIR = 'test_output'
def have_binary(bin_name):
bin_in_path = shutil.which(bin_name)
... | 45.072 | 250 | 0.725417 | 603 | 5,634 | 6.573798 | 0.263682 | 0.025227 | 0.020182 | 0.022704 | 0.259839 | 0.246216 | 0.222503 | 0.199294 | 0.178607 | 0.178607 | 0 | 0.261656 | 0.166312 | 5,634 | 124 | 251 | 45.435484 | 0.582287 | 0.022009 | 0 | 0.25 | 0 | 0 | 0.340062 | 0.240589 | 0 | 0 | 0 | 0 | 0.108696 | 1 | 0.086957 | false | 0 | 0.086957 | 0 | 0.23913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 0 | 1 |
bfc9c393a102ec3c21c6cad674575367748fc5c7 | 908 | py | Python | release/stubs.min/System/ComponentModel/__init___parts/RefreshEventArgs.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/System/ComponentModel/__init___parts/RefreshEventArgs.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/System/ComponentModel/__init___parts/RefreshEventArgs.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | class RefreshEventArgs(EventArgs):
"""
Provides data for the System.ComponentModel.TypeDescriptor.Refreshed event.
RefreshEventArgs(componentChanged: object)
RefreshEventArgs(typeChanged: Type)
"""
@staticmethod
def __new__(self, *__args):
"""
__new__(cls: type,componentCha... | 19.73913 | 77 | 0.647577 | 88 | 908 | 6.522727 | 0.420455 | 0.10453 | 0.034843 | 0.083624 | 0.209059 | 0.209059 | 0.209059 | 0.209059 | 0.209059 | 0.209059 | 0 | 0 | 0.251101 | 908 | 45 | 78 | 20.177778 | 0.844118 | 0.264317 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.1 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
bfd353800381b949f863f365dbc4ef8ca5c7ba6e | 12,998 | py | Python | o3d/documentation/build_docs.py | rwatson/chromium-capsicum | b03da8e897f897c6ad2cda03ceda217b760fd528 | [
"BSD-3-Clause"
] | 11 | 2015-03-20T04:08:08.000Z | 2021-11-15T15:51:36.000Z | o3d/documentation/build_docs.py | rwatson/chromium-capsicum | b03da8e897f897c6ad2cda03ceda217b760fd528 | [
"BSD-3-Clause"
] | null | null | null | o3d/documentation/build_docs.py | rwatson/chromium-capsicum | b03da8e897f897c6ad2cda03ceda217b760fd528 | [
"BSD-3-Clause"
] | 1 | 2020-04-13T05:45:10.000Z | 2020-04-13T05:45:10.000Z | #!/usr/bin/python2.4
# Copyright 2009, 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... | 36.614085 | 83 | 0.687721 | 1,680 | 12,998 | 5.108929 | 0.220238 | 0.034603 | 0.016661 | 0.011185 | 0.445415 | 0.389258 | 0.371432 | 0.346499 | 0.324945 | 0.296866 | 0 | 0.009398 | 0.189568 | 12,998 | 354 | 84 | 36.717514 | 0.805392 | 0.148638 | 0 | 0.078431 | 0 | 0 | 0.269058 | 0.027747 | 0 | 0 | 0 | 0.002825 | 0 | 0 | null | null | 0.003922 | 0.035294 | null | null | 0.003922 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bfd887e930bb57d3c79deeca2c85e61070c27e34 | 445 | py | Python | APPRoot/loveword/migrations/0022_auto_20210217_1455.py | 1633743096/- | 3d1a52426a2a28c089e6ce83bc018e49f9399858 | [
"Apache-2.0"
] | 9 | 2021-03-04T01:30:46.000Z | 2021-11-17T16:28:04.000Z | APPRoot/loveword/migrations/0022_auto_20210217_1455.py | 1633743096/- | 3d1a52426a2a28c089e6ce83bc018e49f9399858 | [
"Apache-2.0"
] | 10 | 2020-08-24T12:31:36.000Z | 2021-07-14T03:25:30.000Z | APPRoot/loveword/migrations/0022_auto_20210217_1455.py | 1633743096/- | 3d1a52426a2a28c089e6ce83bc018e49f9399858 | [
"Apache-2.0"
] | 4 | 2021-03-09T02:47:19.000Z | 2022-01-17T06:56:49.000Z | # Generated by Django 2.2.1 on 2021-02-17 06:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('loveword', '0021_quotation'),
]
operations = [
migrations.AlterField(
model_name='quotation',
name='co... | 23.421053 | 96 | 0.586517 | 47 | 445 | 5.468085 | 0.787234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070288 | 0.296629 | 445 | 18 | 97 | 24.722222 | 0.750799 | 0.101124 | 0 | 0 | 1 | 0 | 0.110526 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
449a4a7c4ad81fde030380ce1844aef0e6778119 | 1,130 | py | Python | model-service/model_manager.py | leifan89/model-service | bca9178a4fbce07264bd418dc452ce08ba7d521e | [
"MIT"
] | null | null | null | model-service/model_manager.py | leifan89/model-service | bca9178a4fbce07264bd418dc452ce08ba7d521e | [
"MIT"
] | null | null | null | model-service/model_manager.py | leifan89/model-service | bca9178a4fbce07264bd418dc452ce08ba7d521e | [
"MIT"
] | 1 | 2021-11-24T00:42:24.000Z | 2021-11-24T00:42:24.000Z | from typing import Any
from typing import Dict
from .model.classifier import Classifier
class ModelManager:
def __init__(self, models: Dict[str, Classifier]):
self.models = models
def add_model(self, name: str, model: Classifier) -> None:
if name in self.models:
raise RuntimeErro... | 29.736842 | 87 | 0.60885 | 150 | 1,130 | 4.526667 | 0.266667 | 0.162003 | 0.088365 | 0.094256 | 0.409426 | 0.332842 | 0.300442 | 0.300442 | 0.300442 | 0.194404 | 0 | 0 | 0.286726 | 1,130 | 37 | 88 | 30.540541 | 0.842432 | 0 | 0 | 0.357143 | 0 | 0 | 0.112389 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.107143 | 0 | 0.392857 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
44a880e0f9ee8cfb4f41d5078b26be34af42044d | 4,774 | py | Python | app/main/handlers/main.py | chrisrowles/raspi-sh | 05e1eafb1fb18d53494184456c9faceb330c6365 | [
"MIT"
] | null | null | null | app/main/handlers/main.py | chrisrowles/raspi-sh | 05e1eafb1fb18d53494184456c9faceb330c6365 | [
"MIT"
] | null | null | null | app/main/handlers/main.py | chrisrowles/raspi-sh | 05e1eafb1fb18d53494184456c9faceb330c6365 | [
"MIT"
] | null | null | null | import io
import socket
import weakref
import paramiko
import tornado.websocket
from tornado.ioloop import IOLoop
from app.main.worker import Worker
from app.main.handlers.base import BaseHandler
DELAY = 3
workers = {}
def recycle(worker):
if worker.handler:
return
workers.pop(worker.id, None)
w... | 30.8 | 79 | 0.60243 | 547 | 4,774 | 5.124314 | 0.279708 | 0.03746 | 0.026757 | 0.027114 | 0.081341 | 0.071709 | 0.071709 | 0.050303 | 0 | 0 | 0 | 0.005662 | 0.297026 | 4,774 | 154 | 80 | 31 | 0.829559 | 0 | 0 | 0.125 | 0 | 0 | 0.061584 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0.0625 | 0.007813 | 0.289063 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
44ac941167f60e0a443d5d9529f568f586287b8c | 954 | py | Python | trex/management/commands/secretkey.py | bjoernricks/trex | d68c0a7577be5ebf3e616c9481e07b72fcdb916a | [
"MIT"
] | null | null | null | trex/management/commands/secretkey.py | bjoernricks/trex | d68c0a7577be5ebf3e616c9481e07b72fcdb916a | [
"MIT"
] | null | null | null | trex/management/commands/secretkey.py | bjoernricks/trex | d68c0a7577be5ebf3e616c9481e07b72fcdb916a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# (c) 2014 Bjoern Ricks <bjoern.ricks@gmail.com>
#
# See LICENSE comming with the source of 'trex' for details.
#
from optparse import make_option
from django.core.management.base import BaseCommand
from django.utils.crypto import get_random_string
class Command(BaseCommand):
help = "... | 27.257143 | 68 | 0.619497 | 114 | 954 | 5.070175 | 0.614035 | 0.062284 | 0.069204 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024011 | 0.257862 | 954 | 34 | 69 | 28.058824 | 0.792373 | 0.187631 | 0 | 0 | 0 | 0 | 0.174707 | 0.065189 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.157895 | null | null | 0.052632 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
44aef3008d949836e41a8b424c2e5882c956a561 | 2,054 | py | Python | app/resources/api.py | PopuriAO29/mp3-reverser | 34226a3163b76ce498f6cd9779b57552067c1fdf | [
"MIT"
] | null | null | null | app/resources/api.py | PopuriAO29/mp3-reverser | 34226a3163b76ce498f6cd9779b57552067c1fdf | [
"MIT"
] | null | null | null | app/resources/api.py | PopuriAO29/mp3-reverser | 34226a3163b76ce498f6cd9779b57552067c1fdf | [
"MIT"
] | 1 | 2021-12-25T18:06:32.000Z | 2021-12-25T18:06:32.000Z | import os
from flask import abort
from flask import request
from flask import send_from_directory
from app import app
from app.main.RequestParameters import RequestParameters
from app.main.Session import Session
from app.main.Session import Status
from app.main.exceptions.exceptions import InvalidSessionIdError
API_... | 25.04878 | 70 | 0.69036 | 256 | 2,054 | 5.242188 | 0.234375 | 0.09389 | 0.067809 | 0.044709 | 0.229508 | 0.131148 | 0.131148 | 0 | 0 | 0 | 0 | 0.005521 | 0.206426 | 2,054 | 81 | 71 | 25.358025 | 0.817791 | 0.008763 | 0 | 0.101695 | 0 | 0 | 0.079154 | 0.025074 | 0 | 0 | 0 | 0.012346 | 0 | 1 | 0.118644 | false | 0 | 0.152542 | 0.050847 | 0.389831 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
44b646b4fdd805aa1e19f599bc6c947393db3eb6 | 9,373 | py | Python | Scripts/SeqGui/SeqGui.py | eoc21/biopython | c0f8db8f55a506837c320459957a0ce99b0618b6 | [
"PostgreSQL"
] | 3 | 2017-10-23T21:53:57.000Z | 2019-09-23T05:14:12.000Z | Scripts/SeqGui/SeqGui.py | eoc21/biopython | c0f8db8f55a506837c320459957a0ce99b0618b6 | [
"PostgreSQL"
] | null | null | null | Scripts/SeqGui/SeqGui.py | eoc21/biopython | c0f8db8f55a506837c320459957a0ce99b0618b6 | [
"PostgreSQL"
] | 6 | 2020-02-26T16:34:20.000Z | 2020-03-04T15:34:00.000Z | import string
from Bio import Seq
from Bio import Alphabet
from Bio.Alphabet import IUPAC
from wxPython.wx import *
from Bio import Translate
from Bio import Transcribe
ID_APPLY = 101
ID_CLEAR = 102
ID_EXIT = 103
ID_CLOSE = 104
ID_ABOUT = 105
ID_CODON = 106
ID_TRANSFORM = 107
class ParamsPanel( wxPanel ):
def _... | 33.960145 | 71 | 0.617305 | 1,081 | 9,373 | 5.176688 | 0.157262 | 0.055397 | 0.045032 | 0.038599 | 0.55629 | 0.440672 | 0.420658 | 0.397069 | 0.362402 | 0.340779 | 0 | 0.014597 | 0.276432 | 9,373 | 275 | 72 | 34.083636 | 0.810528 | 0 | 0 | 0.37931 | 0 | 0 | 0.056332 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.030172 | null | null | 0.025862 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
44bfcec73ed723af3193d08cce683751ec8a82eb | 11,528 | py | Python | krcg/config.py | smeea/krcg | e78bcd00c1963788855bb5279469aa90a723c874 | [
"MIT"
] | 6 | 2020-05-05T18:59:20.000Z | 2021-10-11T12:19:45.000Z | krcg/config.py | smeea/krcg | e78bcd00c1963788855bb5279469aa90a723c874 | [
"MIT"
] | 340 | 2020-04-15T08:19:29.000Z | 2022-03-31T09:59:19.000Z | krcg/config.py | smeea/krcg | e78bcd00c1963788855bb5279469aa90a723c874 | [
"MIT"
] | 8 | 2020-05-05T16:10:50.000Z | 2021-07-21T00:16:11.000Z | """Configuration"""
#: static KRCG server
KRCG_STATIC_SERVER = "https://static.krcg.org"
SUPPORTED_LANGUAGES = ["fr", "es"]
VEKN_TWDA_URL = "http://www.vekn.fr/decks/twd.htm"
#: aliases to match players abbreviations and typos in the TWDA
ALIASES = {
# parsing will consider the legacy double dash "--" as a comment ... | 41.617329 | 80 | 0.644778 | 1,335 | 11,528 | 5.564045 | 0.322097 | 0.094507 | 0.019251 | 0.02154 | 0.346123 | 0.196823 | 0.155493 | 0.129241 | 0.129241 | 0.129241 | 0 | 0.00872 | 0.204198 | 11,528 | 276 | 81 | 41.768116 | 0.800523 | 0.063064 | 0 | 0.022989 | 0 | 0 | 0.710942 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
44c44e48b89ef64f147a465e48a8415463bfe4ab | 682 | py | Python | aasaan/ashramvisit/models.py | deepakkt/aasaan | 77ef72e785e6ae562f51ae64fa9d85faf860c315 | [
"MIT"
] | null | null | null | aasaan/ashramvisit/models.py | deepakkt/aasaan | 77ef72e785e6ae562f51ae64fa9d85faf860c315 | [
"MIT"
] | 15 | 2020-06-05T19:26:26.000Z | 2022-03-11T23:33:53.000Z | aasaan/ashramvisit/models.py | deepakkt/aasaan | 77ef72e785e6ae562f51ae64fa9d85faf860c315 | [
"MIT"
] | null | null | null | from django.db import models
from contacts.models import Center, Contact, IndividualContactRoleZone, Zone
from smart_selects.db_fields import GroupedForeignKey
class AshramVisit(models.Model):
Center = GroupedForeignKey(Center, 'zone')
arrival_date = models.DateTimeField("Arrival Date & Time")
departure_t... | 40.117647 | 76 | 0.750733 | 78 | 682 | 6.384615 | 0.551282 | 0.044177 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008621 | 0.14956 | 682 | 17 | 77 | 40.117647 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0.083455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.214286 | 0.071429 | 1 | 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 | 1 | 0 | 0 | 1 |
44c9c530ba667651ee0c37342859989add543c5a | 2,303 | py | Python | Week5/ps6/experiments.py | AustinKladke/6.00.1x-MIT-CS-Python | 0f9e2840fdd5f005bae2a53a3b8a251e0635654e | [
"MIT"
] | null | null | null | Week5/ps6/experiments.py | AustinKladke/6.00.1x-MIT-CS-Python | 0f9e2840fdd5f005bae2a53a3b8a251e0635654e | [
"MIT"
] | null | null | null | Week5/ps6/experiments.py | AustinKladke/6.00.1x-MIT-CS-Python | 0f9e2840fdd5f005bae2a53a3b8a251e0635654e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Mar 10 19:37:20 2021
@author: akladke
"""
import string
# letter_lst = []
# num_lst = []
# count_lower = 1
# for i in string.ascii_lowercase:
# print(ord(i))
# letter_lst.append(i)
# num_lst.append(count_lower)
# count_lower += 1
# print(letter_lst)
# p... | 23.5 | 66 | 0.668693 | 366 | 2,303 | 3.980874 | 0.286885 | 0.2965 | 0.115992 | 0.07687 | 0.361016 | 0.276596 | 0.264242 | 0.147563 | 0.147563 | 0.096774 | 0 | 0.038333 | 0.218411 | 2,303 | 97 | 67 | 23.742268 | 0.771111 | 0.396005 | 0 | 0.208333 | 0 | 0 | 0.011782 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.020833 | 0 | 0.020833 | 0.125 | 0 | 0 | 0 | null | 1 | 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 | 0 | 1 |
44d236e6c6d0fc66d0b141686592d95d1b744e4c | 624 | py | Python | ex093.py | Gustavo-Dev-Web/python | 88c9a51cba5290d1dcfce8ea9481ed4749503f68 | [
"MIT"
] | null | null | null | ex093.py | Gustavo-Dev-Web/python | 88c9a51cba5290d1dcfce8ea9481ed4749503f68 | [
"MIT"
] | null | null | null | ex093.py | Gustavo-Dev-Web/python | 88c9a51cba5290d1dcfce8ea9481ed4749503f68 | [
"MIT"
] | null | null | null | dados = {}
gols = []
dados['Nome'] = str(input('Nome do Atleta:'))
partidas = int(input('Quantas partidas o jogador jogou:'))
for c in range(0,partidas):
gols.append(int(input(f'Quantos gols o jogador {dados["Nome"]} fez na partida {c}: ')))
dados['Gols'] = gols[:]
dados['Total'] = sum(gols)
print('--'*30)
... | 32.842105 | 91 | 0.604167 | 97 | 624 | 3.886598 | 0.350515 | 0.06366 | 0.03183 | 0.058355 | 0.106101 | 0.106101 | 0 | 0 | 0 | 0 | 0 | 0.015385 | 0.166667 | 624 | 18 | 92 | 34.666667 | 0.709615 | 0 | 0 | 0.277778 | 0 | 0 | 0.442308 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.444444 | 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 | 1 | 0 | 1 |
44d4524ad7333e2de2915ab90820a44f8cf94e54 | 673 | py | Python | RecoVertex/BeamSpotProducer/scripts/copyFiles.py | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | null | null | null | RecoVertex/BeamSpotProducer/scripts/copyFiles.py | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | null | null | null | RecoVertex/BeamSpotProducer/scripts/copyFiles.py | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import sys,os,commands
from CommonMethods import *
def main():
if len(sys.argv) < 3:
error = "Usage: copyFiles.py fromDir destDir (optional filter)"
exit(error)
fromDir = sys.argv[1]
print fromDir
if (fromDir[len(fromDir)-1] != '/'):
fromDir += '/'
dest... | 25.884615 | 71 | 0.585438 | 84 | 673 | 4.595238 | 0.464286 | 0.090674 | 0.062176 | 0.062176 | 0.067358 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012195 | 0.268945 | 673 | 25 | 72 | 26.92 | 0.772358 | 0.029718 | 0 | 0.095238 | 0 | 0 | 0.156442 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.095238 | null | null | 0.047619 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
44d76b436b888740c1b3e2145d9d7fe23e0e8561 | 2,213 | py | Python | spawn_npc.py | Matrix-King-Studio/HydraDeepQNet | e2793150764e2088ab412d594df503aac946eeaa | [
"MIT"
] | null | null | null | spawn_npc.py | Matrix-King-Studio/HydraDeepQNet | e2793150764e2088ab412d594df503aac946eeaa | [
"MIT"
] | null | null | null | spawn_npc.py | Matrix-King-Studio/HydraDeepQNet | e2793150764e2088ab412d594df503aac946eeaa | [
"MIT"
] | null | null | null | import logging
import random
import carla
def spawn_npc(client, world, blueprint_library, safe=True, number_of_vehicles=30, number_of_walkers=0):
actor_list = []
try:
blueprints = blueprint_library.filter('vehicle.*')
if safe:
blueprints = [x for x in blueprints if int(x.get_attr... | 40.981481 | 103 | 0.6507 | 267 | 2,213 | 5.17603 | 0.359551 | 0.075253 | 0.069465 | 0.068741 | 0.184515 | 0.184515 | 0.184515 | 0.062229 | 0.062229 | 0.062229 | 0 | 0.002435 | 0.257569 | 2,213 | 54 | 104 | 40.981481 | 0.83871 | 0.015816 | 0 | 0 | 0 | 0 | 0.09876 | 0 | 0 | 0 | 0 | 0.018519 | 0 | 1 | 0.02381 | false | 0 | 0.071429 | 0 | 0.095238 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
44e076d96f96f63ae37d5fde6fd4843e2311bf84 | 6,170 | py | Python | test_djangocms_blog/settings.py | marshalc/djangocms-blog | 4dc7cc38742870cb206e38385cef91ff14c1115b | [
"BSD-3-Clause"
] | null | null | null | test_djangocms_blog/settings.py | marshalc/djangocms-blog | 4dc7cc38742870cb206e38385cef91ff14c1115b | [
"BSD-3-Clause"
] | 1 | 2020-04-29T13:28:48.000Z | 2020-05-07T18:06:47.000Z | test_djangocms_blog/settings.py | marshalc/djangocms-blog | 4dc7cc38742870cb206e38385cef91ff14c1115b | [
"BSD-3-Clause"
] | null | null | null | """
Django settings for test_djangocms_blog project.
Generated by 'django-admin startproject' using Django 3.0.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
... | 24.879032 | 106 | 0.64765 | 654 | 6,170 | 5.91896 | 0.392966 | 0.057091 | 0.039783 | 0.045208 | 0.161974 | 0.126841 | 0.086541 | 0.068974 | 0.031 | 0 | 0 | 0.009269 | 0.213128 | 6,170 | 247 | 107 | 24.979757 | 0.788054 | 0.194003 | 0 | 0.148936 | 1 | 0 | 0.425506 | 0.307287 | 0 | 0 | 0 | 0 | 0 | 1 | 0.005319 | false | 0.037234 | 0.031915 | 0.005319 | 0.042553 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
44ede9c2c139b05cab1a6c68f460c5cd233cc96f | 2,774 | py | Python | train.py | SuriyaNitt/deepdrive | 8eacb9935418811135aeb3dc33cab1d92bc2001a | [
"MIT"
] | null | null | null | train.py | SuriyaNitt/deepdrive | 8eacb9935418811135aeb3dc33cab1d92bc2001a | [
"MIT"
] | null | null | null | train.py | SuriyaNitt/deepdrive | 8eacb9935418811135aeb3dc33cab1d92bc2001a | [
"MIT"
] | null | null | null | import networks.tflearn.deepdrivenet as ddn #threeD_conv_net
import ml_utils.calc_optical_flow as cop #calc_opticalflow
import ml_utils.handle_data as hd
import os
import numpy as np
import tflearn
import tensorflow as tf
debug = 0
calc_flow = 0
load_model_on_start = 0
depth = 16
batchSize = 16
modelBatchSize = 2
rows ... | 34.675 | 138 | 0.720981 | 397 | 2,774 | 4.899244 | 0.324937 | 0.041131 | 0.024679 | 0.016452 | 0.144987 | 0.063753 | 0.041131 | 0.041131 | 0 | 0 | 0 | 0.033093 | 0.150324 | 2,774 | 79 | 139 | 35.113924 | 0.792109 | 0.023071 | 0 | 0.169014 | 0 | 0 | 0.060606 | 0.031042 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.098592 | null | null | 0.140845 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
44f068f83bb50bc7b95aff78a13cfd457594c4cc | 5,207 | py | Python | local-runner-en/replay-dump.py | leloykun/russian-ai-cup | aa06dcd594f8a33aa5d1accc128b931812de7297 | [
"MIT"
] | null | null | null | local-runner-en/replay-dump.py | leloykun/russian-ai-cup | aa06dcd594f8a33aa5d1accc128b931812de7297 | [
"MIT"
] | null | null | null | local-runner-en/replay-dump.py | leloykun/russian-ai-cup | aa06dcd594f8a33aa5d1accc128b931812de7297 | [
"MIT"
] | null | null | null | #pylint: disable=missing-docstring, invalid-name
import urllib
import re
import sys
import contextlib
import os
import errno
import subprocess
import zipfile
import json
RUN_PLAYER_RE = re.compile(r'''<span\s+class\s*=\s*["']?run-player["']?\s*(.*)>''')
TOKEN_RE = re.compile(r'''.*data-token\s*=\s*["']?([^'"\s]+)['"]?... | 34.03268 | 189 | 0.596697 | 624 | 5,207 | 4.900641 | 0.342949 | 0.023545 | 0.014388 | 0.015697 | 0.088947 | 0.022891 | 0 | 0 | 0 | 0 | 0 | 0.022971 | 0.26426 | 5,207 | 152 | 190 | 34.256579 | 0.775255 | 0.016132 | 0 | 0.145038 | 0 | 0.007634 | 0.192931 | 0.039055 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.068702 | null | null | 0.068702 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
44f34cc868f039538e482e4747118c1f666cc5aa | 5,187 | py | Python | group_admin/files/group-admin-monthly-report.py | hpfilho/FlickrTasks | fdf1a08e8b1db41324edf9f49d7268c5af38434a | [
"MIT"
] | 1 | 2022-02-05T06:36:37.000Z | 2022-02-05T06:36:37.000Z | group_admin/files/group-admin-monthly-report.py | hpfilho/FlickrTasks | fdf1a08e8b1db41324edf9f49d7268c5af38434a | [
"MIT"
] | null | null | null | group_admin/files/group-admin-monthly-report.py | hpfilho/FlickrTasks | fdf1a08e8b1db41324edf9f49d7268c5af38434a | [
"MIT"
] | 1 | 2021-02-14T19:00:33.000Z | 2021-02-14T19:00:33.000Z | #!/usr/bin/python3
# This generates a report with photos that need to be removed
# or kept in a groups. It is useful for groups based in cameras,
# lenses or anything exif related.
#
# Author: Haraldo Albergaria
# Date : Jan 01, 2018
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
##############... | 37.316547 | 140 | 0.708309 | 746 | 5,187 | 4.663539 | 0.213137 | 0.04599 | 0.020696 | 0.024145 | 0.32768 | 0.2357 | 0.191434 | 0.161253 | 0.161253 | 0.140558 | 0 | 0.004907 | 0.135724 | 5,187 | 138 | 141 | 37.586957 | 0.771135 | 0.275111 | 0 | 0.0625 | 1 | 0 | 0.142778 | 0.0975 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.015625 | 0.09375 | 0 | 0.09375 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
44f3a19fd2d684c65a3b22d7cafa58f7b0662ce6 | 6,472 | py | Python | acq4/modules/MultiPatch/pipetteTemplate_pyqt5.py | aleonlein/acq4 | 4b1fcb9ad2c5e8d4595a2b9cf99d50ece0c0f555 | [
"MIT"
] | 1 | 2020-06-04T17:04:53.000Z | 2020-06-04T17:04:53.000Z | acq4/modules/MultiPatch/pipetteTemplate_pyqt5.py | aleonlein/acq4 | 4b1fcb9ad2c5e8d4595a2b9cf99d50ece0c0f555 | [
"MIT"
] | 24 | 2016-09-27T17:25:24.000Z | 2017-03-02T21:00:11.000Z | acq4/modules/MultiPatch/pipetteTemplate_pyqt5.py | sensapex/acq4 | 9561ba73caff42c609bd02270527858433862ad8 | [
"MIT"
] | 4 | 2016-10-19T06:39:36.000Z | 2019-09-30T21:06:45.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'acq4/modules/MultiPatch/pipetteTemplate.ui'
#
# Created by: PyQt5 UI code generator 5.8.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_PipetteControl(object):
def setupUi(... | 53.487603 | 111 | 0.717553 | 591 | 6,472 | 7.830795 | 0.196278 | 0.090752 | 0.036301 | 0.043215 | 0.379646 | 0.372947 | 0.331461 | 0.331461 | 0.290838 | 0.251513 | 0 | 0.023668 | 0.17089 | 6,472 | 120 | 112 | 53.933333 | 0.8388 | 0.032756 | 0 | 0.240741 | 1 | 0 | 0.059501 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018519 | false | 0 | 0.009259 | 0 | 0.037037 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
44f7efd682ea7944e450ddbcfd0326444e212ebb | 682 | py | Python | inventory/locations/migrations/0002_auto_20170610_1325.py | cnobile2012/inventory | bc09ccdead39a5cd758088dbfe5c56dec43c7e29 | [
"MIT"
] | 10 | 2015-02-16T17:12:44.000Z | 2021-06-04T18:14:01.000Z | inventory/locations/migrations/0002_auto_20170610_1325.py | cnobile2012/inventory | bc09ccdead39a5cd758088dbfe5c56dec43c7e29 | [
"MIT"
] | 1 | 2021-09-20T01:17:38.000Z | 2021-09-20T01:17:50.000Z | inventory/locations/migrations/0002_auto_20170610_1325.py | cnobile2012/inventory | bc09ccdead39a5cd758088dbfe5c56dec43c7e29 | [
"MIT"
] | 5 | 2015-09-09T02:01:33.000Z | 2021-05-29T09:09:14.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-06-10 17:25
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('locations', '0001_initial'),
]
operations = [
migrations.AlterField(
... | 32.47619 | 273 | 0.643695 | 87 | 682 | 4.91954 | 0.735632 | 0.014019 | 0.014019 | 0.042056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054004 | 0.21261 | 682 | 20 | 274 | 34.1 | 0.743017 | 0.099707 | 0 | 0 | 1 | 0.076923 | 0.394435 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
44f8708681c082c692467b89d582cbaf2d0842da | 409 | py | Python | src/visualizations/images.py | MatanDanos/AttnGAN-v1.1 | 918a0ca9293cbfa0b65a876b3af3d0828c613e70 | [
"MIT"
] | 2 | 2019-10-27T17:03:21.000Z | 2021-04-07T09:38:40.000Z | src/visualizations/images.py | MatanDanos/AttnGAN-v1.1 | 918a0ca9293cbfa0b65a876b3af3d0828c613e70 | [
"MIT"
] | null | null | null | src/visualizations/images.py | MatanDanos/AttnGAN-v1.1 | 918a0ca9293cbfa0b65a876b3af3d0828c613e70 | [
"MIT"
] | null | null | null | # This file will implement images
import os
from skimage.io import imsave
def visualize_image(image, image_name):
"""Given an image, will save the image to the figures directory
Parameters:
image: a [N,M,3] tensor
filename (str): name of the image
"""
image_path = os.path.join("../fi... | 20.45 | 67 | 0.655257 | 58 | 409 | 4.517241 | 0.603448 | 0.114504 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003226 | 0.242054 | 409 | 19 | 68 | 21.526316 | 0.841935 | 0.420538 | 0 | 0 | 0 | 0 | 0.065728 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
44fc2e57e217f623a9cfec7d3ef7e6f52aec5700 | 291 | py | Python | docs/examples/container/joyent/instantiate_driver.py | rgharris/libcloud | 90971e17bfd7b6bb97b2489986472c531cc8e140 | [
"Apache-2.0"
] | null | null | null | docs/examples/container/joyent/instantiate_driver.py | rgharris/libcloud | 90971e17bfd7b6bb97b2489986472c531cc8e140 | [
"Apache-2.0"
] | 1 | 2021-12-06T12:29:13.000Z | 2021-12-06T12:29:13.000Z | docs/examples/container/joyent/instantiate_driver.py | rgharris/libcloud | 90971e17bfd7b6bb97b2489986472c531cc8e140 | [
"Apache-2.0"
] | 1 | 2021-12-06T10:26:33.000Z | 2021-12-06T10:26:33.000Z | from libcloud.container.types import Provider
from libcloud.container.providers import get_driver
cls = get_driver(Provider.JOYENT)
conn = cls(
host="us-east-1.docker.joyent.com",
port=2376,
key_file="key.pem",
cert_file="~/.sdc/docker/admin/ca.pem",
)
conn.list_images()
| 20.785714 | 51 | 0.725086 | 43 | 291 | 4.790698 | 0.674419 | 0.116505 | 0.203884 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019841 | 0.134021 | 291 | 13 | 52 | 22.384615 | 0.797619 | 0 | 0 | 0 | 0 | 0 | 0.206186 | 0.182131 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 0 | 1 |
44ffa8214ac3ed5062fae51308f9dee07f7476c9 | 3,280 | py | Python | modules/ravestate/testfixtures.py | Roboy/diact | 45a1e90ca25f1d7de58fa1c7414dc78d9f426ccf | [
"BSD-3-Clause"
] | 28 | 2018-11-25T01:02:06.000Z | 2021-08-03T19:41:49.000Z | modules/ravestate/testfixtures.py | Roboy/diact | 45a1e90ca25f1d7de58fa1c7414dc78d9f426ccf | [
"BSD-3-Clause"
] | 122 | 2018-11-05T02:44:38.000Z | 2020-12-04T12:13:52.000Z | modules/ravestate/testfixtures.py | Roboy/diact | 45a1e90ca25f1d7de58fa1c7414dc78d9f426ccf | [
"BSD-3-Clause"
] | 6 | 2018-11-05T20:51:45.000Z | 2022-03-18T23:37:45.000Z | import pytest
from reggol import strip_prefix
from testfixtures import LogCapture
from ravestate import *
DEFAULT_MODULE_NAME = 'module'
DEFAULT_PROPERTY_NAME = 'property'
DEFAULT_PROPERTY_ID = f"{DEFAULT_MODULE_NAME}:{DEFAULT_PROPERTY_NAME}"
DEFAULT_PROPERTY_VALUE = 'Kruder'
DEFAULT_PROPERTY_CHANGED = f"{DEFAULT_PR... | 28.521739 | 98 | 0.796037 | 459 | 3,280 | 5.259259 | 0.139434 | 0.070423 | 0.086164 | 0.075394 | 0.509114 | 0.343413 | 0.170671 | 0.133389 | 0.133389 | 0.078708 | 0 | 0 | 0.12378 | 3,280 | 114 | 99 | 28.77193 | 0.839944 | 0 | 0 | 0.277108 | 0 | 0 | 0.066463 | 0.05061 | 0 | 0 | 0 | 0 | 0 | 1 | 0.216867 | false | 0.048193 | 0.060241 | 0.048193 | 0.433735 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7804b89585838b95628c0eaa442489033ba84691 | 1,930 | py | Python | python/merge_files.py | caleberi/LeetCode | fa170244648f73e76d316a6d7fc0e813adccaa82 | [
"MIT"
] | 1 | 2021-08-10T20:00:24.000Z | 2021-08-10T20:00:24.000Z | python/merge_files.py | caleberi/LeetCode | fa170244648f73e76d316a6d7fc0e813adccaa82 | [
"MIT"
] | null | null | null | python/merge_files.py | caleberi/LeetCode | fa170244648f73e76d316a6d7fc0e813adccaa82 | [
"MIT"
] | 3 | 2021-06-11T11:56:39.000Z | 2021-08-10T08:50:49.000Z | # Objective
# Merge a set of sorted files of different length into a single sorted file.
# We need to find an optimal solution, where the resultant file will be generated in minimum time.
# Approach
# If the number of sorted files are given, there are many ways to merge them into a single sorted file.
# This merge can... | 27.971014 | 120 | 0.680829 | 286 | 1,930 | 4.41958 | 0.426573 | 0.042722 | 0.026108 | 0.026899 | 0.064873 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005337 | 0.223316 | 1,930 | 68 | 121 | 28.382353 | 0.837892 | 0.263212 | 0 | 0 | 1 | 0 | 0.063031 | 0.015581 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.095238 | 0.02381 | 0.261905 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
780abf95543d999c7293a53f497c7a765f8ab02a | 157 | py | Python | src/test/latency/hosts/broker.py | acatalfano/distributed-systems-assignment-1 | 442510f14f2ae167b95a18bb458c2cf64f5caa87 | [
"MIT"
] | null | null | null | src/test/latency/hosts/broker.py | acatalfano/distributed-systems-assignment-1 | 442510f14f2ae167b95a18bb458c2cf64f5caa87 | [
"MIT"
] | null | null | null | src/test/latency/hosts/broker.py | acatalfano/distributed-systems-assignment-1 | 442510f14f2ae167b95a18bb458c2cf64f5caa87 | [
"MIT"
] | null | null | null | from app import BrokerFactory
def __main__() -> None:
factory = BrokerFactory()
factory.build_broker()
if __name__ == '__main__':
__main__()
| 14.272727 | 29 | 0.675159 | 16 | 157 | 5.5625 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210191 | 157 | 10 | 30 | 15.7 | 0.717742 | 0 | 0 | 0 | 0 | 0 | 0.050955 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 1 | 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 | 0 | 1 |
780b6d80241078d17e77d32bdd94b19ad3bc0e53 | 2,040 | py | Python | statsmodels/datasets/sunspots/data.py | yarikoptic/statsmodels | f990cb1a1ef0c9883c9394444e6f9d027efabec6 | [
"BSD-3-Clause"
] | 34 | 2018-07-13T11:30:46.000Z | 2022-01-05T13:48:10.000Z | venv/lib/python3.6/site-packages/statsmodels/datasets/sunspots/data.py | HeyWeiPan/vnpy_crypto | 844381797a475a01c05a4e162592a5a6e3a48032 | [
"MIT"
] | 6 | 2015-08-28T16:59:03.000Z | 2019-04-12T22:29:01.000Z | venv/lib/python3.6/site-packages/statsmodels/datasets/sunspots/data.py | HeyWeiPan/vnpy_crypto | 844381797a475a01c05a4e162592a5a6e3a48032 | [
"MIT"
] | 28 | 2015-04-01T20:02:25.000Z | 2021-07-03T00:09:28.000Z | """Yearly sunspots data 1700-2008"""
__docformat__ = 'restructuredtext'
COPYRIGHT = """This data is public domain."""
TITLE = __doc__
SOURCE = """
http://www.ngdc.noaa.gov/stp/solar/solarda3.html
The original dataset contains monthly data on sunspot activity in the file
./src/sunspots_yearly.dat. There... | 28.333333 | 74 | 0.663725 | 256 | 2,040 | 5.175781 | 0.488281 | 0.040755 | 0.019623 | 0.033208 | 0.040755 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018554 | 0.233824 | 2,040 | 71 | 75 | 28.732394 | 0.829175 | 0.177451 | 0 | 0.097561 | 0 | 0 | 0.375694 | 0.028994 | 0 | 0 | 0 | 0.014085 | 0 | 1 | 0.073171 | false | 0 | 0.097561 | 0 | 0.243902 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7812685da89e4a83430c4336c0e05a8d5c11d4a5 | 7,991 | py | Python | models.py | AbigailMathews/concentration | c25d2b560e31cf05e28a2a99287bc566bc3732f7 | [
"MIT"
] | null | null | null | models.py | AbigailMathews/concentration | c25d2b560e31cf05e28a2a99287bc566bc3732f7 | [
"MIT"
] | null | null | null | models.py | AbigailMathews/concentration | c25d2b560e31cf05e28a2a99287bc566bc3732f7 | [
"MIT"
] | null | null | null | """models.py - Contains class definitions for Datastore entities
used by the Concentration Game API. Definitions for User, Game, and
Score classes, with associated methods. Additionally, contains
definitions for Forms used in transmitting messages to users."""
### Imports
import random
import pickle
from datetime im... | 32.48374 | 83 | 0.665374 | 966 | 7,991 | 5.454451 | 0.21118 | 0.047827 | 0.030366 | 0.013665 | 0.211236 | 0.132093 | 0.097931 | 0.04479 | 0.04479 | 0.022775 | 0 | 0.009936 | 0.231761 | 7,991 | 245 | 84 | 32.616327 | 0.848347 | 0.203854 | 0 | 0.192053 | 0 | 0 | 0.013071 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05298 | false | 0 | 0.05298 | 0.006623 | 0.635762 | 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 | 1 | 0 | 0 | 1 |
78127873204624a36b384178bd4e83f04864250a | 945 | py | Python | examples/apps/kinesis-analytics-process-kpl-record/aws_kinesis_agg/__init__.py | eugeniosu/serverless-application-model | d93e15232a1921fa51667389d83aeabbf1ff72d3 | [
"Apache-2.0"
] | 326 | 2019-12-20T04:04:41.000Z | 2020-09-30T10:42:43.000Z | examples/apps/kinesis-analytics-process-kpl-record/aws_kinesis_agg/__init__.py | eugeniosu/serverless-application-model | d93e15232a1921fa51667389d83aeabbf1ff72d3 | [
"Apache-2.0"
] | 18 | 2019-10-09T23:27:48.000Z | 2021-06-25T15:18:24.000Z | examples/apps/kinesis-analytics-process-kpl-record/aws_kinesis_agg/__init__.py | Mattlk13/serverless-application-model | 27b5934de46c42d47ba1484d5432310cac694b25 | [
"Apache-2.0"
] | 220 | 2020-10-02T06:12:18.000Z | 2022-03-31T13:15:21.000Z | #Kinesis Aggregation/Deaggregation Libraries for Python
#
#Copyright 2014, Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
#Licensed under the Amazon Software License (the "License").
#You may not use this file except in compliance with the License.
#A copy of the License is located at
#
# http://aws.amazon... | 36.346154 | 87 | 0.783069 | 142 | 945 | 5.169014 | 0.676056 | 0.081744 | 0.032698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024155 | 0.12381 | 945 | 25 | 88 | 37.8 | 0.862319 | 0.849735 | 0 | 0 | 0 | 0 | 0.130081 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7817c2c8865e7170d9c9b957ca7af98ff6a1de9f | 713 | py | Python | up.py | Chupachu/LocMaker | db4c2f40e5d502b94ce13124aba41e7d02decad8 | [
"Unlicense"
] | null | null | null | up.py | Chupachu/LocMaker | db4c2f40e5d502b94ce13124aba41e7d02decad8 | [
"Unlicense"
] | null | null | null | up.py | Chupachu/LocMaker | db4c2f40e5d502b94ce13124aba41e7d02decad8 | [
"Unlicense"
] | null | null | null | import os
import sys
import shutil
from io import BytesIO
from functools import wraps
from textwrap import dedent
from random import choice, shuffle
from collections import defaultdict
import urllib.request
required = ["locmaker.py","locmaker_README.txt","Run.cmd"]
for item in required:
print('Downloading '+ite... | 28.52 | 71 | 0.712482 | 93 | 713 | 5.451613 | 0.505376 | 0.076923 | 0.035503 | 0.09073 | 0.382643 | 0.382643 | 0.382643 | 0.382643 | 0.382643 | 0.382643 | 0 | 0 | 0.154278 | 713 | 25 | 72 | 28.52 | 0.840796 | 0 | 0 | 0.3 | 0 | 0 | 0.27591 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.45 | 0 | 0.45 | 0.1 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
7818df39d6e74c84e48e1d78acdf4ae2fd43105a | 11,194 | py | Python | RcTorch/old_backprop_code.py | blindedjoy/RcTorch | 5582cf829d2ee2b10dba80b125e44d47aee27f82 | [
"MIT"
] | 3 | 2021-05-28T14:55:18.000Z | 2022-01-18T08:38:11.000Z | RcTorch/old_backprop_code.py | blindedjoy/RcTorch | 5582cf829d2ee2b10dba80b125e44d47aee27f82 | [
"MIT"
] | 1 | 2021-05-07T13:47:59.000Z | 2021-05-07T13:47:59.000Z | RcTorch/old_backprop_code.py | blindedjoy/RcTorch | 5582cf829d2ee2b10dba80b125e44d47aee27f82 | [
"MIT"
] | 1 | 2021-10-21T08:13:26.000Z | 2021-10-21T08:13:26.000Z | else:
#+++++++++++++++++++++++++++++++ backprop +++++++++++++++++++++++++++++++
trainable_parameters = []
trainable_parameters = []
for p in self.parameters():
if p.requires_grad:
trainable_parameters.append(p)
... | 44.776 | 167 | 0.414061 | 1,078 | 11,194 | 4.097403 | 0.191095 | 0.03396 | 0.027168 | 0.013584 | 0.200815 | 0.135839 | 0.11501 | 0.09237 | 0.077428 | 0.062033 | 0 | 0.007952 | 0.483205 | 11,194 | 250 | 168 | 44.776 | 0.755575 | 0.130874 | 0 | 0.161905 | 0 | 0 | 0.025331 | 0 | 0 | 0 | 0 | 0 | 0.038095 | 0 | null | null | 0.009524 | 0 | null | null | 0.028571 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
781949aaf37e3ba1cfce78d362ae194c0ab17f9c | 2,557 | py | Python | Crawler/src/parser/test_parser.py | cam626/RPEye-Link-Analysis | ebb89dd75731b11354ad7af63dc3f1319d3f4133 | [
"MIT"
] | 2 | 2019-01-25T22:07:34.000Z | 2019-02-24T23:04:17.000Z | Crawler/src/parser/test_parser.py | cam626/RPEye-Link-Analysis | ebb89dd75731b11354ad7af63dc3f1319d3f4133 | [
"MIT"
] | 2 | 2019-01-25T22:11:33.000Z | 2019-01-25T22:14:44.000Z | Crawler/src/parser/test_parser.py | cam626/RPEye-Link-Analysis | ebb89dd75731b11354ad7af63dc3f1319d3f4133 | [
"MIT"
] | null | null | null | '''
This contains tests for the parse and get_bad_paths methods.
'''
import unittest
import parser
class TestParser(unittest.TestCase):
'''
This contains tests for the parse and get_bad_paths methods.
'''
def test_empty(self):
''' Parse an empty string.'''
self.assertEqual(par... | 44.086207 | 429 | 0.619867 | 319 | 2,557 | 4.833856 | 0.376176 | 0.045396 | 0.136187 | 0.101167 | 0.420882 | 0.373541 | 0.212711 | 0.115435 | 0.063554 | 0.063554 | 0 | 0.003822 | 0.181463 | 2,557 | 57 | 430 | 44.859649 | 0.732919 | 0.202972 | 0 | 0 | 0 | 0 | 0.33282 | 0.021572 | 0 | 0 | 0 | 0 | 0.37037 | 1 | 0.37037 | false | 0 | 0.074074 | 0 | 0.481481 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
781be4d92018b5e666c6239500b54ac7073dbd5e | 7,746 | py | Python | PyCTBN/PyCTBN/utility/json_importer.py | pietroepis/PyCTBN | 33e4cb5bd7dd68e3e272edfccb016806dd227deb | [
"MIT"
] | 1 | 2021-07-06T12:59:32.000Z | 2021-07-06T12:59:32.000Z | PyCTBN/PyCTBN/utility/json_importer.py | pietroepis/PyCTBN | 33e4cb5bd7dd68e3e272edfccb016806dd227deb | [
"MIT"
] | 1 | 2021-07-21T06:44:33.000Z | 2021-07-21T06:44:33.000Z | PyCTBN/PyCTBN/utility/json_importer.py | philipMartini/CTBN_Project | 235c85c8fad8a85f1243dac8162dda60bf45291b | [
"MIT"
] | 4 | 2021-03-10T10:16:10.000Z | 2021-05-12T12:36:27.000Z |
# License: MIT License
import json
import typing
import pandas as pd
from .abstract_importer import AbstractImporter
class JsonImporter(AbstractImporter):
"""Implements the abstracts methods of AbstractImporter and adds all the necessary methods to process and prepare
the data in json extension.
:pa... | 40.984127 | 118 | 0.670281 | 1,066 | 7,746 | 4.64728 | 0.161351 | 0.055107 | 0.028866 | 0.021195 | 0.338514 | 0.245862 | 0.202261 | 0.174808 | 0.148971 | 0.148971 | 0 | 0.000864 | 0.253292 | 7,746 | 188 | 119 | 41.202128 | 0.855636 | 0.469274 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.21875 | 0.015625 | 0.578125 | 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 | 1 | 0 | 0 | 1 |
781f683caa4629794126117630e3c503ba6ece29 | 489 | py | Python | portal/migrations/0007_project_access_personnel.py | eugenechia95/Project-Document-Submission-Portal | d2534564f0aac7ad3896739719b5e86d4f719eef | [
"Apache-2.0"
] | 1 | 2019-03-06T07:56:44.000Z | 2019-03-06T07:56:44.000Z | portal/migrations/0007_project_access_personnel.py | eugenechia95/Project-Document-Submission-Portal | d2534564f0aac7ad3896739719b5e86d4f719eef | [
"Apache-2.0"
] | null | null | null | portal/migrations/0007_project_access_personnel.py | eugenechia95/Project-Document-Submission-Portal | d2534564f0aac7ad3896739719b5e86d4f719eef | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.0.7 on 2018-08-08 03:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('auth', '0009_alter_user_last_name_max_length'),
('portal', '0006_remove_project_personnel'),
]
operations = [
migrations.AddField(
... | 24.45 | 81 | 0.627812 | 55 | 489 | 5.381818 | 0.781818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062842 | 0.251534 | 489 | 19 | 82 | 25.736842 | 0.745902 | 0.092025 | 0 | 0 | 1 | 0 | 0.244344 | 0.147059 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.307692 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
78219f1ea5ad39ec1c4ca52478f1bc8722268e91 | 1,699 | py | Python | tests/test_discretize.py | Arzik1987/wittgenstein | 8378f58f17382a862f5839dcafa756dd2bc84c18 | [
"MIT"
] | 64 | 2019-02-28T08:45:19.000Z | 2022-03-19T21:48:10.000Z | tests/test_discretize.py | Arzik1987/wittgenstein | 8378f58f17382a862f5839dcafa756dd2bc84c18 | [
"MIT"
] | 18 | 2019-03-07T09:12:34.000Z | 2022-01-31T17:05:45.000Z | tests/test_discretize.py | Arzik1987/wittgenstein | 8378f58f17382a862f5839dcafa756dd2bc84c18 | [
"MIT"
] | 17 | 2019-03-15T09:58:43.000Z | 2022-03-16T17:59:42.000Z | import pandas as pd
import pytest
from wittgenstein.discretize import BinTransformer
def test_bin_ranges_are_flush():
df = pd.read_csv("credit.csv")
bin_transformer_ = BinTransformer()
bin_transformer_.fit(df)
for feat, bins in bin_transformer_.bins_.items():
prev_ceil = None
for bin ... | 31.462963 | 63 | 0.686286 | 236 | 1,699 | 4.567797 | 0.258475 | 0.233766 | 0.037106 | 0.05102 | 0.59833 | 0.575139 | 0.422078 | 0.396104 | 0.396104 | 0.308905 | 0 | 0.005232 | 0.212478 | 1,699 | 53 | 64 | 32.056604 | 0.800448 | 0 | 0 | 0.44186 | 0 | 0 | 0.033549 | 0 | 0 | 0 | 0 | 0 | 0.139535 | 1 | 0.116279 | false | 0 | 0.069767 | 0 | 0.186047 | 0 | 0 | 0 | 0 | null | 1 | 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 | 0 | 1 |
7822090af65d48243b386578fbb3475dd5e1e0a1 | 2,490 | py | Python | geocoder/geolytica.py | termim/geocoder | b7b7d0b383716c3ccf6535ee47424cd7ccfa4eaa | [
"MIT"
] | 1,506 | 2015-01-04T22:35:09.000Z | 2022-03-30T17:10:20.000Z | geocoder/geolytica.py | termim/geocoder | b7b7d0b383716c3ccf6535ee47424cd7ccfa4eaa | [
"MIT"
] | 317 | 2015-01-01T00:36:20.000Z | 2021-11-11T14:58:18.000Z | geocoder/geolytica.py | termim/geocoder | b7b7d0b383716c3ccf6535ee47424cd7ccfa4eaa | [
"MIT"
] | 339 | 2015-01-29T14:03:18.000Z | 2022-03-31T15:59:53.000Z | #!/usr/bin/python
# coding: utf8
from __future__ import absolute_import
import logging
from geocoder.base import OneResult, MultipleResultsQuery
class GeolyticaResult(OneResult):
def __init__(self, json_content):
# create safe shortcuts
self._standard = json_content.get('standard', {})
... | 25.151515 | 88 | 0.587952 | 271 | 2,490 | 5.228782 | 0.387454 | 0.062103 | 0.0494 | 0.062103 | 0.070572 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006593 | 0.269076 | 2,490 | 98 | 89 | 25.408163 | 0.771978 | 0.078313 | 0 | 0.123077 | 0 | 0 | 0.097518 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.169231 | false | 0 | 0.046154 | 0.092308 | 0.507692 | 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 | 1 | 0 | 0 | 1 |
7829f5a446aab5a7d434cb14aa3377a0f28674dd | 30,418 | py | Python | src/ks33requests/schemas/s3_sub.py | tanbro/ks33requests | b86fcded23beeb3b32ec0b7b0c6855394b26033d | [
"Apache-2.0"
] | 1 | 2021-08-30T03:31:45.000Z | 2021-08-30T03:31:45.000Z | src/ks33requests/schemas/s3_sub.py | tanbro/ks33requests | b86fcded23beeb3b32ec0b7b0c6855394b26033d | [
"Apache-2.0"
] | 1 | 2019-06-27T02:42:26.000Z | 2019-06-27T02:42:26.000Z | src/ks33requests/schemas/s3_sub.py | tanbro/ks33requests | b86fcded23beeb3b32ec0b7b0c6855394b26033d | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#
# Generated Mon Jun 10 11:49:52 2019 by generateDS.py version 2.32.0.
# Python 3.6.7 (default, Oct 22 2018, 11:32:17) [GCC 8.2.0]
#
# Command line options:
# ('-f', '')
# ('-o', 's3_api.py')
# ('-s', 's3_sub.py')
# ('--super', 's3_api')
#
# Command line arguments:
# schemas/AmazonS3.... | 32.12038 | 120 | 0.737622 | 2,618 | 30,418 | 8.283804 | 0.144385 | 0.021303 | 0.033476 | 0.022871 | 0.262139 | 0.229354 | 0.212662 | 0.17914 | 0.176096 | 0.15009 | 0 | 0.003143 | 0.173713 | 30,418 | 946 | 121 | 32.154334 | 0.859712 | 0.096719 | 0 | 0.201422 | 1 | 0 | 0.012127 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.175355 | false | 0.00237 | 0.018957 | 0 | 0.364929 | 0.007109 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
782dec90728dfd727cd2edd0d8e29deee41125fa | 6,726 | py | Python | lib/googlecloudsdk/core/cli.py | IsaacHuang/google-cloud-sdk | 52afa5d1a75dff08f4f5380c5cccc015bf796ca5 | [
"Apache-2.0"
] | null | null | null | lib/googlecloudsdk/core/cli.py | IsaacHuang/google-cloud-sdk | 52afa5d1a75dff08f4f5380c5cccc015bf796ca5 | [
"Apache-2.0"
] | null | null | null | lib/googlecloudsdk/core/cli.py | IsaacHuang/google-cloud-sdk | 52afa5d1a75dff08f4f5380c5cccc015bf796ca5 | [
"Apache-2.0"
] | null | null | null | # Copyright 2013 Google Inc. All Rights Reserved.
"""A module to make it easy to set up and run CLIs in the Cloud SDK."""
import os.path
import subprocess
import sys
import httplib2
from oauth2client import client
from googlecloudsdk.calliope import cli as calliope
from googlecloudsdk.core import config
from googl... | 31.429907 | 79 | 0.703092 | 947 | 6,726 | 4.919747 | 0.318902 | 0.015025 | 0.018888 | 0.019747 | 0.073621 | 0.023181 | 0.023181 | 0.023181 | 0.023181 | 0.023181 | 0 | 0.004973 | 0.222718 | 6,726 | 213 | 80 | 31.577465 | 0.88619 | 0.048766 | 0 | 0.096386 | 0 | 0 | 0.119986 | 0.008645 | 0 | 0 | 0 | 0.004695 | 0 | 0 | null | null | 0 | 0.120482 | null | null | 0.012048 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
783840ec2e39cb9d8feb7015f495b5913b312c93 | 1,124 | py | Python | pddm/envs/fetch/__init__.py | Ray006/PDDM_FetchEnv | be4aa001ba24107de5f5d8e1291c019abd4e2a58 | [
"Apache-2.0"
] | null | null | null | pddm/envs/fetch/__init__.py | Ray006/PDDM_FetchEnv | be4aa001ba24107de5f5d8e1291c019abd4e2a58 | [
"Apache-2.0"
] | null | null | null | pddm/envs/fetch/__init__.py | Ray006/PDDM_FetchEnv | be4aa001ba24107de5f5d8e1291c019abd4e2a58 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# 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 writing, ... | 27.414634 | 74 | 0.746441 | 162 | 1,124 | 5.067901 | 0.574074 | 0.073082 | 0.058465 | 0.077954 | 0.227771 | 0.227771 | 0.105968 | 0 | 0 | 0 | 0 | 0.021142 | 0.158363 | 1,124 | 40 | 75 | 28.1 | 0.846723 | 0.487544 | 0 | 0.380952 | 0 | 0 | 0.399287 | 0.315508 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.047619 | 0 | 0.047619 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
783b6f43c72486617347f287f788f794510adffd | 2,124 | py | Python | JSONtemplate.py | JacobParrott/OccultationProfiler | f537555d44239e29bbba69c83d2413eec14f9c88 | [
"MIT"
] | 4 | 2020-02-27T16:12:48.000Z | 2021-09-24T12:08:02.000Z | JSONtemplate.py | JacobParrott/Occultation-Geometry-Analyser | f537555d44239e29bbba69c83d2413eec14f9c88 | [
"MIT"
] | null | null | null | JSONtemplate.py | JacobParrott/Occultation-Geometry-Analyser | f537555d44239e29bbba69c83d2413eec14f9c88 | [
"MIT"
] | null | null | null | #FORM A TEMPLATE JSON FILE
# Profile begining
JSONstart = '''
{
"version": "1.0",
"name": "Occultation Profile",
"items": [
'''
# empty string required to grow from
JSONiterated = ''
# this one has the comma on it. lenght of profile adjust the iteration count of this
JSONiterable = '''
{
"name": "Profile Iter... | 18.153846 | 85 | 0.440207 | 202 | 2,124 | 4.628713 | 0.490099 | 0.025668 | 0.025668 | 0.025668 | 0.517647 | 0.459893 | 0.459893 | 0.459893 | 0.459893 | 0.459893 | 0 | 0.108761 | 0.376648 | 2,124 | 117 | 86 | 18.153846 | 0.597432 | 0.114878 | 0 | 0.561905 | 0 | 0 | 0.95629 | 0.02452 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
783cee4430d146973f3a068d97a3c0dc63f89fac | 1,791 | py | Python | primes.py | chapman-phys220-2018f/cw04-ben-jessica | f12ad6b3e1806d953199e5f7a289ca3d09787a3a | [
"MIT"
] | null | null | null | primes.py | chapman-phys220-2018f/cw04-ben-jessica | f12ad6b3e1806d953199e5f7a289ca3d09787a3a | [
"MIT"
] | null | null | null | primes.py | chapman-phys220-2018f/cw04-ben-jessica | f12ad6b3e1806d953199e5f7a289ca3d09787a3a | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import primes
# Jessica Trawick
# trawick@chapman.edu
# 2300326
# Phys 220
# Cw04
###
# Name: Benjamin Seeley
# Student ID: 2262810
# Email: seele105@mail.chapman.edu
# Course: PHYS220/MATH220/CPSC220 Fall 2018
# Assignment: CW03
###
"""primes.py Test Module
Verifies t... | 23.565789 | 74 | 0.610274 | 263 | 1,791 | 4.13308 | 0.547529 | 0.022999 | 0.038638 | 0.045998 | 0.220791 | 0.180313 | 0.180313 | 0.180313 | 0.180313 | 0.086477 | 0 | 0.147416 | 0.265215 | 1,791 | 75 | 75 | 23.88 | 0.678571 | 0.131212 | 0 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 0 | null | null | 0 | 0.037037 | null | null | 0.037037 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
784d623b780c3ca9bd71fb6a1c5a844e13ec2038 | 8,518 | py | Python | Discord Bots/Meme6-BOT/cogs/money.py | LUNA761/Code-Archive | c455ca1b4faa230fbbd86c4222c1589ddb0df964 | [
"MIT"
] | 1 | 2021-10-04T08:30:04.000Z | 2021-10-04T08:30:04.000Z | Discord Bots/Meme6-BOT/cogs/money.py | LUNA761/Code-Archive | c455ca1b4faa230fbbd86c4222c1589ddb0df964 | [
"MIT"
] | null | null | null | Discord Bots/Meme6-BOT/cogs/money.py | LUNA761/Code-Archive | c455ca1b4faa230fbbd86c4222c1589ddb0df964 | [
"MIT"
] | 2 | 2022-01-06T19:07:19.000Z | 2022-01-07T14:52:15.000Z | import discord, time, os, praw, random, json
from discord.ext import commands, tasks
from discord.ext.commands import has_permissions, MissingPermissions
from discord.utils import get
from itertools import cycle
import datetime as dt
from datetime import datetime
done3 = []
beg_lim_users = []
timers = {}
done = []
s... | 34.626016 | 113 | 0.491665 | 1,015 | 8,518 | 4.017734 | 0.197044 | 0.041197 | 0.041197 | 0.061795 | 0.50515 | 0.456842 | 0.396027 | 0.380334 | 0.373713 | 0.360716 | 0 | 0.014414 | 0.372857 | 8,518 | 245 | 114 | 34.767347 | 0.748783 | 0 | 0 | 0.482456 | 0 | 0 | 0.12726 | 0.015027 | 0 | 0 | 0.001878 | 0 | 0 | 1 | 0.008772 | false | 0.087719 | 0.030702 | 0 | 0.061404 | 0.004386 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7851f951a267f139cae2d0667effcb91e25e5d70 | 1,238 | py | Python | cride/circles/migrations/0004_auto_20200525_1916.py | mariogonzcardona/platzi-cride | 40da9489de8339816dcb18db59f46daa851f6236 | [
"MIT"
] | null | null | null | cride/circles/migrations/0004_auto_20200525_1916.py | mariogonzcardona/platzi-cride | 40da9489de8339816dcb18db59f46daa851f6236 | [
"MIT"
] | 1 | 2020-05-28T18:31:48.000Z | 2020-05-28T18:31:48.000Z | cride/circles/migrations/0004_auto_20200525_1916.py | mariogonzcardona/platzi-cride | 40da9489de8339816dcb18db59f46daa851f6236 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.10 on 2020-05-25 19:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('circles', '0003_auto_20200525_1531'),
]
operations = [
migrations.RemoveField(
model_name='membership',
name='is_Ac... | 32.578947 | 162 | 0.612278 | 123 | 1,238 | 6.02439 | 0.536585 | 0.060729 | 0.128205 | 0.155196 | 0.408907 | 0.406208 | 0 | 0 | 0 | 0 | 0 | 0.038331 | 0.283522 | 1,238 | 37 | 163 | 33.459459 | 0.797069 | 0.037157 | 0 | 0.483871 | 1 | 0 | 0.243697 | 0.036975 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.032258 | 0 | 0.129032 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7853471f0ceee28508be9f848e6888dbc19d2ae6 | 1,801 | py | Python | saveauth.py | jimfenton/notif-notifier | 1a33b0339f2d7264f6d6d5e2e515d3bf1de4e027 | [
"MIT"
] | null | null | null | saveauth.py | jimfenton/notif-notifier | 1a33b0339f2d7264f6d6d5e2e515d3bf1de4e027 | [
"MIT"
] | null | null | null | saveauth.py | jimfenton/notif-notifier | 1a33b0339f2d7264f6d6d5e2e515d3bf1de4e027 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# saveauth.py - Save notif address for use by clockwatcherd
#
# Copyright (c) 2015 Jim Fenton
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, includi... | 30.525424 | 79 | 0.726818 | 273 | 1,801 | 4.78022 | 0.56044 | 0.067433 | 0.019923 | 0.021456 | 0.042912 | 0.042912 | 0.042912 | 0.042912 | 0 | 0 | 0 | 0.012032 | 0.16935 | 1,801 | 58 | 80 | 31.051724 | 0.860294 | 0.624653 | 0 | 0.153846 | 0 | 0 | 0.518405 | 0.092025 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.038462 | null | null | 0.384615 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7853aff004524ad55597f78e60a2e607be2818f2 | 2,129 | py | Python | Module2/Day15/module2_day_15_dictionaries.py | sydneybeal/100DaysPython | d1b004bd27a0644983f3af100172f394ee039f30 | [
"MIT"
] | 2 | 2019-06-02T12:17:18.000Z | 2019-07-12T16:55:55.000Z | Module2/Day15/module2_day_15_dictionaries.py | sydneybeal/100DaysPython | d1b004bd27a0644983f3af100172f394ee039f30 | [
"MIT"
] | null | null | null | Module2/Day15/module2_day_15_dictionaries.py | sydneybeal/100DaysPython | d1b004bd27a0644983f3af100172f394ee039f30 | [
"MIT"
] | null | null | null | """
Author: <REPLACE>
Project: 100DaysPython
File: module1_day15_dictionaries.py
Creation Date: <REPLACE>
Description: <REPLACE>
"""
conversion = {"a": 1, "b": 2, "c": 3, "d": 4, "e": 5}
print(conversion)
print(conversion["a"])
menu = {"item1": ["egg", "spam", "bacon"]... | 27.294872 | 68 | 0.631752 | 286 | 2,129 | 4.597902 | 0.314685 | 0.082129 | 0.068441 | 0.068441 | 0.244106 | 0.2327 | 0.173384 | 0.053232 | 0.053232 | 0 | 0 | 0.032027 | 0.149366 | 2,129 | 78 | 69 | 27.294872 | 0.694092 | 0.155472 | 0 | 0.098039 | 0 | 0 | 0.212224 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.54902 | 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 | 1 | 0 | 1 |
785638ac9da37d65274cfc95ab61953c9cd6527e | 2,043 | py | Python | quantum_compiler/drawing.py | Debskij/QuantumCompiler | a1502d6d7ad13eac54e261cd59ecfb43db2cd9a2 | [
"MIT"
] | 2 | 2021-05-18T09:58:06.000Z | 2021-05-21T08:40:08.000Z | quantum_compiler/drawing.py | Debskij/QuantumCompiler | a1502d6d7ad13eac54e261cd59ecfb43db2cd9a2 | [
"MIT"
] | 1 | 2021-04-16T11:38:09.000Z | 2021-04-16T11:38:09.000Z | quantum_compiler/drawing.py | Debskij/QuantumCompiler | a1502d6d7ad13eac54e261cd59ecfb43db2cd9a2 | [
"MIT"
] | null | null | null | import matplotlib.pyplot
import typing
def draw_axes() -> None:
"""Draw axes on the plane."""
points = [[1.2, 0], [0, 1.2], [-1.2, 0], [0, -1.2]] # dummy points for zooming out
arrows = [[1.1, 0], [0, 1.1], [-1.1, 0], [0, -1.1]] # coordinates for the axes
for p in points:
matplotlib.pyplot.p... | 34.05 | 104 | 0.612824 | 332 | 2,043 | 3.722892 | 0.25 | 0.220065 | 0.097087 | 0.067961 | 0.320388 | 0.283172 | 0.263754 | 0.210356 | 0.169903 | 0.169903 | 0 | 0.069767 | 0.221243 | 2,043 | 59 | 105 | 34.627119 | 0.707102 | 0.285854 | 0 | 0 | 0 | 0 | 0.020714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121212 | false | 0 | 0.060606 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 1 | 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 | 0 | 1 |
785a74187912c75ab599f595cb19c7715bb434ed | 347 | py | Python | 0004-Median-of-Two-Sorted-Arrays.py | Sax-Ted/Practicing-with-Leetcode | 51701e128d8233d2df7fcbce34eff1b1435133e6 | [
"MIT"
] | null | null | null | 0004-Median-of-Two-Sorted-Arrays.py | Sax-Ted/Practicing-with-Leetcode | 51701e128d8233d2df7fcbce34eff1b1435133e6 | [
"MIT"
] | null | null | null | 0004-Median-of-Two-Sorted-Arrays.py | Sax-Ted/Practicing-with-Leetcode | 51701e128d8233d2df7fcbce34eff1b1435133e6 | [
"MIT"
] | null | null | null | import math
class Solution:
def findMedianSortedArrays(self, nums1: List[int], nums2: List[int]) -> float:
data = nums1 + nums2
data = sorted(data)
if len(data) % 2 != 0:
return data[math.ceil(len(data)/2) - 1]
else:
return (data[int(len(data) / 2 - 1)] + dat... | 31.545455 | 82 | 0.544669 | 47 | 347 | 4.021277 | 0.468085 | 0.148148 | 0.169312 | 0.095238 | 0.15873 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049383 | 0.299712 | 347 | 10 | 83 | 34.7 | 0.728395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.555556 | 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 | 1 | 0 | 0 | 1 |
785af8a35b12625f0fe92ee18984c46a9328aca6 | 2,378 | py | Python | test/example_3nu_vacuum_coeffs.py | mbustama/NuOscProbExact | 76c816e75a995fbeeb98b0249a7b9e03769aa12b | [
"MIT"
] | 14 | 2019-04-30T01:40:45.000Z | 2022-03-23T05:00:13.000Z | test/example_3nu_vacuum_coeffs.py | mbustama/NuOscProbExact | 76c816e75a995fbeeb98b0249a7b9e03769aa12b | [
"MIT"
] | 1 | 2022-03-11T14:33:03.000Z | 2022-03-11T14:33:03.000Z | test/example_3nu_vacuum_coeffs.py | mbustama/NuOscProbExact | 76c816e75a995fbeeb98b0249a7b9e03769aa12b | [
"MIT"
] | 9 | 2019-04-30T16:47:25.000Z | 2022-03-23T05:00:19.000Z | # -*- coding: utf-8 -*-
r"""Run the vacuum coefficients 3nu example shown in README.md.
Runs the three-neutrino example of coefficients for oscillations in
vacuum shown in README.md
References
----------
.. [1] Mauricio Bustamante, "Exact neutrino oscillation probabilities:
a fast general-purpose computation meth... | 30.101266 | 79 | 0.571909 | 298 | 2,378 | 4.35906 | 0.409396 | 0.055427 | 0.020015 | 0.023095 | 0.069284 | 0.050808 | 0.050808 | 0.050808 | 0.050808 | 0 | 0 | 0.075044 | 0.277124 | 2,378 | 78 | 80 | 30.487179 | 0.680628 | 0.197225 | 0 | 0.039216 | 0 | 0 | 0.117895 | 0.011053 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.117647 | 0.45098 | 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 | 1 | 0 | 1 |
787485379192d954732d9d3ee065aaa5e878ac45 | 2,216 | py | Python | ex18-cose_and_bulls.py | lew18/practicepython.org-mysolutions | 99f70c2663f8a23355e04cc2502736f233661bc9 | [
"MIT"
] | null | null | null | ex18-cose_and_bulls.py | lew18/practicepython.org-mysolutions | 99f70c2663f8a23355e04cc2502736f233661bc9 | [
"MIT"
] | null | null | null | ex18-cose_and_bulls.py | lew18/practicepython.org-mysolutions | 99f70c2663f8a23355e04cc2502736f233661bc9 | [
"MIT"
] | null | null | null | """
https://www.practicepython.org
Exercise 18: Cows and Bulls
3 chilis
Create a program that will play the “cows and bulls” game with the user.
The game works like this:
Randomly generate a 4-digit number. Ask the user to guess a 4-digit number.
For every digit that the user guessed correctly in the correct place, ... | 25.767442 | 75 | 0.586643 | 338 | 2,216 | 3.807692 | 0.366864 | 0.048951 | 0.037296 | 0.02331 | 0.133644 | 0.104118 | 0.060606 | 0.060606 | 0.060606 | 0.060606 | 0 | 0.060606 | 0.30009 | 2,216 | 85 | 76 | 26.070588 | 0.769181 | 0.408845 | 0 | 0.1 | 1 | 0 | 0.123846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.025 | 0.025 | 0.15 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7877af587b47300abda14360763fcdc238bce5c4 | 727 | py | Python | zopeskel/plone25_buildout.py | jean/ZopeSkel | c9084f30aa03c2b36411bce5c75b9b85ccbabb2f | [
"MIT"
] | 1 | 2021-05-31T13:51:43.000Z | 2021-05-31T13:51:43.000Z | zopeskel/plone25_buildout.py | jean/ZopeSkel | c9084f30aa03c2b36411bce5c75b9b85ccbabb2f | [
"MIT"
] | null | null | null | zopeskel/plone25_buildout.py | jean/ZopeSkel | c9084f30aa03c2b36411bce5c75b9b85ccbabb2f | [
"MIT"
] | null | null | null | import copy
from zopeskel.plone3_buildout import Plone3Buildout
from zopeskel.base import get_var
class Plone25Buildout(Plone3Buildout):
_template_dir = 'templates/plone2.5_buildout'
summary = "A buildout for Plone 2.5 projects"
help = """
This template creates a buildout for Plone 2.5, appropriate for
dev... | 33.045455 | 66 | 0.734525 | 103 | 727 | 5.067961 | 0.640777 | 0.011494 | 0.045977 | 0.065134 | 0.072797 | 0.072797 | 0 | 0 | 0 | 0 | 0 | 0.028523 | 0.180193 | 727 | 21 | 67 | 34.619048 | 0.847315 | 0.166437 | 0 | 0 | 0 | 0 | 0.425249 | 0.044851 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 1 |
787bb2f12e57cf5d613ac309152e15085b0c1262 | 2,992 | py | Python | bcs-ui/backend/bcs_web/apis/permissions.py | kayinli/bk-bcs | 93a0856175f7b066ef835921572c1cac590dbd8e | [
"Apache-2.0"
] | null | null | null | bcs-ui/backend/bcs_web/apis/permissions.py | kayinli/bk-bcs | 93a0856175f7b066ef835921572c1cac590dbd8e | [
"Apache-2.0"
] | null | null | null | bcs-ui/backend/bcs_web/apis/permissions.py | kayinli/bk-bcs | 93a0856175f7b066ef835921572c1cac590dbd8e | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community
Edition) available.
Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in co... | 33.244444 | 115 | 0.704211 | 377 | 2,992 | 5.387268 | 0.374005 | 0.113737 | 0.047267 | 0.054161 | 0.35352 | 0.305761 | 0.258986 | 0.221566 | 0.221566 | 0.221566 | 0 | 0.004764 | 0.228275 | 2,992 | 89 | 116 | 33.617978 | 0.874838 | 0.248663 | 0 | 0.470588 | 0 | 0 | 0.035347 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078431 | false | 0.019608 | 0.137255 | 0 | 0.54902 | 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 | 1 | 0 | 0 | 1 |
787be7e9e915b183f7e123fda5d39b714f2975e7 | 707 | py | Python | model/embedding/bert.py | 0xflotus/BERT-pytorch | 8136337dafe4c3b3ebe6b5f2a29ef0555e539ed0 | [
"Apache-2.0"
] | 1 | 2018-10-18T00:43:54.000Z | 2018-10-18T00:43:54.000Z | model/embedding/bert.py | 0xflotus/BERT-pytorch | 8136337dafe4c3b3ebe6b5f2a29ef0555e539ed0 | [
"Apache-2.0"
] | null | null | null | model/embedding/bert.py | 0xflotus/BERT-pytorch | 8136337dafe4c3b3ebe6b5f2a29ef0555e539ed0 | [
"Apache-2.0"
] | null | null | null | import torch.nn as nn
from .token import TokenEmbedding
from .position import PositionalEmbedding
from .segment import SegmentEmbedding
class BERTEmbedding(nn.Module):
def __init__(self, vocab_size, embed_size, dropout=0.1):
super().__init__()
self.token = TokenEmbedding(vocab_size=vocab_size, emb... | 39.277778 | 86 | 0.739745 | 88 | 707 | 5.727273 | 0.363636 | 0.071429 | 0.077381 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003384 | 0.164074 | 707 | 17 | 87 | 41.588235 | 0.849408 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 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 | 1 | 0 | 0 | 1 |
78867c04961c1f65909221783b4c46740c35705b | 586 | py | Python | workflow/setup.py | isciences/wsim | 1f35dbf065e72a4aaed31eeabc08d9e18e71366b | [
"Apache-2.0"
] | 5 | 2018-05-31T19:56:41.000Z | 2022-02-09T13:04:18.000Z | workflow/setup.py | isciences/wsim | 1f35dbf065e72a4aaed31eeabc08d9e18e71366b | [
"Apache-2.0"
] | null | null | null | workflow/setup.py | isciences/wsim | 1f35dbf065e72a4aaed31eeabc08d9e18e71366b | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# Import setuptools if we have it (so we can use ./setup.py develop)
# but stick with distutils if we don't (so we can install it without
# needing tools outside of the standard library)
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
n... | 24.416667 | 68 | 0.680887 | 80 | 586 | 4.9125 | 0.675 | 0.122137 | 0.035623 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006494 | 0.211604 | 586 | 23 | 69 | 25.478261 | 0.844156 | 0.34471 | 0 | 0 | 0 | 0 | 0.357895 | 0.123684 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1875 | 0 | 0.1875 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
78892b6c043f8e1a68f108be4da8d9b3dc2e6a46 | 1,913 | py | Python | tests/mep/genetics/test_population.py | paulfjacobs/py-mep | da418a10f0c13537560c91b05b699c433076f314 | [
"MIT"
] | 2 | 2017-04-01T01:50:18.000Z | 2018-05-03T11:29:48.000Z | tests/mep/genetics/test_population.py | paulfjacobs/py-mep | da418a10f0c13537560c91b05b699c433076f314 | [
"MIT"
] | null | null | null | tests/mep/genetics/test_population.py | paulfjacobs/py-mep | da418a10f0c13537560c91b05b699c433076f314 | [
"MIT"
] | null | null | null | import unittest
import random
import numpy as np
from mep.genetics.population import Population
from mep.genetics.chromosome import Chromosome
class TestPopulation(unittest.TestCase):
"""
Test the Population class.
"""
def test_random_tournament_selection(self):
"""
Test the random_to... | 36.788462 | 96 | 0.668061 | 220 | 1,913 | 5.627273 | 0.25 | 0.019386 | 0.024233 | 0.025848 | 0.741519 | 0.668821 | 0.668821 | 0.668821 | 0.668821 | 0.668821 | 0 | 0.018608 | 0.241505 | 1,913 | 52 | 97 | 36.788462 | 0.834597 | 0.239415 | 0 | 0.592593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.074074 | false | 0 | 0.185185 | 0 | 0.296296 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 0 | 1 |
788cf45281af8abf33f8f55839919e9e65ab957e | 549 | py | Python | webapp/views/access/forms.py | nwallin1/ezEML | e854f81496339ededa90b4864632b345512db40d | [
"Apache-2.0"
] | 3 | 2020-10-06T18:47:30.000Z | 2021-01-04T23:44:15.000Z | webapp/views/access/forms.py | nwallin1/ezEML | e854f81496339ededa90b4864632b345512db40d | [
"Apache-2.0"
] | 45 | 2020-09-14T19:20:49.000Z | 2022-03-01T02:25:58.000Z | webapp/views/access/forms.py | nwallin1/ezEML | e854f81496339ededa90b4864632b345512db40d | [
"Apache-2.0"
] | 3 | 2020-12-21T19:35:36.000Z | 2021-11-08T19:18:19.000Z | from wtforms import (
StringField, SelectField, HiddenField
)
from webapp.home.forms import EDIForm
class AccessSelectForm(EDIForm):
pass
class AccessForm(EDIForm):
userid = StringField('User ID', validators=[])
permission = SelectField('Permission',
choices=[("all", "a... | 24.954545 | 134 | 0.63388 | 53 | 549 | 6.528302 | 0.622642 | 0.046243 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00232 | 0.214936 | 549 | 21 | 135 | 26.142857 | 0.800464 | 0.145719 | 0 | 0 | 0 | 0 | 0.163441 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.083333 | 0.166667 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
78a0206fc82ecc39b76db07b108da5026be27f64 | 45,813 | py | Python | sheetsync/__init__.py | guykisel/SheetSync | b6fa15f14320c2ae4fec88747f1f311dcabbac7b | [
"MIT"
] | 1 | 2017-03-30T17:38:06.000Z | 2017-03-30T17:38:06.000Z | sheetsync/__init__.py | guykisel/SheetSync | b6fa15f14320c2ae4fec88747f1f311dcabbac7b | [
"MIT"
] | null | null | null | sheetsync/__init__.py | guykisel/SheetSync | b6fa15f14320c2ae4fec88747f1f311dcabbac7b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
sheetsync
~~~~~~~~~
A library to synchronize data with a google spreadsheet, with support for:
- Creating new spreadsheets. Including by copying template sheets.
- Call-back functions when rows are added/updated/deleted.
- Protected columns.
... | 41.347473 | 129 | 0.561522 | 5,404 | 45,813 | 4.571614 | 0.128238 | 0.014896 | 0.017486 | 0.012953 | 0.229468 | 0.17033 | 0.12965 | 0.107913 | 0.081198 | 0.069217 | 0 | 0.004771 | 0.359439 | 45,813 | 1,107 | 130 | 41.384824 | 0.837082 | 0.08347 | 0 | 0.261314 | 0 | 0.00146 | 0.074903 | 0.006836 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.008759 | 0.016058 | null | null | 0.00438 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
78b0619f065dc002efababad9aafd776f2d4ca25 | 1,609 | py | Python | apps/Servers/data_tables_views.py | ulibn/BlueXolo | 2560593fdb5a26fe90c65aa711a8eb6db96d03f1 | [
"Apache-2.0"
] | 21 | 2018-12-05T16:16:58.000Z | 2021-10-07T22:51:26.000Z | apps/Servers/data_tables_views.py | ulibn/BlueXolo | 2560593fdb5a26fe90c65aa711a8eb6db96d03f1 | [
"Apache-2.0"
] | 437 | 2018-12-11T19:36:38.000Z | 2022-02-04T16:28:14.000Z | apps/Servers/data_tables_views.py | ulibn/BlueXolo | 2560593fdb5a26fe90c65aa711a8eb6db96d03f1 | [
"Apache-2.0"
] | 29 | 2019-01-24T16:46:33.000Z | 2021-12-21T06:45:50.000Z | from django.contrib.auth.mixins import LoginRequiredMixin
from django.db.models import Q
from django_datatables_view.base_datatable_view import BaseDatatableView
from apps.Servers.models import TemplateServer, ServerProfile, Parameters
class ServerTemplatesListJson(LoginRequiredMixin, BaseDatatableView):
model =... | 31.54902 | 73 | 0.651958 | 169 | 1,609 | 6.053254 | 0.295858 | 0.064516 | 0.086022 | 0.093842 | 0.488759 | 0.434018 | 0.434018 | 0.434018 | 0.434018 | 0.434018 | 0 | 0.007389 | 0.243008 | 1,609 | 50 | 74 | 32.18 | 0.832512 | 0 | 0 | 0.55 | 0 | 0 | 0.083903 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075 | false | 0 | 0.1 | 0 | 0.625 | 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 | 1 | 0 | 0 | 1 |
78b296968fc3f116e67c26a0f71c03a4627a2706 | 347 | py | Python | src/utils/config.py | rachelkberryman/flower_detection | 195f93521f00e90089feebc9de8ec87d40849ed7 | [
"MIT"
] | 1 | 2021-07-06T09:42:24.000Z | 2021-07-06T09:42:24.000Z | src/utils/config.py | rachelkberryman/flower_detection | 195f93521f00e90089feebc9de8ec87d40849ed7 | [
"MIT"
] | null | null | null | src/utils/config.py | rachelkberryman/flower_detection | 195f93521f00e90089feebc9de8ec87d40849ed7 | [
"MIT"
] | 1 | 2021-05-20T21:04:02.000Z | 2021-05-20T21:04:02.000Z | # %% Packages
import json
from dotmap import DotMap
# %% Functions
def get_config_from_json(json_file):
with open(json_file, "r") as config_file:
config_dict = json.load(config_file)
config = DotMap(config_dict)
return config
def process_config(json_file):
config = get_config_from_json(js... | 17.35 | 45 | 0.720461 | 49 | 347 | 4.795918 | 0.367347 | 0.13617 | 0.110638 | 0.144681 | 0.212766 | 0.212766 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198847 | 347 | 19 | 46 | 18.263158 | 0.845324 | 0.069164 | 0 | 0.2 | 0 | 0 | 0.003125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 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 | 1 | 0 | 0 | 1 |
78b43546b82c167e8d13faae12a061ae04bd85a8 | 4,670 | py | Python | microserver.py | ronrest/model_nanny | f2c0290e162e949def635dd37c98587e219fb99e | [
"Apache-2.0"
] | null | null | null | microserver.py | ronrest/model_nanny | f2c0290e162e949def635dd37c98587e219fb99e | [
"Apache-2.0"
] | null | null | null | microserver.py | ronrest/model_nanny | f2c0290e162e949def635dd37c98587e219fb99e | [
"Apache-2.0"
] | null | null | null | """
TODO: Add description of this script
TODO: Add license
"""
from __future__ import print_function, division, unicode_literals
import os
import pickle
from flask import Flask
from flask import render_template, url_for
app = Flask(__name__)
# SETTINGS
VALIDATION_METRIC = "valid_acc"
TRAIN_METRIC = "train_acc... | 37.063492 | 103 | 0.623126 | 627 | 4,670 | 4.494418 | 0.366826 | 0.041519 | 0.018453 | 0.017033 | 0.14159 | 0.094393 | 0.07665 | 0.066714 | 0.066714 | 0.066714 | 0 | 0.004179 | 0.282655 | 4,670 | 125 | 104 | 37.36 | 0.837015 | 0.337687 | 0 | 0.130435 | 0 | 0 | 0.129806 | 0 | 0 | 0 | 0 | 0.024 | 0 | 1 | 0.086957 | false | 0 | 0.072464 | 0 | 0.289855 | 0.072464 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
78b7e1e07c1dfd50e0f11c209b42ff0a4ca41e64 | 2,103 | py | Python | pommermanLearn/models/pommer_q_embedding_rnn.py | FrankPfirmann/playground | 9379cbfd57d98eadcaf7b00d777434490a536540 | [
"Apache-2.0"
] | null | null | null | pommermanLearn/models/pommer_q_embedding_rnn.py | FrankPfirmann/playground | 9379cbfd57d98eadcaf7b00d777434490a536540 | [
"Apache-2.0"
] | null | null | null | pommermanLearn/models/pommer_q_embedding_rnn.py | FrankPfirmann/playground | 9379cbfd57d98eadcaf7b00d777434490a536540 | [
"Apache-2.0"
] | 2 | 2021-12-01T12:03:50.000Z | 2022-03-22T16:37:34.000Z | from typing import Callable
import numpy as np
import torch
import torch.nn as nn
from util.data import transform_observation
class PommerQEmbeddingRNN(nn.Module):
def __init__(self, embedding_model):
super(PommerQEmbeddingRNN, self).__init__()
self.embedding_model = embedding_model
self.... | 30.926471 | 105 | 0.589158 | 255 | 2,103 | 4.74902 | 0.396078 | 0.049546 | 0.046243 | 0.047069 | 0.061107 | 0.061107 | 0.061107 | 0.061107 | 0 | 0 | 0 | 0.011019 | 0.309558 | 2,103 | 68 | 106 | 30.926471 | 0.823003 | 0.214456 | 0 | 0 | 0 | 0 | 0.001886 | 0 | 0 | 0 | 0 | 0.014706 | 0 | 1 | 0.097561 | false | 0 | 0.121951 | 0 | 0.317073 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
78b8edc8e2a0e473482302d768cc95e049abac84 | 261 | py | Python | expense/__version__.py | mahasak/bearlord | eec6ceb9e484e9f9fbaf58b311a190ff20f771f5 | [
"CC0-1.0"
] | null | null | null | expense/__version__.py | mahasak/bearlord | eec6ceb9e484e9f9fbaf58b311a190ff20f771f5 | [
"CC0-1.0"
] | 7 | 2020-10-08T13:35:43.000Z | 2020-10-09T09:54:15.000Z | expense/__version__.py | mahasak/bearlord | eec6ceb9e484e9f9fbaf58b311a190ff20f771f5 | [
"CC0-1.0"
] | null | null | null | __version__ = "0.0.1"
__name__ = "expense-tracker"
__description__ = "Python API Wrapper for the Airtable API"
__author__ = "Max Pijittum"
__authoremail__ = "maahsak@gmail.com"
__license__ = "The MIT License (MIT)"
__copyright__ = "Copyright 2020 Max Pijittum"
| 32.625 | 59 | 0.762452 | 32 | 261 | 5.34375 | 0.75 | 0.128655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030837 | 0.130268 | 261 | 7 | 60 | 37.285714 | 0.722467 | 0 | 0 | 0 | 0 | 0 | 0.521073 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.