hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
d67a7120378a23a8121f142f10a4a3592d027dfb
3,812
py
Python
examples/vit_b16_imagenet_data_parallel/train.py
xdjiangkai/ColossalAI
4a3d3446b04065fa1c89b78cba673e96115c6325
[ "Apache-2.0" ]
null
null
null
examples/vit_b16_imagenet_data_parallel/train.py
xdjiangkai/ColossalAI
4a3d3446b04065fa1c89b78cba673e96115c6325
[ "Apache-2.0" ]
null
null
null
examples/vit_b16_imagenet_data_parallel/train.py
xdjiangkai/ColossalAI
4a3d3446b04065fa1c89b78cba673e96115c6325
[ "Apache-2.0" ]
1
2022-01-06T17:16:32.000Z
2022-01-06T17:16:32.000Z
import glob from math import log import os import colossalai from colossalai.nn.metric import Accuracy import torch from colossalai.context import ParallelMode from colossalai.core import global_context as gpc from colossalai.logging import get_dist_logger from colossalai.trainer import Trainer, hooks from colossalai....
31.245902
96
0.68468
0c6613c068ef14a27e8f030bf098763474c480df
2,045
py
Python
examples/frameworks/django/djangotest/settings.py
ashishmjn/gunicorn
d478968d5977073c190d640363a1f822e82c90f6
[ "MIT" ]
3
2018-03-06T16:00:45.000Z
2019-04-10T10:08:20.000Z
examples/frameworks/django/djangotest/settings.py
ashishmjn/gunicorn
d478968d5977073c190d640363a1f822e82c90f6
[ "MIT" ]
null
null
null
examples/frameworks/django/djangotest/settings.py
ashishmjn/gunicorn
d478968d5977073c190d640363a1f822e82c90f6
[ "MIT" ]
1
2019-10-08T05:51:29.000Z
2019-10-08T05:51:29.000Z
# Django settings for djangotest project. import platform PRODUCTION_MODE = platform.node().startswith('http') DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( ('benoitc', 'bchesneau@gmail.com'), ) MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': 't...
19.47619
69
0.658191
9359564121aaa7bcfc9ac0f0757e671d948f2fa8
2,745
py
Python
from_cpython/Lib/test/test_codecencodings_kr.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
1
2020-02-06T14:28:45.000Z
2020-02-06T14:28:45.000Z
from_cpython/Lib/test/test_codecencodings_kr.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
from_cpython/Lib/test/test_codecencodings_kr.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
1
2020-02-06T14:29:00.000Z
2020-02-06T14:29:00.000Z
# expected: fail # # test_codecencodings_kr.py # Codec encoding tests for ROK encodings. # from test import test_support from test import test_multibytecodec_support import unittest class Test_CP949(test_multibytecodec_support.TestBase, unittest.TestCase): encoding = 'cp949' tstring = test_multibytecodec_su...
39.214286
74
0.599271
9c6fe3d55e85f6641dc5bb3a357ed2a24414d1ac
797
py
Python
binarynum.py
AndyPham2341/DecimalNumberToBinaryNumber
28be6fc4b58de269b44acb20b11c2cb785944aef
[ "MIT" ]
null
null
null
binarynum.py
AndyPham2341/DecimalNumberToBinaryNumber
28be6fc4b58de269b44acb20b11c2cb785944aef
[ "MIT" ]
null
null
null
binarynum.py
AndyPham2341/DecimalNumberToBinaryNumber
28be6fc4b58de269b44acb20b11c2cb785944aef
[ "MIT" ]
null
null
null
import sys #check for two arguments: input file and output file if(len(sys.argv) != 3): print("usage: python binarynum.py inputfile outputfile") quit() #open the input file and get the numbers with open(sys.argv[1]) as f: numbers = [int(x) for x in f] #print the input number print("input number {0...
33.208333
77
0.649937
430e67965f07ed482108510eea49284b731f0b2a
837
py
Python
test/testTorchAttention.py
quyuanhang/match_in_chat_torch
36242c01b99c6ab0001a6084dbbdead6dae770d6
[ "Unlicense" ]
null
null
null
test/testTorchAttention.py
quyuanhang/match_in_chat_torch
36242c01b99c6ab0001a6084dbbdead6dae770d6
[ "Unlicense" ]
null
null
null
test/testTorchAttention.py
quyuanhang/match_in_chat_torch
36242c01b99c6ab0001a6084dbbdead6dae770d6
[ "Unlicense" ]
null
null
null
import torch import numpy as np import sys sys.path.append('../') from networks.torchCNN import TextCNN from networks.torchAttention import Attention if __name__ == '__main__': data1 = np.random.randint(200, size=[10, 25, 50]) data2 = np.random.randint(200, size=[10, 25, 50]) for i in range(1, 10): ...
23.25
63
0.647551
6ed7e6f43ed0d4cdefd36412ebbb657e29264f44
3,060
py
Python
torrt/trackers/anidub.py
st7105/torrt
97a3cb20a8caec5bba2132543343a82eb13aa182
[ "BSD-3-Clause" ]
82
2015-04-12T08:36:53.000Z
2022-01-17T07:51:42.000Z
torrt/trackers/anidub.py
st7105/torrt
97a3cb20a8caec5bba2132543343a82eb13aa182
[ "BSD-3-Clause" ]
79
2015-04-12T08:35:59.000Z
2022-02-10T12:05:26.000Z
torrt/trackers/anidub.py
st7105/torrt
97a3cb20a8caec5bba2132543343a82eb13aa182
[ "BSD-3-Clause" ]
26
2015-01-13T17:49:07.000Z
2021-07-20T10:02:46.000Z
from typing import List from ..base_tracker import GenericPrivateTracker class AniDUBTracker(GenericPrivateTracker): """This class implements .torrent files downloads for http://tr.anidub.com tracker.""" alias: str = 'tr.anidub.com' login_url: str = 'https://%(domain)s/' auth_cookie_name: str = 'dl...
32.210526
97
0.563399
3e1cc7cc8a0fb50b28e7c8152be5daa85bbee45a
744
py
Python
app/async_mode.py
ju1115kr/afoccert
d0278e36ed49305b9ea69b1ca614a058a1bc0658
[ "MIT" ]
10
2017-09-23T05:08:25.000Z
2021-01-06T05:21:40.000Z
server/app/async_mode.py
ju1115kr/hash-brown
93c5e636404608c7cba889cc9f9e0f3d3d0723b2
[ "Apache-2.0" ]
9
2018-06-27T10:29:37.000Z
2021-12-13T19:48:39.000Z
server/app/async_mode.py
ju1115kr/tell-your-story
dedd084734c4bc47ece16c08e44ab5e8accc8395
[ "Apache-2.0" ]
2
2018-07-04T16:54:20.000Z
2018-07-04T16:58:36.000Z
#!/usr/bin/env python # Set this variable to "threading", "eventlet" or "gevent" to test the # different async modes, or leave it set to None for the application to choose # the best option based on available packages. async_mode = None if async_mode is None: try: import eventlet async_mode = 'eve...
23.25
78
0.646505
8d4db4ea1c3a98f244d776622113a0984123e087
6,168
py
Python
django/db/backends/postgresql/schema.py
andreip/django
c61d1361d027a729d07d277879950ff133c19f4c
[ "PSF-2.0", "BSD-3-Clause" ]
1
2021-02-14T13:02:28.000Z
2021-02-14T13:02:28.000Z
django/db/backends/postgresql/schema.py
andreip/django
c61d1361d027a729d07d277879950ff133c19f4c
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
django/db/backends/postgresql/schema.py
andreip/django
c61d1361d027a729d07d277879950ff133c19f4c
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
import psycopg2 from django.db.backends.base.schema import BaseDatabaseSchemaEditor class DatabaseSchemaEditor(BaseDatabaseSchemaEditor): sql_alter_column_type = "ALTER COLUMN %(column)s TYPE %(type)s USING %(column)s::%(type)s" sql_create_sequence = "CREATE SEQUENCE %(sequence)s" sql_delete_sequence =...
47.083969
112
0.568256
8c67a224b3633b92644c835f4d18910d870816c4
2,972
py
Python
tests/softlearning/policies/uniform_policy_test.py
brickerino/tqc
b449f483871eb9972a168d9338e84399778d36cd
[ "MIT" ]
362
2019-04-16T22:45:21.000Z
2022-03-30T06:13:22.000Z
tests/softlearning/policies/uniform_policy_test.py
brickerino/tqc
b449f483871eb9972a168d9338e84399778d36cd
[ "MIT" ]
39
2019-05-03T04:21:14.000Z
2022-03-11T23:45:03.000Z
tests/softlearning/policies/uniform_policy_test.py
brickerino/tqc
b449f483871eb9972a168d9338e84399778d36cd
[ "MIT" ]
67
2019-04-17T03:35:29.000Z
2021-12-26T05:39:37.000Z
from collections import OrderedDict import pickle import numpy as np import tensorflow as tf import gym from softlearning.policies.uniform_policy import UniformPolicy class UniformPolicyTest(tf.test.TestCase): def setUp(self): self.env = gym.envs.make('Swimmer-v3') self.policy = UniformPolicy( ...
36.691358
77
0.698856
3e6321daf064d5c29fa7ee8c884c39a5a3c6d672
4,484
py
Python
population/utils/visualizing/genome_visualizer.py
RubenPants/RobotSimulator2D
334d7b9cab0edb22d4670cfaf39fbed76c351758
[ "MIT" ]
null
null
null
population/utils/visualizing/genome_visualizer.py
RubenPants/RobotSimulator2D
334d7b9cab0edb22d4670cfaf39fbed76c351758
[ "MIT" ]
null
null
null
population/utils/visualizing/genome_visualizer.py
RubenPants/RobotSimulator2D
334d7b9cab0edb22d4670cfaf39fbed76c351758
[ "MIT" ]
null
null
null
""" visualizer.py Create visualizations for the genomes present in the population. """ import os import sys from graphviz import Digraph from configs.genome_config import GenomeConfig from population.utils.genome_util.genes import GruNodeGene, SimpleNodeGene from population.utils.genome_util.genome import Genome fro...
35.587302
105
0.599688
2d32277f6d25d88937e6983c8ed7e6a7a25bdbff
595
py
Python
main.py
HenryFleming/cmd-lang
f98b34a8d79cdc92e91531b82b183176118faf25
[ "MIT" ]
null
null
null
main.py
HenryFleming/cmd-lang
f98b34a8d79cdc92e91531b82b183176118faf25
[ "MIT" ]
null
null
null
main.py
HenryFleming/cmd-lang
f98b34a8d79cdc92e91531b82b183176118faf25
[ "MIT" ]
null
null
null
#Copyright (c) 2020 HenryFleming #see LICENSE for more def parse_line(cmds,line): parts = [] last_part = "" skiping = False for char in line: if char==" "and not skiping: parts.append(last_part) last_part="" if not char==" " or skiping: if not char=='"': last_part+=char if...
21.25
57
0.568067
e00f9c871d21d82de7405d85a5e0d0139ff9c4c7
425
py
Python
env/Lib/site-packages/plotly/validators/scattergeo/marker/line/_colorsrc.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
11,750
2015-10-12T07:03:39.000Z
2022-03-31T20:43:15.000Z
env/Lib/site-packages/plotly/validators/scattergeo/marker/line/_colorsrc.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
2,951
2015-10-12T00:41:25.000Z
2022-03-31T22:19:26.000Z
env/Lib/site-packages/plotly/validators/scattergeo/marker/line/_colorsrc.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
2,623
2015-10-15T14:40:27.000Z
2022-03-28T16:05:50.000Z
import _plotly_utils.basevalidators class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): def __init__( self, plotly_name="colorsrc", parent_name="scattergeo.marker.line", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent...
30.357143
84
0.658824
9067a129687362ff0b25d652ccbc82f1c441eba5
691
py
Python
paw2018/userpicks/serializers.py
mdcollins80/PAW-api
ba40ec77301ac0c84a8ad95481323031b398168b
[ "MIT" ]
null
null
null
paw2018/userpicks/serializers.py
mdcollins80/PAW-api
ba40ec77301ac0c84a8ad95481323031b398168b
[ "MIT" ]
null
null
null
paw2018/userpicks/serializers.py
mdcollins80/PAW-api
ba40ec77301ac0c84a8ad95481323031b398168b
[ "MIT" ]
null
null
null
from .models import UserPick from rest_framework import serializers from paw2018.nflteams.serializers import TeamIDSerializer from paw2018.nflgames.serializers import GameIDSerializer from paw2018.userteams.serializers import UserTeamIDSerializer class UserPickSerializer(serializers.ModelSerializer): team = UserT...
31.409091
62
0.746744
716246e64ee3d8f51ed1c144e04badc2d1c41403
1,676
py
Python
allegation/tests/views/ui/test_redirect_mobile_urls_to_desktop.py
invinst/CPDB
c2d8ae8888b13d956cc1068742f18d45736d4121
[ "Apache-2.0" ]
16
2016-05-20T09:03:32.000Z
2020-09-13T14:23:06.000Z
allegation/tests/views/ui/test_redirect_mobile_urls_to_desktop.py
invinst/CPDB
c2d8ae8888b13d956cc1068742f18d45736d4121
[ "Apache-2.0" ]
2
2016-05-24T01:44:14.000Z
2016-06-17T22:19:45.000Z
allegation/tests/views/ui/test_redirect_mobile_urls_to_desktop.py
invinst/CPDB
c2d8ae8888b13d956cc1068742f18d45736d4121
[ "Apache-2.0" ]
2
2016-10-10T16:14:19.000Z
2020-10-26T00:17:02.000Z
from django.core.urlresolvers import reverse from allegation.factories import OfficerFactory, AllegationCategoryFactory, OfficerAllegationFactory from allegation.tests.utils.filter_tags_test_mixin import FilterTagsTestMixin from common.tests.core import BaseLiveTestCase from mobile.tests.mixins.mobile_visiting_url_mix...
41.9
102
0.78043
dfe8ef1e09278203f038a0d6af34fd46defefb23
215
py
Python
service/__init__.py
dabarrell/api-mirror
b308ac97931ea68bf87cdb8cc18e7d1e7a5e7d29
[ "MIT" ]
4
2018-03-20T09:19:25.000Z
2020-01-16T01:11:23.000Z
service/__init__.py
dabarrell/api-mirror
b308ac97931ea68bf87cdb8cc18e7d1e7a5e7d29
[ "MIT" ]
null
null
null
service/__init__.py
dabarrell/api-mirror
b308ac97931ea68bf87cdb8cc18e7d1e7a5e7d29
[ "MIT" ]
null
null
null
from flask import Flask from .errorhandlers import error_handlers from .config import configure_app app = Flask(__name__) import service.routes app.register_blueprint(error_handlers) configure_app(app)
19.545455
42
0.8
970fe676936d6f22bf5de2228eaca7cbc7a598fa
3,763
py
Python
examples/pipeline/local_baseline/pipeline-local-baseline-homo.py
qixiuai/FATE
6d50af65b96b5b226afda30dfa8e4a1e5746952d
[ "Apache-2.0" ]
null
null
null
examples/pipeline/local_baseline/pipeline-local-baseline-homo.py
qixiuai/FATE
6d50af65b96b5b226afda30dfa8e4a1e5746952d
[ "Apache-2.0" ]
null
null
null
examples/pipeline/local_baseline/pipeline-local-baseline-homo.py
qixiuai/FATE
6d50af65b96b5b226afda30dfa8e4a1e5746952d
[ "Apache-2.0" ]
null
null
null
# # Copyright 2019 The FATE 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 appli...
44.270588
120
0.714855
56c3b1a197613e4f6ecdecc0b4cfce7533c60602
1,516
py
Python
src/collectors/ipvs/test/testipvs.py
vimeo/Diamond
542c3640cf9453a2accd5e8aecfb7caabd26d785
[ "MIT" ]
2
2015-06-02T16:18:23.000Z
2020-07-28T06:07:29.000Z
src/collectors/ipvs/test/testipvs.py
vimeo/Diamond
542c3640cf9453a2accd5e8aecfb7caabd26d785
[ "MIT" ]
null
null
null
src/collectors/ipvs/test/testipvs.py
vimeo/Diamond
542c3640cf9453a2accd5e8aecfb7caabd26d785
[ "MIT" ]
null
null
null
#!/usr/bin/python # coding=utf-8 ################################################################################ from test import CollectorTestCase from test import get_collector_config from test import unittest from mock import Mock from mock import patch from diamond.collector import Collector from ipvs import IPV...
31.583333
80
0.551451
4450676459632886beb28ddf711d6de394da4677
4,741
py
Python
getdata.py
afaan5556/dash_weatherdata
536fc84b6de5d588585a69f743563f2210eaa21b
[ "MIT" ]
null
null
null
getdata.py
afaan5556/dash_weatherdata
536fc84b6de5d588585a69f743563f2210eaa21b
[ "MIT" ]
null
null
null
getdata.py
afaan5556/dash_weatherdata
536fc84b6de5d588585a69f743563f2210eaa21b
[ "MIT" ]
null
null
null
import pandas as pd import os import csv ## CONSTANTS # Directory where TMY data lives DIRECTORY = '../../../tmy_data/' # A file in the directory to access df columns DUMMYFILE = '690150TYA.csv' ## CATCHER / PRE-SETUP DATA STRUCTURES # Dictionary which will have keys:epw station name, values:dataframe DF_DICT = {} # ...
38.544715
126
0.72896
1923a3d27012dc0cf325e520774cc2e2f474d00a
755
py
Python
Cartwheel/lib/Python26/Lib/site-packages/OpenGL/GL/ATI/draw_buffers.py
MontyThibault/centre-of-mass-awareness
58778f148e65749e1dfc443043e9fc054ca3ff4d
[ "MIT" ]
null
null
null
Cartwheel/lib/Python26/Lib/site-packages/OpenGL/GL/ATI/draw_buffers.py
MontyThibault/centre-of-mass-awareness
58778f148e65749e1dfc443043e9fc054ca3ff4d
[ "MIT" ]
null
null
null
Cartwheel/lib/Python26/Lib/site-packages/OpenGL/GL/ATI/draw_buffers.py
MontyThibault/centre-of-mass-awareness
58778f148e65749e1dfc443043e9fc054ca3ff4d
[ "MIT" ]
null
null
null
'''OpenGL extension ATI.draw_buffers This module customises the behaviour of the OpenGL.raw.GL.ATI.draw_buffers to provide a more Python-friendly API ''' from OpenGL import platform, constants, constant, arrays from OpenGL import extensions, wrapper from OpenGL.GL import glget import ctypes from OpenGL.raw.GL.ATI.dr...
26.964286
57
0.750993
256bf6b7f0ebcc72134e9321060f0d35cd6bb064
3,399
py
Python
src/Final_Version/View/DisplayPowerups.py
qw33ha/T-Rex_Acceleration
491de89a6e532ac0cbda611a0ed3dd18fd858d11
[ "BSD-3-Clause" ]
2
2021-06-02T05:52:23.000Z
2021-07-12T05:56:49.000Z
src/Final_Version/View/DisplayPowerups.py
qw33ha/T-Rex_Acceleration
491de89a6e532ac0cbda611a0ed3dd18fd858d11
[ "BSD-3-Clause" ]
null
null
null
src/Final_Version/View/DisplayPowerups.py
qw33ha/T-Rex_Acceleration
491de89a6e532ac0cbda611a0ed3dd18fd858d11
[ "BSD-3-Clause" ]
null
null
null
"""@package docstring Documentation for this module. DisplayPowerups class Author: Dev^(enthusiases) This class is responsible for displaying powerups on the screen. """ import random import sys import pygame import time sys.path.insert(1, '../Model') import Powerups import DetectCollision ## # @file DisplayPowerup...
37.351648
135
0.693439
f582509eeb59ed601e3b76763b45506d50770431
1,576
py
Python
package.py
OSS-Pipeline/rez-oiio
7c3a2e9ff5107078f8b3ea7a1d52bc19512710ad
[ "MIT" ]
null
null
null
package.py
OSS-Pipeline/rez-oiio
7c3a2e9ff5107078f8b3ea7a1d52bc19512710ad
[ "MIT" ]
null
null
null
package.py
OSS-Pipeline/rez-oiio
7c3a2e9ff5107078f8b3ea7a1d52bc19512710ad
[ "MIT" ]
null
null
null
name = "oiio" version = "2.1.16.0" authors = [ "Sony Pictures Imageworks" ] description = \ """ OpenImageIO is a library for reading and writing images, and a bunch of related classes, utilities, and applications. There is a particular emphasis on formats and functionality used in professional, large...
23.878788
146
0.634518
75af6d2884c91b1342454f7381f33c0e5c1e0c83
5,179
py
Python
.venv/lib/python3.8/site-packages/fxcmpy/fxcmpy_oco_order.py
eo1989/VectorBTanalysis
bea3deaf2ee3fc114b308146f2af3e4f35f70197
[ "MIT" ]
null
null
null
.venv/lib/python3.8/site-packages/fxcmpy/fxcmpy_oco_order.py
eo1989/VectorBTanalysis
bea3deaf2ee3fc114b308146f2af3e4f35f70197
[ "MIT" ]
null
null
null
.venv/lib/python3.8/site-packages/fxcmpy/fxcmpy_oco_order.py
eo1989/VectorBTanalysis
bea3deaf2ee3fc114b308146f2af3e4f35f70197
[ "MIT" ]
null
null
null
# # fxcmpy_oco_order -- A Python Wrapper Class for the # RESTful API as provided by FXCM Forex Capital Markets Ltd. # # Proof-of-Concept | Prototype Version for Illustration # by The Python Quants GmbH # # The codes contained herein come without warranties or representations, # to the extent permitted by applicable law...
33.412903
79
0.603012
6895a0d07c0afff8ab3687d9437d2fbc7dd2ef7c
13,972
py
Python
contrib/devtools/github-merge.py
doriancoins/doriancoin
1ff8a0324b642c030825d08bcc298fcde04dd7ec
[ "MIT" ]
null
null
null
contrib/devtools/github-merge.py
doriancoins/doriancoin
1ff8a0324b642c030825d08bcc298fcde04dd7ec
[ "MIT" ]
null
null
null
contrib/devtools/github-merge.py
doriancoins/doriancoin
1ff8a0324b642c030825d08bcc298fcde04dd7ec
[ "MIT" ]
1
2017-12-04T07:18:09.000Z
2017-12-04T07:18:09.000Z
#!/usr/bin/env python3 # Copyright (c) 2016-2017 Doriancoin Core Developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # This script will locally construct a merge commit for a pull request on a # github repository, inspect i...
42.21148
159
0.618236
620cd1036fe43e8de66fb18a726e1b2d007ec4b0
1,156
py
Python
var/spack/repos/builtin/packages/py-bcolz/package.py
MiddelkoopT/spack
4d94c4c4600f42a7a3bb3d06ec879140bc259304
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/py-bcolz/package.py
MiddelkoopT/spack
4d94c4c4600f42a7a3bb3d06ec879140bc259304
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/py-bcolz/package.py
MiddelkoopT/spack
4d94c4c4600f42a7a3bb3d06ec879140bc259304
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyBcolz(PythonPackage): """bcolz provides columnar and compressed data containers. Column ...
41.285714
95
0.723183
44b10159ef4b952622b625671005369da934be95
3,902
py
Python
HTMLtoCALS.py
silviolorusso/fromHTMLtoXML_InDesignFlavour
ec66ac70a0f4df573348b1f45e3b4573579df104
[ "MIT" ]
6
2015-08-30T20:35:23.000Z
2021-03-17T11:57:06.000Z
HTMLtoCALS.py
silviolorusso/fromHTMLtoXML_InDesignFlavour
ec66ac70a0f4df573348b1f45e3b4573579df104
[ "MIT" ]
null
null
null
HTMLtoCALS.py
silviolorusso/fromHTMLtoXML_InDesignFlavour
ec66ac70a0f4df573348b1f45e3b4573579df104
[ "MIT" ]
2
2020-11-05T05:50:09.000Z
2021-06-02T14:57:56.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ##################################### # from HTML Table to XML CALS Table # ##################################### ### Open libraries from bs4 import BeautifulSoup import sys ### Functions def calcRowsNumber(soup): rows = soup.find_all('tr') return len(rows) def calcCo...
26.726027
102
0.722706
267cfd60c5c2688d3fb0beb089b0028f176d6977
410
py
Python
utils/qtUtils.py
JamesQFreeman/MicEye
1290c071758ae4634cd374c8fd54c0d667952049
[ "MIT" ]
11
2021-09-23T07:42:57.000Z
2022-03-09T15:39:32.000Z
utils/qtUtils.py
JamesQFreeman/MicEye
1290c071758ae4634cd374c8fd54c0d667952049
[ "MIT" ]
1
2022-03-09T07:21:23.000Z
2022-03-09T07:21:23.000Z
utils/qtUtils.py
JamesQFreeman/MicEye
1290c071758ae4634cd374c8fd54c0d667952049
[ "MIT" ]
1
2022-03-09T15:39:33.000Z
2022-03-09T15:39:33.000Z
from PyQt5.QtWidgets import (QApplication, QWidget, QGroupBox, QInputDialog, QDialog, QPushButton, QLabel, QVBoxLayout, QHBoxLayout, QDesktopWidget, QLineEdit) def moveToCenter(widget: QWidget): qtRectangle = widget.frameGeometry() centerPoint = QDesktopWidget().availableGeometry(...
41
98
0.729268
2dc2bc2ef57b74144e1d5f54dc0ccf0a9cff9f76
2,426
py
Python
examples/mesh/experiments/test_mask.py
SebastianoF/pyro2
9d1787c2ee25d735a414db3da8c00287743a6fde
[ "BSD-3-Clause" ]
151
2018-08-14T12:52:22.000Z
2022-03-29T07:57:01.000Z
examples/mesh/experiments/test_mask.py
SebastianoF/pyro2
9d1787c2ee25d735a414db3da8c00287743a6fde
[ "BSD-3-Clause" ]
40
2015-03-25T15:45:44.000Z
2018-07-30T18:48:47.000Z
examples/mesh/experiments/test_mask.py
SebastianoF/pyro2
9d1787c2ee25d735a414db3da8c00287743a6fde
[ "BSD-3-Clause" ]
56
2018-10-10T16:54:59.000Z
2022-02-06T08:48:52.000Z
#!/usr/bin/env python3 from mesh import patch import mesh.boundary as bnd import numpy as np import time class Mask(object): def __init__(self, nx, ny, ng): self.nx = nx self.ny = ny self.ng = ng ilo = ng ihi = ng+nx-1 jlo = ng jhi = ng+ny-1 #...
22.256881
69
0.578318
7b4516b8a47b38b990bc83815aa4686db70f9acf
1,847
py
Python
spotdl/search/spotifyClient.py
ksu-is/spotify-downloader
1a08703b8beff98540d6a7052d8393fe2c6fa551
[ "MIT" ]
6
2021-05-27T08:25:48.000Z
2022-02-08T21:37:24.000Z
spotdl/search/spotifyClient.py
ksu-is/spotify-downloader
1a08703b8beff98540d6a7052d8393fe2c6fa551
[ "MIT" ]
null
null
null
spotdl/search/spotifyClient.py
ksu-is/spotify-downloader
1a08703b8beff98540d6a7052d8393fe2c6fa551
[ "MIT" ]
1
2021-04-06T01:03:40.000Z
2021-04-06T01:03:40.000Z
from spotipy import Spotify from spotipy.oauth2 import SpotifyClientCredentials class Singleton(type): """ Singleton metaclass for SpotifyClient. Ensures that SpotifyClient is not instantiated without prior initialization. Every other instantiation of SpotifyClient will return the same instance. "...
34.203704
90
0.674607
ed14a7e338972aa8743bbca2cd32139fcb5ae7c7
886
py
Python
Scripts/Log/CustomThreads/Utils/Utils_function.py
Sk3pper/AASSS-PoC
67630221f029df0f1fbc598ad3c791d0cd429544
[ "CC-BY-4.0" ]
null
null
null
Scripts/Log/CustomThreads/Utils/Utils_function.py
Sk3pper/AASSS-PoC
67630221f029df0f1fbc598ad3c791d0cd429544
[ "CC-BY-4.0" ]
null
null
null
Scripts/Log/CustomThreads/Utils/Utils_function.py
Sk3pper/AASSS-PoC
67630221f029df0f1fbc598ad3c791d0cd429544
[ "CC-BY-4.0" ]
null
null
null
import os # scrive i dati in un file # se presente gli appende # se non presente crea il file da zero import socket def write_data(path_file_name, data): """ :type path_file_name: str :type data: str """ # file does not exist if not os.path.isfile(path_file_name): with open(path_file...
26.058824
83
0.590293
1d9a2f0a1b0d130b181b04ca90fd470c80b1097a
386
py
Python
ots/main/migrations/0014_alter_userblog_title.py
hasibarrafiul/Travel-Guide-WebApp
f160ce1c4ef95b6e08abcaebf2c702bfdecacd6f
[ "MIT" ]
3
2021-12-17T22:22:07.000Z
2022-01-25T13:28:10.000Z
ots/main/migrations/0014_alter_userblog_title.py
hasibarrafiul/Travel-Guide-WebApp
f160ce1c4ef95b6e08abcaebf2c702bfdecacd6f
[ "MIT" ]
8
2021-11-11T10:43:35.000Z
2022-01-08T23:27:33.000Z
ots/main/migrations/0014_alter_userblog_title.py
hasibarrafiul/Travel-Guide-WebApp
f160ce1c4ef95b6e08abcaebf2c702bfdecacd6f
[ "MIT" ]
3
2021-11-20T18:35:59.000Z
2022-02-15T13:35:47.000Z
# Generated by Django 3.2.6 on 2021-12-29 18:39 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('main', '0013_userblog'), ] operations = [ migrations.AlterField( model_name='userblog', name='Title', fi...
20.315789
62
0.590674
8a9994ff2dc5fb720fc68dedca6d0074c97ae312
883
py
Python
users/migrations/0006_auto_20210511_0722.py
boussier/CCPSMV_dashboard
5a0ac667713f7fd9e3e93c2a83e3da6f3657323f
[ "MIT" ]
null
null
null
users/migrations/0006_auto_20210511_0722.py
boussier/CCPSMV_dashboard
5a0ac667713f7fd9e3e93c2a83e3da6f3657323f
[ "MIT" ]
null
null
null
users/migrations/0006_auto_20210511_0722.py
boussier/CCPSMV_dashboard
5a0ac667713f7fd9e3e93c2a83e3da6f3657323f
[ "MIT" ]
null
null
null
# Generated by Django 3.2 on 2021-05-11 07:22 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('users', '0005_auto_20210511_0710'), ] operations = [ migrations.AlterModelOptions( name='customus...
30.448276
161
0.628539
3147d91c77d17db2b99d4cfd500bee861ca9a08a
179
py
Python
accounts/views.py
knyghty/bord
b5c607a6d4ee05255d8e6e77a531b0481966860b
[ "MIT" ]
null
null
null
accounts/views.py
knyghty/bord
b5c607a6d4ee05255d8e6e77a531b0481966860b
[ "MIT" ]
4
2016-11-05T02:53:02.000Z
2018-01-13T19:57:24.000Z
accounts/views.py
knyghty/bord
b5c607a6d4ee05255d8e6e77a531b0481966860b
[ "MIT" ]
null
null
null
from registration.backends.simple.views import RegistrationView from .forms import UserCreationForm class RegistrationView(RegistrationView): form_class = UserCreationForm
22.375
63
0.843575
fdb96d8f267d03fdb9160fbb1476f44ddbb1a674
3,121
py
Python
beanie/models/nominal_account_category_input.py
altoyield/python-beanieclient
448b8dd328054eaf32dd7d0bdff700e603b5c27d
[ "Apache-2.0" ]
null
null
null
beanie/models/nominal_account_category_input.py
altoyield/python-beanieclient
448b8dd328054eaf32dd7d0bdff700e603b5c27d
[ "Apache-2.0" ]
null
null
null
beanie/models/nominal_account_category_input.py
altoyield/python-beanieclient
448b8dd328054eaf32dd7d0bdff700e603b5c27d
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Beanie ERP API An API specification for interacting with the Beanie ERP system # noqa: E501 OpenAPI spec version: 0.8 Contact: dev@bean.ie Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from beanie.mod...
26.905172
92
0.565203
674814800745c049e6594b81cfaa9a460acb354a
6,543
py
Python
src/watchdog/observers/fsevents.py
yotabits/python-watchdog
3e111e3a50d06ac2fba2c94a9406c7e04c49bf9b
[ "ECL-2.0", "Apache-2.0" ]
31
2016-11-24T11:17:46.000Z
2022-02-14T22:45:39.000Z
src/watchdog/observers/fsevents.py
yotabits/python-watchdog
3e111e3a50d06ac2fba2c94a9406c7e04c49bf9b
[ "ECL-2.0", "Apache-2.0" ]
8
2017-11-17T03:25:29.000Z
2021-05-04T00:32:28.000Z
src/watchdog/observers/fsevents.py
yotabits/python-watchdog
3e111e3a50d06ac2fba2c94a9406c7e04c49bf9b
[ "ECL-2.0", "Apache-2.0" ]
12
2017-01-23T08:58:41.000Z
2019-04-30T03:35:31.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2011 Yesudeep Mangalapilly <yesudeep@gmail.com> # Copyright 2012 Google, Inc. # # 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 # # ...
37.820809
82
0.631667
d202291fe501bf207705ef5fda9e48ae11943a63
2,692
py
Python
examples/Palau_HYCOM/make_bdry_file.py
ESMG/PyCNAL_legacy
a4f6547bce872068a5bb5751231017bc3e4a4503
[ "BSD-3-Clause" ]
null
null
null
examples/Palau_HYCOM/make_bdry_file.py
ESMG/PyCNAL_legacy
a4f6547bce872068a5bb5751231017bc3e4a4503
[ "BSD-3-Clause" ]
3
2018-01-23T23:23:24.000Z
2018-02-07T22:37:28.000Z
examples/Palau_HYCOM/make_bdry_file.py
ESMG/PyCNAL_legacy
a4f6547bce872068a5bb5751231017bc3e4a4503
[ "BSD-3-Clause" ]
null
null
null
import matplotlib matplotlib.use('Agg') import subprocess import os import sys from multiprocessing import Pool from functools import partial import numpy as np #import pdb #increase the maximum number of open files allowed #import resource #resource.setrlimit(resource.RLIMIT_NOFILE, (3000,-1)) import pycnal import ...
32.829268
89
0.677935
618528c70a84476e40d387b613e773eb1b9841ff
21
py
Python
aliyun-python-sdk-oos/aliyunsdkoos/__init__.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
1,001
2015-07-24T01:32:41.000Z
2022-03-25T01:28:18.000Z
aliyun-python-sdk-oos/aliyunsdkoos/__init__.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
363
2015-10-20T03:15:00.000Z
2022-03-08T12:26:19.000Z
aliyun-python-sdk-oos/aliyunsdkoos/__init__.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
682
2015-09-22T07:19:02.000Z
2022-03-22T09:51:46.000Z
__version__ = '1.5.0'
21
21
0.666667
fdd834377560b818e5d8adf51e4f042776881e72
982
py
Python
kapua-client/python-client/test/test_device_configuration.py
liang-faan/SmartIOT-Diec
8336a4b558295295f10a82cf350d8b7ff3fb9f5c
[ "MIT" ]
5
2019-05-30T02:55:16.000Z
2020-03-03T14:18:23.000Z
kapua-client/python-client/test/test_device_configuration.py
liang-faan/SmartIOT-Diec
8336a4b558295295f10a82cf350d8b7ff3fb9f5c
[ "MIT" ]
3
2019-12-27T00:53:23.000Z
2020-02-17T05:29:19.000Z
kapua-client/python-client/test/test_device_configuration.py
liang-faan/SmartIOT-Diec
8336a4b558295295f10a82cf350d8b7ff3fb9f5c
[ "MIT" ]
4
2019-06-04T06:26:14.000Z
2021-01-07T04:25:32.000Z
# coding: utf-8 """ Eclipse Kapua REST API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import ...
23.95122
119
0.721996
27d14c0ac221dc531e7a779e5dcef3dbcc2e684d
11,292
py
Python
web/src/p2k16/core/membership_management.py
eliasbakken/p2k16
44d443ed88932b6d24a77f87074e550195cce6b6
[ "MIT" ]
null
null
null
web/src/p2k16/core/membership_management.py
eliasbakken/p2k16
44d443ed88932b6d24a77f87074e550195cce6b6
[ "MIT" ]
null
null
null
web/src/p2k16/core/membership_management.py
eliasbakken/p2k16
44d443ed88932b6d24a77f87074e550195cce6b6
[ "MIT" ]
null
null
null
import logging from datetime import datetime, timedelta from sqlalchemy import text, func from typing import Mapping, Optional import stripe from p2k16.core import P2k16UserException, mail from p2k16.core.models import db, Account, StripePayment, model_support, Membership, StripeCustomer, Company logger = logging.get...
33.707463
119
0.632483
a414e1ae55f870fb74da9eba626a861260660ea8
30,233
py
Python
scrape.py
zeroc0d3/ec2instances.info
fbb48c6f494d4561422077a201fbdc2dee774d99
[ "MIT" ]
3,046
2015-01-06T11:55:26.000Z
2021-02-10T15:21:27.000Z
scrape.py
zeroc0d3/ec2instances.info
fbb48c6f494d4561422077a201fbdc2dee774d99
[ "MIT" ]
435
2015-01-11T00:57:25.000Z
2021-02-10T11:14:56.000Z
scrape.py
zeroc0d3/ec2instances.info
fbb48c6f494d4561422077a201fbdc2dee774d99
[ "MIT" ]
442
2015-01-10T23:47:01.000Z
2021-02-10T13:18:08.000Z
#!/usr/bin/env python from lxml import etree import re import json import locale import ec2 from six.moves.urllib import request as urllib2 # Following advice from https://stackoverflow.com/a/1779324/216138 # The locale must be installed in the system, and it must be one where ',' is # the thousans separator and '.' ...
38.960052
124
0.588562
09a181fbbe5b1f14e40f67c6b223e8eb7fd104df
19,049
py
Python
tests/test_integ_builder_osbs.py
hmlnarik/cekit
74df8c5258a3e843a82aa9ffa4b7c94781ee3433
[ "MIT" ]
null
null
null
tests/test_integ_builder_osbs.py
hmlnarik/cekit
74df8c5258a3e843a82aa9ffa4b7c94781ee3433
[ "MIT" ]
null
null
null
tests/test_integ_builder_osbs.py
hmlnarik/cekit
74df8c5258a3e843a82aa9ffa4b7c94781ee3433
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- # pylint: disable=protected-access import logging import os import shutil import subprocess import yaml import pytest from click.testing import CliRunner from cekit.cli import Cekit, Map, cli from cekit.tools import Chdir from cekit.config import Config from cekit.errors import CekitError...
36.353053
302
0.665914
66d138ec3e9d5275e449721b358aeb13b90600e2
2,398
py
Python
skywalking/plugins/sw_urllib_request.py
Shikugawa/skywalking-python
49e5cdf3572be8c52dbf155db4d221d271b578c2
[ "Apache-2.0" ]
null
null
null
skywalking/plugins/sw_urllib_request.py
Shikugawa/skywalking-python
49e5cdf3572be8c52dbf155db4d221d271b578c2
[ "Apache-2.0" ]
null
null
null
skywalking/plugins/sw_urllib_request.py
Shikugawa/skywalking-python
49e5cdf3572be8c52dbf155db4d221d271b578c2
[ "Apache-2.0" ]
null
null
null
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
36.333333
99
0.660967
9046434d7ada39a6d93b568301729cc00d1397ee
3,264
py
Python
maza/modules/exploits/routers/tplink/archer_c2_c20i_rce.py
ArturSpirin/maza
56ae6325c08bcedd22c57b9fe11b58f1b38314ca
[ "MIT" ]
2
2020-02-06T20:24:31.000Z
2022-03-08T19:07:16.000Z
maza/modules/exploits/routers/tplink/archer_c2_c20i_rce.py
ArturSpirin/maza
56ae6325c08bcedd22c57b9fe11b58f1b38314ca
[ "MIT" ]
null
null
null
maza/modules/exploits/routers/tplink/archer_c2_c20i_rce.py
ArturSpirin/maza
56ae6325c08bcedd22c57b9fe11b58f1b38314ca
[ "MIT" ]
null
null
null
import time from maza.core.exploit import * from maza.core.http.http_client import HTTPClient class Exploit(HTTPClient): __info__ = { "name": "TP-Link Archer C2 & C20i", "description": "Exploits TP-Link Archer C2 and Archer C20i remote code execution vulnerability " "that al...
30.792453
116
0.531863
34afd19310fd4a206f92e1e972abe21243788f44
4,046
py
Python
tests/components/homematicip_cloud/test_hap.py
petewill/home-assistant
5859dba4344f05fb8774aa1207e47ac28f627a67
[ "Apache-2.0" ]
3
2020-01-21T18:09:09.000Z
2022-01-17T08:06:03.000Z
tests/components/homematicip_cloud/test_hap.py
petewill/home-assistant
5859dba4344f05fb8774aa1207e47ac28f627a67
[ "Apache-2.0" ]
39
2016-12-16T12:40:34.000Z
2017-02-13T17:53:42.000Z
tests/components/homematicip_cloud/test_hap.py
petewill/home-assistant
5859dba4344f05fb8774aa1207e47ac28f627a67
[ "Apache-2.0" ]
3
2020-01-11T15:44:13.000Z
2022-01-17T08:06:09.000Z
"""Test HomematicIP Cloud accesspoint.""" from unittest.mock import Mock, patch import pytest from homeassistant.exceptions import ConfigEntryNotReady from homeassistant.components.homematicip_cloud import hap as hmipc from homeassistant.components.homematicip_cloud import const, errors from tests.common import mock_...
32.629032
81
0.681167
fb0d7fb79c0bbb54318ea5c44bfcf7b3db23a62c
434
py
Python
redirink/links/tests/conftest.py
Egor4ik325/redirink
17ef85f48145ee6112f2fcbab60dcd9d65ba78bf
[ "MIT" ]
null
null
null
redirink/links/tests/conftest.py
Egor4ik325/redirink
17ef85f48145ee6112f2fcbab60dcd9d65ba78bf
[ "MIT" ]
null
null
null
redirink/links/tests/conftest.py
Egor4ik325/redirink
17ef85f48145ee6112f2fcbab60dcd9d65ba78bf
[ "MIT" ]
1
2021-12-31T00:46:31.000Z
2021-12-31T00:46:31.000Z
import factory import pytest from redirink.links.tests.factories import LinkFactory @pytest.fixture def link_dict(): """Return the dictionary of all model fields with the actual values not serial values.""" return factory.build(dict, FACTORY_CLASS=LinkFactory) @pytest.fixture def link_data(link_dict): ...
22.842105
93
0.735023
7ac2e6c22490ee815a257fa12933a5caf6d3c0b9
1,658
py
Python
iaso/views.py
BLSQ/iaso-copy
85fb17f408c15e8c2d730416d1312f58f8db39b7
[ "MIT" ]
null
null
null
iaso/views.py
BLSQ/iaso-copy
85fb17f408c15e8c2d730416d1312f58f8db39b7
[ "MIT" ]
null
null
null
iaso/views.py
BLSQ/iaso-copy
85fb17f408c15e8c2d730416d1312f58f8db39b7
[ "MIT" ]
1
2022-03-23T16:44:12.000Z
2022-03-23T16:44:12.000Z
from django.shortcuts import get_object_or_404, render from django.contrib.auth.decorators import resolve_url from django.contrib.auth.views import redirect_to_login from django.http import HttpResponse, JsonResponse from django.conf import settings from iaso.models import Page, Account, TEXT, IFRAME from hat.__versio...
35.276596
117
0.69421
fae27094774bc243274a88087e74b242a3bc567d
4,565
py
Python
FE_code/assembler.py
leolapidus/Concrete_Design_Tool
7553f50d3db05e3a6c290e35acdc5d8bd1c51130
[ "BSD-4-Clause" ]
1
2019-06-12T13:23:28.000Z
2019-06-12T13:23:28.000Z
FE_code/assembler.py
leolapidus/Concrete_Design_Tool
7553f50d3db05e3a6c290e35acdc5d8bd1c51130
[ "BSD-4-Clause" ]
null
null
null
FE_code/assembler.py
leolapidus/Concrete_Design_Tool
7553f50d3db05e3a6c290e35acdc5d8bd1c51130
[ "BSD-4-Clause" ]
null
null
null
"""This module only contains the Assembler class. """ class Assembler(object): """An Assembler helps to generate system matrices/vectors from elements. Attributes ---------- dofs : list List of all dofs in the system. The Dofs with dirichlet constraints are at the end. dof_indices : dict ...
28.354037
98
0.583133
179fbb4c3310c8b0842511224bbf7254c01f4a1c
143,172
py
Python
renormalizer/tests/c2h4_para.py
shuaigroup/Renormalizer
963d52efdaa247320e781a96b64d41c9cadf6f0e
[ "Apache-2.0" ]
27
2019-09-02T08:35:01.000Z
2022-02-22T08:18:02.000Z
renormalizer/tests/c2h4_para.py
shuaigroup/Renormalizer
963d52efdaa247320e781a96b64d41c9cadf6f0e
[ "Apache-2.0" ]
54
2019-08-30T12:18:39.000Z
2022-03-20T13:23:07.000Z
renormalizer/tests/c2h4_para.py
shuaigroup/Renormalizer
963d52efdaa247320e781a96b64d41c9cadf6f0e
[ "Apache-2.0" ]
6
2019-09-10T03:25:28.000Z
2021-11-20T18:41:58.000Z
omega_std = [824.968669, 950.188990, 966.387896, 1050.809275, 1246.763896, 1369.382703, 1478.480613, 1672.569007, 3140.914743, 3156.837275, 3222.891944, 3248.709300] ff = [ [0,0 , 1.41288301794e-05], [0,0,0,0 , 2.22492076101e-08], [0,0,0,0,0,0 , -3.10551186628...
48.697959
130
0.465112
c029026da079103275fcf3846e9a3cb0b9572a9c
1,702
py
Python
Main.py
phaalonso/BotDiscord
228d14af94cf58dbea93428ac5fdd21d324dfcda
[ "Apache-2.0" ]
1
2018-03-14T17:45:32.000Z
2018-03-14T17:45:32.000Z
Main.py
phaalonso/BotDiscord
228d14af94cf58dbea93428ac5fdd21d324dfcda
[ "Apache-2.0" ]
null
null
null
Main.py
phaalonso/BotDiscord
228d14af94cf58dbea93428ac5fdd21d324dfcda
[ "Apache-2.0" ]
null
null
null
import discord import random import Secreto import builds TOKEN = Secreto.seu_token() # linkagem do token client = discord.Client() RhinoT = builds.Rhino(True) RhinoF = builds.Rhino(False) @client.event async def on_ready(): print('Bot ONLINE - Olá Mundo!') print(client.user.name) print(client.user.id)...
31.518519
139
0.625734
d617b1176bc67df38938dcb3ae4413ac2f1ad8de
10,834
py
Python
nipyapi/nifi/models/node_dto.py
esecules/nipyapi
e8a53b79a5e1a6b29446f43d2b23b6a3e60873f1
[ "Apache-2.0" ]
null
null
null
nipyapi/nifi/models/node_dto.py
esecules/nipyapi
e8a53b79a5e1a6b29446f43d2b23b6a3e60873f1
[ "Apache-2.0" ]
null
null
null
nipyapi/nifi/models/node_dto.py
esecules/nipyapi
e8a53b79a5e1a6b29446f43d2b23b6a3e60873f1
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ NiFi Rest Api The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, ...
26.684729
479
0.567011
cdb91177deccef3c40e9a2ed356617713369c20c
17,888
py
Python
models.py
xUndero/noc
9fb34627721149fcf7064860bd63887e38849131
[ "BSD-3-Clause" ]
1
2019-09-20T09:36:48.000Z
2019-09-20T09:36:48.000Z
models.py
ewwwcha/noc
aba08dc328296bb0e8e181c2ac9a766e1ec2a0bb
[ "BSD-3-Clause" ]
null
null
null
models.py
ewwwcha/noc
aba08dc328296bb0e8e181c2ac9a766e1ec2a0bb
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # --------------------------------------------------------------------- # NOC models lazy loading and utilities # --------------------------------------------------------------------- # Copyright (C) 2007-2019 The NOC Project # See LICENSE for details # ------------------------------------------...
49.142857
114
0.712768
86686b8c674ae561149c2ef3d92772719be3f215
3,698
py
Python
nrpcalc/base/recovery.py
TimothyStiles/nrpcalc
42ab25e929d472c2e808dd3bec6430bc80b42a06
[ "MIT" ]
6
2020-07-27T17:59:19.000Z
2022-03-18T03:33:17.000Z
nrpcalc/base/recovery.py
TimothyStiles/nrpcalc
42ab25e929d472c2e808dd3bec6430bc80b42a06
[ "MIT" ]
3
2020-07-17T23:10:36.000Z
2021-09-10T05:19:47.000Z
nrpcalc/base/recovery.py
TimothyStiles/nrpcalc
42ab25e929d472c2e808dd3bec6430bc80b42a06
[ "MIT" ]
3
2020-07-27T17:59:22.000Z
2021-02-08T15:47:28.000Z
import sys from . import vercov import networkx as nx from itertools import count from time import time from math import log10 def is_graph_empty(homology_graph): if not homology_graph.number_of_nodes(): return True return False def get_vercov_func(vercov_func, homology_graph): # TO D...
38.123711
169
0.642509
4a799428ea828ce7c8dea582838fee65f81ae2d1
1,185
py
Python
pridesport_work/gears/migrations/0001_initial.py
Trifon87/pridesport_work
9ab47d3c58915c2e791bf8a1fcb3ceee1d8de62c
[ "MIT" ]
null
null
null
pridesport_work/gears/migrations/0001_initial.py
Trifon87/pridesport_work
9ab47d3c58915c2e791bf8a1fcb3ceee1d8de62c
[ "MIT" ]
null
null
null
pridesport_work/gears/migrations/0001_initial.py
Trifon87/pridesport_work
9ab47d3c58915c2e791bf8a1fcb3ceee1d8de62c
[ "MIT" ]
null
null
null
# Generated by Django 3.1.3 on 2020-11-12 22:06 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Gear', fields=[ ...
34.852941
181
0.564557
6e366a2baca79ba6bf16ad8e7d157bbee126e0d2
1,206
py
Python
script/update-bus-routes.py
khanhhua/erlbot
4de8656449380d709d8ff44bb2261ab43010bcf3
[ "BSD-3-Clause" ]
6
2017-11-29T12:18:21.000Z
2022-03-18T14:00:19.000Z
script/update-bus-routes.py
khanhhua/erlbot
4de8656449380d709d8ff44bb2261ab43010bcf3
[ "BSD-3-Clause" ]
4
2017-11-13T05:51:00.000Z
2017-12-05T09:50:02.000Z
script/update-bus-routes.py
khanhhua/erlbot
4de8656449380d709d8ff44bb2261ab43010bcf3
[ "BSD-3-Clause" ]
1
2021-11-10T22:42:46.000Z
2021-11-10T22:42:46.000Z
import json import urllib from urlparse import urlparse import httplib2 as http #External library if __name__=="__main__": #Authentication parameters headers = { 'AccountKey' : os.environ['ACCOUNT_KEY'], 'accept' : 'application/json' } #this is by default with open("bus_routes-20171020.csv","w+") as outfil...
27.409091
100
0.575456
698b63067b837a24e2c8f62f0888f7830aca4142
13,859
py
Python
torchmin/newton.py
dhjpolymath/pytorch-minimize
cabe819c97c707fd9f3dc31f50c4520d9c39dfc5
[ "MIT" ]
null
null
null
torchmin/newton.py
dhjpolymath/pytorch-minimize
cabe819c97c707fd9f3dc31f50c4520d9c39dfc5
[ "MIT" ]
null
null
null
torchmin/newton.py
dhjpolymath/pytorch-minimize
cabe819c97c707fd9f3dc31f50c4520d9c39dfc5
[ "MIT" ]
null
null
null
from scipy.optimize import OptimizeResult from scipy.optimize.optimize import _status_message from scipy.sparse.linalg import eigsh from torch import Tensor import torch from .function import ScalarFunction from .line_search import strong_wolfe _status_message['cg_warn'] = "Warning: CG iterations didn't converge. The...
34.475124
82
0.544484
b7e9b2790a35f45f900adc2f88d72bc893f47284
343
py
Python
Leetcode/0377. Combination Sum IV/0377.py
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
Leetcode/0377. Combination Sum IV/0377.py
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
Leetcode/0377. Combination Sum IV/0377.py
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
class Solution: def combinationSum4(self, nums: List[int], target: int) -> int: dp = [1] + [-1] * target def dfs(target: int) -> int: if target < 0: return 0 if dp[target] != -1: return dp[target] dp[target] = sum(dfs(target - num) for num in nums) return dp[target] ...
22.866667
65
0.556851
4c64c84b4cd14435d519aaa5cc736e685ec2a153
3,237
py
Python
algorithms/ClassificationModel.py
ChenDarYen/FeatureLearningRotNet
5653d8c370fa1feded5d26156f452e83faad8287
[ "MIT" ]
null
null
null
algorithms/ClassificationModel.py
ChenDarYen/FeatureLearningRotNet
5653d8c370fa1feded5d26156f452e83faad8287
[ "MIT" ]
null
null
null
algorithms/ClassificationModel.py
ChenDarYen/FeatureLearningRotNet
5653d8c370fa1feded5d26156f452e83faad8287
[ "MIT" ]
null
null
null
from __future__ import print_function import numpy as np import torch import torch.nn as nn import torch.nn.parallel import torch.optim import os import torchnet as tnt import utils import PIL import pickle from tqdm import tqdm import time from . import Algorithm from pdb import set_trace as breakpoint def accurac...
34.806452
78
0.525795
6983eac9f52df8165d72ac2239636c4c6c7e1f84
315
py
Python
edi_835_parser/elements/service_modifier1.py
shalini1017/edi-835-parser
5c7c9549621a71cea893b37998e4bdea94822c5c
[ "MIT" ]
null
null
null
edi_835_parser/elements/service_modifier1.py
shalini1017/edi-835-parser
5c7c9549621a71cea893b37998e4bdea94822c5c
[ "MIT" ]
null
null
null
edi_835_parser/elements/service_modifier1.py
shalini1017/edi-835-parser
5c7c9549621a71cea893b37998e4bdea94822c5c
[ "MIT" ]
null
null
null
from typing import Optional from edi_835_parser.elements import Element from edi_835_parser.elements.utilities import split_element class ServiceModifier1(Element): def parser(self, value: str) -> Optional[str]: if value is not None: value = split_element(value) if len(value) > 2: return value[2]
22.5
59
0.75873
73d58b8c794c4b1591d1846b3827ad2b0454e1b4
19,958
py
Python
desktop/libs/notebook/src/notebook/api.py
ShahabT/hue
88f5a64c118385e8f4ac413e2f8ea1fd06f14094
[ "Apache-2.0" ]
null
null
null
desktop/libs/notebook/src/notebook/api.py
ShahabT/hue
88f5a64c118385e8f4ac413e2f8ea1fd06f14094
[ "Apache-2.0" ]
null
null
null
desktop/libs/notebook/src/notebook/api.py
ShahabT/hue
88f5a64c118385e8f4ac413e2f8ea1fd06f14094
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you ma...
32.771757
164
0.711194
242bfbe0a720164bbe3c5a651de7b96d08c2357d
585
py
Python
13_comprehension/comprehension_v5_dict.py
smartao/estudos_python
252a2e592ff929dfc6c06fc09b42cb7063ad0b5a
[ "MIT" ]
null
null
null
13_comprehension/comprehension_v5_dict.py
smartao/estudos_python
252a2e592ff929dfc6c06fc09b42cb7063ad0b5a
[ "MIT" ]
9
2019-11-15T14:21:43.000Z
2020-03-15T14:37:13.000Z
13_comprehension/comprehension_v5_dict.py
smartao/estudos_python
252a2e592ff929dfc6c06fc09b42cb7063ad0b5a
[ "MIT" ]
null
null
null
#!/usr/bin/python3 ''' Dicionarios = trocar parenteses por chaves i: é a chave do dicionario i * 2 = É o valor da chave de i ''' # Exemplo mais complexo dicionario = {f'Item {i}': i * 2 for i in range(10) if i % 2 == 0} print(dicionario) # Exemplo mais simples dicionario = {i: i * 2 for i in range(10) if i % 2 == 0...
23.4
76
0.68547
c14d2ec4a222593239451ebb9f35b8e93ab003c6
10,463
py
Python
sdk/python/pulumi_aws/lb/get_target_group.py
alexbowers/pulumi-aws
7dbdb03b1e4f7c0d51d5b5d17233ff4465c3eff5
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/lb/get_target_group.py
alexbowers/pulumi-aws
7dbdb03b1e4f7c0d51d5b5d17233ff4465c3eff5
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/lb/get_target_group.py
alexbowers/pulumi-aws
7dbdb03b1e4f7c0d51d5b5d17233ff4465c3eff5
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
39.935115
371
0.679442
33c3321195d1e5777731d673571e14e44bc85491
1,495
py
Python
app/migrations/0002_course_lesson.py
mehariogbe/teacher-vs-student
57a793bc73f297b03f024e8022c20bc5cbd4c46a
[ "MIT" ]
null
null
null
app/migrations/0002_course_lesson.py
mehariogbe/teacher-vs-student
57a793bc73f297b03f024e8022c20bc5cbd4c46a
[ "MIT" ]
null
null
null
app/migrations/0002_course_lesson.py
mehariogbe/teacher-vs-student
57a793bc73f297b03f024e8022c20bc5cbd4c46a
[ "MIT" ]
null
null
null
# Generated by Django 3.2.9 on 2021-11-11 17:07 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('app', '0001_initial'), ] operations = [ migrations.CreateModel( name='Course', fiel...
39.342105
119
0.58194
28ac893f00def96e9f2b904a648ac150c6dc31ec
20,085
py
Python
avocado/south_migrations/0036_initialize_indexable.py
rysdyk/avocado
655c1a766be616cb1357ddff8bc345ab61ae9e8a
[ "BSD-2-Clause" ]
null
null
null
avocado/south_migrations/0036_initialize_indexable.py
rysdyk/avocado
655c1a766be616cb1357ddff8bc345ab61ae9e8a
[ "BSD-2-Clause" ]
null
null
null
avocado/south_migrations/0036_initialize_indexable.py
rysdyk/avocado
655c1a766be616cb1357ddff8bc345ab61ae9e8a
[ "BSD-2-Clause" ]
2
2020-01-13T20:40:09.000Z
2020-01-16T15:26:11.000Z
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import DataMigration from django.db import models from avocado.models import DataField class Migration(DataMigration): def forwards(self, orm): for field in DataField.objects.all(): ...
91.712329
216
0.561364
75bc51cd9904221aae5638bda7cbf32c8d2b8ea9
6,318
py
Python
limelight/request.py
zulumarketing/python-limelight
72154f2c79d8a2475121624432f7533410cea486
[ "MIT" ]
1
2015-01-11T16:51:33.000Z
2015-01-11T16:51:33.000Z
limelight/request.py
zulumarketing/python-limelight
72154f2c79d8a2475121624432f7533410cea486
[ "MIT" ]
null
null
null
limelight/request.py
zulumarketing/python-limelight
72154f2c79d8a2475121624432f7533410cea486
[ "MIT" ]
1
2018-03-04T21:42:10.000Z
2018-03-04T21:42:10.000Z
# -*- coding: utf-8 -*- from copy import copy try: # noinspection PyCompatibility from urllib.parse import parse_qs except ImportError: # noinspection PyUnresolvedReferences,PyCompatibility from urlparse import parse_qs from requests import post, get, ConnectionError, Timeout from requests.packages.u...
36.310345
100
0.591168
8bfcfbc5b00bd1fe1723918ddeefb1d20c6eb27d
1,095
py
Python
orchestrator/__init__.py
florisie/orchestrator-core
7a5a997fc809cdf53dc942d1ee1fa945de4eb4d8
[ "Apache-2.0" ]
null
null
null
orchestrator/__init__.py
florisie/orchestrator-core
7a5a997fc809cdf53dc942d1ee1fa945de4eb4d8
[ "Apache-2.0" ]
null
null
null
orchestrator/__init__.py
florisie/orchestrator-core
7a5a997fc809cdf53dc942d1ee1fa945de4eb4d8
[ "Apache-2.0" ]
null
null
null
# Copyright 2019-2020 SURF. # 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, soft...
30.416667
118
0.730594
cc8a48a40eadd9323bd3947adc01d6fbad4d2034
122
py
Python
user_profile/urls.py
avinashkranjan/CGS-Centralized_Grading_System
60d63eb8266668f16258bd99eaef428933ea5ef7
[ "CC0-1.0" ]
null
null
null
user_profile/urls.py
avinashkranjan/CGS-Centralized_Grading_System
60d63eb8266668f16258bd99eaef428933ea5ef7
[ "CC0-1.0" ]
2
2020-09-05T12:29:37.000Z
2020-09-06T18:11:37.000Z
user_profile/urls.py
avinashkranjan/CGS-Centralized_Grading_System
60d63eb8266668f16258bd99eaef428933ea5ef7
[ "CC0-1.0" ]
1
2020-09-04T17:23:11.000Z
2020-09-04T17:23:11.000Z
from django.urls import path from . import views urlpatterns = [ path('', views.profile_view, name="profile_page"), ]
20.333333
54
0.713115
2e960f330785dc234e705ead1ad7117067078cfa
2,759
py
Python
utils/models/nuclear_models.py
diptanshumittal/FCO-ICML21
4a9f4456cb7e1c3a0646c9b91a0926ba87fc6a48
[ "Apache-2.0" ]
4
2021-06-07T18:34:52.000Z
2021-10-05T13:20:16.000Z
utils/models/nuclear_models.py
diptanshumittal/FCO-ICML21
4a9f4456cb7e1c3a0646c9b91a0926ba87fc6a48
[ "Apache-2.0" ]
null
null
null
utils/models/nuclear_models.py
diptanshumittal/FCO-ICML21
4a9f4456cb7e1c3a0646c9b91a0926ba87fc6a48
[ "Apache-2.0" ]
4
2021-12-20T18:40:31.000Z
2022-03-24T12:28:08.000Z
# Copyright 2021, Google LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
36.302632
140
0.707865
e3acb892793f78b2c48269ad99f0d51ec6234dac
160
py
Python
popupdict/speech/client/__init__.py
hantaotaohan/popup-dict
9eb05fd9797a14323c9b1166f916778b32e933bc
[ "MIT" ]
85
2018-02-23T07:16:27.000Z
2022-03-26T19:53:48.000Z
popupdict/speech/client/__init__.py
glMa7/popup-dict
dbf9121aa63d65095bd848a582595e1b03327418
[ "MIT" ]
12
2018-02-23T07:45:34.000Z
2020-03-10T03:20:03.000Z
popupdict/speech/client/__init__.py
glMa7/popup-dict
dbf9121aa63d65095bd848a582595e1b03327418
[ "MIT" ]
16
2018-01-02T02:07:50.000Z
2021-12-17T08:01:00.000Z
from .youdao import YoudaoSpeechClient valid_speech_clients = [ YoudaoSpeechClient, ] __all__ = [ 'valid_speech_clients', 'YoudaoSpeechClient', ]
14.545455
38
0.73125
3936c00edc4ee840c1f8ddaffbd26684fe995d81
4,673
py
Python
build/lib/infapy/v3/users.py
infapy/infapy
0cb11310130be70ce1b647aa5ede929c1eb9b2ce
[ "Apache-2.0" ]
null
null
null
build/lib/infapy/v3/users.py
infapy/infapy
0cb11310130be70ce1b647aa5ede929c1eb9b2ce
[ "Apache-2.0" ]
null
null
null
build/lib/infapy/v3/users.py
infapy/infapy
0cb11310130be70ce1b647aa5ede929c1eb9b2ce
[ "Apache-2.0" ]
1
2021-09-23T10:31:56.000Z
2021-09-23T10:31:56.000Z
import infapy import requests as re from infapy.exceptions import InvalidUserDetailsProvided class Users: def __init__(self,v3,v3BaseURL,v3SessionID): self._v3 = v3 self._v3BaseURL = v3BaseURL self._v3SessionID = v3SessionID def getAllUsers(self): """getAllUsers can be used...
39.268908
120
0.598117
d3f0638c6973bfe494c250cc9a8caaef71e23d21
4,647
py
Python
cloudbaseinit/tests/plugins/windows/test_ntpclient.py
andia10240/cloudbase-init
3c290194c139990f2a0e5747aa2f6c9554d26659
[ "Apache-2.0" ]
160
2015-01-09T14:45:59.000Z
2022-03-15T09:15:12.000Z
cloudbaseinit/tests/plugins/windows/test_ntpclient.py
andia10240/cloudbase-init
3c290194c139990f2a0e5747aa2f6c9554d26659
[ "Apache-2.0" ]
95
2015-01-25T15:22:05.000Z
2022-03-16T10:40:27.000Z
cloudbaseinit/tests/plugins/windows/test_ntpclient.py
andia10240/cloudbase-init
3c290194c139990f2a0e5747aa2f6c9554d26659
[ "Apache-2.0" ]
86
2015-01-19T17:19:35.000Z
2022-03-24T09:21:55.000Z
# Copyright 2014 Cloudbase Solutions Srl # # 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...
41.864865
78
0.665376
1bad382db7605ff8a40525fcd157de8652c15ffd
806
py
Python
statetrace_django/admin.py
SoCal-Software-Labs/statetrace_django
9fd1e58527ed8a129fd62ae733784c14ceb07b63
[ "MIT" ]
1
2021-07-29T13:36:43.000Z
2021-07-29T13:36:43.000Z
statetrace_django/admin.py
SoCal-Software-Labs/statetrace_django
9fd1e58527ed8a129fd62ae733784c14ceb07b63
[ "MIT" ]
null
null
null
statetrace_django/admin.py
SoCal-Software-Labs/statetrace_django
9fd1e58527ed8a129fd62ae733784c14ceb07b63
[ "MIT" ]
null
null
null
from django.contrib import admin from django.conf import settings class StateTraceAdmin(admin.ModelAdmin): change_form_template = "statetrace_django/change_form.html" def change_view(self, request, object_id, form_url="", extra_context=None): extra_context = { **(extra_context or {}), ...
33.583333
98
0.600496
0838e7fe42acc1d725502c48fdc45727b2676329
17,762
py
Python
logging/google/cloud/logging/_http.py
ricardolui/google-cloud-python
c82cd6bb7a42f61893ff29e0570249124a8aca61
[ "Apache-2.0" ]
1
2017-05-18T06:58:48.000Z
2017-05-18T06:58:48.000Z
logging/google/cloud/logging/_http.py
ricardolui/google-cloud-python
c82cd6bb7a42f61893ff29e0570249124a8aca61
[ "Apache-2.0" ]
null
null
null
logging/google/cloud/logging/_http.py
ricardolui/google-cloud-python
c82cd6bb7a42f61893ff29e0570249124a8aca61
[ "Apache-2.0" ]
1
2022-03-24T01:37:10.000Z
2022-03-24T01:37:10.000Z
# Copyright 2016 Google Inc. # # 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, ...
34.623782
90
0.631517
7b2d5fb3b1438ad07ed7138f6df36b16b805f2a3
12,087
py
Python
core/platform/models.py
steve7158/oppia
e2cae72fa5d3503c64d195f09d3460507697730c
[ "Apache-2.0" ]
1
2019-05-30T18:08:37.000Z
2019-05-30T18:08:37.000Z
core/platform/models.py
steve7158/oppia
e2cae72fa5d3503c64d195f09d3460507697730c
[ "Apache-2.0" ]
7
2019-08-20T08:30:43.000Z
2022-02-12T18:47:57.000Z
core/platform/models.py
steve7158/oppia
e2cae72fa5d3503c64d195f09d3460507697730c
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2014 The Oppia 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 requi...
34.732759
125
0.651526
02b15b14a927d4c9e6ce24934e01000c7d8632a6
15,467
py
Python
extra_tests/cffi_tests/cffi1/test_parse_c_type.py
nanjekyejoannah/pypy
e80079fe13c29eda7b2a6b4cd4557051f975a2d9
[ "Apache-2.0", "OpenSSL" ]
333
2015-08-08T18:03:38.000Z
2022-03-22T18:13:12.000Z
extra_tests/cffi_tests/cffi1/test_parse_c_type.py
nanjekyejoannah/pypy
e80079fe13c29eda7b2a6b4cd4557051f975a2d9
[ "Apache-2.0", "OpenSSL" ]
7
2020-02-16T16:49:05.000Z
2021-11-26T09:00:56.000Z
extra_tests/cffi_tests/cffi1/test_parse_c_type.py
nanjekyejoannah/pypy
e80079fe13c29eda7b2a6b4cd4557051f975a2d9
[ "Apache-2.0", "OpenSSL" ]
55
2015-08-16T02:41:30.000Z
2022-03-20T20:33:35.000Z
# Generated by pypy/tool/import_cffi.py import sys, re, os, py import cffi from cffi import cffi_opcode if '__pypy__' in sys.builtin_module_names: try: # pytest >= 4.0 py.test.skip("not available on pypy", allow_module_level=True) except TypeError: # older pytest py.test.skip("n...
41.355615
80
0.556669
490b1821a60873afc28790d035763d183d76ac2f
10,655
py
Python
tools/venachainWASM2c.py
xunzhu0507/BoAT-X-Framework
d84d1e0c244b4ff20c7f5b74f939f61a9811283d
[ "Apache-2.0" ]
1
2022-03-03T01:43:58.000Z
2022-03-03T01:43:58.000Z
tools/venachainWASM2c.py
xunzhu0507/BoAT-X-Framework
d84d1e0c244b4ff20c7f5b74f939f61a9811283d
[ "Apache-2.0" ]
null
null
null
tools/venachainWASM2c.py
xunzhu0507/BoAT-X-Framework
d84d1e0c244b4ff20c7f5b74f939f61a9811283d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright (C) 2018-2021 aitos.io # # 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 ...
39.029304
216
0.601877
22871b4d4f9d9306552c79445eb5455779d3b924
3,039
py
Python
volatility/volatility/plugins/mac/procdump.py
williamclot/MemoryVisualizer
2ff9f30f07519d6578bc36c12f8d08acc9cb4383
[ "MIT" ]
2
2018-07-16T13:30:40.000Z
2018-07-17T12:02:05.000Z
volatility/volatility/plugins/mac/procdump.py
williamclot/MemoryVisualizer
2ff9f30f07519d6578bc36c12f8d08acc9cb4383
[ "MIT" ]
null
null
null
volatility/volatility/plugins/mac/procdump.py
williamclot/MemoryVisualizer
2ff9f30f07519d6578bc36c12f8d08acc9cb4383
[ "MIT" ]
null
null
null
# Volatility # Copyright (C) 2007-2013 Volatility Foundation # # This file is part of Volatility. # # Volatility is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your o...
37.9875
138
0.60974
f75b98564bb5b3dbd67314573125a83ca579baf8
1,257
py
Python
Configuration/Generator/python/QCD_Pt_1800_2400_14TeV_TuneCP5_cfi.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
Configuration/Generator/python/QCD_Pt_1800_2400_14TeV_TuneCP5_cfi.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
Configuration/Generator/python/QCD_Pt_1800_2400_14TeV_TuneCP5_cfi.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms from Configuration.Generator.Pythia8CommonSettings_cfi import * from Configuration.Generator.MCTunes2017.PythiaCP5Settings_cfi import * generator = cms.EDFilter("Pythia8ConcurrentGeneratorFilter", pythiaHepMCVerbosity = cms.untracked.bool(False), ...
46.555556
89
0.546539
f25425f8463d4bd369f30c28a48bcd44b881fee0
1,270
py
Python
src/pyprobe/iteration.py
dittert/pyprobe
1b0d0e403645ed204332c70c8a89e094f860023a
[ "Apache-2.0" ]
null
null
null
src/pyprobe/iteration.py
dittert/pyprobe
1b0d0e403645ed204332c70c8a89e094f860023a
[ "Apache-2.0" ]
null
null
null
src/pyprobe/iteration.py
dittert/pyprobe
1b0d0e403645ed204332c70c8a89e094f860023a
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 import time __author__ = 'Dirk Dittert' class IllegalOrderException(Exception): """ Signals that some of the methods were called in an unexpected order. """ pass class Iteration(object): def __init__(self, period): """ :type period: int """ if peri...
27.608696
83
0.624409
d585da7f158e1991f18eef7d2e0ecc34b5b5b3e2
4,473
py
Python
utils.py
fzohra/despurold
bf526d608c38e29c025309f1e4925598f161286e
[ "Apache-2.0" ]
null
null
null
utils.py
fzohra/despurold
bf526d608c38e29c025309f1e4925598f161286e
[ "Apache-2.0" ]
null
null
null
utils.py
fzohra/despurold
bf526d608c38e29c025309f1e4925598f161286e
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 DeepMind Technologies Limited # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
38.230769
80
0.743796
cf507797237d25b174786b64c02891d0bf287bd8
2,312
py
Python
safe_transaction_service/contracts/clients/etherscan_api.py
peekpi/safe-transaction-service
d75008096e6ee9d87dcb274478777b4984f4b71e
[ "MIT" ]
4
2021-04-06T02:00:02.000Z
2022-03-29T17:45:10.000Z
safe_transaction_service/contracts/clients/etherscan_api.py
peekpi/safe-transaction-service
d75008096e6ee9d87dcb274478777b4984f4b71e
[ "MIT" ]
5
2021-06-09T18:47:49.000Z
2022-03-12T00:56:46.000Z
safe_transaction_service/contracts/clients/etherscan_api.py
peekpi/safe-transaction-service
d75008096e6ee9d87dcb274478777b4984f4b71e
[ "MIT" ]
4
2021-04-06T01:58:26.000Z
2022-01-10T18:14:08.000Z
import json import time from typing import Any, Dict, Optional from urllib.parse import urljoin import requests from gnosis.eth.ethereum_client import EthereumNetwork class EtherscanApiConfigurationError(Exception): pass class RateLimitError(Exception): pass class EtherscanApi: def __init__(self, ne...
34.507463
107
0.634516
0edc082d6980c6cca9aeb6f69acf40ca229a248a
1,501
py
Python
browser.py
gentlecolts/booru-browse
ab9821667d56df9b9730d15ffc2be735622a4c91
[ "MIT" ]
null
null
null
browser.py
gentlecolts/booru-browse
ab9821667d56df9b9730d15ffc2be735622a4c91
[ "MIT" ]
null
null
null
browser.py
gentlecolts/booru-browse
ab9821667d56df9b9730d15ffc2be735622a4c91
[ "MIT" ]
null
null
null
#!/usr/bin/python3 print("Loading resources") import gi gi.require_version("Gtk", "3.0") from gi.repository import Gtk, GObject, Gdk from mainwin import booruView #windows console is a pain about unicode #import os #if os.name=='nt': #import sys #import codecs #sys.stdout = codecs.getwriter('utf8')(sys.stdout) #sys.s...
22.073529
83
0.747502
83a412ef6de603eb75a040f2cf5e94b815ff55fe
10,374
py
Python
test/test_helpers.py
nokia/moler
13cb3d1329a8904ac074f269b8c9ec1955e3ae30
[ "BSD-3-Clause" ]
57
2018-02-20T08:16:47.000Z
2022-03-28T10:36:57.000Z
test/test_helpers.py
nokia/moler
13cb3d1329a8904ac074f269b8c9ec1955e3ae30
[ "BSD-3-Clause" ]
377
2018-07-19T11:56:27.000Z
2021-07-09T13:08:12.000Z
test/test_helpers.py
nokia/moler
13cb3d1329a8904ac074f269b8c9ec1955e3ae30
[ "BSD-3-Clause" ]
24
2018-04-14T20:49:40.000Z
2022-03-29T10:44:26.000Z
# -*- coding: utf-8 -*- """ Tests for helpers functions/classes. """ __author__ = 'Grzegorz Latuszek, Marcin Usielski' __copyright__ = 'Copyright (C) 2018-2021, Nokia' __email__ = 'grzegorz.latuszek@nokia.com, marcin.usielski@nokia.com' import mock import pytest from moler.exceptions import WrongUsage def test_inst...
35.649485
120
0.671486
b3488af0beac61aa2a0e00049b3125d922b79367
55,790
py
Python
framework/auth/core.py
DanielSBrown/osf.io
98dda2ac237377197acacce78274bc0a4ce8f303
[ "Apache-2.0" ]
null
null
null
framework/auth/core.py
DanielSBrown/osf.io
98dda2ac237377197acacce78274bc0a4ce8f303
[ "Apache-2.0" ]
null
null
null
framework/auth/core.py
DanielSBrown/osf.io
98dda2ac237377197acacce78274bc0a4ce8f303
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import datetime as dt import itertools import logging import re import urlparse from copy import deepcopy import bson import pytz import itsdangerous from modularodm import fields, Q from modularodm.exceptions import NoResultsFound, ValidationError, ValidationValueError, QueryException from mo...
36.849406
157
0.625811
7d6381e1bf3e8720f96182907732dc40465fb5d9
7,072
py
Python
CBLN/bnn/train_utils.py
Honglin20/Thesis
ec344f82d8200ce006082ad32d75a905314be77e
[ "MIT" ]
null
null
null
CBLN/bnn/train_utils.py
Honglin20/Thesis
ec344f82d8200ce006082ad32d75a905314be77e
[ "MIT" ]
null
null
null
CBLN/bnn/train_utils.py
Honglin20/Thesis
ec344f82d8200ce006082ad32d75a905314be77e
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np def reduce_entropy(X, axis=-1): """ calculate the entropy over axis and reduce that axis :param X: :param axis: :return: """ return -1 * np.sum(X * np.log(X+1E-12), axis=axis) def calc_risk(preds, labels=None): """ Calculates the parameter...
35.898477
147
0.617647
4a34b77e175b9584e6ce1eedc8c23f0bcbe4a9e7
5,640
py
Python
llvm/3.4.2/llvm-3.4.2.src/utils/lit/lit/TestingConfig.py
tangyibin/goblin-core
1940db6e95908c81687b2b22ddd9afbc8db9cdfe
[ "BSD-3-Clause" ]
36
2015-01-13T19:34:04.000Z
2022-03-07T22:22:15.000Z
llvm/3.4.2/llvm-3.4.2.src/utils/lit/lit/TestingConfig.py
tangyibin/goblin-core
1940db6e95908c81687b2b22ddd9afbc8db9cdfe
[ "BSD-3-Clause" ]
7
2015-10-20T19:05:01.000Z
2021-11-13T14:55:47.000Z
llvm/3.4.2/llvm-3.4.2.src/utils/lit/lit/TestingConfig.py
tangyibin/goblin-core
1940db6e95908c81687b2b22ddd9afbc8db9cdfe
[ "BSD-3-Clause" ]
18
2015-04-23T20:59:52.000Z
2021-11-18T20:06:39.000Z
import os import sys PY2 = sys.version_info[0] < 3 class TestingConfig: """" TestingConfig - Information on the tests inside a suite. """ @staticmethod def fromdefaults(litConfig): """ fromdefaults(litConfig) -> TestingConfig Create a TestingConfig object with default val...
37.105263
80
0.537589
ddfdb7b32bc3448dc2d1c16ba1090aec87e79449
1,002
py
Python
kubernetes/test/test_v1beta2_deployment_spec.py
iamneha/python
5b208a1a49a8d6f8bbab28bcc226b9ef793bcbd0
[ "Apache-2.0" ]
1
2019-02-17T15:28:39.000Z
2019-02-17T15:28:39.000Z
kubernetes/test/test_v1beta2_deployment_spec.py
iamneha/python
5b208a1a49a8d6f8bbab28bcc226b9ef793bcbd0
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1beta2_deployment_spec.py
iamneha/python
5b208a1a49a8d6f8bbab28bcc226b9ef793bcbd0
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.13.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys i...
22.266667
105
0.720559
cc495824eb3e5e3110d1ba5eb004e7ff03a24d63
3,287
py
Python
setup.py
aqts/qlib
2c5864204ecc747f11a63574efd07ff237123ff3
[ "MIT" ]
2
2021-01-28T09:02:14.000Z
2021-04-16T18:02:22.000Z
setup.py
Xryi/qlib
2c5864204ecc747f11a63574efd07ff237123ff3
[ "MIT" ]
1
2021-05-16T14:17:56.000Z
2021-05-19T07:07:20.000Z
setup.py
Xryi/qlib
2c5864204ecc747f11a63574efd07ff237123ff3
[ "MIT" ]
1
2020-12-10T03:58:33.000Z
2020-12-10T03:58:33.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. import io import os import numpy from setuptools import find_packages, setup, Extension # Package meta-data. NAME = "pyqlib" DESCRIPTION = "A Quantitative-research Platform" REQUIRES_PYTHON = ">=3.5.0" VERSION = "0.6.0.dev" # Detect Cython try...
26.296
100
0.616672
44cca9919169f5efaefa858a512376e1c3ba9875
56,258
py
Python
e2e/tests/test_e2e.py
flant/postgres-operator
040a49a922eead59c342a465446591ddbf90a57b
[ "MIT" ]
11
2020-09-25T11:30:49.000Z
2021-12-08T20:49:14.000Z
e2e/tests/test_e2e.py
flant/postgres-operator
040a49a922eead59c342a465446591ddbf90a57b
[ "MIT" ]
null
null
null
e2e/tests/test_e2e.py
flant/postgres-operator
040a49a922eead59c342a465446591ddbf90a57b
[ "MIT" ]
1
2022-02-03T18:05:30.000Z
2022-02-03T18:05:30.000Z
import json import unittest import time import timeout_decorator import os import yaml from datetime import datetime from kubernetes import client from tests.k8s_api import K8s from kubernetes.client.rest import ApiException SPILO_CURRENT = "registry.opensource.zalan.do/acid/spilo-13-e2e:0.3" SPILO_LAZY = "registry....
45.114675
165
0.588894
a5689907a347198054df519f8e748913585a7547
2,051
py
Python
examples/abcsurvey/example05.py
lumbric/abcvoting
e58c9e15abf795536e03df7c16d8639185305679
[ "MIT" ]
null
null
null
examples/abcsurvey/example05.py
lumbric/abcvoting
e58c9e15abf795536e03df7c16d8639185305679
[ "MIT" ]
null
null
null
examples/abcsurvey/example05.py
lumbric/abcvoting
e58c9e15abf795536e03df7c16d8639185305679
[ "MIT" ]
null
null
null
"""Example 5 (PAV, seq-PAV, revseq-PAV) from the survey: "Approval-Based Multi-Winner Voting: Axioms, Algorithms, and Applications" by Martin Lackner and Piotr Skowron """ from abcvoting import abcrules from abcvoting.preferences import Profile, Voter from abcvoting import misc from abcvoting.output import output from...
27.346667
82
0.710385
0aebdf755bc7039739e52f1546be6b5fd5e676c0
820
py
Python
k8s/images/codalab/apps/newsletter/scripts/send_emails_to_mailchimp.py
abdulari/codalab-competitions
fdfbb77ac62d56c6b4b9439935037f97ffcd1423
[ "Apache-2.0" ]
333
2015-12-29T22:49:40.000Z
2022-03-27T12:01:57.000Z
k8s/images/codalab/apps/newsletter/scripts/send_emails_to_mailchimp.py
abdulari/codalab-competitions
fdfbb77ac62d56c6b4b9439935037f97ffcd1423
[ "Apache-2.0" ]
1,572
2015-12-28T21:54:00.000Z
2022-03-31T13:00:32.000Z
k8s/images/codalab/apps/newsletter/scripts/send_emails_to_mailchimp.py
abdulari/codalab-competitions
fdfbb77ac62d56c6b4b9439935037f97ffcd1423
[ "Apache-2.0" ]
107
2016-01-08T03:46:07.000Z
2022-03-16T08:43:57.000Z
import json import requests from django.contrib.auth import get_user_model from codalab import settings User = get_user_model() def run(): if all([settings.MAILCHIMP_MEMBERS_ENDPOINT_ALL, settings.MAILCHIMP_API_KEY]): for user in User.objects.all(): data = { "email_address": ...
27.333333
82
0.547561
1cc6173c1da5b81209ff55f2e29a83ebd3c58a38
6,921
py
Python
gators/binning/bin_rare_events.py
Aditya-Kapadiya/gators
d7c9967e3a8e304a601b6a92ad834d03d3e36338
[ "Apache-2.0" ]
4
2021-10-29T18:20:52.000Z
2022-03-31T22:53:03.000Z
gators/binning/bin_rare_events.py
Aditya-Kapadiya/gators
d7c9967e3a8e304a601b6a92ad834d03d3e36338
[ "Apache-2.0" ]
1
2022-01-19T12:16:19.000Z
2022-01-19T12:16:19.000Z
gators/binning/bin_rare_events.py
Aditya-Kapadiya/gators
d7c9967e3a8e304a601b6a92ad834d03d3e36338
[ "Apache-2.0" ]
5
2021-11-17T20:16:54.000Z
2022-02-21T18:21:02.000Z
# License: Apache-2.0 import warnings from typing import Dict, List, Union import databricks.koalas as ks import numpy as np import pandas as pd from binning import bin_rare_events from ..transformers.transformer import Transformer from ..util import util class BinRareEvents(Transformer): """Replace low occure...
29.831897
83
0.56148
2707b2adf0a41bf4bbc55e6c645c6838acf25b23
5,447
py
Python
tools/aicity20/weakly_supervised_crop_aug.py
Johere/AICity2020-VOC-ReID
21268535595c8c90b87cd1ee89ddbcb341a86d76
[ "MIT" ]
100
2020-04-25T03:58:01.000Z
2022-03-30T18:24:17.000Z
tools/aicity20/weakly_supervised_crop_aug.py
Johere/AICity2020-VOC-ReID
21268535595c8c90b87cd1ee89ddbcb341a86d76
[ "MIT" ]
30
2020-04-27T07:15:00.000Z
2022-01-03T19:49:49.000Z
tools/aicity20/weakly_supervised_crop_aug.py
Johere/AICity2020-VOC-ReID
21268535595c8c90b87cd1ee89ddbcb341a86d76
[ "MIT" ]
25
2020-04-25T22:53:30.000Z
2022-03-28T00:46:51.000Z
''' detect object by actmap ''' # encoding: utf-8 import argparse import os import sys from os import mkdir import cv2 import numpy as np import torch from torch.backends import cudnn from torch.nn import functional as F import json sys.path.append('.') from lib.config import cfg from lib.data import make_data_loader ...
33.213415
106
0.590233
c32938e59deb0fe5384b4584d38798d48ec25f49
366
py
Python
dodo.py
thepinetree/noisepage-pilot
97ab95d2458fe3974aac13935094be17fca69522
[ "MIT" ]
null
null
null
dodo.py
thepinetree/noisepage-pilot
97ab95d2458fe3974aac13935094be17fca69522
[ "MIT" ]
null
null
null
dodo.py
thepinetree/noisepage-pilot
97ab95d2458fe3974aac13935094be17fca69522
[ "MIT" ]
null
null
null
# doit automatically picks up tasks as long as their unqualified name is prefixed with task_. # Read the guide: https://pydoit.org/tasks.html from dodos.action import * from dodos.behavior import * from dodos.benchbase import * from dodos.ci import * from dodos.forecast import * from dodos.noisepage import * from dodo...
30.5
93
0.781421
ab6f71c14767fe898f2ae8f31ecf19df2495df62
4,072
py
Python
dashboard/lib/flanker/mime/message/headers/encodedword.py
robertsimmons514/isthislegit
aa8f2b6cb2ac3de2b0fe03bb93dbceccc4c1f495
[ "BSD-3-Clause" ]
282
2017-07-01T03:47:54.000Z
2022-02-25T00:58:40.000Z
dashboard/lib/flanker/mime/message/headers/encodedword.py
robertsimmons514/isthislegit
aa8f2b6cb2ac3de2b0fe03bb93dbceccc4c1f495
[ "BSD-3-Clause" ]
46
2017-07-26T22:54:13.000Z
2022-02-14T21:39:52.000Z
dashboard/lib/flanker/mime/message/headers/encodedword.py
robertsimmons514/isthislegit
aa8f2b6cb2ac3de2b0fe03bb93dbceccc4c1f495
[ "BSD-3-Clause" ]
53
2017-07-22T15:04:16.000Z
2022-03-16T03:36:28.000Z
# coding:utf-8 import logging import re import email.quoprimime import email.base64mime from base64 import b64encode from flanker.mime.message import charsets, errors log = logging.getLogger(__name__) #deal with unfolding foldingWhiteSpace = re.compile(r"(\n\r?|\r\n?)(\s*)") def unfold(value): """ Unfold...
31.565891
80
0.582515
39658c25a232a30323084d4bd61021d193079d44
10,172
py
Python
ServidorPython/python32_web/Lib/site-packages/zmq/tests/test_context.py
mak213k/Servidor_automatizado_python
4403ef8027a2f814220baacc95856cf5fbf01d21
[ "MIT" ]
130
2018-02-03T10:25:54.000Z
2022-03-25T22:27:22.000Z
ServidorPython/python32_web/Lib/site-packages/zmq/tests/test_context.py
mak213k/Servidor_automatizado_python
4403ef8027a2f814220baacc95856cf5fbf01d21
[ "MIT" ]
12
2018-12-06T22:06:49.000Z
2022-02-25T17:40:44.000Z
ServidorPython/python32_web/Lib/site-packages/zmq/tests/test_context.py
mak213k/Servidor_automatizado_python
4403ef8027a2f814220baacc95856cf5fbf01d21
[ "MIT" ]
64
2018-04-25T08:51:57.000Z
2022-01-29T14:13:57.000Z
# Copyright (C) PyZMQ Developers # Distributed under the terms of the Modified BSD License. import copy import gc import sys import time from threading import Thread, Event try: from queue import Queue except ImportError: from Queue import Queue from pytest import mark import zmq from zmq.tests import ( ...
31.012195
91
0.570783
fe33dd6cb214fd6fd419552d34bfe244e68037cb
2,409
py
Python
project/tests/test_pairwise_relations.py
qxcv/comp2560
930adfffe95313ad0e43ca782b1ad8140948ff33
[ "Apache-2.0" ]
6
2016-02-29T12:55:56.000Z
2020-03-18T14:37:59.000Z
project/tests/test_pairwise_relations.py
qxcv/comp2560
930adfffe95313ad0e43ca782b1ad8140948ff33
[ "Apache-2.0" ]
1
2017-06-06T19:34:21.000Z
2017-07-21T02:01:48.000Z
project/tests/test_pairwise_relations.py
qxcv/comp2560
930adfffe95313ad0e43ca782b1ad8140948ff33
[ "Apache-2.0" ]
4
2016-08-11T00:41:42.000Z
2020-06-23T09:32:02.000Z
import numpy as np from datasets import Joints from pairwise_relations import from_dataset def generate_fake_locations(num, means, stddev=5): """Generate a matrix with four rows (one for each "point") and three columns (x-coord, y-coord and visibility). Means is a 3x2 matrix giving mean locations for eac...
33.929577
76
0.64093
b6e3d9dc58ff1d4dcfaf20418b522b7d3778c95f
18,694
py
Python
heat/engine/hot/template.py
p0i0/openstack-heat
414d5b11c0f454d1aac6c26eeff8f89e731dc0f3
[ "Apache-2.0" ]
null
null
null
heat/engine/hot/template.py
p0i0/openstack-heat
414d5b11c0f454d1aac6c26eeff8f89e731dc0f3
[ "Apache-2.0" ]
null
null
null
heat/engine/hot/template.py
p0i0/openstack-heat
414d5b11c0f454d1aac6c26eeff8f89e731dc0f3
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
37.09127
79
0.632074
e1f9a90857398f9a0fdeaca2d04fa69ad9807a40
9,273
py
Python
sccoresystems/sccspython/sccsLNLPcToPi.py
ninekorn/sccsVRStreamingHeadsetScriptsNProjectParts-WIP
76bf728e961133ce16ad89bef7fcfe030d163847
[ "MIT" ]
null
null
null
sccoresystems/sccspython/sccsLNLPcToPi.py
ninekorn/sccsVRStreamingHeadsetScriptsNProjectParts-WIP
76bf728e961133ce16ad89bef7fcfe030d163847
[ "MIT" ]
null
null
null
sccoresystems/sccspython/sccsLNLPcToPi.py
ninekorn/sccsVRStreamingHeadsetScriptsNProjectParts-WIP
76bf728e961133ce16ad89bef7fcfe030d163847
[ "MIT" ]
null
null
null
#made by ninekorn import socket import os import time import sys import struct #https://stackoverflow.com/questions/1271320/resetting-generator-object-in-python #import more_itertools as mit #import tqdm # device's IP address PC_HOST = "192.168.0.107" PC_PORT = 5001 # device's IP address SERVER_HOST = "0.0.0.0" SERVE...
33.597826
167
0.527877
3a6b7de39e35d1dda0abf34f3b31a837cfa98021
2,698
py
Python
tests/utils.py
mawillcockson/mw_url_shortener
312cc958dceaeaeecc5bfcf1a958b8cb092a3568
[ "MIT" ]
null
null
null
tests/utils.py
mawillcockson/mw_url_shortener
312cc958dceaeaeecc5bfcf1a958b8cb092a3568
[ "MIT" ]
null
null
null
tests/utils.py
mawillcockson/mw_url_shortener
312cc958dceaeaeecc5bfcf1a958b8cb092a3568
[ "MIT" ]
null
null
null
""" utilities used by the tests generally, these are utilities that can't work as pytest fixtures, since pytest fixtures provide the same value all throught a single test function, regardless of scope """ import itertools from random import randint from typing import Iterable import faker # faker fixture required fo...
29.977778
168
0.710897
1779a6167b06b4503d67c586f397788737f8f699
40,241
py
Python
networkx/classes/multigraph.py
MaxBromberg/networkx
e4d1483f241e9a56fbda247592710b659d29bce5
[ "BSD-3-Clause" ]
1
2020-11-20T10:14:14.000Z
2020-11-20T10:14:14.000Z
networkx/classes/multigraph.py
MaxBromberg/networkx
e4d1483f241e9a56fbda247592710b659d29bce5
[ "BSD-3-Clause" ]
4
2016-04-22T14:50:02.000Z
2020-11-20T09:30:44.000Z
networkx/classes/multigraph.py
MaxBromberg/networkx
e4d1483f241e9a56fbda247592710b659d29bce5
[ "BSD-3-Clause" ]
2
2020-12-21T11:41:13.000Z
2021-01-08T17:09:21.000Z
"""Base class for MultiGraph.""" from copy import deepcopy import networkx as nx from networkx.classes.graph import Graph from networkx.classes.coreviews import MultiAdjacencyView from networkx.classes.reportviews import MultiEdgeView, MultiDegreeView from networkx import NetworkXError class MultiGraph(Graph): "...
35.548587
83
0.578763
7cf75211f74cde224dcc6e415965fb0b988a7ec2
539
py
Python
Melanoma/create_folds.py
Akashcba/VSCode
5eb4b737e6e775e7415c8baa4ff2d7e94fa8dceb
[ "MIT" ]
null
null
null
Melanoma/create_folds.py
Akashcba/VSCode
5eb4b737e6e775e7415c8baa4ff2d7e94fa8dceb
[ "MIT" ]
null
null
null
Melanoma/create_folds.py
Akashcba/VSCode
5eb4b737e6e775e7415c8baa4ff2d7e94fa8dceb
[ "MIT" ]
null
null
null
import os import pandas as pd from sklearn import model_selection if __name__ == "__main__": df = pd.read_csv(f"{TRAIN_DATA}") ## Creating the folds df['kfold']=-1 df=df.sample(frac=1).reset_index(drop=True) y=df.target.values kf = model_selection.StratifiedKFold(n_spliits=5) ## Begin Split...
29.944444
71
0.662338