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
62ad2faaa4417f27b1e2dd75edf9e858d937f1c1
5,786
bzl
Python
docs.bzl
es-ude/EmbeddedSystemsBuildScripts
276c3ca78ba8285cd26c3c10443d89ccc403a69c
[ "MIT" ]
3
2019-06-26T14:08:12.000Z
2020-03-10T06:24:46.000Z
docs.bzl
es-ude/EmbeddedSystemsBuildScripts
276c3ca78ba8285cd26c3c10443d89ccc403a69c
[ "MIT" ]
31
2019-06-10T10:50:58.000Z
2021-08-06T13:43:54.000Z
docs.bzl
es-uni-due/EmbeddedSystemsBuildScripts
276c3ca78ba8285cd26c3c10443d89ccc403a69c
[ "MIT" ]
5
2019-07-08T23:33:39.000Z
2020-10-11T20:35:25.000Z
def _doxygen_archive_impl(ctx): """Generate a .tar.gz archive containing documentation using Doxygen. Args: name: label for the generated rule. The archive will be "%{name}.tar.gz". doxyfile: configuration file for Doxygen, @@OUTPUT_DIRECTORY@@ will be replaced with the actual output dir ...
37.816993
114
0.610093
0
0
0
0
0
0
0
0
1,802
0.311441
62ae8dd259b43e9f8c27ede31598aad711abeea2
234
py
Python
patches/reduceRNG.py
muffinjets/LADXR
bbd82a5b7bac015561bb6a4cfe1c5fa017f827f5
[ "MIT" ]
13
2020-09-13T16:50:28.000Z
2022-03-22T20:49:54.000Z
patches/reduceRNG.py
muffinjets/LADXR
bbd82a5b7bac015561bb6a4cfe1c5fa017f827f5
[ "MIT" ]
10
2020-06-27T12:34:38.000Z
2022-01-03T12:15:42.000Z
patches/reduceRNG.py
muffinjets/LADXR
bbd82a5b7bac015561bb6a4cfe1c5fa017f827f5
[ "MIT" ]
18
2020-05-29T17:48:04.000Z
2022-02-08T03:36:08.000Z
from assembler import ASM def slowdownThreeOfAKind(rom): rom.patch(0x06, 0x096B, ASM("ldh a, [$E7]\nand $0F"), ASM("ldh a, [$E7]\nand $3F")) def fixHorseHeads(rom): rom.patch(0x07, 0x3653, "00010400", "00010000")
23.4
88
0.636752
0
0
0
0
0
0
0
0
66
0.282051
62b094d0827cf6c404c0fb38a86d155811976aaa
5,577
py
Python
jvd/ida/ida.py
L1NNA/JARV1S-Disassembler
6bc9d9459bd5142406fdda0ed88ba636934c94c6
[ "Apache-2.0" ]
7
2020-12-19T18:56:23.000Z
2021-11-21T20:29:58.000Z
jvd/ida/ida.py
L1NNA/JARV1S-Disassembler
6bc9d9459bd5142406fdda0ed88ba636934c94c6
[ "Apache-2.0" ]
1
2020-12-20T07:57:37.000Z
2020-12-28T18:10:11.000Z
jvd/ida/ida.py
L1NNA/JARV1S-Ghidra
84b551b2a1266b6bcb9454aaa01b97b21d7d4d4f
[ "Apache-2.0" ]
2
2020-12-20T11:32:20.000Z
2021-03-17T15:36:16.000Z
import sys import os import json import hashlib import logging import base64 import shutil from concurrent.futures import ProcessPoolExecutor from subprocess import Popen, PIPE, STDOUT from jvd.disassembler import DisassemblerAbstract import logging as log import traceback from jvd.utils import read_gz_js, write_gz_js,...
32.614035
87
0.556392
4,811
0.86265
0
0
0
0
0
0
919
0.164784
62b0c55a01828adb8ecff345e701a1575e8cd8c1
3,203
py
Python
scanapi/variable_parser.py
barbosa/scanapi
82def9d7c9ef19a2b658d9aa6c973790e2c16ddc
[ "MIT" ]
null
null
null
scanapi/variable_parser.py
barbosa/scanapi
82def9d7c9ef19a2b658d9aa6c973790e2c16ddc
[ "MIT" ]
null
null
null
scanapi/variable_parser.py
barbosa/scanapi
82def9d7c9ef19a2b658d9aa6c973790e2c16ddc
[ "MIT" ]
null
null
null
from enum import Enum import logging import os import re import sys import yaml from scanapi.errors import BadConfigurationError, InvalidPythonCodeError # Available imports to be used dinamically in the api spec import datetime import math import random import time import uuid logger = logging.getLogger(__name__) va...
23.043165
82
0.664689
82
0.025601
0
0
0
0
0
0
146
0.045582
62b2d24bf74949e44c4ce714693661230de5e646
18,720
py
Python
python/londiste/setup.py
priitkustala/skytools-dev
14bb378f95d2e5b82d01acf068377a660315b716
[ "0BSD" ]
1
2016-05-09T13:35:53.000Z
2016-05-09T13:35:53.000Z
python/londiste/setup.py
priitkustala/skytools-dev
14bb378f95d2e5b82d01acf068377a660315b716
[ "0BSD" ]
null
null
null
python/londiste/setup.py
priitkustala/skytools-dev
14bb378f95d2e5b82d01acf068377a660315b716
[ "0BSD" ]
null
null
null
#! /usr/bin/env python """Londiste setup and sanity checker. """ import sys, os, skytools from pgq.cascade.admin import CascadeAdmin __all__ = ['LondisteSetup'] class LondisteSetup(CascadeAdmin): """Londiste-specific admin commands.""" initial_db_name = 'node_db' extra_objs = [ skytools.DBSchema("londi...
38.439425
113
0.554594
12,056
0.644017
0
0
0
0
0
0
9,620
0.513889
62b30ce5a1ecf3197e59646a2a71b9143771e4fd
4,929
py
Python
tests/tests.py
SherineAwad/ribofilio
4dea38692e7715f07df3ee074e2adc5380f4d6e9
[ "MIT" ]
null
null
null
tests/tests.py
SherineAwad/ribofilio
4dea38692e7715f07df3ee074e2adc5380f4d6e9
[ "MIT" ]
null
null
null
tests/tests.py
SherineAwad/ribofilio
4dea38692e7715f07df3ee074e2adc5380f4d6e9
[ "MIT" ]
null
null
null
import pytest import screed import os import sys import numpy as np import matplotlib.pyplot as plt import cv2 import skimage.measure as measure path = os.getcwd() path = os.path.join(path,"src") sys.path.append(path) print(path) import ribofilio as rb def test_get_genes(): path = os.getcwd () path =...
34.957447
139
0.656523
0
0
0
0
0
0
0
0
486
0.0986
62b452aca3bac882d562e1e0dd344def55e8b870
6,208
py
Python
envoy.code.check/envoy/code/check/abstract/flake8.py
Nordix/pytooling
b48e70e9098c283d0f17db8016d2f32a2b103a57
[ "Apache-2.0" ]
null
null
null
envoy.code.check/envoy/code/check/abstract/flake8.py
Nordix/pytooling
b48e70e9098c283d0f17db8016d2f32a2b103a57
[ "Apache-2.0" ]
null
null
null
envoy.code.check/envoy/code/check/abstract/flake8.py
Nordix/pytooling
b48e70e9098c283d0f17db8016d2f32a2b103a57
[ "Apache-2.0" ]
null
null
null
import io import logging import os import pathlib from functools import cached_property, lru_cache from typing import List, Set, Tuple from flake8.main.application import Application # type:ignore from flake8 import ( # type:ignore utils as flake8_utils, checker as flake8_checker) import abstracts from ai...
29.846154
73
0.602932
5,578
0.898518
0
0
2,882
0.46424
845
0.136115
946
0.152384
62b63fa1744965ed736f83868f1e02cf4c32335f
16,566
py
Python
szndaogen/data_access/manager_base.py
seznam/szndaogen
e33436893d9d933bee81c0cfb9a0ca4ce4d261b5
[ "MIT" ]
3
2021-07-20T14:10:22.000Z
2022-03-21T10:28:15.000Z
szndaogen/data_access/manager_base.py
seznam/szndaogen
e33436893d9d933bee81c0cfb9a0ca4ce4d261b5
[ "MIT" ]
null
null
null
szndaogen/data_access/manager_base.py
seznam/szndaogen
e33436893d9d933bee81c0cfb9a0ca4ce4d261b5
[ "MIT" ]
null
null
null
import typing from ..tools.log import Logger from .db import DBI from .model_base import ModelBase from ..config import Config class ManagerException(BaseException): pass class ViewManagerBase: MODEL_CLASS = ModelBase def __init__(self, dbi: DBI = None): """ Init function of base mode...
41.72796
189
0.651093
16,428
0.99167
0
0
857
0.051732
0
0
4,990
0.301219
62b641168ce9b71ea5015d7584d8b7ff3788ad8f
1,271
py
Python
setup.py
may-ank/hocr-tools
3ad9748e85360a327161ab562445ec5171e3366a
[ "Apache-2.0" ]
200
2015-01-09T03:34:39.000Z
2020-07-28T17:12:40.000Z
setup.py
may-ank/hocr-tools
3ad9748e85360a327161ab562445ec5171e3366a
[ "Apache-2.0" ]
141
2015-01-09T03:49:21.000Z
2020-06-12T19:14:39.000Z
setup.py
may-ank/hocr-tools
3ad9748e85360a327161ab562445ec5171e3366a
[ "Apache-2.0" ]
55
2015-03-03T18:59:49.000Z
2020-07-02T08:18:04.000Z
#!/usr/bin/env python __version__ = '1.3.0' import glob from setuptools import setup setup( name="hocr-tools", version=__version__, description='Advanced tools for hOCR integration', author='Thomas Breuel', maintainer='Konstantin Baierer', maintainer_email='[email protected]', ...
31.775
65
0.608969
0
0
0
0
0
0
0
0
783
0.61605
62b64285802deea7a9e5bd1076a5f0e456274316
2,237
py
Python
src/reporter.py
serhankk/Device-Reporter
bcf98fbbe38d6c116853556f185e3709269f1a81
[ "MIT" ]
null
null
null
src/reporter.py
serhankk/Device-Reporter
bcf98fbbe38d6c116853556f185e3709269f1a81
[ "MIT" ]
null
null
null
src/reporter.py
serhankk/Device-Reporter
bcf98fbbe38d6c116853556f185e3709269f1a81
[ "MIT" ]
null
null
null
# Imports import socket import subprocess import os import requests # from prettytable import PrettyTable import getpass import CONFIG def send_message(text): try: requests.post('https://slack.com/api/chat.postMessage', { 'token': CONFIG.SLACK_TOKEN, 'channel': CONFIG.SLACK_CHANNEL_INFO, ...
26.630952
101
0.682164
0
0
0
0
0
0
0
0
621
0.277604
62b72fe4dc07715ae87e1325abafd6e9ec329431
2,985
py
Python
pyflarum/extensions.py
CWKevo/pyFlarum
2c4e17a16b00367f140c3436f7a9148072ddd2d3
[ "MIT" ]
1
2022-02-07T10:40:46.000Z
2022-02-07T10:40:46.000Z
pyflarum/extensions.py
CWKevo/pyFlarum
2c4e17a16b00367f140c3436f7a9148072ddd2d3
[ "MIT" ]
1
2022-02-07T10:49:09.000Z
2022-02-07T12:25:25.000Z
pyflarum/extensions.py
CWKevo/pyFlarum
2c4e17a16b00367f140c3436f7a9148072ddd2d3
[ "MIT" ]
null
null
null
import typing as t import warnings from .error_handler import MissingExtensionError, MissingExtensionWarning class ExtensionMixin: """ A base class for mixing in custom classes (extensions) into another classes. """ AUTHOR = "unknown" NAME = "unknown" ID = f"{AUTHOR}-{NAME}" SOFT_...
33.166667
163
0.603015
2,010
0.673367
0
0
1,746
0.584925
0
0
1,603
0.537018
62b95299da78a40aaf85180de76adaf63b33b8e6
3,695
py
Python
ComRISB/pyglib/pyglib/dft/eos.py
comscope/comsuite
d51c43cad0d15dc3b4d1f45e7df777cdddaa9d6c
[ "BSD-3-Clause" ]
18
2019-06-15T18:08:21.000Z
2022-01-30T05:01:29.000Z
ComRISB/pyglib/pyglib/dft/eos.py
comscope/Comsuite
b80ca9f34c519757d337487c489fb655f7598cc2
[ "BSD-3-Clause" ]
null
null
null
ComRISB/pyglib/pyglib/dft/eos.py
comscope/Comsuite
b80ca9f34c519757d337487c489fb655f7598cc2
[ "BSD-3-Clause" ]
11
2019-06-05T02:57:55.000Z
2021-12-29T02:54:25.000Z
import numpy as np import h5py import pyglib.basic.units as units import pyglib.basic.splot as splot ''' Equation of state. ''' def Murnaghan(parameters, vol): ''' Given a vector of parameters and volumes, return a vector of energies. equation From PRB 28,5480 (1983) ''' E0 = parameters[0] B0...
30.791667
78
0.586198
0
0
0
0
0
0
0
0
1,602
0.433559
62b99b8da2aecb88766819c7135ff9c55eef6434
1,808
py
Python
src/users/actions.py
josue0ghost/Python-and-MySQL-console-application
c82641c5ccaae3eb526decd2c96baa4457613a2a
[ "MIT" ]
null
null
null
src/users/actions.py
josue0ghost/Python-and-MySQL-console-application
c82641c5ccaae3eb526decd2c96baa4457613a2a
[ "MIT" ]
null
null
null
src/users/actions.py
josue0ghost/Python-and-MySQL-console-application
c82641c5ccaae3eb526decd2c96baa4457613a2a
[ "MIT" ]
null
null
null
import users.user as user import grades.actions as grade class Actions: def signup(self): print("Selected item: signup") name = input("Your name: ") lastname = input("Your last name: ") email = input("Your email: ") password = input("Choose a password: ") ...
28.25
85
0.499447
1,750
0.96792
0
0
0
0
0
0
526
0.290929
62b9b66788e4870e77759cfd4f12b782254dda87
102
py
Python
python/src/pdef/version.py
pdef/pdef-python
09c6e6424ad141b40310eeea53c1f8b6e79be560
[ "Apache-2.0" ]
2
2020-03-15T03:22:59.000Z
2020-03-15T04:37:23.000Z
python/src/pdef/version.py
pdef/pdef-python
09c6e6424ad141b40310eeea53c1f8b6e79be560
[ "Apache-2.0" ]
null
null
null
python/src/pdef/version.py
pdef/pdef-python
09c6e6424ad141b40310eeea53c1f8b6e79be560
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 '''Pdef version in a separate module to simplify setup.py.''' __version__ = '1.2.0'
25.5
61
0.696078
0
0
0
0
0
0
0
0
85
0.833333
62bac4b95d046b26eb393d4a8ce42aab15524930
438
py
Python
hardhat/recipes/python/curtsies.py
stangelandcl/hardhat
1ad0c5dec16728c0243023acb9594f435ef18f9c
[ "MIT" ]
null
null
null
hardhat/recipes/python/curtsies.py
stangelandcl/hardhat
1ad0c5dec16728c0243023acb9594f435ef18f9c
[ "MIT" ]
null
null
null
hardhat/recipes/python/curtsies.py
stangelandcl/hardhat
1ad0c5dec16728c0243023acb9594f435ef18f9c
[ "MIT" ]
null
null
null
from .base import PipBaseRecipe class CurtsiesRecipe(PipBaseRecipe): def __init__(self, *args, **kwargs): super(CurtsiesRecipe, self).__init__(*args, **kwargs) self.sha256 = '431631b9c1417b2ae8156d0bb6d7c3ce' \ '0c97941413717ed6713a9a9c60e9576e' self.depends = ['ncur...
31.285714
61
0.630137
403
0.920091
0
0
0
0
0
0
114
0.260274
62bafbcb01ba35806246e96f56398067276ef692
688
py
Python
topics/migrations/0001_initial.py
codingforentrepreneurs/Autogenerate-Django-Models-
95f3ffc2ad6714a02ea16b124ae075dd7ff218c2
[ "MIT" ]
28
2020-11-08T21:04:00.000Z
2021-09-29T06:56:11.000Z
topics/migrations/0001_initial.py
codingforentrepreneurs/Autogenerate-Django-Models-
95f3ffc2ad6714a02ea16b124ae075dd7ff218c2
[ "MIT" ]
null
null
null
topics/migrations/0001_initial.py
codingforentrepreneurs/Autogenerate-Django-Models-
95f3ffc2ad6714a02ea16b124ae075dd7ff218c2
[ "MIT" ]
9
2020-11-11T13:47:32.000Z
2021-08-24T11:31:53.000Z
# Generated by Django 3.1.3 on 2020-11-08 19:52 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Topics', fields=[ ('id', models.AutoField(a...
28.666667
114
0.59157
595
0.864826
0
0
0
0
0
0
84
0.122093
62bb8acaace74c492d28ddb4b4b9013124472c19
3,821
py
Python
utils.py
ChaosForge/shoot_tracer_test
e731ad2093b7d413430a03b37186e0787ccdda45
[ "MIT" ]
null
null
null
utils.py
ChaosForge/shoot_tracer_test
e731ad2093b7d413430a03b37186e0787ccdda45
[ "MIT" ]
null
null
null
utils.py
ChaosForge/shoot_tracer_test
e731ad2093b7d413430a03b37186e0787ccdda45
[ "MIT" ]
null
null
null
import png import numpy import pprint import math import re def gen_background(width, height, mag, b_col): bg = numpy.zeros((width * mag, height * mag, 4), dtype=numpy.uint8) for y in range(0, height * mag, mag): for x in range(0, width * mag): bg[y][x] = b_col for x in range(...
28.94697
107
0.526302
1,396
0.365349
0
0
0
0
0
0
168
0.043968
62bcad1c3d9d1d715a3613bffe731d335e4c1324
2,019
py
Python
draft/pendulum/cosine_prod/cosine_prod.py
krystophny/profit
c6316c9df7cfaa7b30332fdbbf85ad27175eaf92
[ "MIT" ]
14
2019-12-03T14:11:28.000Z
2022-03-15T13:44:06.000Z
draft/pendulum/cosine_prod/cosine_prod.py
krystophny/profit
c6316c9df7cfaa7b30332fdbbf85ad27175eaf92
[ "MIT" ]
118
2019-11-16T19:51:26.000Z
2022-03-26T13:52:00.000Z
draft/pendulum/cosine_prod/cosine_prod.py
krystophny/profit
c6316c9df7cfaa7b30332fdbbf85ad27175eaf92
[ "MIT" ]
9
2020-06-08T07:22:56.000Z
2021-03-21T14:12:21.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Aug 27 23:58:37 2020 @author: manal """ import numpy as np import GPy from GPy.kern.src.stationary import Stationary class Cosine_prod(Stationary): """ Cosine kernel: Product of 1D Cosine kernels .. math:: &k(x,x')_i = ...
27.283784
114
0.510649
1,826
0.904408
0
0
0
0
0
0
476
0.23576
62bd6807be95587bd7a23aaac66d6f7511aacb65
156
py
Python
tensorflowonspark/__init__.py
DerekRen/TensorFlowOnSpark
52dda7b006f2dd0d98f0cc5d362de555263623fd
[ "Apache-2.0" ]
1
2020-11-06T08:30:30.000Z
2020-11-06T08:30:30.000Z
tensorflowonspark/__init__.py
DerekRen/TensorFlowOnSpark
52dda7b006f2dd0d98f0cc5d362de555263623fd
[ "Apache-2.0" ]
null
null
null
tensorflowonspark/__init__.py
DerekRen/TensorFlowOnSpark
52dda7b006f2dd0d98f0cc5d362de555263623fd
[ "Apache-2.0" ]
null
null
null
import logging logging.basicConfig(level=logging.INFO, format="%(asctime)s %(levelname)s (%(threadName)s-%(process)d) %(message)s") __version__ = "2.2.0"
26
116
0.717949
0
0
0
0
0
0
0
0
75
0.480769
62be0b337ff4bd9e1d305e934c2a552b0ef05ec1
791
py
Python
783-minimum-distance-between-bst-nodes/783-minimum-distance-between-bst-nodes.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
783-minimum-distance-between-bst-nodes/783-minimum-distance-between-bst-nodes.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
783-minimum-distance-between-bst-nodes/783-minimum-distance-between-bst-nodes.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def minDiffInBST(self, root: Optional[TreeNode]) -> int: output=[] stack=[root] whil...
34.391304
60
0.558786
599
0.757269
0
0
0
0
0
0
186
0.235145
62bec360e9af625facdc5e2db7ded8db58128d8c
4,904
py
Python
Contents/Code/__init__.py
RussianPlex/plex-tvkultura
4522a9841a9c501b3f37bd1dfcb1a63f2cfb20bc
[ "MIT" ]
null
null
null
Contents/Code/__init__.py
RussianPlex/plex-tvkultura
4522a9841a9c501b3f37bd1dfcb1a63f2cfb20bc
[ "MIT" ]
null
null
null
Contents/Code/__init__.py
RussianPlex/plex-tvkultura
4522a9841a9c501b3f37bd1dfcb1a63f2cfb20bc
[ "MIT" ]
null
null
null
PREFIX = "/video/tvkultura" NAME = "TVKultura.Ru" ICON = "tvkultura.png" ART = "tvkultura.jpg" BASE_URL = "https://tvkultura.ru/" BRAND_URL = BASE_URL+"brand/" # Channel initialization def Start(): ObjectContainer.title1 = NAME HTTP.Headers['User-Agent'] = 'Mozilla/5.0 (Windows NT 10.0; WOW64; rv:47.0) Gecko...
34.055556
126
0.668638
0
0
0
0
2,837
0.578507
0
0
750
0.152936
62bf318fcce84f085eb558f2ffb4dc78820b46cc
3,399
py
Python
pexp/management/commands/p2cmd.py
bconstantin/django_polymorphic
2c47db8fcc284a92d2c9769ba503603fbea92660
[ "BSD-3-Clause" ]
27
2015-06-24T20:29:20.000Z
2021-04-18T15:38:15.000Z
pexp/management/commands/p2cmd.py
bconstantin/django_polymorphic
2c47db8fcc284a92d2c9769ba503603fbea92660
[ "BSD-3-Clause" ]
1
2015-10-04T14:34:26.000Z
2015-10-04T14:34:26.000Z
pexp/management/commands/p2cmd.py
bconstantin/django_polymorphic
2c47db8fcc284a92d2c9769ba503603fbea92660
[ "BSD-3-Clause" ]
3
2015-11-10T21:36:10.000Z
2020-06-22T01:51:39.000Z
# -*- coding: utf-8 -*- """ This module is a scratchpad for general development, testing & debugging Well, even more so than pcmd.py. You best ignore p2cmd.py. """ import uuid from django.core.management.base import NoArgsCommand from django.db.models import connection from pprint import pprint import settings import ...
30.621622
109
0.611356
1,363
0.401
0
0
0
0
0
0
899
0.26449
62c2495191e9820c3997816cec2ee39d380c6cb2
13,997
py
Python
njunmt/utils/misc.py
whr94621/NJUNMT-tf
29e0b0c577ea7c81acdc80e7a94a1c4dfb85c118
[ "Apache-2.0" ]
1
2018-10-27T12:04:03.000Z
2018-10-27T12:04:03.000Z
njunmt/utils/misc.py
whr94621/NJUNMT-tf
29e0b0c577ea7c81acdc80e7a94a1c4dfb85c118
[ "Apache-2.0" ]
null
null
null
njunmt/utils/misc.py
whr94621/NJUNMT-tf
29e0b0c577ea7c81acdc80e7a94a1c4dfb85c118
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Natural Language Processing Group, Nanjing University, [email protected]. # # 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...
34.139024
115
0.650139
0
0
0
0
0
0
0
0
6,177
0.441309
62c315af896205c5035b0984b4c54070e53199e5
4,381
py
Python
src/manager.py
advancedbioimagingcenter/opticalaberrations
80e642925bdc907d135717499e15d3217b5c6a0a
[ "BSD-2-Clause" ]
null
null
null
src/manager.py
advancedbioimagingcenter/opticalaberrations
80e642925bdc907d135717499e15d3217b5c6a0a
[ "BSD-2-Clause" ]
3
2021-11-12T17:13:45.000Z
2021-11-23T14:07:50.000Z
src/manager.py
advancedbioimagingcenter/opticalaberrations
80e642925bdc907d135717499e15d3217b5c6a0a
[ "BSD-2-Clause" ]
null
null
null
import logging import time from pathlib import Path from subprocess import call import cli def parse_args(args): parser = cli.argparser() subparsers = parser.add_subparsers( help="Arguments for specific action.", dest="dtype" ) subparsers.required = True slurm = subparsers.add_parser("s...
27.904459
134
0.577494
0
0
0
0
0
0
0
0
1,863
0.425245
62c3b75f8adcffa947ee4bcc6c76cec4ce476e9e
1,127
py
Python
src/aiographql/client/response.py
ehtec/aiographql-client
66b135ee08a1c4e3c3d25e63db91e7713a99501e
[ "MIT" ]
18
2019-12-08T23:38:21.000Z
2021-04-14T17:40:34.000Z
src/aiographql/client/response.py
ehtec/aiographql-client
66b135ee08a1c4e3c3d25e63db91e7713a99501e
[ "MIT" ]
134
2019-07-30T04:51:44.000Z
2021-05-24T07:07:02.000Z
src/aiographql/client/response.py
ehtec/aiographql-client
66b135ee08a1c4e3c3d25e63db91e7713a99501e
[ "MIT" ]
7
2019-09-26T10:14:58.000Z
2021-01-01T06:09:11.000Z
from dataclasses import dataclass, field from typing import Any, Dict, List from aiographql.client.error import GraphQLError from aiographql.client.request import GraphQLRequestContainer @dataclass(frozen=True) class GraphQLBaseResponse(GraphQLRequestContainer): json: Dict[str, Any] = field(default_factory=dict)...
31.305556
86
0.697427
885
0.785271
0
0
933
0.827862
0
0
397
0.352263
62c3efcf40a53a46324b9e3f1578e57e7300a9cb
21
py
Python
lib/utils/__init__.py
jwyang/C3Net.pytorch
70026fc80c5427484268c428a9dcd4cde2e8197f
[ "MIT" ]
43
2019-12-13T06:13:40.000Z
2021-07-25T06:29:17.000Z
lib/utils/__init__.py
jwyang/C3Net.pytorch
70026fc80c5427484268c428a9dcd4cde2e8197f
[ "MIT" ]
2
2020-12-05T14:24:17.000Z
2020-12-24T09:47:10.000Z
lib/utils/__init__.py
jwyang/C3Net.pytorch
70026fc80c5427484268c428a9dcd4cde2e8197f
[ "MIT" ]
4
2019-12-16T20:25:20.000Z
2020-06-23T08:45:17.000Z
from .verbo import *
10.5
20
0.714286
0
0
0
0
0
0
0
0
0
0
62c415a1f0ebcba4e884791640c35ed88c5b14d6
698
py
Python
Populating Next Right Pointers in Each Node II.py
quake0day/oj
c09333d1738f8735de0d5d825db6f4b707585670
[ "MIT" ]
null
null
null
Populating Next Right Pointers in Each Node II.py
quake0day/oj
c09333d1738f8735de0d5d825db6f4b707585670
[ "MIT" ]
null
null
null
Populating Next Right Pointers in Each Node II.py
quake0day/oj
c09333d1738f8735de0d5d825db6f4b707585670
[ "MIT" ]
null
null
null
class Solution(object): def connect(self, root): """ :type root: TreeLinkNode :rtype: nothing """ if root == None: return p = root.next while p: if p.left != None: p = p.left break elif p.righ...
24.928571
43
0.41404
697
0.998567
0
0
0
0
0
0
72
0.103152
62c4af423f4d437ce0fc13458b7ee5066a241ce5
2,602
py
Python
federatedml/feature/feature_selection/variance_coe_filter.py
yzjba/FATE
9a6d252da637b2583a0f8a51f6cb4c615850bab9
[ "Apache-2.0" ]
32
2020-06-12T08:39:58.000Z
2022-03-20T06:57:08.000Z
federatedml/feature/feature_selection/variance_coe_filter.py
ErikSun2020/FATE
bdda535c7d8a974fc2c43102837964b7da199730
[ "Apache-2.0" ]
10
2020-11-13T18:55:48.000Z
2022-02-10T02:00:12.000Z
federatedml/feature/feature_selection/variance_coe_filter.py
ErikSun2020/FATE
bdda535c7d8a974fc2c43102837964b7da199730
[ "Apache-2.0" ]
16
2020-06-12T06:51:46.000Z
2022-03-29T10:23:42.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2019 The FATE Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/lic...
38.264706
108
0.734051
1,516
0.582629
0
0
0
0
0
0
750
0.28824
62c4f0e22569d1378b2c2f18e1303c8af52e1edb
269
py
Python
hausa_text_corpus/tool.py
tunde99/AMMI-2020-SPEECH-COURSE
d1f6614804169a59a324c75c0b398c63af013d8c
[ "MIT" ]
1
2020-08-24T21:00:01.000Z
2020-08-24T21:00:01.000Z
hausa_text_corpus/tool.py
tunde99/AMMI-2020-SPEECH-COURSE
d1f6614804169a59a324c75c0b398c63af013d8c
[ "MIT" ]
null
null
null
hausa_text_corpus/tool.py
tunde99/AMMI-2020-SPEECH-COURSE
d1f6614804169a59a324c75c0b398c63af013d8c
[ "MIT" ]
null
null
null
from collections import defaultdict word_counts = defaultdict(int) for w in open('runbun_ilimi/runbin_ilimi.txt', encoding="utf-8").read().split(): word_counts[w.lower()] += 1 totalCount = 0; for w, c in word_counts.items(): totalCount += 1 print(totalCount)
24.454545
80
0.717472
0
0
0
0
0
0
0
0
38
0.141264
62c6209c1d4244f1912d66e155942262d1b47bff
3,839
py
Python
S1/SI/S3/Test-Moteur-Elec-2/Test-Moteur-Elec/main.py
HerbeMalveillante/ecole
bebbc73cd678c58c9cd40389ea1cf229a0200308
[ "MIT" ]
null
null
null
S1/SI/S3/Test-Moteur-Elec-2/Test-Moteur-Elec/main.py
HerbeMalveillante/ecole
bebbc73cd678c58c9cd40389ea1cf229a0200308
[ "MIT" ]
null
null
null
S1/SI/S3/Test-Moteur-Elec-2/Test-Moteur-Elec/main.py
HerbeMalveillante/ecole
bebbc73cd678c58c9cd40389ea1cf229a0200308
[ "MIT" ]
null
null
null
# Fichier main de gestion des ressources du robot from micropython import const from machine import * from DRV8833 import * from BME280 import * import pycom import time import os # Variables globales pour moteurs et pont en H DRV8833_Sleep_pin = "P20" # Pin SLEEP DRV8833_AIN1 = "P22" # Entrée PWM moteu...
29.530769
102
0.62386
0
0
0
0
0
0
0
0
1,582
0.409208
62c68df32015d9517a46bfdec493cc8175c53e34
4,146
py
Python
evaluators/weighted_cross_entropy.py
adgilbert/med-seg
825ea068c6cf5328e437e3ba85b894aeae58cf25
[ "BSD-3-Clause" ]
null
null
null
evaluators/weighted_cross_entropy.py
adgilbert/med-seg
825ea068c6cf5328e437e3ba85b894aeae58cf25
[ "BSD-3-Clause" ]
null
null
null
evaluators/weighted_cross_entropy.py
adgilbert/med-seg
825ea068c6cf5328e437e3ba85b894aeae58cf25
[ "BSD-3-Clause" ]
null
null
null
import torch import torch.nn.functional as F from torch import nn as nn from torch.autograd import Variable # from https://github.com/wolny/pytorch-3dunet/blob/master/pytorch3dunet/unet3d/losses.py def flatten(tensor): """Flattens a given tensor such that the channel axis is first. The shapes are transforme...
36.690265
112
0.660637
2,218
0.534973
0
0
348
0.083936
0
0
1,454
0.350699
62c70fbd4dd1990a1151426895ed667c88dc7b19
1,020
py
Python
AlgorithmsPractice/python/20_simple_Valid Parenthese.py
YangXiaoo/NoteBook
37056acad7a05b876832f72ac34d3d1a41e0dd22
[ "CNRI-Python", "RSA-MD", "CECILL-B" ]
58
2019-03-03T04:42:23.000Z
2022-01-13T04:36:31.000Z
AlgorithmsPractice/python/20_simple_Valid Parenthese.py
YangXiaoo/NoteBook
37056acad7a05b876832f72ac34d3d1a41e0dd22
[ "CNRI-Python", "RSA-MD", "CECILL-B" ]
null
null
null
AlgorithmsPractice/python/20_simple_Valid Parenthese.py
YangXiaoo/NoteBook
37056acad7a05b876832f72ac34d3d1a41e0dd22
[ "CNRI-Python", "RSA-MD", "CECILL-B" ]
28
2019-08-11T01:25:00.000Z
2021-08-22T06:46:06.000Z
''' Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. An input string is valid if: Open brackets must be closed by the same type of brackets. Open brackets must be closed in the correct order. Note that an empty string is also considered valid. Exa...
18.888889
118
0.540196
392
0.383562
0
0
0
0
0
0
641
0.627202
62c980b1f8ae0f43cf9504c637fc1f567b5d9a10
3,440
py
Python
tests/test_verify_json_response.py
ambertide/flask-verify
4ad26e67cdd9a9775d4e6ed56a281825dbcaf1cf
[ "MIT" ]
null
null
null
tests/test_verify_json_response.py
ambertide/flask-verify
4ad26e67cdd9a9775d4e6ed56a281825dbcaf1cf
[ "MIT" ]
null
null
null
tests/test_verify_json_response.py
ambertide/flask-verify
4ad26e67cdd9a9775d4e6ed56a281825dbcaf1cf
[ "MIT" ]
null
null
null
from json import dumps from typing import Callable from flask.json import jsonify from flask.wrappers import Response from flask_verify.verify_json import verify_json_response from pytest import raises @verify_json_response def _view_function_response() -> Response: """ To test if an endpoint that already ret...
30.714286
87
0.68314
0
0
0
0
1,594
0.463372
0
0
1,399
0.406686
62c9b5e931b6417fe4d81185cc271efbd05d9b8d
1,266
py
Python
utils/loader.py
zhangcheng007/face_detection_base_on_mtcnn
7ac1890dca16784955911b9efd0fef2c8447b9cb
[ "MIT" ]
1
2017-10-20T06:47:22.000Z
2017-10-20T06:47:22.000Z
utils/loader.py
zhangcheng007/face_detection_base_on_mtcnn
7ac1890dca16784955911b9efd0fef2c8447b9cb
[ "MIT" ]
null
null
null
utils/loader.py
zhangcheng007/face_detection_base_on_mtcnn
7ac1890dca16784955911b9efd0fef2c8447b9cb
[ "MIT" ]
null
null
null
import numpy as np import sys import cv2 sys.path.append("../") from utils.config import config class TestLoader: def __init__(self, imdb, batch_size=1, shuffle=False): self.imdb = imdb self.batch_size = batch_size self.shuffle = shuffle self.size = len(imdb)#num of data ...
23.886792
58
0.562401
1,169
0.923381
0
0
0
0
0
0
17
0.013428
62ca4cc5761e9a0a5eb64bd672778ab82de9c1ca
1,676
py
Python
wmata/rail/station.py
emma-k-alexandra/pywmata
b11e851f864defc0bda84f012dbe2a2c31c202d1
[ "MIT" ]
5
2019-12-28T20:18:22.000Z
2021-09-12T17:28:00.000Z
wmata/rail/station.py
emma-k-alexandra/pywmata
b11e851f864defc0bda84f012dbe2a2c31c202d1
[ "MIT" ]
null
null
null
wmata/rail/station.py
emma-k-alexandra/pywmata
b11e851f864defc0bda84f012dbe2a2c31c202d1
[ "MIT" ]
1
2021-06-28T16:08:08.000Z
2021-06-28T16:08:08.000Z
"""MetroRail Station related structures """ from enum import Enum from typing import Any, Optional class Station(Enum): """A MetroRail Station """ A01 = "A01" A02 = "A02" A03 = "A03" A04 = "A04" A05 = "A05" A06 = "A06" A07 = "A07" A08 = "A08" A09 = "A09" A10 = "A10" ...
16.115385
39
0.406325
1,575
0.939737
0
0
0
0
0
0
548
0.326969
62cd069a9b7cd2af7aa7c84f21bfa318e3d2f590
27,398
py
Python
tests/unit/core/test_models.py
uktrade/great-cms
f13fa335ddcb925bc33a5fa096fe73ef7bdd351a
[ "MIT" ]
10
2020-04-30T12:04:35.000Z
2021-07-21T12:48:55.000Z
tests/unit/core/test_models.py
uktrade/great-cms
f13fa335ddcb925bc33a5fa096fe73ef7bdd351a
[ "MIT" ]
1,461
2020-01-23T18:20:26.000Z
2022-03-31T08:05:56.000Z
tests/unit/core/test_models.py
uktrade/great-cms
f13fa335ddcb925bc33a5fa096fe73ef7bdd351a
[ "MIT" ]
3
2020-04-07T20:11:36.000Z
2020-10-16T16:22:59.000Z
import time from unittest import mock import pytest from django.contrib.auth.models import AnonymousUser from django.core.exceptions import ValidationError from django.db import IntegrityError from django.http import Http404 from django.test import RequestFactory, TestCase from django.urls import reverse from wagtail....
37.377899
120
0.682495
9,818
0.35819
0
0
15,572
0.568114
0
0
7,548
0.275374
62ce269193d7705f35038bcd87a972dc46af569a
4,141
py
Python
polyadcirc/run_framework/no_ibrun.py
tmiesse/PolyADCIRC
a4a31dda2c2dac4cd696c0f3827dbbcea7feab33
[ "BSD-3-Clause" ]
5
2016-03-04T19:42:32.000Z
2022-01-20T15:39:25.000Z
polyadcirc/run_framework/no_ibrun.py
tmiesse/PolyADCIRC
a4a31dda2c2dac4cd696c0f3827dbbcea7feab33
[ "BSD-3-Clause" ]
5
2015-04-28T05:14:28.000Z
2017-01-19T12:54:59.000Z
polyadcirc/run_framework/no_ibrun.py
UT-CHG/PolyADCIRC
a4a31dda2c2dac4cd696c0f3827dbbcea7feab33
[ "BSD-3-Clause" ]
5
2016-01-20T00:34:47.000Z
2022-01-02T11:00:56.000Z
# Copyright (C) 2013 Lindley Graham """ This file provides a mpirun work-around for clusters that do not have the ibrun command. """ import os, stat class random_manningsn(object): """ This class is an implementation of :class:`polyadcirc.run_framework.random_manningsn` that provides a ``mpirun`` base...
46.52809
79
0.530065
3,989
0.963294
0
0
0
0
0
0
1,898
0.458343
62cfcef9c0c1bac2152ebbbdc822957a7ae21154
3,185
py
Python
automated_codeforces_registration/auto_register.py
Asienwald/GCI-Fedora
378d70e97fb6fa57d127753d3bd3d6450e5a0381
[ "MIT" ]
null
null
null
automated_codeforces_registration/auto_register.py
Asienwald/GCI-Fedora
378d70e97fb6fa57d127753d3bd3d6450e5a0381
[ "MIT" ]
null
null
null
automated_codeforces_registration/auto_register.py
Asienwald/GCI-Fedora
378d70e97fb6fa57d127753d3bd3d6450e5a0381
[ "MIT" ]
null
null
null
from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC import datetime as dt import sys import getpass import re def start_registration(handle, email, pwd1, pwd2): print("Starting registration, browser opening shortly....
38.841463
149
0.546311
0
0
0
0
0
0
0
0
1,607
0.504553
62d071b99f54f8dbc2410a08457bd117463691a6
575
py
Python
3/redis.py
dyygtfx/python-in-action
86e4fe71d801a0133e488b7eb914bd9766736959
[ "MIT" ]
null
null
null
3/redis.py
dyygtfx/python-in-action
86e4fe71d801a0133e488b7eb914bd9766736959
[ "MIT" ]
null
null
null
3/redis.py
dyygtfx/python-in-action
86e4fe71d801a0133e488b7eb914bd9766736959
[ "MIT" ]
null
null
null
#!/usr/local/bin/python #coding=utf-8 #第 0003 题:将 0001 题生成的 200 个激活码(或者优惠券)保存到 Redis 非关系型数据库中。 import uuid import redis def create_code(num, length): result = [] while True: uuid_id = uuid.uuid1() temp = str(uuid_id).replace('-', '')[:length] if temp not in result: result....
23
56
0.617391
0
0
0
0
0
0
0
0
176
0.276295
62d30bbb6f283ca534cedc754312f5c27d2a329b
141
py
Python
Tuples.py
PiggyAwesome/Learn-Python-Full-Course-for-Beginners-Tutorial-code
c164492a757cb825b73af1014f95aef884ac49af
[ "Unlicense" ]
2
2021-08-11T15:53:16.000Z
2021-09-13T13:43:59.000Z
Tuples.py
PiggyAwesome/Learn-Python-Full-Course-for-Beginners-Tutorial-code
c164492a757cb825b73af1014f95aef884ac49af
[ "Unlicense" ]
null
null
null
Tuples.py
PiggyAwesome/Learn-Python-Full-Course-for-Beginners-Tutorial-code
c164492a757cb825b73af1014f95aef884ac49af
[ "Unlicense" ]
null
null
null
# Tuples coordinates = (4, 5) # Cant be changed or modified print(coordinates[1]) # coordinates[1] = 10 # print(coordinates[1])
14.1
51
0.638298
0
0
0
0
0
0
0
0
85
0.602837
62d38abd8cc901db862694dad66e79677fe1126b
620
py
Python
drift/tests/test_soakit.py
dgnorth/drift
d4f52726dad1e8a1aa25d9295dd898c5514f729f
[ "MIT" ]
6
2016-09-24T13:40:12.000Z
2020-04-15T18:53:47.000Z
drift/tests/test_soakit.py
dgnorth/drift
d4f52726dad1e8a1aa25d9295dd898c5514f729f
[ "MIT" ]
4
2016-11-15T10:40:04.000Z
2020-11-26T09:48:37.000Z
drift/tests/test_soakit.py
dgnorth/drift
d4f52726dad1e8a1aa25d9295dd898c5514f729f
[ "MIT" ]
3
2016-10-31T09:48:02.000Z
2021-05-25T09:22:07.000Z
import unittest import logging from flask import Flask @unittest.skip("needs refactoring") class driftTestCase(unittest.TestCase): def setUp(self): self.app = Flask(__name__) logging.basicConfig(level="ERROR") self.app.testing = True self.test_client = self.app.test_client() ...
18.787879
49
0.624194
475
0.766129
0
0
511
0.824194
0
0
133
0.214516
62d4d2b9bbdb7c26c851c4cf1142dbfca5ebcb07
4,603
py
Python
dir-stats-summary.py
rbrt-weiler/dir-stats
1f9d1bccd9eef41016f2dcf8dca584e193414fc7
[ "Zlib" ]
null
null
null
dir-stats-summary.py
rbrt-weiler/dir-stats
1f9d1bccd9eef41016f2dcf8dca584e193414fc7
[ "Zlib" ]
null
null
null
dir-stats-summary.py
rbrt-weiler/dir-stats
1f9d1bccd9eef41016f2dcf8dca584e193414fc7
[ "Zlib" ]
null
null
null
#!/usr/bin/python # vim: set sw=4 sts=4 ts=8 et ft=python fenc=utf8 ff=unix tw=74 : # # SYNOPSIS # ======== # This script analyses an INI file created by dir-stats.py and displays # directories containing a certain amount of data. # # ARGUMENTS # ========= # Call the script without any parameters to see an unsage mess...
28.067073
74
0.473604
122
0.026504
0
0
0
0
0
0
1,670
0.362807
62d4d43b9a1fc71daaf8cfbde1c3396de23d1c7b
602
py
Python
command_preprocessor.py
Polyhistorian/Pyt-wh-orstBot
3e02bf9f6772d0a21b1cb7a2b9e10c053598a5ec
[ "MIT" ]
null
null
null
command_preprocessor.py
Polyhistorian/Pyt-wh-orstBot
3e02bf9f6772d0a21b1cb7a2b9e10c053598a5ec
[ "MIT" ]
null
null
null
command_preprocessor.py
Polyhistorian/Pyt-wh-orstBot
3e02bf9f6772d0a21b1cb7a2b9e10c053598a5ec
[ "MIT" ]
null
null
null
import command_processor as command import discord async def process(message: discord.Message, is_owner, client: discord.Client): if message.author.id == client.user.id: return if not message.content.startswith('wh!'): return if message.channel.type != discord.ChannelType.text: awa...
33.444444
103
0.652824
0
0
0
0
0
0
548
0.910299
78
0.129568
62d525e622ba5d66f4d11a820ba42088e87bc06b
13,294
py
Python
pybnn/svgd_.py
hssandriss/pybnn
e878553a24ce9ebdde9088f285c7f292e4ee8885
[ "BSD-3-Clause" ]
null
null
null
pybnn/svgd_.py
hssandriss/pybnn
e878553a24ce9ebdde9088f285c7f292e4ee8885
[ "BSD-3-Clause" ]
null
null
null
pybnn/svgd_.py
hssandriss/pybnn
e878553a24ce9ebdde9088f285c7f292e4ee8885
[ "BSD-3-Clause" ]
null
null
null
import random import time import numpy as np import theano import theano.tensor as T from scipy.spatial.distance import pdist, squareform from tqdm import tqdm ''' Sample code to reproduce our results for the Bayesian neural network example. Our settings are almost the same as Hernandez-Lobato and Adams (ICML...
40.407295
168
0.578682
10,976
0.825636
0
0
0
0
0
0
4,084
0.307206
62d7219219d48ca548a710f2a1aee166cd73d83e
3,172
py
Python
poi_mining/api/server.py
yummydeli/machine_learning
54471182ac21ef0eee26557a7bd6f3a3dc3a09bd
[ "MIT" ]
1
2019-09-29T13:36:29.000Z
2019-09-29T13:36:29.000Z
poi_mining/api/server.py
yummydeli/machine_learning
54471182ac21ef0eee26557a7bd6f3a3dc3a09bd
[ "MIT" ]
null
null
null
poi_mining/api/server.py
yummydeli/machine_learning
54471182ac21ef0eee26557a7bd6f3a3dc3a09bd
[ "MIT" ]
null
null
null
#coding:utf-8 ################################################################################ # ### Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved # ################################################################################## """ This module provide configure file management service in i18n environment. ...
28.836364
99
0.584489
2,213
0.670606
0
0
0
0
0
0
998
0.302424
62d7ffd0472b4eb45907da6224fc3b2b392b8416
238
py
Python
python/7kyu/even_numbers_in_an_array.py
Sigmanificient/codewars
b34df4bf55460d312b7ddf121b46a707b549387a
[ "MIT" ]
3
2021-06-08T01:57:13.000Z
2021-06-26T10:52:47.000Z
python/7kyu/even_numbers_in_an_array.py
Sigmanificient/codewars
b34df4bf55460d312b7ddf121b46a707b549387a
[ "MIT" ]
null
null
null
python/7kyu/even_numbers_in_an_array.py
Sigmanificient/codewars
b34df4bf55460d312b7ddf121b46a707b549387a
[ "MIT" ]
2
2021-06-10T21:20:13.000Z
2021-06-30T10:13:26.000Z
"""Kata url: https://www.codewars.com/kata/5a431c0de1ce0ec33a00000c.""" from typing import List def even_numbers(arr: List[int], n: int) -> List[int]: odds: List[int] = [x for x in arr if not x % 2] return odds[len(odds) - n:]
26.444444
71
0.655462
0
0
0
0
0
0
0
0
71
0.298319
62d8f79aae34a225a888d00382e4743afa82bca2
10,997
py
Python
backend/lambda_functions/arcgis_loader/arcgis_loader.py
GispoCoding/tarmo
064eead90991fb2836173b647282e044dfa06c5a
[ "MIT" ]
null
null
null
backend/lambda_functions/arcgis_loader/arcgis_loader.py
GispoCoding/tarmo
064eead90991fb2836173b647282e044dfa06c5a
[ "MIT" ]
92
2022-01-27T08:05:09.000Z
2022-03-31T06:54:46.000Z
backend/lambda_functions/arcgis_loader/arcgis_loader.py
GispoCoding/tarmo
064eead90991fb2836173b647282e044dfa06c5a
[ "MIT" ]
null
null
null
import datetime import json from typing import Any, Dict, Optional import requests from shapely.geometry import ( LineString, MultiLineString, MultiPoint, MultiPolygon, Point, Polygon, shape, ) from sqlalchemy.types import BOOLEAN, DATE from .base_loader import ( LOGGER, BaseLoader...
40.430147
122
0.557516
10,436
0.948986
0
0
0
0
0
0
3,061
0.278349
62da8796a3106e941b0e8eec2b3eb3b47d77106e
4,123
py
Python
excel_handler.py
Jason2031/EMailResponder
af9be4bd9dbd38f2ba4ea934a40627774766c8ae
[ "MIT" ]
null
null
null
excel_handler.py
Jason2031/EMailResponder
af9be4bd9dbd38f2ba4ea934a40627774766c8ae
[ "MIT" ]
null
null
null
excel_handler.py
Jason2031/EMailResponder
af9be4bd9dbd38f2ba4ea934a40627774766c8ae
[ "MIT" ]
null
null
null
import os import yaml import xlrd from openpyxl import load_workbook from util_func import securely_check_dir class ExcelHandler: def __init__(self, config): self.config = config securely_check_dir('forms') securely_check_dir('att') securely_check_dir('config') self.sub...
48.505882
112
0.494785
3,681
0.892797
0
0
0
0
0
0
293
0.071065
62dbe883ecb8afdfe748f21860863b240087b5b4
564
py
Python
setup.py
gregory-halverson/crs
3fc7b68b347fec29e977e150e15841b16ec38647
[ "MIT" ]
null
null
null
setup.py
gregory-halverson/crs
3fc7b68b347fec29e977e150e15841b16ec38647
[ "MIT" ]
null
null
null
setup.py
gregory-halverson/crs
3fc7b68b347fec29e977e150e15841b16ec38647
[ "MIT" ]
null
null
null
from os.path import join from os.path import abspath from os.path import dirname from distutils.core import setup __author__ = 'Gregory Halverson' NAME = 'crs' EMAIL = '[email protected]' URL = 'http://github.com/gregory-halverson/crs' with open(join(abspath(dirname(__file__)), NAME, 'version.txt')) as f: ...
24.521739
86
0.728723
0
0
0
0
0
0
0
0
181
0.320922
62dc5a004b7115829f44a8eadc00ed4081475f1f
161
py
Python
src/libs/django/utils/request.py
antiline/jun2
00928cea1f4b8cd6634cf9a1ae6dc19c95d0e54c
[ "MIT" ]
null
null
null
src/libs/django/utils/request.py
antiline/jun2
00928cea1f4b8cd6634cf9a1ae6dc19c95d0e54c
[ "MIT" ]
17
2019-06-24T14:11:49.000Z
2021-06-04T22:19:59.000Z
src/libs/django/utils/request.py
tabetaku/roots
8a9f91b8b0e0b64a85db2898a537b12be65de753
[ "MIT" ]
null
null
null
from ipware.ip import get_ip from ipware.utils import is_private_ip def is_private_ip_from_request(request) -> bool: return is_private_ip(get_ip(request))
23
48
0.807453
0
0
0
0
0
0
0
0
0
0
62dcdfc108fcc269a77defa004067921ebd5f696
1,067
py
Python
sammba/registration/tests/test_base.py
salma1601/sammba-mri
c3c79ed806a4e5ce3524bc6053bf0c3ff1444113
[ "CECILL-B" ]
null
null
null
sammba/registration/tests/test_base.py
salma1601/sammba-mri
c3c79ed806a4e5ce3524bc6053bf0c3ff1444113
[ "CECILL-B" ]
null
null
null
sammba/registration/tests/test_base.py
salma1601/sammba-mri
c3c79ed806a4e5ce3524bc6053bf0c3ff1444113
[ "CECILL-B" ]
null
null
null
import os from nose import with_setup from nose.tools import assert_true import nibabel from nilearn.datasets.tests import test_utils as tst from nilearn.image import index_img from sammba.registration import base from sammba import testing_data from nilearn._utils.niimg_conversions import _check_same_fov @with_setup...
38.107143
75
0.709466
0
0
0
0
757
0.709466
0
0
44
0.041237
62dd03d0d913944957c2612082f29f5c840f0d43
555
py
Python
crawling_image/get_image.py
Lee-JH-kor/Review_Project
5e604f2bcdceea23740759681bdc7e5d3a7670ca
[ "MIT" ]
null
null
null
crawling_image/get_image.py
Lee-JH-kor/Review_Project
5e604f2bcdceea23740759681bdc7e5d3a7670ca
[ "MIT" ]
null
null
null
crawling_image/get_image.py
Lee-JH-kor/Review_Project
5e604f2bcdceea23740759681bdc7e5d3a7670ca
[ "MIT" ]
1
2020-11-11T05:02:37.000Z
2020-11-11T05:02:37.000Z
import urllib.request from bs4 import BeautifulSoup import matplotlib.pyplot as plt from PIL import Image import os def image_poster(title_address): url = f'{title_address}' req = urllib.request.Request(url) res = urllib.request.urlopen(url).read() soup = BeautifulSoup(res, 'html.parser') soup = ...
23.125
72
0.673874
0
0
0
0
0
0
0
0
176
0.291874
62dd4a508db411e5b7ff314613aafdeaeb5656d2
376
py
Python
muon/__init__.py
WeilerP/muon
8e0988f07ae23be4fa913bb297ef059e5ab702a0
[ "BSD-3-Clause" ]
null
null
null
muon/__init__.py
WeilerP/muon
8e0988f07ae23be4fa913bb297ef059e5ab702a0
[ "BSD-3-Clause" ]
null
null
null
muon/__init__.py
WeilerP/muon
8e0988f07ae23be4fa913bb297ef059e5ab702a0
[ "BSD-3-Clause" ]
null
null
null
"""Multimodal omics analysis framework""" from ._core.mudata import MuData from ._core import preproc as pp from ._core import tools as tl from ._core import plot as pl from ._core import utils from ._core.io import * from ._core.config import set_options from . import atac from . import prot __version__ = "0.1.0" _...
22.117647
41
0.755319
0
0
0
0
0
0
0
0
62
0.164894
62de606ad5a0ee4725f392cc0be4a4d2ca1933b9
2,756
py
Python
recipes/recipes/goma_hello_world.py
xinghun61/infra
b5d4783f99461438ca9e6a477535617fadab6ba3
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
recipes/recipes/goma_hello_world.py
asdfghjjklllllaaa/infra
8f63af54e46194cd29291813f2790ff6e986804d
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
recipes/recipes/goma_hello_world.py
xinghun61/infra
b5d4783f99461438ca9e6a477535617fadab6ba3
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2017 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Compiles trivial C++ program using Goma. Intended to be used as a very simple litmus test of Goma health on LUCI staging environment. Linux and OSX only....
25.757009
79
0.644049
0
0
417
0.151306
0
0
0
0
1,379
0.500363
62de74cf7251561058f563593dbf807c8c8593c6
16,049
py
Python
Nowruz_SemEval.py
mohammadmahdinoori/Nowruz-at-SemEval-2022-Task-7
d87bf033c3798ff707ba25ddffde8c46abec8bd4
[ "MIT" ]
2
2022-03-20T02:03:53.000Z
2022-03-21T19:44:54.000Z
Nowruz_SemEval.py
mohammadmahdinoori/Nowruz-at-SemEval-2022-Task-7
d87bf033c3798ff707ba25ddffde8c46abec8bd4
[ "MIT" ]
null
null
null
Nowruz_SemEval.py
mohammadmahdinoori/Nowruz-at-SemEval-2022-Task-7
d87bf033c3798ff707ba25ddffde8c46abec8bd4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Nowruz at SemEval 2022: Tackling Cloze Tests with Transformers and Ordinal Regression Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1RXkjBpzNJtc0WhhrKMjU-50rd5uSviX3 """ import torch import torch.nn as nn from torch.functio...
32.686354
210
0.663406
4,854
0.302449
0
0
223
0.013895
0
0
2,442
0.152159
62defe5f6a2a05a1164bd7391f942132d33f8a26
1,703
py
Python
fbchat/utils.py
Dainius14/fb-chat-bot-old
6bdfa07e6a423e386ed61ce67ac218d806ad38f8
[ "MIT" ]
2
2018-04-05T14:07:16.000Z
2020-11-03T06:08:09.000Z
fbchat/utils.py
Dainius14/fb-chat-bot-old
6bdfa07e6a423e386ed61ce67ac218d806ad38f8
[ "MIT" ]
null
null
null
fbchat/utils.py
Dainius14/fb-chat-bot-old
6bdfa07e6a423e386ed61ce67ac218d806ad38f8
[ "MIT" ]
1
2018-04-05T14:17:44.000Z
2018-04-05T14:17:44.000Z
import re import json from time import time from random import random USER_AGENTS = [ "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/601.1.10 (KHTML, like Gecko) Version/8.0....
36.234043
139
0.656489
0
0
0
0
0
0
0
0
778
0.456841
62e05da86f265d8babd95a4bb39d8c5d2cf0aa4a
964
py
Python
rfhub/blueprints/api/libraries.py
Accruent/robotframework-hub
46f72d2d720e6ad1848c162e9dfd21740797a054
[ "Apache-2.0" ]
null
null
null
rfhub/blueprints/api/libraries.py
Accruent/robotframework-hub
46f72d2d720e6ad1848c162e9dfd21740797a054
[ "Apache-2.0" ]
90
2019-09-04T17:52:10.000Z
2021-07-01T14:01:08.000Z
rfhub/blueprints/api/libraries.py
Accruent/robotframework-hub
46f72d2d720e6ad1848c162e9dfd21740797a054
[ "Apache-2.0" ]
null
null
null
''' This provides the view functions for the /api/libraries endpoints ''' import flask from flask import current_app class ApiEndpoint(object): def __init__(self, blueprint): blueprint.add_url_rule("/libraries/", view_func = self.get_libraries) blueprint.add_url_rule("/libraries/<int:collection_i...
32.133333
94
0.695021
843
0.874481
0
0
0
0
0
0
207
0.21473
62e085ec76ed466edc7957012e2209ee7eb9a47a
131
py
Python
pair-ranking-cnn/utils.py
shinoyuki222/torch-light
4799805d9bcae82a9f12a574dcf9fdd838c92ee9
[ "MIT" ]
310
2018-11-02T10:12:33.000Z
2022-03-30T02:59:51.000Z
pair-ranking-cnn/utils.py
shinoyuki222/torch-light
4799805d9bcae82a9f12a574dcf9fdd838c92ee9
[ "MIT" ]
14
2018-11-08T10:09:46.000Z
2021-07-30T08:54:33.000Z
pair-ranking-cnn/utils.py
shinoyuki222/torch-light
4799805d9bcae82a9f12a574dcf9fdd838c92ee9
[ "MIT" ]
152
2018-11-02T13:00:49.000Z
2022-03-28T12:45:08.000Z
import const def corpora2idx(sents, ind2idx): return [[ind2idx[w] if w in ind2idx else const.UNK for w in s] for s in sents]
21.833333
82
0.709924
0
0
0
0
0
0
0
0
0
0
62e0a00977882b69ee47910edb8fb49b209ff9a7
1,251
py
Python
applications/admin/models/menu.py
forca-inf/forca
99b63c63a7aaebd6f11cb4f73ec54de54ce25986
[ "BSD-3-Clause" ]
6
2018-01-25T01:07:55.000Z
2019-04-26T23:58:29.000Z
applications/admin/models/menu.py
forca-inf/forca
99b63c63a7aaebd6f11cb4f73ec54de54ce25986
[ "BSD-3-Clause" ]
null
null
null
applications/admin/models/menu.py
forca-inf/forca
99b63c63a7aaebd6f11cb4f73ec54de54ce25986
[ "BSD-3-Clause" ]
2
2018-02-03T02:55:56.000Z
2018-02-06T19:55:10.000Z
# ########################################################### # ## generate menu # ########################################################### _a = request.application _c = request.controller _f = request.function response.title = '%s %s' % (_f, '/'.join(request.args)) response.subtitle = 'admin' response.menu = [(T('...
37.909091
75
0.490807
0
0
0
0
0
0
0
0
421
0.336531
62e0c8f94beaf1979e0b0e3755a3173a04c8a516
1,159
py
Python
lenstronomy/LightModel/Profiles/moffat.py
heather999/lenstronomy
8102fe026c1f3ba6e81d8a1f59cceb90e68430b4
[ "MIT" ]
null
null
null
lenstronomy/LightModel/Profiles/moffat.py
heather999/lenstronomy
8102fe026c1f3ba6e81d8a1f59cceb90e68430b4
[ "MIT" ]
null
null
null
lenstronomy/LightModel/Profiles/moffat.py
heather999/lenstronomy
8102fe026c1f3ba6e81d8a1f59cceb90e68430b4
[ "MIT" ]
null
null
null
__author__ = 'sibirrer' # this file contains a class to make a Moffat profile __all__ = ['Moffat'] class Moffat(object): """ this class contains functions to evaluate a Moffat surface brightness profile .. math:: I(r) = I_0 * (1 + (r/\\alpha)^2)^{-\\beta} with :math:`I_0 = amp`. """ ...
28.268293
106
0.569456
1,055
0.910267
0
0
0
0
0
0
687
0.592752
62e0e93747dae752fc1a23adaf41a5a5edb9094b
1,912
py
Python
pypy/module/oracle/test/test_objectvar.py
kantai/passe-pypy-taint-tracking
b60a3663f8fe89892dc182c8497aab97e2e75d69
[ "MIT" ]
2
2016-07-06T23:30:20.000Z
2017-05-30T15:59:31.000Z
pypy/module/oracle/test/test_objectvar.py
benoitc/pypy
a3e1b12d1d01dc29056b7badc051ffc034297658
[ "MIT" ]
null
null
null
pypy/module/oracle/test/test_objectvar.py
benoitc/pypy
a3e1b12d1d01dc29056b7badc051ffc034297658
[ "MIT" ]
2
2020-07-09T08:14:22.000Z
2021-01-15T18:01:25.000Z
from pypy.module.oracle.test.test_connect import OracleTestBase class AppTestObjectVar(OracleTestBase): def test_fetch_object(self): import datetime cur = self.cnx.cursor() try: cur.execute("drop table pypy_test_objtable") except oracle.DatabaseError: pass ...
37.490196
70
0.579498
1,846
0.965481
0
0
0
0
0
0
840
0.439331
62e1d5665a19ec6ff0058abaac2fe46b0195ec1d
250
py
Python
lecture70_practice.py
adwabh/python_practice
878aa06841ec606648eab97fe5e801f073ce0aa7
[ "Apache-2.0" ]
null
null
null
lecture70_practice.py
adwabh/python_practice
878aa06841ec606648eab97fe5e801f073ce0aa7
[ "Apache-2.0" ]
null
null
null
lecture70_practice.py
adwabh/python_practice
878aa06841ec606648eab97fe5e801f073ce0aa7
[ "Apache-2.0" ]
null
null
null
tempratures = [10,-20, -289, 100] def c_to_f(c): if c<-273.15: return "" return c* 9/5 +32 def writeToFile(input): with open("output.txt","a") as file: file.write(input) for temp in tempratures: writeToFile(str(c_to_f(temp)))
19.230769
40
0.628
0
0
0
0
0
0
0
0
17
0.068
62e200f1509ce70b40b4ad9b1ff9f7adeffa7fcc
6,574
py
Python
causal_da/components/ica_torch/GCL_nonlinear_ica_train.py
sharmapulkit/few-shot-domain-adaptation-by-causal-mechanism-transfer
05b4cab288dbb2ad7e30bbd174c22beb39d5c4cd
[ "Apache-2.0" ]
null
null
null
causal_da/components/ica_torch/GCL_nonlinear_ica_train.py
sharmapulkit/few-shot-domain-adaptation-by-causal-mechanism-transfer
05b4cab288dbb2ad7e30bbd174c22beb39d5c4cd
[ "Apache-2.0" ]
null
null
null
causal_da/components/ica_torch/GCL_nonlinear_ica_train.py
sharmapulkit/few-shot-domain-adaptation-by-causal-mechanism-transfer
05b4cab288dbb2ad7e30bbd174c22beb39d5c4cd
[ "Apache-2.0" ]
null
null
null
import numpy as np from ignite.engine import Engine, Events import torch from .gcl_model import GeneralizedContrastiveICAModel from .trainer_util import random_pick_wrong_target, binary_logistic_loss from .logging_util import DummyRunLogger # Type hinting from typing import Callable from torch import FloatTensor, Long...
43.826667
159
0.609066
3,636
0.553088
0
0
536
0.081533
0
0
2,534
0.385458
62e27fc7ce47704f27bdd2c667d663a58a6d3981
485
py
Python
tetrad_cms/cases/tasks.py
UsernameForGerman/tetraD-NK
e00b406ac7b2ce63b92698c887fb53bf53344454
[ "Apache-2.0" ]
null
null
null
tetrad_cms/cases/tasks.py
UsernameForGerman/tetraD-NK
e00b406ac7b2ce63b92698c887fb53bf53344454
[ "Apache-2.0" ]
null
null
null
tetrad_cms/cases/tasks.py
UsernameForGerman/tetraD-NK
e00b406ac7b2ce63b92698c887fb53bf53344454
[ "Apache-2.0" ]
null
null
null
from django.conf import settings from requests import Session import os from json import dumps from core.celery import app @app.task(queue='cms') def send_new_contact_to_admins(contact: dict, admins: list) -> None: s = Session() data = {'admins': admins, 'contact': contact} url = settings.TELEGRAM_BOT_AP...
25.526316
83
0.694845
0
0
0
0
357
0.736082
0
0
68
0.140206
62e353f71bc5f0d9e24cfab6d427c04ff9186124
316
py
Python
learning/example03_for.py
bokunimowakaru/iot
e2672a9b1dc0c4f3b57995daee634edce00a8029
[ "MIT" ]
6
2019-04-19T18:56:27.000Z
2022-03-07T13:08:28.000Z
learning/example03_for.py
bokunimowakaru/iot
e2672a9b1dc0c4f3b57995daee634edce00a8029
[ "MIT" ]
null
null
null
learning/example03_for.py
bokunimowakaru/iot
e2672a9b1dc0c4f3b57995daee634edce00a8029
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # coding: utf-8 # Example 03 コンピュータお得意の繰り返しfor文 from sys import argv # 本プログラムの引数argvを取得する for name in argv: # 引数を変数nameへ代入 print('Hello,', name + '!') # 変数nameの内容を、文字列Helloに続いて表示 # for文の「argv」を「argv[1:]」にするとargv[1]以降の全引数を順次nameへ代入して繰り返す
28.727273
67
0.623418
0
0
0
0
0
0
0
0
361
0.752083
62e409fd164236f3061594e924d59c0872ce51fc
5,929
py
Python
linekey.py
alex-west-met-office/IMBS_MO
76aff7d53da02aafb13a94d4afceeb0cc771b5cb
[ "BSD-3-Clause" ]
1
2021-03-05T18:53:01.000Z
2021-03-05T18:53:01.000Z
linekey.py
alex-west-met-office/IMBS_MO
76aff7d53da02aafb13a94d4afceeb0cc771b5cb
[ "BSD-3-Clause" ]
null
null
null
linekey.py
alex-west-met-office/IMBS_MO
76aff7d53da02aafb13a94d4afceeb0cc771b5cb
[ "BSD-3-Clause" ]
1
2021-03-05T18:53:07.000Z
2021-03-05T18:53:07.000Z
''' A module for defining and producing the linekey object, which is used to determine and store information about data format in a CRREL ice mass balance buoy.''' class linekey: def __init__(self,date_index = 0): self.date_index = date_index self.value_index = [] self.phenomena_names = [...
32.938889
87
0.49182
652
0.109968
0
0
0
0
0
0
499
0.084163
62e5121cc3d103f5d833e64dac522900d5c6c105
468
py
Python
2020/02/07/An Introduction to Sessions in Flask/flask_session_example/app.py
kenjitagawa/youtube_video_code
ef3c48b9e136b3745d10395d94be64cb0a1f1c97
[ "Unlicense" ]
492
2019-06-25T12:54:31.000Z
2022-03-30T12:38:28.000Z
2020/02/07/An Introduction to Sessions in Flask/flask_session_example/app.py
kenjitagawa/youtube_video_code
ef3c48b9e136b3745d10395d94be64cb0a1f1c97
[ "Unlicense" ]
23
2019-10-01T01:36:08.000Z
2022-02-10T12:46:16.000Z
2020/02/07/An Introduction to Sessions in Flask/flask_session_example/app.py
kenjitagawa/youtube_video_code
ef3c48b9e136b3745d10395d94be64cb0a1f1c97
[ "Unlicense" ]
1,734
2019-06-03T06:25:13.000Z
2022-03-31T23:57:53.000Z
from flask import Flask, render_template, session, redirect, url_for app = Flask(__name__) app.config['SECRET_KEY'] = 'prettyprinted' @app.route('/') def index(): return render_template('index.html') @app.route('/set-background/<mode>') def set_background(mode): session['mode'] = mode return ...
26
69
0.675214
0
0
0
0
319
0.681624
0
0
107
0.228632
62e7dc7223d5307c35918c3ce6453c318e70e573
6,034
py
Python
python/y2019/d19/day18a.py
luke-dixon/aoc
94851a5866a1ef29e3ba10098160cba883882683
[ "MIT" ]
1
2021-01-12T20:04:01.000Z
2021-01-12T20:04:01.000Z
python/y2019/d19/day18a.py
luke-dixon/aoc
94851a5866a1ef29e3ba10098160cba883882683
[ "MIT" ]
null
null
null
python/y2019/d19/day18a.py
luke-dixon/aoc
94851a5866a1ef29e3ba10098160cba883882683
[ "MIT" ]
null
null
null
import random from collections import deque import networkx as nx from lib import puzzle def draw_grid(grid): min_y, max_y = 0, 0 min_x, max_x = 0, 0 for y, x in grid: if y < min_y: min_y = y if y > max_y: max_y = y if x < min_x: min_x = x ...
28.597156
195
0.465529
4,656
0.771627
0
0
0
0
0
0
808
0.133908
62e8443425595d1830f01ee66eb245eac34208d4
6,741
py
Python
train.py
TahjidEshan/PIXOR-1
741b3f913d32b84e550b69d6ff9b89946a524192
[ "Apache-2.0" ]
null
null
null
train.py
TahjidEshan/PIXOR-1
741b3f913d32b84e550b69d6ff9b89946a524192
[ "Apache-2.0" ]
null
null
null
train.py
TahjidEshan/PIXOR-1
741b3f913d32b84e550b69d6ff9b89946a524192
[ "Apache-2.0" ]
null
null
null
import torch import time from loss import CustomLoss from datagen import get_data_loader from model import PIXOR from utils import get_model_name, load_config, plot_bev, plot_label_map from postprocess import non_max_suppression def build_model(config, device, train=True): net = PIXOR(config['use_bn']...
37.870787
143
0.637739
0
0
0
0
0
0
0
0
1,291
0.191515
62e88e0e53e902fc19cd512c4d2ebfa27cd4aa98
1,595
py
Python
Data-Wrangling-With-Pandas/code.py
fakhruddin950/ga-learner-dsmp-repo
388b13867667167514ef8a6cb314daa06e862850
[ "MIT" ]
null
null
null
Data-Wrangling-With-Pandas/code.py
fakhruddin950/ga-learner-dsmp-repo
388b13867667167514ef8a6cb314daa06e862850
[ "MIT" ]
null
null
null
Data-Wrangling-With-Pandas/code.py
fakhruddin950/ga-learner-dsmp-repo
388b13867667167514ef8a6cb314daa06e862850
[ "MIT" ]
null
null
null
# -------------- # Import packages import numpy as np import pandas as pd from scipy.stats import mode # code starts here bank=pd.read_csv(path) categorical_var=bank.select_dtypes(include='object') print(categorical_var) numerical_var=bank.select_dtypes(include='number') print(numerical_var) # code ends here...
18.333333
80
0.711599
0
0
0
0
0
0
0
0
506
0.317241
62e9bb75214838eb014900bb542cf54ee4677ca5
3,039
py
Python
pygfunction/examples/custom_borehole.py
icupeiro/pygfunction
3688ecc45515e161cfe882fdf4a3687c49013174
[ "BSD-3-Clause" ]
null
null
null
pygfunction/examples/custom_borehole.py
icupeiro/pygfunction
3688ecc45515e161cfe882fdf4a3687c49013174
[ "BSD-3-Clause" ]
null
null
null
pygfunction/examples/custom_borehole.py
icupeiro/pygfunction
3688ecc45515e161cfe882fdf4a3687c49013174
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Example definition of a borehole. A top-view plot of the borehole is created and the borehole resistance is computed. """ from __future__ import absolute_import, division, print_function import pygfunction as gt from numpy import pi def main(): # Borehole dimensions H = 400. ...
37.518519
78
0.535373
0
0
0
0
0
0
0
0
1,264
0.415926
62ea3738cc160ba63213f6e51f4925dc71a6ad64
2,409
py
Python
project/models.py
nikodrum/evaluationua
8c68330da1629a9d3a08fa7ed43b10f71148fd01
[ "MIT" ]
null
null
null
project/models.py
nikodrum/evaluationua
8c68330da1629a9d3a08fa7ed43b10f71148fd01
[ "MIT" ]
null
null
null
project/models.py
nikodrum/evaluationua
8c68330da1629a9d3a08fa7ed43b10f71148fd01
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- from random import randint import math from project import matplt,database from geopy.geocoders import Nominatim from geopy import exc import os, shutil categ_coef = 17960 geolocator = Nominatim() def clean_temp_folder(folder): for the_file in os.listdir(folder): file_path = os.p...
29.378049
243
0.630552
0
0
0
0
0
0
0
0
191
0.079155
62ed041f991b95827e52f2d6f991c749ace2aa73
1,914
py
Python
python/titlecase.py
edewillians10/ewsc
bedd3fec854ac1633eefc028281b97ca6e2686df
[ "Apache-2.0" ]
null
null
null
python/titlecase.py
edewillians10/ewsc
bedd3fec854ac1633eefc028281b97ca6e2686df
[ "Apache-2.0" ]
null
null
null
python/titlecase.py
edewillians10/ewsc
bedd3fec854ac1633eefc028281b97ca6e2686df
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os import re import argparse re_junk = re.compile(r'[._-]') re_spaces = re.compile(r'\s\s+') def print_rename(old_filename, new_filename): print('{} -> {}'.format(old_filename, new_filename)) def print_and_rename(old_path, new_path): print_rename(old_path, new_p...
26.957746
111
0.646813
0
0
0
0
0
0
0
0
643
0.335946
62edfa74cc80bf68fdca4db96ce6ae0f223f2112
1,007
py
Python
broti/modules/stalking.py
pcworld/broti
4f0d1e79cb7f51d1f71ce349426cb01b8ef2b1f1
[ "BSD-2-Clause" ]
null
null
null
broti/modules/stalking.py
pcworld/broti
4f0d1e79cb7f51d1f71ce349426cb01b8ef2b1f1
[ "BSD-2-Clause" ]
null
null
null
broti/modules/stalking.py
pcworld/broti
4f0d1e79cb7f51d1f71ce349426cb01b8ef2b1f1
[ "BSD-2-Clause" ]
1
2021-03-28T18:52:26.000Z
2021-03-28T18:52:26.000Z
import time requires = ['db'] def add_joined(bot, c, e): username, _, _ = e.source.partition('!') cur = bot.provides['db'].cursor() cur.execute('''INSERT INTO stalking (username, date, action, channel) VALUES (?, ?, ?, ?)''', (username, time.time(), 'join', e.target)) bot.provides['db'].commi...
28.771429
75
0.594836
0
0
0
0
0
0
0
0
385
0.382324
62eecf5be6b8f29ec4406432dc27f44102230b56
7,968
py
Python
lib/streamlit/uploaded_file_manager.py
Sax-dot/sax-test-streamlit
05dfef0c26bbdf3467c6236921a01afafa90f435
[ "Apache-2.0" ]
null
null
null
lib/streamlit/uploaded_file_manager.py
Sax-dot/sax-test-streamlit
05dfef0c26bbdf3467c6236921a01afafa90f435
[ "Apache-2.0" ]
null
null
null
lib/streamlit/uploaded_file_manager.py
Sax-dot/sax-test-streamlit
05dfef0c26bbdf3467c6236921a01afafa90f435
[ "Apache-2.0" ]
null
null
null
# Copyright 2018-2020 Streamlit Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
34.79476
83
0.626004
7,263
0.911521
0
0
0
0
0
0
3,708
0.465361
62ef13900c5a6f18d29ae7b0c78da18966ff6af7
4,047
py
Python
data/transforms/build.py
zyxwvu321/Classifer_SSL_Longtail
e6c09414c49e695b0f4221a3c6245ae3929a1788
[ "MIT" ]
null
null
null
data/transforms/build.py
zyxwvu321/Classifer_SSL_Longtail
e6c09414c49e695b0f4221a3c6245ae3929a1788
[ "MIT" ]
null
null
null
data/transforms/build.py
zyxwvu321/Classifer_SSL_Longtail
e6c09414c49e695b0f4221a3c6245ae3929a1788
[ "MIT" ]
null
null
null
# encoding: utf-8 """ build transform """ #import torchvision.transforms as T #from PIL import Image #from .transforms import RandomErasing,RandomErasingCorner from .data_preprocessing import TrainAugmentation_albu,TestAugmentation_albu,TrainAugmentation_bone,TestAugmentation_bone import torchvision.transforms as ...
40.069307
178
0.617742
0
0
0
0
0
0
0
0
803
0.198419
62ef92a0927f04b3c8692fbdb4474ca4db193b08
2,039
py
Python
compiler_oj/testcase.py
XunGong99/compiler-offline-judge
89d03133d34bd06e6fe7bb4cbb016ac9fe9f78d5
[ "MIT" ]
19
2018-05-01T09:15:18.000Z
2021-12-22T08:27:52.000Z
compiler_oj/testcase.py
XunGong99/compiler-offline-judge
89d03133d34bd06e6fe7bb4cbb016ac9fe9f78d5
[ "MIT" ]
1
2018-05-01T13:59:58.000Z
2018-05-01T14:49:37.000Z
compiler_oj/testcase.py
XunGong99/compiler-offline-judge
89d03133d34bd06e6fe7bb4cbb016ac9fe9f78d5
[ "MIT" ]
10
2018-05-28T02:31:29.000Z
2020-01-30T06:11:22.000Z
import os class TestCase: def __init__(self, raw, filename="unknown", t=1.0): self.__raw = raw self.filename = filename self.src = self.__read_source() self.comment = self.__find_block("comment") self.input = self.__find_block("input") self.output = self.__format_ou...
31.369231
75
0.545365
1,424
0.696333
0
0
117
0.057213
0
0
248
0.121271
62efb5daea165045f78966066a5dddd62fe07ac8
10,137
py
Python
lib/python3.8/site-packages/ansible_collections/cisco/nxos/plugins/modules/nxos_l3_interfaces.py
cjsteel/python3-venv-ansible-2.10.5
c95395c4cae844dc66fddde9b4343966f4b2ecd5
[ "Apache-1.1" ]
null
null
null
lib/python3.8/site-packages/ansible_collections/cisco/nxos/plugins/modules/nxos_l3_interfaces.py
cjsteel/python3-venv-ansible-2.10.5
c95395c4cae844dc66fddde9b4343966f4b2ecd5
[ "Apache-1.1" ]
null
null
null
lib/python3.8/site-packages/ansible_collections/cisco/nxos/plugins/modules/nxos_l3_interfaces.py
cjsteel/python3-venv-ansible-2.10.5
c95395c4cae844dc66fddde9b4343966f4b2ecd5
[ "Apache-1.1" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright 2019 Red Hat # GNU General Public License v3.0+ # (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) ############################################# # WARNING # ############################################# # # This file is au...
24.96798
114
0.625037
0
0
0
0
0
0
0
0
9,163
0.903916
62f07f01c417635fb15b3f7c35ca5a2a958e3a07
2,426
py
Python
tests/ethereumetl/job/test_extract_geth_traces_job.py
XWorldGames/bsc-etl
c4a1ba72381340994ec376e6de860cde6637becc
[ "MIT" ]
null
null
null
tests/ethereumetl/job/test_extract_geth_traces_job.py
XWorldGames/bsc-etl
c4a1ba72381340994ec376e6de860cde6637becc
[ "MIT" ]
null
null
null
tests/ethereumetl/job/test_extract_geth_traces_job.py
XWorldGames/bsc-etl
c4a1ba72381340994ec376e6de860cde6637becc
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2018 Evgeniy Filatov, [email protected] # # 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 #...
37.90625
85
0.766694
0
0
0
0
843
0.347486
0
0
1,349
0.556059
62f07ff59fb064975f519a1d53028c1dfda5c299
4,582
py
Python
typed_python/compiler/type_wrappers/ref_to_wrapper.py
APrioriInvestments/typed_python
a3191e5d30333eba156c2a910abc78f7813dcaa3
[ "Apache-2.0" ]
105
2019-12-02T01:44:46.000Z
2022-03-28T20:27:38.000Z
typed_python/compiler/type_wrappers/ref_to_wrapper.py
APrioriInvestments/typed_python
a3191e5d30333eba156c2a910abc78f7813dcaa3
[ "Apache-2.0" ]
173
2019-10-08T19:37:06.000Z
2022-01-24T18:43:42.000Z
typed_python/compiler/type_wrappers/ref_to_wrapper.py
APrioriInvestments/typed_python
a3191e5d30333eba156c2a910abc78f7813dcaa3
[ "Apache-2.0" ]
1
2020-01-23T00:06:42.000Z
2020-01-23T00:06:42.000Z
# Copyright 2017-2019 typed_python Authors # # 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...
34.451128
114
0.712134
3,605
0.786774
0
0
257
0.056089
0
0
596
0.130074
62f131f2fd644c186231aef33c85b6720ddcf3fc
587
py
Python
securesite/payroll/admin.py
simokauranen/payroll_api_localhost
76cb4dede290afa1204236fb7b097eaeee61eb21
[ "MIT" ]
null
null
null
securesite/payroll/admin.py
simokauranen/payroll_api_localhost
76cb4dede290afa1204236fb7b097eaeee61eb21
[ "MIT" ]
null
null
null
securesite/payroll/admin.py
simokauranen/payroll_api_localhost
76cb4dede290afa1204236fb7b097eaeee61eb21
[ "MIT" ]
null
null
null
"""Module to add Employee fields to the User admin interface.""" from django.contrib import admin from django.contrib.auth.admin import UserAdmin as BaseUserAdmin from django.contrib.auth.models import User from .models import Employee class EmployeeInline(admin.StackedInline): model = Employee can_delete =...
23.48
68
0.758092
271
0.46167
0
0
0
0
0
0
138
0.235094
62f23976c671843e25e3faff67dcc2d0f2fe7178
1,332
py
Python
qamplus/voice.py
qamplus/qamplus-pythonsdk
5669e621018ffd6605354b672b446c3ad631665d
[ "MIT" ]
null
null
null
qamplus/voice.py
qamplus/qamplus-pythonsdk
5669e621018ffd6605354b672b446c3ad631665d
[ "MIT" ]
null
null
null
qamplus/voice.py
qamplus/qamplus-pythonsdk
5669e621018ffd6605354b672b446c3ad631665d
[ "MIT" ]
null
null
null
class VoiceClient(object): def __init__(self, base_obj): self.base_obj = base_obj self.api_resource = "/voice/v1/{}" def create(self, direction, to, caller_id, execution_logic, reference_logic='', count...
32.487805
102
0.652402
1,326
0.995495
0
0
0
0
0
0
28
0.021021
62f447bcd9eda650bb251abec9e284d7ebf171db
1,865
py
Python
tests/test_mpauth.py
chuter/wechat-requests
23591f8e04e795a1727e6a8029602cfb2dde90f1
[ "MIT" ]
3
2019-06-17T10:54:03.000Z
2021-01-29T08:25:01.000Z
tests/test_mpauth.py
chuter/wechat-requests
23591f8e04e795a1727e6a8029602cfb2dde90f1
[ "MIT" ]
2
2020-03-24T15:46:37.000Z
2020-03-30T20:26:19.000Z
tests/test_mpauth.py
chuter/wechat-requests
23591f8e04e795a1727e6a8029602cfb2dde90f1
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 import pytest from wechat.result import build_from_response from wechat.auth import MpOuthApi, get_mp_access_token @pytest.mark.usefixtures('response_builder') class TestAuth: def test_mp_auth_params(self, mocker, mp_appid, mp_secret): patched_request_execute = mocker.MagicMock( ...
29.603175
69
0.604826
1,677
0.899196
0
0
1,722
0.923324
0
0
259
0.138874
62f5cef50adba84125aceb4b7bcd641b085ef856
76,410
py
Python
python/pb/pomerium/pb/users_pb2.py
adriangb/enterprise-client
5d50b457425b0c6d08415b0d986fa9151b792151
[ "Apache-2.0" ]
null
null
null
python/pb/pomerium/pb/users_pb2.py
adriangb/enterprise-client
5d50b457425b0c6d08415b0d986fa9151b792151
[ "Apache-2.0" ]
null
null
null
python/pb/pomerium/pb/users_pb2.py
adriangb/enterprise-client
5d50b457425b0c6d08415b0d986fa9151b792151
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: users.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf ...
42.975253
6,495
0.778471
0
0
0
0
0
0
0
0
20,832
0.272634
62f736f5442b0883d19887a8204d15682986aa90
6,974
py
Python
src/python/pants/backend/codegen/thrift/apache/rules.py
betaboon/pants
05ec375c8bfcaa0396c673847bb139326883cc08
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/codegen/thrift/apache/rules.py
betaboon/pants
05ec375c8bfcaa0396c673847bb139326883cc08
[ "Apache-2.0" ]
1
2022-02-22T18:15:03.000Z
2022-02-22T18:15:03.000Z
src/python/pants/backend/codegen/thrift/apache/rules.py
ryanking/pants
e45b00d2eb467b599966bca262405a5d74d27bdd
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import annotations import logging from dataclasses import dataclass from pants.backend.codegen.thrift.apache.subsystem import ApacheThriftSubsystem from pants.backend.code...
35.045226
110
0.671638
238
0.034127
0
0
5,743
0.823487
5,421
0.777316
1,727
0.247634
62faa58bb2c555bc41f725bdab4a4f8e48cef3ac
1,794
py
Python
site_asylum/apps/delirium/migrations/0001_initial.py
uruz/asylum.su
7d7a46006fb14160b3360751b6cce1a5f960f9d0
[ "MIT" ]
null
null
null
site_asylum/apps/delirium/migrations/0001_initial.py
uruz/asylum.su
7d7a46006fb14160b3360751b6cce1a5f960f9d0
[ "MIT" ]
null
null
null
site_asylum/apps/delirium/migrations/0001_initial.py
uruz/asylum.su
7d7a46006fb14160b3360751b6cce1a5f960f9d0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='DeliriumUser', fields=[ ('id', models.AutoField...
40.772727
118
0.567447
1,790
0.942601
0
0
0
0
0
0
498
0.262243
62fd1da94147ad45face770be507f1eb73d0d1b2
404
py
Python
test.py
quantumporium/shopping_cart_project
eae13f76fce82715ddbad5aebb73035b0e1ba258
[ "MIT" ]
null
null
null
test.py
quantumporium/shopping_cart_project
eae13f76fce82715ddbad5aebb73035b0e1ba258
[ "MIT" ]
null
null
null
test.py
quantumporium/shopping_cart_project
eae13f76fce82715ddbad5aebb73035b0e1ba258
[ "MIT" ]
null
null
null
# good structure for an pytest test from app import shopping_cart def check_if_checkout_give_the_right_value(): ''' ''' arrange_array = [15,7, 10] # arrange shopping_cart_array = shopping_cart.checkout(arrange_array) # act assert shopping_cart_array == (31.99, 2.8, 34.79), "this check if the functi...
36.727273
120
0.747525
0
0
0
0
0
0
0
0
125
0.309406
62fd39c0aafef0a38c14c50d32b531ce3872cae4
17,658
py
Python
tests/unit/utils/test_win_system.py
markgras/salt
d66cd3c935533c63870b83228b978ce43e0ef70d
[ "Apache-2.0" ]
9,425
2015-01-01T05:59:24.000Z
2022-03-31T20:44:05.000Z
tests/unit/utils/test_win_system.py
markgras/salt
d66cd3c935533c63870b83228b978ce43e0ef70d
[ "Apache-2.0" ]
33,507
2015-01-01T00:19:56.000Z
2022-03-31T23:48:20.000Z
tests/unit/utils/test_win_system.py
markgras/salt
d66cd3c935533c63870b83228b978ce43e0ef70d
[ "Apache-2.0" ]
5,810
2015-01-01T19:11:45.000Z
2022-03-31T02:37:20.000Z
import os import salt.utils.platform from tests.support.mock import patch from tests.support.unit import TestCase, skipIf try: import salt.utils.win_system as win_system except Exception as exc: # pylint: disable=broad-except win_system = exc class WinSystemImportTestCase(TestCase): """ Simply impo...
41.942993
87
0.64979
17,320
0.980859
0
0
17,078
0.967154
0
0
7,260
0.411145
62fddb54eb15614ae62c4ea42765a975a997094e
2,738
py
Python
modules/pgu/gui/list.py
bullseyestudio/guns-game
3104c44e43ea7f000f6b9e756d622f98110d0a21
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
modules/pgu/gui/list.py
bullseyestudio/guns-game
3104c44e43ea7f000f6b9e756d622f98110d0a21
[ "Apache-2.0", "BSD-3-Clause" ]
1
2018-11-21T04:50:57.000Z
2018-11-21T04:50:57.000Z
modules/pgu/gui/list.py
bullseyestudio/guns-game
3104c44e43ea7f000f6b9e756d622f98110d0a21
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
""" """ from .const import * from . import container, widget class List(container.Container): def __init__(self, title=None, length=None, show_empty=True, size=20, **params): params.setdefault('cls','list') container.Container.__init__(self, **params) self.title = title self.font = self.style.font w,h =...
25.588785
94
0.657049
2,230
0.814463
0
0
0
0
0
0
563
0.205625
62fddef8dc0414788a7119927b0e02d28c5a35e7
359
py
Python
prog_1.py
swatakit/python-dash-quick-starter
6009cef072579fc5f1755c6bc047aeae5a6d9c75
[ "MIT" ]
1
2020-10-21T21:05:50.000Z
2020-10-21T21:05:50.000Z
prog_1.py
swatakit/python-dash-quick-starter
6009cef072579fc5f1755c6bc047aeae5a6d9c75
[ "MIT" ]
null
null
null
prog_1.py
swatakit/python-dash-quick-starter
6009cef072579fc5f1755c6bc047aeae5a6d9c75
[ "MIT" ]
null
null
null
######################################### # The Simplest form of dash application # # ref: https://dash.plotly.com/introduction import dash import dash_html_components as html app = dash.Dash(__name__) # Layout compose app.layout = html.Div([ html.H1('Hello, this is a Dash Application'), ]) if __name__ == "__ma...
19.944444
49
0.637883
0
0
0
0
0
0
0
0
185
0.51532
62ff5663f9b64ba48b98538457a5c9793b4cf0c7
1,409
py
Python
ros/src/twist_controller/pid.py
redherring2141/CarND-Capstone
df230f902836923dbbc55065c3d4f12531c05cda
[ "MIT" ]
null
null
null
ros/src/twist_controller/pid.py
redherring2141/CarND-Capstone
df230f902836923dbbc55065c3d4f12531c05cda
[ "MIT" ]
null
null
null
ros/src/twist_controller/pid.py
redherring2141/CarND-Capstone
df230f902836923dbbc55065c3d4f12531c05cda
[ "MIT" ]
null
null
null
import rospy MIN_NUM = float('-inf') MAX_NUM = float('inf') class PID(object): def __init__(self, kp, ki, kd, max_input=MAX_NUM, mn=MIN_NUM, mx=MAX_NUM): self.kp = kp self.ki = ki self.kd = kd self.min = mn self.max = mx # Approximation - added self.max_ab...
27.096154
109
0.570617
1,346
0.955287
0
0
0
0
0
0
213
0.151171
1a018ecb1b4832d82200c28fb3048b3345de111f
33
py
Python
gmocoin/__init__.py
makotookamura/GmoCoin
025d3e68364bf52418dbc3445987ff21528db732
[ "Apache-2.0" ]
null
null
null
gmocoin/__init__.py
makotookamura/GmoCoin
025d3e68364bf52418dbc3445987ff21528db732
[ "Apache-2.0" ]
null
null
null
gmocoin/__init__.py
makotookamura/GmoCoin
025d3e68364bf52418dbc3445987ff21528db732
[ "Apache-2.0" ]
1
2021-07-17T16:56:03.000Z
2021-07-17T16:56:03.000Z
#!python3 __version__ = '0.0.12'
11
22
0.666667
0
0
0
0
0
0
0
0
17
0.515152
1a01eca2e35dff0208fce46a45cc7fc79230edce
4,017
py
Python
climbing_ratings/tests/test_bradley_terry.py
scottwedge/climbing_ratings
5a36df62681487de5d5d041e379853be21611dcb
[ "Apache-2.0" ]
null
null
null
climbing_ratings/tests/test_bradley_terry.py
scottwedge/climbing_ratings
5a36df62681487de5d5d041e379853be21611dcb
[ "Apache-2.0" ]
null
null
null
climbing_ratings/tests/test_bradley_terry.py
scottwedge/climbing_ratings
5a36df62681487de5d5d041e379853be21611dcb
[ "Apache-2.0" ]
null
null
null
"""Tests for the bradley_terry module""" # Copyright 2019 Dean Scarff # # 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 b...
38.625
75
0.608663
3,248
0.808564
0
0
0
0
0
0
1,042
0.259398
1a021e021146cbc33766d3c7997455d63709bb09
167
py
Python
python/testData/inspections/PyUnresolvedReferencesInspection3K/asyncInitMethod.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/inspections/PyUnresolvedReferencesInspection3K/asyncInitMethod.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/inspections/PyUnresolvedReferencesInspection3K/asyncInitMethod.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
class A: <error descr="function \"__init__\" cannot be async">async</error> def __init__(self): self.foo = '2' self.bar = '3' a = A() print(a.foo)
23.857143
90
0.580838
145
0.868263
0
0
0
0
0
0
45
0.269461
1a02584666d045aa7be3465e13485d41b2de443c
1,967
py
Python
log_analysis_tool.py
buildthatapp/udacity_fsnd_log_analysis_tool
fc340b697fa255ac67a969f06a4d192dc7e8b3ae
[ "MIT" ]
null
null
null
log_analysis_tool.py
buildthatapp/udacity_fsnd_log_analysis_tool
fc340b697fa255ac67a969f06a4d192dc7e8b3ae
[ "MIT" ]
null
null
null
log_analysis_tool.py
buildthatapp/udacity_fsnd_log_analysis_tool
fc340b697fa255ac67a969f06a4d192dc7e8b3ae
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Log Analysis Project for Full Stack Nanodegree by Udacity""" import psycopg2 DBNAME = "news" def three_most_popular_articles(): """Queries and displays the top three most viewed articles.""" conn = psycopg2.connect(database=DBNAME) cur = conn.cursor() query = 'VIEW_top_thr...
19.67
66
0.589731
0
0
0
0
0
0
0
0
680
0.345704
1a03179c783f6a71443f0dfefb1dcdf8bf7a653b
40
py
Python
samplePythonfiles/cc.py
fazilsha/python-automation
80ce94642a94276d3b970ae390a5d1464ad2f2b8
[ "MIT" ]
null
null
null
samplePythonfiles/cc.py
fazilsha/python-automation
80ce94642a94276d3b970ae390a5d1464ad2f2b8
[ "MIT" ]
null
null
null
samplePythonfiles/cc.py
fazilsha/python-automation
80ce94642a94276d3b970ae390a5d1464ad2f2b8
[ "MIT" ]
null
null
null
print("File dd.py sucessfully executed")
40
40
0.8
0
0
0
0
0
0
0
0
33
0.825
1a04f2dc5f9e5f9be7e2402e0878155eb33a689e
5,868
py
Python
src/models.py
thowilh/geomars
18d8dd1f2bb15fe0a67d3e59aa76f2e3df4ac7c1
[ "MIT" ]
2
2022-02-20T18:23:25.000Z
2022-02-26T19:15:33.000Z
src/models.py
thowilh/geomars
18d8dd1f2bb15fe0a67d3e59aa76f2e3df4ac7c1
[ "MIT" ]
null
null
null
src/models.py
thowilh/geomars
18d8dd1f2bb15fe0a67d3e59aa76f2e3df4ac7c1
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import pytorch_lightning as pl from torchvision.models import ( alexnet, vgg16_bn, resnet18, resnet34, resnet50, densenet121, densenet161, ) from torch.nn import functional as F from pytorch_lightning.metrics.functional import accuracy, precision_recall c...
35.349398
86
0.581118
5,548
0.945467
0
0
0
0
0
0
1,025
0.174676
1a05c837044c86fc7d751b18c934f19ce77168a2
12,132
py
Python
examples/challenges/shell-plugin/ctfd/CTFd/plugins/shell-plugin/shell.py
ameserole/Akeso
868f280e88f44e65e44fbe2f6c43e6b7c92fbcab
[ "MIT" ]
19
2018-02-26T00:19:17.000Z
2019-12-18T04:26:45.000Z
examples/challenges/shell-plugin/ctfd/CTFd/plugins/shell-plugin/shell.py
ameserole/Akeso
868f280e88f44e65e44fbe2f6c43e6b7c92fbcab
[ "MIT" ]
11
2018-05-07T15:11:30.000Z
2018-11-13T16:40:41.000Z
examples/challenges/shell-plugin/ctfd/CTFd/plugins/shell-plugin/shell.py
ameserole/Akeso
868f280e88f44e65e44fbe2f6c43e6b7c92fbcab
[ "MIT" ]
1
2018-08-28T15:50:09.000Z
2018-08-28T15:50:09.000Z
import logging import os import re import time import urllib from threading import Thread import xmlrpclib from Queue import Queue from flask import current_app as app, render_template, request, redirect, abort, jsonify, json as json_mod, url_for, session, Blueprint from itsdangerous import TimedSerializer, BadTimeSi...
45.609023
170
0.548714
0
0
0
0
3,628
0.299044
0
0
2,473
0.203841
1a08162c99a6ecd9599da9bfcff9c2e8807aa344
972
py
Python
386-Lexicographical-Numbers/solution.py
Tanych/CodeTracking
86f1cb98de801f58c39d9a48ce9de12df7303d20
[ "MIT" ]
null
null
null
386-Lexicographical-Numbers/solution.py
Tanych/CodeTracking
86f1cb98de801f58c39d9a48ce9de12df7303d20
[ "MIT" ]
null
null
null
386-Lexicographical-Numbers/solution.py
Tanych/CodeTracking
86f1cb98de801f58c39d9a48ce9de12df7303d20
[ "MIT" ]
null
null
null
class Solution(object): def _dfs(self,num,res,n): if num>n: return res.append(num) num=num*10 if num<=n: for i in xrange(10): self._dfs(num+i,res,n) def sovleOn(self,n): res=[] cur=1 for i in xrange(1,n+1): ...
26.27027
50
0.407407
972
1
0
0
0
0
0
0
157
0.161523
1a083cf15885b049f7b7a3ad09fa1e14dd77a3b3
8,470
py
Python
discord-status.py
byemc/discord-rhythmbox-plugin
46e855bd27b2bfe9d7a202135bcf228aff402fa8
[ "MIT" ]
1
2021-11-23T05:37:25.000Z
2021-11-23T05:37:25.000Z
discord-status.py
byemc/discord-rhythmbox-plugin
46e855bd27b2bfe9d7a202135bcf228aff402fa8
[ "MIT" ]
null
null
null
discord-status.py
byemc/discord-rhythmbox-plugin
46e855bd27b2bfe9d7a202135bcf228aff402fa8
[ "MIT" ]
null
null
null
import gi import time import os import json gi.require_version('Notify', '0.7') gi.require_version('Gtk', '3.0') from gi.repository import Notify, Gtk from gi.repository import Gio, GLib, GObject, Peas from gi.repository import RB from pypresence import Presence from status_prefs import discord_status_prefs class dis...
34.430894
166
0.641086
8,160
0.963173
0
0
0
0
0
0
1,167
0.137748