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
4d0b81da6b7c5cb3409295be9d63acd3271737b2
3,510
py
Python
queries/views.py
phillipdupuis/mbta-api-playground
de59be1be917aa973abf5c4c59d6360a23048520
[ "MIT" ]
1
2020-02-22T18:59:35.000Z
2020-02-22T18:59:35.000Z
queries/views.py
phillipdupuis/mbta-api-playground
de59be1be917aa973abf5c4c59d6360a23048520
[ "MIT" ]
14
2020-03-24T17:37:22.000Z
2022-03-11T23:59:08.000Z
queries/views.py
phillipdupuis/mbta-api-playground
de59be1be917aa973abf5c4c59d6360a23048520
[ "MIT" ]
1
2022-02-03T05:58:26.000Z
2022-02-03T05:58:26.000Z
from django.shortcuts import get_object_or_404 from django.http import HttpResponse from django.urls import reverse, reverse_lazy from django.views import generic from django.db import transaction from .forms import QueryForm from .models import Query, QueryFilter, Request from params.models import MbtaFilter import js...
38.571429
106
0.682336
443
3,510
5.275395
0.431151
0.021395
0.029953
0.017972
0.118956
0.118956
0.095849
0.062473
0.062473
0.062473
0
0.005091
0.216524
3,510
90
107
39
0.844727
0.194872
0
0.15873
0
0
0.119839
0.023749
0
0
0
0
0
1
0.095238
false
0
0.15873
0.015873
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
4d0caf139bfe61389f951740af0c3b3cbe511301
839
py
Python
agent360/plugins/apt-updates.py
Crixu/agent360
36a2ed122bcb6743203f0f97b1f222cfe841a78d
[ "BSD-3-Clause" ]
2
2021-11-25T19:48:15.000Z
2021-12-10T21:47:03.000Z
agent360/plugins/apt-updates.py
Crixu/agent360
36a2ed122bcb6743203f0f97b1f222cfe841a78d
[ "BSD-3-Clause" ]
1
2021-09-14T08:17:53.000Z
2021-09-14T08:17:53.000Z
agent360/plugins/apt-updates.py
Crixu/agent360
36a2ed122bcb6743203f0f97b1f222cfe841a78d
[ "BSD-3-Clause" ]
3
2021-10-09T18:32:22.000Z
2022-03-17T21:48:43.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import plugins class Plugin(plugins.BasePlugin): __name__ = 'apt-updates' def run(self, config): ''' ubuntu/debian updates available from apt-get add to /etc/sudoers the following line: agent360 ALL=(ALL) NOPASSWD: /usr/bi...
27.966667
113
0.582837
110
839
4.336364
0.572727
0.050314
0.033543
0.0587
0.171908
0.171908
0.171908
0.171908
0.171908
0.171908
0
0.028146
0.280095
839
29
114
28.931034
0.761589
0.363528
0
0
0
0.090909
0.357303
0
0
0
0
0
0
1
0.090909
false
0
0.181818
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
4d12b5efa39082a2e80f98f5222e7fcf947ffab6
2,915
py
Python
stroylux/main/product/migrations/0002_auto_20200516_2251.py
vladkoblynsky/shop
aaf027f4111605772624a868a0243b221b97c857
[ "BSD-3-Clause" ]
null
null
null
stroylux/main/product/migrations/0002_auto_20200516_2251.py
vladkoblynsky/shop
aaf027f4111605772624a868a0243b221b97c857
[ "BSD-3-Clause" ]
7
2020-09-19T16:24:46.000Z
2022-01-13T03:19:46.000Z
stroylux/main/product/migrations/0002_auto_20200516_2251.py
vladkoblynsky/shop
aaf027f4111605772624a868a0243b221b97c857
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 3.0.5 on 2020-05-16 19:51 from django.conf import settings import django.contrib.postgres.fields.jsonb from django.db import migrations, models import django.db.models.deletion import main.product.models import versatileimagefield.fields class Migration(migrations.Migration): dependencies ...
47.786885
179
0.621269
303
2,915
5.848185
0.379538
0.040632
0.031603
0.049661
0.318284
0.300226
0.233634
0.233634
0.233634
0.233634
0
0.022829
0.233619
2,915
60
180
48.583333
0.770367
0.015437
0
0.333333
1
0
0.125872
0.007322
0
0
0
0
0
1
0
false
0
0.111111
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4d1491594979e817039628d398ae93665fb61596
1,766
py
Python
app/forms/batch.py
rabramley/telomere
e0246c0be18ce0b7e9d4ca88999626a005fede80
[ "MIT" ]
null
null
null
app/forms/batch.py
rabramley/telomere
e0246c0be18ce0b7e9d4ca88999626a005fede80
[ "MIT" ]
null
null
null
app/forms/batch.py
rabramley/telomere
e0246c0be18ce0b7e9d4ca88999626a005fede80
[ "MIT" ]
null
null
null
from flask_wtf import Form from wtforms import StringField, BooleanField, SelectField, HiddenField, FormField, DecimalField, IntegerField, Form as WtfForm from wtforms.validators import DataRequired, Length, NumberRange, Optional from wtforms.fields.html5 import DateTimeField from wtforms_components import read_only c...
55.1875
133
0.723669
190
1,766
6.7
0.442105
0.138256
0.103692
0.113119
0.120974
0.105263
0.073841
0.073841
0
0
0
0.014148
0.119479
1,766
31
134
56.967742
0.804502
0
0
0.076923
0
0
0.119547
0
0
0
0
0
0
1
0
false
0
0.192308
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
4d19aa890e67bb8001135edabaf72dffe04439bb
1,149
py
Python
python/ccxt/okcoin.py
Ekliptor/ccxt
224dea2bc96a4f440e450e29ab89cb83d5e37804
[ "MIT" ]
2
2021-06-05T07:16:17.000Z
2022-03-22T11:48:31.000Z
python/ccxt/okcoin.py
Ekliptor/ccxt
224dea2bc96a4f440e450e29ab89cb83d5e37804
[ "MIT" ]
1
2020-03-02T03:05:45.000Z
2020-03-02T03:05:45.000Z
ccxt/okcoin.py
vinexnetwork/vinex-ccxt
42625b42d00eec2c02b8f525e3544e313bc04b05
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.okex3 import okex3 class okcoin(okex3): def describe(self): return self.deep_extend(super(okcoin, self).describe()...
33.794118
126
0.496954
115
1,149
4.956522
0.704348
0.078947
0.105263
0.119298
0
0
0
0
0
0
0
0.073203
0.334204
1,149
33
127
34.818182
0.671895
0.148825
0
0
1
0.04
0.390545
0
0
0
0
0
0
1
0.04
false
0
0.04
0.04
0.16
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
4d1a287857bd275a2425d6bac45f2306728b7495
6,830
py
Python
tests/test_bicubic.py
dkirkby/batoid
734dccc289eb7abab77a62cdc14563ed5981753b
[ "BSD-2-Clause" ]
null
null
null
tests/test_bicubic.py
dkirkby/batoid
734dccc289eb7abab77a62cdc14563ed5981753b
[ "BSD-2-Clause" ]
null
null
null
tests/test_bicubic.py
dkirkby/batoid
734dccc289eb7abab77a62cdc14563ed5981753b
[ "BSD-2-Clause" ]
null
null
null
import batoid import numpy as np from test_helpers import timer, do_pickle, all_obj_diff @timer def test_properties(): np.random.seed(5) for _ in range(100): xs = np.arange(10) ys = np.arange(10) zs = np.random.uniform(0, 1, size=(10, 10)) bc = batoid.Bicubic(xs, ys, zs) ...
26.269231
84
0.5306
1,087
6,830
3.285189
0.152714
0.026323
0.073929
0.045365
0.607113
0.50266
0.402128
0.363204
0.276113
0.25091
0
0.085025
0.314641
6,830
259
85
26.370656
0.677847
0.046413
0
0.38756
0
0
0.00123
0
0
0
0
0
0.052632
1
0.186603
false
0
0.014354
0.157895
0.358852
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
4d1bc9da1b2a02d3139328ff4dbc42f6b894e7a1
340
py
Python
stackoverflow_without_recursion/gen_code.py
iomintz/python-snippets
982861c173bf4bcd5d908514a9e8b1914a580a5d
[ "CC0-1.0" ]
2
2020-04-10T07:29:56.000Z
2020-05-27T03:45:21.000Z
stackoverflow_without_recursion/gen_code.py
LyricLy/python-snippets
9d868b7bbccd793ea1dc513f51290963584a1dee
[ "CC0-1.0" ]
null
null
null
stackoverflow_without_recursion/gen_code.py
LyricLy/python-snippets
9d868b7bbccd793ea1dc513f51290963584a1dee
[ "CC0-1.0" ]
2
2018-11-24T08:16:59.000Z
2019-02-24T04:41:30.000Z
#!/usr/bin/env python3 # encoding: utf-8 import sys TEMPLATE = """ def f%d(): f%d() """ with open('main.py', 'w') as f: f.write('#!/usr/bin/env python3\n') for i in range(sys.getrecursionlimit()+1): f.write(TEMPLATE % (i, i+1)) f.write('\n') f.write('def f%d():\n' % (i+1)) f.write('\tprint("we made it!")\n')...
17.894737
43
0.567647
64
340
3.015625
0.5
0.186529
0.108808
0.165803
0
0
0
0
0
0
0
0.024138
0.147059
340
18
44
18.888889
0.641379
0.108824
0
0
0
0
0.315615
0
0
0
0
0
0
1
0
false
0
0.076923
0
0.076923
0.076923
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
4d2025aaf87c452274a8c3848e8ff85df7ed8c62
604
py
Python
opportunity/tests_celery_tasks.py
LoveProgramming-Limited/Django-CRM-2
7252460fad9ac38619304d0cdd3e5af59745e26e
[ "MIT" ]
null
null
null
opportunity/tests_celery_tasks.py
LoveProgramming-Limited/Django-CRM-2
7252460fad9ac38619304d0cdd3e5af59745e26e
[ "MIT" ]
1
2021-11-27T02:53:06.000Z
2021-11-28T16:51:15.000Z
opportunity/tests_celery_tasks.py
LoveProgramming-Limited/Django-CRM-2
7252460fad9ac38619304d0cdd3e5af59745e26e
[ "MIT" ]
null
null
null
from django.test import TestCase from django.test.utils import override_settings from opportunity.tasks import send_email_to_assigned_user from opportunity.tests import OpportunityModel class TestCeleryTasks(OpportunityModel, TestCase): @override_settings(CELERY_EAGER_PROPAGATES_EXCEPTIONS=True, ...
35.529412
70
0.721854
70
604
5.971429
0.528571
0.043062
0.066986
0.090909
0.110048
0
0
0
0
0
0
0.002066
0.198676
604
16
71
37.75
0.86157
0
0
0
0
0
0.021523
0
0
0
0
0
0.083333
1
0.083333
false
0
0.333333
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
4d2ccfca8e096cb8b0b72a6b064e5bb3f68205df
792
py
Python
treehugger/cli/__init__.py
adamchainz/treehugger
14bb400a736d87529592336a39909f0c721c1076
[ "ISC" ]
null
null
null
treehugger/cli/__init__.py
adamchainz/treehugger
14bb400a736d87529592336a39909f0c721c1076
[ "ISC" ]
null
null
null
treehugger/cli/__init__.py
adamchainz/treehugger
14bb400a736d87529592336a39909f0c721c1076
[ "ISC" ]
null
null
null
# -*- coding:utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals import sys import six from ..kms import kms_agent from .decrypt_file import decrypt_file from .edit import edit from .encrypt_file import encrypt_file from .execute import execute from .parser import parser from...
21.405405
82
0.72096
113
792
4.79646
0.40708
0.081181
0
0
0
0
0
0
0
0
0
0.003106
0.186869
792
36
83
22
0.838509
0.075758
0
0
0
0
0.050824
0
0
0
0
0
0
1
0.041667
false
0
0.416667
0
0.458333
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
4d3b55fb89ab883ae980f383eeac47f0b1c77e7b
722
py
Python
Movie-Site/entertainment_center.py
shinysuraj/python-project
7d7e31898e021d8c4c05d7d6445c5645f6452b11
[ "Apache-2.0" ]
null
null
null
Movie-Site/entertainment_center.py
shinysuraj/python-project
7d7e31898e021d8c4c05d7d6445c5645f6452b11
[ "Apache-2.0" ]
null
null
null
Movie-Site/entertainment_center.py
shinysuraj/python-project
7d7e31898e021d8c4c05d7d6445c5645f6452b11
[ "Apache-2.0" ]
1
2019-10-24T19:09:20.000Z
2019-10-24T19:09:20.000Z
import media import fresh_tomatoes simran = media.Movie("Simaran","A Gujarati housekeeping lady in the US allows ambition to get the better of her & gets involved in a world of crime","https://en.wikipedia.org/wiki/File:Simran_Poster.jpg","https://www.youtube.com/watch?v=_LUe4r6eeQA") badshaho = media.Movie("Badshaho...
45.125
250
0.763158
110
722
4.918182
0.563636
0.055453
0.088725
0.10536
0.249538
0.249538
0.099815
0
0
0
0
0.020958
0.074792
722
15
251
48.133333
0.788922
0.029086
0
0
0
0.142857
0.706724
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
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
4d3de1ef5780bff6b655d8337dc86d941b7ee12d
4,820
py
Python
tests/test_parse_build_ref_list.py
elifesciences/elife-article
2345b25e9fee17e70c28ba022dbf60c1bc473fab
[ "MIT" ]
null
null
null
tests/test_parse_build_ref_list.py
elifesciences/elife-article
2345b25e9fee17e70c28ba022dbf60c1bc473fab
[ "MIT" ]
65
2017-06-17T00:10:57.000Z
2020-07-13T23:52:50.000Z
tests/test_parse_build_ref_list.py
elifesciences/elife-article
2345b25e9fee17e70c28ba022dbf60c1bc473fab
[ "MIT" ]
2
2017-05-26T21:36:58.000Z
2018-04-18T14:37:32.000Z
import unittest import os from elifearticle import parse from tests import XLS_PATH class TestParseBuildRefList(unittest.TestCase): def setUp(self): pass def test_build_ref_list_666(self): xml_files = [os.path.join(XLS_PATH, "elife-00666.xml")] articles = parse.build_articles_from_ar...
40.166667
87
0.611203
600
4,820
4.783333
0.363333
0.095122
0.156098
0.252613
0.465854
0.429617
0.13101
0.079443
0.079443
0.079443
0
0.077896
0.278216
4,820
119
88
40.504202
0.747054
0.148133
0
0.197674
0
0
0.170815
0.011225
0
0
0
0
0.395349
1
0.046512
false
0.011628
0.046512
0
0.116279
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
4d3fa6ecf0b6a840497507d72e59794c8965f5af
1,407
py
Python
experiments/differential_screen_tracker/motion_detect.py
fatcloud/PyCV-Climbing-Wall
b9a20d1cf65fb89debbad15d4451efbf77cddb5d
[ "MIT" ]
55
2015-06-20T20:15:33.000Z
2022-02-10T02:45:14.000Z
experiments/differential_screen_tracker/motion_detect.py
fatcloud/PyCV-Climbing-Wall
b9a20d1cf65fb89debbad15d4451efbf77cddb5d
[ "MIT" ]
8
2015-06-20T18:46:52.000Z
2015-10-31T11:08:04.000Z
experiments/differential_screen_tracker/motion_detect.py
fatcloud/PyCV-Climbing-Wall
b9a20d1cf65fb89debbad15d4451efbf77cddb5d
[ "MIT" ]
73
2015-06-20T15:59:27.000Z
2020-03-15T22:43:36.000Z
__author__ = 'fatcloud' import cv2 import numpy as np from cam import MyCam class MotionDetector(object): def __init__(self, N=1, shape=(480,640,3)): self._N = N self._frame = [None] * (2 * N + 1) self._index = 0 for i in range(2 * N + 1): self._frame[i] = np.full(sha...
24.258621
57
0.534471
190
1,407
3.742105
0.394737
0.088608
0.073136
0.101266
0
0
0
0
0
0
0
0.056323
0.331201
1,407
57
58
24.684211
0.699256
0.017058
0
0
0
0
0.022448
0
0
0
0
0
0
0
null
null
0
0.075
null
null
0.025
0
0
0
null
0
0
0
0
0
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
4d4aca7d385c57a46fe80d19fdceb689d9690da5
7,819
py
Python
bayesact-0.5.1/bayesactemot.py
ahcombs/inteRact
5ecffa7ea373827e9f9effa921af020732c02244
[ "MIT" ]
null
null
null
bayesact-0.5.1/bayesactemot.py
ahcombs/inteRact
5ecffa7ea373827e9f9effa921af020732c02244
[ "MIT" ]
null
null
null
bayesact-0.5.1/bayesactemot.py
ahcombs/inteRact
5ecffa7ea373827e9f9effa921af020732c02244
[ "MIT" ]
null
null
null
"""------------------------------------------------------------------------------------------ Bayesian Affect Control Theory Agent class with emotions Author: Jesse Hoey jhoey@cs.uwaterloo.ca http://www.cs.uwaterloo.ca/~jhoey December 2014 Use for research purposes only. Please do not re-distribute without written...
33.702586
114
0.639468
1,167
7,819
4.215081
0.329049
0.009148
0.017077
0.012198
0.097174
0.092702
0.082944
0.069933
0.028054
0.01545
0
0.083469
0.217035
7,819
231
115
33.848485
0.720026
0.281494
0
0.130081
0
0
0.028241
0
0
0
0
0
0
0
null
null
0
0.089431
null
null
0.01626
0
0
0
null
0
0
0
0
0
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
4d4b78775ce5496eb96e33042f2e7ac797b2cf0b
2,603
py
Python
ch08/dict.py
eroicaleo/LearningPython
297d46eddce6e43ce0c160d2660dff5f5d616800
[ "MIT" ]
1
2020-10-12T13:33:29.000Z
2020-10-12T13:33:29.000Z
ch08/dict.py
eroicaleo/LearningPython
297d46eddce6e43ce0c160d2660dff5f5d616800
[ "MIT" ]
null
null
null
ch08/dict.py
eroicaleo/LearningPython
297d46eddce6e43ce0c160d2660dff5f5d616800
[ "MIT" ]
1
2016-11-09T07:28:45.000Z
2016-11-09T07:28:45.000Z
#!/usr/local/bin/python3.3 keyslist = ['name', 'age'] valueslist = ['Bob', 40] D = dict.fromkeys(keyslist) print(D) D = dict(zip(keyslist, valueslist)) print(D) print(D.keys()) D = {'spam': 3, 'eggs': 1, 'ham': 2} print(D) print('The value of \'spam\' in D is {[spam]}'.format(D)) print(D['spam']) # This is Illegal ...
18.076389
64
0.54514
435
2,603
3.262069
0.234483
0.105708
0.034531
0.02537
0.312192
0.250176
0.206483
0.200141
0.138125
0.138125
0
0.054545
0.19708
2,603
143
65
18.202797
0.624402
0.081829
0
0.326733
0
0
0.161304
0
0
0
0
0
0
1
0
false
0
0
0
0
0.514851
0
0
0
null
0
0
0
0
0
0
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
4d4c08bffb0811fb3c9ff805ebe4df76de03b865
3,067
py
Python
codex_project/actors/migrations/0003_auto__add_field_sensormap_modality_bit.py
anduslim/codex
f4edffe1b6ef08ee18254a9e08b15b366475976f
[ "MIT" ]
null
null
null
codex_project/actors/migrations/0003_auto__add_field_sensormap_modality_bit.py
anduslim/codex
f4edffe1b6ef08ee18254a9e08b15b366475976f
[ "MIT" ]
null
null
null
codex_project/actors/migrations/0003_auto__add_field_sensormap_modality_bit.py
anduslim/codex
f4edffe1b6ef08ee18254a9e08b15b366475976f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'SensorMap.modality_bit' db.add_column('actors_sensormap',...
51.983051
144
0.573851
307
3,067
5.599349
0.247557
0.097731
0.162885
0.232693
0.675974
0.506108
0.445608
0.423502
0.423502
0.343805
0
0.008302
0.214542
3,067
59
145
51.983051
0.705272
0.032279
0
0.083333
0
0
0.525464
0.2914
0
0
0
0
0
1
0.041667
false
0
0.083333
0
0.1875
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
4d53e72ad615313cf170de2ef98be3b1edebe612
4,705
py
Python
onlineBot/appserver/app.py
balaSpyrus/wave11
3f206e9845d2a660c0c72dfd859934f4a0ff7559
[ "MIT" ]
1
2017-05-18T11:38:16.000Z
2017-05-18T11:38:16.000Z
onlineBot/appserver/app.py
balaSpyrus/wave11
3f206e9845d2a660c0c72dfd859934f4a0ff7559
[ "MIT" ]
8
2020-05-29T06:57:54.000Z
2022-02-26T04:59:18.000Z
onlineBot/appserver/app.py
balaSpyrus/code
3f206e9845d2a660c0c72dfd859934f4a0ff7559
[ "MIT" ]
1
2017-01-26T14:32:13.000Z
2017-01-26T14:32:13.000Z
import os import subprocess import shlex import time from flask import Flask from flaskext.mysql import MySQL from flask import request,jsonify,json from flask_cors import CORS, cross_origin from werkzeug import secure_filename from msg import msg from logicset import logicset ALLOWED_EXTENSIONS = set(...
28.689024
307
0.649947
558
4,705
5.390681
0.315412
0.054854
0.037234
0.044215
0.247673
0.213098
0.213098
0.133976
0.133976
0.133976
0
0.009146
0.18661
4,705
163
308
28.865031
0.776849
0
0
0.260274
0
0.006849
0.266843
0.059225
0
0
0
0
0
0
null
null
0.034247
0.075342
null
null
0.054795
0
0
0
null
0
0
0
0
0
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
4d555f40df6e1879c0e7deef8f5da9756ee4a65e
3,152
py
Python
exp/press_trans/code/read_incline_raw.py
nicholasmalaya/paleologos
11959056caa80d3c910759b714a0f8e42f986f0f
[ "MIT" ]
1
2021-11-04T17:49:42.000Z
2021-11-04T17:49:42.000Z
exp/press_trans/code/read_incline_raw.py
nicholasmalaya/paleologos
11959056caa80d3c910759b714a0f8e42f986f0f
[ "MIT" ]
null
null
null
exp/press_trans/code/read_incline_raw.py
nicholasmalaya/paleologos
11959056caa80d3c910759b714a0f8e42f986f0f
[ "MIT" ]
2
2019-01-04T16:08:18.000Z
2019-12-16T19:34:24.000Z
#!/bin/py # # open file # read contents # (re)start when third column found # import sys import numpy as np def autocorr(x): result = np.correlate(x, x, mode = 'full') maxcorr = np.argmax(result) #print 'maximum = ', result[maxcorr] result = result / result[maxcorr] # <=== normalization return...
20.874172
93
0.597081
453
3,152
4.077263
0.426049
0.030319
0.017867
0.016243
0.110449
0.077964
0.058473
0.058473
0.058473
0.058473
0
0.064295
0.259835
3,152
150
94
21.013333
0.72739
0.31599
0
0.095238
0
0
0.105843
0.011494
0
0
0
0
0
0
null
null
0
0.047619
null
null
0.063492
0
0
0
null
0
0
0
0
0
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
4d584fd247f7b6e65d6e9529aeffe3fec4164960
12,150
py
Python
examples/smbresetpasswd.py
stephenbradshaw/impacket
34a4957790f57f2d54f4994533b0c0524b469b86
[ "Apache-1.1" ]
null
null
null
examples/smbresetpasswd.py
stephenbradshaw/impacket
34a4957790f57f2d54f4994533b0c0524b469b86
[ "Apache-1.1" ]
null
null
null
examples/smbresetpasswd.py
stephenbradshaw/impacket
34a4957790f57f2d54f4994533b0c0524b469b86
[ "Apache-1.1" ]
null
null
null
#!/usr/bin/env python # Impacket - Collection of Python classes for working with network protocols. # # SECUREAUTH LABS. Copyright (C) 2021 SecureAuth Corporation. All rights reserved. # # This software is provided under a slightly modified version # of the Apache Software License. See the accompanying LICENSE file # f...
48.795181
173
0.674321
1,402
12,150
5.740371
0.274608
0.019135
0.006958
0.013047
0.196446
0.172465
0.106113
0.084245
0.06163
0.06163
0
0.024367
0.216379
12,150
248
174
48.991935
0.820922
0.153498
0
0.12426
0
0.017751
0.247293
0.010926
0
0
0
0
0
1
0.017751
false
0.224852
0.071006
0
0.106509
0.059172
0
0
0
null
0
0
0
0
0
0
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
4d5a85ae44f777ef129bdfbc46fd90e6c10e15e5
889
py
Python
src/fbfeedservice/FbFeedService/migrations/0004_update_feed_fields.py
MatthewWong68/Social_Media_RESTful_API_Django_Web_App
60d0f2af067071bc8fc6f9da4a810d35bfad3443
[ "MIT" ]
null
null
null
src/fbfeedservice/FbFeedService/migrations/0004_update_feed_fields.py
MatthewWong68/Social_Media_RESTful_API_Django_Web_App
60d0f2af067071bc8fc6f9da4a810d35bfad3443
[ "MIT" ]
null
null
null
src/fbfeedservice/FbFeedService/migrations/0004_update_feed_fields.py
MatthewWong68/Social_Media_RESTful_API_Django_Web_App
60d0f2af067071bc8fc6f9da4a810d35bfad3443
[ "MIT" ]
null
null
null
# Generated by Django 2.2.1 on 2019-08-19 04:48 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('FbFeedService', '0003_increase_feedid_size'), ] operations = [ migrations.AddField( model_name='feed', ...
26.147059
56
0.535433
82
889
5.658537
0.536585
0.077586
0.112069
0.146552
0.540948
0.540948
0.159483
0
0
0
0
0.036585
0.354331
889
33
57
26.939394
0.771777
0.050619
0
0.555556
1
0
0.110012
0.030902
0
0
0
0
0
1
0
false
0
0.037037
0
0.148148
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
4d5fb2851fb4e45f90bbc039e10312f3347d7fb3
400
py
Python
daemons/config.example.py
fanzeyi/Vulpix
9448e968973073c98231b22663bbebb2a452dcd7
[ "BSD-3-Clause" ]
13
2015-03-08T11:59:28.000Z
2021-07-11T11:58:01.000Z
src/tornado/demos/Vulpix-master/daemons/config.example.py
ptphp/PyLib
07ac99cf2deb725475f5771b123b9ea1375f5e65
[ "Apache-2.0" ]
null
null
null
src/tornado/demos/Vulpix-master/daemons/config.example.py
ptphp/PyLib
07ac99cf2deb725475f5771b123b9ea1375f5e65
[ "Apache-2.0" ]
3
2015-05-29T16:14:08.000Z
2016-04-29T07:25:26.000Z
# -*- coding: utf-8 -*- # AUTHOR: Zeray Rice <fanzeyi1994@gmail.com> # FILE: config.py # CREATED: 02:35:44 18/03/2012 # MODIFIED: 00:04:42 19/03/2012 COMPILE_DIR = "/home/fanzeyi/cogs_data/comp/" TESTDATA_DIR = "/home/fanzeyi/cogs_data/testdata/" CARETAKER_PATH = "/usr/local/bin/taker" DAEMON_PORT = 8889 SALT = "" ...
22.222222
50
0.6875
61
400
4.327869
0.786885
0.045455
0.106061
0.136364
0.166667
0
0
0
0
0
0
0.118841
0.1375
400
17
51
23.529412
0.646377
0.35
0
0
0
0
0.322835
0.244094
0
0
0
0
0
1
0
false
0.1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
4d61e30a7a10a6d2d4478cd54cd5a286d89b2a0c
2,998
py
Python
test/test_dialect.py
Teradata/sqlalchemy-teradata
24ab0ec39f6a9d63185aad90267fc815c5a63a97
[ "MIT" ]
70
2016-07-11T04:14:23.000Z
2022-01-20T12:06:45.000Z
test/test_dialect.py
Teradata/sqlalchemy-teradata
24ab0ec39f6a9d63185aad90267fc815c5a63a97
[ "MIT" ]
71
2016-07-14T13:36:59.000Z
2021-12-01T21:25:04.000Z
test/test_dialect.py
Teradata/sqlalchemy-teradata
24ab0ec39f6a9d63185aad90267fc815c5a63a97
[ "MIT" ]
22
2016-07-19T19:56:23.000Z
2021-12-27T13:58:36.000Z
from sqlalchemy_teradata.dialect import TeradataDialect from sqlalchemy.testing import fixtures from sqlalchemy import testing from sqlalchemy import Table, Column, Integer, String, MetaData, ForeignKey from sqlalchemy_teradata.base import CreateView,DropView from sqlalchemy.sql import table, column, select from sqlalc...
36.560976
101
0.67545
403
2,998
4.831266
0.225806
0.053416
0.046225
0.053416
0.187468
0.140729
0.076528
0.076528
0.076528
0.052388
0
0
0.225484
2,998
81
102
37.012346
0.838501
0.139426
0
0.057692
0
0
0.029984
0
0
0
0
0
0.192308
1
0.230769
false
0.019231
0.134615
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
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
4d6539400380652831073db4b2015d0719a6ff47
3,119
py
Python
cellphonedb/src/core/generators/complex_generator.py
mief/cellphonedb
43414f69132c650b0711b59ef8e005e274c4c3b6
[ "MIT" ]
1
2021-01-31T01:56:29.000Z
2021-01-31T01:56:29.000Z
cellphonedb/src/core/generators/complex_generator.py
mief/cellphonedb
43414f69132c650b0711b59ef8e005e274c4c3b6
[ "MIT" ]
null
null
null
cellphonedb/src/core/generators/complex_generator.py
mief/cellphonedb
43414f69132c650b0711b59ef8e005e274c4c3b6
[ "MIT" ]
1
2021-08-09T03:53:18.000Z
2021-08-09T03:53:18.000Z
import pandas as pd from cellphonedb.src.app.app_logger import app_logger from cellphonedb.src.core.generators.generator_helper import set_defaults from cellphonedb.src.exceptions.MissingRequiredColumns import MissingRequiredColumns def complex_generator(curated_complex: pd.DataFrame, user_complex: pd.DataFrame, log...
33.180851
112
0.667842
369
3,119
5.420054
0.322493
0.044
0.028
0.033
0.084
0.035
0
0
0
0
0
0.003299
0.222507
3,119
93
113
33.537634
0.821443
0.039436
0
0
0
0
0.159813
0
0
0
0
0.010753
0
1
0.028571
false
0
0.057143
0
0.128571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
4d6f38514fd95e8b32841568980812caddbb5f08
549
py
Python
lib/util.py
hellocatfood/FontForge-Higher-Order-Interpolation
56ecec8e14bd09490d31a8001482d972df5b5c76
[ "Apache-2.0" ]
14
2020-11-13T11:22:03.000Z
2021-07-20T15:30:54.000Z
lib/util.py
hellocatfood/FontForge-Higher-Order-Interpolation
56ecec8e14bd09490d31a8001482d972df5b5c76
[ "Apache-2.0" ]
null
null
null
lib/util.py
hellocatfood/FontForge-Higher-Order-Interpolation
56ecec8e14bd09490d31a8001482d972df5b5c76
[ "Apache-2.0" ]
1
2021-07-22T11:11:32.000Z
2021-07-22T11:11:32.000Z
import sys import math def eprint(*args, **kwargs): print(*args, file=sys.stderr, **kwargs) def quit(reason, code=1): eprint(reason) sys.exit(code) def has_layers(font): L = [e for e in font.layers] return 'End state' in L and 'HOI paths' in L coords = lambda p: (math.floor(p.x), math.floor(p.y...
19.607143
53
0.553734
93
549
3.247312
0.526882
0.019868
0.066225
0
0
0
0
0
0
0
0
0.033333
0.289617
549
27
54
20.333333
0.741026
0
0
0
0
0
0.032787
0
0
0
0
0
0
1
0.25
false
0
0.1
0.05
0.5
0.15
0
0
0
null
0
0
0
0
0
0
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
4d6fd5d1a2bb9d828399842dc22a8cd46d3a614b
1,662
py
Python
GithubEmojiCompletions.py
Kristinita/GithubEmoji
db5f97f4b4493a7555d8620d67395312779e2fd0
[ "0BSD" ]
null
null
null
GithubEmojiCompletions.py
Kristinita/GithubEmoji
db5f97f4b4493a7555d8620d67395312779e2fd0
[ "0BSD" ]
null
null
null
GithubEmojiCompletions.py
Kristinita/GithubEmoji
db5f97f4b4493a7555d8620d67395312779e2fd0
[ "0BSD" ]
null
null
null
import sublime import sublime_plugin import os settings = None class GithubEmojiCompletions(sublime_plugin.EventListener): """ Provide github emoji completions for selected file extensions or names """ def on_query_completions(self, view, prefix, locations): # Only trigger for valid file nam...
27.7
74
0.658845
202
1,662
5.257426
0.381188
0.060264
0.031073
0.042373
0.039548
0
0
0
0
0
0
0.004773
0.243682
1,662
59
75
28.169492
0.840095
0.10349
0
0.108108
0
0
0.079484
0.033967
0
0
0
0
0
1
0.162162
false
0
0.081081
0.027027
0.540541
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
4d70d1e04980cddb3e6056bf30252f6f58afb0a0
4,323
py
Python
plot_example.py
kaustubhhakim/chili
f3301c3173a39614f1e55c6a5caa1e61f6b56301
[ "BSD-3-Clause" ]
null
null
null
plot_example.py
kaustubhhakim/chili
f3301c3173a39614f1e55c6a5caa1e61f6b56301
[ "BSD-3-Clause" ]
null
null
null
plot_example.py
kaustubhhakim/chili
f3301c3173a39614f1e55c6a5caa1e61f6b56301
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # %% #!/usr/bin/env python # # Copyright (c) 2021, Kaustubh Hakim # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. # # CHILI 1.0 # # plot_example.py (generates an example figures) # # If...
35.727273
108
0.725422
696
4,323
4.382184
0.412356
0.020656
0.014754
0.021311
0.18459
0.112787
0.083607
0.032131
0
0
0
0.058425
0.113116
4,323
120
109
36.025
0.737089
0.163081
0
0
0
0.013333
0.164624
0.045961
0
0
0
0
0
1
0
false
0
0.32
0
0.32
0.053333
0
0
0
null
0
0
0
0
0
0
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
4d764c23a5cc9770db2d9dda2abce26c7b34253b
3,917
py
Python
casepro/api/views.py
praekelt/casepro
5086b244f1fd33bc3af9323a96e2f2015e50080b
[ "BSD-3-Clause" ]
null
null
null
casepro/api/views.py
praekelt/casepro
5086b244f1fd33bc3af9323a96e2f2015e50080b
[ "BSD-3-Clause" ]
165
2015-11-13T13:50:11.000Z
2018-10-24T07:00:38.000Z
casepro/api/views.py
praekeltfoundation/casepro
5086b244f1fd33bc3af9323a96e2f2015e50080b
[ "BSD-3-Clause" ]
1
2017-12-09T17:58:21.000Z
2017-12-09T17:58:21.000Z
import iso8601 from django.utils.translation import ugettext_lazy as _ from rest_framework import viewsets, routers, pagination from casepro.cases.models import Case, CaseAction, Partner from casepro.msgs.models import Label from .serializers import CaseSerializer, CaseActionSerializer, LabelSerializer, PartnerSeri...
29.451128
145
0.697217
495
3,917
5.448485
0.313131
0.007416
0.016685
0.023359
0.243975
0.209121
0.209121
0.148313
0.148313
0.148313
0
0.019305
0.206536
3,917
132
146
29.674242
0.848456
0.400306
0
0.125
0
0
0.043021
0
0
0
0
0
0
1
0.083333
false
0
0.125
0.0625
0.770833
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
4d7803eff3d37ffbe78cbcd58cf8b2a0ccc4e0cc
2,514
py
Python
callbacks.py
airbrain-org/fire_trainer
dbde4f3ec77a778ad1623f9a4dbe592cca77c629
[ "BSD-2-Clause" ]
null
null
null
callbacks.py
airbrain-org/fire_trainer
dbde4f3ec77a778ad1623f9a4dbe592cca77c629
[ "BSD-2-Clause" ]
null
null
null
callbacks.py
airbrain-org/fire_trainer
dbde4f3ec77a778ad1623f9a4dbe592cca77c629
[ "BSD-2-Clause" ]
null
null
null
# Copyright 2019 AirBrain.org # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of conditions and the following disclaimer...
37.522388
101
0.736675
324
2,514
5.595679
0.472222
0.026475
0.049641
0.048538
0.178158
0.151682
0.151682
0.151682
0.126862
0.075014
0
0.003504
0.205251
2,514
66
102
38.090909
0.903904
0.506762
0
0.060606
0
0
0.034843
0
0
0
0
0
0
1
0.181818
false
0
0.090909
0.121212
0.424242
0.030303
0
0
0
null
0
0
0
0
0
0
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
4d79337b6750656fb206f32ae7edb812ffee523a
13,039
py
Python
corehq/apps/app_manager/tests/test_advanced_suite.py
rochakchauhan/commcare-hq
aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/app_manager/tests/test_advanced_suite.py
rochakchauhan/commcare-hq
aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/app_manager/tests/test_advanced_suite.py
rochakchauhan/commcare-hq
aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236
[ "BSD-3-Clause" ]
null
null
null
from django.test import SimpleTestCase from corehq.apps.app_manager.models import ( AUTO_SELECT_CASE, AUTO_SELECT_FIXTURE, AUTO_SELECT_RAW, AUTO_SELECT_USER, AUTO_SELECT_USERCASE, AdvancedModule, Application, AutoSelectCase, LoadCaseFromFixture, LoadUpdateAction, Module, ) f...
47.072202
158
0.654805
1,542
13,039
5.209468
0.109598
0.032242
0.032864
0.079671
0.727499
0.707581
0.673472
0.644218
0.587576
0.523715
0
0.014316
0.228545
13,039
276
159
47.242754
0.784273
0.014188
0
0.408333
0
0.025
0.213501
0.086133
0
0
0
0
0.095833
1
0.075
false
0
0.020833
0
0.104167
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4d884add8024922e738276aada78ee48b3b884ec
1,490
py
Python
giiit/logic/ref.py
maizy/giiit
31d2cbbf4969e2330671382475e3423dd992bde1
[ "MIT" ]
2
2020-12-19T02:04:15.000Z
2021-03-29T19:48:53.000Z
giiit/logic/ref.py
maizy/giiit
31d2cbbf4969e2330671382475e3423dd992bde1
[ "MIT" ]
null
null
null
giiit/logic/ref.py
maizy/giiit
31d2cbbf4969e2330671382475e3423dd992bde1
[ "MIT" ]
null
null
null
# _*_ coding: utf-8 _*_ # Copyright (c) Nikita Kovaliov, maizy.ru, 2013 # See LICENSE.txt for details. from __future__ import unicode_literals, absolute_import from giiit.multi_version import uu from giiit.cmd_builders import cat_file as cat_file_builders from giiit.parsers import cat_file as cat_file_parsers from gii...
28.113208
86
0.675839
236
1,490
4.101695
0.283898
0.065083
0.051653
0.082645
0.570248
0.570248
0.524793
0.524793
0.524793
0.524793
0
0.005076
0.206711
1,490
52
87
28.653846
0.813875
0.422148
0
0
0
0
0.018277
0
0
0
0
0
0
1
0.277778
false
0
0.277778
0
0.833333
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
4d972ef66275b75d85db009f7f2b5ffc204f525b
3,029
py
Python
unfolding_world.py
Aitocir/UnfoldingWorld
70606eec694f006ccd6687912bce7b75d623287e
[ "MIT" ]
2
2019-08-30T08:26:44.000Z
2021-04-09T14:22:09.000Z
unfolding_world.py
Aitocir/UnfoldingWorld
70606eec694f006ccd6687912bce7b75d623287e
[ "MIT" ]
null
null
null
unfolding_world.py
Aitocir/UnfoldingWorld
70606eec694f006ccd6687912bce7b75d623287e
[ "MIT" ]
null
null
null
# Unfolding World, the game! import sys from Pymug.gameserver import PymugServer from commands.movement import * from commands.system import * from commands.talking import * from commands.interaction import * from commands.meta import * from systems.mapping import * from systems.growing import * from systems.aging...
45.208955
147
0.675801
381
3,029
5.152231
0.39895
0.071319
0.101885
0.137545
0.197147
0.188487
0.104941
0.039735
0.039735
0
0
0.019958
0.206009
3,029
67
148
45.208955
0.796258
0.199076
0
0
0
0
0.180457
0
0
0
0
0.014925
0
1
0
false
0
0.222222
0
0.222222
0.022222
0
0
0
null
0
0
0
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
4d9d5ceca9e936347e4a3de5a50bc353387dca83
13,546
py
Python
TD/src/acrobot.py
lucasgit/rl
1c4bbfad0b11c040ece2b9a384f3781de2c729ca
[ "MIT" ]
1
2022-01-21T13:52:50.000Z
2022-01-21T13:52:50.000Z
TD/src/acrobot.py
lucaslehnert/pgq
1c4bbfad0b11c040ece2b9a384f3781de2c729ca
[ "MIT" ]
null
null
null
TD/src/acrobot.py
lucaslehnert/pgq
1c4bbfad0b11c040ece2b9a384f3781de2c729ca
[ "MIT" ]
null
null
null
''' Created on Jan 11, 2016 @author: Lucas Lehnert (lucas.lehnert@mail.mcgill.ca) Control on the Acrobot domain. ''' import numpy as np import matplotlib.pyplot as plt from mdp import MDPContinuousState from basisfunction import getTiledStateActionBasisFunction from policy import BoltzmannPolicy from qlearning impo...
40.076923
119
0.587184
1,401
13,546
5.654532
0.210564
0.011613
0.019313
0.010603
0.345746
0.288942
0.237188
0.198309
0.182277
0.164352
0
0.03064
0.282002
13,546
337
120
40.195846
0.783878
0.178946
0
0.171429
0
0
0.069013
0.004033
0
0
0
0
0
0
null
null
0.004762
0.047619
null
null
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
4da22cc4391688b135464445fef13a029e7310ad
1,768
py
Python
setup.py
spotlight-co/fin-choices-utils
d04739fb91eaf5144801952eb20448e6fe6ef0e4
[ "MIT" ]
null
null
null
setup.py
spotlight-co/fin-choices-utils
d04739fb91eaf5144801952eb20448e6fe6ef0e4
[ "MIT" ]
1
2019-09-15T04:23:41.000Z
2019-09-15T04:23:41.000Z
setup.py
spotlight-co/fin_choices_utils
d04739fb91eaf5144801952eb20448e6fe6ef0e4
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- # """ File name: setup.py Version: 1.0.4 Author: Priyanshu Jain <priyanshu@pm.me> Helpful decorators + utils for choice fields for finance related terms like currency pair, fx transaction types etc. """ from setuptools import setup, find_packages from os import path he...
30.482759
116
0.638009
201
1,768
5.517413
0.497512
0.13706
0.180343
0.117223
0.221821
0.173129
0.173129
0.173129
0.173129
0.173129
0
0.015977
0.221154
1,768
57
117
31.017544
0.789397
0.133484
0
0
0
0
0.538765
0
0
0
0
0
0
1
0
false
0
0.047619
0
0.047619
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
4da8ed0885d5fcfd8f9ad618419946e46c876199
2,936
py
Python
python/old/getTargetIDs.py
dmargala/blupe
317ca35f554ae25605310cddd3e67e9fdad7b2ba
[ "MIT" ]
null
null
null
python/old/getTargetIDs.py
dmargala/blupe
317ca35f554ae25605310cddd3e67e9fdad7b2ba
[ "MIT" ]
null
null
null
python/old/getTargetIDs.py
dmargala/blupe
317ca35f554ae25605310cddd3e67e9fdad7b2ba
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Created 19-Mar-2013 by Daniel Margala (University of California, Irvine) <dmargala@uci.edu> # # usage: # Import Libraries import bosslya as lya import optparse import sys import numpy as np parser = optparse.OptionParser(usage = "%prog [options]") parser.add_option("--boss-root", type="strin...
30.268041
157
0.650886
382
2,936
4.971204
0.36911
0.04634
0.034229
0.029489
0.16851
0.109531
0.109531
0.109531
0.109531
0.109531
0
0.020313
0.195163
2,936
96
158
30.583333
0.783326
0.403951
0
0.05
0
0
0.206756
0
0
0
0
0
0
0
null
null
0
0.1
null
null
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
4db107de5dd4234285ed0f290d7707d2ef9e0ebd
1,467
py
Python
m2m_token/token.py
Maskime/m2m_token
a35f9c4d0c3dc11e1bf7211e376d211bd402d12b
[ "MIT" ]
null
null
null
m2m_token/token.py
Maskime/m2m_token
a35f9c4d0c3dc11e1bf7211e376d211bd402d12b
[ "MIT" ]
null
null
null
m2m_token/token.py
Maskime/m2m_token
a35f9c4d0c3dc11e1bf7211e376d211bd402d12b
[ "MIT" ]
1
2021-05-07T14:19:00.000Z
2021-05-07T14:19:00.000Z
import math import string from datetime import datetime import random from m2m_token.errors import ConfigError def generate(seed: str, ttl: int, sequence: str = string.ascii_letters + string.digits, token_len: int = 6) -> str: """ Generate a token based on current datetime and a given seed :pa...
44.454545
116
0.691207
216
1,467
4.611111
0.365741
0.048193
0.051205
0.026104
0.100402
0.100402
0.062249
0.062249
0.062249
0
0
0.007024
0.223586
1,467
32
117
45.84375
0.867428
0.223586
0
0
1
0
0.197946
0.023343
0
0
0
0
0
1
0.05
false
0
0.25
0
0.35
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4db1673ce388de9acce4407505343c01b66b5cb7
2,009
py
Python
plugin/utils/action_request.py
Ivanovitchk/EasyClangComplete
cf1dcde537f9fec413f367c44d66c92f13ee68fa
[ "MIT" ]
null
null
null
plugin/utils/action_request.py
Ivanovitchk/EasyClangComplete
cf1dcde537f9fec413f367c44d66c92f13ee68fa
[ "MIT" ]
null
null
null
plugin/utils/action_request.py
Ivanovitchk/EasyClangComplete
cf1dcde537f9fec413f367c44d66c92f13ee68fa
[ "MIT" ]
null
null
null
"""Encapsulates action request.""" import logging log = logging.getLogger("ECC") class ActionRequest(object): """A wrapper for action request. Provides a way to identify an action request and provide some information used when creating the request. """ def __init__(self, view, trigger_position):...
36.527273
78
0.643106
251
2,009
5.007968
0.36255
0.131265
0.075577
0.023866
0.057279
0.057279
0.057279
0
0
0
0
0.000694
0.283225
2,009
54
79
37.203704
0.872222
0.407666
0
0.08
0
0
0.1
0
0
0
0
0
0
1
0.2
false
0
0.04
0
0.52
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
4db5228822950340d66d01c32e5cee5f65349a3c
1,139
py
Python
crypto.py
personalOS1234/Core-OS-2.0
12a933776fce246f5425faf479d7811af222f2af
[ "MIT" ]
null
null
null
crypto.py
personalOS1234/Core-OS-2.0
12a933776fce246f5425faf479d7811af222f2af
[ "MIT" ]
null
null
null
crypto.py
personalOS1234/Core-OS-2.0
12a933776fce246f5425faf479d7811af222f2af
[ "MIT" ]
null
null
null
from hashlib import sha256 from random import randint from external import pyaes def sha256_hash(text, salt=''): text += salt text = text.encode() text = sha256(text).digest() return text def aes_encrypt(text, sha256_key): aes = pyaes.AESModeOfOperationCTR(sha256_key) #setti...
28.475
67
0.690957
151
1,139
5.15894
0.470199
0.046213
0.030809
0.041078
0.146341
0.146341
0.146341
0.146341
0.146341
0
0
0.028441
0.22827
1,139
40
68
28.475
0.857793
0.019315
0
0.190476
0
0
0
0
0
0
0
0
0
1
0.190476
false
0
0.142857
0
0.52381
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
4dbb67ee4ff74b637e150452e73bc01a88a7d048
11,508
py
Python
librf/layoutmanager.py
kouritron/redfile
d235445261c0f864f467f39b15fa6e534ea45001
[ "BSD-3-Clause" ]
1
2022-01-09T11:20:22.000Z
2022-01-09T11:20:22.000Z
librf/layoutmanager.py
kouritron/redfile
d235445261c0f864f467f39b15fa6e534ea45001
[ "BSD-3-Clause" ]
3
2021-12-20T03:35:32.000Z
2021-12-20T03:38:49.000Z
librf/layoutmanager.py
kouritron/redfile
d235445261c0f864f467f39b15fa6e534ea45001
[ "BSD-3-Clause" ]
null
null
null
# Layout managers figure out the mapping between frames and pages in a redfile arkive. # f0 refers to the first frame of the .redfile arkive. f1 is the second frame. and so on. here we are talking about # the first and second frame_size many bytes of the .redfile file on disk. # pages are the data that we store on the...
44.261538
126
0.467848
1,102
11,508
4.598004
0.205989
0.048944
0.040261
0.019341
0.562858
0.521018
0.511545
0.492007
0.492007
0.492007
0
0.00626
0.167188
11,508
259
127
44.432432
0.522433
0.426747
0
0.54918
0
0
0.08806
0.039444
0
0
0
0
0.065574
0
null
null
0.008197
0.016393
null
null
0.131148
0
0
0
null
0
0
0
0
0
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
4dc01c2b2cb5975a67b710c5aee2ccdffd4e39c7
741
py
Python
hwtLib/xilinx/locallink/intf.py
optical-o/hwtLib
edad621f5ad4cdbea20a5751ff4468979afe2f77
[ "MIT" ]
24
2017-02-23T10:00:50.000Z
2022-01-28T12:20:21.000Z
hwtLib/xilinx/locallink/intf.py
optical-o/hwtLib
edad621f5ad4cdbea20a5751ff4468979afe2f77
[ "MIT" ]
32
2017-04-28T10:29:34.000Z
2021-04-27T09:16:43.000Z
hwtLib/xilinx/locallink/intf.py
optical-o/hwtLib
edad621f5ad4cdbea20a5751ff4468979afe2f77
[ "MIT" ]
8
2019-09-19T03:34:36.000Z
2022-01-21T06:56:58.000Z
from hwt.hdl.constants import DIRECTION from hwt.interfaces.std import Signal, VectSignal from hwt.math import log2ceil from hwt.synthesizer.interface import Interface from hwt.synthesizer.param import Param class LocalLink(Interface): """ Stream with "byte enable" and "start/end of frame/packet" .. hwt-...
27.444444
61
0.663968
99
741
4.838384
0.474747
0.087683
0.091858
0
0
0
0
0
0
0
0
0.008741
0.22807
741
26
62
28.5
0.828671
0.101215
0
0
0
0
0
0
0
0
0
0.038462
0
1
0.117647
false
0
0.294118
0
0.470588
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
4dc6658b37fe2b2d8407b3b993e1f7c695e7a75f
780
py
Python
golf/migrations/0043_auto_20171009_1940.py
kenrumer/scorekeeper
c7f22676e84dfdf6ca3361c6ff56719f68fce31f
[ "MIT" ]
null
null
null
golf/migrations/0043_auto_20171009_1940.py
kenrumer/scorekeeper
c7f22676e84dfdf6ca3361c6ff56719f68fce31f
[ "MIT" ]
null
null
null
golf/migrations/0043_auto_20171009_1940.py
kenrumer/scorekeeper
c7f22676e84dfdf6ca3361c6ff56719f68fce31f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-10-09 19:40 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('golf', '0042_delete_email'), ] operations = [ migrations.AlterField( ...
30
139
0.630769
92
780
5.184783
0.532609
0.062893
0.104822
0.121593
0.540881
0.540881
0.36478
0.36478
0.205451
0.205451
0
0.036021
0.252564
780
25
140
31.2
0.782161
0.087179
0
0.333333
1
0
0.214386
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.277778
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
4dd4da18e4980b22745f63a2fe6ed3fa6a69140d
1,109
py
Python
sacrud_deform/common.py
sacrud/sacrud_deform
eda79ca4612d4fb6512f01cdc0747838c4f25472
[ "MIT" ]
2
2016-03-29T20:52:51.000Z
2016-03-31T15:09:45.000Z
sacrud_deform/common.py
ITCase/sacrud_deform
eda79ca4612d4fb6512f01cdc0747838c4f25472
[ "MIT" ]
8
2015-01-06T12:54:18.000Z
2015-10-11T09:12:48.000Z
sacrud_deform/common.py
ITCase/sacrud_deform
eda79ca4612d4fb6512f01cdc0747838c4f25472
[ "MIT" ]
2
2016-05-09T09:08:10.000Z
2016-10-18T11:46:34.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim:fenc=utf-8 # # Copyright © 2014 uralbash <root@uralbash.ru> # # Distributed under terms of the MIT license. """ Common """ import json from gettext import gettext as _ from sacrud.common import pk_to_list class HTMLText(object): def __init__(self, text): ...
21.326923
77
0.638413
151
1,109
4.509934
0.503311
0.051395
0.039648
0.076358
0
0
0
0
0
0
0
0.007109
0.238954
1,109
51
78
21.745098
0.798578
0.169522
0
0
0
0
0.083978
0
0
0
0
0
0
1
0.222222
false
0
0.111111
0.074074
0.62963
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
4dd65b80ab213612c2c2adfaf4ebc7344b1c2b24
5,811
py
Python
tests/test_utils.py
triaxtec/monom
c2e35f86c75a247c14ca04ac93946e767487d529
[ "MIT" ]
2
2020-02-07T15:06:57.000Z
2020-02-14T02:15:53.000Z
tests/test_utils.py
triaxtec/monom
c2e35f86c75a247c14ca04ac93946e767487d529
[ "MIT" ]
2
2020-05-10T21:36:04.000Z
2020-10-19T19:04:24.000Z
tests/test_utils.py
triaxtec/monom
c2e35f86c75a247c14ca04ac93946e767487d529
[ "MIT" ]
1
2020-02-14T02:18:17.000Z
2020-02-14T02:18:17.000Z
import doctest import logging import time from collections import OrderedDict from collections.abc import Iterable, Mapping import pytest from bson.son import SON import monom.utils from monom.utils import * doctest.testmod(monom.utils) class TestDotSon: data = { 'name': 'cymoo', 'addr': {'city...
26.655963
104
0.547238
775
5,811
3.950968
0.203871
0.016329
0.016656
0.013063
0.30405
0.18452
0.137492
0.080666
0.06695
0.06695
0
0.036036
0.255034
5,811
217
105
26.778802
0.671287
0
0
0.11976
0
0
0.089141
0
0
0
0
0
0.449102
1
0.131737
false
0.023952
0.053892
0.011976
0.257485
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
1
0
0
0
0
0
0
0
0
0
1
4dd6e199939187d21c89d510aa781e3a5f6783f7
691
py
Python
benchmarks/query/bench_aiodynamo_aiohttp.py
stupoid/aiodynamo
fdb05e944fa2335017201dc42e446b45c0ea57df
[ "Apache-2.0" ]
null
null
null
benchmarks/query/bench_aiodynamo_aiohttp.py
stupoid/aiodynamo
fdb05e944fa2335017201dc42e446b45c0ea57df
[ "Apache-2.0" ]
null
null
null
benchmarks/query/bench_aiodynamo_aiohttp.py
stupoid/aiodynamo
fdb05e944fa2335017201dc42e446b45c0ea57df
[ "Apache-2.0" ]
null
null
null
import asyncio from aiohttp import ClientSession from boto3.dynamodb.conditions import Key from pyperf import Runner from aiodynamo.client import Client from aiodynamo.credentials import Credentials from aiodynamo.http.aiohttp import AIOHTTP from utils import TABLE_NAME, KEY_FIELD, KEY_VALUE, REGION_NAME async def ...
25.592593
84
0.740955
89
691
5.606742
0.41573
0.078156
0.048096
0
0
0
0
0
0
0
0
0.00177
0.182344
691
26
85
26.576923
0.881416
0
0
0
0
0
0.007236
0
0
0
0
0
0
1
0.055556
false
0
0.444444
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
4ddf47a095eb241a6a7bb457219999fa642d5767
2,552
py
Python
poultry/producers.py
dimazest/poultry
acede715a936b1fa3de6157e5bf22c247424d459
[ "MIT" ]
3
2016-06-30T18:11:53.000Z
2020-11-02T01:03:04.000Z
poultry/producers.py
dimazest/poultry
acede715a936b1fa3de6157e5bf22c247424d459
[ "MIT" ]
1
2017-07-05T18:08:46.000Z
2022-01-05T02:16:01.000Z
poultry/producers.py
dimazest/poultry
acede715a936b1fa3de6157e5bf22c247424d459
[ "MIT" ]
2
2015-11-23T08:56:56.000Z
2018-03-05T01:26:25.000Z
import fileinput import contextlib from poultry import consumers from poultry.stream import from_twitter_api from poultry.tweet import Tweet, TweetValueError from poultry.utils import get_file_names def consume_stream(target, input_dir=None): """Read lines from the standard input or files in a directory. Be...
31.121951
106
0.634796
307
2,552
5.162866
0.32899
0.07571
0.035962
0.025237
0.052997
0
0
0
0
0
0
0.000556
0.295846
2,552
81
107
31.506173
0.881469
0.240596
0
0.155556
0
0
0.028312
0
0
0
0
0.012346
0
1
0.066667
false
0.022222
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
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
4de42ec0c3147b13a5a1f0efffc4c85a85a802bd
495
py
Python
atlas/foundations_events/src/foundations_events/notifiers/job_notifier.py
DeepLearnI/atlas
8aca652d7e647b4e88530b93e265b536de7055ed
[ "Apache-2.0" ]
296
2020-03-16T19:55:00.000Z
2022-01-10T19:46:05.000Z
atlas/foundations_events/src/foundations_events/notifiers/job_notifier.py
DeepLearnI/atlas
8aca652d7e647b4e88530b93e265b536de7055ed
[ "Apache-2.0" ]
57
2020-03-17T11:15:57.000Z
2021-07-10T14:42:27.000Z
atlas/foundations_events/src/foundations_events/notifiers/job_notifier.py
DeepLearnI/atlas
8aca652d7e647b4e88530b93e265b536de7055ed
[ "Apache-2.0" ]
38
2020-03-17T21:06:05.000Z
2022-02-08T03:19:34.000Z
class JobNotifier(object): def __init__(self, config_manager, slack_notifier): self._slack_notifier = slack_notifier self._config_manager = config_manager def send_message(self, message): channel = self._get_channel() for _ in range(5): if self._slack_notifier....
33
83
0.676768
57
495
5.438596
0.403509
0.167742
0.164516
0.148387
0
0
0
0
0
0
0
0.002646
0.236364
495
15
84
33
0.81746
0
0
0
0
0
0.048485
0.048485
0
0
0
0
0
1
0.272727
false
0
0
0.090909
0.454545
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
4df5dca9ce181a00e38052898088a43bcb757dd0
1,693
py
Python
back/web/tran/migrations/0046_advertisement_collection.py
wda43779/fine-water-flow
8f7773ee4e8fde7ebe1279842090c3c8158c634e
[ "BSD-2-Clause" ]
26
2019-08-27T13:40:58.000Z
2021-07-22T16:53:38.000Z
back/web/tran/migrations/0046_advertisement_collection.py
wda43779/fine-water-flow
8f7773ee4e8fde7ebe1279842090c3c8158c634e
[ "BSD-2-Clause" ]
5
2019-12-05T00:22:47.000Z
2022-02-10T12:55:24.000Z
back/web/tran/migrations/0046_advertisement_collection.py
wda43779/fine-water-flow
8f7773ee4e8fde7ebe1279842090c3c8158c634e
[ "BSD-2-Clause" ]
9
2019-06-07T09:41:35.000Z
2021-07-22T16:53:39.000Z
# Generated by Django 2.2.3 on 2020-06-30 14:51 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('tran', '0045_auto_202006...
38.477273
121
0.573538
166
1,693
5.680723
0.46988
0.069989
0.029692
0.04666
0.231177
0.231177
0.231177
0.231177
0.231177
0.231177
0
0.033912
0.285883
1,693
43
122
39.372093
0.746071
0.02658
0
0.378378
1
0
0.140948
0.013973
0
0
0
0
0
1
0
false
0
0.081081
0
0.162162
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
4dfddf8506ed5480e100f275770b354b1e5327cf
746
py
Python
backend/webserver/sockets/projects.py
jsbroks/lista
4bf06f3a243c7c59632ce2348d1a9f6917878906
[ "MIT" ]
null
null
null
backend/webserver/sockets/projects.py
jsbroks/lista
4bf06f3a243c7c59632ce2348d1a9f6917878906
[ "MIT" ]
null
null
null
backend/webserver/sockets/projects.py
jsbroks/lista
4bf06f3a243c7c59632ce2348d1a9f6917878906
[ "MIT" ]
null
null
null
from webserver.extensions import db, socketio from flask_login import current_user from flask_socketio import emit from webserver.config import logger from .utils import authenticated_only, commit_or_null @socketio.on('join project') @authenticated_only def join_project(id): """ Join a project (if user has ...
23.3125
85
0.717158
103
746
5.048544
0.514563
0.069231
0
0
0
0
0
0
0
0
0
0
0.19571
746
31
86
24.064516
0.866667
0.134048
0
0
0
0
0.15016
0.036741
0
0
0
0
0
1
0.111111
false
0.055556
0.277778
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
4dff13505aadf4c4d1291213a6e4417826f119b9
2,482
py
Python
2016/21/solve.py
lamperi/aoc
1781dcbac0be18a086c10a9b76fb6a2d3595523c
[ "MIT" ]
null
null
null
2016/21/solve.py
lamperi/aoc
1781dcbac0be18a086c10a9b76fb6a2d3595523c
[ "MIT" ]
null
null
null
2016/21/solve.py
lamperi/aoc
1781dcbac0be18a086c10a9b76fb6a2d3595523c
[ "MIT" ]
null
null
null
import re, itertools swapl = r"swap letter (.) with letter (.)" swapp = r"swap position (.) with position (.)" rotl = r"rotate left (\d+) steps?" rotr = r"rotate right (\d+) steps?" rot = r"rotate based on position of letter (.)" rev = r"reverse positions (.) through (.)" move = r"move position (.) to position (.)" de...
29.547619
78
0.49718
346
2,482
3.566474
0.236994
0.012966
0.062399
0.02269
0.278768
0.278768
0.1953
0.158023
0.074554
0.074554
0
0.011443
0.366237
2,482
84
79
29.547619
0.773045
0.013296
0
0.197368
0
0
0.217
0
0
0
0
0
0
1
0.013158
false
0.263158
0.013158
0
0.039474
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
150c5485d27b824d882528008607d4bc0202d26b
1,052
py
Python
tests/operators/body_test.py
angelneo/http
850ad937bcaa917743ce9b476ca7d0ff337c243f
[ "MIT" ]
10
2017-03-27T08:34:22.000Z
2019-11-20T01:02:12.000Z
tests/operators/body_test.py
angelneo/http
850ad937bcaa917743ce9b476ca7d0ff337c243f
[ "MIT" ]
7
2017-03-20T01:38:57.000Z
2019-02-12T14:33:26.000Z
tests/operators/body_test.py
grappa-python/http
0de893e02b98282270d6daa8c48d65d0269b371f
[ "MIT" ]
5
2017-04-09T15:41:54.000Z
2020-12-18T10:17:33.000Z
import pook import pytest import requests def test_body_operator(should): with pook.use(): pook.get('foo.com', reply=200, response_body='hello world') res = requests.get('http://foo.com') res | should.have.body.equal.to('hello world') with pytest.raises(AssertionError): ...
28.432432
68
0.610266
147
1,052
4.29932
0.244898
0.075949
0.143987
0.188291
0.636076
0.59019
0.59019
0.544304
0.544304
0.544304
0
0.019417
0.21673
1,052
36
69
29.222222
0.747573
0
0
0.4
0
0
0.157795
0
0
0
0
0
0.04
1
0.12
false
0
0.12
0
0.24
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
15130eb7fc3218e73623efef5b1bcfa2eba47276
207
py
Python
tests/conftest.py
Kevin2/radionets
44e10a85a096f5cea8e9d83f96db65bdd4df9517
[ "MIT" ]
9
2021-06-17T10:12:28.000Z
2022-03-23T23:04:19.000Z
tests/conftest.py
radionets-project/radionets
9b87ddbf704e78db55944e70071a7002f6213399
[ "MIT" ]
24
2021-02-12T13:57:11.000Z
2022-03-03T08:00:31.000Z
tests/conftest.py
Kevin2/radionets
44e10a85a096f5cea8e9d83f96db65bdd4df9517
[ "MIT" ]
3
2020-01-08T09:01:09.000Z
2020-10-19T18:53:13.000Z
import pytest import shutil @pytest.fixture(autouse=True, scope='session') def test_suite_cleanup_thing(): yield build = "./tests/build/" print("Cleaning up tests.") shutil.rmtree(build)
15.923077
46
0.695652
26
207
5.423077
0.769231
0
0
0
0
0
0
0
0
0
0
0
0.173913
207
12
47
17.25
0.824561
0
0
0
0
0
0.188406
0
0
0
0
0
0
1
0.125
false
0
0.25
0
0.375
0.125
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
15160a2005fd2f9295967bf27efb0a84fe1e1638
1,151
py
Python
wemake_python_styleguide/logic/tree/recursion.py
toennifer/wemake-python-styleguide
12f942035aec4a34d38e24df89b150b88f35e021
[ "MIT" ]
null
null
null
wemake_python_styleguide/logic/tree/recursion.py
toennifer/wemake-python-styleguide
12f942035aec4a34d38e24df89b150b88f35e021
[ "MIT" ]
null
null
null
wemake_python_styleguide/logic/tree/recursion.py
toennifer/wemake-python-styleguide
12f942035aec4a34d38e24df89b150b88f35e021
[ "MIT" ]
null
null
null
from ast import AST, Attribute, Call, ClassDef, walk from wemake_python_styleguide.logic.nodes import get_context from wemake_python_styleguide.logic.tree.functions import given_function_called from wemake_python_styleguide.types import AnyFunctionDef def _is_self_call(func: AnyFunctionDef, node: AST) -> bool: r...
29.512821
79
0.717637
147
1,151
5.387755
0.333333
0.090909
0.060606
0.098485
0.239899
0.161616
0.161616
0.161616
0.161616
0.161616
0
0.001076
0.192876
1,151
38
80
30.289474
0.851453
0.072111
0
0.25
0
0
0.007634
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0.125
0.541667
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
151785bca34b4d23ccfe833d31dbe5f52fe078e8
2,952
py
Python
authBaseCode.py
shashwatsehgal/ToLop
5d7a0c7f918450fdfe4d0eccb092c99c1ddad5b5
[ "Apache-2.0" ]
null
null
null
authBaseCode.py
shashwatsehgal/ToLop
5d7a0c7f918450fdfe4d0eccb092c99c1ddad5b5
[ "Apache-2.0" ]
null
null
null
authBaseCode.py
shashwatsehgal/ToLop
5d7a0c7f918450fdfe4d0eccb092c99c1ddad5b5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from google.appengine.ext.webapp import template from google.appengine.ext import ndb import logging import os.path import webapp2 from webapp2_extras import auth from webapp2_extras import sessions from webapp2_extras.auth import InvalidAuthIdError from webapp2_extras.auth import InvalidPassw...
29.52
80
0.706978
401
2,952
5.084788
0.314214
0.038254
0.051496
0.058852
0.154487
0.029426
0
0
0
0
0
0.00638
0.203591
2,952
99
81
29.818182
0.86091
0.350271
0
0.096154
0
0
0.024848
0
0
0
0
0
0
1
0.192308
false
0.019231
0.173077
0
0.519231
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
1517c4e406a7adb9bfa1ec78806863cdf4984fe0
1,041
py
Python
soccer3d/soccerdepth/data/get_masks_from_labels.py
ngerstle/soccerontable
25426ff0f8fe0ce008b99c5c0fdbb35091d8d92c
[ "BSD-2-Clause" ]
465
2018-05-18T04:43:40.000Z
2022-02-27T03:09:25.000Z
soccer3d/soccerdepth/data/get_masks_from_labels.py
ngerstle/soccerontable
25426ff0f8fe0ce008b99c5c0fdbb35091d8d92c
[ "BSD-2-Clause" ]
18
2018-06-20T15:03:10.000Z
2021-05-05T04:33:38.000Z
soccer3d/soccerdepth/data/get_masks_from_labels.py
ngerstle/soccerontable
25426ff0f8fe0ce008b99c5c0fdbb35091d8d92c
[ "BSD-2-Clause" ]
97
2018-05-03T09:12:30.000Z
2022-01-25T12:49:33.000Z
import numpy as np import os import utils.files as file_utils import cv2 import utils.io as io import argparse from os.path import join, exists from os import listdir np.set_printoptions(suppress=True) parser = argparse.ArgumentParser(description='Track camera given an initial estimate') parser.add_argument('--dataset...
31.545455
88
0.755043
169
1,041
4.402367
0.443787
0.080645
0.053763
0.037634
0.126344
0.126344
0
0
0
0
0
0.008705
0.117195
1,041
32
89
32.53125
0.800871
0
0
0
0
0
0.147935
0.020173
0
0
0
0
0
1
0
false
0
0.32
0
0.32
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
127430b4bcbdc14aaa680f413e8036874cfc9e7c
849
py
Python
main/db_write.py
mhartley/popkids
30add65ebc4d6fd0c3f6a1ce51bef18817d35093
[ "MIT" ]
null
null
null
main/db_write.py
mhartley/popkids
30add65ebc4d6fd0c3f6a1ce51bef18817d35093
[ "MIT" ]
null
null
null
main/db_write.py
mhartley/popkids
30add65ebc4d6fd0c3f6a1ce51bef18817d35093
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from models import Person, Event from events import eventscore from pop_kids import settings from django.core.management import setup_environ import os import sys setup_environ(settings) with open("test.csv","r") as f: line = f.readline().rstrip("\n") parsed = line.split("|") twitt...
30.321429
117
0.730271
125
849
4.736
0.456
0.092905
0.047297
0.077703
0
0
0
0
0
0
0
0.008299
0.14841
849
27
118
31.444444
0.810512
0.398115
0
0
0
0
0.02381
0
0
0
0
0
0
1
0
false
0
0.352941
0
0.352941
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
128837d546c81500daa23ab5182feaf8889c5a19
1,435
py
Python
libraries/botbuilder-dialogs/botbuilder/dialogs/dialog_instance.py
awaemmanuel/botbuilder-python
bcc85a49f1426ccf682205566fd03937ee6d315c
[ "MIT" ]
1
2019-05-31T10:55:15.000Z
2019-05-31T10:55:15.000Z
libraries/botbuilder-dialogs/botbuilder/dialogs/dialog_instance.py
awaemmanuel/botbuilder-python
bcc85a49f1426ccf682205566fd03937ee6d315c
[ "MIT" ]
null
null
null
libraries/botbuilder-dialogs/botbuilder/dialogs/dialog_instance.py
awaemmanuel/botbuilder-python
bcc85a49f1426ccf682205566fd03937ee6d315c
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from typing import Dict class DialogInstance: """ Tracking information for a dialog on the stack. """ def __init__(self): self._id: str = None self._state: Dict[str, object] = {} @prope...
23.916667
64
0.549129
173
1,435
4.450867
0.317919
0.058442
0.067532
0.050649
0.251948
0.218182
0.137662
0.137662
0.098701
0.098701
0
0
0.336585
1,435
60
65
23.916667
0.808824
0.349129
0
0.086957
0
0
0.048593
0.026854
0
0
0
0
0
1
0.26087
false
0
0.043478
0
0.478261
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
128a32cd8c6807b40ed08fb2cbbc552d6c8b0eee
614
py
Python
taobao-tianmao/top/api/rest/VasSubscSearchRequest.py
ScottLeeF/python-example
0b230ba80fe5020d70329a9d73e058013f0ca111
[ "Apache-2.0" ]
null
null
null
taobao-tianmao/top/api/rest/VasSubscSearchRequest.py
ScottLeeF/python-example
0b230ba80fe5020d70329a9d73e058013f0ca111
[ "Apache-2.0" ]
7
2021-03-19T02:12:42.000Z
2022-03-12T00:25:28.000Z
taobao-tianmao/top/api/rest/VasSubscSearchRequest.py
ScottLeeF/python-example
0b230ba80fe5020d70329a9d73e058013f0ca111
[ "Apache-2.0" ]
null
null
null
''' Created by auto_sdk on 2018.07.25 ''' from top.api.base import RestApi class VasSubscSearchRequest(RestApi): def __init__(self, domain='gw.api.taobao.com', port=80): RestApi.__init__(self, domain, port) self.article_code = None self.autosub = None self.end_deadline =...
26.695652
61
0.607492
77
614
4.636364
0.584416
0.201681
0.078431
0
0
0
0
0
0
0
0
0.023202
0.298046
614
22
62
27.909091
0.805104
0.053746
0
0
0
0
0.072595
0.041742
0
0
0
0
0
1
0.125
false
0
0.0625
0.0625
0.3125
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
128b122e67db90feecf3c4be0541c88d59fbc24c
345
py
Python
Py46/main.py
xhexe/Py8R
44238c5403e7f76988760a040bf5c292824c22e7
[ "WTFPL" ]
null
null
null
Py46/main.py
xhexe/Py8R
44238c5403e7f76988760a040bf5c292824c22e7
[ "WTFPL" ]
null
null
null
Py46/main.py
xhexe/Py8R
44238c5403e7f76988760a040bf5c292824c22e7
[ "WTFPL" ]
null
null
null
import os import csv path_write_csv = "/home/xhexe/Py/Py8R/files" with open(os.path.join(path_write_csv, "discogs.csv"), "w") as my_movies: file_writer = csv.writer(my_movies) file_writer.writerow(["Author", "Rating"]) file_writer.writerow(["Rebel Without a Cause", 3]) file_writer.writerow(["Monty Pyt...
34.5
73
0.713043
55
345
4.290909
0.636364
0.169492
0.228814
0.152542
0
0
0
0
0
0
0
0.010033
0.133333
345
10
74
34.5
0.779264
0
0
0
0
0
0.283237
0.072254
0
0
0
0
0
1
0
false
0
0.25
0
0.25
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
128d5ca2ad3b99e50aa28c86e27a1c0492bd6135
4,254
py
Python
repo/script.module.urlresolver/lib/urlresolver/plugins/videozoo.py
Hades01/Addons
710da97ac850197498a3cd64be1811c593610add
[ "Apache-2.0" ]
null
null
null
repo/script.module.urlresolver/lib/urlresolver/plugins/videozoo.py
Hades01/Addons
710da97ac850197498a3cd64be1811c593610add
[ "Apache-2.0" ]
null
null
null
repo/script.module.urlresolver/lib/urlresolver/plugins/videozoo.py
Hades01/Addons
710da97ac850197498a3cd64be1811c593610add
[ "Apache-2.0" ]
null
null
null
""" Kodi urlresolver plugin Copyright (C) 2014 smokdpi This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version....
40.903846
236
0.56394
536
4,254
4.367537
0.33209
0.053823
0.018795
0.024349
0.148227
0.108928
0.061939
0.036736
0
0
0
0.010333
0.294781
4,254
103
237
41.300971
0.77
0
0
0.207792
0
0.012987
0.187606
0.033956
0
0
0
0
0
0
null
null
0
0.103896
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
128f2081e250aaab8308282f771073e78eb812cd
618
py
Python
functions.py
jsillman/tutorial-island
86f484651d4a3f528d848d34f16b51ba7d48871a
[ "MIT" ]
null
null
null
functions.py
jsillman/tutorial-island
86f484651d4a3f528d848d34f16b51ba7d48871a
[ "MIT" ]
1
2018-10-09T18:13:16.000Z
2018-10-18T02:00:37.000Z
functions.py
jsillman/tutorial-island
86f484651d4a3f528d848d34f16b51ba7d48871a
[ "MIT" ]
1
2018-10-18T01:41:14.000Z
2018-10-18T01:41:14.000Z
#this program prints every value of e^(x) for x ranging from 0 to one less than # a given value, or 9 by default import numpy as np import sys def exponent(x): #exponent(x) function: returns e^(x) return np.exp(x) def show_exponent(x): #show_exponent(x) function: prints the result of for i in range(x): ...
29.428571
80
0.660194
114
618
3.473684
0.517544
0.090909
0.060606
0
0
0
0
0
0
0
0
0.016598
0.220065
618
21
81
29.428571
0.804979
0.508091
0
0
0
0
0.027027
0
0
0
0
0
0
1
0.214286
false
0
0.142857
0.071429
0.428571
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
129483ce5df7ec71c69744c91f93ad1f7a0f5662
500
py
Python
cms/game/migrations/0018_auto_20180526_1255.py
alentoghostflame/PyLUS
d23531c81a81754bea04c1d1de335117edab1670
[ "MIT" ]
7
2019-04-18T00:46:09.000Z
2021-12-21T04:34:44.000Z
cms/game/migrations/0018_auto_20180526_1255.py
alentoghostflame/PyLUS
d23531c81a81754bea04c1d1de335117edab1670
[ "MIT" ]
15
2021-03-08T17:29:40.000Z
2021-04-08T18:22:52.000Z
cms/game/migrations/0018_auto_20180526_1255.py
alentoghostflame/PyLUS
d23531c81a81754bea04c1d1de335117edab1670
[ "MIT" ]
6
2018-04-01T16:33:50.000Z
2018-05-12T15:54:21.000Z
# Generated by Django 2.0.3 on 2018-05-26 12:55 import datetime from django.db import migrations, models from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('game', '0017_auto_20180526_1254'), ] operations = [ migrations.AlterField( ...
23.809524
111
0.638
59
500
5.338983
0.711864
0.025397
0.038095
0
0
0
0
0
0
0
0
0.132979
0.248
500
20
112
25
0.704787
0.09
0
0
1
0
0.090508
0.050773
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
12a34a7b0f8ddba20d78ebe48f03a0f73e5f4873
2,604
py
Python
ShortestPath.py
juancki/graphutils
7fbc8aac8f82993aaacf82e8a9a528b0e7a88728
[ "MIT" ]
null
null
null
ShortestPath.py
juancki/graphutils
7fbc8aac8f82993aaacf82e8a9a528b0e7a88728
[ "MIT" ]
null
null
null
ShortestPath.py
juancki/graphutils
7fbc8aac8f82993aaacf82e8a9a528b0e7a88728
[ "MIT" ]
null
null
null
# Shortest path tree generated. from collections import defaultdict from .run import DEBUG from .Node import graph2mat import heapq WHITE = 0 GRAY = 1 BLACK = 2 def DijstraSearch(G, root, satFunc): '''Returns the first Node in a Breath First Search that satisfies the condition satFunc(Graph,Vertex) == Tr...
24.111111
80
0.534946
351
2,604
3.965812
0.330484
0.025144
0.028736
0.031609
0.086925
0.086925
0.086925
0.086925
0.086925
0.086925
0
0.013723
0.356375
2,604
107
81
24.336449
0.816826
0.12404
0
0.026667
1
0
0.021817
0
0
0
0
0
0
1
0.08
false
0
0.066667
0
0.24
0.026667
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
12a7d60014c8be5ba48c7f21b666f5ef51c3f542
2,181
py
Python
nephos/fabric/settings.py
praveendhac/nephos
f4b43d53c1eebe5c0d4474e4bd5cbbf0a7abcba0
[ "Apache-2.0" ]
null
null
null
nephos/fabric/settings.py
praveendhac/nephos
f4b43d53c1eebe5c0d4474e4bd5cbbf0a7abcba0
[ "Apache-2.0" ]
null
null
null
nephos/fabric/settings.py
praveendhac/nephos
f4b43d53c1eebe5c0d4474e4bd5cbbf0a7abcba0
[ "Apache-2.0" ]
1
2020-12-06T19:55:45.000Z
2020-12-06T19:55:45.000Z
from collections import OrderedDict from os import path import yaml from nephos.helpers.k8s import context_get # YAML module will load data using an OrderedDict def dict_representer(dumper, data): return dumper.represent_dict(data.iteritems()) def dict_constructor(loader, node): return OrderedDict(loader....
35.177419
94
0.664833
284
2,181
4.985915
0.327465
0.050847
0.031073
0.036017
0.187147
0.187147
0.111582
0.060734
0
0
0
0.000581
0.210912
2,181
61
95
35.754098
0.822196
0.100871
0
0.047619
0
0
0.182097
0
0
0
0
0.016393
0
1
0.119048
false
0
0.095238
0.047619
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
12aefcf55a31fb8effa723f12091b7936f6d68dd
332
py
Python
local_settings.py
g10f/sso
ba6eb712add388c69d4880f5620a2e4ce42d3fee
[ "BSD-3-Clause" ]
3
2021-05-16T17:06:57.000Z
2021-05-28T17:14:05.000Z
local_settings.py
g10f/sso
ba6eb712add388c69d4880f5620a2e4ce42d3fee
[ "BSD-3-Clause" ]
null
null
null
local_settings.py
g10f/sso
ba6eb712add388c69d4880f5620a2e4ce42d3fee
[ "BSD-3-Clause" ]
null
null
null
# mount this to apps/sso/settings/local_settings.py # to configure the sso EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' # # CACHES = { # 'default': { # 'BACKEND': 'sso.cache.backends.SSOCache', # 'LOCATION': 'cache:11211', # 'TIMEOUT': 300, # 'KEY_PREFIX': 'sso' ...
23.714286
64
0.596386
36
332
5.416667
0.777778
0
0
0
0
0
0
0
0
0
0
0.031496
0.23494
332
13
65
25.538462
0.73622
0.731928
0
0
0
0
0.597403
0.597403
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
12afd9616727fe971ad517e8b40727ad0500ce81
1,694
py
Python
code/dnac-get-devices.py
curtissmith/LTRPRG-1100
8dd63c0ebaf4749d3405f54b092731347e7a2a81
[ "BSD-Source-Code" ]
21
2019-06-09T16:30:10.000Z
2019-08-21T14:32:44.000Z
code/dnac-get-devices.py
curtissmith/LTRDEV-1100
8dd63c0ebaf4749d3405f54b092731347e7a2a81
[ "BSD-Source-Code" ]
17
2018-05-06T13:32:08.000Z
2019-02-22T14:28:45.000Z
code/dnac-get-devices.py
curtissmith/LTRPRG-1100
8dd63c0ebaf4749d3405f54b092731347e7a2a81
[ "BSD-Source-Code" ]
10
2019-06-09T16:32:55.000Z
2020-10-02T15:17:33.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Copyright (c) 2019 Cisco and/or its affiliates. This software is licensed to you under the terms of the Cisco Sample Code License, Version 1.1 (the "License"). You may obtain a copy of the License at https://developer.cisco.com/docs/licenses All use of...
28.711864
72
0.660567
210
1,694
5.32381
0.566667
0.044723
0.042934
0.050984
0.16458
0.137746
0.084079
0.084079
0
0
0
0.011914
0.256789
1,694
58
73
29.206897
0.876092
0.475797
0
0.25
0
0
0.186073
0
0
0
0
0
0
1
0
false
0.083333
0.166667
0
0.166667
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
12d132a1f1f6fb707c5316f941d902c3b5f4103f
298
py
Python
temperature/analysis.py
SaintGimp/BeagleBoneHardware
04990a6fbcb7d95b1bbcd4d33e9145f5bfbdd3b2
[ "MIT" ]
2
2018-07-03T12:34:25.000Z
2019-02-22T14:44:59.000Z
temperature/analysis.py
SaintGimp/BeagleBoneHardware
04990a6fbcb7d95b1bbcd4d33e9145f5bfbdd3b2
[ "MIT" ]
null
null
null
temperature/analysis.py
SaintGimp/BeagleBoneHardware
04990a6fbcb7d95b1bbcd4d33e9145f5bfbdd3b2
[ "MIT" ]
null
null
null
import datetime, numpy, scipy, pandas import matplotlib.pyplot as plt df = pandas.read_table("/Users/elee/temperature_data.txt", sep=",", header=0, index_col=0, parse_dates=True) print df.columns print df["temp"] minutes = df.temp.resample("1T", how="mean") df.temp.plot(kind="line") plt.show()
24.833333
108
0.731544
48
298
4.458333
0.770833
0.084112
0
0
0
0
0
0
0
0
0
0.011152
0.097315
298
12
109
24.833333
0.784387
0
0
0
0
0
0.157191
0.107023
0
0
0
0
0
0
null
null
0
0.25
null
null
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
12dc8713a56d0d7afcb301df34cfb301a31909e1
2,900
py
Python
packages/grid/apps/domain/src/app.py
Param-29/PySyft
5a90b920e5c3b71f73352d0e257f40d3440e00c9
[ "Apache-1.1" ]
1
2021-04-05T21:05:53.000Z
2021-04-05T21:05:53.000Z
packages/grid/apps/domain/src/app.py
Param-29/PySyft
5a90b920e5c3b71f73352d0e257f40d3440e00c9
[ "Apache-1.1" ]
null
null
null
packages/grid/apps/domain/src/app.py
Param-29/PySyft
5a90b920e5c3b71f73352d0e257f40d3440e00c9
[ "Apache-1.1" ]
1
2021-05-09T08:43:34.000Z
2021-05-09T08:43:34.000Z
"""CODING GUIDELINES: - Add docstrings following the pattern chosen by the community. - Add comments explaining step by step how your method works and the purpose of it. - If possible, add examples showing how to call them properly. - Remember to add the parameters and return types. - Add unit tests / integration test...
34.117647
134
0.756552
417
2,900
5.170264
0.460432
0.033395
0.045455
0.064935
0.123377
0.100186
0.100186
0
0
0
0
0.009567
0.171034
2,900
84
135
34.52381
0.887271
0.494138
0
0
0
0
0.137907
0.022631
0
0
0
0
0
1
0.025
false
0
0.375
0
0.425
0.175
0
0
0
null
0
0
0
0
0
0
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
12ddc960e059fa14ad44b46ead11615e3f39d48b
5,964
py
Python
kriging_exploration/scripts/visualise_data.py
Jailander/COSMOS
d286ff7402e35a465045019addaedff0429c7781
[ "MIT" ]
null
null
null
kriging_exploration/scripts/visualise_data.py
Jailander/COSMOS
d286ff7402e35a465045019addaedff0429c7781
[ "MIT" ]
1
2018-03-09T11:21:22.000Z
2018-03-09T11:21:22.000Z
kriging_exploration/scripts/visualise_data.py
Jailander/COSMOS
d286ff7402e35a465045019addaedff0429c7781
[ "MIT" ]
3
2018-03-07T10:46:18.000Z
2018-03-13T15:29:51.000Z
#!/usr/bin/env python import signal import numpy as np import cv2 import sys import argparse import matplotlib as mpl import matplotlib.cm as cm #import satellite from kriging_exploration.satellite import SatelliteImage #from map_coords import MapCoords from kriging_exploration.data_grid import DataGrid #from krig...
38.477419
115
0.557009
793
5,964
4.092055
0.204288
0.088752
0.078582
0.064715
0.60339
0.591063
0.553159
0.51094
0.462866
0.453313
0
0.055033
0.305332
5,964
154
116
38.727273
0.728216
0.104795
0
0.375
0
0
0.037739
0
0
0
0.000751
0
0
0
null
null
0
0.086538
null
null
0.115385
0
0
0
null
0
0
0
0
0
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
12e6372d8d2161f362f69fcbd50e58665ce98887
294
py
Python
Semana02/prog19.py
j-pedrofag/SEII-JoaoPedroSilvaFagundes
d3d837fc06281fd189c02fe36713f6c6581ca779
[ "MIT" ]
null
null
null
Semana02/prog19.py
j-pedrofag/SEII-JoaoPedroSilvaFagundes
d3d837fc06281fd189c02fe36713f6c6581ca779
[ "MIT" ]
null
null
null
Semana02/prog19.py
j-pedrofag/SEII-JoaoPedroSilvaFagundes
d3d837fc06281fd189c02fe36713f6c6581ca779
[ "MIT" ]
null
null
null
try: f = open('curruptfile.txt') # if f.name == 'currupt_file.txt': # raise Exception except IOError as e: print('First!') except Exception as e: print('Second') else: print(f.read()) f.close() finally: print("Executing Finally...") print('End of program')
18.375
38
0.605442
39
294
4.538462
0.666667
0.033898
0.090395
0
0
0
0
0
0
0
0
0
0.231293
294
16
39
18.375
0.783186
0.176871
0
0
0
0
0.25523
0
0
0
0
0
0
1
0
false
0
0
0
0
0.416667
0
0
0
null
0
0
0
0
0
0
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
12e9a94d1f72e18c53bdb295ca7161610bc911d9
313
py
Python
Codeforces/510A Fox and Snake.py
T0peerakarn/Competitive-programing-hacktoberfest-2021
ac42a148a2f18ce69a04ff274d4bd47ce837ccdf
[ "Unlicense" ]
12
2021-06-05T09:40:10.000Z
2021-10-07T17:59:51.000Z
Codeforces/510A Fox and Snake.py
T0peerakarn/Competitive-programing-hacktoberfest-2021
ac42a148a2f18ce69a04ff274d4bd47ce837ccdf
[ "Unlicense" ]
21
2020-10-10T10:41:03.000Z
2020-10-31T10:41:23.000Z
Codeforces/510A Fox and Snake.py
T0peerakarn/Competitive-programing-hacktoberfest-2021
ac42a148a2f18ce69a04ff274d4bd47ce837ccdf
[ "Unlicense" ]
67
2021-08-01T10:04:52.000Z
2021-10-10T00:25:04.000Z
# https://codeforces.com/problemset/problem/510/A n,m = map(int, input().split()) a = ["#"]*m b = ["."]*(m-1) flag = 0 for i in range(n): if i%2==0: print("".join(a)) elif flag == 0: print("".join(b)+"#") flag = 1 else : print("#"+"".join(b)) flag = 0
20.866667
49
0.4377
46
313
2.978261
0.586957
0.109489
0.145985
0.20438
0
0
0
0
0
0
0
0.046296
0.309904
313
15
50
20.866667
0.587963
0.15016
0
0.153846
0
0
0.015094
0
0
0
0
0
0
1
0
false
0
0
0
0
0.230769
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
12ef9dce033bc8e3718cc95fd8ee4adbc023c104
24,150
py
Python
ORange1_LoadBalancers/Project2/micdekload.py
lironsc/ORange
365428a8f9ebfd1a9891560cb86cf97432a198e2
[ "Apache-2.0" ]
null
null
null
ORange1_LoadBalancers/Project2/micdekload.py
lironsc/ORange
365428a8f9ebfd1a9891560cb86cf97432a198e2
[ "Apache-2.0" ]
null
null
null
ORange1_LoadBalancers/Project2/micdekload.py
lironsc/ORange
365428a8f9ebfd1a9891560cb86cf97432a198e2
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2011 Nippon Telegraph and Telephone Corporation. # # 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 appli...
45.480226
209
0.619213
3,283
24,150
4.37679
0.151995
0.012249
0.02923
0.021157
0.305588
0.260909
0.228548
0.185538
0.16459
0.134526
0
0.025086
0.288571
24,150
530
210
45.566038
0.811245
0.17942
0
0.17931
0
0
0.006501
0
0
0
0
0
0
0
null
null
0
0.041379
null
null
0.006897
0
0
0
null
0
0
0
0
0
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
12f5342aa249a1e0d4ec7a943ea19e2b3568914e
7,769
py
Python
tests/modifiedMexicanHatTest17_kongreycompref.py
yaukwankiu/armor
6c57df82fe3e7761f43f9fbfe4f3b21882c91436
[ "CC0-1.0" ]
1
2015-11-06T06:41:33.000Z
2015-11-06T06:41:33.000Z
tests/modifiedMexicanHatTest17_kongreycompref.py
yaukwankiu/armor
6c57df82fe3e7761f43f9fbfe4f3b21882c91436
[ "CC0-1.0" ]
null
null
null
tests/modifiedMexicanHatTest17_kongreycompref.py
yaukwankiu/armor
6c57df82fe3e7761f43f9fbfe4f3b21882c91436
[ "CC0-1.0" ]
null
null
null
# modified mexican hat wavelet test.py # spectral analysis for RADAR and WRF patterns # NO plotting - just saving the results: LOG-response spectra for each sigma and max-LOG response numerical spectra # pre-convolved with a gaussian filter of sigma=10 import os, shutil import time, datetime import pickle imp...
46.801205
321
0.548719
830
7,769
5.090361
0.320482
0.026509
0.008521
0.018462
0.149349
0.098225
0.091124
0.067929
0.067929
0.067929
0
0.081787
0.250869
7,769
165
322
47.084848
0.644158
0.223066
0
0.098214
0
0
0.13838
0.063416
0
0
0
0
0
0
null
null
0
0.080357
null
null
0.098214
0
0
0
null
0
0
0
0
0
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
12fb0734563b232924de01e4115cfb61d4b988f1
2,837
py
Python
fewshot/configs/lstm_config_pb2.py
sebamenabar/oc-fewshot-public
2dad8c9f24cb1bfe72d8b13b33d28f6788d86ca8
[ "MIT" ]
18
2020-07-12T11:07:27.000Z
2022-02-06T04:17:23.000Z
fewshot/configs/lstm_config_pb2.py
renmengye/oc-fewshot
eb12bd5b426518fd8353304f0760f5c24f1b3c12
[ "MIT" ]
2
2021-10-14T17:38:50.000Z
2021-11-10T14:07:04.000Z
fewshot/configs/lstm_config_pb2.py
renmengye/oc-fewshot
eb12bd5b426518fd8353304f0760f5c24f1b3c12
[ "MIT" ]
6
2020-11-11T19:18:28.000Z
2021-06-04T14:20:03.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: fewshot/configs/lstm_config.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from...
33.376471
230
0.752556
365
2,837
5.591781
0.326027
0.068594
0.044096
0.047036
0.361587
0.256247
0.256247
0.256247
0.229299
0.229299
0
0.031452
0.125837
2,837
84
231
33.77381
0.791532
0.090941
0
0.3125
1
0.015625
0.191291
0.152411
0
0
0
0
0
1
0
false
0
0.078125
0
0.078125
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
12fb2f8c48cc55c1c21553cdcf6c6c6e0351ffa3
2,108
py
Python
fixture/locators.py
AndreyNikolaich/stoloto_test
f6f8e85856d70ad581dc388d59e803584a8868a7
[ "Apache-2.0" ]
null
null
null
fixture/locators.py
AndreyNikolaich/stoloto_test
f6f8e85856d70ad581dc388d59e803584a8868a7
[ "Apache-2.0" ]
null
null
null
fixture/locators.py
AndreyNikolaich/stoloto_test
f6f8e85856d70ad581dc388d59e803584a8868a7
[ "Apache-2.0" ]
null
null
null
from selenium.webdriver.common.by import By class MainPageLocators(): LOGIN_LINK = (By.CSS_SELECTOR, '[class="iconic iconic-user"]') LOGIN_EMAIL = (By.XPATH, '//*[@id="auth_login"]') LOGIN_PASSWORD = (By.XPATH, '//*[@id="auth_password"]') LOGIN_IN = (By.CSS_SELECTOR, '[class="pretty_button_new pretty_...
47.909091
104
0.641366
323
2,108
4.01548
0.309598
0.086353
0.097147
0.086353
0.229761
0.141866
0.109483
0
0
0
0
0.022982
0.112429
2,108
44
105
47.909091
0.67023
0.011385
0
0
0
0.181818
0.455854
0.359405
0
0
0
0
0
1
0
false
0.030303
0.030303
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
4206316cb5d448351a221191d2f64ce41d17f106
2,271
py
Python
source/django/001/my_bbs/post/migrations/0001_initial.py
FreeStl1024/MySite
adff0ac7acc49870ca5e3d59d2e348da478aee41
[ "MIT" ]
null
null
null
source/django/001/my_bbs/post/migrations/0001_initial.py
FreeStl1024/MySite
adff0ac7acc49870ca5e3d59d2e348da478aee41
[ "MIT" ]
6
2021-03-19T03:29:22.000Z
2021-09-22T19:01:46.000Z
source/django/001/my_bbs/post/migrations/0001_initial.py
FreeStl1024/MySite
adff0ac7acc49870ca5e3d59d2e348da478aee41
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2020-04-26 17:15 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ...
45.42
154
0.583443
233
2,271
5.515021
0.364807
0.074708
0.046693
0.080934
0.550973
0.498054
0.384436
0.384436
0.384436
0.315953
0
0.014085
0.280934
2,271
49
155
46.346939
0.772811
0.019815
0
0.47619
1
0
0.152644
0
0
0
0
0
0
1
0
false
0
0.071429
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
42097fba0affd3a00cc58e0360f944183b182966
493
py
Python
python/odd-one-out/generate_odd_one_out_array.py
bwestover/vsd-stockton-exercises
82beb6dbcc6f4b4a105ddb4b44dd508a73832aed
[ "MIT" ]
null
null
null
python/odd-one-out/generate_odd_one_out_array.py
bwestover/vsd-stockton-exercises
82beb6dbcc6f4b4a105ddb4b44dd508a73832aed
[ "MIT" ]
null
null
null
python/odd-one-out/generate_odd_one_out_array.py
bwestover/vsd-stockton-exercises
82beb6dbcc6f4b4a105ddb4b44dd508a73832aed
[ "MIT" ]
null
null
null
import random def generate_odd_one_out_array(n, seed=None): """ Generate an array of n sets of integers that occur an even number of times and a single integer that occurs an odd number of times""" arr = [] for i in range(n): # Optionally Make data NOT random for use in static tests if...
29
76
0.63286
79
493
3.898734
0.607595
0.051948
0.084416
0
0
0
0
0
0
0
0
0.016713
0.271805
493
16
77
30.8125
0.841226
0.37931
0
0
1
0
0
0
0
0
0
0
0
1
0.1
false
0
0.1
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
420d46442dc94c4a8a6f18d0181959fdaf070e7f
176
py
Python
Data_Analyst/Step_1_Introduction_to_Python/1_Python_Basics/6_Types/script.py
ustutz/dataquest
6fa64fc824a060b19649ef912d11bee9ed671025
[ "MIT" ]
8
2017-01-20T13:24:26.000Z
2019-04-05T19:02:13.000Z
Data_Analyst/Step_1_Introduction_to_Python/1_Python_Basics/6_Types/script.py
ustutz/dataquest
6fa64fc824a060b19649ef912d11bee9ed671025
[ "MIT" ]
null
null
null
Data_Analyst/Step_1_Introduction_to_Python/1_Python_Basics/6_Types/script.py
ustutz/dataquest
6fa64fc824a060b19649ef912d11bee9ed671025
[ "MIT" ]
25
2016-10-27T16:27:54.000Z
2021-07-06T14:36:40.000Z
class Script: @staticmethod def main(): i = 1 s = "Hello World" f = 55.55 hundred_integer = 100 hundred_string = "hundred" hundred_float = 100.5 Script.main()
12.571429
28
0.647727
25
176
4.44
0.72
0
0
0
0
0
0
0
0
0
0
0.089552
0.238636
176
14
29
12.571429
0.738806
0
0
0
0
0
0.101695
0
0
0
0
0
0
1
0.1
false
0
0
0
0.2
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
421128af2ac781a1ccb102d9510bb6a6e0aceb99
5,118
py
Python
init5/src/users/serializers.py
iYoQ/init5
be67fc501376f17f2f6a258c5f8c2002defbc415
[ "Apache-2.0" ]
null
null
null
init5/src/users/serializers.py
iYoQ/init5
be67fc501376f17f2f6a258c5f8c2002defbc415
[ "Apache-2.0" ]
null
null
null
init5/src/users/serializers.py
iYoQ/init5
be67fc501376f17f2f6a258c5f8c2002defbc415
[ "Apache-2.0" ]
null
null
null
from django.contrib.auth.tokens import default_token_generator from rest_framework import serializers from rest_framework.settings import api_settings from rest_framework.exceptions import ValidationError from drf_extra_fields.fields import Base64ImageField from django.contrib.auth.password_validation import validate_p...
30.646707
195
0.661196
522
5,118
6.291188
0.270115
0.021924
0.029842
0.032887
0.267966
0.223812
0.207978
0.16687
0.115713
0.115713
0
0.003078
0.238179
5,118
166
196
30.831325
0.83919
0.011723
0
0.308333
0
0
0.127031
0
0
0
0
0
0
1
0.058333
false
0.058333
0.083333
0
0.483333
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
4211cc0a52b9b8577b4be63449de7471dc7c88f5
2,682
py
Python
yt_astro_analysis/halo_analysis/halo_catalog/analysis_operators.py
brittonsmith/yt_astro_analysis
f5d255a89dc1e882866cbfabcc627c3af3ee6d62
[ "BSD-3-Clause-Clear" ]
null
null
null
yt_astro_analysis/halo_analysis/halo_catalog/analysis_operators.py
brittonsmith/yt_astro_analysis
f5d255a89dc1e882866cbfabcc627c3af3ee6d62
[ "BSD-3-Clause-Clear" ]
null
null
null
yt_astro_analysis/halo_analysis/halo_catalog/analysis_operators.py
brittonsmith/yt_astro_analysis
f5d255a89dc1e882866cbfabcc627c3af3ee6d62
[ "BSD-3-Clause-Clear" ]
null
null
null
""" callbacks, filters, quantities, and recipes for AnalysisPipeline """ from yt.utilities.operator_registry import \ OperatorRegistry callback_registry = OperatorRegistry() def add_callback(name, function): callback_registry[name] = AnalysisCallback(function) class AnalysisCallback(object): r""" ...
31.552941
82
0.698359
318
2,682
5.72327
0.248428
0.079121
0.052747
0.065934
0.4
0.396703
0.364835
0.305495
0.305495
0.305495
0
0
0.208799
2,682
84
83
31.928571
0.857681
0.265474
0
0.446809
0
0
0
0
0
0
0
0
0
1
0.255319
false
0
0.021277
0.06383
0.446809
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
421b4fee24d5d886f6af5dad152f1f187c666bfd
263
py
Python
raw-examples/binding/cpp2py/pybind11/main.py
paoqi1997/pqnet
3413916bdc355b0a4eea8ef934a3ff658b047b19
[ "BSD-3-Clause" ]
null
null
null
raw-examples/binding/cpp2py/pybind11/main.py
paoqi1997/pqnet
3413916bdc355b0a4eea8ef934a3ff658b047b19
[ "BSD-3-Clause" ]
null
null
null
raw-examples/binding/cpp2py/pybind11/main.py
paoqi1997/pqnet
3413916bdc355b0a4eea8ef934a3ff658b047b19
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python3 import mypy print('doc: %s'%mypy.__doc__) print(mypy.add(1, 2)) obj = mypy.Object() obj.setName('paoqi') obj.setSum(648) content = 'Name: %s, Sum: %d'%(obj.getName(), obj.getSum()) print(content) print(obj.FLAG) print(mypy.DEEP_DARK_FANTASY)
18.785714
59
0.692015
43
263
4.093023
0.627907
0.102273
0
0
0
0
0
0
0
0
0
0.025105
0.091255
263
13
60
20.230769
0.711297
0.064639
0
0
0
0
0.118367
0
0
0
0
0
0
1
0
false
0
0.1
0
0.1
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
421d01f898abcacf59764b6a76f20b6357fa3df8
1,246
py
Python
tests/models.py
wolcomm/djangolg
724dbb631da3c61d42f62024f9d7826423624191
[ "Apache-2.0" ]
6
2016-10-24T09:15:47.000Z
2021-01-20T11:09:39.000Z
tests/models.py
benmaddison/djangolg
724dbb631da3c61d42f62024f9d7826423624191
[ "Apache-2.0" ]
null
null
null
tests/models.py
benmaddison/djangolg
724dbb631da3c61d42f62024f9d7826423624191
[ "Apache-2.0" ]
1
2022-03-20T03:25:07.000Z
2022-03-20T03:25:07.000Z
# Copyright 2017 Workonline Communications (Pty) Ltd. All rights reserved. # # The contents of this file are 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/LIC...
27.688889
79
0.715891
163
1,246
5.411043
0.613497
0.068027
0.029478
0.036281
0.154195
0.154195
0.154195
0.154195
0.154195
0.154195
0
0.008032
0.200642
1,246
44
80
28.318182
0.87751
0.616372
0
0.307692
0
0
0.043678
0
0
0
0
0
0
1
0.076923
false
0
0.230769
0
0.692308
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
421fda1d46fd4beae4212c7f636bc18845e8bc5a
1,302
py
Python
skt_process.py
redashu/adhoc_ML_june4th11
75b1f3412a06f33d7973f2b92e306cbdd04f87ed
[ "Apache-2.0" ]
2
2018-06-21T08:53:59.000Z
2018-06-23T06:46:08.000Z
skt_process.py
redashu/adhoc_ML_june4th11
75b1f3412a06f33d7973f2b92e306cbdd04f87ed
[ "Apache-2.0" ]
null
null
null
skt_process.py
redashu/adhoc_ML_june4th11
75b1f3412a06f33d7973f2b92e306cbdd04f87ed
[ "Apache-2.0" ]
14
2018-06-26T07:34:41.000Z
2019-09-04T17:22:25.000Z
#!/usr/bin/env python2 import socket s=socket.socket(socket.AF_INET,socket.SOCK_DGRAM) s.bind(("192.168.10.182",9999)) from sklearn import tree ''' step 1 : data collection or loading data step 2: div -- {training data , testing data} for algo , for user step 3 : train with classif...
21.7
63
0.660522
194
1,302
4.360825
0.489691
0.035461
0.021277
0.042553
0.047281
0
0
0
0
0
0
0.047244
0.219662
1,302
59
64
22.067797
0.785433
0.243472
0
0
0
0
0.115635
0
0
0
0
0
0
0
null
null
0
0.1
null
null
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
1
0
0
0
0
0
0
0
0
1
42238bc1b7d500ab3dad6d79b5826998b914d95b
2,737
py
Python
webapp/blueprints/users/routes.py
vali-fake-acc/proiect-mobile
ce4fa6744e24b52988a84a4a87b3548bd626df7f
[ "BSD-3-Clause" ]
null
null
null
webapp/blueprints/users/routes.py
vali-fake-acc/proiect-mobile
ce4fa6744e24b52988a84a4a87b3548bd626df7f
[ "BSD-3-Clause" ]
null
null
null
webapp/blueprints/users/routes.py
vali-fake-acc/proiect-mobile
ce4fa6744e24b52988a84a4a87b3548bd626df7f
[ "BSD-3-Clause" ]
null
null
null
import json from flask import render_template, url_for, flash, redirect, request, Blueprint from flask_login import current_user, login_user, logout_user, login_required from webapp import db, bcrypt, login_manager from webapp.blueprints.users.models import User from webapp.blueprints.users.forms import Form_R...
35.545455
117
0.667885
343
2,737
5.145773
0.268222
0.023796
0.038527
0.045326
0.305949
0.243626
0.209632
0.209632
0.209632
0.209632
0
0.001823
0.198392
2,737
76
118
36.013158
0.802644
0
0
0.303571
0
0
0.139098
0
0
0
0
0
0
1
0.089286
false
0.178571
0.107143
0.017857
0.375
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
422587da0ed9a9ada4232cacbaae46744760a40f
6,427
py
Python
src/sagemaker/cli/compatibility/v2/modifiers/training_input.py
anirudh2290/sagemaker-python-sdk
5b15f3006efe90fbba43da7841ff5f0ad790a78e
[ "Apache-2.0" ]
1
2020-09-22T19:13:36.000Z
2020-09-22T19:13:36.000Z
src/sagemaker/cli/compatibility/v2/modifiers/training_input.py
anirudh2290/sagemaker-python-sdk
5b15f3006efe90fbba43da7841ff5f0ad790a78e
[ "Apache-2.0" ]
1
2019-04-23T19:32:17.000Z
2019-04-23T19:32:17.000Z
src/sagemaker/cli/compatibility/v2/modifiers/training_input.py
anirudh2290/sagemaker-python-sdk
5b15f3006efe90fbba43da7841ff5f0ad790a78e
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file acc...
37.150289
98
0.640268
785
6,427
5.163057
0.198726
0.031088
0.021712
0.037503
0.57661
0.528497
0.462374
0.442142
0.408093
0.399457
0
0.007461
0.249261
6,427
172
99
37.366279
0.832539
0.550335
0
0.313725
0
0
0.096937
0
0
0
0
0
0
1
0.176471
false
0
0.117647
0
0.54902
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
422f8fc136e2ef189e11a0cd0fa0ce7385751fb6
5,886
py
Python
marsyas-vamp/marsyas/scripts/large-evaluators/make-mf.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/scripts/large-evaluators/make-mf.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/scripts/large-evaluators/make-mf.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import sys import numpy import pylab PLOT = True PLOT = False INCLUDE_05 = False #INCLUDE_05 = True def accuracy(bpm_detected, bpm_ground): tolerance = 0.04 diff = abs(bpm_detected - bpm_ground) if diff <= tolerance * bpm_ground: return True return False def double_har...
23.173228
79
0.583248
805
5,886
4.154037
0.221118
0.0625
0.079545
0.047847
0.409091
0.316986
0.235646
0.184809
0.166866
0.166866
0
0.047519
0.27421
5,886
253
80
23.264822
0.735253
0.171933
0
0.242604
0
0.005917
0.121997
0
0
0
0
0
0
0
null
null
0
0.017751
null
null
0.08284
0
0
0
null
0
0
0
0
0
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
422fa62c2811d06752c8ac482d8c7bfa08cf6eb7
8,594
py
Python
pychron/pyscripts/tasks/pyscript_panes.py
ael-noblegas/pychron
6ebbbb1f66a614972b62b7a9be4c784ae61b5d62
[ "Apache-2.0" ]
1
2019-02-27T21:57:44.000Z
2019-02-27T21:57:44.000Z
pychron/pyscripts/tasks/pyscript_panes.py
ael-noblegas/pychron
6ebbbb1f66a614972b62b7a9be4c784ae61b5d62
[ "Apache-2.0" ]
80
2018-07-17T20:10:20.000Z
2021-08-17T15:38:24.000Z
pychron/pyscripts/tasks/pyscript_panes.py
AGESLDEO/pychron
1a81e05d9fba43b797f335ceff6837c016633bcf
[ "Apache-2.0" ]
null
null
null
# =============================================================================== # Copyright 2013 Jake Ross # # 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...
34.934959
110
0.55818
860
8,594
5.430233
0.27907
0.040043
0.029122
0.029122
0.224625
0.172805
0.140257
0.039829
0.039829
0.026981
0
0.004762
0.315802
8,594
245
111
35.077551
0.789456
0.111473
0
0.176136
0
0
0.109375
0.045956
0
0
0
0
0
1
0.130682
false
0
0.068182
0.034091
0.579545
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
422fd0d9845779b4af59eaa8e168af7108374388
2,736
py
Python
start_mf_session.py
cartooh/moneyforward
efcdfe0e3854567ab4b3d63fa30231b2e9e71318
[ "MIT" ]
null
null
null
start_mf_session.py
cartooh/moneyforward
efcdfe0e3854567ab4b3d63fa30231b2e9e71318
[ "MIT" ]
null
null
null
start_mf_session.py
cartooh/moneyforward
efcdfe0e3854567ab4b3d63fa30231b2e9e71318
[ "MIT" ]
1
2021-12-14T15:47:21.000Z
2021-12-14T15:47:21.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import argparse import base64 import os import re import hashlib import json import pickle from urllib.parse import urlparse, parse_qs, urlunsplit from pprint import pprint import keyring import requests import chromedriver_binary from selenium import webdriver parser = ...
30.4
119
0.738304
352
2,736
5.542614
0.400568
0.053306
0.034854
0.03998
0.038954
0.038954
0.038954
0.038954
0.038954
0
0
0.016646
0.121711
2,736
89
120
30.741573
0.795256
0.015351
0
0.029851
0
0
0.178372
0.04608
0
0
0
0
0
1
0
false
0.089552
0.19403
0
0.19403
0.044776
0
0
0
null
0
0
0
0
0
0
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
423146f3759142d5d966cd774f51c4350cb9d83c
774
py
Python
sandbox/apps/checkout/views.py
kisiel/django-oscar-przelewy24
721742b5f612578712fc04dbb0c32612fa96d0ca
[ "BSD-3-Clause" ]
4
2015-12-18T19:44:50.000Z
2016-11-05T14:46:54.000Z
sandbox/apps/checkout/views.py
kisiel/django-oscar-przelewy24
721742b5f612578712fc04dbb0c32612fa96d0ca
[ "BSD-3-Clause" ]
null
null
null
sandbox/apps/checkout/views.py
kisiel/django-oscar-przelewy24
721742b5f612578712fc04dbb0c32612fa96d0ca
[ "BSD-3-Clause" ]
7
2016-11-05T14:23:23.000Z
2020-06-01T04:44:20.000Z
from django.core.urlresolvers import reverse from oscar.core.loading import get_class PaymentDetailsView = get_class('oscar.apps.checkout.views', 'PaymentDetailsView') RedirectRequired = get_class('oscar.apps.checkout.views', 'RedirectRequired') class Przelewy24PaymentDetailsView(Pay...
36.857143
77
0.713178
84
774
6.47619
0.666667
0.044118
0.047794
0.0625
0.110294
0.110294
0
0
0
0
0
0.006483
0.202842
774
20
78
38.7
0.875203
0.312662
0
0
0
0
0.193916
0.095057
0
0
0
0
0
1
0.111111
false
0
0.222222
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
423501d981d85d213f2dde36e2c60930b6f346ae
676
py
Python
src/bpp/migrations/0260_jednostka_pbn_uid.py
iplweb/django-bpp
85f183a99d8d5027ae4772efac1e4a9f21675849
[ "BSD-3-Clause" ]
1
2017-04-27T19:50:02.000Z
2017-04-27T19:50:02.000Z
src/bpp/migrations/0260_jednostka_pbn_uid.py
mpasternak/django-bpp
434338821d5ad1aaee598f6327151aba0af66f5e
[ "BSD-3-Clause" ]
41
2019-11-07T00:07:02.000Z
2022-02-27T22:09:39.000Z
src/bpp/migrations/0260_jednostka_pbn_uid.py
iplweb/bpp
f027415cc3faf1ca79082bf7bacd4be35b1a6fdf
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 3.0.11 on 2021-04-25 22:24 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("pbn_api", "0008_auto_20210406_0530"), ("bpp", "0259_auto_20210421_2323"), ] operations = [ migrati...
25.037037
61
0.56213
72
676
5.097222
0.680556
0.065395
0.076294
0.119891
0
0
0
0
0
0
0
0.10596
0.329882
676
26
62
26
0.704194
0.068047
0
0.1
1
0
0.171975
0.073248
0
0
0
0
0
1
0
false
0
0.1
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
423587d9379fb54019a690a38df751b55e5dbf4e
508
py
Python
daemon/models/partial.py
mee-kell/jina
77f71e8a9db0a66dc20341d12ac240b7ece817d0
[ "Apache-2.0" ]
4
2021-06-29T04:14:31.000Z
2021-08-01T07:01:08.000Z
daemon/models/partial.py
mee-kell/jina
77f71e8a9db0a66dc20341d12ac240b7ece817d0
[ "Apache-2.0" ]
null
null
null
daemon/models/partial.py
mee-kell/jina
77f71e8a9db0a66dc20341d12ac240b7ece817d0
[ "Apache-2.0" ]
1
2021-07-05T12:42:40.000Z
2021-07-05T12:42:40.000Z
from typing import Dict from pydantic import Field from .base import StoreItem, StoreStatus class PartialStoreItem(StoreItem): """Pydantic model for PartialStoreItem""" arguments: Dict = Field(default_factory=dict) class PartialFlowItem(PartialStoreItem): """Pydantic model for PartialFlowItem""" ...
19.538462
49
0.726378
51
508
7.117647
0.529412
0.107438
0.132231
0
0
0
0
0
0
0
0
0.002415
0.185039
508
25
50
20.32
0.874396
0.212598
0
0
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0.272727
0.090909
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
4238bf61777827f56f6a07ae3f02cb313a487ac9
2,317
py
Python
preelec_online/migrations/0001_initial.py
KMITL-PreElec9/Website
835681f7ed831cda385bd8c9d29627c19476168d
[ "CC0-1.0" ]
null
null
null
preelec_online/migrations/0001_initial.py
KMITL-PreElec9/Website
835681f7ed831cda385bd8c9d29627c19476168d
[ "CC0-1.0" ]
12
2021-06-14T09:03:36.000Z
2021-07-04T14:02:54.000Z
preelec_online/migrations/0001_initial.py
KMITL-PreElec9/Website
835681f7ed831cda385bd8c9d29627c19476168d
[ "CC0-1.0" ]
null
null
null
# Generated by Django 3.2.3 on 2021-07-04 06:49 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
41.375
131
0.584808
234
2,317
5.57265
0.34188
0.084356
0.042945
0.067485
0.513804
0.418712
0.418712
0.418712
0.418712
0.418712
0
0.017943
0.278377
2,317
55
132
42.127273
0.761364
0.019422
0
0.416667
1
0
0.159471
0.011454
0
0
0
0
0
1
0
false
0
0.0625
0
0.145833
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
42395634e10ac5f4d8ffd24b54c9ab0ef4de8851
815
py
Python
ARC_face/devicetest.py
zz00zws/magic_learning
c048d244e9abd38079b5f195e7b2bbfebc616310
[ "MIT" ]
1
2019-12-02T08:09:54.000Z
2019-12-02T08:09:54.000Z
ARC_face/devicetest.py
zz00zws/magic_learning
c048d244e9abd38079b5f195e7b2bbfebc616310
[ "MIT" ]
null
null
null
ARC_face/devicetest.py
zz00zws/magic_learning
c048d244e9abd38079b5f195e7b2bbfebc616310
[ "MIT" ]
null
null
null
import torch,os from torchvision import transforms import PIL.Image as pimg import numpy as np device = torch.device("cpu" if torch.cuda.is_available() else "cpu") #device = torch.device("cuda" if torch.cuda.is_available() else "cpu") #tf = transforms.Compose( # [transforms.ToTensor(), # transforms.Nor...
23.970588
71
0.603681
120
815
4.083333
0.466667
0.044898
0.069388
0.053061
0.269388
0.118367
0.118367
0
0
0
0
0.029186
0.201227
815
33
72
24.69697
0.721966
0.195092
0
0
0
0
0.08867
0
0
0
0
0
0
0
null
null
0
0.235294
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
423b28a67fa59cc95b8265ac1e3217e0c28f3e1d
705
py
Python
src/routers/teams.py
Linktious/linktious-server
2533d3b82d498f29abca80290ed58fab0685daf1
[ "MIT" ]
null
null
null
src/routers/teams.py
Linktious/linktious-server
2533d3b82d498f29abca80290ed58fab0685daf1
[ "MIT" ]
1
2021-04-12T09:29:37.000Z
2021-04-12T09:29:37.000Z
src/routers/teams.py
Linktious/linktious-server
2533d3b82d498f29abca80290ed58fab0685daf1
[ "MIT" ]
null
null
null
from typing import List from fastapi import APIRouter, status from dependencies import models_manager_dependency from db.schema import ( Team as TeamSchema, TeamCreate as TeamCreateSchema ) from db.models import ModelsManager router = APIRouter( prefix="/teams", tags=["teams"], ) @router.get("/", r...
27.115385
99
0.787234
86
705
6.244186
0.406977
0.16946
0.128492
0.119181
0.271881
0.271881
0.271881
0.271881
0.271881
0.271881
0
0.004847
0.121986
705
25
100
28.2
0.862682
0
0
0
0
0
0.01844
0
0
0
0
0
0
1
0.111111
false
0
0.277778
0.111111
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
423d899748ab34616b5d0ac65c14d3eb35fde3bc
3,008
py
Python
deepspeed/runtime/zero/constants.py
bratao/DeepSpeed
c50d8955e942e5e26cf81835d59ec3f20ef8540d
[ "MIT" ]
1
2020-10-07T06:34:53.000Z
2020-10-07T06:34:53.000Z
deepspeed/runtime/zero/constants.py
bratao/DeepSpeed
c50d8955e942e5e26cf81835d59ec3f20ef8540d
[ "MIT" ]
1
2022-02-26T12:26:40.000Z
2022-02-26T12:26:40.000Z
deepspeed/runtime/zero/constants.py
bratao/DeepSpeed
c50d8955e942e5e26cf81835d59ec3f20ef8540d
[ "MIT" ]
1
2020-09-13T08:06:51.000Z
2020-09-13T08:06:51.000Z
""" Copyright (c) Microsoft Corporation Licensed under the MIT license. """ ######################################### # ZeRO optimization ######################################### # ZeRO optimization. By default, this optimization is not enabled. # Users have to configure the desired optimization (0 means dis...
37.6
103
0.79754
340
3,008
6.479412
0.182353
0.377667
0.093963
0.051748
0.494326
0.458012
0.394916
0.200636
0.200636
0.055379
0
0.023432
0.120346
3,008
79
104
38.075949
0.809146
0.083777
0
0
0
0
0.238298
0.061122
0
0
0
0
0
1
0
false
0
0
0
0
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
42434ec6c8856bc4b6e23f7790ed299f9c1aea60
747
py
Python
rainbowe.py
mangoess/FavoritableColors
fb59611e01b6465ed4ec219ae55449ff2521f083
[ "MIT" ]
1
2021-06-22T14:18:31.000Z
2021-06-22T14:18:31.000Z
rainbowe.py
mangoess/FavoritableColors
fb59611e01b6465ed4ec219ae55449ff2521f083
[ "MIT" ]
null
null
null
rainbowe.py
mangoess/FavoritableColors
fb59611e01b6465ed4ec219ae55449ff2521f083
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from __future__ import division from asciimatics.effects import Print, Clock from asciimatics.renderers import FigletText, Rainbow from asciimatics.scene import Scene from asciimatics.screen import Screen from asciimatics.exceptions import ResizeScreenError import sys def demo(scree...
26.678571
69
0.658635
88
747
5.522727
0.522727
0.154321
0.074074
0.098765
0.139918
0
0
0
0
0
0
0.012411
0.24498
747
27
70
27.666667
0.849291
0.028112
0
0
0
0
0.032951
0
0
0
0
0
0
1
0.047619
false
0.047619
0.333333
0
0.380952
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
42531ce7be49549c32d9a4ac6530cb04a66d9044
1,517
py
Python
IronManFly/log/log.py
leepand/IronManFly
ea29bf1415a51b23a0fbc95f2bae82013a0887a4
[ "MIT" ]
null
null
null
IronManFly/log/log.py
leepand/IronManFly
ea29bf1415a51b23a0fbc95f2bae82013a0887a4
[ "MIT" ]
null
null
null
IronManFly/log/log.py
leepand/IronManFly
ea29bf1415a51b23a0fbc95f2bae82013a0887a4
[ "MIT" ]
null
null
null
""" logger.info(Fore.GREEN, 'Sent', 'https://fuck.com/path1 1231 200') logger.info(Fore.GREEN, 'Received', 'http://127.0.0.1/path2 231 200') logger.info(Fore.YELLOW, 'Cache', 'Set<https://fuck.com/path1:asdjla:JSON>') logger.info(Fore.BLUE, 'Storage', 'Get<https://fuck.com/path1:asdjla:HTML>') logger.info(Fore.CYAN, 'P...
32.978261
98
0.636783
209
1,517
4.569378
0.354067
0.08377
0.106806
0.089005
0.368586
0.328796
0.219895
0.146597
0.146597
0.146597
0
0.028481
0.166777
1,517
46
99
32.978261
0.727057
0.328939
0
0.173913
0
0
0.094955
0
0
0
0
0
0
1
0.304348
false
0
0.130435
0
0.478261
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
425716e08e7b8f03c6235e20e44ccc0a699414db
7,607
py
Python
gbpservice/neutron/services/servicechain/plugins/msc/driver_manager.py
ashutosh-mishra/my-test
51c82af293f291b9182204392e7d21bda27786d1
[ "Apache-2.0" ]
null
null
null
gbpservice/neutron/services/servicechain/plugins/msc/driver_manager.py
ashutosh-mishra/my-test
51c82af293f291b9182204392e7d21bda27786d1
[ "Apache-2.0" ]
null
null
null
gbpservice/neutron/services/servicechain/plugins/msc/driver_manager.py
ashutosh-mishra/my-test
51c82af293f291b9182204392e7d21bda27786d1
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
41.118919
79
0.680689
833
7,607
5.885954
0.205282
0.030594
0.066286
0.093004
0.534571
0.399551
0.374465
0.374465
0.374465
0
0
0.001402
0.250033
7,607
184
80
41.342391
0.858019
0.182726
0
0.121739
0
0
0.198427
0.155825
0
0
0
0
0
1
0.243478
false
0
0.06087
0
0.313043
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
425c66aea1323a2c5ce5fa3db6ca11cc8c094c90
345
py
Python
snarky/__init__.py
eackermann/snarky
1aa393f27369c9149c6a37a8404c1da4db2d0a99
[ "MIT" ]
null
null
null
snarky/__init__.py
eackermann/snarky
1aa393f27369c9149c6a37a8404c1da4db2d0a99
[ "MIT" ]
null
null
null
snarky/__init__.py
eackermann/snarky
1aa393f27369c9149c6a37a8404c1da4db2d0a99
[ "MIT" ]
null
null
null
""" Snarky ``snarky`` is a useless package that makes it easy to add a jk (just kidding!) keyword argument to any function. Moreover, snarky defines several default behaviors for reacting whenever jk==True. """ __all__ = ['snarky', 'snarkyvoice', 'say_time'] from . decorators import * from . v...
23
78
0.695652
44
345
5.25
0.795455
0
0
0
0
0
0
0
0
0
0
0
0.211594
345
15
79
23
0.849265
0.588406
0
0
0
0
0.185185
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
425ec93fecb3161af99392cbb9a28c2570fd2d41
1,299
py
Python
zipkin_ot/util.py
willthames/zipkin-python-opentracing
d2c185a14316818c014b64b2c3b0f47c3e13e2d1
[ "Apache-2.0" ]
5
2016-12-14T11:33:12.000Z
2018-06-14T09:19:24.000Z
zipkin_ot/util.py
willthames/zipkin-python-opentracing
d2c185a14316818c014b64b2c3b0f47c3e13e2d1
[ "Apache-2.0" ]
null
null
null
zipkin_ot/util.py
willthames/zipkin-python-opentracing
d2c185a14316818c014b64b2c3b0f47c3e13e2d1
[ "Apache-2.0" ]
2
2018-06-19T00:34:33.000Z
2019-12-22T11:16:41.000Z
""" Utility functions """ import random import time import constants import codecs import os import struct guid_rng = random.Random() # Uses urandom seed def collector_url_from_hostport(host, port): """ Create an appropriate collector URL given the parameters. """ return ''.join(['http://', host, ...
25.98
71
0.666667
172
1,299
4.883721
0.55814
0.035714
0.085714
0.035714
0
0
0
0
0
0
0
0.066066
0.230947
1,299
49
72
26.510204
0.774775
0.342571
0
0
0
0
0.070352
0
0
0
0
0
0
1
0.16
false
0
0.24
0
0.72
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
42607c3274d084377ce8f3a66cdff7f48f0d12ed
2,710
py
Python
app/vendors/migrations/0037_auto_20180802_0853.py
snakrani/discovery
99690f186a194cabef6a5d1ad18fca715be1e187
[ "CC0-1.0" ]
null
null
null
app/vendors/migrations/0037_auto_20180802_0853.py
snakrani/discovery
99690f186a194cabef6a5d1ad18fca715be1e187
[ "CC0-1.0" ]
null
null
null
app/vendors/migrations/0037_auto_20180802_0853.py
snakrani/discovery
99690f186a194cabef6a5d1ad18fca715be1e187
[ "CC0-1.0" ]
null
null
null
# Generated by Django 2.0.2 on 2018-08-02 08:53 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('vendors', '0036_auto_20180711_0546'), ] operations = [ migrations.CreateModel( name='Contact', ...
34.74359
167
0.567897
234
2,710
6.448718
0.290598
0.031809
0.10338
0.119284
0.543406
0.543406
0.425447
0.343936
0.343936
0.343936
0
0.021265
0.305904
2,710
77
168
35.194805
0.780968
0.016605
0
0.661972
1
0
0.153211
0.016898
0
0
0
0
0
1
0
false
0
0.028169
0
0.070423
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
42664fc3f4deb6325a4549cd432654647693b3f6
4,665
py
Python
lib/config.py
martin-tauber/thresholdMigration
c1e9b9b1cd9ed73b6b7e08da8dff176f04c53e28
[ "Apache-2.0" ]
null
null
null
lib/config.py
martin-tauber/thresholdMigration
c1e9b9b1cd9ed73b6b7e08da8dff176f04c53e28
[ "Apache-2.0" ]
null
null
null
lib/config.py
martin-tauber/thresholdMigration
c1e9b9b1cd9ed73b6b7e08da8dff176f04c53e28
[ "Apache-2.0" ]
null
null
null
import json import os class CKey(): #repository repositoryDir = "repositoryDir" repositoryVersion = "repositoryVersion" cacheDir = "cacheDir" policyDir = "policyDir" tagsDir = "tagsDir" agentGroup = "agentGroup" beautify = "beautify" optimizeThreshold = "optimizeThreshold" minA...
29.525316
173
0.630439
475
4,665
6.103158
0.258947
0.024836
0.015178
0.020697
0.218006
0.197999
0.197999
0.188341
0.167644
0.092446
0
0.005177
0.254662
4,665
157
174
29.713376
0.828588
0.033655
0
0.158333
0
0.008333
0.119556
0.017111
0
0
0
0
0
1
0.066667
false
0
0.016667
0
0.675
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
4266919ef10f3ba224491fd2a454b12041b89ebc
1,918
py
Python
pyta/python_ta/checkers/constant_test_checker.py
AbChatt/Tweet-Analyser-Python
2953137b021a71d65fe6a83e6d4b87be36d4039b
[ "MIT" ]
null
null
null
pyta/python_ta/checkers/constant_test_checker.py
AbChatt/Tweet-Analyser-Python
2953137b021a71d65fe6a83e6d4b87be36d4039b
[ "MIT" ]
null
null
null
pyta/python_ta/checkers/constant_test_checker.py
AbChatt/Tweet-Analyser-Python
2953137b021a71d65fe6a83e6d4b87be36d4039b
[ "MIT" ]
null
null
null
""" checker for using constant value in a conditional statement """ import astroid from pylint.interfaces import IAstroidChecker from pylint.checkers import BaseChecker from pylint.checkers.utils import check_messages class UsingConstantTestChecker(BaseChecker): __implements__ = IAstroidChecker name = 'usi...
35.518519
98
0.662669
231
1,918
5.385281
0.424242
0.038585
0.081994
0.084405
0.090032
0.049839
0
0
0
0
0
0.003534
0.262252
1,918
53
99
36.188679
0.875618
0.165798
0
0
0
0
0.215762
0
0
0
0
0
0
1
0.096774
false
0
0.129032
0
0.548387
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