hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
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
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
251
max_forks_repo_name
stringlengths
4
130
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
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
7964d5e0d6c5bbff30057dd541992a4595176f15
760
py
Python
urmovie/views/image_view.py
xuyangliu/UR
8a3c94dd6b6f16bf233167333464c0429ad269d8
[ "Apache-2.0" ]
null
null
null
urmovie/views/image_view.py
xuyangliu/UR
8a3c94dd6b6f16bf233167333464c0429ad269d8
[ "Apache-2.0" ]
null
null
null
urmovie/views/image_view.py
xuyangliu/UR
8a3c94dd6b6f16bf233167333464c0429ad269d8
[ "Apache-2.0" ]
null
null
null
# Author:Sunny Liu from django.shortcuts import HttpResponse from django.shortcuts import render from django.shortcuts import redirect from urmovie import models from django.views.decorators.csrf import csrf_exempt import hashlib,os """ 1. """
24.516129
52
0.665789
7964ebe5d975dfd2d7d9cc2c69f05839abcd1197
2,983
py
Python
fastreid/layers/norm_layers/batch_re_norm2d.py
SZLSP/reid2020NAIC
d0eaee768e0be606417a27ce5ea2b3071b5a9bc2
[ "Apache-2.0" ]
2
2021-05-12T13:36:46.000Z
2021-08-15T10:35:08.000Z
fastreid/layers/norm_layers/batch_re_norm2d.py
SZLSP/reid2020NAIC
d0eaee768e0be606417a27ce5ea2b3071b5a9bc2
[ "Apache-2.0" ]
1
2021-12-28T12:49:49.000Z
2021-12-28T12:49:49.000Z
fastreid/layers/norm_layers/batch_re_norm2d.py
SZLSP/reid2020NAIC
d0eaee768e0be606417a27ce5ea2b3071b5a9bc2
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn from torch.cuda.amp import custom_fwd if __name__ == '__main__': m = BatchReNorm2D(100) input = torch.randn(20, 100, 35, 45) output = m(input)
41.430556
168
0.636272
7965ee6a115e0d8899378fe759bfe0554e1bc195
1,657
py
Python
prymate/token/token.py
NightShade256/prymate
deeb81ab685854599d803719971e85ead6699a90
[ "MIT" ]
6
2020-06-22T14:54:55.000Z
2021-12-13T12:33:21.000Z
prymate/token/token.py
NightShade256/prymate
deeb81ab685854599d803719971e85ead6699a90
[ "MIT" ]
null
null
null
prymate/token/token.py
NightShade256/prymate
deeb81ab685854599d803719971e85ead6699a90
[ "MIT" ]
1
2020-10-11T18:31:57.000Z
2020-10-11T18:31:57.000Z
import enum __all__ = ["TokenType", "Token", "lookup_ident"] KEYWORDS = { "fn": TokenType.FUNCTION, "let": TokenType.LET, "true": TokenType.TRUE, "false": TokenType.FALSE, "if": TokenType.IF, "else": TokenType.ELSE, "return": TokenType.RETURN, "const": TokenType.CONST, "while": ...
19.045977
65
0.540133
7966f849a29e53c40e0aa168b93b3cd8e669d4ec
3,191
py
Python
Projects/Project 2/program.py
ymirthor/T-215-STY1
b888da1e88c5aa16eac03353f525e9e0b9d901df
[ "MIT" ]
null
null
null
Projects/Project 2/program.py
ymirthor/T-215-STY1
b888da1e88c5aa16eac03353f525e9e0b9d901df
[ "MIT" ]
null
null
null
Projects/Project 2/program.py
ymirthor/T-215-STY1
b888da1e88c5aa16eac03353f525e9e0b9d901df
[ "MIT" ]
null
null
null
from collections import deque as LL if __name__ == "__main__": manager_no_dp = VM_Manager() manager_dp = VM_Manager() init_dp = open('init-dp.txt','r') input_dp = open('input-dp.txt', 'r') init_no_dp = open('init-no-dp.txt','r') input_no_dp = open('input-no-dp.txt', 'r') STs_dp = li...
27.991228
62
0.531808
79671fc83f6656f30c6074c1b351a64eeeecad56
3,750
py
Python
src/utils/common/prediction_helper.py
Supreeth-Shetty/Projectathon---Simplified-AI
3fc26a58a9370d119811ac4e864af977c21f6c40
[ "MIT" ]
8
2021-12-23T06:05:00.000Z
2021-12-26T05:39:00.000Z
src/utils/common/prediction_helper.py
Supreeth-Shetty/Projectathon---Simplified-AI
3fc26a58a9370d119811ac4e864af977c21f6c40
[ "MIT" ]
null
null
null
src/utils/common/prediction_helper.py
Supreeth-Shetty/Projectathon---Simplified-AI
3fc26a58a9370d119811ac4e864af977c21f6c40
[ "MIT" ]
2
2021-12-23T06:10:11.000Z
2021-12-23T07:24:28.000Z
import os from flask import session from src.utils.common.common_helper import load_project_encdoing, load_project_model, load_project_pca, \ load_project_scaler, read_config from loguru import logger from from_root import from_root from src.utils.databases.mysql_helper import MySqlHelper from src.preprocessing.pre...
43.604651
117
0.560533
796742832becd9376d9f4aeeea9d21e1ba36ad8f
6,343
py
Python
admin/views.py
dob9601/CollaboDev
cb1c3e3c6106ec8b0db8b570204b7fd959e0284e
[ "MIT" ]
7
2018-01-22T23:21:42.000Z
2021-01-27T12:06:02.000Z
admin/views.py
ViesLink/CollaboDev
1ab51f4d5e58dd8610861095632e1cd7f91edc21
[ "MIT" ]
9
2018-03-05T23:54:12.000Z
2022-02-10T10:54:56.000Z
admin/views.py
ViesLink/CollaboDev
1ab51f4d5e58dd8610861095632e1cd7f91edc21
[ "MIT" ]
2
2020-09-30T01:27:27.000Z
2021-01-27T12:05:46.000Z
"""Views for admin app.""" import random import os import requests from django.shortcuts import render from django.contrib.auth.models import User from django.contrib.auth.decorators import user_passes_test from django.http import HttpResponseRedirect, JsonResponse from django.urls import reverse from djan...
31.715
80
0.610752
7967b563a3566c5502b7994c82c942466d518c87
2,035
py
Python
src/spaceone/repository/api/v1/schema.py
whdalsrnt/repository
4d019c21508629faae7a7e2789bf540a3bab0e20
[ "Apache-2.0" ]
6
2020-06-04T23:00:33.000Z
2020-08-10T02:45:43.000Z
src/spaceone/repository/api/v1/schema.py
whdalsrnt/repository
4d019c21508629faae7a7e2789bf540a3bab0e20
[ "Apache-2.0" ]
4
2020-10-09T07:02:27.000Z
2022-02-28T04:43:01.000Z
src/spaceone/repository/api/v1/schema.py
whdalsrnt/repository
4d019c21508629faae7a7e2789bf540a3bab0e20
[ "Apache-2.0" ]
6
2020-06-01T10:10:57.000Z
2021-10-05T03:03:00.000Z
from spaceone.api.repository.v1 import schema_pb2, schema_pb2_grpc from spaceone.core.pygrpc import BaseAPI
46.25
116
0.704668
796832284ec5beb0d93e3de2098cee7d04cbed89
18,718
py
Python
examples/connections.py
Thinker83/remote-computer-manager
1ea8353e77fc13a98625d744162f789503a8f400
[ "MIT" ]
null
null
null
examples/connections.py
Thinker83/remote-computer-manager
1ea8353e77fc13a98625d744162f789503a8f400
[ "MIT" ]
null
null
null
examples/connections.py
Thinker83/remote-computer-manager
1ea8353e77fc13a98625d744162f789503a8f400
[ "MIT" ]
null
null
null
from computer_communication_framework.base_connection import Connection import subprocess import re import datetime
76.713115
884
0.678865
796b67b9479d04170cd02e4d71dc7ae51ab5fc75
13,795
py
Python
src/util.py
lambertwang/mastery
772bdeb10e014391835d267069afc820a113d2b2
[ "MIT" ]
1
2017-12-01T03:30:34.000Z
2017-12-01T03:30:34.000Z
src/util.py
lambertwang/mastery
772bdeb10e014391835d267069afc820a113d2b2
[ "MIT" ]
1
2017-11-13T18:46:39.000Z
2017-11-13T18:46:39.000Z
src/util.py
lambertwang/mastery
772bdeb10e014391835d267069afc820a113d2b2
[ "MIT" ]
null
null
null
import random import re import json from combat import * from travel import * from pdb import set_trace town_generator = MarkovGenerator(load_words('../data/towns.txt'), 2) name_generator = MarkovGenerator(load_words('../data/names_male.txt'), 3) occupation_list = list(load_words('../data/occupations.txt')) color_lis...
35.01269
174
0.58137
796c208b5ef0105c3a346b49387aabac0584232a
5,937
py
Python
soc-tools/reporting/report_splitter.py
michalk68/soc-tools
8d4c8fd53624817c1126c72d757878f305151446
[ "MIT" ]
null
null
null
soc-tools/reporting/report_splitter.py
michalk68/soc-tools
8d4c8fd53624817c1126c72d757878f305151446
[ "MIT" ]
null
null
null
soc-tools/reporting/report_splitter.py
michalk68/soc-tools
8d4c8fd53624817c1126c72d757878f305151446
[ "MIT" ]
1
2020-01-25T08:55:41.000Z
2020-01-25T08:55:41.000Z
import csv import argparse import os if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument("-v", "--value_list", help="List of values based on which should the report be splitted. " + "Accepts list of comma separated values") ...
41.229167
120
0.561732
796dec29764e9116f7092158c4657486b2e11567
1,899
py
Python
go/guru.py
x0rzkov/sublime-go
b77d78594caed017f040fe6c4168e525a563e28b
[ "MIT" ]
51
2019-08-18T18:18:42.000Z
2022-02-09T07:44:42.000Z
go/guru.py
x0rzkov/sublime-go
b77d78594caed017f040fe6c4168e525a563e28b
[ "MIT" ]
28
2019-08-19T04:10:52.000Z
2020-12-09T16:39:26.000Z
go/guru.py
localhots/sublime-go
960e72dafdb6c69d78bb5cbd88052540342517b9
[ "MIT" ]
4
2019-11-12T20:39:54.000Z
2021-07-30T09:57:32.000Z
from . import decorators from . import exec from . import log import os.path as path import sublime import time import json def call(mode, filename, region): """ Call calls guru(1) with the given `<mode>` filename and point. """ file = "{}:#{},#{}".format(filename, region.begin(), region.end()) args = ["-...
22.879518
68
0.636651
796e2d57bc64a8e281c2292d35bc9ea91f00edac
1,344
py
Python
tests/test_key.py
ksurdacki/cipher21
8dfdab32299cb8377435e5f57ec6a9aaf33891eb
[ "MIT" ]
2
2021-05-02T21:15:38.000Z
2021-05-03T07:45:09.000Z
tests/test_key.py
ksurdacki/cipher21
8dfdab32299cb8377435e5f57ec6a9aaf33891eb
[ "MIT" ]
null
null
null
tests/test_key.py
ksurdacki/cipher21
8dfdab32299cb8377435e5f57ec6a9aaf33891eb
[ "MIT" ]
null
null
null
from unittest import TestCase from random import Random from cipher21.key import Cipher21Key from cipher21.constants import KEY_LENGTH
37.333333
93
0.665923
796f8ea384a7f05b46370bc3b9473a2242391c4a
357
py
Python
Problems/String/1209. Remove All Adjacent Duplicates in String II.py
BYJRK/LeetCode-Solutions
008467e1717309066a519acb8623d2f84071b64a
[ "MIT" ]
null
null
null
Problems/String/1209. Remove All Adjacent Duplicates in String II.py
BYJRK/LeetCode-Solutions
008467e1717309066a519acb8623d2f84071b64a
[ "MIT" ]
null
null
null
Problems/String/1209. Remove All Adjacent Duplicates in String II.py
BYJRK/LeetCode-Solutions
008467e1717309066a519acb8623d2f84071b64a
[ "MIT" ]
null
null
null
# https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string-ii/ s = Solution() print(s.removeDuplicates('deeedbbcccbdaa', 3))
21
76
0.537815
7970c64577da21a05fff8a9ac2d82e4f99958f7a
4,520
py
Python
pathUtils.py
Noboxxx/ctrlShaper
0c1e30610be711f51230a8ebd1288d628409e0f9
[ "MIT" ]
null
null
null
pathUtils.py
Noboxxx/ctrlShaper
0c1e30610be711f51230a8ebd1288d628409e0f9
[ "MIT" ]
null
null
null
pathUtils.py
Noboxxx/ctrlShaper
0c1e30610be711f51230a8ebd1288d628409e0f9
[ "MIT" ]
null
null
null
import os import json from maya import cmds import re def write(self, data): data = self.compress_data(data) with open(self.get_path(), 'w') as f: json.dump(data, f, indent=2, sort_keys=True) def get_path(self): return self.name def read(self): with open(s...
28.074534
112
0.606195
797130522e525a58e85e7b3f848947aed4b21310
2,150
py
Python
detro/packages/circledet/network.py
Peiiii/detro
26d74468d7554dc20b2a2daf7ec5009302c820f2
[ "MIT" ]
null
null
null
detro/packages/circledet/network.py
Peiiii/detro
26d74468d7554dc20b2a2daf7ec5009302c820f2
[ "MIT" ]
null
null
null
detro/packages/circledet/network.py
Peiiii/detro
26d74468d7554dc20b2a2daf7ec5009302c820f2
[ "MIT" ]
null
null
null
from .resnet_backbone import resnet18 from torch import nn import torch import torch.nn.functional as F from detro.networks.components import BiFPN, Center_layer, Offset_layer, Reg_layer, Heatmap_layer from detro.networks.losslib import center_loss, distance_loss def CircleDetCriterion(preds, labels): loss_ce...
33.59375
97
0.649767
79714648fe909d1ef23cf1429aeb6aaa8d22155b
2,938
py
Python
home/forms.py
kana-shimmichi/Weeet
4e332107748cbf63b6c109d3e5ce968a42ed10c3
[ "BSD-3-Clause" ]
null
null
null
home/forms.py
kana-shimmichi/Weeet
4e332107748cbf63b6c109d3e5ce968a42ed10c3
[ "BSD-3-Clause" ]
9
2021-03-19T00:17:56.000Z
2022-03-12T00:17:14.000Z
home/forms.py
kana-shimmichi/Weeet
4e332107748cbf63b6c109d3e5ce968a42ed10c3
[ "BSD-3-Clause" ]
null
null
null
from django import forms from .models import MakerProfile,BuyerProfile,MstLang,MstSkill,Contact,Order,OrderMessage from register.models import User
29.676768
97
0.573179
7975367638974979532191242ae89eeddc64e809
4,418
py
Python
jacket/compute/opts.py
bopopescu/jacket
d7ad3147fcb43131098c2a5210847634ff5fb325
[ "Apache-2.0" ]
null
null
null
jacket/compute/opts.py
bopopescu/jacket
d7ad3147fcb43131098c2a5210847634ff5fb325
[ "Apache-2.0" ]
null
null
null
jacket/compute/opts.py
bopopescu/jacket
d7ad3147fcb43131098c2a5210847634ff5fb325
[ "Apache-2.0" ]
2
2016-08-10T02:21:49.000Z
2020-07-24T01:57:21.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy # of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the Li...
40.53211
85
0.716614
7975415464bdf9086363882be5e74bf46c4eaee1
5,362
py
Python
src/simple_regression.py
haojunqiu/csc110-project
f379d66709c89e33a312fb054bc91619e0fe6a92
[ "MIT" ]
null
null
null
src/simple_regression.py
haojunqiu/csc110-project
f379d66709c89e33a312fb054bc91619e0fe6a92
[ "MIT" ]
null
null
null
src/simple_regression.py
haojunqiu/csc110-project
f379d66709c89e33a312fb054bc91619e0fe6a92
[ "MIT" ]
1
2022-01-11T04:26:48.000Z
2022-01-11T04:26:48.000Z
"""CSC110 final project, main module Descriptions =============================== This module contains all the functions we used to implement the simple linear regression model. Copyright and Usage Information =============================== All forms of distribution of this code, whether as given or with any chang...
31.356725
92
0.619172
797b83c4395d6b6acbe9c60dbd945372be2f9477
718
py
Python
FaceRecogEngine/recognition/urls.py
thecodacus/FaceAuth
dca6d6438426df48cd7e9c9693fa450d817f7d61
[ "Apache-2.0" ]
2
2018-09-22T18:28:33.000Z
2021-08-28T17:44:30.000Z
FaceRecogEngine/recognition/urls.py
thecodacus/FaceAuth
dca6d6438426df48cd7e9c9693fa450d817f7d61
[ "Apache-2.0" ]
null
null
null
FaceRecogEngine/recognition/urls.py
thecodacus/FaceAuth
dca6d6438426df48cd7e9c9693fa450d817f7d61
[ "Apache-2.0" ]
1
2019-06-05T15:34:59.000Z
2019-06-05T15:34:59.000Z
from django.contrib import admin from django.urls import path, include from . import views from django.conf import settings app_name='recognition' urlpatterns = [ path('', views.Home.as_view(), name='home'), path('settings/', views.Home.as_view(), name='settings'), path('login/', views.UserLoginView.as_view()...
34.190476
86
0.71727
797d78dc8a7e7f2b8677fa417daf060e2f5479f3
2,026
py
Python
.pre-commit/check_version.py
JPchico/aiida-lammps
8f618541784bbd6360efc653350570cf76398e83
[ "MIT" ]
7
2021-02-26T06:12:28.000Z
2022-03-27T17:06:41.000Z
.pre-commit/check_version.py
JPchico/aiida-lammps
8f618541784bbd6360efc653350570cf76398e83
[ "MIT" ]
21
2020-09-18T14:03:16.000Z
2022-02-14T10:48:40.000Z
.pre-commit/check_version.py
JPchico/aiida-lammps
8f618541784bbd6360efc653350570cf76398e83
[ "MIT" ]
5
2018-03-02T23:49:41.000Z
2020-04-17T05:35:19.000Z
"""Validate consistency of versions and dependencies. Validates consistency of setup.json and * environment.yml * version in aiida_lammps/__init__.py """ import json import os import sys import click FILENAME_SETUP_JSON = "setup.json" SCRIPT_PATH = os.path.split(os.path.realpath(__file__))[0] ROOT_DIR = os.path.j...
28.138889
118
0.661895
797dc34e814424ff0892e6ac9838f4607837049a
7,062
py
Python
main.py
rorro/legacy-gauntlet
82898408acee5ddd0c629c15521c7f5f7a8982fe
[ "MIT" ]
null
null
null
main.py
rorro/legacy-gauntlet
82898408acee5ddd0c629c15521c7f5f7a8982fe
[ "MIT" ]
null
null
null
main.py
rorro/legacy-gauntlet
82898408acee5ddd0c629c15521c7f5f7a8982fe
[ "MIT" ]
null
null
null
import json import os import time from configparser import ConfigParser import discord from discord.ext import tasks, commands from dotenv import load_dotenv from datetime import datetime load_dotenv() TOKEN = os.getenv('TOKEN') CONFIG_FILE = 'config.ini' # Config config_parser = ConfigParser() config_parser.read(CO...
33.15493
125
0.717927
797e4e1803afd3fcc981a76ff3c6d7fb99ce8aa0
7,462
py
Python
zfunc.py
zhuligs/Pallas
c8d77d0963c080fa7331560f1659001488b0328f
[ "MIT" ]
null
null
null
zfunc.py
zhuligs/Pallas
c8d77d0963c080fa7331560f1659001488b0328f
[ "MIT" ]
null
null
null
zfunc.py
zhuligs/Pallas
c8d77d0963c080fa7331560f1659001488b0328f
[ "MIT" ]
null
null
null
import numpy as np import itdbase from itdbase import Cell import itin from copy import deepcopy as cp import cPickle as pick # from tsase.optimize import MDMin from ase.optimize.fire import FIRE # from ase.optimize import BFGS from ase import * from ase.io import read, write import os import sys import numpy as np fr...
28.158491
79
0.597829
797e80a621441acbd16bae2574af1c39fbbbbfb6
1,113
py
Python
ckanext/issues/commands.py
rhabbachi/ckanext-issues
d8c3dde8372e88dd5dc173023df34c90034ca777
[ "MIT" ]
8
2016-06-16T20:45:54.000Z
2020-09-24T12:06:15.000Z
ckanext/issues/commands.py
rhabbachi/ckanext-issues
d8c3dde8372e88dd5dc173023df34c90034ca777
[ "MIT" ]
50
2015-03-25T16:59:11.000Z
2016-01-10T21:35:26.000Z
ckanext/issues/commands.py
rhabbachi/ckanext-issues
d8c3dde8372e88dd5dc173023df34c90034ca777
[ "MIT" ]
11
2016-09-14T13:34:53.000Z
2020-08-28T05:48:58.000Z
from ckan.lib.cli import CkanCommand import logging import sys
25.883721
69
0.57053
797ef4080003e9940cfa950023fe499ebb5260ea
510
py
Python
wprevents/base/views.py
arroway/wprevents
5ed14c0e85c1a6463a0e72c94836fae81fbe3fda
[ "BSD-3-Clause" ]
1
2015-02-07T10:04:48.000Z
2015-02-07T10:04:48.000Z
wprevents/base/views.py
yvan-sraka/wprevents
03f95150fe7c09338c3a17e00a4b85febef87789
[ "BSD-3-Clause" ]
6
2015-02-07T10:08:38.000Z
2021-06-06T13:17:24.000Z
wprevents/base/views.py
yvan-sraka/wprevents
03f95150fe7c09338c3a17e00a4b85febef87789
[ "BSD-3-Clause" ]
4
2015-01-20T19:48:31.000Z
2017-04-08T22:10:52.000Z
from django.http import HttpResponseServerError from django.shortcuts import render from django.template import RequestContext from django.template.loader import get_template
22.173913
66
0.782353
798152a21d0084126235c34a6bada661f5af6a43
1,984
py
Python
symmetricom_raspberrypi_clock.py
wkumari/symmetricom-nd4-python
08ff7dc56f52667ad885817a3afbb97c879d5f48
[ "Apache-2.0" ]
null
null
null
symmetricom_raspberrypi_clock.py
wkumari/symmetricom-nd4-python
08ff7dc56f52667ad885817a3afbb97c879d5f48
[ "Apache-2.0" ]
null
null
null
symmetricom_raspberrypi_clock.py
wkumari/symmetricom-nd4-python
08ff7dc56f52667ad885817a3afbb97c879d5f48
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2017 Warren Kumari """ This small program uses a Raspberry Pi Zero W to drive the display portion of a Symmetricom ND-4 display. This replaces the processor board of the ND-4, and powers the Pi from the internal ND-4 power supply. The original processor board simply drives a MAX7...
32
116
0.697077
7981d5f5623d46312039f8e4c8cb2b8fbffad125
4,730
py
Python
tests/test_rtpPayload_ttml.py
bbc/rd-apmm-python-lib-rtpPayload_ttml
805d13242b44f26f38e5a9d940ee2ec4862528c3
[ "Apache-1.1" ]
null
null
null
tests/test_rtpPayload_ttml.py
bbc/rd-apmm-python-lib-rtpPayload_ttml
805d13242b44f26f38e5a9d940ee2ec4862528c3
[ "Apache-1.1" ]
null
null
null
tests/test_rtpPayload_ttml.py
bbc/rd-apmm-python-lib-rtpPayload_ttml
805d13242b44f26f38e5a9d940ee2ec4862528c3
[ "Apache-1.1" ]
null
null
null
#!/usr/bin/python # # James Sandford, copyright BBC 2020 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
33.785714
79
0.65074
7982421d07b8b666fc8fc840123a2f47aa6edf14
860
py
Python
client-hints/resources/echo-ua-client-hints-received.py
BasixKOR/wpt
aa27d567c10dcdb2aea6884d5155dfaaa177a800
[ "BSD-3-Clause" ]
null
null
null
client-hints/resources/echo-ua-client-hints-received.py
BasixKOR/wpt
aa27d567c10dcdb2aea6884d5155dfaaa177a800
[ "BSD-3-Clause" ]
59
2022-01-19T21:35:57.000Z
2022-03-30T21:35:27.000Z
client-hints/resources/echo-ua-client-hints-received.py
BasixKOR/wpt
aa27d567c10dcdb2aea6884d5155dfaaa177a800
[ "BSD-3-Clause" ]
null
null
null
import importlib client_hints_ua_list = importlib.import_module("client-hints.resources.clienthintslist").client_hints_ua_list def main(request, response): """ Simple handler that sets a response header based on which client hint request headers were received. """ response.headers.append(b"Access-Contro...
35.833333
109
0.731395
79836d938d077f9ed2ab86fd140347063a4e8fc0
8,892
py
Python
base/vocab.py
thu-spmi/semi-EBM
393e3ea3566dd60c48872a5c573a335e8e802707
[ "Apache-2.0" ]
2
2021-09-18T14:21:24.000Z
2021-12-20T03:39:13.000Z
base/vocab.py
thu-spmi/semi-EBM
393e3ea3566dd60c48872a5c573a335e8e802707
[ "Apache-2.0" ]
null
null
null
base/vocab.py
thu-spmi/semi-EBM
393e3ea3566dd60c48872a5c573a335e8e802707
[ "Apache-2.0" ]
1
2021-09-12T07:02:23.000Z
2021-09-12T07:02:23.000Z
import os import json import numpy as np
36.743802
109
0.501012
7983823b3cdf770a3c86d666eba52cc7de43379b
2,749
py
Python
dpfinder/searcher/statistics/ratio/ratio_cdf.py
barryZZJ/dp-finder
ddf8e3589110b4b35920b437d605b45dd56291da
[ "MIT" ]
15
2018-10-19T05:48:17.000Z
2022-02-14T20:34:16.000Z
dpfinder/searcher/statistics/ratio/ratio_cdf.py
barryZZJ/dp-finder
ddf8e3589110b4b35920b437d605b45dd56291da
[ "MIT" ]
1
2020-04-22T22:55:39.000Z
2020-04-22T22:55:39.000Z
dpfinder/searcher/statistics/ratio/ratio_cdf.py
barryZZJ/dp-finder
ddf8e3589110b4b35920b437d605b45dd56291da
[ "MIT" ]
9
2018-11-13T12:37:55.000Z
2021-11-22T11:11:52.000Z
# ==BEGIN LICENSE== # # MIT License # # Copyright (c) 2018 SRI Lab, ETH Zurich # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the right...
33.938272
87
0.75773
79847f99b109a82c82b372de1f58d473f2ed39a1
2,611
py
Python
psana/psana/pscalib/dcs/lcls1/DCConfigParameters.py
JBlaschke/lcls2
30523ef069e823535475d68fa283c6387bcf817b
[ "BSD-3-Clause-LBNL" ]
16
2017-11-09T17:10:56.000Z
2022-03-09T23:03:10.000Z
psana/psana/pscalib/dcs/lcls1/DCConfigParameters.py
JBlaschke/lcls2
30523ef069e823535475d68fa283c6387bcf817b
[ "BSD-3-Clause-LBNL" ]
6
2017-12-12T19:30:05.000Z
2020-07-09T00:28:33.000Z
psana/psana/pscalib/dcs/lcls1/DCConfigParameters.py
JBlaschke/lcls2
30523ef069e823535475d68fa283c6387bcf817b
[ "BSD-3-Clause-LBNL" ]
25
2017-09-18T20:02:43.000Z
2022-03-27T22:27:42.000Z
####!/usr/bin/env python #---------------------------- """ :py:class:`DCConfigParameters` - class supporting configuration parameters for application ========================================================================================== See: * :py:class:`DCStore` * :py:class:`DCType` * :py:class:`DCRan...
32.6375
124
0.579088
798a3cc03589f18c700fa6bcef79b697f3535128
22,751
py
Python
limonero/models.py
eubr-bigsea/limonero
54851b73bb1e4f5626b3d38ea7eeb50f3ed2e3c5
[ "Apache-2.0" ]
1
2018-01-01T20:35:43.000Z
2018-01-01T20:35:43.000Z
limonero/models.py
eubr-bigsea/limonero
54851b73bb1e4f5626b3d38ea7eeb50f3ed2e3c5
[ "Apache-2.0" ]
37
2017-02-24T17:07:25.000Z
2021-09-02T14:49:19.000Z
limonero/models.py
eubr-bigsea/limonero
54851b73bb1e4f5626b3d38ea7eeb50f3ed2e3c5
[ "Apache-2.0" ]
2
2019-11-05T13:45:45.000Z
2020-11-13T22:02:37.000Z
import datetime import json from flask_sqlalchemy import SQLAlchemy from sqlalchemy import Column, Integer, String, Boolean, ForeignKey, Float, \ Enum, DateTime, Numeric, Text, Unicode, UnicodeText from sqlalchemy import event from sqlalchemy.dialects.mysql import LONGTEXT from sqlalchemy.sql import func from sqlal...
33.213139
107
0.594611
798d2621ee7b1e2db86f8b2f4ca02a4a32de49fa
398
py
Python
binary_counting.py
Lioheart/python-samples
de5f82b20fa216178e0084b7693e42df4fcaf883
[ "Unlicense" ]
null
null
null
binary_counting.py
Lioheart/python-samples
de5f82b20fa216178e0084b7693e42df4fcaf883
[ "Unlicense" ]
null
null
null
binary_counting.py
Lioheart/python-samples
de5f82b20fa216178e0084b7693e42df4fcaf883
[ "Unlicense" ]
null
null
null
""" Przemienia liczb na warto binarn i zwraca sum jedynek wystpujc w wartoci binarnej Example: The binary representation of 1234 is 10011010010, so the function should return 5 in this case """ print(countBits(1234))
26.533333
103
0.660804
798d7fd532e84917e31256f8642a90e8a7bd3c0f
2,392
py
Python
cognite/transformations_cli/commands/deploy/transformation_types.py
cognitedata/transformations-cli
7466cd8dcb30829793e0026d0b2eae62c3df5f6b
[ "Apache-2.0" ]
1
2022-02-01T09:54:52.000Z
2022-02-01T09:54:52.000Z
cognite/transformations_cli/commands/deploy/transformation_types.py
cognitedata/transformations-cli
7466cd8dcb30829793e0026d0b2eae62c3df5f6b
[ "Apache-2.0" ]
19
2021-11-12T13:21:17.000Z
2022-03-28T14:34:00.000Z
cognite/transformations_cli/commands/deploy/transformation_types.py
cognitedata/transformations-cli
7466cd8dcb30829793e0026d0b2eae62c3df5f6b
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass, field from enum import Enum from typing import List, Optional, Union class TransformationConfigError(Exception): """Exception raised for config parser Attributes: message -- explanation of the error """
23.45098
133
0.701923
798f90e5f4234e1706d47ac52ae151b26363ed30
105
py
Python
autoapi/__init__.py
lhfriedman/sphinx-autoapi
efe815c1df16a616b40b44cb679fda4a4eb7895a
[ "MIT" ]
null
null
null
autoapi/__init__.py
lhfriedman/sphinx-autoapi
efe815c1df16a616b40b44cb679fda4a4eb7895a
[ "MIT" ]
1
2020-07-31T01:19:04.000Z
2020-07-31T01:19:04.000Z
autoapi/__init__.py
lhfriedman/sphinx-autoapi
efe815c1df16a616b40b44cb679fda4a4eb7895a
[ "MIT" ]
null
null
null
""" Sphinx AutoAPI """ from .extension import setup from ._version import __version__, __version_info__
15
51
0.780952
798fc2e845f5bf9a57d8e39d930d847c7c266425
1,851
py
Python
org/openbaton/v2/events.py
openbaton/openbaton-cli
4d2f894c0b6d821fa41e03caca880467de90d8fe
[ "Apache-2.0" ]
2
2017-07-24T11:33:27.000Z
2020-05-09T00:21:49.000Z
org/openbaton/v2/events.py
openbaton/openbaton-cli
4d2f894c0b6d821fa41e03caca880467de90d8fe
[ "Apache-2.0" ]
5
2017-06-09T14:28:50.000Z
2018-07-05T10:46:40.000Z
org/openbaton/v2/events.py
openbaton/openbaton-cli
4d2f894c0b6d821fa41e03caca880467de90d8fe
[ "Apache-2.0" ]
2
2017-06-09T13:27:27.000Z
2017-07-18T21:01:59.000Z
import logging from org.openbaton.v2.cmd import BaseObCmd from org.openbaton.v2.utils import get_result_to_list, get_result_to_show, parse_path_or_json, result_to_str
39.382979
114
0.611021
7990148f4b787430b9e80ecbae6f2daea018109e
6,390
py
Python
tests/bugs/gh_5995_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2022-02-05T11:37:13.000Z
2022-02-05T11:37:13.000Z
tests/bugs/gh_5995_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-09-03T11:47:00.000Z
2021-09-03T12:42:10.000Z
tests/bugs/gh_5995_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-06-30T14:14:16.000Z
2021-06-30T14:14:16.000Z
#coding:utf-8 # # id: bugs.gh_5995 # title: Connection to server may hang when working with encrypted databases over non-TCP protocol [CORE5730] # decription: # https://github.com/FirebirdSQL/firebird/issues/5995 # # Test implemented only to be run ...
38.035714
140
0.596557
7990913dfb319b60a3a689bb4ec8e33cb489297d
10,799
py
Python
mednickdb_pyapi/test_mednickdb_usecases.py
MednickLab/python_module
818763a70d1058e72ddecfea7e07b88e42b39f3b
[ "MIT" ]
null
null
null
mednickdb_pyapi/test_mednickdb_usecases.py
MednickLab/python_module
818763a70d1058e72ddecfea7e07b88e42b39f3b
[ "MIT" ]
null
null
null
mednickdb_pyapi/test_mednickdb_usecases.py
MednickLab/python_module
818763a70d1058e72ddecfea7e07b88e42b39f3b
[ "MIT" ]
1
2018-12-06T21:51:22.000Z
2018-12-06T21:51:22.000Z
from mednickdb_pyapi.mednickdb_pyapi import MednickAPI import pytest import time import pandas as pd import pprint pp = pprint.PrettyPrinter(indent=4) server_address = 'http://saclab.ss.uci.edu:8000' file_update_time = 2 data_update_time = 10 data_upload_working = False def test_clear_test_study(): """ ...
43.720648
215
0.682471
79941e8098ddb85ae7adb492cd1a81eb3262f856
4,078
py
Python
sslcommerz_sdk/store.py
monim67/sslcommerz-sdk
77219fc90ab12222df2c03abc95c8d2b19768eeb
[ "MIT" ]
6
2021-01-15T13:31:37.000Z
2021-12-06T13:44:39.000Z
sslcommerz_sdk/store.py
monim67/sslcommerz-sdk
77219fc90ab12222df2c03abc95c8d2b19768eeb
[ "MIT" ]
null
null
null
sslcommerz_sdk/store.py
monim67/sslcommerz-sdk
77219fc90ab12222df2c03abc95c8d2b19768eeb
[ "MIT" ]
null
null
null
import requests from .enums import TransactionStatus from .exceptions import InvalidPaymentException, SslcommerzAPIException from .services import PayloadSchema, is_verify_sign_valid DEFAULT_CONFIG = { "base_url": "https://sandbox.sslcommerz.com", "session_url": "/gwprocess/v4/api.php", "validation_url":...
37.072727
88
0.601766
7994462d7302f56ae3248adc4074cec0dff871a2
1,636
py
Python
nobrace/converter.py
iblis17/nobrace
7333029c6cd5f2a885614b5fe64f6c85ee5f296d
[ "MIT" ]
2
2015-07-13T09:08:53.000Z
2017-05-22T07:56:29.000Z
nobrace/converter.py
iblis17/nobrace
7333029c6cd5f2a885614b5fe64f6c85ee5f296d
[ "MIT" ]
null
null
null
nobrace/converter.py
iblis17/nobrace
7333029c6cd5f2a885614b5fe64f6c85ee5f296d
[ "MIT" ]
null
null
null
import abc import re from .exceptions import FileSuffixError from .stack import LineCounter, IndentStack
27.728814
64
0.525672
7994c8744e38290defb02afb422aa332b6ee9f48
541
py
Python
test/cv2countours.py
taiwc/raspwww
835befaa9255fe53b7ce97b50f9d825191979eae
[ "Apache-2.0" ]
null
null
null
test/cv2countours.py
taiwc/raspwww
835befaa9255fe53b7ce97b50f9d825191979eae
[ "Apache-2.0" ]
null
null
null
test/cv2countours.py
taiwc/raspwww
835befaa9255fe53b7ce97b50f9d825191979eae
[ "Apache-2.0" ]
null
null
null
# import the necessary packages import numpy as np import argparse import cv2 im = cv2.imread('/var/www/test/test.jpg') cv2.imshow("im", im) imgray = cv2.cvtColor(im,cv2.COLOR_BGR2GRAY) ret,thresh = cv2.threshold(imgray,127,255,0) cv2.imshow("Thresh", thresh) (cnts, _) = cv2.findContours(thresh,cv2.RETR_TREE,cv2.CHAIN...
31.823529
83
0.744917
79954f94e96d2ea0202820bdc5e93050e74cbb64
810
py
Python
migrations/versions/schema/783682226c9b_.py
Georgi2704/pricelist-fastapi-boilerplate
24b88e1f5c28b7eaff50745cd4464caac6de01e6
[ "Apache-2.0" ]
null
null
null
migrations/versions/schema/783682226c9b_.py
Georgi2704/pricelist-fastapi-boilerplate
24b88e1f5c28b7eaff50745cd4464caac6de01e6
[ "Apache-2.0" ]
2
2021-11-11T15:19:30.000Z
2022-02-07T22:52:07.000Z
migrations/versions/schema/783682226c9b_.py
Georgi2704/pricelist-fastapi
24b88e1f5c28b7eaff50745cd4464caac6de01e6
[ "Apache-2.0" ]
null
null
null
"""empty message Revision ID: 783682226c9b Revises: b882b9ab026c Create Date: 2019-10-19 10:07:14.923441 """ import sqlalchemy as sa from alembic import op # revision identifiers, used by Alembic. revision = "783682226c9b" down_revision = "b882b9ab026c" branch_labels = None depends_on = None
25.3125
110
0.693827
7996085f7d2fbdd5bdf9904904104dd2b1da88ab
645
py
Python
backend/pages/migrations/0002_add_streamfield_option.py
nicoepp/the-prayer-walk
6c8217c33f399cfe46dc23075e13ca9464079cae
[ "MIT" ]
null
null
null
backend/pages/migrations/0002_add_streamfield_option.py
nicoepp/the-prayer-walk
6c8217c33f399cfe46dc23075e13ca9464079cae
[ "MIT" ]
null
null
null
backend/pages/migrations/0002_add_streamfield_option.py
nicoepp/the-prayer-walk
6c8217c33f399cfe46dc23075e13ca9464079cae
[ "MIT" ]
null
null
null
# Generated by Django 3.1.4 on 2021-02-04 05:25 from django.db import migrations import wagtail.core.blocks import wagtail.core.fields
30.714286
271
0.669767
79973a1e08549411e3704f4e9cd2dd372854a94e
2,800
py
Python
pysnmp/HPN-ICF-FCOE-MODE-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/HPN-ICF-FCOE-MODE-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/HPN-ICF-FCOE-MODE-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module HPN-ICF-FCOE-MODE-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HPN-ICF-FCOE-MODE-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:26:43 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (def...
112
477
0.777143
799b0a8db84df97948487d6c7aed90ab475e0d53
1,212
py
Python
simulations/yml_to_df.py
danibachar/Kube-Load-Balancing
8b9ea68ddbb46cc730a02ffe30cc68b3d65ca491
[ "MIT" ]
null
null
null
simulations/yml_to_df.py
danibachar/Kube-Load-Balancing
8b9ea68ddbb46cc730a02ffe30cc68b3d65ca491
[ "MIT" ]
null
null
null
simulations/yml_to_df.py
danibachar/Kube-Load-Balancing
8b9ea68ddbb46cc730a02ffe30cc68b3d65ca491
[ "MIT" ]
null
null
null
import argparse import pandas as pd from config_builder import build_config from utils.helpers import load_ymal if __name__ == '__main__': parser = argparse.ArgumentParser(description='Run Kuberentes simulation') parser.add_argument( '--config_file_name', type=str, default="yamls/conf...
28.857143
77
0.632013
799b58e5ba21ca4170d1a2c3abadcfc25ef8f189
1,896
py
Python
app/core/tests/test_admin.py
wanqian622/recipe-app-api
040eade8c6636347b6928b6deef7dfc3eaebc6f4
[ "MIT" ]
null
null
null
app/core/tests/test_admin.py
wanqian622/recipe-app-api
040eade8c6636347b6928b6deef7dfc3eaebc6f4
[ "MIT" ]
null
null
null
app/core/tests/test_admin.py
wanqian622/recipe-app-api
040eade8c6636347b6928b6deef7dfc3eaebc6f4
[ "MIT" ]
null
null
null
from django.test import TestCase, Client from django.contrib.auth import get_user_model # generate url for our django admin page from django.urls import reverse # allow us to make test requests to our app
37.92
70
0.647152
799b9f43022008e2e03ab6f0fb315d88d195a221
348
py
Python
by-session/class-921/week2/poly.py
amiraliakbari/sharif-mabani-python
5d14a08d165267fe71c28389ddbafe29af7078c5
[ "MIT" ]
2
2015-04-29T20:59:35.000Z
2018-09-26T13:33:43.000Z
by-session/class-921/week2/poly.py
amiraliakbari/sharif-mabani-python
5d14a08d165267fe71c28389ddbafe29af7078c5
[ "MIT" ]
null
null
null
by-session/class-921/week2/poly.py
amiraliakbari/sharif-mabani-python
5d14a08d165267fe71c28389ddbafe29af7078c5
[ "MIT" ]
null
null
null
import turtle n = 10 while n > 0: n = n - 1 poly(10, 30) turtle.forward(40) turtle.done()
14.5
33
0.522989
799c75fdf25b724115e60255f1f09d6eec4d851d
4,187
py
Python
ckanext/ckanext-sixodp_scheming/ckanext/sixodp_scheming/helpers.py
Tampere/sixodp-tampere
975105a5e20e97c54dd7c84c761f91cca1316842
[ "MIT" ]
8
2016-10-14T14:32:00.000Z
2022-01-14T16:04:07.000Z
ckanext/ckanext-sixodp_scheming/ckanext/sixodp_scheming/helpers.py
Tampere/sixodp-tampere
975105a5e20e97c54dd7c84c761f91cca1316842
[ "MIT" ]
42
2016-11-11T12:24:54.000Z
2021-07-12T03:29:18.000Z
ckanext/ckanext-sixodp_scheming/ckanext/sixodp_scheming/helpers.py
Tampere/sixodp-tampere
975105a5e20e97c54dd7c84c761f91cca1316842
[ "MIT" ]
7
2017-03-13T09:21:08.000Z
2018-01-08T06:40:22.000Z
from ckan.plugins import toolkit from ckan.lib.i18n import get_lang import ckan.lib.i18n as i18n from ckan.common import config, c import ckan.logic as logic import ckan.lib.base as base import ckan.model as model from ckan.model.package import Package from ckan.lib.dictization.model_dictize import group_list_dictize ...
27.366013
119
0.64557
799d1aa404d567219c68dbf1a4e8d983c39bc395
389
py
Python
helpers/cast_heal.py
nuzcraft/RLTut
b763de87ee49abd413a7c3a278c004803ab45663
[ "MIT" ]
2
2018-01-05T08:09:37.000Z
2018-01-05T20:39:18.000Z
helpers/cast_heal.py
nuzcraft/RLTut
b763de87ee49abd413a7c3a278c004803ab45663
[ "MIT" ]
null
null
null
helpers/cast_heal.py
nuzcraft/RLTut
b763de87ee49abd413a7c3a278c004803ab45663
[ "MIT" ]
null
null
null
# function that heals the player import variables as var from helpers.message import message
27.785714
64
0.701799
79a1df3d282563da1e1751edcf4f307e4b4ca364
8,794
py
Python
notebooks/experiments.py
yashasvi-ranawat/viabel
99245b7f3db8ea9dc55d6130bd5672e1adc62b63
[ "MIT" ]
1
2022-02-15T23:43:22.000Z
2022-02-15T23:43:22.000Z
notebooks/experiments.py
yashasvi-ranawat/viabel
99245b7f3db8ea9dc55d6130bd5672e1adc62b63
[ "MIT" ]
null
null
null
notebooks/experiments.py
yashasvi-ranawat/viabel
99245b7f3db8ea9dc55d6130bd5672e1adc62b63
[ "MIT" ]
3
2020-03-21T12:45:22.000Z
2020-10-06T18:30:47.000Z
import numpy as np import matplotlib.pyplot as plt import seaborn as sns all from viabel import all_bounds from viabel.vb import black_box_klvi, black_box_chivi, adagrad_optimize from utils import Timer from psis import psislw ## Display bounds information ## ## Check approximation accuracy ## ## Convenience fu...
41.677725
90
0.61053
79a273cc97d15a6de92f6c405beb9d31e30fa60e
6,269
py
Python
network_filters.py
luos/nova-latency-scheduler
8e83539ce1dfd080ba86e4e71a2b999e56a91ec8
[ "MIT" ]
1
2017-03-28T19:02:23.000Z
2017-03-28T19:02:23.000Z
network_filters.py
luos/nova-latency-scheduler
8e83539ce1dfd080ba86e4e71a2b999e56a91ec8
[ "MIT" ]
null
null
null
network_filters.py
luos/nova-latency-scheduler
8e83539ce1dfd080ba86e4e71a2b999e56a91ec8
[ "MIT" ]
null
null
null
from abc import ABCMeta, abstractmethod from collections import namedtuple from nova.objects.request_spec import RequestSpec from nova.scheduler.host_manager import HostState from oslo_log import log as logging import nova.conf from nova.scheduler.filters import BaseHostFilter from latency_meter.server import start_...
29.7109
113
0.590206
79a4a7145c7782f4c24c78c13d10feef5db3850e
2,456
py
Python
data_capture/jobs.py
connectthefuture/calc
7f0dc01d9265f26a36c2b9b5ee779fe876e4a494
[ "CC0-1.0" ]
null
null
null
data_capture/jobs.py
connectthefuture/calc
7f0dc01d9265f26a36c2b9b5ee779fe876e4a494
[ "CC0-1.0" ]
1
2021-06-10T23:13:04.000Z
2021-06-10T23:13:04.000Z
data_capture/jobs.py
connectthefuture/calc
7f0dc01d9265f26a36c2b9b5ee779fe876e4a494
[ "CC0-1.0" ]
null
null
null
import logging import traceback from django.core.exceptions import ValidationError from django.core.files.base import ContentFile from django.db import transaction from django_rq import job from . import email from .r10_spreadsheet_converter import Region10SpreadsheetConverter from contracts.loaders.region_10 import R...
29.95122
79
0.735342
79a5279be723e7987fc33c8f7184b26de97782d2
1,525
py
Python
rss_temple/api/archived_feed_entry_util.py
murrple-1/rss_temple
289197923b1e7d1213f1673d164337df17d7269b
[ "MIT" ]
null
null
null
rss_temple/api/archived_feed_entry_util.py
murrple-1/rss_temple
289197923b1e7d1213f1673d164337df17d7269b
[ "MIT" ]
8
2019-12-04T21:58:35.000Z
2021-12-15T02:29:49.000Z
rss_temple/api/archived_feed_entry_util.py
murrple-1/rss_temple
289197923b1e7d1213f1673d164337df17d7269b
[ "MIT" ]
null
null
null
import itertools from django.conf import settings from django.dispatch import receiver from django.core.signals import setting_changed from api import models _USER_UNREAD_GRACE_INTERVAL = None _USER_UNREAD_GRACE_MIN_COUNT = None _load_global_settings()
31.122449
120
0.773115
79a565e7d7928d619d4922162412c3aac164285d
3,016
py
Python
nonebot_plugin_bam/database/helper.py
7sDream/nonebot_plugin_bam
9d19856661a75484440efff8d77094390230f4c9
[ "MIT" ]
4
2021-02-08T16:18:12.000Z
2021-12-28T07:13:51.000Z
nonebot_plugin_bam/database/helper.py
7sDream/nonebot_plugin_bam
9d19856661a75484440efff8d77094390230f4c9
[ "MIT" ]
null
null
null
nonebot_plugin_bam/database/helper.py
7sDream/nonebot_plugin_bam
9d19856661a75484440efff8d77094390230f4c9
[ "MIT" ]
null
null
null
from collections import defaultdict from typing import Dict from nonebot.log import logger from peewee import JOIN from .db import DB from .tables import BilibiliUser, BilibiliUserStatus, FollowLink, Group
24.92562
78
0.655172
79a69b808745f05349b2ede483ce4782883293d0
1,536
py
Python
monitor.py
hletrd/Facebook-Autopoker
18735eebd4a34992a43a0987d390bbcfc0050d96
[ "MIT" ]
5
2015-07-14T17:11:24.000Z
2016-07-28T11:52:03.000Z
monitor.py
hletrd/Facebook-Autopoker
18735eebd4a34992a43a0987d390bbcfc0050d96
[ "MIT" ]
null
null
null
monitor.py
hletrd/Facebook-Autopoker
18735eebd4a34992a43a0987d390bbcfc0050d96
[ "MIT" ]
null
null
null
db = 'log.db' import sqlite3 import time dbc = sqlite3.connect(db, check_same_thread=False) dbc.text_factory = str c = dbc.cursor() while True: c.execute('SELECT userid, name, COUNT(`date`) FROM log WHERE `date` > \'' + time.strftime('%Y-%m-%d 00:00:00') + '\' AND result=1 GROUP BY userid;') result = c.fetchall() ...
45.176471
149
0.575521
79a7ef7c11468985df93521d767d16d3db7e7f54
1,949
py
Python
annoTree/subs/parsSyms.py
jvfNontools/jvfNontools
60b3c2643f6cabbcad342b5f6b3e5490e89f31f5
[ "Apache-2.0" ]
null
null
null
annoTree/subs/parsSyms.py
jvfNontools/jvfNontools
60b3c2643f6cabbcad342b5f6b3e5490e89f31f5
[ "Apache-2.0" ]
null
null
null
annoTree/subs/parsSyms.py
jvfNontools/jvfNontools
60b3c2643f6cabbcad342b5f6b3e5490e89f31f5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 #Copyright 2018 Jim Van Fleet #Licensed under the Apache License, Version 2.0 (the "License"); #you may not use this file except in compliance with the License. #You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 #Unless required by applicable law or agreed to ...
34.192982
73
0.531042
79aa3668bb043f0729ae0d753b69ad0de26cb30d
2,270
py
Python
models/networkgcn.py
Byomyyt/GnTCN
b4cc9e97fc0b0438deb0a7e118817a7ab73ae93c
[ "MIT" ]
91
2021-04-06T15:33:11.000Z
2022-03-31T05:16:27.000Z
models/networkgcn.py
ddddwee1/GnTCN
e1abb8c526b2a9904d6f964b0084b54f123b82c9
[ "MIT" ]
17
2021-01-04T09:08:20.000Z
2022-03-17T11:45:27.000Z
models/networkgcn.py
ddddwee1/GnTCN
e1abb8c526b2a9904d6f964b0084b54f123b82c9
[ "MIT" ]
15
2021-01-18T01:54:23.000Z
2021-09-24T01:29:32.000Z
import numpy as np import torch import torch.nn.functional as F from TorchSUL import Model as M from torch.nn.parameter import Parameter import torch.nn.init as init
27.02381
75
0.657269
79ac7f2c83fe009a0c2f95dafc3599ebde6411df
307
py
Python
tests/backends/test_init.py
benkrikler/fast-carpenter-github-test
b6f7e1b218d3a1f39fcbe739c8bab19af63aabb8
[ "Apache-2.0" ]
12
2019-05-17T13:02:20.000Z
2020-08-31T08:16:47.000Z
tests/backends/test_init.py
FAST-HEP/fast-carpenter
b6f7e1b218d3a1f39fcbe739c8bab19af63aabb8
[ "Apache-2.0" ]
104
2019-05-17T16:25:35.000Z
2022-03-28T16:11:10.000Z
tests/backends/test_init.py
benkrikler/fast-carpenter-github-test
b6f7e1b218d3a1f39fcbe739c8bab19af63aabb8
[ "Apache-2.0" ]
16
2019-05-20T16:57:48.000Z
2020-09-28T16:36:21.000Z
import pytest import fast_carpenter.backends as backends
25.583333
53
0.732899
79ae5d267641860a50ba60429c85299cdeeef14d
1,534
py
Python
serving_patterns/src/api_composition_proxy/helpers.py
shibuiwilliam/ml-system-in-action
0aa9d6bc4a4346236b9c971ec90afad04bcf5cca
[ "MIT" ]
10
2020-08-30T03:19:10.000Z
2021-08-08T17:38:06.000Z
serving_patterns/src/api_composition_proxy/helpers.py
shibuiwilliam/ml-system-in-action
0aa9d6bc4a4346236b9c971ec90afad04bcf5cca
[ "MIT" ]
null
null
null
serving_patterns/src/api_composition_proxy/helpers.py
shibuiwilliam/ml-system-in-action
0aa9d6bc4a4346236b9c971ec90afad04bcf5cca
[ "MIT" ]
6
2020-08-30T03:19:13.000Z
2021-11-26T23:32:42.000Z
from typing import Dict import logging logger = logging.getLogger(__name__) def customized_redirect_builder(alias: str, url: str, redirect_path: str, customized_redirect_map: Dict[str, Dict[str, str]] = None) -> str: """ customized_redirect_map { ALIAS_0: { REDIRECT_PATH_0:...
27.890909
140
0.627119
79ae9cb10f166f65649baf95240f5d262fca4fa9
1,856
py
Python
rsa/rsa/common.py
andrew-kulikov/crypto
c81cf7965d58da23ce234435676c8516daf3c649
[ "MIT" ]
null
null
null
rsa/rsa/common.py
andrew-kulikov/crypto
c81cf7965d58da23ce234435676c8516daf3c649
[ "MIT" ]
null
null
null
rsa/rsa/common.py
andrew-kulikov/crypto
c81cf7965d58da23ce234435676c8516daf3c649
[ "MIT" ]
null
null
null
import typing def extended_gcd(a: int, b: int) -> typing.Tuple[int, int, int]: """Returns a tuple (r, i, j) such that r = gcd(a, b) = ia + jb """ # r = gcd(a,b) i = multiplicitive inverse of a mod b # or j = multiplicitive inverse of b mod a # Neg return values for i or j are made po...
25.424658
93
0.553341
79af2c5e0250f4d13af181fe19d4ed482ecdc804
12,217
py
Python
tests/unit/core/test_datasetprofile.py
bernease/whylogs-python
cfd2a2f71280537aae584cbd40a752fbe7da647b
[ "Apache-2.0" ]
null
null
null
tests/unit/core/test_datasetprofile.py
bernease/whylogs-python
cfd2a2f71280537aae584cbd40a752fbe7da647b
[ "Apache-2.0" ]
null
null
null
tests/unit/core/test_datasetprofile.py
bernease/whylogs-python
cfd2a2f71280537aae584cbd40a752fbe7da647b
[ "Apache-2.0" ]
null
null
null
import datetime import json import os from uuid import uuid4 import pytest import numpy as np from pandas import util from whylogs.core.datasetprofile import DatasetProfile, array_profile, dataframe_profile from whylogs.core.model_profile import ModelProfile from whylogs.util import time from whylogs.util.protobuf im...
35.106322
107
0.681919
79af4b15407f4473ba60b0d4c07074b41824263f
2,645
py
Python
canvas/cli/api.py
robinsax/canvas
6e8b9b260fdda868d687b562926a2038736ec56c
[ "Apache-2.0" ]
4
2018-01-24T01:34:39.000Z
2021-01-14T21:29:47.000Z
canvas/cli/api.py
robinsax/canvas
6e8b9b260fdda868d687b562926a2038736ec56c
[ "Apache-2.0" ]
2
2018-06-09T22:28:56.000Z
2018-06-12T01:40:10.000Z
canvas/cli/api.py
robinsax/canvas
6e8b9b260fdda868d687b562926a2038736ec56c
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 ''' The CLI API definition, available to both the core and plugins. ''' import sys from ..exceptions import NotInstalled from .. import __installed__ # Define the global name to launcher function map. _launchers = dict() # Define a single character to launcher function map. _shortforms = dict() def ...
25.432692
76
0.677127
79b1464dc8a1a2223cbbc525bfa7851ed4e2bee9
1,408
py
Python
lego/apps/gallery/migrations/0006_auto_20171210_1610.py
ollfkaih/lego
b15aacaf09efe90e7f984d25b0e7bddbe12647e8
[ "MIT" ]
45
2017-10-24T12:09:06.000Z
2021-11-03T21:21:03.000Z
lego/apps/gallery/migrations/0006_auto_20171210_1610.py
ollfkaih/lego
b15aacaf09efe90e7f984d25b0e7bddbe12647e8
[ "MIT" ]
980
2017-10-24T12:29:07.000Z
2022-03-31T04:04:31.000Z
lego/apps/gallery/migrations/0006_auto_20171210_1610.py
wahello/lego
a0b02f3abc997fe96326e9c9c05b49847170041b
[ "MIT" ]
23
2018-04-11T16:34:22.000Z
2021-11-23T12:28:30.000Z
# Generated by Django 2.0 on 2017-12-10 16:10 import django.db.models.deletion from django.conf import settings from django.db import migrations, models
29.333333
61
0.52983
79b154f9526abf942504a9812110e0bdc124d139
1,898
py
Python
tests/run/test_config_file.py
vincent99/rio
018dac19be47ee20ae47bcd8eea71c8c4f07a1af
[ "Apache-2.0" ]
1
2019-05-28T11:32:11.000Z
2019-05-28T11:32:11.000Z
tests/run/test_config_file.py
vincent99/rio
018dac19be47ee20ae47bcd8eea71c8c4f07a1af
[ "Apache-2.0" ]
null
null
null
tests/run/test_config_file.py
vincent99/rio
018dac19be47ee20ae47bcd8eea71c8c4f07a1af
[ "Apache-2.0" ]
null
null
null
from os import unlink from random import randint import util import tempfile
21.325843
68
0.615385
79b1746a37fe8892a2af50ecacc257f9f91b14cd
1,090
py
Python
Semana5/lab05/tienda/models.py
SPFelipe/TECSUP-DAE-2021-2
ec218d0a7fa66a73e3e0a8889e325cf2ce2a74d3
[ "MIT" ]
null
null
null
Semana5/lab05/tienda/models.py
SPFelipe/TECSUP-DAE-2021-2
ec218d0a7fa66a73e3e0a8889e325cf2ce2a74d3
[ "MIT" ]
null
null
null
Semana5/lab05/tienda/models.py
SPFelipe/TECSUP-DAE-2021-2
ec218d0a7fa66a73e3e0a8889e325cf2ce2a74d3
[ "MIT" ]
null
null
null
from django.db import models # Create your models here.
34.0625
70
0.725688
79b4abdae3efe0c4ff65adf1b7ab722b6fbb2d46
71
py
Python
PyUdemy/Day1/variables.py
JoseArtur/phyton-exercices
f3da4447044e445222233960f991fb2e36311131
[ "MIT" ]
null
null
null
PyUdemy/Day1/variables.py
JoseArtur/phyton-exercices
f3da4447044e445222233960f991fb2e36311131
[ "MIT" ]
null
null
null
PyUdemy/Day1/variables.py
JoseArtur/phyton-exercices
f3da4447044e445222233960f991fb2e36311131
[ "MIT" ]
null
null
null
a=input("a= ") b=input("b= ") aa=a a=b b=aa print("a=",a) print("b=",b)
10.142857
14
0.507042
79b4dd93658058c4c08b578922c3ee4d84c4d4e5
5,548
py
Python
vivareal.py
erlancassiano/portal_crawler
bcbda7871d74080b926b0f59c05d813385286173
[ "MIT" ]
null
null
null
vivareal.py
erlancassiano/portal_crawler
bcbda7871d74080b926b0f59c05d813385286173
[ "MIT" ]
null
null
null
vivareal.py
erlancassiano/portal_crawler
bcbda7871d74080b926b0f59c05d813385286173
[ "MIT" ]
null
null
null
import os import datetime import csv import time import random from time import sleep from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.by import By from selenium.common.exceptions import NoSuchElementExceptio...
53.864078
188
0.605443
79b52191dc7ea7de4c6237513c7af4e22ce1b28f
3,339
py
Python
seahub/base/profile.py
gzy403999903/seahub
992e5852579a6d9e0cfdaf18c77ce0191cb64449
[ "Apache-2.0" ]
null
null
null
seahub/base/profile.py
gzy403999903/seahub
992e5852579a6d9e0cfdaf18c77ce0191cb64449
[ "Apache-2.0" ]
6
2019-12-13T09:55:45.000Z
2022-03-11T23:47:29.000Z
seahub/base/profile.py
gzy403999903/seahub
992e5852579a6d9e0cfdaf18c77ce0191cb64449
[ "Apache-2.0" ]
1
2019-05-16T06:58:16.000Z
2019-05-16T06:58:16.000Z
# Copyright (c) 2012-2016 Seafile Ltd. """ The MIT License (MIT) Copyright (c) 2013 Omar Bohsali Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation ...
38.825581
152
0.7059
79b68a6d1a405ace81c0d0f659613828d57db047
3,203
py
Python
data/make_stterror_data/tts.py
gcunhase/StackedDeBERT
82777114fd99cafc6e2a3d760e774f007c563245
[ "MIT" ]
32
2020-01-03T09:53:03.000Z
2021-09-07T07:23:26.000Z
data/make_stterror_data/tts.py
gcunhase/StackedDeBERT
82777114fd99cafc6e2a3d760e774f007c563245
[ "MIT" ]
null
null
null
data/make_stterror_data/tts.py
gcunhase/StackedDeBERT
82777114fd99cafc6e2a3d760e774f007c563245
[ "MIT" ]
6
2020-01-21T06:50:21.000Z
2021-01-22T08:04:00.000Z
import data.make_stterror_data.utils as utils import os import sys import subprocess # TTS imports from gtts import gTTS import pyttsx3 # sys.path.append("~/PycharmProjects/pyfestival") # https://github.com/techiaith/pyfestival/pull/4 # import festival __author__ = 'Gwena Cunha' """ Text-To-Speech Module """
42.706667
127
0.675617
79b7a93216b116c4fe2b33e6f3183397b498a763
1,047
py
Python
year2019/day21/code.py
romainvigneres/advent_of_code
2ae38617706cb1041ab3950cdec3713176dc3633
[ "MIT" ]
null
null
null
year2019/day21/code.py
romainvigneres/advent_of_code
2ae38617706cb1041ab3950cdec3713176dc3633
[ "MIT" ]
null
null
null
year2019/day21/code.py
romainvigneres/advent_of_code
2ae38617706cb1041ab3950cdec3713176dc3633
[ "MIT" ]
null
null
null
from year2019.intcode_v2 import Intcode from common import input_integer_sep
20.529412
43
0.472779
79b7cbd53300df46238acfe16835276ec2f45c5e
2,252
py
Python
july/management/commands/fix_locations.py
kanika-art/julython.org
557b29e5d69a772b684fb6073a616f06b97d0a48
[ "MIT" ]
7
2015-07-01T18:01:40.000Z
2019-12-27T02:04:07.000Z
july/management/commands/fix_locations.py
kanika-art/julython.org
557b29e5d69a772b684fb6073a616f06b97d0a48
[ "MIT" ]
6
2015-07-01T11:32:34.000Z
2021-06-10T20:35:32.000Z
july/management/commands/fix_locations.py
kanika-art/julython.org
557b29e5d69a772b684fb6073a616f06b97d0a48
[ "MIT" ]
10
2015-07-01T11:20:35.000Z
2020-10-02T18:58:07.000Z
import logging from django.core.management.base import BaseCommand from django.template.defaultfilters import slugify from july.models import User from july.people.models import Location from july.utils import check_location from optparse import make_option
32.637681
79
0.517318
79b9401f776d3b7758cf615a45ec455370cc2331
42
py
Python
tests/identifiers/__init__.py
jparsai/cvejob
8f9462a1ecdf1d4de877ac5f44e772239ffcb379
[ "Apache-2.0" ]
8
2019-09-25T14:45:28.000Z
2021-11-08T10:30:03.000Z
tests/identifiers/__init__.py
jparsai/cvejob
8f9462a1ecdf1d4de877ac5f44e772239ffcb379
[ "Apache-2.0" ]
113
2018-07-10T12:58:16.000Z
2020-12-09T22:33:15.000Z
tests/identifiers/__init__.py
jparsai/cvejob
8f9462a1ecdf1d4de877ac5f44e772239ffcb379
[ "Apache-2.0" ]
12
2018-07-10T11:00:02.000Z
2021-01-27T12:19:56.000Z
"""Tests for package name identifiers."""
21
41
0.714286
79b9db085b3980a703000d7ded2a0b497ec1fcdd
6,338
py
Python
core/feature/gps_location_daywise/gps_location_daywise.py
MD2Korg/CerebralCortex-DataAnalysis
73f5ea2430bc7c23de422dccb7b65ef9f8917595
[ "BSD-2-Clause" ]
1
2018-04-24T18:11:24.000Z
2018-04-24T18:11:24.000Z
core/feature/gps_location_daywise/gps_location_daywise.py
Boris69bg/CerebralCortex-DataAnalysis
49565bdff348d69153bd5d3a37e73f1645f82b32
[ "BSD-2-Clause" ]
10
2018-03-13T19:04:09.000Z
2018-05-12T01:40:03.000Z
core/feature/gps_location_daywise/gps_location_daywise.py
Boris69bg/CerebralCortex-DataAnalysis
49565bdff348d69153bd5d3a37e73f1645f82b32
[ "BSD-2-Clause" ]
42
2017-12-07T17:08:14.000Z
2019-06-02T08:25:12.000Z
# Copyright (c) 2018, MD2K Center of Excellence # - Alina Zaman <azaman@memphis.edu> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copy...
48.015152
114
0.631745
79bc0b508670cb51847c1e5dbe41b345258f4db3
263
py
Python
Python Advanced/Advanced/Multidimensional Lists/Lab/Task04.py
IvanTodorovBG/SoftUni
7b667f6905d9f695ab1484efbb02b6715f6d569e
[ "MIT" ]
1
2022-03-16T10:23:04.000Z
2022-03-16T10:23:04.000Z
Python Advanced/Advanced/Multidimensional Lists/Lab/Task04.py
IvanTodorovBG/SoftUni
7b667f6905d9f695ab1484efbb02b6715f6d569e
[ "MIT" ]
null
null
null
Python Advanced/Advanced/Multidimensional Lists/Lab/Task04.py
IvanTodorovBG/SoftUni
7b667f6905d9f695ab1484efbb02b6715f6d569e
[ "MIT" ]
null
null
null
rows, columns = [int(x) for x in input().split(", ")] matrix = [[int(i) for i in input().split()] for _ in range(rows)] for column in range(columns): sum_column = 0 for row in range(rows): sum_column += matrix[row][column] print(sum_column)
26.3
65
0.619772
79bc48970d40d17cad24372399c2613c8f57a896
2,939
py
Python
benchmark/invocation.py
zanderhavgaard/thesis-code
d9f193e622b8b98ec88c33006f8e0e1dbb3d17fc
[ "MIT" ]
null
null
null
benchmark/invocation.py
zanderhavgaard/thesis-code
d9f193e622b8b98ec88c33006f8e0e1dbb3d17fc
[ "MIT" ]
2
2020-04-28T07:59:30.000Z
2020-05-17T15:36:04.000Z
benchmark/invocation.py
zanderhavgaard/thesis-code
d9f193e622b8b98ec88c33006f8e0e1dbb3d17fc
[ "MIT" ]
null
null
null
import sys import uuid import psutil import time from datetime import datetime # remove for production from pprint import pprint from functools import reduce import function_lib as lib
40.819444
131
0.543042
79bc840d240556a6ff5b245bea2de77b90bf2da0
470
py
Python
mysite/news/forms.py
rsg33/testsite
939e5c25f2e128c30d4a8593337059971587dd3c
[ "MIT" ]
null
null
null
mysite/news/forms.py
rsg33/testsite
939e5c25f2e128c30d4a8593337059971587dd3c
[ "MIT" ]
null
null
null
mysite/news/forms.py
rsg33/testsite
939e5c25f2e128c30d4a8593337059971587dd3c
[ "MIT" ]
null
null
null
from django import forms from .models import News
33.571429
82
0.574468
79bcabef33a714ea5bd9e55eb07ea14a99365d51
4,123
py
Python
src/pymor/tools/io/vtk.py
kinnala/pymor
9d2a8ee5f7a71482e62952257332d269d50678e9
[ "Unlicense" ]
2
2022-03-22T11:47:12.000Z
2022-03-22T11:48:23.000Z
src/pymor/tools/io/vtk.py
kinnala/pymor
9d2a8ee5f7a71482e62952257332d269d50678e9
[ "Unlicense" ]
14
2022-01-05T09:25:11.000Z
2022-03-31T17:07:10.000Z
src/pymor/tools/io/vtk.py
moro1111/pymor
aa03f2521ee3c7b8a9e7da4cb109caea4c788b29
[ "Unlicense" ]
1
2022-03-28T10:58:18.000Z
2022-03-28T10:58:18.000Z
# This file is part of the pyMOR project (https://www.pymor.org). # Copyright pyMOR developers and contributors. All rights reserved. # License: BSD 2-Clause License (https://opensource.org/licenses/BSD-2-Clause) from pymor.core.config import config config.require('VTKIO') from pathlib import Path import meshio fro...
32.464567
113
0.66408
79bf7da39552fc06aca988e7aec5e90f151e4f97
159
py
Python
cart/admin.py
shaongitt/boihut
d93c6b503dd7ad4f37dc572a6dec21f593bf7b35
[ "BSD-2-Clause" ]
null
null
null
cart/admin.py
shaongitt/boihut
d93c6b503dd7ad4f37dc572a6dec21f593bf7b35
[ "BSD-2-Clause" ]
null
null
null
cart/admin.py
shaongitt/boihut
d93c6b503dd7ad4f37dc572a6dec21f593bf7b35
[ "BSD-2-Clause" ]
null
null
null
from django.contrib import admin from .models import Cart,CartItems # Register your models here. admin.site.register(CartItems) admin.site.register(Cart)
26.5
35
0.792453
79c3715dd99e77bde511c274c350ef404bb7cf2e
1,887
py
Python
models/vanilla_cnn.py
mamaheux/pytorch-exemple-calcul-canada
41bd1769aaf30bd3786589bd3e3252bb115fdd69
[ "MIT" ]
null
null
null
models/vanilla_cnn.py
mamaheux/pytorch-exemple-calcul-canada
41bd1769aaf30bd3786589bd3e3252bb115fdd69
[ "MIT" ]
null
null
null
models/vanilla_cnn.py
mamaheux/pytorch-exemple-calcul-canada
41bd1769aaf30bd3786589bd3e3252bb115fdd69
[ "MIT" ]
null
null
null
import torch.nn as nn from models.blocks import GlobalAvgPool2d
39.3125
110
0.581346
79c4397925c5e818a6ed0d6ef4f084f5009de3b4
1,079
py
Python
routemaster_sdk/exceptions.py
thread/routemaster-sdk
1300508525a3e1495c640f9c7ff689bb6f621d7e
[ "MIT" ]
null
null
null
routemaster_sdk/exceptions.py
thread/routemaster-sdk
1300508525a3e1495c640f9c7ff689bb6f621d7e
[ "MIT" ]
null
null
null
routemaster_sdk/exceptions.py
thread/routemaster-sdk
1300508525a3e1495c640f9c7ff689bb6f621d7e
[ "MIT" ]
null
null
null
"""Well known exceptions.""" from routemaster_sdk.types import LabelRef, StateMachine
26.975
77
0.682113
79c473b0364a6ca1e495e68f26cc755757c8686b
604
py
Python
servicebox/platforms/api/views.py
FlxPeters/servicebox
2fc39fa5ec6e629a0794fda003a7a0e4adf05202
[ "Apache-2.0" ]
null
null
null
servicebox/platforms/api/views.py
FlxPeters/servicebox
2fc39fa5ec6e629a0794fda003a7a0e4adf05202
[ "Apache-2.0" ]
null
null
null
servicebox/platforms/api/views.py
FlxPeters/servicebox
2fc39fa5ec6e629a0794fda003a7a0e4adf05202
[ "Apache-2.0" ]
null
null
null
from platforms.models import PlatformGroup, Platform from rest_framework import viewsets from platforms.api.serializers import PlatformGroupSerializer, PlatformSerializer
27.454545
81
0.768212
79c4bc7411a8ceae834135ef0832c81c48a8f427
5,528
py
Python
transforms.py
amitkumarj441/TGS_Kaggle
a4f613046cc36f3f6dbec28adb35f97a63c2a994
[ "MIT" ]
1
2019-03-20T07:10:08.000Z
2019-03-20T07:10:08.000Z
transforms.py
amitkumarj441/TGS_Kaggle
a4f613046cc36f3f6dbec28adb35f97a63c2a994
[ "MIT" ]
null
null
null
transforms.py
amitkumarj441/TGS_Kaggle
a4f613046cc36f3f6dbec28adb35f97a63c2a994
[ "MIT" ]
null
null
null
import cv2 import numpy as np from scipy.ndimage.filters import gaussian_filter from scipy.ndimage.interpolation import map_coordinates # Function to distort image def elastic_transform(image, alpha, sigma, alpha_affine, random_state=None): """Elastic deformation of images as described in [Simard2003]_ (with...
38.929577
120
0.680174
79c67d96a3b58ae9b3f7d1e5efc7a2527f181276
1,663
py
Python
taskobra/monitor/system_info.py
Vipyr/taskobra
d9884f006ef9c735852075912d5a945543de52f5
[ "MIT" ]
null
null
null
taskobra/monitor/system_info.py
Vipyr/taskobra
d9884f006ef9c735852075912d5a945543de52f5
[ "MIT" ]
43
2020-02-06T22:23:42.000Z
2020-04-29T23:56:43.000Z
taskobra/monitor/system_info.py
Vipyr/taskobra
d9884f006ef9c735852075912d5a945543de52f5
[ "MIT" ]
2
2020-02-06T21:01:42.000Z
2020-02-06T23:43:11.000Z
from taskobra.orm import * import platform import cpuinfo import subprocess
25.984375
74
0.578473
79ca87eadda13d9fdb7282bf224ad560fc96b076
2,392
py
Python
expression_builder/tests/test_string_replace.py
django-advance-utils/expression-builder
08dab5780ae3a8be90c4daa6b9950ad1af4d87a4
[ "MIT" ]
null
null
null
expression_builder/tests/test_string_replace.py
django-advance-utils/expression-builder
08dab5780ae3a8be90c4daa6b9950ad1af4d87a4
[ "MIT" ]
null
null
null
expression_builder/tests/test_string_replace.py
django-advance-utils/expression-builder
08dab5780ae3a8be90c4daa6b9950ad1af4d87a4
[ "MIT" ]
null
null
null
import unittest from expression_builder.exceptions import ExpressionError from expression_builder.expression_builder import ExpressionBuilder
36.8
86
0.640886
79ca9ccc9aed4b417288aeae0d80662e45b6689d
309
py
Python
example/simple.py
yoophi/str_pic
e4ac65e819b50d7c8fb4bf94dd26aa5a97e4331b
[ "MIT" ]
null
null
null
example/simple.py
yoophi/str_pic
e4ac65e819b50d7c8fb4bf94dd26aa5a97e4331b
[ "MIT" ]
3
2021-06-08T19:34:37.000Z
2022-03-11T23:18:13.000Z
example/simple.py
yoophi/str_pic
e4ac65e819b50d7c8fb4bf94dd26aa5a97e4331b
[ "MIT" ]
null
null
null
from flask import Flask, render_template from flask_dummyimage import DummyImage app = Flask(__name__) dummyimage = DummyImage(app, url_prefix="/dm", endpoint="images", route="img") if __name__ == "__main__": app.run(debug=True)
19.3125
78
0.721683
79cc5960935ea7fbba4fb0eb6555e1ecb03c2fbf
1,562
py
Python
mints/args/typed.py
candy-kingdom/mints
e68a2351cf3ff6823e978bc6a4b740bd2a974ca3
[ "MIT" ]
4
2020-05-09T11:01:32.000Z
2020-06-03T14:44:06.000Z
mints/args/typed.py
candy-kingdom/cli
e68a2351cf3ff6823e978bc6a4b740bd2a974ca3
[ "MIT" ]
43
2020-01-27T21:14:16.000Z
2020-06-18T17:57:20.000Z
mints/args/typed.py
candy-kingdom/mints
e68a2351cf3ff6823e978bc6a4b740bd2a974ca3
[ "MIT" ]
null
null
null
from typing import Type, Any
31.877551
78
0.587068
79cd97ed3020f125684d084c92be22793583d226
5,994
py
Python
lab3/es2/webservice.py
haraldmeister/Programming_for_IoT_applications
04ec13689caee1fca28bf4fb6a261c318ebd374d
[ "Apache-2.0" ]
null
null
null
lab3/es2/webservice.py
haraldmeister/Programming_for_IoT_applications
04ec13689caee1fca28bf4fb6a261c318ebd374d
[ "Apache-2.0" ]
null
null
null
lab3/es2/webservice.py
haraldmeister/Programming_for_IoT_applications
04ec13689caee1fca28bf4fb6a261c318ebd374d
[ "Apache-2.0" ]
null
null
null
import json import time import cherrypy if __name__ == '__main__': conf = { '/': { 'request.dispatch': cherrypy.dispatch.MethodDispatcher(), 'tools.sessions.on': True } } cherrypy.tree.mount(Discography(), '/', conf) cherrypy.config.update({'server.socket_host'...
45.067669
101
0.584918
79ce0327616efa9691f6ae8fe41ab9246d6bf9e6
143
py
Python
tests/redirects_tests/urls.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
tests/redirects_tests/urls.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
tests/redirects_tests/urls.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
from django.conf.urls import url from django.http import HttpResponse urlpatterns = [ url(r'^$', lambda req: HttpResponse('OK')), ]
20.428571
48
0.678322
79d29ea8f56cec3596c251c94d5aca0bfd3a1026
1,653
pyde
Python
examples/01_game_of_life/sketch_gameoflife.pyde
underwit/pyprocessing-examples
c6e84fded23dcdd5bf32d499aa91900d68ec213d
[ "MIT" ]
null
null
null
examples/01_game_of_life/sketch_gameoflife.pyde
underwit/pyprocessing-examples
c6e84fded23dcdd5bf32d499aa91900d68ec213d
[ "MIT" ]
null
null
null
examples/01_game_of_life/sketch_gameoflife.pyde
underwit/pyprocessing-examples
c6e84fded23dcdd5bf32d499aa91900d68ec213d
[ "MIT" ]
null
null
null
import random from itertools import product CS = 10 # cell size W = 600 # width H = 600 # height COLS = W // CS ROWS = H // CS DENSITY = 0.35 dirs = list(product((-1, 0, 1), repeat=2)) dirs.remove((0, 0)) points = [] new_points = [] run = False
21.467532
66
0.557774
79d585582066d6853246fd14d5eec7b556e67b85
5,064
py
Python
conanfile.py
madebr/conan-repo-actions-conan-libwebp
2f2eaad6e8de2cbec611f19de5205fc0b3267492
[ "MIT" ]
null
null
null
conanfile.py
madebr/conan-repo-actions-conan-libwebp
2f2eaad6e8de2cbec611f19de5205fc0b3267492
[ "MIT" ]
null
null
null
conanfile.py
madebr/conan-repo-actions-conan-libwebp
2f2eaad6e8de2cbec611f19de5205fc0b3267492
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import shutil from conans import ConanFile, CMake, tools
42.2
120
0.634874
79d5867444343ac92dd71c753e06968277e1c875
5,184
py
Python
sjtwo-c/site_scons/site_tools/codegen/site_packages/can/broadcastmanager.py
seanlinc/Playmate
077877d172dd6b7beab910c52ec95ee300bc6480
[ "Apache-2.0" ]
2
2020-04-04T21:09:56.000Z
2020-04-08T17:00:58.000Z
sjtwo-c/site_scons/site_tools/codegen/site_packages/can/broadcastmanager.py
seanlinc/Playmate
077877d172dd6b7beab910c52ec95ee300bc6480
[ "Apache-2.0" ]
13
2020-04-11T21:50:57.000Z
2020-04-19T03:19:48.000Z
sjtwo-c/site_scons/site_tools/codegen/site_packages/can/broadcastmanager.py
seanlinc/Playmate
077877d172dd6b7beab910c52ec95ee300bc6480
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Exposes several methods for transmitting cyclic messages. The main entry point to these classes should be through :meth:`can.BusABC.send_periodic`. """ import abc import logging import threading import time import warnings log = logging.getLogger('can.bcm') def send_periodic(bus, messag...
32.603774
119
0.643711
79d996f9c7b739201903f7162ae39e85d80aae38
513
py
Python
accessible_output/braille/outputs/virgo.py
Timtam/cards-against-humanity
89ea61b5c9915198b845bbf8a93c3f7827323ceb
[ "MIT" ]
5
2017-04-11T00:18:42.000Z
2021-08-01T04:27:20.000Z
accessible_output/braille/outputs/virgo.py
Timtam/cards-against-humanity
89ea61b5c9915198b845bbf8a93c3f7827323ceb
[ "MIT" ]
47
2017-04-27T18:57:27.000Z
2017-07-16T21:18:28.000Z
accessible_output/braille/outputs/virgo.py
Timtam/cards-against-humanity
89ea61b5c9915198b845bbf8a93c3f7827323ceb
[ "MIT" ]
4
2018-05-17T12:33:59.000Z
2022-02-20T16:08:51.000Z
from pywintypes import com_error import win32com.client from main import OutputError, BrailleOutput
23.318182
68
0.744639
79da26b04e69fcee30b862a1e5dd200b98e09556
3,050
py
Python
data_ai/comp3006/src/test.py
lonelyhentai/workspace
2a996af58d6b9be5d608ed040267398bcf72403b
[ "MIT" ]
2
2021-04-26T16:37:38.000Z
2022-03-15T01:26:19.000Z
data_ai/comp3006/src/test.py
lonelyhentai/workspace
2a996af58d6b9be5d608ed040267398bcf72403b
[ "MIT" ]
null
null
null
data_ai/comp3006/src/test.py
lonelyhentai/workspace
2a996af58d6b9be5d608ed040267398bcf72403b
[ "MIT" ]
1
2022-03-15T01:26:23.000Z
2022-03-15T01:26:23.000Z
import pandas as pd import numpy as np from os import path from path_service import LOG_DIR, DATA_DIR from sklearn.metrics import log_loss import re prob_columns = list(map(lambda x: f"prob{x}", range(8))) prob_columns_without_end = list(map(lambda x: f"prob{x}", range(7))) if __name__ == "__main__": check...
34.659091
106
0.627213
79daca46089122299df7193b935021df51332239
1,255
py
Python
tests/test_data.py
tappitikarrass/flask-ap
88b97bb522474ca3dc056c209640050af74cb5dc
[ "BSD-3-Clause" ]
null
null
null
tests/test_data.py
tappitikarrass/flask-ap
88b97bb522474ca3dc056c209640050af74cb5dc
[ "BSD-3-Clause" ]
null
null
null
tests/test_data.py
tappitikarrass/flask-ap
88b97bb522474ca3dc056c209640050af74cb5dc
[ "BSD-3-Clause" ]
null
null
null
import base64 # USER post_user_data_200 = { "username": "sbandera1", "firstname": "Stepan", "lastname": "Bandera", "email": "stepanko@liamg.com", "phone": "123", "password": "supersecret" } post_user_alt_data_200 = { "username": "ivanbahryanyi", "firstname": "Ivan", "lastname": "Bahryanyi",...
22.818182
87
0.663745
79dc47eea0d2277e80b8015449551a4eef9526a7
235
py
Python
terrafirma/calendar/apps.py
AlexandraAlter/django-terrafirma
afce5946f173aded2b4bfea78cf1b1034ec32272
[ "MIT" ]
null
null
null
terrafirma/calendar/apps.py
AlexandraAlter/django-terrafirma
afce5946f173aded2b4bfea78cf1b1034ec32272
[ "MIT" ]
null
null
null
terrafirma/calendar/apps.py
AlexandraAlter/django-terrafirma
afce5946f173aded2b4bfea78cf1b1034ec32272
[ "MIT" ]
null
null
null
from django.apps import AppConfig from django.utils.translation import gettext_lazy as _
26.111111
54
0.770213
79dd7101e6c2dbca64177e87d238cd48079dd45d
6,466
py
Python
resources/lib/auth_routes.py
t43pasdf/plugin.video.espn_3
f111edf14f0344d248f0a62de3da4f15afc7d354
[ "MIT" ]
4
2019-10-18T01:27:48.000Z
2020-02-14T05:45:29.000Z
resources/lib/auth_routes.py
t43pasdf/plugin.video.espn_3
f111edf14f0344d248f0a62de3da4f15afc7d354
[ "MIT" ]
3
2020-02-10T05:58:30.000Z
2020-09-28T22:42:04.000Z
resources/lib/auth_routes.py
t43pasdf/plugin.video.espn_3
f111edf14f0344d248f0a62de3da4f15afc7d354
[ "MIT" ]
null
null
null
# Copyright 2019 https://github.com/kodi-addons # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, p...
38.951807
115
0.665636
79df34a92c6aa109d6fb09a1fbe24d44b829d071
3,440
py
Python
app.py
rbSparky/umit-hack-backend
a9402d35d07693b78498a2ba2d4ff08fcb6cab44
[ "MIT" ]
null
null
null
app.py
rbSparky/umit-hack-backend
a9402d35d07693b78498a2ba2d4ff08fcb6cab44
[ "MIT" ]
null
null
null
app.py
rbSparky/umit-hack-backend
a9402d35d07693b78498a2ba2d4ff08fcb6cab44
[ "MIT" ]
null
null
null
import pickle from flask import Flask, request, jsonify, session from flask_cors import CORS, cross_origin import sklearn from sklearn.decomposition import TruncatedSVD import pandas as pd import numpy as np ranks = [] app = Flask(__name__) cors = CORS(app) app.config['CORS_HEADERS'] = 'Content-Type' if __name__ == ...
23.888889
127
0.563081
8dab135854cbf1898ed8a1808f3a10f5e2425b1b
235
py
Python
ccr/urls.py
nikhil96sher/coding_companion
bb5d9596dff74e342ca07b6d95c37fb491877224
[ "MIT" ]
12
2015-12-30T06:31:57.000Z
2017-12-26T01:42:18.000Z
ccr/urls.py
nikhilsheoran96/coding_companion
bb5d9596dff74e342ca07b6d95c37fb491877224
[ "MIT" ]
null
null
null
ccr/urls.py
nikhilsheoran96/coding_companion
bb5d9596dff74e342ca07b6d95c37fb491877224
[ "MIT" ]
5
2015-12-30T07:06:22.000Z
2019-04-24T05:46:01.000Z
from django.conf.urls import patterns,url from ccr import views urlpatterns=patterns( '', url(r'^$',views.main), url(r'^save/',views.save), url(r'^template/',views.template), url(r'^compile/',views.compile), url(r'^run/',views.run), )
21.363636
41
0.702128
8daf3e4c8966ce1a6bddee1ab26929f7ffa13135
9,354
py
Python
tools/Project/UI_ModuleMgrDlg.py
wzhengsen/engine-x
f398b94a9a5bb9645c16d12d82d6366589db4e21
[ "MIT" ]
null
null
null
tools/Project/UI_ModuleMgrDlg.py
wzhengsen/engine-x
f398b94a9a5bb9645c16d12d82d6366589db4e21
[ "MIT" ]
null
null
null
tools/Project/UI_ModuleMgrDlg.py
wzhengsen/engine-x
f398b94a9a5bb9645c16d12d82d6366589db4e21
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'UI/ModuleMgrDlg.ui' # # Created by: PyQt5 UI code generator 5.15.2 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCo...
55.023529
123
0.715843
8db06f6b303411c51b7e7ee7f461a4a3b7ef48b6
3,941
py
Python
spowtd/transmissivity.py
alex-cobb/python-spowtd
b841ce63a4ed168a6e1b4e17b689d8be9dc11318
[ "BSD-2-Clause" ]
null
null
null
spowtd/transmissivity.py
alex-cobb/python-spowtd
b841ce63a4ed168a6e1b4e17b689d8be9dc11318
[ "BSD-2-Clause" ]
null
null
null
spowtd/transmissivity.py
alex-cobb/python-spowtd
b841ce63a4ed168a6e1b4e17b689d8be9dc11318
[ "BSD-2-Clause" ]
2
2021-10-14T14:38:43.000Z
2022-03-21T16:21:06.000Z
"""Transmissivity classes """ import numpy as np import scipy.integrate as integrate_mod import spowtd.spline as spline_mod def create_transmissivity_function(parameters): """Create a transmissivity function Returns a callable object that returns transmissivity at a given water level. The class of t...
34.269565
73
0.664298
8db1c50adc29a6ffdf16eef7eb3f4db1957e630c
1,737
py
Python
python/hillEquations.py
dhlee4/Tinkercell_new
c4d1848bbb905f0e1f9e011837268ac80aff8711
[ "BSD-3-Clause" ]
1
2021-01-07T13:12:51.000Z
2021-01-07T13:12:51.000Z
python/hillEquations.py
dhlee4/Tinkercell_new
c4d1848bbb905f0e1f9e011837268ac80aff8711
[ "BSD-3-Clause" ]
7
2020-04-12T22:25:46.000Z
2020-04-13T07:50:40.000Z
python/hillEquations.py
daniel-anavaino/tinkercell
7896a7f809a0373ab3c848d25e3691d10a648437
[ "BSD-3-Clause" ]
2
2020-04-12T21:57:01.000Z
2020-04-12T21:59:29.000Z
""" category: Generate kinetics name: Hill equations description: automatically generate the equilibrium rate equation for transcription icon: hillequation.png menu: yes specific for: Coding tool: yes """ from tinkercell import * from tc2py import * items = tc_selectedItems(); genes = []; for i in range(0,items.lengt...
28.47541
88
0.62061