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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e6c68eff9e6a0fdc168b30b5b841532a1cf4b03d | 2daa3894e6d6929fd04145100d8a3be5eedbe21c | /tests/artificial/transf_inv/trend_constant/cycle_7/ar_/test_artificial_32_inv_constant_7__0.py | a69b8bc01e2baf94726fff51468a7e4e6843851d | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Henri-Lo/pyaf | a1f73a0cc807873bd7b79648fe51de9cfd6c126a | 08c968425d85dcace974d90db7f07c845a0fe914 | refs/heads/master | 2021-07-01T12:27:31.600232 | 2017-09-21T11:19:04 | 2017-09-21T11:19:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | import pyaf.Bench.TS_datasets as tsds
import pyaf.tests.artificial.process_artificial_dataset as art
dataset = tsds.generate_random_TS(N = 32 , FREQ = 'D', seed = 0, trendtype = "constant", cycle_length = 7, transform = "inv", sigma = 0.0, exog_count = 0, ar_order = 0);
art.process_dataset(dataset); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
ade16edad2cbac40e9bacca1b0aba5e260577e2f | dfe925c32292ba1e054b86ea660546eb9eac921b | /example/gs/__init__.py | c371d57c6a673838f1d0eb1f56482200e99ebb74 | [] | no_license | keul/example.gs | bc64488d5e67492994b5a12a99d0fa64f1af87de | 5435e9f4fde66b810ff184c25e2dc26aa40900df | refs/heads/master | 2020-04-30T09:50:23.781896 | 2013-05-01T18:02:15 | 2013-05-01T18:02:15 | 9,789,567 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,012 | py | # -*- coding: utf8 -*-
import logging
from zope.i18nmessageid import MessageFactory
from example.gs import config
from example.gs.tool import FooTool
from Products.Archetypes import atapi
from Products.CMFCore import utils
logger = logging.getLogger('example.gs')
gsMessageFactory = MessageFactory('example.gs')
def... | [
"luca@keul.it"
] | luca@keul.it |
c73c4ac3c5fb9fa6999d6009f4f1f891873eff8f | 9b854e7c87852fa10b57d443e6048b3bc7c63047 | /setup.py | 2ed0cb9856356a7ef57278639a2c1acb3fb6ee50 | [
"MIT"
] | permissive | qqccmm/wikipedia-histories | 01979db66a2c505bb1290978af3c3e0f8d3e2629 | 382babd9b4ffbb217cb36da9f6563f3ed17785ea | refs/heads/master | 2022-12-25T22:39:36.042552 | 2020-10-08T15:59:29 | 2020-10-08T15:59:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,105 | py | # -*- coding: utf-8 -*-
# python3 setup.py sdist bdist_wheel
# twine upload --skip-existing dist/*
import codecs
import os
import re
import setuptools
def local_file(file):
return codecs.open(
os.path.join(os.path.dirname(__file__), file), 'r', 'utf-8'
)
with open("README.md", "r") as fh:
long_descripti... | [
"nathan@drezner.com"
] | nathan@drezner.com |
194e1ed608f87e07c5bcab61c6f87c8dffa0bf91 | 11514a9a6288bd9f00f972e2facaaa00d7d771af | /test1.py | b669a63b65c7d2aa7cf21faa763fb2c1bfd110ff | [] | no_license | vsevolodnedora/sideprojects | 42b8bbc4e7fc29c44f50a2ce4e111a45da08cd97 | 111e15fc19556624a931d01399d8013dd954f862 | refs/heads/master | 2023-04-06T17:45:54.469247 | 2020-05-31T19:26:48 | 2020-05-31T19:26:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,161 | py | from mayavi import mlab
import numpy as np
#mlab.options.offscreen = True
import h5py as h5
from tvtk.util.ctf import PiecewiseFunction # countors in rendering
from tvtk.util.ctf import ColorTransferFunction # colormap for rendering
import matplotlib.pyplot as plt
# first test
def test1():
X= np.linspace(-10, ... | [
"fizik.vlk@gmail.com"
] | fizik.vlk@gmail.com |
fab9b9152fd6ae066494c53f96f89fc94015fb05 | 2fb830b5e24ed9e4e1950305f2b06ce838248575 | /bin/django-admin.py | 0e31882af06571ae6cdaffc7aa4a5e3e7ae79962 | [] | no_license | Debashis-Gupta/Mnist_App | 7b0153d0c2d10d5db842f19c5dd6e505e543df93 | f3dcf20654da51fc7df6a88fd19f1488e60d8a8c | refs/heads/master | 2022-05-28T08:15:02.442210 | 2020-05-03T08:19:59 | 2020-05-03T08:19:59 | 260,858,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | #!/media/debashis/Working/Work/Mnist_App/bin/python
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"debashisgutapapai@gmail.com"
] | debashisgutapapai@gmail.com |
5ca62a56dfac1f5838aef5ae3ba0e91d58c912c3 | f501a826a34a99fe00de05efdb14ed9a30c1147d | /keyboard_controls/keyboard_controls.py | bf083fbced85dbdc510a83fd691bf2e3bff74742 | [] | no_license | kgandhi09/Indoor_Autonomous_Drone_Flight | 7de482fdb4588fad7507d9e1ffe21fe2f2c0d498 | 84180628d9cab77bad43ed623f674354f17f7d88 | refs/heads/master | 2021-06-22T14:31:27.564336 | 2021-01-31T04:52:26 | 2021-01-31T04:52:26 | 189,007,579 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,225 | py | from __future__ import print_function
from dronekit import connect, VehicleMode
import time
from pymavlink import mavutil
import sys, os
from optparse import OptionParser
import Tkinter as tk
import argparse
parser = argparse.ArgumentParser(
description='Example showing how to set and clear vehicle channel-overr... | [
"kushal009gandhi@gmail.com"
] | kushal009gandhi@gmail.com |
61f0e3c7d062d468b12338437a3f16af28a3d8c0 | ed3bee58910af21d0e8593586d6bb144f8c124b9 | /vendor/github.com/containers-ai/api/datahub/resource/pod/assign/v1alpha2/assign_pb2.py | 4dc1f7024f2b1b2e153c403c2d921116da75df56 | [
"Apache-2.0"
] | permissive | ekko771/alameda | f3b4575fdfffd2be87a9441f4ce815902786b157 | 591488ad7d194c14034ccd6c6c7a86744aaf868d | refs/heads/master | 2020-05-20T19:18:56.348733 | 2019-05-07T10:17:39 | 2019-05-07T10:17:39 | 185,723,143 | 0 | 0 | Apache-2.0 | 2019-05-09T03:56:36 | 2019-05-09T03:56:34 | null | UTF-8 | Python | false | true | 5,758 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: datahub/resource/pod/assign/v1alpha2/assign.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.... | [
"kuofu.huang@prophetstor.com"
] | kuofu.huang@prophetstor.com |
43443f553df06b95adf368e7f0b43b23b40a19bb | dc829066685d3764208f2a524ee4d58bca0f4d7f | /mysite/settings.py | 5f26fc3c109bfa3badb911d610e773e5746b431c | [] | no_license | deepmala-budhija/my-first-blog | 4247868ebf464a6a47e9dede36e8c6da2be7f60d | 5abea38571b71ab49a40346c3b60b811b43c5d01 | refs/heads/master | 2022-11-20T12:28:45.060294 | 2020-07-24T11:19:34 | 2020-07-24T11:19:34 | 279,516,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,545 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.2.14.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
#... | [
"deepmala_b@yahoo.com"
] | deepmala_b@yahoo.com |
7714909e86d7cb824a84edc6d8ced3422f107600 | 54d17336ca03801bd9c9ef37be8642b332ab71c4 | /osm/SO/rwlaunchpad/plugins/rwautoscaler/rift/tasklets/rwautoscaler/engine.py | 3bd2645aeb390746fcbf31d24b4a18f0fad50d0f | [] | no_license | dennis-me/Pishahang | 2428379c4f7d3ee85df4b85727ce92e8fe69957a | cdd0abe80a76d533d08a51c7970d8ded06624b7d | refs/heads/master | 2020-09-07T12:35:54.734782 | 2020-01-24T20:11:33 | 2020-01-24T20:11:33 | 220,782,212 | 2 | 0 | null | 2019-11-10T11:46:44 | 2019-11-10T11:46:43 | null | UTF-8 | Python | false | false | 15,508 | py |
#
# Copyright 2016 RIFT.IO Inc
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | [
"github@OrangeOnBlack.de"
] | github@OrangeOnBlack.de |
eec3ab7a9816f277ff12c71fc866588e7d9373cc | fffa54dd2284c45b4eb5565599c2a89c2e62076a | /server.py | 2387afb7622579196d484abc3f522ecaf189b942 | [] | no_license | BeeNeal/project_skeleton | b3a7a9b21212ab5ffaa2bf9d0eeb9fb77dc3e9f7 | ea5f02c15a1282308c294df07e187620c043c907 | refs/heads/master | 2020-03-16T17:04:24.069400 | 2018-05-09T21:44:14 | 2018-05-09T21:44:14 | 132,811,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 737 | py | """ Project Skeleton Server - happy building!"""
import sys
import os
from jinja2 import StrictUndefined
from flask import (Flask, jsonify, render_template, redirect, request,
flash, session)
from flask_debugtoolbar import DebugToolbarExtension
# if want to source API key into environment every... | [
"brittanyneal22@gmail.com"
] | brittanyneal22@gmail.com |
0d570057aec6a008be56456cb3be0340ae17d1a7 | 4d66dca638061a7e627e06760e45adb58ccf0325 | /draft.py | 614e04823b6d046d16e1d0c9199c3783ed2538ca | [] | no_license | delayzzz/ansys | 864f2021f560ab646762781dd576f483c9eac4ea | bc1b40bf898afe2b97718d8a7d77963a6c0a7efb | refs/heads/master | 2023-02-15T06:19:12.434857 | 2021-01-10T16:21:50 | 2021-01-10T16:21:50 | 281,868,112 | 0 | 0 | null | 2020-07-23T07:03:50 | 2020-07-23T06:19:50 | Python | UTF-8 | Python | false | false | 52 | py | import numpy as np
import sys
import os
print(test) | [
"delayzyc@163.com"
] | delayzyc@163.com |
51be068605faf7c3f8cf9699305d3ddf730f750b | a01099ad3b57e3ba58dcaa982d42192d0c7bc465 | /lab2.py | 1da5bdee680b0df8e3ad7593d0a16d6a5cc0390d | [] | no_license | pradumna123/Decision-tree-for-authorship-prediction | 54f89c3d52273bb9edc98a9c7f0d15bbe4b5df09 | d3bfc6c356b1c4304bec6bb02f143f11393a8b02 | refs/heads/master | 2020-07-25T02:06:16.826534 | 2019-09-14T15:48:47 | 2019-09-14T15:48:47 | 208,125,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,848 | py | import create_a_tree_from_file
import perceptron_model_gen
import processa250data as pp
import sys
"""
class used to run models on test _data
"""
def read_user_file(filename):
string_list = []
with open(filename, "r")as f:
data = f.read()
data = data.split()
# print(len(data))
... | [
"ps6275@gmail.com"
] | ps6275@gmail.com |
d32a1e73ad34e9246b555c6257064d618f6f94c2 | bdb300d0c07dafcefa9aeeb3e393cbe232e6b580 | /app/main/routes.py | 3355c7e6b8658dfc12d3129bd246ee61b1b18b84 | [] | no_license | nabeelshaikh91/pehgaam | d6fcec1f46f7db5bf9e839b1306fb21a5bc7b0a1 | 46d7827bbca946a0413bd4caaa4ac57251bafa46 | refs/heads/master | 2021-06-16T14:40:44.262089 | 2017-05-28T10:57:55 | 2017-05-28T10:57:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 915 | py | from flask import session, redirect, url_for, render_template, request
from . import main
from .forms import LoginForm
@main.route('/', methods=['GET', 'POST'])
def index():
"""Login form to enter a group."""
form = LoginForm()
if form.validate_on_submit():
session['name'] = form.name.data
... | [
"noreply@github.com"
] | nabeelshaikh91.noreply@github.com |
372c095ed0698ba58ec02f461f6ac2f7fd4c1965 | 25270c94477bb0e00cbd5d070ed1e7bbea04f9c2 | /classification/dataset.py | b355958efce6797cb838065083919a2c8b4c91db | [] | no_license | nvvaulin/icevision2019 | 610ff095bb247663b07dd00dfc46c690e3aa9f19 | 5eeb5122b1faab96ee7f3e7ff2ec871d9f3923b4 | refs/heads/master | 2022-10-30T21:41:05.681326 | 2019-07-15T13:52:01 | 2019-07-15T13:55:42 | 207,381,303 | 0 | 1 | null | 2022-10-21T10:50:28 | 2019-09-09T18:50:14 | Jupyter Notebook | UTF-8 | Python | false | false | 1,496 | py | import torch.utils.data
import numpy as np
import cv2
from PIL import Image
import torch
import json
import imageio
REMAP = '/media/storage/vyurchenko/projects/ice/rep/classification/remapping.json'
N_CLASSES=231
N_TRAIN = 142838
N_VAL = 4278
class FuckingDataset(torch.utils.data.Dataset):
def __init__(self, pa... | [
"simflin@gmail.com"
] | simflin@gmail.com |
f705c228eae226560ee5b50be43a23dc4c224a7b | 7278717e86713f3abbcd74c03612dd54a25d33db | /tor/tor-exits | 516c110d3593c7ee73a29e1fd4d7160b3dd5dde1 | [] | no_license | DinoRatcliffe/dotfiles | 5161611e21158d7f330041fcf1c3b967227a3db0 | 19293c069044991f0e83a04093b45e5b2d8812a1 | refs/heads/master | 2021-06-07T16:07:06.203744 | 2019-11-26T15:11:18 | 2019-11-26T15:11:18 | 33,443,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,412 | #!/usr/bin/python
from stem import Signal
import os
import time
from stem import CircStatus
from stem.control import Controller
import argparse
exits = {}
with Controller.from_port(port = 9051) as controller:
controller.authenticate()
for circ in controller.get_circuits():
if circ.status != CircStatus.BUI... | [
"yo@dino.io"
] | yo@dino.io | |
1173bf1c29ea1a2276e04426c8e1bafc771c2b30 | e1feb73c9821fe2b6cb1de6f7ac7a25ef29639c3 | /train_val_split.py | e7562f6e0e92682e364df93fd3672b294d710d3c | [] | no_license | aadithmoorthy/cs155_miniproject_1 | 3d5d6f8b2dbcc30fe8eb7cad1bb3b88a1ef82bb3 | 2f6e54ae0d27453625d9a2920bc709f90b12d8f3 | refs/heads/master | 2021-03-19T06:02:43.880993 | 2018-02-09T06:57:43 | 2018-02-09T06:57:43 | 119,757,717 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 546 | py | # repeatable train validation split for data; at initial stage, need a split
# so that we can avoid overfitting and train some hyperparameters
from sklearn.model_selection import train_test_split
import time
import numpy as np
t = time.time()
data = np.loadtxt('training_data.txt', skiprows=1)
print(data.shape)
print(... | [
"amoorthy@caltech.edu"
] | amoorthy@caltech.edu |
94485b47b5197c46ba938c2909f22c3494292725 | 27a990249b6c9c01c8f483ca0403c03259427515 | /data structure/NativeDictionary.py | d16bab2157f1e603642cfd621af38e52ac5528dc | [] | no_license | Barzabel/py | 2298bd108b3c157de433641c87363deb6ad942af | b67e34f837f43c1b3aa1c5f7ae35ff8ecf4ca3b0 | refs/heads/master | 2023-05-04T08:18:30.359224 | 2021-05-25T19:02:46 | 2021-05-25T19:02:46 | 277,311,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,289 | py | class NativeDictionary:
def __init__(self, sz):
self.size = sz
self.slots = [None] * self.size
self.values = [None] * self.size
def __Hash(self,value):
a = str(value)
res = 0
for x in range(len(a)):
res = (res // 5 + ord(a[x])) * 13 + 7
... | [
"noreply@github.com"
] | Barzabel.noreply@github.com |
7813136641ab491c66df1cc62ebbf197a2fa38e5 | 452b7ca4eea5b19b237e177060797d2207caf26b | /coremltools/converters/mil/mil/passes/test_passes.py | c61e97c304e72a7f875cad6dc92f2b272d29e774 | [
"BSD-3-Clause"
] | permissive | seibert/coremltools | bb891873137fb47b03529b848f728cd6c2bad10e | 609188ebcfee2178293f0d4e93a5af2995c88645 | refs/heads/main | 2023-06-20T02:20:24.935368 | 2021-07-01T18:47:00 | 2021-07-01T18:47:00 | 332,535,892 | 0 | 0 | BSD-3-Clause | 2021-01-24T19:23:18 | 2021-01-24T19:23:18 | null | UTF-8 | Python | false | false | 14,855 | py | # Copyright (c) 2020, Apple Inc. All rights reserved.
#
# Use of this source code is governed by a BSD-3-clause license that can be
# found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
from coremltools.converters.mil.mil import Builder as mb
from coremltools.converters.mil.testing_util... | [
"noreply@github.com"
] | seibert.noreply@github.com |
a75084fa17675a0b1c497281c9625602e38d3fa6 | 5f5631f2f750006ebfe8f351a544d33b8d9d5d4b | /list project 3.py | 497b1e1f4d17b9dcda04289b379e03957ff2dcfc | [] | no_license | jamesianreid/Python-Crash-Course-1 | 05fd9e0e3de98e32825b9d8499bc50ee7d10ef13 | e985db5f29e3d3ceb63c1e1b1a3a8e15ed336110 | refs/heads/master | 2020-05-07T16:15:07.549142 | 2019-04-10T23:45:36 | 2019-04-10T23:45:36 | 180,674,624 | 0 | 0 | null | 2019-04-10T23:45:37 | 2019-04-10T22:41:53 | Python | UTF-8 | Python | false | false | 694 | py | locations = ['usa', 'japan', 'australia', 'hawaii']
print(locations)
print(sorted(locations))
print(locations)
locations.reverse()
print(locations)
locations.reverse()
print(locations)
locations.sort()
print(locations)
locations.sort(reverse=True)
print(locations)
locations = ['usa', 'japan', 'australia',... | [
"noreply@github.com"
] | jamesianreid.noreply@github.com |
8f6121566f8997cf53defda685b5c0d0eb05a5bd | 649e5484a100ad359667f96d777a6996147562ef | /ecomsite/shop/migrations/0023_auto_20200709_2232.py | de0efa33996b7c0ecddf4b343598818286c830e0 | [] | no_license | goeltushar2210/goeltushar2210.github.io | 35dccba71cf81841b2c319aefa2bbd16b73b8a7f | bcc8bfdc555b643ee9fef2b7337fb2eecb0f76d6 | refs/heads/master | 2022-11-18T04:22:57.170620 | 2020-07-19T10:24:38 | 2020-07-19T10:24:38 | 280,831,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | # Generated by Django 2.2.13 on 2020-07-09 17:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shop', '0022_auto_20200709_2226'),
]
operations = [
migrations.AlterField(
model_name='about',
name='title',
... | [
"68200993+Nirpesh87@users.noreply.github.com"
] | 68200993+Nirpesh87@users.noreply.github.com |
37e52b404c039b0a5772c6347c94bc1a3be791c1 | 024c9921572dddfc76d17773799f0458934dd75e | /exp.py | 335d61616e0034d91f72222979686ba357bd2132 | [] | no_license | andychan94/tensorflow | 80253d96235b17e7c0ac3c184bbb1fdd457c8425 | 79bde6681bcaa9f6962c398169511c550bba3d33 | refs/heads/master | 2020-03-22T04:34:06.134489 | 2018-07-03T00:13:10 | 2018-07-03T00:13:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,101 | py | import tensorflow as tf
import numpy as np
import time
import csv
import sys
N = 1000
N_HL = 12
accuracy = 98
dim = {}
for i in range(1, N_HL + 1 + 1):
dim[str(i)] = 0
if (N_HL > 5):
for i in range(1, N_HL + 1 + 1):
dim[str(i)] = 3
else:
dim[str(1)] = 3
dim[str(2)] = 3
dim[str(3)] = 3
... | [
"nrashidov@yahoo.com"
] | nrashidov@yahoo.com |
0fffccdc51fc9326c1afbba7db934a81b41a5fac | 4aff067942325533514e696d8896add9164c255d | /CodeEval/test_challenge_8.py | 536482ea642680716cff5c8abbfb9888d0243af3 | [
"MIT"
] | permissive | andrewzwicky/puzzles | 678bea42ea8ada504a4002f7f1b239be62842166 | 7b264bb1442fa9c855c566ba92ad139a743683fc | refs/heads/master | 2022-12-24T02:10:05.178056 | 2022-12-14T06:43:37 | 2022-12-14T06:43:37 | 71,407,639 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | from unittest import TestCase
from CodeEval.challenge_8 import challenge
class Challenge7Test(TestCase):
def test_input_1(self):
self.assertEqual("World Hello", challenge("Hello World"))
def test_input_2(self):
self.assertEqual("CodeEval Hello", challenge("Hello CodeEval")) | [
"andrew.zwicky@gmail.com"
] | andrew.zwicky@gmail.com |
9dac850c79526f3beabdcec45af6f4746838cae8 | 8890ff61262ff98369464721c165d53aa9febe85 | /oauthlib/oauth2/draft25/parameters.py | 4343dcb259213b64ac4a8ce3151d29588e82f6c1 | [
"Apache-2.0"
] | permissive | Mause/tumblr_conn | 09e91bb86e6310ac3f9b0be292967283990558ea | e0ac78947355e41a8432a2a3e12fb86fb28a4c72 | refs/heads/master | 2022-06-15T05:30:27.737676 | 2013-04-29T20:19:57 | 2013-04-29T20:19:57 | 9,258,639 | 0 | 0 | null | 2022-05-17T03:16:49 | 2013-04-06T10:52:39 | JavaScript | UTF-8 | Python | false | false | 11,616 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
"""
oauthlib.oauth2_draft28.parameters
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This module contains methods related to `Section 4`_ of the OAuth 2 draft.
.. _`Section 4`: http://tools.ietf.org/html/draft-ietf-oauth-v2-28#section-4
"""
impor... | [
"jack.thatch@gmail.com"
] | jack.thatch@gmail.com |
bfded916f0c00ede56451a540fd87c8e2a4935f2 | 5bf72de60d67761fd14bfc3ccb9223c1bd02424e | /train_custom_compact_cnn_sgd.py | 8a92eb87b54f71ad2a799a7e05020344a22e22d3 | [] | no_license | ttpro1995/crowd_counting_framework | 41d0fb20fa09a51b311462a6f60289e2032aaaa4 | 86e4a0179b7a4b8caed185d64e1824f256fc88bd | refs/heads/master | 2021-06-30T02:47:13.283667 | 2021-01-14T02:04:29 | 2021-01-14T02:04:29 | 204,106,717 | 0 | 2 | null | 2021-01-14T02:04:31 | 2019-08-24T04:09:43 | Jupyter Notebook | UTF-8 | Python | false | false | 5,281 | py | from comet_ml import Experiment
from args_util import my_args_parse
from data_flow import get_train_val_list, get_dataloader, create_training_image_list, create_image_list
from ignite.engine import Events, create_supervised_trainer, create_supervised_evaluator
from ignite.metrics import Loss, MeanAbsoluteError, MeanSqu... | [
"thient@vng.com.vn"
] | thient@vng.com.vn |
58ac577ac562f09074872e4b8a5dc35f67865d5b | 737e3e9329fc9aa1bcacfb14ae3d6b88c5913755 | /01_hello/hello2.py | 391d0de51f126fd8af9f04e3f733087939a1e794 | [
"MIT"
] | permissive | Mesagan/tiny_python_projects | 61e9d389eb2cbbe08413bc6677a30e75ef43eb6f | f00feec1ee15527af75046b3e88d693124e57c7f | refs/heads/master | 2023-03-21T09:23:04.071644 | 2020-12-07T21:27:32 | 2020-12-07T21:27:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,973 | py | #!/usr/bin/env python3
"""
Author : adeptdabbler <adeptdabbler@localhost>
Date : 2020-12-07
Purpose: Rock the Casbah
"""
import argparse
# --------------------------------------------------
def get_args():
"""Get command-line arguments"""
parser = argparse.ArgumentParser(
description='Rock the Cas... | [
"62133005+adeptdabbler@users.noreply.github.com"
] | 62133005+adeptdabbler@users.noreply.github.com |
341c021b020af11bbca3772185980adea06e8070 | b32a2ac049c24559de7655c42d82f42ef808e3fa | /evaluation.py | c0cbb032cc43a7b6937f52fc666d844fd6b58316 | [] | no_license | 23AIBox/23AIBox-DeepCFP | 0a925d3544c273901e1183427d6dcc35b32e66d3 | 321e266285457776dd5994fc48285126ec2d365c | refs/heads/main | 2023-03-22T18:42:36.106783 | 2021-03-01T07:45:19 | 2021-03-01T07:45:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,427 | py | import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import os
import h5py
import argparse
from sklearn.metrics import roc_curve, precision_recall_curve, auc
def parse_args():
parser = argparse.ArgumentParser()
parser.add_argument(
"--path",
type=str,
default="./",
... | [
"1571537695@qq.com"
] | 1571537695@qq.com |
5d1ed16f74021d81791fe06902bd4b73932fecc5 | 4f9930e15c02cb9a09af70d66b794480b8c9bd57 | /batch2/batch/driver/instance.py | 364815e0ed0adbb5c8d315f693c218f81632683b | [
"MIT"
] | permissive | gsarma/hail | d76aa16d718618c1915b629077fd80cbc4d3b526 | 6aa2d945bb7d57c463d5ab9afb686f18c2941b25 | refs/heads/master | 2020-06-20T06:09:43.408615 | 2019-10-29T21:40:23 | 2019-10-29T21:40:23 | 196,250,453 | 0 | 0 | MIT | 2019-07-10T17:44:48 | 2019-07-10T17:44:47 | null | UTF-8 | Python | false | false | 10,380 | py | import time
import logging
import googleapiclient.errors
import asyncio
import aiohttp
log = logging.getLogger('instance')
class Instance:
@staticmethod
def from_record(inst_pool, record):
ip_address = record['ip_address']
pending = ip_address is None
active = ip_address is not None
... | [
"daniel.zidan.king@gmail.com"
] | daniel.zidan.king@gmail.com |
db2b8203bfcc6e719473a13b065bcf0d51007f50 | b15fd3fa4431c3bc0e9098b8ece4cb1e3bb45d50 | /data_providers/downloader.py | ec29f6d09b6514f00c036b6841ea965efcc7c89b | [] | no_license | SoulDuck/DenseNet | 0cdbb86f0cb4a685585f562374c894c165b3459f | 96581dd8e2df973560cf69ff99da211e91af55bb | refs/heads/master | 2021-07-10T04:22:31.868745 | 2017-10-06T13:23:57 | 2017-10-06T13:23:57 | 105,623,435 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,044 | py | import sys ,os
from urllib import urlretrieve
import tarfile
import zipfile
def report_download_progress(count , block_size , total_size):
pct_complete = float(count * block_size) / total_size
msg = "\r {0:1%} already downloader".format(pct_complete)
sys.stdout.write(msg)
sys.stdout.flush()
def dow... | [
"plznw4me@naver.com"
] | plznw4me@naver.com |
f23cb9acdc6c776111b450eedf217b61c528be40 | 198b4e4339464dff21547f3ad4341f711f688a19 | /src/migrations/0003-populate-is-fields.py | b0d1da577544efaa5bb56a49bff03e0edaf27510 | [] | no_license | serversquared/VirtualMimic | f5a412cf359e279daf40ec2f60524dcfdcedf1e5 | 5370b0c5752b83f6b07db11a6d1e8c6f44564ba4 | refs/heads/master | 2021-01-10T04:18:02.244956 | 2015-11-09T09:15:21 | 2015-11-09T09:15:21 | 45,758,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | from yoyo import step
step("""
UPDATE nodes
SET is_input=1
WHERE rowid
IN (SELECT input FROM nodes_to_nodes)
""")
step("""
UPDATE nodes
SET is_response=1
WHERE rowid
IN (SELECT response FROM nodes_to_nodes)
""")
''' #this doesn't work in sqlite
step("""UPDATE nodes n
JOIN nodes_to_nodes n2n
ON n.rowid=n2n.respons... | [
"shelvacu@gmail.com"
] | shelvacu@gmail.com |
3b8cad69619e1fd9a55f91bf856f0e57c24a48d5 | 9c06b4bfc52aefad5a648548e0c1b88536c2c5cf | /day8_caesar-cipher/main.py | d2e7f05e8cf46950ca7101c02f999b04a7b7a54d | [] | no_license | shivamkchoudhary/100_days_of_python | d46273b25a4d1e263ed4a15022722a813f4da4f0 | 8e07fcb02da266badfa3e977159dc2fa2f9be537 | refs/heads/main | 2023-02-27T20:21:55.287946 | 2021-02-04T14:16:41 | 2021-02-04T14:16:41 | 328,116,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,269 | py | alphabet = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
def caesar(start_text, shift_amount, cipher_dir... | [
"noreply@github.com"
] | shivamkchoudhary.noreply@github.com |
cc24ade3dbe16d3b5a03059c8ce9d9f80a2e3893 | 4903f9eb05dc427fd30afffc91a86d514b5675c5 | /text.py | b3e18078ba449e2a7352a78de60bf5689c4ae614 | [] | no_license | chuiming24/Xiaomi-miui-forum-automatic-reply-script | dc3df7bcf5ba917492c1b7d116effa92a759b98c | 7ffcc8510b9afb3f856bc66b877a809cd179e71d | refs/heads/master | 2020-03-21T22:12:27.943082 | 2018-06-29T07:20:22 | 2018-06-29T07:20:22 | 139,111,423 | 0 | 0 | null | 2018-06-29T06:42:35 | 2018-06-29T06:42:34 | null | UTF-8 | Python | false | false | 785 | py | import requests
import sys
import io
#sys.stdout = io.TextIOWrapper(sys.stdout.buffer,encoding='utf8') #改变标准输出的默认编码
#登录后才能访问的网页
url = 'http://www.miui.com/forum-705-1.html'
#浏览器登录后得到的cookie,也就是刚才复制的字符串
cookie_str = ''
#把cookie字符串处理成字典,以便接下来使用
cookies = {}
for line in cookie_str.split(';'):
key, value = line.spli... | [
"794960040@qq.com"
] | 794960040@qq.com |
e87825d506967f4e8307c20299f2712bab770efa | 0a9acbfe588e908d4a98336a1ae7a9281cb907df | /src/routes/compliance.py | 8f770cd32083bbb524cdab853b9aefa13a0f129d | [] | no_license | JoelAtDeluxe/template-flask-microservice | d246b8596f0cd3a29ebc0d9d1f4b0697b4584570 | 1e942f4f51b7215704502c253862225a0c2f9e6a | refs/heads/master | 2023-02-08T09:08:13.595677 | 2019-07-18T22:36:17 | 2019-07-18T22:36:17 | 193,128,944 | 0 | 0 | null | 2023-02-02T06:32:33 | 2019-06-21T16:23:32 | Python | UTF-8 | Python | false | false | 1,024 | py | from flask import (
Blueprint, request, redirect, url_for, current_app, jsonify, Response
)
from constants import STATE_NAME
bp = Blueprint('compliance', __name__, url_prefix='')
@bp.route("/")
def index() -> Response:
return oapi_docs()
@bp.route('/about/docs')
def oapi_docs() -> Response:
return redi... | [
"Hikash@gmail.com"
] | Hikash@gmail.com |
ee927a52b3654b7e823f1724aab3e3a4a33619fe | b7dca2e137c16bc2583e11f9a0d231a63642b04c | /poradnia/users/migrations/0027_alter_user_notify_old_cases.py | 1125ee02d0e7fb2b9d4431ded7a0d98385876394 | [
"MIT"
] | permissive | watchdogpolska/poradnia | 4ebc521e8ccfab0113d1a47cdf4469b758e90bdd | d679321a764218002e2c87ac71dd549208949b7e | refs/heads/master | 2023-08-16T20:29:31.720709 | 2023-04-28T18:50:09 | 2023-04-28T18:50:09 | 35,786,536 | 24 | 23 | MIT | 2023-07-13T06:59:38 | 2015-05-17T23:06:17 | JavaScript | UTF-8 | Python | false | false | 551 | py | # Generated by Django 3.2.18 on 2023-04-27 17:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("users", "0026_user_nicename"),
]
operations = [
migrations.AlterField(
model_name="user",
name="notify_old_cases",
... | [
"piotr.iwanski@gmail.com"
] | piotr.iwanski@gmail.com |
2cd1a1a76fe6766a6854de9064bedf52a1da8564 | a2f9d55d686425c4b47ce150aa1a23ea933055cc | /crossposting/spawnprocess.py | 0fa69d71efbd3ebead59242be16e3f573bf5535b | [] | no_license | wd5/blombum | b31c581f2c36c220164901189be1ba95a8341e0e | fe11efb369fe2cec67af1e79bc8935a266df2f80 | refs/heads/master | 2020-12-25T02:23:30.297939 | 2010-06-29T10:03:31 | 2010-06-29T10:03:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | #!/usr/bin/python
import subprocess
subprocess.Popen([
'/home/nide/code/kanobu/src/manage.py', 'rebuildindex', '--site_id', '4', '--parse', 'none'
])
subprocess.Popen([
'node', '/home/nide/code/blombum/crossposting/test.js'
], stdin = subprocess.PIPE).communicate('[{somevar: 1}, {somevar: 44}, {somevar: 22}]')
pr... | [
"nide@inbox.ru"
] | nide@inbox.ru |
03118278115ad6ae8c93d5f01c0608692b75ac87 | 28a09828c0e74950fddc31312a0f0d564cd5fcf8 | /qa/rpc-tests/listtransactions.py | c2c089651629658c2f354d1694265ce91eeebb3d | [
"MIT"
] | permissive | jestevez/community-source | ba58c0a26ed5f8cebe6e6b5f454b42f9d7b46a8c | d9664b55222acf99f4d9afd28205f14bcc8e238e | refs/heads/master | 2020-05-06T20:20:39.739051 | 2019-03-05T19:05:06 | 2019-03-05T19:05:06 | 180,233,996 | 2 | 0 | MIT | 2019-04-08T21:14:38 | 2019-04-08T21:14:38 | null | UTF-8 | Python | false | false | 10,110 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2016 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
# Exercise the listtransactions API
from test_framework.test_framework import BitcoinTestFramework
from ... | [
"48128427+thecripcommunity@users.noreply.github.com"
] | 48128427+thecripcommunity@users.noreply.github.com |
1db9cd06ecd2de3fa93a324083683bf0ef4d8763 | 60088f676a9ba7dd181e4c9c02e71c022a870200 | /minimal-mvt-aiohttp-pg.py | af2207bcfd26a75490f7f5fd537e8d57f29e4972 | [] | no_license | juanrmn/minimal-mvt | a91556d74c2911fd3cec18f36b1b7886e6cb01ea | 9472adf4485a2e9371952b886135633a78eb5e9a | refs/heads/master | 2021-02-10T21:45:23.588336 | 2020-03-11T18:39:51 | 2020-03-11T18:39:51 | 244,422,404 | 0 | 0 | null | 2020-03-02T16:43:55 | 2020-03-02T16:43:55 | null | UTF-8 | Python | false | false | 1,851 | py | import sys
import signal
import asyncio
from aiohttp import web
import aiohttp_cors
import asyncpg
import logging
logging.basicConfig(level=logging.INFO)
# Database to connect to
DATABASE = {
'user': 'postgres',
'password': 'XXX',
'host': 'XXX',
'port': '5432',
'database': 'postgres'
}... | [
"juanr.gonzalez@gmail.com"
] | juanr.gonzalez@gmail.com |
c5628a99b88ae9056bddcc5bed38fbd8e17d0b8c | 212ba69f343ba25f3b525c3670d67d6338a3f803 | /old/problems/k_sum.py | 2ec6e49a5015aa42e9bdfb5d58e445abce29dfd5 | [] | no_license | jalexanderbryant/python-practice | 5fa6bad5ed78b3eaf4a84535ffeb16ea13319569 | 6a45a8411e9747642d022e4c8c1468ffd3e271df | refs/heads/master | 2021-07-20T06:58:46.805496 | 2020-11-01T21:14:01 | 2020-11-01T21:14:01 | 113,541,365 | 0 | 0 | null | 2021-04-20T18:53:54 | 2017-12-08T06:44:30 | Python | UTF-8 | Python | false | false | 911 | py | """
Given a list of numbers and a number k, return whether any two numbers from the list add up to k.
For example, given [10, 15, 3, 7] and k of 17, return true since 10 + 7 is 17.
Bonus: Can you do this in one pass?
"""
def sum_to_k(list, k):
table = {}
for elem in list:
compliment = k - elem
... | [
"j.alexanderbryant@knights.ucf.edu"
] | j.alexanderbryant@knights.ucf.edu |
51da8e312770d0a2581c84ac2ef664dca607d04f | 3d6bb3df9ca1d0de6f749b927531de0790aa2e1d | /full_segmentation_histogram_creator.py | 97bc397018dc6ce79e45c96098caf6d100fa396d | [] | no_license | standardgalactic/kuhner-python | da1d66a6d638a9a379ba6bae2affdf151f8c27c5 | 30b73554cc8bc9d532c8108b34dd1a056596fec7 | refs/heads/master | 2023-07-07T04:18:30.634268 | 2020-04-06T04:37:48 | 2020-04-06T04:37:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,715 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Sep 1 12:43:28 2016
@author: lpsmith
"""
from __future__ import division
from os import walk
import lucianSNPLibrary as lsl
nsamples_min = 10 #Arbitrary value: minimum number of samples we require
data10_12 = []
data13_20 = []
data21_50 = []
data51_500 = []
data501_5000 =... | [
"lpsmith@uw.edu"
] | lpsmith@uw.edu |
e8714022d3cbf4892839c9eca75ddc708a6f2f80 | e312a1a9b17ad4a85577d504f48761888d9c30b2 | /catkin_ws/build/rosserial_server/catkin_generated/generate_cached_setup.py | 9d0af48f3eaf84d5e840dda83dd395d2daa619bf | [] | no_license | scott364/Mobilebot | 1e2092c01fcfb5dd72a5a36f149f1ff5efaaa828 | 53bd6349c1e1d12690c59e8a18ffb8efc6cecfb8 | refs/heads/master | 2023-06-24T22:09:29.709962 | 2021-07-27T22:16:51 | 2021-07-27T22:16:51 | 390,138,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,329 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/melodic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.path.insert(0, ... | [
"scsc1908@colorado.edu"
] | scsc1908@colorado.edu |
f11ba3a4bd09e05c6f1c859a5f312c8b52ff7989 | 2866c8f2a5d7b7882ad72519261b511dbd1bf8c3 | /test.py | 9584b3bdfab1bf50998a17fa2d141c104e62e476 | [] | no_license | ikki407/Otto | f1d878273d793ebaafc32d6eb55d60188f8b471b | 0a686b88425336c70698585724e102f772062df7 | refs/heads/master | 2021-01-11T11:03:23.315780 | 2015-12-30T15:48:45 | 2015-12-30T15:48:45 | 37,064,088 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,146 | py | #!/usr/bin/env python
from __future__ import print_function
import otto
import random
from hashlib import sha1
from sklearn.feature_extraction import DictVectorizer
from sklearn.ensemble import GradientBoostingClassifier, RandomForestClassifier
from sklearn.pipeline import make_pipeline
from sklearn.metrics import m... | [
"IkkiTanaka@Ikki-Tanakano-MacBook-Pro.local"
] | IkkiTanaka@Ikki-Tanakano-MacBook-Pro.local |
99729f87bea17a7c98b4904b1d3c1b4d7b51042d | 0ec6a843bbfc56405bdbc63d285f6e5d65acb93b | /07_Cifar10_100_CNN/13_cifar100_CNN_With.py | 6e877b7bbae9badb15f5bfd50633ad45a81d6554 | [] | no_license | RichardMinsooGo-ML/TF1_2_machie_learning_MNIST_CNN | 579e7061af78a4e2a82eee678ce8a22d3b7b0129 | c22b7f8058939689060e4ce9c447111a4e3eb5f4 | refs/heads/master | 2022-12-15T16:42:37.426986 | 2020-09-11T01:19:00 | 2020-09-11T01:19:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,058 | py | import tensorflow as tf
import numpy as np
# CIFAR-10 데이터를 다운로드 받기 위한 keras의 helper 함수인 load_data 함수를 임포트합니다.
from tensorflow.keras.datasets.cifar100 import load_data
N_EPISODES = 20
batch_size = 100
# 다음 배치를 읽어오기 위한 next_batch 유틸리티 함수를 정의합니다.
def next_batch(num, data, labels):
'''
`num` 개수 만큼의 랜덤한 샘플들과 레이블들... | [
"noreply@github.com"
] | RichardMinsooGo-ML.noreply@github.com |
25a3912d62dad734ce54ac0d003143bffb64ecc5 | 9f7a2d89efaabb52d9cede98db934b1660fab0ca | /exe49.py | 889c56b1de61f3f0a46fefd962dec12738f3ee96 | [] | no_license | WesleyTi/Exercicios-Python | 0be2d495d1e3b1ed81ee395b4b60a53f51fd0fbe | 48bda146dc80c2765da161c2c9a484fbf9aea435 | refs/heads/master | 2022-12-01T13:06:55.310291 | 2020-08-26T03:22:22 | 2020-08-26T03:22:22 | 290,366,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | #coding: utf-8
#Refaça o desafio 009, mostrando a tabuada de um número que o usuário escolher,
# só que agora utilizando um laço for.
num = int(input('Digite um número para ver sua tabuada: '))
for c in range(1, 11):
resultado = num * c
print('{} x {:2} = {}'.format(num, c, resultado))
| [
"you@example.comwesley@worc.com.br"
] | you@example.comwesley@worc.com.br |
87eb88d102f76159683c01cee2a711c5e2d9b455 | 3fbd26091ebbc13913f9c7be1aaf10d477c79536 | /week01/zuoye/maoyan_scrapy/.history/manyan/manyan/spiders/maoyan_20200628205729.py | 1a0055be6d8db820c15c61f6e0e0a0a3b3f37f7a | [] | no_license | shuncon/Python001-class01 | d28faf3d5d8e9ea4cee93bcae7143a26fd8c472e | df19758181cdaf37f30d4b518600fc4612590499 | refs/heads/master | 2022-11-13T19:31:27.019214 | 2020-07-10T14:58:25 | 2020-07-10T14:58:25 | 273,135,541 | 0 | 0 | null | 2020-06-18T03:46:56 | 2020-06-18T03:46:55 | null | UTF-8 | Python | false | false | 63 | py | import scrapy
class Maoyanspider(scrapy.Spider):
name= '' | [
"1428834423@qq.com"
] | 1428834423@qq.com |
66e691f47c861d7a66d9fbbc7773a7d02a050be9 | 4792a301bbcd81e826d42068c3ba852f82a0642b | /slim/deployment/model_deploy.py | 5ac1e3ca368f06cd50ced295c771bd9c491ea73e | [] | no_license | fogfog2/deeplab | 813f6c820f851cc7967df85f650d1553e10ac030 | 17aa6f839c7f2aa6a58b8e9792f9df06282425f9 | refs/heads/master | 2022-12-11T17:03:33.291366 | 2020-09-13T08:10:10 | 2020-09-13T08:10:10 | 289,831,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,842 | py | # Copyright 2016 The TensorFlow 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 ... | [
"s-eungju-n@hanmail.net"
] | s-eungju-n@hanmail.net |
5ed175518b8b11b9c76c3dd60d7b5ce0f445c19a | 84ec34dc0159f28e5085f7696be4bf586eaef32f | /fibonacci/fibbonaaci.py | 5ade7ef78e079aa6c524707b6e117ed9f387780f | [] | no_license | kumaraswins/Coursera-Algorithm-Toolbox | f187431758983a39d187c789ceb377415c7689fa | bc096471a1c0ec3069e54b70a6d4399f75673789 | refs/heads/master | 2022-04-24T10:08:10.972094 | 2020-04-27T05:24:57 | 2020-04-27T05:24:57 | 255,663,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | # python 3
n = int(input())
if n <= 1:
print(n)
quit()
def fib(n):
a, b = 0, 1
for _ in range(n-1):
c = a + b
b, a = c, b
print(c)
fib(n) | [
"kumaraswins@gmail.com"
] | kumaraswins@gmail.com |
46054b908ed5d924e13fa4414505f33c1d67974c | 0fb10e07046aad91be64f0c452a60d76c051efc7 | /mps_20160521/differential.py | 0947572501fdd03b916bfca32add3b8764824962 | [
"MIT"
] | permissive | wararaki718/mps | 9df6bccda0b13895f598b9823d5adc7e26b3c412 | 036263fc780a10fd3866704885ce9d9912e527d5 | refs/heads/master | 2021-06-01T04:03:18.013304 | 2016-05-23T15:41:04 | 2016-05-23T15:41:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 762 | py | # import library
import math
# define an accepted rate
accepted_error = 0.1
delta_x = 0.01
learning_rate = 0.05
number_of_trial = 1000
# test function
# f(x) = x^2
def test_func(x):
return x ** 2
# differential function
# f'(x) = (f(x_1) - f(x_0)) / (x_1 - x_0)
def diff(f, x):
return (f(x + delta_x) - f(x)... | [
"wararaki@wararaki-no-MacBook-Air.local"
] | wararaki@wararaki-no-MacBook-Air.local |
7f83aa1abe81599af869a8bf8a594a065d07480b | cbf407a1c9f18a6d0b94099586c59f1422933bb5 | /tensorflow_probability/python/distributions/joint_distribution_test.py | 0c69d5acd7131ced38a4030055c85676aa8c2225 | [
"Apache-2.0"
] | permissive | idofr/probability | eef7db7709e0309a6a132d6ce5e2423ae5f9ff17 | c8fa646de563cc3ddc9b375538bf5b613a318a46 | refs/heads/master | 2020-05-05T04:05:34.757494 | 2019-04-04T21:09:57 | 2019-04-04T21:10:45 | 179,697,040 | 1 | 0 | null | 2019-04-05T14:26:21 | 2019-04-05T14:26:21 | null | UTF-8 | Python | false | false | 10,474 | py | # Copyright 2018 The TensorFlow Probability 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 applicable law o... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
b09f43d8449ac36d1c6a2db23edc1b00cf44c6f2 | ff7d2f841de829a358246659b35dac7ac84d2e34 | /InsertTimestamp.py | 96d17d9e3716e5870ffb2ea09c49710875bdbaae | [
"MIT"
] | permissive | fricklerhandwerk/InsertTimestamp | 418f5ce85948634df331b2c4ea3884c7dfadce7e | 29a68309fbbbf7aca91c3e5e9b65e496ae67423e | refs/heads/master | 2021-01-19T12:51:58.645004 | 2017-02-17T22:58:25 | 2017-02-19T14:39:16 | 82,345,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | import sublime_plugin
from datetime import datetime
from datetime import timezone
class InsertTimestampCommand(sublime_plugin.TextCommand):
def run(self, edit, fmt='%Y-%m-%dT%H:%M:%S%z'):
time = datetime.now(timezone.utc) \
.astimezone() \
.strftime(fmt)
... | [
"valentin@fricklerhandwerk.de"
] | valentin@fricklerhandwerk.de |
a7cb86c2e4cbd4332442225c33eccf63b66b7f00 | de4e1332950d37707620c54a9613258c1dd9489c | /dongyeop/4주차/주식가격.py | 66a1fd2587ee46a60471b010445f940fe0c01ebf | [] | no_license | PnuLikeLion9th/Summer_algorithm | 8fe74066b9673fb891b7205f75f808a04c7fe750 | dcfcb6325854b3b4c529451d5c6b162298b53bc1 | refs/heads/master | 2023-07-10T13:57:05.511432 | 2021-08-15T07:50:00 | 2021-08-15T07:50:00 | 378,679,514 | 3 | 10 | null | 2021-08-15T07:50:01 | 2021-06-20T15:32:18 | Python | UTF-8 | Python | false | false | 943 | py | # 브루트포스
# def solution(prices):
# answer=[0]*len(prices)
# for i in range(len(prices)):
# for j in range(i+1,len(prices)):
# if prices[i] <=prices[j]:
# answer[i]+=1
# else:
# answer[i]+=1
# break
# return answer
def solution(pr... | [
"ckehdduq95@gmail.com"
] | ckehdduq95@gmail.com |
a9959f969e1eb4d2abb88b4c50c283f909536ea4 | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/H/hanse/vol_essen.py | b2d4485b5664a460fc906ebcf35661445fb64799 | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,428 | py | import scraperwiki
import lxml.html
pageCounter = 1
while True:
page = scraperwiki.scrape("http://essen.vol.at/welcome.asp?page=%d" % (pageCounter))
root = lxml.html.fromstring(page)
for entry in root.cssselect('div[class="Entry"]'):
data={
"Name":entry.cssselect... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
49e40de4d1afb965c252fe55ede685c52e6ea490 | f8b41c788bcf0d895a5270e1e7c4f6085871b770 | /Uge 10/.history/iris_meanshift_20200331121352.py | 5390563e268d99e9985055db1b7919d076f07c2c | [] | no_license | Simonkruse2/Python_afleveringer | 0cb72d372556768d568bd2a5ca5ebecfca79653f | 5af0a492e8ae28c2b39e1f6c7de2bedfcc340c15 | refs/heads/master | 2020-12-22T13:23:53.663778 | 2020-05-22T10:21:54 | 2020-05-22T10:21:54 | 236,796,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,603 | py | # Exercise meanshift
# load 'iris_data.csv' into a dataframe
# get unique labels (Species column)
# plot with a scatter plot each iris flower sample colored by label (3 different colors)
# use: MeanShift and estimate_bandwidth from sklearn.cluster to first estimate bandwidth and then get the clusters (HINT: estimate_ba... | [
"Simonkruse2@gmail.com"
] | Simonkruse2@gmail.com |
731bb20a4c55f891b7b01b7882c24962d5ed80ac | 69e9ec4118a05d05f052c1f79dde1581312ea32a | /Exp1_questionnaire/pages.py | 8bb3af2690c39e454f48efdfc67207847deeb407 | [] | no_license | Anyish61/otree_HW2_0707 | 0774a2b4556918fad2793a404752c99ed1a511f9 | f5c3f715ce59f84d133d6f0e513e9dd2fec38202 | refs/heads/master | 2022-11-17T04:48:08.723764 | 2020-07-07T04:11:11 | 2020-07-07T04:11:11 | 277,713,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,945 | py | from otree.api import Currency as c, currency_range
from ._builtin import Page, WaitPage
from .models import Constants, WaitingPeriod, GainedAmount
from random import randint
import random
class Questionnaire(Page):
form_model = 'player'
form_fields = [
'waiting_period',
'sooner_period',
... | [
"b06303108@ntu.edu.tw"
] | b06303108@ntu.edu.tw |
bda191301750ca690fb5cac1d9f9abe3f859c48c | b773ca4e5f4a8642149316d3aded4c8b1e6037d2 | /sprint-challenge/aq_dashboard.py | e05d226a6c975acfb3676de3141310ccde108ea6 | [
"MIT"
] | permissive | echiyembekeza/DS-Unit-3-Sprint-3-Productization-and-Cloud | c2157e9078ec49b1f59d28220146a197dda3b25c | 64958ae8e9d2310d6c72606109a6ccf456bc5949 | refs/heads/master | 2020-08-04T18:39:27.405320 | 2019-12-11T03:11:28 | 2019-12-11T03:11:28 | 212,239,896 | 0 | 0 | MIT | 2019-10-02T02:27:48 | 2019-10-02T02:27:48 | null | UTF-8 | Python | false | false | 1,662 | py | """OpenAQ Air Quality Dashboard with Flask."""
from flask import Flask, request
from flask_sqlalchemy import SQLAlchemy
from decouple import config
from os import getenv
import openaq
APP = Flask(__name__)
APP.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///db.sqlite3'
DB = SQLAlchemy(APP)
API = openaq.OpenAQ()
mmen... | [
"username@users.noreply.github.com"
] | username@users.noreply.github.com |
0aa502236804754deb0fe6bded9773f39bdce896 | dd2625e9b05b12d8b9bb8727392f2b4cd4eac11f | /All checklists/Data_entry_gr/Dataentry (1).py | 973e883749b592e40f68b1d9a5f92e31542d917c | [] | no_license | billhufnagle/Zea-IT | 07f083a89f34867abdf21bd931f9657255395775 | 7da601002323227afb346f3ab08c898214477175 | refs/heads/master | 2020-03-25T15:59:33.545028 | 2018-08-15T19:09:10 | 2018-08-15T19:09:10 | 143,910,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,265 | py | #GUI application for data entry from the grow room checklist
#Writes to .csv file as well as the growroomwalkthrough table
# in the datacollection database on the "Dataentrylaptop"
#
from tkinter import *
import datetime
import MySQLdb
#creates a class which will become our application
#inside of this we make our appl... | [
"whufnagle6@gmail.com"
] | whufnagle6@gmail.com |
bb69c9c8395c9a25148ec73ce40eadd561645c4c | dd5cb6b5e2cb9ddc6a361eff13abc82aae8e49b1 | /mem_app/apps.py | 8faa3b039a1be128ac0106f507c7bc15bca12362 | [] | no_license | djjohnsongeek/memorize | 1d8d13c79915180dc16202faaf4116b6d75eb2d6 | c540de01ffe11164d9256d8c009f17842349005b | refs/heads/master | 2022-12-09T20:41:16.283776 | 2022-10-27T12:38:28 | 2022-10-27T12:38:28 | 199,750,559 | 0 | 0 | null | 2022-12-08T06:05:16 | 2019-07-31T00:58:39 | CSS | UTF-8 | Python | false | false | 88 | py | from django.apps import AppConfig
class MemAppConfig(AppConfig):
name = 'mem_app'
| [
"danieleejohnson@gmail.com"
] | danieleejohnson@gmail.com |
99169552959f905fd2575d8516a93e69cb86524c | ea1170d1a6e3cf1cb4f01098c6d0cc8dfd12258b | /setup.py | c87de217f54c9542f4e705a93fbb073378aaedd5 | [
"MIT"
] | permissive | afansv/async-rethinkdb-pool | c95b2ed83065d09863240b9f439d52b4cbd2d5ab | 0d4fa871c0a15a39486b2f1f200678573d59214e | refs/heads/master | 2021-04-06T02:05:40.685662 | 2017-12-20T11:21:25 | 2017-12-20T11:21:25 | 124,897,370 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,039 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The setup script."""
from setuptools import setup, find_packages
with open('README.rst') as readme_file:
readme = readme_file.read()
setup(
name='async-repool',
version='0.2.1',
description="AsyncIO connection pool for RethinkDB",
long_descripti... | [
"siredvin.dark@gmail.com"
] | siredvin.dark@gmail.com |
695d0d073402440740fc8500b7e5f345c02b68c8 | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Projects/Learn/PyCharm/Introduction to Python/Condition expressions/Boolean operators/tests.py | 470706706d0ff91198294d3ffe34a83d348960e6 | [
"LicenseRef-scancode-other-permissive"
] | permissive | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:539e49395fbd7e0e4b30294456efe7d922a26823d5ac4c0eea6d348bb18cfba3
size 413
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
442012364b8cb87fcd92db37fa9253814865448b | fe4247267a21b4d76bbf3ec3ea560453b93b4c88 | /utils.py | 7b45a802acb8c9bdf2413f88af09312fb34b37a2 | [] | no_license | dudmel/Flask | 0b5715a3256117f584a3405e2e5240647a837495 | f048c2547aff34774e143107a5fd034a8d13e956 | refs/heads/master | 2021-01-11T18:05:22.871050 | 2017-01-19T20:02:54 | 2017-01-19T20:02:54 | 79,489,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,140 | py | import datetime, time
import glob
import os
import consts as consts
TRUE = 1
FALSE = 0
# Delete all cache and .pyc files
def clean():
filelist = glob.glob("*.cache")
for f in filelist:
os.remove(f) # delete all cache files
# Wrap response data in 'data' key.
def wrap_data(data, msg=None, error=No... | [
"dudu@misterbit.co.il"
] | dudu@misterbit.co.il |
afc616a9f4fb8236030e4eb8ceecb618d9cae8a0 | 480eb12d0d2ac9341ecd924113775379f848c1c6 | /.heroku/python/bin/markdown_py | fdc5bbeb9445538ca1a8e2a44400906f2b7f5eaa | [] | no_license | RobertoMarroquin/pm | 7c62b120b1bb3ad1a6adaeedfc2a27396670eac6 | 065dbd1161f9022fd30daeb40b4d58f2f4c48641 | refs/heads/main | 2023-03-14T02:48:20.320209 | 2021-03-10T14:55:00 | 2021-03-10T14:55:00 | 335,676,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | #!/app/.heroku/python/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from markdown.__main__ import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"robma96@gmail.com"
] | robma96@gmail.com | |
fed00145a3c5c1d30b45f1db88141ea13698f559 | 09a2f88ce6b1d524acb0b08efc59d90792e3c92e | /dictionaries.py | 55fdd9cbf5ef35f2a4a98d9f4ca814794aa0a117 | [] | no_license | chepkoy/python_fundamentals | 3afe6f197449eac0b023ea145123fd98c18c3006 | 1fa58615dc33af0cdf73f654c3f3143d6bff8a96 | refs/heads/master | 2021-08-24T02:11:55.350990 | 2017-12-07T15:54:54 | 2017-12-07T15:54:54 | 112,932,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,557 | py | from pprint import pprint as pp
urls = {
'Google': 'http://google.com',
'pluralsight': 'http://pluralsight.com',
'Microsoft ': 'http://microsoft.com'
}
# dict constructor accepting iterable series of key-value 2-tuples
names_and_ages = [('allan', 24),('naomi', 19), ('brian', 13)]
d = dict(names_and_ages)
... | [
"allankiplangat22@gmail.com"
] | allankiplangat22@gmail.com |
8562ba8f450a3ced6da3f1576b0ff963b7a108a6 | f76f79d346adc4c51060855a0d647a3cfb695f97 | /OBRecaptcha.py | a66e8e2aab9aea2b43d3d96ea95b6bde10b5c834 | [] | no_license | DandyDrop/OBRecaptcha | ec9b923616180e5e8e5337574a442792f20762d3 | 73dd859a9c4f2a3d75ead08634d0319f1c4f89e7 | refs/heads/main | 2023-08-14T17:51:03.143093 | 2021-09-20T13:35:29 | 2021-09-20T13:35:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,043 | py | import os
import requests
from colorama import Fore
from urllib import parse
from bs4 import BeautifulSoup
def logo():
os.system("cls")
print(Fore.CYAN +" ███████ ███████████ ███████████ █████ █████ ")
print(Fore.CYAN +" ██... | [
"noreply@github.com"
] | DandyDrop.noreply@github.com |
c71579c82c51f1e0a6ead2b6f2ae860c6142c8b8 | f5e589f51144af30d27cd2da39f134ceda995318 | /ssong/ssong/spiders/singlesong.py | bee1d0ebb5acbe3f98aa874d99ad0b113b67d652 | [] | no_license | umangsuthar/test | e1c865481e14fd8b6d5f8de50d02c0f94b8aa92c | a7171ad67ec6f111e3e05dc675e332ee4752bb2e | refs/heads/master | 2020-04-17T10:58:02.842579 | 2016-08-28T06:46:11 | 2016-08-28T06:46:11 | 66,753,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,757 | py | import scrapy
import time
from scrapy.selector import HtmlXPathSelector
from ssong.items import SsongItem
class scrp(scrapy.Spider):
name = "scr"
allowed_domains = ["songsmp3.net"]
start_urls = ["http://songsmp3.net/"]
def parse(self,response):
sel = response.selector.xpath("//div[@class='list_box_2']/div[@class=... | [
"sahajanand@sahajanand-VirtualBox.(none)"
] | sahajanand@sahajanand-VirtualBox.(none) |
318a74534f2ec00ecb9d3d2d90042ac5ad963a45 | 56a7dd75f2a3f45d599ca89aaa9ca45390fbd546 | /ejercicios_preparcialito/parcialito_2/diccionarios/ejercicio_62.py | 28412a76c350229698e62a66e240a63a6c3ce189 | [] | no_license | facundoPri/algoritmo-programacion-i-essaya | e030d74de832b7642ff84a77212f8ea429d560d8 | 5ff7a8fc66f6683d47bc9faf80a35f9902b1e1a3 | refs/heads/master | 2023-04-07T01:04:10.221473 | 2021-04-10T13:05:59 | 2021-04-10T13:05:59 | 299,450,415 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 563 | py | """
Escribir una función que reciba una cadena y devuelva un diccionario cuyas claves sean las letras y cuyos valores sean la cantidad de apariciones de dicha letra. Por ejemplo, si recibe 'catamarca' debe devolver: {'c':2, 'a':4, 't':1, 'r':1, 'm':1}.
"""
def contar_caracteres(cadena):
"""
Recibe una cadena
... | [
"facundo.prieto321@gmail.com"
] | facundo.prieto321@gmail.com |
ec8498ae54869540f229014677d6853284fde9fc | d4c67b2a12e990d4193e7ab06f04824a348067bf | /rl_trainer/ddpg_impl/flower/actor_critic/tf_ddpg_agent.py | 68c2dcbba15a6708b6789a492d9ba35ba24c020f | [
"BSD-3-Clause"
] | permissive | Roboy/nips-2018-ai-for-prosthetics | 2d57688ce85126379793e8643cbf0030c8f56beb | acb69f267a0cc852842828edbbfb47d1840c0a17 | refs/heads/master | 2020-03-26T05:39:25.565440 | 2018-11-01T23:28:08 | 2018-11-01T23:28:08 | 144,567,613 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,073 | py | import numpy as np
from typing import Callable, Collection
import tensorflow as tf
from gym.spaces import Box
from overrides import overrides
from typeguard import typechecked
from rl_trainer.agent import GymAgent
from rl_trainer.agent.replay_buffer import ReplayBuffer, InMemoryReplayBuffer
from rl_trainer.commons im... | [
"tomas.ruiz.te@gmail.com"
] | tomas.ruiz.te@gmail.com |
eb4a13c90d67f6bd864345caa861e78d8d623710 | a444cf1a175a5a51518e6e1cab8d5f5276c65799 | /laboratorios/internal/migrations/0029_auto_20170703_0059.py | 99c793b7b1c025400be01cdb4522cce2c16d2b19 | [] | no_license | mvasquezb/LaboratoriosPUCP | 9e4eb0cf8cd36aa25454181d08d208a87afbf775 | e68138afd8609341b1b2d08783aab9fb2ba1231c | refs/heads/dev | 2022-12-11T00:42:42.249222 | 2018-02-03T19:07:12 | 2018-02-03T19:07:12 | 90,681,793 | 1 | 3 | null | 2022-12-08T00:00:31 | 2017-05-08T23:34:35 | HTML | UTF-8 | Python | false | false | 456 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-07-03 05:59
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('internal', '0028_auto_20170702_1445'),
]
operations = [
migrations.AlterFie... | [
"pedromvasquezb@gmail.com"
] | pedromvasquezb@gmail.com |
e1c04602eb11935c3019f76fedd8f5debbf6c2c4 | b9c4c4e2ba9a54cf79169bb2c43e29b6994618f4 | /source/webapp/models.py | 5d3cd21c50b5fbf0b491d7e211c3065189b6e5ec | [] | no_license | big-arturka/exam_9 | 37bf8be08e0fd922bf36b0663babd4611d1ffb04 | 3505e39d9e2110c2912fc7f474e6ec297a8df4dd | refs/heads/master | 2022-12-31T14:06:53.576579 | 2020-10-24T13:24:24 | 2020-10-24T13:24:24 | 306,677,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,384 | py | from django.contrib.auth import get_user_model
from django.contrib.auth.models import User
from django.db import models
class Photo(models.Model):
image = models.ImageField(upload_to='images', verbose_name='Фото')
signature = models.CharField(max_length=200, verbose_name='Подпись')
created_at = models.Dat... | [
"arturkrmnlv10@gmail.com"
] | arturkrmnlv10@gmail.com |
1a1dd1f93a63fea7f3054032927803590145ddbe | 9e69cc08bf4dba7332664bb4ea71825994b104c9 | /app/core/management/commands/wait_for_db.py | cceda395bc524f1974cf84e1425101e46421a76d | [
"MIT"
] | permissive | shakyaabiral/recipe-app-api | c2366983d8564b89a62ace1cfd4cbd9b7f47f046 | df9808ac1228db41912e219f6801f7d9fd6b5a6a | refs/heads/master | 2020-05-14T01:23:30.687135 | 2019-05-11T02:59:22 | 2019-05-11T02:59:22 | 181,684,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 693 | py | import time
from django.db import connections
from django.db.utils import OperationalError
from django.core.management.base import BaseCommand
class Command(BaseCommand):
"""Django command to pause execution until database is available"""
def handle(self, *args, **options):
self.stdout.wr... | [
"vagrant@vector.dev"
] | vagrant@vector.dev |
5f4aab11e41cbd3cd0d09e612d2a35bd928daf3b | d5203f57d89e44c20d3ee344e54c409070b732e4 | /2D_peak_finding.py | bb2f830701eda2bf738e66cef83e3b6e01c47822 | [] | no_license | bjs9yv/Other | 7a52bd921b1a8ff147ca279f425020ebc83c442c | ad7cc85069190cbf54d859b94f17cb30c6029ff6 | refs/heads/master | 2021-01-10T14:09:40.389706 | 2016-02-23T04:40:39 | 2016-02-23T04:40:39 | 52,330,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | # return a local peak in a 2D array
def find_peak(a):
if len(a) <= 3:
return max(a)
middle = len(a)/2
left_lower = a[middle] > a[middle-1]
right_lower = a[middle] > a[middle+1]
if left_lower and right_lower:
# peak found
return a[middle]
elif left_lower and not right_low... | [
"bjs9yv@virginia.edu"
] | bjs9yv@virginia.edu |
435181fce498698200dc379f5d88d9529f25d5f8 | 85158da987280192964040ffb941bfac3d5c2644 | /Medium/0230_Kth_Smallest_BST.py | 40473ae198e0a367ade8d78abda335101c54d019 | [] | no_license | concealedtea/Coding-Interview-Prep | 223cce0c63c65c7180239e7abe7dc8ae0f5453d3 | 4bc1f0cabd59456dadf54bdae2f10fa5bdf6c71e | refs/heads/master | 2022-11-19T07:20:29.188922 | 2020-07-30T06:08:46 | 2020-07-30T06:08:46 | 192,228,821 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution(object):
def kthSmallest(self, root, k):
"""
:type root: TreeNode
:type k: in... | [
"juliusfan98@gmail.com"
] | juliusfan98@gmail.com |
46eba0bc20abb0447c20cf415650e475878b0ed9 | 34313dd0b7a915ab3e4beba76f8586ed7d5ae078 | /learning_racer/config/__init__.py | 8929c4ffe52b85e558ab1a19ebfbf604dbb01149 | [
"MIT"
] | permissive | masato-ka/airc-rl-agent | 81d2e9369ab2d24605d3eefc92a9d076b9e49b1c | af675a9ac449ae3819d7f0799c4fc66b0ef6fc82 | refs/heads/master | 2022-07-23T07:58:06.659529 | 2022-07-03T12:54:30 | 2022-07-03T12:57:53 | 239,724,933 | 86 | 30 | null | null | null | null | UTF-8 | Python | false | false | 33 | py | from .config import ConfigReader
| [
"jp6uzv@gmail.com"
] | jp6uzv@gmail.com |
e0cc3404720da69dcd2ca3f838239948afb93ce6 | 54c07f4e781838f50c8220c275d94e69cec40483 | /tabel_competition/pipline/regression/lib/adversarial_validation.py | 653838c534de202d1896a527b3d22fe002841c53 | [] | no_license | hirayukis/kaggle-my-favorite-technique | b39f102dd008731c6516ac8b2c43e1e5ec2b4db7 | 9128d5a098116eb23a39e08d3ede45802c87b89d | refs/heads/master | 2023-04-20T18:43:11.462673 | 2021-05-13T07:38:20 | 2021-05-13T07:38:20 | 261,166,945 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,953 | py | import lightgbm as lgb
import numpy as np
import pandas as pd
import seaborn as sns
from matplotlib import pyplot as plt
from sklearn.model_selection import train_test_split
from sklearn.metrics import roc_auc_score, roc_curve
def plot_roc_feat(y_trues, y_preds, labels, est, filename, cols, x_max=1.0):
fig, ax = ... | [
"ykbhiralmec@gmail.com"
] | ykbhiralmec@gmail.com |
e44c41349de4460990c48fffb6b21e3e203d26ab | 63afdad853f5b0670731205859faa5144015191d | /contact/models.py | 118c339f53556b4f78a85cb2df7f07e23e8a9366 | [] | no_license | georgehuble/django_movie | ef4d870afaf03ab9bf0c6b3d259ec2c56ea04500 | 4c94c171efccff6b070d9a7812dacb1399524724 | refs/heads/master | 2023-05-08T23:09:48.815903 | 2021-05-29T15:00:29 | 2021-05-29T15:00:29 | 371,945,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | from django.db import models
class Contact(models.Model):
"""Подписка по email"""
email = models.EmailField()
date = models.DateTimeField(auto_now_add=True)
def __str__(self):
return self.email | [
"nevajno23@mail.ru"
] | nevajno23@mail.ru |
f09b5ba0c63513fae5eb3bf59e46085513e482a1 | 77166c6ed9b872fa69b454d3682f63527f5f3951 | /arcade/text.py | eb69a21fd6aad532e3894f36ed8a51fdfd3f1d17 | [
"MIT"
] | permissive | biggzlar/arcade | d72d936f3c244a9d5173b6f36bca3ede3382a0ae | fc444db356452660ac6cb2ffe241f0b1a3d4bcf3 | refs/heads/master | 2020-12-14T06:30:18.997456 | 2020-01-18T04:44:03 | 2020-01-18T04:44:03 | 234,668,560 | 1 | 0 | NOASSERTION | 2020-01-18T02:07:41 | 2020-01-18T02:07:40 | null | UTF-8 | Python | false | false | 12,133 | py | # --- BEGIN TEXT FUNCTIONS # # #
from typing import Tuple, Union, cast
import PIL.Image
import PIL.ImageDraw
import PIL.ImageFont
from arcade.sprite import Sprite
from arcade.arcade_types import Color
from arcade.draw_commands import Texture
from arcade.arcade_types import RGBA
from arcade.draw_commands import get_f... | [
"paul@cravenfamily.com"
] | paul@cravenfamily.com |
d01726e0dbc995c5c88494d9f3cee56d6177e3d0 | de2a9dd0a232960ebbc8e431a16f137aafaa8d3f | /trips/views.py | a9d3a828fab5a8ae9d57b1543bc7d36bf02310f6 | [] | no_license | leanneapichay/travelapp | 26aed8daf3dab9102898e983991ae9acc076c1dd | ef2c97e8ae301d171bbf45126ca41bcbdad888a8 | refs/heads/master | 2020-04-15T19:37:33.681796 | 2019-02-08T04:29:43 | 2019-02-08T04:29:43 | 164,957,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,533 | py | from rest_framework import status
from rest_framework.views import APIView
from rest_framework.response import Response
from .serializers import *
from .models import *
# View to create trip and all stops within it
class TripViews(APIView):
def post(self, request, format=None):
serializer = TripSerializ... | [
"leanneapichay@gmail.com"
] | leanneapichay@gmail.com |
f91465a0a230dc63c74e15613576ecc57d891906 | 3b7c02225cecf4a382546ba267996e072e0c0e9f | /migrations/versions/ab586224191e_new_fields_in_user.py | f93df7b837a693139244a3656db39bdd41ea7ded | [] | no_license | shashi4bs/blog_flask | d693a29be1d559125eef5e2a2aaae971a6996540 | 304237e815afdacced85f0ad8a66639f62d5692f | refs/heads/master | 2022-12-12T14:33:35.984335 | 2019-07-07T10:00:11 | 2019-07-07T10:00:11 | 195,239,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 786 | py | """new fields in user
Revision ID: ab586224191e
Revises: af7e9860ce48
Create Date: 2019-05-01 12:14:58.000583
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'ab586224191e'
down_revision = 'af7e9860ce48'
branch_labels = None
depends_on = None
def upgrade():
... | [
"shashi4bs@gmail.com"
] | shashi4bs@gmail.com |
64212e5f28688d5608272f8632b0bd60f2b2717a | 5294fd5896f514cbd6db5fb63f2a3473f4e9658e | /app.py | e61f829ad74e8afcd46355e1c72658a719840b17 | [] | no_license | jwpestrak/project-3-phrase-hunter | ffa36a337cf168c23c0652047dec661b4e28b974 | 8c9ae69828d765163ac116aa2cef658cdfe77b1c | refs/heads/master | 2020-05-07T01:22:13.463435 | 2019-04-09T02:55:48 | 2019-04-09T02:55:48 | 180,272,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | py | from phrasehunter.game import Game # Import your Game class
if __name__ == "__main__": # Create your Dunder Main statement.
# Inside Dunder Main:
game = Game() ## Create an instance of your Game class
game.run() ## Start your game by calling the instance method that starts the game loop
| [
"james.w.pestrak@gmail.com"
] | james.w.pestrak@gmail.com |
d9688ce59735aea7ef8f1d52da614763b7f2d036 | dbe1f4110921a08cb13e22ea325d503bd5627195 | /chuhuo_2.7_clickhouse/bluedon/bdwafd/newscantools/plugins/SiteEngine5_xPagejumpScript.py | 36b3f98ef2796868c8a3a3a6381ac72f04f32ea9 | [] | no_license | Hehouhua/waf_branches | 92dc1b1cbecba20f24ef6c7372dde7caa43f9158 | ca76f3a1ed8150b423474c9e37aee37841a5ee35 | refs/heads/main | 2023-01-07T11:33:31.667688 | 2020-11-03T06:58:33 | 2020-11-03T06:58:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,184 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from lib.common import *
def run_domain(http,ob):
list = []
try:
domain = ob['domain']
detail = u''
url = "%s://%s%s" % (ob['scheme'],ob['domain'],ob['base_path'])
expurl="%s%s"%(url,"admin/images/css.css")
url+="api.php?ac... | [
"hanson_wong@qq.com"
] | hanson_wong@qq.com |
64b22fbf6cbc11f93ce0fbe1cbcfbf3742a0011b | f5797644f809f12e65dab6b00e24c1a738bbd787 | /gensim_lda/lda_gensim.py | 02a453afe9ca37e78f1781d0e294ac25d089f464 | [] | no_license | shcup/ML | 436875be51a3620f892eb13e79def8ba7a2cb93b | b761e0d94d0fa4bfd7dda598911d3bc80b7e0fd0 | refs/heads/master | 2020-06-29T13:33:03.593677 | 2018-01-11T18:06:46 | 2018-01-11T18:06:46 | 74,420,501 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,100 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
import sys
import logging
import os.path
import unittest
import tempfile
import itertools
import numpy
from gensim.utils import to_unicode
from gensim.interfaces import TransformedCorpus
from gensim.corpora import (bleicorpus, mmcorpus, lowcorpus, svmlightcorpus,
... | [
"rec@Letv2TTPFD2.(none)"
] | rec@Letv2TTPFD2.(none) |
39a870579ef4ed97598cbc4f4f6818c96489c04f | bf2704bf2a65eda229fe52dc3bc37d30655ad3db | /microsip_consolidador/settings/common.py | 9e54dbf1eb5d8ef31c6c19af059d8f79338e5a89 | [] | no_license | ruff0/microsip_consolidador | 29276c6f96e2f2d3fb9eb06006234e7773c1aa8f | e8763651c5935d12f93a5413ea593dea16043f64 | refs/heads/master | 2021-05-03T22:02:45.045087 | 2014-04-02T00:50:36 | 2014-04-02T00:50:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,516 | py | #encoding:utf-8
# Identificando la ruta del proyecto
import os
import fdb
import sqlite3
from local_settings import MICROSIP_MODULES
RUTA_PROYECTO =os.path.dirname(os.path.realpath(__file__)).strip('settings')
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASE_ROUTERS = ['microsip... | [
"jesusmaherrera@gmail.com"
] | jesusmaherrera@gmail.com |
a05cbd60ec988ced4a37c9d6c16d84b3f78ffd8f | fdbcd2f19d55b57bafc4deaccafba812a3b56443 | /yolo_video.py | 940de5ac8c747750e76d840028bd352ae4de9c09 | [
"MIT"
] | permissive | mductran/keras-yolo3 | d28ed3715fd14299a401ef90146901db7ac3bccf | 5fecc4bf9dc5764de20cbec45c140412c10873d0 | refs/heads/master | 2020-04-18T02:28:44.287492 | 2019-01-23T10:31:08 | 2019-01-23T10:31:08 | 167,164,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,396 | py | import sys
import argparse
from yolo import YOLO, detect_video
from PIL import Image
def detect_img(yolo):
while True:
img = input('Input image filename:')
try:
image = Image.open(img)
except:
print('Open Error! Try again!')
continue
... | [
"noreply@github.com"
] | mductran.noreply@github.com |
e4c9ea0294f5f19f9113c2c612678d888d0f5614 | 65dbd639309a9fee3d406f9d4023d137fcf250ac | /web_connector/src/connector.py | 14827697d3705b49ae3e760307a239bc7f8708bd | [] | no_license | uobirlab/butler | 6122eb80f7c06e39ea4cdbee6c86d0911e871f92 | 8489d9f59aa07d914d18d1d2097d9ba205fdb07f | refs/heads/master | 2021-01-18T13:54:52.547440 | 2013-09-09T18:27:45 | 2013-09-09T18:27:45 | 20,443,764 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,097 | py | #!/usr/bin/env python
try:
import requests
except:
print "Need the python-rquests library to connect to the web. Please install it."
raise Exception("Can't find requests package")
ORDERS_FILE_URL="http://www.cs.bham.ac.uk/~burbrcjc/bsf2013/data/orders.txt"
ORDER_COMPLETE_URL="http://www.cs.bham.ac.uk/~burb... | [
"cburbridge@gmail.com"
] | cburbridge@gmail.com |
31797b3c34c773bd85a749e9b9a0ba89b518d703 | 5f70fed798c0134381f8d626c1c329a956a35b7b | /Clase10/formato_tabla.py | 2a337e023df5bbe652c7f793a312259f811ac08c | [] | no_license | agmontserrat/Ejercicios_Python_UNSAM | a1a9d4074a4eb7ce549b48d59573aca829060605 | 8160767c98e616e2255912e8b001c19723103957 | refs/heads/main | 2023-05-24T07:01:30.325558 | 2021-06-13T04:32:45 | 2021-06-13T04:32:45 | 347,520,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,657 | py | class FormatoTabla:
def encabezado(self, headers):
'''
Crea el encabezado de la tabla.
'''
pass
def fila(self, rowdata):
'''
Crea una única fila de datos de la tabla.
'''
pass
class FormatoTablaTXT(FormatoTabla):
'''
... | [
"noreply@github.com"
] | agmontserrat.noreply@github.com |
a7b932f83c1b462ecaa586bcf015affcb611122c | 22309918b0810c221680837032fe5d129f0d2f62 | /Server/sensors/sampleRangeSensor.py | 2c7e08a6537794d707e235a01d79be0634d34a30 | [] | no_license | kanakb/sensor-data-analysis | f846a9128e35987d60abd580e2baca5a8e35f4c2 | 49c577b8d0262e022ba86e1485dfac5d079e5474 | refs/heads/master | 2016-09-09T20:41:39.708263 | 2011-06-06T20:35:17 | 2011-06-06T20:35:17 | 32,226,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | # sampleRangeSensor.py
# serves as an example for how to specify details about a given sensor
# this one has a domain of a range of values
# need GenericSensor to subclass it
from sensors.genericSensor import GenericSensor
from sensors.genericSensor import DataType
# sensor class definition -- inherits from a... | [
"kanakb@gmail.com@1627692a-01a1-f231-e942-478d199961fa"
] | kanakb@gmail.com@1627692a-01a1-f231-e942-478d199961fa |
a1bed95cd6dc5a558a1dcc440b65970e146efd9a | 91f9ffafe25d234c826105b6ef6e8f925a612f87 | /yolo.py | 3524751b3d9182805315c833e25b46c7e8eb9171 | [
"MIT"
] | permissive | pskrunner14/yolo-detector | 6732938142f2c3505247d495f79d798f972381fe | 295c4500f22efbf0775ba786bdacd4f390631456 | refs/heads/master | 2020-03-22T13:32:42.717276 | 2018-09-30T12:22:59 | 2018-09-30T12:22:59 | 140,115,097 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,623 | py | import os
import logging
import cv2
import keras
import numpy as np
import imageio as io
import tensorflow as tf
import keras.backend as K
# local imports
from utils import (
read_classes,
read_anchors,
generate_colors
)
# imports from `yad2k` project
from yad2k.models.keras_yolo import (
yolo_head... | [
"pskrunner14@gmail.com"
] | pskrunner14@gmail.com |
afad583f0de6a7bf43989c94768169a8e17ac412 | e6f80e38fcd5cfd63e2e5f653a11d42ce0799fbb | /dm_result_analysis.py | be8099a0d9387500999fc00c84da8f3bf29d66b3 | [] | no_license | NiuGenen/DataMiningProject | e771e326b37e1f45d546c15658abd57067681f8c | d63173d092ddd284b176a1d71e75f8a616f0cb5d | refs/heads/master | 2020-04-05T04:24:48.818061 | 2018-12-12T02:06:38 | 2018-12-12T02:06:38 | 156,550,278 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,041 | py | import dm_source_data as sd
import pandas as pd
import dm_preprocess_fun as ppf
import dm_csv as dmcsv
import os
import dm_filepath as dmfp
import dm_common as dmc
verbose = 1
res_col = [
'start_time',
'item_nr',
'elem_nr',
'item_right',
'item_right_percentage',
'elem_right',
'elem_right_p... | [
"602131568@qq.com"
] | 602131568@qq.com |
f46f619f2254359a55e3c1510eb5a02268659659 | 2ea51ead1779c44c4f28cecfb8e5ca37d4c5ce4c | /registerCamera.py | 353d560d428361ace632859d62565a90d1d2c03a | [] | no_license | JeffStodd/Viator-Hardware | a1ad9e79420e5f67fa5aaa78ac427743d740f08a | be335ceb205d42954383bc50bf6fb4ec0c9d7f31 | refs/heads/master | 2022-10-18T05:06:43.769560 | 2020-06-11T21:33:15 | 2020-06-11T21:33:15 | 271,649,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,215 | py | import firebase_admin
from firebase_admin import credentials
from firebase_admin import firestore
import urllib.request
import sys
from uuid import getnode as get_mac
def main(argv):
if len(sys.argv) > 1:
pass
else:
pass
#search for matching address and update stream ... | [
"noreply@github.com"
] | JeffStodd.noreply@github.com |
f06b314effbea49196936e04d020d70611e2ee01 | 3f9dd28efb7fb66b95a7b33ae3d15f6e4d0925f5 | /pydar/format.py | d8e1bb84cbbd5663e6463bfea12ee2347e12622b | [
"MIT"
] | permissive | MomsFriendlyRobotCompany/pydar | 926cdbb9431204b60a0816815904c1b27f415f0d | 20d5a6b382b4f047ba19f8f82a15a67ab3537543 | refs/heads/master | 2020-03-20T11:19:28.451746 | 2019-12-25T01:46:29 | 2019-12-25T01:46:29 | 137,399,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80 | py |
from collections import namedtuple
Scan = namedtuple('Scan', 'scan timestamp')
| [
"walchko@users.noreply.github.com"
] | walchko@users.noreply.github.com |
0d43cabd0bac06a70dc5cf138a95ff01cf01d740 | ababe4e82dec68ff7936c87178061b179bb29931 | /mainApp/models.py | 08b8c550e39bdf279372b082b30a3e4eacdc07c2 | [] | no_license | nurhat1/news_aggregator_api | b76d5599c0628da5086940a28cc8110ae3e50a0e | 2377fb5e4486dfed9974471e9027c38a18b11ad1 | refs/heads/master | 2023-06-03T07:31:59.908745 | 2021-06-18T09:19:15 | 2021-06-18T09:19:15 | 378,096,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 957 | py | from django.db import models
# Create your models here.
class Category(models.Model):
name = models.CharField('Название категории', max_length=255)
is_active = models.BooleanField(default=True)
class Meta:
verbose_name = 'Категория'
verbose_name_plural = 'Категории'
def __str__(sel... | [
"nurhat_01.12.97@mail.ru"
] | nurhat_01.12.97@mail.ru |
2e858c17d93645b79fec3bc950bfad4291ef27b3 | 4e96f383d4703ad8ee58869ed91a0c8432c8a051 | /Cura/Cura/cura/Backups/BackupsManager.py | ba6fcab8d75e54207a7423215cf29cc707d74109 | [
"LGPL-3.0-only",
"GPL-3.0-only"
] | permissive | flight7788/3d-printing-with-moveo-1 | b2dba26010c4fa31815bc1d2d0966161a8600081 | 7fcb9c6b5da9245d54ac917de8c2a7f5148e42b0 | refs/heads/Feature_Marlin_with_AlanBoy | 2022-08-30T18:36:44.785058 | 2020-05-30T07:52:58 | 2020-05-30T07:52:58 | 212,583,912 | 0 | 0 | MIT | 2020-05-16T07:39:47 | 2019-10-03T13:13:01 | C | UTF-8 | Python | false | false | 3,039 | py | # Copyright (c) 2018 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher.
from typing import Dict, Optional, Tuple, TYPE_CHECKING
from UM.Logger import Logger
from cura.Backups.Backup import Backup
if TYPE_CHECKING:
from cura.CuraApplication import CuraApplication
## The BackupsManager i... | [
"t106360212@ntut.org.tw"
] | t106360212@ntut.org.tw |
3c639d64247b4a49b28c974d5d915777ea97abc0 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /egHeSWSjHTgzMysBX_11.py | 07299dceba5a669196df27a142df5458fa762af5 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | """
Create a function that takes a number as an argument and returns half of it.
### Examples
half_a_fraction("1/2") ➞ "1/4"
half_a_fraction("6/8") ➞ "3/8"
half_a_fraction("3/8") ➞ "3/16"
### Notes
Always return the simplified fraction.
"""
def half_a_fraction(fract):
fraction = fract.... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
37696f05b79e1f2feac4efbff88069ce1a01a3f3 | 1829c4ccef29f7c0074ed2ee07f960d63572b9d6 | /pdf417/__init__.py | f8d4187552e8c5773cd023f155001f0483a12557 | [] | no_license | rutm/pdf417 | c40b602324a765dc8ad0b1ee6f7a25dbe20d3d23 | 91e8f68190baf926883424113f3fbd47418afd17 | refs/heads/master | 2021-01-02T23:03:11.953216 | 2013-11-06T18:30:03 | 2013-11-06T18:30:03 | 7,704,937 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,857 | py | from PIL import Image
from PIL import ImageDraw
from ._pdf417 import PDF417
def write_to_ps(filename, barcode):
cols = (barcode.bit_columns / 8) + 1
with open(filename, 'w+') as f:
f.write("/Times findfont\n12 scalefont setfont\n100 80 moveto\n(A PDF417 example.)show\n")
f.write("stroke\n100 ... | [
"rockerzz@gmail.com"
] | rockerzz@gmail.com |
4cfb83d1cec52b7b06afc49b583c72b7a81f69cc | 3fb0fa7109826d3bf4cbe069ddfb2bda4928b73e | /src/python/populateItems.py | 0a194f21a8bd04daa72340275aac26739dcecf73 | [
"MIT"
] | permissive | DBMSRow3/DBMSLeague | 6e5950f224e3a655d05be3d5b60f89f0f3b01343 | 76f0b32011f08809b62a3147e9c608d4bbe9a33a | refs/heads/master | 2020-04-10T17:14:31.446051 | 2018-02-26T02:57:22 | 2018-02-26T02:57:22 | 84,141,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,574 | py | from cassiopeia import riotapi
from cassiopeia.type.core.common import LoadPolicy
import csv
import urllib
import configparser
import mysql.connector
def main():
config = configparser.ConfigParser()
config.read('settings.ini')
riotapi.set_api_key(config.get('LoL API','key'))
riotapi.set_load_policy(Load... | [
"donaldsa18@up.edu"
] | donaldsa18@up.edu |
b2111832fc0c4debedac707ba825b9e9fe864ff0 | dcdb7a05d52cd1f9d558a70570b3ecbd85cefbe6 | /apps/blog_sign/urls.py | 80393ab80dbc1e204ef049a5208f8d7c98b708f4 | [] | no_license | GDCenter/blog_django | ea7a9a556292b212a6d5a2de3d02f7b1e9002871 | 5cb12f630618bb49bd955bcc9072339ff3a01387 | refs/heads/master | 2020-09-09T15:51:49.918515 | 2018-05-11T09:21:05 | 2018-05-11T09:21:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | from django.conf.urls import url
from apps.blog_sign import views
urlpatterns = [
url(r'^login$', views.LoginView.as_view(), name='login'),
url(r'^register$', views.Register.as_view(), name='register'),
url(r'^forget$', views.ForgetView.as_view(), name='forget'),
url(r'^active/(?P<token>.*)$', views.Ac... | [
"liduo945@163.com"
] | liduo945@163.com |
847dd07a7ba0510818c13daa8b6307f3fe3659e9 | a6112b9c7aea4e352abb23ef21e096742c382f9f | /linuxprivchecker.py | bbe897243e3ea9b58a5c439a7f45f009492c0da1 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | ambrosektal/recon2 | b198c9792b08a3d5f49a52eae54ac32dcb174ff6 | 4d3b1f1af133c987be76de0c8bb25d9bccedcf39 | refs/heads/master | 2021-04-26T23:46:41.622351 | 2021-03-20T17:43:36 | 2021-03-20T17:43:36 | 123,853,233 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,312 | py | #!/usr/env python
###############################################################################################################
## [Title]: linuxprivchecker.py -- a Linux Privilege Escalation Check Script
## [Author]: Mike Czumak (T_v3rn1x) -- @SecuritySift
##---------------------------------------------------------... | [
"joe.spann@gmail.com"
] | joe.spann@gmail.com |
22cca10d1314023d365cc0bdaae9d23ec9feeb56 | ac4b9385b7ad2063ea51237fbd8d1b74baffd016 | /.history/utils/ocr/handle_image_20210209170155.py | 17a1ffee42abc92b121aff59d84aa5bebaf2bf31 | [] | no_license | preethanpa/ssoemprep | 76297ef21b1d4893f1ac2f307f60ec72fc3e7c6f | ce37127845253c768d01aeae85e5d0d1ade64516 | refs/heads/main | 2023-03-09T00:15:55.130818 | 2021-02-20T06:54:58 | 2021-02-20T06:54:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,092 | py | import os
import cv2
import re
import numpy as np
from PIL import Image
import pytesseract
from pytesseract import Output
from fpdf import FPDF
'''
IMAGE HANDLING METHODS
'''
# get grayscale image
def get_grayscale(image):
return cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
# blur removal
def remove_blur(image):
... | [
"{abhi@third-ray.com}"
] | {abhi@third-ray.com} |
613e4670af944ff84ec49616bde20658eee1914b | 9b09d354053fe571eec2e8335248ee3311bc3f48 | /python/tHome/util/hex/dump.py | c72f406e2ca296ca476247d87b1c3ce149029000 | [
"BSD-2-Clause"
] | permissive | TD22057/T-Home | c29d3e6f8924f8661694ac5c6722945e46cf6d8a | 5dc8689f52d87dac890051e540b338b009293ced | refs/heads/master | 2018-11-07T02:28:41.821700 | 2018-08-27T23:38:06 | 2018-08-27T23:38:06 | 44,873,682 | 20 | 14 | BSD-2-Clause | 2018-08-27T23:38:07 | 2015-10-24T16:07:35 | Python | UTF-8 | Python | false | false | 837 | py | #===========================================================================
#
# Dump hex bytes to a table.
#
#===========================================================================
import StringIO
#===========================================================================
def dump( buf ):
"""Input is bytes b... | [
"ted.drain@gmail.com"
] | ted.drain@gmail.com |
95d139364528c7fe52cf3bca523c96c6f4958e7a | 326b8651880c0295f2c0c9207dda1c6db54599a2 | /release_notes_generator.py | afbdf7803c0f3692df3a012879f8c415a50e292b | [] | no_license | chris-relaxing/Release-Notes-Generator | 81ba2f379198547dee40048c3d84f8551eef7483 | faf68db6781963bb46191a54f61062d0b2619316 | refs/heads/master | 2021-04-27T21:24:20.893978 | 2018-02-21T22:34:01 | 2018-02-21T22:34:01 | 122,399,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,743 | py | #-------------------------------------------------------------------------------
# Name: Release Notes Generator
# Purpose: Create Word.docx Release Notes on the fly, with minimal input.
#
# Author: Chris Nielsen
# Last Updated: June 15, 2015
# Note: Some of the code used... | [
"chris.relaxing@gmail.com"
] | chris.relaxing@gmail.com |
e29b089058e29bb420886f0d8fc1f588b333e46f | a1be3108f88689bf9fc1f9079d38eb0202ede385 | /app.py | e9e5dc6df89a99aeae54039661763be289c8a9a1 | [] | no_license | umeshaS/API | 21ed4f5a5dd1f583a8af2c5ed63ef6882be4bb8b | 07fc970d499f3d7c7274d6b0140e01ae422aab84 | refs/heads/master | 2023-08-13T10:52:15.799446 | 2021-09-21T04:34:18 | 2021-09-21T04:34:18 | 408,685,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,774 | py | import pickle
from flask import Flask, request, jsonify
import translation as tr
from keywordExtraction import KeywordExtractor
from languageIdentification import LanguageIdentifier
from transliteration import Transliterator
from ScriptIdentification import ScriptIdentifier
app = Flask(__name__)
transliterator = Trans... | [
"it17148450@my.sliit.lk"
] | it17148450@my.sliit.lk |
5137aaffcf7d05ff965a029baca8cbaf89355706 | f4f7cdc448ed15fe3eaf677fcf5e6fb38d6a617b | /ACNetwork/visualization/total_time_visualizer.py | 1d4de46cedd0225eea7e528e0be07125f0c1227c | [] | no_license | reineltJanis/BachelorThesis | 06142efef6aceb7a02bae87f38c7979df67486d2 | 8d2299dd9bfb8f147a42ede959355b0769839837 | refs/heads/master | 2022-12-15T11:16:55.249409 | 2020-05-05T20:13:00 | 2020-05-05T20:13:00 | 260,041,397 | 1 | 0 | null | 2022-06-22T23:13:06 | 2020-04-29T20:41:46 | Python | UTF-8 | Python | false | false | 1,842 | py | import matplotlib.pyplot as plt
import numpy as np
import os, sys, csv
from pathlib import Path
# From https://matplotlib.org/3.1.1/gallery/lines_bars_and_markers/barchart.html#sphx-glr-gallery-lines-bars-and-markers-barchart-py
def autolabel(rects, axes):
"""Attach a text label above each bar in *rects*, displayi... | [
"dev@reinelt.online"
] | dev@reinelt.online |
b15ae00c90717a2a67c39cb9e72a1951ed5f1ae4 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_217/ch21_2019_08_26_19_58_29_478795.py | 8e46bdfeb1e79e43246166f70246709b75ed0188 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | def valor_da_conta(valor):
valor = int(input('Qual valor da conta?:' ))
com10% = valor + valor*(10/100)
return com10%
print("Valor da conta com 10%: R${0}".format(com10%)) | [
"you@example.com"
] | you@example.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.