blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b91cb3c12a2949a4360518e9abecbc11298c03dd | 230b7714d61bbbc9a75dd9adc487706dffbf301e | /third_party/blink/web_tests/external/wpt/tools/wptrunner/wptrunner/environment.py | 2493f1fa4407a39aad3ac3c2a724322b75b0944a | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-w3c-03-bsd-license"
] | permissive | byte4byte/cloudretro | efe4f8275f267e553ba82068c91ed801d02637a7 | 4d6e047d4726c1d3d1d119dfb55c8b0f29f6b39a | refs/heads/master | 2023-02-22T02:59:29.357795 | 2021-01-25T02:32:24 | 2021-01-25T02:32:24 | 197,294,750 | 1 | 2 | BSD-3-Clause | 2019-09-11T19:35:45 | 2019-07-17T01:48:48 | null | UTF-8 | Python | false | false | 8,027 | py | import json
import os
import multiprocessing
import signal
import socket
import sys
import time
from mozlog import get_default_logger, handlers, proxy
from .wptlogging import LogLevelRewriter
here = os.path.split(__file__)[0]
repo_root = os.path.abspath(os.path.join(here, os.pardir, os.pardir, os.pardir))
sys.path.... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
58d2f98a4c78f4b9506164627358da2605c36583 | 6bb3a6087257094c963a819cba72ff122eb526b1 | /model/mxnet_/mobilenetv3.py | 63c0bf7d5664ca36ca24ddd9581c497ef2fa2e43 | [] | no_license | manhngodh/spdoor | 67efa2d23514134626df15de820f25d774043d18 | f790a3ede681f5c3921a891f862066350a0ecc02 | refs/heads/master | 2022-12-14T19:48:16.591183 | 2020-09-11T09:59:18 | 2020-09-11T09:59:18 | 293,794,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,156 | py | import math
import mxnet as mx
import mxnet.ndarray as nd
import mxnet.gluon as gluon
import mxnet.gluon.nn as nn
import mxnet.autograd as ag
# import symbol_utils
def make_divisible(x, divisible_by=8):
import numpy as np
return int(np.ceil(x * 1. / divisible_by) * divisible_by)
# def adaptiveAvgPool(inp... | [
"manhngodh@gmail.com"
] | manhngodh@gmail.com |
36ef2e86187829ed5ae2b132e41bef8f08740314 | 5e6d8b9989247801718dd1f10009f0f7f54c1eb4 | /sdk/python/pulumi_azure_native/compute/v20210701/gallery_application_version.py | 85870dafc661c246411261654d85f997d3480818 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | vivimouret29/pulumi-azure-native | d238a8f91688c9bf09d745a7280b9bf2dd6d44e0 | 1cbd988bcb2aa75a83e220cb5abeb805d6484fce | refs/heads/master | 2023-08-26T05:50:40.560691 | 2021-10-21T09:25:07 | 2021-10-21T09:25:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,510 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | vivimouret29.noreply@github.com |
736a992d87d9f3a6e7f7e9766c0b786164df94b7 | dccd4b277e0538e90f0ab179fd4a60be1b8766ad | /app/local.py | 7bba6685957aa83940dd4715fb27cf4403a2a3d5 | [] | no_license | rafalstapinski/news-map | cb5b34e13fd6f88d7d044f6113ff257f369fdb6d | 8cc6cedaf5bb15ad5b62ae7ed518ee314b6d187d | refs/heads/master | 2021-05-15T16:43:31.958684 | 2017-11-20T22:20:40 | 2017-11-20T22:20:40 | 107,473,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 333 | py | import web
import routes as Route
import helpers as Help
Index = Route.Index
Location = Route.Location
Article = Route.Article
urls = (
'/', 'Index',
# '/locations', 'Location',
'/articles', 'Article'
)
Help.Config.set()
app = web.application(urls, globals())
if __name__ == "__main__":
... | [
"stapinskirafal@gmail.com"
] | stapinskirafal@gmail.com |
bca22854600441942d4c3a0acba4c13b9361eaf3 | 8f19107b3fb4dae9114f6aec3ed448665742d87d | /squareroot.py | 656577af68fa5b2d4550e47b3f69a1484c4e2280 | [] | no_license | Munster2020/HDIP_CSDA | a5e7f8f3fd3f3d4b92a2c9a32915d8152af87de6 | ab21b21849e4efa0a26144fcbe877f6fb6e17a2f | refs/heads/master | 2020-12-14T13:24:14.961945 | 2020-03-25T21:09:13 | 2020-03-25T21:09:13 | 234,757,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,523 | py | # Created by: Brian Shortiss
# Created on: 29 February 2020
# Write a program that takes a positive floating-point number as input
# and outputs an approximation of its square root. You should create a
# function called sqrt that does this.
# Sources:
# https://en.wikipedia.org/wiki/Newton%27s_method
# https://www.cs... | [
"g00387820@gmit.ie"
] | g00387820@gmit.ie |
242f80c5d1c207d66d4fd11b8d495d63cf4a6543 | 4b2c5fe21ffcc35837bba06d2c3b43c5116f74bd | /Bit++.py | b021896ca96ab26196e29a12c95ef313ebda47fc | [] | no_license | joydas65/Codeforces-Problems | 8870cbbf1db9fa12b961cee7aaef60960af714ae | eb0f5877d0fede95af18694278029add7385973d | refs/heads/master | 2023-06-23T07:16:49.151676 | 2023-06-17T07:28:24 | 2023-06-17T07:28:24 | 184,123,514 | 5 | 1 | null | 2020-11-28T07:28:03 | 2019-04-29T18:33:23 | Python | UTF-8 | Python | false | false | 212 | py | ans = 0
for _ in range(int(input())):
s = input()
if s[0] == '+' or '+' in s:
ans += 1
elif s[0] == '-' or '-' in s:
ans -= 1
print(ans)
| [
"noreply@github.com"
] | joydas65.noreply@github.com |
a3da0f001fde7949f07a23a3c977be7f2b31a51c | 43ec36aa7c98b796db1e0d4c7aa59c45dccbfbf6 | /conexion.py | 8891e11c556823f23af23fcee086755aa128449d | [] | no_license | noratoj/tkinter_condomi | 929d04477d0d897e38425b1cd20b7817c136b8ff | f83ee710219994b18f2f11aa8f45eecb1767fa18 | refs/heads/master | 2022-12-01T19:31:11.545474 | 2020-08-15T11:10:37 | 2020-08-15T11:10:37 | 279,878,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | import mysql.connector
from mysql.connector import errorcode
class Conexion:
def conectar(self):
try:
conexion = mysql.connector.connect(user='root', password='3875', database='condo', host='127.0.0.1')
return(conexion)
except mysql.connector.Error as err:
... | [
"juliocesarnorato@gmail.com"
] | juliocesarnorato@gmail.com |
09efc6dcd913ebfbe5d6b1b5e95d76b38c620dc4 | b87f21f6a2dcf050e87b71c57e503f5b565c7138 | /IMPORT_Pro/make_own_app/views.py | 1bec47e06f6566b194c0566550834cf9d0de0bd0 | [] | no_license | anjanikumar496/Django-Import-Export | 62e613c9c9f91484f83218f171fb92b8a7a96b2c | ac259283e3ad554fe45da07e064239c0ee804a8c | refs/heads/master | 2020-11-27T10:52:19.142180 | 2019-12-21T15:58:56 | 2019-12-21T15:58:56 | 229,411,188 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,664 | py | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
from tablib import Dataset
from .resources import *
from .models import Person
def Simple_Upload(request):
if request.method == 'POST':
person_resource = PersonResource()
dataset = Dataset()
... | [
"anjanikumar496@gmail.com"
] | anjanikumar496@gmail.com |
20eb7196fe3b002591b7b276815778936aebeb54 | 4eb76ddbe2bf6d7fb8ee791dcaa1dfaccd4a09b0 | /jitai/events/EventTemplate.py | e85c491ebb1b21082dabbe5b4fef53d7216dc3b1 | [] | no_license | koike-ya/research | 3cae0be17a8871d5782842510676c05a75627c49 | 3ff99c56c8e5d6c57ee65f1bca2431f3dc6f6593 | refs/heads/master | 2021-10-12T03:13:20.645738 | 2019-01-26T07:12:58 | 2019-01-26T07:12:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,138 | py | from abc import ABC
from datetime import datetime, timedelta
import pandas as pd
from jitai.src.utils import set_hour_minute
class EventTemplate(ABC):
def __init__(self, param, user_info, ema, logger):
self.param = param
self.ema = ema
self.name = param["condition_name"]
self.ema_... | [
"makeffort134@gmail.com"
] | makeffort134@gmail.com |
d927834b35dd9386b9cabf1db95a7f7ea77141c8 | 55cc1c8ed04c2ce104985c851354d347741a0166 | /test_deconv3D.py | e7667c5678b8cb944a68d76c3afd7682ee432d5e | [] | no_license | anlthms/team-magpie-dsb-2017 | 3cb09eddf5d8c0757b91b32a9a76f309fe4591d6 | 97e9d222fb84691b67156df728dfda7399fc45a6 | refs/heads/master | 2021-07-13T18:06:45.110335 | 2017-04-11T16:29:54 | 2017-04-11T16:29:54 | 86,396,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,648 | py | from keras.models import Sequential, Model
from keras.layers import Input
from keras.layers.convolutional import Convolution3D
from keras.layers.normalization import BatchNormalization
from keras.callbacks import ModelCheckpoint, EarlyStopping
from new.deconv3D import Deconvolution3D
import numpy as np
import pylab a... | [
"ronens1@Pronghorn.ent.core.medtronic.com"
] | ronens1@Pronghorn.ent.core.medtronic.com |
2527f4d9fd54b3e27de63af10a0a6823676bffc5 | 8f63cf27e69bc44dcd11e63a0c396b398443009b | /tests/unit/util/iterables.py | 454eaf3914e1ade640b62d055b97606ada1ab216 | [
"MIT"
] | permissive | ethanjli/phylline | fae756dbbead0351dd11c770158a1aa08fa363d2 | f11307d0f37ca835996250e1e835c44abd282769 | refs/heads/master | 2021-01-01T23:56:41.018911 | 2020-02-25T05:07:34 | 2020-02-25T05:07:34 | 239,400,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,382 | py | """Test the util.iterables module."""
# Builtins
# Packages
from phylline.util.iterables import make_collection, remove_none
def test_make_collection_singleton():
"""Test whether the make_collection function makes collections from singletons."""
assert make_collection(42) != 42
assert make_collection(4... | [
"lietk12@gmail.com"
] | lietk12@gmail.com |
e1995e2e558f63a34c905142503cb7f6958579ca | ab4637a2260663f5d952c439cef134340c3dcece | /apps/my_app/views.py | fc293ebfbd5f050c185c64f438a38f6dd0cb1a42 | [] | no_license | ariasamandi/semi_restful_users | cec2309d1078e75a3e1e842da8a37c93e0856e87 | db793c987c8d15a28c13086cfef566f39ad1d4e5 | refs/heads/master | 2020-03-11T17:30:53.043609 | 2018-04-19T02:41:51 | 2018-04-19T02:41:51 | 130,149,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,393 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render, redirect
from models import *
# Create your views here.
def index(request):
context = {
"User": User.objects.all()
}
return render(request, 'my_app/index.html', context)
def new(request):
retur... | [
"ariasamandi@gmail.com"
] | ariasamandi@gmail.com |
03ac5092ebd77ee802d6b084a74dddda69c2c23b | 17d8c4428feee8b5d36ac98d338ca8d07ef1e2cd | /Chapter_3/knock20.py | 01072d1e53e66392ecadfb26763a3f8b1931137c | [] | no_license | mot11/NLP100knock | c8819be8d412b78ac588120aa0cacd9a9ba13bbe | 32d31609443f210835b71913940e6a9ecd24be10 | refs/heads/master | 2020-06-15T16:57:47.820621 | 2016-12-30T14:58:37 | 2016-12-30T14:58:37 | 75,277,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | # -*- coding: utf-8 -*-
import re
# creates text file "uk.txt" from JSON
p = re.compile(r'"イギリス"')
found = False
i = 0
with open('jawiki-country.json', 'r', encoding='utf-8') as f:
for line in f:
i += 1
for m in p.finditer(line):
found = True
break
if found:
... | [
"moshi811@gmail.com"
] | moshi811@gmail.com |
7eec1dfec4ec3c98b358f145c22daa5e51803b30 | 06691f0d09b8b788a479666087a11b3be2907b8a | /CD CODES/Experiment 4 Left Recursion Elimination/LeftReccurveElemin.py | a40de9b355d504f81050265875459b2c7256dec6 | [] | no_license | Subhojit907/CD-Codes-Sem-6 | 888e16fb4ccb3dd9b0dba8d7d65df163202cbc0c | a78caa8f2ea7bddb4f1f535e37999920e7e3ef86 | refs/heads/main | 2023-05-28T19:07:50.802368 | 2021-06-09T18:21:22 | 2021-06-09T18:21:22 | 375,451,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,248 | py | gram = {}
def add(str): #to rules together
x = str.split("->")
y = x[1]
x.pop()
z = y.split("|")
x.append(z)
gram[x[0]]=x[1]
def removeDirectLR(gramA, A):
"""gramA is dictonary"""
temp = gramA[A]
tempCr = []
tempInCr = []
for i in temp:... | [
"noreply@github.com"
] | Subhojit907.noreply@github.com |
1bb09a586e6092ecbb1565e6fb7441d8a796c5f1 | d7275cdd7215d5b52cac214955df6c22be17bd86 | /src/__init__.py | 4088dd23697036923046c6640821450025596277 | [
"MIT"
] | permissive | DMCFA/Flask-Rest-API | d572c393632a8d6cfae6d9d12535954c5af16cb0 | 062b8d82eed587a9d5a9ed8e1bbae128a0cf576a | refs/heads/main | 2023-04-13T02:08:04.785374 | 2021-04-10T16:32:39 | 2021-04-10T16:32:39 | 353,328,208 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | import os
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_marshmallow import Marshmallow
app = Flask(__name__)
appdir = os.path.abspath(os.path.dirname(__file__))
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///' + os.path.join(appdir, 'db.sqlite')
app.config['SQLALCHEMY_TRACK_MOD... | [
"duartemalmeida@gmail.com"
] | duartemalmeida@gmail.com |
69a2bb20118b3100ec46a9ba846f43df9a9212fc | ab0b4cc07be3f2865be2ff0cb5fd119bc70fc300 | /Development/blogapp/migrations/0013_auto_20211003_2158.py | d80099e2edd1b5b92c82dce2fdf791aef0b29120 | [] | no_license | Imtiyaz172/moni_siza | c3f586d465608d8ba3c03eede697a5a72d3726fd | 6a9cb1fc733dcea25547493b7d437bf80b0c835d | refs/heads/main | 2023-08-22T17:07:54.107946 | 2021-11-01T09:06:39 | 2021-11-01T09:06:39 | 379,846,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | # Generated by Django 2.0.3 on 2021-10-03 15:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blogapp', '0012_auto_20211003_2144'),
]
operations = [
migrations.RemoveField(
model_name='user_reg',
name='user_ima... | [
"shihaborg1@gmail.com"
] | shihaborg1@gmail.com |
54c5ad78ced39b2cecd00aca7399d2b8244f00de | 883feb44d5a95b96886665106a7db7ec15afbfe2 | /core/vm/vm.py | 72176cc003b2d573ebb3c245f1f4cbd47cca6fc0 | [] | no_license | CarlosIvanCardenas/proyecto-compiladores-ui | 7079b807aedef251d8cc1c44639b802c3db3750b | d699f0dc157014e749a9a0ef0a59b2831be824ab | refs/heads/main | 2023-01-13T22:01:29.992005 | 2020-11-24T01:09:50 | 2020-11-24T01:09:50 | 314,642,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,813 | py | from dataclasses import dataclass
from common.scope_size import GLOBAL_ADDRESS_RANGE, LOCAL_ADDRESS_RANGE, CONST_ADDRESS_RANGE, TEMP_ADDRESS_RANGE, \
POINTER_ADDRESS_RANGE
from compiler.quadruple import Operator, Quadruple
from compiler.symbol_table import VarType
from vm.memory import AddressBlock
from common.debu... | [
"cicc1998@gmail.com"
] | cicc1998@gmail.com |
7f83f95d256280eded283b30416cba6725d161ef | e02ffc3482b616a91a6f6a13d61845c0604fb617 | /CalStatistics/CalStatistics.py | f98c4832fe54f594dce341c8423a3ff07cb691cf | [] | no_license | Gsynf/PythonProject | 6d136a1176289e7d42c4ed25b9b6d4f515fe01d0 | e55718c3c998f66ba0e2c78c088ef702aeefa532 | refs/heads/master | 2020-05-07T09:04:25.514202 | 2019-07-15T02:35:15 | 2019-07-15T02:35:15 | 180,360,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 948 | py | #!usr/bin/env python3
#coding:utf-8
__author__ = 'hpf'
#基本统计值
def getNum(): #获取用户不定长度的输入
nums = []
iNumStr = input("请输入数字(回车退出):")
while iNumStr != "":
nums.append(eval(iNumStr))
iNumStr = input("请输入数字(回车退出):")
return nums
def mean(numbers): #计算平均值
s = 0.0
for num in numbers:
... | [
"18813058359@163.com"
] | 18813058359@163.com |
b86f37f64be3a4a6a783e0cc8de77ab087a399bf | 4b360696d512a35b2114c482c658d10e3ff91a2c | /project-addons/mail_ph/models/__init__.py | 94a375f2116535169a7287ca79e29be1a3feb530 | [] | no_license | Comunitea/CMNT_010_15_PHA | 24ecf3be6a50441dfa3dd8deca4ee96ac5e61970 | d4a24aafba48fc7dda7ee662e0c7e1112c220162 | refs/heads/master | 2022-08-12T00:39:24.464028 | 2022-07-11T10:30:30 | 2022-07-11T10:31:31 | 37,918,119 | 0 | 1 | null | 2015-12-02T12:39:43 | 2015-06-23T12:37:45 | Python | UTF-8 | Python | false | false | 256 | py | # -*- coding: utf-8 -*-
# © 2020 Pharmadus I.T.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from . import res_partner, sale_order, purchase_order, hr_holidays, \
account_invoice, res_company, stock, mail_compose_message, mail_mail | [
"oscar.salvador@pharmadus.com"
] | oscar.salvador@pharmadus.com |
c68b9bbba04f39d17cbece18a7af398f104bf636 | 3a5d1b27f21af3aed3ee6d614b162b852d03c6e8 | /sqltool.py | bbb7cb457063b96ab808c9c1490ede7518457cf4 | [] | no_license | pyking/SqlKnife_0x727 | f7bc400720d4ed749bfbc77181cebc12f52fbacc | 09bc9f0cbf3b781bc92078267d46cccf74117c97 | refs/heads/main | 2023-07-04T09:54:20.770956 | 2021-08-04T09:24:10 | 2021-08-04T09:24:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271,416 | py |
sqltxt4="""
CREATE ASSEMBLY [PotatoInSQL]
AUTHORIZATION [dbo]
FROM 0x4D5A90000300000004000000FFFF0000B800000000000000400000000000000000000000000000000000000000000000000000000000000000000000800000000E1FBA0E00B409CD21B8014CCD21546869732070726F6772616D2063616E6E6F742062652072756E20696E20444F53206D6F64652E0D0D0A24... | [
"hl0rey@163.com"
] | hl0rey@163.com |
34529478085062e959c34fee5da4b78c41f9e8bf | 2e1fad208df28fcd6fc923915e1ae6865a74051d | /Assignment 5/fsm.py | 1acb975664a46194e9da7ef3e6fd9f9a9ef4d438 | [] | no_license | cameronpadua/CSS390-Assignments | df9e435d2c6aac2618b0c3ef57fdf7ef43e29adb | a4089d46cb5ec3c91d170dbadaa355190e68bfc1 | refs/heads/master | 2021-04-28T19:50:49.531800 | 2018-02-18T01:35:56 | 2018-02-18T01:35:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,040 | py | #! /usr/bin/python
"""
Name: Cameron Padua
Class: CSS390
Assignment: Finite State Machine Generator
Description: This script is used to generate C++ code using python. The
user must provide all the edges, header, footer, and states
to create a python file to run... | [
"cameron.padua@gmail.com"
] | cameron.padua@gmail.com |
d7160f9ee837a91c8da2ae76425140f5dac1dd8d | 0925e75bfd0b0cf88b238826a477a21caae648a2 | /calculator/settings.py | 680e3b5e5b1030543d3cb2597d44b91af01068a2 | [] | no_license | uzgit/calculator | c0018e1e326bcdaf3d0d1632ca6a4bbd6020d35e | e999379bfbbd962d86151928f62d06972b2f37a1 | refs/heads/master | 2020-08-31T08:15:58.770074 | 2019-11-04T09:22:15 | 2019-11-04T09:22:15 | 218,645,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,191 | py | """
Django settings for calculator project.
Generated by 'django-admin startproject' using Django 2.2.6.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os... | [
"jspri17@gmail.com"
] | jspri17@gmail.com |
f78398b8f7458ea46cd65be017f77894f35269a5 | 0947e06c9015b3ba8fe542d8b56e2df95c4ac15b | /loanPrediction.py | e09846e815caea31cd9e9d9ad1352ad8c2b1c310 | [] | no_license | stnorbi/LoanPrediction | 0a41a20f9045fb8dd70b9b42cec1d396125e517c | 714b2107cb5e7d125f6585cdbc9ffd471eceadd4 | refs/heads/master | 2020-04-10T19:10:40.706148 | 2018-12-14T22:09:11 | 2018-12-14T22:09:11 | 161,224,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,280 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import os
pd.set_option('display.expand_frame_repr', False)
# File pathes:
sample_path=os.path.dirname(__file__) + "/Samples/"
#Load the dataset into a pandas dataframe
dataFrame=pd.read_csv(sample_path + "train.csv")
print(dataFrame.head())... | [
"streling.norbert@gmail.com"
] | streling.norbert@gmail.com |
1d6c1bc9d8dcf9d0703c2f2e0e55e31c19f55315 | b4687bd0817c6d00d8afde2721102416462cd73f | /txtemplates/server_templates/templates/protocol/__init__.jinja | 385ad13db7f0d3c9042df2b700ac4bd8cb63cd9d | [] | no_license | mdrohmann/txtemplates | a8818b5213c38f1d27d497e3578129d07f764c06 | b346b15d3eb465ec828a31fea0a00df3ae582942 | refs/heads/master | 2020-06-02T21:37:31.690441 | 2015-04-21T16:00:41 | 2015-04-21T16:00:41 | 40,129,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66 | jinja | from . import pb
__all__ = ['pb']
# vim: set ft=python sw=4 et:
| [
"mdrohmann@gmail.com"
] | mdrohmann@gmail.com |
bb92611663129085e0c2b2b258620024399268b9 | 24d070c6410fdf7212c4c37c2fadc932cd4e8aec | /trac/tests/notification.py | f2f6ce13b9e162a72b77a90a539f2142f77a07ba | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | clubturbo/Trac-1.4.2 | 4f111e8df9e8007a0e02080bec560361b25fc11c | 254ce54a3c2fb86b4f31810ddeabbd4ff8b54a78 | refs/heads/master | 2023-01-20T16:20:44.724154 | 2020-12-03T08:57:08 | 2020-12-03T08:57:08 | 317,922,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,655 | py | # -*- coding: utf-8 -*-
#
# Copyright (C) 2005-2020 Edgewall Software
# Copyright (C) 2005-2006 Emmanuel Blot <emmanuel.blot@free.fr>
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also availab... | [
"jonn@mindhunterx"
] | jonn@mindhunterx |
68e9badb63dfa7f93aed88ca630799e3a43f8ee8 | bb24d8a7f71206fac23ebef0d53f94918d7aa32d | /mymusic/migrations/0005_album_image_url.py | 2818a2cbf76e1a6e207e5a6e7dae1d783a693bd1 | [] | no_license | momentum-morehouse/django-music-bettinacjohnson | ec3311b41df1c3c09a3993fb476c06d715a87405 | c52f24d2f9faec73b0cad4139ebfe002bd819766 | refs/heads/master | 2022-11-27T02:04:49.847168 | 2020-07-16T23:46:13 | 2020-07-16T23:46:13 | 279,333,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | # Generated by Django 3.0.8 on 2020-07-15 20:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mymusic', '0004_auto_20200714_1510'),
]
operations = [
migrations.AddField(
model_name='album',
name='image_url',
... | [
"replituser@example.com"
] | replituser@example.com |
aad3ce20af76236936080e408ab49e3291e96572 | a723779f23d83fda069cf68e6dcf643e5afff82a | /lecture4/flights/0002_auto_20210809_2024.py | 5ab8d29d8602dc39cc0a226927a22a66ccab2877 | [] | no_license | dan1el5/cs50-lectures | 362e83b14c4dab1997c5b5735569f1ac1081d158 | 711aabd6d6f0babe9be99491b3c94b224969b857 | refs/heads/main | 2023-07-12T11:50:51.296952 | 2021-08-24T05:38:50 | 2021-08-24T05:38:50 | 399,343,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,098 | py | # Generated by Django 3.2.5 on 2021-08-10 00:24
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('flights', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Airport... | [
"noreply@github.com"
] | dan1el5.noreply@github.com |
3f79c10b4a5c6efa78489ad412c41b7383e80ce2 | 376de370915329d65f60e41e17cbcf642cfe0212 | /optim/trpo.py | e39eb7f5f68872800c2717ef033c01ba1c89fedb | [
"MIT"
] | permissive | Bobobert/TRPO | 4c5588f8e8366a350843cb3933e65f54103eff4e | 9134ac692955b2bee3596d9a6a4dde145ad993e7 | refs/heads/master | 2023-03-25T16:08:15.072113 | 2021-03-19T02:33:19 | 2021-03-19T02:33:19 | 339,814,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,247 | py | # THIS IS HELL
from torch.distributions.kl import kl_divergence
from TRPO.functions.const import *
from .functions import cg, ls, convert2flat, convertFromFlat, unpackTrajectories
class TRPO:
"""
Optimizer Trust Region Policy Optimization
Mostly based on Schulman's implementation on Theano
https://git... | [
"robertolopez94@outlook.com"
] | robertolopez94@outlook.com |
88e16d0fac13e4e9eee8c7bea8b9fa71c55ddd68 | 9c2edc273db48dcb6d31a937510476b7c0b0cc61 | /cython_sample/setup.py | aee60680780e7c7437d6abd35f1504bd902ef425 | [] | no_license | miyamotok0105/python_sample | 4d397ac8a3a723c0789c4c3e568f3319dd754501 | 77101c981bf4f725acd20c9f4c4891b29fbaea61 | refs/heads/master | 2022-12-19T22:53:44.949782 | 2020-05-05T05:09:22 | 2020-05-05T05:09:22 | 81,720,469 | 1 | 0 | null | 2022-11-22T02:22:55 | 2017-02-12T11:15:08 | Jupyter Notebook | UTF-8 | Python | false | false | 731 | py | #! -*- coding: utf-8 -*-
#python setup.py build_ext --inplace
from Cython.Build import cythonize
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
import numpy as np
try:
numpy_include = np.get_include()
except AttributeError:
numpy_include = np.... | [
"miyamotok0105@gmail.com"
] | miyamotok0105@gmail.com |
da2d3c60254b69999d1ab59f7e74952218582ac1 | 25d147519eb689d00339d7950b764798629ad3a8 | /forms/models.py | 537559e89ab76839d62ef8b41a38e2037b68fcdc | [
"MIT"
] | permissive | bernardobgam/edtech_experiment | 3172f3eb7a2ab522f23666d64f221375febba108 | 88a64b925b6692261649418260a0bdf7b4a5a9d1 | refs/heads/master | 2022-12-13T03:48:10.721752 | 2019-10-21T04:23:04 | 2019-10-21T04:23:04 | 216,477,111 | 0 | 0 | MIT | 2022-11-22T04:17:36 | 2019-10-21T04:24:44 | JavaScript | UTF-8 | Python | false | false | 1,063 | py | from django.db import models
from lab.models import LabProgress, LabCode
from django.utils import timezone
from django.db.models import Sum
# Create your models here.
class ParticipationConsent(models.Model):
"""Saves the consent forms"""
lab_session = models.ForeignKey(LabProgress, on_delete=models.CASCADE)
... | [
"bernardogam@gmail.com"
] | bernardogam@gmail.com |
73a885c8935eb053011d613987cd0a93f87b0d0e | 8b7d6a22debf824294e3e556ec4f5049524bfb14 | /Polynomial/polynomial.py | 1cc82259356c84e861052efbcb1f9786782d627f | [] | no_license | djtsorrell/Intro-Python-OOP | cc46622e5d34b9b29209a9d19286253e04e6e902 | a3185f11a13b8ee035138eef13a3aa2a376794cd | refs/heads/master | 2023-03-04T17:01:55.212225 | 2021-02-15T17:19:44 | 2021-02-15T17:19:44 | 287,131,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,786 | py | from itertools import zip_longest
class Poly:
"""
A class to represent and manipulate polynomials.
Parameters
----------
coeff : list of float
List of coefficients for the polynomial.
Attributes
----------
coeff : list of float
List of coefficients for the polynomial.... | [
"sorrelldominic9@gmail.com"
] | sorrelldominic9@gmail.com |
023ce6ce8542b911c4f6bd577f910836abcf972d | 63a9ab5db1ae5ad433fef00669f07e01a36a19cf | /details.py | 68419c3f203a2fcba0be751e7e07e7b9320327fd | [] | no_license | RaynardAg/ProductConfigurator | daa4fe852d2a7d0caaa1e9daeea09ee3548f0151 | 425fe21e9107b799594aa884d50a19c022aac228 | refs/heads/main | 2023-07-01T21:57:37.500669 | 2021-08-13T02:10:57 | 2021-08-13T02:10:57 | 395,493,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,627 | py | import csv
from bs4 import BeautifulSoup
from selenium import webdriver
from re import sub
""" Extract information from previous web scraping stage"""
def get_url(csv_name):
with open(csv_name + '.csv', encoding='UTF-8') as csv_file:
csv_reader = csv.reader(csv_file, delimiter=',')
urlli... | [
"noreply@github.com"
] | RaynardAg.noreply@github.com |
7f071599e4a39af20a60059d04fd05dcdb5ac758 | 1eb99619f016fdea0be643674cdb4deb9b1b626e | /ParkingLot_full_stack/parking_lot/parking_lot/settings.py | 65a499e53c6e613e9f2ebc95a66cd75ff9ca8cf6 | [
"MIT"
] | permissive | Eduardo95/ParkingLot | 0ebee78eba0834d46879c1acbc1d978f4dd80f99 | bce9fd06694b0e16bcd57a175347f381f56a8089 | refs/heads/master | 2023-08-08T00:27:27.736079 | 2021-04-27T07:12:31 | 2021-04-27T07:12:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,251 | py | """
Django settings for parking_lot project.
Generated by 'django-admin startproject' using Django 2.1.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import o... | [
"xwt97294597@gmail.com"
] | xwt97294597@gmail.com |
60d34638bc1a71aec3b30bdb71943672f3a6594b | 88ed6ed99589f7fb8e49aeb6c15bf0d51fe14a01 | /026_removeDuplicates.py | 5e8dbfc5edb96029cb37d413ce206813159f712a | [] | no_license | ryeLearnMore/LeetCode | 3e97becb06ca2cf4ec15c43f77447b6ac2a061c6 | 04ec1eb720474a87a2995938743f05e7ad5e66e3 | refs/heads/master | 2020-04-07T19:02:43.171691 | 2019-06-23T15:09:19 | 2019-06-23T15:09:19 | 158,634,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 658 | py | #!/usr/bin/env python
#coding:utf-8
#@author: rye
#@time: 2019/2/18 17:15
'''
很快就写完了。。。算是最近写题最快的一个
'''
class Solution:
def removeDuplicates(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
i = 0
j = 0
while j < len(nums):
if... | [
"noreply@github.com"
] | ryeLearnMore.noreply@github.com |
7d046603c008827962ae044ec476f221c259833d | 8696c69e63a825201a4529381f612ca501a397bb | /modeling/two_layer_decoder.py | 1c1452182614f26da697f6b6877e07ae12786405 | [] | no_license | nageshgurram12/generic-semantic-segmentation | 14aaf7d08d0e07e4c998071a8c63f71a2d381ea3 | 6cc5be06ff6a51bd9cad41c076a21cdb4f7eee3e | refs/heads/master | 2021-07-26T00:09:37.223561 | 2020-10-11T14:24:32 | 2020-10-11T14:24:32 | 224,564,709 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,939 | py | import math
import torch
import torch.nn as nn
import torch.nn.functional as F
from modeling.sync_batchnorm.batchnorm import SynchronizedBatchNorm2d
class NonBottleNeck(nn.Module):
def __init__(self, inplanes, planes, BatchNorm=None, dilation=1):
super(NonBottleNeck, self).__init__()
reduction =... | [
"nageshgurram12@gmail.com"
] | nageshgurram12@gmail.com |
75923154d02e8e140b61ff4649653b02ba3d84f9 | 3f4ab4ba2b99c967ebe9a36b69f61283694751a7 | /Tourn/migrations/0013_auto_20200608_2134.py | 10bf48ecf7839f5182143fceb110bffcabe5fe66 | [] | no_license | happyberry/Tournaments | f7f113b8bf069298243d5c942960472c1ae2afbb | 90e57c6b8e78213f445f6c29be45e58c0e497e85 | refs/heads/master | 2022-11-08T19:19:09.152070 | 2020-06-21T14:39:39 | 2020-06-21T14:39:39 | 267,960,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 716 | py | # Generated by Django 3.0.6 on 2020-06-08 19:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Tourn', '0012_auto_20200608_2134'),
]
operations = [
migrations.AlterField(
model_name='game',
name='score',
... | [
"j.tadej@wp.pl"
] | j.tadej@wp.pl |
5a80607c8637163410aec5e6372e07c4a642fe98 | 484d73935f057756df8bc6556fc5704327443108 | /236/A_test.py | 49dc94cdcb8d04cbc13e9010b55aa0604f5e0da9 | [] | no_license | kazuya030/CodeForces | 5d93d25f456589ad6343e1140ca27c5ecbd0d652 | 8d859c7680c7dd1c40943bb05116bf032ea5f9bd | refs/heads/master | 2021-03-12T23:45:53.592799 | 2012-12-02T06:57:30 | 2012-12-02T06:57:30 | 6,964,124 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | #coding: utf8
import sys
import StringIO
__date__ = '2012/10/20'
from A import solve
def test(input, ans):
ans = str(ans)
s_in = StringIO.StringIO(input)
s_out = StringIO.StringIO()
sys.stdin = s_in; sys.stdout = s_out
str(solve())
sys.stdin = sys.__stdin__; sys.stdout = sys.__stdout__
a... | [
"minami@Retinan.local"
] | minami@Retinan.local |
6a5f28424aac29934414b717667a4d6e93eb928a | 4bf1a2d4cb11d056030ea1ea8fa98fca737ece8c | /setup.py | 2938b39eb7b21602d0614bbbf5c2b9ff4b13314e | [
"BSD-3-Clause"
] | permissive | vicramr/consensuscluster | ed50716eefd7d0e8d31a25fc728f8a8d9bd06f73 | 959e842b6bd4bc5c24b49c516edc4d4d1e96071b | refs/heads/master | 2020-05-19T21:55:44.821305 | 2019-06-03T04:06:25 | 2019-06-03T04:06:25 | 185,236,163 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,164 | py | #! /usr/bin/env python
"""A Python implementation of consensus clustering."""
import codecs
import os
from setuptools import find_packages, setup
# get __version__ from _version.py
ver_file = os.path.join('consensuscluster', '_version.py')
with open(ver_file) as f:
exec(f.read())
DISTNAME = 'consensuscluster'
D... | [
"vicram.r@hotmail.com"
] | vicram.r@hotmail.com |
d7a1256a63d48f75460c5afb5d1a56bfc3eb0fb0 | cda3eb3c2f13e02448125a2931eac769a32d85a7 | /Fractal/fractal.py | 936939ccba7eb745be57296b50c55fd17a35c910 | [] | no_license | VenomRo666/Python-Fundamentals | c3a36d7cf51472e066853dd8f8219128bce3b88a | 2a7b8659e3883afd685ec26eaa3d9ea78c752e6e | refs/heads/master | 2020-06-10T06:28:39.800730 | 2015-07-16T14:16:10 | 2015-07-16T14:16:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 995 | py | """ Computing Mandelbrot sets."""
import math
def mandel(real, imag):
""" Compute a point in the Mandelbrot.
The logarithm of number of iterations needed to
determine whether a complex point is in the
Mandelbrot set.
Args:
real: The real coordinate
imag: The imaginary coordinate
... | [
"johanvergeer@gmail.com"
] | johanvergeer@gmail.com |
7ac450e80d74815ef7401aa056f3feb1952628a3 | 853d4cec42071b76a80be38c58ffe0fbf9b9dc34 | /venv/Lib/site-packages/pandas/tests/series/test_duplicates.py | 6577b3e54b7b981a4d18a17b1a5eb28849a224fe | [] | no_license | msainTesting/TwitterAnalysis | 5e1646dbf40badf887a86e125ef30a9edaa622a4 | b1204346508ba3e3922a52380ead5a8f7079726b | refs/heads/main | 2023-08-28T08:29:28.924620 | 2021-11-04T12:36:30 | 2021-11-04T12:36:30 | 424,242,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,717 | py | import numpy as np
import pytest
from pandas import Categorical, Series
import pandas.util.testing as tm
def test_value_counts_nunique():
# basics.rst doc example
series = Series(np.random.randn(500))
series[20:500] = np.nan
series[10:20] = 5000
result = series.nunique()
assert r... | [
"msaineti@icloud.com"
] | msaineti@icloud.com |
752be920ca53c3c110792cae0eb771e213dad151 | f6e2c094567be508b0af0105be7b2f468a74079c | /agent.py | 0f2519d9fb31c7f621730d400ae4f545ae4d2f1a | [] | no_license | CPapageorgiou/Reinforcement-Learning-Pixelcopter-DQN | 5c7ed37331dd692df897fed6753847e413f2d33f | da61addb443e4350655fe91711e58182c2514add | refs/heads/main | 2023-08-17T09:14:48.915968 | 2021-09-21T14:11:04 | 2021-09-21T14:11:04 | 408,818,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,573 | py | import tensorflow as tf
from tensorflow import keras
from tensorflow.keras.models import Sequential, load_model
from tensorflow.keras.layers import Dense
from tensorflow.keras.optimizers import Adam
from tensorflow.keras.losses import Huber
from ple.games.pixelcopter import Pixelcopter
from ple import PLE
import numpy ... | [
"chrisanorthosara@hotmail.com"
] | chrisanorthosara@hotmail.com |
5afe25ed35a74d83494d0891f309246f59f0954f | 41be5fc78b1e9252e4cfe4d7adf98dceb944c4c9 | /argomenti.py | f66f6b44166bc6fdf88b09a60ac06142a7e31459 | [] | no_license | Klemici/corso-intro-python | 828eb9187cba183821b5d7bf66e25e179ba79306 | c35871aff9050f538c450158739abafaa196df6b | refs/heads/master | 2021-01-21T07:04:21.842082 | 2017-02-23T16:32:57 | 2017-02-23T16:32:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | from sys import argv
script, name, age = argv
print 'Ciao %s, Hai %s anni' % (name, age)
| [
"klemici@outlook.com"
] | klemici@outlook.com |
cb62c894b9da32ff1434d2237515a58c24e7c6e4 | d7294d121a0a4778117096185f47507e6da85ea9 | /03 - Recursion/fibonacci.py | 9cd51a9b9a410fa7e03b8c04c354319fa4252389 | [
"MIT"
] | permissive | MarquezLuis96/CompThink_Python | ee0124c933a65959d07261c6a3affa68deccd52c | e8d3db42c5568c4fa1d6f4d6376a871b4bd3128e | refs/heads/main | 2023-01-20T05:57:20.122839 | 2020-11-23T22:27:16 | 2020-11-23T22:27:16 | 309,174,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,054 | py | # Date: 2020/11/16
# Author: Luis Marquez
# Description:
# A simple program to learn about fibonacci with recursion
# #
#fibo: This function is called when we will calculate the fibonacci serie
def fibo(iterations):
"""
This function calculate the fibonacci serie, calling itself many times... | [
"englamc@gmail.com"
] | englamc@gmail.com |
564872cb7da5965f0b12fed997e4dd289276360a | 9e56fedadfadc3787bcf501dcde4f0a6df68994b | /fanqizha/callinfo/modelpredictive.py | f66c7b0e2bc8d9fa6b40de96342cfc89788ca083 | [] | no_license | datadragon1363193649/datadragon | c70f3685c5189a78556636c1f70e0fcebaf62d1b | 125140e52a541c7d45f38c45e830443a58a6ae06 | refs/heads/master | 2021-09-15T16:53:33.004526 | 2018-06-07T09:38:22 | 2018-06-07T09:38:22 | 115,381,354 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,192 | py | # -*- cocoding: utf-8 -*-
import os
import sys
_abs_path = os.path.split(os.path.realpath(sys.argv[0]))[0]
apath = os.path.split(os.path.realpath(_abs_path))[0]
sys.path.append(apath)
from sklearn.pipeline import Pipeline
# from sklearn.linear_model import SGDClassifier
from sklearn.model_selection import GridSearchCV... | [
"xuyonglong@jiandanjiekuan.com"
] | xuyonglong@jiandanjiekuan.com |
c019e47f0ff83cf6dcdb0d544128652acf3ae52c | 0cf6728548830b42c60e37ea1c38b54d0e019ddd | /Learning_MachineLearning/DeepLearningWithPython/5.3.py | 0f1e218f44d0b1287be5fb399e830a0c97bf75a1 | [] | no_license | MuSaCN/PythonLearning | 8efe166f66f2bd020d00b479421878d91f580298 | 507f1d82a9228d0209c416626566cf390e1cf758 | refs/heads/master | 2022-11-11T09:13:08.863712 | 2022-11-08T04:20:09 | 2022-11-08T04:20:09 | 299,617,217 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,734 | py | # Author:Zhang Yuan
from MyPackage import *
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib.patches as patches
import seaborn as sns
import statsmodels.api as sm
from scipy import stats
#------------------------------------------------------------
__mypath__ = MyPath.MyClass_Pa... | [
"39754824+MuSaCN@users.noreply.github.com"
] | 39754824+MuSaCN@users.noreply.github.com |
998bbd1f2c9cba66553dc8f643a0380cbf6edcbc | c8388bb33ffbfa74e5babae5159029fa99248a92 | /SubscriberCount_Raspberrypi/getSubs.py | b322a11ec5202e3badaf3b34b42f89e636e827e4 | [
"MIT"
] | permissive | tieum/SevenSegments | 994054a38dfa96348d458175272522acbb76fd8b | 7a7c596bc21bd285c1260418a5a54cd365b2fa77 | refs/heads/master | 2022-11-20T05:11:29.529024 | 2020-07-22T05:56:06 | 2020-07-22T05:56:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,712 | py | #!/usr/bin/python
"""
Get the Youtube subscriber count from google.apis and send it to the display every 60s.
Loops until killed.
You will need to get your own API-Key from google but that is quite simple. Google it ;)
"""
import urllib, json, time
import sys, traceback
import serial
urlYT = "https://www.g... | [
"florian.pubhooyah@gmail.com"
] | florian.pubhooyah@gmail.com |
c27fbb4d69410fb5cf725de53194f9c56c32cab0 | bd24ac1c323245878ff14bf3cbb511b15b36503d | /modules/solver.py | 6f88bb54bce25e3b6904f1aeb0173de6e51518f1 | [
"MIT"
] | permissive | liupeng0606/SARAS-ESAD-Baseline | 22cc2c5c685ad50656d0b4df0f394903a406a55d | 3696e77ffbe9f10f18a2a9e1ac74f0b09076e6b0 | refs/heads/master | 2022-10-24T14:27:59.622404 | 2020-06-16T08:21:40 | 2020-06-16T08:21:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,922 | py | import torch, pdb
import torch.optim as optim
# from .madamw import Adam as AdamM
# from .adamw import Adam as AdamW
# from torch.optim.lr_scheduler import MultiStepLR
class WarmupMultiStepLR(torch.optim.lr_scheduler._LRScheduler):
def __init__(self, optimizer, milestones, gammas, last_epoch=-1):
self.mile... | [
"guru094@gmail.com"
] | guru094@gmail.com |
14961e21699bc8361368a4d2cdb64cac51864a02 | af573b5db79f10b8d93a1fec8808cb5dfe666eff | /imageFinder/tools/views.py | 262f53b5b1b6edddf058125a3e087ef4a6b48bcc | [] | no_license | kevkid/YIF | a9739e9295030bc5b22551ff9b65f57af465b695 | 709f61f44743be5a69da9fb283536d5b3ddd2d59 | refs/heads/master | 2020-04-12T07:21:58.559035 | 2020-03-06T20:19:53 | 2020-03-06T20:19:53 | 62,367,716 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,844 | py | import os
from web.models import Image, Classes
from django.shortcuts import get_object_or_404, render
from django.http import HttpResponseRedirect, HttpResponse
from django.core.urlresolvers import reverse
from django.conf.urls.static import static
from imageFinder.settings import STATIC_URL, STATIC_IMAGES
from django... | [
"kevin@Phantom"
] | kevin@Phantom |
e49a46bd598b2890f0a5b005daecd7631585b582 | 24230b116eaaf509c1076679d0fefbb0f96d4155 | /Ch10-shutil.py | e59746e0569b545530b797f53905e58b8e2cf8c1 | [] | no_license | kamchung322/AutomatePython | b2e168f6d02db06a652c481eb8dbbbd2abeef616 | d719cfa965b9e70acd8b98928a3b06ba2fba2be0 | refs/heads/master | 2021-04-04T05:21:40.622512 | 2020-03-25T09:24:22 | 2020-03-25T09:24:22 | 248,427,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,925 | py | import shutil, send2trash, os, zipfile
from pathlib import Path
def copySingleFile():
CWD = Path.cwd()
shutil.copy(CWD / 'Remark', CWD / 'Remark_Backup' )
def copyDir():
CWD = Path.cwd()
shutil.copytree(CWD, CWD/'Backup')
def renameFile():
# use move function to rename file name
CWD = Path.cw... | [
"kamchung322@gmail.com"
] | kamchung322@gmail.com |
6f953e1b9bd7d90dcdff2db982c6806aff2e1411 | cc44da7bde5439248f01a6a1d18c8e36deaa559b | /attic/mash-original/apps/mashapp/views.py | fa64b2a5b8d24119ad49edceadfbe8f8e7e20642 | [] | no_license | panna/lab | 767175016fbe5169c3b93ac49b058f095bf4cb12 | 0f46c7d29d2fd90b61e4ef7bdc4b7c8a3857de63 | refs/heads/master | 2020-04-03T11:19:33.126924 | 2009-11-16T20:51:57 | 2009-11-16T20:51:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,329 | py |
from django.utils import simplejson
from django import forms
import md5
import re
from springsteen.views import *
from springsteen.services import *
from springsteen import utils
from mashapp.models import *
from voting.views import json_error_response
from django.core.exceptions import ObjectDoesNotExist
from voting... | [
"admin@crowdsense.com"
] | admin@crowdsense.com |
6c6f0158a133d53785b286410755f200ac888fa6 | 59995c33bfc97aaac24693fc05e697b44260c2dd | /Learn-code-note/Python/Head-First-Python/Chapter-3/version-3.py | 1d4da7e64dc57c0b4c8da72c0d2b0c072825dfa4 | [] | no_license | 302wanger/Python-record | 6bfd0ff34f486d62a9b06f105e77f942f1afd035 | eac76cfd322a75bbb1ec7157a0877b2604daaddd | refs/heads/master | 2021-08-27T19:57:22.953766 | 2017-11-28T06:15:05 | 2017-11-28T06:15:05 | 112,293,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | # -*- coding: utf-8 -*-
# 特定指定异常
# 比第二个版本多了个try/except,原因是要判断文件是否能打开
# 使用try/except可以让你关注代码真正要做的工作
# 而且可以避免向程序增加不必要的代码和逻辑。
try:
path = '//Users/wangyuan/Desktop/Learn-code-note/Python/Head-First-Python/Chapter-3/sketch.txt'
data = open(path, 'r')
for each_line in data:
try:
(role, line_spoken) = each_line.sp... | [
"wangyuanfu315@gmail.com"
] | wangyuanfu315@gmail.com |
fd7663c74ab7441e0d5e4e98c3e5a02023c432b6 | 48983b88ebd7a81bfeba7abd6f45d6462adc0385 | /HakerRank/data_structures/trees/tree_top_view.py | 54610fe4a1f57e64ca716708d368bed09f4c0f84 | [] | no_license | lozdan/oj | c6366f450bb6fed5afbaa5573c7091adffb4fa4f | 79007879c5a3976da1e4713947312508adef2e89 | refs/heads/master | 2018-09-24T01:29:49.447076 | 2018-06-19T14:33:37 | 2018-06-19T14:33:37 | 109,335,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 546 | py | # author: Daniel Lozano
# source: HackerRank ( https://www.hackerrank.com )
# problem name: Data Structures: Trees: Top View
# problem url: https://www.hackerrank.com/challenges/tree-top-view/problem
def topView(root):
instance = root
if not root:
return
answer = [instance.data]
while instance.... | [
"lozanodaniel02@gmail.com"
] | lozanodaniel02@gmail.com |
2c24254b0354d439e0c5b46198b0b3e896d9d36a | 17e6e6188a426eae2360f72bd89305a1b36382dd | /quiz20 2.py | cd60059378925e2be5d8b481bf8021e924c1ca9c | [] | no_license | manojputhalapattu/python | bdbf3fa4c9c6c740b1c67acc8d52a4d9fb29f628 | 674f23fef39aad3881fe8988eb2f126bfd636d7b | refs/heads/master | 2020-09-25T04:28:37.142342 | 2019-12-06T16:26:42 | 2019-12-06T16:26:42 | 225,917,538 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | x=1
while x<=5:
print("*",end='')
y=1
while(y<=5):
print("*",end='')
y=y+1
x=x+1
print()
| [
"noreply@github.com"
] | manojputhalapattu.noreply@github.com |
7c9d87260077a86dbbabda14b55843274ed9025d | 24b9a0aec77bc27fb4e7cf3e1f6006c3ae0ad764 | /app.py | ceaad411db1e4c4cc7063da398a5e9765d74d51e | [] | no_license | pbca26/electrum-monitoring | 2761f254b8ddb85639a74e003355aea6473e177f | 6bb3cc88b28cb5427248b6db1463e97c5d1be831 | refs/heads/master | 2022-11-26T10:32:19.470869 | 2020-05-12T12:59:34 | 2020-05-12T12:59:34 | 270,329,223 | 0 | 0 | null | 2020-06-25T12:50:15 | 2020-06-07T14:21:01 | null | UTF-8 | Python | false | false | 2,614 | py | import os
import json
import requests
import atexit
from lib import electrum_lib
from lib import electrums
from flask import Flask, render_template, jsonify
from apscheduler.schedulers.background import BackgroundScheduler
app = Flask(__name__)
electrum_urls = {}
explorers_urls = {}
@app.before_first_request
def... | [
"gdath100500@gmail.com"
] | gdath100500@gmail.com |
a118b3014504cb8657f235f4b8fa23f71f3919fd | 118fa1d714b70a8115830f1eb3e68ce301af0609 | /Flask_Blog/flaskblog/models.py | 86da6341a0df59369890770b579b04747500c251 | [] | no_license | sagarkk/Blog_App | 0b27dfd80ac805a13138f0b7278315aea74e48fe | f3facaa7cfe26aad846e23fc87d045790be06bc8 | refs/heads/master | 2022-12-24T20:41:48.596732 | 2020-09-27T17:11:11 | 2020-09-27T17:11:11 | 299,074,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,307 | py |
from datetime import datetime
from flaskblog import db,login_manager
from flask_login import UserMixin
@login_manager.user_loader
def load_user(user_id):
return User.query.get(int(user_id))
class User(db.Model, UserMixin): #our model for relational database , table name lower_case(user)
id = db.Column(db.Intege... | [
"sagarkksrivastava@gmail.com"
] | sagarkksrivastava@gmail.com |
263b4e73ca9c63039667b3f9bfd7f5987ff27324 | 56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e | /CMGTools/H2TauTau/prod/TauES_test/up/emb/DoubleMuParked/StoreResults-Run2012C_22Jan2013_v1_PFembedded_trans1_tau132_pthad1_30had2_30_v1-5ef1c0fd428eb740081f19333520fdc8/USER/V5_B/PAT_CMG_V5_16_0_1374851248/HTT_24Jul_newTES_manzoni_Up_Jobs/Job_165/run_cfg.py | 8c6b3e542ac26649a77e44a538c98aeaa7bee2f0 | [] | no_license | rmanzoni/HTT | 18e6b583f04c0a6ca10142d9da3dd4c850cddabc | a03b227073b2d4d8a2abe95367c014694588bf98 | refs/heads/master | 2016-09-06T05:55:52.602604 | 2014-02-20T16:35:34 | 2014-02-20T16:35:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69,050 | py | import FWCore.ParameterSet.Config as cms
import os,sys
sys.path.append('/afs/cern.ch/user/m/manzoni/summer13/CMGTools/CMSSW_5_3_9/src/CMGTools/H2TauTau/prod/TauES_test/up/emb/DoubleMuParked/StoreResults-Run2012C_22Jan2013_v1_PFembedded_trans1_tau132_pthad1_30had2_30_v1-5ef1c0fd428eb740081f19333520fdc8/USER/V5_B/PAT_CM... | [
"riccardo.manzoni@cern.ch"
] | riccardo.manzoni@cern.ch |
d5639a38d46c8ca185577e305802ad1d23d806ac | 5b62cd5c19ebc179b97104b46b714c876d1f4968 | /payments_configuration/payments_configuration.py | 7b187fab6fe6e1de2ff06f6bdf6802227b4b0b38 | [] | no_license | dgvicente/acme_payments | 0a457839736f10cb0c968aa73ecd85bea2ebd145 | 501c4b2656711745f4b526a2cc10a6bc20a0a84a | refs/heads/master | 2020-07-27T17:04:41.035655 | 2019-09-20T00:06:39 | 2019-09-20T00:06:39 | 209,165,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 836 | py | from .payments_configuration_entry import PaymentsConfigurationEntry
class PaymentsConfiguration:
def __init__(self, weekdays, weekends):
self.weekdays_config = [PaymentsConfigurationEntry(item) for item in weekdays if item] if weekdays else []
self.weekend_config = [PaymentsConfigurationEntry(it... | [
"dianagv@gmail.com"
] | dianagv@gmail.com |
60439f893682ea05faf93e8d2f99a32f19f70f81 | 05551338203763bad453a2264c5b6582d725ed3d | /MusicAnalyser/wsgi.py | dbc7c190ac92f348379d612961c9d6b364a84d37 | [] | no_license | ShivayaDevs/MusicAnalyser | 51e553c138ee5e05b9b9c8ec19e10e5594a6d05d | b86abceebb1c11e938af43747dca4512ecb00ca3 | refs/heads/master | 2021-01-22T18:23:31.125100 | 2017-03-17T19:05:33 | 2017-03-17T19:05:33 | 85,077,721 | 5 | 2 | null | 2017-03-17T06:19:51 | 2017-03-15T13:47:18 | Python | UTF-8 | Python | false | false | 404 | py | """
WSGI config for MusicAnalyser project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANG... | [
"verma.yash8@gmail.com"
] | verma.yash8@gmail.com |
314ea5491f976610601bc93def87970f19fa13e6 | 33e006f5ae711d44d796a0e3ca384caefe1ec299 | /Wprowadzenie do algorytmow - ksiazka/rozdzial 2/2.1-2.py | 1919575e88d14a8d51ece544f7292e484a60b267 | [] | no_license | Cozoob/Algorithms_and_data_structures | 959b188f8cef3e6b7b1fd2a6c45a5e169d8f41fe | f786a397964f71e2938d9fd6268d3428e3ed7992 | refs/heads/main | 2023-08-05T02:23:43.565651 | 2021-09-17T10:52:14 | 2021-09-17T10:52:14 | 407,532,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | # Zmodyfikuj INSERTION_SORT tak zeby sortowala w porzadku nierosnacym
def insertion_sort(A):
for j in range(1, len(A)):
key = A[j]
# Wstaw A[j] w posortowany ciąg A[1,...,j-1]
i = j - 1
while i >= 0 and A[i] < key:
A[i + 1] = A[i]
i -= 1
A[i +... | [
"kozubmarcin10@gmail.com"
] | kozubmarcin10@gmail.com |
c62c4a9af1d76050479aa8b61113b12aa938d298 | 9187131d6a06e4a2cd56a0eb6d20604b38ea2359 | /apitest/tp/mail/test_case/page_object/mail_page.py | fd5073f7bbd54dfe0c0487251a04d2b334badf62 | [] | no_license | hikaruwin/hikaru | 0dc75843047c01023327854798fbf4999e710f57 | 1675192d4584609bb1f678c2e5a82c06915ab25e | refs/heads/master | 2020-03-27T23:33:14.958007 | 2018-09-04T10:29:40 | 2018-09-04T10:29:40 | 147,327,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | # coding: utf-8
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.by import By
from time import sleep
from .base import Base
class MailPage(Base):
url = '/'
login_success_user_loc = (By.ID, 'spnUid')
def login_success_user(self):
return self.find_elem... | [
"your email"
] | your email |
b07f99a0807b1964ad81d8b566bd461031dd078d | 48832d27da16256ee62c364add45f21b968ee669 | /res/scripts/client/account_helpers/customfilescache.py | 76a90b18fe88817f3ac8604b079be904324562d0 | [] | no_license | webiumsk/WOT-0.9.15.1 | 0752d5bbd7c6fafdd7f714af939ae7bcf654faf7 | 17ca3550fef25e430534d079876a14fbbcccb9b4 | refs/heads/master | 2021-01-20T18:24:10.349144 | 2016-08-04T18:08:34 | 2016-08-04T18:08:34 | 64,955,694 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 18,439 | py | # 2016.08.04 19:47:56 Střední Evropa (letní čas)
# Embedded file name: scripts/client/account_helpers/CustomFilesCache.py
import os
import time
import base64
import urllib2
import cPickle
import BigWorld
import binascii
import threading
import BigWorld
from debug_utils import *
from functools import partial
from helper... | [
"info@webium.sk"
] | info@webium.sk |
c90af5a8f09cfde61ce93409ebaadce92a1d8139 | fc1e1a4a346f9a6b7ea7069f42b8ac9bf503a7f5 | /bin/module/plot_distro.py | 3f73629b79311fb097539a81d982176da88d9548 | [] | no_license | BiCroLab/CUTseq | 6e1c165f83f3e30d8fad266caebf92b4836db0ff | 065c861a43a2380db92558f7ce7ab9c637f9025f | refs/heads/master | 2020-08-01T15:17:38.225831 | 2019-09-26T07:53:33 | 2019-09-26T07:53:33 | 211,031,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
import sys
data1 = np.loadtxt(str(sys.argv[1]))
data2 = np.loadtxt(str(sys.argv[2]))
name = sys.argv[3]
fig, ax = plt.subplots()
sns.distplot(data1,ax=ax,label='all genes')
sns.distplot(data2,ax=ax,label='PAM50')
#ax.set_xlim(0,1000)
ax.legend(... | [
"silvano.garnerone@gmail.com"
] | silvano.garnerone@gmail.com |
300105105b624689dfe8a2adcac101be4fe25fd7 | 149489e12a2f209e33a82684518785540b3508b8 | /configs/dram/low_power_sweep.py | 9adfcaff0c0faa9eb1e0e129a7edc6b1e1f8ad9c | [
"BSD-3-Clause",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.0-or-later",
"MIT"
] | permissive | FPSG-UIUC/SPT | 8dac03b54e42df285d774bfc2c08be3123ea0dbb | 34ec7b2911078e36284fa0d35ae1b5551b48ba1b | refs/heads/master | 2023-04-15T07:11:36.092504 | 2022-05-28T21:34:30 | 2022-05-28T21:34:30 | 405,761,413 | 4 | 1 | BSD-3-Clause | 2023-04-11T11:44:49 | 2021-09-12T21:54:08 | C++ | UTF-8 | Python | false | false | 10,445 | py | # Copyright (c) 2014-2015, 2017 ARM Limited
# All rights reserved.
#
# The license below extends only to copyright in the software and shall
# not be construed as granting a license to any other intellectual
# property including but not limited to intellectual property relating
# to a hardware implementation of the fun... | [
"rutvikc2@midgar.cs.illinois.edu"
] | rutvikc2@midgar.cs.illinois.edu |
d11295c900433e9132c3b111d7674e2125be180e | c8a0a370e3bdba7a159911ef9bee0c2bf9401dc7 | /Python Offer/10.Beautiful_of_Programming/02.Chapter2/2.4.The_Number_of_1.py | 05a9528cd5d2ffcdc0c6e24ac5d641a4df972004 | [] | no_license | ht-dep/Algorithms-by-Python | c47d08c27b3e8cb8b9f3f5ebd9c50f6b099281b5 | 5c5ed701944f6b5ebed1f933d65cc8c31ec42245 | refs/heads/master | 2020-03-06T23:43:10.988589 | 2018-01-21T14:54:20 | 2018-01-21T14:54:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | # coding:utf-8
'''
2.4 1的数目
给定一个十进制正整数N,写下从1开始,到N的所有整数,然后计算其中出现1的个数
'''
def Count1(n):
return 0
if __name__ == '__main__':
n = 12839
print Count1(n)
| [
"1098918523@qq.com"
] | 1098918523@qq.com |
8fa25a444983f0afff5bd748f6d52e39bd7b29c8 | a5ac4d7858049bd4923a118689d9888f9d632ac0 | /python-examples/search.py | d776de1a0a786bf74a3d830d81553204a6d35c0a | [] | no_license | ssanupam24/Practice-Code | fd1e7c962c0b6ba19cb56cd8b21723936d000008 | 0cec9fca9774af4ee1731a338324ea1958012f75 | refs/heads/master | 2021-10-18T11:27:53.828012 | 2021-10-03T07:59:28 | 2021-10-03T07:59:28 | 19,810,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,354 | py | # If on Python 2.X
from __future__ import print_function
import pysolr
# Setup a Solr instance. The timeout is optional.
solr = pysolr.Solr('http://localhost:8983/solr/', timeout=10)
# How you'd index data.
'''
solr.add([
{
"id": "C:",
"title": "anupam",
"category": "0\C:"
},
... | [
"ssanupam24@gmail.com"
] | ssanupam24@gmail.com |
7ed6fd5365fefc1a4f1ac5a00784755f8803be15 | 4f244db97ebcefd61e06400ab7983a93291dab0f | /fspages/template/loaders/filesystem.py | 443a0c0fe49d465b7b5bd20ed96c04b713fc7288 | [] | no_license | vldmit/django-fspages | 40bbb85f50263c117cab2023e18677b9c6646be4 | 095367599e08dbfa2b8652454a15b1a2acabff8d | refs/heads/master | 2016-09-05T23:12:14.661776 | 2013-06-19T07:38:12 | 2013-06-19T07:38:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,629 | py | from django.template.loaders.filesystem import Loader as FileSystemLoader
from django.conf import settings
from django.utils._os import safe_join
from django.utils.translation import get_language
class I18NLoader(FileSystemLoader):
"""
When searching for template, prepeng
"""
is_usable = True
... | [
"vldmit@gmail.com"
] | vldmit@gmail.com |
1167d356ec72345b3d1ca24a149967a04bd26d5a | 2295989763da2fbf76d313fc5adfcb36a4e2edea | /1464_leetcode.py | 5e941997fd53802d9c7314a821c9acad35b40b7e | [] | no_license | Nafisa-Tasneem/Problem_solving_python | e342f07f7f1e4928cb28e89b31ce26ad6ced5690 | 35669815c8c6ab4b7775ad2c3d3fe01e2c79ab01 | refs/heads/master | 2023-01-30T22:03:15.026656 | 2020-12-13T07:05:01 | 2020-12-13T07:05:01 | 294,961,092 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | # 1464. Maximum Product of Two Elements in an Array
nums = [3,4,5,2]
arr2 = []
for i in range(len(nums)):
for j in range(len(nums)):
if j!= i:
arr2.append((nums[i]-1) * (nums[j]-1))
print(max(arr2)) | [
"nafisatasneem1101@gmail.com"
] | nafisatasneem1101@gmail.com |
fcb046483bad9e61389f3e02826eca935ceff488 | 8f27c4a4c428d3ad4687a1a3b8a905c904ec93cd | /product/models.py | efda70dc77a7ca551f28ee15003aa728bf3c21f8 | [] | no_license | absalam48/sifdeal | c6d85533041b34462711f8adf39d0cfb4a993749 | 9542d0afd7a0bc64b2f6e03707aae81906d98fb5 | refs/heads/master | 2020-04-09T11:39:39.881595 | 2018-12-04T08:22:56 | 2018-12-04T08:22:56 | 160,318,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,390 | py | import datetime
from django.contrib.auth.models import User
from django.db import models
from django.utils import timezone
class UserProfileInfo(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE)
#additional
name = models.CharField(max_length=30, default="")
addre... | [
"noreply@github.com"
] | absalam48.noreply@github.com |
65ce711038749d54964ebb890ad5b84986fd8cde | c9ce096f4aee437688aacf1d0757e87991200e0b | /crawlall.py | 0f1cf2f743ec025c517f4ee42266c204f9b95c1a | [] | no_license | rohithsai1904/NEWS-CRAWLER | aad4a31cc87e2e41413eb87f846577bf1648f01a | 9f66d91e811724d248b167100d193ec01dfd03df | refs/heads/main | 2023-05-29T05:59:07.752211 | 2021-06-18T12:04:31 | 2021-06-18T12:04:31 | 378,135,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 714 | py | import scrapy
from twisted.internet import reactor
from scrapy.utils.project import get_project_settings
from scrapy.crawler import CrawlerProcess
def start_sequentially(process: CrawlerProcess, crawlers: list):
deferred = process.crawl(crawlers[0])
if len(crawlers) > 1:
deferred.addCal... | [
"noreply@github.com"
] | rohithsai1904.noreply@github.com |
1c8bcdf2d99bd5630809fedcd85b30f4ca5af1d3 | b61b0a5333814779669320532233ee75327f039f | /xls_proc.py | 2b62ee064f9f7d001f18b164b612cead6498106d | [] | no_license | marine0131/attendance_calc | 75f6d387e336dfd7ff22fcde5bcb13c96a87c810 | e991f30ba7ff88474b2135315b12f360d52ee726 | refs/heads/master | 2020-03-26T07:52:31.226713 | 2018-08-14T08:37:25 | 2018-08-14T08:37:25 | 144,675,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,994 | py | #! /usr/bin/env python
import xlrd
import xlwt
import re
import datetime
import json
with open("config.txt", 'r') as f:
params = json.load(f)
FILE = params["FILE"]
MONTH = params['MONTH']
ON_WORK_TIME = params['ON_WORK_TIME']
LUNCH_TIME = params['LUNCH_TIME']
REST_TIME = params['REST_TIME']
AFTERNOON_WORK_TIME =... | [
"wanghj@woosiyuan.com"
] | wanghj@woosiyuan.com |
f9711376315cbcd8dd8294cc5623e86d72968337 | 5d402b4447f50ec51541d3aa2c6df7fd4f1eb9b0 | /grouper.py | 4b89284da6338af899e51b77ed2b2046e34916f8 | [] | no_license | calvinzpinson/hateabase | 6f9c98845731a779e415f5a33b44e295e9bd660a | 0731963b136f84863ab4830f10c156f8b490affc | refs/heads/master | 2021-01-13T15:34:49.675691 | 2016-12-20T05:04:08 | 2016-12-20T05:04:08 | 76,924,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 823 | py | def create_view(name, fields, tables):
statement = 'CREATE VIEW %s AS (\n' % (name)
statement += 'SELECT'
for field in fields:
statement += ' %s,' % (field)
statement += ' COUNT(*) AS NumIncidents, __IC__.TotalIncidents, __OC__.TotalOffenses\n'
statement += 'FROM'
for table in tables:
... | [
"kkawahara1028@gmail.com"
] | kkawahara1028@gmail.com |
580d3bab5161c2089c9b1c92b66b2465fd94ddb9 | 3e24611b7315b5ad588b2128570f1341b9c968e8 | /pacbiolib/thirdparty/pythonpkgs/scipy/scipy_0.9.0+pbi86/lib/python2.7/site-packages/scipy/linalg/interface_gen.py | aed22b2164e1399c612a6bd8fd85ad35866e808f | [
"BSD-2-Clause"
] | permissive | bioCKO/lpp_Script | dc327be88c7d12243e25557f7da68d963917aa90 | 0cb2eedb48d4afa25abc2ed7231eb1fdd9baecc2 | refs/heads/master | 2022-02-27T12:35:05.979231 | 2019-08-27T05:56:33 | 2019-08-27T05:56:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,791 | py | #! python
import os
import re
from distutils.dir_util import mkpath
def all_subroutines(interface_in):
# remove comments
comment_block_exp = re.compile(r'/\*(?:\s|.)*?\*/')
subroutine_exp = re.compile(r'subroutine (?:\s|.)*?end subroutine.*')
function_exp = re.compile(r'function (?:\s|.)*?end function... | [
"409511038@qq.com"
] | 409511038@qq.com |
92b815e600b230685891c67f8bba16474192a403 | 0100c2e410fe5cf9f16c2febc7a0dfa9e4e83b0b | /Ejercicio3.py | 65d402137faf52513dd2e8e16de3cd76278a2b1b | [] | no_license | henrymarinho90/helloworld | bdd47e1ab02ddea39577759400c94cb6b1411cd9 | 1d77e3f621a582b22770a803747279e558bb086f | refs/heads/master | 2022-11-16T15:52:07.996015 | 2022-11-04T03:08:22 | 2022-11-04T03:08:22 | 232,723,036 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 800 | py | #Funcion para Crear la matriz
def matrizKreator(n,m):
A=[]
for i in range(n):
A.append([])
for j in range(m):
A[i].append(int(input("Ingrese la duracion de llamada en segundos: ")))
return(A);
#Funcion para calcular el promedio de la matriz
def prom(A):
Agente=0
suma=0
... | [
"henrymarinho90@gmail.com"
] | henrymarinho90@gmail.com |
2959a6d7bfeb74dc537f99b5b38d991fb0b5e85c | 457ffac5060e203defd64b78a11eea5fa02e584e | /cart/tests/test_views.py | f3c9769cc2258ba75821921bf1b75be939706b21 | [
"MIT"
] | permissive | andreztz/tutorial-e-commerce-django | a722915824833f098a7a3728a0fff341348b05c5 | 47d7fd9ed8edb43e6a57ede0f2b29a349a1f2b7b | refs/heads/main | 2023-02-22T23:21:41.646560 | 2021-01-17T16:24:41 | 2021-01-17T16:24:41 | 330,708,842 | 0 | 1 | MIT | 2021-01-18T15:29:09 | 2021-01-18T15:29:08 | null | UTF-8 | Python | false | false | 1,892 | py | import pytest
from django.conf import settings
from django.urls import resolve, reverse
pytestmark = pytest.mark.django_db
class TestCartAddView:
def test_reverse_resolve(self, product):
assert (
reverse("cart:add", kwargs={"product_id": product.id})
== f"/cart/add/{product.id}/"
... | [
"fcgr.fcgr@gmail.com"
] | fcgr.fcgr@gmail.com |
013c1d369981d94c454a38a281f78ed4f54d4b91 | 5f86944bdf1b810a84c63adc6ed01bbb48d2c59a | /kubernetes/test/test_settings_api.py | e266034720dee9676cdc5fb197e1b837aaa3f470 | [
"Apache-2.0"
] | permissive | m4ttshaw/client-python | 384c721ba57b7ccc824d5eca25834d0288b211e2 | 4eac56a8b65d56eb23d738ceb90d3afb6dbd96c1 | refs/heads/master | 2021-01-13T06:05:51.564765 | 2017-06-21T08:31:03 | 2017-06-21T08:31:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 848 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.6.5
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
im... | [
"mehdy@google.com"
] | mehdy@google.com |
5fa1e7edecb16cfbd19a8080159912880e780b91 | b3d87379fdf36c97b3a32cdbeb969e2650c7af98 | /quadrun.py | 1c9a9a014d01bc11e8e198831b235addfcb3262d | [] | no_license | 2black0/quadrotor_python | d388653fa5c467fc6c80f8ce98bd67554fb737a1 | e3711a6afd6105aacbeb2c6bc652a6685be1a885 | refs/heads/master | 2020-05-22T20:40:41.434261 | 2019-05-13T23:59:30 | 2019-05-13T23:59:30 | 186,511,928 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | import quadvar as qv
import quadmodel as qm
import numpy as np
from array import *
# run from 0 to t_plot
while qv.t_plot[qv.counter-1] < max(qv.t_plot):
exec(open("quadmodel.py").read());
# plot the result
exec(open("quadplot.py").read()); | [
"noreply@github.com"
] | 2black0.noreply@github.com |
f76bce9bd3090f1feb6ae7eedc31e3c90dca24c6 | cb0a6ebffd3f2bbaffe4eb89644137ffa0392e06 | /gmbh/options.py | c833651ac0826532f3c63be0c646d05edde28d55 | [] | no_license | gmbh-micro/gmbh-python | 24a6817f5cf8eb3232d5e84f2c459ae5d44230b8 | 1ff4cda0207776c725f7587dc006bed443729096 | refs/heads/master | 2020-04-16T08:26:39.902489 | 2019-04-23T15:27:53 | 2019-04-23T15:27:53 | 165,425,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,203 | py | class runtime():
def __init__(self,blocking=True,verbose=True):
self.blocking = blocking
self.verbose = verbose
def set_blocking(self, v):
self.bocking = v
def set_verbose(self, v):
self.verbose = v
class service():
def __init__(self, name="", aliases=[], pg=["universal"... | [
"abedick@ku.edu"
] | abedick@ku.edu |
efa90fcef860a3ef52b4c5a68e10fff81084c425 | b5bc72861644c274b75e42374201ea8cdb84c1a2 | /class_examples/class_college.py | 23c904a627487340213fb1578c4134909be7e295 | [] | no_license | Aadhya-Solution/PythonExample | 737c3ddc9ad5e3d0cde24ac9f366ce2de2fa6cfe | 34bc04570182130ebc13b6c99997c81834ad5f53 | refs/heads/master | 2022-12-18T09:54:30.857011 | 2020-08-24T13:53:59 | 2020-08-24T13:53:59 | 288,183,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | import class_student
ps=class_student.Student('Shiva',20)
print ps.name
print ps.age
| [
"shashikant.pattar@gmail.com"
] | shashikant.pattar@gmail.com |
71a8a66e76ca142acb18fe646e73586520d65752 | f53a307ff2cc14cebd76076384705e73e27ecbc1 | /visel.py | 624879eae93a60d6d1f1610cc279324815f11582 | [] | no_license | MrIvanushka/PaperGames | 49445e0223e95e004b1e46cc9ab409062b4e03a6 | b96424a547abb42568c6309979f4418141120d87 | refs/heads/master | 2023-04-26T08:36:09.229748 | 2021-05-12T14:34:16 | 2021-05-12T14:34:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,157 | py | from tkinter import *
import random
root = Tk()
root.title("Виселица")
canvas = Canvas(root, width=600, height=600)
canvas.pack()
def but():
y = 0
while y < 600:
x = 0
while x < 600:
canvas.create_rectangle(x, y, x + 33, y + 33, fill="white", outline="blue")
x = x + 33... | [
"77945441@mil.ru"
] | 77945441@mil.ru |
822de060466784748690413911f1bd522c7cfdc4 | ebb0f88adedf4d5202185b27fd2b8cecc1e59ebb | /pplot/figure.py | 5f79f1facf388ef88e8cc178d7e5fd4a5acc9fd6 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | pmacosta/pplot | c528de8a6fcec83784ed92b84979a4d738444f57 | ac2e40aa1fc22a3c2aa39d894bc71c29ba33058a | refs/heads/master | 2020-12-31T04:28:02.763633 | 2019-06-11T18:35:59 | 2019-06-11T18:35:59 | 58,674,101 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45,520 | py | """
Generate presentation-quality plots.
[[[cog
import os, sys
if sys.hexversion < 0x03000000:
import __builtin__
else:
import builtins as __builtin__
sys.path.append(os.environ['TRACER_DIR'])
import trace_ex_plot_figure
exobj_plot = trace_ex_plot_figure.trace_module(no_print=True)
]]]
[[[end]]]
"""
# figure.p... | [
"pmasdev@gmail.com"
] | pmasdev@gmail.com |
f68070e7227f2546fd83426b40fe7fd9c8ca6d50 | cdd20f17a5d9682d678ba599e65e392557444647 | /FrontA.py | d83a63ae5bf7d64df7ed3b37c774dc6aa62a1fae | [] | no_license | VaibhaviKhachane/Expense-Tracker | c81e63e4f8afe0470f7848e003b7053c09063867 | c344f086db72378146023eb255e57f2f0e496bf6 | refs/heads/main | 2023-05-30T17:42:58.378471 | 2021-06-22T12:48:30 | 2021-06-22T12:48:30 | 379,114,380 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,927 | py | from tkinter import *
from PIL import ImageTk,Image
from tkinter import ttk
from tkinter import messagebox
import sqlite3
import os
root = Tk()
root.geometry('1100x600')
root.title('EXPENSE TRACKER')
root.iconphoto(False, PhotoImage(file='icon1.1.png'))
root.resizable(0, 0) # Disable resizing the GUI
frame1 = ... | [
"noreply@github.com"
] | VaibhaviKhachane.noreply@github.com |
6a5f99fc2d8fd1c5ad7da2f097eecb0cf51bf7cf | 0ba2c3776618b5b8b76f4a23f21e9c6ad3f6e2e1 | /afterclass/homework1/007_1.py | 98e2ac33076dbf3ab283e7a973e4e7a0a135d6f8 | [] | no_license | WangDongDong1234/python_code | 6dc5ce8210b1dcad7d57320c9e1946fd4b3fe302 | 6a785306a92d328a0d1427446ca773a9803d4cc0 | refs/heads/master | 2020-04-15T12:35:03.427589 | 2019-09-16T15:38:25 | 2019-09-16T15:38:25 | 164,681,323 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,826 | py | #list记录以i为分段点的最长增长子序列的个数
#返回最大分段点的坐标
def Max(list,n):
max=0
index=0;
for i in range(0,n):
if list[i]>max:
max=list[i]
index=i
return index;
def LIS(array,len,list,list_increase):
# list记录以i为分段点的最长增长子序列的个数
for i in range(0,len):
list.append(1)
list... | [
"827495316@qq.com"
] | 827495316@qq.com |
3ab23aa63bebb39044505bb27c51bb69d7b9cd4d | f4e4b2faa2153d3eef75f8467a72b037f9172dd8 | /app/src/API/serializers.py | e6aab2de8eab2f470c9f7b99725adbcb62347caf | [] | no_license | Titorat/challenge | 6e7a77186cc6db68729a3b15861703b23a71ac29 | d9882c4f8624f77e8fb05e6866c43f0dcd21e515 | refs/heads/master | 2022-12-16T02:49:45.713324 | 2020-09-14T20:41:41 | 2020-09-14T20:41:41 | 295,488,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | from rest_framework import serializers
from API.models import CoffeMachine,CoffePod
class CoffeMachineSerializer(serializers.ModelSerializer):
class Meta:
model = CoffeMachine
fields = ('title',
'model_type',
'product_type',
'water_line_co... | [
"abdallahamr5@gmail.com"
] | abdallahamr5@gmail.com |
3ec7711255fb3ba9e59129e7511c59d7fd7e89af | f12ceaf496a7b7f5fbb7dcc25f64ada1f2c9930c | /_03_print_and_popups/Popups.py | f9e5dc0925924b11e7b20061ec4ad1df1e4e453d | [] | no_license | league-python-student/level0-module0-nanonate32 | 3486cd854995ae7eb28b1bac7ab0048025269eef | fec090ce54c17e57d310ce68fcdd03152aabebc4 | refs/heads/master | 2022-11-16T12:01:58.311793 | 2020-07-17T21:55:39 | 2020-07-17T21:55:39 | 279,412,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | from tkinter import messagebox, simpledialog, Tk
window = Tk()
window.withdraw()
print('hello from the print method')
messagebox.showinfo('Message Box', "Hello from the message box")
food = simpledialog.askstring(None, prompt = 'What is your favorite food')
messagebox.showerror(None, "Wow! I also love " + food + '.')
... | [
"root@3d62b78524d3"
] | root@3d62b78524d3 |
1d2541191e621eea166d59f4e565d1ffd53ef94e | fcf4287f91bac1ecf2f9c1c007f8529fe8fa040b | /Rentify/rentify/core/.~c9_invoke_ez9l69.py | 0e241685e7e176af0581138412d43637cc709e90 | [] | no_license | citi-onboarding/rentify | 7ca96126f6b6eac871cdfed5a965581b35222cef | f98fb79f666f92a4dc9b51a6032bf742f12285e5 | refs/heads/master | 2021-08-30T07:04:45.364733 | 2017-12-16T15:56:16 | 2017-12-16T15:56:16 | 112,296,266 | 0 | 0 | null | 2017-12-14T14:51:46 | 2017-11-28T06:35:44 | Python | UTF-8 | Python | false | false | 2,729 | py | from django.shortcuts import render, redirect
from django.contrib.auth import login, authenticate
from django.contrib.auth.decorators import login_required
from django.contrib.auth.forms import UserCreationForm, AuthenticationForm
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from .models imp... | [
"evfl@cin.ufpe.br"
] | evfl@cin.ufpe.br |
301e7d432329625c4c6abc24cb4ee6d962f715b5 | 311ed8e1b7d76d2dac128f853d54fd0890c6f1dc | /ee.py | 1b22dccdc0643cd5f7564acb87cb12dab25b15f8 | [] | no_license | alok1994/Python_Programs- | 445ac47ffbb4bb705ece697eca5b27bb99cc2ddc | 5da1c80f6d4e1469efdf8f849431bd8babfdc109 | refs/heads/master | 2022-06-05T11:01:23.835417 | 2022-05-13T12:54:53 | 2022-05-13T12:54:53 | 88,402,493 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | data_list=[1,3,2,9,4,6,7,8]
new_list=[]
while data_list:
minimum = data_list[0]
for x in data_list:
if x < minimum:
minimum = x
new_list.append(minimum)
data_list.remove(minimum)
print new_list
| [
"adeep@infoblox.com"
] | adeep@infoblox.com |
8e898266becce9d780c6884cb25e12a18f5f26ab | 79b35425287245a7beb3bc4b6d287b6e958119da | /My first model.py | 472ab8cef07d39699161015eb672a37fa4ee2a57 | [] | no_license | Jashshor/Python_AI_Model-first-tested | 9ab4fba38bccab90816d32a20b60336300ce9763 | 84387aec4a3254cf63ea44ba10a18c4d8ad6dbad | refs/heads/master | 2022-11-11T11:32:41.245704 | 2020-06-26T07:45:17 | 2020-06-26T07:45:17 | 275,100,751 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,703 | py | import pandas
from sklearn.metrics import accuracy_score
from sklearn.metrics import precision_score
from sklearn.metrics import recall_score
from sklearn.preprocessing import LabelEncoder
from sklearn.model_selection import train_test_split
from sklearn.tree import DecisionTreeClassifier
from sklearn.neighbors ... | [
"3099681787@qq.com"
] | 3099681787@qq.com |
6e3c18adb7d7ad77bb6e1bcc4a56f27e7e828f9f | feae71cec59a1ddff977fe20522f0e0cb65d3210 | /train.py | ee1409ef2d0c7224a0fac0df8a0e74d54da80a56 | [] | no_license | NadineMoustafa/sentiment-analysis-chatbot | 1a99b915a4654526e0441a5f49b923531dda662b | 3fe4280b570996c219ab2c9df619b8bf1dc0e642 | refs/heads/main | 2023-06-27T18:15:02.017027 | 2021-08-02T12:24:07 | 2021-08-02T12:24:07 | 391,936,958 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,627 | py | from utilities.load_data import load_data
from model.model import NeuralNet
from model.dataset_model import ChatDataSet
import torch
import torch.nn as nn
from torch.utils.data import DataLoader
X_train, y_train ,all_words, tags = load_data() #Loading the data
#Hyper parameters
batch_size = 64
hidden_size = 8
input... | [
"nadine.moustafaa@gmail.com"
] | nadine.moustafaa@gmail.com |
199651930292784cddbb1dfed250ccfcd7ba621d | d38c54d3a5c8bfe741d2b02e702599d75f7de82d | /lab16/mininet/tcp_topo_myH1Server-myH2Client-BIGFILE.py | bf86e792478c8810e35f0c46f0229d9cbe360c50 | [] | no_license | yuhengy/NetworkLab | 2845eef8ec32fe00d0397b4bc313e2a171a40022 | 605ef1df2b529cf9a7046149bbb64def3947bb17 | refs/heads/master | 2023-02-24T17:36:59.923853 | 2021-01-28T11:12:40 | 2021-01-28T11:12:40 | 296,386,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,948 | py | #!/usr/bin/python
import time
import os
import sys
import glob
from mininet.topo import Topo
from mininet.net import Mininet
from mininet.link import TCLink
from mininet.cli import CLI
script_deps = [ 'ethtool', 'arptables', 'iptables' ]
def check_scripts():
dir = os.path.abspath(os.path.dirname(sys.argv[0]))
... | [
"yangyuheng17@mails.ucas.ac.cn"
] | yangyuheng17@mails.ucas.ac.cn |
35b823ee571526aabe931d1cf528fedc446c7de5 | 55e9f3b00fc2e488597bab5225ed321c86efbd4b | /sdk/test/test_frequency_response.py | 8e97d49e14aa132ed3efe4ee80569106b6d29d8d | [
"MIT"
] | permissive | bs-yapily/yapily-sdk-python | ad9d04c28f3d744830734c3444c1cef8215206fd | 0bba45e351b674eb655425a51190f539c4e9896f | refs/heads/master | 2020-08-26T17:18:53.156429 | 2019-10-22T11:01:16 | 2019-10-22T11:01:16 | 217,085,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 965 | py | # coding: utf-8
"""
Yapily API
To access endpoints that require authentication, use your application key and secret created in the Dashboard (https://dashboard.yapily.com) # noqa: E501
OpenAPI spec version: 0.0.155
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __fu... | [
"systems@yapily.com"
] | systems@yapily.com |
f924b1888a2653f0f5772334dba26dee8cade215 | 1013f2dcb64aa0ba3fb31b3e1c977e29d7ada36c | /env/bin/easy_install | ec2c06f53c26541d1ab14a3988a976a61d1f43e2 | [] | no_license | choww/dev-notebook | ef15a03410b6b03e0cc3dad7f7c2267fdc576ad5 | c1a230b162c6724e87907568df5b2b2f4c84fece | refs/heads/main | 2022-09-27T01:36:52.224469 | 2022-05-04T23:26:56 | 2022-05-05T23:48:27 | 108,310,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | #!/home/car/Desktop/dev-notebook/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"carmenn.choww@gmail.com"
] | carmenn.choww@gmail.com | |
5283860926b860c7a1b9143ddbcc38c695bb2efb | 95b60a3f7db73ac8a6da2fc7385841067a2e6ea7 | /app/cache/RedisCache.py | 326b2b58bc6e9d924cab301bf43412a539b456f1 | [
"MIT"
] | permissive | coder-yuan/vue-template-api | 6a8ecfd46916705de56750b37fae3f615c7df5f5 | 135f13d7c32b4a2830366fc0b79a1e2a1eda6923 | refs/heads/master | 2022-05-27T05:15:29.919821 | 2019-12-06T10:59:45 | 2019-12-06T10:59:45 | 226,309,030 | 0 | 0 | MIT | 2022-05-25T03:41:22 | 2019-12-06T10:56:18 | Python | UTF-8 | Python | false | false | 352 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Project : icode_flask_be
# @Package :
# @Author : jackeroo
# @Time : 2019/11/21 上午6:47
# @File : RedisCache.py
# @Contact :
# @Software : PyCharm
# @Desc :
from flask_caching import Cache
from app.config.Cache.RedisCache import RedisCache
cache... | [
"1132524215@qq.com"
] | 1132524215@qq.com |
4c007f5806ec2a7c762e595965c48fb652ce09a3 | ddac406bc698ea2091900e9582c4d34e43be9fbc | /implementation_files/cosim_pandapipes_pandapower/simulators/el_network/mosaik_wrapper.py | 0e10ac9c5e16cd288437fccdbf810cbbf668104f | [
"BSD-3-Clause"
] | permissive | ERIGrid2/benchmark-model-multi-energy-networks | fb026934712c192a2614b7efe2dda127fbee5554 | ba830ddf29e073cc97fe63e7d25f2ef78e6005ef | refs/heads/main | 2023-04-18T08:18:14.219997 | 2022-08-04T12:00:29 | 2022-08-04T12:00:29 | 429,090,968 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 8,455 | py | # Copyright (c) 2021 by ERIGrid 2.0. All rights reserved.
# Use of this source code is governed by LGPL-2.1.
'''
This is a modified version of the Mosaik Pandapower module.
'''
import logging
import os
import mosaik_api
from .simulator import Pandapower, make_eid
logger = logging.getLogger('pandapower.mosaik')
META... | [
"edmund.widl@ait.ac.at"
] | edmund.widl@ait.ac.at |
0e38e1b4087e243ebf15c7bc144b19c90d1695f5 | e07bc656a4680fe5d22f6e8a11c34740e4798ab4 | /spotifypackage/apidata_genreartist.py | 56a655353c2480ec78b52cd50ddaadc623508a22 | [] | no_license | mrethana/spotify_mod_1 | ef5762fed3a36081d0c2927ef259985c4f9c5caa | 692cc3ad5c47b03093b096311f113e46433e4bab | refs/heads/master | 2020-03-23T11:18:55.641329 | 2018-10-15T01:14:35 | 2018-10-15T01:14:35 | 141,496,694 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,343 | py | from config import *
from models import *
import pdb
#to add: check artist genre using artist_clean and add them to that respective list in config
#this will update the genre_artist
#function to format all artist id's properly for API
def url_of_artist_ids():
x=[id for id in dict_of_ids.values()]
merge = '%2C... | [
"mark.rethana@gmail.com"
] | mark.rethana@gmail.com |
2eb15e7a7809dccc58b91240a1a0bdbde8f2ea7a | 162e0e4791188bd44f6ce5225ff3b1f0b1aa0b0d | /examples/linear_model/plot_logistic_l1_l2_sparsity.py | afccba025af1f2bb50d6e3b57e30535232120bfa | [] | no_license | testsleeekGithub/trex | 2af21fa95f9372f153dbe91941a93937480f4e2f | 9d27a9b44d814ede3996a37365d63814214260ae | refs/heads/master | 2020-08-01T11:47:43.926750 | 2019-11-06T06:47:19 | 2019-11-06T06:47:19 | 210,987,245 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,328 | py | """
==============================================
L1 Penalty and Sparsity in Logistic Regression
==============================================
Comparison of the sparsity (percentage of zero coefficients) of solutions when
L1, L2 and Elastic-Net penalty are used for different values of C. We can see
that large values... | [
"shkolanovaya@gmail.com"
] | shkolanovaya@gmail.com |
bc75f35366ee0d45c9a331c84ed37f246e4567f9 | 19795ccc19f2de96f05855c65bb830b593aae7c2 | /piglatin.py | f34b583ba374a57ed0b1d8aa822cfbd944f18cac | [] | no_license | champagnepappi/python_kickstart | 6a5c746f2f112c24db6f846cba71a1d4ab4346d1 | 6d69af5c1aca46039086be43aa95fa0f1933a85d | refs/heads/master | 2021-05-15T15:28:02.828328 | 2018-11-21T18:25:47 | 2018-11-21T18:25:47 | 107,372,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | pyg = 'ay'
print "Welcome to Pig Latin Translator"
original = raw_input("Enter a word:")
if len(original) > 0 and original.isalpha():
word = original.lower()
first = word[0]
new_word = word + first + pyg
new_word = new_word[1:len(new_word)]
print "Original word is: "+ original
print "The new ... | [
"kevinochieng548@gmail.com"
] | kevinochieng548@gmail.com |
54eb14a012555c0ee5a15f3eb849bc2a25af597b | c137c1308bc62954e40e20e80eaa36e75a6766ef | /days/38/len-impl-py/solution.py | 1b2bc961874dfb7f57b805d1639e5dd39e9d2a31 | [] | no_license | shaversj/100-days-of-code-r2 | a7a45c07635fac52d1e506522cc18439a7e37da8 | 50dec098a60231eb4ac6972beb0adfeded215e10 | refs/heads/master | 2023-03-04T19:57:23.147768 | 2021-02-14T14:36:15 | 2021-02-14T14:36:15 | 259,045,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | from typing import List
class LenCustom:
@staticmethod
def find_length(string: str):
count = 0
for char in string:
count += 1
return count
print(LenCustom.find_length("test"))
print(LenCustom.find_length([1, 2, 3, 4])) | [
"shaversj@gmail.com"
] | shaversj@gmail.com |
2a6d632308a3f0c4c3ea95d3be11ae0d38c3de5b | 5de1aaa1eb3f5baa012a4f6c26460466952a2465 | /Arkanoid.py | 816d7e2c207578d0e68cbe4727706ef2fe20b119 | [] | no_license | Matth900/Arcade_Games | 765a32db279b30d1dda779072045c6e5c21a9e64 | 646b1625a3de23457b239481b6780fe672745aa9 | refs/heads/master | 2021-01-19T22:32:58.939092 | 2015-04-18T15:51:56 | 2015-04-18T15:51:56 | 32,549,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,802 | py | # FIXING...Not working
import simplegui
import random
# initialize globals - pos and vel encode vertical info fohr paddles
WIDTH = 600
HEIGHT = 400
BALL_RADIUS = 20
PAD_WIDTH = 15
PAD_HEIGHT = 80
HALF_PAD_WIDTH = PAD_WIDTH / 2
HALF_PAD_HEIGHT = PAD_HEIGHT / 2
brick = list(range(50)) # We're assuming the grid o... | [
"1404268@studbocconi.it"
] | 1404268@studbocconi.it |
d8417c8ca8acec6cecbf368d3b3ad51f650efd6b | 475364e7eebdff89e2c78a07f84b098cfe7a445f | /mooc_algorithms/graph.py | 05398f2af02666d52aa02a900dd4c8e588e8ea96 | [] | no_license | ashishsubedi/DSA | 6f37d25cee857fd19faa7d24f0370bd222844381 | 9b87f88c6d9d131db4920ef0bfc6fa9d571908be | refs/heads/master | 2021-07-12T11:44:31.166006 | 2020-06-08T15:47:02 | 2020-06-08T15:47:02 | 158,732,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,313 | py | class Graph:
def __init__(self):
self.vertices = {}
self.routingTable = {}
self.MST = None
def addVertices(self, vertices, e=[]):
'''
Add array of vertices. If e is given, all vertices will be initialzed with e
@param vertices: List of all vertices
@param... | [
"ashishsubedi10@outlook.com"
] | ashishsubedi10@outlook.com |
fcefeb835a401bd22559b96a215199270866a0b0 | 365bedfb999e9864b949d211cbb991a519fe48ab | /images/MNIST_loader.py | 72d870d182be4edf49d15dd60a2bcef8fa7457a6 | [] | no_license | levijpuckett/handwritten-digits | 9797533281ce456d5699639643496a7e76c0fd3f | f9ecb18ffb9424f96dcd85bb7aeaaed305c04fe8 | refs/heads/master | 2020-04-17T06:23:31.944587 | 2019-01-18T02:01:09 | 2019-01-18T02:01:09 | 166,322,980 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,370 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Mar 8 17:32:53 2018
@author: levipuckett
"""
import numpy as np
import os.path
labelsPath = 'imagestrain-labels.idx1-ubyte'
imagesPath = 'train-images.idx3-ubyte'
def from_bytes(bytez):
return int.from_bytes(bytez, byteorder='big', signed=False)... | [
"noreply@github.com"
] | levijpuckett.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.