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
47398e6b8466cbdbb207c2820f76f1b99f1321a9
21,273
py
Python
circus/watcher.py
j4mie/circus
d026b692cc7c4ec57bed7aaa671fce561adc0f3d
[ "Apache-2.0" ]
1
2015-11-05T11:44:54.000Z
2015-11-05T11:44:54.000Z
circus/watcher.py
j4mie/circus
d026b692cc7c4ec57bed7aaa671fce561adc0f3d
[ "Apache-2.0" ]
null
null
null
circus/watcher.py
j4mie/circus
d026b692cc7c4ec57bed7aaa671fce561adc0f3d
[ "Apache-2.0" ]
null
null
null
import copy import errno import os import signal import time from psutil import STATUS_ZOMBIE, STATUS_DEAD, NoSuchProcess from zmq.utils.jsonapi import jsonmod as json from circus.process import Process, DEAD_OR_ZOMBIE, UNEXISTING from circus import logger from circus import util from circus.stream import get_pipe_re...
33.29108
79
0.56889
4739f9dd85a98ca4914a3d95480d40fee9c3fdfc
192
py
Python
ex021.py
Jordemar-D-Bousquet/Exercicios_Python
705d4c83720db033841f01aa843e4dbab08f1423
[ "MIT" ]
null
null
null
ex021.py
Jordemar-D-Bousquet/Exercicios_Python
705d4c83720db033841f01aa843e4dbab08f1423
[ "MIT" ]
null
null
null
ex021.py
Jordemar-D-Bousquet/Exercicios_Python
705d4c83720db033841f01aa843e4dbab08f1423
[ "MIT" ]
null
null
null
# Faa um programa em Python que abra e reproduza o udio de um arquivo MP3. from pygame import mixer mixer.init() mixer.music.load('ex021.mp3') mixer.music.play() input('Agora vc escuta?')
21.333333
76
0.744792
473a4e921e84f823480cb7ff0d481a46699ba915
15,171
py
Python
admin_views.py
JackCurragh/DARNED
13963d129bd8f69fb1106ad1f47394b3211a939c
[ "MIT" ]
null
null
null
admin_views.py
JackCurragh/DARNED
13963d129bd8f69fb1106ad1f47394b3211a939c
[ "MIT" ]
null
null
null
admin_views.py
JackCurragh/DARNED
13963d129bd8f69fb1106ad1f47394b3211a939c
[ "MIT" ]
null
null
null
from django.http import HttpResponseRedirect, HttpResponse from django.shortcuts import render_to_response from django.core.context_processors import csrf from admin_forms import * from django.template import loader,RequestContext from django.contrib.admin.views.decorators import staff_member_required from Human.mode...
40.564171
187
0.497265
473a6e55a1141afc8bdd4f4dc054a62915b0f948
320
py
Python
Module 2/Chapter 7/ch7_yahooweatherapi.py
saicharanabhishek/machinelearning_examples
f89857ae7e1a2baa76951fe1d55541832d0f0d20
[ "MIT" ]
101
2016-11-08T11:17:55.000Z
2021-12-24T10:43:32.000Z
Module 2/Chapter 7/ch7_yahooweatherapi.py
saicharanabhishek/machinelearning_examples
f89857ae7e1a2baa76951fe1d55541832d0f0d20
[ "MIT" ]
2
2017-11-28T11:22:25.000Z
2019-02-12T17:09:18.000Z
Module 2/Chapter 7/ch7_yahooweatherapi.py
saicharanabhishek/machinelearning_examples
f89857ae7e1a2baa76951fe1d55541832d0f0d20
[ "MIT" ]
102
2016-10-22T12:14:23.000Z
2022-03-26T19:59:09.000Z
import urllib, json baseurl = 'https://query.yahooapis.com/v1/public/yql?' yql_query = "select item.condition from weather.forecast where woeid=9807" yql_url = baseurl + urllib.urlencode({'q':yql_query}) + "&format=json" result = urllib.urlopen(yql_url).read() data = json.loads(result) print data['query']['results']
32
74
0.7375
473a74f5da28e0b4ce33777ece6a2e2116a72644
1,697
py
Python
lib/assets/Lib/signal.py
s6007589/cafe-grader-web
18a993801c698fb7b7ec6ae5f4b67920503cb242
[ "MIT" ]
25
2016-09-04T07:34:13.000Z
2022-02-14T07:39:02.000Z
lib/assets/Lib/signal.py
it56660024/cafe-grader-web
e9a1305fd62e79e54f6961f97ddc5cd57bafd73c
[ "MIT" ]
25
2015-02-05T03:59:27.000Z
2022-02-11T16:54:04.000Z
lib/assets/Lib/signal.py
it56660024/cafe-grader-web
e9a1305fd62e79e54f6961f97ddc5cd57bafd73c
[ "MIT" ]
16
2016-09-05T00:30:27.000Z
2021-12-05T11:07:02.000Z
"""This module provides mechanisms to use signal handlers in Python. Functions: alarm() -- cause SIGALRM after a specified time [Unix only] setitimer() -- cause a signal (described below) after a specified float time and the timer may restart then [Unix only] getitimer() -- get current value of ...
32.634615
78
0.700059
473ed6ec1fc8acc6f0c2b764921eaea82a6ea886
400
py
Python
npc_engine/service_clients/__init__.py
npc-engine/npc-engine
0047794e96369c23515f794a1e77009c516a382c
[ "MIT" ]
12
2021-11-10T21:03:19.000Z
2022-03-21T21:55:34.000Z
npc_engine/service_clients/__init__.py
npc-engine/npc-engine
0047794e96369c23515f794a1e77009c516a382c
[ "MIT" ]
1
2021-12-05T14:51:44.000Z
2021-12-05T14:51:44.000Z
npc_engine/service_clients/__init__.py
npc-engine/npc-engine
0047794e96369c23515f794a1e77009c516a382c
[ "MIT" ]
null
null
null
# flake8: noqa """Module implementing the clients for services.""" from npc_engine.service_clients.text_generation_client import TextGenerationClient from npc_engine.service_clients.control_client import ControlClient from npc_engine.service_clients.sequence_classifier_client import ( SequenceClassifierClient,...
44.444444
83
0.8525
473f1e1eeb6b340b2ca16fc3da17da150f626195
661
py
Python
setup.py
libre-man/DJFeet
7517e7930bdc23d22765c64d7351d4011515dcaa
[ "MIT" ]
2
2018-09-29T22:41:28.000Z
2018-10-02T16:07:11.000Z
setup.py
libre-man/DJFeet
7517e7930bdc23d22765c64d7351d4011515dcaa
[ "MIT" ]
null
null
null
setup.py
libre-man/DJFeet
7517e7930bdc23d22765c64d7351d4011515dcaa
[ "MIT" ]
null
null
null
try: from setuptools import setup except ImportError: from distutils.core import setup config = { 'description': 'A program does that is a DJ by using feedback provided by the dancers.', 'author': 'Thomas Schaper', 'url': 'https://gitlab.com/SilentDiscoAsAService/DJFeet', 'download_url': 'https...
26.44
92
0.621785
473f4dc9a600b8c43aff418b905edef20e705990
266
py
Python
Ex031 - Custo de viagem.py
MarcusMendes81/Python
4af6653da324604930d24542a84a530348029d39
[ "Apache-2.0" ]
null
null
null
Ex031 - Custo de viagem.py
MarcusMendes81/Python
4af6653da324604930d24542a84a530348029d39
[ "Apache-2.0" ]
null
null
null
Ex031 - Custo de viagem.py
MarcusMendes81/Python
4af6653da324604930d24542a84a530348029d39
[ "Apache-2.0" ]
null
null
null
km = float(input('Digite qual a distncia da sua viagem em km: ')) if km <= 200: preo = km * 0.50 print('O valor da sua viagem de {:.2f}R$'.format(preo)) else: preo = km * 0.45 print('O valor da sua viagem de {:.2f}R$'.format(preo))
29.555556
67
0.586466
473fc3dd716cb4c46c867f24ed27e15522aed178
1,802
py
Python
tests/post/test_metrics_server.py
ssalaues/metalk8s
cca4a4c64fe9cd4d7b87717aa3fda1642144da4b
[ "Apache-2.0" ]
null
null
null
tests/post/test_metrics_server.py
ssalaues/metalk8s
cca4a4c64fe9cd4d7b87717aa3fda1642144da4b
[ "Apache-2.0" ]
null
null
null
tests/post/test_metrics_server.py
ssalaues/metalk8s
cca4a4c64fe9cd4d7b87717aa3fda1642144da4b
[ "Apache-2.0" ]
null
null
null
import json import kubernetes.config import pytest_bdd import pytest_bdd.parsers import utils.helper pytest_bdd.scenarios('features/metrics_server.feature')
34
78
0.712542
47405d3453babd25d32b1eab577b6c049070e9a0
52
py
Python
src/config.py
kimminwyk/apache-log-parsing
1fcf06dc349c37ab02b91c2c48e3dc8f6f5d4b4e
[ "MIT" ]
1
2021-03-31T00:14:38.000Z
2021-03-31T00:14:38.000Z
src/config.py
kimminwyk/apache-log-parsing
1fcf06dc349c37ab02b91c2c48e3dc8f6f5d4b4e
[ "MIT" ]
null
null
null
src/config.py
kimminwyk/apache-log-parsing
1fcf06dc349c37ab02b91c2c48e3dc8f6f5d4b4e
[ "MIT" ]
null
null
null
default = False actions = 'store_true' ENC = 'utf-8'
17.333333
22
0.692308
4740a5904496fd65f865863d0eb457e3b97598a9
10,751
py
Python
UniGrammar/tools/regExps/python/prelifter.py
UniGrammar/UniGrammar.py
560152ff5ff3f0651171044f6b5046fd8d895960
[ "Unlicense" ]
2
2020-06-17T16:57:23.000Z
2022-02-24T13:29:01.000Z
UniGrammar/tools/regExps/python/prelifter.py
KOLANICH/UniGrammar.py
d83f2f605073898b454868b98e2ecdefc4d9f7ca
[ "Unlicense" ]
null
null
null
UniGrammar/tools/regExps/python/prelifter.py
KOLANICH/UniGrammar.py
d83f2f605073898b454868b98e2ecdefc4d9f7ca
[ "Unlicense" ]
null
null
null
import sre_constants as sc import sre_parse as sp import typing import unicodedata from pprint import pprint from RichConsole import groups, rsjoin from .knowledge import CAPTURE_GROUP, LITERAL_STR singleElPreLifter = SingleElPreLifter(REFirstPassVisitor) re_IN_FlatPreLifter = SingleElPreLifter(RE_IN_FirstPa...
27.217722
287
0.728583
474625e55d420bbe1645d7c53baf9bb6b0997f55
2,615
py
Python
works/test/dssm/model.py
didazxc/autoflow
6682102efae90b0af00ba920cd4fa2020694d5f2
[ "MIT" ]
null
null
null
works/test/dssm/model.py
didazxc/autoflow
6682102efae90b0af00ba920cd4fa2020694d5f2
[ "MIT" ]
null
null
null
works/test/dssm/model.py
didazxc/autoflow
6682102efae90b0af00ba920cd4fa2020694d5f2
[ "MIT" ]
null
null
null
import torch from torch import nn
38.455882
104
0.636711
474730af1ea1af916a12ede7e8f6ca83e5e468a8
952
py
Python
pastila/schema.py
harlov/pastila
27ebe862bc25d5cc1a14766e5eec8f48853098c3
[ "MIT" ]
null
null
null
pastila/schema.py
harlov/pastila
27ebe862bc25d5cc1a14766e5eec8f48853098c3
[ "MIT" ]
null
null
null
pastila/schema.py
harlov/pastila
27ebe862bc25d5cc1a14766e5eec8f48853098c3
[ "MIT" ]
null
null
null
from pastila.fields import Field
22.666667
86
0.570378
4747b2ce44f8edfeed9025dd5538e36cd606b1dc
436
py
Python
labs/lab10/demo/src/cpu_multiprocessing.py
Alvant/AdvancedPython2020
c5a6439f100ff6a32168366f6a74e5ca0e79d0bc
[ "MIT" ]
null
null
null
labs/lab10/demo/src/cpu_multiprocessing.py
Alvant/AdvancedPython2020
c5a6439f100ff6a32168366f6a74e5ca0e79d0bc
[ "MIT" ]
7
2021-09-12T17:15:27.000Z
2022-03-01T17:50:18.000Z
labs/lab10/demo/src/cpu_multiprocessing.py
Alvant/AdvancedPython
b036d124d0ccaa325b356db1a189e6ef10e1f21f
[ "MIT" ]
2
2021-09-26T10:00:25.000Z
2021-11-07T19:01:33.000Z
import multiprocessing import time from typing import List from constants import CPU_BIG_NUMBERS from utils import show_execution_time if __name__ == "__main__": show_execution_time(func=lambda: find_sums(CPU_BIG_NUMBERS))
20.761905
64
0.743119
4747e422b3230b40d458ca7afafc2b2ff6c690f8
304
py
Python
whatsapp_tracker/bases/selenium_bases/base_selenium_keyboard.py
itay-bardugo/whatsapp_tracker
c53a309b08bf47597c8191ec0a155a1fe1536842
[ "MIT" ]
1
2021-09-25T12:22:35.000Z
2021-09-25T12:22:35.000Z
whatsapp_tracker/bases/selenium_bases/base_selenium_keyboard.py
itay-bardugo/whatsapp_tracker
c53a309b08bf47597c8191ec0a155a1fe1536842
[ "MIT" ]
null
null
null
whatsapp_tracker/bases/selenium_bases/base_selenium_keyboard.py
itay-bardugo/whatsapp_tracker
c53a309b08bf47597c8191ec0a155a1fe1536842
[ "MIT" ]
null
null
null
from abc import ABCMeta from whatsapp_tracker.bases.selenium_bases.base_selenium_kit import BaseSeleniumKit from whatsapp_tracker.mixins.seleniun_keyboard_press_mixin import SeleniumKeyBoardPressMixin
33.777778
92
0.875
4749535b6dc42716b629b0a869d4e93214bb93a8
3,056
py
Python
assignments/assignment2/model.py
RuslanOm/dlcourse_ai
f4c85497dc4affb942cacb363f17ce63b39c1bd7
[ "MIT" ]
null
null
null
assignments/assignment2/model.py
RuslanOm/dlcourse_ai
f4c85497dc4affb942cacb363f17ce63b39c1bd7
[ "MIT" ]
null
null
null
assignments/assignment2/model.py
RuslanOm/dlcourse_ai
f4c85497dc4affb942cacb363f17ce63b39c1bd7
[ "MIT" ]
null
null
null
import numpy as np from layers import FullyConnectedLayer, ReLULayer, softmax_with_cross_entropy, l2_regularization
32.510638
96
0.612238
474a6941a53b9666a0f1df165d06680657ea0def
3,066
py
Python
ukol.py
tenhobi/NI-MPI
5c6c4f5fd28487e807315ce6da33b81f0db4908d
[ "MIT" ]
null
null
null
ukol.py
tenhobi/NI-MPI
5c6c4f5fd28487e807315ce6da33b81f0db4908d
[ "MIT" ]
null
null
null
ukol.py
tenhobi/NI-MPI
5c6c4f5fd28487e807315ce6da33b81f0db4908d
[ "MIT" ]
null
null
null
import numpy as np ### ----- config # parameters gamma = 3 omega = 1 precision = 10**-6 # matrix matrix = np.zeros((20, 20), dtype = np.float64) np.fill_diagonal(matrix, gamma) np.fill_diagonal(matrix[:, 1:], -1) # upper part np.fill_diagonal(matrix[1:, :], -1) # lower part # vector b bVector = np.full((20, 1), g...
31.285714
119
0.628506
474bb5e6e62ca2caee71dee1fac0a250c57c5dda
12,491
py
Python
src/python/dxpy/utils/__init__.py
psung/dx-toolkit
f3a430c5e24184215eb4a9883a179edf07bfa08b
[ "Apache-2.0" ]
null
null
null
src/python/dxpy/utils/__init__.py
psung/dx-toolkit
f3a430c5e24184215eb4a9883a179edf07bfa08b
[ "Apache-2.0" ]
null
null
null
src/python/dxpy/utils/__init__.py
psung/dx-toolkit
f3a430c5e24184215eb4a9883a179edf07bfa08b
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2013-2014 DNAnexus, Inc. # # This file is part of dx-toolkit (DNAnexus platform client libraries). # # 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.a...
39.15674
241
0.660716
474cbd8308c2b1410045a858c934a70c927f171d
2,946
py
Python
mkserialisable.py
cedadev/ipython_project
fd9c85c20d3689435684cf4b681dfaab1c0a825b
[ "BSD-3-Clause-Clear" ]
null
null
null
mkserialisable.py
cedadev/ipython_project
fd9c85c20d3689435684cf4b681dfaab1c0a825b
[ "BSD-3-Clause-Clear" ]
null
null
null
mkserialisable.py
cedadev/ipython_project
fd9c85c20d3689435684cf4b681dfaab1c0a825b
[ "BSD-3-Clause-Clear" ]
null
null
null
"""Routines to make objects serialisable. Each of the functions in this module makes a specific type of object serialisable. In most cases, this module needs to be imported and the function run in both the serialising and the unserialising environments. Here's a summary (see function documentation for details): mk_...
23.95122
79
0.67685
474d460f8c93e195c3909578035ee5726563b9b7
773
py
Python
flox_aws/configure.py
getflox/flox-aws
9642e291afa3ddedd9eed566b43a640e9bb0c537
[ "MIT" ]
null
null
null
flox_aws/configure.py
getflox/flox-aws
9642e291afa3ddedd9eed566b43a640e9bb0c537
[ "MIT" ]
null
null
null
flox_aws/configure.py
getflox/flox-aws
9642e291afa3ddedd9eed566b43a640e9bb0c537
[ "MIT" ]
null
null
null
from floxcore.config import Configuration, ParamDefinition
36.809524
113
0.630013
474d5c6d6e9e1b1ea76c41c137dcb55b272f1e24
1,769
py
Python
api_teacher.py
sabertooth9/KUET-Teachers-Web-Scrapper-
0b1cea4f3e60f440b882bef971a942e42d0ab048
[ "Apache-2.0" ]
1
2019-12-21T13:35:46.000Z
2019-12-21T13:35:46.000Z
api_teacher.py
sabertooth9/KUET-Teachers-Web-Scrapper-
0b1cea4f3e60f440b882bef971a942e42d0ab048
[ "Apache-2.0" ]
null
null
null
api_teacher.py
sabertooth9/KUET-Teachers-Web-Scrapper-
0b1cea4f3e60f440b882bef971a942e42d0ab048
[ "Apache-2.0" ]
null
null
null
from flask import Flask from flask_restful import Api, Resource, reqparse from kuet_teacher_data import get_data app = Flask(__name__) api = Api(app) data = get_data() api.add_resource(Teacher_data,"/data","/data/","/data/<string:id>") api.add_resource(search_dept_teacher,"/find/<string:dept>/<string:id>") api.add_...
26.402985
71
0.544375
474e6ccd3a09db8bd61fb6310dfa022bed136ad4
892
py
Python
demo/singleperson.py
Neerajj9/Computer-Vision-based-Offside-Detection-in-soccer
744bfc636463f24c4f78f25684864c2ce4abb43f
[ "MIT" ]
8
2020-10-17T14:54:53.000Z
2022-02-09T11:03:01.000Z
demo/singleperson.py
Neerajj9/Computer-Vision-based-Offside-Detection-in-soccer
744bfc636463f24c4f78f25684864c2ce4abb43f
[ "MIT" ]
4
2021-01-03T16:02:29.000Z
2021-11-23T03:26:01.000Z
demo/singleperson.py
Neerajj9/Computer-Vision-based-Offside-Detection-in-soccer
744bfc636463f24c4f78f25684864c2ce4abb43f
[ "MIT" ]
2
2021-04-10T07:05:55.000Z
2021-09-19T23:22:18.000Z
import os import sys sys.path.append(os.path.dirname(__file__) + "/../") from scipy.misc import imread from util.config import load_config from nnet import predict from util import visualize from dataset.pose_dataset import data_to_input cfg = load_config("demo/pose_cfg.yaml") # Load and setup CNN part detector s...
25.485714
68
0.784753
474f1702de3c8a82c6ec6ce0f179522a071b3434
19,771
py
Python
simulators/iam_module.py
jason-neal/companion_simulations
b5773e5539011d492b7128d0dd2778041ce50d52
[ "MIT" ]
1
2018-09-04T19:06:44.000Z
2018-09-04T19:06:44.000Z
simulators/iam_module.py
jason-neal/companion_simulations
b5773e5539011d492b7128d0dd2778041ce50d52
[ "MIT" ]
85
2017-03-25T22:37:02.000Z
2022-03-01T16:49:14.000Z
simulators/iam_module.py
jason-neal/companion_simulations
b5773e5539011d492b7128d0dd2778041ce50d52
[ "MIT" ]
1
2017-08-18T10:56:39.000Z
2017-08-18T10:56:39.000Z
import datetime import logging import os import warnings import matplotlib.pyplot as plt import numpy as np import pandas as pd from logutils import BraceMessage as __ from tqdm import tqdm import simulators from mingle.models.broadcasted_models import inherent_alpha_model from mingle.utilities.chisqr import chi_squa...
45.450575
125
0.589247
4752834006b4c7e38581b00b04934cecb3b712df
4,910
py
Python
src/etl/transform.py
fmirani/etl_project
969990143c3075f193565cec309a2f0333038a8b
[ "MIT" ]
null
null
null
src/etl/transform.py
fmirani/etl_project
969990143c3075f193565cec309a2f0333038a8b
[ "MIT" ]
null
null
null
src/etl/transform.py
fmirani/etl_project
969990143c3075f193565cec309a2f0333038a8b
[ "MIT" ]
null
null
null
import pandas as pd from datetime import datetime, timedelta from bs4 import BeautifulSoup as bs from etl.logger import get_logger from etl.main import ETL logger = get_logger("transform") def transform_data(service: str, data_file: str) -> pd.DataFrame: """ Simple function to guide the request ...
31.075949
87
0.57169
47529769d5bba7253b76bc8e8bf54fbb83c5bfd5
646
py
Python
projects/migrations/0003_auto_20210719_1152.py
Tajeu2001/awwards
3a7b068f5d66336d4881a91b6a49338dc6f900d6
[ "MIT" ]
null
null
null
projects/migrations/0003_auto_20210719_1152.py
Tajeu2001/awwards
3a7b068f5d66336d4881a91b6a49338dc6f900d6
[ "MIT" ]
null
null
null
projects/migrations/0003_auto_20210719_1152.py
Tajeu2001/awwards
3a7b068f5d66336d4881a91b6a49338dc6f900d6
[ "MIT" ]
null
null
null
# Generated by Django 2.2.24 on 2021-07-19 11:52 import cloudinary.models from django.db import migrations
25.84
90
0.623839
4752de7c01e8d42225f7e14fb6052b77754c4e72
3,567
py
Python
student/urls.py
masoodazhar/-school-management-system
6525b3d29d12f03e05d362d81b7c5855806f57d9
[ "Apache-2.0" ]
1
2022-01-20T10:20:05.000Z
2022-01-20T10:20:05.000Z
student/urls.py
masoodazhar/-school-management-system
6525b3d29d12f03e05d362d81b7c5855806f57d9
[ "Apache-2.0" ]
null
null
null
student/urls.py
masoodazhar/-school-management-system
6525b3d29d12f03e05d362d81b7c5855806f57d9
[ "Apache-2.0" ]
1
2022-01-20T10:20:31.000Z
2022-01-20T10:20:31.000Z
from django.urls import path from academic.views import SectionCreate, SectionUpdate, SectionDelete from .views import ( StudentView, AttendanceMark, AttendanceSearch, AttendanceView, IndividualMarksView, AdmissionCreate, AdmissionView, AdmissionDelete, AdmissionUpda...
51.695652
140
0.724699
475312b91a3851e28b34370218eea8c022b8aff7
5,598
py
Python
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/settings/base.py
mistalaba/cookiecutter-simple-django
979780b3dea3b0ab51e780cc7d98e9ba66004b09
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/settings/base.py
mistalaba/cookiecutter-simple-django
979780b3dea3b0ab51e780cc7d98e9ba66004b09
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/settings/base.py
mistalaba/cookiecutter-simple-django
979780b3dea3b0ab51e780cc7d98e9ba66004b09
[ "BSD-3-Clause" ]
1
2021-10-21T01:45:32.000Z
2021-10-21T01:45:32.000Z
import os import sys # PATH vars BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) ROOT_DIR = lambda *x: os.path.join(BASE_DIR, *x) APPS_DIR = os.path.join(ROOT_DIR(), "apps") sys.path.insert(0, APPS_DIR) # SECURITY WARNING: keep the secret key used in production secret! SECRET...
29.463158
89
0.642551
47534f46ad8c13b23baa8376ad80237dfc62bd3c
827
py
Python
wenben_project/reco_sys/server/__init__.py
nameli0722/git-
29343ef0eec598aa262c59825d567044ef393f44
[ "MIT" ]
null
null
null
wenben_project/reco_sys/server/__init__.py
nameli0722/git-
29343ef0eec598aa262c59825d567044ef393f44
[ "MIT" ]
null
null
null
wenben_project/reco_sys/server/__init__.py
nameli0722/git-
29343ef0eec598aa262c59825d567044ef393f44
[ "MIT" ]
null
null
null
import happybase from settings.default import DefaultConfig import redis pool = happybase.ConnectionPool(size=10, host='hadoop-master', port=9090) # redis_client = redis.StrictRedis(host=DefaultConfig.REDIS_HOST, port=DefaultConfig.REDIS_PORT, db=10, ...
34.458333
73
0.629988
475531486c43c1c7dffcddd44fa86cc2df76cfd3
783
py
Python
alimama/alimama/items.py
Yoochao/tbk
b3a6aff905cf9d7dbe161813e1bbe968d86b5320
[ "Apache-2.0" ]
null
null
null
alimama/alimama/items.py
Yoochao/tbk
b3a6aff905cf9d7dbe161813e1bbe968d86b5320
[ "Apache-2.0" ]
null
null
null
alimama/alimama/items.py
Yoochao/tbk
b3a6aff905cf9d7dbe161813e1bbe968d86b5320
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # http://doc.scrapy.org/en/latest/topics/items.html import scrapy
26.1
51
0.67433
47567885350f4cfe55660b2d4ce384bb43abd614
2,516
py
Python
Programming_Assignment_5/proj5/oracle.py
csMOOC/Maryland.Cryptography
58b6111a918599772e5a476764bb3b9897b61283
[ "MIT" ]
1
2017-11-18T15:34:59.000Z
2017-11-18T15:34:59.000Z
Programming_Assignment_5/proj5/oracle.py
csMOOC/Maryland.Cryptography
58b6111a918599772e5a476764bb3b9897b61283
[ "MIT" ]
null
null
null
Programming_Assignment_5/proj5/oracle.py
csMOOC/Maryland.Cryptography
58b6111a918599772e5a476764bb3b9897b61283
[ "MIT" ]
null
null
null
sign_sock = None vrfy_sock = None MAX_PACKET_LEN = 8192 NOT_BINARY_STR_ERR = -1 MISSING_DELIMITER_ERR = -2 ORIGINAL_MSG_ERR = -3 # Packet Structure: < message > # Message may be either a long integer, or a binary string # Packet Structure: < message | ":" | signature > # Message and signature may be either long inte...
27.955556
127
0.647059
47595ec1c220dcb1c916744d399484c33fcb99c6
5,932
py
Python
medical_test/models.py
AlexanderUstinovv/medical_test
b740fb599aa4097eb44d35a844fef838c4ccf6ad
[ "BSD-3-Clause" ]
null
null
null
medical_test/models.py
AlexanderUstinovv/medical_test
b740fb599aa4097eb44d35a844fef838c4ccf6ad
[ "BSD-3-Clause" ]
null
null
null
medical_test/models.py
AlexanderUstinovv/medical_test
b740fb599aa4097eb44d35a844fef838c4ccf6ad
[ "BSD-3-Clause" ]
null
null
null
from django.contrib.auth.models import User from django.db import models
41.774648
102
0.607552
475a825b4f6b8ec63bbe41abb911aed22f74dd8a
11,153
py
Python
idarest/idarest_master.py
sfinktah/idarest75
ab2549b12e174aaef32ab6c933fe09b1232a8cce
[ "MIT" ]
null
null
null
idarest/idarest_master.py
sfinktah/idarest75
ab2549b12e174aaef32ab6c933fe09b1232a8cce
[ "MIT" ]
null
null
null
idarest/idarest_master.py
sfinktah/idarest75
ab2549b12e174aaef32ab6c933fe09b1232a8cce
[ "MIT" ]
null
null
null
import socket try: from .idarest_mixins import IdaRestConfiguration except: from idarest_mixins import IdaRestConfiguration # idarest_master_plugin_t.config['master_debug'] = False # idarest_master_plugin_t.config['master_info'] = False # idarest_master_plugin_t.config['api_prefix'] = '/ida/api/v1.0' # ida...
38.725694
151
0.56505
475b01893fd7ae3f1c364df0596288e775da3bcd
11,750
py
Python
wordbot.py
spyth/wordbot
8213d18fcd7602a5b2bab9c83898b9f29a1cf3d4
[ "MIT" ]
null
null
null
wordbot.py
spyth/wordbot
8213d18fcd7602a5b2bab9c83898b9f29a1cf3d4
[ "MIT" ]
null
null
null
wordbot.py
spyth/wordbot
8213d18fcd7602a5b2bab9c83898b9f29a1cf3d4
[ "MIT" ]
null
null
null
import logging import json from datetime import datetime from telegram.ext import (Updater, CommandHandler, MessageHandler, Filters, Job, CallbackQueryHandler) from telegram import (ChatAction, ParseMode, InlineKeyboardButton, InlineKeyboardMarkup) from peewee import fn import pytz from word...
50.213675
151
0.575149
475e2827e051fef8ddf4351c0f8e2268a7395759
599
py
Python
setup.py
jcanode/small_nn
0e7fa58a52b45b2221b66bd0a67bd7395934133c
[ "MIT" ]
1
2020-07-06T20:43:23.000Z
2020-07-06T20:43:23.000Z
setup.py
jcanode/small_nn
0e7fa58a52b45b2221b66bd0a67bd7395934133c
[ "MIT" ]
null
null
null
setup.py
jcanode/small_nn
0e7fa58a52b45b2221b66bd0a67bd7395934133c
[ "MIT" ]
1
2020-07-04T18:11:43.000Z
2020-07-04T18:11:43.000Z
import setuptools from setuptools import setup, find_namespace_packages setuptools.setup( name="small_nn-jcanode", version="0.0.1", author="Justin Canode", author_email="jcanode@my.gcu.edu", description="A small Neural Network Framework", long_description_content_type="text/markdown", url=...
28.52381
53
0.677796
475f6eec7136ec2401074e0d2a574922b79ef08a
1,829
py
Python
cosPreprints.py
leouieda/cospy
fa0994e5a41896cd17f76fdad08b20bdb4dd112a
[ "MIT" ]
null
null
null
cosPreprints.py
leouieda/cospy
fa0994e5a41896cd17f76fdad08b20bdb4dd112a
[ "MIT" ]
8
2019-06-10T12:56:56.000Z
2019-07-02T16:49:40.000Z
cosPreprints.py
leouieda/cospy
fa0994e5a41896cd17f76fdad08b20bdb4dd112a
[ "MIT" ]
null
null
null
import os import sys import utils import extras.downloadStats as stats import extras.downloadManuscript as dm import extras.unpaywall as up main()
29.983607
89
0.708037
47604d58582e9e00c559605b1ca161c8c2ddf27a
1,212
py
Python
RVFS/account/urls.py
cahudson94/Raven-Valley-Forge-Shop
52f46381eafa9410d8e9c759366ef7490dcb1de9
[ "MIT" ]
2
2018-02-12T01:32:16.000Z
2021-08-23T19:29:08.000Z
RVFS/account/urls.py
cahudson94/Raven-Valley-Forge-Shop
52f46381eafa9410d8e9c759366ef7490dcb1de9
[ "MIT" ]
1
2018-05-23T03:42:20.000Z
2018-05-23T03:42:20.000Z
RVFS/account/urls.py
cahudson94/Raven-Valley-Forge-Shop
52f46381eafa9410d8e9c759366ef7490dcb1de9
[ "MIT" ]
null
null
null
""".""" from django.urls import path, reverse_lazy from account.views import (AccountView, InfoFormView, EditAccountView, AddAddressView, AddressListView, DeleteAddress) from django.con...
43.285714
78
0.634488
47615b2e9cbae2e821ca67ff9a73e485fdec4592
209
wsgi
Python
index.wsgi
webgovernor/dungeonsheet
59800249f0394af0fc08d7ca23e68faf9d0d2920
[ "MIT" ]
null
null
null
index.wsgi
webgovernor/dungeonsheet
59800249f0394af0fc08d7ca23e68faf9d0d2920
[ "MIT" ]
null
null
null
index.wsgi
webgovernor/dungeonsheet
59800249f0394af0fc08d7ca23e68faf9d0d2920
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys sys.path.insert(0, '/home/nullism/web/dnd.nullism.com/') from main import app conf = {} conf['SECRET_KEY'] = 'CHANGEME' app.config.update(conf) application = app
14.928571
56
0.712919
4763416997df781bd573e3c234672ddfd3a200da
394
py
Python
examples/spot/sub_account/sub_account_futures_asset_transfer_history.py
Banging12/binance-connector-python
dc6fbbd0bb64fb08d73ad8b31e0b81d776efa30b
[ "MIT" ]
512
2021-06-15T08:52:44.000Z
2022-03-31T09:49:53.000Z
examples/spot/sub_account/sub_account_futures_asset_transfer_history.py
Banging12/binance-connector-python
dc6fbbd0bb64fb08d73ad8b31e0b81d776efa30b
[ "MIT" ]
75
2021-06-20T13:49:50.000Z
2022-03-30T02:45:31.000Z
examples/spot/sub_account/sub_account_futures_asset_transfer_history.py
Banging12/binance-connector-python
dc6fbbd0bb64fb08d73ad8b31e0b81d776efa30b
[ "MIT" ]
156
2021-06-18T11:56:36.000Z
2022-03-29T16:34:22.000Z
#!/usr/bin/env python import logging from binance.spot import Spot as Client from binance.lib.utils import config_logging config_logging(logging, logging.DEBUG) key = "" secret = "" spot_client = Client(key, secret) logging.info( spot_client.sub_account_futures_asset_transfer_history( email="", ...
20.736842
73
0.730964
476347b456fac42ec555a12cc44e71eae3a0e9fc
236
py
Python
src/file_format/utils/json_util.py
tys-hiroshi/test-github-actions-python
c47172949fbdd6ddffe889ca0f91eb11a741021d
[ "MIT" ]
null
null
null
src/file_format/utils/json_util.py
tys-hiroshi/test-github-actions-python
c47172949fbdd6ddffe889ca0f91eb11a741021d
[ "MIT" ]
2
2021-05-21T09:36:42.000Z
2021-05-28T03:55:44.000Z
src/file_format/utils/json_util.py
tys-hiroshi/test-github-actions-python
c47172949fbdd6ddffe889ca0f91eb11a741021d
[ "MIT" ]
1
2020-08-06T06:21:34.000Z
2020-08-06T06:21:34.000Z
# -*- coding:utf-8 -*- import json if __name__ == '__main__': pass
21.454545
60
0.610169
4765153b7928cbef30b909b4bfadf17b59957999
864
py
Python
jubox/test/notebook/test_get.py
Miksus/jubox
daaf1e223e0a7c0a3bf9ae03b88d629c0f99d4d5
[ "MIT" ]
1
2020-04-26T05:18:45.000Z
2020-04-26T05:18:45.000Z
jubox/test/notebook/test_get.py
Miksus/jubox
daaf1e223e0a7c0a3bf9ae03b88d629c0f99d4d5
[ "MIT" ]
null
null
null
jubox/test/notebook/test_get.py
Miksus/jubox
daaf1e223e0a7c0a3bf9ae03b88d629c0f99d4d5
[ "MIT" ]
null
null
null
import pytest from jubox import JupyterNotebook, RawCell, CodeCell, MarkdownCell
32
66
0.653935
476520ec9bb115901083a55e2fef94cc44775b6c
2,453
py
Python
azure-mgmt/tests/test_graphrbac.py
HydAu/AzureSDKForPython
5cbe34e9e0b8ea1faacc9f205633ccc0b885c0f3
[ "Apache-2.0" ]
null
null
null
azure-mgmt/tests/test_graphrbac.py
HydAu/AzureSDKForPython
5cbe34e9e0b8ea1faacc9f205633ccc0b885c0f3
[ "Apache-2.0" ]
null
null
null
azure-mgmt/tests/test_graphrbac.py
HydAu/AzureSDKForPython
5cbe34e9e0b8ea1faacc9f205633ccc0b885c0f3
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 #------------------------------------------------------------------------- # Copyright (c) Microsoft. 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 # ...
37.738462
92
0.622911
47679dc98d3116e71ccabc039214caa5e8184ec0
5,556
py
Python
HudlProject/HudlProject.py
zifanyang/Hudl-Python-Selenium-Project
9f4427e2c4da39e3432e4432da2d40464cdbb60b
[ "MIT" ]
null
null
null
HudlProject/HudlProject.py
zifanyang/Hudl-Python-Selenium-Project
9f4427e2c4da39e3432e4432da2d40464cdbb60b
[ "MIT" ]
null
null
null
HudlProject/HudlProject.py
zifanyang/Hudl-Python-Selenium-Project
9f4427e2c4da39e3432e4432da2d40464cdbb60b
[ "MIT" ]
null
null
null
from selenium import webdriver from selenium.webdriver.common.keys import Keys import unittest from time import sleep path="C:\chromedriver.exe" url="http://www.hudl.com/login" #username:nathanyang18@outlook.com #password:test1234 if __name__ =="__main": unittest.main()
37.04
97
0.656407
476814d4d4009b43a794a354ff6f84a93d5e7e37
1,013
py
Python
project/notes/serializers.py
J0hnGann0n/modern-django
a8f51806b3f6903847a20b7241044d3a88f4a775
[ "MIT" ]
1
2017-06-22T22:35:07.000Z
2017-06-22T22:35:07.000Z
project/notes/serializers.py
J0hnGann0n/modern-django
a8f51806b3f6903847a20b7241044d3a88f4a775
[ "MIT" ]
null
null
null
project/notes/serializers.py
J0hnGann0n/modern-django
a8f51806b3f6903847a20b7241044d3a88f4a775
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from rest_framework import serializers # MODEL IMPORTS from project.notes.models import Note, NoteItem
29.794118
103
0.702863
4768a467a8a3d8637a1d9c22d0a7cdad0dc93e1c
4,286
py
Python
src/main/python/TriggerTextExtractFromS3Image/trigger_text_extract_from_s3_image.py
aws-samples/social-graph-based-people-recommender-using-amazon-neptune-and-textract
50e54945032d0eb4b47d9072d4c1d66cd169070a
[ "MIT-0" ]
null
null
null
src/main/python/TriggerTextExtractFromS3Image/trigger_text_extract_from_s3_image.py
aws-samples/social-graph-based-people-recommender-using-amazon-neptune-and-textract
50e54945032d0eb4b47d9072d4c1d66cd169070a
[ "MIT-0" ]
null
null
null
src/main/python/TriggerTextExtractFromS3Image/trigger_text_extract_from_s3_image.py
aws-samples/social-graph-based-people-recommender-using-amazon-neptune-and-textract
50e54945032d0eb4b47d9072d4c1d66cd169070a
[ "MIT-0" ]
null
null
null
#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # vim: tabstop=2 shiftwidth=2 softtabstop=2 expandtab import sys import json import os import urllib.parse import traceback import datetime import boto3 DRY_RUN = (os.getenv('DRY_RUN', 'false') == 'true') AWS_REGION = os.getenv('REGION_NAME', 'us-east-1') KINESIS_STR...
27.651613
112
0.614792
4768b72ec107983342fe43250644f8d66a20e6f5
483
py
Python
example/retreive_soil_data.py
Smeaol22/ssurgo_provider
63bc2251ef031da013af4cf0b252cc48cad4965e
[ "BSD-2-Clause" ]
null
null
null
example/retreive_soil_data.py
Smeaol22/ssurgo_provider
63bc2251ef031da013af4cf0b252cc48cad4965e
[ "BSD-2-Clause" ]
null
null
null
example/retreive_soil_data.py
Smeaol22/ssurgo_provider
63bc2251ef031da013af4cf0b252cc48cad4965e
[ "BSD-2-Clause" ]
null
null
null
from pathlib import Path from src.main import retrieve_soil_composition # This example is base on geodatabase obtain from ssurgo on Ohio area ssurgo_folder_path = Path().absolute().parent / 'resources' / 'SSURGO' / 'soils_GSSURGO_oh_3905571_01' \ / 'soils' / 'gssurgo_g_oh' / 'gSSURGO_OH.gdb' coor...
43.909091
104
0.732919
476b0de22ff656e62822acafc870dbc852e2d7da
592
py
Python
dynamic_programming_1/solution/1010.py
gpgun0/baekjoon_
0a3e87b9eafe1a6af4234ebbd2eebb7f67156414
[ "MIT" ]
null
null
null
dynamic_programming_1/solution/1010.py
gpgun0/baekjoon_
0a3e87b9eafe1a6af4234ebbd2eebb7f67156414
[ "MIT" ]
null
null
null
dynamic_programming_1/solution/1010.py
gpgun0/baekjoon_
0a3e87b9eafe1a6af4234ebbd2eebb7f67156414
[ "MIT" ]
null
null
null
sol = Solution() t = int(input()) dp = [[0]*201 for _ in range(201)] for _ in range(t): print(sol.main())
22.769231
73
0.429054
476bf06f808044f61843876f04c9e9d7d4868ec8
901
py
Python
palindrome_test.py
gcrowder/palindrome
31bc1ab62f849dbbfef8e31b0d0d081e7bf2aced
[ "MIT" ]
null
null
null
palindrome_test.py
gcrowder/palindrome
31bc1ab62f849dbbfef8e31b0d0d081e7bf2aced
[ "MIT" ]
null
null
null
palindrome_test.py
gcrowder/palindrome
31bc1ab62f849dbbfef8e31b0d0d081e7bf2aced
[ "MIT" ]
null
null
null
import unittest from palindrome import is_palindrome if __name__ == '__main__': unittest.main()
30.033333
111
0.703663
476d9258256823afd9857d168e1439ac9c883a29
1,738
py
Python
fireroadApi/fireroad_utils.py
zhang-lucy/coursehose
21cbda0e7cc12a9d201585dbdd53d2eeacfade96
[ "MIT" ]
1
2020-09-20T17:29:24.000Z
2020-09-20T17:29:24.000Z
fireroadApi/fireroad_utils.py
zhang-lucy/coursehose
21cbda0e7cc12a9d201585dbdd53d2eeacfade96
[ "MIT" ]
null
null
null
fireroadApi/fireroad_utils.py
zhang-lucy/coursehose
21cbda0e7cc12a9d201585dbdd53d2eeacfade96
[ "MIT" ]
null
null
null
import requests import json import re if __name__ == "__main__": # course_id = input("Enter course id: ") # print(get_course_requirements(course_id)) # major_reqs = get_all_course_requirements() # save(major_reqs, "../data/course_requirements.json") # major_titles = get_all_major_titles() # save(major_title...
28.966667
100
0.733026
476df3fbd08fe0e200196618406d29ff175f3d41
4,423
py
Python
examples/compare_transactions_speed_with_hive.py
TheCrazyGM/bhive
1494e90a99123ecfc5efbd927258f9ba59443e2e
[ "MIT" ]
2
2020-03-21T23:50:22.000Z
2020-03-25T19:10:48.000Z
examples/compare_transactions_speed_with_hive.py
TheCrazyGM/bhive
1494e90a99123ecfc5efbd927258f9ba59443e2e
[ "MIT" ]
null
null
null
examples/compare_transactions_speed_with_hive.py
TheCrazyGM/bhive
1494e90a99123ecfc5efbd927258f9ba59443e2e
[ "MIT" ]
1
2020-03-21T23:50:25.000Z
2020-03-21T23:50:25.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from builtins import bytes from builtins import chr from builtins import range from builtins import super import random from pprint import pprint from binascii import hexl...
34.286822
101
0.628759
476f15ab6f480fa347487aaf78b33358b554c7b0
2,509
py
Python
src/main/python/widgets/dialogs/rename_user_dialog.py
ivov/admin-stock
e2e1d53436878b6db68dcb85d0cca31223066ffb
[ "MIT" ]
8
2019-11-02T22:32:30.000Z
2021-08-16T08:29:39.000Z
src/main/python/widgets/dialogs/rename_user_dialog.py
ivov/admin-stock
e2e1d53436878b6db68dcb85d0cca31223066ffb
[ "MIT" ]
null
null
null
src/main/python/widgets/dialogs/rename_user_dialog.py
ivov/admin-stock
e2e1d53436878b6db68dcb85d0cca31223066ffb
[ "MIT" ]
3
2019-12-10T16:23:49.000Z
2021-11-01T20:22:16.000Z
from PyQt5 import QtWidgets, QtCore from utils.styling import rename_user_dialog_title_style
35.842857
77
0.687923
4771eb8f2f256c1d66ba7f41f070c11396af58fb
6,053
py
Python
bluetooth-audio/btspeaker.py
b23prodtm/balena-sound
1ee886241485a302f88176c7dd880e986cf768c3
[ "Apache-2.0" ]
null
null
null
bluetooth-audio/btspeaker.py
b23prodtm/balena-sound
1ee886241485a302f88176c7dd880e986cf768c3
[ "Apache-2.0" ]
3
2019-11-20T17:49:37.000Z
2020-06-01T23:09:10.000Z
bluetooth-audio/btspeaker.py
b23prodtm/balena-sound
1ee886241485a302f88176c7dd880e986cf768c3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import bluetooth, sys, os, re, subprocess, time, getopt BT_BLE = int(os.getenv('BT_BLE', 0)) BT_SCAN_TIMEOUT = int(os.getenv('BT_SCAN_TIMEOUT', 2)) if BT_BLE: from gattlib import DiscoveryService from ble_client import BleClient #--------------------------------------------------------------...
38.801282
123
0.544358
477431852e85302c53a80c1bc87e296848214e08
267
py
Python
scripts/turnOnOffGPIO.py
yomboprime/RaspiGarage
c6bd7b92066ec087cc0d59afe6664e8ae5cb46ed
[ "MIT" ]
null
null
null
scripts/turnOnOffGPIO.py
yomboprime/RaspiGarage
c6bd7b92066ec087cc0d59afe6664e8ae5cb46ed
[ "MIT" ]
null
null
null
scripts/turnOnOffGPIO.py
yomboprime/RaspiGarage
c6bd7b92066ec087cc0d59afe6664e8ae5cb46ed
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if not os.getegid() == 0: sys.exit( 'Script must be run as root' ) from pyA20.gpio import gpio from pyA20.gpio import port pin = port.PA12 gpio.init() gpio.setcfg(pin, gpio.OUTPUT) gpio.output(pin, int(sys.argv[1]))
16.6875
44
0.700375
4774eea99e7f6cd1515737dfa6e6653b0d95171b
4,369
py
Python
bedpe_longrange/bedpe2longrange.py
ChenfuShi/tools_for_HiChIP
0faa8b26a7c53922dd2de977d7df442dd2caeed7
[ "BSD-3-Clause" ]
5
2019-05-09T19:31:26.000Z
2021-12-06T02:57:48.000Z
bedpe_longrange/bedpe2longrange.py
ChenfuShi/tools_for_HiChIP
0faa8b26a7c53922dd2de977d7df442dd2caeed7
[ "BSD-3-Clause" ]
null
null
null
bedpe_longrange/bedpe2longrange.py
ChenfuShi/tools_for_HiChIP
0faa8b26a7c53922dd2de977d7df442dd2caeed7
[ "BSD-3-Clause" ]
4
2019-06-01T11:30:41.000Z
2022-03-11T02:01:52.000Z
######################################### # Author: Chenfu Shi # Email: chenfu.shi@postgrad.manchester.ac.uk # BSD-3-Clause License # Copyright 2019 Chenfu Shi # All rights reserved. # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions ...
48.010989
757
0.676127
4775e3e337b36b06c6774e19748eb643d6196b5f
11,501
py
Python
0_get_Fink_features_xmatch.py
anaismoller/KNTrap
9e1bc85576ab16c4cb6d4d4da74482061029d207
[ "Apache-2.0" ]
null
null
null
0_get_Fink_features_xmatch.py
anaismoller/KNTrap
9e1bc85576ab16c4cb6d4d4da74482061029d207
[ "Apache-2.0" ]
null
null
null
0_get_Fink_features_xmatch.py
anaismoller/KNTrap
9e1bc85576ab16c4cb6d4d4da74482061029d207
[ "Apache-2.0" ]
null
null
null
# Year 2022 # Authors: Anais Mller based on fink-broker.org code import os import sys import glob import logging import argparse import numpy as np import pandas as pd from tqdm import tqdm from pathlib import Path from functools import partial from astropy.table import Table from astropy import units as u from astrop...
31.423497
87
0.578558
4777fbaa35309f630f4ae07e90c983a041f15298
1,990
py
Python
2017/day11/src/main.py
stenbein/AdventOfCode
3e8c24f7140dd9cdc687e176272af6a1302a9ca5
[ "MIT" ]
3
2018-04-08T10:40:52.000Z
2018-12-06T02:37:23.000Z
2017/day11/main.py
stenbein/AdventOfCode
3e8c24f7140dd9cdc687e176272af6a1302a9ca5
[ "MIT" ]
2
2018-04-10T11:44:18.000Z
2022-02-22T21:25:54.000Z
2017/day11/src/main.py
stenbein/AdventOfCode
3e8c24f7140dd9cdc687e176272af6a1302a9ca5
[ "MIT" ]
null
null
null
#!/usr/bin/python3 '''Day 11 of the 2017 advent of code''' def part_one(data): """Return the answer to part one of this day""" hexer = HexCounter() for coord in data: hexer.move(coord) return hexer.max() def part_two(data): """Return the answer to part two of this da...
20.515464
65
0.477387
477aed8ccac48ab95361c65ae3e38de923016db9
8,291
py
Python
kai_reduce.py
skterry/jackknifeKAI
8c85b32acd9166d87e7f5dc78943f2ad38f19809
[ "MIT" ]
null
null
null
kai_reduce.py
skterry/jackknifeKAI
8c85b32acd9166d87e7f5dc78943f2ad38f19809
[ "MIT" ]
null
null
null
kai_reduce.py
skterry/jackknifeKAI
8c85b32acd9166d87e7f5dc78943f2ad38f19809
[ "MIT" ]
null
null
null
# Copied from /u/jlu/data/microlens/20aug22os/reduce/reduce.py ################################################## # # General Notes: # -- python uses spaces to figure out the beginnings # and ends of functions/loops/etc. So make sure # to preserve spacings properly (indent). This # is easy to do if you use em...
34.119342
130
0.621517
477d41ca1c89e9e563388b140b23288438ed0562
7,613
py
Python
Clients/pyClient/GUI.py
JulianWww/AlphaZero
8eb754659793305eba7b9e636eeab37d9ccd45f7
[ "MIT" ]
1
2021-12-05T13:26:17.000Z
2021-12-05T13:26:17.000Z
Clients/pyClient/GUI.py
JulianWww/AlphaZero
8eb754659793305eba7b9e636eeab37d9ccd45f7
[ "MIT" ]
null
null
null
Clients/pyClient/GUI.py
JulianWww/AlphaZero
8eb754659793305eba7b9e636eeab37d9ccd45f7
[ "MIT" ]
null
null
null
import tkinter as tk from PIL import Image, ImageTk from game import Game from threading import Thread import time from gameSaver import sendFull from Client import DummyAgent
31.853556
104
0.523053
47809d65f9b6492472bef06377ad2f44a10c127c
1,742
py
Python
motto/core.py
attakei/jamproject
f3a677f4f95c112b89fb38957e6ba1a3c923ea85
[ "Apache-2.0" ]
null
null
null
motto/core.py
attakei/jamproject
f3a677f4f95c112b89fb38957e6ba1a3c923ea85
[ "Apache-2.0" ]
1
2020-01-05T14:04:35.000Z
2020-01-05T14:04:35.000Z
motto/core.py
attakei/motto
f3a677f4f95c112b89fb38957e6ba1a3c923ea85
[ "Apache-2.0" ]
null
null
null
"""Core classes for motto """ from typing import Any, Callable, ClassVar, Dict, List, Optional, Tuple, Union from typing_extensions import Protocol, TypedDict SkillParams = Dict[str, Any] SkillProc = Callable[[Sentence, SkillParams], Optional[Message]] Config = Dict[str, Any]
22.050633
78
0.588978
4780e099e5c87546b20f86a673d8da78571df7e4
361
py
Python
tests/test_bad_seeds.py
jklynch/diffrascape
350bed352fa6c9b30739e3748b7ea57b365f1944
[ "BSD-3-Clause" ]
null
null
null
tests/test_bad_seeds.py
jklynch/diffrascape
350bed352fa6c9b30739e3748b7ea57b365f1944
[ "BSD-3-Clause" ]
null
null
null
tests/test_bad_seeds.py
jklynch/diffrascape
350bed352fa6c9b30739e3748b7ea57b365f1944
[ "BSD-3-Clause" ]
null
null
null
from diffrascape.env import BadSeeds
25.785714
47
0.695291
47846ea157171c9a8c93b748212ec54fd187b2e7
1,418
py
Python
samples/bot-handoff-es6/emulate-users.py
microsoftly/botbuilder-js
538cb479b8596cdc209f5d70aa1a9000a0e6b360
[ "MIT" ]
1
2021-03-16T05:14:30.000Z
2021-03-16T05:14:30.000Z
samples/bot-handoff-es6/emulate-users.py
microsoftly/botbuilder-js
538cb479b8596cdc209f5d70aa1a9000a0e6b360
[ "MIT" ]
1
2018-03-26T05:25:54.000Z
2018-03-26T05:26:18.000Z
samples/bot-handoff-es6/emulate-users.py
microsoftly/botbuilder-js
538cb479b8596cdc209f5d70aa1a9000a0e6b360
[ "MIT" ]
1
2018-03-26T04:16:42.000Z
2018-03-26T04:16:42.000Z
#!/usr/bin/python import json, subprocess, sys, platform from os.path import expanduser if len (sys.argv) < 2 : print("Usage: python " + sys.argv[0] + " username(s)") sys.exit (1) HOME=expanduser("~") # determine paths SYSTEM=platform.system() if SYSTEM == 'Darwin': SERVERJSON=HOME+'/Library/Application ...
33.761905
106
0.673484
4784a44a26bc244fa67aa7f304ae6b3a0ac78c99
7,141
py
Python
originstamp_client/models/timestamp_response.py
OriginStampTimestamping/originstamp-python-client
a13c3d51eac6dd3a920b7b74e079531fe7ab17a2
[ "MIT" ]
9
2018-11-06T06:43:46.000Z
2020-09-26T03:29:41.000Z
originstamp_client/models/timestamp_response.py
OriginStampTimestamping/originstamp-python-client
a13c3d51eac6dd3a920b7b74e079531fe7ab17a2
[ "MIT" ]
1
2019-05-06T10:49:23.000Z
2019-05-13T09:30:01.000Z
originstamp_client/models/timestamp_response.py
OriginStampTimestamping/originstamp-python-client
a13c3d51eac6dd3a920b7b74e079531fe7ab17a2
[ "MIT" ]
1
2020-10-02T17:31:47.000Z
2020-10-02T17:31:47.000Z
# coding: utf-8 """ OriginStamp Client OpenAPI spec version: 3.0 OriginStamp Documentation: https://docs.originstamp.com Contact: mail@originstamp.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six def to_str(self): ...
31.183406
214
0.604537
4785a94446b7de09fa814de98568043480d82523
68,531
py
Python
benchmarks/SimResults/_bigLittle_hrrs_spec_tugberk_ml/backup_results_unknownr/EightThreads_sjeng/power.py
TugberkArkose/MLScheduler
e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061
[ "Unlicense" ]
null
null
null
benchmarks/SimResults/_bigLittle_hrrs_spec_tugberk_ml/backup_results_unknownr/EightThreads_sjeng/power.py
TugberkArkose/MLScheduler
e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061
[ "Unlicense" ]
null
null
null
benchmarks/SimResults/_bigLittle_hrrs_spec_tugberk_ml/backup_results_unknownr/EightThreads_sjeng/power.py
TugberkArkose/MLScheduler
e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061
[ "Unlicense" ]
null
null
null
power = {'BUSES': {'Area': 1.33155, 'Bus/Area': 1.33155, 'Bus/Gate Leakage': 0.00662954, 'Bus/Peak Dynamic': 0.0, 'Bus/Runtime Dynamic': 0.0, 'Bus/Subthreshold Leakage': 0.0691322, 'Bus/Subthreshold Leakage with power gating': 0.0259246, 'Gate...
74.979212
124
0.681721
4785cd8056f1f3e45758e79a377162fd96261ea3
6,450
py
Python
folder_tree/migrations/0001_initial.py
JoenyBui/django-folder-tree
a742f3d69ad01f5403ce43578240a6cc54fa6956
[ "BSD-3-Clause" ]
null
null
null
folder_tree/migrations/0001_initial.py
JoenyBui/django-folder-tree
a742f3d69ad01f5403ce43578240a6cc54fa6956
[ "BSD-3-Clause" ]
null
null
null
folder_tree/migrations/0001_initial.py
JoenyBui/django-folder-tree
a742f3d69ad01f5403ce43578240a6cc54fa6956
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2016-12-13 22:10 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import folder_tree.models import mptt.fields
47.426471
332
0.582171
47867c6666c70dddf7e4d9d1220c5f5b48b81ac1
428
py
Python
groupdocs_viewer_cloud/apis/__init__.py
groupdocs-viewer-cloud/groupdocs-viewer-cloud-python
e734944b0b84c91804aa29e4ad5619c1a7334188
[ "MIT" ]
1
2020-06-07T12:39:44.000Z
2020-06-07T12:39:44.000Z
groupdocs_viewer_cloud/apis/__init__.py
groupdocs-viewer-cloud/groupdocs-viewer-cloud-python
e734944b0b84c91804aa29e4ad5619c1a7334188
[ "MIT" ]
1
2021-03-24T01:53:23.000Z
2021-03-26T08:20:31.000Z
groupdocs_viewer_cloud/apis/__init__.py
groupdocs-viewer-cloud/groupdocs-viewer-cloud-python
e734944b0b84c91804aa29e4ad5619c1a7334188
[ "MIT" ]
null
null
null
from __future__ import absolute_import # flake8: noqa # import apis from groupdocs_viewer_cloud.apis.file_api import FileApi from groupdocs_viewer_cloud.apis.folder_api import FolderApi from groupdocs_viewer_cloud.apis.info_api import InfoApi from groupdocs_viewer_cloud.apis.license_api import LicenseApi from groupdo...
35.666667
62
0.880841
4786a66a40aa4e0d9cb192b3447ac559f77b749b
481
py
Python
models/model.py
BaoLocPham/hum2song
706b7fdf838944e2aabe0ae331c0867cb67f6fbc
[ "MIT" ]
null
null
null
models/model.py
BaoLocPham/hum2song
706b7fdf838944e2aabe0ae331c0867cb67f6fbc
[ "MIT" ]
null
null
null
models/model.py
BaoLocPham/hum2song
706b7fdf838944e2aabe0ae331c0867cb67f6fbc
[ "MIT" ]
null
null
null
from models.wrap_mobilenet import * from models.wrap_resnet import * from models.wrap_vgg import * from models.wrap_alexnet import *
32.066667
41
0.702703
4786b42fdf67185bb43692e8ca877d2f9dba7530
4,571
py
Python
models/segnet.py
AntixK/Neural-Blocks
018a44bbb703fc848234b95a3e604576bd9df88f
[ "MIT" ]
3
2019-07-23T12:35:50.000Z
2021-02-23T04:20:31.000Z
models/segnet.py
AntixK/Neural-Blocks
018a44bbb703fc848234b95a3e604576bd9df88f
[ "MIT" ]
null
null
null
models/segnet.py
AntixK/Neural-Blocks
018a44bbb703fc848234b95a3e604576bd9df88f
[ "MIT" ]
1
2019-07-21T06:07:12.000Z
2019-07-21T06:07:12.000Z
import torch import torch.nn as nn from NeuralBlocks.blocks.convnormrelu import ConvNormRelu if __name__ == "__main__": s = SegNet(3, 10, norm = 'BN') inp = torch.randn(32,3,128, 128) #M x C x H x W s.train() result = s(inp)
34.628788
93
0.584992
4788b5896e827da02e7c6002f5c921308b7b3159
15,484
py
Python
Contents/Resources/parse_log.py
nathangrigg/Latex.bbpackage
f53b33c6c7c90cd9aaf1da61591cf35e5aa722b3
[ "BSD-3-Clause" ]
8
2015-10-21T02:03:28.000Z
2020-12-27T04:04:46.000Z
Contents/Resources/parse_log.py
nathangrigg/Latex.bbpackage
f53b33c6c7c90cd9aaf1da61591cf35e5aa722b3
[ "BSD-3-Clause" ]
null
null
null
Contents/Resources/parse_log.py
nathangrigg/Latex.bbpackage
f53b33c6c7c90cd9aaf1da61591cf35e5aa722b3
[ "BSD-3-Clause" ]
5
2015-01-15T14:01:30.000Z
2021-09-05T20:22:09.000Z
#!/usr/bin/python # This script derived from a piece of the rubber project # http://launchpad.net/rubber # (c) Emmanuel Beffara, 2002--2006 # # Modified by Nathan Grigg, January 2012 import re import string import sys import getopt #---- Log parser ----{{{1 re_loghead = re.compile("This is [0-9a-zA-Z-]*") re_reru...
33.227468
96
0.452855
478b01eea05155c0e098a1b65909d95f41833301
5,665
py
Python
barbican-8.0.0/barbican/objects/container_consumer_meta.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
177
2015-01-02T09:35:53.000Z
2022-02-26T01:43:55.000Z
barbican/objects/container_consumer_meta.py
kkutysllb/barbican
7b14d983e0dce6dcffe9781b05c52335b8203fc7
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
barbican/objects/container_consumer_meta.py
kkutysllb/barbican
7b14d983e0dce6dcffe9781b05c52335b8203fc7
[ "Apache-2.0" ]
87
2015-01-13T17:33:40.000Z
2021-11-09T05:30:36.000Z
# Copyright 2018 Fujitsu. # # 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...
44.960317
79
0.642012
478b0e311b234d21a0af4f46a1bbc9e444318807
527
py
Python
Lab02_ifelse_and_loops/exercise-17.py
rodrigoc-silva/Python-course
327b20738a4b383510faddc0ec26a54be1bbd717
[ "MIT" ]
null
null
null
Lab02_ifelse_and_loops/exercise-17.py
rodrigoc-silva/Python-course
327b20738a4b383510faddc0ec26a54be1bbd717
[ "MIT" ]
null
null
null
Lab02_ifelse_and_loops/exercise-17.py
rodrigoc-silva/Python-course
327b20738a4b383510faddc0ec26a54be1bbd717
[ "MIT" ]
null
null
null
#This program converts KPH to MPH. #constant CONVERT_FACTOR = 0.6214 #head output print("KPH \t MPH") print("_" * 20) #loop for kph_speed in range (60, 131, 10): #calculation mph_speed = kph_speed * CONVERT_FACTOR #output print(kph_speed, '\t', format(mph_speed, '.1f')) input("\nPress any key to ...
15.5
52
0.588235
478d445e00859e47118663015c1dca1d382e8e84
3,841
py
Python
tests/sentry/api/endpoints/test_project_rules_configuration.py
pierredup/sentry
0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/api/endpoints/test_project_rules_configuration.py
pierredup/sentry
0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/api/endpoints/test_project_rules_configuration.py
pierredup/sentry
0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import from django.core.urlresolvers import reverse from mock import Mock, patch from sentry.rules.registry import RuleRegistry from sentry.testutils import APITestCase
36.235849
100
0.640198
478df9b66c40c191cbb8cf8a0885ef1863ea295a
3,297
py
Python
train-script.py
praepunctis/chordtext
b58ea6fea7bf417e6e18daad6c4ce6ea878bd27b
[ "MIT" ]
1
2020-12-02T10:04:08.000Z
2020-12-02T10:04:08.000Z
train-script.py
praepunctis/chordtext
b58ea6fea7bf417e6e18daad6c4ce6ea878bd27b
[ "MIT" ]
null
null
null
train-script.py
praepunctis/chordtext
b58ea6fea7bf417e6e18daad6c4ce6ea878bd27b
[ "MIT" ]
null
null
null
# train-script.py # Grab data from movie_data.csv and train a ML model. # Kelly Fesler (c) Nov 2020 # Modified from Soumya Gupta (c) Jan 2020 # STEP 1: import ------------------------------------------- # Import libraries import urllib.request import os import pandas as pd import numpy as np import nltk import sklear...
28.422414
73
0.668487
478eeb89ce278e9a0867db0565808bfedbcc11dc
10,947
py
Python
roerich/algorithms.py
HSE-LAMBDA/roerich
17e178292593d1ea6a821b99705620ba066abd2a
[ "BSD-2-Clause" ]
10
2020-12-01T13:58:27.000Z
2022-01-17T12:01:31.000Z
roerich/algorithms.py
HSE-LAMBDA/roerich
17e178292593d1ea6a821b99705620ba066abd2a
[ "BSD-2-Clause" ]
3
2021-03-07T14:06:22.000Z
2022-01-18T14:23:16.000Z
roerich/algorithms.py
HSE-LAMBDA/roerich
17e178292593d1ea6a821b99705620ba066abd2a
[ "BSD-2-Clause" ]
2
2020-12-01T14:04:36.000Z
2022-03-24T12:52:32.000Z
from abc import ABCMeta, abstractmethod from collections import defaultdict from copy import deepcopy from typing import Union, Type, Any, Tuple import numpy as np import torch import torch.nn as nn from scipy.signal import find_peaks_cwt from .net import MyNN, MyNNRegressor from .utils import autoregression_matrix, ...
34.863057
128
0.567279
479004b6cfb780abc09aa80bc0894ff64e48376b
182
py
Python
extra_tests/snippets/stdlib_types.py
mainsail-org/RustPython
5d2d87c24f1ff7201fcc8d4fcffadb0ec12dc127
[ "CC-BY-4.0", "MIT" ]
11,058
2018-05-29T07:40:06.000Z
2022-03-31T11:38:42.000Z
extra_tests/snippets/stdlib_types.py
mainsail-org/RustPython
5d2d87c24f1ff7201fcc8d4fcffadb0ec12dc127
[ "CC-BY-4.0", "MIT" ]
2,105
2018-06-01T10:07:16.000Z
2022-03-31T14:56:42.000Z
extra_tests/snippets/stdlib_types.py
mainsail-org/RustPython
5d2d87c24f1ff7201fcc8d4fcffadb0ec12dc127
[ "CC-BY-4.0", "MIT" ]
914
2018-07-27T09:36:14.000Z
2022-03-31T19:56:34.000Z
import types from testutils import assert_raises ns = types.SimpleNamespace(a=2, b='Rust') assert ns.a == 2 assert ns.b == "Rust" with assert_raises(AttributeError): _ = ns.c
16.545455
41
0.714286
4790692759f37d6994f35811b0b4dd07154a5efb
1,664
py
Python
1018.py
idarlenearaujo/URI_Python
c4517f90f5310894347edcf58a28d3e569a89a2b
[ "MIT" ]
null
null
null
1018.py
idarlenearaujo/URI_Python
c4517f90f5310894347edcf58a28d3e569a89a2b
[ "MIT" ]
null
null
null
1018.py
idarlenearaujo/URI_Python
c4517f90f5310894347edcf58a28d3e569a89a2b
[ "MIT" ]
null
null
null
# entrada value = int(input()) # variaveis cashier = True valueI = value n1 = 0 n2 = 0 n5 = 0 n10 = 0 n20 = 0 n50 = 0 n100 = 0 # lao quando cashier == False sai while cashier == True: # condicionais if value >= 100: valueA = value // 100 n100 = valueA valueB = v...
20.292683
183
0.485577
4790afe07c99445354df0a84235383f75387a69b
2,164
py
Python
selene/common/delegation.py
KalinkinaMaria/selene
859e1102c85740b52af8d0f08dd6b6490b4bd2ff
[ "MIT" ]
null
null
null
selene/common/delegation.py
KalinkinaMaria/selene
859e1102c85740b52af8d0f08dd6b6490b4bd2ff
[ "MIT" ]
1
2021-06-02T04:21:17.000Z
2021-06-02T04:21:17.000Z
selene/common/delegation.py
vkarpenko/selene
4776357430c940be38f38be9981006dd156f9730
[ "MIT" ]
null
null
null
from abc import ABCMeta # def _make_delegator_method_to_property(name): # def delegator(self, *args, **kwargs): # return getattr(self.__delegate__, name) # return delegator # todo: finalize naming: Delegating, Delegate, actual_delegate, delegatee, delegator o_O ? # We have the following players i...
34.903226
119
0.657116
47928a4b5a14d921593fc3e938a7ef189730aea5
186
py
Python
src/pymystem_example1.py
componavt/neural_synset
b58f03af90af6fe2ffe8253a1222c99c2b8907df
[ "Unlicense" ]
null
null
null
src/pymystem_example1.py
componavt/neural_synset
b58f03af90af6fe2ffe8253a1222c99c2b8907df
[ "Unlicense" ]
null
null
null
src/pymystem_example1.py
componavt/neural_synset
b58f03af90af6fe2ffe8253a1222c99c2b8907df
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- from pymystem3 import Mystem # text = "some good newses" text = " " m = Mystem() lemmas = m.lemmatize(text) print(''.join(lemmas))
20.666667
40
0.677419
4793cb0e3e72768ba54484744717ebd0208905a2
795
py
Python
backend/appengine/routes/desenhos/edit.py
faahbih/projetoolivarts
3dfd955fe44d58a38b85b6643440a600b0bde81a
[ "MIT" ]
null
null
null
backend/appengine/routes/desenhos/edit.py
faahbih/projetoolivarts
3dfd955fe44d58a38b85b6643440a600b0bde81a
[ "MIT" ]
null
null
null
backend/appengine/routes/desenhos/edit.py
faahbih/projetoolivarts
3dfd955fe44d58a38b85b6643440a600b0bde81a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from config.template_middleware import TemplateResponse from desenho.desenho_model import Desenho, DesenhoForm from gaecookie.decorator import no_csrf #from pedido.pedido_model import Pedido, PedidoForm from routes import desenhos from tek...
34.565217
63
0.783648
4794b8cc274b020b95e48eb002f538acf5d6b189
4,484
py
Python
data/create_train_test_split.py
chmo2019/CUB-200-with-TFOD-API
8f46f2f91085f3e35829f8c7ce0289771ebb0294
[ "MIT" ]
null
null
null
data/create_train_test_split.py
chmo2019/CUB-200-with-TFOD-API
8f46f2f91085f3e35829f8c7ce0289771ebb0294
[ "MIT" ]
null
null
null
data/create_train_test_split.py
chmo2019/CUB-200-with-TFOD-API
8f46f2f91085f3e35829f8c7ce0289771ebb0294
[ "MIT" ]
null
null
null
# import necessary libraries import csv from PIL import Image import argparse # create argument parser with PATH argument ap = argparse.ArgumentParser() ap.add_argument('-p', '--path', required=True, help='''PATH to CUB_200_2011 folder i.e. folder with CUB 200 csv files (make sure to include full path name for so ...
32.258993
94
0.594558
4795e4597ca4cff70deec87c952fb0febb0256f0
3,487
py
Python
homework/1-AE/losses.py
Penchekrak/DeepGenerativeModels
7ee829682e8ed51bc637e2c6def0b9f810f384bc
[ "MIT" ]
null
null
null
homework/1-AE/losses.py
Penchekrak/DeepGenerativeModels
7ee829682e8ed51bc637e2c6def0b9f810f384bc
[ "MIT" ]
null
null
null
homework/1-AE/losses.py
Penchekrak/DeepGenerativeModels
7ee829682e8ed51bc637e2c6def0b9f810f384bc
[ "MIT" ]
null
null
null
import torch from torch import nn def l1_loss(x): return torch.mean(torch.sum(torch.abs(x), dim=1))
32.896226
104
0.634069
4795fb5c060e1fe6b6b35dd753478649d709249e
160
py
Python
src/app/services/users/__init__.py
dieisabel/cypherman
06d8678b79b18aa256a79ec6967d68274f088dbc
[ "MIT" ]
null
null
null
src/app/services/users/__init__.py
dieisabel/cypherman
06d8678b79b18aa256a79ec6967d68274f088dbc
[ "MIT" ]
43
2021-12-02T21:26:01.000Z
2022-02-21T08:51:06.000Z
src/app/services/users/__init__.py
dieisabel/cypherman
06d8678b79b18aa256a79ec6967d68274f088dbc
[ "MIT" ]
null
null
null
__all__ = [ 'IUserService', 'UserService', ] from services.users.iuser_service import IUserService from services.users.user_service import UserService
20
53
0.775
47981ad00b6fbe330d40b7fd3c56d0ca049b684c
6,190
py
Python
core/domain/wipeout_service_test.py
davehenton/oppia
62a9e9ea8458632e39b8ab4cf15b0489ac1acad9
[ "Apache-2.0" ]
1
2021-01-22T03:24:52.000Z
2021-01-22T03:24:52.000Z
core/domain/wipeout_service_test.py
davehenton/oppia
62a9e9ea8458632e39b8ab4cf15b0489ac1acad9
[ "Apache-2.0" ]
null
null
null
core/domain/wipeout_service_test.py
davehenton/oppia
62a9e9ea8458632e39b8ab4cf15b0489ac1acad9
[ "Apache-2.0" ]
1
2020-06-25T21:43:01.000Z
2020-06-25T21:43:01.000Z
# Copyright 2019 The Oppia Authors. 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 ...
42.108844
80
0.745073
479926439a3bedce30e4792e3973470d8b31f04e
14,157
py
Python
deepcomp/util/env_setup.py
CN-UPB/DeepCoMP
f9f64873184bb53b5687ae62f8ba2b84da423692
[ "MIT" ]
19
2021-03-17T12:59:48.000Z
2022-03-24T09:04:32.000Z
deepcomp/util/env_setup.py
CN-UPB/DeepCoMP
f9f64873184bb53b5687ae62f8ba2b84da423692
[ "MIT" ]
1
2021-03-08T16:27:49.000Z
2021-03-08T16:27:49.000Z
deepcomp/util/env_setup.py
CN-UPB/DeepCoMP
f9f64873184bb53b5687ae62f8ba2b84da423692
[ "MIT" ]
6
2021-01-25T19:34:18.000Z
2022-03-20T05:56:33.000Z
"""Utility module for setting up different envs""" import numpy as np import structlog from shapely.geometry import Point from ray.rllib.agents.ppo import DEFAULT_CONFIG from ray.rllib.env.multi_agent_env import MultiAgentEnv from deepcomp.util.constants import SUPPORTED_ENVS, SUPPORTED_AGENTS, SUPPORTED_SHARING, SUPP...
44.37931
128
0.67034
479ba82b2ef03b26d431347ee226aa3e2162ff17
221
py
Python
PYTHON/Exemplos/Aula 1/Ex004.py
B1linha/ADS---Mackenzie
0dc53418ff7580836f6a64c5370e204e8841d1a9
[ "MIT" ]
null
null
null
PYTHON/Exemplos/Aula 1/Ex004.py
B1linha/ADS---Mackenzie
0dc53418ff7580836f6a64c5370e204e8841d1a9
[ "MIT" ]
null
null
null
PYTHON/Exemplos/Aula 1/Ex004.py
B1linha/ADS---Mackenzie
0dc53418ff7580836f6a64c5370e204e8841d1a9
[ "MIT" ]
null
null
null
""" Faa um programa que receba o salrio de um funcionrio, calcule e mostre o novo salrio, sabende-se que este sofreu um aumento de 25%""" sal = float(input('Salrio:')) nsal = sal*1.25 print ('novo salrio = ', nsal)
55.25
142
0.710407
479c044c04a29437935975e735d0a42de577c613
1,866
py
Python
Square_Lattice/obs.py
suron-003/Dynamic-Structure-Factor
908ebcd8e6db5c6bf19a3a782c3b0a4b97a35f8b
[ "MIT" ]
1
2022-01-25T16:36:28.000Z
2022-01-25T16:36:28.000Z
Square_Lattice/obs.py
suron-003/Dynamic-Structure-Factor
908ebcd8e6db5c6bf19a3a782c3b0a4b97a35f8b
[ "MIT" ]
null
null
null
Square_Lattice/obs.py
suron-003/Dynamic-Structure-Factor
908ebcd8e6db5c6bf19a3a782c3b0a4b97a35f8b
[ "MIT" ]
null
null
null
import numpy as np from numpy import random, linspace, cos, pi import math import random import matplotlib.pyplot as plt from scipy.fft import fft, fftfreq from scipy.fft import rfft, rfftfreq import copy from mpl_toolkits.mplot3d import axes3d from mpl_toolkits import mplot3d from plotly import __version__ import pand...
30.096774
203
0.633976
479c652f9d6be7f731af9a0eaf026a8198211ed7
1,947
py
Python
src/test/test_cmdparse_qmp.py
dougpuob/qemu-tasker
58a24090016abebcda8e95c382bceaef453ea981
[ "MIT" ]
null
null
null
src/test/test_cmdparse_qmp.py
dougpuob/qemu-tasker
58a24090016abebcda8e95c382bceaef453ea981
[ "MIT" ]
null
null
null
src/test/test_cmdparse_qmp.py
dougpuob/qemu-tasker
58a24090016abebcda8e95c382bceaef453ea981
[ "MIT" ]
null
null
null
import unittest import sys import os import sys import json TEST_DIR = os.path.dirname(os.path.abspath(__file__)) PROJECT_DIR = os.path.abspath(os.path.join(TEST_DIR, os.pardir)) sys.path.insert(0, PROJECT_DIR) from module.cmdparse import cmdargs if __name__ == '__main__': unittest.main()
31.918033
77
0.582435
479ce552b6ca46a4ea68c0270c6749107ab46cb3
3,498
py
Python
ebbp/ebb_fit_prior.py
uttiyamaji/ebbp
d1b7270b7741cab4b18a9f54b47060f90ac1fc2c
[ "MIT" ]
null
null
null
ebbp/ebb_fit_prior.py
uttiyamaji/ebbp
d1b7270b7741cab4b18a9f54b47060f90ac1fc2c
[ "MIT" ]
null
null
null
ebbp/ebb_fit_prior.py
uttiyamaji/ebbp
d1b7270b7741cab4b18a9f54b47060f90ac1fc2c
[ "MIT" ]
null
null
null
""" ebb_fit_prior : fits a Beta prior by estimating the parameters from the data using method of moments and MLE estimates augment : given data and prior, computes the shrinked estimate, credible intervals and augments those in the given dataframe check_fit : plots the true average and the shrinked average """ impo...
26.104478
129
0.57004
479df66e863ce32ea10d321a13e0395597727f6a
1,554
py
Python
shopping.py
scharlau/shopping_exercise_p
f6b59ba38408dcd9f66f79814ad6a7df167e8fa1
[ "Unlicense" ]
1
2021-02-23T15:56:22.000Z
2021-02-23T15:56:22.000Z
shopping.py
scharlau/shopping_exercise_p
f6b59ba38408dcd9f66f79814ad6a7df167e8fa1
[ "Unlicense" ]
null
null
null
shopping.py
scharlau/shopping_exercise_p
f6b59ba38408dcd9f66f79814ad6a7df167e8fa1
[ "Unlicense" ]
3
2022-02-23T11:17:12.000Z
2022-03-01T10:22:40.000Z
import sqlite3 from flask import Flask, render_template app = Flask(__name__) # database details - to remove some duplication db_name = 'shopping_data.db'
28.254545
70
0.684041
479e8f21283f73a7284a6977ee7935c8576954ca
3,372
py
Python
Month 01/Week 04/Day 03/a.py
KevinKnott/Coding-Review
6a83cb798cc317d1e4357ac6b2b1fbf76fa034fb
[ "MIT" ]
null
null
null
Month 01/Week 04/Day 03/a.py
KevinKnott/Coding-Review
6a83cb798cc317d1e4357ac6b2b1fbf76fa034fb
[ "MIT" ]
null
null
null
Month 01/Week 04/Day 03/a.py
KevinKnott/Coding-Review
6a83cb798cc317d1e4357ac6b2b1fbf76fa034fb
[ "MIT" ]
null
null
null
# Decode Ways: https://leetcode.com/problems/decode-ways/ # A message containing letters from A-Z can be encoded into numbers using the following mapping: # 'A' -> "1" # 'B' -> "2" # ... # 'Z' -> "26" # To decode an encoded message, all the digits must be grouped then mapped back into letters using the reverse of th...
34.762887
202
0.613582
479ebacd8680e1c9ee8fd4892014756c931c3f71
7,503
py
Python
word2vec.py
online-behaviour/machine-learning
2ff0e83905985ec644699ece44c75dd7422a7426
[ "Apache-2.0" ]
2
2017-08-18T13:14:38.000Z
2021-09-02T07:45:41.000Z
word2vec.py
online-behaviour/machine-learning
2ff0e83905985ec644699ece44c75dd7422a7426
[ "Apache-2.0" ]
null
null
null
word2vec.py
online-behaviour/machine-learning
2ff0e83905985ec644699ece44c75dd7422a7426
[ "Apache-2.0" ]
3
2020-11-18T11:55:45.000Z
2021-04-27T10:02:27.000Z
#!/usr/bin/python -W all """ word2vec.py: process tweets with word2vec vectors usage: word2vec.py [-x] [-m model-file [-l word-vector-length]] -w word-vector-file -T train-file -t test-file notes: - optional model file is a text file from which the word vector file is built - option x writes tokeni...
40.33871
114
0.702786
479f58c93d75ceaaa8c1e6a8d36c5a44e2d8377b
307
py
Python
methylprep/processing/__init__.py
WonyoungCho/methylprep
4e34f62be969158453ba9b05b7629433f9bbba8b
[ "MIT" ]
5
2019-08-28T08:27:16.000Z
2020-03-11T17:20:01.000Z
methylprep/processing/__init__.py
WonyoungCho/methylprep
4e34f62be969158453ba9b05b7629433f9bbba8b
[ "MIT" ]
16
2021-04-08T22:02:58.000Z
2022-03-18T17:30:50.000Z
methylprep/processing/__init__.py
WonyoungCho/methylprep
4e34f62be969158453ba9b05b7629433f9bbba8b
[ "MIT" ]
3
2020-05-21T10:16:24.000Z
2020-08-30T09:26:52.000Z
from .pipeline import SampleDataContainer, run_pipeline, make_pipeline from .preprocess import preprocess_noob from .postprocess import consolidate_values_for_sheet __all__ = [ 'SampleDataContainer', 'preprocess_noob', 'run_pipeline', 'make_pipeline,', 'consolidate_values_for_sheet' ]
25.583333
70
0.781759
47a0a4fbe45ee5f24ba893991497ace327ecbebb
36
py
Python
lib/jnpr/eznc/runstat/__init__.py
cro/py-junos-eznc
4c111476cc8eb7599462379ddf55743ae30bbf5c
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
lib/jnpr/eznc/runstat/__init__.py
cro/py-junos-eznc
4c111476cc8eb7599462379ddf55743ae30bbf5c
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
lib/jnpr/eznc/runstat/__init__.py
cro/py-junos-eznc
4c111476cc8eb7599462379ddf55743ae30bbf5c
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
from .rsmaker import RunstatMaker
9
33
0.805556
47a1196cb4630db570dad1f74a29081f22292d56
291
py
Python
Day 4/Ex3: Treasure Map.py
Nishi-16-K/100DaysCodeChallenge-Python-
96df953bbc60c2bf8802cf31ed6c593469521482
[ "MIT" ]
1
2021-08-29T12:44:23.000Z
2021-08-29T12:44:23.000Z
Day 4/Ex3: Treasure Map.py
Nishi-16-K/100DaysofCodeChallenge-Python
96df953bbc60c2bf8802cf31ed6c593469521482
[ "MIT" ]
null
null
null
Day 4/Ex3: Treasure Map.py
Nishi-16-K/100DaysofCodeChallenge-Python
96df953bbc60c2bf8802cf31ed6c593469521482
[ "MIT" ]
null
null
null
row1 = ["","",""] row2 = ["","",""] row3 = ["","",""] map = [row1, row2, row3] print(f"{row1}\n{row2}\n{row3}") position = input("Where do you want to put the treasure? ") col = int(position[0]) ro = int(position[1]) map[ro-1][col-1] = "X" print(f"{row1}\n{row2}\n{row3}")
26.454545
59
0.515464
47a573807a7fa2158676c40f6ae41faaea77de33
1,809
py
Python
noto-emoji-extra/gen-couple-kiss.py
PoomSmart/EmojiFonts
43f4f2bc6e8986cc2f5bc317e50381774f02316f
[ "MIT" ]
3
2022-02-19T07:29:41.000Z
2022-03-03T07:24:14.000Z
noto-emoji-extra/gen-couple-kiss.py
PoomSmart/EmojiFonts
43f4f2bc6e8986cc2f5bc317e50381774f02316f
[ "MIT" ]
1
2022-03-13T23:00:19.000Z
2022-03-14T16:12:12.000Z
noto-emoji-extra/gen-couple-kiss.py
PoomSmart/EmojiFonts
43f4f2bc6e8986cc2f5bc317e50381774f02316f
[ "MIT" ]
1
2022-02-19T13:32:11.000Z
2022-02-19T13:32:11.000Z
import xml.etree.ElementTree as ET from shared import * # neutral for skin in skins: name = f'{font}/emoji_u1f48f.svg' if skin == 'none' else f'{font}/emoji_u1f48f_{skin}.svg' left = ET.parse(name).getroot() right = ET.parse(name).getroot() remove(left, 2) remove(left, 1) remove(right, 0) w...
32.303571
94
0.661139
47a5912698e4015d5f8165df118a9d812fd9c116
488
py
Python
wrong_settings.py
kutayg/gameQuest
1730ea8810a54afff50fbb5eab8fb5290eed6222
[ "MIT" ]
null
null
null
wrong_settings.py
kutayg/gameQuest
1730ea8810a54afff50fbb5eab8fb5290eed6222
[ "MIT" ]
null
null
null
wrong_settings.py
kutayg/gameQuest
1730ea8810a54afff50fbb5eab8fb5290eed6222
[ "MIT" ]
null
null
null
# 2019 KidsCanCode LLC / All rights reserved. # Game options/settings TITLE = "Jumpy!" WIDTH = 480 HEIGHT = 600 FPS = 60 # Environment options GRAVITY = 9.8 # Player properties PLAYER_ACC = 0.5 PLAYER_FRICTION = -0.01 PLAYER_JUMPPOWER = 10 # Define colors # I changed the screen color to aqua, the platform color to...
20.333333
98
0.684426
47a75c9fd27c1c4e7e7447cf693a765246360655
1,446
py
Python
yc164/518.py
c-yan/yukicoder
cdbbd65402177225dd989df7fe01f67908484a69
[ "MIT" ]
null
null
null
yc164/518.py
c-yan/yukicoder
cdbbd65402177225dd989df7fe01f67908484a69
[ "MIT" ]
null
null
null
yc164/518.py
c-yan/yukicoder
cdbbd65402177225dd989df7fe01f67908484a69
[ "MIT" ]
null
null
null
N = int(input()) R = input().split() print(i2r(sum(r2i(r) for r in R)))
21.58209
77
0.310512
47a795b1d3c2fd7990f98fee6d037bc7e104529b
966
py
Python
asynapplicationinsights/channel/abstractions.py
RobertoPrevato/aioapplicationinsights
c72721c6ed0e64b4e5bfecbcd3dde62f7c6ea120
[ "MIT" ]
2
2018-08-13T14:26:31.000Z
2019-12-01T01:03:10.000Z
asynapplicationinsights/channel/abstractions.py
RobertoPrevato/aioapplicationinsights
c72721c6ed0e64b4e5bfecbcd3dde62f7c6ea120
[ "MIT" ]
4
2018-10-09T20:32:59.000Z
2018-12-09T20:46:09.000Z
asynapplicationinsights/channel/abstractions.py
RobertoPrevato/aioapplicationinsights
c72721c6ed0e64b4e5bfecbcd3dde62f7c6ea120
[ "MIT" ]
null
null
null
from asyncio import Queue, QueueEmpty from abc import ABC, abstractmethod from typing import List
21
54
0.555901
47a8d279cbfb373533f6a00a0322f66158d1d281
759
py
Python
2021/day3/a.py
vinnymaker18/adventofcode
92d0a6f5a04e6601b6c82ee323565e7327be36f8
[ "MIT" ]
null
null
null
2021/day3/a.py
vinnymaker18/adventofcode
92d0a6f5a04e6601b6c82ee323565e7327be36f8
[ "MIT" ]
null
null
null
2021/day3/a.py
vinnymaker18/adventofcode
92d0a6f5a04e6601b6c82ee323565e7327be36f8
[ "MIT" ]
null
null
null
filter(processInput())
25.3
63
0.571805
47ab86e8093f2c1a626207ebde134e3527326fd9
659
py
Python
mwasurveyweb/templatetags/template_filters.py
tjgalvin/SS18B-NHurleyWalker
81b1bbb9e7131a92804b0dbddac795217b524160
[ "MIT" ]
1
2020-07-23T08:48:50.000Z
2020-07-23T08:48:50.000Z
mwasurveyweb/templatetags/template_filters.py
tjgalvin/SS18B-NHurleyWalker
81b1bbb9e7131a92804b0dbddac795217b524160
[ "MIT" ]
6
2020-02-11T23:38:13.000Z
2022-02-10T07:28:07.000Z
mwasurveyweb/templatetags/template_filters.py
tjgalvin/SS18B-NHurleyWalker
81b1bbb9e7131a92804b0dbddac795217b524160
[ "MIT" ]
1
2020-07-23T09:01:29.000Z
2020-07-23T09:01:29.000Z
""" Distributed under the MIT License. See LICENSE.txt for more info. """ from django import template register = template.Library()
22.724138
65
0.704097
47ab8c88580963ea081b14afd01ad6eaae957d96
1,091
py
Python
Exercicios/Ex69.py
angeloridolfi/Python-CEV
fd11b7ea0725f83c84336b99304c50f183514245
[ "MIT" ]
null
null
null
Exercicios/Ex69.py
angeloridolfi/Python-CEV
fd11b7ea0725f83c84336b99304c50f183514245
[ "MIT" ]
null
null
null
Exercicios/Ex69.py
angeloridolfi/Python-CEV
fd11b7ea0725f83c84336b99304c50f183514245
[ "MIT" ]
null
null
null
contmaior = 0 contahomi = 0 contamuie = 0 while True: print('CADASTRE UMA PESSOA') print('=-' * 19) idade = int(input('INFORME SUA IDADE: ')) if idade > 18: contmaior += 1 sexo = str(input('INFORME SEU SEXO <<M/F>>: ')).upper().strip()[0] if sexo not in 'MF': while True: ...
33.060606
96
0.542621
47ac2e08152553ebc4a73e2f44181a3dfc25e059
165
py
Python
testapp/another_urls.py
danigosa/django-simple-seo
17610e50148c6672cb34e96654df1d3515b0444f
[ "BSD-3-Clause" ]
11
2015-01-02T15:44:31.000Z
2021-07-27T06:54:35.000Z
testapp/another_urls.py
danigosa/django-simple-seo
17610e50148c6672cb34e96654df1d3515b0444f
[ "BSD-3-Clause" ]
8
2016-02-03T07:07:04.000Z
2022-01-13T00:42:32.000Z
testapp/another_urls.py
danigosa/django-simple-seo
17610e50148c6672cb34e96654df1d3515b0444f
[ "BSD-3-Clause" ]
8
2015-02-20T13:51:51.000Z
2021-06-24T19:11:30.000Z
from django.conf.urls import patterns, url from .views import template_test urlpatterns = patterns( '', url(r'^', template_test, name='template_test2'), )
18.333333
52
0.709091