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
c0f7dda5b4a6f2d6821cda83bdbbc4df0ffdc8b9
708
py
Python
pyalgo/sort/merge_sort.py
4RCAN3/PyAlgo
284c98aa74b1d9d55b2c64ead6e100b5cc68aa4e
[ "MIT" ]
1
2021-03-06T15:35:08.000Z
2021-03-06T15:35:08.000Z
pyalgo/sort/merge_sort.py
4RCAN3/PyAlgo
284c98aa74b1d9d55b2c64ead6e100b5cc68aa4e
[ "MIT" ]
null
null
null
pyalgo/sort/merge_sort.py
4RCAN3/PyAlgo
284c98aa74b1d9d55b2c64ead6e100b5cc68aa4e
[ "MIT" ]
null
null
null
''' module for implementation of merge sort ''' def merge_sort(arr: list): if len(arr) > 1: mid = len(arr) // 2 L = arr[:mid] R = arr[mid:] merge_sort(L) merge_sort(R) i, j, k = 0, 0, 0 while (i < len(L) and j < len(R)): if (L[i] < R[j])...
14.16
42
0.327684
95
708
2.410526
0.294737
0.157205
0.039301
0.087336
0.157205
0.157205
0.087336
0.087336
0
0
0
0.047198
0.521186
708
50
43
14.16
0.628319
0.055085
0
0.44
0
0
0
0
0
0
0
0
0
1
0.04
false
0
0
0
0.08
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
c0f91e236903662cb9ea785c1f21cfc864b10a11
5,283
py
Python
ImgTest.py
gyungchan2110/ImageUtils
618d032122d6eadeec4afc9fc6c6906fa71f0ff6
[ "MIT" ]
null
null
null
ImgTest.py
gyungchan2110/ImageUtils
618d032122d6eadeec4afc9fc6c6906fa71f0ff6
[ "MIT" ]
null
null
null
ImgTest.py
gyungchan2110/ImageUtils
618d032122d6eadeec4afc9fc6c6906fa71f0ff6
[ "MIT" ]
null
null
null
# In[] import cv2 import numpy as np import os from operator import eq import random import matplotlib.pyplot as plt from skimage import io import shutil listBase = "D:/[Data]/[Cardiomegaly]/1_ChestPA_Labeled_Baeksongyi/[PNG]_2_Generated_Data(2k)/Generated_Data_20180201_091700_2Classes" srcBase = "D:/[Data]/[Ca...
30.715116
180
0.638842
747
5,283
4.394913
0.30656
0.021931
0.023454
0.032897
0.317088
0.265002
0.223576
0.185196
0.185196
0.185196
0
0.081863
0.195344
5,283
172
181
30.715116
0.690426
0.052243
0
0.150442
0
0.061947
0.197432
0.15008
0
0
0
0
0
0
null
null
0
0.150442
null
null
0.044248
0
0
0
null
0
0
0
0
0
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
8d029524a952dcbf48af3b575f5b1f8b87f9f2cd
4,910
py
Python
research/im2txt/im2txt/metrics.py
dorazhao99/women-snowboard
9cb2569d7a3cbb846d10aabae825ead9a6e1de29
[ "Apache-2.0" ]
19
2018-09-26T03:52:59.000Z
2021-08-19T08:41:06.000Z
research/im2txt/im2txt/metrics.py
dorazhao99/women-snowboard
9cb2569d7a3cbb846d10aabae825ead9a6e1de29
[ "Apache-2.0" ]
13
2020-06-29T03:53:45.000Z
2022-03-11T23:28:19.000Z
research/im2txt/im2txt/metrics.py
dorazhao99/women-snowboard
9cb2569d7a3cbb846d10aabae825ead9a6e1de29
[ "Apache-2.0" ]
6
2018-09-19T17:07:00.000Z
2021-03-21T14:20:25.000Z
#Code for earth mover distance: https://github.com/wmayner/pyemd from pyemd import emd import numpy as np import pdb import sys from scipy.stats import spearmanr import random import scipy.io as scio from scipy.misc import imresize import json def read_json(t_file): j_file = open(t_file).read() return json.loads(...
25.842105
96
0.589409
733
4,910
3.814461
0.20191
0.016094
0.038627
0.017883
0.339056
0.333333
0.318312
0.318312
0.318312
0.293276
0
0.017584
0.281874
4,910
189
97
25.978836
0.775383
0.024033
0
0.363636
0
0
0.02841
0
0
0
0
0
0.025974
0
null
null
0
0.058442
null
null
0.006494
0
0
0
null
0
0
0
0
0
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
8d06c7cf36e8492df2235310f50ed10f0b857e7b
358
py
Python
UVa 355 bases are loaded/sample/main.py
tadvi/uva
0ac0cbdf593879b4fb02a3efc09adbb031cb47d5
[ "MIT" ]
1
2020-11-24T03:17:21.000Z
2020-11-24T03:17:21.000Z
UVa 355 bases are loaded/sample/main.py
tadvi/uva
0ac0cbdf593879b4fb02a3efc09adbb031cb47d5
[ "MIT" ]
null
null
null
UVa 355 bases are loaded/sample/main.py
tadvi/uva
0ac0cbdf593879b4fb02a3efc09adbb031cb47d5
[ "MIT" ]
1
2021-04-11T16:22:31.000Z
2021-04-11T16:22:31.000Z
import sys sys.stdin = open('input.txt') while True: try: b1, b2, n = raw_input().split() except: break try: number = int(n, base=int(b1)) number2 = int(str(number), base=int(b2)) print '%s base %s = %d base %s' % (n, b1, number2, b2) except: print '%s is...
23.866667
62
0.522346
54
358
3.444444
0.5
0.080645
0
0
0
0
0
0
0
0
0
0.036885
0.318436
358
14
63
25.571429
0.72541
0
0
0.307692
0
0
0.175978
0
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
8d07e7dc208e56b3c62cafd4c888d41dd0b96e47
3,263
py
Python
01-Pass_the_message/solution.py
alvarogzp/badoo-challenge-2015
f4e1d8b1837c7cc5ae31bb3fa808a24b60513214
[ "MIT" ]
1
2016-01-10T16:59:00.000Z
2016-01-10T16:59:00.000Z
01-Pass_the_message/solution.py
alvarogzp/badoo-challenge-2015
f4e1d8b1837c7cc5ae31bb3fa808a24b60513214
[ "MIT" ]
null
null
null
01-Pass_the_message/solution.py
alvarogzp/badoo-challenge-2015
f4e1d8b1837c7cc5ae31bb3fa808a24b60513214
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 class MessageBroadcast: def __init__(self, friend_graph, start_person): self.friend_graph = friend_graph self.start_person = start_person self.people_without_message = list(friend_graph.keys()) self.step_number = 0 self.new_people_with_message_in_last...
35.857143
106
0.695066
443
3,263
4.706546
0.17833
0.057554
0.05036
0.069065
0.351079
0.226379
0.132374
0.105516
0.072902
0
0
0.004332
0.221882
3,263
90
107
36.255556
0.816857
0.006436
0
0.028571
0
0
0.000617
0
0
0
0
0
0
1
0.214286
false
0
0
0.028571
0.3
0.014286
0
0
0
null
0
0
0
0
0
0
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
8d0d1cafb82bdf7b07b4502420c6559ece20c04f
6,683
py
Python
forum/views.py
EnzoRobaina/Django-Forum
20582e6e27cedb79b6c0fbfe16ddfc993601f625
[ "Apache-2.0" ]
4
2018-08-16T01:12:33.000Z
2022-01-29T11:14:13.000Z
forum/views.py
EnzoRobaina/Django-Forum
20582e6e27cedb79b6c0fbfe16ddfc993601f625
[ "Apache-2.0" ]
1
2018-08-22T13:29:19.000Z
2018-08-22T13:29:19.000Z
forum/views.py
EnzoRobaina/Django-Forum
20582e6e27cedb79b6c0fbfe16ddfc993601f625
[ "Apache-2.0" ]
1
2018-08-16T01:12:37.000Z
2018-08-16T01:12:37.000Z
from django.shortcuts import render, redirect from .models import * from .forms import * from django.http import Http404 from django.utils import timezone from django.db.models import Count from django.contrib.auth import login, authenticate, logout from django.views import View from django.contrib import messages from...
35.737968
151
0.660631
781
6,683
5.548015
0.222791
0.03231
0.039465
0.04985
0.339488
0.261482
0.198708
0.137549
0.137549
0.083545
0
0.002174
0.243005
6,683
186
152
35.930108
0.854319
0.104294
0
0.355072
0
0
0.094153
0.008209
0
0
0
0.005376
0
1
0.072464
false
0.07971
0.115942
0
0.318841
0
0
0
0
null
0
0
0
0
0
0
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
238e4af6209505b918de99a2bb0c8f4363fd0977
3,728
py
Python
kawaii_voice_gtts.py
Fukuda-B/kawaii_voice_gtts
8f6bef74a7bbd4ff633a914b57d31085688094bd
[ "MIT" ]
4
2021-05-26T00:34:06.000Z
2021-12-20T04:21:22.000Z
kawaii_voice_gtts.py
Fukuda-B/kawaii_voice_gtts
8f6bef74a7bbd4ff633a914b57d31085688094bd
[ "MIT" ]
1
2021-05-19T03:13:16.000Z
2021-05-19T03:13:16.000Z
kawaii_voice_gtts.py
Fukuda-B/kawaii_voice_gtts
8f6bef74a7bbd4ff633a914b57d31085688094bd
[ "MIT" ]
4
2021-11-24T00:35:54.000Z
2021-12-20T04:21:36.000Z
# https://github.com/Fukuda-B/kawaii_voice_gtts import numpy as np import pydub from pydub import effects from pydub.audio_segment import AudioSegment import pyworld class Error(Exception): pass class FileTypeError(Error): def __init__(self, message): self.message = message class kawaii_voice: ...
31.066667
117
0.591738
496
3,728
4.243952
0.268145
0.136817
0.055582
0.051306
0.284086
0.224703
0.16247
0.144418
0.114964
0.114964
0
0.026965
0.293723
3,728
119
118
31.327731
0.772503
0.162285
0
0.164384
0
0
0.02188
0
0
0
0
0
0
1
0.164384
false
0.054795
0.068493
0
0.410959
0.013699
0
0
0
null
0
0
0
0
0
0
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
238f538ff3363e7a854612ae0fba729cb49278ac
2,054
py
Python
09-problems/lc_1094_car_pooling.py
hamidgasmi/training.computerscience.algorithms-datastructures
bd156dd2e9ed5681d9f1e4a23f71a92d68d0db43
[ "MIT" ]
8
2020-11-15T13:55:27.000Z
2022-03-15T00:30:10.000Z
09-problems/lc_1094_car_pooling.py
hamidgasmi/training.computerscience.algorithms-datastructures
bd156dd2e9ed5681d9f1e4a23f71a92d68d0db43
[ "MIT" ]
217
2020-02-28T03:09:05.000Z
2020-10-29T13:19:12.000Z
09-problems/lc_1094_car_pooling.py
hamidgasmi/training.computerscience.algorithms-datastructures
bd156dd2e9ed5681d9f1e4a23f71a92d68d0db43
[ "MIT" ]
3
2021-07-04T06:42:14.000Z
2021-11-20T17:56:48.000Z
class SolutionCumulativeSum: """ 2. Intuition: - Store the nbr of the passengers picked or dropped off by time - Compute the cumulative sum by time and check if it exceeds the capacity 3. Complexity Analysis: - Time Complexity: O(N) - Space Complexity: O(N) """ ...
31.6
97
0.555501
246
2,054
4.49187
0.313008
0.050679
0.054299
0.083258
0.365611
0.316742
0.108597
0.108597
0.108597
0.108597
0
0.015361
0.366115
2,054
65
98
31.6
0.833333
0.312561
0
0.296296
0
0
0
0
0
0
0
0
0
1
0.074074
false
0.185185
0.037037
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
2395aa5e1393f49192cd1f830ff3c9b6c95a5ca0
3,789
py
Python
upload-all.py
shyam3001/gradescope-scripts
16157d999c33f783f458ef96909f930c48b51474
[ "MIT" ]
null
null
null
upload-all.py
shyam3001/gradescope-scripts
16157d999c33f783f458ef96909f930c48b51474
[ "MIT" ]
null
null
null
upload-all.py
shyam3001/gradescope-scripts
16157d999c33f783f458ef96909f930c48b51474
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import requests import getpass import sys import os BASE_URL = 'https://www.gradescope.com' class APIClient: def __init__(self): self.session = requests.Session() def post(self, *args, **kwargs): return self.session.post(*args, **kwargs) def log_in(s...
35.745283
114
0.608604
438
3,789
5.082192
0.253425
0.039533
0.072776
0.080863
0.502246
0.477538
0.446092
0.43531
0.414645
0.362534
0
0.016571
0.267353
3,789
105
115
36.085714
0.785303
0.08815
0
0.341772
0
0
0.195815
0.058894
0
0
0
0
0
1
0.075949
false
0.063291
0.050633
0.012658
0.189873
0.101266
0
0
0
null
0
0
0
0
0
0
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
23a251f32088d6deb22a54112a18b75e64b0c59d
772
py
Python
kore_plugins_sanic/plugins/application.py
kore-plugins/kore-plugins-sanic
2ee53fac6b8fded61ef8bf45e88af1d53cf5dc78
[ "Apache-2.0" ]
null
null
null
kore_plugins_sanic/plugins/application.py
kore-plugins/kore-plugins-sanic
2ee53fac6b8fded61ef8bf45e88af1d53cf5dc78
[ "Apache-2.0" ]
null
null
null
kore_plugins_sanic/plugins/application.py
kore-plugins/kore-plugins-sanic
2ee53fac6b8fded61ef8bf45e88af1d53cf5dc78
[ "Apache-2.0" ]
null
null
null
import logging from sanic import Sanic from kore.components.plugins.base import BasePluginComponent log = logging.getLogger(__name__) class SanicApplicationPluginComponent(BasePluginComponent): def get_services(self): return ( ('config', self.config), ('application', self.appli...
24.903226
75
0.660622
78
772
6.384615
0.435897
0.066265
0.072289
0
0
0
0
0
0
0
0
0.005093
0.237047
772
30
76
25.733333
0.840407
0.248705
0
0
0
0
0.048696
0
0
0
0
0
0
1
0.1875
false
0
0.1875
0.0625
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
23a297af12d15a0a2489d1cfc8017e9a7c125154
1,302
py
Python
ckanext/metadata/lib/bulk_process.py
SAEONData/ckanext-metadata
af1a137e5d924f05ea1835b81f36f808700d3aa7
[ "MIT" ]
null
null
null
ckanext/metadata/lib/bulk_process.py
SAEONData/ckanext-metadata
af1a137e5d924f05ea1835b81f36f808700d3aa7
[ "MIT" ]
76
2018-04-10T12:51:56.000Z
2021-02-22T11:41:03.000Z
ckanext/metadata/lib/bulk_process.py
SAEONData/ckanext-metadata
af1a137e5d924f05ea1835b81f36f808700d3aa7
[ "MIT" ]
null
null
null
# encoding: utf-8 import logging import ckan.plugins.toolkit as tk log = logging.getLogger(__name__) def bulk_action(action, context, data_dicts, async): """ Carry out multiple invocations of an action, optionally asynchronously. :param action: name of the action function :param context: context t...
27.702128
100
0.650538
170
1,302
4.782353
0.417647
0.059041
0.093481
0.084871
0.130381
0.063961
0.063961
0
0
0
0
0.003125
0.262673
1,302
46
101
28.304348
0.84375
0.011521
0
0
0
0
0.043646
0
0
0
0
0
0
0
null
null
0
0.086957
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
23afef16fdc9a2e61e388a1e7bbc58f3783b4ad8
121,895
py
Python
horovod/tensorflow/compression.py
DelphianCalamity/horovod
16c79766b7d6f86a1e64b373f9cd81d3680c06c8
[ "Apache-2.0" ]
null
null
null
horovod/tensorflow/compression.py
DelphianCalamity/horovod
16c79766b7d6f86a1e64b373f9cd81d3680c06c8
[ "Apache-2.0" ]
null
null
null
horovod/tensorflow/compression.py
DelphianCalamity/horovod
16c79766b7d6f86a1e64b373f9cd81d3680c06c8
[ "Apache-2.0" ]
null
null
null
"""Gradient compression algorithms.""" from __future__ import division import tensorflow as tf from tensorflow.python.framework import load_library from tensorflow.python.platform import resource_loader tf.compat.v1.logging.set_verbosity(tf.compat.v1.logging.ERROR) import random, math from horovod.tensorflow.mpi_ops i...
46.810676
156
0.594996
14,494
121,895
4.801573
0.061474
0.039084
0.01138
0.01092
0.747708
0.7069
0.661954
0.635515
0.61501
0.596948
0
0.073892
0.285565
121,895
2,604
157
46.810676
0.725249
0.176988
0
0.570749
0
0
0.046691
0.015121
0
0
0.000093
0
0.001189
1
0.057669
false
0.001189
0.007134
0.003567
0.162901
0.002378
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
23b2a7485e0c6f09b8874d22006008025e88154a
1,908
py
Python
Scripts/BitCoin/BitCoin.py
sanseveroj/Python27
24f9abb1106f5aa2ea7dfb05ec8e95fcf517cbc8
[ "bzip2-1.0.6" ]
null
null
null
Scripts/BitCoin/BitCoin.py
sanseveroj/Python27
24f9abb1106f5aa2ea7dfb05ec8e95fcf517cbc8
[ "bzip2-1.0.6" ]
null
null
null
Scripts/BitCoin/BitCoin.py
sanseveroj/Python27
24f9abb1106f5aa2ea7dfb05ec8e95fcf517cbc8
[ "bzip2-1.0.6" ]
null
null
null
import time, threading, datetime from bitstampy import api from poloniex import Poloniex import json import requests import csv import gdax public_client = gdax.PublicClient() tickerGDAXETH_USD = public_client.get_product_ticker(product_id= 'ETH-USD') tickerGDAXLTC_USD = public_client.get_product_ticker(product_id= ...
29.353846
87
0.768868
269
1,908
5.133829
0.234201
0.06517
0.086894
0.052136
0.599566
0.599566
0.599566
0.599566
0.599566
0.534395
0
0.010222
0.128407
1,908
64
88
29.8125
0.820204
0.007862
0
0.44
0
0
0.043363
0
0
0
0
0
0
0
null
null
0
0.14
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
23b4caf076a4424ba2170e0ce316255f950d885e
2,634
py
Python
sparky_delete-peaks.py
harmsm/sparky
2b1575d77636bf84d0d8a862d92095e43e060f80
[ "Unlicense" ]
null
null
null
sparky_delete-peaks.py
harmsm/sparky
2b1575d77636bf84d0d8a862d92095e43e060f80
[ "Unlicense" ]
null
null
null
sparky_delete-peaks.py
harmsm/sparky
2b1575d77636bf84d0d8a862d92095e43e060f80
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python __description__ = \ """ sparky_delete-peaks.py Delete peaks in Sparky .save files using peaks in input file input file. """ __author__ = "Michael J. Harms" __date__ = "080409" __usage__ = "sparky_delete-peaks.py input-file $1.save $2.save ... $n.save" import os, sys class SparkyDeletePeaksE...
24.616822
75
0.59757
380
2,634
3.95
0.318421
0.063957
0.015989
0.019987
0.132578
0.051965
0.051965
0.035976
0.035976
0.035976
0
0.014854
0.284358
2,634
106
76
24.849057
0.781432
0.081625
0
0.072727
0
0.018182
0.080828
0.010843
0
0
0
0
0
0
null
null
0.018182
0.018182
null
null
0.054545
0
0
0
null
0
0
0
0
0
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
23b913725944b0f88e480619544f4c7201cf30c0
655
py
Python
app/rhyme.py
agungrbudiman/whoogle-search
1798b6094d3022b6a9965a9117f2b81e688dff02
[ "MIT" ]
1
2020-04-25T11:51:31.000Z
2020-04-25T11:51:31.000Z
app/rhyme.py
agungrbudiman/whoogle-search
1798b6094d3022b6a9965a9117f2b81e688dff02
[ "MIT" ]
null
null
null
app/rhyme.py
agungrbudiman/whoogle-search
1798b6094d3022b6a9965a9117f2b81e688dff02
[ "MIT" ]
1
2020-05-18T09:11:14.000Z
2020-05-18T09:11:14.000Z
import itertools from Phyme import Phyme import random import sys import time random.seed(time.time()) ph = Phyme() def get_rhyme(word): # Get all rhymes and merge to one list (normally separated by syllable count) rhymes = ph.get_perfect_rhymes(word) rhyme_vals = list(itertools.chain.from_iterable(list...
25.192308
81
0.728244
98
655
4.663265
0.561224
0.087527
0.056893
0
0
0
0
0
0
0
0
0.005525
0.170992
655
25
82
26.2
0.836096
0.20458
0
0
0
0
0.015444
0
0
0
0
0
0
1
0.066667
false
0
0.333333
0
0.466667
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
23b9334fd709ab35f361d1081d1cb412f8047b06
550
py
Python
science_utils/decorator.py
MaxOSmith/science_utils
3b497d4e1656d5d7aa7b454ee83003e74e919bd3
[ "MIT" ]
null
null
null
science_utils/decorator.py
MaxOSmith/science_utils
3b497d4e1656d5d7aa7b454ee83003e74e919bd3
[ "MIT" ]
null
null
null
science_utils/decorator.py
MaxOSmith/science_utils
3b497d4e1656d5d7aa7b454ee83003e74e919bd3
[ "MIT" ]
null
null
null
""" Function decorators. """ import functools def lazy_loading_property(function): """ Lazy loading decorator. Source: https://danijar.com/structuring-your-tensorflow-models/ :param function: Function. :return: Input function wrapped to lazy load. """ attribute = "_cache_" + function.__name_...
23.913043
67
0.674545
57
550
6.368421
0.596491
0.107438
0
0
0
0
0
0
0
0
0
0
0.218182
550
22
68
25
0.844186
0
0
0
0
0
0.020833
0
0
0
0
0
0
0
null
null
0
0.1
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
23ba14280c26da40e5b4e0e5231dcaf95d797945
10,239
py
Python
PyCAD/geom/Span.py
danheeks/HeeksCAM
eb54f5c402effd74aa97fee4041ab303bafd1a7e
[ "BSD-2-Clause" ]
5
2015-12-07T15:27:43.000Z
2021-03-03T15:51:52.000Z
PyCAD/geom/Span.py
danheeks/HeeksCAM
eb54f5c402effd74aa97fee4041ab303bafd1a7e
[ "BSD-2-Clause" ]
null
null
null
PyCAD/geom/Span.py
danheeks/HeeksCAM
eb54f5c402effd74aa97fee4041ab303bafd1a7e
[ "BSD-2-Clause" ]
4
2017-02-12T10:30:28.000Z
2020-06-15T12:18:21.000Z
import geom import math import copy class Span: def __init__(self, p, v, start_span = False): """ create a Span from a point and a vertex """ if isinstance(p, geom.Point) == False: raise ValueError("Point argument expected") self.p = copy.deepcopy(p) if isinstance(v, geo...
31.311927
158
0.474167
1,368
10,239
3.505117
0.138158
0.075078
0.036288
0.032117
0.269239
0.208968
0.124296
0.093848
0.061731
0.061731
0
0.031332
0.404629
10,239
326
159
31.407975
0.755249
0.028323
0
0.238095
0
0
0.010127
0
0
0
0
0
0
0
null
null
0
0.010989
null
null
0.007326
0
0
0
null
0
0
0
0
0
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
23ba171951cc9903c45fa919f8d9005febe96f8f
1,310
py
Python
var/spack/repos/builtin/packages/bear/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/bear/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/bear/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2019-02-08T20:37:20.000Z
2019-03-31T15:19:26.000Z
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack.package import * class Bear(CMakePackage): """Bear is a tool that generates a compilation database for cl...
45.172414
96
0.729771
152
1,310
6.25
0.539474
0.014737
0.015789
0.029474
0.150526
0.067368
0
0
0
0
0
0.224847
0.127481
1,310
28
97
46.785714
0.606299
0.221374
0
0
0
0.058824
0.551142
0.349553
0
0
0
0
0
1
0
false
0
0.058824
0
0.352941
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
23bca618b883354b19d08f88edab83a0121c0551
275
py
Python
jp.atcoder/abc108/arc102_a/11943940.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-09T03:06:25.000Z
2022-02-09T03:06:25.000Z
jp.atcoder/abc108/arc102_a/11943940.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-05T22:53:18.000Z
2022-02-09T01:29:30.000Z
jp.atcoder/abc108/arc102_a/11943940.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
null
null
null
import sys n, k = map(int, sys.stdin.readline().split()) def main(): c1 = n // k c2 = n // (k // 2) if k & 1: cnt = pow(c1, 3) else: cnt = pow(c1, 3) + pow(c2 - c1, 3) print(cnt) if __name__ == "__main__": main()
15.277778
46
0.429091
41
275
2.682927
0.536585
0.054545
0.145455
0.163636
0
0
0
0
0
0
0
0.065476
0.389091
275
17
47
16.176471
0.589286
0
0
0
0
0
0.031008
0
0
0
0
0
0
1
0.083333
false
0
0.083333
0
0.166667
0.083333
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
23c4f16942aae6d139a8f15bd8f0ad8f2285ada5
637
py
Python
run_profiler.py
ibara1454/pyss
69b47d89f88f04876bdabd504d202a1ced7bb5e4
[ "MIT" ]
null
null
null
run_profiler.py
ibara1454/pyss
69b47d89f88f04876bdabd504d202a1ced7bb5e4
[ "MIT" ]
null
null
null
run_profiler.py
ibara1454/pyss
69b47d89f88f04876bdabd504d202a1ced7bb5e4
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from concurrent.futures import ProcessPoolExecutor import cProfile import pstats from profiler.profiler_wathen100 import * import pyss if __name__ == '__main__': for p in [24, 12, 8, 4, 2, 1]: print("==================Processes = {}==================".format(...
30.333333
77
0.613815
74
637
5.121622
0.689189
0
0
0
0
0
0
0
0
0
0
0.025845
0.210361
637
20
78
31.85
0.727634
0.065934
0
0
0
0
0.109612
0.045531
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.133333
0
0
0
null
0
0
0
0
0
0
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
23c65b4634b38df73b09939f18d63e79b6512abd
1,011
py
Python
manifold.py
alexgurrola/manifold-mds
5caf0f8a826531a882841f8d6ff17e3cb247c4ab
[ "MIT" ]
null
null
null
manifold.py
alexgurrola/manifold-mds
5caf0f8a826531a882841f8d6ff17e3cb247c4ab
[ "MIT" ]
37
2019-08-27T16:02:10.000Z
2022-02-09T23:26:40.000Z
manifold.py
alexgurrola/manifold-mds
5caf0f8a826531a882841f8d6ff17e3cb247c4ab
[ "MIT" ]
null
null
null
# cost import tensorflow as tf import autograd.numpy as np # manifolds from pymanopt import Problem from pymanopt.manifolds import Stiefel from pymanopt.solvers import SteepestDescent # utilities import plac def main(): # (1) Instantiate a manifold manifold = Stiefel(5, 2) """ # (2) Define the cost...
22.977273
117
0.66271
130
1,011
5.084615
0.476923
0.054463
0.024206
0.033283
0.187595
0.187595
0.118003
0
0
0
0
0.011524
0.227498
1,011
43
118
23.511628
0.834827
0.165183
0
0
0
0
0.033272
0
0
0
0
0
0
1
0.111111
false
0
0.333333
0.055556
0.444444
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
23c93fd95edac6677b9217e9300b54a6bd303a91
3,199
py
Python
equalhash/conf/lang.py
OctavioMaia/bot-equalhash
80599acf1471fef057b228406415fff83ca0ddcb
[ "MIT" ]
null
null
null
equalhash/conf/lang.py
OctavioMaia/bot-equalhash
80599acf1471fef057b228406415fff83ca0ddcb
[ "MIT" ]
1
2020-03-27T20:50:26.000Z
2020-03-27T20:50:26.000Z
equalhash/conf/lang.py
OctavioMaia/bot-equalhash
80599acf1471fef057b228406415fff83ca0ddcb
[ "MIT" ]
1
2020-06-25T10:43:54.000Z
2020-06-25T10:43:54.000Z
translations = { "startMessage": "I can help you see all of your EqualHash.pt statistics\n\nYou can control me by " "sending these " "commands:\n\n/newaddr - Add new address\n/myaddrs - View all address\n\n*Edit " "Addresses*\n/setname - Ch...
68.06383
120
0.608628
370
3,199
5.262162
0.421622
0.032871
0.032357
0.01849
0.146893
0.09964
0.042116
0.042116
0.042116
0.042116
0
0.002143
0.27071
3,199
46
121
69.543478
0.832405
0
0
0
0
0.130435
0.742107
0.056268
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
23d037300047b68414732ac5412bcb373306d04f
247
py
Python
funcnotwork.py
praveenpmin/Python
513fcde7430b03a187e2c7e58302b88645388eed
[ "MIT" ]
null
null
null
funcnotwork.py
praveenpmin/Python
513fcde7430b03a187e2c7e58302b88645388eed
[ "MIT" ]
null
null
null
funcnotwork.py
praveenpmin/Python
513fcde7430b03a187e2c7e58302b88645388eed
[ "MIT" ]
null
null
null
# A Python program to demonstrate need # of packing and unpacking # A sample function that takes 4 arguments # and prints them. def fun(a, b, c, d): print(a, b, c, d) # Driver Code my_list = [1, 2, 3, 4] # This doesn't work fun(my_list)
19
42
0.659919
46
247
3.5
0.76087
0.024845
0.037267
0.049689
0
0
0
0
0
0
0
0.026316
0.230769
247
13
43
19
0.821053
0.607287
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0
0
0.25
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
0
1
0
0
0
0
0
0
0
1
23d055ff5c0ce5dd9ef6f387cad17c839220e8d1
3,190
py
Python
models/VGGNet.py
eovallemagallanes/Transfer-Learning-Stenosis-Detection
d6b9113746150e6e2e20005d5a6e1d1c93118a1d
[ "MIT" ]
3
2021-07-05T07:32:22.000Z
2021-10-30T18:28:08.000Z
models/VGGNet.py
eovallemagallanes/Transfer-Learning-Stenosis-Detection
d6b9113746150e6e2e20005d5a6e1d1c93118a1d
[ "MIT" ]
null
null
null
models/VGGNet.py
eovallemagallanes/Transfer-Learning-Stenosis-Detection
d6b9113746150e6e2e20005d5a6e1d1c93118a1d
[ "MIT" ]
null
null
null
import torch import torch.nn as nn dict_blocks = {'vgg11': [(3), (3, 6), (6, 11), (11, 16), (16)], 'vgg13': [(5), (5, 10), (10, 15), (15, 20), (20)], 'vgg16': [(5), (5, 10), (10, 17), (17, 24), (24)]} class MyVgg(nn.Module): def __init__(self, model_name, num_blocks, num_classes, pr...
39.875
108
0.590909
455
3,190
3.951648
0.186813
0.130145
0.166852
0.211346
0.565628
0.493326
0.477753
0.394327
0.382091
0.382091
0
0.059022
0.256426
3,190
79
109
40.379747
0.698988
0
0
0.451613
0
0
0.041079
0.006585
0
0
0
0
0
1
0.048387
false
0
0.032258
0
0.129032
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
23d363c873e70b0b046b90f1135327c87cad9340
5,081
py
Python
sdk/python/pulumi_aws_native/ec2/get_transit_gateway_peering_attachment.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
29
2021-09-30T19:32:07.000Z
2022-03-22T21:06:08.000Z
sdk/python/pulumi_aws_native/ec2/get_transit_gateway_peering_attachment.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
232
2021-09-30T19:26:26.000Z
2022-03-31T23:22:06.000Z
sdk/python/pulumi_aws_native/ec2/get_transit_gateway_peering_attachment.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
4
2021-11-10T19:42:01.000Z
2022-02-05T10:15:49.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from...
40.325397
161
0.704389
534
5,081
6.395131
0.217228
0.118887
0.119473
0.129429
0.33675
0.207613
0.161933
0.118887
0.117423
0.101903
0
0.000998
0.211179
5,081
125
162
40.648
0.851048
0.159614
0
0.101266
1
0
0.175541
0.113299
0
0
0
0
0
1
0.113924
false
0
0.075949
0
0.303797
0
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
23d3a50056d5e0c9f29d56a7291abb590164cd49
5,685
py
Python
scripts/evpn/evpn_test_resource.py
rombie/contrail-test
a68c71d6f282142501a7e2e889bbb232fdd82dc3
[ "Apache-2.0" ]
null
null
null
scripts/evpn/evpn_test_resource.py
rombie/contrail-test
a68c71d6f282142501a7e2e889bbb232fdd82dc3
[ "Apache-2.0" ]
null
null
null
scripts/evpn/evpn_test_resource.py
rombie/contrail-test
a68c71d6f282142501a7e2e889bbb232fdd82dc3
[ "Apache-2.0" ]
null
null
null
import fixtures import testtools import os from connections import ContrailConnections from contrail_test_init import * from vn_test import * from vm_test import * from quantum_test import * from vnc_api_test import * from nova_test import * from testresources import OptimisingTestSuite, TestResource class SolnSetup(...
50.758929
297
0.702726
760
5,685
4.969737
0.164474
0.050834
0.0556
0.0556
0.482393
0.464919
0.45883
0.423087
0.423087
0.405613
0
0.02701
0.185928
5,685
111
298
51.216216
0.78911
0.328936
0
0.1
0
0
0.08318
0
0
0
0
0
0
0
null
null
0
0.1375
null
null
0.025
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
23d3d44408d73e5224630fd8dee811890c34538c
12,421
py
Python
bitrue/client.py
dust/python-bitrue
d0574af85ff1930f4fbe90496bf42b7044845ea9
[ "MIT" ]
null
null
null
bitrue/client.py
dust/python-bitrue
d0574af85ff1930f4fbe90496bf42b7044845ea9
[ "MIT" ]
1
2021-03-15T09:05:54.000Z
2021-03-15T09:05:54.000Z
bitrue/client.py
dust/python-bitrue
d0574af85ff1930f4fbe90496bf42b7044845ea9
[ "MIT" ]
null
null
null
# coding=utf-8 import hashlib import hmac import requests import time from operator import itemgetter from bitrue.helpers import date_to_milliseconds, interval_to_milliseconds, extend from bitrue.exceptions import BitrueAPIException, BitrueRequestException class Client(object): API_URL = 'https://www.bitrue.{}/...
34.598886
99
0.615973
1,498
12,421
4.87717
0.221629
0.045168
0.02669
0.01971
0.259786
0.2049
0.16329
0.128661
0.099644
0.051465
0
0.008189
0.272522
12,421
358
100
34.695531
0.800354
0.190564
0
0.114155
0
0
0.078146
0
0
0
0
0
0
1
0.178082
false
0
0.031963
0.073059
0.625571
0
0
0
0
null
0
0
0
0
0
0
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
23e540f104212abb1bc8e3a0e06cf0f00f1de8de
275
py
Python
import_sys.py
yuancf1024/Python-cf
ce8a471c93ee98875561662eec3ec043f42e9d9c
[ "MIT" ]
null
null
null
import_sys.py
yuancf1024/Python-cf
ce8a471c93ee98875561662eec3ec043f42e9d9c
[ "MIT" ]
null
null
null
import_sys.py
yuancf1024/Python-cf
ce8a471c93ee98875561662eec3ec043f42e9d9c
[ "MIT" ]
null
null
null
nums = int(input()) points = [] for i in range(0, nums): read_list = list(map(int, input().split())) # read_list = [int(i) for i in input().split()] points.append((read_list[0], read_list[1])) print(points) """ 3 1 2 23 4 4 5 [(1, 2), (23, 4), (4, 5)] """
17.1875
51
0.545455
49
275
2.979592
0.428571
0.219178
0.082192
0.068493
0.09589
0.09589
0
0
0
0
0
0.083721
0.218182
275
15
52
18.333333
0.595349
0.163636
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.166667
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
23ef2a52b002a81042825038ce07aa25e2c33781
12,346
py
Python
python/AcdReportRun.py
fermi-lat/calibGenACD
19067cb61fe8297aee91fc8a2cbdfb7e0eb2d386
[ "BSD-3-Clause" ]
null
null
null
python/AcdReportRun.py
fermi-lat/calibGenACD
19067cb61fe8297aee91fc8a2cbdfb7e0eb2d386
[ "BSD-3-Clause" ]
null
null
null
python/AcdReportRun.py
fermi-lat/calibGenACD
19067cb61fe8297aee91fc8a2cbdfb7e0eb2d386
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # # Copyright 2007 # by # The Board of Trustees of the # Leland Stanford Junior University. # All rights reserved. # __facility__ = "calibGenACD" __abstract__ = ...
31.984456
106
0.541714
1,241
12,346
5.290089
0.257857
0.016756
0.015232
0.022848
0.310282
0.253922
0.204417
0.169688
0.157807
0.139223
0
0.018805
0.315163
12,346
385
107
32.067532
0.757658
0.052001
0
0.300699
0
0
0.202012
0.017087
0
0
0
0
0
0
null
null
0
0.01049
null
null
0.041958
0
0
0
null
0
0
0
0
0
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
23f1498b15f91c7f70abd4a75c061c84ae6484df
450
py
Python
siswa/migrations/0002_auto_20210109_1146.py
harizMunawar/REI
ff0cb47eba9134078636ecc29efb152f29463e31
[ "MIT" ]
1
2020-12-14T15:31:54.000Z
2020-12-14T15:31:54.000Z
siswa/migrations/0002_auto_20210109_1146.py
harizMunawar/REI
ff0cb47eba9134078636ecc29efb152f29463e31
[ "MIT" ]
null
null
null
siswa/migrations/0002_auto_20210109_1146.py
harizMunawar/REI
ff0cb47eba9134078636ecc29efb152f29463e31
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2021-01-09 11:46 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('siswa', '0001_initial'), ] operations = [ migrations.AlterField( model_name='siswa', name='diterima_di_tingkat', ...
23.684211
115
0.56
51
450
4.843137
0.745098
0
0
0
0
0
0
0
0
0
0
0.108761
0.264444
450
18
116
25
0.637462
0.1
0
0
1
0
0.141439
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
23fc4313389fa60fd1fd8bad1d1d312098912938
633
py
Python
secret/admin.py
MinisterioPublicoRJ/apilabcontas
c01d5c0f1e6705eb8470ba7ba5078c0c172a9570
[ "MIT" ]
2
2019-06-10T18:34:15.000Z
2020-04-29T14:23:34.000Z
secret/admin.py
MinisterioPublicoRJ/datalakecadg
c01d5c0f1e6705eb8470ba7ba5078c0c172a9570
[ "MIT" ]
5
2020-01-09T15:59:16.000Z
2021-06-10T21:06:13.000Z
secret/admin.py
MinisterioPublicoRJ/datalakecadg
c01d5c0f1e6705eb8470ba7ba5078c0c172a9570
[ "MIT" ]
null
null
null
from django import forms from django.db.models.functions import Lower from django.contrib import admin from methodmapping.models import MethodMapping from secret.models import Secret class SecretAdminForm(forms.ModelForm): methods = forms.ModelMultipleChoiceField( queryset=MethodMapping.objects.all().ord...
24.346154
67
0.736177
69
633
6.623188
0.550725
0.065646
0
0
0
0
0
0
0
0
0
0
0.169036
633
25
68
25.32
0.868821
0
0
0
0
0
0.080569
0
0
0
0
0
0
1
0
false
0
0.294118
0
0.705882
0
0
0
0
null
0
0
0
0
0
0
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
9b000b001c9dd46fc040ca0e24cbbf18b3c423fa
1,076
py
Python
backend/app/__init__.py
bcbecker/Datta-Dashboard
14f77ce166500996888ebdc0e8d3f977fe060547
[ "FTL" ]
null
null
null
backend/app/__init__.py
bcbecker/Datta-Dashboard
14f77ce166500996888ebdc0e8d3f977fe060547
[ "FTL" ]
null
null
null
backend/app/__init__.py
bcbecker/Datta-Dashboard
14f77ce166500996888ebdc0e8d3f977fe060547
[ "FTL" ]
null
null
null
from redis import Redis import fakeredis from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_bcrypt import Bcrypt from flask_jwt_extended import JWTManager from config import TestingConfig db = SQLAlchemy() bcrypt = Bcrypt() jwt = JWTManager() def create_app(config_class=TestingConfig): '...
24.454545
88
0.723978
145
1,076
5.2
0.406897
0.047745
0.05305
0
0
0
0
0
0
0
0
0
0.204461
1,076
43
89
25.023256
0.880841
0.200743
0
0
0
0
0.039239
0.028537
0
0
0
0
0
1
0.038462
false
0
0.346154
0
0.423077
0
0
0
0
null
0
0
0
0
0
0
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
9b0092fecd25c8be858040bb12ae5d28d7f843d5
575
py
Python
volttron/tests/platform_test.py
kwarodom/mib_ui_data_analytics
a0bc0b30ada1622e00dff41797bd07ea76d7c422
[ "Unlicense" ]
null
null
null
volttron/tests/platform_test.py
kwarodom/mib_ui_data_analytics
a0bc0b30ada1622e00dff41797bd07ea76d7c422
[ "Unlicense" ]
null
null
null
volttron/tests/platform_test.py
kwarodom/mib_ui_data_analytics
a0bc0b30ada1622e00dff41797bd07ea76d7c422
[ "Unlicense" ]
1
2020-07-22T19:58:44.000Z
2020-07-22T19:58:44.000Z
import unittest from base import BasePlatformTest class PlatformTests(BasePlatformTest): def setUp(self): #Config file is relative to root of project super(PlatformTests, self).setUp() self.startup_platform("base-platform-test.json") def test_platform_startup(self): se...
27.380952
72
0.693913
66
575
5.848485
0.5
0.046632
0.11399
0
0
0
0
0
0
0
0
0
0.210435
575
21
73
27.380952
0.85022
0.073043
0
0
0
0
0.144465
0.043152
0
0
0
0
0.153846
1
0.230769
false
0
0.153846
0
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
9b032c80ee0db19783d3b39d83b80d3aa7f2c3bf
2,571
py
Python
tuw_arduino_bridge/arduino/linux/py/modules/tuw/Gamepad.py
tuw-rccar/tuw_rccar
87321b81bd49806f70ca6051b4c5bb011d98a310
[ "BSD-3-Clause" ]
1
2021-12-29T20:10:02.000Z
2021-12-29T20:10:02.000Z
tuw_arduino_bridge/arduino/linux/py/modules/tuw/Gamepad.py
mx-car/tuw_rccar
87321b81bd49806f70ca6051b4c5bb011d98a310
[ "BSD-3-Clause" ]
2
2018-06-04T10:29:15.000Z
2021-06-25T07:16:21.000Z
tuw_arduino_bridge/arduino/linux/py/modules/tuw/Gamepad.py
mx-car/tuw_rccar
87321b81bd49806f70ca6051b4c5bb011d98a310
[ "BSD-3-Clause" ]
1
2017-06-12T09:14:55.000Z
2017-06-12T09:14:55.000Z
import pygame import time import numpy as np class Gamepad: def __init__(self, joystick_id = 0): pygame.init() # Initialize the joysticks pygame.joystick.init() # Loop until the user clicks the close button. self.done = False # Check joystic...
37.808824
107
0.574485
295
2,571
4.942373
0.254237
0.123457
0.082305
0.069959
0.516461
0.506173
0.495199
0.495199
0.495199
0.495199
0
0.001762
0.337612
2,571
68
108
37.808824
0.854375
0.17114
0
0.413043
0
0
0.072642
0
0
0
0
0
0
0
null
null
0
0.065217
null
null
0.152174
0
0
0
null
0
0
0
0
0
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
9b04fb162778e41dfdace20f10f4719e3b6cd5a8
10,193
py
Python
forex_backends/settings/base.py
DeepakDarkiee/forex_backend
273cea071034216d5f193813a6e4d38f849527b9
[ "Apache-2.0" ]
null
null
null
forex_backends/settings/base.py
DeepakDarkiee/forex_backend
273cea071034216d5f193813a6e4d38f849527b9
[ "Apache-2.0" ]
null
null
null
forex_backends/settings/base.py
DeepakDarkiee/forex_backend
273cea071034216d5f193813a6e4d38f849527b9
[ "Apache-2.0" ]
null
null
null
""" Django settings for forex_backends project. Generated by 'django-admin startproject' using Django 3.2.8. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ impor...
30.794562
120
0.642696
1,157
10,193
5.526361
0.382887
0.032531
0.027526
0.031279
0.109634
0.089302
0.056772
0.048014
0.025023
0
0
0.006562
0.222604
10,193
331
121
30.794562
0.800353
0.297263
0
0.038462
1
0.004808
0.558267
0.218484
0
0
0
0
0
1
0
false
0.024038
0.028846
0
0.028846
0.004808
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
9b05211571f68fff804d1db75d17d8f482feb05e
17,264
py
Python
GAN.py
tawheeler/2017_iv_deep_radar
eb855dbf22268ecd01ecbd1847a80f2480b9c4b8
[ "MIT" ]
16
2017-03-31T01:53:13.000Z
2021-05-26T07:41:09.000Z
GAN.py
chisyliu/2017_iv_deep_radar
eb855dbf22268ecd01ecbd1847a80f2480b9c4b8
[ "MIT" ]
3
2018-02-20T16:42:07.000Z
2019-05-01T04:03:44.000Z
GAN.py
chisyliu/2017_iv_deep_radar
eb855dbf22268ecd01ecbd1847a80f2480b9c4b8
[ "MIT" ]
8
2017-09-13T18:55:11.000Z
2020-07-03T18:49:56.000Z
from keras.callbacks import TensorBoard, ModelCheckpoint from keras.models import Model, Sequential from keras.regularizers import l2 from keras.layers import Input, Dense, Lambda, Flatten, Reshape, Merge from keras.layers.convolutional import Convolution2D, Deconvolution2D, UpSampling2D from keras.layers.normalization...
48.630986
226
0.696594
2,861
17,264
3.982524
0.090178
0.048447
0.056521
0.07267
0.535896
0.486835
0.436897
0.377918
0.361155
0.332456
0
0.061688
0.112662
17,264
354
227
48.768362
0.682094
0.098876
0
0.100775
0
0
0.083422
0
0
0
0
0
0
0
null
null
0
0.050388
null
null
0.046512
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
9b0769b5a9004109d3acec9fac487d2449477608
776
py
Python
restaurant_class.py
charliechocho/py-crash-course
b42b8a4c1cb8d76e8316f55c1565ff42d920ee63
[ "Apache-2.0" ]
null
null
null
restaurant_class.py
charliechocho/py-crash-course
b42b8a4c1cb8d76e8316f55c1565ff42d920ee63
[ "Apache-2.0" ]
null
null
null
restaurant_class.py
charliechocho/py-crash-course
b42b8a4c1cb8d76e8316f55c1565ff42d920ee63
[ "Apache-2.0" ]
null
null
null
class Restaurant: """Beskriva saker om restauranger och deras typ av kök""" def __init__(self, restaurant_name, cuisine_type): """Ta in parameter för vilken namn och typ av kök restaurangen har""" self.restaurant_name = restaurant_name self.cuisine_type = cuisine_type def describe...
33.73913
90
0.733247
107
776
5.093458
0.439252
0.154128
0.13211
0.073395
0
0
0
0
0
0
0
0
0.168814
776
22
91
35.272727
0.844961
0.148196
0
0
0
0
0.367692
0.16
0
0
0
0
0
1
0.230769
false
0
0
0
0.307692
0.307692
0
0
0
null
0
0
0
0
0
0
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
9b0826525a573c30f78599e5c2771508af5331a2
218
py
Python
exercises/ja/exc_02_02_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/ja/exc_02_02_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/ja/exc_02_02_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
from spacy.lang.ja import Japanese nlp = Japanese() doc = nlp("私はネコを飼っています") # 単語「ネコ」のハッシュを引く cat_hash = ____.____.____[____] print(cat_hash) # cat_hashを使って文字列を引く cat_string = ____.____.____[____] print(cat_string)
16.769231
34
0.756881
26
218
4.923077
0.653846
0.109375
0
0
0
0
0
0
0
0
0
0
0.114679
218
12
35
18.166667
0.663212
0.151376
0
0
0
0
0.06044
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.285714
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
9b0ca4d47b0e4575ca567d82ba53a1b3658c5be1
741
py
Python
pipelines/FBCSP.py
plcrodrigues/moabb
aa4274fe7905631864e854c121c92e1927061f29
[ "BSD-3-Clause" ]
321
2017-06-03T16:14:45.000Z
2022-03-28T17:43:59.000Z
pipelines/FBCSP.py
plcrodrigues/moabb
aa4274fe7905631864e854c121c92e1927061f29
[ "BSD-3-Clause" ]
223
2017-06-03T17:41:57.000Z
2022-03-29T09:07:44.000Z
pipelines/FBCSP.py
girafe-ai/moabb
78bbb48a2a0058b0725ebeba1ba1e3203f0eacd5
[ "BSD-3-Clause" ]
118
2017-06-03T18:36:35.000Z
2022-03-16T06:22:02.000Z
import numpy as np from pyriemann.estimation import Covariances from pyriemann.spatialfilters import CSP from sklearn.feature_selection import SelectKBest, mutual_info_classif from sklearn.model_selection import GridSearchCV from sklearn.pipeline import make_pipeline from sklearn.svm import SVC from moabb.pipelines.ut...
32.217391
80
0.777328
96
741
5.895833
0.572917
0.077739
0.060071
0
0
0
0
0
0
0
0
0.01072
0.118758
741
22
81
33.681818
0.856049
0.036437
0
0
0
0
0.094101
0.030899
0
0
0
0
0
1
0
false
0
0.470588
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
9b0e5bf95401017631cb1d5f2cc4543589740558
977
py
Python
tests/base_dirs.py
yxes/yxes-config-find_dir
9c902767d70594c89a6a870536e2212db62e4bca
[ "MIT" ]
null
null
null
tests/base_dirs.py
yxes/yxes-config-find_dir
9c902767d70594c89a6a870536e2212db62e4bca
[ "MIT" ]
null
null
null
tests/base_dirs.py
yxes/yxes-config-find_dir
9c902767d70594c89a6a870536e2212db62e4bca
[ "MIT" ]
null
null
null
#!/usr/bin/env python # test: base_dirs.py from unittest import TestCase #from unittest.mock import patch from yxes.config.find_dir import FindDir class TestFindDir(TestCase): def setUp(self): self.fd = FindDir() def test_conf(self): self.assertTrue( self.fd.conf_dir.endswith("yx...
23.261905
70
0.626407
128
977
4.554688
0.328125
0.06175
0.120069
0.145798
0.315609
0.19211
0
0
0
0
0
0
0.250768
977
42
71
23.261905
0.796448
0.141249
0
0.16
0
0
0.169065
0.159472
0
0
0
0
0.2
1
0.24
false
0
0.08
0
0.36
0
0
0
0
null
0
0
0
0
0
0
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
9b1a9451700f1b84887c4d5e46bbb234643490a3
1,801
py
Python
comision2/apps/inicio/forms.py
GeralRCotrina/Comision4
9ae35dc84a653009640774e76d6c8d00ddb8461b
[ "bzip2-1.0.6" ]
null
null
null
comision2/apps/inicio/forms.py
GeralRCotrina/Comision4
9ae35dc84a653009640774e76d6c8d00ddb8461b
[ "bzip2-1.0.6" ]
10
2020-02-12T01:08:50.000Z
2021-09-08T01:08:55.000Z
comision2/apps/inicio/forms.py
GeralRCotrina/Comision4
9ae35dc84a653009640774e76d6c8d00ddb8461b
[ "bzip2-1.0.6" ]
null
null
null
from django import forms from apps.inicio.models import DatosPersonales class PersonaForm(forms.ModelForm): class Meta: model = DatosPersonales fields = ['id_datos_personales','dni','sexo', 'alias','fecha_nacimiento','telefono','celular','foto','id_auth_user', ] labels = { 'dni':'DNI', 'alias'...
26.485294
84
0.639645
195
1,801
5.835897
0.261538
0.123023
0.15993
0.239895
0.422671
0.327768
0.147627
0.077329
0
0
0
0
0.14714
1,801
68
85
26.485294
0.740885
0
0
0.148148
0
0
0.365705
0
0
0
0
0
0
1
0
false
0
0.055556
0
0.12963
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
9b22b48a6b70ed7624a4cdf377027ff1615955fa
2,376
py
Python
jskdelivery/migrations/0001_initial.py
Georjay/jsk-delivery-services
5181b86859d81b2282273cdd985c2602489b4970
[ "MIT" ]
null
null
null
jskdelivery/migrations/0001_initial.py
Georjay/jsk-delivery-services
5181b86859d81b2282273cdd985c2602489b4970
[ "MIT" ]
1
2021-04-08T06:38:39.000Z
2021-04-23T10:28:19.000Z
jskdelivery/migrations/0001_initial.py
Georjay/jsk-delivery-services
5181b86859d81b2282273cdd985c2602489b4970
[ "MIT" ]
null
null
null
# Generated by Django 2.2.6 on 2020-11-14 23:04 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUT...
51.652174
159
0.62963
255
2,376
5.694118
0.368627
0.083333
0.065427
0.066116
0.360882
0.360882
0.301653
0.301653
0.301653
0.161157
0
0.021265
0.228114
2,376
45
160
52.8
0.770447
0.018939
0
0
1
0
0.155861
0
0
0
0
0
0
1
0
false
0
0.105263
0
0.210526
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f197ca5a6f36f226b900dc78784911ce756b7275
1,441
py
Python
kit/extras/extra.py
AsociTon/Dot_Bot
f50f29f79112adf45ba10c8e3a43ac075c323d1d
[ "Unlicense" ]
null
null
null
kit/extras/extra.py
AsociTon/Dot_Bot
f50f29f79112adf45ba10c8e3a43ac075c323d1d
[ "Unlicense" ]
null
null
null
kit/extras/extra.py
AsociTon/Dot_Bot
f50f29f79112adf45ba10c8e3a43ac075c323d1d
[ "Unlicense" ]
null
null
null
''' intro_in = input("Which form do you want\n") for k in welcome_phrases.lib_form: for l in k: if intro_in.lower() == l: lion = welcome_phrases.lib_form.index(k) break print(random.choice(welcome_phrases.process_choices_fr[lion])) for sd in welcome_phrases....
36.948718
99
0.602359
207
1,441
4.077295
0.400966
0.149289
0.075829
0.040284
0.417062
0.417062
0.417062
0.417062
0.417062
0.417062
0
0.007605
0.269951
1,441
38
100
37.921053
0.794677
0
0
0
0
0
0.272978
0
0
0
0
0
0
0
null
null
0
0
null
null
0.346154
0
0
0
null
0
0
0
0
0
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
f197e3cc8cdb56c9f51cbc5c7e29524b1354593f
675
py
Python
Servers.py
brendanbyrne/butils
49e79744023b4580ed0065fcb1d75cc9ff75f454
[ "Apache-2.0" ]
null
null
null
Servers.py
brendanbyrne/butils
49e79744023b4580ed0065fcb1d75cc9ff75f454
[ "Apache-2.0" ]
null
null
null
Servers.py
brendanbyrne/butils
49e79744023b4580ed0065fcb1d75cc9ff75f454
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 ''' Different server classes that I have found useful ''' import socket class JobsServer: def __init__ (self, hostname, port, *, buffer_size = 4096, max_connections = 5): self._addr = (po...
23.275862
77
0.552593
71
675
5.042254
0.633803
0.111732
0.078212
0
0
0
0
0
0
0
0
0.025581
0.362963
675
28
78
24.107143
0.806977
0.17037
0
0
0
0
0.02
0
0
0
0
0
0
1
0.133333
false
0.066667
0.066667
0
0.266667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
f19dc81461426ea9542e7c2f6c0d50f735b2fa8f
1,954
py
Python
utils/fdi_att.py
xuwkk/steady-state-power-system
e7b16b3335682ab78037e6d1ef65088ddfcf1a3d
[ "MIT" ]
null
null
null
utils/fdi_att.py
xuwkk/steady-state-power-system
e7b16b3335682ab78037e6d1ef65088ddfcf1a3d
[ "MIT" ]
null
null
null
utils/fdi_att.py
xuwkk/steady-state-power-system
e7b16b3335682ab78037e6d1ef65088ddfcf1a3d
[ "MIT" ]
null
null
null
""" A python library to generate FDI attack Inherited from the state estimation tool run_AC_SE Author: W XU """ from utils.class_se import SE from pypower.api import * import numpy as np import warnings class FDI(SE): # Inherit from the Class SE def __init__(self, case, noise_sigma, idx, fpr): super(...
32.032787
104
0.62129
291
1,954
3.883162
0.360825
0.056637
0.038938
0.030089
0.106195
0
0
0
0
0
0
0.006522
0.293756
1,954
61
105
32.032787
0.812319
0.267656
0
0
1
0
0.07997
0
0
0
0
0
0
1
0.111111
false
0
0.148148
0
0.37037
0
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
f19f1821c4cda148832c893a23fd3776a46781a9
4,616
py
Python
pyleecan/GUI/Dialog/DMachineSetup/SLamParam/DAVDuct/PVentUD/Ui_PVentUD.py
EmileDvs/pyleecan
ad2f5f25c089a981f373557a198da51c62407928
[ "Apache-2.0" ]
95
2019-01-23T04:19:45.000Z
2022-03-17T18:22:10.000Z
pyleecan/GUI/Dialog/DMachineSetup/SLamParam/DAVDuct/PVentUD/Ui_PVentUD.py
thalesmaoa/pyleecan
c4fdc6362fdeba3d0766d5d1df3ff9c97c3f9fa3
[ "Apache-2.0" ]
366
2019-02-20T07:15:08.000Z
2022-03-31T13:37:23.000Z
pyleecan/GUI/Dialog/DMachineSetup/SLamParam/DAVDuct/PVentUD/Ui_PVentUD.py
thalesmaoa/pyleecan
c4fdc6362fdeba3d0766d5d1df3ff9c97c3f9fa3
[ "Apache-2.0" ]
74
2019-01-24T01:47:31.000Z
2022-02-25T05:44:42.000Z
# -*- coding: utf-8 -*- # File generated according to PVentUD.ui # WARNING! All changes made in this file will be lost! ## WARNING! All changes made in this file will be lost when recompiling UI file! ################################################################################ from PySide2.QtCore import * from Py...
38.466667
88
0.69779
496
4,616
6.391129
0.25
0.066246
0.100946
0.020505
0.182334
0.05489
0.025868
0.025868
0.025868
0.025868
0
0.027249
0.181109
4,616
119
89
38.789916
0.811376
0.046144
0
0
1
0
0.052144
0.005562
0
0
0
0
0
1
0.025316
false
0
0.101266
0
0.139241
0
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
f19f369ea27e2465146582fad2702a9212537bdc
3,395
py
Python
config/develop/develop_config.py
Eastwu5788/Heron
646eeaacea77e293c6eccc6dad82a04ece9294a3
[ "Apache-2.0" ]
7
2018-01-29T02:46:31.000Z
2018-03-25T11:15:10.000Z
config/develop/develop_config.py
Eastwu5788/Heron
646eeaacea77e293c6eccc6dad82a04ece9294a3
[ "Apache-2.0" ]
4
2021-06-08T19:38:03.000Z
2022-03-11T23:18:46.000Z
config/develop/develop_config.py
Eastwu5788/Heron
646eeaacea77e293c6eccc6dad82a04ece9294a3
[ "Apache-2.0" ]
1
2021-06-12T14:14:35.000Z
2021-06-12T14:14:35.000Z
""" 开发环境的配置文件类 配置内容项目: 1. MySql 2. Redis 3. Memcached 4. Mongodb """ import configparser import os from config.base.base_config import BaseConfig basedir = os.path.abspath(os.path.dirname(__file__)) INI_MYSQL = configparser.ConfigParser() INI_MYSQL.read(os.path.join(basedir, 'mysql.ini')) INI_MEMCACHED = configpar...
29.780702
102
0.666274
422
3,395
5.026066
0.248815
0.101839
0.045262
0.026403
0.167845
0
0
0
0
0
0
0.00147
0.198233
3,395
113
103
30.044248
0.777737
0.081001
0
0.04918
0
0
0.190367
0.024574
0
0
0
0.00885
0
1
0.04918
false
0.032787
0.04918
0
0.52459
0
0
0
0
null
0
0
0
0
0
0
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
f1a1fe9f972963ae5ce859de4562e39b66a551ba
44,900
py
Python
src/SensorTag/SensorTag.py
NullMember/sensortag-bgapi
5821f81551c739cb863f98e05ab9f654260e5af5
[ "MIT" ]
null
null
null
src/SensorTag/SensorTag.py
NullMember/sensortag-bgapi
5821f81551c739cb863f98e05ab9f654260e5af5
[ "MIT" ]
null
null
null
src/SensorTag/SensorTag.py
NullMember/sensortag-bgapi
5821f81551c739cb863f98e05ab9f654260e5af5
[ "MIT" ]
null
null
null
import bgapi.module import time import serial.tools.list_ports from enum import Enum class SensorTagServices(Enum): Device = "1800" DeviceInformation = "180A" Battery = "180F" Button = "FFE0" IRTemp = "F000AA00-0451-4000-B000-000000000000" H...
38.441781
189
0.605078
4,004
44,900
6.768981
0.158591
0.040291
0.045382
0.039258
0.395196
0.321367
0.279858
0.247759
0.209313
0.130023
0
0.061867
0.294053
44,900
1,168
190
38.441781
0.793198
0.010089
0
0.282723
0
0
0.077261
0.029761
0
0
0.009635
0
0
1
0.143456
false
0.004188
0.004188
0.033508
0.534031
0
0
0
0
null
0
0
0
0
0
0
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
f1a503608589e9b1c82b52a11a3216a0f208f37b
2,263
py
Python
scripts/framework-applications/export-framework-applicant-details.py
alphagov-mirror/digitalmarketplace-scripts
8a7ef9b2b5f5fffea6e012bd676b095a27d35101
[ "MIT" ]
1
2020-06-23T01:55:31.000Z
2020-06-23T01:55:31.000Z
scripts/framework-applications/export-framework-applicant-details.py
alphagov-mirror/digitalmarketplace-scripts
8a7ef9b2b5f5fffea6e012bd676b095a27d35101
[ "MIT" ]
267
2015-10-12T12:43:52.000Z
2021-08-19T10:38:55.000Z
scripts/framework-applications/export-framework-applicant-details.py
alphagov-mirror/digitalmarketplace-scripts
8a7ef9b2b5f5fffea6e012bd676b095a27d35101
[ "MIT" ]
7
2015-11-11T16:47:41.000Z
2021-04-10T18:03:04.000Z
#!/usr/bin/env python """Export supplier "about you" information for suppliers who applied to a framework. This report includes registered company information and contact details. Usage: scripts/framework-applications/export-framework-applicant-details.py <stage> <framework_slug> <output_dir> Options: --ve...
35.359375
111
0.73133
288
2,263
5.541667
0.4375
0.022556
0.045113
0.058271
0.155388
0.126566
0.076441
0.076441
0
0
0
0.002134
0.171896
2,263
63
112
35.920635
0.84952
0.267786
0
0
0
0
0.075288
0.015179
0
0
0
0
0
1
0
false
0
0.342857
0
0.342857
0
0
0
0
null
0
0
0
0
0
0
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
f1b04fc6bbf58da6c438bb1fc1f0d94b3be9fb62
659
py
Python
leetcode/easy/guess_number_higher_or_lower/py/solution.py
lilsweetcaligula/Online-Judges
48454a8e6b5b86f80e89eca1b396480df8960cfd
[ "MIT" ]
null
null
null
leetcode/easy/guess_number_higher_or_lower/py/solution.py
lilsweetcaligula/Online-Judges
48454a8e6b5b86f80e89eca1b396480df8960cfd
[ "MIT" ]
null
null
null
leetcode/easy/guess_number_higher_or_lower/py/solution.py
lilsweetcaligula/Online-Judges
48454a8e6b5b86f80e89eca1b396480df8960cfd
[ "MIT" ]
null
null
null
# The guess API is already defined for you. # @param num, your guess # @return -1 if my number is lower, 1 if my number is higher, otherwise return 0 # def guess(num): class Solution(object): def guessNumber(self, n, lo=0): """ :type n: int :rtype: int """ if lo >= n: ...
23.535714
80
0.4522
82
659
3.634146
0.426829
0.07047
0.033557
0.073826
0.275168
0
0
0
0
0
0
0.022161
0.4522
659
27
81
24.407407
0.803324
0.280728
0
0.153846
0
0
0
0
0
0
0
0
0
1
0.076923
false
0
0
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
f1b095d3f2c07f6638152125e091699789aef3c5
537
py
Python
LeetCode/10.02-group-anagrams-lcci.py
leaving-voider/LeetCode.cn-Record
2922cbdab85556bc0625adc9e6ce44849232e4f4
[ "MIT" ]
null
null
null
LeetCode/10.02-group-anagrams-lcci.py
leaving-voider/LeetCode.cn-Record
2922cbdab85556bc0625adc9e6ce44849232e4f4
[ "MIT" ]
null
null
null
LeetCode/10.02-group-anagrams-lcci.py
leaving-voider/LeetCode.cn-Record
2922cbdab85556bc0625adc9e6ce44849232e4f4
[ "MIT" ]
null
null
null
############################################################################################### # 直接暴力,遍历一次,每次要排序 ########### # 时间复杂度:O(n*klogk),n为strs长度,k为每个串的长度 # 空间复杂度:O(nk),哈希表存放全部字符串 ############################################################################################### class Solution: def group...
38.357143
96
0.366853
41
537
4.658537
0.707317
0.073298
0
0
0
0
0
0
0
0
0
0
0.165736
537
14
97
38.357143
0.426339
0.13594
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.5
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
f1b30fdcb0e0272ef4bb0c4746203371ce5e108d
1,713
py
Python
nnm.py
underwateroverlander/Docker-NNM
984b2e7c053208d7893eb6edad4f2aa42f5b8ed7
[ "MIT" ]
null
null
null
nnm.py
underwateroverlander/Docker-NNM
984b2e7c053208d7893eb6edad4f2aa42f5b8ed7
[ "MIT" ]
null
null
null
nnm.py
underwateroverlander/Docker-NNM
984b2e7c053208d7893eb6edad4f2aa42f5b8ed7
[ "MIT" ]
1
2022-03-15T18:50:32.000Z
2022-03-15T18:50:32.000Z
#!/usr/bin/env python import os import subprocess #Changing Python working directory to script directory. os.chdir(os.path.dirname(os.path.abspath(__file__))) #Get activation code from user and prepend activation CLI activation_code = input('Please press enter and input your activation code. If connecting to Tenable.sc...
43.923077
128
0.674256
246
1,713
4.642276
0.414634
0.091068
0.1331
0.063047
0.302977
0.267075
0.222417
0.222417
0.169877
0.169877
0
0.004711
0.132516
1,713
38
129
45.078947
0.763795
0.177466
0
0.074074
0
0
0.442775
0.020029
0
0
0
0
0
1
0
false
0.074074
0.074074
0
0.074074
0
0
0
0
null
0
0
0
0
0
0
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
f1c4408762f0c457cae384712eaa527b9b7d6a09
2,764
py
Python
app_server/tools/authdb.py
ntkleynhans/stp-app
564b73ecb0f0fadae46bbcd50abbb086ea0c2a61
[ "Apache-2.0" ]
null
null
null
app_server/tools/authdb.py
ntkleynhans/stp-app
564b73ecb0f0fadae46bbcd50abbb086ea0c2a61
[ "Apache-2.0" ]
null
null
null
app_server/tools/authdb.py
ntkleynhans/stp-app
564b73ecb0f0fadae46bbcd50abbb086ea0c2a61
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Simple script to make empty authentication database ("auth.db") for the application server. """ from __future__ import unicode_literals, division, print_function #Py2 __author__ = "Daniel van Niekerk" __email__ = "dvn.demitasse@gmail.com" import os import argparse t...
47.655172
192
0.487699
253
2,764
5.146245
0.505929
0.032258
0.029954
0.030722
0.074501
0.047619
0.047619
0.047619
0
0
0
0.018937
0.407742
2,764
57
193
48.491228
0.77642
0.073806
0
0.142857
0
0.02381
0.211788
0.009037
0
0
0
0
0
1
0.02381
false
0.071429
0.166667
0
0.214286
0.02381
0
0
0
null
0
0
0
0
0
0
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
f1c77ce85f9a89cb0e5e1aa9995a6516b5f6c872
7,522
py
Python
ux/utils/sequences.py
vahndi/ux
8acb3c07327e547ee948788536b6d6d1d7815bb2
[ "MIT" ]
null
null
null
ux/utils/sequences.py
vahndi/ux
8acb3c07327e547ee948788536b6d6d1d7815bb2
[ "MIT" ]
43
2019-05-30T12:26:52.000Z
2020-08-02T21:57:24.000Z
ux/utils/sequences.py
vahndi/ux
8acb3c07327e547ee948788536b6d6d1d7815bb2
[ "MIT" ]
null
null
null
from collections import OrderedDict from datetime import date, timedelta, datetime from typing import List from ux.sequences.action_sequence import ActionSequence from ux.compound_types import DatePair, DateTimePair from ux.utils.dates import monday_on_or_before, date_to_datetime def _get_sequence_start_end_dates(se...
35.149533
79
0.677214
1,013
7,522
4.768016
0.084896
0.055072
0.022774
0.026087
0.789441
0.73499
0.669772
0.614907
0.585921
0.567909
0
0.004322
0.261765
7,522
213
80
35.314554
0.865478
0.249136
0
0.474074
0
0
0
0
0
0
0
0
0
1
0.044444
false
0
0.044444
0
0.162963
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
f1c9ce71322d1a4344091882ed0b410891901677
1,723
py
Python
myssite/polls/views.py
hotai1806/web-server-django
47ff074bce0a192749cb9b246bb700b97cc194d3
[ "Unlicense" ]
null
null
null
myssite/polls/views.py
hotai1806/web-server-django
47ff074bce0a192749cb9b246bb700b97cc194d3
[ "Unlicense" ]
null
null
null
myssite/polls/views.py
hotai1806/web-server-django
47ff074bce0a192749cb9b246bb700b97cc194d3
[ "Unlicense" ]
null
null
null
from django.shortcuts import get_object_or_404, render from django.template import loader from .models import Question, Choice # Create your views here. from django.http import HttpResponse, HttpResponseRedirect from django.urls import reverse from django.views import generic class IndexView(generic.ListView): """...
35.895833
86
0.694719
206
1,723
5.665049
0.412621
0.042845
0.028278
0.03599
0.152528
0.101114
0.101114
0.101114
0.101114
0.101114
0
0.008602
0.190366
1,723
47
87
36.659574
0.827957
0.184562
0
0.058824
0
0
0.152567
0
0
0
0
0
0
1
0.088235
false
0.029412
0.176471
0
0.647059
0
0
0
0
null
0
0
0
0
0
0
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
f1ce0d459ec964504f7421cf331b59ad062fe528
5,738
py
Python
run.py
kelvinrono/Password_Locker
038ef232deb7694d560362248b0da728c83ed7a7
[ "MIT" ]
null
null
null
run.py
kelvinrono/Password_Locker
038ef232deb7694d560362248b0da728c83ed7a7
[ "MIT" ]
null
null
null
run.py
kelvinrono/Password_Locker
038ef232deb7694d560362248b0da728c83ed7a7
[ "MIT" ]
null
null
null
#!/usr/bin/env python3.8 from user import User import random from credential import Credentials def createUserAccount(firstName, lastName, username, password): ''' This function will create a new user account ''' new_user = User(firstName, lastName, username,password) return new_user def create_cre...
36.547771
216
0.542001
567
5,738
5.379189
0.229277
0.021639
0.022951
0.021639
0.131803
0.08459
0.08459
0.022951
0.022951
0
0
0.004988
0.371035
5,738
156
217
36.782051
0.840122
0.072325
0
0.242424
0
0.060606
0.287687
0.027426
0
0
0
0
0
1
0.10101
false
0.242424
0.030303
0.020202
0.191919
0.373737
0
0
0
null
0
0
0
0
0
0
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
f1d9dec8720a7d09edaafae48a265b674f60669c
793
py
Python
resample.py
DavidWD783/python-datacamp-practice
9e3182f09fc6de78fe5222c28c9b831027f0c9fa
[ "MIT" ]
null
null
null
resample.py
DavidWD783/python-datacamp-practice
9e3182f09fc6de78fe5222c28c9b831027f0c9fa
[ "MIT" ]
null
null
null
resample.py
DavidWD783/python-datacamp-practice
9e3182f09fc6de78fe5222c28c9b831027f0c9fa
[ "MIT" ]
null
null
null
# Import all packages import pandas as pd import numpy as np import matplotlib.pyplot as plt import scipy.io import datetime import re # Import dataset from url from urllib.request import urlretrieve # url = 'https://assets.datacamp.com/production/course_1639/datasets/weather_data_austin_2010.csv' url = 'https://asset...
28.321429
111
0.738966
120
793
4.775
0.575
0.036649
0.048866
0.076789
0.184991
0.184991
0.184991
0.184991
0.184991
0
0
0.029453
0.100883
793
28
112
28.321429
0.774194
0.326608
0
0
0
0
0.242366
0
0
0
0
0
0
1
0
false
0
0.466667
0
0.466667
0.266667
0
0
0
null
0
0
0
0
0
0
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
f1db10f41f344c09237c831630c07cfc4745da74
12,179
py
Python
src/pymortests/fixtures/operator.py
andreasbuhr/pymor
0ed047ea525f8b1d52b82d7a5be85fff83c83d25
[ "Unlicense" ]
null
null
null
src/pymortests/fixtures/operator.py
andreasbuhr/pymor
0ed047ea525f8b1d52b82d7a5be85fff83c83d25
[ "Unlicense" ]
null
null
null
src/pymortests/fixtures/operator.py
andreasbuhr/pymor
0ed047ea525f8b1d52b82d7a5be85fff83c83d25
[ "Unlicense" ]
null
null
null
# This file is part of the pyMOR project (http://www.pymor.org). # Copyright Holders: Rene Milk, Stephan Rave, Felix Schindler # License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) from __future__ import absolute_import, division, print_function import numpy as np import pytest from pymor.ope...
45.614232
122
0.755317
1,457
12,179
5.988332
0.100206
0.057765
0.086648
0.089398
0.772722
0.743037
0.668539
0.644699
0.568138
0.44149
0
0.010407
0.163724
12,179
266
123
45.785714
0.846244
0.020445
0
0.134831
0
0
0.000839
0
0
0
0
0
0
1
0.073034
false
0
0.08427
0.016854
0.230337
0.005618
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
f1e147c0529b0c69cb6127b19c8d9bf50f341234
349
py
Python
tests/pyb/modstm.py
learnforpractice/micropython-cpp
004bc8382f74899e7b876cc29bfa6a9cc976ba10
[ "MIT" ]
13,648
2015-01-01T01:34:51.000Z
2022-03-31T16:19:53.000Z
tests/pyb/modstm.py
learnforpractice/micropython-cpp
004bc8382f74899e7b876cc29bfa6a9cc976ba10
[ "MIT" ]
7,092
2015-01-01T07:59:11.000Z
2022-03-31T23:52:18.000Z
tests/pyb/modstm.py
learnforpractice/micropython-cpp
004bc8382f74899e7b876cc29bfa6a9cc976ba10
[ "MIT" ]
4,942
2015-01-02T11:48:50.000Z
2022-03-31T19:57:10.000Z
# test stm module import stm import pyb # test storing a full 32-bit number # turn on then off the A15(=yellow) LED BSRR = 0x18 stm.mem32[stm.GPIOA + BSRR] = 0x00008000 pyb.delay(100) print(hex(stm.mem32[stm.GPIOA + stm.GPIO_ODR] & 0x00008000)) stm.mem32[stm.GPIOA + BSRR] = 0x80000000 print(hex(stm.mem32[stm.GPIOA + ...
24.928571
60
0.730659
59
349
4.288136
0.525424
0.126482
0.173913
0.252964
0.505929
0.347826
0.347826
0.347826
0.347826
0.347826
0
0.18
0.140401
349
13
61
26.846154
0.663333
0.249284
0
0.25
0
0
0
0
0
0
0.170543
0
0
1
0
false
0
0.25
0
0.25
0.25
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
f1e14e36301fa21dfaaa6040eda2bda748611e5d
8,659
py
Python
mpcontribs-users/mpcontribs/users/dilute_solute_diffusion/pre_submission.py
josuav1/MPContribs
3cbf0e83ba6cd749dd4fc988c9f6ad076b05f935
[ "MIT" ]
1
2019-07-03T04:38:58.000Z
2019-07-03T04:38:58.000Z
mpcontribs-users/mpcontribs/users/dilute_solute_diffusion/pre_submission.py
josuav1/MPContribs
3cbf0e83ba6cd749dd4fc988c9f6ad076b05f935
[ "MIT" ]
null
null
null
mpcontribs-users/mpcontribs/users/dilute_solute_diffusion/pre_submission.py
josuav1/MPContribs
3cbf0e83ba6cd749dd4fc988c9f6ad076b05f935
[ "MIT" ]
1
2019-07-03T04:39:04.000Z
2019-07-03T04:39:04.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import os, json, requests from pandas import read_excel, isnull, ExcelWriter from mpcontribs.io.core.recdict import RecursiveDict from mpcontribs.io.core.utils import clean_value, nest_dict from mpcontribs.users.utils import duplicate_check @duplicate_che...
43.079602
100
0.525118
1,136
8,659
3.873239
0.193662
0.031818
0.045455
0.05
0.449318
0.437727
0.429773
0.417273
0.376818
0.354091
0
0.014903
0.318051
8,659
200
101
43.295
0.730229
0.013281
0
0.224138
0
0
0.268852
0.019438
0
0
0
0
0
0
null
null
0
0.04023
null
null
0.103448
0
0
0
null
0
0
0
0
0
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
f1e59d5569716344616dbf26c5bd9458ed237e7e
347
py
Python
lintcode/539-Move-Zeros/MoveZeros.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
lintcode/539-Move-Zeros/MoveZeros.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
lintcode/539-Move-Zeros/MoveZeros.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
class Solution: # @param {int[]} nums an integer array # @return nothing, do this in-place def moveZeroes(self, nums): # Write your code here i = 0 for j in xrange(len(nums)): if nums[j]: num = nums[j] nums[j] = 0 nums[i] = ...
26.692308
42
0.446686
44
347
3.522727
0.681818
0.096774
0
0
0
0
0
0
0
0
0
0.015707
0.449568
347
12
43
28.916667
0.795812
0.262248
0
0
0
0
0
0
0
0
0
0.083333
0
1
0.111111
false
0
0
0
0.222222
0
0
0
0
null
0
0
0
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
f1e78952e5c9f5e9e8ddd3c82e715ca81ea93a8e
1,250
py
Python
test.py
focusexplorer/AI_hand_digit_recognition
52e6ae8596e0bcbf6ba832a7b9f1087051ff67d1
[ "MIT" ]
null
null
null
test.py
focusexplorer/AI_hand_digit_recognition
52e6ae8596e0bcbf6ba832a7b9f1087051ff67d1
[ "MIT" ]
null
null
null
test.py
focusexplorer/AI_hand_digit_recognition
52e6ae8596e0bcbf6ba832a7b9f1087051ff67d1
[ "MIT" ]
null
null
null
from PIL import Image import sys import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt import glob import re import copy def relu(x): y=copy.deepcopy(x); y[y<0]*=0.1; # print 'x=',x,'y=',y return y; # if x>=0: # return x; # else: # return 0.1*x; def drelu(x): y=copy.deepcopy(x); y[y>=0]...
14.880952
38
0.616
257
1,250
2.976654
0.225681
0.064052
0.015686
0.036601
0.215686
0.181699
0.124183
0.124183
0.081046
0.081046
0
0.060721
0.1568
1,250
84
39
14.880952
0.665085
0.1024
0
0.1
0
0
0.034203
0
0
0
0
0
0
0
null
null
0
0.133333
null
null
0.216667
0
0
0
null
0
0
0
0
0
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
f1e80d2ebd33aa4a4c538415c1b51cff43cb5afd
25,278
py
Python
src/interfaces/python/opengm/learning/__init__.py
chaubold/opengm
acc42b98b713db33f2b35aad05a7a1cf9752e862
[ "MIT" ]
null
null
null
src/interfaces/python/opengm/learning/__init__.py
chaubold/opengm
acc42b98b713db33f2b35aad05a7a1cf9752e862
[ "MIT" ]
null
null
null
src/interfaces/python/opengm/learning/__init__.py
chaubold/opengm
acc42b98b713db33f2b35aad05a7a1cf9752e862
[ "MIT" ]
null
null
null
from _learning import * from _learning import _lunarySharedFeatFunctionsGen,_lpottsFunctionsGen import numpy import struct from opengm import index_type,value_type, label_type, graphicalModel,gridVis from opengm import configuration as opengmConfig, LUnaryFunction from opengm import to_native_boost_python_enum_converte...
34.770289
145
0.644988
2,527
25,278
6.368421
0.158686
0.014789
0.004971
0.006462
0.539551
0.517989
0.478531
0.434164
0.416641
0.394084
0
0.012566
0.244442
25,278
726
146
34.818182
0.830043
0.085212
0
0.468085
0
0.006383
0.06763
0.010585
0
0
0
0
0.051064
0
null
null
0
0.03617
null
null
0.017021
0
0
0
null
0
0
0
0
0
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
f1eeaded22c2987ece8892afec3dea06e56968eb
761
py
Python
gigya/backends/gigya.py
fmalina/django-gigya
32f8342b498582bf16ec6dbce6b75afec1d9e717
[ "BSD-3-Clause" ]
1
2021-04-14T18:49:17.000Z
2021-04-14T18:49:17.000Z
gigya/backends/gigya.py
fmalina/django-gigya
32f8342b498582bf16ec6dbce6b75afec1d9e717
[ "BSD-3-Clause" ]
null
null
null
gigya/backends/gigya.py
fmalina/django-gigya
32f8342b498582bf16ec6dbce6b75afec1d9e717
[ "BSD-3-Clause" ]
1
2019-03-11T20:13:10.000Z
2019-03-11T20:13:10.000Z
""" GigyaAuth class implementing calls to GIGYA REST API method = "socialize.setStatus" params = {"uid": "PUT-UID-HERE", "status": "I feel great"} """ from GSSDK import GSRequest, SigUtils from django.conf import settings class GigyaAuth: ERROR_CODE_VALIDATION = 400009 ERROR_CODE_UNIQUE_IDENTIF...
29.269231
89
0.671485
88
761
5.647727
0.625
0.054326
0.052314
0
0
0
0
0
0
0
0
0.024096
0.236531
761
25
90
30.44
0.831325
0.219448
0
0
0
0
0
0
0
0
0
0
0
1
0.071429
false
0
0.142857
0
0.571429
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
7b000514a09170955a52df96e0c9c379d405bbc1
1,570
py
Python
sculpture/models/region.py
kingsdigitallab/crsbi-django
649ed0d90a798454fd8bf96e120d0be4c06e293d
[ "MIT" ]
1
2019-02-03T12:00:36.000Z
2019-02-03T12:00:36.000Z
sculpture/models/region.py
kingsdigitallab/crsbi-django
649ed0d90a798454fd8bf96e120d0be4c06e293d
[ "MIT" ]
null
null
null
sculpture/models/region.py
kingsdigitallab/crsbi-django
649ed0d90a798454fd8bf96e120d0be4c06e293d
[ "MIT" ]
null
null
null
from django.db import models import sculpture.constants from .base_model import BaseModel from .period import Period from .region_type import RegionType class Region (BaseModel): name = models.CharField(max_length=200) region_type = models.ForeignKey(RegionType, related_name='regions') class Meta: ...
26.610169
77
0.63758
178
1,570
5.421348
0.353933
0.041451
0.034197
0.049741
0.25285
0.25285
0.25285
0.25285
0.25285
0.25285
0
0.002604
0.266242
1,570
58
78
27.068966
0.835069
0.173248
0
0
0
0
0.04538
0
0
0
0
0
0
1
0.172414
false
0
0.206897
0.068966
0.724138
0
0
0
0
null
0
0
0
0
0
0
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
7b0e42e2f02f3968252d21576bac428cd571f734
266
py
Python
Socket.py
FelipeLarsen/SocketWithPY
1cec273d574d692c4be48831db4921b0de8a20ef
[ "MIT" ]
null
null
null
Socket.py
FelipeLarsen/SocketWithPY
1cec273d574d692c4be48831db4921b0de8a20ef
[ "MIT" ]
null
null
null
Socket.py
FelipeLarsen/SocketWithPY
1cec273d574d692c4be48831db4921b0de8a20ef
[ "MIT" ]
null
null
null
#!/usr/bin/python import socket ip = raw_input("Digite o IP: ") port = input("Digite a porta: ") mysocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) if mysocket.connect_ex((ip, port)): print "- status [FECHADA]" else: print "- status [ABERTA]"
19
60
0.676692
38
266
4.631579
0.684211
0.125
0
0
0
0
0
0
0
0
0
0
0.165414
266
13
61
20.461538
0.792793
0.06015
0
0
0
0
0.258065
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
7b116e80bc3a603715c43a95081d9a48f3694501
1,106
py
Python
problems/p040.py
davisschenk/project-euler-python
1375412e6c8199ab02250bd67223c758d4df1725
[ "MIT" ]
null
null
null
problems/p040.py
davisschenk/project-euler-python
1375412e6c8199ab02250bd67223c758d4df1725
[ "MIT" ]
null
null
null
problems/p040.py
davisschenk/project-euler-python
1375412e6c8199ab02250bd67223c758d4df1725
[ "MIT" ]
2
2020-10-08T23:35:03.000Z
2020-10-09T00:28:36.000Z
from functools import lru_cache from math import floor from problem import Problem from utils.math import product class ChampernownesConstant(Problem, name="Champernowne's constant", expected=210): @classmethod def naive_nth_champ(cls, n: int): c = '' for _ in range(1, n): c += st...
26.333333
83
0.567812
164
1,106
3.719512
0.341463
0.02623
0.045902
0.039344
0.022951
0
0
0
0
0
0
0.0447
0.292043
1,106
41
84
26.97561
0.734355
0.035262
0
0.137931
0
0
0.021596
0
0
0
0
0
0
1
0.172414
false
0
0.137931
0.068966
0.517241
0
0
0
0
null
0
0
0
0
0
0
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
7b135a4eefea300efa30c689278af7fa6e97dd33
16,637
py
Python
src/openscm_runner/adapters/fair_adapter/_run_fair.py
maritsandstad/openscm-runner
03fe3977d85f840c2ca7990b84a0533c299a32d3
[ "BSD-3-Clause" ]
4
2020-07-21T02:55:21.000Z
2021-11-15T10:56:24.000Z
src/openscm_runner/adapters/fair_adapter/_run_fair.py
openscm/openscm-runner
7d5d05f00f4e21c94c776dc65bccce70305dee46
[ "BSD-3-Clause" ]
42
2020-04-06T00:09:33.000Z
2022-03-14T09:55:26.000Z
src/openscm_runner/adapters/fair_adapter/_run_fair.py
maritsandstad/openscm-runner
03fe3977d85f840c2ca7990b84a0533c299a32d3
[ "BSD-3-Clause" ]
7
2020-04-06T00:03:50.000Z
2021-03-31T10:12:21.000Z
""" Module for running FaIR """ import logging import multiprocessing from concurrent.futures import ProcessPoolExecutor import numpy as np from scmdata import ScmRun, run_append from ...settings import config from ..utils._parallel_process import _parallel_process from ._compat import fair_scm LOGGER = logging.getL...
44.723118
103
0.663701
1,901
16,637
5.769069
0.152551
0.182183
0.250752
0.036382
0.321966
0.286678
0.250388
0.087262
0.04933
0.028449
0
0.041834
0.193965
16,637
371
104
44.843666
0.775988
0.088177
0
0.013937
0
0
0.49599
0.078722
0
0
0
0
0
1
0.010453
false
0
0.027875
0
0.04878
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7b170eade4130b9a793e839c2aaca697dcdc62ff
1,508
py
Python
classes/calc_ipv4.py
jessicsous/Curso_Python
94c9b70ec03022b21ac23bf85918aa20ce4cfdd1
[ "MIT" ]
1
2021-09-21T01:50:10.000Z
2021-09-21T01:50:10.000Z
classes/calc_ipv4.py
jessicsous/Curso_Python
94c9b70ec03022b21ac23bf85918aa20ce4cfdd1
[ "MIT" ]
null
null
null
classes/calc_ipv4.py
jessicsous/Curso_Python
94c9b70ec03022b21ac23bf85918aa20ce4cfdd1
[ "MIT" ]
1
2021-10-04T19:49:04.000Z
2021-10-04T19:49:04.000Z
import re class CalcIpv4: def __init__(self, ip, mascara=None, prefixo=None): self.ip = ip self.mascara = mascara self.prefixo = prefixo @property def ip(self): return self._ip @property def mascara(self): return self._mascara @property def prefixo...
23.2
69
0.559019
186
1,508
4.38172
0.295699
0.03681
0.014724
0.019632
0.177914
0.177914
0.177914
0.177914
0.019632
0.019632
0
0.022527
0.322944
1,508
65
70
23.2
0.77571
0
0
0.22
0
0.02
0.091451
0.035785
0
0
0
0
0
0
null
null
0
0.02
null
null
0.02
0
0
0
null
0
0
0
0
0
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
7b1b88882615b9a2c9b49d0b4e02c39fd6098936
877
py
Python
Data-Structures/graph/dfs.py
Zenix27/data-structure-and-algorithms
7570a65f40c8fbb8a08845be749f507f58ed773f
[ "MIT" ]
81
2020-05-22T14:22:04.000Z
2021-12-18T10:11:23.000Z
Data-Structures/graph/dfs.py
Zenix27/data-structure-and-algorithms
7570a65f40c8fbb8a08845be749f507f58ed773f
[ "MIT" ]
4
2020-08-06T21:08:00.000Z
2021-03-31T16:07:50.000Z
Data-Structures/graph/dfs.py
Zenix27/data-structure-and-algorithms
7570a65f40c8fbb8a08845be749f507f58ed773f
[ "MIT" ]
37
2020-05-22T14:25:21.000Z
2021-12-30T03:13:13.000Z
def dfs(at, graph, visited): if visited[at]: return visited[at] = True print(at, end=" -> ") neighbours = graph[at] for next in neighbours: dfs(next, graph, visited) if __name__ == "__main__": n = int(input("No. of Nodes : ")) graph = [] for i in range(n): graph...
23.702703
88
0.553022
133
877
3.571429
0.338346
0.162105
0.221053
0.058947
0
0
0
0
0
0
0
0.045597
0.2748
877
36
89
24.361111
0.701258
0.050171
0
0
0
0
0.158537
0
0
0
0
0
0
1
0.055556
false
0
0
0
0.111111
0.166667
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7b1f5bdab6c7cb5abb4af8f3fa05ee1fd744b79b
5,699
py
Python
totalpass/target.py
0xHJK/TotalPass
d39877cc71737787bf8f58aebf251980c1fbbb3a
[ "MIT" ]
153
2020-04-27T09:10:10.000Z
2022-03-30T05:53:57.000Z
totalpass/target.py
gcxtx/TotalPass
d39877cc71737787bf8f58aebf251980c1fbbb3a
[ "MIT" ]
3
2020-07-20T11:22:33.000Z
2022-03-29T12:49:44.000Z
totalpass/target.py
gcxtx/TotalPass
d39877cc71737787bf8f58aebf251980c1fbbb3a
[ "MIT" ]
16
2020-04-27T10:09:26.000Z
2022-03-02T01:44:59.000Z
#!/usr/bin/env python3 # -*- coding=utf-8 -*- """ 格式化目标对象 """ import os import re import sys import copy import logging import socket import click from netaddr import IPNetwork from netaddr.core import AddrFormatError from .settings import opts from . import addons class Target(object): """ 测试目标对象,不...
33.721893
88
0.500614
633
5,699
4.417062
0.274882
0.02289
0.017883
0.025036
0.237124
0.18598
0.17525
0.150215
0.125179
0.072961
0
0.014842
0.373399
5,699
168
89
33.922619
0.768132
0.052641
0
0.174603
0
0
0.054632
0
0
0
0
0.005952
0
1
0.055556
false
0.055556
0.087302
0.007937
0.238095
0
0
0
0
null
0
0
0
0
0
0
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
7b204c105264a79bdc6efee3ecf6a41c40dce8de
818
py
Python
GreenPixelCounter.py
okaykacar/TennisBall-Tracking
1c4d1eb8c376c835ae8942580104d688399534e4
[ "Unlicense" ]
1
2022-03-14T22:41:42.000Z
2022-03-14T22:41:42.000Z
GreenPixelCounter.py
okaykacar/TennisBall-Tracking
1c4d1eb8c376c835ae8942580104d688399534e4
[ "Unlicense" ]
null
null
null
GreenPixelCounter.py
okaykacar/TennisBall-Tracking
1c4d1eb8c376c835ae8942580104d688399534e4
[ "Unlicense" ]
null
null
null
''' This program is not working completely I'm sorry about it because it's my fault. This program have to worked for Count the greenPixels on webcam but it is not working very well. Thank you Sincerely, Okay Kacar ''' import cv2 import numpy as np class greenfinder(): img = cv2.VideoCapture(0) l...
24.787879
96
0.643032
123
818
4.073171
0.520325
0.07984
0.047904
0.063872
0
0
0
0
0
0
0
0.083333
0.251834
818
33
97
24.787879
0.735294
0.257946
0
0
0
0
0.031773
0
0
0
0
0
0
1
0
false
0
0.125
0
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
7b20605b3e6f7a054127622d421c808dfd55030e
271
py
Python
src/fintrist_app/__main__.py
tristanbrown/fintrist
38875e4f2c3ab4db31195c798c4262a2f51e4a22
[ "MIT" ]
null
null
null
src/fintrist_app/__main__.py
tristanbrown/fintrist
38875e4f2c3ab4db31195c798c4262a2f51e4a22
[ "MIT" ]
null
null
null
src/fintrist_app/__main__.py
tristanbrown/fintrist
38875e4f2c3ab4db31195c798c4262a2f51e4a22
[ "MIT" ]
1
2022-01-21T21:10:38.000Z
2022-01-21T21:10:38.000Z
"""Main module for running the Flask app for Fintrist.""" from fintrist.scheduling import scheduler from fintrist_app.index import launch def run(): """Main method to run the app.""" scheduler.start() launch(debug=True) if __name__ == "__main__": run()
22.583333
57
0.697417
37
271
4.864865
0.621622
0.133333
0
0
0
0
0
0
0
0
0
0
0.184502
271
11
58
24.636364
0.81448
0.291513
0
0
0
0
0.044199
0
0
0
0
0
0
1
0.142857
true
0
0.285714
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
7b212584e5def1b13577c83eceafbb564fff6b4e
959
py
Python
scripts/make_query_file.py
neural-dialogue-metrics/LSDSCC
7e22681602f1249520b6c431ebbfc63fb1247d58
[ "Apache-2.0" ]
3
2019-03-19T15:57:17.000Z
2019-03-31T05:27:23.000Z
scripts/make_query_file.py
neural-dialogue-metrics/LSDSCC
7e22681602f1249520b6c431ebbfc63fb1247d58
[ "Apache-2.0" ]
null
null
null
scripts/make_query_file.py
neural-dialogue-metrics/LSDSCC
7e22681602f1249520b6c431ebbfc63fb1247d58
[ "Apache-2.0" ]
null
null
null
""" This script creates a query file from the test.group.json. The query file should be used as a part of the benchmark data. Specifically, the model takes the query file and generates responses for each query and then those responses are passed to the evaluator to get the score. The format of query file is one query ...
34.25
82
0.717414
153
959
4.398693
0.470588
0.053492
0.057949
0.029718
0
0
0
0
0
0
0
0
0.187696
959
27
83
35.518519
0.863928
0.348279
0
0
1
0
0.228525
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7b2c2593e3a4975bc906cd04ddd3beebf51cddec
2,445
py
Python
state/StateGame.py
uuk0/mcpython-4
1ece49257b3067027cc43b452a2fc44908d3514c
[ "MIT" ]
2
2019-08-21T08:23:45.000Z
2019-09-25T13:20:28.000Z
state/StateGame.py
uuk0/mcpython-4
1ece49257b3067027cc43b452a2fc44908d3514c
[ "MIT" ]
11
2019-08-21T08:46:01.000Z
2021-09-08T01:18:04.000Z
state/StateGame.py
uuk0/mcpython-4
1ece49257b3067027cc43b452a2fc44908d3514c
[ "MIT" ]
5
2019-08-30T08:19:57.000Z
2019-10-26T03:31:16.000Z
"""mcpython - a minecraft clone written in python licenced under MIT-licence authors: uuk, xkcdjerry original game by forgleman licenced under MIT-licence minecraft by Mojang blocks based on 1.14.4.jar of minecraft, downloaded on 20th of July, 2019""" from . import State, StatePartGame import gui.InventoryHandler imp...
32.171053
120
0.697751
316
2,445
5.272152
0.405063
0.027011
0.031212
0.037815
0.141657
0.141657
0.048019
0.048019
0
0
0
0.012226
0.197137
2,445
75
121
32.6
0.836475
0.101022
0
0.08
0
0
0.049749
0.021451
0
0
0
0
0
1
0.22
false
0
0.2
0.06
0.44
0
0
0
0
null
0
0
0
0
0
0
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
7b33c4d4e3169a4f49e867a7983d918b7688839f
1,759
py
Python
tests/test_utils.py
numirias/firefed
908114fe3a1506dcaafb23ce49e99f171e5e329d
[ "MIT" ]
55
2017-10-23T21:55:09.000Z
2022-03-29T18:47:33.000Z
tests/test_utils.py
numirias/firefed
908114fe3a1506dcaafb23ce49e99f171e5e329d
[ "MIT" ]
3
2017-12-20T22:00:32.000Z
2018-03-18T17:18:53.000Z
tests/test_utils.py
numirias/firefed
908114fe3a1506dcaafb23ce49e99f171e5e329d
[ "MIT" ]
4
2019-06-05T13:55:09.000Z
2021-04-20T09:26:28.000Z
from datetime import datetime import os import pytest from firefed.util import (ProfileNotFoundError, make_parser, moz_datetime, moz_to_unix_timestamp, profile_dir, tabulate) class TestUtils: def test_profile_dir(self, monkeypatch, mock_home): config_path = mock_home / '.mozil...
32.574074
74
0.6083
197
1,759
5.167513
0.385787
0.078585
0.10609
0.094303
0.19057
0.151277
0.102161
0.102161
0.102161
0
0
0.031646
0.28141
1,759
53
75
33.188679
0.773734
0.035247
0
0
0
0
0.094395
0
0
0
0
0.018868
0.261905
1
0.095238
false
0
0.095238
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
9e2adc79b5a60f3ec13c365d078b06e870b27d19
507
py
Python
language_acts/cms/migrations/0034_auto_20190129_1533.py
kingsdigitallab/language-acts-docker
5597804d16604b525795d3cde3d968028807d7e0
[ "MIT" ]
null
null
null
language_acts/cms/migrations/0034_auto_20190129_1533.py
kingsdigitallab/language-acts-docker
5597804d16604b525795d3cde3d968028807d7e0
[ "MIT" ]
null
null
null
language_acts/cms/migrations/0034_auto_20190129_1533.py
kingsdigitallab/language-acts-docker
5597804d16604b525795d3cde3d968028807d7e0
[ "MIT" ]
null
null
null
# Generated by Django 2.1.5 on 2019-01-29 15:33 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('cms', '0033_recordentry_hist_freq_image'), ] operations = [ migrations.AlterField( model_name='...
25.35
119
0.658777
60
507
5.416667
0.65
0.073846
0.086154
0.135385
0
0
0
0
0
0
0
0.048469
0.226824
507
19
120
26.684211
0.780612
0.088757
0
0
1
0
0.173913
0.069565
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9e2e809114c15413fed07a10c4fb53b54c07c84b
4,931
py
Python
openstack/volume_backup/v2/backup.py
wangrui1121/huaweicloud-sdk-python
240abe00288760115d1791012d4e3c4592d77ad1
[ "Apache-2.0" ]
43
2018-12-19T08:39:15.000Z
2021-07-21T02:45:43.000Z
openstack/volume_backup/v2/backup.py
wangrui1121/huaweicloud-sdk-python
240abe00288760115d1791012d4e3c4592d77ad1
[ "Apache-2.0" ]
11
2019-03-17T13:28:56.000Z
2020-09-23T23:57:50.000Z
openstack/volume_backup/v2/backup.py
wangrui1121/huaweicloud-sdk-python
240abe00288760115d1791012d4e3c4592d77ad1
[ "Apache-2.0" ]
47
2018-12-19T05:14:25.000Z
2022-03-19T15:28:30.000Z
# -*- coding:utf-8 -*- # Copyright 2018 Huawei Technologies Co.,Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not use # this file except in compliance with the License. You may obtain a copy of the # License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required...
34.725352
106
0.661529
586
4,931
5.438567
0.322526
0.109194
0.03075
0.015061
0.239724
0.211484
0.160653
0.135551
0.110449
0.079071
0
0.005271
0.230582
4,931
141
107
34.971631
0.834739
0.364429
0
0.289855
0
0
0.132038
0.016134
0
0
0
0
0
1
0.014493
false
0
0.043478
0
0.84058
0
0
0
0
null
0
0
0
0
0
0
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
9e3f061fea12c37b65fd1d112d687b22b04a5625
662
py
Python
tvempresa/src/apps/web/migrations/0008_auto_20200906_2302.py
ddvloayza/str3am-app
89c844cf8cfcc3c40e696db0feedfd1b21682989
[ "MIT" ]
null
null
null
tvempresa/src/apps/web/migrations/0008_auto_20200906_2302.py
ddvloayza/str3am-app
89c844cf8cfcc3c40e696db0feedfd1b21682989
[ "MIT" ]
null
null
null
tvempresa/src/apps/web/migrations/0008_auto_20200906_2302.py
ddvloayza/str3am-app
89c844cf8cfcc3c40e696db0feedfd1b21682989
[ "MIT" ]
null
null
null
# Generated by Django 2.2.4 on 2020-09-07 04:02 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('web', '0007_capitulos_mostrar_principal'), ] operations = [ migrations.AlterField( model_name='capitulos', name='mos...
27.583333
105
0.623867
68
662
5.941176
0.588235
0.079208
0.123762
0.143564
0
0
0
0
0
0
0
0.039014
0.26435
662
23
106
28.782609
0.790554
0.067976
0
0.235294
1
0
0.190244
0.052033
0
0
0
0
0
1
0
false
0
0.058824
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9e4336668979e347294e5e4d8e24bd849c167732
593
py
Python
mmaction/ops/roi_align/setup.py
evgeny-izutov/mmaction
c92d29af87f2373641e2d29bdb14705939fc5423
[ "Apache-2.0" ]
1
2021-03-13T13:07:39.000Z
2021-03-13T13:07:39.000Z
mmaction/ops/roi_align/setup.py
evgeny-izutov/mmaction
c92d29af87f2373641e2d29bdb14705939fc5423
[ "Apache-2.0" ]
null
null
null
mmaction/ops/roi_align/setup.py
evgeny-izutov/mmaction
c92d29af87f2373641e2d29bdb14705939fc5423
[ "Apache-2.0" ]
1
2020-06-03T18:17:15.000Z
2020-06-03T18:17:15.000Z
from setuptools import setup from torch.utils.cpp_extension import BuildExtension, CUDAExtension setup( name='roi_align_2d_cuda', ext_modules=[ CUDAExtension('roi_align_2d_cuda', [ 'src/roi_align_2d_cuda.cpp', 'src/roi_align_2d_kernel.cu', ]), ], cmdclass={'build...
23.72
67
0.632378
70
593
4.942857
0.328571
0.184971
0.115607
0.121387
0.526012
0.421965
0
0
0
0
0
0.017937
0.247892
593
24
68
24.708333
0.757848
0
0
0.454545
0
0
0.317032
0.172007
0
0
0
0
0
1
0
true
0
0.090909
0
0.090909
0
0
0
0
null
0
0
0
0
0
0
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
9e4faf5cd0a44b548d4a2625a5247f945ec4864c
328
py
Python
exampleProjects/restAPIWithSwagger/testContainer/test_main.py
rmetcalf9/baseapp_for_restapi_backend_with_swagger
15de62e65a39bc2e993e7b14003cb1a640351a17
[ "MIT" ]
null
null
null
exampleProjects/restAPIWithSwagger/testContainer/test_main.py
rmetcalf9/baseapp_for_restapi_backend_with_swagger
15de62e65a39bc2e993e7b14003cb1a640351a17
[ "MIT" ]
2
2018-04-26T09:52:13.000Z
2018-05-31T17:07:12.000Z
exampleProjects/restAPIWithSwagger/testContainer/test_main.py
rmetcalf9/baseapp_for_restapi_backend_with_swagger
15de62e65a39bc2e993e7b14003cb1a640351a17
[ "MIT" ]
null
null
null
#Script to test a running container import unittest import requests baseURL="http://virtualpresencepicture:8098" class test_containerAPI(unittest.TestCase): #Actual tests below def test_WeCanGetToSwaggerFile(self): result = requests.get(baseURL + "/api/swagger.json") self.assertEqual(result.status_code, 20...
23.428571
56
0.77439
39
328
6.435897
0.794872
0
0
0
0
0
0
0
0
0
0
0.024561
0.131098
328
13
57
25.230769
0.85614
0.158537
0
0
0
0
0.186131
0
0
0
0
0
0.142857
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
9e514fd7e51906e140306b8091dd82d10874d391
4,469
py
Python
terrain_viewer.py
vladetaStoj/TerrainGenerator
7fc9bbccb24930ce80fd7da147abaf6566159624
[ "MIT" ]
null
null
null
terrain_viewer.py
vladetaStoj/TerrainGenerator
7fc9bbccb24930ce80fd7da147abaf6566159624
[ "MIT" ]
null
null
null
terrain_viewer.py
vladetaStoj/TerrainGenerator
7fc9bbccb24930ce80fd7da147abaf6566159624
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Untitled15.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1nmm_l7PsXx5lnEqzn4aonhGCYkIZSxOA """ import os from PIL import Image # PIL library is required import pyglet from pyglet import gl from pyglet.gl import glu ...
29.019481
94
0.61177
637
4,469
4.178964
0.276295
0.027047
0.021037
0.024042
0.261458
0.201352
0.168295
0.168295
0.168295
0.168295
0
0.027367
0.288655
4,469
154
95
29.019481
0.810003
0.292683
0
0.12
1
0
0.009637
0
0
0
0
0
0
1
0.093333
false
0
0.066667
0
0.186667
0
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
9e567d85bdb227fefaaf9a37fc0e77bb08f25b1e
17,954
py
Python
contrail_provisioning/common/base.py
atsgen/contrail-provisioning
dda84a5ed7e17b5cc7148c2505e66ed3e8a86120
[ "Apache-2.0" ]
2
2015-10-29T19:36:26.000Z
2016-04-19T13:24:00.000Z
contrail_provisioning/common/base.py
atsgen/contrail-provisioning
dda84a5ed7e17b5cc7148c2505e66ed3e8a86120
[ "Apache-2.0" ]
1
2017-07-03T09:10:18.000Z
2017-07-03T09:10:18.000Z
contrail_provisioning/common/base.py
atsgen/contrail-provisioning
dda84a5ed7e17b5cc7148c2505e66ed3e8a86120
[ "Apache-2.0" ]
18
2016-01-14T23:10:39.000Z
2021-12-13T06:32:38.000Z
#!/usr/bin/python # # Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. # """Base Contrail Provisioning module.""" import os import re import sys import shutil import socket import argparse import tempfile import platform import ConfigParser from fabric.api import * from contrail_provisioning.common.temp...
44.550868
148
0.562716
2,077
17,954
4.630717
0.198363
0.031607
0.036598
0.024953
0.333125
0.270638
0.242878
0.167083
0.13901
0.114889
0
0.008119
0.32082
17,954
402
149
44.661692
0.78063
0.043946
0
0.218069
0
0.012461
0.208639
0.070574
0
0
0
0
0
0
null
null
0.006231
0.037383
null
null
0.024922
0
0
0
null
0
0
0
0
0
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
9e6176f4123f734d34a803d85b0702c20f34ce8c
1,759
py
Python
apps/www/behaviors.py
topnotchgeek/capnlog
2f667cc599cdc01ce56cf6770bc963e54c398805
[ "Apache-2.0" ]
null
null
null
apps/www/behaviors.py
topnotchgeek/capnlog
2f667cc599cdc01ce56cf6770bc963e54c398805
[ "Apache-2.0" ]
null
null
null
apps/www/behaviors.py
topnotchgeek/capnlog
2f667cc599cdc01ce56cf6770bc963e54c398805
[ "Apache-2.0" ]
null
null
null
import markdown from django.db import models from django.utils.text import slugify from conf import settings class Permalinkable(models.Model): slug = models.SlugField() class Meta: abstract = True def get_url_kwargs(self, **kwargs): kwargs.update(getattr(self, 'url_kwargs', {})) ...
23.144737
106
0.660603
219
1,759
5.155251
0.360731
0.048716
0.075288
0.093003
0.372896
0.319752
0.173605
0.173605
0.088574
0
0
0.004481
0.238772
1,759
75
107
23.453333
0.838686
0
0
0.208333
0
0
0.02274
0
0
0
0
0
0
1
0.083333
false
0
0.083333
0
0.645833
0
0
0
0
null
0
0
0
0
0
0
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
9e6270fc0eff5827861f8e3d1123564f31c8e939
4,381
py
Python
commands/feature_matrix_construction/main/methCorr2.py
cancerregulome/gidget
6c9e9a37f9992267c7505c7a396ff7e2638599ab
[ "MIT" ]
3
2016-02-22T21:29:23.000Z
2020-09-19T07:38:21.000Z
commands/feature_matrix_construction/main/methCorr2.py
cancerregulome/gidget
6c9e9a37f9992267c7505c7a396ff7e2638599ab
[ "MIT" ]
1
2015-01-16T02:33:59.000Z
2015-01-16T02:33:59.000Z
commands/feature_matrix_construction/main/methCorr2.py
cancerregulome/gidget
6c9e9a37f9992267c7505c7a396ff7e2638599ab
[ "MIT" ]
2
2015-12-27T08:40:12.000Z
2021-03-01T06:30:23.000Z
# -#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-# import miscClin import miscMath import miscMatrix import miscTCGA import plotMatrix import tsvIO import math import numpy import scipy.stats import sys # this flag defines whether we adjust the MAD, IQR, IDR, whichever # statistic based...
24.071429
90
0.457202
419
4,381
4.75179
0.372315
0.035158
0.013561
0.012054
0.121547
0.060773
0.060773
0.060773
0.060773
0.034154
0
0.020766
0.296508
4,381
181
91
24.20442
0.625243
0.142205
0
0.236364
0
0
0.122113
0.025115
0
0
0
0
0
0
null
null
0
0.090909
null
null
0.181818
0
0
0
null
0
0
0
0
0
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
9e69113ca09b95ab8586b6b0efc0814b8258f256
268
py
Python
example_project/myshop/urls.py
bluedisk/django-iamport
caa6884a0e7b5024eb0d3859f79a37c826d118a0
[ "MIT" ]
6
2018-10-03T11:44:37.000Z
2021-07-08T01:18:27.000Z
example_project/myshop/urls.py
bluedisk/django-iamport
caa6884a0e7b5024eb0d3859f79a37c826d118a0
[ "MIT" ]
2
2018-10-24T07:47:30.000Z
2019-09-24T20:39:55.000Z
example_project/myshop/urls.py
bluedisk/django-iamport
caa6884a0e7b5024eb0d3859f79a37c826d118a0
[ "MIT" ]
1
2020-06-19T06:06:26.000Z
2020-06-19T06:06:26.000Z
# -*- coding: utf-8 -*- from django.conf.urls import url from django.urls import path from . import views app_name = "myshop" urlpatterns = [ path('', views.home, name='home'), path('retry_order/<int:order_id>', views.retry_order, name='retry_order'), ]
16.75
78
0.66791
38
268
4.578947
0.526316
0.172414
0
0
0
0
0
0
0
0
0
0.004464
0.164179
268
15
79
17.866667
0.772321
0.078358
0
0
0
0
0.191837
0.106122
0
0
0
0
0
1
0
false
0
0.375
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
9e6a708716ff943f9fefb17f27b9f66b41be6f2c
549
py
Python
alembic/versions/97519c3acc64_.py
Nukesor/taxcli
f313acd2f1c9a551361a535f8428a17c53e6b468
[ "MIT" ]
null
null
null
alembic/versions/97519c3acc64_.py
Nukesor/taxcli
f313acd2f1c9a551361a535f8428a17c53e6b468
[ "MIT" ]
null
null
null
alembic/versions/97519c3acc64_.py
Nukesor/taxcli
f313acd2f1c9a551361a535f8428a17c53e6b468
[ "MIT" ]
null
null
null
"""empty message Revision ID: 97519c3acc64 Revises: 9ffd091d1d16 Create Date: 2016-11-17 00:36:18.728149 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '97519c3acc64' down_revision = '9ffd091d1d16' branch_labels = None depends_on = None def upgrade(): op...
18.931034
46
0.697632
78
549
4.807692
0.615385
0.04
0.08
0.096
0.16
0.101333
0.101333
0
0
0
0
0.11655
0.218579
549
28
47
19.607143
0.757576
0.258652
0
0
0
0
0.373434
0.055138
0
0
0
0
0
1
0.142857
false
0.071429
0.142857
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
9e6fe12adcc35b74766b6c21db524165a5134f32
2,176
py
Python
backend/flaskr/imgHandler.py
kcwong395/HideNSeek
ec92efcd00dc812df49c6892bf2d9fd22cf13e31
[ "MIT" ]
null
null
null
backend/flaskr/imgHandler.py
kcwong395/HideNSeek
ec92efcd00dc812df49c6892bf2d9fd22cf13e31
[ "MIT" ]
3
2022-01-13T03:54:31.000Z
2022-03-26T15:26:29.000Z
backend/flaskr/imgHandler.py
kcwong395/HideNSeek
ec92efcd00dc812df49c6892bf2d9fd22cf13e31
[ "MIT" ]
null
null
null
from functools import reduce from typing import List, Optional from PIL import Image from flaskr.textHandler import TextHandler class UnexpectedOutput(Exception): pass class ImgHandler: # TODO: make the output name dynamic @staticmethod def embed_msg(image: Image, byte_arr: List[List[int]]) -> Ima...
31.536232
77
0.509651
270
2,176
3.985185
0.311111
0.084572
0.02974
0.030669
0.184015
0.091078
0.091078
0.048327
0.048327
0.048327
0
0.018113
0.391085
2,176
68
78
32
0.793962
0.056526
0
0.372549
0
0
0.01416
0
0
0
0
0.014706
0
1
0.058824
false
0.019608
0.078431
0
0.27451
0
0
0
0
null
0
0
0
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
9e702d31605fe3cadf87cf5c379544e195fb96c1
1,131
py
Python
cidade_remessa_limpa.py
gu22/Roteiro_automate
43f029e711704a3d28e04e51f829841d955f2364
[ "MIT" ]
null
null
null
cidade_remessa_limpa.py
gu22/Roteiro_automate
43f029e711704a3d28e04e51f829841d955f2364
[ "MIT" ]
null
null
null
cidade_remessa_limpa.py
gu22/Roteiro_automate
43f029e711704a3d28e04e51f829841d955f2364
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Sep 30 21:32:58 2020 @author: glpyz """ import os.path import easygui import sys import glob import shutil import os import easygui import re from shutil import copyfile from unidecode import unidecode import openpyxl from openpyxl import load_workbook import pandas as pd fr...
21.339623
66
0.61008
154
1,131
4.461039
0.519481
0.065502
0.055313
0.081514
0
0
0
0
0
0
0
0.024764
0.250221
1,131
52
67
21.75
0.785377
0.138815
0
0.117647
0
0
0.054979
0
0
0
0
0
0
1
0
false
0
0.411765
0
0.411765
0
0
0
0
null
0
0
0
0
0
0
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
9e704a43dfb0b5496534f5b867c37635b35800c1
1,453
py
Python
deeplearningtoys/civilizationgenerator/modules/utils.py
CharlesPikachu/deeplearningtoys
46d09c328ebddfa76317d8d68006d86b7c84af63
[ "Apache-2.0" ]
8
2022-03-14T12:31:39.000Z
2022-03-30T12:21:30.000Z
deeplearningtoys/civilizationgenerator/modules/utils.py
CharlesPikachu/deeplearningtoys
46d09c328ebddfa76317d8d68006d86b7c84af63
[ "Apache-2.0" ]
1
2022-03-14T11:46:30.000Z
2022-03-14T11:46:30.000Z
deeplearningtoys/civilizationgenerator/modules/utils.py
CharlesPikachu/deeplearningtoys
46d09c328ebddfa76317d8d68006d86b7c84af63
[ "Apache-2.0" ]
1
2022-03-24T03:39:20.000Z
2022-03-24T03:39:20.000Z
''' Function: 定义诗歌生成模型 Author: Charles 微信公众号: Charles的皮卡丘 ''' import os import torch import logging import numpy as np '''touch dir''' def touchdir(dirname): if not os.path.exists(dirname): os.mkdir(dirname) return True return False '''创建dataloader''' def CreateDataloader(tang_re...
26.907407
196
0.678596
169
1,453
5.739645
0.461538
0.07732
0.090722
0.094845
0
0
0
0
0
0
0
0.008503
0.19064
1,453
54
197
26.907407
0.816327
0.044735
0
0.135135
0
0
0.059791
0
0
0
0
0
0
1
0.216216
false
0
0.108108
0
0.432432
0
0
0
0
null
0
0
0
0
0
0
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
9e7d31c045d2ad00008b6bae3fd51e346c50ea4a
3,104
py
Python
combine-namedtuples.py
motoom/farasabina
e4a3e0e3d8dd6543cf1b4d0ed10c3422481521a9
[ "MIT" ]
null
null
null
combine-namedtuples.py
motoom/farasabina
e4a3e0e3d8dd6543cf1b4d0ed10c3422481521a9
[ "MIT" ]
null
null
null
combine-namedtuples.py
motoom/farasabina
e4a3e0e3d8dd6543cf1b4d0ed10c3422481521a9
[ "MIT" ]
null
null
null
import glob import os import datetime import collections from pprint import pprint as pp import csv months = {"jan": 1, "feb": 2, "mar": 3, "apr": 4, "may": 5, "jun": 6, "jul": 7, "aug": 8, "sep": 9, "oct": 10, "nov": 11, "dec": 12} # Output files pre = csv.writer(open("pre.csv","wb")) post = csv.writer(...
34.10989
129
0.642075
396
3,104
5.022727
0.419192
0.013575
0.019608
0.025138
0.046254
0.046254
0
0
0
0
0
0.00745
0.221649
3,104
90
130
34.488889
0.815811
0.093428
0
0.065574
0
0
0.109023
0
0
0
0
0
0
0
null
null
0
0.098361
null
null
0.04918
0
0
0
null
0
0
0
0
0
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
9e7edb1dd614b78bbe59dd27b63275061d32414a
1,706
py
Python
redditsmtp.py
prawnsalad/RedditSmtp
80eacc1854c69d2f35eea4d5280783d438534042
[ "MIT" ]
2
2017-03-19T12:35:25.000Z
2019-11-16T04:28:42.000Z
redditsmtp.py
prawnsalad/RedditSmtp
80eacc1854c69d2f35eea4d5280783d438534042
[ "MIT" ]
null
null
null
redditsmtp.py
prawnsalad/RedditSmtp
80eacc1854c69d2f35eea4d5280783d438534042
[ "MIT" ]
null
null
null
import smtpd import asyncore from email.parser import Parser import praw class CustomSMTPServer(smtpd.SMTPServer): def process_message(self, peer, mailfrom, rcpttos, data): message = Parser().parsestr(data) reddit_user = rcpttos[0].split('@')[0] if self.debug: print 'Receiving message fro...
31.592593
109
0.635991
209
1,706
5.052632
0.344498
0.039773
0.05303
0.045455
0.19697
0.168561
0.125
0.125
0.125
0.125
0
0.008371
0.229777
1,706
53
110
32.188679
0.795282
0
0
0.121951
0
0
0.158851
0
0
0
0
0
0
0
null
null
0.02439
0.097561
null
null
0.146341
0
0
0
null
0
0
0
0
0
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
9e878d30dbaa4e37706d5a60e7fb6ba859a1e4cb
9,409
py
Python
native_client_sdk/src/tools/oshelpers.py
gavinp/chromium
681563ea0f892a051f4ef3d5e53438e0bb7d2261
[ "BSD-3-Clause" ]
1
2016-03-10T09:13:57.000Z
2016-03-10T09:13:57.000Z
native_client_sdk/src/tools/oshelpers.py
gavinp/chromium
681563ea0f892a051f4ef3d5e53438e0bb7d2261
[ "BSD-3-Clause" ]
1
2022-03-13T08:39:05.000Z
2022-03-13T08:39:05.000Z
native_client_sdk/src/tools/oshelpers.py
gavinp/chromium
681563ea0f892a051f4ef3d5e53438e0bb7d2261
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2012 The Native Client Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import fnmatch import glob import optparse import os import shutil import sys import time def IncludeFiles(filters, files): ...
30.157051
80
0.630141
1,312
9,409
4.490854
0.201982
0.022403
0.016293
0.033605
0.4574
0.375085
0.318907
0.294297
0.273931
0.264426
0
0.004278
0.254756
9,409
311
81
30.254019
0.835995
0.097035
0
0.506849
0
0
0.194112
0
0
0
0
0
0
0
null
null
0
0.031963
null
null
0.063927
0
0
0
null
0
0
0
0
0
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
9e8a3a5ba8884c0dd8983c12b645497a35fbdd11
4,737
py
Python
catkin_ws/devel/lib/python2.7/dist-packages/line_tracing/msg/_hsv_thresh.py
preethamam/ROS-TurtleBot-2DAreaScanning
bcd6c976347839d5f2d2bca15c331cf4de8af342
[ "MIT" ]
null
null
null
catkin_ws/devel/lib/python2.7/dist-packages/line_tracing/msg/_hsv_thresh.py
preethamam/ROS-TurtleBot-2DAreaScanning
bcd6c976347839d5f2d2bca15c331cf4de8af342
[ "MIT" ]
null
null
null
catkin_ws/devel/lib/python2.7/dist-packages/line_tracing/msg/_hsv_thresh.py
preethamam/ROS-TurtleBot-2DAreaScanning
bcd6c976347839d5f2d2bca15c331cf4de8af342
[ "MIT" ]
null
null
null
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from line_tracing/hsv_thresh.msg. Do not edit.""" import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct class hsv_thresh(genpy.Message): _md5sum = "0a5aabfc8bbb0749ec67edd76bf4b306" _type = "li...
33.125874
145
0.647667
718
4,737
4.06546
0.218663
0.020555
0.030832
0.04111
0.461459
0.461459
0.420349
0.420349
0.378212
0.343268
0
0.021387
0.230103
4,737
142
146
33.359155
0.778996
0.270635
0
0.484211
1
0
0.111549
0.016672
0
0
0.003031
0
0
1
0.084211
false
0
0.031579
0
0.242105
0
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
9e8f7750c6c404e7f5cdc164a139756b02f35e23
1,166
py
Python
cotest.py
akwn2/crumbles
0893d0b2e032e62d04dd9f0a16993d9b6d86256e
[ "MIT" ]
null
null
null
cotest.py
akwn2/crumbles
0893d0b2e032e62d04dd9f0a16993d9b6d86256e
[ "MIT" ]
null
null
null
cotest.py
akwn2/crumbles
0893d0b2e032e62d04dd9f0a16993d9b6d86256e
[ "MIT" ]
null
null
null
import Queue def coA(): a,b,c = 0,0,0 while True: a +=1 b +=1 c +=1 print "coA sent ('b',"+ str(a)+ ',' + str(b) + ',' + str(c) + ')' (nextCo,a,b,c) = yield ('b',a,b,c) print "coA got ('"+ str(nextCo) +"',"+ str(a)+ ',' + str(b) + ',' + str(c)+')' def coB(): ...
25.911111
86
0.413379
200
1,166
2.41
0.215
0.10166
0.116183
0.130705
0.489627
0.489627
0.489627
0.489627
0.489627
0.323651
0
0.020118
0.2753
1,166
44
87
26.5
0.550296
0.02916
0
0.210526
0
0
0.099115
0
0
0
0
0
0
0
null
null
0
0.026316
null
null
0.236842
0
0
0
null
0
0
0
0
0
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
9e9430ea1c695caaf040324638e75b4a35f94f1a
796
py
Python
learning/shadows_detection.py
keotl/vision_project
5601562e7562ebf005a067d93e3f3a90d9097c42
[ "MIT" ]
null
null
null
learning/shadows_detection.py
keotl/vision_project
5601562e7562ebf005a067d93e3f3a90d9097c42
[ "MIT" ]
null
null
null
learning/shadows_detection.py
keotl/vision_project
5601562e7562ebf005a067d93e3f3a90d9097c42
[ "MIT" ]
null
null
null
import os import cv2 import infra from vision_project.vision.image import Image from vision_project.vision.image_repository import LocalDirectoryImageRepository, LiveCapture, \ LiveCaptureNoCacheEmptying # image_repository = LocalDirectoryImageRepository(os.path.join(os.path.dirname(infra.__file__), "training_da...
26.533333
136
0.786432
100
796
5.99
0.47
0.125209
0.056761
0.076795
0.267112
0.173623
0.106845
0.106845
0
0
0
0.021038
0.104271
796
29
137
27.448276
0.819074
0.271357
0
0
0
0
0.04014
0
0
0
0
0
0
1
0
false
0
0.384615
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
9e9ab26cb67ddf68472865edf96d2e24724026db
30,097
py
Python
.deprecated/mod_armoring_extended/mod_armoring_extended203.py
angelsoft1/spoter-mods
cf7358f7a51930ecb871c5b9cae0e0a1712d2b06
[ "WTFPL" ]
150
2015-11-07T12:58:06.000Z
2022-03-19T17:52:34.000Z
.deprecated/mod_armoring_extended/mod_armoring_extended203.py
angelsoft1/spoter-mods
cf7358f7a51930ecb871c5b9cae0e0a1712d2b06
[ "WTFPL" ]
62
2015-12-17T02:11:18.000Z
2021-02-07T11:37:22.000Z
.deprecated/mod_armoring_extended/mod_armoring_extended203.py
angelsoft1/spoter-mods
cf7358f7a51930ecb871c5b9cae0e0a1712d2b06
[ "WTFPL" ]
97
2015-11-10T18:43:02.000Z
2022-01-28T20:58:23.000Z
# -*- coding: utf-8 -*- import datetime import re import random import string import os import json import codecs import urllib2 import urllib import threading import weakref from functools import partial import BigWorld import Math import GUI import Keys import game from constants import AUTH_REALM, VEHICLE_HIT_EFFEC...
45.740122
198
0.613682
3,793
30,097
4.674664
0.13024
0.015792
0.011167
0.015397
0.399301
0.301506
0.238847
0.208448
0.193221
0.17179
0
0.010872
0.251288
30,097
657
199
45.809741
0.775983
0.011264
0
0.183422
0
0.005291
0.144855
0.027135
0
0
0
0
0
0
null
null
0.003527
0.047619
null
null
0.026455
0
0
0
null
0
0
0
0
0
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
9ea5a3c8815c02dc41b913ed5f1842910db4d74d
2,581
py
Python
scrapqd/gql/leaves/regex.py
dduraipandian/scrapqd
7515ebebd54506af765c65e5c9b14331208e6cf6
[ "MIT" ]
null
null
null
scrapqd/gql/leaves/regex.py
dduraipandian/scrapqd
7515ebebd54506af765c65e5c9b14331208e6cf6
[ "MIT" ]
2
2022-03-14T00:42:59.000Z
2022-03-15T15:50:14.000Z
scrapqd/gql/leaves/regex.py
dduraipandian/scrapqd
7515ebebd54506af765c65e5c9b14331208e6cf6
[ "MIT" ]
null
null
null
from graphql import GraphQLArgument as Argument from graphql import GraphQLBoolean as Boolean from graphql import GraphQLField as Field from graphql import GraphQLNonNull as NonNull from graphql import GraphQLResolveInfo as ResolveInfo from graphql import GraphQLString as String from scrapqd.gql import constants as co...
48.698113
126
0.681131
324
2,581
5.354938
0.351852
0.03804
0.05879
0.046686
0.081844
0.048415
0
0
0
0
0
0.001041
0.255327
2,581
52
127
49.634615
0.901665
0.428516
0
0
0
0
0.061429
0
0
0
0
0
0
1
0.037037
false
0
0.37037
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
9ebf7181212689dbf0b800491a52004406c9aac7
428
py
Python
pages/prediction.py
ft-airbnb-price-01/AirBnB-Optimal-Price
f875face4312a501529ade855da6b68eedb024ed
[ "MIT" ]
3
2021-06-18T21:23:55.000Z
2021-06-19T06:20:25.000Z
pages/prediction.py
ft-airbnb-price-01/AirBnB-Optimal-Price
f875face4312a501529ade855da6b68eedb024ed
[ "MIT" ]
2
2021-09-24T05:10:15.000Z
2022-02-09T23:33:58.000Z
pages/prediction.py
ft-airbnb-price-01/AirBnB-Optimal-Price
f875face4312a501529ade855da6b68eedb024ed
[ "MIT" ]
null
null
null
"""Handles loading of model and predicting user input""" import tensorflow as tf def make_prediction(input_arr): """ Takes in 2D numpy array of user input Loads pretrained model and predicts based on user input Returns predicted price per night of listing. """ nn_model = tf.keras.models.load_...
28.533333
73
0.733645
60
428
5.1
0.683333
0.088235
0
0
0
0
0
0
0
0
0
0.005797
0.193925
428
14
74
30.571429
0.881159
0.443925
0
0
0
0
0.133971
0.133971
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
9ec1a0b17d898c480c35f22e0f201bd67c35c6b0
1,655
py
Python
auth/migrations/0001_initial.py
ujlbu4/vas3k.club
1ec907cf7e5ae3a74059cde8729ca0b3e2d55a3e
[ "MIT" ]
496
2020-04-24T04:20:32.000Z
2022-03-31T21:55:57.000Z
auth/migrations/0001_initial.py
ujlbu4/vas3k.club
1ec907cf7e5ae3a74059cde8729ca0b3e2d55a3e
[ "MIT" ]
642
2020-04-24T11:54:13.000Z
2022-03-26T15:41:06.000Z
auth/migrations/0001_initial.py
ujlbu4/vas3k.club
1ec907cf7e5ae3a74059cde8729ca0b3e2d55a3e
[ "MIT" ]
243
2020-04-24T11:49:11.000Z
2022-03-24T18:38:48.000Z
# Generated by Django 3.0.4 on 2020-04-08 10:09 import uuid import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('users', '0001_initial'), ] operations = [ migrations.CreateModel( ...
35.978261
140
0.566163
169
1,655
5.420118
0.431953
0.034935
0.045852
0.072052
0.398472
0.30131
0.30131
0.30131
0.30131
0.30131
0
0.027304
0.291843
1,655
45
141
36.777778
0.754266
0.02719
0
0.324324
1
0
0.100124
0
0
0
0
0
0
1
0
false
0
0.081081
0
0.189189
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1