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
0b3f8ea9c8e3673b0dc08f05365375a1e2673515
1,265
py
Python
mozdns/mozbind/models.py
jlin/inventory
c098c98e570c3bf9fadfd811eb75e1213f6ea428
[ "BSD-3-Clause" ]
22
2015-01-16T01:36:32.000Z
2020-06-08T00:46:18.000Z
mozdns/mozbind/models.py
jlin/inventory
c098c98e570c3bf9fadfd811eb75e1213f6ea428
[ "BSD-3-Clause" ]
8
2015-12-28T18:56:19.000Z
2019-04-01T17:33:48.000Z
mozdns/mozbind/models.py
jlin/inventory
c098c98e570c3bf9fadfd811eb75e1213f6ea428
[ "BSD-3-Clause" ]
13
2015-01-13T20:56:22.000Z
2022-02-23T06:01:17.000Z
from django.db import models class DNSBuildRun(models.Model): """ Everytime the DNS build scripts are ran, one of these objects is created to track which zones we have built and which zones we haven't built (since nothing has changed in them). :class:`BuildManifest` objects relate back to a :class...
33.289474
79
0.67747
171
1,265
4.888889
0.461988
0.118421
0.07177
0.107656
0.303828
0.303828
0.185407
0.185407
0.185407
0.185407
0
0.003036
0.218972
1,265
37
80
34.189189
0.843117
0.325692
0
0.2
0
0
0.00122
0
0
0
0
0
0
1
0.2
false
0
0.05
0.05
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
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
0b43dcb1e85f3d1e4f84a5895acbb20de2bbdcba
759
py
Python
brparser/beatmapparser/utils.py
Magnus-Cosmos/simpleparser
f6d452163cd4137896133af7b4c02f804078e7d6
[ "MIT" ]
null
null
null
brparser/beatmapparser/utils.py
Magnus-Cosmos/simpleparser
f6d452163cd4137896133af7b4c02f804078e7d6
[ "MIT" ]
null
null
null
brparser/beatmapparser/utils.py
Magnus-Cosmos/simpleparser
f6d452163cd4137896133af7b4c02f804078e7d6
[ "MIT" ]
null
null
null
from ..replayparser import Mod def clamp(value, min_, max_): assert(max_ >= min_) if value > max_: return max_ if value < min_: return min_ return value def apply_mods_to_diff(diff, hr_factor, mods): if Mod.EZ in mods: diff = max(0, diff / 2) if Mod.HR in mods: d...
23.71875
50
0.570487
122
759
3.352459
0.278689
0.05868
0.080685
0.102689
0.171149
0
0
0
0
0
0
0.032819
0.317523
759
31
51
24.483871
0.756757
0
0
0
0
0
0
0
0
0
0
0
0.037037
1
0.148148
false
0
0.037037
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
0b43f8d4ce689ec83384b33bd5d994ab9db45d88
3,129
py
Python
debug.py
samunwin/BlackBoard-Course-Downloader
9054d3905b9808f582efa3a8644c1767736a8fcf
[ "MIT" ]
1
2020-03-24T09:06:16.000Z
2020-03-24T09:06:16.000Z
debug.py
samunwin/BlackBoard-Course-Downloader
9054d3905b9808f582efa3a8644c1767736a8fcf
[ "MIT" ]
null
null
null
debug.py
samunwin/BlackBoard-Course-Downloader
9054d3905b9808f582efa3a8644c1767736a8fcf
[ "MIT" ]
null
null
null
from blackboard import BlackBoardContent, BlackBoardClient, BlackBoardAttachment, BlackBoardEndPoints, \ BlackBoardCourse, BlackBoardInstitute import os import re import requests import datetime import xmltodict import argparse import sys import json import getpass import main def test(): args = main.handle_ar...
35.965517
120
0.619367
326
3,129
5.708589
0.273006
0.042988
0.027942
0.030091
0.184847
0.120365
0.077378
0.077378
0.077378
0.077378
0
0.002209
0.276766
3,129
86
121
36.383721
0.82015
0.01566
0
0
0
0
0.109558
0.008778
0
0
0
0
0
1
0.04
false
0.053333
0.146667
0
0.213333
0
0
0
0
null
0
0
0
0
0
0
0
0
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
0b44c613729aa6cd194abdea6265dbd0c7f1429b
1,012
py
Python
api/models/Organisation.py
cds-snc/scan-websites
89986a65aa5b77aa5619ec01eb173952641db52c
[ "MIT" ]
5
2021-07-30T17:19:20.000Z
2022-03-27T06:24:53.000Z
api/models/Organisation.py
cds-snc/scan-websites
89986a65aa5b77aa5619ec01eb173952641db52c
[ "MIT" ]
175
2021-07-25T20:39:00.000Z
2022-03-29T17:17:18.000Z
api/models/Organisation.py
cds-snc/scan-websites
89986a65aa5b77aa5619ec01eb173952641db52c
[ "MIT" ]
null
null
null
import datetime import uuid from sqlalchemy import DateTime, Column, String from sqlalchemy.dialects.postgresql import UUID from sqlalchemy.orm import relationship, validates from models import Base class Organisation(Base): __tablename__ = "organisations" id = Column(UUID(as_uuid=True), primary_key=True, ...
25.948718
73
0.668972
110
1,012
6.063636
0.454545
0.062969
0.071964
0.071964
0.134933
0.134933
0.134933
0.134933
0
0
0
0.00128
0.228261
1,012
38
74
26.631579
0.852753
0
0
0.193548
0
0
0.062253
0
0
0
0
0
0.032258
1
0.032258
false
0
0.193548
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
0b45c87d0b209253bc3b2cf3a4d7f33899c90c7e
2,424
py
Python
src/client/__main__.py
P-E-P/GroupChat
e99ad6db4c7332320a24640535da5f77b0cb2109
[ "MIT" ]
2
2019-04-04T18:31:33.000Z
2021-05-23T16:56:19.000Z
src/client/__main__.py
P-E-P/GroupChat
e99ad6db4c7332320a24640535da5f77b0cb2109
[ "MIT" ]
null
null
null
src/client/__main__.py
P-E-P/GroupChat
e99ad6db4c7332320a24640535da5f77b0cb2109
[ "MIT" ]
null
null
null
#!/usr/bin/env python __author__ = "Maxime-Andrea Gouet and Pierre-Emmanuel Patry" __copyright__ = "Copyright 2019, Maxime-Andrea Gouet & Pierre-Emmanuel Patry" __credits__ = ["Maxime-Andrea Gouet", "Pierre-Emmanuel Patry"] __license__ = "MIT" __version__ = "1.0" __maintainer__ = "Pierre-Emmanuel Patry" from threadin...
31.480519
142
0.646865
292
2,424
5.236301
0.431507
0.029431
0.055592
0.030085
0.04709
0.04709
0
0
0
0
0
0.012061
0.213284
2,424
76
143
31.894737
0.789722
0.056931
0
0.036364
0
0
0.251644
0
0
0
0
0.013158
0
1
0.054545
false
0
0.127273
0
0.181818
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0b477563d2fc64065917bea76ad575509fac8f8a
509
py
Python
gql/resolvers/mutations/user.py
apoveda25/graphql-python-server
eb7b911aa1116327120b857beb17da3e30523e74
[ "Apache-2.0" ]
4
2020-06-20T11:54:04.000Z
2021-09-07T11:41:32.000Z
gql/resolvers/mutations/user.py
apoveda25/graphql-python-server
eb7b911aa1116327120b857beb17da3e30523e74
[ "Apache-2.0" ]
null
null
null
gql/resolvers/mutations/user.py
apoveda25/graphql-python-server
eb7b911aa1116327120b857beb17da3e30523e74
[ "Apache-2.0" ]
null
null
null
from ariadne import MutationType from datetime import datetime as dt from models.user import User from schemas.helpers.normalize import change_keys from schemas.user import UserCreate mutations_resolvers = MutationType() @mutations_resolvers.field("userCreate") async def resolve_user_create(parent, info, user) -> d...
28.277778
69
0.78389
67
509
5.791045
0.522388
0.051546
0
0
0
0
0
0
0
0
0
0
0.131631
509
17
70
29.941176
0.877828
0
0
0
0
0
0.027505
0
0
0
0
0
0
1
0
false
0
0.416667
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
0b47dc970a9f6e98649d3db7325035460624a81e
1,315
py
Python
src/vivarium_examples/boids/observer.py
zwrankin/vivarium_examples
55487035ef7316cc03d3b4e1a3a5e8c6504dfe9d
[ "MIT" ]
null
null
null
src/vivarium_examples/boids/observer.py
zwrankin/vivarium_examples
55487035ef7316cc03d3b4e1a3a5e8c6504dfe9d
[ "MIT" ]
null
null
null
src/vivarium_examples/boids/observer.py
zwrankin/vivarium_examples
55487035ef7316cc03d3b4e1a3a5e8c6504dfe9d
[ "MIT" ]
null
null
null
class InfectionObserver: """ As the output.hdf table for a distributed run has only one row per run, this data needs to be saved in wide format For each step, it will have one column for infection prevalence, and one column for infection incidence """ def __init__(self): self.step = 0 ...
39.848485
108
0.659316
174
1,315
4.867816
0.41954
0.056671
0.031877
0.049587
0.063754
0.063754
0
0
0
0
0
0.007021
0.241825
1,315
32
109
41.09375
0.842528
0.276046
0
0
0
0
0.131892
0.069189
0
0
0
0.03125
0
1
0.2
false
0
0
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0b47f62fcf0a0e99a724acfa98c4195d2ed20b1a
401
py
Python
osc_bge/school/migrations/0006_auto_20181130_1458.py
jisuhan3201/osc-bge
125c441d23d7f1fdb2d9b8f42f859082e757e25a
[ "MIT" ]
null
null
null
osc_bge/school/migrations/0006_auto_20181130_1458.py
jisuhan3201/osc-bge
125c441d23d7f1fdb2d9b8f42f859082e757e25a
[ "MIT" ]
5
2020-06-05T19:49:47.000Z
2021-09-08T00:50:55.000Z
osc_bge/school/migrations/0006_auto_20181130_1458.py
jisuhan3201/osc-bge
125c441d23d7f1fdb2d9b8f42f859082e757e25a
[ "MIT" ]
null
null
null
# Generated by Django 2.0.9 on 2018-11-30 14:58 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('school', '0005_auto_20181130_1342'), ] operations = [ migrations.AlterField( model_name='school', name='partnership'...
21.105263
61
0.605985
43
401
5.55814
0.813953
0
0
0
0
0
0
0
0
0
0
0.107266
0.279302
401
18
62
22.277778
0.719723
0.112219
0
0
1
0
0.129944
0.064972
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0b4b07fcd7f8b09f7ce55d5584a2403c01dce447
2,043
py
Python
tests/settings.py
inonit/django-mongoengine-connection
358174679d298995b8a01f55c7b91b5c06d5aab3
[ "MIT" ]
1
2018-02-17T18:38:16.000Z
2018-02-17T18:38:16.000Z
tests/settings.py
inonit/django-mongoengine-connection
358174679d298995b8a01f55c7b91b5c06d5aab3
[ "MIT" ]
3
2019-10-03T20:16:49.000Z
2021-06-10T18:53:29.000Z
tests/settings.py
inonit/django-mongoengine-connection
358174679d298995b8a01f55c7b91b5c06d5aab3
[ "MIT" ]
null
null
null
import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = 'supersecret' DEBUG = True ALLOWED_HOSTS = [] INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'd...
24.914634
96
0.642682
196
2,043
6.545918
0.520408
0.12159
0.053001
0.023383
0.024942
0
0
0
0
0
0
0.004428
0.226138
2,043
81
97
25.222222
0.807084
0.032305
0
0.030303
0
0
0.485816
0.382472
0
0
0
0
0
1
0
false
0.060606
0.045455
0
0.045455
0
0
0
0
null
0
0
0
0
0
0
0
0
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
0b4bcad45d58f4fc670fb0b16d0b9af08c85085d
525
py
Python
backend/streams_explorer/api/routes/api.py
twiechert/streams-explorer
7b5840f1efa0f7e352aef05ef8648188ee188f7a
[ "MIT" ]
24
2021-02-17T16:29:07.000Z
2022-01-03T05:13:31.000Z
backend/streams_explorer/api/routes/api.py
twiechert/streams-explorer
7b5840f1efa0f7e352aef05ef8648188ee188f7a
[ "MIT" ]
116
2021-02-03T08:44:27.000Z
2022-03-22T09:50:03.000Z
backend/streams_explorer/api/routes/api.py
twiechert/streams-explorer
7b5840f1efa0f7e352aef05ef8648188ee188f7a
[ "MIT" ]
2
2021-04-06T15:34:37.000Z
2021-05-14T16:52:44.000Z
from fastapi import APIRouter from streams_explorer.api.routes import ( graph, kubernetes_health, metrics, node, pipelines, update, ) router = APIRouter() router.include_router(update.router, prefix="/update") router.include_router(graph.router, prefix="/graph") router.include_router(pipeline...
26.25
65
0.76381
62
525
6.322581
0.290323
0.19898
0.290816
0
0
0
0
0
0
0
0
0
0.108571
525
19
66
27.631579
0.837607
0
0
0
0
0
0.081905
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
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
0b528faf9ea6109c535c19e20cbe76fae29e9553
988
py
Python
django/tests/modeltests/m2o_recursive/models.py
jonaustin/advisoryscan
ba452c155f0d478450e0c91de5ea00f404e98616
[ "MIT" ]
2
2016-05-08T08:57:01.000Z
2020-02-08T07:39:48.000Z
lib/django/tests/modeltests/m2o_recursive/models.py
Arachnid/google_appengine
2e950619f5027f414131fafc3cc253af4875a0fe
[ "Apache-2.0" ]
null
null
null
lib/django/tests/modeltests/m2o_recursive/models.py
Arachnid/google_appengine
2e950619f5027f414131fafc3cc253af4875a0fe
[ "Apache-2.0" ]
1
2018-12-06T12:50:52.000Z
2018-12-06T12:50:52.000Z
""" 11. Relating an object to itself, many-to-one To define a many-to-one relationship between a model and itself, use ``ForeignKey('self')``. In this example, a ``Category`` is related to itself. That is, each ``Category`` has a parent ``Category``. Set ``related_name`` to designate what the reverse relationship is...
24.097561
75
0.685223
142
988
4.647887
0.457746
0.048485
0.027273
0.054545
0
0
0
0
0
0
0
0.004745
0.146761
988
40
76
24.7
0.778173
0.327935
0
0
0
0
0.634146
0.0625
0
0
0
0
0
1
0.043478
false
0
0.043478
0.043478
0.26087
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0b55f02a4493237404830a56c1045e379d0348a0
518
py
Python
gootool/__init__.py
leVirve/GooTool
dd6188f26cc08f44de7acdbe834c1c75d6507817
[ "MIT" ]
3
2016-06-30T12:42:07.000Z
2018-01-21T16:57:07.000Z
gootool/__init__.py
leVirve/GooTool
dd6188f26cc08f44de7acdbe834c1c75d6507817
[ "MIT" ]
null
null
null
gootool/__init__.py
leVirve/GooTool
dd6188f26cc08f44de7acdbe834c1c75d6507817
[ "MIT" ]
null
null
null
import logging from gootool.drive import * logger = logging.getLogger('gootool') logger.setLevel(logging.WARNING) fh = logging.FileHandler('gootool.log', encoding='utf8') ch = logging.StreamHandler() fh.setLevel(logging.DEBUG) ch.setLevel(logging.WARNING) formatter = logging.Formatter('%(asctime)s - %(name)s - %(l...
25.9
85
0.762548
64
518
6.140625
0.40625
0.114504
0.111959
0.16285
0.167939
0
0
0
0
0
0
0.002101
0.081081
518
19
86
27.263158
0.823529
0
0
0
0
0
0.19112
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
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
0b5e6997bd9d5d8b19551e4e68427836e03ee8ab
3,951
py
Python
tests/test_init.py
boeddeker/graphviz
acf79bca4518781cad02c102e89ec4e9ce757088
[ "MIT" ]
null
null
null
tests/test_init.py
boeddeker/graphviz
acf79bca4518781cad02c102e89ec4e9ce757088
[ "MIT" ]
null
null
null
tests/test_init.py
boeddeker/graphviz
acf79bca4518781cad02c102e89ec4e9ce757088
[ "MIT" ]
null
null
null
import pytest import graphviz DEFAULT_ENGINE = 'dot' DEFAULT_FORMAT = 'pdf' DEFAULT_JUPYTER_FORMAT = 'svg' DEFAULT_JUPYTER_MIMETYPE = 'image/svg+xml' def test_set_default_engine_invalid(): with pytest.raises(ValueError, match=r'unknown engine'): graphviz.set_default_engine('nonengine') def test_set...
30.392308
92
0.727158
452
3,951
6.064159
0.112832
0.087559
0.06421
0.06348
0.64429
0.476833
0.303174
0.270339
0.057643
0
0
0.011868
0.189572
3,951
129
93
30.627907
0.84416
0.012655
0
0.373494
0
0
0.062869
0.036182
0
0
0
0
0.481928
1
0.060241
false
0
0.060241
0
0.120482
0
0
0
0
null
0
0
0
0
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
0b60545d7ce5303b9aba053e6eba6506be5a540e
2,847
py
Python
formats/uniqstr.py
google/pymql
22e39ed3ae7630f80924ffc6fdd90bfa1f795f49
[ "Apache-2.0" ]
10
2020-08-05T19:13:21.000Z
2022-03-15T19:11:21.000Z
formats/uniqstr.py
teeler/pymql
22e39ed3ae7630f80924ffc6fdd90bfa1f795f49
[ "Apache-2.0" ]
1
2020-08-05T03:08:32.000Z
2020-08-05T03:08:32.000Z
formats/uniqstr.py
teeler/pymql
22e39ed3ae7630f80924ffc6fdd90bfa1f795f49
[ "Apache-2.0" ]
6
2020-08-05T03:07:39.000Z
2021-11-16T11:23:21.000Z
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
29.968421
74
0.634001
394
2,847
4.507614
0.464467
0.033784
0.01464
0.018018
0.019144
0
0
0
0
0
0
0.004004
0.298209
2,847
94
75
30.287234
0.884885
0.352301
0
0
0
0
0.063559
0
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0b6873501a7fa046403120bfd76c4e34d90f39db
1,334
py
Python
itests/lorem.py
skivis/BlackSheep
486f04ba2045f31dd3e188f52c45a275eb150967
[ "MIT" ]
482
2018-12-20T09:30:23.000Z
2021-02-08T18:34:16.000Z
itests/lorem.py
skivis/BlackSheep
486f04ba2045f31dd3e188f52c45a275eb150967
[ "MIT" ]
125
2021-02-15T09:29:51.000Z
2022-03-25T19:48:23.000Z
itests/lorem.py
skivis/BlackSheep
486f04ba2045f31dd3e188f52c45a275eb150967
[ "MIT" ]
27
2021-03-20T16:17:58.000Z
2022-03-02T19:37:42.000Z
LOREM_IPSUM = """ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum ...
88.933333
117
0.826087
200
1,334
5.505
0.68
0.018165
0.021798
0.04178
0
0
0
0
0
0
0
0
0.151424
1,334
14
118
95.285714
0.972615
0
0
0
0
0.142857
0.984258
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0b6f945416110b95884090f792be85d6b6c77b00
267
py
Python
backend/apps/mails/migrations/0001_initial.py
KuanWeiLee/froggy-service
0db6cd90c1641a98c1e06638f8e9591c2daf39e0
[ "MIT" ]
174
2019-02-19T11:35:45.000Z
2021-12-20T03:20:28.000Z
backend/apps/mails/migrations/0001_initial.py
KuanWeiLee/froggy-service
0db6cd90c1641a98c1e06638f8e9591c2daf39e0
[ "MIT" ]
56
2019-01-02T06:49:13.000Z
2021-03-23T09:31:18.000Z
backend/apps/mails/migrations/0001_initial.py
KuanWeiLee/froggy-service
0db6cd90c1641a98c1e06638f8e9591c2daf39e0
[ "MIT" ]
36
2018-12-28T02:10:06.000Z
2021-09-02T03:06:35.000Z
# Generated by Django 2.1.5 on 2019-01-09 14:01 from django.db import migrations from django.contrib.postgres.operations import HStoreExtension class Migration(migrations.Migration): dependencies = [ ] operations = [ HStoreExtension(), ]
17.8
62
0.70412
31
267
6.064516
0.709677
0.106383
0
0
0
0
0
0
0
0
0
0.07109
0.209738
267
14
63
19.071429
0.819905
0.168539
0
0
1
0
0
0
0
0
0
0
0
1
0
false
0
0.25
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0b73661494c0969ed66178524893242383c46a4b
1,058
py
Python
CONTENT/Resources/guides/__UNSORTED/249_group_shifted_strings/group_shifted_strings.py
impastasyndrome/DS-ALGO-OFFICIAL
c85ec9cf0af0009f038b7a571a7ac1fb466b7f3a
[ "Apache-2.0" ]
13
2021-03-11T00:25:22.000Z
2022-03-19T00:19:23.000Z
CONTENT/Resources/guides/__UNSORTED/249_group_shifted_strings/group_shifted_strings.py
impastasyndrome/DS-ALGO-OFFICIAL
c85ec9cf0af0009f038b7a571a7ac1fb466b7f3a
[ "Apache-2.0" ]
162
2021-03-09T01:52:11.000Z
2022-03-12T01:09:07.000Z
CONTENT/Resources/guides/__UNSORTED/249_group_shifted_strings/group_shifted_strings.py
impastasyndrome/DS-ALGO-OFFICIAL
c85ec9cf0af0009f038b7a571a7ac1fb466b7f3a
[ "Apache-2.0" ]
12
2021-04-26T19:43:01.000Z
2022-01-31T08:36:29.000Z
import string class Solution(object): def groupStrings(self, strings): """ :type strings: List[str] :rtype: List[List[str]] """ groups = [] alphabet = string.lowercase for s in strings: if not groups: groups.append([s]) ...
28.594595
72
0.383743
105
1,058
3.866667
0.371429
0.068966
0.064039
0.078818
0.128079
0.128079
0
0
0
0
0
0.02907
0.512287
1,058
36
73
29.388889
0.757752
0.045369
0
0.433333
0
0
0
0
0
0
0
0
0
1
0.033333
false
0
0.033333
0
0.133333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0b7610708e80cba27ba1c18cda9e71113a5201bb
1,746
py
Python
exapi/models/binance/exchange_info/filters/exchange.py
astsu-dev/exapi
1ef39ccdd77e9ddb60ec6eaa16a2cc26e1ac3e12
[ "MIT" ]
null
null
null
exapi/models/binance/exchange_info/filters/exchange.py
astsu-dev/exapi
1ef39ccdd77e9ddb60ec6eaa16a2cc26e1ac3e12
[ "MIT" ]
null
null
null
exapi/models/binance/exchange_info/filters/exchange.py
astsu-dev/exapi
1ef39ccdd77e9ddb60ec6eaa16a2cc26e1ac3e12
[ "MIT" ]
null
null
null
"""Has binance exchange filters.""" from dataclasses import dataclass from typing import List, Literal, TypedDict, Union class BinanceMaxNumOrdersExchangeFilterJson(TypedDict): filterType: Literal["EXCHANGE_MAX_NUM_ORDERS"] maxNumOrders: int @dataclass(frozen=True) class BinanceMaxNumOrdersExchangeFilterMo...
31.178571
79
0.784651
182
1,746
7.285714
0.340659
0.067873
0.081448
0.060332
0.407994
0.297134
0.291101
0.235294
0.235294
0.235294
0
0
0.154066
1,746
55
80
31.745455
0.897766
0.358534
0
0.083333
0
0
0.089524
0.089524
0
0
0
0
0
1
0
false
0
0.083333
0
0.583333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0b76d8b0b2b469f5629160a4a53927ccfe039676
717
py
Python
WebMirror/management/rss_parser_funcs/feed_parse_extractBinhjamin.py
fake-name/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
193
2016-08-02T22:04:35.000Z
2022-03-09T20:45:41.000Z
WebMirror/management/rss_parser_funcs/feed_parse_extractBinhjamin.py
fake-name/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
533
2016-08-23T20:48:23.000Z
2022-03-28T15:55:13.000Z
WebMirror/management/rss_parser_funcs/feed_parse_extractBinhjamin.py
rrosajp/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
19
2015-08-13T18:01:08.000Z
2021-07-12T17:13:09.000Z
def extractBinhjamin(item): """ # Binhjamin """ vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title']) if not (vol or chp or frag or postfix): return False if ('SRKJ' in item['title'] or 'SRKJ-Sayonara Ryuu' in item['tags']) and (chp or vol): return buildReleaseMessageWithType(item, 'Sayon...
44.8125
118
0.726639
98
717
5.316327
0.346939
0.086372
0.076775
0.080614
0.433781
0.353167
0.115163
0
0
0
0
0.009756
0.142259
717
15
119
47.8
0.837398
0.015342
0
0.181818
0
0
0.223022
0
0
0
0
0
0
1
0.090909
false
0
0
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
0b777d9adb1e18c45836d46d4f972d6b6c001676
1,328
py
Python
testing/scripts/gyp_flag_compare.py
jason-simmons/flutter_buildroot
1c9494e60378bd119d910d530344077fc091b3a5
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
testing/scripts/gyp_flag_compare.py
harrymarkovskiy/WebARonARCore
2441c86a5fd975f09a6c30cddb57dfb7fc239699
[ "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
testing/scripts/gyp_flag_compare.py
harrymarkovskiy/WebARonARCore
2441c86a5fd975f09a6c30cddb57dfb7fc239699
[ "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
#!/usr/bin/env python # Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Wrap //tools/gn/bin/gyp_flag_compare.py for the bots. This script wraps the GN test script in the facade needed for the 'ScriptTest...
26.56
76
0.65738
195
1,328
4.338462
0.528205
0.017731
0.049645
0.030733
0.137116
0.137116
0.137116
0.07565
0
0
0
0.004951
0.239458
1,328
49
77
27.102041
0.832673
0.486446
0
0
0
0
0.122571
0
0
0
0
0.020408
0
1
0.090909
false
0
0.181818
0
0.318182
0
0
0
0
null
0
0
0
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
0b795986ad70f80f9eef7ebe6e04ee9821a88899
2,429
py
Python
test/utils.py
coecms/nccompress
5a88172d16ddd7af4e5e840522cf49d6113b6e92
[ "Apache-2.0" ]
9
2016-05-19T18:30:32.000Z
2022-03-18T04:13:05.000Z
test/utils.py
coecms/nccompress
5a88172d16ddd7af4e5e840522cf49d6113b6e92
[ "Apache-2.0" ]
13
2018-08-28T02:31:45.000Z
2021-02-09T02:27:49.000Z
test/utils.py
coecms/nccompress
5a88172d16ddd7af4e5e840522cf49d6113b6e92
[ "Apache-2.0" ]
4
2019-01-08T01:32:44.000Z
2021-04-21T09:23:24.000Z
from netCDF4 import Dataset import numpy as np from glob import glob import os def which(program): import os def is_exe(fpath): return os.path.isfile(fpath) and os.access(fpath, os.X_OK) fpath, fname = os.path.split(program) if fpath: if is_exe(program): return program ...
32.824324
75
0.639769
355
2,429
4.287324
0.295775
0.03548
0.028909
0.026281
0.642576
0.642576
0.642576
0.642576
0.642576
0.642576
0
0.018378
0.23837
2,429
73
76
33.273973
0.804324
0.29189
0
0.434783
0
0
0.085445
0.012964
0
0
0
0
0
1
0.086957
false
0
0.108696
0.021739
0.282609
0.021739
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0b7addf60c69c5d531b3a42608fca8b898ff6335
460
py
Python
aztk_aci/models/service_principal.py
jafreck/aztk-aci
6e80cb4e67b15028fc95548b23378fbc7d688cfd
[ "MIT" ]
null
null
null
aztk_aci/models/service_principal.py
jafreck/aztk-aci
6e80cb4e67b15028fc95548b23378fbc7d688cfd
[ "MIT" ]
null
null
null
aztk_aci/models/service_principal.py
jafreck/aztk-aci
6e80cb4e67b15028fc95548b23378fbc7d688cfd
[ "MIT" ]
null
null
null
class ServicePrincipal: def __init__(self, client_id=None, tenant_id=None, credential=None): self.client_id = client_id self.tenant_id = tenant_id self.credential = credential def from_dict(self, service_principal_dict): self.client_id = service_principal_dict['client_id'] ...
35.384615
72
0.708696
57
460
5.315789
0.263158
0.132013
0.264026
0.118812
0.132013
0
0
0
0
0
0
0
0.208696
460
12
73
38.333333
0.832418
0
0
0
0
0
0.06087
0
0
0
0
0
0
1
0.2
false
0
0
0
0.4
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
0b7eaef68c278d18a7a32cfac44f595525c0d0b1
1,341
py
Python
georiviere/proceeding/tests/test_filters.py
Georiviere/Georiviere-admin
f59e1b979a758958a64899916b8b72d580128ee9
[ "BSD-2-Clause" ]
7
2021-11-05T14:52:25.000Z
2022-03-24T21:18:02.000Z
georiviere/proceeding/tests/test_filters.py
Georiviere/Georiviere-admin
f59e1b979a758958a64899916b8b72d580128ee9
[ "BSD-2-Clause" ]
57
2021-11-02T10:27:34.000Z
2022-03-31T14:08:32.000Z
georiviere/proceeding/tests/test_filters.py
Georiviere/Georiviere-admin
f59e1b979a758958a64899916b8b72d580128ee9
[ "BSD-2-Clause" ]
1
2021-12-05T14:55:42.000Z
2021-12-05T14:55:42.000Z
from django.test import TestCase from geotrek.authent.tests.factories import StructureFactory from georiviere.proceeding.filters import ProceedingFilterSet from .factories import ProceedingFactory, EventTypeFactory, EventFactory class ProceedingFilterTestCase(TestCase): """Test filter on parameter tracked""" ...
34.384615
75
0.673378
122
1,341
7.303279
0.344262
0.116723
0.143659
0.161616
0.369248
0.280584
0
0
0
0
0
0.012821
0.243848
1,341
38
76
35.289474
0.865878
0.048471
0
0.193548
0
0
0.007905
0
0
0
0
0
0.032258
1
0.064516
false
0
0.129032
0
0.225806
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
0b8ad8e20699b87fcbcd6a69482c06af99e7afd6
23,976
py
Python
tests/const_drive.py
markjgardner/icloudpy
044debe47415f341f79014a7eaf6c46221710f27
[ "BSD-3-Clause" ]
11
2022-01-22T20:29:02.000Z
2022-03-20T02:34:53.000Z
tests/const_drive.py
markjgardner/icloudpy
044debe47415f341f79014a7eaf6c46221710f27
[ "BSD-3-Clause" ]
2
2022-01-27T16:09:59.000Z
2022-02-14T21:23:44.000Z
tests/const_drive.py
markjgardner/icloudpy
044debe47415f341f79014a7eaf6c46221710f27
[ "BSD-3-Clause" ]
1
2022-02-11T21:30:41.000Z
2022-02-11T21:30:41.000Z
# -*- coding: utf-8 -*- """Drive test constants.""" # Data DRIVE_ROOT_WORKING = [ { "drivewsid": "FOLDER::com.apple.CloudDocs::root", "docwsid": "root", "zone": "com.apple.CloudDocs", "name": "", "etag": "31", "type": "FOLDER", "assetQuota": 62418076, ...
35.310751
227
0.333625
1,547
23,976
5.140271
0.289593
0.075453
0.061997
0.046278
0.544391
0.470825
0.424925
0.387701
0.382168
0.375629
0
0.076882
0.53345
23,976
678
228
35.362832
0.634007
0.007049
0
0.490991
0
0.024024
0.355045
0.129554
0
0
0
0
0
1
0
false
0.001502
0.001502
0
0.001502
0.001502
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0b94c86b9c0d63029f7159a8ca9783da3be7a1bc
1,329
py
Python
build/lib/annotation_utils/coco/util/image_iter.py
pedrombmachado/annotation_utils
61c46db33a8114991b112fed65e0414f7b5087cd
[ "MIT" ]
13
2020-01-28T04:45:22.000Z
2022-03-10T03:35:49.000Z
build/lib/annotation_utils/coco/util/image_iter.py
pedrombmachado/annotation_utils
61c46db33a8114991b112fed65e0414f7b5087cd
[ "MIT" ]
4
2020-02-14T08:56:03.000Z
2021-05-21T10:38:30.000Z
build/lib/annotation_utils/coco/util/image_iter.py
pedrombmachado/annotation_utils
61c46db33a8114991b112fed65e0414f7b5087cd
[ "MIT" ]
7
2020-04-10T07:56:25.000Z
2021-12-17T11:19:23.000Z
from common_utils.iter_utils import ImageIterator from ..structs.handlers import COCO_Image_Handler class CocoImageIterator(ImageIterator): def __init__( self, coco_images: COCO_Image_Handler, check_paths: bool=True, show_pbar: bool=False, leave_pbar: bool=False ): if not isinstance(coc...
34.973684
115
0.682468
176
1,329
4.795455
0.323864
0.118483
0.116114
0.080569
0.258294
0.196682
0.196682
0.196682
0.196682
0.194313
0
0.001955
0.230248
1,329
38
116
34.973684
0.823069
0
0
0.125
0
0
0.094737
0.021805
0
0
0
0
0
1
0.1875
false
0
0.0625
0.125
0.40625
0
0
0
0
null
0
0
0
0
0
0
0
0
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
0b950f5e4399d1aaba20ef3481fe5fcd9296651c
2,228
py
Python
rope/ropetest/contrib/fixmodnamestest.py
caseboy01/myemacs
3d337730d402995d0168044ed1d080018364dc1e
[ "Apache-2.0" ]
1
2022-02-09T15:48:13.000Z
2022-02-09T15:48:13.000Z
rope/ropetest/contrib/fixmodnamestest.py
caseboy01/myemacs
3d337730d402995d0168044ed1d080018364dc1e
[ "Apache-2.0" ]
null
null
null
rope/ropetest/contrib/fixmodnamestest.py
caseboy01/myemacs
3d337730d402995d0168044ed1d080018364dc1e
[ "Apache-2.0" ]
1
2022-02-09T15:49:18.000Z
2022-02-09T15:49:18.000Z
try: import unittest2 as unittest except ImportError: import unittest from ropetest import testutils from rope.contrib.fixmodnames import FixModuleNames from rope.contrib.generate import create_module, create_package # HACK: for making this test work on case-insensitive file-systems, it # uses a name.replac...
36.52459
78
0.693447
272
2,228
5.448529
0.316176
0.163293
0.094467
0.089069
0.387989
0.352901
0.352901
0.278677
0.253036
0.217274
0
0.009269
0.17684
2,228
60
79
37.133333
0.7988
0.049372
0
0.222222
1
0
0.069063
0
0
0
0
0
0.2
1
0.155556
false
0
0.222222
0.022222
0.422222
0
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
0b9918af5d3d47e87cb05eb4057d530b71eb815c
9,424
py
Python
2/Formulario con Base de Datos- Jorge Coello/P1_4_JorgeCoello.py
carmedevis/PYTHON---GLADE
03fcbe911517aa7ec142386ae888bbdc6878cc77
[ "MIT" ]
null
null
null
2/Formulario con Base de Datos- Jorge Coello/P1_4_JorgeCoello.py
carmedevis/PYTHON---GLADE
03fcbe911517aa7ec142386ae888bbdc6878cc77
[ "MIT" ]
null
null
null
2/Formulario con Base de Datos- Jorge Coello/P1_4_JorgeCoello.py
carmedevis/PYTHON---GLADE
03fcbe911517aa7ec142386ae888bbdc6878cc77
[ "MIT" ]
null
null
null
#!usr/bin/env python # -*- coding: utf-8 -*- from gi.repository import Gtk import sqlite3 as lite def limpiar_registros(widgets): campoUsuario.set_text("") campoPassword.set_text("") campoCorreo.set_text("") campoNombre.set_text("") campoApellido.set_text("") campoDireccion.set_text("") def gu...
39.596639
200
0.745862
877
9,424
7.754846
0.239453
0.04367
0.058815
0.020291
0.19453
0.044405
0.044405
0.044405
0.028525
0.028525
0
0.002662
0.162776
9,424
237
201
39.763713
0.859316
0.034486
0
0.235897
0
0
0.156284
0.101695
0
0
0
0.004219
0
0
null
null
0.035897
0.010256
null
null
0.005128
0
0
0
null
0
0
0
0
0
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
0b9a0be810f1c7a3017f847b63548ac6b6392adc
22,583
py
Python
peerpal.py
aspath1/peerpal
35899d38e56d06e5aa4f4d7b1f23c46be13486de
[ "Apache-2.0" ]
5
2018-11-08T15:14:53.000Z
2021-06-12T09:56:44.000Z
peerpal.py
stevecnz/peerpal
35899d38e56d06e5aa4f4d7b1f23c46be13486de
[ "Apache-2.0" ]
null
null
null
peerpal.py
stevecnz/peerpal
35899d38e56d06e5aa4f4d7b1f23c46be13486de
[ "Apache-2.0" ]
2
2020-02-29T16:34:39.000Z
2020-03-26T05:50:22.000Z
#!/usr/bin/env python3 import json import urllib.request import configparser import sys import os.path import argparse def main(): try: # Obligatory Variables ios_neigh_grp_v4 = None ios_neigh_grp_v6 = None xr_neigh_grp_v4 = None xr_neigh_grp_v6 = None op_sys = No...
41.82037
79
0.534296
2,730
22,583
4.219414
0.141758
0.007813
0.021964
0.015279
0.395347
0.287699
0.21547
0.198628
0.156264
0.144283
0
0.014538
0.348182
22,583
539
80
41.897959
0.768003
0.081433
0
0.263658
0
0.004751
0.209264
0.005607
0
0
0
0
0
1
0.033254
false
0.052257
0.014252
0
0.078385
0.102138
0
0
0
null
0
0
0
0
0
0
0
0
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
0ba04e950540354017c284cae692ed40ee405234
1,964
py
Python
watchdogs/web/scripts/RequestFuzzerScript.py
watchdogoblivion/watchdogs-offsec
66212988a83b97e54caabcf3ec1ea48e76dafedc
[ "MIT" ]
null
null
null
watchdogs/web/scripts/RequestFuzzerScript.py
watchdogoblivion/watchdogs-offsec
66212988a83b97e54caabcf3ec1ea48e76dafedc
[ "MIT" ]
10
2021-08-19T17:48:20.000Z
2021-09-15T03:40:40.000Z
watchdogs/web/scripts/RequestFuzzerScript.py
watchdogoblivion/offsec-python
66212988a83b97e54caabcf3ec1ea48e76dafedc
[ "MIT" ]
null
null
null
# author: WatchDogOblivion # description: TODO # WatchDogs Request Fuzzer Script import traceback from watchdogs.io.parsers import FileArgs from watchdogs.base.models import Common, AllArgs from watchdogs.web.models import RequestFuzzer from watchdogs.web.parsers import RequestArgs, FuzzerArgs from watchdogs.web.serv...
41.787234
97
0.78666
153
1,964
9.915033
0.339869
0.094924
0.031641
0.063283
0.075148
0.075148
0.075148
0.075148
0.075148
0
0
0
0.129837
1,964
47
98
41.787234
0.887654
0.156823
0
0.242424
0
0
0
0
0
0
0
0.021277
0
1
0.181818
false
0
0.181818
0.060606
0.454545
0.121212
0
0
0
null
0
0
0
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
0bab7e978a55a0b86359a8968157ec5dec189cad
1,277
py
Python
min_dist_network.py
LaurentFerhi/transform_merged_excel
c48024d103e0e41203e1e8c761bd64dd6aab8eba
[ "MIT" ]
null
null
null
min_dist_network.py
LaurentFerhi/transform_merged_excel
c48024d103e0e41203e1e8c761bd64dd6aab8eba
[ "MIT" ]
null
null
null
min_dist_network.py
LaurentFerhi/transform_merged_excel
c48024d103e0e41203e1e8c761bd64dd6aab8eba
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from scipy.sparse import csr_matrix from scipy.sparse.csgraph import minimum_spanning_tree # https://docs.scipy.org/doc/scipy/reference/generated/scipy.sparse.csgraph.minimum_spanning_tree.html # Euclidean distance def dist(p1, p2): return np.sqrt(sum([(a - b) ** 2 for a, b ...
25.54
102
0.670321
217
1,277
3.884793
0.410138
0.04745
0.067616
0.042705
0
0
0
0
0
0
0
0.032567
0.182459
1,277
49
103
26.061224
0.774904
0.240407
0
0
1
0
0.076923
0
0
0
0
0
0
1
0.029412
false
0
0.117647
0.029412
0.176471
0.176471
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
0bb1d532590d8085bbcc16fc4f86248827bbbbad
718
py
Python
notifier/provider.py
kirelagin/pynotifier
4025a7954665e0d6c423510eebf7c692c01ff979
[ "BSD-3-Clause" ]
null
null
null
notifier/provider.py
kirelagin/pynotifier
4025a7954665e0d6c423510eebf7c692c01ff979
[ "BSD-3-Clause" ]
null
null
null
notifier/provider.py
kirelagin/pynotifier
4025a7954665e0d6c423510eebf7c692c01ff979
[ "BSD-3-Clause" ]
null
null
null
import abc import sys class Provider(metaclass=abc.ABCMeta): def __init__(self): self._subject = None self._text = '' @property def subject(self): return self._subject @subject.setter def subject(self, s): self._subject = s @property def text(self): ...
18.410256
48
0.573816
86
718
4.55814
0.360465
0.084184
0.107143
0
0
0
0
0
0
0
0
0
0.31337
718
38
49
18.894737
0.795132
0
0
0.071429
0
0
0.002786
0
0
0
0
0
0
1
0.321429
false
0.035714
0.071429
0.071429
0.535714
0
0
0
0
null
0
0
0
0
0
0
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
0bb4b31fe19598a7ebb4a6108ead96e4504ed0be
1,907
py
Python
nodel/framework/django_1_11_3/config_base.py
ary4n/nodel
b94ab009fa8d359229350910d457407e4226dfe2
[ "MIT" ]
null
null
null
nodel/framework/django_1_11_3/config_base.py
ary4n/nodel
b94ab009fa8d359229350910d457407e4226dfe2
[ "MIT" ]
null
null
null
nodel/framework/django_1_11_3/config_base.py
ary4n/nodel
b94ab009fa8d359229350910d457407e4226dfe2
[ "MIT" ]
null
null
null
import os import sys from os import environ BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) SITE_ROOT = os.path.dirname(BASE_DIR) SITE_NAME = os.path.basename(SITE_ROOT) sys.path.append(BASE_DIR) DEBUG = False ALLOWED_HOSTS = ['*'] WSGI_APPLICATION = 'core.wsgi.application' L...
22.435294
87
0.734137
222
1,907
6.117117
0.40991
0.114875
0.038292
0.033137
0.033137
0.033137
0.033137
0.033137
0
0
0
0.003552
0.114316
1,907
84
88
22.702381
0.800474
0
0
0
0
0
0.513896
0.4043
0
0
0
0
0
1
0
false
0
0.043478
0
0.043478
0
0
0
0
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
0bb50f0a692ea2ee2a723684656f04d0724ecb2b
1,656
py
Python
tests/test_groups.py
hcallen/python-xmatters
122b029c1f592e58b39a3a84a17123c2de14951c
[ "MIT" ]
null
null
null
tests/test_groups.py
hcallen/python-xmatters
122b029c1f592e58b39a3a84a17123c2de14951c
[ "MIT" ]
null
null
null
tests/test_groups.py
hcallen/python-xmatters
122b029c1f592e58b39a3a84a17123c2de14951c
[ "MIT" ]
null
null
null
import os from xmatters.objects.groups import GroupQuota from .conftest import my_vcr fn = os.path.basename(__file__).replace('.py', '') class TestGet: @my_vcr.use_cassette('{}_test_get_groups.json'.format(fn)) def test_get_groups(self, xm_test): groups = xm_test.groups_endpoint().get_groups() ...
34.5
67
0.640097
213
1,656
4.732394
0.244131
0.047619
0.083333
0.079365
0.510913
0.40873
0.274802
0.274802
0.249008
0.249008
0
0.006557
0.263285
1,656
47
68
35.234043
0.819672
0
0
0.25641
0
0
0.046498
0.044686
0
0
0
0
0.410256
1
0.102564
false
0
0.076923
0
0.205128
0
0
0
0
null
0
0
0
0
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
0bb60f05b78f735408eaefba2227b19a8abfe1c0
1,200
py
Python
scraper/joke.py
o-x-y-g-e-n/whatsapp-assistant-bot
f22f4176fe14efc35638f092f722b180d4688d36
[ "MIT" ]
6
2018-06-09T17:44:46.000Z
2020-08-09T19:03:27.000Z
scraper/joke.py
o-x-y-g-e-n/whatsapp-assistant-bot
f22f4176fe14efc35638f092f722b180d4688d36
[ "MIT" ]
2
2021-04-06T18:21:29.000Z
2021-06-02T03:35:01.000Z
scraper/joke.py
o-x-y-g-e-n/whatsapp-assistant-bot
f22f4176fe14efc35638f092f722b180d4688d36
[ "MIT" ]
3
2018-02-24T15:39:49.000Z
2021-03-06T19:33:21.000Z
import re import time from selenium import webdriver from selenium.webdriver import ActionChains from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys from xml.dom import minidom from tqdm import tqdm import datetime from datetime import datetime from xml.dom import minidom from tq...
27.906977
79
0.768333
175
1,200
5.182857
0.451429
0.052922
0.06946
0.059537
0.103638
0.103638
0.103638
0.103638
0.103638
0.103638
0
0.010387
0.1175
1,200
42
80
28.571429
0.846081
0.028333
0
0.111111
0
0
0.100688
0.032702
0
0
0
0
0
1
0
false
0
0.388889
0
0.388889
0
0
0
0
null
0
0
0
0
0
0
0
0
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
0bbb64bcc10b6077c23a811aaabdb336d8d6d53a
1,332
py
Python
user/models.py
Samurai-XHe/myblog
c9e182b84c3cb06b3207e7359f0a4d352c28d043
[ "MIT" ]
1
2018-09-25T09:11:17.000Z
2018-09-25T09:11:17.000Z
user/models.py
Samurai-XHe/myblog
c9e182b84c3cb06b3207e7359f0a4d352c28d043
[ "MIT" ]
null
null
null
user/models.py
Samurai-XHe/myblog
c9e182b84c3cb06b3207e7359f0a4d352c28d043
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User from imagekit.models import ProcessedImageField from imagekit.processors import ResizeToFill class Profile(models.Model): nickname = models.CharField('昵称', max_length=20) avatar = ProcessedImageField( verbose_name='头像', u...
26.64
74
0.701201
165
1,332
5.509091
0.327273
0.072607
0.074807
0.072607
0.368537
0.315732
0.315732
0.315732
0.315732
0.315732
0
0.005571
0.191441
1,332
49
75
27.183673
0.83844
0.01952
0
0.323529
0
0
0.068304
0.035303
0
0
0
0
0
1
0.117647
false
0
0.117647
0.029412
0.558824
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
e7e778c534fad2d53cc0067b99e155038789c00d
4,272
py
Python
test/etap/runtest.py
mikewied/couchdb
96f3e8619ae2210c335beffff39825833f36bc6d
[ "Apache-2.0" ]
null
null
null
test/etap/runtest.py
mikewied/couchdb
96f3e8619ae2210c335beffff39825833f36bc6d
[ "Apache-2.0" ]
null
null
null
test/etap/runtest.py
mikewied/couchdb
96f3e8619ae2210c335beffff39825833f36bc6d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Description: Wrapper script for running CouchDB unit tests import sys import getopt import os import subprocess import re TEST_COUNT_RE = r"^1\.\.(\d+)" TEST_OK_RE = r"(^ok)\b" TEST_NOT_OK_RE = r"(^not ok)\b" MODULES = ["../test/etap"] def usage(): print "Usage: %s -p builddir -l erl_lib...
25.890909
72
0.536283
551
4,272
4.00726
0.266788
0.054348
0.028533
0.032609
0.043478
0
0
0
0
0
0
0.005598
0.330993
4,272
164
73
26.04878
0.76697
0.08544
0
0.171875
0
0
0.122884
0.017445
0
0
0
0
0
0
null
null
0.03125
0.039063
null
null
0.078125
0
0
0
null
0
0
0
0
0
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
e7eaaa6eb0fa47387aaab34c72252efafbc0374f
1,264
py
Python
steps/gcloud/gcloud-cli/gcloud-entrypoint.py
NouemanKHAL/steps
74929af9a343e206f319296a6b800aefa81e425e
[ "BSD-3-Clause" ]
null
null
null
steps/gcloud/gcloud-cli/gcloud-entrypoint.py
NouemanKHAL/steps
74929af9a343e206f319296a6b800aefa81e425e
[ "BSD-3-Clause" ]
null
null
null
steps/gcloud/gcloud-cli/gcloud-entrypoint.py
NouemanKHAL/steps
74929af9a343e206f319296a6b800aefa81e425e
[ "BSD-3-Clause" ]
null
null
null
import subprocess import os import base64 import json auth_code = os.getenv('AUTH_CODE') project_id = os.getenv('PROJECT_ID') gcloud_command = os.getenv('COMMAND') # We expect to receive the key file JSON in a Basc64-encoded environment variable. # Lets decode it and save it to local file for use with gcloud cli ...
26.893617
109
0.715981
175
1,264
5.074286
0.405714
0.027027
0.060811
0.081081
0.162162
0.06982
0.06982
0
0
0
0
0.005592
0.151108
1,264
46
110
27.478261
0.821994
0.217563
0
0.214286
0
0
0.167006
0.02444
0
0
0
0
0
0
null
null
0
0.142857
null
null
0.214286
0
0
0
null
0
0
0
0
0
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
e7ef0fab58c615d9d266cb3d2f0bed2ada24e9ba
4,001
py
Python
mysite/rc/views.py
NIF-au/django-rapid-connect-demo
b454036afb2aced348b8af78ff683ff532483710
[ "BSD-2-Clause" ]
1
2020-02-22T16:06:36.000Z
2020-02-22T16:06:36.000Z
mysite/rc/views.py
NIF-au/django-rapid-connect-demo
b454036afb2aced348b8af78ff683ff532483710
[ "BSD-2-Clause" ]
null
null
null
mysite/rc/views.py
NIF-au/django-rapid-connect-demo
b454036afb2aced348b8af78ff683ff532483710
[ "BSD-2-Clause" ]
1
2020-07-02T04:21:55.000Z
2020-07-02T04:21:55.000Z
from django.http import HttpResponse from django.shortcuts import redirect from django.core.exceptions import PermissionDenied from django.views.decorators.csrf import csrf_exempt from django.contrib.auth.models import User import django.contrib.auth as djauth import pwgen # The secret that you generated and used when...
35.723214
157
0.625344
524
4,001
4.732824
0.360687
0.062097
0.025806
0.024194
0.18871
0.121774
0.072581
0.054032
0.054032
0
0
0.005907
0.23844
4,001
111
158
36.045045
0.808008
0.139715
0
0.277778
0
0.013889
0.312336
0.03033
0
0
0
0.009009
0.027778
0
null
null
0
0.111111
null
null
0.013889
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e7f112e4b7abf5d39632fb844e267f8293ec9dd2
1,677
py
Python
ftis/ftis/analyser/scaling.py
jamesb93/ftis
55ab43e8ba85399aeeaa383bbfa1dc8a524d96eb
[ "BSD-3-Clause" ]
4
2021-04-16T05:47:52.000Z
2021-12-04T08:50:46.000Z
ftis/ftis/analyser/scaling.py
jamesb93/ftis
55ab43e8ba85399aeeaa383bbfa1dc8a524d96eb
[ "BSD-3-Clause" ]
10
2020-05-13T16:47:38.000Z
2022-03-09T15:45:16.000Z
ftis/ftis/analyser/scaling.py
jamesb93/ftis
55ab43e8ba85399aeeaa383bbfa1dc8a524d96eb
[ "BSD-3-Clause" ]
null
null
null
from ftis.common.analyser import FTISAnalyser from ftis.common.io import write_json, read_json from ftis.common.proc import staticproc from sklearn.preprocessing import MinMaxScaler, StandardScaler from joblib import dump as jdump import numpy as np class Normalise(FTISAnalyser): def __init__(self, minimum=0, max...
30.490909
85
0.657722
233
1,677
4.587983
0.257511
0.065482
0.044902
0.059869
0.53508
0.443405
0.32928
0.32928
0.32928
0.190833
0
0.001544
0.227788
1,677
54
86
31.055556
0.823938
0
0
0.390244
0
0
0
0
0
0
0
0
0
1
0.243902
false
0
0.146341
0
0.439024
0
0
0
0
null
0
0
0
0
0
0
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
e7f71ef89746b39b6462f97735c9820566d45f1c
3,280
py
Python
code/tmp_rtrip/xml/dom/__init__.py
emilyemorehouse/ast-and-me
3f58117512e125e1ecbe3c72f2f0d26adb80b7b3
[ "MIT" ]
24
2018-01-23T05:28:40.000Z
2021-04-13T20:52:59.000Z
code/tmp_rtrip/xml/dom/__init__.py
emilyemorehouse/ast-and-me
3f58117512e125e1ecbe3c72f2f0d26adb80b7b3
[ "MIT" ]
17
2017-12-21T18:32:31.000Z
2018-12-18T17:09:50.000Z
code/tmp_rtrip/xml/dom/__init__.py
emilyemorehouse/ast-and-me
3f58117512e125e1ecbe3c72f2f0d26adb80b7b3
[ "MIT" ]
null
null
null
"""W3C Document Object Model implementation for Python. The Python mapping of the Document Object Model is documented in the Python Library Reference in the section on the xml.dom package. This package contains the following modules: minidom -- A simple implementation of the Level 1 DOM with namespace sup...
22.62069
76
0.746646
404
3,280
5.799505
0.405941
0.109262
0.039266
0.023047
0.026889
0
0
0
0
0
0
0.022932
0.189024
3,280
144
77
22.777778
0.857895
0.223476
0
0
0
0
0.055952
0
0
0
0
0
0
1
0.024691
false
0
0.024691
0.012346
0.703704
0
0
0
0
null
0
0
0
0
0
0
0
0
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
e7f723e70a61970755cb72c066c6310459e48b94
187
py
Python
data/flatfileparser.py
MonashTS/lbimproved
bd7d3f505afc0f9cc665619da7e5a96b921db18a
[ "Apache-2.0" ]
101
2015-03-14T13:47:09.000Z
2021-11-06T19:34:19.000Z
data/flatfileparser.py
MonashTS/lbimproved
bd7d3f505afc0f9cc665619da7e5a96b921db18a
[ "Apache-2.0" ]
4
2015-08-04T14:10:25.000Z
2020-06-09T23:19:13.000Z
data/flatfileparser.py
MonashTS/lbimproved
bd7d3f505afc0f9cc665619da7e5a96b921db18a
[ "Apache-2.0" ]
26
2015-03-21T21:08:08.000Z
2021-12-20T12:25:05.000Z
def readFlat(filename, delimiter): f = open(filename) ans = [] for line in f: ans.append(map(lambda x:float(x), filter(lambda x:len(x)>0,line.split(delimiter)))) return ans
18.7
86
0.663102
30
187
4.133333
0.666667
0.112903
0
0
0
0
0
0
0
0
0
0.006494
0.176471
187
9
87
20.777778
0.798701
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e7f7f4036922d6889b9fe9c72489efc9d3cea9f5
11,270
py
Python
platypush/plugins/printer/cups.py
RichardChiang/platypush
1777ebb0516118cdef20046a92caab496fa7c6cb
[ "MIT" ]
228
2018-01-30T11:17:09.000Z
2022-03-24T11:22:26.000Z
platypush/plugins/printer/cups.py
RichardChiang/platypush
1777ebb0516118cdef20046a92caab496fa7c6cb
[ "MIT" ]
167
2017-12-11T19:35:38.000Z
2022-03-27T14:45:30.000Z
platypush/plugins/printer/cups/__init__.py
BlackLight/runbullet
8d26c8634d2677b4402f0a21b9ab8244b44640db
[ "MIT" ]
16
2018-05-03T07:31:56.000Z
2021-12-05T19:27:37.000Z
import os from typing import Optional, Dict, Any, List from platypush.message.response.printer.cups import PrinterResponse, PrintersResponse, PrinterJobAddedResponse from platypush.plugins import Plugin, action class PrinterCupsPlugin(Plugin): """ A plugin to interact with a CUPS printer server. Requir...
37.818792
116
0.600976
1,258
11,270
5.26868
0.126391
0.054768
0.07242
0.088715
0.612855
0.555673
0.522179
0.49306
0.477821
0.449155
0
0.000251
0.292724
11,270
297
117
37.946128
0.831263
0.31819
0
0.446809
0
0
0.032842
0.012407
0
0
0
0
0.007092
1
0.141844
false
0
0.035461
0
0.241135
0.460993
0
0
0
null
0
0
0
0
0
0
0
0
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
e7f9d778e1b9b5fc447b58df17f21c671172f5b7
15,161
py
Python
GM2AUTOSAR_MM/merge_inter_layer_rules/models/strip_applymodel_MDL.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
3
2017-06-02T19:26:27.000Z
2021-06-14T04:25:45.000Z
UMLRT2Kiltera_MM/merge_preprocess_rules/models/strip_applymodel_MDL.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
8
2016-08-24T07:04:07.000Z
2017-05-26T16:22:47.000Z
GM2AUTOSAR_MM/merge_inter_layer_rules/models/strip_applymodel_MDL.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
1
2019-10-31T06:00:23.000Z
2019-10-31T06:00:23.000Z
""" __strip_applymodel_MDL.py_____________________________________________________ Automatically generated AToM3 Model File (Do not modify directly) Author: levi Modified: Sat Jun 1 13:27:00 2013 ______________________________________________________________________________ """ from stickylink import * from widthXfil...
44.072674
748
0.691247
1,867
15,161
5.280129
0.1173
0.029215
0.026375
0.013187
0.59505
0.48519
0.41266
0.377764
0.355042
0.334754
0
0.050414
0.154805
15,161
343
749
44.201166
0.718901
0.121562
0
0.18894
1
0.036866
0.153927
0.062476
0
0
0
0
0
1
0.004608
false
0.004608
0.147465
0
0.152074
0
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
e7fb8337684d0020acc3c42c391b74d351085e3f
2,365
py
Python
test/test_bgmodels.py
mtessmer/DeerLab
553e205542650a1b2106c1c63089468cb1e46510
[ "MIT" ]
16
2020-05-04T09:09:23.000Z
2022-01-28T13:41:31.000Z
test/test_bgmodels.py
mtessmer/DeerLab
553e205542650a1b2106c1c63089468cb1e46510
[ "MIT" ]
188
2020-04-23T07:18:12.000Z
2022-03-29T19:04:12.000Z
test/test_bgmodels.py
mtessmer/DeerLab
553e205542650a1b2106c1c63089468cb1e46510
[ "MIT" ]
11
2020-05-08T17:33:04.000Z
2022-03-17T05:15:08.000Z
import numpy as np import deerlab as dl #--------------------------------------------------------------------------------------- def assert_bgmodel(model,Bref): "Check the correct behaviour of the core functionality of a background model" t = np.linspace(-5,5,500) # Extract model information ...
32.847222
99
0.621142
329
2,365
4.340426
0.24924
0.10014
0.063025
0.147059
0.392157
0.392157
0.392157
0.392157
0.392157
0.392157
0
0.120955
0.20296
2,365
71
100
33.309859
0.636605
0.300211
0
0.08
0
0
0.056535
0
0
0
0
0
0.3
1
0.22
false
0
0.04
0
0.26
0
0
0
0
null
0
0
0
0
0
0
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
e7fc57f8aec711f95b8150c1949eb6f6c62d2f9d
411
py
Python
users/migrations/0005_auto_20210328_1800.py
UKnowWhoIm/student-mail-benefits
2d28dc6103dc37c64f4d7ddbaabebb4c67fb0fcd
[ "MIT" ]
null
null
null
users/migrations/0005_auto_20210328_1800.py
UKnowWhoIm/student-mail-benefits
2d28dc6103dc37c64f4d7ddbaabebb4c67fb0fcd
[ "MIT" ]
8
2021-01-07T14:50:01.000Z
2021-04-01T13:10:47.000Z
users/migrations/0005_auto_20210328_1800.py
UKnowWhoIm/student-mail-benefits
2d28dc6103dc37c64f4d7ddbaabebb4c67fb0fcd
[ "MIT" ]
2
2021-01-08T13:50:35.000Z
2021-01-19T07:35:35.000Z
# Generated by Django 3.1.5 on 2021-03-28 18:00 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0004_auto_20210328_1747'), ] operations = [ migrations.AlterField( model_name='maillist', name='token', ...
21.631579
76
0.608273
46
411
5.326087
0.847826
0
0
0
0
0
0
0
0
0
0
0.11745
0.274939
411
18
77
22.833333
0.704698
0.109489
0
0
1
0
0.112637
0.063187
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e7fd556d89a6c1611b70f426be58ba69ca8e3fc9
258
py
Python
test/PlaygroundTransform/Inputs/not.py
benlangmuir/swift
b75d8357037ff314a840c4d17099b40b59306701
[ "Apache-2.0" ]
1
2021-06-05T14:28:20.000Z
2021-06-05T14:28:20.000Z
test/PlaygroundTransform/Inputs/not.py
benlangmuir/swift
b75d8357037ff314a840c4d17099b40b59306701
[ "Apache-2.0" ]
null
null
null
test/PlaygroundTransform/Inputs/not.py
benlangmuir/swift
b75d8357037ff314a840c4d17099b40b59306701
[ "Apache-2.0" ]
null
null
null
import shlex import subprocess import sys if len(sys.argv) < 2: print("Too few args to " + sys.argv[0]) sys.exit(0) try: subprocess.check_call(shlex.split(sys.argv[1])) sys.exit(1) except subprocess.CalledProcessError as e: sys.exit(0)
18.428571
51
0.682171
42
258
4.166667
0.571429
0.12
0.091429
0
0
0
0
0
0
0
0
0.028571
0.186047
258
13
52
19.846154
0.804762
0
0
0.181818
0
0
0.062016
0
0
0
0
0
0
1
0
true
0
0.272727
0
0.272727
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
f000197889895d4392f2962aa64d57d9b56725b1
239
py
Python
mundo1/D10.py
KayanOkagawa/Cursoemvideo-Python3-Exercicios
10c8386102cc0928f8f090070eb3218deb3d60fe
[ "MIT" ]
null
null
null
mundo1/D10.py
KayanOkagawa/Cursoemvideo-Python3-Exercicios
10c8386102cc0928f8f090070eb3218deb3d60fe
[ "MIT" ]
null
null
null
mundo1/D10.py
KayanOkagawa/Cursoemvideo-Python3-Exercicios
10c8386102cc0928f8f090070eb3218deb3d60fe
[ "MIT" ]
null
null
null
#-*-coding:utf8;-*- #qpy:console print(5 * '-', 'CONVERSOR DE MOEDAS', 5 * '-') print('\n') r = float(input('DIGITE O VALOR EM REAIS: ')) d = r / 5.29 e = r / 6.41 print('\n') print(' CONVERSÃO - USS: {:.2f} / EURO: {:.2f}'.format(d, e))
21.727273
61
0.539749
39
239
3.307692
0.717949
0.093023
0
0
0
0
0
0
0
0
0
0.055556
0.171548
239
10
62
23.9
0.59596
0.121339
0
0.285714
0
0
0.427885
0
0
0
0
0
0
1
0
false
0
0
0
0
0.571429
0
0
0
null
0
0
0
0
0
0
0
0
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
f00b04c4a5d52f80d4fc81ca9d3c3a1df2cac7e9
1,817
py
Python
hospitals/views.py
API-Imperfect/geodjango-hospitals-api-home
69f8773e8904bdb6ba6f8c4f0d1547e9a4edc21d
[ "MIT" ]
null
null
null
hospitals/views.py
API-Imperfect/geodjango-hospitals-api-home
69f8773e8904bdb6ba6f8c4f0d1547e9a4edc21d
[ "MIT" ]
null
null
null
hospitals/views.py
API-Imperfect/geodjango-hospitals-api-home
69f8773e8904bdb6ba6f8c4f0d1547e9a4edc21d
[ "MIT" ]
null
null
null
from boundaries.models import Boundary from django.contrib.gis.geos import Point from django.contrib.gis.measure import D from django.db.models import Sum from rest_framework import status, viewsets from rest_framework.decorators import action from rest_framework.response import Response from .filters import Hospitals...
39.5
82
0.718217
214
1,817
5.934579
0.411215
0.06063
0.040157
0.056693
0.138583
0.138583
0.064567
0.064567
0
0
0
0.008186
0.193176
1,817
45
83
40.377778
0.858117
0.036324
0
0.081081
0
0
0.02063
0
0
0
0
0
0
1
0.081081
false
0
0.27027
0
0.567568
0
0
0
0
null
0
0
0
0
0
0
0
0
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
f00b36eebf3018692457484b80b8057fb7d0ca5b
1,911
py
Python
attendees/occasions/migrations/0002_assembly_address.py
xjlin0/attendees
3c337ee68c00f17cbbbe26f2e33131e57850e4ed
[ "MIT" ]
1
2020-03-26T00:42:04.000Z
2020-03-26T00:42:04.000Z
attendees/occasions/migrations/0002_assembly_address.py
xjlin0/attendees
3c337ee68c00f17cbbbe26f2e33131e57850e4ed
[ "MIT" ]
null
null
null
attendees/occasions/migrations/0002_assembly_address.py
xjlin0/attendees
3c337ee68c00f17cbbbe26f2e33131e57850e4ed
[ "MIT" ]
null
null
null
# Generated by Django 3.0.2 on 2020-01-14 02:05 import attendees.persons.models.utility from django.db import migrations, models import django.utils.timezone import model_utils.fields class Migration(migrations.Migration): dependencies = [ ('whereabouts', '0003_address'), ('occasions', '0001_ass...
43.431818
147
0.63213
184
1,911
6.440217
0.451087
0.037131
0.048101
0.048945
0.150211
0.150211
0.150211
0.150211
0.089451
0
0
0.018455
0.234432
1,911
43
148
44.44186
0.791524
0.023548
0
0.081081
1
0
0.198498
0.028433
0
0
0
0
0
1
0
false
0
0.108108
0
0.189189
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f00bbaa6bf9d748d229a232f4dfbb02cf2de0cca
2,904
py
Python
contract_tests.py
LukasForst/SWA-TP-user-service-contract-tests
7f08be64b23ff63f2b647c811226097619a363db
[ "MIT" ]
null
null
null
contract_tests.py
LukasForst/SWA-TP-user-service-contract-tests
7f08be64b23ff63f2b647c811226097619a363db
[ "MIT" ]
null
null
null
contract_tests.py
LukasForst/SWA-TP-user-service-contract-tests
7f08be64b23ff63f2b647c811226097619a363db
[ "MIT" ]
null
null
null
import unittest import uuid import requests SERVICE_URL = 'http://localhost:8080' class MyTestCase(unittest.TestCase): def test_status_returns_ok(self): r = requests.get(f'{SERVICE_URL}/status') self.assertEqual('OK', r.json()['status']) def test_version_returns_some_version(self): ...
38.210526
113
0.625689
368
2,904
4.75
0.184783
0.120137
0.069222
0.077231
0.62643
0.62643
0.585812
0.521739
0.48913
0.48913
0
0.02077
0.204201
2,904
75
114
38.72
0.735612
0
0
0.45614
0
0
0.278926
0.126722
0
0
0
0
0.298246
1
0.140351
false
0.105263
0.052632
0
0.210526
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
f00d822bb6306fa641497bb0e2345a56958152ec
25,860
py
Python
BALSAMIC/utils/models.py
Clinical-Genomics/BALSAMIC
72b633a8badbd557b01ad68252dc49f93789a630
[ "MIT" ]
39
2019-05-21T11:03:23.000Z
2022-03-22T11:40:17.000Z
BALSAMIC/utils/models.py
Clinical-Genomics/BALSAMIC
72b633a8badbd557b01ad68252dc49f93789a630
[ "MIT" ]
749
2019-05-16T19:18:03.000Z
2022-03-31T09:03:44.000Z
BALSAMIC/utils/models.py
Clinical-Genomics/BALSAMIC
72b633a8badbd557b01ad68252dc49f93789a630
[ "MIT" ]
19
2019-06-25T08:45:27.000Z
2022-03-08T17:35:51.000Z
import hashlib from datetime import datetime from pathlib import Path from typing import Optional, List, Dict from pydantic import BaseModel, validator, Field, AnyUrl from pydantic.types import DirectoryPath, FilePath from BALSAMIC import __version__ as balsamic_version from BALSAMIC.utils.constants import ( BIO...
37.369942
129
0.691493
3,091
25,860
5.648981
0.169848
0.01237
0.021305
0.023366
0.310292
0.239448
0.203368
0.183094
0.16912
0.153943
0
0.002882
0.235073
25,860
691
130
37.424023
0.879834
0.482637
0
0.252174
0
0
0.10459
0.00953
0
0
0
0
0.02029
1
0.084058
false
0
0.023188
0.034783
0.64058
0
0
0
0
null
0
0
0
0
0
0
0
0
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
f0118fb55ec5b3bfc88ebc76b7ec80a7cae83839
38,616
py
Python
ultracart/models/library_item.py
UltraCart/rest_api_v2_sdk_python
d734ea13fabc7a57872ff68bac06861edb8fd882
[ "Apache-2.0" ]
1
2018-03-15T16:56:23.000Z
2018-03-15T16:56:23.000Z
ultracart/models/library_item.py
UltraCart/rest_api_v2_sdk_python
d734ea13fabc7a57872ff68bac06861edb8fd882
[ "Apache-2.0" ]
null
null
null
ultracart/models/library_item.py
UltraCart/rest_api_v2_sdk_python
d734ea13fabc7a57872ff68bac06861edb8fd882
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ UltraCart Rest API V2 UltraCart REST API Version 2 # noqa: E501 OpenAPI spec version: 2.0.0 Contact: support@ultracart.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class LibraryItem(object): ...
32.892675
840
0.642273
4,636
38,616
5.150992
0.050043
0.055946
0.113903
0.105528
0.674665
0.565327
0.517965
0.434003
0.349204
0.271399
0
0.018494
0.281671
38,616
1,173
841
32.920716
0.842388
0.433395
0
0.086957
1
0
0.10033
0.026719
0
0
0
0
0
1
0.178054
false
0
0.006211
0
0.285714
0.004141
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
f013a2478584ff733e91a345d192ca5fec99e400
1,654
py
Python
gpa_api.py
ibpme/IBPME-DiscordBot
a8bf56797d5aaa7dbfe89880600bf080ed659853
[ "MIT" ]
null
null
null
gpa_api.py
ibpme/IBPME-DiscordBot
a8bf56797d5aaa7dbfe89880600bf080ed659853
[ "MIT" ]
null
null
null
gpa_api.py
ibpme/IBPME-DiscordBot
a8bf56797d5aaa7dbfe89880600bf080ed659853
[ "MIT" ]
null
null
null
import re gpa_map = { "A": 4.0, "AB": 3.5, "B": 3.0, "BC": 2.5, "C": 2.0, "D": 1.0, "E": 0.0, } def parse_command(command: str): """ command (str): "4A 3B 2C 5BC 2AB 2E 2AC initial 3.72 72" """ arguments = command.split("initial")[-1] regex_match = re.compile(r'(\d...
26.677419
71
0.598549
243
1,654
3.925926
0.296296
0.092243
0.0587
0.028302
0.283019
0.186583
0.186583
0.186583
0.102725
0.102725
0
0.047386
0.259976
1,654
61
72
27.114754
0.732026
0.12636
0
0.05
0
0
0.120404
0
0
0
0
0.016393
0
1
0.075
false
0
0.025
0
0.275
0
0
0
0
null
0
0
0
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
f018b2709da89051b2f43be790d5f9c8cf4ef749
1,010
py
Python
telco_cables_utility.test.py
clean-code-craft-tcq-1/modular-python-RaviKudumu
fb3077a972b2cec0ffa2b7b5adad02bbaae6e8d1
[ "MIT" ]
null
null
null
telco_cables_utility.test.py
clean-code-craft-tcq-1/modular-python-RaviKudumu
fb3077a972b2cec0ffa2b7b5adad02bbaae6e8d1
[ "MIT" ]
null
null
null
telco_cables_utility.test.py
clean-code-craft-tcq-1/modular-python-RaviKudumu
fb3077a972b2cec0ffa2b7b5adad02bbaae6e8d1
[ "MIT" ]
null
null
null
import unittest import telco_cable_pairs_utility class TeleColorsTest(unittest.TestCase): def test_number_to_pair(self): major_color, minor_color = telco_cable_pairs_utility.cable_colors_for_pair_number(4) self.assertEqual(major_color, "White") self.assertEqual(minor_color, "Brown") ...
45.909091
95
0.733663
130
1,010
5.192308
0.284615
0.162963
0.133333
0.195556
0.694815
0.602963
0.602963
0.602963
0.602963
0.44
0
0.008413
0.176238
1,010
21
96
48.095238
0.802885
0
0
0.105263
0
0
0.059656
0
0
0
0
0
0.368421
1
0.105263
false
0
0.105263
0
0.263158
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
f01d089170c88ac8a83e034d2748f84a52dee467
6,011
py
Python
accounts/utils/auth.py
Revibe-Music/core-services
6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2
[ "MIT" ]
2
2022-01-24T23:30:18.000Z
2022-01-26T00:21:22.000Z
accounts/utils/auth.py
Revibe-Music/core-services
6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2
[ "MIT" ]
null
null
null
accounts/utils/auth.py
Revibe-Music/core-services
6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2
[ "MIT" ]
null
null
null
""" Created: 5 Mar. 2020 Author: Jordan Prechac """ from django.db.models.query import QuerySet from django.contrib.auth import authenticate from django.contrib.auth.password_validation import validate_password from django.utils import timezone from oauth2_provider.models import Application, AccessToken, RefreshToken ...
29.038647
149
0.692564
731
6,011
5.500684
0.247606
0.049241
0.029595
0.02288
0.156429
0.09898
0.0761
0.061676
0.03432
0.03432
0
0.005021
0.204791
6,011
206
150
29.179612
0.836192
0.119281
0
0.153846
0
0
0.070684
0.028582
0
0
0
0
0
1
0.051282
false
0.128205
0.145299
0
0.264957
0
0
0
0
null
0
0
0
0
0
0
0
0
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
f0241cd3ddc9edc64b3b2b4fa623104d1bd8eef6
231
py
Python
other/yahoo_procon2019_qual_c.py
ryosuke0825/atcoder_python
185cdbe7db44ecca1aaf357858d16d31ce515ddb
[ "MIT" ]
null
null
null
other/yahoo_procon2019_qual_c.py
ryosuke0825/atcoder_python
185cdbe7db44ecca1aaf357858d16d31ce515ddb
[ "MIT" ]
null
null
null
other/yahoo_procon2019_qual_c.py
ryosuke0825/atcoder_python
185cdbe7db44ecca1aaf357858d16d31ce515ddb
[ "MIT" ]
null
null
null
K, A, B = map(int, input().split()) if B-A <= 2: print(K+1) exit(0) if 1+(K-2) < A: print(K+1) exit(0) exchange_times, last = divmod(K-(A-1), 2) profit = B - A ans = A + exchange_times * profit + last print(ans)
15.4
41
0.545455
45
231
2.755556
0.422222
0.032258
0.112903
0.177419
0.193548
0
0
0
0
0
0
0.051724
0.246753
231
14
42
16.5
0.66092
0
0
0.363636
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.272727
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
f02b0b6a52bc3fa5684f27e1f604e6073b5cf441
1,421
py
Python
setup.py
sdrees/pconf
d81d8dde8790e228a62a942059869ef48631103f
[ "MIT" ]
20
2017-06-04T09:29:10.000Z
2021-07-31T00:07:40.000Z
setup.py
sdrees/pconf
d81d8dde8790e228a62a942059869ef48631103f
[ "MIT" ]
32
2018-08-31T21:43:57.000Z
2022-01-02T13:14:04.000Z
setup.py
sdrees/pconf
d81d8dde8790e228a62a942059869ef48631103f
[ "MIT" ]
7
2018-08-31T20:57:21.000Z
2021-07-13T11:24:39.000Z
from os import path from setuptools import setup # Utility function to read the README file. # Used for the long_description. It's nice, because now 1) we have a top level # README file and 2) it's easier to type in the README file than to put a raw # string in below ... def read(fname): return open(path.join(pa...
34.658537
113
0.642505
168
1,421
5.380952
0.625
0.126106
0.165929
0.172566
0
0
0
0
0
0
0
0.016202
0.218156
1,421
40
114
35.525
0.79748
0.151302
0
0
0
0
0.534555
0
0
0
0
0
0
1
0.03125
false
0
0.0625
0.03125
0.125
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
f02f51920de0743d6803162e5ba0851c3e7994a9
2,117
py
Python
app/models/database.py
vitrine-app/server
4699a84507a9bf94645587b30e7bc0dea835a2f3
[ "MIT" ]
null
null
null
app/models/database.py
vitrine-app/server
4699a84507a9bf94645587b30e7bc0dea835a2f3
[ "MIT" ]
null
null
null
app/models/database.py
vitrine-app/server
4699a84507a9bf94645587b30e7bc0dea835a2f3
[ "MIT" ]
null
null
null
from datetime import datetime from server import db games_genres = db.Table('games_genres', db.Model.metadata, db.Column('game_id', db.Integer, db.ForeignKey('games.id')), db.Column('genre_id', db.Integer, db.ForeignKey('genres.id')) ) class S...
39.943396
90
0.685876
285
2,117
4.978947
0.17193
0.146582
0.169133
0.093023
0.62086
0.575053
0.522903
0.501057
0.501057
0.410148
0
0.008503
0.166745
2,117
52
91
40.711538
0.795918
0
0
0.390244
0
0
0.069438
0
0
0
0
0
0
1
0
false
0
0.04878
0
0.902439
0
0
0
0
null
0
0
0
0
0
0
0
0
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
f030f045a7b0d54a39946b27f0e824fc8ccc50ca
1,185
py
Python
tests/test_account.py
lepture/june
97a5a8e09fab91c2055802cacfb1fe16ec4fdcbd
[ "BSD-3-Clause" ]
50
2015-01-23T10:41:30.000Z
2020-03-04T07:55:30.000Z
tests/test_account.py
lepture/june
97a5a8e09fab91c2055802cacfb1fe16ec4fdcbd
[ "BSD-3-Clause" ]
null
null
null
tests/test_account.py
lepture/june
97a5a8e09fab91c2055802cacfb1fe16ec4fdcbd
[ "BSD-3-Clause" ]
28
2015-02-02T12:10:56.000Z
2019-11-24T13:17:09.000Z
# coding: utf-8 from .suite import BaseSuite class TestSignup(BaseSuite): def test_get(self): rv = self.client.get('/account/signup') assert '</form>' in rv.data def test_required_fields(self): rv = self.client.post('/account/signup') assert 'This field is required' in rv.dat...
26.931818
55
0.55443
136
1,185
4.757353
0.323529
0.064915
0.092736
0.148377
0.66306
0.527048
0.527048
0.384853
0.384853
0.315301
0
0.008434
0.299578
1,185
43
56
27.55814
0.771084
0.01097
0
0.515152
0
0
0.234188
0
0
0
0
0
0.181818
1
0.181818
false
0.090909
0.030303
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
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
f0357155d5bbb2d6573b32df9a5557154835d293
2,776
py
Python
events/models.py
abhi20161997/Oasis-17
80618af478beb256502bf1b6c05e0a22068577c9
[ "BSD-3-Clause" ]
null
null
null
events/models.py
abhi20161997/Oasis-17
80618af478beb256502bf1b6c05e0a22068577c9
[ "BSD-3-Clause" ]
null
null
null
events/models.py
abhi20161997/Oasis-17
80618af478beb256502bf1b6c05e0a22068577c9
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals from django.db import models from ckeditor.fields import RichTextField from registrations.models import * from ems.models import * class Category(models.Model): name = models.CharField(max_length=100, unique=True) class Meta: verbose_name_plural = 'Categories' def...
36.051948
98
0.778458
364
2,776
5.758242
0.233516
0.072996
0.094466
0.125954
0.668416
0.570134
0.45229
0.381679
0.381679
0.381679
0
0.024751
0.097622
2,776
77
99
36.051948
0.811976
0
0
0.40678
0
0
0.040691
0.018005
0
0
0
0
0
1
0.084746
false
0.016949
0.084746
0.084746
0.983051
0
0
0
0
null
0
0
0
0
0
0
0
0
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
f03abc1cd7a77f409bdf60424a04ce8dbd319662
758
py
Python
setup.py
jhooey/shopping-cart-trends
e2ee65c2cd1f95942000175479a6666459dff854
[ "BSD-3-Clause" ]
1
2015-01-04T17:02:43.000Z
2015-01-04T17:02:43.000Z
setup.py
jhooey/shopping-cart-trends
e2ee65c2cd1f95942000175479a6666459dff854
[ "BSD-3-Clause" ]
null
null
null
setup.py
jhooey/shopping-cart-trends
e2ee65c2cd1f95942000175479a6666459dff854
[ "BSD-3-Clause" ]
null
null
null
try: from setuptools import setup except ImportError: from distutils.core import setup #classifiers: https://pypi.python.org/pypi?%3Aaction=list_classifiers setup( name = "grocerytrends", version = "0.1", author = "Jacob Hooey", author_email = "jacob@pompouspanda.com", description = ("A Pyt...
31.583333
77
0.624011
79
758
5.962025
0.746835
0.046709
0
0
0
0
0
0
0
0
0
0.007117
0.258575
758
23
78
32.956522
0.830961
0.08971
0
0
0
0
0.447025
0.03193
0
0
0
0
0
1
0
true
0
0.142857
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
f0413d7d3633b441143a0d3ed12d2bf995d75026
13,920
py
Python
OFES/OFESplots/figure 9/Antarcticaspecieplot.py
pdnooteboom/PO-dinocysts
31ae3ca1d014a1144bd7b559d59de805d6e9cf23
[ "MIT" ]
null
null
null
OFES/OFESplots/figure 9/Antarcticaspecieplot.py
pdnooteboom/PO-dinocysts
31ae3ca1d014a1144bd7b559d59de805d6e9cf23
[ "MIT" ]
null
null
null
OFES/OFESplots/figure 9/Antarcticaspecieplot.py
pdnooteboom/PO-dinocysts
31ae3ca1d014a1144bd7b559d59de805d6e9cf23
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Aug 29 13:30:56 2018 @author: nooteboom """ import numpy as np import matplotlib.pyplot as plt import matplotlib from netCDF4 import Dataset import matplotlib.colors as colors import Basemap def running_mean(l, N): sum = 0 result = list( 0 for x in l) for i in ...
36.728232
188
0.629741
2,046
13,920
4.20479
0.180841
0.02441
0.013832
0.019761
0.61188
0.570615
0.544113
0.542485
0.526561
0.498198
0
0.036654
0.200359
13,920
379
189
36.728232
0.736232
0.116882
0
0.472527
0
0.003663
0.087258
0.028536
0
0
0
0
0
0
null
null
0
0.021978
null
null
0.010989
0
0
0
null
0
0
0
0
0
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
f04629584212732cc01ee3d9b96c11b4cc163bd2
72,588
py
Python
nexus/lib/gaussian_process.py
prckent/qmcpack
127caf219ee99c2449b803821fcc8b1304b66ee1
[ "NCSA" ]
null
null
null
nexus/lib/gaussian_process.py
prckent/qmcpack
127caf219ee99c2449b803821fcc8b1304b66ee1
[ "NCSA" ]
null
null
null
nexus/lib/gaussian_process.py
prckent/qmcpack
127caf219ee99c2449b803821fcc8b1304b66ee1
[ "NCSA" ]
null
null
null
################################################################## ## (c) Copyright 2018- by Richard K. Archibald ## ## and Jaron T. Krogel ## ################################################################## #=================================================...
32.076005
124
0.49555
9,111
72,588
3.791351
0.083525
0.014764
0.009872
0.013461
0.440639
0.376719
0.316359
0.277596
0.236112
0.217844
0
0.031259
0.363614
72,588
2,262
125
32.090186
0.716522
0.127349
0
0.378521
0
0.00088
0.042437
0.000471
0
0
0
0
0.00088
0
null
null
0.00088
0.009683
null
null
0.018486
0
0
0
null
0
0
0
0
0
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
f04693bbc3e2794085060bafe85b5059badea32b
2,278
py
Python
src/pdc2/scripts/mask_tips_by_taxonID_genomes.py
jlanga/smsk_selection
08070c6d4a6fbd9320265e1e698c95ba80f81123
[ "MIT" ]
4
2021-07-18T05:20:20.000Z
2022-01-03T10:22:33.000Z
src/pdc2/scripts/mask_tips_by_taxonID_genomes.py
jlanga/smsk_selection
08070c6d4a6fbd9320265e1e698c95ba80f81123
[ "MIT" ]
1
2017-08-21T07:26:13.000Z
2018-11-08T13:59:48.000Z
src/pdc2/scripts/mask_tips_by_taxonID_genomes.py
jlanga/smsk_orthofinder
08070c6d4a6fbd9320265e1e698c95ba80f81123
[ "MIT" ]
2
2021-07-18T05:20:26.000Z
2022-03-31T18:23:31.000Z
""" Input is a dir of trees Mask monophyletic tips that belong to the same taxon Keep the tip with the shortest terminal branch lenth """ import newick3,phylo3,os,sys #if taxon id pattern changes, change it here def get_name(name): return name.split("@")[0] #smooth the kink created by prunning #to prevent creating...
32.084507
76
0.697103
360
2,278
4.338889
0.411111
0.042254
0.017926
0.026889
0.056338
0.056338
0.056338
0
0
0
0
0.01347
0.18525
2,278
70
77
32.542857
0.828125
0.210711
0
0.04
0
0
0.078277
0.018811
0
0
0
0
0
0
null
null
0
0.02
null
null
0.06
0
0
0
null
0
0
0
0
0
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
f049561de7b5c747d3304af2f373c4964225ee70
193
py
Python
Test/test.py
ShowierData9978-School/Bank-Of-IOU-1
d69ce7d6f3b4e085776f72d43aa9691d0beba3eb
[ "MIT" ]
null
null
null
Test/test.py
ShowierData9978-School/Bank-Of-IOU-1
d69ce7d6f3b4e085776f72d43aa9691d0beba3eb
[ "MIT" ]
null
null
null
Test/test.py
ShowierData9978-School/Bank-Of-IOU-1
d69ce7d6f3b4e085776f72d43aa9691d0beba3eb
[ "MIT" ]
1
2021-11-30T15:16:26.000Z
2021-11-30T15:16:26.000Z
m = "sdjlwdd" c print(mBytes) mInt = int.from_bytes(mBytes, byteorder="big") mBytes2 = mInt.to_bytes(((mInt.bit_length() + 7) // 8), byteorder="big") m2 = mBytes2.decode("utf-8") print(m == m2)
27.571429
72
0.668394
31
193
4.064516
0.645161
0.190476
0
0
0
0
0
0
0
0
0
0.040936
0.11399
193
7
73
27.571429
0.695906
0
0
0
0
0
0.092784
0
0
0
0
0
0
1
0
false
0
0
0
0
0.285714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f049abe21c9b9953ded709b0ac88897895423992
1,650
py
Python
RePoE/parser/modules/cluster_jewels.py
brather1ng/RePoE
88224ac03fdd4043c3cdab6a362147370b460171
[ "MIT" ]
224
2017-02-01T00:47:38.000Z
2022-03-24T13:09:12.000Z
RePoE/parser/modules/cluster_jewels.py
brather1ng/RePoE
88224ac03fdd4043c3cdab6a362147370b460171
[ "MIT" ]
37
2017-02-10T15:39:29.000Z
2022-03-15T17:32:31.000Z
RePoE/parser/modules/cluster_jewels.py
brather1ng/RePoE
88224ac03fdd4043c3cdab6a362147370b460171
[ "MIT" ]
30
2017-05-26T23:25:23.000Z
2022-03-20T16:10:19.000Z
from RePoE.parser.util import call_with_default_args, write_json from RePoE.parser import Parser_Module class cluster_jewels(Parser_Module): @staticmethod def write(file_system, data_path, relational_reader, translation_file_cache, ot_file_cache): skills = {} for row in relational_reader["Pass...
40.243902
104
0.561212
149
1,650
5.959732
0.422819
0.045045
0.033784
0.042793
0.15991
0
0
0
0
0
0
0
0.307273
1,650
40
105
41.25
0.776903
0
0
0.057143
0
0
0.269697
0.076364
0
0
0
0
0
1
0.028571
false
0.228571
0.057143
0
0.114286
0
0
0
0
null
0
0
0
0
0
0
0
0
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
f049c5a3e3c74b56e0ac4f988417cb311c5075e1
7,088
py
Python
orders/views.py
HashirGJ8842/Pizza
87ec070b923b8868dde09279abace9e5733f9cfb
[ "MIT" ]
null
null
null
orders/views.py
HashirGJ8842/Pizza
87ec070b923b8868dde09279abace9e5733f9cfb
[ "MIT" ]
3
2021-03-19T03:44:35.000Z
2021-09-22T19:04:38.000Z
orders/views.py
HashirGJ8842/Pizza
87ec070b923b8868dde09279abace9e5733f9cfb
[ "MIT" ]
1
2020-12-25T12:33:37.000Z
2020-12-25T12:33:37.000Z
from django.http import HttpResponseRedirect from django.shortcuts import render, reverse from django.contrib.auth import login, logout, user_logged_in, user_logged_out, authenticate from django.contrib.auth.models import User from .models import Pizza, SubsPlatters, SaladsPasta, Toppings, FinalPizza, FinalSalads, Fina...
40.971098
169
0.60934
841
7,088
5.072533
0.136742
0.088608
0.101266
0.070323
0.456165
0.379044
0.357009
0.323019
0.323019
0.309892
0
0.002759
0.23307
7,088
172
170
41.209302
0.782009
0
0
0.309677
0
0
0.138403
0
0
0
0
0
0
1
0.045161
false
0.051613
0.032258
0
0.180645
0.006452
0
0
0
null
0
0
0
0
0
0
0
0
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
f04f6c704c9bfc61d3a59f2a0ee94abb14fb536e
17,685
py
Python
python/craftassist/ttad/generation_dialogues/template_objects/block_object.py
satyamedh/craftassist
d97cbc14bc25149d3ef41737231ab9f3cb7e392a
[ "MIT" ]
null
null
null
python/craftassist/ttad/generation_dialogues/template_objects/block_object.py
satyamedh/craftassist
d97cbc14bc25149d3ef41737231ab9f3cb7e392a
[ "MIT" ]
null
null
null
python/craftassist/ttad/generation_dialogues/template_objects/block_object.py
satyamedh/craftassist
d97cbc14bc25149d3ef41737231ab9f3cb7e392a
[ "MIT" ]
null
null
null
""" Copyright (c) Facebook, Inc. and its affiliates. This file contains template objects associated with BlockObjects. """ import random from generate_utils import * from tree_components import * from .template_object import * from .location import * ############################# ### BLOCKOBJECT TEMPLATES ### #####...
36.388889
99
0.566638
1,861
17,685
5.108006
0.09726
0.062066
0.049232
0.065643
0.695771
0.662529
0.637387
0.609931
0.59636
0.551441
0
0.007863
0.338366
17,685
485
100
36.463918
0.804547
0.097258
0
0.514825
1
0
0.137193
0.031796
0
0
0
0.002062
0
1
0.061995
false
0
0.013477
0.013477
0.134771
0
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
f050ce5e5171b58205a3a59f468d44f5f953a1fd
1,060
py
Python
PyNimbus/nhcoutlooks.py
rishabmenon/PyNimbus
02e758fa3b84a4d8497677c48682e4aa510be87a
[ "BSD-3-Clause" ]
null
null
null
PyNimbus/nhcoutlooks.py
rishabmenon/PyNimbus
02e758fa3b84a4d8497677c48682e4aa510be87a
[ "BSD-3-Clause" ]
null
null
null
PyNimbus/nhcoutlooks.py
rishabmenon/PyNimbus
02e758fa3b84a4d8497677c48682e4aa510be87a
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Aug 28 09:12:46 2019 @author: Brandon """ class nhcOutlooks(): def __init__(self): self.atlantic_hurricanes = { 'Andrea': 1, 'Barry': 2, 'Chantal': 3, 'Dorian': 4, 'Erin': 5, 'Fernand': 6, 'Gabrielle': ...
36.551724
85
0.472642
124
1,060
3.975806
0.782258
0
0
0
0
0
0
0
0
0
0
0.119611
0.321698
1,060
29
86
36.551724
0.566064
0.040566
0
0
0
0
0.271204
0
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
f058425a1d0bdad7fc9401afcc991e638e5c7ba4
330
py
Python
tests/test_7_gaps.py
alienzj/genomepy
a9c6c40ffd350909bda882f733ee42606a3fec0b
[ "MIT" ]
null
null
null
tests/test_7_gaps.py
alienzj/genomepy
a9c6c40ffd350909bda882f733ee42606a3fec0b
[ "MIT" ]
null
null
null
tests/test_7_gaps.py
alienzj/genomepy
a9c6c40ffd350909bda882f733ee42606a3fec0b
[ "MIT" ]
null
null
null
from tempfile import NamedTemporaryFile from genomepy.utils import generate_gap_bed def test_gaps(): infa = "tests/data/gap.fa" outbed = "tests/data/gap.bed" tmp = NamedTemporaryFile().name generate_gap_bed(infa, tmp) result = open(tmp).read() expect = open(outbed).read() assert result ...
20.625
43
0.693939
43
330
5.209302
0.55814
0.080357
0.125
0
0
0
0
0
0
0
0
0
0.193939
330
15
44
22
0.842105
0
0
0
1
0
0.106061
0
0
0
0
0
0.1
1
0.1
false
0
0.2
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
f05ac69aca9d5c6700fa56267b84bf8170404321
3,171
py
Python
bspump/analyzer/analyzer.py
thatch/BitSwanPump
98a5b8d09f9b59d5361611cee0bd45e7b4c69e3f
[ "BSD-3-Clause" ]
1
2020-08-20T12:56:58.000Z
2020-08-20T12:56:58.000Z
bspump/analyzer/analyzer.py
thatch/BitSwanPump
98a5b8d09f9b59d5361611cee0bd45e7b4c69e3f
[ "BSD-3-Clause" ]
null
null
null
bspump/analyzer/analyzer.py
thatch/BitSwanPump
98a5b8d09f9b59d5361611cee0bd45e7b4c69e3f
[ "BSD-3-Clause" ]
null
null
null
import logging import time import asab from ..abc.processor import Processor ### L = logging.getLogger(__name__) ### class Analyzer(Processor): ''' This is general analyzer interface, which can be the basement of different analyzers. `analyze_on_clock` enables analyzis by timer, which period can be set by `...
31.71
120
0.716493
463
3,171
4.831533
0.390929
0.018775
0.025034
0.030845
0.075101
0.075101
0.075101
0
0
0
0
0.006912
0.178808
3,171
99
121
32.030303
0.852151
0.568275
0
0.057143
0
0
0.060231
0
0
0
0
0
0
1
0.171429
false
0.057143
0.114286
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
f05b513aeaab10e17ca75ec58c4a4ed78a9e13d9
1,618
py
Python
main.py
dertilo/pytorch-lightning-sagemaker
bc7c2e773b4424f2801d88f3b3a0e5cc2e35de02
[ "MIT" ]
null
null
null
main.py
dertilo/pytorch-lightning-sagemaker
bc7c2e773b4424f2801d88f3b3a0e5cc2e35de02
[ "MIT" ]
null
null
null
main.py
dertilo/pytorch-lightning-sagemaker
bc7c2e773b4424f2801d88f3b3a0e5cc2e35de02
[ "MIT" ]
null
null
null
import json import boto3 import sagemaker import wandb from sagemaker.pytorch import PyTorch # based on: https://github.com/aletheia/mnist_pl_sagemaker/blob/master/main.py source_dir = 'code' wandb.sagemaker_auth(path=source_dir) sagemaker_session = sagemaker.Session() # bucket_name = sagemaker_session.default_bucket(...
44.944444
593
0.739802
262
1,618
4.454198
0.40458
0.061697
0.041131
0.020566
0.027421
0
0
0
0
0
0
0.096796
0.093325
1,618
36
593
44.944444
0.698705
0.541409
0
0
0
0.038462
0.288646
0.181943
0
0
0
0.027778
0
1
0
false
0
0.192308
0
0.192308
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
f05cc760efff2d75afbf8a8352904dbdfd35b139
208
py
Python
py-question/lv1-01.py
fos777/MarbleChocolate
355f063ac4355919fe1f934fac4e56de94259868
[ "MIT" ]
null
null
null
py-question/lv1-01.py
fos777/MarbleChocolate
355f063ac4355919fe1f934fac4e56de94259868
[ "MIT" ]
null
null
null
py-question/lv1-01.py
fos777/MarbleChocolate
355f063ac4355919fe1f934fac4e56de94259868
[ "MIT" ]
null
null
null
# Q:编写一个程序,它将找到所有这些数字,可被7整除,但不是5的倍数,2000年至3200年(包括在内)。得到的数字应按逗号分隔的顺序打印在一行上。 # HINT:考虑使用range(#begin, #end)方法 l = [] for i in range(2000,3201): if (i%7==0) and (i%5!=0): l.append(str(i)) print (l)
26
75
0.649038
34
208
3.970588
0.823529
0
0
0
0
0
0
0
0
0
0
0.124294
0.149038
208
8
76
26
0.638418
0.490385
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f0645509098c51d787a8d88f79e2d695a3afe925
1,234
py
Python
vmf.py
csm-kr/Upright-Adjustment-with-Graph-Convolutional-Networks
079ffc31928f8ea48f62b60a751d80b17df7dbb0
[ "MIT" ]
2
2020-11-18T10:47:19.000Z
2020-11-19T03:18:58.000Z
vmf.py
csm-kr/Upright-Adjustment-With-Graph-Convolutional-Networks
079ffc31928f8ea48f62b60a751d80b17df7dbb0
[ "MIT" ]
1
2020-11-18T05:14:21.000Z
2020-11-18T10:39:08.000Z
vmf.py
csm-kr/Upright-Adjustment-with-Graph-Convolutional-Networks
079ffc31928f8ea48f62b60a751d80b17df7dbb0
[ "MIT" ]
1
2021-12-17T04:58:41.000Z
2021-12-17T04:58:41.000Z
import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import axes3d class VonMisesFisher(object): def __init__(self, mu, kappa): """ np.ndarray :param mu: np.ndarray - [np.float64] :param kappa: """ self.mu = mu self.kappa = kappa ...
30.097561
93
0.54295
170
1,234
3.888235
0.347059
0.09531
0.049924
0.036309
0.393343
0.393343
0.393343
0.393343
0.393343
0.393343
0
0.035067
0.329822
1,234
40
94
30.85
0.764208
0.290113
0
0.4
0
0
0
0
0
0
0
0
0
1
0.15
false
0
0.15
0
0.55
0
0
0
0
null
0
0
0
0
0
0
0
0
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
f071d9ee48e4d48ce773262cddd9a0f76d8a08e9
793
py
Python
dojo/db_migrations/0013_jira_info_level.py
mtcolman/django-DefectDojo
76175aca446e077884bdb5e1d8e2a671a0840775
[ "BSD-3-Clause" ]
1,772
2018-01-22T23:32:15.000Z
2022-03-31T14:49:33.000Z
dojo/db_migrations/0013_jira_info_level.py
mtcolman/django-DefectDojo
76175aca446e077884bdb5e1d8e2a671a0840775
[ "BSD-3-Clause" ]
3,461
2018-01-20T19:12:28.000Z
2022-03-31T17:14:39.000Z
dojo/db_migrations/0013_jira_info_level.py
mtcolman/django-DefectDojo
76175aca446e077884bdb5e1d8e2a671a0840775
[ "BSD-3-Clause" ]
1,173
2018-01-23T07:10:23.000Z
2022-03-31T14:40:43.000Z
# Generated by Django 2.2.1 on 2019-08-01 16:34 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('dojo', '0012_jira_finding_age'), ] operations = [ migrations.AddField( model_name='jira_conf', name='info_mapping_se...
33.041667
199
0.606557
90
793
5.188889
0.677778
0.038544
0.08137
0.119914
0
0
0
0
0
0
0
0.039867
0.240858
793
23
200
34.478261
0.73588
0.056747
0
0.117647
1
0
0.268097
0.08445
0
0
0
0
0
1
0
false
0
0.058824
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f0745ca91ea0357f4a0dd1aab964ef068c076fd6
3,004
py
Python
accounts/tests/test_views.py
EliasOPrado/tour-project
408068d33a70f0b2b225760a558a94fbdf21d279
[ "BSD-Source-Code" ]
7
2020-04-15T19:31:15.000Z
2022-01-29T16:15:21.000Z
accounts/tests/test_views.py
EliasOPrado/tour-project
408068d33a70f0b2b225760a558a94fbdf21d279
[ "BSD-Source-Code" ]
9
2021-03-19T00:20:54.000Z
2022-01-13T02:18:05.000Z
accounts/tests/test_views.py
EliasOPrado/tour-project
408068d33a70f0b2b225760a558a94fbdf21d279
[ "BSD-Source-Code" ]
2
2020-07-14T21:19:59.000Z
2021-04-15T17:38:29.000Z
from django.test import TestCase, Client from django.shortcuts import redirect from django.urls import reverse from tour_store.models import Destinations from django.utils import timezone from django.contrib.auth.models import User from django.contrib import messages from django.contrib.messages import get_messages cl...
40.053333
67
0.590213
333
3,004
5.213213
0.264264
0.036866
0.052419
0.048963
0.487903
0.452765
0.395737
0.345046
0.292051
0.292051
0
0.019127
0.321238
3,004
74
68
40.594595
0.832271
0.160786
0
0.276596
0
0
0.14143
0
0
0
0
0
0.234043
1
0.106383
false
0.12766
0.170213
0
0.297872
0
0
0
0
null
0
0
0
0
0
0
0
0
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
f07568b720937c4622f0ee66dc7a9e5dcded004f
369
py
Python
app/db/init_db.py
t3m8ch/fastapi-todolist
4fca286b9c6b2235aeef613f3348ef0d4c9dc322
[ "MIT" ]
null
null
null
app/db/init_db.py
t3m8ch/fastapi-todolist
4fca286b9c6b2235aeef613f3348ef0d4c9dc322
[ "MIT" ]
null
null
null
app/db/init_db.py
t3m8ch/fastapi-todolist
4fca286b9c6b2235aeef613f3348ef0d4c9dc322
[ "MIT" ]
null
null
null
from sqlalchemy.ext.asyncio import AsyncEngine, create_async_engine from .models import Base def create_engine(db_url: str) -> AsyncEngine: return create_async_engine(db_url) async def init_db(engine: AsyncEngine): async with engine.begin() as conn: await conn.run_sync(Base.metadata.drop_all) ...
26.357143
67
0.761518
54
369
4.981481
0.5
0.081784
0.126394
0.118959
0.208178
0.208178
0
0
0
0
0
0
0.157182
369
13
68
28.384615
0.864952
0
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.25
0.125
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
f0776ebe43c264c50396ef2649aafd83e0c6d37a
1,711
py
Python
01_views_examples/example_project/cbv_app/views.py
kantegory/mentoring
82dd5aa9da822d800b0bc32dd29fe5b90571c97c
[ "0BSD" ]
2
2020-12-18T09:50:47.000Z
2021-12-06T14:06:40.000Z
01_views_examples/example_project/cbv_app/views.py
kantegory/mentoring
82dd5aa9da822d800b0bc32dd29fe5b90571c97c
[ "0BSD" ]
null
null
null
01_views_examples/example_project/cbv_app/views.py
kantegory/mentoring
82dd5aa9da822d800b0bc32dd29fe5b90571c97c
[ "0BSD" ]
null
null
null
from django.shortcuts import render, get_object_or_404 from django.views.generic.list import ListView from django.views.generic.base import TemplateView from django.views.generic.detail import DetailView from django.views.generic.edit import CreateView, UpdateView, DeleteView # import models from .models import * # C...
21.3875
72
0.725307
189
1,711
6.481481
0.354497
0.04898
0.04898
0.071837
0.233469
0.210612
0.210612
0.210612
0.210612
0.210612
0
0.002105
0.167154
1,711
79
73
21.658228
0.857544
0.021625
0
0.408163
0
0
0.118492
0
0
0
0
0
0
1
0.020408
false
0
0.122449
0
0.857143
0
0
0
0
null
0
0
0
0
0
0
0
0
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
f083df3a44631ed489c35ca8d5454feef619fadc
295
py
Python
jsg/utils.py
pbutler/jsg
de2dc80776093411069f86930abc1a19204c3f32
[ "MIT" ]
null
null
null
jsg/utils.py
pbutler/jsg
de2dc80776093411069f86930abc1a19204c3f32
[ "MIT" ]
null
null
null
jsg/utils.py
pbutler/jsg
de2dc80776093411069f86930abc1a19204c3f32
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- # vim: ts=4 sts=4 sw=4 tw=100 sta et class NotInRole(Exception): pass def check_role(my_roles, requested_roles): if not my_roles: return True for role in my_roles: if role in requested_roles: return True raise NotInRole()
17.352941
42
0.620339
45
295
3.933333
0.644444
0.118644
0.169492
0
0
0
0
0
0
0
0
0.033333
0.288136
295
16
43
18.4375
0.809524
0.189831
0
0.222222
0
0
0
0
0
0
0
0
0
1
0.111111
false
0.111111
0
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
b2b5266ec2fa5242f434287e657d8993e099a26b
341
py
Python
001/find_number_with_constraints.py
gauthamp10/100DaysOfCode
bcc1d02d3cf7ec78770a7645363a88e9930e2115
[ "MIT" ]
null
null
null
001/find_number_with_constraints.py
gauthamp10/100DaysOfCode
bcc1d02d3cf7ec78770a7645363a88e9930e2115
[ "MIT" ]
null
null
null
001/find_number_with_constraints.py
gauthamp10/100DaysOfCode
bcc1d02d3cf7ec78770a7645363a88e9930e2115
[ "MIT" ]
null
null
null
"""Write a program which will find all such numbers which are divisible by 7 but are not a multiple of 5, between 2000 and 3200 (both included). The numbers obtained should be printed in a comma-separated sequence on a single line.""" for num in range(2000, 3201): if num % 7 == 0 and num % 5 != 0: prin...
34.1
74
0.674487
60
341
3.833333
0.75
0
0
0
0
0
0
0
0
0
0
0.083333
0.225806
341
9
75
37.888889
0.787879
0.668622
0
0
0
0
0.057692
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b2bca6b7832096d49abe278448adbe77cef44fb0
1,742
py
Python
ping3/errors.py
patrikarlos/ping3
32ec20baefa30ecc6c5b4562b264d7211a80bd10
[ "MIT" ]
null
null
null
ping3/errors.py
patrikarlos/ping3
32ec20baefa30ecc6c5b4562b264d7211a80bd10
[ "MIT" ]
null
null
null
ping3/errors.py
patrikarlos/ping3
32ec20baefa30ecc6c5b4562b264d7211a80bd10
[ "MIT" ]
null
null
null
class PingError(Exception): pass class TimeExceeded(PingError): pass class TimeToLiveExpired(TimeExceeded): def __init__(self, message="Time exceeded: Time To Live expired.", ip_header=None, icmp_header=None): self.ip_header = ip_header self.icmp_header = icmp_header self.message...
38.711111
125
0.69977
217
1,742
5.299539
0.193548
0.143478
0.130435
0.078261
0.632174
0.513913
0.428696
0.401739
0.401739
0.401739
0
0
0.183123
1,742
44
126
39.590909
0.808152
0
0
0.46875
0
0
0.131458
0
0
0
0
0
0
1
0.15625
false
0.0625
0
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
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
b2bf7a0f3049e602bdac6f10b7bf8f34be758fed
1,177
py
Python
examples/05-gray-scott-compression/paraview/macros/angle.py
CODARcode/cheetah
2d7148fad2e549a080e902e4fac180d9f22a9dc9
[ "Apache-2.0" ]
8
2018-07-11T19:55:37.000Z
2022-02-03T20:55:32.000Z
examples/05-gray-scott-compression/paraview/macros/angle.py
CODARcode/cheetah
2d7148fad2e549a080e902e4fac180d9f22a9dc9
[ "Apache-2.0" ]
196
2017-06-13T14:48:05.000Z
2022-03-02T21:53:39.000Z
examples/05-gray-scott-compression/paraview/macros/angle.py
CODARcode/cheetah
2d7148fad2e549a080e902e4fac180d9f22a9dc9
[ "Apache-2.0" ]
7
2018-07-02T16:50:43.000Z
2022-02-08T16:06:54.000Z
# trace generated using paraview version 5.6.0 # # To ensure correct image size when batch processing, please search # for and uncomment the line `# renderView*.ViewSize = [*,*]` #### import the simple module from the paraview from paraview.simple import * #### disable automatic camera reset on 'Show' paraview.simple...
39.233333
91
0.790144
131
1,177
7.091603
0.648855
0.054898
0.040904
0.073197
0
0
0
0
0
0
0
0.182868
0.117247
1,177
30
92
39.233333
0.711261
0.498726
0
0
1
0
0.037367
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0
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
b2bfd06aada186a6640923bbb9674d87a13a33b2
18,586
py
Python
evewspace/core/migrations/0002_auto__del_unique_configentry_name__chg_field_configentry_user__add_uni.py
gpapaz/eve-wspace
6b46d120c5ca8d27546113f51fd74fd7797dcbfc
[ "Apache-2.0" ]
null
null
null
evewspace/core/migrations/0002_auto__del_unique_configentry_name__chg_field_configentry_user__add_uni.py
gpapaz/eve-wspace
6b46d120c5ca8d27546113f51fd74fd7797dcbfc
[ "Apache-2.0" ]
null
null
null
evewspace/core/migrations/0002_auto__del_unique_configentry_name__chg_field_configentry_user__add_uni.py
gpapaz/eve-wspace
6b46d120c5ca8d27546113f51fd74fd7797dcbfc
[ "Apache-2.0" ]
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): # Removing unique constraint on 'ConfigEntry', fields ['name'] db.delete_...
82.973214
217
0.571129
1,895
18,586
5.492348
0.119261
0.09608
0.166795
0.238278
0.713009
0.668812
0.655169
0.573501
0.513836
0.407571
0
0.005905
0.179974
18,586
224
218
82.973214
0.67699
0.021898
0
0.099502
0
0
0.590809
0.287122
0
0
0
0
0
1
0.00995
false
0.004975
0.024876
0
0.049751
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
b2c5454d0c742ec198ddbb9d0ad1de501f69362f
3,994
py
Python
nicos_demo/vpuma/setups/sampletable.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
null
null
null
nicos_demo/vpuma/setups/sampletable.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
null
null
null
nicos_demo/vpuma/setups/sampletable.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
null
null
null
# -*- coding: utf-8 -*- description = 'Sample table' group = 'lowlevel' devices = dict( st_phi = device('nicos.devices.generic.VirtualMotor', unit = 'deg', abslimits = (-50, 116.1), speed = 1.5, visibility = (), ), co_phi = device('nicos.devices.generic.VirtualCoder', ...
26.626667
58
0.504507
413
3,994
4.823245
0.249395
0.120482
0.162651
0.200803
0.695281
0.594378
0.594378
0.548193
0.384538
0.198795
0
0.049193
0.348523
3,994
149
59
26.805369
0.716372
0.040561
0
0.591241
0
0
0.258765
0.149922
0
0
0
0
0
1
0
false
0
0
0
0
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
b2c596d306f22dc8ceae93611c44bbf249d671df
476
py
Python
INF1511/Chapter3/characterwise.py
GalliWare/UNISA-studies
32bab94930b176c4dfe943439781ef102896fab5
[ "Unlicense" ]
null
null
null
INF1511/Chapter3/characterwise.py
GalliWare/UNISA-studies
32bab94930b176c4dfe943439781ef102896fab5
[ "Unlicense" ]
null
null
null
INF1511/Chapter3/characterwise.py
GalliWare/UNISA-studies
32bab94930b176c4dfe943439781ef102896fab5
[ "Unlicense" ]
null
null
null
# demo of looping through the characters of a string, using the sorted and reversed functions s = input("Enter a string:") n = len(s) print("The first character of", s, "is", s[0]) print("The entered string will appear character wise as:") for i in range(0, n): print(s[i]) print("The entered string will appear char...
36.615385
93
0.703782
83
476
4.036145
0.445783
0.053731
0.089552
0.125373
0.310448
0.310448
0.310448
0.310448
0.310448
0.310448
0
0.005038
0.165966
476
12
94
39.666667
0.838791
0.191176
0
0.181818
0
0
0.516971
0
0
0
0
0
0
1
0
false
0
0
0
0
0.636364
0
0
0
null
0
0
0
0
0
0
0
0
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
b2c77fe3a976d291e072794eca3072e0c50a2953
3,044
py
Python
docs/tools/chineselink.py
nbl97/nni
1530339d3e964a5ea95a0afde1775ec9167cdcc0
[ "MIT" ]
2,305
2018-09-07T12:42:26.000Z
2019-05-06T20:14:24.000Z
docs/tools/chineselink.py
nbl97/nni
1530339d3e964a5ea95a0afde1775ec9167cdcc0
[ "MIT" ]
379
2018-09-10T10:19:50.000Z
2019-05-06T18:04:46.000Z
docs/tools/chineselink.py
nbl97/nni
1530339d3e964a5ea95a0afde1775ec9167cdcc0
[ "MIT" ]
314
2018-09-08T05:36:08.000Z
2019-05-06T08:48:51.000Z
""" This is to keep Chinese doc update to English doc. Should be run regularly. There is no sane way to check the contents though. PR review should enforce contributors to update the corresponding translation. See https://github.com/microsoft/nni/issues/4298 for discussion. Under docs, run python tools/chineselin...
33.822222
129
0.624507
396
3,044
4.684343
0.396465
0.047439
0.027493
0.016173
0.059299
0.03558
0.03558
0
0
0
0
0.007888
0.250329
3,044
89
130
34.202247
0.804996
0.210907
0
0.145161
0
0.016129
0.148241
0.008794
0
0
0
0.011236
0
1
0.032258
false
0
0.064516
0
0.145161
0.048387
0
0
0
null
0
0
0
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
b2c797d85e677d45934a8ea59c2b8506a4d5ec82
1,586
py
Python
examples/attributes.py
stevenj/PynamoDB
362d98c241f84d6a43d53bf0cc9dcd055e84a2fa
[ "MIT" ]
3
2017-06-06T07:38:48.000Z
2021-07-21T21:38:34.000Z
examples/attributes.py
stevenj/PynamoDB
362d98c241f84d6a43d53bf0cc9dcd055e84a2fa
[ "MIT" ]
8
2016-03-28T21:22:04.000Z
2016-11-01T18:01:21.000Z
examples/attributes.py
stevenj/PynamoDB
362d98c241f84d6a43d53bf0cc9dcd055e84a2fa
[ "MIT" ]
4
2019-08-17T20:02:28.000Z
2020-12-01T01:11:25.000Z
""" A PynamoDB example using a custom attribute """ from __future__ import print_function import pickle from pynamodb.attributes import BinaryAttribute, UnicodeAttribute from pynamodb.models import Model class Color(object): """ This class is used to demonstrate the PickleAttribute below """ def __ini...
25.174603
76
0.69546
182
1,586
5.945055
0.483516
0.022181
0.029575
0
0
0
0
0
0
0
0
0.004804
0.212484
1,586
62
77
25.580645
0.861489
0.249054
0
0
0
0
0.047144
0
0
0
0
0
0
1
0.133333
false
0
0.133333
0.066667
0.566667
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
b2d53161589a21cb842288374fff91bd94436931
9,121
py
Python
graph.py
andrehigher/kg_path_entropy
bf807e6ffa8359bfb7cba770a3edc5159eb54f82
[ "MIT" ]
null
null
null
graph.py
andrehigher/kg_path_entropy
bf807e6ffa8359bfb7cba770a3edc5159eb54f82
[ "MIT" ]
null
null
null
graph.py
andrehigher/kg_path_entropy
bf807e6ffa8359bfb7cba770a3edc5159eb54f82
[ "MIT" ]
null
null
null
""" A Python Class A simple Python graph class to do essential operations into graph. """ import operator import math from random import choice from collections import defaultdict import networkx as nx class Graph(): def __init__(self, graph): """ Initializes util object. """ self.__graph ...
42.423256
139
0.544348
961
9,121
4.979188
0.152966
0.073354
0.037618
0.027795
0.246395
0.172414
0.11139
0.06604
0.02884
0.02884
0
0.013223
0.353251
9,121
214
140
42.621495
0.797932
0.047363
0
0.161972
0
0
0.030295
0
0
0
0
0
0
0
null
null
0.021127
0.035211
null
null
0.140845
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
b2e06dd1f090d4012121a056dac7415a890dc79a
327
py
Python
amoravski-Online_Store_Django/Online_Store_Django/Online_Store/migrations/0002_auto_20210223_0837.py
amoravski/training-projects
0392bcbc911695884defba553c275d94014c9e7e
[ "Apache-2.0" ]
null
null
null
amoravski-Online_Store_Django/Online_Store_Django/Online_Store/migrations/0002_auto_20210223_0837.py
amoravski/training-projects
0392bcbc911695884defba553c275d94014c9e7e
[ "Apache-2.0" ]
null
null
null
amoravski-Online_Store_Django/Online_Store_Django/Online_Store/migrations/0002_auto_20210223_0837.py
amoravski/training-projects
0392bcbc911695884defba553c275d94014c9e7e
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1.7 on 2021-02-23 08:37 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('Online_Store', '0001_initial'), ] operations = [ migrations.RenameModel( old_name='Product', new_name='Products', ),...
18.166667
47
0.590214
35
327
5.4
0.857143
0
0
0
0
0
0
0
0
0
0
0.082609
0.296636
327
17
48
19.235294
0.73913
0.137615
0
0
1
0
0.139286
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b2e220d737506110b39a86c32511127908f17d47
30,298
py
Python
day7/day7.py
Toilal/adventofcode-2017
157ba059f9892f1222e660614582fdf4d9150ba5
[ "Unlicense" ]
null
null
null
day7/day7.py
Toilal/adventofcode-2017
157ba059f9892f1222e660614582fdf4d9150ba5
[ "Unlicense" ]
null
null
null
day7/day7.py
Toilal/adventofcode-2017
157ba059f9892f1222e660614582fdf4d9150ba5
[ "Unlicense" ]
null
null
null
input = """ xsddbi (61) nqtowev (11) xwohr (82) flejt (36) idwpug (54) uoxzkp (51) choeijs (54) gmsjkn (65) txszqu (687) -> mvjqmad, lwqlyjq, jlgnsu zhlfdac (15) htouwcr (74) vlbsr (56) titbn (9) bvrpb (86) wuwjp (54) umnqkb (160) -> nbrvl, bcmbao, vfimqtl uwnml (29) cdvhmy (42) xghhu (306) -> molth, atqewc vcvayah (71...
20.823368
74
0.677602
4,334
30,298
4.735348
0.413244
0.001559
0.000975
0
0
0
0
0
0
0
0
0.124995
0.161628
30,298
1,454
75
20.837689
0.682965
0
0
0
0
0
0.983989
0
0
0
0
0
0
1
0
false
0
0.000693
0
0.000693
0.000693
0
0
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
b2e783b7e230cb960f996f41e02b6dbfbd486da0
1,437
py
Python
Lib/objc/_CoreFollowUp.py
snazari/Pyto
bcea7bbef35cab21ce73087b1a0c00a07d07ec72
[ "MIT" ]
701
2018-10-22T11:54:09.000Z
2022-03-31T14:39:30.000Z
Lib/objc/_CoreFollowUp.py
snazari/Pyto
bcea7bbef35cab21ce73087b1a0c00a07d07ec72
[ "MIT" ]
229
2018-10-24T09:15:31.000Z
2021-12-24T16:51:37.000Z
Lib/objc/_CoreFollowUp.py
snazari/Pyto
bcea7bbef35cab21ce73087b1a0c00a07d07ec72
[ "MIT" ]
131
2018-11-25T18:33:03.000Z
2022-03-24T03:18:07.000Z
""" Classes from the 'CoreFollowUp' framework. """ try: from rubicon.objc import ObjCClass except ValueError: def ObjCClass(name): return None def _Class(name): try: return ObjCClass(name) except NameError: return None FLApprovedItemsFilter = _Class("FLApprovedItemsFilter")...
34.214286
75
0.811413
95
1,437
12.031579
0.421053
0.022747
0
0
0
0
0
0
0
0
0
0.003082
0.096729
1,437
41
76
35.04878
0.877504
0.029228
0
0.125
0
0
0.311464
0.174477
0
0
0
0
0
1
0.0625
false
0.03125
0.03125
0.03125
0.1875
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b2f29d4c4f24972abeb7b1e196c3848c5832689d
991
py
Python
plugins/__init__.py
shopee-jin/airflow-backfill-util
717666bfa31f2bf476e9f9aed1c989584d72e858
[ "MIT" ]
47
2020-02-14T00:04:01.000Z
2022-03-23T03:39:28.000Z
plugins/__init__.py
shopee-jin/airflow-backfill-util
717666bfa31f2bf476e9f9aed1c989584d72e858
[ "MIT" ]
6
2020-07-06T16:11:18.000Z
2020-12-19T07:50:44.000Z
plugins/__init__.py
shopee-jin/airflow-backfill-util
717666bfa31f2bf476e9f9aed1c989584d72e858
[ "MIT" ]
18
2020-02-11T23:35:32.000Z
2022-03-31T06:51:41.000Z
# -*- coding: utf-8 -*- # Inbuilt Imports from flask import Blueprint from airflow.plugins_manager import AirflowPlugin from airflow import configuration # Backfill Plugin Imports from backfill.main import Backfill # Get RBAC config. rbac_authentication_enabled = configuration.getboolean("webserver", "RBAC") # Init...
33.033333
90
0.765893
115
991
6.382609
0.452174
0.070845
0.092643
0.06812
0
0
0
0
0
0
0
0.001176
0.142281
991
30
91
33.033333
0.862353
0.240161
0
0
0
0
0.130027
0
0
0
0
0
0
1
0
false
0
0.235294
0
0.529412
0.235294
0
0
0
null
0
0
0
0
0
0
0
0
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
b2f4110fb5b200e5179f5ebd8f151361a08cd82a
656
py
Python
acmicpc/18429/18429.py
love-adela/algorithm
4ccd02173c96f8369962f1fd4e5166a221690fa2
[ "MIT" ]
3
2019-03-09T05:19:23.000Z
2019-04-06T09:26:36.000Z
acmicpc/18429/18429.py
love-adela/algorithm
4ccd02173c96f8369962f1fd4e5166a221690fa2
[ "MIT" ]
1
2020-02-23T10:38:04.000Z
2020-02-23T10:38:04.000Z
acmicpc/18429/18429.py
love-adela/algorithm
4ccd02173c96f8369962f1fd4e5166a221690fa2
[ "MIT" ]
1
2019-05-22T13:47:53.000Z
2019-05-22T13:47:53.000Z
# Bruteforce from itertools import permutations N, K = map(int, input().split()) kit = list(map(int, input().split())) def is_satisfied(w)->bool: if w >= 0: # weight가 0 이상인지만 확인 return True return False def check(seq:tuple)->bool: weight = 0 for i in seq: weight += kit[i] weigh...
22.62069
60
0.629573
93
656
4.397849
0.473118
0.02934
0.05379
0.07824
0
0
0
0
0
0
0
0.010163
0.25
656
28
61
23.428571
0.821138
0.083841
0
0.173913
0
0
0
0
0
0
0
0.035714
0
1
0.130435
false
0
0.043478
0.043478
0.391304
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
b2f8bbf3312bd75ee01445e75ab5aba3b78b622b
17,148
py
Python
spectral_cube/conftest.py
e-koch/spectral-cube
c1f3654428df63f1daf2d0eae4446f1aec1145b3
[ "BSD-3-Clause" ]
67
2015-01-16T15:02:55.000Z
2022-01-12T09:21:11.000Z
spectral_cube/conftest.py
e-koch/spectral-cube
c1f3654428df63f1daf2d0eae4446f1aec1145b3
[ "BSD-3-Clause" ]
614
2015-01-06T13:31:56.000Z
2022-03-30T16:28:19.000Z
spectral_cube/conftest.py
e-koch/spectral-cube
c1f3654428df63f1daf2d0eae4446f1aec1145b3
[ "BSD-3-Clause" ]
51
2015-05-05T16:02:51.000Z
2022-01-11T14:10:45.000Z
# this contains imports plugins that configure py.test for astropy tests. # by importing them here in conftest.py they are discoverable by py.test # no matter how it is invoked within the source tree. from __future__ import print_function, absolute_import, division import os from distutils.version import LooseVersion ...
30.137083
116
0.614474
2,619
17,148
3.858725
0.106147
0.019592
0.050663
0.059371
0.773798
0.707599
0.616465
0.523254
0.47358
0.448743
0
0.03725
0.229764
17,148
568
117
30.190141
0.727892
0.08794
0
0.535545
0
0
0.123982
0.03207
0
0
0
0
0.004739
1
0.101896
false
0.00237
0.047393
0.00237
0.248815
0.00237
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
b2fa611bde017fdd57782ec336f6743557943ddb
1,050
py
Python
signbank/dictionary/migrations/0006_auto_20170628_1643.py
gstvob/SignBank-Brasil
16a7b2341e56a098de828bda132da2e38815f2ec
[ "BSD-3-Clause" ]
11
2018-01-27T17:28:40.000Z
2021-11-08T09:02:08.000Z
signbank/dictionary/migrations/0006_auto_20170628_1643.py
gstvob/SignBank-Brasil
16a7b2341e56a098de828bda132da2e38815f2ec
[ "BSD-3-Clause" ]
467
2018-01-25T11:23:27.000Z
2022-03-31T14:51:22.000Z
signbank/dictionary/migrations/0006_auto_20170628_1643.py
gstvob/SignBank-Brasil
16a7b2341e56a098de828bda132da2e38815f2ec
[ "BSD-3-Clause" ]
9
2018-03-02T10:36:29.000Z
2021-06-11T15:25:25.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-06-28 14:43 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('dictionary', '0005_auto_20170601_1013'), ] operation...
35
144
0.646667
107
1,050
6.168224
0.570093
0.048485
0.063636
0.1
0.193939
0.193939
0.193939
0.193939
0.193939
0.193939
0
0.04321
0.228571
1,050
29
145
36.206897
0.771605
0.062857
0
0.090909
1
0
0.183486
0.088685
0
0
0
0
0
1
0
false
0
0.136364
0
0.272727
0
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
b2fd590ebd1e9d5364124b8f221861bb9630730b
1,278
py
Python
learning_deep_learning/activation.py
knutdrand/learning_deep_learning
e494877ed4f6707dff84316bccf3dc18c020e786
[ "MIT" ]
null
null
null
learning_deep_learning/activation.py
knutdrand/learning_deep_learning
e494877ed4f6707dff84316bccf3dc18c020e786
[ "MIT" ]
null
null
null
learning_deep_learning/activation.py
knutdrand/learning_deep_learning
e494877ed4f6707dff84316bccf3dc18c020e786
[ "MIT" ]
null
null
null
from collections import namedtuple from scipy.special import expit import numpy as np from .mapping import Mapping class Activation(Mapping): pass # Activation = namedtuple("Activation", ["forward", "backward"]) class Relu(Activation): @staticmethod def forward(x): return np.where(x>0, x, 0) ...
24.576923
80
0.57903
180
1,278
4.1
0.277778
0.054201
0.101626
0.130081
0.425474
0.252033
0.252033
0.149051
0.065041
0.065041
0
0.010406
0.248044
1,278
51
81
25.058824
0.757544
0.204225
0
0.40625
0
0
0
0
0
0
0
0
0
1
0.1875
false
0.03125
0.125
0.0625
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
65048d30a2ca20c4c7dad70aa758d0d27f38f9cc
1,875
py
Python
python/parallel-gc/basic/pipe00.py
ASMlover/study
5878f862573061f94c5776a351e30270dfd9966a
[ "BSD-2-Clause" ]
22
2015-05-18T07:04:36.000Z
2021-08-02T03:01:43.000Z
python/parallel-gc/basic/pipe00.py
ASMlover/study
5878f862573061f94c5776a351e30270dfd9966a
[ "BSD-2-Clause" ]
1
2017-08-31T22:13:57.000Z
2017-09-05T15:00:25.000Z
python/parallel-gc/basic/pipe00.py
ASMlover/study
5878f862573061f94c5776a351e30270dfd9966a
[ "BSD-2-Clause" ]
6
2015-06-06T07:16:12.000Z
2021-07-06T13:45:56.000Z
#!/usr/bin/env python # -*- coding: UTF-8 -*- # # Copyright (c) 2019 ASMlover. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code must retain the above copyright...
32.327586
70
0.709867
276
1,875
4.778986
0.51087
0.009098
0.01213
0.034875
0.083397
0.047005
0
0
0
0
0
0.005355
0.2032
1,875
57
71
32.894737
0.87751
0.712
0
0.086957
0
0
0.152642
0
0
0
0
0
0
0
null
null
0
0.086957
null
null
0.086957
0
0
0
null
0
0
0
0
0
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
650707e874e0b60ddc824e9541c0e9384f0fac42
834
py
Python
src/simpleencoderdecoder/main_simple_encoderdecoder.py
yogeshhk/MidcurveNN
98e11abdac1c6ab5c76e59dcbdd9ce8c08549a67
[ "MIT" ]
22
2019-06-08T03:25:06.000Z
2022-01-15T19:35:38.000Z
src/simpleencoderdecoder/main_simple_encoderdecoder.py
yogeshhk/MidcurveNN
98e11abdac1c6ab5c76e59dcbdd9ce8c08549a67
[ "MIT" ]
5
2019-10-06T08:10:24.000Z
2021-12-08T01:33:44.000Z
src/simpleencoderdecoder/main_simple_encoderdecoder.py
yogeshhk/MidcurveNN
98e11abdac1c6ab5c76e59dcbdd9ce8c08549a67
[ "MIT" ]
7
2019-07-06T05:16:32.000Z
2021-12-09T09:35:03.000Z
from utils.prepare_data import get_training_data from utils.prepare_plots import plot_results from simpleencoderdecoder.build_simple_encoderdecoder_model import simple_encoderdecoder import random import numpy as np if __name__ == "__main__": profile_gray_objs, midcurve_gray_objs = get_training_data() test_gra...
39.714286
88
0.81295
113
834
5.495575
0.353982
0.115942
0.120773
0.074074
0.228663
0.228663
0
0
0
0
0
0.013699
0.1247
834
20
89
41.7
0.836986
0
0
0
0
0
0.009592
0
0
0
0
0
0
1
0
false
0
0.3125
0
0.3125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
6511958e6dc0452f5ebaa3604ff47c1066882570
4,147
py
Python
Enigma/Enigma-master/Classical_Gan/classical_gan.py
Q-Alpha/Hackathon2020
c0ed45b4c1cc4f475f83786e641b859dad94f863
[ "MIT" ]
12
2020-07-23T17:11:22.000Z
2022-02-03T12:44:56.000Z
Enigma/Enigma-master/Classical_Gan/classical_gan.py
Q-Alpha/Hackathon2020
c0ed45b4c1cc4f475f83786e641b859dad94f863
[ "MIT" ]
1
2020-07-28T13:35:51.000Z
2020-07-28T13:35:51.000Z
Enigma/Enigma-master/Classical_Gan/classical_gan.py
Q-Alpha/Hackathon2020
c0ed45b4c1cc4f475f83786e641b859dad94f863
[ "MIT" ]
25
2020-07-22T14:32:17.000Z
2021-09-08T11:43:55.000Z
import tensorflow as tf import numpy as np import random import time import os from tensorflow.keras import layers cross_entropy = tf.keras.losses.BinaryCrossentropy(from_logits=True) generator_optimizer = tf.keras.optimizers.Adam(1e-4) discriminator_optimizer = tf.keras.optimizers.Adam(1e-4) #The Generator Model de...
37.36036
115
0.670123
527
4,147
5.087287
0.239089
0.056695
0.099217
0.032824
0.348004
0.315181
0.26893
0.158896
0.145095
0.104812
0
0.026397
0.214372
4,147
111
116
37.36036
0.796501
0
0
0.179487
0
0
0.019447
0.005485
0
0
0
0
0.051282
0
null
null
0
0.076923
null
null
0.012821
0
0
0
null
0
0
0
0
0
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
65132dcaa0de4a1e6af38da924f1b1fdba72f741
1,884
py
Python
predefined_functions/initialisation.py
g-make-it/IG_Trading_Algo_Scripts_Python
931f1d568f8e89fbaac56aa5ec58473bbed606f6
[ "BSD-3-Clause" ]
186
2021-09-05T10:03:01.000Z
2022-03-08T05:47:04.000Z
predefined_functions/initialisation.py
g-make-it/IG_Trading_Algo_Scripts_Python
931f1d568f8e89fbaac56aa5ec58473bbed606f6
[ "BSD-3-Clause" ]
1
2021-11-19T21:56:55.000Z
2021-12-29T18:21:29.000Z
predefined_functions/initialisation.py
g-make-it/IG_Trading_Algo_Scripts_Python
931f1d568f8e89fbaac56aa5ec58473bbed606f6
[ "BSD-3-Clause" ]
32
2021-09-05T11:46:32.000Z
2022-03-22T08:23:38.000Z
from trading_ig import IGService from trading_ig.config import config import logging logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) # if you need to cache to DB your requests from datetime import timedelta import requests_cache class Initialisation(): def __init__(self): logging.bas...
33.052632
121
0.608811
229
1,884
4.851528
0.454148
0.049505
0.032403
0.016202
0.106211
0.082808
0.082808
0
0
0
0
0.008494
0.312633
1,884
56
122
33.642857
0.849421
0.305202
0
0.121212
0
0.030303
0.099537
0.070988
0
0
0
0
0
1
0.090909
false
0.060606
0.151515
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1