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
1f09cb31eceadc76ff93699e82ee70df317cae82
983
py
Python
src/spaceone/monitoring/manager/plugin_manager.py
jean1042/monitoring
0585a1ea52ec13285eaca81cc5b19fa3f7a1fba4
[ "Apache-2.0" ]
5
2020-06-04T23:01:30.000Z
2020-09-09T08:58:51.000Z
src/spaceone/monitoring/manager/plugin_manager.py
jean1042/monitoring
0585a1ea52ec13285eaca81cc5b19fa3f7a1fba4
[ "Apache-2.0" ]
9
2022-02-10T00:58:28.000Z
2022-03-23T11:12:47.000Z
src/spaceone/monitoring/manager/plugin_manager.py
jean1042/monitoring
0585a1ea52ec13285eaca81cc5b19fa3f7a1fba4
[ "Apache-2.0" ]
7
2020-06-10T01:56:35.000Z
2021-12-02T05:36:21.000Z
import logging from spaceone.core.manager import BaseManager from spaceone.core.connector.space_connector import SpaceConnector _LOGGER = logging.getLogger(__name__)
35.107143
110
0.666328
1f0a14df894f78200ec160dd56d1194d86c6d8d9
1,107
py
Python
Segmentation/bins/hist_label_portarit.py
ttthomaschan/DeepcvLib
18f7728559136a3c5c8ad54666788ea771e95b16
[ "MIT" ]
null
null
null
Segmentation/bins/hist_label_portarit.py
ttthomaschan/DeepcvLib
18f7728559136a3c5c8ad54666788ea771e95b16
[ "MIT" ]
null
null
null
Segmentation/bins/hist_label_portarit.py
ttthomaschan/DeepcvLib
18f7728559136a3c5c8ad54666788ea771e95b16
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ # @file name : hist_label_portrait.py # @author : JLChen # @date : 2020-03-11 # @brief : """ import numpy as np import os import matplotlib.pyplot as plt import pylab as pl import cv2 if __name__ == '__main__': data_dir = r"G:\deep_learning_data\EG_dataset\dataset\tr...
26.357143
100
0.67299
1f0a726404191dd0a8ef9e2cd1c7c33d9b482f77
7,924
py
Python
yoapi/contexts.py
YoApp/yo-api
a162e51804ab91724cc7ad3e7608410329da6789
[ "MIT" ]
1
2021-12-17T03:25:34.000Z
2021-12-17T03:25:34.000Z
yoapi/contexts.py
YoApp/yo-api
a162e51804ab91724cc7ad3e7608410329da6789
[ "MIT" ]
null
null
null
yoapi/contexts.py
YoApp/yo-api
a162e51804ab91724cc7ad3e7608410329da6789
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Client context module.""" import pytz import time from flask import current_app from datetime import datetime, timedelta from mongoengine import DoesNotExist from .ab_test import get_enrolled_experiments from .core import cache from .errors import APIError from .helpers import assert_vali...
32.342857
114
0.617365
1f0acc1fb7d824f01253e231a80bcc928842ee31
4,180
py
Python
coyote_framework/config/abstract_config.py
vaibhavrastogi1988/python_testing_framework
583a2286479ed0ccda309c866a403dc92fa1bb3b
[ "MIT" ]
null
null
null
coyote_framework/config/abstract_config.py
vaibhavrastogi1988/python_testing_framework
583a2286479ed0ccda309c866a403dc92fa1bb3b
[ "MIT" ]
null
null
null
coyote_framework/config/abstract_config.py
vaibhavrastogi1988/python_testing_framework
583a2286479ed0ccda309c866a403dc92fa1bb3b
[ "MIT" ]
null
null
null
from configparser import ConfigParser import json import fnmatch import os __author__ = 'justin@shapeways.com' TEST_RUN_SETTING_CONFIG = 'TEST_RUN_SETTING_CONFIG' confg_dict = {} def load_config_vars(target_config, source_config): """Loads all attributes from source config into target config @type targe...
35.726496
134
0.617943
1f0aed11f4fb176f853b2e44dfcbd9b5e33ba39f
16,468
py
Python
src/model_transforms.py
pmclSF/DeepCompress
6fc51aa0e9b34fb89f97877ad56da6345f93b929
[ "MIT" ]
8
2021-03-11T10:56:35.000Z
2022-02-24T12:44:33.000Z
src/model_transforms.py
pmclSF/DeepCompress
6fc51aa0e9b34fb89f97877ad56da6345f93b929
[ "MIT" ]
null
null
null
src/model_transforms.py
pmclSF/DeepCompress
6fc51aa0e9b34fb89f97877ad56da6345f93b929
[ "MIT" ]
null
null
null
from enum import Enum import tensorflow.compat.v1 as tf from tensorflow.keras.layers import Layer, Conv3D, Conv3DTranspose, AveragePooling3D from tensorflow_core.python.keras.utils import conv_utils import tensorflow_compression as tfc import tensorflow.keras as keras # ad-hoc alert: specify the activation using this...
55.076923
197
0.660189
1f0d5b67c4f91743453ccb056ca36b102ec5a878
6,485
py
Python
src/main.py
matthewb96/NetSpeedGraphs
51e6f6d4f24845e50f34ed56452a4fa454db189b
[ "MIT" ]
null
null
null
src/main.py
matthewb96/NetSpeedGraphs
51e6f6d4f24845e50f34ed56452a4fa454db189b
[ "MIT" ]
4
2021-06-08T21:23:15.000Z
2022-03-12T00:29:23.000Z
src/main.py
matthewb96/NetSpeedGraphs
51e6f6d4f24845e50f34ed56452a4fa454db189b
[ "MIT" ]
null
null
null
""" Main module for running NetSpeedGraphs. """ ##### IMPORTS ##### # Standard imports from pathlib import Path from datetime import datetime, timedelta from argparse import ArgumentParser # Third party imports import speedtest import numpy as np import pandas as pd from bokeh.plotting import figure, output_file,...
33.25641
84
0.612336
1f0da5b719cc8ed4639299b06648e3a470d196da
7,478
py
Python
tests/planar_tests/test_region_in_multiregion.py
lycantropos/orient
01f4f67a717c5ee911d83756d455cc35e85ce817
[ "MIT" ]
2
2020-11-01T00:25:09.000Z
2021-04-07T10:13:59.000Z
tests/planar_tests/test_region_in_multiregion.py
lycantropos/orient
01f4f67a717c5ee911d83756d455cc35e85ce817
[ "MIT" ]
null
null
null
tests/planar_tests/test_region_in_multiregion.py
lycantropos/orient
01f4f67a717c5ee911d83756d455cc35e85ce817
[ "MIT" ]
null
null
null
from typing import Tuple from ground.base import Relation from hypothesis import given from orient.hints import (Multiregion, Region) from orient.planar import (contour_in_multiregion, region_in_multiregion, region_in_region) from tests.u...
47.329114
79
0.622626
1f0ed2213b59cdb0f244b760bfd1759ed4538c6a
11,676
py
Python
gui/src/core/parse_qca.py
retallickj/qca-embedding
96fd37a3ecd4beacb04ad1cb193d65d0b48ceab2
[ "MIT" ]
1
2017-11-02T20:38:20.000Z
2017-11-02T20:38:20.000Z
gui/src/core/parse_qca.py
retallickj/qca-embedding
96fd37a3ecd4beacb04ad1cb193d65d0b48ceab2
[ "MIT" ]
null
null
null
gui/src/core/parse_qca.py
retallickj/qca-embedding
96fd37a3ecd4beacb04ad1cb193d65d0b48ceab2
[ "MIT" ]
null
null
null
#!/usr/bin/env python #--------------------------------------------------------- # Name: parse_qca.py # Purpose: Parsing functions for QCADesigner files # Author: Jacob Retallick # Created: 2015.10.22 # Last Modified: 2015.10.22 #--------------------------------------------------------- # NOTE # the origin...
32.34349
80
0.554642
1f0fed3d680bffcc5eeafee6ce65b7395cfecca1
7,391
py
Python
docs/Tutorial/1-glm/plot_1_LinearRegression.py
bbayukari/abess
3b21b0a58cac6c1464ec9403ffbe4902fee7b890
[ "Intel" ]
null
null
null
docs/Tutorial/1-glm/plot_1_LinearRegression.py
bbayukari/abess
3b21b0a58cac6c1464ec9403ffbe4902fee7b890
[ "Intel" ]
null
null
null
docs/Tutorial/1-glm/plot_1_LinearRegression.py
bbayukari/abess
3b21b0a58cac6c1464ec9403ffbe4902fee7b890
[ "Intel" ]
null
null
null
""" ================= Linear Regression ================= In this tutorial, we are going to demonstrate how to use the ``abess`` package to carry out best subset selection in linear regression with both simulated data and real data. """ ############################################################################### #...
35.028436
221
0.64998
1f11e9df2b051fcb60ef9a9128d6a058c4f210e2
2,386
py
Python
pyppeteer/tracing.py
cr1pt/pypyteer
b3aade3741b385f2e1dde600b501776f1f5e8479
[ "MIT" ]
null
null
null
pyppeteer/tracing.py
cr1pt/pypyteer
b3aade3741b385f2e1dde600b501776f1f5e8479
[ "MIT" ]
null
null
null
pyppeteer/tracing.py
cr1pt/pypyteer
b3aade3741b385f2e1dde600b501776f1f5e8479
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Tracing module.""" import asyncio from pathlib import Path from typing import Any, Awaitable from pyppeteer.connection import Session
32.684932
77
0.559933
1f126ef87161ba2d8fbb4e598c5bbb09c32019bd
2,627
py
Python
src/wai/annotations/isp/map_labels/component/_MapLabels.py
waikato-ufdl/wai-annotations-core
bac3429e9488efb456972c74f9d462f951c4af3d
[ "Apache-2.0" ]
null
null
null
src/wai/annotations/isp/map_labels/component/_MapLabels.py
waikato-ufdl/wai-annotations-core
bac3429e9488efb456972c74f9d462f951c4af3d
[ "Apache-2.0" ]
3
2021-06-30T23:42:47.000Z
2022-03-01T03:45:07.000Z
src/wai/annotations/isp/map_labels/component/_MapLabels.py
waikato-ufdl/wai-annotations-core
bac3429e9488efb456972c74f9d462f951c4af3d
[ "Apache-2.0" ]
null
null
null
from typing import Optional, Dict from wai.common.adams.imaging.locateobjects import LocatedObjects from wai.common.cli.options import TypedOption from ....core.component import ProcessorComponent from ....core.stream import ThenFunction, DoneFunction from ....core.stream.util import RequiresNoFinalisation from ....c...
33.679487
113
0.650552
1f12f143e8af312aabb54b8c1b32c57f8566b95e
793
py
Python
python/tHome/msgHub/__init__.py
ZigmundRat/T-Home
5dc8689f52d87dac890051e540b338b009293ced
[ "BSD-2-Clause" ]
18
2016-04-17T19:39:28.000Z
2020-11-19T06:55:20.000Z
python/tHome/msgHub/__init__.py
ZigmundRat/T-Home
5dc8689f52d87dac890051e540b338b009293ced
[ "BSD-2-Clause" ]
11
2018-09-07T18:34:41.000Z
2021-05-02T04:44:54.000Z
python/tHome/msgHub/__init__.py
ZigmundRat/T-Home
5dc8689f52d87dac890051e540b338b009293ced
[ "BSD-2-Clause" ]
12
2016-10-31T12:29:08.000Z
2021-12-28T12:18:28.000Z
#=========================================================================== # # msgHub package # #=========================================================================== __doc__ = """Zero-MQ Message Hub The msgHub is a pub/sub forwarder. All of the various data producers send messages to the msgHub as a single ...
28.321429
76
0.387137
1f14096bca569e364e31b3699b308c6507e8fe1b
8,221
py
Python
nlg/app.py
samrudh/gramex-nlg
fb1b1ce14347947c8644adda7bd63856dcb2ce3d
[ "MIT" ]
null
null
null
nlg/app.py
samrudh/gramex-nlg
fb1b1ce14347947c8644adda7bd63856dcb2ce3d
[ "MIT" ]
null
null
null
nlg/app.py
samrudh/gramex-nlg
fb1b1ce14347947c8644adda7bd63856dcb2ce3d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # vim:fenc=utf-8 """ Module for gramex exposure. This shouldn't be imported anywhere, only for use with gramex. """ import glob import json import os import os.path as op import pandas as pd from six.moves.urllib import parse from tornado.template import Template from gramex.apps.nlg import g...
33.555102
88
0.643961
1f14219d12c0adf9ade099f871dd4550e114601e
3,682
py
Python
data/main_data_flow.py
SterArcher/OHCA-registry-Slovenia
ad8278a28039503ab6a75d48ffea314de9a759ba
[ "MIT" ]
1
2022-02-28T13:02:14.000Z
2022-02-28T13:02:14.000Z
data/main_data_flow.py
SterArcher/dispatch
ad8278a28039503ab6a75d48ffea314de9a759ba
[ "MIT" ]
1
2022-03-20T10:51:17.000Z
2022-03-21T07:52:57.000Z
data/main_data_flow.py
SterArcher/OHCA-registry-Slovenia
ad8278a28039503ab6a75d48ffea314de9a759ba
[ "MIT" ]
null
null
null
import plotly.graph_objects as go import plotly as plt import random # Uncomment the names you want the diagram to show # Names in english # sta = "Statistical Office" # si = "Emergency call admission" #"sprejem intervencij" # pni = "Emergency intervention report" #"poroilo/protokol nujne intervencije" # pnrv = "Eme...
35.066667
125
0.67409
1f14b7efeb28f5b978cdbfde55415ea03866d4ca
569
py
Python
tests/Exscript/memtest_host.py
saveshodhan/exscript
72718eee3e87b345d5a5255be9824e867e42927b
[ "MIT" ]
226
2015-01-20T19:59:06.000Z
2022-01-02T11:13:01.000Z
tests/Exscript/memtest_host.py
saveshodhan/exscript
72718eee3e87b345d5a5255be9824e867e42927b
[ "MIT" ]
155
2015-01-02T07:56:27.000Z
2022-01-09T20:56:19.000Z
tests/Exscript/memtest_host.py
saveshodhan/exscript
72718eee3e87b345d5a5255be9824e867e42927b
[ "MIT" ]
114
2015-01-03T11:48:17.000Z
2022-01-26T02:50:43.000Z
from __future__ import print_function from builtins import str from builtins import range # This script is not meant to provide a fully automated test, it's # merely a hack/starting point for investigating memory consumption # manually. The behavior also depends heavily on the version of meliae. from meliae import scan...
35.5625
71
0.773286
1f1586c55bd8026b70c428056979527a8012b8fd
8,468
py
Python
apcadastros.py
Alexsussa/ap-cadastros
9b5e9b57970a6a044ebde071a68403e0d513e89b
[ "MIT" ]
null
null
null
apcadastros.py
Alexsussa/ap-cadastros
9b5e9b57970a6a044ebde071a68403e0d513e89b
[ "MIT" ]
null
null
null
apcadastros.py
Alexsussa/ap-cadastros
9b5e9b57970a6a044ebde071a68403e0d513e89b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- encoding: utf-8 -*- __developer__ = 'Alex Pinheiro' __version__ = 1.4 __build__ = 6 import sqlite3 from tkinter.ttk import * from tkinter.filedialog import * from threading import Thread from utils import Utils from login import Login u = Utils # Listas estados = ['AC', 'AL', 'AP', 'AM'...
41.920792
118
0.62931
1f17a8045e62dbb0dc195713bf778e0658496213
131
py
Python
src/pricehist/beanprice/alphavantage.py
chrisberkhout/pricehist
a54da85a6fae15e2f771e8612aed089407ec5c22
[ "MIT" ]
4
2021-09-15T03:23:10.000Z
2022-02-08T23:31:10.000Z
src/pricehist/beanprice/alphavantage.py
chrisberkhout/pricehist
a54da85a6fae15e2f771e8612aed089407ec5c22
[ "MIT" ]
null
null
null
src/pricehist/beanprice/alphavantage.py
chrisberkhout/pricehist
a54da85a6fae15e2f771e8612aed089407ec5c22
[ "MIT" ]
null
null
null
from pricehist import beanprice from pricehist.sources.alphavantage import AlphaVantage Source = beanprice.source(AlphaVantage())
26.2
55
0.847328
1f18bfa4fe6a76d3156288890c8bbdb080595ab5
12,846
py
Python
example/hit_path.py
dzwiedziu-nkg/credo-classify-framework
45417b505b4f4b20a7248f3487ca57a3fd49ccee
[ "MIT" ]
null
null
null
example/hit_path.py
dzwiedziu-nkg/credo-classify-framework
45417b505b4f4b20a7248f3487ca57a3fd49ccee
[ "MIT" ]
null
null
null
example/hit_path.py
dzwiedziu-nkg/credo-classify-framework
45417b505b4f4b20a7248f3487ca57a3fd49ccee
[ "MIT" ]
3
2020-06-19T15:41:19.000Z
2020-06-29T12:47:05.000Z
import math import sys from scipy.interpolate import interp2d from scipy.ndimage import rotate, center_of_mass from scipy.spatial import distance from skimage.feature import canny from skimage.filters import rank, gaussian from skimage.measure import subdivide_polygon from skimage.morphology import medial_axis, square...
28.738255
175
0.541725
1f18f11b5d9f381e25d945aa36634594b061dc4c
3,749
py
Python
exps/supp-synthetic/notebooks/hp_analysis.py
Viktour19/overlap-code
f5c6e63146a00f65710c38b9181bb9d12de6454f
[ "MIT" ]
2
2020-07-09T03:15:58.000Z
2022-03-09T11:57:17.000Z
exps/supp-synthetic/notebooks/hp_analysis.py
Viktour19/overlap-code
f5c6e63146a00f65710c38b9181bb9d12de6454f
[ "MIT" ]
null
null
null
exps/supp-synthetic/notebooks/hp_analysis.py
Viktour19/overlap-code
f5c6e63146a00f65710c38b9181bb9d12de6454f
[ "MIT" ]
1
2021-05-18T11:55:04.000Z
2021-05-18T11:55:04.000Z
#!/usr/bin/env python # coding: utf-8 from sacred.observers import TinyDbReader import pdb import numpy as np import pandas as pd import matplotlib.pyplot as plt
41.197802
112
0.628434
1f1ad2122b60088ba3e024758a2e26d9b7b4784d
9,282
py
Python
bin/punydecode.py
mutedmouse/punydecode
547900823b874f581a842379a4472b2a27d64c1c
[ "Apache-2.0" ]
1
2021-03-24T00:22:40.000Z
2021-03-24T00:22:40.000Z
bin/punydecode.py
mutedmouse/punydecode
547900823b874f581a842379a4472b2a27d64c1c
[ "Apache-2.0" ]
null
null
null
bin/punydecode.py
mutedmouse/punydecode
547900823b874f581a842379a4472b2a27d64c1c
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2005-2017 Splunk Inc. All Rights Reserved. Version 6.x # Author: Andrew Quill import sys,splunk.Intersplunk import string import getpass import re if __name__ == "__main__": main()
45.058252
120
0.5195
1f1e0b869b9f01994358b74334809a1ece521ead
774
py
Python
345_ReverseVowelsOfAString.py
satwiksabharwal01/LeetcodeProblemSolutions
c08fb77b76519f9c543d74f84cb2c0477aeddcd9
[ "MIT" ]
1
2020-06-03T22:00:54.000Z
2020-06-03T22:00:54.000Z
345_ReverseVowelsOfAString.py
AmiGandhi/leetcode
238186f1e4dd7f243caab47173ebc2511ae5902e
[ "MIT" ]
null
null
null
345_ReverseVowelsOfAString.py
AmiGandhi/leetcode
238186f1e4dd7f243caab47173ebc2511ae5902e
[ "MIT" ]
null
null
null
# Write a function that takes a string as input and reverse only the vowels of a string. # Example 1: # Input: "hello" # Output: "holle" # Example 2: # Input: "leetcode" # Output: "leotcede" if __name__ == "__main__": s = "hello" print(Solution().reverseVowels(s))
26.689655
88
0.536176
1f1f88fe67e806539b890092e9e0d182702100b7
574
py
Python
script/run_basic_slackbot.py
imperial-genomics-facility/IGFSlackBot
2692460e907381cea067b674a560cacef6fff981
[ "Apache-2.0" ]
null
null
null
script/run_basic_slackbot.py
imperial-genomics-facility/IGFSlackBot
2692460e907381cea067b674a560cacef6fff981
[ "Apache-2.0" ]
null
null
null
script/run_basic_slackbot.py
imperial-genomics-facility/IGFSlackBot
2692460e907381cea067b674a560cacef6fff981
[ "Apache-2.0" ]
null
null
null
import argparse from slackbot.basic.igfbasicslackbot import IgfBasicSlackBot parser=argparse.ArgumentParser() parser.add_argument('-s','--slack_config', required=True, help='Slack configuration json file') parser.add_argument('-p','--project_data', required=True, help='Project data CSV file') args=parser.parse_args()...
31.888889
95
0.771777
1f201209100b12ce6a3d7fab4f4d25eb9b397c33
258
py
Python
python/Exercises105Bonus.py
TerryRPatterson/Coursework
633d15b9ceb4e5a3cc4c74d0ca44ab91d7faa7c7
[ "Apache-2.0" ]
null
null
null
python/Exercises105Bonus.py
TerryRPatterson/Coursework
633d15b9ceb4e5a3cc4c74d0ca44ab91d7faa7c7
[ "Apache-2.0" ]
null
null
null
python/Exercises105Bonus.py
TerryRPatterson/Coursework
633d15b9ceb4e5a3cc4c74d0ca44ab91d7faa7c7
[ "Apache-2.0" ]
2
2018-02-16T00:44:16.000Z
2018-02-16T18:44:45.000Z
countDown(20,"Blastoff!")
25.8
75
0.631783
1f2103ff16477b77dbb801e6f1f09baa26d1ea3b
1,170
py
Python
bgbl/management/commands/fix_glyphs.py
okfde/api.offenegesetze.de
85bc0a1a65dfa77651b7319eb0fccde1a27ba193
[ "MIT" ]
16
2018-12-10T11:59:44.000Z
2020-06-28T21:37:15.000Z
bgbl/management/commands/fix_glyphs.py
bundestag/api.offenegesetze.de
280673b9995a8a5c1fd01b1cb14dc0046599530f
[ "MIT" ]
21
2020-02-11T23:17:52.000Z
2022-01-05T13:58:20.000Z
bgbl/management/commands/fix_glyphs.py
bundestag/api.offenegesetze.de
280673b9995a8a5c1fd01b1cb14dc0046599530f
[ "MIT" ]
1
2018-12-11T20:17:09.000Z
2018-12-11T20:17:09.000Z
from glob import glob import os import shutil from django.core.management.base import BaseCommand from bgbl.pdf_utils import fix_glyphs, remove_watermark
30.789474
81
0.638462
1f228e4d5652a96220edc4fa67e8ff6e9ecc91ac
657
py
Python
catalog/bindings/csw/time_topology_complex_type.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/csw/time_topology_complex_type.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/csw/time_topology_complex_type.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass, field from typing import List from bindings.csw.abstract_time_complex_type import AbstractTimeComplexType from bindings.csw.time_topology_primitive_property_type import ( TimeTopologyPrimitivePropertyType, ) __NAMESPACE__ = "http://www.opengis.net/gml"
26.28
75
0.703196
1f251d95dc8853c21e444177f77e27a265f912f3
1,534
py
Python
maro/cli/grass/lib/services/node_api_server/blueprints/containers.py
yangboz/maro
0973783e55ca07bf8e177910c9d47854117a4ea8
[ "MIT" ]
598
2020-09-23T00:50:22.000Z
2022-03-31T08:12:54.000Z
maro/cli/grass/lib/services/node_api_server/blueprints/containers.py
gx9702/maro
38c796f0a7ed1e0f64c299d96c6e0df032401fa9
[ "MIT" ]
235
2020-09-22T10:20:48.000Z
2022-03-31T02:10:03.000Z
maro/cli/grass/lib/services/node_api_server/blueprints/containers.py
gx9702/maro
38c796f0a7ed1e0f64c299d96c6e0df032401fa9
[ "MIT" ]
116
2020-09-22T09:19:04.000Z
2022-02-12T05:04:07.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. from flask import Blueprint, abort, request from ...utils.docker_controller import DockerController from ...utils.exception import CommandExecutionError # Flask related. blueprint = Blueprint(name="container", import_name=__name__) URL_PREFIX...
22.895522
89
0.683833
1f25e26a1245bec906b2d218d9c2eb30d569b680
384
py
Python
examples/testlogger.py
ev3dev-python-tools/ev3devlogging
b98904d9d93059159637d87e5ebcab8ca093b0f1
[ "MIT" ]
null
null
null
examples/testlogger.py
ev3dev-python-tools/ev3devlogging
b98904d9d93059159637d87e5ebcab8ca093b0f1
[ "MIT" ]
null
null
null
examples/testlogger.py
ev3dev-python-tools/ev3devlogging
b98904d9d93059159637d87e5ebcab8ca093b0f1
[ "MIT" ]
null
null
null
# print to log file, not shown on screen (to stderr which ev3dev os puts in logfile) from ev3devlogger import log #from ev3devlogger import timedlog as log log("starwars song(log)") from ev3devlogger import timedlog timedlog("starwars song(timedlog)") print("starwars (print)") log("starwars song") from ev3devlogg...
27.428571
86
0.770833
1f26b6eb6d6dcadfa381edb1a417fab9d0a51f97
5,305
py
Python
python_graphs/instruction_test.py
reshinthadithyan/python-graphs
1234c448cb38af44c963d5ef7f8d99f678028104
[ "Apache-2.0" ]
53
2021-04-12T14:20:16.000Z
2022-03-29T02:47:30.000Z
python_graphs/instruction_test.py
reshinthadithyan/python-graphs
1234c448cb38af44c963d5ef7f8d99f678028104
[ "Apache-2.0" ]
2
2021-09-08T16:37:34.000Z
2022-03-15T17:32:36.000Z
python_graphs/instruction_test.py
reshinthadithyan/python-graphs
1234c448cb38af44c963d5ef7f8d99f678028104
[ "Apache-2.0" ]
14
2021-05-08T04:34:46.000Z
2022-01-16T12:58:16.000Z
# Copyright (C) 2021 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
42.782258
77
0.6541
1f26c8fd4ac1dfad9af1cf8e92f70fe641af8f00
6,521
py
Python
src/licensedcode/saneyaml.py
chetanya-shrimali/scancode-toolkit
a1a22fb225cbeb211bd6f92272a46f1351f57d6b
[ "Apache-2.0", "CC0-1.0" ]
null
null
null
src/licensedcode/saneyaml.py
chetanya-shrimali/scancode-toolkit
a1a22fb225cbeb211bd6f92272a46f1351f57d6b
[ "Apache-2.0", "CC0-1.0" ]
null
null
null
src/licensedcode/saneyaml.py
chetanya-shrimali/scancode-toolkit
a1a22fb225cbeb211bd6f92272a46f1351f57d6b
[ "Apache-2.0", "CC0-1.0" ]
null
null
null
# # Copyright (c) 2017 nexB Inc. and others. All rights reserved. # http://nexb.com and https://github.com/nexB/scancode-toolkit/ # The ScanCode software is licensed under the Apache License version 2.0. # Data generated with ScanCode require an acknowledgment. # ScanCode is a trademark of nexB Inc. # # You may not use...
33.441026
90
0.73455
1f272919a0358c21a01d9a8008881e0d63626d7a
14,383
py
Python
tsutsuji/gui_tsutsuji.py
konawasabi/tsutsuji-trackcomputer
04469a8a9872e8bad3d661c5911b9c881fab8ca9
[ "Apache-2.0" ]
1
2022-03-14T00:35:05.000Z
2022-03-14T00:35:05.000Z
tsutsuji/gui_tsutsuji.py
konawasabi/tsutsuji-trackcomputer
04469a8a9872e8bad3d661c5911b9c881fab8ca9
[ "Apache-2.0" ]
null
null
null
tsutsuji/gui_tsutsuji.py
konawasabi/tsutsuji-trackcomputer
04469a8a9872e8bad3d661c5911b9c881fab8ca9
[ "Apache-2.0" ]
null
null
null
# # Copyright 2021-2022 konawasabi # # 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 o...
43.453172
144
0.643398
1f2ccc8e4139330b0b1a1e4de76035b03e5fa0d0
1,011
py
Python
extra/uniq.py
JarryShaw/darc
0fc8782bb2f641ca3734c94666cbc36e3d9cb09f
[ "BSD-3-Clause" ]
24
2020-07-08T06:16:52.000Z
2022-02-19T00:33:34.000Z
extra/uniq.py
JarryShaw/darc
0fc8782bb2f641ca3734c94666cbc36e3d9cb09f
[ "BSD-3-Clause" ]
42
2020-05-29T12:56:10.000Z
2022-03-07T17:12:08.000Z
extra/uniq.py
JarryShaw/darc
0fc8782bb2f641ca3734c94666cbc36e3d9cb09f
[ "BSD-3-Clause" ]
7
2020-07-11T18:57:24.000Z
2022-02-01T21:46:30.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os import sys import tempfile if __name__ == "__main__": sys.exit(main())
24.071429
72
0.547972
1f2d5d68906150aa022de6e4c0b468cf3688673c
353
py
Python
tests.py
B1Z0N/turingmachine
4c6761ee52fd05071d675a8cab8558025a5c26d9
[ "MIT" ]
null
null
null
tests.py
B1Z0N/turingmachine
4c6761ee52fd05071d675a8cab8558025a5c26d9
[ "MIT" ]
3
2020-03-24T16:53:31.000Z
2021-02-02T21:58:25.000Z
tests.py
B1Z0N/turingmachine
4c6761ee52fd05071d675a8cab8558025a5c26d9
[ "MIT" ]
null
null
null
""" Script that runs all tests written """ import os import pathlib import pytest cwd = pathlib.Path.cwd os.chdir(cwd() / "tests") for subf in subfolders(cwd()): if not subf.endswith("__pycache__"): os.chdir(subf) pytest.main()
13.576923
72
0.645892
1f2da5398cfdb995da864f3b7f84a89bc1c2fda5
7,933
py
Python
sandbox/straws/loadstraws.py
mustaric/lambda-tess-search
1d48133f32c8a073cba5d221f30c2d44e8d06e4b
[ "BSD-3-Clause" ]
2
2019-06-26T14:35:22.000Z
2020-05-12T15:26:27.000Z
sandbox/straws/loadstraws.py
mustaric/lambda-tess-search
1d48133f32c8a073cba5d221f30c2d44e8d06e4b
[ "BSD-3-Clause" ]
7
2019-06-26T20:52:14.000Z
2020-12-16T21:08:20.000Z
sandbox/straws/loadstraws.py
mustaric/lambda-tess-search
1d48133f32c8a073cba5d221f30c2d44e8d06e4b
[ "BSD-3-Clause" ]
2
2019-06-26T20:24:11.000Z
2020-05-12T19:36:04.000Z
# -*- coding: utf-8 -*- # Copyright 2017-2018 Orbital Insight Inc., all rights reserved. # Contains confidential and trade secret information. # Government Users: Commercial Computer Software - Use governed by # terms of Orbital Insight commercial license agreement. """ Created on Tue Oct 22 21:22:36 2019 @author: fe...
30.511538
87
0.573427
1f2febb0be1e8f771610a3b24e1a5429336b73dd
508
py
Python
vbench/scripts/vb_run_benchmarks.py
vene/vbench
77989fa0d3c45e63f576968d206021ffee72a24c
[ "MIT" ]
1
2017-08-12T03:11:42.000Z
2017-08-12T03:11:42.000Z
vbench/scripts/vb_run_benchmarks.py
vene/vbench
77989fa0d3c45e63f576968d206021ffee72a24c
[ "MIT" ]
null
null
null
vbench/scripts/vb_run_benchmarks.py
vene/vbench
77989fa0d3c45e63f576968d206021ffee72a24c
[ "MIT" ]
null
null
null
import sys import traceback import cPickle as pickle if len(sys.argv) != 3: print 'Usage: script.py input output' sys.exit() in_path, out_path = sys.argv[1:] benchmarks = pickle.load(open(in_path)) results = {} for bmk in benchmarks: try: res = bmk.run() results[bmk.checksum] = res ex...
22.086957
68
0.647638
1f2ff6c7d9e8ddf98bfe8be97cd8f3e7685911e4
6,445
py
Python
problems/kitchencombinatorics/data/secret/gendata.py
stoman/CompetitiveProgramming
0000b64369b50e31c6f48939e837bdf6cece8ce4
[ "MIT" ]
2
2020-12-22T13:21:25.000Z
2021-12-12T22:26:26.000Z
problems/kitchencombinatorics/data/secret/gendata.py
stoman/CompetitiveProgramming
0000b64369b50e31c6f48939e837bdf6cece8ce4
[ "MIT" ]
null
null
null
problems/kitchencombinatorics/data/secret/gendata.py
stoman/CompetitiveProgramming
0000b64369b50e31c6f48939e837bdf6cece8ce4
[ "MIT" ]
null
null
null
import sys import random MAX_R = 1000 MAX_D = 25 MAX_K = 20 MAX_C = 2000 MAX_B = 100 case_no = 1 random.seed(42) gen_special() gen_random(17, 5, 9, 8, 23, 5, 11) for i in range(25): r = random.randint(1, MAX_R) s = random.randint(1, MAX_D) m = random.randint(1, MAX_D) d = random.randint(1, MAX_...
42.401316
213
0.621257
1f30e7564e6c5decd42ff9ef937b6271af7e25ce
8,797
py
Python
MISC/opt_omega_ip.py
PHOTOX/photoxrepo
83ad3813e9c52926e6387afc76813e99d430a5f3
[ "MIT" ]
4
2015-03-27T09:12:44.000Z
2022-01-18T08:45:29.000Z
MISC/opt_omega_ip.py
PHOTOX/photoxrepo
83ad3813e9c52926e6387afc76813e99d430a5f3
[ "MIT" ]
5
2015-01-06T22:08:58.000Z
2021-04-12T07:56:34.000Z
MISC/opt_omega_ip.py
PHOTOX/photoxrepo
83ad3813e9c52926e6387afc76813e99d430a5f3
[ "MIT" ]
2
2019-09-02T11:43:32.000Z
2022-01-18T08:45:30.000Z
#!/usr/bin/env python import os import sys sys.path.append(os.getcwd()) import abinitio_driver as driver from abinitio_driver import AUtoEV import scipy.optimize as opt from scipy.interpolate import interp1d try: import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt except: pass # This i...
32.581481
103
0.665909
1f36e08746ee116943eb44bc9ccc08813b7b6dbe
415
py
Python
test/test_pbp.py
Galtozzy/basketball_reference_scraper
fb0081f2ae146f3a7da3a17d4e30af0c0dc1124a
[ "MIT" ]
191
2020-01-14T19:32:54.000Z
2022-03-29T17:57:19.000Z
test/test_pbp.py
Galtozzy/basketball_reference_scraper
fb0081f2ae146f3a7da3a17d4e30af0c0dc1124a
[ "MIT" ]
59
2020-01-14T18:55:09.000Z
2022-03-03T21:10:03.000Z
test/test_pbp.py
Galtozzy/basketball_reference_scraper
fb0081f2ae146f3a7da3a17d4e30af0c0dc1124a
[ "MIT" ]
76
2020-01-08T19:50:31.000Z
2022-03-31T18:52:06.000Z
import unittest from basketball_reference_scraper.pbp import get_pbp if __name__ == '__main__': unittest.main()
34.583333
124
0.710843
1f376809bd6d755cb0caead50017abc148fc244a
978
py
Python
bin/grep.py
Blindfold/pk-mod
24f958b0d501a3b5d9393dcad1e69987c2448968
[ "Apache-2.0" ]
1
2019-04-03T20:02:40.000Z
2019-04-03T20:02:40.000Z
bin/grep.py
Blindfold-Games/pk-mod
24f958b0d501a3b5d9393dcad1e69987c2448968
[ "Apache-2.0" ]
3
2015-01-03T23:56:51.000Z
2015-01-15T09:16:46.000Z
bin/grep.py
Blindfold-Games/pk-mod
24f958b0d501a3b5d9393dcad1e69987c2448968
[ "Apache-2.0" ]
null
null
null
import re import os from sys import argv def find(what, where, depth=True): """ :param what: str String to search for :param where: str directory to start search in :param regexp: bool If true then 'what' is a regexp, otherwise - use simple substring search :return: """ r = re.compile(what...
27.166667
96
0.5818
1f39f0a7bb12ceef46b29fb32101f2f558a75220
2,023
py
Python
solution.py
nandita16gupta/CSV-Reading-using-Dynamic-Programming
793f9a9b23c2b1ea45d9ec71ea7070690932f9aa
[ "Apache-2.0" ]
null
null
null
solution.py
nandita16gupta/CSV-Reading-using-Dynamic-Programming
793f9a9b23c2b1ea45d9ec71ea7070690932f9aa
[ "Apache-2.0" ]
null
null
null
solution.py
nandita16gupta/CSV-Reading-using-Dynamic-Programming
793f9a9b23c2b1ea45d9ec71ea7070690932f9aa
[ "Apache-2.0" ]
null
null
null
import csv visited = {} if __name__ == "__main__": rows = [] with open('input.csv') as csvfile: reader = csv.reader(csvfile) for row in reader: rows.append(row) output_rows = [] for row in rows: output_row = [] for cell in row: output_ro...
24.373494
53
0.44439
1f3ab12d8151036391c9ff1e4b3cbf52e4305e09
1,147
py
Python
slacm/exceptions.py
SLAcM/SLAcM
62943f4a68725674b103c73fcbcd25bb9cb5890e
[ "Apache-2.0" ]
1
2022-01-13T03:19:24.000Z
2022-01-13T03:19:24.000Z
slacm/exceptions.py
SLAcM/SLAcM
62943f4a68725674b103c73fcbcd25bb9cb5890e
[ "Apache-2.0" ]
null
null
null
slacm/exceptions.py
SLAcM/SLAcM
62943f4a68725674b103c73fcbcd25bb9cb5890e
[ "Apache-2.0" ]
null
null
null
''' Created on Sep 19, 2020 @author: esdev '''
24.404255
41
0.652136
1f3ca2663f904f54aa3ffae1453e96545934c8ab
959
py
Python
tests/test_auth.py
ChukwuEmekaAjah/buycoins_python
86547aa742364a0e308b1dfb5f7c73b4467b1e06
[ "MIT" ]
1
2021-03-25T19:28:48.000Z
2021-03-25T19:28:48.000Z
tests/test_auth.py
ChukwuEmekaAjah/buycoins_python
86547aa742364a0e308b1dfb5f7c73b4467b1e06
[ "MIT" ]
null
null
null
tests/test_auth.py
ChukwuEmekaAjah/buycoins_python
86547aa742364a0e308b1dfb5f7c73b4467b1e06
[ "MIT" ]
null
null
null
from buycoins_client import Auth import unittest if __name__ == '__main__': unittest.main()
26.638889
89
0.605839
1f3d20a100b0201057cb5b8f77818cba1ad9e63b
6,328
py
Python
icn/plc/main.py
PMaynard/ndn-water-treatment-testbed
926db68237b06f43f6e736f035201ed71fc153bc
[ "MIT" ]
3
2021-01-20T00:54:09.000Z
2021-06-02T01:54:02.000Z
icn/plc/main.py
PMaynard/ndn-water-treatment-testbed
926db68237b06f43f6e736f035201ed71fc153bc
[ "MIT" ]
null
null
null
icn/plc/main.py
PMaynard/ndn-water-treatment-testbed
926db68237b06f43f6e736f035201ed71fc153bc
[ "MIT" ]
null
null
null
# from ui import UI # from ui import UI_Element import sys import time import threading import socket from plcrpcservice import PLCRPCClient import pyndn from pyndn import Name from pyndn import Face from pyndn import Interest from pyndn.security import KeyChain from pyndn.security.identity import IdentityManager fr...
31.326733
112
0.588021
1f3eb22adbac011762c8a0158ac669343f090557
2,876
py
Python
cogs/administration.py
tigersharkpr13/AnsuraBot
035797121d8e7952bc38e32834cdb655c15cb703
[ "Unlicense" ]
null
null
null
cogs/administration.py
tigersharkpr13/AnsuraBot
035797121d8e7952bc38e32834cdb655c15cb703
[ "Unlicense" ]
null
null
null
cogs/administration.py
tigersharkpr13/AnsuraBot
035797121d8e7952bc38e32834cdb655c15cb703
[ "Unlicense" ]
null
null
null
from typing import Union import discord from discord.ext import commands import cogs.gamertags from ansura.ansurabot import AnsuraBot from ansura.ansuracontext import AnsuraContext
40.507042
92
0.561544
1f3f0f56c3a1c070b48e8fbce26fe6e40715c8ef
357
py
Python
project/celery.py
kunugoda/jobbrd
19debcac7673a85eda4a8d1eb00e5537268bd601
[ "MIT" ]
1
2020-06-17T05:25:42.000Z
2020-06-17T05:25:42.000Z
project/celery.py
kunugoda/jobbrd
19debcac7673a85eda4a8d1eb00e5537268bd601
[ "MIT" ]
null
null
null
project/celery.py
kunugoda/jobbrd
19debcac7673a85eda4a8d1eb00e5537268bd601
[ "MIT" ]
null
null
null
import os from celery import Celery from django.conf import settings os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'project.settings') app = Celery('jobboard') app.config_from_object('django.conf:settings') app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)
23.8
67
0.787115
1f406fa1d479f75e59d5f05a3c4ac549424cb9b7
214
py
Python
filer/models/__init__.py
pbs/django-filer
c862a84d4e1d86c14eeb509e341f6a7d39a421bf
[ "BSD-3-Clause" ]
1
2015-03-03T15:49:14.000Z
2015-03-03T15:49:14.000Z
filer/models/__init__.py
pbs/django-filer
c862a84d4e1d86c14eeb509e341f6a7d39a421bf
[ "BSD-3-Clause" ]
10
2015-04-08T14:16:52.000Z
2021-12-15T16:17:57.000Z
filer/models/__init__.py
pbs/django-filer
c862a84d4e1d86c14eeb509e341f6a7d39a421bf
[ "BSD-3-Clause" ]
null
null
null
#-*- coding: utf-8 -*- from .mixins import * from .filemodels import * from .clipboardmodels import * from .imagemodels import * from .foldermodels import * from .virtualitems import * from .archivemodels import *
23.777778
30
0.742991
1f407417b73374a6afc645fcceeb6ced94f54f5e
2,388
py
Python
EGGS_labrad/clients/cryovac_clients/fma1700a_client.py
EGGS-Experiment/EGGS_Control
c29b3ab0e30dcb6e01d1ca3212ac64ad1506143b
[ "MIT" ]
2
2021-12-26T05:00:54.000Z
2021-12-30T17:15:49.000Z
EGGS_labrad/clients/cryovac_clients/fma1700a_client.py
EGGS-Experiment/EGGS_Control
c29b3ab0e30dcb6e01d1ca3212ac64ad1506143b
[ "MIT" ]
null
null
null
EGGS_labrad/clients/cryovac_clients/fma1700a_client.py
EGGS-Experiment/EGGS_Control
c29b3ab0e30dcb6e01d1ca3212ac64ad1506143b
[ "MIT" ]
null
null
null
from time import time from datetime import datetime from twisted.internet.defer import inlineCallbacks from EGGS_labrad.clients import GUIClient from EGGS_labrad.clients.cryovac_clients.fma1700a_gui import fma1700a_gui if __name__ == "__main__": from EGGS_labrad.clients import runClient runClient(fma1700a_c...
33.166667
100
0.620603
1f41c0a4ab7d43a2dea653442a426c4d1174eff9
1,653
py
Python
tests/test_model.py
camisatx/flasker
affc9fc13742e18434961b8ec15f133cc246dcd5
[ "MIT" ]
3
2020-12-12T01:30:08.000Z
2021-10-13T16:47:56.000Z
tests/test_model.py
camisatx/flasker
affc9fc13742e18434961b8ec15f133cc246dcd5
[ "MIT" ]
null
null
null
tests/test_model.py
camisatx/flasker
affc9fc13742e18434961b8ec15f133cc246dcd5
[ "MIT" ]
1
2020-12-12T01:30:13.000Z
2020-12-12T01:30:13.000Z
import sys import unittest sys.path.append('../') from app import db # NOQA from app.models import User # NOQA from tests.base import BaseTestCase # NOQA if __name__ == '__main__': unittest.main()
31.788462
75
0.603146
1f41eb6162eb883a714a301cdb2d992b3f4f957d
119
py
Python
examples/__init__.py
DiMoser/PyPinT
3cba394d0fd87055ab412d35fe6dbf4a3b0dbe73
[ "MIT" ]
null
null
null
examples/__init__.py
DiMoser/PyPinT
3cba394d0fd87055ab412d35fe6dbf4a3b0dbe73
[ "MIT" ]
null
null
null
examples/__init__.py
DiMoser/PyPinT
3cba394d0fd87055ab412d35fe6dbf4a3b0dbe73
[ "MIT" ]
null
null
null
# coding=utf-8 """Examples demonstrating usage of PyPinT .. moduleauthor:: Torbjrn Klatt <t.klatt@fz-juelich.de> """
19.833333
56
0.722689
1f43bc58bc8f57d5639beefb900d57b125412748
1,440
py
Python
cd4ml/app.py
joragupra/CD4ML-Scenarios
8c8886388260147cd5248dfa1945f60ebabfaacc
[ "MIT" ]
1
2020-12-24T19:52:58.000Z
2020-12-24T19:52:58.000Z
cd4ml/app.py
joragupra/CD4ML-Scenarios
8c8886388260147cd5248dfa1945f60ebabfaacc
[ "MIT" ]
null
null
null
cd4ml/app.py
joragupra/CD4ML-Scenarios
8c8886388260147cd5248dfa1945f60ebabfaacc
[ "MIT" ]
1
2020-05-04T18:21:41.000Z
2020-05-04T18:21:41.000Z
from flask import Flask, render_template, request import cd4ml.app_utils as utils from cd4ml.fluentd_logging import FluentdLogger app = Flask(__name__, template_folder='webapp/templates', static_folder='webapp/static') fluentd_logger = FluentdLogger() def log_prediction_console(log_payload): pri...
25.263158
66
0.702083
1f44b877c61b52c5169fcc3dc901630593e11752
1,456
py
Python
api/crud/events.py
cnuland/tbml
8dca907011971a8ad21dfc5b5d6bec1ddbff0818
[ "MIT" ]
null
null
null
api/crud/events.py
cnuland/tbml
8dca907011971a8ad21dfc5b5d6bec1ddbff0818
[ "MIT" ]
null
null
null
api/crud/events.py
cnuland/tbml
8dca907011971a8ad21dfc5b5d6bec1ddbff0818
[ "MIT" ]
null
null
null
from fastapi import HTTPException from tortoise.exceptions import DoesNotExist from db.models import Events from schemas.events import EventsOutSchema
35.512195
86
0.76511
1f46b6c5cc84e0b05c2f63e339fe44af56c4515e
29,428
py
Python
sfx/sfx.py
Terry14/sfx
16bcf401ba3251b0de211276d97153469499515d
[ "MIT" ]
null
null
null
sfx/sfx.py
Terry14/sfx
16bcf401ba3251b0de211276d97153469499515d
[ "MIT" ]
null
null
null
sfx/sfx.py
Terry14/sfx
16bcf401ba3251b0de211276d97153469499515d
[ "MIT" ]
null
null
null
import asyncio import os import unicodedata import aiohttp import discord import lavalink import unidecode from redbot.core import Config, checks, commands from redbot.core.utils.chat_formatting import pagify from redbot.core.utils.predicates import MessagePredicate from .api import generate_urls try: from redb...
35.327731
157
0.571259
1f477811434f0fbba0fb2564e885e5ce2cde1027
581
py
Python
norm_files.py
jncraton/ipeds-data
e17b051bac3d4d112d83a85f38dc1422d4fb584b
[ "MIT" ]
null
null
null
norm_files.py
jncraton/ipeds-data
e17b051bac3d4d112d83a85f38dc1422d4fb584b
[ "MIT" ]
null
null
null
norm_files.py
jncraton/ipeds-data
e17b051bac3d4d112d83a85f38dc1422d4fb584b
[ "MIT" ]
null
null
null
""" Normalizes contents for all data files. - Converts column names to uppercase - Converts data values to uppercase - Converts to Unix line endings - Removes trailing whitespace from all lines """ import os csvs = ['data/' + f for f in os.listdir('data') if f.endswith('.csv')] for f in csvs: lf = f.lower() o...
19.366667
70
0.650602
1f4a0b28023170a365cdcc71fab67b6fb8261389
2,929
py
Python
admin/sandbox.py
liuhh02/NERDA
7488d0c5adf3eb5296b1b276b412b95131557097
[ "MIT" ]
123
2020-12-19T09:36:28.000Z
2022-03-20T11:01:02.000Z
admin/sandbox.py
liuhh02/NERDA
7488d0c5adf3eb5296b1b276b412b95131557097
[ "MIT" ]
35
2021-02-14T09:46:11.000Z
2022-03-31T09:57:38.000Z
admin/sandbox.py
liuhh02/NERDA
7488d0c5adf3eb5296b1b276b412b95131557097
[ "MIT" ]
30
2021-01-28T11:02:31.000Z
2022-03-06T19:58:27.000Z
from NERDA.models import NERDA from NERDA.datasets import get_conll_data, get_dane_data from transformers import AutoTokenizer trans = 'bert-base-multilingual-uncased' tokenizer = AutoTokenizer.from_pretrained(trans, do_lower_case = True) data = get_dane_data('train') sents = data.get('sentences') out = [] for sent ...
26.627273
79
0.714237
1f4f35f139c907b889c9bfaceea5f2502d416ae2
2,099
py
Python
ironic/tests/drivers/test_base.py
Tehsmash/ironic
a34c351639e960af92a3608fbc9249dfce5c6057
[ "Apache-2.0" ]
null
null
null
ironic/tests/drivers/test_base.py
Tehsmash/ironic
a34c351639e960af92a3608fbc9249dfce5c6057
[ "Apache-2.0" ]
null
null
null
ironic/tests/drivers/test_base.py
Tehsmash/ironic
a34c351639e960af92a3608fbc9249dfce5c6057
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Cisco Systems, Inc. # 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 requi...
30.867647
78
0.697475
1f51deb831801cb409889edbf97a6deabae048a4
1,368
py
Python
quantiphyse/packages/core/analysis/__init__.py
physimals/quantiphyse
bd3be0098b9929b1987fe0f23e515fa70674b3d4
[ "Apache-2.0" ]
9
2021-02-01T06:44:31.000Z
2022-01-17T15:46:40.000Z
quantiphyse/packages/core/analysis/__init__.py
ibme-qubic/quantiphyse
34f40424941414ce139c4612a903de3f24883576
[ "Apache-2.0" ]
34
2019-02-04T10:47:02.000Z
2020-08-13T09:36:52.000Z
quantiphyse/packages/core/analysis/__init__.py
ibme-qubic/quantiphyse
34f40424941414ce139c4612a903de3f24883576
[ "Apache-2.0" ]
2
2019-05-25T08:52:05.000Z
2020-06-18T13:59:00.000Z
""" Quantiphyse - Analysis widgets Copyright (c) 2013-2020 University of Oxford 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 a...
47.172414
123
0.811404
1f528ea187b09ea162a161716dde9aff8b7b565d
1,042
py
Python
examples/chain_mdp.py
kngwyu/rlpy
329166de28d311d8f87358a62c38f40a7318fe07
[ "BSD-3-Clause" ]
3
2019-12-07T13:34:02.000Z
2021-03-29T10:20:05.000Z
examples/chain_mdp.py
kngwyu/rlpy
329166de28d311d8f87358a62c38f40a7318fe07
[ "BSD-3-Clause" ]
14
2019-09-29T03:09:09.000Z
2022-01-13T03:17:48.000Z
examples/chain_mdp.py
kngwyu/rlpy3
329166de28d311d8f87358a62c38f40a7318fe07
[ "BSD-3-Clause" ]
null
null
null
import click from rlpy.domains import ChainMDP from rlpy.tools.cli import run_experiment import methods if __name__ == "__main__": run_experiment( select_domain, select_agent, default_max_steps=10000, default_num_policy_checks=10, default_checks_per_policy=50, ot...
28.944444
76
0.681382
1f5495f299c3cac72ffba7fb46905bf9c811295d
694
py
Python
migrations/versions/6e2656ef034b_.py
haichungcn/h-ticketbox
37d3a3054a92fbb3702cac10f87621762b68bae2
[ "Apache-2.0" ]
null
null
null
migrations/versions/6e2656ef034b_.py
haichungcn/h-ticketbox
37d3a3054a92fbb3702cac10f87621762b68bae2
[ "Apache-2.0" ]
1
2021-06-02T00:42:03.000Z
2021-06-02T00:42:03.000Z
migrations/versions/6e2656ef034b_.py
haichungcn/h-ticketbox
37d3a3054a92fbb3702cac10f87621762b68bae2
[ "Apache-2.0" ]
null
null
null
"""empty message Revision ID: 6e2656ef034b Revises: f8f949ce4522 Create Date: 2019-11-26 11:05:54.376467 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '6e2656ef034b' down_revision = 'f8f949ce4522' branch_labels = None depends_on = None
23.931034
80
0.708934
1f54a8fce56dc2266fdcba4960db2d6b32f72f6a
1,940
py
Python
python/heterocl/mlir/context.py
chhzh123/heterocl
856e9b8ad877d11280a7e457e91ca89803c05570
[ "Apache-2.0" ]
null
null
null
python/heterocl/mlir/context.py
chhzh123/heterocl
856e9b8ad877d11280a7e457e91ca89803c05570
[ "Apache-2.0" ]
null
null
null
python/heterocl/mlir/context.py
chhzh123/heterocl
856e9b8ad877d11280a7e457e91ca89803c05570
[ "Apache-2.0" ]
null
null
null
from contextvars import ContextVar from hcl_mlir.dialects import hcl as hcl_d from hcl_mlir.ir import * ImperativeLoopNestCount = ContextVar("ImperativeLoopNestCount", default=1) ImperativeLoopDepth = ContextVar("ImperativeLoopDepth", default=0) StageName = ContextVar("StageName", default="") NestedCompute = ContextV...
27.714286
79
0.619588
1f572ce92d4767535e92d6069a13c0b878ad4d2b
1,216
py
Python
378. Kth Smallest Element in a Sorted Matrix.py
XinchaoGou/MyLeetCode
bba0ab077374f7da2cb1a990266bc59fa7ddf23c
[ "MIT" ]
null
null
null
378. Kth Smallest Element in a Sorted Matrix.py
XinchaoGou/MyLeetCode
bba0ab077374f7da2cb1a990266bc59fa7ddf23c
[ "MIT" ]
null
null
null
378. Kth Smallest Element in a Sorted Matrix.py
XinchaoGou/MyLeetCode
bba0ab077374f7da2cb1a990266bc59fa7ddf23c
[ "MIT" ]
null
null
null
from typing import List import heapq # # #
27.022222
66
0.449836
1f5755adc834fa964d8b57abac91fbc6499d9935
4,608
py
Python
menucard/migrations/0001_initial.py
baniasbaabe/happy-qr
bf44ac19306ea6405cc7c9a100e6f83afca125b4
[ "MIT" ]
1
2021-01-23T21:42:10.000Z
2021-01-23T21:42:10.000Z
menucard/migrations/0001_initial.py
baniasbaabe/happy-qr
bf44ac19306ea6405cc7c9a100e6f83afca125b4
[ "MIT" ]
null
null
null
menucard/migrations/0001_initial.py
baniasbaabe/happy-qr
bf44ac19306ea6405cc7c9a100e6f83afca125b4
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2020-12-27 10:36 from django.db import migrations, models import django.db.models.deletion import phonenumber_field.modelfields
48
128
0.567491
1f5774372518e14045e4add17d37c16fbf360cfe
10,289
py
Python
episim/model.py
jm-begon/episim
705f80b782c5653a0d8b6e53614f34c12917cb43
[ "BSD-3-Clause" ]
null
null
null
episim/model.py
jm-begon/episim
705f80b782c5653a0d8b6e53614f34c12917cb43
[ "BSD-3-Clause" ]
null
null
null
episim/model.py
jm-begon/episim
705f80b782c5653a0d8b6e53614f34c12917cb43
[ "BSD-3-Clause" ]
null
null
null
import os import datetime from collections import defaultdict import numpy as np from scipy import sparse from episim.ontology import Ontology from episim.plot.modeling import System, Accumulator from .data import State def _compute_reproduction_number(self, n_susceptible, n_total): return 0 ...
26.180662
80
0.57197
1f57dbdd7653a2a24621940b5ab48570df0a2af1
4,620
py
Python
pytorch/camera_intrinsics.py
abdur4373/ROS_depth_pred
63ed4d97df8b49a43aad53c4c6bf01441f05153d
[ "MIT" ]
1
2019-06-29T07:48:31.000Z
2019-06-29T07:48:31.000Z
pytorch/camera_intrinsics.py
abdur4373/ROS_depth_pred
63ed4d97df8b49a43aad53c4c6bf01441f05153d
[ "MIT" ]
null
null
null
pytorch/camera_intrinsics.py
abdur4373/ROS_depth_pred
63ed4d97df8b49a43aad53c4c6bf01441f05153d
[ "MIT" ]
null
null
null
import numpy as np from sensor_msgs.msg import CameraInfo, RegionOfInterest from std_msgs.msg import Header CameraIntrinsics()
28.695652
96
0.534632
1f581484e57d7f06ab12a83feeb46bea44a7e7c3
327
py
Python
app/logger.py
d3vzer0/reternal-backend
aeeb613c820759212e7aef9150738a66b2882d50
[ "MIT" ]
6
2019-01-01T23:38:12.000Z
2021-07-27T03:43:11.000Z
app/logger.py
d3vzer0/kickstart-flask-vuejs
562a829d3f3b87488035719025f2d29b4fe33a89
[ "MIT" ]
1
2020-08-02T00:21:41.000Z
2020-08-02T00:21:41.000Z
app/logger.py
d3vzer0/kickstart-flask-vuejs
562a829d3f3b87488035719025f2d29b4fe33a89
[ "MIT" ]
1
2021-07-27T03:43:24.000Z
2021-07-27T03:43:24.000Z
import logging from logging.handlers import SysLogHandler # Logging environment that can be used by the application to output syslog logging_object = logging.getLogger(__name__) logging_object.setLevel(logging.INFO) syslog_handler = logging.handlers.SysLogHandler(address='/dev/log') logging_object.addHandler(syslog_ha...
36.333333
74
0.844037
1f5af941019a09b58bc8c7a46b832a62890985af
2,446
py
Python
db/schema.py
aatrubilin/sqlalchemy_sessions
8f99c3bf42da7224bbb6622ab23222ee1ebf1627
[ "MIT" ]
null
null
null
db/schema.py
aatrubilin/sqlalchemy_sessions
8f99c3bf42da7224bbb6622ab23222ee1ebf1627
[ "MIT" ]
null
null
null
db/schema.py
aatrubilin/sqlalchemy_sessions
8f99c3bf42da7224bbb6622ab23222ee1ebf1627
[ "MIT" ]
null
null
null
import logging from datetime import datetime import sqlalchemy as sa import sqlalchemy.orm as so from .base import Base, Session __all__ = ["User", "Message"] logger = logging.getLogger(__name__)
27.795455
95
0.629191
1f5bf93e6d736ffce8e14bcf71e0ff664aca6f6a
553
py
Python
tests/private/test_uber_string_formatter.py
odedlaz-oss/uberlogs
09658f6ee98b4018c1c3620f56973fcdadb260d5
[ "MIT" ]
null
null
null
tests/private/test_uber_string_formatter.py
odedlaz-oss/uberlogs
09658f6ee98b4018c1c3620f56973fcdadb260d5
[ "MIT" ]
null
null
null
tests/private/test_uber_string_formatter.py
odedlaz-oss/uberlogs
09658f6ee98b4018c1c3620f56973fcdadb260d5
[ "MIT" ]
null
null
null
import six from unittest import TestCase from uberlogs.private import UberStringFormatter
29.105263
73
0.750452
1f5c32e422bbc6af249f8c6cdbc7e36215c76758
371
py
Python
testapp/models.py
andrewyoung1991/django-redis-pubsub
6ec9467528919a20bc9db6ebe94d5929ddd028a6
[ "BSD-3-Clause" ]
21
2016-02-11T06:04:48.000Z
2021-12-27T07:02:28.000Z
testapp/models.py
kashyap2108/django-redis-pubsub
6ec9467528919a20bc9db6ebe94d5929ddd028a6
[ "BSD-3-Clause" ]
3
2020-05-17T13:53:50.000Z
2021-06-10T20:38:34.000Z
testapp/models.py
kashyap2108/django-redis-pubsub
6ec9467528919a20bc9db6ebe94d5929ddd028a6
[ "BSD-3-Clause" ]
8
2016-02-05T20:17:43.000Z
2020-07-14T17:10:20.000Z
from django.conf import settings from django.db import models from redis_pubsub.models import PublishableModel
21.823529
59
0.752022
1f5d11bfac525af7eaa9a4069790c1ad9c1d4423
10,602
py
Python
src/phat/thold.py
rskene/phat
84a946e1e638642f36ce5fd81dc85aa89f7b66f0
[ "MIT" ]
2
2021-07-23T11:34:21.000Z
2022-01-09T17:22:45.000Z
src/phat/thold.py
rjskene/phat
84a946e1e638642f36ce5fd81dc85aa89f7b66f0
[ "MIT" ]
3
2022-01-18T09:27:16.000Z
2022-01-18T09:28:43.000Z
src/phat/thold.py
rskene/phat
84a946e1e638642f36ce5fd81dc85aa89f7b66f0
[ "MIT" ]
null
null
null
from functools import wraps from typing import Iterable import numpy as np import scipy.stats as scist import matplotlib.pyplot as plt from rpy2.robjects.packages import importr from rpy2.robjects.vectors import FloatVector from phat.utils import argsetter base = importr('base') utils = importr('utils') utils.choos...
36.940767
131
0.54518
1f5e5337671f2aa26669d1f985e1feb6f9bb2487
3,075
py
Python
app/eventFrameTemplates/forms.py
DeschutesBrewery/brewerypi
5459dfc6b1ed415920c13a8a7c9a2d3d3c82099f
[ "MIT" ]
27
2017-11-27T05:01:05.000Z
2020-11-14T19:52:26.000Z
app/eventFrameTemplates/forms.py
DeschutesBrewery/brewerypi
5459dfc6b1ed415920c13a8a7c9a2d3d3c82099f
[ "MIT" ]
259
2017-11-23T00:43:26.000Z
2020-11-03T01:07:30.000Z
app/eventFrameTemplates/forms.py
DeschutesBrewery/brewerypi
5459dfc6b1ed415920c13a8a7c9a2d3d3c82099f
[ "MIT" ]
8
2018-10-29T04:39:29.000Z
2020-10-01T22:18:12.000Z
from flask_wtf import FlaskForm from wtforms import HiddenField, IntegerField, SelectField, StringField, SubmitField, ValidationError from wtforms.validators import Length, Required from .. models import EventFrameTemplate
45.220588
152
0.766504
1f605b59e4b42a83b06301dd95460d66a85a140f
3,751
py
Python
flask_demo.py
tlinc/cyber-ng-18
40dd088b5785e75e59afded17f71ea50d64ae77f
[ "MIT" ]
null
null
null
flask_demo.py
tlinc/cyber-ng-18
40dd088b5785e75e59afded17f71ea50d64ae77f
[ "MIT" ]
null
null
null
flask_demo.py
tlinc/cyber-ng-18
40dd088b5785e75e59afded17f71ea50d64ae77f
[ "MIT" ]
null
null
null
import os from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes from cryptography.hazmat.primitives import hashes from cryptography.hazmat.primitives.kdf.pbkdf2 import PBKDF2HMAC from cryptography.hazmat.backends import default_backend from stegano import lsb from flask import Flask, render_te...
27.379562
76
0.643295
1f61bacc0966d711145c05f1a6526934fd3ce1d0
1,585
py
Python
ex0095.py
EwertonRosendo/PastaDeExercicios
68d23194b87ce1c8405c70fcceb3378955815d7d
[ "MIT" ]
null
null
null
ex0095.py
EwertonRosendo/PastaDeExercicios
68d23194b87ce1c8405c70fcceb3378955815d7d
[ "MIT" ]
null
null
null
ex0095.py
EwertonRosendo/PastaDeExercicios
68d23194b87ce1c8405c70fcceb3378955815d7d
[ "MIT" ]
null
null
null
jogador = dict() lista_de_jogadores = [] lista = [] print("_"*38) contador = 0 while True: jogador["nome"] = str(input("Informe o nome do jogador: ")).strip() jogador["partidas"] = int(input("Informe quantas partidas foram jogadas: ")) jogador["gols marcados"] = [] for c in range(0, jogador["partidas"])...
40.641026
83
0.620189
1f6205c1effd40848344000bccb696a977da03f4
954
py
Python
app/stock/apps.py
shift37/asx_gym
dd3d8dafae4f22ab9c9027bf362013255dbc6c36
[ "RSA-MD" ]
null
null
null
app/stock/apps.py
shift37/asx_gym
dd3d8dafae4f22ab9c9027bf362013255dbc6c36
[ "RSA-MD" ]
3
2020-06-06T08:27:08.000Z
2020-06-13T09:51:26.000Z
app/stock/apps.py
asxgym/asx_gym
8b7745820c0d4cd59281acf7c003ec1f1938005a
[ "RSA-MD" ]
null
null
null
from django.apps import AppConfig import logging logger = logging.getLogger(__name__)
38.16
74
0.72327
1f634bdb1c7a7c3154dda573b13beb16dfe4e289
8,568
py
Python
slide/models.py
AICAN-Research/learn-pathology
663f9c5f125857badf5bb41b6bfa2d9100578e2e
[ "MIT" ]
2
2021-09-16T08:38:10.000Z
2021-09-16T10:46:53.000Z
slide/models.py
AICAN-Research/learn-pathology
663f9c5f125857badf5bb41b6bfa2d9100578e2e
[ "MIT" ]
6
2021-09-20T10:56:21.000Z
2022-01-05T08:25:17.000Z
slide/models.py
AICAN-Research/learn-pathology
663f9c5f125857badf5bb41b6bfa2d9100578e2e
[ "MIT" ]
null
null
null
import threading from io import BytesIO from django.db import models import fast import time import numpy as np from PIL import Image from django.conf import settings from slide.timing import Timer from tag.models import Tag class AnnotatedSlide(models.Model): """ Model for an annotated slide. A slide ca...
38.25
152
0.615079
1f641a14add400abd8e0ed7c75835db3c0d6d277
742
py
Python
xpresso/_utils/endpoint_dependant.py
adriangb/xpresso
43fcc360f7b19c00e0b78480f96390bcb4d28053
[ "MIT" ]
75
2022-01-18T02:17:57.000Z
2022-03-24T02:30:04.000Z
xpresso/_utils/endpoint_dependant.py
adriangb/xpresso
43fcc360f7b19c00e0b78480f96390bcb4d28053
[ "MIT" ]
73
2022-01-18T03:01:27.000Z
2022-03-27T16:41:38.000Z
xpresso/_utils/endpoint_dependant.py
adriangb/xpresso
43fcc360f7b19c00e0b78480f96390bcb4d28053
[ "MIT" ]
3
2022-01-18T22:47:06.000Z
2022-01-25T02:03:53.000Z
from __future__ import annotations import typing from di.api.providers import CallableProvider, CoroutineProvider from di.dependant import Dependant from xpresso.dependencies._dependencies import Depends, DependsMarker Endpoint = typing.Union[CallableProvider[typing.Any], CoroutineProvider[typing.Any]]
25.586207
84
0.677898
1f643bc3dbbf8bbb68623cedf5db93412e8053a1
554
py
Python
MkSSensor.py
MakeSenseCorp/mksdk-py
3466124288c3a89effa0e918c2f310e25db17e0e
[ "Apache-2.0" ]
null
null
null
MkSSensor.py
MakeSenseCorp/mksdk-py
3466124288c3a89effa0e918c2f310e25db17e0e
[ "Apache-2.0" ]
7
2018-02-19T12:15:46.000Z
2018-05-04T23:02:12.000Z
MkSSensor.py
MakeSenseCorp/mksdk-py
3466124288c3a89effa0e918c2f310e25db17e0e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python
24.086957
135
0.566787
1f6482191a91e02ca740cd105cd4bb4ccfd6872b
1,010
py
Python
tuples.py
ShuhaoZQGG/Python-Very-Beginner-to-Very-Intermediate
cfad98b1c1c175761d3a68861438562f7d410cb0
[ "MIT" ]
null
null
null
tuples.py
ShuhaoZQGG/Python-Very-Beginner-to-Very-Intermediate
cfad98b1c1c175761d3a68861438562f7d410cb0
[ "MIT" ]
null
null
null
tuples.py
ShuhaoZQGG/Python-Very-Beginner-to-Very-Intermediate
cfad98b1c1c175761d3a68861438562f7d410cb0
[ "MIT" ]
null
null
null
mytuple = ("Max", 28, "Boston") print(mytuple) print(type(mytuple)) mytuple2 = ("Max") ## , is needed before the closing paranthese if only one string print(mytuple2) print(type(mytuple2)) mt3 = tuple(["Max", 28, "Boston"]) ## mt indicates mytuple + number print(mt3) print(type(m...
17.413793
104
0.620792
1f64ad352e9b9691d83fdce5ed744e84a89c5372
13,330
py
Python
create_pretraining_data_lm.py
twilightdema/ALBERT_Thai
2c5612237a6843c4949dd941dbcd01ca91f82f2b
[ "Apache-2.0" ]
null
null
null
create_pretraining_data_lm.py
twilightdema/ALBERT_Thai
2c5612237a6843c4949dd941dbcd01ca91f82f2b
[ "Apache-2.0" ]
4
2020-09-25T22:35:29.000Z
2022-02-09T23:37:24.000Z
create_pretraining_data_lm.py
twilightdema/ALBERT_Thai
2c5612237a6843c4949dd941dbcd01ca91f82f2b
[ "Apache-2.0" ]
1
2020-10-17T01:36:03.000Z
2020-10-17T01:36:03.000Z
# coding=utf-8 # Copyright 2018 The Google AI Team 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 applicabl...
33.076923
117
0.692798
1f6706c7305503eebcfb4dc0e941eec4fd99c3fd
3,260
py
Python
src/libcore/tests/test_qmc.py
tizian/layer-laboratory
008cc94b76127e9eb74227fcd3d0145da8ddec30
[ "CNRI-Python" ]
7
2020-07-24T03:19:59.000Z
2022-03-30T10:56:12.000Z
src/libcore/tests/test_qmc.py
tizian/layer-laboratory
008cc94b76127e9eb74227fcd3d0145da8ddec30
[ "CNRI-Python" ]
1
2021-04-07T22:30:23.000Z
2021-04-08T00:55:36.000Z
src/libcore/tests/test_qmc.py
tizian/layer-laboratory
008cc94b76127e9eb74227fcd3d0145da8ddec30
[ "CNRI-Python" ]
2
2020-06-08T08:25:09.000Z
2021-04-05T22:13:08.000Z
import enoki as ek import pytest import mitsuba
28.347826
74
0.60184
1f69bfc2c5f28e5c08c2ff64bb83de310333e32a
14,656
py
Python
train.py
ColinWine/Multi-modal-Multi-label-Facial-Action-Unit-Detection-with-Transformer
93871bed9078d5bf6b4bb37407c9dce87c569b55
[ "MIT" ]
null
null
null
train.py
ColinWine/Multi-modal-Multi-label-Facial-Action-Unit-Detection-with-Transformer
93871bed9078d5bf6b4bb37407c9dce87c569b55
[ "MIT" ]
null
null
null
train.py
ColinWine/Multi-modal-Multi-label-Facial-Action-Unit-Detection-with-Transformer
93871bed9078d5bf6b4bb37407c9dce87c569b55
[ "MIT" ]
null
null
null
import warnings import torch from torch.utils.data.dataloader import DataLoader from torch.optim import lr_scheduler import numpy as np from models import * from dataloader import Aff2CompDataset, SubsetSequentialSampler, SubsetRandomSampler, Prefetcher from tqdm import tqdm import os import time from sklearn.metrics i...
42.604651
134
0.60917
1f6c4abc3f836e517354bb086cbc395ddcb5e9b2
251
py
Python
utils.py
Ls-Dai/Pytorch_FL_CNN
59bfd017dc21a4d11e7dafb382cdae3c57086071
[ "MIT" ]
3
2021-03-22T01:54:43.000Z
2021-03-28T10:48:35.000Z
utils.py
Ls-Dai/Pytorch_FL_CNN
59bfd017dc21a4d11e7dafb382cdae3c57086071
[ "MIT" ]
null
null
null
utils.py
Ls-Dai/Pytorch_FL_CNN
59bfd017dc21a4d11e7dafb382cdae3c57086071
[ "MIT" ]
null
null
null
import os """def dir_setup(path): if not os.path.isdir(path): dir_setup(os.path.split(path)[0]) else: return os.mkdir(path)"""
17.928571
42
0.561753
1f6e05df1cdce06badd2f76abc8f4fd50f6739ab
212
py
Python
1011 - Esfera.py
le16bits/URI---Python
9d22ae74f008104bc9c3c0e2d5f8cd59303bc1db
[ "Apache-2.0" ]
null
null
null
1011 - Esfera.py
le16bits/URI---Python
9d22ae74f008104bc9c3c0e2d5f8cd59303bc1db
[ "Apache-2.0" ]
null
null
null
1011 - Esfera.py
le16bits/URI---Python
9d22ae74f008104bc9c3c0e2d5f8cd59303bc1db
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- '''Autor: Alessandra Souza Data: 05/05/2017 Objetivo: Calcular o volume de uma esfera. ID Urionlinejudge: 1011''' R=float(input()) vol=((4.0/3)*3.14159)*R**3 print("VOLUME = %.3f" %vol)
21.2
42
0.646226
1f6f98de6468e928dedff399ac6db135e5b7f2ec
18,002
py
Python
src/agent.py
Lukeeeeee/DataCenterJobSchedulingSolution
9c62c0039b2dd9e0a1ca5474dc46c8be98a972b3
[ "MIT" ]
null
null
null
src/agent.py
Lukeeeeee/DataCenterJobSchedulingSolution
9c62c0039b2dd9e0a1ca5474dc46c8be98a972b3
[ "MIT" ]
null
null
null
src/agent.py
Lukeeeeee/DataCenterJobSchedulingSolution
9c62c0039b2dd9e0a1ca5474dc46c8be98a972b3
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf import tensorlayer as tl import datetime from log import LOG_PATH import os import src.visualization as vis from src.config import Config as con import tensorflow.contrib as tfcontrib server_count = con.server_count server_state_dim = con.server_state_dim total_server_state_d...
47.750663
118
0.575436
1f704e7278b9ef779559e766cacb1ef676546a1a
194
py
Python
programmers/lv3/2n_tiling.py
mrbartrns/swacademy_structure
778f0546030385237c383d81ec37d5bd9ed1272d
[ "MIT" ]
null
null
null
programmers/lv3/2n_tiling.py
mrbartrns/swacademy_structure
778f0546030385237c383d81ec37d5bd9ed1272d
[ "MIT" ]
null
null
null
programmers/lv3/2n_tiling.py
mrbartrns/swacademy_structure
778f0546030385237c383d81ec37d5bd9ed1272d
[ "MIT" ]
null
null
null
# 2 * n print(solution(4))
19.4
52
0.469072
1f7102de5fec932b92f1cdaf56485f914e53929e
79
py
Python
pyup/settings.py
Callek/pyup
e29014320accdca2947b9e18c215d2144752081a
[ "MIT" ]
445
2016-01-14T09:19:26.000Z
2022-03-16T13:19:33.000Z
pyup/settings.py
Callek/pyup
e29014320accdca2947b9e18c215d2144752081a
[ "MIT" ]
387
2015-12-28T09:54:32.000Z
2022-01-04T00:45:00.000Z
pyup/settings.py
Callek/pyup
e29014320accdca2947b9e18c215d2144752081a
[ "MIT" ]
96
2016-01-19T19:25:00.000Z
2021-09-30T18:22:02.000Z
api_key = None
11.285714
24
0.670886
1f746fdd19456f3c70b06319cd8440bf69081a77
190
py
Python
setup.py
alexisjihyeross/actionable-recourse
a00a0221484d1cf66ff6c0bcba6aaca2220bf9d1
[ "BSD-3-Clause" ]
null
null
null
setup.py
alexisjihyeross/actionable-recourse
a00a0221484d1cf66ff6c0bcba6aaca2220bf9d1
[ "BSD-3-Clause" ]
null
null
null
setup.py
alexisjihyeross/actionable-recourse
a00a0221484d1cf66ff6c0bcba6aaca2220bf9d1
[ "BSD-3-Clause" ]
null
null
null
from setuptools import setup, find_packages setup( name="Recourse", version="0.1.1", packages=find_packages(), install_requires=open('requirements.txt').read().split('\n') )
23.75
64
0.689474
1f74a2f22700c0cecd865a836091b95cf438f84d
536
py
Python
ch06/data.py
stoneflyop1/py_machine_learning
18fd635d312f957ca4fcc23d856a1bcd4cf95f48
[ "MIT" ]
null
null
null
ch06/data.py
stoneflyop1/py_machine_learning
18fd635d312f957ca4fcc23d856a1bcd4cf95f48
[ "MIT" ]
null
null
null
ch06/data.py
stoneflyop1/py_machine_learning
18fd635d312f957ca4fcc23d856a1bcd4cf95f48
[ "MIT" ]
null
null
null
import pandas as pd ##################### # Load Dataset # https://archive.ics.uci.edu/ml/machine-learning-databases/breast-cancer-wisconsin/wdbc.data df = pd.read_csv('../data/wdbc.data', header=None) from sklearn.preprocessing import LabelEncoder X = df.loc[:, 2:].values y = df.loc[:,1].values le = LabelEncoder() ...
28.210526
93
0.699627
1f75dc40de3440e94dfc62ec31434b5e0206507e
733
py
Python
src/tga_to_jpg.py
NicolasGrosjean/HoI4_Stats
b2b6341e8a0b400255302b277407ea33c1a9833f
[ "MIT" ]
null
null
null
src/tga_to_jpg.py
NicolasGrosjean/HoI4_Stats
b2b6341e8a0b400255302b277407ea33c1a9833f
[ "MIT" ]
null
null
null
src/tga_to_jpg.py
NicolasGrosjean/HoI4_Stats
b2b6341e8a0b400255302b277407ea33c1a9833f
[ "MIT" ]
null
null
null
import argparse import os from PIL import Image if __name__ == '__main__': args = get_args() os.makedirs(args.output_dir, exist_ok=True) for file in os.listdir(args.input_dir): if file.endswith('.tga'): im = Image.open(os.path.join(args.input_dir, file)) rgb_im = im.conver...
34.904762
101
0.682128
1f7833d48966d1ed49519df9d13f101196d3956c
3,057
py
Python
db/csvs_test_examples/project/project_availability/project_availability_types/doc.py
souissim/gridpath
4eeca2be24b485edc56026e38cfda83f4a6b27ea
[ "Apache-2.0" ]
44
2020-10-27T19:05:44.000Z
2022-03-22T17:17:37.000Z
db/csvs_test_examples/project/project_availability/project_availability_types/doc.py
souissim/gridpath
4eeca2be24b485edc56026e38cfda83f4a6b27ea
[ "Apache-2.0" ]
67
2020-10-08T22:36:53.000Z
2022-03-22T22:58:33.000Z
db/csvs_test_examples/project/project_availability/project_availability_types/doc.py
souissim/gridpath
4eeca2be24b485edc56026e38cfda83f4a6b27ea
[ "Apache-2.0" ]
21
2020-10-08T23:23:48.000Z
2022-03-28T01:21:21.000Z
# Copyright 2016-2020 Blue Marble Analytics 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 ag...
51.813559
81
0.669284
1f78bf747e413822fce9fdf17d1c1fc1b0c7a165
3,052
py
Python
src/construction_finder/coderack.py
juliakzn/construction_finder
92e9f044163fbe8bde3a6c5f9ec125a7ecf96de8
[ "MIT" ]
null
null
null
src/construction_finder/coderack.py
juliakzn/construction_finder
92e9f044163fbe8bde3a6c5f9ec125a7ecf96de8
[ "MIT" ]
null
null
null
src/construction_finder/coderack.py
juliakzn/construction_finder
92e9f044163fbe8bde3a6c5f9ec125a7ecf96de8
[ "MIT" ]
null
null
null
import logging import random from typing import Dict, List, Tuple, Union from construction_finder import codelets, frame logger = logging.getLogger(f"{__name__}")
35.08046
118
0.656619
1f7babebb7eb438c1f113d421ddd85e8d4dce5ed
1,713
py
Python
configuration.py
ewellchen/STIN
0612a0b56d8caf1f8771ce13a3d8827d26a38f30
[ "MIT" ]
null
null
null
configuration.py
ewellchen/STIN
0612a0b56d8caf1f8771ce13a3d8827d26a38f30
[ "MIT" ]
null
null
null
configuration.py
ewellchen/STIN
0612a0b56d8caf1f8771ce13a3d8827d26a38f30
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Default configurations of model configuration, training. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import os.path as osp from typing import Dict CONFIG = { 'is_train': True, ...
23.148649
65
0.549329
1f7d838dc8f88dc8eef76ebba1d92fdbf66fdaf5
54,959
py
Python
util/configurejson2cmake.py
chentoz/occQt
9738c26a18ac7757201342a69f95483d435a39fa
[ "MIT" ]
null
null
null
util/configurejson2cmake.py
chentoz/occQt
9738c26a18ac7757201342a69f95483d435a39fa
[ "MIT" ]
null
null
null
util/configurejson2cmake.py
chentoz/occQt
9738c26a18ac7757201342a69f95483d435a39fa
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ############################################################################# ## ## Copyright (C) 2018 The Qt Company Ltd. ## Contact: https://www.qt.io/licensing/ ## ## This file is part of the plugins of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:GPL-EXCEPT$ ## Commercial License Usage ## Licensee...
34.608942
147
0.580251
1f7e10137722c6fcc224fdac359159dee3d532fc
819
py
Python
easy_scrapy/2_beautifulsoup/bs4_3_regex.py
cyfu/web_scrapying
b59a75d3db289032bb9005f062470e8ce745539a
[ "MIT" ]
null
null
null
easy_scrapy/2_beautifulsoup/bs4_3_regex.py
cyfu/web_scrapying
b59a75d3db289032bb9005f062470e8ce745539a
[ "MIT" ]
null
null
null
easy_scrapy/2_beautifulsoup/bs4_3_regex.py
cyfu/web_scrapying
b59a75d3db289032bb9005f062470e8ce745539a
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup from urllib.request import urlopen import re # open and read web page, decode it if it contains Chinese html = urlopen('https://mofanpy.com/static/scraping/table.html').read().decode('utf-8') print(html) # 'lxml' is parser name soup = BeautifulSoup(html, features='lxml') # search by tag...
32.76
87
0.693529
1f839d58efbf61c5507f3e11ca4b447b2e8e7b82
1,826
py
Python
ssrlsim/scripts/start_RE.py
tangkong/ssrlsim
62f8a07989ebc187ecf6d2dc3bd8d97ae4c56536
[ "BSD-3-Clause" ]
null
null
null
ssrlsim/scripts/start_RE.py
tangkong/ssrlsim
62f8a07989ebc187ecf6d2dc3bd8d97ae4c56536
[ "BSD-3-Clause" ]
2
2020-06-18T05:18:15.000Z
2021-09-08T21:44:29.000Z
ssrlsim/scripts/start_RE.py
tangkong/ssrlsim
62f8a07989ebc187ecf6d2dc3bd8d97ae4c56536
[ "BSD-3-Clause" ]
null
null
null
import os import matplotlib # get_ipython().run_line_magic("matplotlib", "widget") # i.e. %matplotlib widget import matplotlib.pyplot as plt from ophyd import Device, Component, EpicsSignal from ophyd.signal import EpicsSignalBase from ophyd.areadetector.filestore_mixins import resource_factory import uuid import os...
24.675676
81
0.793538
1f85f7ae96d69285ca7b29169676435a4ce6e57d
5,021
py
Python
snakeskin/protos/peer/peer_pb2.py
healthverity/snakeskin-fabric
31ba7fa5a71445eba76f89723c998d603704e0f9
[ "Apache-2.0" ]
5
2019-08-08T17:16:02.000Z
2021-05-15T07:28:31.000Z
snakeskin/protos/peer/peer_pb2.py
healthverity/snakeskin-fabric
31ba7fa5a71445eba76f89723c998d603704e0f9
[ "Apache-2.0" ]
4
2019-08-20T15:07:12.000Z
2020-07-31T17:50:51.000Z
snakeskin/protos/peer/peer_pb2.py
healthverity/snakeskin-fabric
31ba7fa5a71445eba76f89723c998d603704e0f9
[ "Apache-2.0" ]
2
2019-08-20T15:22:48.000Z
2019-12-17T19:38:55.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: snakeskin/protos/peer/peer.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from ...
34.390411
550
0.768174
1f8ae5e3724e8e2ef10be9cc46bc0a4381cac952
3,236
py
Python
tests/test_models/test_place.py
lepc1972/AirBnB_clone
3ba7f0332e926ff7715272866a00d3a23341b3c3
[ "MIT" ]
2
2021-07-16T01:07:40.000Z
2021-07-16T01:23:15.000Z
tests/test_models/test_place.py
lepc1972/AirBnB_clone
3ba7f0332e926ff7715272866a00d3a23341b3c3
[ "MIT" ]
null
null
null
tests/test_models/test_place.py
lepc1972/AirBnB_clone
3ba7f0332e926ff7715272866a00d3a23341b3c3
[ "MIT" ]
1
2021-07-09T01:41:16.000Z
2021-07-09T01:41:16.000Z
#!/usr/bin/python3 ''' test for the place model here. ''' import unittest from models.base_model import BaseModel from models.place import Place
28.637168
70
0.603523
1f8af70835313ee879d71169d774cac9ba7f41c9
1,714
py
Python
app/__init__.py
zjyfdu/flask_huxiaofei
2193bfe0aa45626fdb4b270f7532a1e04c5be556
[ "MIT" ]
null
null
null
app/__init__.py
zjyfdu/flask_huxiaofei
2193bfe0aa45626fdb4b270f7532a1e04c5be556
[ "MIT" ]
null
null
null
app/__init__.py
zjyfdu/flask_huxiaofei
2193bfe0aa45626fdb4b270f7532a1e04c5be556
[ "MIT" ]
null
null
null
from flask import Flask from flask_bootstrap import Bootstrap from flask_mail import Mail from flask_moment import Moment from flask_sqlalchemy import SQLAlchemy from sqlalchemy import MetaData from flask_login import LoginManager from flask_msearch import Search from config import config from jieba.analyse import Chin...
28.566667
72
0.757876
1f8f15b75dc5ee4ca1fc697ef1e5c0863cf598a7
1,893
py
Python
easyTCP/CLIENT/backend/Protocol.py
dsal3389/easyTCP
0a11ffe4726bfd0461c24fa459e417fd2fe3cd7f
[ "MIT" ]
4
2018-12-09T13:57:59.000Z
2019-10-19T19:34:28.000Z
easyTCP/CLIENT/backend/Protocol.py
dsal3389/easyTCP
0a11ffe4726bfd0461c24fa459e417fd2fe3cd7f
[ "MIT" ]
null
null
null
easyTCP/CLIENT/backend/Protocol.py
dsal3389/easyTCP
0a11ffe4726bfd0461c24fa459e417fd2fe3cd7f
[ "MIT" ]
null
null
null
import asyncio import json from ..utils import DEFAULT_SETTINGS from ..utils.DEFAULT_ENCRYPTION import SERVER_encryption, CLIENT_encryption
36.403846
111
0.661912
1f8f9e391109c41227336b2bb762cb77a40123c1
6,413
py
Python
src/harvester.py
bmoxon/azfinsim
3e203855410abd6c9636377b93ed5d33ac896c41
[ "MIT" ]
5
2021-02-24T19:10:34.000Z
2022-02-24T21:11:24.000Z
src/harvester.py
bmoxon/azfinsim
3e203855410abd6c9636377b93ed5d33ac896c41
[ "MIT" ]
null
null
null
src/harvester.py
bmoxon/azfinsim
3e203855410abd6c9636377b93ed5d33ac896c41
[ "MIT" ]
2
2021-05-03T11:57:31.000Z
2021-12-09T10:24:29.000Z
#! /usr/bin/env python3 #-- harvest scheduler that runs on the compute pool nodes import argparse import time import sys import logging import os import psutil from applicationinsights import TelemetryClient from applicationinsights.logging import LoggingHandler from getargs import getargs import azlog azlog.color=...
34.478495
127
0.626072
1f8faaab50ba1792d26b495c5cba37135b67c989
7,758
py
Python
old/model.py
samhippie/shallow-red
5690cdf380c6e138e25d88e85093738951438298
[ "MIT" ]
null
null
null
old/model.py
samhippie/shallow-red
5690cdf380c6e138e25d88e85093738951438298
[ "MIT" ]
null
null
null
old/model.py
samhippie/shallow-red
5690cdf380c6e138e25d88e85093738951438298
[ "MIT" ]
1
2020-03-13T12:53:35.000Z
2020-03-13T12:53:35.000Z
#!/usr/bin/env python3 #loading tf is slow, so don't do it unless we're using it USE_TENSORFLOW = False import collections import numpy as np import os import pickle if USE_TENSORFLOW: import tensorflow as tf from tensorflow import keras os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' import modelInput #use...
37.298077
130
0.620907
1f907167fd216693dde972de5a46db5460599384
183
py
Python
src/emuvim/api/util/process_utils.py
RafaelSche/vim-emu
6503ba9fcbe13ca73c94d318157a1ba78ef26b5b
[ "Apache-2.0" ]
34
2016-09-05T06:11:12.000Z
2021-12-24T08:45:24.000Z
src/emuvim/api/util/process_utils.py
RafaelSche/vim-emu
6503ba9fcbe13ca73c94d318157a1ba78ef26b5b
[ "Apache-2.0" ]
89
2016-07-19T14:14:27.000Z
2020-01-09T07:19:45.000Z
src/emuvim/api/util/process_utils.py
RafaelSche/vim-emu
6503ba9fcbe13ca73c94d318157a1ba78ef26b5b
[ "Apache-2.0" ]
32
2016-07-19T14:58:06.000Z
2020-05-05T13:30:01.000Z
import logging import subprocess import time
18.3
48
0.677596
1f944de947e6f066710ae464c5f7cd8435c93b21
189
py
Python
zesty_metrics/defaults.py
Crossway/django-zesty-metrics
863532dce1379039e3db99355c90e84ac2288534
[ "BSD-3-Clause" ]
1
2015-07-07T19:22:42.000Z
2015-07-07T19:22:42.000Z
zesty_metrics/defaults.py
Crossway/django-zesty-metrics
863532dce1379039e3db99355c90e84ac2288534
[ "BSD-3-Clause" ]
4
2016-08-01T18:11:18.000Z
2018-02-06T18:02:02.000Z
zesty_metrics/defaults.py
Crossway/django-zesty-metrics
863532dce1379039e3db99355c90e84ac2288534
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ZESTY_TRACKING_CLASSES = [ 'zesty_metrics.tracking.UserAccounts', ] ZESTY_TIMING_SAMPLE_RATE = 1 ZESTY_TIME_RESPONSES = True ZESTY_TRACK_USER_ACTIVITY = True
17.181818
42
0.756614