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
14532332bed6d241cade80730fa40fcc639066ed
2,389
py
Python
Manager/views.py
franklinwagbara/Brookstone-Pastoral-Management-System
a8a4cd66fbb7284e3cd61539bc313100ebd14f94
[ "MIT" ]
null
null
null
Manager/views.py
franklinwagbara/Brookstone-Pastoral-Management-System
a8a4cd66fbb7284e3cd61539bc313100ebd14f94
[ "MIT" ]
null
null
null
Manager/views.py
franklinwagbara/Brookstone-Pastoral-Management-System
a8a4cd66fbb7284e3cd61539bc313100ebd14f94
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from .forms import SeasonForm, CurrentSeasonForm from django.contrib import messages from .functions import InitializeOtherSeasonValues from StudentManager.models import Seasons, Students, CurrentSeason from django.contrib.auth.decorators import login_required from Dashboar...
41.189655
101
0.662202
238
2,389
6.60084
0.285714
0.044558
0.048377
0.040102
0.366645
0.337365
0.287715
0.266073
0.221515
0.156588
0
0.0011
0.239012
2,389
58
102
41.189655
0.863036
0
0
0.527273
0
0
0.107531
0.021339
0
0
0
0
0
1
0.054545
false
0
0.127273
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1453dc66d7e27b9f482339e0f5d11f6092505b1c
1,316
py
Python
easy/872-Leaf-Similar Trees.py
Davidxswang/leetcode
d554b7f5228f14c646f726ddb91014a612673e06
[ "Apache-2.0" ]
2
2020-05-08T02:17:17.000Z
2020-05-17T04:55:56.000Z
easy/872-Leaf-Similar Trees.py
Davidxswang/leetcode
d554b7f5228f14c646f726ddb91014a612673e06
[ "Apache-2.0" ]
null
null
null
easy/872-Leaf-Similar Trees.py
Davidxswang/leetcode
d554b7f5228f14c646f726ddb91014a612673e06
[ "Apache-2.0" ]
null
null
null
""" https://leetcode.com/problems/leaf-similar-trees/ Consider all the leaves of a binary tree. From left to right order, the values of those leaves form a leaf value sequence. For example, in the given tree above, the leaf value sequence is (6, 7, 4, 9, 8). Two binary trees are considered leaf-similar if their le...
30.604651
123
0.677052
213
1,316
4.15493
0.403756
0.031638
0.057627
0.042938
0.126554
0.126554
0.126554
0.065537
0
0
0
0.021
0.240122
1,316
42
124
31.333333
0.864
0.612462
0
0
0
0
0
0
0
0
0
0
0
1
0.181818
false
0
0.090909
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
145544a55d9f8af6fb2ce9e4cb8863368e3c6710
3,797
py
Python
server/sections/views.py
ShahriarDhruvo/DU_Hackathon
30650287a61a3314e6adb9e1c26206d4d8dbe312
[ "MIT" ]
3
2021-02-27T21:06:05.000Z
2021-08-03T16:56:22.000Z
server/sections/views.py
ShahriarDhruvo/Class-Portal-Project-350-
8ebc311a7992b61e5d15da19f0ba7dfdc059a705
[ "MIT" ]
1
2021-02-13T07:22:09.000Z
2021-02-13T07:22:09.000Z
server/sections/views.py
ShahriarDhruvo/Class-Portal-Project-350-
8ebc311a7992b61e5d15da19f0ba7dfdc059a705
[ "MIT" ]
1
2021-06-14T13:25:36.000Z
2021-06-14T13:25:36.000Z
from rest_framework.decorators import api_view from rest_framework.response import Response from rest_framework.exceptions import ( NotFound, APIException, PermissionDenied, ) from rest_framework.generics import ( CreateAPIView, DestroyAPIView, ListAPIView, UpdateAPIView ) fro...
27.316547
75
0.632078
433
3,797
5.364896
0.212471
0.049074
0.030994
0.051657
0.587172
0.587172
0.570383
0.552734
0.478261
0.464916
0
0.001105
0.285225
3,797
138
76
27.514493
0.854827
0.049776
0
0.494505
0
0
0.103637
0
0
0
0
0
0
1
0.054945
false
0
0.087912
0
0.362637
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
145570f50fd0d5242fca2c5f9ae0324f2bd8ada0
862
py
Python
test-CapitalizeFile.py
shastriUF/appveyor-test
b85f6724fc0e5fc15618060a96da3a2c409ff2c2
[ "MIT" ]
3
2018-10-03T14:52:11.000Z
2019-10-19T07:56:26.000Z
test-CapitalizeFile.py
shastriUF/appveyor-test
b85f6724fc0e5fc15618060a96da3a2c409ff2c2
[ "MIT" ]
null
null
null
test-CapitalizeFile.py
shastriUF/appveyor-test
b85f6724fc0e5fc15618060a96da3a2c409ff2c2
[ "MIT" ]
null
null
null
import CapitalizeFile import os import sys import unittest from unittest.mock import patch class TestCapitalization(unittest.TestCase): def testUnitTestAssert(self): self.assertEqual(1, 1) def testCapitalizeFile(self): with open('.inputFile', 'w') as inputFile: inputFile.write(...
31.925926
75
0.657773
81
862
6.901235
0.481481
0.053667
0
0
0
0
0
0
0
0
0
0.002976
0.220418
862
26
76
33.153846
0.828869
0
0
0
0
0
0.147332
0
0
0
0
0
0.181818
1
0.136364
false
0
0.227273
0
0.409091
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
14557ccde474e88eaae99ac8ee7c1c015c75995c
3,249
py
Python
tests/tests.py
ipashchenko/pulses
048078b4cd268390fe54eb25af4ecff5ffe1c0e4
[ "MIT" ]
null
null
null
tests/tests.py
ipashchenko/pulses
048078b4cd268390fe54eb25af4ecff5ffe1c0e4
[ "MIT" ]
null
null
null
tests/tests.py
ipashchenko/pulses
048078b4cd268390fe54eb25af4ecff5ffe1c0e4
[ "MIT" ]
null
null
null
from unittest import (TestCase, skipIf) import numpy as np from astropy.time import Time, TimeDelta from pulses.dsp import DSP from pulses.dedispersion import DeDisperser, noncoherent_dedispersion from pulses.preprocess import PreProcesser, create_ellipses from pulses.search import Searcher, search_shear, search_ell ...
36.1
80
0.579255
430
3,249
4.213953
0.304651
0.009934
0.013245
0.009934
0.179912
0.136865
0.122517
0.122517
0.0883
0.0883
0
0.043054
0.306556
3,249
89
81
36.505618
0.761207
0.013543
0
0.082192
0
0
0.020938
0
0
0
0
0
0.09589
1
0.09589
false
0.013699
0.123288
0
0.246575
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
14562d82389831158d99eb2713f73021e22e88ef
669
py
Python
api/urls.py
tomazin/tpp
d9815cca93b43fc37593c3735161ec61d36c54b1
[ "MIT" ]
1
2018-02-07T14:21:10.000Z
2018-02-07T14:21:10.000Z
api/urls.py
tpportugal/tpp_admin
76089465d49fc043837422b67c9f818380427093
[ "MIT" ]
null
null
null
api/urls.py
tpportugal/tpp_admin
76089465d49fc043837422b67c9f818380427093
[ "MIT" ]
1
2021-06-20T17:31:29.000Z
2021-06-20T17:31:29.000Z
from django.conf import settings from django.conf.urls import url from django.contrib import admin from django.urls import include from django.views.generic import RedirectView from graphene_django.views import GraphQLView from api.apps.gdrive.views import upload_timetable urlpatterns = [ #url(r'^$', RedirectView...
30.409091
92
0.735426
88
669
5.454545
0.397727
0.104167
0.058333
0
0
0
0
0
0
0
0
0
0.140508
669
21
93
31.857143
0.834783
0.092676
0
0.117647
0
0
0.062706
0
0
0
0
0
0
1
0
false
0
0.470588
0
0.470588
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
1456ebcd3a9f688ca99246c1d0ee66c13a04394d
5,418
py
Python
src/unpackaged/abm/BuildingTools/model4.py
agdturner/geog5990m
b6417820e6aaff7f0c785415c0d63eae3753a098
[ "Apache-2.0" ]
null
null
null
src/unpackaged/abm/BuildingTools/model4.py
agdturner/geog5990m
b6417820e6aaff7f0c785415c0d63eae3753a098
[ "Apache-2.0" ]
null
null
null
src/unpackaged/abm/BuildingTools/model4.py
agdturner/geog5990m
b6417820e6aaff7f0c785415c0d63eae3753a098
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ __version__ 1.0.0 """ #import operator import random #import matplotlib.pyplot import time def distance_between(a, b): """ A function to calculate the distance between agent a and agent b. Args: a: A list of two coordinates for orthoganol axes. ...
36.857143
80
0.685124
820
5,418
4.469512
0.209756
0.041473
0.036016
0.029468
0.500955
0.459209
0.397271
0.374079
0.332333
0.303956
0
0.015664
0.186969
5,418
147
81
36.857143
0.816345
0.235696
0
0.142857
0
0
0.235324
0
0
0
0
0
0
1
0.020408
false
0
0.040816
0
0.081633
0.285714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1457921a9de9e9b972d2a00acd04f6e5e653bd5f
13,451
py
Python
project/app.py
FelippeJC/besa
083e62457c9c9beccc869beb89675720be0d248a
[ "MIT" ]
null
null
null
project/app.py
FelippeJC/besa
083e62457c9c9beccc869beb89675720be0d248a
[ "MIT" ]
2
2021-05-10T16:40:12.000Z
2021-09-05T09:26:07.000Z
project/app.py
FelippeJC/besa
083e62457c9c9beccc869beb89675720be0d248a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os from flask import Flask, render_template, current_app from flask_migrate import Migrate from flask_restful import Api from config import Config, DevelopmentConfig, TestingConfig from .database import db from datetime import datetime import random import folium im...
42.034375
137
0.544272
1,425
13,451
4.893333
0.18807
0.006884
0.057364
0.012046
0.484153
0.460204
0.426072
0.402553
0.34863
0.309049
0
0.02373
0.307635
13,451
319
138
42.166144
0.724686
0.05442
0
0.270386
0
0
0.185445
0.028996
0
0
0
0
0
1
0.06867
false
0
0.04721
0.042918
0.188841
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
145854982248ea84d9abe0f478e5e22274de2489
142
py
Python
vet_care/doc_events/patient_appointment.py
neerajvkn/vet_care
14914b22e7a83265d736f9f9dc5186271ae62d66
[ "MIT" ]
2
2020-11-23T11:14:32.000Z
2021-02-03T06:40:33.000Z
vet_care/doc_events/patient_appointment.py
neerajvkn/vet_care
14914b22e7a83265d736f9f9dc5186271ae62d66
[ "MIT" ]
null
null
null
vet_care/doc_events/patient_appointment.py
neerajvkn/vet_care
14914b22e7a83265d736f9f9dc5186271ae62d66
[ "MIT" ]
7
2019-11-16T14:36:33.000Z
2021-08-25T07:54:51.000Z
import frappe def validate(doc, method): customer = frappe.db.get_value('Patient', doc.patient, 'customer') doc.vc_owner = customer
20.285714
70
0.711268
19
142
5.210526
0.684211
0
0
0
0
0
0
0
0
0
0
0
0.161972
142
6
71
23.666667
0.831933
0
0
0
0
0
0.105634
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
3
1459e47e29f07327f77b66aae27e1f15b3c747d9
2,587
py
Python
PyObjCTest/test_nsjavasetup.py
Khan/pyobjc-framework-Cocoa
f8b015ea2a72d8d78be6084fb12925c4785b8f1f
[ "MIT" ]
132
2015-01-01T10:02:42.000Z
2022-03-09T12:51:01.000Z
mac/pyobjc-framework-Cocoa/PyObjCTest/test_nsjavasetup.py
mba811/music-player
7998986b34cfda2244ef622adefb839331b81a81
[ "BSD-2-Clause" ]
6
2015-01-06T08:23:19.000Z
2019-03-14T12:22:06.000Z
mac/pyobjc-framework-Cocoa/PyObjCTest/test_nsjavasetup.py
mba811/music-player
7998986b34cfda2244ef622adefb839331b81a81
[ "BSD-2-Clause" ]
27
2015-02-23T11:51:43.000Z
2022-03-07T02:34:18.000Z
from PyObjCTools.TestSupport import * import os from Foundation import * try: unicode except NameError: unicode = str class TestNSJavaSetup (TestCase): @max_os_level('10.5') def testConstants(self): self.assertIsInstance(NSJavaClasses, unicode) self.assertIsInstance(NSJavaRoot, unicod...
38.044118
82
0.665636
251
2,587
6.784861
0.426295
0.223136
0.158544
0.061069
0.236054
0.211392
0.150323
0.064592
0.064592
0.064592
0
0.006602
0.238887
2,587
67
83
38.61194
0.858304
0.072671
0
0.275862
0
0
0.02381
0
0
0
0
0.014925
0.413793
1
0.034483
false
0.017241
0.051724
0
0.103448
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
1
0
0
0
0
0
0
0
0
0
3
145b9e864830ccf706d0d9a073e4a05486a7340f
605
py
Python
code/crowdflower/front-end/data/gen_test_cases.py
raingo/TGIF-Release
3e54d2f71418d8a2e9f5f61aa5be0edb9c0ac2b8
[ "BSD-3-Clause" ]
94
2016-04-07T15:07:13.000Z
2022-02-25T07:19:57.000Z
code/crowdflower/front-end/data/gen_test_cases.py
raingo/TGIF-Release
3e54d2f71418d8a2e9f5f61aa5be0edb9c0ac2b8
[ "BSD-3-Clause" ]
9
2016-08-22T15:35:27.000Z
2020-10-13T15:48:52.000Z
code/crowdflower/front-end/data/gen_test_cases.py
raingo/TGIF-Release
3e54d2f71418d8a2e9f5f61aa5be0edb9c0ac2b8
[ "BSD-3-Clause" ]
22
2016-04-07T15:39:57.000Z
2022-03-04T08:04:47.000Z
#!/usr/bin/env python """ Python source code - replace this with a description of the code and write the code below this text. """ from string import Template g = ''' <div class="gold"> <img src="$url" alt="" height="128" /> <p>$text</p> </div> ''' def main(): import sys output = [] gold = Temp...
17.794118
100
0.606612
85
605
4.223529
0.717647
0.038997
0
0
0
0
0
0
0
0
0
0.017167
0.229752
605
33
101
18.333333
0.753219
0.119008
0
0
0
0
0.234043
0
0
0
0
0
0
0
null
null
0.055556
0.111111
null
null
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
145bf345f806782fbc11a49939daa4c8e412d622
807
py
Python
setup.py
jhamrick/dbtools
40ad39dd87b8bd25b48cfd5fb819e35f85a61f43
[ "MIT" ]
15
2015-04-08T12:22:37.000Z
2020-08-29T17:50:00.000Z
setup.py
jhamrick/dbtools
40ad39dd87b8bd25b48cfd5fb819e35f85a61f43
[ "MIT" ]
null
null
null
setup.py
jhamrick/dbtools
40ad39dd87b8bd25b48cfd5fb819e35f85a61f43
[ "MIT" ]
6
2015-01-07T09:13:18.000Z
2021-10-17T15:37:09.000Z
#!/usr/bin/env python from distutils.core import setup setup( name='dbtools', version=open("VERSION.txt").read().strip(), description='Lightweight SQLite interface', author='Jessica B. Hamrick', author_email='jhamrick@berkeley.edu', url='https://github.com/jhamrick/dbtools', packages=['dbt...
27.827586
49
0.599752
79
807
6.101266
0.797468
0.118257
0.103734
0
0
0
0
0
0
0
0
0.006579
0.246592
807
28
50
28.821429
0.786184
0.024783
0
0
0
0
0.526718
0.026718
0
0
0
0
0
1
0
true
0
0.04
0
0.04
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
145cd735796a8c0ced4a862fa94a42e586c1409a
184
py
Python
demo2_typing.py
cebucodecamp/pizzapy23-mypy
648f636356e7771cb5b122620dcdd37fcd800553
[ "CC0-1.0" ]
null
null
null
demo2_typing.py
cebucodecamp/pizzapy23-mypy
648f636356e7771cb5b122620dcdd37fcd800553
[ "CC0-1.0" ]
null
null
null
demo2_typing.py
cebucodecamp/pizzapy23-mypy
648f636356e7771cb5b122620dcdd37fcd800553
[ "CC0-1.0" ]
null
null
null
from typing import List # ./runmypy cat /usr/local/lib/python3.6/typing.py def count_plus_first(it: List[int]): return len(it) + it[0] print(count_plus_first(list(range(10))))
18.4
50
0.711957
32
184
3.96875
0.75
0.141732
0.220472
0
0
0
0
0
0
0
0
0.03125
0.130435
184
9
51
20.444444
0.7625
0.26087
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
0.25
0.75
0.25
0
0
0
null
0
1
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
1
0
0
0
1
1
0
0
5
145ce43f4d1275496b60c29a64125c4a8e0ea1ef
1,442
py
Python
realestate_com_au/fajita/cookie_repository.py
aspratyush/realestate-com-au-api
20fceb8ae16c516337034f832d2d3a940fbfe525
[ "MIT" ]
null
null
null
realestate_com_au/fajita/cookie_repository.py
aspratyush/realestate-com-au-api
20fceb8ae16c516337034f832d2d3a940fbfe525
[ "MIT" ]
null
null
null
realestate_com_au/fajita/cookie_repository.py
aspratyush/realestate-com-au-api
20fceb8ae16c516337034f832d2d3a940fbfe525
[ "MIT" ]
null
null
null
import os import pickle class CookieInvalidException(Exception): pass class CookieRepository(object): """ Class to act as a repository for the cookies. TODO: refactor to use http.cookiejar.FileCookieJar """ def __init__(self, cookie_directory=None, validate_fn=None): self.c...
28.84
80
0.65534
165
1,442
5.527273
0.369697
0.098684
0.104167
0.04386
0.120614
0.120614
0.120614
0.120614
0
0
0
0
0.267684
1,442
49
81
29.428571
0.863636
0.110957
0
0.137931
0
0
0.008936
0
0
0
0
0.020408
0
1
0.172414
false
0.034483
0.068966
0
0.448276
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
145dd3d7b020a6d88ed30bd57eb630dd062a950e
378
py
Python
DataStructures and Algorithms/Ammortization onArrays/Gameentry.py
abhishekratnam/Datastructuresandalgorithmsinpython
9339319f441755797f4d2818ac9cf742a63ab5ea
[ "MIT" ]
null
null
null
DataStructures and Algorithms/Ammortization onArrays/Gameentry.py
abhishekratnam/Datastructuresandalgorithmsinpython
9339319f441755797f4d2818ac9cf742a63ab5ea
[ "MIT" ]
null
null
null
DataStructures and Algorithms/Ammortization onArrays/Gameentry.py
abhishekratnam/Datastructuresandalgorithmsinpython
9339319f441755797f4d2818ac9cf742a63ab5ea
[ "MIT" ]
null
null
null
class Gameentry: """Represents one entry of a list of high scores""" def __init__(self,name,score): self._name = name self._score = score def get_name(self): return self._name def get_score(self): return self._score def __str__(self): return ' ...
23.625
68
0.574074
49
378
4.102041
0.469388
0.159204
0.129353
0
0
0
0
0
0
0
0
0.015209
0.304233
378
15
69
25.2
0.749049
0.142857
0
0
0
0
0.033003
0
0
0
0
0
0
1
0.4
false
0
0
0.3
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
1
0
0
0
1
1
0
0
3
145e44674579d43491b3bb899a2a1249d889f439
6,326
py
Python
orms_tools/sqlalchemy_tools/sa_combine.py
biobdeveloper/ormc
413d3362fdf5cd7f171dfdb56ab00299099339ed
[ "MIT" ]
9
2022-01-22T19:10:58.000Z
2022-01-27T12:49:57.000Z
orms_tools/sqlalchemy_tools/sa_combine.py
biobdeveloper/ormc
413d3362fdf5cd7f171dfdb56ab00299099339ed
[ "MIT" ]
null
null
null
orms_tools/sqlalchemy_tools/sa_combine.py
biobdeveloper/ormc
413d3362fdf5cd7f171dfdb56ab00299099339ed
[ "MIT" ]
null
null
null
import datetime from typing import List from sqlalchemy.orm import ColumnProperty, DeclarativeMeta, class_mapper from core.combine import AbstractModelCombine from core.db_primitives import CoreField, CoreModel from .sa_base import SABase, metadata, sa class SQLAlchemyModelCombine(AbstractModelCombine): metacl...
32.777202
99
0.587259
677
6,326
5.212703
0.177253
0.024936
0.02777
0.024086
0.120147
0.091244
0.077642
0.046472
0.046472
0.046472
0
0.000461
0.314417
6,326
192
100
32.947917
0.813235
0.02387
0
0.203704
0
0
0.057036
0.011375
0
0
0
0
0
1
0.092593
false
0.012346
0.037037
0.037037
0.234568
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
145e5344e9bd1be8c32e4a85709baff72526841b
5,791
py
Python
research/object_detection/dataset_tools/create_modalnet_tf_record.py
qa276390/tf-models
39fc5ec5cfbd35c79f7017f52e36ff7c404cf252
[ "Apache-2.0" ]
null
null
null
research/object_detection/dataset_tools/create_modalnet_tf_record.py
qa276390/tf-models
39fc5ec5cfbd35c79f7017f52e36ff7c404cf252
[ "Apache-2.0" ]
null
null
null
research/object_detection/dataset_tools/create_modalnet_tf_record.py
qa276390/tf-models
39fc5ec5cfbd35c79f7017f52e36ff7c404cf252
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The TensorFlow Authors. 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 applica...
32.533708
86
0.605595
719
5,791
4.719054
0.307371
0.042146
0.023578
0.033893
0.09608
0.046566
0.046566
0.046566
0.046566
0
0
0.014127
0.25436
5,791
177
87
32.717514
0.771654
0.136419
0
0.062992
0
0
0.120482
0.02249
0
0
0
0
0
1
0.047244
false
0
0.102362
0
0.181102
0.03937
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
145ff7cd59bf75144b6b899ecb7383e46371273c
133
py
Python
GeneticSimPython/GeneticSimPython/Genetic/constants.py
Scimson/GeneticSim
7175e0ead69185bcf3221a91b5bac40b4cc42495
[ "Apache-2.0" ]
null
null
null
GeneticSimPython/GeneticSimPython/Genetic/constants.py
Scimson/GeneticSim
7175e0ead69185bcf3221a91b5bac40b4cc42495
[ "Apache-2.0" ]
null
null
null
GeneticSimPython/GeneticSimPython/Genetic/constants.py
Scimson/GeneticSim
7175e0ead69185bcf3221a91b5bac40b4cc42495
[ "Apache-2.0" ]
null
null
null
INITIAL_GENE_VALUE_LIMIT = 1 MUTATION_PROBABILITY = 0.3 MUTATION_SIZE = 0.2 GENERATION_SIZE = 8 VERBOSE = False DECIMAL_PRECISION = 3
22.166667
28
0.81203
21
133
4.809524
0.809524
0
0
0
0
0
0
0
0
0
0
0.060345
0.12782
133
6
29
22.166667
0.810345
0
0
0
0
0
0
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
14600f8835996a9b20a3a6f88d1ded4994fdafbf
6,752
py
Python
oseoserver/settings.py
pyoseo/oseoserver
8c97ee5a7d698cc989e1c8cab8cfe0db78491307
[ "Apache-2.0" ]
null
null
null
oseoserver/settings.py
pyoseo/oseoserver
8c97ee5a7d698cc989e1c8cab8cfe0db78491307
[ "Apache-2.0" ]
10
2015-02-10T17:10:33.000Z
2018-04-05T10:05:01.000Z
oseoserver/settings.py
pyoseo/oseoserver
8c97ee5a7d698cc989e1c8cab8cfe0db78491307
[ "Apache-2.0" ]
null
null
null
"""Providing custom values for oseoserver's settings.""" from django.conf import settings from . import constants def _get_setting(parameter, default_value): return getattr(settings, parameter, default_value) def get_mail_recipient_handler(): return _get_setting("OSEOSERVER_MAIL_RECIPIENT_HANDLER", None) ...
29.103448
76
0.499408
479
6,752
6.617954
0.210856
0.030284
0.07571
0.123028
0.670347
0.564669
0.505363
0.478233
0.44164
0.44164
0
0.006663
0.399882
6,752
231
77
29.229437
0.775666
0.007405
0
0.426396
0
0
0.337814
0.189815
0
0
0
0
0
1
0.081218
false
0
0.010152
0.081218
0.172589
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
14605133b5a68f936b862bf051b6b8b818564c9d
21,324
py
Python
inn/inn_hotels/doctype/inn_room_charge_posting/inn_room_charge_posting.py
vinhnguyent090/front-desk
7384642e9206e30855986465a7ef63c8fd76ef2a
[ "MIT" ]
4
2021-08-19T03:33:36.000Z
2021-08-28T16:37:52.000Z
inn/inn_hotels/doctype/inn_room_charge_posting/inn_room_charge_posting.py
vinhnguyent090/front-desk
7384642e9206e30855986465a7ef63c8fd76ef2a
[ "MIT" ]
98
2020-02-24T08:12:47.000Z
2021-08-21T07:54:03.000Z
inn/inn_hotels/doctype/inn_room_charge_posting/inn_room_charge_posting.py
vinhnguyent090/front-desk
7384642e9206e30855986465a7ef63c8fd76ef2a
[ "MIT" ]
13
2021-01-24T18:08:43.000Z
2022-03-29T09:23:25.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2020, Core Initiative and contributors # For license information, please see license.txt from __future__ import unicode_literals import json import frappe import math import datetime from frappe.model.document import Document from inn.inn_hotels.doctype.inn_folio_transaction_ty...
49.475638
169
0.790096
3,133
21,324
4.948292
0.051069
0.074824
0.075856
0.051087
0.914146
0.905051
0.887377
0.868993
0.849965
0.846094
0
0.002941
0.123054
21,324
431
170
49.475638
0.826096
0.060073
0
0.756983
0
0
0.131651
0.002098
0
0
0
0.00232
0
1
0.01676
false
0.002793
0.027933
0
0.067039
0.022346
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
1460ea711d040294de88c1522d612f5a07e0f6af
1,128
py
Python
packages/syft/src/syft/core/node/common/client_manager/role_api.py
jackbandy/PySyft
0e20e90abab6a7a7ca672d6eedfa1e7f83c4981b
[ "Apache-2.0" ]
null
null
null
packages/syft/src/syft/core/node/common/client_manager/role_api.py
jackbandy/PySyft
0e20e90abab6a7a7ca672d6eedfa1e7f83c4981b
[ "Apache-2.0" ]
null
null
null
packages/syft/src/syft/core/node/common/client_manager/role_api.py
jackbandy/PySyft
0e20e90abab6a7a7ca672d6eedfa1e7f83c4981b
[ "Apache-2.0" ]
null
null
null
# stdlib from typing import Any # relative from ...abstract.node import AbstractNodeClient from ...enums import ResponseObjectEnum from ..node_service.role_manager.role_manager_messages import CreateRoleMessage from ..node_service.role_manager.role_manager_messages import DeleteRoleMessage from ..node_service.role_man...
35.25
79
0.749113
125
1,128
6.392
0.352
0.137672
0.093867
0.118899
0.319149
0.319149
0.319149
0.319149
0.319149
0
0
0
0.179965
1,128
31
80
36.387097
0.863784
0.013298
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.375
0.041667
0.583333
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
1
0
0
2
1461a6da7a9beed86ae1959d1a45ad20a0e024f7
90,700
py
Python
ietf/ydk/models/ietf/iana_if_type.py
CiscoDevNet/ydk-py
073731fea50694d0bc6cd8ebf10fec308dcc0aa9
[ "ECL-2.0", "Apache-2.0" ]
177
2016-03-15T17:03:51.000Z
2022-03-18T16:48:44.000Z
ietf/ydk/models/ietf/iana_if_type.py
CiscoDevNet/ydk-py
073731fea50694d0bc6cd8ebf10fec308dcc0aa9
[ "ECL-2.0", "Apache-2.0" ]
18
2016-03-30T10:45:22.000Z
2020-07-14T16:28:13.000Z
ietf/ydk/models/ietf/iana_if_type.py
CiscoDevNet/ydk-py
073731fea50694d0bc6cd8ebf10fec308dcc0aa9
[ "ECL-2.0", "Apache-2.0" ]
85
2016-03-16T20:38:57.000Z
2022-02-22T04:26:02.000Z
""" iana_if_type This YANG module defines YANG identities for IANA\-registered interface types. This YANG module is maintained by IANA and reflects the 'ifType definitions' registry. The latest revision of this YANG module can be obtained from the IANA web site. Requests for new values should be made to IANA via e...
20.492544
141
0.619901
11,592
90,700
4.614044
0.066425
0.091987
0.153311
0.127603
0.674849
0.674027
0.557211
0.555117
0.555117
0.555117
0
0.042732
0.215127
90,700
4,425
142
20.497175
0.708603
0.090728
0
0.398249
0
0
0.328126
0.194544
0
0
0
0
0
1
0.199125
false
0
0.004376
0
0.800875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
146492b5825e6748c11ad8a01ce7cd816d909acc
5,307
py
Python
TimeSeriesTools/Similarities/similarities.py
Psicowired87/TimeSeriesTools
de42dbcc5371ee576df6c9521b1c79a47c147dd1
[ "MIT" ]
1
2015-05-01T14:14:02.000Z
2015-05-01T14:14:02.000Z
TimeSeriesTools/Similarities/similarities.py
Psicowired87/TimeSeriesTools
de42dbcc5371ee576df6c9521b1c79a47c147dd1
[ "MIT" ]
null
null
null
TimeSeriesTools/Similarities/similarities.py
Psicowired87/TimeSeriesTools
de42dbcc5371ee576df6c9521b1c79a47c147dd1
[ "MIT" ]
1
2015-05-01T14:15:03.000Z
2015-05-01T14:15:03.000Z
""" Distances or similarities between time series are functions that computes a distance measure or similarity measure pairwise and returns a matrix of distances between each timeserie. """ import numpy as np #import math def general_comparison(X, method, kwargs={}): """Function which acts as a switcher and wr...
28.686486
79
0.628415
681
5,307
4.837004
0.223201
0.021251
0.029751
0.018215
0.600182
0.569217
0.569217
0.569217
0.569217
0.553127
0
0.004235
0.28811
5,307
184
80
28.842391
0.867655
0.599585
0
0.444444
0
0
0.021179
0
0
0
0
0
0
1
0.111111
false
0.022222
0.022222
0
0.244444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
146511309f8c17002dac29adf6b1235ccc4469be
1,381
py
Python
BDAI/datapredict/arandom.py
FYPYTHON/method
94c8768b284f498dd4876ff152c355d76655f6c0
[ "Apache-2.0" ]
null
null
null
BDAI/datapredict/arandom.py
FYPYTHON/method
94c8768b284f498dd4876ff152c355d76655f6c0
[ "Apache-2.0" ]
null
null
null
BDAI/datapredict/arandom.py
FYPYTHON/method
94c8768b284f498dd4876ff152c355d76655f6c0
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 from random import randint start = 1 end = 100 def check_leve(num_ori): num = num_ori * 100 / 100 if 0 < num <= 19: level = 1 elif 19 < num <= 19 + 17: level = 2 elif 36 < num <= 36 + 15: level = 3 elif 51 < num <= 51 + 13: level = 4 elif 64 < num...
21.920635
71
0.493121
209
1,381
3.100478
0.373206
0.054012
0.018519
0.033951
0
0
0
0
0
0
0
0.125874
0.378711
1,381
62
72
22.274194
0.629371
0.065894
0
0.039216
0
0
0.009346
0
0
0
0.009346
0
0
1
0.058824
false
0
0.019608
0
0.098039
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
146608cbf54e2dc17b4bdc5c43fcee82318c9ee7
1,399
py
Python
sw_stresstest/util.py
ox-inet-resilience/sw_stresstest
6ffb6674b7550f32ac490a67fd5cb08352c92525
[ "Apache-2.0" ]
null
null
null
sw_stresstest/util.py
ox-inet-resilience/sw_stresstest
6ffb6674b7550f32ac490a67fd5cb08352c92525
[ "Apache-2.0" ]
null
null
null
sw_stresstest/util.py
ox-inet-resilience/sw_stresstest
6ffb6674b7550f32ac490a67fd5cb08352c92525
[ "Apache-2.0" ]
null
null
null
import subprocess import time import matplotlib.pyplot as plt def get_process_time(): return "%.2f mins" % (time.process_time() / 60) def savefig(sname, bar=False): barstr = "_bar" if bar else "" git_rev_hash = ( subprocess.check_output("git rev-parse HEAD".split()).decode("utf-8").strip() ...
29.765957
87
0.634739
198
1,399
4.348485
0.545455
0.029036
0.023229
0.053426
0.074332
0
0
0
0
0
0
0.029903
0.187277
1,399
46
88
30.413043
0.727353
0.148678
0
0
0
0
0.110642
0.028716
0
0
0
0
0
1
0.137931
false
0
0.137931
0.034483
0.344828
0.034483
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
14661876a82e21d72a76cbaff98ac6765f7f7da1
1,792
py
Python
src/omniverse/omniverse/pub_sub.py
XinghuiTao/ros2_turtlebot
206aa5c8830cc6598077ab4cf86ffed261183d1a
[ "MIT" ]
null
null
null
src/omniverse/omniverse/pub_sub.py
XinghuiTao/ros2_turtlebot
206aa5c8830cc6598077ab4cf86ffed261183d1a
[ "MIT" ]
null
null
null
src/omniverse/omniverse/pub_sub.py
XinghuiTao/ros2_turtlebot
206aa5c8830cc6598077ab4cf86ffed261183d1a
[ "MIT" ]
null
null
null
import rclpy from rclpy.node import Node from geometry_msgs.msg import Twist from sensor_msgs.msg import LaserScan from rclpy.qos import ReliabilityPolicy, QoSProfile from messager.msg import Date class Bootstrap(Node): def __init__(self): super().__init__('Bootstrap') self.publisher_ = self.creat...
33.811321
156
0.638393
240
1,792
4.6125
0.379167
0.050587
0.086721
0.03794
0.087624
0.059621
0
0
0
0
0
0.021986
0.263951
1,792
53
157
33.811321
0.816528
0.138393
0
0.052632
0
0
0.028646
0
0
0
0
0
0
1
0.105263
false
0
0.157895
0
0.289474
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
146653bc27b7e95442355cef810e6af40d36eb20
958
py
Python
agent/indy_catalyst_agent/messaging/basicmessage/handlers/basicmessage_handler.py
blhagadorn/indy-catalyst
c268dba024096d312f541fde40443a1757f21661
[ "Apache-2.0" ]
null
null
null
agent/indy_catalyst_agent/messaging/basicmessage/handlers/basicmessage_handler.py
blhagadorn/indy-catalyst
c268dba024096d312f541fde40443a1757f21661
[ "Apache-2.0" ]
null
null
null
agent/indy_catalyst_agent/messaging/basicmessage/handlers/basicmessage_handler.py
blhagadorn/indy-catalyst
c268dba024096d312f541fde40443a1757f21661
[ "Apache-2.0" ]
null
null
null
"""Basic message handler.""" from ...base_handler import BaseHandler, BaseResponder, RequestContext from ..messages.basicmessage import BasicMessage class BasicMessageHandler(BaseHandler): """Message handler class for basic messages.""" async def handle(self, context: RequestContext, responder: BaseResponde...
34.214286
80
0.677453
94
958
6.840426
0.446809
0.087092
0.049767
0
0
0
0
0
0
0
0
0.008119
0.228601
958
27
81
35.481481
0.861976
0.066806
0
0
0
0
0.120166
0
0
0
0
0
0.083333
1
0
false
0
0.166667
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
0
0
0
0
0
1
0
14667b6cfd7a7154cebc9042e17bc855580d4270
3,410
py
Python
src/InversionSection.py
r-barnes/PIS-G
8ce458654e7d7cfa4d89d0ddc618b60abebc9581
[ "MIT" ]
3
2020-09-24T14:33:46.000Z
2021-01-12T03:49:14.000Z
src/InversionSection.py
r-barnes/PIS-G
8ce458654e7d7cfa4d89d0ddc618b60abebc9581
[ "MIT" ]
8
2020-12-30T07:41:21.000Z
2021-01-13T04:30:04.000Z
src/InversionSection.py
r-barnes/PIS-G
8ce458654e7d7cfa4d89d0ddc618b60abebc9581
[ "MIT" ]
1
2021-01-10T20:19:15.000Z
2021-01-10T20:19:15.000Z
import matplotlib matplotlib.use("Qt5Agg") from PyQt5.QtWidgets import * from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas from matplotlib.backends.backend_qt5agg import NavigationToolbar2QT as NavigationToolbar from matplotlib.figure import Figure import matplotlib.pyplot as plt f...
37.888889
89
0.594135
448
3,410
4.426339
0.25
0.064549
0.03883
0.045386
0.549672
0.472012
0.430661
0.430661
0.409985
0.409985
0
0.029731
0.270088
3,410
89
90
38.314607
0.766975
0
0
0.432432
0
0
0.038844
0
0
0
0
0
0
1
0.108108
false
0
0.094595
0
0.22973
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1466fa7202c905c1ed7d0f3f21914b3b36e75eb2
390
py
Python
make_a_plea/celery.py
uk-gov-mirror/ministryofjustice.manchester_traffic_offences_pleas
4c625b13fa2826bdde083a0270dcea1791f6dc18
[ "MIT" ]
3
2015-12-22T16:37:14.000Z
2018-01-22T18:44:38.000Z
make_a_plea/celery.py
uk-gov-mirror/ministryofjustice.manchester_traffic_offences_pleas
4c625b13fa2826bdde083a0270dcea1791f6dc18
[ "MIT" ]
145
2015-03-04T11:17:50.000Z
2022-03-21T12:10:13.000Z
make_a_plea/celery.py
uk-gov-mirror/ministryofjustice.manchester_traffic_offences_pleas
4c625b13fa2826bdde083a0270dcea1791f6dc18
[ "MIT" ]
3
2015-12-29T14:59:12.000Z
2021-04-11T06:24:11.000Z
from __future__ import absolute_import import os from celery import Celery from django.conf import settings if not "DJANGO_SETTINGS_MODULE" in os.environ: os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'make_a_plea.settings.local') app = Celery('apps.plea') app.config_from_object('django.conf:settings', namesp...
27.857143
81
0.810256
55
390
5.472727
0.509091
0.066445
0.13289
0
0
0
0
0
0
0
0
0
0.092308
390
13
82
30
0.850282
0
0
0
0
0
0.269231
0.179487
0
0
0
0
0
1
0
false
0
0.444444
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
146cf0019e1baae0f4a02bb5f0b25a3b7ca507b7
3,676
py
Python
openr/py/openr/cli/clis/prefix_mgr.py
xubingyue/openr
d883b613ff0dae8c1048488bd5332cd138d78af7
[ "MIT" ]
1
2021-01-13T09:45:11.000Z
2021-01-13T09:45:11.000Z
openr/py/openr/cli/clis/prefix_mgr.py
xubingyue/openr
d883b613ff0dae8c1048488bd5332cd138d78af7
[ "MIT" ]
null
null
null
openr/py/openr/cli/clis/prefix_mgr.py
xubingyue/openr
d883b613ff0dae8c1048488bd5332cd138d78af7
[ "MIT" ]
null
null
null
# # Copyright (c) 2014-present, Facebook, Inc. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals from __future__ import divi...
31.689655
78
0.661045
452
3,676
5.188053
0.300885
0.049893
0.040938
0.054584
0.257569
0.231983
0.231983
0.175693
0.175693
0.154371
0
0.00784
0.23667
3,676
115
79
31.965217
0.827869
0.180359
0
0.217391
0
0
0.099347
0.014782
0
0
0
0
0
1
0.101449
false
0.072464
0.144928
0
0.333333
0.014493
0
0
0
null
0
0
0
0
0
0
0
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
146dd66480416c85e1f3fbd450fd3d6014348667
829
py
Python
editor_csv.py
zhixing121/python-web-spider
b696bfee2c14bf30f925e202f2c61da45d4a7c23
[ "CNRI-Python" ]
1
2017-12-26T16:01:13.000Z
2017-12-26T16:01:13.000Z
editor_csv.py
zhixing121/python-web-spider
b696bfee2c14bf30f925e202f2c61da45d4a7c23
[ "CNRI-Python" ]
null
null
null
editor_csv.py
zhixing121/python-web-spider
b696bfee2c14bf30f925e202f2c61da45d4a7c23
[ "CNRI-Python" ]
null
null
null
import csv import os from urllib.request import urlopen from bs4 import BeautifulSoup html = urlopen("http://en.wikipedia.org/wiki/Comparison_of_text_editors") bsObj = BeautifulSoup(html, "html.parser") main_table = bsObj.findAll("table", {"class": "wikitable"})[0] #findAll生成列表 rows = main_table.findAll("tr...
27.633333
79
0.641737
101
829
5.207921
0.554455
0.068441
0.060837
0.087452
0.178707
0.178707
0.178707
0.178707
0.178707
0.178707
0
0.005997
0.195416
829
30
80
27.633333
0.782609
0.027744
0
0.173913
0
0
0.197165
0
0
0
0
0
0
1
0
false
0
0.173913
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
0
0
0
0
0
0
0
0
0
0
1
0
146e301faad6d37d22b69f9018760b69109e85d8
4,267
py
Python
CombatSystem/combatGame.py
climbablebug44/synergy
dc9bec9da56d436842151e9ceaf004a7db3ed8d0
[ "MIT" ]
null
null
null
CombatSystem/combatGame.py
climbablebug44/synergy
dc9bec9da56d436842151e9ceaf004a7db3ed8d0
[ "MIT" ]
null
null
null
CombatSystem/combatGame.py
climbablebug44/synergy
dc9bec9da56d436842151e9ceaf004a7db3ed8d0
[ "MIT" ]
null
null
null
import pygame from CombatSystem import playerEntity from common import gameConstants as c from CombatSystem.spriteSheetManager import spriteSheetManager from pygame import mixer class combatGame(object): def __init__(self, size, screen): self.clock = pygame.time.Clock() # self.sSManager = spriteSh...
41.833333
118
0.541833
453
4,267
5.066225
0.309051
0.056645
0.045752
0.037037
0.264052
0.253595
0.235294
0.235294
0.171678
0.171678
0
0.025219
0.3588
4,267
101
119
42.247525
0.813596
0.039372
0
0.175
0
0
0.019146
0
0
0
0
0.019802
0
1
0.075
false
0
0.0625
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
146e6232114db733f3b0d7c61e5999eb7219ef0b
18,337
py
Python
semvecpy/vectors/binary_packedbitvectors.py
semanticvectors/semvecpy
b08c038a75faa9130f84cb8ff2ce57a40bca75c1
[ "BSD-3-Clause" ]
6
2019-08-07T19:09:21.000Z
2021-12-10T15:14:07.000Z
semvecpy/vectors/binary_packedbitvectors.py
semanticvectors/semvecpy
b08c038a75faa9130f84cb8ff2ce57a40bca75c1
[ "BSD-3-Clause" ]
2
2019-08-20T16:34:49.000Z
2020-08-07T22:52:57.000Z
semvecpy/vectors/binary_packedbitvectors.py
semanticvectors/semvecpy
b08c038a75faa9130f84cb8ff2ce57a40bca75c1
[ "BSD-3-Clause" ]
5
2019-06-20T18:50:05.000Z
2020-02-14T07:04:41.000Z
""" Binary vectors provide the basis for a representational approach developed by Pentti Kanerva known as the Binary Spatter Code, with the following key components: (1) Randomly generated bit vectors with a .5 probability of a set bit in each component (2) A *superposition* operator: this combines bit vectors elementw...
38.122661
149
0.587173
2,452
18,337
4.354812
0.199429
0.006556
0.005619
0.007492
0.226072
0.180465
0.150871
0.1062
0.09852
0.073609
0
0.03096
0.305993
18,337
480
150
38.202083
0.807952
0.329443
0
0.193676
1
0.059289
0.006765
0
0
0
0
0.004167
0
1
0.130435
false
0
0.035573
0.011858
0.252964
0.003953
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
146e8fb91d80fa949c6e8011c9464b27f7799c13
2,380
py
Python
kstore/migrations/0002_product.py
KeoH/django-keoh-kstore
825d7984a06823a4e592265c4e791b455ddbb481
[ "BSD-2-Clause" ]
null
null
null
kstore/migrations/0002_product.py
KeoH/django-keoh-kstore
825d7984a06823a4e592265c4e791b455ddbb481
[ "BSD-2-Clause" ]
null
null
null
kstore/migrations/0002_product.py
KeoH/django-keoh-kstore
825d7984a06823a4e592265c4e791b455ddbb481
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('kstore', '0001_initial'), ] operations = [ migrations.CreateModel( name='Product', fields=[ ...
58.04878
133
0.628571
264
2,380
5.481061
0.310606
0.136835
0.08293
0.091914
0.405667
0.319972
0.153421
0.153421
0.129924
0.078784
0
0.018488
0.227311
2,380
40
134
59.5
0.768352
0.008824
0
0
0
0
0.184132
0
0
0
0
0
0
1
0
false
0
0.058824
0
0.147059
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
14717cb73f4fcafb66b24b0e05933e41c92a4ce2
6,194
py
Python
lib/tensor_helper.py
jwspaeth/FAA-Project
afa9d3bec10deead48c4b17dff69df2e02691e41
[ "MIT" ]
null
null
null
lib/tensor_helper.py
jwspaeth/FAA-Project
afa9d3bec10deead48c4b17dff69df2e02691e41
[ "MIT" ]
2
2019-10-20T00:42:40.000Z
2019-10-30T18:06:11.000Z
lib/tensor_helper.py
jwspaeth/FAA-Project
afa9d3bec10deead48c4b17dff69df2e02691e41
[ "MIT" ]
null
null
null
import tensorflow as tf from tensorflow.keras import backend from tensorflow.keras.layers import Lambda from tensorflow.keras import layers def split(tensor, axis, keep_dims=False): shape = backend.int_shape(tensor) tensor_list = [] for i in range(shape[axis]): sliced_tensor = Lambda(lambda x: x[:,i,:,:])(ten...
30.81592
94
0.669357
790
6,194
4.944304
0.111392
0.025602
0.015361
0.028162
0.528674
0.380184
0.261137
0.15617
0.100614
0.041475
0
0.001225
0.209558
6,194
200
95
30.97
0.796569
0.020665
0
0.276596
0
0
0
0
0
0
0
0
0
1
0.141844
false
0
0.028369
0.014184
0.29078
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1471ffde947b195df3146f6179d3445bcf40ebc8
2,126
py
Python
tests/unit/configuration_subsystem/test_internals.py
LaudateCorpus1/ansible-navigator
28cdea13dba3e9039382eb993989db4b3e61b237
[ "Apache-2.0" ]
null
null
null
tests/unit/configuration_subsystem/test_internals.py
LaudateCorpus1/ansible-navigator
28cdea13dba3e9039382eb993989db4b3e61b237
[ "Apache-2.0" ]
null
null
null
tests/unit/configuration_subsystem/test_internals.py
LaudateCorpus1/ansible-navigator
28cdea13dba3e9039382eb993989db4b3e61b237
[ "Apache-2.0" ]
null
null
null
"""Test the internals of a NavigatorConfiguration.""" import os from copy import deepcopy from ansible_navigator.configuration_subsystem import Constants from ansible_navigator.configuration_subsystem import NavigatorConfiguration from ansible_navigator.initialization import parse_and_update from .defaults import TE...
39.37037
97
0.784572
267
2,126
6.011236
0.250936
0.134579
0.139564
0.100935
0.71838
0.689097
0.553271
0.553271
0.553271
0.553271
0
0
0.147695
2,126
53
98
40.113208
0.885762
0.246943
0
0.413793
0
0
0.046332
0.042471
0
0
0
0
0.206897
1
0.137931
false
0
0.206897
0.034483
0.37931
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1476362831f27710fac9b1814044976cc0886949
14,703
py
Python
cogs/juan/fanclub.py
nwunderly/RevBots
820a5a28c093f9fc4a73651117e06900e16976a2
[ "MIT" ]
5
2020-05-08T10:09:10.000Z
2020-07-22T23:55:00.000Z
cogs/juan/fanclub.py
nwunderly/RevBots
820a5a28c093f9fc4a73651117e06900e16976a2
[ "MIT" ]
2
2020-02-27T00:30:49.000Z
2020-03-02T21:35:31.000Z
cogs/juan/fanclub.py
nwunderly/RevBots
820a5a28c093f9fc4a73651117e06900e16976a2
[ "MIT" ]
2
2020-02-27T13:03:27.000Z
2020-03-01T19:12:42.000Z
import discord from discord.ext import commands from discord.ext import tasks import datetime import asyncio import decimal import yaml import re import copy import collections from utils import juan_checks as checks from utils import db from utils import converters VISITOR_ROLE = 582405430274293770 DEVELOPER_ROLE...
35.948655
149
0.600694
1,928
14,703
4.418568
0.114108
0.025472
0.024533
0.018312
0.474586
0.425167
0.378213
0.297922
0.26435
0.212231
0
0.014937
0.289669
14,703
408
150
36.036765
0.800555
0.009658
0
0.364706
0
0.008824
0.114737
0.003573
0
0
0
0
0
1
0.052941
false
0.002941
0.038235
0.002941
0.182353
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
147794b11f083834b0a515872fd145a05f2c04be
221
py
Python
example/http_server.py
tor4z/ion
aa60ac23246f5fab5a5199704a65f7068d316179
[ "MIT" ]
null
null
null
example/http_server.py
tor4z/ion
aa60ac23246f5fab5a5199704a65f7068d316179
[ "MIT" ]
null
null
null
example/http_server.py
tor4z/ion
aa60ac23246f5fab5a5199704a65f7068d316179
[ "MIT" ]
null
null
null
class MyHTTPHandler(HTTPHandler): def GET(self): return "It's worked." if __name__ == "__main__": http = HTTPServer() http.bind(("localhost", 9000)) http.serv("/", MyHTTPHandler) http.start()
22.1
34
0.61991
24
221
5.375
0.833333
0
0
0
0
0
0
0
0
0
0
0.023121
0.217195
221
10
35
22.1
0.722543
0
0
0
0
0
0.135747
0
0
0
0
0
0
1
0.125
false
0
0
0.125
0.375
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
1
0
0
0
2
147ab841bf342fcda700f1104a6e09f84f9d4bf0
2,383
py
Python
lab6/program/lidar_model.py
windsuzu/Robot-Navigation
2b66df58e0a0799c25244f89a4e5a16d856b2320
[ "MIT" ]
6
2021-11-09T12:42:13.000Z
2022-02-25T03:43:00.000Z
lab6/program/lidar_model.py
windsuzu/Robot-Navigation
2b66df58e0a0799c25244f89a4e5a16d856b2320
[ "MIT" ]
null
null
null
lab6/program/lidar_model.py
windsuzu/Robot-Navigation
2b66df58e0a0799c25244f89a4e5a16d856b2320
[ "MIT" ]
1
2021-10-01T15:30:30.000Z
2021-10-01T15:30:30.000Z
import numpy as np import cv2 import sys from utils import * class LidarModel: def __init__(self, img_map, sensor_size = 21, start_angle = -120.0, end_angle = 120.0, max_dist = 200.0, ): self.sensor_size = sensor_size self.start_an...
33.097222
124
0.534201
371
2,383
3.277628
0.247978
0.029605
0.041118
0.03125
0.073191
0
0
0
0
0
0
0.071255
0.310953
2,383
72
125
33.097222
0.669306
0
0
0
0
0
0.012584
0
0
0
0
0
0
1
0.060606
false
0
0.060606
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
147b00995ae20769b7f485083e84166a340a1e74
1,399
py
Python
main/tools/verification_code.py
anngle/t923
078d2c566c77afa2ca1be7663d3c23c9f0ecddac
[ "BSD-3-Clause" ]
1
2021-11-28T05:46:45.000Z
2021-11-28T05:46:45.000Z
main/tools/verification_code.py
anngle/t923
078d2c566c77afa2ca1be7663d3c23c9f0ecddac
[ "BSD-3-Clause" ]
null
null
null
main/tools/verification_code.py
anngle/t923
078d2c566c77afa2ca1be7663d3c23c9f0ecddac
[ "BSD-3-Clause" ]
null
null
null
import random,string from datetime import datetime from ..views.public import bp as public_bp def rndChar(): """随机字母:""" str = '' for i in range(4): str += chr(random.randint(65, 90)) return str def rndColor(): """随机颜色1""" return (random.randint(64, 255), random.randint(64, 255),...
21.859375
86
0.61544
182
1,399
4.648352
0.456044
0.107565
0.053191
0.06383
0.12766
0.12766
0.12766
0.12766
0
0
0
0.058387
0.228735
1,399
63
87
22.206349
0.725672
0.113653
0
0
0
0
0.069594
0.040597
0
0
0
0
0
1
0.129032
false
0
0.096774
0
0.354839
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
147bc4f8e6ae805cfc73d5804d3fd691847d2e69
973
py
Python
docs/conf.py
purplepinapples/aniffinity
36b6eec3c7b135aec61f138cdc139dd39561448a
[ "MIT" ]
9
2019-03-10T01:22:35.000Z
2021-11-08T12:36:10.000Z
docs/conf.py
purplepinapples/aniffinity
36b6eec3c7b135aec61f138cdc139dd39561448a
[ "MIT" ]
10
2019-01-04T21:22:42.000Z
2019-04-27T13:10:53.000Z
docs/conf.py
purplepinapples/aniffinity
36b6eec3c7b135aec61f138cdc139dd39561448a
[ "MIT" ]
1
2019-04-12T08:56:14.000Z
2019-04-12T08:56:14.000Z
import datetime import sys sys.path.insert(0, "..") from aniffinity import __about__ # noqa: E402 year = datetime.datetime.now().year author = __about__.__author__ project = __about__.__title__ release = __about__.__version__ copyright = "{}, {}".format(year, author) version = ".".join(relea...
18.711538
74
0.661871
116
973
5.112069
0.698276
0.033727
0
0
0
0
0
0
0
0
0
0.015424
0.200411
973
51
75
19.078431
0.746787
0.153135
0
0
0
0
0.15625
0
0
0
0
0
0
1
0.08
false
0
0.12
0
0.28
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
147e4c37e82e99774bdffd577533bd3c9ad7347e
716
py
Python
staff/files.py
skyydq/GreaterWMS
e14014a73b36ec0f0df03712a229b0931cb388fb
[ "Apache-2.0" ]
2
2021-11-09T10:29:44.000Z
2021-11-15T08:03:40.000Z
staff/files.py
ashrafali46/GreaterWMS
1aed14a8c26c8ac4571db5e6b07ab7e4fa3c7c72
[ "Apache-2.0" ]
null
null
null
staff/files.py
ashrafali46/GreaterWMS
1aed14a8c26c8ac4571db5e6b07ab7e4fa3c7c72
[ "Apache-2.0" ]
1
2021-07-01T03:05:21.000Z
2021-07-01T03:05:21.000Z
from rest_framework_csv.renderers import CSVStreamingRenderer class FileRenderCN(CSVStreamingRenderer): header = [ 'staff_name', 'staff_type', 'create_time', 'update_time' ] labels = dict([ ('staff_name', u'员工用户名'), ('staff_type', u'员工类型'), ('create_t...
23.866667
61
0.550279
71
716
5.295775
0.338028
0.119681
0.111702
0.143617
0.446809
0.446809
0.446809
0.446809
0.446809
0.446809
0
0
0.298883
716
29
62
24.689655
0.749004
0
0
0.518519
0
0
0.317039
0
0
0
0
0
0
1
0
false
0
0.037037
0
0.259259
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
147f39b77ce21747030f0597ae31c34fe414a767
3,837
py
Python
scripts/utils.py
AlgoveraAI/DeFi
9e98aa68ad34e5bb177ec8345121e8a03ada6edc
[ "MIT" ]
null
null
null
scripts/utils.py
AlgoveraAI/DeFi
9e98aa68ad34e5bb177ec8345121e8a03ada6edc
[ "MIT" ]
2
2021-12-15T20:15:35.000Z
2021-12-16T10:03:58.000Z
scripts/utils.py
AlgoveraAI/DeFi
9e98aa68ad34e5bb177ec8345121e8a03ada6edc
[ "MIT" ]
1
2022-01-15T11:49:59.000Z
2022-01-15T11:49:59.000Z
import pandas as pd from fastai.tabular.all import * def get_token_features(df, tokens): df1 = pd.DataFrame() for tok in tokens: df_tok = df[df['Token']==tok] df_tok = df_tok.drop(['Token', 'Date'], axis=1) col_names = [] for col in df_tok.columns: if col == 'Timest...
33.365217
118
0.617931
527
3,837
4.294118
0.204934
0.022978
0.034468
0.026513
0.372072
0.34821
0.295183
0.295183
0.295183
0.295183
0
0.011379
0.244201
3,837
115
119
33.365217
0.768966
0.01694
0
0.353659
0
0
0.147176
0.006364
0
0
0
0
0
1
0.04878
false
0
0.02439
0
0.109756
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
147ff2eb5cc2520a781b4df48351b63b5d4614b5
1,645
py
Python
tests/readers/test_po_reader.py
fabiocorneti/xlpo
9fc4729c7e139a9a9fc74c88068e2691b2b120df
[ "BSD-3-Clause" ]
null
null
null
tests/readers/test_po_reader.py
fabiocorneti/xlpo
9fc4729c7e139a9a9fc74c88068e2691b2b120df
[ "BSD-3-Clause" ]
null
null
null
tests/readers/test_po_reader.py
fabiocorneti/xlpo
9fc4729c7e139a9a9fc74c88068e2691b2b120df
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import os import unittest from xlpo.readers import POFileTranslationsReader from tests.base import BaseTestCase class TestPOTranslationsReader(BaseTestCase): def test_valid_files(self): po_file = os.pa...
32.9
76
0.689362
187
1,645
5.871658
0.352941
0.081967
0.043716
0.038251
0.396175
0.350638
0.249545
0.225865
0.142077
0.142077
0
0.009112
0.199392
1,645
49
77
33.571429
0.824601
0.025532
0
0.305556
0
0
0.03935
0
0
0
0
0
0.333333
1
0.111111
false
0
0.138889
0
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
147ff7eaa3c8d013a61ba02817c8400feb311c49
6,576
py
Python
pytube/contrib/channel.py
JarbasAl/pytube
10d0bdb6761682c2a48e4c816aec4bb9b801f7aa
[ "Unlicense" ]
4,079
2015-01-08T13:09:24.000Z
2020-12-31T08:59:22.000Z
pytube/contrib/channel.py
JarbasAl/pytube
10d0bdb6761682c2a48e4c816aec4bb9b801f7aa
[ "Unlicense" ]
807
2015-02-23T12:49:43.000Z
2020-12-31T16:09:01.000Z
pytube/contrib/channel.py
JarbasAl/pytube
10d0bdb6761682c2a48e4c816aec4bb9b801f7aa
[ "Unlicense" ]
1,079
2015-01-08T10:16:47.000Z
2020-12-30T15:26:13.000Z
# -*- coding: utf-8 -*- """Module for interacting with a user's youtube channel.""" import json import logging from typing import Dict, List, Optional, Tuple from pytube import extract, Playlist, request from pytube.helpers import uniqueify logger = logging.getLogger(__name__) class Channel(Playlist): def __ini...
32.554455
114
0.572384
678
6,576
5.39528
0.246313
0.035539
0.02187
0.027884
0.304265
0.275287
0.275287
0.242482
0.193275
0.193275
0
0.003455
0.339872
6,576
201
115
32.716418
0.839208
0.254562
0
0.3
0
0
0.131579
0.058333
0
0
0
0
0
1
0.090909
false
0
0.081818
0
0.318182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1481014f1238c87b509f6d7636e1089e842e9bb5
2,821
py
Python
lib/python3.6/site-packages/pony/orm/tests/test_getattr.py
PhonPhey/Magnezi
bf96246d69edc6882653ba5e1332c0eff8d10294
[ "MIT" ]
3
2017-04-27T09:37:25.000Z
2017-08-12T16:25:22.000Z
lib/python3.6/site-packages/pony/orm/tests/test_getattr.py
PhonPhey/Magnezi
bf96246d69edc6882653ba5e1332c0eff8d10294
[ "MIT" ]
2
2017-06-29T13:25:58.000Z
2017-07-21T10:09:27.000Z
lib/python3.6/site-packages/pony/orm/tests/test_getattr.py
PhonPhey/Magnezi
bf96246d69edc6882653ba5e1332c0eff8d10294
[ "MIT" ]
1
2017-10-08T11:42:52.000Z
2017-10-08T11:42:52.000Z
from pony.py23compat import basestring import unittest from pony.orm import * from pony import orm from pony.utils import cached_property from pony.orm.tests.testutils import raises_exception class Test(unittest.TestCase): @cached_property def db(self): return orm.Database('sqlite', ':m...
30.663043
95
0.594116
370
2,821
4.432432
0.256757
0.040244
0.032927
0.054878
0.479268
0.42622
0.39939
0.396951
0.3
0.3
0
0.004978
0.287841
2,821
91
96
31
0.811349
0
0
0.294118
0
0
0.083211
0
0
0
0
0
0.088235
1
0.161765
false
0
0.088235
0.014706
0.338235
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
148507709ec89a7b9ce8b3e2efc0d3035c5ed4c9
423
py
Python
web/opsgrid/core/migrations/0010_auto_20200612_1724.py
simon-weber/opsgrid
9719b9438a4a17eb75b638613a20b534ef82edc7
[ "MIT" ]
null
null
null
web/opsgrid/core/migrations/0010_auto_20200612_1724.py
simon-weber/opsgrid
9719b9438a4a17eb75b638613a20b534ef82edc7
[ "MIT" ]
1
2021-07-26T15:43:47.000Z
2021-07-28T10:06:49.000Z
web/opsgrid/core/migrations/0010_auto_20200612_1724.py
simon-weber/opsgrid
9719b9438a4a17eb75b638613a20b534ef82edc7
[ "MIT" ]
null
null
null
# Generated by Django 2.2.9 on 2020-06-12 17:24 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("core", "0009_alertstatus_alarming_hosts"), ] operations = [ migrations.AlterField( model_name="alertstatus", name="a...
22.263158
69
0.619385
45
423
5.711111
0.755556
0.101167
0
0
0
0
0
0
0
0
0
0.061093
0.264775
423
18
70
23.5
0.765273
0.106383
0
0
1
0
0.183511
0.082447
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1485a31bf1f79c39d579abb85dfc18c55092eb28
3,545
py
Python
fastapi_code_generator/__main__.py
allen-munsch/fastapi-code-generator
516735f8992ab9e9b5b038a90766deffbb25e702
[ "MIT" ]
null
null
null
fastapi_code_generator/__main__.py
allen-munsch/fastapi-code-generator
516735f8992ab9e9b5b038a90766deffbb25e702
[ "MIT" ]
null
null
null
fastapi_code_generator/__main__.py
allen-munsch/fastapi-code-generator
516735f8992ab9e9b5b038a90766deffbb25e702
[ "MIT" ]
null
null
null
from datetime import datetime, timezone from pathlib import Path from typing import Dict, Optional import typer from datamodel_code_generator import PythonVersion, chdir from datamodel_code_generator.format import CodeFormatter from datamodel_code_generator.parser.openapi import OpenAPIParser as OpenAPIModelParser fro...
33.130841
87
0.666855
419
3,545
5.434368
0.288783
0.057971
0.022398
0.034256
0.035134
0.035134
0.035134
0
0
0
0
0.002171
0.22031
3,545
106
88
33.443396
0.821635
0.007052
0
0.070588
0
0
0.096471
0.015652
0
0
0
0
0
1
0.023529
false
0
0.117647
0
0.164706
0.070588
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
14867dc769343133304ed2cb1cb736d1e1c8931c
752
py
Python
code/timewalk.py
spicecoder/Udacity_Robo_search
682568845e23a5d6f1db8aa2423b6a3e0396a152
[ "MIT" ]
null
null
null
code/timewalk.py
spicecoder/Udacity_Robo_search
682568845e23a5d6f1db8aa2423b6a3e0396a152
[ "MIT" ]
null
null
null
code/timewalk.py
spicecoder/Udacity_Robo_search
682568845e23a5d6f1db8aa2423b6a3e0396a152
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import csv import time x = [] y = [] # Draw a point based on the x, y axis value. def draw_point(a,b): # Draw a point at the location (3, 9) with size 1000 plt.scatter(a, b, s=1000) # Set chart title. plt.title("Square Numbers", fontsize=19) # Set x axis label. ...
20.888889
60
0.632979
121
752
3.909091
0.545455
0.008457
0.042283
0.080338
0
0
0
0
0
0
0
0.034722
0.234043
752
35
61
21.485714
0.786458
0.287234
0
0
0
0
0.104364
0
0
0
0
0
0
1
0.058824
false
0
0.176471
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
14873e1459fd28392f8d92a01500f6ff166f405e
1,086
py
Python
switch.py
wangzhifengemc/Pied
3cb726835b80c5e40c79cb37a8382b085217aad2
[ "MIT" ]
null
null
null
switch.py
wangzhifengemc/Pied
3cb726835b80c5e40c79cb37a8382b085217aad2
[ "MIT" ]
null
null
null
switch.py
wangzhifengemc/Pied
3cb726835b80c5e40c79cb37a8382b085217aad2
[ "MIT" ]
null
null
null
#!/usr/bin/env python import RPi.GPIO as GPIO import time LedPin = 26 # pin26 def Switch_setup(): # GPIO.setmode(GPIO.BCM) # Numbers pins by physical location GPIO.setup(LedPin, GPIO.OUT) # Set pin mode as output GPIO.output(LedPin, GPIO.HIGH) # Set pin to high(+3.3V) to off the led def Swi...
27.846154
106
0.57919
147
1,086
4.190476
0.442177
0.081169
0.103896
0.12987
0.288961
0.25
0.25
0.152597
0.152597
0
0
0.018742
0.312155
1,086
38
107
28.578947
0.80589
0.294659
0
0.25
0
0
0.037921
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
14885518ee5bdf26119d578bdfe03fa5dfcbf72d
3,371
py
Python
tests/test_encode.py
DenverCoder1/godel-number-to-code
1f4fc3d5eba97ca45411302a67db79c77e44e19d
[ "MIT" ]
null
null
null
tests/test_encode.py
DenverCoder1/godel-number-to-code
1f4fc3d5eba97ca45411302a67db79c77e44e19d
[ "MIT" ]
null
null
null
tests/test_encode.py
DenverCoder1/godel-number-to-code
1f4fc3d5eba97ca45411302a67db79c77e44e19d
[ "MIT" ]
1
2022-01-18T19:51:33.000Z
2022-01-18T19:51:33.000Z
from src.encode_program import ( encode_program_as_number, encode_label, encode_var, convert_instruction, ) from .test_utils.constants import BASIC, GOTO, VARIABLES from .test_utils.test_utils import read_program import pytest def test_encode_program_basic(): """Encode program with NOOP, ADD, MONUS to program ...
28.811966
65
0.738653
467
3,371
5.111349
0.154176
0.163385
0.094261
0.131965
0.574361
0.541265
0.508588
0.406368
0.346879
0.346879
0
0.017635
0.142094
3,371
116
66
29.060345
0.807746
0.26194
0
0.193548
0
0
0.100249
0.009114
0
0
0
0
0.403226
1
0.177419
false
0
0.064516
0
0.241935
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
148aed66cef31c0c2ec9eb004a6e093ae5f5aada
477
py
Python
content/admin.py
mislavcimpersak/sentish
7402fa1cb65d4027f7e3151370283f9eb8743ace
[ "MIT" ]
null
null
null
content/admin.py
mislavcimpersak/sentish
7402fa1cb65d4027f7e3151370283f9eb8743ace
[ "MIT" ]
null
null
null
content/admin.py
mislavcimpersak/sentish
7402fa1cb65d4027f7e3151370283f9eb8743ace
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Publisher, Article @admin.register(Publisher) class PublisherAdmin(admin.ModelAdmin): list_display = ["name", "domain"] search_fields = ["name", "domain"] @admin.register(Article) class ArticleAdmin(admin.ModelAdmin): list_display = ["title", "publish...
26.5
51
0.706499
52
477
6.307692
0.557692
0.079268
0.115854
0.158537
0
0
0
0
0
0
0
0
0.15304
477
17
52
28.058824
0.811881
0
0
0
0
0
0.157233
0
0
0
0
0
0
1
0
false
0
0.153846
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
148ceb1fb000771c1bef8a1a38a56aebb024d47d
1,457
py
Python
route/__init__.py
zyguan/pyroute
16527374419780672f7ceae6f2a123a336603572
[ "MIT" ]
null
null
null
route/__init__.py
zyguan/pyroute
16527374419780672f7ceae6f2a123a336603572
[ "MIT" ]
null
null
null
route/__init__.py
zyguan/pyroute
16527374419780672f7ceae6f2a123a336603572
[ "MIT" ]
null
null
null
import _route VINCENTY = 1 HAVERSINE = 2 def distance(lat1, lng1, lat2, lng2, formula=VINCENTY, iterlimit=20): """ Calculate distance between two points. :param lat1: latitude of point 1 in degrees :param lng1: longitude of point 1 in degrees :param lat2: latitude of point 2 in degrees :param...
31
72
0.702128
206
1,457
4.893204
0.252427
0.055556
0.071429
0.095238
0.540675
0.434524
0.314484
0.279762
0.279762
0.279762
0
0.039316
0.19698
1,457
46
73
31.673913
0.822222
0.495539
0
0
0
0
0
0
0
0
0
0
0
1
0.4
false
0
0.066667
0.266667
0.866667
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
1
1
0
0
3
148edfcbbb548da291d232bce2ff074913d016aa
1,335
py
Python
django/contrib/contenttypes/tests.py
huicheese/Django-test3
ac11d2dce245b48392e52d1f4acfd5e7433b243e
[ "BSD-3-Clause" ]
91
2015-01-05T01:10:51.000Z
2021-09-26T18:01:53.000Z
django/contrib/contenttypes/tests.py
joetyson/django
c3699190186561d5c216b2a77ecbfc487d42a734
[ "BSD-3-Clause" ]
4
2015-07-05T21:09:37.000Z
2019-09-06T14:34:59.000Z
django/contrib/contenttypes/tests.py
joetyson/django
c3699190186561d5c216b2a77ecbfc487d42a734
[ "BSD-3-Clause" ]
32
2015-04-03T04:29:45.000Z
2021-09-14T21:36:02.000Z
""" Make sure that the content type cache (see ContentTypeManager) works correctly. Lookups for a particular content type -- by model or by ID -- should hit the database only on the first lookup. First, let's make sure we're dealing with a blank slate (and that DEBUG is on so that queries get logged):: >>> from d...
28.404255
80
0.689139
186
1,335
4.887097
0.408602
0.118812
0.092409
0.105611
0.342134
0.279428
0.235424
0.235424
0.184818
0.184818
0
0.003756
0.202247
1,335
47
81
28.404255
0.849765
0.994007
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
148f4c1f2a15a99386afd8bf7437ae1271c28c0c
63
py
Python
gethigal/__init__.py
vlas-sokolov/gethigal
4a1cdd2b5acd673f19fa99a87560f09ba8dba2eb
[ "MIT" ]
4
2017-03-22T19:58:44.000Z
2019-08-25T23:39:46.000Z
gethigal/__init__.py
vlas-sokolov/gethigal
4a1cdd2b5acd673f19fa99a87560f09ba8dba2eb
[ "MIT" ]
null
null
null
gethigal/__init__.py
vlas-sokolov/gethigal
4a1cdd2b5acd673f19fa99a87560f09ba8dba2eb
[ "MIT" ]
null
null
null
from . import requestform from .requestform import RequestForm
21
36
0.84127
7
63
7.571429
0.428571
0.641509
0
0
0
0
0
0
0
0
0
0
0.126984
63
2
37
31.5
0.963636
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
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
1
0
1
0
1
0
0
6
148fccfed7ce693db285318059d68d89b499a64d
334
py
Python
exemplo_8.py
felipesantoos/pandas
4ebecbfed9e7963ee74d9510cca9157c2fcb54c0
[ "MIT" ]
null
null
null
exemplo_8.py
felipesantoos/pandas
4ebecbfed9e7963ee74d9510cca9157c2fcb54c0
[ "MIT" ]
null
null
null
exemplo_8.py
felipesantoos/pandas
4ebecbfed9e7963ee74d9510cca9157c2fcb54c0
[ "MIT" ]
null
null
null
import pandas as pd import shutil as sh langs = { "name": ["Go", "Python", "TypeScript", "PHP"], "score": [10, 9, 10, 6] } df = pd.DataFrame(langs, index = ["lang1", "lang2", "lang3", "lang4"]) print(df.loc["lang2"]) # Retorna um Pandas Series. print("-" * sh.get_terminal_size().columns) print(df.loc[["lang3...
23.857143
70
0.607784
47
334
4.276596
0.680851
0.099502
0.099502
0
0
0
0
0
0
0
0
0.046263
0.158683
334
13
71
25.692308
0.669039
0.07485
0
0
0
0
0.214984
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.3
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
148feabf54ade022cfd30a6e3c7acb31b5014b87
2,563
py
Python
webserver/python2.7/site-packages/area/__init__.py
maxr1876/Radix
bf9a5470908ea0823c8398565086b1e6b960c73b
[ "BSD-2-Clause" ]
null
null
null
webserver/python2.7/site-packages/area/__init__.py
maxr1876/Radix
bf9a5470908ea0823c8398565086b1e6b960c73b
[ "BSD-2-Clause" ]
null
null
null
webserver/python2.7/site-packages/area/__init__.py
maxr1876/Radix
bf9a5470908ea0823c8398565086b1e6b960c73b
[ "BSD-2-Clause" ]
null
null
null
from __future__ import division import json from math import pi, sin __version__ = '1.1.0' WGS84_RADIUS = 6378137 def rad(value): return value * pi / 180 def ring__area(coordinates): """ Calculate the approximate _area of the polygon were it projected onto the earth. Note that this _area will...
26.978947
96
0.609442
305
2,563
4.927869
0.367213
0.090486
0.015968
0.029275
0.121091
0.07851
0.030605
0
0
0
0
0.036504
0.294577
2,563
94
97
27.265957
0.794801
0.203668
0
0.150943
0
0
0.053688
0
0
0
0
0
0.056604
1
0.075472
false
0
0.056604
0.018868
0.226415
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
149096338c91567b2635fcffc0b59e5d56c47ad5
1,958
py
Python
TMTool/Scripts/Scoring/owasp_rr.py
tmart234/TMTool
054d055d73fa5e76be22bf04cf1136b88cb7efb9
[ "MIT" ]
7
2021-04-23T23:13:02.000Z
2022-03-21T03:35:47.000Z
TMTool/Scripts/Scoring/owasp_rr.py
tmart234/TMTool
054d055d73fa5e76be22bf04cf1136b88cb7efb9
[ "MIT" ]
1
2022-03-21T03:45:45.000Z
2022-03-21T03:45:45.000Z
TMTool/Scripts/Scoring/owasp_rr.py
tmart234/TMTool
054d055d73fa5e76be22bf04cf1136b88cb7efb9
[ "MIT" ]
null
null
null
## based on OWASP risk rating # clculates impact or likihood def calc_scores(_dict): # set Numerical Score _dict["Numerical Score"] = int(0) for key,value in _dict: if "Score" in key: continue else: _dict["Numerical Score"] = value + _dict["Numerical Score"] ...
41.659574
101
0.61287
217
1,958
5.373272
0.267281
0.343053
0.185249
0.192967
0.484563
0.473413
0.440823
0.440823
0.350772
0.150943
0
0.002623
0.221144
1,958
46
102
42.565217
0.761967
0.063841
0
0.085714
0
0
0.370411
0
0
0
0
0
0
1
0.057143
false
0
0
0
0.257143
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
1493a2c8eff385805e1d1e0101be2be42f87f69a
4,760
py
Python
cryptopals/set-2-block-crypto/chal-11/ecb_cbc_detection_oracle.py
reider-roque/crypto-challenges
efbc2afe5e2ca88671d9918b1d8eca26ba042b04
[ "MIT" ]
null
null
null
cryptopals/set-2-block-crypto/chal-11/ecb_cbc_detection_oracle.py
reider-roque/crypto-challenges
efbc2afe5e2ca88671d9918b1d8eca26ba042b04
[ "MIT" ]
null
null
null
cryptopals/set-2-block-crypto/chal-11/ecb_cbc_detection_oracle.py
reider-roque/crypto-challenges
efbc2afe5e2ca88671d9918b1d8eca26ba042b04
[ "MIT" ]
null
null
null
import os from base64 import b64decode from binascii import hexlify, unhexlify from functools import reduce from random import SystemRandom from Crypto.Cipher import AES def split_by_n(seq, n): """A generator to divide a sequence into chunks of n units.""" while seq: yield seq[:n] seq = seq[...
24.285714
81
0.65021
673
4,760
4.375929
0.236256
0.028523
0.054669
0.023769
0.274363
0.244482
0.217997
0.217997
0.217997
0.217997
0
0.025481
0.257983
4,760
196
82
24.285714
0.808324
0.126261
0
0.393701
0
0
0.041616
0
0
0
0
0
0
1
0.11811
false
0
0.047244
0.015748
0.275591
0.007874
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1494e411076fb87b64c4ba9ac057f14cdbcbc48e
3,739
py
Python
legacy/Box.py
JUST0M/procedural-buildings
d51add4bc769823d01f16fbe1d599d97650ec404
[ "MIT" ]
2
2021-04-13T10:46:20.000Z
2021-07-04T09:30:49.000Z
legacy/Box.py
JUST0M/procedural-buildings
d51add4bc769823d01f16fbe1d599d97650ec404
[ "MIT" ]
null
null
null
legacy/Box.py
JUST0M/procedural-buildings
d51add4bc769823d01f16fbe1d599d97650ec404
[ "MIT" ]
null
null
null
import numpy as np class Box: def __init__(self, minCoords, maxCoords): self.min = minCoords self.max = maxCoords self.planes = [*((i,self.min[i]) for i in range(3)), *((i,self.max[i]) for i in range(3))] self.size = [c2 - c1 for c1,c2 in zip(self.min,...
38.546392
89
0.514844
531
3,739
3.602637
0.165725
0.128071
0.033455
0.058547
0.49242
0.411396
0.357031
0.250915
0.158913
0.107162
0
0.03632
0.337256
3,739
96
90
38.947917
0.735674
0.054827
0
0.205128
0
0
0.024483
0
0
0
0
0
0
1
0.153846
false
0
0.012821
0.025641
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1494f6a3975880fab8630625b748fe8b61a44ed1
1,032
py
Python
backend-services/mongodbtest.py
Off-Top-App/off-top-python
af51a7da0e52d6ad978835cb05986d7c2a917861
[ "bzip2-1.0.6" ]
3
2019-12-01T23:09:12.000Z
2020-12-22T03:02:37.000Z
backend-services/mongodbtest.py
Off-Top-App/off-top-python
af51a7da0e52d6ad978835cb05986d7c2a917861
[ "bzip2-1.0.6" ]
5
2020-03-05T17:17:12.000Z
2020-06-16T07:02:27.000Z
backend-services/mongodbtest.py
Off-Top-App/off-top-python
af51a7da0e52d6ad978835cb05986d7c2a917861
[ "bzip2-1.0.6" ]
1
2020-05-18T12:57:14.000Z
2020-05-18T12:57:14.000Z
from pymongo import MongoClient # pprint library is used to make the output look more pretty from pprint import pprint import datetime # connect to MongoDB #To establish a connection to MongoDB with PyMongo you use the MongoClient class client = MongoClient('mongodb://localhost:27017/') #create a database object refer...
41.28
116
0.778101
135
1,032
5.918519
0.562963
0.030038
0
0
0
0
0
0
0
0
0
0.006944
0.162791
1,032
24
117
43
0.917824
0.554264
0
0
0
0
0.153675
0.057906
0
0
0
0
0
1
0
false
0
0.230769
0
0.230769
0.307692
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
14962ad31f37224b6b9ef8b86e934a6eee991573
1,912
py
Python
examples/example_multi_user_locustfile.py
dkiltyhc/appian-locust-hc-fork
70239814fee9ae5a19d3656e7f433160d00e7427
[ "Apache-2.0" ]
1
2021-06-01T02:01:05.000Z
2021-06-01T02:01:05.000Z
examples/example_multi_user_locustfile.py
dkiltyhc/appian-locust-hc-fork
70239814fee9ae5a19d3656e7f433160d00e7427
[ "Apache-2.0" ]
null
null
null
examples/example_multi_user_locustfile.py
dkiltyhc/appian-locust-hc-fork
70239814fee9ae5a19d3656e7f433160d00e7427
[ "Apache-2.0" ]
null
null
null
import json import os from locust import HttpUser, task, between from appian_locust import AppianTaskSet CURRENT_DIR = os.path.dirname(os.path.realpath(__file__)) class GetFrontPageTaskSet(AppianTaskSet): @task def get_front_page(self): self.client.get('/suite/tempo') class GetAdminPageTaskSet(App...
30.83871
123
0.707113
272
1,912
4.860294
0.371324
0.045386
0.030257
0.034796
0.455371
0.455371
0.416036
0.416036
0.355522
0.355522
0
0.014512
0.207113
1,912
61
124
31.344262
0.85752
0.351464
0
0.176471
0
0
0.135865
0.021097
0
0
0
0
0
1
0.088235
false
0
0.117647
0
0.705882
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
149729421e1d6019f47c6eaa2d781c6e73d96e55
612
py
Python
gammapy/stats/tests/test_data.py
joleroi/gammapy
c4e0c4bd74c79d30e0837559d18b7a1a269f70d9
[ "BSD-3-Clause" ]
null
null
null
gammapy/stats/tests/test_data.py
joleroi/gammapy
c4e0c4bd74c79d30e0837559d18b7a1a269f70d9
[ "BSD-3-Clause" ]
null
null
null
gammapy/stats/tests/test_data.py
joleroi/gammapy
c4e0c4bd74c79d30e0837559d18b7a1a269f70d9
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst from __future__ import (absolute_import, division, print_function, unicode_literals) from numpy.testing import assert_allclose from ...stats import Stats def test_Stats(): n_on, n_off, a_on, a_off = 1, 2, 3, 4 stats = Sta...
26.608696
66
0.70098
104
612
3.769231
0.365385
0.053571
0.061224
0.089286
0.234694
0.056122
0
0
0
0
0
0.010288
0.205882
612
22
67
27.818182
0.796296
0.099673
0
0.142857
0
0
0
0
0
0
0
0
0.285714
1
0.214286
false
0.142857
0.214286
0
0.428571
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
0
1
0
1
0
0
0
0
0
2
149953f0a4dce1da36ef7cfd56898a74213ff856
506
py
Python
odziez/clothes/migrations/0006_auto_20190718_2124.py
szymanskirafal/odziez
029d20da0474a0380e8383f9f89c1072666c5399
[ "MIT" ]
null
null
null
odziez/clothes/migrations/0006_auto_20190718_2124.py
szymanskirafal/odziez
029d20da0474a0380e8383f9f89c1072666c5399
[ "MIT" ]
null
null
null
odziez/clothes/migrations/0006_auto_20190718_2124.py
szymanskirafal/odziez
029d20da0474a0380e8383f9f89c1072666c5399
[ "MIT" ]
null
null
null
# Generated by Django 2.1.8 on 2019-07-18 21:24 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('clothes', '0005_clothe_prepared_to_order'), ] operations = [ migrations.AlterField( model_name=...
25.3
132
0.65415
59
506
5.474576
0.644068
0.074303
0.086687
0.136223
0
0
0
0
0
0
0
0.048593
0.227273
506
19
133
26.631579
0.777494
0.088933
0
0
1
0
0.16122
0.063181
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
1499ce61f55da5d49e4d66d22bd91de18f3eb916
1,235
py
Python
examples/python/atkinson_example.py
shenlong95/concentrationMetrics
266cdc5465cb948e5726aff52f10bc5b51a6ed8e
[ "MIT" ]
1
2022-03-02T14:38:25.000Z
2022-03-02T14:38:25.000Z
examples/python/atkinson_example.py
shenlong95/concentrationMetrics
266cdc5465cb948e5726aff52f10bc5b51a6ed8e
[ "MIT" ]
null
null
null
examples/python/atkinson_example.py
shenlong95/concentrationMetrics
266cdc5465cb948e5726aff52f10bc5b51a6ed8e
[ "MIT" ]
null
null
null
# encoding: utf-8 # (c) 2016-2022 Open Risk, all rights reserved # # ConcentrationMetrics is licensed under the MIT license a copy of which is included # in the source distribution of concentrationMetrics. This is notwithstanding any licenses of # third-party software included in this distribution. You may not use thi...
32.5
96
0.765992
187
1,235
5.037433
0.566845
0.047771
0.084926
0.089172
0
0
0
0
0
0
0
0.050573
0.151417
1,235
37
97
33.378378
0.848282
0.695547
0
0
0
0
0.084507
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.4
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
149a2938cb8b209c78d4c945bf2f3f42bf24a389
1,537
py
Python
kcorpusParse.py
passingbreeze/findAntisocial
704274c07ae8e03b903865d60c9188443b6e34fd
[ "MIT" ]
null
null
null
kcorpusParse.py
passingbreeze/findAntisocial
704274c07ae8e03b903865d60c9188443b6e34fd
[ "MIT" ]
null
null
null
kcorpusParse.py
passingbreeze/findAntisocial
704274c07ae8e03b903865d60c9188443b6e34fd
[ "MIT" ]
null
null
null
# -*- encoding:utf-8 -*- import re ## Path Config in here readTargetFolder = 'My Path' outTargetFolder = readTargetFolder + 'conv_' headNumber = range(4,9) indexNumber = range(1,100) fileCategory = ['CM','CK','CL'] contentReg = r'<s n=\d+>(.*?)<\/s>' def remove_tag(content): cleanr = re.compile('...
27.446429
82
0.527651
156
1,537
5.128205
0.5
0.04125
0.03
0.05
0.0575
0
0
0
0
0
0
0.012758
0.33702
1,537
56
83
27.446429
0.772326
0.027326
0
0
0
0
0.067502
0
0
0
0
0
0
1
0.068182
false
0.022727
0.022727
0
0.113636
0.022727
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
149cb07f7130ab39a13560d859b5390acc5e9ea0
626
py
Python
scripts/PMP_setup.py
virati/autoDyn
b9abf8074381e0cd602d49f6fdf4adc72c9cb602
[ "MIT" ]
null
null
null
scripts/PMP_setup.py
virati/autoDyn
b9abf8074381e0cd602d49f6fdf4adc72c9cb602
[ "MIT" ]
null
null
null
scripts/PMP_setup.py
virati/autoDyn
b9abf8074381e0cd602d49f6fdf4adc72c9cb602
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Sep 9 06:19:09 2020 @author: virati Simple PMP buildup script """ import scipy.signal as sig import matplotlib.pyplot as plt import numpy as npo import jax.numpy as np from jax import grad, jit, vmap, jvp from numpy import ndenumerate import matplotlib...
18.411765
36
0.669329
122
626
3.42623
0.508197
0.019139
0.105263
0.114833
0.129187
0
0
0
0
0
0
0.037402
0.188498
626
34
37
18.411765
0.785433
0.06869
0
0.1
0
0
0
0
0
0
0
0
0
0
null
null
0
0.4
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
1
0
0
0
0
2
149eba75339970953c3ef6e83332d40a58bbc4e7
171
py
Python
pktperf/__init__.py
junka/pktperf
123ec099bb97452cdafb54ebb1ff3702770b1743
[ "BSD-2-Clause" ]
3
2022-01-15T16:01:41.000Z
2022-02-10T06:34:14.000Z
pktperf/__init__.py
junka/pktperf
123ec099bb97452cdafb54ebb1ff3702770b1743
[ "BSD-2-Clause" ]
null
null
null
pktperf/__init__.py
junka/pktperf
123ec099bb97452cdafb54ebb1ff3702770b1743
[ "BSD-2-Clause" ]
null
null
null
""" pktperf provides pktgen helper scripts functions for pps performance test. """ __version__ = "0.1.9" __author__ = "junka" __maintainer__ = "junka" __license__ = "BSD"
19
56
0.736842
20
171
5.5
0.95
0
0
0
0
0
0
0
0
0
0
0.020408
0.140351
171
8
57
21.375
0.727891
0.432749
0
0
0
0
0.202247
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
149f538f5367f0f292bb57d5e03344b3411fb3be
3,639
py
Python
search_service/api/table.py
fossabot/amundsensearchlibrary
dd169e486f7a9cd3233e184a416872d892f55078
[ "Apache-2.0" ]
null
null
null
search_service/api/table.py
fossabot/amundsensearchlibrary
dd169e486f7a9cd3233e184a416872d892f55078
[ "Apache-2.0" ]
1
2019-09-21T23:59:47.000Z
2019-09-21T23:59:47.000Z
search_service/api/table.py
fossabot/amundsensearchlibrary
dd169e486f7a9cd3233e184a416872d892f55078
[ "Apache-2.0" ]
1
2019-09-21T23:56:40.000Z
2019-09-21T23:56:40.000Z
from http import HTTPStatus from typing import Iterable, Any from flask_restful import Resource, fields, marshal_with, reqparse from search_service.proxy import get_proxy_client table_fields = { "name": fields.String, "key": fields.String, # description can be empty, if no description is present in DB ...
31.643478
88
0.650179
435
3,639
5.225287
0.264368
0.043995
0.034316
0.055433
0.615926
0.615926
0.593929
0.593929
0.593929
0.554333
0
0.000733
0.250344
3,639
114
89
31.921053
0.832478
0.149766
0
0.461538
0
0
0.113246
0
0
0
0
0
0
1
0.061538
false
0
0.061538
0
0.215385
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
149ffff8d64cab91c2f9be2e3f80f8c9c1f39873
6,370
py
Python
cidan/LSSC/SpatialBox.py
Mishne-Lab/cidan
3f579b6d5a49e17690e9aa07dfb60d3e8c05e681
[ "MIT" ]
2
2020-11-24T17:47:23.000Z
2021-05-20T16:19:53.000Z
cidan/LSSC/SpatialBox.py
Mishne-Lab/CIDAN
30d1176773e3ad0f236ba342cba48c89492f4e63
[ "MIT" ]
4
2020-08-18T16:42:23.000Z
2020-08-18T20:58:12.000Z
cidan/LSSC/SpatialBox.py
Mishne-Lab/cidan
3f579b6d5a49e17690e9aa07dfb60d3e8c05e681
[ "MIT" ]
1
2020-08-12T18:47:22.000Z
2020-08-12T18:47:22.000Z
import logging from typing import Tuple import numpy as np from dask import delayed logger1 = logging.getLogger("cidan.LSSC.SpatialBox") class SpatialBox: def __init__(self, box_num: int, total_boxes: int, image_shape: Tuple[int, int], spatial_overlap: int): logger1.debug( "...
36.193182
117
0.574882
917
6,370
3.70229
0.137405
0.086598
0.116642
0.074227
0.53785
0.369072
0.285714
0.276583
0.200884
0.133726
0
0.036827
0.309419
6,370
175
118
36.4
0.73494
0.10989
0
0.141509
0
0.009434
0.043422
0.003864
0
0
0
0.005714
0
1
0.103774
false
0
0.037736
0.037736
0.254717
0.009434
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
14a0c11dcb55cf743f8fa6d47c0541a4c1e0d0e5
6,252
py
Python
Experiments/TrainStackedClassification.py
christymarc/raycasting-simulation
ed9b92143d3eb1c5a25900419ead517f93f8c315
[ "MIT" ]
null
null
null
Experiments/TrainStackedClassification.py
christymarc/raycasting-simulation
ed9b92143d3eb1c5a25900419ead517f93f8c315
[ "MIT" ]
null
null
null
Experiments/TrainStackedClassification.py
christymarc/raycasting-simulation
ed9b92143d3eb1c5a25900419ead517f93f8c315
[ "MIT" ]
null
null
null
# --- # jupyter: # jupytext: # formats: py:light # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.11.4 # kernelspec: # display_name: Python 3 (ipykernel) # language: python # name: python3 # --- from argparse impo...
29.630332
125
0.666667
833
6,252
4.762305
0.327731
0.007058
0.029997
0.021175
0.198135
0.172675
0.123519
0.10184
0.085707
0.085707
0
0.021938
0.212572
6,252
210
126
29.771429
0.783872
0.107006
0
0.06015
0
0
0.143466
0.042401
0
0
0
0.004762
0
1
0.045113
false
0
0.052632
0
0.142857
0.045113
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
14a1b02d39821a15e7fefd1639adef1cef0c66ac
502
py
Python
list-operations/Element-insertion/Python/insertion.py
Prince23598/cs-algorithms
75c90a0603092e8d6d9c5b982beab6729c8cb516
[ "MIT" ]
239
2019-10-07T11:01:56.000Z
2022-01-27T19:08:55.000Z
list-operations/Element-insertion/Python/insertion.py
ashfreakingoyal/cs-algorithms
08f5aba5c3379e17d03b899fc36efcdccebd181c
[ "MIT" ]
176
2019-10-07T06:59:49.000Z
2020-09-30T08:16:22.000Z
list-operations/Element-insertion/Python/insertion.py
ashfreakingoyal/cs-algorithms
08f5aba5c3379e17d03b899fc36efcdccebd181c
[ "MIT" ]
441
2019-10-07T07:34:08.000Z
2022-03-15T07:19:58.000Z
#this program doesn't use inbuild list functions except append def insertion(arr): #inserting an element at a particular index of the list global n x = int(input("postion :")) y = int(input("element :")) arr.append(arr[-1]) for i in range(n-1,x,-1): arr[i] =arr[i-1] arr[x] = y n = n+1 #incrementing the list ...
20.08
75
0.663347
91
502
3.659341
0.43956
0.096096
0.054054
0.06006
0.072072
0
0
0
0
0
0
0.012136
0.179283
502
24
76
20.916667
0.796117
0.298805
0
0
0
0
0.195402
0
0
0
0
0
0
1
0.058824
false
0
0
0
0.058824
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
0
0
0
0
0
0
0
0
1
0
14a25f0ac727521f4abfb47f72659815f279b90c
170
py
Python
coin_change.py
LeeGitaek/algorithm-python
1fdc95ad6c1f8fded57aaf3ac80d0637f6c1c3fd
[ "MIT" ]
2
2021-01-31T08:14:09.000Z
2021-02-02T01:19:42.000Z
coin_change.py
LeeGitaek/algorithm-python
1fdc95ad6c1f8fded57aaf3ac80d0637f6c1c3fd
[ "MIT" ]
null
null
null
coin_change.py
LeeGitaek/algorithm-python
1fdc95ad6c1f8fded57aaf3ac80d0637f6c1c3fd
[ "MIT" ]
null
null
null
n = 1260 coin_count = 0 coin_types = [500,100,50,10] for coin in coin_types: if n%coin != 0: coin_count += n/coin n %= coin print(int(coin_count))
14.166667
28
0.594118
30
170
3.2
0.5
0.28125
0
0
0
0
0
0
0
0
0
0.130081
0.276471
170
11
29
15.454545
0.650407
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.125
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
14a3ca2e8e1328a8d7b6e04803a756da1775bb08
5,283
py
Python
Module 2/Chapter 6/detect insults - kaggle competitor version/stack.py
saicharanabhishek/machinelearning_examples
f89857ae7e1a2baa76951fe1d55541832d0f0d20
[ "MIT" ]
101
2016-11-08T11:17:55.000Z
2021-12-24T10:43:32.000Z
Module 2/Chapter 6/detect insults - kaggle competitor version/stack.py
saicharanabhishek/machinelearning_examples
f89857ae7e1a2baa76951fe1d55541832d0f0d20
[ "MIT" ]
2
2017-11-28T11:22:25.000Z
2019-02-12T17:09:18.000Z
Module 2/Chapter 6/detect insults - kaggle competitor version/stack.py
saicharanabhishek/machinelearning_examples
f89857ae7e1a2baa76951fe1d55541832d0f0d20
[ "MIT" ]
102
2016-10-22T12:14:23.000Z
2022-03-26T19:59:09.000Z
#!/usr/bin/env python import random from operator import itemgetter import math from datetime import datetime import numpy from sklearn import linear_model from sklearn import cross_validation from sklearn import metrics from sklearn import ensemble from model import Basic from mkhtml import * from utils import * ...
21.651639
128
0.634109
573
5,283
5.69459
0.336824
0.026969
0.02084
0.01471
0.063745
0.048422
0.017162
0
0
0
0
0.032021
0.278819
5,283
243
129
21.740741
0.824409
0.021768
0
0.032787
0
0
0.026178
0
0
0
0
0
0
0
null
null
0
0.087432
null
null
0.043716
0
0
0
null
0
0
0
0
0
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
14a4da818e55244ad6c1eca2a65a5ca929728ea0
4,652
py
Python
windows_auth/scheduler.py
sourcery-ai-bot/django-windowsauth
6701dcf4672e9d642185a547c3e193568ae98103
[ "BSD-3-Clause" ]
20
2020-12-18T12:24:47.000Z
2022-03-16T12:15:08.000Z
windows_auth/scheduler.py
sourcery-ai-bot/django-windowsauth
6701dcf4672e9d642185a547c3e193568ae98103
[ "BSD-3-Clause" ]
4
2021-01-15T16:42:18.000Z
2021-10-30T03:38:56.000Z
windows_auth/scheduler.py
sourcery-ai-bot/django-windowsauth
6701dcf4672e9d642185a547c3e193568ae98103
[ "BSD-3-Clause" ]
2
2021-07-23T19:25:41.000Z
2022-03-16T12:15:10.000Z
import os from pathlib import Path from typing import Optional import win32com.client from pythoncom import com_error from django.conf import settings from django.utils import timezone _PYTHON_PATH = str(Path(os.environ.get("VIRTUAL_ENV")) / "Scripts" / "python.exe") LOCAL_SYSTEM = "NT Authority\\LocalSystem" LOCAL...
39.423729
113
0.72055
560
4,652
5.8625
0.321429
0.049041
0.04569
0.051173
0.179714
0.168139
0.148035
0.148035
0.148035
0.106914
0
0.008709
0.185512
4,652
117
114
39.760684
0.857746
0.350817
0
0.029851
0
0
0.095386
0.054752
0
0
0
0
0
1
0.059701
false
0.044776
0.104478
0.014925
0.208955
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
14a4e5e4e89e6e753f18f7181ec73bb1d3a9ba73
5,777
py
Python
server/app.py
sofignatova/02books
9eed066fee5503c88359958708dfb8eba56e465a
[ "MIT" ]
38
2020-12-22T01:15:38.000Z
2021-11-09T11:01:40.000Z
server/app.py
sofignatova/02books
9eed066fee5503c88359958708dfb8eba56e465a
[ "MIT" ]
1
2020-12-21T19:11:11.000Z
2020-12-21T19:11:11.000Z
server/app.py
sofignatova/02books
9eed066fee5503c88359958708dfb8eba56e465a
[ "MIT" ]
3
2020-12-22T04:17:50.000Z
2020-12-22T09:03:37.000Z
import json import os import os.path from typing import List, Optional import flask from flask import Flask, Response, jsonify, request import api import corpus import correct_runs_suggestor import filestorage import firestore_storage import storage import word_suggestor app = Flask(__name__) if os.environ.get("GA...
28.458128
93
0.664532
706
5,777
5.123229
0.195467
0.026541
0.057506
0.023224
0.159248
0.080177
0.049212
0.049212
0.024883
0.024883
0
0.002462
0.226588
5,777
202
94
28.59901
0.807073
0.021638
0
0.103226
0
0
0.054462
0
0
0
0
0
0
1
0.096774
false
0
0.083871
0.025806
0.290323
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
14a75c9a99d985c478a454429ef963da655e67d0
24,332
py
Python
hdltools/abshdl/highlvl.py
brunosmmm/hdltools
a98ca8c4d168740fa229c939a7b1f31ea73eec24
[ "MIT" ]
2
2020-02-28T13:02:39.000Z
2021-06-30T09:15:35.000Z
hdltools/abshdl/highlvl.py
brunosmmm/hdltools
a98ca8c4d168740fa229c939a7b1f31ea73eec24
[ "MIT" ]
1
2020-03-22T17:32:45.000Z
2020-03-23T15:43:39.000Z
hdltools/abshdl/highlvl.py
brunosmmm/hdltools
a98ca8c4d168740fa229c939a7b1f31ea73eec24
[ "MIT" ]
null
null
null
"""High-level coding using python syntax to build HDL structures.""" import inspect import ast import textwrap import sys import re from collections import deque from hdltools.abshdl import HDLObject from hdltools.abshdl.expr import HDLExpression from hdltools.abshdl.signal import HDLSignal, HDLSignalSlice from hdltoo...
36.589474
81
0.509206
2,422
24,332
4.940958
0.139554
0.027576
0.029414
0.011699
0.315952
0.247681
0.202473
0.171304
0.165956
0.161444
0
0.000824
0.401693
24,332
664
82
36.644578
0.821198
0.08347
0
0.323917
0
0
0.050351
0.002217
0
0
0
0.001506
0
1
0.056497
false
0.001883
0.032015
0
0.156309
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
14a801449469355adc8a1c2e42661d5dd0d77a49
1,085
py
Python
tests.py
Dani-97/tbcnn
1e19e20099188dea42c97f09de39a0fadbcba92f
[ "MIT" ]
30
2019-01-26T09:19:17.000Z
2022-01-27T06:52:56.000Z
tests.py
Dani-97/tbcnn
1e19e20099188dea42c97f09de39a0fadbcba92f
[ "MIT" ]
9
2019-07-26T07:00:57.000Z
2021-05-11T10:08:40.000Z
tests.py
Dani-97/tbcnn
1e19e20099188dea42c97f09de39a0fadbcba92f
[ "MIT" ]
17
2019-08-20T09:46:00.000Z
2022-02-16T19:44:26.000Z
import numpy as np import train_variants a = np.arange(15) print('a =', a) print() # --------------------------------------- print('train_variants.create_sets(4, a, a)') imgs, labs = train_variants.create_sets(4, np.copy(a), np.copy(a)) print(imgs) assert len(imgs) == 4 assert len(labs) == 4 assert all([np.array_equ...
31.911765
138
0.58341
198
1,085
3.146465
0.217172
0.105939
0.078652
0.051364
0.452648
0.250401
0.250401
0.141252
0.080257
0.080257
0
0.060768
0.135484
1,085
34
139
31.911765
0.603412
0.072811
0
0.125
0
0
0.088645
0.059761
0
0
0
0
0.375
1
0
false
0
0.083333
0
0.083333
0.375
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
14a95440ee127e22ba060762d6955e5d4353d199
4,876
py
Python
Gems/PythonAssetBuilder/Code/Tests/asset_builder_example.py
aaarsene/o3de
37e3b0226958974defd14dd6d808e8557dcd7345
[ "Apache-2.0", "MIT" ]
1
2021-09-13T00:01:12.000Z
2021-09-13T00:01:12.000Z
Gems/PythonAssetBuilder/Code/Tests/asset_builder_example.py
aaarsene/o3de
37e3b0226958974defd14dd6d808e8557dcd7345
[ "Apache-2.0", "MIT" ]
null
null
null
Gems/PythonAssetBuilder/Code/Tests/asset_builder_example.py
aaarsene/o3de
37e3b0226958974defd14dd6d808e8557dcd7345
[ "Apache-2.0", "MIT" ]
1
2021-07-20T11:07:25.000Z
2021-07-20T11:07:25.000Z
""" Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution. SPDX-License-Identifier: Apache-2.0 OR MIT """ # # Simple example asset builder that processes *.foo files # import azlmbr.math import azlmbr.asset.builder imp...
38.393701
155
0.730517
586
4,876
5.993174
0.394198
0.075171
0.071754
0.014806
0.071185
0.055809
0.055809
0.036446
0.036446
0.036446
0
0.013674
0.190115
4,876
126
156
38.698413
0.875665
0.287941
0
0.08
0
0
0.08072
0.022067
0
0
0
0
0
1
0.093333
false
0
0.04
0
0.213333
0.026667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
14a9916ca2cb6361754e4375a1b044b446b70a15
12,112
py
Python
autocert/api/bundle.py
Mozilla-GitHub-Standards/f085630706efa0d6c299c78ca54be3a7bc1bacc6818a5012c1eda6166401aebd
26ea24a991cef080e4bd633d719185184aabf100
[ "MIT" ]
null
null
null
autocert/api/bundle.py
Mozilla-GitHub-Standards/f085630706efa0d6c299c78ca54be3a7bc1bacc6818a5012c1eda6166401aebd
26ea24a991cef080e4bd633d719185184aabf100
[ "MIT" ]
null
null
null
autocert/api/bundle.py
Mozilla-GitHub-Standards/f085630706efa0d6c299c78ca54be3a7bc1bacc6818a5012c1eda6166401aebd
26ea24a991cef080e4bd633d719185184aabf100
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os import copy import glob import time import tarfile from io import BytesIO from ruamel import yaml from datetime import datetime, timedelta from exceptions import AutocertError from utils.dictionary import merge, head, body, head_body, keys_ending from utils.ya...
33.927171
140
0.557051
1,344
12,112
4.889137
0.148065
0.042611
0.023436
0.011414
0.230711
0.198448
0.159032
0.149292
0.123269
0.098615
0
0.006773
0.329508
12,112
356
141
34.022472
0.802364
0.011394
0
0.198052
0
0
0.063997
0.006115
0
0
0
0
0.003247
1
0.097403
false
0
0.055195
0.029221
0.279221
0.012987
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
14aaf108131e71fa427262f5ee129addc001ddae
33,527
py
Python
canopy/openapi/api/sim_version_api.py
CanopySimulations/canopy-python
9ec37e674e65d6fbef0402ac0c612c163d55631e
[ "MIT" ]
null
null
null
canopy/openapi/api/sim_version_api.py
CanopySimulations/canopy-python
9ec37e674e65d6fbef0402ac0c612c163d55631e
[ "MIT" ]
1
2022-01-31T10:18:08.000Z
2022-01-31T10:18:08.000Z
canopy/openapi/api/sim_version_api.py
CanopySimulations/canopy-python
9ec37e674e65d6fbef0402ac0c612c163d55631e
[ "MIT" ]
null
null
null
# coding: utf-8 """ Canopy.Api No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import re # noqa:...
45.063172
142
0.601068
3,704
33,527
5.142549
0.051836
0.067199
0.066884
0.028349
0.934954
0.929441
0.919834
0.913534
0.904819
0.901354
0
0.013593
0.326364
33,527
743
143
45.123822
0.829799
0.427745
0
0.726257
1
0
0.197947
0.06538
0
0
0
0
0
1
0.036313
false
0
0.013966
0
0.086592
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
14acabd8cbd4b513d1eb59c9df9ca847e6ac8cba
9,994
py
Python
brewtils/log.py
scott-taubman/brewtils
3478e5ebd6383d7724286c9d0c7afac9ef5d7b45
[ "MIT" ]
7
2018-02-04T18:11:29.000Z
2021-10-03T18:47:08.000Z
brewtils/log.py
scott-taubman/brewtils
3478e5ebd6383d7724286c9d0c7afac9ef5d7b45
[ "MIT" ]
256
2018-02-04T18:07:50.000Z
2022-03-07T21:11:03.000Z
brewtils/log.py
scott-taubman/brewtils
3478e5ebd6383d7724286c9d0c7afac9ef5d7b45
[ "MIT" ]
7
2019-01-03T17:18:26.000Z
2021-12-15T16:55:18.000Z
# -*- coding: utf-8 -*- """Brewtils Logging Utilities This module streamlines loading logging configuration from Beergarden. Example: To use this just call ``configure_logging`` sometime before you initialize your Plugin object: .. code-block:: python from brewtils import configure_logging, get_...
30.284848
87
0.659896
1,203
9,994
5.327515
0.242727
0.054767
0.014979
0.018724
0.296926
0.235762
0.209861
0.180527
0.170541
0.170541
0
0.005086
0.252451
9,994
329
88
30.3769
0.852764
0.436462
0
0.226027
0
0
0.246786
0.030896
0
0
0
0
0
1
0.054795
false
0
0.054795
0
0.171233
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
14ae332af62300b3f821c52ff9cb9ba5f6319266
64
py
Python
stweet/file_reader/__init__.py
enginbozaba/stweet-twitter-api
060250e00a01ae53c2ca12954719b5efc918e132
[ "MIT" ]
null
null
null
stweet/file_reader/__init__.py
enginbozaba/stweet-twitter-api
060250e00a01ae53c2ca12954719b5efc918e132
[ "MIT" ]
null
null
null
stweet/file_reader/__init__.py
enginbozaba/stweet-twitter-api
060250e00a01ae53c2ca12954719b5efc918e132
[ "MIT" ]
null
null
null
from .read_from_file import read_from_csv, read_from_json_lines
32
63
0.890625
12
64
4.166667
0.583333
0.48
0
0
0
0
0
0
0
0
0
0
0.078125
64
1
64
64
0.847458
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
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
1
0
1
0
1
0
0
6
14ae9afede54e0cea3815e41671291f32a9f68bc
216
py
Python
pty/t2.py
dxm447/ptychogpu
337d136b1b738ddbc3241144e49fa0129b7bcac1
[ "MIT" ]
1
2021-09-14T01:28:43.000Z
2021-09-14T01:28:43.000Z
pty/t2.py
Rydeness/ptychogpu
337d136b1b738ddbc3241144e49fa0129b7bcac1
[ "MIT" ]
null
null
null
pty/t2.py
Rydeness/ptychogpu
337d136b1b738ddbc3241144e49fa0129b7bcac1
[ "MIT" ]
2
2021-09-14T01:28:42.000Z
2021-09-16T00:08:59.000Z
import numpy as np import acc_image_utils as acc import time t1 = time.time() size=128 shape = (size,size,size,size) n1 = np.zeros(shape, dtype=np.float32) n2 = acc.gpu_rot4D(n1,55) t2 = time.time() print(t2 - t1)
16.615385
38
0.712963
41
216
3.682927
0.536585
0.15894
0.15894
0
0
0
0
0
0
0
0
0.081522
0.148148
216
12
39
18
0.73913
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.3
0
0.3
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
0
0
0
0
1
0
14aeec12a4f4a1f6347cb92bf444494d07caa82d
228
py
Python
profile/results/strip_file.py
AI-Pranto/OpenMOC
7f6ce4797aec20ddd916981a56a4ba54ffda9a06
[ "MIT" ]
97
2015-01-02T02:13:45.000Z
2022-03-09T14:12:45.000Z
profile/results/strip_file.py
AI-Pranto/OpenMOC
7f6ce4797aec20ddd916981a56a4ba54ffda9a06
[ "MIT" ]
325
2015-01-07T17:43:14.000Z
2022-02-21T17:22:00.000Z
profile/results/strip_file.py
AI-Pranto/OpenMOC
7f6ce4797aec20ddd916981a56a4ba54ffda9a06
[ "MIT" ]
73
2015-01-17T19:11:58.000Z
2022-03-24T16:31:37.000Z
import os x = set() with open(os.environ['PBS_NODEFILE'], 'r') as fh: lines = fh.readlines() for line in lines: x.add(line) name = 'machine-' + xxxMACHINExxx with open(name, 'w') as fh: for xi in x: fh.write(xi)
17.538462
49
0.622807
39
228
3.615385
0.615385
0.113475
0
0
0
0
0
0
0
0
0
0
0.214912
228
12
50
19
0.78771
0
0
0
0
0
0.096491
0
0
0
0
0
0
1
0
false
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
0
0
0
0
0
0
1
0
14af2d1910bc127c3b0e2359278be4a51c581a07
2,212
py
Python
pysimplestorageservice/core.py
poteralski/pysimplestorageservice
dfa2075fd43683fcc8326a877f14add0ba042b74
[ "Apache-2.0" ]
5
2016-04-17T20:28:23.000Z
2018-03-15T22:01:17.000Z
pysimplestorageservice/core.py
poteralski/pysimplestorageservice
dfa2075fd43683fcc8326a877f14add0ba042b74
[ "Apache-2.0" ]
null
null
null
pysimplestorageservice/core.py
poteralski/pysimplestorageservice
dfa2075fd43683fcc8326a877f14add0ba042b74
[ "Apache-2.0" ]
null
null
null
import requests from pysimplestorageservice.auth import AuthSigV4 class AmazonAWSManager(object): """ """ def __init__(self, access_key, secret_key): self.access_key = access_key self.secret_key = secret_key def get(self, prefix, filename, bucket): """ GET """...
36.262295
122
0.624322
257
2,212
5.159533
0.206226
0.061086
0.04902
0.057315
0.445701
0.41629
0.396682
0.396682
0.254902
0.254902
0
0.006761
0.264467
2,212
61
123
36.262295
0.808236
0.005877
0
0.222222
0
0
0.028478
0
0
0
0
0
0
1
0.133333
false
0
0.044444
0.022222
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
14b007def33bf66554be51f1a81715ea60bb4eda
1,834
py
Python
comix-localization/util/cam.py
snu-mllab/Co-Mixup
2a7681601ee972892435ae080494a4f0907e595a
[ "MIT" ]
86
2021-02-05T03:13:09.000Z
2022-03-29T03:10:50.000Z
comix-localization/util/cam.py
snu-mllab/Co-Mixup
2a7681601ee972892435ae080494a4f0907e595a
[ "MIT" ]
4
2021-06-01T13:07:06.000Z
2022-02-15T03:08:30.000Z
comix-localization/util/cam.py
snu-mllab/Co-Mixup
2a7681601ee972892435ae080494a4f0907e595a
[ "MIT" ]
7
2021-02-09T01:27:03.000Z
2021-09-01T14:07:40.000Z
# @ based on InfoCAm import torch import torch.nn as nn import torch.nn.functional as F class CAM(nn.Module): def __init__(self, model, feature, linear, factor, ksize, padding): super().__init__() self.model = model self.feature = feature self.linear = linear self.factor = ...
32.75
121
0.563795
233
1,834
4.377682
0.39485
0.023529
0.02549
0.027451
0.078431
0
0
0
0
0
0
0.025061
0.325518
1,834
55
122
33.345455
0.799515
0.323882
0
0
0
0
0.006178
0
0
0
0
0
0
1
0.074074
false
0
0.111111
0
0.259259
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
14b10ba84092552ef5446166e93acde05dd54b70
376
py
Python
nbdev_calc/core.py
alinaselega/nbdev_calc
4e7cffb81a08770aea7652c10481e41d5d13a05e
[ "Apache-2.0" ]
null
null
null
nbdev_calc/core.py
alinaselega/nbdev_calc
4e7cffb81a08770aea7652c10481e41d5d13a05e
[ "Apache-2.0" ]
null
null
null
nbdev_calc/core.py
alinaselega/nbdev_calc
4e7cffb81a08770aea7652c10481e41d5d13a05e
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED! DO NOT EDIT! File to edit: 00_core.ipynb (unless otherwise specified). __all__ = ['add', 'multiply', 'subtract', 'divide'] # Cell def add(x, y): "Add x and y" return x+y def multiply(x, y): "Multiply x and y" return x*y def subtract(x, y): "Subtract y from x" return add(x, -...
18.8
87
0.609043
64
376
3.5
0.390625
0.071429
0.107143
0.120536
0.142857
0.142857
0.142857
0
0
0
0
0.007067
0.24734
376
20
88
18.8
0.784452
0.404255
0
0
1
0
0.288732
0
0
0
0
0
0
1
0.307692
false
0
0
0
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
1
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
3
14b1918c66d0da69315851c3cb4bcd4986726de8
1,007
py
Python
lib/adxl345/i2c.py
PT1ATE/py-adxl345
a9f7bf979c7ed872d7c9d41ce1655ccce65c4dae
[ "MIT" ]
5
2015-12-09T13:04:59.000Z
2022-02-22T22:34:45.000Z
lib/adxl345/i2c.py
PT1ATE/py-adxl345
a9f7bf979c7ed872d7c9d41ce1655ccce65c4dae
[ "MIT" ]
4
2015-08-03T10:06:55.000Z
2021-12-13T08:35:46.000Z
lib/adxl345/i2c.py
alexismeneses/py-adxl345
dea5f8d2d81681172d59ce4d065aeac2a60db471
[ "MIT" ]
7
2015-07-09T11:28:27.000Z
2020-04-02T06:17:18.000Z
""" PYTHON driver for the ADXL-345 (3 axes accelerometer from Analog Device) This driver use the I2C protocol to communicate (see README) """ import smbus import adxl345.base class ADXL345(adxl345.base.ADXL345_Base): STD_ADDRESS = 0x1D ALT_ADDRESS = 0x53 def __init__(self, alternate=False, port=1): """ In...
27.972222
98
0.724926
144
1,007
4.923611
0.458333
0.098731
0.076164
0.105783
0.138223
0.138223
0.138223
0.138223
0.138223
0.138223
0
0.04878
0.1857
1,007
35
99
28.771429
0.815854
0.285998
0
0
0
0
0
0
0
0
0.011577
0
0
1
0.210526
false
0
0.105263
0
0.578947
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
14b199baabee60170116a562b11552f831772f22
85
py
Python
modis/discord_modis/modules/hex/_data.py
Benny84/discord-music-bot-modis
f98b15119d6e14475fa662a98158f4adfa2f49c0
[ "Apache-2.0" ]
null
null
null
modis/discord_modis/modules/hex/_data.py
Benny84/discord-music-bot-modis
f98b15119d6e14475fa662a98158f4adfa2f49c0
[ "Apache-2.0" ]
null
null
null
modis/discord_modis/modules/hex/_data.py
Benny84/discord-music-bot-modis
f98b15119d6e14475fa662a98158f4adfa2f49c0
[ "Apache-2.0" ]
null
null
null
modulename = "Hex" creator = "YtnomSnrub" sd_structure = { "activated": True }
10.625
22
0.647059
8
85
6.75
1
0
0
0
0
0
0
0
0
0
0
0
0.211765
85
7
23
12.142857
0.80597
0
0
0
0
0
0.258824
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
14b1a89e48cc1b82f7462fdd10feb9e3312df735
39,383
py
Python
conference.py
ppjk1/conference-central
e240c96724d7d55f602dfc099eb20e91a5a16113
[ "Apache-2.0" ]
null
null
null
conference.py
ppjk1/conference-central
e240c96724d7d55f602dfc099eb20e91a5a16113
[ "Apache-2.0" ]
null
null
null
conference.py
ppjk1/conference-central
e240c96724d7d55f602dfc099eb20e91a5a16113
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ conference.py -- Udacity conference server-side Python App Engine API; uses Google Cloud Endpoints $Id: conference.py,v 1.25 2014/05/24 23:42:19 wesc Exp wesc $ created by wesc on 2014 apr 21 """ __author__ = 'wesc+api@google.com (Wesley Chun)' from datetime import datetime from fun...
38.610784
93
0.613209
3,949
39,383
6.028868
0.13649
0.018145
0.013441
0.006804
0.3708
0.30914
0.269657
0.239709
0.222908
0.200101
0
0.002511
0.292182
39,383
1,019
94
38.648675
0.851557
0.199528
0
0.301028
0
0
0.100935
0.026952
0
0
0
0
0
1
0.058737
false
0
0.052863
0
0.171806
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
14b48aef525713da7768110b19cc3d3319051874
456
py
Python
mainApp/Serializers.py
MSNP1381/rayanRooyeshCityBack
f3e8224538949c4951d4b25e1f14e4fcc02fdc53
[ "MIT" ]
null
null
null
mainApp/Serializers.py
MSNP1381/rayanRooyeshCityBack
f3e8224538949c4951d4b25e1f14e4fcc02fdc53
[ "MIT" ]
null
null
null
mainApp/Serializers.py
MSNP1381/rayanRooyeshCityBack
f3e8224538949c4951d4b25e1f14e4fcc02fdc53
[ "MIT" ]
null
null
null
from rest_framework import serializers from .models import Transaction,Sections class TransactionSerializer(serializers.ModelSerializer): class Meta: model = Transaction fields = '__all__' def create(self, data): print(100*"%") print(data) return Transaction.objects.cr...
24
57
0.682018
43
456
7.023256
0.55814
0.172185
0.205298
0.231788
0.264901
0
0
0
0
0
0
0.008596
0.234649
456
19
58
24
0.856734
0
0
0.285714
0
0
0.032823
0
0
0
0
0
0
1
0.071429
false
0
0.142857
0
0.571429
0.142857
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
14b5577ce712817e866c88b60a3629eb615b5945
295
py
Python
jobs/models.py
diegolis/search_job
65b7898d587a61eba008ea1503bf2b3410ac6a98
[ "Apache-2.0" ]
null
null
null
jobs/models.py
diegolis/search_job
65b7898d587a61eba008ea1503bf2b3410ac6a98
[ "Apache-2.0" ]
null
null
null
jobs/models.py
diegolis/search_job
65b7898d587a61eba008ea1503bf2b3410ac6a98
[ "Apache-2.0" ]
null
null
null
from django.db import models class Company(models.Model): name = models.CharField(max_length=200) class Job(models.Model): date = models.DateTime(auto_now_add=True) city = models.ForeignKey(City) company = models.ForeignKey(Company) subject = models.ForeignKey(Subject)
21.071429
45
0.732203
38
295
5.605263
0.605263
0.225352
0
0
0
0
0
0
0
0
0
0.012146
0.162712
295
13
46
22.692308
0.850202
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.125
0
1
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
14b72e0da77a993eabb5daf729b46bac8c04e267
4,601
py
Python
v1/data/src/tba/fake_matches.py
avgupta456/statbotics
8847cec161104ec54f4c501653cd4ec558d30379
[ "MIT" ]
14
2020-05-28T21:54:45.000Z
2022-03-17T19:39:23.000Z
v1/data/src/tba/fake_matches.py
avgupta456/statbotics
8847cec161104ec54f4c501653cd4ec558d30379
[ "MIT" ]
59
2020-05-28T21:39:45.000Z
2022-03-25T23:51:39.000Z
data/src/tba/fake_matches.py
statbotics/statbotics
37bb0e3730d5b3aff7b6a5ba6e78ef2eada950bc
[ "MIT" ]
1
2020-07-04T07:30:40.000Z
2020-07-04T07:30:40.000Z
import random from typing import Any, Dict, List def generate_match( event: str, comp_level: str, set_number: int, match_number: int, red_teams: List[int], blue_teams: List[int], ) -> Dict[str, Any]: key = f"{event}_{comp_level}{set_number}m{match_number}" if comp_level == "qm": ...
34.593985
88
0.617474
622
4,601
4.313505
0.12701
0.074543
0.065598
0.040253
0.533731
0.488632
0.446888
0.36899
0.331346
0.246366
0
0.0254
0.238426
4,601
132
89
34.856061
0.740297
0
0
0.218182
1
0
0.082156
0.017605
0
0
0
0
0
1
0.081818
false
0
0.018182
0.018182
0.181818
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
14b79b64d38721de312a5c077f66b0b7cfb2de74
2,160
py
Python
meraki/models/bind_network_model.py
bossypants22/python-sdk-test
37701d62dc18c2abb910eb790ab978913adcaf7b
[ "MIT" ]
37
2019-04-24T14:01:33.000Z
2022-01-28T01:37:21.000Z
meraki/models/bind_network_model.py
ankita66666666/meraki-python-sdk
9894089eb013318243ae48869cc5130eb37f80c0
[ "MIT" ]
10
2019-07-09T16:35:11.000Z
2021-12-07T03:47:53.000Z
meraki/models/bind_network_model.py
ankita66666666/meraki-python-sdk
9894089eb013318243ae48869cc5130eb37f80c0
[ "MIT" ]
17
2019-04-30T23:53:21.000Z
2022-02-07T22:57:44.000Z
# -*- coding: utf-8 -*- """ meraki This file was automatically generated for meraki by APIMATIC v2.0 ( https://apimatic.io ). """ class BindNetworkModel(object): """Implementation of the 'bindNetwork' model. TODO: type model description here. Attributes: config_templat...
30.857143
95
0.613889
244
2,160
5.32377
0.459016
0.049269
0.08622
0.030793
0
0
0
0
0
0
0
0.00207
0.329167
2,160
69
96
31.304348
0.89441
0.575926
0
0
1
0
0.106232
0
0
0
0
0.014493
0
1
0.105263
false
0
0
0
0.315789
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
2
14b88e26055444d53d304f58f8961c840931c2ec
1,571
py
Python
Module_01/ex05/test.py
CristinaFdezBornay/PythonPiscine
143968c2e26f5ddddb5114f3bcdddd0b1f00d153
[ "MIT" ]
1
2021-11-17T10:04:30.000Z
2021-11-17T10:04:30.000Z
Module_01/ex05/test.py
CristinaFdezBornay/PythonPiscine
143968c2e26f5ddddb5114f3bcdddd0b1f00d153
[ "MIT" ]
null
null
null
Module_01/ex05/test.py
CristinaFdezBornay/PythonPiscine
143968c2e26f5ddddb5114f3bcdddd0b1f00d153
[ "MIT" ]
null
null
null
from the_bank import Account, Bank if __name__ == "__main__": bank = Bank() print("==> [Bank] Adding not an account.") bank.add(1) print("\n==> [Bank] Adding a corrupted account.") william_john = Account( 'William John', zip='100-064', value=6460.0, ref='58ba2b9954c...
30.803922
106
0.624443
202
1,571
4.752475
0.272277
0.126042
0.075
0.070833
0.595833
0.485417
0.459375
0.384375
0.236458
0.095833
0
0.069901
0.225971
1,571
51
107
30.803922
0.719572
0
0
0.268293
0
0
0.377863
0.040712
0
0
0
0
0
1
0
false
0
0.02439
0
0.02439
0.292683
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
14b9bdc4cbbfd931a4277fad0693f5a34e24b6d8
5,219
py
Python
third_party_package/RDKit_2015_03_1/rdkit/Chem/Pharm3D/UnitTestPharmacophore.py
Ivy286/cluster_basedfps
7fc216537f570436f008ea567c137d03ba2b6d81
[ "WTFPL" ]
9
2019-04-23T01:46:12.000Z
2021-08-16T07:07:12.000Z
third_party_package/RDKit_2015_03_1/rdkit/Chem/Pharm3D/UnitTestPharmacophore.py
Ivy286/cluster_basedfps
7fc216537f570436f008ea567c137d03ba2b6d81
[ "WTFPL" ]
null
null
null
third_party_package/RDKit_2015_03_1/rdkit/Chem/Pharm3D/UnitTestPharmacophore.py
Ivy286/cluster_basedfps
7fc216537f570436f008ea567c137d03ba2b6d81
[ "WTFPL" ]
5
2016-09-21T03:47:48.000Z
2019-07-30T22:17:35.000Z
# $Id$ # # Copyright (C) 2004-2006 greg Landrum and Rational Discovery LLC # # @@ All Rights Reserved @@ # This file is part of the RDKit. # The contents are covered by the terms of the BSD license # which is included in the file license.txt, found at the root # of the RDKit source tree. # from rdkit import RDC...
38.094891
85
0.68768
630
5,219
5.680952
0.219048
0.086058
0.067617
0.085499
0.540374
0.460464
0.346465
0.198659
0.108969
0.03297
0
0.05804
0.194482
5,219
136
86
38.375
0.793292
0.053267
0
0.157895
0
0
0.02044
0
0
0
0
0
0.410526
1
0.063158
false
0
0.105263
0.010526
0.189474
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
14bab6f4282c5f5e761e6c042b014650a31eab5b
3,188
py
Python
latex_pdf.py
patent-python/patent-generator
3b5e5102b04eb13913a49a0c9c42922a80d645a9
[ "MIT" ]
109
2015-01-12T03:23:35.000Z
2022-02-08T22:32:52.000Z
latex_pdf.py
patent-python/patent-generator
3b5e5102b04eb13913a49a0c9c42922a80d645a9
[ "MIT" ]
2
2015-06-02T01:18:12.000Z
2021-05-17T11:45:32.000Z
latex_pdf.py
antiboredom/patent-generator
3b5e5102b04eb13913a49a0c9c42922a80d645a9
[ "MIT" ]
28
2015-01-05T19:45:44.000Z
2022-03-13T23:37:10.000Z
import os import sys import subprocess import shlex from machine import * class pdfCreator(): # declare and define all variables in the constructor def __init__(self,dn,fn,inv): self.invention = inv self.file = self.create_TeX_file(dn,fn) self.title = self.create_title() self.a...
27.721739
85
0.613551
371
3,188
5.15903
0.334232
0.036573
0.026646
0.030303
0
0
0
0
0
0
0
0.001723
0.271957
3,188
114
86
27.964912
0.822921
0.170013
0
0.031746
0
0
0.177008
0.057099
0
0
0
0
0
1
0.142857
false
0
0.095238
0
0.365079
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
14bb2152c7cc34c78af05e9bfc3763b3227f2fd5
3,099
py
Python
pynitrokey/nethsm/__init__.py
LennardBoediger/pynitrokey
837855701b4afe99322eadae4c63ad2679cb967a
[ "Apache-2.0", "MIT" ]
null
null
null
pynitrokey/nethsm/__init__.py
LennardBoediger/pynitrokey
837855701b4afe99322eadae4c63ad2679cb967a
[ "Apache-2.0", "MIT" ]
null
null
null
pynitrokey/nethsm/__init__.py
LennardBoediger/pynitrokey
837855701b4afe99322eadae4c63ad2679cb967a
[ "Apache-2.0", "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2021 Nitrokey Developers # # Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or # http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or # http://opensource.org/licenses/MIT>, at your option. This file may not be # copied, modified, or distribute...
28.694444
114
0.621168
350
3,099
5.411429
0.385714
0.018479
0.028511
0.030095
0.030623
0.030623
0
0
0
0
0
0.013022
0.281381
3,099
107
115
28.962617
0.837449
0.131978
0
0.118421
0
0
0.125047
0
0
0
0
0.009346
0
1
0.105263
false
0.118421
0.092105
0
0.355263
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
14bb4e643ae8b1e0c73b8052db2f70c31a743c1a
43
py
Python
cnn_example/data/__init__.py
4620511/cnn-example
b89b235d68569fac4769f50ee2f49ee16c750f08
[ "MIT" ]
null
null
null
cnn_example/data/__init__.py
4620511/cnn-example
b89b235d68569fac4769f50ee2f49ee16c750f08
[ "MIT" ]
null
null
null
cnn_example/data/__init__.py
4620511/cnn-example
b89b235d68569fac4769f50ee2f49ee16c750f08
[ "MIT" ]
null
null
null
from .data import DataModule # noqa: F401
21.5
42
0.744186
6
43
5.333333
1
0
0
0
0
0
0
0
0
0
0
0.085714
0.186047
43
1
43
43
0.828571
0.232558
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
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
1
0
1
0
1
0
0
6