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
df510c16faa10d361dd9e9908330f9b25302d7cf
2,098
py
Python
library/twisted/mod/regex.py
Kelbec-Nef/EVE-bot-discord
30432beb482ca56a10fda8aefdb4c1b9802e4ceb
[ "MIT" ]
59
2016-06-27T13:12:18.000Z
2021-06-23T12:09:16.000Z
modules/regex.py
andimiller/twistedbot
f462385ab951f1b74e19a2ebb6b3d58da4e2a03f
[ "MIT" ]
112
2016-07-06T15:32:09.000Z
2022-03-08T07:22:54.000Z
modules/regex.py
andimiller/twistedbot
f462385ab951f1b74e19a2ebb6b3d58da4e2a03f
[ "MIT" ]
59
2016-07-04T22:22:26.000Z
2020-05-15T20:38:08.000Z
import re import datetime def sub(message, regex): regex=re.split("(?<!\\\\)/",regex) if len(regex)>3: regex[3] = regex[3].strip() if not regex[3]: count = 1 elif "g" in regex[3]: count = 0 elif regex[3].isdigit(): count = int(regex[3]) el...
34.966667
122
0.582459
0
0
0
0
0
0
0
0
295
0.14061
df51d4ecd268e7723e07531a6a92ba19cedaab25
257
py
Python
02/01/isupper.py
pylangstudy/201708
126b1af96a1d1f57522d5a1d435b58597bea2e57
[ "CC0-1.0" ]
null
null
null
02/01/isupper.py
pylangstudy/201708
126b1af96a1d1f57522d5a1d435b58597bea2e57
[ "CC0-1.0" ]
39
2017-07-31T22:54:01.000Z
2017-08-31T00:19:03.000Z
02/01/isupper.py
pylangstudy/201708
126b1af96a1d1f57522d5a1d435b58597bea2e57
[ "CC0-1.0" ]
null
null
null
s = 'abc'; print(s.isupper(), s) s = 'Abc'; print(s.isupper(), s) s = 'aBc'; print(s.isupper(), s) s = 'abC'; print(s.isupper(), s) s = 'abc'; print(s.isupper(), s) s = 'ABC'; print(s.isupper(), s) s = 'abc'; print(s.capitalize().isupper(), s.capitalize())
32.125
58
0.568093
0
0
0
0
0
0
0
0
35
0.136187
df526964a362846faf5e5acce4b5cfd42b2a61de
562
py
Python
tests/test_scriptfields.py
ttimasdf/pyes
e5dd8bfde7ca72b9bdf52f31ee7dbbf9681891ac
[ "BSD-3-Clause" ]
175
2015-01-04T00:41:48.000Z
2022-01-12T08:42:28.000Z
tests/test_scriptfields.py
yoloseem/pyes
d146d7cbe8a883b7b6a821e4c41acb16d2a5e3d0
[ "BSD-3-Clause" ]
35
2015-01-23T16:17:33.000Z
2021-05-17T12:12:29.000Z
tests/test_scriptfields.py
yoloseem/pyes
d146d7cbe8a883b7b6a821e4c41acb16d2a5e3d0
[ "BSD-3-Clause" ]
69
2015-01-10T17:28:26.000Z
2021-10-13T06:55:56.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import import unittest from pyes import scriptfields class ScriptFieldsTest(unittest.TestCase): def test_scriptfieldserror_imported(self): self.assertTrue(hasattr(scriptfields, 'ScriptFieldsError')) def test_ignore_failure(self): fields =...
33.058824
98
0.729537
403
0.717082
0
0
0
0
0
0
108
0.192171
df53e4881da04ab4f402645f9a8a2b4862a0381d
1,049
py
Python
flow/urls.py
Xinghui-Wu/FlowMeter
c2780fe7f8b8d2d6136296e53d1ee95e5660afc4
[ "MIT" ]
null
null
null
flow/urls.py
Xinghui-Wu/FlowMeter
c2780fe7f8b8d2d6136296e53d1ee95e5660afc4
[ "MIT" ]
null
null
null
flow/urls.py
Xinghui-Wu/FlowMeter
c2780fe7f8b8d2d6136296e53d1ee95e5660afc4
[ "MIT" ]
1
2021-05-17T13:01:26.000Z
2021-05-17T13:01:26.000Z
"""FlowMeter URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-bas...
32.78125
77
0.701621
0
0
0
0
0
0
0
0
687
0.654909
df586b1e318707fb32e47861376aae613e4a3f07
15,033
py
Python
psp/gcp_utils.py
amckenna41/DCBLSTM_PSP
feec5bbf700782484af3b4873fd742ff9f7a7272
[ "MIT" ]
1
2021-05-06T09:48:45.000Z
2021-05-06T09:48:45.000Z
psp/gcp_utils.py
amckenna41/DCBLSTM_PSP
feec5bbf700782484af3b4873fd742ff9f7a7272
[ "MIT" ]
null
null
null
psp/gcp_utils.py
amckenna41/DCBLSTM_PSP
feec5bbf700782484af3b4873fd742ff9f7a7272
[ "MIT" ]
null
null
null
################################################################################ ######## Google Cloud Platform Utilities ######## ################################################################################ #Importing required libraries and dependancies import numpy as np import pan...
33.03956
123
0.656622
1,779
0.11834
0
0
0
0
0
0
7,928
0.527373
df58cc87adff05d56c9092da2fe099ff0776f22b
6,033
py
Python
Glassdoor scraping/main.py
stancld/MSc-Project
31a57ed58a902fe998649b948c61e70ca78729a4
[ "MIT" ]
2
2021-05-27T12:43:20.000Z
2022-02-24T07:01:55.000Z
Glassdoor scraping/main.py
stancld/MSc-Project
31a57ed58a902fe998649b948c61e70ca78729a4
[ "MIT" ]
5
2021-03-19T08:52:22.000Z
2021-09-22T19:21:44.000Z
Glassdoor scraping/main.py
stancld/MSc-Project
31a57ed58a902fe998649b948c61e70ca78729a4
[ "MIT" ]
2
2020-09-29T03:27:38.000Z
2020-11-07T05:41:10.000Z
# import libraries import time import datetime from argparse import ArgumentParser from datetime import date import re import json import numpy as np import pandas as pd import django from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_c...
30.469697
132
0.671805
0
0
0
0
0
0
0
0
2,723
0.451351
df599e9d10321b7bdbba2162c39d2da1b3bddbed
468
py
Python
week12/api/urls.py
yestemir/web
5bdead66c26a3c466701e25ecae9720f04ad4118
[ "Unlicense" ]
null
null
null
week12/api/urls.py
yestemir/web
5bdead66c26a3c466701e25ecae9720f04ad4118
[ "Unlicense" ]
13
2021-03-10T08:46:52.000Z
2022-03-02T08:13:58.000Z
week12/api/urls.py
yestemir/web
5bdead66c26a3c466701e25ecae9720f04ad4118
[ "Unlicense" ]
null
null
null
from django.urls import path #from api.views import company_list, company_details, company_vacancies, vacancies_list, vacancy_detail from api.views import company_list, company_details urlpatterns = [ path('companies/', company_list), path('companies/<int:company_id>/', company_details), #path('companies/<...
39
103
0.758547
0
0
0
0
0
0
0
0
297
0.634615
df5accf9e59165fe020819b87f459f1232b0ff9c
904
py
Python
ex02_randomness_test/tests/test_main.py
ittigorn-tra/exercises
c1edc8eea7483eb3f61109bf3540e94e04b1867c
[ "MIT" ]
null
null
null
ex02_randomness_test/tests/test_main.py
ittigorn-tra/exercises
c1edc8eea7483eb3f61109bf3540e94e04b1867c
[ "MIT" ]
null
null
null
ex02_randomness_test/tests/test_main.py
ittigorn-tra/exercises
c1edc8eea7483eb3f61109bf3540e94e04b1867c
[ "MIT" ]
null
null
null
from logging import getLogger from lottery_config import LotteryConfig from main import draw_lottery logger = getLogger() def test_draw_lottery(): for test_count in range(10000): draw_results = draw_lottery() logger.info(f'Test #{str(test_count).ljust(4)} Draw Results : {draw_results}') ...
33.481481
86
0.698009
0
0
0
0
0
0
0
0
212
0.234513
df5bcc25e0eb5cf59dcd57c576a359b2d756670b
1,308
py
Python
.ipynb_checkpoints/get-checkpoint.py
Ferruolo/delphi
369d74053ff211f7114b01d51621a388693a0dc7
[ "MIT" ]
null
null
null
.ipynb_checkpoints/get-checkpoint.py
Ferruolo/delphi
369d74053ff211f7114b01d51621a388693a0dc7
[ "MIT" ]
null
null
null
.ipynb_checkpoints/get-checkpoint.py
Ferruolo/delphi
369d74053ff211f7114b01d51621a388693a0dc7
[ "MIT" ]
null
null
null
import requests import io import dask from bs4 import BeautifulSoup as BS import nltk import pandas import numpy as np def News(ticker): B = BS(requests.get(f"https://www.wsj.com/market-data/quotes/{ticker}", headers={'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) ...
39.636364
250
0.714832
0
0
0
0
0
0
0
0
586
0.448012
df5bcf4144a389293dde7bcc338b8d079f6fde6d
6,587
py
Python
glom/test/test_path_and_t.py
justinvanwinkle/glom
6451e9800b50078b60ebb480be83385cc70b1b3a
[ "BSD-3-Clause" ]
null
null
null
glom/test/test_path_and_t.py
justinvanwinkle/glom
6451e9800b50078b60ebb480be83385cc70b1b3a
[ "BSD-3-Clause" ]
null
null
null
glom/test/test_path_and_t.py
justinvanwinkle/glom
6451e9800b50078b60ebb480be83385cc70b1b3a
[ "BSD-3-Clause" ]
null
null
null
from pytest import raises from glom import glom, Path, S, T, A, PathAccessError, GlomError, BadSpec def test_list_path_access(): assert glom(list(range(10)), Path(1)) == 1 def test_path(): _obj = object() target = {'a': {'b.b': [None, {_obj: [None, None, 'd']}]}} assert glom(target, Path('a', 'b.b...
27.560669
108
0.570366
164
0.024898
0
0
0
0
0
0
1,803
0.273721
df5d5ba2560d1eb8c0481b8f8f3df57ed776d13a
83
py
Python
dissononce/dh/x448/private.py
dineshks1/dissononce
154297aba0e9fdedad9279278f748bd8e4f790c6
[ "MIT" ]
34
2019-04-18T03:35:51.000Z
2022-03-20T13:35:04.000Z
dissononce/dh/x448/private.py
dineshks1/dissononce
154297aba0e9fdedad9279278f748bd8e4f790c6
[ "MIT" ]
2
2019-04-24T06:42:33.000Z
2019-07-17T19:40:40.000Z
dissononce/dh/x448/private.py
dineshks1/dissononce
154297aba0e9fdedad9279278f748bd8e4f790c6
[ "MIT" ]
16
2019-05-02T08:29:17.000Z
2021-12-06T22:50:37.000Z
from dissononce.dh import private class PrivateKey(private.PrivateKey): pass
13.833333
37
0.783133
46
0.554217
0
0
0
0
0
0
0
0
df5dac3db1c3737b475d3ae31df6900df6cb8e93
6,850
py
Python
main.py
BXRSRUDIOS/Shooter-Game
0df64e0e5852f51b7ad4f5bb8883e7207d867fc6
[ "MIT" ]
null
null
null
main.py
BXRSRUDIOS/Shooter-Game
0df64e0e5852f51b7ad4f5bb8883e7207d867fc6
[ "MIT" ]
null
null
null
main.py
BXRSRUDIOS/Shooter-Game
0df64e0e5852f51b7ad4f5bb8883e7207d867fc6
[ "MIT" ]
null
null
null
from pygame import * from random import randint import json #fonts and captions font.init() font1 = font.SysFont('Comic Sans', 60) win = font1.render('Dam you actually poggers', True, (255, 255, 255)) lose = font1.render('Yeah you suck, you lost', True, (180, 0, 0)) font2 = font.SysFont('Comic Sans', 36) ammo_lose ...
29.148936
94
0.625109
1,719
0.250949
0
0
0
0
0
0
1,499
0.218832
df5faeaade38723b81e813a93ac912c8c14cd092
863
py
Python
lib_bgp_data/collectors/traceroutes/tables.py
jfuruness/lib_bgp_data
25f7d57b9e2101c7aefb325e8d728bd91f47d557
[ "BSD-3-Clause" ]
16
2018-09-24T05:10:03.000Z
2021-11-29T19:18:59.000Z
lib_bgp_data/collectors/traceroutes/tables.py
jfuruness/lib_bgp_data
25f7d57b9e2101c7aefb325e8d728bd91f47d557
[ "BSD-3-Clause" ]
4
2019-10-09T18:54:17.000Z
2021-03-05T14:02:50.000Z
lib_bgp_data/collectors/traceroutes/tables.py
jfuruness/lib_bgp_data
25f7d57b9e2101c7aefb325e8d728bd91f47d557
[ "BSD-3-Clause" ]
3
2018-09-17T17:35:18.000Z
2020-03-24T16:03:31.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import logging from ...utils.database import Generic_Table class ROAs_Table(Generic_Table): """Announcements table class""" __slots__ = [] name = "roas" columns = ["asn", "prefix", "max_length", "created_at"] def _create_tables(self): """...
24.657143
64
0.579374
752
0.871379
0
0
0
0
0
0
518
0.600232
df616c1c677615ca6b5710038c78f36aa08da811
5,880
py
Python
install/app_store/tk-multi-about/v0.2.7/python/tk_multi_about/dialog.py
JoanAzpeitia/lp_sg
e0ee79555e419dd2ae3a5f31e5515b3f40b22a62
[ "MIT" ]
null
null
null
install/app_store/tk-multi-about/v0.2.7/python/tk_multi_about/dialog.py
JoanAzpeitia/lp_sg
e0ee79555e419dd2ae3a5f31e5515b3f40b22a62
[ "MIT" ]
null
null
null
install/app_store/tk-multi-about/v0.2.7/python/tk_multi_about/dialog.py
JoanAzpeitia/lp_sg
e0ee79555e419dd2ae3a5f31e5515b3f40b22a62
[ "MIT" ]
1
2020-02-15T10:42:56.000Z
2020-02-15T10:42:56.000Z
# Copyright (c) 2013 Shotgun Software Inc. # # CONFIDENTIAL AND PROPRIETARY # # This work is provided "AS IS" and subject to the Shotgun Pipeline Toolkit # Source Code License included in this distribution package. See LICENSE. # By accessing, using, copying or modifying this work you indicate your # agreement to t...
34.385965
101
0.584354
5,236
0.890476
0
0
0
0
0
0
1,715
0.291667
df61b88c89a2f284a18232a1fc105ff2477b2b45
4,665
py
Python
FHIR_Tester_backend/services/monkey/MonkeyInterpreter.py
ideaworld/FHIR_Tester
62844af2de510b65535df5ae60da03a082097df0
[ "MIT" ]
null
null
null
FHIR_Tester_backend/services/monkey/MonkeyInterpreter.py
ideaworld/FHIR_Tester
62844af2de510b65535df5ae60da03a082097df0
[ "MIT" ]
4
2020-06-05T17:40:18.000Z
2022-02-11T03:38:16.000Z
FHIR_Tester_backend/services/monkey/MonkeyInterpreter.py
bowen1993/FHIR_Tester
62844af2de510b65535df5ae60da03a082097df0
[ "MIT" ]
1
2016-11-22T01:04:16.000Z
2016-11-22T01:04:16.000Z
from CodeGenerator import * class MonkeyInterpreter: def __init__(self, prog, filename="", identify="", base_path=""): self.prog = prog self.func_table = {} self.code_str = '' self.filename = filename self.url = '' self.driver = '' self.indent = 0 self...
35.075188
174
0.569132
4,637
0.993998
0
0
0
0
0
0
1,153
0.24716
df61ee34acb06ae49cb7ec1c9a176bab65771caa
3,619
py
Python
arviz/plots/backends/matplotlib/distcomparisonplot.py
sudojarvis/arviz
73531be4f23df7d764b2e3bec8c5ef5cb882590d
[ "Apache-2.0" ]
1,159
2018-04-03T08:50:54.000Z
2022-03-31T18:03:52.000Z
arviz/plots/backends/matplotlib/distcomparisonplot.py
sudojarvis/arviz
73531be4f23df7d764b2e3bec8c5ef5cb882590d
[ "Apache-2.0" ]
1,656
2018-03-23T14:15:05.000Z
2022-03-31T14:00:28.000Z
arviz/plots/backends/matplotlib/distcomparisonplot.py
sudojarvis/arviz
73531be4f23df7d764b2e3bec8c5ef5cb882590d
[ "Apache-2.0" ]
316
2018-04-03T14:25:52.000Z
2022-03-25T10:41:29.000Z
"""Matplotlib Density Comparison plot.""" import matplotlib.pyplot as plt import numpy as np from ...distplot import plot_dist from ...plot_utils import _scale_fig_size from . import backend_kwarg_defaults, backend_show def plot_dist_comparison( ax, nvars, ngroups, figsize, dc_plotters, legen...
29.663934
97
0.584692
0
0
0
0
0
0
0
0
523
0.144515
df622c6b331e5a543976b1e74365b5b1c5deac19
1,027
py
Python
migrations/versions/1a869ac514c_.py
isabella232/comport
117123862415261095a917ed7f2037c1f986b474
[ "BSD-3-Clause" ]
35
2015-11-14T18:32:45.000Z
2022-01-23T15:15:05.000Z
migrations/versions/1a869ac514c_.py
codeforamerica/comport
117123862415261095a917ed7f2037c1f986b474
[ "BSD-3-Clause" ]
119
2015-11-20T22:45:34.000Z
2022-02-10T23:02:36.000Z
migrations/versions/1a869ac514c_.py
isabella232/comport
117123862415261095a917ed7f2037c1f986b474
[ "BSD-3-Clause" ]
19
2015-11-20T20:41:52.000Z
2022-01-26T04:12:34.000Z
"""empty message Revision ID: 1a869ac514c Revises: 52887f8e06b Create Date: 2015-09-29 11:06:57.293537 """ # revision identifiers, used by Alembic. revision = '1a869ac514c' down_revision = '52887f8e06b' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - plea...
28.527778
65
0.686465
0
0
0
0
0
0
0
0
430
0.418695
df656759ef9cfb9cda2ab717e57721e5c9991075
6,213
py
Python
site_scons/grouptest.py
svn2github/Escript
9c616a3b164446c65d4b8564ecd04fafd7dcf0d2
[ "Apache-2.0" ]
null
null
null
site_scons/grouptest.py
svn2github/Escript
9c616a3b164446c65d4b8564ecd04fafd7dcf0d2
[ "Apache-2.0" ]
1
2019-01-14T03:07:43.000Z
2019-01-14T03:07:43.000Z
site_scons/grouptest.py
svn2github/Escript
9c616a3b164446c65d4b8564ecd04fafd7dcf0d2
[ "Apache-2.0" ]
null
null
null
############################################################################## # # Copyright (c) 2003-2018 by The University of Queensland # http://www.uq.edu.au # # Primary Business: Queensland, Australia # Licensed under the Apache License, version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # # Development unti...
39.573248
146
0.574441
5,283
0.850314
0
0
0
0
0
0
3,269
0.526155
df6602339dcbf026d961630c8f4e5ef6a2e16385
2,708
py
Python
setup.py
wusung/ipython-notebook-tabs
ee7b3922c7d01cf6182bce63ef69e8a20f7229f9
[ "Apache-2.0" ]
null
null
null
setup.py
wusung/ipython-notebook-tabs
ee7b3922c7d01cf6182bce63ef69e8a20f7229f9
[ "Apache-2.0" ]
null
null
null
setup.py
wusung/ipython-notebook-tabs
ee7b3922c7d01cf6182bce63ef69e8a20f7229f9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys import re try: from setuptools import setup, find_packages except ImportError: from distutils.core import setup, find_packages # Backwards compatibility for Python 2.x try: from itertools import ifilter filter = ifilter except Impor...
29.758242
79
0.621492
0
0
0
0
0
0
0
0
1,277
0.471566
df69bf1dcf080485d6aacd665889f3da20ecf986
1,791
py
Python
list7/decoder.py
luk9400/kodowanie
042ac9eb324b55ec02ad0108e77cf8c80c16d82c
[ "MIT" ]
null
null
null
list7/decoder.py
luk9400/kodowanie
042ac9eb324b55ec02ad0108e77cf8c80c16d82c
[ "MIT" ]
null
null
null
list7/decoder.py
luk9400/kodowanie
042ac9eb324b55ec02ad0108e77cf8c80c16d82c
[ "MIT" ]
null
null
null
from sys import argv G = [ "00000000", "11010010", "01010101", "10000111", "10011001", "01001011", "11001100", "00011110", "11100001", "00110011", "10110100", "01100110", "01111000", "10101010", "00101101", "11111111", ] errors = 0 def from_hamming(bit...
19.467391
82
0.45952
0
0
0
0
0
0
0
0
238
0.132738
df6ab267b27cf156ebd687d010ea932b0b451fd7
1,520
py
Python
kfdata/tests/test_attribute.py
kylef-archive/KFData.py
685d58255c9f8518834e395d94d3b75d3dd3eceb
[ "BSD-3-Clause" ]
1
2015-11-08T13:23:39.000Z
2015-11-08T13:23:39.000Z
kfdata/tests/test_attribute.py
kylef/KFData.py
685d58255c9f8518834e395d94d3b75d3dd3eceb
[ "BSD-3-Clause" ]
null
null
null
kfdata/tests/test_attribute.py
kylef/KFData.py
685d58255c9f8518834e395d94d3b75d3dd3eceb
[ "BSD-3-Clause" ]
null
null
null
import unittest from kfdata.attributes import Attribute, NumberAttribute, BooleanAttribute class AttributeTests(unittest.TestCase): def setUp(self): self.attribute = Attribute(name='firstName', is_indexed=True, is_optional=False) def test_creation(self): self.assertEqual(self.attribute.name,...
35.348837
88
0.718421
1,420
0.934211
0
0
0
0
0
0
97
0.063816
df6acc88067fd0d6c4d32d01e3f30d88b50e8f50
8,589
py
Python
fucker.py
MacsedSub/ZBH-Fucker
c39381ef5331fd11924c0ec7f0b76bea46ed98b3
[ "MIT" ]
4
2020-01-21T09:49:29.000Z
2021-02-07T00:39:03.000Z
fucker.py
MacsedSub/ZBH-Fucker
c39381ef5331fd11924c0ec7f0b76bea46ed98b3
[ "MIT" ]
null
null
null
fucker.py
MacsedSub/ZBH-Fucker
c39381ef5331fd11924c0ec7f0b76bea46ed98b3
[ "MIT" ]
2
2020-12-08T07:20:10.000Z
2020-12-29T10:29:36.000Z
import threading # 多线程模块 import queue # 队列模块 import requests import time import random import json import os import re import traceback from urllib.parse import quote from config import fakeVisitorCount from config import startUserID from config import spreadToken from config import UAs from config import province from...
36.862661
375
0.461288
8,361
0.897392
0
0
0
0
0
0
2,099
0.225287
df6be0074b0c935074c3035e1e691a3882bcdeeb
5,973
py
Python
hs_composite_resource/tests/test_composite_resource_user_zone.py
tommac7/hydroshare
87c4543a55f98103d2614bf4c47f7904c3f9c029
[ "BSD-3-Clause" ]
null
null
null
hs_composite_resource/tests/test_composite_resource_user_zone.py
tommac7/hydroshare
87c4543a55f98103d2614bf4c47f7904c3f9c029
[ "BSD-3-Clause" ]
null
null
null
hs_composite_resource/tests/test_composite_resource_user_zone.py
tommac7/hydroshare
87c4543a55f98103d2614bf4c47f7904c3f9c029
[ "BSD-3-Clause" ]
null
null
null
import os from django.test import TransactionTestCase from django.contrib.auth.models import Group from django.conf import settings from hs_core import hydroshare from hs_core.models import BaseResource from hs_core.hydroshare.utils import resource_file_add_process, resource_file_add_pre_process from hs_core.views.ut...
51.051282
99
0.697807
5,519
0.923991
0
0
0
0
0
0
1,712
0.286623
df6c0d5895a889ba43d3854f304957c6a4db6d15
2,310
py
Python
tests/test_compat.py
eisensheng/pytest-catchlog
f6b05b0afb8f8934b33e0c78a495ebfd8b3599d6
[ "MIT" ]
85
2015-02-24T20:14:30.000Z
2021-04-29T09:07:59.000Z
tests/test_compat.py
eisensheng/pytest-catchlog
f6b05b0afb8f8934b33e0c78a495ebfd8b3599d6
[ "MIT" ]
67
2015-04-22T16:07:47.000Z
2020-03-19T14:14:19.000Z
tests/test_compat.py
eisensheng/pytest-catchlog
f6b05b0afb8f8934b33e0c78a495ebfd8b3599d6
[ "MIT" ]
25
2015-05-17T15:22:55.000Z
2019-01-07T09:21:24.000Z
# -*- coding: utf-8 -*- import pytest def test_camel_case_aliases(testdir): testdir.makepyfile(''' import logging logger = logging.getLogger(__name__) def test_foo(caplog): caplog.setLevel(logging.INFO) logger.debug('boo!') with caplog.atLevel(logging...
28.518519
77
0.59697
0
0
0
0
0
0
0
0
1,645
0.712121
df6d8794143baa565bed712b5539fdd5723cacc2
968
py
Python
ectrello/commands/board.py
hadi-alnehlawi/ECTRELLI-PYPI
c06c25a6b2ae823d16b426190f58005414a756fd
[ "MIT" ]
null
null
null
ectrello/commands/board.py
hadi-alnehlawi/ECTRELLI-PYPI
c06c25a6b2ae823d16b426190f58005414a756fd
[ "MIT" ]
null
null
null
ectrello/commands/board.py
hadi-alnehlawi/ECTRELLI-PYPI
c06c25a6b2ae823d16b426190f58005414a756fd
[ "MIT" ]
null
null
null
import click from trello.client import Client key = "0581b1db0a42258051a8a25fb301e247" token = "e6985b1a4afdfb4168814ca486e76ff704e171d5751ce9db8c96731f8b1cc0cb" client = Client(key, token) show_help = """ \n TEXT=all show all boards.\n TEXT=first show first board.\n TEXT=last show last board.\n """ @click.command...
24.820513
74
0.637397
0
0
0
0
661
0.682851
0
0
320
0.330579
df6daf1f508afcbdd19a3d77ece59a5c6974f4e9
1,706
py
Python
main.py
prozum/mastermixer
e858ea60e10d3e3d02c934b3b1d277856acbdb4c
[ "MIT" ]
null
null
null
main.py
prozum/mastermixer
e858ea60e10d3e3d02c934b3b1d277856acbdb4c
[ "MIT" ]
null
null
null
main.py
prozum/mastermixer
e858ea60e10d3e3d02c934b3b1d277856acbdb4c
[ "MIT" ]
null
null
null
from sqlite3 import dbapi2 as sqlite3 from libliquor import Actuator,Ranger,Mixer config = dict( DEBUG=True, DATABASE='/tmp/flaskr.db', ) # Setup objects if not config["DEBUG"]: motor = Actuator(10) piston = Actuator(11) valves = [Actuator(12), Actuator(13)] rangers = [Ranger(0), Ranger(1)...
25.088235
123
0.613716
0
0
0
0
0
0
0
0
411
0.240914
df6ed2183ff909d2ec6fe9857be8189e0bccd3ed
572
py
Python
conftest.py
Shy/migration-env-demo
3290dbbc933c727f6c92b08cb476d34b95b16d6d
[ "MIT" ]
1
2018-05-17T17:41:02.000Z
2018-05-17T17:41:02.000Z
conftest.py
Shy/migration-env-demo
3290dbbc933c727f6c92b08cb476d34b95b16d6d
[ "MIT" ]
4
2018-05-29T04:27:11.000Z
2018-05-29T15:47:20.000Z
conftest.py
Shy/migration-env-demo
3290dbbc933c727f6c92b08cb476d34b95b16d6d
[ "MIT" ]
null
null
null
# conftest.py import pytest import os from myapp import create_app, create_contentful from dotenv import load_dotenv load_dotenv() SPACE_ID = os.getenv("SPACE_ID") DELIVERY_API_KEY = os.getenv("DELIVERY_API_KEY") TESTING_ENV = "circle_testing" @pytest.fixture def app(): app = create_app(SPACE_ID, DELIVERY_API_K...
21.185185
76
0.769231
0
0
0
0
320
0.559441
0
0
57
0.09965
df6fa3edddb6528b81a9ef12ac57b8e80546f328
1,454
py
Python
db.py
L1mPeX/Casino-Bot
b08be7be75854cc2e386906a9ef8ee3ab768ae78
[ "MIT" ]
2
2020-11-21T17:33:32.000Z
2021-08-17T16:52:57.000Z
db.py
L1mPeX/Casino-Bot
b08be7be75854cc2e386906a9ef8ee3ab768ae78
[ "MIT" ]
null
null
null
db.py
L1mPeX/Casino-Bot
b08be7be75854cc2e386906a9ef8ee3ab768ae78
[ "MIT" ]
null
null
null
#!/usr/bin/python3.6 import sqlite3 def make_connect(): conn = sqlite3.connect("bot.db") cursor = conn.cursor() return conn, cursor def create_tables(): conn, cursor = make_connect() try: cursor.execute("CREATE TABLE users(user_id INTEGER, bal FLOAT, count_games INTEGER, sum_games FLOAT, ref...
32.311111
178
0.658184
0
0
0
0
0
0
0
0
751
0.516506
df709514b8d346cc0a38a3bd3f1378bb77a71fa2
4,561
py
Python
tests/unit-tests/test_rst_lists.py
hazemelraffiee/confluencebuilder
c283e7fb513c156b9b6e0ba3694fc3e0468a74c9
[ "BSD-2-Clause" ]
90
2016-07-21T00:39:19.000Z
2019-03-08T08:27:17.000Z
tests/unit-tests/test_rst_lists.py
hazemelraffiee/confluencebuilder
c283e7fb513c156b9b6e0ba3694fc3e0468a74c9
[ "BSD-2-Clause" ]
124
2016-10-18T20:06:48.000Z
2019-03-08T04:41:53.000Z
tests/unit-tests/test_rst_lists.py
hazemelraffiee/confluencebuilder
c283e7fb513c156b9b6e0ba3694fc3e0468a74c9
[ "BSD-2-Clause" ]
39
2016-07-21T00:39:52.000Z
2019-03-06T14:33:31.000Z
# -*- coding: utf-8 -*- """ :copyright: Copyright 2020-2022 Sphinx Confluence Builder Contributors (AUTHORS) :license: BSD-2-Clause (LICENSE) """ from tests.lib.testcase import ConfluenceTestCase from tests.lib.testcase import setup_builder from tests.lib import parse import os class TestConfluenceRstLists(Confluenc...
40.362832
80
0.557772
4,278
0.937952
0
0
4,218
0.924797
0
0
1,057
0.231747
df72a98051b9545e547ff5e6b00c007b9064d190
422
py
Python
src/cira_am/config.py
quistian/dns-firewall
d99e77a763f06bb0ec81192dffa534c0c3b3e30c
[ "BSD-2-Clause" ]
1
2021-11-16T15:23:46.000Z
2021-11-16T15:23:46.000Z
src/cira_am/config.py
quistian/dns-firewall
d99e77a763f06bb0ec81192dffa534c0c3b3e30c
[ "BSD-2-Clause" ]
null
null
null
src/cira_am/config.py
quistian/dns-firewall
d99e77a763f06bb0ec81192dffa534c0c3b3e30c
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python ''' Global Variables convention: * start with UpperCase * have no _ character * may have mid UpperCase words ''' Debug = True Silent = True Verbose = False CustomerName = 'customer_name' AuthHeader = {'Content-Type': 'application/json'} BaseURL = "https://firewall-api.d-zone.ca" ...
19.181818
100
0.7109
0
0
0
0
0
0
0
0
316
0.748815
df7519102fb79f7448397cf68ad58cb1a141e426
652
py
Python
安装三方库.py
gaoguole/ctpgao
bb5a521d4e12f0cb318999e599f2e110b03915da
[ "MIT" ]
73
2020-10-12T02:15:04.000Z
2022-03-30T10:00:25.000Z
安装三方库.py
TiantangX/ctpgao
bb5a521d4e12f0cb318999e599f2e110b03915da
[ "MIT" ]
5
2020-10-15T08:56:44.000Z
2020-11-19T04:16:30.000Z
安装三方库.py
TiantangX/ctpgao
bb5a521d4e12f0cb318999e599f2e110b03915da
[ "MIT" ]
16
2020-10-12T02:15:22.000Z
2021-12-23T00:35:22.000Z
import os os.system("pip install tqsdk -i https://pypi.tuna.tsinghua.edu.cn/simple") os.system("pip install numba -i https://pypi.tuna.tsinghua.edu.cn/simple") os.system("pip install janus -i https://pypi.tuna.tsinghua.edu.cn/simple") os.system("pip install redis -i https://pypi.tuna.tsinghua.edu.cn/simple") os...
65.2
100
0.739264
0
0
0
0
0
0
0
0
536
0.822086
df772962564e76e30a2b4e2a05a98491303c2ed2
5,776
py
Python
smartystreets_python_sdk/client_builder.py
jasonrfarkas/smartystreets-python-sdk
bcb94efc09c795222eb1bd85544073a6cc063a46
[ "Apache-2.0" ]
null
null
null
smartystreets_python_sdk/client_builder.py
jasonrfarkas/smartystreets-python-sdk
bcb94efc09c795222eb1bd85544073a6cc063a46
[ "Apache-2.0" ]
null
null
null
smartystreets_python_sdk/client_builder.py
jasonrfarkas/smartystreets-python-sdk
bcb94efc09c795222eb1bd85544073a6cc063a46
[ "Apache-2.0" ]
null
null
null
import smartystreets_python_sdk as smarty from smartystreets_python_sdk.us_street import Client as USStreetClient from smartystreets_python_sdk.us_zipcode import Client as USZIPClient from smartystreets_python_sdk.us_extract import Client as USExtractClient from smartystreets_python_sdk.us_autocomplete import Client as...
38
113
0.691136
5,337
0.923996
0
0
0
0
0
0
2,213
0.383137
df77d20b06e6fc4fab68bc80bf0e87b46ceb6892
14,294
py
Python
src/util.py
uguryagmur/RealTimeObjectDetection
e54d153266c6b4f54a49266fe05ceca13ebe3cdd
[ "MIT" ]
null
null
null
src/util.py
uguryagmur/RealTimeObjectDetection
e54d153266c6b4f54a49266fe05ceca13ebe3cdd
[ "MIT" ]
null
null
null
src/util.py
uguryagmur/RealTimeObjectDetection
e54d153266c6b4f54a49266fe05ceca13ebe3cdd
[ "MIT" ]
null
null
null
"""Utility functions for Object Detection Networks""" from __future__ import division import cv2 import torch import numpy as np from PIL import Image, ImageDraw def xyxy2xywh(box: torch.Tensor) -> torch.Tensor: """ Returns the xywh format of the input bounding box tensor Arguments: ...
34.694175
81
0.591787
0
0
0
0
0
0
0
0
5,718
0.400028
df7a2150324a753c57fa8af8c06a9e46c60e1d9b
5,512
py
Python
model/warp.py
askerlee/rift
d4dbf42b82f1f83dfab18f8da8fe3a1d0a716fa2
[ "MIT" ]
11
2022-02-14T08:31:04.000Z
2022-03-29T08:20:17.000Z
model/warp.py
askerlee/rift
d4dbf42b82f1f83dfab18f8da8fe3a1d0a716fa2
[ "MIT" ]
3
2022-02-14T11:19:15.000Z
2022-03-19T05:11:25.000Z
model/warp.py
askerlee/rift
d4dbf42b82f1f83dfab18f8da8fe3a1d0a716fa2
[ "MIT" ]
null
null
null
import torch import torch.nn as nn device = torch.device("cuda" if torch.cuda.is_available() else "cpu") # Precomputed coordinate grids dictionary, with (tensor device, tensor size) as the keys. backwarp_tenGrid = {} # backwarp and multiwarp are doing backward warping using the forward flow. # backwarp feature maps a...
48.778761
126
0.646589
0
0
0
0
0
0
0
0
1,811
0.328556
df7cecff3f2a6d3cc5c868cae77bf8a3ce21f622
1,302
py
Python
api/models.py
UAACC/pro
c5424574427ac3521cb70b0d62b841fa128f5166
[ "MIT" ]
null
null
null
api/models.py
UAACC/pro
c5424574427ac3521cb70b0d62b841fa128f5166
[ "MIT" ]
null
null
null
api/models.py
UAACC/pro
c5424574427ac3521cb70b0d62b841fa128f5166
[ "MIT" ]
null
null
null
from django.db import models from django.utils import timezone from django.contrib.auth.models import AbstractUser class Author(models.Model): username = models.CharField(max_length=50, unique=True) display_name = models.CharField(max_length=50, null=True, blank=True) email = models.EmailField(null=True, b...
39.454545
93
0.740399
892
0.6851
0
0
0
0
0
0
300
0.230415
df7d22a849c97e60605eb8e66647c84ea4d9d627
3,705
py
Python
miniworld/model/network/interface/Interfaces.py
miniworld-project/miniworld_core
c591bad232b78eae99e8f55cb1b907c1e228484b
[ "MIT" ]
5
2019-05-11T14:57:15.000Z
2021-07-05T00:35:25.000Z
miniworld/model/network/interface/Interfaces.py
miniworld-project/miniworld_core
c591bad232b78eae99e8f55cb1b907c1e228484b
[ "MIT" ]
27
2017-03-17T07:11:02.000Z
2019-05-26T23:36:56.000Z
miniworld/model/network/interface/Interfaces.py
miniworld-project/miniworld_core
c591bad232b78eae99e8f55cb1b907c1e228484b
[ "MIT" ]
6
2017-05-03T12:11:33.000Z
2020-04-03T11:44:27.000Z
from collections import defaultdict from miniworld.errors import InterfaceUnknown from miniworld.model.Objects import Objects from miniworld.model.network.interface.Interface import INTERFACE_NORMAL_CLASSES_TYPES, INTERFACE_NAME_TYPE_MAPPING, AP, Mesh __author__ = 'Nils Schmidt' class Interfaces(Objects): """ ...
29.173228
128
0.634008
3,046
0.822132
0
0
1,960
0.529015
0
0
1,387
0.374359
df7edd38a1a100de662fe567b387d768f816c859
1,354
py
Python
tests/test_distgit/test_convert_source_url_to_https.py
sosiouxme/doozer
9658169207773f9c228ad011f611867a4a9d5a77
[ "Apache-2.0" ]
null
null
null
tests/test_distgit/test_convert_source_url_to_https.py
sosiouxme/doozer
9658169207773f9c228ad011f611867a4a9d5a77
[ "Apache-2.0" ]
null
null
null
tests/test_distgit/test_convert_source_url_to_https.py
sosiouxme/doozer
9658169207773f9c228ad011f611867a4a9d5a77
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import, print_function, unicode_literals import unittest from doozerlib import distgit class TestDistgitConvertSourceURLToHTTPS(unittest.TestCase): def test_conversion_from_ssh_source(self): source = "git@github.com:myorg/myproject.git" actual = distgit.convert_so...
31.488372
72
0.728951
1,183
0.873708
0
0
0
0
0
0
310
0.228951
df808bedd7a5f0f877dd0614ac4bd0dfb3f89587
441
py
Python
KnowledgeMapping/SpiderExp/4-Function/openSSLExp/3.py
nickliqian/ralph_doc_to_chinese
be120ce2bb94a8e8395630218985f5e51ae087d9
[ "MIT" ]
8
2018-05-22T01:11:33.000Z
2020-03-19T01:44:55.000Z
KnowledgeMapping/SpiderExp/4-Function/openSSLExp/3.py
yangliangguang/keep_learning
47ab39c726cb28713ad22bf4cf39d6b146715910
[ "MIT" ]
null
null
null
KnowledgeMapping/SpiderExp/4-Function/openSSLExp/3.py
yangliangguang/keep_learning
47ab39c726cb28713ad22bf4cf39d6b146715910
[ "MIT" ]
3
2018-07-25T09:31:53.000Z
2019-09-14T14:05:31.000Z
import requests import ssl from requests.adapters import HTTPAdapter, PoolManager class MyAdapter(HTTPAdapter): def init_poolmanager(self, connections, maxsize): super(MyAdapter, self).__init__() self.poolmanager = PoolManager(num_pools=connections, maxsize=maxsize, ssl_version=ssl.PROTOCOL_SSLv3)...
29.4
110
0.75737
236
0.511931
0
0
0
0
0
0
82
0.177874
df81e1d9539d033063a2a56dbeb862075f49347e
798
py
Python
weighmail/observers/__init__.py
gremmie/weighmail
d20b5ab3ef9556a3e7a4a06875c4ca69c22fe31d
[ "BSD-3-Clause" ]
null
null
null
weighmail/observers/__init__.py
gremmie/weighmail
d20b5ab3ef9556a3e7a4a06875c4ca69c22fe31d
[ "BSD-3-Clause" ]
null
null
null
weighmail/observers/__init__.py
gremmie/weighmail
d20b5ab3ef9556a3e7a4a06875c4ca69c22fe31d
[ "BSD-3-Clause" ]
null
null
null
"""Base observer class for weighmail operations. """ class BaseObserver(object): """Base observer class; does nothing.""" def searching(self, label): """Called when the search process has started for a label""" pass def labeling(self, label, count): """Called when the labelling p...
24.181818
74
0.601504
742
0.929825
0
0
0
0
0
0
538
0.674185
df84089eac65b59082205d83c06cd6c272f90434
145
py
Python
banks/apps.py
lauriefacer/Facer
ff9f5ca4af302926fed49a4b9b442ff00ea212be
[ "MIT" ]
null
null
null
banks/apps.py
lauriefacer/Facer
ff9f5ca4af302926fed49a4b9b442ff00ea212be
[ "MIT" ]
null
null
null
banks/apps.py
lauriefacer/Facer
ff9f5ca4af302926fed49a4b9b442ff00ea212be
[ "MIT" ]
null
null
null
from django.apps import AppConfig class BanksConfig(AppConfig): name = 'banks' class DatatableView(AppConfig): name = 'datatableview'
16.111111
33
0.737931
106
0.731034
0
0
0
0
0
0
22
0.151724
df84e85ea375a45ff61026ef8e92ba96e7e0f291
426
py
Python
assessment/migrations/0010_assessment_open_status.py
sravanireddy1102/peerevaluationsystem
3dc46447a6b3b581e8738db58e7b861c421cdc0f
[ "MIT" ]
2
2020-06-17T15:17:19.000Z
2020-10-06T08:03:29.000Z
assessment/migrations/0010_assessment_open_status.py
sravanireddy1102/peerevaluationsystem
3dc46447a6b3b581e8738db58e7b861c421cdc0f
[ "MIT" ]
3
2021-03-30T13:33:22.000Z
2021-06-04T23:21:52.000Z
assessment/migrations/0010_assessment_open_status.py
YichengShen/EaglesPeerEvaluationSystem
853e35bf569efb87dc56064e6ec44a4e3c95c537
[ "MIT" ]
1
2022-01-02T07:01:37.000Z
2022-01-02T07:01:37.000Z
# Generated by Django 3.0.2 on 2020-04-29 20:22 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('assessment', '0009_auto_20200426_1103'), ] operations = [ migrations.AddField( model_name='assessment', name='open_s...
22.421053
80
0.622066
333
0.78169
0
0
0
0
0
0
122
0.286385
df8883bf266f2a644d25c10b6a4793fb6917cb40
950
py
Python
opyoid/bindings/instance_binding/instance_binding_to_provider_adapter.py
illuin-tech/opyoid
a2ca485e1820ba0d12a86ba91100aa097a1e5736
[ "MIT" ]
37
2020-08-25T07:22:41.000Z
2022-03-18T03:05:53.000Z
opyoid/bindings/instance_binding/instance_binding_to_provider_adapter.py
illuin-tech/opyoid
a2ca485e1820ba0d12a86ba91100aa097a1e5736
[ "MIT" ]
18
2020-10-04T17:33:24.000Z
2021-12-16T16:28:35.000Z
opyoid/bindings/instance_binding/instance_binding_to_provider_adapter.py
illuin-tech/opyoid
a2ca485e1820ba0d12a86ba91100aa097a1e5736
[ "MIT" ]
2
2021-01-26T19:58:15.000Z
2021-11-30T01:10:25.000Z
from opyoid.bindings.binding import Binding from opyoid.bindings.binding_to_provider_adapter import BindingToProviderAdapter from opyoid.bindings.registered_binding import RegisteredBinding from opyoid.injection_context import InjectionContext from opyoid.provider import Provider from opyoid.utils import InjectedT from...
45.238095
96
0.807368
528
0.555789
0
0
0
0
0
0
49
0.051579
df8935cb314bb24e9c12282a7a762c31e2106abf
307
py
Python
backend/src/asset_manager/data/repos/license.py
JonathanLoscalzo/asset-license-dev-demo
522c1d531e508ae7e85b212f804eee505d284b2b
[ "Xnet", "X11" ]
null
null
null
backend/src/asset_manager/data/repos/license.py
JonathanLoscalzo/asset-license-dev-demo
522c1d531e508ae7e85b212f804eee505d284b2b
[ "Xnet", "X11" ]
null
null
null
backend/src/asset_manager/data/repos/license.py
JonathanLoscalzo/asset-license-dev-demo
522c1d531e508ae7e85b212f804eee505d284b2b
[ "Xnet", "X11" ]
null
null
null
from pymongo.database import Database from asset_manager.data.repos.base import MongoRepository from asset_manager.data.schemas.license import LicenseMongo class LicenseRepository(MongoRepository[LicenseMongo]): def __init__(self, db: Database): super().__init__(db, "licenses", LicenseMongo)
34.111111
59
0.801303
148
0.482085
0
0
0
0
0
0
10
0.032573
df8a62c0847934ac75248a075f1ad448f85f7372
1,347
py
Python
build_utils/salt_utils.py
maharg101/gdl-100-provision
71651d1f6dd40de841f99cb9a6d1accb16ea39c1
[ "Apache-2.0" ]
null
null
null
build_utils/salt_utils.py
maharg101/gdl-100-provision
71651d1f6dd40de841f99cb9a6d1accb16ea39c1
[ "Apache-2.0" ]
1
2021-06-01T21:55:56.000Z
2021-06-01T21:55:56.000Z
build_utils/salt_utils.py
maharg101/gdl-100-provision
71651d1f6dd40de841f99cb9a6d1accb16ea39c1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ salt_utils.py Description: Utility methods for configuration of Salt Cloud. Written by: maharg101 on 27th March 2018 """ import io import yaml def generate_openstack_conf(params): """ Generate an openstack.conf file-like given the supplied params dict. :param params: A dicti...
34.538462
106
0.64588
0
0
0
0
0
0
0
0
546
0.405345
df8bdf1b9de14fdae803f684cecb7551ddf157c2
6,102
py
Python
Scripts/Topology_Generator/top_gen.py
LABORA-INF-UFG/eXP-RAN
b36df30d9f8a39bc76343a1f6f206181dc424561
[ "MIT" ]
6
2021-02-26T13:50:58.000Z
2022-03-08T13:30:16.000Z
Scripts/Topology_Generator/top_gen.py
LABORA-INF-UFG/eXP-RAN
b36df30d9f8a39bc76343a1f6f206181dc424561
[ "MIT" ]
1
2021-09-19T17:45:11.000Z
2021-09-19T17:45:11.000Z
Scripts/Topology_Generator/top_gen.py
LABORA-INF-UFG/eXP-RAN
b36df30d9f8a39bc76343a1f6f206181dc424561
[ "MIT" ]
1
2020-06-20T02:11:16.000Z
2020-06-20T02:11:16.000Z
# -*- coding: utf-8 -*- import json import math import random import argparse import networkx as nx class Node: def __init__ (self, nodeNumber, nodeType): self.nodeNumber = nodeNumber self.nodeType = nodeType def add_vm (self, vm): if not hasattr(self,'vms'): self.vms = [] self.vms.append(vm) class VM:...
23.743191
91
0.67568
531
0.087021
0
0
0
0
0
0
549
0.089971
df8d73ce0b9ecd6d1a67506333d218eaea46a306
9,698
py
Python
gather/weighted_corr.py
mrJeppard/clusterdb-ingest
f52f3ee03a1071ef15a63412e1e2085fdf74e584
[ "MIT" ]
null
null
null
gather/weighted_corr.py
mrJeppard/clusterdb-ingest
f52f3ee03a1071ef15a63412e1e2085fdf74e584
[ "MIT" ]
null
null
null
gather/weighted_corr.py
mrJeppard/clusterdb-ingest
f52f3ee03a1071ef15a63412e1e2085fdf74e584
[ "MIT" ]
null
null
null
""" Weighted correlation of NES vectors. The idea is to weight positive values on either vector. Positive values """ import pandas as pd import numpy as np from scipy.spatial.distance import pdist from scipy.spatial.distance import squareform def m(x, w): """Weighted Mean""" return np.sum(x * w) / np.sum(w) ...
24.739796
108
0.642813
0
0
0
0
0
0
0
0
5,494
0.565343
df8e47912b6edd2b934d37e8bca40a26e9f732d8
1,138
py
Python
time_wizard/mixins.py
wfehr/django-time-wizard
d192f4aa9c9a15249e69fa47f3f41e9c048dc718
[ "BSD-2-Clause" ]
5
2019-10-08T08:23:25.000Z
2020-07-08T10:41:00.000Z
time_wizard/mixins.py
wfehr/django-time-wizard
d192f4aa9c9a15249e69fa47f3f41e9c048dc718
[ "BSD-2-Clause" ]
8
2019-07-06T13:14:58.000Z
2020-03-09T10:49:03.000Z
time_wizard/mixins.py
wfehr/django-time-wizard
d192f4aa9c9a15249e69fa47f3f41e9c048dc718
[ "BSD-2-Clause" ]
2
2020-01-28T14:14:09.000Z
2020-03-09T10:16:27.000Z
from django.contrib.contenttypes.fields import GenericRelation from django.db import models from django.utils.timezone import now class TimeWizardInlineMixin(models.Model): """ Mixin for the inline support of PeriodModel. """ periods = GenericRelation( 'time_wizard.PeriodModel', ) cla...
23.708333
79
0.633568
1,002
0.880492
0
0
330
0.289982
0
0
316
0.27768
df8eda08eeceb3a4e4b4d62b56b2aacf6a21c336
16,807
py
Python
highearthorbit.py
orithena/highearthorbit
a444dba54f6fdb5b84cf5bd4c3e24f4bd1796fb1
[ "MIT" ]
3
2017-06-17T10:13:38.000Z
2019-01-18T18:40:59.000Z
highearthorbit.py
orithena/highearthorbit
a444dba54f6fdb5b84cf5bd4c3e24f4bd1796fb1
[ "MIT" ]
null
null
null
highearthorbit.py
orithena/highearthorbit
a444dba54f6fdb5b84cf5bd4c3e24f4bd1796fb1
[ "MIT" ]
null
null
null
#!/usr/bin/python import twython, time, pprint, traceback, os, sys import config from twython import TwythonStreamer, TwythonError, TwythonRateLimitError import urllib, json, glob, re import thread queuelock = thread.allocate_lock() watchlock = thread.allocate_lock() import logging logging.basicConfig(filename='highea...
49.143275
208
0.606057
499
0.02969
0
0
0
0
0
0
5,819
0.346225
df8f367ee66d37324f8f4c0d32e288f6c1b4fb39
1,833
py
Python
migrations/versions/8b9f5b081137_.py
Rdbaker/betly
92c7ae41bd221bbd21997fcd13e0f38b48f66d7d
[ "BSD-3-Clause" ]
null
null
null
migrations/versions/8b9f5b081137_.py
Rdbaker/betly
92c7ae41bd221bbd21997fcd13e0f38b48f66d7d
[ "BSD-3-Clause" ]
null
null
null
migrations/versions/8b9f5b081137_.py
Rdbaker/betly
92c7ae41bd221bbd21997fcd13e0f38b48f66d7d
[ "BSD-3-Clause" ]
null
null
null
"""Creates the bet table and associates it with users. Revision ID: 8b9f5b081137 Revises: 19cabd29fb71 Create Date: 2016-08-27 17:29:41.137566 """ # revision identifiers, used by Alembic. revision = '8b9f5b081137' down_revision = '19cabd29fb71' from alembic import op import sqlalchemy as sa from sqlalchemy.dialects...
36.66
74
0.687398
0
0
0
0
0
0
0
0
659
0.35952
df92c2b640273d1fde6e35ef399b77e27ac3c838
6,847
py
Python
script.py
Relex12/mywebsite_jekyll
58a4536c3049f0f575b60dbcfb33789ea1a909ea
[ "MIT" ]
null
null
null
script.py
Relex12/mywebsite_jekyll
58a4536c3049f0f575b60dbcfb33789ea1a909ea
[ "MIT" ]
null
null
null
script.py
Relex12/mywebsite_jekyll
58a4536c3049f0f575b60dbcfb33789ea1a909ea
[ "MIT" ]
null
null
null
from os import path from os import system if (not path.exists("../Relex12.github.io/")): raise FileNotFoundError("Relex12.github.io directory not found") if (not path.exists("../Markdown-Table-of-Contents/")): raise FileNotFoundError("Markdown-Table-of-Contents directory not found") ##################...
67.792079
154
0.637505
0
0
0
0
0
0
0
0
5,330
0.778443
df938ddabcdb9ae4b9d826fa87e296dc1b34c69d
11,286
py
Python
scripts/clang_git_format/clang_git_format/repo.py
zarmomin/mrpt
1baff7cf8ec9fd23e1a72714553bcbd88c201966
[ "BSD-3-Clause" ]
9
2017-11-19T16:18:09.000Z
2020-07-16T02:13:43.000Z
scripts/clang_git_format/clang_git_format/repo.py
gao-ouyang/mrpt
4af5fdf7e45b00be4a64c3d4f009acb9ef415ec7
[ "BSD-3-Clause" ]
null
null
null
scripts/clang_git_format/clang_git_format/repo.py
gao-ouyang/mrpt
4af5fdf7e45b00be4a64c3d4f009acb9ef415ec7
[ "BSD-3-Clause" ]
4
2018-06-08T07:55:51.000Z
2022-02-22T08:56:28.000Z
from utils import callo import os import subprocess import re import logging logger = logging.getLogger("clang-format") class Repo(object): """Class encapsulates all knowledge about a git repository, and its metadata to run clang-format. """ def __init__(self, path, custom_regex="", dirs_in=[], dirs...
32.618497
80
0.589048
11,160
0.988836
0
0
1,084
0.096048
0
0
4,828
0.427787
df93ed3728e8d20bbc77012e16ddc613f4f0f3e2
5,909
py
Python
bot.py
jeonghunn/EverytimeBot
99b411adb11eeaec5c254805c759b63fa9934d3a
[ "MIT" ]
2
2019-07-23T03:10:58.000Z
2020-10-06T13:47:04.000Z
bot.py
jeonghunn/EverytimeBot
99b411adb11eeaec5c254805c759b63fa9934d3a
[ "MIT" ]
null
null
null
bot.py
jeonghunn/EverytimeBot
99b411adb11eeaec5c254805c759b63fa9934d3a
[ "MIT" ]
null
null
null
"""Simple Bot to reply to Telegram messages. This is built on the API wrapper, see echobot2.py to see the same example built on the telegram.ext bot framework. This program is dedicated to the public domain under the CC0 license. """ import logging import telegram import requests, json import traceback from time import...
35.596386
110
0.588255
0
0
0
0
0
0
0
0
2,446
0.376713
10c083bc2b320d261a43560fa1e3b71bb609880e
3,509
py
Python
apertools/log.py
scottstanie/apertools
f959d03038e77444204c1ff224ddd8357db3fc04
[ "MIT" ]
8
2020-02-22T15:44:20.000Z
2022-02-16T02:49:57.000Z
apertools/log.py
scottstanie/apertools
f959d03038e77444204c1ff224ddd8357db3fc04
[ "MIT" ]
null
null
null
apertools/log.py
scottstanie/apertools
f959d03038e77444204c1ff224ddd8357db3fc04
[ "MIT" ]
2
2020-11-02T15:04:15.000Z
2022-01-08T20:20:58.000Z
""" This module exports a Log class that wraps the logging python package Uses the standard python logging utilities, just provides nice formatting out of the box. Usage: from apertools.log import get_log logger = get_log() logger.info("Something happened") logger.warning("Something concerning happe...
25.992593
105
0.624964
0
0
0
0
431
0.122827
0
0
1,796
0.511827
10c1051c785132345aeb5a605fae2ff4baa5c6ec
2,387
py
Python
monitoring/notifications/tests.py
okozachenko1203/monasca-ui
9014bce3de6fed79f85b79ecf30031e6af7b7356
[ "Apache-2.0" ]
17
2015-10-18T02:54:57.000Z
2018-08-05T21:58:20.000Z
monitoring/notifications/tests.py
okozachenko1203/monasca-ui
9014bce3de6fed79f85b79ecf30031e6af7b7356
[ "Apache-2.0" ]
null
null
null
monitoring/notifications/tests.py
okozachenko1203/monasca-ui
9014bce3de6fed79f85b79ecf30031e6af7b7356
[ "Apache-2.0" ]
29
2016-07-07T01:27:01.000Z
2021-12-03T07:24:17.000Z
# 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, software # distributed u...
36.166667
76
0.668622
1,465
0.613741
0
0
0
0
0
0
1,049
0.439464
10c1fc508104087ec1126cf7552b5571efddbe5f
383
py
Python
basic/sort/03_insert.py
weihuchao/algorithm
5a44eff323e09fd57d3f2f2f38b4762de0dc8dda
[ "MIT" ]
null
null
null
basic/sort/03_insert.py
weihuchao/algorithm
5a44eff323e09fd57d3f2f2f38b4762de0dc8dda
[ "MIT" ]
null
null
null
basic/sort/03_insert.py
weihuchao/algorithm
5a44eff323e09fd57d3f2f2f38b4762de0dc8dda
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2021/12/4 22:00 # @Author : weihuchao def insert_sort(data): """ 从前往后遍历, 假定前面部分已经有序, 查看当前元素应该在前面部分的哪个位置 """ for idx in range(1, len(data)): tmp = data[idx] j = idx - 1 while j >= 0 and tmp < data[j]: data[j ...
22.529412
42
0.480418
0
0
0
0
0
0
0
0
216
0.478936
10c2936ea0c2d4efb7c7cbaed1c8e284e4da6785
884
py
Python
GraphDefs/create_GraphDefs.py
AnotherGroupChat/Machine-Learning
73731fd67a90782940736e47d99165adcc1469ed
[ "MIT" ]
null
null
null
GraphDefs/create_GraphDefs.py
AnotherGroupChat/Machine-Learning
73731fd67a90782940736e47d99165adcc1469ed
[ "MIT" ]
null
null
null
GraphDefs/create_GraphDefs.py
AnotherGroupChat/Machine-Learning
73731fd67a90782940736e47d99165adcc1469ed
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import tensorflow as tf import numpy as np BASE = 'GraphDefs' def writeg(name): session = tf.Session() session.run(tf.initialize_all_variables()) tf.train.write_graph(session.graph_def, BASE, name + '.txt', True) tf.train.write_graph(session.graph_def, BASE, name, False) tf.re...
20.55814
70
0.626697
0
0
0
0
0
0
0
0
168
0.190045
10c36b8fc1840cfb5a40958316805cad9712d3bb
8,254
py
Python
snipmyvideo.py
rascoro1/SnipMyVideo
0728684fa271ec140f90c7878e41d7e55eec1989
[ "MIT" ]
3
2016-07-22T00:34:50.000Z
2016-09-02T16:52:23.000Z
snipmyvideo.py
rascoro1/SnipMyVideo
0728684fa271ec140f90c7878e41d7e55eec1989
[ "MIT" ]
2
2016-09-06T04:11:44.000Z
2018-01-29T21:57:51.000Z
snipmyvideo.py
rascoro1/SnipMyVideo
0728684fa271ec140f90c7878e41d7e55eec1989
[ "MIT" ]
1
2016-09-02T20:39:25.000Z
2016-09-02T20:39:25.000Z
from moviepy.editor import * from moviepy import Clip import sys import os """ This is a simple script that can only snip your code and return it back in one video This script requires moviepy.py Is can be obtained through pip: pip install moviepy Output file can be '.mp4', 'ogv', 'webm' You can mod...
34.974576
146
0.63448
0
0
0
0
0
0
0
0
4,406
0.533802
10c3bc22e15792439f59ee32dc4a6907024f22a7
20,551
py
Python
nutils/matrix.py
JochenHinz/nutils
ac18dd6825b107e2e4c186ebb1598dbf0fff0f77
[ "MIT" ]
null
null
null
nutils/matrix.py
JochenHinz/nutils
ac18dd6825b107e2e4c186ebb1598dbf0fff0f77
[ "MIT" ]
null
null
null
nutils/matrix.py
JochenHinz/nutils
ac18dd6825b107e2e4c186ebb1598dbf0fff0f77
[ "MIT" ]
null
null
null
# Copyright (c) 2014 Evalf # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, s...
35.310997
236
0.660844
16,545
0.80507
0
0
6,325
0.307771
0
0
6,365
0.309717
10c58e27a9810f57838afb1a0c1697fd854c3b9b
239
py
Python
pz/installer.py
pyramidzero/pzinstaller
43058b0a681fbea6e2173f1192aea720483d861c
[ "MIT" ]
null
null
null
pz/installer.py
pyramidzero/pzinstaller
43058b0a681fbea6e2173f1192aea720483d861c
[ "MIT" ]
null
null
null
pz/installer.py
pyramidzero/pzinstaller
43058b0a681fbea6e2173f1192aea720483d861c
[ "MIT" ]
null
null
null
from subprocess import run # configuration defaults tools update = ['brew', 'update'] install = ['brew', 'install', 'git'] class Installer: def func_update(self): run(update) def func_install(self): run(install)
18.384615
36
0.65272
113
0.472803
0
0
0
0
0
0
64
0.267782
10c64417440fb35fb29c424a295af5fb46bac46b
5,951
py
Python
modules/widgets.py
ldvlpr-dev/AudioVisualizer-Release
23e18b9b96a7bb54a134603b0e41f70b5d8569ad
[ "MIT" ]
2
2021-04-01T16:22:52.000Z
2021-05-21T18:01:12.000Z
modules/widgets.py
ldvlpr-dev/AudioVisualizer-Release
23e18b9b96a7bb54a134603b0e41f70b5d8569ad
[ "MIT" ]
null
null
null
modules/widgets.py
ldvlpr-dev/AudioVisualizer-Release
23e18b9b96a7bb54a134603b0e41f70b5d8569ad
[ "MIT" ]
2
2021-03-31T09:00:58.000Z
2021-04-28T18:36:31.000Z
import cv2 import numpy as np def hex_to_bgr(hx): hx = hx.lstrip('#') return tuple(int(hx[i:i + 2], 16) for i in (0, 2, 4))[::-1] class Rectangle: def __init__(self, x, y, width, height, max_height, min_db, max_db, color, thickness, reverse): self.rev = -1 if reverse else 1 self.x = x ...
40.209459
214
0.59469
5,796
0.973954
0
0
0
0
0
0
377
0.063351
10c68c99215b27d36f277cd7086d010222783579
2,772
py
Python
auto_LiRPA/examples/vision/simple_verification.py
KaidiXu/LiRPA_Verify
71f5327a8abf136bcfb3e1ec07604628abf8126e
[ "BSD-2-Clause" ]
14
2021-01-27T04:14:41.000Z
2022-01-20T11:54:35.000Z
auto_LiRPA/examples/vision/simple_verification.py
KaidiXu/LiRPA_Verify
71f5327a8abf136bcfb3e1ec07604628abf8126e
[ "BSD-2-Clause" ]
null
null
null
auto_LiRPA/examples/vision/simple_verification.py
KaidiXu/LiRPA_Verify
71f5327a8abf136bcfb3e1ec07604628abf8126e
[ "BSD-2-Clause" ]
2
2021-01-29T10:12:50.000Z
2021-05-24T21:55:20.000Z
import torch.nn as nn import torch.nn.functional as F import torchvision from auto_LiRPA import BoundedModule, BoundedTensor from auto_LiRPA.perturbations import * import models ## Step 1: Define computational graph by implementing forward() class Flatten(nn.Module): def forward(self, x): return x.view(x.s...
38.5
153
0.680375
88
0.031746
0
0
0
0
0
0
1,078
0.388889
10c7a36a4680a6d2f0e301e67846d4b75e77d776
15,796
py
Python
pysnmp/FUNI-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/FUNI-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/FUNI-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module FUNI-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/FUNI-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:03:03 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:1...
118.766917
2,273
0.746961
288
0.018232
0
0
0
0
0
0
3,167
0.200494
10c86dfcee3c5238af99d41d7bb192132b1b5b75
10,337
py
Python
fiction/plaza.py
cloudRoutine/curveship
d46def2cbc5b1de6692c410e018d8e23cb477286
[ "0BSD" ]
1
2020-05-16T12:03:34.000Z
2020-05-16T12:03:34.000Z
fiction/plaza.py
ziz/curveship
17479312174d0ee09abce730e927a58c3967eda7
[ "0BSD" ]
null
null
null
fiction/plaza.py
ziz/curveship
17479312174d0ee09abce730e927a58c3967eda7
[ "0BSD" ]
1
2022-02-26T16:01:26.000Z
2022-02-26T16:01:26.000Z
"""Plaza Items (in particular, Things and Rooms) representing the setting of Lost One.""" __author__ = 'Nick Montfort' __copyright__ = 'Copyright 2011 Nick Montfort' __license__ = 'ISC' __version__ = '0.5.0.0' __status__ = 'Development' from item_model import Room, Thing items = [ Room('@plaza_center', ...
34.228477
80
0.528006
0
0
0
0
0
0
0
0
6,011
0.581503
10c9be2f6f73cff7dec3ae3bf47fff1f91431efb
508
py
Python
tests/r/test_us_pop.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
199
2017-07-24T01:34:27.000Z
2022-01-29T00:50:55.000Z
tests/r/test_us_pop.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
46
2017-09-05T19:27:20.000Z
2019-01-07T09:47:26.000Z
tests/r/test_us_pop.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
45
2017-07-26T00:10:44.000Z
2022-03-16T20:44:59.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import shutil import sys import tempfile from observations.r.us_pop import us_pop def test_us_pop(): """Test module us_pop.py by downloading us_pop.csv and testing shape of extracted data has 22 rows...
21.166667
43
0.75
0
0
0
0
0
0
0
0
124
0.244094
10ca9cc7c816c201420d7b6610797d2bfb959cd4
2,407
py
Python
2021/python/dec04/solution.py
razzlestorm/advent-of-code
288488539ed64e078368ac012b7f794faa4776ba
[ "MIT" ]
null
null
null
2021/python/dec04/solution.py
razzlestorm/advent-of-code
288488539ed64e078368ac012b7f794faa4776ba
[ "MIT" ]
null
null
null
2021/python/dec04/solution.py
razzlestorm/advent-of-code
288488539ed64e078368ac012b7f794faa4776ba
[ "MIT" ]
null
null
null
from pathlib import Path from typing import List FILE_DIR = Path(__file__).parent def create_boards(boards: List[str]) -> List[str]: defined_boards = [] for board in boards: b = board.split('\n') d_board = [db.split() for db in b] defined_boards.append(d_board) return defined_boar...
37.030769
94
0.592023
0
0
0
0
0
0
0
0
455
0.189032
10cb9838854d193a4ba4ad92bc63d09d7e022be4
1,804
py
Python
app.py
serbathome/words
052a50168d1ce6a5c6df3b18403f75042b0272c9
[ "Apache-2.0" ]
null
null
null
app.py
serbathome/words
052a50168d1ce6a5c6df3b18403f75042b0272c9
[ "Apache-2.0" ]
null
null
null
app.py
serbathome/words
052a50168d1ce6a5c6df3b18403f75042b0272c9
[ "Apache-2.0" ]
null
null
null
from flask import Flask, render_template, jsonify import random as r import csv app = Flask(__name__) # define global words dictionary words = {} words["easy"] = [] words["medium"] = [] words["hard"] = [] # load words (russian and english) with open('words.csv', newline='\n', encoding="UTF8") as csvfile: wordrea...
26.529412
65
0.553769
0
0
0
0
930
0.515521
0
0
294
0.162971
10cbc3f174660b6796631abe31b2d238854acb6c
1,046
py
Python
setup.py
cexiolabs/cexpay.support-telegram-bot
84a3d0a5c95f2b43dcf276593d0a5f719f78f67d
[ "Apache-2.0" ]
null
null
null
setup.py
cexiolabs/cexpay.support-telegram-bot
84a3d0a5c95f2b43dcf276593d0a5f719f78f67d
[ "Apache-2.0" ]
null
null
null
setup.py
cexiolabs/cexpay.support-telegram-bot
84a3d0a5c95f2b43dcf276593d0a5f719f78f67d
[ "Apache-2.0" ]
null
null
null
from setuptools import setup, find_packages with open("README.md", "r") as fh: long_description = fh.read() setup( name='cexpay', version='2.0.4', description="A support bot for CEX Pay's products. See more https://developers.cexpay.io/.", long_description=long_description, long_description_co...
34.866667
96
0.647228
0
0
0
0
0
0
0
0
583
0.557361
10cd63e9b5a20d471655425cd06fc64cdb6da4e4
2,471
py
Python
newsthreads/sentences.py
microsoft/News-Threads
77e8db64f71ad7f109f6a62898f521f346b28be2
[ "MIT" ]
5
2020-06-27T01:25:34.000Z
2021-04-16T05:08:07.000Z
newsthreads/sentences.py
microsoft/News-Threads
77e8db64f71ad7f109f6a62898f521f346b28be2
[ "MIT" ]
null
null
null
newsthreads/sentences.py
microsoft/News-Threads
77e8db64f71ad7f109f6a62898f521f346b28be2
[ "MIT" ]
5
2020-07-31T10:21:27.000Z
2021-11-10T08:32:26.000Z
# File #1: Fragment, FragmentId # File #2: fragmentid, docid, date, domain, fragmentposition import configparser from typing import Dict, List, Tuple import csv import nltk.data import string def process_sentences(config: configparser.SectionProxy): csv.field_size_limit(2**23) fin = open(config['Intermediate...
35.811594
111
0.61554
0
0
0
0
0
0
0
0
570
0.230676
10ceb5b8c333d0a852efe89da7acab8411d380e4
1,394
py
Python
reconcile/test/test_utils_ocm_versions.py
bhushanthakur93/qontract-reconcile
fd8eea9f92d353224113955d08e3592864e37df8
[ "Apache-2.0" ]
null
null
null
reconcile/test/test_utils_ocm_versions.py
bhushanthakur93/qontract-reconcile
fd8eea9f92d353224113955d08e3592864e37df8
[ "Apache-2.0" ]
null
null
null
reconcile/test/test_utils_ocm_versions.py
bhushanthakur93/qontract-reconcile
fd8eea9f92d353224113955d08e3592864e37df8
[ "Apache-2.0" ]
null
null
null
import pytest from reconcile.utils.ocm import OCM @pytest.fixture def ocm(mocker): mocker.patch("reconcile.utils.ocm.OCM._init_access_token") mocker.patch("reconcile.utils.ocm.OCM._init_request_headers") mocker.patch("reconcile.utils.ocm.OCM._init_clusters") mocker.patch("reconcile.utils.ocm.OCM._init...
26.807692
71
0.689383
0
0
0
0
335
0.240316
0
0
339
0.243185
10cef77bbd20a3864270cb1eae1c4d0659257eb3
97,317
py
Python
test_agent/jianyang_ai.py
bbpp222006/maj_ai
48cf458f621ef7d688757efc98747d20d9f60f3e
[ "MIT" ]
null
null
null
test_agent/jianyang_ai.py
bbpp222006/maj_ai
48cf458f621ef7d688757efc98747d20d9f60f3e
[ "MIT" ]
null
null
null
test_agent/jianyang_ai.py
bbpp222006/maj_ai
48cf458f621ef7d688757efc98747d20d9f60f3e
[ "MIT" ]
1
2021-03-17T16:26:32.000Z
2021-03-17T16:26:32.000Z
# -*- coding: utf-8 -*- import datetime import os import pickle import random from copy import deepcopy from time import sleep import numpy as np from test_agent.ai_interface import AIInterface from test_agent.utils.wait_calc import WaitCalc from test_agent.utils.win_calc import WinCalc from client.mahjong_meld impor...
44.640826
153
0.548979
97,021
0.994852
0
0
36,921
0.378588
0
0
5,639
0.057822
10cf83b6989722a699079e2f639db75597032ff7
5,418
py
Python
jupyterlab_templates/extension.py
ElectroDevTeam/jupyterlab_templates
b09d8ac52b583bdc8fdcce11f6da14341d282b54
[ "Apache-2.0" ]
null
null
null
jupyterlab_templates/extension.py
ElectroDevTeam/jupyterlab_templates
b09d8ac52b583bdc8fdcce11f6da14341d282b54
[ "Apache-2.0" ]
null
null
null
jupyterlab_templates/extension.py
ElectroDevTeam/jupyterlab_templates
b09d8ac52b583bdc8fdcce11f6da14341d282b54
[ "Apache-2.0" ]
null
null
null
import fnmatch import json import os import os.path import jupyter_core.paths from io import open from datetime import datetime from notebook.utils import url_path_join from notebook.base.handlers import IPythonHandler DATE_FORMAT = "%Y-%m-%d" TIME_FORMAT = "%H:%M:%S" DEFAULT_USERNAME = "anonymous" USERNAME_TEMPLATE ...
39.26087
114
0.634736
2,364
0.436323
0
0
0
0
0
0
943
0.174049
10cf86523f7b53b3cbe34ca1abb35ccfd600860e
3,633
py
Python
src/automotive/application/actions/serial_actions.py
philosophy912/automotive
de918611652b789a83545f346c1569c2c2c955a6
[ "Apache-2.0" ]
null
null
null
src/automotive/application/actions/serial_actions.py
philosophy912/automotive
de918611652b789a83545f346c1569c2c2c955a6
[ "Apache-2.0" ]
null
null
null
src/automotive/application/actions/serial_actions.py
philosophy912/automotive
de918611652b789a83545f346c1569c2c2c955a6
[ "Apache-2.0" ]
1
2022-02-28T07:23:28.000Z
2022-02-28T07:23:28.000Z
# -*- coding:utf-8 -*- # -------------------------------------------------------- # Copyright (C), 2016-2020, lizhe, All rights reserved # -------------------------------------------------------- # @Name: serial_actions.py # @Author: lizhe # @Created: 2021/5/2 - 0:02 # ----------------------------------...
25.95
115
0.548582
3,562
0.862261
0
0
66
0.015977
0
0
2,001
0.484386
10d058dbcac1f25191aa2aab916d1db3bd200dbf
1,446
py
Python
colours.py
F0lha/UJunior-Projects
c46be35de2266a6bf72b22db5d982ebda1334b30
[ "MIT" ]
null
null
null
colours.py
F0lha/UJunior-Projects
c46be35de2266a6bf72b22db5d982ebda1334b30
[ "MIT" ]
null
null
null
colours.py
F0lha/UJunior-Projects
c46be35de2266a6bf72b22db5d982ebda1334b30
[ "MIT" ]
null
null
null
# Permite usar o modulo do Sense HAT from sense_hat import SenseHat from mcpi.minecraft import Minecraft from time import sleep sense = SenseHat() mc = Minecraft.create() # blocos grass = 2 water = 9 sand = 12 air = 0 # cores white = (255, 255, 255) green = (0, 255, 0) blue = (0, 0, 255) yellow = (255, 255, 0) blac...
20.956522
59
0.553942
0
0
0
0
0
0
0
0
63
0.043568
10d1e06975d52bb7b5f8e0f3c90a9460e0d76260
12,674
py
Python
year_2/os_sem2/checkLab14/app.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
null
null
null
year_2/os_sem2/checkLab14/app.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
21
2020-03-24T16:26:04.000Z
2022-02-18T15:56:16.000Z
year_2/os_sem2/checkLab14/app.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
null
null
null
import sys import os import re def main(): # Check input for the program. checker = ArgsChecker() if not checker.checkInputArgsAreCorrect(): return 1 if checker.processMode == checker.PROCESS_FROM_DIR: dirProcesser = FromDirProcesser() dirProcesser.process(checker.csvFilePath)...
36.524496
110
0.566435
11,972
0.944611
0
0
0
0
0
0
3,010
0.237494
10d2a94ebd88d32ad26b964e29b12c2b154a5761
7,858
py
Python
HSTB/drivers/hips_log.py
noaa-ocs-hydrography/drivers
d798a851b7b06c986c811a84242529038fd0b2b3
[ "CC0-1.0" ]
2
2021-04-28T17:37:30.000Z
2022-01-28T21:56:17.000Z
HSTB/drivers/hips_log.py
noaa-ocs-hydrography/drivers
d798a851b7b06c986c811a84242529038fd0b2b3
[ "CC0-1.0" ]
1
2020-11-05T13:57:34.000Z
2020-11-05T14:00:26.000Z
HSTB/drivers/hips_log.py
noaa-ocs-hydrography/drivers
d798a851b7b06c986c811a84242529038fd0b2b3
[ "CC0-1.0" ]
1
2021-04-09T08:29:54.000Z
2021-04-09T08:29:54.000Z
import xml.etree.ElementTree as ElementTree import os class CARISObject: """A generic CARIS object with a name""" def __init__(self): """Initialize with empty name""" self.name = '' def __init__(self, name): """Initialize with a name provided""" self.name = name def ...
27.865248
102
0.573556
7,786
0.990837
0
0
0
0
0
0
2,135
0.271698
10d394809031c831a797106d7da931ca1931a5d8
89
py
Python
Contest/ABC017/b/main.py
mpses/AtCoder
9c101fcc0a1394754fcf2385af54b05c30a5ae2a
[ "CC0-1.0" ]
null
null
null
Contest/ABC017/b/main.py
mpses/AtCoder
9c101fcc0a1394754fcf2385af54b05c30a5ae2a
[ "CC0-1.0" ]
null
null
null
Contest/ABC017/b/main.py
mpses/AtCoder
9c101fcc0a1394754fcf2385af54b05c30a5ae2a
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 import re print(re.sub("ch|o|k|u", "", input()) and "NO" or "YES")
29.666667
56
0.606742
0
0
0
0
0
0
0
0
43
0.483146
10d3a064f0cfe210246996fe757aa5f3e0edc11d
8,393
py
Python
plugins/salesforce_utils.py
brennoflavio/airflow-salesforce-operators
30019402b0ae4e2c8d3fde43b1273781316358a7
[ "MIT" ]
null
null
null
plugins/salesforce_utils.py
brennoflavio/airflow-salesforce-operators
30019402b0ae4e2c8d3fde43b1273781316358a7
[ "MIT" ]
null
null
null
plugins/salesforce_utils.py
brennoflavio/airflow-salesforce-operators
30019402b0ae4e2c8d3fde43b1273781316358a7
[ "MIT" ]
null
null
null
from simple_salesforce import Salesforce from airflow.hooks.base_hook import BaseHook import json from airflow.utils.log.logging_mixin import LoggingMixin from airflow.models import BaseOperator from airflow.plugins_manager import AirflowPlugin from airflow.utils.decorators import apply_defaults import csv from tempfil...
35.563559
105
0.556535
7,992
0.952222
0
0
1,113
0.132611
0
0
883
0.105207
10d3ca3bf530a8c109cbd94308e316fd9795c6d0
1,928
py
Python
src/django_website/blog/views.py
jdheinz/project-ordo_ab_chao
4063f93b297bab43cff6ca64fa5ba103f0c75158
[ "MIT" ]
2
2019-09-23T18:42:32.000Z
2019-09-27T00:33:38.000Z
src/django_website/blog/views.py
jdheinz/project-ordo_ab_chao
4063f93b297bab43cff6ca64fa5ba103f0c75158
[ "MIT" ]
6
2021-03-19T03:25:33.000Z
2022-02-10T08:48:14.000Z
src/django_website/blog/views.py
jdheinz/project-ordo_ab_chao
4063f93b297bab43cff6ca64fa5ba103f0c75158
[ "MIT" ]
6
2019-09-23T18:53:41.000Z
2020-02-06T00:20:06.000Z
from django.contrib.auth.decorators import login_required from django.shortcuts import render, get_object_or_404 from .models import BlogPost from .forms import BlogPostModelForm # render intial html page of list of published blogs def blog_post_list_view(request): qs = BlogPost.objects.all().published() # queryse...
35.703704
80
0.702801
0
0
0
0
961
0.498444
0
0
460
0.238589
10d567f52597f63ae873c81fa0c69444cf588834
6,863
py
Python
uiConfig.py
g-ulrich/ScreenShotToDiscord
7228d01637d426a2767a9531576880180a49c92f
[ "MIT" ]
null
null
null
uiConfig.py
g-ulrich/ScreenShotToDiscord
7228d01637d426a2767a9531576880180a49c92f
[ "MIT" ]
null
null
null
uiConfig.py
g-ulrich/ScreenShotToDiscord
7228d01637d426a2767a9531576880180a49c92f
[ "MIT" ]
null
null
null
from PyQt5.QtCore import QTimer, QTime from PyQt5 import QtGui, QtWidgets import time import random import os import datetime import requests import sqlite3 as sql import database_impl as db from date_tools import dt def datetime_diff(old_datetime, new_datetime, dates_are_strings=True): """ String dates shoul...
43.713376
181
0.616203
5,622
0.819175
0
0
0
0
0
0
1,078
0.157074
10d7d0aaafbffeb183977058c120740205d009d7
38,243
py
Python
src/glum/_distribution.py
Quantco/glum
880dc6ff2599864679d86c3a8b1809aa24e2a839
[ "BSD-3-Clause" ]
68
2021-10-08T09:05:29.000Z
2022-03-28T14:40:58.000Z
src/glum/_distribution.py
Quantco/glum
880dc6ff2599864679d86c3a8b1809aa24e2a839
[ "BSD-3-Clause" ]
49
2021-10-08T01:44:18.000Z
2022-03-08T08:53:00.000Z
src/glum/_distribution.py
Quantco/glum
880dc6ff2599864679d86c3a8b1809aa24e2a839
[ "BSD-3-Clause" ]
11
2021-10-14T10:34:53.000Z
2022-03-09T11:38:29.000Z
from abc import ABCMeta, abstractmethod from functools import partial from typing import Tuple, Union import numexpr import numpy as np from scipy import sparse, special from tabmat import MatrixBase, StandardizedMatrix from ._functions import ( binomial_logit_eta_mu_deviance, binomial_logit_rowwise_gradient_...
31.710614
87
0.577256
33,181
0.867545
0
0
3,039
0.079457
0
0
17,986
0.470259
10d958d2eda3c687a5c43498b484847dfdf3bb4d
2,733
py
Python
apps/medicalcontrol/models.py
claudioDcv/Vetadmin
2b5cf78bc7ad58000cedaf2474191d921e61745c
[ "MIT" ]
1
2017-03-18T15:07:00.000Z
2017-03-18T15:07:00.000Z
apps/medicalcontrol/models.py
claudioDcv/Vetadmin
2b5cf78bc7ad58000cedaf2474191d921e61745c
[ "MIT" ]
null
null
null
apps/medicalcontrol/models.py
claudioDcv/Vetadmin
2b5cf78bc7ad58000cedaf2474191d921e61745c
[ "MIT" ]
null
null
null
from django.db import models from apps.core.models import Patient, Person from django_extensions.db.fields import AutoSlugField from apps.core.utils import STYLE_IMG_MIN from apps.pharmacy.models import SupplyAssignControl class Medicalcontrol(models.Model): name = models.CharField(max_length=100) natural_key...
40.191176
127
0.643249
2,508
0.917337
0
0
0
0
0
0
517
0.1891
10db0a1461dd4901dea43c8088f2d331ca5bbb5e
908
py
Python
icetray/resources/test/shoulddo.py
hschwane/offline_production
e14a6493782f613b8bbe64217559765d5213dc1e
[ "MIT" ]
1
2020-12-24T22:00:01.000Z
2020-12-24T22:00:01.000Z
icetray/resources/test/shoulddo.py
hschwane/offline_production
e14a6493782f613b8bbe64217559765d5213dc1e
[ "MIT" ]
null
null
null
icetray/resources/test/shoulddo.py
hschwane/offline_production
e14a6493782f613b8bbe64217559765d5213dc1e
[ "MIT" ]
3
2020-07-17T09:20:29.000Z
2021-03-30T16:44:18.000Z
#!/usr/bin/env python # # Sample i3module in python # from icecube.icetray import * from I3Tray import * tray = I3Tray() # generate empty frames tray.AddModule("BottomlessSource","bottomless") def make_counter(base): class ShouldCounter(base): def __init__(self, context): base.__init__(self...
23.282051
77
0.615639
473
0.520925
0
0
0
0
0
0
201
0.221366
10db498d974995cdddc73b0eb663f988c2c1a75e
3,405
py
Python
Scripts/Biochemistry/Merge_Compounds.py
nkkchem/ModelSEEDDatabase
a117e433f540e931ee60a961f0d23cfc23cc387d
[ "MIT" ]
null
null
null
Scripts/Biochemistry/Merge_Compounds.py
nkkchem/ModelSEEDDatabase
a117e433f540e931ee60a961f0d23cfc23cc387d
[ "MIT" ]
null
null
null
Scripts/Biochemistry/Merge_Compounds.py
nkkchem/ModelSEEDDatabase
a117e433f540e931ee60a961f0d23cfc23cc387d
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os, sys temp=list(); header=1; sys.path.append('../../Libs/Python') from BiochemPy import Reactions, Compounds ReactionsHelper = Reactions() Reactions_Dict = ReactionsHelper.loadReactions() CompoundsHelper = Compounds() Compounds_Dict = CompoundsHelper.loadCompounds() Compound_To_Merge_...
34.744898
130
0.676065
0
0
0
0
0
0
0
0
1,140
0.334802
10db75502d4a745e4f587f18e42925c85597af44
1,110
py
Python
Homework.py
Quericee/da
1207bae632fc0a1a755a5bd57d0236a43d31efbf
[ "MIT" ]
null
null
null
Homework.py
Quericee/da
1207bae632fc0a1a755a5bd57d0236a43d31efbf
[ "MIT" ]
null
null
null
Homework.py
Quericee/da
1207bae632fc0a1a755a5bd57d0236a43d31efbf
[ "MIT" ]
null
null
null
import math import pandas as pd data = pd.read_csv("works.csv").dropna() count_people = 0 for (jobTitle, qualification) in zip(data['jobTitle'], data['qualification']): if jobTitle != qualification: count_people += 1 print(f"У {count_people} человек профессия и должность не совпадают") meneger...
30.833333
110
0.640541
0
0
0
0
0
0
0
0
998
0.692094
10dc00d7522da15de0e33f479a057809367bc817
3,439
py
Python
examtool/examtool/cli/compile_all.py
ThaumicMekanism/cs61a-apps
2dfd1402a87569020fe28b5bd1b9282703e3eebd
[ "MIT" ]
null
null
null
examtool/examtool/cli/compile_all.py
ThaumicMekanism/cs61a-apps
2dfd1402a87569020fe28b5bd1b9282703e3eebd
[ "MIT" ]
null
null
null
examtool/examtool/cli/compile_all.py
ThaumicMekanism/cs61a-apps
2dfd1402a87569020fe28b5bd1b9282703e3eebd
[ "MIT" ]
null
null
null
import json import os import pathlib from datetime import datetime from io import BytesIO from pikepdf import Pdf, Encryption import click import pytz from examtool.api.database import get_exam, get_roster from examtool.api.utils import sanitize_email from examtool.api.scramble import scramble from examtool.api.gen_l...
27.293651
103
0.610352
0
0
0
0
2,916
0.847921
0
0
848
0.246583
10dc049135b7cdd6cae504711512f545f568bc84
5,020
py
Python
main/tests/test_views.py
Lumexralph/book-store
990ad187f0babd1a08e83a90c381117ce5d4f686
[ "Apache-2.0" ]
null
null
null
main/tests/test_views.py
Lumexralph/book-store
990ad187f0babd1a08e83a90c381117ce5d4f686
[ "Apache-2.0" ]
8
2020-06-05T23:45:34.000Z
2022-01-13T01:47:23.000Z
main/tests/test_views.py
Lumexralph/book-store
990ad187f0babd1a08e83a90c381117ce5d4f686
[ "Apache-2.0" ]
null
null
null
from decimal import Decimal from unittest.mock import patch from django.test import TestCase from django.urls import reverse from django.contrib import auth from main.models import Product, User, Address from main.forms import UserCreationForm class TestPage(TestCase): def test_home_page_works(self): re...
33.026316
78
0.591434
4,771
0.950398
0
0
0
0
0
0
863
0.171912
10dc80116f563ea0a2e9886f4435631d1b02b4b4
299
py
Python
021_loguru/multifile01.py
fkubota/rkkubotay-gmail.com
03abffd520b6ba241d102184bba28507c8aa4d61
[ "MIT" ]
null
null
null
021_loguru/multifile01.py
fkubota/rkkubotay-gmail.com
03abffd520b6ba241d102184bba28507c8aa4d61
[ "MIT" ]
49
2021-01-12T07:25:17.000Z
2022-03-12T00:53:24.000Z
021_loguru/multifile01.py
fkubota/rkkubotay-gmail.com
03abffd520b6ba241d102184bba28507c8aa4d61
[ "MIT" ]
null
null
null
from loguru import logger from multifile02 import sum_ab def run(): logger.add("log_multifile.log") logger.info("="*30) logger.info("start run") sum_ab(5, 7) logger.info("end run") def main(): run() logger.success('Complete.') if __name__ == "__main__": main()
14.95
35
0.625418
0
0
0
0
0
0
0
0
63
0.210702
10dcd63f6971079940c1323786fecd18f6fad2b3
162
py
Python
pythonperlin/__init__.py
timpyrkov/pyperlin
c79080657aa79df1abc83e481d2b09cac5edbff7
[ "MIT" ]
null
null
null
pythonperlin/__init__.py
timpyrkov/pyperlin
c79080657aa79df1abc83e481d2b09cac5edbff7
[ "MIT" ]
null
null
null
pythonperlin/__init__.py
timpyrkov/pyperlin
c79080657aa79df1abc83e481d2b09cac5edbff7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from pythonperlin.perlin import perlin from pkg_resources import get_distribution __version__ = get_distribution('pythonperlin').version
27
54
0.796296
0
0
0
0
0
0
0
0
37
0.228395
10dd33d3f2c88f6ed9447b48563fc0a3cb09360a
4,903
py
Python
reservas/settings/base.py
fedegallar/reservas
75fc06b9dedf53eca76b61ea0ccc914d5e084b2d
[ "MIT" ]
1
2018-11-10T14:57:54.000Z
2018-11-10T14:57:54.000Z
reservas/settings/base.py
fedegallar/reservas
75fc06b9dedf53eca76b61ea0ccc914d5e084b2d
[ "MIT" ]
6
2020-06-05T17:11:56.000Z
2021-09-07T23:38:00.000Z
reservas/settings/base.py
fedegallar/reservas
75fc06b9dedf53eca76b61ea0ccc914d5e084b2d
[ "MIT" ]
1
2019-04-16T20:00:05.000Z
2019-04-16T20:00:05.000Z
# coding=utf-8 """ Django settings for reservas project. Generated by 'django-admin startproject' using Django 1.8.5. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.8/ref/settings/ ...
29.011834
98
0.698756
0
0
0
0
0
0
0
0
3,282
0.66816
10ddaf79aa926db060bebc8c2157d158b2eb7df1
27,684
py
Python
python/learning2.py
dblalock/sprintz
a056cdb67d049669875ab5487359aca99ae873ea
[ "Apache-2.0" ]
45
2019-02-02T15:50:25.000Z
2022-03-08T05:42:06.000Z
python/learning2.py
memetb/sprintz
a056cdb67d049669875ab5487359aca99ae873ea
[ "Apache-2.0" ]
2
2020-03-27T23:29:15.000Z
2020-11-09T01:37:08.000Z
python/learning2.py
memetb/sprintz
a056cdb67d049669875ab5487359aca99ae873ea
[ "Apache-2.0" ]
10
2019-03-08T09:04:29.000Z
2022-02-18T22:28:23.000Z
#!/usr/bin/env python import collections # import itertools import numpy as np # from sklearn import linear_model as linear # for VAR # from .utils import sliding_window as window # from .utils.distance import kmeans, dists_sq # from .utils import distance as dist # from python import compress # ===============...
40.592375
109
0.489091
18,348
0.662765
0
0
0
0
0
0
14,253
0.514846
10de22358037cf8ccf5fee7e45edea840e4276ac
159
py
Python
run.py
radish2012/flask-restful-example
972c720cee9819d030f9889a8535a444277b874e
[ "MIT" ]
650
2019-07-08T09:09:25.000Z
2022-03-31T08:01:43.000Z
run.py
radish2012/flask-restful-example
972c720cee9819d030f9889a8535a444277b874e
[ "MIT" ]
5
2020-01-14T05:35:37.000Z
2022-03-11T23:46:39.000Z
run.py
radish2012/flask-restful-example
972c720cee9819d030f9889a8535a444277b874e
[ "MIT" ]
222
2019-07-15T01:52:03.000Z
2022-03-28T05:32:21.000Z
from app.factory import create_app, celery_app app = create_app(config_name="DEVELOPMENT") app.app_context().push() if __name__ == "__main__": app.run()
19.875
46
0.735849
0
0
0
0
0
0
0
0
23
0.144654
10de725aa99b82e35e8d69fc01aaec8b46a671ed
4,405
py
Python
__init__.py
KAndreyK/gachicmd
a4f55276363c49389bba95ab7d4ed28faecc5681
[ "MIT" ]
null
null
null
__init__.py
KAndreyK/gachicmd
a4f55276363c49389bba95ab7d4ed28faecc5681
[ "MIT" ]
null
null
null
__init__.py
KAndreyK/gachicmd
a4f55276363c49389bba95ab7d4ed28faecc5681
[ "MIT" ]
null
null
null
#!/usr/bin/env python #-*- encoding: utf-8 -*- """Command line interpreter right version.""" import sys import cmd import random import os import pyglet.media import webbrowser import time gachidict = [] with open('gachicmd' + os.sep + 'gachidict.txt') as f: gachidict = f.read().splitlines() he...
30.171233
94
0.528944
3,826
0.868558
0
0
0
0
0
0
1,209
0.274461
10de9939df6d76398eb74dc52c2cb120b2d2c88f
1,571
py
Python
scripts/check_schemas.py
chasleslr/dagster
88907f9473fb8e7a9b1af9a0a8b349d42f4b8153
[ "Apache-2.0" ]
null
null
null
scripts/check_schemas.py
chasleslr/dagster
88907f9473fb8e7a9b1af9a0a8b349d42f4b8153
[ "Apache-2.0" ]
null
null
null
scripts/check_schemas.py
chasleslr/dagster
88907f9473fb8e7a9b1af9a0a8b349d42f4b8153
[ "Apache-2.0" ]
null
null
null
# pylint: disable=print-call import importlib import pkgutil import dagster import sqlalchemy as sa def check_schema_compat(schema): """We run this check to ensure that we don't have any schema columns that are incompatible with MySQL. """ for name in dir(schema): obj = getattr(schema, name) ...
33.425532
99
0.60662
0
0
0
0
0
0
0
0
446
0.283896
10df133a433492185e9da42e3e25c81ed4744f41
2,206
py
Python
src/main/resources/alm/CreateDefect.py
xebialabs-community/xlr-hpalm-plugin
e374f9082595a34afe7bef8e644715b2b0462c33
[ "MIT" ]
null
null
null
src/main/resources/alm/CreateDefect.py
xebialabs-community/xlr-hpalm-plugin
e374f9082595a34afe7bef8e644715b2b0462c33
[ "MIT" ]
1
2019-05-13T17:36:45.000Z
2019-05-13T17:36:45.000Z
src/main/resources/alm/CreateDefect.py
xebialabs-community/xlr-hpalm-plugin
e374f9082595a34afe7bef8e644715b2b0462c33
[ "MIT" ]
3
2019-05-10T17:48:20.000Z
2020-07-08T14:22:20.000Z
# # Copyright 2021 XEBIALABS # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, subli...
50.136364
462
0.714415
0
0
0
0
0
0
0
0
1,218
0.552131
10df8daedd4922d6712d342fc7421a530de31aea
527
py
Python
extra_apps/xadmin/plugins/utils.py
Fors3cDream/DjX
cac207b84923a558da83b0cad15f736f5e6faad2
[ "Apache-2.0" ]
3
2017-05-30T14:29:21.000Z
2018-08-06T08:29:25.000Z
extra_apps/xadmin/plugins/utils.py
Fors3cDream/DjX
cac207b84923a558da83b0cad15f736f5e6faad2
[ "Apache-2.0" ]
1
2021-02-08T20:51:30.000Z
2021-02-08T20:51:30.000Z
extra_apps/xadmin/plugins/utils.py
Fors3cDream/DjX
cac207b84923a558da83b0cad15f736f5e6faad2
[ "Apache-2.0" ]
1
2017-08-23T06:49:46.000Z
2017-08-23T06:49:46.000Z
from django.template.context import RequestContext def get_context_dict(context): """ Contexts in django version 1.9+ must be dictionaries. As xadmin has a legacy with older versions of django, the function helps the transition by converting the [RequestContext] object to the dictionary when necessary. ...
31
113
0.698292
0
0
0
0
0
0
0
0
291
0.552182
10e08d796a74b4eb31783e866cf66948364093d9
2,144
py
Python
tests/wallet_api/test_mining.py
beatsbears/pyburstlib
27722f7f3bb0bc5739110f6c99435d13fa54a1e0
[ "MIT" ]
7
2018-03-24T17:26:27.000Z
2020-06-09T10:38:44.000Z
tests/wallet_api/test_mining.py
MrPilotMan/pyburstlib
27722f7f3bb0bc5739110f6c99435d13fa54a1e0
[ "MIT" ]
2
2019-09-09T17:06:43.000Z
2021-06-01T21:20:08.000Z
tests/wallet_api/test_mining.py
MrPilotMan/pyburstlib
27722f7f3bb0bc5739110f6c99435d13fa54a1e0
[ "MIT" ]
4
2018-04-10T12:50:55.000Z
2022-03-14T20:30:01.000Z
''' pyburstlib :author: drownedcoast :date: 4-26-2018 ''' import pytest from pyburstlib.wallet_api.models.mining import * from tests.base import BaseTest from tests.config import PyBurstLibConfig @pytest.mark.api class TestMiningApi(BaseTest): def setup(self): self.TEST_ACCOUNT_NUMERIC = PyBurstLibConfig....
45.617021
113
0.728078
1,930
0.900187
0
0
1,947
0.908116
0
0
147
0.068563
10e1be91406866f0d1fa96365de13d361b7ae9cd
291
py
Python
nltktest.py
HeikkiKeskustalo/Fuzzy-String-Matching
21215d58473f2af72c039d6d3c186e18f04dd893
[ "MIT" ]
null
null
null
nltktest.py
HeikkiKeskustalo/Fuzzy-String-Matching
21215d58473f2af72c039d6d3c186e18f04dd893
[ "MIT" ]
7
2018-06-28T03:57:04.000Z
2018-08-28T12:37:19.000Z
nltktest.py
EvoluzTampere/Fuzzy-String-Matching
9137f23f9713e2778a8894cbfd3ef1dc34913599
[ "MIT" ]
1
2018-08-07T07:41:00.000Z
2018-08-07T07:41:00.000Z
from nltk.stem.snowball import SnowballStemmer letter = [u'kissassa'] for word in letter: print word, SnowballStemmer("finnish").stem(word) # read file (get a string) # detect charset (UTF-8) # decode (get a Unicode code point presentation) # tokenize # try out the Snowball stemmer
20.785714
53
0.738832
0
0
0
0
0
0
0
0
158
0.542955
10e2118348f1c2b14089d5cf7bc1ddd8e43cd869
5,979
py
Python
Linked-in Job scrapper.py
MMallah/Linked-in-Job-scrapper
9a537849a8f62e278f091ca71d8041bb3b4541b0
[ "MIT" ]
null
null
null
Linked-in Job scrapper.py
MMallah/Linked-in-Job-scrapper
9a537849a8f62e278f091ca71d8041bb3b4541b0
[ "MIT" ]
null
null
null
Linked-in Job scrapper.py
MMallah/Linked-in-Job-scrapper
9a537849a8f62e278f091ca71d8041bb3b4541b0
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # Project Data Science Desired Skills # # this project will Answer the question of what are the most desired skills for Data Science in Egypt and UAE. # * Extract data from Linked in Via webscrapping or Manually. # * Perform data wrangling ( image recognition or NLP). # * Segme...
21.430108
147
0.680716
0
0
0
0
0
0
0
0
3,808
0.636896
10e230dff4f183cac0ecd093228e7522ab70f334
26
py
Python
25_Assigment_Operator/main.py
jmmedel/Python-Tutorials-
243ae9a6b51a4fce03dd90c02da13b859cbfbe5f
[ "MIT" ]
null
null
null
25_Assigment_Operator/main.py
jmmedel/Python-Tutorials-
243ae9a6b51a4fce03dd90c02da13b859cbfbe5f
[ "MIT" ]
null
null
null
25_Assigment_Operator/main.py
jmmedel/Python-Tutorials-
243ae9a6b51a4fce03dd90c02da13b859cbfbe5f
[ "MIT" ]
null
null
null
x = 5 x |= 3 print(x)
3.25
8
0.384615
0
0
0
0
0
0
0
0
0
0
10e277afdb91cd3d6c4969cdf3e9d08b1012d482
3,424
py
Python
email_extractor.py
lukeeckley/outlook-email-recovery
94f6ce67d12e761eb9049d56f6a3950203d5d472
[ "MIT" ]
null
null
null
email_extractor.py
lukeeckley/outlook-email-recovery
94f6ce67d12e761eb9049d56f6a3950203d5d472
[ "MIT" ]
null
null
null
email_extractor.py
lukeeckley/outlook-email-recovery
94f6ce67d12e761eb9049d56f6a3950203d5d472
[ "MIT" ]
null
null
null
import argparse import os import re import sys try: import pypff except ImportError: print("[+] Install the libpff Python bindings to use this script") sys.exit(1) message_list = [] messages = 0 def main(pst_file, output_dir): print("[+] Accessing {} PST file".format(pst_file)) pst = pypff.open(p...
31.703704
105
0.622079
0
0
0
0
0
0
0
0
573
0.167348