hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
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
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
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.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
ceedd3e4e374fbd6b21ae488ad35e282aab4330e
6,492
py
Python
kwaf/core.py
PyDever/kwaf
6df2b7e66a8fd1ad4d2a55d989f630e52bfd2aa2
[ "BSD-3-Clause" ]
null
null
null
kwaf/core.py
PyDever/kwaf
6df2b7e66a8fd1ad4d2a55d989f630e52bfd2aa2
[ "BSD-3-Clause" ]
3
2019-03-04T22:12:33.000Z
2019-03-05T20:01:28.000Z
kwaf/core.py
PyDever/kwaf
6df2b7e66a8fd1ad4d2a55d989f630e52bfd2aa2
[ "BSD-3-Clause" ]
null
null
null
""" core functionalities """ # known-good imports from __future__ import print_function import agents # dependency imports try: from bs4 import BeautifulSoup import requests import termcolor import mechanize except Exception: raise ModuleNotFound() # standard library imports import socket...
29.643836
91
0.712569
ceee14d65f071777843767860f0b7d4cc2b7e26c
4,105
py
Python
generator_app/utils.py
badf00d21/JSD2021
0af83e671bdc2570b617ed29b395db4193dd7daf
[ "MIT" ]
null
null
null
generator_app/utils.py
badf00d21/JSD2021
0af83e671bdc2570b617ed29b395db4193dd7daf
[ "MIT" ]
null
null
null
generator_app/utils.py
badf00d21/JSD2021
0af83e671bdc2570b617ed29b395db4193dd7daf
[ "MIT" ]
null
null
null
# author: badf00d21 import os from os.path import dirname, join from textx import metamodel_from_file from textx.export import metamodel_export, model_export from datetime import datetime from distutils.dir_util import copy_tree CURRENT_DIR = dirname(__file__) PROJECT_DIRECTORY_TREE = {} PROJECT_GENERAL_INFO = {} ...
40.245098
147
0.707917
ceef19c41376f45364d4e99a91be8b81f66a7009
1,286
py
Python
maskrcnn_benchmark/layers/_utils.py
cxq1/paddle_VinVL
f9136871c43b033cd209ddc7579fa986208e37db
[ "MIT" ]
null
null
null
maskrcnn_benchmark/layers/_utils.py
cxq1/paddle_VinVL
f9136871c43b033cd209ddc7579fa986208e37db
[ "MIT" ]
null
null
null
maskrcnn_benchmark/layers/_utils.py
cxq1/paddle_VinVL
f9136871c43b033cd209ddc7579fa986208e37db
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import glob import os.path import os import paddle try: from paddle.utils.cpp_extension import load as load_ext # from torch.utils.cpp_extension import CUDA_HOME#todo cuda_home = os.environ.get('CUDA_HOME') or os.environ.get('CUDA_PAT...
29.906977
80
0.693624
cef3d4dcc223c6a918c1263ea91ffe598543413d
447
py
Python
catalog/bindings/csw/function_name_type.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/csw/function_name_type.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/csw/function_name_type.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass, field from typing import Optional __NAMESPACE__ = "http://www.opengis.net/ogc"
19.434783
44
0.530201
cef90e112200696b4359fb01649097a5c9410f0e
8,827
py
Python
sp_api/api/products/models/offer_type.py
lionsdigitalsolutions/python-amazon-sp-api
7374523ebc65e2e01e37d03fc4009a44fabf2c3b
[ "MIT" ]
null
null
null
sp_api/api/products/models/offer_type.py
lionsdigitalsolutions/python-amazon-sp-api
7374523ebc65e2e01e37d03fc4009a44fabf2c3b
[ "MIT" ]
null
null
null
sp_api/api/products/models/offer_type.py
lionsdigitalsolutions/python-amazon-sp-api
7374523ebc65e2e01e37d03fc4009a44fabf2c3b
[ "MIT" ]
null
null
null
# coding: utf-8 """ Selling Partner API for Pricing The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. # noqa: E501 OpenAPI spec version: v0 Generated by: https://github.com/swagger-api/swagger-codegen.g...
34.480469
205
0.62796
cefd76094a419af719e2db8b8f21b068b2f07020
30,997
py
Python
web/mturk/scripts/Server.py
aleSuglia/cvdn
98469b2bb1be00c65e56a100d690879eb82a9181
[ "MIT" ]
52
2019-07-12T01:49:49.000Z
2022-03-31T03:35:15.000Z
web/mturk/scripts/Server.py
aleSuglia/cvdn
98469b2bb1be00c65e56a100d690879eb82a9181
[ "MIT" ]
13
2019-11-29T02:03:42.000Z
2022-03-31T14:40:01.000Z
web/mturk/scripts/Server.py
aleSuglia/cvdn
98469b2bb1be00c65e56a100d690879eb82a9181
[ "MIT" ]
9
2019-07-15T01:03:55.000Z
2021-03-10T10:47:55.000Z
#!/usr/bin/env python import argparse import json import numpy as np import os import pandas as pd import time # Spin up a server to sit and manage incoming connections. def main(args): # Hard-coded server and game params. server_spin_time = 1 max_seconds_per_turn = 300 max_seconds_unpaired = 420 ...
52.805792
144
0.564087
cefdf491da32c65dfd43ba1c5f43f8392677e962
1,354
py
Python
python/app/plugins/port/Mysql/Mysql_Weakpwd.py
taomujian/linbing
fe772a58f41e3b046b51a866bdb7e4655abaf51a
[ "MIT" ]
351
2020-02-26T05:23:26.000Z
2022-03-26T12:39:19.000Z
python/app/plugins/port/Mysql/Mysql_Weakpwd.py
taomujian/linbing
fe772a58f41e3b046b51a866bdb7e4655abaf51a
[ "MIT" ]
15
2020-03-26T07:31:49.000Z
2022-03-09T02:12:17.000Z
python/app/plugins/port/Mysql/Mysql_Weakpwd.py
taomujian/linbing
fe772a58f41e3b046b51a866bdb7e4655abaf51a
[ "MIT" ]
99
2020-02-28T07:30:46.000Z
2022-03-16T16:41:09.000Z
#!/usr/bin/env python3 import pymysql from urllib.parse import urlparse if __name__ == "__main__": Mysql_Weakpwd = Mysql_Weakpwd_BaseVerify('http://10.4.33.38:3306') Mysql_Weakpwd.check()
27.08
130
0.495569
ceff0a92e174aa986a351f636a90b325f6c96cb8
1,029
py
Python
tests/integration/cattletest/core/test_container_logs.py
mbrukman/rancher-cattle
ac7caffb97346f601043458411391d2d00fd6129
[ "Apache-2.0" ]
null
null
null
tests/integration/cattletest/core/test_container_logs.py
mbrukman/rancher-cattle
ac7caffb97346f601043458411391d2d00fd6129
[ "Apache-2.0" ]
null
null
null
tests/integration/cattletest/core/test_container_logs.py
mbrukman/rancher-cattle
ac7caffb97346f601043458411391d2d00fd6129
[ "Apache-2.0" ]
null
null
null
from common_fixtures import * # NOQA from test_docker import docker_context, TEST_IMAGE_UUID, if_docker docker_context
25.725
74
0.676385
300065eb9db90f7143433fb8c242ca7b77379bc7
7,447
py
Python
src/pfb/etl/etl.py
ianfore/pypfb
90e98adbeece4fc4b299ff0b96b0ca2c754ad198
[ "Apache-2.0" ]
null
null
null
src/pfb/etl/etl.py
ianfore/pypfb
90e98adbeece4fc4b299ff0b96b0ca2c754ad198
[ "Apache-2.0" ]
null
null
null
src/pfb/etl/etl.py
ianfore/pypfb
90e98adbeece4fc4b299ff0b96b0ca2c754ad198
[ "Apache-2.0" ]
null
null
null
import asyncio from fastavro import reader from aiohttp import ClientSession
35.802885
123
0.559957
300073a417d5f280026a4c6ef8e118cd6d1171ca
4,383
py
Python
submissions/smart_modular_xgb/regressor.py
gpspelle/huawei-AI
967842796e0809fa385d218e2e901c3df05df83e
[ "BSD-3-Clause" ]
null
null
null
submissions/smart_modular_xgb/regressor.py
gpspelle/huawei-AI
967842796e0809fa385d218e2e901c3df05df83e
[ "BSD-3-Clause" ]
null
null
null
submissions/smart_modular_xgb/regressor.py
gpspelle/huawei-AI
967842796e0809fa385d218e2e901c3df05df83e
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from sklearn import multioutput import xgboost as xgb
36.831933
167
0.546886
30022d5b966a78ffbad58db514000ef1b2a328db
953
py
Python
helium_commander/device_configuration.py
helium/helium-commander
58d1fe4064c51beccbff7a0d93bf037fffdac370
[ "BSD-3-Clause" ]
5
2016-06-16T06:45:18.000Z
2022-02-18T22:19:01.000Z
helium_commander/device_configuration.py
helium/helium-commander
58d1fe4064c51beccbff7a0d93bf037fffdac370
[ "BSD-3-Clause" ]
13
2016-09-15T21:20:34.000Z
2017-02-24T02:21:26.000Z
helium_commander/device_configuration.py
helium/api-example
58d1fe4064c51beccbff7a0d93bf037fffdac370
[ "BSD-3-Clause" ]
4
2016-06-24T19:47:43.000Z
2021-04-03T10:41:33.000Z
from __future__ import unicode_literals from helium import Device, Configuration, DeviceConfiguration DeviceConfiguration.display_map = classmethod(display_map)
27.228571
79
0.704092
30058c013c7f1ea99b90234320013ed85aad5e9b
277
py
Python
examples/ur_example.py
lzyang2000/kinpy
60ae9ff8120d47e09415f7886ffa4cff4a9b9c71
[ "MIT" ]
53
2019-10-04T20:23:57.000Z
2022-03-30T02:56:00.000Z
examples/ur_example.py
lzyang2000/kinpy
60ae9ff8120d47e09415f7886ffa4cff4a9b9c71
[ "MIT" ]
13
2020-04-12T07:13:45.000Z
2022-03-22T02:38:35.000Z
examples/ur_example.py
lzyang2000/kinpy
60ae9ff8120d47e09415f7886ffa4cff4a9b9c71
[ "MIT" ]
11
2020-01-01T17:10:43.000Z
2022-01-15T05:53:13.000Z
import numpy as np import kinpy as kp arm = kp.build_serial_chain_from_urdf( open("ur/ur.urdf").read(), root_link_name="base_link", end_link_name="ee_link", ) fk_solution = arm.forward_kinematics(np.zeros(len(arm.get_joint_parameter_names()))) print(fk_solution)
23.083333
84
0.750903
30062583a2a464eca1d287f671aad915ba113864
823
py
Python
ch4/ch4_1.py
tdean1995/HFPythonSandbox
dc72257e4353c5bca7a2c401d18587c6d799f9a1
[ "Apache-2.0" ]
1
2016-04-01T04:31:52.000Z
2016-04-01T04:31:52.000Z
ch4/ch4_1.py
tdean1995/HFPythonSandbox
dc72257e4353c5bca7a2c401d18587c6d799f9a1
[ "Apache-2.0" ]
null
null
null
ch4/ch4_1.py
tdean1995/HFPythonSandbox
dc72257e4353c5bca7a2c401d18587c6d799f9a1
[ "Apache-2.0" ]
null
null
null
import pickle man = [] other = [] try: with open('sketch.txt') as data: for each_line in data: try: (role, line_spoken) = each_line.split(':',1) line_spoken = line_spoken.strip() if role == 'Other Man': man.append(li...
28.37931
108
0.534629
3007d0ef37fed7a724d0c7b91f9c2faef7eb7808
1,169
py
Python
days/07/part1.py
gr3yknigh1/aoc2021
55dca0685cc4213f0a14970ae9bfc882a59e82aa
[ "MIT" ]
null
null
null
days/07/part1.py
gr3yknigh1/aoc2021
55dca0685cc4213f0a14970ae9bfc882a59e82aa
[ "MIT" ]
null
null
null
days/07/part1.py
gr3yknigh1/aoc2021
55dca0685cc4213f0a14970ae9bfc882a59e82aa
[ "MIT" ]
null
null
null
from __future__ import annotations from typing import TYPE_CHECKING if TYPE_CHECKING: from typing import TypeVar from typing import Iterable T = TypeVar("T") import os BASE_PATH = os.path.dirname(__file__) INPUT_PATH = os.path.join(BASE_PATH, "input.txt") # def average(iterable: Iterable[int | float])...
23.38
76
0.659538
3009240c398e5db7e56dfae11c5c29dd996ac3ab
6,803
py
Python
project2.py
Shinyboii/2-Pygame
dfdd00530351c9a2b7c47809246a147dc5981996
[ "Apache-2.0" ]
null
null
null
project2.py
Shinyboii/2-Pygame
dfdd00530351c9a2b7c47809246a147dc5981996
[ "Apache-2.0" ]
null
null
null
project2.py
Shinyboii/2-Pygame
dfdd00530351c9a2b7c47809246a147dc5981996
[ "Apache-2.0" ]
null
null
null
import pygame import os pygame.init() SCREEN_WIDTH = 800 SCREEN_HEIGHT = int(SCREEN_WIDTH * 0.8) screen = pygame.display.set_mode((SCREEN_WIDTH, SCREEN_HEIGHT)) pygame.display.set_caption('Shooter') #set framerate clock = pygame.time.Clock() FPS = 60 #define game variables GRAVITY = 0.75 #define player action va...
26.470817
155
0.580038
300af3b861bc474f69ddd334c432b9fe20f915b6
25
py
Python
promgen/version.py
PeterDaveHello/promgen
45bfd728748b371af758a7c7f3c341900e8425fd
[ "MIT" ]
null
null
null
promgen/version.py
PeterDaveHello/promgen
45bfd728748b371af758a7c7f3c341900e8425fd
[ "MIT" ]
null
null
null
promgen/version.py
PeterDaveHello/promgen
45bfd728748b371af758a7c7f3c341900e8425fd
[ "MIT" ]
null
null
null
__version__ = "0.39.dev"
12.5
24
0.68
300b04a048befa7e0ae62af54869f314bc543f86
1,057
py
Python
tests/app/api/business/brief_overview/test_get_publish_links.py
ArenaNetworks/dto-digitalmarketplace-api
d0d58924719d889503ed112b0d5801b528b0398c
[ "MIT" ]
6
2017-06-09T03:38:53.000Z
2021-12-22T02:42:15.000Z
tests/app/api/business/brief_overview/test_get_publish_links.py
ArenaNetworks/dto-digitalmarketplace-api
d0d58924719d889503ed112b0d5801b528b0398c
[ "MIT" ]
47
2016-08-02T05:21:31.000Z
2022-03-28T01:14:17.000Z
tests/app/api/business/brief_overview/test_get_publish_links.py
AusDTO/dto-digitalmarketplace-api
937843c9c01a71518cf4688b4daa55bbe7df1965
[ "MIT" ]
7
2016-09-13T13:07:18.000Z
2021-02-17T10:16:21.000Z
import pytest from app.api.business import brief_overview_business
29.361111
108
0.699149
300b564cb2905f4b13d5ba4a49e56f6671d47fa9
2,646
py
Python
examples/cantilever/main.py
iitrabhi/fenics-docker
f677196b40f5d2e413baf3ec877e9890bab97a85
[ "MIT" ]
8
2020-11-17T05:44:44.000Z
2021-11-27T05:45:33.000Z
examples/cantilever/main.py
philiplukek/fenics-docker
baf0ce607e8f9ed767584e00252f3f63442d2bd8
[ "MIT" ]
null
null
null
examples/cantilever/main.py
philiplukek/fenics-docker
baf0ce607e8f9ed767584e00252f3f63442d2bd8
[ "MIT" ]
4
2021-03-16T08:55:13.000Z
2022-02-11T13:58:38.000Z
from dolfin import * set_log_level(0) #https://fenicsproject.org/qa/810/how-to-disable-message-solving-linear-variational-problem/ mul = 5 L = 25. H = 1. Nx = 250 * mul Ny = 10 * mul mesh = RectangleMesh(Point(0., 0.), Point(L, H), Nx, Ny, "crossed") E = Constant(1e5) nu = Constant(0.3) model = "plane_stress" mu = E...
22.810345
109
0.656841
300e3ae591f6bfd0bf75a686190391f992e6bf3f
5,102
py
Python
trseeker/tools/classification.py
ad3002/Lyrebird
8c0a186e32d61189f073401152c52a89bfed46ed
[ "MIT" ]
null
null
null
trseeker/tools/classification.py
ad3002/Lyrebird
8c0a186e32d61189f073401152c52a89bfed46ed
[ "MIT" ]
null
null
null
trseeker/tools/classification.py
ad3002/Lyrebird
8c0a186e32d61189f073401152c52a89bfed46ed
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # #@created: 07.09.2010 #@author: Aleksey Komissarov #@contact: ad3002@gmail.com """ """ from collections import defaultdict from collections import Counter import math from trseeker.tools.ngrams_tools import process_list_to_kmer_index def compute_clas...
30.550898
159
0.472952
300e9df48d69b3d7c7f928c6981c5397312404c2
1,180
py
Python
common/src/stack/command/stack/commands/remove/host/bootflags/__init__.py
khanfluence/stacki-cumulus-switch
df54afb20f6ea6a3a136b3c09b30df54ea79ffcc
[ "BSD-3-Clause" ]
null
null
null
common/src/stack/command/stack/commands/remove/host/bootflags/__init__.py
khanfluence/stacki-cumulus-switch
df54afb20f6ea6a3a136b3c09b30df54ea79ffcc
[ "BSD-3-Clause" ]
null
null
null
common/src/stack/command/stack/commands/remove/host/bootflags/__init__.py
khanfluence/stacki-cumulus-switch
df54afb20f6ea6a3a136b3c09b30df54ea79ffcc
[ "BSD-3-Clause" ]
null
null
null
# @copyright@ # Copyright (c) 2006 - 2018 Teradata # All rights reserved. Stacki(r) v5.x stacki.com # https://github.com/Teradata/stacki/blob/master/LICENSE.txt # @copyright@ # # @rocks@ # Copyright (c) 2000 - 2010 The Regents of the University of California # All rights reserved. Rocks(r) v5.4 www.rocksclusters.org # ...
28.780488
71
0.712712
3010dfe61059e14535e45e649e148597e6de06b6
1,639
py
Python
docs/bayes_window_book/_build/jupyter_execute/lfp_example/lfp_stim_strength.py
mmyros/bayes_window_examples
b19efd85abe76395a155f5452d291f2550ace343
[ "MIT" ]
null
null
null
docs/bayes_window_book/_build/jupyter_execute/lfp_example/lfp_stim_strength.py
mmyros/bayes_window_examples
b19efd85abe76395a155f5452d291f2550ace343
[ "MIT" ]
null
null
null
docs/bayes_window_book/_build/jupyter_execute/lfp_example/lfp_stim_strength.py
mmyros/bayes_window_examples
b19efd85abe76395a155f5452d291f2550ace343
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # LFP example with stim strength # In[1]: import numpy as np import pandas as pd from bayes_window import BayesWindow, BayesRegression from bayes_window.generative_models import generate_fake_lfp # ## ISI # In[2]: df = [] for slope in np.linspace(4, 40, 4): df1 = gen...
15.759615
107
0.699817
301178370d044112050617c6414a3c624794f49b
14,100
py
Python
optimizer.py
sunshower76/Deep_Translation_Prior
93b8fd81a57d77ae359729527585b4994aeb0324
[ "MIT" ]
9
2022-01-04T14:20:17.000Z
2022-01-06T14:10:57.000Z
optimizer.py
sunshower76/Deep_Trainslation_Prior
93b8fd81a57d77ae359729527585b4994aeb0324
[ "MIT" ]
null
null
null
optimizer.py
sunshower76/Deep_Trainslation_Prior
93b8fd81a57d77ae359729527585b4994aeb0324
[ "MIT" ]
5
2022-01-13T14:11:20.000Z
2022-02-28T10:30:00.000Z
import os import cv2 import gc import random import time from tqdm import tqdm import numpy as np import matplotlib.pyplot as plt import argparse from glob import glob import torch import torch.nn as nn import torchvision.transforms as transforms from PIL import Image, ImageFilter from models.OEFT import OEFT parse...
50.177936
180
0.55227
30122a57c6c75ae29fb332dfe5fddc8652d96679
2,175
py
Python
NeoMat_Text.py
dsiee/CircuitPython_NeopixelMatrix_Text
2ee5c970b44b9cac8f1bf1e0c386c0f9b2001798
[ "MIT" ]
1
2021-04-22T18:55:30.000Z
2021-04-22T18:55:30.000Z
NeoMat_Text.py
dsiee/CircuitPython_NeopixelMatrix_Text
2ee5c970b44b9cac8f1bf1e0c386c0f9b2001798
[ "MIT" ]
2
2021-01-08T09:06:51.000Z
2021-05-21T13:49:32.000Z
NeoMat_Text.py
dsiee/CircuitPython_NeopixelMatrix_Text
2ee5c970b44b9cac8f1bf1e0c386c0f9b2001798
[ "MIT" ]
null
null
null
import board as board import neopixel as neopixel import adafruit_framebuf as adafruit_framebuf from math import ceil
45.3125
123
0.587126
3014157db93973d416e411153a5e7b03be192770
24,410
py
Python
FirestormProject/OldFireExtinguishing/VeryOld/simulator.py
sisl/rllab
932d6cc0911071443d1d43277ee011f4d832631e
[ "MIT" ]
9
2018-04-04T10:46:31.000Z
2020-05-19T09:47:36.000Z
FirestormProject/OldFireExtinguishing/VeryOld/simulator.py
sisl/rllab
932d6cc0911071443d1d43277ee011f4d832631e
[ "MIT" ]
null
null
null
FirestormProject/OldFireExtinguishing/VeryOld/simulator.py
sisl/rllab
932d6cc0911071443d1d43277ee011f4d832631e
[ "MIT" ]
2
2021-12-11T22:53:05.000Z
2021-12-14T08:18:16.000Z
import tensorflow as tf import numpy as np import random import time from math import exp from keras.models import Sequential from keras.layers.core import Dense, Dropout, Activation from keras.layers import Merge from keras.optimizers import RMSprop, Adam start_time = time.time() ##### Sampling method ##### def...
27.365471
132
0.648996
30142b02749c7cae75b7271ba542ebf717dbf527
3,860
py
Python
SlideSeg/splitter.py
eDIMESLab/dermas
c8b2f213bc801b47025fbe41db9e3a8e0c07cb27
[ "MIT" ]
1
2020-12-18T09:42:19.000Z
2020-12-18T09:42:19.000Z
SlideSeg/splitter.py
eDIMESLab/dermas
c8b2f213bc801b47025fbe41db9e3a8e0c07cb27
[ "MIT" ]
null
null
null
SlideSeg/splitter.py
eDIMESLab/dermas
c8b2f213bc801b47025fbe41db9e3a8e0c07cb27
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function from __future__ import division import os import argparse import SlideSeg __author__ = 'Nico Curti' __email__ = 'nico.curti2@unibo.it' def main (): ''' Runs SlideSeg with the parameters specified in command line :return: im...
41.956522
241
0.63057
3014f7440d9673a22311c1d6a047a4cdab754d98
527
py
Python
src/PrettyErrorsConfig.py
Potriashka/NewsHelper
0a3c7c191d9b41f23d7835064b225d409fe388e7
[ "MIT" ]
null
null
null
src/PrettyErrorsConfig.py
Potriashka/NewsHelper
0a3c7c191d9b41f23d7835064b225d409fe388e7
[ "MIT" ]
null
null
null
src/PrettyErrorsConfig.py
Potriashka/NewsHelper
0a3c7c191d9b41f23d7835064b225d409fe388e7
[ "MIT" ]
null
null
null
import pretty_errors pretty_errors.configure( separator_character = '*', filename_display = pretty_errors.FILENAME_EXTENDED, line_number_first = True, display_link = True, lines_before = 5, lines_after = 2, line_color = pretty_errors.RED + '> ' + pretty_er...
37.642857
93
0.648956
30153dd44ea6e8ce8941eb233f0c9ad38a2fdb9b
510
py
Python
src/apps/blog/forms.py
snicoper/snicoper.com
22c17b5ead6096227a3415770c0cbd2923f2f14a
[ "MIT" ]
2
2017-04-22T11:35:21.000Z
2017-09-01T19:49:59.000Z
src/apps/blog/forms.py
snicoper/snicoper.com
22c17b5ead6096227a3415770c0cbd2923f2f14a
[ "MIT" ]
null
null
null
src/apps/blog/forms.py
snicoper/snicoper.com
22c17b5ead6096227a3415770c0cbd2923f2f14a
[ "MIT" ]
null
null
null
from django import forms
23.181818
46
0.613725
3015b6cce20886691adbb818a9df5d32755fd7e7
421
py
Python
mundo-2/ex060.py
GustavoMendel/curso-python
2270734cc159cf44cf513184f1467a9040a7bc46
[ "MIT" ]
null
null
null
mundo-2/ex060.py
GustavoMendel/curso-python
2270734cc159cf44cf513184f1467a9040a7bc46
[ "MIT" ]
null
null
null
mundo-2/ex060.py
GustavoMendel/curso-python
2270734cc159cf44cf513184f1467a9040a7bc46
[ "MIT" ]
null
null
null
from time import sleep print('\033[1:31m-=-\033[m' * 6) print('\033[1m FATORIAL \033[m') print('\033[1:31m-=-\033[m' * 6) sleep(1) numero = int(input('\033[1:33mDigite um nmero: \033[m')) c = numero - 1 fatorial = numero while c > 0: fatorial = fatorial * c c = c - 1 sleep(1) print('O fatorial de {} ...
19.136364
58
0.598575
3015bb26c571eef72566233c384c496194c64fab
1,020
py
Python
thermister_table.py
thesteg/thermister_table
08d0f08009fc8db20224b21971f0396762c816f4
[ "MIT" ]
null
null
null
thermister_table.py
thesteg/thermister_table
08d0f08009fc8db20224b21971f0396762c816f4
[ "MIT" ]
null
null
null
thermister_table.py
thesteg/thermister_table
08d0f08009fc8db20224b21971f0396762c816f4
[ "MIT" ]
null
null
null
#!/usr/bin/python import math import sys #bValue = float(sys.argv[1]) #nomOhm = float(sys.argv[2]) #nomTemp = float(sys.argv[3]) #seriesR = float(sys.argv[4]) #adcRes = int(sys.argv[5]) bValue = 3750 nomOhm = 10000 nomTemp = 250 seriesR = 4700 adcRes = 10 adcMax = 2**adcRes adcVal = 0 vals = [0] * adcMax while ad...
20.816327
134
0.519608
301633bf6660e5b20a368a5a441b5eb35662808d
203
py
Python
myroot/apps.py
pinoylearnpython/dev
3fd904c594a8c5cab7fd1fe2ad775fd519410a8a
[ "MIT" ]
2
2019-10-29T07:41:38.000Z
2020-01-31T16:46:15.000Z
myroot/apps.py
pinoylearnpython/dev
3fd904c594a8c5cab7fd1fe2ad775fd519410a8a
[ "MIT" ]
null
null
null
myroot/apps.py
pinoylearnpython/dev
3fd904c594a8c5cab7fd1fe2ad775fd519410a8a
[ "MIT" ]
2
2019-04-23T04:40:07.000Z
2020-02-17T09:11:48.000Z
from django.apps import AppConfig from django.conf import settings
25.375
59
0.729064
3016d0523306bebdd9671a104be8c6da51a61170
12,495
py
Python
mathematics_dataset/util/probability.py
PhysicsTeacher13/Mathematics_Dataset
7f13bf661e6f36d61542bf0360b27f31eb9efe20
[ "Apache-2.0" ]
1,577
2019-04-03T10:05:30.000Z
2022-03-29T17:56:14.000Z
mathematics_dataset/util/probability.py
aliceheiman/mathematics_dataset
89a928868d832d47387f704d2122c71e530ec4aa
[ "Apache-2.0" ]
15
2019-04-03T18:55:03.000Z
2022-01-12T16:04:12.000Z
mathematics_dataset/util/probability.py
LaudateCorpus1/mathematics_dataset
e91dba649b843597c14b9d84dfe92bff79b7d299
[ "Apache-2.0" ]
226
2019-04-03T13:28:36.000Z
2022-03-27T18:41:01.000Z
# Copyright 2018 DeepMind Technologies Limited. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
30.775862
80
0.684994
3018933f3d91c9f68d2e24121f60b28bf89b9d17
5,280
py
Python
scikits/fitting/tests/test_nonlinlstsq.py
ska-sa/scikits.fitting
035f0626b79ea2d0c1765ce3bb2b90c760aa1c20
[ "BSD-3-Clause" ]
5
2017-06-26T05:01:55.000Z
2019-06-22T11:47:02.000Z
scikits/fitting/tests/test_nonlinlstsq.py
ska-sa/scikits.fitting
035f0626b79ea2d0c1765ce3bb2b90c760aa1c20
[ "BSD-3-Clause" ]
5
2016-09-21T08:29:55.000Z
2018-08-03T11:34:56.000Z
scikits/fitting/tests/test_nonlinlstsq.py
ludwigschwardt/scikits.fitting
035f0626b79ea2d0c1765ce3bb2b90c760aa1c20
[ "BSD-3-Clause" ]
2
2020-06-23T23:25:11.000Z
2021-04-12T20:04:26.000Z
############################################################################### # Copyright (c) 2007-2018, National Research Foundation (Square Kilometre Array) # # Licensed under the BSD 3-Clause License (the "License"); you may not use # this file except in compliance with the License. You may obtain a copy # of the ...
45.517241
80
0.639773
3019bbbf445a8edf5dc9ccd702eacd957bed02fc
1,636
py
Python
hivs_administrative/migrations/0006_add area type model.py
tehamalab/hivs
db7dfa7f89174be07d42bd469fd23c8553c0eff2
[ "MIT" ]
null
null
null
hivs_administrative/migrations/0006_add area type model.py
tehamalab/hivs
db7dfa7f89174be07d42bd469fd23c8553c0eff2
[ "MIT" ]
null
null
null
hivs_administrative/migrations/0006_add area type model.py
tehamalab/hivs
db7dfa7f89174be07d42bd469fd23c8553c0eff2
[ "MIT" ]
null
null
null
# Generated by Django 2.0.7 on 2018-09-19 18:38 from django.db import migrations, models import django.db.models.deletion
40.9
223
0.622249
3019d0d0d66845d80647867288d3a7213f851ae7
1,642
py
Python
mlxtend/mlxtend/evaluate/__init__.py
WhiteWolf21/fp-growth
01e1d853b09f244f14e66d7d0c87f139a0f67c81
[ "MIT" ]
null
null
null
mlxtend/mlxtend/evaluate/__init__.py
WhiteWolf21/fp-growth
01e1d853b09f244f14e66d7d0c87f139a0f67c81
[ "MIT" ]
null
null
null
mlxtend/mlxtend/evaluate/__init__.py
WhiteWolf21/fp-growth
01e1d853b09f244f14e66d7d0c87f139a0f67c81
[ "MIT" ]
null
null
null
# Sebastian Raschka 2014-2020 # mlxtend Machine Learning Library Extensions # Author: Sebastian Raschka <sebastianraschka.com> # # License: BSD 3 clause from .bootstrap import bootstrap from .bootstrap_outofbag import BootstrapOutOfBag from .bootstrap_point632 import bootstrap_point632_score from .cochrans_q import c...
38.186047
62
0.781973
3019d8b3a9a8b78def5cd463705dfbff73a5928e
1,222
py
Python
pygears/lib/rounding.py
bogdanvuk/pygears
a0b21d445e1d5c89ad66751447b8253536b835ee
[ "MIT" ]
120
2018-04-23T08:29:04.000Z
2022-03-30T14:41:52.000Z
pygears/lib/rounding.py
FZP1607152286/pygears
a0b21d445e1d5c89ad66751447b8253536b835ee
[ "MIT" ]
12
2019-07-09T17:12:58.000Z
2022-03-18T09:05:10.000Z
pygears/lib/rounding.py
FZP1607152286/pygears
a0b21d445e1d5c89ad66751447b8253536b835ee
[ "MIT" ]
12
2019-05-10T19:42:08.000Z
2022-03-28T18:26:44.000Z
from pygears import gear, datagear, alternative, module from pygears.typing.qround import get_out_type, get_cut_bits from pygears.typing import Uint, code, Bool, Int, Fixp, Ufixp # @datagear # def qround_even(din, # *, # fract=0, # cut_bits=b'get_cut_bits(din, fract)',...
23.056604
74
0.590835
301b35005139a6709168c59a00e0e7d293501b06
374
py
Python
test/test_topology.py
fyumoto/MHGAN
a484fba54d73839770ea74f462505b056b71c32b
[ "MIT" ]
17
2019-02-01T21:15:47.000Z
2020-06-03T22:20:22.000Z
test/test_topology.py
fyumoto/MHGAN
a484fba54d73839770ea74f462505b056b71c32b
[ "MIT" ]
null
null
null
test/test_topology.py
fyumoto/MHGAN
a484fba54d73839770ea74f462505b056b71c32b
[ "MIT" ]
9
2019-03-29T01:52:53.000Z
2020-10-22T09:24:40.000Z
import unittest from mhgan import *
26.714286
66
0.657754
301bd2743deec97002c6dbf0312029acbf6792b0
14,261
py
Python
analyzer.py
christopher-wolff/News-Analysis
f249ed4654cc3fcebd69f99b4ba577f5afe42a91
[ "MIT" ]
null
null
null
analyzer.py
christopher-wolff/News-Analysis
f249ed4654cc3fcebd69f99b4ba577f5afe42a91
[ "MIT" ]
null
null
null
analyzer.py
christopher-wolff/News-Analysis
f249ed4654cc3fcebd69f99b4ba577f5afe42a91
[ "MIT" ]
1
2017-11-27T03:55:55.000Z
2017-11-27T03:55:55.000Z
"""Main module.""" __authors__ = 'Christopher Wolff, Kate Chen' __version__ = '1.0' __date__ = '9/10/2017' import json import os.path import pickle import random import urllib from bs4 import BeautifulSoup from nltk.corpus import stopwords from sklearn.feature_extraction.text import CountVectorizer from sklearn.fe...
33.793839
75
0.620293
301c0312019459ee3c1cee213b0c5d83ed3d800e
66
py
Python
definitions.py
krolse/discord-bot
721cc2db11bf625ae0b82241b48b4a8d6cddfef6
[ "MIT" ]
null
null
null
definitions.py
krolse/discord-bot
721cc2db11bf625ae0b82241b48b4a8d6cddfef6
[ "MIT" ]
null
null
null
definitions.py
krolse/discord-bot
721cc2db11bf625ae0b82241b48b4a8d6cddfef6
[ "MIT" ]
null
null
null
import os ROOT_PATH = os.path.dirname(__file__) PREFIX = '!'
13.2
38
0.666667
301c2ed39a196508582821ed087e62aa084e0895
1,392
py
Python
examples/config/xtpmNode.py
vinantip/pwrapi
ddd035808188275d6108145f71a70fedf5ad5390
[ "BSD-3-Clause" ]
2
2021-09-21T04:41:20.000Z
2022-02-28T05:19:49.000Z
examples/config/xtpmNode.py
vinantip/pwrapi
ddd035808188275d6108145f71a70fedf5ad5390
[ "BSD-3-Clause" ]
null
null
null
examples/config/xtpmNode.py
vinantip/pwrapi
ddd035808188275d6108145f71a70fedf5ad5390
[ "BSD-3-Clause" ]
1
2019-06-23T11:03:11.000Z
2019-06-23T11:03:11.000Z
#!/usr/bin/python from pyConfig import * logging.basicConfig( format='%(levelname)s: %(message)s', level=logging.INFO ) plugins['CrayXTPM'] = 'libpwr_xtpmdev' devices['XTPM-node'] = ['CrayXTPM',''] platform = Object( Platform, 'plat' ) platform.setAttrOp( Energy, Sum, Float ) platform.setAttrOp( Power, Avg, Floa...
28.408163
78
0.715517
301d0068c86d4b4a27facf3aee28c4f00413f001
1,093
py
Python
gada_electronics/gada_electronics/doctype/sales_invoice/sales_invoice.py
rtghonorio/gada_electronics
dc80c49efc735f22361f4b1e6bd1523a8fef9837
[ "MIT" ]
null
null
null
gada_electronics/gada_electronics/doctype/sales_invoice/sales_invoice.py
rtghonorio/gada_electronics
dc80c49efc735f22361f4b1e6bd1523a8fef9837
[ "MIT" ]
null
null
null
gada_electronics/gada_electronics/doctype/sales_invoice/sales_invoice.py
rtghonorio/gada_electronics
dc80c49efc735f22361f4b1e6bd1523a8fef9837
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2022, Russell Todd Honorio and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document
28.763158
88
0.732845
302008241a81889fef104c6dbb37a96238533df2
4,674
py
Python
sdk/python/pulumi_aws_native/glue/get_trigger.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
29
2021-09-30T19:32:07.000Z
2022-03-22T21:06:08.000Z
sdk/python/pulumi_aws_native/glue/get_trigger.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
232
2021-09-30T19:26:26.000Z
2022-03-31T23:22:06.000Z
sdk/python/pulumi_aws_native/glue/get_trigger.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
4
2021-11-10T19:42:01.000Z
2022-02-05T10:15:49.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, overload from .. import _utilities from...
34.622222
145
0.655755
3020ebc2057f5b57aef317088f78b4f30a1889dd
1,273
py
Python
main/migrations/0001_initial.py
Mohsen7640/PicoSchool
69d8658111b27e843928f2458f9a7108ab8bd4e0
[ "Apache-2.0" ]
48
2022-02-05T10:07:33.000Z
2022-03-30T18:14:45.000Z
main/migrations/0001_initial.py
Mohsen7640/PicoSchool
69d8658111b27e843928f2458f9a7108ab8bd4e0
[ "Apache-2.0" ]
2
2022-02-10T11:56:42.000Z
2022-02-16T13:27:26.000Z
main/migrations/0001_initial.py
Mohsen7640/PicoSchool
69d8658111b27e843928f2458f9a7108ab8bd4e0
[ "Apache-2.0" ]
14
2022-02-05T13:46:17.000Z
2022-02-23T16:23:12.000Z
# Generated by Django 3.2 on 2022-02-04 11:22 from django.db import migrations, models
42.433333
191
0.597015
30210087e33980eb24daf4d679f8868eeef662a7
294
py
Python
0000 hihoOnce/175 Robots Crossing River/main.py
SLAPaper/hihoCoder
3f64d678c5dd46db36345736eb56880fb2d2c5fe
[ "MIT" ]
null
null
null
0000 hihoOnce/175 Robots Crossing River/main.py
SLAPaper/hihoCoder
3f64d678c5dd46db36345736eb56880fb2d2c5fe
[ "MIT" ]
null
null
null
0000 hihoOnce/175 Robots Crossing River/main.py
SLAPaper/hihoCoder
3f64d678c5dd46db36345736eb56880fb2d2c5fe
[ "MIT" ]
null
null
null
from math import ceil z, y, x = sorted(int(x) for x in raw_input().split()) if x <= y + z: print int(ceil((x + y + z) / 20.0)) * 6 else: run = (y + z) / 10 xr = x - 10 * run nxr = (y + z) % 10 xr -= 15 - nxr if nxr < 8 else nxr print int(run + 1 + ceil(xr / 15.0)) * 6
24.5
53
0.486395
30222ed6a4345098e7f0e289697b8a0a1570b94f
3,176
py
Python
script/Isin google Nordnet/isin-nordnet.py
pettersoderlund/fondout
99b14eaa8c6eb56fd862ab9bdf6acc8d537d4a31
[ "BSD-3-Clause" ]
null
null
null
script/Isin google Nordnet/isin-nordnet.py
pettersoderlund/fondout
99b14eaa8c6eb56fd862ab9bdf6acc8d537d4a31
[ "BSD-3-Clause" ]
4
2016-10-18T18:30:08.000Z
2016-11-05T09:22:29.000Z
script/Isin google Nordnet/isin-nordnet.py
pettersoderlund/fondout
99b14eaa8c6eb56fd862ab9bdf6acc8d537d4a31
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: UTF-8 -*- import unicodedata import openpyxl.reader.excel import time import datetime import codecs import mechanize import cookielib import re import sys from random import randint #Parse arguments filename = str(sys.argv[1]) sheetName = 'Sheet1' # Output file timenow = datetime.datetime.now() # Wr...
25.206349
137
0.62563
302252554a5466b82c017cd12145915a1d3b6015
4,457
py
Python
plugins/smtp/kpireport_smtp/output.py
diurnalist/kpireporter
b3ce9ca52567405557ea12f45c1a7fda076d746a
[ "BlueOak-1.0.0", "Apache-2.0" ]
9
2021-05-17T05:32:46.000Z
2022-03-16T22:49:26.000Z
plugins/smtp/kpireport_smtp/output.py
diurnalist/kpireporter
b3ce9ca52567405557ea12f45c1a7fda076d746a
[ "BlueOak-1.0.0", "Apache-2.0" ]
4
2020-10-10T23:38:20.000Z
2020-11-08T22:41:24.000Z
plugins/smtp/kpireport_smtp/output.py
diurnalist/kpireporter
b3ce9ca52567405557ea12f45c1a7fda076d746a
[ "BlueOak-1.0.0", "Apache-2.0" ]
1
2021-01-12T02:49:04.000Z
2021-01-12T02:49:04.000Z
from datetime import datetime from email.message import EmailMessage from email.headerregistry import Address from jinja2 import Markup from premailer import transform import smtplib from kpireport.output import OutputDriver
40.153153
83
0.612744
3022766db89202607c22a14256bc547026ec8d98
582
py
Python
src/examples/g_lists_and_tuples/main.py
acc-cosc-1336-spring-2022/acc-cosc-1336-spring-2022-rObErT-a93
dfcbe42ce835b65db15928f89a37f32b599495ba
[ "MIT" ]
null
null
null
src/examples/g_lists_and_tuples/main.py
acc-cosc-1336-spring-2022/acc-cosc-1336-spring-2022-rObErT-a93
dfcbe42ce835b65db15928f89a37f32b599495ba
[ "MIT" ]
null
null
null
src/examples/g_lists_and_tuples/main.py
acc-cosc-1336-spring-2022/acc-cosc-1336-spring-2022-rObErT-a93
dfcbe42ce835b65db15928f89a37f32b599495ba
[ "MIT" ]
null
null
null
import lists nums = [99,100,101,102] lists.loop_list_w_for(nums) print('----------') for n in nums: print(n) print('*************') num = [99,100,101,102] lists.loop_list_w_while(num) print('----------') for n in num: print(n) print('**************') lists.collect_home_values() print('-----------------3/...
16.628571
62
0.54811
3022b2a1ed3bdcd775cda90c1368265310c3c5a2
12,647
py
Python
bot.py
Aadhith-Ujesh/online_class_attending_bot
2e177d0874be54a8323e5db944eeded3b1ab6374
[ "MIT" ]
null
null
null
bot.py
Aadhith-Ujesh/online_class_attending_bot
2e177d0874be54a8323e5db944eeded3b1ab6374
[ "MIT" ]
null
null
null
bot.py
Aadhith-Ujesh/online_class_attending_bot
2e177d0874be54a8323e5db944eeded3b1ab6374
[ "MIT" ]
null
null
null
import pyautogui import datetime
37.41716
549
0.654701
3024da09ff88c390b73dfde89f26c69f734f1763
569
py
Python
project_scripts/install_dependencies.py
Mlokos/portfolio
d960148cc0f39b5c39a8d916c3cffcda418beb45
[ "MIT" ]
null
null
null
project_scripts/install_dependencies.py
Mlokos/portfolio
d960148cc0f39b5c39a8d916c3cffcda418beb45
[ "MIT" ]
3
2020-01-29T18:52:38.000Z
2020-01-29T18:52:39.000Z
project_scripts/install_dependencies.py
Mlokos/portfolio
d960148cc0f39b5c39a8d916c3cffcda418beb45
[ "MIT" ]
null
null
null
#!/bin/bash import subprocess import os install_ruby_sass = 'sudo apt install ruby-sass' try: # pipe output to /dev/null for silence null = open("/dev/null", "w") subprocess.Popen("scss", stdout=null, stderr=null) null.close() except OSError: print("scss not found") choice = input("install ru...
25.863636
74
0.629174
3025a8eba14e5ed4be539875aa79c93954d0bcb0
326
py
Python
src/modules/network/python/__init__.py
ivanmurashko/kalinka
58a3f774c414dfc408aa06f560dde455c2271c6b
[ "MIT" ]
null
null
null
src/modules/network/python/__init__.py
ivanmurashko/kalinka
58a3f774c414dfc408aa06f560dde455c2271c6b
[ "MIT" ]
null
null
null
src/modules/network/python/__init__.py
ivanmurashko/kalinka
58a3f774c414dfc408aa06f560dde455c2271c6b
[ "MIT" ]
null
null
null
from net import * from defines import * import cli import proto """ Creates a module instance @param[in] server - the server instance """ def importCLI(parent): """ Import a CLI instance to main CLI """ netcli = cli.CLI(parent) return netcli
18.111111
43
0.677914
3026e265d52f0e4e8547e9c71406ecd9ba63127b
224
py
Python
Python/Python For Absolute Beginner/mainfile.py
omkarsutar1255/Python-Data
169d0c54b23d9dd5a7f1aea41ab385121c3b3c63
[ "CC-BY-3.0" ]
null
null
null
Python/Python For Absolute Beginner/mainfile.py
omkarsutar1255/Python-Data
169d0c54b23d9dd5a7f1aea41ab385121c3b3c63
[ "CC-BY-3.0" ]
null
null
null
Python/Python For Absolute Beginner/mainfile.py
omkarsutar1255/Python-Data
169d0c54b23d9dd5a7f1aea41ab385121c3b3c63
[ "CC-BY-3.0" ]
null
null
null
print("and the name is", __name__) if __name__ == '__main__': print(printom("de de thakur")) o = add(4, 6) print(o)
16
34
0.589286
3028563b4b9152c8a112821120d579b425227167
1,611
py
Python
aionasa/exoplanet/_tests.py
nwunderly/aio-nasa
9a083746eee6fe92e5663fdd2a8ebe38b192ac87
[ "MIT" ]
2
2020-07-09T00:20:37.000Z
2020-07-09T00:25:06.000Z
aionasa/exoplanet/_tests.py
nwunderly/aio-nasa
9a083746eee6fe92e5663fdd2a8ebe38b192ac87
[ "MIT" ]
null
null
null
aionasa/exoplanet/_tests.py
nwunderly/aio-nasa
9a083746eee6fe92e5663fdd2a8ebe38b192ac87
[ "MIT" ]
1
2020-07-14T23:17:06.000Z
2020-07-14T23:17:06.000Z
from .api import Exoplanet
25.571429
85
0.514587
30287041d7af11f5fa52ba839473d1d0593377f9
46
py
Python
src/iJungle/config.py
microsoft/dstoolkit-anomaly-detection-ijungle
74946cffa2c45de8203cc63830220d928b767751
[ "MIT" ]
3
2021-11-11T17:41:49.000Z
2021-11-23T18:01:11.000Z
src/iJungle/config.py
microsoft/dstoolkit-anomaly-detection-ijungle
74946cffa2c45de8203cc63830220d928b767751
[ "MIT" ]
1
2021-10-01T06:06:27.000Z
2021-10-01T06:06:27.000Z
src/iJungle/config.py
microsoft/dstoolkit-anomaly-detection-ijungle
74946cffa2c45de8203cc63830220d928b767751
[ "MIT" ]
1
2021-10-01T05:56:13.000Z
2021-10-01T05:56:13.000Z
__version__ = '0.1.73' _MODEL_DIR = 'outputs'
15.333333
22
0.695652
30288a87651b17466aa9409e1dc5174b644f9ee6
9,292
py
Python
gazenet-ft.py
arangesh/GPCycleGAN
0c7fb7dc835e0283e1000b06d7b9b0290bc19056
[ "MIT" ]
26
2020-06-09T08:57:23.000Z
2022-03-26T13:54:15.000Z
gazenet-ft.py
arangesh/GPCycleGAN
0c7fb7dc835e0283e1000b06d7b9b0290bc19056
[ "MIT" ]
2
2020-12-22T13:30:42.000Z
2021-11-23T06:43:18.000Z
gazenet-ft.py
arangesh/GPCycleGAN
0c7fb7dc835e0283e1000b06d7b9b0290bc19056
[ "MIT" ]
7
2020-06-12T12:01:11.000Z
2022-02-14T03:12:03.000Z
import os import json from datetime import datetime from statistics import mean import argparse import numpy as np import matplotlib matplotlib.use('Agg') from matplotlib import pyplot as plt import torch import torch.optim as optim from torch.autograd import Variable import torch.nn.functional as F from models impo...
43.018519
140
0.663582
3028a6e6b3f33031ae273f28a9cbb77fcff3d614
96
py
Python
backend/secret_base/apps.py
tanzhiquan/DragonGoods
d247770b6c277e616a172af0ffad6490c1bc04c3
[ "MIT" ]
null
null
null
backend/secret_base/apps.py
tanzhiquan/DragonGoods
d247770b6c277e616a172af0ffad6490c1bc04c3
[ "MIT" ]
3
2020-07-18T23:04:47.000Z
2021-05-10T20:19:09.000Z
backend/secret_base/apps.py
tanzhiquan/DragonGoods
d247770b6c277e616a172af0ffad6490c1bc04c3
[ "MIT" ]
null
null
null
from django.apps import AppConfig
16
34
0.770833
302e0ae2f682436a6f81e60a10d7e2c2227f8b9d
8,376
py
Python
dezede/views.py
adrienlachaize/dezede
584ec30cedab95152e2f95595b7691a04e6736e2
[ "BSD-3-Clause" ]
15
2015-02-10T21:16:31.000Z
2021-03-25T16:46:20.000Z
dezede/views.py
adrienlachaize/dezede
584ec30cedab95152e2f95595b7691a04e6736e2
[ "BSD-3-Clause" ]
4
2021-02-10T15:42:08.000Z
2022-03-11T23:20:38.000Z
dezede/views.py
adrienlachaize/dezede
584ec30cedab95152e2f95595b7691a04e6736e2
[ "BSD-3-Clause" ]
6
2016-07-10T14:20:48.000Z
2022-01-19T18:34:02.000Z
import datetime import json from collections import OrderedDict from mimetypes import guess_type from django.apps import apps from django.contrib.contenttypes.models import ContentType from django.contrib.sitemaps import Sitemap from django.contrib.staticfiles.storage import staticfiles_storage from django.contrib.syn...
33.106719
80
0.643386
302e2929f58992709dad8ed5380ff8b83767af39
2,357
py
Python
tortoise/tests/test_init.py
EtzelWu/tortoise-orm
6a79c87169c10ff25b0d84bca4db24f0c0737432
[ "Apache-2.0" ]
null
null
null
tortoise/tests/test_init.py
EtzelWu/tortoise-orm
6a79c87169c10ff25b0d84bca4db24f0c0737432
[ "Apache-2.0" ]
null
null
null
tortoise/tests/test_init.py
EtzelWu/tortoise-orm
6a79c87169c10ff25b0d84bca4db24f0c0737432
[ "Apache-2.0" ]
null
null
null
from tortoise import Tortoise from tortoise.contrib import test from tortoise.exceptions import ConfigurationError from tortoise.tests.testmodels import Tournament
37.412698
90
0.640221
3030f71b80b96a69832203b0ac35248730a890ce
7,271
py
Python
video_verification.py
ChouaibBELILITA/Final_year_Project
688cdeaeabb46fc3f924bb29c2e92865be421d26
[ "MIT" ]
null
null
null
video_verification.py
ChouaibBELILITA/Final_year_Project
688cdeaeabb46fc3f924bb29c2e92865be421d26
[ "MIT" ]
null
null
null
video_verification.py
ChouaibBELILITA/Final_year_Project
688cdeaeabb46fc3f924bb29c2e92865be421d26
[ "MIT" ]
null
null
null
from yolov3_tf2.utils import draw_outputs from yolov3_tf2.dataset import transform_images from yolov3_tf2.models import ( YoloV3, YoloV3Tiny ) from absl.flags import FLAGS from absl import app, flags, logging import time import os import glob import cv2 import matplotlib.pyplot as plt import dlib import numpy as ...
30.170124
100
0.598405
303212f2de3163447a24ff07aa13ecbe61acaf1d
1,137
py
Python
rurusetto/wiki/migrations/0008_auto_20210802_2042.py
siddhantdixit/rurusetto
ed3aad56d20fbdc15e9ab7d2b77335de65009b7f
[ "MIT" ]
19
2021-05-09T12:05:40.000Z
2022-03-02T19:26:36.000Z
rurusetto/wiki/migrations/0008_auto_20210802_2042.py
siddhantdixit/rurusetto
ed3aad56d20fbdc15e9ab7d2b77335de65009b7f
[ "MIT" ]
121
2021-05-04T19:18:13.000Z
2022-03-21T22:11:25.000Z
rurusetto/wiki/migrations/0008_auto_20210802_2042.py
siddhantdixit/rurusetto
ed3aad56d20fbdc15e9ab7d2b77335de65009b7f
[ "MIT" ]
12
2021-05-03T04:44:02.000Z
2021-10-19T05:40:08.000Z
# Generated by Django 3.2.5 on 2021-08-02 20:42 from django.conf import settings from django.db import migrations, models import django.db.models.deletion
35.53125
149
0.676341
30328b30a486124d27d64a35d648d22e4f79a1d3
69
py
Python
src/sas/sascalc/pr/c_extensions/__init__.py
andyfaff/sasview
c00a797ab9c4ddc60f0fa8a64ae8a2067c225921
[ "BSD-3-Clause" ]
null
null
null
src/sas/sascalc/pr/c_extensions/__init__.py
andyfaff/sasview
c00a797ab9c4ddc60f0fa8a64ae8a2067c225921
[ "BSD-3-Clause" ]
null
null
null
src/sas/sascalc/pr/c_extensions/__init__.py
andyfaff/sasview
c00a797ab9c4ddc60f0fa8a64ae8a2067c225921
[ "BSD-3-Clause" ]
null
null
null
""" C extensions to provide the P(r) inversion computations. """
17.25
60
0.666667
30348ac334b61491fc0eba87f757473e1904a126
2,813
py
Python
nsmc_evaluation.py
alclone94/KorRoBERTa
db9fb3f6e4665c52c0848a15fd838d92a5b5eba5
[ "MIT" ]
null
null
null
nsmc_evaluation.py
alclone94/KorRoBERTa
db9fb3f6e4665c52c0848a15fd838d92a5b5eba5
[ "MIT" ]
null
null
null
nsmc_evaluation.py
alclone94/KorRoBERTa
db9fb3f6e4665c52c0848a15fd838d92a5b5eba5
[ "MIT" ]
1
2021-06-09T04:46:52.000Z
2021-06-09T04:46:52.000Z
import torch import argparse import os import glob from torch.utils.data import DataLoader, SequentialSampler from tqdm import tqdm from nsmc_modeling import RobertaForSequenceClassification from bert.tokenizer import Tokenizer from dataset import NSMCDataSet if __name__ == "__main__": args = _get_parser().par...
34.304878
106
0.623178
3034af2279daaa6bfb2fc3c5e9c4af5f13761aa2
1,200
py
Python
scripts/motion_controller.py
SaeedAlRahma/baxter-object-manipulation
16ebc8872993d4f0a296d7e15bd400b8592bc180
[ "BSD-2-Clause" ]
null
null
null
scripts/motion_controller.py
SaeedAlRahma/baxter-object-manipulation
16ebc8872993d4f0a296d7e15bd400b8592bc180
[ "BSD-2-Clause" ]
null
null
null
scripts/motion_controller.py
SaeedAlRahma/baxter-object-manipulation
16ebc8872993d4f0a296d7e15bd400b8592bc180
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python # Motion Controller """ IMPORT MODULES """ import sys, struct, time, json sys.path.insert(0, "/home/saeed/Klampt/iml-internal/Ebolabot") #----------------------------------------------------------- #Imports require internal folders from Motion import motion from Motion import config #===========...
25.531915
68
0.553333
30356e919436e141d13ba5e54fc31d1c28874061
966
py
Python
dynadb/migrations/0070_auto_20170107_1240.py
GPCRmd/GPCRmd
7dc75359ace4a00c1597bdb7a86ebee17d51f09c
[ "Apache-2.0" ]
3
2019-03-06T13:35:38.000Z
2020-08-05T15:31:29.000Z
dynadb/migrations/0070_auto_20170107_1240.py
GPCRmd/GPCRmd
7dc75359ace4a00c1597bdb7a86ebee17d51f09c
[ "Apache-2.0" ]
null
null
null
dynadb/migrations/0070_auto_20170107_1240.py
GPCRmd/GPCRmd
7dc75359ace4a00c1597bdb7a86ebee17d51f09c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2017-01-07 11:40 from __future__ import unicode_literals from django.db import migrations, models
26.833333
59
0.576605
30372623f77d68db48259571a342ce70b21e0df4
4,553
py
Python
mne/tests/test_ola.py
rylaw/mne-python
aa526c8ed7049046734ca28493d99e841672b0eb
[ "BSD-3-Clause" ]
1,953
2015-01-17T20:33:46.000Z
2022-03-30T04:36:34.000Z
mne/tests/test_ola.py
LiFeng-SECUC/mne-python
732bb1f994e64e41a8e95dcc10dc98c22cac95c0
[ "BSD-3-Clause" ]
8,490
2015-01-01T13:04:18.000Z
2022-03-31T23:02:08.000Z
mne/tests/test_ola.py
LiFeng-SECUC/mne-python
732bb1f994e64e41a8e95dcc10dc98c22cac95c0
[ "BSD-3-Clause" ]
1,130
2015-01-08T22:39:27.000Z
2022-03-30T21:44:26.000Z
import numpy as np from numpy.testing import assert_allclose import pytest from mne._ola import _COLA, _Interp2, _Storer def test_interp_2pt(): """Test our two-point interpolator.""" n_pts = 200 assert n_pts % 50 == 0 feeds = [ # test a bunch of feeds to make sure they don't break things [n_...
38.584746
78
0.527345
30372a273f9faf219fec596d7e2ba84c506f9ea7
2,327
py
Python
src/test/tinc/tincrepo/mpp/gpdb/tests/storage/filerep/mpp18816/verify/verify.py
lintzc/GPDB
b48c8b97da18f495c10065d0853db87960aebae2
[ "PostgreSQL", "Apache-2.0" ]
1
2017-09-15T06:09:56.000Z
2017-09-15T06:09:56.000Z
src/test/tinc/tincrepo/mpp/gpdb/tests/storage/filerep/mpp18816/verify/verify.py
guofengrichard/gpdb
29bdd6ef38d8d9b9cb04ca31d44e279eb9f640d3
[ "PostgreSQL", "Apache-2.0" ]
null
null
null
src/test/tinc/tincrepo/mpp/gpdb/tests/storage/filerep/mpp18816/verify/verify.py
guofengrichard/gpdb
29bdd6ef38d8d9b9cb04ca31d44e279eb9f640d3
[ "PostgreSQL", "Apache-2.0" ]
1
2018-12-04T09:13:57.000Z
2018-12-04T09:13:57.000Z
""" Copyright (C) 2004-2015 Pivotal Software, Inc. All rights reserved. This program and the accompanying materials are made available under the terms of the 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 ...
39.440678
140
0.723679
30389a732bffc046d9a331b9ce96d0127f8d599d
1,903
py
Python
operations/pg/sprites_light.py
Sam-prog-sudo/MacGyver
4048044bc18a06d2d37f0c0901f3b530c48cec02
[ "MIT" ]
null
null
null
operations/pg/sprites_light.py
Sam-prog-sudo/MacGyver
4048044bc18a06d2d37f0c0901f3b530c48cec02
[ "MIT" ]
4
2020-10-22T17:10:16.000Z
2020-12-27T13:42:49.000Z
operations/pg/sprites_light.py
Sam-prog-sudo/MacGyver
4048044bc18a06d2d37f0c0901f3b530c48cec02
[ "MIT" ]
null
null
null
# encoding: utf-8 import pygame from assets import constants as C
29.276923
78
0.586442
3038e041781965ef085fd084ac47bd2ee1d01ca1
6,596
py
Python
pyopt/packing/rectangular/drawer.py
stonelake/pyoptimization
6e2a4acbaa6eac9716e9ef9e46ca23986dbb6c71
[ "Apache-2.0" ]
null
null
null
pyopt/packing/rectangular/drawer.py
stonelake/pyoptimization
6e2a4acbaa6eac9716e9ef9e46ca23986dbb6c71
[ "Apache-2.0" ]
null
null
null
pyopt/packing/rectangular/drawer.py
stonelake/pyoptimization
6e2a4acbaa6eac9716e9ef9e46ca23986dbb6c71
[ "Apache-2.0" ]
null
null
null
__author__ = "Alex Baranov" from random import randrange from visual import * from reports import ReportsBuilder
36.043716
111
0.498181
303a017c75510b182fa84c03281ca852da5367a0
479
py
Python
info/views.py
RockyRoad29/flask-kit
e77501f4d68f76949cff91bea3664292fc17f4d4
[ "BSD-3-Clause" ]
1
2022-03-20T11:21:00.000Z
2022-03-20T11:21:00.000Z
info/views.py
RockyRoad29/flask-kit
e77501f4d68f76949cff91bea3664292fc17f4d4
[ "BSD-3-Clause" ]
null
null
null
info/views.py
RockyRoad29/flask-kit
e77501f4d68f76949cff91bea3664292fc17f4d4
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Example additional blueprint. :copyright: (c) 2012 by Roman Semirook. :license: BSD, see LICENSE for more details. """ from flask.templating import render_template from flask.views import MethodView from info import info info.add_url_rule('', view_func=HelpPageView.as_view('...
22.809524
61
0.713987
303aeaa74e89a23ebc0dd8d59ed46fec29ff5ad1
673
py
Python
strings/string.py
JOkendo/pyTopical
5f342e72935f034749bbbc362b284acf4875065b
[ "MIT" ]
null
null
null
strings/string.py
JOkendo/pyTopical
5f342e72935f034749bbbc362b284acf4875065b
[ "MIT" ]
null
null
null
strings/string.py
JOkendo/pyTopical
5f342e72935f034749bbbc362b284acf4875065b
[ "MIT" ]
null
null
null
""" PALINDROME Palindrome is a word that reads the same foward and backward. Checking a palindrome """ import sys main()
19.228571
61
0.460624
303b8509dde81ed27196bf5d99eab2d216da759d
3,996
py
Python
Python/generateObservations.py
kgkIEEE/Gemini2
23ac265c1191664a93c394d1ab2b11ad050876f1
[ "MIT" ]
1
2020-05-29T06:22:10.000Z
2020-05-29T06:22:10.000Z
Python/generateObservations.py
kgkIEEE/Gemini2
23ac265c1191664a93c394d1ab2b11ad050876f1
[ "MIT" ]
null
null
null
Python/generateObservations.py
kgkIEEE/Gemini2
23ac265c1191664a93c394d1ab2b11ad050876f1
[ "MIT" ]
null
null
null
import argparse import csv from skyfield import api from skyfield.api import EarthSatellite from skyfield.constants import AU_KM, AU_M from skyfield.sgp4lib import TEME_to_ITRF from skyfield.api import Topos, load # Read TLE file and write key parameters in CSV format tleFilename = 'catalogTest.txt' tl...
33.579832
83
0.583834
303cbda6006588328b293c32578767e098d0bd6f
771
py
Python
src/service_stellar_signer/management/commands/set_backup_key.py
rehive/multisig-stellar-signer
e5b7ba293fda333c289f77ef10bf1a455b5bb5a7
[ "MIT" ]
null
null
null
src/service_stellar_signer/management/commands/set_backup_key.py
rehive/multisig-stellar-signer
e5b7ba293fda333c289f77ef10bf1a455b5bb5a7
[ "MIT" ]
2
2022-03-29T12:17:00.000Z
2022-03-29T12:18:23.000Z
src/service_stellar_signer/management/commands/set_backup_key.py
rehive/multisig-stellar-signer
e5b7ba293fda333c289f77ef10bf1a455b5bb5a7
[ "MIT" ]
1
2022-02-10T10:56:31.000Z
2022-02-10T10:56:31.000Z
from optparse import make_option from django.core.management.base import BaseCommand, CommandError from django.core.serializers.json import DjangoJSONEncoder from django.contrib.auth.models import User from service_stellar_signer.models import APIUser
30.84
65
0.697795
303d526540636dddcd088aaf9e7d83eb0eef0af8
1,744
py
Python
moire/nn/functions/indexing.py
speedcell4/moire
d5acaee4ee0690627f1382debdd6a6f11cec77c7
[ "MIT" ]
2
2018-03-12T19:53:35.000Z
2018-04-12T08:36:22.000Z
moire/nn/functions/indexing.py
speedcell4/moire
d5acaee4ee0690627f1382debdd6a6f11cec77c7
[ "MIT" ]
4
2018-03-11T06:01:04.000Z
2020-01-15T16:27:35.000Z
moire/nn/functions/indexing.py
speedcell4/moire
d5acaee4ee0690627f1382debdd6a6f11cec77c7
[ "MIT" ]
null
null
null
import dynet as dy import numpy as np import moire from moire import Expression __all__ = [ 'argmax', 'argmin', 'epsilon_argmax', 'epsilon_argmin', 'gumbel_argmax', 'gumbel_argmin', ] if __name__ == '__main__': x = dy.inputVector([1, 2, 3, 4]) prob = dy.softmax(x) a = np.array([gumbel_...
32.296296
99
0.645642
303e3088bab10d868bc199357dd156399ceb8caa
856
py
Python
Hackathon/urls.py
alisha21puja/Hackathon1
cb6f63b777adb6f8f604f6855b65bba6642495fc
[ "bzip2-1.0.6" ]
null
null
null
Hackathon/urls.py
alisha21puja/Hackathon1
cb6f63b777adb6f8f604f6855b65bba6642495fc
[ "bzip2-1.0.6" ]
null
null
null
Hackathon/urls.py
alisha21puja/Hackathon1
cb6f63b777adb6f8f604f6855b65bba6642495fc
[ "bzip2-1.0.6" ]
null
null
null
from django.contrib import admin from django.urls import path, include from Blog import views from django.conf import settings from django.conf.urls.static import static urlpatterns = [ path('', include('home.urls'), name='home'), path('aboutus/', include('aboutus.urls'), name='aboutus'), path('accounts...
32.923077
74
0.679907
303ef1562accc9841ed544d4410e5da6118a7b8f
9,796
py
Python
bin/Adenosine_to_inosine.py
castualwang/aimap
cd40ad7a414672d7b3f99d0d9c9639d5057c7bcc
[ "MIT" ]
null
null
null
bin/Adenosine_to_inosine.py
castualwang/aimap
cd40ad7a414672d7b3f99d0d9c9639d5057c7bcc
[ "MIT" ]
null
null
null
bin/Adenosine_to_inosine.py
castualwang/aimap
cd40ad7a414672d7b3f99d0d9c9639d5057c7bcc
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # aimap.py # # This code is part of the aimap package, and is governed by its licence. # Please see the LICENSE file that should have been included as part of # this package. import json import logging import logging.handlers import os import subprocess import pandas as pd import gffutils imp...
45.351852
196
0.649653
3040167a974edc60f38cd9eee78e43ea5aa2b9a9
20,246
py
Python
choicemodels/tools/simulation.py
UDST/choicemodels
b6032394ecdbec80b98f05acd0a454d43a734eed
[ "BSD-3-Clause" ]
54
2016-11-24T02:34:21.000Z
2022-01-20T05:58:57.000Z
choicemodels/tools/simulation.py
UDST/choicemodels
b6032394ecdbec80b98f05acd0a454d43a734eed
[ "BSD-3-Clause" ]
69
2016-11-07T17:34:34.000Z
2022-01-04T23:13:34.000Z
choicemodels/tools/simulation.py
UDST/choicemodels
b6032394ecdbec80b98f05acd0a454d43a734eed
[ "BSD-3-Clause" ]
28
2016-06-14T16:10:28.000Z
2021-11-25T01:43:14.000Z
""" Utilities for Monte Carlo simulation of choices. """ import numpy as np import pandas as pd from multiprocessing import Process, Manager, Array, cpu_count from tqdm import tqdm import warnings def monte_carlo_choices(probabilities): """ Monte Carlo simulation of choices for a set of K scenarios, each hav...
41.74433
104
0.682456
3040ae917607bd86e43a0fbb53adaaf71dbcc885
3,680
py
Python
IOUtilities.py
pumbas600/CriticalPath
31889c875dedf733aeb9a4ebeba8bf8930e86176
[ "MIT" ]
null
null
null
IOUtilities.py
pumbas600/CriticalPath
31889c875dedf733aeb9a4ebeba8bf8930e86176
[ "MIT" ]
null
null
null
IOUtilities.py
pumbas600/CriticalPath
31889c875dedf733aeb9a4ebeba8bf8930e86176
[ "MIT" ]
null
null
null
import csv from _tkinter import TclError import os.path as ospath from enum import Enum
34.074074
90
0.587772
3041cbfc4928b5a9ed9acc0312f1986051fd08ad
5,805
py
Python
ULMFiT/ulmfit_test_punctuation.py
cahya-wirawan/language-modelling
83cf551c2c03b90a19b6c912315bdf7748f756de
[ "MIT" ]
57
2020-08-15T08:37:14.000Z
2022-03-16T04:34:53.000Z
indonesia/ulmfit_test_punctuation.py
nanto88/language-modeling
031801aa5377d991baaf808b0a8540b29eb4df49
[ "MIT" ]
3
2018-10-29T00:56:27.000Z
2020-04-23T18:21:05.000Z
indonesia/ulmfit_test_punctuation.py
nanto88/language-modeling
031801aa5377d991baaf808b0a8540b29eb4df49
[ "MIT" ]
11
2021-01-09T11:45:59.000Z
2022-02-09T13:10:30.000Z
from fastai.text import * import numpy as np from utils import beamsearch, beamsearch_punctuation BOS = 'xbos' # beginning-of-sentence tag FLD = 'xfld' # data field tag # VERSION = '0.2' LANG = 'id' LM_PATH = Path(f'lmdata_0.2/{LANG}/') LM_PATH_MODEL = LM_PATH/'models/wiki_id_lm.h5' LM_PATH_ITOS = LM_PATH/'wiki_id...
32.25
99
0.617399
3043218abb082abd2bfe18a0babcb350c48b33b1
983
py
Python
Project/Unit_Tests/test_Window.py
gmgoodale/Team19-Zoltar-Stock-Trader
c5157a6e40fd74461c414527070b818bb5fba9d2
[ "MIT" ]
null
null
null
Project/Unit_Tests/test_Window.py
gmgoodale/Team19-Zoltar-Stock-Trader
c5157a6e40fd74461c414527070b818bb5fba9d2
[ "MIT" ]
null
null
null
Project/Unit_Tests/test_Window.py
gmgoodale/Team19-Zoltar-Stock-Trader
c5157a6e40fd74461c414527070b818bb5fba9d2
[ "MIT" ]
null
null
null
# Class to test the GrapherWindow Class
42.73913
79
0.678535
30454978649b2dfb583e18b9df9d4e7ed82702f9
1,562
py
Python
kfac/layers/__init__.py
saeedsoori/kfac_pytorch
a49d6f30daf6d1e989df9b13e1ca42f1d0742a44
[ "MIT" ]
35
2020-05-15T16:51:23.000Z
2022-02-23T20:23:44.000Z
kfac/layers/__init__.py
MLHPC/Distributed_KFAC_Pytorch
cfd6d54012cf23d832818ce302d2d2d049da4936
[ "MIT" ]
18
2020-04-27T19:36:05.000Z
2022-03-25T22:14:16.000Z
kfac/layers/__init__.py
MLHPC/Distributed_KFAC_Pytorch
cfd6d54012cf23d832818ce302d2d2d049da4936
[ "MIT" ]
14
2020-05-24T17:22:14.000Z
2022-03-17T19:31:07.000Z
import torch.nn as nn import kfac.modules as km from kfac.layers.conv import Conv2dLayer from kfac.layers.embedding import EmbeddingLayer from kfac.layers.linear import LinearLayer from kfac.layers.linear import LinearMultiLayer __all__ = ['KNOWN_MODULES', 'get_kfac_layers', 'module_requires_grad'] KNOWN_MODULES = {...
38.097561
80
0.685659
30455c24d40d043c2b2e52a29833a6122193cce5
3,062
py
Python
src/pycomposite/composite_decorator.py
BstLabs/py-composite
d839303de51000c9afd1568f63ba02e7bdebbc8c
[ "MIT" ]
4
2022-03-10T12:43:53.000Z
2022-03-11T21:22:16.000Z
src/pycomposite/composite_decorator.py
BstLabs/py-composite
d839303de51000c9afd1568f63ba02e7bdebbc8c
[ "MIT" ]
null
null
null
src/pycomposite/composite_decorator.py
BstLabs/py-composite
d839303de51000c9afd1568f63ba02e7bdebbc8c
[ "MIT" ]
null
null
null
from collections import deque from functools import reduce from inspect import getmembers, isfunction, signature from typing import Any, Iterable, List from deepmerge import always_merger # TODO: type annotation for parts (have to be descendants from the original class) def composite(cls: type) -> type: """ ...
34.022222
113
0.635206
3045f54f5abb82fd545aafc3a358209a579f4c09
1,782
py
Python
populate_next_right_pointers.py
KevinLuo41/LeetCodeInPython
051e1aab9bab17b0d63b4ca73473a7a00899a16a
[ "Apache-2.0" ]
19
2015-01-19T19:36:09.000Z
2020-03-18T03:10:12.000Z
populate_next_right_pointers.py
CodingVault/LeetCodeInPython
051e1aab9bab17b0d63b4ca73473a7a00899a16a
[ "Apache-2.0" ]
null
null
null
populate_next_right_pointers.py
CodingVault/LeetCodeInPython
051e1aab9bab17b0d63b4ca73473a7a00899a16a
[ "Apache-2.0" ]
12
2015-04-25T14:20:38.000Z
2020-09-27T04:59:59.000Z
#!/usr/bin/env python # encoding: utf-8 """ populate_next_right_pointers.py Created by Shengwei on 2014-07-27. """ # https://oj.leetcode.com/problems/populating-next-right-pointers-in-each-node/ # tags: medium, tree, pointer, recursion """Given a binary tree struct TreeLinkNode { TreeLinkNode *left; ...
25.457143
131
0.592031
3047cb95780ae1e77d8e3e3d3b467e13356fed20
5,155
py
Python
renku/cli/config.py
tcchrist/renku-python
47d2b5f36b74d0d3d435e3f78373e52361361139
[ "Apache-2.0" ]
null
null
null
renku/cli/config.py
tcchrist/renku-python
47d2b5f36b74d0d3d435e3f78373e52361361139
[ "Apache-2.0" ]
null
null
null
renku/cli/config.py
tcchrist/renku-python
47d2b5f36b74d0d3d435e3f78373e52361361139
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2017-2020 - Swiss Data Science Center (SDSC) # A partnership between cole Polytechnique Fdrale de Lausanne (EPFL) and # Eidgenssische Technische Hochschule Zrich (ETHZ). # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compli...
36.302817
101
0.585839
304ae2ffee3dad716f333c9b7c6ebd58e4c799b7
2,318
py
Python
lux_dom/apps/core/models.py
mateuszdargacz/lux_dom
dcc5374a2e29d657b5efecf81761b38e84b492ac
[ "MIT" ]
null
null
null
lux_dom/apps/core/models.py
mateuszdargacz/lux_dom
dcc5374a2e29d657b5efecf81761b38e84b492ac
[ "MIT" ]
null
null
null
lux_dom/apps/core/models.py
mateuszdargacz/lux_dom
dcc5374a2e29d657b5efecf81761b38e84b492ac
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = 'mateusz' __date__ = '13.11.14 / 08:59' __git__ = 'https://github.com/mateuszdargacz' from django.db import models from django.utils.translation import gettext_lazy as _ ETAP_CHOICES = ( ('etap1', u'Prace ziemne i fundamenty.'), ('etap2', u'Wykonanie gabarytw domu'), ...
31.324324
93
0.685073
304ae3afa1a9dd483b1b89b6528dd3b604de1825
686
py
Python
Web3/Brownie_AaveInteraction/scripts/get_weth.py
C-Mierez/Web3-Solidity
6a24f9cf87dc303c8e9e74e4e895bf306940afb3
[ "MIT" ]
1
2022-02-02T21:46:45.000Z
2022-02-02T21:46:45.000Z
Web3/Brownie_AaveInteraction/scripts/get_weth.py
C-Mierez/Web3-Solidity
6a24f9cf87dc303c8e9e74e4e895bf306940afb3
[ "MIT" ]
null
null
null
Web3/Brownie_AaveInteraction/scripts/get_weth.py
C-Mierez/Web3-Solidity
6a24f9cf87dc303c8e9e74e4e895bf306940afb3
[ "MIT" ]
null
null
null
from scripts.utils import get_account from brownie import interface, config, network, accounts from web3 import Web3 def get_weth(): """ Mint wETH by depositing ETH """ account = get_account() # Need to get the ABI and the Address of the contract weth = interface.IWeth(config["networks"][ne...
19.055556
83
0.606414
304ae95989c40c10b900a6dc4b6dd05aa6d2ee66
3,672
py
Python
Dictionary.py
vitorbellotto/synonymme
93f528e2f7a099f9368f9db0126e5c2328579c8d
[ "MIT" ]
null
null
null
Dictionary.py
vitorbellotto/synonymme
93f528e2f7a099f9368f9db0126e5c2328579c8d
[ "MIT" ]
null
null
null
Dictionary.py
vitorbellotto/synonymme
93f528e2f7a099f9368f9db0126e5c2328579c8d
[ "MIT" ]
null
null
null
#!/bin/usr/python # # This class imports search results from # DUDEN website and stores in a pickle for # later use. # ############################################# import pprint, pickle from bs4 import BeautifulSoup import requests import re #german_dict = { word:meaning } #pickleMe( german_dict ) #my_stored_dict...
28.030534
164
0.638072
304b327ad51f134fa8eece539a50bfafd09420f2
967
py
Python
vhdl-stuff/examples/test_srff.py
jwrr/fpga-stuff
2c8c1c7a40478242218d4625b8369bb45495b463
[ "MIT" ]
null
null
null
vhdl-stuff/examples/test_srff.py
jwrr/fpga-stuff
2c8c1c7a40478242218d4625b8369bb45495b463
[ "MIT" ]
null
null
null
vhdl-stuff/examples/test_srff.py
jwrr/fpga-stuff
2c8c1c7a40478242218d4625b8369bb45495b463
[ "MIT" ]
null
null
null
# test_srff.py import random import cocotb from cocotb.clock import Clock from cocotb.triggers import RisingEdge from cocotb.triggers import FallingEdge from cocotb.triggers import ClockCycles
22.488372
83
0.581179
304b9bc6fd6a3a2a21ca27b3531e3cab0c72ac7b
1,778
py
Python
cro_tax_debtors/spiders.py
arrrlo/python-croatian-tax-deptors-website-parser
30b00a45499da21e9b13446decdd3533932550d5
[ "MIT" ]
null
null
null
cro_tax_debtors/spiders.py
arrrlo/python-croatian-tax-deptors-website-parser
30b00a45499da21e9b13446decdd3533932550d5
[ "MIT" ]
2
2021-03-31T18:39:04.000Z
2021-12-13T19:47:01.000Z
cro_tax_debtors/spiders.py
arrrlo/python-croatian-tax-deptors-website-parser
30b00a45499da21e9b13446decdd3533932550d5
[ "MIT" ]
null
null
null
import six import requests import lxml.html as lxml_html from .debtors import Item, CategoryDone if six.PY2: import unidecode from StringIO import StringIO else: from io import StringIO
28.222222
96
0.525872
304c8fe683be3a926e459ed98e503a73c2553649
3,382
py
Python
python/domain/bir2017/content/ch10.py
ICTU/document-as-code
e65fddb94513e7c2f54f248b4ce69e9e10ce42f5
[ "Apache-2.0" ]
2
2021-01-09T17:00:51.000Z
2021-02-19T09:35:26.000Z
python/domain/bir2017/content/ch10.py
ICTU/document-as-code
e65fddb94513e7c2f54f248b4ce69e9e10ce42f5
[ "Apache-2.0" ]
null
null
null
python/domain/bir2017/content/ch10.py
ICTU/document-as-code
e65fddb94513e7c2f54f248b4ce69e9e10ce42f5
[ "Apache-2.0" ]
1
2020-02-24T15:50:05.000Z
2020-02-24T15:50:05.000Z
# -*- coding: latin-1 -*- """ fragments - define text fragments in the document """ from domain.norm_document.model import Chapter, Section, Norm, Verifier S1001 = Section( identifier="10.01", title="Cryptografsche beheersmaatregelen", text="Doelstelling: Zorgen voor correct en doeltreffend gebruik va...
40.746988
118
0.528681
304f869a63a7210490cd6c2ae5d59c68c1c940cd
5,784
py
Python
cs329s_waymo_object_detection/utils/train_utils.py
peterdavidfagan/waymo-object-detection
11462eebe3305427bb1a62cf94ca67a6a9882648
[ "MIT" ]
null
null
null
cs329s_waymo_object_detection/utils/train_utils.py
peterdavidfagan/waymo-object-detection
11462eebe3305427bb1a62cf94ca67a6a9882648
[ "MIT" ]
null
null
null
cs329s_waymo_object_detection/utils/train_utils.py
peterdavidfagan/waymo-object-detection
11462eebe3305427bb1a62cf94ca67a6a9882648
[ "MIT" ]
1
2021-12-14T16:41:00.000Z
2021-12-14T16:41:00.000Z
import sys import os import numpy as np import torchvision from torchvision.models.detection.faster_rcnn import FastRCNNPredictor from torchvision.models.detection import FasterRCNN from torchvision.models.detection.rpn import AnchorGenerator import wandb import json from cs329s_waymo_object_detection.utils.gcp_util...
34.428571
125
0.625346
305038be5dd892c99fe930ac700a51d9f7d832cd
2,691
py
Python
qc_extended_vs_vaps.py
bvermeulen/Seistools
9c6fadf92b9ac2cbd6c32ed510147525c4b5464b
[ "MIT" ]
null
null
null
qc_extended_vs_vaps.py
bvermeulen/Seistools
9c6fadf92b9ac2cbd6c32ed510147525c4b5464b
[ "MIT" ]
null
null
null
qc_extended_vs_vaps.py
bvermeulen/Seistools
9c6fadf92b9ac2cbd6c32ed510147525c4b5464b
[ "MIT" ]
null
null
null
''' program to run extended QC parsing module using various options: sequential, multiprocessing, threading ''' import multiprocessing as mp from pathlib import Path import pandas as pd from qc_extended import ExtendedQc from qc_vaps import Vaps from Utils.plogger import Logger, timed from pprint import pprint # L...
34.063291
95
0.709402
30506cdfed61a7b27612fed89f38a8af342bb827
7,270
py
Python
src/Project.py
atbe/231_grading_script_v2
91fe136690d9685d2b5285404bb26fa93d694ecd
[ "MIT" ]
null
null
null
src/Project.py
atbe/231_grading_script_v2
91fe136690d9685d2b5285404bb26fa93d694ecd
[ "MIT" ]
null
null
null
src/Project.py
atbe/231_grading_script_v2
91fe136690d9685d2b5285404bb26fa93d694ecd
[ "MIT" ]
null
null
null
import re import subprocess import getpass # for testing purposes only. EDITOR="gedit"
33.502304
203
0.578129
305124b76a851e90ce809fdd7967dba1f291bc9c
1,188
py
Python
arni_countermeasure/src/arni_countermeasure/reaction_publish_rosout_node.py
UTNuclearRobotics/arni
474c261cb5ed1cadb0bc23d3c8dd3a65aed48c65
[ "BSD-2-Clause" ]
16
2015-01-06T00:51:05.000Z
2021-04-08T14:21:05.000Z
arni_countermeasure/src/arni_countermeasure/reaction_publish_rosout_node.py
ROS-PSE/arni
6a934f25341fa4e49afb0c18aac8767db32ba177
[ "BSD-2-Clause" ]
14
2015-07-21T08:22:21.000Z
2022-02-11T19:18:21.000Z
arni_countermeasure/src/arni_countermeasure/reaction_publish_rosout_node.py
UTNuclearRobotics/arni
474c261cb5ed1cadb0bc23d3c8dd3a65aed48c65
[ "BSD-2-Clause" ]
9
2016-01-21T19:49:59.000Z
2019-06-29T02:38:18.000Z
from reaction import * import rospy
29.7
77
0.568182
30521d4ad40c7934c59cde96457b1b9fac8acd5a
1,734
py
Python
tools/lint.py
WestHealth/zero-to-jupyterhub-k8s
2aa66cdfdc493673923647437d752e26202f4e93
[ "BSD-3-Clause" ]
1
2021-04-16T10:36:57.000Z
2021-04-16T10:36:57.000Z
tools/lint.py
WestHealth/zero-to-jupyterhub-k8s
2aa66cdfdc493673923647437d752e26202f4e93
[ "BSD-3-Clause" ]
2
2021-04-30T20:39:34.000Z
2021-06-01T22:22:32.000Z
tools/lint.py
WestHealth/zero-to-jupyterhub-k8s
2aa66cdfdc493673923647437d752e26202f4e93
[ "BSD-3-Clause" ]
2
2018-04-11T06:44:21.000Z
2020-09-30T12:39:35.000Z
#!/usr/bin/env python3 """ Lints the chart's yaml files without any cluster interaction. For this script to function, you must install yamllint and kubeval. - https://github.com/adrienverge/yamllint - https://github.com/garethr/kubeval """ import argparse import glob import subprocess def lint(config, values, kuber...
29.389831
117
0.638985
30544a4da69555ddad5480643ce749102e8b125d
17,048
py
Python
the-big-fan/python/iac/stacks/sharedinfrastack.py
InfrastructureHQ/CDK-Patterns
3531f2df028e87c1455b8afe95563d7552abb7af
[ "MIT" ]
null
null
null
the-big-fan/python/iac/stacks/sharedinfrastack.py
InfrastructureHQ/CDK-Patterns
3531f2df028e87c1455b8afe95563d7552abb7af
[ "MIT" ]
null
null
null
the-big-fan/python/iac/stacks/sharedinfrastack.py
InfrastructureHQ/CDK-Patterns
3531f2df028e87c1455b8afe95563d7552abb7af
[ "MIT" ]
null
null
null
# Import Core Modules # For consistency with other languages, `cdk` is the preferred import name for the CDK's core module. from aws_cdk import core as cdk # Import Security & Identity Related Modules from aws_cdk import aws_iam from aws_cdk.aws_iam import PolicyStatement # Import Events Related Modules from aws_cdk...
37.800443
122
0.618548
3054870a9a6b52e6d8384dc8bdd0e0da2088d57e
1,301
py
Python
tests/util/pdf_utils.py
Worteks/OrangeAssassin
21baf0b84fbedd887f6d88e13c624f14fb0b5e06
[ "Apache-2.0" ]
null
null
null
tests/util/pdf_utils.py
Worteks/OrangeAssassin
21baf0b84fbedd887f6d88e13c624f14fb0b5e06
[ "Apache-2.0" ]
null
null
null
tests/util/pdf_utils.py
Worteks/OrangeAssassin
21baf0b84fbedd887f6d88e13c624f14fb0b5e06
[ "Apache-2.0" ]
null
null
null
from email.mime.application import MIMEApplication from email.mime.multipart import MIMEMultipart from io import BytesIO import PyPDF2 def new_pdf(details, name, width=216, height=280): """Creates a new empty PDF file""" pdfobj = PyPDF2.PdfFileWriter() pdfobj.addMetadata(details) pdfobj.addBlankPage(...
26.02
61
0.631822
3055900523d2bf55effafa8afe3068e2f75ff4bd
19,787
py
Python
projet/propagation.py
xinyuhuang97/LU3IN003-Projet
c0b80752a6e4454108d0e300a344e2b985c325d2
[ "MIT" ]
null
null
null
projet/propagation.py
xinyuhuang97/LU3IN003-Projet
c0b80752a6e4454108d0e300a344e2b985c325d2
[ "MIT" ]
null
null
null
projet/propagation.py
xinyuhuang97/LU3IN003-Projet
c0b80752a6e4454108d0e300a344e2b985c325d2
[ "MIT" ]
null
null
null
import numpy as np import sys import string M=4 N=5 # grille rempli par sequence s_grille=np.full((M+N,M+N),0) # grille remplit par 0 -1 1 grille=np.full((M,N), -1) #grille[1][0]=0 sequence1=[1,1] sequence2=[2,1] # non-colore -1 # blanche 0 # noire 1 #print(coloriage_possible(grille, sequence1, 1, 1, 2)) #print(co...
34.174439
199
0.468692
305606f59c724324ce34c3cc3f3589c68d50caf9
2,204
py
Python
scoring/clogp.py
MauriceKarrenbrock/reinvent-memory
57860dabb6534daf14fe2ab81d57589a90760442
[ "MIT" ]
null
null
null
scoring/clogp.py
MauriceKarrenbrock/reinvent-memory
57860dabb6534daf14fe2ab81d57589a90760442
[ "MIT" ]
null
null
null
scoring/clogp.py
MauriceKarrenbrock/reinvent-memory
57860dabb6534daf14fe2ab81d57589a90760442
[ "MIT" ]
null
null
null
# coding=utf-8 from typing import List import numpy as np from rdkit import Chem from rdkit.Chem import rdMolDescriptors
38
101
0.582123
30578c471d625fabe01bf86a641fc46fb238b53c
21,726
py
Python
reference/word2vec_basic_all_by_kim.py
KangByungWook/tensorflow
10e553637f9837779352f64deb5986c194bb7bfc
[ "MIT" ]
null
null
null
reference/word2vec_basic_all_by_kim.py
KangByungWook/tensorflow
10e553637f9837779352f64deb5986c194bb7bfc
[ "MIT" ]
null
null
null
reference/word2vec_basic_all_by_kim.py
KangByungWook/tensorflow
10e553637f9837779352f64deb5986c194bb7bfc
[ "MIT" ]
null
null
null
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
42.186408
130
0.605726
3058406d71c3bd564d8b8aecb2fd9d384c4a2543
305
py
Python
uontypes/units/mass.py
uon-language/uon-parser
666894cf4917d8da01512918a147882550382269
[ "MIT" ]
1
2020-05-29T06:47:16.000Z
2020-05-29T06:47:16.000Z
uontypes/units/mass.py
Cell00phane/uon-parser
666894cf4917d8da01512918a147882550382269
[ "MIT" ]
1
2020-07-16T08:19:08.000Z
2020-07-16T08:19:08.000Z
uontypes/units/mass.py
uon-language/uon-parser
666894cf4917d8da01512918a147882550382269
[ "MIT" ]
null
null
null
from uontypes.units.quantity import Quantity
13.863636
44
0.606557
3059c23178125af1d95592290542a6c700d2de8b
1,502
py
Python
setup.py
jcomo/victor
474104d1eadbef5f20f4d2a22fb603fa1e9ef6bc
[ "Unlicense", "MIT" ]
1
2015-11-16T18:58:40.000Z
2015-11-16T18:58:40.000Z
setup.py
jcomo/victor
474104d1eadbef5f20f4d2a22fb603fa1e9ef6bc
[ "Unlicense", "MIT" ]
null
null
null
setup.py
jcomo/victor
474104d1eadbef5f20f4d2a22fb603fa1e9ef6bc
[ "Unlicense", "MIT" ]
null
null
null
import sys from setuptools import setup, find_packages from setuptools.command.test import test as TestCommand setup( name = 'victor', version = '0.1.1', description = "A simple tool for debugging and profiling applications", url = 'https://github.com/jcomo/victor', author = 'Jonathan Como', ...
26.821429
75
0.607856
305a61a05aebe16630a356ef804d94909257122b
10,156
py
Python
tests/sns/test_sns_paginators.py
paulhutchings/beartype-boto3-example
d69298d9444d578799e2a17cb63de11474b2278a
[ "MIT" ]
3
2021-11-16T06:21:11.000Z
2021-11-22T08:59:11.000Z
tests/sns/test_sns_paginators.py
paulhutchings/beartype-boto3-example
d69298d9444d578799e2a17cb63de11474b2278a
[ "MIT" ]
9
2021-11-19T03:29:00.000Z
2021-12-30T23:54:47.000Z
tests/sns/test_sns_paginators.py
paulhutchings/beartype-boto3-example
d69298d9444d578799e2a17cb63de11474b2278a
[ "MIT" ]
null
null
null
import pytest from bearboto3.sns import ( ListEndpointsByPlatformApplicationPaginator, ListPlatformApplicationsPaginator, ListSubscriptionsPaginator, ListSubscriptionsByTopicPaginator, ListTopicsPaginator, ListPhoneNumbersOptedOutPaginator, ListOriginationNumbersPaginator, ListSMSSandbox...
26.041026
88
0.738283