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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cac26fe53126cbc8d9f1890a5eb47aa89c59b35b | d998988cb9f6f73be4f5b3cc302424119f66c856 | /MGITGatePass/basic_app/migrations/0005_auto_20191217_2052.py | 78882130aea3599e56d61a033f94c7640406fed3 | [] | no_license | sai-sambhu/MGITGatePass | cab9ea545f8b8c5fd959613b364dd161c416fab5 | a14ad7fb79163c1c53d81a5732d2ac0e1ec5544e | refs/heads/master | 2020-11-26T00:51:49.287696 | 2019-12-18T20:02:49 | 2019-12-18T20:02:49 | 228,912,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 645 | py | # Generated by Django 2.2.5 on 2019-12-17 15:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('basic_app', '0004_auto_20191217_2031'),
]
operations = [
migrations.AddField(
model_name='studentprofileinfo',
name=... | [
"saisambhuprasad@gmail.com"
] | saisambhuprasad@gmail.com |
ee1a31f88eeb3c7e9f45e9d6e74e4f4ac8581dbf | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_381/ch15_2020_09_14_14_10_44_836878.py | 03149e67069cc3803fab0866de1f386bfbe66feb | [] | 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 | 177 | py | def chris(nome):
if chris == nome:
return 'Todo mundo odeia o Chris'
else:
return 'Olá, {0}'.format(nome)
nome = input('Qual seu nome?')
| [
"you@example.com"
] | you@example.com |
2e89c56bda2683eb9350f7721d4902cb212adae9 | 0bd2de354c696939fedcecb72c924eaa95feb5b2 | /job/views.py | 41186e674e7661a4fa1918f1f8466c05446a4a6b | [] | no_license | RishabhVerma098/personel-portfolio | 94a0643e522d8c43082712b8c0ec5f9094abebc8 | c11aca5b878a5d7490c7159f3b447a45013a5d04 | refs/heads/master | 2021-07-17T09:45:38.546492 | 2019-02-09T14:28:20 | 2019-02-09T14:28:20 | 169,574,563 | 0 | 0 | null | 2020-06-07T14:32:31 | 2019-02-07T13:18:29 | HTML | UTF-8 | Python | false | false | 190 | py | from django.shortcuts import render
# Create your views here.
from .models import jobs
def home(request):
job = jobs.objects
return render(request, 'job/home.html', {'jobs': job})
| [
"vermarishabh0987@gmail.com"
] | vermarishabh0987@gmail.com |
8bdf10e79cd099752ace442f1093c5d4cfb72eca | a985414206b78dd6e15b485f1881287da6f67895 | /app/__init__.py | 4ad6d80e134bc4d66d4ae9840d13c461da368b7e | [] | no_license | arangurenalonso/hackathon_sem11 | 927873c0010e02f5247b47eae2cbc882b3f03042 | 1d2810871f491e96cd414390234af9f6f560421f | refs/heads/main | 2023-03-22T00:47:33.853778 | 2021-03-12T21:10:20 | 2021-03-12T21:10:20 | 347,198,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,165 | py | from flask import Flask
from pathlib import Path
from config import Config
from flask_restx import Api
from app.category.categoryResource import CategoryResource, CategoriesResource, category_ns, categories_ns
from app.producto.productoResource import ProductResource, producto_ns
app = Flask(__name__)
app.config.fr... | [
"aranguren.alonso@gmail.com"
] | aranguren.alonso@gmail.com |
191a36449075d84cb10df8758f93f23b02e0ef64 | cfb33b4a1216387c8417af9d04058b87e5d557a9 | /Neutrons/Fast/1SourceMLEM.py | 0d28aff7eb59e63f5c07e39fb4835a1fb576910b | [] | no_license | loomisdevon/DRRSMask | 8c3428acbab7095e8df29008d73d5ab4e7d17b0c | 181955f68b0043a02b38e14b29654779a220b40a | refs/heads/master | 2023-01-15T03:46:43.478169 | 2020-11-26T06:37:36 | 2020-11-26T06:37:36 | 277,006,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,054 | py | # Dual Rotating Radiation Scattering Mask MCNP Code
# Rotate neutron and gamma flux from 0 to 2PI around mask and return signal received from detector
# Authors: Ivan Novikov and Devon Loomis
import os
import os.path
import math
import fileinput
import shutil
import subprocess
import io
import string
import numpy ... | [
"devon.loomis@scientic.com"
] | devon.loomis@scientic.com |
5ab61d683509ed50cb0997df3f6350787fa30c58 | e30afd7f5166afed9ebfd740765d74a152175f54 | /algorithm-40case/leetcode_exercise/add_two_numbers.py | 9851649b651ca875717c0399a4c9ef6a092d3e53 | [] | no_license | wqdchn/geektime | 214c4ee627023723585ddbc66f3066f816a4fc76 | d953f631d93a4493aed26392954ca1f18a440938 | refs/heads/master | 2021-12-27T16:19:03.680654 | 2021-12-26T11:21:35 | 2021-12-26T11:21:35 | 174,132,464 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 977 | py | # @program: PyDemo
# @description: https://leetcode.com/problems/add-two-numbers/
# @author: wqdong
# @create: 2019-10-01 14:31
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
def addTwoNumbers(self, l1: ListNode, l2: ListNode):
divmod... | [
"wqdong.chn@gmail.com"
] | wqdong.chn@gmail.com |
af6c43ee70e8b9d1ae987c97a80ae8707f4b001e | 59dbbdf5d29d2490ec8a697dc137aa7456479e89 | /usage/meta.py | 492a6b0640a3b1458ec28a2c5f9d8bdf040928ea | [
"Apache-2.0"
] | permissive | absalon-james/usage | 15d424599528bec7d3184a72b5e9754c325e46ed | a67ceddda8a14244526b3b3a40c0c3feec7035d2 | refs/heads/master | 2021-01-21T14:58:06.023114 | 2016-10-03T20:56:16 | 2016-10-03T20:57:46 | 57,158,746 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | version = '0.1.2'
description = "Python tool for collecting usage information from ceilometer."
| [
"james.absalon@rackspace.com"
] | james.absalon@rackspace.com |
975d016f867e515a5d0d42fecfb3e22ccc3a61ff | 55ddcae82338890a7101b2ff6db0856463702314 | /perfectcushion/shop/admin.py | 1ac35dfa7e64e770e7c84c4021ff8ced72dc2336 | [] | no_license | rixinhaha/DjangoEcommerce | d31d6e8c7a4a40ba3f32d0e27ef203c59475c1dc | 0e3a188e8276bbfb63901747f553dd2ab483c284 | refs/heads/master | 2020-08-03T21:18:14.750498 | 2019-09-30T15:30:09 | 2019-09-30T15:30:09 | 211,887,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 546 | py | from django.contrib import admin
from .models import Category,Product
# Register your models here.
class CategoryAdmin(admin.ModelAdmin):
list_display = ['name', 'slug']
prepopulated_fields = {'slug':['name',]}
admin.site.register(Category, CategoryAdmin)
class ProductAdmin(admin.ModelAdmin):
list_display... | [
"rixinhaha@gmail.com"
] | rixinhaha@gmail.com |
41e2a093e82ce2eb956957ab8d320d97248524fb | 1a1a10576c4fabe2879feb00393fe8d3f5211d9b | /todo/settings.py | dfb08b572fb8286e00d5acfcf40919ff7f4a9f4c | [] | no_license | Machele-codez/todo-by-machele | 8a50e7e6f9e560ba40dd7816f1c34324cf4c4f8d | f96903f24a5fdfb587cbf04977b0c2aaf5a92879 | refs/heads/master | 2022-09-13T02:42:36.410948 | 2020-06-03T19:59:33 | 2020-06-03T19:59:33 | 269,172,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,336 | py | """
Django settings for todo project.
Generated by 'django-admin startproject' using Django 2.2.7.
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
# Bu... | [
"smithbeblack@gmail.com"
] | smithbeblack@gmail.com |
3cd6e2099d0754d1a415a93ab25595f0ada97a68 | 77909a8a93f60759e0fd32fb632d937c7c8d4d68 | /curso_em_video_exercises/desafio10.py | c1c5bc683719ab4335f0251c26bf81cd73603c19 | [] | no_license | euricoteles/python | 13e39bf0b5916b69794dac39dc55a213b5443718 | dae10d87a9923646dd8257a2ce3da91dc355b603 | refs/heads/master | 2021-09-04T14:51:47.147309 | 2018-01-19T16:57:27 | 2018-01-19T16:57:27 | 116,609,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | # Crie um script que leia quanto dinheiro uma pessoa tem na carteira e converter em dolares.
# variables received by input
valor = int(input('Qual o valor para converter em dolares:'))
dolares = (1.18*valor)/1
# print information
print('O valor em dolares fica : {}'.format(dolares)) | [
"euriconaz@hotmail.com"
] | euriconaz@hotmail.com |
dfd3789007df10b47fed17eb4ecef1dbbe054537 | 2edbdd6763f86aca4f6ee67ced390fb477ed0e44 | /udf/extract_type_modify_law.py | b2453cfaf4db58be6073271509e34dc2f95f64b6 | [] | no_license | nhatan172/deepdive | f498901c3faa474d3ab5166ef7a694e1626e2f01 | 492afee641436e4d5a068a7cec1ff3969d964518 | refs/heads/master | 2021-04-06T02:05:17.095127 | 2018-04-12T04:07:45 | 2018-04-12T04:07:45 | 124,988,988 | 0 | 0 | null | 2018-03-21T23:19:06 | 2018-03-13T03:49:20 | Python | UTF-8 | Python | false | false | 12,317 | py | #!/usr/bin/env python
# -*- coding:utf8 -*-
from deepdive import *
import re
import handle_string
import divlaw
def lenIterator(list):
sum = 0
for i in list :
sum += 1
return sum
def getTitle(string):
temp = re.finditer(r"\:(\s|\n|\*|\_|\#)*(\“|\")",string,re.DOTALL)
end_title = len(string... | [
"nhatan172@gmail.com"
] | nhatan172@gmail.com |
94f4897b31040b8abc8c30479a440a8e0af48906 | e793abb16a44eff7b48df2c774883d7a469f2005 | /local_code/adam/test.py | 1b238455a5659ce30f9888884b4d2cf00e25d092 | [] | no_license | Junyinghuang/DS4S_group2 | a25f2fe6d31f66452fc03ad02594c9c15a4f0017 | 2a3bcd0fad858e7ef00d69342dbdd47853525b83 | refs/heads/master | 2022-06-20T23:43:11.420048 | 2020-05-12T07:07:56 | 2020-05-12T07:07:56 | 257,669,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | from local_code.adam.new_parameters import get_new_parameters
def test_parameter_creation():
'''
Test to make sure I don't get any wonky results from my parameter adjustor
'''
sigmas = [1,2,3,4]
initial_guesses = [0,0,0,0]
new_guesses = get_new_parameters(sigmas,initial_guesses)
#It would b... | [
"apkunesh@ucdavis.edu"
] | apkunesh@ucdavis.edu |
739c0ed4a80c4bad6b0788a2f025475c8e864f1c | 3ec9ace491cd5d06b5b998e7e309a13bd86c7126 | /tests/system/conftest.py | 535e9d9a46ea535834835fff3376b8c958e75f58 | [
"Apache-2.0"
] | permissive | Jitsusama/lets-do-dns | 64467664f42df053b535156fc773be7e874d0bf5 | faff4bf45e9a4be438e15afbe5caa249fe1e5210 | refs/heads/master | 2021-01-20T02:38:10.953843 | 2017-07-21T03:08:30 | 2017-07-21T03:08:30 | 89,433,363 | 8 | 0 | Apache-2.0 | 2019-10-02T15:07:28 | 2017-04-26T03:24:48 | Python | UTF-8 | Python | false | false | 1,843 | py | try:
import ConfigParser as configparser
except ImportError:
import configparser
import os
import pytest
from requests import post
@pytest.fixture(autouse=True)
def os_environ_reset():
"""Reset os.environ in between test runs."""
original_env = os.environ.copy()
yield
os.environ.clear()
o... | [
"joel@grrbrr.ca"
] | joel@grrbrr.ca |
6ec1b92adbf29c397050d278e8c4ddd379f0e719 | 874c45e64e28ec63829b22738c3e7744dac1aeb7 | /test/rtt/utils.py | 8edbf72b300db2b646aba48fc6af9dc0080c5cc6 | [] | no_license | zenokoller/rtt-timestamp-vs-spinbit | 75372d04a29dc93c6161d61516d0cdb72e684bfc | a2aedc47dd8c48cdf9771e8c747dff422f97fa31 | refs/heads/master | 2020-03-20T18:32:38.876614 | 2018-07-06T15:39:14 | 2018-07-06T15:39:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | import pandas as pd
def load_dataframe(path: str, key: str) -> pd.DataFrame:
with pd.HDFStore(path) as store:
return store[key]
| [
"zeno.koller@gmail.com"
] | zeno.koller@gmail.com |
0aca43944e8543cb2dde41c31bfa4b1db2c4dc93 | 969be4b7959617a4def52267595ed22a67caeaaa | /wsgi/closetBackend/Invetory/views.py | f0b1837c8705c2e6196fc3f5e170a4867ea44c0a | [] | no_license | pjryan93/closet | 0589d493958e5f9a63c760ebc4c52588622da913 | 04dcf33f0991c547cc27b7214a81ab0d3f149ff3 | refs/heads/master | 2021-01-10T06:15:36.359576 | 2016-03-20T22:02:52 | 2016-03-20T22:02:52 | 54,337,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,952 | py | from django.shortcuts import render
from django.http import HttpResponse, HttpResponseRedirect
from django.views.generic import TemplateView
from django.template.context_processors import csrf
from django.shortcuts import render_to_response
from django.template import Context
from django.template.loader import get_tem... | [
"pjryan@my.okcu.edu"
] | pjryan@my.okcu.edu |
f4b58e180e2f6563fbc03f28f8137aab6bf58d1a | f9d9afad08272fc077f9809eedb8e920fc0fe883 | /Observation/Task.py | a53536d6b3a8175d44f7420b06921eebde12790a | [] | no_license | firekg/is-it-optimal | 1c640a350d25057cf7b32602467d063e5ea65799 | 202b95ae370db7170a12ee942d6e1f0be29cca43 | refs/heads/master | 2020-05-01T13:31:35.441495 | 2019-10-27T15:34:49 | 2019-10-27T15:34:49 | 177,493,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,205 | py | import numpy
import Observe
import Init
import copy
import Teach
import Learn
# Eq. 6a), 6b)
def Knowledgeability_Task(hypo, feature, label, p_teacher_xy_h, p_teacher_x_h, p_y_xh, delta_g_h, phx, num_iteration):
p_learner_h_xy = Learn.Init_step(hypo, feature, label, p_y_xh, phx)
for loop in ran... | [
"noreply@github.com"
] | firekg.noreply@github.com |
cc2cf6e6ef6fb653f7cb8de7cc061e8c3a300512 | 34192b4a3964c6dec6ff34bddc06c3690c02bf98 | /Social/feed/models.py | 23c6456108e74c85bdff44c8203513abb97e3ed5 | [] | no_license | Aditya-23/The-Social | 6806882f8688f577047d79d0a02b3092cf3c4a4b | aea48c2ef816196839cad75f9dced50fa85af6f2 | refs/heads/master | 2022-10-22T11:33:22.849389 | 2019-08-11T19:31:07 | 2019-08-11T19:31:07 | 201,806,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,468 | py | from django.db import models
from django.db.models import Q
# Create your models here.
class Question_query(models.query.QuerySet):
def search(self, query = None):
return self.filter(
Q(question__icontains = query)
)
class Search(models.Manager):
def get_queryset(self, query = None):
return Question_quer... | [
"adityamysore002@gmail.com"
] | adityamysore002@gmail.com |
9c17bdc0d3beabedf1313533658ffff019329cce | 8f5d2fb45d6452fc6df00b12fa0bd45446d1029b | /lessons/models.py | 1227de579706645ec9701f1a78da6f80fcc40145 | [] | no_license | luminyanko/renshuu | 4bcbd0f10e0a4a175ab92783e5346ac4b1c44927 | 54a98f59a7d2971e3ba20d5406b3e7ad8c482408 | refs/heads/master | 2023-06-01T20:40:30.090022 | 2021-06-21T08:47:19 | 2021-06-21T08:47:19 | 377,913,945 | 0 | 0 | null | 2021-06-21T08:44:52 | 2021-06-17T17:39:11 | Python | UTF-8 | Python | false | false | 734 | py | from django.db import models
from django.urls import reverse
from django.utils import timezone
from django.contrib.auth.models import User
# Create your models here.
class Tag(models.Model):
tag_name = models.CharField(max_length=50)
def __str__(self):
return self.tag_name
class Lesson(models.Mode... | [
"luminyanko@gmail.com"
] | luminyanko@gmail.com |
1c125d93dacd44efb23a7c8db2107c3a5838f0bb | 25ac403b85c141bde644f92785d086b2049ccbff | /数据/utf8csv2excel.py | 5f12f35818e9db1abf5c1b20b9a128038025af4c | [] | no_license | void126rlz/SHUJRA | 62ac47313a2c42dc439cb027a73376bfbe116ec4 | b7451af92df4bfdd80e71a2e7cbab7eecfb28f23 | refs/heads/main | 2023-07-17T06:26:01.119303 | 2021-09-07T13:39:25 | 2021-09-07T13:39:25 | 379,532,808 | 1 | 1 | null | 2021-07-11T08:42:34 | 2021-06-23T08:28:06 | Jupyter Notebook | UTF-8 | Python | false | false | 1,797 | py | import os # sys
import pandas as pd
home = r'D:\tfp\project\新致软件\3岗位推荐算法\from新致\数据'
fileNamesCSV = os.listdir(home + r'\历史18天的数据') # \*.csv
print(fileNamesCSV)
# !dir D:\tfp\project\新致软件\3岗位推荐算法\from新致\数据\utf8
fileNames = [s[0:-4] for s in fileNamesCSV]
print(fileNames)
# InvalidWorksheetName: Excel ... | [
"noreply@github.com"
] | void126rlz.noreply@github.com |
7a1df63cd632b5b6f4ccaeaeee6eff6164e582d7 | bffcfa6103ee72d7ac394c14aa861e60616c7ab8 | /pytorch3d/datasets/__init__.py | 1687213018a29e5d75a4c5490368d52e5f4d893a | [
"BSD-3-Clause"
] | permissive | Amit2016-17/pytorch3d | ccac686bc1a3caeb4bd0f38519fbcb83f816501d | 7944d24d4872bdb01b821450840049e28d0ce12b | refs/heads/master | 2022-11-25T10:40:14.409087 | 2020-08-05T13:58:53 | 2020-08-05T14:00:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
from .r2n2 import R2N2, BlenderCamera
from .shapenet import ShapeNetCore
from .utils import collate_batched_meshes
__all__ = [k for k in globals().keys() if not k.startswith("_")]
| [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
7dfcead14cfcc41518ec35eaa9c96ca9cfbc0be3 | 8fb846f4f4ac5fd417489d731eae8a8a1bdc77c3 | /rllab/misc/console.py | b32d21a249a3d389e0aef97f641591cdb13bb35a | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | zhongwen/rllab | 0a9f9ea2d8995037b83aaae5853a299d5cf9e432 | d8239c05179fcc55d865db7ce933defa3baae24d | refs/heads/master | 2021-01-14T08:36:37.272071 | 2016-08-17T12:29:00 | 2016-08-17T12:29:00 | 65,801,245 | 1 | 1 | null | 2016-08-16T08:18:47 | 2016-08-16T08:18:46 | null | UTF-8 | Python | false | false | 5,514 | py | import sys
import time
import os
import errno
import shlex
import pydoc
import inspect
color2num = dict(
gray=30,
red=31,
green=32,
yellow=33,
blue=34,
magenta=35,
cyan=36,
white=37,
crimson=38
)
def colorize(string, color, bold=False, highlight=False):
attr = []
num = col... | [
"dementrock@gmail.com"
] | dementrock@gmail.com |
ebbf514c6ec2b30cad1b8c147dfef1377c951533 | 82e5c56806e75a51097a51cb721df1ef07376e6f | /initial_freia/fun.py | 6b89a7f268c642c02b65a655544d8257951ff747 | [] | no_license | hahahasan/MSc-pre-process | 77a2fcdf795830d2b37b2d538e3638d29bd55e80 | ba69d58bc1f9dd7becea431ce9a328b2843d8b66 | refs/heads/master | 2020-03-21T05:43:07.501035 | 2018-06-21T14:14:30 | 2018-06-21T14:14:30 | 138,175,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 697 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Jun 13 11:06:10 2018
@author: hm1234
"""
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
rng = np.linspace(0.01, np.sqrt(2), 500)
rng2 = np.arange(10,500)
max_rng = np.amax(rng2)
hi = []
for j in rng2:
n ... | [
"hm1234@york.ac.uk"
] | hm1234@york.ac.uk |
9f800cece6947820a5e6c1324c4b395ea3efdf40 | a1c397a8b4dccfbef8b91a67d6910a58ff6aa98e | /02-19-Cuma/tryExcept.py | 13bb01e466c735f27fe0a613acc049813ea2ed45 | [
"MIT"
] | permissive | hhsalik/staj | f0c9a17064c444fa084a102e4c36050ff62fdb4e | d0ee95d5e77a7d7a1f16611d49c87be429a25b31 | refs/heads/master | 2023-04-29T15:17:17.928023 | 2021-05-10T19:25:35 | 2021-05-10T19:25:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | try:
answer = 10 / 0
number = int(input("Enter a number: "))
print(number)
except ZeroDivisionError as err:
print(err)
except ValueError:
print("invalid input") | [
"cihat02020202@gmail.com"
] | cihat02020202@gmail.com |
4b6acdbc898c6ac10a32ac3ebabe2a347cac037f | a5846332d42c8705d054792bdac219560d77d32f | /Test/test.py | 5dfe4d8d72022058c8dfbfa854f2b08bdaab2bc1 | [] | no_license | Jinsung-Jeon/Deep_Learning_Code | 2927a65adc9c7ef125603d186d4d5f38cebcfade | a87658c4beb823f9c34019e28cad736b259a7747 | refs/heads/master | 2020-12-13T02:35:52.306209 | 2020-03-06T07:01:11 | 2020-03-06T07:01:11 | 234,288,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,159 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jan 23 14:32:43 2020
@author: Jinsung
"""
#Chap1 test
runfile('C:/Users/Jinsung/Documents/Deep_Learning_Code/Chap1-Regression analysis Estimation of the number of rings in abalone/abalone.py',
wdir='C:/Users/Jinsung/Documents/Deep_Learning_Code/Chap1-Regression analy... | [
"jjsjjs0902@naver.com"
] | jjsjjs0902@naver.com |
da731a7f36e0c4abfe56e401d84517f945860e52 | 14d5bccb090070fc212651d017b71a1f2c6fadce | /mysite/myapi/models.py | d29e391516d08b76c141036c24658c027c6e2666 | [] | no_license | ryyvntong/SuperheroAPI | 223c78abd0a46a645ce36a871a7df5008dac6d02 | 6dd2e63a44bf7fc251abacd90cf3782fafb24e9d | refs/heads/master | 2020-12-31T21:32:41.788871 | 2020-02-07T22:02:36 | 2020-02-07T22:02:36 | 239,028,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | from django.db import models
# Create your models here.
class Hero(models.Model):
name = models.CharField(max_length=60)
alias = models.CharField(max_length=60)
def __str__(self):
return self.name
| [
"56896048+ryyvntong@users.noreply.github.com"
] | 56896048+ryyvntong@users.noreply.github.com |
80aa265104445e40404828f18f155d2af0bd25b2 | c2285444392e8eb1904255b82f62b49f317aca07 | /scripts/load_tags.py | 59a372e1337682c26b6ce0ab3ed0e6c41f62fb28 | [] | no_license | tlskr/tagger | ced0ed36437bb29fe488eb2fae8b03314c5a9558 | 1230a1f36b91bd7ef2d57840dcfa013ca07e5a4a | refs/heads/master | 2022-12-16T00:44:36.798298 | 2018-08-17T13:23:02 | 2018-08-17T13:26:37 | 145,027,493 | 0 | 0 | null | 2022-12-08T02:46:37 | 2018-08-16T18:55:02 | Python | UTF-8 | Python | false | false | 545 | py | #!/usr/bin/env python
# pylint: disable=wrong-import-position
"""
Script loading tags from JSON file to data
Invocation (from project root)
./scripts/load_tags.py
"""
import os
import sys
import gflags
sys.path.append(os.getcwd())
from scripts.main_gflag import main_gflagged
from tagger.load_json import ins... | [
"gordon@practicalhorseshoeing.com"
] | gordon@practicalhorseshoeing.com |
7aaee542c16692bd7e6bafbc73a9debf04054e3d | 504dbb060f00d373278f2f210af39fb89a27916b | /karyawan.py | 5dad1d91ebbe692dd9127b5753080694a65460bd | [] | no_license | Aldidwi53/projek-PBO | e56f1b764c632f6d59a550feadac3583b35e1345 | 7232feb29e5e81e4e82241105bfd41b85ec6d21b | refs/heads/main | 2023-02-06T02:01:53.925205 | 2021-01-02T09:09:28 | 2021-01-02T09:09:28 | 324,373,345 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | import user
import sqlite3
class Karyawan(user.User):
def __init__(self, email, password, nama, gender, alamat, telepon):
super().__init__(email, password, nama, gender, alamat, telepon) | [
"noreply@github.com"
] | Aldidwi53.noreply@github.com |
d34828fbd987211cc81fd1989af985a0e9374a74 | 128104139a52489f21df67918fae50b647f27cbe | /printswapneg.py | e3d6c3796765ea2755a55619b285b3480622b3fb | [] | no_license | AdamRichey/Python | aabb254742cf46c4d958b8aa55c26bdca100cdde | 00f1be1e235f6f791c624e3496b78d8863355e81 | refs/heads/master | 2020-03-23T05:54:10.976815 | 2018-07-16T18:15:12 | 2018-07-16T18:15:12 | 141,174,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | arr=[-1]
def neg(arr):
for i in arr:
if arr[i]<0:
arr[i]="dojo"
print arr
print neg(arr) | [
"adamrichey88@gmail.com"
] | adamrichey88@gmail.com |
670f081b1ef8d14da851e983a53c42b304f46728 | ace2dc6096eb0b7a540f28e57df8459adafad6ed | /Advanced Algorithms and Complexity/Programming-Assignment-4/circuit_design/circuit_design.py | e2ec8b4f2aabddcc3f0a3899603eacd626bc5794 | [] | no_license | tdslivensky/AlgorithmsAndDataStructures | 6ad2c28204600b1f8f72228c13d29d2c3c9437c9 | e8b1011ab5210bc52854f911e2a7e41a83b36740 | refs/heads/master | 2023-01-11T16:32:49.399654 | 2020-11-13T13:49:18 | 2020-11-13T13:49:18 | 289,050,279 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,016 | py | # python3
n, m = map(int, input().split())
clauses = [ list(map(int, input().split())) for i in range(m) ]
# This solution tries all possible 2^n variable assignments.
# It is too slow to pass the problem.
# Implement a more efficient algorithm here.
def isSatisfiable():
for mask in range(1<<n):
result = [... | [
"tdslivensky@gmail.com"
] | tdslivensky@gmail.com |
2a4a81a565fab19cc75a574eb4d85c9994bb0767 | c67f2d0677f8870bc1d970891bbe31345ea55ce2 | /zippy/lib-python/3/test/test_file.py | e9a1ceeeb8a48606fa1ad65140adac2fd3689d05 | [
"BSD-3-Clause"
] | permissive | securesystemslab/zippy | a5a1ecf5c688504d8d16128ce901406ffd6f32c2 | ff0e84ac99442c2c55fe1d285332cfd4e185e089 | refs/heads/master | 2022-07-05T23:45:36.330407 | 2018-07-10T22:17:32 | 2018-07-10T22:17:32 | 67,824,983 | 324 | 27 | null | null | null | null | UTF-8 | Python | false | false | 11,928 | py | import sys
import os
import unittest
from array import array
from weakref import proxy
import io
import _pyio as pyio
from test.support import TESTFN, run_unittest, gc_collect
from collections import UserList
class AutoFileTests(unittest.TestCase):
# file tests for which a test file is automatically set up
... | [
"thezhangwei@gmail.com"
] | thezhangwei@gmail.com |
0b8e26a5b14106ea4c7a0fcf55baed32e47f43de | 06677c398ea51e3bf78dc45db8cdf97a2b2a296b | /table-cards/cardgen.py | 773492e4f3acd63bb1b3f1079022250713136a9b | [] | no_license | DoESLiverpool/Liverpool-Makefest-2017 | ac0e9df9a8b7fdb68d70d81985690ce25192d856 | 5590cb5f58a3aa403d49c54a6e25ec5e85358b10 | refs/heads/master | 2021-01-21T19:51:51.046353 | 2019-06-28T14:48:22 | 2019-06-28T14:48:22 | 92,169,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,995 | py | #!/usr/bin/env python3
import csv, re, os, shutil, argparse, urllib
#import lxml.etree.ElementTree as ET
from lxml import etree
SVG_FOLDER = 'svgs'
PDF_FOLDER = 'pdfs'
def main():
# parse some flags here
parser = argparse.ArgumentParser()
parser.add_argument("-i", "--infile", help="ods or xlsx input file... | [
"patrick@defproc.co.uk"
] | patrick@defproc.co.uk |
81adc9b89c325fae8eb969a4530b965c9f2ee337 | 83de24182a7af33c43ee340b57755e73275149ae | /aliyun-python-sdk-ice/aliyunsdkice/request/v20201109/DescribeQueryConfigsRequest.py | d4de87a4f55304fb57408fb816c6f72a3b5b2c81 | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-python-sdk | 4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f | 83fd547946fd6772cf26f338d9653f4316c81d3c | refs/heads/master | 2023-08-04T12:32:57.028821 | 2023-08-04T06:00:29 | 2023-08-04T06:00:29 | 39,558,861 | 1,080 | 721 | NOASSERTION | 2023-09-14T08:51:06 | 2015-07-23T09:39:45 | Python | UTF-8 | Python | false | false | 1,437 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
d95df558fb04770dfcce9d62774614c18e3bfa25 | 401e455157f74b28b0ad12df6bdae3c159888db6 | /tiviapp/apis/twitter_rest.py | 2711d64b25094018a1871401c9eeafc7e1407e66 | [] | no_license | AnilSener/tivi | 0624e356524ae03fddd771a43a174211b8e1909d | 701e1ab2948d898fe12999bc5be954f61a3f4e99 | refs/heads/master | 2021-01-01T06:04:31.707925 | 2015-07-03T15:34:36 | 2015-07-03T15:34:36 | 38,221,946 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,230 | py | __author__ = 'anil'
from twython import TwythonStreamer,Twython,TwythonError
from tivi.celery import app
from tiviapp.models import *
import time
####################################################################
consumer_key="Vs7V2k4vPWMMyTFqLzqPkM6wE"
consumer_secret="aWNRzh74LUT1fuW35y6VzRDtvuimQ4LjFGMnMMkEXI0Y9LS... | [
"anil_sener@yahoo.com"
] | anil_sener@yahoo.com |
d01f9d1b57765a72c85ec040eab037e9d12c89bb | ca77e9e45d666771c7b0897e7e3093b3d3c12f65 | /scripts/trigger/add_prices.py | ec79a8be575fe0f59c9b16754b18afc1910a7a29 | [] | no_license | 2gDigitalPost/custom | 46175d3a3fc4c3be21dc20203ff0a48fb93b5639 | 6a3a804ef4ef6178044b70ad1e4bc5c56ab42d8d | refs/heads/master | 2020-04-04T07:40:17.962611 | 2016-12-28T18:35:28 | 2016-12-28T18:35:28 | 39,648,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,857 | py | """
This file was generated automatically from a custom script found in Project -> Script Editor.
The custom script was moved to a file so that it could be integrated with GitHub.
"""
__author__ = 'Topher.Hughes'
__date__ = '04/08/2015'
import traceback
def main(server=None, input=None):
"""
The main functi... | [
"topher.hughes@2gdigital.com"
] | topher.hughes@2gdigital.com |
3010b06f90027e9d8277db75879d2a23679e061c | 934107eaba17b352bf7bf3a9c0a45af4f263fd54 | /favorites/manager.py | 5106bb9da8161cbc63e045832e3288fd4baca22e | [] | no_license | quentin338/Purebeurre-p8 | d0324f0fbc7e96a1418b367ea41ef3f4f51cc437 | 15bb4192df331d790ef28140e65213ac604cf96e | refs/heads/master | 2023-08-07T22:25:10.975870 | 2023-07-26T10:21:04 | 2023-07-26T10:21:04 | 207,123,046 | 0 | 0 | null | 2023-07-26T10:21:06 | 2019-09-08T14:17:16 | CSS | UTF-8 | Python | false | false | 310 | py | from django.db import models
from django.db.utils import IntegrityError
class FavoriteManager(models.Manager):
def is_favorite(self, user, ancient_product, new_product):
return bool(self.filter(user=user, ancient_product=ancient_product,
new_product=new_product))
| [
"quentin.bertrand@yahoo.fr"
] | quentin.bertrand@yahoo.fr |
14450e65ad686acdab9fb6fecaa1b50a8a7d5106 | 84fda250fd32b37d74f07f6d00106226881e70ee | /shop/cart/admin.py | 85a9d7c503ea1cc245e73f3574a659d5c5459871 | [] | no_license | NovosadVictor/OnlineShop | 8b80b1122f9d8019fb2d1641e08ea9eb64cc6ed6 | afe6826bf0494be6af3a033cf8c2e3a205ffb571 | refs/heads/master | 2020-12-02T16:13:26.312803 | 2017-08-22T16:29:55 | 2017-08-22T16:29:55 | 96,091,899 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | from django.contrib import admin
from .models import ProductInCart
class ProductInCartAdmin(admin.ModelAdmin):
list_display = ['owner', 'product', 'quantity',]
list_editable = ['quantity',]
admin.site.register(ProductInCart, ProductInCartAdmin)
| [
"novosad_msu@mail.ru"
] | novosad_msu@mail.ru |
1a7e98eac3530ccd63f562cdfb6de3ad851647f7 | 5223229cbdbe883c6c1c09980c60d845e8255dd3 | /laliga_sb_analysis/Scripts/Barca_Manager_tenure_graph.py | e6efd1c05d1abfb8fc9f6185443ca62b15abc13d | [] | no_license | derrik-hanson/Python_Analysis_xG_Barca_plus | 39b112c47672b5f3133a1b439c942e4cee35791e | 65af5acb02deadb610b182a4b74b444114eb3ec6 | refs/heads/main | 2023-08-26T18:18:17.546730 | 2021-11-13T06:26:36 | 2021-11-13T06:26:36 | 422,980,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,627 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Nov 12 19:39:17 2021
@author: Derrik Hanson
"""
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Nov 12 17:03:57 2021
@author: Derrik Hanson
"""
import plotly.express as px
import pandas as pd
manager_tenures = [
{'manager_name'... | [
"hanson.derrik@gmail.com"
] | hanson.derrik@gmail.com |
de9ceaa3537c1f1edf2a30fedb2a4f538e0eec02 | a2efa9d89a721aae5016280ca166caffab97e94f | /exercices_EDX_W1.py | 44e668445b4b6b51f8543dd707285978c0d16491 | [] | no_license | samthib/python_edx | 3dc8378c92092eedfb70b0890ee801465e3a4cd9 | 2970745f6671a0d314b2cd32261928c7a55da3f9 | refs/heads/master | 2022-07-04T19:00:19.037593 | 2020-05-05T20:54:57 | 2020-05-05T20:54:57 | 258,567,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,555 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Apr 20 21:10:42 2020
@author: Sam
"""
##--------------------------------##
#Exercice 1
import string
alphabet = string.ascii_letters
sentence = 'Jim quickly realized that the beautiful gowns are expensive'
count_letters = {}
for i in range(len(sentenc... | [
"noreply@github.com"
] | samthib.noreply@github.com |
2566347edc4da7664cffa99c4c72f58678e8c26a | 648384ac8ff1e1a414c41c1ed19c6d54d7f1aeb2 | /pygame_basic/4_keyboard_event.py | 98eb5facda5d2b3900695aa414f57d47e2adf207 | [] | no_license | Online-abayss/-- | dadb65b372ed7c39c391bc0a85355a314028ce19 | 4ac61ad20167a784419365317d61722d5bbddf3b | refs/heads/main | 2023-08-03T13:13:51.623181 | 2021-09-23T08:42:10 | 2021-09-23T08:42:10 | 397,529,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,212 | py | import pygame
from pygame.constants import K_LEFT, K_RIGHT
pygame.init() # 초가화작업 (무조건 필수) (클래스 정의할떄도 self.init 하는것처럼 그런듯)
# 화면 크기 설정
screen_width = 480 ## 가로크기
screen_height = 640 ## 세로크기
screen = pygame.display.set_mode((screen_width,screen_height)) ## 게임 화면 크기 설정
# 화면 타이틀 설정 (2. background 시작)
pygam... | [
"noreply@github.com"
] | Online-abayss.noreply@github.com |
0192859b8b887bddad03294ac6c0618bf2e5e2a9 | 0ce9fbb56b1bb142eed50491c00adeb5eed52d3f | /chatbot.py | 01cda0956f43c0b5dbe7a8189c09280cd267198e | [] | no_license | lucasB97/ARTUR | 0336a7c1bc0e6fc9504dbd46a1a57e2d7c4dd299 | 287625fa5f30923abb676b6ce3fb326ff8ceda81 | refs/heads/main | 2023-04-27T12:01:47.335612 | 2021-04-17T17:31:16 | 2021-04-17T17:31:16 | 316,075,171 | 0 | 0 | null | 2021-04-17T02:59:21 | 2020-11-25T23:21:38 | HTML | UTF-8 | Python | false | false | 1,095 | py | from chatterbot import ChatBot
from chatterbot.trainers import ListTrainer
from chatterbot.trainers import ChatterBotCorpusTrainer
# Creating ChatBot Instance
chatbot = ChatBot(
'A.R.T.U.R.',
storage_adapter='chatterbot.storage.SQLStorageAdapter',
logic_adapters=[
{
'import_path': 'chat... | [
"lucasbessa708@gmail.com"
] | lucasbessa708@gmail.com |
a9c2ba7de5529d4ee631d9a51afa34de0f801869 | 78f3ffc90eec06e3ea638b0a87b73562dc311984 | /damsht.py | 9665480edef3cb1d8c6ffd418a561d9b1c8e1296 | [] | no_license | ashavt/dsh | a19647db44ce8112ce80184c6b5351cd16b649ec | deef4281ddd71d472b4b1d0b0b633634da3bf6a5 | refs/heads/master | 2022-12-22T07:05:45.672516 | 2018-02-18T09:13:54 | 2018-02-18T09:13:54 | 121,934,464 | 0 | 0 | null | 2022-12-08T00:54:53 | 2018-02-18T08:49:08 | Python | UTF-8 | Python | false | false | 2,224 | py | import requests
import datetime
class BotHandler:
def __init__(self, token):
self.token = token
self.api_url = "https://api.telegram.org/bot{}/".format(token)
def get_updates(self, offset=None, timeout=30):
method = 'getUpdates'
params = {'timeout': timeout, 'offset': offset... | [
"ashavt@yandex.ru"
] | ashavt@yandex.ru |
6128440a21b6bad0591564200e67f0c7ab7f0018 | a219c9b0f3ccd1b35c3bb7bb3c7b50e1d9d8ef93 | /d002_1_for_dongusu.py | 9910b109c6ddd3f3d306143754c0ebd1ef137785 | [] | no_license | f0xmulder/python_ornekleri | 3293541b5d4e594dc39e6df623e47ecd4e5e94c2 | d1ebbcefdd7390a4e20a61864b150097f9919e29 | refs/heads/master | 2022-11-04T07:12:20.766931 | 2017-06-22T13:30:45 | 2017-06-22T13:30:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
For Döngüsü
cok satirli
aciklama
Uşak Universitesi
"""
# tek satır aciklama
import numpy
print "Program Baslangıcı"
print "0-10 arası 1.7 artarak"
elemanlar=numpy.arange(0,10,1.7)
print "Sayı\t(3)\t(5)\t(7)"
for e in elemanlar:
print e,"\t", e%3,"\t", e%5,"\t", ... | [
"noreply@github.com"
] | f0xmulder.noreply@github.com |
102f8aafd37eaff350427f12ac5e476d7dda9c04 | 992816021cb79580e9c739ca2650fe9bc83829bd | /medapp/profile/admin.py | b838f95fde2b89db4d347aec60b042db9c24c2e0 | [] | no_license | etiennekruger/medapp-api | 096de56dc523425981b48c6d80930bb3df799639 | af9232f548db28e6716c0a14e38b44dcb9b57690 | refs/heads/master | 2020-04-18T22:58:35.859694 | 2012-07-16T06:17:17 | 2012-07-16T06:17:17 | 5,150,748 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | from django.contrib import admin
from profile.models import Profile
class ProfileAdmin(admin.ModelAdmin):
list_display = ['__unicode__', 'created', 'updated']
admin.site.register(Profile, ProfileAdmin)
| [
"makhonin@steelkiwi.com"
] | makhonin@steelkiwi.com |
7875cbdde6257275a92695eeecc06813145d79d1 | 1ad64831a79a6b163f6a31a9255994c1e4d8a322 | /settings.py | a2fe5dbf18ed9edbb73469731b1b139a097fe630 | [
"Apache-2.0"
] | permissive | benhosmer/brzr-desktop | 1f17b767a9d1b7d6f4bbb3787e5deb9df92f9165 | 1e5e88e0b33325d35002636192019a40d080224e | refs/heads/master | 2020-03-30T07:49:24.701545 | 2013-07-11T16:29:12 | 2013-07-11T16:29:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | import ConfigParser
config = ConfigParser.RawConfigParser()
config.read('brzr.cfg')
database_name = config.get('main', 'database_name')
event_name = config.get('main', 'event_name')
| [
"ben.hosmer@gmail.com"
] | ben.hosmer@gmail.com |
feee22f88d28bb23ee6a97c99f3208c769d58972 | dc569d08a025447e5386abf0388c99d45bdbfcf1 | /utils.py | 6cc2d12ab1651734c79094fcbdcdd4f3dd2f23ad | [] | no_license | samuelBB/Translating-OOV-Words-Via-Images | cf992d1f27f10352fee61bc89a60ac0bc2d91a9f | 5ae8f3b89786a0813e93b619189e181de8a955dd | refs/heads/master | 2020-05-30T10:08:45.056985 | 2019-05-31T22:37:25 | 2019-05-31T22:37:25 | 189,665,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,088 | py | """
misc utility functions
"""
import re
import os
import errno
import pickle
import random
import logging
import argparse
import datetime as dt
RANDOM_SEED = 2018
### logging
class UpToLevel(object):
def __init__(self, lvl=logging.FATAL):
self.lvl = lvl
def filter(self, record):
return ... | [
"baldsammy@gmail.com"
] | baldsammy@gmail.com |
d50868da0f47f63d568213860fafad9a262e1a9d | 926651d078851f96e71e2cc419fe87348b333ba3 | /mysite/mysite/urls.py | 1e5ccbb2f5ede005dbd394a42c6f06242f90e827 | [] | no_license | Kitabo258/secretary2 | edc9c55133aed40b2d66a89a3d32c90afd923297 | d89e74309abe1577aa4248c77ecc73412e27eba3 | refs/heads/master | 2021-08-14T15:11:43.836979 | 2017-11-16T02:32:12 | 2017-11-16T02:32:12 | 110,913,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 907 | py | """mysite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-base... | [
"kiki901028@gmail.com"
] | kiki901028@gmail.com |
1da98ce1969f888ec8962c9239a84d4f7a580f78 | b72dbc51279d3e59cb6410367b671f8a956314c1 | /leet_code/leet_372.py | 5c1d0057a5ac67543ab059922519a69fe52287d6 | [] | no_license | ddobokki/coding-test-practice | 7b16d20403bb1714d97adfd1f47aa7d3ccd7ea4b | c88d981a1d43b986169f7884ff3ef1498e768fc8 | refs/heads/main | 2023-07-08T15:09:32.269059 | 2021-08-08T12:19:44 | 2021-08-08T12:19:44 | 344,116,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | from typing import List
class Solution:
def superPow(self, a: int, b: List[int]) -> int:
if a in [1,0]:
return a
return int(pow(a,int("".join(str(i) for i in b)),1337))
| [
"44228269+ddobokki@users.noreply.github.com"
] | 44228269+ddobokki@users.noreply.github.com |
d2db1ee6174ddceb75d614d139e0bf52ec6cc9c6 | 65c8e86e276fb9ff8159af867d3793063e480d34 | /config.py | 037c7406057066de211e539d476d582edc9ada7d | [] | no_license | prosass83/ucbotplot | 504d0d16f1625c839d624f95017ca20597b1bf59 | 25b4bb10b4c637d4349ecab56f29a8f9720f7012 | refs/heads/master | 2020-03-10T03:36:40.328166 | 2018-04-12T00:34:43 | 2018-04-12T00:34:43 | 129,169,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | # Twitter API Keys
consumer_key = "Uu04Kdr6N3SFmbEi334mhy9HQ"
consumer_secret = "d9WJsr5GCCdBI6wbyQopug6HeHpB3T2mKoez8DEHeJFy8D9ko0"
access_token = "2518417008-SC6yochSVIeAYERFWe3BClzJ2pit2iH6YWOUwcA"
access_token_secret = "FBkOuixi1SSXC9xP2k8PpxY07GWsoDZ3MvtC7lj1K59Xo" | [
"prosass@gmail.com"
] | prosass@gmail.com |
8c063266cbd431b2d5053fd81731c057bd7c9d32 | ca1da3b2d522566132ef48319bd2328813a0a0cc | /tests/callbacks/test_progress_bar.py | f621e7022801269b16d12ae7f3d73f8318b9fa95 | [
"Apache-2.0"
] | permissive | anthonytec2/pytorch-lightning | cc4724c3493e93c6c5b89982abe9caf78a969ee2 | 9759491940c4108ac8ef01e0b53b31f03a69b4d6 | refs/heads/master | 2022-11-18T15:48:40.110614 | 2020-07-17T09:54:24 | 2020-07-17T09:54:24 | 273,110,455 | 1 | 0 | Apache-2.0 | 2021-05-13T20:38:51 | 2020-06-18T01:06:34 | Python | UTF-8 | Python | false | false | 6,732 | py | import pytest
from pytorch_lightning import Trainer
from pytorch_lightning.callbacks import ProgressBarBase, ProgressBar, ModelCheckpoint
from pytorch_lightning.utilities.exceptions import MisconfigurationException
from tests.base import EvalModelTemplate
@pytest.mark.parametrize('callbacks,refresh_rate', [
([],... | [
"noreply@github.com"
] | anthonytec2.noreply@github.com |
4f02cd88aa3d26c3be1bbb4b45c2049a6e8a6317 | 9ab9d9a3883471763edbceea59a0e83170581b5f | /eggs/bx_python-0.7.1_7b95ff194725-py2.7-linux-i686-ucs4.egg/EGG-INFO/scripts/bed_extend_to.py | 2985cc3497acf222c69151a76b253624baa01752 | [
"CC-BY-2.5",
"AFL-2.1",
"AFL-3.0",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | asmmhossain/phyG | 24dc211dad5b3e89c87ff384e841f2e98bbd52db | 023f505b705ab953f502cbc55e90612047867583 | refs/heads/master | 2022-11-21T12:43:46.172725 | 2014-02-14T12:33:08 | 2014-02-14T12:33:08 | 13,800,552 | 0 | 1 | NOASSERTION | 2020-07-25T21:05:41 | 2013-10-23T11:04:25 | Python | UTF-8 | Python | false | false | 1,132 | py | #!/afs/bx.psu.edu/project/pythons/linux-i686-ucs4/bin/python2.7
"""
Read BED file and extend each record to the specified minimum length. If chromosome
size information is provided trim extended intervals.
usage: %prog amount [ chrom_file ] < bed_file
"""
import sys
from bx.intervals.io import GenomicIntervalReader... | [
"mukarram819@gmail.com"
] | mukarram819@gmail.com |
7c3197dc1c975ece63e9829ab29ce34714bbbbbf | 07d5dbbaecddb7ddb3341861fddd5490d54840af | /Computational_Physics/plot2.py | 4da8f397c3aca7afa346f8b38707c1ec770873ec | [] | no_license | julpotter/College-Projects-and-code | 49382e5df82a80c3f2c8162c610c7f465860782e | b1a0508f88a4a6ef1b04de66c9653c68ea03a3cc | refs/heads/main | 2023-03-01T15:25:51.618680 | 2021-02-05T00:54:02 | 2021-02-05T00:54:02 | 326,104,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 640 | py |
from __future__ import print
import matplotlib.pyplot as plt
g = 9.81
t0 = 0
y0 = 1.5 # initial height
v0 = float(input("Enter the initial velocity v0 :"))
#use lists to save position and time
y = []
t = []
ycalc = 0
tcalc = 0
#create a loop to populate our lists with values
while(ycalc >= 0):
ycalc = y0 + v0*... | [
"jpotter@udallas.edu"
] | jpotter@udallas.edu |
f987964ac120b8b838a54bd03b1a6cd553eba48d | e4b52bd79c3a2fdf64f1927ddd04c87fa401fed8 | /myshop/migrations/0003_migrate_translatable_fields.py | cd9bbd763d5d51bc2a494ed80d982b7711caf5e0 | [] | no_license | ObsidianRock/shop | 8e1051efb298c65d6803fe76be07f222c19d60dd | 2a6613f28de3d577288653afc6b1a470fcde6a89 | refs/heads/master | 2021-01-19T10:01:26.797821 | 2017-04-13T16:02:34 | 2017-04-13T16:02:34 | 87,817,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,795 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
from django.apps import apps
from django.conf import settings
from django.core.exceptions import ObjectDoesNotExist
translatable_models = {
'Category': ['name', 'slug'],
'Product': ['name', 'slug', 'desc... | [
"ObsidianRock@users.noreply.github.com"
] | ObsidianRock@users.noreply.github.com |
916795017de2b6b98ecb83425e776e9a8975c090 | 8212c7b8c532681107f735643ab47bb20da177ac | /content_indexer/content_indexer.py | cb4003e22f16b032b2dee9eb2467f20f7d22044f | [] | no_license | jjenner689/Python | 31458c2ca0b612776387fce3bfd3ad56fd07f031 | 665c25077b86b7c802312d5ef4b1ec740b752f8b | refs/heads/master | 2016-08-10T17:06:34.721622 | 2015-10-05T15:00:24 | 2015-10-05T15:00:24 | 43,438,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,050 | py | import string
import os
"""
Content Indexing Engine Capstone Project
You have a bunch of files in the file system! How can we index these files to make them easily searchable by keyword?
Indexing is a way of moving work 'upfront' so that when the user searches, less work is needed to get them the right search result... | [
"jjenner689@gmail.com"
] | jjenner689@gmail.com |
52ba6a2814b715ec92f01331d0712c169ef9ebfa | 009eddcbb8e4917710ad3c8661ee5bb04b6fc512 | /tf-transliteration/transliterate.py | 2a032f79be925ab091ef9b896e4cc7c30e5a4c45 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | SRSTLCI/tf-transliteration-riggs2slo-toolkit | 873ea0ccb4c7f270bf16b137ea59ad324ea176ce | e6224627408ea23f830e2b3cd4f6e3a723d70d9d | refs/heads/main | 2023-04-20T18:47:30.731897 | 2021-05-17T16:08:55 | 2021-05-17T16:08:55 | 366,071,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,962 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import tensorflow as tf
import numpy as np
import os, sys, io, re
import six
from data import create_vocab, load_vocab
from data import split_text_file, SPECIALS
from data import create_dataset, make_data_ite... | [
"noreply@github.com"
] | SRSTLCI.noreply@github.com |
dcb1ace6bff0ebe626977fad8beb5902ed036ab4 | 8a742d701f6e3106f138fb5bb67a90de64c99abd | /lesson1/task2.py | 6dfca1d43eda210d4e9c6cd878da0521bc1d1796 | [] | no_license | alexabolot1/python-homework | ac51f20ad31b866d56783aaffc44d26582f6b113 | 5d719b5f5e3e67ef7e85a8f347d858255cb31ac7 | refs/heads/main | 2023-03-10T16:11:43.824269 | 2021-01-22T06:23:16 | 2021-01-22T06:23:16 | 330,006,488 | 0 | 0 | null | 2021-02-16T12:52:04 | 2021-01-15T19:43:41 | Python | UTF-8 | Python | false | false | 123 | py | a = input('Введите число')
print(f"Сумма вашего числа {int(a) + int(a + a) + int(a + a + a)}")
| [
"alexabolot@gmail.com"
] | alexabolot@gmail.com |
49d7b8bebbad46079eac386c638ee23415db1cdd | 0c8f747e59846ddd7d2479930d38db361ff59bd6 | /secrets.py | b6eb1026c3cc29b7a0e1dd2f39b9bbafa41a8228 | [] | no_license | PaveTranquil/Texity | 39289163e1c5b4ce4d3dea7d718916db8661890a | a4798bbf0cf89496ca12bdb1cd48a3ef9ce4566c | refs/heads/main | 2023-04-13T06:28:32.349938 | 2021-04-27T20:00:52 | 2021-04-27T20:00:52 | 354,387,657 | 3 | 1 | null | 2021-04-06T05:04:37 | 2021-04-03T20:26:48 | Python | UTF-8 | Python | false | false | 69 | py | with open('apikey.txt') as file:
API_KEY = file.readline().strip()
| [
"noreply@github.com"
] | PaveTranquil.noreply@github.com |
59aed57ba62f13ab930efe93f2f9d078ea11c2d3 | f144f0f34227acf229a991d09db18281cd6b5ac6 | /.c9/metadata/environment/abscences/models.py | 269d869f41bb85e539bc1b9b841e06464feed82d | [] | no_license | KikiDow/TUD_HDP_PSE3S | 42dde541a6d65d0c764def842a1e2732fec740ac | cd21c27651e442e1ed84518c1d567f1d52f215c0 | refs/heads/main | 2023-04-22T23:25:25.966531 | 2021-05-09T14:10:01 | 2021-05-09T14:10:01 | 313,276,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | {"filter":false,"title":"models.py","tooltip":"/abscences/models.py","undoManager":{"mark":2,"position":2,"stack":[[{"start":{"row":8,"column":55},"end":{"row":8,"column":56},"action":"insert","lines":["/"],"id":2},{"start":{"row":8,"column":56},"end":{"row":8,"column":57},"action":"insert","lines":["/"]}],[{"start":{"... | [
"ec2-user@ip-172-31-0-153.ec2.internal"
] | ec2-user@ip-172-31-0-153.ec2.internal |
3eeca3eaadcaf592565384f53f3160774272b0ca | 86f5ed0463be0b32508865889f5a77fdda549c22 | /raspberryPi/ultrasonic_client.py | 3441acce60eca5f0c6ba2d110d8c8b66f0352044 | [
"BSD-2-Clause"
] | permissive | pseudoyim/galvaneye | e6d7d210bacab5841e98cf275744dcc4ea6454aa | c7c1f1bb893fb8fb6f83c6765473d506979ec4b0 | refs/heads/master | 2023-01-16T00:43:27.283533 | 2020-11-22T03:09:58 | 2020-11-22T03:09:58 | 70,966,508 | 68 | 25 | null | null | null | null | UTF-8 | Python | false | false | 1,129 | py | from socket import *
import time
import RPi.GPIO as GPIO
GPIO.setwarnings(False)
# create a socket and bind socket to the host
client_socket = socket(AF_INET, SOCK_STREAM)
client_socket.connect(('10.10.10.2', 8002))
def measure():
"""
measure distance
"""
GPIO.output(GPIO_TRIGGER, True)
time.sleep(0... | [
"paul.j.yim@gmail.com"
] | paul.j.yim@gmail.com |
811cf7cfd7af8000864d8ca0048863f2d418d819 | a9756247d833412e64b18e741c293e7cab9c0b5b | /Command Line/enrollment.py | 3e6491fc442bd5f6d3ef46d8be2a7ca14fa00ac7 | [] | no_license | guennithegun/Command-Line | e44b2b5b7ceac9adc7894f37bf29396b5557dfff | 7c01985129415a56250fa679c9290c3395bf5158 | refs/heads/master | 2020-04-08T04:05:26.323362 | 2018-11-25T05:59:43 | 2018-11-25T05:59:43 | 159,002,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | import pandas as pd
if __name__ == "__main__":
data = pd.read_csv("data/CRDC2013_14.csv", encoding="Latin-1")
cols =["SCH_ENR_HI_M", "SCH_ENR_HI_F", "SCH_ENR_AM_M", "SCH_ENR_AM_F", "SCH_ENR_AS_M", "SCH_ENR_AS_F", "SCH_ENR_HP_M", "SCH_ENR_HP_F", "SCH_ENR_BL_M", "SCH_ENR_BL_F", "SCH_ENR_WH_M", "SCH_ENR_WH_F... | [
"noreply@github.com"
] | guennithegun.noreply@github.com |
a03c242a1a98c722662d25054877d5f1d75f61b1 | 8b1ef7f1a7e11b8c39b0546f521a4533f82bb6ba | /PyQt5- Login Form/main.py | 57c90f7324b9bdcd010b805087c425faa78e58d7 | [] | no_license | muhammedzahit/QT5 | 4b6c8e1461f352d4143949486019071285e42d53 | b82283d517023d5860d37e421e5b9babad503469 | refs/heads/master | 2023-02-03T08:19:31.775039 | 2020-12-17T10:25:08 | 2020-12-17T10:25:08 | 289,100,610 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,098 | py | # -*- coding: utf-8 -*-
from PyQt5 import QtCore, QtGui, QtWidgets
import sqlite3
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(800, 600)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSize... | [
"muhammetzahitaydin@gmail.com"
] | muhammetzahitaydin@gmail.com |
4a460011144f616f403fdf0cd4870acf4bd66824 | 3bdc38b3ba7bcd87f10f24fdae3832cc8344ffba | /douban_spider/doubanspider/douban_image_pipelines.py | c34d5d2d875e4668c16b617c5a0411846c223f8e | [] | no_license | sheng-jie/Learning.Python | b1eee7fe53b0b11b8ca4e2e8716dd6ebb06948d6 | 61f0336c76b9a769021238664142cbc0e4a39d02 | refs/heads/master | 2020-03-20T23:01:44.507048 | 2018-06-19T01:46:21 | 2018-06-19T01:46:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 856 | py | import os
import scrapy
from scrapy.exceptions import DropItem
from scrapy.pipelines.images import ImagesPipeline
class DoubanImagesPipeline(ImagesPipeline):
def get_media_requests(self, item, info):
for image_url in item['image_urls']:
yield scrapy.Request(image_url, meta={'item': item})
... | [
"ysjshengjie@live.cn"
] | ysjshengjie@live.cn |
73140cdc70ade106181a0a7092b94bcbb63b6c41 | 4b0ac126af3d635be9d248ed5b2642dfe32b56d0 | /philips_app_engine/main.py | 040715b066a101a64a4565b120c2e2f6f29d8966 | [] | no_license | CosmaTrix/hackathon-git | b4d31a91531818fa943796a81def0a9626283e83 | cfbdf81aa20ff74ce3af3424018f8b90201f5fe4 | refs/heads/master | 2020-12-24T17:08:42.627668 | 2015-01-31T23:08:04 | 2015-01-31T23:08:04 | 30,111,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,087 | py | #!/usr/bin/env python
#
# Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"marco@travelbird.nl"
] | marco@travelbird.nl |
f9d8cfefda12f3f541879b5d40b545e5a08c6842 | 0751fa2615079decfe8c1446f6dcbd7d1048bc31 | /HW3/Code.py | 10d368b3246cb1e5023cca87882b4c37397c8493 | [] | no_license | fatihselimyakar/AlgorithmAndDesign | 0fa4ca8454dc641a57161657ceca29952f45054e | 519107789c77f60dfc03036f7fda962f49203720 | refs/heads/master | 2021-01-06T01:50:07.846213 | 2020-02-17T19:55:35 | 2020-02-17T19:55:35 | 241,194,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,280 | py | import itertools
#############QUESTION1###############
def createBoxList( size ):
boxes = []
for i in range(0,(int)(size/2)):
boxes.append("black")
for i in range((int)(size/2),size):
boxes.append("white")
return boxes
def boxTail(boxList,low,middle):
if(middle>=len(boxList)):
... | [
"noreply@github.com"
] | fatihselimyakar.noreply@github.com |
9d58d840d5920137fe056298c28671343069f204 | ee8ee84343e5efd184e20cb474abdd04425aaf7b | /messenger/models.py | 2992db2413316e882741ef7602bad696b1bf617c | [] | no_license | Amrsaeed/codetouch | 978924b59bb68da05f2307fbc2deed31d10aa927 | a70c6d6241e57692501034a5bf6f5d5634738ef1 | refs/heads/master | 2021-01-22T08:18:00.354453 | 2019-01-14T17:05:07 | 2019-01-14T17:05:07 | 92,609,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Message(models.Model):
message_text = models.CharField(max_length=2000)
sentOn = models.DateTimeField('Sent On')
sender = models.CharField(max_length=150, default='None')
reciever = models.CharFi... | [
"amrsaeed@aucegypt.edu"
] | amrsaeed@aucegypt.edu |
795d213349a1ac367a0dcc6c7f13ed3a859b131d | c385ed950cd8512915f97a8bbca466349b647a56 | /code/model.py | c9fc26614280c37bf6aa54a2050dc001f870e95d | [] | no_license | livenb/Ultrasonic_Nerve | b5f2c9c8a0bd0e2e3e654ab247f1dca6fa65b847 | 39f5c036dbf3c63ebaae5c96d86ee6005ccfe3af | refs/heads/master | 2021-01-10T23:08:18.455410 | 2017-02-09T01:42:58 | 2017-02-09T01:42:58 | 70,640,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,683 | py | from __future__ import print_function
import cv2
import numpy as np
from keras.models import Model
from keras.layers import Input, merge, Convolution2D, MaxPooling2D, UpSampling2D
from keras.optimizers import Adam
from keras.callbacks import ModelCheckpoint, LearningRateScheduler
from keras import backend as K
from d... | [
"livenb666@gmail.com"
] | livenb666@gmail.com |
c8df0b5f2035c2386b9918776f917c3effb9da50 | 02fa1542bc428b64da276afdb46f2f2f7199f7a6 | /DataManager.py | ff0a2123a51d8a90d13e0f767a8e98c9f0b921d1 | [] | no_license | ulissesbcorrea/atae-lstm-theano-modified | bb4ba7b9786d00d5bf6da16cbbdd5067e8118e91 | e3bfa6a74df878ee7eec115c1a6e8fd1c4fcfa46 | refs/heads/master | 2022-12-13T16:36:10.256232 | 2020-09-14T09:21:14 | 2020-09-14T09:21:14 | 287,218,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,457 | py | # -*- encoding: utf-8 -*-
import numpy as np
import theano
class Sentence(object):
"""docstring for sentence"""
def __init__(self, content, target, rating, grained):
self.content, self.target = content.lower(), target
self.solution = np.zeros(grained, dtype=theano.config.floatX... | [
"ulissesbcorrea@gmail.com"
] | ulissesbcorrea@gmail.com |
cccee8c95ce17bb44043b1a20a899ac4161055be | ee22ec2076a79e8de3011377fe205bc87163ab9f | /src/basic-c3/func-let.py | 8c9c6ff3fea14adfbe60b86692ad4981a5710241 | [] | no_license | n18018/programming-term2 | 039a95c67372a38a34e2aa8c5975045a9fc731be | 86c455269eed312def529604e1ac3b00f476226c | refs/heads/master | 2020-03-22T08:59:29.545280 | 2018-08-29T07:57:37 | 2018-08-29T07:57:37 | 139,806,131 | 0 | 0 | null | 2018-07-05T06:42:11 | 2018-07-05T06:42:11 | null | UTF-8 | Python | false | false | 326 | py | # 関数を定義
def mul_func(a, b):
return a * b
def div_func(a, b):
return a / b
# mul_func関数を変数に代入
func = mul_func
# 代入した変数で関数を使う
result = func(2, 3)
print(result)
# div_func関数を変数に代入する場合
func2 = div_func
result = func2(10, 5)
print(result)
| [
"n18018@std.it-college.ac.jp"
] | n18018@std.it-college.ac.jp |
614d20e490badf198728acb806f1b442ff8a43b7 | 9ab642dbc8b5409673e5b2f90e009aa4b5634c32 | /st_network_server.py | ea0366083d46d6693412626cfecd9193cb995a67 | [] | no_license | sunpu/stwhiteboard | 65c20aab6049acc0ca1b5b1924ae048671e119ee | 26cb02b593076e65496beca162be24404bee690a | refs/heads/master | 2021-09-07T12:40:49.138494 | 2018-02-23T01:44:37 | 2018-02-23T01:44:37 | 115,606,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,122 | py | #!/usr/bin/python2.7
# -*- coding:utf-8 -*-
import SocketServer
from time import ctime
import json
courseDict = {}
class Course:
def __init__(self, courseID):
self.courseID = courseID
self.clientDict = {}
self.finishList = []
HOST = ''
PORT = 10001
ADDR = (HOST, PORT)
ROOT_PATH = './fil... | [
"sunpumsn@hotmail.com"
] | sunpumsn@hotmail.com |
820e15a0e02606bf4165dcedc96fab3b641663ef | da8a2b9404e6bb9f3d6ca5a786fd01eddf440ec4 | /lyric/apps.py | 618476d0dd10601771f2dbee5c71aa66f38b89f0 | [] | no_license | BrightHao/Django_Music | c099e22d4606a8101f1be3be3a9f4e7b2babcc25 | c31df1a0d3f34594c65bddcc88815e22bc2f0902 | refs/heads/master | 2023-03-17T20:01:33.915667 | 2021-03-13T05:37:49 | 2021-03-13T05:37:49 | 347,283,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | from django.apps import AppConfig
class LyricConfig(AppConfig):
name = 'lyric'
| [
"861759757@qq.com"
] | 861759757@qq.com |
ae8bf909464124ce2e2e1c318f37dd319d3ef4ac | 5a99d1f7e0363878a5a94732598410a06008d2ed | /multimeter/_tasks.py | 204079b61c271657c9be403e1e4f4d875d9109f1 | [] | no_license | av-pavlov/multimeter | d8b93e4a6acec420e8593ea8864db9d67ab4a177 | d8132db1e5e0c3b153ab142599c93b302c18fbf5 | refs/heads/master | 2021-04-29T18:44:15.300083 | 2018-03-23T04:38:45 | 2018-03-23T04:38:45 | 121,699,767 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,491 | py | # -*- coding: utf-8 -*=
import sys
import subprocess
from collections import OrderedDict
from os import listdir, stat
from os.path import isdir, join, isfile
from collections import OrderedDict
from .helpers import load_json, save_json, validate_code, check_or_create_dir, load_tests
class Tasks:
""" Массив олимп... | [
"7911562+av-pavlov@users.noreply.github.com"
] | 7911562+av-pavlov@users.noreply.github.com |
b04bcc13154c9db03c343251a42fa7662c29b486 | 52c737c2f062f7b07e35ab88e9ea042337463253 | /Weibo_v3/weibo_auto_handle.py | b1c5aade7198eb39ae4667657b948245d1f5a156 | [] | no_license | LichMscy/Weibo | b704779cdfe8c52063bb3c8e2d4e611ffd47bb37 | 6d3ed1e9709ef48c4627dfc69fd9ee9cbe7e628b | refs/heads/master | 2021-01-18T17:26:20.351718 | 2017-04-01T02:47:49 | 2017-04-01T02:47:49 | 86,798,194 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,101 | py | # -*-coding: utf-8 -*-
import re
import time
import datetime
import logging
import json
from selenium import webdriver
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
from selenium.webdriver.common.keys import Keys
import requests
from bs4 import BeautifulSoup
from util import parsedate
... | [
"jraqi1994@gmail.com"
] | jraqi1994@gmail.com |
1908dbef5523b4c7baf3492790e727cfa3424bd7 | 13a1fae2f825f6c16fa15e47556e4e0b33da15b2 | /stepik course/stepik_3_1_1.py | f1d88368217a5e569d6bd9ca3bbf9a90f41a9d1a | [] | no_license | kubenet/pyLearn | 98a4a2c3243f2c03d00af82451863d65a8a38350 | 3d850de58ba525040c1f72730dcd31368766af53 | refs/heads/master | 2020-07-20T21:13:14.266289 | 2020-03-10T15:53:55 | 2020-03-10T15:53:55 | 206,710,216 | 1 | 0 | null | 2019-09-06T04:05:23 | 2019-09-06T04:05:22 | null | UTF-8 | Python | false | false | 786 | py | # Напишите функцию f(x), которая возвращает значение следующей функции, определённой на всей числовой прямой:
# 1−(x+2)^2, при x≤−2
# -x/2, при −2<x≤2
# ((x−2)^2)+1, при 2<x
#
# Требуется реализовать только функцию, решение не должно осуществлять операций ввода-вывода.
# Sample Input 1:
# 4.5
# Sample Output 1... | [
"kubenet@gmail.com"
] | kubenet@gmail.com |
f8bc29d25b3b055f3a4acbaac21dc04354dc7797 | e9434af6e0f542769e84a37f15860d3394367068 | /interpolator.py | 77a96c0d74c29e27f4c58e234107593baa669a9c | [] | no_license | RobinAmsters/benchmarking | 12ab77451222dfe113c0d4c66375ad5fb03d3122 | f4d7f6af804645438506a4ee5791eba596ecb52b | refs/heads/master | 2021-05-09T22:27:40.632141 | 2019-03-28T12:45:15 | 2019-03-28T12:45:15 | 118,751,992 | 0 | 2 | null | 2018-01-24T11:18:43 | 2018-01-24T10:48:03 | Python | UTF-8 | Python | false | false | 7,436 | py | import numpy as np
import sys
def transform_to_common(dataset1, dataset2):
"""
Transform both datasets to a common coordinate system, assume both datasets have the same amount of points.
:param dataset1:
:param dataset2:
:return:
"""
keep = np.invert(np.bitwise_or(np.isnan(np.sum(dataset1,... | [
"quinten.lauwers1@student.kuleuven.be"
] | quinten.lauwers1@student.kuleuven.be |
aea9bbdf52c15b1029619192896682d0da4103c2 | a4b46342bc37d2d08b19934c5230928575d9cc39 | /getEmailByRegex.py | 7ad1f201c2b92c1916a084f220d32e11906a7fd5 | [] | no_license | yenchenhuang/regex_practice | 5daec1e13903ad233b2d67dba145593e4a0e7966 | 59f138639f783198d813572f2487566955355d0b | refs/heads/master | 2020-03-26T05:34:41.882199 | 2016-06-22T09:13:52 | 2016-06-22T09:13:52 | 144,563,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | import re
def is_email(input):
pattern = r"([\w._]+)@([\w_\-.]+?)"
match = re.match(pattern, input)
if match:
return True
else:
return False
def get_emails(paragraph):
pattern = r"[\w._]+@[\w_\-.]+"
matches = re.findall(pattern, paragraph)
return matches
def get_accounts(paragraph):
pattern = r"([\w.... | [
"yenchenhuang@kkbox.com"
] | yenchenhuang@kkbox.com |
b477a9cee5d1d50b4effb6e86d254fa10629c6f1 | d63811f9944dead8a745a46e1382f64800c72c5e | /linuxYazKampı/sonuç/petimebak/adverts/views.py | ea08662d7d76a0d3d26ba3224ffcc6795ba666ad | [] | no_license | Arciles/Notes | 9dd77425209b9a10a6503dcd27a5c48c9666c35b | 095e361bdb11ca72c3bff801ed4a9b938827c84a | refs/heads/master | 2020-12-11T05:46:11.416975 | 2014-11-22T12:08:37 | 2014-11-22T12:08:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,924 | py | from datetime import datetime
from django.contrib.auth.decorators import login_required
from django.core.urlresolvers import reverse
from django.shortcuts import render_to_response, get_object_or_404, redirect
from django.template import RequestContext
from adverts.forms import AdvertCreationForm, PhotoCreationForm
fr... | [
"salihklc91@gmail.com"
] | salihklc91@gmail.com |
b6d4b00e9ba7fd2e1ffb15551e74584d5f265b5d | ed61c386fbe2ab18a73e6c4ac4c581540638dba6 | /src/old verion of code/propagation.py | d0295ff5fd4ade51e1ce136c9a8ddc81f37f1650 | [] | no_license | allenqaq/Online-Social-Network | 5f244cbf3b9f53fe68a926847e485c3a5ab9782e | c6f863827521ed787cf0120c3e02ae0485004a6a | refs/heads/master | 2020-03-08T17:34:54.384051 | 2018-12-21T08:42:34 | 2018-12-21T08:42:34 | 128,272,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,024 | py | '''
Created on Mar 5, 2017
@author: allen
'''
from math import sqrt
import numpy as np
# def mean(lst):
# """calculates mean"""
# sum = 0
# for i in range(len(lst)):
# sum += lst[i]
# return (sum / len(lst))
# def stddev(lst):
# """calculates standard deviation"""
# sum = 0
# mn ... | [
"allenqaq555@gmail.com"
] | allenqaq555@gmail.com |
69163c15593175ec5108d8614e170be4b086b0cc | d5a84ba1417d59d6b8eff26124a37ba7186d7e33 | /test_calculator.py | a303fcf1954dd8cadf456028cef326d495242bd5 | [] | no_license | jonathanzerox/tdd-python | 7c4ce49acb6eec562c9a382e9aab83cd1963aa23 | cd718ecdd646046dd0e2d437d050d75f16378280 | refs/heads/master | 2021-08-23T17:39:47.264755 | 2017-12-05T22:54:25 | 2017-12-05T22:54:25 | 113,240,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | import unittest
from calculator import Calculator
class TestCalculator(unittest.TestCase):
def SetUp():
print("Setting things up")
def TearDown():
print("Releasing allocated resources back")
def test_addition(self):
calc = Calculator()
self.assertEqual(4, calc.add(2, 2))
... | [
"jonathanzerox@hotmail.com"
] | jonathanzerox@hotmail.com |
7ac445a7981cc09e31bfafce07f08ab38310efce | 2a1146bd74be4ae270bd2dc105e1917aa13a3bfe | /gotti/modules/modules.py | 346c86de735720927666368efd616105af0b2a46 | [
"MIT"
] | permissive | HellBringerReal/Telegram-Bot | 0a2721ed04667c6bb1347f7ccdf0e657a360a71a | c204de5e8212fd32aaae6afd92c2bc7999457d4f | refs/heads/master | 2023-06-28T20:34:50.909101 | 2021-08-11T20:22:27 | 2021-08-11T20:22:27 | 290,599,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,947 | py | import importlib
from telegram import Bot, Update, ParseMode
from telegram.ext import CommandHandler, run_async
from gotti import dispatcher
from gotti.__main__ import (IMPORTED, HELPABLE, MIGRATEABLE, STATS, USER_INFO, DATA_IMPORT, DATA_EXPORT, CHAT_SETTINGS,
USER_SETTINGS)
from gotti.mo... | [
"noreply@github.com"
] | HellBringerReal.noreply@github.com |
a852d4447c5f5e6261198b26f9281cce50269c1c | d393e865b83edc1b83fe80b716775b8036c51af4 | /Preprocessing.py | 40094cabfa374078ce04b111e05fd9cab6011fa5 | [] | no_license | dwaydwaydway/KKStream-Deep-Learning-Workshop | 1137724577c46b9d0a039a8b64f84abf0a0ea91f | 7c9da5114b6901052d479228fa40a5628e646e25 | refs/heads/master | 2020-05-25T04:44:29.691746 | 2020-03-11T09:25:25 | 2020-03-11T09:25:25 | 187,633,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,497 | py | import numpy as np
import pandas as pd
import multiprocessing as mp
from datetime import datetime
import tqdm
import pickle
import csv
import math
import warnings
import json
warnings.filterwarnings("ignore")
def main(config):
pool = mp.Pool(processes=config["n_workers"])
pool.map(job, range(1, 76))
#... | [
"tim8733123@gmail.com"
] | tim8733123@gmail.com |
c6c061e8c03a18c82ab3cd76a3c826f444b900f1 | 14c831041866edeed1fb3a5643405542fe736939 | /datasetGen.py | f1e20ec710d378afc9b9e20cff19a3c148fd8dba | [] | no_license | Rumee040/Retinal-Vessel-Segmentation-using-Convolutional-Network | d4a37d72d8fde637b53c5d2e279c9848d1dc1313 | 41333730fd2c27a99c0bbb149dfaa739c04ece50 | refs/heads/master | 2021-05-06T06:01:16.863817 | 2017-12-20T11:58:19 | 2017-12-20T11:58:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,468 | py | #import cv2
import numpy as np
from sys import exit
from PIL import Image
import matplotlib.pyplot as plt
import random
## defining parameters
patchSize = 27 # rectangular patch with size patchSize*patchSize*channel
patchPerImg = 1000 # patches per image
numImage = 20 ... | [
"noreply@github.com"
] | Rumee040.noreply@github.com |
2a1f5e4881e26548e1ce7fdb9043a6c590f91749 | 90419da201cd4948a27d3612f0b482c68026c96f | /sdk/python/pulumi_azure_nextgen/devtestlab/latest/get_lab.py | f41e214f30cdd3cfa752fbedcad88a1a4eccd182 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | test-wiz-sec/pulumi-azure-nextgen | cd4bee5d70cb0d332c04f16bb54e17d016d2adaf | 20a695af0d020b34b0f1c336e1b69702755174cc | refs/heads/master | 2023-06-08T02:35:52.639773 | 2020-11-06T22:39:06 | 2020-11-06T22:39:06 | 312,993,761 | 0 | 0 | Apache-2.0 | 2023-06-02T06:47:28 | 2020-11-15T09:04:00 | null | UTF-8 | Python | false | false | 16,776 | 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
from ... import _utilities, _tables
from... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
80e5198c86ed27d6c8417c69bd3be133fb25d9a9 | 87738f6f80f4fe03ac15d6de02b9b51f4e340c4b | /Part 3 - Classification/Section 10 - Support Vector Machine (SVM)/svm.py | d94e5cd0a3aee556681f4db83424c2c51038813a | [
"MIT"
] | permissive | Nikronic/Machine-Learning-Models | b4209dcc5f5a428da9447bc40fc93b9f0e171880 | 9fb48463ee2211eec800b2436699508f55d5ee28 | refs/heads/master | 2021-11-10T14:50:56.425443 | 2021-11-07T15:42:48 | 2021-11-07T15:42:48 | 142,788,604 | 34 | 13 | null | null | null | null | UTF-8 | Python | false | false | 3,824 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Aug 17 23:26:31 2018
@author: Mohammad Doosti Lakhani
"""
# Imporing libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# Importing dataset
dataset = pd.read_csv('Social_Network_Ads.csv')
x = dataset.iloc[:,2:4].values
y = dataset.iloc[:,4].val... | [
"nikan.doosti@outlook.com"
] | nikan.doosti@outlook.com |
9889f501e5014b0b7e9eb35d9828310da06d2dac | 879b62155c70622d4100bf44c219f11288d90d76 | /peak_detection_matlab.py | 3302b3604bd5c0d46c5ca0f9fc18171ac27db9b3 | [] | no_license | praneelrathore/Ballistocardiography | c9e53d714659c91814f40ca59f24d2e127de3a93 | c8f8c2841f53bbacfb2179fd3aef44f3a58d3afa | refs/heads/master | 2021-11-11T17:12:11.816019 | 2021-11-02T16:41:41 | 2021-11-02T16:41:41 | 74,914,249 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,114 | py | def beat_location(frames_after_spline, window_size, cs_new, Fs):
k = 0
x_index = []#zeros()
beat_point = []#zeros()
index = 0
find_o = 0
window = 0
while 1:
if cs_new[find_o] == 0:
break
elif((cs_new[find_o] > 0 and cs_new[find_o + 1] < 0) or cs_new[find_o] < 0 ... | [
"a.garg95@gmail.com"
] | a.garg95@gmail.com |
ae4cb13734a0740053a6c4093337ac9c7f2ab6d8 | de707c94c91f554d549e604737b72e6c86eb0755 | /supervised_learning/0x02-tensorflow/7-evaluate.py | 16e4666e5785a1670cb87f5a081e939092818dc2 | [] | no_license | ejonakodra/holbertonschool-machine_learning-1 | 885cf89c1737573228071e4dc8e26304f393bc30 | 8834b201ca84937365e4dcc0fac978656cdf5293 | refs/heads/main | 2023-07-10T09:11:01.298863 | 2021-08-11T03:43:59 | 2021-08-11T03:43:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,069 | py | #!/usr/bin/env python3
"""
Defines a function that evaluates output of
neural network classifier
"""
import tensorflow as tf
def evaluate(X, Y, save_path):
"""
Evaluates output of neural network
parameters:
X [numpy.ndarray]: contains the input data to evaluate
Y [numpy.ndarray]: contai... | [
"eislek02@gmail.com"
] | eislek02@gmail.com |
0aced39f9e720a7bd36e2e19e7abdce7a403c575 | 6b2d62130252c0921715b22a626a2ce94ba91ee1 | /ITP125/Homework/Homework 3/hw03a.py | 1691b1ab48b6e8db263cbb850bf92b492a0d76e4 | [] | no_license | sthsher/USC_CECS | fba48c7b331f562a802958a9412ab2d5ee1f2ec3 | 776ca95cab2b1c132ee87e1fd8ce95c77315e452 | refs/heads/master | 2018-12-11T10:42:58.576051 | 2016-11-01T06:20:11 | 2016-11-01T06:20:11 | 24,713,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | shopping_list = ["banana", "orange", "apple"]
stock = {
"banana": 6,
"apple": 0,
"orange": 32,
"pear": 15
}
prices = {
"banana": 4,
"apple": 2,
"orange": 1.5,
"pear": 3
}
# Write your code below!
def compute_bill(food):
total = 0
for item in food:
if (stock[item] >... | [
"stephen.sher.94@gmail.com"
] | stephen.sher.94@gmail.com |
4f8cdbd5a7b33f05ef45e53e15cec978c09c4e1f | a86acf28472700008261fb3709134483b4d4c7e2 | /myutils/seq2seq_peeky.py | 39147587ca4e866f28e07cc94f092969ca0bb185 | [] | no_license | s1len7/ai-rnn | 5a0ab40e7aa0371f41131e99371991c3aeecfa98 | e3f0a07f1a5e4681b2209276b5f3d6a5d4901f1d | refs/heads/master | 2022-11-30T13:55:41.267065 | 2020-07-29T11:19:18 | 2020-07-29T11:19:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,012 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Mar 1 11:24:24 2020
@author: shkim
"""
"""
## seq2seq 성능 개선
* 1) 입력 데이터 반전(Reverse)
* 2) 엿보기(Peeky)
"""
"""
## seq2seq 성능 개선 : 엿보기(Peeky)
### base seq2seq 모델에서의 동작
* Encoder는 입력문장(문제문장)을 고정길이 벡터 h로 변환함
* 이때 h안에는 Decoder에 필요한 정보가 모두 담겨 있음
* 즉 h가 Decoder에 있어서 유일한 정보인 셈임
* 최초... | [
"shkim.hi@gmail.com"
] | shkim.hi@gmail.com |
3b7f9e6dbe9c7e658110923f1a4756af7ddbc9ba | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_274/ch134_2020_04_01_11_05_19_507472.py | ead9069b851dccdce2014878c391a3cdbe73018b | [] | 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 | 174 | py | def verifica_quadrado_perfeito(n):
m=n
i=2
while m > -1:
m=m-i
i=i+2
if m**2 == n:
return True
else:
return False | [
"you@example.com"
] | you@example.com |
2b010340767a1cea96729c9cee25bcdfd1e4b981 | c6b53079177e99790651980910358f9643eff009 | /blog/migrations/0009_blogpost_user.py | c466dc61885fc1ccf07ec3e976e2e2352c4eb528 | [] | no_license | ravi19999/Try-Django-2.2 | 09bffcf39806fce4fdbb4ff59f9fc5934ba9991a | f0379445bdb7fc07c14bcbf7514438ede3700223 | refs/heads/master | 2023-02-07T02:15:43.244332 | 2020-12-19T14:26:13 | 2020-12-19T14:26:13 | 303,755,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | # Generated by Django 2.2 on 2019-07-28 17:51
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('blog', '0008_auto_20190727... | [
"dahalravindra@gmail.com"
] | dahalravindra@gmail.com |
81264f2bcadaa766a81e3a63ef481439ed76116f | e20ed90b9be7a0bcdc1603929d65b2375a224bf6 | /generated-libraries/python/netapp/fpolicy/event_name.py | 476ecd9c31bd1a9cacb1652502a4f667427125da | [
"MIT"
] | permissive | radekg/netapp-ontap-lib-gen | 530ec3248cff5ead37dc2aa47ced300b7585361b | 6445ebb071ec147ea82a486fbe9f094c56c5c40d | refs/heads/master | 2016-09-06T17:41:23.263133 | 2015-01-14T17:40:46 | 2015-01-14T17:40:46 | 29,256,898 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | class EventName(basestring):
"""
Event name
"""
@staticmethod
def get_api_name():
return "event-name"
| [
"radek@gruchalski.com"
] | radek@gruchalski.com |
b054c26aafaec13538eb27a9368e36aabd141663 | 5da914bac3349b7ddbc31b17e43e9da99ae8f462 | /Ultimo Backup Server/node_modules/websocket/build/config.gypi | 46dc3b48213b03d7ddb4dbb87ef42c1eb094d654 | [] | no_license | marox360/Cemin-Marogna_workspace | 0bcd9fa5f508b250b0b57b4dc21254a9f24a64d1 | 63c630d95ca523f2e079b7d3831a6b45daca55bf | refs/heads/master | 2021-03-12T23:16:34.845956 | 2014-11-16T11:54:25 | 2014-11-16T11:54:25 | 10,483,752 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 296 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"defines": [],
"include_dirs": [],
"libraries": [],
"default_configuration": "Release"
},
"variables": {
"target_arch": "arm",
"target_version": "0.6.17"
}
}
| [
"lmarox@gmail.com"
] | lmarox@gmail.com |
77e13c60ab887ef65af5d208fbcad6ac63b78f87 | f067b46c0bd8bf4fbc2471c42c4a74cb08359bd5 | /server/config/settings/components/thumb.py | 6b24b0bc3fdca3195cad3f422c9b6577525857e0 | [] | no_license | bopo/project-template | ffbf3516c9f486fadb46a767688cb26badda6a3d | 0eedd18c236b66516e543750673934f4932555ca | refs/heads/develop | 2020-03-23T01:57:29.471378 | 2018-07-17T05:38:48 | 2018-07-17T05:38:48 | 140,947,688 | 0 | 1 | null | 2022-04-21T04:40:56 | 2018-07-14T13:18:49 | Python | UTF-8 | Python | false | false | 1,330 | py | # -*- coding: utf-8 -*-
# INSTALLED_APPS += [
# "django_thumbor",
# ]
# INSTALLED_APPS += ('easy_thumbnails',)
# THUMBNAIL_ALIASES = {
# '': {
# 'avatar': {'size': (50, 50), 'crop': True},
# },
# }
# THUMB_LIST = '500x500'
# THUMB_DETAIL = '800x800'
# The host serving the thumbor resized images... | [
"travis@travis-ci.org"
] | travis@travis-ci.org |
c74aea42a9ebf71293d70dbcefafdea417e21e02 | f66b0fda3a16eb7ceb8a7ceb63dcbc373c4ece2d | /smart_QC/libs/json_field/fields.py | 7fcada3804ff579ad916c9cef24d6cb98f62d8c2 | [] | no_license | zcyuefan/smart_QC | 9c82dd7b8a25bfcd0231195b1a797e3f491f3272 | fc8aaec48203065f09ffde7f318c3e39680092ba | refs/heads/master | 2021-01-19T04:55:40.300511 | 2017-09-13T02:31:48 | 2017-09-13T02:31:48 | 81,196,835 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,430 | py | from __future__ import unicode_literals
from .utils import is_aware
from .forms import JSONFormField
try:
import json
except ImportError: # python < 2.6
from django.utils import simplejson as json
from django.db import models
from django.core import exceptions
from django.utils.translation import ugettext_l... | [
"zcyuefan@126.com"
] | zcyuefan@126.com |
3c845b7e58c6b79f531cda02a940c22b1d703558 | ddbeb902aac1095e704f8dbd785c80b5054fd61c | /rango/models.py | a302b7c2f19e71a49547c30ee73ebd2278d7e3d7 | [] | no_license | Zhang9494/tango_with_django_project | ba355fcbd2cf201a6e849b31edbc615fd1472595 | 75e77cf6bdf1a7fcef1f02144ce9eaccc4aedfab | refs/heads/master | 2020-04-22T02:02:56.283865 | 2019-02-12T15:53:27 | 2019-02-12T15:53:27 | 170,034,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | from django.db import models
# Create your models here.
class Category(models.Model):
name = models.CharField(max_length=128, unique=True)
views = models.IntegerField(default=0)
likes = models.IntegerField(default=0)
class Meta:
verbose_name_plural = 'Category'
verbose_name = 'Category'... | [
"2410728Z@student.gla.ac.uk"
] | 2410728Z@student.gla.ac.uk |
0caed19093b2bb8c8baa715f300078ce5af57891 | bd5b5363f4924ded1f18a0511a9c8a5b6183417a | /python/gopher/menu.py | 1bbc5f5bbf04f1cd2eac1df88bbb76aa20eca0d2 | [
"MIT"
] | permissive | blabber/harbour-gophish | bd05970770a6704ae2722d69ad9e5fd57a9c55de | f864c02b4eec3b0396dc50a37c46ac1326749407 | refs/heads/master | 2021-08-24T01:16:54.144364 | 2017-12-04T12:12:12 | 2017-12-04T12:12:12 | 109,180,940 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,046 | py | """Contains functions and classes for the interaction with gopher menus and its
items.
"""
class MenuItem:
"""Represents an item in a gopher menu."""
def __init__(self, type, user_name, selector, host, port):
"""Initializes a new MenuItem instance.
The parameters correspond to the menu item c... | [
"tobias.rehbein@web.de"
] | tobias.rehbein@web.de |
368933543f3030bfc38b32795b89b4bccf0c2b47 | d8c1419eba8aeec8c203e819aae46475b744a66f | /archive/main.py | e6f339fa6539de2f2ff591d9c551fbb00f096b86 | [] | no_license | StefenYin/yeadon | a66aa1808ef662c76cd5d96db0f74cd25e3abcc7 | 03ae2c5881795e44f1890818fcb3530ba3c6feac | refs/heads/master | 2021-01-17T08:50:12.313236 | 2012-12-18T19:54:52 | 2012-12-18T19:54:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 698 | py | import stadium as stad
#import segment
import human as hum
import matplotlib.pyplot as mpl
from mpl_toolkits.mplot3d import Axes3D
import numpy as np
import data
import densities
# INPUTS ARE 95 MEASUREMENTS, DENSITIES, AND ORIENTATION ANGLES
# read input file of 95 measurements
# create solid objects
# create segm... | [
"cld72@cornell.edu"
] | cld72@cornell.edu |
14b6673a73fd4152a4af7be21d6eb6e4233c7f7e | 944401a6292baa2d23b9738898e0b0cb199d0795 | /color_quantization/octree/img_quality_assessment(IQA)/psnr/rgb_cs/rgb_psnr_sky.py | cdd42100b4527e977262e59e0ed94e2810f09ba1 | [] | no_license | sunnyweilai/Finding-Theme-Color-Palettes | cc84c93ce58abdd1802431c41bd59181d7a4f75b | 4c38b112f5c40b43d6ec126e415b609c7fdc1f39 | refs/heads/master | 2022-12-21T09:41:31.187411 | 2019-04-30T14:50:17 | 2019-04-30T14:50:17 | 184,273,925 | 1 | 0 | null | 2022-12-07T03:46:55 | 2019-04-30T14:09:52 | Python | UTF-8 | Python | false | false | 1,028 | py | """
image quality assessment (IQA) of the quantized images and the original image in RGB color space
----- method: PSNR
----- version 1.0 ("skimage" library)
----- http://scikit-image.org/docs/dev/api/skimage.measure.html#skimage.measure.compare_psnr
"""
import numpy as np
from PIL import Image
import glob
import csv
... | [
"wnn2260@gmail.com"
] | wnn2260@gmail.com |
98185120c68f6d1b952e23770e01e5e6897e04b1 | ea198bd6cf9b6c7cfa758b47807cf76279f4b049 | /Safety/users/migrations/0003_remove_user_radius_scan.py | c939b39ffb6f313db6133ca0f8b88484a4f4e128 | [] | no_license | hxt365/Safety | 2294e92e48ff1598a8a878e998f28fdf7f1eca8f | 0267337a5b4191e2b4c6fcc96c6493f3bcd47db1 | refs/heads/master | 2023-03-24T21:42:47.150843 | 2021-03-23T08:01:04 | 2021-03-23T08:01:04 | 334,204,269 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | # Generated by Django 3.1.4 on 2020-12-04 23:46
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('users', '0002_auto_20201204_0111'),
]
operations = [
migrations.RemoveField(
model_name='user',
name='radius_scan',
... | [
"hxt365@gmail.com"
] | hxt365@gmail.com |
0393192c5cd8c5fc21ce700e982b2dd3237f6f73 | 2ecfe34de36a0090154fb3a4fcb5785ce974eb09 | /GUI/RemoteBrowser.py | aa382124744e096fb2f815875bc75bb72676cc0a | [] | no_license | javiunzu/conan-gui | f362d39e14f1c5fba4ddcea93b7f14c8ea828116 | 681337f50abc6062cc504b7149dfcd1d90cbf635 | refs/heads/master | 2020-03-27T00:25:54.661918 | 2018-08-21T21:46:11 | 2018-08-21T21:46:11 | 145,622,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,568 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
from PyQt5.QtWidgets import (QApplication, QMainWindow, QAction, qApp, QTabWidget, QSplitter)
from PyQt5.QtCore import Qt
from PyQt5.QtGui import QIcon
import json
import ConanCommander
#import MenuBar
from GUI import NavigationPanel
from GUI import PackagePanel
from GUI imp... | [
"javiunzu@gmail.com"
] | javiunzu@gmail.com |
08a31863c9164c94e5f21abf17a85789d3e0e5c6 | dfdd59d51c13adb6a9dde46fa1b184dde016bcad | /model/load_data.py | d2c1f7c14e41991a79e1aebec477dd14269da80e | [
"Apache-2.0"
] | permissive | googleinterns/cl_analysis | bf0e64e79d704e9fb7bba44751efffd6084fe80e | 686cf49cd57ce61cba3cc11f0574b2a2cec596be | refs/heads/master | 2022-12-16T03:56:34.473083 | 2020-09-26T06:44:12 | 2020-09-26T06:44:12 | 277,630,242 | 5 | 3 | Apache-2.0 | 2020-09-26T00:01:06 | 2020-07-06T19:26:14 | Python | UTF-8 | Python | false | false | 14,091 | py | # Copyright 2020 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"pelny@google.com"
] | pelny@google.com |
4e3c0ef1f25cdcd986f146665468ac1c76395c52 | fac16ad71ac9b09afc9abf0528a98171ac02afc4 | /payment/payments/migrations/0003_category_product.py | ada7734a9c41e562f17f56d3edb03d1a44dd48c7 | [] | no_license | evansmwendwa/payment_gateway | 96dbaf3728ebe4e0875152c96ecfbe7b7004dd98 | afdeab38524ded46d1e557bab696afca9c387e7b | refs/heads/master | 2020-03-10T09:38:25.395169 | 2018-04-12T23:52:34 | 2018-04-12T23:52:34 | 129,314,383 | 0 | 0 | null | 2018-04-12T21:44:34 | 2018-04-12T21:44:33 | null | UTF-8 | Python | false | false | 1,097 | py | # Generated by Django 2.0.3 on 2018-03-26 03:13
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('payments', '0002_auto_20180326_0248'),
]
operations = [
migrations.CreateModel(
name='Category'... | [
"you@example.com"
] | you@example.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.