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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bf896d27d0957d9c1b5952ca011f6569797647a3 | 7c1c1f156299d8da8135ee41d8076e9ea38dce6a | /backend/manage.py | 62f3a31db53e84f0bd4e130f6618874c6b84ec9c | [] | no_license | crowdbotics-apps/spell-15623 | 479832f65626f5963ec837285c13ba2acc85e64d | 3df3d7fbf2048b8cd0b4eae4cd0b89c6f72bc0c2 | refs/heads/master | 2023-02-06T06:32:29.867764 | 2020-04-09T01:30:03 | 2020-04-09T01:30:03 | 254,241,135 | 0 | 0 | null | 2023-01-24T03:34:31 | 2020-04-09T01:29:09 | JavaScript | UTF-8 | Python | false | false | 631 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'spell_15623.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Im... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
aff89f0b2bd9f4a3b58372e9c62cf95ee59439a6 | c7980ab081ce890924accc0459509bde243159c6 | /src/tests/views.py | e67ff607d71291339e84a37f48ee475736abc1af | [] | no_license | Aliflail/MiniProject | 7226e1ceb7e36c0432b6c00e2632b6d6fb8634f9 | 722a3595f5885b862f55bdd540d630abb142d308 | refs/heads/master | 2021-01-09T06:23:54.525514 | 2017-04-06T03:38:02 | 2017-04-06T03:38:02 | 80,981,833 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,573 | py | from django.shortcuts import render,redirect,get_object_or_404,HttpResponseRedirect,HttpResponse
from django.views import View
from .models import Apt_Test,Testscore,Answers,Apt_Qns,Correct
from django.urls import reverse
from django.contrib.auth import get_user_model
from .forms import TestForm,QuestionForm,AnswerForm... | [
"albinpaul.ks@gmail.com"
] | albinpaul.ks@gmail.com |
9a98493bd0082a21a5f6dda7254b3c58a8d15f7b | 560c18c656edfbb423d306366a6b036b3876dc56 | /day4/6-lambda_dict.py | ed681e049c8d29d9fb139c1a637ddf3e3db4e933 | [] | no_license | Mahiuha/skaehub-assignment | e5f0ff59a40f27e6d47e9a4c4ec0023f41b63a08 | e20b6ec68a75a7b66bf0ce7a0358ea869164eca8 | refs/heads/main | 2023-06-15T18:13:46.391586 | 2021-06-30T20:47:28 | 2021-06-30T20:47:28 | 379,258,402 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | #a simple dictionary
my_dict = {2: 10, 1: 2, -3: 1234}
#sorts my_dict using lambda
sorted_dict = dict(sorted(my_dict.items(), key=lambda item: item[0]))
print(sorted_dict)
| [
"tiasho.mahiuha@gmail.com"
] | tiasho.mahiuha@gmail.com |
7b0357e1b2efeb828faeaa9ec80719e834364a29 | cb96922c78549f54bd27966151e0e696fe16b82a | /python/Flatten.py | fe0b9b41b253c482d868a0f4286fa01e6721884d | [] | no_license | erickhouse/practice | f86d006c13620f330cd9281f7e0690fa04461bc9 | 7734a30103d1eaa2dd2aa96520bc6265ae09e21e | refs/heads/master | 2021-06-02T06:24:41.173475 | 2020-08-29T20:44:56 | 2020-08-29T20:44:56 | 76,145,833 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 718 | py | # {
# a: 1,
# b: 2,
# c: {
# d: 4,
# e: {
# g: 10,
# h: 12
# }
# }
# }
#
# {
# a: 1,
# b: 2,
# c.d: 4,
# c.e.g: 10,
# c.e.h: 12
# }
nested = { 'a': 1,'b': 2,'c': {'d': 4,'e': {'g': 10,'h': 12} } }
def flatten(nested):
result = {}
while(nested):
for ... | [
"erickhouse01@gmail.com"
] | erickhouse01@gmail.com |
5f839e6297a28bbe1d2fc16fae3eb3409d2e3673 | fa582c5773c9fb68d7b2fc683ee890ae286b8f14 | /PyTorch/SpeechSynthesis/Tacotron2/tacotron2/model_prosody.py | b27cd358b454e55b4e1f1b323dc7a91d88b35e6b | [
"BSD-3-Clause"
] | permissive | Hweemyoung/DeepLearningExamples | eadd38250c8568d6e9040ace9e1401fe75b720b0 | 6a3bc2e2e02928c5bda874cbd664a1033db75b76 | refs/heads/master | 2020-08-07T08:03:46.259949 | 2019-10-20T08:39:59 | 2019-10-20T08:39:59 | 213,364,586 | 0 | 0 | null | 2019-10-07T11:23:22 | 2019-10-07T11:23:21 | null | UTF-8 | Python | false | false | 4,392 | py | from math import sqrt
import torch
from torch.autograd import Variable
from torch import nn
from torch.nn import functional as F
from torch.nn.modules import MultiheadAttention
import sys
from os.path import abspath, dirname
# enabling modules discovery from global entrypoint
sys.path.append(abspath(dirname(__file__)+'... | [
"hweemyoung@gmail.com"
] | hweemyoung@gmail.com |
122d9d89d8b4a635610d0e0ab630a9107009ec01 | a349e493472777973532a92d82c32828b74ab2cf | /posts/views.py | d0cbfb3c66dfff7904e009793310cef8b5cdb232 | [] | no_license | stephen-lakes/blog-api | 57daa7609936b73b2988a44670d2bc3bd1d42ddc | 32f3546c98962849989f1940ea9494b8892510fd | refs/heads/master | 2023-07-09T04:01:00.849999 | 2021-08-11T17:31:53 | 2021-08-11T17:31:53 | 391,179,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 642 | py | #from django.shortcuts import render
from django.contrib.auth import get_user_model
from django.db.models import query
from rest_framework import viewsets
from .models import Post
from .permissions import IsAuthorOrReadOnly # new
from .serializers import PostSerializer, UserSerializer
class PostViewSet(viewsets.Model... | [
"oluyomiolamilekan99@gmail.com"
] | oluyomiolamilekan99@gmail.com |
24dfac46657f278b609024a9bfb666724ab17f09 | e5c9a513779713339d27a3d477475c075d3e611e | /album_cover_flipbook.py | 3728291d81760995f935cbeaba99abd80cae2c67 | [] | no_license | innes213/AlbumFlipBook | 3d6a182c40348999dd65034f482b38ddedaf1325 | 9c71ff4c922964ed8186caada60fcd31b5c2ee85 | refs/heads/master | 2020-04-19T02:54:36.335090 | 2019-01-28T07:24:56 | 2019-01-28T07:24:56 | 167,918,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,534 | py | '''
Simple script that grabs your Discogs collection,
sorts and downloads the images then compiles them
into a video using ffmpeg
'''
from math import floor, log10
import os
import urllib3
import discogs_client
USER_TOKEN = '<<<DISCOGS USER TOKEN>>>'
UA_STRING = '<<<MEADINGFUL USER AGENT STRING>>>'
def curl_urls(ur... | [
"innes213@yahoo.com"
] | innes213@yahoo.com |
9340ea406a2992c1528ff2265f2414cfc823cd00 | 80fcadb5d843ce5aaffe91b6177070ae5530c7db | /website/website/urls.py | c04eab4bf273713c9fadb246b4cfd327292954e0 | [] | no_license | g-prog/second-django-project-website | 9496f2b9adfb9a769076391c58c63b3fdcdd7b91 | 0156871d1ae5a5f58d7cc63cca5e1d51dad15256 | refs/heads/master | 2022-11-17T19:16:23.581826 | 2020-07-17T14:16:50 | 2020-07-17T14:16:50 | 280,439,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 990 | py | """website 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')
Class-based... | [
"alaobukky2@gmail.com"
] | alaobukky2@gmail.com |
305da2da6f4b22e89e4160f93e3e470090d20926 | d78dfc5089717fc242bbd7097f507d811abb4260 | /USA/script.icechannel.Usefile.settings/default.py | bdf16309ca6cef9b0506ee0fee1844dc07dd00bb | [] | no_license | tustxk/AddOnRepo | 995b980a9ec737e2c25bed423fc83f710c697e40 | 6b86a06cb37e6e10b4119584dd7311ebc2318e54 | refs/heads/master | 2022-10-08T21:34:34.632346 | 2016-10-28T09:48:01 | 2016-10-28T09:48:01 | 70,684,775 | 1 | 1 | null | 2022-10-01T16:27:13 | 2016-10-12T09:31:16 | Python | UTF-8 | Python | false | false | 163 | py | addon_id="script.icechannel.Usefile.settings"
addon_name="iStream - Usefile - Settings"
import xbmcaddon
addon = xbmcaddon.Addon(id=addon_id)
addon.openSettings()
| [
"ke.xiao@netxeon.com"
] | ke.xiao@netxeon.com |
e68399de2cbde8fb459d31a5b0f26802eedc02c9 | eb047689833040ac6a46a8495b8c133d22d6caeb | /mainapp/migrations/0005_volunteer_about.py | 375f711dcb8646677a15c436b7fd2a63999b240c | [] | no_license | VadzimIlyukevich/Kitty-brotherhood | f203a973ad80f7e6375336a9b75b1a7ad1ac7d29 | e22991e9d7761c77423cf9f141699eecef15224c | refs/heads/master | 2023-05-05T21:08:21.044061 | 2021-05-19T13:56:23 | 2021-05-19T13:56:23 | 350,036,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | # Generated by Django 3.1.7 on 2021-03-07 15:26
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('mainapp', '0004_auto_20210307_1729'),
]
operations = [
migrations.AddField(
model_name='volunteer',... | [
"mr.vadikru@mail.ru"
] | mr.vadikru@mail.ru |
5c83cbbae4b95517c03a9be67385a5ebb1f0cdd1 | aaf894645141fec4f75a857d7cd0f742919ec47e | /Q2/Q2_2.py | eede438b699e1df3ea3cf969b52382521a8b29e3 | [] | no_license | hyk10/HPC | b04488117d6c6e93c214f1edafae8d9bcc3e7ba0 | abb59f731dd665cdd4ef796f0820cb7f32680f7b | refs/heads/master | 2021-01-10T10:14:09.643011 | 2016-03-27T20:22:04 | 2016-03-27T20:22:04 | 53,947,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,877 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Mar 27 14:28:34 2016
@author: hyk10
"""
import matplotlib.pyplot as plt
import random
import math
import subprocess
import yaml
print(1)
L_d = '1.0'
dt = []
dx = []
rmse = []
#compiling c++ code
for i in range(int(math.ceil(random.uniform(1.0, 1000.0)))):
#generating r... | [
"hong.kim10@imperial.ac.uk"
] | hong.kim10@imperial.ac.uk |
ac6f0205b3ef4340feb2cca61438f21573f250fa | b8fa117bc2f7f4707ca0e0d77c5dca34481a0f7a | /tests/test_looper.py | 71cffb1a22e8ba578e192a7afbfb83573f490b07 | [
"MIT"
] | permissive | tds333/tempita-lite | 0e8f9bbadfc82ad89cbcb901136ecf4a39881981 | 1f7188a7e11031d972bdc9b02e43c297c12a189d | refs/heads/master | 2021-01-10T02:51:31.505001 | 2016-01-17T14:34:18 | 2016-01-17T14:34:18 | 49,818,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | # -*- coding: utf-8 -*-
from pytest import raises
from tempita_lite import *
def test_looper():
seq = ['apple', 'asparagus', 'Banana', 'orange']
result = [(1, 'apple'), (2, 'asparagus'), (3, 'Banana'), (4, 'orange')]
for loop, item in looper(seq):
if item == 'apple':
assert loop.first... | [
"tds333@users.noreply.github.com"
] | tds333@users.noreply.github.com |
16f5a85d699528ebd3ae47296de7a318a8c7ec12 | 6118416057aac5ad2c4d2cf2bbe020f653d2b6d6 | /ProxyPool/proxypool/crawler.py | d085f4e5135275508c10d78062eef98a26b58af8 | [] | no_license | CarySun/Question_Answering_for_Recruitment_Based_on_Knowledge_Graph | 19a065df25bb889356d305aeb834a88d5efd3df6 | bbcf6cff74d62bc5676bfec716107003455c9bff | refs/heads/master | 2020-07-04T10:11:28.727729 | 2019-09-01T05:32:33 | 2019-09-01T05:32:33 | 202,252,503 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,858 | py | # coding:utf-8
import json
import re
from pyquery import PyQuery as pq
from .utils import get_page
class ProxyMetaclass(type):
def __new__(cls, name, bases, attrs):
count = 0
attrs['__CrawlFunc__'] = []
for k, _ in attrs.items():
if 'crawl_' in k:
attrs['__Cra... | [
"caryjimmy@outlook.com"
] | caryjimmy@outlook.com |
13d94fbc8c529347564e68ae352e8791e6f3f999 | 21db32a9f83bb6fc8cb5e7b9fe7ddbfdfee05fdd | /harrysCoffee/harrysCoffee/urls.py | d782f776c2967ce85ed9594201c4fc74eb69e919 | [] | no_license | ijhan21/RAPA_project_QRCodeCafe | 90de73988b6b8f2af925fe5005aa5e868a056149 | 2b7489056e59c15ae934ba92c9ec7cbb02ae8f71 | refs/heads/main | 2023-08-26T21:28:43.223744 | 2021-11-07T13:26:10 | 2021-11-07T13:26:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,384 | py | """harrysCoffee URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/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-... | [
"reinforcehan@gmail.com"
] | reinforcehan@gmail.com |
5aa1a0019409474b6fc59471225e3bba912b4d8a | 9979bd49c4bdd12e58282562847a76bd9830c100 | /tests/test_alpha.py | bb50e65677616b1b6dabb8d7ed8bdabc8a897abc | [] | no_license | prasertcbs/basic_pytest | 76a3de6192fdccd0f7f4b599e0481ae16bccc3f3 | f4b8f68328cc7c1422d4b8c308f144b7b26995cf | refs/heads/main | 2023-02-07T11:37:18.974152 | 2021-01-03T06:49:26 | 2021-01-03T06:49:26 | 322,767,166 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 582 | py | # doc https://docs.pytest.org/en/stable/index.html
from src.area import rectangle, triangle
from src.volume import *
import pytest
def test_one():
assert rectangle(5, 2) == 10
assert rectangle(5, 2) == 10
assert rectangle(5, 4.5) == 22.5
assert triangle(5, 2) == 5
def test_volume():
... | [
"bluecotton.k@gmail.com"
] | bluecotton.k@gmail.com |
a0f369cb6dbc35d2c1dcb49d0b2b181c956a5d1b | 4b704bf97694f64b114727473cb4e3a8981015a8 | /TDD_django/lists/migrations/0001_initial.py | d5255d879bf157ce5e7afe5919ab1da002a2a7a8 | [] | no_license | smartfish007/githubtest | a07fbbb80de2684ac79f29c25feed90bf2a5fee8 | 226c2cc9a2a0e7b0b39bef2106b0ee1a1545d002 | refs/heads/master | 2020-05-22T15:17:38.924749 | 2019-10-28T02:43:18 | 2019-10-28T02:43:18 | 186,404,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | # Generated by Django 2.2.6 on 2019-10-24 02:57
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Item',
fields=[
('id', models.AutoField(aut... | [
"1354275149@qq.com"
] | 1354275149@qq.com |
01ccab3887279b745e87952b9cf90ff74ac68252 | bbea4bdeb66a6249cd3606214708f87acb1bbe77 | /modeling/model_random_forest.py | c1dfcc485c4b1ade144149ea72f6e500710bfd29 | [] | no_license | mikochen0107/hospitalization-prediction | 7e397e05945818e6aa6a0f19aa8d39d840f5c5e5 | e760d208ac1d930c0717d8b8249a2a5d2e1ab213 | refs/heads/main | 2023-03-20T09:09:17.741019 | 2021-03-18T07:10:36 | 2021-03-18T07:10:36 | 348,963,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,204 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import os
# import training data
X_train = np.genfromtxt(r"M:\UCSF_ARS\michael_thesis\processed_data\X_train_knn.csv", delimiter=',')
y_train = np.genfromtxt(r"M:\UCSF_ARS\michael_thesis\processed_data\y_train.csv", delimiter=',')
y_train = y_train... | [
"noreply@github.com"
] | mikochen0107.noreply@github.com |
6c3781d38ce07a5781ef98ec34f4ca29f730e085 | 3f3b03d60187d35277706997caea0fbf9ba51c50 | /data/utils/add_ballot_set.py | 0147d955e9560320813b0ba6d194c73f0a31d4c6 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | jamespenn/tabbycat | 9ffc1df302b49845ac2bd450977751a845f747be | 01d116436c79de6aa79ba74533928ff030b04409 | refs/heads/master | 2021-01-21T14:40:02.105816 | 2015-02-27T23:41:54 | 2015-02-27T23:41:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,725 | py | """Adds a randomly generated ballot set to the given debates."""
import header
import debate.models as m
from django.contrib.auth.models import User
from debate.result import BallotSet
import random
SUBMITTER_TYPE_MAP = {
'tabroom': m.BallotSubmission.SUBMITTER_TABROOM,
'public': m.BallotSubmission.SUBMITTER... | [
"czlee@stanford.edu"
] | czlee@stanford.edu |
12d37e32bdf2c73f7d04fd1ee807c5fab5b654a9 | c70f67510e650fbd39a265dba1675249c4db4b59 | /images/src/cvcs.py | 8b9375de94c69038852ffa7f97d608e35696979d | [
"MIT"
] | permissive | captainobvious62/euroscipy-git-tutorial | 07a25ccfd8bb89f9ef15e67856ac79c08909d27a | b787ac07fe0ceee340cc2cc29470eb04eacee23c | refs/heads/master | 2021-05-03T07:08:17.619835 | 2017-09-02T14:48:06 | 2017-09-02T14:48:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,634 | py | from pyx import canvas, color, deco, deformer, path, style, text, trafo, unit
def server(r, servercolor=color.rgb(0.5, 0.5, 0.8)):
c = canvas.canvas()
c.fill(path.circle(0, 0, r), [servercolor, trafo.scale(1, 0.5)])
h = 2*r
p = path.path(path.moveto(-r, 0),
path.lineto(-r, -h),
... | [
"gert.ingold@physik.uni-augsburg.de"
] | gert.ingold@physik.uni-augsburg.de |
0a4b8ca43554cab15c582bb8547a78e501b55484 | 312f16ba4fa6af5e6a59b83b399a04a3fb3d733f | /cj.py | f8ce421b3ec55ec7ce870c3162aa499a6be452ba | [] | no_license | darkzone964/cj | 1e17a52967692d31e5ef6115bb4c3faaddfd0991 | 215dd8ee7c807cacaa17e5b30568edb26bfc056e | refs/heads/main | 2023-08-12T15:16:25.795548 | 2021-10-14T01:13:46 | 2021-10-14T01:13:46 | 416,946,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,652 | py | import random
import requests
import pyfiglet
import time
Z = '\033[1;31m' #احمر
X = '\033[1;33m' #اصفر
Z1 = '\033[2;31m' #احمر ثاني
F = '\033[2;32m' #اخضر
A = '\033[2;34m'#ازرق
C = '\033[2;35m' #وردي
B = '\033[2;36m'#سمائي
Y = '\033[1;34m' #ازرق فاتح
logo = pyfiglet.figlet_format("$ DARK $")
print(Z+logo)
time.sleep... | [
"noreply@github.com"
] | darkzone964.noreply@github.com |
ea85b7a01c35594aa879e8c19cf32d713ae7b570 | e27b8e2cff428e9d868658a62f541d4ec1b2c9bb | /client.py | 81b8bd1bba9c8d25dc98f2a14a282683f1cf8579 | [] | no_license | KooKaik/YDays-Python | 14f2af7078cac11efac969934b2317375005b1c2 | fa2f960cc416415067a29a330d4ae18f242dcfe6 | refs/heads/main | 2023-02-25T17:34:59.786630 | 2021-01-20T15:28:31 | 2021-01-20T15:28:31 | 331,334,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 881 | py | import socket, sys
HEADER_LENGTH = 128
HOST = '127.0.0.1'
PORT = 5000
pseudo = input("Username: ")
# Creation du socket
client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
# Liaison de l'IP et du Port
client_socket.connect((HOST, PORT))
# Encode et envois le pseudo sur le serveur
use... | [
"noreply@github.com"
] | KooKaik.noreply@github.com |
2fe2b0bec6d4e99d94157d4fce5d7ca7f970acf0 | 4a56cce6ab7d931cb80258dba608eff9413ea8fe | /dnac_pnp/site_handler.py | 77279b3d9753f075b2c5389cdf45381ca7c690a0 | [
"BSD-3-Clause"
] | permissive | nttde/dnac_pnp | cf91e8eacdcb69894eb59a4c48ae12e17954e606 | 248dc397fc083ff13f5a0106b1cde77a9aaead55 | refs/heads/dev | 2023-01-02T06:08:30.494584 | 2020-10-28T09:49:42 | 2020-10-28T09:49:42 | 303,541,117 | 5 | 1 | BSD-3-Clause | 2020-10-28T09:52:00 | 2020-10-12T23:58:48 | Python | UTF-8 | Python | false | false | 6,454 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Site handler functions"""
# Import builtin python libraries
import json
import logging
import sys
# import external python libraries
import click
from yaml import load
import yaml
# Import custom (local) python packages
from .api_call_handler import call_api_endpoin... | [
"dalwar.hossain@global.ntt"
] | dalwar.hossain@global.ntt |
220337e9db7609dda127a36c6ec0295396649b7e | 3d5ca4c6979f263e1cffa00d05c5b20ce7b991bf | /Photos/tests.py | 44bb715b4ff41fb29993ab66dbfb0463070e0240 | [] | no_license | UmuhireAnuarithe/Personal_Gallery | 9851d27b23e97f4bdab7ccc8cdde78f16f0ad148 | 4e06b203ea0f244a5e7400bf7eedde6361563872 | refs/heads/master | 2021-06-24T08:12:20.964784 | 2019-10-14T10:33:19 | 2019-10-14T10:33:19 | 213,857,897 | 0 | 0 | null | 2021-06-10T22:04:37 | 2019-10-09T08:04:55 | Python | UTF-8 | Python | false | false | 3,902 | py | from django.test import TestCase
from .models import Image,Category ,Location
# Create your tests here.
class ImageTestClass(TestCase):
# Set up method
def setUp(self):
self.animal= Image(image = 'passion.jpeg', name ='Animal', description='animal image')
self.technology = Category(category='T... | [
"anuarithemuhire@gmail.com.com"
] | anuarithemuhire@gmail.com.com |
29c17bf2b044a349ce48555b1f3f2079419ec58a | a4ba9bd7f3e5cf6af3f505cc2c760e763c32442f | /main.py | f0df6132a624264b9741c57b361b1f5d12d319ca | [] | no_license | rohinisyed/GuessTheNumber | 41736f625d4c7ebafcb666c3a8c985817458beac | aeedf9c8434724f43f75b5d52a188a76db0c586e | refs/heads/master | 2023-01-08T00:22:50.279101 | 2020-11-08T18:12:07 | 2020-11-08T18:12:07 | 310,939,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | from random import randint
play_game=True
random_number = randint(1,100)
while play_game:
player_guess = int(input("Guess the number: "))
if player_guess > random_number:
print ("Too High, Try again!")
elif player_guess < random_number:
print ("Too low, Try Again!")
else:
play_again = input ("... | [
"syedrohini1@gmail.com"
] | syedrohini1@gmail.com |
6ac04c2edad83957138b8eee41a319c63031aff4 | 853882976cffe5cd615a899dd9b438a2b78f3c34 | /SampleFeature/FeatureVector.py | eaf288ca8c9ca423cb5223b50859e9f4018fc67b | [] | no_license | promisivia/experience-oim-under-dcm | 9814d026e15685b7a00085777d2ae9aa430400e1 | 0bac6aef6cbc9b4af152d228b9f2c172c8ce49d1 | refs/heads/main | 2023-02-19T16:21:13.680028 | 2021-01-22T17:56:16 | 2021-01-22T17:56:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | import pickle
import random
import numpy as np
featureDic = {}
dimension = 5
dataset = 'NetHEPT'
# --------------------------- DC probability ----------------------------------- #
G = pickle.load(open('../datasets/' + dataset + '/graph.G', 'rb'))
for (u, v) in G.edges():
featureVector = np.array([np.random.normal... | [
"fangnuowu@gmail.com"
] | fangnuowu@gmail.com |
31d493116b2e621b5d93a3977480ec7ae3fd48cf | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2157/60749/252819.py | e40d7365ee8419681863874c71cda7f98525182e | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | str1=input()
def RomaToNum(str1):
dic={'I':1, 'V':5, 'X':10, 'L':50,'C':100,'D':500,'M':1000}
res=[]
for h in str1:
res.append(dic[h])
max1=0
for t in res:
max1=max(t,max1)
max_index=res.index(max1)
result=0
for h in range(0,max_index):
result-=res[h]
for h in... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
6236d13610ac9b00017917536dbe4c9b7eddaf73 | 369689c1d709326999824afe323378bb381ee722 | /hakem_crawler/threaded_hakem_crawler.py | 7ef05a5ae50662e184b167633cbef24a5b85c5f4 | [] | no_license | folmez/TFF_crawler | 80cd0e5b58d8449558a8f024141e56249f48bbde | 04dc18ebe6a9a61e68930daa42a412e38a0fcb81 | refs/heads/master | 2020-04-06T14:34:50.459162 | 2018-12-14T12:36:36 | 2018-12-14T12:36:36 | 157,546,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,467 | py | import hakem_csv_tools
import hakem_info_extractor
import TFF_hakem
import queue
import threading
import csv
import time
from selenium import webdriver
from selenium.common.exceptions import WebDriverException
DEFAULT_MATCH_INPUT_FILENAME = '/home/folmez/Dropbox/Documents/WWW/not_public/sample_matches_1000_1010.csv'... | [
"folmez@gmail.com"
] | folmez@gmail.com |
98977ef8cf14cb3eacaaa82bf32eb3c854d0ca8d | 6923f79f1eaaba0ab28b25337ba6cb56be97d32d | /CFD_from_scratch_Lignell/cfd.py | 759f232c789c441088b4d6a0d5ae6faa654aacdf | [] | no_license | burakbayramli/books | 9fe7ba0cabf06e113eb125d62fe16d4946f4a4f0 | 5e9a0e03aa7ddf5e5ddf89943ccc68d94b539e95 | refs/heads/master | 2023-08-17T05:31:08.885134 | 2023-08-14T10:05:37 | 2023-08-14T10:05:37 | 72,460,321 | 223 | 174 | null | 2022-10-24T12:15:06 | 2016-10-31T17:24:00 | Jupyter Notebook | UTF-8 | Python | false | false | 10,504 | py | import numpy as np
from scipy.sparse import diags
from scipy.sparse.linalg import spsolve
import matplotlib.pyplot as plt
IJ = np.ix_
def set_user_specifications():
global nx, ny, Lx, Ly, ν, ubc_t, ubc_b, vbc_r, vbc_l, n_τ_run, cfl
nx = 40 # number of grid points in x direction (P-grid)
ny =... | [
"me@yomama.com"
] | me@yomama.com |
13dcd06c73d918ab2d6a73de07a00a3c7590e697 | 484da6ff9bda06183c3d3bbda70c6d11e1ad6b67 | /.history/stats_20191010223658.py | 7c0eae6ac44c7b062031bcdfb01ecde134b2d698 | [] | no_license | Shynar88/TSP | 009a88bbddb29214921de4d0cf1761dea61b7b75 | 889751ab7d6a91469e86c6583f3c91b85857edd9 | refs/heads/master | 2020-08-06T22:40:49.217474 | 2020-01-14T13:41:44 | 2020-01-14T13:41:44 | 213,185,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | import matplotlib.pyplot as plt;
import numpy as np
def parse_log_data():
generations = []
distances = []
for line in open("logs.log", "r"):
info = line.split(" ")
generations.append(info[0])
distances.append(info[1])
return generations, distances
if __name__ == "__main__":
... | [
"shynartorekhan@gmail.com"
] | shynartorekhan@gmail.com |
b8bf6a1519b5ce449199a0019b7744432090e238 | 52c1e2d5dadb27ef614e964c1c4ae5e1e2bff669 | /scripts/model_generation.py | d0b5ed6a3ea44b2ec723f8da9f5b95d476fa3491 | [] | no_license | Yelvd/PPAM22-Building-Analytical-Performance-Models-for-Complex-Applications | e189e1705e05a75bc8c161676ba46b1ab16a1979 | 91e67b1be17243176631d26f91eb896e61098bd7 | refs/heads/main | 2023-04-13T10:49:30.913672 | 2022-09-08T14:30:59 | 2022-09-08T14:30:59 | 483,641,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,939 | py | # %matplotlib widget
import getopt
import sys
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.lines import Line2D
import glob
from scipy import stats
from scipy.optimize import curve_fit
import scipy
from mpl_toolkits.mplot3d import Axes3D
from matplotlib import cm
import read_dat... | [
"jelle.van.dijk@uva.nl"
] | jelle.van.dijk@uva.nl |
5d78ddfa44406d1b5fea5e775662f57a46d90688 | 7b3b859dd633eb2240d987b37e487ea8388e2f8d | /empirical/Chen2010/Chen2010.py | 0fe08644c1f533bdae0bdb3a81b33691ee231b19 | [] | no_license | yszhuang/assetPricing2 | 96956638f6c26e4e7d33e0abffe5c5c14460000a | 10af01a66bcd13cb516920e9cb1b46d8cfa6b598 | refs/heads/master | 2022-01-13T02:00:09.070100 | 2018-09-01T02:28:21 | 2018-09-01T02:28:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,023 | py | # -*-coding: utf-8 -*-
# Python 3.6
# Author:Zhang Haitao
# Email:13163385579@163.com
# TIME:2018-05-09 16:23
# NAME:assetPricing2-Chen2010.py
from core.constructFactor import single_sorting_factor
from core.myff5 import regression_details_5x5, ts_panel, model_performance
from data.dataApi import Database, Benchmark
f... | [
"13163385579@163.com"
] | 13163385579@163.com |
ba53c86084ab7132c23a4ca3328f60329d7f26db | 7737ecae1022b942c8c81d300319e86761448712 | /q5/groups_reducer.py | 2c77f6329571bd553c570bd59fee8b1b7fe05a0d | [] | no_license | yongjili/CS-5364-Information-Retrieval | 2c8d0f70c3fc37bc3d75ac07744bd83523b1bb95 | 2fbac90af08d98ea584f5e96d211498e0ade7894 | refs/heads/master | 2020-12-25T03:21:26.450190 | 2016-03-12T06:02:08 | 2016-03-12T06:02:08 | 52,094,801 | 0 | 0 | null | 2016-02-19T14:57:29 | 2016-02-19T14:57:29 | null | UTF-8 | Python | false | false | 399 | py | import sys
oldKey = None
posters = []
for line in sys.stdin:
data_mapped = line.strip().split("\t")
if len(data_mapped) != 2:
continue
thisKey, author_id = data_mapped
if oldKey and oldKey != thisKey:
print oldKey, "\t", posters
oldKey = thisKey
posters = []
oldKey = thisKey
poste... | [
"yongji.li@ttu.edu"
] | yongji.li@ttu.edu |
e2c04d3168034ac14b89491c4c87aa3e7a2b81ba | b4f728e9e1a2d799df956605880fbad4e82e2420 | /execrise_4.py | fc703abd6ebea14a99f6306ac9b1668e12684ede | [] | no_license | shaik882/execrises | 6d9cbffc3a29d81125af4ea144467a7bfa01b425 | 28c6fd1991a7bd8c5ffdd1244780041ae7deff7f | refs/heads/master | 2023-05-24T02:42:11.012970 | 2021-06-09T12:23:04 | 2021-06-09T12:23:04 | 267,795,596 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | #Program to play Dice game
import random
class Dice:
def roll(self):
first = random.randint(1, 6)
second = random.randint(1, 6)
return first, second
dice = Dice()
print(dice.roll()) | [
"shaik882@gmail.com"
] | shaik882@gmail.com |
8a677bd1b870436d692001e743366f641277934d | 14b280c2d987649469cc740e0f8fd865849c310a | /django_polls/urls.py | 41a5e0bcc674cb9719b031babbd9ccdc53519057 | [] | no_license | Vishu9/django_polls | b1452df453f8f2f214357df246ebb2586eee4612 | d9dd742abe6b624d8a875597690f61a47c08e329 | refs/heads/main | 2023-02-21T09:08:17.116796 | 2020-12-17T09:02:14 | 2020-12-17T09:02:14 | 322,238,387 | 0 | 0 | null | 2021-01-23T08:02:53 | 2020-12-17T09:04:08 | Python | UTF-8 | Python | false | false | 224 | py |
from django.contrib import admin
from django.urls import path, include
import polls.views
from django.views import generic
urlpatterns = [
path('polls/', include('polls.urls')),
path('admin/', admin.site.urls),
] | [
"mr.vishalww@yahoo.com"
] | mr.vishalww@yahoo.com |
5c6fc7d522c9bf98823daaf72e654584b662ff66 | c26a5638c0166885fbe499d65373abb42bebaabe | /src/pydane/core/__init__.py | 7297e2a80008ec9aa88d81c5f84d0218990c2be9 | [
"ISC"
] | permissive | avaiss/pydane | 128d74e6e738865ea89aa4c776111f23da786de2 | 3d9449ab8c32fa2f5b988de3778b68ee3b942240 | refs/heads/master | 2021-05-28T02:50:20.738632 | 2014-11-23T18:40:30 | 2014-11-23T22:10:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 779 | py | # coding=utf-8
# Copyright (C) 2014, Alexandre Vaissière
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE... | [
"avaiss@fmiw.org"
] | avaiss@fmiw.org |
9be4a47a1465c09c4e475b51bae8a2ea45f791fa | 067f393ca7943c2e6b6ba336fdf87a431a76dff8 | /tests/test_graphical_units/test_img_and_svg.py | 2e3775722e89b408161d8d2309238e781549bfbb | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ffintg3v7/manim | c7c5603891c9c075fcbcba899ef7026be9522fcd | 7621c6ab8e9169a86b36bf7f9b862aa42995ce86 | refs/heads/master | 2023-04-02T06:03:42.033382 | 2021-04-09T12:06:33 | 2021-04-09T12:06:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,344 | py | import sys
from pathlib import Path
import pytest
from manim import *
from ..helpers.graphical_units import set_test_scene
from ..helpers.path_utils import get_project_root
from ..utils.GraphicalUnitTester import GraphicalUnitTester
from ..utils.testing_utils import get_scenes_to_test
def get_test_resource(filenam... | [
"noreply@github.com"
] | ffintg3v7.noreply@github.com |
87ffa029204a02b6b24eb241d0b349c255608b57 | ccfc8b4b6b7a48e387c3ecd56ca110eb9f174367 | /python/work/5.0-stable/project/videoclient/api/persons/photos/urls.py | 75d2aa555f21b805075d975db736c3fe7ef27c5c | [] | no_license | denis-pinaev/tmp_trash | c4d6c4a4cefaacc8af5e93d1175f0a56e3d8e656 | 7642c0ef0cc45b978e579023406abfbbb656896d | refs/heads/master | 2016-08-11T12:03:43.376455 | 2016-03-04T12:53:35 | 2016-03-04T12:53:35 | 52,145,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | from django.conf.urls.defaults import patterns, include, url
import views
urlpatterns = patterns('',
url(r'^list/*$', views.list, {}, 'api_list_photos'),
url(r'^left/*$', views.left, {}, 'api_left_photos'),
) | [
"corcc@yandex.ru"
] | corcc@yandex.ru |
8b0bbf598493047a2ddf09ef14a559e0ca925884 | 58983ba0dd5b8f39c9b280bce3628b098e2020c3 | /Hunger/Clientes/Hunger/wsgi.py | 760e4d0c38c6880d409e69cef0b4c65c213e2a72 | [
"Apache-2.0"
] | permissive | mjunior2016/HungerCompass | cb6406eb7b035a5a09a423a2dd53bbf77a0836dd | b87338a7f4efa5afb6f9fe04fd5fca6783452c0a | refs/heads/master | 2020-04-26T06:32:32.809799 | 2019-03-14T00:01:56 | 2019-03-14T00:01:56 | 173,367,598 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
WSGI config for Hunger 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.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTIN... | [
"marcosjunior2016@hotmail.com"
] | marcosjunior2016@hotmail.com |
488691c6b9d0bcb63bd98066118597932c8db642 | 0b0db5c669ce1e4f1aaf0d44daa87790271df14a | /tutorial/settings.py | dc56a657a26d9e6f08dfc321a360719701ae02e0 | [] | no_license | lijinjiong/spider | 9ab10af2bc6578283b58e2268701ca207d659269 | 303d8a6439de0992b5b4d105b9f0c68484139fec | refs/heads/master | 2021-09-04T17:22:53.149948 | 2018-01-20T10:13:48 | 2018-01-20T10:13:48 | 114,831,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,198 | py | # -*- coding: utf-8 -*-
#feed_export_encoding
FEED_EXPORT_ENCODING = 'utf-8'
# Scrapy settings for tutorial project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settin... | [
"huangmei@lxbznkj.com"
] | huangmei@lxbznkj.com |
fbec5f8aff50f8a10897aca674a0c3f8dcbbb350 | e9d9a7582bd1c72469ab3b570c7c8d554726afb8 | /docker/bcctapp/migrations/0001_initial.py | 15861ab3b39f34f7b97ff103ded3e8c1b3181e76 | [] | no_license | safarsaitam/ctm-interships-2020-webbcctcore | 6a03419724d9e92da59773b62dcce22ed301abbf | 36bbe4c4288faecd7a00638e48e36769de789aa1 | refs/heads/master | 2023-02-26T20:57:15.986190 | 2020-08-02T10:57:23 | 2020-08-02T10:57:23 | 333,961,489 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,139 | py | # Generated by Django 2.2.5 on 2020-07-09 10:42
from django.conf import settings
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swa... | [
"tiago.galves@hotmail.com"
] | tiago.galves@hotmail.com |
42ea6542998ab172e883faf783222a5f90e1c0ad | ebcb092d796366d36a1afe9c381cd9e4c31026f1 | /python_markup/handlers.py | b4d1acfc276ad3b816d1d590b2c12416311792c6 | [
"MIT"
] | permissive | MiracleWong/PythonBasic | d2e0e56c88781ebf9c6870f185ceaba6ffaa21ca | cb8ec59dc646842b41966ea4ea4b1ee66a342eee | refs/heads/master | 2021-06-06T22:26:08.780210 | 2020-01-08T14:48:54 | 2020-01-08T14:48:54 | 96,536,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,976 | py | #!/usr/local/bin/python
# -*- coding: utf-8 -*-
# filename: handlers.py
# 为文本块打上合适的 HTML 标记
class Handler:
"""
处理程序父类
"""
def callback(self, prefix, name, *args):
method = getattr(self, prefix + name, None)
if callable(method): return method(*args)
def start(self, name):
s... | [
"cfwr1991@126.com"
] | cfwr1991@126.com |
ae9094f55f7e0e5d413608d96218844164267b62 | 97da83469728be9fa1dc89a2669098e8dc03440d | /petup.spec | 04587aca8ec01017deee92aeaaffb87c251d2b1b | [] | no_license | Victor-J-L/JOGO-PETEEL | d030f44cb9ef8bb1fcbad66125688992559ba721 | d4191a808f13b1305f2835e9bf4ec76e7909927b | refs/heads/master | 2023-02-02T13:41:12.405659 | 2020-12-21T19:21:06 | 2020-12-21T19:21:06 | 299,363,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 898 | spec | # -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(['petup.py'],
pathex=['C:\\Users\\Victor\\Desktop\\Victor\\PETEEL\\Projeto Calouros\\Jogo PETEEL'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hook... | [
"victorjolou@gmail.com"
] | victorjolou@gmail.com |
5395d6e1688efecb396d701104f7d238e776d00d | 27688bc0d9d8b6a8326218145214333af9f5b70a | /website/migrations/0008_auto_20161112_0428.py | 415ab85ff196aa7f1dbbc167eba4fe4a292d5369 | [] | no_license | ferminarellano/realestate-website | 408eb37a1470d6fe2263ed0fdee8e545b4f724dd | 63bd27b78f51417e0eefc1ba3a0e1b68ba5156ef | refs/heads/master | 2020-12-24T11:52:35.806432 | 2017-02-11T19:40:57 | 2017-02-11T19:40:57 | 73,109,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-11-12 04:28
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('website', '0007_auto_20161112_0426'),
]
operations = [
migrations.AlterModelOptions... | [
"ferminarellano.hn@gmail.com"
] | ferminarellano.hn@gmail.com |
6344174edb82b52826ffe9156911e57162cf52b4 | c251223c9829a51fac8ae4d651dba0068da68f43 | /language_converter/main.py | 9d08979ae219e1e14aa3fa15aab2a9150fa319d7 | [] | no_license | Ajax12345/Web-Apps | b1c10e73f2c403cc900a0eddccb1d95b5f71e8aa | 105dfef93aa975cb95fa0216095939d33c2eb19a | refs/heads/master | 2021-01-23T17:34:05.962959 | 2017-09-18T23:44:37 | 2017-09-18T23:44:37 | 102,767,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | from bottle import Bottle, template, request
app = Bottle()
users = [{"ajax1234":"zorro"}]
username = None
password = None
@app.route('/')
def index():
data = {"to_display":"HI, how are you"}
return template("simple.html", to_display = "HI, how are you?")
@app.route('/run_code', method = "POST")
def get_code()... | [
"noreply@github.com"
] | Ajax12345.noreply@github.com |
de61742f48f0bcf3070bd9ef57eb81ec8a345e8d | 0764420cfb7da709909979747792c177bed24e8a | /FairBNB/kivymd/toast/kivytoast/kivytoast.py | ed654797ec4f080cd6ef03c0ee5ef473ef37582c | [
"MIT"
] | permissive | flruee/AdvancedSoftwareProject | bebea9fe1fca617d0b9f562a29a1fb919543d395 | 0bfe61da6b249f23eeea8670d263cd958e466b0f | refs/heads/main | 2023-05-11T05:01:12.940188 | 2021-05-30T18:19:16 | 2021-05-30T18:19:16 | 345,618,131 | 0 | 2 | null | 2021-05-30T16:47:03 | 2021-03-08T10:32:20 | Python | UTF-8 | Python | false | false | 3,635 | py | """
KivyToast
=========
.. rubric:: Implementation of toasts for desktop.
.. code-block:: python
from kivy.lang import Builder
from kivymd.app import MDApp
from kivymd.toast import toast
KV = '''
MDScreen:
MDToolbar:
title: 'Test Toast'
pos_hin... | [
"florian.rueegsegger@gmail.com"
] | florian.rueegsegger@gmail.com |
2c54341086eb673dbaca5e019ce478174e4d80db | 058eb45464c58cae808f8b9b9134d763e45907ba | /web_dev_blog/lib/python3.6/types.py | 977c004c862e4a3ddd008ff56ddee6daa9c4d0a4 | [] | no_license | ruisp666/web-dev | 4b590aac742bb885a055b50630c859820572e4c2 | a0b0aa301b8ecac4ff3c004e44965919e6122d4a | refs/heads/master | 2020-03-11T02:05:49.731692 | 2018-04-16T09:38:19 | 2018-04-16T09:38:19 | 129,703,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49 | py | /Users/sapereira/anaconda3/lib/python3.6/types.py | [
"manuelsapereira@gmail.com"
] | manuelsapereira@gmail.com |
c9b0e136884e410cd43957424af878cf30e371e9 | 78c455c0095a5e1cc5bb76b9c3e686012e72c8f3 | /prod/mesANumero.py | 98eac38da572e892a46382e7e89504889b338e20 | [] | no_license | JorgeRamos01/Proyecto-texto | 0ec04815d4442ea03d336f8071ef2b01c2696cce | a19f551f807652b30aba4cd5a412f8dae95263db | refs/heads/master | 2020-05-31T21:00:08.454819 | 2019-06-06T00:53:41 | 2019-06-06T00:53:41 | 190,488,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,553 | py | import re # regular expressions
import datetime
def mNumero(string): #Funcion para arreglar el formato de la fecha
m = {
'enero': "01",
'febrero': "02",
'marzo': "03",
'abril': "04",
'mayo': "05",
'junio': "06",
'julio': "07",
'agosto': "08",
... | [
"noreply@github.com"
] | JorgeRamos01.noreply@github.com |
784b1a983bf87555a8d9fb0a88ed8431fafbbcab | ed568c336a42dfd69cadee8c93b5335e6d02c972 | /Profilepage/migrations/0009_auto_20201203_0619.py | 622a160f25df99d6cf347a0b47239657a102cc96 | [] | no_license | SaqibAli96/The-social-network | f34c1e2bdea08732cd8e27b3a32fea7e680e1e1c | 37d9306e33535695a972457e1fa3aff1aba45023 | refs/heads/master | 2023-08-16T22:28:32.023508 | 2021-10-09T13:06:38 | 2021-10-09T13:06:38 | 415,301,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 590 | py | # Generated by Django 3.1.1 on 2020-12-03 00:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Profilepage', '0008_auto_20201203_0507'),
]
operations = [
migrations.AlterField(
model_name='post',
name='image',
... | [
"saquibsaiyyed@gmail.com"
] | saquibsaiyyed@gmail.com |
2db600c0467c6612aaabd2e26e0f59336663b91e | df8fef14cddba4040f740f751d1e8c962ed4a756 | /src/__init__.py | 80be2eee0b6a745225fce453dce43874bece2eb9 | [] | no_license | Rodrigosis/meli-challenge | 1ab16f65a69d723bd089efd8edf6cfd877c83d6d | d391716a90a8fa5d058d8a471a11b914d5d6ec1b | refs/heads/master | 2023-08-20T19:26:43.244127 | 2021-10-25T21:35:49 | 2021-10-25T21:35:49 | 421,090,052 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | from fastapi import FastAPI
from src.application import controller
app = FastAPI()
app.include_router(controller.router)
| [
"rodrigo.sis.s7@gmail.com"
] | rodrigo.sis.s7@gmail.com |
eb7a298a8cca7f502b7de2373f586629310292b4 | bda12343a5e89cf13fbc9ff7d28b15f48a874cb2 | /generatesheet.py | 6d42fa1abc36ffe809c734bd711a4d36dde7ac60 | [] | no_license | luiz-meireles/scripts | 7bda5eeec6e8d1e292b917673417dcd22271c207 | 3542aea3ebe86989e06291b5776e92649eba0f6c | refs/heads/master | 2021-03-10T02:40:06.435507 | 2020-03-10T21:07:17 | 2020-03-10T21:07:17 | 246,408,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,438 | py | # -*- coding: utf-8 -*-
import openpyxl
import datetime
from random import randint
import argparse
sheet = openpyxl.Workbook()
active_sheet = sheet.active
active_sheet.title = "Generated fake users"
dr = ['sp', 'rj', 'mg']
turma = ['special-ops', 'team2', 'team3', 'team2']
uni = ['10 - maracatins', '15-geekie']
turno... | [
"luiz.meireles@hotmail.co.uk"
] | luiz.meireles@hotmail.co.uk |
cdc626de8576a1ae62bd9055860e43d370c3b224 | ce30a76ac6da9acab9e6b8de0b23a77989168e64 | /file2(Using MatplotLid).py | 881cb0e2054302b83e7f05e298f54d6a86712c41 | [] | no_license | arboiscodemedia/Dicom | c905db3c0ff786175bed79ea978a7fc6129edc20 | e9330ee8955cb04ee56160a9883575f131020f00 | refs/heads/main | 2023-05-09T03:57:31.623153 | 2021-05-30T08:52:43 | 2021-05-30T08:52:43 | 371,937,557 | 6 | 2 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | import pydicom as dicom
import matplotlib.pyplot as plt
path = "./img/D0006.dcm"
x=dicom.dcmread(path)
plt.imshow(x.pixel_array,cmap=plt.cm.gray)
plt.show() | [
"noreply@github.com"
] | arboiscodemedia.noreply@github.com |
cbc4b387cf33b7dfba311fc45d6eb3e553fb8662 | c1776e89d88b490c1925ea2c6153bfa43572c668 | /models/Usuario.py | be77b09528765e70d3b2f8cd7a7b40081951040e | [] | no_license | dgioielli/Devaria_BackEnd_Python | e536583ead18e93aae7b185becff6c7e061c7bd5 | 67d25b24034169cc17a9514f19b8ce0f54ecfd01 | refs/heads/main | 2023-06-04T21:28:03.368272 | 2021-06-21T19:04:47 | 2021-06-21T19:04:47 | 373,605,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 576 | py | from sqlalchemy import Column, Integer, String, inspect
from sqlalchemy.orm import relationship
import config
import database.databese
from database.databese import Base, engine
class Usuario(Base):
__tablename__ = 'usuario'
metadata = database.databese.metadata
id = Column(Integer, primary_key=True, in... | [
"douglasgioielli@gmail.com"
] | douglasgioielli@gmail.com |
ab3cb641971ac50eb6cee0ed50e637ae46dd5c54 | 165ab339ffc782b2cb4144373672dad0376d7670 | /agenda/users.py | c582781488d2daa068e8488b887badd33cd5cc31 | [
"MIT"
] | permissive | domeav/sonofages-agenda | 496789f387a7b806d36b35eead281fe3ac4d8e46 | e099802572ba01f6dbdd719a7c15ca5c928cc0fc | refs/heads/master | 2021-01-24T10:49:39.219355 | 2016-12-14T15:56:42 | 2016-12-14T15:56:42 | 70,100,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,524 | py | from agenda.model import User, Event
from agenda.forms import UserForm
from flask import render_template, request, redirect, url_for
from agenda import app
@app.route('/user/<user_id>')
def user(user_id):
user = User.get(User.id == user_id)
return render_template('user.html', user=user)
@app.route('/users/'... | [
"dom.eav@gmail.com"
] | dom.eav@gmail.com |
e160d44f4d73aa4f2d358ff3ab686eb2b74095d6 | c6e9f5ea0fa9e799da65fe79e56520628a547dba | /autonomous_routes.py | 286fecfc776566ab71664ac01647690a073a4f8d | [] | no_license | AlecR/PaceBot | 061e784ae6c1b758af91f4d808cbec44184a2a07 | 5d310f199e6653710aafa63929b4a701ebb171e3 | refs/heads/master | 2020-04-09T04:01:52.702394 | 2019-02-23T06:11:32 | 2019-02-23T06:11:32 | 160,007,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,233 | py | import time
from picamera.array import PiRGBArray
from picamera import PiCamera
import cv2
import numpy as np
import Adafruit_PCA9685
from threading import Thread
from flask import Blueprint, jsonify, Response
#Get the picture (low resolution, so it should be quite fast)
#Here you can also specify other parameters (e.... | [
"alecr1997@gmail.com"
] | alecr1997@gmail.com |
2a030259e02cd94daf91e98a8e8e55470146a368 | 9c47fbb2761cc50b7b0be67decb20c377dd1d078 | /YandexContest/20191008/Task_C.py | 6f9bfb34d97d6708218af9fe11ce838dcab1fdf3 | [
"MIT"
] | permissive | IsFilimonov/Interviews | 782ec1f5d82373c20df0edaaeb56cfb0d493a9e7 | 3b9858f43ef6b7a2b5e565ef58406e4018edbf97 | refs/heads/main | 2022-12-12T13:16:25.750870 | 2022-11-30T11:31:38 | 2022-11-30T11:31:38 | 213,611,039 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | import sys
max_n, curr, A = 1000000, None, []
n = sys.stdin.readline().strip()
for el in range(int(n)):
val = sys.stdin.readline().strip()
if curr != val:
A.append(val)
curr = val
for el in A:
print(el)
| [
"Filimonov_IS@mail.ru"
] | Filimonov_IS@mail.ru |
e037fa777ecf55411160796ccaf7d172e5ca38d4 | 36b740d4e29396c757c9652909ccdeb42859eaec | /biological.py | 23279e0f9db2e17a342b060df69208f1aa909bb9 | [] | no_license | moharsen/biological | 992f3aa583d2b12b2d1c26aa3438630ddd18dad7 | dc1fb38aaa389821bd46ee159fe1d93b56c7b3e5 | refs/heads/master | 2020-12-30T09:26:18.546650 | 2015-05-18T19:07:53 | 2015-05-18T19:07:53 | 35,799,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 984 | py | #This code trains a random forest model and produces probabilities on a test dataset
from sklearn.ensemble import RandomForestClassifier
from numpy import genfromtxt, savetxt
def main():
#create the training & test sets, skipping the header row with [1:]
dataset = genfromtxt(open('Data/train.csv','r'), delimit... | [
"mohar.sen@gmail.com"
] | mohar.sen@gmail.com |
ee03f9338782efa72a3588b9cd286b4159969d66 | cf319003bb76c9ff2fed8919f1726442d9fec532 | /plugins/blender/blender.client/batchlabs_blender/preferences.py | 8e7c22fe0666d443d457cd3039bd47f0e11871d7 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | Azure/azure-batch-rendering | a06a6fcba965fc9c52210324c0fa2ccfd3580137 | cbd33753afb47983429659c407ac657d1b981a7c | refs/heads/main | 2023-09-04T05:59:37.958417 | 2023-04-13T21:48:39 | 2023-04-13T21:48:39 | 123,842,545 | 10 | 6 | MIT | 2023-04-12T19:44:05 | 2018-03-05T00:24:04 | C# | UTF-8 | Python | false | false | 2,272 | py | import os
import bpy
class UserPreferences(bpy.types.AddonPreferences):
"""BatchLabs Blender plugin user preferences."""
bl_idname = __package__.split('.')[0]
log_dir = bpy.props.StringProperty(
name="Log directory",
description="Location of log file",
subtype='DIR_PATH',
... | [
"dave.fellows@microsoft.com"
] | dave.fellows@microsoft.com |
de9f1ac86615db22abe1fe4d0960be4355abd789 | 96a5a95e8b7847a12ed11179ee38b0d653d3297c | /nuage_neutron/db/migration/alembic_migrations/versions/ussuri/contract/c86ff3efc46b_remove_nuage_security_group_extension.py | 74ef359e8d7a5451c7def1d638c54f2d6c8004fd | [
"Apache-2.0"
] | permissive | nuagenetworks/nuage-openstack-neutron | 4d72a4e8b0124071b6e4b301a914fdc79df7e14d | ee4444da00c87e7aee32f4b490ac714ed2999efa | refs/heads/stable/wallaby | 2023-02-17T15:48:43.057335 | 2021-11-30T12:28:10 | 2022-01-17T14:28:34 | 40,271,788 | 11 | 41 | Apache-2.0 | 2023-04-09T09:50:19 | 2015-08-05T22:25:35 | null | UTF-8 | Python | false | false | 2,179 | py | # Copyright 2020 NOKIA
#
# 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... | [
"glenn.van_de_water@nokia.com"
] | glenn.van_de_water@nokia.com |
f392f36c3dbd95b3b82de35f548790e6a3ee47da | 40c2a8ed3337cbb50ea8f646999c508b3cfbe8f0 | /polynomial regression/polynomial_regression.py | 1808e7adea1a7251251ec4e758ce0b5d05d469af | [] | no_license | imakshit/scikit-machine-learning | 8c41f4155db473267d3e37decc9b24350b39820d | 08d5f217eb4ad651f0db26a6978eb50a1b6d3405 | refs/heads/master | 2020-03-23T20:19:30.164515 | 2018-08-30T16:20:30 | 2018-08-30T16:20:30 | 142,035,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,769 | py | # Polynomial Regression
# Importing the libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# Importing the dataset
dataset = pd.read_csv('Position_Salaries.csv')
X = dataset.iloc[:, 1:2].values
y = dataset.iloc[:, 2].values
# Fitting Linear Regression to the dataset
from sklearn.linear... | [
"akshit.gupta98@gmail.com"
] | akshit.gupta98@gmail.com |
40d0e62c598bbbdb29fc8d67ff31ebae12cdab49 | 12472c36ad07ec89bfc27403e697d14b6351329b | /picshare/settings.py | 6c3f5153a27a8d5d0f7f3b9f74e409c54bd68b9f | [
"MIT"
] | permissive | Vohsty/-Gallery | f80122117cae25832bede52214d8f9ce6f1476d6 | 4f6ac9d67084756aa16a359db1747cfc03849e6b | refs/heads/master | 2022-12-14T09:45:27.117188 | 2019-06-25T13:10:38 | 2019-06-25T13:10:38 | 191,901,504 | 0 | 0 | MIT | 2022-12-08T01:05:15 | 2019-06-14T07:59:56 | Python | UTF-8 | Python | false | false | 4,533 | py | """
Django settings for picshare project.
Generated by 'django-admin startproject' using Django 1.11.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
... | [
"stevekimanthi87@gmail.com"
] | stevekimanthi87@gmail.com |
11372e1174c14bf0f2fcd7bcb02fba3c76370519 | 8ce87aa7b8230a3fd474501c35e23c564f2780d0 | /organizacion/migrations/0003_auto_20150725_0630.py | f233fa0171a7b7febfa5efddf0ad37f6e59aded2 | [] | no_license | ErickMurillo/canicacao | 46e7a485257ab95902fb427d4cb0b5e72fd14ab5 | d4a79260c87d1ae1cdd8ecb8bc4be82e9ddb0cc7 | refs/heads/master | 2020-12-29T02:24:36.519281 | 2018-03-16T15:38:26 | 2018-03-16T15:38:26 | 35,285,596 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 781 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('organizacion', '0002_auto_20150723_2221'),
]
operations = [
migrations.AddField(
model_name='comercializacion_or... | [
"erickmurillo22@gmail.com"
] | erickmurillo22@gmail.com |
52f45db0bcbdeb11736ea472d8c7783d302d09be | 33964a2f9b2af381674d55d7a1746070d786c6dc | /try_catch.py | 8a76fb7f12b5d7f915c547847436b361c0bf2106 | [] | no_license | oldmonkandlinux/python-basics | abbe8b2d82c7d1d86d3932ef6d737a55df9f93be | 049807c439a412fb6c55815fdda43a3c2641632c | refs/heads/master | 2022-04-25T01:27:20.849787 | 2020-04-27T14:56:42 | 2020-04-27T14:56:42 | 259,357,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | try:
age = int(input("age?: "))
income = 2000
risk = income/age
print(age)
except ValueError:
print("enter a numerical value")
except ZeroDivisionError:
print("division by zero is not possible")
| [
"noreply@github.com"
] | oldmonkandlinux.noreply@github.com |
b95a5f602761f73c08c5b39bdc930cf05acf73e4 | 66f7d157f51897d08c45700f0a60ef6e4ddcaa34 | /tests/test_general.py | 644ea50c8da4c69fe5cc911ecfeb0fe19299052f | [
"MIT"
] | permissive | FKLC/AnyAPI | 1d3eee97e507088ee754d80b6658cce7eca465d5 | be6f23ad2d4affb8574da0082d1a9375fe11f9ed | refs/heads/master | 2021-11-24T08:49:09.481422 | 2019-05-25T15:14:36 | 2019-05-25T15:14:36 | 166,031,038 | 131 | 9 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | from anyapi import AnyAPI
import pytest
def test_params():
"""Test passing params to Session"""
httpbin = AnyAPI("http://httpbin.org", auth=("user", "password"))
assert httpbin("basic-auth").user.password.GET().json()["authenticated"]
def test_passing_url():
"""Test passing URL directly"""
htt... | [
"m.fatihklc0@gmail.com"
] | m.fatihklc0@gmail.com |
c54780fdaada792761b06a65b636b22338aef471 | b18d63d01c4442d746d5b4bd626d439ec75d273c | /arithmetic_operators.py | f9fb8cefa4a957d8b0d1d4b487712c27165c5115 | [] | no_license | crishonsou/hackerrank_solutions_submissions | 2f080f15eb0557ec633be265f065b991c2b5c456 | ccd5525cf6e96c119df13945ff28d3473a8c8c1c | refs/heads/main | 2022-12-26T03:07:24.759426 | 2020-10-06T15:13:17 | 2020-10-06T15:13:17 | 301,766,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | a = int(input())
b = int(input())
print(a // b)
print(a / b)
| [
"noreply@github.com"
] | crishonsou.noreply@github.com |
311b829b832a4f61e3ca97e3fc5c0827eeb0aa11 | 10ecb21c9cd858d5bb62e195bcda4ae8b2e187b2 | /PYTORCH3.py | 1a4097f2cc94380cf3bc257b6f555c287d3e67ea | [] | no_license | bishnucit/Pytorch_learning | 40e4f3e95993887c8ae0f4e60e8897ea9b4274d1 | c8dea0266b2c45c6bfa70deba592b14ebc42bfed | refs/heads/master | 2020-03-31T22:19:40.513140 | 2019-05-08T06:43:45 | 2019-05-08T06:43:45 | 152,614,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,070 | py | """
Autograd - Automatic differentiation
Autograd package Provide automatic differentiation for all operations on Tensors.
It is a define by run framework, the backdrop is defined by how the code runs, every
single iteration can be different.
Tensor -
torch.Tensor is the central class of the package.
if its attribute ... | [
"noreply@github.com"
] | bishnucit.noreply@github.com |
5165f9108e3a884a2b24dfed5437081cc63e5773 | 4275f8342b88d80d98167d87746ce145a9106877 | /backend/app/admin/api/posts_views.py | 000ddf07f0a8f32bb68cf95f29fd944c6d9a3963 | [] | no_license | cheerfulleg/fastapi-project | e076c1677cfd708e16fcbeb8cee5b95a5fa750a2 | 5af8ea5a9938f493cf0386e13be9b4ac04887edb | refs/heads/master | 2023-07-15T20:25:13.486077 | 2021-08-18T07:57:09 | 2021-08-18T07:57:09 | 393,935,356 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,686 | py | from fastapi import APIRouter, HTTPException
from fastapi.params import Path
from fastapi_pagination import Page
from fastapi_pagination.ext.tortoise import paginate
from starlette import status
from starlette.responses import JSONResponse
from backend.app.posts.models import Post
from backend.app.posts.schemas import... | [
"ivan.yolgin@exrtawest.com"
] | ivan.yolgin@exrtawest.com |
6f8a5d826a59a6fa889903106b5230476ae6b9cb | 9c2a0050174009929a98f235072243b315a81b72 | /test/part2_test.py | 25515946af81fe70b27285106be5ae0a0058770e | [] | no_license | moesamahdi/google-coding-challenge | deb483771024560efaf5da307cc27d06a6fc4ec9 | 49e65420c026de4cd9c934bd1654bc4a63e6f377 | refs/heads/main | 2023-06-15T17:04:19.399338 | 2021-07-13T16:05:07 | 2021-07-13T16:05:07 | 382,007,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,541 | py | from src.video_player import VideoPlayer
def test_create_playlist(capfd):
player = VideoPlayer()
player.create_playlist("my_PLAYlist")
out, err = capfd.readouterr()
lines = out.splitlines()
assert len(lines) == 1
assert "Successfully created new playlist: my_PLAYlist" in lines[0]
def test_cr... | [
"moesamahdi@gmail.com"
] | moesamahdi@gmail.com |
3831c53381eb7a0315f52b6acf3282e6641d8f64 | 33deada36787c198fac075461d39dd7b7969505d | /textToPic.py | b88d8795a8cf038abf32ca64e5b1fbc933d7ca1a | [] | no_license | axwei0/new_scientist_fanyi | 42503ffeeaac7bc70e2fff54c4c34edce6d5efb8 | b3f73a22347d136987853ff44796c3048b71472c | refs/heads/master | 2021-04-05T23:25:25.020162 | 2016-07-27T15:24:56 | 2016-07-27T15:24:56 | 62,406,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,384 | py | #-*- coding:utf-8 -*-
import pygame
#/usr/share/fonts/truetype/wqy/wqy-zenhei.ttc为树莓派的汉字字体库路径,请自行替换
def tToP(text):
pygame.init()
file = open(text, 'r')
font = pygame.font.Font("/usr/share/fonts/truetype/wqy/wqy-zenhei.ttc", 20)
done = 0
lines = []
line = ''
i = 0... | [
"55755211@qq.com"
] | 55755211@qq.com |
b8a5ebd8681495fd6c38f0e14d85a0f3171860dd | dd80a584130ef1a0333429ba76c1cee0eb40df73 | /external/chromium_org/printing/DEPS | bc43b418c77aafd04e87cead8cd587db70d587dc | [
"MIT",
"BSD-3-Clause"
] | permissive | karunmatharu/Android-4.4-Pay-by-Data | 466f4e169ede13c5835424c78e8c30ce58f885c1 | fcb778e92d4aad525ef7a995660580f948d40bc9 | refs/heads/master | 2021-03-24T13:33:01.721868 | 2017-02-18T17:48:49 | 2017-02-18T17:48:49 | 81,847,777 | 0 | 2 | MIT | 2020-03-09T00:02:12 | 2017-02-13T16:47:00 | null | UTF-8 | Python | false | false | 262 | include_rules = [
"+jni",
"+skia/ext",
"+third_party/icu/source/common/unicode",
"+third_party/icu/source/i18n/unicode",
"+third_party/skia",
"+ui/aura",
"+ui/base/resource",
"+ui/base/text",
"+ui/gfx",
"+ui/shell_dialogs",
"+win8/util",
]
| [
"karun.matharu@gmail.com"
] | karun.matharu@gmail.com | |
48af397da3481385e6851363be0df3496f4de015 | c5b6a2df2f4a23215b1727a4c6f893ad855d9cb9 | /config/knob_config_parser.py | aa053f8f47920bd751bdc671d9bbd3c4004647c4 | [] | no_license | vitaliibalakin/c_orbit | 1ae6df78e218b8ed9a6368b28be392bf18664300 | 6e9e96c5288a0b1339e0cc3c639bea0e4151c129 | refs/heads/master | 2022-05-05T10:53:47.258041 | 2022-04-22T14:36:33 | 2022-04-22T14:36:33 | 127,502,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,267 | py | import re
def load_config_knob(conf_name):
conf_file = open(conf_name, "r")
configuration = conf_file.readlines()
control_sum = 0
def load_chans(i_b, data):
chans_sett = {}
while True:
result = re.match(r'(\w+)', data[i_b])
if result:
chan_name =... | [
"balakinvitalyv@gmail.com"
] | balakinvitalyv@gmail.com |
146d68aab8bfeadf80d5bc566c1ce8ed75bf4187 | 57ad43025032c965252b2f09cabf0e534a7b8a5d | /disketoApp/disketoApp/urls.py | 17b928589a6fb02fd2d807cba6c6dc7d770284d8 | [] | no_license | stngarcia/django-disketo | 1ce803262e8ac1c5c99f1a173fadcf6ee0591521 | e4ddf360b080630b234b0a691c1e179d85e0c5b9 | refs/heads/master | 2020-05-17T09:16:26.680206 | 2019-04-26T13:26:21 | 2019-04-26T13:26:21 | 183,628,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 773 | py | """disketoApp URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.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')
... | [
"stngarcia8@gmail.com"
] | stngarcia8@gmail.com |
0d8a223b3f1590a1b1e4491f34cf5321e061913b | 07eb17b45ce5414282a2464c69f50197968c312d | /stusched/app/urls.py | ffdfa5ca2f2ce34e32c9ac872ee1c74578091181 | [] | no_license | cmontemuino/dbschools | e15d4d03a3d2f0e1ee1fa47b8ce9748b7f09cdbc | d3ee1fdc5c36274e5d5f7834ca1110b941d097b9 | refs/heads/master | 2021-01-16T21:16:56.427183 | 2015-08-02T17:09:43 | 2015-08-02T17:09:43 | 6,158,940 | 0 | 0 | null | 2015-10-15T12:45:34 | 2012-10-10T14:49:16 | HTML | UTF-8 | Python | false | false | 783 | py | """stusched URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/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-ba... | [
"daveb@davebsoft.com"
] | daveb@davebsoft.com |
aaf20c2fe8ce1671ee96f32aad3cbdfa2ec5fc4a | 5f5c6809e9e68127262c843602185f3d6d6d556b | /thejoker/prior.py | ce3c89878d8784fd7d3f2c94b9ce086aeb86412f | [
"MIT"
] | permissive | minaskar/thejoker | e195bd361d4eadf051fb29380d110d214ea65a1b | b7ba1d094ce3d4d61c1db80da37981327f280d34 | refs/heads/master | 2023-03-16T02:55:04.644778 | 2020-06-15T19:39:29 | 2020-06-15T19:39:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,046 | py | # Third-party
import astropy.units as u
import numpy as np
from theano.gof import MissingInputError
# Project
from .logging import logger
from .samples import JokerSamples
from .prior_helpers import (get_nonlinear_equiv_units,
get_linear_equiv_units,
validate_pol... | [
"adrian.prw@gmail.com"
] | adrian.prw@gmail.com |
c7371a79f24d086e2067124263d120c561a84446 | 35aecbd65de889efbfa5e206191a314fec0992d8 | /app.py | bd448577a9deeb4850bfb0c09b7a6b2353e87a74 | [] | no_license | Iliavas/SampleFlaskShit | 6552c79d8e6bebb2117f450105a177353819dc5c | ae57f1dd881f898a6ba8f091ada17fed23ec9e19 | refs/heads/master | 2023-03-23T11:39:47.015409 | 2021-03-18T18:25:44 | 2021-03-18T18:25:44 | 349,177,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
return "hello" | [
"il.vsl0110@gmail.com"
] | il.vsl0110@gmail.com |
2e62706dd09fce4b9dfe0a3774ce8c2b2c34c139 | e109dca6755098ee2911add173126e91adf69eb6 | /Right number.py | bf8511098a28e4232c13638a0d3c331b183295dd | [] | no_license | Kalaikko/Python | e61fdf85fb7e94477b705fd480f4b0c7342e27e5 | b99dee23848bdcf5b7630c411645eb65863933fe | refs/heads/main | 2023-01-27T19:55:15.721610 | 2020-12-08T16:41:43 | 2020-12-08T16:41:43 | 319,698,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | money = int(input("Enter the amount"))
if (money >= 100 and money <=500) or (money >= 1000 and money <=5000):
print("The money is between 100 and 500 or 1000 and 5000")
| [
"noreply@github.com"
] | Kalaikko.noreply@github.com |
10e316d5e550fbb88ca5a8c32a147b95fa7067cd | 43764004e691a7a77faf78dabdd54dab45f10cdb | /source/palindrome.py | c82b53b28a2188d25b8476e0bc9694dd50328841 | [
"MIT"
] | permissive | BurhanH/code-signal-python | 4e62265246859ab8a17bee4dae73e1271bdbb1ff | 1937b65bfad23248126879020c5a8104c4d1f7c1 | refs/heads/master | 2022-11-01T15:06:59.617824 | 2020-06-15T18:56:34 | 2020-06-15T18:56:34 | 271,887,683 | 1 | 2 | MIT | 2020-06-15T18:54:05 | 2020-06-12T20:48:43 | Python | UTF-8 | Python | false | false | 281 | py | # https://app.codesignal.com/arcade/intro/level-1/s5PbmwxfECC52PWyQ
# Given the string, check if it is a palindrome.
def check_palindrome(input_string: str = '') -> bool:
if 1 <= len(input_string) <= 100000:
return input_string == input_string[::-1]
return False
| [
"noreply@github.com"
] | BurhanH.noreply@github.com |
584809ed53ad5619053d2185651806cf8714ed04 | 2195bec4cc44f5eb552f46fe62135d9f22e6dc03 | /apps/trade/migrations/0008_auto_20190122_1826.py | 25d6418999665e72e1ecc7a24ee97f90647b4dac | [] | no_license | DzrJob/gulishop | 5c802d1bba0ad6ec23aa4c29a8ac6abcc085497b | 5620f09cd6d2a99e7643d5ec0b6bc9e1203be6fe | refs/heads/master | 2020-04-16T17:58:17.404170 | 2019-02-07T07:17:59 | 2019-02-07T07:17:59 | 165,797,566 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2019-01-22 18:26
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('trade', '0007_auto_20190122_1812'),
]
operations = [
migrations.AlterField(... | [
"dzr_job@163.com"
] | dzr_job@163.com |
59859690d990364b30c66a3d73d15396cbde7967 | 374b00d7a3108dcd853d80727703a1bbbae070ac | /garde.py | e83f28a6fac0b081b4dd5e02354b3f6558b9f606 | [] | no_license | EmeryBV/POA | 24e74eaf43094a9c365a77538a1d5ec97bf6e09f | 3d74efc1a6f0d1f86fb5fa144946e7364fdc235b | refs/heads/master | 2023-01-22T14:07:43.594841 | 2020-12-10T21:39:08 | 2020-12-10T21:39:08 | 315,971,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,891 | py | from random import *
from collections import OrderedDict # /
class garde:
def __init__(self, coordX=0, coordY=0, ):
self.x = coordX
self.y = coordY
self.id = None
self.orientation = 0 #
self.lastchemin = []
def prevenir(self, gardeProche):
print("garde préven... | [
"emery.vecchio@gmail.com"
] | emery.vecchio@gmail.com |
f563f972b5867bb3c676e04ae2dc19e4979f4d25 | a197253c2e422c0cb95873fa2cea06fc73e304b6 | /browser/danboorudb.py | 11e4fa8ad1aed06ee14ffb9427f3e935e2f6666a | [
"MIT"
] | permissive | greg-campbell/Danbooru2018 | 599dfd51a7326d6fe8061759667cf752103eb440 | f1aa99ff67d87c7e1d4c548cf0fb80e7220b9a98 | refs/heads/master | 2020-12-17T23:11:53.204320 | 2020-01-19T00:14:26 | 2020-01-19T00:14:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,578 | py | import sqlite3
class DanbooruDB:
def __init__(self):
self.conn = sqlite3.connect("danbooru2018_kbr.db")
self.conn.isolation_level = None
self.cur = self.conn.cursor()
self.catDict={'a':1,'c':4,'d':0,'m':5,'s':3}
def getImageIdsForTag(self,tag_name):
# self.cur.execute(... | [
"lifeattickville@gmail.com"
] | lifeattickville@gmail.com |
c7c6abe6ddd69173a76601375d5aa36b3acc06e4 | 0627cc5c3adb47fd4e780b31a76d17839ad384ec | /tensorflow_probability/python/layers/__init__.py | 55a5079eaf94190c21b271793559f7ec7f4b90b3 | [
"Apache-2.0"
] | permissive | ml-lab/probability | 7e57377ae15bcbb9a7878e23d53f4505823b9117 | 09c1e495c929f5bc461a4edbc7710ab81b5b4933 | refs/heads/master | 2021-09-09T04:40:10.045594 | 2018-03-13T23:26:59 | 2018-03-13T23:27:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,304 | py | # Copyright 2018 The TensorFlow Probability Authors.
#
# 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... | [
"copybara-piper@google.com"
] | copybara-piper@google.com |
a771a00c3fd049c6dc8482812b8ea1fb06246838 | 1c72aa6d53c886d8fb8ae41a3e9b9c6c4dd9dc6f | /Semester 1/Project submissions/Lewis Clarke/Lewis_Clarke_Python_Coding-2016-04-18/Python Coding/Week 6/position_in_alphabet.py | be2781345f12dca69e6c90d6d0f722351786bf62 | [] | no_license | codebubb/python_course | 74761ce3189d67e3aff964c056aeab27d4e94d4a | 4a6ed4a64e6a726d886add8364c65956d5053fc2 | refs/heads/master | 2021-01-11T03:06:50.519208 | 2016-07-29T10:47:12 | 2016-10-17T10:42:29 | 71,114,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | key = 'abcdefghijklmnopqrstuvwxyz'
def alpha():
word = raw_input('Enter a letter to find its numerical value: ')
if word not in key:
word = raw_input('You did not enter a letter.\nEnter a letter to find its numerical value: ')
for i in word:
n = 1
x = (key.index(i) + n)
... | [
"jpbubb82@gmail.com"
] | jpbubb82@gmail.com |
0be15dd30872102b4fad90030e23e3675a7cd227 | 2cf6d74f0b80ce25d38714cc58c8990321541ade | /classcastvirtualenv/classcast/project/classcast/urls.py | 8646af4f172c6e94aca0213ac0cf677227b54e92 | [] | no_license | ch33zer/ClassCast | 17ad1454a33970bfb7e2d2027f0dbadf5611aac3 | 42d496870ef891c9f7e065034012c66f0594cf45 | refs/heads/master | 2016-09-06T13:04:27.153527 | 2014-01-11T09:03:47 | 2014-01-11T09:03:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,986 | py | from django.conf.urls import patterns, include, url
from django.contrib.auth.views import login, logout
from api import EmailSuffixResource, SchoolResource
from forms import UserCreateForm, SchoolCreateForm
from tastypie.api import Api
import views
def betterurl(regex, view):
name = view.__name__
... | [
"ch33zer@gmail.com"
] | ch33zer@gmail.com |
181d0ad555d3981f3dd7bddcc29112593d660846 | 09cf1ab9eddc64613398822c7f45244e8a34a39a | /special_getitem.py | 8b1240b71e4803a1f48c7db00b2a37b89b5054e1 | [] | no_license | guibiaoguo/pydemo | 0a221af838727256910cc057d165cc5b6aa08d5e | 65dec2705b5fb03f3987ed6ec12a17bdb82f2c92 | refs/heads/master | 2023-08-08T09:39:00.792238 | 2021-09-04T18:38:44 | 2021-09-04T18:38:44 | 325,356,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 934 | py | class Fib(object):
"""docstring for Fib"""
def __init__(self):
super(Fib, self).__init__()
self.a, self.b = 0, 1
def __iter__(self):
return self
def __next__(self):
self.a, self.b = self.b, self.a + self.b
if self.a > 1000000:
raise StopItera... | [
"guoa1234@163.com"
] | guoa1234@163.com |
08366dcc624471b8269aabe510ee9f4625242ad9 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03012/s966640357.py | f6c0b5afb072f834dc2ec2f8bf626c997ed95245 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | N = int(input())
W = input().split()
W = [int(w) for w in W]
S = sum(W)
mini = pow(10, 10)
for i in range(N):
mi = abs(S - 2 * sum(W[0:i]))
if mi < mini:
mini = mi
print(mini) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
11f264fffe256d55ce47d92831273b0547a51867 | 56a0b432e9dd7cbd4f8111473954264d4e3a6cbf | /OwnCNN/CNN.py | 77041339641be5c86cb5f46d27dea5e6625667f5 | [] | no_license | badwulf51/FinalYearProject | 21107aec6f1db325e44722dbc89c94e79626f142 | b061f288f93a09102a0b9eab35189935183899d9 | refs/heads/master | 2022-12-14T07:39:30.092293 | 2019-06-14T20:27:37 | 2019-06-14T20:27:37 | 209,832,781 | 1 | 0 | null | 2022-12-06T23:49:34 | 2019-09-20T16:16:36 | Jupyter Notebook | UTF-8 | Python | false | false | 441 | py | from Conv2d import *
from Maxpooling import *
from flatten import *
from Dense import *
class CNN():
def __init__():
conv1 = conv2d()
Max1 = maxPooling(conv1)
conv2 = conv2d(Max1)
Max2 = MaxPooling(conv2)
conv3 = conv2d(Max2)
Max3 = MaxPooling(conv3)
D... | [
"aronomalley@yahoo.com"
] | aronomalley@yahoo.com |
07e62911914a1a3d2c70875282c1d69c59ffcd1c | e3998a42f3c8b25044d761745724d59d25796eed | /pycaptcha/ext/commands.py | d4093a934525c405370de499da2be54239c07d0f | [] | no_license | WesleyPestana/recaptcha-form | 45d19876c771238d7ea2533c385e4aa866220bfd | 80532df60aeaa3c4d5fb9ccf2fa6125dd861c266 | refs/heads/master | 2023-05-25T13:01:49.698061 | 2020-04-12T15:39:48 | 2020-04-12T15:39:48 | 254,709,076 | 1 | 0 | null | 2023-05-01T21:38:25 | 2020-04-10T18:38:40 | HTML | UTF-8 | Python | false | false | 230 | py | from pycaptcha.ext.database import db
def create_db():
db.create_all()
def drop_db():
db.drop_all()
def init_app(app):
for command in [create_db, drop_db]:
app.cli.add_command(app.cli.command()(command))
| [
"wesley.pestana@hotmail.com"
] | wesley.pestana@hotmail.com |
2dedeb65d601fe8c0439aca46ccce1f8236b7b3f | 5a22cd3e60550562977b3a74a7f3651573fe1376 | /migrations/versions/b57df5cf4b1_create_offer_table.py | 82856b87ad7859f607f406c3cffc09bb276f26c3 | [] | no_license | GopyDev/neighborme | 92eeaab21479a1f5f1ed7f564dc5ef416f71cce3 | de1841b2cab6ffe1bdabf44ca61ebb50ac94dfaa | refs/heads/master | 2021-01-17T21:11:14.599907 | 2016-07-18T17:16:38 | 2016-07-18T17:16:38 | 63,621,976 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 697 | py | """create Offer table
Revision ID: b57df5cf4b1
Revises: 15d14ef884cf
Create Date: 2016-04-07 12:59:12.524337
"""
# revision identifiers, used by Alembic.
revision = 'b57df5cf4b1'
down_revision = '15d14ef884cf'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
def upgrade():
... | [
"wgoldm@hotmail.com"
] | wgoldm@hotmail.com |
dccbf0aa8ca5790f9398e781f70be9b622d73121 | 620b58e17d4851e43bd1270cabc8c26f43629a7b | /lib/candy_editor/core/project.py | 69425c8ff5a3552a6ad7ce5b1f6313225e568819 | [
"MIT"
] | permissive | lihaochen910/Candy | 78b9862cf06748b365b6fb35ac23f0e7a00ab558 | d12cb964768459c22f30c22531d3e1734901e814 | refs/heads/master | 2022-11-25T19:12:34.533828 | 2021-11-07T16:11:07 | 2021-11-07T16:11:07 | 141,284,960 | 1 | 1 | NOASSERTION | 2022-11-22T09:20:08 | 2018-07-17T12:12:02 | Lua | UTF-8 | Python | false | false | 13,353 | py | import logging
import sys
import os
import os.path
import re
import shutil
import hashlib
import time
from . import signals
from . import jsonHelper
##----------------------------------------------------------------##
from .cache import CacheManager
from .asset import AssetLibrary
##-------------------------------... | [
"lihaochen910@hotmail.com"
] | lihaochen910@hotmail.com |
e3ff521d76ece0d845ff31b48a19153d060fb44a | 9701081e2d5fd6b3844c85ad8a99a75d01083479 | /AutoPano/Phase2/Code/Test.py | 858a84164ef0991afd0ff4b4c40a68551217e3b2 | [
"MIT"
] | permissive | jsistla/ComputerVision-CMSC733 | b1f6f219a97e2f456cb87c593cfae6d0b6d34632 | f5fa21a0ada8ab8ea08a6c558f6df9676570a2df | refs/heads/master | 2020-08-13T03:24:45.882391 | 2019-05-26T06:38:12 | 2019-05-26T06:38:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,419 | py | #!/usr/bin/env python
"""
CMSC733 Spring 2019: Classical and Deep Learning Approaches for
Geometric Computer Vision
Homework 0: Alohomora: Phase 2 Starter Code
Author(s):
Abhishek Kathpal
M.Eng. Robotics
University of Maryland, College Park
"""
# Dependencies:
# opencv, do (pip install opencv-pytho... | [
"akathpal@umd.edu"
] | akathpal@umd.edu |
a915f7f5aac8290e569c4536650cbcb728edb52d | 5d1c178763908decbcd2d63481e3b240e4ab3763 | /build/iiwa_moveit/catkin_generated/pkg.installspace.context.pc.py | 9c57060b9bae0749f8b4fbdf4862ee4a39946335 | [] | no_license | ichbindunst/ros3djs_tutorial | 0f27127e00574411babc8127db5f57c542045db8 | f840e93445ffbc7228956ce5db1fbe706224dc59 | refs/heads/master | 2023-03-31T19:51:29.409983 | 2021-04-01T17:54:43 | 2021-04-01T17:54:43 | 353,783,567 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 379 | 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 = "iiwa_moveit"
PROJECT_SPACE_DIR = "/ho... | [
"leo.li.3821@gmail.com"
] | leo.li.3821@gmail.com |
dae0c7efd07d618c0200e208199e6b93461f2de2 | 8afae72db835f4b886d1d2e7368528d98355bb07 | /Knn.py | 3d964965438bc187d7dcfb97a8487c8a1ce063fb | [] | no_license | asd14277/Android | 62d2c8981c476176b279c31ab699be98c0f76827 | a463d627bd44cc5c6afcf84485dbf1081f2acd3f | refs/heads/master | 2022-02-09T17:01:59.610468 | 2019-08-08T06:06:55 | 2019-08-08T06:06:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59,523 | py | import pandas as pd
from sklearn import neighbors
#import numpy as np
from distutils.version import LooseVersion as Version
from sklearn import __version__ as sklearn_version
if Version(sklearn_version) < '0.18':
from sklearn.cross_validation import train_test_split
else:
from sklearn.model_selection im... | [
"noreply@github.com"
] | asd14277.noreply@github.com |
1d2c819b23516b160a1928440e6c4cdafbdb9373 | 0afeec011169ad8810a074b82336e4e45ddd022c | /mysite/blog/forms.py | 9b4caf7df6d44a27dcfb0fd6884d048cd8c576a3 | [] | no_license | Radhi13/PCP--Project | aaa0c3cad07b9719d0082636dd01328d87c49c25 | e650894d0a100622111ea6a79441f0726f101663 | refs/heads/master | 2021-08-31T15:42:58.562069 | 2017-12-21T22:56:23 | 2017-12-21T22:56:23 | 115,054,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | from django import forms
from .models import Post
class PostForm(forms.ModelForm):
class Meta:
model = Post
fields = [
"title",
"body",
] | [
"radhika.hegde13@gmail.com"
] | radhika.hegde13@gmail.com |
00ab9fc7105908e5066353d20cdeb40bcfc5caab | e4e89c9f7139d09344b139883d44e8fa8b6eecf7 | /pe_reader/section_type.py | 610783714a02922f3b8179447b182b43c04dae67 | [] | no_license | huhuang03/pe-reader.py | c13b4efe8f281591778b3effd97ce190c5221a56 | 5272e0b949226d00b9c14ae7d39eb792c47dbe9c | refs/heads/master | 2022-12-10T15:18:38.764075 | 2020-08-31T09:59:02 | 2020-08-31T09:59:02 | 291,245,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,490 | py | class SectionType():
def __init__(self, value, name, meaning):
super().__init__()
self.value = value
self.name = name
self.meaning = meaning
s_null = SectionType(0x0, "SHT_NULL", "Section header table entry unused")
s_progbits = SectionType(0x1, "SHT_PROGBITS", "Program data... | [
"york@duomai.com"
] | york@duomai.com |
10a99eb8e1f2e8748857d82f10a629bf3a5c7775 | b429676888da0b88e2099810a9add20e71cd92f2 | /Python/Big-O calculation.py | 32aa76965a18b31ac384e56bd43929a20bcab721 | [] | no_license | meesont/RGSW | 4368223d81a6b7588580ef15a908000953422003 | 10c0044b2ee9cbb69c0ad6d0e152ad53c1a18f41 | refs/heads/master | 2022-12-23T02:01:13.059192 | 2019-07-03T15:13:53 | 2019-07-03T15:13:53 | 118,895,371 | 1 | 0 | null | 2022-12-09T02:14:46 | 2018-01-25T09:59:17 | Python | UTF-8 | Python | false | false | 869 | py | # This program counts the number of print statements
# executed for a list of a given size
# This gives a measure of how many print statements are executed
# The number of times the loops are executed is more significant
#than the number of statements in each loop
def bigO(aList):
numberOfPrints = 0
n = len... | [
"13624619+meesont@users.noreply.github.com"
] | 13624619+meesont@users.noreply.github.com |
0ffaf2057456cc19aef95d11df83f021238ebf22 | 3711a2379e0c40e35e5295a6178a8693c6869cf4 | /oas/python-flask-server/jatdb_server/models/universal_resource.py | 0009119f46ef4ce1b184babceaceb74b7303f80b | [
"MIT"
] | permissive | NGenetzky/jatdb | dfd4f8d62d6e0f1d1c03a7aa31a804f3f5bf55c5 | 518e0cedca1b61b8a744aef5e02255d8501bf8eb | refs/heads/master | 2021-09-27T17:47:59.480796 | 2018-11-07T05:08:56 | 2018-11-07T05:08:56 | 116,591,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,801 | py | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from jatdb_server.models.base_model_ import Model
from jatdb_server import util
class UniversalResource(Model):
"""NOTE: This class is auto generated by the swagg... | [
"nathan@genetzky.us"
] | nathan@genetzky.us |
b987b35bd1a590586c2780606740f75eb2ba793d | 7981a91c1e60be98e03deb0e7477496754ebab72 | /login/forms.py | 4b23645fd67aa6ac98e77d91ce34933966510b06 | [] | no_license | zhangwa5/mysite4 | ffec03a7d996d27bcdd558d14ad5541f49352a67 | acfa2c1884d57729b85e41c06fedfcd322f2cc21 | refs/heads/master | 2020-06-11T19:37:42.946082 | 2019-06-27T09:14:44 | 2019-06-27T09:14:44 | 194,063,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | from django import forms
from captcha.fields import CaptchaField
class UserForm(forms.Form):
username = forms.CharField(label="用户名", max_length=128)
password = forms.CharField(label="密码", max_length=256, widget=forms.PasswordInput)
captcha = CaptchaField(label="验证码")
| [
"522232813@qq.com"
] | 522232813@qq.com |
65ad7779c0771342e26563f4829f19544fe0d22a | b27dba9265e3fc46453293af33e215784cc60d15 | /pype/plugins/standalonepublisher/publish/extract_review.py | fbc14785a4091115ef61a811360275e740e545fd | [
"MIT"
] | permissive | tws0002/pype | f8f655f51282128b7ac42df77fca58957f416dcd | 80b1aad9990f6c7efabf0430a3da6633054bf4a8 | refs/heads/develop | 2020-04-29T21:51:22.583645 | 2019-12-09T04:23:17 | 2019-12-09T04:23:17 | 176,426,875 | 0 | 0 | MIT | 2019-12-09T04:23:18 | 2019-03-19T04:56:38 | Python | UTF-8 | Python | false | false | 7,630 | py | import os
import tempfile
import pyblish.api
from pype.vendor import clique
import pype.api
class ExtractReviewSP(pyblish.api.InstancePlugin):
"""Extracting Review mov file for Ftrack
Compulsory attribute of representation is tags list with "review",
otherwise the representation is ignored.
All new... | [
"jakub.trllo@gmail.com"
] | jakub.trllo@gmail.com |
168c735848987ad72b686f76a95014ee5340c596 | 1489e8f3dac1099bf6cce9cc6977a4d5c209f000 | /DB_Tests/apps.py | f1028a269753970ea5532adbd25308f86c9b25ac | [] | no_license | I-Need-A-Forecast/Django-server-spike-v2 | b80c056f5a2f3385ab7646581edca948eaa0a8a2 | 894a4b674a19e81563103b212368c9479be3c629 | refs/heads/master | 2020-04-18T19:45:03.249074 | 2019-02-19T16:57:45 | 2019-02-19T16:57:45 | 167,719,911 | 0 | 0 | null | 2019-01-28T17:45:17 | 2019-01-26T17:51:33 | Python | UTF-8 | Python | false | false | 169 | py | from django.apps import AppConfig
class DbTestsConfig(AppConfig):
name = 'DB_Tests'
#class current_observationConfig(AppConfig):
# name = 'current_observation' | [
"Colin.Oraskovich@gmail.com"
] | Colin.Oraskovich@gmail.com |
819ff6ab0594922528da4d79e8be19d32e18fad2 | 73a0f661f1423d63e86489d4b2673f0103698aab | /python/oneflow/test/modules/test_contiguous.py | 4d589b551f159a895bb5b71bb58e4fb4ae3bb792 | [
"Apache-2.0"
] | permissive | Oneflow-Inc/oneflow | 4fc3e081e45db0242a465c4330d8bcc8b21ee924 | 0aab78ea24d4b1c784c30c57d33ec69fe5605e4a | refs/heads/master | 2023-08-25T16:58:30.576596 | 2023-08-22T14:15:46 | 2023-08-22T14:15:46 | 81,634,683 | 5,495 | 786 | Apache-2.0 | 2023-09-14T09:44:31 | 2017-02-11T06:09:53 | C++ | UTF-8 | Python | false | false | 4,922 | py | """
Copyright 2020 The OneFlow Authors. All rights reserved.
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 agr... | [
"noreply@github.com"
] | Oneflow-Inc.noreply@github.com |
41d172b6f2eb4d4875242451609b434f84844125 | 6f0c1766e7a6ed608a386a0b7d1a5708abe34b63 | /transforms/__init__.py | 4d9a4febb3d8cfadb6738d9c806939d1389a2393 | [
"MIT"
] | permissive | borhanMorphy/facial-keypoints-detection | 05065bf66abf23bf268084f0dbe379d96561190c | d2a0fe077d04ae6f2701af107b8322566f27a432 | refs/heads/master | 2022-12-21T05:53:31.571142 | 2020-09-15T15:16:08 | 2020-09-15T15:16:08 | 290,889,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | from torchvision.transforms import *
from .train import TrainTransforms | [
"borhano.f.42@gmail.com"
] | borhano.f.42@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.