hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
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
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
4a17b17f55cc70462f3c6da0e9a412dda1d90844
617
py
Python
datasource_service/tests/test_main.py
airavata-courses/DCoders
cbe19a286f7e28abb031d0fa7f3576275b8999e6
[ "Apache-2.0" ]
1
2022-02-03T08:41:39.000Z
2022-02-03T08:41:39.000Z
datasource_service/tests/test_main.py
airavata-courses/DCoders
cbe19a286f7e28abb031d0fa7f3576275b8999e6
[ "Apache-2.0" ]
23
2022-01-24T04:51:36.000Z
2022-03-08T19:58:17.000Z
datasource_service/tests/test_main.py
airavata-courses/DCoders
cbe19a286f7e28abb031d0fa7f3576275b8999e6
[ "Apache-2.0" ]
null
null
null
""" Pytest for the GET api { Mock the nexrad object so that it doesn't download the radar object for the unit testing } """ from fastapi.testclient import TestClient from datasource_service.main import app test_client = TestClient(app) def test_nexrad_data(): """ Test GET api """ response = test_client.get...
28.045455
104
0.705024
4a17b350911884888d6f9fc9266cdac127ef7259
2,109
py
Python
datasets/schema.py
inyukwo1/qgm_decoder
70e60afec140ec3e2ee04f980a384e1cf28d761c
[ "MIT" ]
null
null
null
datasets/schema.py
inyukwo1/qgm_decoder
70e60afec140ec3e2ee04f980a384e1cf28d761c
[ "MIT" ]
null
null
null
datasets/schema.py
inyukwo1/qgm_decoder
70e60afec140ec3e2ee04f980a384e1cf28d761c
[ "MIT" ]
null
null
null
import random class Schema: def __init__(self): self.db_id = "" self._table_names = dict() self._table_names_original = dict() self._col_names = dict() self._col_names_original = dict() self._col_parent = dict() self._foreign_primary_pairs = [] self...
36.362069
103
0.662399
4a17b3633e7e3ec4bdd78d0cbf186945c8f45e7c
14,627
py
Python
qriscloud/_vendor/ldap3/utils/config.py
UQ-RCC/uq-globus-tools
a5191cd223b841fd404eddc90402947247b6504f
[ "Apache-2.0" ]
null
null
null
qriscloud/_vendor/ldap3/utils/config.py
UQ-RCC/uq-globus-tools
a5191cd223b841fd404eddc90402947247b6504f
[ "Apache-2.0" ]
null
null
null
qriscloud/_vendor/ldap3/utils/config.py
UQ-RCC/uq-globus-tools
a5191cd223b841fd404eddc90402947247b6504f
[ "Apache-2.0" ]
null
null
null
""" """ # Created on 2016.08.31 # # Author: Giovanni Cannata # # Copyright 2013 - 2020 Giovanni Cannata # # This file is part of ldap3. # # ldap3 is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free Software Foundation, either ...
48.756667
143
0.688658
4a17b38d218ab97c6707705d1cf72f299376d5b1
909
py
Python
src/cms/utils/file_utils.py
S10MC2015/cms-django
b08f2be60a9db6c8079ee923de2cd8912f550b12
[ "Apache-2.0" ]
null
null
null
src/cms/utils/file_utils.py
S10MC2015/cms-django
b08f2be60a9db6c8079ee923de2cd8912f550b12
[ "Apache-2.0" ]
null
null
null
src/cms/utils/file_utils.py
S10MC2015/cms-django
b08f2be60a9db6c8079ee923de2cd8912f550b12
[ "Apache-2.0" ]
null
null
null
""" This module contains helpers for file handling. """ from ..forms.media import DocumentForm def save_file(request): """ This function accepts uploaded files, checks if they are valid in respect to the :class:`~cms.forms.media.document_form.DocumentForm` and stores them to disk if so. Example usag...
28.40625
130
0.674367
4a17b4963eb60cdd8ff48cf4bde3b52050c02b55
15,753
py
Python
utils/models.py
cgvvv/MouseTracking
fc6cceefccfa4f070246fae64b9993ded76421cd
[ "MIT" ]
null
null
null
utils/models.py
cgvvv/MouseTracking
fc6cceefccfa4f070246fae64b9993ded76421cd
[ "MIT" ]
null
null
null
utils/models.py
cgvvv/MouseTracking
fc6cceefccfa4f070246fae64b9993ded76421cd
[ "MIT" ]
null
null
null
# My collection of available network models... import tensorflow as tf import tf_slim as slim from tf_slim.nets import resnet_v2 from tf_slim.nets import resnet_utils from tf_slim.nets import inception from tf_slim.nets import vgg from .readers import means, scale, atan2 import scipy.ndimage.morphology as morph import...
60.588462
266
0.718466
4a17b4dbe64c9f537ad434ce34bcf4637d83970a
13,128
py
Python
test/functional/feature_dbcrash.py
proteanx/Bitcorn-Test
87e0245c1cbbb1a662ae0f3a3a9411bbe308ab0f
[ "MIT" ]
25
2019-01-05T05:00:11.000Z
2021-05-03T03:54:07.000Z
test/functional/feature_dbcrash.py
Mattras007/BITCORN-1
47a5cdf7fa559aeeacf23f7d0191ba832561260b
[ "MIT" ]
17
2019-07-12T22:10:09.000Z
2021-04-07T17:15:26.000Z
test/functional/feature_dbcrash.py
Mattras007/BITCORN-1
47a5cdf7fa559aeeacf23f7d0191ba832561260b
[ "MIT" ]
17
2019-06-09T20:46:37.000Z
2021-12-31T08:44:19.000Z
#!/usr/bin/env python3 # Copyright (c) 2017-2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test recovery from a crash during chainstate writing. - 4 nodes * node0, node1, and node2 will have ...
47.912409
120
0.642824
4a17b4e4e3feecbed6ebdd61d39feab3bfc5a0dc
233
py
Python
Python/code case/code case 220.py
amazing-2020/pdf
8cd3f5f510a1c1ed89b51b1354f4f8c000c5b24d
[ "Apache-2.0" ]
3
2021-01-01T13:08:24.000Z
2021-02-03T09:27:56.000Z
Python/code case/code case 220.py
amazing-2020/pdf
8cd3f5f510a1c1ed89b51b1354f4f8c000c5b24d
[ "Apache-2.0" ]
null
null
null
Python/code case/code case 220.py
amazing-2020/pdf
8cd3f5f510a1c1ed89b51b1354f4f8c000c5b24d
[ "Apache-2.0" ]
null
null
null
for i in range(1, 5): print(" "*(4-i), end="") for j in range(1, 2*i): print("*", end="") print() for i in range(1, 4): print(" "*(i), end="") for j in range(7-2*i): print("*", end="") print()
21.181818
28
0.424893
4a17b5dd4bdfe68ac498a4bcfe2717f17da615ec
2,051
py
Python
venv/lib/python3.6/site-packages/astroid/__pkginfo__.py
albixhafa/recipry
bcf89f6982645f99bcd93fdd95999872d8dc0b89
[ "MIT" ]
10
2020-07-21T21:59:54.000Z
2021-07-19T11:01:47.000Z
Thonny/Lib/site-packages/astroid/__pkginfo__.py
Pydiderot/pydiderotIDE
a42fcde3ea837ae40c957469f5d87427e8ce46d3
[ "MIT" ]
51
2019-10-08T01:53:02.000Z
2021-06-04T22:02:21.000Z
Thonny/Lib/site-packages/astroid/__pkginfo__.py
Pydiderot/pydiderotIDE
a42fcde3ea837ae40c957469f5d87427e8ce46d3
[ "MIT" ]
7
2020-08-06T17:10:26.000Z
2022-03-13T02:15:59.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2006-2014 LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr> # Copyright (c) 2014-2018 Claudiu Popa <pcmanticore@gmail.com> # Copyright (c) 2014 Google, Inc. # Copyright (c) 2015-2017 Ceridwen <ceridwenv@gmail.com> # Copyright (c) 2015 Florian Bruhin <me@the-compiler.org> # Copyri...
39.442308
85
0.703072
4a17b68fb05a7c2e986f1e6b969212af3ea6081e
3,539
py
Python
contrib/buildbot/test/test_endpoint_buildDiff.py
ryan763/bitcoin-abc
d61983e9c7e4eb591ebd1d16711a917d4c70fcc3
[ "MIT" ]
null
null
null
contrib/buildbot/test/test_endpoint_buildDiff.py
ryan763/bitcoin-abc
d61983e9c7e4eb591ebd1d16711a917d4c70fcc3
[ "MIT" ]
null
null
null
contrib/buildbot/test/test_endpoint_buildDiff.py
ryan763/bitcoin-abc
d61983e9c7e4eb591ebd1d16711a917d4c70fcc3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (c) 2020 The Bitcoin ABC developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. import json import mock import requests import unittest from unittest.mock import call from build import Bu...
33.074766
107
0.517943
4a17b69dbf7096e8d7988fbef11d7ac2c93cb3ec
5,891
py
Python
ewh/ewh/environment.py
ryanordille/ewh-simulation
a4bde94688aacdaa228db63597cac052903eaf96
[ "MIT" ]
1
2016-12-20T23:13:19.000Z
2016-12-20T23:13:19.000Z
ewh/ewh/environment.py
ryanordille/ewh-simulation
a4bde94688aacdaa228db63597cac052903eaf96
[ "MIT" ]
null
null
null
ewh/ewh/environment.py
ryanordille/ewh-simulation
a4bde94688aacdaa228db63597cac052903eaf96
[ "MIT" ]
2
2016-12-21T16:52:41.000Z
2021-07-22T17:58:58.000Z
import csv import itertools import os import pprint import math import config class Environment(object): def __init__(self, mapping, time_scaling_factor, reactivation_hours, start_time_step=0): self._mapping = mapping self._current_hour = 0 self._tsf = time_scaling_factor self._cur...
38.756579
123
0.691733
4a17b6d592a3893fb3595a860160111792451450
390
py
Python
socceraction/__init__.py
pientist/socceraction
7f8e666ee5da7c1890c72a2c72042d4c73b90fda
[ "MIT" ]
371
2019-07-25T07:35:00.000Z
2022-03-25T11:13:56.000Z
socceraction/__init__.py
pientist/socceraction
7f8e666ee5da7c1890c72a2c72042d4c73b90fda
[ "MIT" ]
145
2019-08-29T12:49:55.000Z
2022-03-31T09:35:05.000Z
socceraction/__init__.py
pientist/socceraction
7f8e666ee5da7c1890c72a2c72042d4c73b90fda
[ "MIT" ]
101
2019-08-20T21:07:34.000Z
2022-03-26T10:00:00.000Z
# -*- coding: utf-8 -*- """ SoccerAction ~~~~~~~~~~~~ SoccerAction is a Python package for objectively quantifying the impact of the individual actions performed by soccer players using event stream data. Full documentation is at <https://ml-kuleuven.github.io/socceraction/>. :copyright: (c) 2020 by DTAI KU Leuven. :...
27.857143
78
0.723077
4a17b6f86b7f3c1aa0a92be0c54aaee73616fe69
49,251
py
Python
m2p/polymaker.py
NREL/m2p
821a6b884439057d44889b0ad97eabb09f7c3e54
[ "BSD-3-Clause" ]
5
2021-06-16T17:05:48.000Z
2021-11-01T13:41:46.000Z
m2p/polymaker.py
NREL/m2p
821a6b884439057d44889b0ad97eabb09f7c3e54
[ "BSD-3-Clause" ]
null
null
null
m2p/polymaker.py
NREL/m2p
821a6b884439057d44889b0ad97eabb09f7c3e54
[ "BSD-3-Clause" ]
3
2021-07-12T16:10:04.000Z
2022-02-08T01:52:32.000Z
import pandas as pd import numpy as np import re import random import ast import warnings import itertools import time from rdkit import Chem, rdBase from rdkit.Chem import AllChem from rdkit import RDLogger from rdkit.Chem import Descriptors from ast import literal_eval as leval from copy import deepcopy from tqdm ...
37.65367
154
0.669854
4a17b71d3d7ff94b4b066c885e51c17bbff9b329
1,115
py
Python
test/test_econdings.py
mspronesti/qlkit
2bb4dabcf88e63c54f7c57e2e80ad2ca77a04b40
[ "Apache-2.0" ]
5
2021-12-26T15:45:00.000Z
2022-01-12T10:31:57.000Z
test/test_econdings.py
mspronesti/qlkit
2bb4dabcf88e63c54f7c57e2e80ad2ca77a04b40
[ "Apache-2.0" ]
null
null
null
test/test_econdings.py
mspronesti/qlkit
2bb4dabcf88e63c54f7c57e2e80ad2ca77a04b40
[ "Apache-2.0" ]
2
2022-01-28T22:05:50.000Z
2022-02-27T18:50:33.000Z
from numpy.lib.scimath import sqrt from qlearnkit.encodings import AmplitudeEncoding import pytest import numpy as np @pytest.fixture def classical_data(): return [ [1, 1, 1, 1], [-1, -1, -1, -1], [1 / 2, -1 / 2, 0, 0] ] @pytest.fixture def expected_normalised_data(): return [ ...
27.875
78
0.574888
4a17b9628ee4ee63f8df88d7ab1085809d662e7f
869
py
Python
Ch3/magic_8ball.py
dmdinh22/ATBS
3ddd331757cc434faa5f27997b178f8a39e3b5d2
[ "MIT" ]
null
null
null
Ch3/magic_8ball.py
dmdinh22/ATBS
3ddd331757cc434faa5f27997b178f8a39e3b5d2
[ "MIT" ]
null
null
null
Ch3/magic_8ball.py
dmdinh22/ATBS
3ddd331757cc434faa5f27997b178f8a39e3b5d2
[ "MIT" ]
null
null
null
import random # import random module def get_answer(answer_number): #define function if answer_number == 1: return "It is certain" elif answer_number == 2: return "It is decidedly so" elif answer_number == 3: return "Yes" elif answer_number == 4: return "Reply hazy try a...
29.965517
71
0.652474
4a17b9a991fcc18fb4ad6306fa54119d511664dc
3,773
py
Python
obsei/source/website_crawler_source.py
shahrukhx01/obsei
ca1f8ecde28ac6003c6112cffbb690a235e86f0b
[ "Apache-2.0" ]
null
null
null
obsei/source/website_crawler_source.py
shahrukhx01/obsei
ca1f8ecde28ac6003c6112cffbb690a235e86f0b
[ "Apache-2.0" ]
null
null
null
obsei/source/website_crawler_source.py
shahrukhx01/obsei
ca1f8ecde28ac6003c6112cffbb690a235e86f0b
[ "Apache-2.0" ]
null
null
null
import json import logging from abc import abstractmethod from typing import List, Optional import mmh3 from trafilatura import extract, feeds, fetch_url, sitemaps from obsei.analyzer.base_analyzer import AnalyzerRequest from obsei.source.base_source import BaseSource, BaseSourceConfig logger = logging.getLogger(__n...
31.974576
86
0.619136
4a17ba3b67633286fdc300b638dfbc6529cf9629
330
py
Python
GUI/LoginPage.py
vips28/Aid-for-Dysgraphia
632f00534003cec94357c08743ee9af81b2ca742
[ "Apache-2.0" ]
null
null
null
GUI/LoginPage.py
vips28/Aid-for-Dysgraphia
632f00534003cec94357c08743ee9af81b2ca742
[ "Apache-2.0" ]
4
2021-01-07T09:51:55.000Z
2021-01-07T09:54:30.000Z
GUI/LoginPage.py
vips28/Aid-for-Dysgraphia
632f00534003cec94357c08743ee9af81b2ca742
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Mar 4 17:29:53 2021 @author: myanacondadont """ import kivy from kivy.app import App from kivy.uix.widget import Widget class MyGrid(Widget): pass class MyApp(App): def build(self): return MyGrid() if __name__ == '__main__': MyA...
16.5
36
0.60303
4a17bc05f33ff4ea866d6a8112dc9646ede1572e
374
py
Python
main.py
abhisheks008/Digital-Clock
9a307d759df85ed550e54bd3ce0894f915fa9eb6
[ "MIT" ]
null
null
null
main.py
abhisheks008/Digital-Clock
9a307d759df85ed550e54bd3ce0894f915fa9eb6
[ "MIT" ]
null
null
null
main.py
abhisheks008/Digital-Clock
9a307d759df85ed550e54bd3ce0894f915fa9eb6
[ "MIT" ]
null
null
null
from tkinter import * from tkinter.ttk import * from time import strftime root = Tk() root.title ("My Clock") def time (): string = strftime('%H:%M:%S %p') label.config(text = string) label.after(1000, time) label = Label(root, font=("Calibri",80), background = 'black', foreground = 'cyan') ...
20.777778
84
0.625668
4a17bc581bccac081bc43345d1f567ae5a7b7676
23,835
py
Python
python/ray/tune/ray_trial_executor.py
silveryfu/ray
4fa2a6006c305694a682086b1b52608cc3b7b8ee
[ "Apache-2.0" ]
1
2020-01-20T07:28:19.000Z
2020-01-20T07:28:19.000Z
python/ray/tune/ray_trial_executor.py
JunpingDu/ray
214f09d969480279930994cabbcc2a75535cc6ca
[ "Apache-2.0" ]
null
null
null
python/ray/tune/ray_trial_executor.py
JunpingDu/ray
214f09d969480279930994cabbcc2a75535cc6ca
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 from __future__ import absolute_import from __future__ import division from __future__ import print_function import logging import math import os import random import time import traceback import ray from ray.tune.error import AbortTrialExecution from ray.tune.logger import NoopLogger from ray.tune.tr...
40.126263
79
0.595804
4a17bd05725dd283ec848d54b43e7bf66a5d65f0
2,036
py
Python
compiler/tests/20_psram_1bank_2mux_1rw_1w_wmask_test.py
im-world/OpenRAM
f66aac3264598eeae31225c62b6a4af52412d407
[ "BSD-3-Clause" ]
335
2018-03-13T21:05:22.000Z
2022-03-30T07:53:25.000Z
compiler/tests/20_psram_1bank_2mux_1rw_1w_wmask_test.py
im-world/OpenRAM
f66aac3264598eeae31225c62b6a4af52412d407
[ "BSD-3-Clause" ]
87
2018-03-06T00:55:51.000Z
2022-03-30T19:38:29.000Z
compiler/tests/20_psram_1bank_2mux_1rw_1w_wmask_test.py
im-world/OpenRAM
f66aac3264598eeae31225c62b6a4af52412d407
[ "BSD-3-Clause" ]
95
2018-03-14T16:22:55.000Z
2022-03-24T00:34:37.000Z
#!/usr/bin/env python3 # See LICENSE for licensing information. # # Copyright (c) 2016-2021 Regents of the University of California and The Board # of Regents for the Oklahoma Agricultural and Mechanical College # (acting for and on behalf of Oklahoma State University) # All rights reserved. # import unittest from test...
33.933333
81
0.565324
4a17be08c2dfdfc4476533a892ac794f4383b4b1
313
py
Python
week4/fib.py
pkoarmy/Learning-Python
79067de3c09240d26939ca23ec98e96304660e7c
[ "MIT" ]
null
null
null
week4/fib.py
pkoarmy/Learning-Python
79067de3c09240d26939ca23ec98e96304660e7c
[ "MIT" ]
null
null
null
week4/fib.py
pkoarmy/Learning-Python
79067de3c09240d26939ca23ec98e96304660e7c
[ "MIT" ]
null
null
null
import time def fib(num): # First two fibonacci numbers are 1 if num == 1 or num == 2: return 1 # Return the sum of the last two fibonacci numbers return fib(num-1) + fib(num-2) start = time.time() for n in range(1, 36): print("fib(", n, ") =", fib(n)) print( time.time() - start)
19.5625
54
0.587859
4a17be7be8674b2fc91d520ec974a243386d621b
277
py
Python
tests/test_setting_attr.py
gnud/django-translation-flags
8efaa59e4af377fce542b97e66b416acb144b5d1
[ "MIT" ]
11
2018-11-29T17:00:44.000Z
2022-02-24T18:49:36.000Z
tests/test_setting_attr.py
gnud/django-translation-flags
8efaa59e4af377fce542b97e66b416acb144b5d1
[ "MIT" ]
6
2019-04-28T09:26:50.000Z
2021-06-10T21:01:21.000Z
tests/test_setting_attr.py
silviolleite/django-translation-flags
c09cc0781c8692318d35e4159d8b135fe4dde4c7
[ "MIT" ]
3
2019-08-05T15:52:55.000Z
2020-03-12T13:22:48.000Z
from django.test import TestCase from django_translation_flags import app_settings class AppSettingsTest(TestCase): def test_has_defined(self): """Must have the MIDDLEWARE defined in app_settings.py""" self.assertTrue(hasattr(app_settings, 'MIDDLEWARE'))
30.777778
65
0.765343
4a17bfcbcfdebf42a527ca63a8e33ef71ed67e7c
186
py
Python
tests/data/config/l.py
BIGWangYuDong/mmcv
c46deb0576edaff5cd5a7d384c617478c7a73a70
[ "Apache-2.0" ]
null
null
null
tests/data/config/l.py
BIGWangYuDong/mmcv
c46deb0576edaff5cd5a7d384c617478c7a73a70
[ "Apache-2.0" ]
null
null
null
tests/data/config/l.py
BIGWangYuDong/mmcv
c46deb0576edaff5cd5a7d384c617478c7a73a70
[ "Apache-2.0" ]
null
null
null
# Copyright (c) OpenMMLab. All rights reserved. import os.path as osp def func(x): return x _base_ = ['./l1.py', './l2.yaml', './l3.json', './l4.py'] item3 = False item4 = 'test'
16.909091
57
0.607527
4a17c05e07f3f6971070d283193beef05340fab6
5,903
py
Python
doc/source/conf.py
ucl-exoplanets/taurex-cuda_public
1588815217ca0b3019d8a438207633ba07f2b5f2
[ "BSD-3-Clause" ]
null
null
null
doc/source/conf.py
ucl-exoplanets/taurex-cuda_public
1588815217ca0b3019d8a438207633ba07f2b5f2
[ "BSD-3-Clause" ]
null
null
null
doc/source/conf.py
ucl-exoplanets/taurex-cuda_public
1588815217ca0b3019d8a438207633ba07f2b5f2
[ "BSD-3-Clause" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
29.813131
79
0.646282
4a17c0983a76dc672c68e1fdbb8ce234d8ff48e3
28,867
py
Python
src/saml2/assertion.py
clokep/pysaml2
e910240a3e4a208ad088693406712fdfe196b2ee
[ "Apache-2.0" ]
null
null
null
src/saml2/assertion.py
clokep/pysaml2
e910240a3e4a208ad088693406712fdfe196b2ee
[ "Apache-2.0" ]
null
null
null
src/saml2/assertion.py
clokep/pysaml2
e910240a3e4a208ad088693406712fdfe196b2ee
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import copy import importlib import logging import re import six from warnings import warn as _warn from saml2 import saml from saml2 import xmlenc from saml2.attribute_converter import from_local, ac_factory from saml2.attribute_converter import get_local_name from saml2....
34.001178
95
0.606921
4a17c0b45295aca2f3d538e2a3fa67e325956dc7
4,617
py
Python
dataprocess/inout_points.py
AyakashiQ/PCGCv1
d01673bc5dd18afd24872f35ab52f20758aa1a18
[ "Apache-2.0" ]
null
null
null
dataprocess/inout_points.py
AyakashiQ/PCGCv1
d01673bc5dd18afd24872f35ab52f20758aa1a18
[ "Apache-2.0" ]
null
null
null
dataprocess/inout_points.py
AyakashiQ/PCGCv1
d01673bc5dd18afd24872f35ab52f20758aa1a18
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Nanjing University, Vision Lab. # Last update: 2019.09.17 import numpy as np import os def load_ply_data(filename): ''' load data from ply file. ''' f = open(filename) #1.read all points points = [] for line in f: #only x,y,z wordslist = line.split(' ') try: x, y, z =...
30.176471
105
0.674031
4a17c1049aebb79ed58308c2f60356f382ebf943
802
py
Python
alembic/versions/55c008192aa_controversy.py
wenbs/mptracker
e011ab11954bbf785ae11fea7ed977440df2284a
[ "MIT" ]
4
2015-01-20T15:03:15.000Z
2017-03-15T09:56:07.000Z
alembic/versions/55c008192aa_controversy.py
wenbs/mptracker
e011ab11954bbf785ae11fea7ed977440df2284a
[ "MIT" ]
3
2021-03-31T18:53:12.000Z
2022-03-21T22:16:35.000Z
alembic/versions/55c008192aa_controversy.py
wenbs/mptracker
e011ab11954bbf785ae11fea7ed977440df2284a
[ "MIT" ]
6
2015-12-13T08:56:49.000Z
2021-08-07T20:36:29.000Z
revision = '55c008192aa' down_revision = 'c9230f65c6' from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql def upgrade(): op.create_table('controversy', sa.Column('id', postgresql.UUID(), nullable=False), sa.Column('slug', sa.Text(), nullable=False), s...
27.655172
70
0.659601
4a17c1cda7b7cecd31fa5985b2943986e487db02
40,791
py
Python
test/sql/test_defaults.py
mjpieters/sqlalchemy
a8efeb6c052330b7b8d44960132d638b08d42d18
[ "MIT" ]
null
null
null
test/sql/test_defaults.py
mjpieters/sqlalchemy
a8efeb6c052330b7b8d44960132d638b08d42d18
[ "MIT" ]
null
null
null
test/sql/test_defaults.py
mjpieters/sqlalchemy
a8efeb6c052330b7b8d44960132d638b08d42d18
[ "MIT" ]
null
null
null
from sqlalchemy.testing import eq_, assert_raises_message, assert_raises import datetime from sqlalchemy.schema import CreateSequence, DropSequence from sqlalchemy.sql import select, text import sqlalchemy as sa from sqlalchemy import testing from sqlalchemy.testing import engines from sqlalchemy import MetaData, Integ...
34.422785
125
0.557427
4a17c2007621e0b88cd951389a9c40ef1b9c6954
1,486
py
Python
tests/system/ec2_s3_pvm_tests.py
myhro/bootstrap-vz
bc1d5464f483434e5e291835bb9bc041f4879ecc
[ "Apache-2.0" ]
null
null
null
tests/system/ec2_s3_pvm_tests.py
myhro/bootstrap-vz
bc1d5464f483434e5e291835bb9bc041f4879ecc
[ "Apache-2.0" ]
null
null
null
tests/system/ec2_s3_pvm_tests.py
myhro/bootstrap-vz
bc1d5464f483434e5e291835bb9bc041f4879ecc
[ "Apache-2.0" ]
null
null
null
from manifests import merge_manifest_data from tools import boot_manifest import random s3_bucket_name = '{id:x}'.format(id=random.randrange(16 ** 16)) partials = {'s3_pvm': ''' provider: name: ec2 virtualization: pvm description: Debian {system.release} {system.architecture} bucket: ''' + s3_bucket_name + '''...
34.55814
73
0.757739
4a17c32e730365baf559b743bc95b32e8b681bb2
168
py
Python
rmidi/constant/event_format.py
rushike/rmidipy
7d80dc2cc584cb2e8b8df0eeedc34e9e11ab0de7
[ "MIT" ]
5
2019-11-30T11:12:14.000Z
2021-08-15T00:47:23.000Z
rmidi/constant/event_format.py
rushike/rmidipy
7d80dc2cc584cb2e8b8df0eeedc34e9e11ab0de7
[ "MIT" ]
3
2020-03-14T04:45:38.000Z
2020-05-31T15:07:13.000Z
rmidi/constant/event_format.py
rushike/rmidipy
7d80dc2cc584cb2e8b8df0eeedc34e9e11ab0de7
[ "MIT" ]
null
null
null
from . import (ch_event_formatx, meta_event_formatx, sys_event_formatx) X = {} X.update(ch_event_formatx.X) X.update(meta_event_formatx.X) X.update(sys_event_formatx.X)
33.6
71
0.815476
4a17c34cc6e9d833dd9e8010c71dd18eb5fed08a
2,225
py
Python
jiant/tasks/lib/arc_challenge.py
angie-chen55/jiant
961bd577f736449956ddb2c15dcfce68bbb75e59
[ "MIT" ]
null
null
null
jiant/tasks/lib/arc_challenge.py
angie-chen55/jiant
961bd577f736449956ddb2c15dcfce68bbb75e59
[ "MIT" ]
null
null
null
jiant/tasks/lib/arc_challenge.py
angie-chen55/jiant
961bd577f736449956ddb2c15dcfce68bbb75e59
[ "MIT" ]
null
null
null
from dataclasses import dataclass from jiant.tasks.lib.templates.shared import labels_to_bimap from jiant.tasks.lib.templates import multiple_choice as mc_template from jiant.utils.python.io import read_json_lines @dataclass class Example(mc_template.Example): @property def task(self): return ArcChal...
28.525641
94
0.62427
4a17c3a8a4c1d3c8643051c595695d306bbd8cf6
868
py
Python
sdks/python/test/test_StatusData.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/test/test_StatusData.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/test/test_StatusData.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ from __future__ import absolute_import import unittest import appcente...
21.7
79
0.700461
4a17c4bf78b95b079b5d529241dd8aa5cdd401f1
1,029
py
Python
lib/cookie.py
YunYinORG/social
5020e980cacd8eca39fccc36faabc584f3c3e15f
[ "Apache-2.0" ]
4
2015-12-20T14:57:57.000Z
2021-01-23T12:54:20.000Z
lib/cookie.py
YunYinORG/social
5020e980cacd8eca39fccc36faabc584f3c3e15f
[ "Apache-2.0" ]
1
2016-03-13T15:19:02.000Z
2016-03-18T03:11:18.000Z
lib/cookie.py
YunYinORG/social
5020e980cacd8eca39fccc36faabc584f3c3e15f
[ "Apache-2.0" ]
4
2015-12-21T02:26:29.000Z
2016-09-03T02:57:07.000Z
#!/usr/bin/env python # coding=utf-8 import web import base64 from config import COOKIE_KEY from json import dumps, loads from Crypto.Cipher import AES __doc__ = "加密cookie存取" _cipher = AES.new(COOKIE_KEY) def _encrypt(data): text = dumps(data, ensure_ascii=False, encoding='utf8') text = text.encode('utf-8') ...
23.386364
95
0.63654
4a17c52a69158cf7a76202cc96fa125d0c777303
516
py
Python
micro_orm/query/exceptions.py
RooYnnER/micro-orm
7ec329072a71565696fe27f44ff08412c708ff29
[ "MIT" ]
null
null
null
micro_orm/query/exceptions.py
RooYnnER/micro-orm
7ec329072a71565696fe27f44ff08412c708ff29
[ "MIT" ]
null
null
null
micro_orm/query/exceptions.py
RooYnnER/micro-orm
7ec329072a71565696fe27f44ff08412c708ff29
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- class WrongQueryGiven(Exception): pass class NoContentFound(Exception): pass class NoFilterGiven(Exception): pass class WrongSpecialGiven(Exception): pass class NoOrderByAttributeGiven(Exception): pass class TooMuchOrderByAttributesGiven(Exception): pass cla...
12.285714
47
0.74031
4a17c61ce17349b1eec47227e67401a9caf78e6d
10,156
py
Python
core/tests/unit/test_iam.py
rodrigodias27/google-cloud-python
7d1161f70744c0dbbe67a3f472ea95667eaafe50
[ "Apache-2.0" ]
1
2021-01-04T11:40:17.000Z
2021-01-04T11:40:17.000Z
core/tests/unit/test_iam.py
rodrigodias27/google-cloud-python
7d1161f70744c0dbbe67a3f472ea95667eaafe50
[ "Apache-2.0" ]
null
null
null
core/tests/unit/test_iam.py
rodrigodias27/google-cloud-python
7d1161f70744c0dbbe67a3f472ea95667eaafe50
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
35.51049
79
0.613923
4a17c6279b346a6bdd8540f13772cd777ce0ed31
2,350
py
Python
Project 3/Problem 5/AutocompleteTries.py
Blac-Panda/Udacity-DSA-Nanodegree
4629c77274182687f63c73016a941ab21f54f9cb
[ "MIT" ]
1
2020-05-14T12:44:53.000Z
2020-05-14T12:44:53.000Z
Project 3/Problem 5/AutocompleteTries.py
Blac-Panda/Udacity-DSA-Nanodegree
4629c77274182687f63c73016a941ab21f54f9cb
[ "MIT" ]
null
null
null
Project 3/Problem 5/AutocompleteTries.py
Blac-Panda/Udacity-DSA-Nanodegree
4629c77274182687f63c73016a941ab21f54f9cb
[ "MIT" ]
null
null
null
class TrieNode(object): """ Represents a single node in the Trie """ def __init__(self): """ Initialize this node in the Trie """ self.is_word = False self.children = {} def insert(self, char): """ Add a child node in this Trie """ if char not in self.children: ...
24.736842
92
0.567234
4a17c636005e3ceba776e66e1203ef87f8c01e7b
336
py
Python
lc/1451_RearrangeWordsInASentence.py
xiangshiyin/coding-challenge
a75a644b96dec1b6c7146b952ca4333263f0a461
[ "Apache-2.0" ]
null
null
null
lc/1451_RearrangeWordsInASentence.py
xiangshiyin/coding-challenge
a75a644b96dec1b6c7146b952ca4333263f0a461
[ "Apache-2.0" ]
null
null
null
lc/1451_RearrangeWordsInASentence.py
xiangshiyin/coding-challenge
a75a644b96dec1b6c7146b952ca4333263f0a461
[ "Apache-2.0" ]
null
null
null
class Solution: def arrangeWords(self, text: str) -> str: N = len(text) if N<=1: return text else: tmp = sorted(text.lower().split(), key=len) # fix the initial letter tmp[0] = tmp[0][0].upper()+tmp[0][1:] return ' '.join(t...
28
55
0.440476
4a17c6abe95d967c6a7bc313ad4cc294c3661e4e
17,249
py
Python
testing/citest/tests/appengine_smoke_test.py
ajordens/buildtool
7f43220ef29ca8902eaf016a9817916970f873d2
[ "Apache-2.0" ]
6
2020-02-26T23:38:30.000Z
2021-01-07T01:35:13.000Z
testing/citest/tests/appengine_smoke_test.py
ajordens/buildtool
7f43220ef29ca8902eaf016a9817916970f873d2
[ "Apache-2.0" ]
59
2020-02-13T15:35:45.000Z
2021-07-29T08:45:41.000Z
testing/citest/tests/appengine_smoke_test.py
ajordens/buildtool
7f43220ef29ca8902eaf016a9817916970f873d2
[ "Apache-2.0" ]
22
2020-02-07T16:01:09.000Z
2022-03-10T00:35:44.000Z
# Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
36.93576
116
0.665894
4a17c6e6c5c018bbaa3884ed924193cc0872495b
4,174
py
Python
cai/domains/mazeDomain/simulator/.waf3-1.7.16-9ca17eb492c97b689870b4ff9db75880/waflib/Tools/cs.py
alexander-hagg/phdexperiments
6506c8f2a438c67ca7c808df8715711fde73dfce
[ "MIT" ]
null
null
null
cai/domains/mazeDomain/simulator/.waf3-1.7.16-9ca17eb492c97b689870b4ff9db75880/waflib/Tools/cs.py
alexander-hagg/phdexperiments
6506c8f2a438c67ca7c808df8715711fde73dfce
[ "MIT" ]
null
null
null
cai/domains/mazeDomain/simulator/.waf3-1.7.16-9ca17eb492c97b689870b4ff9db75880/waflib/Tools/cs.py
alexander-hagg/phdexperiments
6506c8f2a438c67ca7c808df8715711fde73dfce
[ "MIT" ]
null
null
null
#! /usr/bin/env python # encoding: utf-8 # WARNING! Do not edit! http://waf.googlecode.com/git/docs/wafbook/single.html#_obtaining_the_waf_file from waflib import Utils,Task,Options,Logs,Errors from waflib.TaskGen import before_method,after_method,feature from waflib.Tools import ccroot from waflib.Configure import co...
31.383459
102
0.692381
4a17c85867b211792699d52b54f2df61f1a1816b
1,455
py
Python
backend/search/utils.py
HalmonLui/square-hackathon
62d5be7a229f9e39e27a546c164facd779d28aa4
[ "MIT" ]
3
2020-06-13T02:47:29.000Z
2020-06-20T17:34:15.000Z
backend/search/utils.py
HalmonLui/square-hackathon
62d5be7a229f9e39e27a546c164facd779d28aa4
[ "MIT" ]
2
2020-06-14T20:29:26.000Z
2020-06-14T20:29:34.000Z
backend/search/utils.py
HalmonLui/square-hackathon
62d5be7a229f9e39e27a546c164facd779d28aa4
[ "MIT" ]
1
2020-09-04T01:45:39.000Z
2020-09-04T01:45:39.000Z
# Author: Sonam Ghosh # The following script provides utility functions to be used for all search page functionalities. import urllib.parse import requests from typing import List, Tuple from math import sin, cos, sqrt, atan2, radians def address_to_latlong(address: str) -> Tuple: url = 'https://nominatim.opens...
26.454545
97
0.643986
4a17c881ca107bda0eff2ee87ff8f6f303468dbc
1,900
py
Python
taskbuster/apps/taskmanager/tests.py
mazulo/taskbuster_project
40833f4d969a413500c84b16702c1ad6932aff81
[ "MIT" ]
null
null
null
taskbuster/apps/taskmanager/tests.py
mazulo/taskbuster_project
40833f4d969a413500c84b16702c1ad6932aff81
[ "MIT" ]
null
null
null
taskbuster/apps/taskmanager/tests.py
mazulo/taskbuster_project
40833f4d969a413500c84b16702c1ad6932aff81
[ "MIT" ]
null
null
null
from django.test import TestCase from django.contrib.auth import get_user_model from django.core.exceptions import ValidationError from . import models class TestProfileModel(TestCase): def test_profile_creation(self): User = get_user_model() # New user created user = User.objects.create...
30.645161
74
0.592632
4a17ca64a3b077b1edf8207841b07c94a656d06d
308
py
Python
image_processor/__init__.py
sushrutm29/EE551-image-processing-website
e630ccf68a4566d0c060bf3de31823a2a6fd2473
[ "MIT" ]
null
null
null
image_processor/__init__.py
sushrutm29/EE551-image-processing-website
e630ccf68a4566d0c060bf3de31823a2a6fd2473
[ "MIT" ]
null
null
null
image_processor/__init__.py
sushrutm29/EE551-image-processing-website
e630ccf68a4566d0c060bf3de31823a2a6fd2473
[ "MIT" ]
null
null
null
# Course: EE551 Python for Engineer # Author: Sushrut Madhavi # Date: 2021/04/25 # Version: 1.0 # Creates the flask app from flask import Flask app = Flask(__name__) app.config['SECRET_KEY'] = '2ee9596db295364f62dd6aef17a2e3ca' app.config['SEND_FILE_MAX_AGE_DEFAULT'] = 0 from image_processor import routes
25.666667
61
0.779221
4a17cb321d3ba9c504dfce040275c061e39abacb
33,018
py
Python
pandas/tests/io/test_packers.py
MaxVanDeursen/pandas
9821b77de692716d7c2b62db1a68cac9ffc456c3
[ "BSD-3-Clause" ]
1
2019-03-25T09:31:34.000Z
2019-03-25T09:31:34.000Z
pandas/tests/io/test_packers.py
MaxVanDeursen/pandas
9821b77de692716d7c2b62db1a68cac9ffc456c3
[ "BSD-3-Clause" ]
null
null
null
pandas/tests/io/test_packers.py
MaxVanDeursen/pandas
9821b77de692716d7c2b62db1a68cac9ffc456c3
[ "BSD-3-Clause" ]
null
null
null
import datetime from distutils.version import LooseVersion import glob import os from warnings import catch_warnings import numpy as np import pytest from pandas._libs.tslib import iNaT from pandas.errors import PerformanceWarning import pandas from pandas import ( Categorical, DataFrame, Index, Interval, MultiI...
34.792413
79
0.575383
4a17cbd18c04c909411b7cea9f9cc00e05569f17
48,395
py
Python
chi/_problems.py
Lethay/chi
2182d8f9d54878b3f27670b157593f5a3bf9df4a
[ "BSD-3-Clause" ]
null
null
null
chi/_problems.py
Lethay/chi
2182d8f9d54878b3f27670b157593f5a3bf9df4a
[ "BSD-3-Clause" ]
null
null
null
chi/_problems.py
Lethay/chi
2182d8f9d54878b3f27670b157593f5a3bf9df4a
[ "BSD-3-Clause" ]
null
null
null
# # This file is part of the chi repository # (https://github.com/DavAug/chi/) which is released under the # BSD 3-clause license. See accompanying LICENSE.md for copyright notice and # full license details. # # The InverseProblem class is based on the SingleOutputProblem and # MultiOutputProblem classes of PINTS (http...
41.082343
131
0.625767
4a17cbf21e85ff1225e543c9acfa22a00883cb53
1,194
py
Python
statefulGenerator.py
AshTiwari/Python-Fundamentals
392ba4fea3c3a1a5eccc9852c84951ed4f83763d
[ "Adobe-Glyph" ]
null
null
null
statefulGenerator.py
AshTiwari/Python-Fundamentals
392ba4fea3c3a1a5eccc9852c84951ed4f83763d
[ "Adobe-Glyph" ]
null
null
null
statefulGenerator.py
AshTiwari/Python-Fundamentals
392ba4fea3c3a1a5eccc9852c84951ed4f83763d
[ "Adobe-Glyph" ]
null
null
null
''' Stateful Generator Function ''' def firstN(n, iterable): ''' This function returns the first `n` items of the `iterable`. It does a `lazy-evaluation`. Generator Function maintains the value of the variable `counter` apart from `item` to use it when the function resumes for the ...
31.421053
93
0.621441
4a17cc6543b40a4c81baa6222f85c2294d8467a7
614
py
Python
src/util/hashing.py
markste-in/malware_analysis
285c284a9575ce3cda383d242dff14f4f06881af
[ "MIT" ]
null
null
null
src/util/hashing.py
markste-in/malware_analysis
285c284a9575ce3cda383d242dff14f4f06881af
[ "MIT" ]
null
null
null
src/util/hashing.py
markste-in/malware_analysis
285c284a9575ce3cda383d242dff14f4f06881af
[ "MIT" ]
null
null
null
import hashlib import glob import os def hash_file(fname, hash_fnc): #https://stackoverflow.com/a/3431838 if hash_fnc == 'md5': hash_fun = hashlib.md5() elif hash_fnc == "sha1" : hash_fun = hashlib.sha1() else: return -1 try: with open(fname, "rb") as f: for chunk in iter(lambda: f...
29.238095
70
0.625407
4a17cd18d0bfc9c4028191bcdb7d39dcc5e42369
734
py
Python
tests/test_distance.py
bprinty/sequtils
a4ee5cb1ed2e84547050e4ebc4a9148df23768af
[ "Apache-2.0" ]
1
2021-11-23T12:04:48.000Z
2021-11-23T12:04:48.000Z
tests/test_distance.py
bprinty/sequtils
a4ee5cb1ed2e84547050e4ebc4a9148df23768af
[ "Apache-2.0" ]
null
null
null
tests/test_distance.py
bprinty/sequtils
a4ee5cb1ed2e84547050e4ebc4a9148df23768af
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import unittest from parameterized import parameterized import sequtils class TestDistance(unittest.TestCase): @parameterized.expand(( ('ACGT', 'ACGT', 0), ('AAAAAAAAAAA', 'AAAAAAATAAA', 1), ('ATGACTGAATATAAACTTGT', 'ATGACTCATTATGAACTTGT', 3), )) def tes...
25.310345
64
0.628065
4a17cd1fcb776051e26bc32be916e20c5f7c9237
328
py
Python
XXOORR.py
abphilip-codes/Codechef_Practice
21fd52e03df8a0f72a08b0e2a0b48dbd508aac95
[ "MIT" ]
2
2021-07-26T03:32:24.000Z
2021-07-31T02:32:14.000Z
XXOORR.py
abphilip-codes/Codechef_Practice
21fd52e03df8a0f72a08b0e2a0b48dbd508aac95
[ "MIT" ]
null
null
null
XXOORR.py
abphilip-codes/Codechef_Practice
21fd52e03df8a0f72a08b0e2a0b48dbd508aac95
[ "MIT" ]
1
2021-07-14T17:45:33.000Z
2021-07-14T17:45:33.000Z
# https://www.codechef.com/problems/XXOORR import math for T in range(int(input())): n,k = map(int, input().split()) a,b = list(map(int, input().split())), [0]*32 for z in a: p=0 while(z>0): if(z&1): b[p]+=1 z=z>>1 p+=1 print(sum([math.ceil(z/k) for z...
25.230769
49
0.481707
4a17cdb2e1cd1fe31c657f773490c789e6c32911
2,062
py
Python
Python3/1239.py
rakhi2001/ecom7
73790d44605fbd51e8f7e804b9808e364fcfc680
[ "MIT" ]
854
2018-11-09T08:06:16.000Z
2022-03-31T06:05:53.000Z
Python3/1239.py
rakhi2001/ecom7
73790d44605fbd51e8f7e804b9808e364fcfc680
[ "MIT" ]
29
2019-06-02T05:02:25.000Z
2021-11-15T04:09:37.000Z
Python3/1239.py
rakhi2001/ecom7
73790d44605fbd51e8f7e804b9808e364fcfc680
[ "MIT" ]
347
2018-12-23T01:57:37.000Z
2022-03-12T14:51:21.000Z
__________________________________________________________________________________________________ sample 20 ms submission class Solution: def maxLength(self, arr: List[str]) -> int: arr = [item for item in arr if len(item) == len(set(item))] def check(a, b): c = a + b ...
32.21875
98
0.507274
4a17cdea6d647f59cfdaa53eaa2da7602ca7c382
2,699
py
Python
bin/generate_markdown.py
mpgarate/spotify-infinite
0c864177825a060d95d2d127a119b33d06a634ec
[ "MIT" ]
1
2019-03-05T15:05:05.000Z
2019-03-05T15:05:05.000Z
bin/generate_markdown.py
mpgarate/spotify-infinite
0c864177825a060d95d2d127a119b33d06a634ec
[ "MIT" ]
null
null
null
bin/generate_markdown.py
mpgarate/spotify-infinite
0c864177825a060d95d2d127a119b33d06a634ec
[ "MIT" ]
null
null
null
import dateutil.parser as dp import json class AlbumFormatter(object): def __init__(self, album): self.album = album def _raw_album_url(self): return self.album['external_urls']['spotify'] def image(self): image = None for i in self.album['images']: if not ima...
29.988889
80
0.497221
4a17cdfa0451662a73f7ac70cf93ef7c5f913a7f
4,017
py
Python
tools/scripts/json-Elastic-bhr.py
wisslab/judaicalink-search
25f937dfc1cad385a355feacedf3ea722f953a14
[ "MIT" ]
null
null
null
tools/scripts/json-Elastic-bhr.py
wisslab/judaicalink-search
25f937dfc1cad385a355feacedf3ea722f953a14
[ "MIT" ]
null
null
null
tools/scripts/json-Elastic-bhr.py
wisslab/judaicalink-search
25f937dfc1cad385a355feacedf3ea722f953a14
[ "MIT" ]
null
null
null
# Maral Dadvar #This code extracts further information from GND for the authors of Freimann collection who have an GND-ID assigned to them. #15/01/2018 #Ver. 01 import rdflib from rdflib import Namespace, URIRef, Graph , Literal from SPARQLWrapper import SPARQLWrapper2, XML , RDF , JSON from rdflib.namespace import RD...
32.92623
280
0.619368
4a17cfdb2f104a85fd29f62cd8aefb33366b0d8a
4,226
py
Python
code/feature_extraction/extract_features.py
KristinaSig/MLinPractice
09c7729c0e1c92326cc85fe7d76fa43ebbfd4ca5
[ "MIT" ]
null
null
null
code/feature_extraction/extract_features.py
KristinaSig/MLinPractice
09c7729c0e1c92326cc85fe7d76fa43ebbfd4ca5
[ "MIT" ]
null
null
null
code/feature_extraction/extract_features.py
KristinaSig/MLinPractice
09c7729c0e1c92326cc85fe7d76fa43ebbfd4ca5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Runs the specified collection of feature extractors. Created on Wed Sep 29 11:00:24 2021 @author: lbechberger """ import argparse, csv, pickle import pandas as pd import numpy as np from code.feature_extraction.character_length import CharacterLength from code.featu...
45.44086
157
0.750592
4a17d103ddaeeb70c59a76339d40fef8a7fe0b1b
6,243
py
Python
old-version/cyclum/illustration.py
lshh125/cyclum
4bd7f136680108d28e4d07e627cda7cd4a242e64
[ "MIT" ]
12
2020-03-01T09:15:45.000Z
2021-10-03T07:58:48.000Z
old-version/cyclum/illustration.py
lshh125/cyclum
4bd7f136680108d28e4d07e627cda7cd4a242e64
[ "MIT" ]
5
2020-11-13T18:38:18.000Z
2021-12-17T18:47:32.000Z
old-version/cyclum/illustration.py
lshh125/cyclum
4bd7f136680108d28e4d07e627cda7cd4a242e64
[ "MIT" ]
5
2020-03-21T01:51:44.000Z
2022-03-15T11:08:59.000Z
import matplotlib as mpl import matplotlib.backends.backend_pdf import matplotlib.pyplot as plt import numpy as np from cyclum import evaluation class FigureWriter: """ keep and write figures into a pdf file. """ def __init__(self, pdf_name: str): self.figures = [] if not pdf_name.end...
29.448113
96
0.595547
4a17d16d5c57f6707afe4e735ec8004c2673a528
5,310
py
Python
GAN/Classifier.py
chaitrasj/Deep-Learning-for-Computer-Vision-DLCV-Assignment
80cb72b3a5c013290b91e0f1504a75fb627a465d
[ "MIT" ]
null
null
null
GAN/Classifier.py
chaitrasj/Deep-Learning-for-Computer-Vision-DLCV-Assignment
80cb72b3a5c013290b91e0f1504a75fb627a465d
[ "MIT" ]
null
null
null
GAN/Classifier.py
chaitrasj/Deep-Learning-for-Computer-Vision-DLCV-Assignment
80cb72b3a5c013290b91e0f1504a75fb627a465d
[ "MIT" ]
null
null
null
# import torch, torchvision import os import torch import torchvision.transforms as transforms from torchvision import datasets from torchvision.utils import save_image from torch.utils.data import DataLoader import torch.nn as nn import numpy as np from collections import OrderedDict from torch.nn import init import a...
36.62069
140
0.618832
4a17d1df978fbf1606aa612c9ea3d0eaf72dd164
694
py
Python
mainland/__init__.py
moshez/mainland
4aadf63d6e971518940828b1cc0b648ff5629bdd
[ "MIT" ]
null
null
null
mainland/__init__.py
moshez/mainland
4aadf63d6e971518940828b1cc0b648ff5629bdd
[ "MIT" ]
1
2015-06-28T04:29:16.000Z
2015-06-28T04:29:16.000Z
mainland/__init__.py
moshez/mainland
4aadf63d6e971518940828b1cc0b648ff5629bdd
[ "MIT" ]
null
null
null
# Copyright (c) Moshe Zadka # See LICENSE for details. """mainland -- a main for Python""" from mainland._version import get_versions as _get_versions __version__ = _get_versions()['version'] _long_description = '''\ mainland_: A way to run Python scripts without console-scripts .. _mainland: https://mainland.rtfd...
21.030303
62
0.727666
4a17d415bf85136c5c163c69415c6f22cdb09dce
4,184
py
Python
python/scripts/demo/m3_demo_hand_viz_h2r3.py
ahoarau/m3meka
237739f0266ce60aaa3013b0d2b22fc07b6374c4
[ "MIT" ]
1
2015-06-19T12:14:18.000Z
2015-06-19T12:14:18.000Z
python/scripts/demo/m3_demo_hand_viz_h2r3.py
semeyerz/m3meka
6e5d6b73ad3ebdd8429497923e601eae65d8b2fe
[ "MIT" ]
null
null
null
python/scripts/demo/m3_demo_hand_viz_h2r3.py
semeyerz/m3meka
6e5d6b73ad3ebdd8429497923e601eae65d8b2fe
[ "MIT" ]
2
2015-11-27T09:25:54.000Z
2021-08-16T16:29:22.000Z
#! /usr/bin/python #Copyright 2008, Meka Robotics #All rights reserved. #http://mekabot.com #Redistribution and use in source and binary forms, with or without #modification, are permitted. #THIS SOFTWARE IS PROVIDED BY THE Copyright HOLDERS AND CONTRIBUTORS #"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDI...
30.100719
119
0.699092
4a17d420e63355061892e706a2a00f38c76350d3
11,696
py
Python
tests/integration/ip_messaging/v2/service/test_channel.py
scotta/twilio-python
93cf463f914f55c4c4bd1c259b834953dd81609d
[ "MIT" ]
null
null
null
tests/integration/ip_messaging/v2/service/test_channel.py
scotta/twilio-python
93cf463f914f55c4c4bd1c259b834953dd81609d
[ "MIT" ]
null
null
null
tests/integration/ip_messaging/v2/service/test_channel.py
scotta/twilio-python
93cf463f914f55c4c4bd1c259b834953dd81609d
[ "MIT" ]
null
null
null
# coding=utf-8 """ This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from tests import IntegrationTestCase from tests.holodeck import Request from twilio.base.exceptions import TwilioException from twilio.http.response import Response class ChannelTestCase(Integratio...
45.6875
166
0.570793
4a17d46b33bab679d8e1de78336328ebdfe63c73
28,926
py
Python
tensorflow_probability/python/stats/quantiles_test.py
maksymsur/probability
331c943103e51df49a985895293c7e064a363ed5
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/stats/quantiles_test.py
maksymsur/probability
331c943103e51df49a985895293c7e064a363ed5
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/stats/quantiles_test.py
maksymsur/probability
331c943103e51df49a985895293c7e064a363ed5
[ "Apache-2.0" ]
1
2020-06-04T07:27:39.000Z
2020-06-04T07:27:39.000Z
# Copyright 2018 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
39.089189
95
0.635795
4a17d48d8171de59d4caa73fd13e0ed15a3f160d
18,819
py
Python
dev/merge_spark_pr.py
irgb/spark
ec8973d1245d4a99edeb7365d7f4b0063ac31ddf
[ "Apache-2.0", "MIT" ]
1
2015-07-17T14:30:08.000Z
2015-07-17T14:30:08.000Z
dev/merge_spark_pr.py
newscred/spark
257236c3e17906098f801cbc2059e7a9054e8cab
[ "Apache-2.0", "MIT" ]
1
2021-06-23T21:23:30.000Z
2021-06-23T21:23:30.000Z
dev/merge_spark_pr.py
newscred/spark
257236c3e17906098f801cbc2059e7a9054e8cab
[ "Apache-2.0", "MIT" ]
1
2020-07-23T14:03:42.000Z
2020-07-23T14:03:42.000Z
#!/usr/bin/env python # # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "Li...
41.543046
128
0.657368
4a17d4d5eed5e9470ea73849fcfd33635560e147
693
py
Python
data_statistics/cambridge.py
splitstrument/dataset-creation
c3fadf58ce3cb74d2edb1832df3f01de3d709061
[ "MIT" ]
null
null
null
data_statistics/cambridge.py
splitstrument/dataset-creation
c3fadf58ce3cb74d2edb1832df3f01de3d709061
[ "MIT" ]
null
null
null
data_statistics/cambridge.py
splitstrument/dataset-creation
c3fadf58ce3cb74d2edb1832df3f01de3d709061
[ "MIT" ]
null
null
null
import os import group_suggester def parse_tracks(cambridge_path, target_instruments, track_database): track_counter = 0 for track_name in os.listdir(cambridge_path): if not track_database.track_known(track_name): track_folder = os.path.join(cambridge_path, track_name) availa...
31.5
118
0.666667
4a17d5a3aaf74aaed420b27ba3cc2ffc318396d4
67,065
py
Python
agdc/stacker.py
alex-ip/agdc
9e9eb556c33792440a3736f64cd5f628cf3a1385
[ "BSD-3-Clause" ]
null
null
null
agdc/stacker.py
alex-ip/agdc
9e9eb556c33792440a3736f64cd5f628cf3a1385
[ "BSD-3-Clause" ]
null
null
null
agdc/stacker.py
alex-ip/agdc
9e9eb556c33792440a3736f64cd5f628cf3a1385
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python #=============================================================================== # Copyright (c) 2014 Geoscience Australia # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: ...
51.588462
223
0.550034
4a17d5bdcc5e654646c9592f4c5c57955def2685
4,944
py
Python
lte/gateway/python/integ_tests/s1aptests/test_attach_active_tau_with_combined_tala_update_reattach.py
nitinneet/test23
c44df1a3290195cd3fc59d3483ef640ca8aaeb1e
[ "BSD-3-Clause" ]
1
2021-08-08T15:49:05.000Z
2021-08-08T15:49:05.000Z
lte/gateway/python/integ_tests/s1aptests/test_attach_active_tau_with_combined_tala_update_reattach.py
nitinneet/test23
c44df1a3290195cd3fc59d3483ef640ca8aaeb1e
[ "BSD-3-Clause" ]
151
2020-09-03T20:44:13.000Z
2022-03-31T20:28:52.000Z
lte/gateway/python/integ_tests/s1aptests/test_attach_active_tau_with_combined_tala_update_reattach.py
kkahrs/magma
73e666627dc28e0c492feab7321bb7d6dd433b09
[ "BSD-3-Clause" ]
2
2021-05-27T18:15:16.000Z
2021-05-27T18:41:39.000Z
""" Copyright 2020 The Magma Authors. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES O...
35.314286
79
0.627023
4a17d61d65223659f13f4d3e074dcb5b8f6cbfb5
784
py
Python
AppEngine/templates2/main.py
topquark28/CSSI-2016
42b82462fc58fd3f454e2529e860d5edc0548e7f
[ "MIT" ]
null
null
null
AppEngine/templates2/main.py
topquark28/CSSI-2016
42b82462fc58fd3f454e2529e860d5edc0548e7f
[ "MIT" ]
null
null
null
AppEngine/templates2/main.py
topquark28/CSSI-2016
42b82462fc58fd3f454e2529e860d5edc0548e7f
[ "MIT" ]
null
null
null
#!/usr/bin/env python import jinja2 import logging import os import webapp2 class MainHandler(webapp2.RequestHandler): def get(self): logging.info("%s.get()" % self.__class__.__name__) template = jinja_environment.get_template('hello.html') self.response.write(template.render()) class Go...
24.5
63
0.718112
4a17d63ac42d8a804a4ccdb862e9cf4f0323cba8
7,148
py
Python
ambari-server/src/test/python/stacks/2.0.6/SQOOP/test_sqoop.py
nexr/ambari
8452f207d7b9343a162698f2a2b79bf2c512e9d3
[ "Apache-2.0" ]
1
2015-05-04T12:19:05.000Z
2015-05-04T12:19:05.000Z
ambari-server/src/test/python/stacks/2.0.6/SQOOP/test_sqoop.py
nexr/ambari
8452f207d7b9343a162698f2a2b79bf2c512e9d3
[ "Apache-2.0" ]
null
null
null
ambari-server/src/test/python/stacks/2.0.6/SQOOP/test_sqoop.py
nexr/ambari
8452f207d7b9343a162698f2a2b79bf2c512e9d3
[ "Apache-2.0" ]
1
2021-01-07T08:55:01.000Z
2021-01-07T08:55:01.000Z
#!/usr/bin/env python ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License")...
50.695035
130
0.551623
4a17d6d51c31e953cb34097cb4b9e2873f896fa3
4,219
py
Python
domato/canvas/generator.py
BOB-Jour/Domino_Fuzzer
82afb7b6e9b74235819e6d170bf85bde5d6d4213
[ "Apache-2.0" ]
4
2021-12-21T23:52:44.000Z
2021-12-23T19:19:21.000Z
domato/canvas/generator.py
BOB-Jour/Domino_Fuzzer
82afb7b6e9b74235819e6d170bf85bde5d6d4213
[ "Apache-2.0" ]
null
null
null
domato/canvas/generator.py
BOB-Jour/Domino_Fuzzer
82afb7b6e9b74235819e6d170bf85bde5d6d4213
[ "Apache-2.0" ]
1
2022-01-05T09:09:39.000Z
2022-01-05T09:09:39.000Z
# Domato - main generator script # ------------------------------- # # Written and maintained by Ivan Fratric <ifratric@google.com> # # Copyright 2017 Google Inc. All Rights Reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the ...
28.506757
109
0.631192
4a17d72cb000d6b3526dbde3a9f7f3a350a2095c
1,038
py
Python
parse_osts-txt.py
glennklockwood/atgtools
d601f7acbb194c6e287ffd3f0d1bce66806a1ed4
[ "BSD-4-Clause-UC" ]
8
2016-07-18T17:22:18.000Z
2021-01-05T18:24:50.000Z
parse_osts-txt.py
glennklockwood/atgtools
d601f7acbb194c6e287ffd3f0d1bce66806a1ed4
[ "BSD-4-Clause-UC" ]
null
null
null
parse_osts-txt.py
glennklockwood/atgtools
d601f7acbb194c6e287ffd3f0d1bce66806a1ed4
[ "BSD-4-Clause-UC" ]
4
2015-12-16T14:18:52.000Z
2019-05-08T21:40:47.000Z
#!/usr/bin/env python # # Parse and report on the osts.txt file dumped by the NERSC pyLMT # hourly_archive.sh script (which itself just dumps lctl dl -t with a # prefixed timestamp). See # # github.com/NERSC/pylmt/blob/master/share/nersc-deploy/hourly_archive.sh # import sys import re aggregate = { 'total': 0,...
31.454545
85
0.579961
4a17d7c0944549c526e7de24cff88ac90db63e3f
158
py
Python
_9_EXERCISE_DATA_TYPES_AND_VARIABLES/_6_Triples_of_Latin_Letters.py
YordanPetrovDS/Python_Fundamentals
81163054cd3ac780697eaa43f099cc455f253a0c
[ "MIT" ]
null
null
null
_9_EXERCISE_DATA_TYPES_AND_VARIABLES/_6_Triples_of_Latin_Letters.py
YordanPetrovDS/Python_Fundamentals
81163054cd3ac780697eaa43f099cc455f253a0c
[ "MIT" ]
null
null
null
_9_EXERCISE_DATA_TYPES_AND_VARIABLES/_6_Triples_of_Latin_Letters.py
YordanPetrovDS/Python_Fundamentals
81163054cd3ac780697eaa43f099cc455f253a0c
[ "MIT" ]
null
null
null
n = int(input()) for i in range(0, n): for k in range(0, n): for j in range(0, n): print(f"{chr(97 + i)}{chr(97 + k)}{chr(97 + j)}")
22.571429
61
0.455696
4a17d931c317c63e86b02871c29efac34b4f7855
16,786
py
Python
tests/test-lz4-speed.py
Joyoe/lz4-a8e8
de5393b0d053e1836a068661033fdcf0193bb402
[ "MIT" ]
null
null
null
tests/test-lz4-speed.py
Joyoe/lz4-a8e8
de5393b0d053e1836a068661033fdcf0193bb402
[ "MIT" ]
null
null
null
tests/test-lz4-speed.py
Joyoe/lz4-a8e8
de5393b0d053e1836a068661033fdcf0193bb402
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 # # Copyright (c) 2016-2020, Przemyslaw Skibinski, Yann Collet, Facebook, Inc. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. An additional grant # of patent rights can be found in the PA...
47.6875
294
0.628202
4a17d9f14ec8ebe165efe9bd41b64b3ed86b0f53
348
py
Python
other/dingding/dingtalk/api/rest/OapiAttendanceGroupCreateRequest.py
hth945/pytest
83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc
[ "Apache-2.0" ]
null
null
null
other/dingding/dingtalk/api/rest/OapiAttendanceGroupCreateRequest.py
hth945/pytest
83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc
[ "Apache-2.0" ]
null
null
null
other/dingding/dingtalk/api/rest/OapiAttendanceGroupCreateRequest.py
hth945/pytest
83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc
[ "Apache-2.0" ]
null
null
null
''' Created by auto_sdk on 2020.04.09 ''' from dingtalk.api.base import RestApi class OapiAttendanceGroupCreateRequest(RestApi): def __init__(self,url=None): RestApi.__init__(self,url) self.group = None self.op_userid = None def getHttpMethod(self): return 'POST' def getapiname(self): return 'dingtalk.oa...
21.75
48
0.755747
4a17da2d583f064d6a4bb30f66ac2c988f984e0c
10,618
py
Python
uhd_restpy/testplatform/sessions/ixnetwork/topology/rsvpingressrrosubobjectslist_a21ca5185e1490831d56bb810b32d086.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
uhd_restpy/testplatform/sessions/ixnetwork/topology/rsvpingressrrosubobjectslist_a21ca5185e1490831d56bb810b32d086.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
uhd_restpy/testplatform/sessions/ixnetwork/topology/rsvpingressrrosubobjectslist_a21ca5185e1490831d56bb810b32d086.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
# MIT LICENSE # # Copyright 1997 - 2020 by IXIA Keysight # # 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,...
36.740484
202
0.651535
4a17da9c107a8a2af613b8b327c9f11591c0bb7a
4,946
py
Python
tests/test_localization.py
eleeeeeee/abc
5d81d68c7a47e931f050632ae7cddb3b044971b4
[ "BSD-2-Clause" ]
1
2017-11-26T18:48:29.000Z
2017-11-26T18:48:29.000Z
tests/test_localization.py
eleeeeeee/abc
5d81d68c7a47e931f050632ae7cddb3b044971b4
[ "BSD-2-Clause" ]
3
2018-06-22T23:33:46.000Z
2018-06-25T00:14:35.000Z
tests/test_localization.py
eleeeeeee/abc
5d81d68c7a47e931f050632ae7cddb3b044971b4
[ "BSD-2-Clause" ]
1
2020-08-12T08:27:22.000Z
2020-08-12T08:27:22.000Z
import unittest try: from unittest.mock import patch except ImportError: from mock import patch import streamlink.utils.l10n as l10n try: import iso639 import iso3166 ISO639 = True except ImportError: ISO639 = False try: import pycountry PYCOUNTRY = True except ImportError: PYC...
36.10219
103
0.662353
4a17daeccdc59ed3332fbd6785a4c817bf0a62b0
8,690
py
Python
sdk/python/pulumi_equinix_metal/get_reserved_ip_block.py
pulumi/pulumi-equinix-metal
79213497bddc7ae806d3b27c3f349fdff935a19f
[ "ECL-2.0", "Apache-2.0" ]
1
2021-01-08T21:57:33.000Z
2021-01-08T21:57:33.000Z
sdk/python/pulumi_equinix_metal/get_reserved_ip_block.py
pulumi/pulumi-equinix-metal
79213497bddc7ae806d3b27c3f349fdff935a19f
[ "ECL-2.0", "Apache-2.0" ]
33
2020-12-23T21:37:39.000Z
2022-03-25T19:23:17.000Z
sdk/python/pulumi_equinix_metal/get_reserved_ip_block.py
pulumi/pulumi-equinix-metal
79213497bddc7ae806d3b27c3f349fdff935a19f
[ "ECL-2.0", "Apache-2.0" ]
1
2021-01-08T21:24:44.000Z
2021-01-08T21:24:44.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
36.822034
292
0.646375
4a17db1446123a84c165af6bdf88e11684b706a0
19,718
py
Python
src/oci/cloud_guard/models/problem_summary.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
249
2017-09-11T22:06:05.000Z
2022-03-04T17:09:29.000Z
src/oci/cloud_guard/models/problem_summary.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
228
2017-09-11T23:07:26.000Z
2022-03-23T10:58:50.000Z
src/oci/cloud_guard/models/problem_summary.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
224
2017-09-27T07:32:43.000Z
2022-03-25T16:55:42.000Z
# coding: utf-8 # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
32.00974
245
0.644792
4a17dbe912a0b27bd90a07d0cebe54e7da0ecaaa
9,995
py
Python
softwar/clients/SFWindow.py
TASnomad/etna-oss-projects
fbd252e5c0f38c4a3c086e61c1e2b22178cb9c67
[ "MIT" ]
null
null
null
softwar/clients/SFWindow.py
TASnomad/etna-oss-projects
fbd252e5c0f38c4a3c086e61c1e2b22178cb9c67
[ "MIT" ]
null
null
null
softwar/clients/SFWindow.py
TASnomad/etna-oss-projects
fbd252e5c0f38c4a3c086e61c1e2b22178cb9c67
[ "MIT" ]
null
null
null
#-*- coding: utf-8 -*- import time import json from threading import Thread from Tkinter import * from softZmq import * from AI.AI import AI #classe qui gère l'affichage du jeu et le jeu en lui même class SFWindow(object) : def __init__(self): #principal window self.window = Tk() self.windo...
36.213768
449
0.555778
4a17dbfd28d58160a4726f3884a050ae6e16bebb
3,149
py
Python
tests/render/test_render_BulletListContentBlock.py
dalisaydavid/great_expectations
dbb465a524de4a18859acb7bb885b69a76d278e6
[ "Apache-2.0" ]
null
null
null
tests/render/test_render_BulletListContentBlock.py
dalisaydavid/great_expectations
dbb465a524de4a18859acb7bb885b69a76d278e6
[ "Apache-2.0" ]
null
null
null
tests/render/test_render_BulletListContentBlock.py
dalisaydavid/great_expectations
dbb465a524de4a18859acb7bb885b69a76d278e6
[ "Apache-2.0" ]
null
null
null
import pytest import glob import json from string import Template as pTemplate from great_expectations.render.renderer.content_block import ( ExpectationSuiteBulletListContentBlockRenderer, ) from great_expectations.render.renderer.content_block.expectation_string import ( substitute_none_for_missing, ) from...
35.784091
135
0.618609
4a17dc947a2d3ee2f74382b903d154545a4ff1a8
569
py
Python
src/utest/driver/d_requests.py
Sirius1942/BearSki
bdc75d6f06946896e2128f1c095b9baf9863b124
[ "MIT" ]
13
2019-12-10T09:07:45.000Z
2021-09-08T01:24:22.000Z
src/utest/driver/d_requests.py
Sirius1942/BearSki
bdc75d6f06946896e2128f1c095b9baf9863b124
[ "MIT" ]
1
2020-05-06T01:43:50.000Z
2020-05-06T01:44:46.000Z
src/utest/driver/d_requests.py
Sirius1942/BearSki
bdc75d6f06946896e2128f1c095b9baf9863b124
[ "MIT" ]
6
2020-01-07T07:07:42.000Z
2021-06-04T03:38:19.000Z
import requests def get(url, params=None, **kwargs): return requests.get(url,params,**kwargs) def post(url, data=None, json=None, **kwargs): return requests.post(url, data, json, **kwargs) def delete(url, **kwargs): return requests.delete(url, **kwargs) def put(url, data=None, **kwargs): return requests.pu...
23.708333
49
0.6942
4a17dd0bf8c7f15b511ed5d6c1a67cd62a987a3c
3,955
py
Python
socli/auth.py
l1n3n01z/socli
c6c33708ccd8aba999476326600a70438d7ec9ac
[ "BSD-3-Clause" ]
null
null
null
socli/auth.py
l1n3n01z/socli
c6c33708ccd8aba999476326600a70438d7ec9ac
[ "BSD-3-Clause" ]
1
2018-06-14T12:21:07.000Z
2018-06-14T12:22:12.000Z
socli/auth.py
l1n3n01z/socli
c6c33708ccd8aba999476326600a70438d7ec9ac
[ "BSD-3-Clause" ]
null
null
null
import os from functools import wraps from getpass import getpass from bs4 import BeautifulSoup from requests import Session # Supporting input in Python 2/3 try: input = raw_input except NameError: pass # Supporting LWPCookieJar in Python 2/3 try: from http.cookiejar import LWPCookieJar except ImportEr...
25.849673
80
0.613906
4a17ddbce54bb96b78f6b6516e4408e86e795fce
801
py
Python
swig/x64dbgpy/pluginsdk/_scriptapi/comment.py
limbernie/x64dbgpy
2e2f4108ddbb42cffb80fb444e3ac56924cf1f7a
[ "MIT" ]
1,279
2016-06-28T19:17:37.000Z
2022-03-29T02:43:01.000Z
swig/x64dbgpy/pluginsdk/_scriptapi/comment.py
limbernie/x64dbgpy
2e2f4108ddbb42cffb80fb444e3ac56924cf1f7a
[ "MIT" ]
60
2016-07-04T18:27:24.000Z
2021-09-11T08:12:48.000Z
swig/x64dbgpy/pluginsdk/_scriptapi/comment.py
limbernie/x64dbgpy
2e2f4108ddbb42cffb80fb444e3ac56924cf1f7a
[ "MIT" ]
72
2016-07-23T00:39:49.000Z
2022-01-19T05:08:55.000Z
import ctypes from .. import x64dbg MAX_COMMENT_SIZE = 512 def Set(addr, text, manual = False): return x64dbg.Comment_Set(addr, text, manual) def SetInfo(info): return x64dbg.Comment_Set(info) def Get(addr): text = ctypes.create_string_buffer(MAX_COMMENT_SIZE) res = x64dbg.Comment_Get(addr, text)...
20.025
56
0.690387
4a17ded76fe3d3cda72be7db717b46a013b4fa02
7,413
py
Python
dianping_comment.py
mwsssxu/DPspider
d0563bc22f426fab38d3923d1b23c2948bf5832b
[ "MIT" ]
null
null
null
dianping_comment.py
mwsssxu/DPspider
d0563bc22f426fab38d3923d1b23c2948bf5832b
[ "MIT" ]
null
null
null
dianping_comment.py
mwsssxu/DPspider
d0563bc22f426fab38d3923d1b23c2948bf5832b
[ "MIT" ]
null
null
null
import datetime import random import time import re # from selenium.webdriver.chrome.options import Options # from selenium import webdriver from lxml import etree import requests class DianpingComment: font_size = 14 start_y = 23 def __init__(self, shop_id, cookies, delay=7, handle_ban=False): ...
35.4689
150
0.547686
4a17df44b1370fdb32d971e0a3a334bf2d9c3e68
3,156
py
Python
zksync_sdk/zksync.py
zksync-sdk/zksync-python
740020b6c6b83548cf6cd2ec1b4af94316a74667
[ "MIT" ]
22
2021-03-05T07:01:05.000Z
2022-03-26T19:15:19.000Z
zksync_sdk/zksync.py
zksync-sdk/zksync-python
740020b6c6b83548cf6cd2ec1b4af94316a74667
[ "MIT" ]
23
2021-03-01T06:09:26.000Z
2022-02-17T21:54:44.000Z
zksync_sdk/zksync.py
zksync-sdk/zksync-python
740020b6c6b83548cf6cd2ec1b4af94316a74667
[ "MIT" ]
10
2021-03-08T13:43:49.000Z
2021-08-23T16:18:14.000Z
from eth_account.signers.base import BaseAccount from web3 import Web3 from zksync_sdk.contract_utils import erc20_abi, zksync_abi MAX_ERC20_APPROVE_AMOUNT = 115792089237316195423570985008687907853269984665640564039457584007913129639935 # 2^256 - 1 ERC20_APPROVE_THRESHOLD = 578960446186580977117854925043439539266349...
44.450704
118
0.720532
4a17dfb63da5798cfb931b04555e8fff77a8bf43
3,789
py
Python
setup.py
DYL521/request_id
52059f5a1c2e21c375a585b99a376575b1bd45d5
[ "MIT" ]
null
null
null
setup.py
DYL521/request_id
52059f5a1c2e21c375a585b99a376575b1bd45d5
[ "MIT" ]
null
null
null
setup.py
DYL521/request_id
52059f5a1c2e21c375a585b99a376575b1bd45d5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Note: To use the 'upload' functionality of this file, you must: # $ pipenv install twine --dev import io import os import sys from shutil import rmtree from setuptools import find_packages, setup, Command # Package meta-data. NAME = 'request_tack_id' DESCRIPTION = '...
28.704545
86
0.639483
4a17e3c79f99926f73d0a4fab0ce410423933587
33,399
py
Python
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_06_01_preview/aio/operations/_task_runs_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_06_01_preview/aio/operations/_task_runs_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_06_01_preview/aio/operations/_task_runs_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
52.185938
219
0.671188
4a17e411e3b94d2b3e016ce73135688a2ca43dcb
8,293
py
Python
docs/conf.py
edoburu/django-any-urlfield
d742d1f007eca00d18e221a7e169fa191099c080
[ "Apache-2.0" ]
26
2015-02-02T20:51:17.000Z
2021-07-14T02:57:52.000Z
docs/conf.py
edoburu/django-any-urlfield
d742d1f007eca00d18e221a7e169fa191099c080
[ "Apache-2.0" ]
11
2015-01-26T23:43:09.000Z
2019-09-17T12:39:19.000Z
docs/conf.py
edoburu/django-any-urlfield
d742d1f007eca00d18e221a7e169fa191099c080
[ "Apache-2.0" ]
9
2015-01-26T23:49:14.000Z
2020-01-16T17:18:08.000Z
# # django-any-urlfield documentation build configuration file, created by # sphinx-quickstart on Fri Apr 13 19:11:03 2012. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configurati...
32.143411
94
0.717111
4a17e4139bd3fe8a01e708a3999b1a52865527cb
1,536
py
Python
custom-recipes/nlp-visualization-wordcloud/recipe.py
dataiku/dss-plugin-nlp-topic-discovery
d7731ced95d1a0fa7e117751bc1e3c30f7f1beb5
[ "Apache-2.0" ]
5
2020-11-19T17:34:32.000Z
2021-06-09T21:09:49.000Z
custom-recipes/nlp-visualization-wordcloud/recipe.py
dataiku/dss-plugin-nlp-topic-discovery
d7731ced95d1a0fa7e117751bc1e3c30f7f1beb5
[ "Apache-2.0" ]
20
2020-07-29T08:40:16.000Z
2022-03-12T00:56:17.000Z
custom-recipes/nlp-visualization-wordcloud/recipe.py
dataiku/dss-plugin-nlp-topic-discovery
d7731ced95d1a0fa7e117751bc1e3c30f7f1beb5
[ "Apache-2.0" ]
1
2021-03-12T10:45:34.000Z
2021-03-12T10:45:34.000Z
# -*- coding: utf-8 -*- import os import logging from time import perf_counter from spacy_tokenizer import MultilingualTokenizer from wordcloud_visualizer import WordcloudVisualizer from plugin_config_loading import load_config_and_data_wordcloud # Load config params, df = load_config_and_data_wordcloud() output_fo...
34.909091
101
0.82487
4a17e46dc46860094f4cc786744d5978fbd25407
4,120
py
Python
Rota_System/Reporting/LinkedBulkReport/Person.py
ergoregion/Rota-Program
44dab4cb11add184619d88aa0fcab61532d128e6
[ "MIT" ]
null
null
null
Rota_System/Reporting/LinkedBulkReport/Person.py
ergoregion/Rota-Program
44dab4cb11add184619d88aa0fcab61532d128e6
[ "MIT" ]
null
null
null
Rota_System/Reporting/LinkedBulkReport/Person.py
ergoregion/Rota-Program
44dab4cb11add184619d88aa0fcab61532d128e6
[ "MIT" ]
null
null
null
__author__ = 'Neil Butcher' from Rota_System.Reporting.HTMLObjects import HTMLObjects from datetime import datetime from Rota_System.StandardTimes import date_string, time_string from Abstract import AbstractMultiAppointmentReporter, event_title, person_code class PopulationReporter(object): def events(self, eve...
40.392157
123
0.674757
4a17e497eff4e748707f2acafcee154c863c9a3b
213
py
Python
Puzzle.py
MattChamberlain/Max_Determinant
a9abbdfe190ab79a70c2361058d98f5e45c659ad
[ "MIT" ]
null
null
null
Puzzle.py
MattChamberlain/Max_Determinant
a9abbdfe190ab79a70c2361058d98f5e45c659ad
[ "MIT" ]
null
null
null
Puzzle.py
MattChamberlain/Max_Determinant
a9abbdfe190ab79a70c2361058d98f5e45c659ad
[ "MIT" ]
null
null
null
for A in range(1, 10): for B in range(1, 10): for C in range(1, 10): concat = (A * 100) + (B * 10) + C if concat/5 == (A*B*C): print(str(A) + str(B) + str(C))
23.666667
47
0.399061
4a17e5473e49786cd374fb1b8f0840571e2083dd
9,443
py
Python
cpv/pipeline.py
zhongmicai/combined_Pvalue
0ed3d65a2dc17fa1007bca90533d92d550baf4e3
[ "MIT" ]
null
null
null
cpv/pipeline.py
zhongmicai/combined_Pvalue
0ed3d65a2dc17fa1007bca90533d92d550baf4e3
[ "MIT" ]
null
null
null
cpv/pipeline.py
zhongmicai/combined_Pvalue
0ed3d65a2dc17fa1007bca90533d92d550baf4e3
[ "MIT" ]
null
null
null
from __future__ import print_function import sys import array import os.path as op import toolshed as ts def main(): import argparse from _common import get_col_num p = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter) p.add_argument...
42.922727
93
0.575559
4a17e5b6a2c647ef3962933eb69bbe8547707de1
2,777
py
Python
edb/common/verutils.py
fantix/edgedb
9fcd0a0eaed771a55f958a85fc71efde76fa7ac7
[ "Apache-2.0" ]
null
null
null
edb/common/verutils.py
fantix/edgedb
9fcd0a0eaed771a55f958a85fc71efde76fa7ac7
[ "Apache-2.0" ]
null
null
null
edb/common/verutils.py
fantix/edgedb
9fcd0a0eaed771a55f958a85fc71efde76fa7ac7
[ "Apache-2.0" ]
null
null
null
# # This source file is part of the EdgeDB open source project. # # Copyright 2020-present MagicStack Inc. and the EdgeDB authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http...
24.794643
74
0.57004
4a17e6d6503e062c2123fda9334d66d1ff9fff5f
7,948
py
Python
robust_fitting/lmeds.py
jswulff/mrflow
1bf782d3a75c292945a8a5ed20c6692242e9ef3a
[ "RSA-MD" ]
124
2017-06-27T20:07:54.000Z
2022-03-15T03:42:55.000Z
robust_fitting/lmeds.py
jswulff/mrflow
1bf782d3a75c292945a8a5ed20c6692242e9ef3a
[ "RSA-MD" ]
8
2017-07-17T00:51:54.000Z
2020-02-21T08:02:27.000Z
robust_fitting/lmeds.py
jswulff/mrflow
1bf782d3a75c292945a8a5ed20c6692242e9ef3a
[ "RSA-MD" ]
38
2017-07-19T21:39:56.000Z
2021-06-24T04:11:53.000Z
#! /usr/bin/env python2 import numpy as np import sys # For exception handling """ General LMedS implementation. """ def niter_LMEDS(p, epsilon, s, Nmax=100000): """ How many samples to compute with LMEDS. Parameters ---------- p : float Probability that at least 1 of the samples is fre...
29.328413
139
0.599144
4a17e6de4e43241f989869ae0ce8fd025aff8ebc
755
py
Python
WebMirror/management/rss_parser_funcs/feed_parse_extractUkel2x.py
fake-name/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
193
2016-08-02T22:04:35.000Z
2022-03-09T20:45:41.000Z
WebMirror/management/rss_parser_funcs/feed_parse_extractUkel2x.py
fake-name/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
533
2016-08-23T20:48:23.000Z
2022-03-28T15:55:13.000Z
WebMirror/management/rss_parser_funcs/feed_parse_extractUkel2x.py
rrosajp/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
19
2015-08-13T18:01:08.000Z
2021-07-12T17:13:09.000Z
def extractUkel2x(item): """ #'Ukel2x """ vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title']) if not (chp or vol or frag) or 'preview' in item['title'].lower(): return None if item['title'].lower().startswith('volume'): return buildReleaseMessageWithType(item, 'Kokugensou wo Item Cheat d...
50.333333
119
0.739073
4a17e807f5a4576642a4e0e0da7dbe37ccb70c25
591
py
Python
Python/strings.py
rithsuon/LecturesHW
523b15071066e6470d2f066a6a6af4858044803f
[ "MIT" ]
3
2021-01-25T18:54:02.000Z
2021-05-12T16:35:01.000Z
Python/strings.py
rithsuon/LecturesHW
523b15071066e6470d2f066a6a6af4858044803f
[ "MIT" ]
null
null
null
Python/strings.py
rithsuon/LecturesHW
523b15071066e6470d2f066a6a6af4858044803f
[ "MIT" ]
34
2018-01-11T17:25:56.000Z
2018-08-20T04:07:22.000Z
# strings can be enclosed in single, double, or triple quotes a = "Hello world" b = 'CECS 424 is awesome' c = """Triple-quoted strings can go more than one line""" # can index strings with [] d = a[0] # d = 'H' # the slicing operator [i:j] can extract substrings from index # i <= k < j e = a[2:5] # e == "llo" f = b[...
21.888889
62
0.592217
4a17e82a1a744742de5970841ed0ce6923a1fd3d
1,684
py
Python
model-optimizer/extensions/front/kaldi/fuse_repeated_reshape.py
mypopydev/dldt
8cd639116b261adbbc8db860c09807c3be2cc2ca
[ "Apache-2.0" ]
3
2019-07-08T09:03:03.000Z
2020-09-09T10:34:17.000Z
model-optimizer/extensions/front/kaldi/fuse_repeated_reshape.py
openvino-pushbot/dldt
e607ee70212797cf9ca51dac5b7ac79f66a1c73f
[ "Apache-2.0" ]
3
2020-11-13T18:59:18.000Z
2022-02-10T02:14:53.000Z
model-optimizer/extensions/front/kaldi/fuse_repeated_reshape.py
openvino-pushbot/dldt
e607ee70212797cf9ca51dac5b7ac79f66a1c73f
[ "Apache-2.0" ]
1
2018-12-14T07:56:02.000Z
2018-12-14T07:56:02.000Z
""" Copyright (c) 2018 Intel Corporation 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 wri...
35.083333
119
0.627078
4a17e8f3543db23ad76d02075162a964157dcce9
10,570
py
Python
tests/test_nbody_ParseElements.py
Smithsonian/cheby_checker
ce1542e4b1b3303ac08ea823be1eaec06322fd48
[ "MIT" ]
1
2020-03-05T15:20:30.000Z
2020-03-05T15:20:30.000Z
tests/test_nbody_ParseElements.py
Smithsonian/cheby_checker
ce1542e4b1b3303ac08ea823be1eaec06322fd48
[ "MIT" ]
null
null
null
tests/test_nbody_ParseElements.py
Smithsonian/cheby_checker
ce1542e4b1b3303ac08ea823be1eaec06322fd48
[ "MIT" ]
2
2020-02-04T15:26:08.000Z
2020-02-04T18:23:13.000Z
# -*- coding: utf-8 -*- # /tests/test_nbody.py """ ---------------------------------------------------------------------------- tests for mpc_nbody Dec 2021 Matthew Payne Prev Work: Mike Alexandersen, Matthew Payne & Matthew Holman This code simplified as of Dec 2021 Removing many tests of non-json input - The...
36.448276
108
0.600757
4a17e96812b61a0b269ae4cdfa052b412ecfb19d
10,326
py
Python
toxicity/linear_predictor.py
zihan993/jads_kaggle
a26af9ce11ec067dccdfbe7393c2ee109974f116
[ "MIT" ]
null
null
null
toxicity/linear_predictor.py
zihan993/jads_kaggle
a26af9ce11ec067dccdfbe7393c2ee109974f116
[ "MIT" ]
null
null
null
toxicity/linear_predictor.py
zihan993/jads_kaggle
a26af9ce11ec067dccdfbe7393c2ee109974f116
[ "MIT" ]
null
null
null
import numpy as np import multiprocessing from sklearn.linear_model import LogisticRegression from sklearn.svm import LinearSVC from sklearn.ensemble import RandomForestClassifier try: from xgboost import XGBClassifier except ImportError: print("XGBoost not imported.") from predictor import Predictor class Lo...
41.46988
120
0.630738
4a17e99cf3c67b0f93d5b18058cd3ddb05e35423
14,427
py
Python
query_clu.py
tahumada/kowalski-searches
824cd0e8cfb5b21441903fc18bdbd4e83b729b91
[ "MIT" ]
null
null
null
query_clu.py
tahumada/kowalski-searches
824cd0e8cfb5b21441903fc18bdbd4e83b729b91
[ "MIT" ]
null
null
null
query_clu.py
tahumada/kowalski-searches
824cd0e8cfb5b21441903fc18bdbd4e83b729b91
[ "MIT" ]
1
2020-11-30T19:02:24.000Z
2020-11-30T19:02:24.000Z
''' Query Kowalski with cone searches centred on CLU galaxies, searching for transients given a set of constraints. ''' def print_query_params(args): '''Print a summary of the query parameters''' print("#-----") print("Cone search parameters:") print(f"Search radius {args.radius} arcmin") print(f...
38.065963
186
0.56117
4a17ea5e9a063812ff8764afb10873166155f787
1,322
py
Python
setup.py
stuart-c/GithubOrganizer
ee6cdb3040f92f02b7588ea13034a5536e704e91
[ "MIT" ]
null
null
null
setup.py
stuart-c/GithubOrganizer
ee6cdb3040f92f02b7588ea13034a5536e704e91
[ "MIT" ]
null
null
null
setup.py
stuart-c/GithubOrganizer
ee6cdb3040f92f02b7588ea13034a5536e704e91
[ "MIT" ]
null
null
null
# Always prefer setuptools over distutils from setuptools import setup, find_packages # To use a consistent encoding from codecs import open version = '0.1.0' try: long_description = open('README.md').read() except: long_description = '' setup( name = 'githuborganizer', version = version, packages=f...
21.322581
92
0.631619
4a17eb6557653c3521bd11b2662407d819a9d724
271
py
Python
secondstring.py
Enfioz/pands-problems
a136b4f3e8a1c8424b529c62bf7d8eda3fc3c9aa
[ "MIT" ]
null
null
null
secondstring.py
Enfioz/pands-problems
a136b4f3e8a1c8424b529c62bf7d8eda3fc3c9aa
[ "MIT" ]
null
null
null
secondstring.py
Enfioz/pands-problems
a136b4f3e8a1c8424b529c62bf7d8eda3fc3c9aa
[ "MIT" ]
null
null
null
# Patrick Corcoran # Weekly Task 3 - strings # Write a program that asks a user to input # a string and outputs every second letter # in reverse order s = "The quick brown fox jumps over the lazy dog." s = (input("Please enter a sentence: ")) print(s[::-1][0:44:2])
19.357143
50
0.690037
4a17eba0944df4a6b9a059f7eae23753f31c55a3
23,137
py
Python
test/solver_tests/hybrid_solver_test.py
YosefLab/SingleCellLineageTracing
d9133fc80c8314e7935fde037dd86111cac47447
[ "MIT" ]
52
2019-05-14T02:06:24.000Z
2022-03-27T05:22:56.000Z
test/solver_tests/hybrid_solver_test.py
sbradford2/Cassiopeia
010072b307f7eadbf10dc4af8b2165e48f1736a7
[ "MIT" ]
88
2019-06-07T15:07:45.000Z
2022-03-22T14:40:03.000Z
test/solver_tests/hybrid_solver_test.py
sbradford2/Cassiopeia
010072b307f7eadbf10dc4af8b2165e48f1736a7
[ "MIT" ]
17
2019-05-17T00:46:16.000Z
2022-03-25T00:39:18.000Z
""" Test HybridSolver in Cassiopeia.solver. """ import os import unittest import itertools import networkx as nx import pandas as pd import pathlib as pl import cassiopeia as cas from cassiopeia.solver import solver_utilities GUROBI_INSTALLED = True try: import gurobipy except ModuleNotFoundError: GUROBI_INS...
35.003026
83
0.540952
4a17ee2f357e39a2464d362216488f90c548647a
2,176
py
Python
tests/base_tmpl.py
gaogaotiantian/codesnap
15317ffcd44c4635fbf0ec35ec94b4368552b86c
[ "Apache-2.0" ]
20
2020-08-06T02:52:18.000Z
2020-08-12T02:21:02.000Z
tests/base_tmpl.py
gaogaotiantian/codesnap
15317ffcd44c4635fbf0ec35ec94b4368552b86c
[ "Apache-2.0" ]
1
2020-08-07T02:41:16.000Z
2020-08-10T11:03:11.000Z
tests/base_tmpl.py
gaogaotiantian/codesnap
15317ffcd44c4635fbf0ec35ec94b4368552b86c
[ "Apache-2.0" ]
2
2020-08-06T23:38:33.000Z
2020-08-09T08:21:42.000Z
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 # For details: https://github.com/gaogaotiantian/viztracer/blob/master/NOTICE.txt import gc import io import logging import os import sys import time from unittest import TestCase logging.basicConfig( level=logging.INFO, format="...
31.085714
109
0.579504
4a17ef24b5c95bd45cf9fd60ccadac7549a96e2a
10,665
py
Python
cli/src/commands/Apply.py
romsok24/epiphany
f058984939561fc8d51288765976118ae12e6c32
[ "Apache-2.0" ]
null
null
null
cli/src/commands/Apply.py
romsok24/epiphany
f058984939561fc8d51288765976118ae12e6c32
[ "Apache-2.0" ]
null
null
null
cli/src/commands/Apply.py
romsok24/epiphany
f058984939561fc8d51288765976118ae12e6c32
[ "Apache-2.0" ]
null
null
null
import os import sys from cli.src.ansible.AnsibleRunner import AnsibleRunner from cli.src.helpers.build_io import (get_build_path, get_inventory_path, get_manifest_path, load_inventory, load_manifest, save_manifest) from cli.src.helpers.cli_he...
46.369565
185
0.687107
4a17ef7270de8d5f7dc9b0225554f68398c4323d
9,686
py
Python
metapool/tests/test_count.py
callaband/metagenomics_pooling_notebook
cda37552d604c7cbd45d3b7a4ae103cae26e95e1
[ "MIT" ]
null
null
null
metapool/tests/test_count.py
callaband/metagenomics_pooling_notebook
cda37552d604c7cbd45d3b7a4ae103cae26e95e1
[ "MIT" ]
null
null
null
metapool/tests/test_count.py
callaband/metagenomics_pooling_notebook
cda37552d604c7cbd45d3b7a4ae103cae26e95e1
[ "MIT" ]
null
null
null
import json import os import tempfile import shutil import pandas as pd from sample_sheet import Sample from unittest import main, TestCase from metapool import KLSampleSheet from metapool.count import (_extract_name_and_lane, _parse_samtools_counts, _parse_fastp_counts, bcl2fastq_counts, ...
42.296943
79
0.528804