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 213
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 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
de443776aa84d3290318991589f034155c47b566 | 3244c110d230eb659edc1168ea02d8b9d2ea9ff5 | /lab1/account.py | 875989641b6264ee941508d53f5c9977956ae22f | [] | no_license | thelloin/TDDA69_Data_And_Program_Structures | 9f05228a35613f1917ba9fac03d2041d54400d09 | 5e2d6d750d1bcca5278341c72728891c3c510385 | refs/heads/master | 2021-01-11T14:59:04.070874 | 2017-05-22T18:38:11 | 2017-05-22T18:38:11 | 80,271,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 900 | py | class AccountError(Exception):
def __init__(self, value):
self.value = value
def str(self):
return repr(self.value)
def make_account(balance, interest):
t = 0
def withdraw(amount, time):
nonlocal balance
nonlocal t
if time <= t:
raise AccountError("Timestamp error")
... | [
"tommy5545@gmail.com"
] | tommy5545@gmail.com |
0194081e4e86d0304d4fe64e144a7cd7f739f96c | 3a8fa9bab6c128550adc469931bbd35439378ee8 | /version0001/settings.py | 8a45e4a1a22cdcf1b74ee63e3047de444b9335c4 | [] | no_license | hsubramani42/cloud_project | 3d0d0b82172ac2286ce82bca5b9d6bb52d5c5dd1 | 3be9ab4d9935b772cb5b8273b4b2bd9a6ce07fc5 | refs/heads/master | 2023-08-22T23:58:48.007346 | 2021-10-05T13:08:13 | 2021-10-05T13:08:13 | 359,930,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,370 | py | """
Django settings for version0001 project.
Generated by 'django-admin startproject' using Django 3.0.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import o... | [
"hsubramani42@gmail.com"
] | hsubramani42@gmail.com |
9901a824036dae08fe6bba801ad4961fa53f3672 | 3160425b60cba9c5817bdf953fa082de0fd8ef4c | /labelImg.spec | 1ac78b75769490c4beaa5d24e456b79b189ec0f6 | [] | no_license | dashengjiadao/LabelImg | 5a8fa391575eb7d1f816f593be78d0f6645e78d1 | 5aa184c623e188eaedefa33407a4506fdb44504f | refs/heads/main | 2023-06-05T08:12:25.532826 | 2021-06-23T07:35:54 | 2021-06-23T07:35:54 | 337,600,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 852 | spec | # -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(['labelImg.py'],
pathex=['E:\\Github\\LabelImg2'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_... | [
"34080594+dashengjiadao@users.noreply.github.com"
] | 34080594+dashengjiadao@users.noreply.github.com |
6878f9da2eeca9ddd2bb8ec9ab3d5255a6eb960d | fc9421f8108ff1c78ba85cdb7afd7958f837414f | /ITBones/ITBones/money/urls.py | 667f3bc6fa6e4c056f563ddb7e032f28dc907f23 | [] | no_license | itbones/ITBones | a2d426ad6881c880aeb6b57dcbede756730ca9fc | 16176c3252e67a4ffbba0306ee1861cba8f149c2 | refs/heads/master | 2021-08-31T23:53:43.264947 | 2017-12-23T15:38:24 | 2017-12-23T15:38:24 | 112,016,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | from django.conf.urls import url
from . import views
app = 'money'
urlpatterns = [
url(r'^$', views.index, name='index'),
url(r'^addstock$', views.addstock, name='Add Stock'),
url(r'^sendemail$', views.sendemail, name='Send Email'),
url(r'^(?P<stockid>[0-9]+)/$', views.displaystock_v, name='Display Det... | [
"itbonessolutions@gmail.com"
] | itbonessolutions@gmail.com |
5496363edf851bc2559b156493e669bb8d9513ff | 96b9089ab9a98bb11361ca8757597dcfa8da517e | /KreditneKarticeProjekat/main.py | 6151784825acee01ae0a299cb10fb9ce60894fc6 | [] | no_license | jovanakostres/ORIprojekat | 53f8c1a6e96a797d05cf03fc50efca3acd20b5c5 | bc1db841f0712b0d22988bf6d9dec4179fc2fb6a | refs/heads/master | 2022-11-17T08:04:09.886981 | 2020-07-06T21:51:12 | 2020-07-06T21:51:12 | 263,088,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,490 | py | import pandas
from pandas import DataFrame
import matplotlib.pyplot as plt
from sklearn.cluster import KMeans
import seaborn as sns
from sklearn.pipeline import Pipeline
from sklearn.preprocessing import StandardScaler
from sklearn.decomposition import PCA
import tkinter as tk
import tkinter.ttk as ttk
from ttkthemes i... | [
"jovanako15@gmail.com"
] | jovanako15@gmail.com |
4af3b0aea7e2f909a2c5d316c59783093ffc5ef5 | 0d182889379814038e48b4a5549df59401e8e257 | /Higher_Education_Information_System/settings.py | 0b2d3329c3ce47250370420c05b1bbfc0585c47c | [] | no_license | amanishimwe/IUCEA | eaa774edb98c43c815fba95e61aca992b9939a3d | 69557dd061c1bf55c060c02fd895544ae023e0ae | refs/heads/master | 2023-05-31T07:14:43.999699 | 2021-07-11T12:20:27 | 2021-07-11T12:20:27 | 384,943,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,423 | py | """
Django settings for Higher_Education_Information_System project.
Generated by 'django-admin startproject' using Django 3.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref... | [
"alban.manishimwe@gmail.com"
] | alban.manishimwe@gmail.com |
16197b03f8829d17859f944f63d22a55d7e81fc0 | fb0302e9fa08852e6b97031745423e5ddcd83313 | /music_playlists.py | 3da9c731e63d59d3d103e33cb03e5df6a73eb069 | [] | no_license | IsaiahWitzke/SpotifyToYoutube | a92a213a9adda8413de6c64373a7eb7aa5be752f | b66df1da83ff373e14efc384e6be69c489d74fb6 | refs/heads/master | 2020-12-29T05:05:37.391846 | 2020-02-05T14:08:57 | 2020-02-05T14:08:57 | 238,464,371 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,223 | py | import sys
import os
import spotipy
import spotipy.util as util
scope = 'user-library-read'
os.system("export SPOTIPY_CLIENT_ID='aae63f05cceb4e8d87386f8ade1eed52'")
os.system("export SPOTIPY_CLIENT_SECRET='67338d34cf894ddcb65e5eb0f1b41b05'")
os.system("export SPOTIPY_REDIRECT_URI='localhost'")
if len(sys.argv) > 1:
... | [
"noreply@github.com"
] | IsaiahWitzke.noreply@github.com |
10e4a7609ccf0eac6870626b7d0b21f2794c75a6 | 3ff99004a3bddb522e7778073bee5b07d953c043 | /common/migrations/0006_auto_20200826_0055.py | 094836bae92cff4ba5a5fc0f34baebf22e4e9acf | [] | no_license | rimi-dev/modeling | 8134e73300eaf159d9c3214f5ef513ec8241f062 | 777a1b587a1446ee73457d8ec18e0097d041700c | refs/heads/master | 2022-12-10T07:17:27.704954 | 2020-08-26T05:24:46 | 2020-08-26T05:24:46 | 289,538,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | # Generated by Django 3.1 on 2020-08-26 00:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('common', '0005_auto_20200825_0138'),
]
operations = [
migrations.AlterField(
model_name='companycarcount',
name='count... | [
"yerimi@kakao.com"
] | yerimi@kakao.com |
ff5ad551094fe09dde93eacb62fed9e8b88e910f | 68087c1047211658a7af639e0168752b81008031 | /lab2/cookie_monster.py | 2c7e1c70ac2df51505f1cf486d6919cb6964cba4 | [] | no_license | barchuckie/computer-security | a9184ec92316f7f25706fd9bb0df0abaa18bfbbf | 3bfd661a1107ee901e3e9f2e695a3670b8e582ef | refs/heads/master | 2023-04-27T04:20:22.763607 | 2020-04-30T08:42:07 | 2020-04-30T08:42:07 | 219,340,323 | 0 | 0 | null | 2023-04-21T20:41:22 | 2019-11-03T17:41:37 | Python | UTF-8 | Python | false | false | 1,278 | py | import subprocess
import session_id_parser
from selenium import webdriver
def eat_cookie():
command = ['tshark', '-l', '-Y', 'http.request', '-T', 'fields', '-e', 'http.cookie']
process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.DEVNULL)
pattern = {'name': '', 'value': ''}
... | [
"barchuckie@outlook.com"
] | barchuckie@outlook.com |
7840325068ccd87e7c2f362d380348e978ad66c6 | 3cabd0d64827d18e9befc84ea935b767d4c69f28 | /server/bin/artery/link_login_role.py | f260bcf01d0544c34b553af208e72a6f16fa3dbd | [] | no_license | minghuizhou/PAR | 2b528a4e7230aee1eb0ee3cfd12852d54e250a0b | bf8ee49516879aede8c312aef2ddeab92ebe5d47 | refs/heads/master | 2016-09-08T05:08:07.556630 | 2015-09-12T15:16:39 | 2015-09-12T15:16:39 | 42,352,036 | 0 | 2 | null | 2015-10-22T13:49:30 | 2015-09-12T09:40:26 | Python | UTF-8 | Python | false | false | 1,396 | py | #!/usr/bin/python
# Author: Xie Jialiang
# Date: 2012-11-16
# Function: link login experience to link file
# Parameters: 1) llevel4_assigning
# 2) login role
# 3) name of who field
# 4) name of when field
# 5) prefix of output field
# Output stream: linked llevel4_assigning
import sys
import l... | [
"zhmh@pku.edu.cn"
] | zhmh@pku.edu.cn |
b142a614f33910b10f5bfcc72d387e9e9ffb65db | 722b34eb41b5d22962fd56b5c9c795f8088dabda | /mysite/settings.py | 8e06fb3d5a0395575971c22f829ac864a9b08c36 | [] | no_license | gabritejedor/djangogirls | fd82b8f3ac379ef7290cf4c9053f79465616d9a7 | 42eb45de355b993f120874e247169f740e41ba79 | refs/heads/master | 2022-12-14T15:49:09.044452 | 2020-09-09T12:11:20 | 2020-09-09T12:11:20 | 294,012,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,208 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.2.16.
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
#... | [
"tejedor.gabriel@gmail.com"
] | tejedor.gabriel@gmail.com |
64d5c91a43affc005fb4ff69a7c265cf050a0706 | fe352d7f2ff89a8f71dedc0728a8e0f8cfd00c82 | /example001.py | 661d5148f4b2e1284abe73cee277c28228f2020c | [] | no_license | fenwk0/Decorating | 57c102ef67bf64baa46ab6983f797ec5d565fc0c | 59745956ca60329b6a35fefd0813e10dfa33e0f3 | refs/heads/master | 2020-12-30T17:10:51.627879 | 2017-05-17T06:42:42 | 2017-05-17T06:42:42 | 91,061,106 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 916 | py | import timeit
__author__ = 'fenwk0'
# This is our decorator
# taken from
# https://ains.co/blog/things-which-arent-magic-flask-part-1.html
# see also
# https://www.thecodeship.com/patterns/guide-to-python-function-decorators/
def time_decorator(f):
# This is the new function we're going to return
# This fun... | [
"noreply@github.com"
] | fenwk0.noreply@github.com |
d5b114437ecf22f7655de0f685b1515689fa6a50 | 1b6e8a45af2328bac9fb5efe9d9706165b3e477f | /HelloPsych/vline/templatetags/.svn/text-base/vline_tags.py.svn-base | d431062c6a5a6e96cb596f3c62bc8ff87ad3bfa0 | [] | no_license | abbhinavvenkat/HelloPsych | e6b247fb15a9877660b243bc06535ff73011fcb4 | 5b3c7a84c00e70cf903cd7a5c254660139b454e2 | refs/heads/master | 2021-01-10T20:43:29.795597 | 2014-12-29T17:20:43 | 2014-12-29T17:20:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | from django import template
from .. import vline
import json
def vline_service_id():
return "'" + vline.SERVICE_ID + "'"
def vline_auth_token(user):
return "'" + vline.create_auth_token(user.id) + "'"
def vline_user_profile(user):
return json.dumps(vline.create_user_profile(user))
register = tem... | [
"abbhinavvenkat@gmail.com"
] | abbhinavvenkat@gmail.com | |
07fbce72a887e82a1502046c7d5fe3a245a181f4 | 76119dbd4710437f7189013e615cb403f388ad60 | /a_star/graph.py | bef1f52e267b8d480a7820c98fe60e99765bd408 | [] | no_license | joao1pedro/IA | 855251c5ecb27ee1a746eafa71959dcbc26a569e | a42a08494c1824b8f7088f4572f21b965c706584 | refs/heads/main | 2023-04-19T11:34:21.463776 | 2021-05-10T19:40:29 | 2021-05-10T19:40:29 | 366,155,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 835 | py | from vertex import *
class Graph:
def __init__(self):
self.camp = {}
def addVertex(self, city, value):
vertex = Vertex(city, value)
self.camp[city] = vertex
def addEdge(self, city_a, city_b, distance, value_a=0, value_b=0):
if city_a not in self.camp:
sel... | [
"jpedro@alu.ufc.br"
] | jpedro@alu.ufc.br |
efa3eef31d0a62564b9ce9cdf6b6a9aec5e41cf9 | c7b5e983e8d831a39063698d700478eff37653e9 | /listings/models.py | e102e6a623b8a88b2f7faa2f9c9dc0fa73ecaa72 | [] | no_license | Luis846/monsters-rolodex | 86a0654700908d602401f0780fac2116e84f7e11 | 85537167410d5316429512f437c255246b0c3d11 | refs/heads/master | 2020-12-26T23:56:34.387150 | 2020-02-02T00:17:04 | 2020-02-02T00:17:04 | 237,694,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,438 | py | from django.db import models
from datetime import datetime
from realtors.models import Realtor
class Listing(models.Model):
realtor = models.ForeignKey(Realtor, on_delete=models.DO_NOTHING)
title = models.CharField(max_length=200)
address = models.CharField(max_length=200)
city = models.CharField(max_l... | [
"luis.rivera846@gmail.com"
] | luis.rivera846@gmail.com |
61bcac812f0c491d1329ba7acc050ea1dfd83062 | 2d49a4926e71b958256fa76d238daf8bf31d33c9 | /Hero2Vector/utils/prepare_data.py | 022393e1bd157c44fcd817c81ae9455f98b278d4 | [
"MIT"
] | permissive | diorw/dota_analyze_and_prediction | d4a748328965d632ae86168ccfab65d6862f7ddc | 3f5a6f21ba74fe065bbb5cc2fa8f512986023249 | refs/heads/master | 2020-12-19T18:17:19.049147 | 2020-05-25T08:36:08 | 2020-05-25T08:36:08 | 235,811,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,378 | py | import pymysql
import json
import pandas as pd
conn = pymysql.connect(host = '120.55.167.182',user = 'root',password = 'wda20190707',database = 'dota')
cursor = conn.cursor()
sql = '''
select player_1_hero_id,player_2_hero_id,player_3_hero_id,
player_4_hero_id,player_5_hero_id,player_6_hero_id,player_7_hero_id
... | [
"406714601@qq.com"
] | 406714601@qq.com |
607964a9ba93205db1311061e4de8f926aede1d4 | 7d242bae938def0417383a65222a5e32ef9972a9 | /seed.py | cddd698a304c2ae896d8d11b8c5521128f14dce1 | [] | no_license | fan777/flask-feedback | 1050ea18e24d3d219e35e9373ea619182873f59e | 1edefa1e8f9821dbae751317ec50cd781c62f333 | refs/heads/main | 2023-04-16T15:43:06.022921 | 2021-04-23T20:58:59 | 2021-04-23T20:58:59 | 356,971,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 794 | py | from app import db
from models import User, Feedback
db.drop_all()
db.create_all()
u1 = User.register('test', 'password', 'test@test.com', 'first', 'last')
u2 = User.register('cfan', 'password', 'cfan@test.com', 'charlie', 'fan')
u3 = User.register('jen', 'password', 'jen@test.com', 'jennifer', 'fan')
u4 = User.regis... | [
"fan777@gmail.com"
] | fan777@gmail.com |
9feb322d92fc61c6492ea50a0f8ab033502c1e49 | ccf5405798a32ffeb376125a27ce6795ecb5322e | /selector/admin.py | 2c6c4590e3c41ea58ccb5080b925370718d9c86c | [] | no_license | nicksunday/gamefinder | 3d7591d72893d8121a860661f266251013da8aac | 6bfad18998dce3413c67a7eb6ecb0940b8d67538 | refs/heads/master | 2022-12-25T13:52:02.385632 | 2020-09-28T19:59:03 | 2020-09-28T19:59:03 | 296,515,048 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,187 | py | from django.contrib import admin
from .models import Artists, Categories, Designers, Families, GameArtists, GameCategories, GameDesigners, GameFamilies, GameMechanics, GamePublishers, GameSubdomains, Games, Mechanics, Publishers, Subdomains
# Register your models here.
#admin.site.register(Artists)
#admin.site.regist... | [
"sunday.nick@gmail.com"
] | sunday.nick@gmail.com |
c50a342acb6bc87b8a8f688c00e2d4ed0b1e549d | 758f8908c777bfbecaf29f7586f0f6431f272cfa | /SciLearn/logisticregression.py | 28438a3291fa90d6dc77d314c73c319428b0ac82 | [] | no_license | andyxiao24/sklearnlearn | 677c79be17813ee717d5f1518f2890642f06c55a | 35cfe6fb312cb9ba17b45c83c3c1b32c970784f7 | refs/heads/master | 2020-03-31T12:34:30.618113 | 2018-10-18T09:20:49 | 2018-10-18T09:20:49 | 152,221,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,252 | py | print(__doc__)
# Code source: Gael Varoquaux
# License: BSD 3 clause
import numpy as np
import matplotlib.pyplot as plt
from sklearn import linear_model
# General a toy dataset:s it's just a straight line with some Gaussian noise:
xmin, xmax = -5, 5
n_samples = 100
np.random.seed(0)
X = np.random.normal(size=n_sam... | [
"xp373150@163.com"
] | xp373150@163.com |
a602f9773fece56e8bf5673f94bbf685cd12f67b | 20dcfdc70daa62a6886c8717bb4052177098d830 | /blog/migrations/0001_initial.py | 3f7f01efffe4692656cbda4e4ddb286bcd5eff1c | [] | no_license | 15179711268/student_sys | 71f92e6f483e62fb3c46c0424bff794abfb692f6 | a2ef88c65273b3a2a0d15a06371a42bf17ab6306 | refs/heads/master | 2020-12-02T02:52:55.055579 | 2020-01-02T09:44:51 | 2020-01-02T09:44:51 | 230,863,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,356 | py | # Generated by Django 3.0.1 on 2019-12-31 08:18
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"1336278145@qq.com"
] | 1336278145@qq.com |
65775a3e57d9d65d42dd32185860bd1e5c3434c6 | f193f4032a3b710b8ee8cc9dab6b8763d3fa85ba | /easyX.py | 92b49d05a65069bb9d1953325c6865ee8ea2b56e | [] | no_license | Ameema-Arif/Jigsaw-Puzzle-using-Python | 171421e2ae74a61cbc6d9240894aee9636c73170 | f6f737dfc992f99f73193acf26b5e5fec8e9f0e4 | refs/heads/master | 2023-02-06T17:30:48.176999 | 2023-01-31T15:15:54 | 2023-01-31T15:15:54 | 248,823,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,498 | py | import pygame as p
import time
from tkinter import *
import sys
class Puzzle(object):
Sound=r"D:\OOP\Project\SubMusic.ogg"
def Win(self):
p.init()
Wint=p.display.set_mode((400,400))
p.display.set_caption("Game Over")
Wimg=p.image.load(r"D:\OOP\Project\game-r... | [
"noreply@github.com"
] | Ameema-Arif.noreply@github.com |
7c4dd661b10e6f4a17ea31043784a8eb8c483fd2 | 28658c31d79c99f0e0b02231b4d33eef30e8794c | /layout2.py | 136f80909c0ba18ab427b18a51f46ffe31a4b9df | [] | no_license | gamesun/learn-wxpython | 8202b1927b6acd3da9efb5317a1a4b688d92ffda | 0b571e117f4f0b36e388923c59e83fb625a07306 | refs/heads/master | 2021-01-18T19:29:20.053939 | 2014-04-19T03:37:31 | 2014-04-19T03:37:31 | 10,583,441 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,079 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
#
# generated by wxGlade 0.6.7 (standalone edition) on Thu Jun 20 20:41:34 2013
#
import wx
# begin wxGlade: dependencies
import gettext
# end wxGlade
# begin wxGlade: extracode
# end wxGlade
class myFrame(wx.Frame):
def __init__(self, *args, **kwds):
# beg... | [
"gamesunyt@gmail.com"
] | gamesunyt@gmail.com |
5be0d964b412b379fa23c40b1fa4dea76522cac5 | a316314363af3de6063b37dc793505124474eb64 | /mysite/settings.py | 6d66323962cce74f9e7e32bdc3a31738204bd5b2 | [] | no_license | arya626/Change-Detection-with-Siamese-CNN | 2cb920aef46286ce98ff5251ad03ed3e513f07fb | 3f75180047fb4eb75a9ad7bd21943ac7094c08c8 | refs/heads/master | 2022-11-20T19:06:27.087445 | 2020-06-06T13:00:32 | 2020-06-06T13:00:32 | 280,451,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,449 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 3.0.6.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
# ... | [
"bharathi.purple@gmail.com"
] | bharathi.purple@gmail.com |
6111fd1f730be1ccf96eeecee0d08b28d83d03d1 | 77bda097e678ffd54fa8d2989854ae2c763d7d45 | /weather/settings.py | c50da972575ebf1b29aca283a610cfecb533a4a5 | [] | no_license | brendanm9t/weather-app-django | dd6d33967a497ba7e93c150aeee7713d0e7624ba | 92afbde2c9dfe41cd1f3451bfaf1c8c296c07a2d | refs/heads/master | 2022-09-27T00:03:18.987684 | 2020-06-02T20:15:16 | 2020-06-02T20:15:16 | 268,760,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,133 | py | """
Django settings for weather project.
Generated by 'django-admin startproject' using Django 3.0.6.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
#... | [
"brendanmitton@gmail.com"
] | brendanmitton@gmail.com |
b5604de8e95d981772a8a08167d2fd6c8e1c49a3 | 9c3b9bacc2620bf317474391d296a97b245afad8 | /daily coding problem/Uber/A Product Array Puzzle O(n) O(1).py | d29b4c114b723cb0eabfafe4cd443b4098869898 | [] | no_license | rishavghosh605/Competitive-Coding | 72dd4f7f6aef45e06ac85d35fa1c79bf0d7701e2 | 0e94036004efe5d9e8a95909f22f3406f86da4e9 | refs/heads/master | 2020-05-30T15:32:41.628390 | 2020-04-06T15:40:04 | 2020-04-06T15:40:04 | 189,821,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 828 | py | # Python program for product array puzzle
# with O(n) time and O(1) space.
'''Use property of log to multiply large numbers
x = a * b * c * d
log(x) = log(a * b * c * d)
log(x) = log(a) + log(b) + log(c) + log(d)
x = antilog(log(a) + log(b) + log(c) + log(d))'''
import math
# epsilon value to maintain precision
... | [
"rishavghosh605@gmail.com"
] | rishavghosh605@gmail.com |
9f707ef234d32d134b9d40544fee0180dce546df | 2ba1517b2537b499f548425f034548c089d49b26 | /watson/filters/__init__.py | a729d5e8cd34ff755ebeda84f6373a5cb7fd5aef | [
"BSD-2-Clause"
] | permissive | watsonpy/watson-filters | fa1ab2fe1ba8544bf6af56f828100d61b3bc93eb | 22e3473d4caa3a5b208eeecd6d810f58f2d3a834 | refs/heads/master | 2020-12-22T23:24:04.731258 | 2019-10-03T04:28:39 | 2019-10-03T04:28:39 | 16,093,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | # -*- coding: utf-8 -*-
__version__ = '1.0.1'
try:
# Fix for setup.py version import
from watson.filters.string import (Trim, Upper, Lower, RegEx, Numbers,
StripTags, HtmlEntities, Date)
__all__ = [
'Trim',
'Upper',
'Lower',
'RegEx',
... | [
"simon.coulton@gmail.com"
] | simon.coulton@gmail.com |
e3cefd33af2af14d595f20c65c947b154e491548 | 7d0868ffa683803b55dd525beaad0ecc1ae40dcc | /backend/todo/views.py | a8c90ab361f4674b961af09b1ba9bcecb97e9be3 | [] | no_license | chelsejw/todo | 7427ab4d212d9167aacbf32794350a82c5613f9a | b856aa2fe3654c6ba879b0d4d80c2a7dac655548 | refs/heads/master | 2023-01-18T16:10:33.169181 | 2020-12-04T09:02:56 | 2020-12-04T09:02:56 | 299,287,749 | 0 | 0 | null | 2020-10-01T13:35:47 | 2020-09-28T11:32:30 | JavaScript | UTF-8 | Python | false | false | 368 | py | from django.shortcuts import render
# Create your views here.
from rest_framework.permissions import AllowAny
from rest_framework.viewsets import ModelViewSet
from .models import Item
from .serializers import ItemSerializer
class ItemViewSet(ModelViewSet):
queryset = Item.objects.all()
serializer_class = Ite... | [
"chelsejw@gmail.com"
] | chelsejw@gmail.com |
13ee98f47946a5208c92ef8471cee9c16fb70363 | dd8c2b417ea6ad2360cf1a21a7eeb99b7b7ca459 | /Week 5/Day 3/XP/modulesXP.py | 83a413e5776033a07b2ab6aa2deeb88129de2f6e | [] | no_license | nsal-ai/DI_Bootcamp | 028d6eb342294bd0ce5bc159b1f39b4d5880c981 | 6331f895237b6b51b8dbf291d15e34ccaaad72ba | refs/heads/main | 2023-05-22T13:34:07.568245 | 2021-06-11T16:02:32 | 2021-06-11T16:02:32 | 354,993,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,787 | py | # import datetime as dt
# date1 = dt.datetime.today()
# print(date1)
import time, datetime
today_date = datetime.date.today()
future_date = datetime.date(2022,1,1)
diff = future_date - today_date
print(diff.days)
import datetime, time
ny_22 = datetime.date(2022, 1, 1) - datetime.date.today()
print(ny_22)
fro... | [
"nigel.salem@rocketmail.com"
] | nigel.salem@rocketmail.com |
3e81fbe984615e1803e95416d5ffff5e86447a53 | c25ea06dcae67540973fde2e10be62e6002df2f0 | /backoffice/views/item.py | 0f1815572cd6e1c749649e20b69eb0d14de9de76 | [] | no_license | Youngiyong/giyong-api | df021c1bc0b147021f74f05eef714d85e0e055f4 | dbd723fa1e2312537d545ac125d6bdc2349ccab2 | refs/heads/main | 2023-07-04T12:34:26.090858 | 2021-08-10T13:33:34 | 2021-08-10T13:33:34 | 390,406,924 | 1 | 1 | null | 2021-08-05T15:06:16 | 2021-07-28T15:46:27 | Python | UTF-8 | Python | false | false | 731 | py | from rest_framework import viewsets
from backoffice.models import SiteGoods
from backoffice.serializers.item import ItemSerializer
from giyong.responses import BackOfficeResponse
class ItemListViewSet(viewsets.GenericViewSet):
"""
아이템 리스트 조회
"""
model = SiteGoods;
serializer_class = ItemSerializer
... | [
"youn9354@naver.com"
] | youn9354@naver.com |
82548f0b1cfae60c5a691672836b84e9b191992e | ae5e5c1bb869fd72598aa94a549161aab02a2d51 | /configs/common/O3_ARM_v7a.py | bbcec74963d96e8bef2f1888679659bd96dea191 | [] | no_license | chrisjia6412/GEM5 | 89a74df84a7be6edf348384d9716e5da837a472d | 260c5090de84ddbd1a42fab436ba34ed64a63c91 | refs/heads/master | 2021-01-13T01:55:10.875601 | 2014-07-12T19:37:01 | 2014-07-12T19:37:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,294 | py | # Copyright (c) 2012 The Regents of The University of Michigan
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met: redistributions of source code must retain the above copyright
# notice, this list ... | [
"qi@qi-VirtualBox.(none)"
] | qi@qi-VirtualBox.(none) |
350ffd8fca7ec36b99c6cffa4ee976cbf5f708c8 | 493d280a1c687711d3aed80ddade8e19848c0234 | /venv/bin/django-admin.py | 827bcc6fa1d5c23aca50a8fcdc385a3a56eb5a49 | [] | no_license | GeovaneBarros/Venda-Produtos | d88d6ad5fa06c761c7bdb096ae84d75b19de8a82 | b8a94f7d64292e0126ecc27d43057bdbcb558626 | refs/heads/master | 2023-07-03T05:58:39.489996 | 2021-08-03T15:02:10 | 2021-08-03T15:02:10 | 388,113,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 697 | py | #!/home/geovane/Documentos/git/Venda-Produtos/venv/bin/python3
# When the django-admin.py deprecation ends, remove this script.
import warnings
from django.core import management
try:
from django.utils.deprecation import RemovedInDjango40Warning
except ImportError:
raise ImportError(
'django-admin.py ... | [
"geovane@pop-os.localdomain"
] | geovane@pop-os.localdomain |
fccd084a55ab599772595c582a1d51697189a8a5 | 7bf91a0bd76d02c3f15952b851e6c32f190f5619 | /EMAHelperFunctions.py | d2f0b8203bc0eff91aafe947961002e5ecc278fc | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | kilolux/fsp-demos | bd4d21ddf5b8c0a25621842d3b2a6ee6c096d9ac | 50e96a10729477042b10291471c812d10bfd54fc | refs/heads/master | 2021-04-12T19:10:25.381198 | 2020-11-16T00:26:59 | 2020-11-16T00:26:59 | 249,102,873 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,927 | py | # EMAHelperFunctions.py
#################################################################
## Libraries
import matplotlib.pyplot as plt
import numpy as np
################################################################
## Exponential Moving Average (EMA) Functions
# Calculate the alpha value for a desired period... | [
"62257394+kilolux@users.noreply.github.com"
] | 62257394+kilolux@users.noreply.github.com |
3d9d02fab501c681dd1ecb74fe34e9407ee3211e | 2347a00aa41c023924de6bc4ffe0e8bc244a0f3f | /cms/apps.py | 5c0101c5a82df0a517f36f405d25b64ac9d404f2 | [] | no_license | Dean-Christian-Armada/prod-people | 2ac20d16aecb0cf1ae50a08e456060eee270b518 | fb8d99394d78bbf4d1831223fce2d7ac4a04f34d | refs/heads/master | 2021-01-01T16:19:36.904967 | 2016-01-26T09:20:36 | 2016-01-26T09:20:36 | 42,503,579 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | from django.apps import AppConfig
class YourAppConfig(AppConfig):
name = 'cms'
verbose_name = 'CMS Tables (Currently used in Documents only)' | [
"deanarmada@gmail.com"
] | deanarmada@gmail.com |
f3b885e952ddfedae93e7977d0e6c7f127bbdd7f | d7bfd78bdffdbf5a75141b06f7e4b94c295d0781 | /models/ssd_mobilenet_v1_feature_extractor.py | 844731cc6fa4e7a3f42b3e1e6fdf55deb6a67db2 | [] | no_license | shamanez/SSD-TF-OD | c4fa864851d289c99d7b56a95dda3b135d0a4520 | 6014db3ab275dd99fa779af16b6ec5a8a29bfb87 | refs/heads/master | 2021-01-19T14:21:03.754648 | 2017-09-07T23:00:16 | 2017-09-07T23:00:16 | 100,898,399 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,151 | py | # Copyright 2017 The TensorFlow 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 applica... | [
"noreply@github.com"
] | shamanez.noreply@github.com |
b64206a2f26f54d43768e905ca9eff0c32090d13 | 447e493fddbf4d7c6496050e5f5c7b6f4f4a9a1f | /lib/tfflat/saver.py | 0e32673894271849c6c346f911aa321478b3421d | [] | no_license | mks0601/TF-SimpleHumanPose | 46e1fb1c54c7c33305edcdef9de0c187a1abce89 | 58cc1ca86e302ba3d426c10e7c8030a6b2d00158 | refs/heads/master | 2022-07-11T15:00:29.350604 | 2022-07-01T03:17:33 | 2022-07-01T03:17:33 | 164,132,208 | 360 | 96 | null | 2019-05-24T12:43:59 | 2019-01-04T16:49:08 | Python | UTF-8 | Python | false | false | 2,420 | py | import tensorflow as tf
from tensorflow.python import pywrap_tensorflow
import numpy as np
from config import cfg
import os
import os.path as osp
def get_variables_in_checkpoint_file(file_name):
try:
reader = pywrap_tensorflow.NewCheckpointReader(file_name)
var_to_shape_map = reader.get_variable_t... | [
"mks0601@gmail.com"
] | mks0601@gmail.com |
8e34d4ac2b102606b68cc04de8de6218ce2c7fe6 | 396b4d5a3361dda0afc3a05ab06ed4b5aa8fa59a | /thinkhard/feedcrawler.py | b3d0d4b5782ebbf1834778b0da27fcee2195ed67 | [] | no_license | darlinglele/portal | 7a0a8e410032fef3040d0b350254a3e044ee9c65 | 5f5265f06ee65aa98ee9e03a95f6433cac7fd36c | refs/heads/master | 2020-05-29T12:36:55.817604 | 2018-02-02T05:59:27 | 2018-02-02T05:59:27 | 42,295,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,299 | py | #encoding=utf8
import time
from datetime import datetime
from time import mktime
import socket
import feedparser
import threadpool
class FeedCrawler():
def __init__(self,task):
socket.setdefaulttimeout(task['timeout'])
self.pool =threadpool.ThreadPool(task['pool_size'])
self.sources = task['sources']
self.fe... | [
"ubuntu@ip-172-31-12-43.ap-northeast-1.compute.internal"
] | ubuntu@ip-172-31-12-43.ap-northeast-1.compute.internal |
f3b0d783e5c1cb327f39b4a39392f55baaebe8a5 | 3ab965efcb9f20502a6420a844204b1d825268fa | /identidock/app/tests.py | c470e8821e66e25cc426f159cf41b06d2da8b050 | [] | no_license | kovtalex/deploying-containers | 456118ff39e2fdcc3107f0be68662c301af221cf | cce61d8dea56a543e1e929dacfca6585385d79c4 | refs/heads/master | 2021-03-27T21:24:57.851820 | 2020-04-01T13:36:33 | 2020-04-01T13:36:33 | 247,808,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 613 | py | import unittest
import identidock
class TestCase(unittest.TestCase):
def setUp(self):
identidock.app.config["TESTING"] = True
self.app = identidock.app.test_client()
def test_get_mainpage(self):
page = self.app.post("/", data=dict(name="Moby Dock"))
assert page.status_code ==... | [
"kovtalex@gmail.com"
] | kovtalex@gmail.com |
2284ba207ad2b43f708f3b94f9c3b91c002d5c4f | 1d7acb2644c84490347360716c11c9a672820cd4 | /ejecutable python/kmodelV4/main.py | e8707a1e8a34ca919de822b393b27cac3045da79 | [
"Apache-2.0"
] | permissive | SalvadorAlbarran/TFG2020 | 038345efd9cadac844cff1cc3cf6281d09ab38e8 | ff2b6eae1a49b0b7f88909816ce18a0d1baad832 | refs/heads/master | 2022-11-07T12:47:08.571305 | 2020-06-24T15:58:43 | 2020-06-24T15:58:43 | 269,429,489 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 826 | py | import sensor, image, lcd, time
import KPU as kpu
lcd.init()
sensor.reset()
sensor.set_pixformat(sensor.RGB565)
sensor.set_framesize(sensor.QVGA)
sensor.set_windowing((224, 224))
sensor.set_vflip(1)
sensor.run(1)
lcd.clear()
lcd.draw_string(100,96,"MobileNet Demo")
lcd.draw_string(100,112,"Loading labels...")
f=open('l... | [
"66437479+SalvadorAlbarran@users.noreply.github.com"
] | 66437479+SalvadorAlbarran@users.noreply.github.com |
011825657f266fd4b31c7a7d63955508c7cb9c0e | 9e4349e34cf4ef17795142c8a46a347b3452738d | /.idea/python/Cosmonauts 1st HW.py | dcac485681d12e36341a48ba712fc2f28d079d8f | [] | no_license | GreeNicee/SkillboxHM | 5a1a88dabe7584d572218adb6acb00c3db9dd30e | c3538a3a33b641491f2acd33c5664e4ace0435b9 | refs/heads/master | 2020-04-01T10:20:38.961643 | 2018-10-15T13:33:35 | 2018-10-15T13:33:35 | 153,113,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,087 | py | # Есть список космонавтов: имя, рост в см, вес в кг.
#Нужно вывести на консоль список всех космонавтов в формате
# Космонавт AAA, рост - BBB см, вес - CC кг
#А затем нужно вывести общее число космонавтов,
#минимальный и максимальный рост (с указанием имен)
#и общий вес космонавтов
#в формате
# Всего космонавтов XX... | [
"ivan550zero@mail.ru"
] | ivan550zero@mail.ru |
9e5a07f65283e7fe0ea8edae909ebfdc45a58631 | f17bb44a1d3b5102155f4cd251a0234bf2a50f87 | /typeidea/settings.py | 2febadaf5ef2b83224ef7939ba2ee4e953eccfb7 | [] | no_license | ScottYuan0805/django_test | 4aadb9aba87f184d8e601d46645a8851093484ab | a0f9b5470892b6eed6d7add026671b54c6ba43a4 | refs/heads/master | 2020-09-04T20:15:13.156103 | 2019-11-05T06:50:17 | 2019-11-05T06:50:17 | 219,880,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,103 | py | """
Django settings for typeidea project.
Generated by 'django-admin startproject' using Django 1.11.26.
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 ... | [
"boluoerzi@163.com"
] | boluoerzi@163.com |
bbe33eebae6cc991d331c697f0a3ebacb04af968 | 462288b945e619ae2d24d93f1ead3aa2e412f01f | /data_loader.py | 8875a1ed414ba6ac0c79c87ff31a73ce1fc64708 | [] | no_license | Zilo676/neuralNetwork | d57a365421351b01a15cc231b9539bf42c061479 | 5be1e83daec0f034039bc1453bfb786d1cca7886 | refs/heads/master | 2020-03-18T00:32:48.531092 | 2018-10-12T08:10:02 | 2018-10-12T08:10:02 | 134,100,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,730 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Mar 29 21:50:13 2018
@author: santit, zilo
"""
import pandas as pd
import numpy as np
import os
class End_of_DB(Exception):
def __init__(self, db_name):
self.db_name = db_name
def __str__(self):
return "End of database: " + str... | [
"plotb323@yandex.ru"
] | plotb323@yandex.ru |
f9fe27ffda166bdfb85ddb2f78d9825b780a74a3 | e9dcc3b1368d4d4e4f88f7cd7eeedea3f370a99c | /plotInfectionTrace.py | a1ebe941a83c2360897c5b6866e5050f65171103 | [] | no_license | nwlandry/SimplexSIS | 065034537b69321917c26f602575b438a22dd664 | d70c1ae043698d2974e1ddf177c229600d569088 | refs/heads/master | 2022-12-24T14:38:01.547835 | 2020-06-30T02:56:23 | 2020-06-30T02:56:23 | 220,497,431 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,771 | py | import numpy as np
import matplotlib.pyplot as plt
from scipy.sparse import csr_matrix
from scipy.sparse.linalg import eigs
import random
import simplexUtilities
import simplexContagion
import pickle
from datetime import datetime
import time
import multiprocessing as mp
# graph parameters
# graph parameters
exponent =... | [
"nicholas.landry.91@gmail.com"
] | nicholas.landry.91@gmail.com |
656b2b5c2d0909c3a0a06634440e9316cfac9d4d | fd63e5cfc880432d7bdb7c36481266d681539f76 | /no_shebang.py | 31a586f00b09957136f2cb41d57bd224aa798c43 | [] | no_license | MasterOlaga/mycode | de8425e5f32affcd803ecb44cb6bdba1f327f774 | 69f6b8747f1dbc5ae4762a39fb5aaa0b4650ab63 | refs/heads/main | 2023-04-10T18:57:48.585811 | 2021-05-04T12:05:11 | 2021-05-04T12:05:11 | 361,783,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | print("hello")
print("Did you say, Yello")
print("No, I said Hello, but that\'s close enough.")
| [
"xcurl2009@hotmail.com"
] | xcurl2009@hotmail.com |
bdd46fe9ef30e0c61b9a28258ff2c826f1bcd0a7 | 332d39e324f72b56b77607970812675e58742b15 | /prob6-min-max-unsorted-array.py | fcb87f60c4f95f58502e7b4299ae2a6589121376 | [] | no_license | sean-stanley/Data-Structures-and-Algorithms--project-2 | 789d01c5156a85c17f2c803f1288a8d045705d2b | 94cbe2642277cdf0d438f6f1ea61c28084cc388d | refs/heads/master | 2020-07-08T16:16:33.881502 | 2019-08-22T05:36:41 | 2019-08-22T05:36:41 | 203,721,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,424 | py | import math
import random
def get_min_max(ints):
"""
Return a tuple(min, max) out of list of unsorted integers.
Args:
ints(list): list of integers containing one or more integers
"""
curr_min = math.inf
curr_max = -math.inf
for num in ints:
if int(num) > curr_max:
... | [
"sean@redheadweb.nz"
] | sean@redheadweb.nz |
a65adf6823bcb9b87df180963c80b6a02c76c94f | 04842b58ea1b42a45b343e319e0b362f6e9fea58 | /beta/email_invite.py | b09166c8481387918060814951e16932a5b40f5f | [
"Artistic-2.0"
] | permissive | sanketnawle/alpha | b8a7af06d162523faf294cf732ff455bb9ba3064 | fd6c702b58685b67f35a4e772d1287fb49749696 | refs/heads/master | 2021-01-22T06:18:47.005611 | 2015-04-14T05:31:04 | 2015-04-14T05:31:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | #!/usr/bin/env python
try:
import xlrd
except ImportError:
print "Error importing"
import string
import re
import json
import sys
import os
arguments = sys.argv
file_name = arguments[1]
emails = []
errors = []
wb = xlrd.open_workbook(file_name)
for sheet in wb.sheets():
number_of_columns = sheet.ncols
... | [
"K@dhcp-10-4-143-39.wireless.rochester.edu"
] | K@dhcp-10-4-143-39.wireless.rochester.edu |
a215d60f2ee732a42e6179f1c3093a74ca35917b | 76d6f79f3b1a2d604ef05b39ac22ef1402ce95ed | /postional_keyword_kwargs.py | 8bebda4495396928708108c0ca3fdd9f1757c004 | [] | no_license | anunay-kumar/python-datastructure | 55616976776b7d0818af7d679a1ca67a4b1562ad | a8056fca5dd1bc05e9f2904b7ecbb9a9914e1539 | refs/heads/main | 2023-06-25T12:08:41.124572 | 2021-07-20T13:50:34 | 2021-07-20T13:50:34 | 362,399,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 641 | py | #!/usr/bin/python
#using postional and dynamic keywords arguments
def format_customer(first_name,last_name,**kwargs):
strLocation = ""
for key, value in kwargs.items():
if key == "location":
strLocation = "(" + value + ")"
print(kwargs['location'])
print(type(kwargs... | [
"noreply@github.com"
] | anunay-kumar.noreply@github.com |
8c42d6d5f5f8e007d9bf9e0ade965a3b28f5cc26 | c7faf6b2e3d4511c3635589ed0bbd3647cb6425b | /test.py | bc5078eb105cc2df3fd147c214c122222be09323 | [] | no_license | nnaliu/PennApps2015 | 2f183c536f7ac95d50125dc82caa3348325bacad | 594c032384be6766fe54fbdf51265361e794c391 | refs/heads/master | 2021-01-21T11:08:32.342303 | 2015-09-05T22:23:58 | 2015-09-05T22:23:58 | 41,969,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,290 | py | import urllib2
from zipfile import ZipFile
from StringIO import StringIO
import json
import csv
from pymongo import MongoClient, GEO2D
client = MongoClient()
db = client.crimes
philly_crimes = db.philly
philly_crimes.ensure_index([('loc', GEO2D)])
url = urllib2.urlopen("http://gis.phila.gov/gisdata/police_inct.zip")... | [
"annaliu@college.harvard.edu"
] | annaliu@college.harvard.edu |
2941126397a260246fd63bc18c58f7812cab2e59 | 330802c408d66e1c6e37dd7087f2f949570438ff | /Python/easy/762.py | 4e6a6820f71fc86b1e8c568d33872abc168f8494 | [] | no_license | HeyZOJian/leetcode | ea93da6c4f6cbd6bfb60b9f0a0c4cb21a5907687 | 5cae29c4825c122b1fdec9ead32939a20bf3129d | refs/heads/master | 2021-05-05T07:10:50.104077 | 2018-10-05T01:44:13 | 2018-10-05T01:44:13 | 118,855,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,112 | py | """
762. Prime Number of Set Bits in Binary Representation
Given two integers L and R,
find the count of numbers in the range [L, R] (inclusive) having a prime number of set bits in their binary representation.
(Recall that the number of set bits an integer has is the number of 1s present when written in binary.
For e... | [
"hellozojian@gmail.com"
] | hellozojian@gmail.com |
1c4cf0013c46249d218e7490a27b50072971f949 | 9ddfd30620c39fb73ac57e79eae0a001c45db45f | /addons/product_quotation_tracking/models/product_template.py | 064724ad58d38da8ad5a7bb62235b8a2d14da913 | [] | no_license | zamzamintl/silver | a89bacc1ba6a7a59de1a92e3f7c149df0468e185 | 8628e4419c4ee77928c04c1591311707acd2465e | refs/heads/master | 2023-01-06T20:29:25.372314 | 2020-10-29T21:02:41 | 2020-10-29T21:02:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,164 | py | # -*- coding: utf-8 -*-
from odoo import models, fields, api, exceptions, _
from datetime import date, datetime, time, timedelta
from odoo.fields import Date, Datetime
from odoo.tools import float_compare
import odoo.addons.decimal_precision as dp
class ProductTemplate(models.Model):
_inherit = 'product.template'... | [
"mohamed.abdelrahman@businessborderlines.com"
] | mohamed.abdelrahman@businessborderlines.com |
6fa4ee18cbed580b920fd118075a75733be9f362 | cb798b7b41ce53ae40ffbdae153223d4f9da710a | /test.py | a865f195f2319bdc84e285d98fb9e0f26cea244c | [
"MIT"
] | permissive | sknsensor/ProjektPV | d4fd80e4cd2e504a557b0a180777b54a6964aa02 | 666703301af31bfa841067a62d70bceafc7cdc56 | refs/heads/master | 2023-09-02T23:46:10.063321 | 2021-10-08T07:55:17 | 2021-10-08T07:55:17 | 412,421,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64 | py | import datetime
day = datetime.datetime.now()
print(day) | [
"noreply@github.com"
] | sknsensor.noreply@github.com |
feed65fa40a4abf2962765310952122a4f84745f | 16f44549df680ffc6511066d9fd17fbca7cc2b73 | /appnomi/apps.py | 013825213347d1d1cf27265c57353f1a313517c8 | [] | no_license | ShahzodAhadov/BlogProject | f483c29a16746e4516a97f37a59ca98147e6fe7d | 501e3cc76e10a66c9582b592cfed9e1d0c90a78e | refs/heads/master | 2023-07-12T06:55:54.563040 | 2021-08-14T13:45:46 | 2021-08-14T13:45:46 | 395,113,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | from django.apps import AppConfig
class AppnomiConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'appnomi'
| [
"88456020+ShahzodAhadov@users.noreply.github.com"
] | 88456020+ShahzodAhadov@users.noreply.github.com |
a8ed538a69a20d50846b39626eeafcdfd0aa7369 | d513604d844b116020bd7e0a2b6d5ca5337836ef | /Package1/Module1/__init__.py | 3313db9ea5869b18d5dfa2ae6e954f7024d16496 | [] | no_license | sbenkler/osparc-lab-ci-travis-trial | cf1110bdefa469ab1b717bb2d98e3f2d7fd96f38 | f75682322c70f989228434cb8d45ac7f735fec4b | refs/heads/master | 2021-08-23T21:16:55.739360 | 2017-12-06T14:41:51 | 2017-12-06T14:41:51 | 113,040,117 | 0 | 0 | null | 2017-12-04T12:33:34 | 2017-12-04T12:33:34 | null | UTF-8 | Python | false | false | 28 | py | ''' Documents this file '''
| [
"benkler@zurichmedtech.com"
] | benkler@zurichmedtech.com |
2136a658ded5696c4d73ee134946c16f6b5d2f4c | f5b578d57dcd097c7396aaf43c79ab1f47434291 | /6.py | e65f5f8155612f1cc0d659aa8f61af05854f3512 | [] | no_license | v-piatakova/python | d357bae1166aceed7d79691a59614055c3557500 | 5504d0b3d61a9b904163d8e988f0623e75d7307d | refs/heads/master | 2021-12-06T23:19:03.576740 | 2021-11-12T18:51:45 | 2021-11-12T18:51:45 | 199,714,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | string = input("Enter some string")
def get_shortest_word(string):
split_str = string.split(" ")
print(split_str)
your_string = min(split_str, key=len)
print(your_string)
get_shortest_word(string)
| [
"noreply@github.com"
] | v-piatakova.noreply@github.com |
975fea9c39c6f2c440038597d0c37bb3c74458ed | b1bd2f6c34539a90fbe114bbe88ded74ddffc488 | /learning/GUI/chapter2/entry1.py | f5947011c3751f8fce33a3281c6d91a43fb78916 | [] | no_license | Calvin-WangA/learning | e6a6bfab6ec685f96799f22dbdbde64b6be3454b | f4e5599be0451eae4ac51270d03b0b9d1dd073db | refs/heads/master | 2021-01-13T13:21:05.179958 | 2016-04-19T02:40:40 | 2016-04-19T02:40:40 | 52,593,144 | 0 | 0 | null | 2016-03-15T13:37:24 | 2016-02-26T09:21:53 | Python | UTF-8 | Python | false | false | 442 | py | '''
Created on 2016年3月4日
@author: CasparWang
'''
from tkinter import *
from quitter import Quitter
def fetch():
print('Input => "%s"' %ent.get())
root = Tk()
ent = Entry(root)
ent.insert(0,'Type words here')
ent.pack(side=TOP,fill=X)
ent.focus()
ent.bind('<Return>',(lambda event: fetch()))
... | [
"18971674156@163.com"
] | 18971674156@163.com |
6c4251722cd0f359b551bc245748f24cc8818cdf | 1ed48f51e859618b63ab6d14a82f94aa512c7ba1 | /irc bot with sql intergration.py | e75a8a118e7e1b8f83ab1d059cbcd3a07128508b | [] | no_license | Panda911/vindra | 6866c0fbd7ab7133672ccccfe0003e9ae1470f3c | 95d1170d848752c335a9c89141332d71654671fe | refs/heads/master | 2021-01-10T16:03:08.031837 | 2016-03-17T12:26:38 | 2016-03-17T12:26:38 | 54,115,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,206 | py | import socket, MySQLdb
from time import strftime
def contains(str, test):
for c in range(len(str)-len(test)+1):
if test == str[c:c+len(test)]:
return True
return False
def debug(message):
if debug:
print message
debug = True
network = 'chat.freenode.net'
port = 6667
irc = sock... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
b6cddc9bc45ab2cf0a234d1a3ec9f3f72a12841b | 8ea7f954fd3316aa36803e85b19572c39d0f5d49 | /lostark_fishing.py | 78ab83887d14c371063b24f34978deb599857f50 | [] | no_license | hyeokju1313/LostArkFishingMacro | 5d00bc6302e516f35f215b67d5ddd985a724532b | 34bc751d8bf247272fb0159862fde1df38b2a356 | refs/heads/main | 2023-04-14T15:45:23.028151 | 2021-04-26T11:26:47 | 2021-04-26T11:26:47 | 361,723,880 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,286 | py | import fishing_image as fi
import fishing_place as fp
import pyautogui as pa
import random
import time
from init_config import *
# - 이미지 이름을 입력 받아 이미지가 존재하게 될경우 입력 받은 Key 이벤트 발생 -
def findImgAndPressKey(imgName, key, startPos, cnt=60, confidence=.8, wait=0.1):
posBtn = fi.findImageUntil(imgName, startPo... | [
"noreply@github.com"
] | hyeokju1313.noreply@github.com |
6fa5daef7a5999fbaf0e98abc0fd6ca6b28c067e | 79ea92ddeae7aa912a57ee1b8262daf30f6b8a59 | /test.py | ef45751f51e5322c9bd4a7b50794f00fe4983019 | [] | no_license | gn3112/roboenv_pybullet | 25a5d5f066f8cbd60fb434548750961a2b295016 | da18bff3b69e5aaee886932ef05176d1aeb4b87e | refs/heads/master | 2021-04-08T12:03:21.065414 | 2020-07-18T14:48:33 | 2020-07-18T14:48:33 | 248,774,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,071 | py |
import pybullet_data
import pybullet as p
import time
import math
from datetime import datetime
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
def reset():
for i in range(numJoints):
p.resetJointState(kukaId, i, rp[i])
def add_object():
test_visual = p.crea... | [
"georgesnomicos@gmail.com"
] | georgesnomicos@gmail.com |
16dd9d855bb41709fb9316c23fa04e01066c48a3 | 85120b4f57a5c930d9d229a2368f6db151bd4610 | /support/monitor.py | 1fd0a183e6e498987c249cca1515d3eee7e9d685 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | egpbos/amuse | 1f0501d636b5029b22ac01bbad85cfa94ab8b244 | 64b3bc5b7fef9496012b023578c4d71cecef92b7 | refs/heads/master | 2020-03-21T12:35:51.671246 | 2018-06-27T12:10:28 | 2018-06-27T12:10:28 | 138,561,660 | 0 | 0 | Apache-2.0 | 2018-06-25T07:55:19 | 2018-06-25T07:55:18 | null | UTF-8 | Python | false | false | 4,976 | py | import time
import urlparse
import threading
import traceback
import json
import nose
import sys
import linecache
import inspect
import os.path
import BaseHTTPServer
import SocketServer
import Queue as queue
from mpi4py import MPI
from nose.plugins.capture import Capture
from nose.plugins.skip import Skip, SkipTest
fr... | [
"vanelteren@6e832d89-e7d1-4ad1-8ca1-873beecccf65"
] | vanelteren@6e832d89-e7d1-4ad1-8ca1-873beecccf65 |
a2e5f01eb71ec11ddd0fcbda3516cb82caec5dcb | 8a932874900d869626a05aa49d2ecbe6394b70e3 | /RelatedMethods/Pasquadibisceglie/adapter.py | 1618dae83d9dbc0edd9f8fccfa2288a1adb7c4a6 | [] | no_license | guptam/edbn | 253918f38c3651fa459ab795946d3656240232ba | e54a6678582a620c12848185c56251d1209631f7 | refs/heads/master | 2022-11-29T11:55:02.548888 | 2020-08-05T10:02:12 | 2020-08-05T10:02:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,799 | py | from datetime import datetime
import pandas as pd
import numpy as np
import multiprocessing as mp
from functools import partial
from Utils.LogFile import LogFile
seed = 123
np.random.seed(seed)
def get_label(act):
i = 0
list_label = []
while i < len(act):
j = 0
while j < (len(act.iat[i... | [
"stephen.pauwels@uantwerpen.be"
] | stephen.pauwels@uantwerpen.be |
1ae7841129119b7eeb89b92cf92f35798bdce555 | 41647db5c90e05b523f51fecfa4e2cb1b3913775 | /xin.py | 3f7cb6d52710e622d3734bba8e16ee68bef59be6 | [] | no_license | jin6818236/shiyanlou-code | 67baa2d7a33023ed1550ca88ba2ae28f5dce97fc | 986cbdc6479d14ef6592f5e9d228fa6ae9601d1c | refs/heads/master | 2022-07-13T10:54:47.734503 | 2020-05-16T14:38:21 | 2020-05-16T14:38:21 | 259,810,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26 | py | print('书名:疯魔')
| [
"429405313@qq.com"
] | 429405313@qq.com |
80577f2a674ed5988bf3a9c97803830f4a433fd2 | b5c2a98fbd274a0aff49ca70d6fc3e4b26f4e1c5 | /requests_tests/test_suite_29.py | 1d163ef61c4ffac5ac4aa7b8fc5e34beb044639f | [] | no_license | hughe1/SoftwareTestingResearch | 3120dc857bcfc7acdbea1ef0fd071b3eb878cc81 | 66d69e7f8791a7b03be95a2d387c7ab452d9a209 | refs/heads/master | 2021-07-19T02:56:00.279534 | 2017-10-22T12:25:51 | 2017-10-22T12:25:51 | 108,536,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,974 | py | # -*- coding: utf-8 -*-
"""Tests for Requests."""
from __future__ import division
import json
import os
import pickle
import collections
import contextlib
import warnings
import io
import requests
import pytest
from requests.adapters import HTTPAdapter
from requests.auth import HTTPDigestAuth, _basic_auth_str
from r... | [
"mperrott6@gmail.com"
] | mperrott6@gmail.com |
d086ad14264a8733e57a34e1b791e87cceb94aea | 77653811587e0d9285380ae866952b3fcf09ae80 | /dj4e-samples/views/home/views.py | 5b39313b99df54f67ed3604356cbc6bfc4b1ded2 | [
"MIT",
"CC-BY-3.0"
] | permissive | natc23/SI_364_Local | 477c82a74f7ac34bcca9db33c11ea6ec1c333cd5 | e72c98bef29ee9d6cdb1b9c120152ffc007293d2 | refs/heads/master | 2020-04-24T00:37:57.639011 | 2019-04-12T01:17:48 | 2019-04-12T01:17:48 | 171,571,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,293 | py | from django.http import HttpResponse
from django.http import HttpResponseRedirect
from django.utils.html import escape
from django.views import View
# Create your views here.
def funky(request):
response = """<html><body><p>This is the funky function sample</p>
<p>This sample code is available at
<a href=... | [
"nataliecieslak@yahoo.com"
] | nataliecieslak@yahoo.com |
652ef4afeaa7ab67f8b77fac953668d2568a8017 | 43c46e3ec632fd30d6705370b81fc7f94b8f0020 | /main.py | 0899c3ff1f7ebe8478ce752d0346d89fe553a33e | [] | no_license | DavidJoanes/KIVY-GAMES | c401856e8a098270f401b2e98c07ced6b07ff421 | 045e1da375df9fd1094cb3feb809fed6a0c33dfc | refs/heads/master | 2023-06-21T23:32:34.613921 | 2021-07-16T21:04:03 | 2021-07-16T21:04:03 | 379,648,497 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,874 | py | from kivy import platform
from kivy.config import Config
from kivy.core.audio import SoundLoader
Config.set('graphics', 'width', '900')
Config.set('graphics', 'height', '400')
from kivymd.app import MDApp
from kivy.uix.relativelayout import RelativeLayout
import random, highscoreDatabase
from kivy.lang import Builder... | [
"DavidJoanes@users.noreply.github.com"
] | DavidJoanes@users.noreply.github.com |
aad1f4c9e8e6f67d4f567d20487589670cb03012 | f9b76428cd81aeda45b879a3f496139199b92839 | /productosObj.py | 9aca9ede17e6905845c325309032aa75eb3eaf7c | [] | no_license | melanieepena/PruebaHeroku | 3b104a1669935ad8bbb36cbe0574ad23d6ddf39f | 8919eaadb05d486e3e7374b2ab9389d3621c79cb | refs/heads/master | 2022-12-10T16:28:02.338168 | 2020-08-24T00:20:44 | 2020-08-24T00:20:44 | 288,928,821 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 729 | py | class productosObj:
def __init__(self, id, name, picture, desc, costo, precio, patente, id_emp):
self.id = id
self.name = name
self.picture = picture
self.desc = desc
self.costo = costo
self.precio = precio
self.patente = patente
self.id_emp = id_emp
... | [
"meelpg8@gmail.com"
] | meelpg8@gmail.com |
acd3097659c130224500a4c3e8df92e6398f16c0 | 3fb6a7931344bf8bb32fd844c91246f386f16763 | /webscrape.py | 0cdb15a8ca29552192cf8d61e46965d399ddb8e5 | [] | no_license | Brat-Pit/allegro | 96f69d591776d11de791f63d700c7cc113086e08 | 1f87b242c775be4d55a6ebb0bad8120f99af7163 | refs/heads/master | 2021-01-05T14:48:31.697752 | 2020-02-26T08:54:36 | 2020-02-26T08:54:36 | 241,054,400 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,665 | py | # -*- coding: utf-8 -*-
from selenium import webdriver
import random
import time
state="nowe" #new products only
offer_type="kup teraz" #buy now format only
max_number_subpages=3
def pause():
paus = random.randint(9500,11073)
time.sleep(paus/1000)
# create a new Firefox session
driver = webdriver.Firefox()
d... | [
"noreply@github.com"
] | Brat-Pit.noreply@github.com |
f76bfd3907c9b45e0c1e3ac4c3b1d3e439abc05a | 7b6fce880a3c4ca45c6889273bff7e4f59efebbb | /kaolin/models/GraphResNet.py | e85eb73b7882e71920b33efcb51a81dd15c084ad | [
"Apache-2.0"
] | permissive | Jean-Francois-Lafleche/kaolin | f4c7d023d74af54b04852b6026e55ddd5d7ea198 | a8055112566d43ca5d3b4d44041ea2303b314a1a | refs/heads/master | 2023-01-11T01:23:40.934370 | 2019-12-02T22:05:08 | 2019-12-02T22:05:08 | 222,455,742 | 2 | 1 | NOASSERTION | 2020-01-10T21:47:15 | 2019-11-18T13:28:36 | C++ | UTF-8 | Python | false | false | 2,926 | py | # Copyright (c) 2019, NVIDIA CORPORATION. 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 applic... | [
"krrish94@gmail.com"
] | krrish94@gmail.com |
f13d147263b867639723411587d960b2c9b032ac | 242c84cdee8a0f5c5b0e9eb5cdab5078e2feb357 | /code.py | d009687a6e8fdc82e48ea8d2cbb5c757295e9a8b | [] | no_license | MohanSharmav/zekelabslabs-assignment | bffb22286701d597afb67433c68852310f006a14 | e1a2fd21831f24f698a4e2c24a32cde4f921aca9 | refs/heads/master | 2020-12-04T22:34:10.847187 | 2020-01-05T13:50:40 | 2020-01-05T13:50:40 | 231,923,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,787 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Jan 5 07:00:43 2020
@author: mohan
class retired:
# defining the class
names=input(sting())
couple=input(boolean())
def allocatefund(self,fund):
#defining funtion alocate funds
self.fund=fund
def fu... | [
"noreply@github.com"
] | MohanSharmav.noreply@github.com |
93a2fb3e1ff02e04dc8e1206b435a3c6a66fb056 | 03f40e1e96f78240904ee90ae3257611e0d2b981 | /venv/lib/python3.8/site-packages/pip-19.0.3-py3.8.egg/pip/_internal/cli/base_command.py | 1b91389b9892aac2e52a005332052a4381b00593 | [] | no_license | otr0624/StoreApp | bd584a37af668a4055969cdf03fa2e688f51e395 | 76ae4040ccfe1f415c8c2acf88550690cb537290 | refs/heads/master | 2022-04-22T19:35:03.231742 | 2020-04-14T23:43:19 | 2020-04-14T23:43:19 | 255,651,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,501 | py | """Base Command class, and related routines"""
from __future__ import absolute_import, print_function
import logging
import logging.config
import optparse
import os
import platform
import sys
import traceback
from pip._internal.cli import cmdoptions
from pip._internal.cli.parser import (
ConfigOptionParser,
U... | [
"otr0624@mail.com"
] | otr0624@mail.com |
a6c842eed1101af2549ccae3147b4114cab2c774 | be00087163598b7876c88327f6b01a8082aaa29d | /proxypool/scheduler.py | c59e6aef975602799faf7770f47031a478f59de5 | [
"Apache-2.0"
] | permissive | saury2013/ProxyPoolManager | 67b61a24c22a00b3606f080f4f3e385074e54b0c | 8ad9b6b35b03e02bc748e11db262c9ea94a65fbe | refs/heads/master | 2022-12-16T06:59:14.875425 | 2018-04-27T15:53:03 | 2018-04-27T15:53:03 | 131,309,102 | 1 | 0 | Apache-2.0 | 2022-12-08T02:11:04 | 2018-04-27T14:45:47 | Python | UTF-8 | Python | false | false | 1,229 | py | # -*- coding: utf-8 -*-
__author__ = 'Allen'
import time
from multiprocessing import Process
from proxypool.server import app
from proxypool.importer import Importer
from proxypool.tester import Tester
from proxypool.conf import *
class Scheduler():
def schedule_tester(self,cycle=TESTER_CYCLE):
tester = T... | [
"saury2011@sina.com"
] | saury2011@sina.com |
ffc341374c3963e03ae196c04ffb63f090bf256d | fb05e7987622c8e9e49abaaef8b7681d07fe2013 | /PCCFP/urls.py | 78092f4f250c2f72135e1040ccb49c23f4d2137a | [] | no_license | Wayne122/PCCFP | d012aaa62bb515fcc28d11f557a9ee1c2f2103f7 | 7babde9bd971b4d60b8bbc9096cbd65473715be2 | refs/heads/master | 2021-09-02T11:15:02.804602 | 2018-01-02T07:44:30 | 2018-01-02T07:44:30 | 115,988,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,777 | py | """PCCFP URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.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... | [
"noreply@github.com"
] | Wayne122.noreply@github.com |
677ab1c8a55d31eb4cb350562b92d815d5ce7264 | b155e9d8951f7b3437b21994dfa81eac740ab940 | /appPy/generation_module.py | f1ae6e89debd9f6dd55c42720dd56a11b46b9109 | [] | no_license | pichayak/sentiment-style-transfer | 610d8e31e27ae9c92a17a5f3d8353ee3ea8de577 | 4a4f89a41913c5e2e5975efe2b0f174cc21c5806 | refs/heads/main | 2023-04-29T21:46:26.041077 | 2021-05-25T15:34:26 | 2021-05-25T15:34:26 | 362,867,529 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,599 | py | # -*- coding: utf-8 -*-
# !pip install -q transformers==4.1.1 sentencepiece
# !pip install -q pytorch-lightning
import argparse
import csv
import os
import shutil
import ast
import pandas as pd
import re
import numpy as np
import torch
from torch.utils.data import Dataset, DataLoader
from pytorch_lightning import Lig... | [
"i.love.u.baby2353@gmail.com"
] | i.love.u.baby2353@gmail.com |
f9f228e3279fac5da75e69c3e095ec6c6b668324 | 83c26e4b6e4a3b028cf0c44ad03da72ce8e23fef | /mblog/urls.py | 4f43436905ebb5411c919fe1e43dc6dc7567c003 | [
"Apache-2.0"
] | permissive | sharpcj/MyDjangoBlog | d5d98962a1c8a874ef13fdac27874c2e855b237e | 07b434b73dbadc02b751e2a847cf083da8634190 | refs/heads/master | 2021-01-23T10:08:35.190672 | 2017-09-08T15:02:53 | 2017-09-08T15:02:53 | 102,609,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 869 | py | """mblog URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/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... | [
"li_joy99@163.com"
] | li_joy99@163.com |
821d4ee6e80527f333708910e8298d43b33f94c0 | 1bfe5e92f10d1c6b8fe8f7d4064fcd9b0613fbee | /23-03-2017/ejercicio-bucle-informes.py | 4968bb84b90f336c467ad61196cfafefa5cc4868 | [] | no_license | ism46999937/M03 | 1c3b7e0aedd9202ef7c1d4c335bbaa1da8e1016b | 1c0fbd4588e8e90d7f9d12b9fed666f55b549b20 | refs/heads/master | 2020-02-26T15:09:32.915113 | 2019-10-29T10:56:07 | 2019-10-29T10:56:07 | 83,586,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | #!/usr/bin/python
# coding: utf-8
import time
import os
os.system ('clear')
time.sleep (2)
anyo = 2010
salir = False
while salir == False:
print ("")
anyo = input ("Teclee un año 2010 o 2016: ")
if anyo <= 2016 :
print "Informe", anyo
else:
if anyo > 2016 :
print "No hay informe para el año especificado"
... | [
"noreply@github.com"
] | ism46999937.noreply@github.com |
13318bf1791f00566d303db1a171be23285f26bc | 43c203bc5cc09eda3f418a64777b091b55383e36 | /test/log_test.py | 603ff6c1a6700ab7f8f043b15c61e6c8702354f0 | [
"Apache-2.0"
] | permissive | mpaladin/python-mtb | fc615a8b6f35d4f21866e28f725a8ec4c0f6f33d | 840f1a37da05efbbb9f6a46e3c9eba43bfe5c3fb | refs/heads/master | 2020-04-26T11:42:22.266378 | 2013-04-25T07:26:42 | 2013-04-25T07:26:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,533 | py | """
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 writing, software
distributed under the License ... | [
"massimo.paladin@gmail.com"
] | massimo.paladin@gmail.com |
ccb882729d998d9bdbd004437f7c994f0bd18d99 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_carapaces.py | aad4bf46fdd13e735a62e205495271cc39b6a7e0 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py |
from xai.brain.wordbase.nouns._carapace import _CARAPACE
#calss header
class _CARAPACES(_CARAPACE, ):
def __init__(self,):
_CARAPACE.__init__(self)
self.name = "CARAPACES"
self.specie = 'nouns'
self.basic = "carapace"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
dbcb8bc5dd9ddbaa524afa2cdafe4606a9a7a19c | 901f0b1d571959f5ee1c777ce61d1a1c9785454d | /winpwnage/functions/execute/exec_pcalua.py | 0228940f634376d7302ba736e852c539aa2be1dd | [] | no_license | 0x556c7472614861636b6572/WinPwnage | 2236847153e2b43968e3c43e3f1fbf9e4b762a1c | 81d89c75a9718944071ca64390ee16bc33e1c958 | refs/heads/master | 2020-05-23T08:54:52.447104 | 2019-05-15T00:34:22 | 2019-05-15T00:34:22 | 186,697,927 | 1 | 0 | null | 2019-05-14T20:46:38 | 2019-05-14T20:46:38 | null | UTF-8 | Python | false | false | 1,659 | py | import os
import random
from winpwnage.core.prints import *
from winpwnage.core.utils import *
#https://lolbas-project.github.io/lolbas/Binaries/Pcalua
pcalua_info = {
"Description": "Executes payload using the Program Compatibility Assistant",
"Id": "2",
"Type": "Execution",
"Fixed In": "99999",
"Wo... | [
"noreply@github.com"
] | 0x556c7472614861636b6572.noreply@github.com |
e566a3c7c5a3d65eebf04460db5857973c435e42 | 0d1c4ec8784f51be781772dca19278efaf3eb2b4 | /config.py | a9851244be12c076e1389f5b77813a3f80e17c71 | [
"MIT"
] | permissive | borko81/flask_with_orm | 0ddaa663454eadfb15acb8cc52cdb4b41063b1b5 | 72d677419fc859acf4a56850a9d96b4b33127956 | refs/heads/main | 2023-08-16T13:27:36.509612 | 2021-09-27T12:42:12 | 2021-09-27T12:42:12 | 408,812,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Config(object):
SECRET_KEY = os.environ.get('SECRET_KEY') or 'you-will-never-guest'
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or 'sqlite:///' + os.path.join(basedir, 'app.db')
SQLALCHEMY_TRACK_MODIFICATIONS = False
| [
"bstoilov81@gmail.com"
] | bstoilov81@gmail.com |
fbc658b8bd1b68d8329f5058d093752c0b3149eb | 20bbd17aec6ffe08d36e5e98c841585c40b3c3e8 | /.history/main_server_20180718180933.py | 2f584b591dd8b06903ee6ffd5f4b71cee075f23b | [] | no_license | NickCongyuLiu/minieye-cpu-master | e29c699fe1cd65ea0b6081c2fb8b51b864ea8b27 | a0b4a6d5bd2df976b825fe6565bb62d1f74c665b | refs/heads/master | 2020-03-23T21:18:54.998888 | 2018-08-10T09:58:32 | 2018-08-10T09:58:32 | 142,097,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,589 | py | #coding=utf-8
import tornado.web
import tornado.ioloop
import tornado.httpserver
import tornado.options
import os
import datetime
import time
import json
from tornado.web import RequestHandler
from tornado.options import define, options
from tornado.websocket import WebSocketHandler
define("port", default=1213, ty... | [
"Liucongyu1993@yahoo.com"
] | Liucongyu1993@yahoo.com |
41929e1c80c40f72ea1272f059348c5d40882d5b | faa1a9f8bfa60c6f3c1543ddf5c01ea8d6ec5898 | /BalsnCTF-2019/reverse/vim/solve.py | 152bb17d4a19d61ca5a51bb5db34279ca7fe63c5 | [] | no_license | LJP-TW/CTF | afe0873029072da256b591c96a0b2a97df6644b2 | f9c30cf270130120bfe4ddf957299fb60ddf8c27 | refs/heads/master | 2023-05-27T17:08:56.579815 | 2023-05-22T10:33:42 | 2023-05-22T10:33:42 | 123,657,738 | 30 | 5 | null | 2023-05-22T10:32:56 | 2018-03-03T04:08:05 | Smali | UTF-8 | Python | false | false | 3,313 | py |
# coding: utf-8
# In[6]:
from sympy import Matrix, pprint
import codecs
from collections import defaultdict
import numpy as np
def func1(lst, lng):
def toBlock(blk):
ret = []
for i in range(4):
for j in range(4):
ret.append(blk[i + j * 4])
return ret
... | [
"accr94238@gmail.com"
] | accr94238@gmail.com |
39459b8873611c5c979305418444f396736eae9c | 7d3a2fbc85f0d9a9f80bfda0b0fa72bbaae42e67 | /replace.py | cc857cce6259da367b906501a2dfe0eb7bd52531 | [] | no_license | saif21/Blockchain-e-voting | b7e88d7bb924c823b22559507858fb46399f2cd4 | c7da0064033afb47a572c830d3f7a43dc0a3c0a6 | refs/heads/main | 2023-06-09T19:37:04.360329 | 2021-07-01T17:18:02 | 2021-07-01T17:18:02 | 381,299,737 | 0 | 0 | null | 2021-06-29T09:36:47 | 2021-06-29T08:51:58 | Python | UTF-8 | Python | false | false | 5,408 | py | from sql import ReplaceData, VoteDatabase
import json
from database import db, cursor, db1, cursor1, db2, cursor2, db3, cursor3, db4, cursor4, db5, cursor5
# longest_chain = chain
# smaller_chain = self.get_chain()
replaceBlock = ReplaceData()
class Replace():
def __init__(self):
self.orphan_b... | [
"noreply@github.com"
] | saif21.noreply@github.com |
2153ab647e3fd3822a2c8871f0a832841d873c3c | 2d2ba03f4c4bbe1ec93d997d23b162f753462181 | /helios_lib/crypto/utils.py | c58aa896c821dd268f1d3f309d0341c431bb52a7 | [
"MIT"
] | permissive | omidraha/helios_lib | 1192f3926f409e9d0d047c8008c116331b07159f | 0f62824a4b2d4dbe6a9b5decffd59cf7d5b299df | refs/heads/master | 2020-04-02T09:26:02.151320 | 2018-11-12T10:07:32 | 2018-11-12T10:07:32 | 154,292,657 | 0 | 0 | MIT | 2018-10-23T08:37:40 | 2018-10-23T08:37:39 | null | UTF-8 | Python | false | false | 590 | py | """
Crypto Utils
"""
import base64
import json
from hashlib import sha256
from helios_lib.exceptions import JsonLoadParserError
def hash_b64(s):
"""
hash the string using sha1 and produce a base64 output
removes the trailing "="
"""
hasher = sha256(s)
result = base64.b64encode(hasher.digest(... | [
"or@omidraha.com"
] | or@omidraha.com |
bec123799a98b6a447f713cfda3bd0c097b107c5 | 7fd95d9a8d9a82e177264ead50b06c9b4dc7b7a4 | /blog/views.py | b2ea38000b1c5d366a6dadf764cac0e2c2dba30e | [] | no_license | NielleLopes/djangogirls | 547ab450be42cc33aa9f16e8848ca3720c1d141a | b9d9c71cf61d3c73c3768cac2f5191b288eeade8 | refs/heads/master | 2020-11-24T07:28:52.459945 | 2019-12-14T20:48:33 | 2019-12-14T20:48:33 | 228,030,126 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | from django.shortcuts import render
from django.utils import timezone
from .models import Post
# Create your views here.
def post_list(request):
Post.objects.filter(published_date__lte=timezone.now()).order_by('published_date')
return render(request, 'blog/post_list.html', {}) | [
"voce@exemplo.com"
] | voce@exemplo.com |
826a2431497d442f827dfbae44156952aa5d84a8 | c773734730cbb434080cef954e949fc69f9a9852 | /daemon.py | b8cfac880adc75f070e34bd3d66416c1dc11df77 | [] | no_license | zjr/GitHookDaemon | de19e1605cf6735ffd21bb904b97bf0a0ecd58eb | 00524beac612c3d115e31c3061d5c4fc22294a76 | refs/heads/master | 2020-06-02T22:43:20.279887 | 2013-03-12T23:40:26 | 2013-03-12T23:40:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,784 | py | #!/usr/bin/env python2.7
import sys
import os
import time
import atexit
from signal import SIGTERM
class Daemon:
"""
A generic daemon class.
Usage: subclass the Daemon class and override the run() method
"""
def __init__(
self,
pidfile,
stdin='/dev/null',
stdout='/... | [
"me@zjr.io"
] | me@zjr.io |
1f53791c6367f2212e2ada3d469cfcabe175a760 | b9ae6375b98ffae9b2d38fd7e34453ca1946fb9e | /epsilon/views.py | 4d265106990f88e33c782d89148dc4b73978a552 | [
"MIT"
] | permissive | atlednolispe/blog | 93f4f68922f640dab5a954b7c3218d532e012ee6 | d3926e424d544f3e9a3805b16a15072ac6c6a780 | refs/heads/master | 2022-12-13T23:16:29.145704 | 2018-02-28T08:37:43 | 2018-02-28T08:37:43 | 120,314,098 | 0 | 0 | MIT | 2022-11-22T02:13:02 | 2018-02-05T14:16:48 | CSS | UTF-8 | Python | false | false | 2,393 | py | # import logging
from django.core.cache import cache
from django.views.generic import ListView, DetailView, TemplateView
from blog.views import CommonMixin
# from blog.test_util import time_it
from comment.views import CommentShowMixin
from .models import Post, Tag
# logger = logging.getLogger(__name__)
class Ba... | [
"atlednolispe@gmail.com"
] | atlednolispe@gmail.com |
ba430f34c33e6f2def7f7405d3d6c58f5ee06de5 | 7e6e3b4929ecae9c010478149670f28d9e6beb29 | /pygmm/abrahamson_silva_kamai_2014.py | eb5b12d44aa1ea7a3096abe1e2594e2fe3cea493 | [
"MIT",
"ISC"
] | permissive | nassermarafi/pygmm | 8312740bd6f37c7f837dc18723e52f16d417e229 | b97c1cbe85522bc7e546c99ec99ed902163cb000 | refs/heads/master | 2021-01-13T08:57:13.669149 | 2016-03-29T05:48:36 | 2016-03-29T05:48:36 | 54,947,879 | 0 | 2 | null | 2016-03-29T05:18:39 | 2016-03-29T05:18:39 | null | UTF-8 | Python | false | false | 14,143 | py | #!/usr/bin/env python
# encoding: utf-8
from __future__ import division
import numpy as np
from scipy.interpolate import interp1d
from . import model
__author__ = 'Albert Kottke'
class AbrahamsonSilvaKamai2014(model.Model):
"""Abrahamson, Silva, and Kamai (2014, :cite:`abrahamson14`) model.
This model wa... | [
"albert.kottke@gmail.com"
] | albert.kottke@gmail.com |
2d3f92f71fc31f4d7c139c4fdc29e656d9688f0e | 8fcc27160f8700be46296568260fa0017a0b3004 | /client/poser.py | cd36493534803bad45f413ccf12f09d8e1e82ef2 | [] | no_license | connoryang/dec-eve-serenity | 5d867f4eedfa896a4ef60f92556356cafd632c96 | b670aec7c8b4514fc47cd52e186d7ccf3aabb69e | refs/heads/master | 2021-01-22T06:33:16.303760 | 2016-03-16T15:15:32 | 2016-03-16T15:15:32 | 56,389,750 | 1 | 0 | null | 2016-04-16T15:05:24 | 2016-04-16T15:05:24 | null | UTF-8 | Python | false | false | 242 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\eve\common\modules\nice\client\_nastyspace\poser.py
from eve.devtools.script.svc_poser import Starbase
from eve.devtools.script.svc_poser import Structure
| [
"masaho.shiro@gmail.com"
] | masaho.shiro@gmail.com |
8d3242c598f713960953ae179e75d5bd44a35ab9 | fbe58422d18bd94e1c2321eb30aa494c876d2ff6 | /GLOP_first_example.py | be8493a7cf9e97ce1952fdad21192264743dbe74 | [] | no_license | KKAnumalasetty/OR-tools | 3e6a5e46e53ce23fecd6ea4a77e2016d08a1977d | e80c41873ecc04c40eaaa75e4fbfc1d983db9a1e | refs/heads/master | 2021-03-22T07:37:27.000081 | 2019-10-09T06:16:30 | 2019-10-09T06:16:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,677 | py | # -*- coding: utf-8 -*-
"""
GLOP
@author: Lalith
"""
from ortools.linear_solver import pywraplp
def LinearProgrammingExample():
# Instantiate a Glop solver
solver = pywraplp.Solver('LinearProgrammingExample',
pywraplp.Solver.GLOP_LINEAR_PROGRAMMING)
# Creating 2 vari... | [
"lalithsrivatsa@users.noreply.github.com"
] | lalithsrivatsa@users.noreply.github.com |
ff6fe46dc0de7a4bf4e70750265b0268ffbf82b7 | daf1c67652d178f7d6aab787d5a7816624c3b032 | /build/catkin_generated/order_packages.py | 4259e38afe23f5a4bfe9577abfc8561a1b31d8e8 | [] | no_license | Kushagraw12/Drone-simulation | 04d2fb83f955b1127f236a9f2d9cfe92573465f9 | 37acc100f61c0d48e86678c94bc1ce1be06c9789 | refs/heads/master | 2023-01-21T10:23:35.611100 | 2020-11-30T21:20:41 | 2020-11-30T21:20:41 | 317,338,359 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | # generated from catkin/cmake/template/order_packages.context.py.in
source_root_dir = '/home/kush/Desktop/sem3/en203/src'
whitelisted_packages = ''.split(';') if '' != '' else []
blacklisted_packages = ''.split(';') if '' != '' else []
underlay_workspaces = '/home/kush/Desktop/sem3/en203/devel;/home/kush/catkin_ws/deve... | [
"wadhwakushagra01@gmail.com"
] | wadhwakushagra01@gmail.com |
9b1ffa4556961c5aa4f5cbebf9853c8c7b2711b7 | c461d817e155e3d18647108fb31129d815e04649 | /Introduction_to_Python/Numeric.py | c4f0fd407e63387660209493b77d712f35f43a6d | [] | no_license | OpentoWorld/PythonCodes | 8f84ddc965038754c4b08afb91a74c2ac762bc04 | f65e17bd7f4938c894109fa8195abe27790ef061 | refs/heads/master | 2020-08-28T10:29:33.892348 | 2020-01-23T09:09:23 | 2020-01-23T09:09:23 | 217,673,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29 | py | a=5
b=5.5
c=6+5j
print(a,b,c) | [
"noreply@github.com"
] | OpentoWorld.noreply@github.com |
c25e226899bc11fffc3b0bd3d9d99a106e4c3f48 | 52ba554bfaa5bd679035cb2858f9c90327201915 | /probe.py | 594afd3c73dcafc7af461c8ab55eaeb0fe976fca | [] | no_license | benchungiscool/pyprobe | 3ec5087b46460dd915bb8dd1aa3cec424b281558 | 39ea809f06550fb9f72e4b449567e02d3b6a4908 | refs/heads/master | 2022-11-05T07:49:52.731606 | 2020-06-19T18:40:19 | 2020-06-19T18:40:19 | 254,963,496 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,556 | py | from concurrent.futures import ThreadPoolExecutor
import time
import requests
import sys
import os
## What to do if no input is given
if len(sys.argv) == 1:
print("Please provide an input such as: probe.py domains.txt",
"For more help do probe.py -h")
exit()
## Take input from the run command
argum... | [
"benchung61@gmail.com"
] | benchung61@gmail.com |
98d7b77bd4dcb42afc88107f439946ee04d57359 | 557d51cd6c7459f3492f6e5e6a44e10b9026b805 | /osipkd/views/aset/kibf.py | 07b8c5377ec39a4afad0f7f9e9292ab5862d534a | [] | no_license | aagusti/zosipkd | e6a3bd8ca71b240dc3141c89dba252291c2c9ea7 | fbb4fcc74d772a9f1692a4e8b45cb63ce77e85f2 | refs/heads/master | 2021-01-17T10:23:14.182025 | 2016-05-04T07:34:05 | 2016-05-04T07:34:05 | 28,517,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,824 | py | import os
import uuid
from osipkd.tools import row2dict, xls_reader
from datetime import datetime
from sqlalchemy import not_, func, or_
from pyramid.view import (
view_config,
)
from pyramid.httpexceptions import (
HTTPFound,
)
import colander
from deform import (
Form,
widget,
... | [
"aa.gustiana@gmail.com"
] | aa.gustiana@gmail.com |
344d835fca51a69fbe7499ca2800afeda5c9c9cd | 871387eeab8d9a6de8d6d395b09bae83cdefe497 | /Flask/migrateDemo/migrations/versions/cdd196201d1e_.py | 556a4c713f76cf1b90f96cc78996ef941342d22f | [] | no_license | huangjichaolucky/python_PyCharm_Use | f13e3c46a7f9648c76dba864bdbde5a7ef788ce6 | f052ec385f3c748bb13dbd2103e07ffd629d8a76 | refs/heads/master | 2021-08-19T12:16:28.066253 | 2017-11-26T06:41:01 | 2017-11-26T06:41:01 | 110,697,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | """empty message
Revision ID: cdd196201d1e
Revises:
Create Date: 2017-11-23 03:40:48.542867
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'cdd196201d1e'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto gene... | [
"781178325@qq.com"
] | 781178325@qq.com |
445ee8cfc51f5929c0c2dc7ceb6ce75e61128534 | 3b81c00288f62c1c2492bc573945a5547db1644e | /Chapter 1/3_Raw String.py | a8cb6e1411734ef4abaeb5f9c9170559f2c0d667 | [] | no_license | sahil4683/python-temp | 25b00d1a3c736ac65c9d8b18cca971438a34551c | 130999a394e001f2f2edc827312089576c4c55bd | refs/heads/main | 2023-01-03T17:02:34.195146 | 2020-10-17T16:16:10 | 2020-10-17T16:16:10 | 304,918,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | print(r"Hello \n \t \b \'\"\ World") #print all text after add r within print funtion | [
"sahil4683@gmail.com"
] | sahil4683@gmail.com |
127f1bd1dcdc2933fc0764befb9de27bf1b79466 | d24ea14c01a0e6f23cf7409361cb3437c87e7d86 | /company_health/api/reports.py | 6d7b681704f2d8a560bdd057b1dc59be1744fee7 | [
"MIT"
] | permissive | Korulag/ipz | df9be513f8b50a5e148740343d18724b2c159ea3 | 1838aac749915b051ddcac85ec663acf5767def6 | refs/heads/master | 2022-09-23T12:10:53.385786 | 2020-06-05T18:00:02 | 2020-06-05T18:00:02 | 254,825,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | from company_health.api.base import BaseViewSet
from company_health.apps.reports.models import *
from company_health.apps.reports.serializers import *
__all__ = ['CompanyReportViewSet', 'PersonalReportViewSet', 'TeamReportViewSet']
class CompanyReportViewSet(BaseViewSet):
http_method_names = ['delete', 'get', 'p... | [
"kleshev12@gmail.com"
] | kleshev12@gmail.com |
8b6e08127dc4d002ee45dc81a4499e737891cf97 | 8abcca39940c4d4194dee185ce097aecbea41498 | /pyvpnscript/deletedata.py | 8fcdb198d88e7810a063c28de3c952e3a0263a02 | [] | no_license | jianqiang08/mypython | a0c996177004aa8c4606dd010ccda0d51602aaf1 | 05e8c4faba32c07078eae192992febd4f1151134 | refs/heads/master | 2021-08-22T05:58:48.632962 | 2017-11-29T12:25:40 | 2017-11-29T12:25:40 | 112,471,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | import elasticsearch
es = elasticsearch.Elasticsearch('172.16.37.40:9200')
query_string = r'{ "query": { "match_all": {} }}'
res = es.delete_by_query(index='vpn', doc_type='user_info', body=query_string)
#es.delete_by_query(index='vpn', doc_type='start_used_vpn', body=query_string)
#es.delete_by_query(index='vpn',... | [
"wangjianqiang@wangjianqiangdeMacBook-Pro.local"
] | wangjianqiang@wangjianqiangdeMacBook-Pro.local |
55e3da8c06e8129796c1baa879af437badd6dc66 | bc531b7d1819ca5b8ba9d42395ce9e4676978fe1 | /Chapter06/shutil_make_archive.py | 3b5afb43200df5f36605743570ee4cb47e8813f5 | [
"MIT"
] | permissive | PacktPublishing/Mastering-Python-Scripting-for-System-Administrators- | b72cacd9c54a3d9ec49100b2e5a49532960d58cc | d6ad3ea82ff503083176808166f727f52b187325 | refs/heads/master | 2023-01-27T19:56:06.109090 | 2023-01-18T09:00:19 | 2023-01-18T09:00:19 | 161,440,105 | 175 | 216 | MIT | 2022-10-08T19:33:46 | 2018-12-12T06:00:41 | Python | UTF-8 | Python | false | false | 243 | py | import tarfile
import shutil
import sys
shutil.make_archive(
'work', 'gztar',
root_dir='..',
base_dir='work',
)
print('\nArchive contents:')
with tarfile.open('work.tar.gz', 'r') as t_file:
for names in t_file.getnames():
print(names)
| [
"noreply@github.com"
] | PacktPublishing.noreply@github.com |
4d98551f6376e47a37a8e3b79cbdf27bfa24a014 | ced0efb0666b5817b9656cd533cf6f5db0085fe8 | /py/server/nc.py | 68467db2e7ae3bb3b99f16c505e41e525d8938ae | [] | no_license | adithyaphilip/learning | 11fb6997ab3d613a358502dfff0ae9b91cd5ee27 | 64ecd3bc622077c7256df91cdf4dfbc8adf23068 | refs/heads/master | 2021-06-01T18:04:46.733092 | 2016-09-22T18:22:46 | 2016-09-22T18:22:46 | 68,949,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | import socket
from threading import Thread
from time import sleep
port = int(input())
while True:
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
Thread(target = s.connect, args = (("localhost", port),)).start()
#s.send("hello".encode("utf-8"))
sleep(1)
print("lol")
s.close()
| [
"adithyaphilip@gmail.com"
] | adithyaphilip@gmail.com |
8ff97c12f5fc42f8f0828de216d82d8fa23977e3 | 865f08db5ebb42f13b00c467345121566bd8fa78 | /teacherview/migrations/0009_status_log_in_check.py | 87c5774fdf953854334834785bdfd249c39ffb86 | [] | no_license | eventdips/eventdips-django | e872d318e24b698e41f4622fe765f11bb9f2410e | 7c020014fb6076cf3ed84803bdefbb2fe2636155 | refs/heads/master | 2022-12-11T05:52:27.251584 | 2020-07-25T11:08:45 | 2020-07-25T11:08:45 | 232,338,576 | 0 | 1 | null | 2022-11-23T11:37:44 | 2020-01-07T14:10:55 | HTML | UTF-8 | Python | false | false | 406 | py | # Generated by Django 2.2.4 on 2019-10-19 11:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('teacherview', '0008_auto_20191018_1503'),
]
operations = [
migrations.AddField(
model_name='status',
name='log_in_ch... | [
"aayushdani1@gmail.com"
] | aayushdani1@gmail.com |
8c4dbbf88d04a891287f2d8658b3049e75620570 | fe8bc976b7a7c6cf428ce25b4ddd5507125176af | /util_transformer.py | 2e7a643ed6246fdacb5e43c2b2a07a0042b54c2e | [] | no_license | asahi417/pytorch-language-model | 0b257035e44611f65da041da1bf00f0e4511d296 | c5089ca174cb64b89e3898d42bf1508bfa91e532 | refs/heads/master | 2022-11-27T05:04:53.529252 | 2020-07-16T06:17:05 | 2020-07-16T06:17:05 | 233,868,353 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,371 | py | """ pytorch transformer decoder implementation """
import math
import torch
import torch.nn as nn
__all__ = [
"PositionalEmbedding",
"Conv1D",
"PointwiseFeedForward",
"SelfMaskedAttention",
"TransformerBlock",
"TransformerDecoder",
]
EPS = 1e-5 # numeric stability for division
EPS_LAYER_NORM... | [
"spacefunkspacefunk@gmail.com"
] | spacefunkspacefunk@gmail.com |
59a531064d975b14af155d2f190f2f7872331b7a | 05f5231a03e19b3bf72fa1caf939ea952aee36c4 | /03--experiment.py | 2552d26e9df07a803cbabfc4de8d812c63ed7516 | [
"MIT"
] | permissive | thundernixon/robofont-marx | 673f426ccafb521d94bbc7d7e5adaa92d6c6fec3 | ee8b6444c486b730f58f9b139f1143e3d04a35e6 | refs/heads/master | 2022-01-15T05:56:00.093046 | 2019-07-17T16:26:07 | 2019-07-17T16:26:07 | 195,687,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | # menuTitle : 03: Experiment - Purple
# shortCut : command+control+shift+3
"""
Mark currently-selected glyphs as "worked on,"
so it's clear they have been edited.
"""
from markLib.markGlyphs import markGlyphs
from markLib.settings import markSettings
f = CurrentFont()
markGlyphs(f, markSettings["experiment"])
| [
"stephen@thundernixon.com"
] | stephen@thundernixon.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.