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
d493f2b85a358e9554913ea8b7fd9c2f43af1ed9
167
py
Python
py/DREAM/DREAMException.py
chalmersplasmatheory/DREAM
715637ada94f5e35db16f23c2fd49bb7401f4a27
[ "MIT" ]
12
2020-09-07T11:19:10.000Z
2022-02-17T17:40:19.000Z
py/DREAM/DREAMException.py
chalmersplasmatheory/DREAM
715637ada94f5e35db16f23c2fd49bb7401f4a27
[ "MIT" ]
110
2020-09-02T15:29:24.000Z
2022-03-09T09:50:01.000Z
py/DREAM/DREAMException.py
chalmersplasmatheory/DREAM
715637ada94f5e35db16f23c2fd49bb7401f4a27
[ "MIT" ]
3
2021-05-21T13:24:31.000Z
2022-02-11T14:43:12.000Z
# Implementation of a basic exception class class DREAMException(Exception): def __init__(self, message): super(Exception, self).__init__(message)
18.555556
48
0.712575
0b7a9f5099ea19cfa82fe2c44846c1896eee7a4d
13,741
py
Python
api_app/tests_ma/test_api/test_routes/test_workspace_templates.py
damoodamoo/AzureTRE
375c8e3ba94e27ed2a77009bf47453737e6d1d4c
[ "MIT" ]
71
2021-03-04T15:10:18.000Z
2022-03-29T16:37:37.000Z
api_app/tests_ma/test_api/test_routes/test_workspace_templates.py
frankfanslc/AzureTRE
c6ab21cfdb252b37ca23fde13cf397d519da31a7
[ "MIT" ]
1,498
2021-03-05T07:28:00.000Z
2022-03-31T16:28:06.000Z
api_app/tests_ma/test_api/test_routes/test_workspace_templates.py
frankfanslc/AzureTRE
c6ab21cfdb252b37ca23fde13cf397d519da31a7
[ "MIT" ]
60
2021-04-30T10:09:26.000Z
2022-03-30T12:39:27.000Z
import json import pytest from mock import patch from pydantic import parse_obj_as from starlette import status from services.authentication import get_current_admin_user, get_current_tre_user_or_tre_admin from models.domain.resource import ResourceType from resources import strings from db.errors import DuplicateEnt...
62.744292
256
0.808966
aa6a7c06169017ee42d2e29b698c215548b8ad06
4,764
py
Python
.ycm_extra_conf.py
corngood/polybar
385572ec643ea6d35483b652a17e74b01229b267
[ "MIT" ]
1
2020-05-08T14:47:00.000Z
2020-05-08T14:47:00.000Z
.ycm_extra_conf.py
corngood/polybar
385572ec643ea6d35483b652a17e74b01229b267
[ "MIT" ]
null
null
null
.ycm_extra_conf.py
corngood/polybar
385572ec643ea6d35483b652a17e74b01229b267
[ "MIT" ]
1
2020-05-08T15:26:36.000Z
2020-05-08T15:26:36.000Z
# Here's the license text for this file: # # This is free and unencumbered software released into the public domain. # # Anyone is free to copy, modify, publish, use, compile, sell, or # distribute this software, either in source code form or as a compiled # binary, for any purpose, commercial or non-commercial, and by...
35.288889
82
0.711587
295221e0ea8a9b0d7ec80eab3169052f2d1ff0bb
6,376
py
Python
rpython/jit/codewriter/jitcode.py
jptomo/pypy-lang-scheme
55edb2cec69d78f86793282a4566fcbc1ef9fcac
[ "MIT" ]
34
2015-07-09T04:53:27.000Z
2021-07-19T05:22:27.000Z
rpython/jit/codewriter/jitcode.py
jptomo/pypy-lang-scheme
55edb2cec69d78f86793282a4566fcbc1ef9fcac
[ "MIT" ]
6
2015-05-30T17:20:45.000Z
2017-06-12T14:29:23.000Z
rpython/jit/codewriter/jitcode.py
jptomo/pypy-lang-scheme
55edb2cec69d78f86793282a4566fcbc1ef9fcac
[ "MIT" ]
11
2015-09-07T14:26:08.000Z
2020-04-10T07:20:41.000Z
from rpython.jit.metainterp.history import AbstractDescr, ConstInt from rpython.jit.codewriter import heaptracker from rpython.rlib.objectmodel import we_are_translated class JitCode(AbstractDescr): _empty_i = [] _empty_r = [] _empty_f = [] def __init__(self, name, fnaddr=None, calldescr=None, called...
36.227273
77
0.635822
26120c7720d701b8c8cfe26bf2efeb6266dbda30
3,041
py
Python
pybricks-micropython-master/tests/pup/motors/measurements.py
SupernovaXTS/EV3Repo
f4702e6be557c4724ae9c488399458d42cdb87cb
[ "MIT" ]
null
null
null
pybricks-micropython-master/tests/pup/motors/measurements.py
SupernovaXTS/EV3Repo
f4702e6be557c4724ae9c488399458d42cdb87cb
[ "MIT" ]
null
null
null
pybricks-micropython-master/tests/pup/motors/measurements.py
SupernovaXTS/EV3Repo
f4702e6be557c4724ae9c488399458d42cdb87cb
[ "MIT" ]
1
2021-04-27T17:59:10.000Z
2021-04-27T17:59:10.000Z
# SPDX-License-Identifier: MIT # Copyright (c) 2020 The Pybricks Authors """ Hardware Module: 1 Description: Verifies motor readings such as angle, absolute angle, and speed. """ from pybricks.pupdevices import Motor, UltrasonicSensor from pybricks.parameters import Port, Direction from pybricks.tools import wait, S...
28.961905
79
0.699112
873edab4fb4a7b6b497328ab1b51354e21cfd0ab
251,419
py
Python
lib/galaxy/model/__init__.py
maikenp/galaxy
eb3f3c816f1f94bc328d092f30c8966d41a56a0d
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/model/__init__.py
maikenp/galaxy
eb3f3c816f1f94bc328d092f30c8966d41a56a0d
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/model/__init__.py
maikenp/galaxy
eb3f3c816f1f94bc328d092f30c8966d41a56a0d
[ "CC-BY-3.0" ]
null
null
null
""" Galaxy data model classes Naming: try to use class names that have a distinct plural form so that the relationship cardinalities are obvious (e.g. prefer Dataset to Data) """ import base64 import errno import json import logging import numbers import operator import os import pwd import random import string import...
37.904267
191
0.640139
d0565dd68849b417bd12a14fc80f49e730c5ad78
4,330
py
Python
benchmark/lue/benchmark/pool.py
computationalgeography/lue
71993169bae67a9863d7bd7646d207405dc6f767
[ "MIT" ]
2
2021-02-26T22:45:56.000Z
2021-05-02T10:28:48.000Z
benchmark/lue/benchmark/pool.py
pcraster/lue
e64c18f78a8b6d8a602b7578a2572e9740969202
[ "MIT" ]
262
2016-08-11T10:12:02.000Z
2020-10-13T18:09:16.000Z
benchmark/lue/benchmark/pool.py
computationalgeography/lue
71993169bae67a9863d7bd7646d207405dc6f767
[ "MIT" ]
1
2020-03-11T09:49:41.000Z
2020-03-11T09:49:41.000Z
class WorkerRange(object): def __init__(self, json): self._from_json(json) self.max_size = self.permutation_size(self.nr_permutations - 1) def _from_json(self, json): self.min_size = json["min_size"] self.max_size = json["max_size"] assert self.min_size > 0 as...
22.670157
83
0.566282
21fd0672a3b5a6a0d0d50901699cae2d9c5a4798
1,972
py
Python
napps/kytos/of_stats/test_rrd.py
cemsbr/legacy
88fe3764d160e638bb9875c00d10821d5ef25f82
[ "MIT" ]
2
2017-05-11T18:18:43.000Z
2017-07-30T20:54:06.000Z
napps/kytos/of_stats/test_rrd.py
cemsbr/legacy
88fe3764d160e638bb9875c00d10821d5ef25f82
[ "MIT" ]
87
2016-08-30T15:09:26.000Z
2017-02-24T17:19:57.000Z
napps/kytos/of_stats/test_rrd.py
cemsbr/legacy
88fe3764d160e638bb9875c00d10821d5ef25f82
[ "MIT" ]
9
2017-03-03T19:11:12.000Z
2017-08-09T14:26:50.000Z
"""Test of.stats app.""" import os import unittest from tempfile import mkstemp from unittest.mock import patch # noqa (isort conflict) from napps.legacy.of_stats.settings import STATS_INTERVAL from napps.legacy.of_stats.stats import RRD class TestRRD(unittest.TestCase): """Test RRD interpolation.""" @patc...
32.866667
76
0.620183
e41504e581b6993eebdab3752ea792d582942e0c
717
py
Python
projectq_project/localintel/admin.py
sophoslabs/intelix-example2
5b2b58600fbfd4465c5f12ead9af1334b2e7ad2b
[ "Apache-2.0" ]
1
2019-12-04T10:40:22.000Z
2019-12-04T10:40:22.000Z
projectq_project/localintel/admin.py
sophoslabs/intelix-example2
5b2b58600fbfd4465c5f12ead9af1334b2e7ad2b
[ "Apache-2.0" ]
3
2020-02-12T03:04:32.000Z
2020-06-08T07:57:18.000Z
projectq_project/localintel/admin.py
sophoslabs/intelix-example2
5b2b58600fbfd4465c5f12ead9af1334b2e7ad2b
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2019. Sophos 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
34.142857
75
0.755927
80306cc34a1f51a427dcee02a9c0e8d79e232906
2,625
py
Python
Utils/generateGameBoard.py
SmintOverflow/SmintOverflow
53764d343032826b8993311a65b4621c8dede4d5
[ "BSD-3-Clause" ]
null
null
null
Utils/generateGameBoard.py
SmintOverflow/SmintOverflow
53764d343032826b8993311a65b4621c8dede4d5
[ "BSD-3-Clause" ]
null
null
null
Utils/generateGameBoard.py
SmintOverflow/SmintOverflow
53764d343032826b8993311a65b4621c8dede4d5
[ "BSD-3-Clause" ]
null
null
null
from PIL import Image, ImageDraw, ImageFont, ImageFilter import json def generateGameBoard(grid, score, bestScore): with open("config.json", mode="r", encoding="utf8") as config: isDarkTheme = json.loads(config.read()) if isDarkTheme["theme"] == "dark": gameboard = Image.open("A...
36.971831
93
0.61981
3547c2cc86bd10afba37da7a447536b6a935349e
28,382
py
Python
obfsproxy/transports/wfpadtools/wfpad.py
notem/walkietalkie-proto
a4efc1933a997ad98fc4f1062f726bd4abd5420a
[ "BSD-3-Clause" ]
2
2022-01-05T02:21:55.000Z
2022-02-06T17:30:43.000Z
obfsproxy/transports/wfpadtools/wfpad.py
notem/walkietalkie-proto
a4efc1933a997ad98fc4f1062f726bd4abd5420a
[ "BSD-3-Clause" ]
null
null
null
obfsproxy/transports/wfpadtools/wfpad.py
notem/walkietalkie-proto
a4efc1933a997ad98fc4f1062f726bd4abd5420a
[ "BSD-3-Clause" ]
null
null
null
"""The wfpad module implements the WFPadTools Tor pluggable transport. This module implements WFPadTools, a framework to develop link-padding-based website fingerprinting countermeasures in Tor. It implements a framing layer for the Tor protocol that allows to add cover traffic and provides a set of primitives that ca...
42.424514
118
0.607322
ca10b945fd30ce9e41409b2434852467280b37ce
77,344
py
Python
pynetdicom/tests/test_presentation.py
RandaNP/pynetdicom
18bd3aa92a6a2b23b2ba6e62e1c4c2b324360d7c
[ "MIT" ]
null
null
null
pynetdicom/tests/test_presentation.py
RandaNP/pynetdicom
18bd3aa92a6a2b23b2ba6e62e1c4c2b324360d7c
[ "MIT" ]
null
null
null
pynetdicom/tests/test_presentation.py
RandaNP/pynetdicom
18bd3aa92a6a2b23b2ba6e62e1c4c2b324360d7c
[ "MIT" ]
null
null
null
"""Tests for the presentation module.""" import logging import sys import pytest from pydicom._uid_dict import UID_dictionary from pydicom.uid import UID from pynetdicom import AE, _config from pynetdicom.pdu_primitives import SCP_SCU_RoleSelectionNegotiation from pynetdicom.presentation import ( build_context, ...
39.501532
87
0.615613
d50e02f05e465466740155e5eb554b3a8e3c35aa
7,274
py
Python
src/map.py
MartinKondor/MustFind
f2db757c50a8b3fe4d809f3fc6eeaa6837bcd486
[ "BSD-3-Clause" ]
null
null
null
src/map.py
MartinKondor/MustFind
f2db757c50a8b3fe4d809f3fc6eeaa6837bcd486
[ "BSD-3-Clause" ]
null
null
null
src/map.py
MartinKondor/MustFind
f2db757c50a8b3fe4d809f3fc6eeaa6837bcd486
[ "BSD-3-Clause" ]
null
null
null
""" Map classes for loading and storing maps/tilesets. """ import pygame from consts import TILESET_FOLDER from layer import Layer from tileset import Tileset from config import CONFIG class Map: """ Represents the map for the game. Example usage: ``` import map default_map = map.Map(MAP...
33.990654
144
0.532719
cf81ee2867840a6b5e29d9414d7c261d0a8cf7c1
3,940
py
Python
persistds.py
ningke/PersistDS
43b57d3b0fd9882593bd2b969aa432d2947d69fb
[ "Apache-2.0" ]
2
2017-01-30T07:24:12.000Z
2018-01-02T07:51:26.000Z
persistds.py
ningke/PersistDS
43b57d3b0fd9882593bd2b969aa432d2947d69fb
[ "Apache-2.0" ]
null
null
null
persistds.py
ningke/PersistDS
43b57d3b0fd9882593bd2b969aa432d2947d69fb
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 Ning Ke # # 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, softw...
33.389831
76
0.630711
e1a582428949f67b41bc481d2d9f35cfd79fa4ba
35
py
Python
afbmq/dispatcher/__init__.py
JMarkin/afbmq
8491abfdd17e2ab745b5150eafdaf68a0f3cd1d0
[ "MIT" ]
7
2019-07-05T20:31:09.000Z
2022-03-09T20:40:45.000Z
avkapi/dispatcher/__init__.py
marwq/aVKapi
014039a93180f321c9413e07449e54072925fa64
[ "MIT" ]
2
2019-05-13T08:38:43.000Z
2019-08-21T15:19:32.000Z
avkapi/dispatcher/__init__.py
marwq/aVKapi
014039a93180f321c9413e07449e54072925fa64
[ "MIT" ]
6
2019-04-13T09:32:11.000Z
2019-09-14T18:43:29.000Z
from .dispatcher import Dispatcher
17.5
34
0.857143
990b0bf66ad6c79dc6121b15c9c9720d8edceb42
2,517
py
Python
src/python/gem5/components/cachehierarchies/ruby/caches/mesi_two_level/directory.py
hyu-iot/gem5
aeccc8bd8e9a86f96fc7a6f40d978f8494337fc5
[ "BSD-3-Clause" ]
765
2015-01-14T16:17:04.000Z
2022-03-28T07:46:28.000Z
src/python/gem5/components/cachehierarchies/ruby/caches/mesi_two_level/directory.py
hyu-iot/gem5
aeccc8bd8e9a86f96fc7a6f40d978f8494337fc5
[ "BSD-3-Clause" ]
30
2015-01-01T21:49:38.000Z
2021-04-20T19:01:54.000Z
src/python/gem5/components/cachehierarchies/ruby/caches/mesi_two_level/directory.py
hyu-iot/gem5
aeccc8bd8e9a86f96fc7a6f40d978f8494337fc5
[ "BSD-3-Clause" ]
807
2015-01-06T09:55:38.000Z
2022-03-30T10:23:36.000Z
# Copyright (c) 2021 The Regents of the University of California # 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 copyright # notice, this lis...
45.763636
72
0.763607
579f3956e3b51e456b5dc483a3b5dedc2080a80f
1,691
py
Python
tommy2tommy/layers/activations.py
tommyreddad/tommy2tommy
c634bedbc8b498abd272eecb27ca8dd2d013cdc8
[ "MIT" ]
null
null
null
tommy2tommy/layers/activations.py
tommyreddad/tommy2tommy
c634bedbc8b498abd272eecb27ca8dd2d013cdc8
[ "MIT" ]
3
2021-08-25T15:10:22.000Z
2022-02-10T03:57:44.000Z
tommy2tommy/layers/activations.py
tommyreddad/tommy2tommy
c634bedbc8b498abd272eecb27ca8dd2d013cdc8
[ "MIT" ]
null
null
null
"""Activation functions. This module implements some alternative activation functions which are not present in vanilla TensorFlow. """ import math import tensorflow as tf @tf.function def gelu(x): """Applies the approximated GELU to the input. The Gaussian Error Linear Unit (GELU), as described by [Hendr...
24.867647
82
0.675931
a46e12968e0878dd80ad0c56f9e25317281d2b79
116
py
Python
icbd/compiler/tests/17.py
kmod/icbd
9636564eb3993afa07c6220d589bbd1991923d74
[ "MIT" ]
7
2015-04-06T15:17:13.000Z
2020-10-21T04:57:00.000Z
icbd/compiler/tests/17.py
kmod/icbd
9636564eb3993afa07c6220d589bbd1991923d74
[ "MIT" ]
null
null
null
icbd/compiler/tests/17.py
kmod/icbd
9636564eb3993afa07c6220d589bbd1991923d74
[ "MIT" ]
4
2016-05-16T17:53:08.000Z
2020-11-28T17:18:50.000Z
""" function definition test """ def f(x): return x + 1 print f(2) def f(x): return x ** 10 print f(2)
7.733333
24
0.543103
8f8a54d1d42a02f021236b5d614e6987cd9227c1
8,026
py
Python
NeriSnake.py
piethrower/Neri_Snake
8916291455eb1392e7fd056b9f49390140273820
[ "MIT" ]
null
null
null
NeriSnake.py
piethrower/Neri_Snake
8916291455eb1392e7fd056b9f49390140273820
[ "MIT" ]
1
2021-03-28T14:55:33.000Z
2021-03-28T14:55:33.000Z
NeriSnake.py
piethrower/Neri_Snake
8916291455eb1392e7fd056b9f49390140273820
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Sorry windows, I never loved you # pylint: disable=no-member import sys import random import pygame as pg # TODO: # Make a GUI menu # Add resize options # Add option for speed increase # Sounds? pg.init() ### Options ### EDGE_WRAP = False # Whether hitting the edge kills you BG_COLOR ...
28.664286
91
0.544356
4deeab343afe7cf5c126b0fae0929500714a1e45
684
py
Python
miniteste4/5/parciais/parciais.py
Davvi-Duarte/prog1
b22e271d3a0226ebb2cabe211d4c8e243cc93f1c
[ "Apache-2.0" ]
null
null
null
miniteste4/5/parciais/parciais.py
Davvi-Duarte/prog1
b22e271d3a0226ebb2cabe211d4c8e243cc93f1c
[ "Apache-2.0" ]
null
null
null
miniteste4/5/parciais/parciais.py
Davvi-Duarte/prog1
b22e271d3a0226ebb2cabe211d4c8e243cc93f1c
[ "Apache-2.0" ]
null
null
null
num=int(input()) numero=[] maior=[0] menor=[] tot=0 repeat=0 media=[] for i in range(num): tot=0 a=int(input()) numero.append(a) if a>maior[0]: maior.pop() maior.append(a) if not menor==[]: if a<menor[0]: menor.pop(0) menor.append(a) else: ...
21.375
74
0.510234
f5ca810e61ab073ff1b2cc3235c3698452cb03be
622
py
Python
fil_finder/tests/test_rht.py
keflavich/fil_finder
ff65c9af1daa8b15a823a20d339a2f388950e156
[ "MIT" ]
null
null
null
fil_finder/tests/test_rht.py
keflavich/fil_finder
ff65c9af1daa8b15a823a20d339a2f388950e156
[ "MIT" ]
null
null
null
fil_finder/tests/test_rht.py
keflavich/fil_finder
ff65c9af1daa8b15a823a20d339a2f388950e156
[ "MIT" ]
null
null
null
from fil_finder.rollinghough import rht import numpy as np from numpy.testing import assert_allclose def test_rht(): test1 = np.eye(20) test2 = np.zeros((20,20)) test2[10, :] = 1 assert_allclose(rht(test1, 10)[2], (0.56726012004973192, 0.78609389334676461, 1.004927666643797)) assert_allclose(rht...
36.588235
111
0.726688
650c1dc74b361ed4082d5e4dbc3de0ec52821c75
1,123
py
Python
adjutant/actions/migrations/0001_initial.py
CCI-MOC/adjutant
032db3124ea0b0632afdfc27afc60b6c66cf5f66
[ "Apache-2.0" ]
null
null
null
adjutant/actions/migrations/0001_initial.py
CCI-MOC/adjutant
032db3124ea0b0632afdfc27afc60b6c66cf5f66
[ "Apache-2.0" ]
null
null
null
adjutant/actions/migrations/0001_initial.py
CCI-MOC/adjutant
032db3124ea0b0632afdfc27afc60b6c66cf5f66
[ "Apache-2.0" ]
1
2019-04-18T12:21:59.000Z
2019-04-18T12:21:59.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import django.utils.timezone import jsonfield.fields class Migration(migrations.Migration): dependencies = [ ('api', '0001_initial'), ] operations = [ migrations.CreateModel( ...
35.09375
114
0.58415
4ea5da8007ca207186c081bef649032d7f957811
1,626
py
Python
forum/apps/auth/form.py
juvpengele/flask-forum
a04852faa31fba3aeac46b4a64aa199d2b034b09
[ "CNRI-Python", "blessing" ]
10
2020-06-05T09:49:11.000Z
2022-01-31T16:51:44.000Z
forum/apps/auth/form.py
juvpengele/flask-forum
a04852faa31fba3aeac46b4a64aa199d2b034b09
[ "CNRI-Python", "blessing" ]
null
null
null
forum/apps/auth/form.py
juvpengele/flask-forum
a04852faa31fba3aeac46b4a64aa199d2b034b09
[ "CNRI-Python", "blessing" ]
1
2022-01-28T22:49:50.000Z
2022-01-28T22:49:50.000Z
from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, SubmitField from wtforms.fields.html5 import EmailField from wtforms.validators import DataRequired, EqualTo, Email, Length from forum.database.models import User from forum import bcrypt class RegistrationForm(FlaskForm): name = Stri...
41.692308
119
0.704182
cf9cf1bd223a46680b2d09860c00cdaaa97a28f6
684
py
Python
poorlydrawn/config/celery.py
othreecodes/Poorly-Drawn-API
cdd146e2b2c6b75a1437ebfc71375a9690154da6
[ "Unlicense" ]
4
2017-11-12T21:53:08.000Z
2021-03-14T13:25:56.000Z
poorlydrawn/config/celery.py
othreecodes/Poorly-Drawn-API
cdd146e2b2c6b75a1437ebfc71375a9690154da6
[ "Unlicense" ]
3
2020-02-12T00:03:09.000Z
2021-06-10T19:42:17.000Z
poorlydrawn/config/celery.py
othreecodes/Poorly-Drawn-API
cdd146e2b2c6b75a1437ebfc71375a9690154da6
[ "Unlicense" ]
null
null
null
from __future__ import absolute_import import os from celery import Celery from django.conf import settings # set the default Django settings module for the 'celery' program. os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'poorlydrawn.config.settings') app = Celery('poorlydrawnlines') app.conf.update( CELERY_R...
27.36
78
0.780702
dbd46fc081cd8da753e85700ce3430afab4c65f9
7,430
py
Python
covid_key/views.py
cds-snc/covid-alert-portal
e7d56fa9fa4a2ad2d60f056eae063713661bd260
[ "MIT" ]
43
2020-07-31T14:38:06.000Z
2022-03-07T11:28:28.000Z
covid_key/views.py
cds-snc/covid-alert-portal
e7d56fa9fa4a2ad2d60f056eae063713661bd260
[ "MIT" ]
322
2020-07-23T19:38:26.000Z
2022-03-31T19:15:45.000Z
covid_key/views.py
cds-snc/covid-alert-portal
e7d56fa9fa4a2ad2d60f056eae063713661bd260
[ "MIT" ]
6
2020-11-28T19:30:20.000Z
2021-07-29T18:06:55.000Z
import logging import requests from datetime import timedelta, datetime from django.conf import settings from django.http import HttpResponseRedirect from django.shortcuts import render, redirect from django.contrib import messages from django.contrib.auth.mixins import PermissionRequiredMixin from django.utils import ...
35.21327
114
0.604711
41dbf45ee46ae2381d1f3c9a5c852ac52ddcb673
4,148
py
Python
pygame_geometry/grapher.py
MarcPartensky/Pygame-Geometry
61abbbeac0fd351253e06b19736d9939fd5b316e
[ "MIT" ]
3
2021-01-03T18:13:02.000Z
2021-06-27T21:29:11.000Z
pygame_geometry/grapher.py
MarcPartensky/Pygame-Geometry
61abbbeac0fd351253e06b19736d9939fd5b316e
[ "MIT" ]
null
null
null
pygame_geometry/grapher.py
MarcPartensky/Pygame-Geometry
61abbbeac0fd351253e06b19736d9939fd5b316e
[ "MIT" ]
null
null
null
# graph, curve, plot import numpy as np import math import itertools import random from . import colors from .manager import SimpleManager class Function: """Function that can be studied with maths.""" def __init__(self, function, name=None): """Create a Function object using a default function.""" ...
31.907692
126
0.614031
4ca9b1b93bc0b398ba686632024e3f050cb319b1
473
py
Python
utils/file.py
YahyaFazlani/blog-backend
1b277a9f3e75c359d8d3d831afe82259bb59cf28
[ "MIT" ]
null
null
null
utils/file.py
YahyaFazlani/blog-backend
1b277a9f3e75c359d8d3d831afe82259bb59cf28
[ "MIT" ]
null
null
null
utils/file.py
YahyaFazlani/blog-backend
1b277a9f3e75c359d8d3d831afe82259bb59cf28
[ "MIT" ]
null
null
null
from flask import current_app from werkzeug.utils import secure_filename from typing import Optional def get_extension(filename: Optional[str]): return filename.rsplit('.', 1)[1].lower() def create_filename(author, title, extension): return secure_filename(f"{author}_{title}_thumbnail.{extension}") def is_all...
27.823529
67
0.767442
9e417840d86b34dc6a72a747fd90c325726d6122
890
py
Python
app/views/__init__.py
dingqi0201/News-Rec-System
c238633e4dff4f52b17239733ecedb4984696e12
[ "BSD-3-Clause" ]
null
null
null
app/views/__init__.py
dingqi0201/News-Rec-System
c238633e4dff4f52b17239733ecedb4984696e12
[ "BSD-3-Clause" ]
null
null
null
app/views/__init__.py
dingqi0201/News-Rec-System
c238633e4dff4f52b17239733ecedb4984696e12
[ "BSD-3-Clause" ]
null
null
null
""" __init__.py ~~~~~~~~ 初始化蓝图:web(公用/单蓝图)... 2020/9/2 """ from .web import bp_web from .bgp import bp_bgp from .asn import bp_asn from .log import bp_log from .user import bp_user from .role import bp_role from ..services.auth import is_can from ..libs.helper import get_date def init_blueprint(app):...
22.25
81
0.706742
78cbeb1a8cb3eaf57bed956d1345dc56d50435eb
77
py
Python
test.py
miller45/heatingpi
acc31bc02b4d2b1672d0519a2c1710e22fa44168
[ "MIT" ]
null
null
null
test.py
miller45/heatingpi
acc31bc02b4d2b1672d0519a2c1710e22fa44168
[ "MIT" ]
null
null
null
test.py
miller45/heatingpi
acc31bc02b4d2b1672d0519a2c1710e22fa44168
[ "MIT" ]
null
null
null
import time print "Start" print "waiting 5 secs" time.sleep(5) print "done"
11
22
0.727273
6080d485415d94a24a32c9b2b441961424520848
284
py
Python
GeneticAlgorithm/Models/BaseModel.py
theDiverDK/GeneticAlgorithm
7413fbaa445bf651009320f293a104ab65f63d30
[ "MIT" ]
null
null
null
GeneticAlgorithm/Models/BaseModel.py
theDiverDK/GeneticAlgorithm
7413fbaa445bf651009320f293a104ab65f63d30
[ "MIT" ]
null
null
null
GeneticAlgorithm/Models/BaseModel.py
theDiverDK/GeneticAlgorithm
7413fbaa445bf651009320f293a104ab65f63d30
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod class BaseModel(ABC): def __init__(self): self.fitness = -1 @abstractmethod def initialize(self): pass @abstractmethod def evaluate(self): pass @abstractmethod def mutate(self): pass
14.947368
35
0.609155
fc1f44c709cf8ba47fd952f0406128436151cae8
1,291
py
Python
solutions/lanternfish.py
walshification/advent-of-code-2021
84c604d6f1468bc789515b767a1317e173feb43f
[ "MIT" ]
null
null
null
solutions/lanternfish.py
walshification/advent-of-code-2021
84c604d6f1468bc789515b767a1317e173feb43f
[ "MIT" ]
null
null
null
solutions/lanternfish.py
walshification/advent-of-code-2021
84c604d6f1468bc789515b767a1317e173feb43f
[ "MIT" ]
null
null
null
""" Part One ======== Find a way to simulate lanternfish. How many lanternfish would there be after 80 days? Part Two ======== How many lanternfish would there be after 256 days? """ from collections import Counter from typing import List class Ocean: """A place for fishies.""" @staticmethod def live(f...
27.468085
71
0.598761
b7947fb7ba5899f76defd9d41dc2c898eab5ddb9
22,547
py
Python
joeynmt/prediction.py
emmavdbold/joeynmt
d280cfcadd4e2c3a02cf8e7e5152377efbbd62ff
[ "Apache-2.0" ]
null
null
null
joeynmt/prediction.py
emmavdbold/joeynmt
d280cfcadd4e2c3a02cf8e7e5152377efbbd62ff
[ "Apache-2.0" ]
null
null
null
joeynmt/prediction.py
emmavdbold/joeynmt
d280cfcadd4e2c3a02cf8e7e5152377efbbd62ff
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ This modules holds methods for generating predictions from a model. """ import os import sys from typing import List, Optional import logging import numpy as np import torch from torchtext.legacy.data import Dataset, Field from joeynmt.helpers import bpe_postprocess, load_config, make_logger,\ ...
42.065299
109
0.613918
e4243a659fe34ab7d685e0b26011351e0b01f367
4,229
py
Python
src/Exercise_8/src/ex8.py
djeada/Stanford-Machine-Learning
e6ef77939b7c581aebb5e9454669ad2dbb4f98f0
[ "MIT" ]
null
null
null
src/Exercise_8/src/ex8.py
djeada/Stanford-Machine-Learning
e6ef77939b7c581aebb5e9454669ad2dbb4f98f0
[ "MIT" ]
null
null
null
src/Exercise_8/src/ex8.py
djeada/Stanford-Machine-Learning
e6ef77939b7c581aebb5e9454669ad2dbb4f98f0
[ "MIT" ]
null
null
null
"""" The goal of this module is to give a comprehensive solution to Task 8 from the coding homeworks in the Machine Learning course on coursera.com. The task is broken down into smaller parts. """ import numpy as np import matplotlib.pyplot as plt from pathlib import Path import readers import algorithms import plot...
27.822368
92
0.661622
08bdb150618067c51b18cfe3dff5160278b27289
1,045
py
Python
src/services/checks.py
anandmoghan/speaker-recognition
ff5557e89b686b1da3e3eb30e3dad9bf851e7bbe
[ "MIT" ]
6
2018-11-13T08:11:23.000Z
2021-08-29T22:52:57.000Z
src/services/checks.py
anandmoghan/speaker-recognition
ff5557e89b686b1da3e3eb30e3dad9bf851e7bbe
[ "MIT" ]
null
null
null
src/services/checks.py
anandmoghan/speaker-recognition
ff5557e89b686b1da3e3eb30e3dad9bf851e7bbe
[ "MIT" ]
3
2019-04-08T03:38:20.000Z
2020-03-12T05:02:53.000Z
from os.path import join as join_path, exists from constants.app_constants import VAD_DIR, EMB_DIR, FEATS_SCP_FILE from services.kaldi import spaced_file_to_dict def check_embeddings(save_loc, model_tag, args_list): emb_loc = join_path(join_path(save_loc, EMB_DIR), model_tag) fails = 0 for i, args in enu...
30.735294
77
0.669856
88abb236d69f9c222d9b57098900f939f0100033
4,051
py
Python
qa/rpc-tests/merkle_blocks.py
swampcoin/HTH-Legacy
211601d06a164b0ae9e6ad181aff432c16363b9b
[ "MIT" ]
19
2018-07-03T14:39:26.000Z
2019-08-06T13:32:29.000Z
qa/rpc-tests/merkle_blocks.py
HTHcoin/HTH-Legacy-old-chain
86af89e76436ff4fcd12ea8e7c51b8b5e48becb4
[ "MIT" ]
7
2018-10-17T03:57:13.000Z
2019-04-05T01:14:20.000Z
qa/rpc-tests/merkle_blocks.py
HTHcoin/HTH-Legacy-old-chain
86af89e76436ff4fcd12ea8e7c51b8b5e48becb4
[ "MIT" ]
12
2018-07-11T12:50:03.000Z
2019-03-01T22:07:42.000Z
#!/usr/bin/env python2 # Copyright (c) 2014-2015 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Test merkleblock fetch/validation # from test_framework.test_framework import BitcoinTestFramework f...
45.516854
120
0.671439
d52dced41205184c0861a4c0685500e42da8a573
7,784
py
Python
gui/db_config.py
kugurst/leviathans-breath
e025f607bb12bf0a914ce63cfdde591d8931c6e7
[ "CC-BY-4.0" ]
null
null
null
gui/db_config.py
kugurst/leviathans-breath
e025f607bb12bf0a914ce63cfdde591d8931c6e7
[ "CC-BY-4.0" ]
null
null
null
gui/db_config.py
kugurst/leviathans-breath
e025f607bb12bf0a914ce63cfdde591d8931c6e7
[ "CC-BY-4.0" ]
null
null
null
import leviathans_breath import yaml class SerializableClass(object): INVALID_INDEX = -1 def to_dict(self): return {attr: getattr(self, attr) for attr in vars(self)} @classmethod def from_dict(cls, data): ret = cls() for key in data: if hasattr(ret, key): ...
33.991266
120
0.649024
354b34e085eb8b5992bb62a69ed17070fa9d67b5
1,581
py
Python
mann/layers/MultiMaxPool2D.py
Beyond-ML-Labs/mann
ec613670648f8ae857ef72d4dc171c238c4ae41e
[ "Apache-2.0" ]
10
2021-11-12T20:25:19.000Z
2022-02-25T21:35:56.000Z
mann/layers/MultiMaxPool2D.py
Beyond-ML-Labs/mann
ec613670648f8ae857ef72d4dc171c238c4ae41e
[ "Apache-2.0" ]
1
2022-01-21T17:05:02.000Z
2022-01-24T18:05:35.000Z
mann/layers/MultiMaxPool2D.py
Beyond-ML-Labs/mann
ec613670648f8ae857ef72d4dc171c238c4ae41e
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf from tensorflow.keras.layers import Layer class MultiMaxPool2D(Layer): """ Multitask Max Pooling Layer. This layer implements the Max Pooling algorithm across multiple inputs for developing multitask models """ def __init__( self, pool_size = (2, 2), ...
28.745455
80
0.527514
0d004be21a2c461da68777ae651117ff46033b51
11,293
py
Python
examples/publication_software/mne_interpolation.py
SAFedorov/bfieldtools
7e64bc2033670f01d2b90df2210b60743731a948
[ "BSD-3-Clause" ]
17
2020-05-22T19:39:39.000Z
2022-03-15T19:03:09.000Z
examples/publication_software/mne_interpolation.py
SAFedorov/bfieldtools
7e64bc2033670f01d2b90df2210b60743731a948
[ "BSD-3-Clause" ]
27
2020-05-20T14:22:41.000Z
2022-01-10T18:30:12.000Z
examples/publication_software/mne_interpolation.py
SAFedorov/bfieldtools
7e64bc2033670f01d2b90df2210b60743731a948
[ "BSD-3-Clause" ]
8
2020-08-12T10:30:50.000Z
2022-03-22T12:21:33.000Z
""" Field interpolation example using equivalent surface currents ============================================================== """ import numpy as np from bfieldtools.mesh_conductor import MeshConductor, StreamFunction from mayavi import mlab import trimesh import mne PLOT = True SAVE_FIGURES = True IMPORT_MNE_DAT...
29.408854
88
0.646064
ad3afe89683f58fdcc2fc0a353554862cbe165a9
2,698
py
Python
superset/db_engine_specs/hana.py
axuew/incubator-superset
9cd8e6f90690ce8839960b83eab3fd8a2c78c46b
[ "Apache-2.0" ]
1
2019-11-12T09:38:18.000Z
2019-11-12T09:38:18.000Z
superset/db_engine_specs/hana.py
axuew/incubator-superset
9cd8e6f90690ce8839960b83eab3fd8a2c78c46b
[ "Apache-2.0" ]
null
null
null
superset/db_engine_specs/hana.py
axuew/incubator-superset
9cd8e6f90690ce8839960b83eab3fd8a2c78c46b
[ "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 u...
40.878788
87
0.644552
19d562f2c93d499461e64be979218c86a85613d8
1,936
py
Python
tests/test_winapps.py
qcktap23/winapps
7bb0221c7139e70c69f4f80de20e96ebf48d05e0
[ "Apache-2.0" ]
12
2020-05-24T09:39:28.000Z
2022-03-13T14:34:38.000Z
tests/test_winapps.py
qcktap23/winapps
7bb0221c7139e70c69f4f80de20e96ebf48d05e0
[ "Apache-2.0" ]
8
2019-12-27T04:28:18.000Z
2021-04-02T16:26:50.000Z
tests/test_winapps.py
qcktap23/winapps
7bb0221c7139e70c69f4f80de20e96ebf48d05e0
[ "Apache-2.0" ]
9
2020-01-08T17:08:59.000Z
2022-02-23T08:09:05.000Z
import re from pathlib import Path from tempfile import TemporaryDirectory from time import sleep from typing import Optional, Callable from urllib.request import urlretrieve import pytest from plumbum.machines import local import winapps from winapps import InstalledApplication NPP_NAME = 'Notepad++ (32-bit x86)' ...
28.895522
91
0.749483
d0fa3d62301369d8b39ba44e9c2f3e46e8357c09
7,331
py
Python
tests/common/models/test_lock.py
angry-tony/ceph-lcm-decapod
535944d3ee384c3a7c4af82f74041b0a7792433f
[ "Apache-2.0" ]
41
2016-11-03T16:40:17.000Z
2019-05-23T08:39:17.000Z
tests/common/models/test_lock.py
Mirantis/ceph-lcm
fad9bad0b94f2ef608362953583b10a54a841d24
[ "Apache-2.0" ]
30
2016-10-14T10:54:46.000Z
2017-10-20T15:58:01.000Z
tests/common/models/test_lock.py
angry-tony/ceph-lcm-decapod
535944d3ee384c3a7c4af82f74041b0a7792433f
[ "Apache-2.0" ]
28
2016-09-17T01:17:36.000Z
2019-07-05T03:32:54.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2016 Mirantis 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 ...
30.293388
79
0.733051
2cb1cf83ac67e97817c6d57a7de9304707406728
9,845
py
Python
test/functional/wallet_listsinceblock.py
IBACOIN/IBA
ec8d2f49a11575b00f2ebb9f3e94e21af65e52f2
[ "MIT" ]
2
2022-01-15T21:30:29.000Z
2022-01-15T21:30:31.000Z
test/functional/wallet_listsinceblock.py
martin-braun/IBA
1b43bf81e8dd35dabd005c81088e66d8abd00e84
[ "MIT" ]
null
null
null
test/functional/wallet_listsinceblock.py
martin-braun/IBA
1b43bf81e8dd35dabd005c81088e66d8abd00e84
[ "MIT" ]
2
2021-09-28T14:58:15.000Z
2021-09-28T15:47:47.000Z
#!/usr/bin/env python3 # Copyright (c) 2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the listsincelast RPC.""" from test_framework.test_framework import ibacoinTestFramework from test_fra...
34.184028
116
0.583037
44670c29603d0332ac2af989986a6c53cde29295
1,178
py
Python
tests/user_ratings_manager_test.py
Asa-Nisi-Masa/movie-recommender
92752aa302e166885ab3e39b3e9d2ac9185a013e
[ "MIT" ]
null
null
null
tests/user_ratings_manager_test.py
Asa-Nisi-Masa/movie-recommender
92752aa302e166885ab3e39b3e9d2ac9185a013e
[ "MIT" ]
null
null
null
tests/user_ratings_manager_test.py
Asa-Nisi-Masa/movie-recommender
92752aa302e166885ab3e39b3e9d2ac9185a013e
[ "MIT" ]
null
null
null
import unittest from app import api from src.services.test_db_manager import test_db_manager from src.movie_exception import MovieException class UserRatingsManagerTest(unittest.TestCase): @classmethod def setUpClass(cls): test_db_manager.setup_test_db() @classmethod def tearDownClass(cls):...
30.205128
98
0.673175
2b0146e7d1db669fe7dffc1afebc63e12837c0f9
18,549
py
Python
etl/src/energuide/embedded/basement.py
Rockynrcan/nrcan_api
13d8fb306d8185f6bcd082c559ad3fe8b4340cc7
[ "MIT" ]
7
2017-12-15T03:58:29.000Z
2018-04-23T22:48:53.000Z
etl/src/energuide/embedded/basement.py
Rockynrcan/nrcan_api
13d8fb306d8185f6bcd082c559ad3fe8b4340cc7
[ "MIT" ]
137
2018-01-24T16:44:57.000Z
2018-06-25T14:02:10.000Z
etl/src/energuide/embedded/basement.py
Rockynrcan/nrcan_api
13d8fb306d8185f6bcd082c559ad3fe8b4340cc7
[ "MIT" ]
4
2018-02-15T12:40:52.000Z
2018-07-03T14:22:51.000Z
import enum import typing from energuide import element from energuide import bilingual from energuide.embedded import area from energuide.embedded import distance from energuide.embedded import insulation from energuide.exceptions import ElementGetValueError from energuide.exceptions import InvalidEmbeddedDataTypeErro...
38.56341
119
0.647744
945e90ed7bd893469104f24efac142ad6a8d4ff4
6,019
py
Python
pdffitx/peakmatcher.py
xpdAcq/pdffitx
56d8415bba2bd6ff4d59cae7e1c5308f6e356997
[ "BSD-3-Clause" ]
1
2022-03-10T11:59:34.000Z
2022-03-10T11:59:34.000Z
pdffitx/peakmatcher.py
xpdAcq/pdffitx
56d8415bba2bd6ff4d59cae7e1c5308f6e356997
[ "BSD-3-Clause" ]
null
null
null
pdffitx/peakmatcher.py
xpdAcq/pdffitx
56d8415bba2bd6ff4d59cae7e1c5308f6e356997
[ "BSD-3-Clause" ]
2
2020-12-14T18:38:43.000Z
2022-03-30T00:25:35.000Z
import typing import functools from dataclasses import dataclass import xarray as xr import numpy as np from scipy.signal import find_peaks from diffpy.srreal.bondcalculator import BondCalculator from pyobjcryst.crystal import Crystal from pyobjcryst import loadCrystal class PeakMactherError(Exception): pass @...
26.870536
107
0.540954
f593fcdad09292a91b67810189588ad7f051e1a4
16,120
py
Python
pypahdb/decomposer_base.py
mattjshannon/pyPAHdb
3592dbd843737e8ee7aa12a5e3a93c4a049bcd93
[ "BSD-3-Clause" ]
null
null
null
pypahdb/decomposer_base.py
mattjshannon/pyPAHdb
3592dbd843737e8ee7aa12a5e3a93c4a049bcd93
[ "BSD-3-Clause" ]
null
null
null
pypahdb/decomposer_base.py
mattjshannon/pyPAHdb
3592dbd843737e8ee7aa12a5e3a93c4a049bcd93
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 """ decomposer_base.py Using a precomputed matrix of theoretically calculated PAH emission spectra, an input spectrum is fitted and decomposed into contributing PAH subclasses using a NNLS-approach. This file is part of pypahdb - see the module docs for more information. """ import multiproces...
37.314815
79
0.531638
d2254f13e09e6ac00057ec1a917accd1871a5845
11,680
py
Python
Src/StdLib/Lib/lib2to3/tests/test_parser.py
cwensley/ironpython2
f854444e1e08afc8850cb7c1a739a7dd2d10d32a
[ "Apache-2.0" ]
1,078
2016-07-19T02:48:30.000Z
2022-03-30T21:22:34.000Z
Src/StdLib/Lib/lib2to3/tests/test_parser.py
cwensley/ironpython2
f854444e1e08afc8850cb7c1a739a7dd2d10d32a
[ "Apache-2.0" ]
576
2017-05-21T12:36:48.000Z
2022-03-30T13:47:03.000Z
Src/StdLib/Lib/lib2to3/tests/test_parser.py
cwensley/ironpython2
f854444e1e08afc8850cb7c1a739a7dd2d10d32a
[ "Apache-2.0" ]
269
2017-05-21T04:44:47.000Z
2022-03-31T16:18:13.000Z
"""Test suite for 2to3's parser and grammar files. This is the place to add tests for changes to 2to3's grammar, such as those merging the grammars for Python 2 and 3. In addition to specific tests for parts of the grammar we've changed, we also make sure we can parse the test_grammar.py files from both Python 2 and P...
32.534819
79
0.603682
9b8ecc22ba7f6d8743b4c3d4eb68144ef038a691
7,693
py
Python
uds/packet/can_packet_record.py
mdabrowski1990/uds
1aee0c1de446ee3dd461706949504f2c218db1e8
[ "MIT" ]
18
2021-03-28T22:39:18.000Z
2022-02-13T21:50:37.000Z
uds/packet/can_packet_record.py
mdabrowski1990/uds
1aee0c1de446ee3dd461706949504f2c218db1e8
[ "MIT" ]
153
2021-02-09T09:27:05.000Z
2022-03-29T06:09:15.000Z
uds/packet/can_packet_record.py
mdabrowski1990/uds
1aee0c1de446ee3dd461706949504f2c218db1e8
[ "MIT" ]
1
2021-05-13T16:01:46.000Z
2021-05-13T16:01:46.000Z
"""CAN bus specific implementation of UDS packets records.""" __all__ = ["CanPacketRecord"] from typing import Union, Any, Optional from datetime import datetime from can import Message as PythonCanMessage from uds.utilities import RawByte, RawBytesTuple, InconsistentArgumentsError from uds.transmission_attributes ...
46.343373
117
0.705317
5c9e858ae45004d6f6151b6a70506d233613e3bf
6,246
py
Python
ibstract/brokers.py
ningliuio/ibstract
070f52aef33932cb851e9661719cd3a7d1c367f0
[ "MIT" ]
12
2017-10-30T10:33:29.000Z
2020-01-27T20:53:43.000Z
ibstract/brokers.py
ningliuio/ibstract
070f52aef33932cb851e9661719cd3a7d1c367f0
[ "MIT" ]
2
2017-10-22T13:30:59.000Z
2019-10-10T16:55:27.000Z
ibstract/brokers.py
ningliuio/ibstract
070f52aef33932cb851e9661719cd3a7d1c367f0
[ "MIT" ]
3
2017-10-30T10:33:31.000Z
2019-05-24T19:09:08.000Z
""" Async concurrent operations on brokers API. """ import logging import pytz import abc import asyncio import ib_insync from .utils import timedur_to_IB, barsize_to_IB from .utils import timezone_abbrv from .ibglobals import IB_HIST_DATA_TYPES from .ibglobals import IB_HIST_DATA_STEPS from .marketdata import MarketD...
35.691429
79
0.642171
3e3af0f5a36f1a3d870dbea6d0ab92b686de06ed
1,198
py
Python
addons/google_calendar/models/calendar_attendee.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
addons/google_calendar/models/calendar_attendee.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
addons/google_calendar/models/calendar_attendee.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import models from odoo.addons.google_calendar.models.google_sync import google_calendar_token from odoo.addons.google_calendar.utils.google_calendar import GoogleCalendarService class Attendee(models.Model):...
41.310345
97
0.704508
7c98840aa507c9e33234f6e92b2ae0543dc11948
249
py
Python
day_5/Linked List(Introduction).py
ujjwal002/100daysofDSA
d015973d9256923c2fe7cae74f8cf0b167e74456
[ "MIT" ]
1
2021-03-08T14:47:24.000Z
2021-03-08T14:47:24.000Z
day_5/Linked List(Introduction).py
ujjwal002/100daysofDSA
d015973d9256923c2fe7cae74f8cf0b167e74456
[ "MIT" ]
null
null
null
day_5/Linked List(Introduction).py
ujjwal002/100daysofDSA
d015973d9256923c2fe7cae74f8cf0b167e74456
[ "MIT" ]
null
null
null
class Node: def __init__(self, data): self.data = data # Assign data self.next = None # Initialize class LinkedList: def __init__(self): # List object self.head = None
20.75
40
0.497992
1db8d0b2c331c68a0d1d954a9e33983c8ff787ff
2,309
py
Python
tests/perf/perf_plot.py
rurban/ctl
3923e6776a231e5d58cf91225ca8a1d61879401b
[ "MIT" ]
88
2021-01-14T22:46:35.000Z
2022-03-29T04:55:49.000Z
tests/perf/perf_plot.py
rurban/ctl
3923e6776a231e5d58cf91225ca8a1d61879401b
[ "MIT" ]
24
2021-01-11T08:49:57.000Z
2022-02-04T22:25:39.000Z
tests/perf/perf_plot.py
rurban/ctl
3923e6776a231e5d58cf91225ca8a1d61879401b
[ "MIT" ]
4
2022-02-04T21:14:32.000Z
2022-03-01T05:36:10.000Z
import plotly.graph_objs as go import sys import string def lines_from_file(log_fname): with open(log_fname, "r") as f: file_raw = f.read() file_lines = file_raw.split("\n") return file_lines def plot_data_from_file(file_lines): name_plot_hash = {} fname_base = None fname_ext = None ...
30.786667
84
0.601559
430ed800da6080eec03b857ed33a621f57781388
3,581
py
Python
django/contrib/contenttypes/views.py
deployed/django
9db4271bd11ac23a5a5652bbcdf8fb6d4b997651
[ "BSD-3-Clause" ]
1
2018-12-10T12:21:40.000Z
2018-12-10T12:21:40.000Z
django/contrib/contenttypes/views.py
avkryukov/django
f90be002d9d3c10b87c74741986e2cbf9f2b858e
[ "BSD-3-Clause" ]
null
null
null
django/contrib/contenttypes/views.py
avkryukov/django
f90be002d9d3c10b87c74741986e2cbf9f2b858e
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals from django import http from django.apps import apps from django.contrib.contenttypes.models import ContentType from django.contrib.sites.requests import RequestSite from django.core.exceptions import ObjectDoesNotExist from django.utils.translation import ugettext as _ def sh...
39.351648
92
0.611561
b6484b73b8a8b3c2d72ebcd32b098fde4d12ca8d
3,111
py
Python
sync.py
wzpan/git-repo-sync
015b8cb2f64b7c3a8c9d02fb0d66f36dc5036c42
[ "MIT" ]
2
2019-01-18T10:53:49.000Z
2019-04-24T12:49:04.000Z
sync.py
wzpan/git-repo-sync
015b8cb2f64b7c3a8c9d02fb0d66f36dc5036c42
[ "MIT" ]
null
null
null
sync.py
wzpan/git-repo-sync
015b8cb2f64b7c3a8c9d02fb0d66f36dc5036c42
[ "MIT" ]
8
2017-06-16T02:06:49.000Z
2021-08-23T05:44:46.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # author: wzpan # this script is used for transfer codes from source repo to target repo # python sync.py <source repo> <target repo> import io import os import sys import time import subprocess import shutil reload(sys) sys.setdefaultencoding('utf8') def get_tmp_folder_name...
34.186813
126
0.596914
73df826d1ce6365807bfb359e6bb3eb2ccb2197c
10,616
py
Python
research/object_detection/models/faster_rcnn_inception_v2_feature_extractor.py
SimiaCryptus/models
c652a23a650070b71e286f1ded93726670161940
[ "Apache-2.0" ]
null
null
null
research/object_detection/models/faster_rcnn_inception_v2_feature_extractor.py
SimiaCryptus/models
c652a23a650070b71e286f1ded93726670161940
[ "Apache-2.0" ]
null
null
null
research/object_detection/models/faster_rcnn_inception_v2_feature_extractor.py
SimiaCryptus/models
c652a23a650070b71e286f1ded93726670161940
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
41.795276
80
0.594103
f41c3ed6819b99512b4374b8a4b985551d5b5e0b
4,921
py
Python
apps/log_esquery/qos.py
qqqqqie/bk-log
1765f1901aafaa6fb6a57b8db5d35dd32b3cb5c1
[ "MIT" ]
75
2021-07-14T09:32:36.000Z
2022-03-31T15:26:53.000Z
apps/log_esquery/qos.py
qqqqqie/bk-log
1765f1901aafaa6fb6a57b8db5d35dd32b3cb5c1
[ "MIT" ]
561
2021-07-14T07:45:47.000Z
2022-03-31T11:41:28.000Z
apps/log_esquery/qos.py
qqqqqie/bk-log
1765f1901aafaa6fb6a57b8db5d35dd32b3cb5c1
[ "MIT" ]
41
2021-07-14T07:39:50.000Z
2022-03-25T09:22:18.000Z
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making BK-LOG 蓝鲸日志平台 available. Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. BK-LOG 蓝鲸日志平台 is licensed under the MIT License. License for BK-LOG 蓝鲸日志平台: ------------------------------------------------...
35.65942
113
0.71327
a4d9c0399ead1c8f47d501b906539509eb0eb0e0
9,837
py
Python
scripts/ldap/create_account_using_cipher.py
SaumitraK531/cortx-s3server
dc3135b99f888fb0d6ce2ed8897c9c5e0bca1865
[ "Apache-2.0" ]
null
null
null
scripts/ldap/create_account_using_cipher.py
SaumitraK531/cortx-s3server
dc3135b99f888fb0d6ce2ed8897c9c5e0bca1865
[ "Apache-2.0" ]
null
null
null
scripts/ldap/create_account_using_cipher.py
SaumitraK531/cortx-s3server
dc3135b99f888fb0d6ce2ed8897c9c5e0bca1865
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (c) 2020 Seagate Technology LLC and/or its Affiliates # # 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 # ...
34.038062
145
0.664329
52956db0e706ff604c96f13b18cbf08dc5350478
28,737
py
Python
bot.py
aliyazdani04/mehdi
b1bf0408aa1f407a8519ebd1acf57579221ce9c3
[ "MIT" ]
null
null
null
bot.py
aliyazdani04/mehdi
b1bf0408aa1f407a8519ebd1acf57579221ce9c3
[ "MIT" ]
null
null
null
bot.py
aliyazdani04/mehdi
b1bf0408aa1f407a8519ebd1acf57579221ce9c3
[ "MIT" ]
null
null
null
from requests import get from re import findall import os import glob from rubika.client import Bot import requests from rubika.tools import Tools from rubika.encryption import encryption from gtts import gTTS from mutagen.mp3 import MP3 import time import random import urllib import io print ("welcome, Created By Ali...
44.347222
308
0.608136
fd8a0fbc697e42233a0a046b8eaa1ab2abfa2ead
2,580
py
Python
server/alembic/env.py
wis-software/hubot-huntflow-reloaded
b8886bb304006dd936c9d1caf6c6f3c8fc36a124
[ "Apache-2.0" ]
null
null
null
server/alembic/env.py
wis-software/hubot-huntflow-reloaded
b8886bb304006dd936c9d1caf6c6f3c8fc36a124
[ "Apache-2.0" ]
null
null
null
server/alembic/env.py
wis-software/hubot-huntflow-reloaded
b8886bb304006dd936c9d1caf6c6f3c8fc36a124
[ "Apache-2.0" ]
null
null
null
""" Alembic environment variables """ from __future__ import with_statement import os from logging.config import fileConfig from sqlalchemy import engine_from_config, pool from alembic import context from huntflow_reloaded.models import DB as target_metadata # pylint: disable=import-error # this is the Alembic Co...
30
90
0.720543
715278f3ee43ca929db1307619a9622b31074b6f
3,341
py
Python
apache_replay/script.py
danizen/apache-replay
5e5cc8d0df693f2367d188d71099041c6a65317f
[ "MIT" ]
null
null
null
apache_replay/script.py
danizen/apache-replay
5e5cc8d0df693f2367d188d71099041c6a65317f
[ "MIT" ]
null
null
null
apache_replay/script.py
danizen/apache-replay
5e5cc8d0df693f2367d188d71099041c6a65317f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from datetime import datetime import time import argparse import glob import sys import os from apache_replay import * def valid_datetime_type(arg_datetime_str): """custom argparse type for user datetime values given from the command line""" formats = [ '%Y-%m-%dT%H:%M:%S', ...
33.079208
113
0.61718
dcdb2921985d434ef55d3e80e6724505bad359f8
5,159
py
Python
tests.py
joaoavf/MarkovNetwork
3989abf6de879af6982a76ea3522f11f789c6569
[ "MIT" ]
42
2016-03-28T18:42:23.000Z
2020-03-26T17:11:16.000Z
tests.py
joaoavf/MarkovNetwork
3989abf6de879af6982a76ea3522f11f789c6569
[ "MIT" ]
3
2016-03-31T07:27:11.000Z
2018-07-13T19:18:18.000Z
tests.py
joaoavf/MarkovNetwork
3989abf6de879af6982a76ea3522f11f789c6569
[ "MIT" ]
27
2016-03-30T21:18:08.000Z
2022-02-14T03:45:29.000Z
# -*- coding: utf-8 -*- """ Copyright 2016 Randal S. Olson 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...
38.789474
108
0.672611
486a7669a34ac3357cd181d7dade2f00939e9b35
10,024
py
Python
networkTimeUtils.py
tgadf/network
20817b92f2983eb621a80ce59145d332f1fa52da
[ "MIT" ]
null
null
null
networkTimeUtils.py
tgadf/network
20817b92f2983eb621a80ce59145d332f1fa52da
[ "MIT" ]
null
null
null
networkTimeUtils.py
tgadf/network
20817b92f2983eb621a80ce59145d332f1fa52da
[ "MIT" ]
null
null
null
# coding: utf-8 import pandas as pd from timeUtils import clock, elapsed, getTimeSuffix, getDateTime, addDays, printDateTime, getFirstLastDay from pandasUtils import castDateTime, castInt64, cutDataFrameByDate, convertToDate, isSeries, isDataFrame, getColData from geoUtils import getDist import geohash #############...
37.263941
242
0.4999
46b0afab26b8d5fa21f575e4cd0d1345de5e62aa
1,858
py
Python
Uebung/Uebung2/src/exercise2.py
StefanoD/ComputerVision
115bcb85221842946d061d319b3caae95236f023
[ "Apache-2.0" ]
null
null
null
Uebung/Uebung2/src/exercise2.py
StefanoD/ComputerVision
115bcb85221842946d061d319b3caae95236f023
[ "Apache-2.0" ]
null
null
null
Uebung/Uebung2/src/exercise2.py
StefanoD/ComputerVision
115bcb85221842946d061d319b3caae95236f023
[ "Apache-2.0" ]
1
2020-07-14T21:25:47.000Z
2020-07-14T21:25:47.000Z
import numpy as np from scipy.misc import imsave from libcore import Img from libcore import DistortionCorrection, DistortionCorrectionPoint image_path = '../schraegbild_tempelhof.jpg' def main(): b1() def b1(): image = Img.load_image(image_path) target_image_size_height = 900 target_image_size_w...
28.584615
145
0.731432
f0e96d2656d15779efa1196afa273cd2527388ff
1,723
py
Python
the_pianist.py
GYosifov88/Python-Fundamentals
b46ba2822bd2dac6ff46830c6a520e559b448442
[ "MIT" ]
null
null
null
the_pianist.py
GYosifov88/Python-Fundamentals
b46ba2822bd2dac6ff46830c6a520e559b448442
[ "MIT" ]
null
null
null
the_pianist.py
GYosifov88/Python-Fundamentals
b46ba2822bd2dac6ff46830c6a520e559b448442
[ "MIT" ]
null
null
null
number_of_pieces = int(input()) song_list = dict() for n in range (number_of_pieces): pieces = input().split('|') piece = pieces[0] composer = pieces[1] key = pieces[2] song_list[piece]= list() song_list[piece].append(composer) song_list[piece].append(key) command = input() while command !...
35.163265
93
0.629135
d655ff8427a12019d975a07c8e19cd8c69d5e686
5,015
py
Python
qa/rpc-tests/spentindex.py
Ankh-Trust/credit-core
fa6fd67bdc9846cc40ee24f9a64e610e634b9356
[ "MIT" ]
2
2019-10-31T11:56:31.000Z
2019-11-02T08:48:45.000Z
qa/rpc-tests/spentindex.py
Ankh-fdn/credit-core
fa6fd67bdc9846cc40ee24f9a64e610e634b9356
[ "MIT" ]
2
2019-11-22T18:49:20.000Z
2020-10-06T11:44:46.000Z
qa/rpc-tests/spentindex.py
Ankh-fdn/credit-core
fa6fd67bdc9846cc40ee24f9a64e610e634b9356
[ "MIT" ]
1
2020-06-09T16:15:27.000Z
2020-06-09T16:15:27.000Z
#!/usr/bin/env python2 # Copyright (c) 2016-2017 The Duality Blockchain Solutions developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Test addressindex generation and fetching # import time from test_framework.test_fra...
41.791667
104
0.66341
3771fc6dff8c2924fe57ee8347a3a5abe80fb561
115
py
Python
tests/test_urlstatus.py
zen-lover/rss-py
b3c9a537a33aee9f3a301294a1b7c3f27a5ade44
[ "MIT" ]
1
2020-12-28T11:07:28.000Z
2020-12-28T11:07:28.000Z
tests/test_urlstatus.py
zen-lover/rss-py
b3c9a537a33aee9f3a301294a1b7c3f27a5ade44
[ "MIT" ]
null
null
null
tests/test_urlstatus.py
zen-lover/rss-py
b3c9a537a33aee9f3a301294a1b7c3f27a5ade44
[ "MIT" ]
null
null
null
from requests import get def test_statuscode(): assert get('http://farsi.khamenei.ir/rss').status_code == 200
23
65
0.730435
76a7751fa95c62e5aad36f39c50074eb60bbb736
9,564
py
Python
fastai/torch_core.py
joshfp/fastai
eb455070adaea072b4771e340d48a371c6c0c4e2
[ "Apache-2.0" ]
1
2019-01-29T22:13:29.000Z
2019-01-29T22:13:29.000Z
fastai/torch_core.py
jamesrequa/fastai
794365cd7f734b5e1027d7e19c99e648fbb9a12b
[ "Apache-2.0" ]
null
null
null
fastai/torch_core.py
jamesrequa/fastai
794365cd7f734b5e1027d7e19c99e648fbb9a12b
[ "Apache-2.0" ]
null
null
null
"Utility functions to help deal with tensors" from .imports.torch import * from .core import * AffineMatrix = Tensor BoolOrTensor = Union[bool,Tensor] FloatOrTensor = Union[float,Tensor] IntOrTensor = Union[int,Tensor] ItemsList = Collection[Union[Tensor,ItemBase,'ItemsList',float,int]] LambdaFunc = Callable[[Tensor],...
42.318584
117
0.711104
1146c1364f1d1a75f273a3043617f516155f3223
20,331
py
Python
pypy/lang/gameboy/test/test_memory_bank_controller.py
woodrow/pyoac
b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7
[ "MIT" ]
1
2019-05-27T00:58:46.000Z
2019-05-27T00:58:46.000Z
pypy/lang/gameboy/test/test_memory_bank_controller.py
woodrow/pyoac
b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7
[ "MIT" ]
null
null
null
pypy/lang/gameboy/test/test_memory_bank_controller.py
woodrow/pyoac
b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7
[ "MIT" ]
null
null
null
from pypy.lang.gameboy.cartridge import * from pypy.lang.gameboy.timer import Clock from pypy.lang.gameboy import constants import py class TestClock(object): def __init__(self): self.time = 0 def get_time(self): return self.time def get_clock_driver(): return Clock() RAM_SIZE...
29.723684
81
0.568688
839d3aa889641f95fc3f7bd223dfbf902b27cdf9
32,804
py
Python
timepiece/contracts/tests/test_invoices.py
sha-red/django-timepiece
52515dec027664890efbc535429e1ba1ee152f40
[ "MIT" ]
244
2015-01-08T11:06:52.000Z
2022-03-24T14:59:26.000Z
timepiece/contracts/tests/test_invoices.py
skampala1/django-timepiece
52515dec027664890efbc535429e1ba1ee152f40
[ "MIT" ]
80
2015-01-23T13:45:02.000Z
2021-11-25T09:17:05.000Z
timepiece/contracts/tests/test_invoices.py
anfema/django-timepiece
c4594ae053bdb14c1dd7f17f32c6ef1bf0f3b453
[ "MIT" ]
109
2015-01-24T06:52:56.000Z
2022-03-29T09:35:06.000Z
import datetime from dateutil.relativedelta import relativedelta import random from six.moves.urllib.parse import urlencode from django.contrib.auth.models import Permission from django.core.urlresolvers import reverse from django.test import TestCase from timepiece import utils from timepiece.forms import DATE_FORM...
44.449864
91
0.647848
3166f75655d99d962a9b8c00a52abfdcf710f25a
649
py
Python
venv/Scripts/rst2xml.py
jf-horton/Chefsaid-Mobile-App-Python-Kivy-Private
dfcd45b358773652e23aee475db838108b97ace3
[ "MIT" ]
null
null
null
venv/Scripts/rst2xml.py
jf-horton/Chefsaid-Mobile-App-Python-Kivy-Private
dfcd45b358773652e23aee475db838108b97ace3
[ "MIT" ]
null
null
null
venv/Scripts/rst2xml.py
jf-horton/Chefsaid-Mobile-App-Python-Kivy-Private
dfcd45b358773652e23aee475db838108b97ace3
[ "MIT" ]
null
null
null
#!C:\Users\Jared\PycharmProjects\Chefsaid\venv\Scripts\python.exe # $Id: rst2xml.py 4564 2006-05-21 20:44:42Z wiemann $ # Author: David Goodger <goodger@python.org> # Copyright: This module has been placed in the public domain. """ A minimal front end to the Docutils Publisher, producing Docutils XML. """ try: i...
27.041667
70
0.745763
d9b869f8788d407282939e4dea75ee95a9de1387
1,094
py
Python
agent/src/agent/cli/prompt/pipeline/kafka.py
anodot/daria
d475899309f56cd85347be0f7001a0dd97dd197a
[ "Apache-2.0" ]
16
2019-04-03T08:31:54.000Z
2021-01-24T17:12:04.000Z
agent/src/agent/cli/prompt/pipeline/kafka.py
anodot/daria
d475899309f56cd85347be0f7001a0dd97dd197a
[ "Apache-2.0" ]
10
2020-01-20T14:59:06.000Z
2022-01-21T10:19:16.000Z
agent/src/agent/cli/prompt/pipeline/kafka.py
anodot/daria
d475899309f56cd85347be0f7001a0dd97dd197a
[ "Apache-2.0" ]
5
2021-01-08T19:23:03.000Z
2021-11-09T14:15:49.000Z
import click from .schemaless import SchemalessPrompter from agent import source class KafkaPrompter(SchemalessPrompter): timestamp_types = ['datetime', 'string', 'unix', 'unix_ms'] target_types = ['counter', 'gauge', 'running_counter'] def prompt_config(self): self.data_preview() self.se...
35.290323
91
0.694698
9a25f040299b6dd620a36a71720e9a4906479c00
10,059
py
Python
src/sanger_sequencing/analysis/summary.py
biosustain/sanger-sequencing
eefedd79b625062f919910e4b3df8a4c428662c7
[ "Apache-2.0" ]
1
2021-10-04T13:46:45.000Z
2021-10-04T13:46:45.000Z
src/sanger_sequencing/analysis/summary.py
biosustain/sanger-sequencing
eefedd79b625062f919910e4b3df8a4c428662c7
[ "Apache-2.0" ]
null
null
null
src/sanger_sequencing/analysis/summary.py
biosustain/sanger-sequencing
eefedd79b625062f919910e4b3df8a4c428662c7
[ "Apache-2.0" ]
3
2020-01-16T11:32:46.000Z
2021-08-04T01:08:07.000Z
# Copyright (c) 2018-2020 Novo Nordisk Foundation Center for Biosustainability, # Technical University of Denmark. # # 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.o...
37.255556
87
0.628691
82cf36027b9faec8e3ea8362700828431a1e7137
551
py
Python
mc2/organizations/migrations/0003_auto_update_is_app_admin_help_text.py
praekeltfoundation/mc2
5367a8aed309fade0f17bc72efa099b0afc76aa7
[ "BSD-2-Clause" ]
4
2016-03-09T00:51:17.000Z
2017-10-05T23:54:00.000Z
mc2/organizations/migrations/0003_auto_update_is_app_admin_help_text.py
praekeltfoundation/mc2
5367a8aed309fade0f17bc72efa099b0afc76aa7
[ "BSD-2-Clause" ]
131
2015-11-19T16:45:23.000Z
2018-07-24T09:36:08.000Z
mc2/organizations/migrations/0003_auto_update_is_app_admin_help_text.py
praekeltfoundation/mc2
5367a8aed309fade0f17bc72efa099b0afc76aa7
[ "BSD-2-Clause" ]
2
2016-07-30T15:36:23.000Z
2017-09-18T12:40:11.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('organizations', '0002_organizationuserrelation_is_app_admin'), ] operations = [ migrations.AlterField( model_nam...
27.55
150
0.676951
cdedc3ad1ef7b4f86b652f3d4d4125dbdae16594
2,664
py
Python
text_classification/data.py
simran-arora/emmental-tutorials
249a82a57be58e960408a45e2e0daa72980d210a
[ "MIT" ]
null
null
null
text_classification/data.py
simran-arora/emmental-tutorials
249a82a57be58e960408a45e2e0daa72980d210a
[ "MIT" ]
null
null
null
text_classification/data.py
simran-arora/emmental-tutorials
249a82a57be58e960408a45e2e0daa72980d210a
[ "MIT" ]
null
null
null
import logging import torch from dataloader import ( cv_split, cv_split2, load_CR, load_MPQA, load_MR, load_SST, load_SUBJ, load_TREC, ) from emmental.data import EmmentalDataLoader, EmmentalDataset logger = logging.getLogger(__name__) load_dataset = { "mr": load_MR, "subj":...
25.615385
86
0.576577
03cb7e7841991fe79dfcbb45980ca2d2084cab30
1,486
py
Python
maskrcnn_benchmark/data/transforms/build.py
mouyuanyap/maskrcnn_benchmark
e8abcce20f9068d31420c8b773ba1d2008d5a2b4
[ "MIT" ]
null
null
null
maskrcnn_benchmark/data/transforms/build.py
mouyuanyap/maskrcnn_benchmark
e8abcce20f9068d31420c8b773ba1d2008d5a2b4
[ "MIT" ]
null
null
null
maskrcnn_benchmark/data/transforms/build.py
mouyuanyap/maskrcnn_benchmark
e8abcce20f9068d31420c8b773ba1d2008d5a2b4
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. from . import transforms as T def build_transforms(cfg, is_train=True): if is_train: min_size = cfg.INPUT.MIN_SIZE_TRAIN max_size = cfg.INPUT.MAX_SIZE_TRAIN flip_horizontal_prob = cfg.INPUT.HORIZONTAL_FLIP_PROB_TRAIN ...
30.326531
79
0.62786
1efd4f1d892aa00c9a67b1f02988ad55a854e0a6
10,845
py
Python
zun/tests/unit/db/test_zun_service.py
magician03/zun
4db10041fa4db0dd81f2e110b113172db3dc8f80
[ "Apache-2.0" ]
3
2018-09-07T02:31:05.000Z
2018-10-17T10:30:47.000Z
zun/tests/unit/db/test_zun_service.py
magician03/zun
4db10041fa4db0dd81f2e110b113172db3dc8f80
[ "Apache-2.0" ]
null
null
null
zun/tests/unit/db/test_zun_service.py
magician03/zun
4db10041fa4db0dd81f2e110b113172db3dc8f80
[ "Apache-2.0" ]
1
2018-12-28T02:35:39.000Z
2018-12-28T02:35:39.000Z
# Copyright 2016 IBM, Corp. # # 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, ...
41.079545
77
0.656247
f74dc0bf0c01c4ace46b3d74caf0620cd43d9476
15,667
py
Python
utils/reprocessing.py
dpton/tensorflow-attention-rnn
a1b8884640ca49d6fdebc7df2167e4353364a243
[ "Apache-2.0" ]
2
2017-11-20T14:02:07.000Z
2018-11-16T08:32:48.000Z
utils/reprocessing.py
dpton/tensorflow-attention-rnn
a1b8884640ca49d6fdebc7df2167e4353364a243
[ "Apache-2.0" ]
null
null
null
utils/reprocessing.py
dpton/tensorflow-attention-rnn
a1b8884640ca49d6fdebc7df2167e4353364a243
[ "Apache-2.0" ]
1
2018-10-16T03:10:39.000Z
2018-10-16T03:10:39.000Z
# _*_ coding:utf-8 _*_ # !/usr/bin/env python from __future__ import absolute_import, division, print_function, unicode_literals import numpy as np import logging import nltk from nltk.corpus import stopwords from gensim.models.wrappers import FastText from gensim.models import Word2Vec import random import threading i...
38.305623
148
0.631136
c0e276fcd6efeb442473ade12e33f37d56661189
918
py
Python
laboratorios/Lab 4/D/D.py
Sforeelking/ayed-2019-1
fda78d1c92ba4e8de74cc6db4f01e961676ba5a6
[ "MIT" ]
null
null
null
laboratorios/Lab 4/D/D.py
Sforeelking/ayed-2019-1
fda78d1c92ba4e8de74cc6db4f01e961676ba5a6
[ "MIT" ]
null
null
null
laboratorios/Lab 4/D/D.py
Sforeelking/ayed-2019-1
fda78d1c92ba4e8de74cc6db4f01e961676ba5a6
[ "MIT" ]
null
null
null
from sys import stdin def mergeSort(alist): if len(alist)>1: mid = len(alist)//2 lefthalf = alist[:mid] righthalf = alist[mid:] mergeSort(lefthalf) mergeSort(righthalf) i,j,k = 0,0,0 while i < len(lefthalf) and j < len(righthalf): if (lefthalf[i]) < (righth...
23.538462
54
0.465142
c04497f37d8c43a55d6ff94f6475111e0b309e55
687
py
Python
urls_dental_cremer.py
pgfjunior/Exercicios
2e6e54f8f2fb67fc1500182e0bb88e712d497b94
[ "MIT" ]
null
null
null
urls_dental_cremer.py
pgfjunior/Exercicios
2e6e54f8f2fb67fc1500182e0bb88e712d497b94
[ "MIT" ]
null
null
null
urls_dental_cremer.py
pgfjunior/Exercicios
2e6e54f8f2fb67fc1500182e0bb88e712d497b94
[ "MIT" ]
null
null
null
from scraping_dental_cremer import scraping_precos from openpyxl import Workbook lista_de_urls_dos_produtos=['https://www.dentalcremer.com.br/compressa-de-gaze-ultracotton-9-fios-n-o-esteril-ultracotton-100545.html', 'https://www.dentalcremer.com.br/sugador-descartavel-transparente-allprime-127720.html', 'https://www....
49.071429
383
0.820961
f5aa957cf01ec551acbe66962f1f783deb3c7b1e
9,893
py
Python
model.py
MingSungChao/IPN-hand
0b061e4438f159e3e312af4959cb424917b5c367
[ "MIT" ]
54
2020-05-06T15:50:48.000Z
2022-02-26T04:50:44.000Z
model.py
MingSungChao/IPN-hand
0b061e4438f159e3e312af4959cb424917b5c367
[ "MIT" ]
10
2020-09-04T00:55:37.000Z
2021-09-06T07:20:52.000Z
model.py
MingSungChao/IPN-hand
0b061e4438f159e3e312af4959cb424917b5c367
[ "MIT" ]
15
2020-05-07T02:00:41.000Z
2021-11-07T22:30:03.000Z
import torch from torch import nn import pdb from models import resnet, resnext, resnetl, c3d, mobilenetv2, shufflenetv2 def generate_model(opt): assert opt.model in [ 'resnet', 'resnetl', 'resnext', 'c3d', 'mobilenetv2', 'shufflenetv2' ] if opt.model == 'resnet': assert opt.model_depth ...
42.82684
142
0.623269
fb59a19e7481ef3bed1e5665f73f0f0a3378695c
1,893
py
Python
novaclient/v1_1/floating_ips_bulk.py
bclau/python-novaclient
7d1cd188e0da0e14b58ead3e46c2f1461620c03c
[ "Apache-1.1" ]
1
2019-09-11T11:56:19.000Z
2019-09-11T11:56:19.000Z
tools/dockerize/webportal/usr/lib/python2.7/site-packages/novaclient/v2/floating_ips_bulk.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
tools/dockerize/webportal/usr/lib/python2.7/site-packages/novaclient/v2/floating_ips_bulk.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
1
2020-12-28T09:59:15.000Z
2020-12-28T09:59:15.000Z
# Copyright 2012 IBM Corp. # 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 app...
32.084746
78
0.629688
2b0ac647bbd3deb1f083b056eed2ce34e523bc7a
413
py
Python
http_async_client/enums.py
jossefaz/async-http-client
74fe7540d1781d64d41161350019bc5ccfec6426
[ "MIT" ]
1
2021-12-05T21:01:59.000Z
2021-12-05T21:01:59.000Z
http_async_client/enums.py
jossefaz/http-async-client
74fe7540d1781d64d41161350019bc5ccfec6426
[ "MIT" ]
null
null
null
http_async_client/enums.py
jossefaz/http-async-client
74fe7540d1781d64d41161350019bc5ccfec6426
[ "MIT" ]
null
null
null
from enum import Enum class SupportedProtocols(Enum): """Contains a list of all supported protocols (currently only http and https Value: http : "http" https : "https" """ http = "http" https = "https" class Methods(Enum): """Contains a list of all supported HTTP Verbs ""...
19.666667
80
0.583535
f5b049c03d68a8443c3fd0c415fbf80d46bde81a
710
py
Python
lib/acli/output/account.py
jonhadfield/acli
d14abf3ad67bb8cb5ecac93c380544a16eddc7fb
[ "MIT" ]
9
2015-10-06T01:33:39.000Z
2017-08-23T22:32:50.000Z
lib/acli/output/account.py
jonhadfield/acli
d14abf3ad67bb8cb5ecac93c380544a16eddc7fb
[ "MIT" ]
6
2016-05-06T07:30:01.000Z
2020-06-22T08:11:40.000Z
lib/acli/output/account.py
jonhadfield/acli
d14abf3ad67bb8cb5ecac93c380544a16eddc7fb
[ "MIT" ]
1
2020-06-01T10:44:23.000Z
2020-06-01T10:44:23.000Z
# -*- coding: utf-8 -*- from __future__ import (absolute_import, print_function, unicode_literals) from acli.output import output_ascii_table, dash_if_none from colorclass import Color, Windows Windows.enable(auto_colors=True, reset_atexit=True) def output_account_info(account_id=None, account_aliases=None): """ ...
37.368421
96
0.712676
6acaedf4c67d64d1d790eec65482fd6cf9fde365
119
py
Python
0x09-python-everything_is_object/101-locked_class.py
coding-max/holbertonschool-higher_level_programming
392fed1ae686642b6cca6bb6752050882bbf79fc
[ "MIT" ]
1
2021-04-26T03:45:12.000Z
2021-04-26T03:45:12.000Z
0x09-python-everything_is_object/101-locked_class.py
coding-max/holbertonschool-higher_level_programming
392fed1ae686642b6cca6bb6752050882bbf79fc
[ "MIT" ]
null
null
null
0x09-python-everything_is_object/101-locked_class.py
coding-max/holbertonschool-higher_level_programming
392fed1ae686642b6cca6bb6752050882bbf79fc
[ "MIT" ]
1
2022-02-02T02:44:35.000Z
2022-02-02T02:44:35.000Z
#!/usr/bin/python3 """Low memory cost""" class LockedClass: """Low memory cost""" __slots__ = ["first_name"]
14.875
30
0.621849
2a470004f1926b6cb4e1a82caa2a6cea80259298
22,686
py
Python
api/base/filters.py
chennan47/osf.io
270608592b39a94941a3e329c0dc16d295a82472
[ "Apache-2.0" ]
null
null
null
api/base/filters.py
chennan47/osf.io
270608592b39a94941a3e329c0dc16d295a82472
[ "Apache-2.0" ]
18
2020-03-24T16:16:14.000Z
2022-03-03T22:37:48.000Z
api/base/filters.py
kounoAkihiro/SV-RDM-OSF
76fb0c739f4cdabf03b5bfd2bc63d83b1c2d4796
[ "Apache-2.0" ]
1
2021-10-04T21:16:56.000Z
2021-10-04T21:16:56.000Z
import datetime import functools import operator import re import pytz from guardian.shortcuts import get_objects_for_user from api.base import utils from api.base.exceptions import (InvalidFilterComparisonType, InvalidFilterError, InvalidFilterFieldError, ...
43.293893
157
0.59151
94167a2344f953142d94783a65d9d1d033fc11bd
14,981
py
Python
plugins/modules/oci_limits_quota.py
LaudateCorpus1/oci-ansible-collection
2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_limits_quota.py
LaudateCorpus1/oci-ansible-collection
2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_limits_quota.py
LaudateCorpus1/oci-ansible-collection
2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2020, 2022 Oracle and/or its affiliates. # This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Apache License v2.0 # See LICENSE.TXT for d...
36.098795
133
0.640011
db4f9de571ee444422ecfad76205e2e5d86245de
605
py
Python
DQM/L1TMonitorClient/python/L1TriggerDttfQualityTests_cfi.py
NTrevisani/cmssw
a212a27526f34eb9507cf8b875c93896e6544781
[ "Apache-2.0" ]
3
2018-08-24T19:10:26.000Z
2019-02-19T11:45:32.000Z
DQM/L1TMonitorClient/python/L1TriggerDttfQualityTests_cfi.py
NTrevisani/cmssw
a212a27526f34eb9507cf8b875c93896e6544781
[ "Apache-2.0" ]
7
2016-07-17T02:34:54.000Z
2019-08-13T07:58:37.000Z
DQM/L1TMonitorClient/python/L1TriggerDttfQualityTests_cfi.py
NTrevisani/cmssw
a212a27526f34eb9507cf8b875c93896e6544781
[ "Apache-2.0" ]
5
2018-08-21T16:37:52.000Z
2020-01-09T13:33:17.000Z
# quality tests for DTTF trigger import FWCore.ParameterSet.Config as cms l1TriggerDttfQualityTests = cms.EDAnalyzer("QualityTester", qtList=cms.untracked.FileInPath('DQM/L1TMonitorClient/data/L1TriggerDttfQualityTests.xml'), QualityTestPrescaler=cms.untracked.int32(1), getQualityTestsFromFile=cms.untrac...
35.588235
95
0.778512
6efab3c8577a1df6fa30e338fe5bf116706a5609
1,635
py
Python
Exercises_3.py
gntzelepi/ThinkPythonExercises
bc380321e64cee3771ac1024ad10eef0574355e7
[ "MIT" ]
2
2021-01-02T08:51:37.000Z
2021-11-23T12:05:30.000Z
Exercises_3.py
gntzelepi/ThinkPythonExercises
bc380321e64cee3771ac1024ad10eef0574355e7
[ "MIT" ]
null
null
null
Exercises_3.py
gntzelepi/ThinkPythonExercises
bc380321e64cee3771ac1024ad10eef0574355e7
[ "MIT" ]
null
null
null
# Exercise 3.1. # Write a function named right_justify that takes a string named s as a parameter and prints the string with enough # leading spaces so that the last letter of the string is in column 70 of the display. def right_justify(s): total_length = 70 - len(s) space = " " total_spaces = total_length...
27.711864
119
0.725994
3506afef53ba4d6fe00db41e78ab059fad3519cc
3,039
py
Python
extract_moving_picture.py
kalimanis/moving-picture-extract
16bd1fafe257d95ba934ea46d99ba1ce0dde7bd7
[ "MIT" ]
1
2018-12-25T07:18:52.000Z
2018-12-25T07:18:52.000Z
extract_moving_picture.py
kalimanis/moving-picture-extract
16bd1fafe257d95ba934ea46d99ba1ce0dde7bd7
[ "MIT" ]
null
null
null
extract_moving_picture.py
kalimanis/moving-picture-extract
16bd1fafe257d95ba934ea46d99ba1ce0dde7bd7
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import sys, getopt filename = "IMG_20180703_085041.jpg" def extract(file, extractImage): with open(filename, "rb") as binary_file: name, ext = os.path.splitext(binary_file.name) binary_file.seek(0, 2) # Seek the end num_bytes = binary_file.tell() # Get...
34.534091
119
0.538993
1243f24f2fe173dbf5c7c7fabca25b73c989ca28
5,027
py
Python
tests/core/consensus/test_pot_iterations.py
ReadyNeutron/shitcoin-blockchain
80add4e545ad22a317244f7fd958d118a5a75c5d
[ "Apache-2.0" ]
174
2021-06-16T17:49:22.000Z
2022-03-17T03:03:17.000Z
tests/core/consensus/test_pot_iterations.py
ReadyNeutron/shitcoin-blockchain
80add4e545ad22a317244f7fd958d118a5a75c5d
[ "Apache-2.0" ]
49
2021-06-17T14:10:53.000Z
2022-01-31T11:04:21.000Z
tests/core/consensus/test_pot_iterations.py
ReadyNeutron/shitcoin-blockchain
80add4e545ad22a317244f7fd958d118a5a75c5d
[ "Apache-2.0" ]
80
2021-06-17T14:23:31.000Z
2022-02-24T05:52:47.000Z
from pytest import raises from flax.consensus.default_constants import DEFAULT_CONSTANTS from flax.consensus.pos_quality import _expected_plot_size from flax.consensus.pot_iterations import ( calculate_ip_iters, calculate_iterations_quality, calculate_sp_iters, is_overflow_block, ) from flax.util.hash ...
43.336207
120
0.655063
2053db1d9ac0d3f35914899b74a218cb60ad169f
6,954
py
Python
osfclient/tests/test_uploading.py
RCOSDP/rdmclient
72a4e81899a2b093c8924951d4f9bf21c29b9bfa
[ "BSD-3-Clause" ]
null
null
null
osfclient/tests/test_uploading.py
RCOSDP/rdmclient
72a4e81899a2b093c8924951d4f9bf21c29b9bfa
[ "BSD-3-Clause" ]
4
2019-05-10T01:48:21.000Z
2020-01-16T22:55:36.000Z
osfclient/tests/test_uploading.py
yacchin1205/rdmclient
96bf8397a246a5d4f24435db3581178d7ce56041
[ "BSD-3-Clause" ]
1
2019-05-10T01:33:32.000Z
2019-05-10T01:33:32.000Z
"""Test `osf upload` command""" import mock from mock import call from mock import patch from mock import mock_open import pytest from osfclient import OSF from osfclient.cli import upload from osfclient.tests.mocks import MockArgs from osfclient.tests.mocks import MockProject def test_anonymous_doesnt_work(): ...
38.633333
81
0.634311
8dca6965ab44d7bdc1906be4492ab46279b70429
38,071
py
Python
widget_creation.py
johnryt/generalized_mines
13a459aa07a2042b089af89c15eff007a1c1d525
[ "MIT" ]
null
null
null
widget_creation.py
johnryt/generalized_mines
13a459aa07a2042b089af89c15eff007a1c1d525
[ "MIT" ]
null
null
null
widget_creation.py
johnryt/generalized_mines
13a459aa07a2042b089af89c15eff007a1c1d525
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from scipy import stats idx = pd.IndexSlice from os import getcwd,listdir import matplotlib.pyplot as plt from random import shuffle, sample, seed import seaborn as sns from random import seed, sample, shuffle from matplotlib.lines import Line2D import ipywidgets as wid import fun...
76.447791
187
0.6423
73ee686cb90b4b239fb5846c10c100993a1cce18
30,071
py
Python
battle_wizard/game/player.py
andrewljohnson/deckzap
00b2238c1a5c84de06729a03cbee35df686efae0
[ "MIT" ]
2
2021-05-10T21:03:32.000Z
2021-09-30T18:43:55.000Z
battle_wizard/game/player.py
andrewljohnson/deckzap
00b2238c1a5c84de06729a03cbee35df686efae0
[ "MIT" ]
11
2021-04-23T21:21:38.000Z
2021-12-14T18:58:56.000Z
battle_wizard/game/player.py
andrewljohnson/deckzap
00b2238c1a5c84de06729a03cbee35df686efae0
[ "MIT" ]
2
2021-10-04T15:10:39.000Z
2021-11-11T15:45:25.000Z
import copy import datetime import random from battle_wizard.game.card import Card, CardEffect from battle_wizard.game.data import Constants from battle_wizard.game.data import default_deck from battle_wizard.game.data import default_deck_genie_wizard from battle_wizard.game.data import default_deck_dwarf_tinkerer f...
40.912925
264
0.609724
dd1ffca93e821f3f1fd058c31f4524a57af0004c
1,000
py
Python
setup.py
dunnesquared/abbrevscrape
b35bb0bcb449d77f567ba2e832068a866fe85b6c
[ "MIT" ]
null
null
null
setup.py
dunnesquared/abbrevscrape
b35bb0bcb449d77f567ba2e832068a866fe85b6c
[ "MIT" ]
null
null
null
setup.py
dunnesquared/abbrevscrape
b35bb0bcb449d77f567ba2e832068a866fe85b6c
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="abbrevscrape", version="0.1.2", author="Alexander Dunne", author_email="alexdunne@gmail.com", description="Script that scrapes abbreviations from wiktionary.org", long_description=long...
32.258065
72
0.671
243dd25d14e75dbd0a3b7995eb3ddbfb087910bb
6,441
py
Python
src/cogs/DatabaseCommands.py
Cool-Codists/Codi
df5818a6bf92b5adaf973870af70644f16dbcd7e
[ "MIT" ]
2
2020-09-13T21:33:07.000Z
2020-09-19T03:31:15.000Z
src/cogs/DatabaseCommands.py
Cool-Codists/Codi
df5818a6bf92b5adaf973870af70644f16dbcd7e
[ "MIT" ]
null
null
null
src/cogs/DatabaseCommands.py
Cool-Codists/Codi
df5818a6bf92b5adaf973870af70644f16dbcd7e
[ "MIT" ]
1
2020-09-19T03:41:43.000Z
2020-09-19T03:41:43.000Z
import os from termcolor import colored from hashids import Hashids import random from discord.ext import commands from discord import Embed import pymongo # from '../utils' import mongo MONGO = pymongo.MongoClient(os.getenv("DBPATH")) db = MONGO.data snipath = db.code_snippets # pollpath = db.polls class DatabaseCo...
33.373057
114
0.560161
4ce402a3a88ec91cb59a866f0403a3d263fd50bb
14,705
py
Python
kgtk/cli/reachable_nodes.py
Bin-Go2/kgtk
f5d0e7db33150462f7942b8b8adf0e89037d6be4
[ "MIT" ]
null
null
null
kgtk/cli/reachable_nodes.py
Bin-Go2/kgtk
f5d0e7db33150462f7942b8b8adf0e89037d6be4
[ "MIT" ]
null
null
null
kgtk/cli/reachable_nodes.py
Bin-Go2/kgtk
f5d0e7db33150462f7942b8b8adf0e89037d6be4
[ "MIT" ]
null
null
null
""" Find reachable nodes given a set of root nodes and properties """ from argparse import Namespace import typing from kgtk.cli_argparse import KGTKArgumentParser, KGTKFiles def parser(): return { 'help': 'Find reachable nodes in a graph.' } def add_arguments_extended(parser: KGTKArgumentParser, pa...
47.899023
185
0.619993
fefb478c4c46a76458a8a62eb428e38b25ad47a2
125
py
Python
release/stubs.min/Tekla/Structures/ModelInternal_parts/dotCamera_t.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
182
2017-06-27T02:26:15.000Z
2022-03-30T18:53:43.000Z
release/stubs.min/Tekla/Structures/ModelInternal_parts/dotCamera_t.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
28
2017-06-27T13:38:23.000Z
2022-03-15T11:19:44.000Z
release/stubs.min/Tekla/Structures/ModelInternal_parts/dotCamera_t.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
67
2017-06-28T09:43:59.000Z
2022-03-20T21:17:10.000Z
class dotCamera_t(object): # no doc DirectionVector=None FieldOfView=None Location=None UpVector=None ZoomFactor=None
13.888889
26
0.792
9a7c642cfdc7e12a55b69ee905481035a5b28dc5
3,703
py
Python
sphinx/conf.py
ase2sprkkr/ase2sprkkr
5e04f54365e4ab65d97bd11d573b078674548a59
[ "MIT" ]
1
2022-03-14T22:56:11.000Z
2022-03-14T22:56:11.000Z
sphinx/conf.py
ase2sprkkr/ase2sprkkr
5e04f54365e4ab65d97bd11d573b078674548a59
[ "MIT" ]
1
2022-03-10T09:08:50.000Z
2022-03-10T09:08:50.000Z
sphinx/conf.py
ase2sprkkr/ase2sprkkr
5e04f54365e4ab65d97bd11d573b078674548a59
[ "MIT" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
33.36036
97
0.659735
f602757e353dc6954d6fbb32f7e416163eae249a
850
py
Python
tests/conftest.py
emilianobaum/flask-template
923762ac33d2fd16b7eae2641e0f559471d695e2
[ "Unlicense" ]
null
null
null
tests/conftest.py
emilianobaum/flask-template
923762ac33d2fd16b7eae2641e0f559471d695e2
[ "Unlicense" ]
null
null
null
tests/conftest.py
emilianobaum/flask-template
923762ac33d2fd16b7eae2641e0f559471d695e2
[ "Unlicense" ]
null
null
null
import sys import pytest from flask_template import create_app from flask_template.ext.commands import populate_db from flask_template.ext.database import db @pytest.fixture(scope="session") def app(): app = create_app(FORCE_ENV_FOR_DYNACONF="testing") with app.app_context(): db.create_all(app=app) ...
25
56
0.712941
2f99805241d166fd68aff1eb5c4fde170f737c05
2,070
py
Python
demo/emails.py
GuoTengda1993/flask-demo
9d07210ae99bceaec025642050bf9119526d39c8
[ "MIT" ]
null
null
null
demo/emails.py
GuoTengda1993/flask-demo
9d07210ae99bceaec025642050bf9119526d39c8
[ "MIT" ]
null
null
null
demo/emails.py
GuoTengda1993/flask-demo
9d07210ae99bceaec025642050bf9119526d39c8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # from threading import Thread # # from flask import url_for, current_app # from flask_mail import Message # # from demo.extensions import mail import os import smtplib import email import mimetypes from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from email.m...
36.315789
115
0.650242