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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fa791cbb653d2472098d0a3b028680e2bc9b6414 | 61432a6d3b25e5b3142fe1f154acf5764bc2d596 | /custom_report/controllers/controllers.py | 0d654793e8486cc3dde196ee71832650723dcae7 | [] | no_license | halltech-ci/tfc_agro | 8c2c7911901e8c7bcf548fb05ca8f7891ab4ef51 | a737dfdccfca51136cb01894a00f21f5365a771a | refs/heads/master_1 | 2020-12-22T08:59:40.507801 | 2020-08-17T21:20:18 | 2020-08-17T21:20:18 | 236,734,216 | 0 | 3 | null | 2020-05-09T23:19:24 | 2020-01-28T12:50:00 | Python | UTF-8 | Python | false | false | 788 | py | # -*- coding: utf-8 -*-
from odoo import http
# class CustomReport(http.Controller):
# @http.route('/custom_report/custom_report/', auth='public')
# def index(self, **kw):
# return "Hello, world"
# @http.route('/custom_report/custom_report/objects/', auth='public')
# def list(self, **kw):
# ... | [
"maurice.atche@halltech-africa.com"
] | maurice.atche@halltech-africa.com |
8976b9d0a19b96ac46f5c6b8646da091f81333ad | 4ddcec92fd322d2ecd89aaf323a59de5b628dc7d | /main.py | ceed23be1d12732750ed64d4d668d38383d8bacf | [] | no_license | ldev/ldevirc | cbf63a16df7f8417fa4a32597ef10153ef1195b5 | 776ab1732027c98be3c668b07e37b20bbfb20517 | refs/heads/master | 2016-09-11T02:09:02.500477 | 2014-02-19T09:12:09 | 2014-02-19T09:12:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,502 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# This is a python bot written by Jonas Lindstad (LDEV)
# You are free to use this code, which is licensed under the "WTFPL license".
#
# ---------------------------------------------------------------------
#
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
# ... | [
"jonaslindstad@gmail.com"
] | jonaslindstad@gmail.com |
f8b32217c9daae58faab52a87b96758125de8793 | 4fe52c6f01afb05ac787a361a239466ceac69964 | /pyjournal2/build_util.py | 9acc2f6977346f32e542ec3806689de1074d6201 | [
"BSD-3-Clause"
] | permissive | cmsquared/pyjournal2 | 85beec6e3a0423d0ee873d189c3a879dd9a7db7c | cfa67529033c5fd7bcd5c60b87c8122ef8c22425 | refs/heads/master | 2020-04-03T18:30:15.119923 | 2018-10-31T00:41:07 | 2018-10-31T00:41:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,934 | py | """This module controls building the journal from the entry sources"""
import os
import webbrowser
import pyjournal2.shell_util as shell_util
def get_source_dir(defs):
"""return the directory where we put the sources"""
return "{}/journal-{}/source/".format(defs["working_path"], defs["nickname"])
def get_to... | [
"michael.zingale@stonybrook.edu"
] | michael.zingale@stonybrook.edu |
de0beb1610545ee78ac1dcc707d7fc40e2c1a0fb | 748bbab674d1a5ae6a59bfd4ac22efcb4355e82a | /Prog-II/Back_Front/back/modelo.py | 500e048c4dda6a3d2bb759c389dc9ab5b947b11b | [] | no_license | Lima001/Tecnico-IFC | 8819114a35080eb914a2d836a0accbf79d3268d8 | 771fa39dd6046a9d92860fbde70c10dcecd975a3 | refs/heads/master | 2021-02-07T01:31:04.929420 | 2020-06-24T02:09:38 | 2020-06-24T02:09:38 | 243,967,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | from peewee import *
arq = "dados.db"
db = SqliteDatabase(arq)
class BaseModel(Model):
class Meta:
database = db
class Cachorro(BaseModel):
nome = CharField()
idade = IntegerField()
raca = CharField()
if __name__ == "__main__":
db.connect()
db.create_tables([Cachorro])
dog1 = C... | [
"limaedugabriel@gmail.com"
] | limaedugabriel@gmail.com |
211b498888127f1226c08e00b409a8281cbe53d4 | 27953af4264bf68ccfeef3eac7b31f7b401e6345 | /DeepSwapPackages/image_augmentation.py | 89a78ad2727d943d4a586015e25a1e6d3bab158d | [] | no_license | rezabonyadi/deep_end_to_end_face_swap | ad0d931060fc51da0b99ffc51bffc69b1b62baa0 | 11fbb66c83e9fb41f22f56bad35e27fe8f8a3c42 | refs/heads/master | 2021-07-07T11:06:18.341839 | 2020-08-23T03:15:46 | 2020-08-23T03:15:46 | 174,415,611 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,642 | py | import cv2
import numpy
from DeepSwapPackages.umeyama import umeyama
# from skimage.transform import warp, AffineTransform
#
# def randRange(a, b):
# '''
# a utility functio to generate random float values in desired range
# '''
# return numpy.random.rand() * (b - a) + a
#
#
# def randomAffine(im, rot... | [
"Rezabny@gmail.com"
] | Rezabny@gmail.com |
3771885ffc07cb6353782e4ba2a5ce9c33480434 | d2af44cdecdf48f9edb052fdc29d406edb2ccfad | /utils/metrics.py | e82dd9cda80f23613143a4e8ab4e3d258bf361d2 | [] | no_license | zx3Leonoardo/3d-medical | e3122f9e1f4602add26f97d9c258c5ff63a5b54c | 9ec045fbbb0980679fb624db769cf096ed1ab8f8 | refs/heads/main | 2023-07-16T20:03:42.947066 | 2021-08-26T02:17:15 | 2021-08-26T02:17:15 | 390,895,389 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,717 | py | import torch.nn as nn
import torch.nn.functional as F
import torch
import numpy as np
class LossAverage(object):
def __init__(self) -> None:
self.reset()
def reset(self):
self.val = 0
self.avg = 0
self.sum = 0
self.count = 0
def update(self, val, n=1):
self... | [
"57-qinzixin@163.com"
] | 57-qinzixin@163.com |
735b63875c4d13122c07d03e6bcdc3db602a5dc5 | 0282d9b7f865b74b5c7e8db1980ffec9b41b1a74 | /virtual/bin/epylint | 4b3605e0ce3a1ab03838bf5caac28f8798ff50b4 | [
"MIT"
] | permissive | aluoch-sheila/GALLERY | 3599ded0220144cfdcac403652e89593f2dcd5b4 | 3a910dc272ce5c731d5780749daeecec66bf2313 | refs/heads/master | 2020-04-10T03:32:47.755612 | 2018-12-13T06:52:00 | 2018-12-13T06:52:00 | 160,773,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | #!/home/moringaschool/Django/my-gallery/virtual/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_epylint
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run_epylint())
| [
"aluochsheila1999@gmail.com"
] | aluochsheila1999@gmail.com | |
a1607a63fe213a683271e64ccc48df84cac8cdf2 | 1a7dee4f8328a6be57e867d4bb165d176b4c2e1a | /laplace_v2.py | 8d7f5ff176d3e1694a31d55bb2a41bceb8a77906 | [] | no_license | Atroxon/laplace | 9c2513ac16c6d0aa888e0ab6acdd1508303be334 | 26302cb2ca176e86bf7dbb32fbe93ce17fceba15 | refs/heads/main | 2023-01-14T08:42:16.242661 | 2020-11-10T23:30:06 | 2020-11-10T23:30:06 | 311,795,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,102 | py | import cv2 as cv
import matplotlib.pyplot as plt
import numpy as np
import copy
test_files = ['images/3.jpeg']
AVG_kernel = np.array([[1,1,1],[1,1,1],[1,1,1]])
L_kernel = np.array([[0,1,0],[1,-4,1],[0,1,0]])
E_kernel = np.array([[-1,-1,-1],[-1,8,-1],[-1,-1,-1]])
def main():
open_imgs = import_images(paths=test... | [
"danielsalinas.t@gmail.com"
] | danielsalinas.t@gmail.com |
a58b76fab4d8fa60abf11ac71cab242a7beccad6 | c5a1c95e9d8ce937f71caf8340cf11fe98e64f56 | /day9/problem5/[이재형] 하샤드 수.py | ff36e229a9d9bb46a7cac28263c8e782cc36fcf6 | [] | no_license | Boot-Camp-Coding-Test/Programmers | 963e5ceeaa331d99fbc7465f7b129bd68e96eae3 | 83a4b62ba2268a47859a6ce88ae1819bc96dcd85 | refs/heads/main | 2023-05-23T08:21:57.398594 | 2021-06-12T16:39:21 | 2021-06-12T16:39:21 | 366,589,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | def solution(x):
a = []
for i in range(len(str(x))):
a.append(int(str(x)[i]))
if x % sum(a) == 0:
return True
else :
return False
| [
"noreply@github.com"
] | noreply@github.com |
4aaf7f9daeeb93706d4bbb8c3bd8d49f690c0c93 | d9b3289354d8f75ae8dd9988a89b08596bd4cae9 | /pgadmin/pgadmin/browser/server_groups/servers/resource_groups/__init__.py | 336fe7d01d25a73d9bfd68a2da083098d2be10c2 | [] | no_license | DataCraft-AI/pgdevops | 8827ab8fb2f60d97a22c03317903b71a12a49611 | f489bfb22b5b17255f85517cb1443846133dc378 | refs/heads/master | 2023-02-10T05:44:00.117387 | 2020-01-22T13:40:58 | 2020-01-22T13:40:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,471 | py | ##########################################################################
#
# pgAdmin 4 - PostgreSQL Tools
#
# Copyright (C) 2013 - 2018, The pgAdmin Development Team
# This software is released under the PostgreSQL Licence
#
##########################################################################
"""Implements Res... | [
"denis@lussier.io"
] | denis@lussier.io |
39d0a5fa54916c6b31eed02202ea9ba9fa284bf2 | ad67b49b83d23ba2b0ade3da4db90d9b86d98650 | /kafka/archived_scripts/kafka_rss.py | a92f06572dfc8dfb949ad37341f01ac88aace4eb | [
"MIT"
] | permissive | peterhogan/python | f58d08a67991e2822795ee9689544d43cb8fecad | bc6764f7794a862ff0d138bad80f1d6313984dcd | refs/heads/master | 2021-01-01T18:41:50.338599 | 2017-05-13T07:51:54 | 2017-05-13T07:51:54 | 34,813,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,215 | py | #######################################
############### Imports ###############
#######################################
from lxml import etree
import os
############################################
############### Inital setup ###############
############################################
# specify the directory to p... | [
"peterjameshogan@gmail.com"
] | peterjameshogan@gmail.com |
cefccb4e18a42354913c1b1a7008faa1c4c580dc | 50219c54e1e1ae1afb3844fe26bb24779c8939aa | /app/clients/email_send_client.py | 7ebf66266a323f76ba3bb0c56f173b9abede6db3 | [] | no_license | rajsshah23/brightwheel-interview-email-send | aac0de9a55ce95f45b280f9ac1c0bcbdfdbdaa71 | 86165ab65e976955bb9da4ee05ff2a653b2e3e4a | refs/heads/main | 2023-07-18T06:41:09.391399 | 2021-09-08T03:12:21 | 2021-09-08T03:12:21 | 403,364,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | from fastapi import Depends
from app.dependencies import get_settings
from app.models.get_email_status_models import (
GetEmailStatusRequest,
GetEmailStatusResponse,
)
from app.models.send_email_models import SendEmailRequest, SendEmailResponse
from app.setup.settings import Settings
class EmailSendClient:
... | [
"rajsshah23@gmail.com"
] | rajsshah23@gmail.com |
66da12d1a46b2363ec995ed6684e46458403d42d | f027db78eb8e44c7d5994531157e910dabe37a6c | /Deep Learning/Unsupervised Learning/Self Organizing Maps (SOM)/Hybrid Supervised-Unsupervised Fraud Detection Model/mega_case_study_improved.py | 484cb9e198bfc6e49dbfc918085cf98a404f247e | [] | no_license | jamesawgodwin/PythonMachineLearningTemplates | e6d8ac678ca483a49a2e73dc079faad9bba25147 | 320f76dabbd988f1c56774e89b5baf9b2767d10d | refs/heads/master | 2021-08-08T17:44:35.442494 | 2020-04-19T04:03:51 | 2020-04-19T04:03:51 | 158,993,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,304 | py | # Mega Case Study - Make a Hybrid Deep Learning Model
# Part 1 - Identify the Frauds with the Self-Organizing Map
# Importing the libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# Importing the dataset
dataset = pd.read_csv('Credit_Card_Applications.csv')
X = dataset.iloc[:, :-1].v... | [
"james.a.w.godwin@gmail.com"
] | james.a.w.godwin@gmail.com |
20ae7bcc5afe279441ec8d3b9c315a60d9785feb | 0a3ef6195220f510ba962c25280b1848b63b858b | /Django_bbs/asgi.py | 62b376d760ffba23b0b66e2dc5e4b76f004fe1b6 | [] | no_license | wykuro/django_bbs | 4584659f42190b933fa26b5eea281b19a31a7885 | 01605676d6f79567c00f7e4aaadcc681014cf06e | refs/heads/master | 2022-11-19T06:48:26.081021 | 2020-07-28T08:56:21 | 2020-07-28T08:56:21 | 283,153,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
ASGI config for Django_bbs project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SE... | [
"2350199078@qq.com"
] | 2350199078@qq.com |
1e1a220013ea65a97547f55b52bf0e6e8ba7ee32 | 4b742f57981b3db902e7048fe05faf263ff52138 | /base/migrations/0010_pgpkey_passphrase.py | 174c1f9c2f96097e66f55808d6348a2d55d10933 | [
"MIT"
] | permissive | erichuang2015/Hiren-MailBox | eace0c90b5815f3e4a660dfda75910256704db96 | ff4cad0998007e8c9a2a200af3a2e05a3d947d12 | refs/heads/master | 2020-04-02T01:31:55.680288 | 2018-09-13T15:21:46 | 2018-09-13T15:21:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | # Generated by Django 2.0.4 on 2018-05-22 04:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('base', '0009_auto_20180504_0501'),
]
operations = [
migrations.AddField(
model_name='pgpkey',
name='passphrase',
... | [
"git.pyprism@gmail.com"
] | git.pyprism@gmail.com |
30a77a5b2a326c40c06e455066908091bac0870a | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_113/ch44_2020_09_30_10_47_17_987015.py | f078ba9a9524ee5b166c21af69a4c0e35a23748f | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | #x=True
lista = ['Janeiro','Fevereiro','Março','Abril','Maio','Junho','Julho','Agosto','Setembro','Outubro','Novembro','Dezembro']
#while x==True:
mes = input('Qual o mês? ')
print(lista[mes]) | [
"you@example.com"
] | you@example.com |
dc0cd9bf59857e086726029d8ff6c6aa608de145 | 51464779b985f9e4e67279eea4bf022fa8b687e6 | /data/tools.py | e8067a800b1ebca972f374a637592ca7df76b585 | [
"CC0-1.0",
"WTFPL"
] | permissive | xinmingzhang/pyweek22 | 2b1ef5b11cfbf5c14d5b3d4ee0315d7a86eb98b0 | 07ef583507d5971b7e55dcd66cee22dc6f36f134 | refs/heads/master | 2020-04-17T18:43:29.846741 | 2016-09-10T07:55:00 | 2016-09-10T07:55:00 | 67,858,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,906 | py | """
This module contains the fundamental Control class and a prototype class
for States. Also contained here are resource loading functions.
"""
import os
import copy
import pygame as pg
class Control(object):
"""Control class for entire project. Contains the game loop, and contains
the event_loop which pa... | [
"252004372@qq.com"
] | 252004372@qq.com |
ad4c71b1ccd1ad4b4495365ed76a0380fc1bfe1b | 9539a9704b14545f81b5c60b9f3087b0bdb9661d | /bin/dadl | afb0bf9ba307761bee028311ea20d143d68c5da9 | [
"MIT"
] | permissive | Galadirith/my-project-2 | b0ef9de6caf2ac65dead527835d03284a901ee4b | 5a2d71fc4c1c63d9479c7f57b0e5b335e2f664a3 | refs/heads/master | 2021-01-09T20:27:34.548747 | 2016-05-31T10:25:38 | 2016-05-31T10:25:38 | 60,062,635 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,276 | #! /usr/bin/env python
import sys
from dadownloader.auth import Auth
from dadownloader.favourites import Favourites
from getopt import getopt
try:
opts, args = getopt(sys.argv[1:], 'adfh', ['help'])
except:
print('Invalid options passed to dadl')
sys.exit()
download = {}... | [
"edward.fauchon.jones@gmail.com"
] | edward.fauchon.jones@gmail.com | |
dde187738c41353c5e9b347c6b755e131134564e | 05fbf2dd9512528675867d1bf525b4bfb947816b | /main.py | 4291e4bbfb32bbf6393874f49faa690cebad8523 | [] | no_license | kimmobrunfeldt/kauko | efb46eea1a1ab9c1bdfd92436a88d5daba4f3e38 | cbc0af6ec6b3aa1d9f717172d984c89f2a9eded2 | refs/heads/master | 2023-09-05T23:14:32.547518 | 2013-01-20T11:55:36 | 2013-01-20T11:55:36 | 7,545,552 | 1 | 1 | null | 2013-01-16T22:23:42 | 2013-01-10T17:41:25 | JavaScript | UTF-8 | Python | false | false | 3,814 | py | #!/usr/bin/env python
"""
Kauko server. Must be run as super user.
Usage:
sudo python main.py -v -d
sudo python main.py -p 8080
Options:
-h --help Prints this help.
-v --verbose Used commands are printed to console.
-d --debug Debug information is printed to con... | [
"kimmobrunfeldt@gmail.com"
] | kimmobrunfeldt@gmail.com |
aabf23c2151534f4a361ed928fa3088942a201fb | cc7e0827e14f37331c6bd7f821a3e062e2fc7e9d | /houses/migrations/0006_auto_20211004_2059.py | 8052304ef74e91c4354fcf6de4383bf8e909c6fc | [] | no_license | kudawoo2002/Ayelevi-estat | f8b7e43170d04ce3f64ca78269118f6df2248928 | 46fa19883aa360782f35e1c2b0d07233839350f4 | refs/heads/main | 2023-09-04T08:43:04.387373 | 2021-10-12T18:18:29 | 2021-10-12T18:18:29 | 416,324,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | # Generated by Django 3.2.7 on 2021-10-04 20:59
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('houses', '0005_rename_sale_type_seller_seller_type'),
]
operations = [
migrations.AddField(
model_n... | [
"kudawoo2002@gmail.com"
] | kudawoo2002@gmail.com |
3a61fda2b382065093425824bfebb1070e29668e | e5d8a863c55bda022f9b21561d8594ce55c237b5 | /datamodel/tests.py | ad459397b4e90a1426a2e1d7b55f95385f15d5de | [] | no_license | artiimor/GatoRaton | 637fad7c883d084a9e433d76e22812cc8ff92963 | 84233e7102c319816f5d382b89788d3fec50ddc3 | refs/heads/master | 2020-08-29T17:14:12.764387 | 2019-12-14T11:14:03 | 2019-12-14T11:14:03 | 218,106,585 | 1 | 1 | null | 2019-12-14T11:04:48 | 2019-10-28T17:29:25 | Python | UTF-8 | Python | false | false | 976 | py | """
@author: rlatorre
"""
from django.contrib.auth.models import User
from django.test import TestCase
MSG_ERROR_INVALID_CELL = "Invalid cell for a cat or the mouse|Gato o ratón en posición no válida"
MSG_ERROR_GAMESTATUS = "Game status not valid|Estado no válido"
MSG_ERROR_MOVE = "Move not allowed|Movimiento no perm... | [
"amorcillop@gmail.com"
] | amorcillop@gmail.com |
0de0fd9a7e56f15a58adbac9a8208ed4548f3d5d | 988003149dd3cc82a554d38b2948b7a6dab7f0c5 | /161278031/3/3.py | 607d0268c8e7b1cc696cfc3d107849286369f7ec | [] | no_license | HomeworkNJU/Final | 894cb0a17349f39677dd6ede29781d98484a887a | 08906263f5c78e2d0a1828007bf15d6cd28e16d8 | refs/heads/master | 2020-03-20T01:00:33.201335 | 2018-06-20T04:04:41 | 2018-06-20T04:04:41 | 137,064,142 | 0 | 15 | null | 2018-06-20T04:04:42 | 2018-06-12T11:49:46 | Python | UTF-8 | Python | false | false | 1,172 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jun 20 10:15:36 2018
@author: lenovo
"""
def expense(price,count):
money=price*0.002
if(money<5):
money=5
money+=(count//1000)
money+=1
return money
m=int(input("please input the number of action:"))
action=[]
for i in range(0,m)... | [
"noreply@github.com"
] | noreply@github.com |
4dbead710f1b01e513a121fde157ac24452544dc | c9e71369de04b9c20fde8bd325a09260d3d81805 | /dev/simulator/migrations/0001_initial.py | 033608ccd7646c149a8dcdb37f1f967de2777b23 | [] | no_license | bradleyrp/factory-beta | 14a02c37279760a3d8b0186daf8544c351808be2 | acf695129b87858b7cfec5d8b18b881d41548e28 | refs/heads/master | 2021-06-08T14:26:03.284946 | 2016-10-05T02:20:11 | 2016-10-05T02:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,473 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Simulation',
fields=[
('id', models.AutoField(v... | [
"bradleyrp@gmail.com"
] | bradleyrp@gmail.com |
611a492f714cd96b2ba9c94b3644617e50c8c6ce | 86294539ffa65b34a862b200c84ee068187dc743 | /do2things/manage.py | 78b2063220ba03afa6e0bd0a501b0280f45ed107 | [
"MIT"
] | permissive | tlake/do2things | 6acb4f43990b0d0e4a9b80090e21246c1d39398a | 4e83bea1fc579006200e9ca3a627c1bc04a6a53b | refs/heads/master | 2021-01-21T04:24:57.108087 | 2016-08-22T08:56:11 | 2016-08-22T08:56:11 | 39,576,039 | 0 | 0 | null | 2015-08-27T01:28:15 | 2015-07-23T15:40:53 | JavaScript | UTF-8 | Python | false | false | 252 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "do2things.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"tanner.lake@gmail.com"
] | tanner.lake@gmail.com |
0dabd218576ed96dbe4a021fce762f03727b90ae | b4948c322401435a02370dd96708399fda4a48fc | /demo/simple_code/test_pass.py | 453fa756db68194cdd14c29692c9fa5fb24807be | [] | no_license | fengbingchun/Python_Test | 413e2c9bb844a5b3641e6e6daf37df277589006e | eaedcd55dbc156b685fa891538e1120ea68fa343 | refs/heads/master | 2023-06-21T02:28:07.310364 | 2023-06-11T04:46:29 | 2023-06-11T04:46:29 | 99,814,791 | 7 | 6 | null | 2022-09-30T00:38:06 | 2017-08-09T14:01:48 | C++ | UTF-8 | Python | false | false | 428 | py | # Blog: https://blog.csdn.net/fengbingchun/article/details/125242357
# 1. empty function
def func():
pass # remember to implement this
func()
# 2. empty class
class fbc:
pass
fbc()
# 3. loop
num = 5
for i in range(num):
pass
# 4. conditional statement
a = 5
b = 10
if (a < b):
pass
else:
print("b<=a")
for l... | [
"fengbingchun@163.com"
] | fengbingchun@163.com |
fbc7694ea37606dbb8b3d679815129d939c33700 | ee7cde00d334cf625e309a7157e331e450a7056d | /scripts/json_toolpath_analyzer.py | 205d254edb0b33031dba04f9af66c048882ae369 | [] | no_license | makerbot/TestFiles | 29a73a135b53ce2c447501c4788c8cceaa1075e4 | ba16bccad29646e0ce4379adb33632fb9799b852 | refs/heads/master | 2021-01-19T02:15:42.711380 | 2016-07-29T17:45:20 | 2016-07-29T17:45:20 | 2,892,052 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 15,145 | py | import os
import sys
import re
import math
import argparse
import copy
import json
layer_begin = re.compile('^(\(|;)(<layer>|Slice) [\d.]+.*(\)|:)?$')
paramcodes = 'XYZFABE'
g1re = re.compile('^G1\s+(?P<param>(['+paramcodes+']-?\d+(\.\d*)?\s*)+)(?P<comment>.*)$')
paramre = re.compile('(?P<code>['+paramcodes+'])(?P<val... | [
"alison.nj.leonard@gmail.com"
] | alison.nj.leonard@gmail.com |
9958bee7ab67e7e9f94c168f40fd987b1ed06256 | 33ff78109f47d6efe1f3fd334733b8404472277c | /sketch_191203a.pyde | e2b3368b2b203a216e96563ca7a9fb8930c24d55 | [
"MIT"
] | permissive | jadejieheng/processing.py-learning | ef29ad5d8f704461e2fb3486b8437a6467094738 | aef8b990f4eec4a39def7c6444f7bea4753831a2 | refs/heads/master | 2020-09-23T11:44:24.663341 | 2019-12-16T23:46:47 | 2019-12-16T23:46:47 | 225,493,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,570 | pyde | """ pusedocode
c = color(0)
x = 0.0
y = 100.0
speed = 1.0
def setup():
size(500, 500)
def draw():
background(255)
move()
display()
def move():
global x
x = x + speed
if x > width:
x = 0
def display():
fill(c)
rect(x, y, 150, 50)
"""
""" rewrite the structure... | [
"noreply@github.com"
] | noreply@github.com |
224efd07081d700cef2f4bff2f9f658dcccc15e2 | 256efb0e9ff8b7420b412c260e6c05cd7c52c5ce | /B/resolve.py | 5e0f2bb0fd1bde1c3ffc1f155dfc45171749a311 | [
"MIT"
] | permissive | staguchi0703/ABC176 | 37a85f6d83570967696712a98dd39e1f1a08b04b | 16f2f188ef5c73f85d08b028f14cd963b33d55af | refs/heads/master | 2022-12-07T18:15:02.659948 | 2020-08-24T15:00:29 | 2020-08-24T15:00:29 | 289,476,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | def resolve():
'''
code here
'''
N = input()
sum_num = 0
for item in N:
sum_num += int(item)
if sum_num % 9 == 0:
print('Yes')
else:
print('No')
| [
"s.taguchi0703@gmail.com"
] | s.taguchi0703@gmail.com |
bddfab9694013cb5361590adc0e4269290af1cec | b82ebabc2568e34ba1db516abd5bb978fda69f2c | /Forming/urls.py | e0ed48947301b255a855f3ffcb08fce25ff8ab42 | [] | no_license | msreenathreddy67/farming | 3996f19f16a0e689e890687a661ffed46f63d58d | 9d727f0297b0fa444da8b7383d84ba3f43decded | refs/heads/main | 2023-06-17T07:29:07.520940 | 2021-07-09T11:04:17 | 2021-07-09T11:04:17 | 384,410,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 863 | py | """Forming 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')
Class-based... | [
"msreenathreddy67@gmail.com"
] | msreenathreddy67@gmail.com |
23c2de5fd645c39cbadd4ecdb4a8572487884ba8 | 069c2295076c482afadfe6351da5ae02be8e18e6 | /tests/urlpatterns/path_same_name_urls.py | d7ea5431b1e2e70e97338b78591e99ba67df435e | [
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"GPL-1.0-or-later",
"Python-2.0.1",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-other-permissive",
"Python-2.0"
] | permissive | django/django | 5eb557f57053631cd4f566f451e43197309dbeeb | c74a6fad5475495756a5bdb18b2cab2b68d429bc | refs/heads/main | 2023-09-01T03:43:44.033530 | 2023-08-31T08:27:32 | 2023-08-31T08:27:32 | 4,164,482 | 73,530 | 38,187 | BSD-3-Clause | 2023-09-14T20:03:48 | 2012-04-28T02:47:18 | Python | UTF-8 | Python | false | false | 1,483 | py | from django.urls import path, re_path, register_converter
from . import converters, views
register_converter(converters.DynamicConverter, "to_url_value_error")
urlpatterns = [
# Different number of arguments.
path("number_of_args/0/", views.empty_view, name="number_of_args"),
path("number_of_args/1/<valu... | [
"felisiak.mariusz@gmail.com"
] | felisiak.mariusz@gmail.com |
529b1a3a2c7b1d1ca36401ac499afa8ce5891042 | d602149c0bf94a178e9972b74f113d7412db0eca | /google-cloud-sdk/google-cloud-sdk/.install/.backup/lib/googlecloudsdk/third_party/apis/tpu/v1alpha1/tpu_v1alpha1_messages.py | 46cde70eed13e0fc8a3c6175ab6450f73783066d | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | sarahdactyl71/gneiss-rocks | ffe19df02e77d8afdb2b96ae810e0e31490f2d77 | 45a4900a89638c1b6bc50d9ff4a83ae631a22c7a | refs/heads/development | 2021-07-04T05:36:12.037156 | 2017-10-06T22:14:27 | 2017-10-06T22:14:27 | 102,655,986 | 0 | 1 | null | 2020-07-25T07:44:54 | 2017-09-06T20:38:11 | Python | UTF-8 | Python | false | false | 25,050 | py | """Generated message classes for tpu version v1alpha1.
TPU API provides customers with access to Google TPU technology.
"""
# NOTE: This file is autogenerated and should not be edited by hand.
from apitools.base.protorpclite import messages as _messages
from apitools.base.py import encoding
from apitools.base.py impo... | [
"kirkse710@gmail.com"
] | kirkse710@gmail.com |
292069701c70dfc1310c0ae3d406323bae424447 | 41679cbf83a1339e26513ce1aee09eef9f9b7629 | /tests/dependency-classic/setup.py | 2fb80d725a7ccc6993867726b137062c62503e12 | [
"MIT"
] | permissive | mtkennerly/poetry-dynamic-versioning | db68eb7a3487e042c12820e65844335b62ba9bd4 | 322fe62f5a5270d324ca8a12b42224f67e822d2e | refs/heads/master | 2023-07-20T10:30:17.257360 | 2023-07-11T15:50:51 | 2023-07-11T15:50:51 | 190,498,619 | 486 | 31 | MIT | 2023-09-05T01:33:23 | 2019-06-06T02:13:29 | Python | UTF-8 | Python | false | false | 117 | py | from setuptools import setup
setup(name="dependency-classic", version="0.0.666", py_modules=["dependency_classic"])
| [
"mtkennerly@gmail.com"
] | mtkennerly@gmail.com |
3d2281ceea099e3636a2d5593f4e69d3ab66ddbf | c7846ee0828539c2a2019928c1cbf3abd35665bf | /1226.py | e40445bed21211b32f058a29fb64d1cef368c25a | [] | no_license | whiteblue0/sw_problems | 10476601c8d6d68d42e2f30af87fcde1e5dbbcc5 | 1cefc6236cccc20477bf4eadb458a0fd06b09126 | refs/heads/master | 2020-06-20T10:44:57.463275 | 2020-05-03T07:27:57 | 2020-05-03T07:27:57 | 197,098,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 881 | py | import sys
sys.stdin = open('1226.txt')
def ispass(y,x):
if 0<=y<L and 0<=x<L and data[y][x] != 1 and visited[y][x] == 0:
return True
else:
return False
def DFS(sy,sx):
global end
visited[sy][sx] = 1
if data[sy][sx] == 3:
end = 1
for i in range(4):
ny = sy + ... | [
"21port@naver.com"
] | 21port@naver.com |
b422f8f7fab0c031a2544141bf37274393b39d00 | 24192756f1275986078c083412ee0b209bae649f | /donghee_project/donghee_project/urls.py | 2de9d8f673a9a270dad68cc545cab23c2460ba4e | [] | no_license | penpen-dongE/django_todolist_project | 0128498a7a9973d4fffefbf320d77044b6916530 | ceeb5d249d7988677b55a690ee92fb74257e311c | refs/heads/master | 2022-05-10T03:24:18.132484 | 2020-04-23T12:13:48 | 2020-04-23T12:13:48 | 255,940,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,432 | py | """donghee_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Cla... | [
"dongheepark.dev@gmail.com"
] | dongheepark.dev@gmail.com |
0296d247cff0d46ffe781196db159f2dc53ad9a7 | 0dc3e9b70da8ccd056e0a0fab2b1d8f850c3d470 | /lantern/django/django_celery/src/apps/dealers/models.py | bc779127742bd20a2e9942ebdd4779103f3156e4 | [] | no_license | ArturYefriemov/green_lantern | 28e7150af7b9d2281a107ad80026828ad77af62a | 2841b647e1bfae4a7505e91e8a8695d03f35a3a2 | refs/heads/master | 2021-03-01T16:54:58.881835 | 2020-11-17T19:42:23 | 2020-11-17T19:42:23 | 245,799,969 | 0 | 0 | null | 2020-07-14T18:51:13 | 2020-03-08T11:13:32 | Python | UTF-8 | Python | false | false | 735 | py | from django.contrib.auth.models import AbstractUser
from django.db import models
# Create your models here.
class Country(models.Model):
name = models.CharField(max_length=32, unique=True)
class City(models.Model):
name = models.CharField(max_length=32, db_index=True)
country = models.ForeignKey(to='C... | [
"odarchenko@ex.ua"
] | odarchenko@ex.ua |
127026945e89da6d871b6e151af9d6241f3867e5 | 200a7fb2a75151a8b83274ef53d661099da61047 | /django1_workspace/test4(get)/blues/ddobaki/models.py | d6d5a45b52187cd3bb993d21ac6fa65d5fbb1010 | [] | no_license | Minzard/Correctable-Pronunciation | 9e967e428f38b2a142e81d1d181caba9bc56305a | 4b94d6e07c0c682086595c202fc5fa41106a9df5 | refs/heads/master | 2021-06-21T03:13:44.751861 | 2020-12-29T02:05:22 | 2020-12-29T02:05:22 | 157,420,423 | 13 | 6 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | from django.db import models
class get_ddobaki(models.Model):
user = models.CharField(max_length=100)
label = models.CharField(max_length=50)
stt = models.CharField(max_length=50)
class post_ddobaki(models.Model):
divided_stt = models.CharField(max_length=100)
color = models.BooleanField(default=T... | [
"eh@EHui-MacBook-Pro.local"
] | eh@EHui-MacBook-Pro.local |
a0a0950be83e34b71b9196a40ad2399172c4477c | 9636c75094a251fc931774c967df135b31012101 | /school_mgnt/wsgi.py | a09c0a72615f55cd2c45d10991c74db785214fe0 | [] | no_license | bimal125/school_mgnt | 9e33bb7f9ae580292eb687dc4955bc54c07a8bd8 | 01fd33cb2547494cda2213061af443e706dc92d9 | refs/heads/master | 2022-12-10T00:53:13.106358 | 2020-08-27T15:07:05 | 2020-08-27T15:07:05 | 205,401,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for school_mgnt 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/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_S... | [
"pandeybi125@gmail.com"
] | pandeybi125@gmail.com |
99102bee439d4e4060ed9c0a44aa1bfe3bb55191 | 29cc8671d2b4cfb3551bf822751130e769e2651d | /5multipless.py | 9bfcc567ee6656d325b20c4dee4507fc11eb7655 | [] | no_license | raghava430/Raghava-reddy | 67360cf955e8c77e7fc7732eb70feb72fb19b3fe | 5e952e0d129427705ad540052757b895ffb38542 | refs/heads/master | 2020-06-14T10:05:13.429124 | 2019-07-17T04:35:11 | 2019-07-17T04:35:11 | 194,976,566 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 78 | py | e=int(input())
f=1
while(f<6):
g=e*f
f=f+1
print(g,end=" ")
| [
"noreply@github.com"
] | noreply@github.com |
de172a8f044e0de1b739d483985f14cd2fb74c27 | 2d7d5673d78d6ef682e88845eab99dddd8fc0927 | /pybaseball/pybaseball/league_pitching_stats.py | cc3eb29485ad7ce43526b1c031e88f3b522029c8 | [
"MIT"
] | permissive | BunkyFeats/MLBpy | 764026d42afcdd979084b28d851a7d536a0ac70d | d035f904bea08fb73545b333d6f3448b1cb20ab0 | refs/heads/master | 2021-04-26T23:40:06.190324 | 2018-03-04T22:35:48 | 2018-03-04T22:35:48 | 123,835,303 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,262 | py | import requests
import pandas as pd
import numpy as np
import io
from bs4 import BeautifulSoup
import datetime
def validate_datestring(date_text):
try:
datetime.datetime.strptime(date_text, '%Y-%m-%d')
except ValueError:
raise ValueError("Incorrect data format, should be YYYY-MM-DD")... | [
"noreply@github.com"
] | noreply@github.com |
6f73725146e0aa41a0092ee3c4592b5a5dd9124d | b6282963725f1b44e29a11e4ea2479e0667c3b1a | /src/chapter04/demo01.py | f803bdb96f4e21d92e98b40c31dfdb70d8cb6bcd | [] | no_license | geekori/numpy | d2859f56e80a3ab0ea4a33bcb4bc8494dedbb879 | e3b18aa6868c1f98963f01875f9afa7ee86f1bf2 | refs/heads/master | 2020-04-09T07:44:22.074173 | 2018-12-03T10:01:59 | 2018-12-03T10:01:59 | 160,168,662 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | # NumPy高级函数:计算协方差矩阵
from numpy import *
a = array([1,3,4,5])
b = array([2,6,2,2])
x = vstack((a,b))
print(x)
print(cov(x))
# cov函数会将正常的结果缩小到原来的1/3 | [
"282662996@qq.com"
] | 282662996@qq.com |
c92030d52698c79b7c903ded6e22f72bf6b89f32 | 3c176f8c73b157f6aba150d869cefe64b7f0a4d7 | /app.py | a3686b206616eecff5056f175889e91a251507e1 | [] | no_license | ddev790/image_recommender_selectivesearch | 5be5a9659bb98b2f75bfd12ed7582e290d30522d | 374904c7be88abfeba2b00df735fd26c519081ad | refs/heads/master | 2021-08-11T21:00:59.213932 | 2017-11-14T04:50:52 | 2017-11-14T04:50:52 | 110,641,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,653 | py | import os
import random
import time
import requests
import sys
import simplejson
from flask import Flask, request, render_template, session, flash, redirect
from celery import Celery
import json
from psycopg2.extensions import AsIs
import psycopg2
from image_process import populate_db
app = Flask(__name__)
# Initi... | [
"admin_yosemite_mac"
] | admin_yosemite_mac |
0f12e75f326736ce1da7a7a6b1fb5297088bafd5 | 5bfbf31332a5c4750ab57d305f400aa5e20bf6bd | /contrib/great_expectations_zipcode_expectations/great_expectations_zipcode_expectations/expectations/expect_column_values_to_be_valid_utah_zip.py | 5c11f0c756f7c389107ebd4a9b7e6f5e7f2270a7 | [
"Apache-2.0"
] | permissive | alexsherstinsky/great_expectations | 9d4ae4c06546c5ab2ee0d04fb7840e3515c25677 | 2fc4bb36a5b3791c8ada97c5364531cd7510d4ed | refs/heads/develop | 2023-08-04T13:13:38.978967 | 2023-07-24T18:29:46 | 2023-07-24T18:29:46 | 203,888,556 | 1 | 0 | Apache-2.0 | 2020-07-27T09:12:21 | 2019-08-22T23:31:19 | Python | UTF-8 | Python | false | false | 5,481 | py | from typing import Optional
import zipcodes
from great_expectations.core.expectation_configuration import ExpectationConfiguration
from great_expectations.execution_engine import PandasExecutionEngine
from great_expectations.expectations.expectation import ColumnMapExpectation
from great_expectations.expectati... | [
"noreply@github.com"
] | noreply@github.com |
cb221e365a5489dbd72b5c99e681b6870802a23a | 70ae772afdabea4213c64ac1e8b824a2dd258611 | /FaceRecognition/recognize_specific_face_def.py | e5de6cd5d2c65262dd9fe9894366d3690ead13da | [] | no_license | IdoSeri/DavidsonProject | aa54dc3f07e09ac2a0a9c844a52f6ee5a4ff225c | 87dbd48628ece0d55eed4c76d82b63100ce51ca4 | refs/heads/master | 2022-04-16T22:33:11.923149 | 2020-04-16T09:47:40 | 2020-04-16T09:47:40 | 250,328,967 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,025 | py | # import the necessary packages
from imutils.video import VideoStream
import face_recognition
import imutils
import pickle
import time
import cv2
def recognize_face():
# load the known faces and embeddings
data = pickle.loads(open("FaceRecognition/encodings.pickle", "rb").read())
# initialize the video stream
vs... | [
"noreply@github.com"
] | noreply@github.com |
6c77b0407a9a802d567bc0923cd32c4be391bf5a | 6c47652bc93ceef2b054fa9759481e70a22de2f1 | /225_Fig2g_diableN_y.py | 4cca2a370829a583b5c2fbe0d662617cc0710a97 | [] | no_license | peakqi/RaI | 4c174840ce5affa4dde3990892fb48903b9766a2 | 6528cc100506e3a491d665d09d620ac9be3013a3 | refs/heads/master | 2020-05-25T10:47:43.976805 | 2019-05-22T05:08:09 | 2019-05-22T05:08:09 | 187,766,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,991 | py | import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
import matplotlib.pyplot as plt
import numpy as np
from imgaug import augmenters as iaa
import os
import scipy as sp
from sklearn import linear_model
from sklearn.metrics import r2_score
from sklearn.metrics import mean_squared_error
Le... | [
"noreply@github.com"
] | noreply@github.com |
ec61f2c11c142888f2e43279e15779776f084d75 | b75b3bb6a2c6dd8b4a5b89718eb83d6451000cd4 | /hackbright.py | 715553d9b927069928d6bfc85808ce5824d2e0b2 | [] | no_license | CodeHotPink/project-tracking-flask | 22efebeaddf83d2746ba9137f1b478da8c34b1a9 | bdd58b17034406f28d5ceaa0c834eb0d6ad06be3 | refs/heads/master | 2020-04-03T18:46:04.010020 | 2018-10-31T04:02:38 | 2018-10-31T04:02:38 | 155,496,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,034 | py | """Hackbright Project Tracker.
A front-end for a database that allows users to work with students, class
projects, and the grades students receive in class projects.
"""
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
db = SQLAlchemy()
def connect_to_db(app):
"""Connect th... | [
"no-reply@hackbrightacademy.com"
] | no-reply@hackbrightacademy.com |
bde4160a1d045a92ee19fdc4d0e30366397bb41d | 2ade3d231fe1fcc8a4e698845a98fa025197c06b | /dealproperty/dealproperty/wsgi.py | f4be6bfd492254876a4b5741075bafaac4c57faf | [] | no_license | anandraj8756/property_deal_web | d3d7012968ac6c7e0931c9207db61163c518f086 | 1dc220734b00e651b891741db82469d28079f442 | refs/heads/main | 2023-06-08T04:30:12.439249 | 2021-07-05T06:20:33 | 2021-07-05T06:20:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
WSGI config for dealproperty 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/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_... | [
"anandallen95@gmail.com"
] | anandallen95@gmail.com |
09cace0bf73c69539cf1e99a98b7a6f3ed08f833 | 5328f77114a898f1c75bf82176306a9ab83a3473 | /models/clients.py | 1ab3394ff6e1a3a584d126ddfc7b641f30095cee | [] | no_license | prabakaran04/prabakaran | 2e207e0dc17cb0c39340b05683fda750eae45eaa | b6f8268192dcffcd095486527777d4edeaafdf68 | refs/heads/master | 2023-03-11T14:10:38.576472 | 2019-07-18T13:29:04 | 2019-07-18T13:29:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,325 | py | from odoo import models,fields,api
from odoo.exceptions import ValidationError
class ClientDetails(models.Model):
_name = 'client.details'
_rec_name='client_name'
client_id = fields.Char(default ='new')
client_name = fields.Char(string ='Client name')
address = fields.Char(string ='Address')
... | [
"prabakaran@sodexis.com"
] | prabakaran@sodexis.com |
f9d9118938a3ba4499fe9302991d70005635b133 | b88dbcf3619dd3af4896b4b15432ae2b2d390665 | /main.py | 59c59c21694156ed16b7333845e17b06d0bfdf16 | [] | no_license | msubzero2000/bayesian-optimisation-metaflow-optuna | a43ccdb0150fde6ae7571798549210113826c0ea | 00bda310bbe7ce42470acfc5d90198f27ad9c5d2 | refs/heads/main | 2023-08-06T03:27:55.980813 | 2021-10-06T07:22:19 | 2021-10-06T07:22:19 | 413,768,301 | 10 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,302 | py | """
Optuna example that optimizes a classifier configuration for cancer dataset using
Catboost.
In this example, we optimize the validation accuracy of cancer detection using
Catboost. We optimize both the choice of booster model and their hyperparameters.
"""
import logging
from datetime import datetime, timedelta
... | [
"msubzero2000@gmail.com"
] | msubzero2000@gmail.com |
9e226cf7f1b347db514b5a6f6c603957fe867e63 | c3eff34237f19885ee09c81f2eb869a53a66e76b | /app/generate_token.py | 0b2dabf9bdc5880404676f02d9b10c6a15b73f1d | [] | no_license | victorvarza/hermes | e9f4bf3fe76b3f6949bfd9e8e23bab7951692f05 | 62d9c5ba0cb0851ae56bc33e8ac337cecd205f82 | refs/heads/master | 2021-11-05T13:40:02.298153 | 2021-01-10T21:51:11 | 2021-01-10T21:51:11 | 135,069,301 | 0 | 0 | null | 2021-03-25T22:53:52 | 2018-05-27T17:56:11 | Python | UTF-8 | Python | false | false | 434 | py | from pydrive.auth import GoogleAuth
from pydrive.drive import GoogleDrive
cred_path = "app/conf/gdrive_cred.json"
gauth = GoogleAuth()
gauth.LoadCredentialsFile(cred_path)
if gauth.credentials is None:
gauth.LocalWebserverAuth()
elif gauth.access_token_expired:
gauth.Refresh()
else:
gauth.Authorize()
pri... | [
"victor.varza@gmail.com"
] | victor.varza@gmail.com |
e1a1de36048d93300f9e84f3959504ed9e7d628d | 35a2268f7f004ecd4c834eed7a68b54980a2a157 | /action sequence generation.py | 3658289acb07e626f917a29fea0775543bdae9db | [] | no_license | akagrecha/action-sequence-generation | cefa768b6250dd9968ad7e2068b991d94d7379bf | 46ff1a7019d015709832e24c2244106d2dfb9fc7 | refs/heads/master | 2021-01-20T17:33:52.601183 | 2016-06-23T05:13:54 | 2016-06-23T05:13:54 | 61,200,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,314 | py | import cv2
import argparse
def action_sequence_generator(video,
gblur_ksize_width=21, gblur_ksize_height=21, gblur_sigmaX=0,
fg_mask_lower_threshold=50, fg_mask_upper_threshold=255,
required_frames=8):
"""
Action Sequen... | [
"akagrecha@gmail.com"
] | akagrecha@gmail.com |
f86a2ef5c5fa10d7f88154c33b7e6bf8420fc39d | cac58755bacb8cf144e05d86ddf0f590c1626aa7 | /myPdf/pay_slip.py | 111c94721de04117f1cf32a6b8815c0d92792ec5 | [] | no_license | alaniomotosho2/automate | 95d853bda06dc5279cdff894550b399a6ad5bec9 | 1bb7ee70941029c6092b329184c65935b6355d4c | refs/heads/master | 2021-08-07T08:23:22.344109 | 2017-11-07T21:58:30 | 2017-11-07T21:58:30 | 108,914,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,680 | py | from datetime import datetime
employee_data = [
{ 'id': 123, 'name': 'Usman', 'payment': 10000,
'tax': 3000, 'total': 7000 },
{ 'id': 245, 'name': 'Sophia', 'payment': 12000,
'tax': 4000, 'total': 8000 },
]
from fpdf import FPDF, HTMLMixin
class PaySlip(FPDF, HTMLMixin):
def footer(self):
self.set_y(-15)
self.... | [
"alaniomotosho2@gmail.com"
] | alaniomotosho2@gmail.com |
00b42fcbfbde767ac076c1bdd0d7fb34c5b3382c | 67b0379a12a60e9f26232b81047de3470c4a9ff9 | /comments/models.py | 27fec916d93089637204f146a37c7c27c5e70df4 | [] | no_license | vintkor/whitemandarin | 8ea9022b889fac718e0858873a07c586cf8da729 | 5afcfc5eef1bb1cc2febf519b04a4819a7b9648f | refs/heads/master | 2021-05-06T03:35:09.367375 | 2017-12-20T15:43:08 | 2017-12-20T15:43:08 | 114,904,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,969 | py | # -*- coding: utf-8 -*-
from django.db import models
from mptt.models import MPTTModel, TreeForeignKey
from tinymce import models as tinymce_model
import datetime
class Comments(MPTTModel):
prod_name = models.CharField(max_length=250, blank=True, db_index=True, verbose_name="Название")
paket = models.CharField... | [
"alkv84@yandex.ru"
] | alkv84@yandex.ru |
c49351323bd5706e1c5df7eba562dd7673b7e486 | 78fda83a9cd033d84e3ff47c8f9731b8ab3ff26d | /Scripts/part2.py | 9cff5153f59ef3e22aa7bc8b87b3ecc37cb50871 | [] | no_license | soham-shah/fireViz | 61bea14cfb97bfb51a85c49b4a0740b4f57d1161 | 3e00a2ec68585be443a7a6eb859870a4f1898360 | refs/heads/master | 2021-01-19T15:50:30.886862 | 2017-08-21T16:59:25 | 2017-08-21T16:59:25 | 100,973,269 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,549 | py | #!/usr/bin/python
import numpy as np
import pandas as pd
import os
import sys
sys.path.append("/curc/tools/x86_64/rh6/software/visit/2.10.0/2.10.0/linux-x86_64/lib/site-packages")
from visit import *
import time
def closeDatabases(indexString):
CloseDatabase("localhost:/projects/joki9146/week_13/Data_part2/wrfout_"... | [
"sohamshah225@gmail.com"
] | sohamshah225@gmail.com |
ce9556d7e5b4f79026943d6b28014f74995039fa | bc38678b79fee6d92c5fe73ce6a56854421f5b70 | /github_unit_1/Mod_5/sierra_python_module04-master orig/my_d_nesting.py | 071f108ecf481fca1ba89863f26d8c846301b9c2 | [] | no_license | JOYFLOWERS/joyflowers.github.io | 8a6f757595e4a0cdca621fa4210ac021a87de679 | c8417cd06489e04009a773c56f334ea629ff3905 | refs/heads/master | 2020-07-21T15:49:37.448128 | 2019-12-14T03:37:31 | 2019-12-14T03:37:31 | 206,913,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,536 | py | # List Nesting
# Since a list can contain any type of object as an element, and a list is itself an object, a list can contain another list as an element.
# Such embedding of a list inside another list is known as list nesting.Ex: The code my_list = [[5, 13], [50, 75, 100]] creates a list with two elements
# that ... | [
"noreply@github.com"
] | noreply@github.com |
75058d90ba45ab474f758745b9903f613016ee98 | 3fc107a60ecf2144333b23401716020f8c2c6b2c | /apps/mantenimiento_equipo/models.py | 88986d87fbd2fa651657ae39cef29373f9b84631 | [] | no_license | TulioRafaelCuadradoHoyos/tcuadrado_parcialbase | 8d00099f234bcb6f991ae0389a0792bead602e11 | 5818ffce00e6cb2322d0eb60ce2aca4200169214 | refs/heads/master | 2023-08-29T05:08:06.929208 | 2021-10-22T13:51:12 | 2021-10-22T13:51:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | from django.db import models
from apps import mantenimiento
from apps.equipo.models import Equipo
from apps.mantenimiento.models import Mantenimiento
# Create your models here.
class Mantenimiento_equipo(models.Model):
mantenimiento = models.ForeignKey(Mantenimiento, on_delete= models.CASCADE)
equipo ... | [
"tcuadrado@uniguajira.edu.co"
] | tcuadrado@uniguajira.edu.co |
e0d3ddf444f96456a667218432e68df52fe04514 | 3c515d48bba2bd4dc2ecd797aaf66aa5a1ebf596 | /app.py | 0e59b8ca4a0597b9a814d00fc0a6345534e30c3f | [] | no_license | jason2133/flask_ai_translator | 0696797644aec7a3eb9926efbba3deac9e820eaa | f3b3c1a934e2f8a1a4a551dd199c2ca5521835ac | refs/heads/master | 2023-07-17T06:16:59.938651 | 2021-08-25T17:29:51 | 2021-08-25T17:29:51 | 399,882,270 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,905 | py | import requests, os, uuid, json
from dotenv import load_dotenv
load_dotenv()
from flask import Flask, render_template
from flask import request
app = Flask(__name__)
@app.route('/', methods=['GET'])
def index():
return render_template('index.html')
# 서비스를 호출하는 코드
@app.route('/', methods=['POST'])
def index_post... | [
"jason2133@likelion.org"
] | jason2133@likelion.org |
16bc013e99ded0fe9f6941199abd40f35eefdcd6 | b3ae6dc41b1930856ad70ff8a7a618112ba6c256 | /nncf/definitions.py | 5ca5eb73b46fad0321415b2bbec131a428039c5e | [
"Apache-2.0"
] | permissive | RikAllen/nncf_pytorch | 05411fb9eb819971c5797524e6c09996b7a46aaa | db8c09d8a1f9efb6c22150ba285ce65bc879d88c | refs/heads/develop | 2023-01-14T01:55:04.938358 | 2020-09-16T15:00:14 | 2020-09-16T15:00:14 | 289,278,649 | 0 | 0 | Apache-2.0 | 2020-09-24T13:46:45 | 2020-08-21T13:39:04 | Python | UTF-8 | Python | false | false | 1,057 | py | """
Copyright (c) 2020 Intel Corporation
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 writin... | [
"noreply@github.com"
] | noreply@github.com |
1c03b9aee293d47ae2cf1cba8865ea237699d603 | b838762713aa551690532a7cdc8f2d4556766d2c | /sales/db/init_db.py | b8e0edfab3ff55a9fa9b11a2f0b07c7813ea6df7 | [] | no_license | dmitriyignatiev/api_peewee | 647ad98f9e3fda76e08f28eb4c2481f5a919db20 | 3d1a4a6830169a01302e37b7214ed0a1fad08ac1 | refs/heads/master | 2022-12-10T11:21:05.561156 | 2020-09-20T16:56:28 | 2020-09-20T16:56:28 | 297,037,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 655 | py | from sqlalchemy import create_engine, MetaData
from sales.db.db import question
from dynaconf import settings
DSN = f"postgresql://{settings.DB_USER}:{settings.DB_PASSWORD}@{settings.DB_HOST}:{settings.DB_PORT}/{settings.DB_NASE}"
def create_tables(engine):
meta = MetaData()
meta.create_all(bind=engine, tab... | [
"dmitriy.ignatiev83@gmail.com"
] | dmitriy.ignatiev83@gmail.com |
c5673a94f94f72233370c9935ad7b182c58ba065 | 47a98fed42dc2e0b589e3f08ff9342a3d924c7ac | /pyblog/XDG_CACHE_HOME/Microsoft/Python Language Server/stubs.v1/epXVRECNA2MadRw60lZ38aCPhTXzoduilN38-UtKc2M=/python.sys.pyi | cb99aafec30445a55c1b4a04ac86042755257854 | [] | no_license | mehedi432/python | bd1c592edd622ae435c9f81c0771684048290e0a | 725236e1b700ef41612ccf4f2aaccdf9bc1586d4 | refs/heads/master | 2020-06-06T22:31:44.548167 | 2019-06-28T07:15:27 | 2019-06-28T07:15:27 | 145,439,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36,814 | pyi | import _io as _mod__io
import builtins as _mod_builtins
import types as _mod_types
def __displayhook__():
'displayhook(object) -> None\n\nPrint an object to sys.stdout and also save it in builtins._\n'
pass
__doc__ = "This module provides access to some objects used or maintained by the\ninterpreter and to fu... | [
"aamehedi93@gmail.com"
] | aamehedi93@gmail.com |
6c1be986fca786a6854705ef2349ec7574a2437b | 36b6384001de57775b908234952d7f410402e715 | /main.py | 6260a322ce1f34873400488ad9182cb24be8b18e | [
"BSD-3-Clause"
] | permissive | furkankykc/AutomatedDocumentMailer | d3140660d3235ebe145f6a73abf4536f1cce920c | f5216e788f9570ed148652f83eb58d1f9a8ef5e8 | refs/heads/master | 2021-06-30T05:54:30.304651 | 2020-09-13T17:23:46 | 2020-09-13T17:23:46 | 130,085,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py |
from Mailer.loginform import LoginGui
from Mailer.gui import Gui
if __name__ == '__main__':
LoginGui()
# Gui('xbet')
| [
"furkankykc@gmail.com"
] | furkankykc@gmail.com |
439a6cef4d180ab24ddfab790d339f28dba304de | e0def6cfcef03922758940ee1d5ec7a891fafaf0 | /files/10_create_altered_rides_table.py | 6cb774324fdab5252ebc9c6141eaf892a3b221e4 | [] | no_license | DataLiftoff/Analysis_Of_The_Movement_Of_Rental_Bikes | 8705845379c20c12267429cd2fc0448e32133423 | f5656f247616ca84e2e9925a3437b3d86d7252a2 | refs/heads/master | 2023-01-05T08:54:17.745088 | 2020-10-01T21:46:20 | 2020-10-01T21:46:20 | 300,298,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,270 | py | ##### Import Libraries
# To load OpenStreetMap-data
import osmnx as ox
# To work with networks
import networkx as nx
# To connect to databases
from helperFunctions import Graph
from helperFunctions import alterRoute
from helperFunctions import connectZEO
from helperFunctions import connectMySQL
from helperFunctions ... | [
"noreply@github.com"
] | noreply@github.com |
80d9fb03a91fc8eae47a8e9b11cc9d472ab29f0b | 48285275958aba8f8f14ce505f03acf117870584 | /src/handlers/HandlerFactory.py | f961b917d06c235f64305e5deaa2a39e94088b0e | [] | no_license | rchuso/Python-Web-Server | 095609586c8fb403380752cd99408800d760d8e8 | 1fe8fdfc77d220923b8ebfafbc759bae1be4074c | refs/heads/master | 2021-05-17T18:54:09.141504 | 2020-04-02T06:23:16 | 2020-04-02T06:23:16 | 250,927,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,283 | py | '''
Created on 15/03/2020
@author: rand huso
'''
import os
from handlers.HandlerImage import HandlerImage
from handlers.HandlerText import HandlerText
from handlers.HandlerBad import HandlerBad
class HandlerFactory():
handlerTypes = {
'html': {'handler': HandlerText, 'type':'html', 'contentType':'text/html', ... | [
"rchuso@gmail.com"
] | rchuso@gmail.com |
e2274c4b1495ca6b6d568d9fbaeb1af253a5788c | 13e2726a6e25fd4020713c111fc7eb2f3018fc3d | /Product_recommendation/wsgi.py | c231d1b341a002954b6c6cd20d5a424ba336b998 | [] | no_license | Abishek-Balasubramaniam/Product-recommendation | e6d9bbf9e5c32cacda0bbb87d4a518fa26b36400 | e307d6e0eaa7ee1a070fff3ecbb41034f67d78ea | refs/heads/main | 2023-01-31T07:26:40.674404 | 2020-12-15T12:29:22 | 2020-12-15T12:29:22 | 321,660,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | """
WSGI config for Product_recommendation 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/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefaul... | [
"2903abi@gmail.com"
] | 2903abi@gmail.com |
7d6af601707ee714c69284f9139215e5417fc341 | 895700e89119ef4140befdc38588e51af48793cf | /Hongik_Class/Circular_List.py | 94a0053cfded54f194a6a56ee8db88555974e7b9 | [] | no_license | yoonsangmin/Coding_Test | d17096c5f867c21c05ddcbd854b2a0f32367611c | 122bccd2c584f4f2babad835ea22c12352f690c1 | refs/heads/master | 2023-01-08T06:47:53.276862 | 2020-11-13T01:42:36 | 2020-11-13T01:42:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,368 | py | #원형 리스트
#https://blex.me/@baealex/%ED%8C%8C%EC%9D%B4%EC%8D%AC%EC%9C%BC%EB%A1%9C-%EA%B5%AC%ED%98%84%ED%95%9C-%EC%9E%90%EB%A3%8C%EA%B5%AC%EC%A1%B0-%EC%97%B0%EA%B2%B0-%EB%A6%AC%EC%8A%A4%ED%8A%B8
#위의 코드 중 오류 수정 버전
#Node는 [ Data | Next ]
# <Head> <Tail>
# CircleLin... | [
"kacias@daum.net"
] | kacias@daum.net |
cb4b16dd237ab801af0b21ca00cf08970de29bf8 | e8c82271070e33bb6b181616a0a518d8f8fc6158 | /fce/numpy/distutils/tests/f2py_ext/tests/PaxHeader/test_fib2.py | a56021af7be6b185d62870db000c6c9d53082297 | [] | no_license | DataRozhlas/profil-volice-share | aafa0a93b26de0773fa6bf2b7d513a5ec856ce38 | b4424527fe36e0cd613f7bde8033feeecb7e2e94 | refs/heads/master | 2020-03-18T01:44:26.136999 | 2018-05-20T12:19:24 | 2018-05-20T12:19:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | 17 gid=713727123
15 uid=3629613
20 ctime=1458667064
20 atime=1458667064
23 SCHILY.dev=16777220
23 SCHILY.ino=31296593
18 SCHILY.nlink=1
| [
"honza@datastory.cz"
] | honza@datastory.cz |
372ffb8f05abddeea2704b81e3dfd8ba8d5fa88e | 236332a967f8f02291b58cab7addfeabdfe7b9a2 | /experiments/tests/testing_2_3.py | 207477ec55fb3dd07e0cb74d22864d4061c012cc | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ConsumerAffairs/django-experiments | 2dbf04b7f0e7ebdff6d5e7879afeb26f7fdb5150 | 4f1591c9b40390f7302f3777df231ffe3629f00d | refs/heads/master | 2021-01-20T11:10:30.199586 | 2018-04-20T21:26:18 | 2018-04-20T21:26:18 | 101,666,220 | 0 | 10 | MIT | 2018-04-20T21:26:19 | 2017-08-28T16:56:16 | Python | UTF-8 | Python | false | false | 218 | py | # coding=utf-8
try:
from unittest import mock, skip
except ImportError:
import mock
class DummyLockTests(object):
@classmethod
def new(cls):
test_class = cls
return skip(test_class)
| [
"fran.hrzenjak@gmail.com"
] | fran.hrzenjak@gmail.com |
7b04a97c368a3b4a75712cea5bdf04c07cc5ca00 | e833c155f1bbc446dbf83fe9d09eb2eeaf676cf6 | /Year1/CSCA48/Assignments/a1/a1_design.py | 83177c2b87e4902065241d535781d23bf53a8964 | [] | no_license | vincentt117/UTSC.CS | 116ebb41caaafbfaea8172d72c7fd507cfa771cb | ffa1a5bea2b85f3afe75b01830786bc584d2da06 | refs/heads/master | 2020-09-22T12:48:09.539263 | 2017-01-30T15:58:39 | 2017-01-30T15:58:39 | 67,225,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,249 | py | class Matrix():
''' A class which represents a mathematical matrix
'''
def __init__(self, content):
'''(Matrix, list of obj) -> None
Creates a matrix where a dictionary with keys as two element lists
containing the row (element zero) and column (element one) position
of the ... | [
"vincentteng@wifihost-82-190.wireless.utsc.utoronto.ca"
] | vincentteng@wifihost-82-190.wireless.utsc.utoronto.ca |
af891e3712afa7d736c6effa451ec60674ec01ed | 8504d656fa7badf8aba07ee4930c4d6b7b886e3c | /news_portal_api/wsgi.py | b6a9ff44f93ecdff4d45e8d9d0ac81e58d81b71a | [] | no_license | SarojRajTiwari/web_api_final | a35a8cb4f55b22cf661901ad12b31c878b7db0a6 | 2ed85ce6566b59e25f554c5a976202954317ca76 | refs/heads/master | 2022-12-12T06:44:13.643069 | 2019-12-02T07:50:07 | 2019-12-02T07:50:07 | 225,308,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | """
WSGI config for news_portal_api 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/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJAN... | [
"sarojrajtiwari5@gmail.com"
] | sarojrajtiwari5@gmail.com |
8596d664d4d312c1676cc07523a9763a6db80efd | 50364def388dfcf4015109cc634dc10fc205edb5 | /FaceVerify.py | 8d8e14c1a9a7324c471b99b5b31b72e26ae522d7 | [] | no_license | malhotraguy/traspod | 73bb18221226362035188cb6eade71d9de8ccc16 | 5d9fd5c9ea266bc6660f532a360cb7f538a50796 | refs/heads/master | 2021-01-24T01:13:51.033523 | 2018-03-01T21:57:23 | 2018-03-01T21:57:23 | 122,801,097 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,594 | py | import requests
from io import BytesIO
from PIL import Image, ImageDraw
import cognitive_face as CF
import urllib
import urllib.request as ur
import cv2
import numpy as np
import matplotlib.pyplot as plt
KEY = '6a294681f0f640f3a8b60b1c7de8ea85' # Replace with a valid subscription key (keeping the quotes in place).
CF... | [
"noreply@github.com"
] | noreply@github.com |
675458e68451063981849d73115b4a2e5e1566b7 | c48f3bb73f3ddda53619174fa1f81d42cd7bd0ca | /agent.py | ea6c262202157c3895d46d98c8186177a946266f | [] | no_license | hanhsienhuang/Gomoku | 8f04f0b897feb33ff233d370978bf27c1b36f97f | d7f2cb1f042c92675ca877472e7c4376da600992 | refs/heads/master | 2022-12-31T02:36:01.310759 | 2020-10-25T05:51:49 | 2020-10-25T05:51:49 | 307,036,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,392 | py | import networks
import torch
import torch.nn as nn
import torch.optim as optim
import numpy as np
from utils import is_in_range, list_add, print_board
import random
def choice2d(p):
i = np.random.choice(np.prod(p.shape), p = p.flatten())
return np.unravel_index(i, p.shape)
class Agent:
def __init__(self, ... | [
"hu8108@gmail.com"
] | hu8108@gmail.com |
a63f0922e59cac5a62214ffbe9d6b901f45c2afc | 844ac3a61068c6d60fbf2add52d927f29d3453c9 | /main.py | afde28c6164b8aff73edf7f88f59530d4b9e121b | [] | no_license | ilacombe2022/Rock-Paper-Scissors | 21cffa80802361b329d94358f528928a82089485 | efd0597ec8614070f7738ffaa0a0caf850bcca62 | refs/heads/main | 2023-03-22T10:42:37.247944 | 2021-03-11T17:38:50 | 2021-03-11T17:38:50 | 346,786,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,867 | py | import random
def choose():
choice = input("Shall we get started? [yes/no]: ").lower().strip()
if choice == "yes":
return choice
elif choice == "no":
print("We understand, thanks anyways.")
exit()
else:
print("That's not the answer we're looking for.")
... | [
"noreply@github.com"
] | noreply@github.com |
c243ec1a490acd1d8b165d7a7ddef83cc8088bf6 | 2c09e0fa8b9c84af6686962a8d8569af298573d7 | /client/GUI.py | 8c42ec4ee18b6ba646fd58bec03a55c3b0f80fd8 | [] | no_license | eldraco/Adeept_RaspClaws | 62e3dd4259e909c7eb5b9809e0815cf616277975 | 2d7c56016091678803410131ad328c2cae1b8256 | refs/heads/master | 2022-04-25T21:22:12.775696 | 2020-04-26T19:25:49 | 2020-04-26T19:25:49 | 256,761,979 | 1 | 0 | null | 2020-04-18T13:35:03 | 2020-04-18T13:35:03 | null | UTF-8 | Python | false | false | 25,732 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
# File name : client.py
# Description : client
# Website : www.adeept.com
# E-mail : support@adeept.com
# Author : William
# Date : 2018/08/22
from socket import *
import sys
import time
import threading as thread
import tkinter as tk
try:#1
import ... | [
"noreply@github.com"
] | noreply@github.com |
c63effbac0ae9a65a8e037ea99875dcf94ae1746 | 44e26d6e5ada8bc5fb9d000e86e4694615262bcd | /download_latest_build.py | 0a1c243fbbd71a64c4fc2ce7e7a65fd9d9fe1c28 | [] | no_license | symlib/clitest | 18c9d0475179b035a466d604a60fca52d5c63d84 | 524bd59f64d4754a760d483c9b7038647f442240 | refs/heads/master | 2021-06-21T21:20:53.031850 | 2017-08-22T01:04:19 | 2017-08-22T01:04:19 | 81,310,193 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,847 | py |
# initial version
# March 20, 2017
buildserverurl="http://192.168.208.5/release/hyperion_ds/daily/"
fcsserverurl="http://192.168.208.5/release/hyperion_ds/fcs/"
tftpserver="root@10.84.2.99:/work/tftpboot/"
serv = "MjExLjE1MC42NS44MQ=="
u = "amFja3kubGlAY24ucHJvbWlzZS5jb20="
p = "NzcwMjE0WHA="
import requests
from bs... | [
"jacky.li@cn.promise.com"
] | jacky.li@cn.promise.com |
b6191a17aaf91109773e1e4d016a0f29112fe0f6 | d46bae120d44ccec2ac00aa6f7bf2bde744dde73 | /venv/bin/python-config | 570bc983cb0570a1347c2d2bb79d4ba0f54f6602 | [] | no_license | Link-yu/FlaskProject | 9f5bbe4596e2a6212cc8764b36348d9326e5b014 | e3d560067a5ca6d7e4cccc626ea56b9179b0340d | refs/heads/master | 2020-12-02T09:59:53.753105 | 2017-07-11T12:24:45 | 2017-07-11T12:24:45 | 96,673,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,353 | #!/home/yupaopao/myPythonProject/venv/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if sys.versio... | [
"kevinyulk@163.com"
] | kevinyulk@163.com | |
4e72b71582b2240f32ecf38474428072ef1b7413 | 9e7b9e91b8425061a5ad36e0dd630a799ec79f6f | /opencv_cookbook.py | 49d0d5b8c67cdd2753d61353ec3e42ef9014ce83 | [] | no_license | OlgaBelitskaya/colab_notebooks | c27fad60f7e4ca35287e2561487b5d9d82efde43 | d568149c8bcfb0025f7b09120ca44f639ac40efe | refs/heads/master | 2023-07-07T23:02:49.289280 | 2021-08-14T08:16:38 | 2021-08-14T08:16:38 | 158,067,383 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,397 | py | # -*- coding: utf-8 -*-
"""opencv_cookbook.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1GD7Oi1LtFaEi8VOjiBM5cj5ayWpaejaf
# OpenCV Cookbook
## Libraries & Color Tools
"""
import warnings; warnings.filterwarnings('ignore')
import urllib,cv2
fr... | [
"safuolga@gmail.com"
] | safuolga@gmail.com |
f6bb5a74f05f10651cae3ee6b1e226e5f896c8de | 65e0c11d690b32c832b943fb43a4206739ddf733 | /bsdradius/tags/release20060404_v_0_4_0/bsdradius/Typecast.py | 436a5e6ae0899419c20edf50298dd09eb597dcaf | [
"BSD-3-Clause"
] | permissive | Cloudxtreme/bsdradius | b5100062ed75c3201d179e190fd89770d8934aee | 69dba67e27215dce49875e94a7eedbbdf77bc784 | refs/heads/master | 2021-05-28T16:50:14.711056 | 2015-04-30T11:54:17 | 2015-04-30T11:54:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,761 | py | ## BSDRadius is released under BSD license.
## Copyright (c) 2006, DATA TECH LABS
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
## modification, are permitted provided that the following conditions are met:
## * Redistributions of source code must retain the above c... | [
"valdiic@72071c86-a5be-11dd-a5cd-697bfd0a0cef"
] | valdiic@72071c86-a5be-11dd-a5cd-697bfd0a0cef |
a81b7b040209bbe9e4e5f1677ea8da5097ef6593 | 906297c4f691b03e65b454bf9c12ab0331e53589 | /cron/tasks.py | b05b58e0b7ff3f2b13ed3fe898d4431d67695957 | [] | no_license | unamatasanatarai/django-movie-theater | 5798a54044a889c71f937865fe3adfbe477eb6ab | 7d0cd27738b330bfe67eef1a35d2827c2137a222 | refs/heads/master | 2021-01-23T15:07:47.382052 | 2017-09-07T06:33:13 | 2017-09-07T06:33:13 | 102,700,159 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 956 | py | from celery import task
from theater.models import SeatTentative, SeatBooked
from datetime import datetime, timedelta
from rest.communicate import Communicate
@task()
def trim_tentative():
elements = SeatTentative.objects.filter(created_at__lte=(datetime.now() - timedelta(minutes=3)))
movie_ids = elements.val... | [
"piotr.grabowski@interak.pl"
] | piotr.grabowski@interak.pl |
a135ba849e3b4b36122c67ab34cbc6fde8d2f519 | 702c7b618951339f31b4161f55bbbd8f3ffd7811 | /hw1/hw1.py | 94d3f51e7f777b1727c9f5569e4fa7bc34d19109 | [] | no_license | erhla/machine-learning | 839f581676cb003d304a2f6efc0528885fce993c | 6e9bb6fa377a91039695a717f932f14e5f2214d9 | refs/heads/master | 2020-05-04T23:31:05.531591 | 2019-05-29T20:12:28 | 2019-05-29T20:12:28 | 179,546,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,773 | py | '''
Homework 1
Eric Langowski
'''
import pandas as pd
from sodapy import Socrata
import geopandas
import shapely
#Problem 1
CRIMES_18 = '3i3m-jwuy'
CRIMES_17 = 'd62x-nvdr'
CENSUS_TRACTS = '74p9-q2aq'
def get_crime_data(cid):
'''
gets crime data from City of Chicago API
'''
client = Socrata('data.cityo... | [
"langowski@cs.uchicago.edu"
] | langowski@cs.uchicago.edu |
76eac8484a0e0f4385ec8d7a7a8100f4be7cd089 | d6fa7b19190e83447ac7456ccce5e0d8ae7de4f0 | /move.py | dd11292061947f3145cb005a2f669d9ce85a0b32 | [] | no_license | VariousMilkshakes/GRID-py | ffcabd35bd421ca56d1486f7b75c875d073940bc | d243be07016742ab129cb0e48ae64c0f5e0733fa | refs/heads/master | 2016-08-08T04:03:47.105610 | 2013-07-04T21:32:37 | 2013-07-04T21:32:37 | 11,161,532 | 0 | 0 | null | null | null | null | ISO-8859-4 | Python | false | false | 3,402 | py | # -*- coding: cp1252 -*-
from random import randint
import sys
print "Welcome to the this Test"
print "This is test 2: Sam like Woffles!"
print
gY = input("How tall do you want your grid?")
gX = input("How wide do you want your grid?")
oY = gY
oX = gX - 2
Xinput = input("Where do you want to start? (X)")
Yinput = in... | [
"bn.gladstone@gmail.com"
] | bn.gladstone@gmail.com |
e36bbc0c4240de429927358094f5d3cd4c54a838 | f7e4ba62191d39b050eab6cbf196c9000751a779 | /examples/function_param.py | b285fc9ff46f8f155c969867b438a10ade9d1976 | [] | no_license | heimo-tiihonen/hello-world | 04bdc59f7806b9c851adf43dfa6312ed219bac79 | b1d513242a0511f1866874cec9b410484b186038 | refs/heads/master | 2021-01-09T06:16:34.729181 | 2017-02-04T19:41:57 | 2017-02-04T19:41:57 | 80,949,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | def print_max(a, b):
if a > b:
print(a, 'is maximum')
elif a == b:
print(a, 'is equal to', b)
else:
print(b, 'is maximum')
# directly pass literal values
print_max(3, 4)
x = 5
y = 7
z = 'Testi'
# pass variables as arguments
print_max(z, y)
| [
"heimo@dsl-espbrasgw1-50dfb2-69.dhcp.inet.fi"
] | heimo@dsl-espbrasgw1-50dfb2-69.dhcp.inet.fi |
8de1127722d96b24e0ea4a854844cb853d233569 | 7193be8e52b2095d8b6472f3ef2104843dca339e | /Project5-Capstone/the_dummy_variables/josh/testing/test_relative_path.py | 1f24c6af184d5ae1c59feb6189e85136b5bb7ee5 | [] | no_license | vuchau/bootcamp007_project | 4b0f37f49a1163ea6d8ee4143a5dcfdef0d352dd | ffbd0f961b18510fc72fd49770187ec1b4b013ae | refs/heads/master | 2020-03-20T13:19:58.812791 | 2017-06-08T05:13:24 | 2017-06-08T05:13:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | import os
file_dir = os.path.dirname(__file__)
print file_dir
dirname = os.path.dirname
print dirname(dirname(os.path.abspath(__file__)))
| [
"jlitven@gmail.com"
] | jlitven@gmail.com |
88ea9f503fbe4878090275c2480106a7648b48f2 | f94e4955f9d16b61b7c9bff130b9d9ee43436bea | /labs/lab06/lab06.py | 1c1dac20000f742c21337b538d3d8ac3b9563bc4 | [] | no_license | j2chu/dsc80-sp19 | bd1dade66c19b920a54b0f8551fd999185449f86 | dd48210a7cbadfb6470104b275f34085437e4766 | refs/heads/master | 2020-06-01T23:22:32.727488 | 2019-06-07T01:46:11 | 2019-06-07T01:46:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,275 | py | import os
import pandas as pd
import numpy as np
import requests
import bs4
import json
# ---------------------------------------------------------------------
# Question # 1
# ---------------------------------------------------------------------
def question1():
"""
NOTE: You do NOT need to do anything wit... | [
"aaron.fraenkel@gmail.com"
] | aaron.fraenkel@gmail.com |
090b3c526b14fc85e5ddfe57bd932deff3860bf7 | 9d4bf5f90cd0a8eb97e7e48a0545f349c3b17b45 | /1-100/Letter_Combinations_of_a_Phone_Number.py | f86071b4c06a57181e25e64c02981526a3a4edc6 | [] | no_license | Ys-Zhou/leetcode-medi-p2 | 8201a6d1ee7e4cb6fe8bc9516530a8b8b3e26e8c | df3495d0bc504237305b11974906f27f8fd124e9 | refs/heads/master | 2021-10-07T09:07:28.974814 | 2018-12-04T09:23:21 | 2018-12-04T09:23:21 | 111,872,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | # 25 / 25 test cases passed.
# Runtime: 36 ms
class Solution(object):
def letterCombinations(self, digits):
"""
:type digits: str
:rtype: List[str]
"""
if digits == '':
return []
letters = {'2': ['a', 'b', 'c'],
'3': ['d', 'e', 'f'],
... | [
"zhouyan1993ys@gmail.com"
] | zhouyan1993ys@gmail.com |
bc95461ad6fdc0ef95c4d671c174b643f840fd99 | 3354e6bdd4aeb2ddec84e6a8036c90cd24b6577a | /(구)자료구조와 알고리즘/(구)Quizes/backjoon/back_1002.py | b90ab7cd42413d530cb002dd703cd4c028e3c9d1 | [] | no_license | hchayan/Data-Structure-and-Algorithms | 1125d7073b099d8c6aae4b14fbdb5e557dcb9412 | be060447e42235e94f93a0b2f94f84d2fd560ffe | refs/heads/master | 2023-01-05T10:15:02.862700 | 2020-11-04T08:16:56 | 2020-11-04T08:16:56 | 209,513,516 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | import sys
import math
n = int(sys.stdin.readline().rstrip())
def getAns():
x1, y1, r1, x2, y2, r2 = map(int, sys.stdin.readline().rstrip().split())
leng = math.sqrt((x2-x1)**2+(y2-y1)**2)
if r1 == r2 and x1 == x2 and y1 == y2:
return -1
if r1 > r2:
r1, r2 = r2, r1
if leng > r1+r2:
return 0
elif leng =... | [
"k852012@naver.com"
] | k852012@naver.com |
d23876d3a93f905357e7be2a1449341ef64f86a7 | f4718efa9d34fabad15f1b4ef856c4639eb6e718 | /Test.py | 0f3fceb541fd26b23c09661bee50a64c921d957e | [] | no_license | wilee1224/Data_wrangling | 98faa7428da2ec28dba5ad524d811bfadaf2db2b | ba4d88a987a38a4c1850f2954073d423300f1652 | refs/heads/master | 2020-03-12T04:14:49.194795 | 2018-08-06T12:24:57 | 2018-08-06T12:24:57 | 130,441,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | import xlrd
book = xlrd.open_workbook("SOWC 2014 Stat Tables_Table 9.xlsx")
for sheet in book.sheets():
print sheet.name
| [
"wilee1224@gmail.com"
] | wilee1224@gmail.com |
bfce90df81d846a317456efccf614e1b2558a113 | 495fbb4b87586186480826273abf55b947d9c366 | /Adivinar_el_numero.py | 989c64be349a9c164f29fa88863b8a2871297b8a | [] | no_license | GitBis/-FP-_Labo06_-00370819- | d7b777a76096e7936e5114b10516876f11f360b0 | 074166f4caefc9a3e4cbd214e40df6556f4dfd24 | refs/heads/master | 2020-08-13T04:06:13.414501 | 2019-10-16T05:53:26 | 2019-10-16T05:53:26 | 214,902,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | import random
print("ADIVINA EL NUMERO")
comprobar = True
contador = 1
while comprobar == True:
n = int(input("Ingrese un numero del 1 al 10: "))
if n > 0 and n < 11:
all = random.randrange(1,10)
if n == all:
print(all)
print(f"numero de intentos: {contador}")
else:
... | [
"00370819@uca.edu.sv"
] | 00370819@uca.edu.sv |
77fdcf1dbfc3a529545552210737968c88bf404b | ffaeaf54e891c3dcca735347f27f1980f66b7a41 | /python/1.POP/1.base/01.helloworld.py | 015e87763fe1f07c2320ce7fe71f056ea13d317c | [
"Apache-2.0"
] | permissive | dunitian/BaseCode | 9804e3d8ff1cb6d4d8cca96978b20d168072e8bf | 4855ef4c6dd7c95d7239d2048832d8acfe26e084 | refs/heads/master | 2020-04-13T09:51:02.465773 | 2018-12-24T13:26:32 | 2018-12-24T13:26:32 | 137,184,193 | 0 | 0 | Apache-2.0 | 2018-06-13T08:13:38 | 2018-06-13T08:13:38 | null | UTF-8 | Python | false | false | 970 | py | '''三个单引号多行注释:
print("Hello World!")
print("Hello World!")
print("Hello World!")'''
"""三个双引号多行注释:
print("Hello World!")
print("Hello World!")
print("Hello World!")"""
# 单行注释 输出
print("Hello World!")
# 定义一个变量并输出
name = "小明"
print(name)
print("x" * 10)
print("dnt.dkill.net/now", end='')
print("带你走进中医经络")
print("dnt.d... | [
"39723758+lotapp@users.noreply.github.com"
] | 39723758+lotapp@users.noreply.github.com |
4b8450ca316cbf700f09c76a6c374e71ef1ce7c9 | 62b78ad6d3ec041ad20e4328d1730d815c9e35f1 | /Twosteps.py | 8c659c092569737b987696cb0d9e96f753e7dd19 | [] | no_license | Jamshid93/ForLoops2 | 7fe5b3240370d88a888f2d4609fb6d7787965a4d | 296de0ccc51872001e45e20926b91a4528abd7a5 | refs/heads/master | 2022-01-26T05:22:18.206075 | 2019-07-20T04:12:37 | 2019-07-20T04:12:37 | 197,874,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | for item in range(3, 14, 2): # this is code result 3,5,...13. Because after 14 writin 2
print(item) | [
"hamzayevjf@gmail.com"
] | hamzayevjf@gmail.com |
e9eef0ae487bb90ae983c14902b33bc6d26c7a4f | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/429/usersdata/313/105928/submittedfiles/jogoDaVelha.py | 6702e638a0b195b5ad2f3fe0c84a675088f19cc5 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,102 | py | print (" BEM-VINDO AO JOGO DA VELHA ")
print("O primeiro jogador será o (X) e o segundo o (O) ")
posicao = """ posicoes do jogo
1 | 2 | 3
-----------
4 | 5 | 6
-----------
7 | 8 | 9
"""
print (posicao)
posic... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
67f1386cbcd7aa7765debd357ae2e31c5ecdad81 | 8ab2c341b570e26c8a06e7c5e9e95e3e2a108aba | /build/tasks/catkin_generated/pkg.installspace.context.pc.py | 1a3ac85d66d27b61334ac967aed258bf919d3a93 | [] | no_license | Aquavaders/Vader3-Control | c6429d58d208f303d5ed309c488d06f140ab08b5 | 8523e7ddda78b747106586bacfac14e99201741b | refs/heads/master | 2020-07-29T04:01:25.852450 | 2020-02-27T20:04:36 | 2020-02-27T20:04:36 | 209,660,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "tasks"
PROJECT_SPACE_DIR = "/home/ala... | [
"AlaaAnani"
] | AlaaAnani |
79115cc0889d1e2a25aaab0b5bb5644d6b83c037 | a4b621ef4230c27ddec5a4c1290f2e0c57e40019 | /AK_RPversion.py | 29bbcef2ed0e84d3c5f66352b6551262107c1064 | [] | no_license | EliReid/4Button-Expert | 54479297f168fe534a9e5866ba267968337c0011 | f5971182a467fc0ff507d7a4ec4904d03803a56e | refs/heads/master | 2020-04-28T12:08:03.942819 | 2019-02-21T22:15:56 | 2019-02-21T22:15:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,752 | py | ## uses only RP and AK planning units and unit tasks, so far
## perception of the game is hacked, so far
import sys
sys.path.append('/Users/robertwest/CCMSuite')
#sys.path.append('C:/Users/Robert/Documents/Development/SGOMS/CCMSuite')
import ccm
from random import randrange, uniform
log = ccm.log()
# log=ccm.log(ht... | [
"noreply@github.com"
] | noreply@github.com |
5bec3ae23b68e6c2e0be46181e3e6e1f669fcd98 | 7518d339026e523ca99e77b7b49edfe71b7da5c5 | /main.py | 8b72a3d7569f8ca47bb5852ececdb44cac03e96b | [] | no_license | SP185221/FileAgent_Client | 475c76ed2ab3a705b8643708f3e24f629661b57b | 188d4d509c2d127afed8736d26b74805284e4b70 | refs/heads/main | 2023-07-25T08:03:22.780456 | 2021-09-02T16:18:01 | 2021-09-02T16:18:01 | 402,486,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,751 | py | import socket, tqdm
from tkinter import*
from threading import Thread
from tkinter import filedialog
import requests
import wget, os
from PIL import Image
from time import sleep
from zipfile import ZipFile
#import pm_app_fxn as pm
output1 = ['']*1
list_of_sent_files = []
class main_App(Thread):
def __init__(self... | [
"noreply@github.com"
] | noreply@github.com |
78bdca14128518d133ddf2e80c557c7d2e26fd7f | 933493356546a769dda5c67f0a89eed9c970afa8 | /ch6/q57.py | e42bbe6997419cc37dcd0703bfc6f51610b9fcca | [] | no_license | irtfrm/NLP100 | 233aa3b76d14dd89fe1d8f6d2e204ca3566bd5f5 | ee0acedf7d2b00fe23f457120313d621fd1f098f | refs/heads/master | 2021-08-06T09:47:38.238306 | 2020-06-05T08:18:08 | 2020-06-05T08:18:08 | 184,555,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 925 | py | import xml.etree.ElementTree as ET
def gets_dot(tokens, deps):
ans = 'digraph {\n'
ans += ' token%s [label="%s"];\n' % (0, 'ROOT')
for token in tokens:
ans += ' token%s [shape=box, label="%s"];\n' % (token['id'], token['word'])
for dep in deps:
ans += ' token%s -> token%s;\n' % (dep['governor... | [
"furukawa.tomoya@g.mbox.nagoya-u.ac.jp"
] | furukawa.tomoya@g.mbox.nagoya-u.ac.jp |
0c3d4e6d095391de301cf46bf58d774a8b2830a2 | 3a12b346c87b05dac63951b3bc9cdd882d5ec9ed | /com/huai/learning/customLoss.py | 5fe805bc9a0714a658b8ffb5710a0f4cfedfc37e | [] | no_license | namebxl/my_tensorflow | 96005d656d33cdb5a8c4a54380adbff5ba697d6f | 43e7ccdc94125b125476747b1897795171ad4358 | refs/heads/master | 2021-06-30T02:51:26.574885 | 2021-01-20T08:05:51 | 2021-01-20T08:05:51 | 213,275,207 | 0 | 0 | null | 2019-10-07T01:52:24 | 2019-10-07T01:52:24 | null | UTF-8 | Python | false | false | 1,002 | py | import tensorflow as tf
from numpy.random import RandomState
batch_size = 8;
x = tf.placeholder(tf.float32, shape=(None, 2), name="x-input")
y_ = tf.placeholder(tf.float32, shape=(None, 1), name="y-input")
w1 = tf.Variable(tf.random_normal([2, 1], stddev=1, seed=1));
y = tf.matmul(x, w1);
loss_less = 10;
loss_more ... | [
"1757153156@qq.com"
] | 1757153156@qq.com |
4345a2c669d02154dade74de723eb3affdd3c2a8 | 07252bc9ce0ba693e8c3cd0ad969ab7e9f336083 | /apps/posts/forms.py | d2e808cc4daa9f7550ad748f64978972f26c3e4b | [] | no_license | Bakal1990/project | 9f038ae2f821e737ae3cd39e3c4d1efcf8db90e1 | 3673c621383f8366572b083be203f49074eba55e | refs/heads/master | 2020-12-25T19:26:10.888707 | 2015-02-16T19:31:09 | 2015-02-16T19:31:09 | 30,318,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | from django import forms
from .models import Post
from profiles.models import User
class LikePostForm(forms.Form):
post_id = forms.CharField()
user_id = forms.CharField()
def clean_post_id(self):
post_id = self.cleaned_data.get('post_id')
return Post.objects.filter(id=post_id).exists()
... | [
"molotovxiii@gmail.com"
] | molotovxiii@gmail.com |
4b9670f8ab0b81af5668d3c702c93f533e2797c4 | 48581671e6fe9f59633aa9527c07d2724783a45c | /backend/Sunshine/api/urls.py | 13f6022e5be3c9148cab22057ca78eec281224c2 | [] | no_license | suma2001/SeniorSunshine | 14fdcf22877c30d3f81d0f159c3b91df91e5bc44 | 54274d3b2f1a87fcb8926313a32bc4234fe48572 | refs/heads/master | 2023-02-03T03:24:26.871423 | 2020-12-11T14:08:02 | 2020-12-11T14:08:02 | 320,590,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,661 | py | from django.urls import path
from .views import *
from rest_framework.urlpatterns import format_suffix_patterns
from rest_framework.authtoken import views
from knox import views as knox_views
urlpatterns = [
path('register/', RegisterAPI.as_view(), name='register'),
path('login/', LoginAPI.as_view(), name='log... | [
"sumashreya.t18@iiits.in"
] | sumashreya.t18@iiits.in |
24966601f3f870f304dc6d67df48fa497d89c512 | 46d04bd3a1f8d53b147133b4b7a8c0c4fa58d9cd | /app/views.py | 2b2d2323ce93f7cddcf6e68625ba576e2bd2e6e0 | [] | no_license | RitikaSethiya/TB-strategic-planning-Web-App | f2c63d97413d1c384b591948cf812ac8dcf071c1 | be1b9b3f5d510696cd8a76160426977032d27ed1 | refs/heads/master | 2022-08-13T19:10:01.334557 | 2020-05-11T11:59:40 | 2020-05-11T11:59:40 | 263,017,987 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,346 | py | # -*- encoding: utf-8 -*-
"""
License: MIT
Copyright (c) 2019 - present AppSeed.us
"""
# Python modules
import os, logging
import pandas as pd
import numpy as np
import requests
import base64
import pickle
import json
import tablib
# Flask modules
from flask import render_template, request, url_for, red... | [
"ritikasethiya99.rs@gmail.com"
] | ritikasethiya99.rs@gmail.com |
b91cd725562befb469c66d4ce9802baecaa2cf54 | e999577db526bdc87ab83d30d393e06f921c2326 | /multiagent/multiAgents.py | 2dab318ae711f77bae0c426c49a25673c4ad1a2c | [] | no_license | anant-k-singh/Pacman-AI | e4a630de420ad942fef8b0c5ab0d6799859c0737 | 503730f7baa5fac690cedcd6f65cc592bb7758c3 | refs/heads/master | 2022-01-22T18:23:32.347366 | 2019-07-31T17:24:26 | 2019-07-31T17:24:26 | 115,016,037 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,272 | py | # multiAgents.py
# --------------
# Licensing Information: You are free to use or extend these projects for
# educational purposes provided that (1) you do not distribute or publish
# solutions, (2) you retain this notice, and (3) you provide clear
# attribution to UC Berkeley, including a link to http://ai.berkeley.e... | [
"anant02sep@gmail.com"
] | anant02sep@gmail.com |
1cdb9ccb8eb20c40eb3ca82b06c082532bc3b005 | db2e1604cdd45df402b93cd72b36e1995f0ded57 | /baidu_baike/baidu_baike/middlewares.py | 69c61f1ce3dc83c9f549186ad6a2fc5baa47e026 | [] | no_license | JimyFengqi/baidubaike | 9bd558bea58d728ef1d256aa9746978b058a138f | 6bf6114494db485107f8869ed79ec70200ed26c2 | refs/heads/master | 2020-04-07T10:46:12.906874 | 2018-04-26T07:52:49 | 2018-04-26T07:52:49 | 124,205,144 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,605 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class BaiduBaikeSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# scra... | [
"jmps515@163.com"
] | jmps515@163.com |
43ded90cced3f1255adfe6cd098a2966f73fb180 | 42705b3049418c3dc2815a0262aa814c6a2e3d9e | /feat_eng/funcs.py | dcc248c03ab3520bd17e5e378f3b4fea24b3f0f4 | [] | no_license | ppiont/cnn-soc-wagga | 617f4a0fecd6ac0b7d6fac2cb7171df9bfbf74a2 | 5152faf59c38c4b168a1dc9639fa8d13c16a91cd | refs/heads/master | 2023-07-11T09:01:08.786970 | 2021-08-14T12:17:09 | 2021-08-14T12:17:09 | 257,276,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,506 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Nov 30 18:32:01 2020.
@author: peter
"""
import numpy as np
def min_max(array, axis=(0, 1, 2), rm_no_variance=True):
"""Min-max scale an array and optionally remove features with no variance.
Parameters
----------
array : ndarray
... | [
"piontek0@gmail.com"
] | piontek0@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.