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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1b5ae15c5f93d6a5c129b200254b544ee0bfa0ee | 1,577 | py | Python | setup.py | ilkka/nap | 3ea7b41ef6b24b7e127bc87bb010d8a8bb18a4bd | [
"MIT"
] | 31 | 2015-02-11T22:36:26.000Z | 2019-03-26T17:00:36.000Z | setup.py | ilkka/nap | 3ea7b41ef6b24b7e127bc87bb010d8a8bb18a4bd | [
"MIT"
] | 6 | 2015-11-16T13:29:34.000Z | 2019-10-28T13:37:57.000Z | setup.py | ilkka/nap | 3ea7b41ef6b24b7e127bc87bb010d8a8bb18a4bd | [
"MIT"
] | 11 | 2015-04-15T00:09:08.000Z | 2020-08-25T13:50:21.000Z | #!/usr/bin/env python
from pip.req import parse_requirements
# parse_requirements() returns generator of pip.req.InstallRequirement objects
install_reqs = parse_requirements('requirements.txt')
# reqs is a list of requirement
# e.g. ['django==1.5.1', 'mezzanine==1.4.6']
reqs = [str(ir.req) for ir in install_reqs]
... | 28.160714 | 78 | 0.641725 | 182 | 1,577 | 5.483516 | 0.549451 | 0.152305 | 0.200401 | 0.104208 | 0.116232 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017857 | 0.21877 | 1,577 | 55 | 79 | 28.672727 | 0.792208 | 0.1078 | 0 | 0.047619 | 0 | 0 | 0.487527 | 0.017106 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.095238 | 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 |
1b62a0d4ec377c212288a73dec2ea0b7124e85ec | 659 | py | Python | examples/notiltangle.py | jckw/Adafruit_LSM9DS0 | 98ff135fbf1702160a9277df1fd637022f91e234 | [
"MIT"
] | 6 | 2017-11-14T07:21:58.000Z | 2018-08-24T03:47:58.000Z | examples/notiltangle.py | jckw/Adafruit_LSM9DS0 | 98ff135fbf1702160a9277df1fd637022f91e234 | [
"MIT"
] | null | null | null | examples/notiltangle.py | jckw/Adafruit_LSM9DS0 | 98ff135fbf1702160a9277df1fd637022f91e234 | [
"MIT"
] | 2 | 2017-09-26T16:57:16.000Z | 2018-12-06T12:33:11.000Z | # Simple example whereby the angle is calculated, assuming the magnetometer is flat,
# i.e. there is no tilt-compensation.
# Author: Jack Weatherilt
# License: Public Domain
import math
import time
# Import the LSM9DS0 module
import Adafruit_LSM9DS0
# Create new LSM9DS0 instance
imu = Adafruit_LSM9DS0.LSM9DS0()
whil... | 21.258065 | 84 | 0.743551 | 100 | 659 | 4.81 | 0.66 | 0.033264 | 0.029106 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025594 | 0.169954 | 659 | 30 | 85 | 21.966667 | 0.853748 | 0.582701 | 0 | 0 | 0 | 0 | 0.054264 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 |
1b730a1ad9ad1fa78cb7e47435bcdc5ea1daee8d | 1,279 | py | Python | lab01/authserver/lab01_authserver/client_test.py | Boris-Barboris/rsoi | 30b03f50549f7977d5ecb7788b8e22b789f8859f | [
"MIT"
] | null | null | null | lab01/authserver/lab01_authserver/client_test.py | Boris-Barboris/rsoi | 30b03f50549f7977d5ecb7788b8e22b789f8859f | [
"MIT"
] | null | null | null | lab01/authserver/lab01_authserver/client_test.py | Boris-Barboris/rsoi | 30b03f50549f7977d5ecb7788b8e22b789f8859f | [
"MIT"
] | null | null | null | #!/usr/bin/python3
from lab01_authserver_app.oauthclient import *
import json
import requests
import time
import requests
import logging
import http.client
http.client.HTTPConnection.debuglevel = 1
logging.basicConfig()
logging.getLogger().setLevel(logging.DEBUG)
requests_log = logging.getLogger("requests.packages... | 27.804348 | 91 | 0.702893 | 174 | 1,279 | 5.103448 | 0.350575 | 0.060811 | 0.047297 | 0.027027 | 0.386261 | 0.246622 | 0.246622 | 0.246622 | 0.246622 | 0.137387 | 0 | 0.01468 | 0.094605 | 1,279 | 45 | 92 | 28.422222 | 0.752159 | 0.099296 | 0 | 0.30303 | 0 | 0 | 0.271777 | 0.021777 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.060606 | 0.212121 | 0 | 0.212121 | 0.393939 | 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 |
1b7b00a69a0d287e97e0ec900905293bcb8524cc | 1,973 | py | Python | tests/regressiontests/get_or_create_regress/models.py | huicheese/Django-test3 | ac11d2dce245b48392e52d1f4acfd5e7433b243e | [
"BSD-3-Clause"
] | 23 | 2015-01-26T12:16:59.000Z | 2022-02-10T10:58:40.000Z | tests/regressiontests/get_or_create_regress/models.py | joetyson/django | c3699190186561d5c216b2a77ecbfc487d42a734 | [
"BSD-3-Clause"
] | 1 | 2018-01-03T15:26:49.000Z | 2018-01-03T15:26:49.000Z | tests/regressiontests/get_or_create_regress/models.py | joetyson/django | c3699190186561d5c216b2a77ecbfc487d42a734 | [
"BSD-3-Clause"
] | 30 | 2015-03-25T19:40:07.000Z | 2021-05-28T22:59:26.000Z | from django.db import models
class Publisher(models.Model):
name = models.CharField(max_length=100)
class Author(models.Model):
name = models.CharField(max_length=100)
class Book(models.Model):
name = models.CharField(max_length=100)
authors = models.ManyToManyField(Author, related_name='books')
... | 21.445652 | 74 | 0.706031 | 297 | 1,973 | 4.606061 | 0.252525 | 0.05848 | 0.064327 | 0.065789 | 0.432018 | 0.415936 | 0.415936 | 0.323099 | 0.292398 | 0.223684 | 0 | 0.010766 | 0.15256 | 1,973 | 91 | 75 | 21.681319 | 0.807416 | 0 | 0 | 0.357143 | 0 | 0 | 0.798277 | 0.151039 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.014286 | 0 | 0.128571 | 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 |
1b7cb10575222f004342449819d9940438677034 | 3,613 | py | Python | python_files/generate_figures/7.2_Perturbations.py | TiKeil/Masterthesis-LOD | 03c1c6748a0464165a666bd9f4f933bc8e4f233b | [
"Apache-2.0"
] | null | null | null | python_files/generate_figures/7.2_Perturbations.py | TiKeil/Masterthesis-LOD | 03c1c6748a0464165a666bd9f4f933bc8e4f233b | [
"Apache-2.0"
] | null | null | null | python_files/generate_figures/7.2_Perturbations.py | TiKeil/Masterthesis-LOD | 03c1c6748a0464165a666bd9f4f933bc8e4f233b | [
"Apache-2.0"
] | 1 | 2020-03-30T08:49:13.000Z | 2020-03-30T08:49:13.000Z | # This file is part of the master thesis "Variational crimes in the Localized orthogonal decomposition method":
# https://github.com/TiKeil/Masterthesis-LOD.git
# Copyright holder: Tim Keil
# License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
import numpy as np
import buildcoef2d
import m... | 39.703297 | 111 | 0.4124 | 272 | 3,613 | 5.477941 | 0.503676 | 0.020134 | 0.026175 | 0.030872 | 0.036242 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034183 | 0.522281 | 3,613 | 91 | 112 | 39.703297 | 0.829085 | 0.166897 | 0 | 0.088235 | 0 | 0 | 0.004695 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.058824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
1b7d3e825fb41006762ca249a60864707434a95c | 516 | py | Python | entertainment_tonight/migrations/0003_event_upload_photo.py | ashleyf1996/OOP_Web_Application_Assignment3 | 5c398bf282e8decefaac2ff54a5ec50aff3ab32f | [
"MIT"
] | null | null | null | entertainment_tonight/migrations/0003_event_upload_photo.py | ashleyf1996/OOP_Web_Application_Assignment3 | 5c398bf282e8decefaac2ff54a5ec50aff3ab32f | [
"MIT"
] | null | null | null | entertainment_tonight/migrations/0003_event_upload_photo.py | ashleyf1996/OOP_Web_Application_Assignment3 | 5c398bf282e8decefaac2ff54a5ec50aff3ab32f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-04-06 20:39
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('entertainment_tonight', '0002_auto_20170321_1517'),
]
operations = [
migrat... | 23.454545 | 62 | 0.629845 | 57 | 516 | 5.473684 | 0.824561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096859 | 0.25969 | 516 | 21 | 63 | 24.571429 | 0.719895 | 0.131783 | 0 | 0 | 1 | 0 | 0.137079 | 0.098876 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.357143 | 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 |
1b850dbfb0c60c1aeafce298fa429a15013488c3 | 20,047 | py | Python | PassPY0.2Win.py | IvaldiS6/PassPYWin | 25ffc73392166fd85a8590866c5b65fd0aece72c | [
"MIT"
] | null | null | null | PassPY0.2Win.py | IvaldiS6/PassPYWin | 25ffc73392166fd85a8590866c5b65fd0aece72c | [
"MIT"
] | 1 | 2021-09-15T20:02:36.000Z | 2021-09-15T20:02:36.000Z | PassPY0.2Win.py | IvaldiS6/PassPYWin | 25ffc73392166fd85a8590866c5b65fd0aece72c | [
"MIT"
] | 1 | 2021-09-15T21:49:40.000Z | 2021-09-15T21:49:40.000Z | import codecs
import os
import os.path
import string
import random
from random import shuffle
import csv
import time
import hashlib
import struct
import binascii
from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes
DefaultSize = "mode con: cols=100 lines=20"
os.system(DefaultSize)
pre = "C:\Pr... | 42.562633 | 284 | 0.521874 | 2,222 | 20,047 | 4.636814 | 0.142214 | 0.042706 | 0.031059 | 0.018441 | 0.591866 | 0.559158 | 0.532563 | 0.527128 | 0.522372 | 0.504028 | 0 | 0.020117 | 0.350327 | 20,047 | 470 | 285 | 42.653191 | 0.770961 | 0.019953 | 0 | 0.590047 | 0 | 0.021327 | 0.207701 | 0.013395 | 0 | 0 | 0.002139 | 0 | 0 | 1 | 0.028436 | false | 0.104265 | 0.028436 | 0 | 0.056872 | 0.061611 | 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 |
1b87d6becc53e7c2b04088a17b003a62df6d1a55 | 291 | py | Python | cloudtunes-server/cloudtunes/async.py | skymemoryGit/cloudtunes | 424bf59e05663b0df20e16ddbd119eb39f6a729b | [
"BSD-3-Clause"
] | 529 | 2015-01-01T04:59:12.000Z | 2022-03-31T16:09:38.000Z | cloudtunes-server/cloudtunes/async.py | skymemoryGit/cloudtunes | 424bf59e05663b0df20e16ddbd119eb39f6a729b | [
"BSD-3-Clause"
] | 21 | 2015-01-13T15:41:15.000Z | 2021-11-06T20:56:40.000Z | cloudtunes-server/cloudtunes/async.py | skymemoryGit/cloudtunes | 424bf59e05663b0df20e16ddbd119eb39f6a729b | [
"BSD-3-Clause"
] | 116 | 2015-01-04T22:12:56.000Z | 2022-02-23T11:43:01.000Z | """Asynchronous MongoDB and Redis connections."""
from functools import partial
import motor
import tornadoredis
from cloudtunes import settings
RedisClient = partial(tornadoredis.Client, **settings.REDIS)
mongo = motor.MotorClient(**settings.MONGODB).cloudtunes
redis = RedisClient()
| 19.4 | 60 | 0.797251 | 31 | 291 | 7.483871 | 0.548387 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113402 | 291 | 14 | 61 | 20.785714 | 0.899225 | 0.147766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
1b89f8f65882ad931575298d75654e28396d40ac | 1,541 | py | Python | scripts/convert_ts_model_to_onnx.py | SakodaShintaro/Miacis | af3508076660cc6e19186f17fa436499e32164f5 | [
"BSD-3-Clause"
] | 10 | 2019-05-14T12:54:49.000Z | 2022-02-28T12:02:52.000Z | scripts/convert_ts_model_to_onnx.py | SakodaShintaro/Miacis | af3508076660cc6e19186f17fa436499e32164f5 | [
"BSD-3-Clause"
] | null | null | null | scripts/convert_ts_model_to_onnx.py | SakodaShintaro/Miacis | af3508076660cc6e19186f17fa436499e32164f5 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
import os
from generate_cnn_model import *
from generate_transformer_model import *
parser = argparse.ArgumentParser()
parser.add_argument("model_path", type=str)
parser.add_argument("--batch_size", type=int, default=128)
args = parser.parse_args()
input_channel_num = 42
board_size = 9
policy_c... | 31.44898 | 95 | 0.704737 | 216 | 1,541 | 4.722222 | 0.314815 | 0.166667 | 0.076471 | 0.090196 | 0.260784 | 0.260784 | 0.233333 | 0.233333 | 0.198039 | 0.198039 | 0 | 0.007905 | 0.179104 | 1,541 | 48 | 96 | 32.104167 | 0.798419 | 0.013628 | 0 | 0.108108 | 1 | 0 | 0.082949 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.081081 | 0 | 0.081081 | 0.054054 | 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 |
1b8cff6c78d91bb987bc3e4d6107a012b36bc8af | 2,092 | py | Python | utils/configs.py | realeu/ImgBB-Bot | 8e71df093e41690f815051636c91815f2db08ec2 | [
"MIT"
] | null | null | null | utils/configs.py | realeu/ImgBB-Bot | 8e71df093e41690f815051636c91815f2db08ec2 | [
"MIT"
] | null | null | null | utils/configs.py | realeu/ImgBB-Bot | 8e71df093e41690f815051636c91815f2db08ec2 | [
"MIT"
] | null | null | null | import os
import time
class Var(object):
# Get a bot token from botfather
BOT_TOKEN = os.environ.get("BOT_TOKEN", "")
# Get from my.telegram.org
API_ID = int(os.environ.get("API_ID", 12345))
# Get from my.telegram.org
API_HASH = os.environ.get("API_HASH", "")
# To record start time of... | 31.69697 | 267 | 0.672084 | 325 | 2,092 | 4.326154 | 0.501538 | 0.038407 | 0.051209 | 0.032006 | 0.194879 | 0.170697 | 0.13798 | 0.073969 | 0.073969 | 0.073969 | 0 | 0.025671 | 0.180688 | 2,092 | 65 | 268 | 32.184615 | 0.783547 | 0.076004 | 0 | 0.058824 | 0 | 0.117647 | 0.721847 | 0.033731 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.558824 | 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 |
1b8fc5e29f8f56408c4c25c653cdf874f3bd78ff | 1,685 | py | Python | exifGPSimplant.py | Bahrd/AppliedPythonology | 65d7bd665eba823c3319c3efdc5a5047ddfa534d | [
"MIT"
] | 4 | 2019-10-11T07:39:49.000Z | 2022-03-01T23:18:57.000Z | exifGPSimplant.py | Bahrd/AppliedPythonology | 65d7bd665eba823c3319c3efdc5a5047ddfa534d | [
"MIT"
] | null | null | null | exifGPSimplant.py | Bahrd/AppliedPythonology | 65d7bd665eba823c3319c3efdc5a5047ddfa534d | [
"MIT"
] | null | null | null | ## EXIF GPS tags hand-crafted modification ('autografts')...
from exif import Image
from sys import argv as names
from math import floor
def dd_GPS_dms(coordinate):
latlonitude = float(coordinate)
degrees = floor(latlonitude)
residuum = (latlonitude - degrees) * 60
minutes = floor(residuum)
second... | 33.039216 | 107 | 0.695549 | 314 | 1,685 | 3.818471 | 0.535032 | 0.025021 | 0.020017 | 0.038365 | 0.038365 | 0.038365 | 0.038365 | 0.038365 | 0.038365 | 0.038365 | 0 | 0.136812 | 0.158457 | 1,685 | 50 | 108 | 33.7 | 0.67842 | 0.511573 | 0 | 0 | 0 | 0 | 0.088972 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.136364 | 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 |
1b937dd883ff8de284f496b4a8959a68bb61e4f0 | 5,802 | py | Python | infra_validation_engine/infra_tests/components/docker.py | WLCG-Lightweight-Sites/simple_grid_infra_validation_engine | ad1eca7ffe0337f276f0ef9e0c89c80c1070139b | [
"Apache-2.0"
] | 1 | 2020-03-01T12:25:33.000Z | 2020-03-01T12:25:33.000Z | infra_validation_engine/infra_tests/components/docker.py | simple-framework/simple_grid_infra_validation_engine | ad1eca7ffe0337f276f0ef9e0c89c80c1070139b | [
"Apache-2.0"
] | 14 | 2019-11-07T14:36:16.000Z | 2020-10-01T17:04:33.000Z | infra_validation_engine/infra_tests/components/docker.py | simple-framework/simple_grid_infra_validation_engine | ad1eca7ffe0337f276f0ef9e0c89c80c1070139b | [
"Apache-2.0"
] | 1 | 2019-11-07T15:14:21.000Z | 2019-11-07T15:14:21.000Z | # coding: utf-8
# 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, software
# dist... | 34.535714 | 120 | 0.586867 | 657 | 5,802 | 5.062405 | 0.252664 | 0.021648 | 0.036079 | 0.030667 | 0.341551 | 0.226999 | 0.185809 | 0.146723 | 0.146723 | 0.129284 | 0 | 0.003299 | 0.320751 | 5,802 | 167 | 121 | 34.742515 | 0.84065 | 0.118235 | 0 | 0.326733 | 0 | 0 | 0.155125 | 0 | 0.009901 | 0 | 0 | 0 | 0 | 0 | null | null | 0.029703 | 0.029703 | null | null | 0.019802 | 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 |
1b9c5cc86b543fca12e20fbcf7f9c14dd78ad47e | 374 | py | Python | hipyelp/migrations/0014_rename_tagname_drinktag_drinktagname.py | buggydev1/Hip_yelp_Back | f80407d898d267465e5cfbf7f73905b776e91b43 | [
"MIT"
] | null | null | null | hipyelp/migrations/0014_rename_tagname_drinktag_drinktagname.py | buggydev1/Hip_yelp_Back | f80407d898d267465e5cfbf7f73905b776e91b43 | [
"MIT"
] | null | null | null | hipyelp/migrations/0014_rename_tagname_drinktag_drinktagname.py | buggydev1/Hip_yelp_Back | f80407d898d267465e5cfbf7f73905b776e91b43 | [
"MIT"
] | 2 | 2021-04-22T14:42:57.000Z | 2021-05-18T01:11:58.000Z | # Generated by Django 3.2 on 2021-04-25 02:49
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('hipyelp', '0013_alter_drinktag_tagname'),
]
operations = [
migrations.RenameField(
model_name='drinktag',
old_name='tagName',
... | 19.684211 | 51 | 0.59893 | 38 | 374 | 5.736842 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068182 | 0.294118 | 374 | 18 | 52 | 20.777778 | 0.757576 | 0.114973 | 0 | 0 | 1 | 0 | 0.18541 | 0.082067 | 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 |
1ba1f83792d3dfefb74bfb86f0f1b1667d473d05 | 542 | py | Python | webapp/models/req_error_log.py | myfreshcity/mystock | 3a8832e8c498128683b6af528da92d7fda32386d | [
"MIT"
] | 2 | 2016-09-19T09:18:17.000Z | 2022-02-16T14:55:51.000Z | webapp/models/req_error_log.py | myfreshcity/mystock | 3a8832e8c498128683b6af528da92d7fda32386d | [
"MIT"
] | 2 | 2020-04-29T13:01:45.000Z | 2020-04-29T13:01:45.000Z | webapp/models/req_error_log.py | myfreshcity/mystock | 3a8832e8c498128683b6af528da92d7fda32386d | [
"MIT"
] | 2 | 2018-06-29T15:09:36.000Z | 2019-09-05T09:26:06.000Z | from datetime import datetime
from webapp.services import db
class ReqErrorLog(db.Model):
__tablename__ = 'req_error_log'
id = db.Column(db.Integer, primary_key=True)
action = db.Column(db.String(50))
key = db.Column(db.String(255))
msg = db.Column(db.String(2000))
created_time = db.Column(d... | 23.565217 | 63 | 0.653137 | 75 | 542 | 4.506667 | 0.466667 | 0.118343 | 0.147929 | 0.142012 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021429 | 0.225092 | 542 | 22 | 64 | 24.636364 | 0.783333 | 0 | 0 | 0 | 0 | 0 | 0.053604 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.133333 | 0.066667 | 0.8 | 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 |
1ba5d06c5362ae2cf5a563053ad286ea87461d19 | 632 | py | Python | frappe-bench/apps/erpnext/erpnext/buying/doctype/supplier_scorecard_standing/supplier_scorecard_standing.py | Semicheche/foa_frappe_docker | a186b65d5e807dd4caf049e8aeb3620a799c1225 | [
"MIT"
] | 1 | 2021-04-29T14:55:29.000Z | 2021-04-29T14:55:29.000Z | frappe-bench/apps/erpnext/erpnext/buying/doctype/supplier_scorecard_standing/supplier_scorecard_standing.py | Semicheche/foa_frappe_docker | a186b65d5e807dd4caf049e8aeb3620a799c1225 | [
"MIT"
] | null | null | null | frappe-bench/apps/erpnext/erpnext/buying/doctype/supplier_scorecard_standing/supplier_scorecard_standing.py | Semicheche/foa_frappe_docker | a186b65d5e807dd4caf049e8aeb3620a799c1225 | [
"MIT"
] | 1 | 2021-04-29T14:39:01.000Z | 2021-04-29T14:39:01.000Z | # -*- coding: utf-8 -*-
# Copyright (c) 2017, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
class SupplierScorecardStanding(Document):
pass
@frappe.whitelist()
def get... | 21.793103 | 72 | 0.761076 | 78 | 632 | 6 | 0.615385 | 0.064103 | 0.076923 | 0.089744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011029 | 0.139241 | 632 | 29 | 73 | 21.793103 | 0.849265 | 0.21519 | 0 | 0.111111 | 0 | 0 | 0.192698 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.055556 | 0.166667 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1baabd5bd4355d53876aed7f693222e894bfb08a | 5,524 | py | Python | backend/hqlib/metric_source/issue_log/jira_action_list.py | ICTU/quality-report | f6234e112228ee7cfe6476c2d709fe244579bcfe | [
"Apache-2.0"
] | 25 | 2016-11-25T10:41:24.000Z | 2021-07-03T14:02:49.000Z | backend/hqlib/metric_source/issue_log/jira_action_list.py | ICTU/quality-report | f6234e112228ee7cfe6476c2d709fe244579bcfe | [
"Apache-2.0"
] | 783 | 2016-09-19T12:10:21.000Z | 2021-01-04T20:39:15.000Z | backend/hqlib/metric_source/issue_log/jira_action_list.py | ICTU/quality-report | f6234e112228ee7cfe6476c2d709fe244579bcfe | [
"Apache-2.0"
] | 15 | 2015-03-25T13:52:49.000Z | 2021-03-08T17:17:56.000Z | """
Copyright 2012-2019 Ministerie van Sociale Zaken en Werkgelegenheid
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... | 48.884956 | 120 | 0.696235 | 765 | 5,524 | 4.741176 | 0.24183 | 0.076096 | 0.06617 | 0.041908 | 0.402537 | 0.365591 | 0.349876 | 0.318445 | 0.298042 | 0.298042 | 0 | 0.006868 | 0.209269 | 5,524 | 112 | 121 | 49.321429 | 0.823489 | 0.176503 | 0 | 0.242857 | 0 | 0 | 0.039172 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.185714 | false | 0.028571 | 0.114286 | 0.028571 | 0.542857 | 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 |
1baea6433c91aefdeee1385fa3f02122e8c0dac4 | 598 | py | Python | v2x_solution/car/admin.py | Michaelwwgo/V2X_Project | d26f476329dd7f6083e9275e01e2748d38918afc | [
"MIT"
] | 1 | 2021-02-03T08:15:59.000Z | 2021-02-03T08:15:59.000Z | v2x_solution/car/admin.py | Michaelwwgo/V2X_Project | d26f476329dd7f6083e9275e01e2748d38918afc | [
"MIT"
] | null | null | null | v2x_solution/car/admin.py | Michaelwwgo/V2X_Project | d26f476329dd7f6083e9275e01e2748d38918afc | [
"MIT"
] | null | null | null | from django.contrib import admin
from . import models
@admin.register(models.Car)
class CarAdmin(admin.ModelAdmin):
list_display = (
'number',
'isFind',
'created_at',
'updated_at',
)
@admin.register(models.CriminalCar)
class CriminalCarAdmin(admin.ModelAdmin):
list_display ... | 19.933333 | 41 | 0.583612 | 57 | 598 | 5.964912 | 0.438596 | 0.114706 | 0.167647 | 0.229412 | 0.217647 | 0.217647 | 0.217647 | 0 | 0 | 0 | 0 | 0 | 0.287625 | 598 | 30 | 42 | 19.933333 | 0.798122 | 0 | 0 | 0.407407 | 0 | 0 | 0.158598 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.074074 | 0 | 0.296296 | 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 |
1bb742a4023e045284504065668d9a075bf310a7 | 3,806 | py | Python | ziggurat_foundations/ext/pyramid/sign_in.py | fmigneault/ziggurat_foundations | c4eaac1d3e0d1a5dc09e1a3450e6c6631b701c0d | [
"BSD-3-Clause"
] | null | null | null | ziggurat_foundations/ext/pyramid/sign_in.py | fmigneault/ziggurat_foundations | c4eaac1d3e0d1a5dc09e1a3450e6c6631b701c0d | [
"BSD-3-Clause"
] | null | null | null | ziggurat_foundations/ext/pyramid/sign_in.py | fmigneault/ziggurat_foundations | c4eaac1d3e0d1a5dc09e1a3450e6c6631b701c0d | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import importlib
import logging
import pyramid.security
from ziggurat_foundations.models.base import get_db_session
from ziggurat_foundations.models.services.user import UserService
CONFIG_KEY = "ziggurat_foundations"
log = logging.getLogger(__name__)
... | 30.448 | 87 | 0.672097 | 447 | 3,806 | 5.364653 | 0.228188 | 0.056714 | 0.067139 | 0.033361 | 0.382819 | 0.323186 | 0.183486 | 0.161802 | 0.095913 | 0.095913 | 0 | 0.001037 | 0.239622 | 3,806 | 124 | 88 | 30.693548 | 0.827574 | 0.016553 | 0 | 0.1875 | 0 | 0 | 0.069251 | 0.052941 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.052083 | 0.072917 | 0.041667 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1bbe66e627f5fbbe75b9f195c03efc8b24413bf8 | 489 | py | Python | solutions/2019/prob_15.py | PolPtoAmo/HPCodeWarsBCN | 8a98b1feb6d8b7d2d5b8b4dace3e02af9e6bb4e8 | [
"MIT"
] | 1 | 2021-02-27T09:46:06.000Z | 2021-02-27T09:46:06.000Z | solutions/2019/prob_15.py | PolPtoAmo/HPCodeWarsBCN | 8a98b1feb6d8b7d2d5b8b4dace3e02af9e6bb4e8 | [
"MIT"
] | null | null | null | solutions/2019/prob_15.py | PolPtoAmo/HPCodeWarsBCN | 8a98b1feb6d8b7d2d5b8b4dace3e02af9e6bb4e8 | [
"MIT"
] | 1 | 2021-02-27T12:03:33.000Z | 2021-02-27T12:03:33.000Z | entrada = input()
def fibonacci(n):
fib = [0, 1, 1]
if n > 0 and n <= 2:
return fib[1]
elif n == 0:
return fib[0]
else:
for x in range(3, n+1):
fib.append(0)
fib[x] = fib[x-1] + fib[x-2]
return fib[n]
numeros = entrada.split(' ')
numeros = l... | 19.56 | 73 | 0.503067 | 71 | 489 | 3.464789 | 0.380282 | 0.195122 | 0.308943 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050147 | 0.306748 | 489 | 24 | 74 | 20.375 | 0.675516 | 0 | 0 | 0 | 0 | 0 | 0.00818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0 | 0 | 0.25 | 0.0625 | 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 |
1bbeef824c196490b52c030d0f2de427178e48b0 | 441 | py | Python | DomJudge/practica10/EsMonti.py | Camiloasc1/AlgorithmsUNAL | 1542b8f2c170f9b5a24638f05ae50fa2c85cfc7b | [
"MIT"
] | null | null | null | DomJudge/practica10/EsMonti.py | Camiloasc1/AlgorithmsUNAL | 1542b8f2c170f9b5a24638f05ae50fa2c85cfc7b | [
"MIT"
] | null | null | null | DomJudge/practica10/EsMonti.py | Camiloasc1/AlgorithmsUNAL | 1542b8f2c170f9b5a24638f05ae50fa2c85cfc7b | [
"MIT"
] | null | null | null | import sys
def isHeap(H):
for i in xrange(1, len(H)):
if H[parent(i)] > H[i]:
return False
else:
return True
def parent(i):
return (i - 1) / 2
def read():
while True:
if int(sys.stdin.readline()) == 0:
return
line = sys.stdin.readline()
... | 16.961538 | 42 | 0.46712 | 59 | 441 | 3.491525 | 0.525424 | 0.067961 | 0.15534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015038 | 0.396825 | 441 | 25 | 43 | 17.64 | 0.759399 | 0 | 0 | 0.1 | 0 | 0 | 0.011338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.05 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1bca72364354424e756eb0857899935691ba79bb | 422 | py | Python | HIS_void/patient/migrations/0007_auto_20210429_2316.py | YuanchenZhu2020/HIS_void | 7289bf537e9fc4b09750bbca76a4cc8354dc770f | [
"MIT"
] | null | null | null | HIS_void/patient/migrations/0007_auto_20210429_2316.py | YuanchenZhu2020/HIS_void | 7289bf537e9fc4b09750bbca76a4cc8354dc770f | [
"MIT"
] | null | null | null | HIS_void/patient/migrations/0007_auto_20210429_2316.py | YuanchenZhu2020/HIS_void | 7289bf537e9fc4b09750bbca76a4cc8354dc770f | [
"MIT"
] | null | null | null | # Generated by Django 3.1.7 on 2021-04-29 15:16
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('rbac', '0002_auto_20210426_2345'),
('patient', '0006_auto_20210429_1431'),
]
operations = [
migrations.RenameModel(
... | 22.210526 | 48 | 0.597156 | 41 | 422 | 5.95122 | 0.853659 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158249 | 0.296209 | 422 | 18 | 49 | 23.444444 | 0.6633 | 0.106635 | 0 | 0 | 1 | 0 | 0.27451 | 0.187675 | 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 |
1bd09b12f21d9acb607142944ec3b8ac94113d29 | 3,236 | py | Python | xero_python/payrolluk/models/timesheet_line_object.py | sromero84/xero-python | 89558c0baa8080c3f522701eb1b94f909248dbd7 | [
"MIT"
] | null | null | null | xero_python/payrolluk/models/timesheet_line_object.py | sromero84/xero-python | 89558c0baa8080c3f522701eb1b94f909248dbd7 | [
"MIT"
] | null | null | null | xero_python/payrolluk/models/timesheet_line_object.py | sromero84/xero-python | 89558c0baa8080c3f522701eb1b94f909248dbd7 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
Xero Payroll UK
This is the Xero Payroll API for orgs in the UK region. # noqa: E501
OpenAPI spec version: 2.3.4
Contact: api@xero.com
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
from xero_python.models import BaseModel
class TimesheetLineObj... | 26.096774 | 92 | 0.621755 | 343 | 3,236 | 5.758017 | 0.230321 | 0.125063 | 0.151899 | 0.132152 | 0.434937 | 0.352405 | 0.317975 | 0.112911 | 0.038481 | 0.038481 | 0 | 0.01886 | 0.295426 | 3,236 | 123 | 93 | 26.308943 | 0.847368 | 0.40204 | 0 | 0.068182 | 1 | 0 | 0.084958 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.159091 | false | 0 | 0.045455 | 0 | 0.340909 | 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 |
1bd0cba8c6f81882ac13039efa512c0dfba5b8e9 | 4,492 | py | Python | monocle/resources.py | bigjust/django-monocle | f546a9061834b41a1a701ef89f8371bfaf4f1691 | [
"MIT"
] | 1 | 2019-04-21T17:25:16.000Z | 2019-04-21T17:25:16.000Z | monocle/resources.py | bigjust/django-monocle | f546a9061834b41a1a701ef89f8371bfaf4f1691 | [
"MIT"
] | null | null | null | monocle/resources.py | bigjust/django-monocle | f546a9061834b41a1a701ef89f8371bfaf4f1691 | [
"MIT"
] | null | null | null | import json
import os
import time
from django.template import Context
from django.template.loader import get_template
from django.utils.safestring import mark_safe
from monocle.settings import settings
class Resource(object):
"""
A JSON compatible response from an OEmbed provider
"""
def __init__(s... | 32.085714 | 88 | 0.616652 | 567 | 4,492 | 4.749559 | 0.276896 | 0.035648 | 0.03342 | 0.025251 | 0.129224 | 0.129224 | 0.075009 | 0.075009 | 0.075009 | 0.040847 | 0 | 0 | 0.300089 | 4,492 | 139 | 89 | 32.316547 | 0.856552 | 0.370659 | 0 | 0.253731 | 0 | 0 | 0.036058 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.164179 | false | 0 | 0.104478 | 0.014925 | 0.507463 | 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 |
1bd33e1813ca1443a89a2ae8c80e1f64e10a3043 | 316 | py | Python | tods/sk_interface/detection_algorithm/SOD_skinterface.py | ZhuangweiKang/tods | fe3f55f8ccb306dd292c668e0f1154f1afdfa556 | [
"Apache-2.0"
] | 544 | 2020-09-21T06:02:33.000Z | 2022-03-27T07:16:32.000Z | tods/sk_interface/detection_algorithm/SOD_skinterface.py | ZhuangweiKang/tods | fe3f55f8ccb306dd292c668e0f1154f1afdfa556 | [
"Apache-2.0"
] | 35 | 2020-09-21T06:33:13.000Z | 2022-03-11T14:20:21.000Z | tods/sk_interface/detection_algorithm/SOD_skinterface.py | ZhuangweiKang/tods | fe3f55f8ccb306dd292c668e0f1154f1afdfa556 | [
"Apache-2.0"
] | 86 | 2020-09-21T16:44:33.000Z | 2022-03-11T18:20:22.000Z | import numpy as np
from ..base import BaseSKI
from tods.detection_algorithm.PyodSOD import SODPrimitive
class SODSKI(BaseSKI):
def __init__(self, **hyperparams):
super().__init__(primitive=SODPrimitive, **hyperparams)
self.fit_available = True
self.predict_available = True
self.produce_available = False
| 28.727273 | 57 | 0.787975 | 39 | 316 | 6.076923 | 0.666667 | 0.109705 | 0.14346 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123418 | 316 | 10 | 58 | 31.6 | 0.855596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
1bd36a5a050517e6c0b779b2d7a6a6b544da049f | 294 | py | Python | app/db_fill.py | justincredble/Circulation | 9c7537261a89acf737268943ab69fcb6f7d2af7f | [
"MIT"
] | null | null | null | app/db_fill.py | justincredble/Circulation | 9c7537261a89acf737268943ab69fcb6f7d2af7f | [
"MIT"
] | null | null | null | app/db_fill.py | justincredble/Circulation | 9c7537261a89acf737268943ab69fcb6f7d2af7f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from app import app, db
from app.models import User, Role
app_ctx = app.app_context()
app_ctx.push()
db.create_all()
Role.insert_roles()
admin = User(name=u'root', email='root@gmail.com', password='password')
db.session.add(admin)
db.session.commit()
app_ctx.pop()
| 17.294118 | 71 | 0.707483 | 49 | 294 | 4.122449 | 0.591837 | 0.089109 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003846 | 0.115646 | 294 | 16 | 72 | 18.375 | 0.773077 | 0.071429 | 0 | 0 | 0 | 0 | 0.095941 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.1 | 0.2 | 0 | 0.2 | 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 |
1bd98169236fadcdd2f4be3bc8f9290368ceb686 | 15,192 | py | Python | test/test_api.py | archoversight/u2fval | ec8b6b9e65f880fd609c7e9f82638696341c781f | [
"BSD-2-Clause"
] | 75 | 2015-02-10T08:33:28.000Z | 2021-11-16T21:10:56.000Z | test/test_api.py | archoversight/u2fval | ec8b6b9e65f880fd609c7e9f82638696341c781f | [
"BSD-2-Clause"
] | 39 | 2015-04-09T04:34:26.000Z | 2021-09-04T23:18:58.000Z | test/test_api.py | archoversight/u2fval | ec8b6b9e65f880fd609c7e9f82638696341c781f | [
"BSD-2-Clause"
] | 31 | 2015-02-26T08:38:29.000Z | 2022-02-17T20:03:25.000Z | from u2fval import app, exc
from u2fval.model import db, Client
from .soft_u2f_v2 import SoftU2FDevice, CERT
from six.moves.urllib.parse import quote
from cryptography import x509
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives.serialization import Encoding
import unittest
i... | 39.769634 | 79 | 0.535874 | 1,516 | 15,192 | 5.208443 | 0.103562 | 0.038121 | 0.08612 | 0.106383 | 0.739235 | 0.707953 | 0.674265 | 0.633359 | 0.619808 | 0.558384 | 0 | 0.014659 | 0.312994 | 15,192 | 381 | 80 | 39.874016 | 0.74188 | 0 | 0 | 0.584848 | 0 | 0 | 0.177001 | 0.015074 | 0 | 0 | 0 | 0 | 0.142424 | 1 | 0.069697 | false | 0 | 0.027273 | 0 | 0.106061 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 |
1bdb708dd35b54eb9305795bb23aa7f10f6fd2ff | 656 | py | Python | setup.py | suchanlee/typekit-python | 45b1d09b1934ea87b752405c6b2290ce477afa0d | [
"MIT"
] | 6 | 2016-03-17T10:56:22.000Z | 2020-09-10T02:55:19.000Z | setup.py | suchanlee/typekit-python | 45b1d09b1934ea87b752405c6b2290ce477afa0d | [
"MIT"
] | null | null | null | setup.py | suchanlee/typekit-python | 45b1d09b1934ea87b752405c6b2290ce477afa0d | [
"MIT"
] | 6 | 2015-03-13T12:11:59.000Z | 2020-05-22T20:42:36.000Z | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from typekit._version import __version__ as version
setup(
name = 'typekit',
packages = ['typekit'],
version = version,
license='MIT',
description = 'Python wrapper for Typekit Developer API',
autho... | 28.521739 | 92 | 0.667683 | 74 | 656 | 5.810811 | 0.554054 | 0.12093 | 0.065116 | 0.07907 | 0.181395 | 0.181395 | 0.181395 | 0 | 0 | 0 | 0 | 0.005682 | 0.195122 | 656 | 23 | 93 | 28.521739 | 0.808712 | 0 | 0 | 0 | 0 | 0 | 0.359209 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 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 |
59edeae5675e92a4f2deb7a85fba31c6c92a2875 | 1,315 | py | Python | organization/migrations/0002_auto_20180325_1529.py | H0neyBadger/pmapi | d34dad32170e53f49e14611f5bfbfcb4eb7b8d4d | [
"MIT"
] | null | null | null | organization/migrations/0002_auto_20180325_1529.py | H0neyBadger/pmapi | d34dad32170e53f49e14611f5bfbfcb4eb7b8d4d | [
"MIT"
] | 1 | 2017-09-07T09:15:07.000Z | 2017-09-07T09:15:07.000Z | organization/migrations/0002_auto_20180325_1529.py | H0neyBadger/cmdb | d34dad32170e53f49e14611f5bfbfcb4eb7b8d4d | [
"MIT"
] | null | null | null | # Generated by Django 2.0.3 on 2018-03-25 15:29
from django.conf import settings
import django.contrib.auth.models
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('organization', '0001_initial'),
]
operations = [... | 34.605263 | 190 | 0.638783 | 142 | 1,315 | 5.78169 | 0.394366 | 0.048721 | 0.06821 | 0.107186 | 0.47503 | 0.447016 | 0.401949 | 0.401949 | 0.401949 | 0.401949 | 0 | 0.019115 | 0.244106 | 1,315 | 37 | 191 | 35.540541 | 0.806841 | 0.034221 | 0 | 0.322581 | 1 | 0 | 0.108044 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.129032 | 0 | 0.225806 | 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 |
59f56393703c13188954083843d72db2967ca6cd | 607 | py | Python | pychain/node_discovery.py | tylermzeller/pychain | 3cbf49a762cacb9d4698a83a9f5851c601e57bd0 | [
"MIT"
] | null | null | null | pychain/node_discovery.py | tylermzeller/pychain | 3cbf49a762cacb9d4698a83a9f5851c601e57bd0 | [
"MIT"
] | 10 | 2018-06-21T01:15:14.000Z | 2018-07-30T01:02:35.000Z | pychain/node_discovery.py | tylermzeller/pychain | 3cbf49a762cacb9d4698a83a9f5851c601e57bd0 | [
"MIT"
] | null | null | null | '''
"Node discovery". *Hack*
This implementation of p2p node discovery takes
advantage of docker and information sharing through
environment variables. REAL discovery should probably happen
through DNS.
'''
# returns a list of node addresses
def discoverNodes():
import os
import random
numNodes... | 33.722222 | 89 | 0.693575 | 76 | 607 | 5.526316 | 0.657895 | 0.092857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006263 | 0.210873 | 607 | 17 | 90 | 35.705882 | 0.870564 | 0.382208 | 0 | 0 | 0 | 0 | 0.165714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | true | 0 | 0.25 | 0 | 0.625 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9400dcaa88a2929b28b3ed85154b671a3195ca83 | 265 | py | Python | upload_test.py | binocular-vision/container | 35e86b51c430ccbf5f6a9776e33c21e586eda448 | [
"MIT"
] | null | null | null | upload_test.py | binocular-vision/container | 35e86b51c430ccbf5f6a9776e33c21e586eda448 | [
"MIT"
] | null | null | null | upload_test.py | binocular-vision/container | 35e86b51c430ccbf5f6a9776e33c21e586eda448 | [
"MIT"
] | null | null | null | from google.cloud import storage
import json
client = storage.Client()
bucket = client.get_bucket('ibvdata')
blob = bucket.get_blob("experiments/2018-04-14-03-06-01/outputs/json/a0.05_r3.00_p0.05_t1.00")
check = json.loads(blob.download_as_string())
print(check)
| 26.5 | 94 | 0.773585 | 45 | 265 | 4.4 | 0.688889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106557 | 0.079245 | 265 | 9 | 95 | 29.444444 | 0.704918 | 0 | 0 | 0 | 0 | 0.142857 | 0.283019 | 0.256604 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0.142857 | 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 |
94021a64302eb30d02fce61d892fb9559a6b654c | 2,932 | py | Python | S4/S4 Library/simulation/gsi_handlers/lot_handlers.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | 1 | 2021-05-20T19:33:37.000Z | 2021-05-20T19:33:37.000Z | S4/S4 Library/simulation/gsi_handlers/lot_handlers.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | null | null | null | S4/S4 Library/simulation/gsi_handlers/lot_handlers.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | null | null | null | from gsi_handlers.commodity_tracker_gsi_util import generate_data_from_commodity_tracker, create_schema_for_commodity_tracker
from sims4.gsi.dispatcher import GsiHandler
from sims4.gsi.schema import GsiGridSchema, GsiFieldVisualizers
import services
import sims4
import build_buy
lot_info_schema = GsiGridSchema(label='L... | 61.083333 | 306 | 0.74045 | 405 | 2,932 | 4.953086 | 0.22716 | 0.045364 | 0.064806 | 0.063809 | 0.1999 | 0.095214 | 0.055833 | 0.055833 | 0.055833 | 0.055833 | 0 | 0.00488 | 0.161323 | 2,932 | 47 | 307 | 62.382979 | 0.810899 | 0 | 0 | 0 | 1 | 0 | 0.124488 | 0.015007 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.136364 | 0 | 0.227273 | 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 |
94074a7f69d0726f20e9c615de67c7046452f8cb | 778 | py | Python | Day 1/Puzzle 1.py | rookuu/AdventOfCode-2015 | b94e98f5711d0901412b22342395457a8185bc10 | [
"MIT"
] | null | null | null | Day 1/Puzzle 1.py | rookuu/AdventOfCode-2015 | b94e98f5711d0901412b22342395457a8185bc10 | [
"MIT"
] | null | null | null | Day 1/Puzzle 1.py | rookuu/AdventOfCode-2015 | b94e98f5711d0901412b22342395457a8185bc10 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
Solution to Day 1 - Puzzle 1 of the Advent Of Code 2015 series of challenges.
--- Day 1: Not Quite Lisp ---
An opening parenthesis represents an increase in floor and a closing parenthesis represents a decrease in floor.
After taking a 7000 character long input string of assorted parenthesi... | 29.923077 | 112 | 0.676093 | 112 | 778 | 4.6875 | 0.616071 | 0.015238 | 0.038095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022581 | 0.203085 | 778 | 25 | 113 | 31.12 | 0.824194 | 0.199229 | 0 | 0 | 0 | 0 | 0.245536 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
94169a27bf1cb9a9f17f568c26d91e83bff1fa33 | 825 | py | Python | src/pretalx/event/migrations/0023_update_featured_visibility.py | lili668668/pretalx | 5ba2185ffd7c5f95254aafe25ad3de340a86eadb | [
"Apache-2.0"
] | 418 | 2017-10-05T05:52:49.000Z | 2022-03-24T09:50:06.000Z | src/pretalx/event/migrations/0023_update_featured_visibility.py | lili668668/pretalx | 5ba2185ffd7c5f95254aafe25ad3de340a86eadb | [
"Apache-2.0"
] | 1,049 | 2017-09-16T09:34:55.000Z | 2022-03-23T16:13:04.000Z | src/pretalx/event/migrations/0023_update_featured_visibility.py | lili668668/pretalx | 5ba2185ffd7c5f95254aafe25ad3de340a86eadb | [
"Apache-2.0"
] | 155 | 2017-10-16T18:32:01.000Z | 2022-03-15T12:48:33.000Z | # Generated by Django 3.0.5 on 2020-07-26 15:45
from django.db import migrations
def update_show_featured(apps, schema_editor):
Event = apps.get_model("event", "Event")
EventSettings = apps.get_model("event", "Event_SettingsStore")
for event in Event.objects.all():
old_value = EventSettings.obje... | 26.612903 | 78 | 0.624242 | 92 | 825 | 5.413043 | 0.597826 | 0.072289 | 0.072289 | 0.068273 | 0.088353 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051071 | 0.264242 | 825 | 30 | 79 | 27.5 | 0.769358 | 0.054545 | 0 | 0 | 1 | 0 | 0.128535 | 0.029563 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.047619 | 0 | 0.238095 | 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 |
94187ed0c8700f9512490144c63712ffb0927710 | 2,575 | py | Python | meiduo_mall24/meiduo_mall/meiduo_mall/apps/meiduo_admin/views/spus.py | MarioKarting/Django_DRF_meiduo_mall | b9dc85d6d538e4655dd02ef1027524bdcbe497d7 | [
"MIT"
] | 1 | 2020-04-15T03:22:18.000Z | 2020-04-15T03:22:18.000Z | meiduo_mall24/meiduo_mall/meiduo_mall/apps/meiduo_admin/views/spus.py | MarioKarting/Django_DRF_meiduo_mall | b9dc85d6d538e4655dd02ef1027524bdcbe497d7 | [
"MIT"
] | 5 | 2020-05-11T20:29:00.000Z | 2021-11-02T15:46:12.000Z | meiduo_mall24/meiduo_mall/meiduo_mall/apps/meiduo_admin/views/spus.py | MarioKarting/Django_DRF_meiduo_mall | b9dc85d6d538e4655dd02ef1027524bdcbe497d7 | [
"MIT"
] | null | null | null | from rest_framework.permissions import IsAdminUser
from rest_framework.response import Response
from rest_framework.viewsets import ModelViewSet
from goods.models import SPU, Brand, GoodsCategory, SKU
from meiduo_admin.serializers.specs import SPUSerializer
from meiduo_admin.serializers.spus import SPUGoodsSerialzier,... | 26.822917 | 102 | 0.624854 | 270 | 2,575 | 5.866667 | 0.414815 | 0.05303 | 0.032197 | 0.034091 | 0.152146 | 0.106692 | 0.106692 | 0.106692 | 0.082071 | 0.082071 | 0 | 0.011382 | 0.283495 | 2,575 | 96 | 103 | 26.822917 | 0.847154 | 0.095922 | 0 | 0.176471 | 0 | 0 | 0.029109 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098039 | false | 0 | 0.176471 | 0 | 0.607843 | 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 |
941a1a67e6695f7c1740b6f37424502f9989d6c5 | 1,061 | py | Python | vframe_cli/commands/synthetic/utils/relabel.py | ngi-nix/vframe | 60469e25203136f9d6a5ecaabe2423695ee9a0f2 | [
"MIT"
] | null | null | null | vframe_cli/commands/synthetic/utils/relabel.py | ngi-nix/vframe | 60469e25203136f9d6a5ecaabe2423695ee9a0f2 | [
"MIT"
] | null | null | null | vframe_cli/commands/synthetic/utils/relabel.py | ngi-nix/vframe | 60469e25203136f9d6a5ecaabe2423695ee9a0f2 | [
"MIT"
] | null | null | null | #############################################################################
#
# VFRAME
# MIT License
# Copyright (c) 2019 Adam Harvey and VFRAME
# https://vframe.io
#
#############################################################################
import click
from vframe.settings import app_cfg
ext_choices = ['jpg',... | 27.205128 | 77 | 0.607917 | 145 | 1,061 | 4.206897 | 0.427586 | 0.088525 | 0.063934 | 0.07377 | 0.088525 | 0.088525 | 0 | 0 | 0 | 0 | 0 | 0.004301 | 0.123468 | 1,061 | 38 | 78 | 27.921053 | 0.651613 | 0.118756 | 0 | 0.105263 | 0 | 0 | 0.157347 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.052632 | 0.157895 | 0 | 0.210526 | 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 |
941cea816007d01476d7254fd327defb9c84327e | 1,030 | py | Python | Problem-No-23/Approach-No-1.py | sidhant-sriv/comp-project-grade-11 | a95a39e4624ec8f19e800296f3ab025de49b0d64 | [
"MIT"
] | 3 | 2020-10-23T05:21:23.000Z | 2022-01-10T10:58:42.000Z | Problem-No-23/Approach-No-1.py | sidhant-sriv/comp-project-grade-11 | a95a39e4624ec8f19e800296f3ab025de49b0d64 | [
"MIT"
] | 3 | 2020-10-25T10:44:32.000Z | 2020-10-25T16:44:15.000Z | Problem-No-23/Approach-No-1.py | sidhant-sriv/comp-project-grade-11 | a95a39e4624ec8f19e800296f3ab025de49b0d64 | [
"MIT"
] | 6 | 2020-10-23T05:18:56.000Z | 2021-01-14T09:32:35.000Z | '''
| Write a program that should prompt the user to type some sentences. It should then print number of words, number of characters, number of digits and number of special characters in it. |
|------------------------------------------------------------------------------------------------------------------------------... | 44.782609 | 188 | 0.446602 | 116 | 1,030 | 3.939655 | 0.491379 | 0.070022 | 0.083151 | 0.035011 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028609 | 0.253398 | 1,030 | 23 | 189 | 44.782609 | 0.56567 | 0.549515 | 0 | 0 | 0 | 0 | 0.367615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.066667 | 0 | 0 | 0 | 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 |
94239941557b0ef32f8bdc3e929a8b7a0ca9bab9 | 1,087 | py | Python | calc/calculations/calculation.py | dhruvshah1996/Project3 | d87ad37f6cf2de0d3402c71d21b25258946aad69 | [
"MIT"
] | null | null | null | calc/calculations/calculation.py | dhruvshah1996/Project3 | d87ad37f6cf2de0d3402c71d21b25258946aad69 | [
"MIT"
] | null | null | null | calc/calculations/calculation.py | dhruvshah1996/Project3 | d87ad37f6cf2de0d3402c71d21b25258946aad69 | [
"MIT"
] | null | null | null | """Calculation Class"""
class Calculation:
""" calculation abstract base class"""
# pylint: disable=too-few-public-methods
def __init__(self,values: tuple):
""" constructor method"""
self.values = Calculation.convert_args_to_tuple_of_float(values)
@classmethod
def create(cls,values: ... | 47.26087 | 100 | 0.678933 | 151 | 1,087 | 4.754967 | 0.503311 | 0.045961 | 0.062674 | 0.050139 | 0.086351 | 0.086351 | 0.086351 | 0 | 0 | 0 | 0 | 0 | 0.24655 | 1,087 | 23 | 101 | 47.26087 | 0.876679 | 0.49586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
942599ab210e3bb5b077aab6360a6c4298208c75 | 507 | py | Python | zhihuer/celery.py | guojy1314/stw1209 | 043889688c2ed55884b8ddde9cdf6949ee52f905 | [
"MIT"
] | 85 | 2018-07-15T06:45:59.000Z | 2021-06-26T06:51:38.000Z | zhihuer/celery.py | guojy1314/stw1209 | 043889688c2ed55884b8ddde9cdf6949ee52f905 | [
"MIT"
] | 8 | 2020-02-12T02:26:58.000Z | 2022-03-12T00:08:05.000Z | zhihuer/celery.py | guojy1314/stw1209 | 043889688c2ed55884b8ddde9cdf6949ee52f905 | [
"MIT"
] | 26 | 2019-01-26T18:05:11.000Z | 2021-06-26T06:51:39.000Z | # 在zhihuer项目目录下,
# cmd运行: celery -A zhihuer worker -l info (-A 默认寻找目录下的celery模块)
# 启动celery服务
from __future__ import absolute_import, unicode_literals
import os
from celery import Celery
from django.conf import settings
# 设置环境变量
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'zhihuer.settings')
# 实例化Celery
app = C... | 25.35 | 67 | 0.808679 | 60 | 507 | 6.633333 | 0.6 | 0.050251 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098619 | 507 | 19 | 68 | 26.684211 | 0.870897 | 0.309665 | 0 | 0 | 0 | 0 | 0.207602 | 0.064327 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
94267a216f2fcaedda83675c1ece9c6b384d5d17 | 7,273 | py | Python | pysnmp/CTRON-SSR-CONFIG-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/CTRON-SSR-CONFIG-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/CTRON-SSR-CONFIG-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module CTRON-SSR-CONFIG-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CTRON-SSR-CONFIG-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 18:15:46 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (defau... | 115.444444 | 751 | 0.74371 | 826 | 7,273 | 6.546005 | 0.2046 | 0.03551 | 0.059552 | 0.072314 | 0.45626 | 0.374884 | 0.314962 | 0.314962 | 0.304975 | 0.279822 | 0 | 0.081928 | 0.087034 | 7,273 | 62 | 752 | 117.306452 | 0.73238 | 0.045923 | 0 | 0.076923 | 0 | 0 | 0.248918 | 0.019625 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.134615 | 0 | 0.211538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
942894d912ee4a7ba9f0aefb2767a546ced6f224 | 19,551 | py | Python | demisto_client/demisto_api/models/widget.py | guytest/demisto-py | 8ca4f56a6177668151b5656cbe675a377003c0e9 | [
"Apache-2.0"
] | 59 | 2017-05-04T05:48:00.000Z | 2022-02-27T21:06:01.000Z | demisto_client/demisto_api/models/widget.py | guytest/demisto-py | 8ca4f56a6177668151b5656cbe675a377003c0e9 | [
"Apache-2.0"
] | 44 | 2017-05-09T17:42:43.000Z | 2022-03-30T05:55:44.000Z | demisto_client/demisto_api/models/widget.py | guytest/demisto-py | 8ca4f56a6177668151b5656cbe675a377003c0e9 | [
"Apache-2.0"
] | 37 | 2017-05-06T04:30:32.000Z | 2022-02-15T04:59:00.000Z | # coding: utf-8
"""
Demisto API
This is the public REST API to integrate with the demisto server. HTTP request can be sent using any HTTP-client. For an example dedicated client take a look at: https://github.com/demisto/demisto-py. Requests must include API-key that can be generated in the Demisto web clie... | 30.596244 | 1,584 | 0.591223 | 2,462 | 19,551 | 4.574736 | 0.119009 | 0.063216 | 0.085235 | 0.085235 | 0.487437 | 0.410725 | 0.383468 | 0.297257 | 0.1734 | 0.120039 | 0 | 0.021936 | 0.309805 | 19,551 | 638 | 1,585 | 30.644201 | 0.812732 | 0.447036 | 0 | 0.082397 | 0 | 0 | 0.080311 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.172285 | false | 0 | 0.018727 | 0 | 0.299625 | 0.007491 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9428c808c828141ff45952921a511681e35a77df | 410 | py | Python | saliency_web_mapper/config/environment.py | HeosSacer/saliency_web_mapper | a2fd744b821086dc1a0af0498361207f7bcddee6 | [
"MIT"
] | null | null | null | saliency_web_mapper/config/environment.py | HeosSacer/saliency_web_mapper | a2fd744b821086dc1a0af0498361207f7bcddee6 | [
"MIT"
] | null | null | null | saliency_web_mapper/config/environment.py | HeosSacer/saliency_web_mapper | a2fd744b821086dc1a0af0498361207f7bcddee6 | [
"MIT"
] | null | null | null | from saliency_web_mapper.config.typesafe_dataclass import TypesafeDataclass
from typing import List, Dict, Tuple, Sequence
class SaliencyWebMapperEnvironment(TypesafeDataclass):
# Defaults with type
url: str = 'http://localhost:3001/'
window_name: str = 'Cart 4.0'
# Debug
debug: bool = False
... | 25.625 | 75 | 0.707317 | 49 | 410 | 5.653061 | 0.836735 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05136 | 0.192683 | 410 | 15 | 76 | 27.333333 | 0.785498 | 0.058537 | 0 | 0 | 0 | 0 | 0.114883 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.888889 | 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 |
942c0a693ba17d410d8999d5102376d8d5967101 | 8,825 | py | Python | eurlex2lexparency/transformation/utils/liap.py | Lexparency/eurlex2lexparency | b4958f6fea5c2207eb06d2c3b91be798720c94bd | [
"MIT"
] | null | null | null | eurlex2lexparency/transformation/utils/liap.py | Lexparency/eurlex2lexparency | b4958f6fea5c2207eb06d2c3b91be798720c94bd | [
"MIT"
] | null | null | null | eurlex2lexparency/transformation/utils/liap.py | Lexparency/eurlex2lexparency | b4958f6fea5c2207eb06d2c3b91be798720c94bd | [
"MIT"
] | null | null | null | """
"""
import re
from collections import namedtuple
from functools import lru_cache
from lexref.model import Value
__all__ = ['ListItemsAndPatterns']
romans_pattern = Value.tag_2_pattern('EN')['ROM_L'].pattern.strip('b\\()')
_eur_lex_item_patterns_en = { # key: (itemization-character-pattern, ordered [bool], fi... | 47.446237 | 115 | 0.546062 | 1,045 | 8,825 | 4.435407 | 0.221053 | 0.03301 | 0.028047 | 0.031068 | 0.372168 | 0.34671 | 0.327508 | 0.289752 | 0.289752 | 0.271629 | 0 | 0.015823 | 0.31966 | 8,825 | 185 | 116 | 47.702703 | 0.756163 | 0.170425 | 0 | 0.237762 | 0 | 0 | 0.100584 | 0.013495 | 0 | 0 | 0 | 0.016216 | 0 | 1 | 0.048951 | false | 0 | 0.027972 | 0.013986 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
942c240cacbca2c4496639534336a931e698439a | 409 | py | Python | setup.py | JulianGindi/auto-semver | 8e98a341155ac44a698310b08177c3e8c27aa201 | [
"MIT"
] | 5 | 2019-12-18T17:35:09.000Z | 2021-07-06T01:20:58.000Z | setup.py | JulianGindi/auto-increment-semver | 8e98a341155ac44a698310b08177c3e8c27aa201 | [
"MIT"
] | null | null | null | setup.py | JulianGindi/auto-increment-semver | 8e98a341155ac44a698310b08177c3e8c27aa201 | [
"MIT"
] | 1 | 2020-11-13T05:51:35.000Z | 2020-11-13T05:51:35.000Z | from setuptools import setup
setup(
name="auto-semver",
version="0.8.0",
description="Semver swiss-army knife",
url="http://github.com/juliangindi/auto-semver",
author="Julian Gindi",
author_email="julian@gindi.io",
license="MIT",
packages=["auto_semver"],
zip_safe=False,
entry_... | 22.722222 | 69 | 0.650367 | 50 | 409 | 5.12 | 0.7 | 0.195313 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009009 | 0.185819 | 409 | 17 | 70 | 24.058824 | 0.75976 | 0 | 0 | 0 | 0 | 0 | 0.42402 | 0.090686 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.066667 | 0 | 0.066667 | 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 |
9430c7d26f1a2d5ac3fef69dacab439ea6ec2d2d | 477 | py | Python | shortly/settings.py | fengsp/shortly | 29532523c2db297c995a7e94c84df6d884ce240e | [
"BSD-3-Clause"
] | 11 | 2015-01-01T03:22:09.000Z | 2021-02-12T14:08:06.000Z | shortly/settings.py | fengsp/shortly | 29532523c2db297c995a7e94c84df6d884ce240e | [
"BSD-3-Clause"
] | null | null | null | shortly/settings.py | fengsp/shortly | 29532523c2db297c995a7e94c84df6d884ce240e | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
shortly.settings
~~~~~~~~~~~~~~~~
Shortly config.
:copyright: (c) 2014 by fsp.
:license: BSD.
"""
import os
DEBUG = False
# Detect environment by whether debug named file exists or not
if os.path.exists(os.path.join(os.path.dirname(__file__), 'debug')):
DEBUG = T... | 17.035714 | 68 | 0.607966 | 63 | 477 | 4.444444 | 0.603175 | 0.064286 | 0.128571 | 0.164286 | 0.278571 | 0.278571 | 0.278571 | 0.278571 | 0.278571 | 0 | 0 | 0.041436 | 0.24109 | 477 | 27 | 69 | 17.666667 | 0.732044 | 0.375262 | 0 | 0.5 | 0 | 0 | 0.085502 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 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 |
9436ee02169dab30dcc57c297b85baa82e5a02a7 | 246 | py | Python | deeptrade/__init__.py | deeptrade-tech/deeptrade_api | 4612f1057ff4532b3f4b96f3fe07c2b7150f80b7 | [
"MIT"
] | 1 | 2019-09-30T05:33:24.000Z | 2019-09-30T05:33:24.000Z | deeptrade/__init__.py | deeptrade-tech/deeptrade_api | 4612f1057ff4532b3f4b96f3fe07c2b7150f80b7 | [
"MIT"
] | null | null | null | deeptrade/__init__.py | deeptrade-tech/deeptrade_api | 4612f1057ff4532b3f4b96f3fe07c2b7150f80b7 | [
"MIT"
] | null | null | null | from __future__ import absolute_import, division, print_function
# configuration variables
api_key = None
api_base = "https://www.deeptrade.ch/"
# API sentiment
from deeptrade.sentiment import *
# API stocks
from deeptrade.stocks import *
| 15.375 | 64 | 0.776423 | 31 | 246 | 5.903226 | 0.612903 | 0.142077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146341 | 246 | 15 | 65 | 16.4 | 0.871429 | 0.195122 | 0 | 0 | 0 | 0 | 0.128866 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0.2 | 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 |
94388603ebcb4df77f1d83d5d6abd9980c49bf05 | 261 | py | Python | maad/cluster/__init__.py | jflatorreg/scikit-maad | f7c4ac1370dcf416b7014f94784d71549623593f | [
"BSD-3-Clause"
] | 3 | 2021-04-17T21:13:57.000Z | 2021-04-25T00:55:18.000Z | maad/cluster/__init__.py | jflatorreg/scikit-maad | f7c4ac1370dcf416b7014f94784d71549623593f | [
"BSD-3-Clause"
] | null | null | null | maad/cluster/__init__.py | jflatorreg/scikit-maad | f7c4ac1370dcf416b7014f94784d71549623593f | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
""" cluster functions for scikit-maad
Cluster regions of interest using High Dimensional Data Clsutering (HDDC).
"""
from .hdda import (HDDC)
from .cluster_func import (do_PCA)
__all__ = ['HDDC',
'do_PCA']
| 18.642857 | 76 | 0.628352 | 32 | 261 | 4.90625 | 0.75 | 0.101911 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005076 | 0.245211 | 261 | 13 | 77 | 20.076923 | 0.791878 | 0.505747 | 0 | 0 | 0 | 0 | 0.093458 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
943af4c9b4f0d02449e03edde4cb90f8a5ee5e58 | 929 | py | Python | pipng/imagescale/Globals.py | nwiizo/joke | 808c4c998cc7f5b7f6f3fb5a3ce421588a70c087 | [
"MIT"
] | 1 | 2017-01-11T06:12:24.000Z | 2017-01-11T06:12:24.000Z | pipng/imagescale/Globals.py | ShuyaMotouchi/joke | 808c4c998cc7f5b7f6f3fb5a3ce421588a70c087 | [
"MIT"
] | null | null | null | pipng/imagescale/Globals.py | ShuyaMotouchi/joke | 808c4c998cc7f5b7f6f3fb5a3ce421588a70c087 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# Copyright © 2012-13 Qtrac Ltd. All rights reserved.
# This program or module is free software: you can redistribute it
# and/or modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option)... | 38.708333 | 73 | 0.722282 | 133 | 929 | 5.052632 | 0.661654 | 0.035714 | 0.03869 | 0.056548 | 0.077381 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018592 | 0.189451 | 929 | 23 | 74 | 40.391304 | 0.87251 | 0.631862 | 0 | 0 | 0 | 0 | 0.288026 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.090909 | 0 | 0 | 0.090909 | 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 |
943b27a6307e3dd5baf6b7f00cd5eae08fb5833d | 861 | py | Python | examples/old-examples/pygame/01_hello_world.py | Vallentin/ModernGL | 18ce7d3f28c68b2d305da332ae0afd221dc043d1 | [
"MIT"
] | null | null | null | examples/old-examples/pygame/01_hello_world.py | Vallentin/ModernGL | 18ce7d3f28c68b2d305da332ae0afd221dc043d1 | [
"MIT"
] | null | null | null | examples/old-examples/pygame/01_hello_world.py | Vallentin/ModernGL | 18ce7d3f28c68b2d305da332ae0afd221dc043d1 | [
"MIT"
] | 1 | 2020-07-10T23:26:36.000Z | 2020-07-10T23:26:36.000Z | import struct
import ModernGL
import pygame
from pygame.locals import DOUBLEBUF, OPENGL
pygame.init()
pygame.display.set_mode((800, 600), DOUBLEBUF | OPENGL)
ctx = ModernGL.create_context()
vert = ctx.vertex_shader('''
#version 330
in vec2 vert;
void main() {
gl_Position = vec4(vert, 0.0, 1.0);
... | 19.568182 | 68 | 0.609756 | 131 | 861 | 3.954198 | 0.503817 | 0.011583 | 0.061776 | 0.015444 | 0.019305 | 0.019305 | 0 | 0 | 0 | 0 | 0 | 0.078078 | 0.226481 | 861 | 43 | 69 | 20.023256 | 0.6997 | 0 | 0 | 0.181818 | 0 | 0 | 0.252033 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.121212 | 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 |
943bf0558ebf6b4b809909be2b8a669c3b8ef8b4 | 1,189 | py | Python | app/core/tests/test_models.py | prafullkumar41/recipe-app-api | f66d076aafa6c8bb727d7f9bd03955c986e811c9 | [
"MIT"
] | null | null | null | app/core/tests/test_models.py | prafullkumar41/recipe-app-api | f66d076aafa6c8bb727d7f9bd03955c986e811c9 | [
"MIT"
] | null | null | null | app/core/tests/test_models.py | prafullkumar41/recipe-app-api | f66d076aafa6c8bb727d7f9bd03955c986e811c9 | [
"MIT"
] | null | null | null | from django.test import TestCase
from django.contrib.auth import get_user_model
class ModelTests(TestCase):
def test_create_user_with_email(self):
'''Tet creating a new user with an email is sucessfull'''
email = 'test@gmail.com'
password = 'test123'
user = get_user_model().objects... | 29 | 69 | 0.644239 | 147 | 1,189 | 4.986395 | 0.340136 | 0.047749 | 0.081855 | 0.103683 | 0.261937 | 0.18281 | 0.103683 | 0.103683 | 0 | 0 | 0 | 0.013498 | 0.252313 | 1,189 | 40 | 70 | 29.725 | 0.811024 | 0.100925 | 0 | 0 | 0 | 0 | 0.059829 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 1 | 0.153846 | false | 0.115385 | 0.076923 | 0 | 0.269231 | 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 |
943e1d6391bc96c958af3f46e434cc6fac7f09c7 | 568 | py | Python | uni_ticket/migrations/0176_ticketcategorywsprotocollo_protocollo_uo_rpa_matricola.py | biotech2021/uniTicket | 8c441eac18e67a983e158326b1c4b82f00f1f1ef | [
"Apache-2.0"
] | 15 | 2019-09-06T06:47:08.000Z | 2022-01-17T06:39:54.000Z | uni_ticket/migrations/0176_ticketcategorywsprotocollo_protocollo_uo_rpa_matricola.py | biotech2021/uniTicket | 8c441eac18e67a983e158326b1c4b82f00f1f1ef | [
"Apache-2.0"
] | 69 | 2019-09-06T12:03:19.000Z | 2022-03-26T14:30:53.000Z | uni_ticket/migrations/0176_ticketcategorywsprotocollo_protocollo_uo_rpa_matricola.py | biotech2021/uniTicket | 8c441eac18e67a983e158326b1c4b82f00f1f1ef | [
"Apache-2.0"
] | 13 | 2019-09-11T10:54:20.000Z | 2021-11-23T09:09:19.000Z | # Generated by Django 3.2.7 on 2021-11-11 09:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('uni_ticket', '0175_alter_ticketcategorywsprotocollo_protocollo_uo_rpa'),
]
operations = [
migrations.AddField(
model_name='ticke... | 29.894737 | 158 | 0.684859 | 63 | 568 | 5.968254 | 0.730159 | 0.06383 | 0.079787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049217 | 0.213028 | 568 | 18 | 159 | 31.555556 | 0.791946 | 0.079225 | 0 | 0 | 1 | 0 | 0.326296 | 0.207294 | 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 |
9446b9ff584bcbd9ff011026042c303a28b108ae | 7,988 | py | Python | tests/run-tests.py | notofonts/NotoSansDuployan | d3bf2d4436d376501d0720e5d9f1fe032f8c5ffc | [
"Apache-2.0"
] | 6 | 2020-04-06T02:14:07.000Z | 2022-03-22T09:13:47.000Z | tests/run-tests.py | dscorbett/duployan-font | 966e4e233f56d818bbbcb4548f1cf232cd3fe4a1 | [
"Apache-2.0"
] | 2 | 2021-07-19T10:20:41.000Z | 2021-12-16T01:25:02.000Z | tests/run-tests.py | notofonts/NotoSansDuployan | d3bf2d4436d376501d0720e5d9f1fe032f8c5ffc | [
"Apache-2.0"
] | 1 | 2019-08-04T03:40:57.000Z | 2019-08-04T03:40:57.000Z | #!/usr/bin/env python3
# Copyright 2018-2019 David Corbett
# Copyright 2020-2021 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... | 40.964103 | 236 | 0.578117 | 952 | 7,988 | 4.67542 | 0.286765 | 0.056616 | 0.046506 | 0.045608 | 0.212761 | 0.17659 | 0.166255 | 0.154572 | 0.146035 | 0.133453 | 0 | 0.021968 | 0.287682 | 7,988 | 194 | 237 | 41.175258 | 0.760281 | 0.076114 | 0 | 0.189349 | 0 | 0.023669 | 0.176942 | 0.050923 | 0 | 0 | 0.000815 | 0 | 0.005917 | 1 | 0.029586 | false | 0.065089 | 0.04142 | 0 | 0.100592 | 0.053254 | 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 |
944c02065ba04cb19712b6f22f00a4dabb48ce05 | 3,049 | py | Python | test_migrations/contrib/pytest_plugin/plugin.py | skarzi/django-test-migrations | 9b61f36fd91900334a29ff26dc60228842a86da8 | [
"MIT"
] | 4 | 2019-07-26T12:42:42.000Z | 2020-01-27T07:45:09.000Z | test_migrations/contrib/pytest_plugin/plugin.py | skarzi/django-test-migrations | 9b61f36fd91900334a29ff26dc60228842a86da8 | [
"MIT"
] | 37 | 2019-10-18T18:10:14.000Z | 2020-01-31T07:46:23.000Z | test_migrations/contrib/pytest_plugin/plugin.py | skarzi/django-test-migrations | 9b61f36fd91900334a29ff26dc60228842a86da8 | [
"MIT"
] | 1 | 2019-08-03T15:54:50.000Z | 2019-08-03T15:54:50.000Z | import pytest
from test_migrations import constants
from .fixtures import migrator # pylint: disable=W0611
pytest_plugins = ['pytest_django'] # pylint: disable=C0103
def pytest_load_initial_conftests(early_config):
# Register the marks
early_config.addinivalue_line(
'markers',
(
... | 35.870588 | 81 | 0.651361 | 330 | 3,049 | 5.857576 | 0.369697 | 0.086912 | 0.064666 | 0.075013 | 0.208484 | 0.142783 | 0.142783 | 0.051733 | 0 | 0 | 0 | 0.005317 | 0.259757 | 3,049 | 84 | 82 | 36.297619 | 0.85113 | 0.187602 | 0 | 0.033898 | 0 | 0 | 0.28858 | 0.019239 | 0 | 0 | 0 | 0.011905 | 0 | 1 | 0.084746 | false | 0.033898 | 0.050847 | 0 | 0.135593 | 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 |
944d0a8ff7bd49103305170067ede2c52eda684a | 19,307 | py | Python | hrp/models.py | paleocore/paleocore110 | 754f3248ab22a2996b43bd224bd4ba15462edf7d | [
"MIT"
] | null | null | null | hrp/models.py | paleocore/paleocore110 | 754f3248ab22a2996b43bd224bd4ba15462edf7d | [
"MIT"
] | 7 | 2020-02-05T20:54:24.000Z | 2021-12-13T20:13:20.000Z | hrp/models.py | paleocore/paleocore110 | 754f3248ab22a2996b43bd224bd4ba15462edf7d | [
"MIT"
] | null | null | null | import os
from django.contrib.gis.db import models
from hrp.ontologies import *
# from hrp.ontologies import ITEM_TYPE_VOCABULARY, HRP_COLLECTOR_CHOICES, \
# HRP_COLLECTING_METHOD_VOCABULARY, HRP_BASIS_OF_RECORD_VOCABULARY, HRP_COLLECTION_CODES
from django.contrib.gis.geos import Point
import projects.models
cl... | 48.147132 | 117 | 0.70187 | 2,438 | 19,307 | 5.384742 | 0.158327 | 0.06787 | 0.077239 | 0.101005 | 0.426341 | 0.382617 | 0.343921 | 0.296999 | 0.279479 | 0.231261 | 0 | 0.019148 | 0.193919 | 19,307 | 400 | 118 | 48.2675 | 0.824391 | 0.092402 | 0 | 0.137457 | 0 | 0 | 0.066327 | 0.006598 | 0 | 0 | 0 | 0.005 | 0 | 1 | 0.041237 | false | 0 | 0.017182 | 0.006873 | 0.762887 | 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 |
9451476f11677b46be97a0f4978515f3acb6cf52 | 1,049 | py | Python | object-oriented-programming/src/oop-interface.py | giserh/book-python | ebd4e70cea1dd56986aa8efbae3629ba3f1ba087 | [
"MIT"
] | 1 | 2019-01-02T15:04:08.000Z | 2019-01-02T15:04:08.000Z | object-oriented-programming/src/oop-interface.py | giserh/book-python | ebd4e70cea1dd56986aa8efbae3629ba3f1ba087 | [
"MIT"
] | null | null | null | object-oriented-programming/src/oop-interface.py | giserh/book-python | ebd4e70cea1dd56986aa8efbae3629ba3f1ba087 | [
"MIT"
] | null | null | null | class MLModelInterface:
def fit(self, features, labels):
raise NotImplementedError
def predict(self, data):
raise NotImplementedError
class KNeighborsClassifier(MLModelInterface):
def fit(self, features, labels):
pass
def predict(self, data):
pass
class LinearRegres... | 18.732143 | 45 | 0.553861 | 182 | 1,049 | 3.181319 | 0.186813 | 0.017271 | 0.11399 | 0.134715 | 0.331606 | 0.314335 | 0.24525 | 0.24525 | 0.24525 | 0.24525 | 0 | 0.142308 | 0.256435 | 1,049 | 55 | 46 | 19.072727 | 0.6 | 0.07531 | 0 | 0.351351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.162162 | false | 0.135135 | 0 | 0 | 0.27027 | 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 |
9454ae456058a5c984b91c0a770883c558f45cd2 | 1,934 | py | Python | tests/python/pants_test/backend/jvm/tasks/jvm_compile/test_resource_mapping.py | WamBamBoozle/pants | 98cadfa1a5d337146903eb66548cfe955f2627b3 | [
"Apache-2.0"
] | null | null | null | tests/python/pants_test/backend/jvm/tasks/jvm_compile/test_resource_mapping.py | WamBamBoozle/pants | 98cadfa1a5d337146903eb66548cfe955f2627b3 | [
"Apache-2.0"
] | null | null | null | tests/python/pants_test/backend/jvm/tasks/jvm_compile/test_resource_mapping.py | WamBamBoozle/pants | 98cadfa1a5d337146903eb66548cfe955f2627b3 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)
import os
from pant... | 39.469388 | 117 | 0.798345 | 237 | 1,934 | 6.248945 | 0.28692 | 0.212694 | 0.06077 | 0.072924 | 0.634031 | 0.592843 | 0.592843 | 0.471303 | 0.471303 | 0.279541 | 0 | 0.004692 | 0.118407 | 1,934 | 48 | 118 | 40.291667 | 0.86393 | 0.071872 | 0 | 0.3 | 0 | 0.133333 | 0.257398 | 0.257398 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.133333 | 0 | 0.333333 | 0.033333 | 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 |
9459da79cb451077424b3e724720da8c0a06c9ac | 1,281 | py | Python | openport/common/tee.py | Deshdeepak1/openport | 4aefb3281c2a483ed7b02c8574321b5c0d9a954a | [
"MIT"
] | 5 | 2018-06-04T14:45:15.000Z | 2022-01-07T09:02:35.000Z | openport/common/tee.py | Deshdeepak1/openport | 4aefb3281c2a483ed7b02c8574321b5c0d9a954a | [
"MIT"
] | 9 | 2019-11-24T19:58:33.000Z | 2022-03-29T21:54:03.000Z | openport/common/tee.py | Deshdeepak1/openport | 4aefb3281c2a483ed7b02c8574321b5c0d9a954a | [
"MIT"
] | 5 | 2019-08-04T17:56:15.000Z | 2022-02-06T20:15:03.000Z | import sys
class TeeStdOut(object):
def __init__(self, name, mode):
self.file = open(name, mode)
self.stdout = sys.stdout
sys.stdout = self
def close(self):
if self is None:
return
if self.stdout is not None:
sys.stdout = self.stdout
... | 22.875 | 37 | 0.530055 | 157 | 1,281 | 4.22293 | 0.159236 | 0.144796 | 0.072398 | 0.051282 | 0.675716 | 0.675716 | 0.609351 | 0.518854 | 0.518854 | 0.404223 | 0 | 0 | 0.367682 | 1,281 | 56 | 38 | 22.875 | 0.818519 | 0 | 0 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.022222 | 0 | 0.355556 | 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 |
94611d8fb6626acc66a8ff1fb61998cb3024f470 | 274 | py | Python | nickleback.py | helanan/kill_nickleback | 6cbc37f58cf3e9aedc42d4e2718b8c7549692a15 | [
"MIT"
] | null | null | null | nickleback.py | helanan/kill_nickleback | 6cbc37f58cf3e9aedc42d4e2718b8c7549692a15 | [
"MIT"
] | null | null | null | nickleback.py | helanan/kill_nickleback | 6cbc37f58cf3e9aedc42d4e2718b8c7549692a15 | [
"MIT"
] | null | null | null | songs = { ('Nickelback', 'How You Remind Me'), ('Will.i.am', 'That Power'), ('Miles Davis', 'Stella by Starlight'), ('Nickelback', 'Animals') }
# Using a set comprehension, create a new set that contains all songs that were not performed by Nickelback.
nonNickelback = {}
| 54.8 | 144 | 0.689781 | 37 | 274 | 5.108108 | 0.783784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156934 | 274 | 4 | 145 | 68.5 | 0.818182 | 0.386861 | 0 | 0 | 0 | 0 | 0.560241 | 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 |
9462eb2500bdbcb6be261010cdb1088e435cd696 | 4,099 | py | Python | main.py | mneeman/Removing_atmospheric_turbulence | cf0dc0ab503d6fe9dfa4f48d2fffc69f1e0899b6 | [
"MIT"
] | 4 | 2020-06-25T15:21:51.000Z | 2021-08-11T14:04:43.000Z | main.py | mneeman/Removing_atmospheric_turbulence | cf0dc0ab503d6fe9dfa4f48d2fffc69f1e0899b6 | [
"MIT"
] | 1 | 2021-05-29T08:22:30.000Z | 2021-05-29T08:22:30.000Z | main.py | mneeman/Removing_atmospheric_turbulence | cf0dc0ab503d6fe9dfa4f48d2fffc69f1e0899b6 | [
"MIT"
] | 2 | 2020-09-23T02:42:59.000Z | 2021-08-11T14:04:45.000Z | import multiprocessing
multiprocessing.set_start_method('spawn', True)
import argparse
import os
import numpy as np
import math
import sys
import torchvision
import torchvision.transforms as transforms
from torch.utils.data import DataLoader
from torchvision import datasets
from torchvision.utils import make_grid
fr... | 44.554348 | 148 | 0.732618 | 584 | 4,099 | 5.008562 | 0.292808 | 0.061538 | 0.116239 | 0.02906 | 0.186325 | 0.145983 | 0.13094 | 0.094701 | 0.077949 | 0.041026 | 0 | 0.013602 | 0.139058 | 4,099 | 91 | 149 | 45.043956 | 0.815245 | 0.011954 | 0 | 0 | 0 | 0 | 0.242649 | 0.044972 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014706 | false | 0 | 0.323529 | 0 | 0.338235 | 0.014706 | 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 |
946461fc3a4fd6828fbc72c73b2d0410d8ef7f35 | 858 | py | Python | handlers/changing_stickerpack_handl.py | bbt-t/bot-pet-project | 6b0d7862b14fe739be52d87ff8c8610a3f4548e1 | [
"Apache-2.0"
] | null | null | null | handlers/changing_stickerpack_handl.py | bbt-t/bot-pet-project | 6b0d7862b14fe739be52d87ff8c8610a3f4548e1 | [
"Apache-2.0"
] | null | null | null | handlers/changing_stickerpack_handl.py | bbt-t/bot-pet-project | 6b0d7862b14fe739be52d87ff8c8610a3f4548e1 | [
"Apache-2.0"
] | null | null | null | from aiogram.dispatcher import FSMContext
from aiogram.types import CallbackQuery
from handlers.states_in_handlers import UserSettingStates
from loader import dp
from utils.keyboards.start_handl_choice_kb import get_start_keyboard
@dp.callback_query_handler(text='set_skin', state=UserSettingStates.settings)
async de... | 37.304348 | 85 | 0.681818 | 106 | 858 | 5.301887 | 0.584906 | 0.042705 | 0.085409 | 0.078292 | 0.170819 | 0.170819 | 0.170819 | 0.170819 | 0.170819 | 0.170819 | 0 | 0 | 0.237762 | 858 | 22 | 86 | 39 | 0.859327 | 0 | 0 | 0.105263 | 0 | 0 | 0.065268 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.263158 | 0 | 0.263158 | 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 |
94698a7593ec8f7eb2b02572abe4aa120407e92f | 1,653 | py | Python | objectModel/Python/tests/storage/test_github.py | rt112000/CDM | 34bd34f9260140a8f8aa02bd87c23033f3daad4c | [
"CC-BY-4.0",
"MIT"
] | 884 | 2019-05-10T02:09:10.000Z | 2022-03-31T14:02:00.000Z | objectModel/Python/tests/storage/test_github.py | spbast/CDM | bf97a3720c97ee4c9df3625084cf8b3bc65ff9c7 | [
"CC-BY-4.0",
"MIT"
] | 171 | 2019-06-10T11:34:37.000Z | 2022-03-31T22:50:12.000Z | objectModel/Python/tests/storage/test_github.py | spbast/CDM | bf97a3720c97ee4c9df3625084cf8b3bc65ff9c7 | [
"CC-BY-4.0",
"MIT"
] | 340 | 2019-05-07T18:00:16.000Z | 2022-03-31T12:00:15.000Z | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
import json
import unittest
import unittest.mock as mock
import random
from tests.common import async_test
from cdm.storage.github import GithubAdapter
class Gi... | 37.568182 | 159 | 0.717483 | 206 | 1,653 | 5.597087 | 0.456311 | 0.034692 | 0.052038 | 0.069384 | 0.322637 | 0.322637 | 0.322637 | 0.322637 | 0.322637 | 0.213356 | 0 | 0.021122 | 0.169389 | 1,653 | 43 | 160 | 38.44186 | 0.817917 | 0.121597 | 0 | 0.222222 | 0 | 0.111111 | 0.274931 | 0.041551 | 0 | 0 | 0 | 0 | 0.148148 | 0 | null | null | 0 | 0.222222 | 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 |
9470c26c016cbc9700c1e8fe9a668a1e2bb75e79 | 722 | py | Python | l5q1.py | gonewithharshwinds/itt-lab | 257eb0d38b09eac7991b490ec64c068ef51d7fb2 | [
"MIT"
] | 1 | 2022-01-06T00:07:36.000Z | 2022-01-06T00:07:36.000Z | l5q1.py | gonewithharshwinds/itt-lab | 257eb0d38b09eac7991b490ec64c068ef51d7fb2 | [
"MIT"
] | null | null | null | l5q1.py | gonewithharshwinds/itt-lab | 257eb0d38b09eac7991b490ec64c068ef51d7fb2 | [
"MIT"
] | null | null | null | #!/usr/bin/python
def add(a,b):
return a+b
def sub(a,b):
return a-b
def mul(a,b):
return a*b
def div(a,b):
return a/b
a = int(input("Enter first number: "))
b = int(input("Enter second number: "))
print("Please select operation : \n" \
"1. Addition \n" \
"2. Subtraction \n" \
... | 20.628571 | 59 | 0.506925 | 117 | 722 | 3.128205 | 0.324786 | 0.087432 | 0.087432 | 0.098361 | 0.13388 | 0.106557 | 0 | 0 | 0 | 0 | 0 | 0.026565 | 0.270083 | 722 | 34 | 60 | 21.235294 | 0.667932 | 0.022161 | 0 | 0 | 0 | 0 | 0.283159 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137931 | false | 0 | 0 | 0.137931 | 0.275862 | 0.206897 | 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 | 1 | 0 | 0 | 0 | 1 |
94710d9fc08d583f01866bc48d784b361bc959a7 | 2,467 | py | Python | Task/Sokoban/Python/sokoban.py | LaudateCorpus1/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | 1 | 2018-11-09T22:08:38.000Z | 2018-11-09T22:08:38.000Z | Task/Sokoban/Python/sokoban.py | seanwallawalla-forks/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | null | null | null | Task/Sokoban/Python/sokoban.py | seanwallawalla-forks/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | 1 | 2018-11-09T22:08:40.000Z | 2018-11-09T22:08:40.000Z | from array import array
from collections import deque
import psyco
data = []
nrows = 0
px = py = 0
sdata = ""
ddata = ""
def init(board):
global data, nrows, sdata, ddata, px, py
data = filter(None, board.splitlines())
nrows = max(len(r) for r in data)
maps = {' ':' ', '.': '.', '@':' ', '#':'#', '$'... | 25.43299 | 65 | 0.398865 | 301 | 2,467 | 3.259136 | 0.255814 | 0.021407 | 0.03262 | 0.040775 | 0.304791 | 0.231397 | 0.178389 | 0.124363 | 0.085627 | 0.085627 | 0 | 0.020791 | 0.395622 | 2,467 | 96 | 66 | 25.697917 | 0.637156 | 0 | 0 | 0.101266 | 0 | 0 | 0.049858 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.037975 | null | null | 0.012658 | 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 |
9475e0c18bbe81db935a18b756540e0834fe6a82 | 503 | py | Python | Chapter09/others/convertor.py | PacktPublishing/Machine-Learning-for-Mobile | 89ccd5a8caba5266c5be0a3465e8cb112cbc5a7a | [
"MIT"
] | 13 | 2018-06-28T04:21:55.000Z | 2021-10-05T19:45:48.000Z | Chapter09/screenshots/avinash/convertor.py | PacktPublishing/Machine-Learning-for-Mobile | 89ccd5a8caba5266c5be0a3465e8cb112cbc5a7a | [
"MIT"
] | null | null | null | Chapter09/screenshots/avinash/convertor.py | PacktPublishing/Machine-Learning-for-Mobile | 89ccd5a8caba5266c5be0a3465e8cb112cbc5a7a | [
"MIT"
] | 12 | 2018-12-19T13:59:23.000Z | 2021-08-16T15:47:35.000Z | import tfcoreml as tf_converter
tf_converter.convert(tf_model_path = 'retrained_graph.pb',
mlmodel_path = 'converted.mlmodel',
output_feature_names = ['final_result:0'],
image_input_names = 'input:0',
class_labels = 'retrained_labels.tx... | 41.916667 | 63 | 0.475149 | 49 | 503 | 4.530612 | 0.653061 | 0.067568 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039007 | 0.439364 | 503 | 11 | 64 | 45.727273 | 0.748227 | 0 | 0 | 0 | 0 | 0 | 0.151093 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.090909 | 0 | 0.090909 | 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 |
94763e73690878ccbfb0b93a8b2aa9df65644db9 | 5,567 | py | Python | pythem-master/pythem/modules/fuzzer.py | Marzooq13579/Hack-Gadgets | 4b9351c4465f3e01fb0390b1e86dfe7c26237a19 | [
"MIT"
] | 8 | 2019-02-17T20:11:46.000Z | 2019-10-18T06:27:16.000Z | pythem-master/pythem/modules/fuzzer.py | Marzooq13579/Hack-Gadgets | 4b9351c4465f3e01fb0390b1e86dfe7c26237a19 | [
"MIT"
] | null | null | null | pythem-master/pythem/modules/fuzzer.py | Marzooq13579/Hack-Gadgets | 4b9351c4465f3e01fb0390b1e86dfe7c26237a19 | [
"MIT"
] | 4 | 2019-02-17T23:00:18.000Z | 2019-10-18T06:27:14.000Z | #!/usr/bin/env python2.7
# Copyright (c) 2016-2018 Angelo Moura
#
# This file is part of the program pythem
#
# pythem is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 3 of the
# License, or (at... | 36.86755 | 97 | 0.485181 | 573 | 5,567 | 4.699825 | 0.364747 | 0.048273 | 0.046788 | 0.035648 | 0.313034 | 0.225399 | 0.183067 | 0.183067 | 0.183067 | 0.183067 | 0 | 0.020326 | 0.416742 | 5,567 | 150 | 98 | 37.113333 | 0.809055 | 0.137597 | 0 | 0.486957 | 0 | 0 | 0.173531 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.069565 | null | null | 0.182609 | 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 |
9476f2d76b635e59e675584f63851e269e61905f | 874 | py | Python | attention/utils/metadata.py | fbickfordsmith/attention-iclr | 3b8744fd344ed7e2e360a601be12f12e69892941 | [
"MIT"
] | null | null | null | attention/utils/metadata.py | fbickfordsmith/attention-iclr | 3b8744fd344ed7e2e360a601be12f12e69892941 | [
"MIT"
] | null | null | null | attention/utils/metadata.py | fbickfordsmith/attention-iclr | 3b8744fd344ed7e2e360a601be12f12e69892941 | [
"MIT"
] | null | null | null | """
Define metadata variables used throughout the repository.
"""
import numpy as np
import pandas as pd
from scipy.spatial.distance import squareform
from sklearn.metrics.pairwise import cosine_distances
from ..utils.paths import path_metadata, path_representations, path_results
wnids = np.loadtxt(path_metadata/'ima... | 38 | 75 | 0.803204 | 128 | 874 | 5.273438 | 0.445313 | 0.048889 | 0.02963 | 0.035556 | 0.251852 | 0.077037 | 0 | 0 | 0 | 0 | 0 | 0.005025 | 0.089245 | 874 | 22 | 76 | 39.727273 | 0.842965 | 0.065217 | 0 | 0 | 0 | 0 | 0.10136 | 0.060569 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
9477323d968feefdc5b066b7368d4e3e196160db | 767 | py | Python | Grokking-Algorithms/Greedy/classRoomScheduling.py | javokhirbek1999/AlgorithmsDS | f5f403fed959ac8cf3064c8c852c59f2e67496ab | [
"MIT"
] | 6 | 2021-03-21T02:24:05.000Z | 2021-04-05T01:32:13.000Z | Grokking-Algorithms/Greedy/classRoomScheduling.py | javokhirbek1999/AlgorithmsDS | f5f403fed959ac8cf3064c8c852c59f2e67496ab | [
"MIT"
] | null | null | null | Grokking-Algorithms/Greedy/classRoomScheduling.py | javokhirbek1999/AlgorithmsDS | f5f403fed959ac8cf3064c8c852c59f2e67496ab | [
"MIT"
] | null | null | null |
# The classroom scheduling problem
# Suppose you have a classroom and you want to hold as many classes as possible
# __________________________
#| class | start | end |
#|_______|_________|________|
#| Art | 9:00 am | 10:30am|
#|_______|_________|________|
#| Eng | 9:30am | 10:30am|
#|_______|_________|_____... | 27.392857 | 80 | 0.698827 | 85 | 767 | 4.235294 | 0.541176 | 0.25 | 0.122222 | 0.155556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054348 | 0.160365 | 767 | 27 | 81 | 28.407407 | 0.504658 | 0.624511 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.25 | 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 |
947bb882a6bca2a6316713846edc3e060262afd0 | 656 | py | Python | test/supporting/test_processor.py | holitics/phenome-extensions | 230d1494d0f0d7a1d747cb8af9413df46d8d0e25 | [
"Apache-2.0"
] | 1 | 2019-11-22T18:15:39.000Z | 2019-11-22T18:15:39.000Z | test/supporting/test_processor.py | holitics/phenome-extensions | 230d1494d0f0d7a1d747cb8af9413df46d8d0e25 | [
"Apache-2.0"
] | 1 | 2020-02-29T03:13:39.000Z | 2020-02-29T03:19:29.000Z | test/supporting/test_processor.py | holitics/phenome-extensions | 230d1494d0f0d7a1d747cb8af9413df46d8d0e25 | [
"Apache-2.0"
] | null | null | null | # test_processor.py, Copyright (c) 2019, Phenome Project - Nicholas Saparoff <nick.saparoff@gmail.com>
from phenome_core.core.base.base_processor import BaseProcessor
class TestProcessor(BaseProcessor):
__test__ = False
def __init__(self):
super(TestProcessor, self).__init__()
def process(self... | 22.62069 | 102 | 0.685976 | 77 | 656 | 5.584416 | 0.584416 | 0.062791 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018 | 0.237805 | 656 | 28 | 103 | 23.428571 | 0.842 | 0.253049 | 0 | 0 | 0 | 0 | 0.020619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.583333 | 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 |
947d9383137b613729b449880f7118b84411c66a | 344 | py | Python | Pyspark_Sample_ML_programs/simpleapp.py | mihaque313/pyspark_mllib | 8342108384d15b7f2169aff190038e176d7533a9 | [
"Apache-2.0"
] | 7 | 2018-01-31T07:44:13.000Z | 2021-09-17T11:07:08.000Z | Pyspark_Sample_ML_programs/simpleapp.py | mihaque313/pyspark_mllib | 8342108384d15b7f2169aff190038e176d7533a9 | [
"Apache-2.0"
] | 2 | 2017-11-24T05:57:47.000Z | 2021-06-29T10:42:24.000Z | Pyspark_Sample_ML_programs/simpleapp.py | mihaque313/pyspark_mllib | 8342108384d15b7f2169aff190038e176d7533a9 | [
"Apache-2.0"
] | 6 | 2017-11-02T12:28:37.000Z | 2019-07-06T08:03:33.000Z | from pyspark import SparkContext
logFile = "D:/Spark/spark-1.6.1-bin-hadoop2.6/README.md"
sc = SparkContext("local", "Simple App")
logData = sc.textFile(logFile).cache()
numAs = logData.filter(lambda s: 'a' in s).count()
numBs = logData.filter(lambda s: 'b' in s).count()
print("Lines with a: %i, lines with ... | 34.4 | 60 | 0.671512 | 55 | 344 | 4.2 | 0.6 | 0.112554 | 0.164502 | 0.17316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017065 | 0.148256 | 344 | 10 | 60 | 34.4 | 0.771331 | 0 | 0 | 0 | 0 | 0.142857 | 0.282738 | 0.130952 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.142857 | 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 |
9482473a1126c6399fbe546129eda6043f695cbf | 490 | py | Python | scg-scrape.py | josteinstraume/python-capstone | a7cf2e3d6e0cf83686b999f9877d06446c1176af | [
"BSD-3-Clause"
] | 1 | 2017-09-01T22:54:00.000Z | 2017-09-01T22:54:00.000Z | scg-scrape.py | josteinstraume/python-capstone | a7cf2e3d6e0cf83686b999f9877d06446c1176af | [
"BSD-3-Clause"
] | null | null | null | scg-scrape.py | josteinstraume/python-capstone | a7cf2e3d6e0cf83686b999f9877d06446c1176af | [
"BSD-3-Clause"
] | null | null | null | import urllib, csv, numpy
from BeautifulSoup import *
url = raw_input('Enter URL to crawl: ')
if len(url) < 1:
url = 'http://sales.starcitygames.com//deckdatabase/deckshow.php?&t%5BC1%5D=3&start_num=0&start_num=0&limit=limit'
html = urllib.urlopen(url).read()
soup = BeautifulSoup(html)
# Retrieve all of the anchor ... | 27.222222 | 115 | 0.685714 | 77 | 490 | 4.324675 | 0.649351 | 0.048048 | 0.054054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019277 | 0.153061 | 490 | 17 | 116 | 28.823529 | 0.783133 | 0.063265 | 0 | 0 | 0 | 0.076923 | 0.33698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.153846 | null | null | 0.307692 | 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 |
948d415b98380c188931709b7710a872ebb746cb | 263 | py | Python | client.py | mguidon/socket-logger | ff74a7974a2965794a4b90068b9ecb4aedf95346 | [
"MIT"
] | null | null | null | client.py | mguidon/socket-logger | ff74a7974a2965794a4b90068b9ecb4aedf95346 | [
"MIT"
] | null | null | null | client.py | mguidon/socket-logger | ff74a7974a2965794a4b90068b9ecb4aedf95346 | [
"MIT"
] | null | null | null | import socketio
sio = socketio.Client()
@sio.event
def connect():
print('connection established')
@sio.event
def log(data):
print(data)
@sio.event
def disconnect():
print('disconnected from server')
sio.connect('http://localhost:8080')
sio.wait() | 14.611111 | 37 | 0.69962 | 34 | 263 | 5.411765 | 0.588235 | 0.130435 | 0.179348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017778 | 0.144487 | 263 | 18 | 38 | 14.611111 | 0.8 | 0 | 0 | 0.230769 | 0 | 0 | 0.253788 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0 | 0.307692 | 0.230769 | 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 |
84699eaf44ad2cc9577c8cecad8b2d9e9e2a0a25 | 355 | py | Python | example.py | badmutex/CoPipes | b329a381f0dbaef238b9e36c7103fd72bee80138 | [
"BSD-2-Clause"
] | 1 | 2020-11-27T23:18:58.000Z | 2020-11-27T23:18:58.000Z | example.py | badi/CoPipes | b329a381f0dbaef238b9e36c7103fd72bee80138 | [
"BSD-2-Clause"
] | null | null | null | example.py | badi/CoPipes | b329a381f0dbaef238b9e36c7103fd72bee80138 | [
"BSD-2-Clause"
] | null | null | null | from copipes import coroutine, pipeline, null
from copipes.macros.pipe import pipe
@pipe
def putStrLn():
"""doc"""
[x]
print x
send(x)
@pipe
def replicate(n):
[x]
for i in xrange(n):
send(x)
if __name__ == '__main__':
pipeline(
putStrLn,
replicate.params(3),
... | 14.791667 | 45 | 0.574648 | 45 | 355 | 4.355556 | 0.622222 | 0.112245 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011952 | 0.292958 | 355 | 23 | 46 | 15.434783 | 0.768924 | 0 | 0 | 0.444444 | 0 | 0 | 0.023121 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | 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 |
846eee9785f4109a7b7f8c3840b04ea8fc5f8ad8 | 8,187 | py | Python | sliceMaker.py | longnow/longview | 9345faacec64f427eab43790abc165af6a572e3d | [
"BSD-2-Clause"
] | 82 | 2015-01-23T04:20:31.000Z | 2022-02-18T22:33:53.000Z | sliceMaker.py | longnow/longview | 9345faacec64f427eab43790abc165af6a572e3d | [
"BSD-2-Clause"
] | 2 | 2015-03-27T22:24:46.000Z | 2017-02-20T08:19:12.000Z | sliceMaker.py | longnow/longview | 9345faacec64f427eab43790abc165af6a572e3d | [
"BSD-2-Clause"
] | 7 | 2015-06-04T20:37:02.000Z | 2021-03-10T02:41:08.000Z | #!/usr/bin/env python
# Copyright (c) 02004, The Long Now Foundation
# 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
# ... | 34.544304 | 117 | 0.623183 | 907 | 8,187 | 5.512679 | 0.339581 | 0.0216 | 0.022 | 0.0108 | 0.1604 | 0.1128 | 0.1128 | 0.07 | 0.0548 | 0.0548 | 0 | 0.011956 | 0.284842 | 8,187 | 236 | 118 | 34.690678 | 0.842015 | 0.224136 | 0 | 0.128788 | 0 | 0 | 0.07554 | 0.004111 | 0 | 0 | 0.002056 | 0 | 0 | 0 | null | null | 0 | 0.045455 | null | null | 0.022727 | 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 |
8479d2ec291f95cbf616deccc6b6e4ba086c6d91 | 973 | py | Python | generation_rs/process_output.py | microsoft/MRS | 1213bf21b1f76d9822e0426dfd81222112a40e05 | [
"MIT"
] | 2 | 2021-08-11T18:00:33.000Z | 2021-09-04T09:38:05.000Z | generation_rs/process_output.py | microsoft/MRS | 1213bf21b1f76d9822e0426dfd81222112a40e05 | [
"MIT"
] | null | null | null | generation_rs/process_output.py | microsoft/MRS | 1213bf21b1f76d9822e0426dfd81222112a40e05 | [
"MIT"
] | 1 | 2021-09-13T12:29:10.000Z | 2021-09-13T12:29:10.000Z | """Convert the output format of fairseq.generate to the input format of the evaluation script."""
from argparse import ArgumentParser
from collections import defaultdict
def main():
parser = ArgumentParser()
parser.add_argument('src', help='path to source')
parser.add_argument('tgt', help='path to target... | 32.433333 | 97 | 0.605344 | 138 | 973 | 4.173913 | 0.442029 | 0.046875 | 0.088542 | 0.052083 | 0.065972 | 0.065972 | 0 | 0 | 0 | 0 | 0 | 0.001361 | 0.244604 | 973 | 29 | 98 | 33.551724 | 0.782313 | 0.093525 | 0 | 0 | 1 | 0 | 0.098174 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.086957 | 0 | 0.130435 | 0.043478 | 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 |
847c54faa0fb9230a80f8d346585c5ab5678996e | 2,118 | py | Python | home/views.py | pantsocksboots/rackandstack | 9681da91fbaac08a83b008e4632c9ba876f0f5c5 | [
"MIT"
] | null | null | null | home/views.py | pantsocksboots/rackandstack | 9681da91fbaac08a83b008e4632c9ba876f0f5c5 | [
"MIT"
] | 5 | 2022-02-05T00:10:27.000Z | 2022-03-23T19:45:38.000Z | home/views.py | pantsocksboots/rackandstack | 9681da91fbaac08a83b008e4632c9ba876f0f5c5 | [
"MIT"
] | null | null | null | from django.http import HttpResponseRedirect
from django.shortcuts import get_object_or_404
from django.template.response import TemplateResponse
from rubric.models import Evolution
from stucon.models import Student
from gradebook.models import ObjectiveScore, TraitScore
from django.contrib.auth.forms import PasswordCh... | 37.157895 | 102 | 0.695467 | 244 | 2,118 | 5.827869 | 0.29918 | 0.037975 | 0.059072 | 0.048523 | 0.206048 | 0.063291 | 0.063291 | 0 | 0 | 0 | 0 | 0.001777 | 0.203022 | 2,118 | 57 | 103 | 37.157895 | 0.84064 | 0 | 0 | 0.08 | 0 | 0 | 0.127419 | 0.021708 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06 | false | 0.14 | 0.2 | 0.02 | 0.34 | 0.02 | 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 |
848440f9712c0a01ee428394d7d4cc5695b4f759 | 1,855 | py | Python | assignment/pubsub.py | nilaysaha/multitasking | a87eb24c81e7a784f278eff8209e9356c8da9754 | [
"Apache-2.0"
] | null | null | null | assignment/pubsub.py | nilaysaha/multitasking | a87eb24c81e7a784f278eff8209e9356c8da9754 | [
"Apache-2.0"
] | null | null | null | assignment/pubsub.py | nilaysaha/multitasking | a87eb24c81e7a784f278eff8209e9356c8da9754 | [
"Apache-2.0"
] | null | null | null | #!/bin/python3
import os, amqp
USERNAME=os.environ['MQTT_USERNAME']
PASSWORD=os.environ['MQTT_PASSWORD']
AMQP_URL=f"amqp://{MQTT_USERNAME}:{MQTT_PASSWORD}@finch.rmq.cloudamqp.com/wwarpzsg"
class PubSub:
def __init__(self, url=AMQP_URL):
this.connection = amqp.Connection(url)
this.channels = {}
... | 31.440678 | 83 | 0.632884 | 244 | 1,855 | 4.602459 | 0.340164 | 0.085485 | 0.087266 | 0.085485 | 0.120214 | 0.104185 | 0.060552 | 0.060552 | 0.060552 | 0 | 0 | 0.000719 | 0.250674 | 1,855 | 58 | 84 | 31.982759 | 0.807194 | 0.014016 | 0 | 0.136364 | 0 | 0 | 0.097975 | 0.038862 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.045455 | 0.022727 | null | null | 0.045455 | 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 |
8487557b661ba93e451a0dbc3862a8a6a3503d2d | 578 | py | Python | assembler/arguments.py | ITD27M01/hack-assembler | 58f691adf979106209b407be08c7d31b59088957 | [
"Apache-2.0"
] | 1 | 2021-01-18T07:31:39.000Z | 2021-01-18T07:31:39.000Z | assembler/arguments.py | ITD27M01/hack-assembler | 58f691adf979106209b407be08c7d31b59088957 | [
"Apache-2.0"
] | null | null | null | assembler/arguments.py | ITD27M01/hack-assembler | 58f691adf979106209b407be08c7d31b59088957 | [
"Apache-2.0"
] | null | null | null | import argparse
def args_parser():
parser = argparse.ArgumentParser(description='Generates hack machine binary code from symbolic form.')
parser.add_argument('file', type=str, action='store',
help='File path with assembly code')
parser.add_argument('--debug', default=False, action... | 36.125 | 106 | 0.645329 | 67 | 578 | 5.462687 | 0.58209 | 0.07377 | 0.139344 | 0.125683 | 0.169399 | 0.169399 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238754 | 578 | 15 | 107 | 38.533333 | 0.831818 | 0 | 0 | 0 | 1 | 0 | 0.342561 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.3 | 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 |
84888b176eb03a9243b2cb5e2358400c50f22984 | 479 | py | Python | pyGLLib/light.py | juanmcasillas/pyGLLib | eb91e5f50ed2e05b7822de8a7125e57eafa91eca | [
"Apache-2.0"
] | null | null | null | pyGLLib/light.py | juanmcasillas/pyGLLib | eb91e5f50ed2e05b7822de8a7125e57eafa91eca | [
"Apache-2.0"
] | null | null | null | pyGLLib/light.py | juanmcasillas/pyGLLib | eb91e5f50ed2e05b7822de8a7125e57eafa91eca | [
"Apache-2.0"
] | null | null | null |
# ///////////////////////////////////////////////////////////////////////////
#
#
#
# ///////////////////////////////////////////////////////////////////////////
class GLLight:
def __init__(self, pos=(0.0,0.0,0.0), color=(1.0,1.0,1.0)):
self.pos = pos
self.color = color
self.ambient = (1.0... | 26.611111 | 77 | 0.334029 | 54 | 479 | 2.888889 | 0.314815 | 0.128205 | 0.115385 | 0.153846 | 0.205128 | 0.166667 | 0.128205 | 0 | 0 | 0 | 0 | 0.089431 | 0.229645 | 479 | 17 | 78 | 28.176471 | 0.333333 | 0.340292 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
848bcf190a3b0c3ad5ed94d7892b725d609ef60b | 1,105 | py | Python | map/forms.py | mpbrown/buffalo-community-engagement-map | 04cba068de9a22db4fe8708d1bd3c10d5a6adfbd | [
"MIT"
] | 1 | 2021-04-11T16:40:31.000Z | 2021-04-11T16:40:31.000Z | map/forms.py | mpbrown/buffalo-community-engagement-map | 04cba068de9a22db4fe8708d1bd3c10d5a6adfbd | [
"MIT"
] | null | null | null | map/forms.py | mpbrown/buffalo-community-engagement-map | 04cba068de9a22db4fe8708d1bd3c10d5a6adfbd | [
"MIT"
] | null | null | null | from django import forms
class EmailOrganizationForm(forms.Form):
organization_name = forms.CharField(label="Organization you'd be most interested in working with")
why_interesting = forms.CharField(
label="Write one sentence about why this organization is interesting. How does it/could it connect to ... | 40.925926 | 123 | 0.721267 | 142 | 1,105 | 5.542254 | 0.422535 | 0.124524 | 0.168996 | 0.087675 | 0.288437 | 0.212198 | 0.101652 | 0 | 0 | 0 | 0 | 0.003297 | 0.176471 | 1,105 | 26 | 124 | 42.5 | 0.861538 | 0 | 0 | 0.176471 | 0 | 0.058824 | 0.39276 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.647059 | 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 |
848d88b5383b8a146bb61bbf80914cbd12720899 | 1,163 | py | Python | demo.py | itsrobli/depreciation-rate-classifier | ab1ef346d577a3ee64d200ee41e097bba12f6b14 | [
"BSD-3-Clause"
] | null | null | null | demo.py | itsrobli/depreciation-rate-classifier | ab1ef346d577a3ee64d200ee41e097bba12f6b14 | [
"BSD-3-Clause"
] | null | null | null | demo.py | itsrobli/depreciation-rate-classifier | ab1ef346d577a3ee64d200ee41e097bba12f6b14 | [
"BSD-3-Clause"
] | null | null | null | # 25 February 2019 - Robert Li <robertwli@gmail.com>
import sys
from src.text_classifier_deprn_rates import DeprnPredictor
predict = DeprnPredictor()
print('Evaluate using user input.\n')
user_description = ['']
print('\"QQ\" to quit.')
print('\"CR\" to see classification report.')
print('Otherwise...')
while True... | 33.228571 | 81 | 0.625107 | 145 | 1,163 | 4.868966 | 0.462069 | 0.127479 | 0.056657 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006486 | 0.204643 | 1,163 | 34 | 82 | 34.205882 | 0.756757 | 0.042992 | 0 | 0 | 0 | 0 | 0.357336 | 0.066607 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0.464286 | 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 |
849193606996f031236d222d383c8ca454a60778 | 796 | py | Python | django_slack/templatetags/django_slack.py | lociii/django-slack | 409521f427a68d12ad7e7ac3e19d517d2ba131ba | [
"BSD-3-Clause"
] | 237 | 2015-01-24T01:03:13.000Z | 2022-03-31T16:38:06.000Z | django_slack/templatetags/django_slack.py | lociii/django-slack | 409521f427a68d12ad7e7ac3e19d517d2ba131ba | [
"BSD-3-Clause"
] | 106 | 2015-02-25T12:09:02.000Z | 2022-03-31T09:57:31.000Z | django_slack/templatetags/django_slack.py | lociii/django-slack | 409521f427a68d12ad7e7ac3e19d517d2ba131ba | [
"BSD-3-Clause"
] | 83 | 2015-02-11T15:20:19.000Z | 2022-03-30T01:58:16.000Z | from django import template
from django.utils.encoding import force_str
from django.utils.functional import keep_lazy
from django.utils.safestring import SafeText, mark_safe
from django.template.defaultfilters import stringfilter
register = template.Library()
_slack_escapes = {
ord('&'): u'&',
ord('<'): u... | 28.428571 | 80 | 0.73995 | 107 | 796 | 5.373832 | 0.579439 | 0.086957 | 0.078261 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145729 | 796 | 27 | 81 | 29.481481 | 0.845588 | 0.311558 | 0 | 0 | 0 | 0 | 0.030769 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.3125 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
84977020945cbac5f5269bef5d81627f58f39aa2 | 293 | py | Python | 2/solution-a.py | gmodena/adventofcode2017 | 6fb72b2220f38e5f65b04f491c8787f1b999ba60 | [
"Unlicense"
] | 1 | 2017-12-08T21:36:50.000Z | 2017-12-08T21:36:50.000Z | 2/solution-a.py | gmodena/adventofcode2017 | 6fb72b2220f38e5f65b04f491c8787f1b999ba60 | [
"Unlicense"
] | null | null | null | 2/solution-a.py | gmodena/adventofcode2017 | 6fb72b2220f38e5f65b04f491c8787f1b999ba60 | [
"Unlicense"
] | null | null | null | if __name__ == '__main__':
checksum = 0
while True:
try:
numbers = input()
except EOFError:
break
numbers = map(int, numbers.split('\t'))
numbers = sorted(numbers)
checksum += numbers[-1] - numbers[0]
print(checksum)
| 24.416667 | 47 | 0.522184 | 29 | 293 | 5 | 0.689655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015957 | 0.358362 | 293 | 11 | 48 | 26.636364 | 0.755319 | 0 | 0 | 0 | 0 | 0 | 0.03413 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.090909 | 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 |
84ab6e8a9d52009482f08103bea85204c90f5e58 | 383 | py | Python | cp_validator/__init__.py | klashxx/cp_validator | 17dcb0a5b999190add1c6139101694e514d43676 | [
"MIT"
] | null | null | null | cp_validator/__init__.py | klashxx/cp_validator | 17dcb0a5b999190add1c6139101694e514d43676 | [
"MIT"
] | null | null | null | cp_validator/__init__.py | klashxx/cp_validator | 17dcb0a5b999190add1c6139101694e514d43676 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import sys
__author__ = 'Juan Diego Godoy Robles'
__version__ = '0.1'
__ppath__ = os.path.dirname(os.path.realpath(__file__))
if __ppath__ not in sys.path:
sys.path.append(os.path.dirname(__ppath__))
from flask import Flask
app = Flask(__name__)
from cp_validator import extract... | 20.157895 | 55 | 0.751958 | 56 | 383 | 4.589286 | 0.607143 | 0.070039 | 0.101167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009063 | 0.13577 | 383 | 18 | 56 | 21.277778 | 0.767372 | 0.05483 | 0 | 0 | 0 | 0 | 0.072222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
84adba39a6a4c0e1a2f47db291c44ae8499e12cc | 513 | py | Python | common/helpers/client_helpers.py | srrokib/aws-cloudformation-resource-providers-frauddetector | 08c049a57e4f9d54666ef7bc250d878853be3cd4 | [
"Apache-2.0"
] | 4 | 2021-05-24T05:35:05.000Z | 2021-11-08T09:43:48.000Z | common/helpers/client_helpers.py | srrokib/aws-cloudformation-resource-providers-frauddetector | 08c049a57e4f9d54666ef7bc250d878853be3cd4 | [
"Apache-2.0"
] | 3 | 2021-04-29T20:30:17.000Z | 2021-05-14T16:28:19.000Z | common/helpers/client_helpers.py | srrokib/aws-cloudformation-resource-providers-frauddetector | 08c049a57e4f9d54666ef7bc250d878853be3cd4 | [
"Apache-2.0"
] | 3 | 2021-04-07T16:03:03.000Z | 2021-10-30T03:25:33.000Z | from cloudformation_cli_python_lib import (
SessionProxy,
exceptions,
)
# Use this global and use `afd_client = get_singleton_afd_client(session)` for singleton
afd_client = None
def get_singleton_afd_client(session):
global afd_client
if afd_client is not None:
return afd_client
if isins... | 28.5 | 88 | 0.746589 | 65 | 513 | 5.646154 | 0.492308 | 0.220708 | 0.147139 | 0.114441 | 0.152589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191033 | 513 | 17 | 89 | 30.176471 | 0.884337 | 0.167641 | 0 | 0.153846 | 0 | 0 | 0.129412 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.307692 | 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 |
84af899d6b5f8151362343ed14a77e305bd145de | 9,116 | py | Python | flask_unchained/bundles/security/config.py | briancappello/flask-unchained | bff296b5c808f5b1db10f7dddb81054600545749 | [
"MIT"
] | 69 | 2018-10-10T01:59:11.000Z | 2022-03-29T17:29:30.000Z | flask_unchained/bundles/security/config.py | briancappello/flask-unchained | bff296b5c808f5b1db10f7dddb81054600545749 | [
"MIT"
] | 18 | 2018-11-17T12:42:02.000Z | 2021-05-22T18:45:27.000Z | flask_unchained/bundles/security/config.py | briancappello/flask-unchained | bff296b5c808f5b1db10f7dddb81054600545749 | [
"MIT"
] | 7 | 2018-10-12T16:20:25.000Z | 2021-10-06T12:18:21.000Z | from datetime import datetime, timezone
from flask import abort
from flask_unchained import BundleConfig
from http import HTTPStatus
from .forms import (
LoginForm,
RegisterForm,
ForgotPasswordForm,
ResetPasswordForm,
ChangePasswordForm,
SendConfirmationForm,
)
from .models import AnonymousUser... | 27.130952 | 85 | 0.672554 | 1,058 | 9,116 | 5.646503 | 0.258979 | 0.011048 | 0.020087 | 0.022598 | 0.290425 | 0.234851 | 0.20472 | 0.180783 | 0.154335 | 0.154335 | 0 | 0.003082 | 0.252523 | 9,116 | 335 | 86 | 27.21194 | 0.873643 | 0.06176 | 0 | 0.036585 | 0 | 0 | 0.083925 | 0.035517 | 0 | 0 | 0 | 0.002985 | 0 | 1 | 0 | false | 0.280488 | 0.073171 | 0 | 0.743902 | 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 |
84b76a8676a19ebc9fa379b48d1d23747d4e43c3 | 6,256 | py | Python | monkPriorityList.py | skasch/ffxiv-sim | eb69fa55a8004f064937eeaffec8f1c7e31f7db8 | [
"MIT"
] | null | null | null | monkPriorityList.py | skasch/ffxiv-sim | eb69fa55a8004f064937eeaffec8f1c7e31f7db8 | [
"MIT"
] | null | null | null | monkPriorityList.py | skasch/ffxiv-sim | eb69fa55a8004f064937eeaffec8f1c7e31f7db8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue May 31 17:02:24 2016
@author: rmondoncancel
"""
# Deprecated
priorityList = [
{
'name': 'fistOfFire',
'group': 'monk',
'prepull': True,
'condition': {
'type': 'buffPresent',
'name': 'fistOfFire',
'compa... | 24.825397 | 47 | 0.307385 | 292 | 6,256 | 6.585616 | 0.226027 | 0.081123 | 0.114925 | 0.120125 | 0.525221 | 0.483099 | 0.483099 | 0.406656 | 0.349454 | 0.316173 | 0 | 0.008245 | 0.534687 | 6,256 | 251 | 48 | 24.924303 | 0.652353 | 0.014866 | 0 | 0.570248 | 0 | 0 | 0.290543 | 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 | 1 | 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 |
84b7a85139287ab51f816065cf0d6ff27012f826 | 2,740 | py | Python | robotto.py | sectrimte/pkmn_robotto | 4c9e4bbcf91e96ca4e8808c5f7d2d0a235016e69 | [
"Apache-2.0"
] | null | null | null | robotto.py | sectrimte/pkmn_robotto | 4c9e4bbcf91e96ca4e8808c5f7d2d0a235016e69 | [
"Apache-2.0"
] | null | null | null | robotto.py | sectrimte/pkmn_robotto | 4c9e4bbcf91e96ca4e8808c5f7d2d0a235016e69 | [
"Apache-2.0"
] | null | null | null | import pyautogui
import random
from state import State
import time
fight_screen_bg_color = [52, 52, 52]
fight_screen_blank_xy = [533,733]
button_run_xy = [486, 755]
def path_circle_by_sizes(height, length):
path = ['right']*length + ['down']*height + ['left']*length + ['up']*height
return path
... | 26.346154 | 130 | 0.583212 | 330 | 2,740 | 4.672727 | 0.318182 | 0.068093 | 0.032425 | 0.048638 | 0.297017 | 0.26978 | 0.26978 | 0.230869 | 0.170558 | 0.170558 | 0 | 0.024454 | 0.29854 | 2,740 | 104 | 131 | 26.346154 | 0.777836 | 0.060584 | 0 | 0.267606 | 0 | 0 | 0.056772 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.014085 | 0.056338 | null | null | 0.028169 | 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 |
84b947747158c22cea0ee583bdecc74083bcd0ad | 2,209 | py | Python | accounts/tests.py | HerbyDE/jagdreisencheck-webapp | 9af5deda2423b787da88a0c893f3c474d8e4f73f | [
"BSD-3-Clause"
] | null | null | null | accounts/tests.py | HerbyDE/jagdreisencheck-webapp | 9af5deda2423b787da88a0c893f3c474d8e4f73f | [
"BSD-3-Clause"
] | null | null | null | accounts/tests.py | HerbyDE/jagdreisencheck-webapp | 9af5deda2423b787da88a0c893f3c474d8e4f73f | [
"BSD-3-Clause"
] | null | null | null | from django.contrib.auth.hashers import check_password
from django.test import TestCase
from accounts.forms import CreateBaseUserInstance
from accounts.models import User
# Unit tests for SignUp and Registration
class UserManagementTestCase(TestCase):
def test_create_base_user_form(self):
'''
Te... | 35.063492 | 120 | 0.616569 | 236 | 2,209 | 5.605932 | 0.394068 | 0.030234 | 0.040816 | 0.07483 | 0.33031 | 0.303855 | 0.269085 | 0.269085 | 0.269085 | 0.269085 | 0 | 0.007595 | 0.284744 | 2,209 | 63 | 121 | 35.063492 | 0.829747 | 0.17474 | 0 | 0.428571 | 0 | 0 | 0.244571 | 0.056571 | 0 | 0 | 0 | 0 | 0.119048 | 1 | 0.047619 | false | 0.166667 | 0.095238 | 0 | 0.166667 | 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 |
84ba755e68d6f8aed3b5d61cd0febbfe9a2346b4 | 3,971 | py | Python | hio-yocto-bsp/sources/poky/scripts/lib/mic/3rdparty/pykickstart/commands/multipath.py | qiangzai00001/hio-prj | 060ff97fe21093b1369db78109d5b730b2b181c8 | [
"MIT"
] | null | null | null | hio-yocto-bsp/sources/poky/scripts/lib/mic/3rdparty/pykickstart/commands/multipath.py | qiangzai00001/hio-prj | 060ff97fe21093b1369db78109d5b730b2b181c8 | [
"MIT"
] | null | null | null | hio-yocto-bsp/sources/poky/scripts/lib/mic/3rdparty/pykickstart/commands/multipath.py | qiangzai00001/hio-prj | 060ff97fe21093b1369db78109d5b730b2b181c8 | [
"MIT"
] | null | null | null | #
# Chris Lumens <clumens@redhat.com>
# Peter Jones <pjones@redhat.com>
#
# Copyright 2006, 2007 Red Hat, Inc.
#
# This copyrighted material is made available to anyone wishing to use, modify,
# copy, or redistribute it subject to the terms and conditions of the GNU
# General Public License v.2. This program is distri... | 35.455357 | 162 | 0.636867 | 479 | 3,971 | 5.150313 | 0.361169 | 0.019457 | 0.021078 | 0.030807 | 0.193758 | 0.172679 | 0.137819 | 0.137819 | 0.137819 | 0.10458 | 0 | 0.010753 | 0.250567 | 3,971 | 111 | 163 | 35.774775 | 0.818212 | 0.238983 | 0 | 0.225352 | 0 | 0 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.056338 | 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 |
84be222814483ab383927adcdabea5a7a57603ff | 9,142 | py | Python | tests/samples/test_sample.py | FoxoTech/methylcheck | 881d14d78e6086aab184716e0b79cdf87e9be8bf | [
"MIT"
] | 1 | 2020-07-30T14:16:47.000Z | 2020-07-30T14:16:47.000Z | tests/samples/test_sample.py | FoxoTech/methylcheck | 881d14d78e6086aab184716e0b79cdf87e9be8bf | [
"MIT"
] | 11 | 2021-04-08T16:14:54.000Z | 2022-03-09T00:22:13.000Z | tests/samples/test_sample.py | FoxoTech/methylcheck | 881d14d78e6086aab184716e0b79cdf87e9be8bf | [
"MIT"
] | 1 | 2022-02-10T09:06:45.000Z | 2022-02-10T09:06:45.000Z | import methylcheck
import pandas as pd
import methylprep # for manifest support
from pathlib import Path
PATH = Path('docs/example_data/mouse')
class TestProcessedSample():
manifest = methylprep.Manifest(methylprep.ArrayType('mouse'))
manifest_mouse_design_types = dict(manifest.mouse_data_frame['design'].value... | 57.496855 | 261 | 0.654233 | 1,245 | 9,142 | 4.570281 | 0.15502 | 0.059754 | 0.042179 | 0.044991 | 0.715817 | 0.684886 | 0.662566 | 0.650615 | 0.648858 | 0.641652 | 0 | 0.033742 | 0.215489 | 9,142 | 158 | 262 | 57.860759 | 0.759621 | 0.220083 | 0 | 0.469565 | 0 | 0.017391 | 0.211313 | 0.019185 | 0 | 0 | 0 | 0 | 0.086957 | 1 | 0.043478 | false | 0 | 0.034783 | 0 | 0.113043 | 0.113043 | 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 |
84c335fc458875fff1f67c92200084f00cd6ddd4 | 420 | py | Python | server/apps/api/migrations/0002_allow_null.py | m3xan1k/censortracker_backend | 998f71efd65d7d1e02c0aecd20b7a59e0df35fd0 | [
"MIT"
] | null | null | null | server/apps/api/migrations/0002_allow_null.py | m3xan1k/censortracker_backend | 998f71efd65d7d1e02c0aecd20b7a59e0df35fd0 | [
"MIT"
] | null | null | null | server/apps/api/migrations/0002_allow_null.py | m3xan1k/censortracker_backend | 998f71efd65d7d1e02c0aecd20b7a59e0df35fd0 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.5 on 2020-04-20 15:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='domain',
name='client_ip',
fi... | 22.105263 | 96 | 0.609524 | 46 | 420 | 5.478261 | 0.782609 | 0.079365 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062092 | 0.271429 | 420 | 18 | 97 | 23.333333 | 0.761438 | 0.107143 | 0 | 0 | 1 | 0 | 0.104558 | 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 |
84d06320c996d5932ddb1765740ed2bedba84b6f | 2,842 | py | Python | noronha/db/movers.py | pierodesenzi/noronha | ee7cba8d0d29d0dc5484d2000e1a42c9954c20e4 | [
"Apache-2.0"
] | 43 | 2021-04-14T00:41:15.000Z | 2022-01-02T23:32:58.000Z | noronha/db/movers.py | pierodesenzi/noronha | ee7cba8d0d29d0dc5484d2000e1a42c9954c20e4 | [
"Apache-2.0"
] | 19 | 2021-04-14T00:35:21.000Z | 2022-01-12T14:24:48.000Z | noronha/db/movers.py | pierodesenzi/noronha | ee7cba8d0d29d0dc5484d2000e1a42c9954c20e4 | [
"Apache-2.0"
] | 8 | 2021-04-14T00:31:02.000Z | 2022-01-02T23:33:08.000Z | # -*- coding: utf-8 -*-
# Copyright Noronha Development Team
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 34.240964 | 106 | 0.732935 | 311 | 2,842 | 6.572347 | 0.414791 | 0.037671 | 0.02544 | 0.015656 | 0.344423 | 0.344423 | 0.299413 | 0.26908 | 0.26908 | 0.229941 | 0 | 0.00215 | 0.181562 | 2,842 | 82 | 107 | 34.658537 | 0.876612 | 0.213934 | 0 | 0.418605 | 0 | 0 | 0.006323 | 0 | 0 | 0 | 0 | 0.012195 | 0 | 1 | 0.069767 | false | 0 | 0.162791 | 0 | 0.860465 | 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 |
84d217b619e298e8238b55059389e2293157ea76 | 3,852 | py | Python | Lib/background.py | ProjectZeroDays/Pyto | d5d77f3541f329bbb28142d18606b22f115b7df6 | [
"MIT"
] | 2 | 2020-08-25T13:55:00.000Z | 2020-08-25T16:36:03.000Z | Lib/background.py | ProjectZeroDays/Pyto | d5d77f3541f329bbb28142d18606b22f115b7df6 | [
"MIT"
] | null | null | null | Lib/background.py | ProjectZeroDays/Pyto | d5d77f3541f329bbb28142d18606b22f115b7df6 | [
"MIT"
] | null | null | null | """
Run code in background indefinitely
This module allows you to keep running a script in the background indefinitely.
A great usage of this is fetching data in background and sending notifications with :py:mod:`notifications`. You can also run a server or a Discord bot for example.
Note: Because of privacy, apps ca... | 28.746269 | 164 | 0.647456 | 485 | 3,852 | 4.913402 | 0.342268 | 0.064624 | 0.067982 | 0.021402 | 0.080151 | 0.037768 | 0.037768 | 0.037768 | 0 | 0 | 0 | 0.004676 | 0.278297 | 3,852 | 133 | 165 | 28.962406 | 0.852518 | 0.408619 | 0 | 0.075472 | 0 | 0 | 0.007407 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.207547 | false | 0.037736 | 0.113208 | 0 | 0.45283 | 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 |
84d93da7a53d5949d64f3873e6e7cfb952e9165e | 2,231 | py | Python | db.py | changwang/knowledge | b5d014de1c9cf70991bd721015db5883ff670cda | [
"MIT"
] | null | null | null | db.py | changwang/knowledge | b5d014de1c9cf70991bd721015db5883ff670cda | [
"MIT"
] | null | null | null | db.py | changwang/knowledge | b5d014de1c9cf70991bd721015db5883ff670cda | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import os
from sqlalchemy import create_engine
from sqlalchemy.orm import scoped_session, sessionmaker
from logger import logger
__all__ = [
'fetch_from_table',
'fetch_one_row',
'TableNotFoundException'
]
DATABASE_PASSWORD = os.getenv('DB_PASSWORD')
DATABASE_URI = 'mysql+pymysql:... | 29.746667 | 121 | 0.701927 | 307 | 2,231 | 4.824104 | 0.315961 | 0.097232 | 0.050641 | 0.048616 | 0.136394 | 0.086428 | 0.086428 | 0.047265 | 0 | 0 | 0 | 0.010509 | 0.189601 | 2,231 | 74 | 122 | 30.148649 | 0.808628 | 0.079337 | 0 | 0.041667 | 0 | 0.020833 | 0.275384 | 0.095097 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.0625 | 0.083333 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
84da5879b36efd297ed4f89e12576786ac06a517 | 318 | py | Python | tool.py | LooDaHu/net_drive | 0e265cef6b70d5e3e4e1b0a6db68d465a8ee2fe8 | [
"MIT"
] | 2 | 2019-12-31T07:47:03.000Z | 2020-01-17T00:00:38.000Z | tool.py | LooDaHu/net_drive | 0e265cef6b70d5e3e4e1b0a6db68d465a8ee2fe8 | [
"MIT"
] | null | null | null | tool.py | LooDaHu/net_drive | 0e265cef6b70d5e3e4e1b0a6db68d465a8ee2fe8 | [
"MIT"
] | null | null | null | import socket
import re
def get_local_adr():
address_set = socket.getaddrinfo(socket.gethostname(), None, family=2)
for address in address_set:
if re.match("192.168.", address[4][0]):
local_network_addr = address[4][0]
return local_network_addr
return "ADDRESS_NOT_FOUND"
| 26.5 | 74 | 0.669811 | 44 | 318 | 4.613636 | 0.613636 | 0.098522 | 0.08867 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044534 | 0.22327 | 318 | 11 | 75 | 28.909091 | 0.777328 | 0 | 0 | 0 | 0 | 0 | 0.078616 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 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 |
84ef25a6781dddc7b93337eee537701562bd82e0 | 886 | py | Python | login_required_middleware.py | IBM/omnia | 588f380e04c697ca9d5ed84822c14b37dad92d27 | [
"Apache-2.0"
] | 1 | 2021-11-25T16:07:38.000Z | 2021-11-25T16:07:38.000Z | login_required_middleware.py | IBM/omnia | 588f380e04c697ca9d5ed84822c14b37dad92d27 | [
"Apache-2.0"
] | null | null | null | login_required_middleware.py | IBM/omnia | 588f380e04c697ca9d5ed84822c14b37dad92d27 | [
"Apache-2.0"
] | null | null | null | from django.contrib.auth.decorators import login_required
from django.urls import reverse
def login_exempt(view):
view.login_exempt = True
return view
class LoginRequiredMiddleware:
def __init__(self, get_response):
self.get_response = get_response
def __call__(self, request):
retur... | 28.580645 | 101 | 0.662528 | 106 | 886 | 5.292453 | 0.433962 | 0.078431 | 0.080214 | 0.064171 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.244921 | 886 | 31 | 102 | 28.580645 | 0.838565 | 0.044018 | 0 | 0.2 | 0 | 0 | 0.062648 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0.05 | 0.65 | 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 |
84ef970c45f901d834ef512adc2e8980501798a3 | 2,296 | py | Python | yoo.py | Bayurzx/translateReadme | 2ffb7ad206b1b8b463dc3859da0281b0a2bbd78c | [
"MIT"
] | null | null | null | yoo.py | Bayurzx/translateReadme | 2ffb7ad206b1b8b463dc3859da0281b0a2bbd78c | [
"MIT"
] | null | null | null | yoo.py | Bayurzx/translateReadme | 2ffb7ad206b1b8b463dc3859da0281b0a2bbd78c | [
"MIT"
] | null | null | null | yoo = {
"af": "Afrikaans",
"sq": "Albanian - shqip",
"am": "Amharic - አማርኛ",
"ar": "Arabic - العربية",
"hy": "Armenian - հայերեն",
"az": "Azerbaijani - azərbaycan dili",
"bn": "Bengali - বাংলা",
"bs": "Bosnian - bosanski",
"bg": "Bulgarian - български",
"ca": "Catalan - català",
"zh": "Chinese - 中文",
"zh-Hans": "Chines... | 24.688172 | 44 | 0.574042 | 317 | 2,296 | 4.223975 | 0.927445 | 0.017924 | 0.023898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150697 | 2,296 | 92 | 45 | 24.956522 | 0.670769 | 0 | 0 | 0 | 0 | 0 | 0.666376 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011236 | false | 0 | 0 | 0.011236 | 0.022472 | 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 |
84f0fd3aaa5e1acb4ea3de86e12e62747b00b241 | 2,508 | py | Python | spacer/tests/test_train_classifier.py | beijbom/PySpacer | 09ec5d41aa3d239e252e351b18a0835956c21903 | [
"MIT"
] | 3 | 2020-03-09T00:30:20.000Z | 2021-03-08T22:30:19.000Z | spacer/tests/test_train_classifier.py | beijbom/PySpacer | 09ec5d41aa3d239e252e351b18a0835956c21903 | [
"MIT"
] | 28 | 2020-02-28T17:19:07.000Z | 2022-03-25T04:59:26.000Z | spacer/tests/test_train_classifier.py | beijbom/PySpacer | 09ec5d41aa3d239e252e351b18a0835956c21903 | [
"MIT"
] | null | null | null | import random
import unittest
import numpy as np
from spacer import config
from spacer.messages import DataLocation
from spacer.train_classifier import trainer_factory
from spacer.train_utils import make_random_data, train
@unittest.skipUnless(config.HAS_S3_TEST_ACCESS, 'No access to test bucket')
class TestDefault... | 37.432836 | 80 | 0.508373 | 251 | 2,508 | 4.788845 | 0.458167 | 0.049917 | 0.034942 | 0.02995 | 0.207987 | 0.124792 | 0.124792 | 0.124792 | 0.071547 | 0 | 0 | 0.018271 | 0.432616 | 2,508 | 66 | 81 | 38 | 0.826423 | 0.07815 | 0 | 0.163265 | 0 | 0 | 0.046381 | 0 | 0 | 0 | 0 | 0.015152 | 0.061224 | 1 | 0.040816 | false | 0 | 0.142857 | 0 | 0.204082 | 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 |
84fcdea20c3ac270c0917795bed84e0caff0bc61 | 891 | py | Python | src/harness/wires/base.py | vmagamedov/harness | 0e9d64295f937aa4476dbe5f084e80a3783edce7 | [
"BSD-3-Clause"
] | 6 | 2020-03-26T16:49:54.000Z | 2022-01-13T09:13:40.000Z | src/harness/wires/base.py | vmagamedov/harness | 0e9d64295f937aa4476dbe5f084e80a3783edce7 | [
"BSD-3-Clause"
] | 1 | 2020-03-14T16:47:51.000Z | 2020-03-14T16:47:51.000Z | src/harness/wires/base.py | vmagamedov/harness | 0e9d64295f937aa4476dbe5f084e80a3783edce7 | [
"BSD-3-Clause"
] | null | null | null | import asyncio
from types import TracebackType
from typing import Optional, Type, Any
class Wire:
def configure(self, value: Any) -> None:
pass
async def __aenter__(self) -> None:
pass
async def __aexit__(
self,
exc_type: Optional[Type[BaseException]],
exc_val: Op... | 21.731707 | 48 | 0.59596 | 103 | 891 | 4.951456 | 0.330097 | 0.105882 | 0.076471 | 0.094118 | 0.345098 | 0.282353 | 0.196078 | 0.196078 | 0.196078 | 0.196078 | 0 | 0 | 0.298541 | 891 | 40 | 49 | 22.275 | 0.816 | 0 | 0 | 0.4 | 0 | 0 | 0.013468 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.133333 | 0.1 | 0 | 0.3 | 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 |
84fd59316076ee88ed20da5294439d509f4f0499 | 1,377 | py | Python | tickets/migrations/0011_auto_20190804_2139.py | jdevera/pythoncanarias_web | 465e8b0a054726e29b1029f1dffe11f913e40bcc | [
"MIT"
] | 5 | 2018-08-14T14:59:38.000Z | 2020-06-14T14:56:21.000Z | tickets/migrations/0011_auto_20190804_2139.py | jdevera/pythoncanarias_web | 465e8b0a054726e29b1029f1dffe11f913e40bcc | [
"MIT"
] | 189 | 2018-07-22T19:42:05.000Z | 2021-05-24T21:37:48.000Z | tickets/migrations/0011_auto_20190804_2139.py | jdevera/pythoncanarias_web | 465e8b0a054726e29b1029f1dffe11f913e40bcc | [
"MIT"
] | 11 | 2018-07-30T16:11:40.000Z | 2020-10-18T20:40:53.000Z | # Generated by Django 2.2.4 on 2019-08-04 20:39
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('tickets', '0010_auto_20190804_1818'),
]
operations = [
migrations.CreateModel(
name='Gift',
... | 34.425 | 167 | 0.574437 | 134 | 1,377 | 5.783582 | 0.5 | 0.04129 | 0.054194 | 0.085161 | 0.123871 | 0.123871 | 0.123871 | 0.123871 | 0.123871 | 0 | 0 | 0.034518 | 0.284677 | 1,377 | 39 | 168 | 35.307692 | 0.752284 | 0.03268 | 0 | 0.181818 | 1 | 0 | 0.141353 | 0.017293 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.060606 | 0 | 0.151515 | 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 |
ca0d6e949501a9ffb2556c5d406d3b3f90523bdb | 733 | py | Python | apps/events/migrations/0005_auto_20180312_1245.py | Strand94/WhatsMappening | 92a297d531d0fd34940ec8b9ea035bbde00a1b24 | [
"MIT"
] | null | null | null | apps/events/migrations/0005_auto_20180312_1245.py | Strand94/WhatsMappening | 92a297d531d0fd34940ec8b9ea035bbde00a1b24 | [
"MIT"
] | 5 | 2018-05-14T18:18:20.000Z | 2021-06-10T20:29:51.000Z | apps/events/migrations/0005_auto_20180312_1245.py | Strand94/WhatsMappening | 92a297d531d0fd34940ec8b9ea035bbde00a1b24 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.2 on 2018-03-12 11:45
import datetime
import django.contrib.gis.db.models.fields
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('events', '0004_auto_20180309_1804'),
]
operations =... | 27.148148 | 110 | 0.630286 | 85 | 733 | 5.376471 | 0.588235 | 0.017505 | 0.026258 | 0.078775 | 0.131291 | 0.131291 | 0 | 0 | 0 | 0 | 0 | 0.096539 | 0.251023 | 733 | 26 | 111 | 28.192308 | 0.735883 | 0.061392 | 0 | 0.2 | 1 | 0 | 0.081633 | 0.033528 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.35 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.