hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
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
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
4a00591a1d883ffa8d7c775aef18175aa7aa9ac9
1,788
py
Python
book_figures/chapter1/fig_sdss_spectrum.py
StKyr/astroML_figures
45e9748335e0cd854d09319dff0e43ecd70e7b61
[ "BSD-2-Clause" ]
6
2019-08-31T16:43:43.000Z
2021-07-10T06:06:20.000Z
book_figures/chapter1/fig_sdss_spectrum.py
StKyr/astroML_figures
45e9748335e0cd854d09319dff0e43ecd70e7b61
[ "BSD-2-Clause" ]
34
2018-09-10T22:35:07.000Z
2022-02-08T21:17:39.000Z
book_figures/chapter1/fig_sdss_spectrum.py
StKyr/astroML_figures
45e9748335e0cd854d09319dff0e43ecd70e7b61
[ "BSD-2-Clause" ]
10
2017-06-22T09:21:19.000Z
2020-01-26T03:54:26.000Z
""" SDSS Spectrum Example --------------------- Figure 1.2. An example of an SDSS spectrum (the specific flux plotted as a function of wavelength) loaded from the SDSS SQL server in real time using Python tools provided here (this spectrum is uniquely described by SDSS parameters plate=1615, fiber=513, and mjd=53166)....
35.058824
79
0.652685
4a005a9dd03d8ecabb61a7125e853b3af5b7e588
464
py
Python
data/scripts/templates/object/mobile/shared_space_starfighter_engineer_trainer_01.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/mobile/shared_space_starfighter_engineer_trainer_01.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/mobile/shared_space_starfighter_engineer_trainer_01.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Creature() result.template = "object/mobile/shared_space_starfighter_engineer_trainer_01.iff" result.attribute_te...
27.294118
83
0.741379
4a005ab24ffda0966c286ef0b8ef4addd7e60086
465
py
Python
arpym/estimation/cov_2_corr.py
dpopadic/arpmRes
ddcc4de713b46e3e9dcb77cc08c502ce4df54f76
[ "MIT" ]
6
2021-04-10T13:24:30.000Z
2022-03-26T08:20:42.000Z
arpym/estimation/cov_2_corr.py
dpopadic/arpmRes
ddcc4de713b46e3e9dcb77cc08c502ce4df54f76
[ "MIT" ]
null
null
null
arpym/estimation/cov_2_corr.py
dpopadic/arpmRes
ddcc4de713b46e3e9dcb77cc08c502ce4df54f76
[ "MIT" ]
6
2019-08-13T22:02:17.000Z
2022-02-09T17:49:12.000Z
# -*- coding: utf-8 -*- import numpy as np def cov_2_corr(s2): """For details, see here. Parameters ---------- s2 : array, shape (n_, n_) Returns ------- c2 : array, shape (n_, n_) s_vol : array, shape (n_,) """ # compute standard deviations s_vol = np.sqrt(...
17.884615
39
0.556989
4a005aee665475c24f8d706d3440c9591c6992ce
659
py
Python
modules/logs.py
vinihcrosa/osint_python
5e7e25494786ff52e9146c8607e0c0fc83344391
[ "MIT" ]
null
null
null
modules/logs.py
vinihcrosa/osint_python
5e7e25494786ff52e9146c8607e0c0fc83344391
[ "MIT" ]
null
null
null
modules/logs.py
vinihcrosa/osint_python
5e7e25494786ff52e9146c8607e0c0fc83344391
[ "MIT" ]
null
null
null
import logging def createLog(message: str, nivel: int): log_format = '%(asctime)s:%(levelname)s:%(filename)s:%(message)s' logging.basicConfig(filename='./log/osint.log', filemode='w', level=logging.DEBUG, format=log_format) logger = l...
28.652174
69
0.559939
4a005b1602046cac21502a644f937751b8f5fb87
678
py
Python
config.py
kokolokssk/FindLoli
5f65e4d782daca5c7fb17259b903187c9499de5e
[ "MIT" ]
null
null
null
config.py
kokolokssk/FindLoli
5f65e4d782daca5c7fb17259b903187c9499de5e
[ "MIT" ]
1
2020-11-26T05:47:39.000Z
2020-12-07T09:26:49.000Z
config.py
kokolokksk/FindLoli
5f65e4d782daca5c7fb17259b903187c9499de5e
[ "MIT" ]
null
null
null
def get_api_params(): TwitterApiParams.__init__(TwitterApiParams,'x','xx','xx') return TwitterApiParams class TwitterApiParams(): def __init__( self,api_key,api_secret_key,bearer_token): self.api_key=api_key self.api_secret_key=api_secret_key self.bearer_token=bearer_token ...
30.818182
61
0.59587
4a005c615d6b3274c742fde8533c0d21cdd6c91c
3,468
py
Python
test/test_lor_card.py
andrewdge/Pyot
a0b44a4462fd643bb21fbdc349beb9546543997c
[ "MIT" ]
1
2021-02-17T01:02:08.000Z
2021-02-17T01:02:08.000Z
test/test_lor_card.py
bangingheads/Pyot
d133e93d96b6f51a3e22da182b9a9d738442e760
[ "MIT" ]
null
null
null
test/test_lor_card.py
bangingheads/Pyot
d133e93d96b6f51a3e22da182b9a9d738442e760
[ "MIT" ]
null
null
null
from pyot.models import lor from pyot.utils import loop_run async def async_card(card=None): if card is None: card = await lor.Card(code="03BW014", locale="en_us").get() assert isinstance(card.region, str) assert isinstance(card.region_ref, str) assert isinstance(card.attack, int) assert is...
43.35
199
0.675317
4a005cc5a58103e9c45a4b79091123ad8c5ce7e1
4,812
py
Python
symenergy/core/altlinsolve.py
mcsoini/symenergy
e0d061f480f6acdb36b895c1092ccfc9f6d7970c
[ "BSD-2-Clause" ]
null
null
null
symenergy/core/altlinsolve.py
mcsoini/symenergy
e0d061f480f6acdb36b895c1092ccfc9f6d7970c
[ "BSD-2-Clause" ]
2
2018-12-21T17:07:46.000Z
2019-11-08T09:33:30.000Z
symenergy/core/altlinsolve.py
mcsoini/symenergy
e0d061f480f6acdb36b895c1092ccfc9f6d7970c
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Oct 15 11:07:02 2019 @author: user """ from sympy import * def linsolve_cond(eqs, unknowns): if not eqs: return S.Complexes**len(unknowns) # Preprocessing A, b = linear_eq_to_matrix(eqs, unknowns) Aaug = Matrix.hstack(A, b).t...
30.649682
88
0.580424
4a005d263620be96147f674bd1fc5b6f57565a15
1,036
py
Python
tests/test_ubirch_anchoring.py
ubirch/ubirch-python-utils
a052db96cc8cccfd30f9baf7ff9a4424598724b0
[ "Apache-2.0" ]
null
null
null
tests/test_ubirch_anchoring.py
ubirch/ubirch-python-utils
a052db96cc8cccfd30f9baf7ff9a4424598724b0
[ "Apache-2.0" ]
null
null
null
tests/test_ubirch_anchoring.py
ubirch/ubirch-python-utils
a052db96cc8cccfd30f9baf7ff9a4424598724b0
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # ubirch anchoring test # # @author Victor Patrin # # Copyright (c) 2018 ubirch GmbH. # # 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/LICE...
24.093023
74
0.722008
4a005df6cea62712c2bdf0ab23d4455920204931
143
py
Python
reddit2telegram/channels/r_discordapp/app.py
mainyordle/reddit2telegram
1163e15aed3b6ff0fba65b222d3d9798f644c386
[ "MIT" ]
187
2016-09-20T09:15:54.000Z
2022-03-29T12:22:33.000Z
reddit2telegram/channels/r_discordapp/app.py
mainyordle/reddit2telegram
1163e15aed3b6ff0fba65b222d3d9798f644c386
[ "MIT" ]
84
2016-09-22T14:25:07.000Z
2022-03-19T01:26:17.000Z
reddit2telegram/channels/r_discordapp/app.py
mainyordle/reddit2telegram
1163e15aed3b6ff0fba65b222d3d9798f644c386
[ "MIT" ]
172
2016-09-21T15:39:39.000Z
2022-03-16T15:15:58.000Z
#encoding:utf-8 subreddit = 'discordapp' t_channel = '@r_discordapp' def send_post(submission, r2t): return r2t.send_simple(submission)
15.888889
38
0.748252
4a005dfd6dd66aeaa0dcc5657869986cd38851a0
1,144
py
Python
generate_platforms.py
t-actions/go-platforms
14e56af474701f0c6c649a8cbe984da06a87b93c
[ "MIT" ]
null
null
null
generate_platforms.py
t-actions/go-platforms
14e56af474701f0c6c649a8cbe984da06a87b93c
[ "MIT" ]
null
null
null
generate_platforms.py
t-actions/go-platforms
14e56af474701f0c6c649a8cbe984da06a87b93c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import json import logging import subprocess def main(): platforms = os.getenv('PLATFORMS') if not platforms: platforms = subprocess.check_output('go tool dist list', shell = True).decode('utf-8') matrix = { 'include': [] } for platform in platforms....
25.422222
94
0.503497
4a005e3d930c99abc0846bd8818671aabf2d3843
290
py
Python
ssz/constants.py
cburgdorf/py-ssz
d8db8e8d388b3778e6737b90df1617cfff518c58
[ "MIT" ]
null
null
null
ssz/constants.py
cburgdorf/py-ssz
d8db8e8d388b3778e6737b90df1617cfff518c58
[ "MIT" ]
null
null
null
ssz/constants.py
cburgdorf/py-ssz
d8db8e8d388b3778e6737b90df1617cfff518c58
[ "MIT" ]
null
null
null
from eth_typing import ( Hash32, ) CHUNK_SIZE = 32 # named BYTES_PER_CHUNK in the spec EMPTY_CHUNK = Hash32(b"\x00" * CHUNK_SIZE) SIZE_PREFIX_SIZE = 4 # named BYTES_PER_LENGTH_PREFIX in the spec MAX_CONTENT_SIZE = 2 ** (SIZE_PREFIX_SIZE * 8) - 1 SIGNATURE_FIELD_NAME = "signature"
24.166667
65
0.744828
4a005e5dd552810e5f4cad531222c7979afd3031
3,612
py
Python
core.py
dawnflyc/PixivRandomDownload
2ec342f34716d31c8257adbc9b0dee11a6d7eb79
[ "MIT" ]
null
null
null
core.py
dawnflyc/PixivRandomDownload
2ec342f34716d31c8257adbc9b0dee11a6d7eb79
[ "MIT" ]
null
null
null
core.py
dawnflyc/PixivRandomDownload
2ec342f34716d31c8257adbc9b0dee11a6d7eb79
[ "MIT" ]
null
null
null
import json import os import random import re import time import requests proxy = { 'http': '127.0.0.1:7890', 'https': '127.0.0.1:7890' } def header(url): return { 'User-agent': "Mozilla/5.0 (Windows NT 10.0; Win64; x64) " "AppleWebKit/537.36 (KHTML, like G...
51.6
1,322
0.629568
4a005eb461df400d69f77c2b9e1d06461ddab29c
5,787
py
Python
apollo/skills/browser_skills/__init__.py
heitorsampaio/ApolloAI
c2983ce51c52641453fb1f6e0d7598bdd47ed66d
[ "MIT" ]
null
null
null
apollo/skills/browser_skills/__init__.py
heitorsampaio/ApolloAI
c2983ce51c52641453fb1f6e0d7598bdd47ed66d
[ "MIT" ]
null
null
null
apollo/skills/browser_skills/__init__.py
heitorsampaio/ApolloAI
c2983ce51c52641453fb1f6e0d7598bdd47ed66d
[ "MIT" ]
null
null
null
# MIT License # Copyright (c) 2019 Georgios Papachristou # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify,...
38.58
118
0.590461
4a005efa52175b1af0ce8d043142779cb4a6fca6
2,790
py
Python
plot/aurocs.py
jacobdeasy/flexible-ehr
ce26ce718cf5cf18a18d38f273a84324dbd5f4b2
[ "MIT" ]
12
2020-03-11T06:04:53.000Z
2021-12-06T04:33:24.000Z
plot/aurocs.py
jacobdeasy/flexible-ehr
ce26ce718cf5cf18a18d38f273a84324dbd5f4b2
[ "MIT" ]
null
null
null
plot/aurocs.py
jacobdeasy/flexible-ehr
ce26ce718cf5cf18a18d38f273a84324dbd5f4b2
[ "MIT" ]
1
2021-02-23T07:01:18.000Z
2021-02-23T07:01:18.000Z
import argparse, matplotlib as mpl, matplotlib.pyplot as plt, numpy as np, os, torch mpl.rcParams["axes.spines.right"] = False mpl.rcParams["axes.spines.top"] = False from scipy import interp from sklearn import metrics from torch.utils.data import DataLoader, TensorDataset from .bootstrap import bootstrap from flexeh...
32.823529
84
0.634409
4a005fc572847d9710308f05421d2cd1ac6e8f8e
184
py
Python
examples/cmykStroke.py
LettError/drawbot
dce9af449d429af3f10827654d8b9d3bb8bb8efe
[ "BSD-2-Clause" ]
2
2015-09-17T01:27:02.000Z
2020-11-26T12:07:13.000Z
examples/cmykStroke.py
LettError/drawbot
dce9af449d429af3f10827654d8b9d3bb8bb8efe
[ "BSD-2-Clause" ]
null
null
null
examples/cmykStroke.py
LettError/drawbot
dce9af449d429af3f10827654d8b9d3bb8bb8efe
[ "BSD-2-Clause" ]
null
null
null
x, y = 20, 20 lines = 20 color_step = 1.00 / lines strokeWidth(10) for i in range(lines): cmykStroke(0, i * color_step, 1, 0) line((x, y), (x, y + 200)) translate(12, 0)
16.727273
39
0.581522
4a006041a3300bb7919f92f6180463fe379528c0
5,374
py
Python
notes/42 - PyGame Sprites/7. drawing sprites - flip.py
hSpiels/ICS3-Python-Notes
5cb06623d6714a62ff20550d635c1fd3f7d27ea2
[ "MIT" ]
3
2022-02-10T19:06:28.000Z
2022-03-25T17:55:56.000Z
notes/42 - PyGame Sprites/7. drawing sprites - flip.py
hSpiels/ICS3-Python-Notes
5cb06623d6714a62ff20550d635c1fd3f7d27ea2
[ "MIT" ]
null
null
null
notes/42 - PyGame Sprites/7. drawing sprites - flip.py
hSpiels/ICS3-Python-Notes
5cb06623d6714a62ff20550d635c1fd3f7d27ea2
[ "MIT" ]
17
2020-09-15T16:40:23.000Z
2022-03-22T17:52:32.000Z
#TODO: Update this example showing how to use a temporary surface and pygame.transform.flip(tempSurface,True,False) import pygame import random def main(): """ Set up the game and run the main game loop """ #----------------------Set up the game------------# pygame.init() # Prepare the pygame ...
43.691057
141
0.566059
4a0060a03345b99fb66f70bb35128dd2720107ad
13,183
py
Python
python/mxnet/gluon/block.py
viper7882/mxnet_win32
8b05c0cf83026147efd70a21abb3ac25ca6099f1
[ "Apache-2.0" ]
null
null
null
python/mxnet/gluon/block.py
viper7882/mxnet_win32
8b05c0cf83026147efd70a21abb3ac25ca6099f1
[ "Apache-2.0" ]
null
null
null
python/mxnet/gluon/block.py
viper7882/mxnet_win32
8b05c0cf83026147efd70a21abb3ac25ca6099f1
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # pylint: disable= arguments-differ """Base container class for all neural network models.""" from .. import symbol, ndarray, initializer from ..symbol import Symbol from ..ndarray import NDArray from .. import name as _name from .parameter import Parameter, ParameterDict, DeferredInitializationError ...
36.316804
104
0.601456
4a0060ff65d73cd506e886bfd2664f063736c370
38,122
py
Python
tests/integration/goldens/logging/google/cloud/logging_v2/services/config_service_v2/transports/grpc.py
BenRKarl/gapic-generator-python
e4f92bd988a5b955ede88a9a10163010aae825f1
[ "Apache-2.0" ]
86
2018-09-28T11:46:15.000Z
2022-03-27T19:25:09.000Z
tests/integration/goldens/logging/google/cloud/logging_v2/services/config_service_v2/transports/grpc.py
BenRKarl/gapic-generator-python
e4f92bd988a5b955ede88a9a10163010aae825f1
[ "Apache-2.0" ]
1,054
2018-04-19T18:35:05.000Z
2022-03-30T14:12:38.000Z
tests/integration/goldens/logging/google/cloud/logging_v2/services/config_service_v2/transports/grpc.py
BenRKarl/gapic-generator-python
e4f92bd988a5b955ede88a9a10163010aae825f1
[ "Apache-2.0" ]
47
2018-04-26T22:08:56.000Z
2022-03-22T22:18:00.000Z
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
43.271283
88
0.625177
4a00610befd0a325f1568c888e310e64a4a6be8e
532
py
Python
V1_1_0_0/MGC3130/setup.py
MatteoDestro/RaspberryPi_Gesture_MGC3130
071c7d26dab897786dcfd6fc1e5faac9e3531b4b
[ "BSD-2-Clause" ]
1
2021-04-19T12:09:36.000Z
2021-04-19T12:09:36.000Z
V1_1_0_0/MGC3130/setup.py
MatteoDestro/RaspberryPi_Gesture_MGC3130
071c7d26dab897786dcfd6fc1e5faac9e3531b4b
[ "BSD-2-Clause" ]
null
null
null
V1_1_0_0/MGC3130/setup.py
MatteoDestro/RaspberryPi_Gesture_MGC3130
071c7d26dab897786dcfd6fc1e5faac9e3531b4b
[ "BSD-2-Clause" ]
null
null
null
from distutils.core import setup setup(name = "MGC3130", version = "1.1", description = "MGC3130 Library", long_description = "This package is usefull to manage the MGC3130 gestic controller developed by Microchip", author = "Matteo Destro", auth...
40.923077
115
0.541353
4a0061d337367fec129df78fe6669e7c177901b4
288
py
Python
flu/sequence_and_annotations/muscle_batch_align.py
iosonofabio/FitnessInference
3de97a9301733ac9e47ebc78f4e76f7530ccb538
[ "MIT" ]
11
2015-08-24T05:20:56.000Z
2021-08-13T13:58:31.000Z
flu/sequence_and_annotations/muscle_batch_align.py
iosonofabio/FitnessInference
3de97a9301733ac9e47ebc78f4e76f7530ccb538
[ "MIT" ]
3
2015-08-24T04:43:25.000Z
2021-07-06T00:33:44.000Z
flu/sequence_and_annotations/muscle_batch_align.py
iosonofabio/FitnessInference
3de97a9301733ac9e47ebc78f4e76f7530ccb538
[ "MIT" ]
3
2019-08-30T18:52:49.000Z
2021-06-15T06:47:04.000Z
import glob import os flist = glob.glob('../data/gisaid_H3N2_all_years_human_full_date_???.fasta') for fname in flist: cmd = ['qsub', '-cwd -l h_vmem=8G -l h_rt=00:59:59', 'muscle_script.sh', fname, fname[:-6]+'_aligned.fasta'] os.system(' '.join(cmd)) print ' '.join(cmd)
28.8
113
0.65625
4a00642668fabac77d69b7ebeb72fe815fee840e
1,190
py
Python
tests/helpers.py
MrKevinWeiss/riot_pal
61e8229bc957d4297bbd1bad4bc4d229f6deee62
[ "MIT" ]
1
2018-08-24T06:52:47.000Z
2018-08-24T06:52:47.000Z
tests/helpers.py
MrKevinWeiss/riot_pal
61e8229bc957d4297bbd1bad4bc4d229f6deee62
[ "MIT" ]
17
2018-10-11T12:19:19.000Z
2019-10-22T14:28:29.000Z
tests/helpers.py
MrKevinWeiss/riot_pal
61e8229bc957d4297bbd1bad4bc4d229f6deee62
[ "MIT" ]
2
2019-10-18T12:58:33.000Z
2020-01-24T09:55:20.000Z
# Copyright (c) 2018 Kevin Weiss, for HAW Hamburg <kevin.weiss@haw-hamburg.de> # # This file is subject to the terms and conditions of the MIT License. See the # file LICENSE in the top level directory for more details. # SPDX-License-Identifier: MIT """Helper functions for running tests on RIOT PAL.""" def _try_...
25.319149
79
0.620168
4a0064bde336d8a6ac533e7ec6ab8993b453efcd
4,954
py
Python
tests/test_managed_keys.py
egberts/bind9_parser
ee7b845a4319acfa6bb924e3aec853cf6a28b61c
[ "MIT" ]
5
2020-04-24T14:03:18.000Z
2021-08-12T15:38:55.000Z
tests/test_managed_keys.py
egberts/bind9_parser
ee7b845a4319acfa6bb924e3aec853cf6a28b61c
[ "MIT" ]
15
2020-03-05T09:39:33.000Z
2022-03-05T08:36:44.000Z
tests/test_managed_keys.py
egberts/bind9_parser
ee7b845a4319acfa6bb924e3aec853cf6a28b61c
[ "MIT" ]
2
2020-07-26T08:24:42.000Z
2022-03-24T17:55:14.000Z
#!/usr/bin/env python3 """ File: test_managed_keys.py Clause: view, managed-keys Statement: managed-keys Description: Performs unit test on the isc_managed_keys.py source file. The managed-keys statement used by either by: * 'view' clause as a statement or * top-level ...
36.160584
101
0.623335
4a0064eccfa0d77de9313c7a4bc4caa159a7db18
5,021
py
Python
lib/datasets/pascal_ctx.py
andreABbauer/HRNet-Semantic-Segmentation
5618ddd1416cb5d1b861eab2c5d46e2b31c3b71d
[ "MIT" ]
84
2021-02-24T11:54:00.000Z
2022-03-29T03:47:20.000Z
lib/datasets/pascal_ctx.py
andreABbauer/HRNet-Semantic-Segmentation
5618ddd1416cb5d1b861eab2c5d46e2b31c3b71d
[ "MIT" ]
19
2021-03-14T06:52:36.000Z
2022-03-29T12:21:27.000Z
lib/datasets/pascal_ctx.py
andreABbauer/HRNet-Semantic-Segmentation
5618ddd1416cb5d1b861eab2c5d46e2b31c3b71d
[ "MIT" ]
25
2021-02-28T06:52:39.000Z
2022-03-22T08:34:15.000Z
# ------------------------------------------------------------------------------ # Copyright (c) Microsoft # Licensed under the MIT License. # Written by Ke Sun (sunk@mail.ustc.edu.cn) # Referring to the implementation in # https://github.com/zhanghang1989/PyTorch-Encoding # -------------------------------------------...
36.649635
80
0.533559
4a00653220ff0cc8a9700360f2fd19ed6496f435
1,175
py
Python
tests/python/gaia-ui-tests/gaiatest/tests/functional/contacts/test_default_contact_image.py
marshall/gaia
00722269f5d559595fd2f79d9dd70310758af08c
[ "Apache-2.0" ]
1
2019-02-13T23:44:14.000Z
2019-02-13T23:44:14.000Z
tests/python/gaia-ui-tests/gaiatest/tests/functional/contacts/test_default_contact_image.py
marshall/gaia
00722269f5d559595fd2f79d9dd70310758af08c
[ "Apache-2.0" ]
null
null
null
tests/python/gaia-ui-tests/gaiatest/tests/functional/contacts/test_default_contact_image.py
marshall/gaia
00722269f5d559595fd2f79d9dd70310758af08c
[ "Apache-2.0" ]
null
null
null
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. try: from marionette.wait import Wait except: from marionette_driver.wait import Wait from gaiatest import Gaia...
33.571429
104
0.718298
4a0066c16e7d6278b15c597e8967b5acbc7daa71
7,664
py
Python
sdk/python/pulumi_azure_nextgen/web/get_web_app_source_control_slot.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/web/get_web_app_source_control_slot.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/web/get_web_app_source_control_slot.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from .. import _utilities, _tables from ...
38.129353
220
0.654489
4a00680280f1e6ec29d548a0ce84580a1a74fc95
2,130
py
Python
test/test_role_assign.py
talon-one/talon_one.py
f863bb3c2cc5ddc94d9227adcf14947b2ea7db41
[ "MIT" ]
1
2021-03-05T06:41:26.000Z
2021-03-05T06:41:26.000Z
test/test_role_assign.py
talon-one/talon_one.py
f863bb3c2cc5ddc94d9227adcf14947b2ea7db41
[ "MIT" ]
1
2021-09-07T08:56:58.000Z
2021-09-07T08:56:58.000Z
test/test_role_assign.py
talon-one/talon_one.py
f863bb3c2cc5ddc94d9227adcf14947b2ea7db41
[ "MIT" ]
1
2019-05-21T10:27:54.000Z
2019-05-21T10:27:54.000Z
# coding: utf-8 """ Talon.One API The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns. #...
33.28125
647
0.621127
4a0068974650d6578c5b206d53e14858f8e81490
363
py
Python
cms/utils/compat/urls.py
samirasnoun/django_cms_gallery_image
7792aa06a60877d86c022e73b60d0d669e79cb74
[ "BSD-3-Clause" ]
1
2019-04-15T10:28:46.000Z
2019-04-15T10:28:46.000Z
cms/utils/compat/urls.py
samirasnoun/django_cms_gallery_image
7792aa06a60877d86c022e73b60d0d669e79cb74
[ "BSD-3-Clause" ]
5
2021-03-19T15:39:27.000Z
2021-09-08T02:47:21.000Z
cms/utils/compat/urls.py
samirasnoun/django_cms_gallery_image
7792aa06a60877d86c022e73b60d0d669e79cb74
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- try: from urllib import urlencode from urlparse import urlparse, urljoin from urllib import unquote except ImportError: from urllib.parse import urlencode # nopyflakes from urllib.parse import urlparse # nopyflakes from urllib.parse import unquote # nopyflakes from...
33
52
0.732782
4a006a575496d3d1bdb939ab3ac24730e15fcfeb
2,101
py
Python
dvc/command/remove.py
amisev/dvc
025de9aeb509a539d5560f82caf47e851162f4a2
[ "Apache-2.0" ]
2
2019-06-23T14:24:48.000Z
2019-07-08T12:22:53.000Z
dvc/command/remove.py
urantialife/dvc
5b018047060e0316207eea6ca818966380f740f0
[ "Apache-2.0" ]
null
null
null
dvc/command/remove.py
urantialife/dvc
5b018047060e0316207eea6ca818966380f740f0
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals import argparse import logging import dvc.prompt as prompt from dvc.exceptions import DvcException from dvc.command.base import CmdBase, append_doc_link logger = logging.getLogger(__name__) class CmdRemove(CmdBase): def _is_outs_only(self, target): if not self.a...
26.935897
76
0.611614
4a006ae8dd1cb5ed1f3d61a48e4699a9c536c3ad
1,624
py
Python
problems/test_0685_union_find.py
chrisxue815/leetcode_python
dec3c160d411a5c19dc8e9d96e7843f0e4c36820
[ "Unlicense" ]
1
2017-06-17T23:47:17.000Z
2017-06-17T23:47:17.000Z
problems/test_0685_union_find.py
chrisxue815/leetcode_python
dec3c160d411a5c19dc8e9d96e7843f0e4c36820
[ "Unlicense" ]
null
null
null
problems/test_0685_union_find.py
chrisxue815/leetcode_python
dec3c160d411a5c19dc8e9d96e7843f0e4c36820
[ "Unlicense" ]
null
null
null
import unittest import utils def find_root(parents, node): while node != parents[node]: node = parents[node] return node # O(nlog(n)) time. O(n) space. Union-find. class Solution: def findRedundantDirectedConnection(self, edges): """ :type edges: List[List[int]] :rtype: L...
25.777778
85
0.54064
4a006b102108232ff85e292f6dcd2a733a923aa3
3,864
py
Python
Diff/diff.py
rvantonder/Packages
afbada0dff69d2639e898d27b5a814fd839b8c97
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
62
2021-01-13T07:09:22.000Z
2022-03-14T06:06:10.000Z
Diff/diff.py
rvantonder/Packages
afbada0dff69d2639e898d27b5a814fd839b8c97
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
9
2018-05-04T19:38:47.000Z
2021-11-30T22:51:18.000Z
Diff/diff.py
rvantonder/Packages
afbada0dff69d2639e898d27b5a814fd839b8c97
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
14
2018-02-21T20:02:04.000Z
2022-01-11T15:18:04.000Z
import codecs import difflib import os.path import time import sublime import sublime_plugin def splitlines_keep_ends(text): lines = text.split('\n') # Need to insert back the newline characters between lines, difflib # requires this. if len(lines) > 0: for i in range(len(lines) - 1): ...
31.16129
93
0.620342
4a006bb6ed9fefeefb13a219236f3d74a17cc587
720
py
Python
derek.py
milmd90/TwitterBot
bc0df4f289e6b4eb3d5c0f0144d1b11280e3735c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
derek.py
milmd90/TwitterBot
bc0df4f289e6b4eb3d5c0f0144d1b11280e3735c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
derek.py
milmd90/TwitterBot
bc0df4f289e6b4eb3d5c0f0144d1b11280e3735c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import sys import wolfram_api import mongo def ask(id, user, text) : snts = get_sentences(text) response = [] for snt in snts : response.append(command(id, user, snt)) return response def command(id, user, sent) : words = get_words(sent) action = words[0] words.pop(0) msg = ' '.join(words) if action == '...
21.176471
98
0.651389
4a006bc85d4d93fcb84c91d6db118eb79be13d59
85,698
py
Python
django/db/models/fields/__init__.py
August1996/Django
d392fc293c9439c19451e152f9560f24d1659563
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
django/db/models/fields/__init__.py
August1996/Django
d392fc293c9439c19451e152f9560f24d1659563
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
django/db/models/fields/__init__.py
August1996/Django
d392fc293c9439c19451e152f9560f24d1659563
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
import collections import copy import datetime import decimal import itertools import operator import uuid import warnings from base64 import b64decode, b64encode from functools import partialmethod, total_ordering from django import forms from django.apps import apps from django.conf import settings from django.core ...
36.11378
117
0.591426
4a006bff05d551ecf3602e89bbe8728bca630741
731
py
Python
78. Subsets.py
Nriver/leetcode
e0b30fae8a31513172fcbd13d67eded8922ba785
[ "MIT" ]
null
null
null
78. Subsets.py
Nriver/leetcode
e0b30fae8a31513172fcbd13d67eded8922ba785
[ "MIT" ]
null
null
null
78. Subsets.py
Nriver/leetcode
e0b30fae8a31513172fcbd13d67eded8922ba785
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Author: zengjq # @Date: 2020-10-21 15:23:40 # @Last Modified by: zengjq # @Last Modified time: 2020-10-21 16:10:22 class Solution: # 79 mem 100 def subsets1(self, nums): res = [] l = len(nums) # 转换成一个二进制过滤器问题 for x in range(2 ** l): se...
22.151515
66
0.504788
4a006c1dcf28db4db3f97a4ee79bfeade391333f
20,256
py
Python
psutil/_common.py
weirongbi1992/psutils
4dde104ffccd3a97b726f05975e681699a337c41
[ "BSD-3-Clause" ]
null
null
null
psutil/_common.py
weirongbi1992/psutils
4dde104ffccd3a97b726f05975e681699a337c41
[ "BSD-3-Clause" ]
1
2021-12-28T09:27:13.000Z
2021-12-28T09:27:13.000Z
psutil/_common.py
weirongbi1992/psutils
4dde104ffccd3a97b726f05975e681699a337c41
[ "BSD-3-Clause" ]
1
2021-12-28T09:34:01.000Z
2021-12-28T09:34:01.000Z
# Copyright (c) 2009, Giampaolo Rodola'. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Common objects shared by __init__.py and _ps*.py modules.""" # Note: this module is imported by setup.py so it should not import # psutil or third-part...
31.067485
79
0.598094
4a006c81b5d473c3b9054a4c39ff70d833933463
7,336
py
Python
dltk/models/gan/dcgan.py
mseitzer/DLTK
3237aa6c7ed63aa177ca90eafcc076d144155a34
[ "Apache-2.0" ]
17
2019-03-24T08:36:56.000Z
2021-12-28T11:42:56.000Z
dltk/models/gan/dcgan.py
mseitzer/DLTK
3237aa6c7ed63aa177ca90eafcc076d144155a34
[ "Apache-2.0" ]
null
null
null
dltk/models/gan/dcgan.py
mseitzer/DLTK
3237aa6c7ed63aa177ca90eafcc076d144155a34
[ "Apache-2.0" ]
6
2019-05-19T10:37:18.000Z
2021-12-04T05:13:01.000Z
from __future__ import division from __future__ import absolute_import from __future__ import print_function import tensorflow as tf import numpy as np from tensorflow.python.ops import control_flow_ops from tensorflow.python.training import moving_averages from dltk.core.modules import * class DCGAN(AbstractModule)...
39.654054
115
0.580425
4a006ca74b665bd83ac179e089d4d29e1785346b
6,725
py
Python
webwhatsapi/wapi_js_wrapper.py
Phlop/WebWhatsapp-Wrapper
77e01d06a13e74f64fe2c2618ee7bdf6972ca1f1
[ "MIT" ]
null
null
null
webwhatsapi/wapi_js_wrapper.py
Phlop/WebWhatsapp-Wrapper
77e01d06a13e74f64fe2c2618ee7bdf6972ca1f1
[ "MIT" ]
null
null
null
webwhatsapi/wapi_js_wrapper.py
Phlop/WebWhatsapp-Wrapper
77e01d06a13e74f64fe2c2618ee7bdf6972ca1f1
[ "MIT" ]
null
null
null
import os import time import collections import numpy as np from selenium.common.exceptions import WebDriverException, JavascriptException from six import string_types from threading import Thread from .objects.message import factory_message from selenium.common.exceptions import TimeoutException class JsException(Ex...
33.79397
123
0.620669
4a006ce519bdd6b8549c77c33d21c81435a00d49
3,668
py
Python
azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/network_security_group.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "MIT" ]
4
2016-06-17T23:25:29.000Z
2022-03-30T22:37:45.000Z
azure/mgmt/network/v2016_09_01/models/network_security_group.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
2
2016-09-30T21:40:24.000Z
2017-11-10T18:16:18.000Z
azure/mgmt/network/v2016_09_01/models/network_security_group.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
3
2016-05-03T20:49:46.000Z
2017-10-05T21:05:27.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
42.16092
164
0.643948
4a006d86e8843b7f53089cd2bbc58e6bf0bead27
3,115
py
Python
samples/purchase/purchase.py
VictorCoCo/flask-ask
526b3a272fdd6e1438e2191c5ab08ff20853817d
[ "Apache-2.0" ]
null
null
null
samples/purchase/purchase.py
VictorCoCo/flask-ask
526b3a272fdd6e1438e2191c5ab08ff20853817d
[ "Apache-2.0" ]
null
null
null
samples/purchase/purchase.py
VictorCoCo/flask-ask
526b3a272fdd6e1438e2191c5ab08ff20853817d
[ "Apache-2.0" ]
null
null
null
import logging import os import requests from flask import Flask, json, render_template from flask_ask import ( Ask, request, session, question, statement, context, buy, upsell, refund, logger, ) from model import Product app = Flask(__name__) ask = Ask(app, "/") logging.getLog...
29.666667
88
0.694703
4a006e80f0b28a6d5a227d1b851541352a1598e6
853
py
Python
storeApi/migrations/0017_auto_20151006_1511.py
Arlefreak/MaloBarba
7c3cc0238d6bf0717fb072eac3812cd79607824a
[ "MIT" ]
null
null
null
storeApi/migrations/0017_auto_20151006_1511.py
Arlefreak/MaloBarba
7c3cc0238d6bf0717fb072eac3812cd79607824a
[ "MIT" ]
null
null
null
storeApi/migrations/0017_auto_20151006_1511.py
Arlefreak/MaloBarba
7c3cc0238d6bf0717fb072eac3812cd79607824a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('storeApi', '0016_auto_20151006_1452'), ] operations = [ migrations.RenameField( model_name='adress', ...
24.371429
84
0.547479
4a006fcca8684e17717a99a7b1ff332b8840de80
5,386
py
Python
transformation.py
hendrikp/Deformation-Transfer-for-Triangle-Meshes
fbb3b73c78cf3df529759f7497cc1894be5754bb
[ "MIT" ]
3
2022-01-09T14:43:34.000Z
2022-01-13T01:45:27.000Z
transformation.py
hendrikp/Deformation-Transfer-for-Triangle-Meshes
fbb3b73c78cf3df529759f7497cc1894be5754bb
[ "MIT" ]
null
null
null
transformation.py
hendrikp/Deformation-Transfer-for-Triangle-Meshes
fbb3b73c78cf3df529759f7497cc1894be5754bb
[ "MIT" ]
null
null
null
import numpy as np import tqdm from scipy import sparse import meshlib from config import ConfigFile from correspondence import get_correspondence, compute_adjacent_by_edges, TransformMatrix # PHYTHONPATH is extended by C:\git from FaceSpeechProcessing import facialdata as fd # static functions for usage of facial d...
38.748201
135
0.63238
4a00754d76cacfc1ee6bb738576ea5333af93d19
114
py
Python
month01/all_code/day15/package01/package02/__init__.py
chaofan-zheng/tedu-python-demo
abe983ddc52690f4726cf42cc6390cba815026d8
[ "Apache-2.0" ]
4
2021-01-07T14:25:15.000Z
2021-02-01T10:36:10.000Z
month01/all_code/day15/package01/package02/__init__.py
chaofan-zheng/tedu-python-demo
abe983ddc52690f4726cf42cc6390cba815026d8
[ "Apache-2.0" ]
null
null
null
month01/all_code/day15/package01/package02/__init__.py
chaofan-zheng/tedu-python-demo
abe983ddc52690f4726cf42cc6390cba815026d8
[ "Apache-2.0" ]
null
null
null
import package01.package02.module02 from package01.package02.module02 import func01 def xxx(): print("大傻X")
16.285714
47
0.77193
4a007563830483d74f333b76fe6b6b38185f0fd7
599
py
Python
aula4/aula4.py
jessicsous/Curso_Python
94c9b70ec03022b21ac23bf85918aa20ce4cfdd1
[ "MIT" ]
1
2021-09-21T01:50:10.000Z
2021-09-21T01:50:10.000Z
aula4/aula4.py
jessicsous/Curso_Python
94c9b70ec03022b21ac23bf85918aa20ce4cfdd1
[ "MIT" ]
null
null
null
aula4/aula4.py
jessicsous/Curso_Python
94c9b70ec03022b21ac23bf85918aa20ce4cfdd1
[ "MIT" ]
1
2021-10-04T19:49:04.000Z
2021-10-04T19:49:04.000Z
''' tipos de dados str - string - textos 'assim' "assim" int - inteiro - 123456 0 -10 -20 -30 float - real/ponto flutuante - 10.50 1.5 -10.10 -50.93 0.0 bool - booleano/lógico - True/False 10 == 10 ''' print('Luiz', type('Luiz')) # a função type retorna o tipo do valor print('10', type('10')) print(10, type(10)) # a...
31.526316
73
0.63606
4a0075d6d6fdd385431d7f5bc19e270242124169
9,583
py
Python
wandb/integration/fastai/__init__.py
soumik12345/client
31e4c2b143e6c219ea005fe4477e294f383f6888
[ "MIT" ]
null
null
null
wandb/integration/fastai/__init__.py
soumik12345/client
31e4c2b143e6c219ea005fe4477e294f383f6888
[ "MIT" ]
null
null
null
wandb/integration/fastai/__init__.py
soumik12345/client
31e4c2b143e6c219ea005fe4477e294f383f6888
[ "MIT" ]
null
null
null
""" This module hooks fast.ai v1 Learners to Weights & Biases through a callback. Requested logged data can be configured through the callback constructor. Examples: WandbCallback can be used when initializing the Learner:: ``` from wandb.fastai import WandbCallback [...] learn = Learn...
37.728346
120
0.584681
4a00789b5d7a04e2bbf64574a9eab87dc3d28f4e
1,083
py
Python
2020/02 February/dp02212020.py
vishrutkmr7/DailyPracticeProblemsDIP
d1bfbc75f2024736c22c05385f753a90ddcfa0f5
[ "MIT" ]
5
2019-08-06T02:34:41.000Z
2022-01-08T03:03:16.000Z
2020/02 February/dp02212020.py
ourangzeb/DailyPracticeProblemsDIP
66c07af88754e5d59b243e3ee9f02db69f7c0a77
[ "MIT" ]
15
2021-06-01T14:04:16.000Z
2022-03-08T21:17:22.000Z
2020/02 February/dp02212020.py
ourangzeb/DailyPracticeProblemsDIP
66c07af88754e5d59b243e3ee9f02db69f7c0a77
[ "MIT" ]
4
2019-09-19T20:00:05.000Z
2021-08-16T11:31:51.000Z
# This problem was recently asked by Microsoft: # Given a node in a connected directional graph, create a copy of it. class Node: def __init__(self, value, adj=None): self.value = value self.adj = adj # Variable to help print graph self._print_visited = set() if self.adj ...
21.66
81
0.550323
4a0079354d509aa7ce90d8191ea8dec1dfe715b7
447
py
Python
wrap_callgraph/utils.py
theGloves/wrap_callgraph
c4a0756ae1270fef95c30bdf544df2d0f68bfe8f
[ "MIT" ]
null
null
null
wrap_callgraph/utils.py
theGloves/wrap_callgraph
c4a0756ae1270fef95c30bdf544df2d0f68bfe8f
[ "MIT" ]
2
2020-09-06T23:00:28.000Z
2021-05-08T03:29:54.000Z
wrap_callgraph/utils.py
theGloves/wrap_callgraph
c4a0756ae1270fef95c30bdf544df2d0f68bfe8f
[ "MIT" ]
null
null
null
def get_pkg_name(path): if path is None or not isinstance(path, str): return "" if "/" in path: return path.split("/")[-1] return path def match_pkg(s, pattern): pattern_list = [] if not isinstance(pattern, list): pattern_list.append(pattern) else: pattern_list ...
23.526316
49
0.579418
4a007973cf5f84255a90e26297d645e4bfe5ec21
16,396
py
Python
flax/nn/recurrent.py
jaehlee/flax
e01e2bcb012211d48e4c75e78297b8e15d742a37
[ "Apache-2.0" ]
1
2021-09-06T12:13:20.000Z
2021-09-06T12:13:20.000Z
flax/nn/recurrent.py
jaehlee/flax
e01e2bcb012211d48e4c75e78297b8e15d742a37
[ "Apache-2.0" ]
1
2021-08-16T09:16:55.000Z
2021-08-16T09:16:55.000Z
flax/nn/recurrent.py
jaehlee/flax
e01e2bcb012211d48e4c75e78297b8e15d742a37
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The Flax 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 or agreed to in wri...
37.179138
80
0.657294
4a0079a820b29b20c8e83e3e496114747673580b
3,255
py
Python
general_language_model/utils.py
Adoni/general_languange_model
e12594226918b18ec8abdfac918cb3f74d481b9d
[ "MIT" ]
1
2019-01-12T15:36:48.000Z
2019-01-12T15:36:48.000Z
general_language_model/utils.py
Adoni/general_languange_model
e12594226918b18ec8abdfac918cb3f74d481b9d
[ "MIT" ]
null
null
null
general_language_model/utils.py
Adoni/general_languange_model
e12594226918b18ec8abdfac918cb3f74d481b9d
[ "MIT" ]
null
null
null
# encoding: utf-8 """ utils.py ~~~~~~~~~ Here are some helper classes and functions :author: Xiaofei Sun :contact: adoni1203@gmail.com :date: 2018/5/28 :license: MIT, see LICENSE for more details. """ import os import torch class Dictionary(object): def __init__(self): ...
28.552632
80
0.549309
4a0079ac38da2583bc2abc951e4f9a1d2214b7ba
470
py
Python
django/core/migrations/0006_auto_20181206_1449.py
TrainerDex/trainerdex.co.uk
82b029b8ac480686ec192233c5bc62521d480f88
[ "Apache-2.0" ]
1
2021-03-04T14:46:31.000Z
2021-03-04T14:46:31.000Z
django/core/migrations/0006_auto_20181206_1449.py
TrainerDex/trainerdex.co.uk
82b029b8ac480686ec192233c5bc62521d480f88
[ "Apache-2.0" ]
99
2020-09-10T11:00:59.000Z
2022-03-29T09:08:40.000Z
django/core/migrations/0006_auto_20181206_1449.py
TrainerDex/trainerdex.co.uk
82b029b8ac480686ec192233c5bc62521d480f88
[ "Apache-2.0" ]
1
2021-12-21T00:54:01.000Z
2021-12-21T00:54:01.000Z
# Generated by Django 2.1.3 on 2018-12-06 14:49 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("core", "0005_discordguildmembership_active"), ] operations = [ migrations.AlterModelOptions( name="discordguildmembership", ...
22.380952
57
0.580851
4a0079b608fb2a64b7c4c283976eae05ad66c028
9,791
py
Python
grouper/ctl/user.py
aneeq009/merou
7a87b43aaf64244932fa460842132a2d9329e704
[ "Apache-2.0" ]
58
2017-05-26T06:46:24.000Z
2022-03-25T20:55:51.000Z
grouper/ctl/user.py
aneeq009/merou
7a87b43aaf64244932fa460842132a2d9329e704
[ "Apache-2.0" ]
74
2017-06-16T17:48:37.000Z
2022-03-28T23:09:54.000Z
grouper/ctl/user.py
aneeq009/merou
7a87b43aaf64244932fa460842132a2d9329e704
[ "Apache-2.0" ]
43
2017-05-20T22:11:51.000Z
2022-03-25T00:24:56.000Z
import logging import sys from typing import TYPE_CHECKING from grouper import public_key from grouper.ctl.base import CtlCommand from grouper.ctl.util import ensure_valid_username from grouper.models.audit_log import AuditLog from grouper.models.user import User from grouper.plugin.exceptions import PluginRejectedDis...
39.321285
98
0.620264
4a007a61b65a5c01fb2efd41a54638898a204973
4,852
py
Python
pirates/battle/BattleSkillDiary.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
81
2018-04-08T18:14:24.000Z
2022-01-11T07:22:15.000Z
pirates/battle/BattleSkillDiary.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
4
2018-09-13T20:41:22.000Z
2022-01-08T06:57:00.000Z
pirates/battle/BattleSkillDiary.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
26
2018-05-26T12:49:27.000Z
2021-09-11T09:11:59.000Z
from pirates.battle import WeaponGlobals from pirates.uberdog.UberDogGlobals import InventoryType class BattleSkillDiary(): IDLE = 0 CHARGING = 1 def __init__(self, cr, av): self.cr = cr self.av = av self.__timers = {} self.__hits = {} def startRecharging(self, skillId...
35.676471
120
0.599134
4a007abb840efc9dc51c4b626eee94a244fce6e9
413
py
Python
problem_solving/warmup/mini_max_sum/main.py
hugolribeiro/hackerrank_exercises
d2757b24479c26ec39e01091e3a15e8980e97864
[ "MIT" ]
null
null
null
problem_solving/warmup/mini_max_sum/main.py
hugolribeiro/hackerrank_exercises
d2757b24479c26ec39e01091e3a15e8980e97864
[ "MIT" ]
null
null
null
problem_solving/warmup/mini_max_sum/main.py
hugolribeiro/hackerrank_exercises
d2757b24479c26ec39e01091e3a15e8980e97864
[ "MIT" ]
null
null
null
# import math # import os # import random # import re # import sys # Complete the miniMaxSum function below. def miniMaxSum(arr): sum_all = sum(arr) max_sum = sum_all - min(arr) min_sum = sum_all - max(arr) print(f'{min_sum} {max_sum}') ################################################# # if __name__...
19.666667
52
0.556901
4a007aefe51b0d8d97dc53e86250107936bfcc57
3,287
py
Python
examples/conformer/saved_model.py
Thumb-Technologies/TensorFlowASR
37ea12af04a8f2c13f75a617f4aa4331f95ce945
[ "Apache-2.0" ]
null
null
null
examples/conformer/saved_model.py
Thumb-Technologies/TensorFlowASR
37ea12af04a8f2c13f75a617f4aa4331f95ce945
[ "Apache-2.0" ]
null
null
null
examples/conformer/saved_model.py
Thumb-Technologies/TensorFlowASR
37ea12af04a8f2c13f75a617f4aa4331f95ce945
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Huy Le Nguyen (@usimarit) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
28.094017
114
0.731974
4a007b327c29af826678d4fa1cf11d1e52012e72
427
py
Python
lambda_zip/lambda.py
patheard/opentelemetry-lambda
0c53a363e94f54117956764de909a5076807e92a
[ "MIT" ]
null
null
null
lambda_zip/lambda.py
patheard/opentelemetry-lambda
0c53a363e94f54117956764de909a5076807e92a
[ "MIT" ]
1
2022-01-20T21:35:25.000Z
2022-01-20T21:35:25.000Z
lambda_zip/lambda.py
mohamed-cds/opentelemetry-lambda
4a8d3cb351f18c13264b7df3b97504ac816345f7
[ "MIT" ]
1
2021-12-17T20:46:51.000Z
2021-12-17T20:46:51.000Z
#! /usr/bin/python3 import boto3 import json import os def handler(event, context): client = boto3.client("s3") client.list_buckets() client = boto3.client("ec2") client.describe_instances() return { "statusCode": 200, "headers": { "Content-Type": "application/jso...
19.409091
47
0.550351
4a007c8838d2b277323839d30859357b7ea75578
4,338
py
Python
test/dataset_helpers_test.py
ImageMarkup/isic-archive
7cd8097886d685ec629e2fcba079271fb77d028f
[ "Apache-2.0" ]
42
2015-12-12T14:05:46.000Z
2022-03-26T15:20:39.000Z
test/dataset_helpers_test.py
ImageMarkup/isic-archive
7cd8097886d685ec629e2fcba079271fb77d028f
[ "Apache-2.0" ]
494
2015-07-09T16:14:12.000Z
2021-03-09T09:37:36.000Z
test/dataset_helpers_test.py
ImageMarkup/uda
d221af3368baf3a06ecab67e69e9d0077426c8f9
[ "Apache-2.0" ]
12
2015-08-20T14:20:48.000Z
2020-10-20T01:14:44.000Z
import re from isic_archive.models.dataset_helpers import matchFilenameRegex def assertMatch(originalFilename, csvFilename): """Assert that the filename in the CSV matches the original filename.""" regex = matchFilenameRegex(csvFilename) assert re.match(regex, originalFilename) is not None def assertNo...
49.295455
91
0.785846
4a007c981f855a18550ac15dc309f64185bd20af
18,135
py
Python
cogs/lottory.py
SpenserPorter/discord_lotto_bot
7ca427df82cea05e6fd54194c380657b9bd8502b
[ "MIT" ]
null
null
null
cogs/lottory.py
SpenserPorter/discord_lotto_bot
7ca427df82cea05e6fd54194c380657b9bd8502b
[ "MIT" ]
5
2019-11-15T02:13:56.000Z
2022-03-12T00:22:55.000Z
cogs/lottory.py
SpenserPorter/discord_lotto_bot
7ca427df82cea05e6fd54194c380657b9bd8502b
[ "MIT" ]
2
2019-10-16T14:39:27.000Z
2019-11-03T23:58:20.000Z
import discord import numpy as np import lotto_dao as db import asyncio import re from discord.ext import commands ticket_cost = 10000 #{Megaball:{num_matches:payout}} payout_table = {True:{0:0*ticket_cost, 1:3*ticket_cost, 2:10*ticket_cost, 3:150*ticket_cost, 4:15000*ticket_cost}, False:{0:0*ticket_c...
50.51532
302
0.624262
4a007ce1dcc9e1c57868804a5eefc69a29a8e1f7
3,774
py
Python
tests/p2p_stress.py
cubetrain/CubeTrain
b930a3e88e941225c2c54219267f743c790e388f
[ "MIT" ]
null
null
null
tests/p2p_stress.py
cubetrain/CubeTrain
b930a3e88e941225c2c54219267f743c790e388f
[ "MIT" ]
null
null
null
tests/p2p_stress.py
cubetrain/CubeTrain
b930a3e88e941225c2c54219267f743c790e388f
[ "MIT" ]
null
null
null
import testUtils import p2p_test_peers import random import time import copy import threading from core_symbol import CORE_SYMBOL class StressNetwork: speeds=[1,5,10,30,60,100,500] sec=10 maxthreads=100 trList=[] def maxIndex(self): return len(self.speeds) def randA...
35.603774
129
0.555114
4a007ff3e1bf5852801832a76f36229eb40659a2
3,308
py
Python
amaascore/assets/fund.py
amaas-fintech/amaas-core-sdk-python
bd77884de6e5ab05d864638addeb4bb338a51183
[ "Apache-2.0" ]
null
null
null
amaascore/assets/fund.py
amaas-fintech/amaas-core-sdk-python
bd77884de6e5ab05d864638addeb4bb338a51183
[ "Apache-2.0" ]
8
2017-06-06T09:42:41.000Z
2018-01-16T10:16:16.000Z
amaascore/assets/fund.py
amaas-fintech/amaas-core-sdk-python
bd77884de6e5ab05d864638addeb4bb338a51183
[ "Apache-2.0" ]
8
2017-01-18T04:14:01.000Z
2017-12-01T08:03:10.000Z
from __future__ import absolute_import, division, print_function, unicode_literals from datetime import datetime, date from dateutil.parser import parse from decimal import Decimal import sys from amaascore.assets.asset import Asset # This extremely ugly hack is due to the whole Python 2 vs 3 debacle. type_check = s...
31.807692
112
0.617896
4a00808fd7f3ad7e98d27e3dd1009f7886dc5418
2,074
py
Python
data_loads/load_cabi_trips_membertype.py
georgetown-analytics/DC-Bikeshare
9f5a6a3256cff15a29f0dca6e9a9d8098ab2df28
[ "MIT" ]
11
2018-07-01T16:43:05.000Z
2020-07-17T19:08:16.000Z
data_loads/load_cabi_trips_membertype.py
noahnewberger/Bikeshare-DC
42676654d103cdaddfb76db76d1eece533251261
[ "MIT" ]
5
2021-02-08T20:21:12.000Z
2021-12-13T19:47:04.000Z
data_loads/load_cabi_trips_membertype.py
noahnewberger/Bikeshare-DC
42676654d103cdaddfb76db76d1eece533251261
[ "MIT" ]
5
2018-10-05T19:54:20.000Z
2020-10-27T11:54:09.000Z
import pandas as pd import os import util_functions as uf # TODO: Define function to pull CaBi Trip data from DDOT source def trips_to_df(cabi_trip_dir): # Loop through CSVs of Trip Data trip_df_list = [] csv_list = [f for f in os.listdir(cabi_trip_dir) if f.endswith('.txt')] for csv in csv_list: ...
30.5
92
0.675506
4a0080acebed22a142836b5fc2881b1d80663e8c
582
py
Python
matilda/data_pipeline/db_tutorial.py
AlainDaccache/Quantropy
6cfa06ed2b764471382ebf94d40af867f10433bb
[ "MIT" ]
45
2021-01-28T04:12:21.000Z
2022-02-24T13:15:50.000Z
matilda/data_pipeline/db_tutorial.py
AlainDaccache/Quantropy
6cfa06ed2b764471382ebf94d40af867f10433bb
[ "MIT" ]
32
2021-03-02T18:45:16.000Z
2022-03-12T00:53:10.000Z
matilda/data_pipeline/db_tutorial.py
AlainDaccache/Quantropy
6cfa06ed2b764471382ebf94d40af867f10433bb
[ "MIT" ]
10
2020-12-25T15:02:40.000Z
2021-12-30T11:40:15.000Z
# print(Filing.objects.as_pymongo()) # returns list of all filing objects # get filings for which assets > $100 # filings = Filing.objects(BalanceSheet__Assets__TotalAssets__gt=100) # print(filings.as_pymongo()) # won't work because Company is a Reference document for Filings, not embedded document ...
44.769231
96
0.725086
4a00813aad0d0b6368a61934d61ffc5c08e67877
12,338
py
Python
jieba/__init__.py
leonee/jieba
14a0ab046619bfffc1e8d892a3e0b4c8800f7cde
[ "MIT" ]
1
2017-01-16T18:05:50.000Z
2017-01-16T18:05:50.000Z
jieba/__init__.py
leonee/jieba
14a0ab046619bfffc1e8d892a3e0b4c8800f7cde
[ "MIT" ]
null
null
null
jieba/__init__.py
leonee/jieba
14a0ab046619bfffc1e8d892a3e0b4c8800f7cde
[ "MIT" ]
null
null
null
from __future__ import with_statement __version__ = '0.31' __license__ = 'MIT' import re import os import sys import finalseg import time import tempfile import marshal from math import log import random import threading from functools import wraps import logging DICTIONARY = "dict.txt" DICT_LOCK = threading.RLock() ...
29.306413
110
0.523748
4a0081824af78a067c2d055390e229b115bb66c6
9,832
py
Python
src/sync.py
cykyy/unms-ros-sync
36bcf6638ea0bfda6c5da6f1c5d8a1b863c17784
[ "MIT" ]
1
2020-10-03T10:52:50.000Z
2020-10-03T10:52:50.000Z
src/sync.py
cykyy/unms-ros-sync
36bcf6638ea0bfda6c5da6f1c5d8a1b863c17784
[ "MIT" ]
null
null
null
src/sync.py
cykyy/unms-ros-sync
36bcf6638ea0bfda6c5da6f1c5d8a1b863c17784
[ "MIT" ]
1
2021-04-14T10:00:11.000Z
2021-04-14T10:00:11.000Z
try: from src.unmscrm import * from src.parser import * from .ros import ros_api except Exception as e: print(':Error: some modules are missing. {}'.format(e)) class Sync: try: ros_api = ros_api() prs_obj = ParseString() except Exception as es: print('Error occurred dur...
51.47644
118
0.570077
4a0081ed8361ed206d89755dac1aea315d9208ea
67
py
Python
main.py
Alexander9673/discord-lib-py-test
871785d51b76d79bf5ec403b678451a3854e7835
[ "MIT" ]
null
null
null
main.py
Alexander9673/discord-lib-py-test
871785d51b76d79bf5ec403b678451a3854e7835
[ "MIT" ]
null
null
null
main.py
Alexander9673/discord-lib-py-test
871785d51b76d79bf5ec403b678451a3854e7835
[ "MIT" ]
null
null
null
from src import Client as client bot = client.Client("YOUR TOKEN")
22.333333
33
0.761194
4a0081ffcd0614df4f5f6255a7bf9562aac9074d
2,098
py
Python
train_zero_layer.py
ElanaPearl/ml-playground
be0309c7546c267bda3bf4c970d55b7ec673b199
[ "Apache-2.0" ]
null
null
null
train_zero_layer.py
ElanaPearl/ml-playground
be0309c7546c267bda3bf4c970d55b7ec673b199
[ "Apache-2.0" ]
null
null
null
train_zero_layer.py
ElanaPearl/ml-playground
be0309c7546c267bda3bf4c970d55b7ec673b199
[ "Apache-2.0" ]
null
null
null
import torch from torch.functional import Tensor from optimizers import Adam from zero_layer_transformer import ( Embedder, Logits, Tokens, Unembedder, ZeroLayerTransformer, ) class Softmax: def forward(self, logits: Logits) -> Tensor: # subtract mean for numeric stability, doesn't af...
32.276923
85
0.667779
4a008215cc9749a013f959ee011e99ab80d590d0
2,173
py
Python
utils.py
ankit13sharma/TradingWithYFinance
45d86fec78524bb93e7813a519153d041f81ef02
[ "MIT" ]
null
null
null
utils.py
ankit13sharma/TradingWithYFinance
45d86fec78524bb93e7813a519153d041f81ef02
[ "MIT" ]
null
null
null
utils.py
ankit13sharma/TradingWithYFinance
45d86fec78524bb93e7813a519153d041f81ef02
[ "MIT" ]
null
null
null
import yfinance as yf import pandas as pd import numpy as np import matplotlib.pyplot as plt from scipy.stats import norm def stock_data(symbol,time_period,time_interval): stock = pd.DataFrame(yf.download(symbol,period = time_period,interval = time_interval)) stock.index = pd.to_datetime(stock.index, format="%...
40.240741
123
0.675104
4a00826409bc5b086c790cc78eb1c0d05c171286
4,163
py
Python
geoscript/style/label.py
jericks/geoscript-py
8dc600343f42dd87b1981023522a1a8cf56006a9
[ "MIT" ]
null
null
null
geoscript/style/label.py
jericks/geoscript-py
8dc600343f42dd87b1981023522a1a8cf56006a9
[ "MIT" ]
null
null
null
geoscript/style/label.py
jericks/geoscript-py
8dc600343f42dd87b1981023522a1a8cf56006a9
[ "MIT" ]
null
null
null
from geoscript.style import util from geoscript.style.expression import Expression from geoscript.style.font import Font from geoscript.style.fill import Fill from geoscript.style.halo import Halo from geoscript.style.color import Color from geoscript.style.property import Property from geoscript.style.symbolizer impor...
30.837037
96
0.679078
4a0082e6b5cecedd0581d9326b6ca94f58dcc3ac
68
py
Python
teepy/__init__.py
longapalooza/teepy
5faf00a7136e11db95b37f80fddcfad6b1b7a054
[ "MIT" ]
null
null
null
teepy/__init__.py
longapalooza/teepy
5faf00a7136e11db95b37f80fddcfad6b1b7a054
[ "MIT" ]
null
null
null
teepy/__init__.py
longapalooza/teepy
5faf00a7136e11db95b37f80fddcfad6b1b7a054
[ "MIT" ]
null
null
null
__version__ = '0.3.6' __VERSION__ = __version__ from .teepy import *
22.666667
25
0.75
4a00836f3bcfb91b4a0b6ffe6a71d34f12f9c165
241
py
Python
extract.py
foamliu/DeepRankIQA
7801cb4ff2c934a9d954ace9ad52600f96396125
[ "MIT" ]
4
2019-11-04T07:34:17.000Z
2020-04-21T02:22:37.000Z
extract.py
foamliu/DeepRankIQA
7801cb4ff2c934a9d954ace9ad52600f96396125
[ "MIT" ]
1
2019-11-14T03:52:00.000Z
2019-11-14T09:15:15.000Z
extract.py
foamliu/DeepRankIQA
7801cb4ff2c934a9d954ace9ad52600f96396125
[ "MIT" ]
null
null
null
import zipfile def extract(filename): print('Extracting {}...'.format(filename)) zip_ref = zipfile.ZipFile(filename, 'r') zip_ref.extractall('data') zip_ref.close() if __name__ == "__main__": extract('data/data.zip')
18.538462
46
0.659751
4a0084080f9320912104e523d0a354bcfe5253c3
37
py
Python
wiremock/tests/__init__.py
sp1rs/python-wiremock
b570b0ebc60ac0d873812f21f78f2a8a4353792f
[ "Apache-2.0" ]
22
2017-07-01T14:44:04.000Z
2021-09-08T08:45:21.000Z
wiremock/tests/__init__.py
sp1rs/python-wiremock
b570b0ebc60ac0d873812f21f78f2a8a4353792f
[ "Apache-2.0" ]
37
2017-04-24T15:28:27.000Z
2021-09-20T08:58:26.000Z
wiremock/tests/__init__.py
sp1rs/python-wiremock
b570b0ebc60ac0d873812f21f78f2a8a4353792f
[ "Apache-2.0" ]
22
2017-04-24T14:58:06.000Z
2021-09-09T09:22:31.000Z
from .base import BaseClientTestCase
18.5
36
0.864865
4a0085b01c5a18b447c31112ffa1b7db9ab1d6b0
442
py
Python
Shoots/bin/info.py
lyh-ADT/Shoots
0133c6c277148687c368ad16cfe23ff0a4194ecd
[ "MIT" ]
8
2020-07-23T10:23:37.000Z
2022-03-17T07:24:26.000Z
Shoots/bin/info.py
lyh-ADT/Shoots
0133c6c277148687c368ad16cfe23ff0a4194ecd
[ "MIT" ]
1
2022-03-17T09:12:13.000Z
2022-03-18T13:43:58.000Z
Shoots/bin/info.py
lyh-ADT/Shoots
0133c6c277148687c368ad16cfe23ff0a4194ecd
[ "MIT" ]
1
2022-01-05T13:20:11.000Z
2022-01-05T13:20:11.000Z
import time class Info: OP_MOVE_UP = 0 OP_MOVE_DOWN = 1 OP_MOVE_LEFT = 2 OP_MOVE_RIGHT = 3 FACE_UP = 4 FACE_DONW = 5 FACE_LEFT = 6 FACE_RIGHT = 7 OP_SHOOT = 8 def __init__(self): self.sound = [] self.shooter = [] def get_dict(self): return {...
18.416667
42
0.513575
4a0086b04fed8d25e72fcedabbaa11af26ffad26
110
py
Python
2021/examples-in-class-2021-09-10/indentation_example1.py
ati-ozgur/course-python
38237d120043c07230658b56dc3aeb01c3364933
[ "Apache-2.0" ]
1
2021-02-04T16:59:11.000Z
2021-02-04T16:59:11.000Z
2021/examples-in-class-2021-09-10/indentation_example1.py
ati-ozgur/course-python
38237d120043c07230658b56dc3aeb01c3364933
[ "Apache-2.0" ]
null
null
null
2021/examples-in-class-2021-09-10/indentation_example1.py
ati-ozgur/course-python
38237d120043c07230658b56dc3aeb01c3364933
[ "Apache-2.0" ]
1
2019-10-30T14:37:48.000Z
2019-10-30T14:37:48.000Z
#x = -15 x = 15 if x < 0: print('A negative number is entered') print("second line") print("third line")
13.75
41
0.618182
4a008827abdbe26cca4100758c5d53892861230e
5,118
py
Python
monopoly/constants.py
XargsUK/FlameCogs
f4f3368a9816fa7a7af19ee59ea4c3307f72fa93
[ "MIT" ]
26
2019-02-11T09:00:01.000Z
2022-03-03T07:33:08.000Z
monopoly/constants.py
XargsUK/FlameCogs
f4f3368a9816fa7a7af19ee59ea4c3307f72fa93
[ "MIT" ]
15
2019-04-19T14:19:52.000Z
2022-03-15T17:20:38.000Z
monopoly/constants.py
XargsUK/FlameCogs
f4f3368a9816fa7a7af19ee59ea4c3307f72fa93
[ "MIT" ]
34
2018-12-05T22:37:44.000Z
2022-01-16T05:02:20.000Z
TILENAME = [ 'Go', 'Mediterranean Avenue', 'Community Chest', 'Baltic Avenue', 'Income Tax', 'Reading Railroad', 'Oriental Avenue', 'Chance', 'Vermont Avenue', 'Connecticut Avenue', 'Jail', 'St. Charles Place', 'Electric Company', 'States Avenue', 'Virginia Avenue', 'Pennsylvania Railroad', 'St. James Place', ...
30.831325
90
0.586557
4a00892baad35fe9ac1702e987108df6bef4599e
1,877
py
Python
ee/clickhouse/sql/clickhouse.py
msnitish/posthog
cb86113f568e72eedcb64b5fd00c313d21e72f90
[ "MIT" ]
null
null
null
ee/clickhouse/sql/clickhouse.py
msnitish/posthog
cb86113f568e72eedcb64b5fd00c313d21e72f90
[ "MIT" ]
null
null
null
ee/clickhouse/sql/clickhouse.py
msnitish/posthog
cb86113f568e72eedcb64b5fd00c313d21e72f90
[ "MIT" ]
null
null
null
# Note for the vary: these engine definitions (and many table definitions) are not in sync with cloud! from typing import Literal from django.conf import settings STORAGE_POLICY = lambda: "SETTINGS storage_policy = 'hot_to_cold'" if settings.CLICKHOUSE_ENABLE_STORAGE_POLICY else "" KAFKA_ENGINE = "Kafka('{kafka_host...
31.283333
119
0.695791
4a00894e34b9f7711607afd4698be3f937187f7f
126
py
Python
students/k3342/laboratory_works/Kataeva_Veronika/laboratory_work_1/scoreboard/board/templatetags/index.py
KataevaVeronika/ITMO_ICT_WebProgramming_2020
d8cf1d0479519bbafd34d4678e9eda2eabaeb0cf
[ "MIT" ]
null
null
null
students/k3342/laboratory_works/Kataeva_Veronika/laboratory_work_1/scoreboard/board/templatetags/index.py
KataevaVeronika/ITMO_ICT_WebProgramming_2020
d8cf1d0479519bbafd34d4678e9eda2eabaeb0cf
[ "MIT" ]
null
null
null
students/k3342/laboratory_works/Kataeva_Veronika/laboratory_work_1/scoreboard/board/templatetags/index.py
KataevaVeronika/ITMO_ICT_WebProgramming_2020
d8cf1d0479519bbafd34d4678e9eda2eabaeb0cf
[ "MIT" ]
null
null
null
from django import template register = template.Library() @register.filter def index(indexable, i): return indexable[i-1]
21
29
0.761905
4a008999e264e0c3cd54a081835acff3bdcc6399
479
py
Python
Dataset/Leetcode/test/111/559.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/test/111/559.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/test/111/559.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
class Solution: def XXX(self, root: TreeNode) -> int: # BFS,遇左右节点均为空打印退出 if not root: return 0 res = [] queque = [(1, root)] while queque: depth, first = queque.pop(0) if not first.left and not first.right: return depth ...
28.176471
53
0.48643
4a008ad352d2c4a2e2483d213bb6895386b2e661
2,576
py
Python
comps/models/comp.py
dlanghorne0428/dancesport-tracker-projec
e55d91a4f03c26d6ee8c28846a809064adfdb158
[ "MIT" ]
null
null
null
comps/models/comp.py
dlanghorne0428/dancesport-tracker-projec
e55d91a4f03c26d6ee8c28846a809064adfdb158
[ "MIT" ]
87
2020-04-15T22:29:03.000Z
2022-01-02T02:21:28.000Z
comps/models/comp.py
dlanghorne0428/dancesport-tracker-projec
e55d91a4f03c26d6ee8c28846a809064adfdb158
[ "MIT" ]
null
null
null
from datetime import datetime, timezone from django.db import models from cloudinary_storage.storage import RawMediaCloudinaryStorage from cloudinary.models import CloudinaryField def comp_logo_path(instance, filename): return "comps/{0}/{1}".format(instance.title, filename) class Comp(models.Model): title = ...
33.025641
112
0.67663
4a008b217b6136d36feb25926c61002154f11120
2,483
py
Python
iroha_cli/_commands.py
2hoursleep/Iroha-CLI
d6d39da8728a20b7ab9cf8a6e32eb061612fcb89
[ "Apache-2.0" ]
null
null
null
iroha_cli/_commands.py
2hoursleep/Iroha-CLI
d6d39da8728a20b7ab9cf8a6e32eb061612fcb89
[ "Apache-2.0" ]
null
null
null
iroha_cli/_commands.py
2hoursleep/Iroha-CLI
d6d39da8728a20b7ab9cf8a6e32eb061612fcb89
[ "Apache-2.0" ]
null
null
null
import click # ACCOUNT COMMANDS class CommandsAPI: """ Iroha Commands API utilities Supports gRPC & HTTP JSON Transactions & Queries """ def __init__(self, iroha_client): self.iroha_client = iroha_client # Account Commands def create_new_user_account(self): user_name =...
35.985507
85
0.676601
4a008b2923f028dad4bd3f0dd71dfe7568fe6774
1,514
py
Python
flashproxy/proc.py
arlolra/flashproxy
e73702e769db1ab1e02f7e2ab152cebde6e9b2b7
[ "MIT" ]
5
2015-04-18T21:00:20.000Z
2019-12-16T08:18:02.000Z
flashproxy/proc.py
infinity0/flashproxy
de8d428ab5f2dfcc830ac8a4b34985a87643749f
[ "MIT" ]
1
2020-04-15T15:56:17.000Z
2020-04-15T15:56:17.000Z
flashproxy/proc.py
arlolra/flashproxy
e73702e769db1ab1e02f7e2ab152cebde6e9b2b7
[ "MIT" ]
3
2015-04-25T22:55:17.000Z
2021-07-29T19:12:12.000Z
import errno import os import socket import stat import pwd DEFAULT_CLIENT_TRANSPORT = "websocket" # Return true iff the given fd is readable, writable, and executable only by its # owner. def check_perms(fd): mode = os.fstat(fd)[0] return (mode & (stat.S_IRWXG | stat.S_IRWXO)) == 0 # Drop privileges by swit...
31.541667
135
0.657199
4a008ba470944e1dd9cc6c356ad2701003e61cbd
3,554
py
Python
process_image_dir.py
Face-Body-Toolbox/face_alignment
619bde7ad431391f060fbfe1123962ccd578b550
[ "BSD-3-Clause" ]
1
2021-04-12T07:22:02.000Z
2021-04-12T07:22:02.000Z
process_image_dir.py
Face-Body-Toolbox/face_alignment
619bde7ad431391f060fbfe1123962ccd578b550
[ "BSD-3-Clause" ]
1
2021-04-11T09:47:34.000Z
2021-04-11T15:03:01.000Z
process_image_dir.py
sariyanidi/face_alignment_opencv
619bde7ad431391f060fbfe1123962ccd578b550
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Apr 7 18:45:22 2021 @author: sariyanidi """ import os import cv2 import argparse import face_alignment_opencv as fao import numpy as np from glob import glob # Parse command-line parameters parser = argparse.ArgumentParser() parser.add_argument("image...
44.987342
219
0.691334
4a008c6021c5c631fe627a1fd71dd4effd522a1e
922
py
Python
src/modelo/viajero.py
ManuelMasferrer/MISW4101-202111-Grupo57-sandbox
27dcd9b17315b8a90f1adb94a107abfb14525025
[ "MIT" ]
null
null
null
src/modelo/viajero.py
ManuelMasferrer/MISW4101-202111-Grupo57-sandbox
27dcd9b17315b8a90f1adb94a107abfb14525025
[ "MIT" ]
null
null
null
src/modelo/viajero.py
ManuelMasferrer/MISW4101-202111-Grupo57-sandbox
27dcd9b17315b8a90f1adb94a107abfb14525025
[ "MIT" ]
1
2021-03-08T21:59:51.000Z
2021-03-08T21:59:51.000Z
from sqlalchemy import Column, Integer, String, ForeignKey, Table from sqlalchemy.orm import relationship from .declarative_base import Base #viajero_gasto = Table( # 'viajero_gasto', Base.metadata, # Column('viajero_id', Integer, ForeignKey('viajero.id')), # Column('gasto_id', Integer, ForeignKey('gasto.id')...
28.8125
77
0.714751
4a008c6ee7829e70e1bb6ca001d63209e3da9272
17,252
py
Python
snli_cooccur.py
lei56/snli-ethics
d5b18717ff1a6d135fed52086d2406cf26adaf2f
[ "BSD-2-Clause" ]
null
null
null
snli_cooccur.py
lei56/snli-ethics
d5b18717ff1a6d135fed52086d2406cf26adaf2f
[ "BSD-2-Clause" ]
null
null
null
snli_cooccur.py
lei56/snli-ethics
d5b18717ff1a6d135fed52086d2406cf26adaf2f
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python from collections import Counter from multiprocessing import Pool from functools import partial import pickle import logging import json import os from humanfriendly import format_size WITHIN_HYPOTHESIS = 'within-hypothesis' WITHIN_PREMISE = 'within-premise' BETWEEN_PREM_HYPO = 'between-prem-h...
34.504
79
0.59767
4a008d80320a1c7ac0a53cc89def3ba87693dc44
2,259
py
Python
notify/by_email_oauth.py
bttg/UoM-WAM-Spam
8083cbac003397e9c022c02bc427454638dd235f
[ "MIT" ]
54
2019-06-20T00:50:38.000Z
2021-12-01T06:59:38.000Z
notify/by_email_oauth.py
bttg/UoM-WAM-Spam
8083cbac003397e9c022c02bc427454638dd235f
[ "MIT" ]
18
2019-06-21T00:20:54.000Z
2020-12-03T22:04:15.000Z
notify/by_email_oauth.py
bttg/UoM-WAM-Spam
8083cbac003397e9c022c02bc427454638dd235f
[ "MIT" ]
24
2019-06-20T02:49:18.000Z
2021-12-02T08:22:09.000Z
""" OAuth/Gmail API-based email notifier :author: alanung and Matthew Farrugia-Roberts """ import base64 import pickle import os.path from email.mime.text import MIMEText from googleapiclient.discovery import build from google_auth_oauthlib.flow import InstalledAppFlow from google.auth.transport.requests import Re...
34.227273
80
0.657371
4a008e3bf5d4486017a063620ae02c599ed25e42
2,532
py
Python
collectGo/collectGo2.py
mudssky/pythonScripts
bea3cab1715bee4af4a73bc07aa248d5f4f40f38
[ "MIT" ]
null
null
null
collectGo/collectGo2.py
mudssky/pythonScripts
bea3cab1715bee4af4a73bc07aa248d5f4f40f38
[ "MIT" ]
null
null
null
collectGo/collectGo2.py
mudssky/pythonScripts
bea3cab1715bee4af4a73bc07aa248d5f4f40f38
[ "MIT" ]
null
null
null
# coding:utf-8 import os import shutil rootPath = os.path.abspath('.') # 使用前需设置要收集的扩展名和 保存目录 extnameContainer ={ '.7z':[], # '.exe':[] } targetDirectory={ # '.go':os.path.join(rootPath,'go'), # '.exe':os.path.join(rootPath,'exe'), '.7z':os.path.join(rootPath,'7z2'), } def collect(path,extnameC...
30.506024
70
0.64139
4a008e80eae078b5799a7c226c81611ae05259a9
3,884
py
Python
src/primaires/scripting/memoires.py
stormi/tsunami
bdc853229834b52b2ee8ed54a3161a1a3133d926
[ "BSD-3-Clause" ]
null
null
null
src/primaires/scripting/memoires.py
stormi/tsunami
bdc853229834b52b2ee8ed54a3161a1a3133d926
[ "BSD-3-Clause" ]
null
null
null
src/primaires/scripting/memoires.py
stormi/tsunami
bdc853229834b52b2ee8ed54a3161a1a3133d926
[ "BSD-3-Clause" ]
null
null
null
# -*-coding:Utf-8 -* # Copyright (c) 2010 LE GOFF Vincent # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this # lis...
38.455446
85
0.703656
4a008eb5102d36f293b6dcad799cce020b6d5a12
3,492
py
Python
bindings/python/ensmallen/datasets/string/achromobactersproot83.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
5
2021-02-17T00:44:45.000Z
2021-08-09T16:41:47.000Z
bindings/python/ensmallen/datasets/string/achromobactersproot83.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
18
2021-01-07T16:47:39.000Z
2021-08-12T21:51:32.000Z
bindings/python/ensmallen/datasets/string/achromobactersproot83.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
3
2021-01-14T02:20:59.000Z
2021-08-04T19:09:52.000Z
""" This file offers the methods to automatically retrieve the graph Achromobacter sp. Root83. The graph is automatically retrieved from the STRING repository. References --------------------- Please cite the following if you use the data: ```bib @article{szklarczyk2019string, title={STRING v11: protein--prote...
33.257143
223
0.677835
4a008f102a22096662b2537d217b8137e6c01bcd
12,798
py
Python
pyats_ios_example.py
xander-petty/pyats-ios-sample
d61838ce7cb3d2f56cb95dc840709e332fe40a15
[ "ECL-2.0", "Apache-2.0" ]
22
2017-12-01T18:57:33.000Z
2022-02-24T01:43:34.000Z
pyats_ios_example.py
xander-petty/pyats-ios-sample
d61838ce7cb3d2f56cb95dc840709e332fe40a15
[ "ECL-2.0", "Apache-2.0" ]
3
2018-10-24T20:11:08.000Z
2021-12-02T21:04:25.000Z
pyats_ios_example.py
xander-petty/pyats-ios-sample
d61838ce7cb3d2f56cb95dc840709e332fe40a15
[ "ECL-2.0", "Apache-2.0" ]
14
2017-12-11T21:05:35.000Z
2022-03-11T14:26:04.000Z
#!/bin/env python '''pyats_ios_example.py This is a testscript example intended to walk users through basic Cisco IOS device connection, command execution and result verification using pyATS. Arguments: This script requires one script argument (testbed) to be passed in when run under standalone execution fo...
34.403226
108
0.560166
4a008f4911f95f760d94e4cd4e6c00800dd98ad9
10,449
py
Python
chime/cogs/PersonalPlaylistsCog.py
realmayus/chime
a9ad4c6e6d02ed99d45b94b6cf8ca0694ef3b6fc
[ "MIT" ]
3
2020-06-06T11:57:36.000Z
2020-06-19T09:51:56.000Z
chime/cogs/PersonalPlaylistsCog.py
realmayus/chime
a9ad4c6e6d02ed99d45b94b6cf8ca0694ef3b6fc
[ "MIT" ]
4
2020-06-19T09:42:31.000Z
2020-11-08T13:10:10.000Z
chime/cogs/PersonalPlaylistsCog.py
realmayus/chime
a9ad4c6e6d02ed99d45b94b6cf8ca0694ef3b6fc
[ "MIT" ]
1
2020-06-30T10:41:55.000Z
2020-06-30T10:41:55.000Z
import base64 import wavelink from typing import Union from discord import Message from discord.ext import commands from discord.ext.commands import Context from wavelink import Player, TrackPlaylist, BuildTrackError, Track from chime.main import prefix from chime.misc.BadRequestException import BadRequestException fro...
48.152074
281
0.5813
4a008f6bca8ca47c26ec717fb1b7ebc477554e59
2,924
py
Python
Scripts/Mapping/pdbList.py
merkllab/ConsGNN
75cf7d4d458a8c7602d96be2c0863cf5da7c4ce5
[ "MIT" ]
null
null
null
Scripts/Mapping/pdbList.py
merkllab/ConsGNN
75cf7d4d458a8c7602d96be2c0863cf5da7c4ce5
[ "MIT" ]
null
null
null
Scripts/Mapping/pdbList.py
merkllab/ConsGNN
75cf7d4d458a8c7602d96be2c0863cf5da7c4ce5
[ "MIT" ]
null
null
null
import sys import re import urllib2, urlparse, gzip from StringIO import StringIO from HTMLParser import HTMLParser # The script generates a list of the PDB-IDs together with the Pfam- and InterPro-IDs # Executio: python pdbListFamGO.py pdblist_AB class SmartRedirectHandler(urllib2.HTTPRedirectHandler): def http...
27.327103
86
0.613201
4a009034b05457e2e6d2f5ee0badd69ae1fba804
15,736
py
Python
Builds/LOCAR/Software/Windows/Python 2.7/output/plotting_py3.py
pd3d/magneto
da619b58b3e3c0ba9d6ac149e8902d8fc4614ccb
[ "MIT" ]
1
2021-05-18T16:50:11.000Z
2021-05-18T16:50:11.000Z
Builds/LOCAR/Software/Windows/Python 2.7/output/plotting_py3.py
dash-orlando/magneto
da619b58b3e3c0ba9d6ac149e8902d8fc4614ccb
[ "MIT" ]
null
null
null
Builds/LOCAR/Software/Windows/Python 2.7/output/plotting_py3.py
dash-orlando/magneto
da619b58b3e3c0ba9d6ac149e8902d8fc4614ccb
[ "MIT" ]
null
null
null
""" plotting Script developed to plot text data obtained from the LAPARO trainer --Python 3 support """ # ============== # # Import Modules # ============== # from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt import numpy as np # variables filename = "10-26-1...
31.346614
112
0.378241
4a00910b68a4cbcca8ce6199553e91a5aedb4fc1
67,055
py
Python
cms/tests/test_menu.py
rspeed/django-cms-contrib
c5fbbea191646ab922b5ff6f89a1de6baa648e7f
[ "BSD-3-Clause" ]
null
null
null
cms/tests/test_menu.py
rspeed/django-cms-contrib
c5fbbea191646ab922b5ff6f89a1de6baa648e7f
[ "BSD-3-Clause" ]
null
null
null
cms/tests/test_menu.py
rspeed/django-cms-contrib
c5fbbea191646ab922b5ff6f89a1de6baa648e7f
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import copy from cms.test_utils.project.sampleapp.cms_apps import NamespacedApp, SampleApp, SampleApp2 from django.conf import settings from django.contrib.auth.models import AnonymousUser, Permission, Group from django.template import Template, TemplateSyntaxError from django.test.utils import...
38.940186
136
0.596868
4a0091d10166c41e2747dfc3ba30fb1bc1cbb921
924
py
Python
exporters/station_collision_plot.py
jmgraeffe/ieee802-11-simplified-mac-simulator
dbc2a57785715b35bb30603532486be1aee53578
[ "MIT" ]
null
null
null
exporters/station_collision_plot.py
jmgraeffe/ieee802-11-simplified-mac-simulator
dbc2a57785715b35bb30603532486be1aee53578
[ "MIT" ]
null
null
null
exporters/station_collision_plot.py
jmgraeffe/ieee802-11-simplified-mac-simulator
dbc2a57785715b35bb30603532486be1aee53578
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt from simulation import Scheme def export(simulations, file_path, marker_styles=None): xticks = [] for scheme, simulations2 in simulations.items(): xs = [] ys = [] for num_stations, simulation in simulations2.items(): if num_stations not in...
28.875
89
0.637446
4a0092bf25205aad5674e633032a0151d5547d86
1,144
py
Python
airflow/contrib/hooks/gcp_dataproc_hook.py
suensummit/airflow
37a342d0e96a91ce2d34085e225a4e86f54c4e21
[ "Apache-2.0" ]
1
2017-06-25T14:18:15.000Z
2017-06-25T14:18:15.000Z
airflow/contrib/hooks/gcp_dataproc_hook.py
suensummit/airflow
37a342d0e96a91ce2d34085e225a4e86f54c4e21
[ "Apache-2.0" ]
3
2020-07-07T20:39:24.000Z
2021-09-29T17:34:46.000Z
airflow/contrib/hooks/gcp_dataproc_hook.py
suensummit/airflow
37a342d0e96a91ce2d34085e225a4e86f54c4e21
[ "Apache-2.0" ]
1
2020-11-04T03:17:51.000Z
2020-11-04T03:17:51.000Z
# -*- coding: utf-8 -*- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the #...
38.133333
78
0.761364
4a00935846e95f7714991357829f0a5fd81b518f
1,566
py
Python
samples/interactive-tutorials/noxfile_config.py
tetiana-karasova/python-retail
b834c1fb16212e59241267e18d38b490e962af7f
[ "Apache-2.0" ]
1
2022-02-11T14:00:31.000Z
2022-02-11T14:00:31.000Z
samples/interactive-tutorials/noxfile_config.py
tetiana-karasova/python-retail
b834c1fb16212e59241267e18d38b490e962af7f
[ "Apache-2.0" ]
null
null
null
samples/interactive-tutorials/noxfile_config.py
tetiana-karasova/python-retail
b834c1fb16212e59241267e18d38b490e962af7f
[ "Apache-2.0" ]
2
2022-01-28T09:53:16.000Z
2022-02-07T14:27:38.000Z
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
43.5
95
0.736909
4a0093664ac965433cb57ba116f6e25f3759be51
359
py
Python
silence/logging/default_logger.py
miguel-bermudo/Silence
6879e1d87c426f6cc994058c70df30b043060db1
[ "MIT" ]
1
2021-09-23T15:05:10.000Z
2021-09-23T15:05:10.000Z
silence/logging/default_logger.py
miguel-bermudo/Silence
6879e1d87c426f6cc994058c70df30b043060db1
[ "MIT" ]
null
null
null
silence/logging/default_logger.py
miguel-bermudo/Silence
6879e1d87c426f6cc994058c70df30b043060db1
[ "MIT" ]
1
2021-09-21T08:23:14.000Z
2021-09-21T08:23:14.000Z
import logging from silence.settings import settings from silence.logging.default_formatter import DefaultFormatter logger = logging.getLogger("silence") log_lvl = logging.DEBUG if settings.DEBUG_ENABLED else logging.INFO logger.setLevel(log_lvl) ch = logging.StreamHandler() ch.setLevel(log_lvl) ch.setFormatter(Defa...
23.933333
67
0.827298
4a009397ded2a61514804c63c188b53db3ba0405
2,672
py
Python
.history/run_update_20220328075842.py
miguel-fresh/geoip-translation
ccf9dbc0330e597704e57d8b2967fc9be16017ed
[ "Info-ZIP" ]
null
null
null
.history/run_update_20220328075842.py
miguel-fresh/geoip-translation
ccf9dbc0330e597704e57d8b2967fc9be16017ed
[ "Info-ZIP" ]
null
null
null
.history/run_update_20220328075842.py
miguel-fresh/geoip-translation
ccf9dbc0330e597704e57d8b2967fc9be16017ed
[ "Info-ZIP" ]
null
null
null
from asyncio.subprocess import STDOUT from fileinput import filename from genericpath import exists import subprocess from pathlib import Path from os import remove, rename, path import yaml def removeFileIfExists(file_path): if path.exists(file_path): remove(file_path) # LEGACY ZIP_LEGACY_NAME = 'GeoLi...
28.425532
94
0.674401
4a0093a0665c09400b4a820ff3008f199972611d
51
py
Python
flagging_site/blueprints/__init__.py
cameronreaves/flagging
412fae782ac38f971a1715aeb257a8ab10a9ad3a
[ "MIT" ]
null
null
null
flagging_site/blueprints/__init__.py
cameronreaves/flagging
412fae782ac38f971a1715aeb257a8ab10a9ad3a
[ "MIT" ]
null
null
null
flagging_site/blueprints/__init__.py
cameronreaves/flagging
412fae782ac38f971a1715aeb257a8ab10a9ad3a
[ "MIT" ]
null
null
null
from . import cyanobacteria from . import flagging
17
27
0.803922
4a0095f42e6b35702c48d7725098cb5f95c7a98c
64,365
py
Python
src/attr/_make.py
gappleto97/attrs
1e8e4bc3ced1080b6591aa3fb2a39a464409d499
[ "MIT" ]
null
null
null
src/attr/_make.py
gappleto97/attrs
1e8e4bc3ced1080b6591aa3fb2a39a464409d499
[ "MIT" ]
null
null
null
src/attr/_make.py
gappleto97/attrs
1e8e4bc3ced1080b6591aa3fb2a39a464409d499
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function import copy import hashlib import linecache import sys import threading import warnings from operator import itemgetter from . import _config from ._compat import ( PY2, isclass, iteritems, metadata_proxy, ordered_dict, set_clos...
32.230846
95
0.578467
4a009632540ee9e74a8e7c35166690ac0ba7db15
5,436
py
Python
perfkitbenchmarker/linux_benchmarks/cloudsuite_graph_analytics_benchmark.py
xiaolihope/PerfKitBenchmarker-1.7.0
7699b1073a80d7a92fd3db93da742b93a2ecf900
[ "Apache-2.0" ]
null
null
null
perfkitbenchmarker/linux_benchmarks/cloudsuite_graph_analytics_benchmark.py
xiaolihope/PerfKitBenchmarker-1.7.0
7699b1073a80d7a92fd3db93da742b93a2ecf900
[ "Apache-2.0" ]
null
null
null
perfkitbenchmarker/linux_benchmarks/cloudsuite_graph_analytics_benchmark.py
xiaolihope/PerfKitBenchmarker-1.7.0
7699b1073a80d7a92fd3db93da742b93a2ecf900
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 PerfKitBenchmarker Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
33.975
77
0.699411
4a00963df04141d8e2bdc1a801ee1c022deba1cc
2,132
py
Python
src/isolation_forest.py
Tpool1/Cancer_ML
39a5605e58d7940e17810bc1858877e6c0887f4f
[ "MIT" ]
null
null
null
src/isolation_forest.py
Tpool1/Cancer_ML
39a5605e58d7940e17810bc1858877e6c0887f4f
[ "MIT" ]
null
null
null
src/isolation_forest.py
Tpool1/Cancer_ML
39a5605e58d7940e17810bc1858877e6c0887f4f
[ "MIT" ]
null
null
null
from sklearn.ensemble import RandomForestClassifier from sklearn.ensemble import IsolationForest import pandas as pd import numpy as np import matplotlib.pyplot as plt from sklearn.decomposition import PCA from sklearn.preprocessing import StandardScaler def isolation_forest(features, target): isolated_forest=Is...
30.898551
152
0.670732
4a0096afc7000067b08ac02ac045706bedcc4df0
2,930
py
Python
apps/marketing/subviews/campaign.py
gvizquel/pyerp
c859f7293cabd1003f79112463cee93ac89fccba
[ "MIT" ]
null
null
null
apps/marketing/subviews/campaign.py
gvizquel/pyerp
c859f7293cabd1003f79112463cee93ac89fccba
[ "MIT" ]
11
2020-06-05T22:50:37.000Z
2022-02-10T09:05:56.000Z
apps/marketing/subviews/campaign.py
gvizquel/pyerp
c859f7293cabd1003f79112463cee93ac89fccba
[ "MIT" ]
null
null
null
# Librerias Django from django.contrib.auth import authenticate from django.contrib.auth.decorators import login_required from django.contrib.auth.mixins import LoginRequiredMixin from django.contrib.auth.models import User from django.shortcuts import redirect, render from django.urls import reverse, reverse_lazy from...
36.17284
93
0.686689
4a00980e6cd363cf565c6f2ef1ed1ba63d368799
520
py
Python
fastapi/model.py
jaisenbe58r/iAApi-QAS-BERT
b999104d7949080c3d5f432608418a49f4e2edaf
[ "MIT" ]
3
2020-12-12T21:48:30.000Z
2021-02-14T18:17:53.000Z
fastapi/model.py
jaisenbe58r/iAApi-QAS-BERT
b999104d7949080c3d5f432608418a49f4e2edaf
[ "MIT" ]
null
null
null
fastapi/model.py
jaisenbe58r/iAApi-QAS-BERT
b999104d7949080c3d5f432608418a49f4e2edaf
[ "MIT" ]
1
2021-09-29T01:37:42.000Z
2021-09-29T01:37:42.000Z
from PIL import Image import io from transformers import pipeline def get_model(): # qa = pipeline('question-answering', # model="mrm8488/bert-base-spanish-wwm-cased-finetuned-spa-squad2-es", # tokenizer="mrm8488/bert-base-spanish-wwm-cased-finetuned-spa-squad2-es") def qa(contex...
30.588235
88
0.675