hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
ec8b6f80bc96cced1d927f6a24327bd17b6dab7b
8,344
py
Python
src/gocept/amqprun/testing.py
NativeInstruments/gocept.amqprun
1f2d959f18617d46d0c3dc8512a910fe302ca384
[ "ZPL-2.1" ]
2
2020-01-29T09:36:50.000Z
2020-02-25T15:07:58.000Z
src/gocept/amqprun/testing.py
NativeInstruments/gocept.amqprun
1f2d959f18617d46d0c3dc8512a910fe302ca384
[ "ZPL-2.1" ]
14
2020-03-20T13:39:31.000Z
2020-10-06T14:03:55.000Z
src/gocept/amqprun/testing.py
gocept/gocept.amqprun
1f2d959f18617d46d0c3dc8512a910fe302ca384
[ "ZPL-2.1" ]
null
null
null
import amqp import datetime import email.utils import gocept.amqprun import gocept.amqprun.interfaces import gocept.amqprun.main import gocept.amqprun.worker import logging import os import pkg_resources import plone.testing import plone.testing.zca import signal import string import subprocess import sys import tempfi...
34.337449
78
0.614573
7,925
0.949784
0
0
0
0
0
0
1,755
0.210331
ec918eada4dea8a6caff0286e38ae25cdcefa19d
1,133
py
Python
examples/timeseries/example_acf.py
Hadrien-Montanelli/learnpy
b9fedb903cfe8c2fff8d7706667f17c51fb3a34f
[ "MIT" ]
1
2020-10-19T21:21:29.000Z
2020-10-19T21:21:29.000Z
examples/timeseries/example_acf.py
Hadrien-Montanelli/learnpy
b9fedb903cfe8c2fff8d7706667f17c51fb3a34f
[ "MIT" ]
21
2020-10-30T10:15:36.000Z
2020-11-25T09:22:46.000Z
examples/timeseries/example_acf.py
Hadrien-Montanelli/learnpy
b9fedb903cfe8c2fff8d7706667f17c51fb3a34f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Nov 2 16:17:42 2020 Copyright 2020 by Hadrien Montanelli. """ # %% Imports. # Standard library imports: import matplotlib.pyplot as plt import numpy as np from statsmodels.tsa.stattools import acf as acf2 # Learnpy imports: from learnpy.misc import c...
29.815789
67
0.735216
0
0
0
0
0
0
0
0
415
0.366284
ec91cc1a5c4a42ce8dd22e3076ca65aca87d1b09
289
py
Python
docker/python/django/testapp/bar/views.py
felixbarny/apm-integration-testing
b0cef3414173aa3e5ec8100d1e2ec2b0d810f504
[ "Apache-2.0" ]
52
2018-06-14T02:51:10.000Z
2022-02-08T14:18:52.000Z
docker/python/django/testapp/bar/views.py
felixbarny/apm-integration-testing
b0cef3414173aa3e5ec8100d1e2ec2b0d810f504
[ "Apache-2.0" ]
902
2018-05-25T15:42:22.000Z
2022-03-31T16:12:35.000Z
docker/python/django/testapp/bar/views.py
felixbarny/apm-integration-testing
b0cef3414173aa3e5ec8100d1e2ec2b0d810f504
[ "Apache-2.0" ]
62
2018-05-25T12:42:58.000Z
2022-02-23T09:05:49.000Z
from django.http import HttpResponse import logging import elasticapm logger = logging.getLogger('mysite') def show(request): return HttpResponse(bar()) @elasticapm.capture_span() def bar(): extra() return "bar" @elasticapm.capture_span() def extra(): return "extra"
14.45
36
0.716263
0
0
0
0
124
0.429066
0
0
20
0.069204
ec93172931a6512e00485bff696dbae2c5038576
772
py
Python
Python/problem014.py
emergent/ProjectEuler
ec1c92cc47fde80efddeb0346d9b0fa511df1f00
[ "Unlicense" ]
null
null
null
Python/problem014.py
emergent/ProjectEuler
ec1c92cc47fde80efddeb0346d9b0fa511df1f00
[ "Unlicense" ]
null
null
null
Python/problem014.py
emergent/ProjectEuler
ec1c92cc47fde80efddeb0346d9b0fa511df1f00
[ "Unlicense" ]
null
null
null
#! /usr/bin/env python3 ''' Problem 14 - Project Euler http://projecteuler.net/index.php?section=problems&id=014 ''' chains = {} def getCollatzChainLength(n): chain = [] extra = 0 while n != 1: if n in chains: extra = chains[n] break else: chain.append(n)...
23.393939
75
0.494819
0
0
0
0
0
0
0
0
136
0.176166
ec931bc4df07b3df0aaf9c0ed905fa654356c04b
354
py
Python
buttonStyle.py
rafael-rfzorzi/estiloWidgets
d9e47b9b570b6806ffb334878ee0dd466b391d10
[ "Unlicense" ]
null
null
null
buttonStyle.py
rafael-rfzorzi/estiloWidgets
d9e47b9b570b6806ffb334878ee0dd466b391d10
[ "Unlicense" ]
null
null
null
buttonStyle.py
rafael-rfzorzi/estiloWidgets
d9e47b9b570b6806ffb334878ee0dd466b391d10
[ "Unlicense" ]
null
null
null
from tkinter import * class ButtonGlac(Button): def __init__(self, master=None): super().__init__(master) self.configure( bd=1, bg='#49708D', fg= 'white', font=('Aharoni','10','bold'), activebackground = '#278ab9', activeforeg...
17.7
41
0.5
325
0.918079
0
0
0
0
0
0
55
0.155367
ec93f76feaf219cc796dc101bd2540c75272c895
1,558
py
Python
codewars/7 kyu/growth-of-a-population.py
sirken/coding-practice
9c5e23b2c24f525a89a5e1d15ce3aec3ad1a01ab
[ "MIT" ]
null
null
null
codewars/7 kyu/growth-of-a-population.py
sirken/coding-practice
9c5e23b2c24f525a89a5e1d15ce3aec3ad1a01ab
[ "MIT" ]
null
null
null
codewars/7 kyu/growth-of-a-population.py
sirken/coding-practice
9c5e23b2c24f525a89a5e1d15ce3aec3ad1a01ab
[ "MIT" ]
null
null
null
from Test import Test, Test as test ''' In a small town the population is p0 = 1000 at the beginning of a year. The population regularly increases by 2 percent per year and moreover 50 new inhabitants per year come to live in the town. How many years does the town need to see its population greater or equal to p = 120...
38
293
0.71887
0
0
0
0
0
0
0
0
1,194
0.766367
ec96d028c0ae17832cf014fcffe7d77910c0fb12
13,593
py
Python
lib/rabbitdnssec.py
jderuiter/SURFdnssec
5416441a516c689f113684e4e5cb76272c092f9b
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
lib/rabbitdnssec.py
jderuiter/SURFdnssec
5416441a516c689f113684e4e5cb76272c092f9b
[ "BSD-2-Clause", "BSD-3-Clause" ]
1
2021-09-27T11:56:19.000Z
2021-09-27T11:56:19.000Z
lib/rabbitdnssec.py
jderuiter/SURFdnssec
5416441a516c689f113684e4e5cb76272c092f9b
[ "BSD-2-Clause", "BSD-3-Clause" ]
2
2021-02-03T08:06:26.000Z
2021-09-27T11:48:02.000Z
# rabbitdnssec.py -- DNSSEC management through a RabbitMQ cluster # # These routines can be used somewhat generally within a cluster of # DNSSEC signers as we are using at SURFnet. # # From: Rick van Rein <rick@openfortress.nl> import sys import socket import time import os.path import importlib import ssl import js...
30.963554
93
0.703156
5,880
0.432576
0
0
0
0
0
0
6,882
0.50629
ec96d307d4599b24648fd1602488abc20982922e
27,538
py
Python
src/about/main.py
HubTou/about
9d83cc0dfb95d1183dca36b7f8459a386f42e1be
[ "BSD-3-Clause" ]
null
null
null
src/about/main.py
HubTou/about
9d83cc0dfb95d1183dca36b7f8459a386f42e1be
[ "BSD-3-Clause" ]
null
null
null
src/about/main.py
HubTou/about
9d83cc0dfb95d1183dca36b7f8459a386f42e1be
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ about - show system information License: 3-clause BSD (see https://opensource.org/licenses/BSD-3-Clause) Author: Hubert Tournier """ import getopt import getpass import locale import logging import os import platform import re import shutil import socket import string import sys import syscon...
42.628483
107
0.541361
0
0
0
0
0
0
0
0
10,122
0.367565
ec98444bc1bf30c27d5ae65e4ae39de7cf4ac2a1
975
py
Python
tutorials/basic/_4_ports_1.py
qedalab/spira
32e4d2096e298b9fcc5952abd654312dc232a259
[ "MIT" ]
10
2018-07-13T09:46:21.000Z
2021-06-22T13:34:50.000Z
tutorials/basic/_4_ports_1.py
qedalab/spira
32e4d2096e298b9fcc5952abd654312dc232a259
[ "MIT" ]
8
2018-09-09T11:32:40.000Z
2019-10-08T07:47:31.000Z
tutorials/basic/_4_ports_1.py
qedalab/spira
32e4d2096e298b9fcc5952abd654312dc232a259
[ "MIT" ]
7
2019-01-17T18:50:17.000Z
2022-01-13T20:27:52.000Z
import spira.all as spira class Resistor(spira.PCell): width = spira.NumberParameter(default=spira.RDD.R1.MIN_WIDTH, doc='Width of the shunt resistance.') length = spira.NumberParameter(default=spira.RDD.R1.MIN_LENGTH, doc='Length of the shunt resistance.') def validate_parameters(self): if self...
31.451613
125
0.665641
859
0.881026
0
0
0
0
0
0
228
0.233846
ec9c34f157ba2eac91b3d93431126478f7f42798
511
py
Python
molmodmt/utils/selection.py
LMMV/MolModMT
5725d6d5627b07edcbbd5e55318345a136b28c35
[ "MIT" ]
null
null
null
molmodmt/utils/selection.py
LMMV/MolModMT
5725d6d5627b07edcbbd5e55318345a136b28c35
[ "MIT" ]
null
null
null
molmodmt/utils/selection.py
LMMV/MolModMT
5725d6d5627b07edcbbd5e55318345a136b28c35
[ "MIT" ]
null
null
null
def parse_selection(selection,syntaxis="mdtraj"): from molmodmt.topology import ion_residues if syntaxis=="mdtraj": selection=selection.replace("dna","(resname DA DG DC DT DI)") selection=selection.replace("rna","(resname A G C U I)") selection=selection.replace("ion",'(resname '+' '....
36.5
115
0.639922
0
0
0
0
0
0
0
0
135
0.264188
eca028126d38ff6361e05ae287f82997405bb260
4,173
py
Python
froide/foirequest/delivery.py
AleksiKnuutila/tietopyynto
4c7438499002e521114daf07f561fd140a21dfbb
[ "MIT" ]
null
null
null
froide/foirequest/delivery.py
AleksiKnuutila/tietopyynto
4c7438499002e521114daf07f561fd140a21dfbb
[ "MIT" ]
2
2020-06-05T16:43:43.000Z
2022-02-10T15:47:12.000Z
froide/foirequest/delivery.py
AleksiKnuutila/tietopyynto
4c7438499002e521114daf07f561fd140a21dfbb
[ "MIT" ]
null
null
null
from collections import defaultdict, namedtuple from datetime import datetime import importlib import logging import re import os import pytz def get_delivery_report(sender, recipient, timestamp): from django.conf import settings reporter_path = settings.FROIDE_CONFIG.get('delivery_reporter', None) if no...
33.926829
78
0.601006
3,422
0.820034
0
0
0
0
0
0
406
0.097292
eca06b3dcded44dd146bab5dab9f8ce5a419a73c
352
py
Python
chapter3/simple_scankernel0.py
sfefilatyev/cuda_python_examples
31925bc0e877ffb6162677413f0d155ecc79ad08
[ "MIT" ]
2
2020-11-08T10:01:56.000Z
2022-03-08T06:21:02.000Z
chapter3/simple_scankernel0.py
sfefilatyev/cuda_python_examples
31925bc0e877ffb6162677413f0d155ecc79ad08
[ "MIT" ]
null
null
null
chapter3/simple_scankernel0.py
sfefilatyev/cuda_python_examples
31925bc0e877ffb6162677413f0d155ecc79ad08
[ "MIT" ]
null
null
null
# Basic example that sums a small list of numbers on the GPU. import numpy as np import pycuda.autoinit from pycuda import gpuarray from pycuda.scan import InclusiveScanKernel seq = np.array([1, 2, 3, 4], dtype=np.int32) seq_gpu = gpuarray.to_gpu(seq) sum_gpu = InclusiveScanKernel(np.int32, "a+b") print(sum_gpu(seq_gp...
29.333333
61
0.761364
0
0
0
0
0
0
0
0
66
0.1875
eca18d4e3d6f7699e830daef606d6fa6213aa3b2
2,664
py
Python
cogs/admin.py
Mr-Owllers/owll-v2
73ec36b8275166f405224ba0e27e37e7390c104a
[ "MIT" ]
2
2021-12-20T06:25:42.000Z
2022-01-12T17:08:32.000Z
cogs/admin.py
Mr-Owllers/owll-v2
73ec36b8275166f405224ba0e27e37e7390c104a
[ "MIT" ]
null
null
null
cogs/admin.py
Mr-Owllers/owll-v2
73ec36b8275166f405224ba0e27e37e7390c104a
[ "MIT" ]
null
null
null
import nextcord from nextcord.ext import commands class Admin(commands.Cog): def __init__(self, client): self.client = client @commands.command(help= "delete messages in bulk", aliases=["purge", "c"]) @commands.has_permissions(manage_messages=True) async def clear(self, ctx, amount = 5): await ctx.cha...
36.493151
103
0.646021
2,561
0.961336
0
0
2,460
0.923423
1,932
0.725225
723
0.271396
eca2ad1491618b91b100bae9f35aedb4453e20e3
7,862
py
Python
server/src/dashboard/helpers.py
openml/openml.org
dadc4f79c159058776500b204977a1062b927d4c
[ "BSD-3-Clause" ]
16
2018-10-17T19:35:11.000Z
2022-03-31T23:37:00.000Z
server/src/dashboard/helpers.py
PortML/openml.org
b526fae6c0ba2df0ccebf60f1dd703368ed394ec
[ "BSD-3-Clause" ]
192
2018-10-17T17:31:03.000Z
2022-03-27T23:55:51.000Z
server/src/dashboard/helpers.py
PortML/openml.org
b526fae6c0ba2df0ccebf60f1dd703368ed394ec
[ "BSD-3-Clause" ]
8
2019-04-15T11:47:32.000Z
2021-12-15T13:23:54.000Z
import logging import time from contextlib import contextmanager import numpy as np import pandas as pd import scipy.stats from openml import datasets, runs from sklearn.model_selection import train_test_split logger = logging.getLogger("dashboard") logger.setLevel(logging.DEBUG) def get_run_df(run_id: int): ru...
33.313559
87
0.60608
0
0
113
0.014373
129
0.016408
0
0
1,740
0.221318
eca33565545aa314f2500c1fc721dccae39cc8d7
494
py
Python
Speech/loss/SoftmaxLoss.py
sxontheway/BalanceFL
43bb7539c932b7b6f7ad03f94a724452ae3855a3
[ "MIT" ]
null
null
null
Speech/loss/SoftmaxLoss.py
sxontheway/BalanceFL
43bb7539c932b7b6f7ad03f94a724452ae3855a3
[ "MIT" ]
null
null
null
Speech/loss/SoftmaxLoss.py
sxontheway/BalanceFL
43bb7539c932b7b6f7ad03f94a724452ae3855a3
[ "MIT" ]
null
null
null
"""Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. This source code is licensed under the license found in the LICENSE file in the root directory of this source tree. Portions of the source code are from the OLTR project which notice below and in LICENSE in the root directory of this source tree...
22.454545
59
0.757085
0
0
0
0
0
0
0
0
403
0.815789
eca386f51bbe9df459d3def8a91f74e99caeab92
28
py
Python
test_data/src-mini-project/src/mini/example.py
ajeetraina/pycograph
a1bcf8e0f62a605a798e82373ec2279add83cf16
[ "BSD-3-Clause" ]
346
2016-02-22T20:21:10.000Z
2022-01-27T20:55:53.000Z
Language Skills/Python/Unit 4/2-Taking a Vacation/Review of Functions/1-Before we begin.py
vpstudios/Codecademy-Exercise-Answers
ebd0ee8197a8001465636f52c69592ea6745aa0c
[ "MIT" ]
55
2016-04-07T13:58:44.000Z
2020-06-25T12:20:24.000Z
Language Skills/Python/Unit 4/2-Taking a Vacation/Review of Functions/1-Before we begin.py
vpstudios/Codecademy-Exercise-Answers
ebd0ee8197a8001465636f52c69592ea6745aa0c
[ "MIT" ]
477
2016-02-21T06:17:02.000Z
2021-12-22T10:08:01.000Z
def answer(): return 42
9.333333
13
0.607143
0
0
0
0
0
0
0
0
0
0
eca4811c42e1ebee944b531840d43c283210f993
414
py
Python
clinicInformation/serializers.py
MyMedicalAssistant/MyMedicalAssistant
e03758109167cef13efed7ee1d450dbd18a1fed7
[ "MIT" ]
null
null
null
clinicInformation/serializers.py
MyMedicalAssistant/MyMedicalAssistant
e03758109167cef13efed7ee1d450dbd18a1fed7
[ "MIT" ]
1
2020-08-05T22:58:28.000Z
2020-08-05T22:58:28.000Z
clinicInformation/serializers.py
MyMedicalAssistant/MyMedicalAssistant
e03758109167cef13efed7ee1d450dbd18a1fed7
[ "MIT" ]
null
null
null
from rest_framework import serializers from .models import DoctorClinic class DoctorClinicSerializer(serializers.ModelSerializer): class Meta: model = DoctorClinic fields = ( 'id', 'user', 'doctor_name', 'specialty', 'clinic_name', 'clinic_street', 'clinic_city', ...
19.714286
58
0.623188
340
0.821256
0
0
0
0
0
0
132
0.318841
eca4f5aa27488a24c929f36854a3145b768fa867
3,266
py
Python
benwaonline/auth/core.py
goosechooser/benwaonline
e2879412aa6c3c230d25cd60072445165517b6b6
[ "MIT" ]
null
null
null
benwaonline/auth/core.py
goosechooser/benwaonline
e2879412aa6c3c230d25cd60072445165517b6b6
[ "MIT" ]
16
2017-09-13T10:21:40.000Z
2020-06-01T04:32:22.000Z
benwaonline/auth/core.py
goosechooser/benwaonline
e2879412aa6c3c230d25cd60072445165517b6b6
[ "MIT" ]
null
null
null
import os import requests from flask import current_app from jose import jwt, exceptions from benwaonline.cache import cache from benwaonline.exceptions import BenwaOnlineAuthError ALGORITHMS = ['RS256'] def verify_token(token): unverified_header = jwt.get_unverified_header(token) rsa_key = match_key_id(unve...
27.91453
95
0.649418
0
0
0
0
554
0.169626
0
0
691
0.211574
eca5a1c5f1cda002d846fcbdcac9c31044bff804
8,235
py
Python
src/test-decapod-genpdf.py
amitdo/decapod.genpdf
021f6b6bcdfd692a4b312f9f2d4fb1bfd5d60d76
[ "Apache-2.0" ]
null
null
null
src/test-decapod-genpdf.py
amitdo/decapod.genpdf
021f6b6bcdfd692a4b312f9f2d4fb1bfd5d60d76
[ "Apache-2.0" ]
null
null
null
src/test-decapod-genpdf.py
amitdo/decapod.genpdf
021f6b6bcdfd692a4b312f9f2d4fb1bfd5d60d76
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys import time import getopt import shlex, subprocess, tempfile def main(sysargv): testDes = [] # descriptions of the tests testOut = [] # retur values of the tests testExp = [] # expected return values of the tests testCmd = [] # co...
35.960699
92
0.571342
0
0
0
0
0
0
0
0
3,680
0.446873
eca5a506fa126645e7a9f317196aec70ebefa132
9,242
py
Python
mulearn/kernel.py
vishalbelsare/mulearn
9a794abe8788b17993cfd58a17ca44f5de6984cf
[ "Apache-2.0" ]
2
2021-07-23T09:43:33.000Z
2021-08-23T20:46:00.000Z
mulearn/kernel.py
vishalbelsare/mulearn
9a794abe8788b17993cfd58a17ca44f5de6984cf
[ "Apache-2.0" ]
null
null
null
mulearn/kernel.py
vishalbelsare/mulearn
9a794abe8788b17993cfd58a17ca44f5de6984cf
[ "Apache-2.0" ]
2
2020-05-01T07:42:41.000Z
2021-08-23T20:46:02.000Z
"""Kernel implementation. This module implements the kernel used in mulearn. """ import numpy as np class Kernel: """Base kernel class.""" def __init__(self): """Create an instance of :class:`Kernel`.""" self.precomputed = False self.kernel_computations = None def compute(self,...
32.090278
79
0.604631
9,119
0.986691
0
0
278
0.03008
0
0
5,782
0.625622
eca6f5d03d7a65e001a70d9824f8e7cdc1ac16e2
2,057
py
Python
inthemoment/config.py
MeighenBergerS/inthemoment
6c2f27d952a80bd377cfa00fc4db8f3d1cdf0dad
[ "MIT" ]
null
null
null
inthemoment/config.py
MeighenBergerS/inthemoment
6c2f27d952a80bd377cfa00fc4db8f3d1cdf0dad
[ "MIT" ]
null
null
null
inthemoment/config.py
MeighenBergerS/inthemoment
6c2f27d952a80bd377cfa00fc4db8f3d1cdf0dad
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Name: config.py # Authors: Stephan Meighen-Berger # Config file for the ITM package. from typing import Dict, Any import yaml _baseconfig: Dict[str, Any] _baseconfig = { ########################################################################### # General inputs ################...
22.11828
79
0.482256
1,053
0.511911
0
0
0
0
0
0
1,257
0.611084
eca718b2290753661c89ffe0f3b12919b0789cc0
3,430
py
Python
scripts/commands/SynthSeg_predict.py
hvgazula/SynthSeg
cd597b080eb11bdd54e4e75b28b79b41b322c0c8
[ "Apache-2.0" ]
98
2020-03-03T20:54:34.000Z
2022-03-28T17:40:30.000Z
scripts/commands/SynthSeg_predict.py
hvgazula/SynthSeg
cd597b080eb11bdd54e4e75b28b79b41b322c0c8
[ "Apache-2.0" ]
29
2020-07-02T10:03:48.000Z
2022-03-31T16:48:24.000Z
scripts/commands/SynthSeg_predict.py
hvgazula/SynthSeg
cd597b080eb11bdd54e4e75b28b79b41b322c0c8
[ "Apache-2.0" ]
21
2020-05-18T14:27:20.000Z
2022-03-31T08:27:43.000Z
""" If you use this code, please cite one of the SynthSeg papers: https://github.com/BBillot/SynthSeg/blob/master/bibtex.bib Copyright 2020 Benjamin Billot 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 Lice...
42.345679
115
0.730904
0
0
0
0
0
0
0
0
2,175
0.634111
eca7aaf626d3547ce8f5558fdf53e3a5737336a0
6,238
py
Python
src/bitcoin/tx.py
trevormcguire/pybitcoin
32ff859f4e51e5349fb70ca3c8a8782fd8cad25f
[ "MIT" ]
1
2022-02-09T16:06:49.000Z
2022-02-09T16:06:49.000Z
src/bitcoin/tx.py
trevormcguire/pybitcoin
32ff859f4e51e5349fb70ca3c8a8782fd8cad25f
[ "MIT" ]
2
2022-02-09T17:59:57.000Z
2022-02-09T18:00:27.000Z
src/bitcoin/tx.py
trevormcguire/pybitcoin
32ff859f4e51e5349fb70ca3c8a8782fd8cad25f
[ "MIT" ]
null
null
null
from __future__ import annotations from typing import * from .utils import encode_int, encode_varint, decode_int, decode_varint, ensure_stream, base58, hash256 from .script import Script from io import BytesIO from .keys import PublicKey from .ecdsa import Signature, validate_signature def get_tx_idx(wallet, prev_tx):...
34.655556
103
0.534146
4,273
0.684995
0
0
1,742
0.279256
0
0
1,409
0.225874
eca7bb7d5f66ac5cb221611f5b01d3bad9a853f9
637
py
Python
src/cogs/utils/sendEmbed.py
kugiyasan/discordBot
647fbcaa8686e99774eddeb57359730196a4f65f
[ "MIT" ]
3
2020-07-05T21:37:07.000Z
2021-09-21T11:11:45.000Z
src/cogs/utils/sendEmbed.py
kugiyasan/discordBot
647fbcaa8686e99774eddeb57359730196a4f65f
[ "MIT" ]
null
null
null
src/cogs/utils/sendEmbed.py
kugiyasan/discordBot
647fbcaa8686e99774eddeb57359730196a4f65f
[ "MIT" ]
null
null
null
from typing import Any import discord from discord.ext import commands from ..mofupoints import incrementEmbedCounter async def sendEmbed( ctx: commands.Context, url: str, localImageFile: discord.File = None, **kwargs: Any ) -> None: print(url) if hasattr(ctx, "author"): incrementEm...
26.541667
88
0.681319
0
0
0
0
0
0
507
0.795918
49
0.076923
ecaa497a69908d5f08791b6cdfaef3362767f993
11,449
py
Python
lib/ithor_env.py
XiaoLiSean/Cognitive-Map
6b2019e5b3a46902b06c8d5d1e86b39425042de9
[ "MIT" ]
null
null
null
lib/ithor_env.py
XiaoLiSean/Cognitive-Map
6b2019e5b3a46902b06c8d5d1e86b39425042de9
[ "MIT" ]
null
null
null
lib/ithor_env.py
XiaoLiSean/Cognitive-Map
6b2019e5b3a46902b06c8d5d1e86b39425042de9
[ "MIT" ]
1
2021-11-04T06:25:31.000Z
2021-11-04T06:25:31.000Z
# Module for iTHOR env set up and simple navigation from ai2thor.controller import Controller from termcolor import colored from dijkstar import Graph, find_path from lib.params import SIM_WINDOW_HEIGHT, SIM_WINDOW_WIDTH, VISBILITY_DISTANCE, FIELD_OF_VIEW import matplotlib.pyplot as plt import numpy as np import time,...
44.548638
153
0.633418
11,114
0.97074
0
0
0
0
0
0
1,847
0.161324
ecaa97a3378e031c13049a820631bc60b15b2766
445
py
Python
documento-tcc-backup/backup08(25:06:2016)/Cap5/src/map-pais.py
medeirosthiiago/glue-grade
0c3fc729b7d7d00dad07c9da248e3efcd70fb5a9
[ "MIT" ]
2
2016-10-04T12:47:44.000Z
2016-11-16T18:41:30.000Z
documento-tcc-backup/backup09(04:07:2016)/Cap5/src/map-pais.py
medeirosthiago/glue-grade
0c3fc729b7d7d00dad07c9da248e3efcd70fb5a9
[ "MIT" ]
null
null
null
documento-tcc-backup/backup09(04:07:2016)/Cap5/src/map-pais.py
medeirosthiago/glue-grade
0c3fc729b7d7d00dad07c9da248e3efcd70fb5a9
[ "MIT" ]
null
null
null
tweets_by_country = tweets['country'].value_counts() fig, ax = plt.subplots(figsize=(20,10)) ax.tick_params(axis='x', labelsize=15) ax.tick_params(axis='y', labelsize=15) ax.set_xlabel('Paises'.decode('utf-8'), fontsize=20) ax.set_ylabel('Numero de tweets'.decode('utf-8') , fontsize=20) ax.set_title('Top 5 Paises'.dec...
40.454545
76
0.725843
0
0
0
0
0
0
0
0
101
0.226966
ecaae9b03468e6304f02df581086de6fc888491a
152
py
Python
accepted/486A.py
cbarnson/codeforces-python
3bb1d04a7d776d1e32cc486c0daadddf0cb9e29c
[ "Unlicense", "MIT" ]
1
2019-09-07T17:01:33.000Z
2019-09-07T17:01:33.000Z
accepted/486A.py
cbarnson/codeforces-python
3bb1d04a7d776d1e32cc486c0daadddf0cb9e29c
[ "Unlicense", "MIT" ]
null
null
null
accepted/486A.py
cbarnson/codeforces-python
3bb1d04a7d776d1e32cc486c0daadddf0cb9e29c
[ "Unlicense", "MIT" ]
null
null
null
# 486A - Calculating Function # http://codeforces.com/problemset/problem/486/A n = int(input()) ans = ((n + 1) // 2) * (-1 if n & 1 else 1) print(ans)
21.714286
48
0.618421
0
0
0
0
0
0
0
0
77
0.506579
ecabd3f4bdd9f064663b14463a5ce941ba9d7e6b
20,935
py
Python
abeja/notebook/api/client.py
abeja-inc/abeja-platform-sdk
97cfc99b11ffc1fccb3f527435277bc89e18b8c3
[ "Apache-2.0" ]
2
2020-10-20T18:38:16.000Z
2020-10-20T20:12:35.000Z
abeja/notebook/api/client.py
abeja-inc/abeja-platform-sdk
97cfc99b11ffc1fccb3f527435277bc89e18b8c3
[ "Apache-2.0" ]
30
2020-04-07T01:15:47.000Z
2020-11-18T03:25:19.000Z
abeja/notebook/api/client.py
abeja-inc/abeja-platform-sdk
97cfc99b11ffc1fccb3f527435277bc89e18b8c3
[ "Apache-2.0" ]
null
null
null
from typing import Optional from abeja.common.api_client import BaseAPIClient from abeja.notebook.types import InstanceType, ImageType, NotebookType class APIClient(BaseAPIClient): """A Low-Level client for Notebook API .. code-block:: python from abeja.notebook import APIClient api_client =...
39.5
137
0.485933
20,782
0.992692
0
0
0
0
0
0
16,798
0.802388
ecac3170910e2522fe20eaaf7efb5d1875ecf0af
12,033
py
Python
tests/test_sendgrid_inbound.py
tiltec/django-anymail
508a3a073f1b51c453bade2532627a72e204520b
[ "BSD-3-Clause" ]
null
null
null
tests/test_sendgrid_inbound.py
tiltec/django-anymail
508a3a073f1b51c453bade2532627a72e204520b
[ "BSD-3-Clause" ]
null
null
null
tests/test_sendgrid_inbound.py
tiltec/django-anymail
508a3a073f1b51c453bade2532627a72e204520b
[ "BSD-3-Clause" ]
null
null
null
import json from io import BytesIO from textwrap import dedent from django.test import tag from mock import ANY from anymail.inbound import AnymailInboundMessage from anymail.signals import AnymailInboundEvent from anymail.webhooks.sendgrid import SendGridInboundWebhookView from .utils import dedent_bytes, sample_im...
49.72314
115
0.605668
11,625
0.965371
0
0
11,642
0.966783
0
0
6,176
0.512872
ecad91fbf1d2b45d2f19da435e1adb82e6ade7a6
233
py
Python
scripts/randomizer.py
cmuell89/DS-A
a408252e1993423c510c3cbe49501acc6916e91f
[ "MIT" ]
null
null
null
scripts/randomizer.py
cmuell89/DS-A
a408252e1993423c510c3cbe49501acc6916e91f
[ "MIT" ]
null
null
null
scripts/randomizer.py
cmuell89/DS-A
a408252e1993423c510c3cbe49501acc6916e91f
[ "MIT" ]
null
null
null
# coding=utf-8 from random import shuffle with open("../data/words.txt") as f: words = f.read().splitlines() shuffle(words) with open("../data/random_words.txt", "w") as f: for item in words: f.write("%s\n" % item)
21.181818
48
0.622318
0
0
0
0
0
0
0
0
68
0.291845
ecad9b0323eb30d3ba4bdf94306b9f59f9546d07
281
py
Python
utils.py
jacenfox/pytorch-training-framework
771642a6f40b1fa4f4c90ffa40e2cb90c3fd42d4
[ "MIT" ]
null
null
null
utils.py
jacenfox/pytorch-training-framework
771642a6f40b1fa4f4c90ffa40e2cb90c3fd42d4
[ "MIT" ]
null
null
null
utils.py
jacenfox/pytorch-training-framework
771642a6f40b1fa4f4c90ffa40e2cb90c3fd42d4
[ "MIT" ]
null
null
null
import numpy as np import math def time_elapse_parser(time_elapsed): # time_elapsed = time.time() - start_time m_elapsed, s_elapsed = divmod(time_elapsed, 60) h_elapsed, m_elapsed = divmod(m_elapsed, 60) return '%d:%02d:%02d' % (h_elapsed, m_elapsed, s_elapsed)
25.545455
61
0.715302
0
0
0
0
0
0
0
0
55
0.19573
ecaf99cf8d95777800b2e98c8ecd1054419889eb
1,839
py
Python
tests/Commands/test_SystemCommands.py
AndroidKitKat/TerminusBrowser
18d358d7d14bea00b538f9b2d8b9cf0f063d8b5e
[ "BSD-3-Clause" ]
null
null
null
tests/Commands/test_SystemCommands.py
AndroidKitKat/TerminusBrowser
18d358d7d14bea00b538f9b2d8b9cf0f063d8b5e
[ "BSD-3-Clause" ]
null
null
null
tests/Commands/test_SystemCommands.py
AndroidKitKat/TerminusBrowser
18d358d7d14bea00b538f9b2d8b9cf0f063d8b5e
[ "BSD-3-Clause" ]
null
null
null
from commandChanVim import urwidView from Commands.SystemCommands import systemCommands from Frames.reddit.indexFrame import RedditIndexFrame from Frames.fchan.indexFrame import IndexFrame from Frames.defaultFrame import DefaultFrame from customeTypes import SITE import pytest @pytest.fixture def view(): view = u...
29.190476
83
0.693855
0
0
0
0
1,053
0.572594
0
0
329
0.178902
ecb02d026ee6cbb6ddb8ef5430a7f94d901364f7
5,312
py
Python
ABCer.py
xl0418/ABCer
50f8976f00c555c2face1f451a17142e33df7856
[ "MIT" ]
2
2020-03-25T17:07:59.000Z
2020-04-01T12:03:45.000Z
ABCer.py
xl0418/ABCer
50f8976f00c555c2face1f451a17142e33df7856
[ "MIT" ]
null
null
null
ABCer.py
xl0418/ABCer
50f8976f00c555c2face1f451a17142e33df7856
[ "MIT" ]
null
null
null
#%% import numpy as np from itertools import repeat from itertools import starmap from scipy.stats import norm class ABCer: def __init__(self, iterations, particles, observations): self.iterations = iterations self.particles = particles self.observations = observations def initialize_...
37.146853
132
0.609375
4,193
0.789345
0
0
0
0
0
0
321
0.060429
ecb05a2674fc43bdf0105356c3e348abd419263c
1,892
py
Python
llvm_header/op_tester.py
mendlin/SIMD-libgen
0f386bb639c829275a00f46c4b31d59c5ed84a28
[ "AFL-1.1" ]
1
2021-01-07T03:18:27.000Z
2021-01-07T03:18:27.000Z
llvm_header/op_tester.py
Logicalmars/SIMD-libgen
0f386bb639c829275a00f46c4b31d59c5ed84a28
[ "AFL-1.1" ]
null
null
null
llvm_header/op_tester.py
Logicalmars/SIMD-libgen
0f386bb639c829275a00f46c4b31d59c5ed84a28
[ "AFL-1.1" ]
1
2021-11-29T07:28:13.000Z
2021-11-29T07:28:13.000Z
#!/usr/bin/python # This file is used to test vertical operations # e.g. # llvm_add_2 is an invalid operation since llc/lli raise exceptions on SelectionDAG import config import os failed = [] def change_makefile_source(sfrom, sto): comm = "sed -i 's/SOURCE = {sfrom}/SOURCE = {sto}/' Makefile".format( sfrom=sfrom,...
31.016393
87
0.615222
0
0
0
0
0
0
0
0
1,001
0.52907
ecb1f36fb203b8d051edf6d6cfdeae2ca3d1d0e9
1,405
py
Python
seahub/share/urls.py
saukrIppl/newsea
0fd5ab2ade9a8fb16b1e7b43ba13dac32eb39603
[ "Apache-2.0" ]
2
2017-06-21T09:46:55.000Z
2018-05-30T10:07:32.000Z
seahub/share/urls.py
saukrIppl/newsea
0fd5ab2ade9a8fb16b1e7b43ba13dac32eb39603
[ "Apache-2.0" ]
null
null
null
seahub/share/urls.py
saukrIppl/newsea
0fd5ab2ade9a8fb16b1e7b43ba13dac32eb39603
[ "Apache-2.0" ]
1
2020-10-01T04:11:41.000Z
2020-10-01T04:11:41.000Z
from django.conf.urls import patterns, url from views import * urlpatterns = patterns('', url(r'^$', list_shared_repos, name='share_admin'), url(r'^links/$', list_shared_links, name='list_shared_links'), url(r'^folders/$', list_priv_shared_folders, name='list_priv_shared_folders'), url(r'^add/$', shar...
61.086957
110
0.740214
0
0
0
0
0
0
0
0
668
0.475445
ecb23062c35565af3a775e697dce227a3e8317a9
276
py
Python
PyLaGriT/examples/create_exo.py
millerta/LaGriT-1
511ef22f3b7e839c7e0484604cd7f6a2278ae6b9
[ "CNRI-Python" ]
73
2017-02-09T17:54:28.000Z
2022-03-09T22:22:32.000Z
PyLaGriT/examples/create_exo.py
millerta/LaGriT-1
511ef22f3b7e839c7e0484604cd7f6a2278ae6b9
[ "CNRI-Python" ]
166
2017-01-26T17:15:45.000Z
2022-03-29T21:36:28.000Z
PyLaGriT/examples/create_exo.py
daniellivingston/LaGriT
decd0ce0e5dab068034ef382cabcd134562de832
[ "Intel" ]
63
2017-02-08T21:56:04.000Z
2022-03-24T06:48:36.000Z
from pylagrit import PyLaGriT l = PyLaGriT() m = l.create() m.createpts_xyz((3,3,3),(0.,0.,0.),(1.,1.,1.),rz_switch=[1,1,1],connect=True) m.status () m.status (brief=True) fs = m.create_boundary_facesets(base_name='faceset_bounds') m.dump_exo('cube.exo',facesets=fs.values())
30.666667
77
0.702899
0
0
0
0
0
0
0
0
26
0.094203
ecb3cf2ee7d709c516ad3d6fdd036750e84f3da1
1,188
py
Python
app/repository/page_repository.py
tch1bo/viaduct
bfd37b0a8408b2dd66fb01138163b80ce97699ff
[ "MIT" ]
11
2015-04-23T21:57:56.000Z
2019-04-28T12:48:58.000Z
app/repository/page_repository.py
tch1bo/viaduct
bfd37b0a8408b2dd66fb01138163b80ce97699ff
[ "MIT" ]
1
2016-10-05T14:10:58.000Z
2016-10-05T14:12:23.000Z
app/repository/page_repository.py
tch1bo/viaduct
bfd37b0a8408b2dd66fb01138163b80ce97699ff
[ "MIT" ]
3
2016-10-05T14:00:42.000Z
2019-01-16T14:33:43.000Z
from app import db from app.models.group import Group from app.models.page import Page, PageReadPermission def get_read_permission_groups_by_page(page): return db.session.query(Group) \ .join(PageReadPermission) \ .filter(PageReadPermission.page == page) \ .all() def add_page_group_read_...
28.285714
71
0.72138
0
0
0
0
0
0
0
0
14
0.011785
ecb49bb21b35339cb73ab865c201f6495e6361cb
29
py
Python
taskwiki/__init__.py
PtitCaius/taskwiki
8c4da3a744fd1aa22bfb0369658cecc925e77fd0
[ "MIT" ]
465
2015-03-27T09:42:18.000Z
2020-07-18T20:35:19.000Z
taskwiki/__init__.py
PtitCaius/taskwiki
8c4da3a744fd1aa22bfb0369658cecc925e77fd0
[ "MIT" ]
272
2015-01-10T20:38:02.000Z
2020-07-16T12:55:15.000Z
taskwiki/__init__.py
PtitCaius/taskwiki
8c4da3a744fd1aa22bfb0369658cecc925e77fd0
[ "MIT" ]
66
2015-03-21T16:33:39.000Z
2020-07-12T09:20:29.000Z
# (c) 2014-2015, Tomas Babej
14.5
28
0.655172
0
0
0
0
0
0
0
0
28
0.965517
ecb717ddf9643f637a0e89b5b2e731f30dc38ae8
107
py
Python
str3.py
Kantheesh/Learning-Python
d2dc9f1b9f652e6a6d84028e86a1daf77551eb5f
[ "MIT" ]
null
null
null
str3.py
Kantheesh/Learning-Python
d2dc9f1b9f652e6a6d84028e86a1daf77551eb5f
[ "MIT" ]
null
null
null
str3.py
Kantheesh/Learning-Python
d2dc9f1b9f652e6a6d84028e86a1daf77551eb5f
[ "MIT" ]
null
null
null
inp = "AjaY Kumar" out = inp.swapcase() print(out) inp = "AjaY kumAR" out = inp.title() print(out)
13.375
21
0.607477
0
0
0
0
0
0
0
0
24
0.224299
ecb94bd0a8608cae96300c0ab8bd777428b90695
3,388
py
Python
plot_movie.py
diogoff/plasma-tomography
8798351beaa9b069128fffd606587e74d30cb0e1
[ "MIT" ]
5
2019-02-08T18:34:45.000Z
2020-05-30T17:42:14.000Z
plot_movie.py
diogoff/plasma-tomography
8798351beaa9b069128fffd606587e74d30cb0e1
[ "MIT" ]
null
null
null
plot_movie.py
diogoff/plasma-tomography
8798351beaa9b069128fffd606587e74d30cb0e1
[ "MIT" ]
1
2018-07-18T12:50:03.000Z
2018-07-18T12:50:03.000Z
import os import sys import h5py import numpy as np import matplotlib.pyplot as plt import matplotlib.animation as ani from cmap import * from tensorflow.keras.models import load_model # ---------------------------------------------------------------------- if len(sys.argv) < 6: print('Usage: %s pulse t0 t1 dt v...
25.666667
90
0.527745
0
0
0
0
0
0
0
0
961
0.283648
ecb9fc3eb4af0c3744f4d570fe01f50eb2a46525
353
py
Python
Python/encontra_impares.py
robertogoes/exercicios-coursera-python
5093cc31ccda764b6131987fa81601b7179a9bfc
[ "MIT" ]
null
null
null
Python/encontra_impares.py
robertogoes/exercicios-coursera-python
5093cc31ccda764b6131987fa81601b7179a9bfc
[ "MIT" ]
null
null
null
Python/encontra_impares.py
robertogoes/exercicios-coursera-python
5093cc31ccda764b6131987fa81601b7179a9bfc
[ "MIT" ]
null
null
null
# Encontrando ímpares em uma lista def encontra_impares(lista, lista_impares = None): if lista_impares == None: lista_impares = [] if len(lista) < 1: return [] else: if lista[0]%2 != 0: lista_impares.extend([lista[0]]) encontra_impares(lista[1:], lista_impares) ...
25.214286
58
0.597734
0
0
0
0
0
0
0
0
35
0.09887
ecba0c87c633e44ca11824d2967de64d71f156ed
2,940
py
Python
main.py
William-Wang1988/gitblog
5d064f69755992fa8e85fd53bc9a8d3589d97971
[ "MIT" ]
null
null
null
main.py
William-Wang1988/gitblog
5d064f69755992fa8e85fd53bc9a8d3589d97971
[ "MIT" ]
10
2020-08-31T08:17:26.000Z
2020-09-21T03:39:12.000Z
main.py
William-Wang1988/gitblog
5d064f69755992fa8e85fd53bc9a8d3589d97971
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from github import Github from github.Issue import Issue import argparse MD_HEAD = """## Gitblog My personal blog using issues and GitHub Action """ ME_GITHUB_NAME = "gatsby101" ANCHOR_NUMBER = 5 TOP_ISSUES_LABELS = [ "Top", ] def isMe(issue): return issue.user.login == ME_GITHUB_NAM...
25.128205
81
0.591156
0
0
0
0
0
0
0
0
431
0.146599
ecba4755ffe4747535ec4eeeb0e07ad5f74903d6
2,687
py
Python
week-03/lab_03/lab_03_code.py
andrewn488/OMSBA-5067
ab2f9e9a3c7dcb88f838ce8e40eb3bca142d059a
[ "MIT" ]
null
null
null
week-03/lab_03/lab_03_code.py
andrewn488/OMSBA-5067
ab2f9e9a3c7dcb88f838ce8e40eb3bca142d059a
[ "MIT" ]
null
null
null
week-03/lab_03/lab_03_code.py
andrewn488/OMSBA-5067
ab2f9e9a3c7dcb88f838ce8e40eb3bca142d059a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Apr 15 22:15:28 2021 @author: ANalundasan For: OMSBA 5067, Lab 3 """ import numpy as np import matplotlib.pyplot as plt import math #################### STEP 1 - KNN Classifier ################################# data = np.array([ [1, 1,1,1,1, 3], ...
28.284211
79
0.426498
0
0
0
0
0
0
0
0
1,168
0.434686
ecba8b7698e1a2bbb48d56ba91fd2aa14fe731f5
1,236
py
Python
gge_proxy_manager/management/commands/clean_duplicates.py
mrcrgl/gge-storage
a8471624c1a865d4f7eeb00415bd4cd2a91ea310
[ "MIT" ]
null
null
null
gge_proxy_manager/management/commands/clean_duplicates.py
mrcrgl/gge-storage
a8471624c1a865d4f7eeb00415bd4cd2a91ea310
[ "MIT" ]
1
2015-04-09T15:58:19.000Z
2015-04-14T06:37:02.000Z
gge_proxy_manager/management/commands/clean_duplicates.py
mrcrgl/gge-storage
a8471624c1a865d4f7eeb00415bd4cd2a91ea310
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.core.management.base import BaseCommand, CommandError from gge_proxy_manager.methods import clean_duplicate_alliances, clean_duplicate_castles, clean_duplicate_players from gge_proxy_manager.models import Castle, Player, Alliance from django.utils.timezone import now...
37.454545
115
0.696602
874
0.70712
0
0
0
0
0
0
305
0.246764
ecbab1ca9b545730a74f300e7a921cd892b9aec6
995
py
Python
events/migrations/0001_initial.py
homosaur/stl-dsa
ccc32398ca5a7a849b7860e574a8a3f49b3bed75
[ "MIT" ]
null
null
null
events/migrations/0001_initial.py
homosaur/stl-dsa
ccc32398ca5a7a849b7860e574a8a3f49b3bed75
[ "MIT" ]
null
null
null
events/migrations/0001_initial.py
homosaur/stl-dsa
ccc32398ca5a7a849b7860e574a8a3f49b3bed75
[ "MIT" ]
null
null
null
# Generated by Django 2.2.9 on 2020-03-02 10:22 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Event', fields=[ ('id', models.AutoField(au...
32.096774
114
0.540704
902
0.906533
0
0
0
0
0
0
157
0.157789
ecbbc14b94ecde51bc73e82c975e7dbda34c951e
78
py
Python
myfirst2021/__init__.py
roan2008/myfirst2021
e3a82225a8ff625729da572cee04e2942d45fb8f
[ "MIT" ]
null
null
null
myfirst2021/__init__.py
roan2008/myfirst2021
e3a82225a8ff625729da572cee04e2942d45fb8f
[ "MIT" ]
null
null
null
myfirst2021/__init__.py
roan2008/myfirst2021
e3a82225a8ff625729da572cee04e2942d45fb8f
[ "MIT" ]
null
null
null
# __init__.py from myfirst2021.studentclass import Student,Specialstudent
19.5
60
0.820513
0
0
0
0
0
0
0
0
14
0.179487
ecbc2b714802eef938dc23390f77656b110ad0d7
33,775
py
Python
admin/tools/crawler_db/PS3-PHPtoMYSQL.py
gorpoorko/TCXS-Project-Store-Web-PlayStation3-V3
58bf3ba08723d775e8b42e6dfa16ea5b79594d26
[ "MIT" ]
null
null
null
admin/tools/crawler_db/PS3-PHPtoMYSQL.py
gorpoorko/TCXS-Project-Store-Web-PlayStation3-V3
58bf3ba08723d775e8b42e6dfa16ea5b79594d26
[ "MIT" ]
null
null
null
admin/tools/crawler_db/PS3-PHPtoMYSQL.py
gorpoorko/TCXS-Project-Store-Web-PlayStation3-V3
58bf3ba08723d775e8b42e6dfa16ea5b79594d26
[ "MIT" ]
null
null
null
import os import pathlib import sqlite3 from bs4 import BeautifulSoup import pymysql.cursors from datetime import datetime #faz a conexao com o banco de dados conexao = pymysql.connect(host = 'localhost', user = 'root', password = '', db...
42.430905
169
0.533412
0
0
0
0
0
0
0
0
25,734
0.760618
ecbd55cadec6e2c9341f39459cbc392d8c76d835
792
py
Python
hail/python/hailtop/auth/sql_config.py
sigmarkarl/hail
11b7c22342a945c61b24c5f8babf4ab411d3d2f1
[ "MIT" ]
2
2020-12-15T21:20:24.000Z
2020-12-21T19:46:26.000Z
hail/python/hailtop/auth/sql_config.py
Dania-Abuhijleh/hail
a187dc0867801ca1eee774588fe58604a133a0d9
[ "MIT" ]
2
2016-11-17T03:06:10.000Z
2017-12-05T19:00:24.000Z
hail/python/hailtop/auth/sql_config.py
Dania-Abuhijleh/hail
a187dc0867801ca1eee774588fe58604a133a0d9
[ "MIT" ]
2
2020-07-28T18:55:19.000Z
2020-10-19T16:43:03.000Z
import json def create_secret_data_from_config(config, server_ca, client_cert, client_key): assert all(config.get(x) is not None for x in ('host', 'user', 'password', 'db', 'ssl-ca', 'ssl-cert', 'ssl-key', 'ssl-mode')), config.keys() secret_data = dict() secret_data...
33
80
0.638889
0
0
0
0
0
0
0
0
374
0.472222
ecbdfa159cc6c94130e99feee6fc9442f8f7112a
4,440
py
Python
nxsdk_modules_ncl/epl/data/gen_wgts_for_inference.py
biagiom/models
79489a3c429b3027dd420840bbccfee5e8c9a879
[ "BSD-3-Clause" ]
54
2020-03-04T17:37:17.000Z
2022-02-22T13:16:10.000Z
nxsdk_modules_ncl/epl/data/gen_wgts_for_inference.py
biagiom/models
79489a3c429b3027dd420840bbccfee5e8c9a879
[ "BSD-3-Clause" ]
9
2020-08-26T13:17:54.000Z
2021-11-09T09:02:00.000Z
nxsdk_modules_ncl/epl/data/gen_wgts_for_inference.py
biagiom/models
79489a3c429b3027dd420840bbccfee5e8c9a879
[ "BSD-3-Clause" ]
26
2020-03-18T17:09:34.000Z
2021-11-22T16:23:14.000Z
# Copyright(c) 2019-2020 Intel Corporation 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 list of condition...
40.363636
93
0.647973
2,756
0.620721
0
0
158
0.035586
0
0
1,767
0.397973
ecc0a2e456508d8dfa56614ecca79ec800ea879d
3,363
py
Python
server/permissions/users.py
dragorhast/server
a5ad238e630c3b575e3bc3c51718e7ebfff1e4d1
[ "MIT" ]
5
2018-11-28T11:33:25.000Z
2022-03-27T12:50:02.000Z
server/permissions/users.py
dragorhast/server
a5ad238e630c3b575e3bc3c51718e7ebfff1e4d1
[ "MIT" ]
124
2018-10-07T21:31:02.000Z
2019-03-26T11:51:00.000Z
server/permissions/users.py
dragorhast/server
a5ad238e630c3b575e3bc3c51718e7ebfff1e4d1
[ "MIT" ]
null
null
null
from aiohttp.web_urldispatcher import View from server.models import User, Bike, Reservation from server.models.user import UserType from server.permissions.permission import RoutePermissionError, Permission from server.service.access.users import get_user from server.service.verify_token import verify_token, TokenVer...
36.956044
111
0.680345
3,010
0.895034
0
0
353
0.104966
2,040
0.606601
979
0.291109
ecc2dff05ab144dc405f1ac28e34af1c5e74ebd3
930
py
Python
setup.py
kariminf/pytransliteration
a957a3fa549e674d20e94e30935e028994673067
[ "Apache-2.0" ]
10
2017-07-26T21:59:39.000Z
2021-04-12T20:06:48.000Z
setup.py
kariminf/pytransliteration
a957a3fa549e674d20e94e30935e028994673067
[ "Apache-2.0" ]
2
2018-12-29T18:34:17.000Z
2019-01-01T10:59:20.000Z
setup.py
kariminf/pytransliteration
a957a3fa549e674d20e94e30935e028994673067
[ "Apache-2.0" ]
4
2018-08-18T21:01:40.000Z
2021-06-25T08:59:09.000Z
import os from setuptools import setup def readme(): try: with open("README.md") as f: return f.read() except IOError: return "" setup( name = "lang-trans", version = "0.6.0", author = "Abdelkrime Aries", author_email = "kariminfo0@gmail.com", description = ("Py...
29.0625
65
0.615054
0
0
0
0
0
0
0
0
498
0.535484
ecc3b237f1452c998b773c172662c9bd6ab6636e
315
py
Python
Two-pointer/Move elements in the array/Remove elements #27.py
Awesomeyaya/Leetcode-Two-pointer
15cd0a73f5abc4d0d19d18c231750d31dc839dbe
[ "MIT" ]
null
null
null
Two-pointer/Move elements in the array/Remove elements #27.py
Awesomeyaya/Leetcode-Two-pointer
15cd0a73f5abc4d0d19d18c231750d31dc839dbe
[ "MIT" ]
null
null
null
Two-pointer/Move elements in the array/Remove elements #27.py
Awesomeyaya/Leetcode-Two-pointer
15cd0a73f5abc4d0d19d18c231750d31dc839dbe
[ "MIT" ]
1
2018-10-29T17:33:52.000Z
2018-10-29T17:33:52.000Z
def removeElement(self, nums, val): """ :type nums: List[int] :type val: int :rtype: int """ zero = 0 for n in range(len(nums)): if nums[n] != val: nums[zero] = nums[n] zero = zero + 1 return zero
22.5
36
0.396825
0
0
0
0
0
0
0
0
97
0.307937
ecc4a0319007d502baab6c3f21559f2a55ba6379
199
py
Python
session9Scripting/playground/datafile2Builder.py
campbellC/introToPython
988f67adc3f687248308cb9b26481eb30cad687d
[ "MIT" ]
1
2017-11-30T14:10:53.000Z
2017-11-30T14:10:53.000Z
session9Scripting/playground/datafile2Builder.py
campbellC/introToPython
988f67adc3f687248308cb9b26481eb30cad687d
[ "MIT" ]
null
null
null
session9Scripting/playground/datafile2Builder.py
campbellC/introToPython
988f67adc3f687248308cb9b26481eb30cad687d
[ "MIT" ]
null
null
null
import random random.seed() with open('datafile2.dat','w') as f: for i in range(10000): for j in range(50): f.write(str(random.randint(0,1000)) + ' ') f.write('\n')
19.9
54
0.547739
0
0
0
0
0
0
0
0
25
0.125628
ecc9cb90334c57c5634ed4d6c256de83cb378f5a
1,914
py
Python
www/csvtojs.py
denverpost/nouner
b37e6fd1215ce2587c450906bc5ca5328b6aa4d0
[ "Unlicense" ]
null
null
null
www/csvtojs.py
denverpost/nouner
b37e6fd1215ce2587c450906bc5ca5328b6aa4d0
[ "Unlicense" ]
23
2015-09-25T18:17:27.000Z
2018-02-09T22:31:13.000Z
www/csvtojs.py
denverpost/nounmatch
b37e6fd1215ce2587c450906bc5ca5328b6aa4d0
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # Turn a two-column CSV into a javascript object. import os, sys, csv import argparse import doctest import string def escape(escapee): """ Return a js-safe string. >>> print escape('Escape "THIS"') Escape \\"THIS\\" """ return string.replace(escapee, '"', '\\"') ...
28.147059
94
0.547022
0
0
0
0
0
0
0
0
961
0.50209
ecc9fbadf62756ff4d521776b745358bc90ffcbe
183
py
Python
setup.py
Chao8219/py_starter
70fb3a2626899c0996a05ec7377ec8690dd216f1
[ "MIT" ]
null
null
null
setup.py
Chao8219/py_starter
70fb3a2626899c0996a05ec7377ec8690dd216f1
[ "MIT" ]
null
null
null
setup.py
Chao8219/py_starter
70fb3a2626899c0996a05ec7377ec8690dd216f1
[ "MIT" ]
null
null
null
import distutils.core distutils.core.setup( name='py_starter', version='1.0', description='The very beginning of python code.', author=AChao, # to be continued. )
20.333333
53
0.672131
0
0
0
0
0
0
0
0
71
0.387978
ecca78355354d397e24c37e08841c5095a57bc0f
3,231
py
Python
tests/test_output.py
jhosoume/pymfe
b454f8a5470ebd4dbbeb1a7e5570443dd65fdf9a
[ "MIT" ]
null
null
null
tests/test_output.py
jhosoume/pymfe
b454f8a5470ebd4dbbeb1a7e5570443dd65fdf9a
[ "MIT" ]
null
null
null
tests/test_output.py
jhosoume/pymfe
b454f8a5470ebd4dbbeb1a7e5570443dd65fdf9a
[ "MIT" ]
null
null
null
"""Test module for MFE class output details.""" import pytest import sklearn.tree import pymfe._internal as _internal from pymfe.mfe import MFE from tests.utils import load_xy GNAME = "mfe-output-details" class TestOutput: """TestClass dedicated to test MFE output details.""" def test_output_lengths_1(self...
28.59292
85
0.581863
3,021
0.935005
0
0
2,326
0.719901
0
0
373
0.115444
ecce5739e9c5dd5c258cb92aff8a14712e75760c
229
py
Python
halalar/legal/views.py
jawaidss/halalar-web
abb5db6fa83aba7b7a280fcff1b880f36c0b4548
[ "MIT" ]
1
2015-11-09T22:09:43.000Z
2015-11-09T22:09:43.000Z
halalar/legal/views.py
jawaidss/halalar-web
abb5db6fa83aba7b7a280fcff1b880f36c0b4548
[ "MIT" ]
null
null
null
halalar/legal/views.py
jawaidss/halalar-web
abb5db6fa83aba7b7a280fcff1b880f36c0b4548
[ "MIT" ]
null
null
null
from django.views.generic.base import TemplateView class PrivacyPolicyView(TemplateView): template_name = 'legal/privacy_policy.html' class TermsOfServiceView(TemplateView): template_name = 'legal/terms_of_service.html'
32.714286
50
0.816594
175
0.764192
0
0
0
0
0
0
56
0.244541
ecce92ef0c81b0fe0ec5c41632dcfd5e4b125ddc
436
py
Python
SN/socialcircle/forms.py
samzek/social_circle
071190bfb2b5b465fb669d8713698da9030be50f
[ "Apache-2.0" ]
3
2015-06-03T09:48:28.000Z
2015-06-25T16:54:32.000Z
SN/socialcircle/forms.py
samzek/social_circle
071190bfb2b5b465fb669d8713698da9030be50f
[ "Apache-2.0" ]
null
null
null
SN/socialcircle/forms.py
samzek/social_circle
071190bfb2b5b465fb669d8713698da9030be50f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from django.forms import ModelForm from models import SCUser,Post from django import forms class modifyUser(ModelForm): class Meta: model = SCUser fields = ['first_name','last_name','username','email','birth_date','password','address','user_bio','profi...
22.947368
123
0.662844
292
0.669725
0
0
0
0
0
0
155
0.355505
eccee2d9721694209ab951d349b8a65cdea70532
22,944
py
Python
pysnmp-with-texts/CISCO-IP-NW-DISCOVERY-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/CISCO-IP-NW-DISCOVERY-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/CISCO-IP-NW-DISCOVERY-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module CISCO-IP-NW-DISCOVERY-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-IP-NW-DISCOVERY-MIB # Produced by pysmi-0.3.4 at Wed May 1 12:02:10 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3....
206.702703
1,826
0.802868
0
0
0
0
0
0
0
0
12,383
0.539705
eccf13ca0d1a710475435bedf4a8059c9f65f162
3,701
py
Python
python/hsfs/core/feature_group_base.py
berthoug/feature-store-api
85c23ae08c7de65acd79a3b528fa72c07e52a272
[ "Apache-2.0" ]
null
null
null
python/hsfs/core/feature_group_base.py
berthoug/feature-store-api
85c23ae08c7de65acd79a3b528fa72c07e52a272
[ "Apache-2.0" ]
null
null
null
python/hsfs/core/feature_group_base.py
berthoug/feature-store-api
85c23ae08c7de65acd79a3b528fa72c07e52a272
[ "Apache-2.0" ]
null
null
null
# # Copyright 2020 Logical Clocks AB # # 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 ag...
32.752212
91
0.636315
3,037
0.820589
0
0
0
0
0
0
2,677
0.723318
eccfc8a373c8a059da4680e32c257444e5001a7b
44,776
py
Python
rasmus/vis/syntenyvis.py
Open-Technology/Computational-Biology
f7628900f2d1d9ade60d7ad94f6b3d1022c92cb7
[ "MIT" ]
30
2015-05-08T19:21:15.000Z
2022-03-11T21:30:33.000Z
rasmus/vis/syntenyvis.py
Open-Technology/Computational-Biology
f7628900f2d1d9ade60d7ad94f6b3d1022c92cb7
[ "MIT" ]
null
null
null
rasmus/vis/syntenyvis.py
Open-Technology/Computational-Biology
f7628900f2d1d9ade60d7ad94f6b3d1022c92cb7
[ "MIT" ]
8
2015-05-08T02:02:33.000Z
2021-06-10T17:51:03.000Z
# python libs import copy # rasmus libs from rasmus import stats from rasmus import util # rasmus bio libs from compbio import fasta from compbio import regionlib import compbio.regionlib from compbio.regionlib import iter_chrom # graphics libs from summon.core import * from summon import shapes import summon # g...
32.305916
91
0.466902
31,381
0.700844
960
0.02144
0
0
0
0
19,478
0.43501
ecd274b39828a2cbb60621e83b0c76718302d58c
620
py
Python
visual-option-chain/tasks.py
WillWcchan/Visual-Option-Chain-Graph
f9bfec4a262c2c3c3212e38113af4ad59517c52c
[ "MIT" ]
1
2021-11-13T20:03:17.000Z
2021-11-13T20:03:17.000Z
visual-option-chain/tasks.py
WillWcchan/Visual-Option-Chain-Graph
f9bfec4a262c2c3c3212e38113af4ad59517c52c
[ "MIT" ]
5
2021-04-08T21:58:58.000Z
2021-10-31T00:55:39.000Z
visual-option-chain/tasks.py
WillWcchan/Visual-Option-Chain-Graph
f9bfec4a262c2c3c3212e38113af4ad59517c52c
[ "MIT" ]
null
null
null
from celery import shared_task from django.core.mail import send_mail from datetime import datetime from time import sleep # Start the worker process and be on top of the visual-option-chain directory: celery -A visual-option-chain worker -l info -E @shared_task def send_email_task(subject, message, from_email, recip...
26.956522
126
0.722581
0
0
0
0
365
0.58871
0
0
144
0.232258
ecd428458267aa04e972ffb127dbe76ea7b0f91c
315
py
Python
linebot/__init__.py
WhereWeCanShare/linebot
ae05a17e5ba3bd5c61e8075ef3b3543b70369fd7
[ "BSD-3-Clause" ]
null
null
null
linebot/__init__.py
WhereWeCanShare/linebot
ae05a17e5ba3bd5c61e8075ef3b3543b70369fd7
[ "BSD-3-Clause" ]
null
null
null
linebot/__init__.py
WhereWeCanShare/linebot
ae05a17e5ba3bd5c61e8075ef3b3543b70369fd7
[ "BSD-3-Clause" ]
null
null
null
from flask import Flask, Blueprint from .settings import Setting from .routes import main from .line2telegram.routes import l2tg def create_app(): app = Flask(__name__) app.config.from_object(Setting) app.register_blueprint(main) app.register_blueprint(l2tg, url_prefix='/l2tg') return app
19.6875
52
0.749206
0
0
0
0
0
0
0
0
7
0.022222
ecd534abd7f8a9a4fecc3c6b9c2956ced9c8bbfb
4,631
py
Python
model/predict_from_file.py
elephantum/image-tools
38d704a1ade32ed1f6ae8c652d257c15b7cc2740
[ "MIT" ]
null
null
null
model/predict_from_file.py
elephantum/image-tools
38d704a1ade32ed1f6ae8c652d257c15b7cc2740
[ "MIT" ]
null
null
null
model/predict_from_file.py
elephantum/image-tools
38d704a1ade32ed1f6ae8c652d257c15b7cc2740
[ "MIT" ]
null
null
null
""" Given a csv or txt file and a Tensorflow 1.15 SavedModel file, run image classification on the urls and write the predicted label and confidence back to the file """ import argparse import os from io import BytesIO import requests import pandas as pd from csv import writer as csv_writer from tqdm import tqdm from m...
37.346774
134
0.734183
0
0
0
0
0
0
0
0
1,887
0.407471
ecd5add47e791d4dc866d0ec2a94e998ea16a8cb
2,403
py
Python
line_art/line_art.py
Ravenlocke/PythonArt
30de6117f7639313344c9938087399acfc93ba80
[ "MIT" ]
null
null
null
line_art/line_art.py
Ravenlocke/PythonArt
30de6117f7639313344c9938087399acfc93ba80
[ "MIT" ]
null
null
null
line_art/line_art.py
Ravenlocke/PythonArt
30de6117f7639313344c9938087399acfc93ba80
[ "MIT" ]
null
null
null
import click import matplotlib.pyplot as plt import numpy as np from loguru import logger from matplotlib.collections import LineCollection number_to_degrees = { k: (np.cos(np.pi * 2 / 10 * k), np.sin(np.pi * 2 / 10 * k)) for k in range(10) } @click.command() @click.option( "--seed", "-s", default=0, hel...
26.119565
99
0.648772
0
0
0
0
2,109
0.877653
0
0
639
0.265918
ecd6a85eca2c9043b2128295fe6e487ccb69bc48
1,277
py
Python
src/utils/reddit.py
mzone242/Loth-Bot
830b3659c86f36e84c12e13796f74c607ff2868e
[ "MIT" ]
null
null
null
src/utils/reddit.py
mzone242/Loth-Bot
830b3659c86f36e84c12e13796f74c607ff2868e
[ "MIT" ]
null
null
null
src/utils/reddit.py
mzone242/Loth-Bot
830b3659c86f36e84c12e13796f74c607ff2868e
[ "MIT" ]
null
null
null
import datetime import logging logger = logging.getLogger("utils.reddit") subreddit = None over_threshold = [] def load_subreddit(_subreddit): global subreddit subreddit = _subreddit return def fetch_posts(_limit): try: logger.info(f"Fetching top {_limit} posts from {subreddit.display_name...
28.377778
99
0.584182
0
0
0
0
0
0
0
0
219
0.171496
ecd8a0ddb4c88f7b415905177b5939de99f001aa
1,220
py
Python
mfcc-features.py
gitikadaswani/Audio-Genre-Classification
5702ed067d41982018a3e166dcdcd7b8e8cc6fa9
[ "MIT" ]
20
2017-12-09T02:41:46.000Z
2020-08-29T06:26:57.000Z
mfcc-features.py
debeat/Audio-Genre-Classification
5702ed067d41982018a3e166dcdcd7b8e8cc6fa9
[ "MIT" ]
2
2018-04-20T14:13:05.000Z
2020-01-21T17:14:46.000Z
mfcc-features.py
debeat/Audio-Genre-Classification
5702ed067d41982018a3e166dcdcd7b8e8cc6fa9
[ "MIT" ]
11
2018-05-17T07:32:51.000Z
2021-11-11T23:51:36.000Z
#from scikits.talkbox.features import mfcc import scipy.io.wavfile import numpy as np import sys import os import glob from utils1 import GENRE_DIR, GENRE_LIST from python_speech_features import mfcc #from librosa.feature import mfcc # Given a wavfile, computes mfcc and saves mfcc data def create_ceps(wavfile): sam...
25.416667
66
0.741803
0
0
0
0
0
0
0
0
389
0.318852
ecdb7938bc7af5630df11db6dfd0808f1fab8b1e
3,879
py
Python
metadata4bats/metadata_wavefile_wurb.py
cloudedbats/cloudedbats_metadata
85f286416a9552f69e4b857541e69cd7d3a063b1
[ "MIT" ]
null
null
null
metadata4bats/metadata_wavefile_wurb.py
cloudedbats/cloudedbats_metadata
85f286416a9552f69e4b857541e69cd7d3a063b1
[ "MIT" ]
null
null
null
metadata4bats/metadata_wavefile_wurb.py
cloudedbats/cloudedbats_metadata
85f286416a9552f69e4b857541e69cd7d3a063b1
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding:utf-8 -*- # Project: http://cloudedbats.org # Copyright (c) 2018 Arnold Andreasson # License: MIT License (see LICENSE.txt or http://opensource.org/licenses/mit). import re import metadata4bats class MetadataWavefileWurb(metadata4bats.MetadataWavefile): """ """ def __init__(s...
34.633929
98
0.531065
3,210
0.827533
0
0
0
0
0
0
1,237
0.318897
ecdc6ba10786df9e7a33a53fdc2a2e452c9d0c0f
1,551
py
Python
2022/fix_user_varbinaries_T298565.py
wikimedia/operations-software-schema-changes
d5fc0442126c9e4280b90302f675889724b085db
[ "Apache-2.0" ]
1
2022-03-25T06:59:37.000Z
2022-03-25T06:59:37.000Z
2022/fix_user_varbinaries_T298565.py
wikimedia/operations-software-schema-changes
d5fc0442126c9e4280b90302f675889724b085db
[ "Apache-2.0" ]
null
null
null
2022/fix_user_varbinaries_T298565.py
wikimedia/operations-software-schema-changes
d5fc0442126c9e4280b90302f675889724b085db
[ "Apache-2.0" ]
null
null
null
from auto_schema.schema_change import SchemaChange # Copy this file and make adjustments # Set to None or 0 to skip downtiming downtime_hours = 6 ticket = 'T298565' fields = { 'user_newpass_time': 'BINARY(14) DEFAULT NULL', 'user_email_authenticated': 'BINARY(14) DEFAULT NULL', 'user_email_token': 'BINAR...
31.653061
93
0.668601
0
0
0
0
0
0
0
0
835
0.538362
ecde65669f4bedead3c07c5ea0c8b548eae55547
274
py
Python
examples/tutorial/Hello World/hello_world_simple.py
fearaschiarrai/gxpy
4c5e7594b24e530a8cd94df1eef562c5c6ce3e92
[ "BSD-2-Clause" ]
25
2017-07-14T06:39:37.000Z
2022-03-09T21:39:51.000Z
examples/tutorial/Hello World/hello_world_simple.py
fearaschiarrai/gxpy
4c5e7594b24e530a8cd94df1eef562c5c6ce3e92
[ "BSD-2-Clause" ]
100
2016-12-13T17:30:41.000Z
2021-08-01T20:21:13.000Z
examples/tutorial/Hello World/hello_world_simple.py
fearaschiarrai/gxpy
4c5e7594b24e530a8cd94df1eef562c5c6ce3e92
[ "BSD-2-Clause" ]
28
2016-12-12T17:34:40.000Z
2022-03-16T15:39:39.000Z
import geosoft.gxpy as gxpy # a GX context is required, and must be assigned to a variable that persists through the life of execution. gxc = gxpy.gx.GXpy() # gid is a property of the context that holds the user's Geosoft ID. Say hello. print('Hello {}'.format(gxc.gid))
34.25
107
0.740876
0
0
0
0
0
0
0
0
197
0.718978
ecdebbbcc930fbd593a27cf375cbc5803f997b9d
1,901
py
Python
PAL/Cross/pupy/modules/load_package.py
infosecsecurity/OSPTF
df3f63dc882db6d7e0b7bd80476e9bbc8471ac1f
[ "MIT" ]
2
2017-11-23T01:07:37.000Z
2021-06-25T05:03:49.000Z
PAL/Cross/pupy/modules/load_package.py
infosecsecurity/OSPTF
df3f63dc882db6d7e0b7bd80476e9bbc8471ac1f
[ "MIT" ]
null
null
null
PAL/Cross/pupy/modules/load_package.py
infosecsecurity/OSPTF
df3f63dc882db6d7e0b7bd80476e9bbc8471ac1f
[ "MIT" ]
1
2018-05-22T02:28:43.000Z
2018-05-22T02:28:43.000Z
# -*- coding: utf-8 -*- from pupylib.PupyModule import * import os __class_name__="LoadPackageModule" ROOT=os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) def package_completer(text, line, begidx, endidx): try: l=[] for p in ["packages/all", "packages/linux/all/", "packages/windows...
41.326087
151
0.603893
1,097
0.577065
0
0
1,133
0.596002
0
0
614
0.322988
ecdee0d3de015065d94e2fa767a46043dd7614ac
87,434
py
Python
eucaconsole/views/instances.py
gholms/eucaconsole
4629c961c90e3aae27e3a869a7f157bafeda6489
[ "BSD-2-Clause" ]
null
null
null
eucaconsole/views/instances.py
gholms/eucaconsole
4629c961c90e3aae27e3a869a7f157bafeda6489
[ "BSD-2-Clause" ]
null
null
null
eucaconsole/views/instances.py
gholms/eucaconsole
4629c961c90e3aae27e3a869a7f157bafeda6489
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2013-2016 Hewlett Packard Enterprise Development LP # # Redistribution and use of this software 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 copyrig...
52.73462
122
0.636091
84,179
0.962772
0
0
52,739
0.603186
0
0
13,107
0.149907
ecdfc10584ead3508610d287f02bad431a223015
1,069
py
Python
controllers/messagelog.py
uezo/linebot-project-template
294d40f5c50a3bbee346314107b60e98f4e07bf0
[ "MIT" ]
14
2019-08-05T22:54:59.000Z
2021-12-21T00:29:22.000Z
controllers/messagelog.py
whitecat-22/linebot-project-template
294d40f5c50a3bbee346314107b60e98f4e07bf0
[ "MIT" ]
1
2021-06-17T09:30:33.000Z
2021-06-18T07:16:37.000Z
controllers/messagelog.py
whitecat-22/linebot-project-template
294d40f5c50a3bbee346314107b60e98f4e07bf0
[ "MIT" ]
5
2019-09-03T06:51:44.000Z
2021-06-17T09:40:42.000Z
from flask import ( Blueprint, current_app, request, abort, render_template ) from minette.serializer import loads # メインから読み込むBlueprintの定義 bp = Blueprint("messagelog", __name__) # メッセージログのハンドラー @bp.route("/messagelog", methods=["GET"]) def messagelog(): # BOTインスタンスの取得 bot = current_app.l...
30.542857
76
0.651076
0
0
0
0
1,000
0.788022
0
0
535
0.421592
ecdfea2fc8814373ceb133d3329d18be6410b077
2,794
py
Python
remove_proper_names/word_swaps.py
jsedoc/nn_chatbot
7b4406687bad2efa14658cb5aa137065cd325073
[ "MIT" ]
2
2017-07-22T15:34:02.000Z
2017-12-07T07:28:56.000Z
remove_proper_names/word_swaps.py
jsedoc/nn_chatbot
7b4406687bad2efa14658cb5aa137065cd325073
[ "MIT" ]
null
null
null
remove_proper_names/word_swaps.py
jsedoc/nn_chatbot
7b4406687bad2efa14658cb5aa137065cd325073
[ "MIT" ]
3
2017-06-09T10:30:22.000Z
2020-02-25T02:29:58.000Z
import glob import os # from nltk.tokenize import sent_e import pickle import nltk import proper_names import pdb import itertools import zlib import pdb import unicodedata import pickle from dateutil.parser import parse def is_date(string): try: exceptions = ["sun", "sat"] parse(string) return string not in...
27.126214
112
0.668576
0
0
0
0
0
0
0
0
1,139
0.407659
ece0d4591ac1dbef0075df8821e6f6390b749839
5,015
py
Python
model/MolecularVAE_TF.py
DexiongYung/molecular-vae
ca0e5a58abfc89e693d06331f93e5a23b948b683
[ "MIT" ]
null
null
null
model/MolecularVAE_TF.py
DexiongYung/molecular-vae
ca0e5a58abfc89e693d06331f93e5a23b948b683
[ "MIT" ]
null
null
null
model/MolecularVAE_TF.py
DexiongYung/molecular-vae
ca0e5a58abfc89e693d06331f93e5a23b948b683
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from utilities import DEVICE def vae_loss(x_decoded_mean, x, z_mean, z_sd): bce_loss = F.binary_cross_entropy(x_decoded_mean, x, reduction='sum') kl_loss = -0.5 * torch.sum(1 + z_sd - z_mean.pow(2) - z_sd) return bce_loss + kl_loss class...
38.875969
76
0.592223
4,699
0.936989
0
0
0
0
0
0
58
0.011565
ece2b7f45bad32bc48fb693a6dbc789112e48513
2,391
py
Python
gdmtl/datasets/sampler.py
binshengliu/gdmtl
fb8bfe0e87bbd6d8535cc8449012fb4119430d4c
[ "MIT" ]
null
null
null
gdmtl/datasets/sampler.py
binshengliu/gdmtl
fb8bfe0e87bbd6d8535cc8449012fb4119430d4c
[ "MIT" ]
null
null
null
gdmtl/datasets/sampler.py
binshengliu/gdmtl
fb8bfe0e87bbd6d8535cc8449012fb4119430d4c
[ "MIT" ]
1
2022-02-26T00:49:03.000Z
2022-02-26T00:49:03.000Z
from __future__ import annotations from typing import Iterator, List import numpy as np from more_itertools import chunked from torch.utils.data import Sampler from .rank_dataset import TokenCountDataset class DynamicBatchSampler(Sampler): # type:ignore def __init__( self, dataset: TokenCountD...
30.653846
88
0.608532
2,178
0.910916
0
0
0
0
0
0
379
0.158511
ece4317db2ec23cd3da212a5f91799db6c4f4f28
732
py
Python
winter/drf/input_serializer.py
EvgenySmekalin/winter
24b6a02f958478547a4a120324823743a1f7e1a1
[ "MIT" ]
1
2020-03-28T14:54:28.000Z
2020-03-28T14:54:28.000Z
winter/drf/input_serializer.py
EvgenySmekalin/winter
24b6a02f958478547a4a120324823743a1f7e1a1
[ "MIT" ]
null
null
null
winter/drf/input_serializer.py
EvgenySmekalin/winter
24b6a02f958478547a4a120324823743a1f7e1a1
[ "MIT" ]
null
null
null
from typing import Dict from typing import Optional from typing import Type from dataclasses import dataclass from rest_framework.serializers import Serializer from ..core import ComponentMethod from ..core import annotate @dataclass class InputSerializer: class_: Type[Serializer] kwargs: Dict destinati...
28.153846
98
0.81694
103
0.14071
0
0
114
0.155738
0
0
0
0
ece4d8335a17b601ebf8628678662cbc5a6d273e
4,417
py
Python
scripts/showClusteringWithMatplotlib.py
victor-gil-sepulveda/pyProCT
2777c73efb48d5ca6543c69a31719421c4d54694
[ "MIT" ]
10
2015-03-07T09:00:06.000Z
2019-01-25T15:00:59.000Z
scripts/showClusteringWithMatplotlib.py
victor-gil-sepulveda/pyProCT
2777c73efb48d5ca6543c69a31719421c4d54694
[ "MIT" ]
6
2015-01-08T11:17:14.000Z
2018-10-08T15:17:32.000Z
scripts/showClusteringWithMatplotlib.py
victor-gil-sepulveda/pyProCT
2777c73efb48d5ca6543c69a31719421c4d54694
[ "MIT" ]
11
2015-03-02T11:13:24.000Z
2022-02-22T16:21:56.000Z
# http://stackoverflow.com/questions/5147112/matplotlib-how-to-put-individual-tags-for-a-scatter-plot # http://stackoverflow.com/questions/10374930/matplotlib-annotating-a-3d-scatter-plot import sys from pyproct.clustering.cluster import Cluster import prody import matplotlib.pyplot as plt import numpy import json fr...
46.989362
150
0.685307
0
0
0
0
0
0
0
0
1,189
0.269187
ece5b98101c0b7084789fda8de5123934565565b
15,973
py
Python
tamarco/core/microservice.py
System73/tamarco
c85bec267d39057a4cd5f1c9854d5e2840cebb1e
[ "MIT" ]
9
2019-09-06T10:57:36.000Z
2019-10-14T07:24:02.000Z
tamarco/core/microservice.py
System73/tamarco
c85bec267d39057a4cd5f1c9854d5e2840cebb1e
[ "MIT" ]
4
2020-04-06T15:52:40.000Z
2021-06-02T00:27:33.000Z
tamarco/core/microservice.py
System73/tamarco
c85bec267d39057a4cd5f1c9854d5e2840cebb1e
[ "MIT" ]
3
2019-09-06T10:52:05.000Z
2019-10-10T07:45:26.000Z
import asyncio import logging import sys import time import uuid from collections import OrderedDict from collections.abc import Callable from functools import partial from threading import Thread from typing import Coroutine, Union from tamarco.core.dependency_resolver import CantSolveDependencies, resolve_dependency...
38.121718
120
0.65617
11,023
0.690102
0
0
466
0.029174
6,549
0.410004
6,431
0.402617
ece6b2f23aba6f4dbaac2a541f07ef48b3ac7e3b
4,990
py
Python
napari/utils/colormaps/_tests/test_categorical_colormap.py
MaksHess/napari
64a144607342c02177fc62fa83a3442ace0a98e7
[ "BSD-3-Clause" ]
1,345
2019-03-03T21:14:14.000Z
2022-03-31T19:46:39.000Z
napari/utils/colormaps/_tests/test_categorical_colormap.py
MaksHess/napari
64a144607342c02177fc62fa83a3442ace0a98e7
[ "BSD-3-Clause" ]
3,904
2019-03-02T01:30:24.000Z
2022-03-31T20:17:27.000Z
napari/utils/colormaps/_tests/test_categorical_colormap.py
MaksHess/napari
64a144607342c02177fc62fa83a3442ace0a98e7
[ "BSD-3-Clause" ]
306
2019-03-29T17:09:10.000Z
2022-03-30T09:54:11.000Z
import json from itertools import cycle import numpy as np import pytest from napari.utils.colormaps.categorical_colormap import CategoricalColormap def test_default_categorical_colormap(): cmap = CategoricalColormap() assert cmap.colormap == {} color_cycle = cmap.fallback_color np.testing.assert_a...
33.716216
82
0.690982
0
0
0
0
1,109
0.222244
0
0
830
0.166333
ece7523d74ceefe1e8b2b606e98dcc5885734d32
1,254
py
Python
lezione4/ring_client.py
vollero/asdsw2021
28c8509681a986ee7c7fc3b0da782ce799a24195
[ "CC0-1.0" ]
1
2022-03-28T13:40:51.000Z
2022-03-28T13:40:51.000Z
lezione4/ring_client.py
vollero/asdsw2021
28c8509681a986ee7c7fc3b0da782ce799a24195
[ "CC0-1.0" ]
null
null
null
lezione4/ring_client.py
vollero/asdsw2021
28c8509681a986ee7c7fc3b0da782ce799a24195
[ "CC0-1.0" ]
null
null
null
import socket import logging from sys import argv import json import re def join(clientSocket, currNode, nextNode, oracleIP, oraclePORT): message = '[JOIN] {}'.format(json.dumps(currNode)) logging.debug('JOIN MESSAGE: {}'.format(message)) clientSocket.sendto(message.encode(), (oracleIP, oraclePORT)) me...
27.26087
96
0.69059
0
0
0
0
0
0
0
0
166
0.132376
ecea0e953b8a3b5674749c92e29add6bece88812
1,833
py
Python
resolwe/flow/finders.py
jkokosar/resolwe
c23db01494ef863fb2f8e130a59198cfd10bc7aa
[ "Apache-2.0" ]
null
null
null
resolwe/flow/finders.py
jkokosar/resolwe
c23db01494ef863fb2f8e130a59198cfd10bc7aa
[ "Apache-2.0" ]
null
null
null
resolwe/flow/finders.py
jkokosar/resolwe
c23db01494ef863fb2f8e130a59198cfd10bc7aa
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import, division, print_function, unicode_literals import os from django.apps import apps from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.utils.module_loading import import_string class BaseProcessesFinder(object): """ A ba...
31.067797
111
0.729951
1,174
0.64048
112
0.061102
0
0
0
0
350
0.190944
eceb4701691e5840fbba24688faf47e59f51470c
65
py
Python
graphite_feeder/handler/event/appliance/sound/__init__.py
majamassarini/automate-graphite-feeder
0f17f99bbdaab86e10e0b7d424d055ff44fc4ca0
[ "MIT" ]
null
null
null
graphite_feeder/handler/event/appliance/sound/__init__.py
majamassarini/automate-graphite-feeder
0f17f99bbdaab86e10e0b7d424d055ff44fc4ca0
[ "MIT" ]
null
null
null
graphite_feeder/handler/event/appliance/sound/__init__.py
majamassarini/automate-graphite-feeder
0f17f99bbdaab86e10e0b7d424d055ff44fc4ca0
[ "MIT" ]
null
null
null
from graphite_feeder.handler.event.appliance.sound import player
32.5
64
0.876923
0
0
0
0
0
0
0
0
0
0
ecedab6229e1c971886b23ad8d709733a48c40ca
4,827
py
Python
selectreverse/utils.py
idonethis/django-selectreverse
13535028aaccb9e2a784dd798a188d88776a5dad
[ "BSD-2-Clause" ]
null
null
null
selectreverse/utils.py
idonethis/django-selectreverse
13535028aaccb9e2a784dd798a188d88776a5dad
[ "BSD-2-Clause" ]
null
null
null
selectreverse/utils.py
idonethis/django-selectreverse
13535028aaccb9e2a784dd798a188d88776a5dad
[ "BSD-2-Clause" ]
null
null
null
""" django-selectreverse Custom manager to reduce sql queries for m2m and reverse fk relationships """ from django.db import models from django.db.models.fields.related import ForeignRelatedObjectsDescriptor, ReverseManyRelatedObjectsDescriptor, ManyRelatedObjectsDescriptor from django.core.exceptions import Impro...
47.792079
144
0.64885
4,339
0.898902
0
0
0
0
0
0
624
0.129273
ecef158be8b2811acbb68437f98daaadc77358fd
521
py
Python
api/migrations/0007_auto_20181214_0439.py
takezyou/django_api
e65137632314958804dbe55c1111976ce3cdffe5
[ "MIT" ]
null
null
null
api/migrations/0007_auto_20181214_0439.py
takezyou/django_api
e65137632314958804dbe55c1111976ce3cdffe5
[ "MIT" ]
9
2019-08-06T02:02:54.000Z
2021-09-08T00:41:31.000Z
api/migrations/0007_auto_20181214_0439.py
takezyou/django_api
e65137632314958804dbe55c1111976ce3cdffe5
[ "MIT" ]
null
null
null
# Generated by Django 2.1.4 on 2018-12-14 04:39 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0006_auto_20181214_0019'), ] operations = [ migrations.AlterField( model_name='post', name='created_at', ...
21.708333
47
0.56238
428
0.821497
0
0
0
0
0
0
113
0.216891
ecf1ce20b4fefaf58c8c7d08d20616ef3be895a2
375
py
Python
src/utils/utils.py
andrelopez/cron-parser-cli
35df5d5d8113dde99bee95f834c63248ce459194
[ "MIT" ]
null
null
null
src/utils/utils.py
andrelopez/cron-parser-cli
35df5d5d8113dde99bee95f834c63248ce459194
[ "MIT" ]
null
null
null
src/utils/utils.py
andrelopez/cron-parser-cli
35df5d5d8113dde99bee95f834c63248ce459194
[ "MIT" ]
null
null
null
from columnar import columnar def print_table(minute: str, hour: str, day: str, month: str, week: str, cmd: str) -> str: table = [ ['minute', minute], ['hour', hour], ['day of month', day], ['month', month], ['day of week', week], ['command', cmd] ] table = ...
25
90
0.541333
0
0
0
0
0
0
0
0
57
0.152
ecf2e06543a14fb924a2fb9fd6fb42ef3f9435a6
547
py
Python
client/terminal.py
ekmixon/pyre-check
bd2475cc0cf4bef941f0aea6df10d674e6c907ab
[ "MIT" ]
5,975
2018-05-11T15:54:32.000Z
2022-03-31T14:38:00.000Z
client/terminal.py
ekmixon/pyre-check
bd2475cc0cf4bef941f0aea6df10d674e6c907ab
[ "MIT" ]
524
2018-05-11T16:47:20.000Z
2022-03-22T17:43:06.000Z
client/terminal.py
ekmixon/pyre-check
bd2475cc0cf4bef941f0aea6df10d674e6c907ab
[ "MIT" ]
501
2018-05-11T16:46:29.000Z
2022-03-19T04:41:57.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import os import sys from typing import TextIO def is_capable(file: TextIO = sys.stderr) -> bool: """ Determine whether we are conne...
27.35
65
0.689214
0
0
0
0
0
0
0
0
313
0.572212
ecf35ef4c074dccc46a80355a4787bf3619f13a3
778
py
Python
tests/utils/test_download.py
openghg/gather
0096cfe66b0093cdd294fa2a67c060d7fc28d2fa
[ "Apache-2.0" ]
null
null
null
tests/utils/test_download.py
openghg/gather
0096cfe66b0093cdd294fa2a67c060d7fc28d2fa
[ "Apache-2.0" ]
null
null
null
tests/utils/test_download.py
openghg/gather
0096cfe66b0093cdd294fa2a67c060d7fc28d2fa
[ "Apache-2.0" ]
null
null
null
from gather.utils import download import hashlib from helpers import get_datapath def test_download(requests_mock): beaco2n_data = get_datapath(filename="test_data.csv", network="beaco2n") binary_data = beaco2n_data.read_bytes() mock_url = "https://example.com/some_csv.txt" requests_mock.get( ...
19.948718
76
0.667095
0
0
0
0
0
0
0
0
92
0.118252
ecf408df66ed468cf11584dcfbbc451fc2a54142
917
py
Python
LeNet/LeNet_pt.py
MuhammedAshraf2020/implementation-of-CNN-Models
52be2b8d27c2340d30b6cab1883fffdb2f656343
[ "MIT" ]
2
2021-02-09T16:14:50.000Z
2021-08-03T13:33:47.000Z
LeNet/LeNet_pt.py
MuhammedAshraf2020/implementation-of-CNN-Models
52be2b8d27c2340d30b6cab1883fffdb2f656343
[ "MIT" ]
null
null
null
LeNet/LeNet_pt.py
MuhammedAshraf2020/implementation-of-CNN-Models
52be2b8d27c2340d30b6cab1883fffdb2f656343
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.optim as optim # Create Model class LeNet_pt(nn.Module): def __init__(self): super(LeNet_pt , self).__init__() self.ConvModel = nn.Sequential( nn.Conv2d(in_channels = 3 , out_channels = 6 , kernel_size = (5 , 5) , padding = (0 , 0) , stride = (1 , 1)), ...
35.269231
118
0.586696
838
0.91385
0
0
0
0
0
0
14
0.015267
019e55ec1c50df9500d86cf12839f5b296083659
4,782
py
Python
ELA_Training_Module_Final.py
Sawera557/PhotoChamp-Image-Forensic-Tool
e7550a97d33cdf58a66ea0efcc451178bfd88a8d
[ "MIT" ]
null
null
null
ELA_Training_Module_Final.py
Sawera557/PhotoChamp-Image-Forensic-Tool
e7550a97d33cdf58a66ea0efcc451178bfd88a8d
[ "MIT" ]
null
null
null
ELA_Training_Module_Final.py
Sawera557/PhotoChamp-Image-Forensic-Tool
e7550a97d33cdf58a66ea0efcc451178bfd88a8d
[ "MIT" ]
null
null
null
import itertools import os import random as random1 import matplotlib.pyplot as plt import numpy as np import pandas as pd from PIL import Image, ImageChops, ImageEnhance from keras.layers import Dense, Dropout, Flatten, Conv2D, MaxPool2D from keras.models import Sequential from keras.optimizers import RMSpr...
37.952381
123
0.645128
0
0
0
0
0
0
0
0
680
0.1422
019fe14b196eb5bbb4dfe787d8a050ae5287690f
380
py
Python
model/__init__.py
aupendu/zero-restore
7d2f44eb008ef47042a3a5b0e0a2654731e22f53
[ "MIT" ]
13
2021-06-15T12:39:44.000Z
2022-03-07T15:33:40.000Z
model/__init__.py
aupendu/zero-restore
7d2f44eb008ef47042a3a5b0e0a2654731e22f53
[ "MIT" ]
4
2021-06-19T07:53:09.000Z
2022-01-12T15:41:52.000Z
model/__init__.py
aupendu/zero-restore
7d2f44eb008ef47042a3a5b0e0a2654731e22f53
[ "MIT" ]
4
2021-08-01T08:51:38.000Z
2022-02-22T05:12:03.000Z
import os import torch import torch.nn as nn from importlib import import_module class Model(nn.Module): def __init__(self, modelname): super(Model, self).__init__() print('Making model...') module = import_module('model.' + modelname) self.model = module.make_mode...
22.352941
52
0.623684
297
0.781579
0
0
0
0
0
0
25
0.065789
01a154d7d3f987732b81523447ce1b96222a9132
3,140
py
Python
natural/bank.py
Foxlik/natural
0e8b15b200525ee147579b025a787646f7534890
[ "MIT" ]
21
2015-03-02T15:41:25.000Z
2020-05-20T12:46:03.000Z
natural/bank.py
Foxlik/natural
0e8b15b200525ee147579b025a787646f7534890
[ "MIT" ]
12
2015-10-29T18:02:00.000Z
2021-11-10T21:49:40.000Z
natural/bank.py
Foxlik/natural
0e8b15b200525ee147579b025a787646f7534890
[ "MIT" ]
8
2015-10-29T17:50:13.000Z
2020-01-16T09:40:53.000Z
from natural.constant import _, IBAN_ALPHABET from natural.constant import BBAN_RULES, BBAN_PATTERN, BBAN_MAP import re def bban_compact(number): ''' Printable compacted Basic Bank Account Number. Removes all the padding characters. :param number: string >>> bban_compact('1234.56.78.90') '12...
25.528455
78
0.606369
0
0
0
0
0
0
0
0
1,731
0.551274
01a1648b4f717a6753e2c3b737bfc86f6abdbe33
1,011
py
Python
synapyse/impl/learning/unsupervised_hebbian_learning.py
synapyse/synapyse
8c9ff53ede2d83af27ce771ce1b6ea6a32155b02
[ "MIT" ]
4
2015-09-19T11:02:56.000Z
2019-03-27T11:42:12.000Z
synapyse/impl/learning/unsupervised_hebbian_learning.py
synapyse/synapyse
8c9ff53ede2d83af27ce771ce1b6ea6a32155b02
[ "MIT" ]
null
null
null
synapyse/impl/learning/unsupervised_hebbian_learning.py
synapyse/synapyse
8c9ff53ede2d83af27ce771ce1b6ea6a32155b02
[ "MIT" ]
1
2019-10-29T16:24:28.000Z
2019-10-29T16:24:28.000Z
from synapyse.base.learning.unsupervised_learning import UnsupervisedLearning __author__ = 'Douglas Eric Fonseca Rodrigues' class UnsupervisedHebbianLearning(UnsupervisedLearning): def __init__(self, neural_network, learning_rate): """ :type neural_network: synapyse.base.neural_network.NeuralNetw...
40.44
94
0.720079
884
0.874382
0
0
0
0
0
0
299
0.295747
01a16a425c553405c970ba2b0d169dec70571e71
805
py
Python
WinIO/WinIO/Scripts/WinIO2/Controls/BlankWindow.py
sak9188/WinIO2
629a91633142cd78fd55422f9884b7f15f1d4e1d
[ "Apache-2.0" ]
1
2022-03-20T23:19:24.000Z
2022-03-20T23:19:24.000Z
WinIO/WinIO/Scripts/WinIO2/Controls/BlankWindow.py
sak9188/WinIO2
629a91633142cd78fd55422f9884b7f15f1d4e1d
[ "Apache-2.0" ]
null
null
null
WinIO/WinIO/Scripts/WinIO2/Controls/BlankWindow.py
sak9188/WinIO2
629a91633142cd78fd55422f9884b7f15f1d4e1d
[ "Apache-2.0" ]
null
null
null
# -*- coding: UTF-8 -*- from WinIO.Controls import ReuseWindow from WinIO.Core import PyDelegateConverter as PyDel from WinIO2.Core.FunctionTool import FunctionChain class AcrylicWindowStyle(object): Normal = 0 NoIcon = 1 Null = 2 class BlankWindow(ReuseWindow): def __init__(self): self.after_hidden = Functi...
18.295455
61
0.737888
634
0.787578
0
0
323
0.401242
0
0
23
0.028571
01a26e38bfd6477fceda79c2ab6901ad81a89ddd
6,435
py
Python
menu.py
ThinkDownstairs/coder
7a42a9bac941039b96ccf2430e560cc60e2159df
[ "WTFPL" ]
1
2018-03-20T06:01:17.000Z
2018-03-20T06:01:17.000Z
menu.py
ThinkDownstairs/coder
7a42a9bac941039b96ccf2430e560cc60e2159df
[ "WTFPL" ]
19
2018-03-20T23:11:38.000Z
2018-04-01T17:39:10.000Z
menu.py
ThinkDownstairs/coder
7a42a9bac941039b96ccf2430e560cc60e2159df
[ "WTFPL" ]
null
null
null
from collections import namedtuple import state_manager import background import sound import quit_ import howto import locations import pygame import consts class MenuEntry(object): def __init__(self, name: str, typ) -> None: super().__init__() self._name = name self._typ = typ ...
39
156
0.591142
5,606
0.871173
0
0
0
0
0
0
160
0.024864
01a2fc10e366d654cb931d27945bf9ef998b5a2a
21,634
py
Python
tor4/tensor.py
kbrodt/tor4
d09740b746c534e67a72f492c7c03654f5888a46
[ "MIT" ]
null
null
null
tor4/tensor.py
kbrodt/tor4
d09740b746c534e67a72f492c7c03654f5888a46
[ "MIT" ]
null
null
null
tor4/tensor.py
kbrodt/tor4
d09740b746c534e67a72f492c7c03654f5888a46
[ "MIT" ]
null
null
null
from typing import ( Any, Callable, List, NamedTuple, Optional, Tuple, Type, Union, overload, ) import numpy as np from scipy import special Array = Union[np.ndarray] Numeric = Union[int, float] # Lists = Union[Numeric, List['Lists']] Tuplist = Union[Tuple[int, ...], List[int]] Dim...
26.841191
122
0.623278
8,501
0.392946
0
0
1,570
0.072571
0
0
1,242
0.05741
01a35af78a818794456f060908d249837cf70d44
5,576
py
Python
cpepgen/chemical_linkages.py
hjuinj/cpepgen
965f84148f783bd1d19aec4c9b86841a598d4a9b
[ "MIT" ]
null
null
null
cpepgen/chemical_linkages.py
hjuinj/cpepgen
965f84148f783bd1d19aec4c9b86841a598d4a9b
[ "MIT" ]
null
null
null
cpepgen/chemical_linkages.py
hjuinj/cpepgen
965f84148f783bd1d19aec4c9b86841a598d4a9b
[ "MIT" ]
null
null
null
""" This file contains several reactions for RDKIT NOTES: - Check what happens with ASP ASP ester bond formation? need more specifications to do that side targets? - check_reaction_mols, also checking how many of the reaction sites are present in one molecule? - (more specific smart: make_aa_backbone_bond = [N...
43.224806
230
0.695301
0
0
0
0
0
0
0
0
2,062
0.369799
01a431b7bea5dccade1e08d80166cc10db69bf34
1,105
py
Python
config.py
cclauss/MAX-Object-Detector
4f38f7c1ba65cc39baa4a0f466618b91a65f46a1
[ "Apache-2.0" ]
null
null
null
config.py
cclauss/MAX-Object-Detector
4f38f7c1ba65cc39baa4a0f466618b91a65f46a1
[ "Apache-2.0" ]
null
null
null
config.py
cclauss/MAX-Object-Detector
4f38f7c1ba65cc39baa4a0f466618b91a65f46a1
[ "Apache-2.0" ]
null
null
null
import os # Flask settings DEBUG=True # Flask-restplus settings RESTPLUS_MASK_SWAGGER=False # Application settings # API metadata API_TITLE = 'Model Asset Exchange Server' API_DESC = 'An API for serving models' API_VERSION = '0.1' # default model # name of model to download MODEL_NAME = 'ssd_mobilenet_v1_coco_2017...
29.864865
97
0.744796
0
0
0
0
0
0
0
0
646
0.584615
01a49750a5f79f46de5800bcca67ff60a286ab7c
921
py
Python
check_pharmacist.py
136s/check_pharmacist
02f60355523b5c4890fd314d6d000bfe54226db8
[ "CC0-1.0" ]
null
null
null
check_pharmacist.py
136s/check_pharmacist
02f60355523b5c4890fd314d6d000bfe54226db8
[ "CC0-1.0" ]
null
null
null
check_pharmacist.py
136s/check_pharmacist
02f60355523b5c4890fd314d6d000bfe54226db8
[ "CC0-1.0" ]
null
null
null
import time import pandas as pd from selenium import webdriver SEARCH_URL = "https://licenseif.mhlw.go.jp/search_iyaku/top.jsp" SLEEP_SEC = 3 IN_CSV_NAME = "./list.csv" OUT_CSV_NAME = "./output.csv" # 名前を投げると「登録年」の list が返ってくる def get_years(name) : driver.get(SEARCH_URL) time.sleep(SLEEP_SEC) search_box =...
26.314286
81
0.689468
0
0
0
0
0
0
0
0
320
0.315271
01a82caa0086ae5bd27db7ac800143f2aa34c7d3
3,983
py
Python
Lessons/source/search.py
daisukiyo/cs-1.3
e23056c509f429d83cb8be94714205c78a76549f
[ "MIT" ]
null
null
null
Lessons/source/search.py
daisukiyo/cs-1.3
e23056c509f429d83cb8be94714205c78a76549f
[ "MIT" ]
2
2019-04-25T00:49:24.000Z
2019-05-15T23:22:36.000Z
Lessons/source/search.py
daisukiyo/cs-1.3
e23056c509f429d83cb8be94714205c78a76549f
[ "MIT" ]
null
null
null
#!python def linear_search(array, item): """return the first index of item in array or None if item is not found""" # implement linear_search_iterative and linear_search_recursive below, then # change this to call your implementation to verify it passes all tests # return linear_search_iterative(array,...
37.575472
99
0.667085
0
0
0
0
0
0
0
0
2,379
0.597288