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
f718b4fadc70811185014ceea7a2ac977f84aa08
1,472
py
Python
src/server/core/tests/test_config.py
Freshia/masakhane-web
acf5eaef7ab8109d6f10f212765572a1dc893cd5
[ "MIT" ]
20
2021-04-09T09:08:53.000Z
2022-03-16T09:45:36.000Z
src/server/core/tests/test_config.py
Freshia/masakhane-web
acf5eaef7ab8109d6f10f212765572a1dc893cd5
[ "MIT" ]
15
2021-04-19T07:04:56.000Z
2022-03-12T00:57:44.000Z
src/server/core/tests/test_config.py
Freshia/masakhane-web
acf5eaef7ab8109d6f10f212765572a1dc893cd5
[ "MIT" ]
14
2021-04-19T04:39:04.000Z
2021-10-08T22:19:58.000Z
import os import unittest from flask import current_app from flask_testing import TestCase from core import masakhane class TestDevelopmentConfig(TestCase): def create_app(self): masakhane.config.from_object('core.config.DevelopmentConfig') return masakhane def test_app_is_development(self)...
32
77
0.688179
1,298
0.881793
0
0
0
0
0
0
335
0.227582
f719bed52604d78cd372c38b0ba41bc4f013d7b2
311
py
Python
routes/show_bp.py
Silve1ra/fyyur
580562cc592d587c9bed4f080b856664abb9f70d
[ "MIT" ]
1
2021-09-17T11:56:38.000Z
2021-09-17T11:56:38.000Z
routes/show_bp.py
Silve1ra/fyyur
580562cc592d587c9bed4f080b856664abb9f70d
[ "MIT" ]
null
null
null
routes/show_bp.py
Silve1ra/fyyur
580562cc592d587c9bed4f080b856664abb9f70d
[ "MIT" ]
null
null
null
from flask import Blueprint from controllers.show import shows, create_shows, create_show_submission show_bp = Blueprint('show_bp', __name__) show_bp.route('/', methods=['GET'])(shows) show_bp.route('/create', methods=['GET'])(create_shows) show_bp.route('/create', methods=['POST'])(create_show_submission)
31.1
72
0.762058
0
0
0
0
0
0
0
0
46
0.14791
f719f32c0de53ae35c0223c63678dbad415c2f11
22
py
Python
__init__.py
andy-96/GFPGAN
0ed1214760170cc27fdfd60da1f64a0699a28cf4
[ "BSD-3-Clause" ]
null
null
null
__init__.py
andy-96/GFPGAN
0ed1214760170cc27fdfd60da1f64a0699a28cf4
[ "BSD-3-Clause" ]
null
null
null
__init__.py
andy-96/GFPGAN
0ed1214760170cc27fdfd60da1f64a0699a28cf4
[ "BSD-3-Clause" ]
null
null
null
from .gfpgan import *
11
21
0.727273
0
0
0
0
0
0
0
0
0
0
f71a808666b13ce290442e22bb59d1788d36b370
1,950
py
Python
tools/find_run_binary.py
pospx/external_skia
7a135275c9fc2a4b3cbdcf9a96e7102724752234
[ "BSD-3-Clause" ]
6,304
2015-01-05T23:45:12.000Z
2022-03-31T09:48:13.000Z
third_party/skia/tools/find_run_binary.py
w4454962/miniblink49
b294b6eacb3333659bf7b94d670d96edeeba14c0
[ "Apache-2.0" ]
459
2016-09-29T00:51:38.000Z
2022-03-07T14:37:46.000Z
third_party/skia/tools/find_run_binary.py
w4454962/miniblink49
b294b6eacb3333659bf7b94d670d96edeeba14c0
[ "Apache-2.0" ]
1,231
2015-01-05T03:17:39.000Z
2022-03-31T22:54:58.000Z
#!/usr/bin/python # Copyright (c) 2014 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. """Module that finds and runs a binary by looking in the likely locations.""" import os import subprocess import sys def run_comman...
31.451613
77
0.615385
0
0
0
0
0
0
0
0
976
0.500513
f71b20c6a58525d0ad6e5a5b0ad92dbbdf9f5849
1,599
py
Python
user/tests.py
Vr3n/django_react_cart_system
f6d2572b640f711ff9c7020641051e3f92c3dd59
[ "MIT" ]
null
null
null
user/tests.py
Vr3n/django_react_cart_system
f6d2572b640f711ff9c7020641051e3f92c3dd59
[ "MIT" ]
3
2021-06-18T15:13:46.000Z
2021-06-18T18:24:43.000Z
user/tests.py
Vr3n/django_react_cart_system
f6d2572b640f711ff9c7020641051e3f92c3dd59
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.test import TestCase # Create your tests here. class UserManagersTests(TestCase): def test_create_user(self): User = get_user_model() user = User.objects.create_user( email="[email protected]", password="testing@123") s...
34.76087
70
0.642276
1,489
0.931207
0
0
0
0
0
0
149
0.093183
f71b9e37908dd5da30752301903bfc85504aa496
728
py
Python
Examples/AcceptAllRevisions.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
14
2018-07-15T17:01:52.000Z
2018-11-29T06:15:33.000Z
Examples/AcceptAllRevisions.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
1
2018-09-28T12:59:34.000Z
2019-10-08T08:42:59.000Z
Examples/AcceptAllRevisions.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
2
2020-12-21T07:59:17.000Z
2022-02-16T21:41:25.000Z
import os import asposewordscloud import asposewordscloud.models.requests from asposewordscloud.rest import ApiException from shutil import copyfile words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################') file_name = 'test_doc.docx' # Upload original document to cloud stora...
38.315789
108
0.787088
0
0
0
0
0
0
0
0
165
0.226648
f71c77d1c0f627d4c0d8120689ae89c7e1a43d86
2,577
py
Python
agogosml_cli/cli/templates/{{cookiecutter.PROJECT_NAME_SLUG}}/e2e/testgen/main.py
cicorias/agogosml
60e0b52c2fc721bdd965aadaf8c1afd1ddb9b7d1
[ "MIT" ]
13
2018-12-07T21:02:20.000Z
2019-02-22T14:36:31.000Z
agogosml_cli/cli/templates/{{cookiecutter.PROJECT_NAME_SLUG}}/e2e/testgen/main.py
cicorias/agogosml
60e0b52c2fc721bdd965aadaf8c1afd1ddb9b7d1
[ "MIT" ]
43
2018-11-30T11:31:43.000Z
2019-04-03T16:09:06.000Z
agogosml_cli/cli/templates/{{cookiecutter.PROJECT_NAME_SLUG}}/e2e/testgen/main.py
cicorias/agogosml
60e0b52c2fc721bdd965aadaf8c1afd1ddb9b7d1
[ "MIT" ]
13
2018-11-29T00:31:29.000Z
2019-02-22T18:50:28.000Z
import json import os import sys import time from agogosml.common.abstract_streaming_client import find_streaming_clients from agogosml.tools.sender import send from agogosml.tools.receiver import receive eh_base_config = { "EVENT_HUB_NAMESPACE": os.getenv("EVENT_HUB_NAMESPACE"), "EVENT_HUB_NAME": os.getenv("...
28.955056
109
0.73962
0
0
0
0
0
0
0
0
862
0.334497
f71c9a76519602baf175d90363655dc76c65ea28
512
py
Python
MobileRevelator/python/postbank_finanzassistent_decrypt.py
ohunecker/MR
b0c93436c7964d87a0b8154f8b7662b1731124b9
[ "MIT" ]
98
2019-02-03T22:50:24.000Z
2022-03-17T12:50:56.000Z
MobileRevelator/python/postbank_finanzassistent_decrypt.py
cewatkins/MR
5ba553fd0eb4c1d80842074a553119486f005822
[ "MIT" ]
10
2019-03-14T20:12:10.000Z
2020-05-23T10:37:54.000Z
MobileRevelator/python/postbank_finanzassistent_decrypt.py
cewatkins/MR
5ba553fd0eb4c1d80842074a553119486f005822
[ "MIT" ]
30
2019-02-03T22:50:27.000Z
2022-03-30T12:37:30.000Z
#Filename="finanzassistent" #Type=Prerun import os def main(): ctx.gui_setMainLabel("Postbank Finanzassistent: Extracting key"); error="" dbkey="73839EC3A528910B235859947CC8424543D7B686" ctx.gui_setMainLabel("Postbank: Key extracted: " + dbkey) if not (ctx.fs_sqlcipher_decrypt(filename, ...
34.133333
78
0.6875
0
0
0
0
0
0
0
0
260
0.507813
f71d87a97f28b6912c291299e2155b00941ed654
1,615
py
Python
imcsdk/__init__.py
kenrusse/imcsdk
c35ec5d41072c3ea82c64b1b66e0650d1d873657
[ "Apache-2.0" ]
null
null
null
imcsdk/__init__.py
kenrusse/imcsdk
c35ec5d41072c3ea82c64b1b66e0650d1d873657
[ "Apache-2.0" ]
null
null
null
imcsdk/__init__.py
kenrusse/imcsdk
c35ec5d41072c3ea82c64b1b66e0650d1d873657
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Cisco Systems, 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 writin...
26.47541
92
0.721981
0
0
0
0
0
0
0
0
987
0.611146
f71d9c7d4d1edc3d1f3f51bfea2e872d5c549f44
1,047
py
Python
64-minimum-path-sum/64-minimum-path-sum.py
jurayev/data-structures-algorithms-solutions
7103294bafb60117fc77efe4913edcffbeb1ac7a
[ "MIT" ]
null
null
null
64-minimum-path-sum/64-minimum-path-sum.py
jurayev/data-structures-algorithms-solutions
7103294bafb60117fc77efe4913edcffbeb1ac7a
[ "MIT" ]
null
null
null
64-minimum-path-sum/64-minimum-path-sum.py
jurayev/data-structures-algorithms-solutions
7103294bafb60117fc77efe4913edcffbeb1ac7a
[ "MIT" ]
null
null
null
class Solution: def minPathSum(self, grid: List[List[int]]) -> int: """ [1,3,1] [1,5,1] [4,2,1] time O (nm) space O(nm) state -> sums[r][c] = min path sum till r, c position initial state -> sums[0][0…cols] = inf -> sums...
31.727273
84
0.455587
1,054
0.999052
0
0
0
0
0
0
416
0.394313
f71e495c79f4bb1a1505cad9bdde64d7e37c7ba1
1,293
py
Python
proxy/core/tls/certificate.py
fisabiliyusri/proxy
29934503251b704813ef3e7ed8c2a5ae69448c8a
[ "BSD-3-Clause" ]
null
null
null
proxy/core/tls/certificate.py
fisabiliyusri/proxy
29934503251b704813ef3e7ed8c2a5ae69448c8a
[ "BSD-3-Clause" ]
8
2022-01-23T10:51:59.000Z
2022-03-29T22:11:57.000Z
proxy/core/tls/certificate.py
fisabiliyusri/proxy
29934503251b704813ef3e7ed8c2a5ae69448c8a
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ proxy.py ~~~~~~~~ ⚡⚡⚡ Fast, Lightweight, Pluggable, TLS interception capable proxy server focused on Network monitoring, controls & Application development, testing, debugging. :copyright: (c) 2013-present by Abhinav Singh and contributors. :license: BSD, see LICENSE...
23.509091
86
0.622583
906
0.69746
0
0
0
0
0
0
425
0.327175
f71f18898c8292f215084d67a0492fc48f5a9d6c
8,974
py
Python
main.py
PabloEmidio/Know-Weather-GTK
797f25cbd0c8e1a2f124a5328d9decf2f3829252
[ "MIT" ]
4
2021-05-06T02:07:02.000Z
2021-05-06T17:48:08.000Z
main.py
PabloEmidio/Know-Weather-GTK
797f25cbd0c8e1a2f124a5328d9decf2f3829252
[ "MIT" ]
null
null
null
main.py
PabloEmidio/Know-Weather-GTK
797f25cbd0c8e1a2f124a5328d9decf2f3829252
[ "MIT" ]
null
null
null
import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk from datetime import datetime from api_request import Weather builder = Gtk.Builder() builder.add_from_file('./glade/main.glade') class Handler: def __init__(self, *args, **kwargs): super(Handler, self).__init__(*args, **kwargs...
53.736527
131
0.622131
8,657
0.964568
0
0
0
0
0
0
1,974
0.219944
f71f497fb7582513c2d45b7633de0c7c9d7f7303
3,186
py
Python
talk_lib/tests/testtalk.py
allankellynet/mimas
10025d43bba9e84f502a266760786842e7158a05
[ "MIT" ]
null
null
null
talk_lib/tests/testtalk.py
allankellynet/mimas
10025d43bba9e84f502a266760786842e7158a05
[ "MIT" ]
1
2020-02-05T13:00:29.000Z
2020-02-05T13:00:29.000Z
talk_lib/tests/testtalk.py
allankellynet/mimas
10025d43bba9e84f502a266760786842e7158a05
[ "MIT" ]
null
null
null
#----------------------------------------------------- # Mimas: conference submission and review system # (c) Allan Kelly 2016-2020 http://www.allankelly.net # Licensed under MIT License, see LICENSE file # ----------------------------------------------------- import unittest from google.appengine.ext import testbed ...
29.775701
73
0.605775
2,804
0.8801
0
0
0
0
0
0
476
0.149404
f71f6972720d1f87a308457a99c2da6ef6fe19d9
63,620
py
Python
LeetCode/contest-2018-11-26/fair_candy_swap.py
Max-PJB/python-learning2
e8b05bef1574ee9abf8c90497e94ef20a7f4e3bd
[ "MIT" ]
null
null
null
LeetCode/contest-2018-11-26/fair_candy_swap.py
Max-PJB/python-learning2
e8b05bef1574ee9abf8c90497e94ef20a7f4e3bd
[ "MIT" ]
null
null
null
LeetCode/contest-2018-11-26/fair_candy_swap.py
Max-PJB/python-learning2
e8b05bef1574ee9abf8c90497e94ef20a7f4e3bd
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ ------------------------------------------------- @ Author : pengj @ date : 2018/11/26 19:28 @ IDE : PyCharm @ GitHub : https://github.com/JackyPJB @ Contact : [email protected] ---------------...
104.638158
120
0.623546
326
0.005077
0
0
0
0
0
0
1,786
0.027817
f7216012bdabcc6a4f76ac1521c5236c58f42c7a
393
py
Python
bookitoBackend/User/urls.py
mazdakdev/Bookito
38e18fee22aafea95429da01e9769acf2748f676
[ "MIT" ]
10
2021-12-09T04:39:03.000Z
2022-02-07T05:42:29.000Z
bookitoBackend/User/urls.py
mazdakdev/Bookito
38e18fee22aafea95429da01e9769acf2748f676
[ "MIT" ]
2
2022-02-07T18:12:54.000Z
2022-02-10T10:27:37.000Z
bookitoBackend/User/urls.py
mazdakdev/Bookito
38e18fee22aafea95429da01e9769acf2748f676
[ "MIT" ]
null
null
null
from django.urls import path from .api import * from knox import views as knox_views urlpatterns = [ #domain.dn/api/v1/register/ | POST path('register/' , SignUpAPI.as_view() , name='register'), #domain.dn/api/v1/register/ | POST path('login/' , SignInAPI.as_view() , name='login'), #domain.dn/ap...
21.833333
62
0.64631
0
0
0
0
0
0
0
0
145
0.368957
f725220f95e7ed6a18489ee1563dd48ce5f224d6
2,985
py
Python
solutions/day18.py
nitekat1124/advent-of-code-2021
74501b84f0a08b33f48b4e5a2d66b8293c854150
[ "WTFPL" ]
3
2021-12-22T17:44:39.000Z
2022-01-14T17:18:15.000Z
solutions/day18.py
nitekat1124/advent-of-code-2021
74501b84f0a08b33f48b4e5a2d66b8293c854150
[ "WTFPL" ]
null
null
null
solutions/day18.py
nitekat1124/advent-of-code-2021
74501b84f0a08b33f48b4e5a2d66b8293c854150
[ "WTFPL" ]
null
null
null
import re from itertools import combinations from utils.solution_base import SolutionBase class Solution(SolutionBase): def solve(self, part_num: int): self.test_runner(part_num) func = getattr(self, f"part{part_num}") result = func(self.data) return result def test_runner(s...
34.310345
114
0.524958
2,891
0.968509
0
0
0
0
0
0
222
0.074372
f725e0913b22178375a220d288839fa6706545f3
520
py
Python
backend/utils/management/commands/generate_dummy_skills.py
NumanIbnMazid/numanibnmazid.com
905e3afab285316d88bafa30dc080dfbb0611731
[ "MIT" ]
1
2022-01-28T18:20:19.000Z
2022-01-28T18:20:19.000Z
backend/utils/management/commands/generate_dummy_skills.py
NumanIbnMazid/numanibnmazid.com
905e3afab285316d88bafa30dc080dfbb0611731
[ "MIT" ]
null
null
null
backend/utils/management/commands/generate_dummy_skills.py
NumanIbnMazid/numanibnmazid.com
905e3afab285316d88bafa30dc080dfbb0611731
[ "MIT" ]
null
null
null
from portfolios.factories.skill_factory import create_skills_with_factory from django.db import transaction from django.core.management.base import BaseCommand class Command(BaseCommand): help = "Generates dummy data" def _generate_dummy_data(self): # Create dummy data create_skills_with_fact...
26
73
0.698077
357
0.686538
0
0
118
0.226923
0
0
56
0.107692
f726670921d44f21aa09f17d795a742ee0c1fa0c
8,397
py
Python
test/bitfinex_test.py
laisee/bitfinex
6a3e7cd412f186eca0039602d32c65938a392747
[ "MIT" ]
null
null
null
test/bitfinex_test.py
laisee/bitfinex
6a3e7cd412f186eca0039602d32c65938a392747
[ "MIT" ]
null
null
null
test/bitfinex_test.py
laisee/bitfinex
6a3e7cd412f186eca0039602d32c65938a392747
[ "MIT" ]
null
null
null
import unittest import mock import requests import httpretty import settings from bitfinex.client import Client, TradeClient API_KEY = settings.API_KEY API_SECRET = settings.API_SECRET class BitfinexTest(unittest.TestCase): def setUp(self): self.client = Client() def test_should_have_server(self):...
37.995475
400
0.609265
8,205
0.977135
0
0
5,686
0.677147
0
0
2,396
0.28534
f728ea2eb644fbcc81d1cbb2f7e623c7f87f0380
834
py
Python
src/bokeh_app/graph_view.py
avbatchelor/insight-articles-project
852b338b786cb5b9c281fcec2e378aed8d3dc617
[ "MIT" ]
null
null
null
src/bokeh_app/graph_view.py
avbatchelor/insight-articles-project
852b338b786cb5b9c281fcec2e378aed8d3dc617
[ "MIT" ]
null
null
null
src/bokeh_app/graph_view.py
avbatchelor/insight-articles-project
852b338b786cb5b9c281fcec2e378aed8d3dc617
[ "MIT" ]
null
null
null
import networkx as nx import pickle from bokeh.io import show, output_file from bokeh.plotting import figure from bokeh.models.graphs import from_networkx processed_data_folder = 'C:\\Users\\Alex\\Documents\\GitHub\\insight-articles-project\\data\\processed\\' filename = processed_data_folder + 'graph_and_labels' wi...
29.785714
105
0.758993
0
0
0
0
0
0
0
0
145
0.173861
f72b30581d8ef30df8d3b88fde755c65a6390087
15,737
py
Python
dssm/data_input.py
nlpming/tensorflow-DSMM
dc982cc49bf03f474da2895e4dd4fb37061c0271
[ "MIT" ]
null
null
null
dssm/data_input.py
nlpming/tensorflow-DSMM
dc982cc49bf03f474da2895e4dd4fb37061c0271
[ "MIT" ]
null
null
null
dssm/data_input.py
nlpming/tensorflow-DSMM
dc982cc49bf03f474da2895e4dd4fb37061c0271
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding=utf-8 from inspect import getblock import json import os from os import read from numpy.core.fromnumeric import mean import numpy as np import paddlehub as hub import six import math import random import sys from util import read_file from config import Config # 配置文件 conf = Config() c...
37.20331
129
0.599797
4,761
0.299114
612
0.038449
413
0.025947
0
0
2,457
0.154363
f72d2d7694c02f9baefa28ab714fa7d648759fe9
8,778
py
Python
groupbunk.py
shine-jayakumar/groupbunk-fb
ddf3d66cd902343e419dd2cf0c86f42850315f08
[ "MIT" ]
1
2022-02-11T05:31:48.000Z
2022-02-11T05:31:48.000Z
groupbunk.py
shine-jayakumar/groupbunk-fb
ddf3d66cd902343e419dd2cf0c86f42850315f08
[ "MIT" ]
null
null
null
groupbunk.py
shine-jayakumar/groupbunk-fb
ddf3d66cd902343e419dd2cf0c86f42850315f08
[ "MIT" ]
null
null
null
""" GroupBunk v.1.2 Leave your Facebook groups quietly Author: Shine Jayakumar Github: https://github.com/shine-jayakumar LICENSE: MIT """ from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.chrome.options import Options from selenium.common.exceptions imp...
35.97541
127
0.670084
0
0
0
0
0
0
0
0
3,822
0.435407
f72d8677c20fa3e3a54169d4eb48cb7ca7458055
11,575
py
Python
OneSpanAnalysis_Mdl.py
Ivanfdezr/CentralSoftware
8681fedd4814dc60deb527a370411350b40c994c
[ "MIT" ]
null
null
null
OneSpanAnalysis_Mdl.py
Ivanfdezr/CentralSoftware
8681fedd4814dc60deb527a370411350b40c994c
[ "MIT" ]
44
2021-02-10T23:58:28.000Z
2021-12-14T02:38:21.000Z
OneSpanAnalysis_Mdl.py
Ivanfdezr/CentralSoftware
8681fedd4814dc60deb527a370411350b40c994c
[ "MIT" ]
null
null
null
import numpy as np import numpy.linalg as la from MdlUtilities import Field, FieldList import MdlUtilities as mdl def get_osaCasing_fields(): OD = Field(2030) ID = Field(2031) Weight = Field(2032) Density = Field(2039) E = Field(2040) osaCasing_fields = FieldList() osaCasing_...
35.506135
149
0.723629
0
0
0
0
0
0
0
0
1,749
0.150542
f72d949d658d47131c4a502292aadd093d90b245
212
py
Python
test-examples/million_points.py
tlambert03/image-demos
a2974bcc7f040fd4d14e659c4cbfeabcf726c707
[ "BSD-3-Clause" ]
null
null
null
test-examples/million_points.py
tlambert03/image-demos
a2974bcc7f040fd4d14e659c4cbfeabcf726c707
[ "BSD-3-Clause" ]
null
null
null
test-examples/million_points.py
tlambert03/image-demos
a2974bcc7f040fd4d14e659c4cbfeabcf726c707
[ "BSD-3-Clause" ]
null
null
null
"""Test converting an image to a pyramid. """ import numpy as np import napari points = np.random.randint(100, size=(50_000, 2)) with napari.gui_qt(): viewer = napari.view_points(points, face_color='red')
19.272727
57
0.712264
0
0
0
0
0
0
0
0
50
0.235849
f72ddd7241194452b55a3968e1f8f4807cdc48eb
1,166
py
Python
pact/test/test_constants.py
dwang7/pact-python
da03551e812508652e062fc4ba6071f1119e5bf2
[ "MIT" ]
null
null
null
pact/test/test_constants.py
dwang7/pact-python
da03551e812508652e062fc4ba6071f1119e5bf2
[ "MIT" ]
null
null
null
pact/test/test_constants.py
dwang7/pact-python
da03551e812508652e062fc4ba6071f1119e5bf2
[ "MIT" ]
null
null
null
from unittest import TestCase from mock import patch from .. import constants class mock_service_exeTestCase(TestCase): def setUp(self): super(mock_service_exeTestCase, self).setUp() self.addCleanup(patch.stopall) self.mock_os = patch.object(constants, 'os', autospec=True).start() d...
30.684211
79
0.679245
1,080
0.926244
0
0
0
0
0
0
124
0.106346
f72eb585890bafe8941f0c78a9d950477be13230
2,555
py
Python
backtrader/backtrader/indicators/__init__.py
harshabakku/live-back-testing-trader
1fd69c7598dc15bea740f160eed886f396bcba2c
[ "MIT" ]
1
2021-07-14T22:04:08.000Z
2021-07-14T22:04:08.000Z
backtrader/backtrader/indicators/__init__.py
ajmal017/LiveBackTestingTrader
8b4f5804c0aa6046128f6706582f9cde78a0519a
[ "MIT" ]
null
null
null
backtrader/backtrader/indicators/__init__.py
ajmal017/LiveBackTestingTrader
8b4f5804c0aa6046128f6706582f9cde78a0519a
[ "MIT" ]
3
2021-03-07T16:29:40.000Z
2022-03-17T21:42:38.000Z
#!/usr/bin/env python # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # # Copyright (C) 2015, 2016, 2017 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public Li...
28.076923
79
0.699413
0
0
0
0
0
0
0
0
1,250
0.489237
f72f3f991d29cfcde8c404665347a2b2067bd01a
3,145
py
Python
tests/test_game_map.py
brittleshinpass/mossbread
6a225e5d11fdf1957d1bfe74c5a76d105561e12e
[ "MIT" ]
1
2020-05-30T19:45:58.000Z
2020-05-30T19:45:58.000Z
tests/test_game_map.py
brittleshinpass/mossbread
6a225e5d11fdf1957d1bfe74c5a76d105561e12e
[ "MIT" ]
null
null
null
tests/test_game_map.py
brittleshinpass/mossbread
6a225e5d11fdf1957d1bfe74c5a76d105561e12e
[ "MIT" ]
null
null
null
import pytest from array import array from game_map import GameMap from tests.conftest import get_relative_path sample_map_data = tuple( reversed( ( array("I", (0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0)), array("I", (0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0...
46.25
88
0.475994
0
0
0
0
0
0
0
0
125
0.039746
f7300289bf48754135726dad8a8c684a9ab7d495
14,855
py
Python
queryable_properties/managers.py
W1ldPo1nter/django-queryable-properties
9bb4ecb4fbdd7a9e0f610f937c8101a643027fb1
[ "BSD-3-Clause" ]
36
2019-10-22T11:44:37.000Z
2022-03-15T21:27:03.000Z
queryable_properties/managers.py
W1ldPo1nter/django-queryable-properties
9bb4ecb4fbdd7a9e0f610f937c8101a643027fb1
[ "BSD-3-Clause" ]
6
2020-10-03T15:13:26.000Z
2021-09-25T14:05:50.000Z
queryable_properties/managers.py
W1ldPo1nter/django-queryable-properties
9bb4ecb4fbdd7a9e0f610f937c8101a643027fb1
[ "BSD-3-Clause" ]
3
2021-04-26T08:30:46.000Z
2021-08-18T09:04:49.000Z
# encoding: utf-8 from __future__ import unicode_literals import six from django.db.models import Manager from django.db.models.query import QuerySet from .compat import (ANNOTATION_SELECT_CACHE_NAME, ANNOTATION_TO_AGGREGATE_ATTRIBUTES_MAP, chain_query, chain_queryset, ModelIterable, ValuesQuery...
51.401384
120
0.671289
14,114
0.950118
1,213
0.081656
823
0.055402
0
0
7,582
0.510401
f7309823f58463b82e823f3fd4ecc77467f835fd
11,759
py
Python
pml/engineer_tests.py
gatapia/py_ml_utils
844d8b62a7c5cc0a80f4f62c0bfda092aac57ade
[ "MIT" ]
183
2015-01-11T13:01:01.000Z
2022-02-08T04:45:33.000Z
pml/engineer_tests.py
gatapia/py_ml_utils
844d8b62a7c5cc0a80f4f62c0bfda092aac57ade
[ "MIT" ]
13
2015-05-12T17:39:42.000Z
2018-07-29T18:01:38.000Z
pml/engineer_tests.py
gatapia/py_ml_utils
844d8b62a7c5cc0a80f4f62c0bfda092aac57ade
[ "MIT" ]
166
2015-01-28T18:05:55.000Z
2022-02-08T04:45:34.000Z
from __future__ import print_function, absolute_import import unittest, math import pandas as pd import numpy as np from . import * class T(base_pandas_extensions_tester.BasePandasExtensionsTester): def test_concat(self): df = pd.DataFrame({'c_1':['a', 'b', 'c'], 'c_2': ['d', 'e', 'f']}) df.en...
46.478261
133
0.541628
11,616
0.987839
0
0
0
0
0
0
2,439
0.207416
f730db018b5a100d3b9690cd2c3518425836dcfb
2,353
py
Python
setup.py
wdv4758h/rsglob
342f950c240b5d84c629ecf4fec348401975d2ba
[ "BSD-2-Clause" ]
null
null
null
setup.py
wdv4758h/rsglob
342f950c240b5d84c629ecf4fec348401975d2ba
[ "BSD-2-Clause" ]
null
null
null
setup.py
wdv4758h/rsglob
342f950c240b5d84c629ecf4fec348401975d2ba
[ "BSD-2-Clause" ]
null
null
null
import os import sys from setuptools import find_packages, setup, Extension try: # for pip >= 10 from pip._internal.req import parse_requirements except ImportError: from pip.req import parse_requirements try: from setuptools_rust import RustExtension except ImportError: import subprocess errno...
30.960526
83
0.677008
0
0
0
0
0
0
0
0
897
0.381215
f73176b9df2d9d3e6551836091e9a8f8bdc64a68
9,041
py
Python
src/pyrobot/habitat/base.py
cihuang123/pyrobot
fe620097e31d11453b5ea7ac15e40f5f5721b29a
[ "MIT" ]
2,150
2019-06-12T20:55:41.000Z
2022-03-21T07:14:51.000Z
src/pyrobot/habitat/base.py
cihuang123/pyrobot
fe620097e31d11453b5ea7ac15e40f5f5721b29a
[ "MIT" ]
124
2019-06-22T17:12:27.000Z
2022-02-26T11:43:13.000Z
src/pyrobot/habitat/base.py
cihuang123/pyrobot
fe620097e31d11453b5ea7ac15e40f5f5721b29a
[ "MIT" ]
329
2019-06-13T03:03:54.000Z
2022-03-30T07:04:55.000Z
import numpy as np import math import pyrobot.utils.util as prutil import rospy import habitat_sim.agent as habAgent import habitat_sim.utils as habUtils from habitat_sim.agent.controls import ActuationSpec import habitat_sim.errors import quaternion from tf.transformations import euler_from_quaternion, euler_from_mat...
36.603239
93
0.623825
8,714
0.963831
0
0
0
0
0
0
3,772
0.41721
f731ffc418c409ea5c8ec121e5505721921146e2
164
py
Python
natwork/chats/admin.py
Potisin/Natwork
a42b89f18fdd8f8ac69e56cb7184696d6883a9f7
[ "BSD-3-Clause" ]
null
null
null
natwork/chats/admin.py
Potisin/Natwork
a42b89f18fdd8f8ac69e56cb7184696d6883a9f7
[ "BSD-3-Clause" ]
null
null
null
natwork/chats/admin.py
Potisin/Natwork
a42b89f18fdd8f8ac69e56cb7184696d6883a9f7
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin from .models import Chat class ChatAdmin(admin.ModelAdmin): list_display = ("pk",) admin.site.register(Chat, ChatAdmin)
12.615385
36
0.737805
61
0.371951
0
0
0
0
0
0
4
0.02439
f732fdf1128b31b7b49d386c93aa86199f8cc84f
109
py
Python
examples/etcc.py
t-pimpisa/pythainlp17
cc6bc4991dfffd68953dcdb26fd99c22d60a4c1f
[ "Apache-2.0" ]
null
null
null
examples/etcc.py
t-pimpisa/pythainlp17
cc6bc4991dfffd68953dcdb26fd99c22d60a4c1f
[ "Apache-2.0" ]
null
null
null
examples/etcc.py
t-pimpisa/pythainlp17
cc6bc4991dfffd68953dcdb26fd99c22d60a4c1f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from pythainlp.tokenize import etcc print(etcc.etcc("คืนความสุข")) # /คืน/ความสุข
18.166667
46
0.642202
0
0
0
0
0
0
0
0
89
0.597315
f733fdfd6251a8d71a648d7c85c3dac02509dfc4
75
py
Python
cumulogenesis.py
stelligent/cumulogenesis
f5a3587aebd2592642c98cb4ad93d52a927dceeb
[ "MIT" ]
1
2021-03-22T21:50:10.000Z
2021-03-22T21:50:10.000Z
cumulogenesis.py
stelligent/cumulogenesis
f5a3587aebd2592642c98cb4ad93d52a927dceeb
[ "MIT" ]
1
2021-03-25T22:23:04.000Z
2021-03-25T22:23:04.000Z
cumulogenesis.py
stelligent/cumulogenesis
f5a3587aebd2592642c98cb4ad93d52a927dceeb
[ "MIT" ]
1
2019-04-03T19:09:34.000Z
2019-04-03T19:09:34.000Z
#!/usr/bin/env python from cumulogenesis.interfaces import cli cli.run()
12.5
40
0.76
0
0
0
0
0
0
0
0
21
0.28
f7356fdd90f419efa0300e27fdfd55d90e10cc07
2,897
py
Python
nanpy/bmp180.py
AFTC-1/Arduino-rpi
c46079f937d7e07cc0a930cc7ae278036f50a47d
[ "MIT" ]
178
2015-01-03T11:56:49.000Z
2021-12-23T14:47:55.000Z
nanpy/bmp180.py
AFTC-1/Arduino-rpi
c46079f937d7e07cc0a930cc7ae278036f50a47d
[ "MIT" ]
88
2015-01-23T09:06:43.000Z
2021-12-26T19:58:51.000Z
nanpy/bmp180.py
AFTC-1/Arduino-rpi
c46079f937d7e07cc0a930cc7ae278036f50a47d
[ "MIT" ]
77
2015-02-18T17:26:11.000Z
2021-09-28T02:47:25.000Z
from __future__ import division import logging from nanpy.i2c import I2C_Master from nanpy.memo import memoized import time log = logging.getLogger(__name__) def to_s16(n): return (n + 2 ** 15) % 2 ** 16 - 2 ** 15 class Bmp180(object): """Control of BMP180 Digital pressure sensor (I2C) calculation i...
24.550847
67
0.491543
2,671
0.921988
0
0
1,376
0.474974
0
0
216
0.07456
f735f8fc14c7fe9404c2a5d90d59491063b15f84
1,539
py
Python
pygna/cli.py
Gee-3/pygna
61f2128e918e423fef73d810e0c3af5761933096
[ "MIT" ]
32
2019-07-11T22:58:14.000Z
2022-03-04T19:34:55.000Z
pygna/cli.py
Gee-3/pygna
61f2128e918e423fef73d810e0c3af5761933096
[ "MIT" ]
3
2021-05-24T14:03:13.000Z
2022-01-07T03:47:32.000Z
pygna/cli.py
Gee-3/pygna
61f2128e918e423fef73d810e0c3af5761933096
[ "MIT" ]
5
2019-07-24T09:38:07.000Z
2021-12-30T09:20:20.000Z
import logging import argh import pygna.command as cmd import pygna.painter as paint import pygna.utils as utils import pygna.block_model as bm import pygna.degree_model as dm """ autodoc """ logging.basicConfig(level=logging.INFO) def main(): argh.dispatch_commands([ # network summary and graph file ...
23.676923
43
0.654321
0
0
0
0
0
0
0
0
180
0.116959
f7367b85ef33529c5c360e68d214cb8e6a80a38f
4,752
py
Python
dist/Platform.app/Contents/Resources/lib/python3.7/wx/lib/colourchooser/canvas.py
njalloul90/Genomics_Oncology_Platform
9bf6d0edca5df783f4e371fa1bc46b7b1576fe70
[ "MIT" ]
6
2021-07-26T14:21:25.000Z
2021-07-26T14:32:01.000Z
dist/Platform.app/Contents/Resources/lib/python3.7/wx/lib/colourchooser/canvas.py
njalloul90/Genomics_Oncology_Platform
9bf6d0edca5df783f4e371fa1bc46b7b1576fe70
[ "MIT" ]
9
2021-03-18T23:10:27.000Z
2022-03-11T23:43:55.000Z
dist/Platform.app/Contents/Resources/lib/python3.7/wx/lib/colourchooser/canvas.py
njalloul90/Genomics_Oncology_Platform
9bf6d0edca5df783f4e371fa1bc46b7b1576fe70
[ "MIT" ]
2
2019-03-11T05:06:49.000Z
2019-03-22T21:48:49.000Z
""" PyColourChooser Copyright (C) 2002 Michael Gilfix <[email protected]> This file is part of PyColourChooser. This version of PyColourChooser is open source; you can redistribute it and/or modify it under the licensed terms. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRA...
32.547945
71
0.643729
4,063
0.855008
0
0
0
0
0
0
2,575
0.541877
f738260086ccd3653bc2367e7b8083819a301d9b
1,807
py
Python
preprocessing/metadata.py
skincare-deep-learning/Skincare-backend
80ed6b7a735291848be9248035231fbd55c93990
[ "Apache-2.0" ]
1
2019-11-27T20:56:27.000Z
2019-11-27T20:56:27.000Z
preprocessing/metadata.py
skincare-deep-learning/Skincare-backend
80ed6b7a735291848be9248035231fbd55c93990
[ "Apache-2.0" ]
10
2021-04-02T19:47:15.000Z
2022-01-13T01:52:53.000Z
preprocessing/metadata.py
skincare-deep-learning/Skincare-backend
80ed6b7a735291848be9248035231fbd55c93990
[ "Apache-2.0" ]
null
null
null
import json import csv import pandas as pd from isic_api import ISICApi from pandas.io.json import json_normalize # Initialize the API; no login is necessary for public data api = ISICApi(username="SkinCare", password="unbdeeplearning") outputFileName = 'imagedata' imageList = api.getJson('image?limit=25000&offset=0&...
30.627119
110
0.672939
0
0
0
0
0
0
0
0
934
0.516879
f7387b7a0fda396aca3fe13d2312bd4427223bec
1,317
py
Python
nasbench/scripts/generate-all-graphs.py
bkj/nasbench
a238cf26d843aaffbe037569528ef96d3e37eb04
[ "Apache-2.0" ]
null
null
null
nasbench/scripts/generate-all-graphs.py
bkj/nasbench
a238cf26d843aaffbe037569528ef96d3e37eb04
[ "Apache-2.0" ]
null
null
null
nasbench/scripts/generate-all-graphs.py
bkj/nasbench
a238cf26d843aaffbe037569528ef96d3e37eb04
[ "Apache-2.0" ]
1
2021-07-25T16:36:34.000Z
2021-07-25T16:36:34.000Z
#!/usr/bin/env python """ generate-all-graphs.py python generate-all-graphs.py | gzip -c > all-graphs.gz """ import sys import json import itertools import numpy as np from tqdm import tqdm from nasbench.lib import graph_util from joblib import delayed, Parallel max_vertices = 7 num_ops = 3 max_edges ...
24.388889
98
0.642369
0
0
0
0
0
0
0
0
152
0.115414
f738e084271100fae4934591514291316a9bafdd
1,500
py
Python
ui/mext.py
szymonkaliski/nott
fa85e64b570f71733ea199dddbd0bc0f013a613b
[ "MIT" ]
25
2019-07-01T14:58:48.000Z
2021-11-13T17:00:44.000Z
ui/mext.py
szymonkaliski/nott
fa85e64b570f71733ea199dddbd0bc0f013a613b
[ "MIT" ]
6
2019-12-30T02:50:19.000Z
2021-05-10T16:41:47.000Z
ui/mext.py
szymonkaliski/nott
fa85e64b570f71733ea199dddbd0bc0f013a613b
[ "MIT" ]
2
2020-01-05T13:02:07.000Z
2020-05-21T15:54:57.000Z
# FIXME: fix all "happy paths coding" issues import liblo from threading import Thread class Mext(object): device = None def __init__(self, device_port=5000): self.device_receiver = liblo.ServerThread(device_port) self.device_receiver.add_method("/monome/grid/key", "iii", self.on_grid_key) ...
26.315789
85
0.544
1,409
0.939333
0
0
0
0
0
0
175
0.116667
f73a4d22041854c5326afaffc36927b22884b07a
5,370
py
Python
workers/test/test_exportactionlogsworker.py
kwestpharedhat/quay
a0df895005bcd3e53847046f69f6a7add87c88fd
[ "Apache-2.0" ]
null
null
null
workers/test/test_exportactionlogsworker.py
kwestpharedhat/quay
a0df895005bcd3e53847046f69f6a7add87c88fd
[ "Apache-2.0" ]
null
null
null
workers/test/test_exportactionlogsworker.py
kwestpharedhat/quay
a0df895005bcd3e53847046f69f6a7add87c88fd
[ "Apache-2.0" ]
null
null
null
import json import os import pytest from datetime import datetime, timedelta import boto3 from httmock import urlmatch, HTTMock from moto import mock_s3 from app import storage as test_storage from data import model, database from data.logs_model import logs_model from storage import S3Storage, StorageContext, Dist...
30.338983
97
0.58324
0
0
544
0.101304
3,431
0.63892
0
0
1,225
0.228119
f73c025048313646ffa657c41d4c35ef79bc7325
6,699
py
Python
pageplot/plotmodel.py
JBorrow/pageplot
8abad574fda476d26a59fc8b7d36da2838f2c11e
[ "MIT" ]
null
null
null
pageplot/plotmodel.py
JBorrow/pageplot
8abad574fda476d26a59fc8b7d36da2838f2c11e
[ "MIT" ]
null
null
null
pageplot/plotmodel.py
JBorrow/pageplot
8abad574fda476d26a59fc8b7d36da2838f2c11e
[ "MIT" ]
null
null
null
""" The base top-level plot model class. From this all data and plotting flow. """ from pageplot.exceptions import PagePlotParserError from pathlib import Path from typing import Any, Optional, Dict, List, Union from pageplot.extensionmodel import PlotExtension from pageplot.extensions import built_in_extensions fro...
29.641593
86
0.618749
6,155
0.918794
0
0
6,182
0.922824
0
0
3,250
0.485147
f73d133f1804d0833d771530b775e1da1e558e30
853
py
Python
src.py
duldiev/Assignment-2-Scrapping
a9dbb4bb14b7fe0a1c5ec6eba73491008ff8da52
[ "MIT" ]
null
null
null
src.py
duldiev/Assignment-2-Scrapping
a9dbb4bb14b7fe0a1c5ec6eba73491008ff8da52
[ "MIT" ]
null
null
null
src.py
duldiev/Assignment-2-Scrapping
a9dbb4bb14b7fe0a1c5ec6eba73491008ff8da52
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup as soup from selenium import webdriver class Scrapper: def getArticles(self, cryptoName): url = 'https://coinmarketcap.com/currencies/' + cryptoName + '/news/' driver = webdriver.Firefox() driver.get(url) page = driver.page_source page_soup = ...
38.772727
110
0.588511
783
0.917937
0
0
0
0
0
0
205
0.240328
f73dddf470763349a7f01540ff083d75743566dd
19,409
py
Python
qsubm.py
mark-caprio/mcscript
7a5a69667857f27b8f2d2f9387b90301bc321df2
[ "MIT" ]
1
2017-05-30T20:45:24.000Z
2017-05-30T20:45:24.000Z
qsubm.py
mark-caprio/mcscript
7a5a69667857f27b8f2d2f9387b90301bc321df2
[ "MIT" ]
3
2020-06-15T16:10:23.000Z
2020-10-15T02:47:21.000Z
qsubm.py
mark-caprio/mcscript
7a5a69667857f27b8f2d2f9387b90301bc321df2
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """qsubm -- generic queue submission for task-oriented batch scripts Environment variables: MCSCRIPT_DIR should specify the directory in which the mcscript package is installed, i.e., the directory where the file qsubm.py is found. (Note that qsubm uses this information to locate c...
40.77521
305
0.679273
0
0
0
0
0
0
0
0
12,482
0.643104
f73ea882b3c478b64d849ace9aad77a4fd64c642
504
py
Python
trees.py
dmancevo/trees
a76a8d9c8e11c67042e3d947d58a84fee83ad6b5
[ "Apache-2.0" ]
null
null
null
trees.py
dmancevo/trees
a76a8d9c8e11c67042e3d947d58a84fee83ad6b5
[ "Apache-2.0" ]
null
null
null
trees.py
dmancevo/trees
a76a8d9c8e11c67042e3d947d58a84fee83ad6b5
[ "Apache-2.0" ]
null
null
null
from ctypes import * class Node(Structure): pass Node._fields_ = [ ("leaf", c_int), ("g", c_float), ("min_samples", c_int), ("split_ind", c_int), ("split", c_float), ("left", POINTER(Node)), ("right", POINTER(Node))] trees = CDLL("./trees.so") trees.get_root.argtypes = (c_int, ) trees.get...
21
47
0.621032
133
0.263889
0
0
0
0
0
0
75
0.14881
f73eadae4fdc856f5258f55231ef39bc6666f5e3
2,657
py
Python
qf_lib/backtesting/order/order.py
webclinic017/qf-lib
96463876719bba8a76c8269cef76addf3a2d836d
[ "Apache-2.0" ]
198
2019-08-16T15:09:23.000Z
2022-03-30T12:44:00.000Z
qf_lib/backtesting/order/order.py
webclinic017/qf-lib
96463876719bba8a76c8269cef76addf3a2d836d
[ "Apache-2.0" ]
13
2021-01-07T10:15:19.000Z
2022-03-29T13:01:47.000Z
qf_lib/backtesting/order/order.py
webclinic017/qf-lib
96463876719bba8a76c8269cef76addf3a2d836d
[ "Apache-2.0" ]
29
2019-08-16T15:21:28.000Z
2022-02-23T09:53:49.000Z
# Copyright 2016-present CERN – European Organization for Nuclear Research # # 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...
39.073529
113
0.640572
1,803
0.678074
0
0
0
0
0
0
1,112
0.418202
f73f526fb320491a4e8c361c6ccf86f4cd4462be
8,080
py
Python
purity_fb/purity_fb_1dot12/models/multi_protocol_rule.py
tlewis-ps/purity_fb_python_client
652835cbd485c95a86da27f8b661679727ec6ea0
[ "Apache-2.0" ]
5
2017-09-08T20:47:22.000Z
2021-06-29T02:11:05.000Z
purity_fb/purity_fb_1dot12/models/multi_protocol_rule.py
tlewis-ps/purity_fb_python_client
652835cbd485c95a86da27f8b661679727ec6ea0
[ "Apache-2.0" ]
16
2017-11-27T20:57:48.000Z
2021-11-23T18:46:43.000Z
purity_fb/purity_fb_1dot12/models/multi_protocol_rule.py
tlewis-ps/purity_fb_python_client
652835cbd485c95a86da27f8b661679727ec6ea0
[ "Apache-2.0" ]
22
2017-10-13T15:33:05.000Z
2021-11-08T19:56:21.000Z
# coding: utf-8 """ Pure Storage FlashBlade REST 1.12 Python SDK Pure Storage FlashBlade REST 1.12 Python SDK. Compatible with REST API versions 1.0 - 1.12. Developed by [Pure Storage, Inc](http://www.purestorage.com/). Documentations can be found at [purity-fb.readthedocs.io](http://purity-fb.readthedocs.io/...
53.509934
1,242
0.688738
7,563
0.936015
0
0
4,774
0.590842
0
0
5,722
0.708168
f73f780a7a7ee00c38db35dff1b7df923b5843be
3,789
py
Python
webdriver/tests/actions/mouse_dblclick.py
shs96c/web-platform-tests
61acad6dd9bb99d32340eb41f5146de64f542359
[ "BSD-3-Clause" ]
null
null
null
webdriver/tests/actions/mouse_dblclick.py
shs96c/web-platform-tests
61acad6dd9bb99d32340eb41f5146de64f542359
[ "BSD-3-Clause" ]
null
null
null
webdriver/tests/actions/mouse_dblclick.py
shs96c/web-platform-tests
61acad6dd9bb99d32340eb41f5146de64f542359
[ "BSD-3-Clause" ]
null
null
null
import pytest from tests.actions.support.mouse import assert_move_to_coordinates, get_center from tests.actions.support.refine import get_events, filter_dict _DBLCLICK_INTERVAL = 640 # Using local fixtures because we want to start a new session between # each test, otherwise the clicks in each test interfere with ...
34.761468
92
0.594088
0
0
0
0
1,606
0.423859
0
0
899
0.237266
f740e9188e23989d7d8cb429eceb0134b86a65bd
194
py
Python
hallucinate/api.py
SySS-Research/hallucinate
f6dbeea0599e232707e6cf27c3fe592edba92f6f
[ "MIT" ]
199
2021-07-27T13:47:14.000Z
2022-03-05T09:18:56.000Z
hallucinate/api.py
avineshwar/hallucinate
f6dbeea0599e232707e6cf27c3fe592edba92f6f
[ "MIT" ]
1
2021-12-08T19:32:29.000Z
2021-12-08T19:32:29.000Z
hallucinate/api.py
avineshwar/hallucinate
f6dbeea0599e232707e6cf27c3fe592edba92f6f
[ "MIT" ]
13
2021-07-27T18:55:03.000Z
2021-08-09T06:15:35.000Z
class BaseHandler: def send(self, data, p): pass def recv(self, data, p): pass def shutdown(self, p, direction=2): pass def close(self): pass
13.857143
39
0.525773
193
0.994845
0
0
0
0
0
0
0
0
f741f9a134a29cde4417d89a622f8515e0c9db99
2,842
py
Python
actions.py
ratnasankeerthanreddy/Chatbot-for-Personal-assisatance
6c584601af4c98a3bebedf7073e0ccf2ad8ecf76
[ "MIT" ]
1
2020-10-28T15:57:44.000Z
2020-10-28T15:57:44.000Z
actions.py
ratnasankeerthanreddy/Chatbot-for-Personal-assisatance
6c584601af4c98a3bebedf7073e0ccf2ad8ecf76
[ "MIT" ]
null
null
null
actions.py
ratnasankeerthanreddy/Chatbot-for-Personal-assisatance
6c584601af4c98a3bebedf7073e0ccf2ad8ecf76
[ "MIT" ]
null
null
null
from typing import Any, Text, Dict, List from rasa_sdk import Action, Tracker from rasa_sdk.executor import CollectingDispatcher from utils import convert_timestamp from rasa_sdk.events import AllSlotsReset import datetime from datetime import timedelta, date import dateutil.parser import boto3 from boto3.dynamodb.cond...
35.974684
363
0.678044
1,228
0.43209
0
0
0
0
0
0
1,677
0.590077
f7421c61dc4a9f2905083616a76cf5c9a110855b
4,688
py
Python
main.py
Davidswinkels/DownloadWalkingRoutes
9ceaee0b96507149086aef7081790a09ab6b3653
[ "Apache-2.0" ]
null
null
null
main.py
Davidswinkels/DownloadWalkingRoutes
9ceaee0b96507149086aef7081790a09ab6b3653
[ "Apache-2.0" ]
null
null
null
main.py
Davidswinkels/DownloadWalkingRoutes
9ceaee0b96507149086aef7081790a09ab6b3653
[ "Apache-2.0" ]
null
null
null
from scripts.downloader import * import fiona from shapely.geometry import shape import geopandas as gpd import matplotlib.pyplot as plt from pprint import pprint import requests import json import time import os # Constant variables input_min_lat = 50.751797561 input_min_lon = 5.726110232 input_max_lat = 50.938216069...
53.272727
133
0.588097
0
0
0
0
0
0
0
0
2,988
0.637372
f7441602c73a268dd40291e6397b91ed0f1027f6
3,185
py
Python
seq2seq-chatbot/chat_web.py
rohitkujur1997/chatbot
76cd460b09f75532a7259d783114d8cf3dda246f
[ "MIT" ]
104
2018-03-28T20:30:25.000Z
2022-02-18T19:43:21.000Z
seq2seq-chatbot/chat_web.py
rohitkujur1997/chatbot
76cd460b09f75532a7259d783114d8cf3dda246f
[ "MIT" ]
37
2018-04-16T15:39:17.000Z
2021-05-29T11:28:26.000Z
seq2seq-chatbot/chat_web.py
rohitkujur1997/chatbot
76cd460b09f75532a7259d783114d8cf3dda246f
[ "MIT" ]
63
2018-05-18T09:52:20.000Z
2021-07-26T08:11:17.000Z
""" Script for serving a trained chatbot model over http """ import datetime import click from os import path from flask import Flask, request, send_from_directory from flask_cors import CORS from flask_restful import Resource, Api import general_utils import chat_command_handler from chat_settings import ChatSettings...
37.916667
141
0.661538
892
0.280063
0
0
2,757
0.86562
0
0
538
0.168917
f744580853ac0dc47dbf987d1497464099a8f500
1,907
py
Python
tests/test-checkbox.py
JonathanRRogers/twill
e1afc10366dcd29b82eeae2d586e49ca7737039a
[ "MIT" ]
null
null
null
tests/test-checkbox.py
JonathanRRogers/twill
e1afc10366dcd29b82eeae2d586e49ca7737039a
[ "MIT" ]
null
null
null
tests/test-checkbox.py
JonathanRRogers/twill
e1afc10366dcd29b82eeae2d586e49ca7737039a
[ "MIT" ]
null
null
null
import twilltestlib import twill from twill import namespaces, commands from twill.errors import TwillAssertionError from mechanize import BrowserStateError def setup_module(): global url url = twilltestlib.get_url() def test_select_multiple(): namespaces.new_local_dict() twill.commands.reset_browser(...
26.859155
77
0.631358
0
0
0
0
0
0
0
0
541
0.283692
f74471527dea41ff8d2f932ecbb41c7a4779f9c6
894
py
Python
native/release/test.py
ncbray/pystream
70bba5646d6512adb6803564c22268d3424c66d8
[ "Apache-2.0" ]
6
2015-09-19T18:22:33.000Z
2020-11-29T15:21:17.000Z
native/release/test.py
ncbray/pystream
70bba5646d6512adb6803564c22268d3424c66d8
[ "Apache-2.0" ]
1
2015-08-04T08:03:46.000Z
2015-08-04T08:03:46.000Z
native/release/test.py
ncbray/pystream
70bba5646d6512adb6803564c22268d3424c66d8
[ "Apache-2.0" ]
1
2019-12-09T08:27:09.000Z
2019-12-09T08:27:09.000Z
# Copyright 2011 Nicholas Bray # # 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...
22.35
74
0.710291
0
0
0
0
0
0
0
0
564
0.630872
f7451e04b5509a3b3a1ecacc27d8ca29e4bae31f
657
py
Python
4.py
Andrey543/Prack_10
263cae3204ed624b68d5797bd8d8833dd88e4682
[ "PSF-2.0" ]
null
null
null
4.py
Andrey543/Prack_10
263cae3204ed624b68d5797bd8d8833dd88e4682
[ "PSF-2.0" ]
null
null
null
4.py
Andrey543/Prack_10
263cae3204ed624b68d5797bd8d8833dd88e4682
[ "PSF-2.0" ]
null
null
null
enru=open('en-ru.txt','r') input=open('input.txt','r') output=open('output.txt','w') s=enru.read() x='' prov={'q','w','e','r','t','y','u','i','o','p','a','s','d','f','g','h','j','k','l','z','x','c','v','b','n','m'} slovar={} s=s.replace('\t-\t',' ') while len(s)>0: slovar[s[:s.index(' ')]]=s[s.index(' '):s.index('\...
22.655172
110
0.438356
0
0
0
0
0
0
0
0
157
0.238965
f74545257d4ee21af8ad7aae2149ad290991f512
2,485
py
Python
examples/siamese_mnist.py
DmitryUlyanov/deeppy
c9644d348e22b78d32ea049fb0ac14bf3b750941
[ "MIT" ]
1
2015-09-16T08:01:21.000Z
2015-09-16T08:01:21.000Z
examples/siamese_mnist.py
rajat1994/deeppy
79cc7cb552f30bc70eeea9ee7ff4976b0899ea66
[ "MIT" ]
null
null
null
examples/siamese_mnist.py
rajat1994/deeppy
79cc7cb552f30bc70eeea9ee7ff4976b0899ea66
[ "MIT" ]
2
2020-04-05T21:41:14.000Z
2021-09-28T18:05:49.000Z
#!/usr/bin/env python """ Siamese networks ================ """ import random import numpy as np import matplotlib.pyplot as plt from matplotlib import offsetbox import deeppy as dp # Fetch MNIST data dataset = dp.dataset.MNIST() x_train, y_train, x_test, y_test = dataset.data(flat=True, dp_dtypes=True) # Normaliz...
24.60396
78
0.639437
0
0
0
0
0
0
0
0
289
0.116298
f7455caca893431c335911322deda0eadbce921b
1,580
py
Python
py/tests/tests_integ_yarn.py
My-Technical-Architect/sparkling-water
b1381891baefd63fd15f8dc2a73b049828a919bc
[ "Apache-2.0" ]
null
null
null
py/tests/tests_integ_yarn.py
My-Technical-Architect/sparkling-water
b1381891baefd63fd15f8dc2a73b049828a919bc
[ "Apache-2.0" ]
null
null
null
py/tests/tests_integ_yarn.py
My-Technical-Architect/sparkling-water
b1381891baefd63fd15f8dc2a73b049828a919bc
[ "Apache-2.0" ]
null
null
null
# # 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"); you may not us...
39.5
97
0.725316
538
0.340506
0
0
0
0
0
0
1,130
0.71519
f747016ef477946806c1d818d38cadb8c27e681e
12,988
py
Python
exchanges/virtualExchangeService.py
AshWorkshop/Trandash
a96b523fbd171ba2d43a6720ef2e2a496a0cf75a
[ "MIT" ]
1
2018-07-25T03:43:35.000Z
2018-07-25T03:43:35.000Z
exchanges/virtualExchangeService.py
AshWorkshop/Trandash
a96b523fbd171ba2d43a6720ef2e2a496a0cf75a
[ "MIT" ]
null
null
null
exchanges/virtualExchangeService.py
AshWorkshop/Trandash
a96b523fbd171ba2d43a6720ef2e2a496a0cf75a
[ "MIT" ]
null
null
null
from twisted.internet import defer, task from twisted.python.failure import Failure from exchanges.base import ExchangeService from exchange import calcVirtualOrderBooks import copy import time def defaultErrHandler(failure): print(failure.getBriefTraceback()) return failure def handleMultipleErr(data): ...
34.542553
97
0.495303
12,410
0.955497
6,199
0.477287
3,210
0.247151
0
0
1,642
0.126424
f7479f1a05ace202d6234fbd90b428551eb021a1
7,989
py
Python
testplan/testing/cpp/cppunit.py
Morgan-Stanley/Testplan
9374d6e0da6ae9aa7a1b5e08b42cd21993485837
[ "Apache-2.0" ]
null
null
null
testplan/testing/cpp/cppunit.py
Morgan-Stanley/Testplan
9374d6e0da6ae9aa7a1b5e08b42cd21993485837
[ "Apache-2.0" ]
null
null
null
testplan/testing/cpp/cppunit.py
Morgan-Stanley/Testplan
9374d6e0da6ae9aa7a1b5e08b42cd21993485837
[ "Apache-2.0" ]
null
null
null
import os from schema import Or from testplan.common.config import ConfigOption from ..base import ProcessRunnerTest, ProcessRunnerTestConfig from ...importers.cppunit import CPPUnitResultImporter, CPPUnitImportedResult class CppunitConfig(ProcessRunnerTestConfig): """ Configuration object for :py:class:`~...
35.506667
80
0.620729
7,760
0.971336
0
0
904
0.113156
0
0
3,884
0.486168
f747a38fbb26a5157c21b6d60ed98e858e4c0dcd
8,191
py
Python
commands/song.py
Princ3x/ddmbot
088eb6b46447a1ec184b1bc7fea493b66ee35284
[ "MIT" ]
8
2016-12-13T17:52:51.000Z
2019-06-23T22:11:42.000Z
commands/song.py
Princ3x/ddmbot
088eb6b46447a1ec184b1bc7fea493b66ee35284
[ "MIT" ]
13
2016-12-13T17:35:09.000Z
2017-07-08T10:53:51.000Z
commands/song.py
Princ3x/ddmbot
088eb6b46447a1ec184b1bc7fea493b66ee35284
[ "MIT" ]
4
2016-12-13T17:52:53.000Z
2019-01-01T17:43:33.000Z
import discord.ext.commands as dec import database.song from commands.common import * class Song: """Song insertion, querying and manipulation""" def __init__(self, bot): self._bot = bot self._db = database.song.SongInterface(bot.loop) _help_messages = { 'group': 'Song informatio...
56.881944
120
0.652545
8,101
0.989012
0
0
4,341
0.529972
3,378
0.412404
4,570
0.557929
f747c5f4148789ffa72b834beacbd044a5cb6421
2,468
py
Python
linear_error_analysis/src/main.py
spacesys-finch/Science
623c9d77de6a52e87571debf7970cea7af591f2a
[ "MIT" ]
null
null
null
linear_error_analysis/src/main.py
spacesys-finch/Science
623c9d77de6a52e87571debf7970cea7af591f2a
[ "MIT" ]
null
null
null
linear_error_analysis/src/main.py
spacesys-finch/Science
623c9d77de6a52e87571debf7970cea7af591f2a
[ "MIT" ]
1
2021-10-09T19:35:26.000Z
2021-10-09T19:35:26.000Z
""" main.py Main driver for the Linear Error Analysis program. Can be run using `lea.sh`. Can choose which plots to see by toggling on/off `show_fig` param. Author(s): Adyn Miles, Shiqi Xu, Rosie Liang """ import os import matplotlib.pyplot as plt import numpy as np import config import libs.gta_xch4 as gta_xch4 i...
28.697674
87
0.687601
0
0
0
0
0
0
0
0
810
0.328201
f74835f3182443e8b2003e77b093fbfc09c67fcf
7,153
py
Python
src/anu/constants/amino_acid.py
ankitskvmdam/anu
699598fb60dcc23f6cccd5abb30a03b294d21598
[ "MIT" ]
null
null
null
src/anu/constants/amino_acid.py
ankitskvmdam/anu
699598fb60dcc23f6cccd5abb30a03b294d21598
[ "MIT" ]
null
null
null
src/anu/constants/amino_acid.py
ankitskvmdam/anu
699598fb60dcc23f6cccd5abb30a03b294d21598
[ "MIT" ]
null
null
null
"""Enum for amino acid.""" from enum import Enum from typing import Dict, TypedDict class AcidityBasicity(Enum): """Enum for acidity and basicity.""" U = 3 # Neutral A = 1 # Acid B = 2 # Base class Charge(Enum): """Enum for charge.""" U = 3 # Neutral P = 1 # Positive N = 2 #...
28.612
57
0.533622
1,156
0.161611
0
0
0
0
0
0
2,560
0.357892
f74b1a4debef16881b74152eff013915a6f5da94
8,550
py
Python
user_chainload.py
Phidica/sublime-execline
a3c1b76de0c9a420ae73467c28f445b698f7f508
[ "MIT" ]
2
2020-08-28T16:04:37.000Z
2020-08-28T20:06:21.000Z
user_chainload.py
Phidica/sublime-execline
a3c1b76de0c9a420ae73467c28f445b698f7f508
[ "MIT" ]
null
null
null
user_chainload.py
Phidica/sublime-execline
a3c1b76de0c9a420ae73467c28f445b698f7f508
[ "MIT" ]
null
null
null
import logging import os import re import sublime # external dependencies (see dependencies.json) import jsonschema import yaml # pyyaml # This plugin generates a hidden syntax file containing rules for additional # chainloading commands defined by the user. The syntax is stored in the cache # directory to avoid the...
31.090909
109
0.68
0
0
0
0
0
0
0
0
3,710
0.433918
f74b23abf6614d599940d2f82ff8df5980edce4e
378
py
Python
nmutant_model/retrain_mu_test0.py
asplos2020/DRTest
c3de497142d9b226e518a1a0f95f7350d2f7acd6
[ "MIT" ]
1
2021-04-01T07:31:17.000Z
2021-04-01T07:31:17.000Z
nmutant_model/retrain_mu_test0.py
Justobe/DRTest
85c3c9b2a46cafa7184130f2596c5f9eb3b20bff
[ "MIT" ]
null
null
null
nmutant_model/retrain_mu_test0.py
Justobe/DRTest
85c3c9b2a46cafa7184130f2596c5f9eb3b20bff
[ "MIT" ]
1
2020-12-24T12:12:54.000Z
2020-12-24T12:12:54.000Z
import os import numpy as np import sys sys.path.append("../") for model in ['lenet1', 'lenet4', 'lenet5']: for attack in ['fgsm', 'cw', 'jsma']: for mu_var in ['gf', 'nai', 'ns', 'ws']: os.system('CUDA_VISIBLE_DEVICES=0 python retrain_mu_mnist.py --datasets=mnist --attack=' + attack + ' --mode...
42
178
0.600529
0
0
0
0
0
0
0
0
182
0.481481
f74bfae14ea8e361bfd9a147cec9f55e5eecb5a2
5,197
py
Python
characterise_inauthentic_tweets.py
weberdc/socmed_repeatability
85da18cbffa53f18279844117b2aed226104ce11
[ "Apache-2.0" ]
2
2021-06-30T07:29:10.000Z
2022-01-20T15:17:26.000Z
characterise_inauthentic_tweets.py
weberdc/socmed_repeatability
85da18cbffa53f18279844117b2aed226104ce11
[ "Apache-2.0" ]
null
null
null
characterise_inauthentic_tweets.py
weberdc/socmed_repeatability
85da18cbffa53f18279844117b2aed226104ce11
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 from __future__ import print_function import gzip import json import re import sys # import time from argparse import ArgumentParser # from datetime import datetime class Options: def __init__(self): self.usage = 'characterise_inauthentic_tweets.py -i <file of tweets> [-v|--verbos...
31.307229
110
0.583414
780
0.150087
0
0
0
0
0
0
1,870
0.359823
f74ca0e4b20b83d509bc3a77fa6331062c311e10
3,577
py
Python
localshop/apps/packages/utils.py
rcoup/localshop
b7d0803afd9335862accfc79dee047a6b0e67ad6
[ "BSD-3-Clause" ]
null
null
null
localshop/apps/packages/utils.py
rcoup/localshop
b7d0803afd9335862accfc79dee047a6b0e67ad6
[ "BSD-3-Clause" ]
null
null
null
localshop/apps/packages/utils.py
rcoup/localshop
b7d0803afd9335862accfc79dee047a6b0e67ad6
[ "BSD-3-Clause" ]
null
null
null
import inspect import hashlib import logging import os from django.core.files.uploadedfile import TemporaryUploadedFile from django.db.models import FieldDoesNotExist from django.db.models.fields.files import FileField from django.http import QueryDict from django.utils.datastructures import MultiValueDict logger = l...
29.808333
78
0.559966
0
0
0
0
0
0
0
0
555
0.155158
f74d7b65bf1d537a02c073dba7f2c762c4daaaf9
4,228
py
Python
bika/lims/browser/worksheet/views/analyses_transposed.py
hocinebendou/bika.gsoc
85bc0c587de7f52073ae0e89bddbc77bf875f295
[ "MIT" ]
null
null
null
bika/lims/browser/worksheet/views/analyses_transposed.py
hocinebendou/bika.gsoc
85bc0c587de7f52073ae0e89bddbc77bf875f295
[ "MIT" ]
null
null
null
bika/lims/browser/worksheet/views/analyses_transposed.py
hocinebendou/bika.gsoc
85bc0c587de7f52073ae0e89bddbc77bf875f295
[ "MIT" ]
null
null
null
# coding=utf-8 from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile from bika.lims.browser.bika_listing import BikaListingTable from bika.lims.browser.worksheet.views.analyses import AnalysesView class AnalysesTransposedView(AnalysesView): """ The view for displaying the table of manage_results...
41.45098
82
0.585856
4,007
0.947729
0
0
0
0
0
0
1,467
0.346973
f74df4ac592a375e715e992b4854e0bf766ac654
865
py
Python
lab1_rest/project/apps/core/views.py
mratkovic/RZNU-Lab
2930b249994619c2f17493544db2c0d471ca6cbc
[ "MIT" ]
null
null
null
lab1_rest/project/apps/core/views.py
mratkovic/RZNU-Lab
2930b249994619c2f17493544db2c0d471ca6cbc
[ "MIT" ]
null
null
null
lab1_rest/project/apps/core/views.py
mratkovic/RZNU-Lab
2930b249994619c2f17493544db2c0d471ca6cbc
[ "MIT" ]
null
null
null
from rest_framework import viewsets from .models import User, Photo from .serializers import UserSerializer, PhotoSerializer from .mixins import RequestLogViewMixin from rest_framework.authentication import SessionAuthentication, BasicAuthentication from rest_framework.permissions import IsAuthenticated, IsAuthenticate...
41.190476
84
0.834682
529
0.611561
0
0
0
0
0
0
0
0
f74f0070abe0b831d8cd12d2943b6e264b00e54d
215
py
Python
arc/arc009/arc009b.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
1
2019-08-21T00:49:34.000Z
2019-08-21T00:49:34.000Z
arc/arc009/arc009b.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
null
null
null
arc/arc009/arc009b.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
null
null
null
def conv(x): return int(''.join(t[c] for c in x)) b = input().split() N = int(input()) a = [input() for _ in range(N)] t = {b[i]: str(i) for i in range(10)} a.sort(key = lambda x: conv(x)) print(*a, sep='\n')
19.545455
40
0.548837
0
0
0
0
0
0
0
0
6
0.027907
f75197db0d5043fe351ad2be154d400c859209b0
965
py
Python
setup.py
refnode/spartakiade-2021-session-effective-python
6b1a25c4ec79261de4ed6385a81b6a31a06d6b58
[ "Apache-2.0" ]
1
2021-06-04T14:05:31.000Z
2021-06-04T14:05:31.000Z
setup.py
refnode/spartakiade-2021-session-effective-python
6b1a25c4ec79261de4ed6385a81b6a31a06d6b58
[ "Apache-2.0" ]
null
null
null
setup.py
refnode/spartakiade-2021-session-effective-python
6b1a25c4ec79261de4ed6385a81b6a31a06d6b58
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """The setup script.""" from setuptools import setup, find_packages with open("README.adoc") as fh_readme: readme = fh_readme.read() install_reqs = [] setup( author="Sven Wilhelm", author_email='[email protected]', python_requires='>=3.8', classifiers=[ 'Developmen...
28.382353
79
0.675648
0
0
0
0
0
0
0
0
483
0.500518
f75630cbc7b1eef703d5e902537d65487d1b7612
4,126
py
Python
sim/pid.py
jmagine/rf-selection
ba9dcb5ca550916873ce68baa71da983f2dd4be5
[ "MIT" ]
1
2020-05-06T01:28:06.000Z
2020-05-06T01:28:06.000Z
sim/pid.py
jmagine/multiuav-rf
ba9dcb5ca550916873ce68baa71da983f2dd4be5
[ "MIT" ]
null
null
null
sim/pid.py
jmagine/multiuav-rf
ba9dcb5ca550916873ce68baa71da983f2dd4be5
[ "MIT" ]
null
null
null
'''*-----------------------------------------------------------------------*--- Author: Jason Ma Date : Oct 18 2018 TODO File Name : pid.py Description: TODO ---...
25.469136
127
0.537082
1,387
0.336161
0
0
0
0
0
0
1,360
0.329617
f756ddf67db85cf74cd46b5e90ed19ef6fd17367
32,091
py
Python
gazoo_device/fire_manager.py
isabella232/gazoo-device
0e1e276d72333e713b47152815708b9c74c45409
[ "Apache-2.0" ]
null
null
null
gazoo_device/fire_manager.py
isabella232/gazoo-device
0e1e276d72333e713b47152815708b9c74c45409
[ "Apache-2.0" ]
1
2021-06-24T19:20:50.000Z
2021-06-24T19:20:50.000Z
gazoo_device/fire_manager.py
isabella232/gazoo-device
0e1e276d72333e713b47152815708b9c74c45409
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
38.249106
109
0.675361
29,315
0.913496
0
0
14,307
0.445826
0
0
15,719
0.489826
f7583f3c89da3d4e9ea5d5c4fffa4b29559b7e57
4,814
py
Python
py/desispec/scripts/humidity_corrected_fiberflat.py
echaussidon/desispec
8a8bd59653861509dd630ffc8e1cd6c67f6cdd51
[ "BSD-3-Clause" ]
null
null
null
py/desispec/scripts/humidity_corrected_fiberflat.py
echaussidon/desispec
8a8bd59653861509dd630ffc8e1cd6c67f6cdd51
[ "BSD-3-Clause" ]
null
null
null
py/desispec/scripts/humidity_corrected_fiberflat.py
echaussidon/desispec
8a8bd59653861509dd630ffc8e1cd6c67f6cdd51
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import, division import os import fitsio import argparse import numpy as np from desiutil.log import get_logger from desispec.io import read_fiberflat,write_fiberflat,findfile,read_frame from desispec.io.fiberflat_vs_humidity import get_humidity,read_fiberflat_vs_humidity from desisp...
42.60177
162
0.706689
0
0
0
0
0
0
0
0
1,311
0.272331
f759437ada91a66b6fb489d96b3bf88ad2d186f2
1,856
py
Python
config.py
jfernan2/PRInspector
c09aad3b49263d3c679fd6cfd307de404425f924
[ "MIT" ]
null
null
null
config.py
jfernan2/PRInspector
c09aad3b49263d3c679fd6cfd307de404425f924
[ "MIT" ]
null
null
null
config.py
jfernan2/PRInspector
c09aad3b49263d3c679fd6cfd307de404425f924
[ "MIT" ]
null
null
null
IS_TEST = True REPOSITORY = 'cms-sw/cmssw' def get_repo_url(): return 'https://github.com/' + REPOSITORY + '/' CERN_SSO_CERT_FILE = 'private/cert.pem' CERN_SSO_KEY_FILE = 'private/cert.key' CERN_SSO_COOKIES_LOCATION = 'private/' TWIKI_CONTACTS_URL = 'https://ppdcontacts.web.cern.ch/PPDContacts/ppd_contacts' TWI...
27.294118
98
0.581358
0
0
0
0
0
0
0
0
646
0.34806
f75aab6d4d19a6e9c9dca13b0cb77061bc6e8325
5,748
py
Python
trainer/ml/utils.py
Telcrome/ai-trainer
54bca3252e194c054bdd3af2b94d6dde940a2a86
[ "MIT" ]
1
2021-05-05T12:57:42.000Z
2021-05-05T12:57:42.000Z
trainer/ml/utils.py
Telcrome/ai-trainer
54bca3252e194c054bdd3af2b94d6dde940a2a86
[ "MIT" ]
null
null
null
trainer/ml/utils.py
Telcrome/ai-trainer
54bca3252e194c054bdd3af2b94d6dde940a2a86
[ "MIT" ]
null
null
null
from enum import Enum from typing import Generator, Tuple, Iterable, Dict, List import cv2 import matplotlib.pyplot as plt import numpy as np import seaborn as sns from scipy.ndimage import label, generate_binary_structure from scipy.ndimage.morphology import distance_transform_edt as dist_trans import trainer.lib as...
35.04878
117
0.636047
50
0.008699
527
0.091684
0
0
0
0
1,507
0.262178
f75b61928d5ab139ffa7aac0fa8d2448bbd25e2c
7,613
py
Python
widgets/ImageDetailArea.py
JaySon-Huang/SecertPhotos
e741cc26c19a5b249d45cc70959ac6817196cb8a
[ "MIT" ]
null
null
null
widgets/ImageDetailArea.py
JaySon-Huang/SecertPhotos
e741cc26c19a5b249d45cc70959ac6817196cb8a
[ "MIT" ]
3
2015-05-19T08:43:46.000Z
2015-06-10T17:55:28.000Z
widgets/ImageDetailArea.py
JaySon-Huang/SecertPhotos
e741cc26c19a5b249d45cc70959ac6817196cb8a
[ "MIT" ]
null
null
null
from PyQt5.QtCore import Qt, pyqtSignal, QSize from PyQt5.QtWidgets import ( QLabel, QWidget, QTreeWidgetItem, QHeaderView, QVBoxLayout, QHBoxLayout, ) from .ImageLabel import ImageLabel from .AdaptiveTreeWidget import AdaptiveTreeWidget class ImageDetailArea(QWidget): # signal imageLoaded = pyqtSig...
38.64467
73
0.620255
7,363
0.967161
0
0
0
0
0
0
885
0.116249
f75bd46e6e679f347d07fe04e940962382046dd8
3,005
py
Python
predict.py
zhyq/cws_lstm
326980e0971482fc712602d3a79069e69a11c8fc
[ "Apache-2.0" ]
7
2018-04-28T02:32:51.000Z
2020-02-11T07:14:51.000Z
predict.py
zhyq/cws_lstm
326980e0971482fc712602d3a79069e69a11c8fc
[ "Apache-2.0" ]
null
null
null
predict.py
zhyq/cws_lstm
326980e0971482fc712602d3a79069e69a11c8fc
[ "Apache-2.0" ]
null
null
null
import argparse import data_helper from sklearn.model_selection import train_test_split import re import lstm from lstm import * import time from viterbi import Viterbi xrange = range def simple_cut(text,dh,lm,viterbi): """对一个片段text(标点符号把句子划分为多个片段)进行预测。""" if text: #print("text: %s" %text) te...
33.388889
125
0.628619
0
0
0
0
0
0
0
0
1,063
0.313662
f75c066d3ec31ec2f99d70612e1572ff45c4ae07
930
py
Python
Regression/multiple_linear_regression.py
Rupii/Machine-Learning
2b00698815efb04346d5cb980b68af76f27a5ca6
[ "MIT" ]
null
null
null
Regression/multiple_linear_regression.py
Rupii/Machine-Learning
2b00698815efb04346d5cb980b68af76f27a5ca6
[ "MIT" ]
null
null
null
Regression/multiple_linear_regression.py
Rupii/Machine-Learning
2b00698815efb04346d5cb980b68af76f27a5ca6
[ "MIT" ]
1
2019-09-04T05:43:31.000Z
2019-09-04T05:43:31.000Z
# -*- coding: utf-8 -*- """ Created on Sat Feb 24 23:18:54 2018 @author: Rupesh """ # Multiple Linear Regression import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns plt.style.use("ggplot") # loading dependies df = pd.read_csv("50_Startups.csv") df.head() X = df.iloc[:, :-...
19.787234
74
0.731183
0
0
0
0
0
0
0
0
224
0.24086
f75c6aa4c0bc9e6a0583632570a241f0d5700804
2,945
py
Python
2021/day09/part01/smoke_basin.py
fpmosley/advent-of-code
507bd89795ff6a0824284c3c8d2123cf19a932a3
[ "MIT" ]
null
null
null
2021/day09/part01/smoke_basin.py
fpmosley/advent-of-code
507bd89795ff6a0824284c3c8d2123cf19a932a3
[ "MIT" ]
null
null
null
2021/day09/part01/smoke_basin.py
fpmosley/advent-of-code
507bd89795ff6a0824284c3c8d2123cf19a932a3
[ "MIT" ]
null
null
null
#!/usr/bin/env python ''' Advent of Code 2021 - Day 9: Smoke Basin (Part 1) https://adventofcode.com/2021/day/9 ''' import numpy as np class HeightMap(): def __init__(self) -> None: self._grid = np.array([]) def add_row(self, row): np_row = np.array(row) if self._grid.size != 0: ...
27.523364
94
0.55382
1,497
0.508319
0
0
0
0
0
0
637
0.216299
f75d3544ffa19cc489ce532ee8d14ab4f09c6953
3,830
py
Python
datar/base/trig_hb.py
stjordanis/datar
4e2b5db026ad35918954576badef9951928c0cb1
[ "MIT" ]
110
2021-03-09T04:10:40.000Z
2022-03-13T10:28:20.000Z
datar/base/trig_hb.py
sthagen/datar
1218a549e2f0547c7b5a824ca6d9adf1bf96ba46
[ "MIT" ]
54
2021-06-20T18:53:44.000Z
2022-03-29T22:13:07.000Z
datar/base/trig_hb.py
sthagen/datar
1218a549e2f0547c7b5a824ca6d9adf1bf96ba46
[ "MIT" ]
11
2021-06-18T03:03:14.000Z
2022-02-25T11:48:26.000Z
"""Trigonometric and Hyperbolic Functions""" from typing import Callable import numpy from pipda import register_func from ..core.contexts import Context from ..core.types import FloatOrIter from .constants import pi def _register_trig_hb_func(name: str, np_name: str, doc: str) -> Callable: """Register trigono...
16.228814
76
0.636031
0
0
0
0
360
0.093995
0
0
2,305
0.601828
f75e1e987d9f182ed96fa5d1a87db15f1d90fda6
1,463
py
Python
randomised_selection.py
neerajp99/algorithms
1d6885d2a895821ac511fa8a46913d34db2511ca
[ "MIT" ]
1
2021-06-17T07:59:42.000Z
2021-06-17T07:59:42.000Z
randomised_selection.py
neerajp99/algorithms
1d6885d2a895821ac511fa8a46913d34db2511ca
[ "MIT" ]
null
null
null
randomised_selection.py
neerajp99/algorithms
1d6885d2a895821ac511fa8a46913d34db2511ca
[ "MIT" ]
1
2022-01-13T08:42:31.000Z
2022-01-13T08:42:31.000Z
# Implementation of Randomised Selection """ Naive Approach --------- Parameters --------- An arry with n distinct numbers --------- Returns --------- i(th) order statistic, i.e: i(th) smallest element of the input array --------- Time Complexity --------- O(n.log...
26.6
141
0.601504
0
0
0
0
0
0
0
0
588
0.401914
f75e9b9f00f9f84646e14e8f9e1b2be7266630e1
365
py
Python
fate/labeling/txt.py
Mattias1/fate
10266406336bc4c683ff5b23af32ac3447f7f054
[ "MIT" ]
null
null
null
fate/labeling/txt.py
Mattias1/fate
10266406336bc4c683ff5b23af32ac3447f7f054
[ "MIT" ]
null
null
null
fate/labeling/txt.py
Mattias1/fate
10266406336bc4c683ff5b23af32ac3447f7f054
[ "MIT" ]
null
null
null
import re from .common import regex_labels, re_number, re_string keywords = ['TODO'] re_keyword = re.compile(r'\b({})\b'.format('|'.join(keywords))) def init(document): document.OnGenerateLabeling.add(main) def main(document): regex_list = [(re_keyword, 'keyword'), (re_number, 'number'), (re_string, 'stri...
22.8125
88
0.70137
0
0
0
0
0
0
0
0
45
0.123288
f7603cc1049048de6e8b2c24b0acac1e2d8f0746
490
py
Python
Conteudo das Aulas/146/cgi-bin/cgi4_css_2.py
cerberus707/lab-python
ebba3c9cde873d70d4bb61084f79ce30b7f9e047
[ "Apache-2.0" ]
null
null
null
Conteudo das Aulas/146/cgi-bin/cgi4_css_2.py
cerberus707/lab-python
ebba3c9cde873d70d4bb61084f79ce30b7f9e047
[ "Apache-2.0" ]
null
null
null
Conteudo das Aulas/146/cgi-bin/cgi4_css_2.py
cerberus707/lab-python
ebba3c9cde873d70d4bb61084f79ce30b7f9e047
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import cgitb; cgitb.enable() print('Content-type: text/html\n') print( """<html> <head> <title>CGI 4 - CSS</title> <link rel="stylesheet" type="text/css" href="../css/estilo1.css"> </head> <body> <h1>Colocando CSS em um script a parte</h1> <hr> <p>Ola imagens CGI!</p> <di...
18.846154
101
0.604082
0
0
0
0
0
0
0
0
438
0.893878
f7610420f3cae75b3b9d0169cdf9f686ba220b80
4,769
py
Python
neural-navigation-with-lstm/MARCO/plastk/examples/gngsom.py
ronaldahmed/SLAM-for-ugv
52e3241b8b737a0cfe5682c0aa87ec8c27d6a33d
[ "MIT" ]
14
2016-04-03T19:25:13.000Z
2022-01-05T07:03:07.000Z
neural-navigation-with-lstm/MARCO/plastk/examples/gngsom.py
ronaldahmed/SLAM-for-ugv
52e3241b8b737a0cfe5682c0aa87ec8c27d6a33d
[ "MIT" ]
null
null
null
neural-navigation-with-lstm/MARCO/plastk/examples/gngsom.py
ronaldahmed/SLAM-for-ugv
52e3241b8b737a0cfe5682c0aa87ec8c27d6a33d
[ "MIT" ]
5
2018-06-21T12:58:58.000Z
2020-02-15T05:33:39.000Z
""" GNG vs SOM comparison example for PLASTK. This script shows how to: - Train PLASTK vector quantizers (SOM and GNG) - Set default parameters - Create a simple agent and environment. - Run an interaction between the agent and the environment with a GUI. $Id: gngsom.py,v 1.3 2006/02/17 19:40:09 jp Exp $ ...
29.257669
79
0.662403
2,227
0.466974
394
0.082617
0
0
0
0
2,759
0.578528
f761849b5a4f4a9a3e0e3b79a8c5c9b1f726ae8e
3,444
py
Python
projects/ide/sublime/src/Bolt/api/inspect/highlighting.py
boltjs/bolt
c2666c876b34b1a61486a432eef3141ca8d1e411
[ "BSD-3-Clause" ]
11
2015-09-29T19:19:34.000Z
2020-11-20T09:14:46.000Z
projects/ide/sublime/src/Bolt/api/inspect/highlighting.py
boltjs/bolt
c2666c876b34b1a61486a432eef3141ca8d1e411
[ "BSD-3-Clause" ]
null
null
null
projects/ide/sublime/src/Bolt/api/inspect/highlighting.py
boltjs/bolt
c2666c876b34b1a61486a432eef3141ca8d1e411
[ "BSD-3-Clause" ]
null
null
null
import sublime from ui.read import settings as read_settings from ui.write import write, highlight as write_highlight from lookup import file_type as lookup_file_type from ui.read import x as ui_read from ui.read import spots as read_spots from ui.read import regions as ui_regions from core.read import read as core_rea...
29.689655
116
0.654472
0
0
0
0
0
0
0
0
269
0.078107
f762be92cbd4d0af01d0dd42ecc1fb37b29c7ade
3,745
py
Python
gratipay/models/exchange_route.py
stefb965/gratipay.com
5f3b5922d6b3a7ff64f51574a1087bab2378cbd8
[ "CC0-1.0" ]
null
null
null
gratipay/models/exchange_route.py
stefb965/gratipay.com
5f3b5922d6b3a7ff64f51574a1087bab2378cbd8
[ "CC0-1.0" ]
null
null
null
gratipay/models/exchange_route.py
stefb965/gratipay.com
5f3b5922d6b3a7ff64f51574a1087bab2378cbd8
[ "CC0-1.0" ]
null
null
null
from __future__ import absolute_import, division, print_function, unicode_literals import braintree from postgres.orm import Model class ExchangeRoute(Model): typname = "exchange_routes" def __bool__(self): return self.error != 'invalidated' __nonzero__ = __bool__ @classmethod def fro...
34.357798
94
0.594393
3,610
0.963952
0
0
1,883
0.502804
0
0
1,576
0.420828
f763746331e345f22b7c5a33a4edda7eac385dea
805
py
Python
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/video_pipeline/forms.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
3
2021-12-15T04:58:18.000Z
2022-02-06T12:15:37.000Z
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/video_pipeline/forms.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
null
null
null
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/video_pipeline/forms.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
1
2019-01-02T14:38:50.000Z
2019-01-02T14:38:50.000Z
""" Defines a form to provide validations for course-specific configuration. """ from django import forms from openedx.core.djangoapps.video_config.forms import CourseSpecificFlagAdminBaseForm from openedx.core.djangoapps.video_pipeline.models import ( CourseVideoUploadsEnabledByDefault, VEMPipelineIntegration...
26.833333
86
0.756522
475
0.590062
0
0
0
0
0
0
248
0.308075
f76393b04c4eca590f51e2e26126536b11d54d6f
1,779
py
Python
tests/integration/test_create_from_full_info.py
superannotateai/superannotate-python-sdk
e2ce848b61efed608265fa64f3781fd5a17c929b
[ "MIT" ]
26
2020-09-25T06:25:06.000Z
2022-01-30T16:44:07.000Z
tests/integration/test_create_from_full_info.py
superannotateai/superannotate-python-sdk
e2ce848b61efed608265fa64f3781fd5a17c929b
[ "MIT" ]
12
2020-12-21T19:59:48.000Z
2022-01-21T10:32:07.000Z
tests/integration/test_create_from_full_info.py
superannotateai/superannotate-python-sdk
e2ce848b61efed608265fa64f3781fd5a17c929b
[ "MIT" ]
11
2020-09-17T13:39:19.000Z
2022-03-02T18:12:29.000Z
import os from os.path import dirname from unittest import TestCase import src.superannotate as sa class TestCloneProject(TestCase): PROJECT_NAME_1 = "test create from full info1" PROJECT_NAME_2 = "test create from full info2" PROJECT_DESCRIPTION = "desc" PROJECT_TYPE = "Vector" TEST_FOLDER_PATH...
37.0625
109
0.720067
1,677
0.942664
0
0
210
0.118044
0
0
235
0.132097
f7639fdfd1c81876235b0d816ccef91c2a2888bb
903
py
Python
spellingcorrector/utils/count.py
NazcaLines/spelling-corrector
ae315a3988e94ee46f60ff4ac7d2ee7609ebc24b
[ "MIT" ]
null
null
null
spellingcorrector/utils/count.py
NazcaLines/spelling-corrector
ae315a3988e94ee46f60ff4ac7d2ee7609ebc24b
[ "MIT" ]
null
null
null
spellingcorrector/utils/count.py
NazcaLines/spelling-corrector
ae315a3988e94ee46f60ff4ac7d2ee7609ebc24b
[ "MIT" ]
null
null
null
import os import functools CORPUS_DIR = str(os.getcwd())[:str(os.getcwd()).index('spellingcorrector/')] \ + 'data/corpus.txt' NWORD = {} def checkCorpus(fn): @functools.wraps(fn) def new_func(*args, **kwargs): t = os.path.isfile(CORPUS_DIR) if t == False: raise IOEr...
19.630435
78
0.572536
0
0
0
0
436
0.482835
0
0
154
0.170543
f764d5863df085c67cf462549442d82ef895d117
653
py
Python
rhasspy_weather/parser/nlu_intent.py
arniebarni/rhasspy_weather
6a9df72adad3e5dafa7962c2be37c824dc04137b
[ "MIT" ]
5
2020-03-29T01:00:30.000Z
2022-02-06T20:00:00.000Z
rhasspy_weather/parser/nlu_intent.py
arniebarni/rhasspy_weather
6a9df72adad3e5dafa7962c2be37c824dc04137b
[ "MIT" ]
12
2020-04-02T15:09:05.000Z
2021-10-11T00:44:21.000Z
rhasspy_weather/parser/nlu_intent.py
arniebarni/rhasspy_weather
6a9df72adad3e5dafa7962c2be37c824dc04137b
[ "MIT" ]
5
2020-03-25T08:33:02.000Z
2021-05-18T08:47:41.000Z
import logging from rhasspy_weather.data_types.request import WeatherRequest from rhasspy_weather.parser import rhasspy_intent from rhasspyhermes.nlu import NluIntent log = logging.getLogger(__name__) def parse_intent_message(intent_message: NluIntent) -> WeatherRequest: """ Parses any of the rhasspy weathe...
26.12
80
0.793262
0
0
0
0
0
0
0
0
149
0.228178
f767fc179ce62571eb82287782f1d69c78d494fd
1,028
py
Python
415-add-strings/add_strings.py
cnluocj/leetcode
5b870a63ba1aab3db1e05421c91f404a9aabc489
[ "MIT" ]
null
null
null
415-add-strings/add_strings.py
cnluocj/leetcode
5b870a63ba1aab3db1e05421c91f404a9aabc489
[ "MIT" ]
null
null
null
415-add-strings/add_strings.py
cnluocj/leetcode
5b870a63ba1aab3db1e05421c91f404a9aabc489
[ "MIT" ]
null
null
null
""" 59.40% 其实是大数相加 """ class Solution(object): def addStrings(self, num1, num2): """ :type num1: str :type num2: str :rtype: str """ num1_index = len(num1) - 1 num2_index = len(num2) - 1 if num1_index < 0: return num2 if num2_inde...
23.906977
73
0.430934
1,002
0.961612
0
0
0
0
0
0
124
0.119002
f769f929849f6994908fa8a9ca653f7ebe8e0e87
2,770
py
Python
plugins/qdb.py
x89/raziel-irc-bot
122a5de858a84e018549e0a7fd0be11bb33f2eb3
[ "MIT" ]
null
null
null
plugins/qdb.py
x89/raziel-irc-bot
122a5de858a84e018549e0a7fd0be11bb33f2eb3
[ "MIT" ]
null
null
null
plugins/qdb.py
x89/raziel-irc-bot
122a5de858a84e018549e0a7fd0be11bb33f2eb3
[ "MIT" ]
null
null
null
import logging log = logging.getLogger(__name__) import json import requests import requests.exceptions import botologist.plugin BASE_URL = 'https://qdb.lutro.me' def _get_quote_url(quote): return BASE_URL + '/' + str(quote['id']) def _get_qdb_data(url, query_params): response = requests.get(url, query_params, ...
23.277311
83
0.636462
720
0.259928
0
0
673
0.24296
0
0
493
0.177978
f76d62143b8e1fa514207d6381b4adbf58120f1a
2,889
py
Python
skos/method.py
edmondchuc/voc-view
57bd965facacc77f40f218685c88e8b858d4925c
[ "MIT" ]
3
2021-07-31T16:23:26.000Z
2022-01-24T01:28:17.000Z
skos/method.py
edmondchuc/voc-view
57bd965facacc77f40f218685c88e8b858d4925c
[ "MIT" ]
null
null
null
skos/method.py
edmondchuc/voc-view
57bd965facacc77f40f218685c88e8b858d4925c
[ "MIT" ]
1
2019-08-07T06:02:52.000Z
2019-08-07T06:02:52.000Z
from pyldapi.renderer import Renderer from pyldapi.view import View from flask import render_template, Response from rdflib import Graph, URIRef, BNode import skos from skos.common_properties import CommonPropertiesMixin from config import Config class Method(CommonPropertiesMixin): def __init__(self, uri): ...
40.125
128
0.602631
2,635
0.91208
0
0
0
0
0
0
582
0.201454
f76e35161b8285ae39943d6522c5085c519cc9cf
22,791
py
Python
wwt_api_client/communities.py
WorldWideTelescope/wwt_api_client
cfc42728eb2428f17e711f7527fd97150e629296
[ "BSD-3-Clause" ]
null
null
null
wwt_api_client/communities.py
WorldWideTelescope/wwt_api_client
cfc42728eb2428f17e711f7527fd97150e629296
[ "BSD-3-Clause" ]
8
2019-04-28T17:27:44.000Z
2020-11-05T20:24:21.000Z
wwt_api_client/communities.py
WorldWideTelescope/wwt_api_client
cfc42728eb2428f17e711f7527fd97150e629296
[ "BSD-3-Clause" ]
1
2019-04-28T17:25:06.000Z
2019-04-28T17:25:06.000Z
# Copyright 2019-2020 the .NET Foundation # Distributed under the terms of the revised (3-clause) BSD license. """Interacting with the WWT Communities APIs.""" import json import os.path import requests import sys from urllib.parse import parse_qs, urlparse from . import APIRequest, Client, enums __all__ = ''' Comm...
30.966033
125
0.5833
20,299
0.890659
0
0
0
0
0
0
12,434
0.545566
f76f8e181e6635c86576107fa1d30d62af17c114
158
py
Python
FictionTools/amitools/test/suite/vprintf.py
polluks/Puddle-BuildTools
c1762d53a33002b62d8cffe3db129505a387bec3
[ "BSD-2-Clause" ]
38
2021-06-18T12:56:15.000Z
2022-03-12T20:38:40.000Z
FictionTools/amitools/test/suite/vprintf.py
polluks/Puddle-BuildTools
c1762d53a33002b62d8cffe3db129505a387bec3
[ "BSD-2-Clause" ]
2
2021-06-20T16:28:12.000Z
2021-11-17T21:33:56.000Z
FictionTools/amitools/test/suite/vprintf.py
polluks/Puddle-BuildTools
c1762d53a33002b62d8cffe3db129505a387bec3
[ "BSD-2-Clause" ]
6
2021-06-18T18:18:36.000Z
2021-12-22T08:01:32.000Z
import pytest def vprintf_test(vamos): if vamos.flavor == "agcc": pytest.skip("vprintf not supported") vamos.run_prog_check_data("vprintf")
19.75
44
0.689873
0
0
0
0
0
0
0
0
38
0.240506
f7704b3dce5cd94981cb7391a19b755c0df22b68
304
py
Python
test/socket_client.py
suxb201/Socks5_DNS_Test
a1cb8b5d8d998c6a029dc0b329418ecbb9a2fc72
[ "MIT" ]
1
2020-11-09T02:08:04.000Z
2020-11-09T02:08:04.000Z
test/socket_client.py
suxb201/Socks5_DNS_Test
a1cb8b5d8d998c6a029dc0b329418ecbb9a2fc72
[ "MIT" ]
null
null
null
test/socket_client.py
suxb201/Socks5_DNS_Test
a1cb8b5d8d998c6a029dc0b329418ecbb9a2fc72
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import socket HOST = '127.0.0.1' # 服务器的主机名或者 IP 地址 PORT = 10009 # 服务器使用的端口 with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s: print(s) s.connect((HOST, PORT)) s.sendall(b'Hello, world') print(s) data = s.recv(1024) print('Received', repr(data))
19
60
0.651316
0
0
0
0
0
0
0
0
123
0.359649
f770883d6109ebd548cc44852ed0b4db7874c963
752
py
Python
util/statuschanger.py
MarkThe/Mark-Tools
c755d2b2e095b9f83fcbaba3ac74ec927bcddf26
[ "MIT" ]
1
2022-01-04T18:09:50.000Z
2022-01-04T18:09:50.000Z
util/statuschanger.py
MarkThe/Mark-Tools
c755d2b2e095b9f83fcbaba3ac74ec927bcddf26
[ "MIT" ]
null
null
null
util/statuschanger.py
MarkThe/Mark-Tools
c755d2b2e095b9f83fcbaba3ac74ec927bcddf26
[ "MIT" ]
null
null
null
import requests import Mark from colorama import Fore from util.plugins.common import print_slow, getheaders, proxy def StatusChanger(token, Status): #change status CustomStatus = {"custom_status": {"text": Status}} #{"text": Status, "emoji_name": "☢"} if you want to add an emoji to the status try: ...
44.235294
152
0.676862
0
0
0
0
0
0
0
0
355
0.470822
f77168d5a15a1187d94edfc593ed43416e3d8946
1,979
py
Python
recipes/recipe_modules/cloudbuildhelper/test_api.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
recipes/recipe_modules/cloudbuildhelper/test_api.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
recipes/recipe_modules/cloudbuildhelper/test_api.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2019 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 hashlib import sha256 from recipe_engine import recipe_test_api class CloudBuildHelperTestApi(recipe_test_api.RecipeTestApi): def build_success_out...
30.921875
80
0.632137
1,743
0.880748
0
0
0
0
0
0
573
0.28954
f7716d154c4129f506d04590e1524fcb8b2888bb
7,011
py
Python
tabbi/gmm.py
Yu-AnChen/tabbi
bf4655905d0f3fc5b7dd49a1cd12c69cb83e5bb5
[ "MIT" ]
null
null
null
tabbi/gmm.py
Yu-AnChen/tabbi
bf4655905d0f3fc5b7dd49a1cd12c69cb83e5bb5
[ "MIT" ]
null
null
null
tabbi/gmm.py
Yu-AnChen/tabbi
bf4655905d0f3fc5b7dd49a1cd12c69cb83e5bb5
[ "MIT" ]
null
null
null
import sklearn.mixture import matplotlib.pyplot as plt import numpy as np from matplotlib import ticker import matplotlib.patheffects as mpatheffects def get_gmm_and_pos_label( array, n_components=2, n_steps=5000 ): gmm = sklearn.mixture.GaussianMixture( n_components=n_components, covarianc...
31.581081
97
0.601341
0
0
0
0
0
0
0
0
384
0.054771
f7745a348fc7e9affea625ab9bda06298308eebf
4,627
py
Python
openGaussBase/testcase/SQL/DML/upsert/Opengauss_Function_DML_Upsert_Case0131.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/SQL/DML/upsert/Opengauss_Function_DML_Upsert_Case0131.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/SQL/DML/upsert/Opengauss_Function_DML_Upsert_Case0131.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
""" Copyright (c) 2022 Huawei Technologies Co.,Ltd. openGauss is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, W...
39.211864
84
0.653555
3,516
0.67112
0
0
0
0
0
0
2,951
0.563275
f7746001d5f89f7418b92bab28a281a421e0564a
6,892
py
Python
multi_traductor.py
Jalagarto/translator
d35cde0934c4ab94204d6dfdf4e7d6c0bcd6291b
[ "Apache-2.0" ]
null
null
null
multi_traductor.py
Jalagarto/translator
d35cde0934c4ab94204d6dfdf4e7d6c0bcd6291b
[ "Apache-2.0" ]
null
null
null
multi_traductor.py
Jalagarto/translator
d35cde0934c4ab94204d6dfdf4e7d6c0bcd6291b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 import tkinter as tk from tkinter import messagebox as msg from tkinter.ttk import Notebook from tkinter import ttk import tkinter.font as font import requests class LanguageTab(tk.Frame): def __init__(self, master, lang_name, lang_code): super().__init__(master) # fonts for ...
43.075
130
0.642339
6,313
0.915193
0
0
0
0
0
0
1,703
0.246883