blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
81fe488a948e2e3eda7a34ae6ffb201f9dc4fae0 | f4552a1e841b54f5f9ed414bc1f2cae1ab6f6adc | /quickstart/quickstart/schema.py | 7c660ac172335215f20504ec878a947dd5d33fee | [
"MIT"
] | permissive | hirokgreen/django-graphql-auth | 9b2a3d09691d0267a48a6cbefe7e49596be823fc | 1d2c745ca4ff189eafaeaf310088797243ae88cd | refs/heads/master | 2021-01-04T08:16:53.447706 | 2020-02-12T13:44:53 | 2020-02-12T13:44:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,320 | py | # quickstart.schema.py
import graphene
from graphql_auth.schema import UserQuery
from graphql_auth import mutations
class AuthMutation(graphene.ObjectType):
register = mutations.Register.Field()
verify_account = mutations.VerifyAccount.Field()
resend_activation_email = mutations.ResendActivationEmail.Fi... | [
"pedrobermoreira@gmail.com"
] | pedrobermoreira@gmail.com |
837eb31dcfcbcdeb39de0bda4bcad87c80626d95 | 993060167ec652fb3cb0c6e0c1da12ba3759ae47 | /function_scheduling_distributed_framework/consumers/base_consumer.py | 60e5c103607c25e878b526726379c9c16f9ad371 | [
"Apache-2.0"
] | permissive | Amua/distributed_framework | f0f85fbcf813991cbc819b28a3309efd8aec320f | 0be0b18f9c494788f8ae65c69863c003988c04ec | refs/heads/master | 2020-07-02T07:30:01.791185 | 2019-08-09T08:11:55 | 2019-08-09T08:11:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,055 | py | # -*- coding: utf-8 -*-
# @Author : ydf
# @Time : 2019/8/8 0008 13:11
import abc
import atexit
import copy
import time
import traceback
from collections import Callable
from functools import wraps
import threading
from threading import Lock, Thread
import eventlet
import gevent
from pymongo.errors import PyMongoErr... | [
"909686719@qq.com"
] | 909686719@qq.com |
9460ed333c68286b1b8586ae62dfef6f5a885477 | c51346bab049a960d76f9e2e243523840bf5bd7a | /driver_testsuite.py | 406a7e5bec66ecc570edc64504cdcee78201bbc4 | [] | no_license | DaFaYo/8-puzzle | 9d90fa8f23d49f718411280d4a8a4a0fd2d360d9 | 8a2a69e00ee9ea5d705cf8427114d1c8d62f276d | refs/heads/master | 2021-07-07T05:51:12.230212 | 2017-10-04T10:47:49 | 2017-10-04T10:47:49 | 105,752,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,199 | py | """
A simple testing suite for 8-puzzle, 15-puzzle, 24-puzzle, etc.
"""
import poc_simpletest
import time
total_time = 0.0
def timeTest(testName, timeElapsed):
global total_time
total_time += timeElapsed
return "%s. Time elapsed: %.3f s." % (testName, timeElapsed)
def run_tes... | [
"rosahoetmer@MacBook-Pro-van-Rosa.local"
] | rosahoetmer@MacBook-Pro-van-Rosa.local |
478dcea69606ef521a881ced468c30ce6dbc92fc | 228d7661748502381e8a075c7604f7e289069499 | /store_img.py | d7916e1ea051d7a8364667e2cf0325bcbfdda643 | [] | no_license | pritul2/Face-Recognition | ba18f04083db86815bd66ced6c811e8141569dd3 | 5958e73356e31c6262b65b1ed44eda64f716cc10 | refs/heads/master | 2021-05-21T15:58:03.147498 | 2020-04-15T15:13:18 | 2020-04-15T15:13:18 | 252,706,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,784 | py | from keras import backend as K
import cv2
import tensorflow as tf
from keras.models import load_model
from mtcnn.mtcnn import MTCNN
import compare_file
def detect(img):
img = cv2.cvtColor(img,cv2.COLOR_BGR2RGB)
detector = MTCNN()
results = detector.detect_faces(img)
if len(results) == 0 :
return
if results[0]['... | [
"pritul.dave@gmail.com"
] | pritul.dave@gmail.com |
9a5c036ea6011ce1a883d71cf8ba4d5d725df6fa | 16bb58cd85a0e46b60d43b52bc51149f9fa6e6d4 | /events.py | 1c51f89f12a6571683ecc3c5d15baa162d606d81 | [] | no_license | sunnad99/Fantasy-Ludo-Game | f86e89103b14bf9915de3a0d6d91ff62164484fe | 8b0b29d92a704aca36240011fa3629ca2c5c6e1e | refs/heads/master | 2023-06-15T17:23:22.263237 | 2021-07-08T11:52:17 | 2021-07-08T11:52:17 | 287,137,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,855 | py | import pygame
import time
import sys
class Events:
def __init__(self, game):
self.game = game
self.settings = self.game.settings
def check_mouse_main_menu_event(self, event_type):
if event_type == pygame.MOUSEMOTION and self.game.menu.is_main_menu:
self.mou... | [
"noreply@github.com"
] | noreply@github.com |
24f91adc550d123a98239a57ae27ac6345f382ab | cd44f9f6d97e54886352353da9c45d9e6c291928 | /newspaper/admin.py | d347faa1a852e2b8fbe3b1fd52357e2b88adaebb | [] | no_license | MaksimFelchuck/Felnews | c480f045dc21d6f40e10d233a011fb05522f53f9 | a3411f10230b7cecdac4a49cb7e83c03d1c89444 | refs/heads/master | 2023-02-17T08:13:21.413801 | 2021-01-16T14:55:03 | 2021-01-16T14:55:03 | 330,102,149 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | from django.contrib import admin
from newspaper.models import *
# Register your models here.
@admin.register(News, Image)
class PersonAdmin(admin.ModelAdmin):
pass
| [
"felchuck@yandex.ru"
] | felchuck@yandex.ru |
f8e650b4108f33a5a304944caf20ee25f045cba5 | 8747375a4c6442a5bc317baad36ba41f5de4512e | /personal/migrations/0007_auto_20150226_0351.py | ca2beb584b49a1f858048462ec0f5e23cf67c068 | [] | no_license | raultr/perBackend | 40f73199cb722133d79d76b4389d4f613764560b | f22542f79f293de444e29ac7183a0ee9c5b86889 | refs/heads/master | 2022-12-06T10:17:29.400434 | 2017-02-14T03:23:13 | 2017-02-14T03:23:13 | 30,055,264 | 0 | 0 | null | 2022-11-22T00:26:36 | 2015-01-30T03:57:03 | JavaScript | UTF-8 | Python | false | false | 888 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('personal', '0006_personal_imagen'),
]
operations = [
migrations.AlterField(
model_name='personal',
n... | [
"raultr@gmail.com"
] | raultr@gmail.com |
0fe9e8dc03af0dfdeae514c6ac4eaa9dce57b024 | c26b3e6df5cbe0f0d40afa675b5e468e939c3672 | /test3.py | 247dd9d5b65c25082aef0ded04a74865a4f651c0 | [] | no_license | TianchiLiu/ModelChecking-1 | 27c78aa1739988f70e3bfb82fc128650e16dddd8 | 38372f6e9f74f30cfe508987706ebf2a5100f4bc | refs/heads/master | 2021-08-09T15:38:16.103196 | 2017-11-12T08:33:05 | 2017-11-12T08:33:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,943 | py | import itertools
import re
f=open('/home/kiroscarlet/ModelChecking/pg1.txt','r')#改成自己的文件夹
Loc1=re.findall(r"{(.+?)}",f.readline())[0].split(",")
# 用正则匹配截取左右大括号中的内容,以逗号为间隔分割成列表
print(Loc1)
Loc01=re.findall(r"{(.+?)}",f.readline())[0].split(",")
print(Loc01)
Var1=re.findall(r"{(.+?)}",f.readline())[0].split(",")
print(... | [
"1277836029@qq.com"
] | 1277836029@qq.com |
9d11cd4b5864d8bfb62d272e97077989d61f7c84 | 6f73053e9c5a8bb40f34dd12a9a000ad3ca84f1f | /exchange/core/entities/__init__.py | ea1a17b054ed4a7f887d52c46eed80386fa3aeab | [] | no_license | Bizilizi/python-crypto-exchange | 9610857580b5c0239a9cbd778246c65e693a8d31 | 9eef1641e8cc04a7b3922447b05c04e37268187b | refs/heads/master | 2022-12-01T14:28:28.819215 | 2020-08-14T06:26:37 | 2020-08-14T06:26:37 | 287,306,992 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | from .account import Account
from .balance import (
BalanceRecord,
PairBalance,
)
from .fee import Fee
from .order_book import Order, OrderBook
from .symbol_pair import SymbolPair
__all__ = [
"Account",
"BalanceRecord",
"PairBalance",
"Fee",
"Order",
"OrderBook",
"SymbolPair",
]
| [
"ewriji@airlab.team"
] | ewriji@airlab.team |
257a852010c6ac198207acb56d1e5dcc5f9a136c | ba31ca99cd83d263952a3ab949cec21bec9831dd | /CollectionsOverview/tuple&namedtuple/tuple&namedtuple.py | 22667d869d07c6380683598637a5d390a90043f2 | [] | no_license | YizhuZhan/python-study | dd4f492c4a5b2b1bebcbd463380c57c1f6594a69 | 49bed4935e6d4bd1bdfd5f7159cc0e1c783e5764 | refs/heads/master | 2020-03-29T04:54:32.850829 | 2018-10-23T03:39:33 | 2018-10-23T03:39:33 | 149,554,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,972 | py | # -*-coding=utf-8 -*-
__author__ = 'Ivana'
from collections import namedtuple
# 抽象基类 interface
# from collections.abc import *
from collections import namedtuple
user_tuple = ('Ivana', 27, 167)
name, age, height = user_tuple
print(name, age, height)
name, *others = user_tuple
print(name, others)
user_info_dict = ... | [
"zhyzh910914@126.com"
] | zhyzh910914@126.com |
058eed73a68232a87c8199303860ed5deb0c7b42 | 08093753140a6a32e37799e45021fe7905f72b2a | /ib-all-factors.py | 39e9274a22e341856b6dc0dc0c4141f44d9853aa | [] | no_license | ShivendraAgrawal/coding_2016 | 6aa503b4b3ffbe14aca086e64661f608b136832f | 2a973860acfdbcec55dd180aa4a08384d97a78d7 | refs/heads/master | 2020-05-22T09:17:42.641422 | 2016-08-01T10:56:08 | 2016-08-01T10:56:08 | 49,042,801 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | class Solution:
# @param A : integer
# @return a list of integers
def allFactors(self, A):
result = []
stop = int((A**(0.5)) // 1) + 1
print(stop)
for i in range(1,stop):
if A%i == 0:
result.append(i)
result.append(A//i)
res... | [
"shivendra.agrawal@gmail.com"
] | shivendra.agrawal@gmail.com |
3f1d716a0e6f5b1bb216b80ae844859e1cb0e536 | 31072bce3e3279f831dea880873adce58c84fdc4 | /blog/urls.py | c678fd4a28abd9883ddbbc078f6f8dd0ffa91bca | [] | no_license | 100sarthak100/Python_Django_Blog | 00eeb475602d8beee79b9b7fc70a8b42e39becfb | 842a0b5b91200c61119f3ee16ced3bd61cf1b66b | refs/heads/master | 2022-12-05T04:38:41.300348 | 2019-12-24T04:01:44 | 2019-12-24T04:01:44 | 228,986,653 | 1 | 0 | null | 2022-11-22T04:55:08 | 2019-12-19T06:06:25 | JavaScript | UTF-8 | Python | false | false | 1,085 | py | from django.urls import path,include
from .views import (
PostListView,
PostDetailView,
PostCreateView,
PostUpdateView,
PostDeleteView,
UserPostListView,
)
from . import views
urlpatterns = [
#path('api/blog/', include('blog.api.urls'), name='blog-api'),
path('comment/<int:pk>/approve/'... | [
"sarthaknaithani127@gmail.com"
] | sarthaknaithani127@gmail.com |
f7a595ddeaf0589237edbce2280478c40f9f06a1 | 475a4cfa6cf4d4e6d05a6497a4012ae98e171bb9 | /organization/utils.py | 647b0150c76f692479decd36a4ca5f17fdf05ea3 | [
"BSD-3-Clause"
] | permissive | fredpalmer/patt3rns | 926516c01ed69b2a48406d82578f670554fd8b8c | 3faac2b583d45c8bf9cc8fe9ad5b5009ee7ed538 | refs/heads/develop | 2021-01-01T16:49:23.990749 | 2015-09-28T16:05:26 | 2015-09-28T16:05:26 | 26,644,658 | 0 | 0 | null | 2015-09-28T16:05:26 | 2014-11-14T15:31:58 | Python | UTF-8 | Python | false | false | 156 | py | """
Utility helpers for organization module
"""
# coding=utf-8
from __future__ import unicode_literals
import logging
logger = logging.getLogger(__name__)
| [
"fred.palmer@gmail.com"
] | fred.palmer@gmail.com |
ad43c4e662b812eeb2e0f193cfd48753329f760c | 456345882451054ec5c0841886746f0dfd858094 | /ProblemSet2/PS2-3.py | 21f963d00c0906b6ae3b6fdbb1279099353743d5 | [] | no_license | makthrow/6.00x | faf5241008b1b57760a2e3411bf7fe637488a8fd | 7480be3634f5442c05bc9c838ab90ca80cd57ecc | refs/heads/master | 2021-01-10T21:49:31.302625 | 2013-05-21T18:04:14 | 2013-05-21T18:04:14 | 10,201,987 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,660 | py | """
Monthly interest rate = (Annual interest rate) / 12
Monthly payment lower bound = Balance / 12
Monthly payment upper bound = (Balance x (1 + Monthly interest rate)^12) / 12
"""
#Test Case 1:
balance = 320000
annualInterestRate = 0.2
# Lowest Payment: 29157.09
monthlyInterestRate = annualInterestRate / 12
lowerBou... | [
"alanjaw@gmail.com"
] | alanjaw@gmail.com |
f679cfe49a5a9682024f0cc2f559fdb8e4f7a420 | d76f864ec1ddc0ad40461b2c7283caac113d1a94 | /borrowers/manage.py | 7dc3700feea2035b1da3ec350ff7d0faee9ed167 | [] | no_license | ecarlos09/roselyn-elwin-library-2 | 13b0b60fecc8bd6722b70f775b62648a0dc8753a | 3e64c298aa42827cf0ba7b6d2a20884efb19e405 | refs/heads/main | 2023-04-19T21:38:04.061450 | 2021-05-09T11:31:37 | 2021-05-09T11:31:37 | 365,148,235 | 0 | 1 | null | 2021-05-09T11:09:15 | 2021-05-07T07:18:57 | Python | UTF-8 | Python | false | false | 665 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'borrowers.settings')
try:
from django.core.management import execute_from_command_line
except Im... | [
"elwin.carlos09@gmail.com"
] | elwin.carlos09@gmail.com |
faa46e3e7481d5bbafc9aef63a7b6099bf197c4b | cd5cbfb88794c10490e70ca5a06915cd351db6f9 | /train.py | 471dcbaf815d14ef26eaa181965336897abf4ff8 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | TrendingTechnology/conditional-style-transfer | 813d1b57a804dc621da30e6bb3a5e82875eb9354 | fcdc4716f98e333ef19f9d45be880d0837151cd2 | refs/heads/master | 2022-12-18T10:57:00.258679 | 2020-09-29T09:20:55 | 2020-09-29T09:20:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,121 | py | import time
from options.train_options import TrainOptions
from data import CreateDataLoader, CreateStyleDataLoader
from models import create_model
from util.visualizer import Visualizer
import torch
if __name__ == '__main__':
opt = TrainOptions().parse()
data_loader = CreateDataLoader(opt)
dataset = data_... | [
"vojtech@nnaisense.com"
] | vojtech@nnaisense.com |
c7256ce38afd60cd7ed3c1b4dd80ff0d00783c55 | 65e3c1f2911de516bd89e68ba1da5a73bd70d16c | /Matplotlib/pyplot_tutorial_4.py | df09e2ac45af7bf54d3704d0aaaccd65242b4596 | [] | no_license | PiotrKrolak/Python | 174a78e3aab08d6c77386a26b89d817018b82ef5 | 79589e8919049f35fe33ad93f0293eff8000b02d | refs/heads/master | 2020-04-04T08:03:02.476313 | 2019-04-19T18:02:31 | 2019-04-19T18:02:31 | 155,769,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | #
# https://matplotlib.org/tutorials/introductory/pyplot.html#sphx-glr-tutorials-introductory-pyplot-py
import matplotlib.pyplot as plt
import numpy as np
def f(t):
return np.exp(-t) * np.cos(2*np.pi*t)
t1 = np.arange(0.0, 5.0, 0.1)
t2 = np.arange(0.0, 5.0, 0.02)
plt.figure(1)
plt.subplot(211)
plt.plot(t1, f(t1... | [
"krolak.piotr.lca@gmail.com"
] | krolak.piotr.lca@gmail.com |
5193b894f4cc698c3ac930f9f72b1f317437c348 | b1fe8054a20170b0484411eb2eae19ba820f2f77 | /nolsatu_courses/api/serializers.py | a1f903884ff09e5778efa897f3fccd91e3dfd70c | [] | no_license | nolsatuid/courses | 2d9be4ffac2651d63b8bb981b3280915109b6996 | df335cd7e8f3d08a44c4d0ce06f4989a89215189 | refs/heads/master | 2022-11-23T03:43:11.145131 | 2021-02-24T06:12:11 | 2021-02-24T06:12:11 | 145,433,826 | 0 | 1 | null | 2022-11-22T02:42:32 | 2018-08-20T15:12:03 | JavaScript | UTF-8 | Python | false | false | 350 | py | from rest_framework import serializers
class MessageSuccesSerializer(serializers.Serializer):
message = serializers.CharField()
class ErrorMessageSerializer(serializers.Serializer):
detail = serializers.CharField()
error_message = serializers.CharField()
message = serializers.CharField()
error_c... | [
"irfan.pule2@gmail.com"
] | irfan.pule2@gmail.com |
287cfa5fca38192f022c1fdc9fd06ba73ef730a3 | 162e936cdbc362a18fa16e1d9579e8937671a13c | /dataMerge.py | 12b1b9bd95932866e6d1543e81fd4ff4e94f336c | [] | no_license | samanwayadas-creator/RNNnetworkRepo | 6b8c2ec2b3355c1fd52af1c79f5aeab3f31856f3 | 459bb79c41789030d989715ba1efd5ff7040cd59 | refs/heads/main | 2023-04-30T09:53:50.283073 | 2021-05-12T10:41:14 | 2021-05-12T10:41:14 | 366,680,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,126 | py | import glob as glob
import os
import numpy as np
from matplotlib import pyplot as plt
# from sklearn.gaussian_process import GaussianProcessRegressor
# from sklearn.gaussian_process.kernels import RBF, WhiteKernel, ConstantKernel as C
np.random.seed(1)
import pdb
import sys
import _pickle as pickle
if '/scratch/wz1219/... | [
"75118243+samanwayadas-creator@users.noreply.github.com"
] | 75118243+samanwayadas-creator@users.noreply.github.com |
5a8809be90a32d25e83f3c8153b214a58ded97ae | 1944daa9a22b689fcdb7315a11aae4fc0b32a398 | /ctc/client.py | e6ddb1da72351cc7608dba4b30f34a36702483a0 | [] | no_license | fireae/OCR-methods-with-ctc-attention-and-transformer- | 1a90e04a4b879bda292dd553de53d27aa288d0f2 | 15dfd4cc23415533ddb76c29ec0c5d2f22f3646e | refs/heads/master | 2022-12-05T09:36:38.557132 | 2020-06-29T12:35:26 | 2020-06-29T12:35:26 | 299,661,567 | 1 | 0 | null | 2020-09-29T15:37:49 | 2020-09-29T15:37:48 | null | UTF-8 | Python | false | false | 3,943 | py | # -*- coding: utf-8 -*-
import sys, cv2
import requests
import urllib
import json
import time
import os
import glob
import re
import base64
import numpy
ft_path = '/data/notebooks/yuandaxing1/ft_lib/'
sys.path.append(ft_path)
import ft2
batch_size = 1
class SHOCR(object):
def __init__(self, server="gpu3ss.jx.shbt.q... | [
"shaunzhuyw@sina.com"
] | shaunzhuyw@sina.com |
ebb6925a2298d6d5c71e53537d3d15ee1d015735 | ff2e084d1bb347d16955fbdaa8e9f9d95bcb03e7 | /onepanel/core/api/models/token_wrapper.py | 4f86e905f13a1cff531909e013446e409db807b5 | [] | no_license | casualuser/python-sdk | 7db8969e93693c27fb7f7349cd8353ede54d2ed4 | 9d35ab476a9ba701a09d305bf5ae5af4ba9ed5a6 | refs/heads/master | 2022-09-15T15:18:39.672855 | 2020-05-25T22:15:22 | 2020-05-25T22:15:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,209 | py | # coding: utf-8
"""
Onepanel Core
Onepanel Core project API # noqa: E501
The version of the OpenAPI document: 1.0.0-beta1
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from onepanel.core.api.configuration import Configuration
class TokenWrapp... | [
"r@onepanel.io"
] | r@onepanel.io |
01c6727bbb55b58aaaf00926f80a814bb05f0768 | b854e106dbde2f83cbf07918b740bc21b5a37d16 | /SVR/main.py | 6adbba966a857b375687a72db6a0f364bd0f2518 | [] | no_license | hubertmucha/Machine | 772f4e37510dfda0b661ad41f56a1d0dfefd706b | 5240576af196c740dbd97ec70bac49fb49759d65 | refs/heads/master | 2022-04-11T15:35:47.408963 | 2020-04-11T11:10:41 | 2020-04-11T11:10:41 | 254,343,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 790 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
#importing the data set
dataset = pd.read_csv('Position_Salaries.csv')
X = dataset.iloc[:,1:2].values #matrix
y = dataset.iloc[:,2].values #vector
#scaling data
from sklearn.preprocessing import StandardScaler
sc_X = StandardScaler()
sc_y = Sta... | [
"58261346+hubertmucha@users.noreply.github.com"
] | 58261346+hubertmucha@users.noreply.github.com |
b54170de518ce19a097475f091966db1fd82f864 | fd8e46371be27b51ef345dd8ee5a38cdcd2dfe49 | /tests/test_simplad_monad.py | adec7766ec627ac2755c10c21ca1ed4064860c04 | [
"MIT"
] | permissive | Cogmob/simplads | 1c029ba5474625cd20db46c5e28c194c97e0089d | 8731c4a02273109187cfe601058ce797e32ba1ae | refs/heads/master | 2020-12-28T04:32:56.982748 | 2016-11-04T17:36:51 | 2016-11-04T17:36:51 | 68,810,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,231 | py | from simplads.simplad_monad.simplad_base_helper import Bound
from compare import expect
from fn import F
from functools import partial
from nose.plugins.attrib import attr
from simplads.simplad_monad.namedtuples.bind_args import BindArgs
from simplads.simplad_monad.simplad_base_helper import WrappedDelta, Bound
from s... | [
"luke.avery@live.co.uk"
] | luke.avery@live.co.uk |
73ad191df8f81ff1d0c4174bf2af5a3353083aa8 | 5068fd40502a09f3ba7d34de7e60b0d1e48a5f9e | /amazon.py | 0485295f776964f48e1696b85ec401125bbae1fc | [] | no_license | ishvaram/Python-connectors | 3fbb9246b443d4fc7bdc53256f5f8f7ab8d34f86 | 66079d1d0b80a06fe20beda9b9a475c07be4cf88 | refs/heads/master | 2021-01-18T23:59:47.447494 | 2017-11-27T07:24:40 | 2017-11-27T07:24:40 | 47,703,004 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,646 | py | import sys
import requests
import urllib2
import itertools
from bs4 import BeautifulSoup
pageNumber = 1
max_number = 133
opener = urllib2.build_opener()
opener.addheaders = [('User-agent', 'Mozilla/5.0')]
for number in range(pageNumber, max_number + pageNumber):
url = opener.open("http://www.amazon.com/Apple-iPhone-16... | [
"jehovaram@gmail.com"
] | jehovaram@gmail.com |
64e17a5ea91aa627a5e99f11abecc085abf95e83 | e68cdc27c454f9af90354c9e3a45160453b6812c | /Scrapper.py | 71ecb49743d406c0bf6a9d859fec030ee89014a0 | [] | no_license | dirttech/UtilityScrapper | 73a240dd7154059794d63bbddbdf12dc778946ea | d9c408e3dabf94f977baeaaefdbfa39c8e53470c | refs/heads/master | 2021-01-01T05:37:25.529585 | 2014-06-03T14:43:21 | 2014-06-03T14:43:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,161 | py | __author__ = 'inderpal'
import urllib2
from bs4 import BeautifulSoup
import mechanize
import cookielib
import json
import datetime
import requests
import sys
now = datetime.datetime.now()
day = now.day
month = now.month
year = now.year
Name = ""
City = ""
LoadSanctioned = ""
LoadType = ""
PlaceType = ""
LoadConnecte... | [
"Inderpals@iiitd.ac.in"
] | Inderpals@iiitd.ac.in |
ef27bf70b07265681e123092f152efdfa83c3506 | 91c3eed3612a651d6ba6ab0d2a45c960abec5014 | /SchubbeServer/submodules/smokeSensor.py | 44e2be4f08b63f7bc287bd7bfad977e244d3a11d | [] | no_license | Janessus/SchubbeServer | ee0fb2e5118d4ce59937a16d067ba2df0ccc9fb3 | 27bc785995a0bdb502ecafbd827f7cb455f35aeb | refs/heads/master | 2021-01-02T06:16:40.024713 | 2020-06-23T10:20:01 | 2020-06-23T10:20:01 | 239,526,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,124 | py |
import time
import board
import busio
import adafruit_ads1x15.ads1115 as ADS
from adafruit_ads1x15.analog_in import AnalogIn
# import RPi.GPIO as gpio
def init():
# Create the I2C bus
i2c = busio.I2C(board.SCL, board.SDA)
# Create the ADC object using the I2C bus
ads = ADS.ADS1115(i2c)
# you can... | [
"janesheuberger@web.de"
] | janesheuberger@web.de |
9763acf2c3ee9ef17482c7d31f82767ad9733da0 | 415de2699e479b962579d41b2161efb07caabfe5 | /adrien/browser/egc_topic_browser.py | 65512384a96fb2ad4eeb1d75022aaba1149ca19e | [] | no_license | AdrienGuille/EGC-Cup-2016 | 15c64f4095655583bf0ef8fd18cb555cbda640bc | 198f7c8c3b5a2a788004e3359bbdbcda4acdb9c4 | refs/heads/master | 2021-01-02T23:03:00.830428 | 2015-10-25T09:45:53 | 2015-10-25T09:45:54 | 38,754,269 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,419 | py | # coding: utf-8
from nlp.topic_model import LatentDirichletAllocation, NonNegativeMatrixFactorization
from structure.corpus import Corpus
from structure.author_topic_graph import AuthorTopicGraph
import numpy as np
from scipy import stats as st
from flask import Flask, render_template
import utils
from flask.ext.frozen... | [
"adrien.guille@gmail.com"
] | adrien.guille@gmail.com |
2d15ec2b8d64cbb34b07779dbf0de9ce79ece52e | d3f9b18dccba61c88aab4e1d1d73dc96c1b87094 | /Python/CodingDojo_Python/Django/log_reg_projs/Main3/MAIN/MAIN/wsgi.py | c705725265194d75f294281d91cd40cec3a68ba7 | [] | no_license | sambragge/DojoAssignments | fc13cbccb79a71427f09e4f960ba6a664e8be408 | 6de385bc6b0bb9c0ae70c5750c9044a0668a17c9 | refs/heads/master | 2021-06-21T05:21:10.068026 | 2017-05-07T18:32:47 | 2017-05-07T18:32:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | """
WSGI config for MAIN 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.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTING... | [
"sam@Samuels-MacBook-Pro.local"
] | sam@Samuels-MacBook-Pro.local |
59ab3b8c00e340f686e72893e1533b2c4bc80c26 | 14ec9fc9aee69d54701168c069df4fe46a27b811 | /makeDigikeyBOM.py | 67fa76a4e374de9b7f2442ed9f00517b1d4886b5 | [] | no_license | BitKnitting/MakeDigikeyBOM | 1af6e79b9c9bb86590425ec06bbacc63fa2cbb60 | ef12a92dec3abbd86571b40d6ea7ea72fa6e60b1 | refs/heads/master | 2021-01-13T00:59:15.063713 | 2017-02-20T18:30:42 | 2017-02-20T18:30:42 | 53,728,672 | 10 | 0 | null | null | null | null | UTF-8 | Python | false | false | 841 | py | #
# The main entry point to making a digikey Bom CSV file from the output of bom2csv
# as discussed in the bitknitting blog post: https://bitknitting.wordpress.com/2016/03/05/from-kicad-to-digikey-generating-a-bom-based-on-esteem-overview/
#
import logging
logger = logging.getLogger(__name__)
from replaceJellyBeanParts... | [
"farmerrobbie@freshsalad.today"
] | farmerrobbie@freshsalad.today |
506914e27072e3732420f2074b84705988b980b3 | 619e18c1006f2e9e8960e800edb0490131b1ca35 | /poc.py | e13810b86de3fa773f4376551d4f7fc3575b42ba | [
"Apache-2.0"
] | permissive | Gibstick/hocr-to-zuvaocr-converter | 4c0b61e39d5f420a2185c34aee81c4f9a50b0c7d | b7eafed23a00efd1ee6caa748e2fdb7788aed914 | refs/heads/main | 2023-08-22T21:02:15.739377 | 2021-10-07T13:44:46 | 2021-10-07T13:44:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,690 | py | # Copyright 2021 Zuva 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 to in writing, softwa... | [
"francois.longtin@kirasystems.com"
] | francois.longtin@kirasystems.com |
8143df4cf84b31a4228183b1bc7cc7da429e74d9 | f01c1f5a6f3a9377bc83be0e8cfe29ac59272378 | /cmput496/assignment3/gtp_connection.py | 28453102f55576df1d63875016492d0412efaefa | [] | no_license | boweiww/Projects | 528d01205565ebb7f0c84f28d840eecf4e329274 | 5e0375a17fc97f623557ca6a2b1d20ebd360664f | refs/heads/master | 2021-10-24T09:50:20.539585 | 2019-03-24T22:34:26 | 2019-03-24T22:34:26 | 113,407,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,139 | py | """
gtp_connection.py
Module for playing games of Go using GoTextProtocol
Parts of this code were originally based on the gtp module
in the Deep-Go project by Isaac Henrion and Amos Storkey
at the University of Edinburgh.
"""
import traceback
from sys import stdin, stdout, stderr
from board_util import GoBoardUtil, ... | [
"boweiww@gmail.com"
] | boweiww@gmail.com |
876a38600caafb0020074dfb9d8bcc1fcd87330a | e2c2920d197e51201b0aa4127afe4a701d2f8722 | /lcy8047/HackCTF/Poet/ex.py | d33a857d62d8841678fffb993c13969b3491edde | [] | no_license | JinukHong/CTF | d564c7db194e165b37c1bc9f51fc1ffba9af1bb5 | a8765bd3b8028aeaccc0435d13ee1c2be94f8e41 | refs/heads/master | 2023-07-19T15:40:48.569456 | 2021-09-17T14:51:55 | 2021-09-17T14:51:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | from pwn import *
'''
Arch: amd64-64-little
RELRO: Partial RELRO
Stack: No canary found
NX: NX enabled
PIE: No PIE (0x400000)
'''
r = remote("ctf.j0n9hyun.xyz", 3012)
# poet, author score가 전역변수로 설정되어 있었다.
# poet과 author 모두 gets로 받아 bof취약점이 있었고
# author는 64byte만큼 할당 되어있었고
# 바로 뒤에 score가 있어서 조건에 따... | [
"lcy8047@gmail.com"
] | lcy8047@gmail.com |
5890843886f71a5b8037a0e84989012f7b2a4c32 | 61527c79c6f6752ae926bb82b38d23106a77ba91 | /src/data/py.py | 6fb9ee7b9b37f41a8d835b3d0c962e94e24845b6 | [] | no_license | MetaNovitia/DataPortal | 0bd884e4ecdbf7e6bc216eff237217621389a8a6 | 56bbf5cbe0f8e7c4149a6ff40962d2d4b3cfc87f | refs/heads/master | 2023-01-24T16:07:12.012234 | 2020-02-12T22:08:07 | 2020-02-12T22:08:07 | 197,293,378 | 1 | 1 | null | 2023-01-04T04:38:28 | 2019-07-17T01:37:53 | JavaScript | UTF-8 | Python | false | false | 537 | py | import json
f=open("ns.json",'w')
d = {"Basin":[{},{}],"Region":[{},{}],"All":[{},{}]}
for i in range (1,406):
if i not in d["Basin"][0]: d["Basin"][0][i] = []
d["Basin"][0][i].append(str(i))
d["Basin"][1][i] = str(i)
if i//40 not in d["Region"][0]: d["Region"][0][i//40] = []
d["Reg... | [
"mnovitia@uci.edu"
] | mnovitia@uci.edu |
4d252038bcbc9eef1bf76cf1aad3a729a21082bc | 9d030f2fa76a53014dcf437cc436ecad6c95de0b | /Score_evaluator/migrations/0004_remove_category_likes.py | c28555126cc510d27a6370538b2a4c4830f7f3ad | [] | no_license | rotonmeta/SocialSearchEngine | 40776b296c3c76666ca472f9014f7f57a05a7dad | 661ac9be5fa1694b5a94bf9d514a3d6c11af4f2d | refs/heads/master | 2020-05-18T19:26:45.349597 | 2019-07-08T15:07:26 | 2019-07-08T15:07:26 | 173,291,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | # Generated by Django 2.2.1 on 2019-06-18 15:47
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('Score_evaluator', '0003_remove_categoryscore_score'),
]
operations = [
migrations.RemoveField(
model_name='category',
name='... | [
"roton-meta@live.com"
] | roton-meta@live.com |
090da0f152d71f00b414a43dc812e92cbe6ee8da | 4477b53f4cc0a5ac444a424a4b975406eccc50c0 | /APproject/tests/test_reservation.py | a83d39b09d600365b3037b342e0acafbd6af5ed2 | [] | no_license | V-Saikus/APlabs | 26330fd32ff34e6f39da7e560d17c8e59ddfbd54 | af08b0869c5324b958f8ad5cb829a3c458c0c0b6 | refs/heads/main | 2023-02-04T07:22:51.499155 | 2020-12-28T10:19:15 | 2020-12-28T10:19:15 | 309,087,299 | 0 | 0 | null | 2020-12-28T10:19:16 | 2020-11-01T12:07:34 | Python | UTF-8 | Python | false | false | 4,316 | py | from tests.test_audience import *
import base64
class MyThirdTest(TestCase):
def create_app(self):
# app = Flask(__name__)
app.config['TESTING'] = True
return app
def setUp(self):
db.session.commit()
db.create_all()
def tearDown(self):
db.session.commit()
... | [
"kiltik12@gmail.com"
] | kiltik12@gmail.com |
fa870428c18812b9d152127aa4df6cc4092bdbff | e967290f67437c0afcbb4597e9ba6020761f2a45 | /github.com/ceph/ceph-deploy/ceph_deploy/util/wrappers.py | 4bff77b5657b6ea0ac484359fb93d3a804362451 | [
"MIT"
] | permissive | mp-rheinrich/mp-fs-sandbox | 77bf40a27a0d6c2b38cbc7562023a92fca8751c0 | 35c38ac9d4d7ad941facfd24ab0a068630c57bdf | refs/heads/master | 2020-05-31T11:13:13.474102 | 2013-08-21T12:59:11 | 2013-08-21T12:59:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,052 | py | """
In a lot of places we need to make system calls, mainly through subprocess.
Here we define them and reuse them with the added functionality of getting
logging and remote execution.
This allows us to only remote-execute the actual calls, not whole functions.
"""
from ceph_deploy.util.decorators import remote_compil... | [
"roman.heinrich@gmail.com"
] | roman.heinrich@gmail.com |
0a418fc8812aada8d4b208cdc5ff09a38eebd7ae | 125d2d87b993280dfcec0d755655cf0d2e8a7194 | /Computer_Files/Test/calibrate_camera.py | d32bc64d1f576fe58a61d4356bfc65f3a5731af1 | [] | no_license | QuentinCar/DemoHydro | ab1383728050d1b2b0b0c14ad6db773933076a46 | 3ab12db8befab68e5931a284aa66352ebddd45cc | refs/heads/master | 2020-06-21T04:18:26.614428 | 2019-09-17T12:46:24 | 2019-09-17T12:46:24 | 197,342,043 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,480 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jun 12 14:15:55 2019
@author: Quentin
"""
import numpy as np
import cv2
import glob
def calibration():
print("Define Calibration Parameter...")
# termination criteria
criteria = (cv2.TERM_CRITERIA_EPS + cv2.TERM_CRITERIA_MAX_ITER, 30, 0.001)
# prepare ... | [
"cardinal.quentin@gmail.com"
] | cardinal.quentin@gmail.com |
61cf636fe1e3b402dd46f44f844e6cd651afc53b | a5ca50c35dd71667ec905b883bd3f181ab5d2cab | /applications/FluidDynamicsApplication/symbolic_generation/compressible_navier_stokes/generate_stabilization_matrix.py | 5c49316a2a83b9cd0bc5ce9eab985c8941e03480 | [
"BSD-3-Clause"
] | permissive | philbucher/Kratos | 74aeed105fb283caa2a2e84f44229d4ff657099e | 1ceb900dbacfab344e27e32285250eafc52093ec | refs/heads/master | 2022-03-19T08:38:33.276133 | 2021-11-19T12:14:53 | 2021-11-19T12:14:53 | 216,619,563 | 1 | 0 | NOASSERTION | 2021-11-19T12:14:54 | 2019-10-21T16:54:08 | C++ | UTF-8 | Python | false | false | 2,472 | py | from sympy import *
from KratosMultiphysics import *
from KratosMultiphysics.sympy_fe_utilities import *
def ComputeStabilizationMatrix(params):
"""This function calculates the stabilization matrix"""
print("\nCompute stabilization matrix\n")
dim = params["dim"] # Spatial dimensions
Tau = zeros(... | [
"rubenzorrillamartinez@hotmail.com"
] | rubenzorrillamartinez@hotmail.com |
70972eb1ec404daa58b302a2aba95cc9f7fb235c | 2449d8ca3bb5dd377d7de2058398352405c86aaf | /hw3/2a_testCNN.py | ad62662fc36f89bc85c641c64d4d7070c3787768 | [] | no_license | chenchc/ML2016 | f4e6f5c6d8a089771bac5b5f49ef2d11c4b839c7 | c04f213fb42b99c2de67509bf1acb2cb0fde4080 | refs/heads/master | 2021-03-24T09:14:49.342513 | 2016-12-08T09:08:23 | 2016-12-08T09:08:23 | 68,990,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,003 | py | import os
from keras.models import load_model
import a_model
import pickle
import sys
import numpy
import random
import csv
def readTestData(filename):
with open(filename) as file:
testData = pickle.load(file)
testMatrix = []
for i in range(len(testData['data'])):
instance = testData['data'][i]
instanceInX... | [
"r05922063@ntu.edu.tw"
] | r05922063@ntu.edu.tw |
6a9a2140c3b9497705914e18dd94ed31139bc3b7 | bd6bfc81cd266c8623543473c64bacda131b39a6 | /angellist.py | cea22da59c2b95eadf0ef01a6e7523bbd4cb7e8e | [] | no_license | troyshu/angellistalumnibot | 5b2fba65907dc6e35f444e042e3ba6c6ef4214c8 | dd7aaf0cb884e36473295c344a0d45ab3c28beb2 | refs/heads/master | 2016-09-09T23:17:56.984129 | 2014-02-19T13:47:47 | 2014-02-19T13:47:47 | 16,949,225 | 8 | 6 | null | null | null | null | UTF-8 | Python | false | false | 18,237 | py | #######################################################################################
# Python implementation of AngelList OAuth Authorization and API. #
# #
# Author: Kevin Marshall ... | [
"tmshu1@gmail.com"
] | tmshu1@gmail.com |
d0ddccb63a8286112433e6886535c15b78ec17a4 | 01c6f08f04a5aba3432a672744ad38b07b66cb24 | /tests/test_logic.py | 3c9bc6c23100bb411cca0ac4505621c9a1a70bf9 | [] | no_license | patnir/photo-translator | bced9fa5bf355a47ab1e468fde7cc571ef434389 | f4ce12f75f0f7e9cbb99192066ec026a91bc83e1 | refs/heads/main | 2023-03-17T23:42:50.964279 | 2021-03-17T06:27:20 | 2021-03-17T06:27:20 | 348,130,870 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | from src.logic import translate_photo_contents_into_text
def test_translate():
assert translate_photo_contents_into_text("photo") == "text" | [
"test@tests-mbp.home"
] | test@tests-mbp.home |
5b5cabf08a29039bc59cd1bac436dc857eb9d0b4 | 7833b9033fd68713920b431b56d952ce1b26bf64 | /level0/test/lib/test_framework.py | a95c230d95a4896aa6339af1264722ccb345ae1d | [] | no_license | thbishop/stripe_ctf_3 | 15e7a302223d74e632a5a985024a91480bb04e48 | a05b6d9262a040164ff60b07a55489fdcfa00ba3 | refs/heads/master | 2020-04-01T08:32:29.006343 | 2014-01-31T18:18:42 | 2014-01-31T18:18:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,387 | py | import difflib
import os.path
from random import SystemRandom
import re
import subprocess
import sys
import time
# From this package
import lib.error as error
import lib.http_client as http_client
import lib.util as util
data_directory = os.path.join(os.path.dirname(__file__), "..", "data")
class TestCase(object):
... | [
"bishop.thomas@gmail.com"
] | bishop.thomas@gmail.com |
ee3bd0fd9cd417e9f857dba2376e138ca1a6af7b | f9e2a4f93e7c18390052b87a45f199abce817ffe | /lib/python3.6/reprlib.py | eb5fd636821e416479b02e063c128c24a74e831a | [] | no_license | tunaho/Seng2021 | e356e820458b65a3382671dc9c5810acf9db4b83 | 8be83cf2ada6a069d5b67f9f731bf30b85e8afef | refs/heads/master | 2021-09-15T06:48:48.956845 | 2018-05-28T02:52:05 | 2018-05-28T02:52:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | C:/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/reprlib.py | [
"z5160298@ad.unsw.edu.au"
] | z5160298@ad.unsw.edu.au |
55dd3bb40f27748ad37544434f81d3b3f8af7dbc | ee9d0897c1dfc9a7570dd482056ff174d2bf3cf1 | /twitter/rest-api/lib/python2.7/linecache.py | 742c382c3f110230e34c834dc845d977e9603178 | [] | no_license | ravneetg/mids-w205-2 | 15fbd7d7356fa9ff8cf808a6a2cc9ed75114ee4c | 796d07ad7ff53ff3350fa8b184b9c3d2be0ff795 | refs/heads/master | 2020-07-04T11:44:41.459445 | 2016-12-18T08:34:44 | 2016-12-18T08:34:44 | 67,957,203 | 0 | 1 | null | 2016-12-18T08:34:44 | 2016-09-11T22:15:03 | null | UTF-8 | Python | false | false | 47 | py | /home/blue/anaconda2/lib/python2.7/linecache.py | [
"ravneetghuman@ischool.berkeley.edu"
] | ravneetghuman@ischool.berkeley.edu |
4d38f7bb468beb4ae0d12208543491dffacf5088 | fc93328977a795b72b3d2b4b9ba3d5656e3a3145 | /bc/model.py | fc0f1217c125aed27218e37296fda571977b9f4e | [] | no_license | Recharrs/bc | cbd06b841005fae713b874b845c27f4e39a25414 | c4cebf5ba1475954453a98ca36f376ba4139e168 | refs/heads/master | 2020-03-28T23:48:02.900041 | 2018-10-24T09:40:15 | 2018-10-24T09:40:15 | 149,309,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,626 | py | import numpy as np
import tensorflow as tf
class Model:
def __init__(self, state_dim, action_dim, restore_path=None):
self.sess = tf.get_default_session()
self.state_dim = state_dim
self.action_dim = action_dim
''' Build Model '''
with tf.variable_scope("model") as scope:
... | [
"sliz97028@gmail.com"
] | sliz97028@gmail.com |
24ce46c3f2cdf6328f9ad6f2523d90a5c1357fab | a9adcb5efb4492094ecd9e45741b409afca56f53 | /democratizing_weather_data/streaming/sample_code/sample_consumer.py | 11bae809c233d80495b34da49e9d8ab418dbe20b | [] | no_license | LeoSalemann/democratizing_weather_data | 0792a4419a67799f8f5b60585a6ec32aab72c4c6 | 55d84e8bc3748b0df166d5f2c999bd7906cff1f5 | refs/heads/master | 2021-05-05T10:03:39.234295 | 2017-09-19T01:58:41 | 2017-09-19T01:58:41 | 104,013,673 | 0 | 0 | null | 2017-09-19T02:05:05 | 2017-09-19T02:05:05 | null | UTF-8 | Python | false | false | 822 | py | import sys
import logging
import multiprocessing
from kafka import KafkaConsumer
class Consumer(multiprocessing.Process):
def __init__(self, topic_name):
self.topic_name = topic_name
daemon = True
def run(self):
consumer = KafkaConsumer(bootstrap_servers='localhost:9092',
... | [
"leo.salemann@me.com"
] | leo.salemann@me.com |
4e26bbd2df58bab646493c8d01198a36113d012b | 8b99655d0c3920143aa3a0945f05e7d16526788a | /python基础/异常捕获.py | a54adadeae5439d13f481cd08fb5ce153802a54d | [] | no_license | nicecode996/Python_Test | 8e79373db83caf39521425b2be16416655d3ae8e | 7a26b44cbb9e72c1039ed6c0e4961c4b35472192 | refs/heads/master | 2023-08-16T00:27:03.029817 | 2021-09-27T14:55:01 | 2021-09-27T15:18:20 | 410,270,104 | 0 | 0 | null | 2021-09-26T15:16:31 | 2021-09-25T12:44:03 | Python | UTF-8 | Python | false | false | 533 | py | #! usr/bin/env python3
# coding=utf-8
# try:
# num1 = int(input("输入一个整数:"))
# num2 = int(input("输入一个整数:"))
# print(num1/num2)
# except ValueError:
# print("请输入数值型")
# except ZeroDivisionError:
# print("除数不为0")
# else:
# print("程序没有异常")
# x = 5
# if x > 1:
# raise Exception("这是一个异常")
class M... | [
"19913148542@163.com"
] | 19913148542@163.com |
1217dc9aad892ceabb4e39f38732b3be4c7fcb2f | 15f0322573b8b1b1668c248a428fa27d2244ab99 | /glug/views.py | 41e2cd5d3e88ee2607ebf455b812061ee5d22540 | [] | no_license | spoorthis12/my-first-blog | b2465a37c48cbadf36f9ff607e4428e42f499fb7 | 882ce2702bc3b0691d6d324bc214800157f23abe | refs/heads/master | 2021-01-10T03:42:45.123150 | 2016-03-09T01:12:50 | 2016-03-09T01:12:50 | 53,430,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | from django.shortcuts import render
# Create your views here.
def post_list(request):
return render(request, 'glug/post_list.html', {})
| [
"universalgreen1972@gmail.com"
] | universalgreen1972@gmail.com |
4dce6aca511eb41feeab368a9e2aa4e6b425ce74 | 22535a06ed985cd10048055bb310e9204d95702e | /module_3/zad_98/homework_1/main.py | d3b3e46ff68066e6bd1560473773ed79a5e7744d | [] | no_license | Nanutu/python-poczatek | 56f077f54d5e8a29405addbe53c9d5826542ade2 | af219febb62b1f76435365ca7a2a7797d2fd01d7 | refs/heads/master | 2023-02-15T07:09:37.098394 | 2021-01-08T02:06:53 | 2021-01-08T02:06:53 | 314,753,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,831 | py | # Wykorzystaj metodę super do odwołania się z poziomu klasy ExpressOrder do bazowej implementacji metody total_price i
# zastąp powtórzony w klasie potomnej algorytm wynikiem z tego odwołania.
#
# Pamiętaj, że łączna wartość zamówienia ekspresowego to:
# # łączna wartość zamówienia policzona według bazowej metody + opł... | [
"maciek.sobieszuk@gmail.com"
] | maciek.sobieszuk@gmail.com |
3e328de1c0c7c548ffcdc4dfe4245b69fc6a10cf | c5fb1b19dfb2e09a467b82312bc543b41bf09311 | /venv/bin/jupyter-notebook | 14402b5b0089189da18a0938bc5d0478fa3df764 | [] | no_license | jkam32/python_playground | badb8a281ca4c11155bd2ab8fca94bfc7c2f5097 | ef90dd29ddbd633e03caa273ee9adcb983444911 | refs/heads/master | 2020-03-27T20:32:35.407852 | 2018-09-30T09:20:35 | 2018-09-30T09:20:35 | 147,076,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | #!/home/js/PycharmProjects/python_playground/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from notebook.notebookapp import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"jkam32@siswa.um.edu.my"
] | jkam32@siswa.um.edu.my | |
8c0c4481c0dcb0f0acdf102417132479cee97925 | 3e8ad0a8c52996d614dfc868f1431d7e71ac85d9 | /src/input_data.py | 3c9e9b1e5b28e6fcb8e2b35bb834e5e18c5af50a | [] | no_license | seraphium/neural-networks-and-deep-learning | a6ecc825a865fdbc883db72172f0b9d5b49d0e51 | 230f295026295694c95a06f3fb98c3fc67e2fae2 | refs/heads/master | 2021-01-23T06:19:49.776857 | 2017-04-10T16:49:21 | 2017-04-10T16:49:21 | 86,352,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,227 | py | # Copyright 2015 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 applica... | [
"viperking@163.com"
] | viperking@163.com |
28adf6066f1298f7c1751bea4082fea4e3ed1570 | f44a5803dbfa854de26d354f9e8db0f808d304f8 | /tp3.py | 651e553182f15955f5f51b48d2816b23e38ea3d9 | [] | no_license | MartinA731/Covid-Simulation | 5100b7375293271487eca955469e3d8baeddcca0 | 58baf2877f76b99281c68610884c2fb24b7cb16d | refs/heads/main | 2023-02-10T19:40:37.084687 | 2020-12-26T23:26:18 | 2020-12-26T23:26:18 | 324,649,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,655 | py | import pandas as pd
from cmu_112_graphics import *
from tkinter import *
import states
import random
def appStarted(app):
app.countyCalculated = False
app.firstStep = True
app.charsCalculated = False
app.pos = []
app.R = 4
app.showVisualization = False
app.correctInput = True
... | [
"noreply@github.com"
] | noreply@github.com |
2b12a582682d85608b392f14ce3177ebc146e1d6 | 25cf3a270879dc1d14c258be9b09964ae97cc6f3 | /Homework6/Homework6.py | b61ae8612042f565cbff8c270edef4e293030ca5 | [] | no_license | Zxr1230/cs677 | 58b048429cf028c51df9e6bbdd913d041ea951f9 | f8b232356e99b674205a6001aef7756e99b666be | refs/heads/master | 2020-06-19T22:09:06.331194 | 2019-04-30T01:01:34 | 2019-04-30T01:01:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,411 | py | """
Jimmy Goddard
3/9/19
CS 677 Assignment 6
"""
import datetime
import os
import platform
import statistics
import matplotlib.pyplot as plt
import pandas as pd
import seaborn as sns
from pandas_datareader import data as web
HEADER_LONG = 'Long_MA'
HEADER_SHORT = 'Short_MA'
HEADER_WEEK = 'Week'
HEADER_RETURN = 'Retur... | [
"jimmy.goddard@gmail.com"
] | jimmy.goddard@gmail.com |
77733aa3c3a5f4b351cd39d4466390c280141c03 | 818058887063f94360be7aeb55ef51363ec7334b | /FastFoodFast/asgi.py | 59dbe97db1d17e43073f86d458d1ec1e60243529 | [
"MIT"
] | permissive | Amwata-Albert/Fast-Food | 9521092e2eba5469f4e5f3b85bff8ee68b54d4d7 | 1a6667efb10652852877422616ff80f69c3b066a | refs/heads/master | 2023-01-19T15:55:22.377452 | 2020-11-24T14:26:18 | 2020-11-24T14:26:18 | 311,437,920 | 0 | 0 | NOASSERTION | 2020-11-24T14:26:20 | 2020-11-09T19:04:01 | Python | UTF-8 | Python | false | false | 401 | py | """
ASGI config for FastFoodFast project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_... | [
"albertotieno41@mail.com"
] | albertotieno41@mail.com |
8277d164b1e7040645a57ce23a1d5194130455d5 | 92768f2f4c732583d469212c7e1b00a9ab136752 | /rplugin/python/floobits/common/handlers/credentials.py | f7adcbf82b941023a6f3f28965a5fa4bff73bd2c | [
"Apache-2.0"
] | permissive | Floobits/floobits-neovim | c02e7ccfcb32c80cd1adece8b1896e3defbe120e | dbfa051e4f097dfa3f46997a2019556a62861258 | refs/heads/master | 2021-11-22T19:23:22.984948 | 2021-10-18T05:48:14 | 2021-10-18T05:48:14 | 26,030,646 | 170 | 11 | Apache-2.0 | 2021-11-03T16:41:50 | 2014-10-31T19:40:06 | Python | UTF-8 | Python | false | false | 2,387 | py | import os
import sys
import uuid
import binascii
import webbrowser
try:
from . import base
from .. import api, shared as G, utils
from ... import editor
from ..exc_fmt import str_e
from ..protocols import no_reconnect
assert api and G and utils
except (ImportError, ValueError):
import base
... | [
"bjorn@ambientchill.com"
] | bjorn@ambientchill.com |
1a164b7d02c2408775c790313f51483c12f60fa3 | 0124528676ee3bbaec60df5d6950b408e6da37c8 | /Projects/QTPy/adafruit-circuitpython-bundle-7.x-mpy-20220601/examples/pct2075_high_temp_alert_example.py | 2ec4e88196a8c47dfe88b6d038fdaac9fc2e1030 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | land-boards/lb-boards | 8127658dc537dcfde0bb59a5018ab75c3f0087f6 | eeb98cc2003dac1924845d949f6f5bd387376568 | refs/heads/master | 2023-06-07T15:44:46.110742 | 2023-06-02T22:53:24 | 2023-06-02T22:53:24 | 4,847,305 | 10 | 12 | null | null | null | null | UTF-8 | Python | false | false | 591 | py | # SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
# SPDX-License-Identifier: MIT
import time
import board
import adafruit_pct2075
i2c = board.I2C() # uses board.SCL and board.SDA
pct = adafruit_pct2075.PCT2075(i2c)
pct.high_temperature_threshold = 35.5
pct.temperature_hysteresis = 30.0
pct.high_temp_ac... | [
"doug@douglasgilliland.com"
] | doug@douglasgilliland.com |
5482b9e1a19c034e719f9d85304183ee10fb27d2 | fcd9b782b9e0f0973b1ddc45e432091e2e107f39 | /InstantiationScripts/changeSOACoherence.py | 323ed4273b40d9b92dfcef95b908ae09c7e5ac36 | [] | no_license | oktbabs/fmw_repo | 5c8baa0be8185f3846ebc3cea3a2bf07ff4eb0d3 | 3cff15b4c1e1674c038c8d1c3a6d2c7a68035afb | refs/heads/master | 2020-04-09T23:06:09.725008 | 2018-12-06T14:44:11 | 2018-12-06T14:44:11 | 160,646,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,676 | py |
#++++++++++++++++++++++++++++++++++++++++++++++
# Script Name : changeSOACoherence.py +
# Written By : Timmy Babayeju +
# From Company : Fujitsu +
# To Company : FSA +
# Description : Script retrieves the old +
# Coherence Arguments WKA Addr... | [
"oktbabs@gmail.com"
] | oktbabs@gmail.com |
22c0984369b13c085c9a024934cf992870d0fee8 | 1595ffd5cc3ede5cb1b35b5443070fbebe884fd3 | /dataset/92_get-vocab.py | ef1f0459e4eb87e246660810b3a15bc22249edc7 | [
"Apache-2.0"
] | permissive | ewdowiak/Sicilian_Translator | dd986ac687789f12f1a8d5d5a95f1862ca814174 | 135d6224aa7e9b5d6d8ab3949d463d7e1a1452db | refs/heads/main | 2023-03-09T16:27:13.334651 | 2021-09-26T15:03:21 | 2021-09-26T15:03:21 | 172,383,110 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,063 | py | #!/usr/bin/python3
## Copyright 2021 Eryk Wdowiak
##
## 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 b... | [
"eryk@wdowiak.me"
] | eryk@wdowiak.me |
ac250d7e10667f406ab08f6c594ec3adef79bb13 | dba1606d2ea9c76861d01c2251ff45b0d4efec64 | /LeetCode/39. 组合总和.py | 3a0741cf7ebd3cfa1c1b9361720d978d438e8e42 | [] | no_license | Jack00101/coding | c502087f480d50296eb01cdbba96d2ef26960bef | 4f71a572c24af78f5e6c2006742614f868ced113 | refs/heads/master | 2022-03-02T13:52:19.946260 | 2019-11-01T04:52:48 | 2019-11-01T04:52:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | class Solution:
def combinationSum(self, candidates, target: int, sort=True):
if sort:
candidates = sorted(candidates)
results = []
for ind, i in enumerate(candidates):
if i == target:
results.append([i])
if i < target:
temp = self.combinationSum(candidates[ind:], target ... | [
"noreply@github.com"
] | noreply@github.com |
c77f8b71d8b80ea561f1eec9ef50aee4ebe3840e | 0ff6f65c2da3ddf495b21fb54ae07c1e5c535692 | /juegos/Ahorcado.py | c8ba2bad0792f3a9ab25fac2a0b19bc0342dcd1d | [] | no_license | ldoboga/Bot-discord | 76721ccd8472af7aa161e2159c11a0424ba120fa | 54ed1ff7652a14dbaa90d0a72e9e14b37a63ee59 | refs/heads/main | 2023-07-14T14:47:55.430149 | 2021-08-27T01:26:34 | 2021-08-27T01:26:34 | 388,254,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,907 | py | import random
def leer_archivos():
ARCHIVOS = ('bin\\Cuentos.txt', 'La araña negra - tomo 1.txt', 'Las 1000 Noches y 1 Noche')
with open(ARCHIVOS[0], 'r') as f:
lista = []
data = ''
for line in f:
data = line.rstrip('\n').lower().split()
if data == []:continue
... | [
"bogadofedericoezequiel@gmail.com"
] | bogadofedericoezequiel@gmail.com |
f8fdb29e897fa128d24ffc589aefca92f2b0bd24 | a7b1f827def23135663625426d11b1c57b02fdd9 | /2_3_alerts/2_3_step3_alert1.py | 3de4e106a245dec60b5ae04c2cc451e6e8abc2ab | [] | no_license | Michael-uniq/selenium_stepik_learn | e6421221b0cfc7d469a0fcc12635cb44369e6d35 | 5ba6762aaeb7cdf5f2ad43db4660b0eff9b48992 | refs/heads/master | 2021-06-18T09:39:12.348198 | 2019-10-05T19:00:52 | 2019-10-05T19:00:52 | 212,150,595 | 0 | 0 | null | 2021-06-02T00:30:03 | 2019-10-01T16:54:53 | Python | UTF-8 | Python | false | false | 887 | py | from selenium import webdriver
import time
from utils import print_answer, calc
from selenium.webdriver.common.by import By
link = "http://suninjuly.github.io/alert_accept.html"
browser = webdriver.Chrome()
browser.get(link)
try:
btn = browser.find_element_by_class_name('btn')
btn.click()
print_answer(brow... | [
"michael.co@ya.ru"
] | michael.co@ya.ru |
0785c4045308368283d3ef833fe22fa1dd6852ba | 82097740587821af4af9b41ba9ae14638d20eb69 | /Flask/flaskproject/models.py | 156ead3900d1fc71edca30e0dac340333c6c314e | [] | no_license | dasdasda21/flask | d592c8fa90ea90bdf9adb38b6b0d8b6d8b621967 | 207e863209f670bc8360084fed2e038db727c10b | refs/heads/master | 2020-07-30T12:48:15.417540 | 2019-10-07T13:12:42 | 2019-10-07T13:12:42 | 210,239,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,490 | py | from main import models
class BaseModel(models.Model):
__abstract__ =True
id = models.Column(models.Integer,primary_key=True,autoincrement=True)
def save(self):
db = models.session()
db.add(self)
db.commit()
def delete(self):
db = models.session()
db.d... | [
"zhangsan.caom"
] | zhangsan.caom |
8b4c3ac988b0f45270e383cbf96bdd84bb4ef0b3 | c347d18581177f4a1ed460d57f51906b1c1065e5 | /SDK/wxPythonTextfield.py | 1fe4c8390e723a13021b31eb8aac76fd00e984c1 | [] | no_license | mr-huangjian/Python | da2184f51e03c60dd72e392e8afa9f540a9497ef | 7e0a421d922d377270547afbc9029f7627506f2b | refs/heads/master | 2021-06-28T09:01:56.487917 | 2017-09-19T09:57:33 | 2017-09-19T09:57:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | # coding: utf-8 python2
# created by mr.huangjian@foxmail.com on 2017/7/1.
import wx
class Textfield(wx.TextCtrl):
def __init__(self, superview, style=0):
wx.TextCtrl.__init__(self, superview, -1, style=style)
def text(self, text):
self.SetLabelText(text)
def gettext(self):
retu... | [
"mr.huangjian@foxmail.com"
] | mr.huangjian@foxmail.com |
8ebd576a5c0651eb84ceff4de6e7daa1b0798574 | 5ec06dab1409d790496ce082dacb321392b32fe9 | /clients/python/generated/test/test_com_adobe_granite_repository_hc_impl_authorizable_node_name_health_check_properties.py | 3a604357918c8edc66ecdea80b46d7424d41f966 | [
"Apache-2.0"
] | permissive | shinesolutions/swagger-aem-osgi | e9d2385f44bee70e5bbdc0d577e99a9f2525266f | c2f6e076971d2592c1cbd3f70695c679e807396b | refs/heads/master | 2022-10-29T13:07:40.422092 | 2021-04-09T07:46:03 | 2021-04-09T07:46:03 | 190,217,155 | 3 | 3 | Apache-2.0 | 2022-10-05T03:26:20 | 2019-06-04T14:23:28 | null | UTF-8 | Python | false | false | 1,487 | py | # coding: utf-8
"""
Adobe Experience Manager OSGI config (AEM) API
Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API # noqa: E501
The version of the OpenAPI document: 1.0.0
Contact: opensource@shinesolutions.com
Generated by: https://openapi-... | [
"michael.bloch@shinesolutions.com"
] | michael.bloch@shinesolutions.com |
061fe85a1d6cca2865862da0c133cc36a11f4ecb | 4f6c5a21840f630eab748fa64f79f3d15e33315a | /upload/1386125709792681985/news/master/master/settings.py | 29039ffdeae32373f1ae85b4d7954455d440d93e | [] | no_license | taozi926494/collectplatform | 802af97f0fcb0c8f670e616011e7e2db10edda82 | fb9bc32a99335340cb4e11f18a6e9d5e1effb17a | refs/heads/master | 2023-04-15T00:38:36.869680 | 2021-04-28T02:35:39 | 2021-04-28T02:35:39 | 357,378,396 | 0 | 4 | null | 2021-04-28T02:35:40 | 2021-04-13T00:36:49 | Java | UTF-8 | Python | false | false | 918 | py | # -*- coding: utf-8 -*-
BOT_NAME = '{{project_name}}'
SPIDER_MODULES = ['{{project_name}}.spiders']
NEWSPIDER_MODULE = '{{project_name}}.spiders'
ROBOTSTXT_OBEY = False
CONCURRENT_REQUESTS = 1
DOWNLOAD_DELAY = 1
DOWNLOADER_MIDDLEWARES = {
# 'master.middlewares.UserAgent': 1,
# 'master.middlewares.MasterDownlo... | [
"bestfuqiang@163.com"
] | bestfuqiang@163.com |
62ca945793b8ded662bede34c74e0fa6bba7a0dd | 3d7039903da398ae128e43c7d8c9662fda77fbdf | /database/LeetCode/juejin_177.py | 66305002a453b443f0d8c1698db9ad711222a8ac | [] | no_license | ChenYongChang1/spider_study | a9aa22e6ed986193bf546bb567712876c7be5e15 | fe5fbc1a5562ff19c70351303997d3df3af690db | refs/heads/master | 2023-08-05T10:43:11.019178 | 2021-09-18T01:30:22 | 2021-09-18T01:30:22 | 406,727,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67,057 | py | {"err_no": 0, "err_msg": "success", "data": [{"article_id": "6998707022577270798", "article_info": {"article_id": "6998707022577270798", "user_id": "3175804198200456", "category_id": "6809637767543259144", "tag_ids": [6809640398105870343, 6809641039037464589], "visible_level": 0, "link_url": "", "cover_image": "https:/... | [
"www.1759633997@qq.com"
] | www.1759633997@qq.com |
952babd550cd9afcf85f784233a0982659630df6 | fed5cff094e3bb65b7963c26f96420469f6a60ac | /lensing.py | b9163dcb909a4e8cc116c5654ade26d019a7a5a0 | [] | no_license | sriniraghunathan/cmb_lensing | fbafbd939123345a77c17a51c3d4edd950b046a2 | 8a6250a910ea2687d99646d9ce6d242389d9f6eb | refs/heads/master | 2023-03-29T05:35:13.225785 | 2021-03-24T14:16:37 | 2021-03-24T14:16:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,567 | py | # importing relevant modules
import numpy as np
import scipy as sp
from cosmo import CosmoCalc
import tools
#################################################################################################################################
# defining relevant constants
c = 3e8 # speed of light in m/s
G = 4.3*10**(-9... | [
"noreply@github.com"
] | noreply@github.com |
c03a0a16cd18a1dc84fbaa0069aa6edc636399b0 | 1f6c1b65ac3f71ccc16b46585595406dfbbc1ca1 | /shared/clock.py | 25626ea5176e1d9b9fc34c3ca7369b6891eb6efa | [] | no_license | luisoibarra/distscrappy | 20d236786c7009e2db1db758e91dac62dd49a963 | ba2db15543f9811f7985b9d77178019308fb3807 | refs/heads/master | 2023-05-31T20:08:07.841953 | 2021-06-22T02:43:41 | 2021-06-22T02:43:41 | 375,577,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | import time
import Pyro4
@Pyro4.expose
class ClockMixin:
"""
Mixin that provides clock time methods
"""
def initClockTime(self):
self._clock_time_diff = 0
def setClockTime(self, t : float):
if not hasattr(self, "__clock_time_diff"):
self.initClockTime()
self._... | [
"lukedalmau@gmail.com"
] | lukedalmau@gmail.com |
dca9033b946ba0da1b82f6962d81894435c4265a | 33ca1dab3b0d4e25bdf114e0b873fcb0fdcbc01e | /Input_Output/Using_Pickel_read_write_bin/__init__.py | 8b8e57d9d58a5d7c511f17e61f5c12d8fcb6ba9a | [] | no_license | Biddy79/eclipse_python | 4f49fd714cbdb09be014e75b74a983e456a94b93 | b90c491834d0a584bcab0b99bb8f26d9c0d26669 | refs/heads/master | 2021-12-08T21:55:44.438923 | 2021-11-01T14:39:18 | 2021-11-01T14:39:18 | 235,864,389 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,556 | py | #import pickle lib
import pickle
#creating a tuple to write to bin_file
computer = ('CPU RAM HARD DRIVE MOTHERBOARD',
(('cpu', 'AMD Ryzen 9'), ('ram', 'Corsair 32gb'),
('hard drive', 'Samsung 1td ssd'), ('motherboard', 'ASUS ROG STRIX')))
computer_parts, computer_spec = computer
#using pic... | [
"a.beardsley79@gmail.com"
] | a.beardsley79@gmail.com |
c062491db89b6d205ed3010f8b3bee07231d1981 | 9c00aca19e4faea5067769c06f4430b41b8ad00d | /assignment1/cs231n/classifiers/linear_svm.py | e33b1903347f6ba255a8bf29f0f0b4e1e9fb2e41 | [] | no_license | amir-raffiee/cs-231n | 5a2e40ba9ea31cc76e352fe6e70c0e031f9555f6 | 3a80042ddfa5e05e5ba168841d77cf7a1fe29d1c | refs/heads/master | 2021-09-01T16:53:52.507865 | 2017-12-28T01:04:52 | 2017-12-28T01:04:52 | 115,569,727 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,390 | py | import numpy as np
from random import shuffle
from past.builtins import xrange
def svm_loss_naive(W, X, y, reg):
"""
Structured SVM loss function, naive implementation (with loops).
Inputs have dimension D, there are C classes, and we operate on minibatches
of N examples.
Inputs:
- W: A numpy array of sh... | [
"noreply@github.com"
] | noreply@github.com |
f879b55baf04f46a20421bff6c616a80bc6116d5 | 0e4c5acb80ea44bfa33a0afb713c0d4bc3a5c8f7 | /xueshu/spiders/xueshu.bak | 7437bcaea15ac5f8c894e8b670a53f200f9a237a | [] | no_license | ljjwyn/xueshu | f9ee58602de25244e85f32948020a511c91b4b86 | 69ccc98b1d4fcef2275a8cef939034f2a3d1e5a8 | refs/heads/master | 2023-01-31T02:53:25.515136 | 2020-12-18T05:40:13 | 2020-12-18T05:40:13 | 322,499,259 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,532 | bak | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from scrapy.spiders import CrawlSpider, Rule
from scrapy_splash import SplashRequest
from scrapy.linkextractors import LinkExtractor
from scrapy_splash import SplashTextResponse, SplashJsonResponse, SplashResponse
from scrapy.http import HtmlResponse
from xueshu.items impo... | [
"15964969802@163.com"
] | 15964969802@163.com |
d02b3ee42165fc8a4ec861da700bab61c57b5750 | 0d448a977b0e30b4d5dac76c8f273efb069e263c | /face_blur/face_bluring.py | 0d8da9adf20cad98adfb541936fc19ba2b9ec2f7 | [] | no_license | Prakadeeswaran05/Mini-Projects | cccecc5f559e4315b2d81ad83e67b44f9f12e733 | 984050cea9b8526e8dd38d76f695dca1503ecb3f | refs/heads/master | 2023-06-05T13:03:12.131637 | 2021-06-19T08:58:44 | 2021-06-19T08:58:44 | 298,242,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | import cv2
face_cascade=cv2.CascadeClassifier('C:\\Users\\kesav\\Downloads\\face_blur\\haarcascade_frontalface_default.xml')
cap=cv2.VideoCapture(0)
while True:
ret,frame=cap.read(0)
face_img=frame.copy()
face_rects=face_cascade.detectMultiScale(face_img)
for (x,y,w,h) in face_rects:
... | [
"prakugenius@gmail.com"
] | prakugenius@gmail.com |
893ef9476b1476a4529208a0c1475e6749d452e7 | 6d1728bf105a7d6481d0bbca2b88f4478e0632d9 | /beautifulsoup/start/sibling.py | e0e1b3167becdb2101cb9e5f656394b366a1fa76 | [] | no_license | Phantomn/Python | 00c63aceb2d4aa0db71fe5e33fe8b5159b41aadd | 12808adf4b52c60cfe94befb6daa1e8187224beb | refs/heads/Python | 2022-11-09T16:49:49.165884 | 2019-08-05T07:30:07 | 2019-08-05T07:30:07 | 44,149,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | from urllib import urlopen
from bs4 import BeautifulSoup
html = urlopen("http://www.pythonscraping.com/pages/page3.html")
bsObj = BeautifulSoup(html, "html.parser")
for sibling in bsObj.find("table", {"id":"giftList"}).tr.next_siblings:
print(sibling) | [
"tmdvyr123@naver.com"
] | tmdvyr123@naver.com |
52e390b76a17c761f1aefd5adfe00b9b3859f38b | c730ce0eeea6d774ac6bf7b8ae28d7201efbaa12 | /MovieRaterApi/movierater/urls.py | 98444c67e42b240cef788dec464c2ea0739c7263 | [] | no_license | Yi-Lai-SJSU/Django-React-project-Movie-rator | 4057a81550e34e1f72f62eb18e13542c97f7e969 | d9b97c74948f8ccc47b1eb0e924ba1147da34174 | refs/heads/master | 2020-12-13T10:24:33.137183 | 2020-01-18T07:00:26 | 2020-01-18T07:00:26 | 234,388,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 928 | py | """movierater URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-ba... | [
"yugguo@adobe.com"
] | yugguo@adobe.com |
6f71f8c2009acaee5f18bf0ff7b498764b45a894 | 922d4d17e73120e5075d95385b5d930adedf4ba4 | /fileupload.py | 1759017fea234674c0e7bea021ffab3e944f2a87 | [] | no_license | Animesh66/SeleniumTutorial | 31adf60b5ff4d54a49071fcdd12d88f67aa79aeb | fe61fc9fff4d46a6951919d51d81b048451c2e3d | refs/heads/master | 2023-05-09T21:43:51.689598 | 2021-05-28T17:10:51 | 2021-05-28T17:10:51 | 369,188,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | from selenium import webdriver
import time
driver = webdriver.Chrome()
driver.maximize_window()
driver.get("https://testautomationpractice.blogspot.com/")
driver.set_page_load_timeout(10)
driver.switch_to_frame(0) # switch to fame to identify the form
upload_file = driver.find_element_by_id("RESULT_FileUpload-10") #... | [
"er.animesh6@hotmail.com"
] | er.animesh6@hotmail.com |
d54b95cb3abb42444dba3471fb97d13b45c2bc5f | fe628361e4b4b6acaf693cc9bdde3d25c1926dec | /ers_backend/dataset_manager/models.py | 2e6484d585ae2d3de686bf9de526691ec7c25359 | [
"MIT"
] | permissive | dumoulinj/ers | bcd0de8df8f63e12f7659d5ea1efe32e272e8d66 | ce38ba8acf8fed8dbf27fb85fa6c024540763286 | refs/heads/master | 2020-12-26T03:10:30.550545 | 2016-07-26T07:49:56 | 2016-07-26T07:49:56 | 35,938,084 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 29,490 | py | import os
import logging
import collections
import shutil
from PIL import Image, ImageStat
from converter.ffmpeg import FFMpeg
import cv2
from cv2 import cv
from django.db import models
from swampdragon.models import SelfPublishModel
from django_enumfield import enum
from jsonfield.fields import JSONField
from django.c... | [
"d.jo3l@live.com"
] | d.jo3l@live.com |
b5876dc9d96aa0353a010e6ab41149777db2839f | 826d6d3a2f691046bc65d25d00a23d1b4444c4d5 | /tecpython/lib/python3.7/_dummy_thread.py | 6b010bea891f9bf63be652923541c8da3127db17 | [] | no_license | oscargarciahernandez/QuesiQuieroOquesiTeqno | e3391d56329d84d52ad4a61270dab8bef34db15c | 2f7024f08a6de6a84d0fb5f40832df70aee48c6f | refs/heads/master | 2023-01-19T22:43:44.789533 | 2020-11-23T13:07:20 | 2020-11-23T13:07:20 | 285,193,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50 | py | /home/ai5/anaconda3/lib/python3.7/_dummy_thread.py | [
"proyectoroseo@gmail.com"
] | proyectoroseo@gmail.com |
09b3a389b1084df14d4c4a8c2f0930a95a481b25 | 44a7330dfa4fe321eb432ee57a32328578dec109 | /milk/tests/test_pca.py | e543aff8ebdf2506e861097e21e31271cf4bb07d | [
"MIT"
] | permissive | tzuryby/milk | 7cb6760fad600e9e0d0c9216dc749db289b596fb | a7159b748414d4d095741978fb994c4affcf6b9b | refs/heads/master | 2020-12-29T02:45:33.044864 | 2011-03-15T20:23:29 | 2011-03-15T20:25:11 | 1,485,748 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | import numpy.random
import milk.unsupervised.pca
import numpy as np
def test_pca():
numpy.random.seed(123)
X = numpy.random.rand(10,4)
X[:,1] += numpy.random.rand(10)**2*X[:,0]
X[:,1] += numpy.random.rand(10)**2*X[:,0]
X[:,2] += numpy.random.rand(10)**2*X[:,0]
Y,V = milk.unsupervised.pca(X)
... | [
"lpc@cmu.edu"
] | lpc@cmu.edu |
531d55b58e3c9467b232a7cc8f8185b0e9295939 | 08b3c2cb6cb9df8a8779e82eb9faef0df7e137ab | /src/dpg-yt-dl.py | 18601796ccbcaa9709a24c98e43d7357d6361dc4 | [] | no_license | RNubla/dearpygui-ytdl | 0e9332552c46acda4605faf4c67ea635a373dcaf | 1acbee275d56279337576353e98eb20acec05f23 | refs/heads/main | 2023-06-19T20:36:39.532886 | 2021-07-14T18:47:10 | 2021-07-14T18:47:10 | 385,402,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,311 | py | from knownpaths import FOLDERID
import dearpygui.dearpygui as dpg
import re
import pafy
from moviepy.editor import *
import os
from my_mvLogger import myMvLogger
# from knownpaths import folderid
import knownpaths as kp
from screeninfo import get_monitors
# create viewport takes in config options too!
primary_window =... | [
"rnubla@gmail.com"
] | rnubla@gmail.com |
cb70d5fe1db0f0732fbacf5597c7d99fed39b7c6 | 3d8afceef40458704efbfd10565ce3e2f6cd0662 | /objects.py | 27ead85035a6fa530b51cc97dc603bcfa4b1eb11 | [] | no_license | PyKonstantine/Cyber-Eng | 02d9c5e001f0d0e935627c8a7dca643198cd2d82 | 4c78854998641e7d77382d6e35e86942ba7d983b | refs/heads/master | 2023-03-10T08:17:26.621204 | 2021-01-31T19:53:28 | 2021-01-31T19:53:28 | 334,460,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,400 | py | import pygame as pg
from settings import HEIGHT
COLOR_INACTIVE = pg.Color('lightskyblue3')
COLOR_ACTIVE = pg.Color('dodgerblue2')
class LiteControlButton:
def __init__(self, x, y, w, h):
self.rect = pg.Rect(x, y, w, h)
self.R = 0
self.G = 255
self.B = 0
self.button_y = 20... | [
"chai.ne.voron1991@gmail.com"
] | chai.ne.voron1991@gmail.com |
76e4e94088cac8fe23976295b68806f853d5a0ef | cc8b87bef3cb2d93928d7882c1aa2cb6d29bd819 | /Python/cali_usa.py | 81f2f8cd3bcd4b918b3200fd8d66dde07995edb4 | [] | no_license | angelicaba23/MisionTic2022 | e61cf66ebe069d1b72995ebc466d85224486ad1c | e547343dd7f7dcbaf49958a99f0722f53c4df3a3 | refs/heads/master | 2023-08-01T03:42:36.252984 | 2021-09-17T02:29:06 | 2021-09-17T02:29:06 | 379,116,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,227 | py | """
------------MinTic-----------------
-------------UPB-------------------
-------Angélica Barranco-----------
"""
#factura
num_factura = 0
menu = "si"
while menu == "si":
print("\nBienvenido al sistema de calificacion")
nota_a = 0
nota_b = 0
nota_c = 0
nota_d = 0
nota_f = 0
c_f = 0
c... | [
"angelicaba9923@gmail.com"
] | angelicaba9923@gmail.com |
eebdc0052426934db29e5ef417df31c842b4617d | 1d3450789ee37cceaacddf1cce7508277fd8c240 | /testcli.py | abba3396419e79a83b015cb7665c14970d4e89f5 | [] | no_license | Grissess/nom | cf26ebc3b9c2b891ed021be6206571e78235b6c6 | affbd99fc6dad411f5442de72299689677670132 | refs/heads/master | 2020-04-08T13:18:12.096791 | 2015-01-26T10:33:04 | 2015-01-26T10:33:04 | 23,888,844 | 0 | 0 | null | 2014-09-11T00:42:27 | 2014-09-10T19:27:10 | Python | UTF-8 | Python | false | false | 122 | py | import service
srv=service.Service(('', 12075))
srv.start()
cli=srv.Connect(('127.0.0.1', 12074))
rx=srv.Resolve(cli, 'X') | [
"grissess@nexusg.org"
] | grissess@nexusg.org |
fa3f7ccbf4b282e0ed863b3a8fc5815164a62dd5 | 48bba3541896587cd96112ff4a814d5d8ec6414c | /codes/infer_video1.py | e01911f5f5ff92f0c6a5d5b8471da8590f406570 | [
"BSD-2-Clause"
] | permissive | Bala93/Digital-pathology | f056ebb42c7592fdca400ee0e832fb5225b91085 | 6be5f8a75d9ace9035e915b02244cf97af25ec96 | refs/heads/master | 2021-09-19T10:23:54.459477 | 2018-07-26T18:18:45 | 2018-07-26T18:18:45 | 102,435,574 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 78 | py | /media/htic/NewVolume1/murali/Object_detection/models/research/infer_video1.py | [
"balamuralim.1993@gmail.com"
] | balamuralim.1993@gmail.com |
eba383154f45d3e7af31022c4c2cb7368e4e1f19 | 75e03232591b263a50523d7cfef4041db36caf01 | /VMWsolutions/at2-vclient-032/cft/stress_random_loop.py | 9838ee1acd308fedd0e76ae9218942c2a0100af3 | [] | no_license | adamkittel/src | aaf157062d069998a8d18841895e7362cf868ff9 | 11e3927bd990b885eba595346694de2d2601d5c9 | refs/heads/master | 2021-01-11T16:13:14.592894 | 2017-01-25T18:29:09 | 2017-01-25T18:29:09 | 80,040,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,389 | py | """
This action will run random stress tests in a loop
When run as a script, the following options/env variables apply:
--mvip The managementVIP of the cluster
SFMVIP env var
--user The cluster admin username
SFUSER env var
--pass The cluster admin password
... | [
"adam.kittel@solidfire.com"
] | adam.kittel@solidfire.com |
f1a2454b34e5977852b4f29981527465145cb558 | c86c07584e618c5a4936b13768ef417a319d4b06 | /show_user_permissions.py | 58928ceed0f506d981b1709985ce96329146f53c | [] | no_license | DivvyCloud/tools | 24c1404576e1d30625ae3be16b21c033c8e0bad2 | 53b3686b89e23fcfa44cd4fb95014929ee3cca27 | refs/heads/master | 2020-07-12T07:27:44.537320 | 2019-11-01T18:10:03 | 2019-11-01T18:10:03 | 204,754,278 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,059 | py | # Script to list all permissions a user has via groups and roles
##### SAMPLE OUTPUT
'''
[Alex-MBP scripts]$python show_user_permissions.py
User: ben.calpotura
Number of attached groups: 3
Roles for group: Marketing Team
[]
Roles for group: DivvySales
[ { 'add_cloud': False,
'all_permissions': False,
... | [
"alex.corstorphine@divvycloud.com"
] | alex.corstorphine@divvycloud.com |
91956ba4d19b41720a01993ac3acbd491ad295d4 | cd5746f8cc7aee1f20606a65b4fae0d5e8ee78dc | /Python Books/PythonTesting-BeginnersGuide/code/tests/test_chapter5/test_pid.py | 72b93cd1bcd67c97b5266912ef867908e2d9e800 | [] | no_license | theGreenJedi/Path | df24fca355590efef0c6cb5c52e7216c6b5d2464 | b5ed2805dbb046480929e49e550bfd8af5bb4d6f | refs/heads/master | 2023-07-27T14:23:37.694546 | 2021-07-16T01:38:55 | 2021-07-16T01:38:55 | 87,686,563 | 8 | 2 | null | 2023-07-11T22:49:03 | 2017-04-09T05:57:30 | Jupyter Notebook | UTF-8 | Python | false | false | 2,718 | py | from unittest import TestCase, main
from mocker import Mocker
import pid
class test_pid_constructor(TestCase):
def test_without_when(self):
mocker = Mocker()
mock_time = mocker.replace('time.time')
mock_time()
mocker.result(1.0)
mocker.replay()
controller = pid.PI... | [
"GreenJedi@protonmail.com"
] | GreenJedi@protonmail.com |
76d1807da6e30de90b7fc8d7ae5c3f2be4b808a3 | c10f20abec372f81dbd6468ead208543f60940f1 | /learning/20.BayesianNetwork/20.1.Iris_GaussianNB.py | 8cd96f72d7add1efc07bd0c634a76cf4b1150c0f | [] | no_license | alenzhd/meachineLearning | 64876e7a6c0b8b39a63a9eb586d306a3489b4447 | 1b66ce2f73b226548f07e45c8537b8286635a048 | refs/heads/master | 2021-08-24T10:55:52.056439 | 2017-12-09T10:26:37 | 2017-12-09T10:26:37 | 112,688,163 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,854 | py | #!/usr/bin/python
# -*- coding:utf-8 -*-
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib as mpl
from sklearn.preprocessing import StandardScaler, MinMaxScaler, PolynomialFeatures
from sklearn.naive_bayes import GaussianNB, MultinomialNB
from sklearn.pipeline import Pipeline
fro... | [
"zhanghd@asiainfo-mixdata.com"
] | zhanghd@asiainfo-mixdata.com |
20c0f10f618f37ebff15f67061d06d10a35ab6ef | 59dd90d261756b0de462b693d596f5f06f71270b | /samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/group_parameters.py | bab146a1f469249eb19f39009467267a361a1734 | [
"Apache-2.0"
] | permissive | wsalembi/openapi-generator | cf76c5241e28956fc44a073d17a1ee14fd9aef85 | 035736f5c413bbdc8e70f840cc2e8ff32da9a5a8 | refs/heads/master | 2023-03-17T02:22:04.106748 | 2022-02-16T07:33:23 | 2022-02-16T07:33:23 | 227,096,278 | 0 | 0 | Apache-2.0 | 2023-03-13T17:02:23 | 2019-12-10T10:56:56 | Java | UTF-8 | Python | false | false | 6,531 | py | # coding: utf-8
"""
Generated by: https://openapi-generator.tech
"""
from dataclasses import dataclass
import re # noqa: F401
import sys # noqa: F401
import typing
import urllib3
from urllib3._collections import HTTPHeaderDict
from petstore_api import api_client, exceptions
import decimal # noqa: F401
from ... | [
"noreply@github.com"
] | noreply@github.com |
d6d93d1c2677289dd9d3a9dc675e7e0a2d8b2862 | 6d49e92a553de6bcf07a308e15985ad600fcc367 | /hyperparam_optim.py | 813616bd8d25969c1b46f9659ad9fee4303fedaa | [] | no_license | nurahmadi/Audio-Classification-Using-Deep-Learning | 3e17462a7b7dc8e1e4e2165f9d6f2d27d1aa05dd | ad2dc8db8f00b597659c5d39fc1cfe55b79cadab | refs/heads/master | 2022-08-20T09:34:02.802485 | 2020-05-25T21:25:55 | 2020-05-25T21:25:55 | 266,879,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,744 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Mar 18 21:46:40 2020
@author: na5815
"""
import numpy as np
import os
import tensorflow as tf
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import LSTM, Dropout, Dense
from tensorflow.keras.optimizers import RMSprop
import h5py
impor... | [
"noreply@github.com"
] | noreply@github.com |
0e00d7b9dfd12f62cf14341e65cd37786e0b1482 | f687b45b061a0a4ed849d5d56e265a3423c95f56 | /mime_gen_both.py | 9f8121e8b8ff5edba0344a98ab758923591037af | [] | no_license | wwwlwscom/python | 45e52529fffccf161a0cff8aaf2d19a149ac2056 | 5478329f068f9a4eff5c07eee8005318b41b6440 | refs/heads/master | 2021-01-20T10:06:17.251976 | 2015-10-20T20:03:34 | 2015-10-20T20:03:34 | 41,769,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,479 | py | #!/usr/bin/env python
from email.MIMEText import MIMEText
from email.MIMEMultipart import MIMEMultipart
from email.MIMEBase import MIMEBase
from email import Utils, Encoders
import mimetypes, sys
def genpart(data, contenttype):
maintype, subtype = contenttype.split('/')
if maintype == 'text':
retval = MIMEText(da... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
9e304994375f0455b78a9d29d08791808a9cccc8 | 6b77fc3e8a2b919483723c02ab47681f6c487caa | /main.py | 30ccf696cee9f3e806a1491e43f53d4984ec88ab | [] | no_license | kazato110tm/gcp_python_app | 1d94482eda88e176364ceb6d1d6be39676780df5 | 1a5a2ea65ad82da8a7261d84908faa136fb067d3 | refs/heads/master | 2022-12-06T21:53:56.408582 | 2020-08-23T16:01:10 | 2020-08-23T16:01:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,360 | py | # Copyright 2016 Google 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 to in writing, ... | [
"deguchi.k.110@gmail.com"
] | deguchi.k.110@gmail.com |
c63fff8d99a3dc4b7fc547ac13a5fde5ce61b21f | 8a25ada37271acd5ea96d4a4e4e57f81bec221ac | /home/pi/GrovePi/Software/Python/others/temboo/Library/Fitbit/Social/CreateInvite.py | ad0fa7c6517b0cc3e0e04b248b8071b8d35346b8 | [
"MIT",
"Apache-2.0"
] | permissive | lupyuen/RaspberryPiImage | 65cebead6a480c772ed7f0c4d0d4e08572860f08 | 664e8a74b4628d710feab5582ef59b344b9ffddd | refs/heads/master | 2021-01-20T02:12:27.897902 | 2016-11-17T17:32:30 | 2016-11-17T17:32:30 | 42,438,362 | 7 | 8 | null | null | null | null | UTF-8 | Python | false | false | 5,095 | py | # -*- coding: utf-8 -*-
###############################################################################
#
# CreateInvite
# Invites a user to become friends with authorized user.
#
# Python versions 2.6, 2.7, 3.x
#
# Copyright 2014, Temboo Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you m... | [
"lupyuen@gmail.com"
] | lupyuen@gmail.com |
67ffd9c692b0207ce65232a7eec862d400e10e60 | 89be3dbe4973f65b17a98780f5b0edce2b3634b0 | /abel/tests/test_tools_center.py | 3bd695c474f386df2c5535e1cf57a56305d97a9f | [
"MIT"
] | permissive | Yarubaobei/PyAbel | 0b53daf496dbc0e88547d166267285d72306c702 | 8c881b59a36ed5bd8ad841e38dc942c23c0ff112 | refs/heads/master | 2020-05-19T05:40:47.176636 | 2019-05-04T05:24:20 | 2019-05-04T05:24:20 | 184,854,479 | 0 | 0 | MIT | 2019-05-04T05:06:37 | 2019-05-04T05:06:37 | null | UTF-8 | Python | false | false | 1,792 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os.path
import numpy as np
from numpy.testing import assert_allclose
import abel
from scipy.ndimage.interpolation import shift
def test_center_image():
# BASEX sample image, Gaussians at 10, 15... | [
"Stephen.Gibson@anu.edu.au"
] | Stephen.Gibson@anu.edu.au |
002330b328f74d714aa97ba917e8782c833ab8da | 92c7311a8c145b2d415901991a459bf7d2734929 | /src/web/Result.py | d6cac504f8c02f8e040af32d4e04cdcf39c4d2b1 | [] | no_license | liuyanglxh/py-web | 3aa1043b672a034d548bce7042c8e0cf8faa24b2 | 441ed2077faeabf38f1449762a6ce692bb6a1115 | refs/heads/master | 2022-11-20T15:37:39.612580 | 2020-05-29T10:41:32 | 2020-05-29T10:41:32 | 267,832,787 | 0 | 0 | null | 2022-11-17T15:08:32 | 2020-05-29T10:40:30 | Python | UTF-8 | Python | false | false | 349 | py | from flask import json
class Result(object):
success = True
data = None
code = 200
def __init__(self, success, data, code):
self.success = success
self.data = data
self.code = code
r = Result(True, "a", 200)
print json.dumps(r, default=lambda o: o.__dict__, sort_keys=True, i... | [
"yang.liu@mail.dealmoon.com"
] | yang.liu@mail.dealmoon.com |
7c6fc5bd03e1385e6cf3dcf99c83d1f366d599fb | ce72b098359697eb28628848ec13f736f29366fa | /10-11_like_number_1.py | 1d4d7fef40c7c08b8efc1dad28a2b51c1358d64c | [] | no_license | TCmatj/learnpython | 1e9ab09deebda025ee4cdd1a465815fcd0594f48 | d92b38a760b29f26efba1f4770ab822aba454931 | refs/heads/master | 2023-01-31T18:19:56.211173 | 2020-12-14T03:06:35 | 2020-12-14T03:06:35 | 298,828,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | # TC 2020/10/11/21:39
import json
filename = 'json\\like_number.json'
number = int(input("输入喜欢的数字:"))
with open(filename,'w') as fm:
json.dump(number,fm) | [
"2216685752@qq.com"
] | 2216685752@qq.com |
76b298420595288e18d020473760727475db4570 | 3e6d90546509004d836b4a74df93c9d1515529a0 | /Interpolazione.py | 6e7821a583fda9e05fe5c8f0f525372fc9047150 | [] | no_license | pelagos91/UniBa-Calcolo-Numerico-ICD | 8a05438837a17ffe13ddc684ef187b340ac8f21a | 969c3deeaf184c81df956756b7157b398944a28c | refs/heads/master | 2021-01-10T05:32:48.845826 | 2016-01-26T22:25:41 | 2016-01-26T22:25:41 | 50,463,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,269 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Dec 13 09:25:54 2015
@author: pelag
"""
import numpy as np
import scipy.linalg as las
import matplotlib.pylab as plt
import scipy.interpolate as interpolate
def lagrange(xnodi,fnodi,x):
"""
Funzione che determina in un insieme di punti
il valore del polinomio... | [
"agopel@gmail.com"
] | agopel@gmail.com |
d26c8d733fd5edcbcf3cdce1accbdc56c474b637 | d245c87a5082027f4b390210e0beae15ce19f321 | /python/crc16.py | d52d40b2e38a314dc0c4278bec53300ed81f03fc | [] | no_license | pazderski/spair-stm32-firmware | 9a85e83f1bbdb3fc55a440f039fc18d98e723815 | 26c3a226a4b7dec3e735ab4712f1ad36b97f4a8b | refs/heads/master | 2021-01-10T05:26:55.284937 | 2020-03-02T22:33:11 | 2020-03-02T22:33:11 | 36,146,152 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,635 | py | #* File: CRC16.PY
#* CRC-16 (reverse) table lookup for Modbus or DF1
#*
INITIAL_MODBUS = 0xFFFF
INITIAL_DF1 = 0x0000
table = (
0x0000, 0xC0C1, 0xC181, 0x0140, 0xC301, 0x03C0, 0x0280, 0xC241,
0xC601, 0x06C0, 0x0780, 0xC741, 0x0500, 0xC5C1, 0xC481, 0x0440,
0xCC01, 0x0CC0, 0x0D80, 0xCD41, 0x0F00, 0xC... | [
"dariusz.pazderski@put.poznan.pl"
] | dariusz.pazderski@put.poznan.pl |
e89d6dc70ef70ba87520aa3295eb41f07cb4aaa9 | 2a3606551a4d850a7b4d6a4e08089c51108ef7be | /plugin.video.mrknow/resources/lib/crypto/keyedHash/pbkdf2.py | cf79523b747c13cbeb4fb110e54813a48c123a41 | [
"Apache-2.0"
] | permissive | rrosajp/filmkodi | a6bb1823f4ed45453c8b8e54ffbd6a7b49f44450 | 0162cde9ae25ddbf4a69330948714833ff2f78c9 | refs/heads/master | 2021-09-18T06:03:17.561062 | 2018-06-22T23:28:53 | 2018-06-22T23:28:53 | 234,768,781 | 1 | 0 | Apache-2.0 | 2021-06-03T20:33:07 | 2020-01-18T17:11:57 | null | WINDOWS-1252 | Python | false | false | 1,571 | py | # -*- coding: iso-8859-1 -*-
""" crypto.keyedHash.pbkdf2
Password Based Key Derivation Function 2
References: RFC2898, B. Kaliski, September 2000, PKCS #5
This function is used for IEEE 802.11/WPA passphrase to key hashing
Copyright © (c) 2002 by Paul A. Lambert
Read LICENSE.txt for license information.
"""
fr... | [
"mrknow@interia.pl"
] | mrknow@interia.pl |
6d5294bd220daf2939a8aa6af9e29395f72721da | 72c02a60f2a2894a148f5fb4c8ff62e0b0a7fc4e | /news_system/exception.py | 848ec9f9f4ef5f637e6ed55002df3f683d459caf | [] | no_license | Kamonnny/news_system | a798c258dc84efb9756889e2c9eace9b1216c5b3 | 476b4fc0eec8ecb7349cc5e44df990a629c600e4 | refs/heads/main | 2023-03-29T11:46:36.089419 | 2021-03-25T12:45:19 | 2021-03-25T12:45:19 | 314,820,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | class APIError(Exception):
""" 自定义错误类 """
def __init__(self, code: int = 400, msg: str = "ok", data: dict = None):
self.code = code
self.msg = msg
self.data = data or {}
| [
"EachinChung@gmail.com"
] | EachinChung@gmail.com |
5589f53032b5d4e17f0d40bc8a5c208b3fe36000 | 2fd46266ea2a0155d9de4e539970cf7fcdcdfc69 | /backhotel/migrations/0001_initial.py | c8c3e482f97eec20dc732a9c24929f5b19fa4b40 | [] | no_license | djcors/ultragroup | c31307cc7786838c0f016d06c4799b9c822026ef | 0c05014dd7702a99861b7b341883231b627c04d7 | refs/heads/master | 2023-01-13T23:17:49.642271 | 2019-11-13T03:29:58 | 2019-11-13T03:29:58 | 220,570,849 | 0 | 0 | null | 2023-01-07T11:34:22 | 2019-11-09T00:50:13 | JavaScript | UTF-8 | Python | false | false | 2,876 | py | # Generated by Django 2.2.7 on 2019-11-10 15:54
from django.conf import settings
import django.contrib.auth.models
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0011_update_proxy_permissions... | [
"jonathan.cortes@inmersa.co"
] | jonathan.cortes@inmersa.co |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.