hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
972e6ef1177cf0a1e094edef3e80f196d3cc95ed
735
py
Python
lib/word.py
mohammad-yazdani/nevis
7e2e0ecac48bc28292c5c05362c1b473784e4bd8
[ "MIT" ]
null
null
null
lib/word.py
mohammad-yazdani/nevis
7e2e0ecac48bc28292c5c05362c1b473784e4bd8
[ "MIT" ]
4
2021-04-06T18:27:00.000Z
2022-02-10T03:16:04.000Z
lib/word.py
mohammad-yazdani/nevis
7e2e0ecac48bc28292c5c05362c1b473784e4bd8
[ "MIT" ]
null
null
null
class Word(dict): def __init__(self, value, timestamp, tags=None): self.value = value self.timestamp = timestamp self._tags = tags if self._tags is None: self._tags = dict() super().__init__(value=self.value, timestamp=self.timestamp, tags=self._tags) def ad...
30.625
85
0.587755
6db497a2fbc38128ef9ce0083214aada6f727fa0
1,398
py
Python
example_scripts/ring_detection_visualisation.py
FriederikeBiermann/pikachu
8eb5a71a34c70adde4c14ee3717e0b53f27d09a7
[ "MIT" ]
10
2022-01-06T08:09:31.000Z
2022-03-29T20:33:22.000Z
example_scripts/ring_detection_visualisation.py
FriederikeBiermann/pikachu
8eb5a71a34c70adde4c14ee3717e0b53f27d09a7
[ "MIT" ]
null
null
null
example_scripts/ring_detection_visualisation.py
FriederikeBiermann/pikachu
8eb5a71a34c70adde4c14ee3717e0b53f27d09a7
[ "MIT" ]
2
2022-01-24T08:54:15.000Z
2022-03-10T14:38:01.000Z
from pikachu.general import highlight_subsmiles_multiple, read_smiles daptomycin = r"CCCCCCCCCC(=O)N[C@@H](CC1=CNC2=CC=CC=C21)C(=O)N[C@H](CC(=O)N)C(=O)N[C@@H](CC(=O)O)C(=O)N[C@H]3[C@H](OC(=O)[C@@H](NC(=O)[C@@H](NC(=O)[C@H](NC(=O)CNC(=O)[C@@H](NC(=O)[C@H](NC(=O)[C@@H](NC(=O)[C@@H](NC(=O)CNC3=O)CCCN)CC(=O)O)C)CC(=O)O)CO...
99.857143
300
0.671674
49cc2332ff4753d2cc84246268ca8ff8389d51db
4,858
py
Python
qhub/utils.py
brl0/qhub
5e5eb454e1889d303d0a52e599bd853113b4b04d
[ "BSD-3-Clause" ]
1
2020-12-19T18:29:58.000Z
2020-12-19T18:29:58.000Z
qhub/utils.py
laisbsc/qhub
bf7bfee14868f65dcc3ff1b8e818de7b5b5991e4
[ "BSD-3-Clause" ]
null
null
null
qhub/utils.py
laisbsc/qhub
bf7bfee14868f65dcc3ff1b8e818de7b5b5991e4
[ "BSD-3-Clause" ]
null
null
null
import subprocess import sys import time import os import re import contextlib from .version import __version__ DO_ENV_DOCS = ( "https://docs.qhub.dev/en/latest/source/02_get_started/02_setup.html#digital-ocean" ) AWS_ENV_DOCS = "https://docs.qhub.dev/en/latest/source/02_get_started/02_setup.html#amazon-web-servi...
35.202899
112
0.619597
295c0a18b4aa9786136e3c964c1d1189bceac4f3
46,446
py
Python
python_modules/dagster/dagster/core/execution/plan/plan.py
elsenorbw/dagster
b38822d7463812624dab0b2dae7c62e2a8d59828
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/execution/plan/plan.py
elsenorbw/dagster
b38822d7463812624dab0b2dae7c62e2a8d59828
[ "Apache-2.0" ]
1
2021-06-21T18:30:02.000Z
2021-06-25T21:18:39.000Z
python_modules/dagster/dagster/core/execution/plan/plan.py
elsenorbw/dagster
b38822d7463812624dab0b2dae7c62e2a8d59828
[ "Apache-2.0" ]
null
null
null
from collections import OrderedDict, defaultdict from typing import ( TYPE_CHECKING, Callable, Dict, FrozenSet, List, NamedTuple, Optional, Set, Union, cast, ) from dagster import check from dagster.core.definitions import ( GraphDefinition, IPipeline, InputDefinitio...
39.327688
119
0.645998
11f0fe4e657c0abc4979d28803145d3351f772f2
798
py
Python
node.py
intdxdt/rtree_py
85b639ddf1e4b8ceadb567175ea91e14cba6dea0
[ "MIT" ]
null
null
null
node.py
intdxdt/rtree_py
85b639ddf1e4b8ceadb567175ea91e14cba6dea0
[ "MIT" ]
null
null
null
node.py
intdxdt/rtree_py
85b639ddf1e4b8ceadb567175ea91e14cba6dea0
[ "MIT" ]
null
null
null
__author__ = 'titus' from _mbr import empty class Node(dict): """ BST - Node """ def __init__(self, **kw): dict.__init__(self, kw) self.__dict__ = self if not self.has_key('leaf'): self.leaf = False if not self.has_key('children'): self.children = [] if not self.has_key('height'): self.height...
18.55814
39
0.676692
2a82e435ab1cd1569f10b55f31404af482edeb80
2,877
py
Python
game/data/scripts/quests/654_JourneytoaSettlement/__init__.py
TheDemonLife/Lineage2Server-Interlude
d23d145db533fd899d4064026e4bc7ee45c6624a
[ "Apache-2.0" ]
10
2019-07-27T13:12:11.000Z
2022-01-15T19:13:26.000Z
game/data/scripts/quests/654_JourneytoaSettlement/__init__.py
TheDemonLife/Lineage2Server-Interlude
d23d145db533fd899d4064026e4bc7ee45c6624a
[ "Apache-2.0" ]
1
2021-08-06T12:15:01.000Z
2021-08-09T10:18:47.000Z
game/data/scripts/quests/654_JourneytoaSettlement/__init__.py
TheDemonLife/Lineage2Server-Interlude
d23d145db533fd899d4064026e4bc7ee45c6624a
[ "Apache-2.0" ]
2
2020-02-20T23:02:26.000Z
2020-11-22T09:27:51.000Z
# By L2J_JP SANDMAN import sys from ru.catssoftware.gameserver.model.quest import State from ru.catssoftware.gameserver.model.quest import QuestState from ru.catssoftware.gameserver.model.quest.jython import QuestJython as JQuest qn = "654_JourneytoaSettlement" #NPC SPIRIT = 31453 #Nameless Spirit #TARGET T...
31.966667
158
0.642336
ef5d0046c50e7763b96be8b321eb062cea5795aa
996
py
Python
migrations/versions/e4dfaaa5815f_another_migration.py
JuneMuoti/One-Minute-Pitch
d23a521fa42d94ccd5da9a409feac57464912d1d
[ "MIT" ]
null
null
null
migrations/versions/e4dfaaa5815f_another_migration.py
JuneMuoti/One-Minute-Pitch
d23a521fa42d94ccd5da9a409feac57464912d1d
[ "MIT" ]
null
null
null
migrations/versions/e4dfaaa5815f_another_migration.py
JuneMuoti/One-Minute-Pitch
d23a521fa42d94ccd5da9a409feac57464912d1d
[ "MIT" ]
null
null
null
"""another migration Revision ID: e4dfaaa5815f Revises: 4852b802b6d8 Create Date: 2018-02-06 11:36:59.197791 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'e4dfaaa5815f' down_revision = '4852b802b6d8' branch_labels = None depends_on = None def upgrade(): ...
26.918919
66
0.678715
ea016a644a916d3bcd7724ff13660d2f2d130cae
20,614
py
Python
version.py
Cray-HPE/cms-meta-tools
fb2bd5d4d26970e055cdf0af4aad4b167f0753e4
[ "MIT" ]
1
2022-01-06T16:26:36.000Z
2022-01-06T16:26:36.000Z
version.py
Cray-HPE/cms-meta-tools
fb2bd5d4d26970e055cdf0af4aad4b167f0753e4
[ "MIT" ]
2
2021-11-19T18:02:56.000Z
2022-02-11T19:57:07.000Z
version.py
Cray-HPE/cms-meta-tools
fb2bd5d4d26970e055cdf0af4aad4b167f0753e4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # MIT License # # (C) Copyright 2021-2022 Hewlett Packard Enterprise Development LP # # 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 w...
38.530841
157
0.675997
8b59b6b2c3bea7817ab7aaf1ce557af28ea18f11
463
py
Python
feedbacks/urls.py
raul-jr3/ANON
a6bf4baca34b54878feaa74878f71810fce6f1fe
[ "MIT" ]
1
2019-09-10T19:00:13.000Z
2019-09-10T19:00:13.000Z
feedbacks/urls.py
raul-jr3/ANON
a6bf4baca34b54878feaa74878f71810fce6f1fe
[ "MIT" ]
null
null
null
feedbacks/urls.py
raul-jr3/ANON
a6bf4baca34b54878feaa74878f71810fce6f1fe
[ "MIT" ]
null
null
null
from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.user_private_page, name = 'private_page'), # url to post a new message url(r'^message/(?P<username>[-\w]+)/$', views.send_message, name = 'send_message'), # received and sent messages url(r'^received/(?P<userna...
35.615385
89
0.63067
3d14d58fce0a6aa176a7d4040ca190905a535a52
3,152
py
Python
auth/google.py
GregBrimble/boilerplate-web-service
1dff1bd3128a3a316585e6701f57276ef2d94849
[ "MIT" ]
null
null
null
auth/google.py
GregBrimble/boilerplate-web-service
1dff1bd3128a3a316585e6701f57276ef2d94849
[ "MIT" ]
null
null
null
auth/google.py
GregBrimble/boilerplate-web-service
1dff1bd3128a3a316585e6701f57276ef2d94849
[ "MIT" ]
null
null
null
import os from flask import abort, current_app, redirect, request, url_for from flask_dance.contrib.google import google, make_google_blueprint from oauthlib.oauth2.rfc6749.errors import InvalidClientIdError, TokenExpiredError import requests from auth.base import Protection class GoogleAuthentication(Protection): ...
38.91358
128
0.605013
f66316338d3a93b0e8920d8dd7659306a5af380d
3,555
py
Python
data_lake/management/commands/create_data_lake_stub_data.py
uktrade/fido
22256b8318ad26dfa4882dc62f64eec9fde2c4fd
[ "MIT" ]
3
2020-01-05T16:46:42.000Z
2021-08-02T08:08:39.000Z
data_lake/management/commands/create_data_lake_stub_data.py
uktrade/fido
22256b8318ad26dfa4882dc62f64eec9fde2c4fd
[ "MIT" ]
30
2019-11-28T15:16:35.000Z
2021-08-16T14:49:58.000Z
data_lake/management/commands/create_data_lake_stub_data.py
uktrade/fido
22256b8318ad26dfa4882dc62f64eec9fde2c4fd
[ "MIT" ]
null
null
null
from django.core.management.base import BaseCommand from chartofaccountDIT.models import ( CommercialCategory, FCOMapping, InterEntity, InterEntityL1, NaturalCode, ) class CommercialCategories: name = "Commercial Categories" def clear(self): CommercialCategory.objects.all().delet...
26.729323
79
0.589592
d4d69bdab6c7712e09c5e37fc5498a74777e5a8f
7,342
py
Python
admin/preprints/views.py
listinc/osf.io
b9a0357f3e9b6e905b732e750a16e9452c459d78
[ "Apache-2.0" ]
null
null
null
admin/preprints/views.py
listinc/osf.io
b9a0357f3e9b6e905b732e750a16e9452c459d78
[ "Apache-2.0" ]
null
null
null
admin/preprints/views.py
listinc/osf.io
b9a0357f3e9b6e905b732e750a16e9452c459d78
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals from django.views.generic import ListView, UpdateView, DeleteView from django.core.urlresolvers import reverse_lazy from django.contrib.auth.mixins import PermissionRequiredMixin from django.shortcuts import redirect from django.core.exceptions import PermissionDenied from osf....
38.846561
118
0.708799
ac46b059dd3c58bd74a812d171a95869fc14a6df
24,988
py
Python
electrum/storage.py
dmitrysonder/electrum
c4f3fbaca0cd88fa0f7769a162f1d01bc2e9d0e9
[ "MIT" ]
null
null
null
electrum/storage.py
dmitrysonder/electrum
c4f3fbaca0cd88fa0f7769a162f1d01bc2e9d0e9
[ "MIT" ]
5
2018-10-12T04:44:06.000Z
2018-10-12T04:58:10.000Z
electrum_btcc/storage.py
Aaahh/electrum-btcc
3cf0ee1803af9540334db21daa3817693994e9d0
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Electrum - lightweight Bitcoin client # Copyright (C) 2015 Thomas Voegtlin # # 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...
37.23994
136
0.571834
48665b6a3c7711d04f9311eda6be02671474bd41
603
py
Python
PlatformTVM/build/build.py
Shuo626/platform-tvm
9fef0f27a8a4a4bab01f068df9836d0cff36f20d
[ "MIT" ]
null
null
null
PlatformTVM/build/build.py
Shuo626/platform-tvm
9fef0f27a8a4a4bab01f068df9836d0cff36f20d
[ "MIT" ]
null
null
null
PlatformTVM/build/build.py
Shuo626/platform-tvm
9fef0f27a8a4a4bab01f068df9836d0cff36f20d
[ "MIT" ]
null
null
null
import tvm from tvm import relay supported_devices = ['local', 'android'] def build(device: str, target: str, ir_mod: tvm.IRModule, params, opt_level: int): if device not in supported_devices: raise TypeError(f'Device {device} is not supported now.') if device == 'local': target_host = 'llv...
25.125
88
0.666667
4328d391a39571c075d779c60ee6ec33393c570d
71,822
py
Python
ants.py
dukie/Google-AI-Challenge
7a770ea9aff80c14615529678e1c63e4539ac56d
[ "MIT" ]
1
2016-05-08T07:31:38.000Z
2016-05-08T07:31:38.000Z
ants.py
dukie/Google-AI-Challenge
7a770ea9aff80c14615529678e1c63e4539ac56d
[ "MIT" ]
null
null
null
ants.py
dukie/Google-AI-Challenge
7a770ea9aff80c14615529678e1c63e4539ac56d
[ "MIT" ]
null
null
null
#!/usr/bin/env python from random import randrange, choice, shuffle, randint, seed, random from math import sqrt from collections import deque, defaultdict from fractions import Fraction import operator import string from game import Game from copy import deepcopy try: from sys import maxint except ImportError: ...
39.419319
124
0.542202
8cfcdea7ecc06cb21c043f742245176c3aa8b8c8
1,073
py
Python
setup.py
vitkyrka/opengrokfs
72b8075572f5866683fddb2e8bfac1921ff12147
[ "MIT" ]
null
null
null
setup.py
vitkyrka/opengrokfs
72b8075572f5866683fddb2e8bfac1921ff12147
[ "MIT" ]
1
2018-07-09T14:49:46.000Z
2018-07-09T14:49:46.000Z
setup.py
rabinv/opengrokfs
72b8075572f5866683fddb2e8bfac1921ff12147
[ "MIT" ]
1
2018-08-06T15:43:18.000Z
2018-08-06T15:43:18.000Z
from setuptools import setup def readme(): with open('README.rst') as f: return f.read() setup( name='opengrokfs', description='OpenGrok FUSE filesystem and tools', long_description=readme(), license='MIT', url='https://github.com/rabinv/opengrokfs', author='Rabin Vincent', a...
24.953488
54
0.564772
23a322bbb7ba5c0791f5bf0775d5375f387290e3
2,946
py
Python
modules/dbnd/test_dbnd/api/test_query_params.py
busunkim96/dbnd
0191fdcd4c4fbd35006f1026d1a55b2abab9097b
[ "Apache-2.0" ]
224
2020-01-02T10:46:37.000Z
2022-03-02T13:54:08.000Z
modules/dbnd/test_dbnd/api/test_query_params.py
busunkim96/dbnd
0191fdcd4c4fbd35006f1026d1a55b2abab9097b
[ "Apache-2.0" ]
16
2020-03-11T09:37:58.000Z
2022-01-26T10:22:08.000Z
modules/dbnd/test_dbnd/api/test_query_params.py
busunkim96/dbnd
0191fdcd4c4fbd35006f1026d1a55b2abab9097b
[ "Apache-2.0" ]
24
2020-03-24T13:53:50.000Z
2022-03-22T11:55:18.000Z
from collections import OrderedDict import pytest from dbnd.api.query_params import ( build_query_api_params, create_filter_builder, create_filters_builder, ) @pytest.mark.parametrize( "kwargs, expected", [ (dict(), ""), (dict(filters=[]), ""), (dict(sort="name"), "sort=n...
31.010526
113
0.486083
1af5fecee232389179d485a656d0fc5a83b07a65
1,726
py
Python
codes/pub-sub/sub/app.py
donnieprakoso/copilot.rocks
a3689dec27c13ddaa9cedee3bcf30449e33c06ea
[ "Apache-2.0" ]
5
2021-11-03T20:50:31.000Z
2022-02-01T04:16:10.000Z
codes/pub-sub/sub/app.py
donnieprakoso/copilot.rocks
a3689dec27c13ddaa9cedee3bcf30449e33c06ea
[ "Apache-2.0" ]
null
null
null
codes/pub-sub/sub/app.py
donnieprakoso/copilot.rocks
a3689dec27c13ddaa9cedee3bcf30449e33c06ea
[ "Apache-2.0" ]
null
null
null
import logging import boto3 import os from botocore.exceptions import ClientError import json AWS_REGION = 'ap-southeast-1' COPILOT_QUEUE_URI = os.getenv("COPILOT_QUEUE_URI") logger = logging.getLogger() logging.basicConfig(level=logging.INFO, format='%(asctime)s: %(levelname)s: %(message)s') sqs_...
32.566038
115
0.637891
fef4c73a2eb0126549fa10aa9a63ead3bf2aa491
20,550
py
Python
test/unit/backends/make/test_syntax.py
Acidburn0zzz/bfg9000
5f9ed9940b87f23abe55cde745c46e7e2bc6eaee
[ "BSD-3-Clause" ]
1
2020-05-15T07:24:43.000Z
2020-05-15T07:24:43.000Z
test/unit/backends/make/test_syntax.py
Acidburn0zzz/bfg9000
5f9ed9940b87f23abe55cde745c46e7e2bc6eaee
[ "BSD-3-Clause" ]
null
null
null
test/unit/backends/make/test_syntax.py
Acidburn0zzz/bfg9000
5f9ed9940b87f23abe55cde745c46e7e2bc6eaee
[ "BSD-3-Clause" ]
null
null
null
from io import StringIO from ... import * from bfg9000 import path from bfg9000 import safe_str from bfg9000.backends.make.syntax import * from bfg9000.file_types import File from bfg9000.platforms.host import platform_info esc_colon = ':' if platform_info().family == 'windows' else '\\:' def quoted(s): return...
37.5
79
0.567786
c0f6fc47db53b8bb6f340327285cff5a8004febb
4,695
py
Python
cellpack/mgl_tools/DejaVu/jitter.py
mesoscope/cellpack
ec6b736fc706c1fae16392befa814b5337a3a692
[ "MIT" ]
null
null
null
cellpack/mgl_tools/DejaVu/jitter.py
mesoscope/cellpack
ec6b736fc706c1fae16392befa814b5337a3a692
[ "MIT" ]
21
2021-10-02T00:07:05.000Z
2022-03-30T00:02:10.000Z
cellpack/mgl_tools/DejaVu/jitter.py
mesoscope/cellpack
ec6b736fc706c1fae16392befa814b5337a3a692
[ "MIT" ]
null
null
null
## Automatically adapted for numpy.oldnumeric Jul 23, 2007 by ############################################################################# # # Author: Michel F. SANNER # # Copyright: M. Sanner TSRI 2000 # ############################################################################# # # $Header: /opt/cvs/python/packa...
25.241935
102
0.462407
8d8159792e40c6db661e536b328de1ff8b96c921
1,020
py
Python
ttax/__init__.py
johanDDC/ttax
eae0a307cf5099e3f97540231b4428291a6766ec
[ "MIT" ]
5
2021-02-20T20:26:33.000Z
2021-07-08T11:18:44.000Z
ttax/__init__.py
johanDDC/ttax
eae0a307cf5099e3f97540231b4428291a6766ec
[ "MIT" ]
7
2020-12-05T23:34:30.000Z
2021-08-25T09:42:50.000Z
ttax/__init__.py
johanDDC/ttax
eae0a307cf5099e3f97540231b4428291a6766ec
[ "MIT" ]
2
2021-07-01T11:08:52.000Z
2021-08-22T09:59:10.000Z
from ttax.base_class import TTBase from ttax.base_class import TT from ttax.base_class import TTMatrix from ttax.ops import full from ttax.ops import multiply from ttax.ops import flat_inner from ttax.ops import matmul from ttax.ops import add from ttax.ops import tt_vmap from ttax.ops import are_shapes_equal from tta...
27.567568
48
0.85
ca2b53e8bda5a86cb12358fbe9c7d5762d001782
283
py
Python
examples/system/miniscreen/miniscreen_exit_cancel_button.py
pi-top/pi-top-Python-SDK
6c83cc5f612d77f86f8d391c7f2924a28f7b1232
[ "Apache-2.0" ]
28
2020-11-24T08:02:58.000Z
2022-02-27T18:37:33.000Z
examples/system/miniscreen/miniscreen_exit_cancel_button.py
pi-top/pi-top-Python-SDK
6c83cc5f612d77f86f8d391c7f2924a28f7b1232
[ "Apache-2.0" ]
263
2020-11-10T14:35:10.000Z
2022-03-31T12:35:13.000Z
examples/system/miniscreen/miniscreen_exit_cancel_button.py
pi-top/pi-top-Python-SDK
6c83cc5f612d77f86f8d391c7f2924a28f7b1232
[ "Apache-2.0" ]
1
2022-01-31T22:48:35.000Z
2022-01-31T22:48:35.000Z
from time import sleep from pitop import Pitop pitop = Pitop() miniscreen = pitop.miniscreen miniscreen.display_multiline_text("Press cancel to exit!", font_size=22) while not miniscreen.cancel_button.is_pressed: sleep(0.1) miniscreen.display_multiline_text("Bye!") sleep(2)
20.214286
72
0.787986
76ef6a2ceab2d4614f25a09065314f1e1d07490b
3,731
py
Python
contrib/macdeploy/custom_dsstore.py
OpenBullet-Coin/OpenBullet
4887371728d143ab50c19c59ddcae76204eca112
[ "MIT" ]
2
2021-04-25T12:13:06.000Z
2021-07-27T16:09:45.000Z
contrib/macdeploy/custom_dsstore.py
OpenBullet-Coin/OpenBullet
4887371728d143ab50c19c59ddcae76204eca112
[ "MIT" ]
null
null
null
contrib/macdeploy/custom_dsstore.py
OpenBullet-Coin/OpenBullet
4887371728d143ab50c19c59ddcae76204eca112
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2013-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. import biplist from ds_store import DSStore from mac_alias import Alias import sys output_file = sys.argv...
62.183333
1,817
0.725811
cfd8090aa6ecc247fa94a9b6c9dde604efa2a683
860
py
Python
src/probnum/quad/solvers/policies/_policy.py
fxbriol/probnum
7e0e94cf9146aaa2b730b02c6d75a022cd629b5c
[ "MIT" ]
null
null
null
src/probnum/quad/solvers/policies/_policy.py
fxbriol/probnum
7e0e94cf9146aaa2b730b02c6d75a022cd629b5c
[ "MIT" ]
null
null
null
src/probnum/quad/solvers/policies/_policy.py
fxbriol/probnum
7e0e94cf9146aaa2b730b02c6d75a022cd629b5c
[ "MIT" ]
null
null
null
"""Abstract base class for BQ policies.""" import abc import numpy as np from probnum.quad.solvers.bq_state import BQState # pylint: disable=too-few-public-methods, fixme class Policy(abc.ABC): """An abstract class for a policy that acquires nodes for Bayesian quadrature. Parameters ---------- ba...
23.243243
83
0.611628
b8532649507d07c2e4804868848e4438929a9c89
6,509
py
Python
neutron/agent/l3/dvr_router.py
bradleyjones/neutron
d283e23d7658162f911240bf6a4e707e3709093a
[ "Apache-2.0" ]
null
null
null
neutron/agent/l3/dvr_router.py
bradleyjones/neutron
d283e23d7658162f911240bf6a4e707e3709093a
[ "Apache-2.0" ]
null
null
null
neutron/agent/l3/dvr_router.py
bradleyjones/neutron
d283e23d7658162f911240bf6a4e707e3709093a
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2015 Openstack Foundation # # 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 ...
46.492857
78
0.658012
124e200558537f6e61b93bf7c4a84e3a109d492e
7,316
py
Python
stylegan/miscellaneous/write_bash_script_in_batch.py
VITA-Group/BlackBoxGANCollapse
e52afab99e8b2e08a92aab86d84d53db77aa8c75
[ "MIT" ]
3
2021-08-04T09:08:05.000Z
2022-01-26T07:32:41.000Z
stylegan/miscellaneous/write_bash_script_in_batch.py
VITA-Group/BlackBoxGANCollapse
e52afab99e8b2e08a92aab86d84d53db77aa8c75
[ "MIT" ]
null
null
null
stylegan/miscellaneous/write_bash_script_in_batch.py
VITA-Group/BlackBoxGANCollapse
e52afab99e8b2e08a92aab86d84d53db77aa8c75
[ "MIT" ]
1
2021-12-09T06:37:22.000Z
2021-12-09T06:37:22.000Z
import os node_gpu_map = {'5m':'3','5n':'0123','5x':'023','72':'1','76':'2'} #{'70':'34','72':'134','74':'134','76':'24','77':'13'} node_gpu_lst = [] for k,v in node_gpu_map.items(): for gpu in v: node_gpu_lst.append((k,int(gpu))) print(node_gpu_lst) for i in range(10): with open('bash_run_{}_{}.sh'.f...
67.740741
181
0.620694
b40c229a64ed32dd0b706bf75cdefa9a4b10414b
6,263
py
Python
nipy/labs/bindings/tests/test_numpy.py
neurospin/nipy
cc54600a0dca1e003ad393bc05c46f91eef30a68
[ "BSD-3-Clause" ]
1
2016-03-08T15:01:06.000Z
2016-03-08T15:01:06.000Z
nipy/labs/bindings/tests/test_numpy.py
neurospin/nipy
cc54600a0dca1e003ad393bc05c46f91eef30a68
[ "BSD-3-Clause" ]
null
null
null
nipy/labs/bindings/tests/test_numpy.py
neurospin/nipy
cc54600a0dca1e003ad393bc05c46f91eef30a68
[ "BSD-3-Clause" ]
null
null
null
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: # Test numpy bindings import numpy as np from ....testing import * from .. import (c_types, fff_type, npy_type, copy_vector, pass_vector, pass_vector_via_iterator) MAX_TEST_SIZE = 30 de...
26.315126
73
0.653361
1b0277921b33e536b63b74e8343fe45b47d7f922
11,580
py
Python
src/unicon/plugins/fxos/statemachine.py
nielsvanhooy/unicon.plugins
3416fd8223f070cbb67a2cbe604e3c5d13584318
[ "Apache-2.0" ]
18
2019-11-23T23:14:53.000Z
2022-01-10T01:17:08.000Z
src/unicon/plugins/fxos/statemachine.py
nielsvanhooy/unicon.plugins
3416fd8223f070cbb67a2cbe604e3c5d13584318
[ "Apache-2.0" ]
12
2020-11-09T20:39:25.000Z
2022-03-22T12:46:59.000Z
src/unicon/plugins/fxos/statemachine.py
nielsvanhooy/unicon.plugins
3416fd8223f070cbb67a2cbe604e3c5d13584318
[ "Apache-2.0" ]
32
2020-02-12T15:42:22.000Z
2022-03-15T16:42:10.000Z
""" State machine for FXOS """ __author__ = "dwapstra" import re from unicon.statemachine import State, Path, StateMachine from unicon.eal.dialogs import Dialog, Statement from unicon.core.errors import StateMachineError from unicon.utils import AttributeDict from unicon.plugins.generic.statements import GenericSta...
40.208333
118
0.673748
815ea99c99961447c09e55d70fea0d256fcc8ed2
425
py
Python
raw_tiles/__init__.py
csommelet/raw_tiles
d4d8b246e2e8fe44203aad1f5421e479cd05a30c
[ "MIT" ]
11
2016-10-06T19:52:12.000Z
2021-03-03T21:12:00.000Z
raw_tiles/__init__.py
csommelet/raw_tiles
d4d8b246e2e8fe44203aad1f5421e479cd05a30c
[ "MIT" ]
12
2017-10-03T14:41:28.000Z
2019-03-04T10:21:20.000Z
raw_tiles/__init__.py
csommelet/raw_tiles
d4d8b246e2e8fe44203aad1f5421e479cd05a30c
[ "MIT" ]
5
2017-10-10T16:58:51.000Z
2020-03-18T15:57:51.000Z
from collections import namedtuple # represents a particular source location, eg data from a postgresql table SourceLocation = namedtuple('SourceLocation', 'name records') # contains a name associated with data that has been formatted FormattedData = namedtuple('FormattedData', 'name data') # Container for a partic...
35.416667
74
0.795294
406dc9e3a7e4cde5c2cdad72ab956e393846b41d
578
py
Python
Fair-Student-Funding/block-nested-loop/src/scripts/grepids.py
Big-Data-Project-Co/discover-null-and-outliers
ef608f24b01febe5ff727f550f3809b2f663e63a
[ "MIT" ]
null
null
null
Fair-Student-Funding/block-nested-loop/src/scripts/grepids.py
Big-Data-Project-Co/discover-null-and-outliers
ef608f24b01febe5ff727f550f3809b2f663e63a
[ "MIT" ]
null
null
null
Fair-Student-Funding/block-nested-loop/src/scripts/grepids.py
Big-Data-Project-Co/discover-null-and-outliers
ef608f24b01febe5ff727f550f3809b2f663e63a
[ "MIT" ]
2
2018-03-16T01:58:48.000Z
2018-09-12T20:47:06.000Z
import os,sys,csv #args 1:raw result 2:result sheet 3:dir name username = "xz1133" dirname = sys.argv[3] rawresult = sys.argv[1] topn = sys.argv[2] #obtain files from dumbo os.system("scp "+username+"@dumbo.hpc.nyu.edu:~/project/src/"+dirname+"/"+rawresult+" .") os.system("scp "+username+"@dumbo.hpc.nyu.edu:~/project...
26.272727
89
0.6609
8cbf74c0236bd1c2db2c14d2795bbd0ffdc6eb27
1,523
py
Python
zprev versions/zfirstderivs copy1.py
lefthandedroo/Cosmodels
c355d18021467cf92546cf2fc9cb1d1abe59b8d8
[ "MIT" ]
null
null
null
zprev versions/zfirstderivs copy1.py
lefthandedroo/Cosmodels
c355d18021467cf92546cf2fc9cb1d1abe59b8d8
[ "MIT" ]
null
null
null
zprev versions/zfirstderivs copy1.py
lefthandedroo/Cosmodels
c355d18021467cf92546cf2fc9cb1d1abe59b8d8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Feb 15 13:23:25 2018 @author: BallBlueMeercat """ # Eq of state parameters for known fluids: w_r = 1/3 # radiation w_m = 0.0 # matter w_de = -1.0 # cosmological constant (dark energy?) def zfirstderivs(v, t, gamma): """ Takes in: ...
29.288462
101
0.455023
eaafd5c69b6d14c9fa584b6f21f20e46f9582933
2,429
gyp
Python
binding.gyp
andrewcupper/sipster
31ca0ce37cfb7c6cf039fbc65537475bd740ff18
[ "MIT" ]
1
2020-05-28T02:05:05.000Z
2020-05-28T02:05:05.000Z
binding.gyp
andrewcupper/sipster
31ca0ce37cfb7c6cf039fbc65537475bd740ff18
[ "MIT" ]
null
null
null
binding.gyp
andrewcupper/sipster
31ca0ce37cfb7c6cf039fbc65537475bd740ff18
[ "MIT" ]
1
2021-09-07T13:26:49.000Z
2021-09-07T13:26:49.000Z
{ 'targets': [ { 'target_name': 'sipster', 'sources': [ 'src/binding.cc', 'src/SIPSTERAccount.cc', 'src/SIPSTERCall.cc', 'src/SIPSTERMedia.cc', 'src/SIPSTERTransport.cc', ], 'include_dirs': [ "src", "<!(node -e \"require('nan')\")" ...
28.916667
85
0.431453
4fc71941474dc0377ee14df1b9686231d653b3a2
22,092
py
Python
nipy/algorithms/clustering/imm.py
arokem/nipy
d6b2e862c65558bb5747c36140fd6261a7e1ecfe
[ "BSD-3-Clause" ]
1
2020-01-02T01:50:19.000Z
2020-01-02T01:50:19.000Z
nipy/algorithms/clustering/imm.py
fabianp/nipy
40e89f3ca7f34df05631623807993026134e6de3
[ "BSD-3-Clause" ]
1
2015-09-09T07:49:57.000Z
2015-09-25T01:50:40.000Z
nipy/algorithms/clustering/imm.py
fabianp/nipy
40e89f3ca7f34df05631623807993026134e6de3
[ "BSD-3-Clause" ]
null
null
null
""" Infinite mixture model : A generalization of Bayesian mixture models with an unspecified number of classes """ import numpy as np from bgmm import BGMM, detsh from scipy.special import gammaln def co_labelling(z, kmax=None, kmin=None): """ return a sparse co-labelling matrix given the label vector z ...
32.063861
78
0.548751
2c0626f13d98b5b313602f48de37ef3c1a71be7f
35,566
py
Python
tests/test_node_flood.py
tcaiazzi/rift-python
0d185547d6b37289e8a7e308cd1c4b78bc0fa3ef
[ "Apache-2.0" ]
null
null
null
tests/test_node_flood.py
tcaiazzi/rift-python
0d185547d6b37289e8a7e308cd1c4b78bc0fa3ef
[ "Apache-2.0" ]
null
null
null
tests/test_node_flood.py
tcaiazzi/rift-python
0d185547d6b37289e8a7e308cd1c4b78bc0fa3ef
[ "Apache-2.0" ]
null
null
null
import time import common.ttypes import constants import encoding.ttypes import node import packet_common import timer # pylint: disable=line-too-long MY_NAME = "name" MY_SYSTEM_ID = 999 MY_LEVEL = 9 SOUTH = constants.DIR_SOUTH NORTH = constants.DIR_NORTH EW = constants.DIR_EAST_WEST NODE = common.ttypes.TIETypeTy...
53.482707
176
0.603723
40a41075e0405c1761db3a7904481317db36ffac
7,063
py
Python
password_security/models/res_users.py
juazisco/gestion_rifa
bce6b75f17cb5ab2df7e2f7dd5141fc85a1a5bfb
[ "MIT" ]
null
null
null
password_security/models/res_users.py
juazisco/gestion_rifa
bce6b75f17cb5ab2df7e2f7dd5141fc85a1a5bfb
[ "MIT" ]
null
null
null
password_security/models/res_users.py
juazisco/gestion_rifa
bce6b75f17cb5ab2df7e2f7dd5141fc85a1a5bfb
[ "MIT" ]
null
null
null
# Copyright 2016 LasLabs Inc. # Copyright 2017 Kaushal Prajapati <kbprajapati@live.com>. # Copyright 2018 Modoolar <info@modoolar.com>. # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). import re from datetime import datetime, timedelta from odoo import api, fields, models, _ from ..exceptions im...
35.671717
107
0.592383
002a8133f4eb3b0b9e3f6b11f175918f9911093f
87
py
Python
task1/__init__.py
xiwang0818/Tracking_and_Detection_in_Computer_Vision_project1
87325419d02194f2e67053c969f37897ff47208f
[ "MIT" ]
null
null
null
task1/__init__.py
xiwang0818/Tracking_and_Detection_in_Computer_Vision_project1
87325419d02194f2e67053c969f37897ff47208f
[ "MIT" ]
null
null
null
task1/__init__.py
xiwang0818/Tracking_and_Detection_in_Computer_Vision_project1
87325419d02194f2e67053c969f37897ff47208f
[ "MIT" ]
null
null
null
from task1.plot import Drawer from task1.pnp import get_obpts, get_cam_matrix, solvepnp
43.5
57
0.850575
e92a1ac2e70ae5248dd574ed83e09a9a0b081241
4,150
py
Python
userbot/clients/startup.py
PXZUpLUK/DivArvian-Userbot
ca1d3353602ce50cbfeea7b702a5cf45e5827cea
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/clients/startup.py
PXZUpLUK/DivArvian-Userbot
ca1d3353602ce50cbfeea7b702a5cf45e5827cea
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/clients/startup.py
PXZUpLUK/DivArvian-Userbot
ca1d3353602ce50cbfeea7b702a5cf45e5827cea
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
# DivArvian - UserBot # Copyright (c) 2022 DivArvian-Userbot # Credits: @PXZUpLUK || https://github.com/PXZUpLUK # # This file is a part of < https://github.com/PXZUpLUK/DivArvian-Userbot/ > # t.me/LieShooter_TG & t.me/LieShooter_GC import sys import telethon.utils from userbot import BOT_VER as version from userbot...
30.514706
195
0.57012
dfbf3392a4d4fb22ec8af9a065c5d68ede606afd
1,358
py
Python
oras/content/readerat.py
vsoch/oras-python
45374c6187b98f171f85dffd75a31877b6ec12ce
[ "MIT" ]
1
2021-12-06T08:54:51.000Z
2021-12-06T08:54:51.000Z
oras/content/readerat.py
vsoch/oras-python
45374c6187b98f171f85dffd75a31877b6ec12ce
[ "MIT" ]
1
2021-11-28T18:59:21.000Z
2021-11-28T18:59:21.000Z
oras/content/readerat.py
vsoch/oras-python
45374c6187b98f171f85dffd75a31877b6ec12ce
[ "MIT" ]
null
null
null
__author__ = "Vanessa Sochat" __copyright__ = "Copyright 2021, Vanessa Sochat" __license__ = "MPL 2.0" from oras.logger import logger import oras.utils as utils import oras.defaults as defaults import opencontainers.image.v1.annotations as annotations import opencontainers.image.v1.descriptor as descriptor from dat...
18.861111
127
0.762887
7c4cd7ca03e0faa2ba9bd357ebb4e01824cc20cd
9,243
py
Python
palette_shifter/shift_palette.py
EttyKitty/OpenXcom_Tools
19ea1661c8f20f24af9d7ed7ecf9afa6d166f622
[ "MIT" ]
null
null
null
palette_shifter/shift_palette.py
EttyKitty/OpenXcom_Tools
19ea1661c8f20f24af9d7ed7ecf9afa6d166f622
[ "MIT" ]
null
null
null
palette_shifter/shift_palette.py
EttyKitty/OpenXcom_Tools
19ea1661c8f20f24af9d7ed7ecf9afa6d166f622
[ "MIT" ]
null
null
null
# https://pillow.readthedocs.io/en/stable/reference/Image.html import os import sys import logging from PIL import Image try: def file_validation(): global fileName, filePath, img, imgWidth, imgHeight while True: if not os.path.exists("1_material"): os.makedirs("1_mater...
45.53202
159
0.513361
eb65ed13e184a873d3e751759df9c1c45ad407b0
388
py
Python
djangae/contrib/gauth/validators.py
ikedaosushi/djangae
5fd2f8d70699fbbf155740effe42a36b205a6540
[ "BSD-3-Clause" ]
null
null
null
djangae/contrib/gauth/validators.py
ikedaosushi/djangae
5fd2f8d70699fbbf155740effe42a36b205a6540
[ "BSD-3-Clause" ]
null
null
null
djangae/contrib/gauth/validators.py
ikedaosushi/djangae
5fd2f8d70699fbbf155740effe42a36b205a6540
[ "BSD-3-Clause" ]
null
null
null
# STANDARD LIB import re # THIRD PARTY from django.core.exceptions import ValidationError from django.utils.translation import ugettext_lazy as _ def validate_google_user_id(value): """ Validates that the given value is either empty, None, or 21 digits. """ if value and not re.match(r'^\d{21}$', value): ...
29.846154
79
0.731959
599c5001206f10de55541674861ba0218fbe42ac
1,036
py
Python
imparPar.py
vinicius56789/JogosPython
947cf563b75bd780a51569c2c8d0871e2afa1b45
[ "CC0-1.0" ]
null
null
null
imparPar.py
vinicius56789/JogosPython
947cf563b75bd780a51569c2c8d0871e2afa1b45
[ "CC0-1.0" ]
null
null
null
imparPar.py
vinicius56789/JogosPython
947cf563b75bd780a51569c2c8d0871e2afa1b45
[ "CC0-1.0" ]
null
null
null
from random import randint from time import sleep print('ÍMPAR OU PAR!!') print('=' * 35) print('''Escolha: Ímpar Par''') print('=' * 35) computador = randint(0,10) jogador = input('Ímpar ou par? ') print('=' * 35) if jogador != 'impar' and jogador != 'par': print('Jogada inválida!') ...
21.142857
44
0.544402
c7b0999b3881296142e0761848719db4ba2abf91
490
py
Python
sdg/schemas/SchemaOutputBase.py
Defra-Data-Science-Centre-of-Excellence/sdg-build
716a7597e5cb7de248915b21fa1a9e4a5cd1e0e0
[ "MIT" ]
7
2019-02-25T03:50:17.000Z
2022-03-31T12:58:42.000Z
sdg/schemas/SchemaOutputBase.py
Defra-Data-Science-Centre-of-Excellence/sdg-build
716a7597e5cb7de248915b21fa1a9e4a5cd1e0e0
[ "MIT" ]
185
2019-01-14T15:35:53.000Z
2022-03-28T19:16:37.000Z
sdg/schemas/SchemaOutputBase.py
Defra-Data-Science-Centre-of-Excellence/sdg-build
716a7597e5cb7de248915b21fa1a9e4a5cd1e0e0
[ "MIT" ]
18
2019-01-14T11:20:05.000Z
2022-02-08T14:10:17.000Z
# -*- coding: utf-8 -*- class SchemaOutputBase: """A base class for outputing a schema to a file.""" def __init__(self, schema): """Create a new SchemaOutputBase object Parameters --------- schema : SchemaInputBase SchemaInputBase (or subclass) to output "...
22.272727
72
0.591837
846470995345a97c048d8ab84d5812a18308a46d
643
py
Python
orm2.0/app01/migrations/0001_initial.py
luyl1017713252/python
3b30cffa85b625e512415fa882b4bc7708a5e0b8
[ "MulanPSL-1.0" ]
null
null
null
orm2.0/app01/migrations/0001_initial.py
luyl1017713252/python
3b30cffa85b625e512415fa882b4bc7708a5e0b8
[ "MulanPSL-1.0" ]
null
null
null
orm2.0/app01/migrations/0001_initial.py
luyl1017713252/python
3b30cffa85b625e512415fa882b4bc7708a5e0b8
[ "MulanPSL-1.0" ]
null
null
null
# Generated by Django 3.1.7 on 2021-03-18 08:03 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Book', fields=[ ('id', models.AutoField(pri...
25.72
79
0.556765
97b7f0b840e626dfd014c311ae1cfcbfcc7af868
1,020
py
Python
scraper/storage_spiders/thegioisovn.py
chongiadung/choinho
d2a216fe7a5064d73cdee3e928a7beef7f511fd1
[ "MIT" ]
null
null
null
scraper/storage_spiders/thegioisovn.py
chongiadung/choinho
d2a216fe7a5064d73cdee3e928a7beef7f511fd1
[ "MIT" ]
10
2020-02-11T23:34:28.000Z
2022-03-11T23:16:12.000Z
scraper/storage_spiders/thegioisovn.py
chongiadung/choinho
d2a216fe7a5064d73cdee3e928a7beef7f511fd1
[ "MIT" ]
3
2018-08-05T14:54:25.000Z
2021-06-07T01:49:59.000Z
# Auto generated by generator.py. Delete this line if you make modification. from scrapy.spiders import Rule from scrapy.linkextractors import LinkExtractor XPATH = { 'name' : "//div[@class='bgheading']/div[@class='wrap-content']/aside[@class='righttext']/h1", 'price' : "//div[@class='bgheading']/div[@class='w...
37.777778
122
0.630392
86f449ff867d3678194d1097a8acf8f387cc1a40
6,052
py
Python
test/test_sanitize.py
KrishnaswamyLab/scpreprocess
926d7be1282d7218a9b61ad555f74489cf3927be
[ "MIT" ]
null
null
null
test/test_sanitize.py
KrishnaswamyLab/scpreprocess
926d7be1282d7218a9b61ad555f74489cf3927be
[ "MIT" ]
null
null
null
test/test_sanitize.py
KrishnaswamyLab/scpreprocess
926d7be1282d7218a9b61ad555f74489cf3927be
[ "MIT" ]
null
null
null
from tools import data from tools import matrix from tools import utils import numpy as np import pandas as pd import scprep import warnings def test_check_numeric_copy(): X = data.load_10X() matrix.test_all_matrix_types( X, utils.assert_transform_unchanged, transform=scprep.sanitize....
36.02381
87
0.619795
bb03feea252e6f363cc4a10a033bbe9465a3ca14
1,351
py
Python
handlers/handler_lib.py
fritschy/zebot
c6dd7eee066f46d13969b2c73f363343e02ac0fb
[ "MIT" ]
null
null
null
handlers/handler_lib.py
fritschy/zebot
c6dd7eee066f46d13969b2c73f363343e02ac0fb
[ "MIT" ]
null
null
null
handlers/handler_lib.py
fritschy/zebot
c6dd7eee066f46d13969b2c73f363343e02ac0fb
[ "MIT" ]
null
null
null
import json import re import sys __errors = [] def handler_exit(status, **kwargs): """exit a handler wit the given status and some arguments in kwargs: lines=[str()] -mandatory box=0|1 wrap_single_lines=0|1 wrap=0|1 title=str() """ if kwargs.get("errors") is None and len(__errors) !=...
24.563636
106
0.624722
d8ad0c0304aca85b988acd1dedff3982f61d42a1
5,125
py
Python
docs/source/conf.py
shikiponn/optuna
a151fafc4d816d9ba7d6740adf8892a7832f83a9
[ "MIT" ]
1
2019-01-16T23:59:31.000Z
2019-01-16T23:59:31.000Z
docs/source/conf.py
shikiponn/optuna
a151fafc4d816d9ba7d6740adf8892a7832f83a9
[ "MIT" ]
null
null
null
docs/source/conf.py
shikiponn/optuna
a151fafc4d816d9ba7d6740adf8892a7832f83a9
[ "MIT" ]
1
2022-01-24T11:42:24.000Z
2022-01-24T11:42:24.000Z
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
29.97076
79
0.652683
f975639284a80c26d547529e52e2475d30adad5d
11,844
py
Python
nextdl/extractor/ceskatelevize.py
devenu85/nextdl
0b458f556e2e0be80cb94bd9a9b1405ad2e9182d
[ "MIT" ]
1
2021-12-19T13:55:20.000Z
2021-12-19T13:55:20.000Z
nextdl/extractor/ceskatelevize.py
devenu85/nextdl
0b458f556e2e0be80cb94bd9a9b1405ad2e9182d
[ "MIT" ]
null
null
null
nextdl/extractor/ceskatelevize.py
devenu85/nextdl
0b458f556e2e0be80cb94bd9a9b1405ad2e9182d
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import unicode_literals import re from ..compat import compat_urllib_parse_unquote, compat_urllib_parse_urlparse from ..utils import (USER_AGENTS, ExtractorError, float_or_none, sanitized_Request, unescapeHTML, update_url_query, urlencode_postd...
35.890909
177
0.465214
406dfb9dae2f5c1dace1e344ad68e06b870dc8f5
2,753
py
Python
lms_app/v1/serializers/loans_serializers.py
Etomovich/lms-backend
e586abc44a0e74ed28da7a77f6ef31230995c84b
[ "MIT" ]
null
null
null
lms_app/v1/serializers/loans_serializers.py
Etomovich/lms-backend
e586abc44a0e74ed28da7a77f6ef31230995c84b
[ "MIT" ]
1
2021-06-02T00:45:56.000Z
2021-06-02T00:45:56.000Z
lms_app/v1/serializers/loans_serializers.py
Etomovich/lms-backend
e586abc44a0e74ed28da7a77f6ef31230995c84b
[ "MIT" ]
null
null
null
from flask_restplus import Namespace, fields class LoansDataModel(object): """Represents the loans data transfer object.""" api = Namespace( 'loans', description='management of loans and officers.' ) ask_loan = api.model('Ask loan input data', { 'amount_requested': fields.String( ...
33.987654
76
0.573556
96adc02911bde040e84eed7f90e8fcfa6fa42de7
1,561
py
Python
scripts/create-debian-changelog.py
Sebrowsky/Mailpile
79ff1dd989a0994758fcaccd9154944a32020c46
[ "Apache-2.0" ]
2
2017-02-03T07:00:57.000Z
2020-12-18T01:07:34.000Z
scripts/create-debian-changelog.py
Sebrowsky/Mailpile
79ff1dd989a0994758fcaccd9154944a32020c46
[ "Apache-2.0" ]
null
null
null
scripts/create-debian-changelog.py
Sebrowsky/Mailpile
79ff1dd989a0994758fcaccd9154944a32020c46
[ "Apache-2.0" ]
1
2020-04-13T17:46:12.000Z
2020-04-13T17:46:12.000Z
#!/usr/bin/env python2 #This script builds a DCH changelog from the git commit log from subprocess import check_output, call from multiprocessing import Pool import os def getLogMessage(commitSHA): """Get the log message for a given commit hash""" output = check_output(["git","log","--format=%B","-n","1",commi...
41.078947
90
0.727739
c041363a34c928b6afa0ea8baeae06fea4c8cebb
18,981
py
Python
SMJobBlessUtil.py
peterlewis/AlDente
a138f406e4b6a584f47698a0dc93b0df581b481d
[ "Unlicense" ]
4,426
2020-02-16T09:54:01.000Z
2022-03-31T19:59:03.000Z
SMJobBlessUtil.py
alfonsocartes/AlDente
4c330cf0fad4520b4f6687558bfc2b7adf3b8002
[ "Unlicense" ]
431
2020-04-17T05:05:44.000Z
2022-03-31T21:57:14.000Z
_archive/scripts/SMJobBlessUtil.py
brightdigit/SpeculidKit
e9315953001422065996d4d406c5eee8a422936a
[ "MIT" ]
219
2020-05-28T09:11:22.000Z
2022-03-30T09:31:35.000Z
#! /usr/bin/python # # File: SMJobBlessUtil.py # # Contains: Tool for checking and correcting apps that use SMJobBless. # # Written by: DTS # # Copyright: Copyright (c) 2012 Apple Inc. All Rights Reserved. # # Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Inc. # ...
43.335616
181
0.665613
c06778cfab6987f04c342aae3572a875f45583f1
5,516
py
Python
taxdata/cps/create.py
jdebacker/taxdata
c32d401a10a6c8f6e889d87c6cc72fd4338017b2
[ "CC0-1.0" ]
null
null
null
taxdata/cps/create.py
jdebacker/taxdata
c32d401a10a6c8f6e889d87c6cc72fd4338017b2
[ "CC0-1.0" ]
null
null
null
taxdata/cps/create.py
jdebacker/taxdata
c32d401a10a6c8f6e889d87c6cc72fd4338017b2
[ "CC0-1.0" ]
null
null
null
import pandas as pd import pickle from . import validation from pathlib import Path from tqdm import tqdm from .pycps import pycps from .splitincome import split_income from .targeting import target from .impute import imputation from .benefits import distribute_benefits from .cps_meta import CPS_META_DATA, C_TAM_YEARS...
35.818182
79
0.636693
cde0d6f3c3a424c8c3cc038519173b2c7322d1f4
3,057
py
Python
text8.py
rosinality/adaptive-softmax-pytorch
2f02ca68d34f83867bea385c4be23a5392823f1e
[ "MIT" ]
79
2017-11-30T13:03:24.000Z
2022-01-04T05:21:21.000Z
text8.py
rosinality/adaptive-softmax-pytorch
2f02ca68d34f83867bea385c4be23a5392823f1e
[ "MIT" ]
2
2018-01-24T19:56:45.000Z
2020-07-27T09:01:52.000Z
text8.py
rosinality/adaptive-softmax-pytorch
2f02ca68d34f83867bea385c4be23a5392823f1e
[ "MIT" ]
21
2018-02-22T04:44:39.000Z
2021-11-30T18:41:39.000Z
import argparse import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F import numpy as np import pickle import tqdm from model import LanguageModel from adasoft import * parser = argparse.ArgumentParser(description='Benchmark for Adaptive Softmax') parser.add_argument('--mod...
25.057377
78
0.642787
6ee58091af4422899848f47633f4026e969bab90
1,426
py
Python
src/test/datascience/manualTestFiles/manualTestFile.py
popzxc/vscode-python
51cdc7e1a867057b27aa407b44a4e6c8d1f25812
[ "MIT" ]
null
null
null
src/test/datascience/manualTestFiles/manualTestFile.py
popzxc/vscode-python
51cdc7e1a867057b27aa407b44a4e6c8d1f25812
[ "MIT" ]
null
null
null
src/test/datascience/manualTestFiles/manualTestFile.py
popzxc/vscode-python
51cdc7e1a867057b27aa407b44a4e6c8d1f25812
[ "MIT" ]
1
2022-03-15T06:57:59.000Z
2022-03-15T06:57:59.000Z
# To run this file either conda or pip install the following: jupyter, numpy, matplotlib, pandas, tqdm, bokeh #%% Basic Imports import numpy as np import pandas as pd import matplotlib.pyplot as plt #%% Matplotlib Plot x = np.linspace(0, 20, 100) plt.plot(x, np.sin(x)) plt.show() #%% Bokeh Plot from bokeh.io import ...
24.586207
114
0.658485
b56886e98a63855c322bc269374ba0b5655d7ce9
17,849
py
Python
pyocd/core/memory_map.py
rgf97/pyOCD
e83830ce9bfa00a8e382ba4ff033257488dd7dc3
[ "Apache-2.0" ]
null
null
null
pyocd/core/memory_map.py
rgf97/pyOCD
e83830ce9bfa00a8e382ba4ff033257488dd7dc3
[ "Apache-2.0" ]
null
null
null
pyocd/core/memory_map.py
rgf97/pyOCD
e83830ce9bfa00a8e382ba4ff033257488dd7dc3
[ "Apache-2.0" ]
null
null
null
# pyOCD debugger # Copyright (c) 2015-2019 Arm Limited # SPDX-License-Identifier: Apache-2.0 # # 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...
37.419287
223
0.640372
cd913e1365c533cf7d82926599f94c2f2ab977c2
5,483
py
Python
tests/test_subgraphs.py
osynge/flowpipe
f916eba43d2217939f1be9fb46fa912a210ff328
[ "MIT" ]
139
2017-11-22T09:47:34.000Z
2022-03-09T11:39:20.000Z
tests/test_subgraphs.py
osynge/flowpipe
f916eba43d2217939f1be9fb46fa912a210ff328
[ "MIT" ]
132
2017-04-12T17:35:57.000Z
2022-02-05T11:05:30.000Z
tests/test_subgraphs.py
osynge/flowpipe
f916eba43d2217939f1be9fb46fa912a210ff328
[ "MIT" ]
20
2018-07-02T05:32:11.000Z
2021-12-27T02:11:58.000Z
import pytest from flowpipe import Graph, Node @Node(outputs=["out"]) def DemoNode(in_): return {"out": in_} def _nested_graph(): """Create this nested subgraph: +---------------+ +---------------+ +---------------+ +---------------+ | DemoNode | | DemoNode...
32.636905
102
0.477841
cc7c73d2661ec0929fd4761973a456388c91a31e
25,069
py
Python
sqf/analyzer.py
gruppe-adler/sqf
a66946c883d1d50931357948bdfccb272bbc7de3
[ "BSD-3-Clause" ]
1
2021-09-21T18:32:36.000Z
2021-09-21T18:32:36.000Z
sqf/analyzer.py
gruppe-adler/sqf
a66946c883d1d50931357948bdfccb272bbc7de3
[ "BSD-3-Clause" ]
null
null
null
sqf/analyzer.py
gruppe-adler/sqf
a66946c883d1d50931357948bdfccb272bbc7de3
[ "BSD-3-Clause" ]
1
2020-09-20T11:59:14.000Z
2020-09-20T11:59:14.000Z
from copy import deepcopy from sqf.types import Statement, Code, Nothing, Variable, Array, String, Type, File, BaseType, Namespace, \ Number, Preprocessor, Script, Anything from sqf.interpreter_types import InterpreterType, PrivateType, ForType, SwitchType, \ DefineStatement, DefineResult, IfDefResult from sqf...
44.448582
137
0.60158
e670deea0f0c599183f17b7545584b3f4ad8fc6c
7,073
py
Python
TESTE/OLD/TESTE_v2_station_c_PCR_NOVO 2.py
biogerm-pt/OT-2
fed24f06db0ee19216a1f793482f588f07e3762a
[ "Apache-2.0" ]
null
null
null
TESTE/OLD/TESTE_v2_station_c_PCR_NOVO 2.py
biogerm-pt/OT-2
fed24f06db0ee19216a1f793482f588f07e3762a
[ "Apache-2.0" ]
null
null
null
TESTE/OLD/TESTE_v2_station_c_PCR_NOVO 2.py
biogerm-pt/OT-2
fed24f06db0ee19216a1f793482f588f07e3762a
[ "Apache-2.0" ]
null
null
null
from opentrons import protocol_api import json import os import math # metadata metadata = { 'protocolName': 'Version 1 S14 Station C Thermo Taqpath P20 Multi', 'author': 'Nick <protocols@opentrons.com>', 'source': 'Custom Protocol Request', 'apiLevel': '2.6' } NUM_SAMPLES = 96 # start with 8 samples...
38.232432
117
0.599887
9fb57985fc2f47f5ec7bf2811434109fc050b72f
5,725
py
Python
awareness_detector/scripts/awareness_model.py
hofbi/driver-awareness
c16edc6b1ed26c252959ab85bbc33fe4f5598424
[ "MIT" ]
null
null
null
awareness_detector/scripts/awareness_model.py
hofbi/driver-awareness
c16edc6b1ed26c252959ab85bbc33fe4f5598424
[ "MIT" ]
null
null
null
awareness_detector/scripts/awareness_model.py
hofbi/driver-awareness
c16edc6b1ed26c252959ab85bbc33fe4f5598424
[ "MIT" ]
1
2022-02-04T11:53:29.000Z
2022-02-04T11:53:29.000Z
#!/usr/bin/env python """ Detects which objects were recognized by the operator based on a free awareness model""" import cv2 import rospy from cv_bridge import CvBridgeError from sensor_msgs.msg import CompressedImage, Image from awareness_detector.sa import ( DistanceTrackingStrategy, GazeBuffer, Punishm...
36.935484
100
0.663755
1de5cd727e3496143d0987cb43e9570d9b2799ea
4,721
py
Python
download.py
max041/tensorflow-wgan
aae967606f8d281916f2760551de3d752a89a96a
[ "MIT" ]
null
null
null
download.py
max041/tensorflow-wgan
aae967606f8d281916f2760551de3d752a89a96a
[ "MIT" ]
null
null
null
download.py
max041/tensorflow-wgan
aae967606f8d281916f2760551de3d752a89a96a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import os.path import argparse import subprocess import zipfile from tqdm import tqdm import requests from utils import log, c # NOTE: Dataset downloading script. Referenced carpedm20's DCGAN. # ============= # Script Parser # ============= parser = argparse.ArgumentParser(descript...
29.879747
77
0.636306
02eb99ef4c9d0a965ad1c07820929cc7fbcdc0cf
3,831
py
Python
biocoder/settings_common.py
east301/biocoder-server
e7b937e99608fa18675c972ec4377d946896cbb1
[ "Apache-2.0" ]
null
null
null
biocoder/settings_common.py
east301/biocoder-server
e7b937e99608fa18675c972ec4377d946896cbb1
[ "Apache-2.0" ]
null
null
null
biocoder/settings_common.py
east301/biocoder-server
e7b937e99608fa18675c972ec4377d946896cbb1
[ "Apache-2.0" ]
null
null
null
# # (c) 2016 biocoder developers # # This file is part of biocoder, # released under Apache License Version 2.0 (http://www.apache.org/licenses/LICENCE). # # ================================================================================ # security # ===================================================================...
31.925
89
0.490211
711c672dfbb6910fac7685e028e392e56f034960
11,868
py
Python
src/production_services/settings.py
Ensembl/ensembl-production-services
2a5769e70c2bb8db9b4c0ded88621d83a97316ce
[ "Apache-2.0" ]
1
2021-01-27T15:43:07.000Z
2021-01-27T15:43:07.000Z
src/production_services/settings.py
Ensembl/ensembl-production-services
2a5769e70c2bb8db9b4c0ded88621d83a97316ce
[ "Apache-2.0" ]
21
2019-04-04T09:44:29.000Z
2021-06-23T15:23:36.000Z
src/production_services/settings.py
Ensembl/ensembl-production-services
2a5769e70c2bb8db9b4c0ded88621d83a97316ce
[ "Apache-2.0" ]
1
2019-11-28T15:48:17.000Z
2019-11-28T15:48:17.000Z
# See the NOTICE file distributed with this work for additional information # regarding copyright ownership. # 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....
34.701754
120
0.667762
e2d84e2521c6581b138cf32aad0d09778b05d827
516
py
Python
decoder.py
JonasJF360/QRcodeControl
7823aefdf0785617b80331ee2c3cabdefd3cfbb2
[ "MIT" ]
null
null
null
decoder.py
JonasJF360/QRcodeControl
7823aefdf0785617b80331ee2c3cabdefd3cfbb2
[ "MIT" ]
null
null
null
decoder.py
JonasJF360/QRcodeControl
7823aefdf0785617b80331ee2c3cabdefd3cfbb2
[ "MIT" ]
null
null
null
# Esse é apenas um exemplo simples de utilização para teste # Leitura do conteúdo do QRcode estará em um formato apropriado # para a converção com JSON. import json # É claro que o conteúdo seria capturado por um leirtor de QRcode ou uma # camera e não importado de um JSON mas sua converção ajudaria muito. arquivo = o...
32.25
72
0.753876
8d91c63f23b6f47566865173d250ccfb1b0e2bbb
20,506
py
Python
pymc3/step_methods/metropolis.py
canyon289/pymc
3a9c147a0680e569b24b3959fded55e2876dae9a
[ "Apache-2.0" ]
1
2018-06-11T03:13:00.000Z
2018-06-11T03:13:00.000Z
pymc3/step_methods/metropolis.py
MaximeJumelle/pymc3
4e695f635b2ead24e2e647651eadd2505ab1fa63
[ "Apache-2.0" ]
2
2017-03-02T05:56:13.000Z
2019-12-06T19:15:42.000Z
pymc3/step_methods/metropolis.py
MaximeJumelle/pymc3
4e695f635b2ead24e2e647651eadd2505ab1fa63
[ "Apache-2.0" ]
1
2018-10-08T10:27:35.000Z
2018-10-08T10:27:35.000Z
import numpy as np import numpy.random as nr import theano import scipy.linalg import warnings from ..distributions import draw_values from .arraystep import ArrayStepShared, PopulationArrayStepShared, ArrayStep, metrop_select, Competence import pymc3 as pm from pymc3.theanof import floatX __all__ = ['Metropolis', 'B...
32.343849
103
0.605481
1eb0df100a08415f83f380648521cb6cc18370d6
3,361
py
Python
main.py
onermustafaumit/drn_pytorch
03a5381eb5b4504bcf31e501e75c98cd07036870
[ "MIT" ]
null
null
null
main.py
onermustafaumit/drn_pytorch
03a5381eb5b4504bcf31e501e75c98cd07036870
[ "MIT" ]
null
null
null
main.py
onermustafaumit/drn_pytorch
03a5381eb5b4504bcf31e501e75c98cd07036870
[ "MIT" ]
null
null
null
import numpy as np from drn import DRN import config import time from datetime import datetime import torch import torch.nn as nn import sys import os current_time = datetime.now().strftime("__%Y_%m_%d__%H_%M_%S") n_in, n_layers, n_nodes, n_out = config.n_in, config.n_layers, config.n_nodes, config.n_out q, hidden...
24.355072
121
0.713776
77b35e3c30aa49361a4f56ce782596dfb29d06a4
386
py
Python
solutions/cetvrta.py
dx-dt/Kattis
62856999ae2ac43dab81f87beeac5bf8979528f5
[ "Unlicense" ]
null
null
null
solutions/cetvrta.py
dx-dt/Kattis
62856999ae2ac43dab81f87beeac5bf8979528f5
[ "Unlicense" ]
null
null
null
solutions/cetvrta.py
dx-dt/Kattis
62856999ae2ac43dab81f87beeac5bf8979528f5
[ "Unlicense" ]
null
null
null
# https://open.kattis.com/problems/cetvrta from sys import stdin coordinates = [[],[]] output = '' for row in stdin.read().rstrip("\n").split("\n"): for axis, value in enumerate(row.split(' ')): coordinates[axis].append(value) for axis in coordinates: for value in axis: if axis.count(value) ...
21.444444
49
0.606218
872747e88c6387b7d31eb6bcae3f01ffa24c9347
189
py
Python
runserver.py
zacwolfe/songfoo-reports
e5c76f4209da064098ba7798eca34481b1ef931a
[ "MIT" ]
null
null
null
runserver.py
zacwolfe/songfoo-reports
e5c76f4209da064098ba7798eca34481b1ef931a
[ "MIT" ]
null
null
null
runserver.py
zacwolfe/songfoo-reports
e5c76f4209da064098ba7798eca34481b1ef931a
[ "MIT" ]
null
null
null
import os from songfoo_reports import app def runserver(): port = int(os.environ.get('PORT', 5000)) app.run(host='0.0.0.0', port=port) if __name__ == '__main__': runserver()
17.181818
44
0.656085
f4c9a77c9bbc896f29ecb0e4221ade77f93cc610
348
py
Python
Python/site_dpm/test_scipy_beta.py
JohnReid/biopsy
1eeb714ba5b53f2ecf776d865d32e2078cbc0338
[ "MIT" ]
null
null
null
Python/site_dpm/test_scipy_beta.py
JohnReid/biopsy
1eeb714ba5b53f2ecf776d865d32e2078cbc0338
[ "MIT" ]
null
null
null
Python/site_dpm/test_scipy_beta.py
JohnReid/biopsy
1eeb714ba5b53f2ecf776d865d32e2078cbc0338
[ "MIT" ]
null
null
null
import scipy.stats as S, numpy as N from rpy2.robjects import r alpha, beta = 0.0710, 0.4222 for i in xrange(20): x_from_scipy = S.beta.rvs(alpha, beta) x_from_R = r.rbeta(1, alpha, beta) print 'Alpha=%.2e; Beta=%.2e; scipy.stats.beta.rvs=%.2e; R.rbeta=%.2e' % (alpha, beta, x_from_scipy, x_from_R[0]) a...
31.636364
117
0.643678
0b3b6a5c5dc4081537ae80e64691bb26704998c8
2,521
py
Python
setup.py
unparalleled-js/ledger-eth-lib
ec9e4d0e801c98d09e5c8b04983e12540cff1650
[ "MIT" ]
10
2020-10-26T05:46:47.000Z
2022-03-07T22:28:50.000Z
setup.py
unparalleled-js/ledger-eth-lib
ec9e4d0e801c98d09e5c8b04983e12540cff1650
[ "MIT" ]
13
2020-02-04T09:08:45.000Z
2022-03-21T00:05:28.000Z
setup.py
unparalleled-js/ledger-eth-lib
ec9e4d0e801c98d09e5c8b04983e12540cff1650
[ "MIT" ]
6
2020-02-04T18:22:56.000Z
2022-03-01T13:44:51.000Z
from importlib.machinery import SourceFileLoader from pathlib import Path from subprocess import check_call from setuptools import find_packages, setup from setuptools.command.develop import develop pwd = Path(__file__).parent # Get the long description from the README file with pwd.joinpath("README.md").open(encodi...
32.320513
86
0.637049
412bbfca0de6442fc0f25924fea224e1f5f44a50
2,466
py
Python
bioinformatics/photoscan-pro/python/lib/python3.5/site-packages/qtconsole/svg.py
pseudoPixels/SourceFlow
e1738c8b838c71b18598ceca29d7c487c76f876b
[ "MIT" ]
652
2015-07-26T00:00:17.000Z
2022-02-24T18:30:04.000Z
bioinformatics/photoscan-pro/python/lib/python3.5/site-packages/qtconsole/svg.py
pseudoPixels/SourceFlow
e1738c8b838c71b18598ceca29d7c487c76f876b
[ "MIT" ]
26
2020-03-24T18:07:06.000Z
2022-03-12T00:12:27.000Z
bioinformatics/photoscan-pro/python/lib/python3.5/site-packages/qtconsole/svg.py
pseudoPixels/SourceFlow
e1738c8b838c71b18598ceca29d7c487c76f876b
[ "MIT" ]
40
2015-07-24T19:45:08.000Z
2021-11-01T14:54:56.000Z
""" Defines utility functions for working with SVG documents in Qt. """ # System library imports. from qtconsole.qt import QtCore, QtGui, QtSvg # Our own imports from ipython_genutils.py3compat import unicode_type def save_svg(string, parent=None): """ Prompts the user to save an SVG document to disk. Param...
26.804348
77
0.642336
cfd03dabe4913b5bef30190be1663341422aee9f
2,718
py
Python
random_topologies_experiment.py
pgora/neurips2019
42fee97620ff45d0e497f64a317aa5444cecb046
[ "MIT" ]
3
2019-05-20T17:16:52.000Z
2021-01-29T15:14:47.000Z
random_topologies_experiment.py
pgora/neurips2019
42fee97620ff45d0e497f64a317aa5444cecb046
[ "MIT" ]
null
null
null
random_topologies_experiment.py
pgora/neurips2019
42fee97620ff45d0e497f64a317aa5444cecb046
[ "MIT" ]
null
null
null
# this file contains code for a random graph topologies experiment import numpy as np import pandas as pd import tensorflow as tf from sklearn.model_selection import train_test_split import os import graph_utils as graph_utils import graph_neural_networks as graph_nn import data_preparation_utils as data_prep from ...
47.684211
191
0.793598
02ebe923ec7cb7b9f33dedf75d6a1df05bc32a22
3,915
py
Python
code/MiniFramework/Optimizer_1_0.py
Knowledge-Precipitation-Tribe/Convolutional-neural-network
9de8a6f7e1f0f40a7d39964fbbf9cb999313752d
[ "MIT" ]
2
2021-07-13T05:28:50.000Z
2021-12-22T14:45:35.000Z
code/MiniFramework/Optimizer_1_0.py
Knowledge-Precipitation-Tribe/Recurrent-neural-network
44faf239784d6318c986ae39a0a1982786e951fe
[ "MIT" ]
null
null
null
code/MiniFramework/Optimizer_1_0.py
Knowledge-Precipitation-Tribe/Recurrent-neural-network
44faf239784d6318c986ae39a0a1982786e951fe
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*-# ''' # Name: Optimizer_1_0 # Description: # Author: super # Date: 2020/6/12 ''' from MiniFramework.EnumDef_6_0 import * class OptimizerFactory(object): @staticmethod def CreateOptimizer(lr, name = OptimizerName.SGD): if name == OptimizerName.SGD: ...
27.765957
85
0.553257
fda44f77192e367d3f174e0a3caf07f538db0df1
345
py
Python
mikaponics/dashboard/urls.py
mikaponics/mikaponics-back
98e1ff8bab7dda3492e5ff637bf5aafd111c840c
[ "BSD-3-Clause" ]
2
2019-04-30T23:51:41.000Z
2019-05-04T00:35:52.000Z
mikaponics/dashboard/urls.py
mikaponics/mikaponics-back
98e1ff8bab7dda3492e5ff637bf5aafd111c840c
[ "BSD-3-Clause" ]
27
2019-04-30T20:22:28.000Z
2022-02-10T08:10:32.000Z
mikaponics/dashboard/urls.py
mikaponics/mikaponics-back
98e1ff8bab7dda3492e5ff637bf5aafd111c840c
[ "BSD-3-Clause" ]
null
null
null
from django.conf.urls import include, url from django.views.generic.base import RedirectView from dashboard.views import * urlpatterns = ( ############################################################################ url(r'^api/dashboard$', DashboardAPIView.as_view(), name='mikaponics_dashboar...
24.642857
80
0.547826
4c652c1fd010644119083ddc623a89a77e2e8bbe
1,742
py
Python
data/esper_spell_tiers.py
HansGR/WorldsCollide
af227be553e120ee004b130598360c61daf7df59
[ "MIT" ]
7
2022-01-15T02:53:53.000Z
2022-02-17T00:51:32.000Z
data/esper_spell_tiers.py
HansGR/WorldsCollide
af227be553e120ee004b130598360c61daf7df59
[ "MIT" ]
8
2022-01-16T02:45:24.000Z
2022-03-21T02:08:27.000Z
data/esper_spell_tiers.py
HansGR/WorldsCollide
af227be553e120ee004b130598360c61daf7df59
[ "MIT" ]
5
2022-01-15T02:53:38.000Z
2022-01-19T17:42:10.000Z
from data.spell_names import name_id tiers = [ [ name_id["Cure"], ], [ name_id["Cure 2"], name_id["Life"], ], [ name_id["Cure 3"], name_id["Life 2"], name_id["Life 3"], ], [ name_id["Ice"], name_id["Bolt"], name_id["Po...
20.987952
60
0.443743
ecf9ca63aea20f99e983c9d4869be8967cb07261
2,071
py
Python
exercicios/ex71a.py
gabrielaraujo3/exercicios-python
37a431854205e489cb7cede8fcae459bfef75a39
[ "MIT" ]
null
null
null
exercicios/ex71a.py
gabrielaraujo3/exercicios-python
37a431854205e489cb7cede8fcae459bfef75a39
[ "MIT" ]
null
null
null
exercicios/ex71a.py
gabrielaraujo3/exercicios-python
37a431854205e489cb7cede8fcae459bfef75a39
[ "MIT" ]
null
null
null
from time import sleep print('= ' * 26) sleep(0.5) print('{:^52}'.format('BANCO CEV')) sleep(0.3) print('= ' * 26) valor = int(input('Que valor você quer sacar? R$')) total = valor print('Analisando a transação...') sleep(1) print('Verificando a disponibilidade de cédulas...') for c in range(1, 26): print('= ', end...
25.567901
119
0.443264
fa39119bcb10e5ba9ac8208eaa56ea15df4f771f
5,097
py
Python
calling_plan/military/migrations/0001_initial.py
hadtrindade/planodechamada
59ab99575dbcd5cb00ef1a426e0a2425fdba524d
[ "MIT" ]
null
null
null
calling_plan/military/migrations/0001_initial.py
hadtrindade/planodechamada
59ab99575dbcd5cb00ef1a426e0a2425fdba524d
[ "MIT" ]
null
null
null
calling_plan/military/migrations/0001_initial.py
hadtrindade/planodechamada
59ab99575dbcd5cb00ef1a426e0a2425fdba524d
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-03-17 02:19 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name="Area", fields=[ ...
33.532895
77
0.355503
1c10bed209282eda1f1b6b7379cdbecacf4ebe0a
298
py
Python
frontend/Akina/Akina/captcha.py
Yveh/Akina
2bf66c749f31905a62d1028dcaf4908981f0e090
[ "MIT" ]
null
null
null
frontend/Akina/Akina/captcha.py
Yveh/Akina
2bf66c749f31905a62d1028dcaf4908981f0e090
[ "MIT" ]
null
null
null
frontend/Akina/Akina/captcha.py
Yveh/Akina
2bf66c749f31905a62d1028dcaf4908981f0e090
[ "MIT" ]
null
null
null
import random def generate_captcha(): x = (random.randint(1, 5) * 2, random.randint(1, 5), random.randint(1, 5)) return (x, '$\\int_0^{{ {0} }} {1} x + {2} \\, dx$'.format(str(x[0]), str(x[1]), str(x[2]))) def get_captcha_ans(x): return float(x[0] * x[2] + 0.5 * x[0] * x[0] * x[1])
29.8
96
0.533557
2746f9eb27284bf2ed38e68f0b3f46ae11b4a325
1,566
py
Python
LeetCode/weekly-contest-83-2019.11.26/consecutiveNumbersSum_829.py
Max-PJB/python-learning2
e8b05bef1574ee9abf8c90497e94ef20a7f4e3bd
[ "MIT" ]
null
null
null
LeetCode/weekly-contest-83-2019.11.26/consecutiveNumbersSum_829.py
Max-PJB/python-learning2
e8b05bef1574ee9abf8c90497e94ef20a7f4e3bd
[ "MIT" ]
null
null
null
LeetCode/weekly-contest-83-2019.11.26/consecutiveNumbersSum_829.py
Max-PJB/python-learning2
e8b05bef1574ee9abf8c90497e94ef20a7f4e3bd
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ ------------------------------------------------- @ Author : pengj @ date : 2019/11/27 9:06 @ IDE : PyCharm @ GitHub : https://github.com/JackyPJB @ Contact : pengjianbiao@hotmail.com ----------------...
27.964286
116
0.499361
f7210e74f4ea154ad8e0c98314be558c787c9440
483
py
Python
app/settings.py
rchapman83/sticks-clothing
dfdb5283b00c9209f854648e50f30140a0bb3004
[ "MIT" ]
null
null
null
app/settings.py
rchapman83/sticks-clothing
dfdb5283b00c9209f854648e50f30140a0bb3004
[ "MIT" ]
null
null
null
app/settings.py
rchapman83/sticks-clothing
dfdb5283b00c9209f854648e50f30140a0bb3004
[ "MIT" ]
null
null
null
# -*- settings:utf-8 -*- # Flask settings import logging import os proj_name = os.environ.get('PROJECT_NAME') debug_mode = os.environ.get('FLASK_DEBUG') secret_code = os.environ.get('FLASK_SECRET') DEBUG = debug_mode TESTING = False USE_X_SENDFILE = False CSRF_ENABLED = True SECRET_KEY = secret_code # LOGGING LO...
21.954545
55
0.730849
299b791ef4bb5718276767a433609011eb7751bd
475
py
Python
pypacker/layer567/hsrp.py
dschoonwinkel/pypacker
58c833f40207db746b0b2995ca3835a533e0258e
[ "BSD-3-Clause" ]
null
null
null
pypacker/layer567/hsrp.py
dschoonwinkel/pypacker
58c833f40207db746b0b2995ca3835a533e0258e
[ "BSD-3-Clause" ]
null
null
null
pypacker/layer567/hsrp.py
dschoonwinkel/pypacker
58c833f40207db746b0b2995ca3835a533e0258e
[ "BSD-3-Clause" ]
1
2020-01-06T21:43:09.000Z
2020-01-06T21:43:09.000Z
"""Cisco Hot Standby Router Protocol.""" from pypacker import pypacker # Opcodes HELLO = 0 COUP = 1 RESIGN = 2 # States INITIAL = 0x00 LEARN = 0x01 LISTEN = 0x02 SPEAK = 0x04 STANDBY = 0x08 ACTIVE = 0x10 class HSRP(pypacker.Packet): __hdr__ = ( ("version", "B", 0), ("opcode", "B", 0), ("state", "B", 0), (...
14.84375
40
0.534737
692d0bfd272bf0edc51e442f9118b542719fc1f3
32,033
py
Python
Lib/aifc.py
Kronos3/pyexec
c9e76a0302dee047ed137bc38aa669cec04c24cd
[ "bzip2-1.0.6" ]
486
2016-05-28T18:51:54.000Z
2022-03-20T17:30:31.000Z
Lib/aifc.py
Kronos3/pyexec
c9e76a0302dee047ed137bc38aa669cec04c24cd
[ "bzip2-1.0.6" ]
40
2016-05-29T00:24:56.000Z
2020-07-13T11:56:58.000Z
Lib/aifc.py
Kronos3/pyexec
c9e76a0302dee047ed137bc38aa669cec04c24cd
[ "bzip2-1.0.6" ]
46
2016-05-28T18:52:03.000Z
2021-06-01T07:57:51.000Z
"""Stuff to parse AIFF-C and AIFF files. Unless explicitly stated otherwise, the description below is true both for AIFF-C files and AIFF files. An AIFF-C file has the following structure. +-----------------+ | FORM | +-----------------+ | <size> | +----+------------+ | | AIFC ...
34.407089
86
0.585209
6554d9066bab89187ea9dd27e84c77e5ff665602
970
py
Python
tests/unit/utils/markers/test_skip_if_not_root.py
bdrung/pytest-skip-markers
69b9be27b1969a7b59666afefcb63bf1fdf66b31
[ "Apache-2.0" ]
null
null
null
tests/unit/utils/markers/test_skip_if_not_root.py
bdrung/pytest-skip-markers
69b9be27b1969a7b59666afefcb63bf1fdf66b31
[ "Apache-2.0" ]
15
2021-11-06T14:58:25.000Z
2022-02-22T10:21:04.000Z
tests/unit/utils/markers/test_skip_if_not_root.py
bdrung/pytest-skip-markers
69b9be27b1969a7b59666afefcb63bf1fdf66b31
[ "Apache-2.0" ]
3
2021-11-15T10:38:10.000Z
2021-12-15T02:36:31.000Z
# Copyright 2021-2022 VMware, Inc. # SPDX-License-Identifier: Apache-2.0 # """ Test the "skip_if_not_root" marker helper. """ import sys from unittest import mock import pytestskipmarkers.utils.markers def test_when_root(): if sys.platform.startswith("win"): with mock.patch("pytestskipmarkers.utils.win_f...
33.448276
94
0.72268
6fd22ee2adacadb99b91de54a073738ca84a02f0
2,564
py
Python
Aula07 14-11 Dicionario/Aula07_exercicios/exer8.py
Renanrbsc/PadawanPython
6dc06a502d59127d0f180847e19b40c581baddd0
[ "MIT" ]
null
null
null
Aula07 14-11 Dicionario/Aula07_exercicios/exer8.py
Renanrbsc/PadawanPython
6dc06a502d59127d0f180847e19b40c581baddd0
[ "MIT" ]
null
null
null
Aula07 14-11 Dicionario/Aula07_exercicios/exer8.py
Renanrbsc/PadawanPython
6dc06a502d59127d0f180847e19b40c581baddd0
[ "MIT" ]
null
null
null
#--- Exercicio 3 - Variávies e impressão com interpolacão de string #--- Imprima dois paragráfos do ultimo livro que você leu #--- A impressão deve conter informações do livro, que deverão estar em variáveis #--- Livro: Título, Edição, Autor, Data de publicação #--- Os parágrafos devem estar formatados conforme a form...
56.977778
94
0.764821
c97250f85f5ea5263c1bff150b5b4446b5f0d853
21,541
py
Python
geomstats/_backend/tensorflow/__init__.py
pchauchat/geomstats
73aaa3ba2366aba66fd316ef31f3404ee45134d3
[ "MIT" ]
null
null
null
geomstats/_backend/tensorflow/__init__.py
pchauchat/geomstats
73aaa3ba2366aba66fd316ef31f3404ee45134d3
[ "MIT" ]
null
null
null
geomstats/_backend/tensorflow/__init__.py
pchauchat/geomstats
73aaa3ba2366aba66fd316ef31f3404ee45134d3
[ "MIT" ]
null
null
null
"""Tensorflow based computation backend.""" from collections import Counter from itertools import product import numpy as _np import tensorflow as tf from tensorflow import ( # NOQA abs, acos as arccos, acosh as arccosh, argmax, argmin, asin as arcsin, atan2 as arctan2, clip_by_value ...
28.418206
79
0.617288
5d21a11d4b470bfe8b1381ee88ecb5c8c0698a92
4,072
py
Python
tests/components/powerwall/test_sensor.py
crodriguezanton/core
294a2d2460b94b40ad6946e13e265d410957cf4a
[ "Apache-2.0" ]
null
null
null
tests/components/powerwall/test_sensor.py
crodriguezanton/core
294a2d2460b94b40ad6946e13e265d410957cf4a
[ "Apache-2.0" ]
6
2021-02-08T20:54:31.000Z
2022-03-12T00:50:43.000Z
tests/components/powerwall/test_sensor.py
crodriguezanton/core
294a2d2460b94b40ad6946e13e265d410957cf4a
[ "Apache-2.0" ]
null
null
null
"""The sensor tests for the powerwall platform.""" from asynctest import patch from homeassistant.components.powerwall.const import DOMAIN from homeassistant.setup import async_setup_component from .mocks import _mock_get_config, _mock_powerwall_with_fixtures async def test_sensors(hass): """Test creation of t...
37.018182
84
0.676326
da6516d4b3f0c8fff9fc35e2a0b2718bd2326d7c
12,848
py
Python
src/sage/categories/category_types.py
bopopescu/sage-5
9d85b34956ca2edd55af307f99c5d3859acd30bf
[ "BSL-1.0" ]
2
2021-08-20T00:30:35.000Z
2021-11-17T10:54:00.000Z
src/sage/categories/category_types.py
bopopescu/sage-5
9d85b34956ca2edd55af307f99c5d3859acd30bf
[ "BSL-1.0" ]
null
null
null
src/sage/categories/category_types.py
bopopescu/sage-5
9d85b34956ca2edd55af307f99c5d3859acd30bf
[ "BSL-1.0" ]
null
null
null
""" Specific category classes This is placed in a separate file from categories.py to avoid circular imports (as morphisms must be very low in the hierarchy with the new coercion model). """ #***************************************************************************** # Copyright (C) 2005 David Kohel <kohel@maths.u...
28.299559
111
0.531756
4fb47638878f4047aa952f9c57cd2e41eaca191f
5,684
py
Python
behavenet/fitting/decoder_grid_search.py
johnlyzhou/behavenet
aa7187322e491299cd7fefbecb8f8f215b33edba
[ "MIT" ]
23
2021-03-11T10:28:36.000Z
2022-02-24T04:25:06.000Z
behavenet/fitting/decoder_grid_search.py
johnlyzhou/behavenet
aa7187322e491299cd7fefbecb8f8f215b33edba
[ "MIT" ]
12
2020-01-22T20:36:15.000Z
2021-01-28T18:45:39.000Z
behavenet/fitting/decoder_grid_search.py
johnlyzhou/behavenet
aa7187322e491299cd7fefbecb8f8f215b33edba
[ "MIT" ]
8
2021-04-03T15:46:54.000Z
2022-03-16T21:44:42.000Z
import os import time import numpy as np import random import torch import pickle from behavenet.data.utils import build_data_generator from behavenet.fitting.hyperparam_utils import get_all_params from behavenet.fitting.hyperparam_utils import get_slurm_params from behavenet.fitting.training import fit from behavenet...
39.2
98
0.670479
8f26e577c31d8d6d9f783d4adeac51e8234835ad
223
py
Python
ovpr_atp/awards/middleware.py
pawanacharya1979/Awdportal
f0ed6ad723d70fae4737e517d4dca07b2aef176a
[ "MIT" ]
null
null
null
ovpr_atp/awards/middleware.py
pawanacharya1979/Awdportal
f0ed6ad723d70fae4737e517d4dca07b2aef176a
[ "MIT" ]
null
null
null
ovpr_atp/awards/middleware.py
pawanacharya1979/Awdportal
f0ed6ad723d70fae4737e517d4dca07b2aef176a
[ "MIT" ]
null
null
null
from django.utils.cache import add_never_cache_headers class DisableClientSideCachingMiddleware(object): def process_response(self, request, response): add_never_cache_headers(response) return response
31.857143
54
0.793722
a3d4e6b8426845808674e9f39af9c1781e0ac360
198
py
Python
docs/examples/messages_and_events/color_changer.py
lllama/textual
15d81e4231b0d95405475b9ba1f4b46a47caa97c
[ "MIT" ]
null
null
null
docs/examples/messages_and_events/color_changer.py
lllama/textual
15d81e4231b0d95405475b9ba1f4b46a47caa97c
[ "MIT" ]
null
null
null
docs/examples/messages_and_events/color_changer.py
lllama/textual
15d81e4231b0d95405475b9ba1f4b46a47caa97c
[ "MIT" ]
null
null
null
from textual.app import App class ColorChanger(App): async def on_key(self, event): if event.key.isdigit(): self.background = f"on color({event.key})" ColorChanger.run()
18
54
0.646465
90528cebb62c676c484033be65fd4f08d0489f71
4,969
py
Python
app.py
jvm123/botstory
ff85a22e84527d8ec713a3f06948630c6985a48c
[ "MIT" ]
null
null
null
app.py
jvm123/botstory
ff85a22e84527d8ec713a3f06948630c6985a48c
[ "MIT" ]
null
null
null
app.py
jvm123/botstory
ff85a22e84527d8ec713a3f06948630c6985a48c
[ "MIT" ]
null
null
null
""" (C) 2021 Julian von Mendel <prog@derjulian.net> app.py ==================================== This is the main program for the Flask chatbot server """ import sys import logging import uuid import time import werkzeug werkzeug.cached_property = werkzeug.utils.cached_property # has to follow directly after import w...
34.034247
123
0.558462
c162379b363980483c58961d00a05ebf38890a81
14,863
py
Python
superset/connectors/base/models.py
Beacon-Platform/incubator-superset-beacon
d6d97d71e9e63521032439d7c40bcaeaf9741d9b
[ "Apache-2.0" ]
2
2021-04-14T01:20:33.000Z
2021-07-01T16:38:25.000Z
superset/connectors/base/models.py
Beacon-Platform/incubator-superset-beacon
d6d97d71e9e63521032439d7c40bcaeaf9741d9b
[ "Apache-2.0" ]
13
2020-05-14T05:49:34.000Z
2022-03-29T22:28:29.000Z
superset/connectors/base/models.py
Beacon-Platform/incubator-superset-beacon
d6d97d71e9e63521032439d7c40bcaeaf9741d9b
[ "Apache-2.0" ]
null
null
null
# pylint: disable=C,R,W import json from past.builtins import basestring from sqlalchemy import ( and_, Boolean, Column, Integer, String, Text, ) from sqlalchemy.ext.declarative import declared_attr from sqlalchemy.orm import foreign, relationship from superset.models.core import Slice from superset.models.helper...
32.810155
79
0.598668
f725fe7163265998e318929048c9c017ed7a3eaa
203
py
Python
scitbx/suffixtree/single.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
155
2016-11-23T12:52:16.000Z
2022-03-31T15:35:44.000Z
scitbx/suffixtree/single.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
590
2016-12-10T11:31:18.000Z
2022-03-30T23:10:09.000Z
scitbx/suffixtree/single.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
115
2016-11-15T08:17:28.000Z
2022-02-09T15:30:14.000Z
from __future__ import absolute_import, division, print_function import boost_adaptbx.boost.python as bp ext = bp.import_ext( "scitbx_suffixtree_single_ext" ) from scitbx_suffixtree_single_ext import *
33.833333
64
0.847291
f1476102dbda981003741bacd529c1f2c4e7c69b
1,042
py
Python
samples/std_qm3/test_sqm.py
sergio-marti/ren-qm3
8ebb2ea527f0d2cf7fdae7898291bfb442db7e7d
[ "MIT" ]
null
null
null
samples/std_qm3/test_sqm.py
sergio-marti/ren-qm3
8ebb2ea527f0d2cf7fdae7898291bfb442db7e7d
[ "MIT" ]
null
null
null
samples/std_qm3/test_sqm.py
sergio-marti/ren-qm3
8ebb2ea527f0d2cf7fdae7898291bfb442db7e7d
[ "MIT" ]
null
null
null
import numpy import qm3.mol import qm3.fio.xplor import qm3.engines.sqm import io mol = qm3.mol.molecule( "../charmm.pdb" ) qm3.fio.xplor.psf_read( mol, "../charmm.psf" ) mol.guess_atomic_numbers() print( mol.anum[0:3], mol.anum[-3:] ) print( mol.chrg[0:3], mol.chrg[-3:] ) sqm = [ mol.indx["A"][1][a] for a in ['...
24.809524
116
0.592131
dd94b7e8bdaad46763b307d5860ad137855eea9f
3,827
py
Python
sdk/python/pulumi_aws/iot/policy_attachment.py
dixler/pulumi-aws
88838ed6d412c092717a916b0b5b154f68226c3a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/iot/policy_attachment.py
dixler/pulumi-aws
88838ed6d412c092717a916b0b5b154f68226c3a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/iot/policy_attachment.py
dixler/pulumi-aws
88838ed6d412c092717a916b0b5b154f68226c3a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import json import warnings import pulumi import pulumi.runtime from typing import Union from .. import utilities, tables class Policy...
43.988506
164
0.668409
ba6e1da4c5bf220162fe1bffac481a7f31077216
763
py
Python
jde/clients/migrations/0001_initial.py
douglasPinheiro/just-django-example
7a12dd2057eb4062a5d408aa85a90f0b83cd8224
[ "MIT" ]
null
null
null
jde/clients/migrations/0001_initial.py
douglasPinheiro/just-django-example
7a12dd2057eb4062a5d408aa85a90f0b83cd8224
[ "MIT" ]
1
2018-05-03T13:37:19.000Z
2018-05-03T13:37:19.000Z
jde/clients/migrations/0001_initial.py
douglasPinheiro/just-django-example
7a12dd2057eb4062a5d408aa85a90f0b83cd8224
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='Client', fields=[ ('id', models.AutoField(verbo...
30.52
114
0.559633
f0505f8078263da80e65059d4b7c50846ed057d0
54,220
py
Python
src/transformers/models/albert/modeling_albert.py
ashokei/transformers
5e637e6c690e45d13ebf7296e1ea9dcc188d0f07
[ "Apache-2.0" ]
10
2021-05-31T07:18:08.000Z
2022-03-19T09:20:11.000Z
src/transformers/models/albert/modeling_albert.py
tutussss/transformers
67ff1c314a61a2d5949b3bb48fa3ec7e9b697d7e
[ "Apache-2.0" ]
1
2021-08-03T12:23:01.000Z
2021-08-10T08:35:22.000Z
src/transformers/models/albert/modeling_albert.py
tutussss/transformers
67ff1c314a61a2d5949b3bb48fa3ec7e9b697d7e
[ "Apache-2.0" ]
2
2021-12-09T07:23:21.000Z
2022-03-31T06:13:10.000Z
# coding=utf-8 # Copyright 2018 Google AI, Google Brain and the HuggingFace Inc. team. # # 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 # # U...
41.106899
168
0.666267
cbf786a431a1da84dfebc51bcba500d74a254555
12,167
py
Python
dqrf/ops/functions/local_attn.py
hhy-ee/PedestrianDetection-NohNMS
482078a6bd0ff8cf03fbf7f6988e475f75c56e57
[ "Apache-2.0" ]
30
2021-02-02T07:49:40.000Z
2022-03-22T11:19:37.000Z
dqrf/ops/functions/local_attn.py
hhy-ee/PedestrianDetection-NohNMS
482078a6bd0ff8cf03fbf7f6988e475f75c56e57
[ "Apache-2.0" ]
4
2021-03-31T10:46:12.000Z
2021-12-02T13:58:20.000Z
dqrf/ops/functions/local_attn.py
hhy-ee/PedestrianDetection-NohNMS
482078a6bd0ff8cf03fbf7f6988e475f75c56e57
[ "Apache-2.0" ]
6
2021-02-09T01:00:16.000Z
2021-08-17T07:10:32.000Z
# # Modified by Matthieu Lin # Contact: linmatthieu@gmail.com # # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved """ Same as MultiHeadAttention on pytorch adapted for binary masking on attention weights """ from torch import nn import torch import torch.nn.functional as F from torch.nn.init import...
40.288079
181
0.586258
f148016d31df07c57b7618459354b8d5273e1b28
1,876
py
Python
api/hub/models.py
ecila7290/exporterhub.io
00bacdf3629eec3013086b4e492e4c1e12911c77
[ "MIT" ]
null
null
null
api/hub/models.py
ecila7290/exporterhub.io
00bacdf3629eec3013086b4e492e4c1e12911c77
[ "MIT" ]
null
null
null
api/hub/models.py
ecila7290/exporterhub.io
00bacdf3629eec3013086b4e492e4c1e12911c77
[ "MIT" ]
null
null
null
from django.db import models class Category(models.Model): name = models.CharField(max_length=200) class Meta: db_table='categories' class Official(models.Model): name = models.CharField(max_length=200) class Meta: db_table = 'officials' class Exporter(models.Model): category ...
32.912281
86
0.680704
2b2ed50d54b503e72f4cfd79bd1db3c3077f185f
2,836
py
Python
numba/cuda/cudadrv/libs.py
uw-ipd/numba
26dde2b28cadda403a5549a84dc1698900b23f74
[ "BSD-2-Clause" ]
6
2021-10-30T09:00:55.000Z
2022-03-07T16:33:25.000Z
numba/cuda/cudadrv/libs.py
uw-ipd/numba
26dde2b28cadda403a5549a84dc1698900b23f74
[ "BSD-2-Clause" ]
1
2019-05-01T20:39:46.000Z
2019-05-07T03:43:29.000Z
numba/cuda/cudadrv/libs.py
uw-ipd/numba
26dde2b28cadda403a5549a84dc1698900b23f74
[ "BSD-2-Clause" ]
1
2022-03-16T11:33:50.000Z
2022-03-16T11:33:50.000Z
from __future__ import print_function import re import os import sys import ctypes import platform from numba.findlib import find_lib, find_file if sys.platform == 'win32': _dllopener = ctypes.WinDLL elif sys.platform == 'darwin': _dllopener = ctypes.CDLL else: _dllopener = ctypes.CDLL def get_libdevice(...
29.237113
70
0.596615
0646e3d1a8db99481547b0d3d687a24dfa677a14
23
py
Python
flanker/__init__.py
skshetry/flanker
63d1cdf927777f49f97e8d7f01e105a3b0d25cd2
[ "Apache-2.0" ]
929
2015-01-01T11:14:21.000Z
2022-03-28T23:47:40.000Z
flanker/__init__.py
skshetry/flanker
63d1cdf927777f49f97e8d7f01e105a3b0d25cd2
[ "Apache-2.0" ]
141
2015-01-10T19:02:03.000Z
2021-07-26T18:04:14.000Z
flanker/__init__.py
skshetry/flanker
63d1cdf927777f49f97e8d7f01e105a3b0d25cd2
[ "Apache-2.0" ]
179
2015-01-01T18:42:46.000Z
2022-02-16T21:57:14.000Z
__version__ = '0.9.10'
11.5
22
0.652174