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
1aa76cb1ca43006b2cc5f674dcb72f031f583b9e
545
py
Python
tests/features/steps/triggers_repo/test_triggers_list.py
dataloop-ai/dtlpy
2c73831da54686e047ab6aefd8f12a8e53ea97c2
[ "Apache-2.0" ]
10
2020-05-21T06:25:35.000Z
2022-01-07T20:34:03.000Z
tests/features/steps/triggers_repo/test_triggers_list.py
dataloop-ai/dtlpy
2c73831da54686e047ab6aefd8f12a8e53ea97c2
[ "Apache-2.0" ]
22
2019-11-17T17:25:16.000Z
2022-03-10T15:14:28.000Z
tests/features/steps/triggers_repo/test_triggers_list.py
dataloop-ai/dtlpy
2c73831da54686e047ab6aefd8f12a8e53ea97c2
[ "Apache-2.0" ]
8
2020-03-05T16:23:55.000Z
2021-12-27T11:10:42.000Z
import behave
32.058824
83
0.677064
1aa7720202db2a1c258c5499dab4c82e6d875c22
437
py
Python
P0053.py
sebastianaldi17/ProjectEuler
19562fba3456ec904bcc264fb786a92610e42622
[ "MIT" ]
null
null
null
P0053.py
sebastianaldi17/ProjectEuler
19562fba3456ec904bcc264fb786a92610e42622
[ "MIT" ]
null
null
null
P0053.py
sebastianaldi17/ProjectEuler
19562fba3456ec904bcc264fb786a92610e42622
[ "MIT" ]
null
null
null
# Combinatoric selections # https://projecteuler.net/problem=53 from collections import defaultdict from copy import deepcopy from itertools import permutations from math import fmod, sqrt, factorial from time import time start = time() f = [factorial(i) for i in range(101)] ans = 0 for n in range(1, 101): for r...
24.277778
54
0.688787
1aa865526377a0edc68f44ca28d256cfe6780eb3
99
py
Python
prohmr/models/heads/__init__.py
akashsengupta1997/ProHMR
7015a3d070c79b4571d43abdf5e522468091a94d
[ "BSD-3-Clause" ]
120
2021-08-27T23:21:17.000Z
2022-03-30T03:34:07.000Z
prohmr/models/heads/__init__.py
akashsengupta1997/ProHMR
7015a3d070c79b4571d43abdf5e522468091a94d
[ "BSD-3-Clause" ]
17
2021-09-08T10:10:37.000Z
2022-03-17T02:40:21.000Z
prohmr/models/heads/__init__.py
akashsengupta1997/ProHMR
7015a3d070c79b4571d43abdf5e522468091a94d
[ "BSD-3-Clause" ]
10
2021-08-31T06:08:49.000Z
2022-03-29T21:51:14.000Z
from .smpl_flow import SMPLFlow from .skeleton_flow import SkeletonFlow from .fc_head import FCHead
33
39
0.858586
1aaace265db2e8442d60e8792192c99cd4ab024b
327
py
Python
vibhaga/test/demo_abstract.py
keremkoseoglu/vibhaga
6978ff55e5a6e945098e7127ce49cfef4b0747d0
[ "MIT" ]
null
null
null
vibhaga/test/demo_abstract.py
keremkoseoglu/vibhaga
6978ff55e5a6e945098e7127ce49cfef4b0747d0
[ "MIT" ]
3
2020-06-09T04:20:48.000Z
2022-03-31T12:44:59.000Z
vibhaga/test/demo_abstract.py
keremkoseoglu/vibhaga
6978ff55e5a6e945098e7127ce49cfef4b0747d0
[ "MIT" ]
null
null
null
""" Module for demo abstract class """ from abc import ABC, abstractmethod
21.8
52
0.642202
1aab51dc0877d9fd63a1f310c0d32a392b291683
1,953
py
Python
Client_side.py
SanRam/server-client-chat-python
010a296db57c352a2ace7eac7206fa641981538b
[ "MIT" ]
null
null
null
Client_side.py
SanRam/server-client-chat-python
010a296db57c352a2ace7eac7206fa641981538b
[ "MIT" ]
null
null
null
Client_side.py
SanRam/server-client-chat-python
010a296db57c352a2ace7eac7206fa641981538b
[ "MIT" ]
null
null
null
# The client program connects to server and sends data to other connected # clients through the server import socket import thread import sys def recv_data(): "Receive data from other clients connected to server" while 1: try: recv_data = client_socket.recv(4096) ...
30.046154
75
0.561188
1aae905a964704653256bef35e2f3ec3e8f5f5c0
4,487
py
Python
2D/__animacija2D.py
KSpenko/mafijaVikend_numDelav
1f94c764a16fca04f0e9aa89190e8150bb9a5830
[ "MIT" ]
1
2022-03-17T20:35:00.000Z
2022-03-17T20:35:00.000Z
2D/__animacija2D.py
KSpenko/mafijaVikend_numDelav
1f94c764a16fca04f0e9aa89190e8150bb9a5830
[ "MIT" ]
null
null
null
2D/__animacija2D.py
KSpenko/mafijaVikend_numDelav
1f94c764a16fca04f0e9aa89190e8150bb9a5830
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import matplotlib.cm as cm import matplotlib.animation as animation
41.546296
237
0.531536
1aaeaca4a1e2ac529fe75552949c04273d36808b
2,452
py
Python
src/Algorithms/VotingClassifier.py
hirohio/Hello-World-ML
398b7b9f492d563226e9ba0374bb2844ad0dbf18
[ "MIT" ]
null
null
null
src/Algorithms/VotingClassifier.py
hirohio/Hello-World-ML
398b7b9f492d563226e9ba0374bb2844ad0dbf18
[ "MIT" ]
null
null
null
src/Algorithms/VotingClassifier.py
hirohio/Hello-World-ML
398b7b9f492d563226e9ba0374bb2844ad0dbf18
[ "MIT" ]
null
null
null
# External Modules import numpy as np from sklearn.ensemble import GradientBoostingClassifier from sklearn.model_selection import train_test_split from sklearn.model_selection import GridSearchCV from sklearn.ensemble import VotingClassifier from sklearn.metrics import accuracy_score # Internal Modules import Helpers....
29.190476
112
0.639478
1aaff9e26cf79480dec5e7e7f9444230c9a834ca
22,847
py
Python
maysics/preprocess.py
HOKOTATE-pzw/maysics
59c38089c51db74948e3e2133c0a860880dcf0eb
[ "MIT" ]
4
2021-06-14T01:47:22.000Z
2022-03-20T07:55:32.000Z
maysics/preprocess.py
HOKOTATE-pzw/maysics
59c38089c51db74948e3e2133c0a860880dcf0eb
[ "MIT" ]
1
2022-01-20T04:30:42.000Z
2022-01-20T04:30:42.000Z
maysics/preprocess.py
HOKOTATE-pzw/maysics
59c38089c51db74948e3e2133c0a860880dcf0eb
[ "MIT" ]
1
2022-03-20T07:58:24.000Z
2022-03-20T07:58:24.000Z
''' This module is used for data preproccessing ''' import numpy as np from maysics.utils import e_distances from matplotlib import pyplot as plt plt.rcParams['font.sans-serif'] = ['FangSong'] plt.rcParams['axes.unicode_minus'] = False from io import BytesIO from lxml import etree import base64 import math def _pr...
28.241038
201
0.554559
1ab0013a4d518f8e51ed0c4c383fca433990afad
756
py
Python
Application/Model/GridArea.py
Thomas145/PythonWebSocketsGame
6c527ab33c43e689e125211d5abc6d579ff060a9
[ "MIT" ]
null
null
null
Application/Model/GridArea.py
Thomas145/PythonWebSocketsGame
6c527ab33c43e689e125211d5abc6d579ff060a9
[ "MIT" ]
null
null
null
Application/Model/GridArea.py
Thomas145/PythonWebSocketsGame
6c527ab33c43e689e125211d5abc6d579ff060a9
[ "MIT" ]
null
null
null
from .Styles import NoStyle
22.909091
55
0.592593
1ab0f01b6cfb191ba89088f444dfc7d72d15e946
2,140
py
Python
happy/Utils.py
yunhanw-google/happy
d482f1eeb188a03e3bcd1aefe54424fb2589c9e9
[ "Apache-2.0" ]
42
2017-09-20T07:09:59.000Z
2021-11-08T12:08:30.000Z
happy/Utils.py
yunhanw-google/happy
d482f1eeb188a03e3bcd1aefe54424fb2589c9e9
[ "Apache-2.0" ]
30
2018-06-16T14:48:14.000Z
2020-10-13T04:02:35.000Z
happy/Utils.py
yunhanw-google/happy
d482f1eeb188a03e3bcd1aefe54424fb2589c9e9
[ "Apache-2.0" ]
17
2017-09-20T10:37:56.000Z
2021-02-09T06:27:44.000Z
#!/usr/bin/env python3 # # Copyright (c) 2015-2017 Nest Labs, Inc. # All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/lice...
26.097561
82
0.671495
1ab2047efaf257da85d65323e0025e66394bdeb4
2,383
py
Python
Python Scraping Series/P2_Listing/pull_test.py
kadnan/vidtutorials
f2a924ee8cc9ea50d3cb65287b2f9fae834855b0
[ "MIT" ]
null
null
null
Python Scraping Series/P2_Listing/pull_test.py
kadnan/vidtutorials
f2a924ee8cc9ea50d3cb65287b2f9fae834855b0
[ "MIT" ]
1
2018-03-23T10:36:56.000Z
2018-03-23T10:54:48.000Z
Python Scraping Series/P2_Listing/pull_test.py
kadnan/vidtutorials
f2a924ee8cc9ea50d3cb65287b2f9fae834855b0
[ "MIT" ]
3
2018-03-23T10:58:51.000Z
2021-01-06T22:03:30.000Z
import requests from bs4 import BeautifulSoup from time import sleep headers = { 'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36' } if __name__ == '__main__': cat_url = 'https://www.daraz.pk/mens-smart-watches/' pul...
35.567164
140
0.576164
1ab21cc87223f786572255bf50a065de4031a07d
2,700
py
Python
examples/pseudo/stamps/convert.py
golly-splorts/gollyx-maps
ad57b6e0665a7f2a54f2cfa31717ce152ac3d046
[ "MIT" ]
null
null
null
examples/pseudo/stamps/convert.py
golly-splorts/gollyx-maps
ad57b6e0665a7f2a54f2cfa31717ce152ac3d046
[ "MIT" ]
null
null
null
examples/pseudo/stamps/convert.py
golly-splorts/gollyx-maps
ad57b6e0665a7f2a54f2cfa31717ce152ac3d046
[ "MIT" ]
null
null
null
import os from pprint import pprint import json if __name__ == "__main__": main()
33.75
96
0.475556
1ab561ca4e660e97c6f68f02dd1daf19300748c5
935
py
Python
examples/issues/issue345_docs2.py
tgolsson/appJar
5e2f8bff44e927e7c2bae17fccddc6dbf79952f0
[ "Apache-2.0" ]
666
2016-11-14T18:17:40.000Z
2022-03-29T03:53:22.000Z
examples/issues/issue345_docs2.py
tgolsson/appJar
5e2f8bff44e927e7c2bae17fccddc6dbf79952f0
[ "Apache-2.0" ]
598
2016-10-20T21:04:09.000Z
2022-03-15T22:44:49.000Z
examples/issues/issue345_docs2.py
tgolsson/appJar
5e2f8bff44e927e7c2bae17fccddc6dbf79952f0
[ "Apache-2.0" ]
95
2017-01-19T12:23:58.000Z
2022-03-06T18:16:21.000Z
import sys sys.path.append("../../") from appJar import gui # return app.okBox("Sure?", msg) with gui("FRAME STACK") as app: with app.frameStack("Pages", change=changed):#, start=1): with app.frame(bg='red'): for i in range(5): app.label("Text: " + str(i)) with app....
30.16129
108
0.545455
1ab66b053488cd225ef0133491265daccc61ff6f
5,557
py
Python
backend/tournesol/views/polls.py
Vikka/tournesol
161322d8ca2d6de885552ab8131fb55c68e88ae6
[ "CC0-1.0" ]
null
null
null
backend/tournesol/views/polls.py
Vikka/tournesol
161322d8ca2d6de885552ab8131fb55c68e88ae6
[ "CC0-1.0" ]
null
null
null
backend/tournesol/views/polls.py
Vikka/tournesol
161322d8ca2d6de885552ab8131fb55c68e88ae6
[ "CC0-1.0" ]
null
null
null
import logging from django.conf import settings from django.db.models import Case, F, Prefetch, Q, Sum, When from drf_spectacular.types import OpenApiTypes from drf_spectacular.utils import ( OpenApiExample, OpenApiParameter, extend_schema, extend_schema_view, ) from rest_framework import serializers f...
32.688235
86
0.629116
1ab6b7bbb61696547dfea1ed3c22423263dab38c
2,704
py
Python
cabotage/server/ext/config_writer.py
di/cabotage-app
a119800ce5a83547c0abf31540bd0bc90a0e6d10
[ "MIT" ]
15
2018-04-12T20:57:25.000Z
2022-02-25T01:51:58.000Z
cabotage/server/ext/config_writer.py
di/cabotage-app
a119800ce5a83547c0abf31540bd0bc90a0e6d10
[ "MIT" ]
10
2018-01-30T19:55:06.000Z
2021-06-15T21:54:17.000Z
cabotage/server/ext/config_writer.py
di/cabotage-app
a119800ce5a83547c0abf31540bd0bc90a0e6d10
[ "MIT" ]
6
2018-01-30T10:49:17.000Z
2022-02-25T01:51:59.000Z
import os from flask import current_app from flask import _app_ctx_stack as stack
41.6
86
0.593565
1ab6d73debd5df0f3ab75a30e6c5f37cb702dd35
177
py
Python
HW3/VeronyWise/task3,3.py
kolyasalubov/Lv-677.PythonCore
c9f9107c734a61e398154a90b8a3e249276c2704
[ "MIT" ]
null
null
null
HW3/VeronyWise/task3,3.py
kolyasalubov/Lv-677.PythonCore
c9f9107c734a61e398154a90b8a3e249276c2704
[ "MIT" ]
null
null
null
HW3/VeronyWise/task3,3.py
kolyasalubov/Lv-677.PythonCore
c9f9107c734a61e398154a90b8a3e249276c2704
[ "MIT" ]
6
2022-02-22T22:30:49.000Z
2022-03-28T12:51:19.000Z
variable1 = input('Variable 1:') variable2 = input('Variable 2:') variable1, variable2 = variable2, variable1 print(f"Variable 1: {variable1}") print(f"Variable 2: {variable2}")
35.4
43
0.734463
1aba01da53c4ec829e4ab3ced3f3d42f6a25fa37
1,748
py
Python
stats_extractor.py
diegojromerolopez/pystats-trello
958e33a689573335d36c73dddd4198694feaf203
[ "MIT" ]
2
2020-12-27T15:33:19.000Z
2021-03-06T06:45:40.000Z
stats_extractor.py
diegojromerolopez/pystats-trello
958e33a689573335d36c73dddd4198694feaf203
[ "MIT" ]
null
null
null
stats_extractor.py
diegojromerolopez/pystats-trello
958e33a689573335d36c73dddd4198694feaf203
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import sys import re import settings from auth.connector import TrelloConnector from stats import summary from stats.trelloboardconfiguration import TrelloBoardConfiguration def extract_stats(configuration_file_path): """ Extract stats for a given configuration file that de...
32.981132
101
0.740847
1abb0d4acfc6ecf3ec22c58282eb86a6173b6334
310
py
Python
src/housie_game.py
Eclair24/housie
7892002914c2ced422f89cd8c050993c2f931deb
[ "Apache-2.0" ]
1
2020-08-10T07:44:01.000Z
2020-08-10T07:44:01.000Z
src/housie_game.py
Eclair24/housie
7892002914c2ced422f89cd8c050993c2f931deb
[ "Apache-2.0" ]
1
2020-12-07T16:31:05.000Z
2020-12-09T09:04:58.000Z
src/housie_game.py
Eclair24/housie
7892002914c2ced422f89cd8c050993c2f931deb
[ "Apache-2.0" ]
1
2020-10-01T17:54:19.000Z
2020-10-01T17:54:19.000Z
"""Convenience file to help start the game when the repo is cloned from git rather than installed via pip This was required as we needed to run the script from the same level as the housie/ package in order for the imports to work correctly. """ from housie.game import display_main_menu display_main_menu()
34.444444
116
0.793548
1abc873e62dabe851c37307f75c1f607203ad768
4,076
py
Python
plyse/parser.py
arcodergh/plyse
bb44543f9c812401489ceba68b24b8618d263830
[ "MIT" ]
26
2016-05-31T14:45:24.000Z
2021-04-27T01:54:52.000Z
plyse/parser.py
arcodergh/plyse
bb44543f9c812401489ceba68b24b8618d263830
[ "MIT" ]
11
2016-05-31T20:09:57.000Z
2022-02-18T11:43:50.000Z
plyse/parser.py
arcodergh/plyse
bb44543f9c812401489ceba68b24b8618d263830
[ "MIT" ]
13
2016-05-31T19:41:36.000Z
2021-03-01T15:22:38.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- from copy import deepcopy from .query_tree import Operator, OperatorFactory, Operand, And, Or, Not from .query import Query from .term_parser import Term
37.394495
118
0.60476
1abffd1e7ddaed83c42f68175043724dc70e197b
3,244
py
Python
get_aozora.py
lithium0003/Image2UTF8-Transformer
2620af2a8bdaf332e25b39ce05d610e21e6492fc
[ "MIT" ]
null
null
null
get_aozora.py
lithium0003/Image2UTF8-Transformer
2620af2a8bdaf332e25b39ce05d610e21e6492fc
[ "MIT" ]
null
null
null
get_aozora.py
lithium0003/Image2UTF8-Transformer
2620af2a8bdaf332e25b39ce05d610e21e6492fc
[ "MIT" ]
null
null
null
import json import sys import urllib.parse import urllib.request import os import zipfile import io import csv import re from html.parser import HTMLParser code_list = {} with open('data/codepoints.csv') as f: reader = csv.reader(f) for row in reader: d1,d2,d3 = row[0].split('-') d1 = int(d1) ...
32.767677
93
0.526202
1ac017762eaadd38399b55a8bb81b1edf9f81ac2
3,677
py
Python
python/EggNetExtension/setup.py
marbleton/FPGA_MNIST
4b4a30e0adca35de9adcad7b3fec08c516260790
[ "MIT" ]
7
2019-11-13T12:24:36.000Z
2021-03-31T02:39:35.000Z
python/EggNetExtension/setup.py
marbleton/FPGA_MNIST
4b4a30e0adca35de9adcad7b3fec08c516260790
[ "MIT" ]
29
2019-12-17T22:06:04.000Z
2022-03-12T00:20:45.000Z
python/EggNetExtension/setup.py
marbleton/FPGA_MNIST
4b4a30e0adca35de9adcad7b3fec08c516260790
[ "MIT" ]
4
2019-10-20T15:12:52.000Z
2020-10-13T13:36:37.000Z
#!/usr/bin/env python """ setup.py file for SWIG Interface of Ext """ import os import platform import re import subprocess import sys from distutils.version import LooseVersion from os import walk import numpy import wget from setuptools import Extension from setuptools import setup, find_packages from setuptools.co...
34.046296
110
0.622518
1ac02a13f60d57e364428009ff4c96c1e00ef39d
2,442
py
Python
GT-ECONOMY-BOT/economy/trashmoney.py
iFanID/e.Koenomi-DBot
a017acaae810d402a4d76668daf83a0dd69ad9d7
[ "Info-ZIP" ]
1
2021-11-13T06:19:26.000Z
2021-11-13T06:19:26.000Z
GT-ECONOMY-BOT/economy/trashmoney.py
iFanID/e.Koenomi-DBot
a017acaae810d402a4d76668daf83a0dd69ad9d7
[ "Info-ZIP" ]
null
null
null
GT-ECONOMY-BOT/economy/trashmoney.py
iFanID/e.Koenomi-DBot
a017acaae810d402a4d76668daf83a0dd69ad9d7
[ "Info-ZIP" ]
null
null
null
import discord import subprocess import os, random, re, requests, json import asyncio from datetime import datetime from discord.ext import commands def setup(bot): bot.add_cog(Economy(bot))
30.525
80
0.581081
1ac0e70ee50f70a3cd951509022bba75c1104f45
1,738
gyp
Python
third_party/ctmalloc/ctmalloc.gyp
dandv/syzygy
2444520c8e6e0b45b2f45b680d878d60b9636f45
[ "Apache-2.0" ]
1
2019-04-03T13:56:37.000Z
2019-04-03T13:56:37.000Z
third_party/ctmalloc/ctmalloc.gyp
pombreda/syzygy
7bac6936c0c28872bfabc10a1108e0157ff65d4a
[ "Apache-2.0" ]
1
2015-03-19T18:20:25.000Z
2015-03-19T18:20:25.000Z
third_party/ctmalloc/ctmalloc.gyp
sebmarchand/syzygy
6c6db0e70e8161f1fec171138a825f6412e7778a
[ "Apache-2.0" ]
1
2020-10-10T16:09:45.000Z
2020-10-10T16:09:45.000Z
# Copyright 2014 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
28.491803
80
0.597814
1ac1f4c5e45389491c264f6ff24bf7abfbd16a93
1,515
py
Python
src/chat/tasks.py
klapen/chat
84273ae3276da77bff6a2529bd59786f9dc3afcb
[ "MIT" ]
null
null
null
src/chat/tasks.py
klapen/chat
84273ae3276da77bff6a2529bd59786f9dc3afcb
[ "MIT" ]
10
2019-05-24T21:37:38.000Z
2022-02-11T03:43:09.000Z
src/chat/tasks.py
klapen/simplechat
84273ae3276da77bff6a2529bd59786f9dc3afcb
[ "MIT" ]
null
null
null
from __future__ import absolute_import, unicode_literals from celery import shared_task from asgiref.sync import async_to_sync from channels.layers import get_channel_layer import requests import csv
36.95122
106
0.505611
1ac28d2ea873a98c9e255a253bd3c457c121b939
1,397
py
Python
scripts/tests/test_summarize.py
JoshSkrzypczak/people
2183b0feab9442222a88e698b849ff5351f9aea8
[ "CC0-1.0" ]
1
2021-04-19T20:42:59.000Z
2021-04-19T20:42:59.000Z
scripts/tests/test_summarize.py
JoshSkrzypczak/people
2183b0feab9442222a88e698b849ff5351f9aea8
[ "CC0-1.0" ]
null
null
null
scripts/tests/test_summarize.py
JoshSkrzypczak/people
2183b0feab9442222a88e698b849ff5351f9aea8
[ "CC0-1.0" ]
null
null
null
from summarize import Summarizer
35.820513
90
0.503937
1ac31d5a21b2b7fca6b188dc0ccbac2303f50fbe
853
py
Python
ex091.py
paulo-caixeta/Exercicios_Curso_Python
3b77925499c174ea9ff81dec65d6319125219b9a
[ "MIT" ]
null
null
null
ex091.py
paulo-caixeta/Exercicios_Curso_Python
3b77925499c174ea9ff81dec65d6319125219b9a
[ "MIT" ]
null
null
null
ex091.py
paulo-caixeta/Exercicios_Curso_Python
3b77925499c174ea9ff81dec65d6319125219b9a
[ "MIT" ]
null
null
null
"""Exerccio Python 091: Crie um programa onde 4 jogadores joguem um dado e tenham resultados aleatrios. Guarde esses resultados em um dicionrio em Python. No final, coloque esse dicionrio em ordem, sabendo que o vencedor tirou o maior nmero no dado.""" from random import randint from time import sleep from operator imp...
40.619048
105
0.675264
1ac4c3ae760d51232d569cf1431cc2c3ab3cdc2f
1,499
py
Python
_/Chapter 03/transfrauddetect.py
paullewallencom/hadoop-978-1-7839-8030-7
267f24e736dcee0910593d9ff76c10387e6406c3
[ "Apache-2.0" ]
2
2019-05-25T22:48:59.000Z
2021-10-04T04:52:58.000Z
_/Chapter 03/transfrauddetect.py
paullewallencom/hadoop-978-1-7839-8030-7
267f24e736dcee0910593d9ff76c10387e6406c3
[ "Apache-2.0" ]
null
null
null
_/Chapter 03/transfrauddetect.py
paullewallencom/hadoop-978-1-7839-8030-7
267f24e736dcee0910593d9ff76c10387e6406c3
[ "Apache-2.0" ]
6
2016-12-27T13:57:45.000Z
2021-04-22T18:33:14.000Z
# Submit to spark using # spark-submit /Users/anurag/hdproject/eclipse/chapt3/transfrauddetect.py # You need the full path of the python script from pyspark import SparkContext from pyspark import SparkConf from pyspark.mllib.clustering import KMeans, KMeansModel from pyspark.streaming import StreamingContext from pys...
33.311111
88
0.683122
1ac55722387ed906681600c081466660b9eb3f11
904
py
Python
Bioinformatics Stronghold/(3) Complementing a Stand of DNA/Complementing a Stand of DNA/Complementing_a_Stand_of_DNA.py
LawTam/ROSALIND
18c4eaa4ad094d4c5f77af7211c93b88e3e9eb4f
[ "MIT" ]
null
null
null
Bioinformatics Stronghold/(3) Complementing a Stand of DNA/Complementing a Stand of DNA/Complementing_a_Stand_of_DNA.py
LawTam/ROSALIND
18c4eaa4ad094d4c5f77af7211c93b88e3e9eb4f
[ "MIT" ]
null
null
null
Bioinformatics Stronghold/(3) Complementing a Stand of DNA/Complementing a Stand of DNA/Complementing_a_Stand_of_DNA.py
LawTam/ROSALIND
18c4eaa4ad094d4c5f77af7211c93b88e3e9eb4f
[ "MIT" ]
null
null
null
# Given: A DNA string s of length at most 1000 bp. # Return: The reverse complement sc of s. # Manually call main() on the file load if __name__ == "__main__": main()
29.16129
165
0.586283
1ac5abcc5a3efb1d526c5d1acedc8e1845408bcd
950
py
Python
binary_tree_postorder_traversal/solution.py
mahimadubey/leetcode-python
38acc65fa4315f86acb62874ca488620c5d77e17
[ "BSD-2-Clause" ]
528
2015-01-08T21:27:06.000Z
2022-03-17T09:23:44.000Z
binary_tree_postorder_traversal/solution.py
durgaharish1993/leetcode-python
6c523ef4759a57433e10271b584eece16f9f05f3
[ "BSD-2-Clause" ]
null
null
null
binary_tree_postorder_traversal/solution.py
durgaharish1993/leetcode-python
6c523ef4759a57433e10271b584eece16f9f05f3
[ "BSD-2-Clause" ]
278
2015-01-12T06:45:17.000Z
2022-02-20T08:09:22.000Z
""" Given a binary tree, return the postorder traversal of its nodes' values. For example: Given binary tree {1,#,2,3}, 1 \ 2 / 3 return [3,2,1]. """ # Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # ...
22.093023
73
0.513684
1ac5b8ba600d2983a2c4bfa715ce743d29c60c5b
687
py
Python
src/test/base.py
inova-tecnologias/jenova
c975f0894b8663c6a9c9fdc7fa33590a219a6ad3
[ "Apache-2.0" ]
2
2016-08-10T15:08:47.000Z
2016-10-25T14:27:51.000Z
src/test/base.py
inova-tecnologias/jenova
c975f0894b8663c6a9c9fdc7fa33590a219a6ad3
[ "Apache-2.0" ]
41
2016-08-04T20:19:49.000Z
2017-03-07T20:05:53.000Z
src/test/base.py
inova-tecnologias/jenova
c975f0894b8663c6a9c9fdc7fa33590a219a6ad3
[ "Apache-2.0" ]
3
2016-09-26T19:04:51.000Z
2017-10-26T22:13:45.000Z
import yaml
26.423077
59
0.636099
1ac820cbcf7d0d98431fa2fed01dad0baafedf01
99
py
Python
apps/test_find_application_with_mainflow/views.py
HeMan/jobbergate
1381821aafe3d217ee22078be09104a566ec2420
[ "MIT" ]
4
2019-11-05T09:30:43.000Z
2020-04-22T15:24:31.000Z
apps/test_find_application_with_mainflow/views.py
HeMan/jobbergate
1381821aafe3d217ee22078be09104a566ec2420
[ "MIT" ]
52
2019-10-17T09:46:09.000Z
2020-05-19T07:39:19.000Z
apps/test_find_application_with_mainflow/views.py
HeMan/jobbergate
1381821aafe3d217ee22078be09104a566ec2420
[ "MIT" ]
1
2020-02-18T13:38:25.000Z
2020-02-18T13:38:25.000Z
from jobbergate import appform
16.5
45
0.727273
1acfdd5cb2dc4513136eed0af799bf76bf0968d8
105
py
Python
crawlerAPI/Stay_Hungry_API/apps.py
epikjjh/Stay_Hungry_Server
4d0ab3a2313c6a8f8a21053ced9834e7f2a13995
[ "MIT" ]
null
null
null
crawlerAPI/Stay_Hungry_API/apps.py
epikjjh/Stay_Hungry_Server
4d0ab3a2313c6a8f8a21053ced9834e7f2a13995
[ "MIT" ]
null
null
null
crawlerAPI/Stay_Hungry_API/apps.py
epikjjh/Stay_Hungry_Server
4d0ab3a2313c6a8f8a21053ced9834e7f2a13995
[ "MIT" ]
null
null
null
from django.apps import AppConfig
17.5
39
0.790476
1ad00f5bdba69c5627c62e40a06d13f11f8f971b
2,186
py
Python
quotes/tests/requests/test_home_page.py
daviferreira/defprogramming
a4ec20a6a9d116eb1f82fd146e4bb7a2fad5a516
[ "MIT" ]
6
2016-01-17T02:21:51.000Z
2020-09-01T20:16:36.000Z
quotes/tests/requests/test_home_page.py
daviferreira/defprogramming
a4ec20a6a9d116eb1f82fd146e4bb7a2fad5a516
[ "MIT" ]
3
2017-11-27T17:02:50.000Z
2021-01-21T14:22:36.000Z
quotes/tests/requests/test_home_page.py
daviferreira/defprogramming
a4ec20a6a9d116eb1f82fd146e4bb7a2fad5a516
[ "MIT" ]
null
null
null
# coding: utf-8 from lxml import html from django.test import TestCase from django.test.client import Client from quotes.tests.utils import create_test_quote
37.689655
115
0.643184
1ad0dd75967c20852aadd774c8b8d093d2adc738
414
py
Python
src/components/decode_encode/confirm.py
DuckyMomo20012/flask-server
62a7d351b42f72dd03e886ebf7e393a62a7023b1
[ "MIT" ]
3
2022-01-12T15:16:44.000Z
2022-03-06T12:51:06.000Z
src/components/decode_encode/confirm.py
DuckyMomo20012/flask-server
62a7d351b42f72dd03e886ebf7e393a62a7023b1
[ "MIT" ]
null
null
null
src/components/decode_encode/confirm.py
DuckyMomo20012/flask-server
62a7d351b42f72dd03e886ebf7e393a62a7023b1
[ "MIT" ]
1
2022-03-06T12:48:40.000Z
2022-03-06T12:48:40.000Z
from numpy import char from function_support import *
18
32
0.519324
1ad19b8e5fbe29f4b8f2f258cc293e0fd9d3e22f
678
py
Python
luckydonaldUtils/regex/telegram.py
luckydonald/python-utils
455f5174707804a39384776185b8bc307223e19f
[ "MIT" ]
5
2016-12-06T00:49:21.000Z
2019-10-03T04:18:13.000Z
luckydonaldUtils/regex/telegram.py
luckydonald/python-utils
455f5174707804a39384776185b8bc307223e19f
[ "MIT" ]
5
2016-03-19T02:08:14.000Z
2018-12-01T02:30:19.000Z
luckydonaldUtils/regex/telegram.py
luckydonald/python-utils
455f5174707804a39384776185b8bc307223e19f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import re __author__ = 'luckydonald' __all__ = [ 'USERNAME_REGEX', '_USERNAME_REGEX', 'USER_AT_REGEX', '_USER_AT_REGEX', 'FULL_USERNAME_REGEX', '_FULL_USERNAME_REGEX' ] _USERNAME_REGEX = '[a-zA-Z](?:[a-zA-Z0-9]|_(?!_)){3,30}[a-zA-Z0-9]' # https://regex101.com/r/nZdOHS/2 USERNAME_REGEX...
35.684211
118
0.715339
46b8fb46b8c0cdd613c5bd9b26b79ccbc17c69b5
42,439
py
Python
sdk/python/pulumi_azure_nextgen/compute/v20200930/outputs.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/compute/v20200930/outputs.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/compute/v20200930/outputs.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
38.233333
290
0.654045
46ba83324e04ac36f037fcc3c6b035e1f76cfb13
809
py
Python
tests/test_datetime_fields.py
20c/django-syncref
af8678b550657d9f1082babe1139dead038c155a
[ "Apache-2.0" ]
null
null
null
tests/test_datetime_fields.py
20c/django-syncref
af8678b550657d9f1082babe1139dead038c155a
[ "Apache-2.0" ]
null
null
null
tests/test_datetime_fields.py
20c/django-syncref
af8678b550657d9f1082babe1139dead038c155a
[ "Apache-2.0" ]
null
null
null
from datetime import datetime, timedelta import pytest from django.test import TestCase from tests.models import Org, Sub, Widget data_org = {"name": "Acme Widgets"}
26.096774
61
0.651422
46bb3deb8367127a5cfa628614d6868e96cd7fbc
6,888
py
Python
app.py
Antinator11/Creative-Space
73bcd8eeed39c57e1d9098b3fe99e2c92a67e4e8
[ "Apache-2.0" ]
null
null
null
app.py
Antinator11/Creative-Space
73bcd8eeed39c57e1d9098b3fe99e2c92a67e4e8
[ "Apache-2.0" ]
null
null
null
app.py
Antinator11/Creative-Space
73bcd8eeed39c57e1d9098b3fe99e2c92a67e4e8
[ "Apache-2.0" ]
null
null
null
from flask import Flask, render_template, request, redirect, url_for, Markup, \ flash # Imports Flask and all required modules import databasemanager # Provides the functionality to load stuff from the database app = Flask(__name__) import errormanager # Enum for types of errors # DECLARE datamanager as...
41.745455
116
0.63313
46bdc3e0ab2a6edc65d4cb4238647e95d5203d67
8,108
py
Python
electromorpho/structure/graphs.py
CIG-UPM/electro-morpho
708b6f47a431050e840f1daab89724e248adc4c8
[ "MIT" ]
1
2020-03-03T04:50:02.000Z
2020-03-03T04:50:02.000Z
pymoreg/structure/graphs.py
mllera14/multi-output-regression
5932a5efc117f7dd8e61e71620e2f37b40c10219
[ "MIT" ]
null
null
null
pymoreg/structure/graphs.py
mllera14/multi-output-regression
5932a5efc117f7dd8e61e71620e2f37b40c10219
[ "MIT" ]
null
null
null
import scipy.sparse as ssp import scipy.sparse.csgraph as csgraph import networkx as nx import pylab as pl import pygraphviz as pgv from itertools import product, chain class MBCGraph(DiGraph): # Helper functions
29.376812
115
0.607548
46bf9a97a24d5d137bbdd0a57fc1e121b4a7e9e2
9,487
py
Python
MyWeather.py
luisegarduno/MyWeather
dba3881c5964384a50887563577395f1a5540a18
[ "MIT" ]
null
null
null
MyWeather.py
luisegarduno/MyWeather
dba3881c5964384a50887563577395f1a5540a18
[ "MIT" ]
null
null
null
MyWeather.py
luisegarduno/MyWeather
dba3881c5964384a50887563577395f1a5540a18
[ "MIT" ]
null
null
null
import sys import json import time import os.path import subprocess # Current working directory cwd = os.path.dirname(os.path.realpath(__file__)) # Boolean flag that tells the program whether the user enabled text notifications txt_notifs = True # Clear terminal screeen os.system('cls' if os.name == 'nt...
44.75
134
0.604933
46bff1adfd5577acabc4e0dff9a754921e785d60
1,312
py
Python
filter_plugins/containers2volumes.py
gabriel-duque/sadm
00483d486b336c71066e244a61c29042a924e75c
[ "MIT" ]
4
2020-07-28T00:22:43.000Z
2020-12-01T16:03:01.000Z
filter_plugins/containers2volumes.py
gabriel-duque/sadm
00483d486b336c71066e244a61c29042a924e75c
[ "MIT" ]
8
2020-07-05T23:23:42.000Z
2020-09-04T00:30:58.000Z
filter_plugins/containers2volumes.py
zuh0/sadm
00483d486b336c71066e244a61c29042a924e75c
[ "MIT" ]
null
null
null
from ansible.errors import AnsibleFilterError
32.8
123
0.637957
46bff90e4aae9b5e239fcf2a9690645d59cd4e37
4,593
py
Python
cryptofeed_werks/exchanges/bitmex/api.py
globophobe/crypto-tick-data
7ec5d1e136b9bc27ae936f55cf6ab7fe5e37bda4
[ "MIT" ]
null
null
null
cryptofeed_werks/exchanges/bitmex/api.py
globophobe/crypto-tick-data
7ec5d1e136b9bc27ae936f55cf6ab7fe5e37bda4
[ "MIT" ]
null
null
null
cryptofeed_werks/exchanges/bitmex/api.py
globophobe/crypto-tick-data
7ec5d1e136b9bc27ae936f55cf6ab7fe5e37bda4
[ "MIT" ]
null
null
null
import datetime import json import re import time from decimal import Decimal import httpx from cryptofeed_werks.controllers import HTTPX_ERRORS, iter_api from cryptofeed_werks.lib import parse_datetime from .constants import API_URL, MAX_RESULTS, MIN_ELAPSED_PER_REQUEST, MONTHS
32.118881
87
0.644677
46c085ac7c0934855c0208b4c1f43ee8a0d905c0
381
py
Python
lowest-unique.py
leaen/Codeeval-solutions
fa83cb4fba3e56f79c0a6b00361c18cd3092c3f0
[ "MIT" ]
null
null
null
lowest-unique.py
leaen/Codeeval-solutions
fa83cb4fba3e56f79c0a6b00361c18cd3092c3f0
[ "MIT" ]
null
null
null
lowest-unique.py
leaen/Codeeval-solutions
fa83cb4fba3e56f79c0a6b00361c18cd3092c3f0
[ "MIT" ]
null
null
null
import sys if __name__ == '__main__': main()
22.411765
53
0.606299
46c12f59ad64dcb22ae69898d7c1b35ed5998385
3,247
py
Python
flask_server.py
MichalYoung/eld-sentence-scramble
3af1573daf2803e9ab9dbe03c58d0f42115f3bc3
[ "MIT" ]
null
null
null
flask_server.py
MichalYoung/eld-sentence-scramble
3af1573daf2803e9ab9dbe03c58d0f42115f3bc3
[ "MIT" ]
null
null
null
flask_server.py
MichalYoung/eld-sentence-scramble
3af1573daf2803e9ab9dbe03c58d0f42115f3bc3
[ "MIT" ]
null
null
null
""" A simple game for English language development students in primary school. English sentences are presented with a scrambled word order. Students click each word to put it in correct English order (e.g., adjectives come before nouns). """ import config import flask from flask import request from flask import s...
26.185484
78
0.669849
46c24f9e543823c6b0cda1b66bf196b243046c21
3,717
py
Python
tests/test_model.py
RandalJBarnes/OnekaPy
ba082f76f3f7f4394a11864623981cc876e1b253
[ "MIT" ]
null
null
null
tests/test_model.py
RandalJBarnes/OnekaPy
ba082f76f3f7f4394a11864623981cc876e1b253
[ "MIT" ]
null
null
null
tests/test_model.py
RandalJBarnes/OnekaPy
ba082f76f3f7f4394a11864623981cc876e1b253
[ "MIT" ]
null
null
null
""" Test the Model class. Notes ----- o The specific test values were computed using the MatLab code from the "Object Based Analytic Elements" project. Author ------ Dr. Randal J. Barnes Department of Civil, Environmental, and Geo- Engineering University of Minnesota Version ------- 09 May 2020...
30.719008
83
0.571429
46c2b16869fd2a8293075005691ad0df8c253672
830
py
Python
Company/thoughtworks/FizzBuzzWhizz/solution-python/FizzBuzzWhizz.py
OctopusLian/leetcode-solutions
40920d11c584504e805d103cdc6ef3f3774172b3
[ "MIT" ]
1
2020-12-01T18:35:24.000Z
2020-12-01T18:35:24.000Z
Company/thoughtworks/FizzBuzzWhizz/solution-python/FizzBuzzWhizz.py
OctopusLian/leetcode-solutions
40920d11c584504e805d103cdc6ef3f3774172b3
[ "MIT" ]
18
2020-11-10T05:48:29.000Z
2020-11-26T08:39:20.000Z
Company/thoughtworks/FizzBuzzWhizz/solution-python/FizzBuzzWhizz.py
OctopusLian/leetcode-solutions
40920d11c584504e805d103cdc6ef3f3774172b3
[ "MIT" ]
5
2020-11-09T07:43:00.000Z
2021-12-02T14:59:37.000Z
# This is python2 version. def FizzBuzzWhizz(args): """args[0] = Fizz, Buzz, Whizz args[1]= 3, 5, 7""" return FBW rule = [("Fizz",3),("Buzz", 5),("Whizz",7)] count = 101 for even in even_filter(count,rule): print even fiz = lambda a,b,c,d:['Fizz'*(x%a==0)+'Buzz'*(x%b==0)+'Whizz'*(x%c==0) or x ...
25.9375
100
0.616867
46c39db6dd0b69722eb312b2a6c9c225e95716f4
3,022
py
Python
figures/perception/randomwalk.py
patricknaughton01/RoboticSystemsBook
0fc67cbccee0832b5f9b00d848c55697fa69bedf
[ "Apache-2.0" ]
116
2018-08-27T15:32:59.000Z
2022-02-28T10:41:37.000Z
figures/perception/randomwalk.py
patricknaughton01/RoboticSystemsBook
0fc67cbccee0832b5f9b00d848c55697fa69bedf
[ "Apache-2.0" ]
2
2021-05-04T12:56:40.000Z
2022-02-18T23:13:33.000Z
figures/perception/randomwalk.py
patricknaughton01/RoboticSystemsBook
0fc67cbccee0832b5f9b00d848c55697fa69bedf
[ "Apache-2.0" ]
29
2019-06-20T20:13:36.000Z
2022-02-20T14:01:34.000Z
import matplotlib.pyplot as plt import numpy as np from kalman import * T = 100 N = 20 dt = 0.1 motion_noise_magnitude = 1.0 noise_magnitude = 0.3 fig1 = plt.figure(figsize=(10,4)) ax1 = fig1.add_subplot(1, 2, 1) ax1.set_xlabel("Time") ax1.set_ylabel("State") ax1.set_ylim(-3,3) ax1.set_xlim(0,10) x = np.array(range(T...
39.246753
113
0.657512
46c3d72b7e02560f09287d4b7a34b0b06179e42e
6,687
py
Python
data/MuCo/MuCo.py
GUO-W/PI-Net
0c93a05d3aa277a80101f69ad196e5d6c8edba76
[ "MIT" ]
2
2021-05-21T14:07:08.000Z
2022-01-13T07:39:00.000Z
data/MuCo/MuCo.py
GUO-W/PI-Net
0c93a05d3aa277a80101f69ad196e5d6c8edba76
[ "MIT" ]
null
null
null
data/MuCo/MuCo.py
GUO-W/PI-Net
0c93a05d3aa277a80101f69ad196e5d6c8edba76
[ "MIT" ]
null
null
null
## ## Software PI-Net: Pose Interacting Network for Multi-Person Monocular 3D Pose Estimation ## Copyright Inria and UPC ## Year 2021 ## Contact : wen.guo@inria.fr ## ## The software PI-Net is provided under MIT License. ## #used in train for skeleton input import os import os.path as osp import numpy as np import mat...
36.741758
246
0.549125
46c4c877c664ccafd3ca1715fdec77ace89a64db
174
py
Python
search/urls.py
Tariqalrehily/iShop
0454106c1ff5b508b734b95f3f6cfe1008d630b5
[ "PostgreSQL" ]
null
null
null
search/urls.py
Tariqalrehily/iShop
0454106c1ff5b508b734b95f3f6cfe1008d630b5
[ "PostgreSQL" ]
5
2020-06-06T00:28:48.000Z
2022-01-13T02:04:54.000Z
search/urls.py
Tariqalrehily/iShop
0454106c1ff5b508b734b95f3f6cfe1008d630b5
[ "PostgreSQL" ]
1
2020-02-18T19:33:21.000Z
2020-02-18T19:33:21.000Z
from django.conf.urls import url from .views import do_search, filter urlpatterns = [ url(r'^$', do_search, name='search'), url(r'^filter/', filter, name='filter') ]
24.857143
43
0.672414
46c4d484fef50c8a875c458a4b1e3f90c5962e12
693
py
Python
examples/main.py
qenu/slash_util
a251e594917a8b1a40f28506fb812f44824aeeb9
[ "MIT" ]
30
2022-01-27T01:43:00.000Z
2022-03-18T21:41:10.000Z
examples/main.py
qenu/slash_util
a251e594917a8b1a40f28506fb812f44824aeeb9
[ "MIT" ]
16
2022-01-27T03:17:20.000Z
2022-02-21T22:14:23.000Z
examples/main.py
qenu/slash_util
a251e594917a8b1a40f28506fb812f44824aeeb9
[ "MIT" ]
18
2022-01-27T01:42:49.000Z
2022-03-06T21:55:29.000Z
import discord import slash_util
36.473684
137
0.717172
46c64df06c02cc7d7adc3ca436f95b853a81c0c7
1,047
py
Python
elkatip/elkatip.py
kompasim/elkatip
d20d557518dcf3ba5d41f799986301c4054fa658
[ "MIT" ]
8
2020-06-06T11:05:30.000Z
2022-03-25T21:14:14.000Z
elkatip/elkatip.py
Dev-arxidin/elkatip
d20d557518dcf3ba5d41f799986301c4054fa658
[ "MIT" ]
null
null
null
elkatip/elkatip.py
Dev-arxidin/elkatip
d20d557518dcf3ba5d41f799986301c4054fa658
[ "MIT" ]
3
2020-07-28T18:32:51.000Z
2021-04-06T06:09:22.000Z
# encoding=utf-8 # Elkatip import os import imp # main class if __name__ == "__main__": ktp = Elkatip() ktp.showGui() # uighurche = "" # base # print(uighurche) # uyghurqa = ktp.toExt(uighurche) # ext # uighurche = ktp.toBase(uyghurqa) # base # print(uyghurqa) # print(uighurche)
23.266667
69
0.554919
46c69834d12a671ab5422edcba87960ceaab8bc1
7,704
py
Python
src/model/hurdle_regression.py
SensorDX/rainqc
d957705e0f1e2e05b3bf23c5b6fd77a135ac69cd
[ "Apache-2.0" ]
1
2022-02-16T01:24:17.000Z
2022-02-16T01:24:17.000Z
src/model/hurdle_regression.py
SensorDX/rainqc
d957705e0f1e2e05b3bf23c5b6fd77a135ac69cd
[ "Apache-2.0" ]
null
null
null
src/model/hurdle_regression.py
SensorDX/rainqc
d957705e0f1e2e05b3bf23c5b6fd77a135ac69cd
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from sklearn.exceptions import NotFittedError from sklearn.neighbors import KernelDensity from sklearn.linear_model import LinearRegression, LogisticRegression import pickle import os import matplotlib.pylab as plt from sklearn.externals import joblib import numpy as np from sklea...
33.938326
117
0.616693
46c6c52458aed5ead8d1c69894d74a5069c08e0c
998
py
Python
mundo2/exercicio065.py
beatriznaimaite/Exercicios-Python-Curso-Em-Video
e4213c2054a67d7948aa9023f2f0f33ab7e8eb96
[ "MIT" ]
null
null
null
mundo2/exercicio065.py
beatriznaimaite/Exercicios-Python-Curso-Em-Video
e4213c2054a67d7948aa9023f2f0f33ab7e8eb96
[ "MIT" ]
null
null
null
mundo2/exercicio065.py
beatriznaimaite/Exercicios-Python-Curso-Em-Video
e4213c2054a67d7948aa9023f2f0f33ab7e8eb96
[ "MIT" ]
null
null
null
""" Crie um programa que leia vrios nmeros inteiros pelo teclado. No final da execuo, mostre a mdia entre todos os valores e qual foi o maior e o menor valores lidos. O programa deve perguntar ao usurio se ele quer ou no continuar a digitar valores. """ resposta = 'S' cont = soma = maior = menor = media = 0 while resp...
30.242424
106
0.614228
46c7b45fdc6d0c9df561c0e5dd726412c25bc59b
1,329
py
Python
tpdata/templeplus/lib/templeplus/pymod.py
edoipi/TemplePlus
f0e552289822fea908f16daa379fa568b1bd286d
[ "MIT" ]
null
null
null
tpdata/templeplus/lib/templeplus/pymod.py
edoipi/TemplePlus
f0e552289822fea908f16daa379fa568b1bd286d
[ "MIT" ]
null
null
null
tpdata/templeplus/lib/templeplus/pymod.py
edoipi/TemplePlus
f0e552289822fea908f16daa379fa568b1bd286d
[ "MIT" ]
null
null
null
import tpdp
47.464286
122
0.696012
46c8699b2b2f0da56da0744dcc8bdfa6005669d4
7,279
py
Python
utils/Network/base_Network_module.py
mohammedayub44/ObjectDetection
6d151e417ff9322b6be5722b40bc4a209282d13d
[ "BSD-3-Clause" ]
null
null
null
utils/Network/base_Network_module.py
mohammedayub44/ObjectDetection
6d151e417ff9322b6be5722b40bc4a209282d13d
[ "BSD-3-Clause" ]
null
null
null
utils/Network/base_Network_module.py
mohammedayub44/ObjectDetection
6d151e417ff9322b6be5722b40bc4a209282d13d
[ "BSD-3-Clause" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F import math # --1.2.1 # --1.2.2 # --1.2.3 # --1.3.1 # --1.3.2 # --1.4 def change_padding(net,del_or_add='del',pad_size=(1,1)): for m in net.modules(): if isinstance(m,nn.Conv2d): m.padding = (0,0)...
32.936652
108
0.517104
46c928585677c4ea370d9cde42b1e5b9a1eac936
45
py
Python
CTFd/constants/themes.py
nox237/CTFd
ff6e093fa6bf23b526ecddf9271195b429240ff4
[ "Apache-2.0" ]
3,592
2017-03-12T19:44:07.000Z
2022-03-30T16:03:33.000Z
CTFd/constants/themes.py
nox237/CTFd
ff6e093fa6bf23b526ecddf9271195b429240ff4
[ "Apache-2.0" ]
1,648
2017-03-12T23:44:34.000Z
2022-03-31T15:28:38.000Z
CTFd/constants/themes.py
nox237/CTFd
ff6e093fa6bf23b526ecddf9271195b429240ff4
[ "Apache-2.0" ]
1,736
2017-03-13T14:01:28.000Z
2022-03-31T08:14:24.000Z
ADMIN_THEME = "admin" DEFAULT_THEME = "core"
15
22
0.733333
46c97fefdfff899068770ce996e87c74a6a8d373
6,865
py
Python
mongodbhttpinterface/__main__.py
anrylu/mongodbhttpinterface
23bf6eda558a92380e378450da18f3d6a233c266
[ "MIT" ]
null
null
null
mongodbhttpinterface/__main__.py
anrylu/mongodbhttpinterface
23bf6eda558a92380e378450da18f3d6a233c266
[ "MIT" ]
null
null
null
mongodbhttpinterface/__main__.py
anrylu/mongodbhttpinterface
23bf6eda558a92380e378450da18f3d6a233c266
[ "MIT" ]
null
null
null
import json from flask import Flask, request from pymongo import MongoClient, ASCENDING, DESCENDING from pymongo.errors import ConnectionFailure, ConfigurationError, OperationFailure, AutoReconnect app = Flask(__name__) mongo_connections = {} def __output_results(cursor): """ Iterate through the next batc...
25.238971
97
0.543627
46c98777ff9d65877370b3771c5ded1b1ada78db
4,147
py
Python
doc/examples/transform/plot_ransac.py
smheidrich/scikit-image
e9cf8b850c4c2800cc221be6f1dfff6a2a32a4eb
[ "BSD-3-Clause" ]
1
2019-02-17T23:16:44.000Z
2019-02-17T23:16:44.000Z
doc/examples/transform/plot_ransac.py
smheidrich/scikit-image
e9cf8b850c4c2800cc221be6f1dfff6a2a32a4eb
[ "BSD-3-Clause" ]
null
null
null
doc/examples/transform/plot_ransac.py
smheidrich/scikit-image
e9cf8b850c4c2800cc221be6f1dfff6a2a32a4eb
[ "BSD-3-Clause" ]
1
2021-12-27T15:17:32.000Z
2021-12-27T15:17:32.000Z
""" ========================================= Robust line model estimation using RANSAC ========================================= In this example we see how to robustly fit a line model to faulty data using the RANSAC (random sample consensus) algorithm. Firstly the data are generated by adding a gaussian noise to a ...
35.444444
80
0.684591
46cb93aa92bbe683bb38be532385096924e02464
915
py
Python
crawler/crawler/spiders/all_591_cities.py
eala/tw-rental-house-data
5f595e6bfac8cc85ddff0746b3ee6806e83dec3a
[ "MIT" ]
null
null
null
crawler/crawler/spiders/all_591_cities.py
eala/tw-rental-house-data
5f595e6bfac8cc85ddff0746b3ee6806e83dec3a
[ "MIT" ]
null
null
null
crawler/crawler/spiders/all_591_cities.py
eala/tw-rental-house-data
5f595e6bfac8cc85ddff0746b3ee6806e83dec3a
[ "MIT" ]
null
null
null
all_591_cities = [ { "city": "", "id": "1" }, { "city": "", "id": "3" }, { "city": "", "id": "6" }, { "city": "", "id": "4" }, { "city": "", "id": "5" }, { "city": "", "id": "2" }, { "city": "", "id": "21" }, { "city": "", "id...
10.517241
18
0.259016
46cd5ffb65eea5ca8f885ef00d2ff3cf731b7ffc
7,178
py
Python
create_google_prior.py
AdrianNunez/zeroshot-action-recognition-action-priors
d336f2d7df990777aad9a95ff983cb23a2fafb48
[ "MIT" ]
3
2020-01-31T23:42:17.000Z
2020-02-05T12:47:40.000Z
create_google_prior.py
AdrianNunez/zeroshot-action-recognition-action-priors
d336f2d7df990777aad9a95ff983cb23a2fafb48
[ "MIT" ]
18
2020-03-24T18:15:57.000Z
2022-03-12T00:16:40.000Z
create_google_prior.py
AdrianNunez/zeroshot-action-recognition-action-priors
d336f2d7df990777aad9a95ff983cb23a2fafb48
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- import os import json import logging from googleapiclient.discovery import build from tqdm import tqdm from data import get_classes_ordered logging.getLogger('googleapicliet.discovery_cache').setLevel(logging.ERROR) variables_file = 'variables.json' with open(variables_file) as f: config = ...
38.385027
94
0.547924
46ce5b3676d526f750eecbff8d36672c35b7b6b1
1,041
py
Python
AoC2019/Day_2/Day_2.py
byarmis/AdventOfCode
9c91808c2ea06d49f7e726779ac44918a99136f0
[ "Unlicense" ]
null
null
null
AoC2019/Day_2/Day_2.py
byarmis/AdventOfCode
9c91808c2ea06d49f7e726779ac44918a99136f0
[ "Unlicense" ]
null
null
null
AoC2019/Day_2/Day_2.py
byarmis/AdventOfCode
9c91808c2ea06d49f7e726779ac44918a99136f0
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- if __name__ == '__main__': with open('input.txt') as f: program = f.readline() program = [int(i) for i in program.split(',')] p_1 = program[:] p_1[1] = 12 p_1[2] = 2 p = part_1(p_1) print(f'part 1: {p[0]}') noun, verb = part_2(progr...
23.659091
67
0.487992
46d074f1f3a34238441330f57b34adc307f55fe6
1,493
bzl
Python
third_party/opencv_configs.bzl
zycv/edge-brain
6c4ba7dd06f2c24dad93d617a21c42b5b7122d57
[ "Apache-2.0" ]
null
null
null
third_party/opencv_configs.bzl
zycv/edge-brain
6c4ba7dd06f2c24dad93d617a21c42b5b7122d57
[ "Apache-2.0" ]
null
null
null
third_party/opencv_configs.bzl
zycv/edge-brain
6c4ba7dd06f2c24dad93d617a21c42b5b7122d57
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Duan-JM, Sun Aries # 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 writi...
30.469388
76
0.716678
46d0bc415f0da8ec3ab5ab337e4a454b61b7cfdc
1,712
py
Python
treestructure.py
Mouedrhiri/Website-tree-structure
e93b686e4e1760a4f189225265854adef65ce7c5
[ "MIT" ]
1
2021-05-10T22:56:50.000Z
2021-05-10T22:56:50.000Z
treestructure.py
Mouedrhiri/Website-tree-structure
e93b686e4e1760a4f189225265854adef65ce7c5
[ "MIT" ]
null
null
null
treestructure.py
Mouedrhiri/Website-tree-structure
e93b686e4e1760a4f189225265854adef65ce7c5
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup import urllib.request import xml.etree.ElementTree as ET from tqdm import tqdm from time import sleep #Try With This Website http://igm.univ-mlv.fr/ LinksList = [] var=input("Enter a Website : ") var=str(var) html_page = urllib.request.urlopen(var) soup = BeautifulSoup(html_pa...
33.568627
110
0.61507
46d23d217543d8a9b9de55f8928d348dc9fb5455
3,237
py
Python
main.py
cecemel/fabbrikka-cart-service
b18ac45c0effb72ab8ef112c468e5ede0b053016
[ "MIT" ]
null
null
null
main.py
cecemel/fabbrikka-cart-service
b18ac45c0effb72ab8ef112c468e5ede0b053016
[ "MIT" ]
null
null
null
main.py
cecemel/fabbrikka-cart-service
b18ac45c0effb72ab8ef112c468e5ede0b053016
[ "MIT" ]
null
null
null
from flask import Flask, request, jsonify import os, sys import helpers, escape_helpers import logging import config from rdflib.namespace import Namespace ############## # INIT CONFIG ############## CONFIG = config.load_config(os.environ.get('ENVIRONMENT', "DEBUG")) app = Flask(__name__) handler = logging.StreamHan...
27.905172
118
0.624344
46d523c499eb9dbe0d15573f941e28e4f1830269
2,406
py
Python
pgmock/tests/test_examples.py
CloverHealth/pgmock
bfebf405696f3613b52958dc640a58e634815ee8
[ "BSD-3-Clause" ]
54
2018-03-29T21:41:41.000Z
2022-01-26T11:38:22.000Z
pgmock/tests/test_examples.py
CloverHealth/pgmock
bfebf405696f3613b52958dc640a58e634815ee8
[ "BSD-3-Clause" ]
2
2018-07-31T19:39:24.000Z
2020-04-16T06:28:12.000Z
pgmock/tests/test_examples.py
CloverHealth/pgmock
bfebf405696f3613b52958dc640a58e634815ee8
[ "BSD-3-Clause" ]
1
2018-08-22T16:15:08.000Z
2018-08-22T16:15:08.000Z
""" This file illustrates a few examples of using pgmock with pytest. A postgres testing database from pytest-pgsql (https://github.com/CloverHealth/pytest-pgsql) is used and a fixture is created for using the mock context manager. This is the preferred way of using pgmock, but it's also possible to render SQL yoursel...
39.442623
98
0.672485
46d5533b2c8563437c9f6b3a8da67452f5e8e47b
3,019
py
Python
jsonserver.py
hellfyre/StratumsphereStatusBot
478dce7007a60c3a33c41c789893242c074e4e8d
[ "Apache-2.0" ]
null
null
null
jsonserver.py
hellfyre/StratumsphereStatusBot
478dce7007a60c3a33c41c789893242c074e4e8d
[ "Apache-2.0" ]
null
null
null
jsonserver.py
hellfyre/StratumsphereStatusBot
478dce7007a60c3a33c41c789893242c074e4e8d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = 'Matthias Uschok <dev@uschok.de>' import json import BaseHTTPServer import threading from urlparse import parse_qs, urlparse import status callbacks = dict()
34.306818
161
0.496191
46d59eb1b0b3c39e785f15faba7490ca7d08e591
4,456
py
Python
apps/permissions/views.py
yhkl-dev/JAutoOps
e42342fc6d814813dcac2e0154cd5dfdc1adf4c1
[ "MIT" ]
null
null
null
apps/permissions/views.py
yhkl-dev/JAutoOps
e42342fc6d814813dcac2e0154cd5dfdc1adf4c1
[ "MIT" ]
null
null
null
apps/permissions/views.py
yhkl-dev/JAutoOps
e42342fc6d814813dcac2e0154cd5dfdc1adf4c1
[ "MIT" ]
null
null
null
from django.contrib.auth.models import Permission, Group from rest_framework import viewsets, mixins, response, status from rest_framework.generics import get_object_or_404 from .serializer import PermissionSerializer from .common import get_permission_obj from .filter import PermissionFilter
35.648
115
0.656194
46d61300693e53921017fdd21edfe3a6e707f091
4,267
py
Python
mrtarget/common/Redis.py
pieterlukasse/data_pipeline-1
823645a36a999e76dc51584aa784f5f9e3f245e7
[ "Apache-2.0" ]
null
null
null
mrtarget/common/Redis.py
pieterlukasse/data_pipeline-1
823645a36a999e76dc51584aa784f5f9e3f245e7
[ "Apache-2.0" ]
null
null
null
mrtarget/common/Redis.py
pieterlukasse/data_pipeline-1
823645a36a999e76dc51584aa784f5f9e3f245e7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import base64 import simplejson as json from collections import Counter import jsonpickle from mrtarget.common import require_all from mrtarget.common.connection import new_redis_client jsonpickle.set_preferred_backend('simplejson') import logging import uuid import datet...
28.446667
81
0.65948
46d6aee61459f1fde35e599535d517f88ab7a4d8
2,133
py
Python
helpers/module_api_pages_manager.py
Maveo/Spark
93fd7a43ac830350991ef1b722205a94a2623409
[ "MIT" ]
2
2022-01-23T16:24:27.000Z
2022-03-19T23:23:30.000Z
helpers/module_api_pages_manager.py
Maveo/Spark
93fd7a43ac830350991ef1b722205a94a2623409
[ "MIT" ]
10
2022-02-01T20:02:45.000Z
2022-03-30T10:47:52.000Z
helpers/module_api_pages_manager.py
Maveo/Spark
93fd7a43ac830350991ef1b722205a94a2623409
[ "MIT" ]
1
2022-03-20T23:13:11.000Z
2022-03-20T23:13:11.000Z
from typing import * import discord from helpers.exceptions import ModuleNotActivatedException from webserver import Page if TYPE_CHECKING: from helpers.module_manager import ModuleManager from helpers.spark_module import SparkModule
44.4375
112
0.608064
46d79143d42745acfc58bf24b940e5ad645fcc18
401
py
Python
project/app/migrations/0006_housing_description.py
ryan-lam/hackupc2021
2f63b47f831f3d6d01077a9bf2f94d9babe6bfce
[ "MIT" ]
null
null
null
project/app/migrations/0006_housing_description.py
ryan-lam/hackupc2021
2f63b47f831f3d6d01077a9bf2f94d9babe6bfce
[ "MIT" ]
null
null
null
project/app/migrations/0006_housing_description.py
ryan-lam/hackupc2021
2f63b47f831f3d6d01077a9bf2f94d9babe6bfce
[ "MIT" ]
2
2021-05-23T04:36:35.000Z
2021-05-27T04:27:04.000Z
# Generated by Django 3.2 on 2021-05-16 05:09 from django.db import migrations, models
21.105263
67
0.603491
46d7c8e865c33bd48710e0960deb0a7786e9aa63
14,313
py
Python
simpleml/utils/training/create_persistable.py
ptoman/SimpleML
a829ee05da01a75b64982d91a012e9274b6f7c6e
[ "BSD-3-Clause" ]
null
null
null
simpleml/utils/training/create_persistable.py
ptoman/SimpleML
a829ee05da01a75b64982d91a012e9274b6f7c6e
[ "BSD-3-Clause" ]
null
null
null
simpleml/utils/training/create_persistable.py
ptoman/SimpleML
a829ee05da01a75b64982d91a012e9274b6f7c6e
[ "BSD-3-Clause" ]
null
null
null
''' Module with helper classes to create new persistables ''' from abc import ABCMeta, abstractmethod from simpleml.persistables.meta_registry import SIMPLEML_REGISTRY from simpleml.datasets.base_dataset import Dataset from simpleml.pipelines.base_pipeline import Pipeline from simpleml.models.base_model import Model fr...
37.273438
130
0.631314
46d8731739d55091c02beebba8b44113b38fd70d
13,068
py
Python
drizzlepac/haputils/make_poller_files.py
check-spelling/drizzlepac
19baaf5a416c72f272889800b13d251f33f76d2c
[ "BSD-3-Clause" ]
28
2016-08-16T04:16:32.000Z
2022-03-27T15:39:29.000Z
drizzlepac/haputils/make_poller_files.py
check-spelling/drizzlepac
19baaf5a416c72f272889800b13d251f33f76d2c
[ "BSD-3-Clause" ]
822
2016-03-10T01:19:28.000Z
2022-03-30T20:25:34.000Z
drizzlepac/haputils/make_poller_files.py
check-spelling/drizzlepac
19baaf5a416c72f272889800b13d251f33f76d2c
[ "BSD-3-Clause" ]
33
2016-03-16T19:18:03.000Z
2021-12-27T04:20:44.000Z
#!/usr/bin/env python """Generates a poller file that will be used as input to runsinglehap.py, hapsequencer.py, runmultihap.py or hapmultisequencer.py based on the files or rootnames listed user-specified list file. USAGE >>> python drizzlepac/haputils/make_poller_files.py <input filename> -[ost] - input fil...
54.224066
191
0.633762
46dd137785094becd75941a367274b47778b4b02
2,118
py
Python
radloggerpy/tests/config/test_conf_fixture.py
Dantali0n/RadLoggerPy
c630ce730519001ee39fb3a02dd3652943a23067
[ "Apache-2.0" ]
null
null
null
radloggerpy/tests/config/test_conf_fixture.py
Dantali0n/RadLoggerPy
c630ce730519001ee39fb3a02dd3652943a23067
[ "Apache-2.0" ]
null
null
null
radloggerpy/tests/config/test_conf_fixture.py
Dantali0n/RadLoggerPy
c630ce730519001ee39fb3a02dd3652943a23067
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- # Copyright (c) 2019 Dantali0n # # 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 ...
35.898305
75
0.699245
46dd367bc104a82f56c26623af9a311c62796d6c
3,932
py
Python
native/jni/external/selinux/python/sepolicy/sepolicy/templates/rw.py
Joyoe/Magisk-nosbin_magisk-nohide
449441921740bf85926c14f41b3532822ca0eb65
[ "MIT" ]
2
2022-01-16T00:59:54.000Z
2022-02-09T12:00:48.000Z
native/jni/external/selinux/python/sepolicy/sepolicy/templates/rw.py
Joyoe/Magisk-nosbin_magisk-nohide
449441921740bf85926c14f41b3532822ca0eb65
[ "MIT" ]
null
null
null
native/jni/external/selinux/python/sepolicy/sepolicy/templates/rw.py
Joyoe/Magisk-nosbin_magisk-nohide
449441921740bf85926c14f41b3532822ca0eb65
[ "MIT" ]
2
2022-02-09T12:00:39.000Z
2022-02-21T18:34:46.000Z
# Copyright (C) 2007-2012 Red Hat # see file 'COPYING' for use and warranty information # # policygentool is a tool for the initial generation of SELinux policy # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the ...
24.72956
81
0.653611
46ddb3dd7ba68b21876cf1b57fdf4ef088c06100
5,909
py
Python
src/htmxl/compose/write/writer.py
schireson/htmxl
d4adef9fe0630f39c3664d3913bbbbe3db3ec069
[ "MIT" ]
2
2021-08-11T15:15:29.000Z
2022-03-20T04:04:54.000Z
src/htmxl/compose/write/writer.py
schireson/htmxl
d4adef9fe0630f39c3664d3913bbbbe3db3ec069
[ "MIT" ]
5
2021-08-18T20:54:32.000Z
2022-01-24T20:06:46.000Z
src/htmxl/compose/write/writer.py
schireson/htmxl
d4adef9fe0630f39c3664d3913bbbbe3db3ec069
[ "MIT" ]
null
null
null
"""A module dedicated to writing data to a workbook.""" import logging from contextlib import contextmanager import openpyxl.styles from htmxl.compose.cell import Cell from htmxl.compose.recording import Recording from htmxl.compose.style import style_range from htmxl.compose.write import elements logger = logging.g...
33.573864
99
0.617871
46dea0e929c6d4425f82b7f896f31290465dc137
820
py
Python
punto/__init__.py
xu-hong/Punto
906d2725d8e4c72b5c094a5f1f738f5ce2a7532f
[ "MIT" ]
null
null
null
punto/__init__.py
xu-hong/Punto
906d2725d8e4c72b5c094a5f1f738f5ce2a7532f
[ "MIT" ]
null
null
null
punto/__init__.py
xu-hong/Punto
906d2725d8e4c72b5c094a5f1f738f5ce2a7532f
[ "MIT" ]
null
null
null
""" Compartmentalize: [ ascii art input ] --------------- | maybe some | | sort of auxillary | | drawing program | | | \ / v [ lex/parser ] --> [ translater ] --------- ---------- | grammar | | notes literals| | to numerical | ...
20.5
46
0.265854
46df810892583016f332b3bb6b66329f389547e7
189
py
Python
engine/tests/scenes/test_scenes.py
LloydTao/ecm3423-fur-effect
fefa73665b459dfd1648dca97a95e8313cf53dd5
[ "MIT" ]
null
null
null
engine/tests/scenes/test_scenes.py
LloydTao/ecm3423-fur-effect
fefa73665b459dfd1648dca97a95e8313cf53dd5
[ "MIT" ]
null
null
null
engine/tests/scenes/test_scenes.py
LloydTao/ecm3423-fur-effect
fefa73665b459dfd1648dca97a95e8313cf53dd5
[ "MIT" ]
null
null
null
import unittest from ...scenes import Scene if __name__ == "__main__": unittest.main()
14.538462
42
0.68254
46e269d01f45d8d68174ca63ae8d4c89e50af8a2
1,545
py
Python
paper/F3/D_fixed_points.py
FedeClaudi/manyfolds
68f7abba9059e3063eae46285f1c95157ea454cf
[ "MIT" ]
3
2021-11-04T10:29:40.000Z
2021-11-04T12:28:57.000Z
paper/F3/D_fixed_points.py
FedeClaudi/manyfolds
68f7abba9059e3063eae46285f1c95157ea454cf
[ "MIT" ]
null
null
null
paper/F3/D_fixed_points.py
FedeClaudi/manyfolds
68f7abba9059e3063eae46285f1c95157ea454cf
[ "MIT" ]
null
null
null
import sys import numpy as np sys.path.append("./") from vedo import screenshot from vedo.shapes import Tube from myterial import salmon from manifold import embeddings, Plane from manifold.visualize import Visualizer from manifold import visualize from manifold.rnn import RNN """ 3D viisualization of an RNN's...
22.391304
78
0.70356
46e4328cfd69808c97427162d164c51749e7b2f4
2,567
py
Python
everest/window/data/pile.py
rsbyrne/everest
1ec06301cdeb7c2b7d85daf6075d996c5529247e
[ "MIT" ]
2
2020-12-17T02:27:28.000Z
2020-12-17T23:50:13.000Z
everest/window/data/pile.py
rsbyrne/everest
1ec06301cdeb7c2b7d85daf6075d996c5529247e
[ "MIT" ]
1
2020-12-07T10:14:45.000Z
2020-12-07T10:14:45.000Z
everest/window/data/pile.py
rsbyrne/everest
1ec06301cdeb7c2b7d85daf6075d996c5529247e
[ "MIT" ]
1
2020-10-22T11:16:50.000Z
2020-10-22T11:16:50.000Z
############################################################################### '''''' ############################################################################### from functools import cached_property from collections import OrderedDict from collections.abc import Sequence from .channel import DataChannel from .sp...
32.0875
79
0.470978
46e449ebb96ea8dbe3851d2cb33720b71feeea7a
3,591
py
Python
app/modules/entity/endpoint_entity.py
Clivern/Kevin
dfa6fe99d2599a3f1a9da7c9690e2fba6a825f1d
[ "Apache-2.0" ]
2
2018-06-18T09:37:36.000Z
2021-06-23T02:09:41.000Z
app/modules/entity/endpoint_entity.py
Clivern/Kevin
dfa6fe99d2599a3f1a9da7c9690e2fba6a825f1d
[ "Apache-2.0" ]
45
2018-04-08T11:53:05.000Z
2018-06-12T20:45:38.000Z
app/modules/entity/endpoint_entity.py
Clivern/Kevin
dfa6fe99d2599a3f1a9da7c9690e2fba6a825f1d
[ "Apache-2.0" ]
null
null
null
""" Endpoint Entity Module """ # Django from django.contrib.auth.models import User # local Django from app.models import Endpoint from app.models import Namespace from app.models import Endpoint_Meta from app.modules.util.helpers import Helpers
29.195122
115
0.610972
46e63dd31aa69a8cfc27255c2ad18d4d445a70e1
12,005
py
Python
src/krux/pages/home.py
odudex/krux
db421a3f107c0263221e5f1e877e9c38925bb17c
[ "MIT" ]
null
null
null
src/krux/pages/home.py
odudex/krux
db421a3f107c0263221e5f1e877e9c38925bb17c
[ "MIT" ]
null
null
null
src/krux/pages/home.py
odudex/krux
db421a3f107c0263221e5f1e877e9c38925bb17c
[ "MIT" ]
null
null
null
# The MIT License (MIT) # Copyright (c) 2021 Tom J. Sun # 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, ...
38.477564
88
0.576676
46e64d04cb168b2efed6cd2ba94658c95071fa2b
21,705
py
Python
src/main/python/main.py
ctmrbio/list_scanner
895a49d4d86a1e794592f4f9b9e711109015e475
[ "MIT" ]
null
null
null
src/main/python/main.py
ctmrbio/list_scanner
895a49d4d86a1e794592f4f9b9e711109015e475
[ "MIT" ]
6
2018-09-23T17:41:21.000Z
2018-10-24T16:32:46.000Z
src/main/python/main.py
ctmrbio/list_scanner
895a49d4d86a1e794592f4f9b9e711109015e475
[ "MIT" ]
null
null
null
#!/usr/bin/env python3.5 """CTMR list scanner""" __author__ = "Fredrik Boulund" __date__ = "2018" __version__ = "0.4.0b" from datetime import datetime from pathlib import Path import sys from fbs_runtime.application_context import ApplicationContext, cached_property from PyQt5 import QtCore from PyQt5.QtWidgets impor...
43.672032
108
0.651693
46e72776df2b4121bbdb1420024b89de418060c1
4,411
py
Python
bento/loaders/noop.py
ARM-software/bento-linker
b6cbdb6b7b35ebd96fcac070e5045919acdb65bf
[ "BSD-3-Clause" ]
20
2021-01-21T08:23:34.000Z
2021-12-10T07:45:58.000Z
bento/loaders/noop.py
QPC-database/bento-linker
b6cbdb6b7b35ebd96fcac070e5045919acdb65bf
[ "BSD-3-Clause" ]
1
2021-04-26T14:44:46.000Z
2021-09-04T22:13:26.000Z
bento/loaders/noop.py
QPC-database/bento-linker
b6cbdb6b7b35ebd96fcac070e5045919acdb65bf
[ "BSD-3-Clause" ]
6
2021-01-24T09:29:10.000Z
2021-11-22T16:43:35.000Z
# # Default loader that doesn't do anything special # # Copyright (c) 2020, Arm Limited. All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # from .. import loaders import os
40.842593
73
0.502834
46e9e9cdbe1c2421007218ef09b2430850f50384
8,007
py
Python
tests/cli/test_output_option.py
mohammad-sdsc/renku-python
3a7bf2339ab56a3bc00a689bb27a864bb5bf55da
[ "Apache-2.0" ]
null
null
null
tests/cli/test_output_option.py
mohammad-sdsc/renku-python
3a7bf2339ab56a3bc00a689bb27a864bb5bf55da
[ "Apache-2.0" ]
null
null
null
tests/cli/test_output_option.py
mohammad-sdsc/renku-python
3a7bf2339ab56a3bc00a689bb27a864bb5bf55da
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2019-2020 - Swiss Data Science Center (SDSC) # A partnership between cole Polytechnique Fdrale de Lausanne (EPFL) and # Eidgenssische Technische Hochschule Zrich (ETHZ). # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compli...
33.78481
78
0.653678
46ea0e15fcb12765259fb6e7e21ff4cff83a6d51
2,458
py
Python
backend/blog/util/config.py
o8oo8o/blog
2a6f44f86469bfbb472dfd1bec4238587d8402bf
[ "MIT" ]
null
null
null
backend/blog/util/config.py
o8oo8o/blog
2a6f44f86469bfbb472dfd1bec4238587d8402bf
[ "MIT" ]
null
null
null
backend/blog/util/config.py
o8oo8o/blog
2a6f44f86469bfbb472dfd1bec4238587d8402bf
[ "MIT" ]
null
null
null
#!/usr/bin/evn python3 # coding=utf-8 import logging import redis from typing import Any from conf import dev_conf as conf from util import singleton if __name__ == '__main__': a = Config() b = Config() print(id(a)) print(id(b)) c = a.get_redis() d = b.get_redis() print(id(c)) prin...
23.864078
76
0.537022
46ebb2375f6354f283088526e6acc20b627eadfb
1,340
py
Python
rss/resources.py
victorchen796/reddit-submission-scraper
01401c6b35af8547eb9640e441a28633c38408bd
[ "MIT" ]
null
null
null
rss/resources.py
victorchen796/reddit-submission-scraper
01401c6b35af8547eb9640e441a28633c38408bd
[ "MIT" ]
null
null
null
rss/resources.py
victorchen796/reddit-submission-scraper
01401c6b35af8547eb9640e441a28633c38408bd
[ "MIT" ]
null
null
null
import json import os script_path = os.path.abspath(__file__) script_dir = os.path.split(script_path)[0]
26.27451
63
0.671642
46eca7e793a2053c4124a22d938ceda349298ccd
907
py
Python
tests/test/algorithms/convert/OsuToQua/test.py
Bestfast/reamberPy
91b76ca6adf11fbe8b7cee7c186481776a4d7aaa
[ "MIT" ]
null
null
null
tests/test/algorithms/convert/OsuToQua/test.py
Bestfast/reamberPy
91b76ca6adf11fbe8b7cee7c186481776a4d7aaa
[ "MIT" ]
null
null
null
tests/test/algorithms/convert/OsuToQua/test.py
Bestfast/reamberPy
91b76ca6adf11fbe8b7cee7c186481776a4d7aaa
[ "MIT" ]
null
null
null
import unittest from reamber.algorithms.convert.OsuToQua import OsuToQua from reamber.osu.OsuMap import OsuMap from tests.test.RSC_PATHS import * # import logging # # logging.basicConfig(filename="event.log", filemode="w+", level=logging.DEBUG) if __name__ == '__main__': unittest.main()
21.093023
79
0.638368
46ed48e43be2fce5de7ba35ab5fb8953a3a9a2ad
1,644
py
Python
connection_events.py
Teplitsa/false-security-1
9e5cc23c8bf324d923965bb2624cac4994891154
[ "MIT" ]
1
2020-10-01T17:44:26.000Z
2020-10-01T17:44:26.000Z
connection_events.py
Teplitsa/false-security-1
9e5cc23c8bf324d923965bb2624cac4994891154
[ "MIT" ]
null
null
null
connection_events.py
Teplitsa/false-security-1
9e5cc23c8bf324d923965bb2624cac4994891154
[ "MIT" ]
1
2021-10-05T12:09:07.000Z
2021-10-05T12:09:07.000Z
from flask import g from flask_socketio import SocketIO, emit from logic.game_manager import GameManager from logic.player_manager import PlayerManager from logic.player_logic import PlayerLogic from globals import socketio, db from session import SessionHelper, SessionKeys from utils.response import Response from uti...
30.444444
129
0.663625
46ef6c38effd587fa6ee1174353229a1f1d10d8f
1,943
py
Python
AgentsVisualization/Server/server.py
mateoglzc/TC2008B
e4e217d9edbb0d6c73df28324686ec069b361f0d
[ "MIT" ]
7
2021-11-01T15:36:16.000Z
2021-11-11T03:37:43.000Z
AgentsVisualization/Server/server.py
mateoglzc/TC2008B
e4e217d9edbb0d6c73df28324686ec069b361f0d
[ "MIT" ]
null
null
null
AgentsVisualization/Server/server.py
mateoglzc/TC2008B
e4e217d9edbb0d6c73df28324686ec069b361f0d
[ "MIT" ]
4
2021-11-01T23:35:02.000Z
2021-11-30T02:01:49.000Z
# TC2008B. Sistemas Multiagentes y Grficas Computacionales # Python flask server to interact with Unity. Based on the code provided by Sergio Ruiz. # Octavio Navarro. October 2021 from flask import Flask, request, jsonify from RandomAgents import * # Size of the board: number_agents = 10 width = 28 height = 28 traffi...
31.33871
127
0.66598
46f05cf6545f1bd019299906868ea89580724e08
331
py
Python
lrthubcore/ratings/admin.py
xrojan/lrthub-core
757189942c87f7136fd1f1fee536375d248d8233
[ "BSD-3-Clause" ]
null
null
null
lrthubcore/ratings/admin.py
xrojan/lrthub-core
757189942c87f7136fd1f1fee536375d248d8233
[ "BSD-3-Clause" ]
null
null
null
lrthubcore/ratings/admin.py
xrojan/lrthub-core
757189942c87f7136fd1f1fee536375d248d8233
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin from .models import Rating # Register your models here.
27.583333
52
0.719033
46f2fb3f4a355efbd5abadbe36f9f51a55519a5b
20,406
py
Python
scitbx/math/tests/tst_gaussian.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
scitbx/math/tests/tst_gaussian.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
scitbx/math/tests/tst_gaussian.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
from __future__ import division from scitbx.examples import immoptibox_ports from scitbx.math import gaussian from scitbx.array_family import flex from libtbx.test_utils import approx_equal, eps_eq from libtbx.utils import format_cpu_times try: import cPickle as pickle except ImportError: import pickle from cString...
36.053004
79
0.653925
46f372711799b0f95a2ba0f4f20bd63cd2ae95f4
575
py
Python
examples/application_commands/option_names.py
DiscPy/DiscPy
883e1690ade23b0cc56c671285fcd214d287350a
[ "MIT" ]
2
2021-09-09T10:55:24.000Z
2021-09-09T10:56:54.000Z
examples/application_commands/option_names.py
DiscPy/DiscPy
883e1690ade23b0cc56c671285fcd214d287350a
[ "MIT" ]
null
null
null
examples/application_commands/option_names.py
DiscPy/DiscPy
883e1690ade23b0cc56c671285fcd214d287350a
[ "MIT" ]
2
2021-10-01T15:03:57.000Z
2021-10-08T07:24:33.000Z
import discpy from discpy import commands bot = commands.Bot(command_prefix='!') # you can set "arg" keyword argument to the name of argument that represents the option in the command function # and then change the option name as desired. # in above command, the option name in discord will appear "sentence" but in t...
31.944444
111
0.747826
46f4304f0194b1310f816ea7b6c9eb36a154d157
192
py
Python
huaweisms/api/monitoring.py
mcsarge/huawei-modem-python-api-client
1bac12d9c44b3c0ee85a469004e9d37e4f7bbd37
[ "MIT" ]
2
2018-03-15T18:15:35.000Z
2018-03-16T20:23:42.000Z
huaweisms/api/monitoring.py
mcsarge/huawei-modem-python-api-client
1bac12d9c44b3c0ee85a469004e9d37e4f7bbd37
[ "MIT" ]
null
null
null
huaweisms/api/monitoring.py
mcsarge/huawei-modem-python-api-client
1bac12d9c44b3c0ee85a469004e9d37e4f7bbd37
[ "MIT" ]
null
null
null
from huaweisms.api.common import get_from_url, ApiCtx from .config import API_URL
24
53
0.744792
46f4ca2022403d4568c5fcb36b8d0df73945b02b
366
py
Python
accounts/migrations/0005_auto_20210104_0129.py
julesc00/CRM1
ec5955b2cb84e2bb7631bea7201bf6de1f8d8d4b
[ "MIT" ]
null
null
null
accounts/migrations/0005_auto_20210104_0129.py
julesc00/CRM1
ec5955b2cb84e2bb7631bea7201bf6de1f8d8d4b
[ "MIT" ]
null
null
null
accounts/migrations/0005_auto_20210104_0129.py
julesc00/CRM1
ec5955b2cb84e2bb7631bea7201bf6de1f8d8d4b
[ "MIT" ]
null
null
null
# Generated by Django 3.1.4 on 2021-01-04 01:29 from django.db import migrations
19.263158
48
0.587432
46f6b99cf764b66602044cdd17f1e9d9f4b6fced
1,708
py
Python
migrations/versions/221ccee39de7_add_role.py
MashSoftware/flux-api
8763f752d44868b53a351f44f243ae760b28be31
[ "MIT" ]
1
2021-06-19T18:06:34.000Z
2021-06-19T18:06:34.000Z
migrations/versions/221ccee39de7_add_role.py
MashSoftware/flux-api
8763f752d44868b53a351f44f243ae760b28be31
[ "MIT" ]
null
null
null
migrations/versions/221ccee39de7_add_role.py
MashSoftware/flux-api
8763f752d44868b53a351f44f243ae760b28be31
[ "MIT" ]
null
null
null
"""add role Revision ID: 221ccee39de7 Revises: ba9704e35cb2 Create Date: 2021-05-13 23:51:53.241485 """ import sqlalchemy as sa from alembic import op from sqlalchemy.dialects import postgresql # revision identifiers, used by Alembic. revision = "221ccee39de7" down_revision = "ba9704e35cb2" branch_labels = None depe...
37.130435
94
0.675059
46f80c5cfc8c3b9af38f4c0eab931d67dbfef11c
5,101
py
Python
httpclient.py
NErgezinger/CMPUT404-assignment-web-client
02d887b500879c28fd81ebb29f6b2eea300273c8
[ "Apache-2.0" ]
null
null
null
httpclient.py
NErgezinger/CMPUT404-assignment-web-client
02d887b500879c28fd81ebb29f6b2eea300273c8
[ "Apache-2.0" ]
null
null
null
httpclient.py
NErgezinger/CMPUT404-assignment-web-client
02d887b500879c28fd81ebb29f6b2eea300273c8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # coding: utf-8 # Copyright 2016 Abram Hindle, https://github.com/tywtyw2002, and https://github.com/treedust # # 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 # # ...
28.819209
143
0.571849
46f8f978d1dff2ed9209d787daec474e7c997240
746
py
Python
xpdacq/devices.py
xpdAcq/xpdAcq
ad850df65c185c50b2bd7daf44148480a8ec42dd
[ "BSD-2-Clause-FreeBSD" ]
3
2017-12-11T17:28:03.000Z
2020-05-05T20:51:15.000Z
xpdacq/devices.py
xpdAcq/xpdAcq
ad850df65c185c50b2bd7daf44148480a8ec42dd
[ "BSD-2-Clause-FreeBSD" ]
521
2016-02-06T23:27:47.000Z
2022-02-02T21:25:37.000Z
xpdacq/devices.py
xpdAcq/xpdAcq
ad850df65c185c50b2bd7daf44148480a8ec42dd
[ "BSD-2-Clause-FreeBSD" ]
15
2016-02-08T03:49:03.000Z
2022-03-30T00:25:40.000Z
"""Wrappers for the ophyd devices.""" from ophyd import Device, Signal from ophyd import Kind from ophyd.device import Component as Cpt
39.263158
56
0.684987
46f90d6e35d87e99ffb0c6d077e3c447cadfc5e5
3,195
py
Python
tests/unit/model_selection/test_model_selection.py
ambader/hcrystalball
713636e698d9a260fab982764fce4a13699be1a8
[ "MIT" ]
139
2020-06-29T16:36:16.000Z
2022-01-25T21:49:10.000Z
tests/unit/model_selection/test_model_selection.py
ambader/hcrystalball
713636e698d9a260fab982764fce4a13699be1a8
[ "MIT" ]
34
2020-06-29T12:31:26.000Z
2022-03-18T13:56:21.000Z
tests/unit/model_selection/test_model_selection.py
ambader/hcrystalball
713636e698d9a260fab982764fce4a13699be1a8
[ "MIT" ]
28
2020-06-30T06:00:39.000Z
2022-03-18T13:27:58.000Z
import numpy as np import pytest from sklearn.dummy import DummyRegressor from sklearn.model_selection import GridSearchCV from sklearn.pipeline import Pipeline from hcrystalball.metrics import get_scorer from hcrystalball.model_selection import FinerTimeSplit from hcrystalball.model_selection import get_best_not_fail...
34.354839
104
0.693271
46fa92d6b3fc162164fdf17f192beafbb5b9a007
1,227
py
Python
ppci/cli/yacc.py
jsdelivrbot/ppci-mirror
67195d628275e2332ceaf44c9e13fc58d0877157
[ "BSD-2-Clause" ]
null
null
null
ppci/cli/yacc.py
jsdelivrbot/ppci-mirror
67195d628275e2332ceaf44c9e13fc58d0877157
[ "BSD-2-Clause" ]
null
null
null
ppci/cli/yacc.py
jsdelivrbot/ppci-mirror
67195d628275e2332ceaf44c9e13fc58d0877157
[ "BSD-2-Clause" ]
null
null
null
""" Parser generator utility. This script can generate a python script from a grammar description. Invoke the script on a grammar specification file: .. code:: $ ppci-yacc test.x -o test_parser.py And use the generated parser by deriving a user class: .. code:: import test_parser class MyParser(test...
20.45
75
0.691932
46fba1205b8f8301a0c377be60303c38d5a02559
3,434
py
Python
imdb/imdb.py
santhoshse7en/IMDb
c76cfa3fc9a1326587707dbab3800d0e9a32d045
[ "MIT" ]
1
2019-09-09T08:46:11.000Z
2019-09-09T08:46:11.000Z
imdb/imdb.py
santhoshse7en/imdby
c76cfa3fc9a1326587707dbab3800d0e9a32d045
[ "MIT" ]
13
2019-05-24T05:17:03.000Z
2019-05-29T12:19:18.000Z
imdb/imdb.py
santhoshse7en/imdby
c76cfa3fc9a1326587707dbab3800d0e9a32d045
[ "MIT" ]
null
null
null
# Movie Related Information from imdb.parser.character.search_character_id import search_character_id from imdb.parser.company.search_company_id import search_company_id from imdb.parser.event.search_event_id import search_event_id from imdb.parser.movie.company import company from imdb.parser.movie.critic_reviews impo...
31.796296
82
0.761503