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
7f5f8e7da675ccdf94c2845ab889407163f48cad
16,914
py
Python
ensemble_detectors/src/Algorithm_1_matchfilter/spectral_lib/spectral/algorithms/perceptron.py
satish1901/Methane-detection-from-hyperspectral-imagery
741dee02e76931f572cf3e06af8faabe871e8e4a
[ "MIT" ]
27
2020-06-11T21:59:54.000Z
2022-03-22T03:10:50.000Z
ensemble_detectors/src/Algorithm_1_matchfilter/spectral_lib/spectral/algorithms/perceptron.py
N-NSH/Methane-detection-from-hyperspectral-imagery
741dee02e76931f572cf3e06af8faabe871e8e4a
[ "MIT" ]
7
2020-09-25T22:41:18.000Z
2022-02-09T23:41:04.000Z
ensemble_detectors/src/Algorithm_1_matchfilter/spectral_lib/spectral/algorithms/perceptron.py
N-NSH/Methane-detection-from-hyperspectral-imagery
741dee02e76931f572cf3e06af8faabe871e8e4a
[ "MIT" ]
4
2021-01-18T15:57:13.000Z
2022-03-12T20:51:27.000Z
######################################################################### # # perceptron.py - This file is part of the Spectral Python (SPy) package. # # Copyright (C) 2001-2014 Thomas Boggs # # Spectral Python is free software; you can redistribute it and/ # or modify it under the terms of the GNU General Publ...
35.910828
82
0.541504
2,079
16,914
4.346801
0.213564
0.004426
0.007967
0.008853
0.212128
0.182583
0.148058
0.130574
0.125484
0.117517
0
0.022576
0.353139
16,914
470
83
35.987234
0.8034
0.417938
0
0.21028
0
0
0.087026
0.004122
0
0
0
0
0
1
0.084112
false
0.004673
0.028037
0
0.186916
0.037383
0
0
0
null
0
0
0
0
0
0
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
1
0
7f5fc1c9185cffc53700f1f1d9e3856530dd7fe5
1,075
py
Python
sportsdataverse/cfb/cfb_teams.py
saiemgilani/sportsdataverse-py
77ae3accbb071b5308335b931e4e55a65e1500cd
[ "MIT" ]
12
2021-10-15T01:24:18.000Z
2022-03-15T17:00:22.000Z
sportsdataverse/cfb/cfb_teams.py
saiemgilani/sportsdataverse-py
77ae3accbb071b5308335b931e4e55a65e1500cd
[ "MIT" ]
19
2021-11-02T05:53:41.000Z
2022-03-16T14:16:51.000Z
sportsdataverse/cfb/cfb_teams.py
saiemgilani/sportsdataverse-py
77ae3accbb071b5308335b931e4e55a65e1500cd
[ "MIT" ]
1
2021-12-21T14:49:25.000Z
2021-12-21T14:49:25.000Z
import pandas as pd import json from sportsdataverse.dl_utils import download from urllib.error import URLError, HTTPError, ContentTooShortError def espn_cfb_teams(groups=None) -> pd.DataFrame: """espn_cfb_teams - look up the college football teams Args: groups (int): Used to define different division...
32.575758
117
0.646512
146
1,075
4.691781
0.541096
0.048175
0.035037
0
0
0
0
0
0
0
0
0.015854
0.237209
1,075
32
118
33.59375
0.819512
0.214884
0
0
0
0.047619
0.172794
0
0
0
0
0
0
1
0.047619
false
0
0.190476
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
0
0
0
0
0
1
0
7f61254a89ebbce054e77ea23ac41a27c30888e5
407
py
Python
src/solutions/solution013.py
samtcwong/daily-coding-problems
bd7da8e64a74a04f69a8b5b930100754e99b63f7
[ "MIT" ]
null
null
null
src/solutions/solution013.py
samtcwong/daily-coding-problems
bd7da8e64a74a04f69a8b5b930100754e99b63f7
[ "MIT" ]
null
null
null
src/solutions/solution013.py
samtcwong/daily-coding-problems
bd7da8e64a74a04f69a8b5b930100754e99b63f7
[ "MIT" ]
null
null
null
from typing import List # Problem #13 [Hard] # Good morning! Here's your coding interview problem for today. # This problem was asked by Amazon. # Given an integer k and a string s, find the length of the longest substring # that contains at most k distinct characters. # For example, given s = "abcba" and k = 2, # ...
25.4375
77
0.734644
66
407
4.530303
0.742424
0.06689
0.12709
0
0
0
0
0
0
0
0
0.009202
0.199017
407
15
78
27.133333
0.907975
0.823096
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
7f63663f06ed07834a3d2142ee1d260868e3df08
3,636
py
Python
vnpy/example.py
0x1be20/vnpy
51e3439570aefc67986078dd80a452b5f40f5653
[ "MIT" ]
null
null
null
vnpy/example.py
0x1be20/vnpy
51e3439570aefc67986078dd80a452b5f40f5653
[ "MIT" ]
null
null
null
vnpy/example.py
0x1be20/vnpy
51e3439570aefc67986078dd80a452b5f40f5653
[ "MIT" ]
null
null
null
import math import numpy as np import os import sys import csv import datetime import pandas as pd from vnpy.app.cta_strategy.backtesting import BacktestingEngine, OptimizationSetting from vnpy.app.cta_strategy.base import BacktestingMode from vnpy.app.cta_strategy import ( CtaTemplate, TickData, TradeData...
27.134328
84
0.596535
451
3,636
4.64745
0.310421
0.026718
0.024809
0.024809
0.266698
0.158397
0.158397
0.158397
0.131679
0.06584
0
0.03619
0.278053
3,636
134
85
27.134328
0.762286
0.025303
0
0.173077
0
0
0.04199
0
0
0
0
0
0
1
0.076923
false
0
0.096154
0
0.230769
0.028846
0
0
0
null
0
0
0
0
0
0
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
1
0
7f63e32605c44b6294e52e86fda5185cf150b67e
4,368
py
Python
tests/test_weekdays_list.py
mafrosis/dataclass_property
bd9680bcbf3221691227c5e056a9b1f5f999c849
[ "MIT" ]
null
null
null
tests/test_weekdays_list.py
mafrosis/dataclass_property
bd9680bcbf3221691227c5e056a9b1f5f999c849
[ "MIT" ]
null
null
null
tests/test_weekdays_list.py
mafrosis/dataclass_property
bd9680bcbf3221691227c5e056a9b1f5f999c849
[ "MIT" ]
null
null
null
def check_days(weekdays, *valid_days, is_valid=True): from dataclass_property.weekdays_list import Weekdays if len(valid_days) == 0: valid_days = list(Weekdays.DAYS) elif len(valid_days) == 0 and isinstance(valid_days[0], list): valid_days = valid_days[0] valid_days = [Weekdays.as_attr...
29.12
102
0.641484
611
4,368
4.415712
0.162029
0.056709
0.040771
0.041512
0.582283
0.422165
0.416234
0.338769
0.279837
0.136768
0
0.011091
0.256868
4,368
149
103
29.315436
0.820086
0.181319
0
0.408163
0
0
0.038829
0
0
0
0
0
0.112245
1
0.061224
false
0
0.061224
0
0.183673
0.020408
0
0
0
null
0
0
0
0
0
0
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
1
0
7f651f1517a0884732ef21c2c571ce9f78614a71
304
py
Python
thenewboston_node/core/management/commands/generate_signing_key.py
nishp77/thenewboston-node
158b1f1739b2c6c9c21c80e9da854ca141f1cf8f
[ "MIT" ]
30
2021-03-05T22:08:17.000Z
2021-09-23T02:45:45.000Z
thenewboston_node/core/management/commands/generate_signing_key.py
nishp77/thenewboston-node
158b1f1739b2c6c9c21c80e9da854ca141f1cf8f
[ "MIT" ]
148
2021-03-05T23:37:50.000Z
2021-11-02T02:18:58.000Z
thenewboston_node/core/management/commands/generate_signing_key.py
nishp77/thenewboston-node
158b1f1739b2c6c9c21c80e9da854ca141f1cf8f
[ "MIT" ]
14
2021-03-05T21:58:46.000Z
2021-10-15T17:27:52.000Z
from django.core.management import BaseCommand from thenewboston_node.core.utils.cryptography import generate_key_pair class Command(BaseCommand): help = 'Generate signing (private) key' # noqa: A003 def handle(self, *args, **options): self.stdout.write(generate_key_pair().private)
27.636364
71
0.753289
38
304
5.894737
0.710526
0.098214
0.133929
0
0
0
0
0
0
0
0
0.011583
0.148026
304
10
72
30.4
0.853282
0.032895
0
0
1
0
0.10274
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0
0.833333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
7f6542a305f9398e37131670f91383a3e41725e7
1,864
py
Python
Application/datasources/datapod_facebook/settings.py
GraphicalDot/datapod-backend-layer
ab38a5b0e969cd0d762e9d7720ab89174c333c37
[ "Apache-2.0" ]
null
null
null
Application/datasources/datapod_facebook/settings.py
GraphicalDot/datapod-backend-layer
ab38a5b0e969cd0d762e9d7720ab89174c333c37
[ "Apache-2.0" ]
null
null
null
Application/datasources/datapod_facebook/settings.py
GraphicalDot/datapod-backend-layer
ab38a5b0e969cd0d762e9d7720ab89174c333c37
[ "Apache-2.0" ]
null
null
null
#-*- coding: utf-8 -*- from playhouse.sqlite_ext import SqliteExtDatabase, FTSModel import sqlite3 from .db_initialize import initialize from .api import parse, images, stats, status, get_chats, dashboard, delete_original_path, cancel_parse import os from .variables import DATASOURCE_NAME class Routes: def __...
38.040816
177
0.578863
186
1,864
5.483871
0.33871
0.068627
0.029412
0.033333
0.056863
0
0
0
0
0
0
0.007752
0.30794
1,864
49
178
38.040816
0.782946
0.011266
0
0
0
0
0.141228
0
0
0
0
0
0
1
0.027027
false
0
0.162162
0
0.216216
0
0
0
0
null
0
0
0
0
0
0
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
1
0
7f66fab2551c1200a99084dcebcddfcbb6ae6f04
347
py
Python
lab4/id.py
TypeKazt/CS265_Class
6db5f21cfc51961b71a85d95451cf986f60d47a4
[ "MIT" ]
null
null
null
lab4/id.py
TypeKazt/CS265_Class
6db5f21cfc51961b71a85d95451cf986f60d47a4
[ "MIT" ]
null
null
null
lab4/id.py
TypeKazt/CS265_Class
6db5f21cfc51961b71a85d95451cf986f60d47a4
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys if len(sys.argv) > 2 or len(sys.argv) < 2: print sys.argv[0] + "accepts 1 argument" sys.exit(1) accounts = {} with open(sys.argv[1],'r') as f: for i in f: temp = i.split(" ", 1) accounts[temp[0]] = temp[1] accounts.keys().sort() print "ID Name" for i in accounts: print str(i...
20.411765
42
0.596542
62
347
3.33871
0.516129
0.135266
0.096618
0.10628
0
0
0
0
0
0
0
0.032847
0.210375
347
16
43
21.6875
0.722628
0.04611
0
0
0
0
0.10303
0
0
0
0
0
0
0
null
null
0
0.076923
null
null
0.230769
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7f6784f614c657d64ff55a4aaa604588f7cc578a
501
py
Python
router.py
spookybear0/website
200eb0e56512d134cd5a52727a073a47077cf280
[ "MIT" ]
null
null
null
router.py
spookybear0/website
200eb0e56512d134cd5a52727a073a47077cf280
[ "MIT" ]
null
null
null
router.py
spookybear0/website
200eb0e56512d134cd5a52727a073a47077cf280
[ "MIT" ]
null
null
null
import aiohttp import importlib routes = {"/": "index", "/users/{username}": "user", "/rankings": "rankings", "/level/{levelname}": "level", "/search": "search"} def add_all_routes(app: aiohttp.web.Application): for route, modulename in routes.items(): modulepath = ...
35.785714
109
0.610778
49
501
6.163265
0.673469
0
0
0
0
0
0
0
0
0
0
0.002525
0.209581
501
14
109
35.785714
0.760101
0
0
0
0
0
0.183267
0
0
0
0
0
0
1
0.083333
false
0
0.25
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7f69183ea142839ce779dbe7bfbef3bdf9530b88
415
py
Python
Remove Duplicates From Sorted Array 2.py
MetinKONUK/LeetCode
ba65bf2b43a3309da560cc2d8d742b3afe3894cb
[ "MIT" ]
null
null
null
Remove Duplicates From Sorted Array 2.py
MetinKONUK/LeetCode
ba65bf2b43a3309da560cc2d8d742b3afe3894cb
[ "MIT" ]
null
null
null
Remove Duplicates From Sorted Array 2.py
MetinKONUK/LeetCode
ba65bf2b43a3309da560cc2d8d742b3afe3894cb
[ "MIT" ]
null
null
null
def removeDuplicates(self, nums: List[int]) -> int: p = 0 for i in range(len(nums)): if not nums[i] in nums[:i]: nums[p] = nums[i] p += 1 return p """ Just iterating through every element and appending every first unique element to head of the list...
34.583333
97
0.60241
61
415
4.065574
0.590164
0.060484
0.145161
0
0
0
0
0
0
0
0
0.006969
0.308434
415
11
98
37.727273
0.857143
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7f69703f8f809116b21206029c85b39cc24652df
3,967
py
Python
golly-4.0-win-64bit/Scripts/Python/tile.py
larayeung/gollywithlocusts
e7adbaaa691fe46f22e88fb4d13e42b3d702a871
[ "Apache-2.0" ]
null
null
null
golly-4.0-win-64bit/Scripts/Python/tile.py
larayeung/gollywithlocusts
e7adbaaa691fe46f22e88fb4d13e42b3d702a871
[ "Apache-2.0" ]
null
null
null
golly-4.0-win-64bit/Scripts/Python/tile.py
larayeung/gollywithlocusts
e7adbaaa691fe46f22e88fb4d13e42b3d702a871
[ "Apache-2.0" ]
null
null
null
# Tile current selection with pattern inside selection. # Author: Andrew Trevorrow (andrew@trevorrow.com), March 2006. # Updated to use exit command, Nov 2006. # Updated to handle multi-state patterns, Aug 2008. from glife import * import golly as g selrect = rect( g.getselrect() ) if selrect.empty: g.exit("There is ...
26.986395
80
0.526594
521
3,967
3.994242
0.180422
0.046132
0.046132
0.034599
0.56271
0.536761
0.45507
0.45507
0.398366
0.398366
0
0.023287
0.253088
3,967
146
81
27.171233
0.679042
0.290648
0
0.565217
0
0
0.016499
0
0
0
0
0
0
1
0.043478
false
0
0.021739
0
0.108696
0
0
0
0
null
0
0
0
0
0
0
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
1
0
7f6978f707c126c136ad39f3b45816a9df89b466
968
py
Python
workflow/scripts/process.py
IMS-Bio2Core-Facility/GTExSnake
aefe96f70dd815036b1456c08a7b7068400f79a5
[ "MIT" ]
1
2021-07-13T09:18:36.000Z
2021-07-13T09:18:36.000Z
workflow/scripts/process.py
IMS-Bio2Core-Facility/GTExSnake
aefe96f70dd815036b1456c08a7b7068400f79a5
[ "MIT" ]
2
2021-07-14T09:32:29.000Z
2021-07-21T07:49:02.000Z
workflow/scripts/process.py
IMS-Bio2Core-Facility/GTExSnake
aefe96f70dd815036b1456c08a7b7068400f79a5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Process data to xlsx. Here, the input data from the previous three steps is combined and written to XLSX. The GTEx data is merged BioMart data using an outer merge, so as to keep all entries. Then, the MANE data is added using a left merge, so as to only keep the data from the GTEx query. ""...
30.25
87
0.682851
144
968
4.444444
0.493056
0.05
0.034375
0.034375
0
0
0
0
0
0
0
0.019737
0.214876
968
31
88
31.225806
0.822368
0.368802
0
0
0
0
0.043333
0
0
0
0
0
0
1
0
false
0
0.266667
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
0
0
0
0
0
1
0
7f6b2102a8e6ad3d81dcdc4da0012a459e68c9a9
2,943
py
Python
gamespy-serverlister.py
cetteup/battlefield-serverlisters
2176a11fda9e8c5be48dea1daed304db1c83f8a7
[ "MIT" ]
1
2021-01-04T01:30:37.000Z
2021-01-04T01:30:37.000Z
gamespy-serverlister.py
cetteup/battlefield-serverlisters
2176a11fda9e8c5be48dea1daed304db1c83f8a7
[ "MIT" ]
null
null
null
gamespy-serverlister.py
cetteup/battlefield-serverlisters
2176a11fda9e8c5be48dea1daed304db1c83f8a7
[ "MIT" ]
null
null
null
import argparse import logging import os import sys from src.constants import GSLIST_CONFIGS, GAMESPY_PRINCIPALS from src.serverlisters import GameSpyServerLister parser = argparse.ArgumentParser(description='Retrieve a list of game servers for GameSpy-based games ' 'and w...
45.984375
118
0.706422
395
2,943
5.189873
0.36962
0.035122
0.066341
0.017561
0.057561
0.030244
0
0
0
0
0
0.004082
0.167516
2,943
63
119
46.714286
0.832653
0.123004
0
0
0
0.044444
0.305058
0.016342
0
0
0
0
0
1
0
false
0
0.133333
0
0.133333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7f6c024bdbf80eb668baada9c5fe81bccdb1140e
398
py
Python
cornerstone_widget/__init__.py
betatim/cornerstone_widget
c22fafd4d8fe148f6b2349518188eb0bee5f18f1
[ "Apache-2.0" ]
24
2018-09-07T10:40:07.000Z
2022-02-01T21:18:00.000Z
cornerstone_widget/__init__.py
betatim/cornerstone_widget
c22fafd4d8fe148f6b2349518188eb0bee5f18f1
[ "Apache-2.0" ]
26
2018-09-04T16:32:46.000Z
2018-10-08T09:11:50.000Z
cornerstone_widget/__init__.py
betatim/cornerstone_widget
c22fafd4d8fe148f6b2349518188eb0bee5f18f1
[ "Apache-2.0" ]
3
2018-09-17T12:56:16.000Z
2019-12-03T06:30:34.000Z
from .cs_widget import CornerstoneWidget, CornerstoneToolbarWidget from .utils import get_bbox_handles from ._version import get_versions def _jupyter_nbextension_paths(): return [{ 'section': 'notebook', 'src': 'static', 'dest': 'cornerstone_widget', 'require': 'cornerstone_widget...
23.411765
66
0.70603
40
398
6.625
0.65
0.124528
0
0
0
0
0
0
0
0
0
0
0.188442
398
16
67
24.875
0.820433
0
0
0
0
0
0.221106
0.070352
0
0
0
0
0
1
0.083333
false
0
0.25
0.083333
0.416667
0
0
0
0
null
0
0
0
0
0
0
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
1
0
7f6cc4d210e49a95321ceda8b2d2d8db78daf491
4,872
py
Python
go/channel/tests.py
lynnUg/vumi-go
852f906c46d5d26940bd6699f11488b73bbc3742
[ "BSD-3-Clause" ]
null
null
null
go/channel/tests.py
lynnUg/vumi-go
852f906c46d5d26940bd6699f11488b73bbc3742
[ "BSD-3-Clause" ]
null
null
null
go/channel/tests.py
lynnUg/vumi-go
852f906c46d5d26940bd6699f11488b73bbc3742
[ "BSD-3-Clause" ]
null
null
null
from uuid import uuid4 import urllib from django.core.urlresolvers import reverse from go.base.tests.helpers import GoDjangoTestCase, DjangoVumiApiHelper from go.channel.views import get_channel_view_definition class TestChannelViews(GoDjangoTestCase): def setUp(self): self.vumi_helper = self.add_helpe...
43.891892
78
0.677545
602
4,872
5.227575
0.172757
0.038132
0.066412
0.080394
0.567525
0.512869
0.466476
0.421989
0.407372
0.342548
0
0.009221
0.198686
4,872
110
79
44.290909
0.796875
0
0
0.369565
0
0
0.128489
0.009852
0
0
0
0
0.293478
1
0.141304
false
0
0.054348
0
0.217391
0
0
0
0
null
0
0
0
0
0
0
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
1
0
7f6f22b310867bcb23d6e02764ed6534fb15c5dd
4,715
py
Python
analysis/malware/oleDeobf/xdeobf.py
fritzemeier/skeletoncode
6c2c7de16f588c0856dd2f9770862126979b2620
[ "MIT" ]
null
null
null
analysis/malware/oleDeobf/xdeobf.py
fritzemeier/skeletoncode
6c2c7de16f588c0856dd2f9770862126979b2620
[ "MIT" ]
null
null
null
analysis/malware/oleDeobf/xdeobf.py
fritzemeier/skeletoncode
6c2c7de16f588c0856dd2f9770862126979b2620
[ "MIT" ]
null
null
null
import sys from chardet.universaldetector import UniversalDetector def parse_args(INFO): MENU = { \ "OBF":"Obfuscated algorithm file", \ "OF":"Output file (Not implemented)" } for NUM in range(1,len(sys.argv)): CURR = sys.argv[NUM] if CURR[:2] == "--": if CURR[2:] == "help": print_dict(MENU)...
21.828704
146
0.532768
611
4,715
4.062193
0.184943
0.036664
0.031023
0.024174
0.278807
0.210314
0.156326
0.136181
0.121273
0.074134
0
0.009212
0.217179
4,715
215
147
21.930233
0.663235
0
0
0.1875
0
0
0.142736
0.011877
0
0
0
0
0
1
0.055556
false
0
0.013889
0
0.104167
0.069444
0
0
0
null
0
0
0
0
0
0
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
1
0
7f6f5b004757129f756542df01444d1d418496a6
309
py
Python
examples/demo/demo_payments/models.py
bartels/satchless
4d333014333dc4fd5815f9e0bbea565959919a30
[ "BSD-4-Clause" ]
1
2015-11-05T10:26:46.000Z
2015-11-05T10:26:46.000Z
examples/demo/demo_payments/models.py
bartels/satchless
4d333014333dc4fd5815f9e0bbea565959919a30
[ "BSD-4-Clause" ]
null
null
null
examples/demo/demo_payments/models.py
bartels/satchless
4d333014333dc4fd5815f9e0bbea565959919a30
[ "BSD-4-Clause" ]
null
null
null
from django.db import models from orders.app import order_app from satchless.contrib.payment.django_payments_provider.models import DjangoPaymentsPayment class Payment(DjangoPaymentsPayment): order = models.OneToOneField(order_app.Order, related_name='paymentvariant')
30.9
91
0.754045
33
309
6.909091
0.575758
0.070175
0
0
0
0
0
0
0
0
0
0
0.187702
309
9
92
34.333333
0.908367
0
0
0
0
0
0.045307
0
0
0
0
0
0
1
0
false
0
0.5
0
0.833333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
7f72a5fd650666ecdf104589c2aeeb5a8a97ff0a
9,184
py
Python
typescript/libs/node_client.py
fongandrew/TypeScript-Sublime-JSX-Plugin
ee22b220a9874bb365aa84c2ffb3670ac7e9c97a
[ "Apache-2.0" ]
null
null
null
typescript/libs/node_client.py
fongandrew/TypeScript-Sublime-JSX-Plugin
ee22b220a9874bb365aa84c2ffb3670ac7e9c97a
[ "Apache-2.0" ]
null
null
null
typescript/libs/node_client.py
fongandrew/TypeScript-Sublime-JSX-Plugin
ee22b220a9874bb365aa84c2ffb3670ac7e9c97a
[ "Apache-2.0" ]
null
null
null
import os import subprocess import threading import time import json import sublime import sublime_plugin from .logger import log from . import json_helpers from . import global_vars # queue module name changed from Python 2 to 3 if int(sublime.version()) < 3000: import Queue as queue else: import queue cla...
34.656604
119
0.532883
965
9,184
4.927461
0.251813
0.026919
0.007571
0.020189
0.207992
0.154995
0.132072
0.103891
0.103891
0.103891
0
0.003837
0.375653
9,184
264
120
34.787879
0.825427
0.120862
0
0.333333
0
0
0.079323
0.003565
0
0
0
0.003788
0
1
0.100529
false
0.026455
0.063492
0.010582
0.269841
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
0
0
0
0
0
0
0
0
1
0
7f72e22697b47412c2e86ac9d6f29061040b3ceb
3,980
py
Python
Calculator.py
NOVAglow/basecalc
3f40a1d59266239edacd80c3046f78731cba9432
[ "Apache-2.0" ]
null
null
null
Calculator.py
NOVAglow/basecalc
3f40a1d59266239edacd80c3046f78731cba9432
[ "Apache-2.0" ]
null
null
null
Calculator.py
NOVAglow/basecalc
3f40a1d59266239edacd80c3046f78731cba9432
[ "Apache-2.0" ]
null
null
null
# Command dictionary, used for the help command and the ? command cmd_dict = { "help": "Show help.", "?": "Get help on a command. 1 argument required: name of the command. Example: \"? dec\"", "dec": "Convert a number to decimal. 2 arguments required: one is the number itself, second is the base.", ...
42.795699
156
0.484673
454
3,980
4.200441
0.213656
0.041951
0.028317
0.026219
0.331935
0.317252
0.255899
0.231778
0.158364
0.158364
0
0.010708
0.38995
3,980
92
157
43.26087
0.774712
0.045226
0
0.313953
0
0.046512
0.298028
0
0
0
0
0
0
1
0.011628
false
0
0
0
0.011628
0.232558
0
0
0
null
0
0
0
0
0
0
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
1
0
7f72e3f0415454b4d930b826553fdc4856d0a5fd
1,240
py
Python
nablapps/com/migrations/0002_committee.py
pettaroni/nablaweb
5e610698a276884b9cd779a718dfdee641713636
[ "MIT" ]
null
null
null
nablapps/com/migrations/0002_committee.py
pettaroni/nablaweb
5e610698a276884b9cd779a718dfdee641713636
[ "MIT" ]
null
null
null
nablapps/com/migrations/0002_committee.py
pettaroni/nablaweb
5e610698a276884b9cd779a718dfdee641713636
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings class Migration(migrations.Migration): dependencies = [ ('auth', '0006_require_contenttypes_0002'), migrations.swappable_dependency(settings.AUTH_USER_MODEL),...
38.75
149
0.620968
126
1,240
5.880952
0.539683
0.103914
0.05668
0.08502
0
0
0
0
0
0
0
0.019169
0.242742
1,240
31
150
40
0.769968
0.016935
0
0
0
0
0.153657
0.024651
0
0
0
0
0
1
0
false
0
0.12
0
0.24
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7f7356dcac238b97ce72ba31683942264a22953e
543
py
Python
preprocessing/label_ordianl_encoding.py
Kunal614/Machine-Learning
26b3e0f3397ddb524c96c5b6c99b173b6fc80501
[ "MIT" ]
null
null
null
preprocessing/label_ordianl_encoding.py
Kunal614/Machine-Learning
26b3e0f3397ddb524c96c5b6c99b173b6fc80501
[ "MIT" ]
null
null
null
preprocessing/label_ordianl_encoding.py
Kunal614/Machine-Learning
26b3e0f3397ddb524c96c5b6c99b173b6fc80501
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from sklearn.preprocessing import LabelEncoder df = pd.read_csv('train(2).csv') df2 = df[["KitchenQual" , "BldgType"]] #LAbel Encoder le = LabelEncoder() data = le.fit_transform(df2["BldgType"]) print(data) df2["BldType_l_enc"] = data #count number of class in a column pr...
18.1
66
0.710866
81
543
4.641975
0.580247
0.069149
0
0
0
0
0
0
0
0
0
0.023061
0.121547
543
30
67
18.1
0.765199
0.112339
0
0
0
0
0.235417
0.047917
0
0
0
0
0
1
0
false
0
0.214286
0
0.214286
0.285714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7f761293833e609b7440a654c809853058049750
306
py
Python
Files/Exceptions.py
MPCodeWriter21/Member21
1db91e24a1e48ea8dbe0b59e0493a6e67a0acc70
[ "MIT" ]
2
2021-01-31T04:11:20.000Z
2021-03-01T05:47:34.000Z
Files/Exceptions.py
MPCodeWriter21/Member21
1db91e24a1e48ea8dbe0b59e0493a6e67a0acc70
[ "MIT" ]
null
null
null
Files/Exceptions.py
MPCodeWriter21/Member21
1db91e24a1e48ea8dbe0b59e0493a6e67a0acc70
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # Exceptions # CodeWriter21 class APIConfigNotFoundException(Exception): pass class APIConfigDamagedException(Exception): pass class NoBotConfigFoundException(Exception): pass class NoBotEnabledConfigFoundException(Exception): pass class ButtonsNotSetException(Exception): pass
17
50
0.833333
25
306
10.2
0.52
0.254902
0.282353
0
0
0
0
0
0
0
0
0.01083
0.094771
306
18
51
17
0.909747
0.133987
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
0
1
null
1
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
1
1
0
0
0
0
0
6
7f7743c91e5d5443c9e37cdb6ce585839d9a7946
493
py
Python
01 Basics/011 - Functions and Examples/011 -f- Example-Circle area.py
TheUnicum/CorsoPython
06cb2b58d46b26fc6d1cf4a585ff2666ab4b5c19
[ "Apache-2.0" ]
null
null
null
01 Basics/011 - Functions and Examples/011 -f- Example-Circle area.py
TheUnicum/CorsoPython
06cb2b58d46b26fc6d1cf4a585ff2666ab4b5c19
[ "Apache-2.0" ]
null
null
null
01 Basics/011 - Functions and Examples/011 -f- Example-Circle area.py
TheUnicum/CorsoPython
06cb2b58d46b26fc6d1cf4a585ff2666ab4b5c19
[ "Apache-2.0" ]
null
null
null
#!/usr/local/bin/python # -*- coding: utf-8 -*- # # Copyright 2018 Mattia Benedetti # All rights reserved. # # Author: Mattia Benedetti """ - FUNCTIONs - Calculate the area of a circle with radius input by user -> run on pront command <- Note : -1 to EXIT! """ from math import pi def circle_ar...
15.40625
56
0.636917
68
493
4.544118
0.735294
0.097087
0
0
0
0
0
0
0
0
0
0.021563
0.247465
493
31
57
15.903226
0.811321
0.257606
0
0
0
0
0.075117
0
0
0
0
0
0
0
null
null
0
0.142857
null
null
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
1
0
0
0
0
0
0
0
0
1
7f777087518551b0eec6e2af3c5f3d647f6bd44e
1,143
py
Python
install/app_store/tk-framework-shotgunutils/v5.2.4/tests/fixtures/config/bundles/test_engine/engine.py
JoanAzpeitia/lp_sg
e0ee79555e419dd2ae3a5f31e5515b3f40b22a62
[ "MIT" ]
4
2019-01-11T03:41:28.000Z
2019-09-12T06:57:17.000Z
bundle_cache/app_store/tk-multi-breakdown/v1.5.0/tests/fixtures/config/bundles/test_engine/engine.py
ColinKennedy/tk-config-default2-respawn
855fb8033daa549b92615792442f19a7f9c4f55c
[ "Linux-OpenIB" ]
null
null
null
bundle_cache/app_store/tk-multi-breakdown/v1.5.0/tests/fixtures/config/bundles/test_engine/engine.py
ColinKennedy/tk-config-default2-respawn
855fb8033daa549b92615792442f19a7f9c4f55c
[ "Linux-OpenIB" ]
2
2019-01-10T05:00:18.000Z
2020-02-15T16:32:56.000Z
# Copyright (c) 2013 Shotgun Software Inc. # # CONFIDENTIAL AND PROPRIETARY # # This work is provided "AS IS" and subject to the Shotgun Pipeline Toolkit # Source Code License included in this distribution package. See LICENSE. # By accessing, using, copying or modifying this work you indicate your # agreement to t...
28.575
94
0.608924
144
1,143
4.784722
0.541667
0.034833
0.081277
0.034833
0.267054
0.127721
0.127721
0.127721
0
0
0
0.00453
0.227472
1,143
39
95
29.307692
0.775764
0.429571
0
0
0
0
0.095413
0
0
0
0
0
0
1
0.333333
false
0.066667
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
1
0
1
0
0
1
0
0
3
7f7775f0c9376f63e26adcbd22385f3c36c24f47
401
py
Python
gehomesdk/erd/converters/ac/erd_ac_target_temperature_converter.py
willhayslett/gehome
7e407a1d31cede1453656eaef948332e808484ea
[ "MIT" ]
17
2021-05-18T01:58:06.000Z
2022-03-22T20:49:32.000Z
gehomesdk/erd/converters/ac/erd_ac_target_temperature_converter.py
willhayslett/gehome
7e407a1d31cede1453656eaef948332e808484ea
[ "MIT" ]
29
2021-05-17T21:43:16.000Z
2022-02-28T22:50:48.000Z
gehomesdk/erd/converters/ac/erd_ac_target_temperature_converter.py
willhayslett/gehome
7e407a1d31cede1453656eaef948332e808484ea
[ "MIT" ]
9
2021-05-17T04:40:58.000Z
2022-02-02T17:26:13.000Z
from ..abstract import ErdReadWriteConverter from ..primitives import * from gehomesdk.erd.values.ac import * class ErdAcTargetTemperatureConverter(ErdReadWriteConverter[int]): def erd_decode(self, value: str) -> int: try: return erd_decode_int(value) except: return 86 ...
28.642857
66
0.680798
46
401
5.804348
0.5
0.044944
0
0
0
0
0
0
0
0
0
0.00974
0.23192
401
13
67
30.846154
0.857143
0
0
0
0
0
0
0
0
0
0
0
0
1
0.181818
false
0
0.272727
0.090909
0.818182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
7f79226a907e0920d92118e3fb487482028c8ebf
3,533
py
Python
src/pyams_utils/session.py
Py-AMS/pyams-utils
65b166596a8b9f66fb092a69ce5d53ac6675685e
[ "ZPL-2.1" ]
null
null
null
src/pyams_utils/session.py
Py-AMS/pyams-utils
65b166596a8b9f66fb092a69ce5d53ac6675685e
[ "ZPL-2.1" ]
null
null
null
src/pyams_utils/session.py
Py-AMS/pyams-utils
65b166596a8b9f66fb092a69ce5d53ac6675685e
[ "ZPL-2.1" ]
null
null
null
# # Copyright (c) 2008-2015 Thierry Florac <tflorac AT ulthar.net> # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED # WARRAN...
34.300971
97
0.668271
483
3,533
4.803313
0.320911
0.047414
0.046552
0.036207
0.265517
0.253448
0.206897
0.17069
0.17069
0.17069
0
0.007491
0.244268
3,533
102
98
34.637255
0.861423
0.626946
0
0.076923
0
0
0.03599
0
0
0
0
0
0
1
0.192308
false
0
0.038462
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
0
0
0
0
1
0
7f793f0055dfba9774cbf31309fc492d7d2ba7e5
1,543
py
Python
Picturedom/tests/photo/views/test_category_photos.py
Azzarox/Picturedom
69d1b77dcdd89d63b12c7c56e25d43955d906b98
[ "MIT" ]
null
null
null
Picturedom/tests/photo/views/test_category_photos.py
Azzarox/Picturedom
69d1b77dcdd89d63b12c7c56e25d43955d906b98
[ "MIT" ]
null
null
null
Picturedom/tests/photo/views/test_category_photos.py
Azzarox/Picturedom
69d1b77dcdd89d63b12c7c56e25d43955d906b98
[ "MIT" ]
null
null
null
from django.test import TestCase from django.contrib.auth.models import User from django.core.files.uploadedfile import SimpleUploadedFile from django.urls import reverse from Picturedom.photo.models import Category, Photo class TestCategoryPhotos(TestCase): def setUp(self): self.user = User.objects.creat...
41.702703
95
0.670123
175
1,543
5.811429
0.348571
0.076696
0.053097
0.067847
0.3353
0.294985
0.294985
0.294985
0.294985
0.294985
0
0.009926
0.216461
1,543
36
96
42.861111
0.831266
0.034349
0
0.233333
0
0
0.111709
0.017497
0
0
0
0
0.1
1
0.066667
false
0.033333
0.166667
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
0
0
0
0
0
1
0
7f79688fd9e51a672dbdb62bdcea05a28ae5e3cf
418
py
Python
ch_03/task7.py
berchev/python_learning
5b99065cade53c64b4ede3d0e583c58573ca654c
[ "MIT" ]
null
null
null
ch_03/task7.py
berchev/python_learning
5b99065cade53c64b4ede3d0e583c58573ca654c
[ "MIT" ]
null
null
null
ch_03/task7.py
berchev/python_learning
5b99065cade53c64b4ede3d0e583c58573ca654c
[ "MIT" ]
null
null
null
#!/usr/bin/env python def top_three_avg(grade1, grade2, grade3, grade4): """ :param grade1: number :param grade2: number :param grade3: number :param grade4: number :return: number """ total = grade1 + grade2 + grade3 + grade4 top_three = total - min(grade1, grade2, grade3, grade4)...
23.222222
59
0.65311
59
418
4.491525
0.457627
0.150943
0.124528
0.271698
0
0
0
0
0
0
0
0.101227
0.220096
418
17
60
24.588235
0.711656
0.296651
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.333333
0.333333
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7f79c6850dcf67dcb5170d3847119265d3968e00
1,062
py
Python
Diena_8_dictionaries/d8_a16_u1.py
MarisKuz/Python-RTU
12261d06dc81fa0d98190ca0eb5133d43d517070
[ "MIT" ]
8
2020-08-31T16:10:54.000Z
2021-11-24T06:37:37.000Z
Diena_8_dictionaries/d8_a16_u1.py
MarisKuz/Python-RTU
12261d06dc81fa0d98190ca0eb5133d43d517070
[ "MIT" ]
8
2021-06-08T22:30:29.000Z
2022-03-12T00:48:55.000Z
Diena_8_dictionaries/d8_a16_u1.py
MarisKuz/Python-RTU
12261d06dc81fa0d98190ca0eb5133d43d517070
[ "MIT" ]
12
2020-09-28T17:06:52.000Z
2022-02-17T12:12:46.000Z
from collections import Counter import string print(string.digits) def get_char_count(text): text = str(text) # letters = {} # for i in text: # if i in letters: # letters[i] += 1 # else: # letters[i] = 1 letters = Counter(text) print(letters) return lette...
23.086957
74
0.60452
152
1,062
4.059211
0.328947
0.113452
0.194489
0.110211
0.251216
0.08752
0
0
0
0
0
0.016688
0.266478
1,062
46
75
23.086957
0.775353
0.551789
0
0
0
0
0.088692
0
0
0
0
0
0
1
0.071429
false
0
0.142857
0
0.285714
0.285714
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
7f7ba3780cb3b133493e7602db98985a3c01774a
2,441
py
Python
manage.py
clouserw/zamboni
c4a568b69c1613f27da41d46328b2975cbdc1c07
[ "BSD-3-Clause" ]
null
null
null
manage.py
clouserw/zamboni
c4a568b69c1613f27da41d46328b2975cbdc1c07
[ "BSD-3-Clause" ]
null
null
null
manage.py
clouserw/zamboni
c4a568b69c1613f27da41d46328b2975cbdc1c07
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import logging import os import sys from django.core.management import execute_from_command_line if 'DJANGO_SETTINGS_MODULE' not in os.environ: if len(sys.argv) > 1 and sys.argv[1] == 'test': os.environ['DJANGO_SETTINGS_MODULE'] = 'settings_test' else: os.environ.setdefau...
28.383721
79
0.745596
353
2,441
5.002833
0.501416
0.024915
0.033975
0.02718
0.0453
0.0453
0
0
0
0
0
0.005475
0.176977
2,441
85
80
28.717647
0.873569
0.352724
0
0.04
0
0
0.105093
0.042553
0
0
0
0
0
1
0.02
false
0
0.32
0
0.38
0
0
0
0
null
0
0
0
0
0
0
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
7f7c838f8641a32bb524bcbc48cd108587b15c84
1,636
py
Python
recommenders/recommenders/models/ranking_model.py
hojinYang/tfrs-movierec-serving
bef4f19a8be99cde510d761082de7602151a7d99
[ "Apache-2.0" ]
17
2020-11-14T07:03:06.000Z
2022-02-21T00:56:49.000Z
recommenders/recommenders/models/ranking_model.py
hojinYang/tfrs-movierec-serving
bef4f19a8be99cde510d761082de7602151a7d99
[ "Apache-2.0" ]
null
null
null
recommenders/recommenders/models/ranking_model.py
hojinYang/tfrs-movierec-serving
bef4f19a8be99cde510d761082de7602151a7d99
[ "Apache-2.0" ]
1
2021-05-20T06:00:51.000Z
2021-05-20T06:00:51.000Z
from typing import Callable, Dict, Tuple, Text from recommenders.datasets import Dataset import numpy as np import tensorflow as tf import tensorflow_recommenders as tfrs from pathlib import Path SAVE_PATH = Path(__file__).resolve().parents[1] / "weights" class RankingModel(tfrs.models.Model): def __init__( ...
32.72
103
0.630196
191
1,636
5.08377
0.371728
0.056643
0.082389
0.041195
0.057673
0.057673
0
0
0
0
0
0.000839
0.271394
1,636
50
104
32.72
0.813758
0
0
0
0
0
0.040929
0.028711
0
0
0
0
0
1
0.135135
false
0
0.162162
0.027027
0.378378
0.054054
0
0
0
null
0
0
0
0
0
0
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
1
0
7f7e5421cd569f07ea56ab7d15d596eb794887ff
1,687
py
Python
vulntracker/vulnalert/util.py
jonaustin/advisoryscan
ba452c155f0d478450e0c91de5ea00f404e98616
[ "MIT" ]
null
null
null
vulntracker/vulnalert/util.py
jonaustin/advisoryscan
ba452c155f0d478450e0c91de5ea00f404e98616
[ "MIT" ]
null
null
null
vulntracker/vulnalert/util.py
jonaustin/advisoryscan
ba452c155f0d478450e0c91de5ea00f404e98616
[ "MIT" ]
1
2018-12-06T12:50:52.000Z
2018-12-06T12:50:52.000Z
""" Utility Functions """ ### From the Python Cookbook ## Generate a human readable 'random' password ## password will be generated in the form 'word'+digits+'word' ## eg.,nice137pass ## parameters: number of 'characters' , number of 'digits' ## Pradeep Kishore Gowda <pradeep at btbytes.com > ## License : GPL ## Da...
26.777778
98
0.567279
222
1,687
4.225225
0.454955
0.042644
0.060768
0.063966
0.055437
0.055437
0.055437
0.055437
0
0
0
0.031088
0.313574
1,687
62
99
27.209677
0.778929
0.301719
0
0.1875
1
0
0.019038
0
0
0
0
0
0
0
null
null
0.0625
0.0625
null
null
0.03125
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
1
0
0
1
0
0
0
0
0
3
7f7f165be9eb0ca7213a02ea5cc2e9b6e4418888
32,951
py
Python
api/custom_components/custom_nodes.py
phucnh22/mapintel_dev
492c077177fe96b2c975c350d9f3bd1dc61691dd
[ "MIT" ]
null
null
null
api/custom_components/custom_nodes.py
phucnh22/mapintel_dev
492c077177fe96b2c975c350d9f3bd1dc61691dd
[ "MIT" ]
null
null
null
api/custom_components/custom_nodes.py
phucnh22/mapintel_dev
492c077177fe96b2c975c350d9f3bd1dc61691dd
[ "MIT" ]
null
null
null
""" See https://github.com/deepset-ai/haystack/issues/955 for further context """ import os import logging from copy import deepcopy from typing import Dict, Generator, List, Optional, Union import numpy as np from elasticsearch.helpers import bulk, scan from tqdm.auto import tqdm from haystack.utils import get_batche...
45.956764
149
0.603654
3,796
32,951
5.08509
0.149368
0.006424
0.003989
0.010517
0.417603
0.368078
0.345439
0.307154
0.260581
0.235197
0
0.006099
0.313314
32,951
716
150
46.02095
0.846997
0.266031
0
0.3
0
0
0.125393
0.021044
0
0
0
0.001397
0.008889
1
0.068889
false
0.022222
0.046667
0.002222
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7f811161ced4a1cebb10b296dd174d5c70763adb
886
py
Python
commands.py
rsmelo/speech_test
ad5fc5605c453f6db33c1a725edae03672951eb1
[ "MIT" ]
null
null
null
commands.py
rsmelo/speech_test
ad5fc5605c453f6db33c1a725edae03672951eb1
[ "MIT" ]
null
null
null
commands.py
rsmelo/speech_test
ad5fc5605c453f6db33c1a725edae03672951eb1
[ "MIT" ]
null
null
null
import subprocess import os from get_answer import Fetcher class Commander: def __init__(self): self.confirm = [ "yes", "affimartive", "si", "sure", "do it", "yeah", "confirm" ] self.cancel = [ "no", "negative", "negative soldier", "don't", "wait", "cancel" ...
30.551724
76
0.538375
106
886
4.45283
0.622642
0.038136
0
0
0
0
0
0
0
0
0
0.005017
0.325056
886
28
77
31.642857
0.784281
0
0
0.083333
0
0
0.249436
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.291667
0.041667
0
0
0
null
0
0
0
0
0
0
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
1
0
7f8164659ef1ccd20d9bceb9a6bfd362f063f6e1
2,073
py
Python
day-3/part1.py
bwheel/AdventOfCode2018
efd5c59c67453e5388a9d38022890affcb3265cf
[ "MIT" ]
null
null
null
day-3/part1.py
bwheel/AdventOfCode2018
efd5c59c67453e5388a9d38022890affcb3265cf
[ "MIT" ]
null
null
null
day-3/part1.py
bwheel/AdventOfCode2018
efd5c59c67453e5388a9d38022890affcb3265cf
[ "MIT" ]
null
null
null
#!/usr/bin/env python import re regex = "^(#(?P<ClaimId>[0-9]{0,}) @ (?P<FromLeftEdge>[0-9]{0,}),(?P<FromTopEdge>[0-9]{0,}): (?P<Width>[0-9]{0,4})x(?P<Height>[0-9]{0,4}).*)$" class Claim(object): def __init__(self, line): match = re.search(regex, line) self.ClaimId = match.group('ClaimId') ...
36.368421
205
0.593343
261
2,073
4.651341
0.291188
0.034596
0.012356
0.009885
0
0
0
0
0
0
0
0.016351
0.262422
2,073
57
206
36.368421
0.777632
0.085384
0
0
0
0.02439
0.140592
0.067653
0
0
0
0
0
1
0.097561
false
0
0.02439
0.02439
0.170732
0.02439
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7f827544721ffdb6dabf9bf15e8a94b059ad6a71
736
py
Python
trampill_backend/mainapp/forms.py
trampill-backend/trampill-backend
0cf98414d3ecd489657de42cb91431e8bfae945c
[ "MIT" ]
2
2020-03-04T19:03:55.000Z
2020-03-08T09:10:21.000Z
trampill_backend/mainapp/forms.py
trampill-backend/trampill-backend
0cf98414d3ecd489657de42cb91431e8bfae945c
[ "MIT" ]
null
null
null
trampill_backend/mainapp/forms.py
trampill-backend/trampill-backend
0cf98414d3ecd489657de42cb91431e8bfae945c
[ "MIT" ]
1
2020-03-08T10:54:10.000Z
2020-03-08T10:54:10.000Z
from django import forms from . import models class CourseItemForm(forms.ModelForm): class Meta: model = models.CourseItem fields = [ "published", "episode_url", "episode", "episode_note", "episode_title", "episode_archive", ...
19.368421
38
0.475543
56
736
6.160714
0.482143
0.121739
0.165217
0.2
0.295652
0.295652
0
0
0
0
0
0
0.425272
736
37
39
19.891892
0.815603
0
0
0.322581
0
0
0.160326
0
0
0
0
0
0
1
0
false
0
0.064516
0
0.258065
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
7f837f1cd2f19a02fd36eec3fc46b1adb29677fc
3,962
py
Python
utils.py
vitalProjects/curse_project
5768d7413db86b1d1054f0ff1102acfbea773fc7
[ "Apache-2.0" ]
1
2021-03-14T21:38:41.000Z
2021-03-14T21:38:41.000Z
utils.py
vitalfect/columnsAgent
5768d7413db86b1d1054f0ff1102acfbea773fc7
[ "Apache-2.0" ]
null
null
null
utils.py
vitalfect/columnsAgent
5768d7413db86b1d1054f0ff1102acfbea773fc7
[ "Apache-2.0" ]
null
null
null
from math import log import pickle import numpy from numpy import array from math import log10 # beam_search def beam_search(data: numpy.array, k: int) -> numpy.array: sequences = [[list(), 0.0]] for row in data: all_candidates = list() for i in range(len(sequences)): seq, score = ...
28.919708
74
0.542655
589
3,962
3.55348
0.205433
0.009556
0.014333
0.009556
0.089823
0.047778
0.047778
0.047778
0.047778
0.047778
0
0.043447
0.291267
3,962
136
75
29.132353
0.701923
0.010348
0
0.158879
0
0
0.048251
0.016084
0
0
0
0
0
1
0.11215
false
0
0.046729
0
0.233645
0.037383
0
0
0
null
0
0
0
0
0
0
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
1
0
7f840adfb6c161bcb8644492958f69399fd4eb2f
176
py
Python
Code/L016/cc.py
iot-makers-code/IoT_prototype
b6524a78756643230cc7073285ae8c2cc7563a4d
[ "MIT" ]
null
null
null
Code/L016/cc.py
iot-makers-code/IoT_prototype
b6524a78756643230cc7073285ae8c2cc7563a4d
[ "MIT" ]
null
null
null
Code/L016/cc.py
iot-makers-code/IoT_prototype
b6524a78756643230cc7073285ae8c2cc7563a4d
[ "MIT" ]
null
null
null
import time import os for i in range(50): print("Update data.") with open("DATA", "wt") as f: f.write("DATA, ") f.write( str(time.time()) ) time.sleep(2)
17.6
33
0.568182
29
176
3.448276
0.689655
0.12
0
0
0
0
0
0
0
0
0
0.022556
0.244318
176
9
34
19.555556
0.729323
0
0
0
0
0
0.136364
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.125
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
7f84dc432af3744e58df34fefd202e89d5feb1eb
1,125
py
Python
graphene_protector/django.py
Grenadingue/graphene-protector
f6d8a93100d080923aefe6ad7c0c8a65fb882673
[ "MIT" ]
null
null
null
graphene_protector/django.py
Grenadingue/graphene-protector
f6d8a93100d080923aefe6ad7c0c8a65fb882673
[ "MIT" ]
null
null
null
graphene_protector/django.py
Grenadingue/graphene-protector
f6d8a93100d080923aefe6ad7c0c8a65fb882673
[ "MIT" ]
null
null
null
from django.conf import settings import graphene from . import base class ProtectorBackend(base.ProtectorBackend): def __init__(self, *args, **kwargs): if hasattr(settings, "GRAPHENE_PROTECTOR_DEPTH_LIMIT"): kwargs.setdefault( "depth_limit", settings.GRAPHENE_PROTECTOR_DEPTH_...
32.142857
70
0.633778
105
1,125
6.438095
0.266667
0.088757
0.221893
0.110947
0.442308
0.115385
0
0
0
0
0
0
0.262222
1,125
34
71
33.088235
0.814458
0
0
0.259259
0
0
0.139556
0.088889
0
0
0
0
0
1
0.111111
false
0
0.111111
0
0.333333
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
7f85a86c36b65042bb52fa6bb39cd317aa2eeda3
488
py
Python
02-FaceDetect.py
amandureja/Important-Content
d222bbd65f3cf7b40a6766905baa160576b6d295
[ "Apache-2.0" ]
null
null
null
02-FaceDetect.py
amandureja/Important-Content
d222bbd65f3cf7b40a6766905baa160576b6d295
[ "Apache-2.0" ]
null
null
null
02-FaceDetect.py
amandureja/Important-Content
d222bbd65f3cf7b40a6766905baa160576b6d295
[ "Apache-2.0" ]
null
null
null
import cv2 face_data = cv2.CascadeClassifier("haarcascade_frontalface_default.xml") cap = cv2.VideoCapture(0) while True: ret, img = cap.read() gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) faces = face_data.detectMultiScale(gray, 1.3, 5) for x,y,w,h in faces: cv2.rectangle(img, (...
22.181818
73
0.610656
72
488
4.069444
0.611111
0.054608
0
0
0
0
0
0
0
0
0
0.067385
0.239754
488
21
74
23.238095
0.722372
0
0
0
0
0
0.08137
0.074946
0
0
0.008565
0
0
1
0
false
0
0.066667
0
0.066667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7f861c4a85065cb19ee05620bdec96aa88122e49
12,446
py
Python
src/models/train_BDRRAA.py
ChristianDjurhuus/RAA
b2eb1db527bcb09f35598c2bbf8dff2689ad599b
[ "MIT" ]
1
2022-03-16T16:09:22.000Z
2022-03-16T16:09:22.000Z
src/models/train_BDRRAA.py
ChristianDjurhuus/RAA
b2eb1db527bcb09f35598c2bbf8dff2689ad599b
[ "MIT" ]
null
null
null
src/models/train_BDRRAA.py
ChristianDjurhuus/RAA
b2eb1db527bcb09f35598c2bbf8dff2689ad599b
[ "MIT" ]
1
2022-02-18T17:10:27.000Z
2022-02-18T17:10:27.000Z
import torch import torch.nn as nn import matplotlib.pyplot as plt import torch.nn.functional as F from sklearn import metrics import seaborn as sns from torch_sparse import spspmm import numpy as np from src.visualization.visualize import Visualization from src.features.link_prediction import Link_prediction class B...
48.807843
187
0.625422
1,836
12,446
4.030501
0.158497
0.037838
0.038514
0.019459
0.448514
0.36973
0.304189
0.269459
0.196351
0.151486
0
0.01661
0.226016
12,446
255
188
48.807843
0.751583
0.087659
0
0
0
0
0.048202
0
0
0
0
0.007843
0
1
0.03125
false
0
0.078125
0
0.132813
0.03125
0
0
0
null
0
0
0
0
0
0
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
1
0
7f869c0af68af9c1d7d792cbc21f501afee6f342
185
py
Python
testName.py
zafar21/Automatic-Form-Filler
4cb7f7d62e5b0927309eb17411ffd14343fcdeb4
[ "MIT" ]
null
null
null
testName.py
zafar21/Automatic-Form-Filler
4cb7f7d62e5b0927309eb17411ffd14343fcdeb4
[ "MIT" ]
null
null
null
testName.py
zafar21/Automatic-Form-Filler
4cb7f7d62e5b0927309eb17411ffd14343fcdeb4
[ "MIT" ]
null
null
null
import pyautogui import time pyautogui.click(300, 400) pyautogui.hotkey('ctrl', 'f') time.sleep(.200) pyautogui.typewrite('email') time.sleep(.200) pyautogui.locateOnScreen('mail.png')
20.555556
36
0.767568
25
185
5.68
0.64
0.126761
0.169014
0.295775
0
0
0
0
0
0
0
0.069364
0.064865
185
8
37
23.125
0.751445
0
0
0.25
0
0
0.097297
0
0
0
0
0
0
1
0
true
0
0.25
0
0.25
0
1
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
7f8755703317e0969ef5e60e9a3552a3020e20c1
1,263
py
Python
Frame/GameView.py
FCWYzzr/py-entertain
ddc5b5df9962a4b51d15bff805961f0ed151fe23
[ "MIT" ]
null
null
null
Frame/GameView.py
FCWYzzr/py-entertain
ddc5b5df9962a4b51d15bff805961f0ed151fe23
[ "MIT" ]
null
null
null
Frame/GameView.py
FCWYzzr/py-entertain
ddc5b5df9962a4b51d15bff805961f0ed151fe23
[ "MIT" ]
null
null
null
from pygame.display import set_mode, update, set_caption from pygame.time import Clock from pygame import init, quit, QUIT from pygame.event import get as events from GameStage import GameStages from sys import exit as end class window: def __init__(self): init() Name = "Title" ...
27.456522
62
0.511481
127
1,263
5.023622
0.456693
0.15047
0
0
0
0
0
0
0
0
0
0.012081
0.410135
1,263
45
63
28.066667
0.844295
0.007918
0
0
0
0
0.015755
0
0
0
0
0
0
1
0.083333
false
0.027778
0.166667
0
0.277778
0.027778
0
0
0
null
0
0
0
0
0
0
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
1
0
7f87609b319d11eb19d09b2679873ad7399e930b
1,268
py
Python
test/test_sources.py
PSD79/avaland
142547e48b1728db6efe8a6b9f02af18a1b42bc5
[ "MIT" ]
27
2020-05-12T22:02:57.000Z
2021-07-27T10:53:24.000Z
test/test_sources.py
PSD79/avaland
142547e48b1728db6efe8a6b9f02af18a1b42bc5
[ "MIT" ]
null
null
null
test/test_sources.py
PSD79/avaland
142547e48b1728db6efe8a6b9f02af18a1b42bc5
[ "MIT" ]
2
2020-05-13T18:40:03.000Z
2020-05-14T15:01:07.000Z
import inspect import unittest from avaland import sources from avaland import MusicBase from avaland.search import SearchResult def test_search(self): query = self.source.search.test source = self.source({}).search(query) self.assertIsInstance(source, SearchResult) def test_artist_id(self): artist...
24.862745
60
0.702681
167
1,268
5.11976
0.269461
0.093567
0.091228
0.070175
0.267836
0.157895
0
0
0
0
0
0.005758
0.178233
1,268
50
61
25.36
0.814779
0
0
0.088235
0
0
0.043444
0
0
0
0
0
0.117647
1
0.147059
false
0
0.147059
0
0.323529
0
0
0
0
null
0
0
0
0
0
0
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
1
0
7f8763673577a30d433ba355c7239e3606ba5069
236
py
Python
vspkgenerator/vanilla/python/__overrides/nume.override.py
pdumais/vspkgenerator
b8fff474f4ef3d8a4278f9c116df01d057c56995
[ "BSD-3-Clause" ]
2
2015-10-10T08:59:39.000Z
2015-10-22T09:33:01.000Z
vspkgenerator/vanilla/python/__overrides/nume.override.py
rajeshnokia/vspkgenerator
b8fff474f4ef3d8a4278f9c116df01d057c56995
[ "BSD-3-Clause" ]
16
2015-11-05T13:15:30.000Z
2019-09-24T23:48:54.000Z
vspkgenerator/vanilla/python/__overrides/nume.override.py
pdumais/vspkgenerator
b8fff474f4ef3d8a4278f9c116df01d057c56995
[ "BSD-3-Clause" ]
13
2015-11-18T08:03:44.000Z
2020-12-24T03:39:29.000Z
def save(self, as_async=False, callback=None, **kwargs): """ """ if 'async' in kwargs.keys() and not as_async: as_async = kwargs['async'] super(NUMe, self).save(as_async=as_async, callback=callback, encrypted=False)
39.333333
81
0.665254
34
236
4.470588
0.5
0.230263
0.118421
0.184211
0
0
0
0
0
0
0
0
0.173729
236
5
82
47.2
0.779487
0
0
0
0
0
0.043668
0
0
0
0
0
0
1
0.25
false
0
0
0
0.25
0
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
4
7f88a5b5649c62584bb4e5058103dfe3ee699bde
382
py
Python
db.py
dcronqvist/restberry-api
35a2698ae946fc392e5e7d56dbc22b0719d6f5b6
[ "MIT" ]
1
2020-09-18T23:17:27.000Z
2020-09-18T23:17:27.000Z
db.py
dcronqvist/restberry-api
35a2698ae946fc392e5e7d56dbc22b0719d6f5b6
[ "MIT" ]
7
2020-09-29T14:21:24.000Z
2021-06-15T22:04:47.000Z
db.py
dcronqvist/restberry-api
35a2698ae946fc392e5e7d56dbc22b0719d6f5b6
[ "MIT" ]
null
null
null
from pymongo import MongoClient import config as config db_conn = MongoClient(config.get_setting("mongo-db-conn", "null")) db = db_conn.restberry_api coll_trans = db.transactions coll_accounts = db.accounts def stringify_ids(docs): """ Expects docs to be a list of documents, not a cursor. """ for doc...
23.875
66
0.693717
57
382
4.491228
0.649123
0.070313
0
0
0
0
0
0
0
0
0
0
0.196335
382
16
67
23.875
0.833876
0.138743
0
0
0
0
0.073248
0
0
0
0
0
0
1
0.1
false
0
0.2
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7f88d3f2996bb1d9a7bdfe7b4b07037563dd2710
3,847
py
Python
Udacity_Fullstack_Nanodegree/vagrant/catalog/project.py
maistrovas/My-Courses-Solutions
7a74add8e853f6c609d1f2656492e1c7c676a7e9
[ "MIT" ]
null
null
null
Udacity_Fullstack_Nanodegree/vagrant/catalog/project.py
maistrovas/My-Courses-Solutions
7a74add8e853f6c609d1f2656492e1c7c676a7e9
[ "MIT" ]
null
null
null
Udacity_Fullstack_Nanodegree/vagrant/catalog/project.py
maistrovas/My-Courses-Solutions
7a74add8e853f6c609d1f2656492e1c7c676a7e9
[ "MIT" ]
null
null
null
from flask import Flask, render_template, url_for, request, redirect, flash, jsonify from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker import datetime from database_setup import Base, Restaurant, MenuItem app = Flask(__name__) engine = create_engine('sqlite:///restaurantmenu.db') Base.metada...
31.793388
84
0.710164
470
3,847
5.629787
0.223404
0.14966
0.063492
0.081633
0.470144
0.442933
0.442933
0.328042
0.310658
0.295918
0
0.003418
0.163504
3,847
121
85
31.793388
0.818832
0.093579
0
0.255814
0
0
0.175913
0.09428
0
0
0
0
0
0
null
null
0.034884
0.05814
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
7f88fb7cac6580e430925045266e0c4ac360b0d2
213
py
Python
ppci/graph/__init__.py
jsdelivrbot/ppci-mirror
67195d628275e2332ceaf44c9e13fc58d0877157
[ "BSD-2-Clause" ]
null
null
null
ppci/graph/__init__.py
jsdelivrbot/ppci-mirror
67195d628275e2332ceaf44c9e13fc58d0877157
[ "BSD-2-Clause" ]
null
null
null
ppci/graph/__init__.py
jsdelivrbot/ppci-mirror
67195d628275e2332ceaf44c9e13fc58d0877157
[ "BSD-2-Clause" ]
null
null
null
""" Graph algorithms module. """ from .graph import Graph, Node from .digraph import DiGraph, DiNode from .maskable_graph import MaskableGraph __all__ = ('Graph', 'Node', 'DiGraph', 'DiNode', 'MaskableGraph')
19.363636
65
0.723005
24
213
6.208333
0.458333
0.147651
0
0
0
0
0
0
0
0
0
0
0.140845
213
10
66
21.3
0.814208
0.112676
0
0
0
0
0.194444
0
0
0
0
0
0
1
0
false
0
0.75
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
7f89d6f19aa8fe7e4a2b47ac44b71ea6a1395fce
19,122
py
Python
garnett/shapes.py
glotzerlab/garne
f9cb7bad391299e28feb4010eb77447fdc4512cb
[ "BSD-3-Clause" ]
4
2019-07-30T00:12:44.000Z
2020-03-03T19:58:34.000Z
garnett/shapes.py
glotzerlab/garne
f9cb7bad391299e28feb4010eb77447fdc4512cb
[ "BSD-3-Clause" ]
62
2019-07-29T20:05:46.000Z
2022-02-16T15:22:01.000Z
garnett/shapes.py
glotzerlab/garne
f9cb7bad391299e28feb4010eb77447fdc4512cb
[ "BSD-3-Clause" ]
2
2020-03-03T19:59:09.000Z
2021-03-22T14:48:56.000Z
# Copyright (c) 2020 The Regents of the University of Michigan # All rights reserved. # This software is licensed under the BSD 3-Clause License. """Abstract shape definitions used to read/write particle shapes.""" import json import logging import numpy as np __all__ = [ 'FallbackShape', 'Shape', 'Spher...
31.65894
108
0.563278
2,185
19,122
4.798627
0.119908
0.019838
0.026896
0.034335
0.523796
0.507773
0.471626
0.461707
0.436815
0.4165
0
0.025248
0.308179
19,122
603
109
31.711443
0.767329
0.357076
0
0.470175
0
0
0.092603
0.008639
0
0
0
0
0
1
0.136842
false
0.003509
0.010526
0.045614
0.301754
0
0
0
0
null
0
0
0
0
0
0
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
1
0
7f89ef2283ab13bb046619397b197275189da323
24,174
py
Python
swagger_client/apis/organization_api.py
ESIPFed/corpy
e1eec577f15934c6969784c4025d2c29eb7c32ca
[ "Apache-2.0" ]
null
null
null
swagger_client/apis/organization_api.py
ESIPFed/corpy
e1eec577f15934c6969784c4025d2c29eb7c32ca
[ "Apache-2.0" ]
null
null
null
swagger_client/apis/organization_api.py
ESIPFed/corpy
e1eec577f15934c6969784c4025d2c29eb7c32ca
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ ORR API Documentation The main ORR documentation is located at: https://mmisw.org/orrdoc/ __Please note__: - The ORR API is approaching a stable version but is still work in progress. Please [let us know](https://github.com/mmisw/mmiorr-docs/issues) if you have any questions or sugges...
43.090909
1,710
0.577108
2,535
24,174
5.289941
0.116371
0.027666
0.02088
0.026846
0.863087
0.851902
0.851902
0.833706
0.830276
0.82692
0
0.000253
0.344957
24,174
560
1,711
43.167857
0.846606
0.381402
0
0.775735
0
0
0.145354
0.024336
0
0
0
0
0
1
0.040441
false
0
0.025735
0
0.125
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
1
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
7f8b06b9284f0d519a5edeab7410a71507203f87
7,146
py
Python
cre8/layout.py
dekarrin/cre8orforge
b93801da140ed245d4a0f7129bde0d3e655752c9
[ "MIT" ]
null
null
null
cre8/layout.py
dekarrin/cre8orforge
b93801da140ed245d4a0f7129bde0d3e655752c9
[ "MIT" ]
4
2021-12-06T14:06:34.000Z
2021-12-21T13:12:17.000Z
cre8/layout.py
dekarrin/cre8mancer
b93801da140ed245d4a0f7129bde0d3e655752c9
[ "MIT" ]
null
null
null
import math from .format import format_timer, pad_middle, pad_right, pad_left from . import format from .activities import Activity, OwnedActivities DefaultTextCardWidth = 65 _RightColumnWidth = 14 def progress_bar( width: int, progress: float, end_char: str = '|', fill_char: str = '-', empty_cha...
42.790419
106
0.623566
1,014
7,146
4.138067
0.198225
0.026215
0.030982
0.020257
0.404433
0.35796
0.310772
0.282412
0.225214
0.208055
0
0.017238
0.236916
7,146
167
107
42.790419
0.752246
0.356143
0
0.258824
0
0
0.044659
0
0
0
0
0
0
1
0.047059
false
0
0.047059
0.011765
0.141176
0
0
0
0
null
0
0
0
0
0
0
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
1
0
7f8d5a04fa22a72def6576019a66f48aed48a68f
1,831
py
Python
roblox/utilities/shared.py
Boegie19/ro.py
68b8acb506ab3057670168434fbf90ea0d05943f
[ "MIT" ]
null
null
null
roblox/utilities/shared.py
Boegie19/ro.py
68b8acb506ab3057670168434fbf90ea0d05943f
[ "MIT" ]
null
null
null
roblox/utilities/shared.py
Boegie19/ro.py
68b8acb506ab3057670168434fbf90ea0d05943f
[ "MIT" ]
1
2021-06-28T14:57:39.000Z
2021-06-28T14:57:39.000Z
""" This module contains the ClientSharedObject, which is shared between the client and all objects it generates. """ from __future__ import annotations from typing import TYPE_CHECKING, Optional from .requests import Requests from .url import URLGenerator if TYPE_CHECKING: from ..client import Client fro...
34.54717
109
0.713271
195
1,831
6.569231
0.292308
0.056206
0.066354
0.078064
0.074941
0.074941
0.074941
0.074941
0.074941
0.074941
0
0
0.229929
1,831
52
110
35.211538
0.908511
0.395958
0
0
1
0
0
0
0
0
0
0
0
1
0.047619
false
0
0.47619
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
1
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
7f8dc9d86f37042f9bf2a72c821d1fb648b7c645
3,281
py
Python
app.py
gakunkel/sqlalchemy-challenge
f7fa8ae4e7d5f4ed77446ddd57b5695e8ca69947
[ "MIT" ]
null
null
null
app.py
gakunkel/sqlalchemy-challenge
f7fa8ae4e7d5f4ed77446ddd57b5695e8ca69947
[ "MIT" ]
null
null
null
app.py
gakunkel/sqlalchemy-challenge
f7fa8ae4e7d5f4ed77446ddd57b5695e8ca69947
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[ ]: import datetime as dt import pandas as pd import numpy as np import sqlalchemy from sqlalchemy.ext.automap import automap_base from sqlalchemy.orm import Session from sqlalchemy import create_engine, func from flask import Flask, jsonify # Establishing a connection e...
28.530435
121
0.682414
445
3,281
4.979775
0.310112
0.020307
0.024368
0.029332
0.265794
0.217058
0.162455
0.141697
0.098375
0.038809
0
0.017925
0.200853
3,281
114
122
28.780702
0.827231
0.266992
0
0.166667
0
0
0.146812
0.076762
0
0
0
0
0
1
0.083333
false
0
0.133333
0.016667
0.316667
0
0
0
0
null
0
0
0
0
0
0
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
1
0
7f8e9b2d12abccfba6d15231cb1a8950c8371c66
6,330
py
Python
src/Model.py
colombelli/whatsapp-nlp
64b54b35a2fefc7bed76e4c16841202252ea8a96
[ "MIT" ]
2
2021-05-31T16:58:15.000Z
2021-10-02T23:21:01.000Z
src/Model.py
colombelli/whatsapp-nlp
64b54b35a2fefc7bed76e4c16841202252ea8a96
[ "MIT" ]
null
null
null
src/Model.py
colombelli/whatsapp-nlp
64b54b35a2fefc7bed76e4c16841202252ea8a96
[ "MIT" ]
null
null
null
import tensorflow as tf from tqdm import tqdm from DataProcessing import DataProcessing # Based on MIT's introduction to Deep Learning course class Model: """ LSTM model for learning from the data and generating a conversation. The model recognizes all different possible words and map them to a number...
38.363636
108
0.615166
745
6,330
5.034899
0.302013
0.028792
0.027993
0.010664
0.122634
0.099707
0.099707
0.078379
0.078379
0.078379
0
0.006034
0.319273
6,330
165
109
38.363636
0.86447
0.296998
0
0.050633
0
0
0.007372
0
0
0
0
0
0
1
0.075949
false
0
0.037975
0
0.177215
0
0
0
0
null
0
0
0
0
0
0
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
1
0
7f8ec6323597a615a6b8ab14e3b12a4175f2d4c5
1,989
py
Python
ionyweb/page_app/page_agenda/tests.py
makinacorpus/ionyweb
2f18e3dc1fdc86c7e19bae3778e67e28a37567be
[ "BSD-3-Clause" ]
4
2015-09-28T10:07:39.000Z
2019-10-18T20:14:07.000Z
ionyweb/page_app/page_agenda/tests.py
makinacorpus/ionyweb
2f18e3dc1fdc86c7e19bae3778e67e28a37567be
[ "BSD-3-Clause" ]
1
2021-03-19T21:41:33.000Z
2021-03-19T21:41:33.000Z
ionyweb/page_app/page_agenda/tests.py
makinacorpus/ionyweb
2f18e3dc1fdc86c7e19bae3778e67e28a37567be
[ "BSD-3-Clause" ]
1
2017-10-12T09:25:19.000Z
2017-10-12T09:25:19.000Z
# -*- coding: utf-8 -*- import datetime from django.conf import settings from django.contrib.auth.models import User from django.contrib.sites.models import Site from ionyweb.website.models import WebSite from ionyweb.page.models import Page from ionyweb.page_app.page_agenda.models import PageApp_Agenda, Event from ...
33.711864
82
0.609351
215
1,989
5.539535
0.427907
0.050378
0.04534
0.052897
0.047019
0.047019
0.047019
0
0
0
0
0.022567
0.287079
1,989
58
83
34.293103
0.817348
0.057818
0
0.05
0
0
0.078117
0.011236
0
0
0
0
0.075
1
0.05
false
0.025
0.2
0
0.275
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7f8f2d9c3b262383ed821e25ae5cb5c7380f6cde
12,256
py
Python
test/test_decorator.py
dcartman/pygame-menu
52a823b9121aadd6893fb878150d613ab516fcac
[ "MIT" ]
null
null
null
test/test_decorator.py
dcartman/pygame-menu
52a823b9121aadd6893fb878150d613ab516fcac
[ "MIT" ]
null
null
null
test/test_decorator.py
dcartman/pygame-menu
52a823b9121aadd6893fb878150d613ab516fcac
[ "MIT" ]
null
null
null
""" pygame-menu https://github.com/ppizarror/pygame-menu TEST DECORATOR Decorator API. """ __all__ = ['DecoratorTest'] from test._utils import MenuUtils, surface, TEST_THEME, BaseTest import copy import pygame import pygame_menu import timeit # Configure the tests TEST_TIME_DRAW = False class DecoratorTest(BaseTe...
35.941349
116
0.593995
1,603
12,256
4.383032
0.140986
0.040848
0.027896
0.039852
0.605892
0.537859
0.476658
0.432679
0.376032
0.349843
0
0.062368
0.266074
12,256
340
117
36.047059
0.718733
0.102807
0
0.443396
0
0
0.025203
0.004854
0
0
0
0
0.40566
1
0.042453
false
0.004717
0.023585
0
0.075472
0.014151
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
7f8f89b4e07ea9a13fed5571bee4f061b94852e5
1,380
py
Python
PythonLearn/pandas/basic2.py
OKKyu/PythonLearn
48dc4cc2a1a34d99b09f8d37a5566d448dcf987c
[ "MIT" ]
null
null
null
PythonLearn/pandas/basic2.py
OKKyu/PythonLearn
48dc4cc2a1a34d99b09f8d37a5566d448dcf987c
[ "MIT" ]
null
null
null
PythonLearn/pandas/basic2.py
OKKyu/PythonLearn
48dc4cc2a1a34d99b09f8d37a5566d448dcf987c
[ "MIT" ]
null
null
null
#!python3 # -*- coding:utf-8 -*- import numpy as np import pandas as pd import urllib.parse ''' This soure code is a sample of using pandas library. Reading from external file to DataFrame. ''' #Method of CSV Reading df = pd.read_csv("./201704health.csv", encoding="utf-8") print("read csv") print(df.head(4)) prin...
30.666667
94
0.741304
226
1,380
4.442478
0.371681
0.099602
0.047809
0.047809
0.219124
0.201195
0.14741
0.069721
0
0
0
0.017515
0.131159
1,380
44
95
31.363636
0.81985
0.439855
0
0.238095
0
0
0.287462
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.428571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
7f8fedeabf571a4542f1688e973043c53b7ef3b3
8,279
py
Python
libs/helpers.py
lbahtarliev/MalwareScan
495e2fd3ceb3498c651ddd360a4cc2eb9571a10b
[ "Unlicense" ]
3
2018-12-06T03:09:16.000Z
2021-02-25T01:13:05.000Z
libs/helpers.py
lbahtarliev/MalwareScan
495e2fd3ceb3498c651ddd360a4cc2eb9571a10b
[ "Unlicense" ]
9
2018-12-10T18:44:14.000Z
2019-02-06T21:13:31.000Z
libs/helpers.py
lbahtarliev/MalwareScan
495e2fd3ceb3498c651ddd360a4cc2eb9571a10b
[ "Unlicense" ]
4
2019-06-04T13:46:24.000Z
2021-02-25T02:23:50.000Z
# -*- coding: utf-8 -*- import os import re import shutil import sys import time from datetime import datetime as dtime from datetime import timedelta as tdelta from hashlib import md5, sha1, sha256 from dateutil.parser import parse as dtparser # Some RegExes re_md5 = re.compile("^([0-9]|[a-f]){32}$", re.I) re_sha1 = ...
30.549815
113
0.578452
1,098
8,279
4.192168
0.257741
0.01738
0.005214
0.006952
0.260048
0.214208
0.191397
0.191397
0.155333
0.139257
0
0.022269
0.256915
8,279
270
114
30.662963
0.725943
0.118251
0
0.191176
0
0.009804
0.212071
0.026855
0
0
0
0
0
1
0.073529
false
0
0.04902
0.004902
0.205882
0
0
0
0
null
0
0
0
0
0
0
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
1
0
7f933adecbe017e770aa506f0488152882940d45
12,364
py
Python
pyaviso/cli_aviso.py
mpejcoch/aviso
250b5646220fae85725278b3ca80fed4e15a103a
[ "Apache-2.0" ]
6
2021-02-03T17:55:05.000Z
2022-02-20T08:05:42.000Z
pyaviso/cli_aviso.py
mpejcoch/aviso
250b5646220fae85725278b3ca80fed4e15a103a
[ "Apache-2.0" ]
1
2021-04-26T14:42:39.000Z
2021-04-26T14:42:39.000Z
pyaviso/cli_aviso.py
mpejcoch/aviso
250b5646220fae85725278b3ca80fed4e15a103a
[ "Apache-2.0" ]
2
2021-02-09T15:07:41.000Z
2021-08-13T09:55:30.000Z
# (C) Copyright 1996- ECMWF. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernment...
32.882979
120
0.663054
1,547
12,364
5.184228
0.215902
0.015711
0.013466
0.0202
0.351746
0.298504
0.271571
0.250499
0.243142
0.239277
0
0.003775
0.228729
12,364
375
121
32.970667
0.837248
0.232287
0
0.376106
0
0
0.169667
0.010256
0
0
0
0
0.013274
1
0.075221
false
0.00885
0.057522
0
0.176991
0.013274
0
0
0
null
0
0
0
0
0
0
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
1
0
7f93d54e8a447a4241851eb2750b969c33fadc5a
1,726
py
Python
utils/registrar.py
glusa8/navygem
be437f3ce89d2edc5a565d7903e80171abec6929
[ "MIT" ]
1
2018-05-17T13:05:06.000Z
2018-05-17T13:05:06.000Z
utils/registrar.py
glusa8/navygem
be437f3ce89d2edc5a565d7903e80171abec6929
[ "MIT" ]
null
null
null
utils/registrar.py
glusa8/navygem
be437f3ce89d2edc5a565d7903e80171abec6929
[ "MIT" ]
null
null
null
from navygem.settings import BASE_DIR import glob import json import os class ResourceRegistrarMeta(type): file = __file__ def __new__(cls, name, parents, dct): if 'types' in dct: files = {} for root, _, filenames in os.walk(os.path.dirname(os.path.realpath(cls.file))): ...
33.192308
96
0.61124
198
1,726
5.085859
0.378788
0.041708
0.044687
0.06852
0.12711
0.087388
0.087388
0.087388
0
0
0
0.005771
0.297219
1,726
51
97
33.843137
0.824402
0.056199
0
0.054054
0
0
0.04
0
0
0
0
0
0
1
0.108108
false
0
0.135135
0
0.486486
0
0
0
0
null
0
0
0
0
0
0
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
1
0
7f94213e1a3c5afa69993b7cc233426e39793984
171
py
Python
280/solution.py
Pedram-Parsian/quera-answers
bbdbe613266358482c394f6f80731a23c3ac738d
[ "MIT" ]
1
2020-03-17T21:18:59.000Z
2020-03-17T21:18:59.000Z
280/solution.py
Pedram-Parsian/quera-answers
bbdbe613266358482c394f6f80731a23c3ac738d
[ "MIT" ]
null
null
null
280/solution.py
Pedram-Parsian/quera-answers
bbdbe613266358482c394f6f80731a23c3ac738d
[ "MIT" ]
null
null
null
inp = map(int, [input() for _ in range(3)]) square = sorted([i ** 2 for i in inp], reverse=True) if square[0] == sum(square[1:]): print('YES') else: print('NO')
19
52
0.573099
29
171
3.344828
0.758621
0
0
0
0
0
0
0
0
0
0
0.029412
0.204678
171
8
53
21.375
0.683824
0
0
0
0
0
0.02924
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
7f956d5f8233b1c96361f43fdbe16032f4c6826a
4,412
py
Python
rank_predictor/rank_predictor/model/graph_only_models.py
Simsso/Vision-Based-Page-Rank-Estimation
424d80031501701ebe1ab1473b0fb09ccd6f6453
[ "MIT" ]
3
2019-05-27T05:59:40.000Z
2021-06-03T20:10:49.000Z
rank_predictor/rank_predictor/model/graph_only_models.py
Simsso/Vision-Based-Page-Rank-Estimation
424d80031501701ebe1ab1473b0fb09ccd6f6453
[ "MIT" ]
null
null
null
rank_predictor/rank_predictor/model/graph_only_models.py
Simsso/Vision-Based-Page-Rank-Estimation
424d80031501701ebe1ab1473b0fb09ccd6f6453
[ "MIT" ]
1
2020-02-18T16:27:30.000Z
2020-02-18T16:27:30.000Z
from copy import deepcopy import torch from graph_nets.data_structures.edge import Edge from graph_nets.functions.aggregation import AvgAggregation, MaxAggregation from graph_nets.block import GNBlock from graph_nets.data_structures.graph import Graph from torch import nn, Tensor from graph_nets.functions.update impo...
31.741007
118
0.625793
537
4,412
4.934823
0.251397
0.041509
0.024528
0.018113
0.277358
0.256981
0.249057
0.229434
0.200755
0.200755
0
0.00313
0.275839
4,412
138
119
31.971014
0.826291
0.105168
0
0.368421
0
0
0.028438
0
0
0
0
0
0.021053
1
0.105263
false
0
0.105263
0
0.315789
0
0
0
0
null
0
0
0
0
0
0
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
1
0
7f96bdf44dc60de6bbd40effad99317503200d41
620
py
Python
hs_core/migrations/0054_auto_20201028_1432.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
178
2015-01-08T23:03:36.000Z
2022-03-03T13:56:45.000Z
hs_core/migrations/0054_auto_20201028_1432.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
4,125
2015-01-01T14:26:15.000Z
2022-03-31T16:38:55.000Z
hs_core/migrations/0054_auto_20201028_1432.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
53
2015-03-15T17:56:51.000Z
2022-03-17T00:32:16.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.29 on 2020-10-28 14:32 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('hs_core', '0053_auto_20200826_1629'), ] operations = [ migrations.AlterFie...
29.52381
208
0.627419
64
620
5.90625
0.78125
0
0
0
0
0
0
0
0
0
0
0.07362
0.21129
620
20
209
31
0.699387
0.11129
0
0
1
0
0.251825
0.041971
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
7f971fac68abf046c70d17ff216b21ac6dd5fe7d
3,337
py
Python
plotting.py
oytundemirbilek/ReMI-Net-Star
fd7412e08bbdc1ee66053f17e4e781bdf319cd73
[ "MIT" ]
1
2021-12-13T11:16:59.000Z
2021-12-13T11:16:59.000Z
plotting.py
oytundemirbilek/ReMI-Net-Star
fd7412e08bbdc1ee66053f17e4e781bdf319cd73
[ "MIT" ]
null
null
null
plotting.py
oytundemirbilek/ReMI-Net-Star
fd7412e08bbdc1ee66053f17e4e781bdf319cd73
[ "MIT" ]
1
2022-01-03T16:20:14.000Z
2022-01-03T16:20:14.000Z
import matplotlib.pyplot as plt import numpy as np import pandas as pd import networkx as nx from matplotlib._color_data import BASE_COLORS from nxviz.api import CircosPlot def save_csv(name, data, columns, index): saving = pd.DataFrame(data=data,columns=columns,index=index) saving.to_csv(name) d...
37.920455
144
0.641594
507
3,337
4.094675
0.360947
0.013487
0.036609
0.013487
0.055877
0.038536
0
0
0
0
0
0.023525
0.197483
3,337
88
145
37.920455
0.75168
0.041355
0
0.081081
0
0.013514
0.172514
0.044094
0
0
0
0
0
1
0.067568
false
0
0.081081
0
0.148649
0.027027
0
0
0
null
0
0
0
0
0
0
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
1
0
7f97dbd9f97f19001752071be1afe254daea44e0
4,925
py
Python
datasets/single_file_dataset.py
AiPBAND/OmiTrans
8e5d9198a1ee422eb805e5ead068c1a2523aeed5
[ "MIT" ]
3
2021-11-26T04:43:05.000Z
2022-02-23T20:18:10.000Z
datasets/single_file_dataset.py
AiPBAND/OmiTrans
8e5d9198a1ee422eb805e5ead068c1a2523aeed5
[ "MIT" ]
1
2022-03-02T03:39:29.000Z
2022-03-02T03:39:29.000Z
datasets/single_file_dataset.py
AiPBAND/OmiTrans
8e5d9198a1ee422eb805e5ead068c1a2523aeed5
[ "MIT" ]
3
2021-11-26T06:25:46.000Z
2022-03-09T13:16:45.000Z
import torch import os.path import numpy as np import pandas as pd from util import preprocess from datasets import load_file from datasets.basic_dataset import BasicDataset class SingleFileDataset(BasicDataset): """ A dataset class for single file paired omics dataset. The data should be two single files...
38.779528
117
0.586802
687
4,925
3.954876
0.176128
0.051527
0.02834
0.036069
0.353699
0.30806
0.267575
0.128451
0.128451
0.077659
0
0.005386
0.321421
4,925
126
118
39.087302
0.8076
0.217868
0
0.25
0
0
0.028047
0
0
0
0
0
0
1
0.0375
false
0
0.0875
0
0.1625
0
0
0
0
null
0
0
0
0
0
0
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
1
0
7f989baf22457d064a80cc2874de7f09184bd835
416
py
Python
src/logs/logs.py
StevenVuong/twitter_scraper_sentiment_analysis
6306dcb7e43d53da8d53c9d90d81d70dae442665
[ "MIT" ]
2
2020-05-11T16:48:40.000Z
2020-05-11T21:03:10.000Z
src/logs/logs.py
StevenVuong/twitter_scraper_sentiment_analysis
6306dcb7e43d53da8d53c9d90d81d70dae442665
[ "MIT" ]
null
null
null
src/logs/logs.py
StevenVuong/twitter_scraper_sentiment_analysis
6306dcb7e43d53da8d53c9d90d81d70dae442665
[ "MIT" ]
null
null
null
import logging formatting = "%(levelname)s: " \ "%(asctime)s -> " \ "%(name)s - " \ "line %(lineno)d: " \ "%(message)s" def add_stream_handler(logger: logging.Logger): formatter = logging.Formatter(formatting) handler = logging.StreamHandler() handler....
23.111111
47
0.588942
38
416
6.394737
0.578947
0
0
0
0
0
0
0
0
0
0
0
0.271635
416
18
48
23.111111
0.80198
0
0
0
0
0
0.165468
0
0
0
0
0
0
1
0.083333
false
0
0.083333
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7f98bb6fd3647e5453adea196efd86f8d2809974
401
py
Python
plugins/addtodb.py
jasperazerbaijan/gpytranslator-bot
51bf686885afdce450ce6cb1af9f8f0a06caf143
[ "MIT" ]
null
null
null
plugins/addtodb.py
jasperazerbaijan/gpytranslator-bot
51bf686885afdce450ce6cb1af9f8f0a06caf143
[ "MIT" ]
null
null
null
plugins/addtodb.py
jasperazerbaijan/gpytranslator-bot
51bf686885afdce450ce6cb1af9f8f0a06caf143
[ "MIT" ]
1
2021-07-21T20:09:23.000Z
2021-07-21T20:09:23.000Z
from pyrogram import Client, filters from pyrogram.types import Message from db import functions as db @Client.on_message(filters.private, group=-1) async def check_chat(bot: Client, message: Message): chat_id = message.chat.id chat_type = message.chat.type if not db.chat_exists(chat_id, chat_type): ...
30.846154
52
0.735661
65
401
4.338462
0.430769
0.106383
0.141844
0.198582
0.113475
0
0
0
0
0
0
0.003003
0.169576
401
12
53
33.416667
0.843844
0
0
0
0
0
0.004988
0
0
0
0
0
0
1
0
false
0
0.3
0
0.3
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7f9a1b01235ac13ec73615626dff07dcf5e1e468
364
py
Python
inventories/models.py
amado-developer/ReadHub-RestfulAPI
8d8b445c4a84810d52bbf78a2593e0b48351590c
[ "MIT" ]
null
null
null
inventories/models.py
amado-developer/ReadHub-RestfulAPI
8d8b445c4a84810d52bbf78a2593e0b48351590c
[ "MIT" ]
7
2021-03-19T03:09:53.000Z
2022-01-13T02:48:44.000Z
inventories/models.py
amado-developer/ReadHub-RestfulAPI
8d8b445c4a84810d52bbf78a2593e0b48351590c
[ "MIT" ]
null
null
null
from django.db import models class Inventory(models.Model): for_sale = models.BooleanField(default=True) price = models.FloatField(null=False) digital_book = models.ForeignKey( to='digital_books.digital_book', on_delete=models.CASCADE, default=0 ) class Meta: verbose_name = 'Invento...
28
76
0.717033
44
364
5.75
0.704545
0.086957
0
0
0
0
0
0
0
0
0
0.003378
0.186813
364
12
77
30.333333
0.851351
0
0
0
0
0
0.126374
0.071429
0
0
0
0
0
1
0
false
0
0.1
0
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
7f9a44704bf28caed583acc9794de18d82642fff
1,004
py
Python
tests/test_main.py
thiaghenr/pokemon-api
f915b2db0a73133dd13b0529ec25fdc602334829
[ "MIT" ]
3
2021-04-28T14:37:22.000Z
2022-01-20T20:16:57.000Z
tests/test_main.py
thiaghenr/pokemon-api
f915b2db0a73133dd13b0529ec25fdc602334829
[ "MIT" ]
null
null
null
tests/test_main.py
thiaghenr/pokemon-api
f915b2db0a73133dd13b0529ec25fdc602334829
[ "MIT" ]
null
null
null
import sys sys.path.append('/home/user/Desktop/app') #/home/user/Desktop/app import sys from fastapi.testclient import TestClient from test_database import test_engine, override_get_db from app.main import app, pokemon, pokemon_type, user, team from app.routers.pokemon import get_db pokemon.Base.metadata.create_all(te...
37.185185
65
0.815737
157
1,004
4.961783
0.216561
0.166881
0.184852
0.215661
0.599487
0.590501
0.550706
0.240051
0
0
0
0
0.082669
1,004
27
66
37.185185
0.84582
0.021912
0
0.090909
0
0
0.022403
0.022403
0
0
0
0
0
1
0.045455
false
0
0.272727
0
0.318182
0
0
0
0
null
0
1
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
2
7f9b1d895482976485b1998550d8af3dc65dcd05
1,544
py
Python
miniworld/model/network/backends/InterfaceFilter.py
miniworld-project/miniworld_core
c591bad232b78eae99e8f55cb1b907c1e228484b
[ "MIT" ]
5
2019-05-11T14:57:15.000Z
2021-07-05T00:35:25.000Z
miniworld/model/network/backends/InterfaceFilter.py
miniworld-project/miniworld_core
c591bad232b78eae99e8f55cb1b907c1e228484b
[ "MIT" ]
27
2017-03-17T07:11:02.000Z
2019-05-26T23:36:56.000Z
miniworld/model/network/backends/InterfaceFilter.py
miniworld-project/miniworld_core
c591bad232b78eae99e8f55cb1b907c1e228484b
[ "MIT" ]
6
2017-05-03T12:11:33.000Z
2020-04-03T11:44:27.000Z
class InterfaceFilter: def __init__(self, *args, **kwargs): pass def get_interfaces(self, emulation_node_x, emulation_node_y): """ Attributes ---------- emulation_node_x: EmulationNode emulation_node_y: EmulationNode Returns ------- ge...
28.592593
103
0.695596
176
1,544
5.744318
0.301136
0.167161
0.096934
0.138477
0.496538
0.454995
0.454995
0.44906
0.44906
0.276954
0
0
0.22215
1,544
53
104
29.132075
0.841799
0.186529
0
0.380952
0
0
0
0
0
0
0
0.018868
0
1
0.238095
false
0.142857
0
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
1
0
0
1
0
1
0
0
0
0
0
3
7f9c5084f89538634a98df1c39e0e6893ba8074f
1,490
py
Python
test/facet_extraction_test.py
Coveochatbot/megageniale-mlapi
61666c33a4313c9906d874fa04dd6c6bd45df583
[ "MIT" ]
null
null
null
test/facet_extraction_test.py
Coveochatbot/megageniale-mlapi
61666c33a4313c9906d874fa04dd6c6bd45df583
[ "MIT" ]
3
2018-10-20T23:10:14.000Z
2018-12-15T00:44:49.000Z
test/facet_extraction_test.py
Coveochatbot/megageniale-mlapi
61666c33a4313c9906d874fa04dd6c6bd45df583
[ "MIT" ]
1
2018-11-12T14:38:09.000Z
2018-11-12T14:38:09.000Z
import unittest from mlapi.facet_extractor import FacetExtractor from definitions import Definitions from pathlib import Path class TestFacetExtractor(unittest.TestCase): TEST_FILE_A = Path(Definitions.ROOT_DIR + "/test/test_files/facets/facet_extraction_test_file_a.json") TEST_FILE_B = Path(Definitions.ROOT_...
40.27027
115
0.710067
191
1,490
5.256545
0.246073
0.164343
0.035857
0.079681
0.250996
0.207171
0.207171
0.207171
0.12749
0.12749
0
0.016706
0.156376
1,490
36
116
41.388889
0.782021
0
0
0
0
0
0.147651
0.07651
0
0
0
0
0.423077
1
0.115385
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
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
7f9c8dc6502277cee6d449f6878ecff4b464a9ee
1,782
py
Python
assets/lib/functions/database.py
Nuk3lar/NATO-Bot
3775ae42055c5e91f8c071af5f5973b17abccc31
[ "MIT" ]
null
null
null
assets/lib/functions/database.py
Nuk3lar/NATO-Bot
3775ae42055c5e91f8c071af5f5973b17abccc31
[ "MIT" ]
null
null
null
assets/lib/functions/database.py
Nuk3lar/NATO-Bot
3775ae42055c5e91f8c071af5f5973b17abccc31
[ "MIT" ]
null
null
null
# SQL Module import MySQLdb def TEST_RUN(): from config.confmain import dbconnect db = dbconnect() db[0].close() def get_users(db): get_users = "SELECT id FROM users" db[1].execute(get_users) return [item[0] for item in db[1].fetchall()] def add_user(db, user, rank): query = "INSERT INT...
26.597015
85
0.609428
283
1,782
3.777385
0.183746
0.042095
0.1029
0.140318
0.353602
0.278765
0.278765
0.278765
0.166511
0.08232
0
0.018786
0.223345
1,782
66
86
27
0.753613
0.005612
0
0.044444
0
0.022222
0.225424
0
0
0
0
0
0
1
0.244444
false
0
0.044444
0
0.377778
0
0
0
0
null
0
0
0
0
0
0
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
7f9cccab203776821b2694f234e1f2bff5bb56c8
913
py
Python
urizen/core/thing.py
vurmux/urizen
28b1e60cf8fa2f15622537f6df0290e2ac890d5f
[ "Apache-2.0" ]
107
2020-01-08T21:27:59.000Z
2022-03-19T07:59:23.000Z
urizen/core/thing.py
hanok2/urizen
28b1e60cf8fa2f15622537f6df0290e2ac890d5f
[ "Apache-2.0" ]
1
2020-05-22T17:54:12.000Z
2021-06-27T01:02:39.000Z
urizen/core/thing.py
hanok2/urizen
28b1e60cf8fa2f15622537f6df0290e2ac890d5f
[ "Apache-2.0" ]
7
2020-01-08T21:12:11.000Z
2022-03-19T07:59:27.000Z
#!/usr/bin/python3 class Thing(object): """ Thing class Attributes: thing_type -- Thing type symbol -- Symbol to print in terminal visualizers bg_color -- Background color in terminal visualizers fg_color -- Foreground color in terminal visualizers pixel_color -- Pixel color for pixel...
25.361111
66
0.631982
108
913
5.064815
0.462963
0.04936
0.115174
0.095064
0
0
0
0
0
0
0
0.019757
0.279299
913
35
67
26.085714
0.81155
0.431544
0
0
0
0
0.051392
0
0
0
0
0
0
1
0.125
false
0.0625
0
0.0625
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
1
0
0
1
0
0
2
7f9cd9fd3b819d0be208a54f23cb4903da617f11
1,306
py
Python
src/utils/data_utils.py
vikigenius/neural_speaker_identification
a723290808d748daf65163b71aef2c5376319db3
[ "MIT" ]
1
2019-07-27T00:32:02.000Z
2019-07-27T00:32:02.000Z
src/utils/data_utils.py
vikigenius/neural_speaker_identification
a723290808d748daf65163b71aef2c5376319db3
[ "MIT" ]
null
null
null
src/utils/data_utils.py
vikigenius/neural_speaker_identification
a723290808d748daf65163b71aef2c5376319db3
[ "MIT" ]
1
2019-07-27T00:32:06.000Z
2019-07-27T00:32:06.000Z
#!/usr/bin/env python import os def get_hash(path: str): hashpath = os.path.dirname(path) return os.path.basename(hashpath) def get_cid(path: str): idpath = os.path.dirname(os.path.dirname(path)) cidstr = os.path.basename(idpath) cid = int(cidstr.replace('id1', '').replace('id0', '')) return...
30.372093
76
0.573507
161
1,306
4.509317
0.329193
0.07438
0.089532
0.070248
0.523416
0.523416
0.523416
0.523416
0.523416
0.523416
0
0.007769
0.310107
1,306
42
77
31.095238
0.798002
0.015314
0
0.387097
0
0
0.010895
0
0
0
0
0
0
1
0.193548
false
0
0.032258
0
0.387097
0
0
0
0
null
0
0
0
0
0
0
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
1
0
7f9daeb349895404f5b7f1caac11b430bed8be01
9,428
py
Python
orpheus/clt/click_entry.py
ailyntong/implementation
ef535bf9dcff6b97252fb6b27614c7d262d05ea6
[ "MIT", "Unlicense" ]
84
2017-01-06T14:30:45.000Z
2021-10-08T18:13:40.000Z
orpheus/clt/click_entry.py
ailyntong/implementation
ef535bf9dcff6b97252fb6b27614c7d262d05ea6
[ "MIT", "Unlicense" ]
9
2017-06-13T02:04:45.000Z
2021-03-24T20:21:33.000Z
orpheus/clt/click_entry.py
ailyntong/implementation
ef535bf9dcff6b97252fb6b27614c7d262d05ea6
[ "MIT", "Unlicense" ]
11
2017-09-10T16:10:25.000Z
2021-01-19T20:03:52.000Z
import os import yaml import click from orpheus.core.executor import Executor from orpheus.core.user_control import UserManager from orpheus.core.orpheus_exceptions import BadStateError, NotImplementedError, BadParametersError from orpheus.core.orpheus_sqlparse import SQLParser from db import DatabaseManager class Co...
39.283333
152
0.66398
1,275
9,428
4.825882
0.197647
0.025353
0.028604
0.033967
0.368926
0.312368
0.247359
0.213392
0.187063
0.168861
0
0.000799
0.203755
9,428
239
153
39.447699
0.818836
0.102036
0
0.42246
0
0
0.23717
0.002489
0
0
0
0.004184
0.010695
0
null
null
0.112299
0.053476
null
null
0.010695
0
0
0
null
0
0
0
0
0
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
1
0
0
0
0
0
2
7f9e407ceecae71657a1dd2344249aa874aaa1dc
6,150
py
Python
lecture_11/2_your_own_function_SOLUTION/2_your_own_function.py
farzanehesk/COMPAS-II-FS2022
857eb40000f0532d0c04689331eadefd38dce6b7
[ "MIT" ]
48
2021-11-27T05:28:31.000Z
2022-02-06T16:08:30.000Z
lecture_11/2_your_own_function_SOLUTION/2_your_own_function.py
farzanehesk/COMPAS-II-FS2022
857eb40000f0532d0c04689331eadefd38dce6b7
[ "MIT" ]
15
2021-03-03T10:50:59.000Z
2021-06-21T07:47:47.000Z
lecture_11/2_your_own_function_SOLUTION/2_your_own_function.py
farzanehesk/COMPAS-II-FS2022
857eb40000f0532d0c04689331eadefd38dce6b7
[ "MIT" ]
25
2021-03-02T15:08:11.000Z
2022-03-29T14:34:20.000Z
import time import os import logging import compas_slicer.utilities as utils from compas_slicer.pre_processing import move_mesh_to_point from compas_slicer.slicers import PlanarSlicer from compas_slicer.post_processing import generate_brim from compas_slicer.post_processing import generate_raft from compas_slicer.post...
46.946565
100
0.457886
507
6,150
5.289941
0.376726
0.0522
0.071588
0.03915
0.15138
0.15138
0.079791
0
0
0
0
0.005244
0.13187
6,150
130
101
47.307692
0.497097
0.581951
0
0
0
0
0.057749
0.022505
0
0
0
0
0
1
0.023256
false
0
0.44186
0
0.465116
0.27907
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
1
0
0
0
0
2
7f9eb6f7adcc1dc6f1a2c4b1891e1af52de709d2
566
py
Python
library/lib/library/genre.py
efulet/library-sample
d855247028a8b1c5408fc54a5a39c4abe73d24e7
[ "MIT" ]
null
null
null
library/lib/library/genre.py
efulet/library-sample
d855247028a8b1c5408fc54a5a39c4abe73d24e7
[ "MIT" ]
null
null
null
library/lib/library/genre.py
efulet/library-sample
d855247028a8b1c5408fc54a5a39c4abe73d24e7
[ "MIT" ]
null
null
null
""" Define the implementation for Genre. Enums have been added to Python 3.4 as described in PEP 435. It has also been backported to 3.3, 3.2, 3.1, 2.7, 2.6, 2.5, and 2.4 on pypi. Please install: $> pip install enum34 @created_at 2015-05-16 @author Exequiel Fuentes Lettura <efulet@gmail.com> """ from enum import ...
21.769231
78
0.69258
96
566
4.041667
0.739583
0.010309
0
0
0
0
0
0
0
0
0
0.074324
0.215548
566
25
79
22.64
0.79955
0.722615
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.166667
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
7f9ee4cce3e5875aad64421d7f4c59c9aad2f69d
2,809
py
Python
zfused_maya/zfused_maya/tool/utility/assemblymanage/assetlistwidget/assetlistwidget.py
qinningfx/zfused_outsource
bfc5558f05e3d6005653794a47bd863b61b009b1
[ "Apache-2.0" ]
2
2019-02-22T03:33:26.000Z
2019-02-23T03:29:26.000Z
zfused_maya/zfused_maya/tool/utility/assemblymanage/assetlistwidget/assetlistwidget.py
qinningfx/zfused_outsource
bfc5558f05e3d6005653794a47bd863b61b009b1
[ "Apache-2.0" ]
null
null
null
zfused_maya/zfused_maya/tool/utility/assemblymanage/assetlistwidget/assetlistwidget.py
qinningfx/zfused_outsource
bfc5558f05e3d6005653794a47bd863b61b009b1
[ "Apache-2.0" ]
null
null
null
# coding:utf-8 # --author-- lanhua.zhou from __future__ import print_function import logging from qtpy import QtWidgets, QtGui, QtCore import zfused_api import zfused_maya.core.record as record import zfused_maya.core.resource as resource import zfused_maya.widgets.widgets as widgets from . import assetlistmodel fr...
31.561798
99
0.684229
311
2,809
5.848875
0.311897
0.093458
0.050027
0.065421
0.102254
0.102254
0.039582
0.039582
0
0
0
0.007795
0.223567
2,809
89
100
31.561798
0.826227
0.072624
0
0
0
0
0.034321
0.015211
0
0
0
0
0
1
0.089286
false
0
0.196429
0
0.303571
0.017857
0
0
0
null
0
0
0
0
0
0
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
1
0
7fa00aca19352a3c3bb64086161e93228165267a
12,275
py
Python
CombineFomApp.py
johnmgregoire/JCAPDataProcess
c8120e5b2f8fc840a6307b40293dccaf94bd8c2c
[ "BSD-3-Clause" ]
5
2017-03-24T21:05:22.000Z
2021-09-15T18:18:05.000Z
CombineFomApp.py
johnmgregoire/JCAPDataProcess
c8120e5b2f8fc840a6307b40293dccaf94bd8c2c
[ "BSD-3-Clause" ]
null
null
null
CombineFomApp.py
johnmgregoire/JCAPDataProcess
c8120e5b2f8fc840a6307b40293dccaf94bd8c2c
[ "BSD-3-Clause" ]
null
null
null
import csv import os, os.path import sys import numpy from PyQt4.QtCore import * from PyQt4.QtGui import * if __name__ == "__main__": import os, sys projectpath=os.path.split(os.path.abspath(__file__))[0] sys.path.append(os.path.join(projectpath,'AuxPrograms')) from fcns_math import * from fcns_io import ...
35.37464
157
0.582892
1,298
12,275
5.4453
0.191063
0.055178
0.025467
0.0382
0.45416
0.428693
0.428693
0.405631
0.404782
0.378749
0
0.010852
0.286843
12,275
346
158
35.476879
0.79655
0.032994
0
0.385496
0
0
0.05646
0.003123
0
0
0
0
0
0
null
null
0
0.034351
null
null
0.003817
0
0
0
null
0
0
0
0
0
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
7fa05b2a5eaa254783f5987a4ee647edeaf6173a
2,467
py
Python
eland/tests/series/test_hist_pytest.py
redNixon/eland
1b9cb1db6d30f0662fe3679c7bb31e2c0865f0c3
[ "Apache-2.0" ]
null
null
null
eland/tests/series/test_hist_pytest.py
redNixon/eland
1b9cb1db6d30f0662fe3679c7bb31e2c0865f0c3
[ "Apache-2.0" ]
null
null
null
eland/tests/series/test_hist_pytest.py
redNixon/eland
1b9cb1db6d30f0662fe3679c7bb31e2c0865f0c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Elasticsearch BV # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
33.794521
83
0.689501
317
2,467
5.138801
0.381703
0.049724
0.052179
0.066298
0.473297
0.441375
0.417434
0.322897
0.315531
0.249233
0
0.008399
0.227807
2,467
72
84
34.263889
0.846719
0.295906
0
0.277778
0
0
0.059988
0
0
0
0
0
0.166667
1
0.083333
false
0
0.138889
0
0.25
0.055556
0
0
0
null
0
0
0
0
0
0
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
1
0
7fa1255aeed1640b6a22639a447638509e1708d4
2,108
py
Python
glitchtip/pagination.py
rh-cssre/glitchtip-backend
ae12fbd54532cff5fd3d7a72631ba18625bbf1de
[ "MIT" ]
null
null
null
glitchtip/pagination.py
rh-cssre/glitchtip-backend
ae12fbd54532cff5fd3d7a72631ba18625bbf1de
[ "MIT" ]
null
null
null
glitchtip/pagination.py
rh-cssre/glitchtip-backend
ae12fbd54532cff5fd3d7a72631ba18625bbf1de
[ "MIT" ]
null
null
null
import logging import urllib.parse as urlparse from urllib.parse import parse_qs from rest_framework.exceptions import ValidationError from rest_framework.pagination import CursorPagination from rest_framework.response import Response logger = logging.getLogger(__name__) class LinkHeaderPagination(CursorPagination)...
34
85
0.604839
231
2,108
5.376623
0.4329
0.022544
0.041063
0.033816
0
0
0
0
0
0
0
0.005295
0.283207
2,108
61
86
34.557377
0.816678
0.121442
0
0.046512
0
0
0.09081
0
0
0
0
0
0
1
0.069767
false
0
0.139535
0
0.348837
0
0
0
0
null
0
0
0
0
0
0
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
1
0
7fa2950d2c1947708703dac582e56abc5bd22d7c
1,336
py
Python
rzeczownik_zwiazek.py
alkamid/wiktionary
ce242da609a1001ae7462b07da2f6e83f1a7281b
[ "MIT" ]
3
2015-01-06T22:00:22.000Z
2016-08-14T08:07:32.000Z
rzeczownik_zwiazek.py
alkamid/wiktionary
ce242da609a1001ae7462b07da2f6e83f1a7281b
[ "MIT" ]
56
2015-07-12T10:21:38.000Z
2020-02-23T18:51:01.000Z
rzeczownik_zwiazek.py
alkamid/wiktionary
ce242da609a1001ae7462b07da2f6e83f1a7281b
[ "MIT" ]
2
2015-01-06T21:25:06.000Z
2018-01-17T12:03:17.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- import sys sys.path.append('/home/adam/wikt/pywikipedia') #sys.path.append('/home/alkamid/wikt/pywikipedia') import pywikibot from pywikibot import Category from pywikibot import pagegenerators import re from pywikibot import xmlreader from klasa import * def main(): dat...
29.688889
104
0.567365
158
1,336
4.727848
0.493671
0.052209
0.076305
0.045515
0
0
0
0
0
0
0
0.014925
0.297904
1,336
44
105
30.363636
0.78145
0.178144
0
0
0
0
0.126374
0.024725
0
0
0
0
0
1
0.032258
false
0
0.225806
0
0.258065
0.032258
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7fa45120566f6e66b1161eb3ddc49d8249a2ea66
3,901
py
Python
mi/dataset/parser/flort_kn__stc_imodem.py
rmanoni/mi-dataset
c1012a0cd8f2ea075e008cdd1ab291ed54f44d43
[ "BSD-2-Clause" ]
1
2015-05-10T01:08:44.000Z
2015-05-10T01:08:44.000Z
mi/dataset/parser/flort_kn__stc_imodem.py
rmanoni/mi-dataset
c1012a0cd8f2ea075e008cdd1ab291ed54f44d43
[ "BSD-2-Clause" ]
null
null
null
mi/dataset/parser/flort_kn__stc_imodem.py
rmanoni/mi-dataset
c1012a0cd8f2ea075e008cdd1ab291ed54f44d43
[ "BSD-2-Clause" ]
9
2015-04-15T21:09:08.000Z
2019-11-15T03:18:53.000Z
#!/usr/bin/env python """ @package mi.dataset.parser.flort_kn__stc_imodem @file marine-integrations/mi/dataset/parser/flort_kn__stc_imodem.py @author Emily Hahn @brief Parser for the FLORT_KN__STC_IMODEM dataset driver (both recovered and telemetered) Release notes: initial release """ __author__ = 'Emil...
37.873786
118
0.719046
459
3,901
5.729847
0.302832
0.069202
0.079848
0.042586
0.279087
0.23346
0.211407
0.168061
0.124715
0.124715
0
0.002604
0.21251
3,901
102
119
38.245098
0.853516
0.212253
0
0
0
0
0.108573
0.039353
0
0
0
0
0
1
0.042553
false
0
0.191489
0
0.595745
0
0
0
0
null
0
0
0
0
0
0
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
7fa52d2551135b3c9ef42b725887c7c6e432166a
834
py
Python
kyper/nbconvert/tests/files/nbconvert_v4_kyper_config_1.py
wusung/ipython-notebook-tabs
ee7b3922c7d01cf6182bce63ef69e8a20f7229f9
[ "Apache-2.0" ]
null
null
null
kyper/nbconvert/tests/files/nbconvert_v4_kyper_config_1.py
wusung/ipython-notebook-tabs
ee7b3922c7d01cf6182bce63ef69e8a20f7229f9
[ "Apache-2.0" ]
null
null
null
kyper/nbconvert/tests/files/nbconvert_v4_kyper_config_1.py
wusung/ipython-notebook-tabs
ee7b3922c7d01cf6182bce63ef69e8a20f7229f9
[ "Apache-2.0" ]
null
null
null
c = get_config() #Export all the notebooks in the current directory to the sphinx_howto format. c.NbConvertApp.notebooks = ['Untitled.ipynb'] c.NbConvertApp.export_format = 'notebook' #c.NbConvertApp.writer = 'stdoutwriter' c.Exporter.default_preprocessors = ['kyper.nbconvert.preprocessors.coalesce_streams', 'kyper.nb...
75.818182
424
0.833333
82
834
8.390244
0.52439
0.162791
0.274709
0
0
0
0
0
0
0
0
0.001263
0.05036
834
10
425
83.4
0.867424
0.314149
0
0
0
0
0.674296
0.635563
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
7fa541c36336e94cfd1cde616a593d1859f31c6d
962
py
Python
scripts/reader/extract_eval_results.py
lixinsu/RCZoo
37fcb7962fbd4c751c561d4a0c84173881ea8339
[ "MIT" ]
166
2018-08-07T03:35:02.000Z
2022-01-11T10:40:09.000Z
scripts/reader/extract_eval_results.py
lixinsu/RCZoo
37fcb7962fbd4c751c561d4a0c84173881ea8339
[ "MIT" ]
16
2018-08-17T09:53:37.000Z
2019-06-17T12:58:00.000Z
scripts/reader/extract_eval_results.py
lixinsu/RCZoo
37fcb7962fbd4c751c561d4a0c84173881ea8339
[ "MIT" ]
45
2018-08-27T06:38:42.000Z
2021-01-17T11:12:39.000Z
#!/usr/bin/env python # coding: utf-8 import os import sys import re import numpy as np import pandas as pd def extract_file(logfile, max_epoch=40): with open(logfile) as infp: pat = re.compile(r"Epoch = ([0-9]+) \| EM = ([0-9]+\.[0-9]+) \| F1 = ([0-9]+\.[0-9]+)") res = [] for line in infp...
28.294118
95
0.564449
146
962
3.589041
0.472603
0.019084
0.01145
0.015267
0
0
0
0
0
0
0
0.033103
0.246362
962
33
96
29.151515
0.689655
0.035343
0
0
0
0.04
0.12635
0
0
0
0
0
0
1
0.08
false
0
0.2
0
0.32
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7fa656207915017887d981061398ba3f4a5e4115
1,332
py
Python
tests/conversion/converters/inside_worker_test/transliterate_sql_function_learning_test.py
tyrasd/osmaxx
da4454083d17b2ef8b0623cad62e39992b6bd52a
[ "MIT" ]
27
2015-03-30T14:17:26.000Z
2022-02-19T17:30:44.000Z
tests/conversion/converters/inside_worker_test/transliterate_sql_function_learning_test.py
tyrasd/osmaxx
da4454083d17b2ef8b0623cad62e39992b6bd52a
[ "MIT" ]
483
2015-03-09T16:58:03.000Z
2022-03-14T09:29:06.000Z
tests/conversion/converters/inside_worker_test/transliterate_sql_function_learning_test.py
tyrasd/osmaxx
da4454083d17b2ef8b0623cad62e39992b6bd52a
[ "MIT" ]
6
2015-04-07T07:38:30.000Z
2020-04-01T12:45:53.000Z
from contextlib import closing import pytest import sqlalchemy from tests.conversion.converters.inside_worker_test.conftest import slow international_text_strings = [ ('ascii', 'some normal ascii', 'some normal ascii'), ('umlaut', 'öäüüäüö', 'öäüüäüö'), ('special_chars', "*+?'^'%ç#", "*+?'^'%ç#"), ('...
35.052632
161
0.688438
158
1,332
5.664557
0.620253
0.113966
0.053631
0.044693
0
0
0
0
0
0
0
0.009025
0.168168
1,332
37
162
36
0.798736
0.039039
0
0
0
0
0.251174
0.018779
0
0
0
0
0.103448
1
0.068966
false
0
0.137931
0.034483
0.241379
0
0
0
0
null
0
0
0
0
0
0
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
1
0
7fa65a7d3751f2bd316d7300a9d99b95b40fb832
979
py
Python
info/models.py
ycy-tw/python-django-stock
263a926ae6aa8248fd4c4e8d767c5dc9d522e4c0
[ "MIT" ]
2
2021-04-25T07:01:01.000Z
2021-05-07T10:17:26.000Z
info/models.py
ycy-tw/python-django-stock
263a926ae6aa8248fd4c4e8d767c5dc9d522e4c0
[ "MIT" ]
null
null
null
info/models.py
ycy-tw/python-django-stock
263a926ae6aa8248fd4c4e8d767c5dc9d522e4c0
[ "MIT" ]
null
null
null
from django.db import models class StockBasic(models.Model): symbol = models.IntegerField() name = models.CharField(max_length=150) capital = models.IntegerField() industry = models.CharField(max_length=150) listed_date = models.DateField() class StockPrice(models.Model): date = models.Dat...
25.763158
47
0.695608
100
979
6.74
0.42
0.320475
0.106825
0.071217
0.240356
0.160237
0.160237
0.160237
0
0
0
0.007576
0.191011
979
37
48
26.459459
0.843434
0
0
0.178571
0
0
0
0
0
0
0
0
0
1
0
false
0
0.035714
0
1
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7fa71b0b3f054bcdd23fb5a4941606959b1e3af7
1,123
py
Python
python/example_code/iam/get_pub_keys.py
dlo/aws-doc-sdk-examples
305e5c4f6cf268cafad7e1603aa5d2909fcd9c0c
[ "Apache-2.0" ]
9
2018-09-29T11:44:19.000Z
2019-11-06T21:41:34.000Z
python/example_code/iam/get_pub_keys.py
dlo/aws-doc-sdk-examples
305e5c4f6cf268cafad7e1603aa5d2909fcd9c0c
[ "Apache-2.0" ]
1
2018-10-30T06:11:07.000Z
2018-10-30T06:11:07.000Z
python/example_code/iam/get_pub_keys.py
dlo/aws-doc-sdk-examples
305e5c4f6cf268cafad7e1603aa5d2909fcd9c0c
[ "Apache-2.0" ]
2
2018-12-25T10:13:56.000Z
2021-06-24T11:26:38.000Z
# Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file ac...
32.085714
78
0.741763
163
1,123
4.932515
0.521472
0.123134
0.119403
0.052239
0
0
0
0
0
0
0
0.018319
0.173642
1,123
34
79
33.029412
0.84806
0.514693
0
0.133333
0
0
0.132075
0
0
0
0
0
0
1
0
false
0
0.066667
0
0.066667
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7fa7f852d4cb0a061dab991f8c7bedad11c82bbc
727
py
Python
tests/test_tools/test_sort.py
Massiil/wordlistools
45edc94200130e87b444fd5c04e24e6093160f93
[ "MIT" ]
17
2022-02-06T21:23:27.000Z
2022-02-07T22:33:40.000Z
tests/test_tools/test_sort.py
Massiil/wordlistools
45edc94200130e87b444fd5c04e24e6093160f93
[ "MIT" ]
1
2022-02-06T21:52:30.000Z
2022-02-06T21:52:30.000Z
tests/test_tools/test_sort.py
Massiil/wordlistools
45edc94200130e87b444fd5c04e24e6093160f93
[ "MIT" ]
2
2022-02-06T21:29:42.000Z
2022-02-06T21:31:06.000Z
from wordlistools.helpertest import AsStdinWordlist, AsWordlist, runtest def test_simple(): runtest("sort", args=(AsStdinWordlist(["a", "b"]),), ret=AsWordlist(["a", "b"])) runtest("sort", args=(AsStdinWordlist(["b", "a"]),), ret=AsWordlist(["a", "b"])) def test_multiple_wordlists(): runtest( "...
25.964286
84
0.518569
75
727
4.986667
0.253333
0.032086
0.200535
0.160428
0.446524
0.224599
0.224599
0
0
0
0
0
0.220083
727
27
85
26.925926
0.659612
0
0
0.3
0
0
0.066025
0
0
0
0
0
0
1
0.1
true
0
0.05
0
0.15
0
0
0
0
null
0
1
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
1
0
0
0
0
0
0
3
7fa94d0c36ae17fb7490233a6caf6c47c8509aba
5,305
py
Python
supports/pyload/src/pyload/plugins/decrypters/SexuriaCom.py
LuckyNicky/pycrawler
4b3fe2f6e8e51f236d95a64a89a44199e4e97743
[ "Apache-2.0" ]
1
2020-04-02T17:03:39.000Z
2020-04-02T17:03:39.000Z
supports/pyload/src/pyload/plugins/decrypters/SexuriaCom.py
LuckyNicky/pycrawler
4b3fe2f6e8e51f236d95a64a89a44199e4e97743
[ "Apache-2.0" ]
null
null
null
supports/pyload/src/pyload/plugins/decrypters/SexuriaCom.py
LuckyNicky/pycrawler
4b3fe2f6e8e51f236d95a64a89a44199e4e97743
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import re from ..base.decrypter import BaseDecrypter class SexuriaCom(BaseDecrypter): __name__ = "SexuriaCom" __type__ = "decrypter" __version__ = "0.15" __status__ = "testing" __pyload_version__ = "0.5" __pattern__ = r"http://(?:www\.)?sexuria\.com/(v1/)?(Pornos_Kos...
38.165468
141
0.531008
589
5,305
4.582343
0.269949
0.040756
0.026677
0.031493
0.290848
0.250463
0.139311
0.091145
0.091145
0.061504
0
0.003933
0.328935
5,305
138
142
38.442029
0.754213
0.053911
0
0.118182
0
0.036364
0.246105
0.021175
0
0
0
0
0
1
0.018182
false
0.090909
0.018182
0
0.218182
0
0
0
0
null
0
0
0
0
0
0
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
7fa9f0e8cb2ce25f47bfafc2286cfa382e9eef68
62,700
py
Python
build_rdkit_csharp.py
kazuyaujihara/playfield
2ef34dcfde820461c1f7fa47415f83dbea4481cc
[ "BSD-3-Clause" ]
null
null
null
build_rdkit_csharp.py
kazuyaujihara/playfield
2ef34dcfde820461c1f7fa47415f83dbea4481cc
[ "BSD-3-Clause" ]
null
null
null
build_rdkit_csharp.py
kazuyaujihara/playfield
2ef34dcfde820461c1f7fa47415f83dbea4481cc
[ "BSD-3-Clause" ]
null
null
null
"""Script to make RDKit.DotNetWrapper. Notes: This is developed with rdkit-Release_2021_09_4. """ from enum import Enum import argparse import glob import logging import os import platform import re import shutil import subprocess import sys import typing import xml.etree.ElementTree as ET from os import PathLike ...
37.299227
120
0.567321
7,123
62,700
4.711077
0.092236
0.021158
0.011443
0.009536
0.44566
0.32336
0.253598
0.203594
0.172274
0.140895
0
0.010726
0.311563
62,700
1,680
121
37.321429
0.766686
0.017113
0
0.290166
0
0.002078
0.185288
0.091864
0.00277
0
0.000163
0.000595
0.014543
1
0.081717
false
0.001385
0.011773
0.022161
0.155125
0.004155
0
0
0
null
0
0
0
0
0
0
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
1
0
7faa85dd7164abc5cf2a876e02a9cd836cf45628
5,624
py
Python
DataVisualization/GraphGenerator.py
DavidHdezU/TwitterDataAnalyser
a003c046a39cdb18f8b4efe7f7db1a5959736fe5
[ "MIT" ]
null
null
null
DataVisualization/GraphGenerator.py
DavidHdezU/TwitterDataAnalyser
a003c046a39cdb18f8b4efe7f7db1a5959736fe5
[ "MIT" ]
null
null
null
DataVisualization/GraphGenerator.py
DavidHdezU/TwitterDataAnalyser
a003c046a39cdb18f8b4efe7f7db1a5959736fe5
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import os from PIL import Image from wordcloud import WordCloud, STOPWORDS, ImageColorGenerator import matplotlib.pyplot as plt import seaborn as sns class GraphGenerator(): """ A class that generates graphs to visualize data """ def create_wordcloud(self, freq_di...
33.278107
153
0.602596
674
5,624
4.827893
0.173591
0.09957
0.055317
0.040565
0.698218
0.692071
0.692071
0.681315
0.674554
0.674554
0
0.012548
0.305654
5,624
168
154
33.47619
0.820743
0.371266
0
0.522388
0
0
0.005433
0
0
0
0
0.005952
0
1
0.134328
false
0
0.104478
0
0.253731
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7fae89a2e7b33a8349cff26d3637eccd5dfa7ee7
2,734
py
Python
pkg/win/build_pillow-simd.py
milkey-mouse/swood.exe
6e691c2e9c4a42845b13c83d216022897aca97c5
[ "MIT" ]
12
2016-06-09T22:08:49.000Z
2022-01-15T16:58:42.000Z
pkg/win/build_pillow-simd.py
milkey-mouse/swood.exe
6e691c2e9c4a42845b13c83d216022897aca97c5
[ "MIT" ]
29
2016-04-17T01:25:09.000Z
2021-03-12T23:22:35.000Z
pkg/win/build_pillow-simd.py
milkey-mouse/swood.exe
6e691c2e9c4a42845b13c83d216022897aca97c5
[ "MIT" ]
1
2020-12-22T00:16:05.000Z
2020-12-22T00:16:05.000Z
import subprocess import requests import tempfile import tarfile import shutil import sys import os if os.name != "nt": print("Error: Can only build pillow-simd on a Windows system") repo_url = "https://api.github.com/repos/uploadcare/pillow-simd/tags" tarball_url = requests.get(repo_url).json()[0]["tarball_url"]...
36.453333
94
0.63387
408
2,734
4.183824
0.377451
0.082015
0.016403
0.039836
0.056825
0
0
0
0
0
0
0.007867
0.209583
2,734
74
95
36.945946
0.782045
0.059985
0
0.065574
0
0
0.208106
0.028059
0
0
0
0
0
1
0
false
0
0.114754
0
0.114754
0.098361
0
0
0
null
0
0
0
0
0
0
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
1
0
7faef27d00dc089e93362f99e786f4406c15fa41
559
py
Python
irco/migrations/versions/52b38830e4f1_add_ambiguous_affiliation_flag.py
GaretJax/irco
e5df3cf1a608dc813011a1ee7e920637e5bd155c
[ "MIT" ]
null
null
null
irco/migrations/versions/52b38830e4f1_add_ambiguous_affiliation_flag.py
GaretJax/irco
e5df3cf1a608dc813011a1ee7e920637e5bd155c
[ "MIT" ]
null
null
null
irco/migrations/versions/52b38830e4f1_add_ambiguous_affiliation_flag.py
GaretJax/irco
e5df3cf1a608dc813011a1ee7e920637e5bd155c
[ "MIT" ]
1
2015-12-17T19:18:28.000Z
2015-12-17T19:18:28.000Z
"""add ambiguous affiliation flag Revision ID: 52b38830e4f1 Revises: None Create Date: 2014-08-23 20:08:30.702574 """ # revision identifiers, used by Alembic. revision = '52b38830e4f1' down_revision = None from alembic import op # NOQA import sqlalchemy as sa # NOQA def upgrade(): op.add_column( 'pu...
20.703704
77
0.699463
68
559
5.632353
0.647059
0.088773
0.125326
0
0
0
0
0
0
0
0
0.084071
0.191413
559
26
78
21.5
0.763274
0.288014
0
0
0
0
0.221649
0.134021
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7faf000a12cfb8382d4089e48ea4a9fb68db6a0d
7,118
py
Python
DSN/config_DSN.py
JerrySchonenberg/DSN
4b79ac4beada888a859f76bfdcb1c08cefd4f02d
[ "MIT" ]
4
2021-03-18T13:02:28.000Z
2021-12-02T14:49:39.000Z
DSN/config_DSN.py
JerrySchonenberg/DSN
4b79ac4beada888a859f76bfdcb1c08cefd4f02d
[ "MIT" ]
null
null
null
DSN/config_DSN.py
JerrySchonenberg/DSN
4b79ac4beada888a859f76bfdcb1c08cefd4f02d
[ "MIT" ]
1
2021-07-21T06:19:08.000Z
2021-07-21T06:19:08.000Z
#configure DSN based on the velocities of the commands import configparser import os import time import tensorflow as tf import subprocess import numpy as np import cv2 import sys import math import matplotlib.pyplot as plt sys.path.append("../coppelia_sim") from API_coppeliasim import CoppeliaSim from PIL import Ima...
32.208145
107
0.618573
956
7,118
4.469665
0.269874
0.005617
0.007021
0.010297
0.106015
0.053124
0.035572
0.020126
0.020126
0.020126
0
0.019015
0.261169
7,118
220
108
32.354545
0.793497
0.142034
0
0.162338
0
0
0.061554
0.013331
0
0
0
0
0
1
0.045455
false
0
0.077922
0
0.136364
0.012987
0
0
0
null
0
0
0
0
0
0
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
1
0
7faf132493fb997a22585fcc1b6f5221296ea124
1,012
py
Python
spammer/vcspam.py
00-00-00-11/Raid-Toolbox
4d24841de5ef112dc15b858f62607e0d6b5277cd
[ "0BSD" ]
null
null
null
spammer/vcspam.py
00-00-00-11/Raid-Toolbox
4d24841de5ef112dc15b858f62607e0d6b5277cd
[ "0BSD" ]
null
null
null
spammer/vcspam.py
00-00-00-11/Raid-Toolbox
4d24841de5ef112dc15b858f62607e0d6b5277cd
[ "0BSD" ]
1
2021-05-15T11:32:24.000Z
2021-05-15T11:32:24.000Z
import discord import asyncio import sys import random import aiohttp token = sys.argv[1] tokenno = sys.argv[2] voice_id = sys.argv[3] useproxies = sys.argv[4] # proxies for voice chats smh if useproxies == 'True': proxy_list = open("proxies.txt").read().splitlines() proxy = random.choice(proxy_...
27.351351
60
0.657115
133
1,012
4.924812
0.548872
0.042748
0.058015
0
0
0
0
0
0
0
0
0.01145
0.22332
1,012
36
61
28.111111
0.821883
0.02668
0
0
0
0
0.040127
0
0
0
0
0
0
1
0
false
0
0.15625
0
0.15625
0.03125
0
0
0
null
0
0
0
0
0
0
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
1
0
7faf5789a456612c7591dd05136e4084bf218d95
4,912
py
Python
recommendation_engines/movie_recommendation/movie_recommender.py
DKMalungu/python_ml
4df7b6ddaa7ae072db27799a9226f6f8fab40452
[ "Apache-2.0" ]
null
null
null
recommendation_engines/movie_recommendation/movie_recommender.py
DKMalungu/python_ml
4df7b6ddaa7ae072db27799a9226f6f8fab40452
[ "Apache-2.0" ]
null
null
null
recommendation_engines/movie_recommendation/movie_recommender.py
DKMalungu/python_ml
4df7b6ddaa7ae072db27799a9226f6f8fab40452
[ "Apache-2.0" ]
null
null
null
""" The dataset can be downloaded from: https://grouplens.org/datasets/movielens/100k/ """ # Importing Libraries import pandas as pd import numpy as np # Step 1: Loading the dataset into python # Loading users file """ This information is from the read me doc of the dataset u.user -- Demographic information about...
43.087719
140
0.643119
737
4,912
4.222524
0.299864
0.0241
0.020244
0.021208
0.541131
0.523136
0.500964
0.465938
0.465938
0.413239
0
0.067901
0.27443
4,912
113
141
43.469027
0.805275
0.066979
0
0.130435
0
0
0.445145
0.051072
0
0
0
0
0
1
0
false
0
0.086957
0
0.086957
0.391304
0
0
0
null
0
0
0
0
0
0
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
1
0
7fb292a14c4c1af1a6114d6ef6dda19af9eebf1c
673
py
Python
266_palindrome_permutation.py
gengwg/leetcode
0af5256ec98149ef5863f3bba78ed1e749650f6e
[ "Apache-2.0" ]
2
2018-04-24T19:17:40.000Z
2018-04-24T19:33:52.000Z
266_palindrome_permutation.py
gengwg/leetcode
0af5256ec98149ef5863f3bba78ed1e749650f6e
[ "Apache-2.0" ]
null
null
null
266_palindrome_permutation.py
gengwg/leetcode
0af5256ec98149ef5863f3bba78ed1e749650f6e
[ "Apache-2.0" ]
3
2020-06-17T05:48:52.000Z
2021-01-02T06:08:25.000Z
# 266. Palindrome Permutation # # Given a string, determine if a permutation of the string could form a palindrome. # # Example 1: # # Input: "code" # Output: false # # Example 2: # # Input: "aab" # Output: true # # Example 3: # # Input: "carerac" # Output: true # https://leetcode.com/articles/palindrome-permutation/ ...
17.710526
83
0.579495
79
673
4.873418
0.620253
0.168831
0
0
0
0
0
0
0
0
0
0.015021
0.307578
673
37
84
18.189189
0.811159
0.456166
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7fb2f08441bee9b4f2cc7afeea8869dbc1d391ef
312
py
Python
setup.py
allrod5/extra-trees
ba7d94bd8a77daaa2357241f343c3b571a900131
[ "MIT" ]
4
2017-08-18T04:07:43.000Z
2022-01-17T01:41:29.000Z
setup.py
allrod5/extra-trees
ba7d94bd8a77daaa2357241f343c3b571a900131
[ "MIT" ]
2
2017-08-15T06:42:05.000Z
2017-08-24T16:44:49.000Z
setup.py
allrod5/extra-trees
ba7d94bd8a77daaa2357241f343c3b571a900131
[ "MIT" ]
3
2019-08-15T06:21:59.000Z
2021-11-25T09:55:38.000Z
#!/usr/bin/env python3 from distutils.core import setup setup(name='Extremely Randomized Trees', version='0.2', description='Implementation of Extremely Randomized Trees', author='Rodrigo', author_email='allrod5@gmail.com', packages=['extra_trees.ensemble', 'extra_trees.tree'] )
26
65
0.701923
37
312
5.837838
0.783784
0.175926
0.222222
0
0
0
0
0
0
0
0
0.015385
0.166667
312
11
66
28.363636
0.815385
0.067308
0
0
0
0
0.458621
0
0
0
0
0
0
1
0
true
0
0.125
0
0.125
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
7fb526a62b477c606c93725191f3522b82d53a95
10,522
py
Python
mediumbackup/__init__.py
lucafrance/mediumbackup
7a5abd67e1b072bfbd86a01fbfdfb5d9153d8192
[ "MIT" ]
null
null
null
mediumbackup/__init__.py
lucafrance/mediumbackup
7a5abd67e1b072bfbd86a01fbfdfb5d9153d8192
[ "MIT" ]
null
null
null
mediumbackup/__init__.py
lucafrance/mediumbackup
7a5abd67e1b072bfbd86a01fbfdfb5d9153d8192
[ "MIT" ]
null
null
null
import os import logging import medium from markdownify import markdownify as md from bs4 import BeautifulSoup as bs import requests MAX_FILENAME_LENGTH = 30 # Ignores date and extension, e.g. 2020-10-31<-- 30 characthers -->.md FORBIDDEN_FILENAME_CHARS = "*?" DEFAULT_BACKUP_DIR = "backup" DEFAULT_FORMAT = "html" c...
39.70566
133
0.563676
1,236
10,522
4.662621
0.237055
0.032448
0.041298
0.012146
0.155822
0.140205
0.11383
0.055527
0.042686
0.042686
0
0.005385
0.32931
10,522
265
134
39.70566
0.811251
0.285497
0
0.198582
0
0
0.101221
0
0
0
0
0
0
1
0.042553
false
0
0.042553
0
0.141844
0.007092
0
0
0
null
0
0
0
0
0
0
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
1
0