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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3c5907865a521d1d699ea0f8a802d2747f832e5d | 789 | py | Python | tests/test_jsonutil.py | bhlarson/pymlutil | 77b1617442015d532986e461bdae2dc7517a67fa | [
"Apache-2.0"
] | null | null | null | tests/test_jsonutil.py | bhlarson/pymlutil | 77b1617442015d532986e461bdae2dc7517a67fa | [
"Apache-2.0"
] | null | null | null | tests/test_jsonutil.py | bhlarson/pymlutil | 77b1617442015d532986e461bdae2dc7517a67fa | [
"Apache-2.0"
] | null | null | null | import sys
import os
import numpy as np
import cv2
import json
from collections import defaultdict
import unittest
import torch
sys.path.insert(0, os.path.abspath('')) # Test files from current path rather than installed module
from pymlutil.jsonutil import *
test_config = 'test.yaml'
class Test(unittest.TestCase):
... | 27.206897 | 99 | 0.674271 | 111 | 789 | 4.630631 | 0.495496 | 0.093385 | 0.110895 | 0.134241 | 0.157588 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015848 | 0.200253 | 789 | 29 | 100 | 27.206897 | 0.798732 | 0.072243 | 0 | 0 | 0 | 0 | 0.094391 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.083333 | false | 0 | 0.375 | 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 |
3c59299593e1aba896cf219f1eca8f6066d0984f | 1,237 | py | Python | tests/test_proxy_digest_auth.py | untitaker/requests-toolbelt | 2e0883736bd864b9e80ea7fd0923c6513d6bf7a6 | [
"Apache-2.0"
] | null | null | null | tests/test_proxy_digest_auth.py | untitaker/requests-toolbelt | 2e0883736bd864b9e80ea7fd0923c6513d6bf7a6 | [
"Apache-2.0"
] | null | null | null | tests/test_proxy_digest_auth.py | untitaker/requests-toolbelt | 2e0883736bd864b9e80ea7fd0923c6513d6bf7a6 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""Test proxy digest authentication
"""
import unittest
import requests
import requests_toolbelt
class TestProxyDigestAuth(unittest.TestCase):
def setUp(self):
self.username = "username"
self.password = "password"
self.auth = requests_toolbelt.auth.HTTPProxyDigest... | 30.170732 | 75 | 0.638642 | 129 | 1,237 | 5.976744 | 0.457364 | 0.051881 | 0.098573 | 0.044099 | 0.12192 | 0.12192 | 0.12192 | 0 | 0 | 0 | 0 | 0.007617 | 0.257074 | 1,237 | 40 | 76 | 30.925 | 0.831338 | 0.202102 | 0 | 0 | 0 | 0 | 0.166491 | 0.03372 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.076923 | false | 0.076923 | 0.115385 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3c5f2116cd93db0322bf89b9e097b98c56ce724c | 870 | py | Python | content_upload/get_marketo_email.py | tyron-pretorius/zapier | e415cb8ecf2b4edd8992ab51eb34bf436c1052dd | [
"MIT"
] | null | null | null | content_upload/get_marketo_email.py | tyron-pretorius/zapier | e415cb8ecf2b4edd8992ab51eb34bf436c1052dd | [
"MIT"
] | null | null | null | content_upload/get_marketo_email.py | tyron-pretorius/zapier | e415cb8ecf2b4edd8992ab51eb34bf436c1052dd | [
"MIT"
] | null | null | null |
#input variables to Zapier Step 12: Get Marketo Email ID
input={
'token': 'Token' #from Step 3: Get Marketo Access Token
'pid': 'Pid' #from Step 9: Clone Latest Marketo Program
'c_type': 'Content Type' #from Step 1: Get Submission from Google Form
}
import requests
import datetime
import re
if (input['c... | 28.064516 | 115 | 0.635632 | 116 | 870 | 4.732759 | 0.551724 | 0.043716 | 0.03643 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009818 | 0.18046 | 870 | 30 | 116 | 29 | 0.760168 | 0.272414 | 0 | 0 | 0 | 0.052632 | 0.341853 | 0.035144 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.157895 | 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 |
3c6101c73cc88c1c8eeacab0efd2b289163cca71 | 424 | py | Python | ampa/cole/migrations/0023_entitat_codi_registre.py | jordiprats/django-ampa | b8e9d6076c32caa8bdc11094362ddccb12d95f8c | [
"Apache-2.0"
] | null | null | null | ampa/cole/migrations/0023_entitat_codi_registre.py | jordiprats/django-ampa | b8e9d6076c32caa8bdc11094362ddccb12d95f8c | [
"Apache-2.0"
] | null | null | null | ampa/cole/migrations/0023_entitat_codi_registre.py | jordiprats/django-ampa | b8e9d6076c32caa8bdc11094362ddccb12d95f8c | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.1.5 on 2021-03-06 17:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cole', '0022_auto_20210306_1528'),
]
operations = [
migrations.AddField(
model_name='entitat',
name='codi_registre',
... | 23.555556 | 86 | 0.610849 | 48 | 424 | 5.270833 | 0.854167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109325 | 0.266509 | 424 | 17 | 87 | 24.941176 | 0.70418 | 0.106132 | 0 | 0 | 1 | 0 | 0.124668 | 0.061008 | 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 |
3c61326ac78e3366bd132123b41f19b9791d94e3 | 854 | py | Python | apps/dashboard/migrations/0009_generalsettings_location.py | iamjdcollins/districtwebsite | 89e2aea47ca3d221665bc23586a4374421be5800 | [
"MIT"
] | null | null | null | apps/dashboard/migrations/0009_generalsettings_location.py | iamjdcollins/districtwebsite | 89e2aea47ca3d221665bc23586a4374421be5800 | [
"MIT"
] | null | null | null | apps/dashboard/migrations/0009_generalsettings_location.py | iamjdcollins/districtwebsite | 89e2aea47ca3d221665bc23586a4374421be5800 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2018-05-17 15:50
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('taxonomy', '0009_boardprecinct_precinct_map'),
('da... | 37.130435 | 342 | 0.706089 | 100 | 854 | 5.86 | 0.66 | 0.040956 | 0.047782 | 0.075085 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035765 | 0.181499 | 854 | 22 | 343 | 38.818182 | 0.802575 | 0.079625 | 0 | 0 | 1 | 0.066667 | 0.366539 | 0.12516 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3c70457d1d0ea2158c7fc824733373f5853f6406 | 2,873 | py | Python | nyaa_updater.py | mhaidarh/nyaaupdater | c578368bf2075ad54a16fffaa94f89c05ffbcf00 | [
"MIT"
] | 7 | 2015-08-26T03:05:33.000Z | 2016-09-05T01:22:16.000Z | nyaa_updater.py | faizilham/nyaaupdater | c578368bf2075ad54a16fffaa94f89c05ffbcf00 | [
"MIT"
] | null | null | null | nyaa_updater.py | faizilham/nyaaupdater | c578368bf2075ad54a16fffaa94f89c05ffbcf00 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
Nyaa.eu Feed Auto Updater
Faiz Ilham (faizilham.com) 2013
"""
from nyaa_parser import fetch, download
from nyaa_db import NyaaSQLiteDB
from threading import Thread
import os, stat
DBNAME = '/home/pi/db/nyaa.db'
DOWNLOAD_DIR = '/home/pi/download/update/'
NUM_UPDATER = 4
NUM_DOWNLOADER = 4
c... | 22.445313 | 190 | 0.645318 | 430 | 2,873 | 4.190698 | 0.272093 | 0.039956 | 0.024417 | 0.018868 | 0.200888 | 0.113208 | 0.09212 | 0.059933 | 0.059933 | 0.059933 | 0 | 0.013674 | 0.210929 | 2,873 | 127 | 191 | 22.622047 | 0.781209 | 0.07379 | 0 | 0.25 | 0 | 0.011905 | 0.133694 | 0.00966 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.047619 | null | null | 0.011905 | 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 |
3c8fc9182c9cb41cacbb1ffb469612008e6bfdf9 | 2,532 | py | Python | twitter_crawler/got/manager/TweetGenerator.py | AlexHtZhang/A-billion-dollar-deal | 573ba92026f063d90a08daca73cc61c1325eb695 | [
"Apache-2.0"
] | null | null | null | twitter_crawler/got/manager/TweetGenerator.py | AlexHtZhang/A-billion-dollar-deal | 573ba92026f063d90a08daca73cc61c1325eb695 | [
"Apache-2.0"
] | null | null | null | twitter_crawler/got/manager/TweetGenerator.py | AlexHtZhang/A-billion-dollar-deal | 573ba92026f063d90a08daca73cc61c1325eb695 | [
"Apache-2.0"
] | null | null | null | import json,sys,cookielib
from pyquery import PyQuery
from .. import models
from . import TweetCriteria
from . import TweetHelper
class TweetGenerator(object):
def __init__(self, noTweets = sys.maxint, tweetCriteria = TweetCriteria()):
assert isinstance(tweetCriteria, dict)
self.noTweets = noTweets
... | 29.44186 | 214 | 0.711295 | 255 | 2,532 | 7.003922 | 0.337255 | 0.082307 | 0.032475 | 0.025756 | 0.172452 | 0.137738 | 0.137738 | 0.137738 | 0.137738 | 0.137738 | 0 | 0.004369 | 0.186414 | 2,532 | 85 | 215 | 29.788235 | 0.862621 | 0.021722 | 0 | 0.293103 | 0 | 0 | 0.067907 | 0.028114 | 0 | 0 | 0 | 0 | 0.051724 | 0 | null | null | 0 | 0.086207 | 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 |
3c920c7891e79d619b3aab18a9aac93c7fbcc7b5 | 254 | py | Python | PythonDesafios/d049.py | adaatii/Python-Curso-em-Video- | 30b37713b3685469558babb93b557b53210f010c | [
"MIT"
] | null | null | null | PythonDesafios/d049.py | adaatii/Python-Curso-em-Video- | 30b37713b3685469558babb93b557b53210f010c | [
"MIT"
] | null | null | null | PythonDesafios/d049.py | adaatii/Python-Curso-em-Video- | 30b37713b3685469558babb93b557b53210f010c | [
"MIT"
] | null | null | null | #Refaça o DESAFIO 9, mostrando a tabuada
# de um número que o usuário escolher,
# só que agora utilizando um laço for.
num = int(input('Digite o numero da tabuada que deseja ver: '))
for i in range(1, 11):
print('{} X {} = {}'.format(i, num, i*num)) | 36.285714 | 63 | 0.665354 | 45 | 254 | 3.755556 | 0.755556 | 0.047337 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019608 | 0.19685 | 254 | 7 | 64 | 36.285714 | 0.808824 | 0.444882 | 0 | 0 | 0 | 0 | 0.395683 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 |
3c92696178cf993a69d4e009bbf7d078863d79ca | 6,647 | py | Python | boxm/update_downtown.py | mirestrepo/voxels-at-lems | df47d031653d2ad877a97b3c1ea574b924b7d4c2 | [
"BSD-2-Clause"
] | 2 | 2015-09-18T00:17:16.000Z | 2019-02-06T04:41:29.000Z | boxm/update_downtown.py | mirestrepo/voxels-at-lems | df47d031653d2ad877a97b3c1ea574b924b7d4c2 | [
"BSD-2-Clause"
] | null | null | null | boxm/update_downtown.py | mirestrepo/voxels-at-lems | df47d031653d2ad877a97b3c1ea574b924b7d4c2 | [
"BSD-2-Clause"
] | null | null | null | import boxm_batch;
import os;
import time;
boxm_batch.register_processes();
boxm_batch.register_datatypes();
#time.sleep(10);
class dbvalue:
def __init__(self, index, type):
self.id = index # unsigned integer
self.type = type # string
# Capitol
model_dir = "/Users/isa/Experiments/DowntownBOXM_12_12_4"... | 36.927778 | 808 | 0.678953 | 1,009 | 6,647 | 4.206145 | 0.303271 | 0.154807 | 0.098963 | 0.140198 | 0.594251 | 0.555137 | 0.519793 | 0.514138 | 0.504948 | 0.478087 | 0 | 0.106628 | 0.176019 | 6,647 | 180 | 809 | 36.927778 | 0.668249 | 0.188205 | 0 | 0.40458 | 0 | 0 | 0.167658 | 0.106877 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.030534 | null | null | 0.129771 | 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 |
3c92b5ed083b3a39d1cdd06d90d741d474c0498d | 9,739 | py | Python | sftpsync/command_line.py | marccarre/sftpsync | cf408f6b768fd5c7c0559cb25e72020f92a5a5f6 | [
"Apache-2.0"
] | 1 | 2015-04-01T20:30:48.000Z | 2015-04-01T20:30:48.000Z | sftpsync/command_line.py | marccarre/sftpsync | cf408f6b768fd5c7c0559cb25e72020f92a5a5f6 | [
"Apache-2.0"
] | null | null | null | sftpsync/command_line.py | marccarre/sftpsync | cf408f6b768fd5c7c0559cb25e72020f92a5a5f6 | [
"Apache-2.0"
] | 2 | 2015-03-31T18:40:17.000Z | 2021-08-15T16:12:37.000Z | import sys
from sys import argv, exit
import os
from os import linesep
from getopt import getopt, GetoptError
import re
import socks
from getpass import getuser
ERROR_ILLEGAL_ARGUMENTS = 2
def usage(error_message=None):
if error_message:
sys.stderr.write('ERROR: ' + error_message + linesep)
sys.stdo... | 44.067873 | 195 | 0.608276 | 1,221 | 9,739 | 4.685504 | 0.202293 | 0.044573 | 0.049991 | 0.036357 | 0.278623 | 0.249956 | 0.201014 | 0.177941 | 0.177941 | 0.165006 | 0 | 0.00666 | 0.259986 | 9,739 | 220 | 196 | 44.268182 | 0.787151 | 0.016737 | 0 | 0.107527 | 0 | 0.021505 | 0.390226 | 0.027208 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086022 | false | 0.053763 | 0.043011 | 0.026882 | 0.22043 | 0.005376 | 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 |
b1b1a00780d7b99ecb5c0b6348da66efece79c55 | 6,528 | py | Python | taiseia101/dehumidifier.py | slee124565/pytwseia | 4c633cef12e37f5ba0d11748b8966ab598975a19 | [
"Apache-2.0"
] | 3 | 2021-04-14T09:17:22.000Z | 2021-05-10T06:04:56.000Z | taiseia101/dehumidifier.py | slee124565/twseia | 4c633cef12e37f5ba0d11748b8966ab598975a19 | [
"Apache-2.0"
] | null | null | null | taiseia101/dehumidifier.py | slee124565/twseia | 4c633cef12e37f5ba0d11748b8966ab598975a19 | [
"Apache-2.0"
] | null | null | null | from taiseia101.core import *
logger = logging.getLogger(__name__)
class Dehumidifier(GeneralDevice):
dev_type = {'id': DeviceTypeCode.DEHUMIDIFIER, 'name': 'DEHUMIDIFIER'}
class ServiceCode(BaseObject):
POWER_RW = 0x00
OP_MODE_RW = 0x01
OP_TIMER_RW = 0x02
HUMIDITY_CFG_RW = 0... | 21.832776 | 74 | 0.683364 | 697 | 6,528 | 6.068867 | 0.304161 | 0.061702 | 0.04539 | 0.028369 | 0.199527 | 0.014657 | 0 | 0 | 0 | 0 | 0 | 0.07968 | 0.252145 | 6,528 | 298 | 75 | 21.90604 | 0.786768 | 0.152267 | 0 | 0.289157 | 0 | 0 | 0.015725 | 0 | 0 | 0 | 0.033644 | 0 | 0 | 1 | 0.024096 | false | 0.186747 | 0.006024 | 0.018072 | 0.325301 | 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 |
b1bdea6897478467c7d94c5450ea00386d4be3e8 | 1,105 | py | Python | utils/cal_normalize.py | qaz670756/LSNet | 6ecb6fa1b2e96ca46c2cae973274e5d8f117afe1 | [
"Apache-2.0"
] | 3 | 2022-01-28T02:17:14.000Z | 2022-02-25T00:51:21.000Z | utils/cal_normalize.py | qaz670756/LSNet | 6ecb6fa1b2e96ca46c2cae973274e5d8f117afe1 | [
"Apache-2.0"
] | 1 | 2022-02-24T12:23:19.000Z | 2022-02-25T02:31:48.000Z | utils/cal_normalize.py | qaz670756/LSNet | 6ecb6fa1b2e96ca46c2cae973274e5d8f117afe1 | [
"Apache-2.0"
] | 2 | 2022-01-23T01:48:33.000Z | 2022-02-16T09:05:49.000Z | import numpy as np
import cv2
import os
from glob import glob
from tqdm import tqdm
img_h, img_w = 256, 256
means, stdevs = [], []
img_list = []
TRAIN_DATASET_PATH = 'data/Real/subset/train/B'
image_fns = glob(os.path.join(TRAIN_DATASET_PATH, '*.*'))
for single_img_path in tqdm(image_fns):
img = cv2.imread(sing... | 26.309524 | 65 | 0.685068 | 162 | 1,105 | 4.567901 | 0.475309 | 0.028378 | 0.018919 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.224814 | 0.146606 | 1,105 | 42 | 65 | 26.309524 | 0.559915 | 0.304977 | 0 | 0 | 0 | 0 | 0.068421 | 0.031579 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b1c0f497a279ca39f9723e10904c771080889d0f | 2,039 | py | Python | iniciante/python/2493-jogo-do-operador.py | tfn10/beecrowd | 1ebf19ca9a253eb326160f03145d20be33064969 | [
"MIT"
] | null | null | null | iniciante/python/2493-jogo-do-operador.py | tfn10/beecrowd | 1ebf19ca9a253eb326160f03145d20be33064969 | [
"MIT"
] | null | null | null | iniciante/python/2493-jogo-do-operador.py | tfn10/beecrowd | 1ebf19ca9a253eb326160f03145d20be33064969 | [
"MIT"
] | null | null | null | def jogo_do_operador():
while True:
expressoes = list()
resposta_dos_jogadores = list()
jogadores_que_erraram = list()
try:
quantidade_de_expressoes = int(input())
for expre in range(quantidade_de_expressoes):
expressoes.append(list(map(str, in... | 42.479167 | 90 | 0.51741 | 201 | 2,039 | 4.960199 | 0.268657 | 0.120361 | 0.190572 | 0.060181 | 0.417252 | 0.359077 | 0.294885 | 0.23671 | 0.23671 | 0.23671 | 0 | 0.008 | 0.386954 | 2,039 | 47 | 91 | 43.382979 | 0.7896 | 0 | 0 | 0.181818 | 0 | 0 | 0.021089 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022727 | false | 0.045455 | 0 | 0 | 0.022727 | 0.090909 | 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 |
b1c2963b7ea8c9630d296e290ed2e81914494627 | 434 | py | Python | kitsune/users/migrations/0025_auto_20200926_0638.py | The-smooth-operator/kitsune | 20c0c434b8a9fc39a19d319890054c5b914cc34a | [
"BSD-3-Clause"
] | 929 | 2015-01-04T08:08:51.000Z | 2022-03-31T06:20:44.000Z | kitsune/users/migrations/0025_auto_20200926_0638.py | hafixo/kitsune | d7756872e16590eea1c6adaeb5bc78f83414d753 | [
"BSD-3-Clause"
] | 1,751 | 2015-01-02T00:04:37.000Z | 2022-03-31T10:24:30.000Z | kitsune/users/migrations/0025_auto_20200926_0638.py | Whoerr/kitsune | 2428573b4920a824c3e712b8a4870f8c1ada8f64 | [
"BSD-3-Clause"
] | 605 | 2015-01-01T14:08:36.000Z | 2022-03-28T15:39:45.000Z | # Generated by Django 2.2.14 on 2020-09-26 06:38
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('users', '0024_auto_20200914_0433'),
]
operations = [
migrations.AlterModelOptions(
name='profile',
options={'permissions': ... | 24.111111 | 132 | 0.624424 | 46 | 434 | 5.76087 | 0.73913 | 0.067925 | 0.113208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097561 | 0.24424 | 434 | 17 | 133 | 25.529412 | 0.710366 | 0.105991 | 0 | 0 | 1 | 0 | 0.310881 | 0.059585 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 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 |
b1c884a638035b3434c9982b2cee2d4c31fd4e7b | 589 | py | Python | utilities/GraphLoss.py | adik0861/RetinaNet | b73d94d1d473a92bf1edb761f6118b1faa09b533 | [
"MIT"
] | null | null | null | utilities/GraphLoss.py | adik0861/RetinaNet | b73d94d1d473a92bf1edb761f6118b1faa09b533 | [
"MIT"
] | null | null | null | utilities/GraphLoss.py | adik0861/RetinaNet | b73d94d1d473a92bf1edb761f6118b1faa09b533 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
from pathlib import Path
import re
import io
loss = Path.cwd().parent.joinpath('savefiles', 'checkpoints', 'loss.log').read_text()
loss = re.sub(r'[\]\[]', '', loss)
df = pd.read_csv(io.StringIO(loss), names=['epoch', 'iteration', 'cls_loss', 'box... | 26.772727 | 101 | 0.662139 | 97 | 589 | 3.835052 | 0.484536 | 0.056452 | 0.048387 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147708 | 589 | 21 | 102 | 28.047619 | 0.741036 | 0 | 0 | 0 | 0 | 0 | 0.14966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.375 | 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 |
b1cd7e9783d089d6c670887caa9aba1c621a0705 | 3,301 | py | Python | gcn/subsample.py | floregol/gcn | 23cad65c4f77a4eb007cf5f85a16d428d0928826 | [
"MIT"
] | 1 | 2018-07-09T20:08:07.000Z | 2018-07-09T20:08:07.000Z | gcn/subsample.py | floregol/gcn | 23cad65c4f77a4eb007cf5f85a16d428d0928826 | [
"MIT"
] | null | null | null | gcn/subsample.py | floregol/gcn | 23cad65c4f77a4eb007cf5f85a16d428d0928826 | [
"MIT"
] | null | null | null | import random
import time
import numpy as np
import copy
from itertools import compress
random.seed(123)
#remove columns from adj matrix.
#TODO needs additional scaling?
#Be carefull too not modify the initial complete support matrix
def get_sub_sampled_support(complete_support, node_to_keep):
index_array = comp... | 40.753086 | 134 | 0.702514 | 503 | 3,301 | 4.367793 | 0.272366 | 0.050068 | 0.043696 | 0.030951 | 0.073737 | 0.035503 | 0.035503 | 0.035503 | 0.035503 | 0.035503 | 0 | 0.020353 | 0.211148 | 3,301 | 80 | 135 | 41.2625 | 0.823349 | 0.226598 | 0 | 0.074074 | 0 | 0 | 0.012992 | 0 | 0 | 0 | 0 | 0.0125 | 0 | 1 | 0.092593 | false | 0 | 0.092593 | 0.018519 | 0.259259 | 0.018519 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b1cfdf031a4017d53e20dcc7d7cab5acab894120 | 501 | py | Python | utils/add_entry.py | capitanu/DD2477-project | 667ad269d63040d216370e2ba0adb9e8331fc570 | [
"MIT"
] | null | null | null | utils/add_entry.py | capitanu/DD2477-project | 667ad269d63040d216370e2ba0adb9e8331fc570 | [
"MIT"
] | null | null | null | utils/add_entry.py | capitanu/DD2477-project | 667ad269d63040d216370e2ba0adb9e8331fc570 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from elasticsearch import Elasticsearch
es = Elasticsearch()
entry = {
"word" : "the",
"list": [
{
"docID" : "3",
"offsetlist" : ["3", "5", "14", "15"]
},
{
"docID" : "14",
"offsetlist" : ["2", "8", "27", "108"]
... | 20.875 | 59 | 0.508982 | 50 | 501 | 5.08 | 0.6 | 0.141732 | 0.200787 | 0.15748 | 0.212598 | 0.212598 | 0 | 0 | 0 | 0 | 0 | 0.058659 | 0.285429 | 501 | 23 | 60 | 21.782609 | 0.650838 | 0.03992 | 0 | 0 | 0 | 0 | 0.283333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.055556 | 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 |
b1d163c5bfeef72e9d048e3bb402b66ea1f2eb8b | 8,667 | py | Python | pysnmp-with-texts/SYSLOG-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/SYSLOG-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/SYSLOG-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 SYSLOG-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/SYSLOG-MIB
# Produced by pysmi-0.3.4 at Wed May 1 15:14:29 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:... | 139.790323 | 708 | 0.782739 | 1,019 | 8,667 | 6.653582 | 0.252208 | 0.053097 | 0.09292 | 0.00944 | 0.384513 | 0.211652 | 0.183038 | 0.183038 | 0.173156 | 0.171239 | 0 | 0.052825 | 0.089189 | 8,667 | 61 | 709 | 142.081967 | 0.806055 | 0.036229 | 0 | 0 | 0 | 0.074074 | 0.301414 | 0.010307 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.12963 | 0 | 0.12963 | 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 |
b1d6520cfe43b727bf0a94cade4f2cc97fe63824 | 3,361 | py | Python | appg/views/admin_list_examples.py | poxstone/appg | fe59b83d0f497e7d6033bde601bb1f61c95aba0c | [
"CNRI-Python",
"Condor-1.1",
"Naumen",
"Linux-OpenIB",
"MS-PL"
] | null | null | null | appg/views/admin_list_examples.py | poxstone/appg | fe59b83d0f497e7d6033bde601bb1f61c95aba0c | [
"CNRI-Python",
"Condor-1.1",
"Naumen",
"Linux-OpenIB",
"MS-PL"
] | null | null | null | appg/views/admin_list_examples.py | poxstone/appg | fe59b83d0f497e7d6033bde601bb1f61c95aba0c | [
"CNRI-Python",
"Condor-1.1",
"Naumen",
"Linux-OpenIB",
"MS-PL"
] | null | null | null | # -*- coding: utf-8 -*-
from flask.views import View
from flask import flash, redirect, url_for, jsonify, render_template, request
import json
from google.appengine.api import users
from google.appengine.runtime.apiproxy_errors import CapabilityDisabledError
from forms import ExampleForm
from models import ExampleMo... | 29.482456 | 81 | 0.560845 | 332 | 3,361 | 5.527108 | 0.25 | 0.099183 | 0.134605 | 0.177112 | 0.673569 | 0.633787 | 0.59782 | 0.550954 | 0.550954 | 0.550954 | 0 | 0.000452 | 0.342458 | 3,361 | 113 | 82 | 29.743363 | 0.829864 | 0.010711 | 0 | 0.607595 | 0 | 0 | 0.109874 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.063291 | false | 0 | 0.113924 | 0 | 0.43038 | 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 |
b1d690e81bc442a73c2a8d8139c81c991cc04fb1 | 5,988 | py | Python | tests/auth/test_auth_models.py | ethanaggor/twitter-clone | 4b6dfadca462fbe73dd7a3f32001e04342e1e5fa | [
"Apache-2.0"
] | null | null | null | tests/auth/test_auth_models.py | ethanaggor/twitter-clone | 4b6dfadca462fbe73dd7a3f32001e04342e1e5fa | [
"Apache-2.0"
] | 12 | 2020-11-28T08:21:22.000Z | 2020-12-17T17:49:22.000Z | tests/auth/test_auth_models.py | ethanaggor/twitter-clone | 4b6dfadca462fbe73dd7a3f32001e04342e1e5fa | [
"Apache-2.0"
] | 4 | 2020-12-01T00:10:12.000Z | 2020-12-16T12:45:41.000Z | """Tests for `app.auth.models.User` class."""
import pytest
from werkzeug.exceptions import HTTPException
from app import db
from app.auth.models import User
from tests.conftest import CleanTestingMixin
class TestUserExistence(CleanTestingMixin):
"""Test the existence of our `User` class."""
def test_model... | 32.721311 | 119 | 0.612725 | 717 | 5,988 | 4.97908 | 0.199442 | 0.044818 | 0.043697 | 0.033333 | 0.539216 | 0.47591 | 0.32409 | 0.295798 | 0.192437 | 0.171709 | 0 | 0.010276 | 0.284903 | 5,988 | 182 | 120 | 32.901099 | 0.823447 | 0.203908 | 0 | 0.234694 | 0 | 0 | 0.059163 | 0 | 0 | 0 | 0 | 0 | 0.367347 | 1 | 0.142857 | false | 0.081633 | 0.05102 | 0 | 0.244898 | 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 |
b1e6ab8ffb91e494f94801b1ca87b71001673297 | 16,626 | py | Python | dps.py | mattflanzer/photosort | 7440e2ee9849057b9dc54d10891e90aa27aae2fd | [
"MIT"
] | null | null | null | dps.py | mattflanzer/photosort | 7440e2ee9849057b9dc54d10891e90aa27aae2fd | [
"MIT"
] | null | null | null | dps.py | mattflanzer/photosort | 7440e2ee9849057b9dc54d10891e90aa27aae2fd | [
"MIT"
] | null | null | null | # dropbox-photo-sorter
# (c)2018 Matthew Flanzer
# License: MIT
import sys
import re
import os
import shutil
from PIL import Image
import datetime
import time
import PIL.ExifTags
import sqlite3
import requests
import json
import unidecode
import argparse
class Storage:
def __init__(self, pathname):
self.y... | 35.075949 | 219 | 0.552027 | 1,979 | 16,626 | 4.52956 | 0.174836 | 0.022758 | 0.011044 | 0.011156 | 0.188978 | 0.117024 | 0.061803 | 0.031905 | 0.031905 | 0.031905 | 0 | 0.00754 | 0.329905 | 16,626 | 473 | 220 | 35.150106 | 0.797056 | 0.021533 | 0 | 0.225118 | 0 | 0.007109 | 0.114599 | 0.001662 | 0 | 0 | 0.001846 | 0 | 0 | 0 | null | null | 0.004739 | 0.035545 | null | null | 0.028436 | 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 |
b1ead1eaff9ccad2736cbe8803069d2f176c51dc | 437 | py | Python | LeetCode/Python/container_with_most_water.py | wh-acmer/minixalpha-acm | cb684ad70eaa61d42a445364cb3ee195b9e9302e | [
"MIT"
] | null | null | null | LeetCode/Python/container_with_most_water.py | wh-acmer/minixalpha-acm | cb684ad70eaa61d42a445364cb3ee195b9e9302e | [
"MIT"
] | null | null | null | LeetCode/Python/container_with_most_water.py | wh-acmer/minixalpha-acm | cb684ad70eaa61d42a445364cb3ee195b9e9302e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#coding: utf-8
class Solution:
# @return an integer
def maxArea(self, height):
low, high = 0, len(height) - 1
max_area = 0
while low < high:
max_area = max(max_area,
(high - low) * min(height[low], height[high]))
if heig... | 25.705882 | 66 | 0.475973 | 53 | 437 | 3.849057 | 0.509434 | 0.137255 | 0.147059 | 0.186275 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023256 | 0.409611 | 437 | 16 | 67 | 27.3125 | 0.767442 | 0.118993 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.25 | 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 |
b1eea75d3a2dde4aaa7dd307de21237e80b7eaed | 2,475 | py | Python | lc0253_meeting_rooms_ii.py | bowen0701/python-algorithms-data-structures | e625f59a9fc59e4728825078d4434a7968a724e5 | [
"BSD-2-Clause"
] | 8 | 2019-03-18T06:37:24.000Z | 2022-01-30T07:50:58.000Z | lc0253_meeting_rooms_ii.py | bowen0701/python-algorithms-data-structures | e625f59a9fc59e4728825078d4434a7968a724e5 | [
"BSD-2-Clause"
] | null | null | null | lc0253_meeting_rooms_ii.py | bowen0701/python-algorithms-data-structures | e625f59a9fc59e4728825078d4434a7968a724e5 | [
"BSD-2-Clause"
] | null | null | null | """Leetcode 253. Meeting Rooms II (Premium)
Medium
URL: https://leetcode.com/problems/meeting-rooms-ii
Given an array of meeting time intervals consisting of start and end times
[[s1,e1],[s2,e2],...] (si < ei),
find the minimum number of conference rooms required.
Example1
Input: intervals = [[0,30],[5,10],[15,20]]
... | 25.78125 | 76 | 0.613737 | 309 | 2,475 | 4.834951 | 0.36246 | 0.032129 | 0.032129 | 0.014056 | 0.385542 | 0.289157 | 0.289157 | 0.263722 | 0.113788 | 0.113788 | 0 | 0.038037 | 0.267071 | 2,475 | 95 | 77 | 26.052632 | 0.785557 | 0.09697 | 0 | 0.176471 | 0 | 0 | 0.005571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.058824 | null | null | 0.117647 | 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 |
b1fc44ddad0869f8524a16315ee1b58a6003ce41 | 263 | py | Python | Drawing-On-Images/accessingPixelValues.py | TUCchkul/OpenCV-ImageProcessing-and-Numpy | 754077df28469066834551de05d1013b67efd94e | [
"MIT"
] | null | null | null | Drawing-On-Images/accessingPixelValues.py | TUCchkul/OpenCV-ImageProcessing-and-Numpy | 754077df28469066834551de05d1013b67efd94e | [
"MIT"
] | null | null | null | Drawing-On-Images/accessingPixelValues.py | TUCchkul/OpenCV-ImageProcessing-and-Numpy | 754077df28469066834551de05d1013b67efd94e | [
"MIT"
] | null | null | null | import cv2
image=cv2.imread(r'md.jpg',flags=1)
print(image[0:100,0:100])
#Changes pixel value in the original images
#image[0:100,0:100]=255#fully white
image[0:100,0:100]=[165,42,42]#RGB format
cv2.imshow('New Image',image)
cv2.waitKey(0)
cv2.destroyAllWindows() | 29.222222 | 43 | 0.749049 | 51 | 263 | 3.862745 | 0.588235 | 0.121827 | 0.137056 | 0.152284 | 0.19797 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167347 | 0.068441 | 263 | 9 | 44 | 29.222222 | 0.636735 | 0.323194 | 0 | 0 | 0 | 0 | 0.085714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
59089f7fb4a3af378881593d2198f43acce68806 | 499 | py | Python | oferty/migrations/0012_auto_20181203_1119.py | minikdo/estates | 9aa547ff98bc6c437e63c2f2650307efe4b0a5fd | [
"Apache-2.0"
] | null | null | null | oferty/migrations/0012_auto_20181203_1119.py | minikdo/estates | 9aa547ff98bc6c437e63c2f2650307efe4b0a5fd | [
"Apache-2.0"
] | null | null | null | oferty/migrations/0012_auto_20181203_1119.py | minikdo/estates | 9aa547ff98bc6c437e63c2f2650307efe4b0a5fd | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.1.2 on 2018-12-03 10:19
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('oferty', '0011_ofertyest_kto_prowadzi'),
]
operations = [
migrations.AlterField(
model_name='of... | 24.95 | 118 | 0.653307 | 58 | 499 | 5.5 | 0.637931 | 0.075235 | 0.087774 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049479 | 0.230461 | 499 | 19 | 119 | 26.263158 | 0.78125 | 0.09018 | 0 | 0 | 1 | 0 | 0.159292 | 0.059735 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
590b116de57867da0f18f596c85e950fcae8fef0 | 714 | py | Python | prompt.py | co/TheLastRogue | 13fede9f026689a4f54bedf4d276cdec353e918c | [
"BSD-2-Clause"
] | 8 | 2015-06-18T11:29:06.000Z | 2021-02-02T02:39:49.000Z | prompt.py | co/TheLastRogue | 13fede9f026689a4f54bedf4d276cdec353e918c | [
"BSD-2-Clause"
] | null | null | null | prompt.py | co/TheLastRogue | 13fede9f026689a4f54bedf4d276cdec353e918c | [
"BSD-2-Clause"
] | 4 | 2015-06-18T11:29:10.000Z | 2020-09-13T23:01:18.000Z | from compositecore import Leaf
import menu
import state
__author__ = 'co'
def start_accept_reject_prompt(state_stack, game_state, message):
prompt = menu.AcceptRejectPrompt(state_stack, message)
game_state.start_prompt(state.UIState(prompt))
return prompt.result
class PromptPlayer(Leaf):
def __init... | 31.043478 | 91 | 0.70028 | 84 | 714 | 5.559524 | 0.380952 | 0.077088 | 0.072805 | 0.098501 | 0.111349 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.212885 | 714 | 23 | 92 | 31.043478 | 0.830961 | 0 | 0 | 0 | 0 | 0 | 0.039161 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.176471 | 0 | 0.529412 | 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 |
5910a29847a07416159645346ecc536dc8c74157 | 437 | py | Python | setup.py | czajowaty/curry-bot | 91bfbd884342a02c6defd057d27d5b1fcd78cb21 | [
"MIT"
] | 3 | 2019-10-09T23:17:55.000Z | 2022-02-01T17:34:27.000Z | setup.py | czajowaty/curry-bot | 91bfbd884342a02c6defd057d27d5b1fcd78cb21 | [
"MIT"
] | 19 | 2019-10-09T20:42:05.000Z | 2022-02-01T08:22:25.000Z | setup.py | czajowaty/curry-bot | 91bfbd884342a02c6defd057d27d5b1fcd78cb21 | [
"MIT"
] | 6 | 2020-08-09T20:17:13.000Z | 2022-01-27T23:59:28.000Z | from setuptools import setup, find_packages
setup(
name='CurryBot',
author='Liam Mencel',
version='0.1dev',
description='Discord bot for Azure Dreams',
packages=find_packages(exclude=('tests', 'docs', 'data')),
license='MIT',
long_description=open('README.md').read(),
python_requires='>... | 31.214286 | 105 | 0.670481 | 50 | 437 | 5.76 | 0.84 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018817 | 0.148741 | 437 | 13 | 106 | 33.615385 | 0.755376 | 0 | 0 | 0 | 0 | 0 | 0.329519 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.083333 | 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 |
59128adbc48010748db0770417d77f7728786a72 | 816 | py | Python | byol/datasets/cifar100.py | hongxin001/SSL-Backdoor | eec004ab88f1eedbb0983f885ba9a71a1526b66a | [
"MIT"
] | 18 | 2021-04-26T05:38:03.000Z | 2022-03-09T07:38:21.000Z | byol/datasets/cifar100.py | hongxin001/SSL-Backdoor | eec004ab88f1eedbb0983f885ba9a71a1526b66a | [
"MIT"
] | null | null | null | byol/datasets/cifar100.py | hongxin001/SSL-Backdoor | eec004ab88f1eedbb0983f885ba9a71a1526b66a | [
"MIT"
] | 3 | 2021-05-28T04:33:15.000Z | 2021-07-07T08:10:57.000Z | from torchvision.datasets import CIFAR100 as C100
import torchvision.transforms as T
from .transforms import MultiSample, aug_transform
from .base import BaseDataset
def base_transform():
return T.Compose(
[T.ToTensor(), T.Normalize((0.5071, 0.4867, 0.4408), (0.2675, 0.2565, 0.2761))]
)
class CIFAR1... | 30.222222 | 87 | 0.66299 | 111 | 816 | 4.765766 | 0.378378 | 0.098299 | 0.10775 | 0.102079 | 0.31569 | 0.31569 | 0.31569 | 0.31569 | 0.31569 | 0.204159 | 0 | 0.077399 | 0.208333 | 816 | 26 | 88 | 31.384615 | 0.741486 | 0 | 0 | 0.1 | 0 | 0 | 0.022059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 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 |
59142dc511b8fb88b41c0f53050fe40387f9dd5b | 2,771 | py | Python | bp_gen/bitpattern.py | nicholas-fr/mezzanine | 4a22f8841204eafc881f8679ce73ac5b37d68b89 | [
"BSD-3-Clause"
] | 3 | 2021-02-02T11:15:18.000Z | 2021-12-01T13:57:17.000Z | bp_gen/bitpattern.py | nicholas-fr/mezzanine | 4a22f8841204eafc881f8679ce73ac5b37d68b89 | [
"BSD-3-Clause"
] | 43 | 2020-05-20T11:49:16.000Z | 2022-03-31T16:15:50.000Z | bp_gen/bitpattern.py | nicholas-fr/mezzanine | 4a22f8841204eafc881f8679ce73ac5b37d68b89 | [
"BSD-3-Clause"
] | 2 | 2020-05-23T08:40:15.000Z | 2020-06-18T19:16:22.000Z | # Generates a bit pattern containing frame number, total frames, frame rate, horizontal and vertical resolution
# Step 1: define bit pattern for 240x135 video
# Step 2: upscale as needed towards target resolution
# Note: intended for 480x270 video with 2x2 bit pattern "bit" size as the lowest resolution
def bp_create(b... | 37.958904 | 115 | 0.695417 | 476 | 2,771 | 3.813025 | 0.294118 | 0.027548 | 0.029752 | 0.030303 | 0.110193 | 0.095868 | 0.095868 | 0.051791 | 0.051791 | 0.051791 | 0 | 0.037483 | 0.191267 | 2,771 | 72 | 116 | 38.486111 | 0.772423 | 0.338506 | 0 | 0.040816 | 1 | 0 | 0.020994 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020408 | false | 0 | 0.061224 | 0 | 0.081633 | 0.040816 | 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 |
591499c34910f9fbd24a7fa03d77b5d23bee97ba | 1,191 | py | Python | src/aws_scatter_gather/util/trace.py | cbuschka/aws-scatter-gather | abebd22aa6449369845a08d4260607745098bb28 | [
"Apache-2.0"
] | 2 | 2020-06-23T08:27:56.000Z | 2020-06-25T08:44:57.000Z | src/aws_scatter_gather/util/trace.py | cbuschka/aws-scatter-gather | abebd22aa6449369845a08d4260607745098bb28 | [
"Apache-2.0"
] | null | null | null | src/aws_scatter_gather/util/trace.py | cbuschka/aws-scatter-gather | abebd22aa6449369845a08d4260607745098bb28 | [
"Apache-2.0"
] | null | null | null | import time
import aws_scatter_gather.util.logger as logger
def trace(message, *args):
return Trace(message, *args)
def traced(f):
def wrapper(*args, **kwargs):
with trace("{} args={}, kwargs={}", f.__name__, [*args], {**kwargs}):
return f(*args, **kwargs)
return wrapper
class Tr... | 28.357143 | 105 | 0.601175 | 153 | 1,191 | 4.372549 | 0.346405 | 0.082212 | 0.06278 | 0.067265 | 0.246637 | 0.221226 | 0.221226 | 0.146487 | 0.146487 | 0.146487 | 0 | 0.008999 | 0.253568 | 1,191 | 41 | 106 | 29.04878 | 0.743532 | 0 | 0 | 0.068966 | 0 | 0 | 0.081444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0 | 0.068966 | 0.034483 | 0.482759 | 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 |
591ea11fd0308e8f3f35abc4a43a79ee92dcec38 | 725 | py | Python | examples/wave_share_gps_locator_runner.py | cezaryzelisko/gps-tracker | 099100a709a56ba6885ea9e96273291ade490dce | [
"MIT"
] | 1 | 2021-06-02T08:19:56.000Z | 2021-06-02T08:19:56.000Z | examples/wave_share_gps_locator_runner.py | cezaryzelisko/gps-tracker | 099100a709a56ba6885ea9e96273291ade490dce | [
"MIT"
] | null | null | null | examples/wave_share_gps_locator_runner.py | cezaryzelisko/gps-tracker | 099100a709a56ba6885ea9e96273291ade490dce | [
"MIT"
] | null | null | null | from gps_tracker.runner import main
from gps_tracker.serial_connection import SerialConnection
from gps_tracker.wave_share_config import WaveShareGPS
from gps_tracker.wave_share_gps_locator import WaveShareGPSLocator
from gps_tracker.auth import Auth
from gps_tracker.device import Device
if __name__ == '_... | 36.25 | 73 | 0.708966 | 89 | 725 | 5.460674 | 0.393258 | 0.08642 | 0.17284 | 0.074074 | 0.09465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228966 | 725 | 19 | 74 | 38.157895 | 0.86941 | 0 | 0 | 0 | 0 | 0 | 0.077241 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0.0625 | 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 |
591ed07e75ca0d34466b85bdcc11ae7f2d6d8bf8 | 386 | py | Python | tests/utils.py | mypaceshun/pyfortune | 96d8cdfcbbf5538c6e4547331dde6010668609d5 | [
"MIT"
] | null | null | null | tests/utils.py | mypaceshun/pyfortune | 96d8cdfcbbf5538c6e4547331dde6010668609d5 | [
"MIT"
] | 5 | 2019-07-02T13:27:11.000Z | 2021-02-02T22:17:11.000Z | tests/utils.py | mypaceshun/pyfortune | 96d8cdfcbbf5538c6e4547331dde6010668609d5 | [
"MIT"
] | null | null | null | import os
from pyfortune.session import Session
def get_login_session():
secrets_path = os.environ.get('SECRETS', 'secrets')
with open(secrets_path, 'r') as f:
lines = f.readlines()
username = lines[0].strip()
password = lines[1].strip()
s = Session()
s.login(username, password... | 21.444444 | 55 | 0.626943 | 51 | 386 | 4.647059 | 0.490196 | 0.050633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006873 | 0.246114 | 386 | 17 | 56 | 22.705882 | 0.80756 | 0 | 0 | 0.285714 | 0 | 0 | 0.03886 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
592074efa2a4c95a89b8a287921811835a2cc35e | 336 | py | Python | setup.py | swasun/RFOMT | 64ba63c01bd04f4f959d18aff27e245d8fff3403 | [
"MIT"
] | 2 | 2021-12-09T23:44:37.000Z | 2021-12-10T10:09:20.000Z | setup.py | swasun/RFOMT | 64ba63c01bd04f4f959d18aff27e245d8fff3403 | [
"MIT"
] | null | null | null | setup.py | swasun/RFOMT | 64ba63c01bd04f4f959d18aff27e245d8fff3403 | [
"MIT"
] | null | null | null | from setuptools import find_packages, setup
setup(
name='bolsonaro',
packages=find_packages(where="code", exclude=['doc', 'dev']),
package_dir={'': "code"},
version='0.1.0',
description='Bolsonaro project of QARMA non-permanents: deforesting random forest using OMP.',
author='QARMA team',
l... | 28 | 98 | 0.675595 | 41 | 336 | 5.463415 | 0.804878 | 0.107143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010714 | 0.166667 | 336 | 11 | 99 | 30.545455 | 0.789286 | 0 | 0 | 0 | 0 | 0 | 0.357143 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
592282de76675f1aa01e915245140b01e5765f8e | 8,986 | py | Python | addressbook/models.py | Saviq/django-addressbook | a5cd51a91c86a18c8cbb60675de2a149152cfc86 | [
"BSD-3-Clause"
] | null | null | null | addressbook/models.py | Saviq/django-addressbook | a5cd51a91c86a18c8cbb60675de2a149152cfc86 | [
"BSD-3-Clause"
] | null | null | null | addressbook/models.py | Saviq/django-addressbook | a5cd51a91c86a18c8cbb60675de2a149152cfc86 | [
"BSD-3-Clause"
] | null | null | null | from django.utils.translation import ugettext_lazy as _
from django.contrib.contenttypes.models import ContentType
from django.core.exceptions import ObjectDoesNotExist
from django.db import models
PROPERTY_LABELS = (
('home', _('home')),
('work', _('work')),
('other', _('other')),
)
IM_SERVICES = (
... | 32.207885 | 103 | 0.630425 | 941 | 8,986 | 5.785335 | 0.223167 | 0.038391 | 0.022043 | 0.033064 | 0.277737 | 0.235856 | 0.173769 | 0.135562 | 0.081374 | 0.049045 | 0 | 0.008721 | 0.247162 | 8,986 | 278 | 104 | 32.323741 | 0.796009 | 0.031271 | 0 | 0.251282 | 0 | 0 | 0.094005 | 0.004948 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107692 | false | 0 | 0.020513 | 0.061538 | 0.610256 | 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 |
592412590653b72792e6cea2e6a0cf2de1b7fe2f | 13,318 | py | Python | job.py | DiOS-Analysis/Worker | 619c119c0eaed5064d093a0aaa59e691935d7b34 | [
"BSD-3-Clause"
] | 3 | 2015-02-05T12:51:02.000Z | 2022-01-25T06:25:47.000Z | job.py | DiOS-Analysis/Worker | 619c119c0eaed5064d093a0aaa59e691935d7b34 | [
"BSD-3-Clause"
] | 1 | 2015-04-07T14:12:49.000Z | 2022-01-25T07:32:17.000Z | job.py | DiOS-Analysis/Worker | 619c119c0eaed5064d093a0aaa59e691935d7b34 | [
"BSD-3-Clause"
] | 6 | 2015-03-19T09:50:53.000Z | 2019-08-25T15:33:14.000Z |
import os
import logging
import base64
import time
from enum import Enum
from store import AppStore, AppStoreException
from pilot import Pilot
logger = logging.getLogger('worker.'+__name__)
class JobExecutionError(Exception):
pass
class Job(object):
STATE = Enum([u'undefined', u'pending', u'running', u'finishe... | 29.92809 | 119 | 0.703109 | 1,686 | 13,318 | 5.463227 | 0.149466 | 0.032244 | 0.016719 | 0.017588 | 0.373249 | 0.327543 | 0.292911 | 0.280751 | 0.274454 | 0.265552 | 0 | 0.003337 | 0.189893 | 13,318 | 444 | 120 | 29.995496 | 0.850403 | 0.090554 | 0 | 0.340136 | 0 | 0 | 0.191192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.003401 | 0.02381 | 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 |
59242cea84137525af5b754d33ed9c3b1704178f | 4,434 | py | Python | benchmarks/v3-app-note/run_benchmarks_pll_empirical.py | ayresdl/beagle-lib | 1d4b21d062999c303d0d8b3e1e306c3d5e81d708 | [
"MIT"
] | 110 | 2015-04-16T02:06:50.000Z | 2022-03-02T20:35:32.000Z | benchmarks/v3-app-note/run_benchmarks_pll_empirical.py | ayresdl/beagle-lib | 1d4b21d062999c303d0d8b3e1e306c3d5e81d708 | [
"MIT"
] | 92 | 2015-04-16T12:06:51.000Z | 2022-03-27T16:10:22.000Z | benchmarks/v3-app-note/run_benchmarks_pll_empirical.py | ayresdl/beagle-lib | 1d4b21d062999c303d0d8b3e1e306c3d5e81d708 | [
"MIT"
] | 49 | 2015-04-16T02:50:20.000Z | 2022-03-03T14:03:05.000Z | #!/usr/bin/env python2.7
# Daniel Ayres
import sys
import argparse
import subprocess
import re
from math import log, exp
# def gen_log_site_list(min, max, samples):
# log_range=(log(max) - log(min))
# samples_list = []
# for i in range(0, samples):
# samples_list.append(int(round(exp(log(min) + l... | 43.90099 | 113 | 0.493234 | 409 | 4,434 | 5.141809 | 0.305623 | 0.129339 | 0.146457 | 0.086543 | 0.101759 | 0.076082 | 0.029482 | 0 | 0 | 0 | 0 | 0.017302 | 0.361299 | 4,434 | 100 | 114 | 44.34 | 0.725282 | 0.088859 | 0 | 0 | 0 | 0 | 0.175813 | 0.016141 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.068493 | null | null | 0.027397 | 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 |
592ba144cb69d12e3f82c3b872be6e9f192e117d | 289 | py | Python | aiocloudflare/api/accounts/storage/analytics/analytics.py | Stewart86/aioCloudflare | 341c0941f8f888a8b7e696e64550bce5da4949e6 | [
"MIT"
] | 2 | 2021-09-14T13:20:55.000Z | 2022-02-24T14:18:24.000Z | aiocloudflare/api/accounts/storage/analytics/analytics.py | Stewart86/aioCloudflare | 341c0941f8f888a8b7e696e64550bce5da4949e6 | [
"MIT"
] | 46 | 2021-09-08T08:39:45.000Z | 2022-03-29T12:31:05.000Z | aiocloudflare/api/accounts/storage/analytics/analytics.py | Stewart86/aioCloudflare | 341c0941f8f888a8b7e696e64550bce5da4949e6 | [
"MIT"
] | 1 | 2021-12-30T23:02:23.000Z | 2021-12-30T23:02:23.000Z | from aiocloudflare.commons.auth import Auth
from .stored.stored import Stored
class Analytics(Auth):
_endpoint1 = "accounts"
_endpoint2 = "storage/analytics"
_endpoint3 = None
@property
def stored(self) -> Stored:
return Stored(self._config, self._session)
| 20.642857 | 50 | 0.705882 | 32 | 289 | 6.21875 | 0.625 | 0.100503 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013043 | 0.204152 | 289 | 13 | 51 | 22.230769 | 0.852174 | 0 | 0 | 0 | 0 | 0 | 0.086505 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0.111111 | 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 | 1 | 0 | 0 | 0 | 1 |
5937b9c55024f33f98c4acb4d5baa8b86c9d6efa | 983 | py | Python | examples/ReadDemo.py | Ellis0817/Introduction-to-Programming-Using-Python | 1882a2a846162d5ff56d4d56c3940b638ef408bd | [
"MIT"
] | null | null | null | examples/ReadDemo.py | Ellis0817/Introduction-to-Programming-Using-Python | 1882a2a846162d5ff56d4d56c3940b638ef408bd | [
"MIT"
] | 4 | 2019-11-07T12:32:19.000Z | 2020-07-19T14:04:44.000Z | examples/ReadDemo.py | Ellis0817/Introduction-to-Programming-Using-Python | 1882a2a846162d5ff56d4d56c3940b638ef408bd | [
"MIT"
] | 5 | 2019-12-04T15:56:55.000Z | 2022-01-14T06:19:18.000Z | def main():
# Open file for input
infile = open("Presidents.txt", "r")
print("(1) Using read(): ")
print(infile.read())
infile.close() # Close the input file
# Open file for input
infile = open("Presidents.txt", "r")
print("\n(2) Using read(number): ")
s1 = infile.read(4)
print(... | 26.567568 | 41 | 0.602238 | 130 | 983 | 4.553846 | 0.253846 | 0.076014 | 0.074324 | 0.108108 | 0.498311 | 0.498311 | 0.451014 | 0.451014 | 0.451014 | 0.451014 | 0 | 0.025367 | 0.238047 | 983 | 36 | 42 | 27.305556 | 0.76502 | 0.189217 | 0 | 0.285714 | 0 | 0 | 0.194409 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0 | 0 | 0.035714 | 0.428571 | 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 |
59473b359efb11f1488b9a8f5e562d1c0843a96d | 766 | py | Python | tests/test_auth.py | initfve/notify-server | d69271937556389f5a9afc9500438b884564c61f | [
"BSD-2-Clause"
] | 1 | 2021-12-06T19:25:59.000Z | 2021-12-06T19:25:59.000Z | tests/test_auth.py | initfve/notify-server | d69271937556389f5a9afc9500438b884564c61f | [
"BSD-2-Clause"
] | null | null | null | tests/test_auth.py | initfve/notify-server | d69271937556389f5a9afc9500438b884564c61f | [
"BSD-2-Clause"
] | 1 | 2021-12-22T10:43:53.000Z | 2021-12-22T10:43:53.000Z | import httpx
import pytest
import respx
from app import auth
@respx.mock
@pytest.mark.parametrize(
"side_effect, expected",
[
(httpx.Response(200), True),
(httpx.Response(201), True),
(httpx.ConnectError, False),
(httpx.ConnectTimeout, False),
(httpx.Response(400), Fals... | 25.533333 | 57 | 0.639687 | 87 | 766 | 5.528736 | 0.482759 | 0.189189 | 0.18711 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035473 | 0.227154 | 766 | 29 | 58 | 26.413793 | 0.777027 | 0 | 0 | 0 | 0 | 0 | 0.079634 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 1 | 0.037037 | false | 0 | 0.148148 | 0 | 0.185185 | 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 |
3ca56f2c6c9be0385353133694f32b323b564b6a | 18,090 | py | Python | huaweicloud-sdk-scm/huaweicloudsdkscm/v3/model/show_certificate_response.py | huaweicloud/huaweicloud-sdk-python-v3 | 7a6270390fcbf192b3882bf763e7016e6026ef78 | [
"Apache-2.0"
] | 64 | 2020-06-12T07:05:07.000Z | 2022-03-30T03:32:50.000Z | huaweicloud-sdk-scm/huaweicloudsdkscm/v3/model/show_certificate_response.py | huaweicloud/huaweicloud-sdk-python-v3 | 7a6270390fcbf192b3882bf763e7016e6026ef78 | [
"Apache-2.0"
] | 11 | 2020-07-06T07:56:54.000Z | 2022-01-11T11:14:40.000Z | huaweicloud-sdk-scm/huaweicloudsdkscm/v3/model/show_certificate_response.py | huaweicloud/huaweicloud-sdk-python-v3 | 7a6270390fcbf192b3882bf763e7016e6026ef78 | [
"Apache-2.0"
] | 24 | 2020-06-08T11:42:13.000Z | 2022-03-04T06:44:08.000Z | # coding: utf-8
import re
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ShowCertificateResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
... | 28.805732 | 359 | 0.618187 | 1,920 | 18,090 | 5.623438 | 0.097396 | 0.044457 | 0.214875 | 0.024081 | 0.564231 | 0.457257 | 0.359822 | 0.206817 | 0.114847 | 0.114847 | 0 | 0.000473 | 0.298065 | 18,090 | 627 | 360 | 28.851675 | 0.849819 | 0.389331 | 0 | 0.088561 | 0 | 0 | 0.07364 | 0.002324 | 0 | 0 | 0 | 0 | 0 | 1 | 0.169742 | false | 0 | 0.02214 | 0 | 0.302583 | 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 |
3ca9103f968c5506f473bd90376f1d3f63b9a91b | 519 | py | Python | HLTrigger/Configuration/python/HLT_75e33/paths/L1T_DoubleTkMuon_15_7_cfi.py | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 1 | 2021-11-30T16:24:46.000Z | 2021-11-30T16:24:46.000Z | HLTrigger/Configuration/python/HLT_75e33/paths/L1T_DoubleTkMuon_15_7_cfi.py | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 4 | 2021-11-29T13:57:56.000Z | 2022-03-29T06:28:36.000Z | HLTrigger/Configuration/python/HLT_75e33/paths/L1T_DoubleTkMuon_15_7_cfi.py | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 1 | 2021-11-30T16:16:05.000Z | 2021-11-30T16:16:05.000Z | import FWCore.ParameterSet.Config as cms
#from ..modules.hltL1TkMuons_cfi import *
from ..modules.hltDoubleMuon7DZ1p0_cfi import *
from ..modules.hltL1TkDoubleMuFiltered7_cfi import *
from ..modules.hltL1TkSingleMuFiltered15_cfi import *
from ..sequences.HLTBeginSequence_cfi import *
from ..sequences.HLTEndSequence_cf... | 28.833333 | 53 | 0.795761 | 48 | 519 | 8.416667 | 0.4375 | 0.133663 | 0.160891 | 0.148515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048889 | 0.132948 | 519 | 17 | 54 | 30.529412 | 0.848889 | 0.111753 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.461538 | 0 | 0.461538 | 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 |
3cae7e461f5e166a269ff6a97c70363ad1938441 | 1,493 | py | Python | query-csv-pandemic.py | puregome/queries | 07169611f8814d4f7fa3919d76e3262e0174729a | [
"Apache-2.0"
] | null | null | null | query-csv-pandemic.py | puregome/queries | 07169611f8814d4f7fa3919d76e3262e0174729a | [
"Apache-2.0"
] | null | null | null | query-csv-pandemic.py | puregome/queries | 07169611f8814d4f7fa3919d76e3262e0174729a | [
"Apache-2.0"
] | null | null | null | #/usr/bin/env python3
# query-csv-distance.py: extract social distancing tweets from csv file at stdin
# usage: gunzip -c file.csv.gz | python3 query-csv-test.py
# 20200525 erikt(at)xs4all.nl
import csv
import re
import sys
TOPICQUERY = "corona|covid|huisarts|mondkapje|rivm|blijfthuis|flattenthecurve|houvol"
PANDEMIC... | 49.766667 | 153 | 0.734092 | 188 | 1,493 | 5.840426 | 0.75 | 0.021858 | 0.027322 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012158 | 0.118553 | 1,493 | 29 | 154 | 51.482759 | 0.820669 | 0.123242 | 0 | 0 | 0 | 0.2 | 0.521839 | 0.490421 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15 | 0 | 0.15 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3caf44e3843339425c7cef3cf1a48ade0d10658d | 1,579 | py | Python | Others/Source/02/2.3/hex_test.py | silence0201/Learn-Python | 662da7c0e74221cedb445ba17d5cb1cd3af41c86 | [
"MIT"
] | 1 | 2018-05-30T01:38:23.000Z | 2018-05-30T01:38:23.000Z | Others/Source/02/2.3/hex_test.py | silence0201/Learn-Python | 662da7c0e74221cedb445ba17d5cb1cd3af41c86 | [
"MIT"
] | null | null | null | Others/Source/02/2.3/hex_test.py | silence0201/Learn-Python | 662da7c0e74221cedb445ba17d5cb1cd3af41c86 | [
"MIT"
] | null | null | null | # coding: utf-8
#########################################################################
# 网站: <a href="http://www.crazyit.org">疯狂Java联盟</a> #
# author yeeku.H.lee kongyeeku@163.com #
# #
# version... | 43.861111 | 74 | 0.352122 | 107 | 1,579 | 4.981308 | 0.588785 | 0.045028 | 0.033771 | 0.06379 | 0.150094 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104551 | 0.485117 | 1,579 | 35 | 75 | 45.114286 | 0.551046 | 0.616846 | 0 | 0.25 | 0 | 0 | 0.178571 | 0 | 0 | 0 | 0.020408 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4375 | 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 |
3cb618acc5bd81638904bb3d014451dca28cb7c0 | 1,151 | py | Python | repos/system_upgrade/el7toel8/actors/detectgrubconfigerror/actor.py | adka1408/leapp-repository | be5a9603b57f86c65d395ba6a02b860cacae0fb6 | [
"Apache-2.0"
] | null | null | null | repos/system_upgrade/el7toel8/actors/detectgrubconfigerror/actor.py | adka1408/leapp-repository | be5a9603b57f86c65d395ba6a02b860cacae0fb6 | [
"Apache-2.0"
] | 1 | 2020-06-15T18:32:21.000Z | 2020-06-15T18:32:21.000Z | repos/system_upgrade/el7toel8/actors/detectgrubconfigerror/actor.py | adka1408/leapp-repository | be5a9603b57f86c65d395ba6a02b860cacae0fb6 | [
"Apache-2.0"
] | null | null | null | from leapp.actors import Actor
from leapp.libraries.actor.scanner import detect_config_error
from leapp.models import GrubConfigError
from leapp.reporting import Report
from leapp.libraries.common.reporting import report_generic
from leapp.tags import ChecksPhaseTag, IPUWorkflowTag
class DetectGrubConfigError(Actor):... | 37.129032 | 103 | 0.695917 | 127 | 1,151 | 6.149606 | 0.480315 | 0.069142 | 0.046095 | 0.046095 | 0.058899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.24066 | 1,151 | 30 | 104 | 38.366667 | 0.893593 | 0.060817 | 0 | 0 | 0 | 0 | 0.256338 | 0.043192 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.272727 | 0 | 0.545455 | 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 |
3cb73ac99b0dab90aa7d81d4edbc73465476de34 | 315 | py | Python | mayan/apps/dynamic_search/links.py | Dave360-crypto/mayan-edms | 9cd37537461347f79ff0429e4b8b16fd2446798d | [
"Apache-2.0"
] | 3 | 2020-02-03T11:58:51.000Z | 2020-10-20T03:52:21.000Z | mayan/apps/dynamic_search/links.py | Dave360-crypto/mayan-edms | 9cd37537461347f79ff0429e4b8b16fd2446798d | [
"Apache-2.0"
] | null | null | null | mayan/apps/dynamic_search/links.py | Dave360-crypto/mayan-edms | 9cd37537461347f79ff0429e4b8b16fd2446798d | [
"Apache-2.0"
] | 2 | 2020-10-24T11:10:06.000Z | 2021-03-03T20:05:38.000Z | from django.utils.translation import ugettext_lazy as _
search = {'text': _(u'search'), 'view': 'search', 'famfam': 'zoom'}
search_advanced = {'text': _(u'advanced search'), 'view': 'search_advanced', 'famfam': 'zoom_in'}
search_again = {'text': _(u'search again'), 'view': 'search_again', 'famfam': 'arrow_undo'}
| 52.5 | 97 | 0.679365 | 40 | 315 | 5.075 | 0.475 | 0.073892 | 0.108374 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104762 | 315 | 5 | 98 | 63 | 0.719858 | 0 | 0 | 0 | 0 | 0 | 0.409524 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3cc7f1bc701a544f5755173520d15c5f0f51628f | 598 | py | Python | past_questions/migrations/0004_remove_faculty_department_faculty_department.py | curlyzik/varsity-pq | b3060b6e84947d877d84f6c42f53ab807e8c8ff4 | [
"MIT"
] | 2 | 2022-03-07T01:24:22.000Z | 2022-03-19T15:54:11.000Z | past_questions/migrations/0004_remove_faculty_department_faculty_department.py | curlyzik/varsity-pq | b3060b6e84947d877d84f6c42f53ab807e8c8ff4 | [
"MIT"
] | null | null | null | past_questions/migrations/0004_remove_faculty_department_faculty_department.py | curlyzik/varsity-pq | b3060b6e84947d877d84f6c42f53ab807e8c8ff4 | [
"MIT"
] | 1 | 2022-03-19T15:54:14.000Z | 2022-03-19T15:54:14.000Z | # Generated by Django 4.0 on 2021-12-18 01:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
(
"past_questions",
"0003_alter_department_level_alter_faculty_department_and_more",
),
]
operations = [
migrati... | 23 | 76 | 0.585284 | 55 | 598 | 6.145455 | 0.654545 | 0.076923 | 0.094675 | 0.118343 | 0.177515 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04401 | 0.316054 | 598 | 25 | 77 | 23.92 | 0.782396 | 0.071906 | 0 | 0.368421 | 1 | 0 | 0.242315 | 0.155515 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3ce2e85e1280707cb0621de74618465582e9a6da | 1,464 | py | Python | 2014/bio-2014-1-1.py | pratheeknagaraj/bio_solutions | c9b7896e113f0db54e4843b81a9aeb21436b3764 | [
"MIT"
] | null | null | null | 2014/bio-2014-1-1.py | pratheeknagaraj/bio_solutions | c9b7896e113f0db54e4843b81a9aeb21436b3764 | [
"MIT"
] | null | null | null | 2014/bio-2014-1-1.py | pratheeknagaraj/bio_solutions | c9b7896e113f0db54e4843b81a9aeb21436b3764 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
bio-2014-1-1.py: Sample solution for question 1 on
the 2014 British Informatics Olympiad Round One exam
Lucky Numbers
"""
__author__ = "Pratheek Nagaraj"
__date__ = "25 January 2016"
"""
This is simply an implemenation based problem. We first
generate the list of lucky numbers via the ... | 22.523077 | 55 | 0.662568 | 230 | 1,464 | 4.078261 | 0.395652 | 0.059701 | 0.034115 | 0.03838 | 0.141791 | 0.141791 | 0.053305 | 0 | 0 | 0 | 0 | 0.034636 | 0.230874 | 1,464 | 65 | 56 | 22.523077 | 0.798401 | 0.047814 | 0 | 0 | 0 | 0 | 0.029328 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3ce6370a27eb7dadf6e6a1a64ce7434715934625 | 713 | py | Python | oo/pessoa.py | limaon/pythonbirds | 3d08d7b8ec6f5969168f2814866400351996c93a | [
"MIT"
] | null | null | null | oo/pessoa.py | limaon/pythonbirds | 3d08d7b8ec6f5969168f2814866400351996c93a | [
"MIT"
] | null | null | null | oo/pessoa.py | limaon/pythonbirds | 3d08d7b8ec6f5969168f2814866400351996c93a | [
"MIT"
] | null | null | null | class Pessoa:
def __init__(self, nome=None, idade=35):
self.idade = idade
self.nome = nome
def cumprimentar(self):
return f'Ola {id(self)}'
class CirculoPerfeito:
def __init__(self):
self.cor = 'Azul'
self.circuferencia = 4
self.material = 'Papel'
def... | 22.28125 | 62 | 0.659187 | 82 | 713 | 5.390244 | 0.390244 | 0.20362 | 0.049774 | 0.090498 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005515 | 0.237027 | 713 | 31 | 63 | 23 | 0.806985 | 0 | 0 | 0 | 0 | 0 | 0.053296 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0 | 0 | 0.095238 | 0.380952 | 0.190476 | 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 |
3cf9038f24b68c4b61b5c0f20cceb2213ea1a621 | 204 | py | Python | tests/settings.py | jamesturk/django-mergeobject | e4f8b743ed223f4bffffcad86b581d0aa9eeb58b | [
"BSD-2-Clause"
] | null | null | null | tests/settings.py | jamesturk/django-mergeobject | e4f8b743ed223f4bffffcad86b581d0aa9eeb58b | [
"BSD-2-Clause"
] | null | null | null | tests/settings.py | jamesturk/django-mergeobject | e4f8b743ed223f4bffffcad86b581d0aa9eeb58b | [
"BSD-2-Clause"
] | null | null | null | SECRET_KEY = 'so-secret'
INSTALLED_APPS = (
'tests',
)
MIDDLEWARE_CLASSES = ()
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'db.sqlite3',
}
}
| 12.75 | 47 | 0.553922 | 19 | 204 | 5.789474 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013333 | 0.264706 | 204 | 15 | 48 | 13.6 | 0.72 | 0 | 0 | 0 | 0 | 0 | 0.330049 | 0.128079 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3cfcf731611dbe869723b4a40c2c6a4ced00d318 | 1,289 | py | Python | traffic_lights/training/train.py | aidandunlop/traffic_light_recognition | 497efe7fe678b88db5331ba446fc45c240276e3f | [
"MIT"
] | 5 | 2020-05-11T04:11:56.000Z | 2022-02-17T09:17:08.000Z | traffic_lights/training/train.py | aidandunlop/traffic_light_recognition | 497efe7fe678b88db5331ba446fc45c240276e3f | [
"MIT"
] | 3 | 2021-06-08T21:24:47.000Z | 2022-03-12T00:26:40.000Z | traffic_lights/training/train.py | aidandunlop/traffic_light_recognition | 497efe7fe678b88db5331ba446fc45c240276e3f | [
"MIT"
] | 4 | 2020-05-10T03:20:08.000Z | 2021-12-08T09:49:42.000Z | import torch
import numpy as np
from traffic_lights.data.constants import CLASS_LABEL_MAP
from traffic_lights.lib.engine import train_one_epoch
from .model import get_model, evaluate
# TODO: add eval boolean flag, which reports eval stuff if wanted
# TODO: look at amount of parameters y so much
def train(
param... | 32.225 | 82 | 0.726144 | 172 | 1,289 | 5.19186 | 0.47093 | 0.044793 | 0.067189 | 0.053751 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004739 | 0.181536 | 1,289 | 39 | 83 | 33.051282 | 0.841706 | 0.083786 | 0 | 0 | 0 | 0 | 0.062818 | 0.021222 | 0 | 0 | 0 | 0.025641 | 0 | 1 | 0.032258 | false | 0 | 0.16129 | 0 | 0.225806 | 0.096774 | 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 |
a70168825bc1a3ea1b32360a5c6de6c47d22032a | 3,073 | py | Python | hello_new_project.py | Dangl-IT/avacloud-demo-python | 161ccbd0fdb8f4c0306ce1d4a94f6a4db2c1738a | [
"RSA-MD"
] | 1 | 2019-01-12T18:10:20.000Z | 2019-01-12T18:10:20.000Z | hello_new_project.py | Dangl-IT/avacloud-demo-python | 161ccbd0fdb8f4c0306ce1d4a94f6a4db2c1738a | [
"RSA-MD"
] | null | null | null | hello_new_project.py | Dangl-IT/avacloud-demo-python | 161ccbd0fdb8f4c0306ce1d4a94f6a4db2c1738a | [
"RSA-MD"
] | null | null | null | from __future__ import print_function
import time
import avacloud_client_python
from avacloud_client_python.rest import ApiException
import requests
import os
import json
client_id = 'use_your_own_value'
client_secret = 'use_your_own_value'
url = 'https://identity.dangl-it.com/connect/token'
payload = {'grant_type': ... | 33.769231 | 143 | 0.582493 | 283 | 3,073 | 6.106007 | 0.530035 | 0.040509 | 0.05787 | 0.017361 | 0.056713 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015729 | 0.31728 | 3,073 | 90 | 144 | 34.144444 | 0.807912 | 0.148715 | 0 | 0.151899 | 0 | 0 | 0.642146 | 0.117241 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.088608 | 0 | 0.088608 | 0.025316 | 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 |
a703ae6a97f039d23cf31c8a00e25cfe29333cb9 | 1,332 | py | Python | autograd/scipy/stats/beta.py | gautam1858/autograd | 8d7acaf79e33139b4ebfedf7da0602a965b47c63 | [
"MIT"
] | 6,119 | 2015-03-10T03:55:58.000Z | 2022-03-31T11:54:19.000Z | autograd/scipy/stats/beta.py | EnjoyLifeFund/Debian_py36_packages | 1985d4c73fabd5f08f54b922e73a9306e09c77a5 | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | 523 | 2015-03-10T11:59:23.000Z | 2022-03-05T15:31:59.000Z | autograd/scipy/stats/beta.py | EnjoyLifeFund/Debian_py36_packages | 1985d4c73fabd5f08f54b922e73a9306e09c77a5 | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | 949 | 2015-03-11T20:04:20.000Z | 2022-03-31T12:13:11.000Z | from __future__ import absolute_import
import autograd.numpy as np
import scipy.stats
from autograd.extend import primitive, defvjp
from autograd.numpy.numpy_vjps import unbroadcast_f
from autograd.scipy.special import beta, psi
cdf = primitive(scipy.stats.beta.cdf)
logpdf = primitive(scipy.stats.beta.logpdf)
pdf = p... | 42.967742 | 129 | 0.665165 | 249 | 1,332 | 3.393574 | 0.164659 | 0.04497 | 0.056805 | 0.091124 | 0.526627 | 0.507692 | 0.507692 | 0.372781 | 0.372781 | 0.372781 | 0 | 0.016499 | 0.180931 | 1,332 | 30 | 130 | 44.4 | 0.75802 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0.125 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
a71114312c25a2b1d17841cb16138bd98f562553 | 4,177 | py | Python | helpers_fritz.py | scarfboy/fritzbox-traffic | 888062a7059e317bbe6b0a473ebf54526cee6fcd | [
"Apache-2.0"
] | null | null | null | helpers_fritz.py | scarfboy/fritzbox-traffic | 888062a7059e317bbe6b0a473ebf54526cee6fcd | [
"Apache-2.0"
] | null | null | null | helpers_fritz.py | scarfboy/fritzbox-traffic | 888062a7059e317bbe6b0a473ebf54526cee6fcd | [
"Apache-2.0"
] | null | null | null | import time, urllib, urllib2, hashlib, pprint, re, sys
import urllib, urllib2, socket, httplib
import json
"""
Being lazy with globals because you probably don't have more than one in your LAN
Note that login takes a little time. The _fritz_sid keeps the login token so if you can
keep the interpreter runn... | 36.321739 | 127 | 0.60091 | 555 | 4,177 | 4.396396 | 0.409009 | 0.019672 | 0.018033 | 0.010656 | 0.107377 | 0.095902 | 0.095902 | 0.095902 | 0.071311 | 0.071311 | 0 | 0.015244 | 0.293273 | 4,177 | 114 | 128 | 36.640351 | 0.811314 | 0.071343 | 0 | 0.225352 | 0 | 0.028169 | 0.144198 | 0.021029 | 0 | 0 | 0 | 0.008772 | 0 | 0 | null | null | 0.028169 | 0.056338 | null | null | 0.042254 | 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 |
a714b80034c3a95f6c90fdeb5980b7141a59c5ea | 1,455 | py | Python | api/serializers.py | lutoma/open-grgraz | 5f371a0af467518ea7ae69082ef22d55302e4cb1 | [
"MIT"
] | 2 | 2016-10-08T22:51:48.000Z | 2021-05-26T16:37:03.000Z | api/serializers.py | lutoma/open-grgraz | 5f371a0af467518ea7ae69082ef22d55302e4cb1 | [
"MIT"
] | 10 | 2017-01-20T12:39:03.000Z | 2017-03-06T00:59:34.000Z | api/serializers.py | lutoma/open-grgraz | 5f371a0af467518ea7ae69082ef22d55302e4cb1 | [
"MIT"
] | 2 | 2016-12-05T09:50:07.000Z | 2021-05-26T16:37:08.000Z | from rest_framework import serializers
from api.models import *
class ParliamentaryGroupSerializer(serializers.ModelSerializer):
class Meta:
model = ParliamentaryGroup
fields = ('id', 'name')
class ParliamentarySessionSerializer(serializers.ModelSerializer):
class Meta:
model = Parli... | 29.1 | 94 | 0.682474 | 121 | 1,455 | 8.115702 | 0.363636 | 0.158859 | 0.08554 | 0.142566 | 0.513238 | 0.350306 | 0.350306 | 0.350306 | 0.350306 | 0.350306 | 0 | 0 | 0.210997 | 1,455 | 49 | 95 | 29.693878 | 0.855401 | 0 | 0 | 0.4 | 0 | 0 | 0.151203 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.057143 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a72c5a7edf46af73ce1df4d9a62b2ed007d1041f | 869 | py | Python | Sound/micro.py | mencattini/ReMIx | 137be1c690eae418ffd15059bfcb3ebf561eee16 | [
"Apache-2.0"
] | 1 | 2018-03-02T14:39:13.000Z | 2018-03-02T14:39:13.000Z | Sound/micro.py | mencattini/ReMIx | 137be1c690eae418ffd15059bfcb3ebf561eee16 | [
"Apache-2.0"
] | null | null | null | Sound/micro.py | mencattini/ReMIx | 137be1c690eae418ffd15059bfcb3ebf561eee16 | [
"Apache-2.0"
] | null | null | null | """Microphone module."""
import alsaaudio
# pylint: disable=R0903, E1101
class Micro():
"""Class to use micro in a `with` bloc."""
def __init__(self, alsaaudio_capture=alsaaudio.PCM_CAPTURE,
alsaaudio_nonblock=alsaaudio.PCM_NONBLOCK):
"""Open the device in nonblocking capture mode.
... | 31.035714 | 78 | 0.64672 | 109 | 869 | 4.990826 | 0.53211 | 0.051471 | 0.069853 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012422 | 0.258918 | 869 | 27 | 79 | 32.185185 | 0.832298 | 0.378596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.083333 | 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 |
a72cf4c112d436a2260a5d03edb0d6a1b368ff54 | 328 | py | Python | Programiz Projects/4 - Find the Area of a Triangle.py | PythonCodes1/Python-Progression | 21fdcd3ab34cf7319469f7941a59a1f88f12fe4e | [
"MIT"
] | null | null | null | Programiz Projects/4 - Find the Area of a Triangle.py | PythonCodes1/Python-Progression | 21fdcd3ab34cf7319469f7941a59a1f88f12fe4e | [
"MIT"
] | null | null | null | Programiz Projects/4 - Find the Area of a Triangle.py | PythonCodes1/Python-Progression | 21fdcd3ab34cf7319469f7941a59a1f88f12fe4e | [
"MIT"
] | null | null | null | """
To find the area of a triangle, you must use this method:
s = (a+b+c)/2
area = √(s(s-a)*(s-b)*(s-c))
"""
a = float(input('Enter first side: '))
b = float(input('Enter second side: '))
c = float(input('Enter third side: '))
s = (a+b+c)/2
area = (s*(s-a)*(s-b)*(s-c)) ** 0.5
print("The area of the triangle is %0.2f"... | 23.428571 | 57 | 0.573171 | 69 | 328 | 2.73913 | 0.42029 | 0.042328 | 0.238095 | 0.042328 | 0.169312 | 0.169312 | 0.074074 | 0 | 0 | 0 | 0 | 0.022059 | 0.170732 | 328 | 13 | 58 | 25.230769 | 0.669118 | 0.304878 | 0 | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 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 |
a72dd91ebb1a31d273b54157802d40676281dcc6 | 527 | py | Python | app/payments/migrations/0003_auto_20181219_2332.py | zanielyene/krabacus3 | de985874b4034b13564cfd4af5e58e312fe5d438 | [
"MIT"
] | 2 | 2020-01-24T14:15:04.000Z | 2020-04-10T21:49:18.000Z | app/payments/migrations/0003_auto_20181219_2332.py | zanielyene/krabacus3 | de985874b4034b13564cfd4af5e58e312fe5d438 | [
"MIT"
] | 3 | 2020-02-12T00:31:59.000Z | 2021-06-10T21:33:49.000Z | app/payments/migrations/0003_auto_20181219_2332.py | zanielyene/krabacus3 | de985874b4034b13564cfd4af5e58e312fe5d438 | [
"MIT"
] | 3 | 2020-01-04T19:02:34.000Z | 2020-09-13T20:42:43.000Z | # Generated by Django 2.1.2 on 2018-12-19 23:32
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('payments', '0002_auto_20181219_2206'),
]
operations = [
migrations.AlterField(
... | 25.095238 | 112 | 0.656546 | 61 | 527 | 5.57377 | 0.688525 | 0.035294 | 0.047059 | 0.058824 | 0.070588 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126551 | 0.235294 | 527 | 20 | 113 | 26.35 | 0.717122 | 0.085389 | 0 | 0 | 1 | 0 | 0.139583 | 0.047917 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a73a8cbb73bbf9caa8c552be4ac578d376fd844a | 3,524 | py | Python | utils/files_to_h5_hierarchical.py | lzamparo/SdA_reduce | 1dc11f23b395f316df5f41448542d2d5c2e619ff | [
"BSD-3-Clause"
] | null | null | null | utils/files_to_h5_hierarchical.py | lzamparo/SdA_reduce | 1dc11f23b395f316df5f41448542d2d5c2e619ff | [
"BSD-3-Clause"
] | null | null | null | utils/files_to_h5_hierarchical.py | lzamparo/SdA_reduce | 1dc11f23b395f316df5f41448542d2d5c2e619ff | [
"BSD-3-Clause"
] | null | null | null | #! /usr/bin/env python
"""
Vacuum up all the object.CSV files from the given input directory, and pack them into an hdf5 file that is organized by plate.well
Plates go 1 .. 14. Rows go 1 ... 16, Cols 1 ... 24.
"""
import os
from optparse import OptionParser
import pandas
from tables.file import File, openFile
from... | 35.959184 | 136 | 0.648127 | 528 | 3,524 | 4.227273 | 0.354167 | 0.018817 | 0.026882 | 0.017025 | 0.055556 | 0.021505 | 0 | 0 | 0 | 0 | 0 | 0.012863 | 0.227866 | 3,524 | 97 | 137 | 36.329897 | 0.807424 | 0.174234 | 0 | 0.064516 | 0 | 0 | 0.167345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.112903 | null | null | 0.064516 | 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 |
a73b2ed4a010b6a07662fdf3bc70491bceb41b9a | 333 | py | Python | pyImagingMSpec/smoothing.py | andy-d-palmer/pyIMS | 1e7ce40a6a8cd6ff3ed4b4d9152140d38b6ee1d9 | [
"Apache-2.0"
] | 2 | 2017-11-23T10:01:56.000Z | 2021-07-16T19:38:50.000Z | pyImagingMSpec/smoothing.py | andy-d-palmer/pyIMS | 1e7ce40a6a8cd6ff3ed4b4d9152140d38b6ee1d9 | [
"Apache-2.0"
] | 1 | 2015-08-31T07:00:56.000Z | 2015-08-31T07:00:56.000Z | pyImagingMSpec/smoothing.py | andy-d-palmer/pyIMS | 1e7ce40a6a8cd6ff3ed4b4d9152140d38b6ee1d9 | [
"Apache-2.0"
] | 4 | 2015-07-30T12:07:10.000Z | 2018-06-02T04:03:31.000Z | __author__ = 'palmer'
# every method in smoothing should accept (im,**args)
def median(im, **kwargs):
from scipy import ndimage
im = ndimage.filters.median_filter(im,**kwargs)
return im
def hot_spot_removal(xic, q=99.):
import numpy as np
xic_q = np.percentile(xic, q)
xic[xic > xic_q] = xic_q
... | 27.75 | 53 | 0.678679 | 52 | 333 | 4.153846 | 0.576923 | 0.092593 | 0.064815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007576 | 0.207207 | 333 | 12 | 54 | 27.75 | 0.810606 | 0.153153 | 0 | 0 | 0 | 0 | 0.021352 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
595b19bfeea98fa7f0824579ed9b7720c00b981f | 794 | py | Python | backend/apps/risks/views.py | intellisense/risks | e98b8c6e5694b895603f7ff1b3c04b6057aa1136 | [
"MIT"
] | null | null | null | backend/apps/risks/views.py | intellisense/risks | e98b8c6e5694b895603f7ff1b3c04b6057aa1136 | [
"MIT"
] | null | null | null | backend/apps/risks/views.py | intellisense/risks | e98b8c6e5694b895603f7ff1b3c04b6057aa1136 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from rest_framework import generics
from rest_framework.views import APIView
from rest_framework.response import Response
from .models import RiskType, RiskField
from .serializers import RiskTypeSerializer
class RiskTypeList(generics.ListCreateAPIView)... | 27.37931 | 79 | 0.738035 | 87 | 794 | 6.586207 | 0.54023 | 0.041885 | 0.089005 | 0.09075 | 0.223386 | 0.223386 | 0.223386 | 0.223386 | 0 | 0 | 0 | 0.001529 | 0.176322 | 794 | 28 | 80 | 28.357143 | 0.874618 | 0.078086 | 0 | 0.25 | 0 | 0 | 0.019774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.375 | 0 | 0.9375 | 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 |
595fdf4318bdb50365d4f074a0256f4a235d17f3 | 6,288 | py | Python | wmm/wrapper.py | ESA-VirES/WMM | 3bdefc27abf8a5b0e84ce173e062cde26b154e22 | [
"MIT"
] | 1 | 2017-11-21T22:23:41.000Z | 2017-11-21T22:23:41.000Z | wmm/wrapper.py | ESA-VirES/WMM | 3bdefc27abf8a5b0e84ce173e062cde26b154e22 | [
"MIT"
] | null | null | null | wmm/wrapper.py | ESA-VirES/WMM | 3bdefc27abf8a5b0e84ce173e062cde26b154e22 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import sys
import argparse
import os
import os.path
import subprocess
import numpy
import gdal
import osr
import ogr
from uuid import uuid4
import logging
logger = logging.getLogger(__name__)
zoomresolution = {
0.70312500:0,
0.35156250:1,
0.17578125:2,
0.08789063:3,
0.043945... | 23.639098 | 92 | 0.602735 | 799 | 6,288 | 4.639549 | 0.322904 | 0.041273 | 0.060426 | 0.013758 | 0.103048 | 0.082007 | 0.0669 | 0.03345 | 0 | 0 | 0 | 0.063972 | 0.264154 | 6,288 | 265 | 93 | 23.728302 | 0.737195 | 0.159828 | 0 | 0.013793 | 0 | 0 | 0.032219 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.082759 | null | null | 0.117241 | 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 |
5962ef51069018cede1943e21ff471ade10a5c94 | 498 | py | Python | rdmo/questions/migrations/0051_sites_blank.py | ItsNotYou/rdmo | eba2056b376107e817a4080fc12245095a907429 | [
"Apache-2.0"
] | 77 | 2016-08-09T11:40:20.000Z | 2022-03-06T11:03:26.000Z | rdmo/questions/migrations/0051_sites_blank.py | MSpenger/rdmo | c0500f9b6caff9106a254a05e0d0e8018fc8db28 | [
"Apache-2.0"
] | 377 | 2016-07-01T13:59:36.000Z | 2022-03-30T13:53:19.000Z | rdmo/questions/migrations/0051_sites_blank.py | MSpenger/rdmo | c0500f9b6caff9106a254a05e0d0e8018fc8db28 | [
"Apache-2.0"
] | 47 | 2016-06-23T11:32:19.000Z | 2022-03-01T11:34:37.000Z | # Generated by Django 2.2.9 on 2020-02-14 10:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('questions', '0050_data_migration'),
]
operations = [
migrations.AlterField(
model_name='catalog',
name='sites',
... | 26.210526 | 164 | 0.630522 | 59 | 498 | 5.237288 | 0.745763 | 0.058252 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050802 | 0.248996 | 498 | 18 | 165 | 27.666667 | 0.775401 | 0.090361 | 0 | 0 | 1 | 0 | 0.250554 | 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 |
596e1f8a394ddb3bb7ca156e424de45af25ffd7e | 11,099 | py | Python | powerwatch/analysis/old_analysis_scripts/monthly_pw_dw_correlate.py | nklugman/PlugWatch | 4fbd2506a6808542fc5246e87d3c382761da1eaf | [
"MIT"
] | null | null | null | powerwatch/analysis/old_analysis_scripts/monthly_pw_dw_correlate.py | nklugman/PlugWatch | 4fbd2506a6808542fc5246e87d3c382761da1eaf | [
"MIT"
] | null | null | null | powerwatch/analysis/old_analysis_scripts/monthly_pw_dw_correlate.py | nklugman/PlugWatch | 4fbd2506a6808542fc5246e87d3c382761da1eaf | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from pyspark.sql import SparkSession
from pyspark.sql.functions import col, window, asc, desc, lead, lag, udf, hour, month, dayofmonth, collect_list, lit, year, coalesce, mean
import pyspark.sql.functions as F
from pyspark.sql.window import Window
from pyspark.sql.types import FloatType, IntegerTy... | 43.01938 | 201 | 0.71583 | 1,718 | 11,099 | 4.417346 | 0.177532 | 0.033206 | 0.020556 | 0.026354 | 0.460667 | 0.378574 | 0.337726 | 0.264857 | 0.221768 | 0.203321 | 0 | 0.021985 | 0.139382 | 11,099 | 257 | 202 | 43.18677 | 0.772508 | 0.300658 | 0 | 0.326923 | 0 | 0 | 0.209399 | 0.037388 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.012821 | 0.064103 | null | null | 0.00641 | 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 |
596f5633cc3df64b6aaa6a2c4921c71c6ec67267 | 2,394 | py | Python | models.py | chawlaj100/P1_Facial_Keypoints | 33e64872d3435eb3afdee582cb73059c295de7e3 | [
"MIT"
] | 1 | 2020-07-29T09:10:27.000Z | 2020-07-29T09:10:27.000Z | models.py | chawlaj100/P1_Facial_Keypoints | 33e64872d3435eb3afdee582cb73059c295de7e3 | [
"MIT"
] | null | null | null | models.py | chawlaj100/P1_Facial_Keypoints | 33e64872d3435eb3afdee582cb73059c295de7e3 | [
"MIT"
] | null | null | null | ## TODO: define the convolutional neural network architecture
import torch
from torch.autograd import Variable
import torch.nn as nn
import torch.nn.functional as F
# can use the below import should you choose to initialize the weights of your Net
import torch.nn.init as I
class Net(nn.Module):
def __init__(sel... | 39.245902 | 117 | 0.584795 | 370 | 2,394 | 3.762162 | 0.402703 | 0.030172 | 0.03592 | 0.039511 | 0.109914 | 0.068966 | 0.034483 | 0 | 0 | 0 | 0 | 0.104891 | 0.291145 | 2,394 | 60 | 118 | 39.9 | 0.71538 | 0.433166 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016667 | 0 | 1 | 0.066667 | false | 0 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5971421b568b0f6d70f7053196e25c4e4424ace0 | 1,605 | py | Python | bitey/cpu/addressing_mode_factory.py | jgerrish/bitey | a393a83c19338d94116f3405f4b8a0f03ea84d79 | [
"MIT"
] | null | null | null | bitey/cpu/addressing_mode_factory.py | jgerrish/bitey | a393a83c19338d94116f3405f4b8a0f03ea84d79 | [
"MIT"
] | null | null | null | bitey/cpu/addressing_mode_factory.py | jgerrish/bitey | a393a83c19338d94116f3405f4b8a0f03ea84d79 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from typing import ClassVar
from bitey.cpu.addressing_mode import (
AddressingMode,
AbsoluteAddressingMode,
AbsoluteIndirectAddressingMode,
AbsoluteXAddressingMode,
AbsoluteYAddressingMode,
AccumulatorAddressingMode,
ImmediateAddressingMode,
ImpliedAddre... | 33.4375 | 75 | 0.743302 | 116 | 1,605 | 10.094828 | 0.422414 | 0.1076 | 0.059778 | 0.064902 | 0.047822 | 0.047822 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193769 | 1,605 | 47 | 76 | 34.148936 | 0.904946 | 0.069782 | 0 | 0 | 0 | 0 | 0.14891 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.071429 | 0 | 0.214286 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
597274dbf1a04b6a4c16b2e8c314f6ddb0bdec9e | 6,243 | py | Python | crsbot_source/consts.py | Qman11010101/chunithmSelectorBot | 2bd82574ab9ebe63784ff780df82d6384ba7efe4 | [
"MIT"
] | null | null | null | crsbot_source/consts.py | Qman11010101/chunithmSelectorBot | 2bd82574ab9ebe63784ff780df82d6384ba7efe4 | [
"MIT"
] | 5 | 2021-04-10T17:38:29.000Z | 2021-04-23T14:01:05.000Z | crsbot_source/consts.py | Qman11010101/chunithmSelectorBot | 2bd82574ab9ebe63784ff780df82d6384ba7efe4 | [
"MIT"
] | null | null | null | import json
import os
from os import environ as env
from distutils.util import strtobool
if os.path.isfile("setting.json"):
with open("setting.json", "r", encoding="UTF-8_sig") as s:
setting = json.load(s)
else:
setting = {
"token": {
"discord": env["discord_token"],
"ch... | 25.173387 | 96 | 0.709114 | 739 | 6,243 | 6.017591 | 0.289581 | 0.020463 | 0.01799 | 0.025186 | 0.45154 | 0.431302 | 0.427254 | 0.387677 | 0.36609 | 0.36609 | 0 | 0.014971 | 0.111965 | 6,243 | 247 | 97 | 25.275304 | 0.770382 | 0.006567 | 0 | 0.518325 | 0 | 0.052356 | 0.809332 | 0.373103 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.020942 | 0 | 0.020942 | 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 |
597c2c6f509479138a723f7327144a573592c29e | 1,812 | py | Python | galerias/migrations/0003_auto_20190806_1038.py | shiminasai/cantera | 90f162351e1ad6ffaaf79cf90c361e302ab6e09f | [
"MIT"
] | null | null | null | galerias/migrations/0003_auto_20190806_1038.py | shiminasai/cantera | 90f162351e1ad6ffaaf79cf90c361e302ab6e09f | [
"MIT"
] | null | null | null | galerias/migrations/0003_auto_20190806_1038.py | shiminasai/cantera | 90f162351e1ad6ffaaf79cf90c361e302ab6e09f | [
"MIT"
] | 2 | 2019-04-10T19:45:42.000Z | 2019-04-24T17:16:40.000Z | # Generated by Django 2.1.7 on 2019-08-06 16:38
import ckeditor_uploader.fields
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import sorl.thumbnail.fields
class Migration(migrations.Migration):
dependencies = [... | 34.846154 | 136 | 0.61755 | 175 | 1,812 | 6.245714 | 0.388571 | 0.049405 | 0.084172 | 0.098811 | 0.457457 | 0.457457 | 0.457457 | 0.457457 | 0.457457 | 0.398902 | 0 | 0.023718 | 0.278698 | 1,812 | 51 | 137 | 35.529412 | 0.812548 | 0.024834 | 0 | 0.644444 | 1 | 0 | 0.108518 | 0.013419 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
597f409d6d7b0943097111bbce6c5d890bf7b9bd | 2,452 | py | Python | 2-resources/_External-learning-resources/02-pyth/python-patterns-master/patterns/creational/prototype.py | eengineergz/Lambda | 1fe511f7ef550aed998b75c18a432abf6ab41c5f | [
"MIT"
] | null | null | null | 2-resources/_External-learning-resources/02-pyth/python-patterns-master/patterns/creational/prototype.py | eengineergz/Lambda | 1fe511f7ef550aed998b75c18a432abf6ab41c5f | [
"MIT"
] | null | null | null | 2-resources/_External-learning-resources/02-pyth/python-patterns-master/patterns/creational/prototype.py | eengineergz/Lambda | 1fe511f7ef550aed998b75c18a432abf6ab41c5f | [
"MIT"
] | 1 | 2021-11-05T07:48:26.000Z | 2021-11-05T07:48:26.000Z | """
*What is this pattern about?
This patterns aims to reduce the number of classes required by an
application. Instead of relying on subclasses it creates objects by
copying a prototypical instance at run-time.
This is useful as it makes it easier to derive new kinds of objects,
when instances of the class have only ... | 29.902439 | 76 | 0.667618 | 323 | 2,452 | 4.928793 | 0.408669 | 0.027638 | 0.045226 | 0.021357 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214111 | 2,452 | 81 | 77 | 30.271605 | 0.826155 | 0.627243 | 0 | 0 | 0 | 0 | 0.01816 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.318182 | false | 0 | 0.090909 | 0 | 0.590909 | 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 |
59847cf97e3d87af2fd84a01638f77a552face80 | 4,189 | py | Python | awacs/devicefarm.py | alanjjenkins/awacs | 0065e1833eae6a6070edb4ab4f180fd10b26c19a | [
"BSD-2-Clause"
] | 358 | 2015-01-01T05:11:05.000Z | 2022-03-20T14:11:39.000Z | awacs/devicefarm.py | alanjjenkins/awacs | 0065e1833eae6a6070edb4ab4f180fd10b26c19a | [
"BSD-2-Clause"
] | 171 | 2015-01-17T00:32:48.000Z | 2022-03-28T02:02:57.000Z | awacs/devicefarm.py | michael-k/awacs | ed3dc822d268f10b0cd83feb90fd279277e54ed4 | [
"BSD-2-Clause"
] | 100 | 2015-01-04T16:34:34.000Z | 2022-02-21T06:17:17.000Z | # Copyright (c) 2012-2021, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
from .aws import Action as BaseAction
from .aws import BaseARN
service_name = "AWS Device Farm"
prefix = "devicefarm"
class Action(BaseAction):
def __init__(self, action: str = None) -> None:
... | 41.068627 | 88 | 0.805443 | 303 | 4,189 | 11.079208 | 0.382838 | 0.004766 | 0.007745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002087 | 0.084984 | 4,189 | 101 | 89 | 41.475248 | 0.873728 | 0.025304 | 0 | 0 | 0 | 0 | 0.316086 | 0.120157 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022472 | false | 0 | 0.022472 | 0 | 0.067416 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
598671b53befa762fc79ab40146d1650077846ad | 5,801 | py | Python | tools/tube.py | fsanges/glTools | 8ff0899de43784a18bd4543285655e68e28fb5e5 | [
"MIT"
] | 165 | 2015-01-26T05:22:04.000Z | 2022-03-22T02:50:41.000Z | tools/tube.py | qeeji/glTools | 8ff0899de43784a18bd4543285655e68e28fb5e5 | [
"MIT"
] | 5 | 2015-12-02T02:39:44.000Z | 2020-12-09T02:45:54.000Z | tools/tube.py | qeeji/glTools | 8ff0899de43784a18bd4543285655e68e28fb5e5 | [
"MIT"
] | 83 | 2015-02-10T17:18:24.000Z | 2022-02-10T07:16:47.000Z | import maya.cmds as mc
import glTools.tools.controlBuilder
import glTools.utils.attach
import glTools.utils.base
import glTools.utils.attribute
import glTools.utils.component
import glTools.utils.stringUtils
def buildProfile(radius=1,spans=8):
'''
Create tube profile curve (circle)
@param radius: Profile radius
... | 27.107477 | 89 | 0.695742 | 863 | 5,801 | 4.662804 | 0.23175 | 0.02833 | 0.020875 | 0.040258 | 0.292247 | 0.183648 | 0.128728 | 0.110835 | 0.096918 | 0.059642 | 0 | 0.024917 | 0.114463 | 5,801 | 213 | 90 | 27.234742 | 0.758419 | 0.055852 | 0 | 0.210526 | 0 | 0 | 0.129261 | 0.01283 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.052632 | 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 |
5995cd51be78ac81e62c767a936f178efc35c3de | 2,143 | py | Python | application/data_entry_review.py | PaulineLc/OpenDoorData | 203b19427467e330cd04b4dc5e8c31d5b9af755c | [
"MIT"
] | null | null | null | application/data_entry_review.py | PaulineLc/OpenDoorData | 203b19427467e330cd04b4dc5e8c31d5b9af755c | [
"MIT"
] | null | null | null | application/data_entry_review.py | PaulineLc/OpenDoorData | 203b19427467e330cd04b4dc5e8c31d5b9af755c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Jul 27 17:41:41 2016
@author: Elayne Ruane
"""
import models
import data_entry_functions
import linear_model
def main():
# insert tables into database
tables = ['room', 'User', 'module', 'wifi_log', 'timetable', 'survey', 'regressionModel']
data_entry_func... | 39.685185 | 178 | 0.689687 | 267 | 2,143 | 5.314607 | 0.393258 | 0.069767 | 0.139535 | 0.052854 | 0.183932 | 0.155743 | 0.155743 | 0.155743 | 0.155743 | 0.155743 | 0 | 0.012921 | 0.169389 | 2,143 | 54 | 179 | 39.685185 | 0.78427 | 0.164722 | 0 | 0 | 0 | 0 | 0.364149 | 0.055806 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0.086957 | 0.130435 | 0 | 0.173913 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
59967ba799a9fcfa59f0a4b48b5e6746d582ef6c | 1,685 | py | Python | examples/roberta/test_load_allcorpus.py | linyongnan/fairseq | 7d6d3e7f389b53e40581611eb33f7931f90ba6c9 | [
"MIT"
] | null | null | null | examples/roberta/test_load_allcorpus.py | linyongnan/fairseq | 7d6d3e7f389b53e40581611eb33f7931f90ba6c9 | [
"MIT"
] | null | null | null | examples/roberta/test_load_allcorpus.py | linyongnan/fairseq | 7d6d3e7f389b53e40581611eb33f7931f90ba6c9 | [
"MIT"
] | null | null | null | from fairseq.data.infinibatch.infinibatch_dataset import extract_number_values, word_to_idx
from fairseq.data import Dictionary
from multiprocessing import cpu_count, Pool
import os
import re
import sys
import json
import glob
import math
import torch
from nltk import word_tokenize
import sentencepiece as spm
alias =... | 38.295455 | 109 | 0.754896 | 251 | 1,685 | 4.840637 | 0.414343 | 0.032922 | 0.022222 | 0.034568 | 0.120165 | 0.120165 | 0.120165 | 0.120165 | 0.095473 | 0.095473 | 0 | 0.010218 | 0.128783 | 1,685 | 44 | 110 | 38.295455 | 0.817439 | 0 | 0 | 0 | 0 | 0.054054 | 0.215896 | 0.134638 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0 | 0.324324 | 0 | 0.351351 | 0.081081 | 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 |
5996e70ca18a2bc7a9b9a62cb1cc77628648ab3a | 197 | py | Python | tests/node/test_zmq.py | eric-volz/defichainLibrary | 458a8155bd595bf0fdf026651d95a5fe78dafc9c | [
"MIT"
] | 1 | 2022-03-29T15:15:17.000Z | 2022-03-29T15:15:17.000Z | tests/node/test_zmq.py | eric-volz/defichainPythonLibrary | b01dfddbb5e16d5b3dcda8e4014bcea8d2a1832b | [
"MIT"
] | null | null | null | tests/node/test_zmq.py | eric-volz/defichainPythonLibrary | b01dfddbb5e16d5b3dcda8e4014bcea8d2a1832b | [
"MIT"
] | 1 | 2022-03-24T12:25:44.000Z | 2022-03-24T12:25:44.000Z | import pytest
from tests.util import createNode
node = createNode()
@pytest.mark.query
def test_getzmqnotifications(): # 01
zmq = node.zmq.getzmqnotifications()
assert zmq or zmq == []
| 17.909091 | 40 | 0.720812 | 24 | 197 | 5.875 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012346 | 0.177665 | 197 | 10 | 41 | 19.7 | 0.858025 | 0.010152 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5998b591e83da64b3b5cb1265ef4aec96a485089 | 1,621 | py | Python | src/004_join/04/answer.py | negi524/awesomebook | 42eedc88fb43276044debc604044badb0e8bcaf0 | [
"BSD-3-Clause"
] | null | null | null | src/004_join/04/answer.py | negi524/awesomebook | 42eedc88fb43276044debc604044badb0e8bcaf0 | [
"BSD-3-Clause"
] | null | null | null | src/004_join/04/answer.py | negi524/awesomebook | 42eedc88fb43276044debc604044badb0e8bcaf0 | [
"BSD-3-Clause"
] | null | null | null | from pandas._config.config import reset_option
from preprocess.load_data.data_loader import load_hotel_reserve
import pandas as pd
from datetime import date, datetime
from dateutil.relativedelta import relativedelta
def main():
"""全結合処理
顧客ごとに2017年1月〜2017年3月の月間合計利用金額を計算
利用がない日は0とする
日付はチェックイン日付を利用する
... | 31.784314 | 130 | 0.690315 | 204 | 1,621 | 5.171569 | 0.401961 | 0.059716 | 0.03981 | 0.054028 | 0.087204 | 0.054976 | 0 | 0 | 0 | 0 | 0 | 0.018643 | 0.172733 | 1,621 | 50 | 131 | 32.42 | 0.767338 | 0.182603 | 0 | 0 | 0 | 0 | 0.169884 | 0 | 0 | 0 | 0 | 0.02 | 0 | 1 | 0.035714 | false | 0 | 0.178571 | 0 | 0.214286 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
599a9947047bd8a94e3df7adee287d7af6091789 | 3,978 | py | Python | adaboost.py | haidawyl/Mnist | 2eeb296329180d79b6ac8341a6402471749db3a2 | [
"Apache-2.0"
] | 12 | 2017-10-22T00:37:31.000Z | 2021-06-25T08:02:58.000Z | adaboost.py | haidawyl/Mnist | 2eeb296329180d79b6ac8341a6402471749db3a2 | [
"Apache-2.0"
] | null | null | null | adaboost.py | haidawyl/Mnist | 2eeb296329180d79b6ac8341a6402471749db3a2 | [
"Apache-2.0"
] | 7 | 2017-12-10T22:53:20.000Z | 2021-01-05T02:51:33.000Z | #!/usr/bin/python
# -*- coding:utf-8 -*-
from sklearn.ensemble import AdaBoostClassifier, AdaBoostRegressor
from sklearn.tree import DecisionTreeClassifier, DecisionTreeRegressor
from sklearn.model_selection import GridSearchCV, train_test_split
from sklearn.preprocessing import StandardScaler
from sklearn.metrics imp... | 41.010309 | 122 | 0.651081 | 539 | 3,978 | 4.560297 | 0.306122 | 0.02441 | 0.017087 | 0.02441 | 0.413751 | 0.375915 | 0.360862 | 0.349878 | 0.29048 | 0.242067 | 0 | 0.032782 | 0.210156 | 3,978 | 96 | 123 | 41.4375 | 0.749523 | 0.386626 | 0 | 0.208333 | 0 | 0 | 0.07548 | 0.046289 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.229167 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
59a9c45ebcb61a8cb548c1201d206dbeee0822ea | 2,136 | py | Python | src/get_demographics.py | pthangaraj/Stroke-Phenotyping | aa44ab02275085a93ee6a026e284005a76e8f7ff | [
"MIT"
] | null | null | null | src/get_demographics.py | pthangaraj/Stroke-Phenotyping | aa44ab02275085a93ee6a026e284005a76e8f7ff | [
"MIT"
] | null | null | null | src/get_demographics.py | pthangaraj/Stroke-Phenotyping | aa44ab02275085a93ee6a026e284005a76e8f7ff | [
"MIT"
] | null | null | null | #By Phyllis Thangaraj (pt2281@columbia.edu), Nicholas Tatonetti Lab at Columbia University Irving Medical Center
#Part of manuscript: "Comparative analysis, applications, and interpretation of electronic health record-based stroke phenotyping methods"
#This script prints out the demographics of all of the models' trai... | 43.591837 | 139 | 0.688202 | 333 | 2,136 | 4.294294 | 0.339339 | 0.062937 | 0.033566 | 0.047552 | 0.086713 | 0.086713 | 0.086713 | 0.086713 | 0.012587 | 0.012587 | 0 | 0.010953 | 0.145131 | 2,136 | 48 | 140 | 44.5 | 0.77218 | 0.151685 | 0 | 0 | 0 | 0 | 0.058596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.116279 | null | null | 0.046512 | 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 |
59acd6f0546855169777516a46f4d915bc8d9101 | 1,511 | py | Python | 第5章/program/Chapter_5_xpath_special.py | kingname/SourceCodeOfBook | ab7275108994dca564905818b678bbd2f771c18e | [
"MIT"
] | 274 | 2018-10-01T11:07:25.000Z | 2022-03-17T13:48:45.000Z | 第5章/program/Chapter_5_xpath_special.py | kingname/SourceCodeOfBook | ab7275108994dca564905818b678bbd2f771c18e | [
"MIT"
] | 6 | 2019-02-28T14:18:21.000Z | 2022-03-02T14:57:39.000Z | 第5章/program/Chapter_5_xpath_special.py | kingname/SourceCodeOfBook | ab7275108994dca564905818b678bbd2f771c18e | [
"MIT"
] | 110 | 2018-10-16T06:08:37.000Z | 2022-03-16T08:19:29.000Z | import lxml.html
html1 = '''
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
</head>
<body>
<div id="test-1-k">需要的内容1</div>
<div id="test-2-k">需要的内容2</div>
<div id="testfault-k">需要的内容3</div>
<div id="useless">这是我不需要的内容</div>
</body>
</html>
'''
# selector = lxml... | 19.126582 | 65 | 0.559894 | 198 | 1,511 | 4.262626 | 0.328283 | 0.065166 | 0.056872 | 0.067536 | 0.529621 | 0.451422 | 0.451422 | 0.382701 | 0.382701 | 0.382701 | 0 | 0.024247 | 0.208471 | 1,511 | 78 | 66 | 19.371795 | 0.681438 | 0.278623 | 0 | 0.561404 | 0 | 0 | 0.828067 | 0.203532 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.017544 | 0 | 0.017544 | 0.017544 | 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 |
59b1cacb1cd941f90030066ecb07a83e1ecd1c79 | 721 | py | Python | examples/stockquotes-old/phase1/stockmarket.py | brubbel/Pyro4 | 791f5aff6e0c89e74264843defdd694cdaf99cc5 | [
"MIT"
] | 638 | 2015-01-04T14:59:55.000Z | 2022-03-29T02:28:39.000Z | examples/stockquotes-old/phase1/stockmarket.py | brubbel/Pyro4 | 791f5aff6e0c89e74264843defdd694cdaf99cc5 | [
"MIT"
] | 173 | 2015-01-05T17:29:19.000Z | 2021-12-25T01:47:07.000Z | examples/stockquotes-old/phase1/stockmarket.py | brubbel/Pyro4 | 791f5aff6e0c89e74264843defdd694cdaf99cc5 | [
"MIT"
] | 103 | 2015-01-10T10:00:08.000Z | 2022-03-06T14:19:20.000Z | import random
class StockMarket(object):
def __init__(self, marketname, symbols):
self.name = marketname
self.symbolmeans = {}
for symbol in symbols:
self.symbolmeans[symbol] = random.uniform(20, 200)
self.aggregators = []
def generate(self):
quotes = {}
... | 28.84 | 73 | 0.61165 | 77 | 721 | 5.675325 | 0.428571 | 0.1373 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019305 | 0.281553 | 721 | 24 | 74 | 30.041667 | 0.824324 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.052632 | 0.052632 | 0.368421 | 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 |
59b2e41e748b58baa82d6112abb82d798e532582 | 2,349 | py | Python | atpbar/report.py | abitoun-42/atpbar | fe5e4c24621b4707c5253be8ab2b5ae48f4801e3 | [
"BSD-3-Clause"
] | 72 | 2019-02-24T15:49:57.000Z | 2022-03-27T19:38:38.000Z | atpbar/report.py | abitoun-42/atpbar | fe5e4c24621b4707c5253be8ab2b5ae48f4801e3 | [
"BSD-3-Clause"
] | 24 | 2019-02-18T12:39:04.000Z | 2022-01-19T02:14:56.000Z | atpbar/report.py | abitoun-42/atpbar | fe5e4c24621b4707c5253be8ab2b5ae48f4801e3 | [
"BSD-3-Clause"
] | 10 | 2019-04-19T15:39:32.000Z | 2022-01-08T16:57:42.000Z | # Tai Sakuma <tai.sakuma@gmail.com>
##__________________________________________________________________||
class ProgressReportComplementer:
"""Complement progress reports
Complement a progress report with the previous report for the same
task.
Parameters
----------
report : dict
A pr... | 33.084507 | 70 | 0.609195 | 266 | 2,349 | 4.793233 | 0.296992 | 0.065882 | 0.059608 | 0.026667 | 0.138039 | 0.089412 | 0.089412 | 0.089412 | 0.089412 | 0.089412 | 0 | 0.001213 | 0.297999 | 2,349 | 70 | 71 | 33.557143 | 0.771983 | 0.513836 | 0 | 0.071429 | 0 | 0 | 0.04501 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0 | 0 | 0.321429 | 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 |
59b68f5194996cb3d591e9382c4c54102b5bc1cd | 2,111 | py | Python | bookstore/profiles/models.py | M0673N/bookstore | ec9477550ba46f9ffde3817cf676e97b0239263d | [
"MIT"
] | null | null | null | bookstore/profiles/models.py | M0673N/bookstore | ec9477550ba46f9ffde3817cf676e97b0239263d | [
"MIT"
] | null | null | null | bookstore/profiles/models.py | M0673N/bookstore | ec9477550ba46f9ffde3817cf676e97b0239263d | [
"MIT"
] | null | null | null | from django.contrib.auth import get_user_model
from django.db import models
from django.utils.safestring import mark_safe
from bookstore.accounts.models import BookstoreUser
import cloudinary.models as cloudinary_models
from bookstore.profiles.misc import list_of_countries
from bookstore.profiles.validators import va... | 39.092593 | 120 | 0.770251 | 276 | 2,111 | 5.702899 | 0.347826 | 0.057179 | 0.062262 | 0.093393 | 0.307497 | 0.307497 | 0.307497 | 0.261753 | 0.210928 | 0.210928 | 0 | 0.013036 | 0.127901 | 2,111 | 53 | 121 | 39.830189 | 0.841934 | 0 | 0 | 0.162162 | 0 | 0 | 0.035054 | 0.010422 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0 | 0.189189 | 0.054054 | 0.945946 | 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 |
59b75205b544b01588a9861fec324e72966ab907 | 537 | py | Python | cheetah_core/djangoapps/core/models.py | dota-2-cheetah/cheetah_core | 2afd035223af44f770835c9568c94d2ac9eb408e | [
"MIT"
] | null | null | null | cheetah_core/djangoapps/core/models.py | dota-2-cheetah/cheetah_core | 2afd035223af44f770835c9568c94d2ac9eb408e | [
"MIT"
] | null | null | null | cheetah_core/djangoapps/core/models.py | dota-2-cheetah/cheetah_core | 2afd035223af44f770835c9568c94d2ac9eb408e | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class ValveDataAbstract(models.Model):
name = models.CharField('Name', max_length=50)
localized_name = models.CharField('Localized name', max_length=50)
nicknames = models.TextField('Nicknames', blank=True)
use_custom_image = models.BooleanField('... | 33.5625 | 91 | 0.72067 | 67 | 537 | 5.597015 | 0.552239 | 0.117333 | 0.101333 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008989 | 0.171322 | 537 | 15 | 92 | 35.8 | 0.833708 | 0.044693 | 0 | 0 | 0 | 0 | 0.135029 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0.090909 | 0.909091 | 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 |
59be6ecba217b8f5151f0c17d6afe4013ed3dc24 | 662 | py | Python | setup.py | satta/eupathtables | 3be4d9765a821f7358fec59b1af021250b9b3f68 | [
"0BSD"
] | null | null | null | setup.py | satta/eupathtables | 3be4d9765a821f7358fec59b1af021250b9b3f68 | [
"0BSD"
] | null | null | null | setup.py | satta/eupathtables | 3be4d9765a821f7358fec59b1af021250b9b3f68 | [
"0BSD"
] | 2 | 2019-01-07T12:32:27.000Z | 2019-09-16T10:58:32.000Z | import glob
from setuptools import setup, find_packages
try:
import multiprocessing
except ImportError:
pass
setup(
name='eupathtables',
version='0.1',
description='Python interface for reading and converting EuPathDB flat file dumps',
packages = find_packages(),
author='Sascha Steinbiss',... | 25.461538 | 87 | 0.667674 | 74 | 662 | 5.905405 | 0.824324 | 0.05492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013183 | 0.197885 | 662 | 25 | 88 | 26.48 | 0.809793 | 0 | 0 | 0 | 0 | 0 | 0.407855 | 0.033233 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.043478 | 0.173913 | 0 | 0.173913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
59bf466812916d91fb078529dfee9aff6261188a | 12,197 | py | Python | GageLogger.py | JakubGreen/Neapco-Wireless-Telemetry | fd4256e8504923c22186275888de8405ca7bb356 | [
"MIT"
] | null | null | null | GageLogger.py | JakubGreen/Neapco-Wireless-Telemetry | fd4256e8504923c22186275888de8405ca7bb356 | [
"MIT"
] | null | null | null | GageLogger.py | JakubGreen/Neapco-Wireless-Telemetry | fd4256e8504923c22186275888de8405ca7bb356 | [
"MIT"
] | null | null | null | # Created By: Charles Lee
# Date: 7/16/2016
# Description: The program reads wirelessly transmitted data from multiple sensors and saves it on the local SD card.
# Usage: The program simultaneously reads multiple UDP streams and writes them to ".txt" files.
# The output files are formatted to be imported into the I... | 33.416438 | 127 | 0.653029 | 1,619 | 12,197 | 4.877702 | 0.256949 | 0.034443 | 0.042801 | 0.045587 | 0.177662 | 0.13828 | 0.12663 | 0.120805 | 0.113714 | 0.103837 | 0 | 0.014976 | 0.206198 | 12,197 | 364 | 128 | 33.508242 | 0.800661 | 0.142248 | 0 | 0.166038 | 0 | 0 | 0.1082 | 0.015758 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.049057 | null | null | 0.022642 | 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 |
59d5eec24a8d67257d427593b33f9e566de22e00 | 1,332 | py | Python | actions/train/hydras.py | drakonnan1st/JackBot | 345df784098cb9eb055b3901fe7455807c58a4e1 | [
"MIT"
] | null | null | null | actions/train/hydras.py | drakonnan1st/JackBot | 345df784098cb9eb055b3901fe7455807c58a4e1 | [
"MIT"
] | null | null | null | actions/train/hydras.py | drakonnan1st/JackBot | 345df784098cb9eb055b3901fe7455807c58a4e1 | [
"MIT"
] | null | null | null | """Everything related to training hydralisks goes here"""
from sc2.constants import HYDRALISK
from actions.build.hive import BuildHive
class TrainHydralisk(BuildHive):
"""Ok for now"""
def __init__(self, main):
self.controller = main
BuildHive.__init__(self, self.controller)
async def sh... | 40.363636 | 115 | 0.704955 | 162 | 1,332 | 5.62963 | 0.475309 | 0.213816 | 0.042763 | 0.063596 | 0.057018 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003884 | 0.226727 | 1,332 | 32 | 116 | 41.625 | 0.881553 | 0.046547 | 0 | 0.227273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.090909 | 0 | 0.454545 | 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 |
59d7b7bef80911ee759dbfb8cf785245b21b3541 | 952 | py | Python | Projects/Project_DMS/user/user.py | ivenpoker/Python-Projects | 2975e1bd687ec8dbcc7a4842c13466cb86292679 | [
"MIT"
] | 1 | 2019-09-23T15:51:45.000Z | 2019-09-23T15:51:45.000Z | Projects/Project_DMS/user/user.py | ivenpoker/Python-Projects | 2975e1bd687ec8dbcc7a4842c13466cb86292679 | [
"MIT"
] | 5 | 2021-02-08T20:47:19.000Z | 2022-03-12T00:35:44.000Z | Projects/Project_DMS/user/user.py | ivenpoker/Python-Projects | 2975e1bd687ec8dbcc7a4842c13466cb86292679 | [
"MIT"
] | null | null | null | import os
# Initialize UI settings based on terminal size (width)
UI_fill_width = os.get_terminal_size()[0]
# UI_fill_width = 74
UI_user_menu_fill_char = '#'
# Initialize UI settings (for prompts) based on terminal size (width)
UI_input_fill_width = int(int(os.get_terminal_size()[0]) / 2) + 5
# UI_input_fill_width ... | 27.2 | 93 | 0.702731 | 137 | 952 | 4.518248 | 0.306569 | 0.087237 | 0.071082 | 0.061389 | 0.200323 | 0.084006 | 0 | 0 | 0 | 0 | 0 | 0.010243 | 0.179622 | 952 | 34 | 94 | 28 | 0.78233 | 0.173319 | 0 | 0 | 0 | 0 | 0.07289 | 0.026854 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.25 | 0.05 | 0.05 | 0.35 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
59e0a925de84111e453c092a8a6fbb0ad59845ca | 13,668 | py | Python | src/modu/editable/datatypes/fck.py | philchristensen/modu | 795f3bc413956b98522ac514dafe35cbab0d57a3 | [
"MIT"
] | null | null | null | src/modu/editable/datatypes/fck.py | philchristensen/modu | 795f3bc413956b98522ac514dafe35cbab0d57a3 | [
"MIT"
] | null | null | null | src/modu/editable/datatypes/fck.py | philchristensen/modu | 795f3bc413956b98522ac514dafe35cbab0d57a3 | [
"MIT"
] | null | null | null | # modu
# Copyright (c) 2006-2010 Phil Christensen
# http://modu.bubblehouse.org
#
#
# See LICENSE for details
"""
Contains the FCK Editor support for modu.editable.
"""
import os, os.path, time, stat, shutil, array
from zope.interface import implements
from modu import editable, assets, web
from modu.persist import... | 30.44098 | 127 | 0.679324 | 1,915 | 13,668 | 4.68094 | 0.177546 | 0.032352 | 0.020303 | 0.006247 | 0.342816 | 0.276328 | 0.228804 | 0.182731 | 0.152053 | 0.125948 | 0 | 0.006495 | 0.166447 | 13,668 | 448 | 128 | 30.508929 | 0.780304 | 0.011926 | 0 | 0.181467 | 0 | 0.003861 | 0.169681 | 0.031605 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.034749 | null | null | 0.003861 | 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 |
59e23e2e007b9e301bf7a52805801151e9d5c1fe | 2,553 | py | Python | mojo/devtools/common/devtoolslib/apptest.py | zbowling/mojo | 4d2ed40dc2390ca98a6fea0580e840535878f11c | [
"BSD-3-Clause"
] | 1 | 2020-04-28T14:35:10.000Z | 2020-04-28T14:35:10.000Z | mojo/devtools/common/devtoolslib/apptest.py | TribeMedia/sky_engine | 4a3894ed246327931b198a7d64652bd0b615b036 | [
"BSD-3-Clause"
] | null | null | null | mojo/devtools/common/devtoolslib/apptest.py | TribeMedia/sky_engine | 4a3894ed246327931b198a7d64652bd0b615b036 | [
"BSD-3-Clause"
] | 1 | 2020-04-28T14:35:11.000Z | 2020-04-28T14:35:11.000Z | # Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Apptest is a Mojo application that interacts with another Mojo application
and verifies assumptions about behavior of the app being tested.
"""
import lo... | 32.730769 | 77 | 0.693694 | 366 | 2,553 | 4.677596 | 0.344262 | 0.036799 | 0.030374 | 0.033294 | 0.251168 | 0.226636 | 0.193925 | 0.193925 | 0.193925 | 0.136682 | 0 | 0.005587 | 0.22875 | 2,553 | 77 | 78 | 33.155844 | 0.86389 | 0.076381 | 0 | 0.058824 | 0 | 0 | 0.12963 | 0 | 0.029412 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.058824 | null | null | 0.205882 | 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 |
59e4a2aeab2b02d81994fef08a8b8ec5a0a9282f | 292 | py | Python | market_maker/abstract.py | pborky/sample-market-maker | d29d70bd9f159b5d8d4f59b39cebc9cdc7f70c04 | [
"Apache-2.0"
] | 1 | 2021-09-04T21:25:27.000Z | 2021-09-04T21:25:27.000Z | market_maker/abstract.py | pborky/sample-market-maker | d29d70bd9f159b5d8d4f59b39cebc9cdc7f70c04 | [
"Apache-2.0"
] | null | null | null | market_maker/abstract.py | pborky/sample-market-maker | d29d70bd9f159b5d8d4f59b39cebc9cdc7f70c04 | [
"Apache-2.0"
] | null | null | null |
import logging
from abc import ABC
class LoggingBase(ABC):
def __init__(self, log_level: int) -> None:
self.logger = logging.getLogger(self.__class__.__name__)
self.logger.setLevel(log_level)
@property
def log_level(self) -> int:
self.logger.level | 20.857143 | 64 | 0.667808 | 37 | 292 | 4.864865 | 0.486486 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232877 | 292 | 14 | 65 | 20.857143 | 0.803571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
59e4c4b08de5d8269c80834d2809505c10c47ed1 | 2,013 | py | Python | usertracking/middleware.py | joebos/django-user-tracking | 6b12a0ffa767caa5e98e66853fcc02dedb99148d | [
"MIT"
] | null | null | null | usertracking/middleware.py | joebos/django-user-tracking | 6b12a0ffa767caa5e98e66853fcc02dedb99148d | [
"MIT"
] | null | null | null | usertracking/middleware.py | joebos/django-user-tracking | 6b12a0ffa767caa5e98e66853fcc02dedb99148d | [
"MIT"
] | null | null | null | from tracking import generate_new_tracking_key, register_event
from django.core.urlresolvers import reverse
from django.conf import settings
USER_TRACKING_LOG_HTML_FRAGMENT_RESPONSE = getattr(settings, "USER_TRACKING_LOG_HTML_FRAGMENT_RESPONSE", False)
class UserTrackingMiddleware(object):
def process_request(se... | 38.711538 | 140 | 0.611028 | 220 | 2,013 | 5.3 | 0.359091 | 0.102916 | 0.038593 | 0.048885 | 0.270154 | 0.220412 | 0.190395 | 0.116638 | 0.116638 | 0.116638 | 0 | 0.001445 | 0.312469 | 2,013 | 51 | 141 | 39.470588 | 0.84104 | 0.083954 | 0 | 0 | 1 | 0 | 0.139087 | 0.06762 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.1 | 0.033333 | 0.266667 | 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 |
59e8c180bd49e42683f25242bbb4d4799d57d4d5 | 10,012 | py | Python | tools/check_input.py | yuk-to/SALMON2 | 39c440d554b91a7a59007fdb59f01440b6720c5c | [
"BSD-3-Clause-Open-MPI",
"Apache-2.0"
] | 3 | 2022-01-18T16:33:32.000Z | 2022-02-28T06:05:41.000Z | tools/check_input.py | yuk-to/SALMON2 | 39c440d554b91a7a59007fdb59f01440b6720c5c | [
"BSD-3-Clause-Open-MPI",
"Apache-2.0"
] | 20 | 2020-06-10T08:28:47.000Z | 2022-03-16T01:28:54.000Z | tools/check_input.py | yuk-to/SALMON2 | 39c440d554b91a7a59007fdb59f01440b6720c5c | [
"BSD-3-Clause-Open-MPI",
"Apache-2.0"
] | 6 | 2020-06-22T07:08:21.000Z | 2022-02-28T06:05:49.000Z | #!/usr/bin/env python
#
# Copyright 2020 ARTED developers
#
# 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... | 33.938983 | 119 | 0.617859 | 1,449 | 10,012 | 4.093858 | 0.170462 | 0.045853 | 0.040459 | 0.042987 | 0.325354 | 0.226399 | 0.179535 | 0.118678 | 0.088503 | 0.075691 | 0 | 0.014313 | 0.218438 | 10,012 | 294 | 120 | 34.054422 | 0.74377 | 0.069916 | 0 | 0.195745 | 0 | 0.004255 | 0.250081 | 0.041339 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.012766 | null | null | 0.238298 | 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 |
ab68f57b924b6443c0ed7d87f430f0765b073e61 | 16,074 | py | Python | autodiff/node.py | teamjel/cs207-FinalProject | 7a9804ebfb9647209757f10b75a97ac31e2c1933 | [
"MIT"
] | null | null | null | autodiff/node.py | teamjel/cs207-FinalProject | 7a9804ebfb9647209757f10b75a97ac31e2c1933 | [
"MIT"
] | null | null | null | autodiff/node.py | teamjel/cs207-FinalProject | 7a9804ebfb9647209757f10b75a97ac31e2c1933 | [
"MIT"
] | null | null | null | """
Node Logic for Automatic Differentiation
"""
from functools import wraps
import numpy as np
import numbers
from .visualization import create_computational_graph, create_computational_table
from .settings import settings
"""
Custom exceptions.
"""
class NoValueError(Exception):
pass
class node_decorate():
""... | 25.076443 | 108 | 0.707789 | 2,240 | 16,074 | 4.89375 | 0.150893 | 0.027094 | 0.012042 | 0.016055 | 0.38825 | 0.307882 | 0.273673 | 0.192757 | 0.148695 | 0.124886 | 0 | 0.004753 | 0.175314 | 16,074 | 641 | 109 | 25.076443 | 0.822194 | 0.173199 | 0 | 0.413613 | 0 | 0 | 0.045975 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222513 | false | 0.002618 | 0.013089 | 0.060209 | 0.418848 | 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 |
ab6faf0a855a1027def69af301c653534bde0506 | 290 | py | Python | typing_game/api/mixins/colors.py | CarsonSlovoka/typing-game | bbf5569f93ccc21cc78c9ae8940d91a74d314767 | [
"MIT"
] | null | null | null | typing_game/api/mixins/colors.py | CarsonSlovoka/typing-game | bbf5569f93ccc21cc78c9ae8940d91a74d314767 | [
"MIT"
] | null | null | null | typing_game/api/mixins/colors.py | CarsonSlovoka/typing-game | bbf5569f93ccc21cc78c9ae8940d91a74d314767 | [
"MIT"
] | null | null | null | from typing_game.api.generics import RGBColor
class TypingGameColorMixin:
""" Settings of colors."""
__slots__ = ()
TYPING_CORRECT_COLOR = RGBColor.GREEN
TYPING_CUR_POS_COLOR = RGBColor.BLUE
TYPING_MODIFY_COLOR = RGBColor.YELLOW
TYPING_ERROR_COLOR = RGBColor.RED
| 24.166667 | 45 | 0.748276 | 34 | 290 | 5.970588 | 0.676471 | 0.256158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17931 | 290 | 11 | 46 | 26.363636 | 0.852941 | 0.065517 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 1 | 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 |
ab70fd5bee36e2d7ecfc577b1202e3f10d5ca476 | 1,453 | py | Python | import-feeds.py | gleitz/iron-blogger | 4c8c9df107cf6d87601387ab59a5ce576f72d7e5 | [
"MIT"
] | 3 | 2017-12-18T16:01:33.000Z | 2019-08-15T00:17:19.000Z | import-feeds.py | gleitz/iron-blogger | 4c8c9df107cf6d87601387ab59a5ce576f72d7e5 | [
"MIT"
] | 2 | 2016-03-05T01:54:51.000Z | 2016-07-14T16:02:06.000Z | import-feeds.py | gleitz/iron-blogger | 4c8c9df107cf6d87601387ab59a5ce576f72d7e5 | [
"MIT"
] | 4 | 2015-02-22T22:42:25.000Z | 2018-03-01T21:18:57.000Z | #!/usr/bin/python
from lxml import html
import yaml
import sys
import urllib2
import urlparse
from datetime import datetime
print 'Import feeds at ' + str(datetime.now())
HEADERS = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:11.0) Gecko/20100101 Firefox/11.0'}
with open('bloggers.yml') as f:
... | 29.653061 | 109 | 0.576738 | 204 | 1,453 | 4.088235 | 0.490196 | 0.043165 | 0.032374 | 0.045564 | 0.055156 | 0.055156 | 0 | 0 | 0 | 0 | 0 | 0.027256 | 0.267722 | 1,453 | 48 | 110 | 30.270833 | 0.756579 | 0.011012 | 0 | 0 | 0 | 0.025 | 0.211699 | 0.027855 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.175 | null | null | 0.05 | 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 |
ab714f5d41edf85a6e49bee9953ca0a2f094d5b9 | 2,432 | py | Python | textclassification/randomforest.py | sshekhar10/mymllearnings | 5f7b075c56af28467985282e8021658fed6b1134 | [
"MIT"
] | null | null | null | textclassification/randomforest.py | sshekhar10/mymllearnings | 5f7b075c56af28467985282e8021658fed6b1134 | [
"MIT"
] | null | null | null | textclassification/randomforest.py | sshekhar10/mymllearnings | 5f7b075c56af28467985282e8021658fed6b1134 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri Aug 10 17:37:56 2018
@author: sshekhar
"""
# get some libraries that will be useful
import re
import string
import numpy as np # linear algebra
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)
from sklearn.ensemble import RandomForestClassifier
# functi... | 33.315068 | 105 | 0.739309 | 365 | 2,432 | 4.791781 | 0.430137 | 0.044025 | 0.010292 | 0.017153 | 0.064608 | 0.02916 | 0 | 0 | 0 | 0 | 0 | 0.008687 | 0.148026 | 2,432 | 72 | 106 | 33.777778 | 0.835425 | 0.276316 | 0 | 0 | 0 | 0 | 0.11323 | 0.016687 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.275 | null | null | 0.075 | 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 |
ab77ac71b9ac4c3f6e7fbbe8e65f327466fe520e | 698 | py | Python | graduated_site/migrations/0007_auto_20191218_1215.py | vbacaksiz/KTU-MEBSIS | e1afaa07a16e00ff9be3f39b728603b64f08590e | [
"MIT"
] | null | null | null | graduated_site/migrations/0007_auto_20191218_1215.py | vbacaksiz/KTU-MEBSIS | e1afaa07a16e00ff9be3f39b728603b64f08590e | [
"MIT"
] | null | null | null | graduated_site/migrations/0007_auto_20191218_1215.py | vbacaksiz/KTU-MEBSIS | e1afaa07a16e00ff9be3f39b728603b64f08590e | [
"MIT"
] | null | null | null | # Generated by Django 3.0 on 2019-12-18 12:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('graduated_site', '0006_auto_20191218_0927'),
]
operations = [
migrations.AddField(
model_name='user_internship_post',
... | 29.083333 | 140 | 0.633238 | 75 | 698 | 5.666667 | 0.64 | 0.061176 | 0.061176 | 0.108235 | 0.145882 | 0.145882 | 0 | 0 | 0 | 0 | 0 | 0.057252 | 0.249284 | 698 | 23 | 141 | 30.347826 | 0.753817 | 0.061605 | 0 | 0.235294 | 1 | 0 | 0.223583 | 0.07657 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 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 |
ab801142d3176805d840200426fe9f29447e9a42 | 439 | py | Python | MapApi/models.py | todor943/mapEngine | 560c4e9bee2ef20e988124030db801337d8722f1 | [
"Apache-2.0"
] | null | null | null | MapApi/models.py | todor943/mapEngine | 560c4e9bee2ef20e988124030db801337d8722f1 | [
"Apache-2.0"
] | null | null | null | MapApi/models.py | todor943/mapEngine | 560c4e9bee2ef20e988124030db801337d8722f1 | [
"Apache-2.0"
] | null | null | null | from __future__ import unicode_literals
from django.db import models
from django.conf import settings
from MapApi import signals
from django.dispatch import receiver
from rest_framework.authtoken.models import Token
@receiver(signals.user_login, sender=settings.AUTH_USER_MODEL)
def create_auth_token(sender, instance=... | 31.357143 | 70 | 0.810934 | 61 | 439 | 5.655738 | 0.557377 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120729 | 439 | 13 | 71 | 33.769231 | 0.893782 | 0.05467 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.6 | 0 | 0.7 | 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 |
ab82a5e9a1970847fc4a01209ca1fedd34f5d28e | 18,206 | py | Python | src/orca/operators.py | cournape/orca-py | adc3336f301617d60850fc619651d62675abef9d | [
"MIT"
] | null | null | null | src/orca/operators.py | cournape/orca-py | adc3336f301617d60850fc619651d62675abef9d | [
"MIT"
] | null | null | null | src/orca/operators.py | cournape/orca-py | adc3336f301617d60850fc619651d62675abef9d | [
"MIT"
] | null | null | null | import abc
import logging
import math
import random
from orca.grid import BANG_GLYPH, COMMENT_GLYPH, DOT_GLYPH, MidiNoteOnEvent
from orca.ports import InputPort, OutputPort
logger = logging.getLogger(__name__)
OUTPUT_PORT_NAME = "output"
class IOperator(abc.ABC):
def __init__(
self, grid, x, y, name, ... | 27.966206 | 88 | 0.504559 | 2,159 | 18,206 | 4.021769 | 0.093562 | 0.074629 | 0.028331 | 0.044224 | 0.608661 | 0.579408 | 0.554877 | 0.481285 | 0.455373 | 0.431994 | 0 | 0.007358 | 0.372954 | 18,206 | 650 | 89 | 28.009231 | 0.753241 | 0.011919 | 0 | 0.447566 | 0 | 0 | 0.051283 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.099251 | false | 0.089888 | 0.011236 | 0.005618 | 0.200375 | 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 |
ab845eb3a9c9b78ca0b542be4b55aa836bf83a08 | 9,515 | py | Python | tests/describe/spec/test_utils.py | jeffh/describe | 6a33ffecc3340b57e60bc8a7095521882ff9a156 | [
"MIT"
] | 3 | 2015-06-25T07:10:04.000Z | 2015-11-13T08:59:49.000Z | tests/describe/spec/test_utils.py | jeffh/describe | 6a33ffecc3340b57e60bc8a7095521882ff9a156 | [
"MIT"
] | 1 | 2018-05-29T04:31:51.000Z | 2018-05-29T04:31:51.000Z | tests/describe/spec/test_utils.py | jeffh/describe | 6a33ffecc3340b57e60bc8a7095521882ff9a156 | [
"MIT"
] | 1 | 2018-05-25T03:59:57.000Z | 2018-05-25T03:59:57.000Z | import sys
from unittest import TestCase
from StringIO import StringIO
from functools import wraps
from mock import Mock, patch
from describe.spec.utils import (tabulate, Benchmark, CallOnce,
getargspec, func_equal, accepts_arg, filter_traceback)
class DescribeFilteredTraceback(TestCase):
@patch('traceb... | 31.716667 | 81 | 0.607672 | 1,127 | 9,515 | 4.806566 | 0.180124 | 0.033598 | 0.021599 | 0.026583 | 0.410559 | 0.320842 | 0.234263 | 0.202695 | 0.165774 | 0.163928 | 0 | 0.006421 | 0.279874 | 9,515 | 299 | 82 | 31.822742 | 0.784151 | 0.218812 | 0 | 0.283237 | 0 | 0 | 0.041021 | 0.013583 | 0 | 0 | 0 | 0 | 0.242775 | 0 | null | null | 0.034682 | 0.046243 | null | null | 0.00578 | 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 |
ab8d70ade2d8e9746bc0bc61db9969f336439221 | 1,867 | py | Python | onlinejudge/implementation/command/login.py | kfaRabi/online-judge-tools | 79de8d37e1aa78a7c4c82c6a666f1f1602caf545 | [
"MIT"
] | null | null | null | onlinejudge/implementation/command/login.py | kfaRabi/online-judge-tools | 79de8d37e1aa78a7c4c82c6a666f1f1602caf545 | [
"MIT"
] | null | null | null | onlinejudge/implementation/command/login.py | kfaRabi/online-judge-tools | 79de8d37e1aa78a7c4c82c6a666f1f1602caf545 | [
"MIT"
] | null | null | null | # Python Version: 3.x
import getpass
import sys
from typing import *
import onlinejudge
import onlinejudge.implementation.logging as log
import onlinejudge.implementation.utils as utils
if TYPE_CHECKING:
import argparse
def login(args: 'argparse.Namespace') -> None:
# get service
service = onlinejudge.d... | 33.339286 | 123 | 0.602035 | 231 | 1,867 | 4.805195 | 0.402597 | 0.063063 | 0.028829 | 0.032432 | 0.032432 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003779 | 0.291377 | 1,867 | 55 | 124 | 33.945455 | 0.835223 | 0.032137 | 0 | 0.170732 | 0 | 0 | 0.162132 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04878 | false | 0.121951 | 0.170732 | 0 | 0.243902 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ab9451a575337673d017a06e46b864a124adb845 | 2,076 | py | Python | homework3 [MAIN PROJECT]/project/seller.py | Gaon-Choi/ITE2038_ | f09336a4a552bee9d7e6970642030dd729aa2234 | [
"MIT"
] | null | null | null | homework3 [MAIN PROJECT]/project/seller.py | Gaon-Choi/ITE2038_ | f09336a4a552bee9d7e6970642030dd729aa2234 | [
"MIT"
] | null | null | null | homework3 [MAIN PROJECT]/project/seller.py | Gaon-Choi/ITE2038_ | f09336a4a552bee9d7e6970642030dd729aa2234 | [
"MIT"
] | null | null | null | import time
import argparse
from helpers.connection import conn
def parsing_seller(parser:argparse.ArgumentParser):
sub_parsers = parser.add_subparsers(dest='function')
# info
parser_info = sub_parsers.add_parser('info')
parser_info.add_argument('id', type=int)
# update
parser_update = sub_p... | 25.62963 | 104 | 0.617052 | 264 | 2,076 | 4.681818 | 0.32197 | 0.048544 | 0.045307 | 0.055825 | 0.173139 | 0.105178 | 0.059871 | 0.059871 | 0.059871 | 0 | 0 | 0.002549 | 0.24422 | 2,076 | 80 | 105 | 25.95 | 0.785214 | 0.010116 | 0 | 0.175439 | 0 | 0 | 0.139024 | 0 | 0 | 0 | 0 | 0.0125 | 0 | 1 | 0.087719 | false | 0.017544 | 0.052632 | 0 | 0.157895 | 0.192982 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.