blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6773d987b4e6d1240b1d25b96c6c347757f0c940 | 5af277b5819d74e61374d1d78c303ac93c831cf5 | /axial/worker_util.py | 41709759a5ceb21a7f25e4f616ed343461d35111 | [
"Apache-2.0"
] | permissive | Ayoob7/google-research | a2d215afb31513bd59bc989e09f54667fe45704e | 727ec399ad17b4dd1f71ce69a26fc3b0371d9fa7 | refs/heads/master | 2022-11-11T03:10:53.216693 | 2020-06-26T17:13:45 | 2020-06-26T17:13:45 | 275,205,856 | 2 | 0 | Apache-2.0 | 2020-06-26T16:58:19 | 2020-06-26T16:58:18 | null | UTF-8 | Python | false | false | 8,610 | py | # coding=utf-8
# Copyright 2020 The Google Research Authors.
#
# 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 applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
8e7b7c6eca022b1f627d5d3b0a877db2f1559681 | a94283c3b1b3da34233b75132cbdd93f8f22b34f | /MyGame.py | 63d32db0a1c9818d6017728bb5674f3c4d148e53 | [] | no_license | Andrey12GH/SchoolProject | e419060abf45ec37dc801767f46e6935b92388fa | a81ab4afbb32fd921cccf9901b65be2028d49fda | refs/heads/main | 2023-04-23T00:04:26.973174 | 2021-05-14T18:57:38 | 2021-05-14T18:57:38 | 367,451,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,756 | py | from tkinter import *
from tkinter import messagebox
import time
import random
tk = Tk()
# создаем всe
def u_attak():
global AI_lost, s_x, s_y, points, points2, user_ships, turn_player
while turn_player and user_ships <= 0:
mouse_x = canvas.winfo_pointerx() - canvas.winfo_rootx()
mouse_y = ca... | [
"noreply@github.com"
] | Andrey12GH.noreply@github.com |
0a6eda164c7b5f595b951ec6812496f800244175 | 8b2deda9f23fd1d70e2e7b6e69a0db21e11490c5 | /GraphMatching/imgutils/bwmorph_thin.py | f3a986f2279f869b2a10ead09ef2713c3556710b | [] | no_license | phanikmr/Graph-Matching-for-Image-Retrival | a60c145e857a0f153a2188cadde3807b5a7c8fde | 151a22e5a69769075bed57e917d0d3025f6db082 | refs/heads/master | 2021-07-23T23:41:07.674648 | 2017-07-01T16:18:19 | 2017-07-01T16:18:19 | 109,504,248 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,716 | py | import numpy as np
from scipy import ndimage as ndi
# lookup tables for bwmorph_thin
G123_LUT = np.array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1,
0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, ... | [
"ppk.phanikumar@gmail.com"
] | ppk.phanikumar@gmail.com |
acf80746855eaad75fcbdc580daa49d5bee0bf95 | 20176bf4fbd8aec139c7b5a27f2c2e155e173e6e | /data/all-pratic/oinam_singh/myprogram/filewordcnt2.py | 993801d7b654e4f8041739bbfb5d975e82b48048 | [] | no_license | githubjyotiranjan/pytraining | 4ac4a1f83cc4270e2939d9d32c705019c5bc61c5 | 8b50c4ab7848bd4cbfdfbc06489768d577289c66 | refs/heads/master | 2020-03-19T06:22:20.793296 | 2018-06-15T20:08:11 | 2018-06-15T20:08:11 | 136,013,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | import operator
from collections import OrderedDict
from collections import defaultdict
mydict = defaultdict(int)
with open('tmpread.txt') as file:
for line in file:
line = line.strip()
for w in line.split():
mydict[w] += 1
#sorted_x = sorted(dics.items(), key=operator.itemgetter(1))
pr... | [
"jsatapathy007@gmail.com"
] | jsatapathy007@gmail.com |
a0a772d71339b40f89c78d12bcbf09e8d427a633 | f57ad671e26023fc22a035375acbfefec3442104 | /DemoStr.py | 4a1b6dfc909728c9e484341174dc88309a950bd6 | [] | no_license | yurimkim1/python0802 | 62962c989e5622806d7b1c84f540d740f77fe32e | 6e84443a3aabec9db351bf4b68d2340b66ee5796 | refs/heads/master | 2023-07-08T17:24:16.674558 | 2021-08-09T01:59:44 | 2021-08-09T01:59:44 | 392,205,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,233 | py | # DemoStr.py
#str형식의 메서드
#print( dir(str) )
names = ["전우치","홍길동","이순신"]
for name in names:
print("안녕하세요 {0}님 더운 여름입니다.".format(name))
print("=" * 40)
#메서드 연습
strA = "python is powerful"
print( len(strA) )
print( strA.capitalize() )
print( strA.count("p"))
print( strA.count("p", 7))
print( "demo.ppt".endswith... | [
"yfla980107@gmail.com"
] | yfla980107@gmail.com |
b9f55074dd8200515703d8c50308192339859bbe | 72b5d40314e14d641940462cc22f567a6b8b33f0 | /network/zmq/req-rep/proxy_server.py | 8bc67cb5bfc22247cb5999d35905f1d6742acf75 | [] | no_license | ianzhang1988/PythonScripts | 968d7c4e10d8ced43ab93113374059ec743f6fda | 9a5ca9cbade4f9648d872784edadcd152f054683 | refs/heads/master | 2022-08-19T09:44:24.277144 | 2022-07-27T10:03:10 | 2022-07-27T10:03:10 | 96,340,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,858 | py | # coding=utf-8
import zmq
import threading
import time
class ProxyServer():
def __init__(self):
self.context = zmq.Context()
self.context2 = zmq.Context()
self.working = False
def start(self):
self.working = True
frontend = self.context.socket(zmq.ROUTER)
backe... | [
"yangzhang214024@sohu-inc.com"
] | yangzhang214024@sohu-inc.com |
9d7f7f89abd72b463ee8e9034aa0738ec44b73c4 | 050868416d2743b05bf8b02b9f8efdb5e0368dbf | /Lesson7_2/main.py | 5f0c65abca1216798c7f7f3abe22a31314d38c9d | [] | no_license | mkhabiev/Homework-all | dd1d16577daec7ac0130ebb1ab8ab1960d4a07d3 | faa368b0648eb0969bf6824c2788b2c38841aa86 | refs/heads/master | 2022-12-27T14:43:56.745960 | 2020-10-18T13:24:34 | 2020-10-18T13:24:34 | 297,333,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | import wikipedia
def main():
language = input('Choose a language for Wiki: (en, ru, fr) ')
wiki = wikipedia
wiki.set_lang(language)
while True:
query = input('What do you want to search? ')
results = wiki.search(query)
for key, result in enumerate(results):
print(ke... | [
"m_khabiev@mail.ru"
] | m_khabiev@mail.ru |
74f3ef6c3e844f6f8fa1234a783e57b16eddff82 | 8b57c6609e4bf3e6f5e730b7a4a996ad6b7023f0 | /persistconn/packet.py | 79a3d92edb26b212d7c04844f89ece59d3e93669 | [] | no_license | bullll/splunk | 862d9595ad28adf0e12afa92a18e2c96308b19fe | 7cf8a158bc8e1cecef374dad9165d44ccb00c6e0 | refs/heads/master | 2022-04-20T11:48:50.573979 | 2020-04-23T18:12:58 | 2020-04-23T18:12:58 | 258,293,313 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,103 | py | from builtins import range
from builtins import object
import sys, os
import json
import splunk.util
class PersistentServerConnectionProtocolException(Exception):
"""
Exception thrown when a recieved packet can't be interpreted
"""
pass
class PersistentServerConnectionRequestPacket(object):
"""
... | [
"splunk@x.y"
] | splunk@x.y |
f729f18c246e778316b422232434075c31dd032f | d5f03681070efcf7be19f7b63c135479950948f3 | /scss/errors.py | 65f5350c394ea93656b0b27bfb8316ffb4b2fff6 | [
"MIT"
] | permissive | doug-fish/pyScss | 6f642634234960dbe03a6cca1db97135082c567b | f63a6964df84c193478a7cce14013a5f53f6aee7 | refs/heads/master | 2020-12-11T05:38:41.234931 | 2014-09-10T05:02:35 | 2014-09-10T05:02:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,537 | py | from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals
import six
import sys
import traceback
BROWSER_ERROR_TEMPLATE = """\
body:before {{
content: {0};
display: block;
position: fixed;
top: 0;
left: 0;
right: 0;
font-size: ... | [
"eevee.git@veekun.com"
] | eevee.git@veekun.com |
96b0ee7b3617734f1c7ec293da6d25865eaf503c | 1a799809cb404522db2e1ae7c834beb8ddb5e526 | /BUAN/Session3/class_2.py | 7df6c379752488c16b54461b67f83f17bb048910 | [] | no_license | yingjiaxuan/JBWorkspace | 2305534c913d567190005c6ae3c330689adabebc | 9cb89eba8ecef1d68ef3879dc53656098afdcf4d | refs/heads/master | 2023-01-11T08:10:11.568088 | 2020-11-12T08:01:44 | 2020-11-12T08:01:44 | 312,206,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,425 | py | import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LogisticRegression, LogisticRegressionCV
import numpy as np
from sklearn import metrics
def summary_corf(model_object): # 利用alpha去进行迭代
n_predictors = X.shape[1]
model_coef = pd.DataFrame(model_object.coe... | [
"yingjiaxuan123@gmail.com"
] | yingjiaxuan123@gmail.com |
0eb9c09746daca075136fa1e972e62280a810725 | ff0d004c47ac853566af4a0389b20eec58ddcf80 | /facedancer/backends/GoodFETMaxUSBApp.py | 3da8ca9727943733ae0343b508882a20fd43db59 | [] | no_license | wanming2008/Facedancer | ad39576051df5591fdc75cbd68921054f594b4e5 | 055c316267d5e298d56f868d567f673b3b4b9743 | refs/heads/master | 2021-01-19T11:25:36.488917 | 2017-02-09T08:32:04 | 2017-02-09T08:32:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,912 | py |
import os
import serial
import time
from ..core import FacedancerApp
from ..backends.MAXUSBApp import MAXUSBApp
from ..USB import *
from ..USBDevice import USBDeviceRequest
# TODO: Move all functionality that doesn't explicitly depend on GoodFET
# into MaxUSBApp.
def bytes_as_hex(b, delim=" "):
return delim.join... | [
"temkink@ainfosec.com"
] | temkink@ainfosec.com |
8189a0c96fcbf810e1ffb176471c230243b7b08c | 014199954994aa5dbfc2cc0e736b5c7bade5aebd | /P5-Identify Fraud from Enron Dataset/poi_id_tester.py | d330f26cfd2608eee90bb80ead42a091ae4ab5ec | [] | no_license | ddaskan/Data-Analyst-Nanodegree | bfcff01d45029e37476d9c84d4ec29883efdcb8a | 7f6fe8cecb6c6f2fd2cdcb5c141a0d68c58ea732 | refs/heads/master | 2021-01-17T14:02:34.019649 | 2017-11-22T00:47:12 | 2017-11-22T00:47:12 | 62,079,806 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 14,171 | py | #!/usr/bin/python
criterion_l = ['gini','entropy'] #2
max_depth_l = [None, 2,5,10,20,50,100] #7
min_samples_split_l = [1,2,3,4,5] #5
min_samples_leaf_l = [1,2,3,4,5] #5
criterion_a = []
max_depth_a = []
min_samples_split_a = []
min_samples_leaf_a =[]
recall_a =[]
precision_a=[]
f1_a=[]
import csv
f = open('outputs.c... | [
"riffinmerchant@gmail.com"
] | riffinmerchant@gmail.com |
23c7f7e88507efcf6850a3cbbcb67fda762ac0af | 907f0ae2a3117fcc5fdfb99838f86063d665b231 | /311_Service_Request_Analysis/src/model_training/TrainEvaluateAndSaveModelToDisk.py | 550da8b98db3a99508e59558520a78789c42daed | [] | no_license | ManikHossain08/BigdataAnalytics-1 | 5f9d49438683f1918dc9d60f73251c09083401c1 | cb5340ce98ee2a3f8eed0ffbbbbb5bb14a60a2cf | refs/heads/master | 2022-04-25T09:51:08.126721 | 2020-04-19T21:48:46 | 2020-04-19T21:48:46 | 277,288,909 | 1 | 0 | null | 2020-07-05T11:36:14 | 2020-07-05T11:36:13 | null | UTF-8 | Python | false | false | 10,176 | py | # Python source script for Training, Evaluating and Saving the Model to disk.
import os
from pyspark.ml.evaluation import RegressionEvaluator
from pyspark.ml.feature import VectorAssembler
from pyspark.ml.regression import GBTRegressor
from pyspark.ml.regression import LinearRegression
from pyspark.ml.regression impor... | [
"apoorv.semwal20@gmail.com"
] | apoorv.semwal20@gmail.com |
55aa9b8bc82e37c05b6799ae8227f00cbc43dbd1 | 5608c2f74f8f929a461100c54aa02184c3c0a6f2 | /daemon/v2.0/ref/md01.py | 97b2022ff84f64907275b7deeaeebbf0df09b6a8 | [
"MIT"
] | permissive | vt-gs/tracking | c35c84cbb12d831a528f8cc5fd395fa05a3abf8c | 4588b840e69c1042d8e3560da44012101389e271 | refs/heads/master | 2021-01-02T22:42:27.694620 | 2019-06-23T16:52:40 | 2019-06-23T16:52:40 | 99,374,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,433 | py | #!/usr/bin/env python
#########################################
# Title: MD01 Controller Class #
# Project: VTGS Tracking Daemon #
# Version: 2.0 #
# Date: May 27, 2016 #
# Author: Zach Leffke, KJ4QLP #
# Comment: Expanded version of the MD-01#
# ... | [
"zleffke@vt.edu"
] | zleffke@vt.edu |
19a3b65be08b376dc24bc7b118d95c2e558b66bc | 2f87f95bbaa7d50dd55b19af9db586f28d22642b | /backendProject/wsgi.py | 1cb07a7cf4b525748964dab01e04b29457d12ee5 | [] | no_license | willyborja95/ApiPaginaWeb | 0bf136961c320a5edca4f857d95bac1d316db09b | dda607cda39fe3d4aaceb40d63bc20b91ebb6efd | refs/heads/master | 2022-12-11T05:32:12.160881 | 2022-12-08T15:04:09 | 2022-12-08T15:04:09 | 215,600,253 | 2 | 0 | null | 2022-12-08T15:10:16 | 2019-10-16T16:59:35 | Python | UTF-8 | Python | false | false | 405 | py | """
WSGI config for backendProject project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANG... | [
"ubuntu@ip-172-31-46-4.us-east-2.compute.internal"
] | ubuntu@ip-172-31-46-4.us-east-2.compute.internal |
28723cb937b34795b48c1c71972d6c845fb27609 | 509c2b7376c31464bb8ee8e95825aab7b93de2a9 | /predict.py | b69030b470b9e2cad35243732fc667c720682340 | [
"MIT"
] | permissive | leeheewon-cocen/Infra_Meditact_Meditact | b7f3f10f5afd32570ed10343ab42b72c2d650ea2 | de61d1f41b4898b737f9628cbff1ac2791456de6 | refs/heads/master | 2023-05-15T05:40:02.850246 | 2021-05-31T14:29:19 | 2021-05-31T14:29:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 867 | py | from flask import Flask, request, jsonify
from flask.json import JSONEncoder
from flask_cors import CORS, cross_origin
import keras
import api
app = Flask(__name__)
app.config['JSON_AS_ASCII'] = False
CORS(app)
#@app.route("/", methods =['POST'])
@app.route("/", methods =['GET'])
def model():
#--------------------... | [
"jonghyeon_rw@meditact-nlp-api.us-central1-a.c.meditact-nlp-808.internal"
] | jonghyeon_rw@meditact-nlp-api.us-central1-a.c.meditact-nlp-808.internal |
7fb56335a0cf7e623ae6eb4f38657b038e0dd0ad | 1bd9ac8457a46e2203ba735383a4f86da37193cb | /backbone/backbone.py | baa11e843e28fee0bbd229a83ca33bb56b490889 | [
"MIT"
] | permissive | liuch37/tanet-pytorch | 79d102a820d9d690dfd871fda5df15b8c636c5c8 | 2514b3d2fd28f821167367689595ef2d69fe8726 | refs/heads/master | 2022-12-21T04:52:59.836498 | 2020-09-28T05:41:09 | 2020-09-28T05:41:09 | 294,836,870 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,067 | py | '''
This code is to construct backbone network for 13 layers of customized ResNet.
'''
import torch
import torch.nn as nn
__all__ = ['basicblock','backbone']
class basicblock(nn.Module):
def __init__(self, depth_in, output_dim, kernel_size, stride):
super(basicblock, self).__init__()
self.iden... | [
"chun-hao.liu@ericsson.com"
] | chun-hao.liu@ericsson.com |
828624b6a0bd565af050bba8f33e9056adbcecb7 | 7ac271f357f4c8f0c23c697b11966259f836880f | /app/web/api/dvdrental/actors/views.py | c01616606759e970c7df14c53e3b08550a941cdf | [] | no_license | cheng93/PythonWeb | 74a58eadee4ee7d2872a582a907bbf47630df371 | d5ced8dee1d5ba31778125c5e67169c92acf26a0 | refs/heads/develop | 2021-01-19T23:59:11.315871 | 2018-03-04T19:26:18 | 2018-03-04T19:26:18 | 89,063,916 | 0 | 0 | null | 2018-03-04T19:26:19 | 2017-04-22T11:09:14 | Python | UTF-8 | Python | false | false | 865 | py | from pyramid.view import view_defaults, view_config
@view_defaults(renderer='json', request_method='GET')
class ActorsView:
def __init__(self, request):
self.request = request
@view_config(route_name='get_actors')
def get_actors(self):
actors = self.request.actor_command.get_actors()
... | [
"derek.c@hotmail.co.uk"
] | derek.c@hotmail.co.uk |
14a1b5e38215dfa16c907a767374fa41b3ce0b93 | cd24bac9380e4ed0fd7782b5386f4e9e5b0910ad | /components/google-cloud/tests/experimental/remote/gcp_launcher/test_launcher.py | ea996b8a502b66db0eb608bb407aeee05f370fc3 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"BSD-2-Clause"
] | permissive | Ravenp87/pipelines | 4a026834d152f032fb406bbaf3b2caaa88ee894c | 4195963c4c7418d65c30d367311baa998e2fd470 | refs/heads/master | 2023-08-03T09:49:57.088233 | 2021-09-18T04:31:58 | 2021-09-18T04:31:58 | 405,197,026 | 0 | 0 | NOASSERTION | 2021-09-16T03:21:37 | 2021-09-10T19:51:29 | Python | UTF-8 | Python | false | false | 2,412 | py | # Copyright 2021 The Kubeflow 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 applicabl... | [
"noreply@github.com"
] | Ravenp87.noreply@github.com |
8e2dc094d1635731d8f8c38eeebbb6adfe82ad2c | fea5dbaf406b5a93f0854befe080d886d59c13c0 | /restaurant/views.py | 2fedb02164af3df745c16b5244a88321014e75e5 | [] | no_license | Little-Pr1nce/The_project_of_summercamp | 634a2faf0fcce2f420fca10b958b513af51a61c5 | a81996deafaff415cc329f277eb215d76b3c9704 | refs/heads/master | 2020-03-24T06:51:07.402947 | 2018-07-27T07:34:30 | 2018-07-27T07:34:30 | 142,544,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,319 | py | from django.shortcuts import render, reverse
from django.urls import reverse_lazy
from django.http import HttpResponseRedirect
# Create your views here.
from .models import Dish, Bill, ServerComment
def index(request):
"""显示餐馆的主页"""
if request.method != 'POST': # 如果顾客只是查看这个主页
# 选出种类是food的菜品
... | [
"503033454@qq.com"
] | 503033454@qq.com |
dc07e10ef638298141ad655475063b1d466b7bd6 | adbf09a31415e6cf692ff349bd908ea25ded42a8 | /challenges/custm_error.py | 6588a2c0db988b4e09b75f6b79a1402a21026bb8 | [] | no_license | cmulliss/gui_python | 53a569f301cc82b58880c3c0b2b415fad1ecc3f8 | 6c83d8c2e834464b99024ffd8cf46ac4e734e7a4 | refs/heads/main | 2023-08-12T22:33:01.596005 | 2021-10-11T12:35:41 | 2021-10-11T12:35:41 | 408,176,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 945 | py | class TooManyPagesReadError(ValueError):
pass
class Book:
def __init__(self, name: str, page_count: int):
self.name = name
self.page_count = page_count
self.pages_read = 0
def __repr__(self):
return (
f"<Book {self.name}, read {self.pages_read} pages out of {se... | [
"cmulliss@gmail.com"
] | cmulliss@gmail.com |
0231d5a6b9754525fcc80fa184b2442b8c4d82d2 | b449980703b2234e5610d20d22d54cb811722b68 | /netdisco/discoverables/nanoleaf_aurora.py | 135d785a425446491b59ae18c63cdcf06bf42dd8 | [
"Apache-2.0"
] | permissive | bdraco/netdisco | 81209c0ad21b2ca124b91fa67799034c337d62a8 | cf547a8bac673f5aa92cde98824929fc9a31f05b | refs/heads/master | 2023-06-17T09:40:18.001345 | 2020-06-17T21:23:05 | 2020-06-17T21:23:05 | 275,917,535 | 0 | 0 | NOASSERTION | 2020-06-29T20:20:12 | 2020-06-29T20:20:12 | null | UTF-8 | Python | false | false | 278 | py | """Discover Nanoleaf Aurora devices."""
from . import MDNSDiscoverable
class Discoverable(MDNSDiscoverable):
"""Add support for discovering Nanoleaf Aurora devices."""
def __init__(self, nd):
super(Discoverable, self).__init__(nd, '_nanoleafapi._tcp.local.')
| [
"paulus@paulusschoutsen.nl"
] | paulus@paulusschoutsen.nl |
25164cbffde1974a5c531b3dfc519310cb45c313 | 334d0a4652c44d0c313e11b6dcf8fb89829c6dbe | /checkov/terraform/checks/resource/kubernetes/ImageDigest.py | 92de4c65bc61d761b0e9ee2ee9f999bd465db7c8 | [
"Apache-2.0"
] | permissive | schosterbarak/checkov | 4131e03b88ae91d82b2fa211f17e370a6f881157 | ea6d697de4de2083c8f6a7aa9ceceffd6b621b58 | refs/heads/master | 2022-05-22T18:12:40.994315 | 2022-04-28T07:44:05 | 2022-04-28T07:59:17 | 233,451,426 | 0 | 0 | Apache-2.0 | 2020-03-23T12:12:23 | 2020-01-12T20:07:15 | Python | UTF-8 | Python | false | false | 1,563 | py |
from checkov.common.models.enums import CheckCategories, CheckResult
from checkov.terraform.checks.resource.base_resource_check import BaseResourceCheck
class ImageDigest(BaseResourceCheck):
def __init__(self):
"""
The image specification should use a digest instead of a tag to make sure the co... | [
"noreply@github.com"
] | schosterbarak.noreply@github.com |
860f042f856a8c132e5a1047a93a5f3de2798a0a | 371725092b1f8778fb530a07c3a5c91140435380 | /godfather/roles/town/vigilante.py | b65f23a6370f2308c1c2ad1f864f207066a4540e | [
"MIT"
] | permissive | melodicht/tvm-bot | e616b2f4674fdb64a216085447371e15bfe74878 | a9c0ece0ae04c4c52c96ddd36012bee96474d524 | refs/heads/master | 2022-11-17T02:05:08.708718 | 2020-07-11T04:51:37 | 2020-07-11T04:51:37 | 275,153,408 | 0 | 0 | null | 2020-06-26T12:42:09 | 2020-06-26T12:42:09 | null | UTF-8 | Python | false | false | 1,457 | py | from godfather.roles.mixins import SingleAction, Shooter
DESCRIPTION = 'You may shoot someone every night. If you shoot a townie, you will die of guilt the next night.'
class Vigilante(SingleAction, Shooter):
def __init__(self):
super().__init__(name='Vigilante', role_id='vig', description=DESCRIPTION)
... | [
"soumil.paranjpay@gmail.com"
] | soumil.paranjpay@gmail.com |
4485c5cf11f59565b40a8d538af812f0554de596 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03089/s906755257.py | 498b64bddcd6ad6dac9dc95de7a88f6376c3de4f | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | N = int(input())
B = list(map(int, input().split()))
ans = []
for i in range(N):
last = 0
for j, b in enumerate(B, 1):
if b == j:
last = b
if last == 0:
print(-1)
exit()
else:
ans.append(B.pop(last - 1))
[print(a) for a in ans[::-1]] | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
bfbc466ace7b86629605e60e2a490ecfd6f6aa04 | d5a2a52ef41fa337efe98963a87a5e032729d28e | /lab02/lab02_extra.py | ab77c985bbadef83853bb7302c536f8f779249bd | [] | no_license | hadonlml/cs61a | dbfb871fcfe080e358a9ffdaedcd0d260a8c0554 | 03ccf9ba09b619d18fd515e123fc9062f90c1c46 | refs/heads/main | 2023-06-25T07:27:23.186597 | 2021-07-23T13:46:20 | 2021-07-23T13:46:20 | 385,963,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,355 | py | """ Optional problems for lab02 """
from lab02 import *
# Higher Order Functions
def compose1(f, g):
"""Return the composition function which given x, computes f(g(x)).
>>> add_one = lambda x: x + 1 # adds one to x
>>> square = lambda x: x**2
>>> a1 = compose1(square, add_one) # (x + 1)^2
... | [
"hadonlml@gmail.com"
] | hadonlml@gmail.com |
067cd5718df564dae5abae24c119820c0c3d3c99 | a14e6f45574ce5f2b887373f2528f90d5e0bc3bc | /KeepPCAwake.py | c28ecbda5b03241918167213a9928aaaa042d04b | [] | no_license | vpineda7/KeepPCAwake | 738908d1d945610531c572eb6d57c55200522e36 | 5988e0dc3e696074672d6dda0106d22b34e20f78 | refs/heads/master | 2021-10-09T01:29:09.342828 | 2018-12-19T21:19:42 | 2018-12-19T21:19:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 584 | py | import ctypes
ES_CONTINUOUS = 0x80000000
ES_SYSTEM_REQUIRED = 0x00000001
# CONTINUOUS repeats the action until the application closes,
# SYSTEM_REQUIRED 'forces the system to be in the working state by resetting the system idle timer.'
ctypes.windll.kernel32.SetThreadExecutionState(ES_CONTINUOUS | ES_... | [
"noreply@github.com"
] | vpineda7.noreply@github.com |
6d5164b4d436b1e2a6ea87ec954b7e4dcc4046d8 | ec31ad285b607a7b67146f45468b90731da38db8 | /b2llvm/loadbxml.py | 89cd2dc19777c828e9de5824d7189947baed5b6e | [] | no_license | DavidDeharbe/b2llvm | b4792f47bac500254d2317ad20566c562b413f40 | 219d7a4a66eaeb15749c72207b5a1eb62fff91e1 | refs/heads/master | 2021-01-23T22:05:41.559226 | 2014-12-19T15:02:44 | 2014-12-19T15:02:44 | 22,607,644 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 34,187 | py | """Module providing functions to load a BXML file into a Python AST.
This module is responsible for providing functions to load a BXML file and
build the corresponding Python abstract syntax tree, using the format and
the constructors found in file "ast.py".
We use the xml.etree.ElementTree library
See http://docs.py... | [
"deharbe@gmail.com"
] | deharbe@gmail.com |
7be0c435a379c5c33da5d27ab6f935ee52e8b024 | d2f9e0128b03f792853d22f644b7357af2a0e945 | /sia_sports_agency/apps.py | 24b327a401ff222af1526730e0e6fcb3646a841a | [] | no_license | joan24t/sia_project | 6f97803a51305c55ae85115e1d333fc4c9813ce8 | 91e4101dd1c8de56a274f7bec59829d844808b10 | refs/heads/master | 2020-05-18T07:46:04.094445 | 2019-11-04T19:58:58 | 2019-11-04T19:58:58 | 184,271,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | from django.apps import AppConfig
class SiaSportsAgencyConfig(AppConfig):
name = 'sia_sports_agency'
| [
"joan_24t@hotmail.com"
] | joan_24t@hotmail.com |
a92bc6a34df382c72d23a550bf362ce8794d9cf6 | 6cca4444b63c898818fada529b8a4a181ebe7198 | /script/main.py | e30e8e33d3097a74f6d30192adfc84dfcbd8ef79 | [] | no_license | rohisama/rakuten-bank-happy | 024f78a6d500d5e8e0a1bd3aa497ab4c4ce5f19c | f9119297833e7a423f45c69acf70d546b94ba19a | refs/heads/master | 2020-06-26T01:39:56.710879 | 2020-03-14T04:55:15 | 2020-03-14T04:55:15 | 199,485,551 | 3 | 0 | null | 2019-10-29T16:39:10 | 2019-07-29T16:05:07 | Python | UTF-8 | Python | false | false | 1,330 | py | import time
import os
from rakuten_keiba import RakutenKeiba
from chariloto import Chariloto
from autorace import Autorace
from oddspark import Oddspark
from boatrace import Boatrace
from spat4 import Spat4
from e_shinbun_bet import EShinbunBet
from keirin import Keirin
from slackbot.slackclient import SlackClient
from... | [
"rohisama@ma-hiro.com"
] | rohisama@ma-hiro.com |
4c7a849bb7ed45e535002870303a3bd4c61415d1 | 608c48007ad5cf4360b84aee880fc6c7f968696a | /app/core/tests/test_commands.py | 0ad5428f6d8f04e18f06f83a17ff90d8f3cdc41d | [
"MIT"
] | permissive | SirEric-A/recipe-app-api | df833284f184877695966f3537a27fb554bf7a18 | 05a767fcb87f2ca47918698930d10f6e21654576 | refs/heads/master | 2022-11-16T09:42:10.738980 | 2020-07-03T10:13:24 | 2020-07-03T10:13:24 | 273,184,360 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 841 | py | from unittest.mock import patch
from django.core.management import call_command
from django.db.utils import OperationalError
from django.test import TestCase
class CommandTests(TestCase):
def test_wait_for_db_ready(self):
'''test waiting for db when db is available'''
with patch('django... | [
"snow__wons@163.com"
] | snow__wons@163.com |
c56feff8a433e6ca0092641069c89e5f0034c870 | 23d77a735514f9d30c2ecb74a5fc4f26b15cddf9 | /masterdata/mooncell/integrator/quest.py | f9d0775b82a809c66b6c65cf6e437c95418986d2 | [
"MIT"
] | permissive | karanokk/masterdata | 3d8bb4f8edf23173b6488f25d4dce70193dd4ec9 | 656318c8f8032a520bdb248c1b1ccd2efde77080 | refs/heads/master | 2021-05-21T08:00:03.812954 | 2020-08-05T13:54:00 | 2020-08-05T13:54:00 | 269,125,838 | 1 | 0 | MIT | 2021-03-31T20:09:56 | 2020-06-03T15:31:08 | Python | UTF-8 | Python | false | false | 372 | py | from ...utils import Mst
from .common import Integrator
class QuestIG(Integrator):
def setup(self):
self.rename_column(Mst.Quest, name='jpName')
self.add_column(Mst.Quest, cnName='TEXT')
self.rename_column(Mst.Spot, name='jpName')
self.add_column(Mst.Spot, cnName='TEXT')
def ... | [
"karanokk@icloud.com"
] | karanokk@icloud.com |
5d4f9a757da5aace17caaf6690141f6c1a475c09 | 0e6fbdea5ad0608c350fa7a56b7b93f7964c9618 | /djangobower/apps.py | c0df87aac328e93125251edfc8762126ab388e6e | [] | no_license | guanqinchao/OurForum | dcc5e3504e83d2ca040a63558077f5cf562b73bc | cb4e9a958a763032c7e6237561112ecedeb165cd | refs/heads/master | 2020-03-13T18:52:28.924707 | 2018-05-18T20:24:34 | 2018-05-18T20:24:34 | 131,244,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | from __future__ import unicode_literals
from django.apps import AppConfig
class DjangobowerConfig(AppConfig):
name = 'djangobower'
| [
"1424185332@qq.com"
] | 1424185332@qq.com |
a7fe81d1961e7b27775d1fc2bcfdc15d9952d305 | 23f55d3240dd3a0599f85d3b4feda3ba3cfa1a22 | /apply_ocr/google_vision.py | 09ddb408192a4efdee6b481084cf4e32be08ee78 | [] | no_license | jocosuccess/extract_info_paper | 575a53445b7c1dca110f6b574d9c220ce7c53517 | 7ec04616c8f8527aec32ff2bb43247ffb6b58d97 | refs/heads/master | 2022-12-16T06:42:08.311067 | 2020-03-02T21:47:20 | 2020-03-02T21:47:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,592 | py | import json
import os
import base64
import requests
from datetime import datetime
class ExtractGoogleOCR:
def __init__(self, path):
"""
Constructor for the class
"""
self.my_dir = path
self.google_key = self.load_text(os.path.join(self.my_dir, 'source', 'vision_key.tx... | [
"artemvasiltsov01@gmail.com"
] | artemvasiltsov01@gmail.com |
f9ed940a47fbdbac4844f4fe5e0289a9e96b9a9d | 7012c3609f4aa5712f17bfee199d856d36a968d2 | /Python프로그래밍및실습/ch2-data type, if statement/lab2-1.py | eba2e37ec30a334cd15096c6e63ae65ba045c421 | [] | no_license | rrabit42/Python-Programming | 1688c2b21ab19f09d2491152ae2dd0ddb1910288 | 551efb6fe4ee3b92c5cb2ef61d2198d55966471a | refs/heads/master | 2021-07-23T01:27:42.657069 | 2020-07-28T17:23:40 | 2020-07-28T17:23:40 | 200,571,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | # 문자로 저장된 숫자들의 합 구하기
x = input("숫자1 : ")
y = input("숫자2 : ")
z = input("숫자3 : ")
sum1 = int(x) + int(y) + int(z)
print(sum1)
| [
"gegiraffe@gmail.com"
] | gegiraffe@gmail.com |
0d5c2ddab78382117074275d658f62de9aa30721 | aa5a44a1ae05222a641ef075584987de08d9cff1 | /xblocks/xblock_reference/setup.py | e7dff59c73ab2e0cae18b641e9cf403174a0c304 | [] | no_license | simranjits-cuelogic/edx-assignment | 504a67bd3c721fe5d34a3d6b6a6658828b5d5986 | cf5c1dd4803ef02492fa99bb61199d15122d3b87 | refs/heads/master | 2021-01-12T05:33:10.291506 | 2016-12-22T09:15:25 | 2016-12-22T09:15:25 | 77,125,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,054 | py | """Setup for xblock_reference XBlock."""
import os
from setuptools import setup
def package_data(pkg, roots):
"""Generic function to find package_data.
All of the files under each of the `roots` will be declared as package
data for package `pkg`.
"""
data = []
for root in roots:
for... | [
"simranjit.singh@cuelogic.com"
] | simranjit.singh@cuelogic.com |
df774daf61ba15eb90766bfcf097cd921934fd35 | bdcf56bc8fdf4255b34038bf0280f21917f185a7 | /005_landmarks_retrieval/test_data_generator.py | e8957bda42baa14c938c1e8339c6d7db082c7560 | [] | no_license | Apollo1840/United_Kagglers | 8dc05287f893a33f774efeaf0cd2ad436122dc69 | 80147867a6011da5a36e78473781481c805619ea | refs/heads/master | 2020-04-10T18:51:29.223449 | 2019-04-13T08:32:25 | 2019-04-13T08:32:25 | 161,214,800 | 1 | 0 | null | 2019-04-06T09:16:40 | 2018-12-10T17:53:31 | Python | UTF-8 | Python | false | false | 474 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Apr 6 08:30:38 2019
@author: zouco
"""
from data_generator import triplet_generation
from data_generator import DataGenerator
tg = triplet_generation()
ID = "00cfd9bbf55a241e"
img3 = tg.get_one_input_tensor(ID)
print(len(img3))
print(img3[0].shape)
from tools.plot_image... | [
"zoucongyu1993@hotmail.com"
] | zoucongyu1993@hotmail.com |
0b8635d05f232b3683ce31ae12276f9c46ef05a3 | 35b58dedc97622b1973456d907ede6ab86c0d966 | /day022/day22.py | 8f8b5cb73e108c01ced7d4dee535666b5e32f737 | [] | no_license | GithubLucasSong/PythonProject | 7bb2bcc8af2de725b2ed9cc5bfedfd64a9a56635 | e3602b4cb8af9391c6dbeaebb845829ffb7ab15f | refs/heads/master | 2022-11-23T05:32:44.622532 | 2020-07-24T08:27:12 | 2020-07-24T08:27:12 | 282,165,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,186 | py | # from socket import *
# s = socket(AF_INET,SOCK_DGRAM) #创建套接字
# addr = ('192.168.14.25',8080) #准备接收方地址
# data = input('请输入:')
# s.sendto(data.encode(),addr)
# #发送数据时,python3需要将字符串装换成byte
# #encode('utf-8') 用utf-8对数据进行编码,获得bytes类型对象
# #decode()反过来
# s.close()
# from socket import *
# import time
#
# s = socket(AF_INE... | [
"1433880147@qq.com"
] | 1433880147@qq.com |
1eb767cf72d777c0f346fc7cee95917651a364a3 | b736c527824198e1b07c821b685ca679cede79dd | /classes/FileSystemTools.py | 6485992423ec7a372ece0d2d6edc96202280c550 | [] | no_license | LaoKpa/neat-3 | c276b58ce2dd77ea32b701820adc29b99f508ec7 | b2b89023db5822d498b3edc84f8b84880dc6e6b6 | refs/heads/master | 2022-03-19T08:57:40.857925 | 2019-11-16T05:29:17 | 2019-11-16T05:29:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,461 | py | from datetime import datetime
from os import mkdir
import os
from copy import copy,deepcopy
import time
import glob
import subprocess
def getDateString():
return(datetime.now().strftime('%d-%m-%Y_%H-%M-%S'))
def makeDir(dir_name):
# Even if this is in a library dir, it should make the dir
# in the script that cal... | [
"declanoller@gmail.com"
] | declanoller@gmail.com |
e8f82c2072683f5cfb607dc93e8ebb33894ebd10 | b741ac3d28bb4f8d3b368cb6d134eab635273152 | /guidepocapp/views.py | d77bb6db407f0849ef2a99efcd4194903111440a | [] | no_license | tjlee/poc_guide | 8f188b5ab5a13c3a32ccd1811da8b7d5ceedb488 | 88216b9fa6ae0ebb0bd6ed19ca2393c27f99600c | refs/heads/master | 2021-01-22T03:54:33.523925 | 2013-12-26T12:43:33 | 2013-12-26T12:43:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,003 | py | from django.http import HttpResponse
from django.template import RequestContext, loader
from django.shortcuts import render, get_object_or_404
from django.http import HttpResponseRedirect
from django.core.urlresolvers import reverse
from guidepocapp.models import Region, Place, Guide, GuideToPlace
from guidepocapp.for... | [
"tjlee@inbox.ru"
] | tjlee@inbox.ru |
0895c3c506eb9016c11feb353775a2cd9aed3f62 | f4b3be2a3955c26b4e05ab162fa4909cf9a14f11 | /CRB/validators/subsystems/csvwriters/pivalidatecsv.py | 50f60246ca50193cebf7afc4e52a74e9b776ef81 | [] | no_license | njovujsh/crbdjango | fd1f61403c1fbdac01b1bda5145faeb4b9ef9608 | fdf5cc6ca5920a596c5463187d29202719664144 | refs/heads/master | 2022-12-04T18:13:07.709963 | 2018-05-14T09:07:47 | 2018-05-14T09:07:47 | 133,333,767 | 0 | 0 | null | 2022-11-22T01:44:28 | 2018-05-14T09:04:17 | JavaScript | UTF-8 | Python | false | false | 21,868 | py | from validators.subsystems.csvwriters import processcsvs
from django.utils.encoding import smart_str
from validators.subsystems.datasets import validationstatus
from django.http import HttpResponse
from validators.subsystems.datasets import pcivalidate
from validators.subsystems.datasets import scivalidate
class C... | [
"njovujsh@gmail.com"
] | njovujsh@gmail.com |
88f8f1f5b4e51beff0132b971b5f12b1f941cc37 | 4f60139c8012bde0bdd4997d18c4091c8cb117ae | /record_audio_rpi.py | c14add3084ee57e027106effa9e6937bd3adfbdc | [
"MIT"
] | permissive | duboviy/misc | fdb93b2dd06152504142d723341373b0ca1d1055 | 4cd8cbcf12fc29dd2f12699fbd2f3dd738b5e4b5 | refs/heads/master | 2021-01-13T15:35:11.398310 | 2020-10-08T06:30:52 | 2020-10-08T06:30:52 | 76,888,520 | 10 | 6 | null | 2017-04-15T18:36:04 | 2016-12-19T18:52:41 | Python | UTF-8 | Python | false | false | 1,313 | py | """
Script used for recording audio
on the Raspberry Pi with Python
and a USB Microphone.
"""
import pyaudio
import wave
form_1 = pyaudio.paInt16 # 16-bit resolution
chans = 1 # 1 channel
samp_rate = 44100 # 44.1kHz sampling rate
chunk = 4096 # 2^12 samples for buffer
record_secs = 30 # seconds to record
dev_index... | [
"noreply@github.com"
] | duboviy.noreply@github.com |
375a018c63de5a9df57f07c26829657f66bcfbeb | c369443df5ff98eccc0eee7f63bb8947f2943605 | /shop/migrations/0002_product_photo.py | 6f674858a235d0794a6b5cc89516d04cb88266a3 | [] | no_license | erllan/shop-test | d2934f484b25d141a60caa5aca31a61eec48f055 | 1f77de177192ce6a1f8c5ccf1d7ca93ec026acf5 | refs/heads/master | 2023-03-06T01:04:38.785383 | 2021-02-27T18:02:07 | 2021-02-27T18:02:07 | 341,929,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | # Generated by Django 3.1.7 on 2021-02-26 11:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shop', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='product',
name='photo',
field=... | [
"erlan.kubanychbekov.000@gmail.com"
] | erlan.kubanychbekov.000@gmail.com |
22a186c790c53f60967d236882877184068afc26 | e199c0648ee56c84d421bb47b2b5c163a1bd4cf1 | /prep/prep_wiktionary.py | 70fb588952e6e9f0cbea315305346013b12561da | [
"MIT"
] | permissive | inoue0406/VocabularyPF | 72a3abea4b920c7959997198ef02374e5d16782a | 077300f82ef358ceb77e80f79ecb66f8124efbf6 | refs/heads/main | 2023-06-23T00:56:46.477992 | 2021-07-23T15:38:05 | 2021-07-23T15:38:05 | 365,765,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,143 | py | # prep for wiktionary data
import json
import pandas as pd
#import wiktextract
def extract_pronunciation(sounds):
# Extract American Pronunciation
#list_country = ["General American","Received Pronunciation","US","UK"]
ipa = ""
for i in range(len(sounds)):
if "ipa" in sounds[i].keys():
... | [
"inoue0406@gmail.com"
] | inoue0406@gmail.com |
f8dfea08d419d956b8b0401ae0fd292715671b03 | c7c75f034c2bf595a2507414cdb5d7ce09e30a26 | /5_median_filtering/median.py | 48abe34afab672efa7c1c1d1203ad447d85e25da | [] | no_license | jrkns/digi_images | 89b14d720266c97f5bea50e58966ae7d9409e734 | 5c97a5b29b0694540e61efa15e7d65bb55ee8504 | refs/heads/master | 2021-01-20T13:06:32.985730 | 2017-11-07T07:49:01 | 2017-11-07T07:49:01 | 101,735,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,093 | py | import sys
from PIL import Image
import numpy as np
# P0 P1 P2
# P3 P4 P5
# P6 P7 P8
def med(array):
length = len(array)
if length%2 != 0:
return array[(length//2)]
return (array[(length//2)-1] + array[(length//2)]) // 2
def main(name):
input_img = Image.open(name).convert('RGB')
new_img... | [
"jrkns1996@gmail.com"
] | jrkns1996@gmail.com |
de8792347405aadd837977316f12004147297193 | 8ed1430279ae52fd950dd0afe88549a100001e26 | /share/qt/extract_strings_qt.py | fefe2a907b40cfcfc4faa38e5f166048293fadca | [
"MIT"
] | permissive | mirzaei-ce/core-najafbit | 9fb70dbd4e17ec1635d7b886db17f8aab3f592bb | 6de34210a9ba9cc3f21fee631bc1a1f4d12d445d | refs/heads/master | 2021-08-11T08:53:58.165742 | 2017-11-13T13:00:14 | 2017-11-13T13:00:14 | 110,548,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,876 | py | #!/usr/bin/python
'''
Extract _("...") strings for translation and convert to Qt4 stringdefs so that
they can be picked up by Qt linguist.
'''
from subprocess import Popen, PIPE
import glob
import operator
import os
import sys
OUT_CPP="qt/najafbitstrings.cpp"
EMPTY=['""']
def parse_po(text):
"""
Parse 'po' fo... | [
"mirzaei@ce.sharif.edu"
] | mirzaei@ce.sharif.edu |
29cb92ebf6d3cf17309ccaf072ef6e2e474b7d99 | 642b7138da231474154a83c2dc3b4a2a42eb441b | /dp/largest_divisible_pairs.py | e811a9c6a31e06296c315fdc14696bec6b2b0bc9 | [] | no_license | somanshu/python-pr | 15465ed7182413591c709f9978420f6a16c9db91 | 7bfee6fc2a8340ba3e343f991a1da5bdb4ae9cb2 | refs/heads/master | 2020-07-02T17:21:37.132495 | 2019-08-22T08:04:11 | 2019-08-22T08:04:11 | 201,602,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 722 | py | # Largest divisible pairs subset
# Input : arr[] = {10, 5, 3, 15, 20}
# Output : 3
# Explanation: The largest subset is 10, 5, 20.
# 10 is divisible by 5, and 20 is divisible by 10.
def get_largest(arr):
n = len(arr)
arr.sort()
dp = [0 for i in range(n)]
path = [f"{arr[i]}" for i in range(n)]
dp[... | [
"somanshu@logos.social"
] | somanshu@logos.social |
75b6f2e998e6c86cf2cb96d28959a03cab166a1a | 67dbbc795444af048cc1dd0ff5190cbc97317f3e | /production/waldo_detector.py | 503517bbde11839a604a6e33ae19d4e5475170c9 | [] | no_license | chosun41/wheres_waldo | 73b6b724cab109ec80fe97a5e79b387bb48a2abc | d36bd05e50cf95e9b5776ff25ea655cee61116dc | refs/heads/main | 2023-05-27T20:38:45.614322 | 2021-06-14T04:44:01 | 2021-06-14T04:44:01 | 374,183,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,691 | py | import warnings
warnings.simplefilter(action='ignore', category=FutureWarning)
import numpy as np
import tensorflow as tf
import streamlit as st
st.write(st.config.get_option("server.enableCORS"))
from matplotlib import pyplot as plt
import matplotlib
import matplotlib.patches as patches
from PIL import Image
from io ... | [
"michael.cho@ibm.com"
] | michael.cho@ibm.com |
6d0779593c9062f253a2f7388b745a60c7976aeb | 119c010e2d41cf65a854116fe92dd645386c8eb1 | /gllib/examples/multiwindow.py | becee35e22894a5e41da505fb1b3fd25e6a610bc | [] | no_license | keksnicoh/opengl_plot_prototype | 052c93f22f12f405247577c48ca30cb66b5f54e7 | c3d5364eecc7955198ba69950cae4fafe863f28b | refs/heads/master | 2020-12-29T01:00:13.527803 | 2016-06-30T10:12:34 | 2016-06-30T10:12:34 | 41,973,105 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | from gllib.application import GlWindow, GlApplication
from gllib.controller import Controller
from gllib.plot.plotter2d import Plotter
from gllib.plot.domain import RealAxis
from gllib.plot.graph import Line2d
app = GlApplication()
window1 = GlWindow(200, 200, x=0, y=0)
window2 = GlWindow(200, 200, x=0, y=210)
def p... | [
"Jesse Hinrichsen"
] | Jesse Hinrichsen |
e7248625f3c05adbc85b54603d844980a8032b86 | 6d297282da2f549e67890f7d7fa4afa00c22d01f | /searchs/models.py | 5b3e6159adc99b2ee9f9d24be8245766b97294e9 | [] | no_license | nikoniko7zzz/Aione | 7134008385d8e803620dc06eefee9d900bc4029f | 89a20471b9afa351edf24f51b7ace269a72177e2 | refs/heads/master | 2023-07-02T02:10:56.900257 | 2021-08-12T05:55:57 | 2021-08-12T05:55:57 | 395,231,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | from django.conf import settings
from django.db import models
class Search(models.Model):
keyword1 = models.CharField('キーワード1', max_length=128)
keyword2 = models.CharField('キーワード2', max_length=128)
keyword3 = models.CharField('キーワード3', max_length=128)
created_at = models.DateTimeField("作成日", auto... | [
"ubuntu@ip-172-31-54-226.ec2.internal"
] | ubuntu@ip-172-31-54-226.ec2.internal |
cfd77598d0a3294800f4f91ca901764f9a431a0f | c4cb645799539089f89b3203a7ce88ba85cde199 | /src/development/vortex/development/utils/type_utils.py | a879dc18a11993d78969290275741151649e9e0b | [] | no_license | jesslynsepthiaa/vortex | 2533d245f3003c649205af51f7692d6022d6638f | 1532db8447d03e75d5ec26f93111270a4ccb7a7e | refs/heads/master | 2023-01-10T19:20:25.190350 | 2020-11-13T07:20:39 | 2020-11-13T07:20:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,117 | py | from typing import Union, Tuple, List
from multipledispatch import dispatch
## python 3.8 -> typing.get_origin(model_type), typing.get_args(model_type)
def get_origin(annotation):
if hasattr(annotation, '__origin__'):
return annotation.__origin__
else:
return type(annotation)
def get_args(anno... | [
"alvinprayuda@nodeflux.io"
] | alvinprayuda@nodeflux.io |
09ab7a4a3d994633a0c37f67755c4ad8f568a956 | 1900d436c6ea213f5db159e3010528f1c7058036 | /extractpages.py | a0690d974581295b4086c231bbfb630874ab9a08 | [] | no_license | fabstao/extractpages | c3c3a477e80dee31a874fa623fcbf3d4b9dc3f45 | a75e853a4294d788ea61496afac845eb4150a9f1 | refs/heads/master | 2022-04-26T00:30:02.931378 | 2020-04-22T00:54:42 | 2020-04-22T00:54:42 | 257,747,208 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 704 | py | #!/usr/bin/env python
import os,sys
from PyPDF2 import PdfFileReader, PdfFileWriter
def pdf_splitter(path):
fname = os.path.splitext(os.path.basename(path))[0]
pdf = PdfFileReader(path)
for page in range(pdf.getNumPages()):
pdf_writer = PdfFileWriter()
pdf_writer.addPage(pdf.getPage(page... | [
"fabian@nuo.com.mx"
] | fabian@nuo.com.mx |
8b9a977a790a19ebddc3271fbbacfc37b5fc2cc5 | b682860528efc2242623946adf1c476c9bb3d6c3 | /Wechart/settings.py | eed9de84a17ceae41b1fdf23bbca9bdf2b85fb4d | [] | no_license | sunqiang25/Wechart | c2b941b4418d08c5c4d1675b8d7df25619333ed3 | 1b8f35350794e067f769d0166aaded0fb7d6a553 | refs/heads/master | 2020-03-12T01:29:38.475763 | 2018-04-20T15:22:28 | 2018-04-20T15:22:28 | 130,375,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,741 | py | """
Django settings for Wechart project.
Generated by 'django-admin startproject' using Django 1.8.2.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build path... | [
"530631372@qq.com"
] | 530631372@qq.com |
66b9a7e45b140bf99b71a6e3e6c26f59fb5dd040 | feb66fe43b98599fa1ee9a3605e3069c6e443aeb | /functions/openapp.py | b93ec647ddcd73e74e62f2325f95fa6244e82366 | [] | no_license | LsMacox/Jarvis-PC | f7c77ed8cd565fbb4e1ce3a5ff19732322931cf2 | 0a5b32383966c954e40ca3dbd88b4a9db59c47ca | refs/heads/master | 2021-05-20T03:07:13.909668 | 2020-04-01T11:51:09 | 2020-04-01T11:51:09 | 252,159,671 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,186 | py | import os
import subprocess
import platform
alias = {
'google chrome': ['гугл', 'google', 'хром', 'хроме', 'google chrome', 'гугл хром', 'гугл хроме'],
'wps pdf': [''],
'skype preview': ['skype'],
'avocode': [''],
'atom': [''],
'crossover': [''],
'mysql workbench': [''],
'terminal': [''... | [
"zugeraev2@gmail.com"
] | zugeraev2@gmail.com |
591b4bce0c9b3eafaafb3a2de89ecac90cc30beb | 3c52faabf5948f375098e119515b227734db6fc5 | /codeforces/478/C.py | ccc89be6753632b7df701a42eddb900128b70163 | [] | no_license | Akash-Kunwar/CP | d693237e7adafdbff37e4dc13edd45ee68494d29 | c55c80e91d24039f4f937d9fd0604e09cbd34d35 | refs/heads/master | 2023-02-02T04:40:08.357342 | 2020-04-13T14:53:00 | 2020-12-21T15:32:40 | 323,367,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | a=list(map(int,input().split()))
a.sort()
if(2*(a[0]+a[1])<=a[2]):
print(a[0]+a[1])
else:
print((a[0]+a[1]+a[2])//3)
| [
"akashkunwar08@gmail.com"
] | akashkunwar08@gmail.com |
577f29560901bb08e5c23d7a65f738f36a09d0b8 | a52cb1a0dd8e6a5c9f91e36e9df611253baf1898 | /qrs_detect/test/do_test_predictor.py | d795f75e6ef8d1799bb1156e923771df72e97814 | [] | no_license | fraimondo/qrs-detector | 5b9f9ee4afa580469f0545593cc62655f6046a01 | a555a4e1812706a1d3b83cbc9d15364e9c65be07 | refs/heads/master | 2021-06-17T11:03:08.767810 | 2017-06-02T07:42:53 | 2017-06-02T07:42:53 | 93,139,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,309 | py | import time
import sys
import math
sys.path.append('../sim/')
from qrs_detect import QRSDetector, QRSPredictor
from EdfReader import EdfReader as Er
import numpy as np
fname = '../data/test257-280-3.edf'
# fname = '../data/PHYSIENS_2014-10-100004.edf'
secs = 10
# secs = 40
channel = 2
# channel = 6
buf_size = 2
e... | [
"federaimondo@gmail.com"
] | federaimondo@gmail.com |
6527899277157f27281d95d4c9bc7b42aaa60277 | 09a4140b73991d6414dd5d53732ac6a66348bde2 | /0x0B-python-input_output/0-read_file.py | c7ca53e2642f28652a842bc97c08787e4f9182d5 | [] | no_license | yosef-kefale/holbertonschool-higher_level_programming | ee99e18eb0889ba80375809662b7965040bd6a30 | f5021660778b97a947de4e982ab500ef85044c10 | refs/heads/master | 2022-08-21T17:28:47.123740 | 2018-09-09T22:43:19 | 2018-09-09T22:43:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | #!/usr/bin/python3
def read_file(filename=""):
"""open and read a file
Args
filename
"""
with open(filename, encoding='UTF8') as f:
text = f.read()
print(text, end='')
| [
"gregoryjdame@gmail.com"
] | gregoryjdame@gmail.com |
2f843ac9d5e7497fd030c057527295003f46e7db | 3e9139ee53b97f8c8a20e1b24c4f9c61221ddd1d | /Innlev_6/motorsykkel.py | 929c0212c98eff2027b1694bd68234457c20cc17 | [] | no_license | wangton-Raw/IN1000Assigment | 6e7c4ef489eaf4e87b9a533d84f93e9201059518 | 386b1e90840aa5955617a054a6d0f61e22779cdc | refs/heads/main | 2023-06-13T02:57:24.688023 | 2021-07-10T18:58:09 | 2021-07-10T18:58:09 | 384,764,647 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | class Motorsykkel:
def __init__(self,merke, registerNr, kilometer):
self.merke = merke
self.registerNr = registerNr
self.kilometer = kilometer
def kjor(self,km):
self.kilometer = self.kilometer + km
def hentKilometerstand(self):
return self.kilometer
def SkrivU... | [
"70154157+wangton-Raw@users.noreply.github.com"
] | 70154157+wangton-Raw@users.noreply.github.com |
f17fd0ff8209bab27020b6cb62b5007480ce389f | 32a2963aa5b46506814816b61bdb846ce9c203ff | /weather/post_compression/bin2txt.py | 552131f7504c22b12c376d97c2f37717b4a4318b | [] | no_license | leemagnusson/boatlogger2 | 5e347b56f05ad7ac45c0b03c982ae6b6f7608222 | 9334e550996ab851923b3b1c4ef7d4b99e64899e | refs/heads/master | 2021-01-10T08:37:01.758444 | 2015-06-03T17:34:50 | 2015-06-03T17:34:50 | 36,748,843 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | #!/usr/bin/python3
import sys
data = open(sys.argv[1], 'rb').read()
binary = ''.join([format(b, 'b') for b in data])
print(binary)
| [
"beevek@f89a8b19-fc4c-1111-860b-ebfafb781f11"
] | beevek@f89a8b19-fc4c-1111-860b-ebfafb781f11 |
d26275536393cb1c5d88a3a802766f888e9cae2e | 44110dbe639be4a3ca1fc37fddb5f8ecd1fdbdd3 | /04_text_bit_calc.py | 2c8513f2a33d88b31198dc210abfc3923c168083 | [] | no_license | tchisholm-DTI/02_bit_calculator | f94d41981b371745719327695ff84b72079a67a7 | 51d8d28d906f380d7196825f82ecf8a30b633129 | refs/heads/main | 2023-06-07T02:50:38.547627 | 2021-07-01T08:35:26 | 2021-07-01T08:35:26 | 376,970,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 583 | py | # Calculates the # of bits for text (# of characters x 8)
def text_bits():
print()
# Ask user for a string ...
var_text = input("Enter some text: ")
# Calculate # of bits (length of string x 8)
var_length = len(var_text)
num_bits = 8 * var_length
# Outputs answer with working
print()
... | [
"68577478+tchisholm-DTI@users.noreply.github.com"
] | 68577478+tchisholm-DTI@users.noreply.github.com |
143bec79e95c20b944cf1e40780dd40ad74be598 | 0a1c24797fed333eeba09d0767876e519fa827e6 | /process.py | 43e7613b9f9060afa8ef720ac74fa1f7b14019e0 | [] | no_license | wchh-2000/Parking_data_analysis | 72367f6b98dee9e53f601994b94c39f7e6f282cb | 912bacf2ea088e6caae391c4c38b63d6364e7d6b | refs/heads/main | 2023-05-31T03:23:17.079322 | 2021-06-06T14:04:35 | 2021-06-06T14:04:35 | 374,370,994 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,143 | py | def process(s):#输入Series owner_sum 不同时间段业主的在库车数量 本文件与时间段长度相关的为allbar中name
import pandas as pd
dfn=pd.DataFrame({'num':s.values,'datetime':s.index})
dfn['week']=list(map(datetime2week,dfn['datetime']))#星期类型 weekday/weekend
dfn['time']=[i.time() for i in dfn['datetime']] #每个元素Timestamp类的 time方法返回时间 object... | [
"2371156095@qq.com"
] | 2371156095@qq.com |
2c98bad836e4801693c6c95f972ec383d5e6e2d5 | cac52ce08c20333d81d9d9d1ee06f754c35aa31e | /backend/corpora/corpora/wsgi.py | a000552e618f149f26f4aa4e2c3d17a5ea6ffa3b | [] | no_license | AriBurr/corpora | 4a0788bf89e28cd831dfcacc9220a09f9dd9d1c9 | d30c607ff13b793228b00a45521be82f35a1df3f | refs/heads/master | 2022-12-10T07:05:29.580307 | 2019-05-01T02:52:42 | 2019-05-01T02:52:42 | 176,421,389 | 0 | 2 | null | 2022-12-09T16:18:41 | 2019-03-19T04:09:17 | Vue | UTF-8 | Python | false | false | 391 | py | """
WSGI config for corpora project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"ariburr@gmail.com"
] | ariburr@gmail.com |
4b5547d32b4bd2b931812d5078d801ce5e90c7ab | 527c75d03c9bfd21694917b327d1280057d68fb5 | /uclasm/graph_viz.py | e60d6a211c109c7bf6b802b680b24407cb741a1c | [
"MIT"
] | permissive | jdmoorman/uclasm | 2f44d468dfff17557ee0e0a28c8edfd1e9dede60 | ebecce0479415b1932480711133726cc9f7f4f8c | refs/heads/develop | 2022-11-14T11:51:44.893579 | 2021-09-27T18:29:08 | 2021-09-27T18:29:08 | 148,378,128 | 20 | 3 | MIT | 2021-05-17T23:11:27 | 2018-09-11T20:46:09 | Python | UTF-8 | Python | false | false | 1,696 | py | import numpy as np
import matplotlib
import graphviz as gv
def get_gv_graph(graph, eq_classes=None, with_node_labels=False, with_edge_labels=False,
node_key='rdf:type', edge_key='rdf:type'):
cmap1 = plt.get_cmap('Set1')
cmap3 = plt.get_cmap('Set3')
if eq_classes:
nontrivial_classe... | [
"domyang@ucla.edu"
] | domyang@ucla.edu |
a52b47d7add0c7dd2c13b5e231c31693c9684e03 | 22ab78fa4bcb07ac2fdf1a5cd65ca6d6a29df435 | /ball4.py | 1d20c901588ca3699d06a4b1c629cf5454b6f058 | [
"Apache-2.0"
] | permissive | polowis/ping-_pong_game | 671428745a5a6c29e5279cfe05b54ed2f4f6b772 | 23467ab8ef01aa3f901bb5f17f8b11df4f4f3734 | refs/heads/master | 2020-05-28T09:09:47.389531 | 2019-06-15T14:34:14 | 2019-06-15T14:34:14 | 188,951,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,261 | py |
"""
4.0.0
This is the final version of the ball movement, this WILL work. I will explain how to make this code work in the class
If you're reading this, I just want to tell you, we nearly finish the assignment :)) (need to add scoring system and some other functions
but thats ok). I have TESTED the code. but some mino... | [
"noreply@github.com"
] | polowis.noreply@github.com |
a405dd016add0a976b3d15fb2efad48e5d1bb92a | f8eefef177c4794392ddbad008a67b10e14cb357 | /common/python/ax/kubernetes/swagger_client/models/v1_fc_volume_source.py | 9d448090061f6efbde6be77d0ffdd209014b098e | [
"Apache-2.0"
] | permissive | durgeshsanagaram/argo | 8c667c7e64721f149194950f0d75b27efe091f50 | 8601d652476cd30457961aaf9feac143fd437606 | refs/heads/master | 2021-07-10T19:44:22.939557 | 2017-10-05T18:02:56 | 2017-10-05T18:02:56 | 105,924,908 | 1 | 0 | null | 2017-10-05T18:22:21 | 2017-10-05T18:22:20 | null | UTF-8 | Python | false | false | 5,718 | py | # coding: utf-8
"""
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version:
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
class V1FCVolu... | [
"elee@applatix.com"
] | elee@applatix.com |
23d826c97b4d4a30fe2c6510dc0c9978e0b79394 | 39354dfc8f61f57f022522a3e3a880c73a540d0d | /shenfun/chebyshev/la.py | f8577941aefb7ad55e988810e6a6e10afd9e8f08 | [
"BSD-2-Clause"
] | permissive | mstf1985/shenfun | aab9cd416ea7cb549ef191ed9e32f4cd66d522d0 | 83a28b3f7142ef3bf60b20d707ba8c1d2f13a8ff | refs/heads/master | 2022-12-10T20:27:51.825173 | 2020-08-28T13:58:58 | 2020-08-28T13:58:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,278 | py | #pylint: disable=line-too-long, missing-docstring
from copy import copy
import numpy as np
from shenfun.optimization import optimizer
from shenfun.optimization.cython import la
from shenfun.la import TDMA as la_TDMA
from shenfun.matrixbase import TPMatrix
class TDMA(la_TDMA):
def __call__(self, b, u=None, axis=... | [
"mikaem@math.uio.no"
] | mikaem@math.uio.no |
249cbe2db846e060e04a73e1decf2b9cfbc3f420 | decaefcd28798a21d9892ca1531094aab3728c75 | /apps/dashboard/tests.py | 8a2b4bd309b1d1fccad58c9664fb6ff7504a1407 | [] | no_license | dodocanfly/ligao | 4bd387aba7d427ea1e78ddfb1a4d9318a2fdbbb8 | 4f0951b2663cbc086301824b4af0eeaba094280b | refs/heads/master | 2022-05-02T05:25:23.877782 | 2020-02-05T00:18:59 | 2020-02-05T00:18:59 | 229,268,527 | 2 | 0 | null | 2022-04-22T23:13:54 | 2019-12-20T13:19:06 | JavaScript | UTF-8 | Python | false | false | 21,108 | py | from django.test import TestCase
from apps.users.models import CustomUser
from .models import Organization, ClubCategory
class OrganizationModelTests(TestCase):
def test_get_main_club_categories(self):
owner = CustomUser.objects.create_user('test@test.pl', 'SuperStrongP455')
organization = Organ... | [
"info@dodocanfly.pl"
] | info@dodocanfly.pl |
4ec1e9d4f1bf6fc799449cbd2aab1ab8e609c661 | eed0523056fec042d24180bd1f5443d9c510c271 | /TheCannon/spectral_model.py | 0b189fab510068fb42b0233fa0d4e6f756e2b769 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | minzastro/TheCannon | 3c42c0e775193d8dd3f649cc850da4afa7d61ebb | 5e624f9e5699ef26b905832f166d13a9733153ff | refs/heads/master | 2021-01-21T09:02:11.711509 | 2016-04-14T11:52:50 | 2016-04-14T11:52:50 | 56,233,122 | 0 | 0 | null | 2016-04-14T11:49:49 | 2016-04-14T11:49:47 | Python | UTF-8 | Python | false | false | 8,969 | py | from __future__ import (absolute_import, division, print_function, unicode_literals)
import numpy as np
import os
import random
from .helpers.corner import corner
import matplotlib.pyplot as plt
from matplotlib import colorbar
def draw_spectra(model, dataset):
""" Generate best-fit spectra for all the test object... | [
"annayqho@gmail.com"
] | annayqho@gmail.com |
a17913347b44df299ab37d00d470e56f8528439c | 3a533d1503f9a1c767ecd3a29885add49fff4f18 | /saleor/channel/migrations/0009_channel_order_mark_as_paid_strategy.py | 95a5a766de46242230839a732b42f3449cc37be9 | [
"BSD-3-Clause"
] | permissive | jonserna/saleor | 0c1e4297e10e0a0ce530b5296f6b4488f524c145 | b7d1b320e096d99567d3fa7bc4780862809d19ac | refs/heads/master | 2023-06-25T17:25:17.459739 | 2023-06-19T14:05:41 | 2023-06-19T14:05:41 | 186,167,599 | 0 | 0 | BSD-3-Clause | 2019-12-29T15:46:40 | 2019-05-11T18:21:31 | TypeScript | UTF-8 | Python | false | false | 885 | py | # Generated by Django 3.2.17 on 2023-02-08 14:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("channel", "0008_update_null_order_settings"),
]
operations = [
migrations.AddField(
model_name="channel",
name="orde... | [
"noreply@github.com"
] | jonserna.noreply@github.com |
f8947e39072974aad673b7b25a067715adc7f5ec | d5a196f844f5aa31c814c37c245eec3b5dfae75a | /section3_1/sequence_sum_2.py | c235060ded22ed1a46e9fac8b22b0681c1a93a0a | [] | no_license | aleno4ka1998/gentle_lerning | 3c08a9fc13f9529bb16ab26dee136b2b66a221a7 | bafa75263997044f53707c5d9690faede5e8d05a | refs/heads/main | 2023-02-05T21:52:24.602703 | 2020-12-31T15:22:16 | 2020-12-31T15:22:16 | 310,646,872 | 0 | 0 | null | 2020-12-31T15:22:18 | 2020-11-06T16:18:59 | Python | UTF-8 | Python | false | false | 225 | py | a = 0
b = 0
sequence_sum = 0
while True:
sequence_sum += a
a = int(input())
if a == 0:
b = int(input())
if b == 0:
break
else:
sequence_sum += b
print(sequence_sum)
| [
"alenasnisarenko@gmail.com"
] | alenasnisarenko@gmail.com |
2d1a14ef8c734345c6a3ef08c3a6aed2507783ba | e54b80c3b94c5eb4d355f90faa6c0108395f83a1 | /example-scripts/resources/platforms/aosp_mdpi.sikuli/aosp_mdpi.py | 592d11679862ee52e5883eb9a3ff131d81970f8c | [] | no_license | firstwave/seemonkey-dist | 669d1131a15a3ee9a7d527e0587d60a3119dc211 | 9c0cc0bd98fa2d14cca40e2f2a965cc99fda3a93 | refs/heads/master | 2020-06-06T05:07:29.350428 | 2012-01-03T19:54:09 | 2012-01-03T19:54:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,278 | py | from sikuli import *
print('aosp library loaded')
def unlockScreen(device):
# this function can safely be used even if
# it is unknown if the device is locked or not
device.wake()
if device.exists("1321469716016.png"):
if device.exists("1321472659750.png"):
device.d... | [
"obartley@ebay.com"
] | obartley@ebay.com |
7e64a23c39456e6c950584c9847c95489668dbbc | b76edf9cd297a1d87b69a08c4e480dbde89ea742 | /shopapp/views.py | 3ff23863759a9bd763c18e1805d4ea1cd82314ba | [] | no_license | kailasnathps24/shopvlog | b70e75d8e90ed45de6b6a8489ce3e359b37b6d44 | f6ea938eb22f7d6726f5a6a1ec6a300eb3071e99 | refs/heads/master | 2023-08-10T16:11:57.034264 | 2021-09-13T14:47:04 | 2021-09-13T14:47:04 | 406,009,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,326 | py | from django.shortcuts import render, get_object_or_404
from shopapp. models import *
from django.db.models import Q
from django.core.paginator import Paginator,EmptyPage,InvalidPage
def home(request,c_slug=None):
c_page=None
prodt = None
if c_slug!=None:
c_page=get_object_or_404(categ,slug=c_slug)... | [
"kailasnathps24@gmail.com"
] | kailasnathps24@gmail.com |
a405e1b721c0f0f68f6c6ff62b56bd42b11e160b | 9dd7bb82597fc7ecc3344613e79ce4b1a47c8a77 | /RotateArray.py | 4314cb716ef4a9247ff3492cbcd6f868bb965656 | [] | no_license | zhang4ever/LeetCode | 2c8bee95493cf6bf002ff1d95451e6c9c96ce6e4 | 344986a8ae5ce6c55e2e79ee79ef0977bdb8b77c | refs/heads/master | 2020-03-27T19:40:50.160175 | 2018-09-25T06:21:18 | 2018-09-25T06:21:18 | 147,005,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,271 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
# @File : RotateArray.py
# @Time : 2017-08-16 21:22
# @Author : zhang bo
# @Note : For example, with n = 7 and k = 3,
the array [1,2,3,4,5,6,7] is rotated to [5,6,7,1,2,3,4].
"""
class Solution(object):
#
def rotate(self, nums, k):
"""
... | [
"1227921471@qq.com"
] | 1227921471@qq.com |
c5d40f8d86bda2cc8edb8289f91a916ebb6672e0 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/226/users/4254/codes/1664_1394.py | ec3158649ae06f42008199af8c1253c3184e5b02 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | h = float(input("Quantidade de horas: "))
if(h > 20):
p = (20*50 + ((h-20)*70))
print(round(p,2))
else:
p = (h*50)
print(round(p,2)) | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
cb60b404cea6bb2a5ead2c4c9e33ae1f1f863fc6 | 633af6d1f78014c6169069e0b816bf28d9730178 | /restaurant/views.py | 64048f1ca527054487d22db8a03f02089f921ae4 | [
"MIT"
] | permissive | kwabena-aboah/ofos | 75b92337e58fdb5164b5b4947e22019ee1efca42 | 267cbe03617c4fb9f1622e23039c4d92d58dd9ef | refs/heads/master | 2022-03-29T05:40:12.614298 | 2022-02-19T18:41:30 | 2022-02-19T18:41:30 | 174,134,954 | 0 | 0 | MIT | 2022-03-12T01:09:29 | 2019-03-06T11:47:29 | Python | UTF-8 | Python | false | false | 4,737 | py | from django.http import JsonResponse
from django.shortcuts import render, redirect
from django.urls import reverse
from . models import Order, Food
from . forms import OrderForm, FoodForm
from django.views.generic import View
from django.contrib import messages
from django.contrib.auth.decorators import logi... | [
"noreply@github.com"
] | kwabena-aboah.noreply@github.com |
f9ea0d7a36009194e2da641b4b5897f41cc41aeb | 0743c1733cbdff5b7c93413b9161adc1e25056f6 | /forwarding/test.py | 1bb84f8ab1aeb5b39220e3f850087a8d541303f5 | [] | no_license | rushikc/mini-net-DDoS | 9d0848eeb643628c5dadf3042d05042d7bf4bd22 | 9dc90232a4e9d60739a245ecbac009e63ece32c7 | refs/heads/master | 2020-05-09T10:15:17.192129 | 2019-05-24T14:39:48 | 2019-05-24T14:39:48 | 181,034,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,449 | py | # Copyright 2011-2012 James McCauley
#
# 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 ... | [
"1ms16cs021@msrit.edu"
] | 1ms16cs021@msrit.edu |
6d9aff0579e85befb9b7466eef954efb3b890ac5 | 2e14f3052742aa80b63eb87594e01f0050f8ecc4 | /backend/session/urls.py | 97f0a0051d90396155bc61d62601161c8a63f3dd | [] | no_license | albaqida/dashboard-app | ba6cc8dac830c01b932e47200c915ea28dae479e | 7c1fe026ef10b5e576b0ac605a517a8238897d7b | refs/heads/develop | 2021-07-24T13:30:07.532224 | 2017-11-06T02:59:47 | 2017-11-06T02:59:47 | 108,020,621 | 0 | 0 | null | 2017-10-23T18:12:51 | 2017-10-23T18:12:51 | null | UTF-8 | Python | false | false | 137 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'create-user$', views.create_user, name='create-user'),
] | [
"starner.daniel5@gmail.com"
] | starner.daniel5@gmail.com |
95dff4f10c6ab977eafd45d613e7599e6563f873 | 2b0df4dd4e16f0cb60f41b585094f1e82fc86cf7 | /lib/pgu/gui/misc.py | 3a2bce5183d796bd91b400d32ce1626c04c8da7a | [] | no_license | taepatipol/BarbieSeahorseAdventureAI | 274a9fc8b44ec06f2a34f7fb41c73b77466db5e9 | e51930787b6d45e1387d97de2e3923a6d55fb5fd | refs/heads/master | 2022-08-18T18:05:25.242343 | 2020-05-24T17:21:32 | 2020-05-24T17:21:32 | 227,073,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,201 | py | from const import *
import widget
import app
class ProgressBar(widget.Widget):
"""A progress bar.
<pre>ProgressBar(value,min,max)</pre>
<dl>
<dt>value<dd>starting value
<dt>min<dd>minimum value rendered on the screen (usually 0)
<dt>max<dd>maximum value
</dl>
... | [
"abcteapatipol@gmail.com"
] | abcteapatipol@gmail.com |
07291bb917c2cc38965129eb0817957818861346 | abe169ad4dd0a5fdc331c050fc8fda4d6a0d6846 | /webapp/urls.py | 8bff53e7b6b2e980d3bfb70259e2078f8f703594 | [] | no_license | chernykovv/rcn-django | 2190a89768f3fc369337255d1c7bc04fc5cbf36e | e7082855c324fb056bb5cecc06c0de4b6c3dd665 | refs/heads/main | 2023-03-01T08:35:34.403456 | 2021-02-09T23:44:31 | 2021-02-09T23:44:31 | 337,566,907 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,810 | py | from django.conf.urls import patterns, include, url
from django.conf import settings
from django.contrib import admin
from questions.views import ViolationView, MaintenanceView, NewOwnerView, ReviewView, DueRequetView, GetBadgesAjax
from communities.views import CommunityView, DocumentEditView, DocumentCreateView, Doc... | [
"cherykovv@gmail.com"
] | cherykovv@gmail.com |
1d9741f463b1d422f98b321108ff9be5434e51a6 | a9020c87d73200edd826719a751455033883c968 | /treeexamples/example_1.py | 0113e12ee3add24d617dd317054f9563cc854ab3 | [
"MIT"
] | permissive | martinohanlon/GPIOXmasTreeGame | 6d73f1bff190613481e29f2862250c339192e2c3 | 0d32ff7ca4fe3c2b536f5fa4490d09c1caf54b3a | refs/heads/master | 2021-01-25T08:37:28.163740 | 2014-12-30T09:10:20 | 2014-12-30T09:10:20 | 28,156,951 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | import tree
# Some constants to identify each LED
L0 = 1
L1 = 2
L2 = 4
L3 = 8
L4 = 16
L5 = 32
L6 = 64
ALL = 1+2+4+8+16+32+64
NO_LEDS = 0
tree.setup() # you must always call setup() first!
# Pattern: flash each LED in turn
for i in range(5): # repeat 5 times
tree.leds_on_and_wait(L0, 0.3) # LED 0 on for 0.3 second... | [
"martin@ohanlonweb.com"
] | martin@ohanlonweb.com |
4b184906adbf84ff9b3a03c85ef8345868c66eb0 | 3f12df38a8f5780c44e527f5a3f16e5a7b044751 | /store/admin.py | 083688246e3ed67cec4b94d1ad824ec0a07fa441 | [] | no_license | Sourmundada/GreatKart-Django | 0e850cb2b49d9bc0c37b5193757b9a99ac6e4fbf | fa43c6232eb5217dd4a45528cbaaf00517901522 | refs/heads/main | 2023-07-13T00:15:34.352927 | 2021-08-21T05:34:13 | 2021-08-21T05:34:13 | 355,516,891 | 8 | 4 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | from django.contrib import admin
import admin_thumbnails
from .models import Product, Variation, ReviewRating, ProductGallery
@admin_thumbnails.thumbnail('image')
class ProductGalleryInline(admin.TabularInline):
model = ProductGallery
extra = 1
class ProductAdmin(admin.ModelAdmin):
list_display = ('produc... | [
"sourmundada@gmail.com"
] | sourmundada@gmail.com |
b9b310c51d364e149ebcb90826ab06f7588ebfbe | 0046c8f952f8dadabb70a926e7206e9dd4d79237 | /bubble/users.py | ee7ec58cc51eb96bae5f71ee0fd31771585a3728 | [] | no_license | steveyang95/tools | 663a93d768f9a2cccb455c94e09ee192bd5455d0 | d69752d03f4d884816f4c195da476dc8441628c2 | refs/heads/master | 2020-03-30T22:00:05.864378 | 2019-07-06T08:40:09 | 2019-07-06T08:40:09 | 151,650,285 | 0 | 0 | null | 2018-12-26T04:14:05 | 2018-10-04T23:58:08 | Python | UTF-8 | Python | false | false | 3,087 | py | import os
import sys
import time
import requests
import string
import random
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
import tools.stopwatch as stopwatch
# Overall Users API Endpoint
USERS_VERSION_TEST_URL = "https://{name}/version-test/api/1.1/wf/"
USERS_LIVE_URL = "https://{name... | [
"admin@Administrators-MacBook-Air.local"
] | admin@Administrators-MacBook-Air.local |
47e85f905e266f6fcbb4559c46c65de19a683b18 | d84441b3426c9966aa072ad2ce9e9f5216527a54 | /unfeed/sites/qdaily.py | aa774292eb813efd4ee54c7e4605b032b3cb9983 | [] | no_license | tonicbupt/unfeed | 96919010ab7dcca5cd120dfe739170ea42ea17e5 | 1fcab5acdbc1f41897f17eeabcf55c5867fc3d04 | refs/heads/master | 2020-12-25T10:34:53.962785 | 2014-05-24T10:57:10 | 2014-05-24T10:57:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,632 | py | import copy
from brownant import Site, Dinergate
from brownant.pipeline import (TextResponseProperty, ElementTreeProperty,
XPathTextProperty)
from werkzeug.utils import cached_property
from lxml.html import tostring
from dateutil.parser import parse as parse_datetime
from unfeed.utils.e... | [
"tonyseek@gmail.com"
] | tonyseek@gmail.com |
395af0f0b55dc1003d5e415b702212ce8a1d6d4d | 6f996f18aaa54f554e7a1ffed0c9489b86056051 | /flaskstarter/projects/models.py | 1f72b78779ef68a815b8febc29b4e2d13177c24b | [] | no_license | Th3M4ttman/portfolio-site | 17b180308aa6e1759582d91d3476eff0a02f5caf | e40fa3e81ea4588a5d1a8bb003b0b7fa3587e50c | refs/heads/master | 2023-08-18T21:38:03.329340 | 2021-10-09T23:41:25 | 2021-10-09T23:41:25 | 411,526,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,144 | py | from sqlalchemy import Column, Integer, String, Boolean, Numeric, orm, ForeignKey, MetaData, Table
from sqlalchemy.orm import sessionmaker
from sqlalchemy.ext.declarative import declarative_base
from ..extensions import db
from flask_admin.contrib import sqla
from sqlalchemy import inspect
import json
from flask_login ... | [
"workmatthewjharris94@gmail.com"
] | workmatthewjharris94@gmail.com |
940d4c9b1e348b783e1a0aed831f3daf5d20544b | 686578a34cbddf8907c8bfcdbf3384175079abae | /inicial/PyLadies/wsgi.py | ef112934b9cb565891a2db41bf41dc3d1c642fa3 | [] | no_license | pyladies-bcn/django2 | 9d157537c7dd6d202b0eb27f23ff70f2aad29013 | e709ab5a367a953d087e65f7c72b897a44b64ab6 | refs/heads/master | 2021-01-21T13:30:16.821911 | 2016-05-31T10:00:01 | 2016-05-31T10:00:01 | 51,360,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 611 | py | """
WSGI config for PyLadies project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/
"""
import os, sys
sys.path.append('/home/elena/djangostack-1.8.9-0/apps/django/django_projects/PyLa... | [
"elena.he@idi.gencat.cat"
] | elena.he@idi.gencat.cat |
4cbaeb8890a712bc2ae55461dd4173510c41a723 | 83c4a06aa6869168cc576ed507b46394783089fb | /src/competitions/migrations/0012_workout_new_bool.py | ea5c01c9d96a2bfa8d640f84419eb33d0e3c47d3 | [] | no_license | GladwinAlmondMedia/fanfit-backend | a1e57d371119d2e1e80d041f1b2ca9c050f15983 | eba4d79f9514728a1160a3f14fd9c0b1a19dc3ba | refs/heads/master | 2021-05-04T05:11:26.078906 | 2016-10-31T18:08:10 | 2016-10-31T18:08:10 | 70,931,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.10 on 2016-10-23 18:53
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('competitions', '0011_auto_20161017_1647'),
]
operations = [
migrations.AddF... | [
"gladwin.dos@hotmail.co.uk"
] | gladwin.dos@hotmail.co.uk |
47c3142374ed34f1c9bd05ff36314ac8d2512ff8 | de35033f12b8248a02f5cb44382271b1a6dd52ca | /key_map.py | 6b94483173970284b3a6cbf215e671a3270c403e | [] | no_license | milicevichm/Energy_Management | cf8171f180fa20988b3e434f0be479e0ed3b7478 | 0a06cffd19b27fad949eb77439da76ceadc82a90 | refs/heads/master | 2021-01-01T05:42:09.568564 | 2015-02-16T21:24:31 | 2015-02-16T21:24:31 | 26,453,433 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 8,037 | py | #Author: Michael Milicevich
#Class that maps appliance ID to datastore key for REDD Dataset
class Key_Map(object):
'''
This class contains a dict that maps all REDD DataStore keys for buildings
1 to 6 to the name of the appliance (as provided by metadata). Class also outputs
appliance names to the user i... | [
"milicevichm@gmail.com"
] | milicevichm@gmail.com |
2baf7eb1ee7426cc1f1807192d8194507322a212 | 49cbdb19b0b8890b412be6c634608f3b96cbf693 | /scene_2.py | ccddcbafb45789cdf0fb7a8d6c697b5d71a3197e | [] | no_license | quangminhdinh/Food-calories | bdf3e954069174963f7db62a5509372cf34878f3 | 3f062067667717ca9e49a4eee73e0ab2308e8e16 | refs/heads/master | 2023-07-15T14:46:42.904299 | 2021-08-29T17:49:48 | 2021-08-29T17:49:48 | 145,227,199 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,320 | py | import sys
from render_canvas import *
from pygame.locals import *
class Scene2:
def __init__(self, canvas, width, height, name):
self.canvas = canvas
self.image = pygame.image.load(os.path.join('data', 'background.png'))
self.logo = pygame.image.load(os.path.join('data', 'white-logo.png'... | [
"minh101202@gmail.com"
] | minh101202@gmail.com |
f3a7b791562650dafd838e3cdb11491baea75ff0 | f60fe3c4e0fd081453f9330e16959c6b96a32560 | /apps/operation/__init__.py | edfcc214fcabda793b312deff350c0cf35f683b4 | [] | no_license | alexzt0131/eduline | 44458f969a618fa85b86606d44b12bd81764f7ea | bedc7b8816f5b97b124d96e3290b04cfd9c7b48a | refs/heads/master | 2020-04-06T15:06:50.259665 | 2018-11-18T16:59:27 | 2018-11-18T16:59:27 | 157,566,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52 | py | default_app_config = "operation.apps.OprationConfig" | [
"110021341@qq.com"
] | 110021341@qq.com |
f866c6da84ba149ac29dcea301ba65fc46fc8ac0 | 59c2f4aa6eeb2ff325f82ab573e2a4da389c1bad | /tests/tests.py | e9c490abcbeeff2c27575eddff78fdba7a46caaf | [
"MIT"
] | permissive | D4KU/redblack | b024966a00544f753e499da65d67edcd6a7b3870 | a15ac3cb498a10778ce234d6c1c263c9a47f3307 | refs/heads/master | 2022-10-18T17:08:45.857568 | 2020-06-07T14:21:03 | 2020-06-07T14:21:03 | 262,396,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89,483 | py | import importlib
import unittest
import random
from datetime import datetime
import tree
importlib.reload(tree)
from tree import Tree, Node
class RbTreeTests(unittest.TestCase):
def test_add(self):
""" Use the tree we get from the test_build function
and test the find function on each node""... | [
"d4k@tuta.io"
] | d4k@tuta.io |
bc0db3f3305c70eb8d1207273623828ce178dcb1 | f1ed211cb86cd738a3c474aeb7050ffe906e80c6 | /mypet/sloth/migrations/0005_auto_20210309_2309.py | ec7e44e032a4bd530336e3925aeb798b1cef9eb5 | [] | no_license | IlyaES1989/pet | 11f506b5f42fded88697af52cf026c67803e3b23 | 06ab31166dc5744b65f3f809295cb3927fd6d33d | refs/heads/main | 2023-03-31T16:21:16.522713 | 2021-04-06T08:56:43 | 2021-04-06T08:56:43 | 345,998,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 748 | py | # Generated by Django 3.1.7 on 2021-03-09 18:09
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('sloth', '0004_auto_20210... | [
"ilyaes1989@mail.ru"
] | ilyaes1989@mail.ru |
31ab8ab68ccfc00be7fb36656ec7dbaeaba96bf4 | bd28c8ae8969bf5034261f64ef6960ee71fa0e1b | /migrations/versions/75384324dc7d_users_table.py | 09b83cadd25b30366ae76dc1d72b190ac19e9526 | [] | no_license | MBuchenkova/microblog | c05e2d301d65deec802521fd66145d5e01042fef | 17ee3e30de47a8f37470a1588d5d0d8c420058d8 | refs/heads/master | 2020-04-13T14:34:08.519270 | 2018-12-27T13:35:05 | 2018-12-27T13:35:05 | 163,266,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,131 | py | """users table
Revision ID: 75384324dc7d
Revises:
Create Date: 2018-12-27 14:52:19.515431
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '75384324dc7d'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto genera... | [
"mariya.buchenkova@phystech.edu"
] | mariya.buchenkova@phystech.edu |
c07f2b8291f962871ca64b9068477b747d33f4e6 | 05cda8a550466295bbd53756ec3b65478e2c8445 | /webgrid_blazeweb_ta/extensions.py | 0f3b10f2cb49a81234625c5dceacfe08be837c7a | [
"BSD-3-Clause"
] | permissive | level12/webgrid | 7241a2ef2c118e6c35846a51f7a7276b1c51c5ae | d0353e584925b80c7e07736f8a024f0eeef60dc5 | refs/heads/master | 2023-05-27T02:16:18.065358 | 2023-05-15T15:36:09 | 2023-05-15T15:36:35 | 53,168,296 | 13 | 8 | NOASSERTION | 2023-05-12T12:28:09 | 2016-03-04T22:01:32 | Python | UTF-8 | Python | false | false | 989 | py | MORPHI_PACKAGE_NAME = 'webgrid_blazeweb_ta'
# begin morphi boilerplate
try:
import morphi
except ImportError:
morphi = None
if morphi:
from morphi.messages import Manager
from morphi.registry import default_registry
translation_manager = Manager(package_name=MORPHI_PACKAGE_NAME)
default_regis... | [
"timothy.warren@level12.io"
] | timothy.warren@level12.io |
d54f74cc74fedc146f8142760af211ca88a0137d | a47d0a31ca490ab1455d6baef96a0a728fff2c0a | /venv/bin/easy_install | 802b6a28a54df33fd37a7e0182e3920abf67c68d | [] | no_license | xiaohe55/minipg-UI-test | 2f81e25601b3ae826b90a241c8619fa811a55a94 | b27fdb299d26d99cd18c2bd9c4d117e8e961a961 | refs/heads/master | 2020-03-09T04:24:28.188847 | 2018-04-08T02:16:59 | 2018-04-08T02:16:59 | 128,586,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | #!/Users/xuanyuanshufen/PycharmProjects/minipg-UI-test/venv/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"heyongkang@didachuxing.com"
] | heyongkang@didachuxing.com | |
37d1cf04c9fcf06da68b721d7307435eb846ab67 | d0df13a91c815ab73b3648ad1685c5d853ddb95f | /download/views.py | 90144d80f39eda3de6c94c2a02406a5a6193a0aa | [] | no_license | magiczzz07/appstore-2 | cf0e054df710b989bf66f4399a9b0660537934a3 | e6fccbcb5afb5e79e9491b96fbcdd3a11d35d35f | refs/heads/master | 2020-12-14T02:37:25.974499 | 2019-11-19T21:51:29 | 2019-11-19T21:51:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,522 | py | import datetime
from django.shortcuts import get_object_or_404
from django.contrib.gis.geoip import GeoIP
from django.http import HttpResponseRedirect
from util.view_util import html_response, json_response, ipaddr_str_to_long, ipaddr_long_to_str
from apps.models import App, Release
from download.models import Releas... | [
"root@ip-172-31-23-79.us-west-2.compute.internal"
] | root@ip-172-31-23-79.us-west-2.compute.internal |
62c75f4ba000df4a059b3f0cd3c9e918a450e95a | 61baf3b5ea44c16af971d70c54e87baf0f9feb22 | /mydemo/tutorials-master/tensorflowTUT/tf18_CNN3/read.py | c8e7c9a50d9f3dd4c13fd9b204864134c0ae7e88 | [
"MIT"
] | permissive | davidworkgit/python | b333d619ef6bce13aab32587acccf29f8dc09486 | f5b95f7ed65b947842d056b435d3603ea3177f5e | refs/heads/master | 2021-05-18T12:08:07.045654 | 2020-04-06T12:06:36 | 2020-04-06T12:06:36 | 251,237,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,031 | py | import numpy as np
import tensorflow as tf
from PIL import Image
def getTestPicArray(filename):
im = Image.open(filename)
x_s = 28
y_s = 28
out = im.resize((x_s, y_s), Image.ANTIALIAS)
im_arr = np.array(out.convert('L'))
num0 = 0
num255 = 0
threshold = 100
for x in range(x_s):
... | [
"newhwdy@gmail"
] | newhwdy@gmail |
28cfe5ab9167f10afb606a1c6f4ca906660e926c | cf652a64cb53c921befa139f53ef8276ae197794 | /mini_fb/urls.py | 9044d801f47c378a4bac00089d7f4a5e14be448b | [] | no_license | hqiu2626/cs108-examples | 2e81515660739ddc7891dc79a932bf983f723a47 | 1af4b9e792f97198f616327365f791a84f43db45 | refs/heads/main | 2023-05-01T04:03:58.355962 | 2021-04-29T04:43:36 | 2021-04-29T04:43:36 | 346,933,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,141 | py | # mini_fb/urls.py
from django.urls import path
from .views import * # our view class definition
urlpatterns = [
path('', ShowAllProfilesView.as_view(), name="show_all_profiles"), # path for default url for profile
path('profile/<int:pk>', ShowProfilePageView.as_view(), name="show_profile_page"), # path for u... | [
"hqiu26@bu.edeu"
] | hqiu26@bu.edeu |
03cb1330e2a328743fdc087ff860f810966cf81d | 6ca3270f8f116708d6d96727d7f64766ef0bf276 | /src/server/housepricehistory/housepricehistory/wsgi.py | ce03da85baa014b331ace15fc56eeeef76770920 | [] | no_license | bendholmes/SoldHousePrices-Django-Postgres-D3-Jinja2 | 8a81c20a87b6df194d5428b0564d69eb73cac827 | 4eef7cbdced1c8287c99667d0297f6e771a5534b | refs/heads/master | 2020-12-23T08:09:02.527680 | 2015-04-19T16:14:15 | 2015-04-19T16:14:15 | 60,120,539 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | """
WSGI config for housepricehistory project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/
"""
#
# Copyright 2015 Benjamin David Holmes, All rights reserved.
#
import os
os.environ.... | [
"benjamin.holmes@visualdna.com"
] | benjamin.holmes@visualdna.com |
85990e005b4b4fecaf30d8f5e8d53cc1da84d93c | f0ad55b569008465f89d1990ca2464497008dc5b | /src/flash/esp8266_i2c_lcd.py | 046babcf5e9090073e0169ecb5cae3386654456f | [
"MIT"
] | permissive | gr4viton/esp_fun | 18b926a3584275f94bca1397d8b96111d49eaa66 | 28f74ce50c16555705ecee97336ae28c7fd86704 | refs/heads/master | 2021-01-14T04:32:02.541393 | 2020-02-23T22:32:22 | 2020-02-23T22:32:22 | 242,601,166 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,289 | py | """Implements a HD44780 character LCD connected via PCF8574 on I2C.
This was tested with: https://www.wemos.cc/product/d1-mini.html"""
from time import sleep_ms
# from machine import I2C
from .lcd_api import LcdApi
# The PCF8574 has a jumper selectable address: 0x20 - 0x27
DEFAULT_I2C_ADDR = 0x27
# Defines shifts... | [
"daniel.davidek@kiwi.com"
] | daniel.davidek@kiwi.com |
10e3aaffe8146d35b918e3207254fa0f21c92912 | 80301f1cffc5afce13256e2ecab6323c5df00194 | /en.3rd/py/U7003_5.py | fffd6e2a94a4a0004232ce03d4503c83622406f9 | [] | no_license | ZhenjianYang/SoraVoiceScripts | c1ddf7c1bbcb933243754f9669bd6b75777c87b9 | 94a948090aba0f63b10b2c69dc845dc99c822fc4 | refs/heads/master | 2023-04-18T04:54:44.306652 | 2023-04-06T11:15:17 | 2023-04-06T11:15:17 | 103,167,541 | 43 | 11 | null | 2021-03-06T08:52:54 | 2017-09-11T17:36:55 | Python | UTF-8 | Python | false | false | 237,917 | py | from ED63RDScenarioHelper import *
def main():
SetCodePage("ms932")
CreateScenaFile(
FileName = 'U7003_5 ._SN',
MapName = 'Gaiden2',
Location = 'U7003.x',
MapIndex = 1,
MapDefaultBGM = "ed60000",
Flags ... | [
"ZJ.Yang@qq.com"
] | ZJ.Yang@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.