hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
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
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
⌀
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
251
max_forks_repo_name
stringlengths
4
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.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
89a5950f80b35d5043804d663edeba3303f53a0e
869
py
Python
pioreactor/plugin_management/__init__.py
Pioreactor/pioreactor
63288a2b7ef90b663ff19b85f19586ac0b42bc1b
[ "MIT" ]
32
2021-01-01T01:56:04.000Z
2022-03-31T21:23:22.000Z
pioreactor/plugin_management/__init__.py
Pioreactor/pioreactor
63288a2b7ef90b663ff19b85f19586ac0b42bc1b
[ "MIT" ]
222
2020-11-28T18:21:56.000Z
2022-03-30T19:23:32.000Z
pioreactor/plugin_management/__init__.py
Pioreactor/pioreactor
63288a2b7ef90b663ff19b85f19586ac0b42bc1b
[ "MIT" ]
3
2021-02-12T17:50:22.000Z
2022-02-18T18:53:21.000Z
# -*- coding: utf-8 -*- """ How do plugins work? There are a few patterns we use to "register" plugins with the core app. 1. All plugins should use entry_points in the setup, pointing to "pioreactor.plugins" 2. Automations are defined by a subclassing the respective XXXAutomationContrib. There is a hook in this pa...
39.5
108
0.785961
89a624d75795630a0a33b81f16f5fb33f23b6c5a
1,480
py
Python
wav_reader.py
Acemyzoe/voiceclassifier-vggvox
035f6553f85d51f1b60983acc425e6a926bf6ca9
[ "MIT" ]
3
2020-06-17T12:57:24.000Z
2021-07-20T14:19:11.000Z
wav_reader.py
Acemyzoe/voiceclassifier-vggvox
035f6553f85d51f1b60983acc425e6a926bf6ca9
[ "MIT" ]
1
2021-05-14T11:40:09.000Z
2021-05-14T11:40:09.000Z
wav_reader.py
Acemyzoe/voiceclassifier-vggvox
035f6553f85d51f1b60983acc425e6a926bf6ca9
[ "MIT" ]
null
null
null
import librosa import numpy as np from scipy.signal import lfilter, butter import sigproc import constants as c # https://github.com/christianvazquez7/ivector/blob/master/MSRIT/rm_dc_n_dither.m
28.461538
130
0.731757
89a998ffaac4df7af10d76701e5a83608039387b
229
py
Python
python/scrutiny/server/protocol/commands/__init__.py
scrutinydebugger/scrutiny
7530790ae40f20c3008fe196e39cab07c4b73445
[ "MIT" ]
1
2021-04-18T02:58:59.000Z
2021-04-18T02:58:59.000Z
python/scrutiny/server/protocol/commands/__init__.py
scrutinydebugger/scrutiny
7530790ae40f20c3008fe196e39cab07c4b73445
[ "MIT" ]
null
null
null
python/scrutiny/server/protocol/commands/__init__.py
scrutinydebugger/scrutiny
7530790ae40f20c3008fe196e39cab07c4b73445
[ "MIT" ]
null
null
null
from .base_command import DatalogControl from .base_command import GetInfo from .base_command import MemoryControl from .base_command import CommControl from .base_command import UserCommand from .base_command import DummyCommand
38.166667
40
0.873362
89aa8fb88d06975a11ab90766b62f3f73699496f
4,393
py
Python
scripts/preprocess_snli.py
jabalazs/gating
713f954656bea127ea331ab85aa83f6aaad21954
[ "MIT" ]
10
2019-04-08T02:09:37.000Z
2021-05-04T10:30:44.000Z
scripts/preprocess_snli.py
lizezhonglaile/gating
713f954656bea127ea331ab85aa83f6aaad21954
[ "MIT" ]
null
null
null
scripts/preprocess_snli.py
lizezhonglaile/gating
713f954656bea127ea331ab85aa83f6aaad21954
[ "MIT" ]
4
2019-09-24T14:24:25.000Z
2021-09-02T14:41:38.000Z
#!/usr/bin/env python import argparse import random import os import sys import pandas as pd import colored_traceback # This script is supposed to be executed from the project's top-level directory sys.path.append(os.path.abspath(os.curdir)) from src.utils.io import load_or_create from src.corpus.lang import Lang i...
30.089041
82
0.698156
89ab7da14054cf4a431067013622a1db7ca142cd
218
py
Python
Chapter7/Exercise8.py
NoahNacho/Python-project-tests
38e43f011159232fab29d2bb1be969cb5000e635
[ "MIT" ]
2
2021-07-02T03:07:38.000Z
2021-07-21T14:47:20.000Z
Chapter7/Exercise8.py
NoahNacho/python-solving-problems-examples
38e43f011159232fab29d2bb1be969cb5000e635
[ "MIT" ]
null
null
null
Chapter7/Exercise8.py
NoahNacho/python-solving-problems-examples
38e43f011159232fab29d2bb1be969cb5000e635
[ "MIT" ]
null
null
null
print_mult_table(5)
21.8
32
0.605505
89adb232f0752b63ce120de811bab5e524b68d21
2,136
py
Python
recommender_template.py
jairNeto/ibm-recommender-system
e57493ef28623d187f8431b6c756569fdb3fd0e3
[ "MIT" ]
null
null
null
recommender_template.py
jairNeto/ibm-recommender-system
e57493ef28623d187f8431b6c756569fdb3fd0e3
[ "MIT" ]
null
null
null
recommender_template.py
jairNeto/ibm-recommender-system
e57493ef28623d187f8431b6c756569fdb3fd0e3
[ "MIT" ]
null
null
null
import pandas as pd from recommender_functions import format_df, create_user_item_matrix, \ get_top_articles, user_user_recs_part2, make_content_recs, tokenize
34.451613
76
0.639513
89ae3151e34cd933a8d475aab9fdeb8b89601173
5,910
py
Python
dip.py
chenhsiu48/PytorchWCT
c3346ebaec95358ad1d4d5a519d5d0e7de73bc75
[ "MIT" ]
null
null
null
dip.py
chenhsiu48/PytorchWCT
c3346ebaec95358ad1d4d5a519d5d0e7de73bc75
[ "MIT" ]
null
null
null
dip.py
chenhsiu48/PytorchWCT
c3346ebaec95358ad1d4d5a519d5d0e7de73bc75
[ "MIT" ]
1
2020-12-30T03:28:31.000Z
2020-12-30T03:28:31.000Z
import os from PIL import Image import cv2 import numpy as np from scipy.ndimage import gaussian_filter handler = { 'oil': oil_handler, 'water': water_handler, 'ink': ink_handler, 'pencil': pencil_handler}
29.257426
101
0.654315
89aea7abb874db77f8b63e1a8ce25a8837c79c14
739
py
Python
ifitwala_ed/utilities/transaction_base.py
nbhatti/ifitwala_ed
3e38ebb94c9e7d551b5404344076d6053f2fee21
[ "MIT" ]
null
null
null
ifitwala_ed/utilities/transaction_base.py
nbhatti/ifitwala_ed
3e38ebb94c9e7d551b5404344076d6053f2fee21
[ "MIT" ]
null
null
null
ifitwala_ed/utilities/transaction_base.py
nbhatti/ifitwala_ed
3e38ebb94c9e7d551b5404344076d6053f2fee21
[ "MIT" ]
null
null
null
# Copyright (c) 2021, ifitwala and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe import frappe.share from frappe import _ from frappe.utils import cstr, now_datetime, cint, flt, get_time, get_datetime, get_link_to_form, date_diff, nowdate
29.56
116
0.756428
89af0db8460aec85b4aa8863bfaf4d79688eaa92
20,638
py
Python
mda/app/database.py
5GZORRO/mda
2f3bbb058b3017cf7cd720b9003c4c20155e3163
[ "Apache-2.0" ]
2
2021-03-11T11:08:35.000Z
2022-03-15T14:23:35.000Z
mda/app/database.py
5GZORRO/mda
2f3bbb058b3017cf7cd720b9003c4c20155e3163
[ "Apache-2.0" ]
15
2021-03-05T16:16:26.000Z
2021-10-11T16:42:22.000Z
mda/app/database.py
5GZORRO/mda
2f3bbb058b3017cf7cd720b9003c4c20155e3163
[ "Apache-2.0" ]
3
2021-03-22T05:44:49.000Z
2022-01-13T14:50:47.000Z
from .main import * engine = create_engine('postgresql+psycopg2://' + POSTGRES_USER + ':' + POSTGRES_PASSWORD + '@' + POSTGRES_HOST + ':' + POSTGRES_PORT + '/' + POSTGRES_DB, pool_size=num_fetch_threads+num_fetch_threads_agg, convert_unicode=True) # Create database if it does not exist. if not database_exists(engine.u...
42.728778
416
0.682334
89b1cfef1322d6b2e732c4b840d36971f5ab1c90
1,829
py
Python
src/spaceone/board/manager/post_manager.py
spaceone-dev/board
1733756344240b1498bca85b6e1b88d741425ea0
[ "Apache-2.0" ]
null
null
null
src/spaceone/board/manager/post_manager.py
spaceone-dev/board
1733756344240b1498bca85b6e1b88d741425ea0
[ "Apache-2.0" ]
1
2022-03-23T06:44:15.000Z
2022-03-23T06:52:39.000Z
src/spaceone/board/manager/post_manager.py
spaceone-dev/board
1733756344240b1498bca85b6e1b88d741425ea0
[ "Apache-2.0" ]
1
2022-03-22T08:59:01.000Z
2022-03-22T08:59:01.000Z
import logging from spaceone.core.manager import BaseManager from spaceone.board.model import Post _LOGGER = logging.getLogger(__name__)
29.983607
115
0.645708
89b1f8a6a9a4624639e3d660ae0e8c94693d43c4
117
py
Python
loopsAndFunctions/function.py
Oritsegbubemi/python-backend
bfd2d9c5ed13829317feb64edecf4bf17fc5f937
[ "Apache-2.0" ]
null
null
null
loopsAndFunctions/function.py
Oritsegbubemi/python-backend
bfd2d9c5ed13829317feb64edecf4bf17fc5f937
[ "Apache-2.0" ]
null
null
null
loopsAndFunctions/function.py
Oritsegbubemi/python-backend
bfd2d9c5ed13829317feb64edecf4bf17fc5f937
[ "Apache-2.0" ]
null
null
null
print(textRepeater('Seyi') * 4)
19.5
58
0.700855
89b23d33768aa828cc8feab70ac5533232ecfe68
1,125
py
Python
junction/tickets/migrations/0005_auto_20200322_1904.py
theSage21/junction
ac713edcf56c41eb3f066da776a0a5d24e55b46a
[ "MIT" ]
192
2015-01-12T06:21:24.000Z
2022-03-10T09:57:37.000Z
junction/tickets/migrations/0005_auto_20200322_1904.py
theSage21/junction
ac713edcf56c41eb3f066da776a0a5d24e55b46a
[ "MIT" ]
621
2015-01-01T09:19:17.000Z
2021-05-28T09:27:35.000Z
junction/tickets/migrations/0005_auto_20200322_1904.py
theSage21/junction
ac713edcf56c41eb3f066da776a0a5d24e55b46a
[ "MIT" ]
207
2015-01-05T16:39:06.000Z
2022-02-15T13:18:15.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2020-03-22 13:34 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models
27.439024
51
0.537778
89b2a3595871424dae7d42c0fd9b506509d71eea
410
py
Python
turbulette/apps/base/__init__.py
turbulette/turbulette
32e2d0c18e4dd679a8bf9a3aa72eabe113328015
[ "BSD-3-Clause" ]
31
2020-12-21T23:55:14.000Z
2022-03-04T12:57:10.000Z
turbulette/apps/base/__init__.py
turbulette/turbulette
32e2d0c18e4dd679a8bf9a3aa72eabe113328015
[ "BSD-3-Clause" ]
57
2020-12-06T16:51:06.000Z
2022-02-14T22:10:40.000Z
turbulette/apps/base/__init__.py
gazorby/turbulette
32e2d0c18e4dd679a8bf9a3aa72eabe113328015
[ "BSD-3-Clause" ]
3
2020-09-26T17:26:46.000Z
2020-11-02T22:57:52.000Z
"""Provides GraphQL root types. - `query` - `mutation` - `subscription` And custom scalars : - `datetime_scalar` - `date_scalar` - `json_scalar` !!! info The base app is always loaded, as it should be needed by any other app wanting to bind resolvers to the GraphQL schema. """ from .resolvers.root_types im...
16.4
74
0.685366
89b3d9bc6b5d43822983d256ef5a1dde3cbecc59
97
py
Python
python3/PipeLikeInput.py
christianpopescu/PythonHelper
e6e647075dffeefc1c4375d25a604a2ae80bdd4d
[ "MIT" ]
null
null
null
python3/PipeLikeInput.py
christianpopescu/PythonHelper
e6e647075dffeefc1c4375d25a604a2ae80bdd4d
[ "MIT" ]
null
null
null
python3/PipeLikeInput.py
christianpopescu/PythonHelper
e6e647075dffeefc1c4375d25a604a2ae80bdd4d
[ "MIT" ]
null
null
null
import sys for line in sys.stdin: sys.stdout.write(line) sys.stdout.write("x\n")
16.166667
29
0.618557
89b501b387e90046414f18562a546e79e3957067
2,620
py
Python
mqtt_panel/web/widget/light.py
joseph-tobin/mqtt-panel
df203af5bd5b7e0dd32be1cc5b9deea8400d102a
[ "MIT" ]
null
null
null
mqtt_panel/web/widget/light.py
joseph-tobin/mqtt-panel
df203af5bd5b7e0dd32be1cc5b9deea8400d102a
[ "MIT" ]
null
null
null
mqtt_panel/web/widget/light.py
joseph-tobin/mqtt-panel
df203af5bd5b7e0dd32be1cc5b9deea8400d102a
[ "MIT" ]
null
null
null
import logging from mqtt_panel.web.widget.widget import Widget Widget.register(Light)
29.772727
85
0.516031
89b6dd98d28c57ba3f0ec9763862fdf9de99608d
8,464
py
Python
mqtty/config.py
masayukig/mqtty
7b2439959bb1d308e0cb4f0e98316e8ee8df6aa2
[ "Apache-2.0" ]
null
null
null
mqtty/config.py
masayukig/mqtty
7b2439959bb1d308e0cb4f0e98316e8ee8df6aa2
[ "Apache-2.0" ]
9
2017-08-23T08:34:55.000Z
2017-12-16T13:39:50.000Z
mqtty/config.py
masayukig/mqtty
7b2439959bb1d308e0cb4f0e98316e8ee8df6aa2
[ "Apache-2.0" ]
1
2019-06-04T17:48:15.000Z
2019-06-04T17:48:15.000Z
# Copyright 2014 OpenStack Foundation # Copyright 2014 Hewlett-Packard Development Company, L.P. # # 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/LICENS...
36.32618
79
0.560964
89b75853bd9b72ee4f01dc2003303db7a80ac078
422
py
Python
wafw00f/plugins/viettel.py
84KaliPleXon3/EnableSecurity-wafw00f
7fb9d5c9ddd222377a935724c66977e2e9c97c78
[ "BSD-3-Clause" ]
3,069
2016-05-23T16:08:31.000Z
2022-03-31T16:27:40.000Z
wafw00f/plugins/viettel.py
marcelovff/wafw00f
e3e6147d5d0dbb89030a9902e47170f15e95dd31
[ "BSD-3-Clause" ]
98
2016-06-06T16:43:54.000Z
2022-03-18T12:30:19.000Z
wafw00f/plugins/viettel.py
marcelovff/wafw00f
e3e6147d5d0dbb89030a9902e47170f15e95dd31
[ "BSD-3-Clause" ]
734
2016-05-25T02:17:46.000Z
2022-03-31T11:43:37.000Z
#!/usr/bin/env python ''' Copyright (C) 2020, WAFW00F Developers. See the LICENSE file for copying permission. ''' NAME = 'Viettel (Cloudrity)'
23.444444
63
0.637441
89b77ef30272c6810340d56b530f449b5d7fbb5a
1,458
py
Python
project/com/dao/MedicineDAO.py
soham2512/Agripedia
bc9fd31cb7a080ceccbf4fb6d189b27d398f9e33
[ "MIT" ]
null
null
null
project/com/dao/MedicineDAO.py
soham2512/Agripedia
bc9fd31cb7a080ceccbf4fb6d189b27d398f9e33
[ "MIT" ]
null
null
null
project/com/dao/MedicineDAO.py
soham2512/Agripedia
bc9fd31cb7a080ceccbf4fb6d189b27d398f9e33
[ "MIT" ]
null
null
null
from project import db from project.com.vo.CropTypeVO import CropTypeVO from project.com.vo.CropVO import CropVO from project.com.vo.ImageVO import ImageVO from project.com.vo.MedicineVO import MedicineVO
38.368421
91
0.709191
89b7b256a8fbc4ac824033e18daa6a97bbd3501a
18,182
py
Python
djangoProject1/venv/Lib/site-packages/owlready2/editor.py
meddhafer97/Risk-management-khnowledge-based-system
aba86734801a9e0313071e2c9931295e0da08ed0
[ "MIT" ]
null
null
null
djangoProject1/venv/Lib/site-packages/owlready2/editor.py
meddhafer97/Risk-management-khnowledge-based-system
aba86734801a9e0313071e2c9931295e0da08ed0
[ "MIT" ]
null
null
null
djangoProject1/venv/Lib/site-packages/owlready2/editor.py
meddhafer97/Risk-management-khnowledge-based-system
aba86734801a9e0313071e2c9931295e0da08ed0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Owlready2 # Copyright (C) 2013-2019 Jean-Baptiste LAMY # LIMICS (Laboratoire d'informatique mdicale et d'ingnierie des connaissances en sant), UMR_S 1142 # University Paris 13, Sorbonne paris-Cit, Bobigny, France # This program is free software: you can redistribute it and/or modify # it unde...
47.103627
183
0.702948
89b8b28842383544b2dc122f5e744290238f974d
51
py
Python
tests/__init__.py
drinksober/django-impala-backend
8d8d44211905dd92a721acc9c3e24dd743ae6d75
[ "MIT" ]
1
2020-09-02T08:36:41.000Z
2020-09-02T08:36:41.000Z
tests/__init__.py
me-drinks/django-impala-backend
8d8d44211905dd92a721acc9c3e24dd743ae6d75
[ "MIT" ]
null
null
null
tests/__init__.py
me-drinks/django-impala-backend
8d8d44211905dd92a721acc9c3e24dd743ae6d75
[ "MIT" ]
null
null
null
"""Unit test package for django_impala_backend."""
25.5
50
0.764706
89ba5ce833b0a601793d4f7d9acdb30891d0b377
240
py
Python
hybrid_markov/test.py
pengyuan/markov2tensor
4bcdcba6273dc7b671d81953da934188135dbca3
[ "MIT" ]
1
2018-03-20T08:28:25.000Z
2018-03-20T08:28:25.000Z
hybrid_markov/test.py
pengyuan/markov2tensor
4bcdcba6273dc7b671d81953da934188135dbca3
[ "MIT" ]
null
null
null
hybrid_markov/test.py
pengyuan/markov2tensor
4bcdcba6273dc7b671d81953da934188135dbca3
[ "MIT" ]
2
2015-12-16T07:21:15.000Z
2018-03-20T08:28:27.000Z
#!/usr/bin/env python # coding: UTF-8 from pymatbridge import Matlab mlab = Matlab(executable='/Applications/MATLAB_R2014a.app/bin/matlab') mlab.start() results = mlab.run_code('a=1;') var = mlab.get_variable('a') print var mlab.stop()
17.142857
70
0.729167
89bbd494317a7f8427b80bab008bf35ed4c4ea9c
347
py
Python
config/database.py
amin-gholizad/todolist
375d54ea74de5d0cc03bd7ecaf898c2d39b386bd
[ "MIT" ]
null
null
null
config/database.py
amin-gholizad/todolist
375d54ea74de5d0cc03bd7ecaf898c2d39b386bd
[ "MIT" ]
null
null
null
config/database.py
amin-gholizad/todolist
375d54ea74de5d0cc03bd7ecaf898c2d39b386bd
[ "MIT" ]
null
null
null
from fastapi import FastAPI from tortoise.contrib.fastapi import register_tortoise from models.base import model_list from config.secrets import db_url
23.133333
54
0.731988
89bcbdc18d626d05c6643c94a638ed633b84861b
7,965
py
Python
bitfeeds/exchange.py
bopo/bitfeeds
bc525386418061aa4cac11852b1cf28d3b29dea3
[ "Apache-2.0" ]
1
2018-02-25T04:27:07.000Z
2018-02-25T04:27:07.000Z
bitfeeds/exchange.py
bopo/bitfeeds
bc525386418061aa4cac11852b1cf28d3b29dea3
[ "Apache-2.0" ]
null
null
null
bitfeeds/exchange.py
bopo/bitfeeds
bc525386418061aa4cac11852b1cf28d3b29dea3
[ "Apache-2.0" ]
null
null
null
#!/bin/python from bitfeeds.storage.zeromq import ZmqStorage from bitfeeds.storage.file import FileStorage from bitfeeds.market import L2Depth, Trade, Snapshot from datetime import datetime from threading import Lock def start(self, instmt): """ Start the exchange gateway :param instmt: I...
44.005525
137
0.473572
89be4dfeca24b0b7fe4dc1175ac5c5f0f9c555c3
467
py
Python
utilities/simulator/virtual_sensor.py
gauravmm/Remote-Temperature-Monitor
e3695a44dc30e5c013871e303ae8f6fdf481bf04
[ "MIT" ]
null
null
null
utilities/simulator/virtual_sensor.py
gauravmm/Remote-Temperature-Monitor
e3695a44dc30e5c013871e303ae8f6fdf481bf04
[ "MIT" ]
null
null
null
utilities/simulator/virtual_sensor.py
gauravmm/Remote-Temperature-Monitor
e3695a44dc30e5c013871e303ae8f6fdf481bf04
[ "MIT" ]
null
null
null
import serial import math import numpy as np import time with serial.Serial("COM15", 9600) as ser: period = 120; while True: for x in np.arange(1, 2*math.pi, 2*math.pi/period): s = "%.1f\n\n" % (math.sin(x) * 80 + 100); print s; ser.write(s); ...
24.578947
60
0.479657
981f440bf776ae3b4ce703b0a1e6144d61b2992a
831
py
Python
summary/models.py
suesuhyoonjin/kkp
0918cd3cc33be33744c30d7820712841d7a12cb5
[ "MIT" ]
1
2020-11-07T02:27:46.000Z
2020-11-07T02:27:46.000Z
summary/models.py
suesuhyoonjin/kkp
0918cd3cc33be33744c30d7820712841d7a12cb5
[ "MIT" ]
null
null
null
summary/models.py
suesuhyoonjin/kkp
0918cd3cc33be33744c30d7820712841d7a12cb5
[ "MIT" ]
null
null
null
from django.db import models from django.utils import timezone
36.130435
69
0.696751
981fabdb0ce384e116d81de9570573bc722147f3
6,468
py
Python
test/func_test.py
estheruary/dynomite-deb
601367cfb6b298a1d460ba5891e8254edf974686
[ "Apache-2.0" ]
null
null
null
test/func_test.py
estheruary/dynomite-deb
601367cfb6b298a1d460ba5891e8254edf974686
[ "Apache-2.0" ]
null
null
null
test/func_test.py
estheruary/dynomite-deb
601367cfb6b298a1d460ba5891e8254edf974686
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import redis import argparse import random import string import sys import time from utils import string_generator, number_generator from dyno_node import DynoNode from redis_node import RedisNode from dyno_cluster import DynoCluster from dual_run import dual_run, ResultMismatchError if __name...
32.34
87
0.649505
9820ddd02fc57ce99f82b5e80b5558efc6e3e333
7,212
py
Python
frontend/pages/admin_portal/download_data.py
zagaran/instant-census
62dd5bbc62939f43776a10708ef663722ead98af
[ "MIT" ]
1
2021-06-01T17:03:47.000Z
2021-06-01T17:03:47.000Z
frontend/pages/admin_portal/download_data.py
zagaran/instant-census
62dd5bbc62939f43776a10708ef663722ead98af
[ "MIT" ]
null
null
null
frontend/pages/admin_portal/download_data.py
zagaran/instant-census
62dd5bbc62939f43776a10708ef663722ead98af
[ "MIT" ]
null
null
null
import time import zipfile from io import BytesIO from flask import Blueprint, send_file, request from mongolia import ID_KEY from backend.admin_portal.common_helpers import validate_cohort, validate_user, raise_404_error from backend.admin_portal.download_data_helpers import (generate_messages_csv, gene...
49.737931
160
0.707571
98211d0bec5a62e16e0f6aca7fb7de15284eb727
4,819
py
Python
security_monkey/watchers/vpc/subnet.py
bungoume/security_monkey
90c02638a315c78535869ab71a8859d17e011a6a
[ "Apache-2.0" ]
null
null
null
security_monkey/watchers/vpc/subnet.py
bungoume/security_monkey
90c02638a315c78535869ab71a8859d17e011a6a
[ "Apache-2.0" ]
1
2021-03-26T00:43:03.000Z
2021-03-26T00:43:03.000Z
security_monkey/watchers/vpc/subnet.py
cxmcc/security_monkey
ae4c4b5b278505a97f0513f5ae44db3eb23c175c
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Netflix, 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...
39.826446
110
0.566923
98239f7c5579754d650e0fc77e6f345a387dabfe
715
py
Python
review-sentiment/sentiment-backend/tests/test_api.py
aldeeb/xai-demonstrator
45b600bd326923a21dc2c6e2659b58ab3c7b9bd4
[ "Apache-2.0" ]
8
2021-05-03T13:05:49.000Z
2022-01-11T02:57:33.000Z
review-sentiment/sentiment-backend/tests/test_api.py
aldeeb/xai-demonstrator
45b600bd326923a21dc2c6e2659b58ab3c7b9bd4
[ "Apache-2.0" ]
467
2021-01-22T16:58:56.000Z
2022-03-28T11:15:09.000Z
review-sentiment/sentiment-backend/tests/test_api.py
aldeeb/xai-demonstrator
45b600bd326923a21dc2c6e2659b58ab3c7b9bd4
[ "Apache-2.0" ]
8
2021-05-25T16:10:18.000Z
2022-02-28T13:21:31.000Z
import pytest from sentiment import api
29.791667
66
0.562238
982716784cfedb3163df81545e6a24d0137dcca9
85
py
Python
socceraction/atomic/__init__.py
pientist/socceraction
7f8e666ee5da7c1890c72a2c72042d4c73b90fda
[ "MIT" ]
371
2019-07-25T07:35:00.000Z
2022-03-25T11:13:56.000Z
socceraction/atomic/__init__.py
pientist/socceraction
7f8e666ee5da7c1890c72a2c72042d4c73b90fda
[ "MIT" ]
145
2019-08-29T12:49:55.000Z
2022-03-31T09:35:05.000Z
socceraction/atomic/__init__.py
denisov-vlad/socceraction
0b03bc230bebb7e830d65aa231d961b879b828fb
[ "MIT" ]
101
2019-08-20T21:07:34.000Z
2022-03-26T10:00:00.000Z
# -*- coding: utf-8 -*- """Implements Atomic-SPADL and the Atomic-VAEP framework."""
28.333333
60
0.658824
9828ac6d8a360aa1bdc1678784f726c48d1506dc
1,199
py
Python
ckanext/nhm/lib/resource_view.py
pribadihcr/ckanext-nhm
8b01a0294a809fde491094cb6928b57fee90a9a6
[ "MIT" ]
18
2015-07-05T23:27:37.000Z
2021-11-25T06:54:50.000Z
ckanext/nhm/lib/resource_view.py
pribadihcr/ckanext-nhm
8b01a0294a809fde491094cb6928b57fee90a9a6
[ "MIT" ]
285
2015-01-08T14:36:06.000Z
2022-03-23T14:45:53.000Z
ckanext/nhm/lib/resource_view.py
pribadihcr/ckanext-nhm
8b01a0294a809fde491094cb6928b57fee90a9a6
[ "MIT" ]
1
2021-07-11T11:28:18.000Z
2021-07-11T11:28:18.000Z
# !/usr/bin/env python # encoding: utf-8 # # This file is part of ckanext-nhm # Created by the Natural History Museum in London, UK import ckanext.nhm.views as nhm_views def resource_view_get_view(resource): '''Retrieve the controller for a resource. Try and match on resource ID, or on format so we can provi...
26.065217
82
0.694746
9828b45924c30d21484d0de726dd951478e26894
1,157
py
Python
tests/queues_test.py
Cormen-Lib-Developers/Cormen-Lib
7877f1180cb76b56c909b70a35d85af8a83e530a
[ "MIT" ]
8
2022-01-24T00:34:59.000Z
2022-03-15T01:34:51.000Z
tests/queues_test.py
Cormen-Lib-Developers/Cormen-Lib
7877f1180cb76b56c909b70a35d85af8a83e530a
[ "MIT" ]
8
2022-02-09T22:07:35.000Z
2022-03-17T16:23:08.000Z
tests/queues_test.py
Cormen-Lib-Developers/Cormen-Lib
7877f1180cb76b56c909b70a35d85af8a83e530a
[ "MIT" ]
null
null
null
import unittest from dalpy.queues import Queue, QueueUnderflowError if __name__ == '__main__': unittest.main()
26.295455
67
0.581677
9829d3ad257c08e3dc462e67d577f5f1b8009c27
1,138
py
Python
tests/test_parsers/test_markdown.py
mjpieters/flakehell
56b2ac7f9a2895546ac742b7bfa70babe2730971
[ "MIT" ]
1
2020-08-30T10:58:20.000Z
2020-08-30T10:58:20.000Z
tests/test_parsers/test_markdown.py
mjpieters/flakehell
56b2ac7f9a2895546ac742b7bfa70babe2730971
[ "MIT" ]
6
2020-08-30T10:58:32.000Z
2020-08-30T11:11:13.000Z
tests/test_parsers/test_markdown.py
mjpieters/flakehell
56b2ac7f9a2895546ac742b7bfa70babe2730971
[ "MIT" ]
null
null
null
import ast from pathlib import Path from flakehell.parsers import MarkdownParser GIVEN = """ # Example This is example of markdown file ```python a = 1 print('oh hi mark') ``` Emphasized: ```python hl_lines="1" emphasized_imaginary_function() ``` PyCon: ```pycon >>> print("Hello") 'Hello' >>> banana = "banana" ...
13.547619
49
0.625659
9829ebb5e417a18b7799bdd5ca28cb967d50275a
4,298
py
Python
redcap_bridge/test_redcap/test_server_interface.py
killianrochet/DigLabTools
e015a80b0668f94d1c7c0f91e55afb6fb50787e1
[ "MIT" ]
2
2021-11-02T09:26:20.000Z
2021-12-06T10:45:01.000Z
redcap_bridge/test_redcap/test_server_interface.py
killianrochet/DigLabTools
e015a80b0668f94d1c7c0f91e55afb6fb50787e1
[ "MIT" ]
28
2021-04-10T17:09:01.000Z
2022-03-22T13:49:15.000Z
redcap_bridge/test_redcap/test_server_interface.py
killianrochet/DigLabTools
e015a80b0668f94d1c7c0f91e55afb6fb50787e1
[ "MIT" ]
2
2021-04-12T11:28:14.000Z
2021-04-13T10:39:51.000Z
import json import pandas as pd import pytest import redcap from redcap_bridge.server_interface import (upload_datadict, download_records, download_datadict) from redcap_bridge.test_redcap.test_utils import (test_directory, ...
38.720721
86
0.683574
982ad0f9ccac820b137e7234becb236db7c159ad
961
py
Python
git_analyzers/gituser.py
Telefonica/packagedna
3b3a18c95d651d85095438de5e9084cc21567865
[ "MIT" ]
52
2021-08-06T15:17:33.000Z
2022-02-03T13:45:44.000Z
git_analyzers/gituser.py
bruno-rodrigues-bitsight/packagedna
3b3a18c95d651d85095438de5e9084cc21567865
[ "MIT" ]
1
2021-08-23T09:15:33.000Z
2021-11-08T11:31:55.000Z
git_analyzers/gituser.py
bruno-rodrigues-bitsight/packagedna
3b3a18c95d651d85095438de5e9084cc21567865
[ "MIT" ]
11
2021-08-08T04:16:12.000Z
2021-11-09T05:36:15.000Z
#!/usr/bin/env python3 # Detect repos of user en GIT # %%%%%%%%%%% Libraries %%%%%%%%%%%# import json import urllib.request from auxiliar_functions.globals import url_git_user # %%%%%%%%%%% Functions %%%%%%%%%%%#
25.289474
78
0.532778
982afcb70f3962008c7930849e69e44a06c6f4d3
57
py
Python
app/__init__.py
martyni/jenkins_test
5e941d025531f6c3d2eaab99433a35b4d3561dfd
[ "MIT" ]
null
null
null
app/__init__.py
martyni/jenkins_test
5e941d025531f6c3d2eaab99433a35b4d3561dfd
[ "MIT" ]
null
null
null
app/__init__.py
martyni/jenkins_test
5e941d025531f6c3d2eaab99433a35b4d3561dfd
[ "MIT" ]
null
null
null
__version__="v.0.0.1"
14.25
22
0.596491
982b583404e17569522eb8d5cb12cb7330c30af5
132
py
Python
platform/msb430/buildscripts/jtag/pyjtag/setup.py
s3lsensor/CEE155_SensorDeployLab_b
ad2d9ccf13ecfacb0a73115548fccfee3120f2a1
[ "Apache-2.0" ]
5
2016-05-20T10:40:23.000Z
2019-11-04T20:46:58.000Z
platform/msb430/buildscripts/jtag/pyjtag/setup.py
s3lsensor/CEE155_SensorDeployLab_b
ad2d9ccf13ecfacb0a73115548fccfee3120f2a1
[ "Apache-2.0" ]
6
2016-02-18T22:29:26.000Z
2016-02-18T22:31:54.000Z
platform/msb430/buildscripts/jtag/pyjtag/setup.py
s3lsensor/CEE155_SensorDeployLab_b
ad2d9ccf13ecfacb0a73115548fccfee3120f2a1
[ "Apache-2.0" ]
7
2015-11-24T23:09:12.000Z
2022-02-18T07:56:02.000Z
# setup.py from distutils.core import setup import glob import py2exe setup( name="msp430-jtag", scripts=["jtag.py"], )
14.666667
32
0.674242
982b798bc343755a3272085df113ecba5567376b
687
py
Python
tests/test_utils.py
capybala/find-ebook-edition-backend
0321ae8c883fdc241553ad16abf0db9d47eb278d
[ "MIT" ]
null
null
null
tests/test_utils.py
capybala/find-ebook-edition-backend
0321ae8c883fdc241553ad16abf0db9d47eb278d
[ "MIT" ]
null
null
null
tests/test_utils.py
capybala/find-ebook-edition-backend
0321ae8c883fdc241553ad16abf0db9d47eb278d
[ "MIT" ]
null
null
null
from unittest import TestCase from utils import to_bytes, to_str
36.157895
86
0.58952
982c08be97b8ab5fb5bcf91b48cfeba930557c31
1,723
py
Python
alipay/aop/api/response/AlipayTradeBatchTransferQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/AlipayTradeBatchTransferQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/AlipayTradeBatchTransferQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse from alipay.aop.api.domain.BatchRoyaltyDetail import BatchRoyaltyDetail
32.509434
110
0.676146
982c4d2462efaa8078e7d8cc19486e7b382ca3e9
9,418
py
Python
barcodes/views.py
bihealth/digestiflow-server
298c53f95dbf56e7be0d0b8bcceacabc21257d5f
[ "MIT" ]
13
2019-11-27T19:12:15.000Z
2021-12-01T21:32:18.000Z
barcodes/views.py
bihealth/digestiflow-server
298c53f95dbf56e7be0d0b8bcceacabc21257d5f
[ "MIT" ]
60
2019-03-27T14:43:19.000Z
2022-03-22T09:12:53.000Z
barcodes/views.py
bihealth/digestiflow-server
298c53f95dbf56e7be0d0b8bcceacabc21257d5f
[ "MIT" ]
3
2020-11-09T07:08:42.000Z
2022-02-09T11:37:54.000Z
"""The views for the barcodes app.""" import json from django.contrib.auth.mixins import LoginRequiredMixin from django.contrib import messages from django.contrib.messages.views import SuccessMessageMixin from django.db import transaction from django.db.models import ProtectedError from django.shortcuts import rever...
36.223077
108
0.621151
982ee8da8c5f2de58352f5bf4f00e71e8a1a90b0
857
py
Python
src/chapter 2/exercise 7.py
group5BCS1/BCS-2021
696b53bdfc46799b4a527604fbd6cd6cfb3982eb
[ "MIT" ]
null
null
null
src/chapter 2/exercise 7.py
group5BCS1/BCS-2021
696b53bdfc46799b4a527604fbd6cd6cfb3982eb
[ "MIT" ]
null
null
null
src/chapter 2/exercise 7.py
group5BCS1/BCS-2021
696b53bdfc46799b4a527604fbd6cd6cfb3982eb
[ "MIT" ]
null
null
null
dollars = float(input("Enter amount to change in dollars :")) # 20 dollar notes num1 = dollars//20 # remainder after 20 num2 = dollars%20 # notes by 10 num3 = num2//10 # remainder after 10 num4 = num2%10 # notes by 5 dollar num5 = num4//5 # remainder after 5 dollars num6 = num4%5 # notes by 1 dollar num7 = num6//1 #rem...
20.902439
61
0.705951
983092fd7cd3bc6824b23f7203f539b42bec1abe
713
py
Python
ULA/testeULA.py
RicardoFedrigo/ULA_PYTHON
23c746b2076cf2bc637aa34330e54db49d7a8554
[ "MIT" ]
null
null
null
ULA/testeULA.py
RicardoFedrigo/ULA_PYTHON
23c746b2076cf2bc637aa34330e54db49d7a8554
[ "MIT" ]
null
null
null
ULA/testeULA.py
RicardoFedrigo/ULA_PYTHON
23c746b2076cf2bc637aa34330e54db49d7a8554
[ "MIT" ]
null
null
null
from ula import Ula ula=Ula(4) A = [1,0,0,0,1,0,0,1] B = [1,0,0,0,1,0,0,1] C = [1,1,1,1,1,1,1,1] ula.setA(A) ula.setB(B) ula.setInstrucao([0,0,0,1]) ula.selecao() print(ula.getSaida()) ula.setInstrucao([0,0,1,0]) ula.selecao() print(ula.getSaida()) ula.setInstrucao([0,0,1,1]) ula.selecao() print(ula.getSaida()) ...
13.980392
27
0.660589
9831311007b8bf4c390cc44301f62f55d2e750be
12,902
py
Python
wagtailorderable/modeladmin/mixins.py
kausaltech/wagtail-orderable
72ca5835b9aa83e02cb7eb564a4517fac2273c28
[ "MIT" ]
null
null
null
wagtailorderable/modeladmin/mixins.py
kausaltech/wagtail-orderable
72ca5835b9aa83e02cb7eb564a4517fac2273c28
[ "MIT" ]
null
null
null
wagtailorderable/modeladmin/mixins.py
kausaltech/wagtail-orderable
72ca5835b9aa83e02cb7eb564a4517fac2273c28
[ "MIT" ]
null
null
null
from django.conf.urls import url from django.core.exceptions import FieldDoesNotExist, ImproperlyConfigured, PermissionDenied from django.db import connections, transaction from django.db.models import F, Count from django.db.models.expressions import Case, Value, When from django.db.models.functions import Cast from d...
45.111888
99
0.634553
9833ab5177863126b1d352268f98e263bfeed2b3
4,875
py
Python
train.py
ahrnbom/guts
9134e7f6568a24b435841e5934a640bdbe329a68
[ "MIT" ]
null
null
null
train.py
ahrnbom/guts
9134e7f6568a24b435841e5934a640bdbe329a68
[ "MIT" ]
null
null
null
train.py
ahrnbom/guts
9134e7f6568a24b435841e5934a640bdbe329a68
[ "MIT" ]
null
null
null
""" Copyright (C) 2022 Martin Ahrnbom Released under MIT License. See the file LICENSE for details. General script for training a CNN in PyTorch """ from typing import List import torch from torch import optim import numpy as np from datetime import datetime from plot import multi_plot from u...
35.583942
80
0.537846
9834c4b6e694746ce6bd6fb10e5fcbdc3c27ff60
1,179
py
Python
Communication/Mqtt/MqttPublish.py
landbroken/python-learning
48351f8e1990ca6823fdcb1ac71574542167fb11
[ "MIT" ]
1
2018-07-13T07:46:59.000Z
2018-07-13T07:46:59.000Z
Communication/Mqtt/MqttPublish.py
landbroken/python-learning
48351f8e1990ca6823fdcb1ac71574542167fb11
[ "MIT" ]
null
null
null
Communication/Mqtt/MqttPublish.py
landbroken/python-learning
48351f8e1990ca6823fdcb1ac71574542167fb11
[ "MIT" ]
1
2018-07-13T03:21:02.000Z
2018-07-13T03:21:02.000Z
# import paho.mqtt.client as mqtt import paho.mqtt.publish as publish import time HOST = "127.0.0.1" PORT = 8222 if __name__ == '__main__': client_id = time.strftime('%Y%m%d%H%M%S', time.localtime(time.time())) # client = mqtt.Client(client_id) # ClientId # client.username_pw_set("admin", "123456") ...
32.75
91
0.597964
98350a26a814c2d0a64a7520f06048d7bfb761fc
476
py
Python
leetcode/020/20.py
shankar-shiv/CS1010E_Kattis_practice
9a8597b7ab61d5afa108a8b943ca2bb3603180c6
[ "MIT" ]
null
null
null
leetcode/020/20.py
shankar-shiv/CS1010E_Kattis_practice
9a8597b7ab61d5afa108a8b943ca2bb3603180c6
[ "MIT" ]
null
null
null
leetcode/020/20.py
shankar-shiv/CS1010E_Kattis_practice
9a8597b7ab61d5afa108a8b943ca2bb3603180c6
[ "MIT" ]
null
null
null
s = Solution() print(s.isValid("()[]{}"))
25.052632
57
0.386555
98351c2147ed07a632f10bfd99940c5816becbe4
339
py
Python
alyBlog/apps/course/urls.py
Hx-someone/aly-blog
e0205777d2ff1642fde5741a5b5c1b06ad675001
[ "WTFPL" ]
1
2020-04-17T02:15:45.000Z
2020-04-17T02:15:45.000Z
alyBlog/apps/course/urls.py
Hx-someone/aly-blog
e0205777d2ff1642fde5741a5b5c1b06ad675001
[ "WTFPL" ]
null
null
null
alyBlog/apps/course/urls.py
Hx-someone/aly-blog
e0205777d2ff1642fde5741a5b5c1b06ad675001
[ "WTFPL" ]
null
null
null
# -*- coding: utf-8 -*- """ @Time : 2020/3/4 13:58 @Author : @File : urls.py """ from django.urls import path from course import views app_name = "course" urlpatterns = [ path("index/", views.CourseIndexView.as_view(), name="index"), path("<int:course_id>/", views.CourseDetailView.as_view(), name="co...
21.1875
85
0.646018
98359bcafb43958d81e407a2ccbc55ca959dfeb4
10,932
py
Python
XlsxTools/xls2json/Tools/xls2json.py
maplelearC/Unity3DTraining
3824d5f92c5fce5cbd8806feb1852e9a99e4a711
[ "MIT" ]
3,914
2017-01-20T04:55:53.000Z
2022-03-31T18:06:12.000Z
XlsxTools/xls2json/Tools/xls2json.py
maplelearC/Unity3DTraining
3824d5f92c5fce5cbd8806feb1852e9a99e4a711
[ "MIT" ]
5
2019-12-17T05:27:58.000Z
2022-01-20T11:55:33.000Z
XlsxTools/xls2json/Tools/xls2json.py
maplelearC/Unity3DTraining
3824d5f92c5fce5cbd8806feb1852e9a99e4a711
[ "MIT" ]
1,263
2017-01-15T09:54:44.000Z
2022-03-31T14:59:11.000Z
# -*- coding: utf-8 -*- import os,sys,importlib import xml.etree.ElementTree as ET import xdrlib,xlrd # importlib.reload(sys) # CONFIG_NAME = "config.ini" # SAVE_FILE_TYPE = ".json" # SAVE_MAPPING_TYPE = ".cs" # SPLIT_CAHR = "" # XLS_PATH = "" # XML_PATH = "" # OUT_PATH = "" # MAP_PATH = "" # MAPPING_CONTENT = "" ...
36.198675
171
0.608214
9835c7cc4a39384752be9935949cb467e753607d
3,318
py
Python
tests.py
kylefox/openmerch
eee28c67789fcc053031a1e15addf366316e8590
[ "BSD-3-Clause" ]
1
2016-05-08T18:18:53.000Z
2016-05-08T18:18:53.000Z
tests.py
kylefox/openmerch
eee28c67789fcc053031a1e15addf366316e8590
[ "BSD-3-Clause" ]
1
2021-02-05T02:55:02.000Z
2021-02-05T02:59:45.000Z
tests.py
kylefox/openmerch
eee28c67789fcc053031a1e15addf366316e8590
[ "BSD-3-Clause" ]
1
2021-07-13T07:16:05.000Z
2021-07-13T07:16:05.000Z
from gateways.authorizenet import AuthorizeNet from creditcard import CreditCard from datetime import datetime LOGIN = '' PASSWORD = '' #integration tests if __name__ == '__main__': sub_id = subscribe() update_subscription(sub_id) cancel_subscription(sub_id)
22.418919
64
0.566004
983645ba8bb0cbefb83e179f06ceca1eabb1c5e8
393
py
Python
Class 12/12th - Project/using yield giving primes.py
edwardmasih/Python-School-Level
545e8fcd87f540be2bbf01d3493bd84dd5504739
[ "MIT" ]
null
null
null
Class 12/12th - Project/using yield giving primes.py
edwardmasih/Python-School-Level
545e8fcd87f540be2bbf01d3493bd84dd5504739
[ "MIT" ]
null
null
null
Class 12/12th - Project/using yield giving primes.py
edwardmasih/Python-School-Level
545e8fcd87f540be2bbf01d3493bd84dd5504739
[ "MIT" ]
null
null
null
n=int(input("Enter the number upto which you want the prime numbers => ")) print print ("The List of Prime Nubmber :-") x=prime(n) for i in range(n): print (x.next())
20.684211
75
0.445293
9837bcd5e661ac2fc2610832a9e2f5b9c2137ebd
3,117
py
Python
tests/test_scenario/test_follow_my_commit.py
magnusbaeck/eiffel-graphql-api
c0cd0dc3fdad7787988599974ace2a4cebf70844
[ "Apache-2.0" ]
null
null
null
tests/test_scenario/test_follow_my_commit.py
magnusbaeck/eiffel-graphql-api
c0cd0dc3fdad7787988599974ace2a4cebf70844
[ "Apache-2.0" ]
null
null
null
tests/test_scenario/test_follow_my_commit.py
magnusbaeck/eiffel-graphql-api
c0cd0dc3fdad7787988599974ace2a4cebf70844
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Axis Communications AB. # # For a full list of individual contributors, please see the commit history. # # 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.apac...
37.554217
108
0.686878
98381c463f46171f1ce8608a5ff47f13ed8e7cd4
27,628
py
Python
drupal/Drupal.py
EmlynK/deployments
18c6f3de73af36dd7ed95d4ef3bf844765e74fa3
[ "MIT" ]
null
null
null
drupal/Drupal.py
EmlynK/deployments
18c6f3de73af36dd7ed95d4ef3bf844765e74fa3
[ "MIT" ]
null
null
null
drupal/Drupal.py
EmlynK/deployments
18c6f3de73af36dd7ed95d4ef3bf844765e74fa3
[ "MIT" ]
null
null
null
from fabric.api import * from fabric.contrib.files import * import random import string import common.ConfigFile import common.Services import common.Utils import Revert # Set the default maintenance/readonly method # Config the config_export hook def configure_config_export(config): if config.has_section("Hooks...
53.028791
229
0.67837
9839fd79b37a51ec886ce8d16a51e8fa84a12dda
1,012
py
Python
halfplane.py
christiankuhl/VortexDynamics
97b96a6231aacb3d0f1e74fda52457bafb833964
[ "MIT" ]
null
null
null
halfplane.py
christiankuhl/VortexDynamics
97b96a6231aacb3d0f1e74fda52457bafb833964
[ "MIT" ]
null
null
null
halfplane.py
christiankuhl/VortexDynamics
97b96a6231aacb3d0f1e74fda52457bafb833964
[ "MIT" ]
null
null
null
""" This module implements the N-vortex dynamics for the half plane. Insert code here as if it were inside a class definition statement """ import numpy as np def JGradG(self, z1, z2): """ JGradG(z1, z2) is the product of the 2d symplectic matrix J with the gradient with respect to the first variable of t...
30.666667
81
0.613636
983ae88806b05eed4c4e4a551d138fce15302291
6,929
py
Python
ultracart/models/email_segment_customers_response.py
UltraCart/rest_api_v2_sdk_python
d734ea13fabc7a57872ff68bac06861edb8fd882
[ "Apache-2.0" ]
1
2018-03-15T16:56:23.000Z
2018-03-15T16:56:23.000Z
ultracart/models/email_segment_customers_response.py
UltraCart/rest_api_v2_sdk_python
d734ea13fabc7a57872ff68bac06861edb8fd882
[ "Apache-2.0" ]
null
null
null
ultracart/models/email_segment_customers_response.py
UltraCart/rest_api_v2_sdk_python
d734ea13fabc7a57872ff68bac06861edb8fd882
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ UltraCart Rest API V2 UltraCart REST API Version 2 # noqa: E501 OpenAPI spec version: 2.0.0 Contact: support@ultracart.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six def to_str(self): ...
30.126087
127
0.613508
983be58bb63dc7b647ea00d07052aed03e33357c
225
py
Python
Mundo 1/desafios/desafio003_soma de dois numeros.py
marioarl/python
0bd677cdbec87e9603866c09cb8009fef295b89b
[ "MIT" ]
1
2021-11-21T21:04:04.000Z
2021-11-21T21:04:04.000Z
Mundo 1/desafios/desafio003_soma de dois numeros.py
marioarl/python
0bd677cdbec87e9603866c09cb8009fef295b89b
[ "MIT" ]
null
null
null
Mundo 1/desafios/desafio003_soma de dois numeros.py
marioarl/python
0bd677cdbec87e9603866c09cb8009fef295b89b
[ "MIT" ]
null
null
null
print('\033[1;35m#\033[m'*10, '\033[1;30;46mDESAFIO 03\033[m', '\033[1;35m#\033[m'*10) n1 = int(input('\033[1;33mPrimeiro numero:\033[m ')) n2 = int(input('\033[1;36mSegundo numero:\033[m ')) r = n1 + n2 print('A soma ', r)
37.5
86
0.617778
983c81777a4b29030eb8774ec012a2f1391416a7
793
py
Python
editBot/todo/views.py
KApilBD/python
9b5c11418c396fcdb10d9615d5d28c3ccdea7b14
[ "MIT" ]
null
null
null
editBot/todo/views.py
KApilBD/python
9b5c11418c396fcdb10d9615d5d28c3ccdea7b14
[ "MIT" ]
null
null
null
editBot/todo/views.py
KApilBD/python
9b5c11418c396fcdb10d9615d5d28c3ccdea7b14
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from .models import TodoItem
31.72
63
0.699874
983d36fb52bfd8dc267daed6bd1722f87ca8c9d7
2,852
py
Python
gameProj/gameApp/views.py
cs-fullstack-2019-spring/django-mini-project4-chelsea-porche
54b73e89c67c5cf2ada57e529e982ffd291fc314
[ "Apache-2.0" ]
null
null
null
gameProj/gameApp/views.py
cs-fullstack-2019-spring/django-mini-project4-chelsea-porche
54b73e89c67c5cf2ada57e529e982ffd291fc314
[ "Apache-2.0" ]
null
null
null
gameProj/gameApp/views.py
cs-fullstack-2019-spring/django-mini-project4-chelsea-porche
54b73e89c67c5cf2ada57e529e982ffd291fc314
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render, redirect, get_object_or_404 from django.contrib.auth.decorators import login_required from django.http import HttpResponse from .models import Game, Person from .forms import NewUserForm, NewGameForm from django.contrib.auth.models import User # Create your views here. # TO REQUI...
32.044944
110
0.680926
983feb73273a2249b6440b588403dab50f5f78f8
676
py
Python
migrations/versions/2c64078d1aff_.py
Alhuin/playlist-handler
99b008ec8d9f4f2163266af19ad2ece478b0b172
[ "MIT" ]
null
null
null
migrations/versions/2c64078d1aff_.py
Alhuin/playlist-handler
99b008ec8d9f4f2163266af19ad2ece478b0b172
[ "MIT" ]
null
null
null
migrations/versions/2c64078d1aff_.py
Alhuin/playlist-handler
99b008ec8d9f4f2163266af19ad2ece478b0b172
[ "MIT" ]
null
null
null
"""empty message Revision ID: 2c64078d1aff Revises: 635e91180d41 Create Date: 2021-03-04 20:03:25.441608 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '2c64078d1aff' down_revision = '635e91180d41' branch_labels = None depends_on = None
23.310345
94
0.699704
9841245f738118e4913e7d61e4e18f45d42f104e
2,115
py
Python
runs/kubernetes/start_haproxy_cfg.py
Ruilkyu/kubernetes_start
9e88a7f1c64899454af8f9be1dd9653ba435e21f
[ "Apache-2.0" ]
2
2020-07-24T14:19:57.000Z
2020-08-10T18:30:08.000Z
runs/kubernetes/start_haproxy_cfg.py
Ruilkyu/kubernetes_start
9e88a7f1c64899454af8f9be1dd9653ba435e21f
[ "Apache-2.0" ]
null
null
null
runs/kubernetes/start_haproxy_cfg.py
Ruilkyu/kubernetes_start
9e88a7f1c64899454af8f9be1dd9653ba435e21f
[ "Apache-2.0" ]
1
2021-07-09T10:29:11.000Z
2021-07-09T10:29:11.000Z
""" 2020/6/13 lurui haprocyhaproxy.cfg 2020/6/16 lurui master.txtconfig.ini 2020/6/17 lurui basedir = os.path.dirname(os.path.dirname(os.getcwd())) basedir = os.path.abspath('.') """ import os import configparser # start_haproxy_cfg()
27.467532
101
0.628369
984150f5c2ce37c60a6c7646551282b4404a706e
3,025
py
Python
app/server/database.py
situkangsayur/async-fastapi-mongo
2ee9dcb87687bcf5e3eba5cdb4ec49573d6c1f16
[ "MIT" ]
null
null
null
app/server/database.py
situkangsayur/async-fastapi-mongo
2ee9dcb87687bcf5e3eba5cdb4ec49573d6c1f16
[ "MIT" ]
null
null
null
app/server/database.py
situkangsayur/async-fastapi-mongo
2ee9dcb87687bcf5e3eba5cdb4ec49573d6c1f16
[ "MIT" ]
1
2021-12-05T17:26:08.000Z
2021-12-05T17:26:08.000Z
import motor.motor_asyncio from bson.objectid import ObjectId from decouple import config from outfit import Outfit, Logger, ConsulCon, VaultCon, merge_dict __confit_info__ = 'configs/config.yaml' # load config via python-outfit Outfit.setup(__confit_info__) vault = VaultCon().get_secret_kv() consul = ConsulCon()....
28.537736
81
0.677355
98428c858cd2ff5cf0e1c7d684b9bde11e18d613
340
py
Python
UDPClient.py
Eadral/socket_test
97c98f9d1e922867b0260994407d39d5aca42751
[ "MIT" ]
null
null
null
UDPClient.py
Eadral/socket_test
97c98f9d1e922867b0260994407d39d5aca42751
[ "MIT" ]
null
null
null
UDPClient.py
Eadral/socket_test
97c98f9d1e922867b0260994407d39d5aca42751
[ "MIT" ]
null
null
null
from socket import * serverName = "localhost" serverPort = 12000 clientSocket = socket(AF_INET, SOCK_DGRAM) message = bytes(input("Input lowercase sentence: "), encoding="UTF-8") clientSocket.sendto(message, (serverName, serverPort)) modifiedMessage, serverAddress = clientSocket.recvfrom(2048) print(modifiedMessage) c...
30.909091
70
0.794118
9843182ad243a7e8647ccf7f723564adcfe419f4
1,300
py
Python
tests/test_nullable_fields.py
marctc/django-rest-framework
06fd63dade20e1a19276b7414a54b9f5d2ef8329
[ "Unlicense" ]
null
null
null
tests/test_nullable_fields.py
marctc/django-rest-framework
06fd63dade20e1a19276b7414a54b9f5d2ef8329
[ "Unlicense" ]
null
null
null
tests/test_nullable_fields.py
marctc/django-rest-framework
06fd63dade20e1a19276b7414a54b9f5d2ef8329
[ "Unlicense" ]
null
null
null
# from django.core.urlresolvers import reverse # from django.conf.urls import patterns, url # from rest_framework import serializers, generics # from rest_framework.test import APITestCase # from tests.models import NullableForeignKeySource # class NullableFKSourceSerializer(serializers.ModelSerializer): # class...
32.5
94
0.724615
98453d92e060154057bdd6c781bbf32f5d97ae0b
2,745
py
Python
src/tests/t_kadmin.py
frozencemetery/krb5
bb8fa495d00ccd931eec87a01b8920636cf7903e
[ "MIT" ]
1
2015-05-14T22:15:04.000Z
2015-05-14T22:15:04.000Z
src/tests/t_kadmin.py
frozencemetery/krb5
bb8fa495d00ccd931eec87a01b8920636cf7903e
[ "MIT" ]
1
2018-08-09T19:05:03.000Z
2018-08-10T18:46:20.000Z
src/tests/t_kadmin.py
frozencemetery/krb5
bb8fa495d00ccd931eec87a01b8920636cf7903e
[ "MIT" ]
null
null
null
from k5test import * realm = K5Realm(start_kadmind=True) # Create a principal. Test -q option and keyboard entry of the admin # password and principal password. Verify creation with kadmin.local. realm.run([kadmin, '-q', 'addprinc princ/pw'], input=password('admin') + '\npw1\npw1\n') realm.run([kadminl, '...
40.970149
73
0.715118
98463e119070853e4ff482c858d10b20b3eec8fb
3,332
py
Python
lib/tri_declarative/shortcut.py
TriOptima/tri.declarative
e1972287f7b00ab335cc6c9a8384d5a39232171e
[ "BSD-3-Clause" ]
15
2016-02-09T18:07:30.000Z
2021-11-08T09:05:40.000Z
lib/tri_declarative/shortcut.py
TriOptima/tri.declarative
e1972287f7b00ab335cc6c9a8384d5a39232171e
[ "BSD-3-Clause" ]
7
2016-02-08T12:07:13.000Z
2020-10-08T06:51:06.000Z
lib/tri_declarative/shortcut.py
TriOptima/tri.declarative
e1972287f7b00ab335cc6c9a8384d5a39232171e
[ "BSD-3-Clause" ]
7
2016-01-06T09:29:11.000Z
2021-04-07T09:35:20.000Z
import functools from .declarative import get_members from .dispatch import dispatch from .namespace import ( Namespace, setdefaults_path, ) # This is just a marker class for declaring shortcuts, and later for collecting them # decorator def shortcut(f): f.shortcut = True return f def is_shortcut...
34.708333
127
0.620348
98463fa3b6a220d27d47ba06579da54d0fd9e3d5
1,032
py
Python
ml-agents/mlagents/torch_utils/torch.py
Phong13/ml-agents
393808b50581e66085578b01d9d907b65a9240f0
[ "Apache-2.0" ]
null
null
null
ml-agents/mlagents/torch_utils/torch.py
Phong13/ml-agents
393808b50581e66085578b01d9d907b65a9240f0
[ "Apache-2.0" ]
null
null
null
ml-agents/mlagents/torch_utils/torch.py
Phong13/ml-agents
393808b50581e66085578b01d9d907b65a9240f0
[ "Apache-2.0" ]
null
null
null
import os # Detect availability of torch package here. # NOTE: this try/except is temporary until torch is required for ML-Agents. try: # This should be the only place that we import torch directly. # Everywhere else is caught by the banned-modules setting for flake8 import torch # noqa I201 torch.se...
27.157895
91
0.695736
9846cb63a0389b2e69e89ec1122292cd314266af
43
py
Python
pykutils/__init__.py
pyokagan/pykutils
339a4e4db12f0ce44fd5ca3a94d385dbae7f4c34
[ "MIT" ]
null
null
null
pykutils/__init__.py
pyokagan/pykutils
339a4e4db12f0ce44fd5ca3a94d385dbae7f4c34
[ "MIT" ]
null
null
null
pykutils/__init__.py
pyokagan/pykutils
339a4e4db12f0ce44fd5ca3a94d385dbae7f4c34
[ "MIT" ]
null
null
null
"pyokagan's personal utilities collection"
21.5
42
0.837209
9846d7a929dfc7206aaef3926e2eb249dc72eda7
30
py
Python
notebooks/utils/tui/__init__.py
k4t0mono/ipln
ba71860bc38df52780903f647fb2404c61a6b3f2
[ "BSD-2-Clause" ]
1
2021-03-15T11:53:40.000Z
2021-03-15T11:53:40.000Z
python/progress/__init__.py
pedromxavier/cookbook
243532f893651c34e70fbba8a52f3f129dbc8dd3
[ "MIT" ]
2
2020-03-24T17:06:03.000Z
2020-03-31T02:16:40.000Z
python/progress/__init__.py
pedromxavier/cookbook
243532f893651c34e70fbba8a52f3f129dbc8dd3
[ "MIT" ]
null
null
null
from .progress import Progress
30
30
0.866667
9847e44921afc7a8b82a4f3d93c3296fce6e3790
13,352
py
Python
Ui_WorldGenDialog.py
Kamilcuk/Anthill
8f8f0a8acd8597da5adf918584a225cfbb485e2f
[ "MIT" ]
1
2016-03-10T12:51:01.000Z
2016-03-10T12:51:01.000Z
Ui_WorldGenDialog.py
Kamilcuk/Anthill
8f8f0a8acd8597da5adf918584a225cfbb485e2f
[ "MIT" ]
null
null
null
Ui_WorldGenDialog.py
Kamilcuk/Anthill
8f8f0a8acd8597da5adf918584a225cfbb485e2f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'worldgen.ui' # # Created by: PyQt5 UI code generator 5.6 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets
59.079646
122
0.736669
98480be6c6b339a9b16fc6aaedb013fff31d11b5
3,958
py
Python
tests/server/database.py
0x0mar/king-phisher
ff294c1a6ea3d59e238f0f4ed7ec668c5e8c2cfd
[ "BSD-3-Clause" ]
null
null
null
tests/server/database.py
0x0mar/king-phisher
ff294c1a6ea3d59e238f0f4ed7ec668c5e8c2cfd
[ "BSD-3-Clause" ]
null
null
null
tests/server/database.py
0x0mar/king-phisher
ff294c1a6ea3d59e238f0f4ed7ec668c5e8c2cfd
[ "BSD-3-Clause" ]
1
2018-12-18T00:44:14.000Z
2018-12-18T00:44:14.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # tests/server/database.py # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this li...
34.417391
95
0.757959
984957707b9c7d7b3eba54240e2b89bd9acc85f0
1,645
py
Python
restaurant_project/sales/models.py
deepaksood619/Projects
93f09db22ad65e72e2a2ffc909b2bb3e1e5c5fa7
[ "MIT" ]
null
null
null
restaurant_project/sales/models.py
deepaksood619/Projects
93f09db22ad65e72e2a2ffc909b2bb3e1e5c5fa7
[ "MIT" ]
5
2021-03-19T03:52:50.000Z
2022-02-10T11:43:51.000Z
sales/models.py
deepchatterjeevns/SmartQHiringChallenge
1151e8ac69325461179a7c15dec2e7709b811a74
[ "MIT" ]
null
null
null
from datetime import time, datetime from django.db import models # Create your models here.
33.571429
100
0.731915
984a26f181b80332cd6014478a8eb8713af1bd02
860
py
Python
examples/plot_geodesics_s2.py
effigies/geomstats
0d6979a15cefcf98f7f92bade9d0e4abee3dde14
[ "MIT" ]
null
null
null
examples/plot_geodesics_s2.py
effigies/geomstats
0d6979a15cefcf98f7f92bade9d0e4abee3dde14
[ "MIT" ]
null
null
null
examples/plot_geodesics_s2.py
effigies/geomstats
0d6979a15cefcf98f7f92bade9d0e4abee3dde14
[ "MIT" ]
null
null
null
""" Plot a geodesic on the sphere S2 """ import matplotlib.pyplot as plt import numpy as np import geomstats.visualization as visualization from geomstats.hypersphere import Hypersphere SPHERE2 = Hypersphere(dimension=2) METRIC = SPHERE2.metric if __name__ == "__main__": main()
23.888889
71
0.624419
984a405ea5778fbc9af3554ca90adfa1ba3e5686
3,666
py
Python
video_utils/collect_and_store.py
monocongo/video_utils
c1fd5d0041294f91b498f2878029723377fe6f66
[ "BSD-3-Clause" ]
null
null
null
video_utils/collect_and_store.py
monocongo/video_utils
c1fd5d0041294f91b498f2878029723377fe6f66
[ "BSD-3-Clause" ]
9
2019-05-14T21:52:09.000Z
2019-06-12T17:32:13.000Z
video_utils/collect_and_store.py
monocongo/video_save_boto3
c1fd5d0041294f91b498f2878029723377fe6f66
[ "BSD-3-Clause" ]
null
null
null
import argparse import datetime import os import boto3 import ffmpeg # ------------------------------------------------------------------------------ def collect_and_store(rtsp_url: str, start_seconds: int, duration_seconds: int, s3_bucket: str, ...
36.29703
128
0.516094
984b7b0287b2a89ff337b5b57399afb859eeb8ee
332
py
Python
actions/update_field_value.py
gmenie-ak/stackstorm-jira
55c3cd92229e6cac15da270a324571aba83e5834
[ "Apache-2.0" ]
12
2017-11-18T04:34:56.000Z
2022-03-06T08:32:18.000Z
actions/update_field_value.py
gmenie-ak/stackstorm-jira
55c3cd92229e6cac15da270a324571aba83e5834
[ "Apache-2.0" ]
26
2016-12-22T01:53:40.000Z
2021-10-01T14:00:51.000Z
actions/update_field_value.py
gmenie-ak/stackstorm-jira
55c3cd92229e6cac15da270a324571aba83e5834
[ "Apache-2.0" ]
31
2017-03-06T20:16:12.000Z
2021-12-26T06:54:26.000Z
from lib.base import BaseJiraAction __all__ = [ 'UpdateFieldValue' ]
23.714286
58
0.686747
984b8c04887c7501cecb6fde367655eeb502c29a
153
py
Python
src/tests/functional/orga/test_init.py
td00/pretalx
aff450de9420fca167e04345fa24ee7140fae819
[ "Apache-2.0" ]
null
null
null
src/tests/functional/orga/test_init.py
td00/pretalx
aff450de9420fca167e04345fa24ee7140fae819
[ "Apache-2.0" ]
null
null
null
src/tests/functional/orga/test_init.py
td00/pretalx
aff450de9420fca167e04345fa24ee7140fae819
[ "Apache-2.0" ]
null
null
null
import pytest from django.core.management import call_command
19.125
47
0.816993
984d60f3c8bc904d220d941b1dd1c7fd3ce9eac2
6,524
py
Python
vespa/datasim/util_menu.py
vespa-mrs/vespa
6d3e84a206ec427ac1304e70c7fadf817432956b
[ "BSD-3-Clause" ]
null
null
null
vespa/datasim/util_menu.py
vespa-mrs/vespa
6d3e84a206ec427ac1304e70c7fadf817432956b
[ "BSD-3-Clause" ]
4
2021-04-17T13:58:31.000Z
2022-01-20T14:19:57.000Z
vespa/datasim/util_menu.py
vespa-mrs/vespa
6d3e84a206ec427ac1304e70c7fadf817432956b
[ "BSD-3-Clause" ]
3
2021-06-05T16:34:57.000Z
2022-01-19T16:13:22.000Z
# Python modules # 3rd party modules import wx # Our modules import vespa.common.menu as common_menu import vespa.common.util.config as util_common_config ######################################################################## # This is a collection of menu-related constants, functions and utilities. # The funct...
42.921053
113
0.592888
984f29cb3a06a2a9327f4655badc0fb6832ecefe
5,198
py
Python
data.py
Simon-Swenson-8351/hs-bot
af2613ffa71c34e1d66c9f9d65249962d21a6b4a
[ "BSD-3-Clause" ]
null
null
null
data.py
Simon-Swenson-8351/hs-bot
af2613ffa71c34e1d66c9f9d65249962d21a6b4a
[ "BSD-3-Clause" ]
null
null
null
data.py
Simon-Swenson-8351/hs-bot
af2613ffa71c34e1d66c9f9d65249962d21a6b4a
[ "BSD-3-Clause" ]
null
null
null
import os import PIL.Image import numpy import cv2 import threading import datetime import config import game_region as game_region_module def create_bounding_box_infos(): tmp_list = [] tmp_list.append(BoundingBoxInfo("play", [1342, 836, 1457, 942])) tmp_list.append(BoundingBoxInfo("e...
38.503704
126
0.647172
9850c05df27bb10d9bb85ebb3ffbbd1b73871ffa
1,536
py
Python
ibt/docker_util.py
rcook/ibt
6ab5bda2067ef053874938a4ec445ea0e54b30f2
[ "MIT" ]
null
null
null
ibt/docker_util.py
rcook/ibt
6ab5bda2067ef053874938a4ec445ea0e54b30f2
[ "MIT" ]
13
2018-08-08T15:40:54.000Z
2021-06-22T21:00:36.000Z
ibt/docker_util.py
rcook/ibt
6ab5bda2067ef053874938a4ec445ea0e54b30f2
[ "MIT" ]
null
null
null
############################################################################### # # IBT: Isolated Build Tool # Copyright (C) 2016, Richard Cook. All rights reserved. # # Simple wrappers around Docker etc. for fully isolated build environments # ###########################################################################...
32
79
0.623698
98523176d76da547436cf4562259ecd15472ff25
3,241
py
Python
tests/systems/test_spins.py
sirmarcel/floq
a456957500c809a5bb4cdae2d7b1d4720c28f2c4
[ "MIT" ]
3
2020-10-31T00:30:42.000Z
2021-02-27T14:59:17.000Z
tests/systems/test_spins.py
sirmarcel/floq
a456957500c809a5bb4cdae2d7b1d4720c28f2c4
[ "MIT" ]
1
2019-06-06T12:56:46.000Z
2019-06-06T14:41:13.000Z
tests/systems/test_spins.py
sirmarcel/floq
a456957500c809a5bb4cdae2d7b1d4720c28f2c4
[ "MIT" ]
5
2017-07-25T11:22:56.000Z
2021-02-27T14:59:24.000Z
from tests.assertions import CustomAssertions import numpy as np import floq.systems.spins as spins
30.575472
79
0.444924
9852f98b97ad9ca649e132fb523a2aba2132c424
877
py
Python
utils/localization/tests/test_helper/test_utils/test_utils.py
Open-Speech-EkStep/crowdsource-dataplatform
cf2a6c36717cb06f75de7b097959c59699564ad0
[ "MIT" ]
22
2021-03-23T05:36:51.000Z
2022-01-28T10:50:23.000Z
utils/localization/tests/test_helper/test_utils/test_utils.py
Open-Speech-EkStep/crowdsource-dataplatform
cf2a6c36717cb06f75de7b097959c59699564ad0
[ "MIT" ]
13
2021-05-27T07:18:58.000Z
2022-02-24T06:33:58.000Z
utils/localization/tests/test_helper/test_utils/test_utils.py
Open-Speech-EkStep/crowdsource-dataplatform
cf2a6c36717cb06f75de7b097959c59699564ad0
[ "MIT" ]
14
2021-03-22T22:47:17.000Z
2021-12-22T05:00:52.000Z
import json import pandas as pd from unittest import TestCase from pandas._testing import assert_frame_equal from helper.utils.utils import load_json_as_df, reformat_json
35.08
116
0.692132
98537b856a259b47a9404a77c28aea3a4de091c5
1,954
py
Python
src/spider/guozhi/guozhi.py
objcat/test-python
97b3cb610a80b8e00b8a032ca94bb3fead4102fb
[ "MIT" ]
null
null
null
src/spider/guozhi/guozhi.py
objcat/test-python
97b3cb610a80b8e00b8a032ca94bb3fead4102fb
[ "MIT" ]
null
null
null
src/spider/guozhi/guozhi.py
objcat/test-python
97b3cb610a80b8e00b8a032ca94bb3fead4102fb
[ "MIT" ]
null
null
null
# description: guozhi # date: 2021/1/9 9:54 # author: objcat # version: 1.0 import requests from bs4 import BeautifulSoup from win32com.client import Dispatch import pathlib import os if __name__ == '__main__': Guozhi.parse_url()
36.867925
113
0.623337
985612c5152d046b00d7b926e420d9322d0211d3
1,066
py
Python
setup.py
tzickel/forif
be976fdbb854df4e5366341733f5d7c9ecc11cc9
[ "Apache-2.0" ]
2
2018-04-01T19:33:27.000Z
2018-04-02T08:09:25.000Z
setup.py
tzickel/forif
be976fdbb854df4e5366341733f5d7c9ecc11cc9
[ "Apache-2.0" ]
null
null
null
setup.py
tzickel/forif
be976fdbb854df4e5366341733f5d7c9ecc11cc9
[ "Apache-2.0" ]
null
null
null
from setuptools import setup import codecs import os here = os.path.abspath(os.path.dirname(__file__)) long_description = read('README.md') setup( name='forif', version='0.0.1', py_modules=['forif'], url='https://github.com/tzickel/forif', license='WTFPLApache License 2.0', author='tzickel...
25.380952
71
0.62758
9856e14fcd9d4be167f509ba97bef98318eeb15a
2,742
py
Python
Question_31_40/myanswers/myans_38.py
OverHall27/Gasyori100knock
341c528eb4c0789034898ee1f7d0a4b2f8b23eff
[ "MIT" ]
null
null
null
Question_31_40/myanswers/myans_38.py
OverHall27/Gasyori100knock
341c528eb4c0789034898ee1f7d0a4b2f8b23eff
[ "MIT" ]
null
null
null
Question_31_40/myanswers/myans_38.py
OverHall27/Gasyori100knock
341c528eb4c0789034898ee1f7d0a4b2f8b23eff
[ "MIT" ]
null
null
null
import cv2 import numpy as np img = cv2.imread("../imori.jpg").astype(np.float32) K_ = 8 dct = DCT(img, block=8) dct = Quantization(dct, block=8) result = InvDCT(dct, block=8, K=K_) #result = np.clip(result, 0, 255).astype(np.uint8) cv2.imwrite("myans_38.jpg", result) cv2.imshow("result", result) cv2.waitKey(0) cv2....
29.483871
171
0.515317
98575fafd78ee322f3d70690d931128909d9c1dc
19,861
py
Python
prune.py
poppin-mice/ShiftAddNet
a17369a50da5bba6250fdeac7c065bd00f293f3c
[ "MIT" ]
55
2020-10-04T17:17:46.000Z
2022-03-31T02:56:51.000Z
prune.py
poppin-mice/ShiftAddNet
a17369a50da5bba6250fdeac7c065bd00f293f3c
[ "MIT" ]
8
2020-12-07T03:37:48.000Z
2021-07-21T09:26:45.000Z
prune.py
poppin-mice/ShiftAddNet
a17369a50da5bba6250fdeac7c065bd00f293f3c
[ "MIT" ]
14
2020-10-29T16:51:41.000Z
2021-11-16T01:36:43.000Z
import argparse import os, time import torch import shutil import numpy as np import torch.nn as nn import torchvision.transforms as transforms import torchvision.datasets as datasets import torch.nn.functional as F import torch.optim as optim from torch.autograd import Variable import models import torch.backends.cud...
44.431767
178
0.589698
9857800007ceff368c121bd9101455e6fb400d8d
6,200
py
Python
L5NeuronSimulation/raster_maker.py
JuliusvR/L5NeuronSimulation
1fc68c7367c439e1f9c9b73a15a95609858ec720
[ "MIT" ]
2
2020-11-12T15:12:31.000Z
2021-12-09T19:12:55.000Z
L5NeuronSimulation/raster_maker.py
JuliusvR/L5NeuronSimulation
1fc68c7367c439e1f9c9b73a15a95609858ec720
[ "MIT" ]
2
2021-05-20T21:36:12.000Z
2021-08-29T15:32:35.000Z
L5NeuronSimulation/raster_maker.py
JuliusvR/L5NeuronSimulation
1fc68c7367c439e1f9c9b73a15a95609858ec720
[ "MIT" ]
6
2021-03-03T22:14:39.000Z
2021-11-23T13:44:35.000Z
""" Contains the functions and class (SonataWriter) necessary for generating and saving the input spike rasters. """ import numpy as np import scipy.signal as ss import scipy import scipy.stats as st import matplotlib.pyplot as plt import h5py from bmtk.utils.reports.spike_trains import PoissonSpikeGenerator import pa...
30.243902
117
0.602581
98579a29b18e47304be5f1259c1a91c9aae8a65f
8,086
py
Python
Task.py
omercsp/taskrunner
f972c7879ce9f4e390524a332388ea8c478ea19b
[ "MIT" ]
5
2022-01-04T13:35:48.000Z
2022-03-20T11:34:32.000Z
Task.py
omercsp/taskrunner
f972c7879ce9f4e390524a332388ea8c478ea19b
[ "MIT" ]
null
null
null
Task.py
omercsp/taskrunner
f972c7879ce9f4e390524a332388ea8c478ea19b
[ "MIT" ]
null
null
null
from config import * from argparse import Namespace as Args from schemas import Schema import shlex import subprocess import signal
40.029703
100
0.581499
9858db76b7f230493a4c3aa09572747983cf6874
1,853
py
Python
recipes/tinyobjloader/all/conanfile.py
balintfodor/conan-center-index
9afc15a805f8ab323a312327c68c80f81a6ceade
[ "MIT" ]
2
2022-01-04T11:30:41.000Z
2022-01-04T11:31:32.000Z
recipes/tinyobjloader/all/conanfile.py
balintfodor/conan-center-index
9afc15a805f8ab323a312327c68c80f81a6ceade
[ "MIT" ]
4
2019-12-27T01:09:03.000Z
2019-12-27T01:49:59.000Z
recipes/tinyobjloader/all/conanfile.py
balintfodor/conan-center-index
9afc15a805f8ab323a312327c68c80f81a6ceade
[ "MIT" ]
1
2020-12-11T02:35:13.000Z
2020-12-11T02:35:13.000Z
import os from conans import ConanFile, CMake, tools
37.06
83
0.665407
985c54343672eceee6a9d1dd94eac7c468981170
42
py
Python
secrets/__init__.py
kskewes-sf/spinnakerbot
32a7ad75a0c12e09498d24fe0cc8dd1b810bd6f7
[ "Apache-2.0" ]
6
2020-03-18T10:33:53.000Z
2021-05-02T01:58:10.000Z
secrets/__init__.py
kskewes-sf/spinnakerbot
32a7ad75a0c12e09498d24fe0cc8dd1b810bd6f7
[ "Apache-2.0" ]
8
2020-03-28T23:01:00.000Z
2020-12-01T06:52:00.000Z
secrets/__init__.py
kskewes-sf/spinnakerbot
32a7ad75a0c12e09498d24fe0cc8dd1b810bd6f7
[ "Apache-2.0" ]
10
2020-02-05T16:24:28.000Z
2022-03-17T21:37:36.000Z
from .gcp_secrets import GcpSecretsManager
42
42
0.904762
985d32e1f4f905bd4cdae415d067eca4717b3385
1,074
py
Python
Day 15: Rambunctious Recitation/day15-part2.py
Ryan-Kan/Advent-Of-Code-2020
56ed9ab5e01e86781051a9fb774d0a313e0dc15a
[ "MIT" ]
null
null
null
Day 15: Rambunctious Recitation/day15-part2.py
Ryan-Kan/Advent-Of-Code-2020
56ed9ab5e01e86781051a9fb774d0a313e0dc15a
[ "MIT" ]
null
null
null
Day 15: Rambunctious Recitation/day15-part2.py
Ryan-Kan/Advent-Of-Code-2020
56ed9ab5e01e86781051a9fb774d0a313e0dc15a
[ "MIT" ]
null
null
null
""" day15-part2.py Created on 2020-12-15 Updated on 2020-12-20 Copyright Ryan Kan """ # INPUT with open("input.txt", "r") as f: numbers = [int(number) for number in f.readline().split(",")] f.close() # COMPUTATION saidNumbers = {} # Process the first numbers for i, number in enumerate(numbers): print(...
26.195122
98
0.691806
985e339098540df929a0de7a5cadb4b7c51dc175
1,309
py
Python
home/tests.py
apoorvanand/tweet-search
9dcb94a474c638b5a44fcc2249b5ce6579a209a4
[ "MIT" ]
51
2015-10-06T10:00:09.000Z
2021-09-10T10:27:52.000Z
home/tests.py
apoorvanand/tweet-search
9dcb94a474c638b5a44fcc2249b5ce6579a209a4
[ "MIT" ]
20
2015-12-22T04:59:29.000Z
2021-06-10T17:45:08.000Z
home/tests.py
apoorvanand/tweet-search
9dcb94a474c638b5a44fcc2249b5ce6579a209a4
[ "MIT" ]
22
2015-03-24T14:57:20.000Z
2021-05-29T13:51:36.000Z
import unittest import timeframe import timeseries import datetime import frequency #from django.test import TestCase # Create your tests here. if __name__ == '__main__': unittest.main()
31.166667
147
0.618793
985e8bfeca006e01603b2e2887b6636296128621
7,488
py
Python
CUT/experiments/tmux_launcher.py
Theomat/colorization-av-enseirb-2020
c54c2388ea39a62289fa2f1c51b4757bf55d3c4f
[ "Apache-2.0" ]
1,422
2020-07-31T00:31:19.000Z
2022-03-31T11:35:26.000Z
CUT/experiments/tmux_launcher.py
Theomat/colorization-av-enseirb-2020
c54c2388ea39a62289fa2f1c51b4757bf55d3c4f
[ "Apache-2.0" ]
123
2020-07-31T04:16:03.000Z
2022-03-21T14:02:20.000Z
CUT/experiments/tmux_launcher.py
Theomat/colorization-av-enseirb-2020
c54c2388ea39a62289fa2f1c51b4757bf55d3c4f
[ "Apache-2.0" ]
324
2020-07-31T00:40:11.000Z
2022-03-31T10:01:10.000Z
""" experiment launcher using tmux panes """ import os import math import GPUtil import re available_gpu_devices = None # http://code.activestate.com/recipes/252177-find-the-common-beginning-in-a-list-of-strings/
34.666667
175
0.581063
985ff6ad544a34fd7123b7189fde0bbabfec1f58
1,557
py
Python
code/strats/punitiveDetective.py
yasirroni/PrisonersDilemmaTournament
ce3de71ff2ccb647aa00129473ff60f985e16e17
[ "MIT" ]
null
null
null
code/strats/punitiveDetective.py
yasirroni/PrisonersDilemmaTournament
ce3de71ff2ccb647aa00129473ff60f985e16e17
[ "MIT" ]
null
null
null
code/strats/punitiveDetective.py
yasirroni/PrisonersDilemmaTournament
ce3de71ff2ccb647aa00129473ff60f985e16e17
[ "MIT" ]
null
null
null
def strategy(history, memory): """ Orannis's punitive detective: Cooperate but when the other player defects, cooperate one more turn to see if they defect again. If they do, defect for 10 turns. Cooperate twice more and if they defect the second time, defect forever. memory is a tu...
40.973684
80
0.619139
9860422041ee2bb31eb6ba81c5dea5d1adfbba12
948
py
Python
olwi/weight_sensor.py
molkoback/olwi
449874a1de1a9addaaefe74010d49ca0fa2f9ce3
[ "MIT" ]
null
null
null
olwi/weight_sensor.py
molkoback/olwi
449874a1de1a9addaaefe74010d49ca0fa2f9ce3
[ "MIT" ]
null
null
null
olwi/weight_sensor.py
molkoback/olwi
449874a1de1a9addaaefe74010d49ca0fa2f9ce3
[ "MIT" ]
1
2021-11-23T07:19:00.000Z
2021-11-23T07:19:00.000Z
devices = {"dummy": DummyWeightSensor} try: from olwi.hw.ads1115 import ADS1115 devices["ADS1115"] = ADS1115 except: pass
20.170213
71
0.714135
9860ac1ece57fe757569f0cde14494aa4c063246
2,438
py
Python
data_client/controller/event_client.py
trcox/py-core-data-client
a6d35a792c99ccf5196d5618d5dc9df6413e16f7
[ "Apache-2.0" ]
null
null
null
data_client/controller/event_client.py
trcox/py-core-data-client
a6d35a792c99ccf5196d5618d5dc9df6413e16f7
[ "Apache-2.0" ]
null
null
null
data_client/controller/event_client.py
trcox/py-core-data-client
a6d35a792c99ccf5196d5618d5dc9df6413e16f7
[ "Apache-2.0" ]
null
null
null
# ******************************************************************************* # Copyright 2017 Dell 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/L...
28.348837
99
0.637818
9861a9c527d45b483c922148595e6eb6f8bdd786
4,743
py
Python
src/main/python/salento/reports/map_computation/get_state_call_values.py
khanhgithead/salento
b4933a44ce4a18639b207db0bd555785cee2cc94
[ "Apache-2.0" ]
4
2019-01-14T06:21:49.000Z
2019-12-10T08:55:23.000Z
src/main/python/salento/reports/map_computation/get_state_call_values.py
khanhgithead/salento
b4933a44ce4a18639b207db0bd555785cee2cc94
[ "Apache-2.0" ]
9
2017-12-03T18:27:07.000Z
2018-06-08T19:43:38.000Z
src/main/python/salento/reports/map_computation/get_state_call_values.py
khanhgithead/salento
b4933a44ce4a18639b207db0bd555785cee2cc94
[ "Apache-2.0" ]
3
2017-12-18T19:39:25.000Z
2019-01-17T11:00:05.000Z
""" # **************************************************************************** # # GOVERNMENT PURPOSE RIGHTS # # Contract Number: FA8750-15-2-0270 (Prime: William Marsh Rice University) # Contractor Name: GrammaTech, Inc. (Right Holder - subaward R18683) # Contractor Address: 531 Esty Street, Ithaca, NY 14850 # Ex...
41.243478
81
0.528779
986332363d33a9f488a6d0159f4d3cda7543cedb
316
py
Python
butterfree/transform/features/__init__.py
fossabot/butterfree
8a7da8c540b51c6560b2825cb926c40a351f202b
[ "Apache-2.0" ]
208
2020-07-17T18:46:10.000Z
2022-03-21T12:44:12.000Z
butterfree/transform/features/__init__.py
fossabot/butterfree
8a7da8c540b51c6560b2825cb926c40a351f202b
[ "Apache-2.0" ]
124
2020-07-17T19:42:47.000Z
2021-07-21T00:38:05.000Z
butterfree/transform/features/__init__.py
fossabot/butterfree
8a7da8c540b51c6560b2825cb926c40a351f202b
[ "Apache-2.0" ]
30
2020-07-17T20:24:09.000Z
2022-03-17T00:50:37.000Z
"""Holds all feature types to be part of a FeatureSet.""" from butterfree.transform.features.feature import Feature from butterfree.transform.features.key_feature import KeyFeature from butterfree.transform.features.timestamp_feature import TimestampFeature __all__ = ["Feature", "KeyFeature", "TimestampFeature"]
39.5
76
0.822785
9863633cc61296d6ee525b953753de22c61a3ff2
971
py
Python
testAdmin.py
Krenair/wmcs-misc-scripts
ae91b5756d73a9405634df9d6c32e98f21b97d5f
[ "Apache-2.0" ]
null
null
null
testAdmin.py
Krenair/wmcs-misc-scripts
ae91b5756d73a9405634df9d6c32e98f21b97d5f
[ "Apache-2.0" ]
null
null
null
testAdmin.py
Krenair/wmcs-misc-scripts
ae91b5756d73a9405634df9d6c32e98f21b97d5f
[ "Apache-2.0" ]
null
null
null
from keystoneclient.session import Session as KeystoneSession from keystoneclient.auth.identity.v3 import Password as KeystonePassword from keystoneclient.v3 import Client as KeystoneClient #from novaclient import client as novaclient from designateclient.v2 import client as designateclient session = get_keystone_sess...
33.482759
76
0.762101
98659147aeb87e203d9832403d6ea41ee4d2ded3
17,679
py
Python
src/cascade/model/priors.py
adolgert/cascade
2084e07c9ee5e901dd407b817220de882c7246a3
[ "MIT" ]
null
null
null
src/cascade/model/priors.py
adolgert/cascade
2084e07c9ee5e901dd407b817220de882c7246a3
[ "MIT" ]
null
null
null
src/cascade/model/priors.py
adolgert/cascade
2084e07c9ee5e901dd407b817220de882c7246a3
[ "MIT" ]
null
null
null
from copy import copy from functools import total_ordering import numpy as np import scipy.stats as stats from cascade.core import getLoggers CODELOG, MATHLOG = getLoggers(__name__) # A description of how dismod interprets these distributions and their parameters can be found here: # https://bradbell.github.io/dismo...
32.085299
118
0.591606
986599e9146af7fc917f4235236600f156665da2
2,581
py
Python
pubsubat/pubsub/schema.py
zerobased-co/pubsub.at
c53ee698d3d2beced0147a8aa9707f69c3ef46c1
[ "MIT" ]
null
null
null
pubsubat/pubsub/schema.py
zerobased-co/pubsub.at
c53ee698d3d2beced0147a8aa9707f69c3ef46c1
[ "MIT" ]
null
null
null
pubsubat/pubsub/schema.py
zerobased-co/pubsub.at
c53ee698d3d2beced0147a8aa9707f69c3ef46c1
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from graphene import relay from graphene_django.filter import DjangoFilterConnectionField from graphene_django.types import DjangoObjectType from .models import User, Category, Publisher, Subscription import graphene
28.362637
70
0.646649
986926fd782aa8032b7947a3571c5bda5cd88e40
4,057
py
Python
xamarin_ida_script.py
AkshayJainG/xamarin_frida_ios_bypassjb
69c6358bb4a3b9475dfda08ca23d7fffde9252ff
[ "MIT" ]
5
2019-10-20T04:14:49.000Z
2021-07-20T09:17:43.000Z
xamarin_ida_script.py
AkshayJainG/xamarin_frida_ios_bypassjb
69c6358bb4a3b9475dfda08ca23d7fffde9252ff
[ "MIT" ]
1
2019-12-09T12:34:10.000Z
2020-04-23T08:10:29.000Z
xamarin_ida_script.py
AkshayJainG/xamarin_frida_ios_bypassjb
69c6358bb4a3b9475dfda08ca23d7fffde9252ff
[ "MIT" ]
1
2019-10-24T11:00:19.000Z
2019-10-24T11:00:19.000Z
import idautils import idc import collections searchItems = {"mono_init_internal" : "Max native code in a domain", #req'd for iOS "mono_class_load_from_name" : "Runtime critical type %s.%s not found", # req'd for iOS "mono_assembly_request_open" : "Assembly Loader probing location: '%s'."...
54.093333
126
0.556815
98697fdbc551569cdb320c6bb06e86e48be7478f
389
py
Python
test.py
bpetterborg/vex_vacuum
f4a6dc69b4a10eebcf247d34d9155ec74c3f9f99
[ "MIT" ]
null
null
null
test.py
bpetterborg/vex_vacuum
f4a6dc69b4a10eebcf247d34d9155ec74c3f9f99
[ "MIT" ]
null
null
null
test.py
bpetterborg/vex_vacuum
f4a6dc69b4a10eebcf247d34d9155ec74c3f9f99
[ "MIT" ]
null
null
null
# file where i test everything import pi_vex_393, screen # fix this import time motor = pi_vex_393.Motor() screen = screen.Screen() while True: screen.clearScreen() screen.drawIP() screen.drawSystemLoad() screen.drawDebugLine(motor.currentStatus()) try: motor.spin('left', 50) motor.spin('right', 50) ...
16.208333
44
0.719794