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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
27054d4c4b9d03f1c6dc450efc0fc223026c866c | 2c63255689bdbda20f99498048ad660fb064de49 | /chat_client.py | ba6731d48a7f98ad07f9fe9470a04dba887ea569 | [
"MIT"
] | permissive | jaime-vives/dischat | acc8cb14675a21c34e6fef0dbfa0d82820f62cbb | 2395d7598c4dfed49c502ae39f5fffc1c78153e4 | refs/heads/master | 2022-12-15T21:49:21.904563 | 2020-09-12T22:45:03 | 2020-09-12T22:45:03 | 295,038,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,205 | py | import threading
import socket
import sys
from signal import signal, SIGINT
import time
received_messages = []
ipaddr = '::1'
port = 20002
def display_received_messages(sock):
while True:
resp = sock.recv(256)
resp = resp.decode('utf-8','ignore')
resp = resp.split('|')
... | [
"noreply@github.com"
] | noreply@github.com |
ec3f4155892670dc023ac53d54aaab8e6bfc36db | 9419790739594dcaa8b93efdb627f4c9a0312359 | /Django/first_django_project/apps/user_login/admin.py | 8edfbdcc6f936750a29baa3328fcdb8069d7e55d | [] | no_license | MauriceMorrey/python_stackIntermediate | a255dd084bc6154ce312a6534c34c78b58e84f4c | 80b282458a70e5caaed0787d441a9471ec29dc30 | refs/heads/master | 2020-03-22T22:44:21.668599 | 2018-07-12T21:57:26 | 2018-07-12T21:57:26 | 140,768,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 302 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib import admin
from . models import User#importing our article from the models file
# Register your models here.
admin.site.register(User)#asking django to register sth on the admin site
# Register your models here.
| [
"morreydson@gmail.com"
] | morreydson@gmail.com |
ae8ac33097ee8ae8b2fdf39efcda99d0d7256daa | 8d4e824f79f6834ba14a2738c48197b97b0c8214 | /boardsapp/apps.py | eb1d60af754c957663855b7eee07a3cdeeedcc90 | [] | no_license | RahulR432/Boards_App | a5466b9bdd70bab270f9ff49a9b87603e700263f | 1dc2a294d586f74fcd9a825429d920bfa104dcb9 | refs/heads/master | 2022-12-07T12:05:17.771445 | 2020-08-23T15:14:51 | 2020-08-23T15:14:51 | 282,288,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | from django.apps import AppConfig
class BoardsappConfig(AppConfig):
name = 'boardsapp'
| [
"noreply@github.com"
] | noreply@github.com |
d825607fe95139717ab19e9c60a4073d1cca31b1 | 6eb097cccbc0e040eb940663f85ce7eacb2be95b | /Desafio024.py | c13b32d7c9adcf7e113abcd6785bd3f35117d208 | [] | no_license | figueiredorodrigo/Exercicios-Guanabara | c7cdb534b3f7c2db0e2bffc2b4376af035213b3a | 621000882ab3aa080415bb04336fd1713ab85b5d | refs/heads/main | 2023-06-02T07:10:22.555624 | 2021-06-15T16:33:26 | 2021-06-15T16:33:26 | 376,381,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | city = str(input('Digite o nome da sua cidade por favor: ')).lower()
print('santo' in city) | [
"noreply@github.com"
] | noreply@github.com |
04de7af29053c33325e9bae6a28340993c260113 | 0df0e4082661d03452294cd5bab7efe1ff297d1e | /primes/test.py | a488b5b82b9ffb5a4cfac8e8a2749ba29b7f2210 | [] | no_license | wngz3r0/euler | be5a6a0c65608b547de8ef7b71ea907c900c2f66 | 5d32bbbdfacc17a01a8397195fecbddb9392e74a | refs/heads/master | 2020-04-06T05:25:01.256059 | 2012-03-31T09:20:47 | 2012-03-31T09:20:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | # Checks to see if n is a prime number
max_prime = 50000
def is_prime(n):
for i in range(2, n):
if n % i == 0:
return False
return True
def check_primes(primes):
cur_prime_idx = 0
for i in range(2, max_prime):
if is_prime(i):
if cur_prime_idx >= len(primes) or pr... | [
"me@wngz3r0.info"
] | me@wngz3r0.info |
7098d0bd349101c9033469adeb130241fc910b6c | f88f900c0384f6da82eeb749371ad44115527700 | /course-book/04-basic-comp/0410-img-copy2.py | 2688bf316082da1a8c629fe6e1a12eaf1bf4b44d | [] | no_license | aaron-kr/learning-opencv | eff382e8f0c822400f765451d57b192a63cd1b74 | 158239f0140569aec519fc1fbf255c54ef2567d2 | refs/heads/main | 2023-08-21T11:02:49.775425 | 2021-10-27T00:04:01 | 2021-10-27T00:04:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | # 0410.py
import cv2
import numpy as np
src = cv2.imread('../../img/spirit-week.jpg', cv2.IMREAD_GRAYSCALE)
shape = src.shape[0], src.shape[1], 3
dst = np.zeros(shape, dtype = np.uint8)
# dst[:,:,0] = src # B - Blue channel
# dst[:,:,1] = src # G - Green channel
dst[:,:,2] = src # R - Red channel
dst[100:400, 200:... | [
"jekkilekki@gmail.com"
] | jekkilekki@gmail.com |
e74c5c03fa9620801441b80198d60cb2941d0e75 | e13ddd71ffab91e9edc033d9f25d08e113c12852 | /analysis/TileEM/OldGammaTileCode/convexsolver.py | acf615c4174197ac20e2089ba79c1f8dd730616d | [] | no_license | cognoscentai/crowd-seg | 2304ea61e973c7e8095bdbbd21c78d3bfc35bd51 | c10aaafd85602ad2a0f42c14d8e5b22189a339ff | refs/heads/master | 2021-07-05T23:45:17.980723 | 2017-09-28T13:00:50 | 2017-09-28T13:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 700 | py | from __future__ import division
import cvxpy as cvx
from annotator import *
import numpy as np
import data
# Returns tuple (L, gammas) where L is the MLE
def solve(annotators, T):
N = len(annotators)
regions = annotators[0].regions
gammas = cvx.Variable(regions.size)
true_area = gammas.T * regions
constraints = [... | [
"dorislee@berkeley.edu"
] | dorislee@berkeley.edu |
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 |
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 |
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 |
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 |
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 |
b7883cd4b78b7653e74b59d2049a25ba4db5e551 | 5355d2e8576ed3afdc0b13f330ab38eda00a84e0 | /odin/ml/decompositions.py | a0d4c9ebb37857726bd7f7c0022f68966e95cdc4 | [
"MIT"
] | permissive | johndpope/odin-ai | 63ee1d6e5c8dc11c72d04c7cc7350b3d4e3208ec | b6eb0c7b89c50620fe88f41f421330a50965c88e | refs/heads/master | 2020-06-24T21:30:24.388734 | 2019-07-13T12:49:55 | 2019-07-13T12:49:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39,660 | py | # -*- coding: utf-8 -*-
from __future__ import print_function, division, absolute_import
import math
from numbers import Number
from six import string_types
import numpy as np
from scipy import linalg
from multiprocessing import Value, Array
from sklearn.decomposition import IncrementalPCA, PCA
from sklearn.utils im... | [
"nickartin13@gmail.com"
] | nickartin13@gmail.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 |
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 |
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 |
76f963318fc279d6b0842011b2404e059f5081d7 | fb1e852da0a026fb59c8cb24aeb40e62005501f1 | /simlm/misc/compute_metrics_marco.py | 02ac181cd1a10310b7a44ccad6784c96a3b8f2b3 | [
"LGPL-2.1-or-later",
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | microsoft/unilm | 134aa44867c5ed36222220d3f4fd9616d02db573 | b60c741f746877293bb85eed6806736fc8fa0ffd | refs/heads/master | 2023-08-31T04:09:05.779071 | 2023-08-29T14:07:57 | 2023-08-29T14:07:57 | 198,350,484 | 15,313 | 2,192 | MIT | 2023-08-19T11:33:20 | 2019-07-23T04:15:28 | Python | UTF-8 | Python | false | false | 1,162 | py | import json
import sys
import argparse
sys.path.insert(0, './src')
from logger_config import logger
from metrics import compute_mrr, trec_eval
from utils import save_json_to_file
from data_utils import load_qrels, load_msmarco_predictions
parser = argparse.ArgumentParser(description='compute metrics for ms-marco pred... | [
"wangliangpeking@gmail.com"
] | wangliangpeking@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 |
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 |
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 |
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"
] | noreply@github.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 |
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"
] | noreply@github.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 |
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 |
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 |
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 |
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"
] | noreply@github.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 |
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 |
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 |
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 |
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 |
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"
] | noreply@github.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 |
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"
] | noreply@github.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 |
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"
] | noreply@github.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 |
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"
] | noreply@github.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 |
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 |
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 |
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"
] | noreply@github.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 |
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 |
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 |
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 |
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 |
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 |
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"
] | noreply@github.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 |
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 |
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"
] | noreply@github.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"
] | noreply@github.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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 | |
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 |
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 |
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 |
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 |
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 |
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"
] | noreply@github.com |
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 |
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 |
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 |
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 |
5497982226fc1fd6f795a09becbbfa23349d3f38 | 7000895fad6f4c23084122ef27b3292d5e57df9f | /tests/core/test_ChainManager.py | b9d94e4c26c5c584e44b7f9d86c8c5184b4ec985 | [
"MIT"
] | permissive | jack3343/xrd-core | 1302cefe2a231895a53fcef73e558cdbc1196884 | 48a6d890d62485c627060b017eadf85602268caf | refs/heads/master | 2022-12-15T07:36:16.618507 | 2020-08-27T09:21:36 | 2020-08-27T09:21:36 | 290,652,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258,142 | py | # coding=utf-8
# Distributed under the MIT software license, see the accompanying
# file LICENSE or http://www.opensource.org/licenses/mit-license.php.
from unittest import TestCase
from os import urandom
from mock import Mock, patch, PropertyMock, MagicMock
from pyxrdlib.pyxrdlib import hstr2bin
from pyqryptonight.py... | [
"70303530+jack3343@users.noreply.github.com"
] | 70303530+jack3343@users.noreply.github.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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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"
] | noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.