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
77aee8e011c99672c419f607ee0e2e68f78708d0
2,454
py
Python
tests/find_func_r2.py
CAFA1/angrop
e36dca9af54aef16d19caef1c7d9d2bf162c8be3
[ "BSD-2-Clause" ]
null
null
null
tests/find_func_r2.py
CAFA1/angrop
e36dca9af54aef16d19caef1c7d9d2bf162c8be3
[ "BSD-2-Clause" ]
null
null
null
tests/find_func_r2.py
CAFA1/angrop
e36dca9af54aef16d19caef1c7d9d2bf162c8be3
[ "BSD-2-Clause" ]
null
null
null
import os import subprocess import r2pipe import sys #return file name work_dir='/home/l/Downloads/test/' def get_file_name(file_dir): file_elf=[] for root,dirs,files in os.walk(file_dir): for file in files: out_bytes=subprocess.check_output(['file',os.path.join(root,file)]) if(o...
34.56338
131
0.603504
353
2,454
3.949009
0.27762
0.045194
0.028694
0.040172
0.228121
0.215208
0.137733
0.137733
0.137733
0.137733
0
0.014501
0.269356
2,454
71
132
34.56338
0.762967
0.068867
0
0.206897
0
0.017241
0.136144
0.047431
0
0
0
0
0
0
null
null
0.017241
0.068966
null
null
0.12069
0
0
0
null
0
0
0
0
0
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
77afc5d760c5dde5637471644ea966d846883d40
605
py
Python
lesson2_netmiko/ex6f.py
anejolazaro70/python_july19
d4fd2f0d00d22f2f103ef9fe9c289c8b0651b454
[ "Apache-2.0" ]
null
null
null
lesson2_netmiko/ex6f.py
anejolazaro70/python_july19
d4fd2f0d00d22f2f103ef9fe9c289c8b0651b454
[ "Apache-2.0" ]
null
null
null
lesson2_netmiko/ex6f.py
anejolazaro70/python_july19
d4fd2f0d00d22f2f103ef9fe9c289c8b0651b454
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python from datetime import datetime from netmiko import ConnectHandler from pprint import pprint from getpass import getpass import time password=getpass() device={"host": "cisco4", "username": "user", "password": password, 'secret': password, "device_type": "cisco_ios", ...
20.166667
43
0.697521
78
605
5.294872
0.525641
0.058111
0.058111
0
0
0
0
0
0
0
0
0.021401
0.150413
605
29
44
20.862069
0.782101
0.059504
0
0
0
0
0.223986
0
0
0
0
0
0
1
0
false
0.181818
0.227273
0
0.227273
0.227273
0
0
0
null
0
0
0
0
0
0
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
77b2e9c6ef0af913ce02f40af43c46c43604cf40
1,302
py
Python
supports/pyload/src/pyload/plugins/accounts/DepositfilesCom.py
LuckyNicky/pycrawler
4b3fe2f6e8e51f236d95a64a89a44199e4e97743
[ "Apache-2.0" ]
1
2020-04-02T17:03:39.000Z
2020-04-02T17:03:39.000Z
supports/pyload/src/pyload/plugins/accounts/DepositfilesCom.py
LuckyNicky/pycrawler
4b3fe2f6e8e51f236d95a64a89a44199e4e97743
[ "Apache-2.0" ]
null
null
null
supports/pyload/src/pyload/plugins/accounts/DepositfilesCom.py
LuckyNicky/pycrawler
4b3fe2f6e8e51f236d95a64a89a44199e4e97743
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import re import time from ..base.account import BaseAccount class DepositfilesCom(BaseAccount): __name__ = "DepositfilesCom" __type__ = "account" __version__ = "0.39" __status__ = "testing" __pyload_version__ = "0.5" __description__ = """Depositfiles.com account pl...
27.702128
115
0.573733
143
1,302
4.972028
0.615385
0.050633
0.045007
0.056259
0.132208
0.132208
0.132208
0.132208
0.132208
0.132208
0
0.009375
0.262673
1,302
46
116
28.304348
0.73125
0.016129
0
0
0
0
0.333855
0.045348
0
0
0
0
0
1
0.058824
false
0.117647
0.088235
0
0.441176
0
0
0
0
null
0
0
0
0
0
0
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
77b394519e2825e986071b95cbef2d27a73d7d14
748
py
Python
CONTENT/PYTHON/LEETCODE/155_min_stack/min_stack.py
impastasyndrome/DS-ALGO-OFFICIAL
c85ec9cf0af0009f038b7a571a7ac1fb466b7f3a
[ "Apache-2.0" ]
13
2021-03-11T00:25:22.000Z
2022-03-19T00:19:23.000Z
CONTENT/PYTHON/LEETCODE/155_min_stack/min_stack.py
impastasyndrome/DS-ALGO-OFFICIAL
c85ec9cf0af0009f038b7a571a7ac1fb466b7f3a
[ "Apache-2.0" ]
162
2021-03-09T01:52:11.000Z
2022-03-12T01:09:07.000Z
CONTENT/PYTHON/LEETCODE/155_min_stack/min_stack.py
impastasyndrome/DS-ALGO-OFFICIAL
c85ec9cf0af0009f038b7a571a7ac1fb466b7f3a
[ "Apache-2.0" ]
12
2021-04-26T19:43:01.000Z
2022-01-31T08:36:29.000Z
class MinStack: # initialize your data structure here. def __init__(self): self.nums = [] self.mins = [] # @param x, an integer # @return nothing def push(self, x): self.nums.append(x) if self.mins: if x < self.nums[self.mins[-1]]: self.mi...
23.375
52
0.508021
95
748
3.957895
0.305263
0.191489
0.095745
0.12766
0.292553
0
0
0
0
0
0
0.016807
0.363636
748
31
53
24.129032
0.773109
0.169786
0
0.095238
0
0
0
0
0
0
0
0
0
1
0.238095
false
0
0
0.095238
0.380952
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
77b442157b6706e9aae063ae6949a25f3f54a638
776
py
Python
lab/lab3/dist/autograder/tests/q4e.py
ds-modules/PS-88-21-DEV
f043abe6b3a26f8778f58d547fad8ea26d683d8a
[ "MIT" ]
null
null
null
lab/lab3/dist/autograder/tests/q4e.py
ds-modules/PS-88-21-DEV
f043abe6b3a26f8778f58d547fad8ea26d683d8a
[ "MIT" ]
16
2021-02-01T22:47:51.000Z
2021-06-28T02:40:46.000Z
lab/lab3/dist/autograder/tests/q4e.py
ds-modules/PS-88-21-DEV
f043abe6b3a26f8778f58d547fad8ea26d683d8a
[ "MIT" ]
3
2021-03-09T02:26:26.000Z
2022-02-23T09:05:07.000Z
test = { 'name': 'q4e', 'points': 1, 'suites': [ { 'cases': [ {'code': '>>> 0 <= voter_2_pivotal_prob <= .25\nTrue', 'hidden': False, 'locked': False}, {'code': '>>> voter_2_pivotal_prob == sum(grouptrials.column("overall piv 2"))/ntrials\nTrue', 'hidden': True, 'locke...
70.545455
164
0.447165
71
776
4.71831
0.43662
0.131343
0.134328
0.101493
0.734328
0.734328
0.537313
0.292537
0.292537
0.292537
0
0.027833
0.351804
776
10
165
77.6
0.638171
0
0
0
0
0
0.471649
0.079897
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
77b4cd6a82083358bd921a79b700ecdefd11a2f8
1,985
py
Python
Python/54_SpiralMatrix.py
comicxmz001/LeetCode
6878fe4cad7daf7067014029d7aae303ad4c1182
[ "MIT" ]
2
2016-07-03T06:18:37.000Z
2016-07-03T06:22:55.000Z
Python/54_SpiralMatrix.py
comicxmz001/LeetCode
6878fe4cad7daf7067014029d7aae303ad4c1182
[ "MIT" ]
null
null
null
Python/54_SpiralMatrix.py
comicxmz001/LeetCode
6878fe4cad7daf7067014029d7aae303ad4c1182
[ "MIT" ]
null
null
null
class Solution(object): def spiralOrder(self, matrix): """ :type matrix: List[List[int]] :rtype: List[int] """ result = [] row = len(matrix) if row == 0: return matrix if row == 1: result = matrix[0] return result ...
32.016129
86
0.401008
197
1,985
4.040609
0.309645
0.113065
0.060302
0.045226
0.201005
0.18593
0.18593
0.10804
0.10804
0.10804
0
0.065094
0.465995
1,985
62
87
32.016129
0.685849
0.020655
0
0.363636
0
0
0.055854
0
0
0
0
0
0
0
null
null
0
0
null
null
0.018182
0
0
0
null
0
0
0
0
0
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
77bed53b371353f52b00abde04bbf5b5b48afe73
276
py
Python
datascience/numpy/from_function.py
janbodnar/Python-Course
51705ab5a2adef52bcdb99a800e94c0d67144a38
[ "BSD-2-Clause" ]
13
2017-08-22T12:26:07.000Z
2021-07-29T16:13:50.000Z
datascience/numpy/from_function.py
janbodnar/Python-Course
51705ab5a2adef52bcdb99a800e94c0d67144a38
[ "BSD-2-Clause" ]
1
2021-02-08T10:24:33.000Z
2021-02-08T10:24:33.000Z
datascience/numpy/from_function.py
janbodnar/Python-Course
51705ab5a2adef52bcdb99a800e94c0d67144a38
[ "BSD-2-Clause" ]
17
2018-08-13T11:10:33.000Z
2021-07-29T16:14:02.000Z
#!/usr/bin/python import numpy as np # Construct an array by executing a function over each coordinate. def f(x, y): return 2*x + y + 1 a = np.fromfunction(f, (5, 4), dtype=int) print(a) # anonymous functoin b = np.fromfunction(lambda x, y: 2*x + y, (2, 2)) print(b)
17.25
66
0.652174
51
276
3.529412
0.666667
0.044444
0.033333
0
0
0
0
0
0
0
0
0.031674
0.199275
276
15
67
18.4
0.782805
0.362319
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0.142857
0.428571
0.285714
0
0
0
null
0
0
0
0
0
0
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
77c1f8eef499d3325c105211485d43739687f3c8
749
py
Python
src/handlers/feedback.py
ngshiheng/burplist-frontend
c7fcdb7450d0723b0326a3d874a1220d72bbd50b
[ "MIT" ]
4
2021-11-02T05:45:22.000Z
2021-12-11T02:33:30.000Z
src/handlers/feedback.py
ngshiheng/burplist-frontend
c7fcdb7450d0723b0326a3d874a1220d72bbd50b
[ "MIT" ]
2
2022-01-15T04:27:40.000Z
2022-03-27T14:54:31.000Z
src/handlers/feedback.py
ngshiheng/burplist-frontend
c7fcdb7450d0723b0326a3d874a1220d72bbd50b
[ "MIT" ]
1
2021-11-04T15:44:18.000Z
2021-11-04T15:44:18.000Z
__all__ = ['feedback'] from pywebio.output import put_html from pywebio.platform import seo from pywebio.platform.page import config from pywebio.session import run_js from src.settings import SEO_DESCRIPTION, SEO_TITLE from src.utils.constants import GA_JS_CODE, GA_JS_FILE from src.utils.contents.index import FOOTER, ...
35.666667
174
0.76502
114
749
4.780702
0.45614
0.080734
0.069725
0.036697
0
0
0
0
0
0
0
0.018045
0.11215
749
20
175
37.45
0.801504
0
0
0
0
0.058824
0.257677
0.034713
0
0
0
0
0
1
0.058824
false
0
0.411765
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
77ca40c65f52070da652fc7983fb6b09210b2434
2,018
py
Python
sagas/ofbiz/finder.py
samlet/stack
47db17fd4fdab264032f224dca31a4bb1d19b754
[ "Apache-2.0" ]
3
2020-01-11T13:55:38.000Z
2020-08-25T22:34:15.000Z
sagas/ofbiz/finder.py
samlet/stack
47db17fd4fdab264032f224dca31a4bb1d19b754
[ "Apache-2.0" ]
null
null
null
sagas/ofbiz/finder.py
samlet/stack
47db17fd4fdab264032f224dca31a4bb1d19b754
[ "Apache-2.0" ]
1
2021-01-01T05:21:44.000Z
2021-01-01T05:21:44.000Z
import sagas.ofbiz.connector from py4j.java_gateway import java_import class Finder(object): def __init__(self, oc): self.oc=oc java_import(oc.j, 'org.apache.ofbiz.service.ServiceUtil') java_import(oc.j, 'org.apache.ofbiz.base.util.UtilDateTime') java_import(oc.j, 'org.apache.ofbiz...
33.081967
115
0.625372
255
2,018
4.862745
0.376471
0.062903
0.033871
0.031452
0.11371
0.11371
0.065323
0
0
0
0
0.00664
0.253717
2,018
60
116
33.633333
0.816733
0.030723
0
0
0
0
0.094775
0.053791
0
0
0
0
0
1
0.2
false
0.022222
0.111111
0.088889
0.533333
0
0
0
0
null
0
0
0
0
0
0
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
77e1048da9cc794719964911b7bbf2dd86b86e2a
5,696
py
Python
wxgigo/wxmp/api/webauth.py
rfancn/wxgigo
7ed64248e4df037dbb5ff0683f21f458d3f29a0e
[ "MIT" ]
null
null
null
wxgigo/wxmp/api/webauth.py
rfancn/wxgigo
7ed64248e4df037dbb5ff0683f21f458d3f29a0e
[ "MIT" ]
null
null
null
wxgigo/wxmp/api/webauth.py
rfancn/wxgigo
7ed64248e4df037dbb5ff0683f21f458d3f29a0e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 """ Copyright (C) 2010-2013, Ryan Fan <ryan.fan@oracle.com> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your opti...
35.378882
108
0.631847
771
5,696
4.546044
0.273671
0.075321
0.025963
0.027389
0.370613
0.338088
0.284736
0.258773
0.239943
0.229957
0
0.01213
0.276334
5,696
161
109
35.378882
0.838185
0.103757
0
0.395604
0
0
0.284628
0.052269
0
0
0
0
0
0
null
null
0
0.076923
null
null
0.153846
0
0
0
null
0
0
0
0
0
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
77ee3d5fe901e50bbc04ea9d69fa9d7c093b8738
1,501
py
Python
mitmirror/data/security/authorization.py
Claayton/mitmirror-api
a78ec3aa84aa3685a26bfaf5e1ba2a3f0f8405d1
[ "MIT" ]
null
null
null
mitmirror/data/security/authorization.py
Claayton/mitmirror-api
a78ec3aa84aa3685a26bfaf5e1ba2a3f0f8405d1
[ "MIT" ]
1
2021-10-09T20:42:03.000Z
2021-10-09T20:42:03.000Z
mitmirror/data/security/authorization.py
Claayton/mitmirror-api
a78ec3aa84aa3685a26bfaf5e1ba2a3f0f8405d1
[ "MIT" ]
null
null
null
"""Caso de uso: Authorization""" from typing import Type from fastapi import Request as RequestFastApi import jwt from mitmirror.data.interfaces import UserRepositoryInterface from mitmirror.domain.usecases import AuthorizationInterface from mitmirror.errors import HttpUnauthorized, HttpForbidden from mitmirror.config ...
32.630435
98
0.7002
162
1,501
6.376543
0.537037
0.050339
0.052275
0
0
0
0
0
0
0
0
0.006061
0.230513
1,501
45
99
33.355556
0.888312
0.199201
0
0.086957
0
0
0.098074
0
0
0
0
0
0
1
0.086957
false
0
0.304348
0
0.478261
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
77f3ab5516cbf6e86eadd0d0546b208ca51e4e42
9,360
py
Python
templateMatching_classes.py
Fs-agadir/StageDetect
af2841b41f80151e1f3092adbc266eb1d2b8db37
[ "MIT" ]
null
null
null
templateMatching_classes.py
Fs-agadir/StageDetect
af2841b41f80151e1f3092adbc266eb1d2b8db37
[ "MIT" ]
null
null
null
templateMatching_classes.py
Fs-agadir/StageDetect
af2841b41f80151e1f3092adbc266eb1d2b8db37
[ "MIT" ]
null
null
null
# Copyright (c) 2021, Fs-Agadir # All rights reserved. import numpy as np import pylab as plt import cv2 #perform template matching in images to detect GCPs class templateMatch: #define template position and size and search area position def __init__(self, template_size_x=300, template_size_y=300, ...
46.336634
141
0.606517
1,243
9,360
4.279163
0.165728
0.058282
0.031585
0.039293
0.327881
0.28558
0.210002
0.157736
0.120511
0.105095
0
0.024058
0.302778
9,360
201
142
46.567164
0.79099
0.135684
0
0.096296
0
0
0.016617
0
0
0
0
0
0
0
null
null
0
0.022222
null
null
0.014815
0
0
0
null
0
0
0
0
0
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
77f8869cff8b01022d3cde3e76f1814924a8ff29
578
py
Python
src/pythontemplate/example.py
colms/pythontemplate
29deda17eced69f6bd7e62bf07bda994c2e5156a
[ "Apache-2.0" ]
null
null
null
src/pythontemplate/example.py
colms/pythontemplate
29deda17eced69f6bd7e62bf07bda994c2e5156a
[ "Apache-2.0" ]
null
null
null
src/pythontemplate/example.py
colms/pythontemplate
29deda17eced69f6bd7e62bf07bda994c2e5156a
[ "Apache-2.0" ]
null
null
null
import argparse def add_one(num: int) -> int: if not num: return 0 return num + 1 def add_with_args(num: int) -> int: added = add_one(num) return added def parse_command_line_args() -> argparse.Namespace: parser = argparse.ArgumentParser(description='My python template.') parser.ad...
19.266667
71
0.652249
80
578
4.4375
0.425
0.033803
0.050704
0.112676
0
0
0
0
0
0
0
0.004435
0.219723
578
29
72
19.931034
0.782705
0
0
0
0
0
0.093426
0
0
0
0
0
0
1
0.210526
false
0
0.052632
0
0.473684
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
1
0
0
0
0
0
0
0
1
ae00a95e49f33ec6e39eedf42f08871c20d06908
6,679
py
Python
pages/views.py
Garinmckayl/monet
1b2e79f0cbfdaa9bf35f301e2463a3b4959e2b3b
[ "MIT" ]
null
null
null
pages/views.py
Garinmckayl/monet
1b2e79f0cbfdaa9bf35f301e2463a3b4959e2b3b
[ "MIT" ]
null
null
null
pages/views.py
Garinmckayl/monet
1b2e79f0cbfdaa9bf35f301e2463a3b4959e2b3b
[ "MIT" ]
null
null
null
import re import requests from accounts.models import Company, CustomUser from django.contrib.auth.decorators import login_required from django.shortcuts import redirect, render from django.urls import reverse from django.views import View from django.views.generic import DetailView, ListView, TemplateView from django...
30.921296
94
0.650097
721
6,679
5.895978
0.203884
0.039991
0.046107
0.027993
0.48812
0.424606
0.411433
0.403199
0.376853
0.346507
0
0.006197
0.22683
6,679
215
95
31.065116
0.817002
0.110645
0
0.433071
0
0
0.132748
0.02736
0
0
0
0.004651
0
1
0.094488
false
0
0.07874
0.007874
0.503937
0.023622
0
0
0
null
0
0
0
0
0
0
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
ae00ca531299cd8687b8cec2bd164295f25db559
1,561
py
Python
examples/diameter-app2/bromelia_hss.py
post-cyberlabs/bromelia
a21c6af591fa3ebe5335f2f34b13b60f03a48b55
[ "MIT" ]
25
2021-04-03T20:26:57.000Z
2022-02-08T15:02:17.000Z
examples/diameter-app2/bromelia_hss.py
post-cyberlabs/bromelia
a21c6af591fa3ebe5335f2f34b13b60f03a48b55
[ "MIT" ]
8
2022-01-23T10:55:43.000Z
2022-03-01T14:03:01.000Z
examples/diameter-app2/bromelia_hss.py
post-cyberlabs/bromelia
a21c6af591fa3ebe5335f2f34b13b60f03a48b55
[ "MIT" ]
3
2021-09-16T11:23:25.000Z
2022-01-23T10:49:26.000Z
# -*- coding: utf-8 -*- """ examples.bromelia_hss ~~~~~~~~~~~~~~~~~~~~~ This module contains an example on how to setup a dummy HSS by using the Bromelia class features of bromelia library. :copyright: (c) 2020 Henrique Marques Ribeiro. :license: MIT, see LICENSE for more details. """ import...
31.857143
79
0.686739
196
1,561
5.22449
0.530612
0.070313
0.038086
0.058594
0.115234
0.115234
0.115234
0.078125
0
0
0
0.038399
0.215887
1,561
48
80
32.520833
0.798203
0.249199
0
0
0
0
0.057018
0.021053
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
7ac6ace09a0086d09426b0e2f95837ad667625d2
663
py
Python
cq/views.py
furious-luke/django-cq
9e7debc293cd4bfe2ef674e0e44f1c9a8a240df5
[ "BSD-3-Clause" ]
31
2016-09-16T05:32:43.000Z
2018-03-08T12:41:30.000Z
cq/views.py
furious-luke/django-cq
9e7debc293cd4bfe2ef674e0e44f1c9a8a240df5
[ "BSD-3-Clause" ]
13
2017-01-12T15:04:50.000Z
2017-12-05T04:41:27.000Z
cq/views.py
furious-luke/django-cq
9e7debc293cd4bfe2ef674e0e44f1c9a8a240df5
[ "BSD-3-Clause" ]
6
2016-09-16T05:32:54.000Z
2017-12-03T18:08:35.000Z
from django.db import transaction from rest_framework import viewsets from .serializers import TaskSerializer, CreateTaskSerializer from .models import Task class TaskViewSet(viewsets.ModelViewSet): queryset = Task.objects.all() serializer_class = TaskSerializer def get_serializer(self, data=None, *args...
31.571429
61
0.698341
72
663
6.375
0.527778
0.087146
0.074074
0
0
0
0
0
0
0
0
0
0.197587
663
20
62
33.15
0.862782
0
0
0
0
0
0.012066
0
0
0
0
0
0
1
0.133333
false
0
0.266667
0
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
7acd87d06286bcfff95246c710d435332c5cd407
738
py
Python
src/users/models/componentsschemasmicrosoft_graph_onenoteentitybasemodelallof1.py
peombwa/Sample-Graph-Python-Client
3396f531fbe6bb40a740767c4e31aee95a3b932e
[ "MIT" ]
null
null
null
src/users/models/componentsschemasmicrosoft_graph_onenoteentitybasemodelallof1.py
peombwa/Sample-Graph-Python-Client
3396f531fbe6bb40a740767c4e31aee95a3b932e
[ "MIT" ]
null
null
null
src/users/models/componentsschemasmicrosoft_graph_onenoteentitybasemodelallof1.py
peombwa/Sample-Graph-Python-Client
3396f531fbe6bb40a740767c4e31aee95a3b932e
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- from ...
29.52
91
0.556911
58
738
6.913793
0.724138
0.05985
0.05985
0
0
0
0
0
0
0
0
0.004847
0.161247
738
24
92
30.75
0.642973
0.482385
0
0
1
0
0.050279
0
0
0
0
0
0
1
0.125
false
0
0.125
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7ad429077b3febcc3ed2cbc264d1b140a65e153f
6,427
py
Python
Camera_comments.py
JoseZalez/Houdini-scripts
c93c0942b05c18050416ea8a66de75fb6c8fc23d
[ "Naumen", "Condor-1.1", "MS-PL" ]
19
2020-02-14T11:03:54.000Z
2022-03-31T06:30:21.000Z
Camera_comments.py
JoseZalez/Houdini-scripts
c93c0942b05c18050416ea8a66de75fb6c8fc23d
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
Camera_comments.py
JoseZalez/Houdini-scripts
c93c0942b05c18050416ea8a66de75fb6c8fc23d
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2020-08-16T12:13:08.000Z
2020-08-16T12:13:08.000Z
#Add parameters to the camera #https://www.linkedin.com/in/jose-gonzalezvfx/ import os import sys from PySide2.QtWidgets import QDialog, QApplication, QLineEdit, QLabel, QPushButton, QCheckBox, QHBoxLayout, QVBoxLayout from PySide2.QtCore import Qt class UI(QDialog): """""" def __init__(self, parent=No...
35.120219
245
0.594523
708
6,427
5.30226
0.312147
0.01918
0.025306
0.00959
0.09643
0.083644
0.083644
0.083644
0.026105
0.026105
0
0.004646
0.296717
6,427
182
246
35.313187
0.825664
0.156372
0
0.133333
0
0
0.089286
0.010975
0.028571
0
0
0
0
0
null
null
0
0.047619
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
7ae19ffe2c84e1c8f7776f27dae819c4fc9e4c13
159
py
Python
c/exam/B.py
wangrunlin/lanqiao
c91d190ddfca31b8f93fe30b00a236357421d2c9
[ "MIT" ]
null
null
null
c/exam/B.py
wangrunlin/lanqiao
c91d190ddfca31b8f93fe30b00a236357421d2c9
[ "MIT" ]
null
null
null
c/exam/B.py
wangrunlin/lanqiao
c91d190ddfca31b8f93fe30b00a236357421d2c9
[ "MIT" ]
null
null
null
n = 2020 cnt = 0 for i in range(2, n+1): tmp = i while tmp > 1: if tmp % 10 == 2: cnt += 1 tmp /= 10 print(cnt)
14.454545
26
0.383648
26
159
2.346154
0.576923
0.131148
0
0
0
0
0
0
0
0
0
0.17284
0.490566
159
10
27
15.9
0.580247
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.111111
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7ae1ee9ea8bc8efc3987fab60aae17094bdb3310
1,115
py
Python
provider_daft/app/main.py
madpin/renthub
6ea0f1eefe1fcdb13a9b11d00a3c8f1a1f8ad439
[ "MIT" ]
null
null
null
provider_daft/app/main.py
madpin/renthub
6ea0f1eefe1fcdb13a9b11d00a3c8f1a1f8ad439
[ "MIT" ]
null
null
null
provider_daft/app/main.py
madpin/renthub
6ea0f1eefe1fcdb13a9b11d00a3c8f1a1f8ad439
[ "MIT" ]
null
null
null
# import logging from pathlib import Path from enum import Enum import uvicorn from fastapi import FastAPI from custom_logger import CustomizeLogger import schemas from mappings.daft_listings import get_daft_search_result from mappings.listing_details import get_listing_details # logger = logging.getLogger(__name_...
24.777778
68
0.765022
145
1,115
5.57931
0.372414
0.059333
0.063041
0.046972
0
0
0
0
0
0
0
0.008342
0.13991
1,115
44
69
25.340909
0.835245
0.06009
0
0.071429
0
0
0.092912
0
0
0
0
0
0
1
0.035714
false
0
0.285714
0
0.535714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
7ae90d2276df7dc9c77650dd835435a4831535b1
1,407
py
Python
models/prov.py
LvanWissen/saa-bevolkingsregisters
07beb9b5a7a171c1aa07c5a86d691ada51b5fef4
[ "MIT" ]
null
null
null
models/prov.py
LvanWissen/saa-bevolkingsregisters
07beb9b5a7a171c1aa07c5a86d691ada51b5fef4
[ "MIT" ]
null
null
null
models/prov.py
LvanWissen/saa-bevolkingsregisters
07beb9b5a7a171c1aa07c5a86d691ada51b5fef4
[ "MIT" ]
null
null
null
""" Bio ontology to be used in the enrichment of SAA indices by Golden Agents. """ from rdflib import Dataset, Graph, Namespace from rdflib import XSD, RDF, RDFS, OWL from rdflib import URIRef, BNode, Literal from rdfalchemy.rdfSubject import rdfSubject from rdfalchemy.rdfsSubject import rdfsSubject from rdfalchemy ...
24.258621
75
0.711443
160
1,407
6.18125
0.33125
0.097068
0.109201
0.133468
0.097068
0
0
0
0
0
0
0.000882
0.19403
1,407
58
76
24.258621
0.871252
0.057569
0
0.1
0
0
0.019985
0
0
0
0
0
0
1
0
false
0
0.2
0
0.9
0
0
0
0
null
0
0
0
0
0
0
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
7af0a1269b0aee31c124a044858c1c2c86b961aa
4,054
py
Python
dragnet/dll/models.py
mozilla/dragnet
79c65d11bd0a647d3aa1b01094578828b13ba492
[ "BSD-3-Clause" ]
1
2019-05-12T14:24:36.000Z
2019-05-12T14:24:36.000Z
dragnet/dll/models.py
mozilla/dragnet
79c65d11bd0a647d3aa1b01094578828b13ba492
[ "BSD-3-Clause" ]
1
2019-02-17T17:42:17.000Z
2019-02-17T17:42:17.000Z
dragnet/dll/models.py
mozilla/dragnet
79c65d11bd0a647d3aa1b01094578828b13ba492
[ "BSD-3-Clause" ]
1
2019-11-03T11:57:26.000Z
2019-11-03T11:57:26.000Z
from django.db import models from django.db.models.signals import pre_save from django.dispatch import receiver from django.contrib.auth.models import User import datetime class File(models.Model): """The actual DLL file itself""" STATUS_UNKNOWN = 'unknown' STATUS_VALID = 'valid' STATUS_MALWARE = 'mal...
40.949495
77
0.653429
472
4,054
5.447034
0.262712
0.08168
0.098016
0.130688
0.434072
0.423571
0.311941
0.281602
0.281602
0.1338
0
0.012278
0.236556
4,054
98
78
41.367347
0.818417
0.035274
0
0.098765
0
0
0.069444
0
0
0
0
0
0
1
0.024691
false
0
0.061728
0.012346
0.641975
0
0
0
0
null
0
0
0
0
0
0
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
7af34a3e4122a0bbf222176b0b79b50b9e1b8096
1,772
py
Python
RunToolkit/for_str/transform.py
Ijustwantyouhappy/RunToolkit
c8245db0fc6f45e6847f9c2266a9f501966331e7
[ "MIT" ]
null
null
null
RunToolkit/for_str/transform.py
Ijustwantyouhappy/RunToolkit
c8245db0fc6f45e6847f9c2266a9f501966331e7
[ "MIT" ]
null
null
null
RunToolkit/for_str/transform.py
Ijustwantyouhappy/RunToolkit
c8245db0fc6f45e6847f9c2266a9f501966331e7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 2019/10/4 1:51 # @Author : Run # @File : transform.py # @Software : PyCharm from RunToolkit.for_str import split_to_words def camel(s: str) -> str: """ Converts a string to camelcase. """ tmp = ' '.join(split_to_words(s)).title().replace(' ', '') retu...
32.814815
132
0.668736
221
1,772
5.180995
0.348416
0.043668
0.065502
0.082969
0.51441
0.415721
0.415721
0.352838
0.312664
0.312664
0
0.008959
0.181151
1,772
53
133
33.433962
0.780152
0.369639
0
0.12
0
0
0.333015
0.131679
0
0
0
0
0
1
0.12
false
0
0.04
0
0.28
0.64
0
0
0
null
0
0
0
0
0
0
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
7afd90712ba131153aa6c2e0f6e98e199b7b8380
599
py
Python
white_matter/wm_recipe/synapse_types/__init__.py
alex4200/Long-range-micro-connectome
833aad78bc71e49a5059b276e65d3fef21686f9d
[ "BSD-3-Clause" ]
9
2019-05-01T13:12:17.000Z
2021-11-23T10:34:56.000Z
white_matter/wm_recipe/synapse_types/__init__.py
alex4200/Long-range-micro-connectome
833aad78bc71e49a5059b276e65d3fef21686f9d
[ "BSD-3-Clause" ]
2
2022-02-03T13:56:22.000Z
2022-02-04T07:16:37.000Z
white_matter/wm_recipe/synapse_types/__init__.py
alex4200/Long-range-micro-connectome
833aad78bc71e49a5059b276e65d3fef21686f9d
[ "BSD-3-Clause" ]
1
2022-02-03T12:05:12.000Z
2022-02-03T12:05:12.000Z
from ...utils.data_from_config import read_config class SynapseTypes(object): def __init__(self, cfg_file=None): import os from white_matter.utils.paths_in_config import path_local_to_cfg_root if cfg_file is None: cfg_file = os.path.join(os.path.split(__file__)[0], 'default.jso...
33.277778
79
0.674457
86
599
4.267442
0.44186
0.095368
0.059946
0.076294
0.098093
0
0
0
0
0
0
0.002119
0.21202
599
17
80
35.235294
0.775424
0
0
0
0
0
0.128763
0
0
0
0
0
0
1
0.153846
false
0
0.230769
0.076923
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
0
0
0
1
0
0
1
7afe1a65147320508c6cd4f20a27caca4a77d3ae
9,001
py
Python
RDS/code/est_py/interface1.py
chrisjcameron/chrisjcameron.github.io
98bae30c1227465aba09ee50083688857b573cd5
[ "MIT" ]
null
null
null
RDS/code/est_py/interface1.py
chrisjcameron/chrisjcameron.github.io
98bae30c1227465aba09ee50083688857b573cd5
[ "MIT" ]
null
null
null
RDS/code/est_py/interface1.py
chrisjcameron/chrisjcameron.github.io
98bae30c1227465aba09ee50083688857b573cd5
[ "MIT" ]
null
null
null
from jpype import * import numpy as np #Interface1.py puts rdsat_analyze and rdsat_aggregate into a class so that the jpype portion is defined only once. #This is an effort to reduce the potential of memory leakage. -pp286 1/25/2013 ###############################################################################...
41.671296
392
0.627264
969
9,001
5.73065
0.254902
0.02161
0.032775
0.042139
0.349181
0.270484
0.263821
0.203494
0.203494
0.203494
0
0.020895
0.244973
9,001
215
393
41.865116
0.796204
0.182091
0
0.131148
0
0.008197
0.149978
0.11547
0
0
0
0
0
0
null
null
0
0.016393
null
null
0.032787
0
0
0
null
0
0
0
0
0
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
7aff43ff8efda6fac5ad1959773f34423f5ad2b7
864
py
Python
backend/run.py
kendricktan/quantum-game-theory
bea69922071a97107ae97b3aef1a0dd1006e6ab7
[ "Apache-2.0" ]
null
null
null
backend/run.py
kendricktan/quantum-game-theory
bea69922071a97107ae97b3aef1a0dd1006e6ab7
[ "Apache-2.0" ]
null
null
null
backend/run.py
kendricktan/quantum-game-theory
bea69922071a97107ae97b3aef1a0dd1006e6ab7
[ "Apache-2.0" ]
1
2021-12-16T23:54:29.000Z
2021-12-16T23:54:29.000Z
from quantum_game_theory.logic import Game GAME = '4-minority' PROTOCOL = 'EWL' game = Game(GAME, PROTOCOL) print(f'Running game: {GAME}') print('-'*25) print('Options: X, Y, S, Z, H, T, W, Rz1, X, Ry1, Rz2') print('Please type as a list, eg. W, Rz1, Z') print('-'*25) print('Input player 1 gates:') state_1_input = i...
24.685714
55
0.680556
151
864
3.701987
0.304636
0.071556
0.11449
0.071556
0.261181
0.121646
0
0
0
0
0
0.038926
0.137731
864
34
56
25.411765
0.711409
0
0
0.076923
0
0.038462
0.253472
0
0
0
0
0
0
1
0
false
0
0.038462
0
0.038462
0.461538
0
0
0
null
0
0
0
0
0
0
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
bb00b538ca21d669ba77cf843ca0b420b3bc4111
2,759
py
Python
text_messaging/mms_example/mms.py
cerna/example_robot_programs
78b89002277342d9ea016628d4072b15c089a11d
[ "BSD-3-Clause" ]
1
2021-09-07T04:57:21.000Z
2021-09-07T04:57:21.000Z
text_messaging/mms_example/mms.py
cerna/example_robot_programs
78b89002277342d9ea016628d4072b15c089a11d
[ "BSD-3-Clause" ]
null
null
null
text_messaging/mms_example/mms.py
cerna/example_robot_programs
78b89002277342d9ea016628d4072b15c089a11d
[ "BSD-3-Clause" ]
1
2021-09-07T05:02:16.000Z
2021-09-07T05:02:16.000Z
# imports # re and datetime live on the base OS image, but twilio, dropbox, and cv2 must be installed every time a new docker container is started # this may take a minute or two the first time you run this program after restarting your computer import sh import re import datetime from robot_command.rpl import * # Set...
28.739583
136
0.685393
390
2,759
4.720513
0.407692
0.03585
0.026073
0.030961
0.10755
0.024986
0.024986
0
0
0
0
0.012599
0.223269
2,759
96
137
28.739583
0.846477
0.240667
0
0.190476
0
0.015873
0.183477
0
0
0
0
0.010417
0
1
0.063492
false
0
0.174603
0
0.253968
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
bb0d5143b16c13016cc69c90c117a1b565837ce9
3,481
py
Python
lifeline.py
goggledefogger/BlinkyTapeQueue
91e925484f2c7f2a1b98eded5f92e2444e65bb7d
[ "MIT" ]
null
null
null
lifeline.py
goggledefogger/BlinkyTapeQueue
91e925484f2c7f2a1b98eded5f92e2444e65bb7d
[ "MIT" ]
null
null
null
lifeline.py
goggledefogger/BlinkyTapeQueue
91e925484f2c7f2a1b98eded5f92e2444e65bb7d
[ "MIT" ]
null
null
null
#!/usr/bin/env python from BlinkyTapeV2 import BlinkyTape import sys import logging import time import glob import os import pickle import datetime import calendar import re logging.basicConfig() if sys.platform.startswith('win'): serialPorts = ['COM%s' % (i + 1) for i in range(256)] elif sys.platform.startswith...
23.362416
93
0.669635
411
3,481
5.671533
0.396594
0.045045
0.036036
0.014157
0.162162
0.073788
0.073788
0.027456
0.027456
0.027456
0
0.020118
0.17179
3,481
148
94
23.52027
0.788415
0.153404
0
0.150538
0
0
0.101782
0
0
0
0
0
0
0
null
null
0
0.107527
null
null
0.032258
0
0
0
null
0
0
0
0
0
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
bb0f890f904786d6aa69206ff43ef97374a86963
1,853
py
Python
busy_beaver/common/models.py
alysivji/github-adapter
5e3543f41f189fbe4a50d64e3d6734dc765579b4
[ "MIT" ]
55
2019-05-05T01:20:58.000Z
2022-01-10T18:03:05.000Z
busy_beaver/common/models.py
alysivji/github-adapter
5e3543f41f189fbe4a50d64e3d6734dc765579b4
[ "MIT" ]
222
2019-05-03T16:31:26.000Z
2021-08-28T23:49:03.000Z
busy_beaver/common/models.py
busy-beaver-dev/busy-beaver
5e3543f41f189fbe4a50d64e3d6734dc765579b4
[ "MIT" ]
19
2019-04-27T19:49:32.000Z
2020-06-30T19:52:09.000Z
from redis.exceptions import RedisError from rq.exceptions import NoSuchJobError from rq.job import Job from sqlalchemy.ext.declarative import declared_attr from sqlalchemy_utils import ChoiceType from busy_beaver.extensions import db, rq class BaseModel(db.Model): __abstract__ = True id = db.Column(db.Inte...
28.075758
86
0.648138
234
1,853
4.940171
0.405983
0.055363
0.060554
0.057093
0.050173
0
0
0
0
0
0
0.010638
0.239072
1,853
65
87
28.507692
0.80922
0.023745
0
0
0
0
0.043285
0.014428
0
0
0
0
0
1
0.104167
false
0
0.125
0.041667
0.604167
0
0
0
0
null
0
0
0
0
0
0
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
bb0fe74b275e8c6ec8c5880ecf89ef255b1f0907
1,911
py
Python
stanCode_Projects/weather_master/weather_master.py
Cherry-RB/sc-projects
53aeeeb2821ce64725a01ac467a2f1a17a83944a
[ "MIT" ]
null
null
null
stanCode_Projects/weather_master/weather_master.py
Cherry-RB/sc-projects
53aeeeb2821ce64725a01ac467a2f1a17a83944a
[ "MIT" ]
null
null
null
stanCode_Projects/weather_master/weather_master.py
Cherry-RB/sc-projects
53aeeeb2821ce64725a01ac467a2f1a17a83944a
[ "MIT" ]
null
null
null
""" File: weather_master.py Name:Cherry ----------------------- This program should implement a console program that asks weather data from user to compute the average, highest, lowest, cold days among the inputs. Output format should match what is shown in the sample run in the Assignment 2 Handout. """ LEAVING = -1 ...
28.522388
91
0.682889
275
1,911
4.690909
0.345455
0.048837
0.027907
0.049612
0.444961
0.415504
0.390698
0.390698
0.390698
0.251163
0
0.01888
0.196232
1,911
66
92
28.954545
0.820964
0.519623
0
0.371429
0
0
0.234892
0
0
0
0
0.015152
0
1
0.028571
false
0
0
0
0.028571
0.171429
0
0
0
null
0
0
0
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
bb0ffdb02e0aa2bbb9ce65faacc48becda4dad09
537
py
Python
atlas/prodtask/management/commands/synccvmfsevgen.py
PanDAWMS/panda-bigmon-atlas
a3688b9ed722a15c0469c8bee84cc9a417670608
[ "Apache-2.0" ]
null
null
null
atlas/prodtask/management/commands/synccvmfsevgen.py
PanDAWMS/panda-bigmon-atlas
a3688b9ed722a15c0469c8bee84cc9a417670608
[ "Apache-2.0" ]
15
2015-01-06T13:41:52.000Z
2022-03-30T10:37:25.000Z
atlas/prodtask/management/commands/synccvmfsevgen.py
PanDAWMS/panda-bigmon-atlas
a3688b9ed722a15c0469c8bee84cc9a417670608
[ "Apache-2.0" ]
1
2017-07-20T08:01:24.000Z
2017-07-20T08:01:24.000Z
from django.core.management.base import BaseCommand, CommandError import time from atlas.prodtask.mcevgen import sync_cvmfs_db class Command(BaseCommand): args = '' help = 'Sync cvmfs JOs' def handle(self, *args, **options): self.stdout.write('Start sync cvmfs for JOs at %s'%time.ctime()) ...
31.588235
78
0.666667
70
537
5.057143
0.628571
0.101695
0.062147
0
0
0
0
0
0
0
0
0
0.223464
537
17
78
31.588235
0.848921
0
0
0
0
0
0.20632
0
0
0
0
0
0
1
0.076923
false
0
0.230769
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
0
0
0
1
0
0
1
bb21bffb475a91a045234580422ce85e21f1b9da
1,751
py
Python
dictest/main.py
moreal/EngExam-Helper
28c95f8b8534dbeab7ea8664dfa1b421c48c654f
[ "Apache-2.0" ]
1
2020-07-06T09:21:46.000Z
2020-07-06T09:21:46.000Z
dictest/main.py
moreal/EngExam-Helper
28c95f8b8534dbeab7ea8664dfa1b421c48c654f
[ "Apache-2.0" ]
4
2018-10-06T14:34:23.000Z
2018-10-29T09:59:18.000Z
dictest/main.py
moreal/EngExam-Helper
28c95f8b8534dbeab7ea8664dfa1b421c48c654f
[ "Apache-2.0" ]
1
2018-10-05T13:30:41.000Z
2018-10-05T13:30:41.000Z
# -*- coding: utf-8 -*- import random import json import config __author__ = "dsm_helper" def get_quiz_data_from_input(): return input("입학년도를 입력해주세요 ex) 2017 >> "), input("학기를 입력해주세요 ex) 1st >> "), input("파일명을 입력해주세요 ex) 01 >> ") def get_words_by_info(enter_year, semester, file_name): try: with o...
25.376812
111
0.571673
214
1,751
4.46729
0.406542
0.080544
0.07113
0.087866
0.278243
0.142259
0.08159
0.08159
0.08159
0
0
0.015715
0.309537
1,751
68
112
25.75
0.774194
0.011993
0
0.18
0
0
0.104806
0.029531
0
0
0
0
0
0
null
null
0
0.06
null
null
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
bb2c4b650c2af08d4dbb698248079b72a31a18e1
8,212
py
Python
dog-agent-game/ml-agents-envs/mlagents/envs/communicator_objects/brain_parameters_proto_pb2.py
antopraju/FiRescue
a67c8fa3ee3422f6c6979ed242d6d68309b4230f
[ "MIT" ]
58
2019-06-13T16:35:40.000Z
2021-12-30T03:16:45.000Z
dog-agent-game/ml-agents-envs/mlagents/envs/communicator_objects/brain_parameters_proto_pb2.py
antopraju/FiRescue
a67c8fa3ee3422f6c6979ed242d6d68309b4230f
[ "MIT" ]
7
2020-09-26T00:43:02.000Z
2022-02-10T01:26:53.000Z
dog-agent-game/ml-agents-envs/mlagents/envs/communicator_objects/brain_parameters_proto_pb2.py
antopraju/FiRescue
a67c8fa3ee3422f6c6979ed242d6d68309b4230f
[ "MIT" ]
23
2019-06-25T17:09:32.000Z
2021-03-18T06:44:17.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: mlagents/envs/communicator_objects/brain_parameters_proto.proto import sys _b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.pro...
35.396552
829
0.651364
844
8,212
5.952607
0.195498
0.10211
0.077627
0.048368
0.556927
0.488654
0.46457
0.407046
0.356887
0.356887
0
0.03442
0.264126
8,212
231
830
35.549784
0.796955
0.036897
0
0.554502
1
0.009479
0.168691
0.144267
0
0
0
0
0
1
0
false
0
0.033175
0
0.033175
0
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
bb3abbd51b581619dfe063a31104c7b27d19964d
958
py
Python
sympymod/__init__.py
mathcube7/sympymod
13de1b7ff08a71078db9aaad036b89f245a1eadd
[ "MIT" ]
null
null
null
sympymod/__init__.py
mathcube7/sympymod
13de1b7ff08a71078db9aaad036b89f245a1eadd
[ "MIT" ]
null
null
null
sympymod/__init__.py
mathcube7/sympymod
13de1b7ff08a71078db9aaad036b89f245a1eadd
[ "MIT" ]
null
null
null
import types import sys from .equation import * from .pick import * from .calculus import * from functools import wraps this_module = sys.modules[__name__] def _get_imported_names(module): names = module.__all__ if hasattr(module, '__all__') else dir(module) return [name for name in names if not name.start...
23.95
83
0.643006
124
958
4.693548
0.395161
0.051546
0.054983
0.04811
0
0
0
0
0
0
0
0.005548
0.24739
958
39
84
24.564103
0.801664
0
0
0.074074
0
0
0.012526
0
0
0
0
0
0
1
0.111111
false
0
0.296296
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
bb3ff734e979b00b8243155e1f99cf2ced5bb2ac
1,425
py
Python
ikats/objects/tests/test_operator.py
IKATS/ikats_api
86f965e9ea83fde1fb64f187b294d383d267f77f
[ "Apache-2.0" ]
null
null
null
ikats/objects/tests/test_operator.py
IKATS/ikats_api
86f965e9ea83fde1fb64f187b294d383d267f77f
[ "Apache-2.0" ]
null
null
null
ikats/objects/tests/test_operator.py
IKATS/ikats_api
86f965e9ea83fde1fb64f187b294d383d267f77f
[ "Apache-2.0" ]
1
2020-01-27T14:44:27.000Z
2020-01-27T14:44:27.000Z
# -*- coding: utf-8 -*- """ Copyright 2019 CS Systèmes d'Information 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...
29.6875
72
0.700351
190
1,425
5.236842
0.563158
0.060302
0.063317
0.032161
0.104523
0
0
0
0
0
0
0.013286
0.207719
1,425
47
73
30.319149
0.868025
0.444211
0
0
0
0
0.014765
0
0
0
0
0
0.5
1
0.055556
false
0
0.222222
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
1
0
0
0
0
0
0
0
0
0
1
bb426109212a1a55cdb958ac5697dfb1fff667b3
7,529
py
Python
models/game_states.py
bumasi/matchTaker
125501b1834b745221601956ad273542f4498de3
[ "MIT" ]
null
null
null
models/game_states.py
bumasi/matchTaker
125501b1834b745221601956ad273542f4498de3
[ "MIT" ]
null
null
null
models/game_states.py
bumasi/matchTaker
125501b1834b745221601956ad273542f4498de3
[ "MIT" ]
null
null
null
"""Module defining game-state and its operations. A game-state is a sequence of rows containing matches. If rows are numbered from 1 .. 5, then row n must contain 0..n matches. Here, rows are indexed from 0 .. 4, thus row with index k must contain 0 .. k+1 matches. The rows are represented by a list. A game-state is ...
38.610256
118
0.627175
1,063
7,529
4.324553
0.208843
0.050903
0.006526
0.011964
0.093104
0.053078
0.046987
0.046987
0.046987
0.046987
0
0.018256
0.279718
7,529
194
119
38.809278
0.82943
0.408288
0
0.154639
0
0
0.054379
0
0
0
0
0.010309
0.092784
1
0.164948
false
0
0.051546
0
0.402062
0
0
0
0
null
0
0
0
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
bb46e430c01b258c830deeed7a55aa7237e0d5ac
663
py
Python
app/models/component_group.py
arxcdr/silverback
212139cbc1a648d1f877d60f2d7c4d750eefc3da
[ "BSD-3-Clause" ]
null
null
null
app/models/component_group.py
arxcdr/silverback
212139cbc1a648d1f877d60f2d7c4d750eefc3da
[ "BSD-3-Clause" ]
null
null
null
app/models/component_group.py
arxcdr/silverback
212139cbc1a648d1f877d60f2d7c4d750eefc3da
[ "BSD-3-Clause" ]
null
null
null
""" Component Model """ # Third Party Library from django.db import models class ComponentGroup(models.Model): UPTIME_CHOICES = ( ('on', 'ON'), ('off', 'OFF') ) name = models.CharField(max_length=100, verbose_name="Name") description = models.CharField(max_length=200, verbose_name="...
27.625
106
0.701357
82
663
5.45122
0.463415
0.123043
0.120805
0.161074
0.12528
0
0
0
0
0
0
0.014545
0.170437
663
23
107
28.826087
0.798182
0.054299
0
0
0
0
0.117932
0
0
0
0
0
0
1
0
false
0
0.076923
0
0.692308
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
bb47dfabfd2aa0e0fa373b54370ae06b90bf1955
369
py
Python
project/migrations/0006_post_like_num.py
tatsuki5820iso/birth-pro
761a8aaba38437ff26c4666c4d490fb00ae44c2d
[ "MIT" ]
null
null
null
project/migrations/0006_post_like_num.py
tatsuki5820iso/birth-pro
761a8aaba38437ff26c4666c4d490fb00ae44c2d
[ "MIT" ]
null
null
null
project/migrations/0006_post_like_num.py
tatsuki5820iso/birth-pro
761a8aaba38437ff26c4666c4d490fb00ae44c2d
[ "MIT" ]
null
null
null
# Generated by Django 2.2.1 on 2019-07-06 15:09 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('project', '0005_like'), ] operations = [ migrations.AddField( model_name='post', name='like_num', field=...
19.421053
49
0.579946
40
369
5.275
0.8
0
0
0
0
0
0
0
0
0
0
0.077519
0.300813
369
18
50
20.5
0.74031
0.121951
0
0
1
0
0.086957
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bb4a8c2e30e85be85579e407dae86a38f3dfdb9a
588
py
Python
knoema/view_definitions.py
FromPerm/knoema-python-driver
930f52ed8ce718d449843977ff3af56183ab0e5c
[ "MIT" ]
8
2019-03-06T10:58:07.000Z
2021-10-14T23:25:10.000Z
knoema/view_definitions.py
FromPerm/knoema-python-driver
930f52ed8ce718d449843977ff3af56183ab0e5c
[ "MIT" ]
4
2017-08-29T22:26:22.000Z
2019-02-21T08:39:22.000Z
knoema/view_definitions.py
FromPerm/knoema-python-driver
930f52ed8ce718d449843977ff3af56183ab0e5c
[ "MIT" ]
7
2017-08-31T18:15:31.000Z
2021-09-30T09:48:18.000Z
class Dimension: def __init__(self): self.key = None self.id = None self.name = None self.isGeo = None self.datasetId = None self.fields = [] self.members = None class Field: def __init__(self, field_info): self.key = field_info['key'] ...
25.565217
56
0.588435
67
588
4.925373
0.298507
0.218182
0.066667
0
0
0
0
0
0
0
0
0
0.297619
588
22
57
26.727273
0.799031
0
0
0
0
0
0.081633
0
0
0
0
0
0
1
0.111111
false
0
0
0
0.222222
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bb50e04db27532e6e7b186fec653b22a88cd4b78
879
py
Python
config/generate.py
BYU-PCCL/conversational-ai
a6f4009983d74bb30900b65b756d6c0ef564cde5
[ "MIT" ]
4
2020-04-28T02:48:26.000Z
2021-01-27T13:44:02.000Z
config/generate.py
BYU-PCCL/conversational-ai
a6f4009983d74bb30900b65b756d6c0ef564cde5
[ "MIT" ]
1
2020-04-01T21:04:53.000Z
2020-04-07T05:51:14.000Z
config/generate.py
BYU-PCCL/conversational-ai
a6f4009983d74bb30900b65b756d6c0ef564cde5
[ "MIT" ]
null
null
null
"""Generates a gin config from the current task/mixture list. Usage: `python3 -m config.generate` """ from itertools import chain, product from pathlib import Path import t5 import conversational_ai.tasks # noqa: F401 WHITELIST = ["chitchat", "dailydialog", "convai2"] sizes = ["small", "base", "large", "3b", "11b...
23.756757
73
0.68942
114
879
5.263158
0.587719
0.053333
0
0
0
0
0
0
0
0
0
0.014825
0.155859
879
36
74
24.416667
0.793801
0.121729
0
0
1
0
0.281046
0.142484
0
0
0
0
0
1
0
false
0
0.190476
0
0.190476
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bb53c4a0f1a393f02f772b8fd2369105dec89425
2,468
py
Python
GraphGeneration.py
arunkumaraqm/Prims-Algorithm-Using-Fibonacci-Heap
8795f46ac852de465708a2f6ec63e5b6970ae485
[ "MIT" ]
1
2021-12-12T12:32:31.000Z
2021-12-12T12:32:31.000Z
GraphGeneration.py
arunkumaraqm/Prims-Algorithm-Using-Fibonacci-Heap
8795f46ac852de465708a2f6ec63e5b6970ae485
[ "MIT" ]
null
null
null
GraphGeneration.py
arunkumaraqm/Prims-Algorithm-Using-Fibonacci-Heap
8795f46ac852de465708a2f6ec63e5b6970ae485
[ "MIT" ]
null
null
null
# Program to generate a test case (adjacency matrix) for Prim's and Krukal's algorithms # The graph generated will be connected. from random import shuffle, sample, randint import sys def read(): nfverts = int(input("Number of vertices: ")) density = int(input("Density (Medium 1, High 2 or Complete 3): ")) limit =...
30.097561
87
0.662885
380
2,468
4.163158
0.244737
0.05689
0.079646
0.017699
0.561315
0.539191
0.539191
0.513906
0.513906
0.484197
0
0.023692
0.179092
2,468
81
88
30.469136
0.757157
0.08752
0
0.372881
1
0
0.10477
0
0
0
0
0
0
1
0.084746
false
0
0.033898
0
0.135593
0.050847
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
bb543f23b3a54fdbea23c49d4b96ad410e61422b
720
py
Python
setup.py
fgolemo/segar
8e21f8ee01bc72adb84dec7998b014d11d2b1fbe
[ "MIT" ]
19
2022-02-16T18:45:12.000Z
2022-03-25T10:42:19.000Z
setup.py
microsoft/segar
78463968238482ae035121504458dd0909107e10
[ "MIT" ]
4
2022-02-16T22:58:00.000Z
2022-03-02T23:11:10.000Z
setup.py
fgolemo/segar
8e21f8ee01bc72adb84dec7998b014d11d2b1fbe
[ "MIT" ]
5
2022-02-17T01:46:18.000Z
2022-03-21T21:21:19.000Z
from setuptools import setup, find_packages setup( author='R Devon Hjelm, Bogdan Mazoure, Florian Golemo, Mihai Jalobeanu, ' 'and Felipe Frujeri', name='segar', install_requires=[ "absl-py", "numpy", "scipy", "aenum", "matplotlib", "opencv-python-h...
21.176471
77
0.483333
63
720
5.412698
0.888889
0.070381
0
0
0
0
0
0
0
0
0
0.006536
0.3625
720
33
78
21.818182
0.736383
0
0
0
0
0
0.315278
0.030556
0
0
0
0
0
1
0
true
0
0.03125
0
0.03125
0
0
0
0
null
0
0
0
0
0
0
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
bb57009812c34e175d543cef5dd14634cb63cb56
868
py
Python
super_taxi/model/taxis.py
sanjayatb/taxi-booking-system
b78f8ab00a7f6d12c786331880242ce0306480bb
[ "MIT" ]
null
null
null
super_taxi/model/taxis.py
sanjayatb/taxi-booking-system
b78f8ab00a7f6d12c786331880242ce0306480bb
[ "MIT" ]
null
null
null
super_taxi/model/taxis.py
sanjayatb/taxi-booking-system
b78f8ab00a7f6d12c786331880242ce0306480bb
[ "MIT" ]
1
2021-09-17T18:23:13.000Z
2021-09-17T18:23:13.000Z
from super_taxi.model.generics import Vehicle, Coordinate from super_taxi.model.cars import Car,SUVCar class Taxi(Vehicle): def __init__(self, id=None): Vehicle.__init__(self, id=id) self.position = Coordinate(0, 0) self.ride = None self.booked = False self.pickup_distance ...
23.459459
57
0.62212
114
868
4.403509
0.27193
0.12749
0.159363
0.077689
0.492032
0.458167
0.374502
0.278884
0.278884
0.278884
0
0.009524
0.274194
868
36
58
24.111111
0.787302
0
0
0.481481
0
0
0
0
0
0
0
0
0
1
0.222222
false
0
0.074074
0.037037
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
24715e801b8576ccd33080ee82681ed92299255a
264
py
Python
day/008/prime_number_checker.py
Wanzaz/100-days-of-code
a450a5c64f04cf1155fcc76e59a73f5b509fd8de
[ "MIT" ]
null
null
null
day/008/prime_number_checker.py
Wanzaz/100-days-of-code
a450a5c64f04cf1155fcc76e59a73f5b509fd8de
[ "MIT" ]
null
null
null
day/008/prime_number_checker.py
Wanzaz/100-days-of-code
a450a5c64f04cf1155fcc76e59a73f5b509fd8de
[ "MIT" ]
null
null
null
def prime_checker(number): counter = 0 for i in range(1, number): if number%i == 0: counter += 1 if counter <= 2: print("It's a prime number.") else: print("It's not a prime number.") n = int(input("Check this number: ")) prime_checker(number=n)
18.857143
37
0.632576
45
264
3.666667
0.533333
0.145455
0.218182
0
0
0
0
0
0
0
0
0.024038
0.212121
264
13
38
20.307692
0.769231
0
0
0
0
0
0.239544
0
0
0
0
0
0
1
0.090909
false
0
0
0
0.090909
0.181818
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
2473578e0dc8148f2d403d69ad2f3008a50ff536
3,109
py
Python
lightfield_plane.py
IDLabMedia/blender-lightfield-addon
508dc01bb7c356345886cb4ca6a87fc63d6e002b
[ "MIT" ]
1
2022-03-21T21:08:21.000Z
2022-03-21T21:08:21.000Z
lightfield_plane.py
IDLabMedia/blender-lightfield-addon
508dc01bb7c356345886cb4ca6a87fc63d6e002b
[ "MIT" ]
null
null
null
lightfield_plane.py
IDLabMedia/blender-lightfield-addon
508dc01bb7c356345886cb4ca6a87fc63d6e002b
[ "MIT" ]
null
null
null
import math import random import bpy import bmesh from mathutils import Color from .lightfield import LightfieldPropertyGroup from .camera_position import CameraPosition class LightfieldPlane(LightfieldPropertyGroup): def construct(self): visuals = self.default_construct() self.lf_type = 'PLANE'...
31.72449
77
0.5899
385
3,109
4.592208
0.303896
0.00905
0.031109
0.028846
0.119344
0.098982
0.098982
0.042986
0.042986
0.042986
0
0.018894
0.302026
3,109
97
78
32.051546
0.795853
0.096816
0
0.028986
0
0
0.036436
0
0
0
0
0.010309
0
1
0.086957
false
0
0.101449
0
0.26087
0
0
0
0
null
0
0
0
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
2474729c976fcd37a3e680747e2e004bf29e5a43
3,446
py
Python
angr_platforms/tricore/rcrr_instr.py
shahinsba/angr-platforms
86f9ea90c396fb5561d0196a2d1a873e573b0294
[ "BSD-2-Clause" ]
null
null
null
angr_platforms/tricore/rcrr_instr.py
shahinsba/angr-platforms
86f9ea90c396fb5561d0196a2d1a873e573b0294
[ "BSD-2-Clause" ]
null
null
null
angr_platforms/tricore/rcrr_instr.py
shahinsba/angr-platforms
86f9ea90c396fb5561d0196a2d1a873e573b0294
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 """ rcrr_instr.py Implementation of RCRR format instructions. """ from pyvex.lifting.util import Type, Instruction import bitstring from .logger import log_this class RCRR_Instructions(Instruction): """ Insert Bit Field instruction. op = 0x97 op2 = 0x00 3-bit User S...
35.163265
101
0.476785
489
3,446
3.149284
0.206544
0.059091
0.064935
0.067532
0.25
0.213636
0.169481
0.147403
0.147403
0.111688
0
0.072926
0.36332
3,446
97
102
35.525773
0.628988
0.087928
0
0
0
0
0.037791
0
0
0
0.002584
0.010309
0
1
0.134328
false
0
0.044776
0.089552
0.358209
0
0
0
0
null
0
0
0
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
247a79aa5cbab1ad538a7d3592c40f4f3587b86e
9,979
py
Python
app_core.py
licaiwang/Line_Bot_Heroku
b63bdaa1c19e4e85034938e919cde2c994eb7959
[ "CC0-1.0" ]
1
2021-12-13T08:11:33.000Z
2021-12-13T08:11:33.000Z
app_core.py
licaiwang/Line_Bot_Heroku
b63bdaa1c19e4e85034938e919cde2c994eb7959
[ "CC0-1.0" ]
null
null
null
app_core.py
licaiwang/Line_Bot_Heroku
b63bdaa1c19e4e85034938e919cde2c994eb7959
[ "CC0-1.0" ]
null
null
null
# linebotTest1 # ngrok http 5000 import random import re from flask import Flask, abort, render_template, request from linebot import LineBotApi, WebhookHandler from linebot.exceptions import InvalidSignatureError from linebot.models import ( ImageSendMessage, LocationSendMessage, MessageAction, Messag...
33.374582
178
0.56649
954
9,979
5.786164
0.212788
0.048913
0.177536
0.202899
0.415217
0.389674
0.282246
0.276087
0.168659
0.159239
0
0.015812
0.321876
9,979
298
179
33.486577
0.799911
0.01914
0
0.38
0
0.008
0.063393
0.036268
0
0
0
0
0
1
0.032
false
0
0.04
0
0.184
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
247b0605fd3a14a6076fa2c2dcfa9121ed6d8503
3,460
py
Python
uwb/export.py
unfoldingWord-dev/tools
7251d64b4750f1615125dab3c09d6d00a9c284b4
[ "MIT" ]
6
2015-07-27T21:50:39.000Z
2020-06-25T14:32:35.000Z
uwb/export.py
unfoldingWord-dev/tools
7251d64b4750f1615125dab3c09d6d00a9c284b4
[ "MIT" ]
89
2015-06-24T09:35:40.000Z
2022-02-13T14:40:31.000Z
uwb/export.py
unfoldingWord-dev/tools
7251d64b4750f1615125dab3c09d6d00a9c284b4
[ "MIT" ]
12
2015-07-13T17:31:04.000Z
2021-08-06T06:50:21.000Z
#!/usr/bin/env python2 # -*- coding: utf8 -*- # # Copyright (c) 2015 unfoldingWord # http://creativecommons.org/licenses/MIT/ # See LICENSE file for details. # # Contributors: # Richard Mahn <rich.mahn@unfoldingword.org> """ This script exports a Bible into the given format from the API. Requires that https://g...
32.952381
136
0.654046
449
3,460
4.991091
0.371938
0.02008
0.03793
0.025435
0.109772
0.060687
0.060687
0
0
0
0
0.010469
0.199422
3,460
104
137
33.269231
0.798556
0.086127
0
0.119403
0
0.014925
0.190379
0.007453
0.014925
0
0
0
0
0
null
null
0
0.164179
null
null
0.044776
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
248a70cf8d1646d891e27f52bd76558641dde682
2,621
py
Python
kernel/builder.py
dereklpeck/paradoxia
7dffa6250ba9a06a227688418b80de8c16c5baff
[ "MIT" ]
1
2020-09-03T22:33:50.000Z
2020-09-03T22:33:50.000Z
kernel/builder.py
xeddmc/paradoxia
a9b43d1512b43e905bbce0de5d41882431061848
[ "MIT" ]
null
null
null
kernel/builder.py
xeddmc/paradoxia
a9b43d1512b43e905bbce0de5d41882431061848
[ "MIT" ]
1
2022-03-29T13:27:56.000Z
2022-03-29T13:27:56.000Z
""" Generate Agent """ import os import subprocess def create_agent(lhost, lport, mode): if(len(lhost) > 0 and len(lport) > 0 and len(mode) > 0): if(mode == "static"): static = True else: print("[WARNING]: It is recommended you create a static Bot.") static = False os.chdir("bot") with open("cli...
34.946667
108
0.664632
374
2,621
4.641711
0.342246
0.057604
0.043203
0.057604
0.445853
0.423963
0.423963
0.423963
0.323733
0.297235
0
0.016219
0.17665
2,621
75
109
34.946667
0.78823
0.016406
0
0.186441
1
0
0.468276
0
0
0
0
0
0
1
0.016949
false
0
0.033898
0
0.050847
0.152542
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
248ae749605459f8349e5b1f5bb3268b9537099a
1,759
py
Python
accounts/views.py
RomanOsadchuk/nospoil
24aee6dafadca41f22d0155cbd35f488b6d1daef
[ "MIT" ]
null
null
null
accounts/views.py
RomanOsadchuk/nospoil
24aee6dafadca41f22d0155cbd35f488b6d1daef
[ "MIT" ]
null
null
null
accounts/views.py
RomanOsadchuk/nospoil
24aee6dafadca41f22d0155cbd35f488b6d1daef
[ "MIT" ]
null
null
null
from django.contrib.auth import authenticate, login from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.mixins import LoginRequiredMixin from django.contrib.auth.models import User from django.shortcuts import get_object_or_404 from django.views.generic import DetailView, TemplateView from d...
35.897959
77
0.725981
208
1,759
5.995192
0.307692
0.056135
0.054531
0.067362
0.184443
0.184443
0.184443
0.184443
0.184443
0.115477
0
0.004834
0.176805
1,759
48
78
36.645833
0.856354
0
0
0.108108
0
0
0.068221
0.042069
0
0
0
0
0
1
0.108108
false
0.081081
0.216216
0
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
1
0
0
0
0
0
1
248e303753880b411638086ecd9d9f501aa10714
493
py
Python
uiCompile2.py
bambooshoot/renameFileList
fec9f46433f10be9a0a6562d5c86254f08485756
[ "MIT" ]
null
null
null
uiCompile2.py
bambooshoot/renameFileList
fec9f46433f10be9a0a6562d5c86254f08485756
[ "MIT" ]
null
null
null
uiCompile2.py
bambooshoot/renameFileList
fec9f46433f10be9a0a6562d5c86254f08485756
[ "MIT" ]
null
null
null
from pyside2uic import compileUi import py_compile,glob,os,re uiPath=os.curdir print uiPath preIndex=len(uiPath)+1 uiFiles=glob.glob("%s/*.ui"%uiPath) print uiFiles for uiFile in uiFiles: print uiFile fileBaseName=re.search("[^\\\\]+.ui$",uiFile).group(0) fileBaseName=re.search("^[^.]+",fileBaseName).group...
29
58
0.69574
67
493
5.104478
0.492537
0.064327
0.116959
0
0
0
0
0
0
0
0
0.01171
0.133874
493
17
59
29
0.789227
0
0
0
0
0
0.072874
0
0
0
0
0
0
0
null
null
0
0.125
null
null
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
24987bca0ce019f2e50599e070edc7e7f513338a
240
py
Python
exercises/ja/exc_03_16_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/ja/exc_03_16_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/ja/exc_03_16_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
import spacy nlp = spacy.load("ja_core_news_sm") text = ( "チックフィレイはジョージア州カレッジパークに本社を置く、" "チキンサンドを専門とするアメリカのファストフードレストランチェーンです。" ) # parserを無効化 with ____.____(____): # テキストを処理する doc = ____ # docの固有表現を表示 print(____)
16
42
0.691667
18
240
7.944444
0.944444
0
0
0
0
0
0
0
0
0
0
0
0.204167
240
14
43
17.142857
0.748691
0.133333
0
0
0
0
0.387255
0.313725
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0.111111
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
249c3832e71484068be11927e05bfb9f8b40aa3a
10,983
py
Python
pvfit/measurement/spectral_correction.py
markcampanelli/pvfit
e526f3757279a3f8c41295aab94c1575ee9485fc
[ "MIT" ]
4
2019-09-17T15:19:17.000Z
2021-11-24T03:21:03.000Z
pvfit/measurement/spectral_correction.py
markcampanelli/pvfit-m
6e2b9e0797b40de8eb587ec50102421cd2071b9e
[ "MIT" ]
10
2019-08-09T15:40:51.000Z
2019-09-06T06:06:20.000Z
pvfit/measurement/spectral_correction.py
markcampanelli/pvfit-m
6e2b9e0797b40de8eb587ec50102421cd2071b9e
[ "MIT" ]
2
2019-08-13T18:44:01.000Z
2019-08-14T13:42:32.000Z
import warnings import numpy import scipy.constants import scipy.interpolate from pvfit.common.constants import c_m_per_s, h_J_s, q_C class DataFunction: r""" Store data representing one/more functions in :math:`\mathbb{R}^2` with common, monotonic increasing domain values. TODO Describe interface....
35.543689
118
0.635163
1,571
10,983
4.281349
0.203055
0.022302
0.012043
0.022896
0.400833
0.262266
0.180048
0.118495
0.082813
0.075082
0
0.016595
0.24283
10,983
308
119
35.659091
0.791967
0.455431
0
0.219298
0
0
0.066381
0
0
0
0
0.025974
0
1
0.149123
false
0
0.04386
0.04386
0.368421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
24a48a9eca1c5a99bf126ae3b17058775135c507
1,669
py
Python
Python3/547.py
rakhi2001/ecom7
73790d44605fbd51e8f7e804b9808e364fcfc680
[ "MIT" ]
854
2018-11-09T08:06:16.000Z
2022-03-31T06:05:53.000Z
Python3/547.py
rakhi2001/ecom7
73790d44605fbd51e8f7e804b9808e364fcfc680
[ "MIT" ]
29
2019-06-02T05:02:25.000Z
2021-11-15T04:09:37.000Z
Python3/547.py
rakhi2001/ecom7
73790d44605fbd51e8f7e804b9808e364fcfc680
[ "MIT" ]
347
2018-12-23T01:57:37.000Z
2022-03-12T14:51:21.000Z
__________________________________________________________________________________________________ sample 192 ms submission class Solution: def findCircleNum(self, M: List[List[int]]) -> int: seen = set() def visit_all_friends(i: int): for friend_idx,is_friend in enumerate(M[i]): ...
36.282609
98
0.520671
177
1,669
3.152542
0.276836
0.017921
0.071685
0.078853
0.25448
0.207885
0.207885
0.207885
0.207885
0.207885
0
0.02004
0.402037
1,669
45
99
37.088889
0.539078
0
0
0.162791
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
24a6a88c2ecb151b0e8afce1c1b56a57004ed0d5
187
py
Python
src/calculate_features/helpers/features/size.py
flysoso/NetAna-Complex-Network-Analysis
3dd44a00f8af0cffb421e3d85b60bd46b22d99fe
[ "MIT" ]
3
2021-03-13T11:30:51.000Z
2021-07-26T11:26:23.000Z
src/calculate_features/helpers/features/size.py
flysoso/NetAna-Complex-Network-Analysis
3dd44a00f8af0cffb421e3d85b60bd46b22d99fe
[ "MIT" ]
null
null
null
src/calculate_features/helpers/features/size.py
flysoso/NetAna-Complex-Network-Analysis
3dd44a00f8af0cffb421e3d85b60bd46b22d99fe
[ "MIT" ]
null
null
null
''' Total number of edges n the graph (graph size): m = |E| ''' import networkx as nx def calculate(network): try: n = network.size() except: n = 0 return n
13.357143
47
0.561497
27
187
3.888889
0.777778
0
0
0
0
0
0
0
0
0
0
0.007874
0.320856
187
13
48
14.384615
0.818898
0.294118
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.428571
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
24bb8e6d53208893e062f09f61a06aca64c5842d
7,039
py
Python
kr_fashion_mnist.py
mjbhobe/dl-keras
1d422de745c077ad7aa0638b817d94627b89e94b
[ "MIT" ]
null
null
null
kr_fashion_mnist.py
mjbhobe/dl-keras
1d422de745c077ad7aa0638b817d94627b89e94b
[ "MIT" ]
null
null
null
kr_fashion_mnist.py
mjbhobe/dl-keras
1d422de745c077ad7aa0638b817d94627b89e94b
[ "MIT" ]
null
null
null
<<<<<<< HEAD #!/usr/bin/env python """ Fashion MNIST multiclass classification using Tensorflow 2.0 & Keras """ import sys import os import random # import pathlib # import json # import glob # import tarfile import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns from sklearn.model...
35.371859
118
0.683478
1,018
7,039
4.521611
0.182711
0.023463
0.033022
0.03476
0.49685
0.427113
0.373669
0.33804
0.297849
0.264393
0
0.030619
0.183407
7,039
198
119
35.550505
0.770181
0.050717
0
0.352113
0
0.014085
0.175688
0.011621
0
0
0
0
0
0
null
null
0
0.190141
null
null
0.126761
0
0
0
null
0
0
0
0
0
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
24bc2f30e774faab4ceb7d540f5a41e160c0d5eb
1,194
py
Python
02 - Estruturas de controle/ex044.py
epedropaulo/MyPython
cdb3602a01aedac26047f5b11a36a2262d4cc2ea
[ "MIT" ]
null
null
null
02 - Estruturas de controle/ex044.py
epedropaulo/MyPython
cdb3602a01aedac26047f5b11a36a2262d4cc2ea
[ "MIT" ]
null
null
null
02 - Estruturas de controle/ex044.py
epedropaulo/MyPython
cdb3602a01aedac26047f5b11a36a2262d4cc2ea
[ "MIT" ]
null
null
null
cores = ['\033[m', '\033[31m', '\033[34m'] print(f'{cores[1]}-=-' * 7) print(f'{cores[2]}FORMAS DE PAGAMENTO.') print(f'{cores[1]}-=-{cores[0]}' * 7) print('') preco = float(input('Quanto é o produto? R$')) print('') print(f'Digite [{cores[2]} 1 {cores[0]}] para {cores[2]}sim{cores[0]}. \n' f'Digite [{c...
35.117647
110
0.551089
182
1,194
3.615385
0.302198
0.082067
0.072948
0.091185
0.322188
0.276596
0.218845
0.218845
0.218845
0.218845
0
0.066089
0.226968
1,194
33
111
36.181818
0.646804
0
0
0.258065
0
0.16129
0.528854
0.08441
0
0
0
0
0
1
0
false
0
0
0
0
0.419355
0
0
0
null
0
0
0
0
0
0
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
24c07326e5d01a7bfdd252f0a8189bfff01159d3
954
py
Python
second_step/s7.py
relax-space/python-xxm
ce45c2f7d9a504ae72c9221316e2e8ef45bb7a74
[ "Apache-2.0" ]
null
null
null
second_step/s7.py
relax-space/python-xxm
ce45c2f7d9a504ae72c9221316e2e8ef45bb7a74
[ "Apache-2.0" ]
null
null
null
second_step/s7.py
relax-space/python-xxm
ce45c2f7d9a504ae72c9221316e2e8ef45bb7a74
[ "Apache-2.0" ]
null
null
null
import pymongo """ mongo数据库的增删改查 1.首先本地启动mongodb: docker-compose -f second_step/example/mongo.yml up 2.运行以下命令 python.exe .\second_step\s7.py 参考:https://www.runoob.com/python3/python-mongodb.html """ class Model: def __init__(self): client = pymongo.MongoClient("mongodb://localhost:27017") self.db...
23.85
67
0.616352
123
954
4.642276
0.504065
0.078809
0.049037
0.077058
0
0
0
0
0
0
0
0.024032
0.214885
954
40
68
23.85
0.738318
0
0
0
0
0
0.120936
0.03251
0
0
0
0
0
1
0.217391
false
0
0.043478
0
0.347826
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
24c0797aaba868fed0e95281470983a1565e7ddc
1,104
py
Python
tests/test_individuals/test_mixed_individual.py
alessandrolenzi/yaga
872503ad04a2831135143750bc309188e5685284
[ "MIT" ]
null
null
null
tests/test_individuals/test_mixed_individual.py
alessandrolenzi/yaga
872503ad04a2831135143750bc309188e5685284
[ "MIT" ]
null
null
null
tests/test_individuals/test_mixed_individual.py
alessandrolenzi/yaga
872503ad04a2831135143750bc309188e5685284
[ "MIT" ]
null
null
null
from yaga_ga.evolutionary_algorithm.genes import IntGene, CharGene from yaga_ga.evolutionary_algorithm.individuals import ( MixedIndividualStructure, ) def test_initialization_with_tuple(): gene_1 = CharGene() gene_2 = IntGene(lower_bound=1, upper_bound=1) individual = MixedIndividualStructure((gene_1...
31.542857
66
0.700181
145
1,104
5.117241
0.234483
0.040431
0.024259
0.059299
0.493261
0.299191
0.231806
0.231806
0.231806
0.231806
0
0.043527
0.188406
1,104
34
67
32.470588
0.784598
0
0
0.266667
0
0
0
0
0
0
0
0
0.466667
1
0.066667
false
0
0.066667
0
0.133333
0
0
0
0
null
0
0
0
0
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
24ca3c4e5464d194bfff6a0eab1acc3013f03053
3,942
py
Python
wrappers/python_2-7/runProducerCallbacksOWP.py
UpperLEFTY/worldpay-within-sdk
5651b9b4be08faa83ba46735b2ce14d5fcbb515f
[ "MIT" ]
null
null
null
wrappers/python_2-7/runProducerCallbacksOWP.py
UpperLEFTY/worldpay-within-sdk
5651b9b4be08faa83ba46735b2ce14d5fcbb515f
[ "MIT" ]
null
null
null
wrappers/python_2-7/runProducerCallbacksOWP.py
UpperLEFTY/worldpay-within-sdk
5651b9b4be08faa83ba46735b2ce14d5fcbb515f
[ "MIT" ]
null
null
null
import WPWithinWrapperImpl import WWTypes import time class TheEventListener(): def __init__(self): print "Inialised custom event listener" def beginServiceDelivery(self, serviceId, serviceDeliveryToken, unitsToSupply): try: print "OVERRIDE: event from core - onBeginServiceDelive...
46.376471
367
0.658295
386
3,942
6.665803
0.378238
0.010882
0.043529
0.108822
0.324913
0.324913
0.302371
0.274388
0.216867
0.216867
0
0.04732
0.233384
3,942
84
368
46.928571
0.804103
0.057331
0
0.263889
0
0
0.284636
0.067385
0
0
0
0
0
0
null
null
0
0.041667
null
null
0.333333
0
0
0
null
0
0
0
0
0
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
24cbbdcec4d0099362468a2b37ff9ac8e7434e62
16,415
py
Python
plugins/modules/oci_database_external_database_connector_facts.py
LaudateCorpus1/oci-ansible-collection
2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_database_external_database_connector_facts.py
LaudateCorpus1/oci-ansible-collection
2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_database_external_database_connector_facts.py
LaudateCorpus1/oci-ansible-collection
2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2020, 2022 Oracle and/or its affiliates. # This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Apache License v2.0 # See LICENSE.TXT for d...
39.083333
160
0.597807
1,639
16,415
5.827944
0.201342
0.063652
0.044493
0.054962
0.488065
0.434673
0.355737
0.286223
0.260364
0.234296
0
0.01301
0.325739
16,415
419
161
39.176611
0.850018
0.025221
0
0.343915
0
0.039683
0.794609
0.125899
0
0
0
0
0
1
0.013228
false
0.013228
0.018519
0.007937
0.047619
0.002646
0
0
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
24cf7e3644d56f23ff49cd229bf3d46253250977
7,333
py
Python
srae.py
MHHukiewitz/SRAE_pytorch
91f961f740c96cdb49739c9738ed330af59750d0
[ "MIT" ]
null
null
null
srae.py
MHHukiewitz/SRAE_pytorch
91f961f740c96cdb49739c9738ed330af59750d0
[ "MIT" ]
null
null
null
srae.py
MHHukiewitz/SRAE_pytorch
91f961f740c96cdb49739c9738ed330af59750d0
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from typing import Callable # TODO: Merging and resetting features # TODO: Plots of layer activities # TODO: Stack RAEs for deep network device = 'cuda' if torch.cuda.is_available() else 'cpu' print(f"Using {device} to train networks.") class RAEC...
47.00641
111
0.670667
857
7,333
5.556593
0.214702
0.030239
0.02352
0.0252
0.330113
0.264805
0.238975
0.143637
0.095758
0.095758
0
0.000899
0.241784
7,333
155
112
47.309677
0.855576
0.188736
0
0.117647
0
0
0.020439
0
0
0
0
0.012903
0
1
0.078431
false
0
0.039216
0
0.235294
0.009804
0
0
0
null
0
0
0
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
24e318ad9da0471c2fd9232682f9197c6401f633
1,470
py
Python
nblog/core/views.py
NestorMonroy/BlogTemplate
82dfc7eb26e8a8ff0d51f29176c3b4d537092be7
[ "MIT" ]
null
null
null
nblog/core/views.py
NestorMonroy/BlogTemplate
82dfc7eb26e8a8ff0d51f29176c3b4d537092be7
[ "MIT" ]
8
2020-07-22T02:06:35.000Z
2021-09-22T19:22:27.000Z
nblog/core/views.py
NestorMonroy/BlogTemplate
82dfc7eb26e8a8ff0d51f29176c3b4d537092be7
[ "MIT" ]
null
null
null
from rest_framework.views import APIView from rest_framework.response import Response from rest_framework.permissions import IsAuthenticated from django.views.generic import TemplateView from django.conf import settings from django.contrib.auth import get_user_model from django.core.mail import send_mail from django...
30.625
86
0.719728
189
1,470
5.470899
0.455026
0.058027
0.049323
0.044487
0.048356
0
0
0
0
0
0
0
0.17415
1,470
47
87
31.276596
0.85173
0.189796
0
0
0
0
0.117295
0
0
0
0
0
0
1
0.111111
false
0
0.333333
0
0.62963
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
24e9daf05e64fe9c921df72eaa0f285a14c9eb0b
46,318
py
Python
star_realms_cards/all_cards.py
samervin/star-realms-database
b33c311c7b4d24c04fc836e92d537e120b3a91ad
[ "MIT" ]
5
2017-02-28T16:20:54.000Z
2021-01-17T21:38:14.000Z
star_realms_cards/all_cards.py
samervin/star-realms-database
b33c311c7b4d24c04fc836e92d537e120b3a91ad
[ "MIT" ]
null
null
null
star_realms_cards/all_cards.py
samervin/star-realms-database
b33c311c7b4d24c04fc836e92d537e120b3a91ad
[ "MIT" ]
null
null
null
# Fields NAME = 'name' FLAVOR = 'flavor' FACTION = 'faction' TYPE = 'type' SHIELD = 'shield' COST = 'cost' SET = 'set' QUANTITY = 'quantity' ABILITIES = 'abilities' ALLY_ABILITIES = 'ally-abilities' SCRAP_ABILITIES = 'scrap-abilities' TRADE = 'trade' COMBAT = 'combat' AUTHORITY = 'authority' DRAW = 'draw' OPPONENT_DI...
26.742494
128
0.392353
3,760
46,318
4.715426
0.120479
0.07022
0.04467
0.058037
0.68731
0.63119
0.565764
0.46599
0.366554
0.319741
0
0.02262
0.529449
46,318
1,731
129
26.757943
0.790869
0.008031
0
0.601874
0
0.000585
0.12549
0
0
0
0
0.000578
0
1
0
false
0
0
0
0.001171
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
24efeab6a45158cc9e4fab2bb4db176e3fc1831f
1,831
py
Python
dnplab/io/vna.py
DNPLab/dnpLab
79dc347a239b4e41dc2c41342744414405b9ab33
[ "MIT" ]
null
null
null
dnplab/io/vna.py
DNPLab/dnpLab
79dc347a239b4e41dc2c41342744414405b9ab33
[ "MIT" ]
1
2020-09-03T22:07:15.000Z
2020-09-03T22:07:15.000Z
dnplab/io/vna.py
DNPLab/dnpLab
79dc347a239b4e41dc2c41342744414405b9ab33
[ "MIT" ]
null
null
null
# TODO: remove unused imports import numpy as np import os import re from matplotlib.pylab import * from .. import DNPData def import_vna(path): """Import VNA data and return dnpdata object""" x, data = import_snp(path) # Not General dnpDataObject = DNPData(data, [x], ["f"], {}) return dnpDataOb...
26.157143
86
0.551065
270
1,831
3.67037
0.37037
0.030272
0.042381
0.046418
0.139253
0.068618
0
0
0
0
0
0.044479
0.287821
1,831
69
87
26.536232
0.715491
0.127253
0
0.045455
0
0
0.075316
0
0
0
0
0.014493
0
1
0.045455
false
0
0.181818
0
0.272727
0.068182
0
0
0
null
0
0
0
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
24f2cc49b7d0a36fabb38d0adb62fb905a4ee7b2
818
py
Python
parkings/api/utils.py
klemmari1/parkkihubi
93218c6046c0910e8a4c723dc7128c6eec085b8c
[ "MIT" ]
12
2016-11-29T15:13:10.000Z
2021-06-12T06:45:38.000Z
parkings/api/utils.py
niuzhipeng123/parkkihubi
93218c6046c0910e8a4c723dc7128c6eec085b8c
[ "MIT" ]
154
2016-11-30T09:07:58.000Z
2022-02-12T08:29:36.000Z
parkings/api/utils.py
niuzhipeng123/parkkihubi
93218c6046c0910e8a4c723dc7128c6eec085b8c
[ "MIT" ]
15
2016-11-29T19:32:48.000Z
2022-01-05T11:31:39.000Z
import dateutil.parser from django.utils import timezone from rest_framework.exceptions import ValidationError def parse_timestamp_or_now(timestamp_string): """ Parse given timestamp string or return current time. If the timestamp string is falsy, return current time, otherwise try to parse the strin...
30.296296
78
0.753056
98
818
6.142857
0.459184
0.149502
0.076412
0
0
0
0
0
0
0
0
0
0.182152
818
26
79
31.461538
0.899851
0.356968
0
0
0
0
0.042857
0
0
0
0
0
0
1
0.166667
false
0
0.25
0
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
24fef5c017b12d36f8c807e4e25303349680b1f5
11,075
py
Python
combine.py
ychenbioinfo/msg
9b331c4b370bee9b8ff5bc63f4dbafe95af4045e
[ "MIT" ]
null
null
null
combine.py
ychenbioinfo/msg
9b331c4b370bee9b8ff5bc63f4dbafe95af4045e
[ "MIT" ]
1
2020-05-31T00:18:38.000Z
2020-06-09T16:22:22.000Z
combine.py
ychenbioinfo/msg
9b331c4b370bee9b8ff5bc63f4dbafe95af4045e
[ "MIT" ]
3
2020-03-02T15:31:44.000Z
2021-09-06T13:38:41.000Z
""" Combines each individual's hmmprob.RData file into two summary files (linearly interpolating missing values) Usage: python msg/combine.py msg/combine.py -d /groups/stern/home/sternd/svb_mausec2/hmm_fit """ import os import sys import csv import glob import optparse import subprocess import uuid import gc impor...
43.093385
171
0.603973
1,518
11,075
4.291831
0.278656
0.01013
0.013507
0.018573
0.196623
0.184037
0.176055
0.149041
0.144589
0.116347
0
0.015988
0.277111
11,075
257
172
43.093385
0.797777
0.237652
0
0.246753
0
0.012987
0.177234
0.019316
0
0
0
0
0
0
null
null
0
0.071429
null
null
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
700a7a7ac2b99871fd48fa01175c631adfa888ac
1,405
py
Python
sbr_ui/services/gateway_authentication_service.py
ajorpheus/sbr-ui
ea79ace6abb0b2c4aea8c4040c7134da9b873a4c
[ "MIT" ]
1
2019-01-11T12:34:16.000Z
2019-01-11T12:34:16.000Z
sbr_ui/services/gateway_authentication_service.py
ajorpheus/sbr-ui
ea79ace6abb0b2c4aea8c4040c7134da9b873a4c
[ "MIT" ]
2
2017-10-11T09:40:12.000Z
2018-10-17T14:06:19.000Z
sbr_ui/services/gateway_authentication_service.py
ajorpheus/sbr-ui
ea79ace6abb0b2c4aea8c4040c7134da9b873a4c
[ "MIT" ]
4
2017-10-19T09:24:57.000Z
2021-04-11T08:10:09.000Z
import logging import requests from structlog import wrap_logger from typing import Tuple from flask import current_app from sbr_ui.models.exceptions import ApiError from sbr_ui.utilities.helpers import log_api_error, base_64_encode logger = wrap_logger(logging.getLogger(__name__)) class GatewayAuthenticationServi...
33.452381
118
0.694662
174
1,405
5.436782
0.454023
0.029598
0.044397
0.042283
0
0
0
0
0
0
0
0.003646
0.219217
1,405
41
119
34.268293
0.858706
0.019217
0
0
0
0
0.137355
0.015262
0
0
0
0
0
1
0.032258
false
0.064516
0.225806
0
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
0
0
0
0
0
1
0
0
0
0
0
1
700af1ca274ca41601c83abc523b13a49768f5d9
4,072
py
Python
containers/mobilenet/dataset/scripts/tar_to_record.py
AustinShalit/ml-react-app
b9c1e918cc70db931b66d2a5358fc65dd2f8a32d
[ "BSD-3-Clause" ]
18
2019-11-18T03:16:46.000Z
2022-03-12T19:33:35.000Z
containers/mobilenet/dataset/scripts/tar_to_record.py
AustinShalit/ml-react-app
b9c1e918cc70db931b66d2a5358fc65dd2f8a32d
[ "BSD-3-Clause" ]
250
2019-08-29T04:27:11.000Z
2022-02-27T07:46:57.000Z
containers/mobilenet/dataset/scripts/tar_to_record.py
AustinShalit/ml-react-app
b9c1e918cc70db931b66d2a5358fc65dd2f8a32d
[ "BSD-3-Clause" ]
8
2020-07-06T23:02:18.000Z
2020-12-28T19:57:29.000Z
import sys, os, shutil, tarfile, argparse, zipfile import json_to_csv, generate_tfrecord, parse_meta, parse_hyperparams from os.path import join, splitext, split def main(dataset_paths, percent_eval, directory): ROOT_PATH, PATH_EXT = os.path.splitext(dataset_paths) DATASET_NAME = ROOT_PATH.split('/')[-1] ...
41.979381
190
0.645138
532
4,072
4.755639
0.270677
0.06087
0.049802
0.06087
0.42332
0.364822
0.336364
0.239526
0.180237
0.180237
0
0.00454
0.242633
4,072
96
191
42.416667
0.815824
0.116896
0
0.0625
1
0.015625
0.207647
0.025119
0
0
0
0
0
1
0.015625
false
0
0.0625
0
0.078125
0.15625
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
700bb5ea7ad03eb72d82e94c8531319523f3f756
1,290
py
Python
setup.py
caozhichongchong/traits_finder
a9ab41d3f5b4ba57db76acf66ce994fe032bba63
[ "MIT" ]
1
2019-10-22T18:45:10.000Z
2019-10-22T18:45:10.000Z
setup.py
caozhichongchong/traits_finder
a9ab41d3f5b4ba57db76acf66ce994fe032bba63
[ "MIT" ]
null
null
null
setup.py
caozhichongchong/traits_finder
a9ab41d3f5b4ba57db76acf66ce994fe032bba63
[ "MIT" ]
null
null
null
from setuptools import setup setup( name="traits_finder", packages=['traits_finder'], version="1.6", description="search and summarize traits in genomes and metagenomes", author='Anni Zhang', author_email='anniz44@mit.edu', url='https://github.com/caozhichongchong/traits_finder', keywor...
34.864865
86
0.63876
126
1,290
6.349206
0.666667
0.12
0.045
0.06
0
0
0
0
0
0
0
0.006783
0.2
1,290
36
87
35.833333
0.768411
0.233333
0
0
0
0
0.417941
0.027523
0
0
0
0
0
1
0
true
0
0.037037
0
0.037037
0
0
0
0
null
0
0
0
0
0
0
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
7011adf6d99d60a1134fe13c1218b620417c4b22
1,162
py
Python
atcoder/abc/abc140_d.py
knuu/competitive-programming
16bc68fdaedd6f96ae24310d697585ca8836ab6e
[ "MIT" ]
1
2018-11-12T15:18:55.000Z
2018-11-12T15:18:55.000Z
atcoder/abc/abc140_d.py
knuu/competitive-programming
16bc68fdaedd6f96ae24310d697585ca8836ab6e
[ "MIT" ]
null
null
null
atcoder/abc/abc140_d.py
knuu/competitive-programming
16bc68fdaedd6f96ae24310d697585ca8836ab6e
[ "MIT" ]
null
null
null
N, K = map(int, input().split()) S = input() intervals = [] idx = 0 dirs = [] while idx < N: start = idx dirs.append([0, 1][S[idx] == "R"]) while idx < N and S[idx] == S[start]: idx += 1 intervals.append(idx - start) assert(sum(intervals) == N) def calc_ans(result_dirs): ans = N if re...
21.924528
60
0.567986
196
1,162
3.19898
0.204082
0.255183
0.044657
0.063796
0.376396
0.3126
0.3126
0.3126
0.3126
0.3126
0
0.044471
0.283993
1,162
52
61
22.346154
0.709135
0
0
0.304348
0
0
0.000861
0
0
0
0
0
0.021739
1
0.021739
false
0
0
0
0.043478
0.021739
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
7014c37aa45826fd1bfa29efeba49069aeabd98a
2,101
py
Python
Hack-Message/hack_message.py
yashk2810/Alert-on-Intrusion
202900d85e87fd45a3749bba2b63da916e7166cb
[ "MIT" ]
5
2017-07-15T20:39:34.000Z
2020-12-15T18:18:14.000Z
Hack-Message/hack_message.py
yashk2810/Alert-on-Intrusion
202900d85e87fd45a3749bba2b63da916e7166cb
[ "MIT" ]
null
null
null
Hack-Message/hack_message.py
yashk2810/Alert-on-Intrusion
202900d85e87fd45a3749bba2b63da916e7166cb
[ "MIT" ]
2
2017-07-16T10:27:15.000Z
2020-12-29T10:00:41.000Z
#!/usr/bin/env python import urllib2,re,pygeoip,json import os import twilio from twilio.rest import TwilioRestClient import pygame import pygame.camera TWILIO_ACCOUNT_SID="YOUR_ACCOUNT_SID" TWILIO_AUTH_TOKEN="YOUR_AUTH_TOKEN" def main (): new=open("/home/yash/auth",'r') for i in new: length1=len(i) new.close()...
25.011905
106
0.667301
328
2,101
4.146341
0.426829
0.035294
0.044118
0.035294
0.139706
0.072059
0.072059
0.033824
0
0
0
0.009901
0.134698
2,101
83
107
25.313253
0.738174
0.029986
0
0.029412
0
0
0.274693
0.044226
0
0
0
0
0
0
null
null
0.014706
0.088235
null
null
0.014706
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
701559743cbf12f37802d74219a1bafebbe450d2
385
py
Python
ticketbase/codebase/migrations/0005_ticket_is_closed.py
Hipo/codebase-ultra
6dbb8424809350cced5926f491da0ee9fe0b32f4
[ "MIT" ]
null
null
null
ticketbase/codebase/migrations/0005_ticket_is_closed.py
Hipo/codebase-ultra
6dbb8424809350cced5926f491da0ee9fe0b32f4
[ "MIT" ]
2
2019-09-27T15:29:33.000Z
2020-06-05T23:10:16.000Z
ticketbase/codebase/migrations/0005_ticket_is_closed.py
Hipo/codebase-ultra
6dbb8424809350cced5926f491da0ee9fe0b32f4
[ "MIT" ]
null
null
null
# Generated by Django 2.2.4 on 2019-09-27 09:59 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('codebase', '0004_ticket_status'), ] operations = [ migrations.AddField( model_name='ticket', name='is_closed', ...
20.263158
52
0.597403
41
385
5.512195
0.780488
0
0
0
0
0
0
0
0
0
0
0.069343
0.288312
385
18
53
21.388889
0.755474
0.116883
0
0
1
0
0.121302
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7018756d70bfe6692637d7fa914758da97e27df8
851
py
Python
python/html-color-converter.py
ModestTG/scripts
91517b1238267185852816f73e7f7221012faa8b
[ "MIT" ]
null
null
null
python/html-color-converter.py
ModestTG/scripts
91517b1238267185852816f73e7f7221012faa8b
[ "MIT" ]
null
null
null
python/html-color-converter.py
ModestTG/scripts
91517b1238267185852816f73e7f7221012faa8b
[ "MIT" ]
null
null
null
from __future__ import print_function, unicode_literals, division def rgb_to_hex(value): rgb_values = value.split(",") rgb_values = [int(i) for i in rgb_values] print(rgb_values) converted_values = [] for j, value in enumerate(rgb_values): converted_values[j] = hex(rgb_values[j]) print...
37
159
0.680376
128
851
4.367188
0.492188
0.096601
0.028623
0.085868
0.250447
0.250447
0.250447
0.250447
0.250447
0.250447
0
0.010145
0.189189
851
22
160
38.681818
0.8
0
0
0
0
0.055556
0.433608
0
0
0
0
0
0
1
0.055556
false
0.055556
0.111111
0
0.166667
0.222222
0
0
0
null
0
0
0
0
0
0
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
701fe0fa1299b3d33a8a733e657cfe215053df7f
530
py
Python
src/pyff/exceptions.py
dnmvisser/pyFF
a17e5435392f1bef5a3d5854fbd2ebbdbfa2dfbe
[ "BSD-2-Clause-FreeBSD" ]
15
2018-03-09T04:29:32.000Z
2021-05-27T11:29:43.000Z
src/pyff/exceptions.py
dnmvisser/pyFF
a17e5435392f1bef5a3d5854fbd2ebbdbfa2dfbe
[ "BSD-2-Clause-FreeBSD" ]
113
2018-02-09T10:10:26.000Z
2022-03-10T23:40:12.000Z
src/pyff/exceptions.py
dnmvisser/pyFF
a17e5435392f1bef5a3d5854fbd2ebbdbfa2dfbe
[ "BSD-2-Clause-FreeBSD" ]
23
2018-04-19T19:25:03.000Z
2022-03-09T23:24:03.000Z
__author__ = 'leifj' import six class PyffException(BaseException): def __init__(self, msg, wrapped=None, data=None): self._wrapped = wrapped self._data = data if six.PY2: super(self.__class__, self).__init__(msg) else: super().__init__(msg) def raise_w...
18.928571
53
0.667925
53
530
6.226415
0.433962
0.066667
0
0
0
0
0
0
0
0
0
0.0025
0.245283
530
27
54
19.62963
0.8225
0
0
0.166667
0
0
0.009434
0
0
0
0
0
0
1
0.111111
false
0.166667
0.055556
0
0.388889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
702db837ce7b2a861a3881c1c35306cb72ed9f18
1,018
py
Python
post/migrations/0002_auto_20180224_1857.py
bozburak/Blog_With_Django
beef62228ac7ae5dd445722f078b7fbb6d243556
[ "MIT" ]
null
null
null
post/migrations/0002_auto_20180224_1857.py
bozburak/Blog_With_Django
beef62228ac7ae5dd445722f078b7fbb6d243556
[ "MIT" ]
null
null
null
post/migrations/0002_auto_20180224_1857.py
bozburak/Blog_With_Django
beef62228ac7ae5dd445722f078b7fbb6d243556
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2018-02-24 15:57 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('post', '0001_initial'), ] operations = [ migrations.AddField( mod...
27.513514
84
0.575639
100
1,018
5.69
0.61
0.063269
0.091388
0.119508
0.195079
0.195079
0
0
0
0
0
0.056259
0.301572
1,018
36
85
28.277778
0.744023
0.064833
0
0.37931
1
0
0.122234
0
0
0
0
0
0
1
0
false
0
0.068966
0
0.172414
0
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
703334c143a7243dc2a0fd47d0f018a2deff1be9
374
py
Python
tests/util.py
Codesflow-Simon/Poker-framework
1b830881292760262db1a7d3f1ac63f6053fcb38
[ "Apache-2.0" ]
null
null
null
tests/util.py
Codesflow-Simon/Poker-framework
1b830881292760262db1a7d3f1ac63f6053fcb38
[ "Apache-2.0" ]
null
null
null
tests/util.py
Codesflow-Simon/Poker-framework
1b830881292760262db1a7d3f1ac63f6053fcb38
[ "Apache-2.0" ]
null
null
null
import os import sys sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '../src'))) from card import Card, suit_num_dict, rank_num_dict from itertools import product deck = [] suits = [] ranks = [] for suit, rank in product(suit_num_dict.keys(),rank_num_dict.keys()): deck.append(Card(suit,...
24.933333
86
0.716578
60
374
4.266667
0.433333
0.109375
0.085938
0
0
0
0
0
0
0
0
0.003077
0.131016
374
14
87
26.714286
0.784615
0
0
0
0
0
0.016043
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
7037cdc502e77e1d654ebfed7f14b53b7b8d327e
815
py
Python
slnee_quality/slnee_quality/doctype/strategic_plan/strategic_plan.py
erpcloudsystems/slnee_quality
ad81f029a795ee073768c7c933cd91e61b6df059
[ "MIT" ]
null
null
null
slnee_quality/slnee_quality/doctype/strategic_plan/strategic_plan.py
erpcloudsystems/slnee_quality
ad81f029a795ee073768c7c933cd91e61b6df059
[ "MIT" ]
null
null
null
slnee_quality/slnee_quality/doctype/strategic_plan/strategic_plan.py
erpcloudsystems/slnee_quality
ad81f029a795ee073768c7c933cd91e61b6df059
[ "MIT" ]
null
null
null
# Copyright (c) 2021, erpcloud.systems and contributors # For license information, please see license.txt # import frappe from __future__ import unicode_literals import frappe from frappe.utils import getdate, nowdate from frappe import _ from frappe.model.document import Document from frappe.utils import cstr, get_d...
30.185185
106
0.75092
111
815
5.396396
0.630631
0.066778
0.053422
0.070117
0
0
0
0
0
0
0
0.007257
0.154601
815
26
107
31.346154
0.862119
0.146012
0
0
0
0
0.332851
0.050651
0
0
0
0
0
1
0.105263
false
0
0.315789
0
0.473684
0
0
0
0
null
0
0
0
0
0
0
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
703b0559408c348d4e5262944a2e60fe7bb37922
616
py
Python
_note_/_xml_.py
By2048/_python_
be57738093676a1273e6f69232723669e408986e
[ "MIT" ]
2
2017-02-16T14:50:33.000Z
2018-02-03T01:49:06.000Z
_note_/_xml_.py
By2048/_python_
be57738093676a1273e6f69232723669e408986e
[ "MIT" ]
null
null
null
_note_/_xml_.py
By2048/_python_
be57738093676a1273e6f69232723669e408986e
[ "MIT" ]
null
null
null
from xml.etree.ElementTree import parse def main(): with open("T:\\keymap.xml", 'r', encoding='utf-8') as file: data = parse(file).getroot() for action in data.findall('action'): if not action.findall('keyboard-shortcut'): continue print(action.attrib['id'].lstrip('$')) ...
29.333333
63
0.592532
71
616
5.028169
0.56338
0.072829
0.117647
0.162465
0
0
0
0
0
0
0
0.00216
0.248377
616
20
64
30.8
0.768898
0
0
0
0
0
0.228896
0
0
0
0
0
0
1
0.066667
false
0
0.066667
0
0.133333
0.2
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
703e9a046b7fec0e6b48146b1602c4a4785e0dde
2,674
py
Python
quizzes/00.organize.me/Cracking the Coding Interview/18-8.py
JiniousChoi/encyclopedia-in-code
77bc551a03a2a3e3808e50016ece14adb5cfbd96
[ "MIT" ]
2
2018-07-20T10:15:49.000Z
2018-07-20T10:16:54.000Z
quizzes/00.organize.me/Cracking the Coding Interview/18-8.py
JiniousChoi/encyclopedia-in-code
77bc551a03a2a3e3808e50016ece14adb5cfbd96
[ "MIT" ]
2
2018-06-26T09:12:44.000Z
2019-12-18T00:09:14.000Z
quizzes/00.organize.me/Cracking the Coding Interview/18-8.py
JiniousChoi/encyclopedia-in-code
77bc551a03a2a3e3808e50016ece14adb5cfbd96
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ''' 문자열 s와 s보다 짧은 길이를 갖는 문자열의 배열인 T가 주어졌을 때, T에 있는 각 문자열을 s에서 찾는 메서드를 작성하라.''' import unittest class TreeRoot: def __init__(self, s): self.root = SuffixTreeNode() root = self.root for i in range(len(s)): root.insertString(s[i:], i) def search(sel...
29.065217
83
0.563201
335
2,674
4.444776
0.298507
0.080591
0.140363
0.184688
0.388852
0.238415
0.238415
0.238415
0.221625
0.221625
0
0.009189
0.308153
2,674
91
84
29.384615
0.795676
0.324981
0
0.170213
0
0
0.023121
0
0
0
0
0
0.212766
1
0.12766
false
0
0.021277
0.021277
0.319149
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
7048bea1cfbcb67abd2e1e0039e08ba402e74cfb
555
py
Python
app/core/parser/parser.py
SLB974/GrandPyBot-dev
7a0268d4ffa58c37eed37253c6afb00874dbabe4
[ "MIT" ]
null
null
null
app/core/parser/parser.py
SLB974/GrandPyBot-dev
7a0268d4ffa58c37eed37253c6afb00874dbabe4
[ "MIT" ]
null
null
null
app/core/parser/parser.py
SLB974/GrandPyBot-dev
7a0268d4ffa58c37eed37253c6afb00874dbabe4
[ "MIT" ]
null
null
null
# coding: utf-8 from unidecode import unidecode import re from .utils import stop_words class Parser: """Parse user's query""" def __init__(self, user_query): self.user_query = user_query def clean_string(self): """remove accents, upper and punctuation and split into list ...
25.227273
67
0.672072
76
555
4.75
0.592105
0.099723
0.108033
0
0
0
0
0
0
0
0
0.002375
0.241441
555
21
68
26.428571
0.855107
0.263063
0
0
0
0
0.007853
0
0
0
0
0
0
1
0.2
false
0
0.3
0
0.7
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
7049bf7a6df29a740eaf03bb5c922d32c3f253d2
9,890
py
Python
python/tools/cepton_georeference.py
frank-qcd-qk/cepton_sdk_redist
bb77dad922fecc0f54a44889dac588674d10d384
[ "BSD-3-Clause" ]
23
2018-03-24T17:47:35.000Z
2021-11-02T01:12:36.000Z
python/tools/cepton_georeference.py
frank-qcd-qk/cepton_sdk_redist
bb77dad922fecc0f54a44889dac588674d10d384
[ "BSD-3-Clause" ]
24
2017-06-28T21:09:05.000Z
2022-01-03T19:44:03.000Z
python/tools/cepton_georeference.py
frank-qcd-qk/cepton_sdk_redist
bb77dad922fecc0f54a44889dac588674d10d384
[ "BSD-3-Clause" ]
13
2017-04-10T09:33:44.000Z
2022-02-16T16:02:21.000Z
#!/usr/bin/env python3 """ Sample script to combine LiDAR data to generate point cloud. """ import argparse import datetime import json import os.path import matplotlib.pyplot import numpy import pytz import scipy.interpolate import scipy.spatial.transform import utm from mpl_toolkits.mplot3d import Axes3D import ce...
38.784314
89
0.627199
1,121
9,890
5.34612
0.21231
0.02553
0.025029
0.01752
0.227766
0.124479
0.069748
0.069748
0.050058
0.028033
0
0.013499
0.250961
9,890
254
90
38.937008
0.795491
0.135794
0
0.063218
1
0
0.053202
0.002589
0
0
0
0
0.022989
1
0.034483
false
0
0.091954
0.011494
0.155172
0.005747
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
704e676f538c512c447f7c63b1407ce304dcfe8b
576
py
Python
test/swift_project_test.py
Dan2552/SourceKittenSubl
9fbb849715867c8b349c4c2f0bd8793b854d9ef4
[ "MIT" ]
163
2017-01-06T10:01:07.000Z
2017-12-29T14:12:22.000Z
test/swift_project_test.py
Dan2552/SourceKittenSubl
9fbb849715867c8b349c4c2f0bd8793b854d9ef4
[ "MIT" ]
18
2016-12-20T22:02:41.000Z
2018-01-04T12:59:51.000Z
test/swift_project_test.py
Dan2552/SourceKittenSubl
9fbb849715867c8b349c4c2f0bd8793b854d9ef4
[ "MIT" ]
5
2017-01-20T15:30:30.000Z
2017-11-29T07:03:39.000Z
from src import swift_project from helpers import path_helper import unittest class TestSourceKitten(unittest.TestCase): # Test with a simple project directory # (i.e. without xcodeproj) def test_source_files_simple_project(self): project_directory = path_helper.monkey_example_directory() ...
30.315789
67
0.708333
63
576
6.238095
0.52381
0.203562
0
0
0
0
0
0
0
0
0
0
0.213542
576
18
68
32
0.86755
0.105903
0
0
0
0
0.050781
0
0
0
0
0
0.083333
1
0.083333
false
0
0.25
0
0.416667
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
704ea4d0e032022cda7b96012af595595252e0b8
540
py
Python
pymodaq_plugins/daq_viewer_plugins/plugins_2D/daq_2Dviewer_AndorCCD.py
SofyMeu/pymodaq_plugins
42aff578063de9f0e15467eda6d4fb4225524e76
[ "CECILL-B" ]
null
null
null
pymodaq_plugins/daq_viewer_plugins/plugins_2D/daq_2Dviewer_AndorCCD.py
SofyMeu/pymodaq_plugins
42aff578063de9f0e15467eda6d4fb4225524e76
[ "CECILL-B" ]
null
null
null
pymodaq_plugins/daq_viewer_plugins/plugins_2D/daq_2Dviewer_AndorCCD.py
SofyMeu/pymodaq_plugins
42aff578063de9f0e15467eda6d4fb4225524e76
[ "CECILL-B" ]
null
null
null
from pymodaq_plugins.hardware.andor.daq_AndorSDK2 import DAQ_AndorSDK2 class DAQ_2DViewer_AndorCCD(DAQ_AndorSDK2): """ =============== ================== =============== ================== See Also -------- utility_classes.DAQ_Viewer_base """ control_type = "camer...
25.714286
100
0.572222
53
540
5.396226
0.622642
0.125874
0.132867
0
0
0
0
0
0
0
0
0.011655
0.205556
540
20
101
27
0.655012
0.298148
0
0
0
0
0.018405
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.833333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
704f9ff721a384dc5175205a7e3dcce4b41f209f
543
py
Python
doc/rexi/strategies_for_solving_rexi_terms/helmholtz_problem_fault_tolerance.py
valentinaschueller/sweet
27e99c7a110c99deeadee70688c186d82b39ac90
[ "MIT" ]
6
2017-11-20T08:12:46.000Z
2021-03-11T15:32:36.000Z
doc/rexi/strategies_for_solving_rexi_terms/helmholtz_problem_fault_tolerance.py
valentinaschueller/sweet
27e99c7a110c99deeadee70688c186d82b39ac90
[ "MIT" ]
4
2018-02-02T21:46:33.000Z
2022-01-11T11:10:27.000Z
doc/rexi/strategies_for_solving_rexi_terms/helmholtz_problem_fault_tolerance.py
valentinaschueller/sweet
27e99c7a110c99deeadee70688c186d82b39ac90
[ "MIT" ]
12
2016-03-01T18:33:34.000Z
2022-02-08T22:20:31.000Z
#! /usr/bin/env python3 import math a_list = [ -0.86304 + 0j, -0.86304 + 1j, -0.86304 + 10j, -0.86304 + 100j, -0.86304 + 1000j ] f = 1.0 g = 1.0 eta0_hat = 1.0 u0_hat = 1.0 v0_hat = 0.5 eta_bar = 1.0 for a in a_list: for k in [0.01, 0.1, 1.0]: # for k in [0.1]: lhs = (a*a+f*f)+g*eta_bar*(2.0*math.pi*...
18.1
136
0.543278
128
543
2.179688
0.273438
0.043011
0.064516
0.086022
0.11828
0.086022
0.086022
0
0
0
0
0.192488
0.21547
543
29
137
18.724138
0.462441
0.069982
0
0
0
0
0.023857
0
0
0
0
0
0
1
0
false
0
0.052632
0
0.052632
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
70516a89f84c2b7f706220aac55c3cd2ee6f5fbb
1,088
py
Python
cc_backend_lib/models/country.py
prio-data/cc_backend_lib
7daa3c38d96e9063074367ea0873e39d7544e2b7
[ "MIT" ]
null
null
null
cc_backend_lib/models/country.py
prio-data/cc_backend_lib
7daa3c38d96e9063074367ea0873e39d7544e2b7
[ "MIT" ]
null
null
null
cc_backend_lib/models/country.py
prio-data/cc_backend_lib
7daa3c38d96e9063074367ea0873e39d7544e2b7
[ "MIT" ]
null
null
null
from typing import List, Optional from pydantic import BaseModel from geojson_pydantic import features, geometries class Country(features.Feature): class Meta: QUERY_ORDER = ["gwno","name","iso2c","shape"] properties: "CountryProperties" @classmethod def from_row(cls, gwno: int, ...
24.727273
53
0.587316
95
1,088
6.673684
0.431579
0.044164
0.100946
0.044164
0
0
0
0
0
0
0
0.006897
0.33364
1,088
43
54
25.302326
0.867586
0
0
0
0
0
0.032199
0
0
0
0
0
0
1
0.029412
false
0
0.088235
0.029412
0.558824
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
705c2728536288476866a22d607cf4eb8f1973d5
2,252
py
Python
vietnamese_utils.py
khiemdoan/aivivn_vietnamese_tone_prediction
eaa69e9da819dbbdcf76e77b9ab34786e2a13cd5
[ "MIT" ]
1
2021-12-08T05:09:01.000Z
2021-12-08T05:09:01.000Z
vietnamese_utils.py
khiemdoan/aivivn_vietnamese_tone_prediction
eaa69e9da819dbbdcf76e77b9ab34786e2a13cd5
[ "MIT" ]
null
null
null
vietnamese_utils.py
khiemdoan/aivivn_vietnamese_tone_prediction
eaa69e9da819dbbdcf76e77b9ab34786e2a13cd5
[ "MIT" ]
null
null
null
import re import string uni_chars_l = 'áàảãạâấầẩẫậăắằẳẵặđèéẻẽẹêếềểễệíìỉĩịóòỏõọôốồổỗộơớờởỡợúùủũụưứừửữựýỳỷỹỵ' uni_chars_u = 'ÁÀẢÃẠÂẤẦẨẪẬĂẮẰẲẴẶĐÈÉẺẼẸÊẾỀỂỄỆÍÌỈĨỊÓÒỎÕỌÔỐỒỔỖỘƠỚỜỞỠỢÚÙỦŨỤƯỨỪỬỮỰÝỲỶỸỴ' AEIOUYD = ['a', 'e', 'i', 'o', 'u', 'y', 'd'] A_FAMILY = list('aáàảãạăắằẳẵặâấầẩẫậ') E_FAMILY = list('eéèẻẽẹêếềểễệ') I_FAMILY =...
29.631579
86
0.515098
351
2,252
3.153846
0.236467
0.02168
0.03252
0.04336
0.31888
0.308943
0.308943
0.308943
0.308943
0.205962
0
0.124022
0.205151
2,252
75
87
30.026667
0.494413
0
0
0.433333
0
0
0.215364
0.08659
0.033333
0
0
0
0
1
0.066667
false
0
0.033333
0.016667
0.183333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
70642d09116fc7821246116825d1fa99c4ddd0b6
3,179
py
Python
thenewboston_node/business_logic/models/signed_change_request/base.py
thenewboston-developers/thenewboston-node
8f624b2dd270fd91891877a29a63eeb94f9d54a8
[ "MIT" ]
30
2021-03-05T22:08:17.000Z
2021-09-23T02:45:45.000Z
thenewboston_node/business_logic/models/signed_change_request/base.py
thenewboston-developers/thenewboston-node
8f624b2dd270fd91891877a29a63eeb94f9d54a8
[ "MIT" ]
148
2021-03-05T23:37:50.000Z
2021-11-02T02:18:58.000Z
thenewboston_node/business_logic/models/signed_change_request/base.py
thenewboston-developers/thenewboston-node
8f624b2dd270fd91891877a29a63eeb94f9d54a8
[ "MIT" ]
14
2021-03-05T21:58:46.000Z
2021-10-15T17:27:52.000Z
import copy import logging from dataclasses import dataclass from typing import Any, Optional, Type, TypeVar from thenewboston_node.business_logic.exceptions import ValidationError from thenewboston_node.business_logic.models.base import BaseDataclass from thenewboston_node.core.logging import validates from thenewbos...
41.828947
119
0.738912
359
3,179
6.247911
0.334262
0.08025
0.127062
0.133304
0.299153
0.191708
0.179224
0.179224
0.138208
0.138208
0
0
0.194401
3,179
75
120
42.386667
0.87583
0.098459
0
0.111111
0
0
0.117483
0.059441
0
0
0
0.013333
0
1
0.092593
false
0
0.240741
0
0.425926
0
0
0
0
null
0
0
0
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
70659fe6a354cd91a2bbd7c8398d6cf3b91a4d25
3,546
py
Python
src/harness/grpc_pb2.py
vmagamedov/harness
0e9d64295f937aa4476dbe5f084e80a3783edce7
[ "BSD-3-Clause" ]
6
2020-03-26T16:49:54.000Z
2022-01-13T09:13:40.000Z
src/harness/grpc_pb2.py
vmagamedov/harness
0e9d64295f937aa4476dbe5f084e80a3783edce7
[ "BSD-3-Clause" ]
1
2020-03-14T16:47:51.000Z
2020-03-14T16:47:51.000Z
src/harness/grpc_pb2.py
vmagamedov/harness
0e9d64295f937aa4476dbe5f084e80a3783edce7
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: harness/grpc.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _sym...
30.834783
341
0.753807
459
3,546
5.509804
0.267974
0.047845
0.029656
0.03796
0.542507
0.42072
0.42072
0.394622
0.394622
0.394622
0
0.046267
0.116187
3,546
114
342
31.105263
0.760689
0.083192
0
0.555556
1
0.011111
0.19704
0.114709
0
0
0
0
0
1
0
false
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
70689836166c8b59298a3d31459b3dab51016669
612
py
Python
src/service/setup.py
MrMonkeyPi/monkey-pi
a55af08e17d2611914d4cac0c794603882ce3065
[ "MIT" ]
null
null
null
src/service/setup.py
MrMonkeyPi/monkey-pi
a55af08e17d2611914d4cac0c794603882ce3065
[ "MIT" ]
4
2022-03-01T04:31:26.000Z
2022-03-28T23:53:17.000Z
src/service/setup.py
MrMonkeyPi/monkey-pi
a55af08e17d2611914d4cac0c794603882ce3065
[ "MIT" ]
null
null
null
import os import shelve APP_SETTING_FILE = os.path.join(os.getcwd(), 'instance', "data", "app") CACHE_DIR = os.path.join(os.getcwd(), 'instance', 'cache') try: os.makedirs(CACHE_DIR) os.makedirs(os.path.dirname(APP_SETTING_FILE)) except OSError: pass # for item, value in os.environ.items(): # print(...
25.5
89
0.681373
97
612
4.14433
0.463918
0.11194
0.139303
0.059701
0.288557
0.288557
0.159204
0.159204
0
0
0
0
0.153595
612
23
90
26.608696
0.776062
0.112745
0
0.133333
0
0
0.090909
0
0
0
0
0
0
1
0
false
0.066667
0.133333
0
0.133333
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
706be618834dd5903b9786f3e3fbe7282b90171a
1,096
py
Python
warehouse/utils/admin_flags.py
jw/warehouse
f4a0598b7f3d7f1c3d75843ba0bf87bfb3244a3b
[ "Apache-2.0" ]
null
null
null
warehouse/utils/admin_flags.py
jw/warehouse
f4a0598b7f3d7f1c3d75843ba0bf87bfb3244a3b
[ "Apache-2.0" ]
8
2019-12-26T16:45:00.000Z
2022-03-21T22:17:13.000Z
warehouse/utils/admin_flags.py
LaurEars/warehouse
45d1e72f3a0e2411d5da4e15cc1582b84abfcfbc
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the Li...
32.235294
74
0.695255
149
1,096
5.04698
0.61745
0.079787
0.034574
0.042553
0
0
0
0
0
0
0
0.004728
0.228102
1,096
33
75
33.212121
0.884161
0.471715
0
0
0
0
0.035273
0
0
0
0
0
0
1
0.066667
false
0
0.133333
0
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
707336a6f686d42d5f0066e5265249ae12c6de86
5,875
py
Python
lib/exaproxy/icap/parser.py
oriolarcas/exaproxy
5dc732760d811fd4986f83e6dd78d29228927aec
[ "BSD-2-Clause" ]
124
2015-01-03T10:42:17.000Z
2021-12-24T05:30:25.000Z
lib/exaproxy/icap/parser.py
oriolarcas/exaproxy
5dc732760d811fd4986f83e6dd78d29228927aec
[ "BSD-2-Clause" ]
14
2015-02-06T02:21:16.000Z
2019-01-10T18:22:18.000Z
lib/exaproxy/icap/parser.py
oriolarcas/exaproxy
5dc732760d811fd4986f83e6dd78d29228927aec
[ "BSD-2-Clause" ]
25
2015-04-11T04:01:57.000Z
2021-07-21T07:46:31.000Z
#!/usr/bin/env python # encoding: utf-8 from .request import ICAPRequestFactory from .response import ICAPResponseFactory from .header import ICAPResponseHeaderFactory class ICAPParser (object): ICAPResponseHeaderFactory = ICAPResponseHeaderFactory ICAPRequestFactory = ICAPRequestFactory ICAPResponseFactory = ICAPR...
31.25
148
0.71166
756
5,875
5.406085
0.202381
0.026425
0.033276
0.019819
0.171764
0.154637
0.134573
0.081723
0.057744
0.057744
0
0.004274
0.163745
5,875
187
149
31.417112
0.8276
0.012596
0
0.212121
0
0
0.063643
0
0
0
0
0
0
0
null
null
0
0.022727
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
70798096df51116bc26b38770bc177ae45d8a148
2,243
py
Python
generate_doc_src.py
epaulson/brick-website
159d3f4de624478e993a5a46a8aacd705dacbc0a
[ "MIT" ]
null
null
null
generate_doc_src.py
epaulson/brick-website
159d3f4de624478e993a5a46a8aacd705dacbc0a
[ "MIT" ]
null
null
null
generate_doc_src.py
epaulson/brick-website
159d3f4de624478e993a5a46a8aacd705dacbc0a
[ "MIT" ]
null
null
null
from util import generate_doc_src, auto_dict from rdflib import Graph from urllib.error import URLError # Pull the latest Brick.ttl to /static/schema try: g = Graph() g.parse("https://github.com/brickschema/Brick/releases/latest/download/Brick.ttl", format="turtle") g.serialize("static/schema/Brick.ttl", f...
32.985294
128
0.618368
315
2,243
4.266667
0.231746
0.078125
0.077381
0.14881
0.615327
0.576637
0.548363
0.508929
0.508929
0.508929
0
0.060381
0.15827
2,243
67
129
33.477612
0.651483
0.293803
0
0.085714
1
0
0.566195
0.014781
0
0
0
0
0
1
0
false
0
0.085714
0
0.085714
0.028571
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
707d7a297b422c1954a5d0d3a7f4b2a2dab6f0fb
2,365
py
Python
tests/test_telemetry_full.py
cruigo93/client
662b3356c762521c9076054277d4ed81009be157
[ "MIT" ]
null
null
null
tests/test_telemetry_full.py
cruigo93/client
662b3356c762521c9076054277d4ed81009be157
[ "MIT" ]
null
null
null
tests/test_telemetry_full.py
cruigo93/client
662b3356c762521c9076054277d4ed81009be157
[ "MIT" ]
null
null
null
""" telemetry full tests. """ import platform import pytest import wandb try: from unittest import mock except ImportError: # TODO: this is only for python2 import mock def test_telemetry_finish(live_mock_server, parse_ctx): run = wandb.init() run.finish() ctx_util = parse_ctx(live_mock_server...
28.154762
88
0.687104
337
2,365
4.637982
0.237389
0.115163
0.138196
0.076775
0.621881
0.52975
0.52975
0.476008
0.359565
0.314139
0
0.020997
0.194503
2,365
83
89
28.493976
0.799475
0.083298
0
0.339623
0
0
0.057209
0
0
0
0
0.012048
0.226415
1
0.09434
false
0
0.188679
0
0.283019
0
0
0
0
null
0
0
0
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
708039b6b4d9b943cd0090ab58bff21f0054cd4d
1,016
py
Python
setup.py
istreamlabs/httpie-esni-auth
edf90f61701a7971126581651aa040a3a076d298
[ "Apache-2.0" ]
1
2017-07-25T20:05:45.000Z
2017-07-25T20:05:45.000Z
setup.py
istreamlabs/httpie-esni-auth
edf90f61701a7971126581651aa040a3a076d298
[ "Apache-2.0" ]
null
null
null
setup.py
istreamlabs/httpie-esni-auth
edf90f61701a7971126581651aa040a3a076d298
[ "Apache-2.0" ]
null
null
null
from setuptools import setup try: import multiprocessing except ImportError: pass setup( name='httpie-esni-auth', description='ESNI auth plugin for HTTPie.', long_description=open('README.md').read().strip(), version='1.0.0', author='Daniel G. Taylor', author_email='dtaylor@istreamplane...
27.459459
64
0.612205
111
1,016
5.486486
0.657658
0.091954
0.137931
0.055829
0.108374
0.108374
0.108374
0.108374
0
0
0
0.011643
0.239173
1,016
36
65
28.222222
0.776197
0
0
0.057143
0
0
0.473425
0.076772
0
0
0
0
0
1
0
true
0.028571
0.085714
0
0.085714
0
0
0
0
null
0
0
0
0
0
0
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
708454d805cf1ee729150aec853e4e70dcc08336
470
py
Python
coqconn/client.py
liyi-david/coqconn
859e7219dc28e80b3e37d373366f55dcf4e317a9
[ "MIT" ]
null
null
null
coqconn/client.py
liyi-david/coqconn
859e7219dc28e80b3e37d373366f55dcf4e317a9
[ "MIT" ]
null
null
null
coqconn/client.py
liyi-david/coqconn
859e7219dc28e80b3e37d373366f55dcf4e317a9
[ "MIT" ]
null
null
null
from .conn import CoqConnection, CoqConnectionError from .call import Add class CoqClient: def __init__(self, coqtop=None, args=[], timeout=2): self.conn = CoqConnection.connect(coqtop, args, timeout) def add(self, code): self.conn.call(Add(code)) resps = self.conn.read_until(lambda r...
26.111111
72
0.612766
61
470
4.606557
0.57377
0.113879
0
0
0
0
0
0
0
0
0
0.008671
0.26383
470
17
73
27.647059
0.803468
0
0
0
0
0
0
0
0
0
0
0
0
1
0.153846
false
0.076923
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
708aec8789a3faf4d53e3204f4f64e4575f1fe1d
499
py
Python
benchmarks/pydy_pendulum.py
Midnighter/symengine.py
7b158d20013c91d229fd574ca68e6c47e3568b37
[ "MIT" ]
133
2015-10-10T06:04:37.000Z
2022-03-23T21:20:51.000Z
benchmarks/pydy_pendulum.py
Midnighter/symengine.py
7b158d20013c91d229fd574ca68e6c47e3568b37
[ "MIT" ]
318
2015-08-24T16:36:35.000Z
2022-03-31T04:17:30.000Z
benchmarks/pydy_pendulum.py
Midnighter/symengine.py
7b158d20013c91d229fd574ca68e6c47e3568b37
[ "MIT" ]
62
2015-08-24T16:13:15.000Z
2022-01-02T01:39:17.000Z
import os import time import sys sys.path = ["../sympy", "../pydy", "../symengine.py"] + sys.path import sympy import symengine import pydy from sympy.physics.mechanics.models import n_link_pendulum_on_cart print(sympy.__file__) print(symengine.__file__) print(pydy.__file__) if (len(sys.argv) > 1): n = int(sys.a...
18.481481
66
0.711423
80
499
4.15
0.45
0.042169
0.078313
0.090361
0.114458
0
0
0
0
0
0
0.006928
0.132265
499
26
67
19.192308
0.759815
0.066132
0
0
0
0
0.073118
0
0
0
0
0
0
1
0
false
0
0.368421
0
0.368421
0.210526
0
0
0
null
0
0
0
0
0
0
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
708ee7fd5aa760f8a09977624d0f7f105c8c8c98
11,345
py
Python
Containers/Kubernetes-examples/GCP/greetings/application.py
danavaziri/Cloud
a58e0483f132c8fc216b85a8de1d8e8bb8903e34
[ "Apache-2.0" ]
null
null
null
Containers/Kubernetes-examples/GCP/greetings/application.py
danavaziri/Cloud
a58e0483f132c8fc216b85a8de1d8e8bb8903e34
[ "Apache-2.0" ]
null
null
null
Containers/Kubernetes-examples/GCP/greetings/application.py
danavaziri/Cloud
a58e0483f132c8fc216b85a8de1d8e8bb8903e34
[ "Apache-2.0" ]
null
null
null
import os import time from flask import request from flask import Flask, render_template import mysql.connector from mysql.connector import errorcode import json application = Flask(__name__) app = application def get_db_creds(): db = os.environ.get("DB", None) or os.environ.get("database", None) username ...
32.230114
209
0.6119
1,384
11,345
4.905347
0.122832
0.040065
0.030049
0.032405
0.659449
0.604949
0.587863
0.561497
0.550302
0.534983
0
0.004364
0.25271
11,345
351
210
32.321937
0.796414
0.020185
0
0.562264
0
0.011321
0.199637
0
0
0
0
0
0
1
0.056604
false
0.10566
0.056604
0
0.181132
0.271698
0
0
0
null
0
0
0
0
0
0
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
7095f6249bfb0e891c4f2f22284057c9f4c69b2c
17,117
py
Python
fssim_rqt_plugins/rqt_fssim_track_editor/src/rqt_fssim_track_editor/cone_editor.py
AhmedOsamaAgha/fssim
a256270218c85822cd30201bf5cfdbc47f4af075
[ "MIT" ]
200
2019-01-29T05:10:51.000Z
2022-03-24T09:07:08.000Z
fssim_rqt_plugins/rqt_fssim_track_editor/src/rqt_fssim_track_editor/cone_editor.py
AhmedOsamaAgha/fssim
a256270218c85822cd30201bf5cfdbc47f4af075
[ "MIT" ]
10
2019-02-02T23:09:26.000Z
2021-04-06T12:15:55.000Z
fssim_rqt_plugins/rqt_fssim_track_editor/src/rqt_fssim_track_editor/cone_editor.py
AhmedOsamaAgha/fssim
a256270218c85822cd30201bf5cfdbc47f4af075
[ "MIT" ]
103
2019-01-29T05:32:34.000Z
2022-03-18T21:31:51.000Z
# AMZ-Driverless # Copyright (c) 2018 Authors: # - Juraj Kabzan <kabzanj@gmail.com> # # 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 r...
36.73176
118
0.597126
2,419
17,117
3.998346
0.145101
0.047457
0.016543
0.024814
0.469086
0.388027
0.361352
0.32806
0.299421
0.2805
0
0.024186
0.265701
17,117
465
119
36.810753
0.745326
0.073494
0
0.234568
0
0
0.036252
0.01275
0
0
0
0
0
0
null
null
0.006173
0.030864
null
null
0.015432
0
0
0
null
0
0
0
0
0
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
7096f55a32f5389b16d82a464bfe5c3ec4beeb60
301
py
Python
tests/test_base.py
youngsoul/PyBlynkRestApi
907473413e444958d44c081b5140fb99623e6684
[ "Unlicense" ]
null
null
null
tests/test_base.py
youngsoul/PyBlynkRestApi
907473413e444958d44c081b5140fb99623e6684
[ "Unlicense" ]
null
null
null
tests/test_base.py
youngsoul/PyBlynkRestApi
907473413e444958d44c081b5140fb99623e6684
[ "Unlicense" ]
1
2017-05-21T20:33:48.000Z
2017-05-21T20:33:48.000Z
import unittest from pyblynkrestapi.PyBlynkRestApi import PyBlynkRestApi class TestBase(unittest.TestCase): def __init__(self,*args, **kwargs): super(TestBase, self).__init__(*args, **kwargs) self.auth_token = '' self.blynk = PyBlynkRestApi(auth_token=self.auth_token)
25.083333
63
0.717608
33
301
6.212121
0.484848
0.131707
0.126829
0
0
0
0
0
0
0
0
0
0.172757
301
11
64
27.363636
0.823293
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1