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
2f63902e9ecf149183367606644ee66f891a66bd
567
py
Python
kattis/Bard.py
jaredliw/python-question-bank
9c8c246623d8d171f875700b57772df0afcbdcdf
[ "MIT" ]
1
2021-04-08T07:49:15.000Z
2021-04-08T07:49:15.000Z
kattis/Bard.py
jaredliw/leetcode-solutions
9c8c246623d8d171f875700b57772df0afcbdcdf
[ "MIT" ]
null
null
null
kattis/Bard.py
jaredliw/leetcode-solutions
9c8c246623d8d171f875700b57772df0afcbdcdf
[ "MIT" ]
1
2022-01-23T02:12:24.000Z
2022-01-23T02:12:24.000Z
# CPU: 0.08 s n_villagers = int(input()) villagers = {key: set() for key in range(1, n_villagers + 1)} song_counter = 0 for _ in range(int(input())): _, *participants = map(int, input().split()) if 1 in participants: song_counter += 1 for participant in participants: villagers[participant].add(song_counter) e...
28.35
61
0.712522
79
567
5.012658
0.35443
0.111111
0.121212
0.212121
0.277778
0.277778
0.277778
0.277778
0
0
0
0.016913
0.165785
567
19
62
29.842105
0.820296
0.0194
0
0.176471
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.058824
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2f6afccb32b166d59e4d12a9e9a5e0ed7b159b15
836
py
Python
tests/run_test_actor.py
sdss/baseCam
d5222f2c93df8e5b6ef894f32eca28b1cd3b3616
[ "BSD-3-Clause" ]
null
null
null
tests/run_test_actor.py
sdss/baseCam
d5222f2c93df8e5b6ef894f32eca28b1cd3b3616
[ "BSD-3-Clause" ]
18
2020-01-13T20:57:48.000Z
2021-06-22T14:43:16.000Z
tests/run_test_actor.py
sdss/basecam
526f8be1b7c83e087e8f78484e63ba18531dce87
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # @Author: José Sánchez-Gallego (gallegoj@uw.edu) # @Date: 2019-10-10 # @Filename: run_test_actor.py # @License: BSD 3-clause (http://www.opensource.org/licenses/BSD-3-Clause) import asyncio import os from basecam.actor import CameraActor from .conftest import CameraSy...
25.333333
88
0.751196
114
836
5.22807
0.578947
0.050336
0.033557
0
0
0
0
0
0
0
0
0.014966
0.120813
836
32
89
26.125
0.795918
0.251196
0
0
0
0
0.06462
0.033926
0
0
0
0
0
1
0
false
0
0.307692
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
2f6b8abe6963e557b46859c148b4219d0820943c
2,552
py
Python
nlpaug/augmenter/sentence/random.py
techthiyanes/nlpaug
bb2fc63349bf949f6f6047ff447a0efb16983c0a
[ "MIT" ]
3,121
2019-04-21T07:02:47.000Z
2022-03-31T22:17:36.000Z
nlpaug/augmenter/sentence/random.py
techthiyanes/nlpaug
bb2fc63349bf949f6f6047ff447a0efb16983c0a
[ "MIT" ]
186
2019-05-31T18:18:13.000Z
2022-03-28T10:11:05.000Z
nlpaug/augmenter/sentence/random.py
techthiyanes/nlpaug
bb2fc63349bf949f6f6047ff447a0efb16983c0a
[ "MIT" ]
371
2019-03-17T17:59:56.000Z
2022-03-31T01:45:15.000Z
""" Augmenter that apply operation (sentence level) to textual input based on abstractive summarization. """ import os from nlpaug.augmenter.sentence import SentenceAugmenter import nlpaug.model.word_rule as nmr from nlpaug.util import Action, Doc class RandomSentAug(SentenceAugmenter): """ Augmenter ...
36.985507
118
0.664969
340
2,552
4.861765
0.373529
0.050817
0.059286
0.048397
0.174834
0.145796
0.085904
0.043557
0
0
0
0.008403
0.253919
2,552
68
119
37.529412
0.859769
0.454545
0
0.193548
0
0
0.023646
0
0
0
0
0.014706
0
1
0.096774
false
0
0.129032
0.032258
0.419355
0
0
0
0
null
0
0
0
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
2f6de1cd420d4151546e23ab019d34d35b58c118
331
py
Python
Woodall_Robert/Assignments/python_fundamentals/multiply.py
webguru001/Python-Django-Web
6264bc4c90ef1432ba0902c76b567cf3caaae221
[ "MIT" ]
5
2019-05-17T01:30:02.000Z
2021-06-17T21:02:58.000Z
Woodall_Robert/Assignments/python_fundamentals/multiply.py
curest0x1021/Python-Django-Web
6264bc4c90ef1432ba0902c76b567cf3caaae221
[ "MIT" ]
null
null
null
Woodall_Robert/Assignments/python_fundamentals/multiply.py
curest0x1021/Python-Django-Web
6264bc4c90ef1432ba0902c76b567cf3caaae221
[ "MIT" ]
null
null
null
''' Create a function called 'multiply' that reads each value in a list and returns a list where each value has been multiplied by 5. ''' def multiply(input, multiplier): newList = [] for index in range(len(input)): newList.append(input[index] * multiplier) return newList a = [2, 4, 10, 16] b = multiply(a, ...
17.421053
68
0.691843
53
331
4.320755
0.660377
0.078603
0
0
0
0
0
0
0
0
0
0.030075
0.196375
331
18
69
18.388889
0.830827
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
2f6f434c1348374c2f138ff6f8cdafb540bafc0b
3,973
py
Python
common/src/stack/ansible/plugins/modules/stacki_storage_controller_info.py
sammeidinger/stack
a8085dce179dbe903f65f136f4b63bcc076cc057
[ "BSD-3-Clause" ]
123
2015-05-12T23:36:45.000Z
2017-07-05T23:26:57.000Z
common/src/stack/ansible/plugins/modules/stacki_storage_controller_info.py
sammeidinger/stack
a8085dce179dbe903f65f136f4b63bcc076cc057
[ "BSD-3-Clause" ]
177
2015-06-05T19:17:47.000Z
2017-07-07T17:57:24.000Z
common/src/stack/ansible/plugins/modules/stacki_storage_controller_info.py
sammeidinger/stack
a8085dce179dbe903f65f136f4b63bcc076cc057
[ "BSD-3-Clause" ]
32
2015-06-07T02:25:03.000Z
2017-06-23T07:35:35.000Z
# @copyright@ # Copyright (c) 2006 - 2020 Teradata # All rights reserved. Stacki(r) v5.x stacki.com # https://github.com/Teradata/stacki/blob/master/LICENSE.txt # @copyright@ DOCUMENTATION = """ module: stacki_storage_controller_info short_description: Return data about Stacki storage controllers description: - If n...
23.098837
93
0.666247
505
3,973
5.170297
0.30297
0.034853
0.017235
0.041363
0.248181
0.233627
0.128686
0.108771
0.029874
0.029874
0
0.002995
0.243645
3,973
172
94
23.098837
0.86589
0.112006
0
0.354331
0
0.007874
0.722538
0.041548
0
0
0
0
0
1
0.007874
false
0
0.015748
0
0.023622
0
0
0
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
2f7b95524678f72f18ac4fbce94a9af1eb835a11
2,053
py
Python
test/test_sources.py
Chaz6/osm-export-tool-python
be30d440bf813a870936320a93923197da9fbc8a
[ "BSD-3-Clause" ]
30
2019-07-02T04:38:27.000Z
2022-03-21T08:11:37.000Z
test/test_sources.py
Chaz6/osm-export-tool-python
be30d440bf813a870936320a93923197da9fbc8a
[ "BSD-3-Clause" ]
22
2019-07-27T00:13:26.000Z
2021-12-12T07:46:32.000Z
test/test_sources.py
Chaz6/osm-export-tool-python
be30d440bf813a870936320a93923197da9fbc8a
[ "BSD-3-Clause" ]
7
2019-07-17T23:20:09.000Z
2021-07-22T10:30:42.000Z
import unittest from osm_export_tool.sources import Overpass from osm_export_tool.mapping import Mapping class TestMappingToOverpass(unittest.TestCase): def test_mapping(self): y = ''' buildings: types: - points select: - column1 ...
34.216667
93
0.53434
215
2,053
5.046512
0.339535
0.058065
0.077419
0.073733
0.208295
0.058986
0.058986
0
0
0
0
0.020704
0.294204
2,053
60
94
34.216667
0.728088
0.024842
0
0.196078
0
0
0.463268
0.031484
0
0
0
0
0.196078
1
0.117647
false
0.215686
0.058824
0
0.215686
0
0
0
0
null
0
0
0
0
0
0
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
2f815e5a3769fe4cc56577139adea550a172af6d
1,918
py
Python
senlin_dashboard/test/helpers.py
sangtq-vn/senlin-dashboard
fef54bb8bd95cfbe34679ba6e1c47a6842f59e6e
[ "Apache-2.0" ]
18
2015-10-18T02:56:51.000Z
2020-01-08T02:35:25.000Z
senlin_dashboard/test/helpers.py
stackforge/senlin-dashboard
834286c79b89ea7230318d48806753736e7e8cee
[ "Apache-2.0" ]
null
null
null
senlin_dashboard/test/helpers.py
stackforge/senlin-dashboard
834286c79b89ea7230318d48806753736e7e8cee
[ "Apache-2.0" ]
6
2016-03-29T14:00:02.000Z
2021-11-29T14:51:38.000Z
# Copyright 2015 Huawei Technologies Co., Ltd. # # 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 applic...
30.935484
78
0.736184
242
1,918
5.723141
0.466942
0.043321
0.045487
0.023105
0.034657
0
0
0
0
0
0
0.005158
0.191345
1,918
61
79
31.442623
0.887814
0.394682
0
0
0
0
0.010499
0
0
0
0
0
0
1
0.185185
false
0.037037
0.148148
0.037037
0.518519
0
0
0
0
null
0
0
0
0
0
0
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
2f82fa139f5b668c3f95c558b2cd61f54f9776b0
5,205
py
Python
social_network/__init__.py
diana-gv/django-social-network
48bafca81f28874ceead59e263ce5b7e3853dbfb
[ "BSD-3-Clause" ]
3
2015-01-13T05:45:04.000Z
2020-01-10T19:05:35.000Z
social_network/__init__.py
diana-gv/django-social-network
48bafca81f28874ceead59e263ce5b7e3853dbfb
[ "BSD-3-Clause" ]
null
null
null
social_network/__init__.py
diana-gv/django-social-network
48bafca81f28874ceead59e263ce5b7e3853dbfb
[ "BSD-3-Clause" ]
6
2015-01-13T04:40:53.000Z
2021-08-13T01:07:40.000Z
# coding=utf-8 import logging from django.contrib.auth import get_user_model from django.contrib.sites.models import Site from django.utils.translation import ugettext_lazy as _ from social_graph import Graph from .signals import ( follower_relationship_created, follower_relationship_destroyed, friendship_c...
26.287879
117
0.738905
740
5,205
4.863514
0.148649
0.058072
0.04279
0.033343
0.46763
0.388719
0.327313
0.268964
0.238955
0.201445
0
0.001561
0.138521
5,205
198
118
26.287879
0.80107
0.02171
0
0.072072
0
0
0.08081
0.010814
0
0
0
0
0
1
0.189189
false
0
0.063063
0.108108
0.441441
0
0
0
0
null
0
0
0
0
0
0
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
2f8501426369d572ad52122b81da0c9614aed481
8,223
py
Python
utils/datasets/transforms.py
wooramkang/competition___
5f2e409032f2eddc9d0a8237058129ca2d199b68
[ "MIT" ]
null
null
null
utils/datasets/transforms.py
wooramkang/competition___
5f2e409032f2eddc9d0a8237058129ca2d199b68
[ "MIT" ]
null
null
null
utils/datasets/transforms.py
wooramkang/competition___
5f2e409032f2eddc9d0a8237058129ca2d199b68
[ "MIT" ]
null
null
null
from __future__ import division try: import caffe except: pass import torch import math import random from PIL import Image, ImageOps try: import accimage except ImportError: accimage = None import numpy as np import numbers import types import collections import torchvision.transforms.functional as F ...
28.064846
99
0.576675
1,052
8,223
4.410646
0.205323
0.031034
0.026078
0.024138
0.314009
0.2875
0.250862
0.234483
0.215517
0.215517
0
0.008909
0.317524
8,223
292
100
28.160959
0.81789
0.473671
0
0.330097
0
0
0
0
0
0
0
0.003425
0.058252
1
0.174757
false
0.009709
0.126214
0.009709
0.504854
0
0
0
0
null
0
0
0
0
0
0
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
2f8c41a19ca1868dd543d8d2fd92d483e58c8ddf
614
py
Python
bottleneck/benchmark/autotimeit.py
annuupadhyayPS/bottleneck
147ef9a71349eef6a19df14f99b6983fcf89d671
[ "BSD-2-Clause" ]
372
2019-08-15T02:10:45.000Z
2022-03-29T12:35:59.000Z
bottleneck/benchmark/autotimeit.py
ossdev07/bottleneck
d0e44690e369b636cdb1849be6a9bc819e48807d
[ "BSD-2-Clause" ]
120
2019-08-14T01:09:57.000Z
2022-03-19T13:46:30.000Z
bottleneck/benchmark/autotimeit.py
ossdev07/bottleneck
d0e44690e369b636cdb1849be6a9bc819e48807d
[ "BSD-2-Clause" ]
46
2019-08-27T15:58:26.000Z
2022-03-19T09:55:21.000Z
import timeit from typing import Tuple def autotimeit( stmt: str, setup: str = "pass", repeat: int = 3, mintime: float = 0.2 ) -> float: timer = timeit.Timer(stmt, setup) number, time1 = autoscaler(timer, mintime) time2 = timer.repeat(repeat=repeat - 1, number=number) return min(time2 + [time1]) /...
27.909091
73
0.635179
80
614
4.8625
0.5125
0.084833
0.082262
0
0
0
0
0
0
0
0
0.0282
0.249186
614
21
74
29.238095
0.815618
0
0
0
0
0
0.052117
0
0
0
0
0
0
1
0.117647
false
0.058824
0.117647
0
0.352941
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
2f8dbcac892128c760a327daae86e8390e867266
656
py
Python
mathgenerator/funcs/algebra/midpoint_of_two_points.py
Sankari-K/mathgenerator
712c74fbe34fe594c4c0f7e3b3057b01d85112ba
[ "MIT" ]
40
2020-10-14T17:29:51.000Z
2020-11-01T04:41:03.000Z
mathgenerator/funcs/algebra/midpoint_of_two_points.py
Sankari-K/mathgenerator
712c74fbe34fe594c4c0f7e3b3057b01d85112ba
[ "MIT" ]
209
2020-10-14T15:32:08.000Z
2020-11-03T19:08:19.000Z
mathgenerator/funcs/algebra/midpoint_of_two_points.py
Sankari-K/mathgenerator
712c74fbe34fe594c4c0f7e3b3057b01d85112ba
[ "MIT" ]
179
2020-10-14T15:36:55.000Z
2020-10-29T19:26:16.000Z
from .__init__ import * def gen_func(maxValue=20, format='string'): x1 = random.randint(-20, maxValue) y1 = random.randint(-20, maxValue) x2 = random.randint(-20, maxValue) y2 = random.randint(-20, maxValue) xm = (x1 + x2) / 2 ym = (y1 + y2) / 2 if format == 'string': problem = f"...
27.333333
67
0.54878
83
656
4.228916
0.421687
0.148148
0.17094
0.262108
0
0
0
0
0
0
0
0.068817
0.291159
656
23
68
28.521739
0.686022
0
0
0
0
0
0.160061
0.036585
0
0
0
0
0
1
0.055556
false
0
0.055556
0
0.277778
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
2f94c84f70dad86621553b81001c9813a10825da
12,386
py
Python
Final Project/ROI.gen.py
Krista-Pipho/Bioinformatics
9c4b211f3729aa4b05f352b770e327d297deb337
[ "MIT" ]
null
null
null
Final Project/ROI.gen.py
Krista-Pipho/Bioinformatics
9c4b211f3729aa4b05f352b770e327d297deb337
[ "MIT" ]
null
null
null
Final Project/ROI.gen.py
Krista-Pipho/Bioinformatics
9c4b211f3729aa4b05f352b770e327d297deb337
[ "MIT" ]
null
null
null
from ij import IJ from ij.plugin.frame import RoiManager from ij.gui import Roi from ij.gui import Overlay from ij import ImagePlus from ij.plugin import ChannelSplitter from ij import measure from ij.plugin.filter import Analyzer from ij.measure import ResultsTable from ij import WindowManager from java.io import File...
34.027473
237
0.715808
1,934
12,386
4.509307
0.226991
0.009173
0.010435
0.0086
0.177044
0.135306
0.12682
0.09609
0.068111
0.063525
0
0.009929
0.203133
12,386
363
238
34.121212
0.873658
0
0
0.237805
0
0
0.04624
0.009581
0
0
0
0
0
0
null
null
0
0.085366
null
null
0.018293
0
0
0
null
0
0
0
0
0
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
2f9999fb7e0a0ffa1363366f7c683a7fee0c73f2
240
py
Python
exercises/pt/solution_03_03.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/pt/solution_03_03.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/pt/solution_03_03.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
import spacy # Carregue o fluxo de procesamento en_core_web_sm nlp = spacy.load("pt_core_news_sm") # Imprima o nome dos componentes do fluxo print(nlp.pipe_names) # Imprima as informações das tuplas (name, component) print(nlp.pipeline)
21.818182
53
0.7875
39
240
4.666667
0.769231
0.087912
0
0
0
0
0
0
0
0
0
0
0.1375
240
10
54
24
0.879227
0.579167
0
0
0
0
0.154639
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
2f9b38a2b101d0aa4e5b8645be69117638314b66
624
py
Python
src/waldur_mastermind/marketplace_remote/log.py
waldur/waldur-mastermind
70ce819d9632c9362841ca8889f3519e1e542ffd
[ "MIT" ]
4
2021-11-22T23:05:14.000Z
2022-03-02T10:11:40.000Z
src/waldur_mastermind/marketplace_remote/log.py
opennode/nodeconductor-assembly-waldur
cad9966389dc9b52b13d2301940c99cf4b243900
[ "MIT" ]
10
2021-10-30T00:45:03.000Z
2022-03-30T05:10:43.000Z
src/waldur_mastermind/marketplace_remote/log.py
opennode/nodeconductor-assembly-waldur
cad9966389dc9b52b13d2301940c99cf4b243900
[ "MIT" ]
5
2021-06-17T11:45:02.000Z
2022-02-07T19:25:13.000Z
from waldur_core.logging.loggers import EventLogger, event_logger class ProjectUpdateRequestLogger(EventLogger): project = 'structure.Project' offering = 'marketplace.Offering' class Meta: event_types = ( 'project_update_request_created', 'project_update_request_approved',...
26
75
0.68109
56
624
7.232143
0.553571
0.128395
0.197531
0
0
0
0
0
0
0
0
0
0.238782
624
23
76
27.130435
0.852632
0
0
0
0
0
0.266026
0.182692
0
0
0
0
0
1
0.058824
false
0
0.058824
0.058824
0.411765
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
85d4bd655fc08c2ba0d95e9ccab23f8b3349d0f6
669
py
Python
src/pynch/auth/adapter.py
barsgroup/barsup-core
b793ee8edc00cb770471b5998e8da9e81170c624
[ "MIT" ]
1
2015-05-29T09:25:05.000Z
2015-05-29T09:25:05.000Z
src/pynch/auth/adapter.py
barsgroup/barsup-core
b793ee8edc00cb770471b5998e8da9e81170c624
[ "MIT" ]
null
null
null
src/pynch/auth/adapter.py
barsgroup/barsup-core
b793ee8edc00cb770471b5998e8da9e81170c624
[ "MIT" ]
null
null
null
# coding: utf-8 """Адаптеры для уровня auth""" from pynch.auth.util import to_md5_hash class Password: """ Адаптер, сохраняющий в базу вместо пароля md5+salt представление""" PASSWORD_FOR_READ = '***' def to_record(self, result, params): """См. pynch/adapter.py""" result.update(params)...
25.730769
75
0.612855
80
669
5
0.475
0.105
0.045
0.11
0.44
0.44
0.44
0.44
0.44
0.44
0
0.008016
0.254111
669
25
76
26.76
0.793587
0.218236
0
0.461538
0
0
0.085828
0
0
0
0
0
0
1
0.153846
false
0.461538
0.076923
0
0.538462
0
0
0
0
null
0
0
0
0
0
0
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
85d64ae4f930e499f7efc8d48f79dd40881af87d
2,387
py
Python
app/api/v1/endpoints/todo.py
wallseat/fastapi-todo-app
5b9c6da9bce16960116a228db4b683d82ba058d0
[ "MIT" ]
null
null
null
app/api/v1/endpoints/todo.py
wallseat/fastapi-todo-app
5b9c6da9bce16960116a228db4b683d82ba058d0
[ "MIT" ]
null
null
null
app/api/v1/endpoints/todo.py
wallseat/fastapi-todo-app
5b9c6da9bce16960116a228db4b683d82ba058d0
[ "MIT" ]
null
null
null
from typing import Any, List, Optional from fastapi import APIRouter, Depends, HTTPException from sqlalchemy.ext.asyncio import AsyncSession from app.api import deps from app.crud.todo import todo, todo_labels from app.schemas.todo import Todo, TodoCreate, TodoLabelsCreate, TodoUpdate router = APIRouter() @router....
27.125
88
0.671973
317
2,387
4.870662
0.236593
0.052461
0.067358
0.07772
0.539508
0.522021
0.496114
0.427461
0.427461
0.312176
0
0.009688
0.221617
2,387
87
89
27.436782
0.821313
0
0
0.5
0
0
0.021486
0
0
0
0
0.045977
0
1
0
false
0
0.107143
0
0.178571
0
0
0
0
null
0
0
0
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
85ddb59d0d0da1ce70737bc926a743410abf8863
1,262
py
Python
chapter8/line_following_behavior.py
PacktPublishing/Learn-Robotics---Fundamentals-of-Robotics-Programming
7f38c27c4459f3fd2cffff9c037784e6d7f2f5a2
[ "MIT" ]
33
2019-01-09T20:41:20.000Z
2022-03-21T10:30:06.000Z
chapter8/line_following_behavior.py
PacktPublishing/Learn-Robotics---Fundamentals-of-Robotics-Programming
7f38c27c4459f3fd2cffff9c037784e6d7f2f5a2
[ "MIT" ]
3
2020-06-13T21:05:06.000Z
2021-09-01T19:18:19.000Z
chapter8/line_following_behavior.py
PacktPublishing/Learn-Robotics---Fundamentals-of-Robotics-Programming
7f38c27c4459f3fd2cffff9c037784e6d7f2f5a2
[ "MIT" ]
9
2018-12-20T09:49:09.000Z
2021-12-13T06:19:06.000Z
from robot import Robot from time import sleep class LineFollowingBehavior: # Note - this is the robot ON the line. def __init__(self, the_robot, forward_speed=30, cornering=-30): self.robot = the_robot self.forward_speed = forward_speed self.cornering = cornering def wh...
31.55
78
0.687797
173
1,262
4.687861
0.225434
0.122072
0.088779
0.083847
0.557337
0.484587
0.381011
0
0
0
0
0.007239
0.233756
1,262
39
79
32.358974
0.831437
0.054675
0
0.148148
0
0
0
0
0
0
0
0
0
1
0.222222
false
0
0.074074
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
85e4509cd30a69d60ce3581154660a6ba0e70ff3
5,051
py
Python
spark/experiements/reza/random_forest.py
kcrandall/Kaggle_Mercedes_Manufacturing
f1a2827f7aa145c1df057ab5035cff45e877e785
[ "MIT" ]
null
null
null
spark/experiements/reza/random_forest.py
kcrandall/Kaggle_Mercedes_Manufacturing
f1a2827f7aa145c1df057ab5035cff45e877e785
[ "MIT" ]
null
null
null
spark/experiements/reza/random_forest.py
kcrandall/Kaggle_Mercedes_Manufacturing
f1a2827f7aa145c1df057ab5035cff45e877e785
[ "MIT" ]
null
null
null
# imports import h2o import numpy as np import pandas as pd from h2o.estimators.gbm import H2OGradientBoostingEstimator from h2o.estimators.random_forest import H2ORandomForestEstimator from h2o.grid.grid_search import H2OGridSearch import sys from operator import add from pyspark import SparkContext from pyspark.sql...
33.673333
144
0.717086
724
5,051
4.879834
0.395028
0.019813
0.038494
0.016983
0.209737
0.197
0.172658
0.172658
0.133598
0.133598
0
0.038389
0.159374
5,051
149
145
33.899329
0.793688
0.312413
0
0.103896
0
0
0.112894
0.022462
0
0
0
0
0
1
0
false
0
0.350649
0
0.350649
0.038961
0
0
0
null
0
0
0
0
0
0
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
85eaddd9ef49906ca34bf904579d081aa17ba704
2,737
py
Python
scripts/utils/message_utils.py
wiremas/spore
b1ec511017cc9ba05d9034321369e5e404550232
[ "MIT" ]
60
2018-06-25T13:47:56.000Z
2021-04-09T12:03:19.000Z
scripts/utils/message_utils.py
Kateskim/git-clone
5b78ff0604239955a112001f2116a2892e9f316a
[ "MIT" ]
7
2018-07-23T07:33:13.000Z
2019-02-01T09:04:42.000Z
scripts/utils/message_utils.py
Kateskim/git-clone
5b78ff0604239955a112001f2116a2892e9f316a
[ "MIT" ]
25
2018-06-26T04:13:09.000Z
2021-12-29T02:23:51.000Z
# ----------------------------------------------------------------------------- # This source file has been developed by Anno Schachner within the scope of the # Technical Director course at Filmakademie Baden-Wuerttemberg. # http://td.animationsinstitut.de/ # # Copyright (c) 2016 Filmakademie Baden-Wuerttemb...
30.411111
81
0.549141
270
2,737
5.5
0.459259
0.121212
0.026263
0.064646
0.119192
0.119192
0.119192
0
0
0
0
0.014001
0.32152
2,737
89
82
30.752809
0.785676
0.338327
0
0.166667
0
0
0.009501
0
0
0
0
0.011236
0
1
0.119048
false
0
0.119048
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
1
0
0
0
0
0
0
0
0
0
0
1
85f0307c3e35838e5670919112d5acdf67d52b95
2,039
py
Python
nova/conf/flavors.py
sapcc/nova
ad71af7307365d6aabd122e140f56df4db1e6182
[ "Apache-2.0" ]
2
2021-10-11T04:56:25.000Z
2022-02-16T08:49:29.000Z
nova/conf/flavors.py
sapcc/nova
ad71af7307365d6aabd122e140f56df4db1e6182
[ "Apache-2.0" ]
132
2017-03-27T11:31:52.000Z
2022-03-30T08:45:02.000Z
nova/conf/flavors.py
sapcc/nova
ad71af7307365d6aabd122e140f56df4db1e6182
[ "Apache-2.0" ]
8
2017-03-27T07:50:38.000Z
2020-02-14T16:55:56.000Z
# Copyright 2016 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
35.155172
79
0.732222
304
2,039
4.851974
0.496711
0.040678
0.017627
0.021695
0
0
0
0
0
0
0
0.009214
0.201569
2,039
57
80
35.77193
0.896806
0.297205
0
0.117647
0
0
0.711566
0.01481
0
0
0
0
0
1
0.058824
false
0
0.029412
0.029412
0.117647
0
0
0
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
85f10d7ba6b89852939021b65dfbf99e3c1978b7
531
py
Python
sourcecode/VaspNEBKeepInputs.py
zybbigpy/VaspCZ
a652de66eec82e8618e71f0466296fabf66b5218
[ "MIT" ]
65
2019-09-16T12:00:58.000Z
2022-03-17T04:43:05.000Z
sourcecode/VaspNEBKeepInputs.py
yizhiwoniu/VaspCZ
44b890cf18d649c428c21e3f8fadc3222453d84d
[ "MIT" ]
null
null
null
sourcecode/VaspNEBKeepInputs.py
yizhiwoniu/VaspCZ
44b890cf18d649c428c21e3f8fadc3222453d84d
[ "MIT" ]
23
2019-09-16T12:16:57.000Z
2021-11-18T15:57:38.000Z
import os def run(): maintain_files = 'ini,fin'.split(',') files = os.listdir('./') del_files = [] for file in files: if file in maintain_files: pass else: del_files.append(file) ipt = input(f'Thoes files/dir will be kept: {maintain_files} \nThose files/dirs will be deleted: {del_files}\nconfirm ([y]es...
23.086957
133
0.629002
88
531
3.625
0.488636
0.100313
0.056426
0
0
0
0
0
0
0
0
0
0.193974
531
23
134
23.086957
0.745327
0
0
0.105263
0
0.052632
0.332707
0
0
0
0
0
0
1
0.052632
false
0.052632
0.052632
0
0.105263
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
85f13b745fc05e66dc2905d682882d0596011c70
451
py
Python
examples/connection.py
microdaq/PyMLink
709ed54a9a5e68be2e43bde0c93ede2b4ced2a97
[ "BSD-3-Clause" ]
1
2020-01-30T01:35:33.000Z
2020-01-30T01:35:33.000Z
examples/connection.py
microdaq/PyMLink
709ed54a9a5e68be2e43bde0c93ede2b4ced2a97
[ "BSD-3-Clause" ]
6
2019-08-12T09:13:29.000Z
2020-12-01T23:16:26.000Z
examples/connection.py
microdaq/PyMLink
709ed54a9a5e68be2e43bde0c93ede2b4ced2a97
[ "BSD-3-Clause" ]
2
2020-02-28T06:34:12.000Z
2021-05-21T20:27:27.000Z
# This file is subject to the terms and conditions defined in # file 'LICENSE.md', which is part of this source code package. # Embedded-solutions 2020, www.microdaq.org import microdaq # connect to MicroDAQ device IP = "10.10.1.1" mdaq = microdaq.Device(IP) print("diconenct()") mdaq.disconnect() print("reconenct()...
20.5
63
0.700665
65
451
4.861538
0.630769
0.088608
0.101266
0.177215
0.208861
0
0
0
0
0
0
0.029101
0.161863
451
21
64
21.47619
0.806878
0.421286
0
0.333333
0
0
0.199219
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.083333
0.333333
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
85f98cd55e0a60a1ebd21f7148338218c504a227
620
py
Python
migrations/versions/d117be359e6f_series_tiebreak.py
darthwalsh/LostTime
d47870c7e9507eaaabddf06d11789010ea91071d
[ "MIT" ]
1
2018-03-08T23:05:24.000Z
2018-03-08T23:05:24.000Z
migrations/versions/d117be359e6f_series_tiebreak.py
darthwalsh/LostTime
d47870c7e9507eaaabddf06d11789010ea91071d
[ "MIT" ]
27
2016-10-18T07:04:36.000Z
2022-01-13T03:38:25.000Z
migrations/versions/d117be359e6f_series_tiebreak.py
darthwalsh/LostTime
d47870c7e9507eaaabddf06d11789010ea91071d
[ "MIT" ]
3
2018-03-12T03:38:08.000Z
2021-06-16T01:30:07.000Z
"""series tiebreak Revision ID: d117be359e6f Revises: fb3dcbfa6111 Create Date: 2016-10-30 13:44:08.906267 """ # revision identifiers, used by Alembic. revision = 'd117be359e6f' down_revision = 'fb3dcbfa6111' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic ...
22.962963
83
0.7
74
620
5.824324
0.581081
0.062645
0.097448
0.106729
0.204176
0.204176
0.204176
0.204176
0
0
0
0.085271
0.167742
620
26
84
23.846154
0.75
0.472581
0
0
0
0
0.210884
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
c807c0306d01d704b1bff4f89aa39e8d73c65384
475
py
Python
drafts/fastapi/src/chapter3/path_response_model.py
particle1331/ml-notebooks
d9cd094d44a0ee038a6ad3a2f9fafba8142c1e6d
[ "MIT" ]
1
2022-01-05T19:28:09.000Z
2022-01-05T19:28:09.000Z
drafts/fastapi/src/chapter3/path_response_model.py
particle1331/ml-notebooks
d9cd094d44a0ee038a6ad3a2f9fafba8142c1e6d
[ "MIT" ]
null
null
null
drafts/fastapi/src/chapter3/path_response_model.py
particle1331/ml-notebooks
d9cd094d44a0ee038a6ad3a2f9fafba8142c1e6d
[ "MIT" ]
null
null
null
from fastapi import FastAPI from pydantic import BaseModel app = FastAPI() class Post(BaseModel): title: str nb_views: int class PublicPost(BaseModel): title: str # Dummy database posts = { 1: Post(title="Post #1", nb_views=100), # Private } @app.get("/posts/{id}", response_model=PublicPost) async d...
19.791667
55
0.696842
65
475
4.876923
0.553846
0.088328
0.107256
0
0
0
0
0
0
0
0
0.012821
0.178947
475
24
55
19.791667
0.8
0.061053
0
0.117647
0
0
0.110609
0.051919
0
0
0
0
0
1
0
false
0
0.176471
0
0.529412
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
c80ebd6439cea12da5dc84e22c2ba2d661a3d494
2,447
py
Python
ui/authbrowser.py
travcunn/kissync-python
a1c2a4d0619bcb93658007c2f240119b11964b9b
[ "MIT" ]
3
2016-09-06T21:06:48.000Z
2018-02-28T12:15:48.000Z
ui/authbrowser.py
travcunn/kissync-python
a1c2a4d0619bcb93658007c2f240119b11964b9b
[ "MIT" ]
null
null
null
ui/authbrowser.py
travcunn/kissync-python
a1c2a4d0619bcb93658007c2f240119b11964b9b
[ "MIT" ]
null
null
null
from PySide import QtCore, QtGui, QtWebKit import app.core.common as common from app.core.config import Config class AuthBrowser(QtWebKit.QWebView): def __init__(self, parent): self.parent = parent QtWebKit.QWebView.__init__(self) # create an instance of the configuration self.__...
33.067568
75
0.615856
262
2,447
5.637405
0.435115
0.054164
0.054164
0.058903
0
0
0
0
0
0
0
0.005131
0.283204
2,447
73
76
33.520548
0.836944
0.102575
0
0.04
0
0
0.043399
0
0
0
0
0.013699
0
1
0.14
false
0
0.06
0
0.22
0
0
0
0
null
0
0
0
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
c814cbbcb4dcde8b4ea8fc6ca5ec31f712b23d91
905
py
Python
bills/models.py
leogregianin/create-automatic-api
1c389f0a4b29ec70f3bd24687f5f6153ffd1fc6d
[ "MIT" ]
8
2019-04-09T16:12:13.000Z
2021-09-20T00:16:57.000Z
bills/models.py
leogregianin/create-automatic-api
1c389f0a4b29ec70f3bd24687f5f6153ffd1fc6d
[ "MIT" ]
2
2019-08-06T02:18:44.000Z
2020-02-11T23:59:46.000Z
bills/models.py
leogregianin/create-automatic-api
1c389f0a4b29ec70f3bd24687f5f6153ffd1fc6d
[ "MIT" ]
1
2019-04-10T14:08:43.000Z
2019-04-10T14:08:43.000Z
from django.db import models class Category(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField(max_length=255) operation = models.IntegerField() class Meta: managed = False db_table = 'category' verbose_name_plural = 'Categories' def __str__...
26.617647
97
0.671823
107
905
5.457944
0.476636
0.071918
0.044521
0.065068
0.438356
0.438356
0.260274
0.260274
0.260274
0.260274
0
0.011412
0.225414
905
33
98
27.424242
0.821683
0
0
0.48
0
0
0.058628
0
0
0
0
0
0
1
0.08
false
0
0.04
0.08
0.72
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
c825879e4273b576ce6115cbcd870470ae6f059a
1,211
py
Python
EX-10.py
gilmartins83/Guanabara-Python
43128c35fcd601db1f72c80a9c76f4b4f4085c7f
[ "MIT" ]
null
null
null
EX-10.py
gilmartins83/Guanabara-Python
43128c35fcd601db1f72c80a9c76f4b4f4085c7f
[ "MIT" ]
null
null
null
EX-10.py
gilmartins83/Guanabara-Python
43128c35fcd601db1f72c80a9c76f4b4f4085c7f
[ "MIT" ]
null
null
null
real = float(input("Quanto tinheito você tem? R$ ")) us = real / 3.78 ca = real / 2.85 eu = real / 4.31 lb = real / 4.98 au = real / 2.71 ps = real / 0.0983 print("R$ {:.2f} reais equivale a: \n\nUS$ {:.2f} dólares americanos \nCAD$ {:.2f} dólares canadenses \n€$ {:.2f} euros \n£$ {:.2f} libras \nAUD$ {:.2f} dólares au...
35.617647
245
0.628406
196
1,211
3.903061
0.418367
0.015686
0.035294
0.043137
0.109804
0.109804
0.109804
0.109804
0
0
0
0.048144
0.176713
1,211
34
246
35.617647
0.715145
0
0
0.15625
0
0.03125
0.528878
0
0
0
0
0
0
1
0
false
0
0
0
0
0.53125
0
0
0
null
0
0
0
0
0
0
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
c836e1249f53ba34b36c50458ce5e2e73229c8d5
1,533
py
Python
androlyze/model/script/impl/DVM.py
nachtmaar/androlyze
cfdbf5ddc7da0eff8554de1ac89e3acf8142100d
[ "MIT" ]
17
2015-06-26T16:31:20.000Z
2021-11-08T21:37:40.000Z
androlyze/model/script/impl/DVM.py
nachtmaar/androlyze
cfdbf5ddc7da0eff8554de1ac89e3acf8142100d
[ "MIT" ]
null
null
null
androlyze/model/script/impl/DVM.py
nachtmaar/androlyze
cfdbf5ddc7da0eff8554de1ac89e3acf8142100d
[ "MIT" ]
4
2015-12-12T16:54:54.000Z
2019-02-18T12:14:55.000Z
# encoding: utf-8 __author__ = "Nils Tobias Schmidt" __email__ = "schmidt89 at informatik.uni-marburg.de" from androlyze.model.script.ChainedScript import ChainedScript from androlyze.model.script.impl.ClassDetails import ClassDetails from androlyze.model.script.impl.ClassListing import ClassListing from androlyze.m...
33.326087
93
0.643183
168
1,533
5.708333
0.529762
0.067779
0.093848
0.12513
0.087591
0
0
0
0
0
0
0.004854
0.193738
1,533
46
94
33.326087
0.771036
0.043053
0
0.136364
0
0
0.104167
0.061508
0
0
0
0
0
0
null
null
0
0.227273
null
null
0.136364
0
0
0
null
0
0
0
0
0
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
c83a2bc68522946e4525c4f45955e28db332917f
864
py
Python
src/ch8-async-database/web/viewmodels/home/IndexViewModel.py
saryeHaddadi/Python.Course.WebAppFastAPI
ddc1f1850473c227e715c8ecd2afd741e53c4680
[ "MIT" ]
null
null
null
src/ch8-async-database/web/viewmodels/home/IndexViewModel.py
saryeHaddadi/Python.Course.WebAppFastAPI
ddc1f1850473c227e715c8ecd2afd741e53c4680
[ "MIT" ]
null
null
null
src/ch8-async-database/web/viewmodels/home/IndexViewModel.py
saryeHaddadi/Python.Course.WebAppFastAPI
ddc1f1850473c227e715c8ecd2afd741e53c4680
[ "MIT" ]
null
null
null
from typing import List from starlette.requests import Request from web.viewmodels.base.BaseViewModel import BaseViewModel from app.services.PackageService import PackageService from app.services.UserService import UserService from app.models.Package import Package class IndexViewModel(BaseViewModel): def __init_...
36
82
0.730324
105
864
5.8
0.342857
0.078818
0.044335
0.064039
0.098522
0
0
0
0
0
0
0.005731
0.19213
864
23
83
37.565217
0.866762
0
0
0
0
0
0
0
0
0
0
0
0
1
0.055556
false
0
0.333333
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
0
1
0
0
0
0
1
c8419eccfb17abc4a8e4b7158f64f99a084fc6f1
4,848
py
Python
accounts/models.py
TourKakao-Carping/Carping-Backend
d4cebaceaf1820e6d850d2fc45258c6e4551e00c
[ "MIT" ]
10
2021-07-14T05:18:52.000Z
2021-12-14T07:29:20.000Z
accounts/models.py
TourKakao-Carping/Carping-Backend
d4cebaceaf1820e6d850d2fc45258c6e4551e00c
[ "MIT" ]
6
2021-08-15T10:15:19.000Z
2021-09-19T07:05:27.000Z
accounts/models.py
TourKakao-Carping/Carping-Backend
d4cebaceaf1820e6d850d2fc45258c6e4551e00c
[ "MIT" ]
2
2021-10-30T12:48:40.000Z
2021-12-01T13:31:40.000Z
import re from random import randint from allauth.socialaccount.models import SocialAccount from django.core.exceptions import ValidationError from django.db import models from django.db.models.deletion import CASCADE from django.utils.translation import ugettext_lazy as _ from django.contrib.auth.models import BaseUs...
33.205479
87
0.662335
584
4,848
5.363014
0.318493
0.038633
0.024904
0.032567
0.227969
0.185185
0.128991
0.106641
0.106641
0.034483
0
0.008831
0.229167
4,848
145
88
33.434483
0.826866
0.107467
0
0.040816
0
0
0.06991
0.006377
0
0
0
0
0
1
0.061224
false
0.040816
0.122449
0.020408
0.642857
0
0
0
0
null
0
0
0
0
0
0
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
c845b05275a5132262b1e732f4ab5a1c635fe58c
397
py
Python
codechain/keystore/keys.py
CodeChain-io/codechain-sdk-python
e21420fe8e1105f23f04fc6ca3f18a444c2bf9a3
[ "0BSD" ]
11
2018-08-22T09:42:54.000Z
2019-11-30T07:19:42.000Z
codechain/keystore/keys.py
CodeChain-io/codechain-sdk-python
e21420fe8e1105f23f04fc6ca3f18a444c2bf9a3
[ "0BSD" ]
38
2019-07-22T06:13:39.000Z
2021-06-02T00:43:21.000Z
codechain/keystore/keys.py
CodeChain-io/codechain-sdk-python
e21420fe8e1105f23f04fc6ca3f18a444c2bf9a3
[ "0BSD" ]
5
2019-07-24T19:13:00.000Z
2020-03-18T12:13:27.000Z
from ..crypto import blake160 from ..crypto import get_account_id_from_public from .keytype import KeyType def key_from_public_key(key_type: KeyType, public_key: str) -> bytes: if key_type == KeyType.PLATFORM: return get_account_id_from_public(public_key) elif key_type == KeyType.ASSET: return...
30.538462
69
0.738035
56
397
4.928571
0.410714
0.130435
0.152174
0.115942
0.15942
0
0
0
0
0
0
0.018576
0.186398
397
12
70
33.083333
0.835913
0
0
0
0
0
0.040302
0
0
0
0
0
0
1
0.1
false
0
0.3
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
c8552b3f500ee9ea5a42b08dfa8d9e836c4e129d
1,221
py
Python
koalixcrm/crm/contact/supplier.py
Cataldir/koalixcrm
87d125379845d6ab990c19500d63cbed4051040a
[ "BSD-3-Clause" ]
290
2015-01-11T03:01:05.000Z
2019-12-17T03:56:17.000Z
koalixcrm/crm/contact/supplier.py
Cataldir/koalixcrm
87d125379845d6ab990c19500d63cbed4051040a
[ "BSD-3-Clause" ]
178
2016-02-26T14:41:49.000Z
2019-12-29T08:34:21.000Z
koalixcrm/crm/contact/supplier.py
Cataldir/koalixcrm
87d125379845d6ab990c19500d63cbed4051040a
[ "BSD-3-Clause" ]
124
2015-02-28T20:56:37.000Z
2019-12-13T18:15:35.000Z
# -*- coding: utf-8 -*- from django.db import models from django.contrib import admin from django.utils.translation import ugettext as _ from koalixcrm.crm.contact.contact import Contact from koalixcrm.crm.contact.contact import ContactPostalAddress from koalixcrm.crm.contact.contact import ContactPhoneAddress from ko...
33.916667
98
0.701065
127
1,221
6.614173
0.480315
0.061905
0.07619
0.109524
0.171429
0.171429
0
0
0
0
0
0.001015
0.193284
1,221
36
99
33.916667
0.851777
0.017199
0
0.074074
0
0
0.095079
0.041701
0
0
0
0
0
1
0.074074
false
0
0.259259
0.037037
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
c86864f214b09904b1b1fa5dbd6bfd8f6c967092
490
py
Python
fastreid/data/datasets/__init__.py
hanleiyu/prcv
df5ad9469b38b8176121357fe5de2b1cf30aae1c
[ "MIT" ]
1
2021-03-28T15:03:58.000Z
2021-03-28T15:03:58.000Z
fastreid/data/datasets/__init__.py
hanleiyu/prcv
df5ad9469b38b8176121357fe5de2b1cf30aae1c
[ "MIT" ]
null
null
null
fastreid/data/datasets/__init__.py
hanleiyu/prcv
df5ad9469b38b8176121357fe5de2b1cf30aae1c
[ "MIT" ]
null
null
null
# encoding: utf-8 """ @author: liaoxingyu @contact: sherlockliao01@gmail.com """ from ...utils.registry import Registry DATASET_REGISTRY = Registry("DATASET") DATASET_REGISTRY.__doc__ = """ Registry for datasets It must returns an instance of :class:`Backbone`. """ from .cuhk03 import CUHK03 from .dukemtmcreid impo...
23.333333
53
0.789796
64
490
5.890625
0.53125
0.095491
0.090186
0.111406
0
0
0
0
0
0
0
0.043981
0.118367
490
20
54
24.5
0.828704
0.146939
0
0
0
0
0.195122
0
0
0
0
0
0
1
0
false
0
0.583333
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
1
0
0
0
0
1
c06df821e2b81fc0c32f9e5efc289a33a0e511cc
913
py
Python
04. Tuples and Sets - Exercise/06_longest_intersection.py
elenaborisova/Python-Advanced
4c266d81f294372c3599741e8ba53f59fdc834c5
[ "MIT" ]
2
2021-04-04T06:26:13.000Z
2022-02-18T22:21:49.000Z
04. Tuples and Sets - Exercise/06_longest_intersection.py
elenaborisova/Python-Advanced
4c266d81f294372c3599741e8ba53f59fdc834c5
[ "MIT" ]
null
null
null
04. Tuples and Sets - Exercise/06_longest_intersection.py
elenaborisova/Python-Advanced
4c266d81f294372c3599741e8ba53f59fdc834c5
[ "MIT" ]
3
2021-02-01T12:32:03.000Z
2021-04-12T13:45:20.000Z
def find_range_values(curr_range): return list(map(int, curr_range.split(","))) def find_set(curr_range): start_value, end_value = find_range_values(curr_range) curr_set = set(range(start_value, end_value + 1)) return curr_set def find_longest_intersection(n): longest_intersection = set() ...
26.852941
62
0.71851
116
913
5.293103
0.267241
0.309446
0.04886
0.061889
0.153094
0
0
0
0
0
0
0.001342
0.184009
913
33
63
27.666667
0.822819
0
0
0
0
0
0.096386
0.053669
0
0
0
0
0
1
0.2
false
0
0
0.05
0.35
0.15
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c073c163b6f44fc9176f3bc170a838ac99014ebc
549
py
Python
projects/files.py
jalanb/projects
768e94200a3e05b0ee2bfe396b90fea9ca36462d
[ "MIT" ]
null
null
null
projects/files.py
jalanb/projects
768e94200a3e05b0ee2bfe396b90fea9ca36462d
[ "MIT" ]
null
null
null
projects/files.py
jalanb/projects
768e94200a3e05b0ee2bfe396b90fea9ca36462d
[ "MIT" ]
null
null
null
"""Handle files for projects""" import os import shutil def texts(): return [ 'CONTRIBUTING.txt', 'LICENSE', ] def templates(): return [ 'README.md', 'TODO.md', 'requirements.txt', 'setup.py', ] def sources(): return texts() + templates() def...
15.685714
56
0.559199
64
549
4.796875
0.578125
0.032573
0.123779
0
0
0
0
0
0
0
0
0
0.311475
549
34
57
16.147059
0.812169
0.045537
0
0.086957
0
0
0.200772
0
0
0
0
0
0
1
0.173913
false
0
0.086957
0.130435
0.391304
0
0
0
0
null
0
0
0
0
0
0
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
c07578f53c47bbe631355ca4fd0f872d889c9311
4,047
py
Python
example/client.py
19emtuck/pyramid_oauth2_provider
1352fd51fa631e57fbcc10a00a314710bbddab99
[ "MIT" ]
23
2015-03-05T22:14:57.000Z
2021-02-19T20:53:15.000Z
example/client.py
19emtuck/pyramid_oauth2_provider
1352fd51fa631e57fbcc10a00a314710bbddab99
[ "MIT" ]
8
2016-06-09T17:31:52.000Z
2017-06-01T02:19:18.000Z
example/client.py
19emtuck/pyramid_oauth2_provider
1352fd51fa631e57fbcc10a00a314710bbddab99
[ "MIT" ]
16
2015-06-12T13:13:04.000Z
2022-02-13T06:15:46.000Z
# # Copyright (c) Elliot Peele <elliot@bentlogic.net> # # This program is distributed under the terms of the MIT License as found # in a file called LICENSE. If it is not present, the license # is always available at http://www.opensource.org/licenses/mit-license.php. # # This program is distributed in the hope that it...
28.702128
78
0.619965
490
4,047
4.936735
0.304082
0.037205
0.02315
0.033072
0.278214
0.248036
0.224886
0.163704
0.145515
0.145515
0
0.006367
0.262664
4,047
140
79
28.907143
0.80429
0.140104
0
0.163265
0
0
0.111977
0.009524
0
0
0
0
0
1
0.132653
false
0.061224
0.061224
0.071429
0.336735
0.010204
0
0
0
null
0
0
0
0
0
0
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
c0776f6f1a38101e55a746089c3e701e821d4425
760
py
Python
ticket/migrations/0011_ticketmeantimes.py
aessex24/rindr
2a546b27ce1c72728bb7a63e60653929ca592cfe
[ "MIT" ]
1
2021-12-21T16:24:18.000Z
2021-12-21T16:24:18.000Z
ticket/migrations/0011_ticketmeantimes.py
aessex24/rindr
2a546b27ce1c72728bb7a63e60653929ca592cfe
[ "MIT" ]
1
2021-12-10T01:05:55.000Z
2021-12-10T01:05:55.000Z
ticket/migrations/0011_ticketmeantimes.py
aessex24/rindr
2a546b27ce1c72728bb7a63e60653929ca592cfe
[ "MIT" ]
1
2021-12-10T00:48:33.000Z
2021-12-10T00:48:33.000Z
# Generated by Django 3.2.8 on 2021-11-01 19:25 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ticket', '0010_ticket_archived'), ] operations = [ migrations.CreateModel( name='TicketMeanTimes', fields=[ ...
29.230769
117
0.568421
72
760
5.847222
0.680556
0.078385
0
0
0
0
0
0
0
0
0
0.036122
0.307895
760
25
118
30.4
0.764259
0.059211
0
0
1
0
0.187938
0
0
0
0
0
0
1
0
false
0
0.052632
0
0.210526
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c08d01119f07017e7338104f4a1d822aab30a70b
1,876
py
Python
calaccess_campaign_browser/tests.py
rkiddy/django-calaccess-campaign-browser
23b389ef50ce14334699f011dcfbc764d8d60f6b
[ "MIT" ]
13
2015-01-15T02:06:11.000Z
2021-03-17T16:12:56.000Z
calaccess_campaign_browser/tests.py
dwillis/django-calaccess-campaign-browser
69f7d6f1c64e45c85656af3003b1beed2fb55362
[ "MIT" ]
138
2015-01-15T02:59:23.000Z
2016-04-28T20:18:57.000Z
calaccess_campaign_browser/tests.py
dwillis/django-calaccess-campaign-browser
69f7d6f1c64e45c85656af3003b1beed2fb55362
[ "MIT" ]
16
2015-01-07T01:17:28.000Z
2022-01-14T00:29:33.000Z
from datetime import datetime from django.test import TestCase from calaccess_campaign_browser import models class ModelTest(TestCase): """ Create model objects and try out their attributes. """ def test_models(self): obj = models.Filer.objects.create( name="FooPAC", fi...
23.160494
54
0.557569
206
1,876
4.820388
0.364078
0.077543
0.08862
0.120846
0.183283
0.126888
0.064451
0.064451
0.064451
0.064451
0
0.012386
0.354478
1,876
80
55
23.45
0.807597
0.026652
0
0.261538
0
0
0.029834
0
0
0
0
0
0
1
0.169231
false
0.138462
0.046154
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
c0a05b73fc539407c8d3f35ebafa4566c65d6c7c
321
py
Python
controller/echo_test.py
will07c5/quadcopter
b076521a9543fa684be9e38884d14783c4282194
[ "MIT" ]
null
null
null
controller/echo_test.py
will07c5/quadcopter
b076521a9543fa684be9e38884d14783c4282194
[ "MIT" ]
null
null
null
controller/echo_test.py
will07c5/quadcopter
b076521a9543fa684be9e38884d14783c4282194
[ "MIT" ]
null
null
null
from copter import * import sys if (len(sys.argv) < 2): print("Usage: echo_test.py <serial device>") sys.exit(1) buf = "Test string".encode('ascii') c = Copter(sys.argv[1]) c.sendCommand('t', buf) print "Sent", buf while True: cmd = c.recvCommand() if (cmd != None): print cmd.buf.decode('ascii') break ...
12.84
45
0.641745
51
321
4.019608
0.627451
0.068293
0
0
0
0
0
0
0
0
0
0.011364
0.17757
321
24
46
13.375
0.765152
0
0
0
0
0
0.191824
0
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
c0a125cb96046e05d99bcbe749263d3abf53f7d6
1,474
py
Python
HealthyBot/HealthyBot/bot.py
GongJunior/HealthyBot
d47784daa8a4a9d09e584b699121f1d24dc16a7c
[ "MIT" ]
null
null
null
HealthyBot/HealthyBot/bot.py
GongJunior/HealthyBot
d47784daa8a4a9d09e584b699121f1d24dc16a7c
[ "MIT" ]
null
null
null
HealthyBot/HealthyBot/bot.py
GongJunior/HealthyBot
d47784daa8a4a9d09e584b699121f1d24dc16a7c
[ "MIT" ]
null
null
null
import config import socket import re import time #region FUNCTIONS def chat(sock,msg): """ Send a chat message to the server. Keyword arguments: sock -- the socket over which to send the message msg -- the message to be sent """ sock.send("PRIVMSG #{} :{}".format(cfg.CHAN, msg)) def veri...
28.346154
90
0.634328
203
1,474
4.596059
0.463054
0.010718
0.042872
0.040729
0.109325
0
0
0
0
0
0
0.009434
0.208955
1,474
52
91
28.346154
0.790738
0.075984
0
0
0
0
0.258261
0.026087
0
0
0
0
0
0
null
null
0.035714
0.142857
null
null
0.035714
0
0
0
null
0
0
0
0
0
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
c0a1999d446f923a96afa8dcf95f04f02a511b32
2,654
py
Python
server/app/urls.py
octue/twined-server
60bea5819b54a08bd29481750a29a877ce495f37
[ "MIT" ]
null
null
null
server/app/urls.py
octue/twined-server
60bea5819b54a08bd29481750a29a877ce495f37
[ "MIT" ]
1
2020-10-27T19:42:18.000Z
2021-05-10T11:25:05.000Z
server/app/urls.py
octue/twined-server
60bea5819b54a08bd29481750a29a877ce495f37
[ "MIT" ]
null
null
null
import json import os from django.conf import settings from django.conf.urls import include, url from django.conf.urls.static import static from django.http import HttpResponse, JsonResponse from django.middleware.csrf import get_token from django.views.decorators.csrf import ensure_csrf_cookie from django.views.generi...
40.212121
117
0.738885
388
2,654
4.963918
0.438144
0.041537
0.021807
0.018692
0.032191
0.032191
0.032191
0
0
0
0
0.003645
0.172947
2,654
65
118
40.830769
0.873804
0.416353
0
0.058824
0
0
0.114286
0
0
0
0
0
0
1
0.058824
false
0
0.323529
0
0.470588
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
c0b327fec30dac54d9c77f2db1fb5d8d5bdc7b6b
593
py
Python
src/olympia/blocklist/views.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
843
2016-02-09T13:00:37.000Z
2022-03-20T19:17:06.000Z
src/olympia/blocklist/views.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
10,187
2016-02-05T23:51:05.000Z
2022-03-31T15:24:44.000Z
src/olympia/blocklist/views.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
551
2016-02-08T20:32:16.000Z
2022-03-15T16:49:24.000Z
from rest_framework.mixins import RetrieveModelMixin from rest_framework.viewsets import GenericViewSet from .models import Block from .serializers import BlockSerializer class BlockViewSet(RetrieveModelMixin, GenericViewSet): queryset = Block.objects serializer_class = BlockSerializer lookup_value_regex...
32.944444
68
0.733558
66
593
6.454545
0.606061
0.037559
0.079812
0
0
0
0
0
0
0
0
0
0.175379
593
17
69
34.882353
0.871166
0.052277
0
0
0
0
0.023214
0
0
0
0
0
0
1
0.076923
false
0
0.307692
0
0.769231
0
0
0
0
null
0
0
0
0
0
0
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
c0b6d3af303c1c5344581d87ee2bf3540fdcd255
570
py
Python
mqttutils.py
brnorris03/pisensors
cff31e926f6454b446e6c4adc3318dcaec70c42e
[ "MIT" ]
null
null
null
mqttutils.py
brnorris03/pisensors
cff31e926f6454b446e6c4adc3318dcaec70c42e
[ "MIT" ]
null
null
null
mqttutils.py
brnorris03/pisensors
cff31e926f6454b446e6c4adc3318dcaec70c42e
[ "MIT" ]
null
null
null
import paho.mqtt.client as mqtt msg="Initialized MQTT connection" def start_mqtt(): client = mqtt.Client("pipe_pub") client.connect("brix.d.cs.uoregon.edu",8100,60) client.on_connect = on_connect client.loop_forever() return client def on_connect(client, userdata, rc): print("Connected with r...
23.75
51
0.673684
79
570
4.746835
0.556962
0.106667
0.08
0
0
0
0
0
0
0
0
0.015385
0.201754
570
23
52
24.782609
0.808791
0
0
0
0
0
0.191228
0.036842
0
0
0
0
0
1
0.222222
false
0
0.055556
0
0.333333
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
c0bbbfa7eb7f184c4c33407331df32e8ebbfe7f6
321
py
Python
api/migrations/0005_remove_profile_agreed.py
pythonkr/pyconkr-api
077e122a0af37122c5b424870cf91b8fca91a9f5
[ "Apache-2.0" ]
25
2018-12-09T07:56:16.000Z
2020-12-24T08:20:41.000Z
api/migrations/0005_remove_profile_agreed.py
mingrammer/pyconkr-api
3c9fc70ed26008a50d3b4c296a4da84a8f93babb
[ "Apache-2.0" ]
100
2018-12-13T02:01:42.000Z
2022-03-11T23:40:25.000Z
api/migrations/0005_remove_profile_agreed.py
mingrammer/pyconkr-api
3c9fc70ed26008a50d3b4c296a4da84a8f93babb
[ "Apache-2.0" ]
8
2019-01-05T05:02:27.000Z
2019-08-09T08:14:49.000Z
# Generated by Django 2.1.5 on 2019-03-15 08:37 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('api', '0004_profile_agreed'), ] operations = [ migrations.RemoveField( model_name='profile', name='agreed', ), ]...
17.833333
47
0.582555
34
321
5.411765
0.794118
0
0
0
0
0
0
0
0
0
0
0.084821
0.302181
321
17
48
18.882353
0.736607
0.140187
0
0
1
0
0.127737
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
c0bd879a654debc83b80f656d0ebb74542d8018c
6,375
py
Python
kiddyer-server/kiddyer/views.py
coolcode/kiddyer
1c55fcc6bebcce837a4dcc740e9aee17a41ae7b6
[ "MIT" ]
5
2018-05-01T00:58:43.000Z
2021-06-11T12:38:49.000Z
kiddyer-server/kiddyer/views.py
coolcode/kiddyer
1c55fcc6bebcce837a4dcc740e9aee17a41ae7b6
[ "MIT" ]
3
2020-02-13T07:32:16.000Z
2020-02-23T11:21:02.000Z
kiddyer-server/kiddyer/views.py
coolcode/kiddyer
1c55fcc6bebcce837a4dcc740e9aee17a41ae7b6
[ "MIT" ]
1
2021-04-18T00:00:55.000Z
2021-04-18T00:00:55.000Z
from django.shortcuts import render from django.http import HttpResponse, JsonResponse from rest_framework.renderers import JSONRenderer from django.contrib.auth.models import User, Group from django.contrib.auth import authenticate, login from rest_framework import viewsets from .serializers import * from .models imp...
29.651163
131
0.688784
728
6,375
5.945055
0.217033
0.053373
0.02403
0.058226
0.433919
0.346811
0.271026
0.255083
0.255083
0.20402
0
0.003728
0.200471
6,375
214
132
29.78972
0.845399
0.134588
0
0.345133
0
0
0.073891
0
0
0
0
0
0
1
0.123894
false
0.035398
0.106195
0.017699
0.566372
0
0
0
0
null
0
0
0
0
0
0
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
c0be39e6dea5d0ed2156d2efc6efe2c4cf68aa0c
924
py
Python
enqueue_job.py
lenoch/tagsetbench
98c5474197af3087a28f73b54398abec0534c7d8
[ "MIT" ]
null
null
null
enqueue_job.py
lenoch/tagsetbench
98c5474197af3087a28f73b54398abec0534c7d8
[ "MIT" ]
null
null
null
enqueue_job.py
lenoch/tagsetbench
98c5474197af3087a28f73b54398abec0534c7d8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from contextlib import suppress from datetime import datetime import json from pathlib import PosixPath from subprocess import run, CalledProcessError import sys from time import sleep from log import INFO, log, set_log_level from tagsetbench import read_args OPTIONS = { 'job': PosixPath(''...
23.692308
79
0.635281
121
924
4.727273
0.603306
0.048951
0
0
0
0
0
0
0
0
0
0.011348
0.237013
924
38
80
24.315789
0.8
0.191558
0
0
0
0
0.137741
0.035813
0
0
0
0
0
1
0.038462
false
0.038462
0.346154
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
c0ca229f89e751b3a18424c1a701ed6dbbbf2469
623
py
Python
examples/RepeatSubtractionQuiz.py
Ellis0817/Introduction-to-Programming-Using-Python
1882a2a846162d5ff56d4d56c3940b638ef408bd
[ "MIT" ]
null
null
null
examples/RepeatSubtractionQuiz.py
Ellis0817/Introduction-to-Programming-Using-Python
1882a2a846162d5ff56d4d56c3940b638ef408bd
[ "MIT" ]
4
2019-11-07T12:32:19.000Z
2020-07-19T14:04:44.000Z
examples/RepeatSubtractionQuiz.py
Ellis0817/Introduction-to-Programming-Using-Python
1882a2a846162d5ff56d4d56c3940b638ef408bd
[ "MIT" ]
5
2019-12-04T15:56:55.000Z
2022-01-14T06:19:18.000Z
import random # 1. Generate two random single-digit integers number1 = random.randint(0, 9) number2 = random.randint(0, 9) # 2. If number1 < number2, swap number1 with number2 if number1 < number2: number1, number2 = number2, number1 # 3. Prompt the student to answer What is number1 - number2? answer = eval(inpu...
29.666667
61
0.654896
85
623
4.8
0.505882
0.171569
0.068627
0.073529
0.127451
0.127451
0
0
0
0
0
0.05726
0.215088
623
20
62
31.15
0.777096
0.343499
0
0
1
0
0.153465
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c0ca29f53c9739c859a720e40f93df97e871067b
230
py
Python
umlawuli/urls.py
mrdvince/dgenie
0a901409a9c547d27212e330ad4fce31dc24de83
[ "Apache-2.0" ]
null
null
null
umlawuli/urls.py
mrdvince/dgenie
0a901409a9c547d27212e330ad4fce31dc24de83
[ "Apache-2.0" ]
null
null
null
umlawuli/urls.py
mrdvince/dgenie
0a901409a9c547d27212e330ad4fce31dc24de83
[ "Apache-2.0" ]
null
null
null
from django.urls import include, path from . import views urlpatterns = [ path("", include("common.urls")), path("admins/", views.admin_api_view, name="admins"), path("users/", views.users_api_view, name="users"), ]
23
57
0.669565
30
230
5
0.5
0.093333
0.146667
0
0
0
0
0
0
0
0
0
0.152174
230
9
58
25.555556
0.769231
0
0
0
0
0
0.152174
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
c0cb4feadd15ded0be4b776badb5ccc25ddda3bf
9,911
py
Python
CPAC/utils/datasource.py
danlurie/C-PAC
5ddc2d4fa71eb13728d6156f73cb6e7621dda69d
[ "BSD-3-Clause" ]
null
null
null
CPAC/utils/datasource.py
danlurie/C-PAC
5ddc2d4fa71eb13728d6156f73cb6e7621dda69d
[ "BSD-3-Clause" ]
null
null
null
CPAC/utils/datasource.py
danlurie/C-PAC
5ddc2d4fa71eb13728d6156f73cb6e7621dda69d
[ "BSD-3-Clause" ]
null
null
null
import nipype.pipeline.engine as pe import nipype.interfaces.utility as util def create_func_datasource(rest_dict, wf_name='func_datasource'): import nipype.pipeline.engine as pe import nipype.interfaces.utility as util wf = pe.Workflow(name=wf_name) inputnode = pe.Node(util.IdentityInterface( ...
35.523297
120
0.51912
1,048
9,911
4.745229
0.168893
0.050271
0.026141
0.048864
0.482204
0.406193
0.380052
0.318721
0.29821
0.286547
0
0.001617
0.375845
9,911
278
121
35.651079
0.802296
0
0
0.369231
0
0
0.208094
0.004642
0
0
0
0
0
0
null
null
0
0.066667
null
null
0.015385
0
0
0
null
0
0
0
0
0
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
c0d4387fb378dfc3b334ac553a06d6ba94f44bac
2,033
py
Python
entities/calendar.py
vaultboy324/ExecBot
f65d505433e0266f89f16a7af255ae834a09071a
[ "Apache-2.0" ]
2
2020-05-16T03:27:14.000Z
2020-05-18T07:52:34.000Z
entities/calendar.py
vaultboy324/ExecBot
f65d505433e0266f89f16a7af255ae834a09071a
[ "Apache-2.0" ]
null
null
null
entities/calendar.py
vaultboy324/ExecBot
f65d505433e0266f89f16a7af255ae834a09071a
[ "Apache-2.0" ]
null
null
null
from entities.user import User from datetime import datetime, timedelta from entities.odata_requests import ODataRequests class Calendar: @staticmethod def from_pydate_to_sapdate(day): return day.strftime("%Y%m%d") @staticmethod def check_holiday(user: User): day = Calendar.from_pyd...
25.734177
63
0.546483
230
2,033
4.665217
0.295652
0.092265
0.083877
0.053122
0.292637
0.190121
0.130475
0.130475
0.130475
0.130475
0
0.017041
0.364978
2,033
79
64
25.734177
0.814098
0
0
0.188406
0
0
0.043265
0
0
0
0
0
0
1
0.101449
false
0
0.043478
0.028986
0.536232
0
0
0
0
null
0
0
0
0
0
0
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
c0d8cf6652b1c06e59137beca6bc64cbb851eb88
1,579
py
Python
projects/forms.py
Waithera-m/project_rater
1aef586ab7b3650221b81383e7514b1afc780554
[ "Unlicense" ]
null
null
null
projects/forms.py
Waithera-m/project_rater
1aef586ab7b3650221b81383e7514b1afc780554
[ "Unlicense" ]
7
2020-06-06T19:32:43.000Z
2022-03-12T00:34:02.000Z
projects/forms.py
Waithera-m/project_rater
1aef586ab7b3650221b81383e7514b1afc780554
[ "Unlicense" ]
null
null
null
from django import forms from .models import Profile, Project, Votes class RegistrationForm(forms.Form): """ class facilitates the creation of registration form objects """ username = forms.CharField(max_length=30) first_name = forms.CharField(max_length=40) last_name = forms.CharField(max_leng...
29.792453
89
0.632679
174
1,579
5.626437
0.373563
0.085802
0.091931
0.093973
0.275792
0.151175
0.091931
0
0
0
0
0.006843
0.259658
1,579
53
90
29.792453
0.830624
0.177327
0
0.09375
0
0
0.087171
0
0
0
0
0
0
1
0.03125
false
0.09375
0.0625
0
0.5625
0
0
0
0
null
0
0
0
0
0
0
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
c0e228f62ad37de4c89adcadfafbbc9fe31020e2
219
py
Python
meridian/acupoints/tianfu13.py
sinotradition/meridian
8c6c1762b204b72346be4bbfb74dedd792ae3024
[ "Apache-2.0" ]
5
2015-12-14T15:14:23.000Z
2022-02-09T10:15:33.000Z
meridian/acupoints/tianfu13.py
sinotradition/meridian
8c6c1762b204b72346be4bbfb74dedd792ae3024
[ "Apache-2.0" ]
null
null
null
meridian/acupoints/tianfu13.py
sinotradition/meridian
8c6c1762b204b72346be4bbfb74dedd792ae3024
[ "Apache-2.0" ]
3
2015-11-27T05:23:49.000Z
2020-11-28T09:01:56.000Z
#!/usr/bin/python #coding=utf-8 ''' @author: sheng @license: ''' SPELL=u'tiānfǔ' CN=u'天府' NAME=u'tianfu13' CHANNEL='lung' CHANNEL_FULLNAME='LungChannelofHand-Taiyin' SEQ='LU3' if __name__ == '__main__': pass
10.428571
43
0.675799
30
219
4.633333
0.866667
0
0
0
0
0
0
0
0
0
0
0.021053
0.13242
219
20
44
10.95
0.710526
0.246575
0
0
0
0
0.352564
0.153846
0
0
0
0
0
1
0
false
0.125
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
c0e5ddadf9236ce3f7017f22a8e7f2e1e51a3a42
1,301
py
Python
pylayers/exploit/CorserS6.py
usmanwardag/pylayers
2e8a9bdc993b2aacc92610a9c7edf875c6c7b24a
[ "MIT" ]
143
2015-01-09T07:50:20.000Z
2022-03-02T11:26:53.000Z
pylayers/exploit/CorserS6.py
usmanwardag/pylayers
2e8a9bdc993b2aacc92610a9c7edf875c6c7b24a
[ "MIT" ]
148
2015-01-13T04:19:34.000Z
2022-03-11T23:48:25.000Z
pylayers/exploit/CorserS6.py
usmanwardag/pylayers
2e8a9bdc993b2aacc92610a9c7edf875c6c7b24a
[ "MIT" ]
95
2015-05-01T13:22:42.000Z
2022-03-15T11:22:28.000Z
import pylayers.simul.simultraj as st from pylayers.measures.cormoran import * import numpy as np # load CorSer 6 (default) C = CorSer(serie=6,day=11) # create a Simulation from CorSer motion capture file S = st.Simul(C,verbose=True) # create a dictionnary from links llinks = S.N.links['ieee802154'] link={'ieee802154...
34.236842
61
0.695619
203
1,301
4.453202
0.364532
0.030973
0.108407
0.263274
0.554204
0.554204
0.554204
0.185841
0.097345
0.097345
0
0.18843
0.069946
1,301
37
62
35.162162
0.558678
0.703305
0
0
0
0
0.114206
0
0
0
0
0
0
1
0
false
0
0.3
0
0.3
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
c0e88031c2b4b33f82c7cd129d9082b74077fd99
580
py
Python
horton_drone.py
HParker/horton
6734d1fc294dc3d7d1d7f3cce84b41d6f4535a4d
[ "MIT" ]
1
2017-07-06T08:41:28.000Z
2017-07-06T08:41:28.000Z
horton_drone.py
HParker/horton
6734d1fc294dc3d7d1d7f3cce84b41d6f4535a4d
[ "MIT" ]
null
null
null
horton_drone.py
HParker/horton
6734d1fc294dc3d7d1d7f3cce84b41d6f4535a4d
[ "MIT" ]
null
null
null
import horton import libardrone from time import sleep drone = who() dronec = libardrone.ARDrone(True) dronec.reset() @sense(drone) def flying(): return dronec.last_command_is_hovering @effect(drone) def fly(): dronec.takeoff() dronec.hover() @effect(drone) def land(): dronc.land() @assertion(dro...
16.111111
42
0.687931
75
580
5.2
0.466667
0.061538
0.071795
0.107692
0
0
0
0
0
0
0
0.002037
0.153448
580
35
43
16.571429
0.792261
0
0
0.076923
0
0
0.067241
0
0
0
0
0
0.038462
0
null
null
0
0.115385
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
c0ebb4000e5999ef64e551c244247db30d5532f4
3,179
py
Python
src/aria2p/stats.py
jamesdarke/gwader
2b302e9139a854bfbfa1dd1e2394bfd7195c334d
[ "0BSD" ]
309
2019-01-28T17:15:49.000Z
2022-03-31T07:05:29.000Z
src/aria2p/stats.py
jamesdarke/gwader
2b302e9139a854bfbfa1dd1e2394bfd7195c334d
[ "0BSD" ]
106
2018-12-27T22:39:42.000Z
2022-03-12T20:48:40.000Z
src/aria2p/stats.py
jamesdarke/gwader
2b302e9139a854bfbfa1dd1e2394bfd7195c334d
[ "0BSD" ]
48
2019-02-18T12:30:50.000Z
2022-03-21T14:50:37.000Z
""" This module defines the Stats class. It holds information retrieved with the `get_global_stat` method of the client. """ from aria2p.utils import human_readable_bytes class Stats: """This class holds information retrieved with the `get_global_stat` method of the client.""" def __init__(self, struct: di...
28.132743
117
0.603964
364
3,179
5.148352
0.241758
0.076307
0.046958
0.060832
0.715048
0.596585
0.540021
0.506937
0.506937
0.464248
0
0.001356
0.303869
3,179
112
118
28.383929
0.845459
0.464297
0
0.266667
0
0
0.063517
0
0
0
0
0
0
1
0.3
false
0
0.033333
0
0.7
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
c0ee05dc784581ebc18a90af0d4028084f718b25
960
py
Python
events/migrations/0015_auto_20160921_1844.py
dixonary/uwcs-zarya
e982f324c0a6aca156a15c6f597012f47bc070cc
[ "MIT" ]
7
2016-09-30T20:33:46.000Z
2020-03-16T15:04:20.000Z
events/migrations/0015_auto_20160921_1844.py
dixonary/uwcs-zarya
e982f324c0a6aca156a15c6f597012f47bc070cc
[ "MIT" ]
46
2016-10-01T17:52:59.000Z
2022-01-13T00:44:09.000Z
events/migrations/0015_auto_20160921_1844.py
dixonary/uwcs-zarya
e982f324c0a6aca156a15c6f597012f47bc070cc
[ "MIT" ]
6
2016-10-15T02:51:18.000Z
2020-10-02T12:47:54.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2016-09-21 18:44 from __future__ import unicode_literals import datetime from django.db import migrations, models from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('events', '0014_auto_20160921_1759'), ...
29.090909
109
0.614583
105
960
5.495238
0.561905
0.103986
0.129983
0.15078
0.431542
0.431542
0.204506
0.204506
0.204506
0.204506
0
0.100709
0.265625
960
32
110
30
0.717731
0.070833
0
0.32
1
0
0.093363
0.025872
0
0
0
0
0
1
0
false
0
0.16
0
0.28
0
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
c0ee89cdebe1e8dbcfdd9a4996f542343c985b27
1,777
py
Python
tests/py36/test_functions.py
NaleRaphael/bytefall
5fab27091030e8f41822b226b6f7fb189acc992b
[ "MIT" ]
1
2021-05-01T13:06:53.000Z
2021-05-01T13:06:53.000Z
tests/py36/test_functions.py
NaleRaphael/bytefall
5fab27091030e8f41822b226b6f7fb189acc992b
[ "MIT" ]
1
2020-03-25T15:39:28.000Z
2020-03-25T15:39:28.000Z
tests/py36/test_functions.py
NaleRaphael/bytefall
5fab27091030e8f41822b226b6f7fb189acc992b
[ "MIT" ]
null
null
null
""" These tests should be run when version of Python >= 3.5 """ import pytest from .. import vmtest class TestFunctionAnnotations(vmtest.VmTestCase): def test_simple_annotation(self): self.assert_ok("""\ def adder(x: int, y: int, z) -> int: return x+y+z assert add...
27.765625
82
0.465954
223
1,777
3.587444
0.358744
0.05
0.075
0.08
0.41125
0.3275
0.275
0.275
0.275
0.1775
0
0.024186
0.395048
1,777
63
83
28.206349
0.72
0.084412
0
0.409091
0
0.090909
0.727441
0
0
0
0
0
0.272727
1
0.090909
false
0
0.045455
0
0.295455
0.022727
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c0f37be0cc61a75662d5964c9638bd69640aa393
2,540
py
Python
niceman/interface/common_opts.py
yarikoptic/ReproNim
4305c29208e29f1bdbaf0c150f3de089bdd17c1e
[ "MIT" ]
null
null
null
niceman/interface/common_opts.py
yarikoptic/ReproNim
4305c29208e29f1bdbaf0c150f3de089bdd17c1e
[ "MIT" ]
null
null
null
niceman/interface/common_opts.py
yarikoptic/ReproNim
4305c29208e29f1bdbaf0c150f3de089bdd17c1e
[ "MIT" ]
1
2017-12-20T18:00:22.000Z
2017-12-20T18:00:22.000Z
# emacs: -*- mode: python; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*- # ex: set sts=4 ts=4 sw=4 noet: # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the niceman package for the # copyright and license terms. # # ## ### ##...
33.866667
87
0.62874
293
2,540
5.37884
0.358362
0.082487
0.133249
0.146574
0.33566
0.33566
0.33566
0.33566
0.33566
0.33566
0
0.002387
0.175197
2,540
74
88
34.324324
0.749881
0.10315
0
0.254902
0
0
0.406676
0
0
0
0
0
0
1
0
false
0.117647
0.039216
0
0.039216
0
0
0
0
null
0
0
0
0
0
0
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
c0f56bb854308018245837d7bc724251757a1f67
5,420
py
Python
controlgraph.py
opx-infra/controlgraph
76fc8e041159f78456e4fc717fedb486fcfa8c08
[ "MIT" ]
null
null
null
controlgraph.py
opx-infra/controlgraph
76fc8e041159f78456e4fc717fedb486fcfa8c08
[ "MIT" ]
null
null
null
controlgraph.py
opx-infra/controlgraph
76fc8e041159f78456e4fc717fedb486fcfa8c08
[ "MIT" ]
null
null
null
"""Generate build order graph from directory of debian packaging repositories""" __version__ = "0.7.1" import argparse import logging import re import sys from collections import namedtuple from pathlib import Path from typing import Dict, List import networkx as nx from debian import deb822 L = logging.getLogger...
30.449438
87
0.590037
636
5,420
4.874214
0.265723
0.04129
0.043871
0.036774
0.118065
0.110968
0.059355
0.039355
0.039355
0.039355
0
0.004167
0.291513
5,420
177
88
30.621469
0.803125
0.105904
0
0.237037
1
0
0.141106
0
0
0
0
0
0
1
0.02963
false
0
0.066667
0
0.133333
0.037037
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c0fae7279c53dcc0c402737c961efe3326c32d4d
2,269
py
Python
file_stream/writer.py
nutalk/file_stream
c1a4751dfc9bfb96ba846f58ef3a4ddb2f7c827d
[ "MIT" ]
1
2020-03-20T22:39:13.000Z
2020-03-20T22:39:13.000Z
file_stream/writer.py
nutalk/file_stream
c1a4751dfc9bfb96ba846f58ef3a4ddb2f7c827d
[ "MIT" ]
null
null
null
file_stream/writer.py
nutalk/file_stream
c1a4751dfc9bfb96ba846f58ef3a4ddb2f7c827d
[ "MIT" ]
null
null
null
from file_stream.executor import Executor import csv import json class CsvWriter(Executor): def __init__(self, fpath: str, fieldnames: list, **kwargs): """ 写csv文件。 :param fpath: 目标地址。 :param fieldnames: 表头组成。 :param delimiter: 分隔符。 """ super().__init__() ...
26.383721
83
0.564566
262
2,269
4.755725
0.267176
0.072231
0.051364
0.054575
0.572231
0.506421
0.463082
0.416533
0.331461
0.331461
0
0.002508
0.297047
2,269
85
84
26.694118
0.778683
0.051565
0
0.589286
0
0
0.040174
0
0
0
0
0
0.035714
1
0.214286
false
0
0.053571
0
0.321429
0.035714
0
0
0
null
0
0
0
0
0
0
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
8d048f760afdbd54561f3f57b62828322fe8fe60
552
py
Python
CodeSchoolRecipeProject/CodeSchoolRecipeApp/migrations/0011_auto_20190311_2137.py
cs-fullstack-2019-spring/django-mini-project5-bettyjware11
298caca56a3be817c8f882ba0e0070992cac1cb8
[ "Apache-2.0" ]
null
null
null
CodeSchoolRecipeProject/CodeSchoolRecipeApp/migrations/0011_auto_20190311_2137.py
cs-fullstack-2019-spring/django-mini-project5-bettyjware11
298caca56a3be817c8f882ba0e0070992cac1cb8
[ "Apache-2.0" ]
null
null
null
CodeSchoolRecipeProject/CodeSchoolRecipeApp/migrations/0011_auto_20190311_2137.py
cs-fullstack-2019-spring/django-mini-project5-bettyjware11
298caca56a3be817c8f882ba0e0070992cac1cb8
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.0.6 on 2019-03-11 21:37 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('CodeSchoolRecipeApp', '0010_auto_20190311_1903'), ] operations = [ migrati...
26.285714
133
0.675725
65
552
5.630769
0.676923
0.065574
0.076503
0.120219
0
0
0
0
0
0
0
0.071759
0.217391
552
20
134
27.6
0.775463
0.081522
0
0
1
0
0.116832
0.045545
0
0
0
0
0
1
0
false
0
0.214286
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8d06615e3765cac07a3ab53da51a38bfc04b84d7
3,047
py
Python
boto-python-workshop/01_list_objects.py
shy950521/ecs-samples
b8628b78ab3fccabee1e6442375ac9afd4b39824
[ "Apache-2.0" ]
28
2016-10-31T20:21:55.000Z
2022-03-22T08:49:19.000Z
boto-python-workshop/01_list_objects.py
shy950521/ecs-samples
b8628b78ab3fccabee1e6442375ac9afd4b39824
[ "Apache-2.0" ]
11
2016-11-22T21:18:44.000Z
2021-04-21T08:32:52.000Z
boto-python-workshop/01_list_objects.py
shy950521/ecs-samples
b8628b78ab3fccabee1e6442375ac9afd4b39824
[ "Apache-2.0" ]
30
2016-11-09T18:09:38.000Z
2022-03-28T23:07:48.000Z
''' Same stuff as 00_getting_started. If you've pasted all this into your python interpreter already, you can skip past this. ''' from boto.s3.connection import S3Connection, OrdinaryCallingFormat from boto.s3.key import Key from boto.s3.prefix import Prefix host = "object.ecstestdrive.com" port = 443 secure = port =...
38.0875
113
0.598622
359
3,047
4.972145
0.314763
0.07563
0.053782
0.040336
0
0
0
0
0
0
0
0.167393
0.247128
3,047
79
114
38.56962
0.610724
0
0
0
0
0
0.39395
0.334875
0
0
0
0
0
0
null
null
0
0.048387
null
null
0.064516
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
8d0cb22f4fa00f824767016b8c3c8e39579ffb0e
526
py
Python
test/nr/util/keyvalue/test_sqlite.py
NiklasRosenstein/python-nr.util
087f2410d38006c1005a5fb330c47a56bcdb2279
[ "MIT" ]
null
null
null
test/nr/util/keyvalue/test_sqlite.py
NiklasRosenstein/python-nr.util
087f2410d38006c1005a5fb330c47a56bcdb2279
[ "MIT" ]
3
2022-02-16T13:17:28.000Z
2022-03-14T15:28:41.000Z
test/nr/util/keyvalue/test_sqlite.py
NiklasRosenstein/python-nr.util
087f2410d38006c1005a5fb330c47a56bcdb2279
[ "MIT" ]
null
null
null
import pytest from nr.util.keyvalue.sqlite import SqliteDatastore def test_sqlite_datastore(): ds = SqliteDatastore(':memory:') kv = ds.get_namespace('foobar') assert list(ds.get_namespaces()) == ['foobar'] with pytest.raises(KeyError) as excinfo: kv.get('spam') assert str(excinfo.value) == repr("fo...
23.909091
53
0.653992
72
526
4.722222
0.5
0.117647
0.105882
0.141176
0.241176
0
0
0
0
0
0
0
0.152091
526
21
54
25.047619
0.762332
0
0
0
0
0
0.15619
0
0
0
0
0
0.428571
1
0.071429
false
0
0.142857
0
0.214286
0
0
0
0
null
0
0
0
0
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
238893c5f120134a2a04cb39ec832ba4e9fe6791
260
py
Python
RackTablesDB/__init__.py
jvzantvoort/RackTablesDB
70b8408c20be744084a3b0033212234fce3f45ed
[ "MIT" ]
null
null
null
RackTablesDB/__init__.py
jvzantvoort/RackTablesDB
70b8408c20be744084a3b0033212234fce3f45ed
[ "MIT" ]
null
null
null
RackTablesDB/__init__.py
jvzantvoort/RackTablesDB
70b8408c20be744084a3b0033212234fce3f45ed
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """RackTablesDB - a python library to access the racktables database. """ __author__ = "John van Zantvoort" __email__ = "john.van.zantvoort@snow.nl" __license__ = "The MIT License (MIT)" __version__ = "1.0.1"
18.571429
69
0.684615
35
260
4.628571
0.771429
0.08642
0.197531
0
0
0
0
0
0
0
0
0.018182
0.153846
260
13
70
20
0.718182
0.419231
0
0
0
0
0.503597
0.18705
0
0
0
0
0
1
0
false
0
0
0
0
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
239f7141f693ed4fa49dc750138bc16c42719094
4,649
py
Python
tests/test_params.py
couyang24/DeepLearning
686426e9f3c0e205f9418d7145733610cac5ee19
[ "Apache-2.0" ]
2
2022-03-21T01:46:01.000Z
2022-03-22T14:01:14.000Z
tests/test_params.py
couyang24/DeepLearning
686426e9f3c0e205f9418d7145733610cac5ee19
[ "Apache-2.0" ]
4
2022-03-17T13:02:00.000Z
2022-03-23T16:14:06.000Z
tests/test_params.py
couyang24/DeepLearning
686426e9f3c0e205f9418d7145733610cac5ee19
[ "Apache-2.0" ]
null
null
null
"""test update parameters""" import numpy as np from neuralink.parameters import Parameters from .utils import multiple_test def test_update_parameters1(): parameters = { "W1": np.array( [ [-0.00615039, 0.0169021], [-0.02311792, 0.03137121], [-...
32.284722
86
0.533878
560
4,649
4.353571
0.235714
0.045939
0.032814
0.02461
0.319934
0.180066
0.103363
0.103363
0.103363
0.103363
0
0.232951
0.287159
4,649
143
87
32.51049
0.502716
0.004732
0
0.204724
0
0
0.122268
0.004544
0
0
0
0
0.094488
1
0.015748
false
0
0.023622
0
0.03937
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
23a87e3b185e8524b300128f19fe832444f20746
1,687
py
Python
pongpy/pong.py
TatchNicolas/pong
8e87af102115e43d9b1a0c40ba84d27a82dc73bd
[ "MIT" ]
3
2019-03-20T08:18:20.000Z
2019-03-21T02:23:51.000Z
pongpy/pong.py
TatchNicolas/pong
8e87af102115e43d9b1a0c40ba84d27a82dc73bd
[ "MIT" ]
1
2019-09-14T10:36:51.000Z
2019-09-14T10:36:51.000Z
pongpy/pong.py
TatchNicolas/pong
8e87af102115e43d9b1a0c40ba84d27a82dc73bd
[ "MIT" ]
1
2019-09-14T07:59:47.000Z
2019-09-14T07:59:47.000Z
from logging import getLogger import pyxel from pongpy.controllers.board import Board from pongpy.definitions import PADDING, HEIGHT, WIDTH, BOARD_WIDTH, BOARD_HEIGHT, SET_POINT, FRAME_RATE from pongpy.interfaces.team import Team from pongpy.models.color import Color from pongpy.sounds import play_bgm, init_sounds l...
28.116667
125
0.647896
234
1,687
4.504274
0.324786
0.07685
0.049336
0.045541
0.047438
0.047438
0
0
0
0
0
0.01502
0.250148
1,687
59
126
28.59322
0.818182
0.034381
0
0
0
0
0.035077
0.033231
0
0
0
0
0
1
0.121951
false
0
0.170732
0
0.536585
0.02439
0
0
0
null
0
0
0
0
0
0
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
23afcac17a8373f65f53c50de7139c0a6ed37f9f
4,151
py
Python
tests/helpers.py
machow/funneljoin-py
03b8f7ac776a9a69fe16116b9c751ad92e1fef15
[ "MIT" ]
1
2021-09-06T14:49:52.000Z
2021-09-06T14:49:52.000Z
tests/helpers.py
machow/funneljoin-py
03b8f7ac776a9a69fe16116b9c751ad92e1fef15
[ "MIT" ]
null
null
null
tests/helpers.py
machow/funneljoin-py
03b8f7ac776a9a69fe16116b9c751ad92e1fef15
[ "MIT" ]
null
null
null
from siuba.sql import LazyTbl import pytest import os from sqlalchemy import create_engine, types BACKEND_CONFIG = { "postgresql": { "dialect": "postgresql", "dbname": ["SB_TEST_PGDATABASE", "postgres"], "port": ["SB_TEST_PGPORT", "5433"], "user": ["SB_TEST_PGUSE...
28.047297
100
0.581547
495
4,151
4.694949
0.30303
0.012909
0.013769
0.012909
0.072289
0.072289
0.054217
0
0
0
0
0.00487
0.25801
4,151
147
101
28.238095
0.749675
0.086244
0
0.134615
0
0
0.11255
0.013738
0
0
0
0.006803
0
1
0.144231
false
0.057692
0.076923
0.028846
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
23b093824a89ad1ce3899c75d1367d336e554220
3,397
py
Python
tools/perf/page_sets/rendering/key_idle_power_cases.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
14,668
2015-01-01T01:57:10.000Z
2022-03-31T23:33:32.000Z
tools/perf/page_sets/rendering/key_idle_power_cases.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
113
2015-05-04T09:58:14.000Z
2022-01-31T19:35:03.000Z
tools/perf/page_sets/rendering/key_idle_power_cases.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
5,941
2015-01-02T11:32:21.000Z
2022-03-31T16:35:46.000Z
# Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from page_sets import android_screen_restoration_shared_state from page_sets.rendering import rendering_story from page_sets.rendering import story_tags from ...
39.964706
80
0.761554
427
3,397
5.784543
0.386417
0.047368
0.034008
0.068016
0.303644
0.155466
0.065587
0.065587
0.030769
0
0
0.004928
0.163674
3,397
84
81
40.440476
0.864484
0.266706
0
0.076923
0
0
0.197576
0.17899
0
0
0
0
0
1
0.057692
false
0
0.076923
0
0.634615
0
0
0
0
null
0
0
0
0
0
0
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
23b40b87045adefcf149ba4a4f88e1e0d38cd27f
696
py
Python
experiments/imdb/lr_bow.py
saulberardo/DSLab
b135d0c7ba99001cb306a6d0dd07ff9f9fb37370
[ "MIT" ]
null
null
null
experiments/imdb/lr_bow.py
saulberardo/DSLab
b135d0c7ba99001cb306a6d0dd07ff9f9fb37370
[ "MIT" ]
null
null
null
experiments/imdb/lr_bow.py
saulberardo/DSLab
b135d0c7ba99001cb306a6d0dd07ff9f9fb37370
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Classify IMDB with Logistic Regression using BoW. # Accuracy 0.85144 (with 5k words) 0.87032 (with the entire vocab) """ from sklearn.linear_model import LogisticRegression from sklearn.metrics import accuracy_score import config from datasets.imdb import Imdb # Load dataset print(...
19.885714
93
0.74569
106
696
4.707547
0.509434
0.032064
0.036072
0.056112
0.06012
0
0
0
0
0
0
0.03
0.137931
696
34
94
20.470588
0.801667
0.291667
0
0
0
0
0.104603
0
0
0
0
0
0
1
0
false
0
0.307692
0
0.307692
0.230769
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
23bacdf684662858e1de85ec6374105a2066bbe2
543
py
Python
api/importer/tests/application/test_import_kam_handler.py
manisharmagarg/qymatix
0dc240970359429ae5105db79f9aebf1a99ba6fd
[ "Apache-2.0" ]
null
null
null
api/importer/tests/application/test_import_kam_handler.py
manisharmagarg/qymatix
0dc240970359429ae5105db79f9aebf1a99ba6fd
[ "Apache-2.0" ]
null
null
null
api/importer/tests/application/test_import_kam_handler.py
manisharmagarg/qymatix
0dc240970359429ae5105db79f9aebf1a99ba6fd
[ "Apache-2.0" ]
null
null
null
from api.importer.importer.application.import_kam_handler import ImportKamHandler from api.importer.importer.application.import_kam_command import ImportKamCommand import pytest from unittest.mock import patch import os def test_handler_initializes(): filename = os.path.realpath(__file__) mappings = {'a': 'b...
30.166667
81
0.780847
62
543
6.677419
0.564516
0.033816
0.072464
0.111111
0.207729
0.207729
0.207729
0
0
0
0
0
0.128913
543
17
82
31.941176
0.875264
0.128913
0
0
0
0
0.004246
0
0
0
0
0
0
1
0.090909
false
0
0.727273
0
0.818182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
23bc6ba15d33722edda33873e5eaf4905133aa9d
586
py
Python
evaluateprofs/professors/migrations/0002_comment.py
simplyalde/evaluateprofs-dev
1d5e6bdee9094f3fda40419f31d65653a5d551e6
[ "MIT" ]
1
2020-05-16T07:44:15.000Z
2020-05-16T07:44:15.000Z
evaluateprofs/professors/migrations/0002_comment.py
simplyalde/evaluateprofs-dev
1d5e6bdee9094f3fda40419f31d65653a5d551e6
[ "MIT" ]
null
null
null
evaluateprofs/professors/migrations/0002_comment.py
simplyalde/evaluateprofs-dev
1d5e6bdee9094f3fda40419f31d65653a5d551e6
[ "MIT" ]
null
null
null
# Generated by Django 2.2.1 on 2019-05-19 18:42 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('professors', '0001_initial'), ] operations = [ migrations.CreateModel( name='Comment', fields=[ ('id...
26.636364
114
0.575085
58
586
5.724138
0.758621
0
0
0
0
0
0
0
0
0
0
0.045564
0.288396
586
21
115
27.904762
0.7506
0.076792
0
0
1
0
0.122449
0
0
0
0
0
0
1
0
false
0
0.066667
0
0.266667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
23bdb869b49af2f0dadb05301df839cd4dd53cbb
1,054
py
Python
Company Questions/Adobe/QuickSort.py
deepamsshah/coding-interviews-prep
27b108691df8f856c7534b9b8cd896a171e16475
[ "Vim", "Fair", "MIT" ]
4
2020-09-11T18:22:32.000Z
2022-01-05T20:36:29.000Z
Company Questions/Adobe/QuickSort.py
deepamsshah/coding-interviews-prep
27b108691df8f856c7534b9b8cd896a171e16475
[ "Vim", "Fair", "MIT" ]
null
null
null
Company Questions/Adobe/QuickSort.py
deepamsshah/coding-interviews-prep
27b108691df8f856c7534b9b8cd896a171e16475
[ "Vim", "Fair", "MIT" ]
3
2020-09-27T17:26:10.000Z
2021-01-10T16:06:47.000Z
{ #Initial Template for Python 3 if __name__ == "__main__": t=int(input()) for i in range(t): n=int(input()) arr=list(map(int,input().split())) quickSort(arr,0,n-1) for i in range(n): print(arr[i],end=" ") print() } ''' This is a function problem.You only nee...
25.095238
85
0.535104
154
1,054
3.61039
0.415584
0.035971
0.053957
0.039568
0
0
0
0
0
0
0
0.017167
0.336812
1,054
42
86
25.095238
0.778255
0.183112
0
0
0
0
0.011688
0
0
0
0
0
0
0
null
null
0
0
null
null
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
1
0
0
0
0
0
0
0
0
1
23c1c7e4b398ad53b27ebf7e91400cc9f393a1f3
2,985
py
Python
yasql/apps/redisms/views.py
lazzyfu/EmAudit
2e73941aaca2a9b69d49e360d3a2376029a8ec1d
[ "Apache-2.0" ]
443
2018-02-08T02:53:48.000Z
2020-10-13T10:01:55.000Z
yasql/apps/redisms/views.py
XGSClear7/YaSQL
2e73941aaca2a9b69d49e360d3a2376029a8ec1d
[ "Apache-2.0" ]
27
2020-10-14T10:01:52.000Z
2022-03-12T00:49:47.000Z
yasql/apps/redisms/views.py
XGSClear7/YaSQL
2e73941aaca2a9b69d49e360d3a2376029a8ec1d
[ "Apache-2.0" ]
148
2018-03-15T06:07:25.000Z
2020-08-17T14:58:45.000Z
# -*- coding:utf-8 -*- # by pandonglin from redisms import models, serializers from redisms.redisApi import REDIS_CMDS, RedisApi from libs.response import JsonResponseV1 from rest_framework.views import APIView from libs import permissions from redisms.analysis import StatCounter class RedisLCmds(APIView): def ge...
35.535714
101
0.668342
323
2,985
5.996904
0.28483
0.049561
0.025813
0.043882
0.488384
0.477026
0.426949
0.426949
0.377388
0.339184
0
0.005719
0.238526
2,985
84
102
35.535714
0.846458
0.01139
0
0.461538
0
0
0.011868
0
0
0
0
0
0
1
0.092308
false
0.076923
0.092308
0.015385
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
23c1ff9a6156482066587fa27eb49c90b4598ba5
4,173
py
Python
docs/sample_code/generate_tone.py
bbbart/pyfmodex
b3f89fdb40ecebe528b229a3c5310ec7d7f66f55
[ "MIT" ]
19
2015-02-01T08:26:25.000Z
2021-11-18T02:32:29.000Z
docs/sample_code/generate_tone.py
tyrylu/pyfmodex
b3f89fdb40ecebe528b229a3c5310ec7d7f66f55
[ "MIT" ]
32
2015-01-10T07:20:59.000Z
2021-12-29T20:28:58.000Z
docs/sample_code/generate_tone.py
bbbart/pyfmodex
b3f89fdb40ecebe528b229a3c5310ec7d7f66f55
[ "MIT" ]
12
2015-01-05T07:54:42.000Z
2021-03-27T12:21:47.000Z
"""Example code to show how to play generated tones using System.play_dsp instead of manually connecting and disconnecting DSP units. """ import curses import sys import time import pyfmodex from pyfmodex.enums import DSP_OSCILLATOR, DSP_TYPE MIN_FMOD_VERSION = 0x00020108 # Create a System object and initialize sys...
30.021583
73
0.541577
482
4,173
4.620332
0.307054
0.052537
0.037719
0.044903
0.290525
0.224517
0.186798
0.186798
0.186798
0.186798
0
0.027591
0.357297
4,173
138
74
30.23913
0.802759
0.090822
0
0.280374
1
0
0.136979
0.018848
0
0
0.002655
0
0
1
0.009346
false
0
0.046729
0
0.056075
0.009346
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
23c89804334ebc84c93a754a617db1b5df49d87b
853
py
Python
python_interface/crazyflie/migrations/0001_initial.py
leohentschker/database-crazie
c3d4b298ba5140528cb2e9f73b2a7d419e0f6067
[ "MIT" ]
null
null
null
python_interface/crazyflie/migrations/0001_initial.py
leohentschker/database-crazie
c3d4b298ba5140528cb2e9f73b2a7d419e0f6067
[ "MIT" ]
null
null
null
python_interface/crazyflie/migrations/0001_initial.py
leohentschker/database-crazie
c3d4b298ba5140528cb2e9f73b2a7d419e0f6067
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.2 on 2016-12-16 15:35 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='SolvedT...
31.592593
114
0.61313
97
853
5.206186
0.608247
0.041584
0.065347
0.09901
0.245545
0.245545
0.245545
0.245545
0.245545
0.245545
0
0.040945
0.255569
853
26
115
32.807692
0.754331
0.078546
0
0
1
0
0.060026
0
0
0
0
0
0
1
0
false
0
0.111111
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
23ccd5a10312cb3fa9838b251371c2bcb0f6824c
264
py
Python
Baekjoon/Python/2775.py
KHJcode/Algorithm-study
fa08d3c752fcb3557fd45fb394157926afc0de4a
[ "MIT" ]
2
2020-05-23T01:55:38.000Z
2020-07-07T15:59:00.000Z
Baekjoon/Python/2775.py
KHJcode/Algorithm-study
fa08d3c752fcb3557fd45fb394157926afc0de4a
[ "MIT" ]
null
null
null
Baekjoon/Python/2775.py
KHJcode/Algorithm-study
fa08d3c752fcb3557fd45fb394157926afc0de4a
[ "MIT" ]
null
null
null
count = int(input()) for i in range(count): k = int(input()) n = int(input()) people = [j for j in range(1,n+1)] for x in range (k): for v in range(n-1): people[v+1] += people[v] print(people[-1])
24
42
0.454545
42
264
2.857143
0.357143
0.233333
0.133333
0
0
0
0
0
0
0
0
0.030488
0.378788
264
10
43
26.4
0.70122
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.111111
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
23d6ab8500d9e9b9bbe0c6816bf4d1eea612dab7
1,540
py
Python
scripts/evaluation2.py
YogiAi/FinalProject_hmap
386666039c0670031257899b0fa7d91aa41e684d
[ "MIT", "Unlicense" ]
null
null
null
scripts/evaluation2.py
YogiAi/FinalProject_hmap
386666039c0670031257899b0fa7d91aa41e684d
[ "MIT", "Unlicense" ]
null
null
null
scripts/evaluation2.py
YogiAi/FinalProject_hmap
386666039c0670031257899b0fa7d91aa41e684d
[ "MIT", "Unlicense" ]
null
null
null
import numpy as np def mase(error, forecast): f_sum = 0 for count in range(1, len(forecast)): f_sum += forecast[count] - forecast[count - 1] base = f_sum/(len(forecast) - 1) sum = 0 for e in error: sum += e/base return sum/len(error) def mae(error): sum = 0 for item ...
26.551724
109
0.622078
199
1,540
4.738693
0.326633
0.042418
0.029692
0.04772
0.343584
0.301166
0.301166
0.301166
0.182397
0.182397
0
0.255319
0.237013
1,540
58
110
26.551724
0.547234
0.133117
0
0.225
0
0
0.042011
0
0
0
0
0
0
1
0.075
false
0
0.025
0
0.175
0.175
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
23e2a03b4a778028043591a7c3bd1d3d8376bb51
614
py
Python
sandbox/checksum_T.py
nbari/ftrunk
4e0d438c1bd0dcd1a8d088a476955b705725c1f9
[ "BSD-2-Clause" ]
null
null
null
sandbox/checksum_T.py
nbari/ftrunk
4e0d438c1bd0dcd1a8d088a476955b705725c1f9
[ "BSD-2-Clause" ]
null
null
null
sandbox/checksum_T.py
nbari/ftrunk
4e0d438c1bd0dcd1a8d088a476955b705725c1f9
[ "BSD-2-Clause" ]
null
null
null
import hashlib import time import Queue import threading start_time = time.time() def reader(queue): h = hashlib.sha256() while True: msg = queue.get() if msg == 'DONE': break h.update(msg) print h.hexdigest() print h.hexdigest() q = Queue.Queue() t = threadin...
18.606061
61
0.592834
87
614
4.16092
0.54023
0.066298
0.082873
0
0
0
0
0
0
0
0
0.025806
0.242671
614
32
62
19.1875
0.752688
0.060261
0
0.086957
0
0
0.06446
0
0
0
0
0
0
0
null
null
0
0.173913
null
null
0.130435
0
0
0
null
0
0
0
0
0
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
23eae27414cd659b72e35c787c1af837bc07476f
2,605
py
Python
tests/test_gui/test_baseitem.py
dls-controls/github-publish-test
25f6ce1af28eff9930f65e4f2c9fb0474e0b570c
[ "Apache-2.0" ]
null
null
null
tests/test_gui/test_baseitem.py
dls-controls/github-publish-test
25f6ce1af28eff9930f65e4f2c9fb0474e0b570c
[ "Apache-2.0" ]
null
null
null
tests/test_gui/test_baseitem.py
dls-controls/github-publish-test
25f6ce1af28eff9930f65e4f2c9fb0474e0b570c
[ "Apache-2.0" ]
null
null
null
import os import sys sys.path.append(os.path.join(os.path.dirname(__file__), "..")) import setup_malcolm_paths import unittest from mock import MagicMock, patch # module imports from malcolm.gui.baseitem import BaseItem class TestBaseItem(unittest.TestCase): def setUp(self): ref = MagicMock() B...
32.160494
79
0.647601
318
2,605
5.110063
0.242138
0.123077
0.140308
0.169846
0.365538
0.313846
0.169846
0.169846
0.108308
0.108308
0
0.011707
0.213052
2,605
80
80
32.5625
0.780976
0.005374
0
0.16129
0
0
0.044032
0.012746
0
0
0
0
0.306452
1
0.193548
false
0
0.096774
0
0.306452
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
23ee05e61bf7a681f3b56aaee270b00fd33a80b9
4,238
py
Python
visas/views.py
sravanti/UVisa
b5dd782f844fb5d900f9d5e0284709f240b0ad35
[ "MIT" ]
null
null
null
visas/views.py
sravanti/UVisa
b5dd782f844fb5d900f9d5e0284709f240b0ad35
[ "MIT" ]
null
null
null
visas/views.py
sravanti/UVisa
b5dd782f844fb5d900f9d5e0284709f240b0ad35
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from django.http import HttpResponse, JsonResponse from django.template import RequestContext from django.contrib.auth import authenticate, login, logout from visas.forms import * from visas.models import * from django.core.urlresolvers import reverse from django.http impor...
33.904
105
0.671307
523
4,238
5.311663
0.223709
0.067315
0.032397
0.038877
0.326854
0.297696
0.193665
0.142549
0.091433
0.091433
0
0.000603
0.217319
4,238
124
106
34.177419
0.836901
0.007079
0
0.273585
0
0
0.10118
0.019995
0
0
0
0
0
0
null
null
0.04717
0.132075
null
null
0.122642
0
0
0
null
0
0
0
0
0
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
23efddf67d5db8e56a20c9f45ee2bcc954e7ed9e
2,548
py
Python
oss_src/unity/python/sframe/test/test_extensions.py
parquette/ParFrame
0522aa6afdf529b3e91505b70e918f1500aae886
[ "BSD-3-Clause" ]
null
null
null
oss_src/unity/python/sframe/test/test_extensions.py
parquette/ParFrame
0522aa6afdf529b3e91505b70e918f1500aae886
[ "BSD-3-Clause" ]
null
null
null
oss_src/unity/python/sframe/test/test_extensions.py
parquette/ParFrame
0522aa6afdf529b3e91505b70e918f1500aae886
[ "BSD-3-Clause" ]
null
null
null
''' Copyright (C) 2015 Dato, Inc. All rights reserved. This software may be modified and distributed under the terms of the BSD license. See the LICENSE file for details. ''' import unittest from ..data_structures.sarray import SArray from ..data_structures.sframe import SFrame class VariantCheckTest(unittest.TestC...
38.606061
81
0.594192
330
2,548
4.5
0.257576
0.194613
0.226263
0.074074
0.400673
0.252525
0.193939
0.173737
0.173737
0.074074
0
0.018614
0.240973
2,548
65
82
39.2
0.749224
0.098901
0
0.083333
0
0
0.021425
0
0
0
0
0
0.083333
1
0.0625
false
0
0.104167
0
0.1875
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
23f4e011cc2f2bc66abeaca23a96e2680f53f24e
719
py
Python
tests/api/test_jobs.py
eroberts9789/virtool-workflow
18219eec2b9b934cedd3770ac319f40305c165f2
[ "MIT" ]
null
null
null
tests/api/test_jobs.py
eroberts9789/virtool-workflow
18219eec2b9b934cedd3770ac319f40305c165f2
[ "MIT" ]
null
null
null
tests/api/test_jobs.py
eroberts9789/virtool-workflow
18219eec2b9b934cedd3770ac319f40305c165f2
[ "MIT" ]
null
null
null
from virtool_workflow.api import jobs from virtool_workflow.data_model import Status from virtool_workflow.testing.fixtures import install_as_pytest_fixtures from pytest import fixture @fixture def mem(): return 8 @fixture def proc(): return 4 install_as_pytest_fixtures(globals(), jobs.acquire_job) asyn...
23.193548
72
0.770515
109
719
4.779817
0.394495
0.095969
0.109405
0.097889
0.161228
0.095969
0
0
0
0
0
0.006547
0.150209
719
30
73
23.966667
0.846154
0
0
0.105263
0
0
0.045897
0
0
0
0
0
0.105263
1
0.105263
false
0
0.210526
0.105263
0.421053
0
0
0
0
null
0
0
0
0
0
0
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
23f8b8a1d4dd5b6b55ad1c9793a58f74ed3f3d2f
1,304
py
Python
stalkerweb/stalkerweb/stutils.py
btorch/stalker
e575ec610ce3988354cbab13bcd78dd762e375df
[ "Apache-2.0" ]
4
2015-12-26T10:07:41.000Z
2018-06-22T19:44:09.000Z
stalkerweb/stalkerweb/stutils.py
btorch/stalker
e575ec610ce3988354cbab13bcd78dd762e375df
[ "Apache-2.0" ]
2
2018-06-25T16:18:07.000Z
2018-07-10T14:01:46.000Z
stalkerweb/stalkerweb/stutils.py
btorch/stalker
e575ec610ce3988354cbab13bcd78dd762e375df
[ "Apache-2.0" ]
1
2019-09-05T01:29:46.000Z
2019-09-05T01:29:46.000Z
from flask import Flask, Response from werkzeug.routing import BaseConverter, ValidationError from base64 import urlsafe_b64encode, urlsafe_b64decode from bson.objectid import ObjectId from bson.errors import InvalidId import datetime import mmh3 try: import json except ImportError: import simplejson as json ...
24.603774
63
0.693252
148
1,304
6.067568
0.452703
0.026726
0.035635
0.048998
0.066815
0
0
0
0
0
0
0.019802
0.22546
1,304
52
64
25.076923
0.869307
0.029908
0
0.135135
0
0
0.014252
0
0
0
0.014252
0
0
1
0.135135
false
0.027027
0.297297
0.081081
0.702703
0
0
0
0
null
0
0
0
0
0
0
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
23f91242a02d6546ce1de760511d6b423b38e7f0
18,787
py
Python
server/webui/__init__.py
vaginessa/Freeloader-Remote-Administration-Tool-for-Windows
0326687885cb5087074ea5a293cf6727490b5ddf
[ "MIT" ]
1
2021-06-30T07:17:16.000Z
2021-06-30T07:17:16.000Z
server/webui/__init__.py
vaginessa/Freeloader-Remote-Administration-Tool-for-Windows
0326687885cb5087074ea5a293cf6727490b5ddf
[ "MIT" ]
null
null
null
server/webui/__init__.py
vaginessa/Freeloader-Remote-Administration-Tool-for-Windows
0326687885cb5087074ea5a293cf6727490b5ddf
[ "MIT" ]
1
2021-10-19T05:35:30.000Z
2021-10-19T05:35:30.000Z
# -*- coding: utf-8 -*- import json, requests import random import base64,os import ipaddress import string,smtplib from functools import wraps import hashlib from datetime import datetime from flask import Blueprint from flask import abort from flask import request from flask import redirect from flask import render_t...
39.468487
657
0.661362
2,355
18,787
5.152017
0.157537
0.022253
0.034452
0.034616
0.474903
0.382593
0.331657
0.2902
0.253936
0.231682
0
0.01989
0.183797
18,787
476
658
39.468487
0.771293
0.014265
0
0.303665
0
0.065445
0.390819
0.10368
0
0
0
0
0
0
null
null
0.039267
0.065445
null
null
0.007853
0
0
0
null
0
0
0
0
0
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
9b08b0c06470c04ee8c5f69a8ec2c40d0c98702c
3,191
py
Python
tfmini.py
mws488991/MLiDar-RPiWebServer
cd12f3729377a5fcc8a7c10b692adf019a3fd3d8
[ "MIT" ]
null
null
null
tfmini.py
mws488991/MLiDar-RPiWebServer
cd12f3729377a5fcc8a7c10b692adf019a3fd3d8
[ "MIT" ]
null
null
null
tfmini.py
mws488991/MLiDar-RPiWebServer
cd12f3729377a5fcc8a7c10b692adf019a3fd3d8
[ "MIT" ]
null
null
null
import sys, serial, time, array import numpy as np import statistics as st class TFmini(): def __init__(self): self.ser = serial.Serial("/dev/ttyAMA0", 115200) #self.unit_cm = 24.57284 # number unit per one centimater self.lidar_per_sec = 127.64107 self.rate_s...
33.589474
75
0.377311
313
3,191
3.805112
0.367412
0.070529
0.04618
0.032746
0.314022
0.314022
0.255248
0.255248
0.255248
0.203191
0
0.053451
0.536822
3,191
95
76
33.589474
0.744249
0.099655
0
0.338462
0
0
0.023163
0
0
0
0
0
0.015385
1
0.061538
false
0.015385
0.046154
0
0.184615
0.076923
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
9b0c01790d15dca2111c1838bc058b6a6d8ade3b
6,423
py
Python
assignment4.py
alessanf/CS434
56be63b430cb423961f477da617b78c22618f009
[ "MIT" ]
null
null
null
assignment4.py
alessanf/CS434
56be63b430cb423961f477da617b78c22618f009
[ "MIT" ]
null
null
null
assignment4.py
alessanf/CS434
56be63b430cb423961f477da617b78c22618f009
[ "MIT" ]
null
null
null
import numpy as np import random as rand import math, csv def read_from_file(): with open("data.txt", 'r') as f: data = csv.reader(f) data = list(data) return data def temp_print_to_file(data): with open("cluster.csv", "w") as f: f. write("cluster1\n") for line in data[0]: line = ','.join(line) f.wr...
32.938462
539
0.580881
1,031
6,423
3.526673
0.241513
0.05198
0.035204
0.039329
0.358636
0.320132
0.270077
0.218922
0.205171
0.157866
0
0.135637
0.162074
6,423
194
540
33.108247
0.539948
0.045462
0
0.2625
0
0
0.045758
0.010528
0
0
0
0
0
0
null
null
0
0.01875
null
null
0.08125
0
0
0
null
0
0
0
0
0
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
9b104a8f06d65ef3040f639c5e6342dbde470277
892
py
Python
tests/test_base.py
byudml/metafeature_summary
70698eb12cdc06fa566439c839f29f7372153b0a
[ "MIT" ]
20
2018-05-09T09:40:04.000Z
2022-03-31T14:44:14.000Z
tests/test_base.py
byudml/metafeature_summary
70698eb12cdc06fa566439c839f29f7372153b0a
[ "MIT" ]
168
2017-10-02T14:43:36.000Z
2021-11-20T20:44:19.000Z
tests/test_base.py
byudml/metafeature_summary
70698eb12cdc06fa566439c839f29f7372153b0a
[ "MIT" ]
12
2017-11-29T14:24:05.000Z
2021-08-12T14:48:57.000Z
import unittest from metalearn.metafeatures.base import collectordict class CollectorDictTestCase(unittest.TestCase): def test_no_init_args(self): try: cd = collectordict({'a': 1}) self.fail('collectordict should have failed when passed init args') except TypeError as e: ...
27.875
101
0.603139
107
892
4.934579
0.429907
0.039773
0.051136
0.153409
0.541667
0.482955
0.435606
0.435606
0.189394
0.189394
0
0.014925
0.323991
892
31
102
28.774194
0.860697
0
0
0.48
0
0
0.225336
0
0
0
0
0
0
1
0.12
false
0.16
0.08
0
0.24
0
0
0
0
null
0
0
0
0
0
0
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
9b110aaafda60698a114c80917820b6fcc125854
1,273
py
Python
AbatementProject/InputDisplacement/py_local/COE_abate_settings.py
ChampionApe/GamsPythonModels
aaa234b2627cda2b92e478e8e8503bf9778aebeb
[ "MIT" ]
null
null
null
AbatementProject/InputDisplacement/py_local/COE_abate_settings.py
ChampionApe/GamsPythonModels
aaa234b2627cda2b92e478e8e8503bf9778aebeb
[ "MIT" ]
null
null
null
AbatementProject/InputDisplacement/py_local/COE_abate_settings.py
ChampionApe/GamsPythonModels
aaa234b2627cda2b92e478e8e8503bf9778aebeb
[ "MIT" ]
null
null
null
def afl(x): """ If no 'l' key is included, add a list of None's the same length as key 'a'. """ if 'l' in x: return x else: x.update({'l': ['']*len(x['a'])}) return x class V1: def __init__(self,version='std',**kwargs): self.version=version @property def doms(self): return {'uc': 'qD', 'currapp': 'q...
27.085106
76
0.477612
192
1,273
3.036458
0.286458
0.13036
0.205832
0.06175
0.377358
0.377358
0.377358
0.377358
0.377358
0.377358
0
0.00892
0.207384
1,273
46
77
27.673913
0.56888
0.058916
0
0.487179
0
0
0.191919
0
0
0
0
0
0
1
0.128205
false
0
0
0.051282
0.307692
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
9b140f49dfdfe2c3271426a2071460af092dbcba
17,727
py
Python
dataset2json_v2.py
eng-motionlab/mola_tools
590f2d3597f59a02eaf58791c62c69bb864a0ee6
[ "MIT" ]
null
null
null
dataset2json_v2.py
eng-motionlab/mola_tools
590f2d3597f59a02eaf58791c62c69bb864a0ee6
[ "MIT" ]
null
null
null
dataset2json_v2.py
eng-motionlab/mola_tools
590f2d3597f59a02eaf58791c62c69bb864a0ee6
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # Create INCAR and INVICON MOLA JSON # version: 2 # # info: # - Create standard MOLA JSON # # author: nuno costa """ # ## MOLA Annotations Data Format # If you wish to combine multiple datasets, it is often useful to convert them into a unified data format. # # Objective:...
37.398734
202
0.519716
2,058
17,727
4.293489
0.16035
0.019013
0.009507
0.007243
0.409914
0.309756
0.260638
0.195111
0.18368
0.149502
0
0.01066
0.349072
17,727
473
203
37.477801
0.755091
0.219383
0
0.187713
0
0
0.093077
0.001891
0.003413
0
0
0.010571
0
1
0.027304
false
0
0.051195
0
0.102389
0.047782
0
0
0
null
0
0
0
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
9b182fcce875bf41b148d13d29ff67df1c66d053
12,743
py
Python
one_time_scripts/alter_2018-09-29.py
nilfoer/mangadb
860d7de310002735631ea26810b4df5b6bc08d7b
[ "MIT" ]
3
2021-01-14T16:22:41.000Z
2022-02-21T03:31:22.000Z
one_time_scripts/alter_2018-09-29.py
nilfoer/mangadb
860d7de310002735631ea26810b4df5b6bc08d7b
[ "MIT" ]
13
2021-01-14T10:34:19.000Z
2021-05-20T08:47:54.000Z
one_time_scripts/alter_2018-09-29.py
nilfoer/mangadb
860d7de310002735631ea26810b4df5b6bc08d7b
[ "MIT" ]
1
2022-02-24T03:10:04.000Z
2022-02-24T03:10:04.000Z
import os import sqlite3 import re import datetime def get_tags_by_book(db_con, _id): c = db_con.execute("""SELECT group_concat(Tags.name) FROM Tags, BookTags bt, Books WHERE bt.book_id = Books.id AND Books.id = ? ...
41.239482
115
0.482932
1,280
12,743
4.671094
0.2125
0.042148
0.051514
0.042817
0.320789
0.266767
0.224787
0.224787
0.172437
0.172437
0
0.00366
0.442517
12,743
308
116
41.373377
0.837979
0.058856
0
0.299625
0
0.003745
0.741171
0.011439
0
0
0
0
0
1
0.007491
false
0
0.033708
0
0.052434
0
0
0
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
9b186aec2f46ebd270ebb619292db730e0190f12
11,478
py
Python
scripts/tf_generator.py
apsureda/gcp-group-manager
01088c4bf07dbf47a7bd134973f037055ee28d72
[ "Apache-2.0" ]
null
null
null
scripts/tf_generator.py
apsureda/gcp-group-manager
01088c4bf07dbf47a7bd134973f037055ee28d72
[ "Apache-2.0" ]
null
null
null
scripts/tf_generator.py
apsureda/gcp-group-manager
01088c4bf07dbf47a7bd134973f037055ee28d72
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python """Generate Terraform configuration files from a set of predefined templates. Copyright 2021 Google LLC. This software is provided as-is, without warranty or representation for any use or purpose. Your use of it is subject to your agreement with Google. """ import os import sys import shutil impo...
40.415493
176
0.686095
1,630
11,478
4.634969
0.210429
0.018001
0.013104
0.011913
0.163203
0.124553
0.099801
0.082859
0.060357
0.041827
0
0.002624
0.203258
11,478
283
177
40.558304
0.82351
0.240024
0
0.112821
1
0
0.181586
0.020344
0
0
0
0.003534
0
1
0.030769
false
0
0.051282
0
0.138462
0
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
9b213d02fed6862635f76f766d7902cd1fc11066
5,576
py
Python
twext/python/test/test_filepath.py
troglodyne/ccs-twistedextensions
1b43cb081ba68ae310140a9e853e041cd6362625
[ "Apache-2.0" ]
23
2016-08-14T07:20:27.000Z
2021-11-08T09:47:45.000Z
twext/python/test/test_filepath.py
DalavanCloud/ccs-twistedextensions
2c4046df88873dcf33fba7840ed90e4238dcbec7
[ "Apache-2.0" ]
2
2016-12-15T17:51:49.000Z
2019-05-12T15:59:03.000Z
twext/python/test/test_filepath.py
DalavanCloud/ccs-twistedextensions
2c4046df88873dcf33fba7840ed90e4238dcbec7
[ "Apache-2.0" ]
20
2016-08-17T06:51:00.000Z
2022-03-26T11:55:56.000Z
## # Copyright (c) 2010-2017 Apple Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
34.63354
80
0.610832
658
5,576
5.159574
0.379939
0.037113
0.024742
0.027099
0.106038
0.053608
0.053608
0.04595
0.02651
0
0
0.010068
0.287482
5,576
160
81
34.85
0.84445
0.528156
0
0.035088
0
0
0.040756
0
0
0
0
0
0.122807
1
0.175439
false
0.070175
0.087719
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
9b21b2efdeeb1b1f07645b15216a37be129b4270
737
py
Python
supervised/knn/base/Metric.py
Danielto1404/ML-ALGO
53dfca1ea0718d94586495493d5de3f446e238fd
[ "MIT" ]
1
2021-03-11T17:32:13.000Z
2021-03-11T17:32:13.000Z
supervised/knn/base/Metric.py
Danielto1404/ML-ALGO
53dfca1ea0718d94586495493d5de3f446e238fd
[ "MIT" ]
null
null
null
supervised/knn/base/Metric.py
Danielto1404/ML-ALGO
53dfca1ea0718d94586495493d5de3f446e238fd
[ "MIT" ]
null
null
null
import numpy as np class Metric: def distance(self, x: np.array, y: np.array): raise NotImplementedError class Minkowski(Metric): def __init__(self, dimension): self.dimension = dimension def distance(self, x: np.array, y: np.array): return np.linalg.norm(x - y, ord=self.dimensi...
21.057143
56
0.660787
98
737
4.683673
0.306122
0.091503
0.095861
0.104575
0.427015
0.263617
0.263617
0.263617
0.263617
0.263617
0
0.00519
0.215739
737
34
57
21.676471
0.788927
0
0
0.285714
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0.047619
0.095238
0.761905
0
0
0
0
null
0
0
0
0
0
0
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
9b23b5bdd2f6da9544e3784ab7bd373129d88811
2,358
py
Python
kanban/permissions.py
CodethinkLabs/Djankan
5d5eb8144a92f177aff4b4c489e58984935da7f9
[ "MIT" ]
3
2016-02-01T23:26:42.000Z
2020-12-20T18:55:54.000Z
kanban/permissions.py
CodethinkLabs/Djankan
5d5eb8144a92f177aff4b4c489e58984935da7f9
[ "MIT" ]
null
null
null
kanban/permissions.py
CodethinkLabs/Djankan
5d5eb8144a92f177aff4b4c489e58984935da7f9
[ "MIT" ]
1
2017-12-08T20:38:10.000Z
2017-12-08T20:38:10.000Z
#The MIT License (MIT) #Copyright (c) 2014 Codethink Ltd. #Permission is hereby granted, free of charge, to any person obtaining a copy of #this software and associated documentation files (the "Software"), to deal in #the Software without restriction, including without limitation the rights to #use, copy, modify, me...
40.655172
81
0.662426
315
2,358
4.949206
0.466667
0.056446
0.016677
0.015394
0.155228
0.128287
0.128287
0.128287
0.061578
0.061578
0
0.002907
0.270568
2,358
57
82
41.368421
0.903488
0.564037
0
0.428571
0
0
0.042744
0
0
0
0
0
0
0
null
null
0
0.071429
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
9b25785e6729810a2bcf23babf746535815e7b26
975
py
Python
devproject/urls.py
0lddriv3r/djangobbs_nmb
6a05405a0a8f80af96b948027a9087dcc07a5335
[ "Apache-2.0" ]
3
2020-11-14T16:15:17.000Z
2021-11-30T05:04:44.000Z
devproject/urls.py
0lddriv3r/djangobbs_nmb
6a05405a0a8f80af96b948027a9087dcc07a5335
[ "Apache-2.0" ]
null
null
null
devproject/urls.py
0lddriv3r/djangobbs_nmb
6a05405a0a8f80af96b948027a9087dcc07a5335
[ "Apache-2.0" ]
1
2021-01-14T11:37:41.000Z
2021-01-14T11:37:41.000Z
from django.urls import path import devproject.views as views urlpatterns = [ path('', views.index, name='index'), path('login/', views.login, name='login'), path('logout/', views.logout, name='logout'), path('searchphoto/', views.searchphoto, name='searchphoto'), path('search/', views.search, name...
51.315789
120
0.687179
114
975
5.877193
0.263158
0.089552
0.11194
0.201493
0.197015
0.197015
0.197015
0
0
0
0
0
0.106667
975
18
121
54.166667
0.769231
0
0
0
0
0
0.408205
0.254359
0
0
0
0
0
1
0
false
0
0.117647
0
0.117647
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
f192b1b44741a3e6a5153642aa033bf1e628e796
558
py
Python
setup.py
epeshk/structfmt
9bd18daa3243195c1ff9b60967715f0836ac3eb0
[ "MIT" ]
5
2016-11-06T07:14:00.000Z
2020-11-10T00:46:53.000Z
setup.py
epeshk/structfmt
9bd18daa3243195c1ff9b60967715f0836ac3eb0
[ "MIT" ]
1
2016-11-16T15:50:47.000Z
2016-11-16T15:50:47.000Z
setup.py
epeshk/structfmt
9bd18daa3243195c1ff9b60967715f0836ac3eb0
[ "MIT" ]
null
null
null
from distutils.core import setup setup( name='structfmt', packages=['structfmt'], version='0.0.1.3', description='A lib for easy work with binary struct ' 'and format strings with fluent api.' 'Based on struct and collections built-in modules', author='Evgeny Peshkov', author_ema...
34.875
78
0.675627
72
558
5.208333
0.694444
0.010667
0.016
0.021333
0.170667
0.170667
0
0
0
0
0
0.03212
0.163082
558
15
79
37.2
0.770878
0
0
0
0
0
0.548387
0
0
0
0
0
0
1
0
true
0
0.066667
0
0.066667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
f19727b34202289502a50cc350b802195bb9e63f
1,130
py
Python
data/load.py
ocidenttal/Bruna
709731a3c301375654bbdced796e2551e98214bb
[ "MIT" ]
null
null
null
data/load.py
ocidenttal/Bruna
709731a3c301375654bbdced796e2551e98214bb
[ "MIT" ]
null
null
null
data/load.py
ocidenttal/Bruna
709731a3c301375654bbdced796e2551e98214bb
[ "MIT" ]
null
null
null
""" File: load.py Author: Mauro Github: https://github.com/ocidenttal Description: Funções pra carregar os dados no programa """ def initialize_matrix(from_source=False, source=None): """ Função pra inicializar a matriz que representa o mapa do cinema. """ from terminal import variables alpha...
17.121212
67
0.612389
137
1,130
4.956204
0.576642
0.030928
0.044183
0.038292
0
0
0
0
0
0
0
0.011111
0.283186
1,130
65
68
17.384615
0.82716
0.424779
0
0
0
0
0.085066
0.049149
0
0
0
0
0
1
0.388889
false
0
0.055556
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
f19c179ede20dfff4b695b80348b7aa54322ecd1
1,138
py
Python
src/opencmiss/neon/ui/misc/utils.py
hsorby/neon
0fcbddfca8baf50d8ecc310a7cb393ffdec88431
[ "Apache-2.0" ]
null
null
null
src/opencmiss/neon/ui/misc/utils.py
hsorby/neon
0fcbddfca8baf50d8ecc310a7cb393ffdec88431
[ "Apache-2.0" ]
2
2016-01-15T04:17:35.000Z
2016-02-26T04:01:02.000Z
src/opencmiss/neon/ui/misc/utils.py
hsorby/neon
0fcbddfca8baf50d8ecc310a7cb393ffdec88431
[ "Apache-2.0" ]
6
2015-11-29T20:57:16.000Z
2021-06-08T04:02:26.000Z
''' Copyright 2015 University of Auckland 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 agre...
31.611111
75
0.695958
160
1,138
4.9125
0.60625
0.076336
0.033079
0.040712
0
0
0
0
0
0
0
0.009227
0.238137
1,138
35
76
32.514286
0.897347
0.625659
0
0
0
0
0
0
0
0
0
0
0
1
0.181818
false
0
0.181818
0
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
f1a0de59b9022fb82a75f835a302c5e01fbf72bd
292
py
Python
Programs/QRCodeCreater/QRCodeCreater.py
Alperencode/Python
6cd1ce6afb76011ec25d567a988367f8522e7461
[ "MIT" ]
1
2022-03-07T18:57:40.000Z
2022-03-07T18:57:40.000Z
Programs/QRCodeCreater/QRCodeCreater.py
Alperencode/Python
6cd1ce6afb76011ec25d567a988367f8522e7461
[ "MIT" ]
null
null
null
Programs/QRCodeCreater/QRCodeCreater.py
Alperencode/Python
6cd1ce6afb76011ec25d567a988367f8522e7461
[ "MIT" ]
null
null
null
import qrcode code = qrcode.QRCode(version=1, error_correction= qrcode.constants.ERROR_CORRECT_L, box_size=100, border=2) code.add_data("https://github.com/Alperencode") # url here code.make(fit=True) image = code.make_image(fill_color="black", back_color="white") image.save("QRCode.png")
32.444444
107
0.773973
46
292
4.73913
0.73913
0.073395
0
0
0
0
0
0
0
0
0
0.01845
0.071918
292
9
108
32.444444
0.785978
0.027397
0
0
0
0
0.176678
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
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
f1a4a4de7ca0ec9cf0e1ff7a01a16c8423995240
2,298
py
Python
bin/check_ftp_quota.py
klokantech/proftpd-docker
9d825187b11c28f07940adc3a9d5e5eb73f04fc1
[ "BSD-3-Clause" ]
1
2019-03-10T18:51:00.000Z
2019-03-10T18:51:00.000Z
bin/check_ftp_quota.py
klokantech/proftpd-docker
9d825187b11c28f07940adc3a9d5e5eb73f04fc1
[ "BSD-3-Clause" ]
null
null
null
bin/check_ftp_quota.py
klokantech/proftpd-docker
9d825187b11c28f07940adc3a9d5e5eb73f04fc1
[ "BSD-3-Clause" ]
2
2018-05-24T13:08:38.000Z
2021-06-11T05:22:14.000Z
#!/usr/bin/env python # -*- encoding: utf-8 -*- # # This file is WorkInProgress. It can be used to update FTP qutota limits. import MySQLdb import os _DB_HOST = os.environ['PROFTP_MYSQL_HOST'] _DB_USER = os.environ['PROFTP_MYSQL_ADMIN_USER'] _DB_PASS = os.environ['PROFTP_MYSQL_ADMIN_PASSWORD'] _DB_DB = os.environ['...
28.37037
74
0.654917
335
2,298
4.283582
0.304478
0.01115
0.031359
0.055749
0.265505
0.206272
0.170035
0.154007
0.154007
0.154007
0
0.009072
0.184508
2,298
80
75
28.725
0.75667
0.054395
0
0.136364
0
0
0.323489
0.0503
0
0
0
0
0
0
null
null
0.030303
0.030303
null
null
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1