hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
836a1f95f9bc7256c74547e4b46165f7f107b034
286
py
Python
test_service.py
jgawrilo/qcr_ci
bd4c192444e03a551e3c5f4f0a275a4c029294de
[ "Apache-2.0" ]
1
2020-03-05T13:27:39.000Z
2020-03-05T13:27:39.000Z
test_service.py
jgawrilo/qcr_ci
bd4c192444e03a551e3c5f4f0a275a4c029294de
[ "Apache-2.0" ]
null
null
null
test_service.py
jgawrilo/qcr_ci
bd4c192444e03a551e3c5f4f0a275a4c029294de
[ "Apache-2.0" ]
null
null
null
import requests import json headers = {'Content-Type': 'application/json'} data = json.load(open("./test_input2.json")) url = "http://localhost:5001/api/impact" response = requests.post(url,data=json.dumps({"data":data}),headers=headers) print json.dumps(response.json(),indent=2)
22
76
0.727273
0
0
0
0
0
0
0
0
92
0.321678
836a92d066a5c850634a4179920f5c67049059c7
16,969
py
Python
google/appengine/ext/datastore_admin/backup_pb2.py
vladushakov987/appengine_python3
0dd481c73e2537a50ee10f1b79cd65938087e555
[ "Apache-2.0" ]
null
null
null
google/appengine/ext/datastore_admin/backup_pb2.py
vladushakov987/appengine_python3
0dd481c73e2537a50ee10f1b79cd65938087e555
[ "Apache-2.0" ]
null
null
null
google/appengine/ext/datastore_admin/backup_pb2.py
vladushakov987/appengine_python3
0dd481c73e2537a50ee10f1b79cd65938087e555
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2007 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 o...
37.376652
1,971
0.736755
0
0
0
0
0
0
0
0
4,930
0.29053
836acb8a4b706f8933f3b1012b5068f029201a8e
11,254
py
Python
PSBChart_support.py
georgepruitt/PSBChart
ee31497ffb12f818bab7ec750425f9fc7259c0f8
[ "Apache-2.0" ]
1
2019-08-02T06:36:05.000Z
2019-08-02T06:36:05.000Z
PSBChart_support.py
schkr/PSBChart
bf19c2632491f18ba6ee6b3337bcb118350b9b3e
[ "Apache-2.0" ]
1
2018-02-07T21:20:43.000Z
2018-02-07T21:20:43.000Z
PSBChart_support.py
schkr/PSBChart
bf19c2632491f18ba6ee6b3337bcb118350b9b3e
[ "Apache-2.0" ]
1
2019-08-02T06:35:30.000Z
2019-08-02T06:35:30.000Z
#! /usr/bin/env python # # Support module generated by PAGE version 4.10 # In conjunction with Tcl version 8.6 # Jan 12, 2018 04:09:34 PM import turtle from turtle import TurtleScreen, RawTurtle, TK from tkinter.filedialog import askopenfilename import tkinter as tk import os.path import datetime import...
34.521472
150
0.494846
0
0
0
0
0
0
0
0
1,829
0.16252
55c1580b2b075823f72830e0bcd2511007db68b9
9,790
py
Python
test/low_use_test/test_reporter.py
KeithWhitley/LUAU
d7df6836e7c9c0ddc4099b9a17f7e0727eeeb179
[ "Apache-2.0" ]
1
2020-10-16T13:02:36.000Z
2020-10-16T13:02:36.000Z
test/low_use_test/test_reporter.py
KeithWhitley/LUAU
d7df6836e7c9c0ddc4099b9a17f7e0727eeeb179
[ "Apache-2.0" ]
3
2019-02-04T11:44:06.000Z
2019-02-05T14:09:04.000Z
test/low_use_test/test_reporter.py
KeithWhitley/LUAU
d7df6836e7c9c0ddc4099b9a17f7e0727eeeb179
[ "Apache-2.0" ]
1
2021-05-26T12:00:06.000Z
2021-05-26T12:00:06.000Z
import unittest import boto3 from moto import mock_dynamodb2, mock_ec2 from low_use.reporter import LowUseReporter from util.aws import EC2Wrapper, DynamoWrapper import os class TestLowUseReporter(unittest.TestCase): @mock_dynamodb2 @mock_ec2 def setUp(self): self.session = boto3.Session(region_na...
33.758621
82
0.544637
9,615
0.982125
0
0
7,982
0.815322
0
0
1,979
0.202145
55c1a75a2d6e9fa1c5acdea024449b58927aff23
1,009
py
Python
splot/tests/test_viz_libpysal_mpl.py
renanxcortes/splot
c29e9b5cc92be4c4deee0358c1f462b60b0fe9f7
[ "BSD-3-Clause" ]
null
null
null
splot/tests/test_viz_libpysal_mpl.py
renanxcortes/splot
c29e9b5cc92be4c4deee0358c1f462b60b0fe9f7
[ "BSD-3-Clause" ]
null
null
null
splot/tests/test_viz_libpysal_mpl.py
renanxcortes/splot
c29e9b5cc92be4c4deee0358c1f462b60b0fe9f7
[ "BSD-3-Clause" ]
null
null
null
from libpysal.weights.contiguity import Queen import libpysal from libpysal import examples import matplotlib.pyplot as plt import geopandas as gpd from splot.libpysal import plot_spatial_weights def test_plot_spatial_weights(): # get data gdf = gpd.read_file(examples.get_path('43MUE250GC_SIR.shp')) gdf.h...
33.633333
86
0.737364
0
0
0
0
0
0
0
0
202
0.200198
55c1a9520e720c583feab19a26044ebc037a17c8
17,245
py
Python
dev/Gems/CloudGemMetric/v1/AWS/python/windows/Lib/numba/tests/test_ir.py
BadDevCode/lumberyard
3d688932f919dbf5821f0cb8a210ce24abe39e9e
[ "AML" ]
1,738
2017-09-21T10:59:12.000Z
2022-03-31T21:05:46.000Z
dev/Gems/CloudGemMetric/v1/AWS/python/windows/Lib/numba/tests/test_ir.py
olivier-be/lumberyard
3d688932f919dbf5821f0cb8a210ce24abe39e9e
[ "AML" ]
427
2017-09-29T22:54:36.000Z
2022-02-15T19:26:50.000Z
dev/Gems/CloudGemMetric/v1/AWS/python/windows/Lib/numba/tests/test_ir.py
olivier-be/lumberyard
3d688932f919dbf5821f0cb8a210ce24abe39e9e
[ "AML" ]
671
2017-09-21T08:04:01.000Z
2022-03-29T14:30:07.000Z
from __future__ import print_function import numba.unittest_support as unittest from numba import compiler, ir, objmode import numpy as np class TestIR(unittest.TestCase): def test_IRScope(self): filename = "<?>" top = ir.Scope(parent=None, loc=ir.Loc(filename=filename, line=1)) local = ...
36.458774
80
0.534126
17,011
0.986431
0
0
0
0
0
0
1,313
0.076138
55c37842e6305ac81f748c98ec0be9fc4a30c176
13,629
py
Python
pyannote/audio/applications/base.py
Ruslanmlnkv/pyannote-audio
b678920057ace936c8900c62d2975e958903fae2
[ "MIT" ]
2
2018-10-25T19:32:27.000Z
2021-06-19T15:14:16.000Z
pyannote/audio/applications/base.py
Ruslanmlnkv/pyannote-audio
b678920057ace936c8900c62d2975e958903fae2
[ "MIT" ]
null
null
null
pyannote/audio/applications/base.py
Ruslanmlnkv/pyannote-audio
b678920057ace936c8900c62d2975e958903fae2
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 # The MIT License (MIT) # Copyright (c) 2017 CNRS # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation ...
38.176471
81
0.595935
12,089
0.886941
3,152
0.231255
806
0.059134
0
0
4,238
0.310932
55c46dbffcc8bf64a692ba3c182ecb46d711b58d
9,359
py
Python
cogs/games/checkers.py
itsVale/Vale.py
6b3cac68d53e8d814ee969a959aae4de52beda80
[ "MIT" ]
14
2018-08-06T06:45:19.000Z
2018-12-28T14:20:33.000Z
cogs/games/checkers.py
Mystic-Alchemy/Vale.py
b4cc964d34672444c65e2801a15f37d774c5e6e3
[ "MIT" ]
10
2018-10-06T10:52:08.000Z
2018-12-28T14:21:47.000Z
cogs/games/checkers.py
Mystic-Alchemy/Vale.py
b4cc964d34672444c65e2801a15f37d774c5e6e3
[ "MIT" ]
13
2018-09-23T20:13:10.000Z
2019-01-26T11:02:37.000Z
import itertools import random import re import discord from more_itertools import chunked, pairwise, sliced, spy from .base import Status, TwoPlayerGameCog, TwoPlayerSession from utils.misc import emoji_url BLACK, WHITE = False, True PIECES = BK_PIECE, WH_PIECE = 'bw' KINGS = BK_KING, WH_KING = 'BW' CHECKERS_BLAC...
30.093248
96
0.567048
6,497
0.694198
1,960
0.209424
67
0.007159
622
0.06646
1,593
0.17021
55c5a244138d1f9a3e5a9c72e37cf112606b9cae
767
py
Python
setup.py
Fohlen/yente
bcba9ef3f766fea115de7eb381d7ad1b385d8df8
[ "MIT" ]
null
null
null
setup.py
Fohlen/yente
bcba9ef3f766fea115de7eb381d7ad1b385d8df8
[ "MIT" ]
null
null
null
setup.py
Fohlen/yente
bcba9ef3f766fea115de7eb381d7ad1b385d8df8
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages with open("README.md") as f: long_description = f.read() setup( name="yente", version="1.3.5", url="https://opensanctions.org/docs/api/", long_description=long_description, long_description_content_type="text/markdown", license="MIT", author...
23.242424
57
0.548892
0
0
0
0
0
0
0
0
239
0.311604
55c74a48da6996ad1f49dfbcbd9bd447049566b8
451
py
Python
python-pulseaudio-master/setup.py
rrbutani/SoundAndColor
44992fa188c109a3b11b2df137b9272a0b6203d8
[ "Unlicense" ]
null
null
null
python-pulseaudio-master/setup.py
rrbutani/SoundAndColor
44992fa188c109a3b11b2df137b9272a0b6203d8
[ "Unlicense" ]
null
null
null
python-pulseaudio-master/setup.py
rrbutani/SoundAndColor
44992fa188c109a3b11b2df137b9272a0b6203d8
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python from distutils.core import setup setup(name='libpulseaudio', version='1.1', description='simple libpulseaudio bindings', author='Valodim', author_email='[email protected]', license='LGPL', url='http://github.com/valodim/python-pulseaudio', packages=...
28.1875
73
0.662971
0
0
0
0
0
0
0
0
237
0.525499
55c807db743e48332bd230ddf2d2f732bbf1c1d4
2,006
py
Python
vectorization.py
creadal/articles-classifier
d7b7df5687e57da91fae2bb095f1617d729a00a2
[ "MIT" ]
null
null
null
vectorization.py
creadal/articles-classifier
d7b7df5687e57da91fae2bb095f1617d729a00a2
[ "MIT" ]
null
null
null
vectorization.py
creadal/articles-classifier
d7b7df5687e57da91fae2bb095f1617d729a00a2
[ "MIT" ]
null
null
null
import codecs import numpy as np import random categories = ['science', 'style', 'culture', 'life', 'economics', 'business', 'travel', 'forces', 'media', 'sport'] dict_file = codecs.open('processed/dictionary.txt', 'r', 'utf_8_sig') dictionary = [] for line in dict_file: line = line[: len(line) - 1] dictiona...
25.717949
164
0.565803
0
0
0
0
0
0
0
0
374
0.186255
55c88b114fda250da3b41e3041303ef9275c30e5
4,734
py
Python
data/spca/preprocess.py
energydatalab/mrs
f2088fd25594ff0c67faac89013c2f1c58942485
[ "MIT" ]
null
null
null
data/spca/preprocess.py
energydatalab/mrs
f2088fd25594ff0c67faac89013c2f1c58942485
[ "MIT" ]
null
null
null
data/spca/preprocess.py
energydatalab/mrs
f2088fd25594ff0c67faac89013c2f1c58942485
[ "MIT" ]
null
null
null
# Built-in import os from glob import glob # Libs import numpy as np from tqdm import tqdm from natsort import natsorted # Own modules from data import data_utils from mrs_utils import misc_utils, process_block # Settings DS_NAME = 'spca' def get_images(data_dir, valid_percent=0.5, split=False): rgb_files = na...
44.660377
145
0.667934
0
0
0
0
0
0
0
0
1,110
0.234474
55c8ccd7b221f69f74c7f2b403781f9c5546f908
3,182
py
Python
tests/test_json_util.py
okutane/yandex-taxi-testsuite
7e2e3dd5a65869ecbf37bf3f79cba7bb4e782b0c
[ "MIT" ]
128
2020-03-10T09:13:41.000Z
2022-02-11T20:16:16.000Z
tests/test_json_util.py
okutane/yandex-taxi-testsuite
7e2e3dd5a65869ecbf37bf3f79cba7bb4e782b0c
[ "MIT" ]
3
2021-11-01T12:31:27.000Z
2022-02-11T13:08:38.000Z
tests/test_json_util.py
okutane/yandex-taxi-testsuite
7e2e3dd5a65869ecbf37bf3f79cba7bb4e782b0c
[ "MIT" ]
22
2020-03-05T07:13:12.000Z
2022-03-15T10:30:58.000Z
import dateutil import pytest from testsuite.plugins import mockserver from testsuite.utils import json_util NOW = dateutil.parser.parse('2019-09-19-13:04:00.000000') MOCKSERVER_INFO = mockserver.MockserverInfo( 'localhost', 123, 'http://localhost:123/', None, ) MOCKSERVER_SSL_INFO = mockserver.MockserverInfo( ...
30.596154
79
0.511942
0
0
0
0
2,728
0.857322
0
0
1,099
0.34538
55c8ce13de36aa35d1ea8a967ade5c81bd88fbbc
1,066
py
Python
Level/__init__.py
PyRectangle/GreyRectangle
21c19002f52563a096566e9166040815005b830b
[ "MIT" ]
3
2017-09-28T16:53:09.000Z
2018-03-18T20:01:41.000Z
Level/__init__.py
PyRectangle/GreyRectangle
21c19002f52563a096566e9166040815005b830b
[ "MIT" ]
null
null
null
Level/__init__.py
PyRectangle/GreyRectangle
21c19002f52563a096566e9166040815005b830b
[ "MIT" ]
null
null
null
from Level.Render import Render from Level.Data import Data from Constants import * import os class Level: def __init__(self, folder, main): self.main = main self.name = folder self.folder = LEVEL_PATH + "/" + folder self.dataFiles = [] files = os.listdir(self.folder) ...
26
61
0.562852
969
0.909006
0
0
0
0
0
0
12
0.011257
55cc899799689985629d17decc9d13ef5c737a0d
1,252
py
Python
preparedstatement.py
shgysk8zer0/pyutils
f7fa2ea7717740f05ea739d20cd8a21701835800
[ "MIT" ]
null
null
null
preparedstatement.py
shgysk8zer0/pyutils
f7fa2ea7717740f05ea739d20cd8a21701835800
[ "MIT" ]
null
null
null
preparedstatement.py
shgysk8zer0/pyutils
f7fa2ea7717740f05ea739d20cd8a21701835800
[ "MIT" ]
null
null
null
import sqlite3 class PreparedStatement: __cursor = None __sql = '' __params = {} def __init__(self, con: sqlite3.Connection, sql: str): self.__cursor = con.cursor() self.__sql = sql self.__params = {} def __str__(self) -> str: return self.__sql def __getitem__(...
26.083333
77
0.610224
1,236
0.98722
0
0
68
0.054313
0
0
2
0.001597
55cce6a5f51b48ac0a3f7fb58d81fade424bd086
2,787
py
Python
python/communitymanager/lib/basicauthpolicy.py
OpenCIOC/communityrepo
63199a7b620f5c08624e534faf771e5dd2243adb
[ "Apache-2.0" ]
2
2016-01-25T14:40:44.000Z
2018-01-31T04:30:23.000Z
python/communitymanager/lib/basicauthpolicy.py
OpenCIOC/communityrepo
63199a7b620f5c08624e534faf771e5dd2243adb
[ "Apache-2.0" ]
5
2018-02-07T20:16:49.000Z
2021-12-13T19:41:43.000Z
python/communitymanager/lib/basicauthpolicy.py
OpenCIOC/communityrepo
63199a7b620f5c08624e534faf771e5dd2243adb
[ "Apache-2.0" ]
1
2018-02-07T20:37:52.000Z
2018-02-07T20:37:52.000Z
# From the Pyramid Cookbook: # http://pyramid-cookbook.readthedocs.org/en/latest/auth/basic.html import binascii import base64 from paste.httpheaders import AUTHORIZATION from paste.httpheaders import WWW_AUTHENTICATE from pyramid.security import Everyone from pyramid.security import Authenticated def _get_basicau...
30.626374
81
0.657696
1,835
0.658414
0
0
0
0
0
0
736
0.264083
55cd25162b525efcbd0ec6570ea61ed0a8074922
4,709
py
Python
eventsourcing/examples/searchabletimestamps/postgres.py
ParikhKadam/eventsourcing
8d7f8d28c527d7df47a631b009b19b5fdb53740b
[ "BSD-3-Clause" ]
107
2021-10-30T14:47:19.000Z
2022-03-31T10:52:42.000Z
eventsourcing/examples/searchabletimestamps/postgres.py
ParikhKadam/eventsourcing
8d7f8d28c527d7df47a631b009b19b5fdb53740b
[ "BSD-3-Clause" ]
12
2021-11-02T05:52:42.000Z
2022-03-08T14:49:09.000Z
eventsourcing/examples/searchabletimestamps/postgres.py
ParikhKadam/eventsourcing
8d7f8d28c527d7df47a631b009b19b5fdb53740b
[ "BSD-3-Clause" ]
8
2021-10-29T22:35:54.000Z
2022-03-03T04:16:17.000Z
from datetime import datetime from typing import Any, List, Optional, Sequence, Tuple, cast from uuid import UUID from eventsourcing.domain import Aggregate from eventsourcing.examples.searchabletimestamps.persistence import ( SearchableTimestampsRecorder, ) from eventsourcing.persistence import ApplicationRecorde...
36.789063
87
0.647484
4,202
0.892334
0
0
0
0
0
0
754
0.160119
55cdd7e5e8bf1de41967431dfc57603e40486db0
313
py
Python
complete/01 - 10/Problem6/main.py
this-jacob/project-euler
8f9e700e2875e84d081eade44fd2107db0a0ae12
[ "MIT" ]
null
null
null
complete/01 - 10/Problem6/main.py
this-jacob/project-euler
8f9e700e2875e84d081eade44fd2107db0a0ae12
[ "MIT" ]
null
null
null
complete/01 - 10/Problem6/main.py
this-jacob/project-euler
8f9e700e2875e84d081eade44fd2107db0a0ae12
[ "MIT" ]
null
null
null
def main(): squareSum = 0 #(1 + 2)^2 square of the sums sumSquare = 0 #1^2 + 2^2 sum of the squares for i in range(1, 101): sumSquare += i ** 2 squareSum += i squareSum = squareSum ** 2 print(str(squareSum - sumSquare)) if __name__ == '__main__': main()
19.5625
54
0.533546
0
0
0
0
0
0
0
0
70
0.223642
55ce2377676e46ea6ca7f0b0a8a26da468d757a5
1,861
py
Python
Sudoko.py
abirbhattacharya82/Sudoko-Solver
36ea15d16561fe5031548ed3f4c58757280117f6
[ "MIT" ]
1
2021-07-25T03:02:39.000Z
2021-07-25T03:02:39.000Z
Sudoko.py
abirbhattacharya82/Sudoku-Solver
36ea15d16561fe5031548ed3f4c58757280117f6
[ "MIT" ]
null
null
null
Sudoko.py
abirbhattacharya82/Sudoku-Solver
36ea15d16561fe5031548ed3f4c58757280117f6
[ "MIT" ]
null
null
null
def find_space(board): for i in range(0,9): for j in range(0,9): if board[i][j]==0: return (i,j) return None def check(board,num,r,c): for i in range(0,9): if board[r][i]==num and c!=i: return False for i in range(0,9): if board[...
23.2625
51
0.476088
0
0
0
0
0
0
0
0
487
0.261687
55cf3d9d9f70b37e8b09330bf7dcbd0d8aeb3b5f
2,341
py
Python
gbkfit_web/utility/display_names.py
ADACS-Australia/ADACS-GBKFIT
20c7cafcabb6e75d8c287df06efb43113fdabd25
[ "MIT" ]
null
null
null
gbkfit_web/utility/display_names.py
ADACS-Australia/ADACS-GBKFIT
20c7cafcabb6e75d8c287df06efb43113fdabd25
[ "MIT" ]
null
null
null
gbkfit_web/utility/display_names.py
ADACS-Australia/ADACS-GBKFIT
20c7cafcabb6e75d8c287df06efb43113fdabd25
[ "MIT" ]
null
null
null
""" Distributed under the MIT License. See LICENSE.txt for more info. """ # VARIABLES of this file must be unique from django_hpc_job_controller.client.scheduler.status import JobStatus # Dictionary to map names and corresponding display names (for UI) DISPLAY_NAME_MAP = dict() DISPLAY_NAME_MAP_HPC_JOB = dict() # ...
27.541176
71
0.76463
0
0
0
0
0
0
0
0
542
0.231525
55d01698d8da5e9ff89aaf1c3a856cf2b9f42f2c
5,227
py
Python
heap/heap.py
xyycha/data-struct
0a0d46bf6666681be2e4d5a2664b333dd9fb3a95
[ "Apache-2.0" ]
4
2020-03-10T07:45:44.000Z
2020-03-12T02:00:32.000Z
heap/heap.py
xyycha/data-struct
0a0d46bf6666681be2e4d5a2664b333dd9fb3a95
[ "Apache-2.0" ]
1
2020-03-14T01:32:19.000Z
2020-03-14T03:06:34.000Z
heap/heap.py
xyycha/data-struct
0a0d46bf6666681be2e4d5a2664b333dd9fb3a95
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- import random from graphviz import Digraph class HeapNode(object): def __init__(self, value, info): self.value = value self.info = info class Heap(object): def __init__(self, cap): self.cap = cap self.size = 0 self.heap = [None] def sho...
32.067485
168
0.575091
4,368
0.82649
0
0
0
0
0
0
263
0.049763
55d1d3ad368bdd500bd5c9d98aeb00a9d5dd603d
1,899
py
Python
python/federatedml/param/encrypted_mode_calculation_param.py
QuantumA/FATE
89a3dd593252128c1bf86fb1014b25a629bdb31a
[ "Apache-2.0" ]
1
2022-02-07T06:23:15.000Z
2022-02-07T06:23:15.000Z
python/federatedml/param/encrypted_mode_calculation_param.py
JavaGreenHands/FATE
ea1e94b6be50c70c354d1861093187e523af32f2
[ "Apache-2.0" ]
11
2020-10-09T09:53:50.000Z
2021-12-06T16:14:51.000Z
python/federatedml/param/encrypted_mode_calculation_param.py
JavaGreenHands/FATE
ea1e94b6be50c70c354d1861093187e523af32f2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2019 The FATE Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/lic...
35.830189
120
0.646656
1,182
0.622433
0
0
0
0
0
0
1,188
0.625592
55d2968cb14aa637fc9c4bccc7dba59fba67c074
5,832
py
Python
optimization/solution.py
silx-kit/silx-training
1e24d4fe383263e3466c029073190ed8bb70bb1f
[ "CC-BY-4.0" ]
7
2017-05-02T10:03:12.000Z
2021-06-28T14:11:32.000Z
optimization/solution.py
silx-kit/silx-training
1e24d4fe383263e3466c029073190ed8bb70bb1f
[ "CC-BY-4.0" ]
23
2016-11-21T17:55:11.000Z
2021-11-24T13:43:13.000Z
optimization/solution.py
silx-kit/silx-training
1e24d4fe383263e3466c029073190ed8bb70bb1f
[ "CC-BY-4.0" ]
13
2016-11-17T10:47:22.000Z
2022-02-07T09:38:47.000Z
"""Solution of the exercises of Optimization of compute bound Python code""" import math import cmath import numpy as np import numexpr as ne import numba as nb # Needed here since it is used as global variables # Maximum strain at surface e0 = 0.01 # Width of the strain profile below the surface w = 5.0 # Python: C...
32.4
98
0.477195
0
0
0
0
987
0.169239
0
0
1,156
0.198217
55d367bc88c080acffb11c453ca1f70ffffc2a4c
9,300
py
Python
examples/SSTDemoWeightedClauses_Interpret.py
jivitesh-sharma/Drop-Clause-Interpretable-TM
4fb4d4be0f24a0c30f13fbcca974390889d7fe84
[ "MIT" ]
null
null
null
examples/SSTDemoWeightedClauses_Interpret.py
jivitesh-sharma/Drop-Clause-Interpretable-TM
4fb4d4be0f24a0c30f13fbcca974390889d7fe84
[ "MIT" ]
null
null
null
examples/SSTDemoWeightedClauses_Interpret.py
jivitesh-sharma/Drop-Clause-Interpretable-TM
4fb4d4be0f24a0c30f13fbcca974390889d7fe84
[ "MIT" ]
null
null
null
import re import string import nltk from nltk.tokenize import word_tokenize from string import punctuation from nltk.corpus import stopwords nltk.download('punkt') nltk.download('stopwords') import pandas as pd from nltk.stem import PorterStemmer from nltk import FreqDist from nltk.tokenize import Regexp...
30.097087
186
0.576882
0
0
0
0
0
0
0
0
1,311
0.140907
55d3a610da3467d16c45533e5d12b2a9f0ad38ba
1,457
py
Python
adbc/zql/builders/core.py
aleontiev/apg
c6a10a9b0a576913c63ed4f093e2a0fa7469af87
[ "MIT" ]
2
2020-07-17T16:33:42.000Z
2020-07-21T04:48:38.000Z
adbc/zql/builders/core.py
aleontiev/apg
c6a10a9b0a576913c63ed4f093e2a0fa7469af87
[ "MIT" ]
null
null
null
adbc/zql/builders/core.py
aleontiev/apg
c6a10a9b0a576913c63ed4f093e2a0fa7469af87
[ "MIT" ]
null
null
null
from adbc.zql.validator import Validator class Builder(Validator): INDENT = 4 IDENTIFIER_SPLIT_CHARACTER = '.' WHITESPACE_CHARACTER = ' ' WILDCARD_CHARACTER = '*' QUOTE_CHARACTERS = {'"', "'", '`'} RAW_QUOTE_CHARACTER = '`' COMMANDS = { 'select', 'insert', 'update',...
18.922078
52
0.315031
1,413
0.969801
0
0
0
0
0
0
413
0.283459
55d3b92efdbe3c9a4d84e47ec3fda8ecb4588bca
426
py
Python
setup.py
InTheMorning/python-bme280
47af2784c937bed429d8986b5205b495e03d74f2
[ "MIT" ]
null
null
null
setup.py
InTheMorning/python-bme280
47af2784c937bed429d8986b5205b495e03d74f2
[ "MIT" ]
null
null
null
setup.py
InTheMorning/python-bme280
47af2784c937bed429d8986b5205b495e03d74f2
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='bme280', version='1.0.0', packages=['bme280'], install_requires=['smbus2'], python_requires='>=2.7', url='https://dev.mycrobase.de/gitea/cn/python-bme280', author='Christian Nicolai', description='A python library for accessing the BM...
30.428571
112
0.671362
0
0
0
0
0
0
0
0
210
0.492958
55d3d277d3db0f3730f055eade9ab037ac954a49
1,190
py
Python
List/learnlist.py
shahasifbashir/LearnPython
4ce6b81d66ea7bbf0a40427871daa4e563b6a184
[ "MIT" ]
null
null
null
List/learnlist.py
shahasifbashir/LearnPython
4ce6b81d66ea7bbf0a40427871daa4e563b6a184
[ "MIT" ]
null
null
null
List/learnlist.py
shahasifbashir/LearnPython
4ce6b81d66ea7bbf0a40427871daa4e563b6a184
[ "MIT" ]
null
null
null
# A simple list myList = [10,20,4,5,6,2,9,10,2,3,34,14] #print the whole list print("The List is {}".format(myList)) # printing elemts of the list one by one print("printing elemts of the list one by one") for elements in myList: print(elements) print("") #printing elements that are greater than 10 only prin...
25.869565
139
0.696639
0
0
0
0
0
0
0
0
699
0.587395
55d68de8c22f2deefdb481f4a73d47295a2e3b27
870
py
Python
pmapi/app.py
jbushman/primemirror-api
4844d57b5581a2d537996c77eec65956ef5f1dc9
[ "Apache-2.0" ]
null
null
null
pmapi/app.py
jbushman/primemirror-api
4844d57b5581a2d537996c77eec65956ef5f1dc9
[ "Apache-2.0" ]
null
null
null
pmapi/app.py
jbushman/primemirror-api
4844d57b5581a2d537996c77eec65956ef5f1dc9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 from pmapi.config import Config, get_logger import os import logging import requests import connexion from flask import Flask, request logger = get_logger() # if not Config.TOKEN: # data = { # "hostname": Config.HOSTNAME, # "ip": Config.IP, # "state": Config.STATE, # ...
24.857143
104
0.670115
0
0
0
0
0
0
0
0
529
0.608046
55d7d78c6937d21c0eddc062cc73761c958ba202
1,175
py
Python
python/setup.py
chrisdembia/StateMint
53fdaabc7ba83fb477523ae9b79ccc964e791080
[ "BSD-3-Clause" ]
null
null
null
python/setup.py
chrisdembia/StateMint
53fdaabc7ba83fb477523ae9b79ccc964e791080
[ "BSD-3-Clause" ]
null
null
null
python/setup.py
chrisdembia/StateMint
53fdaabc7ba83fb477523ae9b79ccc964e791080
[ "BSD-3-Clause" ]
null
null
null
import setuptools with open('README.md') as f: long_description=f.read() setuptools.setup( name="StateMint", version="1.0.0", author="Cameron Devine", author_email="[email protected]", description="A library for finding State Space models of dynamical systems.", long_description=long_description, long_description...
31.756757
78
0.691064
0
0
0
0
0
0
0
0
791
0.673191
55d8e1c6fdbebec334001ecd1716470ce185570d
1,001
py
Python
cha_bebe/presente/migrations/0001_initial.py
intelektos/Cha_bebe
23df4af3901413c9c50e73bd305ade165c81001b
[ "MIT" ]
null
null
null
cha_bebe/presente/migrations/0001_initial.py
intelektos/Cha_bebe
23df4af3901413c9c50e73bd305ade165c81001b
[ "MIT" ]
9
2020-06-08T03:31:08.000Z
2022-01-13T02:44:42.000Z
cha_bebe/presente/migrations/0001_initial.py
intelektos/Cha_bebe
23df4af3901413c9c50e73bd305ade165c81001b
[ "MIT" ]
1
2020-06-01T17:43:20.000Z
2020-06-01T17:43:20.000Z
# Generated by Django 3.0.6 on 2020-05-14 18:13 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Presente', fields=[ ('id', models.AutoField...
33.366667
114
0.566434
908
0.907093
0
0
0
0
0
0
174
0.173826
55da18f8f5bba77168080eaa5260eeadfe4bb7f4
2,376
py
Python
src/rekognition_online_action_detection/models/feature_head.py
amazon-research/long-short-term-transformer
a425be4b52ab68fddd85c91d26571e4cdfe8379a
[ "Apache-2.0" ]
52
2021-11-19T01:35:10.000Z
2022-03-24T11:48:10.000Z
src/rekognition_online_action_detection/models/feature_head.py
amazon-research/long-short-term-transformer
a425be4b52ab68fddd85c91d26571e4cdfe8379a
[ "Apache-2.0" ]
9
2021-11-24T18:50:13.000Z
2022-03-10T05:13:53.000Z
src/rekognition_online_action_detection/models/feature_head.py
amazon-research/long-short-term-transformer
a425be4b52ab68fddd85c91d26571e4cdfe8379a
[ "Apache-2.0" ]
8
2022-01-15T08:01:33.000Z
2022-03-20T22:08:29.000Z
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 __all__ = ['build_feature_head'] import torch import torch.nn as nn from rekognition_online_action_detection.utils.registry import Registry FEATURE_HEADS = Registry() FEATURE_SIZES = { 'rgb_anet_resnet50':...
33.942857
83
0.673822
1,681
0.707492
0
0
1,751
0.736953
0
0
349
0.146886
55dae12ae7fedf07888052fca21d9aabf3ce95df
1,367
py
Python
main.py
klarman-cell-observatory/cirrocumulus-app-engine
52997ae790773364591ab8d7c747e4505700373b
[ "BSD-3-Clause" ]
null
null
null
main.py
klarman-cell-observatory/cirrocumulus-app-engine
52997ae790773364591ab8d7c747e4505700373b
[ "BSD-3-Clause" ]
1
2021-04-13T14:52:39.000Z
2021-04-13T15:53:34.000Z
main.py
klarman-cell-observatory/cirrocumulus-app-engine
52997ae790773364591ab8d7c747e4505700373b
[ "BSD-3-Clause" ]
null
null
null
import os import sys sys.path.append('lib') from flask import Flask, send_from_directory import cirrocumulus from cirrocumulus.cloud_firestore_native import CloudFireStoreNative from cirrocumulus.api import blueprint from cirrocumulus.envir import CIRRO_AUTH_CLIENT_ID, CIRRO_AUTH, CIRRO_DATABASE, CIRRO_DATASET_PROVI...
33.341463
104
0.766642
0
0
0
0
85
0.06218
0
0
249
0.182151
55db43f69d53783216fd36c9fb7e70e68c557460
823
py
Python
utils/load_externals.py
uvasrg/FeatureSqueezing
8448fbff07bf03ff81a52dbd7e014d5733035f56
[ "MIT" ]
56
2017-05-19T23:30:13.000Z
2021-11-16T09:15:48.000Z
utils/load_externals.py
pengpengqiao/FeatureSqueezing
5ca04dc704dda578df53f5234f4dabbfc3e3ec62
[ "MIT" ]
1
2018-03-12T03:47:45.000Z
2018-03-12T03:47:45.000Z
utils/load_externals.py
pengpengqiao/FeatureSqueezing
5ca04dc704dda578df53f5234f4dabbfc3e3ec62
[ "MIT" ]
19
2017-06-11T08:33:19.000Z
2022-01-03T09:46:44.000Z
import sys, os external_libs = {'Cleverhans v1.0.0': "externals/cleverhans", 'Tensorflow-Model-Resnet': "externals/tensorflow-models", } project_path = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) for lib_name, lib_path in external_libs.iteritems(): lib_path = os...
32.92
75
0.64277
0
0
0
0
0
0
0
0
247
0.300122
55dc16af3929e96db5e96a0d381158d79e762fbd
2,333
py
Python
research/seq_flow_lite/utils/misc_utils.py
hjkim-haga/TF-OD-API
22ac477ff4dfb93fe7a32c94b5f0b1e74330902b
[ "Apache-2.0" ]
null
null
null
research/seq_flow_lite/utils/misc_utils.py
hjkim-haga/TF-OD-API
22ac477ff4dfb93fe7a32c94b5f0b1e74330902b
[ "Apache-2.0" ]
null
null
null
research/seq_flow_lite/utils/misc_utils.py
hjkim-haga/TF-OD-API
22ac477ff4dfb93fe7a32c94b5f0b1e74330902b
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 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 ...
46.66
81
0.714102
0
0
0
0
0
0
0
0
815
0.349336
55dc932db8d55326783afe7c9ef113e659643f67
2,503
py
Python
parc/pra__/incomplete_13910.py
KwanHoo/Data-Structure__Algorithm
b985f8b41a366b9c028da711ea43a643151268e2
[ "MIT" ]
null
null
null
parc/pra__/incomplete_13910.py
KwanHoo/Data-Structure__Algorithm
b985f8b41a366b9c028da711ea43a643151268e2
[ "MIT" ]
null
null
null
parc/pra__/incomplete_13910.py
KwanHoo/Data-Structure__Algorithm
b985f8b41a366b9c028da711ea43a643151268e2
[ "MIT" ]
null
null
null
## 백준 13910번 ## 개업 ## 다이나믹 프로그래밍 ## (짜장면 데이) ''' ##! ex) N = 4, 5그릇 이상 요리 X, 4사이즈 윅에 3그릇 이하 요리 X => 4윅에 4개 ##* ex) N = 5, 윅 사이즈 1,3 / first : 1+3 = 4 그릇, second : 1 => 5 그릇 --> 2번의 요리로 주문 처리 ##* 주문 받은 짜장면의 수, 가지고 있는 윅의 크기 => 주문 처리 # In1 ) N M : (주문 받은 짜장면의 수) N | (가지고 있는 윅의 수) M # In2 ) S : 윅의 크기 S가 M개 만큼 주어...
20.68595
83
0.411506
0
0
0
0
0
0
0
0
1,273
0.426752
55dce36c7d1bd205aea80744f2bd0ceb8afc6832
1,169
py
Python
manage/db_logger.py
ReanGD/web-home-manage
bbc5377a1f7fde002442fee7720e4ab9e9ad22b3
[ "Apache-2.0" ]
null
null
null
manage/db_logger.py
ReanGD/web-home-manage
bbc5377a1f7fde002442fee7720e4ab9e9ad22b3
[ "Apache-2.0" ]
null
null
null
manage/db_logger.py
ReanGD/web-home-manage
bbc5377a1f7fde002442fee7720e4ab9e9ad22b3
[ "Apache-2.0" ]
null
null
null
import sys import traceback from manage.models import LoadLog class DbLogger(object): def __init__(self, rec_id=None): if rec_id is None: self.rec = LoadLog.objects.create() else: self.rec = LoadLog.objects.get(pk=int(rec_id)) def remove_torrent(self): if self....
25.977778
79
0.597092
1,104
0.944397
0
0
0
0
0
0
22
0.01882
55dcf3dd3bd27fb171fb592911ad357dd0bb432c
5,623
py
Python
api/src/result_handler.py
Aragos/tichu-tournament
4cdf727a30af8820ad56fe3097ec9a8e84892068
[ "MIT" ]
7
2016-12-12T02:29:42.000Z
2020-05-12T21:21:21.000Z
api/src/result_handler.py
Aragos/tichu-tournament
4cdf727a30af8820ad56fe3097ec9a8e84892068
[ "MIT" ]
31
2017-01-05T06:07:28.000Z
2018-05-27T13:13:06.000Z
api/src/result_handler.py
Aragos/tichu-tournament
4cdf727a30af8820ad56fe3097ec9a8e84892068
[ "MIT" ]
3
2017-12-21T23:30:12.000Z
2019-01-03T20:51:52.000Z
import webapp2 import json from generic_handler import GenericHandler from python.calculator import Calculate from python.calculator import GetMaxRounds from google.appengine.api import users from handler_utils import BuildMovementAndMaybeSetStatus from handler_utils import CheckUserOwnsTournamentAndMaybeReturnStatus ...
38.251701
111
0.686111
4,223
0.751023
0
0
0
0
0
0
817
0.145296
55de8a6657e59552d97157f0e3318b5e7abae0d2
323
py
Python
electsysApi/shared/exception.py
yuxiqian/electsys-api
52b42729e797f8bdf6a0827e9d62a50919d56d65
[ "MIT" ]
5
2019-01-21T00:44:33.000Z
2022-01-03T16:45:25.000Z
electsysApi/shared/exception.py
yuxiqian/electsys-api
52b42729e797f8bdf6a0827e9d62a50919d56d65
[ "MIT" ]
1
2021-10-24T00:46:59.000Z
2021-10-24T00:46:59.000Z
electsysApi/shared/exception.py
yuxiqian/electsys-api
52b42729e797f8bdf6a0827e9d62a50919d56d65
[ "MIT" ]
2
2019-01-12T03:18:33.000Z
2021-06-16T11:19:49.000Z
#!/usr/bin/env python # encoding: utf-8 ''' @author: yuxiqian @license: MIT @contact: [email protected] @software: electsys-api @file: electsysApi/shared/exception.py @time: 2019/1/9 ''' class RequestError(BaseException): pass class ParseError(BaseException): pass class ParseWarning(Warning): pa...
14.043478
38
0.721362
121
0.374613
0
0
0
0
0
0
190
0.588235
55ded0b36a3a4b147484ae30e7276b05b17dc456
2,375
py
Python
src/CryptoPlus/Cipher/ARC2.py
voytecPL/pycryptoplus
86905bbb8661e00cfb2afdc4461d4a79b6429d8a
[ "MIT" ]
1
2022-02-27T17:46:18.000Z
2022-02-27T17:46:18.000Z
src/CryptoPlus/Cipher/ARC2.py
voytecPL/pycryptoplus
86905bbb8661e00cfb2afdc4461d4a79b6429d8a
[ "MIT" ]
null
null
null
src/CryptoPlus/Cipher/ARC2.py
voytecPL/pycryptoplus
86905bbb8661e00cfb2afdc4461d4a79b6429d8a
[ "MIT" ]
null
null
null
from __future__ import absolute_import from .blockcipher import * import Crypto.Cipher.ARC2 import Crypto from pkg_resources import parse_version def new(key,mode=MODE_ECB,IV=None,counter=None,segment_size=None,effective_keylen=None): """Create a new cipher object ARC2 using pycrypto for algo and pycryptoplus...
38.306452
88
0.656421
565
0.237895
0
0
0
0
0
0
1,517
0.638737
55e1293b8209552c67ecb749af45c55f2d9be6aa
1,121
py
Python
extensions/roles.py
iLuiizUHD/Expertise-Bot-v2
2b5264804d14d74ce1c0511dede434b7225683e0
[ "MIT" ]
2
2020-11-01T02:44:58.000Z
2021-02-21T18:05:39.000Z
extensions/roles.py
iLuiizUHD/Expertise-Bot-v2
2b5264804d14d74ce1c0511dede434b7225683e0
[ "MIT" ]
1
2020-09-13T20:53:26.000Z
2020-09-13T20:53:26.000Z
extensions/roles.py
iLuiizUHD/ExpertiseBot2
2b5264804d14d74ce1c0511dede434b7225683e0
[ "MIT" ]
null
null
null
# Utilities import json from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker # Imports from discord.ext import commands from discord import Guild, Role # Loading config file... with open("./config.json", "r", encoding="utf-8") as config: configFile = json.load(config) class Roles(command...
26.069767
66
0.64942
765
0.682426
0
0
200
0.178412
133
0.118644
185
0.165031
55e14400b4aed5430ec4803712092997b45a1d19
4,076
py
Python
amun/measure_accuracy.py
Elkoumy/amun
db07129450979cb8dd95b086b8e4187facb85bb8
[ "Apache-2.0" ]
10
2020-12-03T08:30:51.000Z
2021-12-12T11:03:47.000Z
amun/measure_accuracy.py
Elkoumy/amun
db07129450979cb8dd95b086b8e4187facb85bb8
[ "Apache-2.0" ]
1
2021-10-01T09:52:26.000Z
2021-10-07T08:52:46.000Z
amun/measure_accuracy.py
Elkoumy/amun
db07129450979cb8dd95b086b8e4187facb85bb8
[ "Apache-2.0" ]
null
null
null
""" In this module, we implement the accuracy measures to evaluate the effect of differential privacy injection. In this module, we support the following measures: * F1-score. * Earth Mover's distance. """ from scipy.stats import wasserstein_distance from pm4py.algo.discovery.inductive import factory as induct...
41.591837
177
0.707802
0
0
0
0
0
0
0
0
1,239
0.303974
55e1eb5bf2eb00d7ba492fd1c7a964baab5327be
10,845
py
Python
mkt/translations/models.py
ngokevin/zamboni
a33dcd489175d8e7ba1c02ee4dabb6cfdc405e69
[ "BSD-3-Clause" ]
null
null
null
mkt/translations/models.py
ngokevin/zamboni
a33dcd489175d8e7ba1c02ee4dabb6cfdc405e69
[ "BSD-3-Clause" ]
null
null
null
mkt/translations/models.py
ngokevin/zamboni
a33dcd489175d8e7ba1c02ee4dabb6cfdc405e69
[ "BSD-3-Clause" ]
null
null
null
import collections from itertools import groupby from django.db import connections, models, router from django.db.models.deletion import Collector from django.utils import encoding import bleach import commonware.log from mkt.site.models import ManagerBase, ModelBase from mkt.site.utils import linkify_with_outgoing ...
36.0299
100
0.643799
8,505
0.784232
0
0
1,950
0.179806
0
0
3,932
0.362563
55e27b739ace5413321cb8d38b36117252a799e4
2,564
py
Python
flow/sequential.py
altosaar/hierarchical-variational-models-physics
611d91e0281664d7d5ba1679bec7adfb3aac41e2
[ "MIT" ]
14
2020-05-10T20:44:49.000Z
2022-01-12T23:06:24.000Z
flow/sequential.py
altosaar/hierarchical-variational-models-physics
611d91e0281664d7d5ba1679bec7adfb3aac41e2
[ "MIT" ]
null
null
null
flow/sequential.py
altosaar/hierarchical-variational-models-physics
611d91e0281664d7d5ba1679bec7adfb3aac41e2
[ "MIT" ]
null
null
null
import torch from torch import nn class FlowSequential(nn.Sequential): """Forward pass with log determinant of the Jacobian.""" def forward(self, input, context=None): total_log_prob = torch.zeros(input.size(0), device=input.device) for block in self._modules.values(): input, log_prob = block(input,...
35.123288
74
0.710608
2,333
0.909906
0
0
0
0
0
0
199
0.077613
55e3a6acd9ba82563797c1dceb04e6f788b6036d
3,827
py
Python
inmoov/scripts/animation_executor.py
mish3albaiz/Robotics_ECE579
efb654040015671a0656eaee4c78ec085d862996
[ "BSD-3-Clause" ]
1
2020-02-13T21:13:08.000Z
2020-02-13T21:13:08.000Z
inmoov/scripts/animation_executor.py
mish3albaiz/Robotics_ECE579
efb654040015671a0656eaee4c78ec085d862996
[ "BSD-3-Clause" ]
null
null
null
inmoov/scripts/animation_executor.py
mish3albaiz/Robotics_ECE579
efb654040015671a0656eaee4c78ec085d862996
[ "BSD-3-Clause" ]
null
null
null
import time from os.path import join, dirname import sys whereami = dirname(__file__) scripts_dir= join(whereami, "../scripts/") sys.path.append(scripts_dir) from json_parsing import read_json import Inmoov filename_pose = join(whereami, '../json/pose.json') filename_animation = join(whereami, '../json/animations.jso...
37.891089
127
0.686961
0
0
0
0
0
0
0
0
1,834
0.479227
55e3e019d60ec9acd28cad6159176037b75aa670
930
py
Python
Python/1629.py
GeneralLi95/leetcode
f42392f2283e19ec76273d81b2912944f9039568
[ "MIT" ]
null
null
null
Python/1629.py
GeneralLi95/leetcode
f42392f2283e19ec76273d81b2912944f9039568
[ "MIT" ]
null
null
null
Python/1629.py
GeneralLi95/leetcode
f42392f2283e19ec76273d81b2912944f9039568
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from typing import List, Optional from collections import defaultdict, deque from itertools import product,combinations,permutations class ListNode: def __init__(self, val=0, next=None): self.val = val self.next = next # ------------------------- class Solution: def slowestKey(self, re...
20.217391
72
0.615054
538
0.578495
0
0
0
0
0
0
101
0.108602
55e424ce8e62dc85462716ba6efd8eff1ffa1fd9
530
py
Python
hexrd/sglite/setup.py
glemaitre/hexrd
b68b1ba72e0f480d29bdaae2adbd6c6e2380cc7c
[ "BSD-3-Clause" ]
null
null
null
hexrd/sglite/setup.py
glemaitre/hexrd
b68b1ba72e0f480d29bdaae2adbd6c6e2380cc7c
[ "BSD-3-Clause" ]
null
null
null
hexrd/sglite/setup.py
glemaitre/hexrd
b68b1ba72e0f480d29bdaae2adbd6c6e2380cc7c
[ "BSD-3-Clause" ]
null
null
null
from distutils.core import setup, Extension srclist = ['sgglobal.c','sgcb.c','sgcharmx.c','sgfile.c', 'sggen.c','sghall.c','sghkl.c','sgltr.c','sgmath.c','sgmetric.c', 'sgnorm.c','sgprop.c','sgss.c','sgstr.c','sgsymbols.c', 'sgtidy.c','sgtype.c','sgutil.c','runtests.c','sglitemodule.c'...
33.125
76
0.584906
0
0
0
0
0
0
0
0
256
0.483019
55e48ca73e642e82cfdfccf386ed40c0b2fba12d
725
py
Python
app/blogging/routes.py
Sjors/patron
a496097ad0821b677c8e710e8aceb587928be31c
[ "MIT" ]
114
2018-12-30T20:43:37.000Z
2022-03-21T18:57:47.000Z
app/blogging/routes.py
Sjors/patron
a496097ad0821b677c8e710e8aceb587928be31c
[ "MIT" ]
17
2019-04-25T20:20:57.000Z
2022-03-29T21:48:35.000Z
app/blogging/routes.py
Sjors/patron
a496097ad0821b677c8e710e8aceb587928be31c
[ "MIT" ]
17
2019-01-02T06:37:11.000Z
2022-03-29T22:22:40.000Z
from app.blogging import bp from datetime import datetime from flask import flash, redirect, url_for from flask_login import current_user @bp.before_request def protect(): ''' Registers new function to Flask-Blogging Blueprint that protects updates to make them only viewable by paid subscribers. ''' ...
31.521739
68
0.666207
0
0
0
0
584
0.805517
0
0
290
0.4
55e5362057afc71bf0071723cb854344bbc9e957
409
py
Python
mini_cluster_07.py
jgpattis/Desres-sars-cov-2-apo-mpro
90c07414040c0ea0bf54028e2f194d6509c8f526
[ "MIT" ]
null
null
null
mini_cluster_07.py
jgpattis/Desres-sars-cov-2-apo-mpro
90c07414040c0ea0bf54028e2f194d6509c8f526
[ "MIT" ]
null
null
null
mini_cluster_07.py
jgpattis/Desres-sars-cov-2-apo-mpro
90c07414040c0ea0bf54028e2f194d6509c8f526
[ "MIT" ]
null
null
null
#cluster data into a small amount of clusters to later pull out structures import pyemma.coordinates as coor import numpy as np sys = 'back' tica_data = coor.load('tica_data_05/back_tica_data.h5') n_clusters = 50 cl = coor.cluster_kmeans(tica_data, k=n_clusters, max_iter=50) cl.save(f'{sys}_{n_clusters}_mini_cluste...
27.266667
74
0.787286
0
0
0
0
0
0
0
0
195
0.476773
55e68ec4c6def4aa1f467b3936144273058e5304
698
py
Python
pydaily/images/tests/test_color.py
codingPingjun/pydaily
966b96db05b3170f926aeb830ca6f81093a5371a
[ "Apache-2.0" ]
null
null
null
pydaily/images/tests/test_color.py
codingPingjun/pydaily
966b96db05b3170f926aeb830ca6f81093a5371a
[ "Apache-2.0" ]
null
null
null
pydaily/images/tests/test_color.py
codingPingjun/pydaily
966b96db05b3170f926aeb830ca6f81093a5371a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os, sys, pdb from pydaily.images import graymask2rgb from pydaily import DATA_DIR import numpy as np from scipy import misc import matplotlib.pyplot as plt def test_graymask2rgb(): mask_img_path = os.path.join(DATA_DIR, "input/thyroid/mask/1273169.png") assert os.path.exists(ma...
24.068966
85
0.694842
0
0
0
0
0
0
0
0
111
0.159026
55e92561b0ff7599f7ae6a6d6d8a27dbdab535a8
63
py
Python
reqinstall/commands/freeze/__init__.py
QualiSystems/reqinstall
57268b185428b31368cb7246a20a6c7548fb44dc
[ "MIT" ]
null
null
null
reqinstall/commands/freeze/__init__.py
QualiSystems/reqinstall
57268b185428b31368cb7246a20a6c7548fb44dc
[ "MIT" ]
null
null
null
reqinstall/commands/freeze/__init__.py
QualiSystems/reqinstall
57268b185428b31368cb7246a20a6c7548fb44dc
[ "MIT" ]
null
null
null
from reqinstall.commands.freeze.freeze import PipFreezeCommand
31.5
62
0.888889
0
0
0
0
0
0
0
0
0
0
55ea56448f1d5c8396e0645cb61cbcf3e70761cc
1,784
py
Python
scripts/configure.py
materialdigital/pmd-server
fdc12fe3865e7783046ab5c50f00b71aceb07ebd
[ "BSD-3-Clause" ]
1
2021-07-05T21:54:44.000Z
2021-07-05T21:54:44.000Z
scripts/configure.py
materialdigital/pmd-server
fdc12fe3865e7783046ab5c50f00b71aceb07ebd
[ "BSD-3-Clause" ]
8
2021-06-14T15:03:06.000Z
2022-01-26T15:48:03.000Z
scripts/configure.py
materialdigital/pmd-server
fdc12fe3865e7783046ab5c50f00b71aceb07ebd
[ "BSD-3-Clause" ]
3
2021-10-01T12:07:50.000Z
2021-11-22T10:59:44.000Z
#! /usr/bin/env python3 import json, sys, argparse from os.path import isfile # ****************************************************************************** parser = argparse.ArgumentParser(description='Reads config.json and writes out docker-environment files.') parser.add_argument('file', nargs='?', help='option...
33.037037
108
0.570628
0
0
0
0
0
0
0
0
561
0.314462
55eab24c8b73ac11d50c210b2451b3c1e941b6bd
676
py
Python
src/lib/jianshu_parser/jianshuparser.py
eebook/jianshu2e-book
d638fb8c2f47cf8e91e9f74e2e1e5f61f3c98a48
[ "MIT" ]
7
2019-01-02T14:52:48.000Z
2021-11-05T06:11:46.000Z
src/lib/jianshu_parser/jianshuparser.py
knarfeh/jianshu2e-book
d638fb8c2f47cf8e91e9f74e2e1e5f61f3c98a48
[ "MIT" ]
2
2021-03-22T17:11:32.000Z
2021-12-13T19:36:17.000Z
src/lib/jianshu_parser/jianshuparser.py
ee-book/jianshu2e-book
d638fb8c2f47cf8e91e9f74e2e1e5f61f3c98a48
[ "MIT" ]
2
2019-04-18T05:44:24.000Z
2021-06-10T09:35:44.000Z
# -*- coding: utf-8 -*- from bs4 import BeautifulSoup from src.lib.jianshu_parser.base import BaseParser from src.lib.jianshu_parser.content.JianshuAuthor import JianshuAuthorInfo from src.lib.jianshu_parser.content.JianshuArticle import JianshuArticle class JianshuParser(BaseParser): u""" 获得jianshu_info表中所...
28.166667
74
0.724852
447
0.634943
0
0
0
0
0
0
115
0.163352
55ebf274b2c9e17190671385e32d419938db93a1
306
py
Python
vox/utils/__init__.py
DSciLab/voxpy
4d06ffc9a52f4a2ae1eaacda7da998e75d0cc4aa
[ "MIT" ]
null
null
null
vox/utils/__init__.py
DSciLab/voxpy
4d06ffc9a52f4a2ae1eaacda7da998e75d0cc4aa
[ "MIT" ]
null
null
null
vox/utils/__init__.py
DSciLab/voxpy
4d06ffc9a52f4a2ae1eaacda7da998e75d0cc4aa
[ "MIT" ]
null
null
null
import numpy as np from .one_hot import one_hot from .rescale import LinearNormRescale255, \ CentralNormRescale255, \ GeneralNormRescale255 def threhold_seg(inp, th=0.5): inp_ = np.copy(inp) inp_[inp_>0.5] = 1.0 inp_[inp_<=0.5] = 0.0 return inp_
23.538462
45
0.611111
0
0
0
0
0
0
0
0
0
0
55ec22a317bb062a3d79bbd46b18d734b28581cf
58
py
Python
minimally_sufficient_pandas/__init__.py
dexplo/minimally_sufficient_pandas
d07710f03daa757f5778aa66ee68952d03467809
[ "BSD-3-Clause" ]
null
null
null
minimally_sufficient_pandas/__init__.py
dexplo/minimally_sufficient_pandas
d07710f03daa757f5778aa66ee68952d03467809
[ "BSD-3-Clause" ]
null
null
null
minimally_sufficient_pandas/__init__.py
dexplo/minimally_sufficient_pandas
d07710f03daa757f5778aa66ee68952d03467809
[ "BSD-3-Clause" ]
null
null
null
from ._pandas_accessor import _MSP __version__ = '0.0.1'
14.5
34
0.758621
0
0
0
0
0
0
0
0
7
0.12069
55ecaf06199d8ec889aab34a7ac5ad6a8dc82793
350
py
Python
src/rl/genotypes.py
xkp793003821/nas-segm-pytorch
c4b59ab56bd539bf08493c6d85072849213a3d62
[ "BSD-2-Clause" ]
null
null
null
src/rl/genotypes.py
xkp793003821/nas-segm-pytorch
c4b59ab56bd539bf08493c6d85072849213a3d62
[ "BSD-2-Clause" ]
null
null
null
src/rl/genotypes.py
xkp793003821/nas-segm-pytorch
c4b59ab56bd539bf08493c6d85072849213a3d62
[ "BSD-2-Clause" ]
null
null
null
"""List of operations""" from collections import namedtuple Genotype = namedtuple('Genotype', 'encoder decoder') OP_NAMES = [ 'conv1x1', 'conv3x3', 'sep_conv_3x3', 'sep_conv_5x5', 'global_average_pool', 'conv3x3_dil3', 'conv3x3_dil12', 'sep_conv_3x3_dil3', 'sep_conv_5x5_dil6', ...
17.5
52
0.648571
0
0
0
0
0
0
0
0
205
0.585714
55ece9e5b9ea1cfd57bf781ef73ac983e830b9f2
391
py
Python
solutions/python3/1089.py
sm2774us/amazon_interview_prep_2021
f580080e4a6b712b0b295bb429bf676eb15668de
[ "MIT" ]
42
2020-08-02T07:03:49.000Z
2022-03-26T07:50:15.000Z
solutions/python3/1089.py
ajayv13/leetcode
de02576a9503be6054816b7444ccadcc0c31c59d
[ "MIT" ]
null
null
null
solutions/python3/1089.py
ajayv13/leetcode
de02576a9503be6054816b7444ccadcc0c31c59d
[ "MIT" ]
40
2020-02-08T02:50:24.000Z
2022-03-26T15:38:10.000Z
class Solution: def duplicateZeros(self, arr: List[int]) -> None: """ Do not return anything, modify arr in-place instead. """ i = 0 for num in list(arr): if i >= len(arr): break arr[i] = num if not num: i += 1 ...
27.928571
60
0.398977
391
1
0
0
0
0
0
0
76
0.194373
55ed312dab5a46153b2af52c1c2cf41104214f04
2,284
py
Python
tools/download_typed_ast.py
hugovk/typed_ast
8eed936014f81a55a3e17310629c40c0203327c3
[ "Apache-2.0" ]
null
null
null
tools/download_typed_ast.py
hugovk/typed_ast
8eed936014f81a55a3e17310629c40c0203327c3
[ "Apache-2.0" ]
null
null
null
tools/download_typed_ast.py
hugovk/typed_ast
8eed936014f81a55a3e17310629c40c0203327c3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Hacky script to download linux and windows typed_ast wheels from appveyor and gcloud import os import os.path import json import sys from urllib.request import urlopen # Appveyor download for windows wheels api_url = 'https://ci.appveyor.com/api/' def get_json(path): url = api_url + path...
28.911392
121
0.652802
0
0
0
0
0
0
0
0
641
0.280648
55ee2be125f56e9339bd29f2a5e248d4c0042d7f
220
py
Python
Contest/Keyence2021/a/main.py
mpses/AtCoder
9c101fcc0a1394754fcf2385af54b05c30a5ae2a
[ "CC0-1.0" ]
null
null
null
Contest/Keyence2021/a/main.py
mpses/AtCoder
9c101fcc0a1394754fcf2385af54b05c30a5ae2a
[ "CC0-1.0" ]
null
null
null
Contest/Keyence2021/a/main.py
mpses/AtCoder
9c101fcc0a1394754fcf2385af54b05c30a5ae2a
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 (n,), a, b = [[*map(int, o.split())] for o in open(0)] from itertools import* *A, = accumulate(a, max) print(ans := a[0] * b[0]) for i in range(1, n): ans = max(ans, A[i] * b[i]) print(ans)
27.5
54
0.554545
0
0
0
0
0
0
0
0
22
0.1
55efeb23d40cb01ba113e0e658a5c2e41b236597
10,879
py
Python
service.py
ViscaElAyush/CSE598
8e95436015d466d168005846473e9e3978423913
[ "MIT" ]
35
2020-10-31T20:21:01.000Z
2022-01-29T18:28:44.000Z
service.py
ViscaElAyush/CSE598
8e95436015d466d168005846473e9e3978423913
[ "MIT" ]
null
null
null
service.py
ViscaElAyush/CSE598
8e95436015d466d168005846473e9e3978423913
[ "MIT" ]
10
2021-01-10T18:40:03.000Z
2022-02-09T04:19:27.000Z
#!/usr/bin/env python # @author Simon Stepputtis <[email protected]>, Interactive Robotics Lab, Arizona State University from __future__ import absolute_import, division, print_function, unicode_literals import sys import rclpy from policy_translation.srv import NetworkPT, TuneNetwork from model_src.model import Poli...
40.593284
165
0.603364
9,210
0.846585
0
0
0
0
0
0
1,393
0.128045
55f05ed10bf6e796822641491b85dc1b12b2b7ba
375
py
Python
model/pet_breed.py
IDRISSOUM/hospital_management
56a768f29269a77bc890d40479a8aacb90867189
[ "Unlicense" ]
null
null
null
model/pet_breed.py
IDRISSOUM/hospital_management
56a768f29269a77bc890d40479a8aacb90867189
[ "Unlicense" ]
null
null
null
model/pet_breed.py
IDRISSOUM/hospital_management
56a768f29269a77bc890d40479a8aacb90867189
[ "Unlicense" ]
null
null
null
# # -*- coding: utf-8 -*- # # Part of BrowseInfo. See LICENSE file for full copyright and licensing details. # # from odoo import api, fields, models, _ # # class pet_breed(models.Model): # _name = 'pet.breed' # # name = fields.Char('Name', required = True) # code = fields.Char('Code') # # # # vim:expa...
28.846154
82
0.653333
0
0
0
0
0
0
0
0
363
0.968
55f120e7cddd6dd7d7bb9b4780eee99d7d17ddcc
797
py
Python
src/fireo/utils/utils.py
jshep23/FireO
f4ccac8461bcf821ae9665a942847aa9f28ee92b
[ "Apache-2.0" ]
null
null
null
src/fireo/utils/utils.py
jshep23/FireO
f4ccac8461bcf821ae9665a942847aa9f28ee92b
[ "Apache-2.0" ]
null
null
null
src/fireo/utils/utils.py
jshep23/FireO
f4ccac8461bcf821ae9665a942847aa9f28ee92b
[ "Apache-2.0" ]
null
null
null
import re from google.cloud import firestore def collection_name(model): return re.sub('(?!^)([A-Z]+)', r'_\1', model).lower() def ref_path(key): return key.split('/') def collection_path(key): return '/'.join(key.split('/')[:-1]) def get_parent(key): return collection_path(key) def get_paren...
18.97619
76
0.61606
0
0
0
0
0
0
0
0
39
0.048934
55f43053f0d67231d40b9280a1fec18d43d92658
169
py
Python
src/rlib/debug.py
SOM-st/PySOM
65ef72f44252439b724a7429408dac7f8d1b1d98
[ "MIT" ]
22
2015-10-29T05:11:06.000Z
2022-03-01T11:18:45.000Z
src/rlib/debug.py
smarr/PySOM
65ef72f44252439b724a7429408dac7f8d1b1d98
[ "MIT" ]
16
2021-03-07T22:09:33.000Z
2021-08-24T12:36:15.000Z
src/rlib/debug.py
SOM-st/PySOM
65ef72f44252439b724a7429408dac7f8d1b1d98
[ "MIT" ]
5
2015-01-02T03:51:29.000Z
2020-10-02T07:05:46.000Z
try: from rpython.rlib.debug import make_sure_not_resized # pylint: disable=W except ImportError: "NOT_RPYTHON" def make_sure_not_resized(_): pass
21.125
77
0.715976
0
0
0
0
0
0
0
0
32
0.189349
55f5635ca095ac94e1e398b32c7f23cd1b5b52ae
12,173
py
Python
emr_eks_cdk/studio_live_stack.py
aws-samples/aws-cdk-for-emr-on-eks
20c51b8c845172ea77ee4e1dbde7ffd41cad427a
[ "MIT-0" ]
9
2021-03-23T06:01:32.000Z
2021-12-28T09:01:45.000Z
emr_eks_cdk/studio_live_stack.py
aws-samples/aws-cdk-for-emr-on-eks
20c51b8c845172ea77ee4e1dbde7ffd41cad427a
[ "MIT-0" ]
2
2021-07-27T09:53:04.000Z
2021-08-05T04:55:15.000Z
emr_eks_cdk/studio_live_stack.py
aws-samples/aws-cdk-for-emr-on-eks
20c51b8c845172ea77ee4e1dbde7ffd41cad427a
[ "MIT-0" ]
9
2021-03-23T06:01:31.000Z
2021-12-29T14:03:14.000Z
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: MIT-0 from aws_cdk import aws_ec2 as ec2, aws_eks as eks, core, aws_emrcontainers as emrc, aws_iam as iam, aws_s3 as s3, custom_resources as custom, aws_acmpca as acmpca, aws_emr as emr """ This stack deploys the following...
43.78777
179
0.559271
11,834
0.972151
0
0
0
0
0
0
5,507
0.452395
55f657ac810bd7adff3d28ddcf6b426dbce9f289
291
py
Python
dev/user-agent-stacktrace/lib/utils.py
Katharine/apisnoop
46c0e101c6e1e13a783f5022a6f77787c0824032
[ "Apache-2.0" ]
null
null
null
dev/user-agent-stacktrace/lib/utils.py
Katharine/apisnoop
46c0e101c6e1e13a783f5022a6f77787c0824032
[ "Apache-2.0" ]
13
2018-08-21T04:00:44.000Z
2019-07-03T22:36:07.000Z
dev/user-agent-stacktrace/lib/utils.py
Katharine/apisnoop
46c0e101c6e1e13a783f5022a6f77787c0824032
[ "Apache-2.0" ]
1
2019-05-09T18:47:22.000Z
2019-05-09T18:47:22.000Z
from collections import defaultdict def defaultdicttree(): return defaultdict(defaultdicttree) def defaultdict_to_dict(d): if isinstance(d, defaultdict): new_d = {} for k, v in d.items(): new_d[k] = defaultdict_to_dict(v) d = new_d return d
22.384615
45
0.639175
0
0
0
0
0
0
0
0
0
0
55f6b77678597fe15229ac3cf620e327925c88f6
1,217
py
Python
WebMirror/management/rss_parser_funcs/feed_parse_extractKaedesan721TumblrCom.py
fake-name/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
193
2016-08-02T22:04:35.000Z
2022-03-09T20:45:41.000Z
WebMirror/management/rss_parser_funcs/feed_parse_extractKaedesan721TumblrCom.py
fake-name/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
533
2016-08-23T20:48:23.000Z
2022-03-28T15:55:13.000Z
WebMirror/management/rss_parser_funcs/feed_parse_extractKaedesan721TumblrCom.py
rrosajp/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
19
2015-08-13T18:01:08.000Z
2021-07-12T17:13:09.000Z
def extractKaedesan721TumblrCom(item): ''' Parser for 'kaedesan721.tumblr.com' ''' bad_tags = [ 'FanArt', "htr asks", 'Spanish translations', 'htr anime','my thoughts', 'Cats', 'answered', 'ask meme', 'relay convos', 'translation related post', 'nightmare fuel', '...
26.456522
105
0.576828
0
0
0
0
0
0
0
0
491
0.403451
55f710f1ba87dd022df6c57369e502a39ab22bee
8,244
py
Python
l0bnb/tree.py
rahulmaz/L0BnB
72c262581dd2d7e1489668c2fb2052214b6bbcdd
[ "MIT" ]
1
2020-04-16T03:40:36.000Z
2020-04-16T03:40:36.000Z
l0bnb/tree.py
rahulmaz/L0BnB
72c262581dd2d7e1489668c2fb2052214b6bbcdd
[ "MIT" ]
1
2020-04-16T04:12:12.000Z
2020-04-16T04:12:12.000Z
l0bnb/tree.py
rahulmaz/L0BnB
72c262581dd2d7e1489668c2fb2052214b6bbcdd
[ "MIT" ]
1
2020-04-16T03:42:19.000Z
2020-04-16T03:42:19.000Z
import time import queue import sys import numpy as np from scipy import optimize as sci_opt from .node import Node from .utilities import branch, is_integral class BNBTree: def __init__(self, x, y, inttol=1e-4, reltol=1e-4): """ Initiate a BnB Tree to solve the least squares regression problem ...
37.135135
81
0.533236
8,080
0.980107
0
0
0
0
0
0
2,788
0.338185
55f78570dc2c54902bbba417e6ce4621cf9434e6
1,819
py
Python
miniGithub/migrations/0003_auto_20200119_0955.py
stefan096/UKS
aeabe6a9995143c006ad4143e8e876a102e9d69b
[ "MIT" ]
null
null
null
miniGithub/migrations/0003_auto_20200119_0955.py
stefan096/UKS
aeabe6a9995143c006ad4143e8e876a102e9d69b
[ "MIT" ]
36
2020-01-12T17:00:23.000Z
2020-03-21T13:25:28.000Z
miniGithub/migrations/0003_auto_20200119_0955.py
stefan096/UKS
aeabe6a9995143c006ad4143e8e876a102e9d69b
[ "MIT" ]
null
null
null
# Generated by Django 3.0.2 on 2020-01-19 09:55 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('miniGithub', '0002_proje...
41.340909
206
0.632216
1,660
0.912589
0
0
0
0
0
0
331
0.181968
55f7fc91f85571caa12221e2e54d28b60ea32a14
4,468
py
Python
megatron/model/gpt_model.py
vat99/Megatron-LM
fd61ae95aa8f3f41aa970cb86e943a7e5bfe0d1a
[ "MIT" ]
1
2022-03-29T09:16:39.000Z
2022-03-29T09:16:39.000Z
megatron/model/gpt_model.py
vat99/Megatron-LM
fd61ae95aa8f3f41aa970cb86e943a7e5bfe0d1a
[ "MIT" ]
5
2022-01-20T08:06:03.000Z
2022-03-10T10:01:32.000Z
megatron/model/gpt_model.py
vat99/Megatron-LM
fd61ae95aa8f3f41aa970cb86e943a7e5bfe0d1a
[ "MIT" ]
1
2022-03-25T12:00:47.000Z
2022-03-25T12:00:47.000Z
# coding=utf-8 # Copyright (c) 2020, NVIDIA CORPORATION. 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 re...
35.744
81
0.660922
2,894
0.647717
0
0
0
0
0
0
790
0.176813
55f88475538cbd35f162e1da477042bc863348a2
67
py
Python
python/testData/inspections/PyMethodMayBeStaticInspection/documentedEmpty.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2018-12-29T09:53:39.000Z
2018-12-29T09:53:42.000Z
python/testData/inspections/PyMethodMayBeStaticInspection/documentedEmpty.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/inspections/PyMethodMayBeStaticInspection/documentedEmpty.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
class A: def foo(self): """Do something""" pass
16.75
26
0.462687
67
1
0
0
0
0
0
0
18
0.268657
55f89e67422221688251900fa69112d9cc2e2083
5,324
py
Python
tests/utest/test_default_config.py
ngoan1608/robotframework-robocop
3444bbc98102f74ebae08dcb26cd63346f9ed03e
[ "Apache-2.0" ]
2
2021-12-22T01:50:52.000Z
2022-01-05T06:32:27.000Z
tests/utest/test_default_config.py
marcel-veselka/robotframework-robocop
4711c0dd389baa2d0346e62e1fda3c02c2dcc73b
[ "Apache-2.0" ]
null
null
null
tests/utest/test_default_config.py
marcel-veselka/robotframework-robocop
4711c0dd389baa2d0346e62e1fda3c02c2dcc73b
[ "Apache-2.0" ]
1
2021-06-30T11:01:51.000Z
2021-06-30T11:01:51.000Z
import os import sys import importlib from pathlib import Path from unittest.mock import patch import pytest import robocop.config from robocop.exceptions import InvalidArgumentError @pytest.fixture def config(): return robocop.config.Config() @pytest.fixture def path_to_test_data(): return Path(Path(__fi...
42.592
116
0.646506
4,967
0.932945
0
0
163
0.030616
0
0
1,184
0.222389
55f8affa309482626692f2a65c9326ebb9be7625
646
py
Python
tests/test_forms.py
haoziyeung/elasticstack
1fb4eb46317b402e0617badbc9034fb411a39992
[ "BSD-2-Clause" ]
2
2020-11-23T11:03:03.000Z
2020-11-23T11:03:31.000Z
tests/test_forms.py
haoziyeung/elasticstack
1fb4eb46317b402e0617badbc9034fb411a39992
[ "BSD-2-Clause" ]
null
null
null
tests/test_forms.py
haoziyeung/elasticstack
1fb4eb46317b402e0617badbc9034fb411a39992
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_elasticstack ------------ Tests for `elasticstack` forms module. """ from django import forms from django.test import TestCase from elasticstack.forms import SearchForm class TestForms(TestCase): def test_named_search_field(self): """Ensure that ...
21.533333
62
0.633127
415
0.642415
0
0
0
0
0
0
206
0.318885
55fa09f3a8c3fad0ee952c33bd12012b56fb9d68
668
py
Python
AnkiIn/notetypes/ListCloze.py
Clouder0/AnkiIn
ca944bb9f79ce49bc2db62a0bfaeffe7908b48da
[ "MIT" ]
1
2021-07-04T08:10:53.000Z
2021-07-04T08:10:53.000Z
AnkiIn/notetypes/ListCloze.py
Clouder0/AnkiIn
ca944bb9f79ce49bc2db62a0bfaeffe7908b48da
[ "MIT" ]
35
2021-07-03T10:50:20.000Z
2022-01-09T09:33:17.000Z
AnkiIn/notetypes/ListCloze.py
Clouder0/AnkiIn
ca944bb9f79ce49bc2db62a0bfaeffe7908b48da
[ "MIT" ]
2
2021-08-21T11:33:00.000Z
2021-10-15T18:59:33.000Z
from .Cloze import get as cget from ..config import dict as conf from ..config import config_updater notetype_name = "ListCloze" if notetype_name not in conf["notetype"]: conf["notetype"][notetype_name] = {} settings = conf["notetype"][notetype_name] priority = None def update_list_cloze_config(): global s...
23.034483
66
0.712575
0
0
0
0
0
0
0
0
60
0.08982
55fadfd4280d478b35858e331edea1ce48c5383a
9,697
py
Python
app/routes.py
ptkaczyk/Ithacartists
0d8effafe64b29ae1756169cac1eb4d6bc980c1d
[ "MIT" ]
null
null
null
app/routes.py
ptkaczyk/Ithacartists
0d8effafe64b29ae1756169cac1eb4d6bc980c1d
[ "MIT" ]
null
null
null
app/routes.py
ptkaczyk/Ithacartists
0d8effafe64b29ae1756169cac1eb4d6bc980c1d
[ "MIT" ]
null
null
null
from flask import render_template, Flask, flash, redirect, url_for, abort, request from flask_login import login_user, logout_user, login_required from werkzeug.urls import url_parse from app import app, db from app.forms import * from app.models import * @app.route('/') @app.route('/landing') def landing(): ret...
42.530702
191
0.662267
0
0
0
0
9,400
0.969372
0
0
1,800
0.185624
55fb46ee1813e2c980cdc6a6a49ca860bf41a84e
2,861
py
Python
src/bloombox/schema/services/devices/v1beta1/DevicesService_Beta1_pb2_grpc.py
Bloombox/Python
1b125fbdf54efb390afe12aaa966f093218c4387
[ "Apache-2.0" ]
4
2018-01-23T20:13:11.000Z
2018-07-28T22:36:09.000Z
src/bloombox/schema/services/devices/v1beta1/DevicesService_Beta1_pb2_grpc.py
Bloombox/Python
1b125fbdf54efb390afe12aaa966f093218c4387
[ "Apache-2.0" ]
159
2018-02-02T09:55:52.000Z
2021-07-21T23:41:59.000Z
src/bloombox/schema/services/devices/v1beta1/DevicesService_Beta1_pb2_grpc.py
Bloombox/Python
1b125fbdf54efb390afe12aaa966f093218c4387
[ "Apache-2.0" ]
3
2018-01-23T20:13:15.000Z
2020-01-17T01:07:53.000Z
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc from devices.v1beta1 import DevicesService_Beta1_pb2 as devices_dot_v1beta1_dot_DevicesService__Beta1__pb2 class DevicesStub(object): """Specifies the devices service, which enables managed devices to check-in, authorize themselves, ...
42.701493
119
0.774205
1,757
0.614121
0
0
0
0
0
0
921
0.321915
55fb9d49fcf1a873c80991e0f909fcb04543c2ba
10,052
py
Python
oslo-modules/oslo_messaging/_drivers/amqp.py
esse-io/zen-common
8ede82ab81bad53c3b947084b812c44e329f159b
[ "Apache-2.0" ]
1
2021-02-17T15:30:45.000Z
2021-02-17T15:30:45.000Z
oslo-modules/oslo_messaging/_drivers/amqp.py
esse-io/zen-common
8ede82ab81bad53c3b947084b812c44e329f159b
[ "Apache-2.0" ]
null
null
null
oslo-modules/oslo_messaging/_drivers/amqp.py
esse-io/zen-common
8ede82ab81bad53c3b947084b812c44e329f159b
[ "Apache-2.0" ]
2
2015-11-03T03:21:55.000Z
2015-12-01T08:56:14.000Z
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # Copyright 2011 - 2012, Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance w...
37.092251
78
0.643355
5,096
0.506964
0
0
0
0
0
0
4,990
0.496419
55fbb1e9d0d4e9b678c1d12c81f6b84f0a9bebb8
1,551
py
Python
scripts/agenda.py
benjaminogles/vim-head
be3e01b53d314b6f7e0d72a736fe40f38de2cf5f
[ "MIT" ]
3
2020-04-13T17:47:05.000Z
2020-05-11T17:23:02.000Z
scripts/agenda.py
benjaminogles/vim-head
be3e01b53d314b6f7e0d72a736fe40f38de2cf5f
[ "MIT" ]
3
2020-04-13T16:51:27.000Z
2020-04-13T16:53:54.000Z
scripts/agenda.py
benjaminogles/vim-head
be3e01b53d314b6f7e0d72a736fe40f38de2cf5f
[ "MIT" ]
null
null
null
#!/bin/python3 import datetime import itertools import sys from heading import * days = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'] def priority_key(): weights = {} sep = KEYWORDS.index('|') for keyword in KEYWORDS[sep+1:]: weights[keyword] = len(KEYWORDS) idx = 1 while idx <= sep:...
27.210526
110
0.617666
0
0
0
0
0
0
0
0
106
0.068343
55fbb54a4881fb0eed71b1a082583ae85646db84
5,635
py
Python
clusterpy/core/toolboxes/cluster/componentsAlg/areamanager.py
CentroGeo/clusterpy_python3
5c2600b048836e54495dc5997a250af72f72f6e7
[ "BSD-3-Clause" ]
3
2019-09-29T15:27:57.000Z
2021-01-23T02:05:07.000Z
clusterpy/core/toolboxes/cluster/componentsAlg/areamanager.py
CentroGeo/clusterpy_python3
5c2600b048836e54495dc5997a250af72f72f6e7
[ "BSD-3-Clause" ]
null
null
null
clusterpy/core/toolboxes/cluster/componentsAlg/areamanager.py
CentroGeo/clusterpy_python3
5c2600b048836e54495dc5997a250af72f72f6e7
[ "BSD-3-Clause" ]
null
null
null
# encoding: latin2 """Algorithm utilities G{packagetree core} """ from __future__ import division from __future__ import print_function from __future__ import absolute_import from builtins import range from builtins import object from past.utils import old_div __author__ = "Juan C. Duque" __credits__ = "Copyright (c) 2...
33.343195
132
0.546584
5,091
0.903461
0
0
0
0
0
0
1,555
0.275954
55fc362ece90946015f4b5b227a527251bc8be9e
1,463
py
Python
geolocator.py
Kugeleis/TeslaInventoryChecker
93b6e8e2885bf8e0c15942e940d5d5626754f7a8
[ "MIT" ]
7
2021-08-13T16:46:32.000Z
2021-12-23T17:54:33.000Z
geolocator.py
Kugeleis/TeslaInventoryChecker
93b6e8e2885bf8e0c15942e940d5d5626754f7a8
[ "MIT" ]
null
null
null
geolocator.py
Kugeleis/TeslaInventoryChecker
93b6e8e2885bf8e0c15942e940d5d5626754f7a8
[ "MIT" ]
5
2021-08-13T04:38:05.000Z
2021-12-14T06:29:11.000Z
import http.client import json from types import SimpleNamespace def get_token(): conn = http.client.HTTPSConnection("www.tesla.com") payload = { "resource": "geocodesvc", "csrf_name": "", "csrf_value": "" } headers = { 'Content-Type': 'application/json' } conn.r...
28.686275
89
0.584416
0
0
0
0
0
0
0
0
557
0.380725
55fd77fad6026ba26284584227c80ea384f74fc0
4,942
py
Python
client/runTFpose.py
BamLubi/tf-pose_Client
07032a8b7ba80f717e74f6c893fadc6e2faa6573
[ "MIT" ]
1
2022-03-21T18:02:05.000Z
2022-03-21T18:02:05.000Z
client/runTFpose.py
BamLubi/tf-pose_Client
07032a8b7ba80f717e74f6c893fadc6e2faa6573
[ "MIT" ]
null
null
null
client/runTFpose.py
BamLubi/tf-pose_Client
07032a8b7ba80f717e74f6c893fadc6e2faa6573
[ "MIT" ]
null
null
null
import argparse import cv2 import time import numpy as np from tf_pose.estimator import TfPoseEstimator from tf_pose.networks import get_graph_path, model_wh """ 封装并调用tf-openpose项目所提供的骨架信息识别接口 """ class TFPOSE: def __init__(self): # 0. 参数 self.fps_time = 0 self.frame_count = 0 # 1....
37.439394
151
0.593484
5,131
0.948429
0
0
0
0
0
0
1,808
0.334196
55fe127a3e15c5c409ac7dd672e540ee28e8d786
413
py
Python
oldPython/driving_app.py
Awarua-/Can-I-Have-Your-Attention-COSC475-Research
71b5140b988aa6512a7cf5b5b6d043e20fd02084
[ "MIT" ]
null
null
null
oldPython/driving_app.py
Awarua-/Can-I-Have-Your-Attention-COSC475-Research
71b5140b988aa6512a7cf5b5b6d043e20fd02084
[ "MIT" ]
null
null
null
oldPython/driving_app.py
Awarua-/Can-I-Have-Your-Attention-COSC475-Research
71b5140b988aa6512a7cf5b5b6d043e20fd02084
[ "MIT" ]
null
null
null
from kivy.app import App from kivy.uix.label import Label from kivy.core.window import Window class DrivingApp(App): def build(self): Window.fullscreen = False # Need to set the size, otherwise very pixalated # wonders about pixel mapping? Window.size(1920, 1080) b = Label...
21.736842
56
0.653753
266
0.644068
0
0
0
0
0
0
106
0.256659
55fe69df7aecb356db95a682b17146dfaf4521ce
3,103
py
Python
api/src/opentrons/calibration_storage/helpers.py
faliester/opentrons
e945d0f72fed39b0f68c0b30b7afd1981644184f
[ "Apache-2.0" ]
1
2022-03-17T20:38:04.000Z
2022-03-17T20:38:04.000Z
api/src/opentrons/calibration_storage/helpers.py
faliester/opentrons
e945d0f72fed39b0f68c0b30b7afd1981644184f
[ "Apache-2.0" ]
null
null
null
api/src/opentrons/calibration_storage/helpers.py
faliester/opentrons
e945d0f72fed39b0f68c0b30b7afd1981644184f
[ "Apache-2.0" ]
null
null
null
""" opentrons.calibration_storage.helpers: various miscellaneous functions This module has functions that you can import to save robot or labware calibration to its designated file location. """ import json from typing import Union, List, Dict, TYPE_CHECKING from dataclasses import is_dataclass, asdict from hashlib ...
32.663158
79
0.684821
0
0
0
0
0
0
0
0
1,499
0.483081
55fe802b2df8f3e2a5853155117ec23bac4176ca
3,264
py
Python
scripts/OpenRobotPyxl.py
coder-cell/robotframework-openpyxl
abc839755a1e8c0208065e9c9568d7df732a6792
[ "MIT" ]
null
null
null
scripts/OpenRobotPyxl.py
coder-cell/robotframework-openpyxl
abc839755a1e8c0208065e9c9568d7df732a6792
[ "MIT" ]
null
null
null
scripts/OpenRobotPyxl.py
coder-cell/robotframework-openpyxl
abc839755a1e8c0208065e9c9568d7df732a6792
[ "MIT" ]
null
null
null
import openpyxl from robot.api.deco import keyword, library from robot.api import logger @library class OpenRobotPyxl: def __init__(self): self.active_sheet = None self.active_book = None self.path = None self.bookname = None @keyword("Create New Workbook") def create_new...
32.969697
75
0.636336
3,163
0.969056
0
0
3,172
0.971814
0
0
344
0.105392
55fec657248ea9359324a70a7e7e0fc53b322616
1,852
py
Python
club/urls.py
NSYT0607/DONGKEY
83f926f22a10a28895c9ad71038c9a27d200e231
[ "MIT" ]
1
2018-04-10T11:47:16.000Z
2018-04-10T11:47:16.000Z
club/urls.py
NSYT0607/DONGKEY
83f926f22a10a28895c9ad71038c9a27d200e231
[ "MIT" ]
null
null
null
club/urls.py
NSYT0607/DONGKEY
83f926f22a10a28895c9ad71038c9a27d200e231
[ "MIT" ]
null
null
null
from django.urls import path from . import views app_name = 'club' urlpatterns = [ path('create/', views.create_club, name='create_club'), path('update/<int:club_pk>', views.update_club, name='update_club'), path('read_admin_club/<str:club>/<int:ctg_pk>/', views.read_admin_club, name='read_admin_club_ctg...
52.914286
116
0.721922
0
0
0
0
0
0
0
0
950
0.512959
55feec79a1027ecfba7881baf9cccd2719790498
1,270
py
Python
interview_kickstart/01_sorting_algorithms/class_discussed_problems/python/0215_kth_largest_element_in_an_array.py
mrinalini-m/data_structures_and_algorithms
f9bebcca8002064e26ba5b46e47b8abedac39c3e
[ "MIT" ]
2
2020-12-18T21:42:05.000Z
2020-12-21T06:07:33.000Z
interview_kickstart/01_sorting_algorithms/class_discussed_problems/python/0215_kth_largest_element_in_an_array.py
mrinalini-m/data_structures_and_algorithms
f9bebcca8002064e26ba5b46e47b8abedac39c3e
[ "MIT" ]
null
null
null
interview_kickstart/01_sorting_algorithms/class_discussed_problems/python/0215_kth_largest_element_in_an_array.py
mrinalini-m/data_structures_and_algorithms
f9bebcca8002064e26ba5b46e47b8abedac39c3e
[ "MIT" ]
2
2020-07-04T20:30:19.000Z
2021-08-31T08:32:36.000Z
from random import randint from typing import List class Solution: def findKthLargest(self, nums: List[int], k: int) -> int: jthSmallest = len(nums) - k return self.quickSelect(nums, 0, len(nums) - 1, jthSmallest) def quickSelect(self, nums: List[int], start: int, end: int, jthSmallest: int)...
27.021277
90
0.574803
1,163
0.915748
0
0
0
0
0
0
0
0
55ff7e57e726077e74bb90a288c442b6922782cb
3,033
py
Python
termpixels/util.py
loganzartman/termpixels
4353cc0eb9f6947cd5bb8286322a8afea597d741
[ "MIT" ]
17
2019-04-11T20:05:13.000Z
2022-03-08T22:26:44.000Z
termpixels/util.py
loganzartman/termpixels
4353cc0eb9f6947cd5bb8286322a8afea597d741
[ "MIT" ]
14
2019-05-16T19:26:58.000Z
2020-10-27T09:35:02.000Z
termpixels/util.py
loganzartman/termpixels
4353cc0eb9f6947cd5bb8286322a8afea597d741
[ "MIT" ]
1
2020-12-09T16:39:44.000Z
2020-12-09T16:39:44.000Z
from unicodedata import east_asian_width, category from functools import lru_cache import re def corners_to_box(x0, y0, x1, y1): """convert two corners (x0, y0, x1, y1) to (x, y, width, height)""" x0, x1 = min(x0, x1), max(x0, x1) y0, y1 = min(y0, y1), max(y0, y1) return x0, y0, x1 - x0 + 1, y1 - y0 + ...
32.265957
76
0.574019
0
0
0
0
407
0.134191
0
0
675
0.222552
55ffa154fe658f0af46cbd92f080b7eac5967357
303
py
Python
json.py
AbhijithGanesh/Flask-HTTP-Server
78f6c6985e6ffd9f4f70738771d6fcdb802964cc
[ "BSD-3-Clause" ]
null
null
null
json.py
AbhijithGanesh/Flask-HTTP-Server
78f6c6985e6ffd9f4f70738771d6fcdb802964cc
[ "BSD-3-Clause" ]
null
null
null
json.py
AbhijithGanesh/Flask-HTTP-Server
78f6c6985e6ffd9f4f70738771d6fcdb802964cc
[ "BSD-3-Clause" ]
null
null
null
import json ''' READ THE DATABASE README before operating ''' File = r'''YOUR FILE''' with open(File,'a') as fileObj: data = json.load() ''' YOUR DATA LOGIC GOES IN HERE Once the data is changed, to write it to your JSON file use the following command. ''' json.dump(object,File)
25.25
86
0.656766
0
0
0
0
0
0
0
0
199
0.656766
3600f4551fc329b671400ff96e43cfab6f75ddb4
3,128
py
Python
slash/hooks.py
omergertel/slash
7dd5710a05822bbbaadc6c6517cefcbaa6397eab
[ "BSD-3-Clause" ]
null
null
null
slash/hooks.py
omergertel/slash
7dd5710a05822bbbaadc6c6517cefcbaa6397eab
[ "BSD-3-Clause" ]
null
null
null
slash/hooks.py
omergertel/slash
7dd5710a05822bbbaadc6c6517cefcbaa6397eab
[ "BSD-3-Clause" ]
null
null
null
import gossip from .conf import config from .utils.deprecation import deprecated def _deprecated_to_gossip(func): return deprecated(since="0.6.0", message="Use gossip instead")(func) def _define(hook_name, **kwargs): hook = gossip.define("slash.{0}".format(hook_name), **kwargs) globals()[hook_name] = ho...
34.373626
142
0.741368
0
0
0
0
1,460
0.466752
0
0
1,483
0.474105
36011f50763e2763762534e112d2a7cea6f3af2e
65
py
Python
experiments/archived/20210203/bag_model/models/__init__.py
fxnnxc/text_summarization
b8c8a5f491bc44622203602941c1514b2e006fe3
[ "Apache-2.0" ]
5
2020-10-14T02:30:44.000Z
2021-05-06T12:48:28.000Z
experiments/archived/20210119/bag_model/models/__init__.py
fxnnxc/text_summarization
b8c8a5f491bc44622203602941c1514b2e006fe3
[ "Apache-2.0" ]
2
2020-12-19T05:59:31.000Z
2020-12-22T11:05:31.000Z
experiments/archived/20210203/bag_model/models/__init__.py
fxnnxc/text_summarization
b8c8a5f491bc44622203602941c1514b2e006fe3
[ "Apache-2.0" ]
null
null
null
from .hub_interface import * # noqa from .model import * # noqa
32.5
36
0.707692
0
0
0
0
0
0
0
0
12
0.184615
360246393544aa24389fdcd4c6b8786fa1b242b5
232
py
Python
src/CodeLearn/plaintextCode/BloomTech/BTU5W1/U5W1P2_Task3_w1.py
MingjunGeng/Code-Knowledge
5b376f6b3ff9e7fa0ab41c7b57e3a80313fa0daa
[ "MIT" ]
null
null
null
src/CodeLearn/plaintextCode/BloomTech/BTU5W1/U5W1P2_Task3_w1.py
MingjunGeng/Code-Knowledge
5b376f6b3ff9e7fa0ab41c7b57e3a80313fa0daa
[ "MIT" ]
null
null
null
src/CodeLearn/plaintextCode/BloomTech/BTU5W1/U5W1P2_Task3_w1.py
MingjunGeng/Code-Knowledge
5b376f6b3ff9e7fa0ab41c7b57e3a80313fa0daa
[ "MIT" ]
1
2022-03-18T04:52:10.000Z
2022-03-18T04:52:10.000Z
#!/usr/bin/python3 # --- 001 > U5W2P1_Task3_w1 def solution(i): return float(i) if __name__ == "__main__": print('----------start------------') i = 12 print(solution( i )) print('------------end------------')
19.333333
40
0.465517
0
0
0
0
0
0
0
0
113
0.487069
3603655d64ea26fd4eb5614d884927de08638bdc
30,296
py
Python
plugins/modules/oci_sch_service_connector.py
A7rMtWE57x/oci-ansible-collection
80548243a085cd53fd5dddaa8135b5cb43612c66
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_sch_service_connector.py
A7rMtWE57x/oci-ansible-collection
80548243a085cd53fd5dddaa8135b5cb43612c66
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_sch_service_connector.py
A7rMtWE57x/oci-ansible-collection
80548243a085cd53fd5dddaa8135b5cb43612c66
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2017, 2020 Oracle and/or its affiliates. # This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Apache License v2.0 # See LICENSE.TXT for d...
41.219048
159
0.568887
3,900
0.12873
0
0
0
0
0
0
22,784
0.752046
360379edca40aaeb8a9f20994bc3b04375f6c37f
210
py
Python
Kattis/fallingapart.py
ruidazeng/online-judge
6bdf8bbf1af885637dab474d0ccb58aff22a0933
[ "MIT" ]
null
null
null
Kattis/fallingapart.py
ruidazeng/online-judge
6bdf8bbf1af885637dab474d0ccb58aff22a0933
[ "MIT" ]
null
null
null
Kattis/fallingapart.py
ruidazeng/online-judge
6bdf8bbf1af885637dab474d0ccb58aff22a0933
[ "MIT" ]
1
2020-06-22T21:07:24.000Z
2020-06-22T21:07:24.000Z
n = int(input()) intz = [int(x) for x in input().split()] alice = 0 bob = 0 for i, num in zip(range(n), sorted(intz)[::-1]): if i%2 == 0: alice += num else: bob += num print(alice, bob)
21
48
0.514286
0
0
0
0
0
0
0
0
0
0
3604769fe194e0541eba00a227334b835b8009c4
3,515
py
Python
ffnn/rbf.py
RaoulMa/NeuralNets
f49072ac88686f753f9b5815d6cc5e71d536c3d2
[ "MIT" ]
1
2017-12-03T11:06:33.000Z
2017-12-03T11:06:33.000Z
ffnn/rbf.py
RaoulMa/BasicNeuralNets
f49072ac88686f753f9b5815d6cc5e71d536c3d2
[ "MIT" ]
null
null
null
ffnn/rbf.py
RaoulMa/BasicNeuralNets
f49072ac88686f753f9b5815d6cc5e71d536c3d2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Description: Choose a set of data points as weights and calculate RBF nodes for the first layer. Those are then used as inputs for a one-layer perceptron, which gives the output """ import numpy as np import pcn class rbf: """ radial basic function """ d...
30.301724
132
0.588905
3,237
0.92091
0
0
0
0
0
0
980
0.278805
36056f0439b548a97fafa104e15d32abf2f73d7b
836
py
Python
Bot/config.py
faelbreseghello/Monsters-Bot
9432cf05451ff36c3282a2d6873577e94239e724
[ "MIT" ]
7
2020-07-13T22:31:00.000Z
2021-01-11T20:17:41.000Z
Bot/config.py
faelbreseghello/Monsters-Bot
9432cf05451ff36c3282a2d6873577e94239e724
[ "MIT" ]
1
2020-08-19T18:58:07.000Z
2020-08-19T18:58:07.000Z
Bot/config.py
faelbreseghello/Monsters-Bot
9432cf05451ff36c3282a2d6873577e94239e724
[ "MIT" ]
1
2021-01-11T21:36:08.000Z
2021-01-11T21:36:08.000Z
import datetime import os # General Token = open('../Token.txt', 'r') # The token of the bot Token = Token.read() prefix = '*' # the command prefix lang = 'en-us' # 'en-us' or 'pt-br' memes = os.listdir('../Assets/monsters_memes') # memes db load banchannel = None # the channel that will be used to ban messages # Min...
26.967742
82
0.685407
0
0
0
0
0
0
0
0
490
0.586124
3605823cc24094c58501be0321e78ef090f4367d
11,294
py
Python
postscripts/_city_transformer_postscripts.py
yasahi-hpc/CityTransformer
b285525d860b4cd522a30823351ecd3cb74dcdf3
[ "MIT" ]
null
null
null
postscripts/_city_transformer_postscripts.py
yasahi-hpc/CityTransformer
b285525d860b4cd522a30823351ecd3cb74dcdf3
[ "MIT" ]
null
null
null
postscripts/_city_transformer_postscripts.py
yasahi-hpc/CityTransformer
b285525d860b4cd522a30823351ecd3cb74dcdf3
[ "MIT" ]
null
null
null
""" Convert data and then visualize Data Manupulation 1. Save metrics for validation and test data Save figures 1. Loss curve 2. plume dispersion and errors 3. metrics """ import pathlib import numpy as np import xarray as xr from numpy import ma import matplotlib as mpl import matplotlib.pyplot as plt import matplo...
43.775194
190
0.573579
10,844
0.960156
0
0
0
0
0
0
1,675
0.148309
3606767125c21d0e6b93352716d5f01b3c40e053
664
py
Python
OrangeInstaller/OrangeInstaller/Testing.py
mcolombo87/OrangeInstaller
31486ed532409f08d3b22cd7fdb05f209e3fc3e8
[ "Apache-2.0" ]
3
2017-04-08T13:52:22.000Z
2018-10-31T20:17:20.000Z
OrangeInstaller/OrangeInstaller/Testing.py
mcolombo87/OrangeInstaller
31486ed532409f08d3b22cd7fdb05f209e3fc3e8
[ "Apache-2.0" ]
46
2017-03-16T10:20:11.000Z
2018-11-16T15:54:38.000Z
OrangeInstaller/OrangeInstaller/Testing.py
mcolombo87/OrangeInstaller
31486ed532409f08d3b22cd7fdb05f209e3fc3e8
[ "Apache-2.0" ]
1
2018-08-12T01:10:41.000Z
2018-08-12T01:10:41.000Z
from Functions import functions, systemTools import unittest import sys class systemToolsTests(unittest.TestCase): """ Class for testing """ def test_checkSystemTools(self): check = False if systemTools.isWindows() == True: check=True self.assertEqual(sys.pl...
31.619048
125
0.641566
526
0.792169
0
0
0
0
0
0
165
0.248494
36067e37b136228914619d3370100e13fb6c3ddf
61,464
py
Python
venv/lib/python3.6/site-packages/ansible_collections/cisco/iosxr/plugins/module_utils/network/iosxr/argspec/bgp_global/bgp_global.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/cisco/iosxr/plugins/module_utils/network/iosxr/argspec/bgp_global/bgp_global.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/cisco/iosxr/plugins/module_utils/network/iosxr/argspec/bgp_global/bgp_global.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2021 Red Hat # GNU General Public License v3.0+ # (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ############################################# # WARNING ...
49.647819
82
0.149974
60,778
0.988839
0
0
0
0
0
0
12,281
0.199808
36081a586f2b7afca6efc6de5e1d5480c80b61dc
7,039
py
Python
quince/ui/components/game_frame.py
DnrkasEFF/quince
89b5699a63642fd1ed172b566670b4dd8a2f8e18
[ "MIT" ]
null
null
null
quince/ui/components/game_frame.py
DnrkasEFF/quince
89b5699a63642fd1ed172b566670b4dd8a2f8e18
[ "MIT" ]
null
null
null
quince/ui/components/game_frame.py
DnrkasEFF/quince
89b5699a63642fd1ed172b566670b4dd8a2f8e18
[ "MIT" ]
null
null
null
""" The primary frame containing the content for the entire game """ import tkinter as tk import random as random from quince.utility import is_valid_pickup from quince.ronda import Ronda from quince.ui.components.opponents.opponent_frame \ import OpponentFrameHorizontal, OpponentFrameVertical from quince.ui.compon...
37.844086
79
0.574513
6,621
0.940617
0
0
0
0
0
0
1,536
0.218213
360825b11a2ba8661131f351d015f5a8ff5ce829
263
py
Python
Python_Projects/numeric/lossofsignificance.py
arifBurakDemiray/TheCodesThatIWrote
17d7bc81c516ec97110d0749e9c19d5e6ef9fc88
[ "MIT" ]
1
2019-11-01T20:18:06.000Z
2019-11-01T20:18:06.000Z
Python_Projects/numeric/lossofsignificance.py
arifBurakDemiray/TheCodesThatIWrote
17d7bc81c516ec97110d0749e9c19d5e6ef9fc88
[ "MIT" ]
null
null
null
Python_Projects/numeric/lossofsignificance.py
arifBurakDemiray/TheCodesThatIWrote
17d7bc81c516ec97110d0749e9c19d5e6ef9fc88
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Apr 13 13:35:33 2020 """ #for finding loss of significances x=1e-1 flag = True a=0 while (flag): print (((2*x)/(1-(x**2))),"......",(1/(1+x))-(1/(1-x))) x= x*(1e-1) a=a+1 if(a==25): flag=False
14.611111
59
0.48289
0
0
0
0
0
0
0
0
110
0.418251
36087ed60369c020bd543832aa6b41bed88a5c17
100
py
Python
easyfl/test.py
weimingwill/easyfl-pypi
f9135ab14f8d486d4a1065fa62ade43fa14490a5
[ "MIT" ]
2
2021-11-08T12:24:06.000Z
2021-11-08T12:24:33.000Z
easyfl/test.py
weimingwill/easyfl-pypi
f9135ab14f8d486d4a1065fa62ade43fa14490a5
[ "MIT" ]
null
null
null
easyfl/test.py
weimingwill/easyfl-pypi
f9135ab14f8d486d4a1065fa62ade43fa14490a5
[ "MIT" ]
null
null
null
class Test: def __init__(self): pass def hi(self): print("hello world")
16.666667
28
0.52
100
1
0
0
0
0
0
0
13
0.13
360a23f4d6f5c86eb8c653834fc1cf467b915bfa
6,479
py
Python
alphamind/model/treemodel.py
atefar2/alpha-mind
66d839affb5d81d31d5cac7e5e224278e3f99a8b
[ "MIT" ]
1
2020-05-18T20:57:25.000Z
2020-05-18T20:57:25.000Z
alphamind/model/treemodel.py
atefar2/alpha-mind
66d839affb5d81d31d5cac7e5e224278e3f99a8b
[ "MIT" ]
null
null
null
alphamind/model/treemodel.py
atefar2/alpha-mind
66d839affb5d81d31d5cac7e5e224278e3f99a8b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on 2017-12-4 @author: cheng.li """ import arrow import numpy as np import pandas as pd import xgboost as xgb from sklearn.ensemble import RandomForestClassifier as RandomForestClassifierImpl from sklearn.ensemble import RandomForestRegressor as RandomForestRegressorImpl from sklear...
36.60452
91
0.515666
5,937
0.916345
0
0
529
0.081648
0
0
286
0.044143