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
ada4fe020a9277ea274b6aa23f3bc9a49595bbe7
430
py
Python
angr/procedures/libc/tolower.py
mariusmue/angr
f8304c4b1f0097a721a6692b02a45cabaae137c5
[ "BSD-2-Clause" ]
2
2018-12-03T23:14:56.000Z
2018-12-03T23:15:57.000Z
angr/procedures/libc/tolower.py
mariusmue/angr
f8304c4b1f0097a721a6692b02a45cabaae137c5
[ "BSD-2-Clause" ]
null
null
null
angr/procedures/libc/tolower.py
mariusmue/angr
f8304c4b1f0097a721a6692b02a45cabaae137c5
[ "BSD-2-Clause" ]
1
2019-08-07T01:42:01.000Z
2019-08-07T01:42:01.000Z
import angr from angr.sim_type import SimTypeInt import logging l = logging.getLogger("angr.procedures.libc.tolower") class tolower(angr.SimProcedure): def run(self, c): self.argument_types = {0: SimTypeInt(self.state.arch, True)} self.return_type = SimTypeInt(self.state.arch, True) retu...
26.875
68
0.644186
308
0.716279
0
0
0
0
0
0
37
0.086047
ada57bfdb85d2618a08b453ff23946dc9309abc3
54,652
py
Python
tests/main/views/test_agreements.py
uk-gov-mirror/alphagov.digitalmarketplace-api
5a1db63691d0c4a435714837196ab6914badaf62
[ "MIT" ]
25
2015-01-14T10:45:13.000Z
2021-05-26T17:21:41.000Z
tests/main/views/test_agreements.py
uk-gov-mirror/alphagov.digitalmarketplace-api
5a1db63691d0c4a435714837196ab6914badaf62
[ "MIT" ]
641
2015-01-15T11:10:50.000Z
2021-06-15T22:18:42.000Z
tests/main/views/test_agreements.py
uk-gov-mirror/alphagov.digitalmarketplace-api
5a1db63691d0c4a435714837196ab6914badaf62
[ "MIT" ]
22
2015-06-13T15:37:45.000Z
2021-08-19T23:40:49.000Z
import json from datetime import datetime from freezegun import freeze_time from app.models import AuditEvent, db, Framework, FrameworkAgreement, User from tests.helpers import fixture_params from tests.bases import BaseApplicationTest class BaseFrameworkAgreementTest(BaseApplicationTest): def create_agreement(se...
43.443561
120
0.633701
54,157
0.990943
0
0
32,169
0.588615
0
0
15,123
0.276714
ada5b4e2e79745c1f0c6eb7cbb06b9a0a87a5231
4,730
py
Python
linear_regression_boston_housing.py
coherent17/boston_housing_linear_regression
a4610fa61a52d0433540c1b9d9e0a59ce003d3b4
[ "MIT" ]
null
null
null
linear_regression_boston_housing.py
coherent17/boston_housing_linear_regression
a4610fa61a52d0433540c1b9d9e0a59ce003d3b4
[ "MIT" ]
null
null
null
linear_regression_boston_housing.py
coherent17/boston_housing_linear_regression
a4610fa61a52d0433540c1b9d9e0a59ce003d3b4
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import pandas as pd import seaborn as sns from sklearn.datasets import load_boston from sklearn.model_selection import train_test_split from sklearn.linear_model import LinearRegression from sklearn.metrics import mean_squared_error from sklearn.metrics import r2_score...
45.047619
126
0.658562
0
0
0
0
0
0
0
0
3,150
0.665962
ada6f90acad0fa32bb41de1376f5746034781a3d
9,746
py
Python
main.py
ItsTato/proctrl
079516e859f777f8698ad9c649fc23ecc1bde48d
[ "MIT" ]
1
2021-09-20T00:32:53.000Z
2021-09-20T00:32:53.000Z
main.py
ItsTato/proctrl
079516e859f777f8698ad9c649fc23ecc1bde48d
[ "MIT" ]
null
null
null
main.py
ItsTato/proctrl
079516e859f777f8698ad9c649fc23ecc1bde48d
[ "MIT" ]
null
null
null
""" MIT License Copyright (c) 2022 ItsTato Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, dist...
47.77451
2,078
0.754566
0
0
0
0
4,912
0.504002
1,255
0.128771
4,725
0.484814
ada7202fef8ad2439af7731383fd655d6d607641
500
py
Python
examples/nlp/cosmos_qa/simple.py
SebiSebi/DataMine
d2dd9ed7e2608918dd2908fa29238f600c768eb3
[ "Apache-2.0" ]
9
2020-07-01T21:53:36.000Z
2020-12-15T08:49:08.000Z
examples/nlp/cosmos_qa/simple.py
ChewKokWah/DataMine
d2dd9ed7e2608918dd2908fa29238f600c768eb3
[ "Apache-2.0" ]
7
2020-04-04T19:30:16.000Z
2020-06-26T12:18:10.000Z
examples/nlp/cosmos_qa/simple.py
ChewKokWah/DataMine
d2dd9ed7e2608918dd2908fa29238f600c768eb3
[ "Apache-2.0" ]
2
2020-03-21T13:55:27.000Z
2020-07-01T21:53:38.000Z
import data_mine as dm from data_mine.nlp.cosmos_qa import CosmosQAType def main(): df = dm.COSMOS_QA(CosmosQAType.TRAIN) print(df) print("\n") df = df.sample(n=1) row = next(df.iterrows())[1] print("Question: ", row.question, "\n") print("Context: ", row.context, "\n") for i, answer...
22.727273
57
0.606
0
0
0
0
0
0
0
0
78
0.156
ada7230865bf42e4c71fa3e36acd38626d2760ea
365
py
Python
egs/wsj/s5/steps/libs/nnet3/train/__init__.py
TiagoPellegrini/Kaldi
8a7918f132c0385c9e922126ecad9c3aa48b5706
[ "Apache-2.0" ]
null
null
null
egs/wsj/s5/steps/libs/nnet3/train/__init__.py
TiagoPellegrini/Kaldi
8a7918f132c0385c9e922126ecad9c3aa48b5706
[ "Apache-2.0" ]
null
null
null
egs/wsj/s5/steps/libs/nnet3/train/__init__.py
TiagoPellegrini/Kaldi
8a7918f132c0385c9e922126ecad9c3aa48b5706
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Vimal Manohar # Apache 2.0 """ This library has classes and methods commonly used for training nnet3 neural networks. It has separate submodules for frame-level objectives and chain objective: frame_level_objf -- For both recurrent and non-recurrent architectures chain_objf -- LF-MMI objective train...
22.8125
74
0.783562
0
0
0
0
0
0
0
0
331
0.906849
ada80991619b7b155d3bb022436ed577b941dc6b
462
py
Python
backend/connect.py
TrustedCapsules/policyBuilder
e9d7c36dcdc575b8ca5fc4c800e1b481e5bd8396
[ "MIT" ]
null
null
null
backend/connect.py
TrustedCapsules/policyBuilder
e9d7c36dcdc575b8ca5fc4c800e1b481e5bd8396
[ "MIT" ]
6
2021-03-09T01:35:33.000Z
2022-02-17T20:44:43.000Z
backend/connect.py
TrustedCapsules/keyserver
e9d7c36dcdc575b8ca5fc4c800e1b481e5bd8396
[ "MIT" ]
null
null
null
# used for connecting to the trusted capsule server import socket TCP_IP = '127.0.0.1' TCP_PORT = 4000 BUFFER_SIZE = 1024 MESSAGE = "Hello, World!" def connect(ip: str, port: int, request: bytes): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect((ip, port)) s.send(request) print("sent"...
22
58
0.670996
0
0
0
0
0
0
0
0
121
0.261905
ada8b2005c7d589e939f2465bf207b722554b8a7
3,821
py
Python
src/randonet/pytorch/transformer.py
ahgamut/randonet
b55241809318d70e97c7718b3fcdc91a7219f269
[ "MIT" ]
null
null
null
src/randonet/pytorch/transformer.py
ahgamut/randonet
b55241809318d70e97c7718b3fcdc91a7219f269
[ "MIT" ]
null
null
null
src/randonet/pytorch/transformer.py
ahgamut/randonet
b55241809318d70e97c7718b3fcdc91a7219f269
[ "MIT" ]
null
null
null
from randonet.generator.param import Param, IntParam, FloatParam, BinaryParam, ChoiceParam, TupleParam from randonet.generator.unit import Unit, Factory as _Factory from randonet.generator.conv import ConvFactory, ConvTransposeFactory from collections import namedtuple class TransformerEncoder(_Factory): def __i...
46.597561
198
0.649045
3,534
0.924889
0
0
0
0
0
0
739
0.193405
ada8e3e91d5ceb281c58cfe996d8f629dc28e927
6,566
py
Python
ooobuild/lo/rendering/x_sprite.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/rendering/x_sprite.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/rendering/x_sprite.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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 applicab...
56.603448
746
0.730429
5,297
0.806732
0
0
4,692
0.71459
0
0
5,360
0.816327
adabd3e05885daf5de02dbd612d161741ede8bf7
548
py
Python
my_shelter/dog_shelters/serializers.py
seajhawk/DjangoCRUD
215317e65f6775ea06ffbadf52794b082e5cd978
[ "CC-BY-4.0", "MIT" ]
null
null
null
my_shelter/dog_shelters/serializers.py
seajhawk/DjangoCRUD
215317e65f6775ea06ffbadf52794b082e5cd978
[ "CC-BY-4.0", "MIT" ]
null
null
null
my_shelter/dog_shelters/serializers.py
seajhawk/DjangoCRUD
215317e65f6775ea06ffbadf52794b082e5cd978
[ "CC-BY-4.0", "MIT" ]
null
null
null
from rest_framework import serializers from . import models class ShelterSerializer(serializers.ModelSerializer): class Meta: model = models.Shelter fields = ('name', 'location') class DogSerializer(serializers.ModelSerializer): class Meta: model = models.Dog ...
24.909091
57
0.614964
473
0.863139
0
0
0
0
0
0
57
0.104015
adad66563eecc2d8e15824bb2b7f43a81d825708
2,146
py
Python
astropy/utils/tests/test_xml.py
xiaomi1122/astropy
8876e902f5efa02a3fc27d82fe15c16001d4df5e
[ "BSD-3-Clause" ]
null
null
null
astropy/utils/tests/test_xml.py
xiaomi1122/astropy
8876e902f5efa02a3fc27d82fe15c16001d4df5e
[ "BSD-3-Clause" ]
null
null
null
astropy/utils/tests/test_xml.py
xiaomi1122/astropy
8876e902f5efa02a3fc27d82fe15c16001d4df5e
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst from __future__ import (absolute_import, division, print_function, unicode_literals) from ...extern import six import io from ..xml import check, unescaper, writer def test_writer(): fh = io.StringIO() w = writer.XMLWri...
27.87013
78
0.647251
0
0
0
0
0
0
0
0
723
0.336906
adae47876e26fe1fa608db9baae106b2a7e103a7
1,688
py
Python
demo/multimodal/offline/txt2img/index_and_export/src/indexing/milvus/pull.py
meta-soul/MetaSpore
e6fbc12c6a3139df76c87215b16f9dba65962ec7
[ "Apache-2.0" ]
32
2022-03-30T10:24:00.000Z
2022-03-31T16:19:15.000Z
demo/multimodal/offline/QA/index_and_export/src/indexing/milvus/pull.py
meta-soul/MetaSpore
e6fbc12c6a3139df76c87215b16f9dba65962ec7
[ "Apache-2.0" ]
null
null
null
demo/multimodal/offline/QA/index_and_export/src/indexing/milvus/pull.py
meta-soul/MetaSpore
e6fbc12c6a3139df76c87215b16f9dba65962ec7
[ "Apache-2.0" ]
3
2022-03-30T10:28:57.000Z
2022-03-30T11:37:39.000Z
# # Copyright 2022 DMetaSoul # # 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 writin...
29.103448
94
0.680687
0
0
0
0
0
0
0
0
720
0.42654
adaefc69f5b4fbb153960dd99d6e8f670b047662
6,174
py
Python
lab6/lab6_ttt.py
macarl08/esc180_coursework
16f2adda1f35875b91020e72cb4180d2e45690ce
[ "MIT" ]
null
null
null
lab6/lab6_ttt.py
macarl08/esc180_coursework
16f2adda1f35875b91020e72cb4180d2e45690ce
[ "MIT" ]
null
null
null
lab6/lab6_ttt.py
macarl08/esc180_coursework
16f2adda1f35875b91020e72cb4180d2e45690ce
[ "MIT" ]
null
null
null
# ESC180 Lab 6 # lab6_ttt.py # Oct 15, 2021 # Done in collaboration by: # Ma, Carl Ka To (macarl1) and # Xu, Shen Xiao Zhu (xushenxi) ''' X | O | X ---+---+--- O | O | X ---+---+--- | X | ''' import random def print_board_and_legend(board): for i in range(3): line1 = " " + board[i][0] + " |...
26.384615
104
0.495627
0
0
0
0
0
0
0
0
1,568
0.253968
adb02e5a94ebf7c392ba77f23c61612b29f40826
3,503
py
Python
sopel/modules/morestuff.py
paulmadore/funkshelper
cfe60ef4015381b6c4fb01e453523d571af0b2de
[ "EFL-2.0" ]
null
null
null
sopel/modules/morestuff.py
paulmadore/funkshelper
cfe60ef4015381b6c4fb01e453523d571af0b2de
[ "EFL-2.0" ]
null
null
null
sopel/modules/morestuff.py
paulmadore/funkshelper
cfe60ef4015381b6c4fb01e453523d571af0b2de
[ "EFL-2.0" ]
null
null
null
#!/usr/bin/python3 # coding=utf-8 """ Chuck Norris and Other Jokes Module copyright 2015 phm.link Licensed under Mozilla Public License Version 2. """ from __future__ import unicode_literals from __future__ import print_function from __future__ import division import json import jsonrpc from sopel.module import command...
33.04717
117
0.679989
0
0
0
0
3,041
0.868113
0
0
1,308
0.373394
adb03a7f7ff2aada0a21c0bb31a6b843a2c5e949
10,569
py
Python
scripts/dqn_utils.py
woowonjin/Reinforcement_Leraning_for_Optimal_Sepsis_Treatment
caf78cf5406194868e40ecc5e1a30d8b060fce18
[ "MIT" ]
null
null
null
scripts/dqn_utils.py
woowonjin/Reinforcement_Leraning_for_Optimal_Sepsis_Treatment
caf78cf5406194868e40ecc5e1a30d8b060fce18
[ "MIT" ]
null
null
null
scripts/dqn_utils.py
woowonjin/Reinforcement_Leraning_for_Optimal_Sepsis_Treatment
caf78cf5406194868e40ecc5e1a30d8b060fce18
[ "MIT" ]
1
2022-02-04T10:42:09.000Z
2022-02-04T10:42:09.000Z
""" The classes and methods in this file are derived or pulled directly from https://github.com/sfujim/BCQ/tree/master/discrete_BCQ which is a discrete implementation of BCQ by Scott Fujimoto, et al. and featured in the following 2019 DRL NeurIPS workshop paper: @article{fujimoto2019benchmarking, title={Benchmarking ...
34.42671
196
0.713123
4,998
0.472892
0
0
0
0
0
0
3,876
0.366733
adb0713e16ed17691a6fc614d394bfcc1510b88b
684
py
Python
src/LedgerCompliance/utils.py
vchain-us/ledger-compliance-py
30ae81e703178e8b8b4b7fb6a9b7d4467c607d53
[ "Apache-2.0" ]
3
2020-12-20T18:30:12.000Z
2021-05-31T17:02:15.000Z
src/LedgerCompliance/utils.py
vchain-us/ledger-compliance-py
30ae81e703178e8b8b4b7fb6a9b7d4467c607d53
[ "Apache-2.0" ]
null
null
null
src/LedgerCompliance/utils.py
vchain-us/ledger-compliance-py
30ae81e703178e8b8b4b7fb6a9b7d4467c607d53
[ "Apache-2.0" ]
1
2020-12-04T18:04:20.000Z
2020-12-04T18:04:20.000Z
import struct _SetSeparator=b"_~|IMMU|~_" def wrap_zindex_ref(key: bytes, index) -> bytes: fmt=">{}sQB".format(len(key)) if index!=None and index.index!=None: ret=struct.pack(fmt,key,index.index,1) else: ret=struct.pack(fmt,key,0,0) return ret def unwrap_zindex_ref(value:bytes): l=len(value) fmt=">{}sQB".f...
23.586207
73
0.709064
0
0
0
0
0
0
0
0
33
0.048246
adb2153a31727c0690dee6c70bb398a70a62d473
3,122
py
Python
expertise_levels.py
erelsgl/voting
732212df2d29d9e9ff7cb4cb83395f649541c346
[ "MIT" ]
null
null
null
expertise_levels.py
erelsgl/voting
732212df2d29d9e9ff7cb4cb83395f649541c346
[ "MIT" ]
null
null
null
expertise_levels.py
erelsgl/voting
732212df2d29d9e9ff7cb4cb83395f649541c346
[ "MIT" ]
null
null
null
#!python3 """ Utilities for computing random expertise levels. """ import numpy as np from scipy.stats import truncnorm, beta def fixed_expertise_levels(mean:float, size:int): return np.array([mean]*size) MIN_PROBABILITY=0.501 MAX_PROBABILITY=0.999 def truncnorm_expertise_levels(mean:float, std:float, size:int)...
32.520833
110
0.633568
0
0
0
0
0
0
0
0
1,714
0.549007
adb248407bb1fe608324a55851076099fa561cd8
1,132
py
Python
tests/test_factory.py
mrled/interpersonal
7282fb498ffc0b2bb9a14cf377b2cb5e4df4af56
[ "Unlicense" ]
null
null
null
tests/test_factory.py
mrled/interpersonal
7282fb498ffc0b2bb9a14cf377b2cb5e4df4af56
[ "Unlicense" ]
null
null
null
tests/test_factory.py
mrled/interpersonal
7282fb498ffc0b2bb9a14cf377b2cb5e4df4af56
[ "Unlicense" ]
null
null
null
"""Testing the Flask application factory""" import os import tempfile import textwrap from interpersonal import create_app def test_config(): """Test the application configuration Make sure it works in testing mode and in normal mode. """ db_fd, db_path = tempfile.mkstemp() conf_fd, conf_path =...
24.085106
70
0.641343
0
0
0
0
0
0
0
0
586
0.517668
adb376c4779c93a08c2bf6100553c99275ca06ea
6,077
py
Python
examples/hand_pose_estimation/processors_keypoints.py
ManuelMeder/paz
6de73c0a99e0f9c7233c2797eebba2bb01631e6c
[ "MIT" ]
null
null
null
examples/hand_pose_estimation/processors_keypoints.py
ManuelMeder/paz
6de73c0a99e0f9c7233c2797eebba2bb01631e6c
[ "MIT" ]
null
null
null
examples/hand_pose_estimation/processors_keypoints.py
ManuelMeder/paz
6de73c0a99e0f9c7233c2797eebba2bb01631e6c
[ "MIT" ]
null
null
null
import numpy as np from backend_keypoints import create_score_maps, extract_2D_keypoints from backend_keypoints import crop_image_from_coordinates, extract_keypoints from backend_keypoints import crop_image_from_mask, extract_hand_segment from backend_keypoints import extract_bounding_box, find_max_location from backe...
31.984211
80
0.70413
5,404
0.889255
0
0
0
0
0
0
1,188
0.195491
adb4718bc3b46e088dbc8adf3af6ee95f2ddf3e1
954
py
Python
pyschool/static/libs/importhooks/FileSystemHook.py
niansa/brython-in-the-classroom
a1f132898ed1afd1d1baf8170b99e58e39e87912
[ "MIT" ]
14
2016-03-16T18:01:52.000Z
2021-09-24T14:07:20.000Z
pyschool/static/libs/importhooks/FileSystemHook.py
niansa/brython-in-the-classroom
a1f132898ed1afd1d1baf8170b99e58e39e87912
[ "MIT" ]
9
2015-03-31T00:31:26.000Z
2021-05-28T06:24:16.000Z
pyschool/static/libs/importhooks/FileSystemHook.py
niansa/brython-in-the-classroom
a1f132898ed1afd1d1baf8170b99e58e39e87912
[ "MIT" ]
7
2015-05-04T04:06:04.000Z
2020-10-28T09:54:07.000Z
import BaseHook from browser import window from javascript import JSObject import sys sys.path.append("../FileSystem") import FileObject #define my custom import hook (just to see if it get called etc). class FileSystemHook(BaseHook.BaseHook): def __init__(self, fullname, path): BaseHook.BaseHook.__init__(se...
26.5
70
0.662474
709
0.743187
0
0
0
0
0
0
207
0.216981
adb4f77c341d6f1aa8e130649b902fe973e3d9f3
15,753
py
Python
demo_app_new.py
pnazarenko1405/final_project_data_analysis
d841d2630457bbf96b3914d27e6d82e80dc2654d
[ "MIT" ]
null
null
null
demo_app_new.py
pnazarenko1405/final_project_data_analysis
d841d2630457bbf96b3914d27e6d82e80dc2654d
[ "MIT" ]
null
null
null
demo_app_new.py
pnazarenko1405/final_project_data_analysis
d841d2630457bbf96b3914d27e6d82e80dc2654d
[ "MIT" ]
null
null
null
import sql as sql import streamlit as st from streamlit_folium import folium_static import matplotlib.pyplot as plt import pandas as pd import seaborn as sns import json import sys import folium import requests from bs4 import BeautifulSoup import csv from tqdm import tqdm import webbrowser import os.path as osp import...
42.233244
184
0.675935
0
0
0
0
0
0
0
0
9,535
0.529281
adb586800f460b888df5730bb9f1d37813ab8d42
1,236
py
Python
tuxeatpi_common/initializer.py
TuxEatPi/common
45aed6275636974f2eb94cf40e330fef5fdd0b7a
[ "Apache-2.0" ]
null
null
null
tuxeatpi_common/initializer.py
TuxEatPi/common
45aed6275636974f2eb94cf40e330fef5fdd0b7a
[ "Apache-2.0" ]
null
null
null
tuxeatpi_common/initializer.py
TuxEatPi/common
45aed6275636974f2eb94cf40e330fef5fdd0b7a
[ "Apache-2.0" ]
null
null
null
"""Module defining the init process for TuxEatPi component""" import logging class Initializer(object): """Initializer class to run init action for a component""" def __init__(self, component, skip_dialogs=False, skip_intents=False, skip_settings=False): self.component = component self.skip_d...
37.454545
100
0.665858
1,156
0.935275
0
0
0
0
0
0
313
0.253236
adb5fa9a4046aad685ec8217a10885613f798277
56
py
Python
devday/sponsoring/__init__.py
jenslauterbach/devday_website
a827c9237e656842542eff07ec9fa7b39716a0ee
[ "CC-BY-4.0", "BSD-3-Clause" ]
6
2018-09-30T20:18:01.000Z
2020-03-12T09:03:38.000Z
devday/sponsoring/__init__.py
jenslauterbach/devday_website
a827c9237e656842542eff07ec9fa7b39716a0ee
[ "CC-BY-4.0", "BSD-3-Clause" ]
260
2018-09-30T14:17:57.000Z
2022-03-04T13:48:34.000Z
devday/sponsoring/__init__.py
jenslauterbach/devday_website
a827c9237e656842542eff07ec9fa7b39716a0ee
[ "CC-BY-4.0", "BSD-3-Clause" ]
9
2018-09-30T13:17:21.000Z
2020-10-03T12:55:05.000Z
default_app_config = 'sponsoring.apps.SponsoringConfig'
28
55
0.857143
0
0
0
0
0
0
0
0
34
0.607143
adb71119cdfc222b0935d1f0fd6885370fac21e0
922
py
Python
movie/migrations/0003_auto_20200718_0759.py
edith007/The-Movie-Database
fef4aba56be66b93de5665da374ec8aab05c40f9
[ "CC0-1.0" ]
2
2020-07-12T20:15:53.000Z
2020-07-19T12:07:48.000Z
movie/migrations/0003_auto_20200718_0759.py
edith007/The-Movie-DataBase
fef4aba56be66b93de5665da374ec8aab05c40f9
[ "CC0-1.0" ]
1
2020-07-12T07:50:55.000Z
2020-07-12T07:50:55.000Z
movie/migrations/0003_auto_20200718_0759.py
edith007/The-Movie-DataBase
fef4aba56be66b93de5665da374ec8aab05c40f9
[ "CC0-1.0" ]
null
null
null
# Generated by Django 2.2.12 on 2020-07-18 07:59 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('movie', '0002_auto_20200717_1039'), ] operations = [ migrations.RemoveField( model_name='show', name='plot', ...
24.263158
49
0.520607
828
0.898048
0
0
0
0
0
0
159
0.172451
adb85db75ca4685e65491305d77f76efef993ae2
220
py
Python
figures/styles.py
Jakob-Unfried/msc-legacy
2c41f3f714936c25dd534bd66da802c26176fcfa
[ "MIT" ]
1
2021-03-22T14:16:43.000Z
2021-03-22T14:16:43.000Z
figures/styles.py
Jakob-Unfried/msc-legacy
2c41f3f714936c25dd534bd66da802c26176fcfa
[ "MIT" ]
null
null
null
figures/styles.py
Jakob-Unfried/msc-legacy
2c41f3f714936c25dd534bd66da802c26176fcfa
[ "MIT" ]
null
null
null
colors_per_chi = {2: 'green', 3: 'orange', 4: 'purple', 5: 'pink', 6: 'red'} style_per_chi = {2: '-', 3: '-.', 4: 'dotted'} markers_per_reason = {'converged': 'o', 'progress': 'x', 'ressources': 'v'} linewidth = 5.31596
44
76
0.581818
0
0
0
0
0
0
0
0
91
0.413636
adb871b1b9356162327f5a254f4edf184c40e44c
2,222
py
Python
index.py
tapanbk/compass-distance-and-bearing
2554a39c79570cb675b8d02d1fe8de7a86a7d0f4
[ "Apache-2.0" ]
null
null
null
index.py
tapanbk/compass-distance-and-bearing
2554a39c79570cb675b8d02d1fe8de7a86a7d0f4
[ "Apache-2.0" ]
null
null
null
index.py
tapanbk/compass-distance-and-bearing
2554a39c79570cb675b8d02d1fe8de7a86a7d0f4
[ "Apache-2.0" ]
null
null
null
def calculate_compass_distance(origin, destination): import math origin_latitude, origin_longitude = origin destination_latitude, destination_longitude = destination # 3959 = > Miles and 6371 = > KM # unit in meters radius = 6371*1000 dlat = math.radians(destination_latitude-origin_latitude)...
47.276596
93
0.713771
0
0
0
0
0
0
0
0
492
0.221422
adb94e7aa4a224fc307c81684302f11bb6f9c198
757
py
Python
codes/src/util/isotime.py
CorbinFoucart/FEMexperiment
9bad34d9ed7cbdd740e3a4b67f433779dd53b264
[ "MIT" ]
2
2018-05-26T22:09:32.000Z
2018-06-25T21:46:32.000Z
codes/src/util/isotime.py
CorbinFoucart/FEMexperiment
9bad34d9ed7cbdd740e3a4b67f433779dd53b264
[ "MIT" ]
16
2018-05-17T21:38:44.000Z
2022-03-11T23:21:25.000Z
codes/src/util/isotime.py
CorbinFoucart/FEMexperiment
9bad34d9ed7cbdd740e3a4b67f433779dd53b264
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """@package isotime Creates a string containing the current local time in ISO 8601 basic format @author: Chris Mirabito (mirabito@mit.edu) """ from datetime import datetime #from matplotlib.dates import SEC_PER_DAY SEC_PER_DAY = 86400 def isotime(): """Current local time in ISO 8601 basic...
30.28
77
0.660502
0
0
0
0
0
0
0
0
371
0.490092
adba93a1fa272ea925749888b657b23f18f04ab6
1,980
py
Python
src/cosmic_ray/tools/filters/filter_app.py
XD-DENG/cosmic-ray
d265dd0c7bf65484ee2ff1503129b2b16d0c7f55
[ "MIT" ]
1
2020-10-18T11:29:03.000Z
2020-10-18T11:29:03.000Z
src/cosmic_ray/tools/filters/filter_app.py
XD-DENG/cosmic-ray
d265dd0c7bf65484ee2ff1503129b2b16d0c7f55
[ "MIT" ]
4
2020-11-21T07:36:24.000Z
2020-11-22T03:09:39.000Z
src/cosmic_ray/tools/filters/filter_app.py
XD-DENG/cosmic-ray
d265dd0c7bf65484ee2ff1503129b2b16d0c7f55
[ "MIT" ]
null
null
null
"""A simple base for creating common types of work-db filters. """ import argparse import logging import sys from exit_codes import ExitCode from cosmic_ray.work_db import use_db class FilterApp: """Base class for simple WorkDB filters. This provides command-line handling for common filter options like ...
27.887324
81
0.629798
1,796
0.907071
0
0
0
0
0
0
1,087
0.54899
adbadbea54baed7c6fcc238d2ab70e4072465ec8
1,702
py
Python
Crawl/Code/com.vitan.test/mao.py
ivitan/LearnPython
f7c1c8f450f5cbcbd8cabe03711c5e0d81dfdee3
[ "MIT" ]
1
2020-02-05T12:13:31.000Z
2020-02-05T12:13:31.000Z
Crawl/Code/com.vitan.test/mao.py
ivitan/LearnPython
f7c1c8f450f5cbcbd8cabe03711c5e0d81dfdee3
[ "MIT" ]
null
null
null
Crawl/Code/com.vitan.test/mao.py
ivitan/LearnPython
f7c1c8f450f5cbcbd8cabe03711c5e0d81dfdee3
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 18-10-28 上午11:51 # @Author : Vitan # @File : mao.py import requests import re import json from multiprocessing import Pool from requests.exceptions import RequestException def get_one_page(url): headers = {'user-agent': 'Mozilla/5.0 (X11;...
30.392857
137
0.549941
0
0
510
0.285874
0
0
0
0
614
0.34417
adbb784f60c50615a64e5766faabdc65dde7543d
446
py
Python
setup.py
CubexX/shortest-python
0b778ad88cc329e00ecd94236178f13735451ded
[ "MIT" ]
null
null
null
setup.py
CubexX/shortest-python
0b778ad88cc329e00ecd94236178f13735451ded
[ "MIT" ]
null
null
null
setup.py
CubexX/shortest-python
0b778ad88cc329e00ecd94236178f13735451ded
[ "MIT" ]
null
null
null
from distutils.core import setup setup( name='shortest-python', packages=['shortest'], version='0.1', description='Python library for shorte.st url shortener', long_description="More on github: https://github.com/CubexX/shortest-python", author='CubexX', author_email='root@cubexx.xyz', ...
29.733333
81
0.683857
0
0
0
0
0
0
0
0
244
0.547085
adbd54f48752ea1ae6b17c7029c2a22c69b5f6e2
3,381
py
Python
04_random_forest_exp.py
markysamson/CDSWcreditcardfraud
31dc6d417baee4ef5736bce74059815b4f51542a
[ "Apache-2.0" ]
null
null
null
04_random_forest_exp.py
markysamson/CDSWcreditcardfraud
31dc6d417baee4ef5736bce74059815b4f51542a
[ "Apache-2.0" ]
null
null
null
04_random_forest_exp.py
markysamson/CDSWcreditcardfraud
31dc6d417baee4ef5736bce74059815b4f51542a
[ "Apache-2.0" ]
null
null
null
# # Building and Evaluating Random Forest Model # ## Setup # Import useful packages, modules, classes, and functions: from __future__ import print_function from pyspark.sql import SparkSession from pyspark.sql.functions import col #import numpy as np #import pandas as pd import matplotlib.pyplot as plt #import seabor...
37.988764
149
0.762496
0
0
0
0
0
0
0
0
1,970
0.582668
adc017e0f309fe827c4b742579b8ba5fefa70fea
9,761
py
Python
src/vegasflow/vflowplus.py
N3PDF/vegasflow
21209c928d07c00ae4f789d03b83e518621f174a
[ "Apache-2.0" ]
20
2020-03-02T22:01:54.000Z
2022-03-30T11:43:48.000Z
src/vegasflow/vflowplus.py
N3PDF/vegasflow
21209c928d07c00ae4f789d03b83e518621f174a
[ "Apache-2.0" ]
26
2020-02-28T12:27:38.000Z
2021-09-30T07:54:12.000Z
src/vegasflow/vflowplus.py
N3PDF/vegasflow
21209c928d07c00ae4f789d03b83e518621f174a
[ "Apache-2.0" ]
5
2020-07-31T08:57:56.000Z
2021-11-05T15:09:14.000Z
""" Implementation of vegas+ algorithm: adaptive importance sampling + adaptive stratified sampling from https://arxiv.org/abs/2009.05112 The main interface is the `VegasFlowPlus` class. """ from itertools import product import numpy as np import tensorflow as tf from vegasflow.configflow import ( ...
36.421642
97
0.65649
6,275
0.642864
0
0
1,795
0.183895
0
0
4,158
0.425981
adc14f4a93a1042eb839691caa5df56d8072eb88
4,259
py
Python
data_collector/neo-wrapper.py
cardwizard/vulnerable-python-ecosystem
582fda1f45bbe912352ed31a302d798365628713
[ "MIT" ]
null
null
null
data_collector/neo-wrapper.py
cardwizard/vulnerable-python-ecosystem
582fda1f45bbe912352ed31a302d798365628713
[ "MIT" ]
null
null
null
data_collector/neo-wrapper.py
cardwizard/vulnerable-python-ecosystem
582fda1f45bbe912352ed31a302d798365628713
[ "MIT" ]
null
null
null
from neo4j import GraphDatabase port = 7688 data_uri = 'bolt://localhost:' + str(port) username = 'neo4j' password = 'abc123' # data_creds = (username, password) data_creds = None driver = GraphDatabase.driver(data_uri, auth=data_creds) def close_db(): driver.close() def clear_db(): with driver.session() a...
28.972789
124
0.538154
0
0
0
0
0
0
0
0
1,703
0.399859
adc27f0b84c9f11612869bc82c5ec3b7f4947bbd
12,441
py
Python
kopf/storage/progress.py
michaelnarodovitch/kopf
df4e51bf5ca3c1fc9e609ffeb4cc951925135db2
[ "MIT" ]
null
null
null
kopf/storage/progress.py
michaelnarodovitch/kopf
df4e51bf5ca3c1fc9e609ffeb4cc951925135db2
[ "MIT" ]
null
null
null
kopf/storage/progress.py
michaelnarodovitch/kopf
df4e51bf5ca3c1fc9e609ffeb4cc951925135db2
[ "MIT" ]
null
null
null
""" State stores are used to track the handlers' states across handling cycles. Specifically, they track which handlers are finished, which are not yet, and how many retries were there, and some other information. There could be more than one low-level k8s watch-events per one actual high-level kopf-event (a cause). ...
33.715447
99
0.600997
10,091
0.811108
0
0
1,090
0.087614
0
0
5,338
0.429065
adc6094a6d2837ad691dd4b73802f81c13e2f5a2
1,045
py
Python
spotty/config/abstract_instance_config.py
Inculus/spotty
56863012668a6c13ad13c2a04f900047e229fbe6
[ "MIT" ]
1
2020-07-17T07:02:09.000Z
2020-07-17T07:02:09.000Z
spotty/config/abstract_instance_config.py
Inculus/spotty
56863012668a6c13ad13c2a04f900047e229fbe6
[ "MIT" ]
null
null
null
spotty/config/abstract_instance_config.py
Inculus/spotty
56863012668a6c13ad13c2a04f900047e229fbe6
[ "MIT" ]
null
null
null
from abc import ABC class AbstractInstanceConfig(ABC): def __init__(self, config: dict): self._name = config['name'] self._provider_name = config['provider'] self._params = config['parameters'] @property def name(self) -> str: """Name of the instance.""" return se...
26.125
78
0.61244
1,022
0.97799
0
0
784
0.750239
0
0
329
0.314833
adc70061227488de161786ea30ee1410bc56c27d
157
py
Python
scripts/helper.py
skurscheid/camda2019-workflows
45b10ef9b4b44655fc4b0c59f73c20bc003f70e2
[ "MIT" ]
1
2020-04-20T16:39:49.000Z
2020-04-20T16:39:49.000Z
scripts/helper.py
skurscheid/camda2019-workflows
45b10ef9b4b44655fc4b0c59f73c20bc003f70e2
[ "MIT" ]
1
2019-05-03T22:31:32.000Z
2019-05-03T22:34:01.000Z
scripts/helper.py
skurscheid/camda2019-workflows
45b10ef9b4b44655fc4b0c59f73c20bc003f70e2
[ "MIT" ]
null
null
null
def get_failed_ids(txt_file): id = [] fh = open(txt_file, 'r') for row in fh: id.append(row.split('/')[1].split('.')[0]) return(id)
19.625
50
0.528662
0
0
0
0
0
0
0
0
9
0.057325
adc761d738559e1c727ca375143dce7cda714b4b
887
py
Python
setup.py
lizhizhou/django_tidb
b615083c159d0c542ef1632810f3ca5c892d7175
[ "Apache-2.0" ]
null
null
null
setup.py
lizhizhou/django_tidb
b615083c159d0c542ef1632810f3ca5c892d7175
[ "Apache-2.0" ]
null
null
null
setup.py
lizhizhou/django_tidb
b615083c159d0c542ef1632810f3ca5c892d7175
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from distutils.core import setup long_description = """TiDB backend for Django""" setup( name='django_tidb', version='2.1', author='Rain Li', author_email='blacktear23@gmail.com', url='http://github.com/blacktear23/django_tidb', download_url='http://github.com/blackear23...
31.678571
79
0.657272
0
0
0
0
0
0
0
0
541
0.609921
adc85f255e45341493cae7d856bac908be193a3e
6,347
py
Python
common/utils/utils.py
hvsuchitra/tv_tracker
5415d177fe9a4e16ec39d9812e9502840bba5b12
[ "MIT" ]
null
null
null
common/utils/utils.py
hvsuchitra/tv_tracker
5415d177fe9a4e16ec39d9812e9502840bba5b12
[ "MIT" ]
null
null
null
common/utils/utils.py
hvsuchitra/tv_tracker
5415d177fe9a4e16ec39d9812e9502840bba5b12
[ "MIT" ]
null
null
null
import smtplib def get_binary(src_file): with open(src_file, 'rb') as f: return f.read() def send_mail(to, username, password, message_type='account_creation'): server = 'smtp.mail.me.com' port = 587 email = 'mailid' _password = 'password' if message_type == 'account_creation': ...
27.595652
109
0.688357
2,272
0.357964
0
0
0
0
0
0
977
0.153931
adc89f4cb99225189b2a24aea5a5be1d847b7fa7
10,610
py
Python
venv/lib/python3.8/site-packages/ansible_collections/community/aws/plugins/modules/lambda_alias.py
saeedya/docker-ansible
6fb0cfc6bc4a5925b21380952a5a4502ec02119a
[ "Apache-2.0" ]
7
2021-11-16T04:05:42.000Z
2022-02-19T21:14:29.000Z
venv/lib/python3.8/site-packages/ansible_collections/community/aws/plugins/modules/lambda_alias.py
saeedya/docker-ansible
6fb0cfc6bc4a5925b21380952a5a4502ec02119a
[ "Apache-2.0" ]
1
2022-03-12T02:25:26.000Z
2022-03-12T02:25:26.000Z
venv/lib/python3.8/site-packages/ansible_collections/community/aws/plugins/modules/lambda_alias.py
saeedya/docker-ansible
6fb0cfc6bc4a5925b21380952a5a4502ec02119a
[ "Apache-2.0" ]
1
2022-03-01T05:43:07.000Z
2022-03-01T05:43:07.000Z
#!/usr/bin/python # Copyright: Ansible Project # 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 DOCUMENTATION = ''' --- module: lambda_alias version_added: 1.0.0 short_description: Create...
32.347561
130
0.669463
0
0
0
0
0
0
0
0
6,182
0.582658
adc8cf67fa5dfd7aed6e2a5df90113f994c20b3b
1,148
py
Python
tarkov/bots/generator/loot/_base.py
JustEmuTarkov/jet_py
2f352b5e6f5d88594d08afc46e9458e919271788
[ "MIT" ]
14
2021-02-24T02:32:48.000Z
2022-01-03T05:51:45.000Z
tarkov/bots/generator/loot/_base.py
JustEmuTarkov/jet_py
2f352b5e6f5d88594d08afc46e9458e919271788
[ "MIT" ]
1
2021-03-08T09:02:29.000Z
2021-03-08T09:02:29.000Z
tarkov/bots/generator/loot/_base.py
JustEmuTarkov/jet_py
2f352b5e6f5d88594d08afc46e9458e919271788
[ "MIT" ]
4
2021-04-14T01:47:01.000Z
2021-11-29T02:18:32.000Z
from __future__ import annotations from typing import TYPE_CHECKING from dependency_injector.wiring import Provide, inject from server.container import AppContainer from ._types import BotInventoryContainers, LootGenerationConfig if TYPE_CHECKING: # pylint: disable=cyclic-import from tarkov.bots.bots import...
31.027027
69
0.740418
677
0.589721
0
0
581
0.506098
0
0
67
0.058362
adc9d401feb2c0145e7e065ab182fb792dc27133
411
py
Python
calico/datadog_checks/calico/check.py
davidlrosenblum/integrations-extras
281864a99ae054c91c3e3ea6a8ee8f04f6d7cdf3
[ "BSD-3-Clause" ]
158
2016-06-02T16:25:31.000Z
2022-03-16T15:55:14.000Z
calico/datadog_checks/calico/check.py
davidlrosenblum/integrations-extras
281864a99ae054c91c3e3ea6a8ee8f04f6d7cdf3
[ "BSD-3-Clause" ]
554
2016-03-15T17:39:12.000Z
2022-03-31T10:29:16.000Z
calico/datadog_checks/calico/check.py
davidlrosenblum/integrations-extras
281864a99ae054c91c3e3ea6a8ee8f04f6d7cdf3
[ "BSD-3-Clause" ]
431
2016-05-13T15:33:13.000Z
2022-03-31T10:06:46.000Z
from datadog_checks.base import OpenMetricsBaseCheckV2 from .metrics import METRIC_MAP class CalicoCheck(OpenMetricsBaseCheckV2): def __init__(self, name, init_config, instances=None): super(CalicoCheck, self).__init__( name, init_config, instances, ) def...
24.176471
63
0.664234
320
0.778589
0
0
0
0
0
0
28
0.068127
adcb4497ce1ae012191c1c8f35996119cb7174cf
1,059
py
Python
python/python_challenge/25/25.py
yunyu2019/blog
e4dce66504ad9b9c16d8e40ef6dff92e17ad0af0
[ "Apache-2.0" ]
null
null
null
python/python_challenge/25/25.py
yunyu2019/blog
e4dce66504ad9b9c16d8e40ef6dff92e17ad0af0
[ "Apache-2.0" ]
null
null
null
python/python_challenge/25/25.py
yunyu2019/blog
e4dce66504ad9b9c16d8e40ef6dff92e17ad0af0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # @Date : 2016-05-17 16:36:18 # @Author : Yunyu2019 (yunyu2010@yeah.net) # @Link : http://www.pythonchallenge.com/pc/hex/lake.html import os import wave import time import Image import requests def download(urls): filename=os.path.basename(urls) ...
24.068182
64
0.586402
0
0
0
0
0
0
0
0
400
0.377715
adcc014796de1bd0000f6b7256d97c0e49e27311
2,645
py
Python
scripts/initial_check.py
GenomeImmunobiology/hervk_kmers
5ede5c34cda75cec840cb499270e5b3c70582045
[ "MIT" ]
null
null
null
scripts/initial_check.py
GenomeImmunobiology/hervk_kmers
5ede5c34cda75cec840cb499270e5b3c70582045
[ "MIT" ]
null
null
null
scripts/initial_check.py
GenomeImmunobiology/hervk_kmers
5ede5c34cda75cec840cb499270e5b3c70582045
[ "MIT" ]
1
2021-03-09T04:14:49.000Z
2021-03-09T04:14:49.000Z
#!/usr/bin/env python ''' Copyright (c) 2020 RIKEN All Rights Reserved See file LICENSE for details. ''' import os,sys,datetime,multiprocessing from os.path import abspath,dirname,realpath,join import log,traceback # http://stackoverflow.com/questions/377017/test-if-executable-exists-in-python def which(program): ...
33.481013
120
0.551985
0
0
0
0
0
0
0
0
676
0.255577
adcc36ffc2e2e8f7a5b13fe702db8dab22da84df
381
py
Python
megalinter/tests/test_megalinter/linters/rust_clippy_test.py
private-forks/mega-linter
e22555d5dd18f6e7c32057b87b366d22f61a115d
[ "MIT" ]
null
null
null
megalinter/tests/test_megalinter/linters/rust_clippy_test.py
private-forks/mega-linter
e22555d5dd18f6e7c32057b87b366d22f61a115d
[ "MIT" ]
37
2021-05-12T06:28:04.000Z
2022-03-31T10:14:51.000Z
megalinter/tests/test_megalinter/linters/rust_clippy_test.py
private-forks/mega-linter
e22555d5dd18f6e7c32057b87b366d22f61a115d
[ "MIT" ]
null
null
null
# !/usr/bin/env python3 """ Unit tests for RUST linter clippy This class has been automatically generated by .automation/build.py, please do not update it manually """ from unittest import TestCase from megalinter.tests.test_megalinter.LinterTestRoot import LinterTestRoot class rust_clippy_test(TestCase, LinterTest...
25.4
101
0.784777
103
0.270341
0
0
0
0
0
0
180
0.472441
adcca01c0f26e751ad2af6441598f765ca450604
868
py
Python
tests/test_loader.py
sergeyglazyrindev/asceticcmdrunner
bde966398e8ecdcc638ac8137d4fab485bb5dce7
[ "MIT" ]
null
null
null
tests/test_loader.py
sergeyglazyrindev/asceticcmdrunner
bde966398e8ecdcc638ac8137d4fab485bb5dce7
[ "MIT" ]
null
null
null
tests/test_loader.py
sergeyglazyrindev/asceticcmdrunner
bde966398e8ecdcc638ac8137d4fab485bb5dce7
[ "MIT" ]
null
null
null
import mock from acmdrunner import Loader import os import tests.management.acr_commands active_dir = os.getcwd() cur_dir = os.path.dirname(__file__) def test_load_from_directory(): with mock.patch( 'acmdrunner.loader.load_commands_from_directory', autospec=True ) as commands_mock: ...
27.125
71
0.724654
0
0
0
0
0
0
0
0
116
0.133641
adcd400ff1adfb7e8690873eed1def1e2ba865b1
6,838
py
Python
tests/test_from_avro.py
godatadriven/pydantic-avro
f50010dc1bd9bb33bdcbdbe443d6085884d26dd4
[ "MIT" ]
7
2021-12-20T09:00:25.000Z
2022-01-17T13:18:39.000Z
tests/test_from_avro.py
godatadriven/pydantic-avro
f50010dc1bd9bb33bdcbdbe443d6085884d26dd4
[ "MIT" ]
25
2021-12-18T16:18:25.000Z
2022-03-28T22:33:14.000Z
tests/test_from_avro.py
godatadriven/pydantic-avro
f50010dc1bd9bb33bdcbdbe443d6085884d26dd4
[ "MIT" ]
4
2022-01-16T11:11:19.000Z
2022-03-26T16:17:48.000Z
from pydantic_avro.avro_to_pydantic import avsc_to_pydantic def test_avsc_to_pydantic_empty(): pydantic_code = avsc_to_pydantic({"name": "Test", "type": "record", "fields": []}) assert "class Test(BaseModel):\n pass" in pydantic_code def test_avsc_to_pydantic_primitive(): pydantic_code = avsc_to_pyda...
30.123348
119
0.388125
0
0
0
0
0
0
0
0
2,596
0.379643
adcefa1b9b892a7b65705918561ff4fdd2c1bb29
1,128
py
Python
dojo/unittests/tools/test_cloudsploit_parser.py
art-tykh/django-DefectDojo
22201f336974a99808998e98cdb3ed536bfdd85a
[ "BSD-3-Clause" ]
1,772
2018-01-22T23:32:15.000Z
2022-03-31T14:49:33.000Z
dojo/unittests/tools/test_cloudsploit_parser.py
art-tykh/django-DefectDojo
22201f336974a99808998e98cdb3ed536bfdd85a
[ "BSD-3-Clause" ]
3,461
2018-01-20T19:12:28.000Z
2022-03-31T17:14:39.000Z
dojo/unittests/tools/test_cloudsploit_parser.py
art-tykh/django-DefectDojo
22201f336974a99808998e98cdb3ed536bfdd85a
[ "BSD-3-Clause" ]
1,173
2018-01-23T07:10:23.000Z
2022-03-31T14:40:43.000Z
from django.test import TestCase from dojo.models import Test from dojo.tools.cloudsploit.parser import CloudsploitParser class TestCloudsploitParser(TestCase): def test_cloudsploit_parser_with_no_vuln_has_no_findings(self): testfile = open("dojo/unittests/scans/cloudsploit/cloudsploit_zero_vul.json") ...
40.285714
85
0.734043
1,003
0.889184
0
0
0
0
0
0
179
0.158688
add258efeef3f956d7fb99304fe175cc5d75a991
1,329
py
Python
mwaa/mwaa-cdk/mwaa_cdk/deploy_files.py
094459/time-series-and-data-lakes
75540661764b8bca91debf625278985ceba7b5ca
[ "MIT" ]
9
2021-12-03T17:51:42.000Z
2022-03-17T08:45:05.000Z
mwaa/mwaa-cdk/mwaa_cdk/deploy_files.py
094459/time-series-and-data-lakes
75540661764b8bca91debf625278985ceba7b5ca
[ "MIT" ]
null
null
null
mwaa/mwaa-cdk/mwaa_cdk/deploy_files.py
094459/time-series-and-data-lakes
75540661764b8bca91debf625278985ceba7b5ca
[ "MIT" ]
1
2021-12-12T16:00:31.000Z
2021-12-12T16:00:31.000Z
from aws_cdk import core import aws_cdk.aws_ec2 as ec2 import aws_cdk.aws_s3 as s3 import aws_cdk.aws_s3_deployment as s3deploy import aws_cdk.aws_iam as iam class MwaaCdkStackDeployFiles(core.Stack): def __init__(self, scope: core.Construct, id: str, vpc, mwaa_props, **kwargs) -> None: super().__init__...
27.122449
90
0.641836
1,148
0.863807
0
0
0
0
0
0
280
0.210685
add2a5d0a4f10c67d63cf8daaaf3c6b9766d80f2
2,743
py
Python
caloric_balance/test_main_getUserString.py
ankitsumitg/python-projects
34a3df6fcd8544bf83aa9f3d47ec160e3838b1d1
[ "MIT" ]
1
2021-03-22T20:45:06.000Z
2021-03-22T20:45:06.000Z
caloric_balance/test_main_getUserString.py
ankitsumitg/python-projects
34a3df6fcd8544bf83aa9f3d47ec160e3838b1d1
[ "MIT" ]
null
null
null
caloric_balance/test_main_getUserString.py
ankitsumitg/python-projects
34a3df6fcd8544bf83aa9f3d47ec160e3838b1d1
[ "MIT" ]
null
null
null
""" Do Not Edit this file. You may and are encouraged to look at it for reference. """ import sys if sys.version_info.major != 3: print('You must use Python 3.x version to run this unit test') sys.exit(1) import unittest import main class TestGetUserString(unittest.TestCase): def input_replacement(self...
33.048193
87
0.677725
2,447
0.892089
0
0
0
0
0
0
320
0.116661
add33c54e770750ea8275fe2e30292d5a6c64611
1,386
py
Python
corehq/ex-submodules/phonelog/management/commands/migrate_device_entry.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
471
2015-01-10T02:55:01.000Z
2022-03-29T18:07:18.000Z
corehq/ex-submodules/phonelog/management/commands/migrate_device_entry.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
14,354
2015-01-01T07:38:23.000Z
2022-03-31T20:55:14.000Z
corehq/ex-submodules/phonelog/management/commands/migrate_device_entry.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
175
2015-01-06T07:16:47.000Z
2022-03-29T13:27:01.000Z
from datetime import datetime, timedelta from django.conf import settings from django.core.management.base import BaseCommand from django.db import connection from phonelog.models import OldDeviceReportEntry, DeviceReportEntry COLUMNS = ( "xform_id", "i", "msg", "type", "date", "server_date", "domain", "devi...
35.538462
77
0.584416
1,016
0.733045
0
0
0
0
0
0
271
0.195527
add35b0f883ca25be7c8935f80592e9b0471f49d
5,180
py
Python
UnB/PI2-SESC/SESCdraw.py
nauam/vuepress-next
4f39162aa38e36b85d74bf5fc858770cbf87d1f4
[ "MIT" ]
null
null
null
UnB/PI2-SESC/SESCdraw.py
nauam/vuepress-next
4f39162aa38e36b85d74bf5fc858770cbf87d1f4
[ "MIT" ]
2
2021-11-02T11:37:02.000Z
2021-11-02T11:37:53.000Z
UnB/PI2-SESC/SESCdraw.py
nauam/vuepress-next
4f39162aa38e36b85d74bf5fc858770cbf87d1f4
[ "MIT" ]
null
null
null
import pygame import math from pygame.locals import * from OpenGL.GL import * ######################################################## ################## CONFIGURAÇÕES MESA ################## larCamp = 1160 altCamp = 770 passo = 0.53 apasso = 0.18 #deg xJog = 30 yJog = 40 has = 10 hasG...
41.774194
99
0.509073
0
0
0
0
0
0
0
0
235
0.045349
add36b7db37e26004fe848c8316ce3ebda2a90b6
660
py
Python
linked_list_reversal.py
Nikhilxavier/Linked-List
b934985d937edd2cd4a683d751a930aacd7f96bf
[ "BSD-3-Clause" ]
null
null
null
linked_list_reversal.py
Nikhilxavier/Linked-List
b934985d937edd2cd4a683d751a930aacd7f96bf
[ "BSD-3-Clause" ]
null
null
null
linked_list_reversal.py
Nikhilxavier/Linked-List
b934985d937edd2cd4a683d751a930aacd7f96bf
[ "BSD-3-Clause" ]
null
null
null
""" Implementation of Linked List reversal. """ # Author: Nikhil Xavier <nikhilxavier@yahoo.com> # License: BSD 3 clause class Node: """Node class for Singly Linked List.""" def __init__(self, value): self.value = value self.next_node = None def reverse_linked_list(head): """Reverse li...
20
48
0.668182
145
0.219697
0
0
0
0
0
0
229
0.34697
add538016b2beae44f41546b6a9daabd1efa1beb
1,310
py
Python
scripts/stats/cluster/transform_documents_2d.py
foobar999/Wikipedia-Cluster-Analysis
4dc8166fb01f9b3ab6d7557de331cfc95298ff0c
[ "MIT" ]
null
null
null
scripts/stats/cluster/transform_documents_2d.py
foobar999/Wikipedia-Cluster-Analysis
4dc8166fb01f9b3ab6d7557de331cfc95298ff0c
[ "MIT" ]
null
null
null
scripts/stats/cluster/transform_documents_2d.py
foobar999/Wikipedia-Cluster-Analysis
4dc8166fb01f9b3ab6d7557de331cfc95298ff0c
[ "MIT" ]
null
null
null
import argparse from sklearn import decomposition from sklearn.manifold import TSNE from scripts.utils.utils import init_logger, save_npz from scripts.utils.documents import load_document_topics logger = init_logger() def main(): parser = argparse.ArgumentParser(description='maps a given high-dimensional documen...
39.69697
137
0.761832
0
0
0
0
0
0
0
0
347
0.264885
add5947a236430ec92e6da0ce2795473737ac226
551
py
Python
1701-1800/1711-1720/1711-countGoodMeals/countGoodMeals.py
xuychen/Leetcode
c8bf33af30569177c5276ffcd72a8d93ba4c402a
[ "MIT" ]
null
null
null
1701-1800/1711-1720/1711-countGoodMeals/countGoodMeals.py
xuychen/Leetcode
c8bf33af30569177c5276ffcd72a8d93ba4c402a
[ "MIT" ]
null
null
null
1701-1800/1711-1720/1711-countGoodMeals/countGoodMeals.py
xuychen/Leetcode
c8bf33af30569177c5276ffcd72a8d93ba4c402a
[ "MIT" ]
null
null
null
from collections import defaultdict class Solution(object): def countPairs(self, deliciousness): """ :type deliciousness: List[int] :rtype: int """ max_sum = max(deliciousness) * 2 count = 0 dictionary = defaultdict(int) for value in deliciousness: ...
23.956522
74
0.548094
513
0.931034
0
0
0
0
0
0
74
0.134301
add70bcfae38da04abc22d36a07d4f398a5298d9
2,900
py
Python
gbmk2pinb.py
tebeka/pythonwise
56f8cb7aa792c3ad6a3dc754e15f6a04890d694a
[ "BSD-3-Clause" ]
21
2016-11-16T20:08:56.000Z
2021-12-11T23:13:05.000Z
gbmk2pinb.py
tebeka/pythonwise
56f8cb7aa792c3ad6a3dc754e15f6a04890d694a
[ "BSD-3-Clause" ]
1
2020-10-05T08:35:31.000Z
2020-10-05T08:35:31.000Z
gbmk2pinb.py
tebeka/pythonwise
56f8cb7aa792c3ad6a3dc754e15f6a04890d694a
[ "BSD-3-Clause" ]
8
2016-11-12T22:54:55.000Z
2021-02-10T10:46:23.000Z
#!/usr/bin/env python ''' Port Google Bookmarks over to pinboard.in * Export Google Bookmarks by hitting http://www.google.com/bookmarks/?output=xml&num=10000 * Get pinboard auth_token from https://pinboard.in/settings/password Run: ./gbmk2pinb.py bookmarks.xml --auth-token <token> ''' import requests from cS...
26.605505
76
0.62
0
0
443
0.152759
0
0
0
0
1,154
0.397931
add7f9669f3e05d6508ad79cf1105d32eda37887
11,106
py
Python
rover/type-ab/wheels_service.py
GamesCreatorsClub/GCC-Rover
25a69f62a1bb01fc421924ec39f180f50d6a640b
[ "MIT" ]
3
2018-02-13T21:39:55.000Z
2018-04-26T18:17:39.000Z
rover/type-ab/wheels_service.py
GamesCreatorsClub/GCC-Rover
25a69f62a1bb01fc421924ec39f180f50d6a640b
[ "MIT" ]
null
null
null
rover/type-ab/wheels_service.py
GamesCreatorsClub/GCC-Rover
25a69f62a1bb01fc421924ec39f180f50d6a640b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Copyright 2016-2017 Games Creators Club # # MIT License # import traceback import time import re import copy import pyroslib import storagelib import smbus # # wheels service # # # This service is responsible for moving wheels on the rover. # Current implementation also handles: # - se...
29.149606
108
0.572033
0
0
142
0.012786
0
0
0
0
2,387
0.214929
add81cb05015339a61019826e171a37c7a199581
5,960
py
Python
src/hyper_prompt/segments/git.py
artbycrunk/hyper-prompt
b78d98e4e5c65647b566368ea778b205a86371de
[ "MIT" ]
5
2019-11-11T15:54:09.000Z
2022-03-23T00:00:07.000Z
src/hyper_prompt/segments/git.py
artbycrunk/hyper-prompt
b78d98e4e5c65647b566368ea778b205a86371de
[ "MIT" ]
8
2019-12-19T16:03:08.000Z
2021-10-21T01:42:08.000Z
src/hyper_prompt/segments/git.py
artbycrunk/hyper-prompt
b78d98e4e5c65647b566368ea778b205a86371de
[ "MIT" ]
3
2019-08-09T12:05:19.000Z
2020-10-06T08:16:24.000Z
import os import re import subprocess from ..segment import BasicSegment class Repo(object): symbols = { "detached": "\u2693", "ahead": "\u2B06", "behind": "\u2B07", "staged": "\u2714", "changed": "\u270E", "new": "\uf128", "conflicted": "\u2...
30.880829
103
0.460403
5,869
0.984732
0
0
105
0.017617
0
0
937
0.157215
add8774dbb279519f1395cc74a9dc7957550b2a2
7,520
py
Python
edg_core/test_simple_const_prop.py
tengisd/PolymorphicBlocks
240a11f813762c4eb5a97c9d9766a0af19cd8f3a
[ "BSD-3-Clause" ]
null
null
null
edg_core/test_simple_const_prop.py
tengisd/PolymorphicBlocks
240a11f813762c4eb5a97c9d9766a0af19cd8f3a
[ "BSD-3-Clause" ]
null
null
null
edg_core/test_simple_const_prop.py
tengisd/PolymorphicBlocks
240a11f813762c4eb5a97c9d9766a0af19cd8f3a
[ "BSD-3-Clause" ]
null
null
null
import unittest from . import * from edg_core.ScalaCompilerInterface import ScalaCompiler class TestConstPropInternal(Block): def __init__(self) -> None: super().__init__() self.float_param = self.Parameter(FloatExpr()) self.range_param = self.Parameter(RangeExpr()) class TestParameterConstProp(Bloc...
38.367347
100
0.71742
7,381
0.981516
0
0
0
0
0
0
837
0.111303
adda310f115e4d135391af4cbeb41ba6e1fe7f71
3,061
py
Python
get_types.py
AllanMoralesPrado/PokeAPI-project
a8ce6f49bc6b4ab395f4d2f5ef84de8d5ec17145
[ "MIT" ]
null
null
null
get_types.py
AllanMoralesPrado/PokeAPI-project
a8ce6f49bc6b4ab395f4d2f5ef84de8d5ec17145
[ "MIT" ]
null
null
null
get_types.py
AllanMoralesPrado/PokeAPI-project
a8ce6f49bc6b4ab395f4d2f5ef84de8d5ec17145
[ "MIT" ]
null
null
null
#Modulo que devuelve tres valores: # pkmn_type_en: lista de str cuyos valores son los nombres de los tipos del pokemon (en ingles) # special_type: lista de str cuyos valores son los nombres de los tipos especiales del pokemon # pkmn_damage_rel: diccionario de listas str cuyos valores son los nombres de los tipos del p...
35.593023
111
0.665795
0
0
0
0
0
0
0
0
1,475
0.479987
addc984c604dda76024ddee4181508788307c8b0
422
py
Python
pyPractise/jcp030.py
enyaooshigaolo/MyPython
67dc3f6ff596545ab70e11a573a6031232128711
[ "Apache-2.0" ]
null
null
null
pyPractise/jcp030.py
enyaooshigaolo/MyPython
67dc3f6ff596545ab70e11a573a6031232128711
[ "Apache-2.0" ]
null
null
null
pyPractise/jcp030.py
enyaooshigaolo/MyPython
67dc3f6ff596545ab70e11a573a6031232128711
[ "Apache-2.0" ]
null
null
null
''' Created on 2017年1月15日 @author: Think 题目:一个5位数,判断它是不是回文数。即12321是回文数,个位与万位相同,十位与千位相同。    1.程序分析:同29例 2.程序源代码: ''' from pip._vendor.distlib.compat import raw_input def jcp030(): x = int(raw_input('input a number:\n')) x = str(x) for i in range(len(x)//2): if x[i] != x[-i - 1]: print('...
21.1
49
0.597156
0
0
0
0
0
0
0
0
307
0.568519
addcfbc1202ddedf82c6055c7f9b66dac55c513b
2,821
py
Python
scripts/anisotropy.py
jmsung/APC
9f0e065aa748a4d041b783b07cd8078715d39625
[ "MIT" ]
null
null
null
scripts/anisotropy.py
jmsung/APC
9f0e065aa748a4d041b783b07cd8078715d39625
[ "MIT" ]
null
null
null
scripts/anisotropy.py
jmsung/APC
9f0e065aa748a4d041b783b07cd8078715d39625
[ "MIT" ]
null
null
null
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" Created by Jongmin Sung (jongmin.sung@gmail.com) Anisotropy data analysis The equation for the curve as published by Marchand et al. in Nature Cell Biology in 2001 is as follows: y = a + (b-a) / [(c(x+K)/K*d)+1], where a is the anisotrop...
32.802326
105
0.558313
0
0
0
0
0
0
0
0
829
0.293867
addd60f66ac5c1f27cca6c73bae47a5f1d867f7c
4,519
py
Python
tensorflow/standard/reinforcement_learning/rl_on_gcp_demo/trainer/ddpg_agent.py
VanessaDo/cloudml-samples
ae6cd718e583944beef9d8a90db12091ac399432
[ "Apache-2.0" ]
1,552
2016-09-29T18:59:01.000Z
2022-03-30T06:13:41.000Z
tensorflow/standard/reinforcement_learning/rl_on_gcp_demo/trainer/ddpg_agent.py
VanessaDo/cloudml-samples
ae6cd718e583944beef9d8a90db12091ac399432
[ "Apache-2.0" ]
385
2016-10-01T11:21:18.000Z
2021-12-17T01:40:25.000Z
tensorflow/standard/reinforcement_learning/rl_on_gcp_demo/trainer/ddpg_agent.py
VanessaDo/cloudml-samples
ae6cd718e583944beef9d8a90db12091ac399432
[ "Apache-2.0" ]
983
2016-09-29T17:00:57.000Z
2022-03-30T06:13:46.000Z
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
40.348214
78
0.611861
3,589
0.794202
0
0
0
0
0
0
1,068
0.236335
addded900080d658ae63eb6fa0ec1ba46ebc0d17
492
py
Python
setup.py
my-old-projects/syspy
f870adfa6d2839fa8c8c8d3a6c3bdcfb0c863c1d
[ "MIT" ]
null
null
null
setup.py
my-old-projects/syspy
f870adfa6d2839fa8c8c8d3a6c3bdcfb0c863c1d
[ "MIT" ]
null
null
null
setup.py
my-old-projects/syspy
f870adfa6d2839fa8c8c8d3a6c3bdcfb0c863c1d
[ "MIT" ]
1
2020-11-21T10:09:30.000Z
2020-11-21T10:09:30.000Z
from distutils.core import setup setup( name = 'syspy', version = '0.2', url = 'https://github.com/aligoren/syspy', download_url = 'https://github.com/aligoren/syspy/archive/master.zip', author = 'Ali GOREN <goren.ali@yandex.com>', author_email = 'goren.ali@yandex.com', license = 'Apache v2...
32.8
81
0.636179
0
0
0
0
0
0
0
0
265
0.538618
adde9423551c7dda2a8e059cbe593f3c2faacded
1,638
py
Python
DjangoECom/products/migrations/0003_auto_20210109_2256.py
MostafaSamyFayez/E-Commerce-Sys
95ed3cb65b238866e336d43422dfb1737bfd7993
[ "Unlicense" ]
2
2021-04-01T00:23:44.000Z
2021-04-01T00:23:48.000Z
DjangoECom/products/migrations/0003_auto_20210109_2256.py
MostafaSamyFayez/E-Commerce-Sys
95ed3cb65b238866e336d43422dfb1737bfd7993
[ "Unlicense" ]
null
null
null
DjangoECom/products/migrations/0003_auto_20210109_2256.py
MostafaSamyFayez/E-Commerce-Sys
95ed3cb65b238866e336d43422dfb1737bfd7993
[ "Unlicense" ]
1
2021-01-23T13:06:25.000Z
2021-01-23T13:06:25.000Z
# Generated by Django 3.1.4 on 2021-01-09 20:56 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), ('products', '0002_auto_20...
39.95122
139
0.59707
1,479
0.90293
0
0
0
0
0
0
270
0.164835
ade08716a0728bd71f409c370ab1b6a0670febc4
1,354
py
Python
setup.py
PiotrRadzinski/envemind
7eb159e3a9f481b95e26df81595e5c8b7e8485c7
[ "MIT" ]
null
null
null
setup.py
PiotrRadzinski/envemind
7eb159e3a9f481b95e26df81595e5c8b7e8485c7
[ "MIT" ]
null
null
null
setup.py
PiotrRadzinski/envemind
7eb159e3a9f481b95e26df81595e5c8b7e8485c7
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages from distutils.core import Extension import pathlib here = pathlib.Path(__file__).parent.resolve() setup( name='envemind', version='0.0.1', description='Prediction of monoisotopic mass in mass spectra', # long_des...
36.594595
71
0.619645
0
0
0
0
0
0
0
0
843
0.621681
ade1b9af12ca82c1c26ca0644c6d5b378d6445ab
5,496
py
Python
build.py
niklas2902/py4godot
bf50624d1fc94b55faf82a3a4d322e33fbba60ce
[ "MIT" ]
2
2021-12-10T21:17:57.000Z
2021-12-17T18:54:49.000Z
build.py
niklas2902/py4godot
bf50624d1fc94b55faf82a3a4d322e33fbba60ce
[ "MIT" ]
9
2021-12-21T18:35:28.000Z
2022-03-27T20:03:50.000Z
build.py
niklas2902/py4godot
bf50624d1fc94b55faf82a3a4d322e33fbba60ce
[ "MIT" ]
1
2022-03-07T08:06:57.000Z
2022-03-07T08:06:57.000Z
import argparse import os import subprocess import time from Cython.Build import cythonize import generate_bindings from meson_scripts import copy_tools, download_python, generate_init_files, \ locations, platform_check, generate_godot, \ download_godot generate_bindings.build() def cythonize_files(): m...
41.014925
121
0.670852
0
0
0
0
0
0
0
0
2,163
0.393559
ade3eb7e1347229abd0cf82b50e4a088e04ffa76
543
py
Python
pacote-download/Python/modulo01/python01/Aula08.py
fabiosabariego/curso-python
a4ffff53ff9e92b5ef0de637e9bcce25f7feebd9
[ "MIT" ]
null
null
null
pacote-download/Python/modulo01/python01/Aula08.py
fabiosabariego/curso-python
a4ffff53ff9e92b5ef0de637e9bcce25f7feebd9
[ "MIT" ]
null
null
null
pacote-download/Python/modulo01/python01/Aula08.py
fabiosabariego/curso-python
a4ffff53ff9e92b5ef0de637e9bcce25f7feebd9
[ "MIT" ]
null
null
null
# ------------------------------- UTILIZANDO MODULOS - AULA 08 ------------------------------- # BIBLIOTECA MATH #from math import sqrt #num = int(input('Digite um Numero: ')) #raiz = sqrt(num) #print('O Valor da raiz de {} é: {:.2f}'.format(num, raiz)) # BIBLIOTECA RANDOM #import random # num = random.random(...
20.884615
118
0.604052
0
0
0
0
0
0
0
0
471
0.859489
ade4d82b609c594b7c7b2743267ac4e2efc9393b
227
py
Python
tests/conftest.py
skarzi/drf-exception-dispatcher
a950f7ce8ca33551b0860fb4c78ced53afd06163
[ "MIT" ]
null
null
null
tests/conftest.py
skarzi/drf-exception-dispatcher
a950f7ce8ca33551b0860fb4c78ced53afd06163
[ "MIT" ]
70
2021-02-05T07:20:57.000Z
2022-03-31T05:11:20.000Z
tests/conftest.py
skarzi/drf-exception-dispatcher
a950f7ce8ca33551b0860fb4c78ced53afd06163
[ "MIT" ]
null
null
null
import os import django from django.conf import settings def pytest_configure(config): """Configure Django.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'settings') settings.configure() django.setup()
17.461538
63
0.726872
0
0
0
0
0
0
0
0
57
0.251101
ade4fdb3bcfaf121e8cc409f04834032214ff47c
763
py
Python
Python/p1.py
Nivedya-27/Autumn-of-Automation
2f645b58d035d6277f7ee0ff77814be812815f6d
[ "MIT" ]
null
null
null
Python/p1.py
Nivedya-27/Autumn-of-Automation
2f645b58d035d6277f7ee0ff77814be812815f6d
[ "MIT" ]
null
null
null
Python/p1.py
Nivedya-27/Autumn-of-Automation
2f645b58d035d6277f7ee0ff77814be812815f6d
[ "MIT" ]
null
null
null
d=int(input("enter d")) n='' max='' for i in range(d): if i==0: n=n+str(1) else : n=n+str(0) max=max+str(9) n=int(n)+1 #smallest odd no. with d digits if d>1 or 2 if d==1 max=int(max) #largest no. with d digits def check_prime(m_odd): #returns truth value of an odd no. or of 2 being prime if m_odd==2:return T...
20.621622
78
0.609436
0
0
0
0
0
0
0
0
247
0.323722
ade56836ea955efdb495cba170a57ad630ee81e1
24,951
py
Python
tests/test_03_main_balancer.py
VolumeFi/exchange-add
0021a55557cbce43f31b21078a44f62fb14e0d56
[ "Apache-2.0" ]
5
2021-03-23T21:09:06.000Z
2021-07-06T19:29:38.000Z
tests/test_03_main_balancer.py
VolumeFi/exchange-add
0021a55557cbce43f31b21078a44f62fb14e0d56
[ "Apache-2.0" ]
4
2021-02-08T17:08:06.000Z
2021-02-24T04:59:50.000Z
tests/test_03_main_balancer.py
VolumeFi/exchange-liquidity
0021a55557cbce43f31b21078a44f62fb14e0d56
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 import pytest from brownie.test import strategy from hypothesis import HealthCheck class StateMachine: coin = strategy('uint16', max_value=6) pool = strategy('uint16', max_value=4) valueEth = strategy('uint256', min_value=9 * 10 ** 17, max_value=11 * 10 ** 17) valueUSD6 = strategy(...
252.030303
19,798
0.665945
24,450
0.979921
0
0
0
0
0
0
17,101
0.685383
ade5713cc5ef83db5a1136d2a28d6781e4caec62
6,285
py
Python
cellxgene_schema_cli/scripts/ontology_processing.py
chanzuckerberg/single-cell-curation
7ea0aae3b3d8c75d9717b34374a8d10e222d71ce
[ "MIT" ]
8
2021-03-17T23:42:41.000Z
2022-03-08T13:08:55.000Z
cellxgene_schema_cli/scripts/ontology_processing.py
chanzuckerberg/single-cell-curation
7ea0aae3b3d8c75d9717b34374a8d10e222d71ce
[ "MIT" ]
156
2021-02-23T18:17:42.000Z
2022-03-31T20:49:46.000Z
cellxgene_schema_cli/scripts/ontology_processing.py
chanzuckerberg/single-cell-curation
7ea0aae3b3d8c75d9717b34374a8d10e222d71ce
[ "MIT" ]
8
2021-03-22T17:07:31.000Z
2022-03-08T11:07:48.000Z
import owlready2 import yaml import urllib.request import os import gzip import json import sys sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), "../cellxgene_schema")) import env from typing import List import os def _download_owls( owl_info_yml: str = env.OWL_INFO_YAML, output_dir: str ...
31.742424
107
0.604455
0
0
0
0
0
0
0
0
2,558
0.407001
ade5f5e2cfd5b36a0ae20ab962012600912b9fde
1,337
py
Python
backoffice/web/companies/serializers.py
uktrade/trade-access-program
8fb565e96de7d7bb0bde31255aef0f291063e93c
[ "MIT" ]
1
2021-03-04T15:24:12.000Z
2021-03-04T15:24:12.000Z
backoffice/web/companies/serializers.py
uktrade/trade-access-program
8fb565e96de7d7bb0bde31255aef0f291063e93c
[ "MIT" ]
7
2020-08-24T13:27:02.000Z
2021-06-09T18:42:31.000Z
backoffice/web/companies/serializers.py
uktrade/trade-access-program
8fb565e96de7d7bb0bde31255aef0f291063e93c
[ "MIT" ]
1
2021-05-20T07:40:00.000Z
2021-05-20T07:40:00.000Z
from rest_framework import serializers from web.companies.models import Company, DnbGetCompanyResponse class DnbGetCompanyResponseSerializer(serializers.ModelSerializer): class Meta: model = DnbGetCompanyResponse fields = ['id', 'company', 'dnb_data', 'registration_number', 'company_address'] ...
32.609756
95
0.732236
1,221
0.913239
0
0
0
0
0
0
127
0.094989
ade713c52195e4d636a5f8f37736575316cae117
5,648
py
Python
src/4/lr_got.py
marmor97/cds-language-exam
d6f1aa543ba3f78d1a9f34c67a687e4f0944a665
[ "MIT" ]
null
null
null
src/4/lr_got.py
marmor97/cds-language-exam
d6f1aa543ba3f78d1a9f34c67a687e4f0944a665
[ "MIT" ]
null
null
null
src/4/lr_got.py
marmor97/cds-language-exam
d6f1aa543ba3f78d1a9f34c67a687e4f0944a665
[ "MIT" ]
null
null
null
# importing modules and packages # system tools import os import sys import argparse sys.path.append(os.path.join("..", "..")) from contextlib import redirect_stdout # pandas, numpy, gensim import pandas as pd import numpy as np import gensim.downloader # import my classifier utility functions - see the Github repo! ...
39.774648
266
0.611898
4,055
0.717953
0
0
0
0
0
0
2,398
0.424575
ade8f00c2e2f3654ec06ca9013834fd8116c8f47
1,743
py
Python
fight_tracker/arithmetic.py
jm-begon/fight_tracker
82dc6bbb9e24015e1dc3edbd05ce319b3c88626d
[ "BSD-3-Clause" ]
null
null
null
fight_tracker/arithmetic.py
jm-begon/fight_tracker
82dc6bbb9e24015e1dc3edbd05ce319b3c88626d
[ "BSD-3-Clause" ]
null
null
null
fight_tracker/arithmetic.py
jm-begon/fight_tracker
82dc6bbb9e24015e1dc3edbd05ce319b3c88626d
[ "BSD-3-Clause" ]
null
null
null
class Boolable: def __bool__(self): return False class DescriptiveTrue(Boolable): def __init__(self, description): self.description = description def __bool__(self): return True def __str__(self): return f"{self.description}" def __repr__(self): return f"...
23.554054
69
0.619048
1,728
0.991394
0
0
0
0
0
0
374
0.214573
adeb17cff886b521d293c0e2174cc4837bd14430
1,890
py
Python
isoprene_pumpjack/helpers/services.py
tommilligan/isoprene-pumpjack
175c7d963b4d3378a6ad434071cad1fb6d5b8a32
[ "Apache-2.0" ]
null
null
null
isoprene_pumpjack/helpers/services.py
tommilligan/isoprene-pumpjack
175c7d963b4d3378a6ad434071cad1fb6d5b8a32
[ "Apache-2.0" ]
null
null
null
isoprene_pumpjack/helpers/services.py
tommilligan/isoprene-pumpjack
175c7d963b4d3378a6ad434071cad1fb6d5b8a32
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python ''' Central execution points for non-python services ''' import logging from neo4j.v1 import GraphDatabase, basic_auth import neo4j.bolt.connection import elasticsearch.exceptions from isoprene_pumpjack.constants.environment import environment from isoprene_pumpjack.utils.neo_to_d3 import neo_...
34.363636
89
0.724868
0
0
0
0
0
0
0
0
498
0.263492
aded4518a2f294727acdd53f5c2f5b29c9ac192e
11,148
py
Python
test/inprogress/test_ee2_api/test_EE2API.py
eapearson/kbase-skd-module-job-browser-bff
426445f90569adac16632ef4921f174e51abd42f
[ "MIT" ]
null
null
null
test/inprogress/test_ee2_api/test_EE2API.py
eapearson/kbase-skd-module-job-browser-bff
426445f90569adac16632ef4921f174e51abd42f
[ "MIT" ]
6
2020-05-26T17:40:07.000Z
2022-03-11T16:33:11.000Z
test/inprogress/test_ee2_api/test_EE2API.py
eapearson/kbase-skd-module-job-browser-bff
426445f90569adac16632ef4921f174e51abd42f
[ "MIT" ]
1
2020-05-26T17:12:59.000Z
2020-05-26T17:12:59.000Z
# -*- coding: utf-8 -*- from JobBrowserBFF.TestBase import TestBase from JobBrowserBFF.model.EE2Api import EE2Api from JobBrowserBFF.schemas.Schema import Schema ENV = 'ci' USER_CLASS = 'user' UPSTREAM_SERVICE = 'ee2' JOB_ID_HAPPY = '5e8285adefac56a4b4bc2b14' JOB_ID_LOG_HAPPY = '5e8647c576f5df12d4fa6953' JOB_ID_NOT_FO...
39.392226
88
0.600646
10,613
0.952009
0
0
0
0
0
0
2,379
0.213402
adeda8e4831bfdd84daf5ffee1aa3f3be1652de6
529
py
Python
ldeep/views/activedirectory.py
podjackel/ldeep
dac9b6d92b905b66868897da4bcc2ec4fa1d0999
[ "MIT" ]
41
2018-10-24T12:10:34.000Z
2022-03-29T08:21:30.000Z
ldeep/views/activedirectory.py
podjackel/ldeep
dac9b6d92b905b66868897da4bcc2ec4fa1d0999
[ "MIT" ]
7
2018-10-25T16:34:25.000Z
2021-04-14T01:00:14.000Z
ldeep/views/activedirectory.py
podjackel/ldeep
dac9b6d92b905b66868897da4bcc2ec4fa1d0999
[ "MIT" ]
17
2019-01-08T15:06:15.000Z
2022-01-21T00:20:53.000Z
from ldap3 import ALL_ATTRIBUTES, ALL_OPERATIONAL_ATTRIBUTES from ldap3.protocol.formatters.validators import validate_sid, validate_guid ALL_ATTRIBUTES = ALL_ATTRIBUTES ALL_OPERATIONAL_ATTRIBUTES = ALL_OPERATIONAL_ATTRIBUTES ALL = [ALL_ATTRIBUTES, ALL_OPERATIONAL_ATTRIBUTES] validate_sid = validate_sid validate_guid...
24.045455
76
0.835539
189
0.357278
0
0
0
0
0
0
46
0.086957
adee84920a6fd9a1311346aec3afbb03a615787d
1,237
py
Python
sdk/python/pulumi_azure_native/automation/v20200113preview/__init__.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/automation/v20200113preview/__init__.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/automation/v20200113preview/__init__.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** from ... import _utilities import typing # Export this package's modules as members: from ._enums import * from .automation_account import * from .cert...
30.925
80
0.78658
0
0
0
0
0
0
0
0
208
0.168149
adf09047622763f9323976214e678f90e9ed8ff9
1,708
py
Python
project_name/urls.py
rafael-rpa/django-auth-extension-boilerplate
2fba1f4dc6a14da525c93303e86934682f4bfcbc
[ "MIT" ]
1
2017-04-26T10:13:34.000Z
2017-04-26T10:13:34.000Z
project_name/urls.py
rafael-rpa/django-auth-extension-boilerplate
2fba1f4dc6a14da525c93303e86934682f4bfcbc
[ "MIT" ]
null
null
null
project_name/urls.py
rafael-rpa/django-auth-extension-boilerplate
2fba1f4dc6a14da525c93303e86934682f4bfcbc
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.conf.urls import include, url from django.contrib import admin from auth_extension import views as auth_views from django.contrib.auth.views import login, logout, password_reset, password_reset_done, password_reset_confirm, password_reset_complete from django.conf im...
55.096774
276
0.730094
0
0
0
0
0
0
0
0
763
0.446721
adf16cd52d01a8a986221348b55fd5f12bd7c761
826
py
Python
test_day01.py
clfs/aoc2019
940fdbdd7bbb69c4a3a6c947c37bf7b60a201e88
[ "MIT" ]
null
null
null
test_day01.py
clfs/aoc2019
940fdbdd7bbb69c4a3a6c947c37bf7b60a201e88
[ "MIT" ]
null
null
null
test_day01.py
clfs/aoc2019
940fdbdd7bbb69c4a3a6c947c37bf7b60a201e88
[ "MIT" ]
null
null
null
def fuel_required(weight: int) -> int: return weight // 3 - 2 def fuel_required_accurate(weight: int) -> int: fuel = 0 while weight > 0: weight = max(0, weight // 3 - 2) fuel += weight return fuel def test_fuel_required() -> None: cases = [(12, 2), (14, 2), (1969, 654), (100756, ...
25.030303
60
0.605327
0
0
0
0
0
0
0
0
14
0.016949
adf4bfc1de4b0c89ad4020a842811facae16d88a
499
py
Python
Easy/After 157/175.Modified Kaprekar Numbers.py
sherryx080/CPTango
c7491156202fa7517c96b96dab27c867b949bb63
[ "MIT" ]
null
null
null
Easy/After 157/175.Modified Kaprekar Numbers.py
sherryx080/CPTango
c7491156202fa7517c96b96dab27c867b949bb63
[ "MIT" ]
null
null
null
Easy/After 157/175.Modified Kaprekar Numbers.py
sherryx080/CPTango
c7491156202fa7517c96b96dab27c867b949bb63
[ "MIT" ]
null
null
null
import sys p = int(sys.stdin.readline()) q = int(sys.stdin.readline()) result = [] for i in range(p,q+1): square = i * i l_num = 0 temp = list(str(square)) #print(temp[:len(temp)//2]) #print(temp[len(temp)//2:]) if square > 10: l_num = int(''.join(temp[:len(temp)//2])) r_num = int(...
20.791667
49
0.54509
0
0
0
0
0
0
0
0
76
0.152305
adf6daa9b589cfc3315f30adb8aabf6d767de08b
808
py
Python
catalyst/dl/callbacks/metrics/__init__.py
TeAmP0is0N/catalyst
445e366266196a2f1076cc7fa2438d66dfa58c14
[ "Apache-2.0" ]
1
2020-09-24T00:34:06.000Z
2020-09-24T00:34:06.000Z
catalyst/dl/callbacks/metrics/__init__.py
TeAmP0is0N/catalyst
445e366266196a2f1076cc7fa2438d66dfa58c14
[ "Apache-2.0" ]
null
null
null
catalyst/dl/callbacks/metrics/__init__.py
TeAmP0is0N/catalyst
445e366266196a2f1076cc7fa2438d66dfa58c14
[ "Apache-2.0" ]
1
2020-09-24T00:34:07.000Z
2020-09-24T00:34:07.000Z
# flake8: noqa from catalyst.dl.callbacks.metrics.accuracy import ( AccuracyCallback, MultiLabelAccuracyCallback, ) from catalyst.dl.callbacks.metrics.auc import AUCCallback from catalyst.dl.callbacks.metrics.cmc import CMCScoreCallback from catalyst.dl.callbacks.metrics.dice import ( DiceCallback, Mul...
27.862069
66
0.804455
0
0
0
0
0
0
0
0
14
0.017327
adf797c04c5912626a52449a6704952383c10673
451
py
Python
login/migrations/0003_user_token.py
yuxiaoYX/xiaoshuo
5652703521aa99774e8e0667c5e6b9f24a6d90ac
[ "MIT" ]
null
null
null
login/migrations/0003_user_token.py
yuxiaoYX/xiaoshuo
5652703521aa99774e8e0667c5e6b9f24a6d90ac
[ "MIT" ]
null
null
null
login/migrations/0003_user_token.py
yuxiaoYX/xiaoshuo
5652703521aa99774e8e0667c5e6b9f24a6d90ac
[ "MIT" ]
null
null
null
# Generated by Django 2.2.1 on 2019-07-28 08:12 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('login', '0002_auto_20190720_1846'), ] operations = [ migrations.AddField( model_name='user', name='token', ...
22.55
86
0.605322
362
0.795604
0
0
0
0
0
0
105
0.230769
adfa006844d8a11fe82113a8c42d8b2a11a4d2bc
10,777
py
Python
usersystem/views.py
sergioruizdavila/asanni-backend
b2da3f3a97dbd1ef46d65f13ee9b2098124d4fc4
[ "MIT" ]
8
2018-05-24T04:46:58.000Z
2021-06-11T04:41:49.000Z
usersystem/views.py
sergioruizdavila/asanni-backend
b2da3f3a97dbd1ef46d65f13ee9b2098124d4fc4
[ "MIT" ]
null
null
null
usersystem/views.py
sergioruizdavila/asanni-backend
b2da3f3a97dbd1ef46d65f13ee9b2098124d4fc4
[ "MIT" ]
4
2020-01-24T13:35:42.000Z
2021-06-15T07:38:06.000Z
from allauth.account.utils import setup_user_email, send_email_confirmation from rest_framework.response import Response from usersystem.serializers import UserSerializer, UserRegisterSerializer from rest_framework.views import APIView from rest_framework.status import HTTP_200_OK, HTTP_400_BAD_REQUEST, HTTP_201_CREATE...
39.47619
119
0.675049
10,011
0.928923
0
0
0
0
0
0
3,700
0.343324
adfa93c02e8adb449c205b08b98c00c078beda51
13,966
py
Python
splitgraph/commandline/image_creation.py
Trase/splitgraph
ef8332b29640230f4eebcbb350a37c67285064b1
[ "Apache-2.0" ]
1
2020-06-24T23:42:11.000Z
2020-06-24T23:42:11.000Z
splitgraph/commandline/image_creation.py
Trase/splitgraph
ef8332b29640230f4eebcbb350a37c67285064b1
[ "Apache-2.0" ]
null
null
null
splitgraph/commandline/image_creation.py
Trase/splitgraph
ef8332b29640230f4eebcbb350a37c67285064b1
[ "Apache-2.0" ]
null
null
null
""" sgr commands related to creating and checking out images """ import sys from collections import defaultdict import click from splitgraph.commandline.common import ImageType, RepositoryType, JsonType, remote_switch_option from splitgraph.config import get_singleton, CONFIG from splitgraph.exceptions import TableNo...
37.951087
164
0.680009
0
0
0
0
13,619
0.975154
0
0
8,706
0.623371
adfb427ed9c8aea967913aed0f52cd6bbf4bc8fe
1,661
py
Python
tests/libtests/geocoords/data/ConvertDataApp.py
jedbrown/spatialdata
f18d34d92253986e8018f393201bf901e9667c2a
[ "MIT" ]
null
null
null
tests/libtests/geocoords/data/ConvertDataApp.py
jedbrown/spatialdata
f18d34d92253986e8018f393201bf901e9667c2a
[ "MIT" ]
null
null
null
tests/libtests/geocoords/data/ConvertDataApp.py
jedbrown/spatialdata
f18d34d92253986e8018f393201bf901e9667c2a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # ====================================================================== # # Brad T. Aagaard, U.S. Geological Survey # # This code was developed as part of the Computational Infrastructure # for Geodynamics (http://geodynamics.org). # # Copyright (c) 2010-2017 University of California, Davis # #...
27.229508
78
0.64419
932
0.561108
0
0
0
0
0
0
985
0.593016
adfb5713c6c3ab922ee55b1c8b7f49f69297f607
381
py
Python
index.py
FunctionX/validator_queries
842d0a75ee07f48b972d1bb18d292cadc730fa8b
[ "MIT" ]
null
null
null
index.py
FunctionX/validator_queries
842d0a75ee07f48b972d1bb18d292cadc730fa8b
[ "MIT" ]
null
null
null
index.py
FunctionX/validator_queries
842d0a75ee07f48b972d1bb18d292cadc730fa8b
[ "MIT" ]
null
null
null
import subprocess import json import csv from csv import DictWriter import datetime import pandas as pd import Cmd import Data from Report import Report import File def main(): Data.val_earnings_w_sum_columns() dataframe=Data.get_val_token_info() dataframe.to_csv(File._generate_file_name("fxcored_s...
14.111111
77
0.76378
0
0
0
0
0
0
0
0
26
0.068241
adfc25dd827903785cf0dc2f054806e377cdcb01
1,000
py
Python
py/py_0067_maximum_path_sum_ii.py
lcsm29/project-euler
fab794ece5aa7a11fc7c2177f26250f40a5b1447
[ "MIT" ]
null
null
null
py/py_0067_maximum_path_sum_ii.py
lcsm29/project-euler
fab794ece5aa7a11fc7c2177f26250f40a5b1447
[ "MIT" ]
null
null
null
py/py_0067_maximum_path_sum_ii.py
lcsm29/project-euler
fab794ece5aa7a11fc7c2177f26250f40a5b1447
[ "MIT" ]
null
null
null
# Solution of; # Project Euler Problem 67: Maximum path sum II # https://projecteuler.net/problem=67 # # By starting at the top of the triangle below and moving to adjacent numbers # on the row below, the maximum total from top to bottom is 23. 37 42 4 68 5 9 # 3That is, 3 + 7 + 4 + 9 = 23. Find the maximum total fr...
35.714286
79
0.706
0
0
0
0
0
0
0
0
845
0.845
adfd589bdaa5f2bed3080ab8be5e570ad08ea48a
1,457
py
Python
sistemas_lineares.py
lucaspompeun/metodos-matematicos-aplicados-nas-engenharias-via-sistemas-computacionais
008d397f76a935af1aba530cc0134b9dd326d3ac
[ "MIT" ]
16
2019-09-27T03:08:44.000Z
2020-10-16T18:43:45.000Z
primeira-edicao/sistemas_lineares.py
gm2sc-ifpa/metodos-matematicos-aplicados-nas-engenharias-via-sistemas-computacionais-master
f435c366e08dc14b0557f2172ad3b841ddb7ef2e
[ "MIT" ]
null
null
null
primeira-edicao/sistemas_lineares.py
gm2sc-ifpa/metodos-matematicos-aplicados-nas-engenharias-via-sistemas-computacionais-master
f435c366e08dc14b0557f2172ad3b841ddb7ef2e
[ "MIT" ]
5
2019-09-13T20:00:38.000Z
2020-09-19T03:04:00.000Z
# -*- coding: utf-8 -*- """ Created on Wed Mar 27 18:19:25 2019 INSTITUTO FEDERAL DE EDUCAÇÃO, CIÊNCIA E TECNOLOGIA DO PÁRA - IFPA ANANINDEUA @author: Prof. Dr. Denis C. L. Costa Discentes: Heictor Alves de Oliveira Costa Lucas Pompeu Neves Grupo...
26.981481
78
0.572409
0
0
0
0
0
0
0
0
1,197
0.810976
adfdf98fe1afda40d1e086b86ceaf5056842822c
1,956
py
Python
observations/r/unemp_dur.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
199
2017-07-24T01:34:27.000Z
2022-01-29T00:50:55.000Z
observations/r/unemp_dur.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
46
2017-09-05T19:27:20.000Z
2019-01-07T09:47:26.000Z
observations/r/unemp_dur.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
45
2017-07-26T00:10:44.000Z
2022-03-16T20:44:59.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import csv import numpy as np import os import sys from observations.util import maybe_download_and_extract def unemp_dur(path): """Unemployment Duration Journal of Business Econ...
22.744186
71
0.674847
0
0
0
0
0
0
0
0
1,260
0.642202
adff3e929b131603bc3d8d375940f959a87b03cb
138
py
Python
Exe22.py
flavioUENP/aula1
8deba1de0ac54109c54d7e44d2852a8ca639e625
[ "Apache-2.0" ]
null
null
null
Exe22.py
flavioUENP/aula1
8deba1de0ac54109c54d7e44d2852a8ca639e625
[ "Apache-2.0" ]
null
null
null
Exe22.py
flavioUENP/aula1
8deba1de0ac54109c54d7e44d2852a8ca639e625
[ "Apache-2.0" ]
null
null
null
f=float(input("Digite a temperatura na escala Farenheit: ")) celsius=5/9*(f-32) print("A temperatura",f,"ºF, Em Célsius é: ",celsius,"ºC")
46
60
0.702899
0
0
0
0
0
0
0
0
87
0.612676
bc0331e695df64f1d609fc39793c9079fcfd83e0
1,289
py
Python
Exercicios/Mundo 2/ex044.py
EdsonRomao/CursoEmVideo
caf99f5a54c001069572a0318dfcaa50d028d362
[ "MIT" ]
null
null
null
Exercicios/Mundo 2/ex044.py
EdsonRomao/CursoEmVideo
caf99f5a54c001069572a0318dfcaa50d028d362
[ "MIT" ]
null
null
null
Exercicios/Mundo 2/ex044.py
EdsonRomao/CursoEmVideo
caf99f5a54c001069572a0318dfcaa50d028d362
[ "MIT" ]
null
null
null
""" Elabore um programa que calcule o valor a ser pago por um produto, considerando o seu PREÇO NORMAL e CONDIÇÃO DE PAGAMENTO: - À vista dinheiro/cheque: 10% de desconto - À vista no cartão: 5% de desconto - Em até 2x no cartão: Preço normal - 3x ou mais no cartão: 20% de JUROS """ preco = float(input('Qual o valor d...
40.28125
119
0.619085
0
0
0
0
0
0
0
0
928
0.703563
bc03aad972f5e963ed741a11cdefd802a8d37393
11,558
py
Python
Sampling/gp/GPy_wrapper.py
josephhic/AutoDot
9acd0ddab9191b8a90afc6f1f6373cf711b40b89
[ "MIT" ]
7
2020-09-16T23:50:01.000Z
2022-01-29T13:31:35.000Z
Sampling/gp/GPy_wrapper.py
josephhic/AutoDot
9acd0ddab9191b8a90afc6f1f6373cf711b40b89
[ "MIT" ]
1
2022-01-15T14:50:16.000Z
2022-01-15T14:50:16.000Z
Sampling/gp/GPy_wrapper.py
josephhic/AutoDot
9acd0ddab9191b8a90afc6f1f6373cf711b40b89
[ "MIT" ]
6
2020-08-20T11:52:51.000Z
2021-03-12T08:04:35.000Z
import numpy as np import GPy from .GP_interface import GPInterface, convert_lengthscale, convert_2D_format class GPyWrapper(GPInterface): def __init__(self): # GPy settings GPy.plotting.change_plotting_library("matplotlib") # use matpoltlib for drawing super().__init__() self.cen...
37.771242
149
0.626752
9,886
0.855338
0
0
0
0
0
0
2,101
0.181779
bc03d7e1e8567f7bd294e43c4cbf61eccfd77084
128
py
Python
Deploying_Models/deploying_sentiment_classifier/SAGunicorn.py
oke-aditya/Machine_Learning
3dd40ae2b9cba1890e7060448e75c14194b27775
[ "MIT" ]
15
2019-11-16T11:09:24.000Z
2022-01-09T01:58:03.000Z
Deploying_Models/deploying_sentiment_classifier/SAGunicorn.py
oke-aditya/Machine_Learning
3dd40ae2b9cba1890e7060448e75c14194b27775
[ "MIT" ]
1
2021-11-10T19:46:00.000Z
2021-11-10T19:46:00.000Z
Deploying_Models/deploying_sentiment_classifier/SAGunicorn.py
oke-aditya/Machine_Learning
3dd40ae2b9cba1890e7060448e75c14194b27775
[ "MIT" ]
null
null
null
from flask_adv_deploy import app # Note Gunicorn is not supported in Windows machine. if __name__ == "__main__": app.run()
21.333333
52
0.742188
0
0
0
0
0
0
0
0
62
0.484375
bc05ff0b37a8954f4cefbbcdd8fe6e02c5cb64be
3,938
py
Python
12/12.py
Hegemege/advent-of-code-2018
298e1dc95486df6888c3fb5b73d92dfc49703f8a
[ "MIT" ]
null
null
null
12/12.py
Hegemege/advent-of-code-2018
298e1dc95486df6888c3fb5b73d92dfc49703f8a
[ "MIT" ]
null
null
null
12/12.py
Hegemege/advent-of-code-2018
298e1dc95486df6888c3fb5b73d92dfc49703f8a
[ "MIT" ]
null
null
null
class Node: def __init__(self, value, index, next, previous): self.value = value self.next_value = value self.index = index self.next = next self.previous = previous def main(): input_data = read_input() initial_row = input_data.pop(0) # Extract the initial state...
28.744526
149
0.624937
209
0.053073
0
0
0
0
0
0
748
0.189944
bc068191a843e9f2423e9bfc3bb78487a28b39fc
2,243
py
Python
vissl/models/heads/__init__.py
blazejdolicki/vissl
9c10748a19fb1c637f32687142c8cd685f2410ff
[ "MIT" ]
2,512
2021-01-27T18:44:44.000Z
2022-03-31T19:33:49.000Z
vissl/models/heads/__init__.py
blazejdolicki/vissl
9c10748a19fb1c637f32687142c8cd685f2410ff
[ "MIT" ]
361
2021-01-27T20:12:09.000Z
2022-03-31T12:39:34.000Z
vissl/models/heads/__init__.py
blazejdolicki/vissl
9c10748a19fb1c637f32687142c8cd685f2410ff
[ "MIT" ]
277
2021-01-29T08:09:02.000Z
2022-03-31T07:57:35.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from pathlib import Path from typing import Callable from classy_vision.generic.registry_utils import import_all_modules FILE_ROOT = Path(__...
28.0375
86
0.695497
0
0
0
0
0
0
0
0
1,061
0.473027
bc06f93db51ec5a28da1f833b4d4dd387dfb4c40
751
py
Python
users/tests.py
tonyguthiga/instagram
4d49e8c8cf0efb8ac875d2986956ddcce756864b
[ "Unlicense" ]
null
null
null
users/tests.py
tonyguthiga/instagram
4d49e8c8cf0efb8ac875d2986956ddcce756864b
[ "Unlicense" ]
null
null
null
users/tests.py
tonyguthiga/instagram
4d49e8c8cf0efb8ac875d2986956ddcce756864b
[ "Unlicense" ]
null
null
null
from django.test import TestCase # Create your tests here. from django.test import TestCase from django.contrib.auth.models import User from .models import Profile class ProfileTestClass(TestCase): ''' test class for Profile model ''' def setUp(self): self.user = User.objects.create_user("tes...
34.136364
133
0.643142
584
0.77763
0
0
0
0
0
0
197
0.262317
bc0762cc61dc9010fbb5ce8a4cca396976aadaf0
800
py
Python
tests/strangenames.py
DasSkelett/AVC-VersionFileValidator
f31bab0cf5e273cbb675ffaf921741c32b3a2e15
[ "MIT" ]
2
2019-12-18T16:34:06.000Z
2020-03-13T03:31:26.000Z
tests/strangenames.py
DasSkelett/AVC-VersionFileValidator
f31bab0cf5e273cbb675ffaf921741c32b3a2e15
[ "MIT" ]
4
2019-12-22T18:40:31.000Z
2020-05-07T00:52:48.000Z
tests/strangenames.py
DasSkelett/AVC-VersionFileValidator
f31bab0cf5e273cbb675ffaf921741c32b3a2e15
[ "MIT" ]
null
null
null
import os from pathlib import Path from unittest import TestCase import validator.validator as validator from .test_utils import schema, build_map class TestStrangeNames(TestCase): old_cwd = os.getcwd() @classmethod def setUpClass(cls): os.chdir('./tests/workspaces/strange-names') @classmet...
29.62963
93
0.70125
649
0.81125
0
0
160
0.2
0
0
145
0.18125
bc0820e97035bc22e07e063ecf6170b4f34d25c6
640
py
Python
Chap 1/Class-List-(project2).py
dwhickox/NCHS-Programming-1-Python-Programs
96eba3826585a81a015740f59329c7a06afc9db7
[ "MIT" ]
null
null
null
Chap 1/Class-List-(project2).py
dwhickox/NCHS-Programming-1-Python-Programs
96eba3826585a81a015740f59329c7a06afc9db7
[ "MIT" ]
null
null
null
Chap 1/Class-List-(project2).py
dwhickox/NCHS-Programming-1-Python-Programs
96eba3826585a81a015740f59329c7a06afc9db7
[ "MIT" ]
null
null
null
# David Hickox # Jan 12 17 # HickoxProject2 # Displayes name and classes # prints my name and classes in columns and waits for the user to hit enter to end the program print("David Hickox") print() print("1st Band") print("2nd Programming") print("3rd Ap Pysics C") print("4th Lunch") print("5th Ap Lang...
27.826087
184
0.676563
0
0
0
0
0
0
0
0
534
0.834375
bc09c9f073047ca21417a9bc0a6bb6aae99588bd
7,080
py
Python
easy_tokenizer/tokenizer.py
tilaboy/easy-tokenizer
c7b99bafa0a22bf0956129cdfd4c9c1069a5df57
[ "MIT" ]
1
2019-10-23T00:40:38.000Z
2019-10-23T00:40:38.000Z
easy_tokenizer/tokenizer.py
tilaboy/easy_tokenizer
c7b99bafa0a22bf0956129cdfd4c9c1069a5df57
[ "MIT" ]
188
2019-11-16T01:48:33.000Z
2022-03-28T09:36:19.000Z
easy_tokenizer/tokenizer.py
tilaboy/easy-tokenizer
c7b99bafa0a22bf0956129cdfd4c9c1069a5df57
[ "MIT" ]
null
null
null
'''Tokenizer Class''' # -*- encoding: utf-8 -*- import re from .token_with_pos import TokenWithPos from .patterns import Patterns class Tokenizer(): ''' A basic Tokenizer class to tokenize strings and patterns Parameters: - regexp: regexp used to tokenize the string ''' def __init__(self,...
35.223881
76
0.524859
6,947
0.981215
5,037
0.711441
0
0
0
0
1,034
0.146045