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 213
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 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
243c94a22dcf1c92d075e8b109a05151f9771e0d | c50c85a776e134b0a9729c5e91cfeb8b879105e2 | /apps/rssdetail/rssd_detail.py | 5b32d7cb99acd2c077c0ecb330ef3ff73e0e6d64 | [
"MIT"
] | permissive | carrl/rssreader | 5d26e39574b647e65ae99b0ff1f9dc5cfbdd8e7f | e2bef1c3a974f095e01f143b84fb0475428fee1c | refs/heads/master | 2021-01-01T05:32:00.590629 | 2013-07-14T13:15:25 | 2013-07-14T13:15:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,988 | py | #! /usr/bin/env python
#-*- coding:utf-8 -*-
# 顯示 rss 明細
import cgi
import string
import sqlite3
import sys
import json
sys.path.append("../common")
import common
# 將傳入的參數,存成 辭典集
def cgiFieldStorageToDict( fieldStorage ):
params = {}
for key in fieldStorage.keys():
params[ key ] = fieldStorage[ key ... | [
"carrlyea@gmail.com"
] | carrlyea@gmail.com |
7f1ad333efb800c619e08febd86eb5baf0d2cb40 | d346a1a97ce0d8a6e6a63cdfd1fc347173dd4e3d | /lib/qfl.py | 58c2cc0f598136ba7965e971e8f01711430e4333 | [
"MIT"
] | permissive | sola-st/MorphQ-Quantum-Qiskit-Testing-ICSE-23 | 33b03f15c8164ce9ff0699924a9fae70977d9fdd | b86b6d735f3cd19ccdba4414f0b66b8d07e03d6a | refs/heads/main | 2023-04-11T15:18:35.748965 | 2023-02-09T09:13:51 | 2023-02-09T09:13:51 | 589,925,357 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 11,605 | py | """
Quantum Fuzzy Lop (QFL)
This tool fuzz quantum circuits in QASM and run them on multiple platforms.
Programming Mantra:
- every function should have 3-5 lines + return statement.
- max one if per function (which gives +3 lines to use).
"""
import random
import click
import multiprocessing
import time
from timeit ... | [
"mattepalte@live.it"
] | mattepalte@live.it |
a0f58f0c6644c31075db50ea0f95e700570451b6 | f3e59a32cb802ab7d46053933a5b05ee6844da7e | /mysite/settings.py | c713cfdd9447b47dfc8562bd5937454616723f02 | [] | no_license | halchenko/my-first-blog | f085de1bb348305ec92d1376d6fd58b000eaa729 | cfde3150cb013da94971ba427f77a8043f2c5d4c | refs/heads/master | 2021-01-23T20:39:08.076602 | 2017-09-08T14:32:52 | 2017-09-08T14:32:52 | 102,871,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,155 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.11.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
... | [
"oleksii.halchenko@gmail.com"
] | oleksii.halchenko@gmail.com |
c2a1bb87cab9305ab79604ff95ce89a200541e61 | a535f39c8486c6eaa3142762db7ffaca06122c85 | /openpype/hosts/maya/api/shader_definition_editor.py | 73cc6246ab39c66c0920dbed09a8c00383fb278e | [
"MIT"
] | permissive | aditiapratama/OpenPype | 04c36a3e62535714aad175f4da9706434052cfb8 | 058089429fb5d95a22d55c10bf5b34ffb2175279 | refs/heads/main | 2023-07-02T06:16:42.151432 | 2021-08-04T03:42:17 | 2021-08-04T03:42:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,653 | py | # -*- coding: utf-8 -*-
"""Editor for shader definitions.
Shader names are stored as simple text file over GridFS in mongodb.
"""
import os
from Qt import QtWidgets, QtCore, QtGui
from openpype.lib.mongo import OpenPypeMongoConnection
from openpype import resources
import gridfs
DEFINITION_FILENAME = "{}/maya/shade... | [
"ondrej.samohel@pype.club"
] | ondrej.samohel@pype.club |
e452c4e61e130fd7ce3c5a33ce3fc3e2c17382ba | 60b6527165bca325b66e00f9d54604b69a0b0a56 | /migrations/env.py | ef3f27f441db0f89ffed7b1af86dc4a7d145194b | [] | no_license | groshevpavel/x5-media-testing-task | 92f20f4125ef700bbd64121bdb9529fa99935ee6 | 03a5633c48e19bcffcb283b1295846bccda92b4d | refs/heads/main | 2023-08-25T15:19:20.527723 | 2021-10-18T13:20:05 | 2021-10-18T13:20:05 | 418,498,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,173 | py | from logging.config import fileConfig
from sqlalchemy import engine_from_config
from sqlalchemy import pool
from alembic import context
# this is the Alembic Config object, which provides
# access to the values within the .ini file in use.
from app.db import DATABASE_URL
from app.models.base import metadata
config ... | [
"bosker@inbox.ru"
] | bosker@inbox.ru |
43ba3ad11a6e3aed976f0f15f9541e31fbe5f1ab | a2a98df0cbc4898c3e345df9ad9a8fc26d73c28d | /T5_Python_Data_Games.py | c4d8d3ab976cddd0f823113c561dc125a28aa253 | [] | no_license | CSCI-3308-T5/project | 9baabe4f3165c526e16727d16fc74d1fd8be4ad8 | 31cfb1f7dd4948b56b8fdb0a0998c2fb9dbdfd47 | refs/heads/master | 2020-03-29T20:56:42.623266 | 2018-12-15T04:33:32 | 2018-12-15T04:33:32 | 150,340,302 | 0 | 0 | null | 2018-12-10T19:31:18 | 2018-09-25T23:16:03 | JavaScript | UTF-8 | Python | false | false | 946 | py | #Data taken from https://steamspy.com/
local_path = 't5.csv'
#Reading in file and storing it in a data frame
infile = open(local_path,'r')
file_contents = infile.readlines()
#Data arrays
gameDate = []
gameName = []
gamePrice = []
gameRank = []
gameUserScore = []
#parse to remove all '\t' characht... | [
"noreply@github.com"
] | CSCI-3308-T5.noreply@github.com |
9f5d7e03d338bcee649e0798c30ea3227c1c60cc | b15a9d9c7374c4a1fa5ec3ef63603a8c57e8681f | /Design-Patterns-Python/bridge/circle.py | cd3638d219be793d909728245bf9ccdec57095a8 | [] | no_license | gohils/zemr_notebook | 3f7490ef7a2559655746c3e2e0dbfb835a83891e | 00d53cea9970df44160c51e6ad2bdeadfae2c91f | refs/heads/master | 2023-08-04T14:32:35.428016 | 2023-07-20T11:51:08 | 2023-07-20T11:51:08 | 222,027,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | # pylint: disable=too-few-public-methods
"A Circle Abstraction"
from interface_shape import IShape
class Circle(IShape):
"The Circle is a Refined Abstraction"
def __init__(self, implementer):
self.implementer = implementer()
def draw(self):
self.implementer.draw_implementatio... | [
"noreply@github.com"
] | gohils.noreply@github.com |
89a5834ff9e4a151df5a003bd30350a9d96dd372 | 5af4fd8ad86305756014232c13e4582b65fa7479 | /helpers/tools.py | 62a27fda0fe2c36ef074f6d9108a3c3dd6c37fcb | [] | no_license | dloveff/logpress-tornado | 7b67a92b313eb2b236c01590ef60cdac920eef3d | 569db6e6ce8cdd21b97f9f6dd2a5c92b1208ce6b | refs/heads/master | 2021-01-21T19:58:42.011088 | 2016-03-22T16:32:36 | 2016-03-22T16:32:36 | 53,790,689 | 0 | 0 | null | 2016-03-13T14:57:49 | 2016-03-13T14:57:47 | null | UTF-8 | Python | false | false | 2,662 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import tomlpython as toml
def load_config(config):
"""
读取toml配置文件,并讲dict转换为object,简化访问方式。
"""
with open(config) as data:
return Dict2Object(toml.parse(data))
class Dict2Object(dict):
"""
将Dict转换为Object,简化Dict的访问方式。
reference:
... | [
"ljd15218408224@163.com"
] | ljd15218408224@163.com |
ecad6018c8e035a3d71ffae5d67fa4943aa1843e | decefb13f8a603c1f5cc7eb00634b4649915204f | /packages/node-mobile/deps/uv/uv.gyp | a9a3635570161b275e12e9ebd1d75699f599bba9 | [
"Zlib",
"CC0-1.0",
"ISC",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"ICU",
"MIT",
"LicenseRef-scancode-public-domain-disclaimer",
"Artistic-2.0",
"BSD-3-Clause",
"NTP",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause",
"LicenseRef-scancode-openssl",
"LicenseRef-sc... | permissive | open-pwa/open-pwa | f092b377dc6cb04123a16ef96811ad09a9956c26 | 4c88c8520b4f6e7af8701393fd2cedbe1b209e8f | refs/heads/master | 2022-05-28T22:05:19.514921 | 2022-05-20T07:27:10 | 2022-05-20T07:27:10 | 247,925,596 | 24 | 1 | Apache-2.0 | 2021-08-10T07:38:42 | 2020-03-17T09:13:00 | C++ | UTF-8 | Python | false | false | 10,599 | gyp | {
'variables': {
'conditions': [
['OS=="win"', {
'shared_unix_defines': [ ],
}, 'OS=="android" and target_arch in ("arm","ia32")', {
# Android on API < 24 will miss function definitions for
#_FILE_OFFSET_BITS=64
'shared_unix_defines': [
'_LARGEFILE_SOURCE',
... | [
"frank@lemanschik.com"
] | frank@lemanschik.com |
5b9142bdc405925e687295a8db226da6900be9ef | 72ecff1500c87e5a9c4723d2f436db2c5b89064e | /HDatabase/Upload Data to AWS_RDS_Database.py | c52864eb00655cb0d331cb8a12076fe6929f584e | [] | no_license | Manodhayan/Ambience | 1a6e8b4c7d222e85abd4fc43fdf43741b5d5e28e | 89c9f0996690ddf7524e4b6c98f642f155b685a6 | refs/heads/master | 2020-04-07T21:22:31.448133 | 2018-11-22T16:18:43 | 2018-11-22T16:18:43 | 158,724,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,527 | py | import ttn
from datetime import datetime
import pyodbc
connected=False
try:
cnx=pyodbc.connect("Driver={SQL Server};server=hospsqlserverdatabase.czbthbfxmuzs.ap-south-1.rds.amazonaws.com,1433;database=hospsqlserverdatabase;uid=manodhayan;pwd=amazonMano98",
autocommit=True)
connected=True
... | [
"manodhayan@hotmail.com"
] | manodhayan@hotmail.com |
d1d49dd8d79b777cd2b052425958d72d22c9f6e5 | a179bf0993f092ba1088309c0dfa6b9aedbf46e9 | /My_Blog_Project/urls.py | 5410e76af629480f5cc1ed5953163333a8f89a62 | [] | no_license | Shahittya/django54321 | a2bbae535f5261853e19868078ae289c41105d3b | 685dcbffbeb5d36f9b6f20074b17df7f2bab8f92 | refs/heads/master | 2023-08-01T18:04:49.526232 | 2021-09-18T08:18:50 | 2021-09-18T08:18:50 | 407,797,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | from django.contrib import admin
from django.urls import path,include
from . import views
from django.conf import settings
from django.contrib.staticfiles.urls import static,staticfiles_urlpatterns
urlpatterns = [
path('admin/', admin.site.urls),
path('account/',include('App_Login.urls')),
path('blog/',inc... | [
"yashsiddque@gmail.com"
] | yashsiddque@gmail.com |
f701a7a12c7edd20e15e4d9c1da5e6e5f228c837 | 779ae09963d3ee259ab8b9dc6f4d035dd551668c | /venv/bin/rst2latex.py | d78ae44d1f6b8a024734b04e79f9b853250b1d8b | [] | no_license | manav2401/Apna-Hack-Ayega_hackout | 5fa6473b96f3e02810c452de9b18e9b9295ab015 | 734240b844e20db845b0e03273dbb09f48686e6d | refs/heads/master | 2020-08-06T19:17:34.357676 | 2019-10-13T16:01:45 | 2019-10-13T16:01:45 | 213,121,054 | 1 | 0 | null | 2019-10-13T15:04:35 | 2019-10-06T06:44:32 | Python | UTF-8 | Python | false | false | 810 | py | #!/home/nisarg/flask/venv/bin/python3
# $Id: rst2latex.py 5905 2009-04-16 12:04:49Z milde $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing LaTeX.
"""
try:
import locale
locale.setlocale(l... | [
"nisshah1499@gmail.com"
] | nisshah1499@gmail.com |
d534ae28d3aa0734296825c043a748eb4545a4d6 | 0f0f8b3b027f412930ca1890b0666538358a2807 | /dotop/osv/__init__.py | 8de54bfa5a534d8654b634c43bd9062f8c573ddc | [] | no_license | konsoar/dotop_pos_v11 | 741bd5ca944dfd52eb886cab6f4b17b6d646e131 | 576c860917edd25661a72726d0729c769977f39a | refs/heads/master | 2021-09-06T13:25:34.783729 | 2018-02-07T02:11:12 | 2018-02-07T02:11:12 | 111,168,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | # -*- coding: utf-8 -*-
# Part of dotop. See LICENSE file for full copyright and licensing details.
import osv
| [
"Administrator@20nuo003-PC"
] | Administrator@20nuo003-PC |
aef4477062ee88ef1515a6a483cade9f716c8183 | 57c877f97e7fdd49d9b18da53b9b317cfb9eb09e | /pyboard/modules/other/blinker.py | ef2e681bf77acf2861687ee47c9a623ac0cc5b9d | [] | no_license | johannes-otto/jrt-ignition | 739f8d11787043323fdbcb04a35c3dc5570d9732 | 07d79c12c5d46bfe224cf4089b5aa2c583426c3a | refs/heads/master | 2021-01-21T04:07:18.753455 | 2015-10-10T10:28:29 | 2015-10-10T10:28:29 | 43,672,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 950 | py | import pyb
class Blinker(object):
relais_left=pyb.Pin('X3',pyb.Pin.OUT_PP)
relais_right=pyb.Pin('X4',pyb.Pin.OUT_PP)
left_blink_sw=pyb.Pin('X11',pyb.Pin.IN,pyb.Pin.PULL_UP)
right_blink_sw=pyb.Pin('X12',pyb.Pin.IN,pyb.Pin.PULL_UP)
def __init__(self, blink_time=500):
self.relais_left.high()
self.relais_right... | [
"otto.johannes@yahoo.de"
] | otto.johannes@yahoo.de |
acd28ce14a22d0ba6d77281197d137c6351650c6 | 70f4cf32be508c45aa61c174ceed559e40af3f6d | /ytdown1.py | 8d4c9cdbb4c2294204a7424e888d533752d56d42 | [] | no_license | sonumahajan/YouTube-Video-Downloder-in-Python | 30803b5c598069982733c2d3e31733c51cabe23b | c915ce892be82189d722bfdec33bd5d293394813 | refs/heads/master | 2022-11-11T10:04:46.690946 | 2020-06-29T15:02:50 | 2020-06-29T15:02:50 | 275,845,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | from pytube import YouTube
print("Welcome in Youtube video downloader.")
link =input("Enter link: ")
vid = YouTube(link)
videos = vid.streams.filter(file_extension='mp4').all()
i=1
for qlt in videos:
print(str(i)+" :"+str(qlt))
print(" ")
i +=1
qlt_num = int(input("Enter number: "))
video = videos[qlt_n... | [
"mahajan00sonu@gmail.com"
] | mahajan00sonu@gmail.com |
880c70fec6b9398290c487d03f86754dfcdeb4f5 | 6664c6b1708e5594fa5256ce7c693dab5b5c83d6 | /server.py | 8946f5f96803e2d8a438e0139d6f2b78c8221267 | [] | no_license | akbarghi/KNNmobileprice | 3157920d5d0ab4f280101a61657d2304bd403dd0 | ca198a93e4317b102f08cccf9b4c41939c891236 | refs/heads/master | 2020-09-20T10:34:35.415694 | 2019-11-27T20:06:25 | 2019-11-27T20:06:25 | 224,452,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283,465 | py | {
"cells": [
{
"cell_type": "code",
"execution_count": 99,
"metadata": {},
"outputs": [],
"source": [
"import pandas as pd\n",
"import numpy as np\n",
"import seaborn as sns\n",
"import matplotlib.pyplot as plt"
]
},
{
"cell_type": "code",
"execution_count": 100,
"metad... | [
"akbarghifaray@gmail.com"
] | akbarghifaray@gmail.com |
47a70babb3db84356361acf60b5e6d54a50c94ce | 38ba13df9ea6e53c7b924cad1f3bea2de59c7a6a | /nibbler/trading/collectors/Watcher.py | 19ea6b0adbe54c634a51182074af580ff6b54745 | [] | no_license | JizzFactoryEmployee/nibblerppman | 0fbc1ce662cf8b4868b41a97291250fae29dc41d | 160e557578a3e8a614450354f6ade233d32b052f | refs/heads/master | 2022-11-14T01:10:31.743000 | 2020-07-04T01:21:52 | 2020-07-04T01:21:52 | 273,835,770 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | import time
from watchdog.observers import Observer
from watchdog.events import FileSystemEventHandler
import nibbler.trading.collectors.futures_collector as futures
class MyHandler(FileSystemEventHandler):
def on_modified(self, event):
event_list = event.src_path.split('\\')
filename = event_list... | [
"52958901+JizzFactoryEmployee@users.noreply.github.com"
] | 52958901+JizzFactoryEmployee@users.noreply.github.com |
7c60be6add65fa3c6fee396f4fe5cbaf2ea6b95d | 94f8d393536a38136420b299555a47989cb95e06 | /shengsai/shengsailianxi/shengsailianxi/run.py | 772b13443311bf140c5a90309ca8d32b3d97648c | [] | no_license | nolan0536/weizhiBigDataPython | 9164ddc50cd0b850ec7536270d690dd0848b9f06 | ef4ab9d749159166fcfe48883d680ac058b12425 | refs/heads/main | 2023-04-21T21:15:11.235258 | 2021-05-08T01:28:51 | 2021-05-08T01:28:51 | 361,971,771 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77 | py | from scrapy import cmdline
cmdline.execute("scrapy crawl xiaolianxi".split()) | [
"1552696515@qq.com"
] | 1552696515@qq.com |
0cef33f9b804fb8d06480356283a48afa11a4d9c | 905020fce75b4b63517ec31c601e721f5c260cd1 | /Карточные расклады.py | 1853c600b2cf5ef636e2296518a51051750b2fef | [] | no_license | Dimaed90800/Python_Y | 7858ad46309281a89c5c1e83a0f09030996182a4 | 04092b854605cb05df439eeeb52003e585bb5a29 | refs/heads/main | 2023-01-24T04:11:17.858281 | 2020-11-17T20:42:45 | 2020-11-17T20:42:45 | 313,731,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | import itertools
nominals = ['2','3','4','5','6','7','8','9','10','валет','дама','король','туз']
suits = ['пик','треф','бубен','червей']
allcomb = list(itertools.product(nominals,suits))
comb = []
for elem in allcomb:
if (elem not in comb) and (list(elem).reverse() not in comb):
comb.append(' '.joi... | [
"noreply@github.com"
] | Dimaed90800.noreply@github.com |
22c20c863ad7eb6b0457fd13b70a073f1501c3fc | 9f68d9784f8a664e6692702d5a647a2e96a294d3 | /pid/pid0/bin/django-admin.py | 1e1b9cfe07f0c38cce1b513ebc0f1edc7ecdf62c | [] | no_license | frapercan/PID | 5dfcf99718d5e85120781f2c0e033202d9746450 | 50df5e9566ec3a08a5096ca1b0e926db30f70761 | refs/heads/master | 2022-10-31T04:08:20.981118 | 2022-10-06T21:58:44 | 2022-10-06T21:58:44 | 113,441,194 | 1 | 2 | null | 2022-10-06T21:58:45 | 2017-12-07T11:14:11 | Python | UTF-8 | Python | false | false | 154 | py | #!/home/starrio/Universidad/PID/pid/bin/python3
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"tarriosantiago@gmail.com"
] | tarriosantiago@gmail.com |
6b51db0095a430b5ff32fd1e15f47176c85cf814 | c44f38cb20d35aa54126fb0102baf40dae78dccd | /hhr/logs/logger.py | 5cfc8baa0ad35b999c34bf4869d3a8e52d2c8c8a | [] | no_license | aixin2000/Test_Scripts | d2221c93eaf3fd7e0d618ca646dce6200fa3cf75 | cf92e8e81ceb5cb67217bf36993cf94fe470fd0b | refs/heads/master | 2023-03-13T08:24:34.661616 | 2021-03-04T13:40:46 | 2021-03-04T13:40:46 | 344,461,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,669 | py | # !/usr/bin/python
# -*- coding:utf-8 -*-
# logging模块支持我们自定义封装一个新日志类
import logging
import os.path
import os
import time
class Logger(object):
def __init__(self, logger):
"""
指定保存日志的文件路径,日志级别,调用文件
将日志存入到指定的文件中
:param logger:
"""
# 创建一个logger(记录器)
# 日志记录的工作... | [
"1454622738@qq.com"
] | 1454622738@qq.com |
fde45c72b38be988de28cfb02d09ce268e6a0ac8 | c29ee57cdba30d0099c55d7b138a361a4964af4b | /apps/blogs/urls.py | a6a724f8cca29d67b19a8b9d2ed788dfe37cdafc | [] | no_license | bakker4444/django_app | ea26be5fa7789a083b199d5094767e16ec0fa63e | 6b1cd0cfc55be11f31cdc5970d4787f15828ac94 | refs/heads/master | 2020-03-10T10:06:17.177952 | 2018-04-13T00:30:54 | 2018-04-13T00:30:54 | 129,322,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index),
url(r'^new/', views.new),
url(r'^create/', views.create),
url(r'^(?P<number>[0-9]+)/$', views.show),
url(r'^(?P<number>[0-9]+)/edit/', views.edit),
url(r'^(?P<number>[0-9]+)/del... | [
"bakker4444@gmail.com"
] | bakker4444@gmail.com |
9cb22f95f9bfb1bd0c686c869d2fcd28676a5cc0 | 06e803094efe6a296678025f10a86e12482231a6 | /021_Merge_Two_Sorted_Lists.py | db57ddbe90e0900ccf5e78eaf7834cc87a3370dd | [] | no_license | THUZLB/leetcode_python | e80daa3692b78ae930dd83b0e828f4134cc07de3 | 7d3fcaa2fd04833adc6c2d22d37620bbe0e8722e | refs/heads/master | 2020-04-04T15:55:19.358088 | 2019-09-29T12:32:40 | 2019-09-29T12:32:40 | 156,057,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | # -*- coding: utf-8 -*-
# author: THUZLB
# GitHub: https://github.com/THUZLB
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def mergeTwoLists(self, l1: ListNode, l2: ListNode) -> ListNode:
if l1 and l2:
... | [
"936459951@qq.com"
] | 936459951@qq.com |
06d391bb4a9676ddf5f44217996c3ee2bf862b1d | f447a9cb1455f3187a3328c49a11cf460a1afe34 | /addnum.py | b1f2bce494c46ee5806e06bd2a29267c96db9a98 | [] | no_license | sudhakarchoudhari75/pythontraining | 4fb37e704ee9547c883dab222cacaf13af5382c3 | c6b64a20a9661a3de1a3cd765fcd30f79af50822 | refs/heads/master | 2020-05-22T13:08:29.931379 | 2019-05-13T05:34:21 | 2019-05-13T05:34:21 | 186,351,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63 | py | def addnum(a, b):
return a + b
x = addnum(10,13)
print (x)
| [
"noreply@github.com"
] | sudhakarchoudhari75.noreply@github.com |
dc5dbbd6e1de02ad6f948712a49636c56ba0f5a5 | a5af610fa01a2a77a99f094ceb6fa882df783139 | /core/deps/tornado/web.py | af5ea5127fe268df3a90ea1e7bd7cf616e22e112 | [
"MIT"
] | permissive | imclab/tilde | 87ee93449a18249a58712527b5164c506b2c7df9 | a9f9fec7be08d5a1647973c6b2b9a9816b347041 | refs/heads/master | 2021-01-24T00:53:21.601833 | 2014-09-02T22:55:27 | 2014-09-02T22:55:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 90,332 | py | #!/usr/bin/env python
#
# Copyright 2009 Facebook
#
# 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 a... | [
"eb@tilde.pro"
] | eb@tilde.pro |
2832aa28fa7c06ccf317620687587858c7bd050b | 693531cdca2717f73d0d429fd1e081b6a09257e0 | /2I013/Awele/Joueurs/joueurFinStratege.py | 0ce968e8cf8f106e822bdaefba5e6cff3b603552 | [] | no_license | claracvs/ProjetJeu | 029cf5996ffdcc88fbc8b67ae6a32ff10d0afbd4 | cad4ee68701a0327b6067a65e00a84dcc2bd253f | refs/heads/master | 2021-05-03T06:22:33.700818 | 2018-05-16T08:22:56 | 2018-05-16T08:22:56 | 120,593,490 | 0 | 1 | null | 2018-03-07T11:24:43 | 2018-02-07T09:29:56 | Python | UTF-8 | Python | false | false | 3,441 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Feb 28 09:26:54 2018
@author: 3671207
"""
import game
moi = None
PMAX = 2
params=[10,3,3]
def saisieCoup(jeu) :
global moi
moi=game.getJoueur(jeu)
coup=decision(jeu,game.getCoupsValides(jeu))
return coup
def decision (jeu, listeCoups) :
""" jeu*... | [
"noreply@github.com"
] | claracvs.noreply@github.com |
cdf12814d08e0941202a5da5abdf6a067a3b34f7 | 36126f91a2d5903483b84ba2d8be77e160803058 | /examples/python/empirical_transition_matrix.py | 61c92ac81e1bbe433c6a5a7ec9d083e8e9e8aaca | [
"Apache-2.0"
] | permissive | open-risk/transitionMatrix | 9962bb2656eb637ba56afc3adecf42bbe68f9593 | d05e75cbc251f01842dd8c5ce225894b988f4d99 | refs/heads/master | 2023-03-05T08:01:20.816425 | 2023-02-22T20:46:38 | 2023-02-22T20:46:38 | 110,365,127 | 73 | 29 | Apache-2.0 | 2022-12-08T11:37:12 | 2017-11-11T17:25:08 | Python | UTF-8 | Python | false | false | 5,000 | py | # encoding: utf-8
# (c) 2017-2022 Open Risk, all rights reserved
#
# TransitionMatrix is licensed under the Apache 2.0 license a copy of which is included
# in the source distribution of TransitionMatrix. This is notwithstanding any licenses of
# third-party software included in this distribution. You may not use this... | [
"openrisk@outlook.com"
] | openrisk@outlook.com |
c00dbc3bdb91f20c7ad689aa708625a936b38d88 | 6b4a7b2550efc3b8e0d45628510d690d54621fcb | /backend/tests/app_test.py | 71daae1e7488b4a18f2e55c0b523395660dc5a3e | [] | no_license | freedomgames/Planet-Lab | cc3c9423c55cb902641dbc4f16fe9cfb8aec4413 | 00cfe84a44c7410ba3985adcc073be083a4bc27e | refs/heads/master | 2020-04-06T06:41:32.150877 | 2015-07-19T22:26:57 | 2015-07-19T22:26:57 | 14,220,038 | 6 | 8 | null | 2015-07-19T22:26:58 | 2013-11-08T00:26:32 | Python | UTF-8 | Python | false | false | 895 | py | """Tests for basic app functionality."""
import json
import unittest
import harness
class AppTest(harness.TestHarness):
"""Tests for basic app functionality."""
def test_index(self):
"""Make sure the index page works."""
resp = self.app.get("/")
self.assertEqual(resp.status_code, 2... | [
"waltaskew@gmail.com"
] | waltaskew@gmail.com |
f24829cc68a8d770bb2ce83b816d128dd03969ba | 606fa82d9a37e0322855a7f632664bc0e1f0b2be | /parking_lots/run/run.py | 1960fbb2db874456cab6287e6fc98c4d8a675c03 | [] | no_license | HongXin123456/CS506-Fall2020-Projects | 755f2501ad2162c054a49fd89ad3c8dac4feff0e | 897ea8836d9bd8adce5ab36f263986d76e59ee63 | refs/heads/master | 2023-02-06T03:58:38.531931 | 2020-12-25T01:44:13 | 2020-12-25T01:44:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | #this will run both scripts in order
import screenshotScript
import pklotClassifier
| [
"henrywu19970511@gmail.com"
] | henrywu19970511@gmail.com |
214894e552f10d8a9d36e73a924813e57588da05 | f21c8601d30ae94c0b5125e45aa66baf62fe88c5 | /MyEIT/solver.py | e2804577c512c8c96f2acf75ad062b1305448ac3 | [
"MIT"
] | permissive | zehao99/CEIT-segmentation | 58d95502358b5bc03fd1655696c4b95e690c29fa | 19f48b126e2ea82cea68d9fd10ec609344fd7247 | refs/heads/main | 2023-01-09T10:05:45.372056 | 2020-11-05T05:30:35 | 2020-11-05T05:30:35 | 306,527,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,370 | py | # @author: Li Zehao <https://philipli.art>
# @license: MIT
import numpy as np
import os
from .utilities import save_parameter
from .utilities import get_config
from .utilities import read_parameter
from .readmesh import read_mesh_from_csv
class Solver(object):
"""
Lite Jacobian Solver,
You must first gen... | [
"zehao99@163.com"
] | zehao99@163.com |
2c735c06acb15668edfe36a3cf848f1a07cb956b | a418afb0ec01cb8f41d9fcaf167f59b0f05aea90 | /Hackerrank/Python Problems/itertools.combinations.py | 221a322634997b5c9b8b4e304a3db940458757d5 | [] | no_license | manjurulhoque/problem-solving | 95d05960e83edde5721b73348270b6123fd3bf12 | e5547a8f5593141ac87f9797ddb25b2467c44e57 | refs/heads/master | 2022-08-08T06:44:21.839224 | 2022-07-25T09:32:26 | 2022-07-25T09:32:26 | 209,125,784 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | import itertools
x, y = input().split()
for i in range(1, int(y) + 1):
out = list(itertools.combinations(sorted(x), i))
for n in out:
print(*n, sep='') | [
"rumimanzurulhoque@gmail.com"
] | rumimanzurulhoque@gmail.com |
e8034ae0e9e03f800a93d0b36f2691dfbdee9972 | f34e34e4a1fc4b606781633370ff5b9493446b89 | /HackerRank/Problems/HR python staircase.py | fffe84b83deb2d0878b9309965bbbe9c1da7a0fa | [] | no_license | YeasirArafatRatul/problem_solving | b44deddb63dc9ff5ec285e03c13720523473906d | 98267865a90483489f792bdb448319dbf0cc9a81 | refs/heads/master | 2023-02-13T17:59:35.863750 | 2021-01-05T04:01:13 | 2021-01-05T04:01:13 | 219,266,174 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | def staircase(n):
for i in range(1,n+1):
#print the #, i times. so it will increase with each iteration
print(('#'*i).rjust(n,' '))
n = int(input())
staircase(n)
# str.rjust(width[, fillchar])
#Parameters
# width − This is the string length in total after padding.
# fillchar ... | [
"yeasirarafat.ratul@gmail.com"
] | yeasirarafat.ratul@gmail.com |
3a569dc9d902b109ed0a761446a3cd7c0a18ea84 | 732dead643e3b869647bc20c7d37c82280fa8984 | /contrib/seeds/generate-seeds.py | eea63409ea39cf455a52c5c84fc7b60b97383cac | [
"MIT"
] | permissive | Wildfire-new/Wildfire-MN-POW | 5b23f7220707459bd25ca05f4527cb6f79ec096e | 0434339c79fa8525408b8edd1ff003be4f367e1c | refs/heads/main | 2023-02-19T09:46:58.008971 | 2021-01-16T17:29:13 | 2021-01-16T17:29:13 | 317,366,159 | 1 | 1 | MIT | 2021-01-16T17:29:14 | 2020-11-30T22:54:03 | C++ | UTF-8 | Python | false | false | 4,331 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2017 Wladimir J. van der Laan
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
'''
Script to generate list of seed nodes for chainparams.cpp.
This script expects two text files in the dir... | [
"Wildfire-NEW@protonmail.com"
] | Wildfire-NEW@protonmail.com |
93599b0c0b832682036ab9fb33d36952532a5345 | 180558fbda48970d87e2d3eb2d49790ae7407784 | /app.py | a68e40bc84f2c94c48d54e21e0a99260f8c3f5a1 | [] | no_license | jimkhm/heroku_test | 1cee02ad2b199e54adbb710648aa27d2565b051d | 81f82c33fb03eac8fa1e36e58e6072d56685a5d0 | refs/heads/master | 2021-09-10T08:45:50.321864 | 2018-03-23T06:16:04 | 2018-03-23T06:16:04 | 126,113,444 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,003 | py | import os
from flask import Flask
from flask_restful import Resource, Api
from flask_jwt import JWT
from security import authenticate, identity
from resources.user import UserRegister
from resources.item import Item, ItemList
from resources.store import Store, StoreList
app = Flask(__name__)
#app.config['SQLALCHEMY_... | [
"magnking@gmail.com"
] | magnking@gmail.com |
a3ff4cc1e40df20ba0bbe074804b9d33c0bc7046 | 51e7198f4a8c0a61ccb79799dd645fdbbb699ab3 | /sumAllWords.py | 87caa3cfefd230b2333d59e64dc7fea498db3364 | [] | no_license | AndyThomas-Dev/Keyword-Classifier | cfa9714bf89d1e2119f06acee4bc9b9c1b2e074c | c46d8ac7b8e7b78d20f264fca41e4c53c7e205ae | refs/heads/master | 2023-01-09T22:43:26.693772 | 2020-11-14T18:13:35 | 2020-11-14T18:13:35 | 268,327,516 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | import pandas as pd
# Gets the total number of words for each category in an array
# REQUIRES:
# 1. 35x Raw Keyword Lists for Each Category (data/raw-keywords/)
def sumAllWords():
values = [0] * 35
for i in range(35):
fileName = "data/raw-keywords/" + str(i) + "-keywords2.csv"
raw = pd.read_... | [
"andythomas.dev@gmail.com"
] | andythomas.dev@gmail.com |
1758007c56a91d61fa3b2a567694a2f54ce7ed8d | 641b94b102429b85bad844ed881d80d0085dd427 | /Python_code/18_BMPtest.py | 2dd87bdbebd3cec5dc3fa1773e91ceea5ac08ff9 | [] | no_license | sunrobotics/RPI_Starter_Kit_V2 | b17a92b37628656cd070fefcdbe7d302d587b619 | b3662994308317c5719a26f7e71fc3ad432b8934 | refs/heads/master | 2020-12-02T18:35:34.346333 | 2019-12-31T12:59:49 | 2019-12-31T12:59:49 | 231,082,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,502 | py | #!/usr/bin/python
###########################################################################
#Filename : 18_BMPtest.py
#Description : BMP180 test code
#Company : SunRobotics Technologies
#Website : www.sunrobotics.co.in
#E-mail : support@sunrobotics.co.in(For Any Query)
######################... | [
"office.sunrobotics@gmail.com"
] | office.sunrobotics@gmail.com |
047590470a605a37949f899b0e6c4561c2c94553 | ce1838623604579d0427b88d015b3513e00d4fcb | /PowerPad/xx.py | 782e6dbd7da42861c262b7712e6c3ce829c3a7ca | [] | no_license | NandishRPatel/PowerPad | 2960ec1a4dbb903a1431e5fd30c533d79f032827 | 6111950ae4aa97f0929f2a4cc36c687579cebddd | refs/heads/master | 2021-09-14T13:26:02.627410 | 2018-05-14T10:34:51 | 2018-05-14T10:34:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37 | py | print(input("a:"))
print(input("b:")) | [
"1418beit30031@gmail.com"
] | 1418beit30031@gmail.com |
a2d7ec55531de9fa8a134dc8e853a780cd62ece3 | 3b2964d0c88db8c90fd375764983420fe828e8af | /django/manage.py | 7494ab2e2c88319371c8b269f44d41efb6187b83 | [] | no_license | vinay-yadav/refier_task | ea373a6984b83ae4d499dc8d57502b1b6268f4ea | 897ca7ec1e3c41edaaf6e4a3f7f1d03ccea608a8 | refs/heads/master | 2023-05-10T18:42:21.618324 | 2021-06-04T21:22:47 | 2021-06-04T21:22:47 | 352,082,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | 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', 'refier.settings')
try:
from django.core.management import execute_from_command_line
except Impor... | [
"yadav.vinay1508@gmail.com"
] | yadav.vinay1508@gmail.com |
d11aadecdc0a2d0840ca32dd35c553907c87eeff | 23100123e92366a8ad8cc7d42972cb529bce792a | /surveillance/__init__.py | 96fbf45d56c0c16a0ccb0f7ede5fbfda3be2e831 | [
"Unlicense"
] | permissive | bkmeneguello/surveillance | a729fb04013a173f684ecac048f5f9db27e710e5 | 8eaa25274bf4566abd0baa810e9dd93f3c4ff417 | refs/heads/master | 2020-12-24T10:11:09.403630 | 2017-01-21T00:33:07 | 2017-01-21T20:48:35 | 73,244,878 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | from .frame import Frame
from .queue import Queue, QueueFan
from .reader import Reader
from .writer import Writer, PeriodicWriter
| [
"bruno@meneguello.com"
] | bruno@meneguello.com |
86679a0b5748db63b9458e3b1baa1ea626a21e0f | 72ee9cbee1361889edbd027d274cee5050b483fb | /connect4.py | 4aad9b11365da61fc3665254d7a0c90be538cfae | [] | no_license | koni26/Connect4 | ce1fe96a049dc3152aa02cc49326d518b4a48cf4 | 5d8af135b7fc2853c765f9ba37cdb095f702e007 | refs/heads/master | 2022-12-26T18:55:32.986240 | 2020-10-10T22:27:04 | 2020-10-10T22:27:04 | 299,448,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,781 | py |
#using termcolor for colored shapes
import sys
from termcolor import colored, cprint
#red colored round assigned to red variable and it is for player1
#white colored round assigned to white variable and it is for player2
Red=colored(u'\u2B24', 'red')
White=colored(u'\u2B24', 'white')
#define game table size ... | [
"noreply@github.com"
] | koni26.noreply@github.com |
dc87a27e39e7722bd5a87077994241c1b9b767ac | aff5158d6936e5dd99934663f0c779477d2225bd | /upload/upload/urls.py | 99be568187b524c1814cb8803cf60e81fdcc02b1 | [] | no_license | Yashkulkarni205/Upload | 22aa2a5a40820e797b24ff473d14973521267617 | 87cb5782dc1b36d7479658b63651ab53f66a963a | refs/heads/master | 2023-03-20T04:57:56.991830 | 2021-03-11T08:53:45 | 2021-03-11T08:53:45 | 332,394,019 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 818 | py | """upload URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/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')
Clas... | [
"yashkulkarni205@gmail.com"
] | yashkulkarni205@gmail.com |
81fe77b505b00a32c29d11f215d4036b78073668 | bd94c5a56024c14f8a59c55196196b13fa0e5646 | /img_db/migrations/0001_initial.py | 9a9a9a588e8fa9169a48b5621870486cd04df36c | [] | no_license | zmscgck/new_daily | 91e5f5e826d20606b5a0dc78286ed42caeb09505 | 1d234377d0b463ddd436a941f1bcaf06a463999b | refs/heads/master | 2021-03-14T13:07:28.411383 | 2020-04-25T14:14:28 | 2020-04-25T14:14:28 | 246,768,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,185 | py | # Generated by Django 3.0.3 on 2020-03-19 02:45
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0011_update_proxy_per... | [
"lgfl@sina.com"
] | lgfl@sina.com |
16293e239b2d8a923408226bfe7191f5ec213d58 | 25e622fa8cedc3e7c0bb092cd27e9f0976fb91d5 | /business_companies/migrations/0017_auto_20180918_1317.py | 959728d07c0a5b41fb9fcbd0e10950183a51330e | [] | no_license | striblab/data-ui | e842f766aac5b841cc92ff3b080351e6802fd235 | f6b5e4af1b4fce21b1df32c44269a32a65741f1d | refs/heads/master | 2023-03-15T16:14:22.695302 | 2023-03-06T21:01:47 | 2023-03-06T21:01:47 | 132,160,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,148 | py | # Generated by Django 2.1.1 on 2018-09-18 18:17
import datetime
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('business_companies', '0016_auto_20180611_1328'),
]
operations = [
... | [
"alan.palazzolo@startribune.com"
] | alan.palazzolo@startribune.com |
478a975f85dcbac52962c993fc4ddfd4f6fcc351 | 7d01cffbceb6f34cca9259d2742f094446e82130 | /Final_Project-Random-Process-and-Diffusion-and-Simple-Ising-Model/Codes/Random walk_6.py | b24fd5aa987577db3a7f5148809d1abcb160243d | [] | no_license | Cvke/compuational_physics_N2014302580257 | a394e630e64aed39e1bb56406f60623b05647bff | 1652968839e54021a2ed7c3bc57f65722a985377 | refs/heads/master | 2020-12-24T08:18:34.204641 | 2020-06-17T08:22:08 | 2020-06-17T08:22:08 | 67,922,582 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,153 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Jan 7 17:19:50 2017
@author: Administrator
"""
from __future__ import division
import numpy as np
import matplotlib.pyplot as plt
steps = np.linspace(0, 100, 101)
x2_ave = np.zeros(101)
x_y0 = np.zeros(101)
x_now = np.zeros(5000)
x2_now = np.zeros(5000)
f... | [
"noreply@github.com"
] | Cvke.noreply@github.com |
7f6d780e3c4018865b7aefebc7c42fff6d4de8b1 | 5b838e115f453062cd57eff6069ae307ab3a8a6e | /Hard/longestCommonSubsequence.py | 636ddfbd6b26909953f8aed3cd04b4fe0696f132 | [] | no_license | ankitbarak/algoexpert | 326c49f4d6cc693d3a257ff4c05ff9ae70e00ed6 | 58a1571810034983199ec80c991e227df5ec8362 | refs/heads/master | 2022-11-13T11:45:06.530827 | 2020-07-09T05:19:45 | 2020-07-09T05:19:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,398 | py | # Write a function that takes in two strings and return their longest common subsequence
# A subsequence of a string is a set of charaters that aren't necessarily adjacent in the string but that are in the same order as they appear
# in the string.
# O(nm*min(n, m)) time | O(nm*min(n, m)) space
def slowLongestCommonSu... | [
"leechinhongkenneth@gmail.com"
] | leechinhongkenneth@gmail.com |
974ce89e9bb593af97847898b2977b214a4b7980 | 1fe8d4133981e53e88abf633046060b56fae883e | /venv/lib/python3.8/site-packages/tensorflow/python/autograph/pyct/testing/decorators 2.py | 9e47729bef44976b842be804899c28aafffda65b | [] | no_license | Akira331/flask-cifar10 | 6c49db8485038731ce67d23f0972b9574746c7a7 | 283e7a2867c77d4b6aba7aea9013bf241d35d76c | refs/heads/master | 2023-06-14T16:35:06.384755 | 2021-07-05T14:09:15 | 2021-07-05T14:09:15 | 382,864,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:bc496cdd81c37eb5f9cddd2250b6ebe37eae2739e5ee1b3228a97b6571bfaac1
size 1298
| [
"business030301@gmail.com"
] | business030301@gmail.com |
f19bb6bbd86f27c870c497aefdd8ff65ff5524c1 | bf03e95399ac3ad9e2ffd2ae8101f93ff13f8258 | /clustering-models/densityclustering.py | b966d45aa64a104ac3dd703cb87dd26d5244a410 | [] | no_license | Himani2000/GSOC_2020 | ca9d777f16fc39f9ca105b6438a6215c837fdbac | 41031c43f88f8710f210f4edeed914d7f4550347 | refs/heads/master | 2022-12-15T04:58:41.807760 | 2020-08-29T08:39:18 | 2020-08-29T08:39:18 | 262,667,965 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,773 | py | #importing the python standard libraries
import pandas as pd
import numpy as np
import os
import hdbscan
import sklearn
from sklearn.cluster import DBSCAN,OPTICS,MeanShift
from sklearn.manifold import TSNE
from sklearn.decomposition import PCA
from sklearn.preprocessing import MinMaxScaler,StandardScaler,LabelEnco... | [
"negi.himani11@gmail.com"
] | negi.himani11@gmail.com |
9e27115696afc8fea8212d51a643e9d1c2702dc1 | b15a9d9c7374c4a1fa5ec3ef63603a8c57e8681f | /Design-Patterns-Python/flyweight/client.py | b7714e4c7fe83aaeb7505226e720f0509797c36d | [] | no_license | gohils/zemr_notebook | 3f7490ef7a2559655746c3e2e0dbfb835a83891e | 00d53cea9970df44160c51e6ad2bdeadfae2c91f | refs/heads/master | 2023-08-04T14:32:35.428016 | 2023-07-20T11:51:08 | 2023-07-20T11:51:08 | 222,027,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 947 | py | "The Flyweight Use Case Example"
from table import Table
from flyweight_factory import FlyweightFactory
TABLE = Table(3, 3)
TABLE.rows[0].columns[0].data = "abra"
TABLE.rows[0].columns[1].data = "112233"
TABLE.rows[0].columns[2].data = "cadabra"
TABLE.rows[1].columns[0].data = "racadab"
TABLE.rows[1].colu... | [
"noreply@github.com"
] | gohils.noreply@github.com |
3c959eed8a79ca30fbcb647176095c291b99e320 | 4f510470b3093ab2c60f929221af82c79b121ca7 | /linux/FinalKeyPress/smallplane.py | c63ffce47aa72b6d465ad959c7dcf92fe5873091 | [] | no_license | q737645224/python3 | ce98926c701214f0fc7da964af45ba0baf8edacf | 4bfabe3f4bf5ba4133a16102c51bf079d500e4eb | refs/heads/master | 2020-03-30T07:11:17.202996 | 2018-10-30T06:14:51 | 2018-10-30T06:14:51 | 150,921,088 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,695 | py | import tkinter
import mover
import config
class SmallPlane(mover.BaseMover):
'''
移动的敌机 - 大飞机
'''
def __init__(self, root, canvas, position, x, y, tags):
super().__init__(root, canvas, position, x, y, tags,
config.image_smallplane_width, config.image_smal... | [
"764375224@qq.com"
] | 764375224@qq.com |
d179a9d965108aa5b3ddc6409b4346f61371648b | 819291e5c984c9b662ceffbb23ce69f2c8f9f4a8 | /Training Gate/Kelas Pembelajaran Pemrograman/1. Pemrograman Dasar/03. Ekspresi dan Masukan-Keluaran/b-a_tambah_b.py | 6044831fde9c492b2252b0b1aba10e4fee8add31 | [] | no_license | Alfian285/tlx-solutions | a10415b895b0cce33d9963d4945ea56d03f192b3 | abe1e66dd53e7e4aa2c26169a2fc49fa877f6d60 | refs/heads/master | 2023-04-07T06:38:05.488811 | 2018-07-28T19:26:19 | 2018-07-28T19:26:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | import sys
for line in sys.stdin:
a, b = line.split()
print(int(a) + int(b)) | [
"gilangmlr@gmail.com"
] | gilangmlr@gmail.com |
d87350663cb2db5ad2986f4f58fd588c3dacb5ff | dcebb803285499f880e82c2aede20d1c109bb781 | /deprc_scaled_class_data.py | da329e8cdad4c706f58d9d525cd330232e560e3b | [
"BSD-3-Clause"
] | permissive | johndpope/ETHZDeepReinforcementLearning | 1216f5e259f606e3c9228e7850e718cdccd6a280 | e1ae22159753724290f20068214bb3d94fcb7be4 | refs/heads/master | 2020-03-22T02:27:54.928283 | 2017-11-22T23:22:53 | 2017-11-22T23:22:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py |
import abb_deeplearning.abb_data_pipeline.abb_clouddrl_transformation_pipeline as abb_t
import abb_deeplearning.abb_data_pipeline.abb_clouddrl_constants as ac
"""
Not finished
"""
abb_t.create_scaled_classification_data(solar_station=ac.ABB_Solarstation.C,img_d_tup_l=None) | [
"habichta@ethz.ch"
] | habichta@ethz.ch |
0e2693f129399c5bc00900ad366ecfa9a7ab50fc | c69c0fc5ee1942135dfe085855fa913dc317e7d5 | /Prac 4/scores.py | 58e2cbbbbda4feb015eabefe1be3481880da49a5 | [] | no_license | mquabba/CP1404-Pracs | ede6801515d06f5b989773a21e1de383bbd8d57c | 8ed99b1d98404d5a6c330d691b24ede878e2d929 | refs/heads/master | 2021-06-09T09:40:25.160906 | 2021-04-17T02:15:17 | 2021-04-17T02:15:17 | 146,829,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,425 | py |
def main():
scores_file = open("scores.csv")
scores_data = scores_file.readlines()
subjects = scores_data[0].strip().split(",")
score_values = []
for score_line in scores_data[1:]:
score_strings = score_line.strip().split(",")
score_numbers = [int(value) for value in score_s... | [
"noreply@github.com"
] | mquabba.noreply@github.com |
cc6746eb977131a7a4d0872f907ef5f5d54100c6 | 48d5f041a7193470f2df91dc8f8c0a0a4d8acfc0 | /ihome/libs/yuntongxun/sms.py | fedeb490a10287d9c13b19f9a6070001b3b8fdb5 | [] | no_license | sunbrightnan/ihome | 3dec7ec330016827ff009d1002abe81537c04201 | 8fb7e418c3ccaf72dd694775c9d6806964c67cd9 | refs/heads/master | 2020-08-03T11:54:50.685261 | 2019-09-30T00:24:03 | 2019-09-30T00:24:03 | 211,743,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,041 | py | # coding=utf-8
# 主帐号
from .CCPRestSDK import REST
accountSid = '8a216da86a2a8174016a3e5e13880b48'
# 主帐号Token
accountToken = '7b8fbd44dfc143b9b75097160a6a8ca2'
# 应用Id
appId = '8a216da86a2a8174016a3e5e13e50b4f'
# 请求地址,格式如下,不需要写http://
serverIP = 'app.cloopen.com'
# 请求端口
serverPort = '8883'
# REST版本号
softVersion... | [
"814048925@qq.com"
] | 814048925@qq.com |
01eaa69624efccb456e86f8cfdcca70c39f9f0e4 | d81bbc8ef3e7916b0dd89bfe9fe32ea4f37aa0c6 | /jobs/ts3_ppump/v0/ts3_ppump.schema | 5d9771a3ee22f16fb2d27ebbc9e593d48ea0a27d | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | lsst-camera-dh/ts3-analysis | 9fb16b2245f390b5518e67c18f0a549e12bc4018 | bf3400f286876c5ed4368e2dafe730a8598d0bf7 | refs/heads/master | 2016-09-05T21:14:10.599337 | 2015-09-10T22:27:47 | 2015-09-10T22:27:47 | 30,820,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80 | schema | # -*- python -*-
{
'schema_name' : 'ts3_ppump',
'schema_version' : 0,
}
| [
"jchiang@slac.stanford.edu"
] | jchiang@slac.stanford.edu |
dcf02bea382f4d26f82be0b0a63c8cd53fcb2c06 | 9769eb3f2aa864c72431bcb24a4670e0fd69b07a | /MotionDetectorOpenCV.py | 9f88f9db83400c7ee7ab19fb5f37002721e7c398 | [] | no_license | Mohamed-0Sabry/motion-detection | 63ca5b5bae8ee575c3c1762d70954fb838a6aea9 | 2f6f1078fc70fe89d88d1b9c24cead705c48461d | refs/heads/main | 2023-06-27T21:35:01.209854 | 2021-08-02T11:28:44 | 2021-08-02T11:28:44 | 391,920,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,895 | py | import cv2, time, pandas
from datetime import datetime
first_frame = None
statu_list = [None, None]
times = []
df = pandas.DataFrame(columns=["Start" , "End"])
video = cv2.VideoCapture(0)
while True:
check, frame = video.read()
statu = 0
gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
gray = c... | [
"noreply@github.com"
] | Mohamed-0Sabry.noreply@github.com |
d19bf3ec9565947666fef0be33b15b407479e769 | d028568b8da07139421efbcb57e7280dc9e320dc | /wows_api_async/cache/redis.py | 5dfd44b01a01b90648d2405c7e7eb17d15b4edaf | [] | no_license | voidpp/wows-api-async | 1e1a360915f816a100026ae6be1c72a62b292052 | 171cf3c9b3c10f2cfa8dd69cc19ad8b26ccb7799 | refs/heads/master | 2023-02-21T10:01:48.652768 | 2021-01-15T18:03:53 | 2021-01-15T18:03:53 | 329,104,608 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,010 | py | import pickle
from typing import Any
from aioredis import Redis, create_redis_pool
from .base import CacheBase
class RedisCache(CacheBase):
def __init__(self, url: str):
self._url = url
self.__client: Redis = ...
@property
def _client(self) -> Redis:
if self.__client is ...:
... | [
"santa.lajos@gmail.com"
] | santa.lajos@gmail.com |
9835b2e32a78ebc634e7b29e957a0d991d55dcff | 18bbcfd56818457bc0390da9fd759d63290af434 | /usr/lib/wolfeyes/D2Point.py | aa69e46dc30cd1adf7859d2e75cec99b5d34b4bf | [] | no_license | TBIproject/wolfdeb | 32f4117117e54a2c604c2e944813f4111077b80b | 80b90576e19133dc618df09d386a2ace8f5ecfc6 | refs/heads/master | 2021-01-10T15:05:22.509755 | 2016-03-11T11:32:56 | 2016-03-11T11:32:56 | 53,661,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,275 | py | # -*- coding: utf-8 -*-
"""Custom weird vector, very useful."""
import math
# Plus simple pour gérer les points/vecteurs 2d
class D2Point(object):
"""Some custom vector"""
# Valeur d'arrondi extrême
ROUND = 14
# Init
def __init__(this, x=0, y=0):
this.x = x
this.y = y
# Getters/Setters
@property
de... | [
"benjacollet@gmail.com"
] | benjacollet@gmail.com |
744c28c27b8fd0741af0c126e8e9e556d1c04117 | 333c4fcf1b4386f99c924afb49807f36a7354ff3 | /src/common.py | 9f56076fdfe3a8b8526cd033c7127512be043fe9 | [] | no_license | ZhangShuyi/DataProcessSample | ddd7dcdd9a321c52d03940708d7edcd58eb94180 | cc61365ac248bfe809f9d37abae6ded40e6693ea | refs/heads/master | 2021-08-22T04:37:31.836777 | 2017-11-29T08:57:46 | 2017-11-29T08:57:46 | 112,450,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,317 | py | import pickle
# import cPickle as pickle
import time
import zipfile
import numpy as np
import random
def get_time_str():
return time.strftime("%Y-%m-%d, %H:%M:%S ", time.localtime((time.time())))
def print_info(msg):
print(get_time_str(), msg)
# saving data into pkl
def data_to_pkl(data, file_path):
p... | [
"zsywings@163.com"
] | zsywings@163.com |
8b834216b6c7181ca880a32ad6a32ed50a3f99ef | bee9305834f3f9c8cfa1cdf455d7a821c97f5041 | /Class exercises (Development Q3).py | 56583700c08e17e6d1f3e2df9d128e218577d833 | [] | no_license | michelleyick/Functions | b1df267a901d4a4c53274be68a427639f50b9320 | f6fc668939dde6e530331b80879375624b71f7f0 | refs/heads/master | 2021-01-02T09:27:03.267624 | 2015-01-06T18:58:35 | 2015-01-06T18:58:35 | 26,445,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,402 | py | #Michelle Yick
#24-12-2014
#Functions class exercises. Development Q3.
#Ask the user for the inputs and what they are:
def input_currency():
currency = int(input("Please input: 1 for £/$, 2 for £/€ or 3 for €/$")
if currency == 1: #£/$
type_con = input("a = £ to $ and b = $ to £")
... | [
"41213@longroad.ac.uk"
] | 41213@longroad.ac.uk |
05a263f2e6d4cbedabfcfd3c972a612f862acfd1 | 8991905c541de1b0bc86bdc9a655b4f71f1fbb0d | /src/tests/test_wrappers.py | e833090ca8c5a1f411d774de908889db7e23dea8 | [] | no_license | StreamState/streamstate-utils | 8fefba1c0d89b25cad8c7c3d4e700e803c4b0fc4 | 30a2e31d8959efba418c244cbd705c2b65a2fa22 | refs/heads/master | 2023-06-28T00:26:50.949960 | 2021-07-26T12:37:54 | 2021-07-26T12:37:54 | 358,865,305 | 0 | 0 | null | 2021-06-21T22:23:45 | 2021-04-17T11:49:53 | Python | UTF-8 | Python | false | false | 4,429 | py | from streamstate_utils.generic_wrapper import dev_file_wrapper
from streamstate_utils.run_test import helper_for_file
import pytest
from pyspark.sql import DataFrame, SparkSession
import os
import json
import shutil
from typing import List
import pyspark.sql.functions as F
from streamstate_utils.structs import InputStr... | [
"danstahl1138@gmail.com"
] | danstahl1138@gmail.com |
1bca7435ea64bd250ec6d3727f904fcbc7c34d3d | f72ba62cf501a59bcc039cebb72f16bf95c53781 | /exkiv/exkiv_part3/__main__.py | 51295ed881bb51cc3d8dec781bdf9b606241ad7d | [] | no_license | igr-santos/kivy-examples | 10b2d34566da012233eb015426aff001aec41885 | 5321c060fa44d2b731d8d9cd573b9d841240887b | refs/heads/master | 2021-01-22T05:10:16.193405 | 2014-03-14T19:19:40 | 2014-03-14T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 918 | py | #!/usr/lib/python
import kivy
kivy.require('1.0.6')
from kivy.app import App
from kivy.uix.anchorlayout import AnchorLayout
from kivy.properties import ObjectProperty
from sleekxmpp import ClientXMPP
class AccountDetailsForm(AnchorLayout):
server_input = ObjectProperty()
username_input = ObjectProperty()
... | [
"igr.exe@gmail.com"
] | igr.exe@gmail.com |
008362fe6b5fe7ca00d8823f500cd09072e332fc | b1156608c022cdebc39fd64c1d7e954bda986d83 | /Model/manifest.py | 9749b44259b93b94209924f8e12c6a9a0ca07292 | [
"Apache-2.0"
] | permissive | 6zhc/WSI-online-analysis-framework | 4f02f90d0fb906df13c7508ac7cea9c727983e64 | 5833610c18ac30bbcad018f4e5b69c485f6e374c | refs/heads/master | 2022-12-02T14:51:32.307238 | 2021-08-26T14:02:40 | 2021-08-26T14:02:40 | 232,050,269 | 4 | 1 | Apache-2.0 | 2022-11-22T05:47:21 | 2020-01-06T07:45:54 | Python | UTF-8 | Python | false | false | 4,436 | py | import mysql.connector
import configparser
import os
import uuid
class Manifest:
def __init__(self):
config_file = os.getcwd() + '/config.ini'
self.config = configparser.ConfigParser()
self.config.read(config_file, encoding='utf-8')
db = self.db_connect()
db.close()
de... | [
"2460720156@qq.com"
] | 2460720156@qq.com |
fb14cf36c087bd289a9d2d870db9472c391d8699 | 8c5043ee30cd548e7e9b104eedb2b59e47be9923 | /QuoteEngine/IngestorInterface.py | 77c671458f7bba469769894ec643791391423487 | [
"MIT"
] | permissive | 1ayham1/Data_Science-MemesGenerator | 70bc5da3261a2dcb0928ff91d0c198d4b8738ed6 | 71f64960122e8b32acf84cc71dbcec4fac90b0d1 | refs/heads/main | 2023-06-25T00:11:27.311908 | 2021-07-28T09:53:06 | 2021-07-28T09:53:06 | 389,352,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,268 | py | """ Strategy to dynamically enable different file import behaviors
Following open/closed principle (OCP), IngestorInterface (acting as
Strategy Interface), encapsulates various import file behaviors which
is resolved in real time. This enable flexible expansion to any new
desired extension and decouples the desir... | [
"learn.ayham@zoho.com"
] | learn.ayham@zoho.com |
fcf5c448f6224169e2c92e0176375a92af21de67 | 59359e4821554f559c9ffc5bf1a7f52fff0c6051 | /descarteslabs/core/common/geo/geocontext.py | 965f6dfb85170924e722895c3fe498ef27177a2e | [
"Apache-2.0"
] | permissive | descarteslabs/descarteslabs-python | 706acfc594721a1087872744c9cb72fe2b3d2e5b | a8a3859b8ced6d4478b93ff205caad06d508501d | refs/heads/master | 2023-08-23T12:01:36.802085 | 2023-08-21T14:57:22 | 2023-08-21T15:20:01 | 84,609,153 | 176 | 49 | NOASSERTION | 2023-05-02T15:54:37 | 2017-03-10T23:27:12 | Python | UTF-8 | Python | false | false | 53,135 | py | # Copyright 2018-2023 Descartes Labs.
#
# 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 ... | [
"support@descarteslabs.com"
] | support@descarteslabs.com |
96872533a0e12cad233b673e5ed07ef6a58369de | 4337ff3f2897cf1e9a481b046b646aae63cb0976 | /lesson_files/using_update.py | b1ecbac6c87a329008d6d8d57481f8e8ab2e35b8 | [] | no_license | corest/10genMongo | 6efd36f72592cc010848d75aa4728496c1d0ad0c | 55744b9d488c6f19def3210001357f697d85bbe2 | refs/heads/master | 2021-01-16T21:03:16.833818 | 2013-07-07T22:03:15 | 2013-07-07T22:03:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,711 | py |
import pymongo
import datetime
import sys
# establish a connection to the database
connection = pymongo.Connection("mongodb://10.180.30.45", safe=True)
def remove_review_date():
print ("\n\nremoving all review dates")
# get a handle to the school database
db=connection.school
scores = db.scores
... | [
"core.hor@gmail.com"
] | core.hor@gmail.com |
fca60e2b6c0a74bd6258649673d97b20ee9726b4 | c21d787cdcde62f24362e4f23bc9d9f720005442 | /env/bin/pyrsa-priv2pub | f954ab48e9a709f96761c4dd27678578e0dfaa58 | [] | no_license | awsomkiller/Signzy | 02e619c696613418036a69c4a7164b141c912363 | 0f8a4216e5e4f566147fb93a1faa8019bfc0f270 | refs/heads/master | 2022-09-08T19:35:40.536257 | 2020-06-03T08:56:27 | 2020-06-03T08:56:27 | 269,037,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | #!/home/ayush/Documents/Signzy/env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from rsa.util import private_to_public
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(private_to_public())
| [
"ayushkr08@gmail.com"
] | ayushkr08@gmail.com | |
4b9601b1c7694b437b8497ce1fbd3470414ebdb8 | 0aeca350788480e263cd9cf14f3b40f5a185717c | /pyco/_private.py | e8e940903814e3b47018cf810350830b185dbf2b | [
"MIT"
] | permissive | mfkiwl/pyco | 4f6f06d3bebfc7d111aac18a919d097d126e077d | 4f1f5a2513bf7b9bff280d4249547634e6587d5c | refs/heads/master | 2023-07-05T20:49:59.718012 | 2021-08-11T10:27:21 | 2021-08-11T10:27:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 838 | py | # _ _
# (_) | |
# _ __ _ __ ___ ____ _| |_ ___
# | '_ \| '__| \ \ / / _` | __/ _ \
# | |_) | | | |\ V / (_| | || __/
# | .__/|_| |_| \_/ \__,_|\__\___|
# ______| |
# |______|_|
"""Private functions and classes for internal use... | [
"49930425+LemonPi314@users.noreply.github.com"
] | 49930425+LemonPi314@users.noreply.github.com |
182957f2a25f7a99da97687fefef069640108f6a | de0d4cf41c4f0dcefbdc17c3cd919156c2ee3707 | /jasmin/vendor/smpp/twisted/protocol.py | c123a33c5b08ea91055aba42f874ba5a03cf097a | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | vamsiannem/jasmin | 82fc2523e4417d7ba28f7bd9a92f2004fff1aea7 | d5e55ad3f0a2a26a6a6ba84af5647c950e5a85af | refs/heads/master | 2020-04-06T06:53:09.296110 | 2014-11-16T22:56:41 | 2014-11-16T22:56:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,228 | py | """
Copyright 2009-2010 Mozes, 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 ... | [
"tritux.com"
] | tritux.com |
13794218c357fbef80df833e8358c2457071d0ed | 311a2b0bd404e63f3070b0bf4307188fb0bb84de | /myproject/lib/python2.7/codecs.py | 743346fad99e1e175952b01a26275f2d94c13131 | [] | no_license | sanyabt/acms | 24d08a50e8cfe429e28d95b2c2b8c6c12994ab74 | 7a83e724285f7a6d5f1f825ac314b94985ddfc0a | refs/heads/master | 2021-06-13T09:49:10.275839 | 2017-03-21T16:49:29 | 2017-03-21T16:49:29 | 80,142,110 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 46 | py | /Applications/anaconda/lib/python2.7/codecs.py | [
"sanyabt11@gmail.com"
] | sanyabt11@gmail.com |
c5a09d144bdd9dbcbe4dbc97842e0d665a275514 | 13ec3287c5c62c1a7a209d6f33c521490cacf3e4 | /src/polls/tests.py | 2fccab8b624f3e7cb4a1f600ad82b2a23b78b632 | [] | no_license | airtonix/django-docker-base | 065b156d52336be9b537aa4adc62f828c93c1e77 | b50ed1fad98635673eb7fc249831e73372f2a1ce | refs/heads/master | 2020-04-11T02:03:47.599449 | 2018-12-12T22:01:59 | 2018-12-12T22:01:59 | 161,434,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,261 | py | import datetime
from django.test import TestCase
from django.utils import timezone
from django.urls import reverse
from .models import Question
class QuestionModelTests(TestCase):
def test_was_published_recently_with_future_question(self):
"""
was_published_recently() returns False for question... | [
"airtonix@gmail.com"
] | airtonix@gmail.com |
e9902b5f8fc87df890e55564d1e1051d04782b55 | 33b75edb4eb803b47292da71e42842c42fe5bbad | /main.py | 758fdd0b528d9fb6e10dc316814470c2c5e8b52b | [] | no_license | hanho5120/Gittest | f4f1c60cdd1fc41312164ae46bdfad9a1fed427d | d698ef7c01dc97744aa313c5cdf2894faee504f4 | refs/heads/master | 2023-04-18T22:05:38.216724 | 2021-05-13T05:46:19 | 2021-05-13T05:46:19 | 357,055,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27 | py | a = 10
b = 10
c = 20
d = 30 | [
"hanhokimar@gmail.com"
] | hanhokimar@gmail.com |
f74f457ca2d73374d4fecada0faf53f0825cedef | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/comp/ctrlrp.py | 7652ab3889aff4c21b3f159b874656994a53d27a | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 8,396 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
a1124d116ca73d7dae6ff7887292989a4ee811d4 | 0bd4e9e594974a1b897bf6b398656d3ee8a27425 | /flask-ext8.py | 140607e2b5eafb8931f9548d10b7421eeb168123 | [] | no_license | yao631029659/flask-login | 6e2bdb021e6d3cd3b2ca63be62181430f4bbb26a | 038f6d1801b389e8675eb408238189b9834a560e | refs/heads/master | 2021-01-13T12:43:50.041976 | 2017-01-10T02:00:10 | 2017-01-10T02:00:10 | 78,486,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,130 | py | from flask import Flask, render_template, request, redirect, url_for, flash, abort
from flask_login import (LoginManager, UserMixin, login_user, logout_user,
current_user, login_required, fresh_login_required)
app = Flask(__name__)
# 注册lgin_manager
login_manager = LoginManager(app)
# 以下内容可写... | [
"yao631029659@126.com"
] | yao631029659@126.com |
e01b427162c86cd655c69e25918e1af4d07d42da | f910584b06b550d16492c9be5fec17c6199f6831 | /part_2_2.py | 1946b72e0e5bb10d57228ac1b1ec510b4fb2e0be | [] | no_license | suhagba/dev_test | bbc2a798656bbac1ced32bd3a3a65a372e4bb48b | ab0ff2594caf9d02d970fdadbc05006efc729b35 | refs/heads/main | 2023-03-21T10:23:18.882959 | 2021-03-15T03:26:28 | 2021-03-15T03:26:28 | 347,533,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 827 | py | """
This code "normalises" two lists of numbers (POP and MASS).
That is: each element of the list is divided by the sum of the list.
This "normalisation" feature is duplicated twice in the code, and it is done in two different ways.
Refactor this code (by writing and re-using a function) so that this code is DRY (Don... | [
"suhagba@gmail.com"
] | suhagba@gmail.com |
83637dfa1a004763a285278fb6c60674814dc2d3 | d5b590a4850c52534b2f7353ecd28d5c6a0ef4bf | /api/views/__init__.py | 291a563dabe1670159f7eefe3927b68e8927270e | [] | no_license | idmega2000/visitrail | eec4110ebd750947170778c416418c21b304a37a | 3656e26728a6552cde467dc99fe00fe2cd78de02 | refs/heads/develop | 2022-12-11T15:51:12.788597 | 2019-07-18T11:24:02 | 2019-07-18T11:24:02 | 187,925,831 | 0 | 0 | null | 2022-12-08T05:47:15 | 2019-05-21T23:02:34 | Python | UTF-8 | Python | false | false | 43 | py | from .users import UserViewSet, SignUpView
| [
"noreply@github.com"
] | idmega2000.noreply@github.com |
e2b6ec640a3e0ca43c5aa542a6271d80926ee9d9 | bf14877d1e79cb4970d7e977298ea41b64fc152e | /python/tvm/relay/backend/contrib/ethosu/tir/passes.py | 0f6105277f466ed72dbfe4c38883217abee0fd75 | [
"Apache-2.0",
"LLVM-exception",
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"Zlib",
"Unlicense",
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | gaintpd/tvm | a9ac893dcc61f9e3f566b04d04eb646a88d77cb0 | eca6edf7faf8d8ec0a6ea09b5d6f1ba06153a594 | refs/heads/main | 2023-05-14T00:53:44.148602 | 2023-05-05T04:58:31 | 2023-05-05T04:58:31 | 328,945,675 | 0 | 0 | Apache-2.0 | 2021-01-12T10:08:51 | 2021-01-12T10:08:50 | null | UTF-8 | Python | false | false | 45,072 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | gaintpd.noreply@github.com |
b7edc81c4fd944ba3f0e0cf813f91e8506e89b6a | 72f94d9f8f52e7e478ea2755956218ef14438a3d | /tools/log.py | 58aec556c7b0b544c6a9c8d184fe3d60df1f37a5 | [] | no_license | csyr/admin10000 | d63c2aef7e8a66d1deb9894ffb5ab52be1885ae0 | 046f989a1b356570b8e01102e377f507b30d6317 | refs/heads/master | 2020-06-25T17:45:24.556957 | 2017-07-12T07:56:12 | 2017-07-12T07:56:12 | 96,980,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,028 | py | #coding=utf-8
import datetime, os
class Log(object):
__LOG__ = None
def __init__(self, name=None, path='./'):
self.name = name
self.path = path
def get_file_name(self):
"""
获取日志文件名
:return:
"""
if not self.name:
now = datetime.datetime.... | [
"pz_mail@126.com"
] | pz_mail@126.com |
92b9935d77b148df33955898961454d1c1c623fc | 2743068c9177a9ffd00e8e02076eaec155f8138f | /openke/module/model/__init__.py | cf417271c3d1bb06c7fa2694d0ea1e5d6a7596cf | [] | no_license | Ninecl/OpenKE_TransE_common | 52a94e9a41005b8a142803d1621e248997c43821 | c1ee13f145bbfc6f1b4434325007945eba2c02f2 | refs/heads/master | 2023-01-30T10:07:52.196401 | 2020-12-10T14:34:22 | 2020-12-10T14:34:22 | 317,242,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 701 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from .Model import Model
from .TransE import TransE
from .TransD import TransD
from .TransR import TransR
from .TransH import TransH
from .DistMult import DistMult
from .ComplEx import ComplEx
from .RESCAL impo... | [
"732052923@163.com"
] | 732052923@163.com |
bce7d775325fcad89567eb94275ce095229d738a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02832/s307251036.py | 36c65bb99ff02d537361c6ecedc39e7b50f138b1 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | n = int(input())
a = list(map(int,input().split()))
if 1 not in a:
print(-1)
exit()
x = 1
cnt = 0
for i in range(n):
if a[i] == x:
x += 1
else:
cnt += 1
print(cnt) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e906d748fcf7530f9052fc37543b97a85ee771eb | 183fa1746e80102391926064c1628bf63690026c | /Order/migrations/0001_initial.py | ae12317b8af5a2d9fa16a2af4e2549debe7875c4 | [] | no_license | redbull2003/StoreMarketPlace | 7454fdf06a27f754f33b41532ef2d717f313eb1a | b9e915da32f23ca087bd29e5d10fa9b9299f81d2 | refs/heads/master | 2023-06-06T03:53:22.766012 | 2021-06-24T16:30:37 | 2021-06-24T16:30:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,515 | py | # Generated by Django 3.1.1 on 2021-06-24 06:56
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('Prod... | [
"shayan.aimoradii@gmail.com"
] | shayan.aimoradii@gmail.com |
2d6c00d0e74a51b70d5902edee43859260eb4478 | aed886e0642bcf5176b837096b556b7dcf51f9e8 | /교재학습용코드/example/kiwoom/7.15_kiwoom.py | 8929034ad194bda2a67e7acfacfedbd52b43c8ec | [] | no_license | chanjook1m/book | a9c1c26e2065baddcd576c9b9e8237f58f91acf3 | 025595339f056012c42d04b77fb122a92eb81e85 | refs/heads/master | 2022-04-13T20:27:30.875862 | 2020-04-10T13:14:29 | 2020-04-10T13:14:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,267 | py | import os
from PyQt5.QAxContainer import *
from PyQt5.QtCore import *
from config.errorCode import *
from PyQt5.QtTest import *
from config.kiwoomType import *
class Kiwoom(QAxWidget):
def __init__(self):
super().__init__()
print("Kiwoom() class start.")
self.realType = RealType()
... | [
"sometingdevelop@gmail.com"
] | sometingdevelop@gmail.com |
9f4459a0e78eb6578c2a9bc931224ac195ef575f | edf79f6964b15ea61faa9ecd70871d1ce776eda2 | /Jupyter/first-python-notebook/lib/python3.6/site-packages/pandas/tseries/util.py | 5934f5843736cc9afbff1a5dcc1c59f9eb8f2180 | [
"MIT"
] | permissive | Roychenlei/LearnPython | 326bf7d59ebec904623ea7102a1e07f1d7cb112b | eaf44787b86fe6da69dc9ba4e4c907884db57fda | refs/heads/master | 2022-10-09T07:23:39.410429 | 2018-04-28T02:35:07 | 2018-04-28T02:35:07 | 115,184,834 | 0 | 1 | MIT | 2022-10-01T15:18:43 | 2017-12-23T09:19:47 | Python | UTF-8 | Python | false | false | 3,286 | py | import warnings
from pandas.compat import lrange
import numpy as np
from pandas.core.dtypes.common import _ensure_platform_int
from pandas.core.frame import DataFrame
import pandas.core.algorithms as algorithms
def pivot_annual(series, freq=None):
"""
Deprecated. Use ``pivot_table`` instead.
Group a ser... | [
"roychenfly@gmail.com"
] | roychenfly@gmail.com |
d2a852212597be89bbffd855787e941356088e3b | 96586a19dfbb7b19b25ea7ce5528159910083968 | /models/draw_sgru1.py | 58f607b727dc9f24d83c863dbae96fff9fd81408 | [
"MIT"
] | permissive | Weichern/Theano-Lights | 0731038540d4f00b503656e18ca91801b018f71f | 59864f4a1b089c04ff0403a6036ee052078fcd7d | refs/heads/master | 2021-01-17T22:27:11.498037 | 2015-08-31T13:28:47 | 2015-08-31T13:28:47 | 41,711,840 | 1 | 0 | null | 2015-09-01T02:18:10 | 2015-09-01T02:18:10 | null | UTF-8 | Python | false | false | 4,991 | py | import theano
import theano.tensor as T
from theano.sandbox.rng_mrg import MRG_RandomStreams
from theano.tensor.nnet.conv import conv2d
from theano.tensor.signal.downsample import max_pool_2d
from theano.tensor.shared_randomstreams import RandomStreams
import numpy as np
import scipy.io
import time
import sys
import l... | [
"popov_ivo@hotmail.com"
] | popov_ivo@hotmail.com |
7a4711d2854fc4a7a832a3fb5083a348ad0af491 | 84d581219b8065cf8936070a7f1e1766000378df | /vdj/__init__.py | f80e58d17b35d19c93aa96a3ab5bb85e8774f385 | [
"MIT",
"CC-BY-4.0"
] | permissive | RPGroup-PBoC/vdj_recombination | 939e72539a134a61cc5aa8386b3a31f6de954d26 | a59214f878968e5958915b56983b0f52a0a0483e | refs/heads/publication | 2023-07-18T22:52:07.149767 | 2020-05-19T18:12:11 | 2020-05-19T18:12:11 | 187,516,995 | 0 | 0 | MIT | 2023-07-06T21:42:29 | 2019-05-19T19:05:04 | HTML | UTF-8 | Python | false | false | 169 | py | """Top level package for VDJ utilities"""
from . import viz
from . import bayes
from . import io
__author__ = "Soichi Hirokawa and Griffin Chure"
__version__ = "0.1.9" | [
"gchure@caltech.edu"
] | gchure@caltech.edu |
2b4a83dec5b832265f2befbc034cf53befb72570 | 84a21ef9c57381f493dfc70a3e4e8df361323a0c | /8_SGD/miniflow.py | e0d40ca03407ed78e00e84971a3302e7caffed10 | [] | no_license | Sladozevik/CarND-Deep-Learning | 9bad027b42e258800bbade2212b6b746c9c876b8 | 6b1e4e52be2bf2712e6978c56fdc5e533f814cd1 | refs/heads/master | 2021-01-11T15:26:55.495849 | 2017-03-06T13:48:40 | 2017-03-06T13:48:40 | 80,344,742 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,507 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Jan 29 21:55:10 2017
@author: aslado
"""
"""
Implement the backward method of the Sigmoid node.
"""
import numpy as np
class Node(object):
"""
Base class for nodes in the network.
Arguments:
`inbound_nodes`: A list of nodes with edges into this node.
... | [
"asladojevic@outlook.com"
] | asladojevic@outlook.com |
ea4ab0e2797a32368f8c89f287cbd514e9d24e81 | 447e9c533733097cc94bebb8aa9bd2a50a14e93a | /src/day10.py | e4abc8e864c7f54d2519a45c86ba7409ad14649e | [
"MIT"
] | permissive | johan-eriksson/advent-of-code-2018 | 7c449e0c96e71cc4e2562104547dafa6db7a0767 | b57291ef9aacd78c39814a144385a923c5f37ebb | refs/heads/master | 2021-10-10T11:45:58.523676 | 2019-01-10T14:00:55 | 2019-01-10T14:00:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,435 | py | import numpy as np
def update_positions(v, steps = 1):
v[:,0:2] += steps*v[:,2:4]
def solve(vectors):
"""message should be readable when data is mostly aligned on y-axis.
let's find the rate of change of alignment, and print the message when alignment is at its minimum (looks like 8 or 9 from problem description)... | [
"imoxus@gmail.com"
] | imoxus@gmail.com |
e6cb4be5d1e990d0282b7cc658324aaed21af371 | 6e8f2e28479566dbaa338300b2d61f784ff83f97 | /.history/code/run_20210414104418.py | 19fc6bf93bf6fcf7f02737538f9ee64f112f19a1 | [] | no_license | eeng5/CV-final-project | 55a7d736f75602858233ebc380c4e1d67ab2b866 | 580e28819560b86f6974959efb1d31ef138198fc | refs/heads/main | 2023-04-09T21:28:21.531293 | 2021-04-21T19:57:22 | 2021-04-21T19:57:22 | 352,703,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,308 | py | """
Project 4 - CNNs
CS1430 - Computer Vision
Brown University
"""
import os
import sys
import argparse
import re
from datetime import datetime
import tensorflow as tf
from tensorflow import keras
import hyperparameters as hp
from models import SimpleModel, ComplexModel
from preprocess import Datasets
from skimage.tra... | [
"natalie_rshaidat@brown.edu"
] | natalie_rshaidat@brown.edu |
eefa2607d573abc7a8823d3be4870930c3cdb7ca | 09fa0b270697652f8322cda88ff867ecfc460117 | /docs/conf.py | 4d8d1790aa39c933dc8b9cac5d7b6a32b0c470f3 | [
"MIT"
] | permissive | metapix/django-paypal | c9a4711bed5bef7b0529d5a73210f738afe7f766 | 0a94b253e376bde5ce2bd2a8d876e8c3eb56bb49 | refs/heads/master | 2020-12-26T15:59:03.653470 | 2015-06-10T15:48:24 | 2015-06-10T16:09:25 | 37,200,887 | 0 | 0 | null | 2015-06-10T14:06:49 | 2015-06-10T14:06:49 | null | UTF-8 | Python | false | false | 7,619 | py | # -*- coding: utf-8 -*-
#
# documentation build configuration file, created by
# sphinx-quickstart on Sun Feb 17 11:46:20 2013.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All config... | [
"L.Plant.98@cantab.net"
] | L.Plant.98@cantab.net |
64a1f5ae224e2f70c1841c7713ffe83dd33bbb17 | 9a980c12d09c7dfd7ba860662030f6299d427654 | /bot/user_control.py | 532da043234b3e7d4b9b0ae2df580ad630395c5b | [] | no_license | oliverruoff/PiBot | ff1246e663f82db7499f75df58e4facc1991b8ee | 8808f13988e8e335602d7989b0e640fe5592df36 | refs/heads/master | 2022-01-04T14:47:41.011836 | 2019-08-15T19:58:22 | 2019-08-15T19:58:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 762 | py | import RPi.GPIO as GPIO
from time import sleep
import motor_controls as mc
print("\n")
print("The default speed & direction of motor is STOP & Forward.....")
print("s-stop f-forward b-backward r-right l-left e-exit")
print("\n")
while(1):
x = input()
if x == 's':
print("stop")
mc.stop_motors... | [
"oliver93ruoff@web.de"
] | oliver93ruoff@web.de |
e879beb41ca17109f7dbf3dd81e95b52b50cbd71 | cd9bbe344e05fee7690e7ac71d00faa1163f5d30 | /manage.py | d5594f8fb3bb4df1c28c2f6448adb9c824dcbf6a | [] | no_license | jhoelzer/django-auth | 0529fa2e9e3cb93a0f028da22e535af1337e57a5 | c066bd7ff294e134d7af92a31f2150c50f161b8c | refs/heads/master | 2023-04-26T09:24:21.763934 | 2019-05-08T18:51:49 | 2019-05-08T18:51:49 | 185,524,405 | 0 | 1 | null | 2023-04-21T20:32:20 | 2019-05-08T03:53:09 | Python | UTF-8 | Python | false | false | 630 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'djangoform.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Imp... | [
"hoelzer.jenny@gmail.com"
] | hoelzer.jenny@gmail.com |
b5d5eae11539dfc277a3f4a223349bd5a0e53182 | 0a0bc869c894e23a5ca01fe00d10ee1ad150a3e1 | /soup.py | e623bca230a286db74bfa0034c341f64e16a715a | [
"MIT"
] | permissive | Nikhil-Konijeti/Spectacular | b0bec413dd51d506d731766f5fa3aa627c6a8d0e | 7546a30125f5be81fb6ec06196b0ea12a9b43b14 | refs/heads/master | 2021-10-28T08:49:46.480990 | 2019-04-23T07:20:09 | 2019-04-23T07:20:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,789 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
import requests
from bs4 import BeautifulSoup
import os,urllib2
def download_file(url):
local_filename = url.split('/')[-1] + ".jpeg"
print("Downloading {} ---> {}".format(url, local_filename))
# NOTE the stream=True parameter
r = requests.get(url, stream... | [
"noreply@github.com"
] | Nikhil-Konijeti.noreply@github.com |
c925a4d4995624f515bd4b6caf05e3fbfdc0c0b4 | ba4327a7f776d038950c42e3d05d506f1ebdeeae | /searching_practice/kruskal.py | 3f4e3575679921f058b6c800d604e2e2fd25bacc | [] | no_license | frankShih/LeetCodePractice | 87a9bde8a9161e37865f638fe4dabbb7d7415cfd | 4348bc3e41640675beb3efdf5b50068612e1999b | refs/heads/master | 2020-03-23T18:13:10.528038 | 2019-04-28T14:46:01 | 2019-04-28T14:46:01 | 141,896,057 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 920 | py | import sys
sys.path.insert(0, '../practice_dataStructure/')
import graph
import numpy as np
def kruskalAlgo(inputGraph):
visited = []
edges = []
while len(visited)!= len(inputGraph):
bestVal = sys.maxsize
best = None
for x in inputGraph:
for y in inputGraph[x]:
... | [
"ueasus@ueasusde-MacBook-Pro.local"
] | ueasus@ueasusde-MacBook-Pro.local |
7580a0e149c88248b34f7afe3958a0f0c0f15e2c | 14fa561eebc6c735792d8f460c006534f627d567 | /3in1out/train_prev_uncor_v1.py | d99889aa546ddce5f0c0077544f946a7afeff6a6 | [] | no_license | vineel7/Video-Inpainting-using-Adversarial-Nets | 9ae516358cebc14a517243c1c4bb99fd8958aa2c | 6eeb2758ffc2d818fb4ceda385235131e84ab73e | refs/heads/master | 2020-04-04T19:27:56.237854 | 2019-07-20T19:18:13 | 2019-07-20T19:18:13 | 156,207,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,440 | py | import numpy as np
import tensorflow as tf
import cv2
import tqdm
from network import Network
import load
import logging
from imutils import face_utils
import imutils
import dlib
IMAGE_SIZE = 256
IMAGE_DEPTH = 3 # no of frames
LOCAL_SIZE = 128
HOLE_MIN = 24
HOLE_MAX = 48
LEARNING_RATE = 1e-3
BATCH_SIZE = 8
BATCH_FRA... | [
"noreply@github.com"
] | vineel7.noreply@github.com |
10826b842f5e24553e5d628103aafe2cd0b58976 | a6df2f31e8ac71529491b6de5989dafc3447cd04 | /27/test.py | d65401a6fa2d9e3cddf3c792c4bf1d4e976f608b | [] | no_license | triplejay2013/ProjectEuler | fcc32a135dc83569e9f0fb82cc32c0c0e9acae16 | 09a011bf22bf9fbebdd34373cd177b65543939e2 | refs/heads/master | 2021-04-30T04:42:31.398547 | 2018-11-08T23:01:49 | 2018-11-08T23:01:49 | 121,542,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,293 | py | def prime_generator(limit):
sieve = [False] * limit
for i in range(2,limit):
if sieve[i]: continue
#print("INSIDE")
yield i
# look up generators and 'yield'
# basically, this returns a generator that performs 'i', or just gives back the value of i
# once this fun... | [
"triplejay2013@gmail.com"
] | triplejay2013@gmail.com |
fd29cea972710c0727062d0d59d1d317d9b49670 | 5e8254b1e6697b6c6dea6fd8eca02380567fb0fa | /slack/slack.py | ec819b11d2d403f7285d1b455a905d81d44c4a19 | [
"MIT"
] | permissive | AleksanderLidtke/XKCD | 06a3adc7a62456eddaf60a6139aa5caa2cde6835 | 47c5029d9737390a910184adc66efc1347b84441 | refs/heads/master | 2020-12-24T16:24:32.839900 | 2018-08-16T19:34:23 | 2018-08-16T19:34:23 | 33,531,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,258 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
""" My previous project seemed more or less impossible from the outset. I knew
that we had to do the best it gets to stand a chance of delivering it. I normally
read a lot about productivity, team work, leadership and the like. By chance, I'd
read of Slack, the communicati... | [
"alek_l@onet.eu"
] | alek_l@onet.eu |
7408ea10943ef74ac7e95a3e82e52afebdabdebe | 86b701080439643d465415edde0f582e3f4d2be4 | /dss_admin/urls.py | d1722dfea306c5753122b3b2fa6e12a960070e12 | [] | no_license | ArpanMahatra1999/seecs | df84e8bf4efef45c205a54b38e185aa9bbcbbe79 | 567119f1f470c9e71696af239d15f4dddfbeb685 | refs/heads/master | 2023-06-21T06:55:46.283235 | 2021-08-15T04:44:40 | 2021-08-15T04:44:40 | 367,855,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,963 | py | from django.conf.urls.static import static
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.urls import path
from .views import landing
from .views import create_dss_admin, create_course_class
from .views import create_smt_member, create_trainer, create_trainee, create_staff
from .views... | [
"arpanmahatra1999ad@gmail.com"
] | arpanmahatra1999ad@gmail.com |
c443b0a0ca9b014117ab9477dad6b3cd768e6d88 | 41e4076395ce1b020c9e05c437ae9129fc83ac69 | /032_longest_valid_parentheses.py | 1631bbe3782ed9c3d36f4fd727f68687812ac4aa | [] | no_license | ChyanMio/LeetCode | a500c808b7fdb4c151f4374c963d7b7b1f45f256 | 95ac1cdf563b431f8167ed952405d38a601b463f | refs/heads/master | 2022-11-07T00:58:18.561628 | 2022-11-04T07:58:31 | 2022-11-04T07:58:31 | 168,290,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Feb 1 22:20:33 2019
@author: zhang
"""
class Solution:
def longestValidParentheses(self, s):
"""
:type s: str
:rtype: int
"""
ls, res = len(s), 0
stack = [-1]
for i in range(ls):
if s[i] == '(':
... | [
"iszhangzr@gmail.com"
] | iszhangzr@gmail.com |
18b35a02a36199fce51a481f221fe39cb8cb00f6 | 75a5274b3ebee64dc3b02f567d2d5bf43dab68a0 | /notes/migrations/0005_auto_20171213_1400.py | c729d605ae193ff389d915855b017f4ecc6c903b | [] | no_license | thiagokaiser/aprendendo-django | f4ac158b52205b5985728e467254a8ed1500882e | 859d389e38b2d31c727630ded468ea4bf320bfca | refs/heads/master | 2021-09-24T08:06:00.551020 | 2018-10-05T11:06:58 | 2018-10-05T11:06:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-12-13 16:00
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('notes', '0004_responsavel'),
]
operations = [
migrations.AlterField(
... | [
"thiago.kaiser@Hotmail.com"
] | thiago.kaiser@Hotmail.com |
65f25a5f4926e5e97328ef5a15e9a6aadd8e1b7d | 254ae3fac6f18be2a957f701d1c602c910fa0534 | /teste_/call_me.py | d3a2d96da4efa53073765b6a275b1ac9516a9f11 | [] | no_license | saidino84/_pythonScript_full_qrcode_numpy_cv | 5c86c682e8710fc9265f8a8ae3705fabf65c2e29 | e9d39014fd2f96a07ef9b71b001b896455c7e2fa | refs/heads/master | 2023-05-09T18:57:51.703359 | 2021-06-04T20:47:45 | 2021-06-04T20:47:45 | 372,145,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | from subprocess import call
import os
class CallPy(object):
def __init__(self,path):
self.path=path
pass
def call_python_file(self,path=''):
call(['python3','{}'.format(self.path)])
# ...
path=os.path.dirname(os.path.abspath(__file__))
print(path)
... | [
"tylorguy2018@gmail.com"
] | tylorguy2018@gmail.com |
bb8ce98a689bc611fa0e0b27ab24b5b275fbf940 | 3d29d2dbb45ff0f2a66395e59acfee6c5762b2fc | /spider/58_tc/sell_car/jiangsu/58_sell_car_nanjing.py | d0e24e3f97849672dbcc551531bef647a5bc3731 | [] | no_license | southwolf/carinfo_spider | c1d3ffa2fda545028c72444624ddf199f2fb07df | 55065b43e0e08188675506a2d1d7bb2d9db07c7d | refs/heads/master | 2021-01-21T01:26:59.638174 | 2015-04-20T00:29:23 | 2015-04-20T00:29:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,801 | py | # -*- coding: utf-8 -*-
#!/usr/bin/env python
import urllib
import urllib2
import re
import MySQLdb
import threading
from pyvirtualdisplay import Display
from selenium import webdriver
import socket
#socket.setdefaulttimeout(30)
import sys
reload(sys)
sys.setdefaultencoding("utf-8")
from bs4 import BeautifulSoup
def ... | [
"root@tc5u.cn"
] | root@tc5u.cn |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.