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
3f7cb7219030b757ed1a771112bb9bf07369b4ec
2,111
py
Python
test/test_loaders.py
chr1st1ank/schemathesis
f2e160d56c1fdce9eac7fee5875b209c8944f54a
[ "MIT" ]
1
2021-06-22T20:01:24.000Z
2021-06-22T20:01:24.000Z
test/test_loaders.py
RonnyPfannschmidt/schemathesis
3542d91d2e7402235e7b2dc995ed7017a0265ff6
[ "MIT" ]
null
null
null
test/test_loaders.py
RonnyPfannschmidt/schemathesis
3542d91d2e7402235e7b2dc995ed7017a0265ff6
[ "MIT" ]
null
null
null
import pytest import schemathesis from schemathesis.constants import USER_AGENT from .utils import SIMPLE_PATH def test_path_loader(simple_schema): # Each loader method should read the specified schema correctly assert schemathesis.from_path(SIMPLE_PATH).raw_schema == simple_schema def test_uri_loader(app...
37.696429
97
0.765514
281
2,111
5.501779
0.263345
0.058215
0.061449
0.051746
0.558862
0.461837
0.461837
0.413972
0.413972
0.413972
0
0.000547
0.134533
2,111
55
98
38.381818
0.845649
0.133586
0
0.0625
0
0
0.155787
0.05266
0
0
0
0
0.25
1
0.25
false
0
0.125
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
1
0
0
0
0
0
0
0
1
3f7cc9d5093301c8cf5a2a4837c8c0ff2f4cd241
5,306
py
Python
dashboard/views.py
Skchoudhary/stacknews
5f66debb93fb847569d4bb0512c02a5866f9ecbf
[ "Apache-2.0" ]
null
null
null
dashboard/views.py
Skchoudhary/stacknews
5f66debb93fb847569d4bb0512c02a5866f9ecbf
[ "Apache-2.0" ]
null
null
null
dashboard/views.py
Skchoudhary/stacknews
5f66debb93fb847569d4bb0512c02a5866f9ecbf
[ "Apache-2.0" ]
null
null
null
import json import logging from django.contrib.auth.decorators import login_required from django.contrib.auth.models import User from django.core.paginator import Paginator, PageNotAnInteger, EmptyPage from django.db.models import Q from django.http import HttpResponse from django.contrib.auth import authenticate, log...
26.663317
82
0.634188
621
5,306
5.251208
0.202899
0.020239
0.042932
0.051518
0.241644
0.226004
0.223244
0.188286
0.128182
0.128182
0
0.003451
0.235394
5,306
198
83
26.79798
0.800345
0.069167
0
0.165217
0
0
0.149758
0.014073
0
0
0
0
0
1
0.078261
false
0.130435
0.095652
0
0.26087
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
3f831fd51a7feded6d8ee9e55fa1836635f494a5
10,710
py
Python
pynuoca/nuomon/nuomon_broadcast.py
nuodb/nuoca
cd509aad602267677160057418f8dc1c5e1e1eb0
[ "MIT" ]
1
2017-11-30T22:25:12.000Z
2017-11-30T22:25:12.000Z
pynuoca/nuomon/nuomon_broadcast.py
nuodb/nuoca
cd509aad602267677160057418f8dc1c5e1e1eb0
[ "MIT" ]
9
2019-03-19T19:54:57.000Z
2020-11-13T20:58:08.000Z
pynuoca/nuomon/nuomon_broadcast.py
nuodb/nuoca
cd509aad602267677160057418f8dc1c5e1e1eb0
[ "MIT" ]
null
null
null
# (C) Copyright NuoDB, Inc. 2017-2020 # # This source code is licensed under the MIT license found in the LICENSE # file in the root directory of this source tree. from nuomon_monitor import MetricsListener, EventListener from nuomon_util import * from pubsub import pub import threading from pynuoca.nuoca_util import...
35.463576
120
0.62493
1,146
10,710
5.65445
0.199825
0.028086
0.024691
0.016204
0.305093
0.265278
0.215278
0.16466
0.152315
0.152315
0
0.002702
0.27423
10,710
301
121
35.581395
0.830953
0.054435
0
0.322581
0
0
0.077183
0.034045
0
0
0
0
0
0
null
null
0.046083
0.032258
null
null
0.082949
0
0
0
null
0
0
0
0
0
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
3f832841448e826a801ab829661af4103ac3b701
2,909
py
Python
testScripts/testSwarm.py
Open-UAV/Firmware
800b7552315a06dd453d310c8904659c01cf44b4
[ "MIT" ]
8
2018-07-30T17:44:08.000Z
2021-01-22T07:42:21.000Z
testScripts/testSwarm.py
Open-UAV/Firmware
800b7552315a06dd453d310c8904659c01cf44b4
[ "MIT" ]
12
2017-10-16T02:07:46.000Z
2018-10-08T18:40:28.000Z
testScripts/testSwarm.py
Open-UAV/Firmware
800b7552315a06dd453d310c8904659c01cf44b4
[ "MIT" ]
13
2017-08-04T02:07:58.000Z
2021-01-05T07:26:24.000Z
import rospy import roslaunch import subprocess import os import sys from sensor_msgs.msg import LaserScan, NavSatFix from std_msgs.msg import Float64; from gazebo_msgs.msg import ModelStates from mavros_msgs.srv import CommandBool, CommandTOL, SetMode from geometry_msgs.msg import PoseStamped,Pose,Vector3,Twist,Twis...
27.443396
104
0.763836
419
2,909
5.140811
0.334129
0.025998
0.033426
0.035283
0.243268
0.189415
0.189415
0.090065
0.046425
0.046425
0
0.032144
0.123066
2,909
105
105
27.704762
0.812231
0.040564
0
0.166667
0
0
0.201581
0.066834
0
0
0
0
0
0
null
null
0.012821
0.141026
null
null
0.205128
0
0
0
null
0
0
0
0
0
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
3f866f6cc031f2fc3930164fd76f85e76ce6daf9
11,311
py
Python
transcribe.py
castlegreen/hulk
c8b120c32e7db37ebee0de654747107a1c2601fc
[ "BSD-2-Clause" ]
null
null
null
transcribe.py
castlegreen/hulk
c8b120c32e7db37ebee0de654747107a1c2601fc
[ "BSD-2-Clause" ]
null
null
null
transcribe.py
castlegreen/hulk
c8b120c32e7db37ebee0de654747107a1c2601fc
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python import os, sys # Pages begin as follows: # <hr> # <A name=2></a>1<br> # Beginning at page 4, the second number is an increasing page number: # <hr> # <A name=4></a>1<br> # ... # <hr> # <A name=5></a>2<br> # This is the number printed in the top-right hand corner # of the ...
28.348371
291
0.546459
1,362
11,311
4.519824
0.271659
0.019493
0.033626
0.040286
0.284763
0.2513
0.208577
0.163743
0.125081
0.125081
0
0.019135
0.293078
11,311
398
292
28.419598
0.75075
0.089382
0
0.359862
0
0.020761
0.31091
0.061519
0
0
0
0
0.013841
0
null
null
0
0.00692
null
null
0.117647
0
0
0
null
0
0
0
0
0
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
3f86debd703595e3f51d6905b13903d2fab35ce5
1,274
py
Python
Jarmul/isolating_html.py
boniaditya/scraping
e53278afecc87641e891eb650b095a549bdedd70
[ "Apache-2.0" ]
null
null
null
Jarmul/isolating_html.py
boniaditya/scraping
e53278afecc87641e891eb650b095a549bdedd70
[ "Apache-2.0" ]
null
null
null
Jarmul/isolating_html.py
boniaditya/scraping
e53278afecc87641e891eb650b095a549bdedd70
[ "Apache-2.0" ]
null
null
null
from bs4 import BeautifulSoup import urllib2 import requests def get_tree(url): source = urllib2.urlopen(url).read() tree = BeautifulSoup(source, "html.parser") return tree happyhours = 'https://www.downtownla.com/explore/dining-nightlife' happy_source = urllib2.urlopen(happyhours).read() r = requests.ge...
24.5
116
0.72135
195
1,274
4.538462
0.389744
0.081356
0.088136
0.072316
0.277966
0.257627
0.210169
0.210169
0.155932
0.155932
0
0.005367
0.122449
1,274
52
117
24.5
0.786225
0.240188
0
0.08
0
0.04
0.226716
0
0
0
0
0
0
0
null
null
0
0.12
null
null
0.28
0
0
0
null
0
0
0
0
0
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
3f88764abf5cc1bd8f1feb05977e1a9ba32ddfe0
14,259
py
Python
per/models.py
IFRCGo/go-api
6acd84df479f0cf46553029ababa1e7753f86550
[ "MIT" ]
11
2018-06-11T06:05:12.000Z
2022-03-25T09:31:44.000Z
per/models.py
IFRCGo/go-api
6acd84df479f0cf46553029ababa1e7753f86550
[ "MIT" ]
498
2017-11-07T21:20:13.000Z
2022-03-31T14:37:18.000Z
per/models.py
IFRCGo/go-api
6acd84df479f0cf46553029ababa1e7753f86550
[ "MIT" ]
6
2018-04-11T13:29:50.000Z
2020-07-16T16:52:11.000Z
from api.models import Country from django.db import models from django.conf import settings from django.utils.translation import ugettext_lazy as _ from enumfields import EnumIntegerField from enumfields import IntEnum from api.storage import get_storage from .questions_data import questions from tinymce import HTMLFi...
39.608333
129
0.687355
1,715
14,259
5.444898
0.156268
0.098951
0.050118
0.065539
0.397516
0.324159
0.30574
0.223924
0.197259
0.182909
0
0.009904
0.192791
14,259
359
130
39.718663
0.80139
0.031769
0
0.180851
0
0
0.135402
0.008649
0
0
0
0.002786
0
1
0.049645
false
0
0.031915
0.028369
0.638298
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
3f895d061228511ed4fdb3899ff14dd74571897c
1,568
py
Python
pychron/core/ui/strings.py
ASUPychron/pychron
dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76
[ "Apache-2.0" ]
31
2016-03-07T02:38:17.000Z
2022-02-14T18:23:43.000Z
pychron/core/ui/strings.py
ASUPychron/pychron
dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76
[ "Apache-2.0" ]
1,626
2015-01-07T04:52:35.000Z
2022-03-25T19:15:59.000Z
pychron/core/ui/strings.py
UIllinoisHALPychron/pychron
f21b79f4592a9fb9dc9a4cb2e4e943a3885ededc
[ "Apache-2.0" ]
26
2015-05-23T00:10:06.000Z
2022-03-07T16:51:57.000Z
# =============================================================================== # Copyright 2016 ross # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICE...
34.086957
81
0.559949
176
1,568
4.9375
0.579545
0.069045
0.029919
0.036824
0
0
0
0
0
0
0
0.008423
0.167092
1,568
45
82
34.844444
0.656968
0.607781
0
0.125
0
0
0.028571
0
0
0
0
0
0
1
0.125
false
0
0.25
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
3fa1dbd2442cbe8df746bb1d83491db7779562a0
3,631
py
Python
tests/models.py
sobolevn/django-fakery
bac6965d2f780ddbad90ef94ab5b6bb8a79a1e1c
[ "MIT" ]
1
2020-02-19T20:51:15.000Z
2020-02-19T20:51:15.000Z
tests/models.py
sobolevn/django-fakery
bac6965d2f780ddbad90ef94ab5b6bb8a79a1e1c
[ "MIT" ]
null
null
null
tests/models.py
sobolevn/django-fakery
bac6965d2f780ddbad90ef94ab5b6bb8a79a1e1c
[ "MIT" ]
null
null
null
from decimal import Decimal from django import VERSION as django_version from django.contrib.postgres import fields as postgres_fields from django.db import models from django_fakery.compat import HAS_GEOS class Chef(models.Model): slug = models.SlugField() first_name = models.CharField(max_length=60) l...
35.252427
86
0.693748
395
3,631
6.167089
0.349367
0.066502
0.059113
0.078818
0.54803
0.537356
0.472496
0.423645
0.423645
0.423645
0
0.013204
0.207381
3,631
102
87
35.598039
0.833218
0
0
0.461538
0
0
0.020931
0
0
0
0
0
0
1
0.025641
false
0
0.076923
0.025641
0.858974
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
3fa2bb7f6f2cc54c712a830aef4925e71138917f
152
py
Python
play_to_play.py
LincLabUCCS/Jack_RNN_Chatbot
6daf450802d1328942f1ec34a2c3a01eaf3c9581
[ "MIT" ]
null
null
null
play_to_play.py
LincLabUCCS/Jack_RNN_Chatbot
6daf450802d1328942f1ec34a2c3a01eaf3c9581
[ "MIT" ]
null
null
null
play_to_play.py
LincLabUCCS/Jack_RNN_Chatbot
6daf450802d1328942f1ec34a2c3a01eaf3c9581
[ "MIT" ]
null
null
null
text = 'shakespeare.txt' output = 'output_file.txt' f = open(output, 'r') o = open(text, 'w') for line in f: o.write(line) f.close() o.close()
10.857143
26
0.605263
26
152
3.5
0.576923
0
0
0
0
0
0
0
0
0
0
0
0.197368
152
14
27
10.857143
0.745902
0
0
0
0
0
0.20915
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3fa4de3c7fc519232f37e6becd5a5c8ee9a0eeec
2,085
bzl
Python
third_party/cargo/crates.bzl
schoppmp/psi_cardinality
e9c2e0c21278afd581d569907dfe581b2b4f695a
[ "Apache-2.0" ]
51
2020-05-19T22:14:37.000Z
2022-03-23T05:03:18.000Z
third_party/cargo/crates.bzl
dylan-fan/PSI
e9c2e0c21278afd581d569907dfe581b2b4f695a
[ "Apache-2.0" ]
36
2020-05-07T23:47:06.000Z
2022-03-25T04:23:16.000Z
third_party/cargo/crates.bzl
dylan-fan/PSI
e9c2e0c21278afd581d569907dfe581b2b4f695a
[ "Apache-2.0" ]
25
2020-05-08T05:02:51.000Z
2022-03-10T06:18:25.000Z
""" cargo-raze crate workspace functions DO NOT EDIT! Replaced on runs of cargo-raze """ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository") def _new_http_archive(name, **kwargs): if not native.existing_rule(name): ...
35.338983
108
0.644604
317
2,085
3.981073
0.201893
0.069731
0.083201
0.085578
0.749604
0.663233
0.543582
0.357369
0.248019
0.181458
0
0.046154
0.189448
2,085
58
109
35.948276
0.700592
0.038849
0
0.272727
1
0.113636
0.481203
0.184962
0
0
0
0
0
1
0.068182
false
0
0
0
0.068182
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
3fa9be18e13d96db0008ffa2b7a991274cbe19ba
711
py
Python
setup.py
DrGFreeman/passsafe
ad8b55d26f9e0d68fbb118a8d4da59a1baa412a0
[ "MIT" ]
null
null
null
setup.py
DrGFreeman/passsafe
ad8b55d26f9e0d68fbb118a8d4da59a1baa412a0
[ "MIT" ]
null
null
null
setup.py
DrGFreeman/passsafe
ad8b55d26f9e0d68fbb118a8d4da59a1baa412a0
[ "MIT" ]
null
null
null
from setuptools import setup NAME = 'passsafe' VERSION = '0.1.0' install_requires = [ 'cryptography', 'flask', 'pyotp', 'requests', 'waitress' ] setup( name=NAME, version=VERSION, description="A client-server app to safely handle a password in " "analytical application...
21.545455
69
0.618847
78
711
5.538462
0.74359
0.104167
0
0
0
0
0
0
0
0
0
0.009141
0.230661
711
32
70
22.21875
0.780622
0
0
0
0
0
0.383966
0.033755
0
0
0
0
0
1
0
false
0.103448
0.034483
0
0.034483
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
3fae72fa23015917951d8c01fe8a35b83f932feb
844
py
Python
test/resources/app.py
earwig/bitshift
92db937a317ac6742f33f7bea0b534eac21aaa22
[ "MIT" ]
28
2015-02-20T14:28:39.000Z
2021-11-04T09:21:53.000Z
test/resources/app.py
earwig/bitshift
92db937a317ac6742f33f7bea0b534eac21aaa22
[ "MIT" ]
null
null
null
test/resources/app.py
earwig/bitshift
92db937a317ac6742f33f7bea0b534eac21aaa22
[ "MIT" ]
7
2015-06-07T08:07:39.000Z
2019-07-13T01:19:54.000Z
""" Module to contain all the project's Flask server plumbing. """ from flask import Flask from flask import render_template, session from bitshift import assets # from bitshift.database import Database # from bitshift.query import parse_query app = Flask(__name__) app.config.from_object("bitshift.config") app_env ...
20.585366
58
0.726303
113
844
5.20354
0.40708
0.095238
0.102041
0
0
0
0
0
0
0
0
0
0.138626
844
40
59
21.1
0.808803
0.245261
0
0
0
0
0.1472
0
0
0
0
0
0
1
0.181818
false
0.045455
0.136364
0.136364
0.454545
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
3fafc0590d13ccf6fd142aa608a700d8b3b5f5dd
2,872
py
Python
lib/common/events.py
its-a-feature/Empire
8cfd54ff516050564e8de4d147227eaf1190cc48
[ "BSD-3-Clause" ]
3
2019-03-27T05:44:03.000Z
2021-07-01T01:35:29.000Z
lib/common/events.py
its-a-feature/Empire
8cfd54ff516050564e8de4d147227eaf1190cc48
[ "BSD-3-Clause" ]
null
null
null
lib/common/events.py
its-a-feature/Empire
8cfd54ff516050564e8de4d147227eaf1190cc48
[ "BSD-3-Clause" ]
1
2020-03-15T00:02:07.000Z
2020-03-15T00:02:07.000Z
""" Event handling system Every "major" event in Empire (loosely defined as everything you'd want to go into a report) is logged to the database. This file contains functions which help manage those events - logging them, fetching them, etc. """ import json from pydispatch import dispatcher #from lib.common import d...
38.293333
99
0.614554
384
2,872
4.518229
0.447917
0.032277
0.0317
0.032277
0.08415
0.08415
0.040346
0
0
0
0
0
0.25383
2,872
74
100
38.810811
0.809613
0.615251
0
0
0
0
0.200951
0
0
0
0
0.027027
0
1
0.086957
false
0
0.086957
0
0.173913
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
3fb5787301295c6a218118626df18da0969d4d2a
5,352
py
Python
numpy_linalg/_ln_manipulation.py
subhylahiri/numpy_linalg_extras
dfc875c43c5b0c734b0df2fcf14cd415406682bb
[ "BSD-3-Clause" ]
5
2019-01-16T01:47:00.000Z
2021-08-04T08:22:03.000Z
numpy_linalg/_ln_manipulation.py
subhylahiri/numpy_linalg_extras
dfc875c43c5b0c734b0df2fcf14cd415406682bb
[ "BSD-3-Clause" ]
null
null
null
numpy_linalg/_ln_manipulation.py
subhylahiri/numpy_linalg_extras
dfc875c43c5b0c734b0df2fcf14cd415406682bb
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # ========================================================================= # Created on Mon Sep 17 23:42:28 2018 # # @author: subhy # ========================================================================= """ Numpy's array manipulation routines, adapted to produce `lnarray`s instead of `nump...
43.16129
77
0.44133
486
5,352
4.718107
0.253086
0.116005
0.14915
0.022678
0.118186
0.045792
0
0
0
0
0
0.005688
0.080157
5,352
123
78
43.512195
0.460085
0.50654
0
0.029412
0
0
0.159644
0
0
0
0
0
0
1
0
false
0
0.044118
0
0.044118
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
3fb9b970076719d3c229099eb48245da9afc4504
643
py
Python
rcommander_pr2_gui/scripts/migrate_single_arm_joint_sequences.py
gt-ros-pkg/rcommander-pr2
7c7408db30525b80a77dde34b4a8af68ec23d5a4
[ "BSD-3-Clause" ]
3
2015-03-18T10:20:13.000Z
2021-03-01T02:46:20.000Z
rcommander_pr2_gui/scripts/migrate_single_arm_joint_sequences.py
gt-ros-pkg/rcommander-pr2
7c7408db30525b80a77dde34b4a8af68ec23d5a4
[ "BSD-3-Clause" ]
null
null
null
rcommander_pr2_gui/scripts/migrate_single_arm_joint_sequences.py
gt-ros-pkg/rcommander-pr2
7c7408db30525b80a77dde34b4a8af68ec23d5a4
[ "BSD-3-Clause" ]
2
2016-08-03T21:50:59.000Z
2021-03-01T02:46:20.000Z
import roslib; roslib.load_manifest('rcommander_pr2_gui') import rcommander.graph_model as gm import rcommander_pr2_gui.move_tool as mt import sys import pdb print 'loading', sys.argv[1] graph_model = gm.GraphModel.load(sys.argv[1]) states = graph_model.states_dict for k in states.keys(): state = states[k] if ...
29.227273
67
0.730949
94
643
4.776596
0.446809
0.13363
0.071269
0.093541
0.129176
0
0
0
0
0
0
0.007394
0.158631
643
21
68
30.619048
0.822551
0
0
0
0
0
0.063863
0
0
0
0
0
0
0
null
null
0
0.294118
null
null
0.117647
0
0
0
null
0
0
0
0
0
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
3fbbb4c6a2f77a02defb9a841574ec55d6ab867f
7,725
py
Python
edexOsgi/com.raytheon.edex.plugin.gfe/utility/common_static/base/gfe/smartinit/HRRR.py
srcarter3/awips2
37f31f5e88516b9fd576eaa49d43bfb762e1d174
[ "Apache-2.0" ]
null
null
null
edexOsgi/com.raytheon.edex.plugin.gfe/utility/common_static/base/gfe/smartinit/HRRR.py
srcarter3/awips2
37f31f5e88516b9fd576eaa49d43bfb762e1d174
[ "Apache-2.0" ]
null
null
null
edexOsgi/com.raytheon.edex.plugin.gfe/utility/common_static/base/gfe/smartinit/HRRR.py
srcarter3/awips2
37f31f5e88516b9fd576eaa49d43bfb762e1d174
[ "Apache-2.0" ]
1
2021-10-30T00:03:05.000Z
2021-10-30T00:03:05.000Z
## # This software was developed and / or modified by Raytheon Company, # pursuant to Contract DG133W-05-CQ-1067 with the US Government. # # U.S. EXPORT CONTROLLED TECHNICAL DATA # This software product contains export-restricted data whose # export/transfer/disclosure is restricted by U.S. law. Dissemination # to non...
36.267606
100
0.486084
934
7,725
3.963597
0.385439
0.019449
0.009724
0.010265
0.055916
0.045651
0.045651
0.013236
0
0
0
0.053806
0.239741
7,725
212
101
36.438679
0.576537
0.56945
0
0.024691
0
0
0.111877
0.061423
0
0
0
0
0
0
null
null
0
0.012346
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
3fc72e2ceb91f8dcc4ec2f9ebab02f5a084664b4
4,657
py
Python
sqmpy/security/manager.py
simphony/simphony-sqmpy
9d54b08eeb2526d155e6d0db16cc5557160577f2
[ "BSD-3-Clause" ]
1
2017-02-27T01:33:22.000Z
2017-02-27T01:33:22.000Z
sqmpy/security/manager.py
simphony/simphony-sqmpy
9d54b08eeb2526d155e6d0db16cc5557160577f2
[ "BSD-3-Clause" ]
6
2016-01-15T12:32:22.000Z
2017-06-28T08:23:50.000Z
sqmpy/security/manager.py
simphony/simphony-sqmpy
9d54b08eeb2526d155e6d0db16cc5557160577f2
[ "BSD-3-Clause" ]
null
null
null
""" sqmpy.manager ~~~~~ Provides user management """ import flask_login as flask_login from flask import current_app, session, request, g from sqmpy.security import constants from sqmpy.security.models import User, _AnonymousUserMixin from sqmpy.security.exceptions import SecurityManagerException from sqm...
30.638158
79
0.627872
593
4,657
4.779089
0.288364
0.023289
0.050812
0.04693
0.291814
0.208186
0.181369
0.155258
0.124206
0.124206
0
0.003846
0.274211
4,657
151
80
30.84106
0.834615
0.205712
0
0.252874
0
0
0.116676
0.008674
0
0
0
0.006623
0
1
0.057471
false
0.103448
0.08046
0
0.264368
0.022989
0
0
0
null
0
0
0
0
0
0
0
0
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
3fcd9874f7a5073caeeddf388fa423854a4224f3
3,220
py
Python
ceph/ceph_admin/dashboard.py
pdhiran/cephci
ba06523ad4a10eb70dc5295439abbe2a29723798
[ "MIT" ]
21
2019-04-22T07:12:37.000Z
2022-03-11T09:34:24.000Z
ceph/ceph_admin/dashboard.py
pdhiran/cephci
ba06523ad4a10eb70dc5295439abbe2a29723798
[ "MIT" ]
601
2019-03-21T09:29:53.000Z
2022-03-31T18:16:53.000Z
ceph/ceph_admin/dashboard.py
pdhiran/cephci
ba06523ad4a10eb70dc5295439abbe2a29723798
[ "MIT" ]
72
2019-02-20T22:23:55.000Z
2022-03-31T13:59:25.000Z
"""Manage the Ceph Dashboard service via ceph CLI.""" import json import logging import tempfile from time import sleep import requests LOG = logging.getLogger(__name__) def enable_dashboard(cls, config): """Method to enable the dashboard module. if user bootstrap with skip-dashboard option then enabli...
28.245614
86
0.622981
395
3,220
5.005063
0.36962
0.021244
0.027314
0.026302
0.096105
0.096105
0.03743
0.03743
0.03743
0.03743
0
0.004634
0.262733
3,220
113
87
28.495575
0.828138
0.258696
0
0.088235
0
0
0.242503
0.024772
0
0
0
0
0
1
0.029412
false
0.102941
0.073529
0
0.102941
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
3fced6e78cad1b305533263df59befe689cededc
6,320
py
Python
ros/src/waypoint_updater/waypoint_updater.py
qibin0506/CarND-Capstone
f3c3b6e6e25f2e5b79dc3280f838a53c219a4a71
[ "MIT" ]
null
null
null
ros/src/waypoint_updater/waypoint_updater.py
qibin0506/CarND-Capstone
f3c3b6e6e25f2e5b79dc3280f838a53c219a4a71
[ "MIT" ]
8
2020-01-28T22:46:06.000Z
2022-01-13T01:17:23.000Z
ros/src/waypoint_updater/waypoint_updater.py
qibin0506/CarND-Capstone
f3c3b6e6e25f2e5b79dc3280f838a53c219a4a71
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy import numpy as np from geometry_msgs.msg import PoseStamped from styx_msgs.msg import Lane, Waypoint from std_msgs.msg import Header from scipy.spatial import KDTree from std_msgs.msg import Int32 import math ''' This node will publish waypoints from the car's current position to ...
37.39645
125
0.663291
862
6,320
4.656613
0.307425
0.055057
0.042352
0.032885
0.081714
0.014948
0
0
0
0
0
0.00763
0.253481
6,320
168
126
37.619048
0.843154
0.179114
0
0.021053
0
0
0.047853
0
0
0
0
0.02381
0
1
0.126316
false
0.021053
0.084211
0.010526
0.273684
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
3fd0465c9ab5297dc89bf56522c0d80640858b25
808
py
Python
imix/models/__init__.py
linxi1158/iMIX
af87a17275f02c94932bb2e29f132a84db812002
[ "Apache-2.0" ]
23
2021-06-26T08:45:19.000Z
2022-03-02T02:13:33.000Z
imix/models/__init__.py
XChuanLee/iMIX
99898de97ef8b45462ca1d6bf2542e423a73d769
[ "Apache-2.0" ]
null
null
null
imix/models/__init__.py
XChuanLee/iMIX
99898de97ef8b45462ca1d6bf2542e423a73d769
[ "Apache-2.0" ]
9
2021-06-10T02:36:20.000Z
2021-11-09T02:18:16.000Z
from .builder import (ENCODER, EMBEDDING, HEADS, BACKBONES, COMBINE_LAYERS, LOSSES, VQA_MODELS, build_vqa_models, build_backbone, build_head, build_combine_layer, build_encoder, build_embedding, build_model, build_loss, build_pooler) from .backbones import * from .embedding i...
26.064516
115
0.67203
90
808
5.655556
0.244444
0.137525
0.082515
0.117878
0.53831
0.53831
0.369352
0.369352
0.369352
0.369352
0
0
0.222772
808
30
116
26.933333
0.81051
0
0
0
0
0
0.222772
0
0
0
0
0
0
1
0
false
0
0.310345
0
0.310345
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
3fd627072276a0e118e68f2e5d705dfc46c0597f
1,143
py
Python
applications/blog/controllers/configmenu.py
eddgt/web2py
956c67754bbbdeaa5479f61d6a91ce0de87861e9
[ "BSD-3-Clause" ]
null
null
null
applications/blog/controllers/configmenu.py
eddgt/web2py
956c67754bbbdeaa5479f61d6a91ce0de87861e9
[ "BSD-3-Clause" ]
null
null
null
applications/blog/controllers/configmenu.py
eddgt/web2py
956c67754bbbdeaa5479f61d6a91ce0de87861e9
[ "BSD-3-Clause" ]
null
null
null
# coding: utf8 # intente algo como def index(): return dict(message="hello from configmenu.py") def articulos(): formulario =SQLFORM.smartgrid(db.articulo) return locals() def usuarios(): formulario =SQLFORM.grid(db.auth_user) return locals() def enviaCorreo(): #mail.send('oulloa@televida.biz', # 'As...
42.333333
205
0.664917
148
1,143
5.054054
0.648649
0.06016
0.100267
0.11631
0.235294
0.18984
0.18984
0.18984
0.18984
0.18984
0
0.040598
0.181102
1,143
26
206
43.961538
0.758547
0.315836
0
0.142857
0
0.071429
0.451488
0.137128
0
0
0
0
0
1
0.285714
false
0
0
0.071429
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
3fdabde26bf6d06e88c223f7ea86d184462ed360
9,139
py
Python
server/beam/beam.py
tweakyllama/beam-app
147bb6832c81e45b89566f58ea8dfe1dcded2078
[ "MIT" ]
null
null
null
server/beam/beam.py
tweakyllama/beam-app
147bb6832c81e45b89566f58ea8dfe1dcded2078
[ "MIT" ]
null
null
null
server/beam/beam.py
tweakyllama/beam-app
147bb6832c81e45b89566f58ea8dfe1dcded2078
[ "MIT" ]
null
null
null
from numpy import array as a import numpy as np import sympy as sp class Section(object): def __init__(self, start, end): self._start = start self._end = end def __str__(self): return "Start: {} End: {}".format(self.start, self.end) @property def start(self): return s...
31.085034
115
0.568115
1,111
9,139
4.541854
0.123312
0.03805
0.01308
0.019818
0.395957
0.315497
0.216805
0.174792
0.152596
0.134364
0
0.003548
0.321589
9,139
293
116
31.191126
0.810323
0.093227
0
0.236453
0
0
0.024816
0
0
0
0
0.010239
0
1
0.157635
false
0
0.019704
0.078818
0.305419
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
3fdd8bd06f1de0ed11f1e650cda630b6f2c07766
4,422
py
Python
framework/OutStreams/PlotEntity.py
rinelson456/raven
1114246136a2f72969e75b5e99a11b35500d4eef
[ "Apache-2.0" ]
null
null
null
framework/OutStreams/PlotEntity.py
rinelson456/raven
1114246136a2f72969e75b5e99a11b35500d4eef
[ "Apache-2.0" ]
null
null
null
framework/OutStreams/PlotEntity.py
rinelson456/raven
1114246136a2f72969e75b5e99a11b35500d4eef
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Battelle Energy Alliance, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
34.546875
113
0.698553
539
4,422
5.692022
0.463822
0.028683
0.008801
0.01043
0
0
0
0
0
0
0
0.004043
0.21687
4,422
128
114
34.546875
0.881894
0.520127
0
0
0
0
0.066229
0
0
0
0
0.015625
0
1
0.148936
false
0
0.106383
0
0.319149
0.021277
0
0
0
null
0
0
0
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
3fde4d669cc4a99ba78a9e5e20732ea6839263d2
334
py
Python
convert.py
Rsdv13/Audio-Emotion-Analysis
f204e9665844665077d8004ce1d23b12535ef5fd
[ "Apache-2.0" ]
null
null
null
convert.py
Rsdv13/Audio-Emotion-Analysis
f204e9665844665077d8004ce1d23b12535ef5fd
[ "Apache-2.0" ]
null
null
null
convert.py
Rsdv13/Audio-Emotion-Analysis
f204e9665844665077d8004ce1d23b12535ef5fd
[ "Apache-2.0" ]
null
null
null
import sys import glob from pydub import AudioSegment import os #Path to all mp3 files files_path = os.path.join("audio_dataset","Actor_01",'/*.mp3') print(files_path) for file in sorted(glob.iglob(files_path)): name = file.split('.mp3')[0] segment=AudioSegment.from_mp3(file) segment.export(name + '.wav',...
23.857143
62
0.721557
52
334
4.519231
0.576923
0.114894
0
0
0
0
0
0
0
0
0
0.024138
0.131737
334
13
63
25.692308
0.786207
0.062874
0
0
0
0
0.121795
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0.1
0
0
0
null
0
0
0
0
0
0
0
0
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
3fde625d929d11e7574b18ec7c9e5165d718598a
2,873
py
Python
device/contracts/bridge.py
twindebank/DrHue
9a957af37196f87804c5259169fb826409d18705
[ "MIT" ]
null
null
null
device/contracts/bridge.py
twindebank/DrHue
9a957af37196f87804c5259169fb826409d18705
[ "MIT" ]
null
null
null
device/contracts/bridge.py
twindebank/DrHue
9a957af37196f87804c5259169fb826409d18705
[ "MIT" ]
null
null
null
import datetime from dataclasses import dataclass, field, fields from typing import Dict from loguru import logger from contracts.fields import asdict, STATE, TELEMETRY from contracts.lights import LightGroup from contracts.sensor import Sensors """ todo make a base class from this to use for other data sources """ ...
32.280899
119
0.652628
359
2,873
4.983287
0.264624
0.044718
0.026831
0.0436
0.158748
0.158748
0.106205
0.067077
0.067077
0.067077
0
0
0.260355
2,873
88
120
32.647727
0.841882
0.042116
0
0.112903
0
0
0.062359
0
0
0
0
0.011364
0
1
0.080645
false
0
0.112903
0.032258
0.370968
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
3fe352dc61362c27ad915fb0d56e62a5d90ac542
452
py
Python
.history/iara/tools/puts_20210715173935.py
perseu912/iara
eed939a6fb9a225d11a28797e6799945c3cc2a7a
[ "MIT" ]
null
null
null
.history/iara/tools/puts_20210715173935.py
perseu912/iara
eed939a6fb9a225d11a28797e6799945c3cc2a7a
[ "MIT" ]
null
null
null
.history/iara/tools/puts_20210715173935.py
perseu912/iara
eed939a6fb9a225d11a28797e6799945c3cc2a7a
[ "MIT" ]
1
2021-07-17T05:11:34.000Z
2021-07-17T05:11:34.000Z
from iara.system.date import date_base as date from iara.system.info import ram __cpu_show__ = False def puts(args,sep:str=' ',path_file:str=None)->None: input = args cpu = f'[CPU: {ram()[2]}%_{ram()[3]}ms]\n' if(__cpu_show__) else '' text = (f'{cpu}{date()}-> {input}') print(text) if path_file: path = ...
26.588235
69
0.626106
76
452
3.5
0.526316
0.090226
0.105263
0
0
0
0
0
0
0
0
0.008043
0.174779
452
16
70
28.25
0.705094
0.042035
0
0
0
0
0.153132
0.062645
0
0
0
0.0625
0
1
0.083333
false
0
0.166667
0
0.25
0.083333
0
0
0
null
0
0
0
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
3fe8c21588b2e311568008838072d647e783ac90
2,502
py
Python
scraper.py
dlitvakb/horrible_dad_jokes_bot
d42f35d042f8726b0c6c5839e503d2fb458df105
[ "Unlicense" ]
3
2018-04-03T23:49:25.000Z
2018-09-17T00:34:06.000Z
scraper.py
dlitvakb/horrible_dad_jokes_bot
d42f35d042f8726b0c6c5839e503d2fb458df105
[ "Unlicense" ]
1
2021-06-01T22:01:08.000Z
2021-06-01T22:01:08.000Z
scraper.py
dlitvakb/horrible_dad_jokes_bot
d42f35d042f8726b0c6c5839e503d2fb458df105
[ "Unlicense" ]
null
null
null
import requests from bs4 import BeautifulSoup from models import Joke class TwitterScraper(object): BASE_URL = 'https://twitter.com/' def __init__(self, user='baddadjokes'): self.user = user def scrape(self): for tweet in self._tweets(): Joke( self._tweet_ref(...
24.772277
71
0.513589
276
2,502
4.442029
0.25
0.066069
0.057096
0.069331
0.176998
0.124796
0.088091
0.044046
0
0
0
0.009305
0.355715
2,502
100
72
25.02
0.751241
0
0
0.210526
0
0
0.112
0.0092
0
0
0
0
0
1
0.171053
false
0
0.039474
0.105263
0.407895
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
3fee9dac97e83f1e62f04c21f92999625aa1c6f1
6,216
py
Python
test/submit_test.py
mike715/assignment
f69378420ce2bb845abaef0f448eab303aa7a7e7
[ "MIT" ]
101
2016-08-08T05:41:27.000Z
2022-03-09T15:04:42.000Z
test/submit_test.py
sthagen/assignment
57d18b188177269c8fe07f3d9bef416720c7b465
[ "MIT" ]
44
2016-08-07T20:57:56.000Z
2022-02-01T08:07:50.000Z
test/submit_test.py
sthagen/assignment
57d18b188177269c8fe07f3d9bef416720c7b465
[ "MIT" ]
88
2016-10-05T23:38:45.000Z
2022-02-28T09:28:46.000Z
import sys, os, pytest sys.path.append('.') import submit output_worked = 'Your submission has been accepted and will be graded shortly.' from io import StringIO class TestCorrectMetadata: def test_001(self): meta_data = submit.load_metadata('test/_coursera') assert len(meta_data.part_data) == ...
33.967213
136
0.617761
777
6,216
4.817246
0.200772
0.033663
0.059845
0.063585
0.675394
0.620892
0.563452
0.540208
0.488378
0.367085
0
0.020516
0.239382
6,216
182
137
34.153846
0.771151
0.382079
0
0.47619
0
0
0.142178
0.00555
0
0
0
0
0.22619
1
0.202381
false
0
0.035714
0
0.297619
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
3ff4446a7ed93ad725edad622a2b17be32639fd5
351
py
Python
creating_user/migrations/0005_auto_20200725_0007.py
Zayanto/Protocol-CRM
c81489d69de581d8216e20f7dd80089116f85c7b
[ "MIT" ]
null
null
null
creating_user/migrations/0005_auto_20200725_0007.py
Zayanto/Protocol-CRM
c81489d69de581d8216e20f7dd80089116f85c7b
[ "MIT" ]
null
null
null
creating_user/migrations/0005_auto_20200725_0007.py
Zayanto/Protocol-CRM
c81489d69de581d8216e20f7dd80089116f85c7b
[ "MIT" ]
null
null
null
# Generated by Django 3.0.7 on 2020-07-24 18:37 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('creating_user', '0004_auto_20200724_2213'), ] operations = [ migrations.RenameModel( old_name='User_details', new_name='Comp...
19.5
53
0.618234
39
351
5.358974
0.820513
0
0
0
0
0
0
0
0
0
0
0.122047
0.276353
351
17
54
20.647059
0.700787
0.128205
0
0
1
0
0.207237
0.075658
0
0
0
0
0
1
0
false
0
0.090909
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3ffb2b17b61355190c3fdf0d8e01d50dd472a662
2,117
py
Python
confirmationdialog/confirmationdialog.py
AutomataRaven/azaharTEA
2d5a7d96b37bca9b3a914e305e493824a0f60207
[ "MIT" ]
5
2019-03-10T16:33:21.000Z
2021-04-07T17:24:32.000Z
confirmationdialog/confirmationdialog.py
Errantgod/azaharTEA
2d5a7d96b37bca9b3a914e305e493824a0f60207
[ "MIT" ]
8
2017-02-11T06:21:28.000Z
2017-02-22T05:50:35.000Z
confirmationdialog/confirmationdialog.py
Errantgod/azaharTEA
2d5a7d96b37bca9b3a914e305e493824a0f60207
[ "MIT" ]
2
2019-10-05T20:20:15.000Z
2020-06-28T18:46:58.000Z
""" confirmationdialog ================== **Module** : ``confirmationdialog.confirmationdialog.py`` Contains the class :py:class:`.ConfirmationDialog`, used to show a confirmation dialog. """ from kivy.uix.popup import Popup from kivy.properties import ObjectProperty from kivy.properties import BooleanProperty impo...
32.569231
112
0.623524
242
2,117
5.376033
0.31405
0.037663
0.061491
0.076864
0.241353
0.170638
0.170638
0.170638
0.170638
0.093774
0
0
0.246575
2,117
64
113
33.078125
0.815674
0.244686
0
0.086957
0
0
0
0
0
0
0
0
0
1
0.130435
false
0
0.173913
0
0.565217
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
3ffb4fc0cb32aea3678dc5a23f9f343e31d50e25
498
py
Python
script/pythontmp/pc.py
nkysg/Asenal
12444c7e50fae2be82d3c4737715a52e3693a3cd
[ "Apache-2.0" ]
null
null
null
script/pythontmp/pc.py
nkysg/Asenal
12444c7e50fae2be82d3c4737715a52e3693a3cd
[ "Apache-2.0" ]
null
null
null
script/pythontmp/pc.py
nkysg/Asenal
12444c7e50fae2be82d3c4737715a52e3693a3cd
[ "Apache-2.0" ]
2
2015-09-30T02:57:14.000Z
2018-11-14T03:54:48.000Z
#!/usr/bin/env python import cookielib, urllib2 import re import sys,os cj = cookielib.LWPCookieJar() cj.revert = ('renren.cookie') opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj)) r = opener.open('http://www.meituan.com') print cj sys.exit(0) homeurl = 'http://www.baidu.com' content = urllib2.urlopen(h...
23.714286
74
0.692771
71
498
4.84507
0.591549
0.075581
0.05814
0.081395
0.087209
0
0
0
0
0
0
0.013423
0.10241
498
20
75
24.9
0.756152
0.040161
0
0.235294
0
0
0.251572
0
0
0
0
0
0
0
null
null
0
0.176471
null
null
0.235294
0
0
0
null
0
0
0
0
0
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
3ffbeac274c09c2789259b02ecad4da549ddc5c9
210
py
Python
lang/py/pylib/code/getopt/getopt_short.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
13
2020-01-04T07:37:38.000Z
2021-08-31T05:19:58.000Z
lang/py/pylib/code/getopt/getopt_short.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
3
2020-06-05T22:42:53.000Z
2020-08-24T07:18:54.000Z
lang/py/pylib/code/getopt/getopt_short.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
9
2020-10-19T04:53:06.000Z
2021-08-31T05:20:01.000Z
#!/usr/bin/env python """Using optparse with single-letter options. """ #end_pymotw_header import getopt opts, args = getopt.getopt(['-a', '-bval', '-c', 'val'], 'ab:c:') for opt in opts: print opt
16.153846
65
0.628571
31
210
4.193548
0.83871
0
0
0
0
0
0
0
0
0
0
0
0.17619
210
12
66
17.5
0.751445
0.17619
0
0
0
0
0.139344
0
0
0
0
0
0
0
null
null
0
0.25
null
null
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
b20ea0623cc68ca11423755a20f2bc367964cab1
3,786
py
Python
test/data_broker/test_github_data_broker.py
jeremycward/ipp-core
c3dbebaf997b045da8385cb3dfab46820e40afda
[ "MIT" ]
1
2019-12-04T15:38:54.000Z
2019-12-04T15:38:54.000Z
test/data_broker/test_github_data_broker.py
jeremycward/ipp-core
c3dbebaf997b045da8385cb3dfab46820e40afda
[ "MIT" ]
null
null
null
test/data_broker/test_github_data_broker.py
jeremycward/ipp-core
c3dbebaf997b045da8385cb3dfab46820e40afda
[ "MIT" ]
1
2019-12-04T15:42:57.000Z
2019-12-04T15:42:57.000Z
import os import shutil import tempfile import unittest import pandas as pd import datetime import random import test.testutil.file_utils as fu from github import Github, InputGitAuthor import test.testutil.log_utils as lu import test.testutil.pandas_utils as pu import test.testutil.github_utils as gu from isharp.datah...
38.242424
97
0.685156
477
3,786
5.238994
0.297694
0.090036
0.032413
0.043217
0.326931
0.208884
0.178071
0.120848
0.084834
0.084834
0
0.014061
0.192287
3,786
98
98
38.632653
0.803139
0.454834
0
0
0
0
0.087798
0.06994
0
0
0
0
0.073171
1
0.073171
false
0.02439
0.365854
0
0.463415
0.04878
0
0
0
null
0
0
0
0
0
0
0
0
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
b20eba99220a92c0181087c8d2ff6b1a8395bb5b
856
py
Python
examples/identify-installed-non-split-debug-pkgs.py
pombreda/pkgcore
b438fc573af1a031d7ce12adbbf299bab5338451
[ "BSD-3-Clause" ]
1
2021-07-05T13:10:18.000Z
2021-07-05T13:10:18.000Z
examples/identify-installed-non-split-debug-pkgs.py
vapier/pkgcore
35a7e4f4f0fc61dd9c4dc72d35a57e2e9d5b832f
[ "BSD-3-Clause" ]
8
2015-03-24T14:21:44.000Z
2015-03-24T14:21:44.000Z
examples/identify-installed-non-split-debug-pkgs.py
vapier/pkgcore
35a7e4f4f0fc61dd9c4dc72d35a57e2e9d5b832f
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from pkgcore.config import load_config from pkgcore.util.file_type import file_identifier debug_paths = ["/usr/lib/debug"] fi = file_identifier() vdbs = load_config().get_default("domain").vdb for repo in vdbs: for pkg in repo: contents = getattr(pkg, 'contents', ()) if not ...
25.176471
50
0.53271
101
856
4.435644
0.514851
0.049107
0.049107
0
0
0
0
0
0
0
0
0
0.377336
856
33
51
25.939394
0.840525
0.093458
0
0.291667
0
0
0.047927
0
0
0
0
0
0
0
null
null
0
0.083333
null
null
0.041667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
b7460e7cb4f448b74b89cca16add0b53af77be00
905
py
Python
setup.py
fwani/CoverageToImg
d0475c5d51405b1c0edd6bb1df979e789e57efbc
[ "MIT" ]
null
null
null
setup.py
fwani/CoverageToImg
d0475c5d51405b1c0edd6bb1df979e789e57efbc
[ "MIT" ]
null
null
null
setup.py
fwani/CoverageToImg
d0475c5d51405b1c0edd6bb1df979e789e57efbc
[ "MIT" ]
null
null
null
import setuptools setuptools.setup( name="coverage2img", url="https://github.com/fwani/CoverageToImg", version="0.0.1rc2", author="fwani", author_email="seungfwani@gmail.com", description="This is a tool for converting coverage.json to image.", long_description=open("README.md", "r").read()...
29.193548
83
0.60442
99
905
5.424242
0.737374
0.055866
0
0
0
0
0
0
0
0
0
0.032951
0.228729
905
30
84
30.166667
0.73639
0
0
0.103448
0
0
0.433149
0.024309
0
0
0
0
0
1
0
true
0
0.034483
0
0.034483
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
b74f82f27d24663b8e591ce8d7e3b12dc9c5eb07
2,453
py
Python
benchmark.py
stoffus/frigate
53ccc903daac3993b9431e39c1b985381011ad1c
[ "MIT" ]
5
2020-03-11T00:03:21.000Z
2020-10-06T22:00:30.000Z
benchmark.py
stoffus/frigate
53ccc903daac3993b9431e39c1b985381011ad1c
[ "MIT" ]
null
null
null
benchmark.py
stoffus/frigate
53ccc903daac3993b9431e39c1b985381011ad1c
[ "MIT" ]
3
2020-01-13T14:56:12.000Z
2020-10-08T12:25:24.000Z
import os from statistics import mean import multiprocessing as mp import numpy as np import datetime from frigate.edgetpu import ObjectDetector, EdgeTPUProcess, RemoteObjectDetector, load_labels my_frame = np.expand_dims(np.full((300,300,3), 1, np.uint8), axis=0) labels = load_labels('/labelmap.txt') ###### # Minima...
31.050633
104
0.705667
326
2,453
5.165644
0.282209
0.095012
0.112827
0.166271
0.456651
0.412708
0.341449
0.299881
0.24228
0.24228
0
0.028015
0.141459
2,453
79
105
31.050633
0.771605
0.394619
0
0.1875
0
0
0.128151
0.021008
0
0
0
0
0
1
0.03125
false
0
0.1875
0
0.21875
0.09375
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
b7533579bf0cde2065288a8a87ebb7c256685334
5,981
py
Python
postman_problems/stats.py
jackwackus/postman_problems
95d946476a8d796674f604ba2f3dab650b1ad692
[ "MIT" ]
null
null
null
postman_problems/stats.py
jackwackus/postman_problems
95d946476a8d796674f604ba2f3dab650b1ad692
[ "MIT" ]
null
null
null
postman_problems/stats.py
jackwackus/postman_problems
95d946476a8d796674f604ba2f3dab650b1ad692
[ "MIT" ]
null
null
null
# modified version of function by brooksandrew import collections def calculate_postman_solution_stats(circuit, edge_weight_name='distance'): #JC modified for directed graphs """ Calculate summary stats on the route Args: circuit (list[tuple]): output from `cpp` or `rpp` solvers ...
77.675325
251
0.737168
791
5,981
5.268015
0.112516
0.12959
0.148788
0.103672
0.74514
0.578834
0.49388
0.425726
0.360691
0.324214
0
0.028362
0.133423
5,981
76
252
78.697368
0.775613
0.057683
0
0.036364
0
0
0.374343
0.122486
0
0
0
0
0
1
0.018182
false
0.363636
0.018182
0
0.054545
0.381818
0
0
0
null
0
0
0
0
0
0
0
0
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
b75424d9174c5bebe97d4f9b09d94bc48de27337
2,125
py
Python
dumbo/Householder/run_householder.py
arbenson/mrtsqr
006a2de645db9ad4735971cc0a77739249c1437d
[ "BSD-2-Clause" ]
11
2015-01-09T18:36:29.000Z
2022-02-09T09:02:36.000Z
dumbo/Householder/run_householder.py
arbenson/mrtsqr
006a2de645db9ad4735971cc0a77739249c1437d
[ "BSD-2-Clause" ]
null
null
null
dumbo/Householder/run_householder.py
arbenson/mrtsqr
006a2de645db9ad4735971cc0a77739249c1437d
[ "BSD-2-Clause" ]
1
2020-05-13T12:55:51.000Z
2020-05-13T12:55:51.000Z
""" Main driver script for Householder QR. This is experimental code. The algorithm is very slow and is used for performance comparisons only. Please use tsqr.py to compute R. Austin R. Benson David F. Gleich Copyright (c) 2012-2014 """ import os import shutil import subprocess import sys import time import util from...
27.960526
80
0.616941
321
2,125
3.862928
0.358255
0.070968
0.03871
0.03871
0.294355
0.265323
0.164516
0.112903
0.066129
0.066129
0
0.025332
0.219765
2,125
75
81
28.333333
0.722557
0.015059
0
0.038462
0
0
0.281014
0.011327
0
0
0
0
0
0
null
null
0
0.134615
null
null
0.019231
0
0
0
null
0
0
0
0
0
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
b75796a0f1750b82953e242cf17a37f5ab86f8b8
8,468
py
Python
tethysapp/storage_capacity/controllers.py
elisenavidad/Prospector
0b8c7f12382299bade9419141ba202a96c20f0d7
[ "MIT" ]
null
null
null
tethysapp/storage_capacity/controllers.py
elisenavidad/Prospector
0b8c7f12382299bade9419141ba202a96c20f0d7
[ "MIT" ]
null
null
null
tethysapp/storage_capacity/controllers.py
elisenavidad/Prospector
0b8c7f12382299bade9419141ba202a96c20f0d7
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.contrib.auth.decorators import login_required from tethys_sdk.gizmos import TableView, LinePlot, Button, SelectInput, TextInput from math import pi, log10 from .model import SessionMaker, FlowDurationData import json, sys, cgi @login_required() def home(request): ...
35.579832
129
0.54145
835
8,468
5.402395
0.362874
0.051208
0.067391
0.030592
0.136777
0.091554
0.08712
0.08712
0.08712
0.08712
0
0.051228
0.331483
8,468
238
130
35.579832
0.745628
0.016179
0
0.159341
0
0
0.140549
0.007167
0
0
0
0
0
0
null
null
0
0.032967
null
null
0.010989
0
0
0
null
0
0
0
0
0
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
b758bacb4690ae459db479a64fe028b95583f204
9,386
py
Python
msgs.py
kokjo/pycoin
a8f8feffe326dfdffae5bd0c4e6a7d3ac3318641
[ "Unlicense" ]
3
2017-08-17T23:00:28.000Z
2021-05-15T19:12:02.000Z
msgs.py
kokjo/pycoin
a8f8feffe326dfdffae5bd0c4e6a7d3ac3318641
[ "Unlicense" ]
1
2015-12-04T11:33:05.000Z
2015-12-04T11:33:05.000Z
msgs.py
kokjo/pycoin
a8f8feffe326dfdffae5bd0c4e6a7d3ac3318641
[ "Unlicense" ]
3
2017-05-18T17:32:15.000Z
2020-06-08T06:48:45.000Z
"""Contains the objects representing each message in the protocol Serialization is provided by the jserialize (for json) and bserialize (for the wire protocol) modules""" import struct import time import random import binhex import jserialize as js import bserialize as bs from utils import * MAGIC_MAINNET = 0xd9b4be...
25.644809
137
0.533667
1,056
9,386
4.691288
0.172348
0.05107
0.034316
0.054905
0.384538
0.266653
0.250303
0.211546
0.211546
0.211546
0
0.011683
0.306947
9,386
365
138
25.715068
0.749885
0.020456
0
0.409938
0
0
0.093289
0
0
0
0.002219
0
0
0
null
null
0.006211
0.021739
null
null
0.003106
0
0
0
null
0
0
0
0
0
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
b758fabcb27737e407c5d4d7b7b83ffec252036b
3,739
py
Python
parsing_content_from_web/megasena_site_caixa_parser_search10_fileless.py
bashrootshell/megasena-web-scraper-resultados
426dbee677ae19398887070435e4e235542d3dd7
[ "BSD-3-Clause" ]
3
2021-03-22T17:16:20.000Z
2022-03-22T12:55:42.000Z
parsing_content_from_web/megasena_site_caixa_parser_search10_fileless.py
bashrootshell/megasena-web-scraper-resultados
426dbee677ae19398887070435e4e235542d3dd7
[ "BSD-3-Clause" ]
null
null
null
parsing_content_from_web/megasena_site_caixa_parser_search10_fileless.py
bashrootshell/megasena-web-scraper-resultados
426dbee677ae19398887070435e4e235542d3dd7
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 from bs4 import BeautifulSoup as bsoup from requests import Session, get, exceptions from requests.adapters import HTTPAdapter from requests.packages.urllib3.util.retry import Retry """ PEP8 compliant “Readability counts." “Beautiful is better than ugly.” — The Zen of Python """...
37.767677
80
0.599358
517
3,739
4.257253
0.450677
0.04498
0.03453
0.011813
0.091776
0.091776
0.091776
0.091776
0.091776
0.091776
0
0.099338
0.232683
3,739
99
81
37.767677
0.66748
0.01578
0
0.030769
0
0
0.170283
0.012357
0
0
0
0.010101
0
1
0
false
0
0.061538
0
0.061538
0.138462
0
0
0
null
0
0
0
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
b75b1c1aedd6ce6a8a9970eff1ae5199cd97fbba
1,143
py
Python
PyStationB/libraries/StaticCharacterization/tests/test_config.py
BrunoKM/station-b-libraries
ea3591837e4a33f0bef789d905467754c27913b3
[ "MIT" ]
6
2021-09-29T15:46:55.000Z
2021-12-14T18:39:51.000Z
PyStationB/libraries/StaticCharacterization/tests/test_config.py
BrunoKM/station-b-libraries
ea3591837e4a33f0bef789d905467754c27913b3
[ "MIT" ]
null
null
null
PyStationB/libraries/StaticCharacterization/tests/test_config.py
BrunoKM/station-b-libraries
ea3591837e4a33f0bef789d905467754c27913b3
[ "MIT" ]
3
2021-09-27T10:35:20.000Z
2021-10-02T17:53:07.000Z
# ------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. # ----------------------------------------------------------------------...
51.954545
93
0.60105
122
1,143
5.491803
0.598361
0.089552
0.059701
0
0
0
0
0
0
0
0
0.003015
0.129484
1,143
21
94
54.428571
0.670352
0.351706
0
0
0
0
0.124317
0
0
0
0
0
0.461538
1
0.076923
false
0
0.153846
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
b75e61c26e1a098c068a4239c3ef76488fe27e24
1,815
py
Python
bcs-ui/backend/components/ssm.py
schneesu/bk-bcs
40ac92c114ad79444c0594b5333d76ef64818d03
[ "Apache-2.0" ]
599
2019-06-25T03:20:46.000Z
2022-03-31T12:14:33.000Z
bcs-ui/backend/components/ssm.py
schneesu/bk-bcs
40ac92c114ad79444c0594b5333d76ef64818d03
[ "Apache-2.0" ]
537
2019-06-27T06:03:44.000Z
2022-03-31T12:10:01.000Z
bcs-ui/backend/components/ssm.py
schneesu/bk-bcs
40ac92c114ad79444c0594b5333d76ef64818d03
[ "Apache-2.0" ]
214
2019-06-25T03:26:05.000Z
2022-03-31T07:52:03.000Z
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
40.333333
115
0.776309
270
1,815
5.02963
0.496296
0.072901
0.037555
0.023564
0.200295
0.200295
0.162003
0.061856
0.061856
0.061856
0
0.010044
0.122314
1,815
44
116
41.25
0.842436
0.419835
0
0.111111
0
0
0.234783
0.099517
0
0
0
0
0
1
0.222222
false
0
0.222222
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
b75f3f25ac9c2db39c2ab140b4a1881c036b5417
3,689
py
Python
src/CIQS-CLI-Extension/cloudintelligencequickstart/models/microsoft_ciqs_models_deployment_deployment_provisioning_step.py
Azure/CIQS-Azure-Cli-Extension
1203b3180f9d5a6db2ba443f437d115e996fb5be
[ "MIT" ]
1
2020-06-01T13:59:38.000Z
2020-06-01T13:59:38.000Z
src/CIQS-CLI-Extension/cloudintelligencequickstart/models/microsoft_ciqs_models_deployment_deployment_provisioning_step.py
Azure/CIQS-Azure-Cli-Extension
1203b3180f9d5a6db2ba443f437d115e996fb5be
[ "MIT" ]
2
2018-06-02T00:06:53.000Z
2018-07-20T21:00:47.000Z
src/CIQS-CLI-Extension/cloudintelligencequickstart/models/microsoft_ciqs_models_deployment_deployment_provisioning_step.py
Azure/CIQS-Azure-Cli-Extension
1203b3180f9d5a6db2ba443f437d115e996fb5be
[ "MIT" ]
2
2018-06-01T19:18:51.000Z
2021-01-10T10:56:29.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- from ...
42.402299
313
0.643264
360
3,689
6.397222
0.219444
0.052106
0.052106
0.015632
0.048632
0
0
0
0
0
0
0.000335
0.190295
3,689
86
314
42.895349
0.770673
0.349146
0
0
1
0
0.260116
0.050245
0
0
0
0
0
1
0.026316
false
0
0.026316
0
0.105263
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
b7635db257f7cccfd2171c40663594e76b0f2ca4
537
py
Python
tests/test_io/test_ioresult_container/test_ioresulte_cast.py
ksurta/returns
9746e569303f214d035462ae3dffe5c49abdcfa7
[ "BSD-2-Clause" ]
null
null
null
tests/test_io/test_ioresult_container/test_ioresulte_cast.py
ksurta/returns
9746e569303f214d035462ae3dffe5c49abdcfa7
[ "BSD-2-Clause" ]
null
null
null
tests/test_io/test_ioresult_container/test_ioresulte_cast.py
ksurta/returns
9746e569303f214d035462ae3dffe5c49abdcfa7
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from returns.io import IOFailure, IOResult, IOResultE, IOSuccess from returns.pipeline import is_successful def _function(arg: int) -> IOResultE[float]: if arg == 0: return IOFailure(ZeroDivisionError('Divided by 0')) return IOSuccess(10 / arg) def test_ioresulte(): """E...
26.85
64
0.703911
64
537
5.8125
0.5625
0.05914
0
0
0
0
0
0
0
0
0
0.022779
0.182495
537
19
65
28.263158
0.824601
0.121043
0
0
0
0
0.025751
0
0
0
0
0
0.181818
1
0.181818
false
0
0.181818
0
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
b7661738c8d4351fd6657e5c7395f843b0616c33
9,650
py
Python
rally_openstack/services/identity/identity.py
RSE-Cambridge/rally-openstack
32bbc091bbce1db625a2fc22da28b32718befa13
[ "Apache-2.0" ]
1
2018-01-01T00:43:41.000Z
2018-01-01T00:43:41.000Z
rally_openstack/services/identity/identity.py
RSE-Cambridge/rally-openstack
32bbc091bbce1db625a2fc22da28b32718befa13
[ "Apache-2.0" ]
null
null
null
rally_openstack/services/identity/identity.py
RSE-Cambridge/rally-openstack
32bbc091bbce1db625a2fc22da28b32718befa13
[ "Apache-2.0" ]
1
2021-08-10T03:11:51.000Z
2021-08-10T03:11:51.000Z
# All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
38.91129
78
0.636062
1,187
9,650
4.94187
0.142376
0.033754
0.069042
0.11507
0.382884
0.35237
0.271394
0.240027
0.133652
0.125469
0
0.002594
0.281036
9,650
247
79
39.068826
0.842894
0.349119
0
0.309091
0
0
0.018587
0
0
0
0
0
0
1
0.254545
false
0.036364
0.009091
0.009091
0.490909
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
b76a4e8d0932eecc890f60694fb681c5ced918bf
2,678
py
Python
experiments/launcher_exp1_collect.py
MenshovSergey/DetectChess
1baea0d688723b2624d83be001b00870cf1ae634
[ "MIT" ]
144
2020-03-17T06:22:11.000Z
2022-03-31T01:58:07.000Z
experiments/launcher_exp1_collect.py
MenshovSergey/DetectChess
1baea0d688723b2624d83be001b00870cf1ae634
[ "MIT" ]
27
2020-04-13T11:14:45.000Z
2022-03-25T10:03:52.000Z
experiments/launcher_exp1_collect.py
MenshovSergey/DetectChess
1baea0d688723b2624d83be001b00870cf1ae634
[ "MIT" ]
34
2020-03-17T07:29:24.000Z
2022-03-31T01:55:48.000Z
import os from os2d.utils.logger import extract_value_from_os2d_binary_log, mAP_percent_to_points if __name__ == "__main__": config_path = os.path.dirname(os.path.abspath(__file__)) config_job_name = "exp1" log_path = os.path.abspath(os.path.join(config_path, "..", "output/exp1")) def get_result(j...
33.061728
126
0.634055
283
2,678
5.583039
0.282686
0.074051
0.121519
0.167089
0.574684
0.556962
0.520253
0.520253
0.520253
0.367089
0
0.02953
0.253921
2,678
80
127
33.475
0.761261
0
0
0.421053
0
0
0.292756
0.159821
0
0
0
0
0
1
0.017544
false
0
0.035088
0
0.070175
0.017544
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
b771b4781763cee50e3e1947848dff01722098d4
1,442
py
Python
tests/test_cmd_show.py
lemoncheesecake/lemoncheesecake
bc92cb8225d74e2687ed5825ee5af3f56f907829
[ "Apache-2.0", "MIT" ]
34
2017-06-12T18:50:36.000Z
2021-11-29T01:59:07.000Z
tests/test_cmd_show.py
lemoncheesecake/lemoncheesecake
bc92cb8225d74e2687ed5825ee5af3f56f907829
[ "Apache-2.0", "MIT" ]
25
2017-12-07T13:35:29.000Z
2022-03-10T01:27:58.000Z
tests/test_cmd_show.py
lemoncheesecake/lemoncheesecake
bc92cb8225d74e2687ed5825ee5af3f56f907829
[ "Apache-2.0", "MIT" ]
4
2019-05-05T03:19:00.000Z
2021-10-06T13:12:05.000Z
import os import pytest from helpers.runner import generate_project, run_main from helpers.cli import cmdout TEST_MODULE = """import lemoncheesecake.api as lcc @lcc.suite("My Suite") @lcc.prop("suite_prop", "suite_prop_value") @lcc.tags("suite_tag") @lcc.link("http://bug.tra.cker/1234", "#1234") class mysuite: ...
29.428571
109
0.690707
208
1,442
4.519231
0.298077
0.089362
0.055319
0.089362
0.440426
0.393617
0.329787
0.221277
0.221277
0.221277
0
0.030522
0.136616
1,442
48
110
30.041667
0.724498
0
0
0
1
0
0.435506
0.061026
0
0
0
0
0.205882
1
0.117647
false
0.029412
0.147059
0
0.264706
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
b7751a2b12d852316309ce4b1f6eca8cdb5bf528
859
py
Python
watchdog/back-end/v1.0.0/watchdogV1-3/app/__init__.py
Havana3351/Low-cost-remote-monitor
9f86a62b8515c0f9fddda31f25548680f0ad8e2f
[ "MIT" ]
18
2021-12-03T13:18:07.000Z
2022-03-30T20:20:17.000Z
watchdog/back-end/v1.0.0/watchdogV1-3/app/__init__.py
Fairywyt/Low-cost-remote-monitor
263b98d969251d2dbef5fb5e4d42a58075e744fa
[ "MIT" ]
null
null
null
watchdog/back-end/v1.0.0/watchdogV1-3/app/__init__.py
Fairywyt/Low-cost-remote-monitor
263b98d969251d2dbef5fb5e4d42a58075e744fa
[ "MIT" ]
4
2022-03-22T09:58:00.000Z
2022-03-28T08:57:17.000Z
from flask import Flask from flask_restful import Api from flask_cors import CORS from app.resource.video import Video from app.resource.sensors import Sensors from app.resource.login import Login from app.resource.register import Register from app.resource.videosavedata import VideoSaveData from app.resource.videoreco...
30.678571
53
0.811409
124
859
5.483871
0.193548
0.082353
0.176471
0
0
0
0
0
0
0
0
0
0.082654
859
27
54
31.814815
0.862944
0.005821
0
0
0
0
0.122209
0
0
0
0
0
0
1
0
false
0
0.5
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
b77753d0a92b10e5f222b4a9b33f142212e96c4a
3,148
py
Python
Semana6/Flask con BD/01-flask-bd.py
GuidoTorres/codigo8
7fdff4f677f048de7d7877b96ec3a688d3dde163
[ "MIT" ]
null
null
null
Semana6/Flask con BD/01-flask-bd.py
GuidoTorres/codigo8
7fdff4f677f048de7d7877b96ec3a688d3dde163
[ "MIT" ]
40
2021-03-10T16:58:17.000Z
2022-03-26T01:55:17.000Z
Semana6/Flask con BD/01-flask-bd.py
GuidoTorres/codigo8
7fdff4f677f048de7d7877b96ec3a688d3dde163
[ "MIT" ]
null
null
null
from flask import Flask, jsonify, request from flask_mysqldb import MySQL app = Flask(__name__) #credenciales de mysql app.config['MYSQL_HOST']= 'localhost' app.config['MYSQL_USER'] = 'root' app.config['MYSQL_PASSWORD'] = 'root' app.config['MYSQL_DB'] = 'apiflask' #Creamos una variabel de tipo mysql y le mandamos ...
23.492537
145
0.629288
373
3,148
5.174263
0.302949
0.067358
0.055959
0.074611
0.430052
0.386529
0.33057
0.309845
0.120207
0.120207
0
0.004107
0.226493
3,148
133
146
23.669173
0.788501
0.073698
0
0.449275
0
0
0.258419
0.025773
0
0
0
0
0
0
null
null
0.014493
0.028986
null
null
0.057971
0
0
0
null
0
0
0
0
0
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
b77ca04a7f2011135c00092ed1588f15baf585a0
2,236
py
Python
week5/exceptions.py
johnehunt/computationalthinking
0f3694b7977be5e3015b5a1ad64a50d0d8827842
[ "Apache-2.0" ]
1
2021-05-16T10:24:47.000Z
2021-05-16T10:24:47.000Z
week5/exceptions.py
johnehunt/computationalthinking
0f3694b7977be5e3015b5a1ad64a50d0d8827842
[ "Apache-2.0" ]
null
null
null
week5/exceptions.py
johnehunt/computationalthinking
0f3694b7977be5e3015b5a1ad64a50d0d8827842
[ "Apache-2.0" ]
1
2019-09-21T08:24:46.000Z
2019-09-21T08:24:46.000Z
# Provides numerous # examples of different options for exception handling def my_function(x, y): """ A simple function to divide x by y """ print('my_function in') solution = x / y print('my_function out') return solution print('Starting') print(my_function(6, 0)) try: print('Bef...
18.032258
54
0.629249
293
2,236
4.692833
0.249147
0.174545
0.072
0.098909
0.569455
0.518545
0.518545
0.475636
0.475636
0.475636
0
0.019527
0.244186
2,236
123
55
18.178862
0.794083
0.047406
0
0.697917
0
0
0.187115
0
0
0
0
0
0
1
0.010417
false
0
0
0
0.020833
0.541667
0
0
0
null
0
0
0
0
0
0
0
0
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
b780f2733d25650c2f1cbcc6af2d92f9e32a27dd
558
py
Python
wmt21-multi-low-res/phonemize_chunks.py
ufal/bergamot
6179daa51432e9cd7f4914364dbf2e45183951cf
[ "BSD-3-Clause" ]
null
null
null
wmt21-multi-low-res/phonemize_chunks.py
ufal/bergamot
6179daa51432e9cd7f4914364dbf2e45183951cf
[ "BSD-3-Clause" ]
null
null
null
wmt21-multi-low-res/phonemize_chunks.py
ufal/bergamot
6179daa51432e9cd7f4914364dbf2e45183951cf
[ "BSD-3-Clause" ]
1
2021-09-14T17:37:57.000Z
2021-09-14T17:37:57.000Z
import sys from phonemizer import phonemize backend='espeak' lang=sys.argv[1] if lang=="en": lang="en-us" elif lang=="fr": lang="fr-fr" #for line in sys.stdin: # print(phonemize(line, language=lang, backend=backend)) # try: # print(phonemize(line, language=lang, backend=backend)) # except: # ...
25.363636
82
0.682796
80
558
4.725
0.4625
0.095238
0.150794
0.206349
0.232804
0.232804
0.232804
0
0
0
0
0.014862
0.155914
558
21
83
26.571429
0.787686
0.327957
0
0
0
0
0.059783
0
0
0
0
0
0
1
0
false
0
0.153846
0
0.153846
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
b78cc09eb4f90fc1213a889d146c87940df696e1
1,841
py
Python
dev/Gems/CloudGemDynamicContent/AWS/resource-manager-code/update.py
brianherrera/lumberyard
f85344403c1c2e77ec8c75deb2c116e97b713217
[ "AML" ]
1,738
2017-09-21T10:59:12.000Z
2022-03-31T21:05:46.000Z
dev/Gems/CloudGemDynamicContent/AWS/resource-manager-code/update.py
ArchitectureStudios/lumberyard
f85344403c1c2e77ec8c75deb2c116e97b713217
[ "AML" ]
427
2017-09-29T22:54:36.000Z
2022-02-15T19:26:50.000Z
dev/Gems/CloudGemDynamicContent/AWS/resource-manager-code/update.py
ArchitectureStudios/lumberyard
f85344403c1c2e77ec8c75deb2c116e97b713217
[ "AML" ]
671
2017-09-21T08:04:01.000Z
2022-03-29T14:30:07.000Z
# # All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or # its licensors. # # For complete copyright and license terms please see the LICENSE at the root of this # distribution (the "License"). All use of this software is governed by the License, # or, if provided, by the license below or t...
40.911111
110
0.788159
258
1,841
5.379845
0.453488
0.056196
0.04755
0.040346
0.100865
0.100865
0.100865
0.100865
0.100865
0.100865
0
0.000636
0.146116
1,841
44
111
41.840909
0.881679
0.375883
0
0
0
0
0.042365
0.025596
0
0
0
0
0
0
null
null
0
0.210526
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
b7908e77e33d5975bbad43ad3cf7864f3cf15c82
10,337
py
Python
tests/test_cli.py
hwasiti/jupytext
b531be1e1933531ac6ffef488232285766f05cea
[ "MIT" ]
null
null
null
tests/test_cli.py
hwasiti/jupytext
b531be1e1933531ac6ffef488232285766f05cea
[ "MIT" ]
null
null
null
tests/test_cli.py
hwasiti/jupytext
b531be1e1933531ac6ffef488232285766f05cea
[ "MIT" ]
null
null
null
import os import stat from shutil import copyfile import pytest from testfixtures import compare import mock from nbformat.v4.nbbase import new_notebook from jupytext import header, __version__ from jupytext import readf, writef, writes from jupytext.cli import convert_notebook_files, cli_jupytext, jupytext, system fro...
27.937838
79
0.654542
1,453
10,337
4.419821
0.114246
0.037372
0.044534
0.05886
0.736375
0.712706
0.676113
0.629243
0.608845
0.586266
0
0.004648
0.188256
10,337
369
80
28.01355
0.760696
0.010545
0
0.622137
0
0
0.163112
0.027202
0
0
0
0
0.122137
1
0.10687
false
0
0.045802
0.003817
0.156489
0.01145
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
b7931922fad2f49941ad78597f17858ef781e83a
18,369
py
Python
gui/policedb.py
imperialhopfield/hopfield
d64e21b1c7b915755ae535685ffd7dfd25e3970f
[ "MIT" ]
10
2015-07-30T10:00:14.000Z
2020-10-10T15:49:06.000Z
gui/policedb.py
imperialhopfield/hopfield
d64e21b1c7b915755ae535685ffd7dfd25e3970f
[ "MIT" ]
null
null
null
gui/policedb.py
imperialhopfield/hopfield
d64e21b1c7b915755ae535685ffd7dfd25e3970f
[ "MIT" ]
2
2020-12-19T13:06:04.000Z
2021-06-03T13:32:21.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'policedb.ui' # # Created: Tue Jan 15 14:06:33 2013 # by: pyside-uic 0.2.13 running on PySide 1.1.0 # # WARNING! All changes made in this file will be lost! from PySide import QtCore, QtGui class Ui_PoliceDB(object): def setupUi(se...
58.314286
216
0.717785
2,018
18,369
6.427156
0.147671
0.032614
0.046106
0.060293
0.492675
0.391904
0.280725
0.267309
0.228373
0.201234
0
0.028285
0.16468
18,369
314
217
58.5
0.816997
0.012194
0
0.136213
1
0
0.080609
0.01031
0
0
0
0
0
1
0.006645
false
0
0.006645
0
0.016611
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
b793288ef06f84c0566368e3ad85b20f514d2eb4
621
py
Python
lambdata/test_helper_functions.py
andrewlee977/lambdata
077a00b7288b41faf63198bffc512aab8ced8ab4
[ "MIT" ]
null
null
null
lambdata/test_helper_functions.py
andrewlee977/lambdata
077a00b7288b41faf63198bffc512aab8ced8ab4
[ "MIT" ]
null
null
null
lambdata/test_helper_functions.py
andrewlee977/lambdata
077a00b7288b41faf63198bffc512aab8ced8ab4
[ "MIT" ]
null
null
null
""" Basic Unit testing for helper_functions.py """ import random import pandas as pd import numpy as np import pytest from lambdata import helper_functions df = pd.DataFrame( np.random.randint(0, 100, size=(100, 4)), columns=list('ABCD')) def test_null_count(): """ testing null count is zero """...
22.178571
56
0.711755
82
621
5.195122
0.512195
0.147887
0.077465
0.075117
0
0
0
0
0
0
0
0.019724
0.183575
621
27
57
23
0.820513
0.351047
0
0
0
0
0.01061
0
0
0
0
0
0.083333
1
0.083333
false
0
0.416667
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
b794fa053cd25322542b6a2e1d065e8547851836
315
py
Python
anchor/app/utils/styles.py
ysenarath/anchor
63dc0cd7aabda4a15c4c9f4b63089a36c5b0b97b
[ "Apache-2.0" ]
1
2021-11-14T16:01:48.000Z
2021-11-14T16:01:48.000Z
anchor/app/utils/styles.py
ysenarath/anchor
63dc0cd7aabda4a15c4c9f4b63089a36c5b0b97b
[ "Apache-2.0" ]
null
null
null
anchor/app/utils/styles.py
ysenarath/anchor
63dc0cd7aabda4a15c4c9f4b63089a36c5b0b97b
[ "Apache-2.0" ]
null
null
null
MAIN_WINDOW_STYLE = """ QMainWindow { background: white; } """ BUTTON_STYLE = """ QPushButton { background-color: transparent; border-style:none; } QPushButton:hover{ background-color: qradialgradient(cx:0, cy:0, radius: 1, fx:1, fy:1, stop:0 #c0c5ce, stop:1 #a7adba); border-style:none; } """
18.529412
105
0.663492
39
315
5.282051
0.615385
0.145631
0.145631
0
0
0
0
0
0
0
0
0.038314
0.171429
315
16
106
19.6875
0.750958
0
0
0.266667
0
0.066667
0.84127
0.066667
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b799f4d440d93bfc401c9fa8b1145d6096b1e02f
3,328
py
Python
rossum/user.py
tunystom-rossum/rossum
a49c5e02bdfbae95fe54e7ee556439355e4c339d
[ "MIT" ]
5
2021-07-27T02:20:37.000Z
2022-03-30T07:53:30.000Z
rossum/user.py
tunystom-rossum/rossum
a49c5e02bdfbae95fe54e7ee556439355e4c339d
[ "MIT" ]
31
2020-09-29T15:06:46.000Z
2022-02-17T09:51:16.000Z
rossum/user.py
tunystom-rossum/rossum
a49c5e02bdfbae95fe54e7ee556439355e4c339d
[ "MIT" ]
6
2021-02-25T08:17:44.000Z
2022-02-16T17:09:35.000Z
from itertools import chain from typing import Any, Dict, Optional, Tuple import click from tabulate import tabulate from rossum import argument, option from rossum.lib import GROUPS, QUEUES, USERS, generate_secret from rossum.lib.api_client import RossumClient @click.group("user") def cli() -> None: pass @cl...
31.695238
100
0.66256
440
3,328
4.893182
0.222727
0.029262
0.02601
0.0353
0.164422
0.09568
0.070599
0.036229
0
0
0
0
0.196214
3,328
104
101
32
0.80486
0.019531
0
0.146341
0
0
0.089621
0
0
0
0
0
0
1
0.060976
false
0.121951
0.085366
0
0.158537
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
b7a13814536ba1cc2fe27d2caf95a680eaf7d8e9
993
py
Python
DEPENDENCIES/seash/tests/ut_seash_help.py
kevinkenzhao/Repy2
a7afb4c8ba263c8a74775a6281a50d94880a8d34
[ "MIT" ]
null
null
null
DEPENDENCIES/seash/tests/ut_seash_help.py
kevinkenzhao/Repy2
a7afb4c8ba263c8a74775a6281a50d94880a8d34
[ "MIT" ]
null
null
null
DEPENDENCIES/seash/tests/ut_seash_help.py
kevinkenzhao/Repy2
a7afb4c8ba263c8a74775a6281a50d94880a8d34
[ "MIT" ]
1
2018-03-04T21:51:22.000Z
2018-03-04T21:51:22.000Z
""" Executes a few help commands and make sures seash prints out the correct output. Make sure to update the txt file of the expected output if help's contents have modified """ import seash import sys orig_stdout = sys.stdout sys.stdout = open("test_results.txt", "w") command_list = [ 'help', 'help extended', ...
23.642857
111
0.733132
152
993
4.677632
0.447368
0.139241
0.078762
0.050633
0
0
0
0
0
0
0
0
0.164149
993
41
112
24.219512
0.856627
0.125881
0
0
0
0
0.292576
0.061135
0
0
0
0
0
0
null
null
0
0.086957
null
null
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
b7a3e41488eff317999bc585df9b6ee352dbbb2e
2,125
py
Python
Python/kauf_leSortScript3.py
liv335/public
04e1940060e2ec88a1d0d1c91603afff8ecdaea2
[ "Apache-2.0" ]
null
null
null
Python/kauf_leSortScript3.py
liv335/public
04e1940060e2ec88a1d0d1c91603afff8ecdaea2
[ "Apache-2.0" ]
null
null
null
Python/kauf_leSortScript3.py
liv335/public
04e1940060e2ec88a1d0d1c91603afff8ecdaea2
[ "Apache-2.0" ]
null
null
null
import shutil import os from pathlib import Path from tkinter import * arrayFolder = ["130-170","202-232","265-295","397-427","460-490","592-622","659-689", "774-838","950-980","1013-1043","1157-1187","1220-1250","1364-1394", "1434-1464","1516-1576","1606-1646","1688-1718","1751-1781","18...
31.25
124
0.572706
273
2,125
4.369963
0.520147
0.04694
0.040235
0.040235
0.058676
0.058676
0.058676
0
0
0
0
0.162334
0.257882
2,125
68
125
31.25
0.594166
0
0
0.185185
0
0
0.16651
0
0
0
0
0
0
1
0.018519
false
0.074074
0.074074
0
0.092593
0.074074
0
0
0
null
0
0
0
0
0
0
0
0
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
b7a3f2cb678dc5157a1c8607603a786b7bc85ca4
10,149
py
Python
app/models.py
vidoardes/dex
15d7e340a5b284e143dd41932bba9db938dc43f2
[ "CC0-1.0" ]
14
2018-11-28T14:43:12.000Z
2021-05-03T04:51:02.000Z
app/models.py
vidoardes/dex
15d7e340a5b284e143dd41932bba9db938dc43f2
[ "CC0-1.0" ]
45
2018-09-24T09:04:04.000Z
2021-05-07T13:16:23.000Z
app/models.py
vidoardes/dex
15d7e340a5b284e143dd41932bba9db938dc43f2
[ "CC0-1.0" ]
7
2019-05-21T05:22:49.000Z
2020-12-10T06:40:41.000Z
from datetime import datetime from hashlib import md5 from time import time import jwt import math import decimal from flask import current_app from flask_login import UserMixin from app import db, login, bcrypt from sqlalchemy.ext.hybrid import hybrid_property class User(UserMixin, db.Model): __tablename__ = ...
36.246429
89
0.64292
1,343
10,149
4.688757
0.175726
0.081309
0.101636
0.059393
0.462601
0.411466
0.352072
0.302684
0.138479
0.066381
0
0.024175
0.229678
10,149
279
90
36.376344
0.781274
0
0
0.135965
0
0
0.042861
0
0
0
0
0
0
1
0.114035
false
0.039474
0.04386
0.065789
0.600877
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
b7aa2fc2879dfab1d1b3837ac243b655b00987f7
622
py
Python
tests/detect_peaks.py
yutiansut/py-findpeaks
31073969ed99dd6f57ff1959c050fd0f8f59f58c
[ "MIT" ]
1
2021-06-08T03:04:29.000Z
2021-06-08T03:04:29.000Z
tests/detect_peaks.py
gregoryxue/py-findpeaks
a586b2ec95ddb85a76959ea3904ee68a279ed203
[ "MIT" ]
null
null
null
tests/detect_peaks.py
gregoryxue/py-findpeaks
a586b2ec95ddb85a76959ea3904ee68a279ed203
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import numpy as np from vector import vector, plot_peaks from libs import detect_peaks print('Detect peaks without any filters.') indexes = detect_peaks.detect_peaks(vector) print('Peaks are: %s' % (indexes)) plot_peaks( np.array(vector), indexes, algorithm='de...
25.916667
63
0.720257
91
622
4.813187
0.406593
0.226027
0.073059
0.114155
0.584475
0.584475
0.420091
0.228311
0.228311
0.228311
0
0.009488
0.152733
622
23
64
27.043478
0.821632
0.067524
0
0.421053
0
0
0.302768
0
0
0
0
0
0
1
0
false
0
0.157895
0
0.157895
0.210526
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
b7ab031071e4dc23b6025f19aae5de04d3e9e127
2,478
py
Python
experiments/circle/generate_circle_dataset.py
saralajew/thesis_GTLVQ_experiments
4f6eb967a1f37917cd185fc20d6df7bbbd9288d1
[ "BSD-3-Clause" ]
null
null
null
experiments/circle/generate_circle_dataset.py
saralajew/thesis_GTLVQ_experiments
4f6eb967a1f37917cd185fc20d6df7bbbd9288d1
[ "BSD-3-Clause" ]
4
2020-04-05T22:29:05.000Z
2022-02-09T23:36:01.000Z
experiments/circle/generate_circle_dataset.py
saralajew/thesis_GTLVQ_experiments
4f6eb967a1f37917cd185fc20d6df7bbbd9288d1
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ This is the script to generate a Circle dataset. Credits to https://github.com/hyounesy/TFPlaygroundPSA/blob/master/src/dataset.py. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import random import os im...
32.605263
80
0.617433
357
2,478
4.159664
0.316527
0.070034
0.063973
0.06734
0.344781
0.344781
0.344781
0.344781
0.344781
0.30303
0
0.023517
0.244956
2,478
75
81
33.04
0.770176
0.209847
0
0.285714
1
0
0.061065
0
0
0
0
0
0
1
0.040816
false
0
0.163265
0.020408
0.244898
0.040816
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
b7ace6aab7174f3f9918c7b0cd07e3de56f91416
2,092
py
Python
lib/NarrativeService/ReportFetcher.py
charleshtrenholm/NarrativeService
1cf53562f01cd8e178ee91ea4c5dd4e8025fa3a8
[ "MIT" ]
null
null
null
lib/NarrativeService/ReportFetcher.py
charleshtrenholm/NarrativeService
1cf53562f01cd8e178ee91ea4c5dd4e8025fa3a8
[ "MIT" ]
22
2016-10-18T23:44:48.000Z
2021-11-29T23:36:32.000Z
lib/NarrativeService/ReportFetcher.py
charleshtrenholm/NarrativeService
1cf53562f01cd8e178ee91ea4c5dd4e8025fa3a8
[ "MIT" ]
10
2016-10-18T19:58:13.000Z
2021-09-24T21:48:35.000Z
from NarrativeService.ServiceUtils import ServiceUtils class ReportFetcher(object): def __init__(self, ws_client): self.ws_client = ws_client def find_report_from_object(self, upa): #TODO: # 1. make sure upa's real. # first, fetch object references (without data) ref_...
40.230769
100
0.608987
279
2,092
4.34767
0.301075
0.057708
0.06925
0.049464
0.183017
0.067601
0.067601
0.067601
0.067601
0
0
0.008103
0.292065
2,092
51
101
41.019608
0.810939
0.170172
0
0.114286
0
0
0.11183
0.014126
0
0
0
0.019608
0
1
0.114286
false
0
0.028571
0
0.371429
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
b7b6d2f9c3bd88fd28f11e2fff8208c58f31cf08
922
py
Python
lib/googlecloudsdk/compute/subcommands/instances/list.py
IsaacHuang/google-cloud-sdk
52afa5d1a75dff08f4f5380c5cccc015bf796ca5
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/compute/subcommands/instances/list.py
IsaacHuang/google-cloud-sdk
52afa5d1a75dff08f4f5380c5cccc015bf796ca5
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/compute/subcommands/instances/list.py
IsaacHuang/google-cloud-sdk
52afa5d1a75dff08f4f5380c5cccc015bf796ca5
[ "Apache-2.0" ]
2
2020-07-25T05:03:06.000Z
2020-11-04T04:55:57.000Z
# Copyright 2014 Google Inc. All Rights Reserved. """Command for listing instances.""" from googlecloudsdk.compute.lib import base_classes class List(base_classes.ZonalLister): """List Google Compute Engine virtual machine instances.""" @property def service(self): return self.compute.instances @propert...
29.741935
72
0.689805
115
922
5.495652
0.617391
0.066456
0.109177
0.072785
0.14557
0.14557
0.14557
0
0
0
0
0.005579
0.222343
922
30
73
30.733333
0.875872
0.144252
0
0.1
0
0
0.647815
0
0
0
0
0
0
1
0.1
false
0
0.05
0.1
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
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b7bb8f1cebe3d0e816db7873be7b6e72ad42accb
1,716
py
Python
perma_web/perma/migrations/0023_apikey.py
rachelaus/perma
36c05080520ea3ffce465dbc383795c060fa4112
[ "MIT", "Unlicense" ]
317
2015-02-12T16:53:34.000Z
2022-03-14T23:38:04.000Z
perma_web/perma/migrations/0023_apikey.py
rachelaus/perma
36c05080520ea3ffce465dbc383795c060fa4112
[ "MIT", "Unlicense" ]
2,069
2015-01-06T20:09:24.000Z
2022-03-31T15:44:36.000Z
perma_web/perma/migrations/0023_apikey.py
rachelaus/perma
36c05080520ea3ffce465dbc383795c060fa4112
[ "MIT", "Unlicense" ]
69
2015-01-12T18:56:07.000Z
2022-02-22T19:57:10.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.13 on 2017-05-04 20:55 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone def copy_keys(apps, schema_editor): if not schema_editor.connecti...
39.906977
148
0.662587
212
1,716
5.216981
0.580189
0.028933
0.025316
0.039783
0.094033
0.061483
0
0
0
0
0
0.029918
0.220862
1,716
42
149
40.857143
0.797307
0.219114
0
0
1
0.034483
0.141353
0.017293
0
0
0
0
0
1
0.034483
false
0.034483
0.172414
0
0.344828
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
b7bcf1615f35a5b77da1b9bafc669bb61817f5a0
1,231
py
Python
model/test_model.py
w-alves/genre-predictor-ml4kids
66cccffb3ad13657502398d74f44b8924d1deda4
[ "MIT" ]
1
2020-11-24T00:27:44.000Z
2020-11-24T00:27:44.000Z
model/test_model.py
w-alves/genre-predictor-ml4kids
66cccffb3ad13657502398d74f44b8924d1deda4
[ "MIT" ]
null
null
null
model/test_model.py
w-alves/genre-predictor-ml4kids
66cccffb3ad13657502398d74f44b8924d1deda4
[ "MIT" ]
null
null
null
from model.mltext import classifyText, storeText from model.mlmodel import trainModel, checkModel from sklearn.metrics import confusion_matrix, classification_report from mlxtend.plotting import plot_confusion_matrix from sklearn.metrics import accuracy_score, precision_score, recall_score import logging import pandas ...
39.709677
115
0.701056
159
1,231
5.18239
0.503145
0.091019
0.036408
0.069175
0.058252
0
0
0
0
0
0
0.002008
0.190902
1,231
31
116
39.709677
0.825301
0
0
0
0
0
0.105519
0.021916
0
0
0
0
0
1
0.038462
false
0
0.307692
0
0.346154
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
b7c0cb44ecaf87057def1c3cac86cd5e734d1917
837
py
Python
setup.py
martinblech/pyfpm
8351c3b7979260ddc423c2b42a100360e434c38a
[ "MIT" ]
25
2015-01-06T15:14:51.000Z
2021-04-22T00:54:59.000Z
setup.py
martinblech/pyfpm
8351c3b7979260ddc423c2b42a100360e434c38a
[ "MIT" ]
1
2019-10-18T03:01:45.000Z
2019-10-18T03:01:45.000Z
setup.py
martinblech/pyfpm
8351c3b7979260ddc423c2b42a100360e434c38a
[ "MIT" ]
5
2015-09-18T10:03:22.000Z
2018-07-26T05:03:53.000Z
#!/usr/bin/env python from distutils.core import setup import pyfpm setup(name='pyfpm', version=pyfpm.__version__, author=pyfpm.__author__, author_email='martinblech@gmail.com', url='https://github.com/martinblech/pyfpm', description='Scala-like functional pattern matching in P...
34.875
77
0.617682
84
837
6.035714
0.702381
0.088757
0.098619
0
0
0
0
0
0
0
0
0.001637
0.270012
837
23
78
36.391304
0.828151
0.023895
0
0
0
0
0.525735
0.025735
0
0
0
0
0
1
0
true
0
0.1
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
1
0
0
0
0
0
0
1
b7c13ef7323e8a6ad4ce64a9e2752c19a00d3782
402
py
Python
scripts/families/kFamilies.py
UMKC-BigDataLab/DiSC
fda81260a9f54a4519cceb1a4b0f501f095b6b4b
[ "Apache-2.0" ]
null
null
null
scripts/families/kFamilies.py
UMKC-BigDataLab/DiSC
fda81260a9f54a4519cceb1a4b0f501f095b6b4b
[ "Apache-2.0" ]
null
null
null
scripts/families/kFamilies.py
UMKC-BigDataLab/DiSC
fda81260a9f54a4519cceb1a4b0f501f095b6b4b
[ "Apache-2.0" ]
1
2018-08-24T17:44:52.000Z
2018-08-24T17:44:52.000Z
#!/usr/bin/python # ./script families.txt num_to_print mxFamSize import sys def main(argv): l=0 mxNum = int(argv[1]) mxSize = int(argv[2]) for line in open(argv[0]): l += 1 lineAr = line.strip().split(",") if len(lineAr) <= mxSize: print line.strip() if l >...
16.75
46
0.532338
55
402
3.709091
0.6
0.068627
0
0
0
0
0
0
0
0
0
0.021739
0.313433
402
23
47
17.478261
0.717391
0.151741
0
0
0
0
0.026786
0
0
0
0
0
0
0
null
null
0
0.071429
null
null
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
b7c14674aecb974e2cb2d00f8539a398ce0f76d1
1,565
py
Python
src/backend/aspen/test_infra/postgres.py
chanzuckerberg/czgenepi
87bd2b1739acdfe2c7c25663fafb01dc24c5e2fd
[ "MIT" ]
5
2021-02-04T20:18:46.000Z
2021-09-09T13:42:42.000Z
src/backend/aspen/test_infra/postgres.py
chanzuckerberg/aspen
9853778a7ef68b0446751657af5a835f98dde3dc
[ "MIT" ]
422
2021-01-30T04:16:00.000Z
2022-01-31T23:18:44.000Z
src/backend/aspen/test_infra/postgres.py
chanzuckerberg/covidr
afe05d703d30ec18ac83944bfb551c313cb216c4
[ "MIT" ]
1
2021-05-20T14:54:39.000Z
2021-05-20T14:54:39.000Z
import random import string from dataclasses import dataclass from typing import Generator import pytest from aspen.database import connection as aspen_connection USERNAME = "user_rw" PASSWORD = "password_rw" INITIAL_DATABASE = "postgres" @dataclass class PostgresDatabase: database_name: str port: int ...
31.938776
138
0.758466
205
1,565
5.6
0.385366
0.094077
0.049652
0.052265
0
0
0
0
0
0
0
0.008327
0.155911
1,565
48
139
32.604167
0.860712
0.184665
0
0
0
0
0.235804
0.108833
0
0
0
0
0
1
0.066667
false
0.1
0.2
0.033333
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
b7c6276292a6c8c0bb01cc494af93584e845ed90
1,001
py
Python
lectures/07-python-dictionaries/examples/aa.py
donaldscoon/biosys-analytics
8d4593277bd701c77ff5c2d5eb3aee7c67ab33a4
[ "MIT" ]
1
2019-01-15T16:30:25.000Z
2019-01-15T16:30:25.000Z
lectures/07-python-dictionaries/examples/aa.py
donaldscoon/biosys-analytics
8d4593277bd701c77ff5c2d5eb3aee7c67ab33a4
[ "MIT" ]
null
null
null
lectures/07-python-dictionaries/examples/aa.py
donaldscoon/biosys-analytics
8d4593277bd701c77ff5c2d5eb3aee7c67ab33a4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Codon/Amino Acid table conversion""" codon_table = """ Isoleucine ATT ATC ATA Leucine CTT CTC CTA CTG TTA TTG Valine GTT GTC GTA GTG Phenylalanine TTT TTC Methionine ATG Cysteine TGT TGC Alanine GCT GCC GCA GCG Glycine GGT GGC GGA GGG Proline ...
23.27907
46
0.637363
140
1,001
4.528571
0.771429
0.050473
0.037855
0
0
0
0
0
0
0
0
0.012694
0.291708
1,001
42
47
23.833333
0.881523
0.054945
0
0
0
0
0.639198
0
0
0
0
0
0
1
0
false
0
0
0
0
0.114286
0
0
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
b7cb3c886508c8aabd647761111d9cd70314d192
3,267
py
Python
watch.py
connornishijima/electropi2
df1d21021adcac9ed8fac626d5f5b2dc6963d81a
[ "MIT" ]
null
null
null
watch.py
connornishijima/electropi2
df1d21021adcac9ed8fac626d5f5b2dc6963d81a
[ "MIT" ]
null
null
null
watch.py
connornishijima/electropi2
df1d21021adcac9ed8fac626d5f5b2dc6963d81a
[ "MIT" ]
null
null
null
from tornado import websocket, web, ioloop import traceback import threading from threading import Thread import json import os import commands print "IMPORTS COMPLETE." import time myPID = str(os.getpid()) print myPID connections = set() global lastMessage lastMessage = time.time() print "KILLING ALL PROCESSES ON ...
25.325581
84
0.558923
385
3,267
4.688312
0.32987
0.022161
0.035457
0.044321
0.187258
0.187258
0.141828
0.141828
0.103047
0.103047
0
0.017017
0.316498
3,267
128
85
25.523438
0.791312
0
0
0.136364
0
0
0.155718
0
0
0
0
0
0
0
null
null
0
0.102273
null
null
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
b7de135c76070bf097ad75764cc79f6272f61b38
450
py
Python
marketplace/migrations/0016_auto_20200412_1136.py
jonahweissman/cs3240-textbook-swap
b65e16ead6b22947df1beded1e63004f6fb16e04
[ "PostgreSQL" ]
null
null
null
marketplace/migrations/0016_auto_20200412_1136.py
jonahweissman/cs3240-textbook-swap
b65e16ead6b22947df1beded1e63004f6fb16e04
[ "PostgreSQL" ]
null
null
null
marketplace/migrations/0016_auto_20200412_1136.py
jonahweissman/cs3240-textbook-swap
b65e16ead6b22947df1beded1e63004f6fb16e04
[ "PostgreSQL" ]
null
null
null
# Generated by Django 3.0.3 on 2020-04-12 15:36 from django.db import migrations import phone_field.models class Migration(migrations.Migration): dependencies = [ ('marketplace', '0015_auto_20200412_1134'), ] operations = [ migrations.AlterField( model_name='profile', ...
22.5
86
0.637778
51
450
5.490196
0.764706
0.071429
0.114286
0
0
0
0
0
0
0
0
0.098214
0.253333
450
19
87
23.684211
0.735119
0.1
0
0
1
0
0.129032
0.057072
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b7e89105bf1b43fe4d44a237871142c56085b879
724
py
Python
setup.py
justquick/django-sentry
07988759144524ba49bc63b308663244d1a69d04
[ "BSD-3-Clause" ]
1
2016-03-21T18:56:31.000Z
2016-03-21T18:56:31.000Z
setup.py
justquick/django-sentry
07988759144524ba49bc63b308663244d1a69d04
[ "BSD-3-Clause" ]
null
null
null
setup.py
justquick/django-sentry
07988759144524ba49bc63b308663244d1a69d04
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from setuptools import setup, find_packages setup( name='django-sentry', version='.'.join(map(str, __import__('sentry').__version__)), author='David Cramer', author_email='dcramer@gmail.com', url='http://github.com/dcramer/django-sentry', description = 'Exception Logging ...
28.96
65
0.642265
73
724
6.191781
0.739726
0.053097
0
0
0
0
0
0
0
0
0
0
0.219613
724
25
66
28.96
0.8
0.027624
0
0.090909
0
0
0.441761
0
0
0
0
0
0
1
0
true
0
0.090909
0
0.090909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
b7ea79999140f4e22522968397bae1d4c9f42384
422
py
Python
neurobrush_web/site/urls.py
rootux/neurobrush
95b89c4b12f442ef9e4417f9a885d5634b7a8b4d
[ "MIT" ]
6
2016-01-23T23:44:43.000Z
2021-09-08T13:04:00.000Z
neurobrush_web/site/urls.py
rootux/neurobrush
95b89c4b12f442ef9e4417f9a885d5634b7a8b4d
[ "MIT" ]
null
null
null
neurobrush_web/site/urls.py
rootux/neurobrush
95b89c4b12f442ef9e4417f9a885d5634b7a8b4d
[ "MIT" ]
1
2016-01-11T06:41:47.000Z
2016-01-11T06:41:47.000Z
from django.conf.urls import patterns, url from django.views.generic import RedirectView from neurobrush_web.site import views urlpatterns = patterns('', url(r'^$', views.start, name='start'), url(r'^collect$', views.collect, name='collect'), url(r'^sockets$', views.sockets, name='sockets'), url(r'^ge...
32.461538
62
0.689573
54
422
5.37037
0.407407
0.068966
0.062069
0
0
0
0
0
0
0
0
0
0.130332
422
12
63
35.166667
0.790191
0.101896
0
0
0
0
0.156499
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
b7ea99c35630bb1b4b938d3b8ed46cd7a35d0662
3,210
py
Python
src/oci/identity/models/create_idp_group_mapping_details.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
249
2017-09-11T22:06:05.000Z
2022-03-04T17:09:29.000Z
src/oci/identity/models/create_idp_group_mapping_details.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
228
2017-09-11T23:07:26.000Z
2022-03-23T10:58:50.000Z
src/oci/identity/models/create_idp_group_mapping_details.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
224
2017-09-27T07:32:43.000Z
2022-03-25T16:55:42.000Z
# coding: utf-8 # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
30.865385
245
0.656698
405
3,210
4.948148
0.281481
0.087824
0.107784
0.037425
0.468064
0.348303
0.291417
0.181637
0.181637
0.181637
0
0.007696
0.27134
3,210
103
246
31.165049
0.849081
0.521807
0
0.057143
0
0
0.056006
0
0
0
0
0
0
1
0.228571
false
0
0.057143
0.057143
0.485714
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
b7f4b2ec28ae2e6fb79533257690b72b618863a5
3,089
py
Python
distribulator/engine/command/LoginCommand.py
adace74/test
b7b45fae6c4ba6ffe8a04c45b6e2bf23a918226b
[ "BSD-3-Clause" ]
null
null
null
distribulator/engine/command/LoginCommand.py
adace74/test
b7b45fae6c4ba6ffe8a04c45b6e2bf23a918226b
[ "BSD-3-Clause" ]
null
null
null
distribulator/engine/command/LoginCommand.py
adace74/test
b7b45fae6c4ba6ffe8a04c45b6e2bf23a918226b
[ "BSD-3-Clause" ]
null
null
null
###################################################################### # # $Id$ # # (c) Copyright 2004 Orbitz, Inc. All Rights Reserved. # Please see the accompanying LICENSE file for license information. # ###################################################################### # Pydoc comments """ This class is respo...
34.707865
98
0.547103
254
3,089
6.559055
0.440945
0.105642
0.072029
0.07383
0.423169
0.315126
0.315126
0.138055
0.138055
0.138055
0
0.00477
0.25348
3,089
88
99
35.102273
0.717693
0.199741
0
0.357143
0
0
0.077815
0
0
0
0
0
0
1
0.047619
false
0.095238
0.071429
0
0.238095
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
b7fb91fc8744a8fd6874746b739064e1d370e27a
414
py
Python
setup.py
jamesturk/mongoprof
2838a30d048122c0e95e003870907d3b0638d0f7
[ "BSD-2-Clause" ]
2
2016-11-30T08:38:22.000Z
2017-02-20T05:56:00.000Z
setup.py
jamesturk/mongoprof
2838a30d048122c0e95e003870907d3b0638d0f7
[ "BSD-2-Clause" ]
1
2015-01-13T22:00:21.000Z
2015-02-23T19:42:13.000Z
setup.py
jamesturk/mongoprof
2838a30d048122c0e95e003870907d3b0638d0f7
[ "BSD-2-Clause" ]
null
null
null
from distutils.core import setup setup( name='mongoprof', version='0.3.0', author='James Turk', author_email='james.p.turk@gmail.com', url='http://github.com/jamesturk/mongoprof', scripts=['mongoprof.py'], license='BSD', description='command line tool for watching mongodb queries', ...
27.6
65
0.673913
52
414
5.307692
0.807692
0
0
0
0
0
0
0
0
0
0
0.011461
0.157005
414
14
66
29.571429
0.77937
0
0
0
0
0
0.413043
0.05314
0
0
0
0
0
1
0
true
0
0.076923
0
0.076923
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
4d01c15e3a288bb5d47c407931d700ea64c87c28
379
py
Python
Problem 020 - Factorial Digit Sum.py
Deviloxide/Project-Euler
bc26bdd6d1efa90e5e7523e77764a32104534ef7
[ "MIT" ]
null
null
null
Problem 020 - Factorial Digit Sum.py
Deviloxide/Project-Euler
bc26bdd6d1efa90e5e7523e77764a32104534ef7
[ "MIT" ]
null
null
null
Problem 020 - Factorial Digit Sum.py
Deviloxide/Project-Euler
bc26bdd6d1efa90e5e7523e77764a32104534ef7
[ "MIT" ]
null
null
null
def factorial_digit_sum(num): fact_total = 1 while num != 1: fact_total *= num num -= 1 fact_total_str = str(fact_total) total_list = [] sum_total = 0 for i in fact_total_str: total_list.append(i) for i in total_list: sum_total += int(i) ...
17.227273
37
0.572559
54
379
3.703704
0.37037
0.225
0.17
0.13
0
0
0
0
0
0
0
0.028226
0.345646
379
21
38
18.047619
0.778226
0
0
0
0
0
0
0
0
0
0
0
0
1
0.071429
false
0
0
0
0.142857
0.071429
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
4d0370ff0cebc7d4cf063bb154796c327d7dd3c9
431
py
Python
LinkedList/Node Swap/solution.py
joydeepnandi/Algo
1c5c49cb172c47cad7df81dc9b66fedbacbb5b55
[ "MIT" ]
null
null
null
LinkedList/Node Swap/solution.py
joydeepnandi/Algo
1c5c49cb172c47cad7df81dc9b66fedbacbb5b55
[ "MIT" ]
null
null
null
LinkedList/Node Swap/solution.py
joydeepnandi/Algo
1c5c49cb172c47cad7df81dc9b66fedbacbb5b55
[ "MIT" ]
null
null
null
# This is an input class. Do not edit. class LinkedList: def __init__(self, value): self.value = value self.next = None # O(n) time | O(n) space - where n is the number of nodes in the Linked List def nodeSwap(head): if head is None or head.next is None: return head ...
23.944444
77
0.61949
65
431
4.046154
0.507692
0.121673
0
0
0
0
0
0
0
0
0
0
0.301624
431
17
78
25.352941
0.873754
0.257541
0
0
1
0
0
0
0
0
0
0
0
1
0.181818
false
0
0
0
0.454545
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
4d0716a09a9582af445d010e331a2711909c4b1c
2,957
py
Python
Calculo Numérico/rk4_e_odeint.py
xiaoyongkong/UFRJ
824e97f4be56e0fc4336b6d5507233b079c9b31b
[ "MIT" ]
1
2021-03-04T17:46:09.000Z
2021-03-04T17:46:09.000Z
Calculo Numérico/rk4_e_odeint.py
xiaoyongkong/UFRJ
824e97f4be56e0fc4336b6d5507233b079c9b31b
[ "MIT" ]
null
null
null
Calculo Numérico/rk4_e_odeint.py
xiaoyongkong/UFRJ
824e97f4be56e0fc4336b6d5507233b079c9b31b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import numpy as np import matplotlib.pyplot as plt from scipy.integrate import odeint # Euler def Euler(T_l,y_0): U = np.zeros_like(T_l) for k in range(Nt): tk = T_l[k] U[k] = y_0 yk = y_0 + h*f(y_0,tk) y_0 = yk ...
20.823944
85
0.540413
603
2,957
2.562189
0.195688
0.023301
0.041424
0.028479
0.63301
0.610356
0.602589
0.591586
0.578641
0.578641
0
0.049561
0.228948
2,957
141
86
20.971631
0.62807
0.016909
0
0.59434
0
0.018868
0.157821
0
0
0
0
0
0
0
null
null
0.009434
0.037736
null
null
0.056604
0
0
0
null
0
0
0
0
0
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
4d0b34d522d241a7a8d537858810c818c5c26bf2
88,152
py
Python
tests/testsuite.py
nilason/ctypesgen
cef9a7ac58a50d0ae4f260abdeb75e0a71398187
[ "BSD-2-Clause" ]
20
2021-09-02T08:05:46.000Z
2022-03-11T04:45:55.000Z
tests/testsuite.py
nilason/ctypesgen
cef9a7ac58a50d0ae4f260abdeb75e0a71398187
[ "BSD-2-Clause" ]
29
2021-08-20T00:22:28.000Z
2022-02-25T14:46:07.000Z
tests/testsuite.py
nilason/ctypesgen
cef9a7ac58a50d0ae4f260abdeb75e0a71398187
[ "BSD-2-Clause" ]
7
2021-08-31T12:29:41.000Z
2022-02-16T18:24:53.000Z
#!/usr/bin/env python3 """Simple test suite using unittest. By clach04 (Chris Clark). Calling: python3 -m unittest tests.testsuite Calling a specific test only: python3 -m unittest tests.testsuite.[TestCase class].[test name] e.g.: python3 -m unittest tests.testsuite.StdBoolTest.test_stdbool_typ...
34.773964
99
0.315115
5,491
88,152
4.921326
0.106902
0.016467
0.074048
0.088073
0.682123
0.630611
0.58576
0.562447
0.510824
0.494764
0
0.014944
0.574145
88,152
2,534
100
34.787687
0.704848
0.043323
0
0.615522
0
0.000892
0.168301
0.014462
0
0
0.000346
0
0.040143
1
0.039697
false
0.000446
0.008029
0
0.0562
0.004906
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
4d0bedb901a54778499702c7a82a1dd780127e43
1,301
py
Python
core/context_processors.py
Siikakala/kompassi
14cdcd966ab689d762cc885e28b6d15465c216f0
[ "CC-BY-3.0" ]
null
null
null
core/context_processors.py
Siikakala/kompassi
14cdcd966ab689d762cc885e28b6d15465c216f0
[ "CC-BY-3.0" ]
null
null
null
core/context_processors.py
Siikakala/kompassi
14cdcd966ab689d762cc885e28b6d15465c216f0
[ "CC-BY-3.0" ]
null
null
null
# encoding: utf-8 from django.utils.translation import get_language_from_request def get_other_language(current_language_code): if current_language_code == 'fi': return 'en', 'In English…' else: return 'fi', 'Suomeksi…' def core_context(request): from django.conf import settings f...
29.568182
88
0.717909
151
1,301
5.754967
0.350993
0.13809
0.131185
0.069045
0.194476
0.194476
0
0
0
0
0
0.001938
0.206764
1,301
44
89
29.568182
0.834302
0.01153
0
0
0
0
0.224125
0.175097
0
0
0
0
0
1
0.0625
false
0.21875
0.09375
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
4d0fd67be0eebe72f8801971f2c0bf675c03ab89
6,034
py
Python
pocket/money.py
jonmeads/pocketMoney
90351afd35c6c3463314a9b170831d12a55ed0c2
[ "MIT" ]
1
2021-02-28T21:23:40.000Z
2021-02-28T21:23:40.000Z
pocket/money.py
jonmeads/pocketMoney
90351afd35c6c3463314a9b170831d12a55ed0c2
[ "MIT" ]
null
null
null
pocket/money.py
jonmeads/pocketMoney
90351afd35c6c3463314a9b170831d12a55ed0c2
[ "MIT" ]
null
null
null
import os from flask import Flask, render_template, request, Response, send_from_directory, Blueprint, flash, g, redirect from functools import wraps from flask import current_app as app from flask_nav.elements import Navbar, View, Subgroup, Link, Text, Separator import datetime from crontab import CronTab import getp...
26.234783
146
0.611535
706
6,034
5.18272
0.273371
0.039082
0.038262
0.028696
0.298716
0.2651
0.246789
0.21372
0.194042
0.136103
0
0.004424
0.250746
6,034
229
147
26.349345
0.80491
0.013092
0
0.372781
0
0
0.188889
0.01532
0
0
0
0
0
1
0.094675
false
0.059172
0.059172
0.005917
0.260355
0.053254
0
0
0
null
0
0
0
0
0
0
0
0
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
4d13b7739594c73c13335b487c7de81fd28fa18b
3,699
py
Python
PiCN/Playground/PinnedNFN/PinnedComputationLayer.py
NikolaiRutz/PiCN
7775c61caae506a88af2e4ec34349e8bd9098459
[ "BSD-3-Clause" ]
null
null
null
PiCN/Playground/PinnedNFN/PinnedComputationLayer.py
NikolaiRutz/PiCN
7775c61caae506a88af2e4ec34349e8bd9098459
[ "BSD-3-Clause" ]
5
2020-07-15T09:01:42.000Z
2020-09-28T08:45:21.000Z
PiCN/Playground/PinnedNFN/PinnedComputationLayer.py
NikolaiRutz/PiCN
7775c61caae506a88af2e4ec34349e8bd9098459
[ "BSD-3-Clause" ]
null
null
null
import multiprocessing import threading import time from math import pow from PiCN.Processes import LayerProcess from PiCN.Packets import Name, Interest, Content, Nack, NackReason class PinnedComputationLayer(LayerProcess): def __init__(self, replica_id, log_level=255): super().__init__(logger...
43.011628
115
0.611517
415
3,699
5.291566
0.293976
0.03643
0.044627
0.040073
0.23816
0.175774
0.148452
0.123862
0.123862
0.057377
0
0.007573
0.286023
3,699
85
116
43.517647
0.82393
0.056231
0
0.176471
0
0
0.089785
0
0.029412
0
0
0.011765
0.014706
1
0.132353
false
0.029412
0.088235
0
0.323529
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
4d13ca796b7346c68f422f0af5a7d98471e2dbad
6,565
py
Python
openstack_dashboard/test/integration_tests/pages/identity/userspage.py
Mirantis/mos-horizon
d2444220d959c8b921436bd75459c2face0e71d2
[ "Apache-2.0" ]
9
2016-06-03T03:53:24.000Z
2017-05-20T16:53:23.000Z
openstack_dashboard/test/integration_tests/pages/identity/userspage.py
Mirantis/mos-horizon
d2444220d959c8b921436bd75459c2face0e71d2
[ "Apache-2.0" ]
1
2016-09-08T10:57:46.000Z
2016-09-08T10:59:06.000Z
openstack_dashboard/test/integration_tests/pages/identity/userspage.py
Mirantis/mos-horizon
d2444220d959c8b921436bd75459c2face0e71d2
[ "Apache-2.0" ]
4
2016-08-01T10:50:15.000Z
2017-02-22T12:11:19.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
38.617647
78
0.67997
852
6,565
4.913146
0.192488
0.042045
0.043478
0.0301
0.436455
0.359054
0.286431
0.207597
0.147396
0.125896
0
0.000988
0.229094
6,565
169
79
38.846154
0.826121
0.089566
0
0.145161
0
0
0.057205
0
0
0
0
0
0
1
0.16129
false
0.120968
0.032258
0.024194
0.379032
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
4d193a7fd3308ab70958709107c1dd65cbee1238
804
py
Python
waffle/tests/test_models.py
zenotech/django-waffle
ceee659dab521e79c6467787b9193888cf7182e2
[ "BSD-3-Clause" ]
null
null
null
waffle/tests/test_models.py
zenotech/django-waffle
ceee659dab521e79c6467787b9193888cf7182e2
[ "BSD-3-Clause" ]
null
null
null
waffle/tests/test_models.py
zenotech/django-waffle
ceee659dab521e79c6467787b9193888cf7182e2
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals from django.test import TestCase from waffle.models import Flag, Switch, Sample class ModelsTests(TestCase): def test_natural_keys(self): flag = Flag.objects.create(name='test-flag') switch = Switch.objects.create(name='test-switch') sample = Sampl...
38.285714
82
0.710199
102
804
5.411765
0.27451
0.163043
0.152174
0.11413
0.141304
0.141304
0
0
0
0
0
0.001466
0.151741
804
20
83
40.2
0.807918
0
0
0
0
0
0.115672
0
0
0
0
0
0.428571
1
0.071429
false
0
0.214286
0
0.357143
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
4d2118fc7eba9298d43a6d98c6b652bc12a71969
1,467
py
Python
employee/models.py
nahidsaikat/restaurant_rating
93adf7f389a1ac80b40c0fe29af0ebd22e193994
[ "MIT" ]
null
null
null
employee/models.py
nahidsaikat/restaurant_rating
93adf7f389a1ac80b40c0fe29af0ebd22e193994
[ "MIT" ]
null
null
null
employee/models.py
nahidsaikat/restaurant_rating
93adf7f389a1ac80b40c0fe29af0ebd22e193994
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.contrib.auth.base_user import AbstractBaseUser from django.contrib.auth.models import PermissionsMixin from django.core.mail import send_mail from django.db import models from .managers import EmployeeManager class Employee(AbstractBaseUser, PermissionsMixin): ...
31.891304
75
0.690525
183
1,467
5.311475
0.437158
0.046296
0.034979
0.04321
0.049383
0.049383
0
0
0
0
0
0.003451
0.209952
1,467
45
76
32.6
0.835203
0.090661
0
0
0
0
0.06962
0
0
0
0
0
0
1
0.115385
false
0
0.230769
0
0.846154
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
4d2216f25e2e53adead507a643050ab08cf3fc29
1,413
py
Python
openslides/topics/models.py
swilde/OpenSlides
23ae32a75892005632784652d108836d1ba09da9
[ "MIT" ]
3
2021-02-11T20:45:58.000Z
2022-02-09T21:59:42.000Z
openslides/topics/models.py
swilde/OpenSlides
23ae32a75892005632784652d108836d1ba09da9
[ "MIT" ]
2
2021-11-02T15:53:58.000Z
2022-03-02T12:19:49.000Z
openslides/topics/models.py
swilde/OpenSlides
23ae32a75892005632784652d108836d1ba09da9
[ "MIT" ]
3
2021-01-18T11:44:05.000Z
2022-01-19T16:00:23.000Z
from django.db import models from openslides.utils.manager import BaseManager from ..agenda.mixins import AgendaItemWithListOfSpeakersMixin from ..mediafiles.models import Mediafile from ..utils.models import RESTModelMixin from .access_permissions import TopicAccessPermissions class TopicManager(BaseManager): ...
28.26
81
0.699929
147
1,413
6.591837
0.530612
0.040248
0.065015
0
0
0
0
0
0
0
0
0.00272
0.219391
1,413
49
82
28.836735
0.875793
0.199575
0
0
0
0
0.042413
0
0
0
0
0
0
1
0.12
false
0
0.24
0.08
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
4d25fa0966fd7d9412960d3a69ec6b3b13c5229c
645
py
Python
code/meiduo_mall/apps/users/utils.py
Coding618/Django_base
89d441bb661faa69afbca57f1bf7b4b049d418d7
[ "MIT" ]
null
null
null
code/meiduo_mall/apps/users/utils.py
Coding618/Django_base
89d441bb661faa69afbca57f1bf7b4b049d418d7
[ "MIT" ]
null
null
null
code/meiduo_mall/apps/users/utils.py
Coding618/Django_base
89d441bb661faa69afbca57f1bf7b4b049d418d7
[ "MIT" ]
null
null
null
from itsdangerous import TimedJSONWebSignatureSerializer as Serializer from meiduo_mall import settings def generic_emial_verify_token(user_id): # 1. 创建实例 s = Serializer(secret_key=settings.SECRET_KEY, expires_in=3600*24) # 2. 加密数据 data = s.dumps({'user_id': user_id}) # 3. 返回数据 return data.deco...
26.875
70
0.675969
89
645
4.696629
0.505618
0.086124
0.028708
0.076555
0.277512
0.277512
0.277512
0.277512
0.277512
0.277512
0
0.035644
0.217054
645
23
71
28.043478
0.792079
0.134884
0
0.153846
0
0
0.041894
0
0
0
0
0
0
1
0.153846
false
0
0.153846
0
0.538462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
4d26bd366d6b5f1eee4c1bc11e960d193dae2aad
2,890
py
Python
gp/gp.py
VCG/guidedproofreading
3da5f0196f6493d5f9fc920df4b0cc3de220008e
[ "MIT" ]
3
2019-11-06T14:43:34.000Z
2020-06-02T02:04:24.000Z
gp/gp.py
VCG/guidedproofreading
3da5f0196f6493d5f9fc920df4b0cc3de220008e
[ "MIT" ]
1
2020-01-20T12:28:26.000Z
2020-01-20T12:28:26.000Z
gp/gp.py
VCG/guidedproofreading
3da5f0196f6493d5f9fc920df4b0cc3de220008e
[ "MIT" ]
2
2018-09-21T13:11:08.000Z
2020-01-22T06:01:50.000Z
import cPickle as pickle from legacy import Legacy from patch import Patch from util import Util class GP(object): ''' ''' def __init__(self, model='mouse'): ''' Initialize the Guided Proofreading classifier. By default model='mouse' but can also be model='fruitfly' ''' # we load a traine...
26.513761
69
0.514187
318
2,890
4.578616
0.430818
0.019231
0.026786
0.030907
0.105769
0.028846
0.028846
0
0
0
0
0.016979
0.408997
2,890
108
70
26.759259
0.83548
0.067128
0
0.130435
0
0
0.071651
0
0
0
0
0
0
0
null
null
0
0.086957
null
null
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
4d2865e829a6ef3f3ce5ea3b0387f0f914c64c0f
5,362
py
Python
jnpr/space/connection.py
Trinity-College/py-space-platform
2ead02c1af8b696cf673eddaac5199c8267f0bf3
[ "ECL-2.0", "Apache-2.0" ]
27
2015-04-21T09:01:56.000Z
2021-08-21T22:39:12.000Z
jnpr/space/connection.py
Trinity-College/py-space-platform
2ead02c1af8b696cf673eddaac5199c8267f0bf3
[ "ECL-2.0", "Apache-2.0" ]
6
2015-04-16T05:57:18.000Z
2017-05-03T18:34:16.000Z
jnpr/space/connection.py
davids-uta-edu/py-space-platform
2ead02c1af8b696cf673eddaac5199c8267f0bf3
[ "ECL-2.0", "Apache-2.0" ]
22
2015-03-26T08:41:04.000Z
2020-09-24T19:50:43.000Z
# # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER # # Copyright (c) 2015 Juniper Networks, Inc. # All rights reserved. # # Use is subject to license terms. # # Licensed under the Apache License, Version 2.0 (the ?License?); you may not # use this file except in compliance with the License. You may obtain...
34.818182
90
0.620477
686
5,362
4.702624
0.28863
0.031618
0.051147
0.053007
0.244265
0.208308
0.143211
0.143211
0.143211
0.143211
0
0.004417
0.282171
5,362
153
91
35.045752
0.833723
0.337374
0
0.166667
0
0
0.115518
0.013028
0
0
0
0
0
1
0.076923
false
0.115385
0.076923
0
0.205128
0.012821
0
0
0
null
0
0
0
0
0
0
0
0
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
4d2b463d3f5a1e46a23ebb469a00719768a602ef
8,617
py
Python
algorithms.py
HugoLG/SFCrimeClassification
d7e73a583943b6ec0fc8bb00e2e7d585ed3aab4d
[ "MIT" ]
null
null
null
algorithms.py
HugoLG/SFCrimeClassification
d7e73a583943b6ec0fc8bb00e2e7d585ed3aab4d
[ "MIT" ]
null
null
null
algorithms.py
HugoLG/SFCrimeClassification
d7e73a583943b6ec0fc8bb00e2e7d585ed3aab4d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Feb 29 14:27:49 2016 @author: alexa """ from sklearn.naive_bayes import BernoulliNB from sklearn.neighbors import KNeighborsClassifier as kNN from sklearn.cross_validation import train_test_split from sklearn.preprocessing import LabelBinarizer from sklearn.metric...
29.816609
107
0.630382
1,053
8,617
5.02849
0.19943
0.027007
0.011898
0.037771
0.262323
0.19169
0.14882
0.110859
0.08593
0.07932
0
0.014541
0.23384
8,617
288
108
29.920139
0.787489
0.161889
0
0.112782
0
0
0.029644
0
0
0
0
0
0
0
null
null
0.007519
0.082707
null
null
0.112782
0
0
0
null
0
0
0
0
0
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
4d371b5bf906cfdcc483cdef6bf4939010da7387
2,810
py
Python
Apis and Scraping/Working with APIs-116.py
vipmunot/Data-Analysis-using-Python
34586d8cbbc336508c4a7a68abe14944f1096252
[ "MIT" ]
null
null
null
Apis and Scraping/Working with APIs-116.py
vipmunot/Data-Analysis-using-Python
34586d8cbbc336508c4a7a68abe14944f1096252
[ "MIT" ]
null
null
null
Apis and Scraping/Working with APIs-116.py
vipmunot/Data-Analysis-using-Python
34586d8cbbc336508c4a7a68abe14944f1096252
[ "MIT" ]
null
null
null
## 3. Types of Requests ## # Make a get request to get the latest position of the ISS from the OpenNotify API. response = requests.get("http://api.open-notify.org/iss-now.json") status_code = response.status_code ## 4. Understanding Status Codes ## # Enter your answer below. response = requests.get("http://api.open-...
30.879121
86
0.741993
440
2,810
4.618182
0.313636
0.044291
0.074803
0.090551
0.331201
0.282972
0.253445
0.253445
0.234252
0.213583
0
0.02455
0.130249
2,810
91
87
30.879121
0.806874
0.356584
0
0.3
0
0.025
0.251991
0
0
0
0
0
0
1
0
false
0.175
0.025
0
0.025
0.225
0
0
0
null
0
0
0
0
0
0
0
0
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
4d3886b4b72268e345f1a4da44e3bd7c5de54db5
250
py
Python
infery_test.py
akshit3797/U-2-Net
605ee3c2fe8b08de193bbdb77f17337aeadc8ebe
[ "Apache-2.0" ]
null
null
null
infery_test.py
akshit3797/U-2-Net
605ee3c2fe8b08de193bbdb77f17337aeadc8ebe
[ "Apache-2.0" ]
null
null
null
infery_test.py
akshit3797/U-2-Net
605ee3c2fe8b08de193bbdb77f17337aeadc8ebe
[ "Apache-2.0" ]
null
null
null
import infery, numpy as np model = infery.load(model_path='resnet_dynamic_1_1.pkl', framework_type='trt', inference_hardware='gpu') inputs = np.random.random((16, 3, 224, 224)).astype('float32') model.predict(inputs) model.benchmark(batch_size=16)
31.25
104
0.764
39
250
4.717949
0.74359
0
0
0
0
0
0
0
0
0
0
0.065217
0.08
250
7
105
35.714286
0.734783
0
0
0
0
0
0.14
0.088
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
4d398ce5b71c790515f9062188985799ec860d98
731
py
Python
model.py
belakaria/USEMOC
4fdbe06762a825e3504aa846ccee055ee1e60fbb
[ "MIT" ]
2
2020-09-01T05:05:37.000Z
2020-12-28T17:56:16.000Z
model.py
aryandeshwal/USeMO
063fbd8b8c39c3cc54f9abd8c79ff01eda9dc803
[ "MIT" ]
null
null
null
model.py
aryandeshwal/USeMO
063fbd8b8c39c3cc54f9abd8c79ff01eda9dc803
[ "MIT" ]
1
2020-09-22T04:10:43.000Z
2020-09-22T04:10:43.000Z
import numpy as np from sklearn.gaussian_process import GaussianProcessRegressor from sklearn.gaussian_process.kernels import RBF, ConstantKernel,Matern class GaussianProcess: def __init__(self, dim): self.dim = dim sqrdExp = RBF(length_scale=1) self.xValues = [] self.yValues = [] ...
33.227273
102
0.677155
91
731
5.318681
0.494505
0.068182
0.078512
0.107438
0
0
0
0
0
0
0
0.008787
0.221614
731
22
103
33.227273
0.841828
0
0
0
0
0
0
0
0
0
0
0
0
1
0.222222
false
0
0.166667
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
4d39c72f680700d9fc0d7235150e3c2aebf3d6e7
1,379
py
Python
day_03_b.py
Gyaha/AOC2020
fbabae9acd7d274b84bc0c64f2665dfba9f008ca
[ "MIT" ]
null
null
null
day_03_b.py
Gyaha/AOC2020
fbabae9acd7d274b84bc0c64f2665dfba9f008ca
[ "MIT" ]
null
null
null
day_03_b.py
Gyaha/AOC2020
fbabae9acd7d274b84bc0c64f2665dfba9f008ca
[ "MIT" ]
null
null
null
TREE = "#" def hit_test(map_, y, x, width) -> bool: while x >= width: x -= width return map_[y][x] == TREE def hit_test_map(map_, vy, vx) -> int: height, width = len(map_), len(map_[0]) r = 0 for x, y in enumerate(range(0, height, vy)): r += hit_test(map_, y, x * vx, width) r...
23.372881
143
0.536621
209
1,379
3.205742
0.267943
0.198507
0.19403
0.116418
0.358209
0.177612
0.143284
0
0
0
0
0.031519
0.240754
1,379
58
144
23.775862
0.608405
0
0
0
0
0
0.145758
0
0
0
0
0
0.139535
1
0.139535
false
0
0
0.023256
0.255814
0.023256
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
4d3a60f07544d3b48b6681a1cc7df6eca26c2873
1,069
py
Python
bbbs/users/views.py
dangerousmonk/bigBrothers-bigSisters-backend
81ced19d48fb8833b19ed6a7e6463f56e687e6c2
[ "MIT" ]
null
null
null
bbbs/users/views.py
dangerousmonk/bigBrothers-bigSisters-backend
81ced19d48fb8833b19ed6a7e6463f56e687e6c2
[ "MIT" ]
null
null
null
bbbs/users/views.py
dangerousmonk/bigBrothers-bigSisters-backend
81ced19d48fb8833b19ed6a7e6463f56e687e6c2
[ "MIT" ]
null
null
null
from rest_framework import status from rest_framework.generics import RetrieveUpdateAPIView from rest_framework.permissions import IsAuthenticated from rest_framework.response import Response from .models import CustomUser from .serializers import ProfileReadSerializer, ProfileWriteSerializer class ProfileAPIView(Re...
33.40625
72
0.724041
105
1,069
7.247619
0.447619
0.04205
0.089356
0
0
0
0
0
0
0
0
0.003546
0.208606
1,069
32
72
33.40625
0.895981
0
0
0
0
0
0.004673
0
0
0
0
0
0
1
0.115385
false
0
0.230769
0.038462
0.615385
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
4d3cfbb679371eabfbbd84602aca2192fe09f1c4
1,595
py
Python
test/test_search.py
alisianoi/algos-py
c99747b2ce6976f2509fd183bf71040e6f988b77
[ "MIT" ]
6
2018-12-31T19:46:58.000Z
2020-11-17T11:32:27.000Z
test/test_search.py
algos-all/algos-py
b275da8d9f6cdf63d854a2712ada08a069421a74
[ "MIT" ]
152
2018-01-05T00:08:38.000Z
2020-12-12T22:37:52.000Z
test/test_search.py
alisianoi/algos-py
c99747b2ce6976f2509fd183bf71040e6f988b77
[ "MIT" ]
null
null
null
import pytest, random from string import ascii_lowercase from random import seed, choice, randrange from src.search import SearchBM, SearchKMP @pytest.mark.parametrize("search", [SearchBM, SearchKMP]) def test_empty_pattern_0(search): s = search("") assert s.search("Hello, world!") == 0 @pytest.mark.param...
24.538462
60
0.640125
222
1,595
4.531532
0.225225
0.146123
0.167992
0.161034
0.514911
0.447316
0.351889
0.300199
0.300199
0.125249
0
0.01926
0.186207
1,595
64
61
24.921875
0.755778
0
0
0.232558
0
0
0.060815
0
0
0
0
0
0.302326
1
0.139535
false
0
0.093023
0
0.232558
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