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
71c07edf7c5c3864d451ebab890ced63f246e9c3
3,303
py
Python
alipay/aop/api/domain/AlipayMerchantAuthDeleteModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayMerchantAuthDeleteModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayMerchantAuthDeleteModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayMerchantAuthDeleteModel(object): def __init__(self): self._channel_code = None self._operator_id = None self._role = None self._scene_code = None sel...
30.302752
75
0.578868
3,186
0.964578
0
0
1,371
0.415077
0
0
376
0.113836
71c0cce85adc329d434c5d37b1c07b2cd22f1f21
410
py
Python
test/torchaudio_unittest/models/emformer/emformer_cpu_test.py
LaudateCorpus1/audio
a007e922d34028270197c0549bf452b79499d039
[ "BSD-2-Clause" ]
null
null
null
test/torchaudio_unittest/models/emformer/emformer_cpu_test.py
LaudateCorpus1/audio
a007e922d34028270197c0549bf452b79499d039
[ "BSD-2-Clause" ]
null
null
null
test/torchaudio_unittest/models/emformer/emformer_cpu_test.py
LaudateCorpus1/audio
a007e922d34028270197c0549bf452b79499d039
[ "BSD-2-Clause" ]
null
null
null
import torch from torchaudio_unittest.common_utils import PytorchTestCase from torchaudio_unittest.models.emformer.emformer_test_impl import EmformerTestImpl class EmformerFloat32CPUTest(EmformerTestImpl, PytorchTestCase): dtype = torch.float32 device = torch.device("cpu") class EmformerFloat64CPUTest(Emfor...
29.285714
83
0.814634
246
0.6
0
0
0
0
0
0
10
0.02439
71c15aae1f82d17826550ce3299615cff978924d
2,206
py
Python
src/nba_analysis/pipelines/data_processing/pipeline.py
stanton119/nba-analysis
79343150edaaa97472939c47b3ce521e038871b0
[ "MIT" ]
null
null
null
src/nba_analysis/pipelines/data_processing/pipeline.py
stanton119/nba-analysis
79343150edaaa97472939c47b3ce521e038871b0
[ "MIT" ]
null
null
null
src/nba_analysis/pipelines/data_processing/pipeline.py
stanton119/nba-analysis
79343150edaaa97472939c47b3ce521e038871b0
[ "MIT" ]
1
2021-12-16T01:04:09.000Z
2021-12-16T01:04:09.000Z
""" Two pipelines: * full history * update latest season * Only updates latest season year """ from functools import partial import itertools from kedro.pipeline import Pipeline, node from nba_analysis.pipelines.data_processing import basketball_reference from . import nodes def create_pipeline(**kwargs): ...
30.219178
131
0.602901
0
0
0
0
0
0
0
0
847
0.383953
71c3d256540447d130560ac9efdd84ad55be2fad
970
py
Python
IceSpringMusicPlayer/plugins/IceSpringHelloWorldPlugin/helloWorldPlugin.py
baijifeilong/rawsteelp
425547e6e2395bf4acb62435b18b5b3a4b7ebef4
[ "MIT" ]
null
null
null
IceSpringMusicPlayer/plugins/IceSpringHelloWorldPlugin/helloWorldPlugin.py
baijifeilong/rawsteelp
425547e6e2395bf4acb62435b18b5b3a4b7ebef4
[ "MIT" ]
null
null
null
IceSpringMusicPlayer/plugins/IceSpringHelloWorldPlugin/helloWorldPlugin.py
baijifeilong/rawsteelp
425547e6e2395bf4acb62435b18b5b3a4b7ebef4
[ "MIT" ]
null
null
null
# Created by BaiJiFeiLong@gmail.com at 2022/1/21 17:13 import typing from IceSpringRealOptional.typingUtils import gg from PySide2 import QtWidgets, QtCore from IceSpringMusicPlayer import tt from IceSpringMusicPlayer.common.pluginMixin import PluginMixin from IceSpringMusicPlayer.common.pluginWidgetMixin import Plu...
33.448276
93
0.760825
591
0.609278
0
0
251
0.258763
0
0
67
0.069072
71c4e4d0291e170dbdedace4be31a3f5ab545979
3,259
py
Python
SWHT/Ylm.py
2baOrNot2ba/SWHT
738718e90d615e624dacf7746f8a2dfa973ec9fe
[ "BSD-3-Clause" ]
null
null
null
SWHT/Ylm.py
2baOrNot2ba/SWHT
738718e90d615e624dacf7746f8a2dfa973ec9fe
[ "BSD-3-Clause" ]
null
null
null
SWHT/Ylm.py
2baOrNot2ba/SWHT
738718e90d615e624dacf7746f8a2dfa973ec9fe
[ "BSD-3-Clause" ]
null
null
null
""" An implementation on spherical harmonics in python becasue scipy.special.sph_harm in scipy<=0.13 is very slow Originally written by Jozef Vesely https://github.com/scipy/scipy/issues/1280 """ import numpy as np def xfact(m): # computes (2m-1)!!/sqrt((2m)!) res = 1. for i in xrange(1, 2*m+1): ...
32.919192
109
0.56367
0
0
0
0
0
0
0
0
1,005
0.308377
71c7397a9aa9b39fdf9e024d5ca5dfdc737b974f
1,820
py
Python
0673.GCBA-HOTEL_STAFF.py
alphacastio/connectors-gcba
d1b97fb851463694ea844b3b81402c3ea747863b
[ "MIT" ]
1
2021-11-19T21:37:01.000Z
2021-11-19T21:37:01.000Z
0673.GCBA-HOTEL_STAFF.py
alphacastio/connectors-gcba
d1b97fb851463694ea844b3b81402c3ea747863b
[ "MIT" ]
null
null
null
0673.GCBA-HOTEL_STAFF.py
alphacastio/connectors-gcba
d1b97fb851463694ea844b3b81402c3ea747863b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[9]: import requests import pandas as pd from lxml import etree from bs4 import BeautifulSoup import datetime import io import numpy as np from alphacast import Alphacast from dotenv import dotenv_values API_KEY = dotenv_values(".env").get("API_KEY") alphacast = Alphacast(A...
27.575758
95
0.686813
0
0
0
0
0
0
0
0
580
0.318506
71c798c6020de830cf23434ebeb38ea555cc0bd8
5,572
py
Python
simpleGmatch4py.py
aravi11/approxGed
6c0a2ed4fd1bcc86c22169e3c96fcf4de717bf8c
[ "MIT" ]
null
null
null
simpleGmatch4py.py
aravi11/approxGed
6c0a2ed4fd1bcc86c22169e3c96fcf4de717bf8c
[ "MIT" ]
null
null
null
simpleGmatch4py.py
aravi11/approxGed
6c0a2ed4fd1bcc86c22169e3c96fcf4de717bf8c
[ "MIT" ]
null
null
null
# import the GED using the munkres algorithm import gmatch4py as gm import networkx as nx import collections import csv import pickle from collections import OrderedDict import json import concurrent.futures as cf import time iter = 0 def getFinishedStatus(): iter +=1 print('*******\t' + str(iter)+ "\t*****...
32.395349
130
0.644113
0
0
0
0
0
0
0
0
2,092
0.375449
71c80c035280e16e1aaf199b5f9834181e50b2ad
1,940
py
Python
src/blockdiag/utils/rst/nodes.py
Dridi/blockdiag
bbb16f8a731cdf79a675a63c1ff847e70fdc4a5b
[ "Apache-2.0" ]
null
null
null
src/blockdiag/utils/rst/nodes.py
Dridi/blockdiag
bbb16f8a731cdf79a675a63c1ff847e70fdc4a5b
[ "Apache-2.0" ]
null
null
null
src/blockdiag/utils/rst/nodes.py
Dridi/blockdiag
bbb16f8a731cdf79a675a63c1ff847e70fdc4a5b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2011 Takeshi KOMIYA # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
35.272727
78
0.640206
1,189
0.612887
0
0
0
0
0
0
711
0.366495
71c81073e9fc83a90c2d12dc9cb29a2d00b1831d
1,355
py
Python
python-advanced/chp1/main.py
emiliachojak/bio-projects
d2e5290b48613ef6721e303b3490a98cf4cbf6c0
[ "MIT" ]
2
2019-12-11T20:55:46.000Z
2020-06-17T14:01:07.000Z
python-advanced/chp1/main.py
emiliachojak/bio-projects
d2e5290b48613ef6721e303b3490a98cf4cbf6c0
[ "MIT" ]
null
null
null
python-advanced/chp1/main.py
emiliachojak/bio-projects
d2e5290b48613ef6721e303b3490a98cf4cbf6c0
[ "MIT" ]
1
2019-12-11T20:58:45.000Z
2019-12-11T20:58:45.000Z
# -*- coding: utf-8 -*- """ Created on Thu Dec 19 20:00:00 2019 @author: Emilia Chojak @e-mail: emilia.chojak@gmail.com """ tax_dict = { 'Pan troglodytes' : 'Hominoidea', 'Pongo abelii' : 'Hominoidea', 'Hominoidea' : 'Simiiformes', 'Simiiformes' : 'Haplorrhini', 'Tarsius tarsier' : 'Tarsiiformes', 'Haplorrhini' : 'Pr...
30.111111
88
0.677491
0
0
0
0
0
0
0
0
582
0.42952
71c859d9d13c7c86199e6c92e91a1441fbf8c1ae
334
py
Python
Python/csv/1.py
LeishenKOBE/good-good-study
ac6b859f53b8b95f0746f35c5278009a5cad40a8
[ "MIT" ]
null
null
null
Python/csv/1.py
LeishenKOBE/good-good-study
ac6b859f53b8b95f0746f35c5278009a5cad40a8
[ "MIT" ]
null
null
null
Python/csv/1.py
LeishenKOBE/good-good-study
ac6b859f53b8b95f0746f35c5278009a5cad40a8
[ "MIT" ]
null
null
null
import csv # with open('./1.csv', newline='', encoding='utf-8') as f: # reader = csv.reader(f) # for row in reader: # print(row) with open('./1.csv', 'a', encoding='utf-8') as f: writer = csv.writer(f) writer.writerow(['4', '็Œซ็ ‚', '25', '1022', '886']) writer.writerow(['5', '็Œซ็ฝๅคด', '18', '22...
27.833333
58
0.535928
0
0
0
0
0
0
0
0
205
0.59593
71c972e7ade9ba017ed68282dda02ffa0b10d89d
5,110
py
Python
src/solana/rpc/responses.py
broper2/solana-py
146390d959f017e137238335ee6fa362ad1a1ab4
[ "MIT" ]
1
2021-12-13T05:28:52.000Z
2021-12-13T05:28:52.000Z
src/solana/rpc/responses.py
broper2/solana-py
146390d959f017e137238335ee6fa362ad1a1ab4
[ "MIT" ]
1
2021-08-11T10:33:16.000Z
2021-08-11T10:33:16.000Z
src/solana/rpc/responses.py
broper2/solana-py
146390d959f017e137238335ee6fa362ad1a1ab4
[ "MIT" ]
2
2021-06-23T15:29:56.000Z
2022-01-29T06:24:01.000Z
"""This module contains code for parsing RPC responses.""" from dataclasses import dataclass, field from typing import Union, Tuple, Any, Dict, List, Optional, Literal from apischema import alias from apischema.conversions import as_str from solana.publickey import PublicKey from solana.transaction import Transactio...
19.429658
112
0.73816
3,937
0.77045
0
0
4,278
0.837182
0
0
1,377
0.269472
71c9afc9f2fd7d8896cef3ef910e93c309b9fb9f
1,845
py
Python
python/data_structures/binheap.py
adriennekarnoski/data-structures
86ccf988ac02884749226236ad4ac37762873efa
[ "MIT" ]
1
2017-11-05T20:59:04.000Z
2017-11-05T20:59:04.000Z
python/data_structures/binheap.py
adriennekarnoski/data-structures
86ccf988ac02884749226236ad4ac37762873efa
[ "MIT" ]
5
2017-12-15T01:37:47.000Z
2018-02-20T22:51:29.000Z
python/data_structures/binheap.py
adriennekarnoski/data-structures
86ccf988ac02884749226236ad4ac37762873efa
[ "MIT" ]
null
null
null
"""Build a binary min heap object.""" from math import floor class BinaryHeap(object): """Create a Binary Heap object as a Min Heap.""" def __init__(self): """Initialize the heap list to be used by Binary Heap.""" self._heap_list = [] def push(self, val): """Add new value to heap...
30.245902
67
0.505149
1,781
0.965312
0
0
0
0
0
0
413
0.223848
71ca38941354160e243965319c30a6e676cdeb33
1,547
py
Python
vesper/archive_settings.py
RichardLitt/Vesper
5360844f42a06942e7684121c650b08cf8616285
[ "MIT" ]
29
2017-07-10T14:49:15.000Z
2022-02-02T23:14:38.000Z
vesper/archive_settings.py
Tubbz-alt/Vesper
76e5931ca0c7fbe070c53b1362ec246ec9007beb
[ "MIT" ]
167
2015-03-17T14:45:22.000Z
2022-03-30T21:00:05.000Z
vesper/archive_settings.py
Tubbz-alt/Vesper
76e5931ca0c7fbe070c53b1362ec246ec9007beb
[ "MIT" ]
4
2015-02-06T03:30:27.000Z
2020-12-27T08:38:52.000Z
""" Vesper archive settings. The Vesper server serves the Vesper archive that is in the directory in which the server starts. The archive settings are the composition of a set of default settings (hard-coded in this module) and settings (optionally) specified in the file "Archive Settings.yaml" in the archive director...
24.555556
75
0.701357
0
0
0
0
0
0
0
0
516
0.333549
71ca8311a73312ae9b4e292ad1989e57d088b408
9,841
py
Python
autotf/model/vgg16.py
DAIM-ML/autotf
3f82d858f49c27d5ecb624cee555fb8fd47bf067
[ "BSD-3-Clause" ]
8
2018-03-07T06:58:16.000Z
2019-01-30T07:49:44.000Z
autotf/model/vgg16.py
DAIM-ML/autotf
3f82d858f49c27d5ecb624cee555fb8fd47bf067
[ "BSD-3-Clause" ]
null
null
null
autotf/model/vgg16.py
DAIM-ML/autotf
3f82d858f49c27d5ecb624cee555fb8fd47bf067
[ "BSD-3-Clause" ]
1
2018-03-31T09:06:12.000Z
2018-03-31T09:06:12.000Z
#-*- coding=utf-8 -*- from __future__ import division, print_function, absolute_import from base_model import BaseModel from helper import * import tensorflow as tf import pickle import numpy as np import time class Vgg16(BaseModel): default_param = { "loss" : "square_loss", "metrics" : ["loss"], ...
39.681452
156
0.580124
9,665
0.978338
525
0.053143
0
0
0
0
863
0.087357
71cad3858a3b017c8adbe9bb0a7f32ee389c518f
3,226
py
Python
LEGEND/modules/_exec.py
RAJESHSAINI2113/LEGENDX
82c3c61062e804c3bf8b6e4ee31d1e603ab8bfd0
[ "MIT" ]
2
2021-03-01T03:50:22.000Z
2021-03-05T07:13:19.000Z
LEGEND/modules/_exec.py
RAJESHSAINI2113/LEGENDX
82c3c61062e804c3bf8b6e4ee31d1e603ab8bfd0
[ "MIT" ]
null
null
null
LEGEND/modules/_exec.py
RAJESHSAINI2113/LEGENDX
82c3c61062e804c3bf8b6e4ee31d1e603ab8bfd0
[ "MIT" ]
5
2021-03-01T08:40:31.000Z
2021-10-01T16:32:04.000Z
import subprocess from LEGEND import tbot as bot from LEGEND import tbot as borg from LEGEND.events import register from LEGEND import OWNER_ID, SUDO_USERS import asyncio import traceback import io import os import sys import time from telethon.tl import functions from telethon.tl import types from telethon.tl.types im...
27.810345
127
0.623993
0
0
0
0
2,453
0.760384
2,800
0.867948
413
0.128022
71cb7166ebfc6dcb81586c67d3970300c6d339d5
2,850
py
Python
src/tools/pch.py
MaxSac/build
482c25f3a26171073c7e6c59f0427f2259a63fec
[ "BSL-1.0" ]
11,356
2017-12-08T19:42:32.000Z
2022-03-31T16:55:25.000Z
src/tools/pch.py
MaxSac/build
482c25f3a26171073c7e6c59f0427f2259a63fec
[ "BSL-1.0" ]
2,402
2017-12-08T22:31:01.000Z
2022-03-28T19:25:52.000Z
src/tools/pch.py
MaxSac/build
482c25f3a26171073c7e6c59f0427f2259a63fec
[ "BSL-1.0" ]
1,343
2017-12-08T19:47:19.000Z
2022-03-26T11:31:36.000Z
# Status: Being ported by Steven Watanabe # Base revision: 47077 # # Copyright (c) 2005 Reece H. Dunn. # Copyright 2006 Ilya Sokolov # Copyright (c) 2008 Steven Watanabe # # Use, modification and distribution is subject to the Boost Software # License Version 1.0. (See accompanying file LICENSE_1_0.txt or # http://www....
33.928571
84
0.635789
1,447
0.507719
0
0
0
0
0
0
1,806
0.633684
71cba591b2f2458645ed1d92e6c6191526e0649e
3,274
py
Python
packages/pytest-simcore/src/pytest_simcore/helpers/utils_login.py
GitHK/osparc-simcore-forked
5b01a28d1b8028afcf9a735e1d46a73daa13686e
[ "MIT" ]
null
null
null
packages/pytest-simcore/src/pytest_simcore/helpers/utils_login.py
GitHK/osparc-simcore-forked
5b01a28d1b8028afcf9a735e1d46a73daa13686e
[ "MIT" ]
17
2020-10-15T16:06:05.000Z
2022-03-21T18:48:21.000Z
packages/pytest-simcore/src/pytest_simcore/helpers/utils_login.py
GitHK/osparc-simcore-forked
5b01a28d1b8028afcf9a735e1d46a73daa13686e
[ "MIT" ]
null
null
null
import re from typing import Dict from aiohttp import web from yarl import URL from simcore_service_webserver.db_models import UserRole, UserStatus from simcore_service_webserver.login.cfg import cfg, get_storage from simcore_service_webserver.login.registration import create_invitation from simcore_service_webserver...
28.224138
85
0.668907
1,427
0.435858
0
0
0
0
1,765
0.539096
308
0.094075
71cc3ccb2a64dc7939c236363e16d9e1816e901e
2,806
py
Python
indra/tests/test_sparser.py
jmuhlich/indra
feab2c08541ea73f328579faa6a21b08082cb026
[ "BSD-2-Clause" ]
null
null
null
indra/tests/test_sparser.py
jmuhlich/indra
feab2c08541ea73f328579faa6a21b08082cb026
[ "BSD-2-Clause" ]
null
null
null
indra/tests/test_sparser.py
jmuhlich/indra
feab2c08541ea73f328579faa6a21b08082cb026
[ "BSD-2-Clause" ]
null
null
null
from indra import sparser xml_str1 = ''' <article pmid="54321"> <interpretation> <sentence-text>MEK1 phosphorylates ERK1</sentence-text> <sem> <ref category="phosphorylate"> <var name="agent"> <ref category="protein"> <var name="name">MP2K1_HUMAN</var> <var name="uid...
29.229167
98
0.573414
0
0
0
0
0
0
0
0
1,888
0.672844
71cd46d78b6a8276fbfad5958ac1ac90396f36d3
685
py
Python
examples/quickstart/run_example.py
siforrer/coreali
261e321b546192e608edf87c47719d2173ab4645
[ "MIT" ]
null
null
null
examples/quickstart/run_example.py
siforrer/coreali
261e321b546192e608edf87c47719d2173ab4645
[ "MIT" ]
null
null
null
examples/quickstart/run_example.py
siforrer/coreali
261e321b546192e608edf87c47719d2173ab4645
[ "MIT" ]
null
null
null
""" Simple Example using coreali to access a register model. Needs no h^ardware""" # Import dependencies and compile register model with systemrdl-compiler from systemrdl import RDLCompiler import coreali import numpy as np import os from coreali import RegisterModel rdlc = RDLCompiler() rdlc.compile_file(os.path.di...
28.541667
82
0.769343
0
0
0
0
0
0
0
0
253
0.369343
71cd65bd2b7c6ec78dfa4527145f67145398f409
14,872
py
Python
src/python/pants/base/specs.py
mcguigan/pants
e085d45669b72d0c51ab8a54602306fc76e07256
[ "Apache-2.0" ]
null
null
null
src/python/pants/base/specs.py
mcguigan/pants
e085d45669b72d0c51ab8a54602306fc76e07256
[ "Apache-2.0" ]
null
null
null
src/python/pants/base/specs.py
mcguigan/pants
e085d45669b72d0c51ab8a54602306fc76e07256
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import os import re from abc import ABC, ABCMeta, abstractmethod from dataclasses import dataclass from typing import ( TYPE_CHECKING, Dict, Iterable, Iterator, List, Optional,...
35.158392
109
0.739981
12,757
0.857786
0
0
11,762
0.790882
0
0
5,168
0.347499
71cdfb38599df10c30320a2593f3e48d3acf2678
4,140
py
Python
Mock/MockRequesterMixin.py
GordiigPinny/ApiRequesters
aeb36c7b7b5237c3a74dae6ced7c6141df729ab5
[ "MIT" ]
null
null
null
Mock/MockRequesterMixin.py
GordiigPinny/ApiRequesters
aeb36c7b7b5237c3a74dae6ced7c6141df729ab5
[ "MIT" ]
null
null
null
Mock/MockRequesterMixin.py
GordiigPinny/ApiRequesters
aeb36c7b7b5237c3a74dae6ced7c6141df729ab5
[ "MIT" ]
null
null
null
import json import requests from enum import Enum from typing import Dict from ..exceptions import JsonDecodeError, UnexpectedResponse, RequestError, BaseApiRequestError class MockRequesterMixin: """ ะะฐะฑะพั€ ะผะตั‚ะพะดะพะฒ ะดะปั ะผะพะบะพะฒ ั€ะตะบะฒะตัั‚ะตั€ะพะฒ """ class ERRORS(Enum): ERROR_TOKEN = 'error' BAD_...
34.214876
95
0.674396
4,231
0.960718
0
0
384
0.087193
0
0
839
0.190509
71cfe2dcb6db7c33d02af00f0428d85a6126a273
313
py
Python
tests/test_parse.py
vkleen/skidl
f09200c978a39c127e292ef71b8ff89c1a3c0f5a
[ "MIT" ]
700
2016-08-16T21:12:50.000Z
2021-10-10T02:15:18.000Z
tests/test_parse.py
0dvictor/skidl
458709a10b28a864d25ae2c2b44c6103d4ddb291
[ "MIT" ]
118
2016-08-16T20:51:05.000Z
2021-10-10T08:07:18.000Z
tests/test_parse.py
0dvictor/skidl
458709a10b28a864d25ae2c2b44c6103d4ddb291
[ "MIT" ]
94
2016-08-25T14:02:28.000Z
2021-09-12T05:17:08.000Z
# -*- coding: utf-8 -*- # The MIT License (MIT) - Copyright (c) 2016-2021 Dave Vandenbout. import pytest from skidl import netlist_to_skidl from .setup_teardown import get_filename, setup_function, teardown_function def test_parser_1(): netlist_to_skidl(get_filename("Arduino_Uno_R3_From_Scratch.net"))
22.357143
75
0.773163
0
0
0
0
0
0
0
0
122
0.389776
71cfe70b6d19b560b2ea31dad54f5ad9cbddfef1
291
py
Python
Projects/envirohat-monitor/clear-screen.py
pkbullock/RaspberryPi
1c8e83566e97f65fe530d8d43293f4b26c015d0d
[ "MIT" ]
null
null
null
Projects/envirohat-monitor/clear-screen.py
pkbullock/RaspberryPi
1c8e83566e97f65fe530d8d43293f4b26c015d0d
[ "MIT" ]
null
null
null
Projects/envirohat-monitor/clear-screen.py
pkbullock/RaspberryPi
1c8e83566e97f65fe530d8d43293f4b26c015d0d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import ST7735 import sys st7735 = ST7735.ST7735( port=0, cs=1, dc=9, backlight=12, rotation=270, spi_speed_hz=10000000 ) # Reset the display st7735.begin() st7735.reset() st7735.set_backlight(0) print "\nDone." # Exit cleanly sys.exit(0)
12.652174
25
0.666667
0
0
0
0
0
0
0
0
64
0.219931
71d0e460dfc97542581b94a812752a1bad4c2629
709
py
Python
Scripts/nominatintest.py
carlosdenner/business_atlas
8f95bbd07384baa6c5e51776690103e418b3875e
[ "MIT" ]
null
null
null
Scripts/nominatintest.py
carlosdenner/business_atlas
8f95bbd07384baa6c5e51776690103e418b3875e
[ "MIT" ]
4
2021-04-14T19:18:46.000Z
2021-11-02T16:11:36.000Z
Scripts/nominatintest.py
carlosdenner/business_atlas
8f95bbd07384baa6c5e51776690103e418b3875e
[ "MIT" ]
3
2021-09-01T03:05:21.000Z
2021-11-01T16:54:26.000Z
from geopy.geocoders import Nominatim from requests.models import LocationParseError geolocator = Nominatim(user_agent="geoapiExercises") Latitude = 25.594095 Longitude = 85.137566 def location(Latitude, Longitude): lat = str(Latitude) long = str(Longitude) print(lat + long) local = lat + "," + long...
22.870968
52
0.61354
0
0
0
0
0
0
0
0
69
0.097183
71d0fd4625a3f29310594a80dc408cff1d45b254
1,196
py
Python
gamesystem.py
cristilianojr/JOKENPOH
604970d4f3cfbcc5f851e993af72d3bc86926ae5
[ "MIT" ]
1
2022-02-02T15:23:00.000Z
2022-02-02T15:23:00.000Z
gamesystem.py
cristilianojr/JOKENPOH
604970d4f3cfbcc5f851e993af72d3bc86926ae5
[ "MIT" ]
null
null
null
gamesystem.py
cristilianojr/JOKENPOH
604970d4f3cfbcc5f851e993af72d3bc86926ae5
[ "MIT" ]
null
null
null
import random from tkinter import PhotoImage """ Esse arquivo define os estados do game """ def ia_chocer(): """IA faz a escolha de um numero aleatรณrio""" posibility = ['rock', 'paper', 'scissor'] value = posibility[random.randint(0, 2)] return value def battle_verification(player_choice, ia_choic...
23
50
0.598662
0
0
0
0
0
0
0
0
274
0.228906
71d178c96b191f21134b0e3351ee139671d87fc0
4,710
py
Python
train/filelocks.py
mister-bailey/MagNET
4f75a6e2fe34eabf455d13338f318e3dc4bf0295
[ "Apache-2.0" ]
null
null
null
train/filelocks.py
mister-bailey/MagNET
4f75a6e2fe34eabf455d13338f318e3dc4bf0295
[ "Apache-2.0" ]
null
null
null
train/filelocks.py
mister-bailey/MagNET
4f75a6e2fe34eabf455d13338f318e3dc4bf0295
[ "Apache-2.0" ]
null
null
null
from filelock import FileLock, Timeout import os import time class ProcessFileLock(FileLock): """ FileLock that is unique per path in each process (for, eg., reentrance) """ locks = {} def __new__(cls, path, *args, **kwargs): if path in ProcessFileLock.locks: return P...
34.888889
174
0.56603
4,611
0.978981
0
0
0
0
0
0
864
0.183439
71d467c1cb4d72b8c1bd64020a221b9b3545fb65
34
py
Python
python/testData/quickFixes/PyRenameElementQuickFixTest/renameAwaitClassInPy36_after.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/quickFixes/PyRenameElementQuickFixTest/renameAwaitClassInPy36_after.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/quickFixes/PyRenameElementQuickFixTest/renameAwaitClassInPy36_after.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
class A_NEW_NAME(object): pass
17
25
0.735294
34
1
0
0
0
0
0
0
0
0
71d4a4f18765db674c76811fc711aa0406e67032
144
py
Python
speedcom/tests/__init__.py
emissible/emissilbe
5537e787ccb883a101d2d40b38d480e257ac9755
[ "MIT" ]
1
2019-02-20T05:11:16.000Z
2019-02-20T05:11:16.000Z
speedcom/tests/__init__.py
emissible/emissilbe
5537e787ccb883a101d2d40b38d480e257ac9755
[ "MIT" ]
null
null
null
speedcom/tests/__init__.py
emissible/emissilbe
5537e787ccb883a101d2d40b38d480e257ac9755
[ "MIT" ]
null
null
null
#from . import context #from . import test_NNModels #from . import test_data_extract #from . import test_speedcom #from . import test_utilities
24
32
0.791667
0
0
0
0
0
0
0
0
139
0.965278
71d4b733728e3fe154331308ec40f232a937aaa6
1,637
py
Python
todo/management/serializers/tasks.py
Sanguet/todo-challenge
8eabc02081e7ce6b33408558d4a4a39edee3944c
[ "MIT" ]
null
null
null
todo/management/serializers/tasks.py
Sanguet/todo-challenge
8eabc02081e7ce6b33408558d4a4a39edee3944c
[ "MIT" ]
null
null
null
todo/management/serializers/tasks.py
Sanguet/todo-challenge
8eabc02081e7ce6b33408558d4a4a39edee3944c
[ "MIT" ]
null
null
null
# Django REST Framework from rest_framework import serializers # Model from todo.management.models import Task # Utils from todo.utils.tasks import TaskMetrics from todo.utils.serializer_fields import CompleteNameUser class TaskModelSerializer(serializers.ModelSerializer): """Modelo serializer del circulo""" ...
25.578125
80
0.607819
1,414
0.863775
0
0
0
0
0
0
487
0.297495
71d5ac8fe8a1e3e087c79c30be252f654bc0722c
1,895
py
Python
outlier_detector.py
Sean-Ker/data_homework
5f289c692690724ee5973683c53e83299958b270
[ "Apache-2.0" ]
null
null
null
outlier_detector.py
Sean-Ker/data_homework
5f289c692690724ee5973683c53e83299958b270
[ "Apache-2.0" ]
null
null
null
outlier_detector.py
Sean-Ker/data_homework
5f289c692690724ee5973683c53e83299958b270
[ "Apache-2.0" ]
null
null
null
import numpy as np import pandas as pd from sklearn.decomposition import PCA ''' A function that detects outliers, where k is a tandard deviation threshold hyperparameter preferablly (2, 2.5, 3). The algo could handle multivariable data frames with any number of features d. For that manner, it first reduces the dimens...
35.754717
180
0.713456
0
0
0
0
0
0
0
0
834
0.440106
71d79b9492d4549b986121f837ee137051811f29
1,631
py
Python
arc113/b.py
nishio/atcoder
8db36537b5d8580745d5f98312162506ad7d7ab4
[ "MIT" ]
1
2021-03-09T04:28:13.000Z
2021-03-09T04:28:13.000Z
arc113/b.py
nishio/atcoder
8db36537b5d8580745d5f98312162506ad7d7ab4
[ "MIT" ]
null
null
null
arc113/b.py
nishio/atcoder
8db36537b5d8580745d5f98312162506ad7d7ab4
[ "MIT" ]
null
null
null
# included from snippets/main.py def debug(*x, msg=""): import sys print(msg, *x, file=sys.stderr) def solve(SOLVE_PARAMS): pass def main(): A, B, C = map(int, input().split()) doubling = [B % 20] for i in range(32): doubling.append( (doubling[-1] ** 2) % 20 ) ...
14.963303
59
0.498467
0
0
0
0
0
0
0
0
438
0.268547
71d7b6b5d8927503c0de7b2300ecece8268c9b0c
892
py
Python
pythonG/objects.py
ezan2000/Cssi_2018
2385e9f4557c1a2aa642e21d42dcc935e24c88c3
[ "Apache-2.0" ]
null
null
null
pythonG/objects.py
ezan2000/Cssi_2018
2385e9f4557c1a2aa642e21d42dcc935e24c88c3
[ "Apache-2.0" ]
null
null
null
pythonG/objects.py
ezan2000/Cssi_2018
2385e9f4557c1a2aa642e21d42dcc935e24c88c3
[ "Apache-2.0" ]
null
null
null
ezan = { 'name': 'ezan', 'age': 18, 'hair': 'brown', 'cool': True , } print(ezan) class Person(object): #use class to make object def __init__( self, name, age ,hair, color, hungry) : #initialize #first object inside of a class is self self.name = 'ezan' self.age = 18 ...
25.485714
94
0.56278
576
0.64574
0
0
0
0
0
0
204
0.2287
71d7fc5500dfa419709498ae6eaa8bc5f3fa5a27
400
py
Python
62/main.py
pauvrepetit/leetcode
6ad093cf543addc4dfa52d72a8e3c0d05a23b771
[ "MIT" ]
null
null
null
62/main.py
pauvrepetit/leetcode
6ad093cf543addc4dfa52d72a8e3c0d05a23b771
[ "MIT" ]
null
null
null
62/main.py
pauvrepetit/leetcode
6ad093cf543addc4dfa52d72a8e3c0d05a23b771
[ "MIT" ]
null
null
null
# 62. ไธๅŒ่ทฏๅพ„ # ็ป„ๅˆๆ•ฐ๏ผŒๆจ่พ‰ไธ‰่ง’ yanghui = [[0 for i in range(202)] for j in range(202)] def comb(n, k): if yanghui[n][k] == 0: yanghui[n][k] = (comb(n-1, k-1) + comb(n-1, k)) return yanghui[n][k] class Solution: def uniquePaths(self, m: int, n: int) -> int: for i in range(202): yanghui...
23.529412
55
0.51
194
0.457547
0
0
0
0
0
0
44
0.103774
71d8ae81fc5cc4e5cfdae9050c0caf054c81bfb5
48
py
Python
GermanOK/run.py
romainledru/GermanOK
77bc86de0eabbd3d7413382a288fea286d608540
[ "MIT" ]
null
null
null
GermanOK/run.py
romainledru/GermanOK
77bc86de0eabbd3d7413382a288fea286d608540
[ "MIT" ]
null
null
null
GermanOK/run.py
romainledru/GermanOK
77bc86de0eabbd3d7413382a288fea286d608540
[ "MIT" ]
null
null
null
from Pages import * app = App() app.mainloop()
9.6
19
0.666667
0
0
0
0
0
0
0
0
0
0
71d94b479d90dc462de92906e5d1f18653ee665b
433
py
Python
cauldron/cli/server/routes/ui_statuses.py
JohnnyPeng18/cauldron
09120c2a4cef65df46f8c0c94f5d79395b3298cd
[ "MIT" ]
90
2016-09-02T15:11:10.000Z
2022-01-02T11:37:57.000Z
cauldron/cli/server/routes/ui_statuses.py
JohnnyPeng18/cauldron
09120c2a4cef65df46f8c0c94f5d79395b3298cd
[ "MIT" ]
86
2016-09-23T16:52:22.000Z
2022-03-31T21:39:56.000Z
cauldron/cli/server/routes/ui_statuses.py
JohnnyPeng18/cauldron
09120c2a4cef65df46f8c0c94f5d79395b3298cd
[ "MIT" ]
261
2016-12-22T05:36:48.000Z
2021-11-26T12:40:42.000Z
import flask from cauldron.cli.server import run as server_runner from cauldron.ui import arguments from cauldron.ui import statuses @server_runner.APPLICATION.route('/ui-status', methods=['POST']) def ui_status(): args = arguments.from_request() last_timestamp = args.get('last_timestamp', 0) force = arg...
28.866667
64
0.750577
0
0
0
0
296
0.683603
0
0
41
0.094688
71dbada9e9753ae2bf8f715ece9e73e4bfe13daa
418
py
Python
google_search.py
Jaram2019/minwoo
d98ce8a84675281e237368cbe97d8a2120ce5840
[ "MIT" ]
null
null
null
google_search.py
Jaram2019/minwoo
d98ce8a84675281e237368cbe97d8a2120ce5840
[ "MIT" ]
null
null
null
google_search.py
Jaram2019/minwoo
d98ce8a84675281e237368cbe97d8a2120ce5840
[ "MIT" ]
null
null
null
import requests from bs4 import BeautifulSoup import re rq = requests.get("https://play.google.com/store/apps/category/GAME_MUSIC?hl=ko") rqctnt = rq.content soup = BeautifulSoup(rqctnt,"html.parser") soup = soup.find_all(attrs={'class':'title'}) blacklsit = ["์•ฑ","์˜ํ™”/TV","์Œ์•…","๋„์„œ","๊ธฐ๊ธฐ","์—”ํ„ฐํ…Œ์ธ๋จผํŠธ","์Œ์•…"] for link in sou...
24.588235
81
0.674641
0
0
0
0
0
0
0
0
157
0.347345
71dbf8ffa644ff16bfd38b31d3b7d01cb8ab4ea8
203
py
Python
pygall/tests/test_photos.py
bbinet/PyGall
4d83165e50ca927d664aa6b7b716eb8f484c3cd6
[ "BSD-3-Clause" ]
1
2021-05-09T16:43:49.000Z
2021-05-09T16:43:49.000Z
pygall/tests/test_photos.py
bbinet/PyGall
4d83165e50ca927d664aa6b7b716eb8f484c3cd6
[ "BSD-3-Clause" ]
null
null
null
pygall/tests/test_photos.py
bbinet/PyGall
4d83165e50ca927d664aa6b7b716eb8f484c3cd6
[ "BSD-3-Clause" ]
3
2015-10-04T20:53:04.000Z
2017-11-20T21:51:21.000Z
from unittest import TestCase from pyramid import testing class PhotosTests(TestCase): def setUp(self): self.config = testing.setUp() def tearDown(self): testing.tearDown()
14.5
37
0.679803
140
0.689655
0
0
0
0
0
0
0
0
71dd434a3adaa696a17ec425e131077b6639bbec
2,995
py
Python
Chapter_4/lists_data_type.py
alenasf/AutomateTheBoringStuff
041e56221eb98d9893c24d22497034e6344c0490
[ "Apache-2.0" ]
null
null
null
Chapter_4/lists_data_type.py
alenasf/AutomateTheBoringStuff
041e56221eb98d9893c24d22497034e6344c0490
[ "Apache-2.0" ]
null
null
null
Chapter_4/lists_data_type.py
alenasf/AutomateTheBoringStuff
041e56221eb98d9893c24d22497034e6344c0490
[ "Apache-2.0" ]
null
null
null
#Negative Indexes spam = ['cat', 'bat', 'rat', 'elephant'] spam[-1] # elepant spam[-3] # bat # Getting a List from another List with Slices spam = ['cat', 'bat', 'rat', 'elephant'] spam[0:4] # ['cat', 'bat', 'rat', 'elephant'] spam[1:3] # ['bat', 'rat'] spam[0:-1] # ['cat', 'bat', 'rat'] spam[:2] # ['cat', 'bat'] spa...
26.043478
94
0.600334
0
0
0
0
0
0
0
0
1,865
0.622705
71de0e1236a03e6cfb4186e21a5012996969d350
130
py
Python
WebVisualizations/data.py
chuhaovince/Web-Design-Challenge
1826a0e2dfbe4e11feb78f0ecce02e0f8a0a7eb5
[ "ADSL" ]
null
null
null
WebVisualizations/data.py
chuhaovince/Web-Design-Challenge
1826a0e2dfbe4e11feb78f0ecce02e0f8a0a7eb5
[ "ADSL" ]
null
null
null
WebVisualizations/data.py
chuhaovince/Web-Design-Challenge
1826a0e2dfbe4e11feb78f0ecce02e0f8a0a7eb5
[ "ADSL" ]
null
null
null
import pandas as pd path = "Resources/cities.csv" data = pd.read_csv(path) data_html = data.to_html("data.html", bold_rows = True)
32.5
55
0.746154
0
0
0
0
0
0
0
0
33
0.253846
71dfbd47e154641ea34b44a5f3aa8459312d608f
3,268
py
Python
qemu/scripts/codeconverter/codeconverter/test_patching.py
hyunjoy/scripts
01114d3627730d695b5ebe61093c719744432ffa
[ "Apache-2.0" ]
44
2022-03-16T08:32:31.000Z
2022-03-31T16:02:35.000Z
qemu/scripts/codeconverter/codeconverter/test_patching.py
hyunjoy/scripts
01114d3627730d695b5ebe61093c719744432ffa
[ "Apache-2.0" ]
1
2022-03-29T02:30:28.000Z
2022-03-30T03:40:46.000Z
qemu/scripts/codeconverter/codeconverter/test_patching.py
hyunjoy/scripts
01114d3627730d695b5ebe61093c719744432ffa
[ "Apache-2.0" ]
18
2022-03-19T04:41:04.000Z
2022-03-31T03:32:12.000Z
# Copyright (C) 2020 Red Hat Inc. # # Authors: # Eduardo Habkost <ehabkost@redhat.com> # # This work is licensed under the terms of the GNU GPL, version 2. See # the COPYING file in the top-level directory. from tempfile import NamedTemporaryFile from .patching import FileInfo, FileMatch, Patch, FileList from .regexp...
31.12381
71
0.597613
478
0.146267
0
0
58
0.017748
0
0
893
0.273256
71e063f198be6d799932aa28d7e46247d3e2c98f
634
py
Python
Traversy Media/Python Django Dev to Deployment/Python Fundamentals/Tuples and Sets.py
Anim-101/CourseHub
570ddc2bca794c14921991d24fdf1b4a7d0beb68
[ "MIT" ]
3
2019-11-01T17:07:13.000Z
2020-04-01T10:27:05.000Z
Traversy Media/Python Django Dev to Deployment/Python Fundamentals/Tuples and Sets.py
Anim-101/CourseHub
570ddc2bca794c14921991d24fdf1b4a7d0beb68
[ "MIT" ]
18
2020-08-10T05:11:24.000Z
2021-12-03T15:13:40.000Z
Traversy Media/Python Django Dev to Deployment/Python Fundamentals/Tuples and Sets.py
Anim-101/CourseHub
570ddc2bca794c14921991d24fdf1b4a7d0beb68
[ "MIT" ]
null
null
null
# # Simple Tuple # fruits = ('Apple', 'Orange', 'Mango') # # Using Constructor # fruits = tuple(('Apple', 'Orange', 'Mango')) # # Getting a Single Value # print(fruits[1]) # Trying to change based on position # fruits[1] = 'Grape' # Tuples with one value should have trailing comma # fruits = ('Apple') # fruits = ('...
16.25641
50
0.652997
0
0
0
0
0
0
0
0
498
0.785489
71e0e6976164ccf999455f35ac70c3e13a0fe3ef
20,146
py
Python
nerblackbox/modules/ner_training/metrics/ner_metrics.py
flxst/nerblackbox
7612b95850e637be258f6bfb01274453b7372f99
[ "Apache-2.0" ]
null
null
null
nerblackbox/modules/ner_training/metrics/ner_metrics.py
flxst/nerblackbox
7612b95850e637be258f6bfb01274453b7372f99
[ "Apache-2.0" ]
null
null
null
nerblackbox/modules/ner_training/metrics/ner_metrics.py
flxst/nerblackbox
7612b95850e637be258f6bfb01274453b7372f99
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass from dataclasses import asdict from typing import List, Tuple, Callable import numpy as np from sklearn.metrics import accuracy_score as accuracy_sklearn from sklearn.metrics import precision_score as precision_sklearn from sklearn.metrics import recall_score as recall_sklearn from sk...
36.299099
116
0.538469
19,383
0.962126
0
0
429
0.021295
0
0
4,743
0.235431
71e128bd284f8fc2eb997551cf3f8ee9632b562a
2,192
py
Python
Assignments/hw4/rank_feat_by_chi_square.py
spacemanidol/CLMS572
f0380de9912c984ec21607cdb3b1f190853c5ca8
[ "MIT" ]
null
null
null
Assignments/hw4/rank_feat_by_chi_square.py
spacemanidol/CLMS572
f0380de9912c984ec21607cdb3b1f190853c5ca8
[ "MIT" ]
null
null
null
Assignments/hw4/rank_feat_by_chi_square.py
spacemanidol/CLMS572
f0380de9912c984ec21607cdb3b1f190853c5ca8
[ "MIT" ]
1
2020-12-26T01:28:41.000Z
2020-12-26T01:28:41.000Z
import sys def readInput(): labels, features, all_features, labelCount = [], [], [], {} l = sys.stdin.readline().strip().split(' ') while len(l)> 1: label = l[0] if label not in labelCount: labelCount[label] = 0 labelCount[label] += 1 labels.append(label) ...
56.205128
323
0.656022
0
0
0
0
0
0
0
0
264
0.120438
71e26509acc4657f75e6829c9ddc1b7eeabb62a1
2,530
py
Python
Files/joinfiles.py
LeoCruzG/4chan-thread-downloader
d449e50fc7f2a6273a11da3d8ff2f46aad4951d2
[ "MIT" ]
null
null
null
Files/joinfiles.py
LeoCruzG/4chan-thread-downloader
d449e50fc7f2a6273a11da3d8ff2f46aad4951d2
[ "MIT" ]
null
null
null
Files/joinfiles.py
LeoCruzG/4chan-thread-downloader
d449e50fc7f2a6273a11da3d8ff2f46aad4951d2
[ "MIT" ]
null
null
null
# Importamos la librerรญa para leer archivos json import json # Abrimos el archivo master en modo lectura ('r') con todos los id de los archivos descargados with open('master.json', 'r') as f: # Guardamos en la variable lista el contenido de master lista = json.load(f) # En este ejemplo se representa cรณmo se a...
42.166667
94
0.633992
0
0
0
0
0
0
0
0
1,662
0.652789
71e353fb7e64c4a4a126f497726d3763f4f1a40c
2,860
py
Python
pycopula/archimedean_generators.py
SvenSerneels/pycopula
27c703ab0d25356f6e78b7cc16c8ece1ed80f871
[ "Apache-2.0" ]
2
2020-05-09T21:08:34.000Z
2021-02-23T06:58:51.000Z
pycopula/archimedean_generators.py
SvenSerneels/pycopula
27c703ab0d25356f6e78b7cc16c8ece1ed80f871
[ "Apache-2.0" ]
null
null
null
pycopula/archimedean_generators.py
SvenSerneels/pycopula
27c703ab0d25356f6e78b7cc16c8ece1ed80f871
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This file contains the generators and their inverses for common archimedean copulas. """ import numpy as np def boundsConditions(x): if x < 0 or x > 1: raise ValueError("Unable to compute generator for x equals to {}".format(x)) def claytonGenerator(...
37.142857
114
0.642308
0
0
0
0
0
0
0
0
1,067
0.373077
71e38c0bb4ea71106c0ea08a5cac097ca0ed5c4c
126
py
Python
app/admin/__init__.py
blackboard/BBDN-Base-Python-Flask
710b82bfb45217798d9e9edda13d5e0f632e2284
[ "MIT" ]
null
null
null
app/admin/__init__.py
blackboard/BBDN-Base-Python-Flask
710b82bfb45217798d9e9edda13d5e0f632e2284
[ "MIT" ]
2
2022-03-16T01:34:51.000Z
2022-03-16T01:34:56.000Z
app/admin/__init__.py
Eddyjim/BB-BaseTool
39fd41cc503b7c31886426b8b017c5f9acfe5072
[ "MIT" ]
null
null
null
""" """ from admin import routes def init_app(app): """ :param app: :return: """ routes.init_app(app)
9
24
0.52381
0
0
0
0
0
0
0
0
49
0.388889
71e43b48b96fcad3e7e8029cf7b4f49e58e53fda
243
py
Python
output/models/nist_data/list_pkg/decimal/schema_instance/nistschema_sv_iv_list_decimal_pattern_2_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/nist_data/list_pkg/decimal/schema_instance/nistschema_sv_iv_list_decimal_pattern_2_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/nist_data/list_pkg/decimal/schema_instance/nistschema_sv_iv_list_decimal_pattern_2_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.nist_data.list_pkg.decimal.schema_instance.nistschema_sv_iv_list_decimal_pattern_2_xsd.nistschema_sv_iv_list_decimal_pattern_2 import NistschemaSvIvListDecimalPattern2 __all__ = [ "NistschemaSvIvListDecimalPattern2", ]
40.5
186
0.888889
0
0
0
0
0
0
0
0
35
0.144033
e07b1d529111d4e2e89b3b1cd2c58ff9446e312f
6,642
py
Python
fem/fem.py
Pengeace/DGP-PDE-FEM
64b7f42ca7083b05f05c42baa6cad21084068d8c
[ "MIT" ]
7
2019-06-26T07:25:33.000Z
2021-06-25T03:40:22.000Z
fem/fem.py
Pengeace/DGP-PDE-FEM
64b7f42ca7083b05f05c42baa6cad21084068d8c
[ "MIT" ]
null
null
null
fem/fem.py
Pengeace/DGP-PDE-FEM
64b7f42ca7083b05f05c42baa6cad21084068d8c
[ "MIT" ]
null
null
null
import numpy as np import pyamg from scipy import sparse from scipy.spatial import Delaunay from linsolver import sparse_solver from triangulation.delaunay import delaunay class Element: def __init__(self, points, global_indexes, fem): self.points = np.array(points) self.global_indexes = global_i...
40.012048
141
0.643029
6,463
0.97305
0
0
0
0
0
0
855
0.128726
e07c0e48507e0965db82bd0823c76af3d0ebb993
2,745
py
Python
custom_components/tahoma/climate_devices/dimmer_exterior_heating.py
MatthewFlamm/ha-tahoma
794e8e4a54a8e5f55622b88bb1ab5ffc3ecb0d1b
[ "MIT" ]
null
null
null
custom_components/tahoma/climate_devices/dimmer_exterior_heating.py
MatthewFlamm/ha-tahoma
794e8e4a54a8e5f55622b88bb1ab5ffc3ecb0d1b
[ "MIT" ]
null
null
null
custom_components/tahoma/climate_devices/dimmer_exterior_heating.py
MatthewFlamm/ha-tahoma
794e8e4a54a8e5f55622b88bb1ab5ffc3ecb0d1b
[ "MIT" ]
null
null
null
"""Support for Atlantic Electrical Heater IO controller.""" import logging from typing import List from homeassistant.components.climate import ClimateEntity from homeassistant.components.climate.const import ( HVAC_MODE_HEAT, HVAC_MODE_OFF, SUPPORT_TARGET_TEMPERATURE, ) from homeassistant.const import ATT...
31.918605
82
0.687796
2,158
0.786157
0
0
1,020
0.371585
730
0.265938
554
0.201821
e07c5c23f946a28e4cc418a3bd4c6debbb0d6123
3,271
py
Python
elit/components/mtl/attn/joint_encoder.py
emorynlp/stem-cell-hypothesis
48a628093d93d653865fbac6409d179cddd99293
[ "Apache-2.0" ]
4
2021-09-17T15:23:31.000Z
2022-02-28T10:18:04.000Z
elit/components/mtl/attn/joint_encoder.py
emorynlp/stem-cell-hypothesis
48a628093d93d653865fbac6409d179cddd99293
[ "Apache-2.0" ]
null
null
null
elit/components/mtl/attn/joint_encoder.py
emorynlp/stem-cell-hypothesis
48a628093d93d653865fbac6409d179cddd99293
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # Author: hankcs # Date: 2021-03-02 13:32 from typing import Optional, Union, Dict, Any import torch from torch import nn from transformers import PreTrainedTokenizer from elit.components.mtl.attn.attn import TaskAttention from elit.components.mtl.attn.transformer import JointEncoder from elit....
53.622951
120
0.63956
2,706
0.82727
0
0
0
0
0
0
245
0.074901
e07c7e8ff8aa0c1088ab724943f3572b8b2fff02
68
py
Python
simulation/sensors/__init__.py
salinsiim/petssa-simulation
8f0f128d462831f86664bb8d246f2c7b659a0b8d
[ "MIT" ]
null
null
null
simulation/sensors/__init__.py
salinsiim/petssa-simulation
8f0f128d462831f86664bb8d246f2c7b659a0b8d
[ "MIT" ]
null
null
null
simulation/sensors/__init__.py
salinsiim/petssa-simulation
8f0f128d462831f86664bb8d246f2c7b659a0b8d
[ "MIT" ]
null
null
null
from sensors.sensors import sense_characteristics, sense_pedestrians
68
68
0.911765
0
0
0
0
0
0
0
0
0
0
e07ce9c764d3c52f1697472892d9c4a14a2d9b6a
5,140
py
Python
jaxrl/agents/sac_v1/sac_v1_learner.py
anuragajay/jaxrl
a37414aea9e281f19719ccfc09702b32e1ef4e44
[ "MIT" ]
157
2021-03-12T04:30:53.000Z
2021-06-10T11:28:48.000Z
jaxrl/agents/sac_v1/sac_v1_learner.py
anuragajay/jaxrl
a37414aea9e281f19719ccfc09702b32e1ef4e44
[ "MIT" ]
3
2021-09-23T21:13:28.000Z
2021-11-19T12:32:34.000Z
jaxrl/agents/sac_v1/sac_v1_learner.py
anuragajay/jaxrl
a37414aea9e281f19719ccfc09702b32e1ef4e44
[ "MIT" ]
17
2021-06-15T13:38:35.000Z
2022-03-17T15:25:23.000Z
"""Implementations of algorithms for continuous control.""" import functools from typing import Optional, Sequence, Tuple import jax import jax.numpy as jnp import numpy as np import optax from jaxrl.agents.sac import temperature from jaxrl.agents.sac.actor import update as update_actor from jaxrl.agents.sac.critic ...
35.694444
107
0.596887
3,443
0.669844
0
0
1,152
0.224125
0
0
206
0.040078
e07cfc67fee77a3b15475a7b5db3f7fe4ab08200
14,515
py
Python
rbc/libfuncs.py
plures/rbc
57c170c148000e7b56f0cda2f0dbea7bdcfa0e1b
[ "BSD-3-Clause" ]
1
2019-02-15T14:14:58.000Z
2019-02-15T14:14:58.000Z
rbc/libfuncs.py
plures/rbc
57c170c148000e7b56f0cda2f0dbea7bdcfa0e1b
[ "BSD-3-Clause" ]
null
null
null
rbc/libfuncs.py
plures/rbc
57c170c148000e7b56f0cda2f0dbea7bdcfa0e1b
[ "BSD-3-Clause" ]
null
null
null
"""Collections of library function names. """ class Library: """Base class for a collection of library function names. """ @staticmethod def get(libname, _cache={}): if libname in _cache: return _cache[libname] if libname == 'stdlib': r = Stdlib() elif ...
46.822581
98
0.759904
14,058
0.968515
0
0
651
0.04485
0
0
12,247
0.843748
e07d1faf3d069567748feca41784098709e225b2
1,143
py
Python
quick_pandas.py
chenmich/google-ml-crash-course-exercises
d610f890d53b1537a3ce80531ce1ff2df1f5dc84
[ "MIT" ]
null
null
null
quick_pandas.py
chenmich/google-ml-crash-course-exercises
d610f890d53b1537a3ce80531ce1ff2df1f5dc84
[ "MIT" ]
null
null
null
quick_pandas.py
chenmich/google-ml-crash-course-exercises
d610f890d53b1537a3ce80531ce1ff2df1f5dc84
[ "MIT" ]
null
null
null
import pandas as pd print(pd.__version__) city_names = pd.Series(['San Francisco', 'San Jose', 'Sacramento']) population = pd.Series([852469, 1015785, 485199]) #city_population_table = pd.DataFrame(({'City name': city_names, 'Population': population})) california_houseing_dataframe = pd.read_csv("https://storage.google...
40.821429
130
0.750656
0
0
0
0
0
0
0
0
641
0.560805
e07ee60ec4a6fab177a6c8363ef9dc2508bf69c5
91
py
Python
src/helloworld/__main__.py
paulproteus/briefcase-toga-button-app-with-hacks
61ec41b154204bb4a7a59f55374193dd4f9ca377
[ "BSD-3-Clause" ]
2
2020-05-01T23:41:55.000Z
2020-07-01T00:26:19.000Z
src/helloworld/__main__.py
paulproteus/briefcase-toga-button-app-with-hacks
61ec41b154204bb4a7a59f55374193dd4f9ca377
[ "BSD-3-Clause" ]
null
null
null
src/helloworld/__main__.py
paulproteus/briefcase-toga-button-app-with-hacks
61ec41b154204bb4a7a59f55374193dd4f9ca377
[ "BSD-3-Clause" ]
null
null
null
from helloworld.app import main if True or __name__ == '__main__': main().main_loop()
18.2
34
0.703297
0
0
0
0
0
0
0
0
10
0.10989
e081143f3b7d183dce44c075a5350bb5aba51e51
797
py
Python
backend/app/main.py
ianahart/blog
fc52e15a8b56bd4c6482065de7e21f8b31f5d765
[ "MIT" ]
null
null
null
backend/app/main.py
ianahart/blog
fc52e15a8b56bd4c6482065de7e21f8b31f5d765
[ "MIT" ]
null
null
null
backend/app/main.py
ianahart/blog
fc52e15a8b56bd4c6482065de7e21f8b31f5d765
[ "MIT" ]
null
null
null
from fastapi import FastAPI from dotenv import load_dotenv from fastapi.middleware.cors import CORSMiddleware from app.api.api_v1.api import api_router from app.core.config import settings app = FastAPI() load_dotenv() app.include_router(api_router, prefix=settings.API_V1_STR) # Set all CORS enabled origins if sett...
27.482759
68
0.711418
0
0
0
0
0
0
0
0
140
0.175659
e083bd5dc380bfdfeec4ef47f0529d4de1bded9d
658
py
Python
test_data/samples/alembic_template_output.py
goldstar611/ssort
05c35ec89dd9ff391ae824c17ed974340e2f5597
[ "MIT" ]
238
2021-04-25T11:45:54.000Z
2022-03-30T10:49:58.000Z
test_data/samples/alembic_template_output.py
goldstar611/ssort
05c35ec89dd9ff391ae824c17ed974340e2f5597
[ "MIT" ]
54
2021-03-29T21:40:00.000Z
2022-03-29T20:26:31.000Z
test_data/samples/alembic_template_output.py
goldstar611/ssort
05c35ec89dd9ff391ae824c17ed974340e2f5597
[ "MIT" ]
4
2022-02-09T02:37:11.000Z
2022-02-23T03:07:50.000Z
"""Example revision Revision ID: fdf0cf6487a3 Revises: Create Date: 2021-08-09 17:55:19.491713 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = "fdf0cf6487a3" down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto ge...
20.5625
65
0.668693
0
0
0
0
0
0
0
0
371
0.56383
e085ecf717371ed12e23c9cc1a56cd7685b27bf6
790
py
Python
.archived/snakecode/0173.py
gearbird/calgo
ab48357100de2a5ea47fda2d9f01ced6dc73fa79
[ "MIT" ]
4
2022-01-13T03:39:01.000Z
2022-03-15T03:16:33.000Z
.archived/snakecode/0173.py
gearbird/calgo
ab48357100de2a5ea47fda2d9f01ced6dc73fa79
[ "MIT" ]
null
null
null
.archived/snakecode/0173.py
gearbird/calgo
ab48357100de2a5ea47fda2d9f01ced6dc73fa79
[ "MIT" ]
1
2021-12-09T12:33:07.000Z
2021-12-09T12:33:07.000Z
from __future__ import annotations from typing import Optional # Definition for a binary tree node. class TreeNode: def __init__(self, val: int = 0, left: Optional[TreeNode] = None, right: Optional[TreeNode] = None): self.val = val self.left = left self.right = right class BSTIterator: ...
27.241379
104
0.606329
686
0.868354
0
0
0
0
0
0
36
0.04557
e086489d041ecf108f68b331e71375202940ac34
2,768
py
Python
.leetcode/506.relative-ranks.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/506.relative-ranks.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/506.relative-ranks.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
# @lc app=leetcode id=506 lang=python3 # # [506] Relative Ranks # # https://leetcode.com/problems/relative-ranks/description/ # # algorithms # Easy (53.46%) # Likes: 188 # Dislikes: 9 # Total Accepted: 71.1K # Total Submissions: 132.4K # Testcase Example: '[5,4,3,2,1]' # # You are given an integer array score of...
22.322581
79
0.600795
443
0.159697
0
0
0
0
0
0
1,944
0.700793
e08673d5cfeabd8f8dd35fbf0c18643dc03a42fd
1,933
py
Python
test/msan/lit.cfg.py
QuarkTheAwesome/compiler-rt-be-aeabi
79e7d2bd981b0f38d60d90f8382c6cd5389b95d0
[ "Apache-2.0" ]
118
2016-02-29T01:55:45.000Z
2021-11-08T09:47:46.000Z
test/msan/lit.cfg.py
QuarkTheAwesome/compiler-rt-be-aeabi
79e7d2bd981b0f38d60d90f8382c6cd5389b95d0
[ "Apache-2.0" ]
27
2016-06-20T23:47:01.000Z
2019-10-25T17:41:37.000Z
test/msan/lit.cfg.py
QuarkTheAwesome/compiler-rt-be-aeabi
79e7d2bd981b0f38d60d90f8382c6cd5389b95d0
[ "Apache-2.0" ]
73
2016-03-01T00:50:56.000Z
2021-12-05T03:30:35.000Z
# -*- Python -*- import os # Setup config name. config.name = 'MemorySanitizer' + getattr(config, 'name_suffix', 'default') # Setup source root. config.test_source_root = os.path.dirname(__file__) # Setup default compiler flags used with -fsanitize=memory option. clang_msan_cflags = (["-fsanitize=memory", ...
40.270833
88
0.685463
0
0
0
0
0
0
0
0
885
0.457838
e086d33095f9872583586fa709b215338a8bb617
8,084
py
Python
application/core/migrations/0001_initial.py
victor-freitas/ProjetoNCS
7c80fad11e49f4ed00eefb90638730d340d78e1f
[ "Apache-2.0" ]
null
null
null
application/core/migrations/0001_initial.py
victor-freitas/ProjetoNCS
7c80fad11e49f4ed00eefb90638730d340d78e1f
[ "Apache-2.0" ]
2
2020-06-05T18:58:17.000Z
2021-06-10T20:50:12.000Z
application/core/migrations/0001_initial.py
victor-freitas/ProjetoNCS
7c80fad11e49f4ed00eefb90638730d340d78e1f
[ "Apache-2.0" ]
1
2018-09-17T18:14:18.000Z
2018-09-17T18:14:18.000Z
# Generated by Django 2.0.6 on 2018-06-17 04:47 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Cliente', fields=[ ('id', models.SmallInteg...
44.662983
120
0.530678
7,991
0.988496
0
0
0
0
0
0
1,537
0.190129
e087918e3b0a051f5fa5fa67e1527b89fc1bd61b
9,606
py
Python
dataschema/entity.py
vingkan/sql_tools
5d6ab6a0ae31dc51e51ac1629f83f7bbf91396c1
[ "Apache-2.0" ]
1
2022-03-30T19:47:16.000Z
2022-03-30T19:47:16.000Z
dataschema/entity.py
vingkan/sql_tools
5d6ab6a0ae31dc51e51ac1629f83f7bbf91396c1
[ "Apache-2.0" ]
null
null
null
dataschema/entity.py
vingkan/sql_tools
5d6ab6a0ae31dc51e51ac1629f83f7bbf91396c1
[ "Apache-2.0" ]
1
2022-03-30T04:07:12.000Z
2022-03-30T04:07:12.000Z
# # nuna_sql_tools: Copyright 2022 Nuna Inc # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
36.249057
80
0.636581
4,980
0.518426
0
0
0
0
0
0
2,953
0.307412
e087f1cb73d38e79a6d1863be5eb904e7f3b6261
1,541
py
Python
Data_and_Dicts.py
melkisedeath/Harmonic_Analysis_and_Trajectory
a5a2819c053ddd287dcb668fac2f1be7e44f6c59
[ "MIT" ]
null
null
null
Data_and_Dicts.py
melkisedeath/Harmonic_Analysis_and_Trajectory
a5a2819c053ddd287dcb668fac2f1be7e44f6c59
[ "MIT" ]
null
null
null
Data_and_Dicts.py
melkisedeath/Harmonic_Analysis_and_Trajectory
a5a2819c053ddd287dcb668fac2f1be7e44f6c59
[ "MIT" ]
null
null
null
"""HERE are the base Points for all valid Tonnetze Systems. A period of all 12 notes divided by mod 3, mod 4 (always stable) """ # x = 4, y = 3 NotePointsT345 = { 0: (0, 0), 1: (1, 3), 2: (2, 2), 3: (0, 1), 4: (1, 0), 5: (2, 3), 6: (0, 2), 7: (1, 1), 8: (2, 0), 9: (0, 3), 1...
14.817308
64
0.345879
0
0
0
0
0
0
0
0
265
0.171966
e088029d2dd84f5afa6eb4738d0ecbd65b7b7d99
3,718
py
Python
awacs/proton.py
alanjjenkins/awacs
0065e1833eae6a6070edb4ab4f180fd10b26c19a
[ "BSD-2-Clause" ]
null
null
null
awacs/proton.py
alanjjenkins/awacs
0065e1833eae6a6070edb4ab4f180fd10b26c19a
[ "BSD-2-Clause" ]
null
null
null
awacs/proton.py
alanjjenkins/awacs
0065e1833eae6a6070edb4ab4f180fd10b26c19a
[ "BSD-2-Clause" ]
null
null
null
# Copyright (c) 2012-2021, Mark Peek <mark@peek.org> # All rights reserved. # # See LICENSE file for full license. from .aws import Action as BaseAction from .aws import BaseARN service_name = "AWS Proton" prefix = "proton" class Action(BaseAction): def __init__(self, action: str = None) -> None: super(...
49.573333
88
0.839161
340
0.091447
0
0
0
0
0
0
1,459
0.392415
e0889d0fbe9b0d9be87761477e494198517f6636
308
py
Python
src/error.py
LydiaMelles/relativum
c7c0fc2b5c8d01842f6a02b67e7145cbd3a1ff65
[ "MIT" ]
null
null
null
src/error.py
LydiaMelles/relativum
c7c0fc2b5c8d01842f6a02b67e7145cbd3a1ff65
[ "MIT" ]
null
null
null
src/error.py
LydiaMelles/relativum
c7c0fc2b5c8d01842f6a02b67e7145cbd3a1ff65
[ "MIT" ]
1
2021-05-01T16:46:24.000Z
2021-05-01T16:46:24.000Z
class RequirementsNotMetError(Exception): """For SQL INSERT, missing table attributes.""" def __init__(self, message): super().__init__(message) class AuthenticationError(Exception): """Generic authentication error.""" def __init__(self, message): super().__init__(message)
28
51
0.694805
304
0.987013
0
0
0
0
0
0
82
0.266234
e089b61952e1f4d0f2fb6443737c623fe7ff04be
10,577
py
Python
jaxline/utils_test.py
lorenrose1013/jaxline
29fca9944651d42139d4103fe12ef29b24812eb6
[ "Apache-2.0" ]
1
2022-01-07T02:44:07.000Z
2022-01-07T02:44:07.000Z
jaxline/utils_test.py
SuperXiang/jaxline
f1503f6a06d46aa9eb2eab8eed6130895148ffa2
[ "Apache-2.0" ]
null
null
null
jaxline/utils_test.py
SuperXiang/jaxline
f1503f6a06d46aa9eb2eab8eed6130895148ffa2
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 DeepMind Technologies Limited. 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 ...
32.345566
80
0.681573
9,546
0.902524
248
0.023447
1,858
0.175664
0
0
2,524
0.238631
e08bf2bd2a9a71b40e56dae49102323a555d5695
3,664
py
Python
test/unit/mysql_class/slaverep_isslverror.py
deepcoder42/mysql-lib
d3d2459e0476fdbc4465e1d9389612e58d36fb25
[ "MIT" ]
1
2022-03-23T04:53:19.000Z
2022-03-23T04:53:19.000Z
test/unit/mysql_class/slaverep_isslverror.py
deepcoder42/mysql-lib
d3d2459e0476fdbc4465e1d9389612e58d36fb25
[ "MIT" ]
null
null
null
test/unit/mysql_class/slaverep_isslverror.py
deepcoder42/mysql-lib
d3d2459e0476fdbc4465e1d9389612e58d36fb25
[ "MIT" ]
null
null
null
#!/usr/bin/python # Classification (U) """Program: slaverep_isslverror.py Description: Unit testing of SlaveRep.is_slv_error in mysql_class.py. Usage: test/unit/mysql_class/slaverep_isslverror.py Arguments: """ # Libraries and Global Variables # Standard import sys import os if sys.version...
24.264901
74
0.570142
3,065
0.836517
0
0
0
0
0
0
1,376
0.375546
e08cc87c4cfc35f91dfef4447a5dc8af61c7fede
545
py
Python
problems/108.py
mengshun/Leetcode
8bb676f2fff093e1417a4bed13d9ad708149be78
[ "MIT" ]
null
null
null
problems/108.py
mengshun/Leetcode
8bb676f2fff093e1417a4bed13d9ad708149be78
[ "MIT" ]
null
null
null
problems/108.py
mengshun/Leetcode
8bb676f2fff093e1417a4bed13d9ad708149be78
[ "MIT" ]
null
null
null
""" 108. ๅฐ†ๆœ‰ๅบๆ•ฐ็ป„่ฝฌๆขไธบไบŒๅ‰ๆœ็ดขๆ ‘ """ from TreeNode import TreeNode class Solution: def sortedArrayToBST(self, nums: [int]) -> TreeNode: def dfs(left, right): if left > right: return None mid = left + (right - left) // 2 root = TreeNode(nums[mid]) roo...
18.793103
56
0.543119
388
0.67951
0
0
0
0
0
0
52
0.091068
e08cf0fb5bb3a579c0b07a1fe1738a0670a18bc7
10,230
py
Python
src/sage/tests/books/computational-mathematics-with-sagemath/domaines_doctest.py
hsm207/sage
020bd59ec28717bfab9af44d2231c53da1ff99f1
[ "BSL-1.0" ]
1,742
2015-01-04T07:06:13.000Z
2022-03-30T11:32:52.000Z
src/sage/tests/books/computational-mathematics-with-sagemath/domaines_doctest.py
hsm207/sage
020bd59ec28717bfab9af44d2231c53da1ff99f1
[ "BSL-1.0" ]
66
2015-03-19T19:17:24.000Z
2022-03-16T11:59:30.000Z
src/sage/tests/books/computational-mathematics-with-sagemath/domaines_doctest.py
hsm207/sage
020bd59ec28717bfab9af44d2231c53da1ff99f1
[ "BSL-1.0" ]
495
2015-01-10T10:23:18.000Z
2022-03-24T22:06:11.000Z
## -*- encoding: utf-8 -*- """ This file (./domaines_doctest.sage) was *autogenerated* from ./domaines.tex, with sagetex.sty version 2011/05/27 v2.3.1. It contains the contents of all the sageexample environments from this file. You should be able to doctest this file with: sage -t ./domaines_doctest.sage It is always ...
22.93722
127
0.607527
0
0
0
0
0
0
0
0
10,227
0.999707
e091211c57418837730aea76bfdd4d9fd710e048
1,978
py
Python
src/riotwatcher/riotwatcher.py
TheBoringBakery/Riot-Watcher
6e05fffe127530a75fd63e67da37ba81489fd4fe
[ "MIT" ]
2
2020-10-06T23:33:01.000Z
2020-11-22T01:58:43.000Z
src/riotwatcher/riotwatcher.py
TheBoringBakery/Riot-Watcher
6e05fffe127530a75fd63e67da37ba81489fd4fe
[ "MIT" ]
null
null
null
src/riotwatcher/riotwatcher.py
TheBoringBakery/Riot-Watcher
6e05fffe127530a75fd63e67da37ba81489fd4fe
[ "MIT" ]
null
null
null
from .Deserializer import Deserializer from .RateLimiter import RateLimiter from .Handlers import ( DeprecationHandler, DeserializerAdapter, DictionaryDeserializer, RateLimiterAdapter, ThrowOnErrorHandler, TypeCorrectorHandler, ) from .Handlers.RateLimit import BasicRateLimiter from ._apis imp...
31.396825
104
0.637513
1,608
0.812942
0
0
174
0.087968
0
0
860
0.434783
e09178ade395a6b6c4b0853c972ab7664e0aa556
4,175
py
Python
webots_ros2_core/webots_ros2_core/devices/gps_device.py
TaoYibo1866/webots_ros2
a72c164825663cebbfd27e0649ea51d3abf9bbed
[ "Apache-2.0" ]
176
2019-09-06T07:02:05.000Z
2022-03-27T12:41:10.000Z
webots_ros2_core/webots_ros2_core/devices/gps_device.py
TaoYibo1866/webots_ros2
a72c164825663cebbfd27e0649ea51d3abf9bbed
[ "Apache-2.0" ]
308
2019-08-20T12:56:23.000Z
2022-03-29T09:49:22.000Z
webots_ros2_core/webots_ros2_core/devices/gps_device.py
omichel/webots_ros2
5b59d0b1fbeff4c3f75a447bd152c10853f4691b
[ "Apache-2.0" ]
67
2019-11-03T00:58:09.000Z
2022-03-18T07:11:28.000Z
# Copyright 1996-2021 Cyberbotics Ltd. # # 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...
37.954545
84
0.648144
3,280
0.785629
0
0
0
0
0
0
1,470
0.352096
e091b9679a6111bb854970806d6dc9286999927c
127
py
Python
ML/complete_model/setlist.py
saisankargochhayat/doot
00bd74463a065f23886e829aae677267b7619e13
[ "MIT" ]
null
null
null
ML/complete_model/setlist.py
saisankargochhayat/doot
00bd74463a065f23886e829aae677267b7619e13
[ "MIT" ]
null
null
null
ML/complete_model/setlist.py
saisankargochhayat/doot
00bd74463a065f23886e829aae677267b7619e13
[ "MIT" ]
null
null
null
setlist = [['a','m','n','s','t','g','q','o','x'],['b','e','c'],['h','k','u','v'], ['d','r','p'],['f'],['l'],['i'],['w'],['y']]
42.333333
81
0.244094
0
0
0
0
0
0
0
0
72
0.566929
e091f0178c86f87d30aea273c60c55d5d07a1bdf
24,241
py
Python
players/jeff.py
jtreim/cant-stop
0ef1a2da67e4232a4ad2be150e950e8f1914a851
[ "MIT" ]
null
null
null
players/jeff.py
jtreim/cant-stop
0ef1a2da67e4232a4ad2be150e950e8f1914a851
[ "MIT" ]
null
null
null
players/jeff.py
jtreim/cant-stop
0ef1a2da67e4232a4ad2be150e950e8f1914a851
[ "MIT" ]
2
2020-12-29T21:30:54.000Z
2021-01-02T05:23:23.000Z
from .player import Player class JeffPlayer(Player): """ JeffPlayer focuses on the odds for continuing turns. To pick which move, calculates a move value based on odds of continued turns, moving forward less likely columns when possible, and winning columns over opponents. """ ODDS = 'odds...
35.806499
95
0.413143
24,212
0.998804
0
0
0
0
0
0
3,647
0.150448
e09320dd89276dff3fa36b0f354e1b3cd7cffc60
1,767
py
Python
Python2/src/main.py
nataddrho/digicueblue
246c87129e6a70d384b1553688672bb3d5c6643e
[ "MIT" ]
8
2017-11-02T16:04:15.000Z
2021-11-21T18:36:18.000Z
Python2/src/main.py
nataddrho/digicueblue
246c87129e6a70d384b1553688672bb3d5c6643e
[ "MIT" ]
2
2018-01-09T15:15:12.000Z
2018-10-11T23:56:59.000Z
Python2/src/main.py
nataddrho/digicueblue
246c87129e6a70d384b1553688672bb3d5c6643e
[ "MIT" ]
5
2018-01-08T16:06:45.000Z
2021-11-21T19:50:20.000Z
#!/usr/bin/env python # Nathan Rhoades 10/13/2017 import serial import serialport import bgapi import gui import digicueblue import traceback import time import threading import sys if sys.version_info[0] < 3: import Tkinter as Tk else: import tkinter as Tk class App(threading.Thread): # thread GUI to tha...
24.887324
88
0.612903
367
0.207697
0
0
0
0
0
0
460
0.260328
e093e95399d65bf6f2743e6fc81bac4c0cc5d9b1
138
py
Python
messager.py
plasticruler/newshound
c97ef09165eabb27ac65682e4893cf72dae7f3fb
[ "Apache-2.0" ]
null
null
null
messager.py
plasticruler/newshound
c97ef09165eabb27ac65682e4893cf72dae7f3fb
[ "Apache-2.0" ]
null
null
null
messager.py
plasticruler/newshound
c97ef09165eabb27ac65682e4893cf72dae7f3fb
[ "Apache-2.0" ]
null
null
null
import requests #newspi key c2d941c74c144421945618d97a458144 class Article: link:str headline:str summary:str body:str
12.545455
44
0.73913
73
0.528986
0
0
0
0
0
0
44
0.318841
e09525abcb7cde902261ff8255cd7d2143781fb5
8,471
py
Python
PyMaSC/handler/mappability.py
ronin-gw/PyMaSC
70c32b647017e162e0b004cadcf4f59a2d4012b6
[ "MIT" ]
2
2018-04-20T13:34:16.000Z
2021-07-13T16:20:28.000Z
PyMaSC/handler/mappability.py
ronin-gw/PyMaSC
70c32b647017e162e0b004cadcf4f59a2d4012b6
[ "MIT" ]
1
2021-03-16T11:08:46.000Z
2021-03-16T17:26:15.000Z
PyMaSC/handler/mappability.py
ronin-gw/PyMaSC
70c32b647017e162e0b004cadcf4f59a2d4012b6
[ "MIT" ]
null
null
null
import logging import os import json from multiprocessing import Process, Queue, Lock import numpy as np from PyMaSC.core.mappability import MappableLengthCalculator from PyMaSC.utils.progress import ProgressHook, MultiLineProgressManager from PyMaSC.utils.compatible import tostr, xrange from PyMaSC.utils.output impo...
37.816964
107
0.613387
8,030
0.94794
0
0
161
0.019006
0
0
985
0.116279
e0979923ac060ab5145d8b58681ac366fea606f9
1,190
py
Python
courses/backend/django-for-everybody/Web Application Technologies and Django/resources/dj4e-samples/tmpl/views.py
Nahid-Hassan/fullstack-software-development
892ffb33e46795061ea63378279a6469de317b1a
[ "CC0-1.0" ]
297
2019-01-25T08:44:08.000Z
2022-03-29T18:46:08.000Z
courses/backend/django-for-everybody/Web Application Technologies and Django/resources/dj4e-samples/tmpl/views.py
Nahid-Hassan/fullstack-software-development
892ffb33e46795061ea63378279a6469de317b1a
[ "CC0-1.0" ]
22
2019-05-06T14:21:04.000Z
2022-02-21T10:05:25.000Z
courses/backend/django-for-everybody/Web Application Technologies and Django/resources/dj4e-samples/tmpl/views.py
Nahid-Hassan/fullstack-software-development
892ffb33e46795061ea63378279a6469de317b1a
[ "CC0-1.0" ]
412
2019-02-12T20:44:43.000Z
2022-03-30T04:23:25.000Z
from django.shortcuts import render from django.views import View # Create your views here. def simple(request): return render(request, 'tmpl/simple.html') def guess(request) : context = {'zap' : '42' } return render(request, 'tmpl/guess.html', context) def special(request) : context = {'txt' : '<b>...
27.045455
56
0.595798
294
0.247059
0
0
0
0
0
0
374
0.314286
e098554863c066d539fc03234656fd767444cd09
477
py
Python
webapp/ex.py
jykim-rust/python
50efe51733976d9f8ae3be47d628601ad002d836
[ "MIT" ]
null
null
null
webapp/ex.py
jykim-rust/python
50efe51733976d9f8ae3be47d628601ad002d836
[ "MIT" ]
null
null
null
webapp/ex.py
jykim-rust/python
50efe51733976d9f8ae3be47d628601ad002d836
[ "MIT" ]
null
null
null
from flask import escape '''with open('ex') as full: for line in full: print(line,end='**') ''' ''' a=[] with open('ex') as full: for line in full: a.append(line.split('|')) print(a) ''' ''' with open('ex') as full: for line in full.readline(): print(line) ''' contents=[] with o...
14.90625
36
0.540881
0
0
0
0
0
0
0
0
297
0.622642
e0986b7dc3912a34a19f7612f40be9b6072d9a7e
15,310
py
Python
lib/twitter_utils.py
Vman45/ask-alexa-twitter
1711005e51db1f66beb2e41e762c39ee003273aa
[ "MIT" ]
310
2015-07-30T17:05:06.000Z
2020-12-19T18:39:39.000Z
lib/twitter_utils.py
Vman45/ask-alexa-twitter
1711005e51db1f66beb2e41e762c39ee003273aa
[ "MIT" ]
29
2015-12-08T22:10:47.000Z
2017-10-06T16:40:05.000Z
lib/twitter_utils.py
Vman45/ask-alexa-twitter
1711005e51db1f66beb2e41e762c39ee003273aa
[ "MIT" ]
73
2015-11-12T06:56:53.000Z
2020-09-13T22:23:44.000Z
import requests import jsonpickle from requests_oauthlib import OAuth1 from urllib.parse import parse_qs, urlencode import cherrypy from collections import defaultdict import json import os import re from collections import defaultdict # For readable serializations jsonpickle.set_encoder_options('json', sort_keys=Tr...
36.279621
150
0.615741
7,382
0.482169
0
0
0
0
0
0
3,343
0.218354
e09899e15fdc6c14c2bf5b2ab6389520f9a3d9b7
1,399
py
Python
sundry/serializable.py
jamesabel/sundry
4f63bfa0624c88a3cd05adf2784e9e3e66e094f4
[ "MIT" ]
2
2019-10-02T06:30:27.000Z
2021-07-10T22:39:30.000Z
sundry/serializable.py
jamesabel/sundry
4f63bfa0624c88a3cd05adf2784e9e3e66e094f4
[ "MIT" ]
3
2019-03-13T17:15:58.000Z
2019-06-04T20:26:57.000Z
sundry/serializable.py
jamesabel/sundry
4f63bfa0624c88a3cd05adf2784e9e3e66e094f4
[ "MIT" ]
1
2019-03-08T21:37:29.000Z
2019-03-08T21:37:29.000Z
import json from enum import Enum from decimal import Decimal def convert_serializable_special_cases(o): """ Convert an object to a type that is fairly generally serializable (e.g. json serializable). This only handles the cases that need converting. The json module handles all the rest. For JSON, ...
36.815789
97
0.709078
0
0
0
0
0
0
0
0
790
0.564689
e09a1b7388131ca361a24a122df607870ceb2f36
5,249
py
Python
legacy/neural_qa/train.py
FrancisLiang/models-1
e14d5bc1ab36d0dd11977f27cff54605bf99c945
[ "Apache-2.0" ]
4
2020-01-04T13:15:02.000Z
2021-07-21T07:50:02.000Z
legacy/neural_qa/train.py
FrancisLiang/models-1
e14d5bc1ab36d0dd11977f27cff54605bf99c945
[ "Apache-2.0" ]
2
2019-06-26T03:21:49.000Z
2019-09-19T09:43:42.000Z
legacy/neural_qa/train.py
FrancisLiang/models-1
e14d5bc1ab36d0dd11977f27cff54605bf99c945
[ "Apache-2.0" ]
3
2019-10-31T07:18:49.000Z
2020-01-13T03:18:39.000Z
import sys import os import argparse import numpy as np import paddle.v2 as paddle import reader import utils import network import config from utils import logger def save_model(trainer, model_save_dir, parameters, pass_id): f = os.path.join(model_save_dir, "params_pass_%05d.tar.gz" % pass_id) logger.info(...
33.864516
79
0.638407
0
0
0
0
0
0
0
0
1,268
0.24157
e09a68dcd0689137530fb16dbc35c12c92deee70
36,880
py
Python
yggdrasil/drivers/MatlabModelDriver.py
astro-friedel/yggdrasil
5ecbfd083240965c20c502b4795b6dc93d94b020
[ "BSD-3-Clause" ]
null
null
null
yggdrasil/drivers/MatlabModelDriver.py
astro-friedel/yggdrasil
5ecbfd083240965c20c502b4795b6dc93d94b020
[ "BSD-3-Clause" ]
null
null
null
yggdrasil/drivers/MatlabModelDriver.py
astro-friedel/yggdrasil
5ecbfd083240965c20c502b4795b6dc93d94b020
[ "BSD-3-Clause" ]
null
null
null
import subprocess import uuid as uuid_gen import logging from datetime import datetime import os import psutil import warnings import weakref from yggdrasil import backwards, tools, platform, serialize from yggdrasil.languages import get_language_dir from yggdrasil.config import ygg_cfg from yggdrasil.drivers.Interpret...
40.086957
85
0.585195
27,686
0.750705
0
0
12,435
0.337175
0
0
15,947
0.432402
e09cac0b5e9ae4638a705a4871a79857b3f43a52
1,049
py
Python
analysis/migrations/0032_auto_20210409_1333.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
5
2021-01-14T03:34:42.000Z
2022-03-07T15:34:18.000Z
analysis/migrations/0032_auto_20210409_1333.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
551
2020-10-19T00:02:38.000Z
2022-03-30T02:18:22.000Z
analysis/migrations/0032_auto_20210409_1333.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
null
null
null
# Generated by Django 3.1.3 on 2021-04-09 04:03 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('snpdb', '0030_one_off_fix_cohort_sample_order'), ('analysis', '0031_auto_20210331_1826'), ] operations = [ ...
33.83871
163
0.613918
923
0.879886
0
0
0
0
0
0
305
0.290753
e09ce665126d9b3d2e1a629422eb3823667146fa
3,453
py
Python
ted_sws/mapping_suite_processor/services/conceptual_mapping_generate_sparql_queries.py
meaningfy-ws/ted-sws
d1e351eacb2900f84ec7edc457e49d8202fbaff5
[ "Apache-2.0" ]
1
2022-03-21T12:32:52.000Z
2022-03-21T12:32:52.000Z
ted_sws/mapping_suite_processor/services/conceptual_mapping_generate_sparql_queries.py
meaningfy-ws/ted-sws
d1e351eacb2900f84ec7edc457e49d8202fbaff5
[ "Apache-2.0" ]
24
2022-02-10T10:43:56.000Z
2022-03-29T12:36:21.000Z
ted_sws/mapping_suite_processor/services/conceptual_mapping_generate_sparql_queries.py
meaningfy-ws/ted-sws
d1e351eacb2900f84ec7edc457e49d8202fbaff5
[ "Apache-2.0" ]
null
null
null
import pathlib from typing import Iterator import pandas as pd from ted_sws.resources.prefixes import PREFIXES_DEFINITIONS import re CONCEPTUAL_MAPPINGS_RULES_SHEET_NAME = "Rules" RULES_SF_FIELD_ID = 'Standard Form Field ID (M)' RULES_SF_FIELD_NAME = 'Standard Form Field Name (M)' RULES_E_FORM_BT_ID = 'eForm BT-ID (O)...
46.662162
250
0.705763
0
0
1,228
0.354811
0
0
0
0
987
0.285178
e09eabe2c9581024fbbd8098d315804c81879f55
205
py
Python
src/__init__.py
codeKgu/BiLevel-Graph-Neural-Network
ed89c7d39baca757411cf333c595ac464e991a8e
[ "MIT" ]
20
2020-07-22T03:56:13.000Z
2021-12-02T01:13:09.000Z
src/__init__.py
codeKgu/BiLevel-Graph-Neural-Network
ed89c7d39baca757411cf333c595ac464e991a8e
[ "MIT" ]
1
2020-07-28T17:47:17.000Z
2020-08-03T15:38:40.000Z
src/__init__.py
codeKgu/BiLevel-Graph-Neural-Network
ed89c7d39baca757411cf333c595ac464e991a8e
[ "MIT" ]
5
2020-08-09T11:14:49.000Z
2020-12-10T11:37:44.000Z
import sys from os.path import dirname, abspath, join cur_folder = dirname(abspath(__file__)) sys.path.insert(0, join(dirname(cur_folder), 'src')) sys.path.insert(0, dirname(cur_folder)) print(cur_folder)
29.285714
52
0.77561
0
0
0
0
0
0
0
0
5
0.02439
e0a0f22bfda8fa26025e7c4065f5e2b941f28ecf
3,892
py
Python
src/controllers/serie.py
igormotta92/gta-desafio-python-flask-api
7c048239359e8a21d777109bdb0d58b6c2c18450
[ "MIT" ]
null
null
null
src/controllers/serie.py
igormotta92/gta-desafio-python-flask-api
7c048239359e8a21d777109bdb0d58b6c2c18450
[ "MIT" ]
null
null
null
src/controllers/serie.py
igormotta92/gta-desafio-python-flask-api
7c048239359e8a21d777109bdb0d58b6c2c18450
[ "MIT" ]
null
null
null
# https://stackoverflow.com/questions/3300464/how-can-i-get-dict-from-sqlite-query # from flask import Flask from flask_restful import Resource, reqparse from src.model.serie import SerieModel from src.server.instance import server from db import db # books_db = [{"id": 0, "title": "War and Peace"}, {"id": 1, "title"...
29.938462
93
0.573741
3,528
0.906475
0
0
135
0.034687
0
0
878
0.225591
e0a33a3a50dffea3e1b1459aa66fc2a300fcaf7e
879
py
Python
tests/test_random.py
hirnimeshrampuresoftware/python-tcod
c82d60eaaf12e50b405d55df1026c1d00dd283b6
[ "BSD-2-Clause" ]
231
2018-06-28T10:07:41.000Z
2022-03-20T16:17:19.000Z
tests/test_random.py
hirnimeshrampuresoftware/python-tcod
c82d60eaaf12e50b405d55df1026c1d00dd283b6
[ "BSD-2-Clause" ]
66
2018-06-27T19:04:25.000Z
2022-03-30T21:15:15.000Z
tests/test_random.py
hirnimeshrampuresoftware/python-tcod
c82d60eaaf12e50b405d55df1026c1d00dd283b6
[ "BSD-2-Clause" ]
31
2018-09-12T00:35:42.000Z
2022-03-20T16:17:22.000Z
import copy import pickle import tcod def test_tcod_random() -> None: rand = tcod.random.Random(tcod.random.COMPLEMENTARY_MULTIPLY_WITH_CARRY) assert 0 <= rand.randint(0, 100) <= 100 assert 0 <= rand.uniform(0, 100) <= 100 rand.guass(0, 1) rand.inverse_guass(0, 1) def test_tcod_random_copy() ->...
30.310345
76
0.675768
0
0
0
0
0
0
0
0
0
0
e0a616cc9e84aa1cf90226b12de930157c9cb478
2,538
py
Python
src/Products/Five/viewlet/viewlet.py
rbanffy/Zope
ecf6770219052e7c7f8c9634ddf187a1e6280742
[ "ZPL-2.1" ]
289
2015-01-05T12:38:21.000Z
2022-03-05T21:20:39.000Z
src/Products/Five/viewlet/viewlet.py
rbanffy/Zope
ecf6770219052e7c7f8c9634ddf187a1e6280742
[ "ZPL-2.1" ]
732
2015-02-09T23:35:57.000Z
2022-03-31T09:10:13.000Z
src/Products/Five/viewlet/viewlet.py
rbanffy/Zope
ecf6770219052e7c7f8c9634ddf187a1e6280742
[ "ZPL-2.1" ]
102
2015-01-12T14:03:35.000Z
2022-03-30T11:02:44.000Z
############################################################################## # # Copyright (c) 2006 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOF...
29.511628
78
0.648542
442
0.174153
0
0
0
0
0
0
1,153
0.454295
e0a621c3b559223c04896e67f79d61f3971a7ebf
920
py
Python
problema21.py
bptfreitas/Project-Euler
02b3ef8f8e3754b886b266fcd5eee7fd00d97dde
[ "MIT" ]
null
null
null
problema21.py
bptfreitas/Project-Euler
02b3ef8f8e3754b886b266fcd5eee7fd00d97dde
[ "MIT" ]
null
null
null
problema21.py
bptfreitas/Project-Euler
02b3ef8f8e3754b886b266fcd5eee7fd00d97dde
[ "MIT" ]
null
null
null
#Let d(n) be defined as the sum of proper divisors of n (numbers less than n which divide evenly into n). #If d(a) = b and d(b) = a, where a b, then a and b are an amicable pair and each of a and b are called amicable numbers. #For example, the proper divisors of 220 are 1, 2, 4, 5, 10, 11, 20, 22, 44, 55 and 110; th...
20.444444
181
0.661957
0
0
0
0
0
0
0
0
511
0.555435
e0a7f01f58bb59078e58b00112eda388117b8294
1,590
py
Python
python-3.6.0/Doc/includes/email-unpack.py
emacslisp/python
5b89ddcc504108f0dfa1081e338e6475cf6ccd2f
[ "Apache-2.0" ]
854
2017-09-11T16:42:28.000Z
2022-03-27T14:17:09.000Z
python-3.6.0/Doc/includes/email-unpack.py
emacslisp/python
5b89ddcc504108f0dfa1081e338e6475cf6ccd2f
[ "Apache-2.0" ]
164
2017-09-24T20:40:32.000Z
2021-10-30T01:35:05.000Z
python-3.6.0/Doc/includes/email-unpack.py
emacslisp/python
5b89ddcc504108f0dfa1081e338e6475cf6ccd2f
[ "Apache-2.0" ]
73
2017-09-13T18:07:48.000Z
2022-03-17T13:02:29.000Z
#!/usr/bin/env python3 """Unpack a MIME message into a directory of files.""" import os import email import mimetypes from email.policy import default from argparse import ArgumentParser def main(): parser = ArgumentParser(description="""\ Unpack a MIME message into a directory of files. """) parser.add_a...
29.444444
78
0.611321
0
0
0
0
0
0
0
0
556
0.349686
e0a80310257c1b06b4c2e9dcba5929214b903c35
1,400
py
Python
src/streetview/logging_facility.py
juliantrue/Streetview-Segmenting
337740e6ebd2284c880ace09a11032c5914b39a4
[ "MIT" ]
1
2021-02-27T07:39:05.000Z
2021-02-27T07:39:05.000Z
src/streetview/logging_facility.py
juliantrue/Streetview-Segmenting
337740e6ebd2284c880ace09a11032c5914b39a4
[ "MIT" ]
null
null
null
src/streetview/logging_facility.py
juliantrue/Streetview-Segmenting
337740e6ebd2284c880ace09a11032c5914b39a4
[ "MIT" ]
1
2021-12-06T23:35:34.000Z
2021-12-06T23:35:34.000Z
import sys, os import logging import datetime module_name = 'Streetview_Module' debug_mode = True class LoggingWrapper(object): def __init__(self, log_folder_path=None): self.debug_mode = debug_mode # Create logger with module name logger = logging.getLogger(module_name) logger.s...
32.55814
93
0.597857
1,299
0.927857
0
0
0
0
0
0
341
0.243571
e0a906006c6cdb005397afa90c409162626abaca
536
py
Python
tkinter_examples/draw_chess_board.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
117
2015-12-18T07:18:27.000Z
2022-03-28T00:25:54.000Z
tkinter_examples/draw_chess_board.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
8
2018-10-03T09:38:46.000Z
2021-12-13T19:51:09.000Z
tkinter_examples/draw_chess_board.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
28
2016-08-02T17:43:47.000Z
2022-03-21T08:31:12.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = 'ipetrash' from tkinter import * root = Tk() root.title('Chess board') canvas = Canvas(root, width=700, height=700, bg='#fff') canvas.pack() fill = '#fff' outline = '#000' size = 88 for i in range(8): for j in range(8): x1, y1, x2, y2 = i * ...
18.482759
77
0.606343
0
0
0
0
0
0
0
0
86
0.160448
e0ab0941f48814dab8b198e84e5c5153cca3e066
7,827
py
Python
sandbox_api/asandbox.py
PremierLangage/sandbox-api
7150ddcb92ac2304ff1d7b23571ec5e20459747b
[ "MIT" ]
4
2020-01-27T19:06:05.000Z
2021-06-01T08:27:30.000Z
sandbox_api/asandbox.py
qcoumes/sandbox-api
7150ddcb92ac2304ff1d7b23571ec5e20459747b
[ "MIT" ]
null
null
null
sandbox_api/asandbox.py
qcoumes/sandbox-api
7150ddcb92ac2304ff1d7b23571ec5e20459747b
[ "MIT" ]
null
null
null
# asandbox.py # # Authors: # - Coumes Quentin <coumes.quentin@gmail.com> """An asynchronous implementation of the Sandbox API.""" import io import json import os from contextlib import AbstractAsyncContextManager from typing import BinaryIO, Optional, Union import aiohttp from .exceptions import status_exception...
38.55665
94
0.609046
7,473
0.954772
0
0
0
0
6,042
0.771943
2,934
0.374856
e0ab889f41c5f27938c1c1068877196809ff21fd
4,928
py
Python
api/services/usuarios_services.py
jhonnattan123/fastapi_crud_example
24e1c295d41ad364ef839a4756e85b5bd640385a
[ "MIT" ]
1
2022-03-25T17:37:46.000Z
2022-03-25T17:37:46.000Z
api/services/usuarios_services.py
jhonnattan123/fastapi_crud_example
24e1c295d41ad364ef839a4756e85b5bd640385a
[ "MIT" ]
null
null
null
api/services/usuarios_services.py
jhonnattan123/fastapi_crud_example
24e1c295d41ad364ef839a4756e85b5bd640385a
[ "MIT" ]
null
null
null
import datetime from uuid import UUID from api.actions import storage from fastapi import HTTPException from api.models.usuario import Usuario from starlette.requests import Request from api.dependencies import validar_email, validar_formato_fecha,validar_edad FORMATO_FECHA = "%Y-%m-%d" EDAD_MINIMA = 18 EDAD_MAXIMA = ...
32.421053
109
0.584416
4,611
0.934157
0
0
0
0
0
0
1,595
0.323136
e0ad08c2a04080e6246b307168d37bc9b104e50c
10,204
py
Python
certau/util/taxii/client.py
thisismyrobot/cti-toolkit
faf6e912af69376f5c55902c1592f7eeb0ce03dd
[ "BSD-3-Clause" ]
12
2016-07-11T07:53:05.000Z
2021-07-19T12:20:21.000Z
certau/util/taxii/client.py
thisismyrobot/cti-toolkit
faf6e912af69376f5c55902c1592f7eeb0ce03dd
[ "BSD-3-Clause" ]
null
null
null
certau/util/taxii/client.py
thisismyrobot/cti-toolkit
faf6e912af69376f5c55902c1592f7eeb0ce03dd
[ "BSD-3-Clause" ]
4
2016-11-13T22:38:10.000Z
2022-01-15T08:21:15.000Z
import os import logging import dateutil import pickle from six.moves.urllib.parse import urlparse from libtaxii import get_message_from_http_response, VID_TAXII_XML_11 from libtaxii.messages_11 import PollRequest, PollFulfillmentRequest from libtaxii.messages_11 import PollResponse, generate_message_id from libtaxii...
38.217228
78
0.591141
9,819
0.96227
3,882
0.380439
2,271
0.22256
0
0
2,110
0.206782
e0ada93a5debd6b2509b477f0b39c69cfae7e923
768
py
Python
tutorials/registration/data.py
YipengHu/MPHY0041
6e9706eba2b9f9a2449539d7dea5f91dde807584
[ "Apache-2.0" ]
1
2022-02-21T23:05:49.000Z
2022-02-21T23:05:49.000Z
tutorials/registration/data.py
YipengHu/MPHY0041
6e9706eba2b9f9a2449539d7dea5f91dde807584
[ "Apache-2.0" ]
2
2022-01-07T11:43:06.000Z
2022-03-17T02:11:58.000Z
tutorials/registration/data.py
YipengHu/MPHY0041
6e9706eba2b9f9a2449539d7dea5f91dde807584
[ "Apache-2.0" ]
null
null
null
import os import zipfile import requests DATA_PATH = './data' RESULT_PATH = './result' if not os.path.exists(DATA_PATH): os.makedirs(DATA_PATH) print('Downloading and extracting data...') url = 'https://weisslab.cs.ucl.ac.uk/WEISSTeaching/datasets/-/archive/hn2dct/datasets-hn2dct.zip' r = requests.get(url,all...
27.428571
105
0.736979
0
0
0
0
0
0
0
0
253
0.329427
e0ae282e70b49bf571087a6d88c319ae9d3cc9d4
3,774
py
Python
insights/parsers/tests/test_freeipa_healthcheck_log.py
lhuett/insights-core
1c84eeffc037f85e2bbf60c9a302c83aa1a50cf8
[ "Apache-2.0" ]
null
null
null
insights/parsers/tests/test_freeipa_healthcheck_log.py
lhuett/insights-core
1c84eeffc037f85e2bbf60c9a302c83aa1a50cf8
[ "Apache-2.0" ]
null
null
null
insights/parsers/tests/test_freeipa_healthcheck_log.py
lhuett/insights-core
1c84eeffc037f85e2bbf60c9a302c83aa1a50cf8
[ "Apache-2.0" ]
null
null
null
import doctest from insights.parsers import freeipa_healthcheck_log from insights.parsers.freeipa_healthcheck_log import FreeIPAHealthCheckLog from insights.tests import context_wrap LONG_FREEIPA_HEALTHCHECK_LOG_OK = """ [{"source": "ipahealthcheck.ipa.roles", "check": "IPACRLManagerCheck", "result": "SUCCESS", "uuid"...
35.942857
98
0.673026
0
0
0
0
0
0
0
0
2,102
0.556969
e0aedd632aed5a57b006b298a3c339eedfc172f6
3,484
py
Python
recipes/recipes/windows_image_builder/winpe_customization.py
xswz8015/infra
f956b78ce4c39cc76acdda47601b86794ae0c1ba
[ "BSD-3-Clause" ]
null
null
null
recipes/recipes/windows_image_builder/winpe_customization.py
xswz8015/infra
f956b78ce4c39cc76acdda47601b86794ae0c1ba
[ "BSD-3-Clause" ]
4
2022-03-17T18:58:21.000Z
2022-03-17T18:58:22.000Z
recipes/recipes/windows_image_builder/winpe_customization.py
xswz8015/infra
f956b78ce4c39cc76acdda47601b86794ae0c1ba
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2021 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from recipe_engine import post_process from PB.recipes.infra.windows_image_builder import windows_image_builder as wib from PB.recipes.infra.windows_image_b...
35.55102
80
0.705798
0
0
1,613
0.462974
0
0
0
0
1,381
0.396383
e0afd7d06dd45ec0003e8757b057e5c949b8d859
374
py
Python
back/lollangCompiler/main.py
wonjinYi/lollang-playground
2df07ccc2518e6dc9f9aa00b2f38ad8d62cdb507
[ "MIT" ]
11
2022-03-12T06:41:29.000Z
2022-03-15T06:15:52.000Z
back/lollangCompiler/main.py
wonjinYi/lollang-playground
2df07ccc2518e6dc9f9aa00b2f38ad8d62cdb507
[ "MIT" ]
4
2022-03-14T12:01:09.000Z
2022-03-26T20:19:52.000Z
back/lollangCompiler/main.py
wonjinYi/lollang-playground
2df07ccc2518e6dc9f9aa00b2f38ad8d62cdb507
[ "MIT" ]
null
null
null
from lollangCompiler.compiler import Compiler import argparse if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("--file", required=True, help="์ปดํŒŒ์ผํ•  ํŒŒ์ผ์„ ์„ ํƒํ•ด์ฃผ์„ธ์š”.") parser.add_argument("--out", default="out.py", help="๋ชฉ์  ํŒŒ์ด์ฌ ํŒŒ์ผ๊ฒฝ๋กœ๋ฅผ ์„ ํƒํ•ด์ฃผ์„ธ์š”") args = parser.parse_args() cmp...
37.4
78
0.708556
0
0
0
0
0
0
0
0
130
0.300926
e0b07a325b5b8caffedac977ee80452502819e41
4,103
py
Python
reproducing/generator_datacreation/data/readers/SEReader.py
UKPLab/emnlp2019-duplicate_question_detection
17a9d97c2414666fcc08015a58619fe9722daf2b
[ "Apache-2.0" ]
5
2019-09-30T11:09:39.000Z
2020-07-17T07:32:17.000Z
reproducing/generator_datacreation/data/readers/SEReader.py
UKPLab/emnlp2019-duplicate_question_detection
17a9d97c2414666fcc08015a58619fe9722daf2b
[ "Apache-2.0" ]
1
2020-07-17T07:32:46.000Z
2020-07-17T07:34:19.000Z
reproducing/generator_datacreation/data/readers/SEReader.py
UKPLab/emnlp2019-duplicate_question_detection
17a9d97c2414666fcc08015a58619fe9722daf2b
[ "Apache-2.0" ]
2
2020-04-09T01:27:50.000Z
2022-03-12T07:53:15.000Z
import logging import subprocess import xml.etree.ElementTree as ET from tqdm import tqdm logger = logging.getLogger('root') POST_TYPE_QUESTION = '1' POST_TYPE_ANSWER = '2' class SEDataReader(object): """ NOTE: - a typical xml string for question in original data looks like <row Id="4"...
55.445946
1,284
0.604436
3,923
0.95613
1,952
0.475749
0
0
0
0
1,723
0.419937