hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
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
0
0
0
0
2,038
0.853077
0
0
299
0.125157
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
485
0.368541
268
0.203647
0
0
0
0
820
0.6231
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
3,268
0.860679
0
0
0
0
0
0
600
0.158019
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
721
0.836427
0
0
0
0
0
0
155
0.179814
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
2,797
0.86088
0
0
612
0.188366
0
0
145
0.044629
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
0
0
0
0
0
0
0
0
115
0.171898
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
0
0
0
0
0
0
0
0
3,929
0.725175
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
0
0
0
0
11,432
0.84971
0
0
3,707
0.275531
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
0
0
0
0
0
0
0
0
19
0.133803
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
2,417
0.934287
0
0
2,374
0.917665
0
0
262
0.101276
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
0
0
0
0
0
0
0
0
293
0.484298
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
0
0
0
0
0
0
0
0
471
0.583643
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
0
0
0
0
0
0
0
0
50
0.271739
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
1,412
0.979196
0
0
0
0
0
0
228
0.158114
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
371
0.981481
0
0
0
0
0
0
73
0.193122
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
6,067
0.959058
0
0
1,148
0.181473
0
0
582
0.092001
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
416
0.071836
0
0
0
0
0
0
1,509
0.260577
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
0
0
0
0
0
0
0
0
0
0
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
0
0
0
0
0
0
0
0
2,574
0.38122
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
43
0.002017
0
0
20,291
0.951557
0
0
4,317
0.202448
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
562
0.498227
0
0
0
0
0
0
18
0.015957
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
88,361
0.974212
0
0
0
0
0
0
42,466
0.468203
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
0
0
0
0
0
0
0
0
3,605
0.679292
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
0
0
0
0
0
0
0
0
113
0.081825
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
0
0
0
0
0
0
0
0
389
0.278056
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
1,384
0.771891
0
0
0
0
0
0
312
0.17401
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
805
0.840292
0
0
0
0
708
0.73904
328
0.34238
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
3,045
0.892962
0
0
0
0
0
0
165
0.048387
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
0
0
0
0
0
0
0
0
117
0.3
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
3,094
0.841676
0
0
1,992
0.541893
0
0
1,092
0.297062
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
0
0
0
0
0
0
0
0
221
0.264038
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
4,086
0.957581
0
0
0
0
0
0
486
0.113897
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
16,479
0.898283
0
0
1,112
0.060616
0
0
7,110
0.387572
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
2,271
0.954202
0
0
0
0
0
0
545
0.228992
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
5,086
0.821117
0
0
0
0
0
0
245
0.039554
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
0
0
0
0
0
0
0
0
652
0.306679
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
13,444
0.913998
0
0
7,392
0.502549
9,490
0.645183
2,074
0.141002
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
82
0.371041
0
0
0
0
0
0
38
0.171946
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
1,634
0.68569
0
0
0
0
0
0
36
0.015107
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
0
0
0
0
942
0.653713
0
0
329
0.228314
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
0
0
0
0
0
0
0
0
308
0.316547
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
684
0.912
0
0
0
0
0
0
317
0.422667
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
0
0
0
0
0
0
0
0
719
0.187386
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
1,378
0.837181
0
0
0
0
0
0
126
0.076549
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
6,293
0.956965
0
0
5,240
0.796837
0
0
2,697
0.410128
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
2,611
0.925558
0
0
1,773
0.628501
0
0
265
0.093938
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
330
0.780142
0
0
0
0
0
0
126
0.297872
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
0
0
0
0
396
0.111707
0
0
424
0.119605
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
0
0
0
0
0
0
0
0
295
0.392287
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
0
0
0
0
0
0
0
0
380
0.349908
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
0
0
0
0
0
0
0
0
1,257
0.372886
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
347
0.727463
0
0
399
0.836478
0
0
99
0.207547
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
0
0
0
0
0
0
0
0
801
0.54976
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
0
0
0
0
0
0
0
0
1,335
1
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
0
0
0
0
0
0
0
0
0
0
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
0
0
0
0
0
0
0
0
121
0.362275
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
0
0
0
0
0
0
0
0
701
0.273508
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
0
0
0
0
0
0
0
0
958
0.489275
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
0
0
149
0.031303
0
0
0
0
835
0.17542
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
3,713
0.993046
0
0
0
0
0
0
312
0.083445
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
0
0
0
0
0
0
0
0
664
0.640927
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
1,464
0.76569
0
0
150
0.078452
0
0
910
0.475941
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
0
0
0
0
0
0
0
0
63
0.102941
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
380
0.750988
0
0
0
0
0
0
133
0.262846
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
0
0
0
0
0
0
0
0
916
0.7417
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
0
0
0
0
0
0
0
0
184
0.119714
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
0
0
0
0
0
0
0
0
131
0.209265
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
0
0
0
0
0
0
0
0
108
0.631579
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
2,835
0.77906
0
0
1,792
0.492443
0
0
1,064
0.292388
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
5,033
0.79011
0
0
701
0.110047
0
0
1,183
0.185714
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
0
0
0
0
0
0
0
0
1,915
0.306302
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
0
0
0
0
0
0
0
0
229
0.456175
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
0
0
0
0
0
0
0
0
0
0
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
4,934
0.933939
0
0
0
0
0
0
279
0.052811
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
0
0
0
0
0
0
0
0
2,063
0.443465
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
0
0
0
0
3,362
0.581963
0
0
519
0.089839
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
23,535
0.967245
0
0
163
0.006699
0
0
3,453
0.141912
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
0
0
0
0
0
0
0
0
179
0.164977
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
0
0
0
0
0
0
0
0
1,740
0.35685
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
9,817
0.810518
0
0
3,973
0.328022
0
0
1,113
0.091892
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
32,999
0.984251
0
0
0
0
0
0
20,165
0.601456
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,411
0.141185
0
0
0
0
0
0
6,203
0.620672
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
0
0
0
0
0
0
0
0
0
0
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
0
0
0
0
0
0
0
0
0
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
0
0
0
0
0
0
0
0
30
0.131579
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
2,143
0.968807
0
0
0
0
0
0
158
0.071429
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
1,743
0.950382
0
0
0
0
0
0
710
0.387132
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
0
0
0
0
0
0
0
0
191
0.507979
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
828
0.822244
0
0
0
0
0
0
315
0.31281
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
0
0
0
0
0
0
0
0
28
0.329412
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
35,164
0.892873
0
0
35,423
0.899449
0
0
11,848
0.30084
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
371
0.813596
0
0
0
0
0
0
21
0.046053
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
259
0.877966
0
0
0
0
0
0
0
0
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
0
0
0
0
0
0
0
0
480
0.104325
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
2,003
0.927315
0
0
818
0.378704
0
0
1,503
0.695833
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
0
0
0
0
0
0
0
0
660
0.420115
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
4,535
0.86894
0
0
0
0
0
0
875
0.167657
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
2,794
0.876412
0
0
0
0
0
0
1,075
0.337202
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
1,860
0.600194
168
0.054211
195
0.062924
0
0
786
0.25363
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
0
0
0
0
0
0
0
0
12
0.27907