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
7027a4d1caf0562a27d727b8404b172b031ef778
70,409
py
Python
bmModerator.py
Dokument/BM-Moderator
5e42e7470d7bb8557b685c7bf340952552ff34b6
[ "MIT" ]
4
2015-09-19T16:02:23.000Z
2021-12-02T09:40:26.000Z
bmModerator.py
Dokument/BM-Moderator
5e42e7470d7bb8557b685c7bf340952552ff34b6
[ "MIT" ]
null
null
null
bmModerator.py
Dokument/BM-Moderator
5e42e7470d7bb8557b685c7bf340952552ff34b6
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Created by Adam Melton (.dok) referenceing https://bitmessage.org/wiki/API_Reference for API documentation # Distributed under the MIT/X11 software license. See the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. import time import sys import os import json i...
42.906155
238
0.596898
8,105
70,409
4.967551
0.067736
0.06572
0.050966
0.048607
0.616711
0.575754
0.543366
0.497243
0.475188
0.4428
0
0.003461
0.30658
70,409
1,640
239
42.932317
0.821191
0.044199
0
0.555292
0
0.012638
0.261786
0.028242
0
0
0
0.00061
0
0
null
null
0.010269
0.007109
null
null
0.045024
0
0
0
null
0
0
0
0
0
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
702856a844bc02746010db0b224ea515479a1f56
428
py
Python
geocontrib/migrations/0014_featuretype_title_optional.py
neogeo-technologies/collab
d205efd0a05b98c8c1781a777c0512b042580b73
[ "Apache-2.0" ]
3
2019-09-10T09:03:02.000Z
2019-10-24T08:23:21.000Z
geocontrib/migrations/0014_featuretype_title_optional.py
neogeo-technologies/geocontrib
868bbcdbb575cf8ff0ab2bb6782e64fd1ac0ee6f
[ "Apache-2.0" ]
14
2020-01-27T09:49:33.000Z
2021-06-14T08:04:10.000Z
geocontrib/migrations/0014_featuretype_title_optional.py
neogeo-technologies/geocontrib
868bbcdbb575cf8ff0ab2bb6782e64fd1ac0ee6f
[ "Apache-2.0" ]
9
2020-01-16T12:37:39.000Z
2021-04-22T09:57:59.000Z
# Generated by Django 2.2.24 on 2021-09-21 10:21 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('geocontrib', '0013_importtask'), ] operations = [ migrations.AddField( model_name='featuretype', name='title_option...
22.526316
85
0.623832
44
428
5.977273
0.795455
0
0
0
0
0
0
0
0
0
0
0.063492
0.264019
428
18
86
23.777778
0.771429
0.107477
0
0
1
0
0.171053
0
0
0
0
0
0
1
0
false
0
0.166667
0
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
702ab5d14dffadaaaf35c2b6190c43a4011cbf37
2,758
py
Python
075_sort_colors.py
gengwg/leetcode
0af5256ec98149ef5863f3bba78ed1e749650f6e
[ "Apache-2.0" ]
2
2018-04-24T19:17:40.000Z
2018-04-24T19:33:52.000Z
075_sort_colors.py
gengwg/leetcode
0af5256ec98149ef5863f3bba78ed1e749650f6e
[ "Apache-2.0" ]
null
null
null
075_sort_colors.py
gengwg/leetcode
0af5256ec98149ef5863f3bba78ed1e749650f6e
[ "Apache-2.0" ]
3
2020-06-17T05:48:52.000Z
2021-01-02T06:08:25.000Z
# -*- coding: utf-8 -*- """ 75. Sort Colors Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue. Here, we will use the integers 0, 1, and 2 to represent the color red, white, and blue respectively. Note: ...
28.142857
79
0.533358
375
2,758
3.901333
0.429333
0.024607
0.018455
0.020506
0.034176
0.034176
0.034176
0.034176
0.034176
0.034176
0
0.057913
0.367658
2,758
97
80
28.43299
0.780963
0.170051
0
0.129032
0
0
0.007612
0
0
0
0
0
0
0
null
null
0
0
null
null
0.064516
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7037e9a6bcb772f5d5c6de5b125d568f1673c72f
2,145
py
Python
omnibot_description/launch/display.launch.py
felipemohr/omniBot
e235b0bf016ecc82a917cb9ec7d86f62accd4e81
[ "Apache-2.0" ]
2
2022-01-06T16:23:49.000Z
2022-02-20T12:10:09.000Z
omnibot_description/launch/display.launch.py
felipemohr/omniBot
e235b0bf016ecc82a917cb9ec7d86f62accd4e81
[ "Apache-2.0" ]
null
null
null
omnibot_description/launch/display.launch.py
felipemohr/omniBot
e235b0bf016ecc82a917cb9ec7d86f62accd4e81
[ "Apache-2.0" ]
1
2022-03-10T01:33:00.000Z
2022-03-10T01:33:00.000Z
import launch from launch.substitutions import Command, LaunchConfiguration from launch_ros.substitutions import FindPackageShare from launch_ros.actions import Node import os def generate_launch_description(): pkg_share = FindPackageShare(package='omnibot_description').find('omnibot_description') default_model_pa...
42.058824
100
0.716084
227
2,145
6.471366
0.268722
0.142954
0.142274
0.089857
0.167461
0.029952
0
0
0
0
0
0.00171
0.182284
2,145
50
101
42.9
0.835804
0
0
0
1
0
0.238228
0.116084
0
0
0
0
0
1
0.021277
false
0
0.106383
0
0.148936
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
703e4e98ab16c2be1441e85c762d949e4c5d97f4
1,704
py
Python
4_Median-of-Two-Sorted-Arrays.py
Coalin/Daily-LeetCode-Exercise
a064dcdc3a82314be4571d342c4807291a24f69f
[ "MIT" ]
3
2018-07-05T05:51:10.000Z
2019-05-04T08:35:44.000Z
4_Median-of-Two-Sorted-Arrays.py
Coalin/Daily-LeetCode-Exercise
a064dcdc3a82314be4571d342c4807291a24f69f
[ "MIT" ]
null
null
null
4_Median-of-Two-Sorted-Arrays.py
Coalin/Daily-LeetCode-Exercise
a064dcdc3a82314be4571d342c4807291a24f69f
[ "MIT" ]
null
null
null
# Method I: # Accepted while the time complexity equals to O(nlogn) due to the sort function. # 66.68%; 144ms. class Solution(object): def findMedianSortedArrays(self, nums1, nums2): """ :type nums1: List[int] :type nums2: List[int] :rtype: float """ len_1 = len(nums...
28.881356
81
0.508803
226
1,704
3.738938
0.252212
0.130178
0.113609
0.12071
0.706509
0.706509
0.656805
0.605917
0.513609
0.513609
0
0.063653
0.36385
1,704
58
82
29.37931
0.715867
0.228873
0
0.638889
0
0
0
0
0
0
0
0
0
1
0.055556
false
0
0
0
0.222222
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
704531b99c3207b1f632a1232fdc5ebbfdf4152e
28,802
py
Python
builder/builder.py
jmcb/murderrl
d5e1e06a16f8a9816e0bd6dcb2fad1738348c62c
[ "Unlicense", "MIT" ]
5
2015-04-16T18:47:05.000Z
2021-11-15T22:56:29.000Z
builder/builder.py
jmcb/murderrl
d5e1e06a16f8a9816e0bd6dcb2fad1738348c62c
[ "Unlicense", "MIT" ]
null
null
null
builder/builder.py
jmcb/murderrl
d5e1e06a16f8a9816e0bd6dcb2fad1738348c62c
[ "Unlicense", "MIT" ]
4
2015-11-11T18:54:30.000Z
2021-08-22T03:59:57.000Z
#!/usr/bin/env python """ Attempt to create a "manor" akin to:: ############################################### #.........#......#........#...........#.......# #.........#......#........#...........#.......# #.........#......#........#...........#.......# #.........#......#........#...........#.......# ###...
36.597205
201
0.619436
3,907
28,802
4.37292
0.085232
0.0295
0.015452
0.022476
0.420252
0.367691
0.284928
0.224583
0.205209
0.178987
0
0.010709
0.254323
28,802
786
202
36.643766
0.784793
0.047497
0
0.206759
0
0.003976
0.033097
0
0
0
0
0
0.015905
0
null
null
0.003976
0.00994
null
null
0.029821
0
0
0
null
0
0
0
0
0
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
704bf79ef27daaf63edd9449ba7583e9a752f111
923
py
Python
lib/mongoLib/mongoOperations.py
ronnygeo/YelpSocialEffects
55315af989be97c2785ee50c7accf5372ed06bce
[ "Unlicense", "MIT" ]
null
null
null
lib/mongoLib/mongoOperations.py
ronnygeo/YelpSocialEffects
55315af989be97c2785ee50c7accf5372ed06bce
[ "Unlicense", "MIT" ]
null
null
null
lib/mongoLib/mongoOperations.py
ronnygeo/YelpSocialEffects
55315af989be97c2785ee50c7accf5372ed06bce
[ "Unlicense", "MIT" ]
null
null
null
from pymongo import MongoClient client = MongoClient() db = client['yelp'] movie_collection = db.movies ratings_collection = db.ratings tags_collection = db.tags links_collection = db.links def findUser(userId): return db.user.find_one({"user_id": userId}) def find_movie(name): for movie in movie_collectio...
23.666667
79
0.630553
114
923
4.982456
0.324561
0.172535
0.110915
0.137324
0.302817
0.302817
0
0
0
0
0
0.004255
0.236186
923
38
80
24.289474
0.801418
0.128927
0
0.166667
0
0
0.085
0
0
0
0
0
0
0
null
null
0
0.041667
null
null
0.166667
0
0
0
null
0
0
0
0
0
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
704d370e7369a707e23ae29b6401b5069afcd189
1,303
py
Python
YANG/001_devnet_yang-netconf-restconf/netconf_intro_get_config.py
CalvinDawgz/Python-Projects
cc5d1e93bcbe124c1864a49cc3dfbca7db520928
[ "MIT" ]
1
2021-07-10T09:22:55.000Z
2021-07-10T09:22:55.000Z
YANG/001_devnet_yang-netconf-restconf/netconf_intro_get_config.py
CalvinDawgz/Python-Projects
cc5d1e93bcbe124c1864a49cc3dfbca7db520928
[ "MIT" ]
null
null
null
YANG/001_devnet_yang-netconf-restconf/netconf_intro_get_config.py
CalvinDawgz/Python-Projects
cc5d1e93bcbe124c1864a49cc3dfbca7db520928
[ "MIT" ]
null
null
null
#!/usr/bin/env python iosxe_hostname = "ios-xe-mgmt.cisco.com" iosxe_netconf_port = 10000 iosxe_username = "developer" iosxe_password = "C1sco12345" from ncclient import manager import xmltodict import xml.dom.minidom # Create an XML filter for targeted NETCONF queries netconf_filter = """ <filter> <interfaces xm...
27.723404
88
0.718342
160
1,303
5.68125
0.43125
0.042904
0.052805
0.048405
0.310231
0.259626
0.259626
0.259626
0.259626
0.259626
0
0.01
0.155794
1,303
46
89
28.326087
0.816364
0.319263
0
0
0
0
0.322654
0.135011
0
0
0
0
0
1
0
false
0.08
0.12
0
0.12
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
1
0
0
0
0
0
1
70543f99f9e6f1e388a540a99c2e97732d9e9ee6
3,245
py
Python
fw_test_harness/html_report_generator.py
PX4/fw-test-harness
5c35b2f947c3247d95b54a0fc613bf48fbded7da
[ "MIT" ]
2
2015-09-24T18:14:00.000Z
2015-12-15T03:28:46.000Z
fw_test_harness/html_report_generator.py
PX4/fw-test-harness
5c35b2f947c3247d95b54a0fc613bf48fbded7da
[ "MIT" ]
null
null
null
fw_test_harness/html_report_generator.py
PX4/fw-test-harness
5c35b2f947c3247d95b54a0fc613bf48fbded7da
[ "MIT" ]
2
2016-06-02T01:40:19.000Z
2019-08-09T10:03:48.000Z
#!/usr/bin/env python import argparse from yattag import Doc import matplotlib.pyplot as plt, mpld3 import collections class HtmlReportGenerator: """Generates html reports""" def __init__(self, args): """Constructor""" self.args = args self.report = "" # the html string self....
31.504854
81
0.538059
386
3,245
4.435233
0.34456
0.040888
0.03972
0.012266
0.101051
0.05257
0.033879
0.033879
0
0
0
0.010055
0.325732
3,245
102
82
31.813725
0.772395
0.265639
0
0
1
0
0.068996
0
0
0
0
0
0
1
0.1
false
0
0.066667
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
705a3d4ced89bcfa03e85f9fc886f6c3b10c1d03
715
py
Python
blog/migrations/0001_initial.py
AndyBowskill/andybowskill
d3d449e2c44c14cec18c4e5a0ee3970fe1fbb7d6
[ "MIT" ]
null
null
null
blog/migrations/0001_initial.py
AndyBowskill/andybowskill
d3d449e2c44c14cec18c4e5a0ee3970fe1fbb7d6
[ "MIT" ]
null
null
null
blog/migrations/0001_initial.py
AndyBowskill/andybowskill
d3d449e2c44c14cec18c4e5a0ee3970fe1fbb7d6
[ "MIT" ]
null
null
null
# Generated by Django 3.1.5 on 2021-02-04 19:45 from django.db import migrations, models import django.db.models.manager class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name="Blog", fields=[ ...
25.535714
79
0.521678
64
715
5.8125
0.6875
0.064516
0.075269
0.112903
0
0
0
0
0
0
0
0.031646
0.337063
715
27
80
26.481481
0.753165
0.062937
0
0.1
1
0
0.046407
0
0
0
0
0
0
1
0
false
0
0.1
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
705b4d5cd84623195126b2771150fa91e444a907
4,597
py
Python
dpsutil/environment/environment.py
connortran216/DPS_Util
8e6af59c3cc5d4addf3694ee0dfede08206ec4b3
[ "MIT" ]
1
2021-01-19T03:14:42.000Z
2021-01-19T03:14:42.000Z
dpsutil/environment/environment.py
connortran216/DPS_Util
8e6af59c3cc5d4addf3694ee0dfede08206ec4b3
[ "MIT" ]
1
2021-01-27T09:50:33.000Z
2021-01-27T09:50:33.000Z
dpsutil/environment/environment.py
connortran216/DPS_Util
8e6af59c3cc5d4addf3694ee0dfede08206ec4b3
[ "MIT" ]
3
2020-03-24T02:49:47.000Z
2021-02-26T04:05:06.000Z
from dpsutil.attrdict import DefaultDict, AttrDict from dpsutil.attrdict.decorator import _get_vars_cls from os import environ class Environment(DefaultDict): """ Environment: Auto pair environment parameters fit with default, which provided before. Implement attrdict.DefaultDict Auto check and broad...
32.373239
111
0.616924
556
4,597
4.796763
0.233813
0.020247
0.035996
0.024372
0.364079
0.322835
0.292838
0.282715
0.282715
0.257218
0
0.013674
0.268218
4,597
141
112
32.602837
0.779132
0.435066
0
0.118644
0
0.016949
0.099664
0
0
0
0
0
0
1
0.220339
false
0
0.050847
0.016949
0.457627
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
705c834021988f2e1ca4df337084e3a2e833583a
1,068
py
Python
day 5/4-normal_dist.py
JackRab/10-days-of-statistics
68ebb74a689e28a2ff225be96a5e9b59c9abe783
[ "MIT" ]
null
null
null
day 5/4-normal_dist.py
JackRab/10-days-of-statistics
68ebb74a689e28a2ff225be96a5e9b59c9abe783
[ "MIT" ]
null
null
null
day 5/4-normal_dist.py
JackRab/10-days-of-statistics
68ebb74a689e28a2ff225be96a5e9b59c9abe783
[ "MIT" ]
null
null
null
""" Objective In this challenge, we go further with normal distributions. Task The final grades for a Physics exam taken by a large group of students have a mean of mu=70 and a standard deviation of sigma=10. If we can approximate the distribution of these grades by a normal distribution, what percentage of the stu...
35.6
115
0.701311
191
1,068
3.900524
0.450262
0.026846
0.024161
0.028188
0.277852
0.225503
0.112752
0.112752
0.112752
0.112752
0
0.061294
0.175094
1,068
30
116
35.6
0.784336
0.680712
0
0
0
0
0.009464
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.5
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
705d1006eed6327deb0841912866c9c9f51e9ab7
418
py
Python
PS2/GroupAss/Trajectories/trajectory_utils.py
MattTurnock/PlanetarySciencesMatt
81954d2182d9577bd7327a98c45963ae42968df4
[ "MIT" ]
null
null
null
PS2/GroupAss/Trajectories/trajectory_utils.py
MattTurnock/PlanetarySciencesMatt
81954d2182d9577bd7327a98c45963ae42968df4
[ "MIT" ]
null
null
null
PS2/GroupAss/Trajectories/trajectory_utils.py
MattTurnock/PlanetarySciencesMatt
81954d2182d9577bd7327a98c45963ae42968df4
[ "MIT" ]
null
null
null
import numpy as np from astropy import units as u def C3toDV(C3, muE, rOrbit, outputUnits=None): """ Assumes all units are SI base if not stated :param C3: :param muE: :param rOrbit: :param outputUnits: :return: """ # print(C3, muE, rOrbit) DV = np.sqrt(C3 + (2*muE/rOrbit)) - n...
20.9
59
0.61244
61
418
4.196721
0.508197
0.140625
0.085938
0
0
0
0
0
0
0
0
0.019802
0.27512
418
20
60
20.9
0.825083
0.320574
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
7069c3bc8265659738e027a9e3bc09e4e52e6f67
558
py
Python
rules/PlaybookExtension.py
dockpack/ansible-lint-rules
794ae9b0c034adee20b677ed26888c508847f507
[ "MIT" ]
null
null
null
rules/PlaybookExtension.py
dockpack/ansible-lint-rules
794ae9b0c034adee20b677ed26888c508847f507
[ "MIT" ]
null
null
null
rules/PlaybookExtension.py
dockpack/ansible-lint-rules
794ae9b0c034adee20b677ed26888c508847f507
[ "MIT" ]
1
2020-08-11T08:32:55.000Z
2020-08-11T08:32:55.000Z
from ansiblelint import AnsibleLintRule import os class PlaybookExtension(AnsibleLintRule): id = 'E101' shortdesc = 'Playbooks should have the ".yml" extension' description = '' tags = ['playbook'] done = [] # already noticed path list def match(self, file, text): if file['type'] != ...
25.363636
60
0.589606
63
558
5.222222
0.650794
0.066869
0
0
0
0
0
0
0
0
0
0.010256
0.301075
558
21
61
26.571429
0.833333
0.044803
0
0.117647
0
0
0.13936
0
0
0
0
0
0
1
0.058824
false
0
0.117647
0
0.705882
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
706d7cd8cb065536c3b42bd8a949922e75604f14
7,281
py
Python
digsby/src/gui/pref/noobcontactlayoutpanel.py
ifwe/digsby
f5fe00244744aa131e07f09348d10563f3d8fa99
[ "Python-2.0" ]
35
2015-08-15T14:32:38.000Z
2021-12-09T16:21:26.000Z
digsby/src/gui/pref/noobcontactlayoutpanel.py
niterain/digsby
16a62c7df1018a49eaa8151c0f8b881c7e252949
[ "Python-2.0" ]
4
2015-09-12T10:42:57.000Z
2017-02-27T04:05:51.000Z
digsby/src/gui/pref/noobcontactlayoutpanel.py
niterain/digsby
16a62c7df1018a49eaa8151c0f8b881c7e252949
[ "Python-2.0" ]
15
2015-07-10T23:58:07.000Z
2022-01-23T22:16:33.000Z
import wx from cgui import SimplePanel from gui.pref.prefcontrols import mark_pref,get_pref class NoobContactLayoutPanel(wx.Panel): def __init__(self, parent): wx.Panel.__init__(self,parent) self.links = parent.links self.Sizer = wx.BoxSizer(wx.VERTICAL) self.grid = wx.FlexGridSizer...
36.223881
87
0.441972
631
7,281
4.898574
0.228209
0.036234
0.036881
0.032999
0.371401
0.345519
0.298609
0.287933
0.287933
0.287933
0
0.017173
0.480154
7,281
200
88
36.405
0.799472
0.045461
0
0.384058
0
0
0.021639
0
0
0
0
0
0
0
null
null
0
0.036232
null
null
0.007246
0
0
0
null
0
0
0
0
0
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
7070b93051b38b982ed7f6d291e2d1ee4d9fa685
811
py
Python
graphs.py
meyresearch/ANI-Peptides
84684b484119699cb5458f4c2aed5fa8a482c315
[ "Apache-2.0" ]
1
2022-03-31T16:43:55.000Z
2022-03-31T16:43:55.000Z
graphs.py
meyresearch/ANI-Peptides
84684b484119699cb5458f4c2aed5fa8a482c315
[ "Apache-2.0" ]
null
null
null
graphs.py
meyresearch/ANI-Peptides
84684b484119699cb5458f4c2aed5fa8a482c315
[ "Apache-2.0" ]
null
null
null
import pandas as pd import seaborn as sns import matplotlib.pyplot as plt import matplotlib.ticker as tkr import os import openmm.unit as unit output_dir = "/home/mbowley/ANI-Peptides/outputs/equilibration_aaa_capped_amber_121250_310322" STATE_DATA_FN = "equilibration_state_data.csv" # Make some graphs report = pd.re...
36.863636
139
0.750925
128
811
4.59375
0.625
0.045918
0.037415
0.054422
0.064626
0
0
0
0
0
0
0.021216
0.128237
811
22
140
36.863636
0.810467
0.060419
0
0
0
0
0.271053
0.219737
0
0
0
0
0
1
0
false
0
0.375
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
707187b48b45b72042bc1f7d90faf6f81262ae8b
1,138
py
Python
cybox/test/common/extracted_features_test.py
siemens/python-cybox
b692a98c8a62bd696e2a0dda802ada7359853482
[ "BSD-3-Clause" ]
null
null
null
cybox/test/common/extracted_features_test.py
siemens/python-cybox
b692a98c8a62bd696e2a0dda802ada7359853482
[ "BSD-3-Clause" ]
null
null
null
cybox/test/common/extracted_features_test.py
siemens/python-cybox
b692a98c8a62bd696e2a0dda802ada7359853482
[ "BSD-3-Clause" ]
1
2019-04-16T18:37:32.000Z
2019-04-16T18:37:32.000Z
# Copyright (c) 2014, The MITRE Corporation. All rights reserved. # See LICENSE.txt for complete terms. import unittest from cybox.common import ExtractedFeatures from cybox.test import EntityTestCase # Need to do this so the binding class is registered. import cybox.bindings.cybox_common from cybox.bindings.address...
33.470588
77
0.672232
128
1,138
5.835938
0.59375
0.032129
0.048193
0.064257
0
0
0
0
0
0
0
0.015351
0.198594
1,138
33
78
34.484848
0.803728
0.172232
0
0.090909
0
0
0.295624
0
0
0
0
0.030303
0
1
0
false
0
0.272727
0
0.409091
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
7071e73ce6bf98c0a8ebbcf53ffea1005ca30c0c
5,640
py
Python
openslides/motions/config_variables.py
rolandgeider/OpenSlides
331141c17cb23da26e377d4285efdb4a50753a59
[ "MIT" ]
null
null
null
openslides/motions/config_variables.py
rolandgeider/OpenSlides
331141c17cb23da26e377d4285efdb4a50753a59
[ "MIT" ]
null
null
null
openslides/motions/config_variables.py
rolandgeider/OpenSlides
331141c17cb23da26e377d4285efdb4a50753a59
[ "MIT" ]
null
null
null
from django.core.validators import MinValueValidator from openslides.core.config import ConfigVariable from openslides.poll.models import PERCENT_BASE_CHOICES from .models import Workflow def get_workflow_choices(): """ Returns a list of all workflows to be used as choices for the config variable 'motio...
30.989011
98
0.626064
594
5,640
5.791246
0.277778
0.082849
0.100291
0.130814
0.306395
0.246802
0.181686
0.114535
0.05
0.05
0
0.014324
0.269681
5,640
181
99
31.160221
0.82083
0.091489
0
0.439716
0
0
0.335765
0.060331
0
0
0
0.005525
0
1
0.014184
true
0
0.028369
0
0.049645
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
707a6afb505aab8fb903afd510d0ef10d069c552
1,378
py
Python
deeplearning-image-gpu/resource/scoring-recipe-helper.py
gbetegon88/dataiku-contrib
4683a9e08a3706a163810bf104bf6464025e235e
[ "Apache-2.0" ]
93
2015-10-28T13:15:45.000Z
2022-03-07T01:16:24.000Z
deeplearning-image-gpu/resource/scoring-recipe-helper.py
gbetegon88/dataiku-contrib
4683a9e08a3706a163810bf104bf6464025e235e
[ "Apache-2.0" ]
130
2015-11-13T17:41:41.000Z
2022-03-30T16:37:44.000Z
deeplearning-image-gpu/resource/scoring-recipe-helper.py
gbetegon88/dataiku-contrib
4683a9e08a3706a163810bf104bf6464025e235e
[ "Apache-2.0" ]
88
2015-10-29T09:36:23.000Z
2021-12-13T20:14:08.000Z
import dataiku import glob import pandas as pd import os def do(payload, config, plugin_config, inputs): if "method" not in payload: return {} client = dataiku.api_client() if payload["method"] == "get-valid-csv-filenames": required_columns = ["id", "className"] sep = "," ...
32.046512
103
0.621916
174
1,378
4.672414
0.390805
0.067651
0.083641
0.051661
0.162362
0.100861
0.100861
0
0
0
0
0.003015
0.277939
1,378
43
104
32.046512
0.81407
0.049347
0
0
0
0
0.097859
0.017584
0
0
0
0
0
0
null
null
0
0.129032
null
null
0.032258
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
707c819d3655d7f0bad5a54fee02df54610cbc35
4,416
py
Python
dualing/core/model.py
gugarosa/dualing
a625476946bded8e6c9211d83fe79dc16b3d8f16
[ "Apache-2.0" ]
2
2020-08-03T08:02:48.000Z
2020-11-21T04:11:45.000Z
dualing/core/model.py
gugarosa/dualing
a625476946bded8e6c9211d83fe79dc16b3d8f16
[ "Apache-2.0" ]
1
2020-09-29T12:58:33.000Z
2020-09-29T12:58:33.000Z
dualing/core/model.py
gugarosa/dualing
a625476946bded8e6c9211d83fe79dc16b3d8f16
[ "Apache-2.0" ]
null
null
null
"""Base architecture and Siamese Network. """ import tensorflow as tf import dualing.utils.exception as e class Base(tf.keras.Model): """A Base class is responsible for easily-implementing the base twin architecture of a Siamese Network. """ def __init__(self, name=''): """Initialization m...
25.234286
97
0.615942
515
4,416
5.238835
0.279612
0.025945
0.024463
0.033358
0.395478
0.316901
0.263158
0.236471
0.236471
0.236471
0
0.000991
0.314312
4,416
174
98
25.37931
0.890026
0.610507
0
0.181818
0
0
0.031869
0
0
0
0
0
0
1
0.333333
false
0
0.060606
0
0.515152
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
708280686076f210ca6f326f21e8b919249cc576
5,439
py
Python
chase/test.py
dave2328/chase
9bca01b959ba65f526db993fd03a13eaba294941
[ "MIT" ]
3
2016-02-03T04:04:00.000Z
2020-10-31T02:36:49.000Z
chase/test.py
tecoach/chase
2b5a11cf70f295500f07207e26f26f4391902d08
[ "MIT" ]
1
2016-09-27T18:44:22.000Z
2016-09-27T18:44:22.000Z
chase/test.py
tecoach/chase
2b5a11cf70f295500f07207e26f26f4391902d08
[ "MIT" ]
5
2016-02-03T04:04:13.000Z
2020-03-30T04:46:11.000Z
import os import unittest from chase import Profile, Order, Reversal merchant_id = os.environ.get('TEST_ORBITAL_MERCHANT_ID') username = os.environ.get('TEST_ORBITAL_USERNAME') password = os.environ.get('TEST_ORBITAL_PASSWORD') def new_profile(): profile = Profile( merchant_id=merchant_id, usernam...
34.865385
69
0.636882
543
5,439
6.26151
0.176796
0.145588
0.203824
0.055882
0.621176
0.572353
0.562353
0.562353
0.469412
0.408529
0
0.0514
0.238095
5,439
155
70
35.090323
0.769064
0.015812
0
0.559701
0
0
0.194465
0.012341
0
0
0
0
0.298507
1
0.052239
false
0.029851
0.022388
0.014925
0.11194
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
708607f4e8ad0abd68f63300e62f77ebd76b2725
1,200
py
Python
src/frame/mysql_conf_parser.py
f304646673/scheduler_frame
0a9ba45a6523cbf9bd50e9fa8e08c8bfd2a9204a
[ "Apache-2.0" ]
9
2017-05-14T05:12:32.000Z
2022-01-13T08:11:07.000Z
src/frame/mysql_conf_parser.py
f304646673/scheduler_frame
0a9ba45a6523cbf9bd50e9fa8e08c8bfd2a9204a
[ "Apache-2.0" ]
null
null
null
src/frame/mysql_conf_parser.py
f304646673/scheduler_frame
0a9ba45a6523cbf9bd50e9fa8e08c8bfd2a9204a
[ "Apache-2.0" ]
7
2017-08-28T08:31:43.000Z
2020-03-03T07:18:37.000Z
import copy import ConfigParser import conf_keys from loggingex import LOG_WARNING class mysql_conf_parser: def parse(self, job_conf_path): cp = ConfigParser.SafeConfigParser() cp.read(job_conf_path) sections = cp.sections() conns_info = {} for section in sections: ...
33.333333
77
0.564167
141
1,200
4.453901
0.361702
0.076433
0.047771
0.057325
0
0
0
0
0
0
0
0.001263
0.34
1,200
35
78
34.285714
0.791667
0
0
0
0
0
0.050833
0.024167
0
0
0
0
0
0
null
null
0.032258
0.129032
null
null
0.032258
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7086ab4940faf1fbffd4020ba41b2d8ad3df6cb7
596
py
Python
n3-torch/ffi/python/n3/std/nn/conv/conv2d.py
kerryeon/n3-rs
e3c7325a89ec3eaffae356d2e4dcc4c63ba8caa1
[ "MIT" ]
1
2022-01-18T13:18:58.000Z
2022-01-18T13:18:58.000Z
n3-torch/ffi/python/n3/std/nn/conv/conv2d.py
kerryeon/n3-rs
e3c7325a89ec3eaffae356d2e4dcc4c63ba8caa1
[ "MIT" ]
null
null
null
n3-torch/ffi/python/n3/std/nn/conv/conv2d.py
kerryeon/n3-rs
e3c7325a89ec3eaffae356d2e4dcc4c63ba8caa1
[ "MIT" ]
null
null
null
import torch.nn as nn from n3 import ExternNode class Conv2D(ExternNode): kernel_size: int padding: int stride: int input_channels: int output_channels: int bias: bool def __init__(self, **kwargs): super().__init__(**kwargs) self._inner = nn.Conv2d( in_chan...
19.866667
46
0.600671
70
596
4.842857
0.428571
0.088496
0
0
0
0
0
0
0
0
0
0.007299
0.310403
596
29
47
20.551724
0.817518
0
0
0
0
0
0
0
0
0
0
0
0
1
0.095238
false
0
0.095238
0.047619
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
708a394ef1e0df69e0c499106dd15967d32aa202
2,001
py
Python
tutorials/basics/g_app.py
nunoedgarhubsoftphotoflow/py-fmas
241d942fe0cd6a49001b1bf110dd32bccc86bb16
[ "MIT" ]
4
2021-04-28T07:02:54.000Z
2022-01-25T13:15:49.000Z
tutorials/basics/g_app.py
Photonics-Precision-Technologies/py-fmas
241d942fe0cd6a49001b1bf110dd32bccc86bb16
[ "MIT" ]
3
2021-06-10T07:11:35.000Z
2021-11-22T15:23:01.000Z
tutorials/basics/g_app.py
Photonics-Precision-Technologies/py-fmas
241d942fe0cd6a49001b1bf110dd32bccc86bb16
[ "MIT" ]
5
2021-05-20T08:53:44.000Z
2022-01-25T13:18:34.000Z
r""" Using `fmas` as a black-box application ======================================= This examples shows how to use `py-fmas` as a black-box application, that only requires a minimal amount of scripting. .. codeauthor:: Oliver Melchert <melchert@iqo.uni-hannover.de> """ #############################################...
39.235294
79
0.594703
255
2,001
4.560784
0.529412
0.046432
0.028375
0.020636
0.044712
0.044712
0
0
0
0
0
0.010771
0.118441
2,001
50
80
40.02
0.648526
0.626687
0
0
0
0
0.134557
0
0
0
0
0
0
1
0
false
0
0.375
0
0.375
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
708b7c3f2101b8cf722c8c1af351e895b4c6a938
621
py
Python
backend/tiles/migrations/0002_auto_20200526_0100.py
landdafku11/mobile-backend
3f3328afd81f85f90170a57689af72f8f705b8a3
[ "MIT" ]
null
null
null
backend/tiles/migrations/0002_auto_20200526_0100.py
landdafku11/mobile-backend
3f3328afd81f85f90170a57689af72f8f705b8a3
[ "MIT" ]
null
null
null
backend/tiles/migrations/0002_auto_20200526_0100.py
landdafku11/mobile-backend
3f3328afd81f85f90170a57689af72f8f705b8a3
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-05-25 17:00 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('cubes', '0001_initial'), ('tiles', '0001_initial'), ] operations = [ migrations.RemoveField( ...
24.84
116
0.602254
65
621
5.661538
0.630769
0.065217
0.076087
0.119565
0.163043
0
0
0
0
0
0
0.050885
0.272142
621
24
117
25.875
0.763274
0.072464
0
0.222222
1
0
0.15331
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.277778
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
708b92b1cb033572a615db2bbf33c6400d6fe304
720
py
Python
Q47_Permutations-II.py
xiaosean/leetcode_python
844ece02d699bfc620519bd94828ed0e18597f3e
[ "MIT" ]
null
null
null
Q47_Permutations-II.py
xiaosean/leetcode_python
844ece02d699bfc620519bd94828ed0e18597f3e
[ "MIT" ]
null
null
null
Q47_Permutations-II.py
xiaosean/leetcode_python
844ece02d699bfc620519bd94828ed0e18597f3e
[ "MIT" ]
null
null
null
class Solution: def permuteUnique(self, nums: List[int]) -> List[List[int]]: n = len(nums) if n == 0: return None if n == 1: return [nums] nums.sort() res = [] def dfs(nums, res, path=None): if path is None: ...
26.666667
66
0.370833
81
720
3.296296
0.320988
0.093633
0.059925
0.074906
0.224719
0.089888
0
0
0
0
0
0.016901
0.506944
720
27
67
26.666667
0.735211
0
0
0.166667
0
0
0
0
0
0
0
0
0
1
0.083333
false
0
0
0
0.291667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
70a1fd6852d7db5fa6fd60e6b794975a1360fc9b
3,355
py
Python
hangouts-chat.py
matallen/ninja-points
a2af9f358bc302f4638d1516055c687cffa546ab
[ "Apache-2.0" ]
7
2018-11-27T10:13:48.000Z
2022-01-22T07:33:28.000Z
hangouts-chat.py
matallen/ninja-points
a2af9f358bc302f4638d1516055c687cffa546ab
[ "Apache-2.0" ]
29
2018-01-06T05:02:38.000Z
2021-05-20T15:27:15.000Z
hangouts-chat.py
matallen/ninja-points
a2af9f358bc302f4638d1516055c687cffa546ab
[ "Apache-2.0" ]
14
2017-12-09T14:58:53.000Z
2022-01-24T15:56:01.000Z
#!/usr/bin/env python from oauth2client.service_account import ServiceAccountCredentials from os import path import os, requests, sys, argparse SERVICE_ACCOUNT_KEY_FILE_NAME='SERVICE_ACCOUNT_KEY_FILE' HANGOUTS_CHATS_API='https://chat.googleapis.com/v1' GOOGLE_CHAT_SCOPE='https://www.googleapis.com/auth/chat.bot' SPAC...
29.690265
120
0.708793
434
3,355
5.223502
0.25576
0.074107
0.082488
0.101897
0.227614
0.130569
0.045876
0.045876
0.045876
0.045876
0
0.004354
0.178539
3,355
113
121
29.690265
0.818215
0.009538
0
0.041096
0
0
0.166767
0.007225
0
0
0
0
0
0
null
null
0
0.041096
null
null
0.082192
0
0
0
null
0
0
0
0
0
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
70a52b1be3075c53fa2ae1d2c049a7526d9ddb9b
923
py
Python
pyRoovit/pyRoovit.extension/pyRoovit.tab/Tools.Panel/Document.pulldown/Find.pushbutton/script.py
jmcouffin/pyRoovit
acafa74fb6310a1042c703d791b0d53804c1882a
[ "BSD-3-Clause" ]
5
2022-03-14T01:58:34.000Z
2022-03-21T19:51:09.000Z
pyRoovit/pyRoovit.extension/pyRoovit.tab/Tools.Panel/Document.pulldown/Find.pushbutton/script.py
jmcouffin/pyRoovit
acafa74fb6310a1042c703d791b0d53804c1882a
[ "BSD-3-Clause" ]
1
2022-03-14T10:18:40.000Z
2022-03-14T15:52:25.000Z
pyRoovit/pyRoovit.extension/pyRoovit.tab/Tools.Panel/Document.pulldown/Find.pushbutton/script.py
jmcouffin/pyRoovit
acafa74fb6310a1042c703d791b0d53804c1882a
[ "BSD-3-Clause" ]
1
2022-03-14T10:15:22.000Z
2022-03-14T10:15:22.000Z
# import libraries import clr import os from os import listdir import System from System.IO import SearchOption from System import Environment # import pyrevit libraries from pyrevit import forms from pyrevit import revit,DB # get document doc = revit.doc # try to open cache path try: curdoc = DB.Document.PathNam...
31.827586
193
0.713976
118
923
5.584746
0.550847
0.030349
0.051593
0
0
0
0
0
0
0
0
0.004038
0.195016
923
29
193
31.827586
0.882907
0.083424
0
0.173913
0
0.043478
0.225653
0.028504
0
0
0
0
0
1
0
false
0
0.347826
0
0.347826
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
560c68d1de24eff114517db2454d489387dbeb48
267
py
Python
src/ralph/dns/apps.py
DoNnMyTh/ralph
97b91639fa68965ad3fd9d0d2652a6545a2a5b72
[ "Apache-2.0" ]
1,668
2015-01-01T12:51:20.000Z
2022-03-29T09:05:35.000Z
src/ralph/dns/apps.py
hq-git/ralph
e2448caf02d6e5abfd81da2cff92aefe0a534883
[ "Apache-2.0" ]
2,314
2015-01-02T13:26:26.000Z
2022-03-29T04:06:03.000Z
src/ralph/dns/apps.py
hq-git/ralph
e2448caf02d6e5abfd81da2cff92aefe0a534883
[ "Apache-2.0" ]
534
2015-01-05T12:40:28.000Z
2022-03-29T21:10:12.000Z
from django.conf import settings from ralph.apps import RalphAppConfig class DNS(RalphAppConfig): name = 'ralph.dns' def get_load_modules_when_ready(self): if settings.ENABLE_HERMES_INTEGRATION: return ['publishers'] return []
20.538462
46
0.696629
31
267
5.806452
0.774194
0
0
0
0
0
0
0
0
0
0
0
0.228464
267
12
47
22.25
0.873786
0
0
0
0
0
0.071161
0
0
0
0
0
0
1
0.125
false
0
0.25
0
0.875
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
560eee76e44697ef904786e1db3a7b3facad82f0
488
py
Python
backend/trucks/migrations/0005_auto_20201029_2137.py
NikogSamonic/Log_app
197fb46b84d102942352d1a30d2a64680b18d943
[ "MIT" ]
11
2020-09-21T18:58:09.000Z
2020-10-21T19:08:50.000Z
backend/trucks/migrations/0005_auto_20201029_2137.py
NikogSamonic/Log_app
197fb46b84d102942352d1a30d2a64680b18d943
[ "MIT" ]
8
2020-09-22T02:59:26.000Z
2020-10-31T07:28:59.000Z
backend/trucks/migrations/0005_auto_20201029_2137.py
NikogSamonic/Log_app
197fb46b84d102942352d1a30d2a64680b18d943
[ "MIT" ]
21
2020-09-21T11:46:42.000Z
2020-10-29T22:57:47.000Z
# Generated by Django 3.1.2 on 2020-10-29 20:37 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('trucks', '0004_auto_20201025_2222'), ] operations = [ migrations.RemoveField( model_name='car', name='truck', ...
21.217391
60
0.561475
49
488
5.489796
0.714286
0.066915
0.089219
0.118959
0.156134
0
0
0
0
0
0
0.093093
0.317623
488
22
61
22.181818
0.714715
0.092213
0
0.375
1
0
0.129252
0.052154
0
0
0
0
0
1
0
false
0
0.0625
0
0.25
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
5614247b9f08fee16422d09e7313f385f4710f7f
1,198
py
Python
backend/apis/family_group/models/memberships.py
sango09/senasoft
d7e5b0fae620764b3af73955f7771dcee5746dfc
[ "MIT" ]
1
2020-10-17T03:39:56.000Z
2020-10-17T03:39:56.000Z
backend/apis/family_group/models/memberships.py
sango09/senasoft
d7e5b0fae620764b3af73955f7771dcee5746dfc
[ "MIT" ]
null
null
null
backend/apis/family_group/models/memberships.py
sango09/senasoft
d7e5b0fae620764b3af73955f7771dcee5746dfc
[ "MIT" ]
null
null
null
"""Modelo de pacientes""" # Django from django.db import models # Utilidades from apis.utils.models import ModelUtil class Memberships(ModelUtil): """Modelo de pacientes Un paciente puede tener un grupo familiar asociado, si el paciente crea el grupo sera el titular de la familia, los miembros del ...
33.277778
90
0.724541
150
1,198
5.686667
0.533333
0.076202
0.065651
0.098476
0
0
0
0
0
0
0
0.002062
0.190317
1,198
35
91
34.228571
0.87732
0.308013
0
0
0
0
0.163085
0.030341
0
0
0
0
0
1
0.058824
false
0
0.117647
0
0.705882
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
5614d2570169d56a1b186afec8d94e21051b1226
8,051
py
Python
aiida/cmdline/commands/shell.py
astamminger/aiida_core
b01ad8236f21804f273c9d2a0365ecee62255cbb
[ "BSD-2-Clause" ]
null
null
null
aiida/cmdline/commands/shell.py
astamminger/aiida_core
b01ad8236f21804f273c9d2a0365ecee62255cbb
[ "BSD-2-Clause" ]
null
null
null
aiida/cmdline/commands/shell.py
astamminger/aiida_core
b01ad8236f21804f273c9d2a0365ecee62255cbb
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
36.931193
85
0.531859
808
8,051
5.144802
0.311881
0.027424
0.020447
0.014433
0.08612
0.07746
0.051479
0.051479
0.033678
0
0
0.005366
0.351882
8,051
217
86
37.101382
0.791299
0.158614
0
0.212329
0
0
0.13831
0.003502
0
0
0
0
0
0
null
null
0.034247
0.184932
null
null
0.006849
0
0
0
null
0
0
0
0
0
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
5625a3407da98d220cca4d5d9645cc01df5da356
368
py
Python
server/server/posts/migrations/0003_auto_20210727_1618.py
connectiveproject/connective
8866082b2147feef0e5254ac4215987b9d881396
[ "MIT" ]
4
2021-07-05T10:49:26.000Z
2021-11-24T11:34:43.000Z
server/server/posts/migrations/0003_auto_20210727_1618.py
connectiveproject/connective
8866082b2147feef0e5254ac4215987b9d881396
[ "MIT" ]
39
2021-06-21T15:02:37.000Z
2022-02-28T15:07:42.000Z
server/server/posts/migrations/0003_auto_20210727_1618.py
Eyal-VR/connective
46857dd79dc58f63c3afb9791ecf8adf853a6c57
[ "MIT" ]
17
2021-06-16T08:59:45.000Z
2021-09-29T11:35:38.000Z
# Generated by Django 3.1.11 on 2021-07-27 13:18 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('posts', '0002_auto_20210727_1319'), ] operations = [ migrations.RenameField( model_name='post', old_name='creation_time', ...
19.368421
48
0.589674
40
368
5.25
0.85
0
0
0
0
0
0
0
0
0
0
0.124031
0.298913
368
18
49
20.444444
0.689922
0.125
0
0
1
0
0.1625
0.071875
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
562700dc0c3f61321ee677178dd5d439d1213e59
801
py
Python
djstripe/migrations/0007_auto_20200507_1913.py
bomba1990/dj-stripe
507593c619145c30264d0e85b39bdba6f671a6d6
[ "MIT" ]
null
null
null
djstripe/migrations/0007_auto_20200507_1913.py
bomba1990/dj-stripe
507593c619145c30264d0e85b39bdba6f671a6d6
[ "MIT" ]
null
null
null
djstripe/migrations/0007_auto_20200507_1913.py
bomba1990/dj-stripe
507593c619145c30264d0e85b39bdba6f671a6d6
[ "MIT" ]
null
null
null
# Generated by Django 2.2.11 on 2020-05-07 19:13 from django.db import migrations, models import djstripe.fields class Migration(migrations.Migration): dependencies = [ ('djstripe', '0006_2_3'), ] operations = [ migrations.AlterField( model_name='plan', name='amo...
30.807692
185
0.635456
90
801
5.544444
0.644444
0.056112
0.1002
0.116232
0.148297
0.148297
0
0
0
0
0
0.050336
0.25593
801
25
186
32.04
0.786913
0.057428
0
0.315789
1
0
0.203187
0
0
0
0
0
0
1
0
false
0
0.105263
0
0.263158
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
562d12ab0b477e0d9a560f4a82cf032a9804cac0
848
py
Python
BubbleSort.py
R-Magnotti/Python.Interesting_Sorting_Algortithms
e10f8105499ac2c90923def7c324c46acda920aa
[ "MIT" ]
null
null
null
BubbleSort.py
R-Magnotti/Python.Interesting_Sorting_Algortithms
e10f8105499ac2c90923def7c324c46acda920aa
[ "MIT" ]
null
null
null
BubbleSort.py
R-Magnotti/Python.Interesting_Sorting_Algortithms
e10f8105499ac2c90923def7c324c46acda920aa
[ "MIT" ]
null
null
null
####################################################################################################################### # Author: Richie Magnotti # # Goal of code is to demonstrate sorting via bubble sort algorithm ################################################################...
28.266667
119
0.325472
94
848
2.829787
0.446809
0.105263
0.078947
0.090226
0.067669
0
0
0
0
0
0
0.034258
0.277123
848
29
120
29.241379
0.399674
0.103774
0
0
0
0
0.060797
0
0
0
0
0
0
1
0.117647
false
0
0
0
0.117647
0.235294
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5632552890c6924fe604b24e015f930f2f4fff85
575
py
Python
secondary_implementations/python/modules/RedditModule.py
SKsample/shard
3e581fdaa6be6ecb5b9b21a536ba9e3fb3b396e1
[ "MIT" ]
441
2016-07-07T11:13:35.000Z
2022-03-18T03:22:53.000Z
secondary_implementations/python/modules/RedditModule.py
SKsample/shard
3e581fdaa6be6ecb5b9b21a536ba9e3fb3b396e1
[ "MIT" ]
20
2016-07-07T14:38:07.000Z
2020-01-13T19:15:11.000Z
secondary_implementations/python/modules/RedditModule.py
SKsample/shard
3e581fdaa6be6ecb5b9b21a536ba9e3fb3b396e1
[ "MIT" ]
76
2016-07-07T14:09:09.000Z
2020-03-22T04:03:15.000Z
# vim: ts=2 sw=2 noexpandtab from __future__ import unicode_literals import requests from .AbstractModule import AbstractModule class RedditModule(AbstractModule): def try_login(self, uname, password): payload = { 'user': uname, 'passwd': password, 'api_type': 'json'} headers = { 'user-agent': Abstra...
25
69
0.721739
69
575
5.898551
0.652174
0.044226
0
0
0
0
0
0
0
0
0
0.004073
0.146087
575
22
70
26.136364
0.824847
0.045217
0
0
0
0
0.224863
0.060329
0
0
0
0
0
1
0.0625
false
0.1875
0.1875
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
5633f5fb9e2ed30314c515784fbe70c043b5a858
13,887
py
Python
tests/test_api.py
SonOfLilit/kleenexp
87e7a6bd5c407499a15abe9b494c6dfe84de60b6
[ "MIT" ]
9
2021-11-27T20:29:16.000Z
2022-03-21T09:32:17.000Z
tests/test_api.py
SonOfLilit/kleenexp
87e7a6bd5c407499a15abe9b494c6dfe84de60b6
[ "MIT" ]
1
2022-01-03T12:53:43.000Z
2022-01-03T18:53:56.000Z
tests/test_api.py
SonOfLilit/kleenexp
87e7a6bd5c407499a15abe9b494c6dfe84de60b6
[ "MIT" ]
2
2021-12-15T09:16:10.000Z
2022-01-03T12:32:10.000Z
import pytest import midas import ke import re def assert_pattern(pattern, matches, not_matches=()): if isinstance(pattern, str): pattern = ke.compile(pattern) for m in matches: assert pattern.match(m), (pattern, m) for m in not_matches: assert not pattern.match(m), (pattern, m) ...
31.924138
426
0.557356
2,181
13,887
3.492893
0.142137
0.076661
0.044762
0.042531
0.591756
0.508532
0.449462
0.385666
0.303623
0.23287
0
0.026602
0.204148
13,887
434
427
31.997696
0.662685
0.005833
0
0.132353
0
0.023529
0.328497
0.011593
0
0
0
0
0.517647
1
0.097059
false
0
0.011765
0.005882
0.117647
0.005882
0
0
0
null
0
0
0
0
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
56368197977f246f771575ac14b13fe95e389918
31,263
py
Python
applications/init/controllers/default.py
himelpdas/insightpcmh
3dfdf5aec7738ed3160491badcbf96b20fb10283
[ "BSD-3-Clause" ]
null
null
null
applications/init/controllers/default.py
himelpdas/insightpcmh
3dfdf5aec7738ed3160491badcbf96b20fb10283
[ "BSD-3-Clause" ]
null
null
null
applications/init/controllers/default.py
himelpdas/insightpcmh
3dfdf5aec7738ed3160491badcbf96b20fb10283
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # this file is released under public domain and you can use without limitations # ------------------------------------------------------------------------- # This is a sample controller # - index is the default action of any application # - user is required for authentication and authorization ...
45.308696
143
0.581486
3,672
31,263
4.738834
0.135349
0.017585
0.022527
0.011723
0.38538
0.29958
0.245158
0.210103
0.18384
0.16522
0
0.004398
0.29447
31,263
689
144
45.374456
0.784513
0.120814
0
0.190196
0
0.003922
0.176444
0.024452
0
0
0
0.002903
0.005882
0
null
null
0
0.007843
null
null
0.003922
0
0
0
null
0
0
0
0
0
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
563ba6e4672f710916b63d283194a3ba338b6e13
605
py
Python
setup.py
zachriggle/arm_now
62a6ea32407f97c6129d810af7da6a12162ba73f
[ "MIT" ]
3
2018-08-02T21:12:17.000Z
2019-09-16T12:37:07.000Z
setup.py
zachriggle/arm_now
62a6ea32407f97c6129d810af7da6a12162ba73f
[ "MIT" ]
null
null
null
setup.py
zachriggle/arm_now
62a6ea32407f97c6129d810af7da6a12162ba73f
[ "MIT" ]
2
2020-01-09T18:10:46.000Z
2022-01-18T19:06:52.000Z
from setuptools import setup, Extension setup(name='arm_now', version='1.2', author='@chaign_c', url='https://github.com/nongiach/arm_now', packages=['arm_now'], py_modules=['arm_now'], entry_points = { 'console_scripts': [ 'arm_now = arm_now:...
26.304348
72
0.452893
53
605
4.962264
0.773585
0.136882
0
0
0
0
0
0
0
0
0
0.010899
0.393388
605
22
73
27.5
0.705722
0
0
0.095238
0
0
0.287603
0
0
0
0
0
0
1
0
true
0
0.047619
0
0.047619
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
56423cd4c21ed76ea69621b3620013d136b5be98
4,876
py
Python
Temp/ProductManager.py
bregydoc/Laigo
f0c843bd648cf591e33574c441aee9fbbb8682ea
[ "MIT" ]
null
null
null
Temp/ProductManager.py
bregydoc/Laigo
f0c843bd648cf591e33574c441aee9fbbb8682ea
[ "MIT" ]
null
null
null
Temp/ProductManager.py
bregydoc/Laigo
f0c843bd648cf591e33574c441aee9fbbb8682ea
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import requests from bs4 import BeautifulSoup def getHotProducts(url): if "adafruit" in url: r = requests.get(url) featuredProducts = [] if r.status_code == 200: body = r.text bPage = BeautifulSoup(body, "html.parser", f...
66.794521
352
0.553527
569
4,876
4.680141
0.219684
0.171235
0.045062
0.06196
0.645888
0.590687
0.545625
0.545625
0.464514
0.464514
0
0.045299
0.221288
4,876
73
353
66.794521
0.656044
0.020304
0
0.344828
0
0.034483
0.211144
0.01173
0
0
0
0
0
0
null
null
0
0.051724
null
null
0.017241
0
0
0
null
0
0
0
0
0
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
5643917f5c9c7a15f272cc44625b2354347918f3
536
py
Python
app/auth.py
geudrik/hautomation
0baae29e85cd68658a0f8578de2e36e42945053f
[ "MIT" ]
null
null
null
app/auth.py
geudrik/hautomation
0baae29e85cd68658a0f8578de2e36e42945053f
[ "MIT" ]
null
null
null
app/auth.py
geudrik/hautomation
0baae29e85cd68658a0f8578de2e36e42945053f
[ "MIT" ]
null
null
null
#! /usr/bin/env python2.7 # -*- coding: latin-1 -*- from database import User from database import ApiKey from flask_principal import Permission from flask_principal import RoleNeed admin_permission = Permission(RoleNeed('admin')) def map_api_key_to_user(key): """ Take an input of an API key and return a Use...
21.44
58
0.686567
80
536
4.4875
0.5
0.050139
0.100279
0.133705
0
0
0
0
0
0
0
0.007212
0.223881
536
24
59
22.333333
0.855769
0.285448
0
0
0
0
0.013699
0
0
0
0
0
0
1
0.083333
false
0
0.333333
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
564798546d70fb989e7e5fe9ad82aeed6358914e
1,173
py
Python
list_gh_contributions/query.py
seanbreckenridge/list_gh_contributions
13091ecf3c1e34d650ec5449ca693890af41fc3d
[ "MIT" ]
2
2021-01-17T10:07:41.000Z
2021-04-24T22:44:56.000Z
list_gh_contributions/query.py
seanbreckenridge/list_gh_contributions
13091ecf3c1e34d650ec5449ca693890af41fc3d
[ "MIT" ]
3
2021-01-17T05:34:40.000Z
2021-03-04T08:24:30.000Z
list_gh_contributions/query.py
seanbreckenridge/list_gh_contributions
13091ecf3c1e34d650ec5449ca693890af41fc3d
[ "MIT" ]
null
null
null
""" Queries in this module have a shared 'after' query, which lets Graphql paginate """ from gql import gql # type: ignore[import] query_contributed_to: gql = gql( r"""query ($after: String) { viewer { repositoriesContributedTo(first: 100, after: $after, contributionTypes: [COMMIT, ISSUE, PULL_REQUEST, RE...
16.521127
120
0.495311
90
1,173
6.4
0.577778
0.020833
0.024306
0.041667
0.496528
0.496528
0.496528
0.395833
0.395833
0.395833
0
0.008824
0.42029
1,173
70
121
16.757143
0.838235
0.086104
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.142857
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
564e9d2f5c1a74be0f81910150ed2deb006e658d
2,525
py
Python
vnprovinces/migrations/0002_add_provinces.py
dduong42/django-vnprovinces
06eb5522d75e882eaf3dc911ba658cd2b354a8e4
[ "MIT" ]
null
null
null
vnprovinces/migrations/0002_add_provinces.py
dduong42/django-vnprovinces
06eb5522d75e882eaf3dc911ba658cd2b354a8e4
[ "MIT" ]
null
null
null
vnprovinces/migrations/0002_add_provinces.py
dduong42/django-vnprovinces
06eb5522d75e882eaf3dc911ba658cd2b354a8e4
[ "MIT" ]
null
null
null
# Generated by Django 2.1.4 on 2019-02-21 03:11 from django.db import migrations provinces = ( ('Hà Nội', 'Thành Phố'), ('Hà Giang', 'Tỉnh'), ('Cao Bằng', 'Tỉnh'), ('Bắc Kạn', 'Tỉnh'), ('Tuyên Quang', 'Tỉnh'), ('Lào Cai', 'Tỉnh'), ('Điện Biên', 'Tỉnh'), ('Lai Châu', 'Tỉnh'), ('Sơn ...
26.302083
78
0.521188
300
2,525
4.333333
0.45
0.041538
0.021538
0.030769
0.218462
0.143077
0.143077
0.143077
0.143077
0.143077
0
0.009922
0.241584
2,525
95
79
26.578947
0.66893
0.017822
0
0.047059
1
0
0.354318
0
0
0
0
0
0
1
0.023529
false
0
0.011765
0
0.070588
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
56515a1fa5265b9401ddb7b285541574d7aa9756
804
py
Python
ML/TensorFlow/Basics/tutorial17-tensorboard/5_tb_graph.py
xuyannus/Machine-Learning-Collection
6d5dcd18d4e40f90e77355d56a2902e4c617ecbe
[ "MIT" ]
3,094
2020-09-20T04:34:31.000Z
2022-03-31T23:59:46.000Z
ML/TensorFlow/Basics/tutorial17-tensorboard/5_tb_graph.py
xkhainguyen/Machine-Learning-Collection
425d196e9477dbdbbd7cc0d19d29297571746ab5
[ "MIT" ]
79
2020-09-24T08:54:17.000Z
2022-03-30T14:45:08.000Z
ML/TensorFlow/Basics/tutorial17-tensorboard/5_tb_graph.py
xkhainguyen/Machine-Learning-Collection
425d196e9477dbdbbd7cc0d19d29297571746ab5
[ "MIT" ]
1,529
2020-09-20T16:21:21.000Z
2022-03-31T21:16:25.000Z
import os os.environ["TF_CPP_MIN_LOG_LEVEL"] = "2" import io import tensorflow as tf import matplotlib.pyplot as plt import numpy as np import tensorflow_datasets as tfds from tensorflow import keras from tensorflow.keras import layers # Make sure we don't get any GPU errors physical_devices = tf.config.list_physic...
22.333333
74
0.746269
133
804
4.345865
0.533835
0.077855
0.041522
0.027682
0.058824
0
0
0
0
0
0
0.010043
0.133085
804
35
75
22.971429
0.819225
0.04602
0
0
0
0
0.090196
0
0
0
0
0
0
1
0.043478
false
0
0.347826
0.043478
0.434783
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
565e96a6d98c5992001beec0122786d45a48e5c3
955
py
Python
setup.py
BlaXpirit/flask-simplesqla
26ef7644f64839733475dbf227d4ec720b108306
[ "BSD-3-Clause" ]
null
null
null
setup.py
BlaXpirit/flask-simplesqla
26ef7644f64839733475dbf227d4ec720b108306
[ "BSD-3-Clause" ]
null
null
null
setup.py
BlaXpirit/flask-simplesqla
26ef7644f64839733475dbf227d4ec720b108306
[ "BSD-3-Clause" ]
null
null
null
from distutils.core import setup setup( name='Flask-SimpleSQLA', version='1.0', url='http://github.com/blaxpirit/flask-simplesqla', license='BSD', author="Oleh Prypin", author_email='blaxpirit@gmail.com', description="Extension providing basic support of SQLAlchemy in Flask applications", ...
31.833333
88
0.623037
92
955
6.380435
0.717391
0.076661
0.127768
0
0
0
0
0
0
0
0
0.008264
0.239791
955
29
89
32.931034
0.800275
0
0
0.071429
0
0
0.570681
0
0
0
0
0
0
1
0
true
0
0.035714
0
0.035714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
5660372ec7b8f27123eb6cd1329246a86aba84f8
7,879
py
Python
Day20/Day20.py
EllAchE/aoc2020LastPlace
ad3650b3909b1231c9c931b7d85ce842d30e3d15
[ "MIT" ]
1
2021-12-04T01:06:18.000Z
2021-12-04T01:06:18.000Z
Day20/Day20.py
logan-credera/aoc2020LastPlace
ad3650b3909b1231c9c931b7d85ce842d30e3d15
[ "MIT" ]
null
null
null
Day20/Day20.py
logan-credera/aoc2020LastPlace
ad3650b3909b1231c9c931b7d85ce842d30e3d15
[ "MIT" ]
null
null
null
# --- Day 20: Jurassic Jigsaw --- # The high-speed train leaves the forest and quickly carries you south. You can even see a desert in the distance! # Since you have some spare time, you might as well see if there was anything interesting in the image the Mythical # Information Bureau satellite captured. # # After deco...
24.468944
126
0.486864
929
7,879
3.950484
0.262648
0.027793
0.020981
0.010899
0.20218
0.149864
0.140599
0.108447
0.053951
0.053951
0
0.019994
0.212844
7,879
321
127
24.545171
0.571751
0.427085
0
0.3125
0
0
0.005811
0
0
0
0
0
0
0
null
null
0
0.008929
null
null
0.035714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
5667c67a21bb9a3e1bab52388c65b4ea9c28eb56
364
py
Python
crawler/1_read_and_compact.py
carpedm20/critic-of-critics
3695c1c038af08fe2ea7c2e64b05e75759d6777e
[ "BSD-3-Clause" ]
null
null
null
crawler/1_read_and_compact.py
carpedm20/critic-of-critics
3695c1c038af08fe2ea7c2e64b05e75759d6777e
[ "BSD-3-Clause" ]
null
null
null
crawler/1_read_and_compact.py
carpedm20/critic-of-critics
3695c1c038af08fe2ea7c2e64b05e75759d6777e
[ "BSD-3-Clause" ]
null
null
null
import json from glob import glob data = [] for fname in ['critic-0.jsonlines']+glob('*new*.jsonlines'): print fname with open(fname) as f: for line in f: data.append(json.loads(line)) new_data = [] for i in data: if i['imdb_mid'] != -1: new_data.append(i) with open('compact....
19.157895
60
0.598901
59
364
3.627119
0.474576
0.098131
0
0
0
0
0
0
0
0
0
0.007299
0.247253
364
18
61
20.222222
0.773723
0
0
0
0
0
0.148352
0
0
0
0
0
0
0
null
null
0
0.142857
null
null
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
566dacd3762055b1031b88c7abeee1f2fb17e4a3
1,878
py
Python
examples/geneexpr_3tube.py
ayush9pandey/txtlsim-python
d788aab4540f3b43e570047f650ea08d206ecdb2
[ "BSD-3-Clause" ]
4
2018-02-11T07:58:10.000Z
2020-02-03T19:51:29.000Z
examples/geneexpr_3tube.py
ayush9pandey/txtlsim-python
d788aab4540f3b43e570047f650ea08d206ecdb2
[ "BSD-3-Clause" ]
32
2018-08-13T15:42:45.000Z
2019-08-15T00:30:55.000Z
examples/geneexpr_3tube.py
ayush9pandey/txtlsim-python
d788aab4540f3b43e570047f650ea08d206ecdb2
[ "BSD-3-Clause" ]
4
2018-04-30T19:50:45.000Z
2018-08-28T16:10:49.000Z
# geneexpr.py - simple gene expression example # Richard M. Murray, 11 Aug 2018 # # This example shows how to use the txtl library to create a model for # a simple gene expression construct. This model is constructed to # demonstrate the ability to mimic the MATLAB TX-TL modeling toolbox # approach as well as a few si...
32.947368
77
0.755059
286
1,878
4.912587
0.548951
0.027758
0.02847
0.021352
0
0
0
0
0
0
0
0.028625
0.144302
1,878
56
78
33.535714
0.845675
0.525559
0
0
0
0
0.146991
0
0
0
0
0.017857
0
1
0
false
0
0.111111
0
0.111111
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
1
0
0
0
0
0
0
0
0
0
0
1
56707ce7ef82994c6105b84839758860eff4cf9f
11,991
py
Python
gcn/lib/databases/annotate_clinvar_vcf.py
kalon33/divine
2db92c093d98722f011224140e652c162a4f4336
[ "Intel" ]
11
2018-11-09T15:47:14.000Z
2021-08-18T18:05:11.000Z
gcn/lib/databases/annotate_clinvar_vcf.py
kalon33/divine
2db92c093d98722f011224140e652c162a4f4336
[ "Intel" ]
5
2018-08-31T15:07:20.000Z
2020-03-30T18:52:04.000Z
gcn/lib/databases/annotate_clinvar_vcf.py
kalon33/divine
2db92c093d98722f011224140e652c162a4f4336
[ "Intel" ]
1
2019-04-18T13:42:30.000Z
2019-04-18T13:42:30.000Z
# # COPYRIGHT (C) 2002-2011 Rajgopal Srinivasan and modified by changjin.hong@gmail.com # """ .. module:: preprocess_clinvar :platform: Unix, Windows, MacOSX :synopsis: Transparent opening of compressed and uncompressed files .. moduleauthor:: ; changjin.hong@gmail.com """ import os, dill, re, argparse from gcn.li...
32.584239
164
0.68835
1,819
11,991
4.313359
0.183068
0.029952
0.06959
0.069335
0.431175
0.416136
0.37637
0.367958
0.338389
0.329212
0
0.009602
0.166208
11,991
368
165
32.584239
0.775155
0.098908
0
0.396
0
0.008
0.141465
0.009548
0
0
0
0.002717
0
0
null
null
0
0.036
null
null
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
1
0
0
0
0
0
0
0
0
1
56740050a83aa6e9a33739148e341b329b34dce8
1,412
py
Python
uploadhandler/uploadhandler.py
Kendubu1/tornado-file-upload
18933347e75179725018f06f784672b85c058e7e
[ "Apache-2.0" ]
8
2016-12-03T09:36:46.000Z
2019-04-18T00:16:45.000Z
uploadhandler/uploadhandler.py
Kendubu1/tornado-file-upload
18933347e75179725018f06f784672b85c058e7e
[ "Apache-2.0" ]
null
null
null
uploadhandler/uploadhandler.py
Kendubu1/tornado-file-upload
18933347e75179725018f06f784672b85c058e7e
[ "Apache-2.0" ]
3
2016-12-17T16:34:27.000Z
2021-09-03T16:05:51.000Z
# Handles file uploads in Python Tornado: http://tornadoweb.org/ import tornado.web import logging import os import uuid def uuid_naming_strategy(original_name): "File naming strategy that ignores original name and returns an UUID" return str(uuid.uuid4()) class UploadHandler(tornado.web.RequestHandler): ...
32.837209
75
0.63102
169
1,412
5.153846
0.426036
0.208955
0.04822
0
0
0
0
0
0
0
0
0.001959
0.276912
1,412
42
76
33.619048
0.851126
0.257082
0
0
0
0
0.165138
0
0
0
0
0
0
1
0.115385
false
0
0.153846
0
0.346154
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
567a8d53d6704bf2e4cecf0cfc3ed0d482c3d55a
71,934
py
Python
ohsomeTools/gui/OhsomeToolsDialogUI.py
GIScience/ohsome-qgis-plugin
acd4811e9e36ed35e3fe62c063b5c990a8b795f9
[ "MIT" ]
3
2021-06-28T09:45:58.000Z
2021-09-13T02:16:50.000Z
ohsomeTools/gui/OhsomeToolsDialogUI.py
GIScience/ohsome-qgis-plugin
acd4811e9e36ed35e3fe62c063b5c990a8b795f9
[ "MIT" ]
29
2021-06-22T08:58:37.000Z
2022-02-13T21:35:02.000Z
ohsomeTools/gui/OhsomeToolsDialogUI.py
GIScience/ohsome-qgis-plugin
acd4811e9e36ed35e3fe62c063b5c990a8b795f9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'OhsomeToolsDialogUI.ui' # # Created by: PyQt5 UI code generator 5.15.4 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import ...
50.622097
587
0.681375
7,394
71,934
6.410603
0.070733
0.050633
0.016245
0.032911
0.656308
0.523565
0.41192
0.338143
0.290464
0.272426
0
0.018165
0.220146
71,934
1,420
588
50.657746
0.82675
0.003948
0
0.244302
1
0.026353
0.174548
0.070517
0
0
0
0
0
1
0.001425
false
0
0.002137
0
0.004274
0.000712
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
5682d231d05f403a7946e9e6799b2532460eca4a
928
py
Python
src/probnum/filtsmooth/statespace/discrete/discretemodel.py
admdev8/probnum
792b6299bac247cf8b1b5056756f0f078855d83a
[ "MIT" ]
null
null
null
src/probnum/filtsmooth/statespace/discrete/discretemodel.py
admdev8/probnum
792b6299bac247cf8b1b5056756f0f078855d83a
[ "MIT" ]
2
2020-12-28T19:37:16.000Z
2020-12-28T19:37:31.000Z
src/probnum/filtsmooth/statespace/discrete/discretemodel.py
admdev8/probnum
792b6299bac247cf8b1b5056756f0f078855d83a
[ "MIT" ]
null
null
null
import abc from probnum.filtsmooth.statespace.transition import Transition __all__ = ["DiscreteModel"] class DiscreteModel(Transition): """ Transition models for discretely indexed processes. Transformations of the form .. math:: x_{t + \\Delta t} \\sim p(x_{t + \\Delta t} | x_t) . As such, ...
24.421053
73
0.685345
95
928
6.6
0.547368
0.009569
0.095694
0.025518
0.248804
0
0
0
0
0
0
0
0.221983
928
37
74
25.081081
0.868421
0.419181
0
0.428571
0
0
0.02686
0
0
0
0
0
0
1
0.214286
false
0
0.142857
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
5685b5cef5145d202704edd6bc702b0eefad35b5
7,977
py
Python
cpp/cpp_e.py
3r1ck10/cpp
2b3d076b48fcce9682d94ebcdcd0ee990cc6dded
[ "MIT" ]
null
null
null
cpp/cpp_e.py
3r1ck10/cpp
2b3d076b48fcce9682d94ebcdcd0ee990cc6dded
[ "MIT" ]
null
null
null
cpp/cpp_e.py
3r1ck10/cpp
2b3d076b48fcce9682d94ebcdcd0ee990cc6dded
[ "MIT" ]
null
null
null
import xarray as xray import numpy as np import pandas as pd from .ploteos import correct_mon from .ploteos_e import correct_e class cpp_e(object): def __init__(self,datos): self.data=datos def day_scaling(self,acu=False,f_cal=None,f_apl=None): #APLICAR SCALING DIARIO---------------------------...
52.137255
124
0.519368
1,056
7,977
3.751894
0.13447
0.060575
0.033317
0.038364
0.760979
0.731701
0.668602
0.653205
0.58102
0.514387
0
0.026887
0.323931
7,977
152
125
52.480263
0.707769
0.039112
0
0.5625
0
0
0.067372
0
0
0
0
0
0
1
0.020833
false
0.013889
0.034722
0
0.076389
0.041667
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
568f011991a22235f2ada3f55574b76cc47e5636
1,520
py
Python
resource/choices.py
dataiku/dss-plugin-kayrros
580ee752885f8f19883b81ea921df290c65b925a
[ "Apache-2.0" ]
1
2021-09-23T03:05:59.000Z
2021-09-23T03:05:59.000Z
resource/choices.py
dataiku/dss-plugin-kayrros
580ee752885f8f19883b81ea921df290c65b925a
[ "Apache-2.0" ]
2
2021-09-22T10:07:58.000Z
2021-11-08T08:30:23.000Z
resource/choices.py
dataiku/dss-plugin-kayrros
580ee752885f8f19883b81ea921df290c65b925a
[ "Apache-2.0" ]
null
null
null
import requests import logging from utils.authentification import get_headers logger = logging.getLogger(__name__) def do(payload, config, plugin_config, inputs): username = config.get("username", "") password = config.get("password", "") if payload.get('parameterName') == "collection_id": # ...
28.148148
100
0.614474
160
1,520
5.725
0.38125
0.061135
0.052402
0.054585
0.508734
0.462882
0.462882
0.377729
0.272926
0.272926
0
0.00708
0.256579
1,520
53
101
28.679245
0.80354
0.033553
0
0.333333
0
0
0.223891
0
0
0
0
0
0
1
0.033333
false
0.1
0.1
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
5690fed945f481b368f8606599bd5667fec6dd62
185
py
Python
01_evaluation_101/solutions/solution_09.py
jparrax/datascience_middle_course
347dfd6f68fa0f90eac35e8154f3ea469ccbdea2
[ "CC0-1.0" ]
2
2021-11-10T10:13:25.000Z
2022-01-12T08:11:59.000Z
01_evaluation_101/solutions/solution_09.py
jparrax/datascience_middle_course
347dfd6f68fa0f90eac35e8154f3ea469ccbdea2
[ "CC0-1.0" ]
2
2022-01-11T19:45:49.000Z
2022-01-11T20:36:03.000Z
01_evaluation_101/solutions/solution_09.py
jparrax/datascience_middle_course
347dfd6f68fa0f90eac35e8154f3ea469ccbdea2
[ "CC0-1.0" ]
1
2022-01-12T08:12:11.000Z
2022-01-12T08:12:11.000Z
ax = data.plot.scatter(x=data.columns[0], y=data.columns[1]) ax.plot(X["Flipper Length (mm)"], y_pred, color="black", linewidth=4) _ = ax.set_title("Can I predict penguins' body mass")
46.25
69
0.702703
33
185
3.848485
0.757576
0.173228
0
0
0
0
0
0
0
0
0
0.017964
0.097297
185
3
70
61.666667
0.742515
0
0
0
0
0
0.308108
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
569a865fd03cc8fb9438faa2823978a4952d4968
3,504
py
Python
test_symnet_gczsl.py
Zoya-Hashmi/SymNet_copy
b306ca9ddc5b3e26c7ef05aa1f020d7f4e8313a9
[ "Apache-2.0" ]
null
null
null
test_symnet_gczsl.py
Zoya-Hashmi/SymNet_copy
b306ca9ddc5b3e26c7ef05aa1f020d7f4e8313a9
[ "Apache-2.0" ]
null
null
null
test_symnet_gczsl.py
Zoya-Hashmi/SymNet_copy
b306ca9ddc5b3e26c7ef05aa1f020d7f4e8313a9
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function from utils.base_solver import BaseSolver import os, logging, importlib, re, copy, random, tqdm, argparse import os.path as osp import cPickle as pickle from pprint import pprint from datetime import datetime ...
29.948718
124
0.66895
433
3,504
5.152425
0.344111
0.037651
0.028687
0.059166
0.083371
0.061856
0.044823
0.044823
0.044823
0
0
0.00502
0.204053
3,504
116
125
30.206897
0.794909
0.109304
0
0
0
0
0.038371
0.007405
0
0
0
0
0
1
0.063492
false
0
0.31746
0
0.412698
0.031746
0
0
0
null
0
0
0
0
0
0
0
0
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
56a76dadea90c2fbb35f8500b4065a9f37d7b50f
713
py
Python
formatcode/base/utils.py
peredryaga/excel-number-format
490f91920322d1fcf6698f6ba9923565a13ba1d4
[ "MIT" ]
null
null
null
formatcode/base/utils.py
peredryaga/excel-number-format
490f91920322d1fcf6698f6ba9923565a13ba1d4
[ "MIT" ]
null
null
null
formatcode/base/utils.py
peredryaga/excel-number-format
490f91920322d1fcf6698f6ba9923565a13ba1d4
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import division, print_function, unicode_literals from abc import ABCMeta class Singleton(ABCMeta): _instances = {} def __call__(cls, *args, **kwargs): if cls not in cls._instances: cls._instances[cls] = super(Singleton, cls).__call__(*args, **kwargs) ...
22.28125
81
0.653576
85
713
5.058824
0.564706
0.074419
0.104651
0
0
0
0
0
0
0
0
0.001855
0.244039
713
31
82
23
0.795918
0.018233
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.1
0
0.65
0.05
0
0
0
null
0
0
0
0
0
0
0
0
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
56a7cb8d0a515d0d03e5c9639c22d946905c0f63
715
py
Python
exercises/knowledge_model.py
dana19-meet/y2s18-databases
f09ea9fe0f23449aba018d3330a5dc51c24930f8
[ "MIT" ]
null
null
null
exercises/knowledge_model.py
dana19-meet/y2s18-databases
f09ea9fe0f23449aba018d3330a5dc51c24930f8
[ "MIT" ]
null
null
null
exercises/knowledge_model.py
dana19-meet/y2s18-databases
f09ea9fe0f23449aba018d3330a5dc51c24930f8
[ "MIT" ]
null
null
null
from sqlalchemy import Column, Integer, String, Boolean from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import relationship, sessionmaker from sqlalchemy import create_engine Base = declarative_base() class Knowledge(Base): __tablename__='know' IDnumber=Column(Integer,primary_key=True) ...
27.5
67
0.752448
97
715
5.381443
0.597938
0.10728
0.076628
0
0
0
0
0
0
0
0
0.009724
0.137063
715
25
68
28.6
0.836305
0.032168
0
0
0
0
0.218023
0
0
0
0
0
0
1
0.052632
false
0
0.210526
0.052632
0.578947
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
56a7f7164acbc9e276761cd5fcdf3c19afa81699
404
py
Python
examples/type/str_ipv4_data.py
junpuf/serial-j
e01f9c0af39ee5ddba1fb35d042c99cbfa02641d
[ "MIT" ]
1
2019-08-30T18:14:45.000Z
2019-08-30T18:14:45.000Z
examples/type/str_ipv4_data.py
junpuf/serial-j
e01f9c0af39ee5ddba1fb35d042c99cbfa02641d
[ "MIT" ]
5
2019-07-17T01:27:20.000Z
2019-08-29T14:13:58.000Z
examples/type/str_ipv4_data.py
JunpuFan/serial-j
e01f9c0af39ee5ddba1fb35d042c99cbfa02641d
[ "MIT" ]
null
null
null
from serial_j import SerialJ class StrIPv4Data(SerialJ): schema = [ {'name': 'prop1', 'type': (str, 'ipv4')} ] valid_data = StrIPv4Data({'prop1': '172.16.255.1'}) print(valid_data) # >>> {"prop1": "172.16.255.1"} invalid_data = StrIPv4Data({'prop1': '172.16.256.1'}) # >>> ValueError: Property: 'pro...
25.25
115
0.618812
55
404
4.472727
0.527273
0.081301
0.121951
0.186992
0.276423
0
0
0
0
0
0
0.135693
0.160891
404
15
116
26.933333
0.589971
0.35396
0
0
0
0
0.197674
0
0
0
0
0
0
1
0
false
0
0.125
0
0.375
0.125
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
3b1818292a74a7d0a408bdab02e5f3c26aa5c07c
1,431
py
Python
squidward/tools/download_logs_sftp.py
wirrja/squidward
72945f6898f567e577aa74680b2a518b8e9a2b59
[ "Apache-2.0" ]
null
null
null
squidward/tools/download_logs_sftp.py
wirrja/squidward
72945f6898f567e577aa74680b2a518b8e9a2b59
[ "Apache-2.0" ]
null
null
null
squidward/tools/download_logs_sftp.py
wirrja/squidward
72945f6898f567e577aa74680b2a518b8e9a2b59
[ "Apache-2.0" ]
null
null
null
import paramiko from django.conf import settings remotepath = settings.SQUID_LOGDIR_REMOTE remotepath_messages = settings.PPTP_LOGDIR_REMOTE username = settings.SQUID_USERNAME password = settings.SQUID_PASSWORD # local path for both log types and programs localpath = settings.SQUID_LOGDIR log_filename = s...
28.62
91
0.639413
161
1,431
5.534161
0.372671
0.058361
0.042649
0.051627
0.433221
0.433221
0.433221
0.433221
0.433221
0.433221
0
0.008621
0.27044
1,431
50
92
28.62
0.844828
0.074773
0
0.4
0
0
0.027049
0
0
0
0
0
0
1
0.033333
false
0.066667
0.066667
0
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
1
0
0
0
0
0
1
3b1feff132bdd5118a48fe91a841752101d30350
2,930
py
Python
bot.py
ktrieu/idea-bot
ad02dc21d320b73027e09d4d123df8e6ee139f7c
[ "MIT" ]
null
null
null
bot.py
ktrieu/idea-bot
ad02dc21d320b73027e09d4d123df8e6ee139f7c
[ "MIT" ]
null
null
null
bot.py
ktrieu/idea-bot
ad02dc21d320b73027e09d4d123df8e6ee139f7c
[ "MIT" ]
null
null
null
from dotenv import load_dotenv import os import discord from generator import ( GeneratorProcess, GenerateRequest, StopRequest, ResponseType, ) from multiprocessing import Pipe import util import asyncio load_dotenv() ALLOWED_CHANNELS = {"secret-channel-name", "beyond-ideas"} TEST_SERVER_ID = 74822840...
29.897959
92
0.617747
319
2,930
5.451411
0.376176
0.028752
0.024152
0.025877
0
0
0
0
0
0
0
0.018651
0.286348
2,930
97
93
30.206186
0.813008
0
0
0.050633
1
0
0.127304
0.008191
0
0
0
0
0
1
0.037975
false
0
0.088608
0.012658
0.177215
0.037975
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
3b21bc3e72739e8aa2087fd962b62ceaa0418fc1
7,090
py
Python
jerml/transformers.py
jmann277/jers_ml_tools
faaaa202b1f5406ff47821474bd8eb14bce22f77
[ "MIT" ]
null
null
null
jerml/transformers.py
jmann277/jers_ml_tools
faaaa202b1f5406ff47821474bd8eb14bce22f77
[ "MIT" ]
3
2021-06-08T22:12:54.000Z
2022-01-13T03:09:06.000Z
jerml/transformers.py
jmann277/jers_ml_tools
faaaa202b1f5406ff47821474bd8eb14bce22f77
[ "MIT" ]
null
null
null
''' This module contains a medley of sklearn transformers which can be integrated into a pipeline. ''' import numpy as np from sklearn.base import BaseEstimator, TransformerMixin from sklearn.decomposition import PCA from scipy.stats import kstat from homcv import betti_numbers class CumulantsExtractor(BaseEstimator...
30.560345
89
0.596474
860
7,090
4.759302
0.251163
0.031273
0.028585
0.019546
0.227706
0.207672
0.167603
0.129001
0.09504
0.09504
0
0.008098
0.320733
7,090
231
90
30.692641
0.841777
0.464457
0
0.191781
0
0
0.032697
0
0
0
0
0
0.041096
1
0.205479
false
0.013699
0.068493
0
0.479452
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
3b26b3c9eed01d7a7107dd173072da3799bc96a8
417
py
Python
catkin_ws/bbinstance/src/bbinstance/robotInstance2.py
fontysrobotics/Blackboard_based_distributed_fleet_manager
a6b44738fe67f4948a69f8d45da58d981c6724e0
[ "BSD-3-Clause" ]
null
null
null
catkin_ws/bbinstance/src/bbinstance/robotInstance2.py
fontysrobotics/Blackboard_based_distributed_fleet_manager
a6b44738fe67f4948a69f8d45da58d981c6724e0
[ "BSD-3-Clause" ]
null
null
null
catkin_ws/bbinstance/src/bbinstance/robotInstance2.py
fontysrobotics/Blackboard_based_distributed_fleet_manager
a6b44738fe67f4948a69f8d45da58d981c6724e0
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python #need to point to classes inorder to import import rospy from blackboard.Robot import Robot from blackboard.RosCommunication import Talker from rosnode import rosnode_ping from blackboard.Blackboard import Blackboard from blackboard.Battery import Battery bat = Battery(100,500,100) talker = Talk...
24.529412
68
0.786571
63
417
5.190476
0.460317
0.171254
0.018349
0
0
0
0
0
0
0
0
0.056604
0.110312
417
16
69
26.0625
0.824798
0.148681
0
0
0
0
0.07932
0
0
0
0
0
0
1
0
false
0
0.6
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
3b2fc312f99460590373adcc92790f19e8fa24fd
2,149
py
Python
posts/migrations/0001_initial.py
yashgo0018/django_blog
c742e632c8657582952fe27589fd8a704c9ebfbf
[ "MIT" ]
null
null
null
posts/migrations/0001_initial.py
yashgo0018/django_blog
c742e632c8657582952fe27589fd8a704c9ebfbf
[ "MIT" ]
null
null
null
posts/migrations/0001_initial.py
yashgo0018/django_blog
c742e632c8657582952fe27589fd8a704c9ebfbf
[ "MIT" ]
null
null
null
# Generated by Django 2.1.7 on 2019-03-24 05:27 import ckeditor_uploader.fields from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('categories', '0001_initial'), m...
38.375
120
0.579805
206
2,149
5.883495
0.412621
0.054455
0.046205
0.072607
0.365512
0.365512
0.311056
0.311056
0.311056
0.311056
0
0.01437
0.287576
2,149
55
121
39.072727
0.77727
0.02094
0
0.3125
1
0
0.116556
0
0
0
0
0
0
1
0
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3b35fe45e80f54b97695c26773ce24d2dd23c8ca
519
py
Python
convert_shu_json.py
ksiomelo/cubix
cd9e6dda6696b302a7c0d383259a9d60b15b0d55
[ "Apache-2.0" ]
3
2015-09-07T00:16:16.000Z
2019-01-11T20:27:56.000Z
convert_shu_json.py
ksiomelo/cubix
cd9e6dda6696b302a7c0d383259a9d60b15b0d55
[ "Apache-2.0" ]
null
null
null
convert_shu_json.py
ksiomelo/cubix
cd9e6dda6696b302a7c0d383259a9d60b15b0d55
[ "Apache-2.0" ]
null
null
null
import os import json from pprint import pprint def convert(inputfile,outputfile): json_data=open(inputfile) data = json.load(json_data) #pprint(data) json_data.close() # copy to file f = open(outputfile, 'w') for line in data: f.write(line +'\n') f.close() ...
22.565217
110
0.622351
66
519
4.727273
0.590909
0.076923
0.153846
0.237179
0
0
0
0
0
0
0
0.007426
0.22158
519
23
110
22.565217
0.764851
0.148362
0
0
0
0
0.231818
0.206818
0
0
0
0
0
1
0.076923
false
0
0.230769
0
0.307692
0.076923
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
3b38ef2961c998d8a6b7e0cf700fee710c14fe96
4,245
py
Python
part2_streaming/ingestion/load_data.py
jkielbaey/coursera-cloud-computing-capstone
616ac5e9a58140e104b65162ca5073d507792e46
[ "MIT" ]
3
2019-12-26T15:17:54.000Z
2022-03-23T09:54:02.000Z
part2_streaming/ingestion/load_data.py
jkielbaey/coursera-cloud-computing-capstone
616ac5e9a58140e104b65162ca5073d507792e46
[ "MIT" ]
null
null
null
part2_streaming/ingestion/load_data.py
jkielbaey/coursera-cloud-computing-capstone
616ac5e9a58140e104b65162ca5073d507792e46
[ "MIT" ]
2
2019-10-04T08:28:35.000Z
2020-06-27T18:49:45.000Z
#!/usr/bin/env python3 import boto3 import csv import json import re import os import logging from multiprocessing import Pool import sys sys.path.insert(0, './lib') from kafka import KafkaProducer lambda_client = boto3.client('lambda') bucket_name = None kafka_topic = None logging.basicConfig(format='%(levelname)s...
30.321429
75
0.619552
536
4,245
4.751866
0.26306
0.05104
0.02552
0.020024
0.22183
0.184138
0.169611
0.136631
0.109933
0.047899
0
0.01261
0.252768
4,245
139
76
30.539568
0.790353
0.004947
0
0.215517
0
0
0.192044
0.022496
0
0
0
0
0
0
null
null
0
0.077586
null
null
0.025862
0
0
0
null
0
0
0
0
0
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
3b4829ba1c98a7bf3d58887a33bd74f5459ae8e5
457
py
Python
tvempresa/src/apps/web/urls.py
ddvloayza/str3am-app
89c844cf8cfcc3c40e696db0feedfd1b21682989
[ "MIT" ]
null
null
null
tvempresa/src/apps/web/urls.py
ddvloayza/str3am-app
89c844cf8cfcc3c40e696db0feedfd1b21682989
[ "MIT" ]
null
null
null
tvempresa/src/apps/web/urls.py
ddvloayza/str3am-app
89c844cf8cfcc3c40e696db0feedfd1b21682989
[ "MIT" ]
null
null
null
from django.urls import path from django.conf.urls import url from .views import (home, capitulo_detalle, buscador, app, app_ios) from .api import CapitulosList, CapitulosDetail app_name = 'web' urlpatterns = [ url(r'^$', home, name='home'), url(r'^capitulo/(?P<slug>[-\w]+)/$', capitulo_detalle, name='capitulo_det...
26.882353
81
0.68709
67
457
4.58209
0.358209
0.065147
0.045603
0
0
0
0
0
0
0
0
0
0.113786
457
16
82
28.5625
0.758025
0
0
0
0
0
0.207877
0.061269
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
3b48b5c6b0beab4348ea4b329be5dc752fd9b9ac
992
py
Python
tests/pages/mobile/article.py
navgurukul-shivani18/kitsune
a7cf49ab1bfcf4e770938116968824b2b0fa5bb1
[ "BSD-3-Clause" ]
4
2021-05-17T11:38:08.000Z
2021-08-19T06:42:39.000Z
tests/pages/mobile/article.py
navgurukul-shivani18/kitsune
a7cf49ab1bfcf4e770938116968824b2b0fa5bb1
[ "BSD-3-Clause" ]
32
2021-04-15T22:35:58.000Z
2022-01-04T21:30:05.000Z
tests/pages/mobile/article.py
navgurukul-shivani18/kitsune
a7cf49ab1bfcf4e770938116968824b2b0fa5bb1
[ "BSD-3-Clause" ]
3
2020-06-14T06:59:46.000Z
2020-06-15T14:45:56.000Z
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from pages.mobile.b...
36.740741
84
0.745968
148
992
4.763514
0.486486
0.062411
0.07234
0.068085
0.192908
0.192908
0.096454
0.096454
0
0
0
0.004779
0.15625
992
26
85
38.153846
0.837515
0.193548
0
0
0
0
0.050251
0
0
0
0
0
0
1
0.2
false
0
0.2
0.066667
0.733333
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
3b4dd016a5a62e889caf8de8f14b9ed9c6e05dee
3,020
py
Python
src/main.py
Maffey/pomelo-discord-bot
22ea6d9547faf086c2eeb669a983fe3fffea0b29
[ "MIT" ]
3
2020-07-02T18:08:02.000Z
2021-12-11T11:08:18.000Z
src/main.py
Maffey/PomeloDiscordBot
7a79d2cfddc46821d216af715933d314c654812b
[ "MIT" ]
1
2022-02-23T21:41:16.000Z
2022-02-23T21:41:16.000Z
src/main.py
Maffey/pomelo-discord-bot
22ea6d9547faf086c2eeb669a983fe3fffea0b29
[ "MIT" ]
null
null
null
import logging import os import sys import traceback from itertools import cycle import discord from discord.ext import commands, tasks # Log information about bot operations. logging.basicConfig(level=logging.INFO) # Get Discord token from environmental variable. DISCORD_BOT_TOKEN = os.getenv("DISCORD_BOT_TOKEN") ...
32.473118
120
0.705629
412
3,020
5.036408
0.480583
0.034699
0.044337
0.039036
0.026024
0.026024
0
0
0
0
0
0.001234
0.195033
3,020
92
121
32.826087
0.852324
0.150993
0
0.092593
0
0.055556
0.31758
0.02341
0
0
0
0.01087
0
1
0
false
0
0.12963
0
0.12963
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
1
0
0
0
0
0
0
0
0
0
0
1
3b54a297ca4333bc469b722207d046594617f664
14,209
py
Python
explainer.py
bohemian-ai/POS-Tag-Humanizer
d95f347cfde36ae3565a7b1d9b7293bf2aa87f44
[ "MIT" ]
null
null
null
explainer.py
bohemian-ai/POS-Tag-Humanizer
d95f347cfde36ae3565a7b1d9b7293bf2aa87f44
[ "MIT" ]
null
null
null
explainer.py
bohemian-ai/POS-Tag-Humanizer
d95f347cfde36ae3565a7b1d9b7293bf2aa87f44
[ "MIT" ]
null
null
null
from termcolor import cprint, colored # Reference: https://ufal.mff.cuni.cz/pdt/Morphology_and_Tagging/Doc/hmptagqr.html # Morphodita online demo: http://lindat.mff.cuni.cz/services/morphodita/ categories = [ {'POS': 'Part of Speech'}, {'SUBPOS': 'Detailed Part of Speech'}, {'GENDER': 'Gender'}, {'NUM...
48.166102
243
0.589767
1,766
14,209
4.718007
0.32333
0.012242
0.005041
0.004801
0.114378
0.092655
0.085214
0.082213
0.082213
0.073092
0
0.008407
0.246534
14,209
294
244
48.329932
0.769849
0.021888
0
0.093117
0
0.08502
0.654539
0.022767
0
0
0
0
0
1
0.012146
false
0.008097
0.008097
0
0.024292
0.040486
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3b5c8b09c6cb6d3ec45d0c7c7a5e7ddb300c6483
749
py
Python
Number of Connected Components in an Undirected Graph.py
quake0day/oj
c09333d1738f8735de0d5d825db6f4b707585670
[ "MIT" ]
null
null
null
Number of Connected Components in an Undirected Graph.py
quake0day/oj
c09333d1738f8735de0d5d825db6f4b707585670
[ "MIT" ]
null
null
null
Number of Connected Components in an Undirected Graph.py
quake0day/oj
c09333d1738f8735de0d5d825db6f4b707585670
[ "MIT" ]
null
null
null
class Solution(object): def countComponents(self, n, edges): """ :type n: int :type edges: List[List[int]] :rtype: int """ id_ = [i for i in xrange(n)] start = 0 for edge in edges: i = self.root(id_, edge[0]) j = self.root...
23.40625
60
0.432577
107
749
2.915888
0.317757
0.076923
0.038462
0.076923
0.166667
0.166667
0.166667
0.166667
0
0
0
0.051111
0.399199
749
31
61
24.16129
0.642222
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0.095238
0
0
0
null
0
0
0
0
0
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
3b5ef9b26978b78dba17bd6822a33ab2c317e67a
2,421
py
Python
src/pylol_simulator/champion.py
ABostrom/pylol-simulator
1e47dd277a1c61782e6eb9a6edc4fd9512431dbe
[ "MIT" ]
1
2021-05-17T17:33:52.000Z
2021-05-17T17:33:52.000Z
src/pylol_simulator/champion.py
ABostrom/pylol-simulator
1e47dd277a1c61782e6eb9a6edc4fd9512431dbe
[ "MIT" ]
null
null
null
src/pylol_simulator/champion.py
ABostrom/pylol-simulator
1e47dd277a1c61782e6eb9a6edc4fd9512431dbe
[ "MIT" ]
1
2021-03-26T14:49:51.000Z
2021-03-26T14:49:51.000Z
from __future__ import annotations from typing import TYPE_CHECKING if TYPE_CHECKING: from typing import Any from .stats import Stats from functools import partial class Champion: def __init__(self, name, level=1, ad=0, ap=0,base_aspd=0, as_ratio=0, cs=0, csd=175, ar=0, mr=0, hp=0, ad_grow...
34.585714
112
0.64684
377
2,421
3.928382
0.267905
0.037812
0.018231
0.035111
0.036462
0
0
0
0
0
0
0.048219
0.246179
2,421
70
113
34.585714
0.763288
0.090458
0
0.045455
0
0
0.011834
0
0
0
0
0.014286
0
1
0.113636
false
0
0.136364
0.022727
0.340909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
3b5f690aac3be1062b2477233f74cd76f3202d48
2,816
py
Python
plugin.video.unified.search/search_db.py
mrstealth/kodi-isengard
2f37ba5320c1618fbe635f5683e7329a63195c16
[ "MIT" ]
null
null
null
plugin.video.unified.search/search_db.py
mrstealth/kodi-isengard
2f37ba5320c1618fbe635f5683e7329a63195c16
[ "MIT" ]
null
null
null
plugin.video.unified.search/search_db.py
mrstealth/kodi-isengard
2f37ba5320c1618fbe635f5683e7329a63195c16
[ "MIT" ]
null
null
null
#!/usr/bin/python # Writer (c) 2012, MrStealth # Rev. 1.1.1 # License: Attribution-NonCommercial-ShareAlike 3.0 Unported (CC BY-NC-SA 3.0) # -*- coding: utf-8 -*- import os import sqlite3 as sqlite import xbmcaddon __addon__ = xbmcaddon.Addon(id='plugin.video.unified.search') addon_path = __addon__.getAddonInfo('path...
32.744186
109
0.627486
371
2,816
4.663073
0.320755
0.031214
0.048555
0.032948
0.181503
0.114451
0.06474
0.06474
0.06474
0.06474
0
0.013276
0.251065
2,816
85
110
33.129412
0.807018
0.09304
0
0.169492
0
0
0.181068
0.010605
0
0
0
0
0
0
null
null
0.016949
0.050847
null
null
0.033898
0
0
0
null
0
0
0
0
0
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
3b70d07c097a322f4e0382c3338d3a649bb81b52
14,185
py
Python
itracker/pipeline/preprocess.py
djpetti/isl-gazecapture
de0d955d25640facc5d72099fa92a4391643b405
[ "MIT" ]
12
2018-04-14T11:27:52.000Z
2020-11-11T09:18:04.000Z
itracker/pipeline/preprocess.py
Misby/isl-gazecapture
de0d955d25640facc5d72099fa92a4391643b405
[ "MIT" ]
6
2018-11-10T22:07:16.000Z
2020-07-23T09:30:18.000Z
itracker/pipeline/preprocess.py
Misby/isl-gazecapture
de0d955d25640facc5d72099fa92a4391643b405
[ "MIT" ]
5
2018-11-10T21:04:43.000Z
2020-08-21T03:14:02.000Z
import collections import copy import tensorflow as tf class Pipeline(object): """ A linear sequence of stages that perform operations on an input. """ # Magic number that we use to differentiate pipeline instances. For our # purposes, if two references point to the same underlying object, they are # the sa...
30.439914
81
0.683609
2,091
14,185
4.431851
0.16308
0.036905
0.037768
0.025898
0.339916
0.295133
0.260171
0.243229
0.211719
0.189166
0
0.008343
0.231019
14,185
465
82
30.505376
0.841217
0.413042
0
0.305936
0
0
0.015954
0
0
0
0
0
0.004566
1
0.223744
false
0
0.013699
0.077626
0.488584
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
3b711e81bde81605c4cf014bb035a361cda07ea2
1,083
py
Python
backend/tests/python_api_mulltiuser_check/User.py
prisms-center/materialscommons.org
421bd977dc83dc572a60606b5e3c1d8f2b0a7566
[ "MIT" ]
6
2015-09-25T20:07:30.000Z
2021-03-07T02:41:35.000Z
backend/tests/python_api_mulltiuser_check/User.py
materials-commons/materialscommons.org
421bd977dc83dc572a60606b5e3c1d8f2b0a7566
[ "MIT" ]
770
2015-03-04T17:13:31.000Z
2019-05-03T13:55:57.000Z
backend/tests/python_api_mulltiuser_check/User.py
prisms-center/materialscommons.org
421bd977dc83dc572a60606b5e3c1d8f2b0a7566
[ "MIT" ]
3
2016-06-23T19:36:20.000Z
2020-09-06T12:26:00.000Z
import rethinkdb as r from pbkdf2 import crypt import uuid class User(object): def __init__(self, name, email, password): self.name = name self.email = email self.fullname = name self.password = password self.id = email self.apikey = uuid.uuid1().hex self.bi...
25.785714
62
0.591874
129
1,083
4.806202
0.387597
0.043548
0.03871
0.051613
0.058065
0
0
0
0
0
0
0.009296
0.304709
1,083
42
63
25.785714
0.814077
0
0
0
0
0
0.011993
0
0
0
0
0
0
1
0.083333
false
0.166667
0.083333
0
0.25
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
3b7212e943144c40fd414a0c21cddccd27fe23a0
5,108
py
Python
vision/follow-line/actions.py
ThePBone/RobomasterCheatsheet
14089f4a20d72700e653e291137a4cbc9d13b694
[ "MIT" ]
4
2022-02-08T21:53:57.000Z
2022-03-27T21:28:20.000Z
vision/follow-line/actions.py
ThePBone/RobomasterCheatsheet
14089f4a20d72700e653e291137a4cbc9d13b694
[ "MIT" ]
null
null
null
vision/follow-line/actions.py
ThePBone/RobomasterCheatsheet
14089f4a20d72700e653e291137a4cbc9d13b694
[ "MIT" ]
null
null
null
import math import time from scipy import interpolate from threading import Lock from abc import abstractmethod from library.pid import PID from stack import ActionStack class BaseAction: @abstractmethod def undo(self): pass @staticmethod def is_checkpoint(): return False class Chec...
27.462366
115
0.583594
668
5,108
4.35479
0.260479
0.052595
0.043314
0.028876
0.320385
0.267446
0.248195
0.206256
0.17463
0.153317
0
0.021727
0.306186
5,108
185
116
27.610811
0.798533
0.134691
0
0.436508
0
0
0.05481
0
0
0
0
0.005405
0
1
0.15873
false
0.055556
0.055556
0.02381
0.31746
0.02381
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
3b735bebda012e00718401bc8e40ce311fbf1c60
2,292
py
Python
backend/app/main.py
jonitoh/anonymizer-standalone
46335e84cfa7e44aef299b087b6b4adad6380169
[ "MIT" ]
null
null
null
backend/app/main.py
jonitoh/anonymizer-standalone
46335e84cfa7e44aef299b087b6b4adad6380169
[ "MIT" ]
null
null
null
backend/app/main.py
jonitoh/anonymizer-standalone
46335e84cfa7e44aef299b087b6b4adad6380169
[ "MIT" ]
null
null
null
"""Main entry point of the application""" from fastapi import FastAPI from fastapi.responses import RedirectResponse from fastapi.staticfiles import StaticFiles from fastapi.middleware.cors import CORSMiddleware from pymongo import MongoClient from app.core.config import get_settings from app.internal import create_ap...
26.964706
86
0.676702
269
2,292
5.565056
0.364312
0.051436
0.02004
0.029392
0.156313
0.04676
0
0
0
0
0
0
0.229058
2,292
84
87
27.285714
0.847199
0.1274
0
0.047619
0
0
0.03123
0
0
0
0
0.011905
0
1
0.095238
false
0
0.190476
0.047619
0.404762
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
3b7983d4fc08bdb8cabe5630c5fbe52bc0adfdab
552
py
Python
Python-Files/PlotConsole2.py
edwinprojects/DotNet-Matplotlib-Wrapper
df5f9a3d2d0bc9d79dfb62e9690b9a12e3676efa
[ "Apache-2.0" ]
1
2018-11-19T21:46:23.000Z
2018-11-19T21:46:23.000Z
Python-Files/PlotConsole2.py
edwinprojects/DotNet-Matplotlib-Wrapper
df5f9a3d2d0bc9d79dfb62e9690b9a12e3676efa
[ "Apache-2.0" ]
null
null
null
Python-Files/PlotConsole2.py
edwinprojects/DotNet-Matplotlib-Wrapper
df5f9a3d2d0bc9d79dfb62e9690b9a12e3676efa
[ "Apache-2.0" ]
null
null
null
import matplotlib.pyplot as plt fig = plt.figure(facecolor="#979899") ax = plt.gca() ax.set_facecolor("#d1d1d1") plt.xticks([1,2,3,4,5],["11/13\nTue","11/14\nWed","11/15\nThu","11/16\nFri","11/17\nSat"]) plt.yticks([0.0,0.1,0.2,0.3,0.4,0.5],["0 %","0.1 %","0.2 %","0.3 %","0.4 %","0.5 %"]) x = [1,2,3,4,5] y = [0.31,0...
23
90
0.567029
127
552
2.456693
0.401575
0.025641
0.038462
0.025641
0.355769
0.291667
0.291667
0.291667
0.291667
0.291667
0
0.187243
0.119565
552
24
91
23
0.454733
0.094203
0
0
0
0
0.184369
0
0
0
0
0
0
1
0
false
0
0.066667
0
0.066667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3b7c8242f0a3f98aedead8405d5ecb15fb807c54
1,656
py
Python
scripts/merge_translations.py
okfde/eucopyright
fb17931eb04f62aac49d5c42a853b85341c00bdd
[ "MIT" ]
1
2020-06-28T21:45:27.000Z
2020-06-28T21:45:27.000Z
scripts/merge_translations.py
okfde/eucopyright
fb17931eb04f62aac49d5c42a853b85341c00bdd
[ "MIT" ]
null
null
null
scripts/merge_translations.py
okfde/eucopyright
fb17931eb04f62aac49d5c42a853b85341c00bdd
[ "MIT" ]
1
2015-01-28T10:04:58.000Z
2015-01-28T10:04:58.000Z
import sys import yaml def persona(old, new, overwrite_language): old_t = old['translations'] new_t = new['translations'] for key in old_t: if key in new_t and overwrite_language in new_t[key]: old_t[key][overwrite_language] = new_t[key][overwrite_language] def questions(old, new, ...
36.8
118
0.650362
216
1,656
4.768519
0.287037
0.363107
0.092233
0.08932
0.217476
0.075728
0.075728
0
0
0
0
0.006202
0.221014
1,656
44
119
37.636364
0.792248
0
0
0
0
0
0.123188
0
0
0
0
0
0.03125
1
0.09375
false
0
0.0625
0
0.15625
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
3b81d15b16f3a5f6338f6f8f45d8d313e95a4a7d
11,735
py
Python
froi/algorithm/array2qimage.py
zhouguangfu/FreeROI
0605c2a0fe2457e3703a4a7548299fc2c1e9aca0
[ "BSD-3-Clause" ]
null
null
null
froi/algorithm/array2qimage.py
zhouguangfu/FreeROI
0605c2a0fe2457e3703a4a7548299fc2c1e9aca0
[ "BSD-3-Clause" ]
null
null
null
froi/algorithm/array2qimage.py
zhouguangfu/FreeROI
0605c2a0fe2457e3703a4a7548299fc2c1e9aca0
[ "BSD-3-Clause" ]
null
null
null
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """Some basic functions for image construction.""" import sys as _sys import numpy as _np from PyQt4 import QtGui as _qt from qimageview import qimageview as _qimageview if _sys.byteorder == 'little': ...
34.821958
94
0.55441
1,563
11,735
4.014076
0.140755
0.110934
0.030284
0.021039
0.390022
0.333758
0.326427
0.307778
0.297577
0.297577
0
0.048249
0.311206
11,735
336
95
34.925595
0.727948
0.012612
0
0.439024
0
0
0.044635
0.004232
0
0
0
0
0
0
null
null
0
0.01626
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
3b8587e0ec9b0fcd443c6745863057b4a8e3cf10
2,090
py
Python
app/models/game.py
tso/avalon
36bbc534ea1f0b24c19fc2a6b72010239cd5b0c3
[ "MIT" ]
null
null
null
app/models/game.py
tso/avalon
36bbc534ea1f0b24c19fc2a6b72010239cd5b0c3
[ "MIT" ]
6
2017-12-25T07:27:27.000Z
2018-01-17T18:59:04.000Z
app/models/game.py
tso/avalon
36bbc534ea1f0b24c19fc2a6b72010239cd5b0c3
[ "MIT" ]
2
2017-12-21T04:36:56.000Z
2018-01-15T23:32:35.000Z
import random import string import uuid from channels import Group from django.db import models from app.avalon import assign_roles, gen_role_list from .util import lobby_json class GameManager(models.Manager): def create_game(self, num_players, has_mordred, has_oberon): joinable_id = ''.join(random.cho...
31.666667
83
0.653589
263
2,090
4.969582
0.34981
0.076511
0.049732
0.061209
0.158378
0.119357
0.074981
0.074981
0.074981
0.074981
0
0.003185
0.248804
2,090
65
84
32.153846
0.829299
0.029187
0
0.04
0
0
0.03404
0
0
0
0
0
0
1
0.1
false
0
0.14
0.04
0.54
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
3b93a8f3fb66d0f9172c7fab00d036cbaf55135b
429
py
Python
project_euler/37.py
huangshenno1/project_euler
8a3c91fd11bcb6a6a830e963b1d5aed3f5ff787d
[ "MIT" ]
null
null
null
project_euler/37.py
huangshenno1/project_euler
8a3c91fd11bcb6a6a830e963b1d5aed3f5ff787d
[ "MIT" ]
null
null
null
project_euler/37.py
huangshenno1/project_euler
8a3c91fd11bcb6a6a830e963b1d5aed3f5ff787d
[ "MIT" ]
null
null
null
maxn = 1000000 isprime = [False] * 2 + [True] * maxn for i in range(2, maxn): if isprime[i]: j = i*i while j < maxn: isprime[j] = False j += i def truncatable(n): x = n while x > 0: if not isprime[x]: return False x /= 10 b = 10 x = n % b while x < n: if not isprime[x]: return False b *= 10 x...
14.793103
37
0.566434
81
429
3
0.296296
0.032922
0.049383
0.090535
0.246914
0.197531
0
0
0
0
0
0.063123
0.298368
429
28
38
15.321429
0.744186
0
0
0.153846
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0.076923
0
0
0
null
0
0
0
0
0
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
3b96b5f799965c9ad6a6862901c115567a0b79c1
1,691
py
Python
{{cookiecutter.app_slug}}/{{cookiecutter.app_slug}}/cli.py
epandurski/cookiecutter-flask-signalbus
17f0ba711205a334359643421fc7184a6f84ff32
[ "MIT" ]
null
null
null
{{cookiecutter.app_slug}}/{{cookiecutter.app_slug}}/cli.py
epandurski/cookiecutter-flask-signalbus
17f0ba711205a334359643421fc7184a6f84ff32
[ "MIT" ]
null
null
null
{{cookiecutter.app_slug}}/{{cookiecutter.app_slug}}/cli.py
epandurski/cookiecutter-flask-signalbus
17f0ba711205a334359643421fc7184a6f84ff32
[ "MIT" ]
null
null
null
import click from os import environ from flask.cli import with_appcontext @click.group('{{cookiecutter.app_slug}}') def {{cookiecutter.app_slug}}(): """Perform {{cookiecutter.app_name}} specific operations.""" @{{cookiecutter.app_slug}}.command() @with_appcontext @click.argument('queue_name') def subscribe(queu...
36.76087
101
0.690124
213
1,691
5.211268
0.309859
0.089189
0.12973
0.082883
0.235135
0.186486
0.156757
0.156757
0.156757
0.156757
0
0
0.194559
1,691
45
102
37.577778
0.814978
0.012419
0
0.064516
0
0
0.255533
0.142857
0
0
0
0
0
0
null
null
0
0.16129
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
3b9a007a7f11cb78845931d5c9222d48f264b871
17,892
py
Python
pxr/usd/usd/testenv/testUsdStagePopulationMasks.py
DougRogers-DigitalFish/USD
d8a405a1344480f859f025c4f97085143efacb53
[ "BSD-2-Clause" ]
3,680
2016-07-26T18:28:11.000Z
2022-03-31T09:55:05.000Z
pxr/usd/usd/testenv/testUsdStagePopulationMasks.py
DougRogers-DigitalFish/USD
d8a405a1344480f859f025c4f97085143efacb53
[ "BSD-2-Clause" ]
1,759
2016-07-26T19:19:59.000Z
2022-03-31T21:24:00.000Z
pxr/usd/usd/testenv/testUsdStagePopulationMasks.py
DougRogers-DigitalFish/USD
d8a405a1344480f859f025c4f97085143efacb53
[ "BSD-2-Clause" ]
904
2016-07-26T18:33:40.000Z
2022-03-31T09:55:16.000Z
#!/pxrpythonsubst # # Copyright 2017 Pixar # # Licensed under the Apache License, Version 2.0 (the "Apache License") # with the following modification; you may not use this file except in # compliance with the Apache License and the following modification to it: # Section 6. Trademarks. is deleted and replaced with: # ...
44.397022
81
0.649564
1,892
17,892
6.115222
0.156448
0.038894
0.052031
0.041832
0.643215
0.558341
0.511322
0.422731
0.402161
0.390925
0
0.007462
0.220993
17,892
402
82
44.507463
0.822643
0.126649
0
0.448763
0
0
0.147323
0.095776
0
0
0
0
0.530035
1
0.024735
false
0
0.007067
0
0.035336
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
3b9c267d1ea8454b5606dbcad892d1bfd4a767ba
1,553
py
Python
server/UserProfile/migrations/0002_doctorprofile.py
dimejiconsult/Telemedicine
af812bd8703d86e648105dc0c01b02f6af783dee
[ "MIT" ]
null
null
null
server/UserProfile/migrations/0002_doctorprofile.py
dimejiconsult/Telemedicine
af812bd8703d86e648105dc0c01b02f6af783dee
[ "MIT" ]
8
2020-08-04T22:42:45.000Z
2022-03-12T00:48:53.000Z
server/UserProfile/migrations/0002_doctorprofile.py
dimejiconsult/Telemedicine
af812bd8703d86e648105dc0c01b02f6af783dee
[ "MIT" ]
null
null
null
# Generated by Django 2.2.3 on 2020-07-31 14:51 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('UserProfile', '0001_initial'), ] operations = [ migrations.CreateModel( ...
43.138889
200
0.599485
166
1,553
5.403614
0.518072
0.083612
0.080268
0.107023
0.211817
0
0
0
0
0
0
0.025619
0.245976
1,553
35
201
44.371429
0.740393
0.028976
0
0
1
0
0.225764
0.10093
0
0
0
0
0
1
0
false
0
0.103448
0
0.206897
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
3b9d1545ec19f606b37c767e1e6cb76be606291c
196
py
Python
_solutions/basics/function/function_lambda_a.py
sages-pl/2022-01-pythonsqlalchemy-aptiv
1d6d856608e9dbe25b139e8968c48b7f46753b84
[ "MIT" ]
null
null
null
_solutions/basics/function/function_lambda_a.py
sages-pl/2022-01-pythonsqlalchemy-aptiv
1d6d856608e9dbe25b139e8968c48b7f46753b84
[ "MIT" ]
null
null
null
_solutions/basics/function/function_lambda_a.py
sages-pl/2022-01-pythonsqlalchemy-aptiv
1d6d856608e9dbe25b139e8968c48b7f46753b84
[ "MIT" ]
null
null
null
numbers = (x for x in range(1, 34) if x % 3 == 0) numbers = filter(lambda x: x % 2, numbers) numbers = map(lambda x: x ** 3, numbers) numbers = list(numbers) result = sum(numbers) / len(numbers)
28
49
0.642857
34
196
3.705882
0.529412
0.031746
0.126984
0
0
0
0
0
0
0
0
0.044586
0.19898
196
6
50
32.666667
0.757962
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8e54c567814fe73688defe099ca5f7a9a0fccd51
432
py
Python
estrategias/Gabrielp.py
cadualves/jogos_vorazes
e8caf062fc58b6188e94152084383940c96dba9a
[ "MIT" ]
8
2017-10-11T19:49:28.000Z
2021-06-16T12:20:39.000Z
estrategias/Gabrielp.py
cadualves/jogos_vorazes
e8caf062fc58b6188e94152084383940c96dba9a
[ "MIT" ]
6
2017-02-02T18:26:34.000Z
2018-11-08T16:32:52.000Z
estrategias/Gabrielp.py
cadualves/jogos_vorazes
e8caf062fc58b6188e94152084383940c96dba9a
[ "MIT" ]
26
2016-01-15T16:20:57.000Z
2018-12-11T21:32:57.000Z
from .jogadores import Jogador class MeuJogador(Jogador): def escolha_de_cacada(self, rodada, comida_atual, reputacao_atual, m, reputacoes_dos_jogadores): if comida_atual <= 5: escolhas = ['d' for x in reputacoes_dos_jogadores] return escolhas else: escolhas = [...
39.272727
108
0.650463
58
432
4.655172
0.534483
0.144444
0.244444
0.051852
0.318519
0.318519
0.318519
0.318519
0.318519
0
0
0.034921
0.270833
432
11
109
39.272727
0.822222
0
0
0.222222
0
0
0.009238
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0
0.555556
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
8e5dc3da5c6988b8cfded965ef1f80d576653a4f
1,534
py
Python
methods_test.py
RyoJerryYu/DeclarationCpp2Go
3e71546b8a2ce37cb056986250acfaab74c71a76
[ "MIT" ]
null
null
null
methods_test.py
RyoJerryYu/DeclarationCpp2Go
3e71546b8a2ce37cb056986250acfaab74c71a76
[ "MIT" ]
1
2021-12-04T11:54:56.000Z
2021-12-04T11:54:56.000Z
methods_test.py
RyoJerryYu/DeclarationCpp2Go
3e71546b8a2ce37cb056986250acfaab74c71a76
[ "MIT" ]
null
null
null
'''Tests for methods.py''' from methods import FuncName, Method, TVList from common import Capitalizer from protocol import DirectReturn def test_funcname(): funcname_p = FuncName(Capitalizer()) assert funcname_p.transform('foo_bar_baz') == 'FooBarBaz' def test_funcname_default(): funcname_p = FuncName() as...
26
79
0.666884
219
1,534
4.456621
0.173516
0.04918
0.061475
0.07377
0.63832
0.604508
0.58709
0.409836
0.348361
0.348361
0
0.003218
0.1897
1,534
58
80
26.448276
0.781979
0.013038
0
0.324324
0
0
0.232759
0
0
0
0
0
0.27027
1
0.27027
false
0
0.081081
0
0.351351
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
8e672b30ac2d4293d252c3f28a77e16722f9d3c0
1,139
py
Python
dmg/classical_amg.py
amkatrutsa/dmg
ac07e28982ddd7b03137b296e03af4d5515c8ad3
[ "MIT" ]
14
2018-07-06T12:04:46.000Z
2022-03-21T10:01:27.000Z
dmg/classical_amg.py
amkatrutsa/dmg
ac07e28982ddd7b03137b296e03af4d5515c8ad3
[ "MIT" ]
null
null
null
dmg/classical_amg.py
amkatrutsa/dmg
ac07e28982ddd7b03137b296e03af4d5515c8ad3
[ "MIT" ]
4
2019-01-08T03:31:55.000Z
2021-12-28T01:39:15.000Z
import pyamg from . import gmg_base class ClassicalAMG(gmg_base.GMG): def __init__(self, A, max_levels=10, presmoother="jacobi", presmooth_par={"omega": 2./3, "iterations": 2, "withrho": False}, postsmoother=None, postsmooth_par=None, cycle="V"): super()._...
54.238095
107
0.539069
114
1,139
4.973684
0.447368
0.063492
0.091711
0.067019
0
0
0
0
0
0
0
0.01105
0.364355
1,139
21
108
54.238095
0.772099
0
0
0
0
0
0.026316
0
0
0
0
0
0
1
0.157895
false
0
0.105263
0.105263
0.421053
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
8e6a3aa8541823f934e62f4e12fc8d0777921c86
435
py
Python
bs.py
marlinarnz/roster_creator
4a158254bbe68e46e604426a59fe26e68711281b
[ "MIT" ]
null
null
null
bs.py
marlinarnz/roster_creator
4a158254bbe68e46e604426a59fe26e68711281b
[ "MIT" ]
null
null
null
bs.py
marlinarnz/roster_creator
4a158254bbe68e46e604426a59fe26e68711281b
[ "MIT" ]
null
null
null
import datetime from app.constants import Constants as c from app.input import InputMonthly from app.output import OutputFactory from app.create import CreatorUtility, SolverMIP inp = InputMonthly() out = OutputFactory() solv = SolverMIP() creator = CreatorUtility(inp, out, solv) settings = {c.START: datetime.date(2...
25.588235
48
0.728736
58
435
5.448276
0.465517
0.088608
0.101266
0
0
0
0
0
0
0
0
0.036111
0.172414
435
16
49
27.1875
0.841667
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.384615
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
8e714557c8e4d44f9b9d7485ed6921411a4740ad
359
py
Python
test/test_sns.py
TSNobleSoftware/awssert
a924d591523813b070d67bb4df4bd08913c12eac
[ "Apache-2.0" ]
19
2021-04-25T13:28:12.000Z
2021-06-16T18:30:38.000Z
test/test_sns.py
TSNobleSoftware/awssert
a924d591523813b070d67bb4df4bd08913c12eac
[ "Apache-2.0" ]
23
2021-04-06T17:00:04.000Z
2021-04-20T18:03:35.000Z
test/test_sns.py
TSNoble/awssert
a924d591523813b070d67bb4df4bd08913c12eac
[ "Apache-2.0" ]
1
2021-04-07T07:45:37.000Z
2021-04-07T07:45:37.000Z
import moto import boto3 @moto.mock_sns def test_topic_should_receive_message_assertion(): arn = boto3.client("sns").create_topic(Name="foo")["TopicArn"] topic = boto3.resource("sns").Topic(arn) with topic.should.receive("foo"): topic.publish(Message="foo") with topic.should_not.receive("bar")...
27.615385
66
0.696379
48
359
5.041667
0.479167
0.136364
0.14876
0.181818
0
0
0
0
0
0
0
0.009804
0.147632
359
12
67
29.916667
0.781046
0
0
0.2
0
0
0.08078
0
0
0
0
0
0.1
1
0.1
false
0
0.2
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
8e73968f0c29704beef26acb5999c4d5909b9d5e
309
py
Python
choptop-backend/sensor_controller.py
rossng/choptop
cf776d3fdcca92cda2ba56768bac04c37416ec0f
[ "MIT" ]
1
2018-04-10T20:10:39.000Z
2018-04-10T20:10:39.000Z
choptop-backend/sensor_controller.py
rossng/choptop
cf776d3fdcca92cda2ba56768bac04c37416ec0f
[ "MIT" ]
1
2020-04-29T23:14:11.000Z
2020-04-29T23:14:11.000Z
choptop-backend/sensor_controller.py
rossng/choptop
cf776d3fdcca92cda2ba56768bac04c37416ec0f
[ "MIT" ]
null
null
null
from flask import _app_ctx_stack, jsonify from choptop import app def get_model(): appContext = _app_ctx_stack.top choptop = getattr(appContext, "ChopTop", None) return choptop @app.route('/position') def get_position(self): choptop = get_model() return jsonify(choptop.finger_position)
23.769231
50
0.7411
41
309
5.341463
0.487805
0.082192
0.100457
0
0
0
0
0
0
0
0
0
0.165049
309
13
51
23.769231
0.848837
0
0
0
0
0
0.051613
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
8e92d4b4780c0502b64aba9cbe5abb7f02ad327d
10,370
py
Python
_pylab_colorslider.py
streitho/spinmob
5dd75b54de1b158e6f1308612336638fde520cbd
[ "Unlicense" ]
null
null
null
_pylab_colorslider.py
streitho/spinmob
5dd75b54de1b158e6f1308612336638fde520cbd
[ "Unlicense" ]
null
null
null
_pylab_colorslider.py
streitho/spinmob
5dd75b54de1b158e6f1308612336638fde520cbd
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python #Boa:App:BoaApp import wx import matplotlib as _matplotlib import pylab as _pylab import _pylab_colorslider_frame as _pcf; reload(_pcf) try: _prefs except: _prefs = None modules ={u'pylab_colorslider_frame': [1, 'Main frame of Application', ...
34.451827
105
0.533848
1,296
10,370
4.219136
0.238426
0.068581
0.029261
0.026335
0.150329
0.071141
0.071141
0.051024
0.018288
0.018288
0
0.031921
0.362584
10,370
300
106
34.566667
0.79531
0.162006
0
0.082278
0
0
0.046613
0.006678
0
0
0
0
0
0
null
null
0
0.025316
null
null
0.025316
0
0
0
null
0
0
0
0
0
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
8e995a2b9016602f49ded74c3b7213f7af39a054
2,315
py
Python
Dash/Plotly_to_Dash.py
jorge-garciadiego/Visualization-Dash
68fe99ff5c3ecc99eea3845f38849669449d89d2
[ "MIT" ]
null
null
null
Dash/Plotly_to_Dash.py
jorge-garciadiego/Visualization-Dash
68fe99ff5c3ecc99eea3845f38849669449d89d2
[ "MIT" ]
null
null
null
Dash/Plotly_to_Dash.py
jorge-garciadiego/Visualization-Dash
68fe99ff5c3ecc99eea3845f38849669449d89d2
[ "MIT" ]
null
null
null
import dash import dash_core_components as dcc import dash_html_components as html import plotly.graph_objs as go import numpy as np app = dash.Dash() # Creating Data np.random.seed(42) random_x = np.random.randint(1, 101, 100) random_y = np.random.randint(1, 101, 100) # everything that we are going to be inserting ...
45.392157
90
0.310151
165
2,315
4.230303
0.460606
0.04298
0.04298
0.045845
0.469914
0.412607
0.34957
0.34957
0.34957
0.34957
0
0.04386
0.606048
2,315
50
91
46.3
0.721491
0.064795
0
0.511628
0
0
0.103193
0
0
0
0
0
0
1
0
false
0
0.116279
0
0.116279
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8e9c2da8ab435f1bdffb4bc676ac1fdf47cb0931
1,134
py
Python
aprendi com guanabara/Ex 039.py
GustinSilva/python
fa1d4213771a2edc8dec8c08d0d19ada44e5e2f2
[ "MIT" ]
null
null
null
aprendi com guanabara/Ex 039.py
GustinSilva/python
fa1d4213771a2edc8dec8c08d0d19ada44e5e2f2
[ "MIT" ]
null
null
null
aprendi com guanabara/Ex 039.py
GustinSilva/python
fa1d4213771a2edc8dec8c08d0d19ada44e5e2f2
[ "MIT" ]
null
null
null
""" Faça um programa que leia o ano de nascimento de um jovem e informe, de acordo com sua idade se ele ainda vai se alistar se é a hora de se alistar se já passou o tempo de alistar o programa também deve falar o tempo que falta ou que passou """ import datetime import time ano_nasc = int(input('Ano de Nascimento: '...
35.4375
92
0.694004
189
1,134
4.100529
0.391534
0.063226
0.070968
0.096774
0.341935
0.260645
0.260645
0.209032
0.209032
0.209032
0
0.01594
0.170194
1,134
31
93
36.580645
0.807651
0.21164
0
0.318182
0
0
0.397291
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
8e9c71c55ad72a43c98fbcef2fffb6bb801d664d
3,040
py
Python
standalone_tf/WholeImageDescriptor.py
galsh17/cartwheel_train
a50abe18cfe8c1f0f24267c3efa8537ecf211e72
[ "MIT" ]
32
2018-09-04T08:51:08.000Z
2022-02-22T02:04:38.000Z
standalone_tf/WholeImageDescriptor.py
galsh17/cartwheel_train
a50abe18cfe8c1f0f24267c3efa8537ecf211e72
[ "MIT" ]
5
2019-05-27T07:54:52.000Z
2022-01-11T10:14:25.000Z
standalone_tf/WholeImageDescriptor.py
galsh17/cartwheel_train
a50abe18cfe8c1f0f24267c3efa8537ecf211e72
[ "MIT" ]
14
2018-06-22T15:29:39.000Z
2021-09-28T12:58:37.000Z
""" A class interfce to netvlad based whole image descriptor. To use the pre-trained network in your application use this code and unit-test Author : Manohar Kuse <mpkuse@connect.ust.hk> Created : 20th Aug, 2018 """ import cv2 import numpy as np import os import time import code import argparse impor...
30.707071
113
0.659868
427
3,040
4.423888
0.367682
0.04235
0.071996
0.020116
0.103759
0.031763
0.031763
0
0
0
0
0.03823
0.234211
3,040
98
114
31.020408
0.773196
0.084539
0
0
0
0
0.063397
0.019936
0
0
0
0
0.017241
0
null
null
0
0.206897
null
null
0.034483
0
0
0
null
0
0
0
0
0
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
8ea04f344a5f50abc39827025757b32b1b9d55c5
2,313
py
Python
vfoot/gen/__init__.py
filipecn/vfoot
3059f5bb471b6bdf92a18a7cdb6b33a2c8852046
[ "MIT" ]
null
null
null
vfoot/gen/__init__.py
filipecn/vfoot
3059f5bb471b6bdf92a18a7cdb6b33a2c8852046
[ "MIT" ]
null
null
null
vfoot/gen/__init__.py
filipecn/vfoot
3059f5bb471b6bdf92a18a7cdb6b33a2c8852046
[ "MIT" ]
null
null
null
import pandas as pd import random def generate_teams(n_teams=128, n_countries=3, csv_file="times.csv"): times = pd.DataFrame(columns=['nome', 'estadio', 'nacionalidade', 'score']) for i in range(n_teams): times = times.append({ 'nome': 'Time ' + str(i), 'estadio': random.randin...
32.125
107
0.5361
267
2,313
4.486891
0.307116
0.108514
0.058431
0.055092
0.22621
0.149416
0.045075
0.045075
0
0
0
0.042389
0.326848
2,313
72
108
32.125
0.727039
0.117164
0
0.26087
1
0
0.156773
0
0
0
0
0
0
1
0.065217
false
0
0.043478
0
0.152174
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
8eb69037013653cb91aa261a3a91f12415a4923f
816
py
Python
airbnb/random_request.py
jaksmid/airbnb-python
5fd049f683b0a3ad30bf34342927f50dd99c8b6d
[ "WTFPL" ]
171
2015-01-03T09:51:38.000Z
2022-03-20T18:56:09.000Z
airbnb/random_request.py
jaksmid/airbnb-python
5fd049f683b0a3ad30bf34342927f50dd99c8b6d
[ "WTFPL" ]
25
2015-03-30T03:55:26.000Z
2022-03-19T23:28:34.000Z
airbnb/random_request.py
jaksmid/airbnb-python
5fd049f683b0a3ad30bf34342927f50dd99c8b6d
[ "WTFPL" ]
76
2015-03-28T02:23:03.000Z
2022-03-19T23:27:42.000Z
import random import uuid import os class RandomRequest(object): @classmethod def get_random_user_agent(cls): with open(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'files/supported_ios_versions.txt')) as f: ios_versions = f.read().splitlines() with open(os.path.join(...
32.64
118
0.681373
107
816
4.962617
0.439252
0.067797
0.096045
0.129944
0.20339
0.20339
0.20339
0.20339
0.20339
0.20339
0
0.019549
0.185049
816
24
119
34
0.778947
0
0
0.166667
0
0
0.126225
0.069853
0
0
0
0
0
1
0.166667
false
0
0.166667
0.055556
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
8ec1e9523ebc0bba611e68e3f95d01d207d019c2
308
py
Python
database_program.py
amintai/Hacktoberfest-1
ccfe3688db720e35e032eaf7c7dfcaf86bc94272
[ "MIT" ]
null
null
null
database_program.py
amintai/Hacktoberfest-1
ccfe3688db720e35e032eaf7c7dfcaf86bc94272
[ "MIT" ]
null
null
null
database_program.py
amintai/Hacktoberfest-1
ccfe3688db720e35e032eaf7c7dfcaf86bc94272
[ "MIT" ]
null
null
null
import mysql.connector mydb = mysql.connector.connect( host="databaseurl", user="username", password="password", database="database_name", ) mycursor = mydb.cursor() code = input("Enter SQL code here ") sql = code mycursor.execute(sql) mydb.commit() print(mycursor.rowcount, "record inserted.")
16.210526
44
0.720779
37
308
5.972973
0.675676
0.126697
0
0
0
0
0
0
0
0
0
0
0.133117
308
18
45
17.111111
0.827715
0
0
0
0
0
0.246753
0
0
0
0
0
0
1
0
false
0.076923
0.076923
0
0.076923
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
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
8ece7d53acacbd74d22fdfc3c2e28686c0f3e1f0
2,052
py
Python
tests/karura_test/test_database_api.py
ScoopML-labs/karura
ffd3d06e496ffbb0602d3cff3ac0692c747523ab
[ "Apache-2.0" ]
74
2017-03-03T00:35:14.000Z
2021-12-26T17:50:48.000Z
tests/karura_test/test_database_api.py
ScoopML-labs/karura
ffd3d06e496ffbb0602d3cff3ac0692c747523ab
[ "Apache-2.0" ]
1
2017-08-18T02:50:11.000Z
2017-08-18T07:15:25.000Z
tests/karura_test/test_database_api.py
ScoopML-labs/karura
ffd3d06e496ffbb0602d3cff3ac0692c747523ab
[ "Apache-2.0" ]
6
2017-09-29T06:56:31.000Z
2020-12-17T14:39:59.000Z
import os import sys sys.path.append(os.path.join(os.path.dirname(__file__), "../../")) import unittest from karura.database_api import DatabaseAPI class TestDatabaseAPI(unittest.TestCase): DBNAME = "test_database_uri" API = None @classmethod def setUpClass(cls): cls.API = DatabaseAPI(alterna...
38.716981
97
0.661793
240
2,052
5.470833
0.254167
0.07997
0.114242
0.144707
0.573496
0.524752
0.469155
0.411272
0.411272
0.281797
0
0.004837
0.193957
2,052
52
98
39.461538
0.788996
0
0
0.095238
0
0
0.077973
0
0
0
0
0
0.309524
1
0.095238
false
0.190476
0.095238
0
0.261905
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