blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
45c2a04f57d7ecef273f6f64a6c580e235c26178 | f72775ed28235c0f12beaac0b3462b870f06d178 | /8-0-in-operator.py | 2a675a76bb47da30e12adb638b86782924ab69a0 | [] | no_license | cheykoff/thinkpython2e | 29b975ccbbf043372cc14ac4bddf3d342b4c3524 | ed9dfe24fb2a03cfe125aa1b1b2867eb871d05e9 | refs/heads/master | 2020-07-31T16:04:25.426387 | 2019-11-16T07:08:33 | 2019-11-16T07:08:33 | 210,666,740 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | def in_both(word1, word2):
for letter in word1:
if letter in word2:
print(letter)
in_both('banana', 'anna')
| [
"mail@michael-schoelkopf.de"
] | mail@michael-schoelkopf.de |
d80010fadea778a900cc29285ed6d860ee871169 | e7590291241d8b3a949558d097c0bd3ed405e47a | /Bidwork/Bidwork/urls.py | c425942200dc86fddcd5003187dd5b825f18b6ea | [] | no_license | hooman130/team01 | 752c438f8349505605fac8d5d247fa3066929b97 | 3a62175b93a02f12b75ac0680e6fb90288b6e5ef | refs/heads/master | 2022-12-26T11:11:23.012303 | 2020-10-11T06:26:04 | 2020-10-11T06:26:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 891 | py | """Bidwork URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"Sorush.omidvar@gmail.com"
] | Sorush.omidvar@gmail.com |
facb0b14a7261fba5e6e4c140856b20c543ebd84 | 144202935037b93dc49e637a6289ee30c776dfa7 | /value.py | f6157755c7e8013be896b93febf97b2192976068 | [] | no_license | zack-norton/deckofcards | f7e491022746d4147fa93ad389bce257669823f1 | 9f07b0b12776637384fdef76808321547d198567 | refs/heads/master | 2022-12-08T05:12:09.688046 | 2020-09-01T16:36:02 | 2020-09-01T16:36:02 | 292,051,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | from enum import Enum
class Value(Enum):
TWO = 0
THREE = 1
FOUR = 2
FIVE = 3
SIX = 4
SEVEN = 5
EIGHT = 6
NINE = 7
TEN = 8
JACK = 9
QUEEN = 10
KING = 11
ACE = 12 | [
"norton.zack.w@gmail.com"
] | norton.zack.w@gmail.com |
4bc8d29a66d49cf58f2052c06433371ac5522828 | a1b7ebe24a123b61efeef314e6b4d8c4f2dc7275 | /UserInterface/phones.py | e3655f2addce23cee959c89081facbd15e1ef515 | [] | no_license | maleacristina/PythonApplications | 3c06657ab389acfe9f9905f71a5f7e88640669e8 | 82c1996de9e3822fc3a332c8bc809501d8a8c9cc | refs/heads/master | 2021-04-06T02:32:30.531084 | 2018-11-12T13:14:36 | 2018-11-12T13:14:36 | 125,254,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | phonelist = [
['Meyers, Chris', '343-4349'],
['Smith, Robert', '689-1234'],
['Jones, Janet', '483-5432'],
['Barnhart, Ralph', '683-2341'],
['Nelson, Eric', '485-2689'],
['Prefect, Ford', '987-6543'],
['Zigler, Mary', '567-8901'],
['Smith, Bob', '689-1234']
] | [
"maleacristinaecaterina@gmail.com"
] | maleacristinaecaterina@gmail.com |
4e7f9287f95f670dde7a6b932c73beb0db42f2db | 0cf34274f469957da8b0db6806892e7f9d4ccfa8 | /app/views.py | 780bc428b8e57e23a6b65929d90de87dc42daa94 | [] | no_license | CO18308/Titanic-Disaster-ML | cdd1f1858f198b3236a93db29903aaeee78670fc | c49f55b92c4b20bf21f14ded07c48770d597e21e | refs/heads/master | 2023-06-23T02:49:44.003269 | 2021-07-22T19:31:24 | 2021-07-22T19:31:24 | 388,558,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 881 | py | from django.shortcuts import render
import os
from django.http import HttpResponse
def homepage(request):
return render(request,'ML_homepage.html')
def graph1(request):
os.system(r"python F:\project\titanicML\app\graph1.py")
return render(request,"ML_homepage.html")
def graph2(request):
os.system(r"python F:\pro... | [
"42870713+CO18308@users.noreply.github.com"
] | 42870713+CO18308@users.noreply.github.com |
2b0d3ac122481b1191cc4054a913030596296730 | 4bd0a699519d9b8b93eb0efc6ea9aef0f85245ed | /db_repository/versions/009_migration.py | 1eb1a7acb2725171e504286f2d6c10e92611c2d6 | [] | no_license | cthtuf/apres-work.co | 8dee257d8795e32b87b6710bca4070f325280b96 | 1c01e6ba69b335c75eabb713d0cb0cb49139f604 | refs/heads/master | 2021-01-20T18:10:22.616582 | 2015-06-12T13:00:16 | 2015-06-12T13:00:16 | 90,910,444 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 929 | py | from sqlalchemy import *
from migrate import *
from migrate.changeset import schema
pre_meta = MetaData()
post_meta = MetaData()
webcamera = Table('webcamera', pre_meta,
Column('id', INTEGER, primary_key=True, nullable=False),
Column('location_id', INTEGER),
Column('resort_id', INTEGER),
Column('img_l... | [
"yarlov@cubeline.ru"
] | yarlov@cubeline.ru |
451f0111f0a96c661b464dbc17bd4158d273d417 | 6a1b2239e9115dc75e0947d00143a8a7005a317e | /ZBase_Framework/Utilities/Loghandler.py | e3020c96ff672e2b340c5e801fcc32a8831e78b4 | [] | no_license | vinaytalkin/Testing | 2c68d1810a9455aa31d9eeebba6b8c67a4feb5b0 | 03854a4e0afd6065d48db623961330f1dae7da61 | refs/heads/master | 2020-07-12T00:43:44.022313 | 2020-03-04T11:42:50 | 2020-03-04T11:42:50 | 204,677,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 827 | py | import logging
from datetime import datetime
import sys
import ZBase_Framework.Utilities.ConfigFile as drivepath
class Logging():
newfilename = ''
def __init__(self):
LOG_FILENAME = datetime.now().strftime(drivepath.Logfilename)
#LOG_date_for_file = datetime.now().strftime('E:\\Testing\\Logs\... | [
"kvkvinay224@gmail.com"
] | kvkvinay224@gmail.com |
d2890dc2c182e19a172de32259e3c4a1bec88acf | 351af1fb32ccc340bf8e7b2842fc57f25ad930fc | /crawlgui.py | 5b30f1124a40c1990559cebf314fcf47cbf26e2a | [] | no_license | jay24rajput/Song-Crawler-and-Player | 0e6fd7211bd2b1e4f5059a2689e6cd42482f2b78 | 008b1f2bb87311ee8f302d3f0b9bc84a20ef462e | refs/heads/master | 2020-03-14T15:34:21.554495 | 2019-02-10T15:26:06 | 2019-02-10T15:26:06 | 131,679,250 | 0 | 2 | null | 2018-05-25T18:02:32 | 2018-05-01T05:20:42 | Python | UTF-8 | Python | false | false | 1,111 | py | from tkinter import *
import webcrawler
root = Tk()
root.geometry('896x504')
searchVar = StringVar(root)
searchsong = ""
songfileText = Text()
def openfile():
f = open(webcrawler.getSongName(searchsong, False)+'.txt')
global songfileText
songfileText.insert('1.0', f)
def leftArrowPress(event = None):
searchEntry.... | [
"jay24rajput@gmail.com"
] | jay24rajput@gmail.com |
f05332ee9816b4e26ef141933888aec46b3a5ed9 | 376da4fb6acff7adf195936c417a0ae2c5d435dc | /python/hands-on/flask-05-Handling-SQL-with-Flask-Web-Application/app-with-sqlite.py | f8ceedd59c0a7f0da3a911dcfbbe33d36d522e77 | [] | no_license | gulizarsubay/my-projects | 7ed2e490d31cfa49e439283c2eecd976d6bce474 | 5cc0464706896d054aa8e6e80288afb9625c18c3 | refs/heads/main | 2023-09-02T23:49:57.413431 | 2021-11-03T18:40:44 | 2021-11-03T18:40:44 | 411,764,123 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,617 | py | # import required libraries and define object
from flask import Flask, render_template, request
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
# - configure required environmental variables for SQLite
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///./email.db'
app.config['SQLALCHEMY_TRACK_MODIFICATI... | [
"gulizarsubay@gmail.com"
] | gulizarsubay@gmail.com |
73331282f2b44eed8de8cb3952a571ea7e194a0d | 7fc30deeb0e882b97c1604a1df2435ec0494179e | /makespan.py | 74fdd51a630833b98a3feba7a0184b43cd83c112 | [] | no_license | yt100323/FJSSP-1 | 93b430f432d98778692c35b822760bb2946957b6 | 3600591293ef27c810b8be8c15e8aee893ddbaec | refs/heads/master | 2021-09-16T12:31:53.929114 | 2018-06-20T16:34:11 | 2018-06-20T16:34:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,573 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Fri May 25 15:46:05 2018
L: is a large number
overview is a 'number-of-jobs' x 2 array consisting of a list of operations and a list of machines for every job=row i
data is a dictionary of the form {(job_number, process_number, machine_number) : processin... | [
"mariosk92@gmail.com"
] | mariosk92@gmail.com |
51bf37336733ebb7290fae17e6bd80600e6c18a6 | 54d140dc8c88e7300c76b9cca48ed796bca5390e | /TensorFlow/t4.3.2.py | ac5897131500aa3b1e7554db87c94d4c17b9c00f | [] | no_license | kulinbin/- | e051274a882c4a2476d3bf9cb4bd3eb1daee7e9d | 4cd6b76bcff74a430e33ce2f6727f7ebbaebdb26 | refs/heads/master | 2020-03-22T13:05:03.548206 | 2018-11-13T11:36:42 | 2018-11-13T11:36:42 | 140,082,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,969 | py | import matplotlib.pyplot as plt
import numpy as np
import tensorflow as tf
from sklearn import datasets
sess=tf.Session()
iris=datasets.load_iris()
x_vals=np.array([x[3] for x in iris.data])
y_vals=np.array([y[0] for y in iris.data])
train_indices=np.random.choice(len(x_vals),round(len(x_vals)*0.8),replace=False)
test_... | [
"noreply@github.com"
] | noreply@github.com |
168fbad224225dc65797910e6826cf85779b21de | e194b23d8b3acdc6faecc4ae3cdd1b90732877f7 | /blogproject/blog/admin.py | 345cd1b8f8a01ba05f40db3b4fe60f26218bdf5d | [
"Apache-2.0"
] | permissive | D0m1no/blog | 8f2234ad4b7f5d95b72f90e5032d7721dec65d18 | 71099da3671c586e9d4df51f3649f440dbed897d | refs/heads/master | 2020-03-16T19:05:07.236278 | 2018-05-10T13:06:14 | 2018-05-10T13:06:14 | 132,900,193 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | from django.contrib import admin
from django.contrib import admin
from .models import Post, Category, Tag
# Register your models here.
class PostAdmin(admin.ModelAdmin):
list_display = ['title', 'created_time', 'modified_time', 'category', 'author']
admin.site.register(Post, PostAdmin)
admin.site.register(Categ... | [
"15295527531@163.com"
] | 15295527531@163.com |
1895f71eae05aca65fce05b45fb13a3823efd665 | a1ab8b6635fa331b3615e05b63795cad5c4c7d68 | /userImages/tests/test_permissions.py | 057840736508427dd8db870367e19f8962b8eb7e | [] | no_license | tayadavison/Image-Repo | 6d1f4143266ef799a91b7e421e081675d21078e7 | ff7eea8305faa767873ee7ad6b635bf03e89e171 | refs/heads/main | 2023-04-18T01:17:04.652233 | 2021-05-06T19:28:42 | 2021-05-06T19:28:42 | 364,024,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,589 | py | from django.test import TestCase
from django.contrib.auth.models import User
from userImages.models import Image
from userImages.api.permissions import IsOwnerOrReadOnly
from rest_framework.test import APIRequestFactory
# Tests the custom permissions for images where only owners have edit/delete permissions
class Test... | [
"tayamdavison@gmail.com"
] | tayamdavison@gmail.com |
0ac1d251becbfc30fab18f4aec7840bb6984a301 | e2d756cdef92155373a2ad21c21c8882bb22fa6c | /pyexamples/examples/__init__.py | 3e9e3fc9eb9df93930434b98e1742624f56ca467 | [] | no_license | fred-yu-2013/avatar | 87d1e371f3ecb907cc1facbabc0163fdbf4ef321 | 65058dd243c401934054779ab31c46806507a67e | refs/heads/master | 2020-03-30T20:59:10.771106 | 2016-02-21T05:50:06 | 2016-02-21T05:50:06 | 7,955,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | # -*- coding: utf-8 -*-
"""
一些实际应用的例子,其下按功能分类。
"""
import linecache
line_number = 0
line_number += 1
print linecache.getline("input.txt", line_number)
class Foo():
def __init__(self):
self.a = 3
foo = Foo()
print dir(foo)
print getattr(foo, 'a')
# print getattr(foo, 'b')
print hasattr(foo, 'c')
| [
"chentj070921@yeah.net"
] | chentj070921@yeah.net |
d0b4eccc76eaf52e4c7b40751b8c425cce2ee625 | e55fc37c93b38bce9b6d2205eac4c678745e2b9a | /TestingProject/venv/Scripts/easy_install-3.8-script.py | 715013c42d9e32b41eb47b848fbfdafb41598642 | [] | no_license | Sbessonov/testlab4 | 61107dd1ea255badaaae83a79e83b42f1490c78f | b346c1dea63edd7dd20b0c66ba43c1a33edf6194 | refs/heads/master | 2020-11-30T02:12:48.292696 | 2020-01-09T07:07:24 | 2020-01-09T07:07:24 | 230,272,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | #!D:\GitHub\testlab4\TestingProject\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.8'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.e... | [
"52399828+Sbessonov@users.noreply.github.com"
] | 52399828+Sbessonov@users.noreply.github.com |
3c595de877657acc75859e6f2924f0c1ef1469da | 5ddd0bfb6f3e9847ee34caff324e025f9b331644 | /tokens.py | c169a48d4600581539994ed554cf070af3e6bb01 | [
"Apache-2.0"
] | permissive | olvitar/python_training | a980ed508a2419c7341e68f42d10fa4bc06ebdf9 | 4c2ca819b1781fc785dc634f4e13e88fc0b45fc2 | refs/heads/master | 2020-03-28T05:54:58.007287 | 2018-09-22T10:49:59 | 2018-09-22T10:49:59 | 147,803,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | ADV_LOGIN = "test.oliver.q@hotmail.com"
ADV_PASSWORD = "Vbhjy_2018"
PYT_LOGIN: str = "oliver"
PYT_PASSWORD: str = "Vbhjy_30" | [
"olvitar84@gmail.com"
] | olvitar84@gmail.com |
cad88990fdb11975a67ff69d4bc9db7e5ee6a354 | da2fcabb4873422722916b82b4fa5616555c49df | /tasks/migrations/0001_initial.py | 6fa52c428260e569bc099facd1ab27eaf57e50c3 | [] | no_license | Stretchddt/Todo-App | 2703b837fbe358b83edd6dded9a74bf0e18653b6 | bc350da0e18b36844785bdd5289f0485bce51f34 | refs/heads/main | 2023-07-02T15:49:58.420339 | 2021-08-02T03:11:52 | 2021-08-02T03:11:52 | 391,799,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 578 | py | # Generated by Django 3.2.5 on 2021-07-31 17:02
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Task',
fields=[
('id', models.BigAutoField(... | [
"thomsontkd1@gmail.com"
] | thomsontkd1@gmail.com |
4aff87513b6569e20448ffadc6e221fd99aa6626 | cac1361422799eda841fa68821c7d3c03d448dd8 | /src/envs/utils.py | c92ee36731b20376c97c357578d24c0f93dec8aa | [
"MIT"
] | permissive | NinaMaz/eco-dqn | ee30525e667d24891cc81d8d9cb0dda2e821c668 | d9ea164c59014e4209ae069005029af818372ade | refs/heads/master | 2022-10-15T14:19:40.557533 | 2020-06-05T21:06:27 | 2020-06-05T21:06:27 | 269,739,516 | 1 | 0 | MIT | 2020-06-05T18:39:42 | 2020-06-05T18:39:41 | null | UTF-8 | Python | false | false | 14,455 | py | import random
from abc import ABC, abstractmethod
from enum import Enum
import networkx as nx
import numpy as np
class EdgeType(Enum):
UNIFORM = 1
DISCRETE = 2
RANDOM = 3
class RewardSignal(Enum):
DENSE = 1
BLS = 2
SINGLE = 3
CUSTOM_BLS = 4
class ExtraAction(Enum):
PASS = 1
RA... | [
"t.d.barrett91@gmail.com"
] | t.d.barrett91@gmail.com |
362dea07929b2f462d1cd31ccaddf63ea6516831 | ca909d90f466f4b2b8a637046692a07ff5084548 | /tools/data_utils.py | 43cbaefaf1a09f7236e947214de68959a691886b | [] | no_license | simsimiSION/simVoice | da48d7ba9f48ddb257d67c14d3db55a35e34029a | eac905051a3794ce820b47487794a21aa2988d1a | refs/heads/master | 2020-04-29T06:40:36.864920 | 2019-03-16T04:15:17 | 2019-03-16T04:15:17 | 175,924,977 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,913 | py | #!/usr/bin/env python
# encoding: utf-8
# @author: simsimi
# @contact: dail:911
# @software: pycharm-anaconda3
# @file: data_utils.py
from tqdm import tqdm
from pprint import pprint
import pandas as pd
import numpy as np
import librosa
import pickle
# ----------------------csv 文件处理--------------------------#
# 整合cs... | [
"2271255325@qq.com"
] | 2271255325@qq.com |
65c180e0455a95187b16075fcc7b7267cae1394e | 06209bdd16094babef1fd05345f05082fc5517c8 | /finance/migrations/0004_auto_20200330_1317.py | 015bd0b4aa7d89511813d9136b9d0593a6712106 | [] | no_license | Bmawira/Bmawira | 7a365c8b22787ca509485eb3992a3d6576eb7a8c | 8799dac69782f3570860ab92abbccb66fe557fca | refs/heads/main | 2023-04-01T13:03:08.394608 | 2021-04-15T10:31:45 | 2021-04-15T10:31:45 | 358,217,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,754 | py | # Generated by Django 2.2.6 on 2020-03-30 13:17
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('iamadmin', '0003_auto_20200312_1510'),
('pm', '0001_initial'),
('hr', '0027_auto_20200328_0702'),
('... | [
"noreply@github.com"
] | noreply@github.com |
2a7030555a4fca5f3679e7876b8ba8659e260d02 | b6df4e1f96acb130b73e2fb9221d09c5dc18122f | /file.py | 5c90e3c1e060ecf4c98c99762d2aba7eed08bbcf | [] | no_license | ATHIRAP123/iedc | bd7924fa7f1f3af258d254a9a42e79cd13dccdd6 | 89bed9d8112d91d113db58284ed536623ceea8c1 | refs/heads/master | 2020-04-21T11:52:35.427565 | 2019-02-08T00:32:55 | 2019-02-08T00:32:55 | 169,542,472 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | myfile=open("myfile.txt","w")
myfile.write("india is my country")
myfile.close
| [
"athirap857@gmail.com"
] | athirap857@gmail.com |
5f0e9bb8690706e78de7f9f2e079d922a650337a | 14d0e3f1498c8b30621cb2c1e8d5c9e883a3fdd4 | /setup.py | b1e7fbe78bd648b48028638883d85256c33b0ff5 | [
"BSD-2-Clause"
] | permissive | tokibito/django-csvutils | 964d7bd3ab31bfba74ff3a9ac676b2feae579220 | 85d7e8368e8744372a75572102961067152157c8 | refs/heads/master | 2021-01-25T10:00:41.828427 | 2010-10-10T15:08:17 | 2010-10-10T15:08:17 | 1,132,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 693 | py | #!/usr/bin/env python
#:coding=utf-8:
from setuptools import setup, find_packages
setup (
name='django-csvutils',
version='0.1',
description='CSV utilities for Django',
author='Shinya Okano',
author_email='tokibito@beproud.jp',
url='http://bitbucket.org/beproud/django-csvutils/',
classifi... | [
"IanMLewis@gmail.com"
] | IanMLewis@gmail.com |
69039729b5b60b87a8fe2d3f1259187e85c16226 | 5bcc18af2ffbf60e570900e78b9ce4c3dcbc9eb7 | /Async in Django - aiohttp/mymoviedb/views.py | 06f0ab0c897379a3bebfc7eca326a91f6ffe3b5a | [] | no_license | Mystique-orca/Async-operations-Django | 4fa68f59efaeeda1ea8e2a97e9ae3f0404b2c1c1 | c4c581df24e57b9dcd5147734df33f43f56410d4 | refs/heads/main | 2023-02-15T09:10:40.718414 | 2021-01-12T05:43:48 | 2021-01-12T05:43:48 | 328,884,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | from django.apps import apps
from .utils import database_sync_to_async
class ModelMixin:
model = None
async def get_queryset(self, **kwargs):
model = apps.get_model(self.model)
return await database_sync_to_async(model.objects.filter)(**kwargs)
| [
"noreply@github.com"
] | noreply@github.com |
5fcbb0aa1a9c1d5675f151f2e7c7d65353f0821f | b46935a9c04e3d675723cb429ca58eaccc4682e3 | /PrimeChecker.py | 4450babd65a4505154aaa10a934df1e35708e114 | [] | no_license | dhruvcheemakurti/PrimeChecker | b7fb3a2390b7afefa5ce413c2926a11b3e29001f | c2f2277cac508284acf006f96d4c1bd2f69020d7 | refs/heads/master | 2020-12-20T22:53:20.949624 | 2020-01-25T21:33:50 | 2020-01-25T21:33:50 | 236,232,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | factor = 0
number = int(input())
for i in range (1,number):
if number%i == 0:
factor = factor + 1
if counter > 2:
print("not prime")
else:
print("prime")
| [
"dhruvcheemakurti@Dhruvs-MacBook-Pro.local"
] | dhruvcheemakurti@Dhruvs-MacBook-Pro.local |
328563c64eb4c15a16bd1e55a13109a1b9a461ea | dd116fe1e94191749ab7a9b00be25bfd88641d82 | /cairis/cairis/data/AttackerDAO.py | 01d297cfe2a83a44767b9013e87d4ce371e9615c | [
"Apache-2.0"
] | permissive | RobinQuetin/CAIRIS-web | fbad99327707ea3b995bdfb4841a83695989e011 | 4a6822db654fecb05a09689c8ba59a4b1255c0fc | HEAD | 2018-12-28T10:53:00.595152 | 2015-06-20T16:53:39 | 2015-06-20T16:53:39 | 33,935,403 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 16,226 | py | import ARM
from AttackerEnvironmentProperties import AttackerEnvironmentProperties
from CairisHTTPError import ARMHTTPError, ObjectNotFoundHTTPError, MalformedJSONHTTPError, MissingParameterHTTPError, \
OverwriteNotAllowedHTTPError
from Attacker import Attacker
from AttackerParameters import AttackerParameters
from... | [
"robinquetin@gmail.com"
] | robinquetin@gmail.com |
a6055a3c1a584f66e8f90f1cbee22eb42c315b03 | c356b0f0d380b3dee5bf38334e6f162875ea23d9 | /05_scrapy/python_01_ernesto/python_01_ernesto/settings.py | 39df3f6086736d512a0f3147dd494f0d157bcbae | [
"MIT"
] | permissive | AlexaVane/Velasco-Yepez-Andres-David-Python | d29bd7f22a1dc69e3e106fd75811aecd129fe23a | 0c017d6e5f169f31207ddec5ceffc8dd82d327eb | refs/heads/master | 2020-08-23T15:16:54.268707 | 2019-02-09T08:52:23 | 2019-02-09T08:52:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,187 | py | # -*- coding: utf-8 -*-
# Scrapy settings for python_01_ernesto project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scrapy.org/en/la... | [
"velasco.andrs@gmail.com"
] | velasco.andrs@gmail.com |
4583dbc64958c40d7357f148adb9f69f16cf7c8e | bdc4a92558539abb18196886f9a56f6086f62d8e | /HW-2/practical_SGD.py | ad208d7d102186b420810956a2ebfd4e928efbf8 | [] | no_license | caglademirhan/FIZ437E-Homework-2 | 8987709f6d8b84e29778a3792ea074be7cc5dd4c | d29f972a371ac9992e4d054731064d840f7a382e | refs/heads/main | 2023-09-05T04:53:11.730176 | 2021-11-14T19:32:37 | 2021-11-14T19:32:37 | 425,187,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,503 | py | import torch
import torch.nn as nn
import torchvision.transforms as transforms
import torchvision.datasets as dsets
train_data = dsets.MNIST(root='./Data', train=True, transform=transforms.ToTensor(), download=True)
test_data = dsets.MNIST(root='./Data', train=False, transform=transforms.ToTensor())
batch = 100
iters... | [
"noreply@github.com"
] | noreply@github.com |
44595c484df47c4d12aacab65f4a7b48a3c05a69 | 40e37e4e0754eaa7877603801f1caa9bec4942a5 | /app/core/controller/ControllerEstatus.py | d9e36056715d1b75573d4d10e9f62de3137fa48c | [
"MIT"
] | permissive | DesarrolloActivoEAM/activo-django-docker-postgres | c96b12739ed341d914eb9ee2ec19bed642ac6e48 | 1041fd74fffd92a2c136eef3eb96ed269292f7c6 | refs/heads/main | 2023-06-27T17:08:17.421249 | 2021-08-04T22:12:39 | 2021-08-04T22:12:39 | 392,806,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 984 | py | from ..serializers import EstatusSerializer
from ..models import EstatusUsuario
class ControllerEstatus:
def crearestatus(request):
datosEstatus = request.data
estatusNuevo = EstatusUsuario()
try:
estatusNuevo.activo = datosEstatus['activo']
except Exception:
... | [
"desarrollo@grupoactivo.mx"
] | desarrollo@grupoactivo.mx |
c5690d2fd14d01f08bf8f251da604588fd5202d0 | faaf8af02a069919c4d553ff8e944bee8ccad806 | /Python para Zumbis/1.py | f861885a654189f1139b857c2ef6ec4d35faed3c | [] | no_license | marcioandrews/Estudos_Python | 5fe10993fc0ebc5a75d8a04687bc55cae7bd9fda | 07bf0683114132c726ed22c5d1c1be8ed7fc7fb2 | refs/heads/master | 2022-11-20T21:18:57.529507 | 2020-07-13T16:29:03 | 2020-07-13T16:29:03 | 279,171,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 78 | py | n1 = int (input ('numero 1 '))
n2 = int (input ('numero 2 '))
print (n1 + n2) | [
"47893016+marcioandrews@users.noreply.github.com"
] | 47893016+marcioandrews@users.noreply.github.com |
829f15c337c350ad9fceadcd1f44706ff07b4a37 | 5a2c02dda6e4f79140996cd96d10c2c5d07c777a | /venv/lib/python2.7/site-packages/botocore/__init__.py | bae03e376975fc7376269486d73a117f822b3799 | [] | no_license | cclaassen3/service_learn_sustain | 655dea9c216314de68c898b4c1652370aa4b5afa | 96c47b93bc2b83915aae6131116f441c1d19d7f5 | refs/heads/master | 2021-01-19T09:15:43.070241 | 2017-04-25T16:00:33 | 2017-04-25T16:00:33 | 87,743,357 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,593 | py | # Copyright (c) 2012-2013 Mitch Garnaat http://garnaat.org/
# Copyright 2012-2014 Amazon.com, Inc. or its affiliates. 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. A copy of
# the License is located at
#
# http... | [
"saranorris@lawn-128-61-44-28.lawn.gatech.edu"
] | saranorris@lawn-128-61-44-28.lawn.gatech.edu |
1477574a6be24653b60d9f9b21fd6656ade4f4d9 | 0484331138f73d05f9f173805bba122d246952a4 | /src/manage.py | 75568c911d3054c0a62fe705a2400dcbc67588e2 | [] | no_license | sl3760/EasyVC | 805c6f19c0b8e9e5bfee4495fe1d0a2e0380db84 | 3ee63475be29ccc715296badc7dfed02e31672c5 | refs/heads/master | 2021-01-13T01:37:25.703371 | 2014-05-15T04:38:25 | 2014-05-15T04:38:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "easyvc.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"jilinshuolili@gmail.com"
] | jilinshuolili@gmail.com |
3dfe193901cf9aa28f6a4d72adcdaf72d7bf3727 | d27af2880f61e8e4b1848559dd06155a456874fe | /dev_reference_lines/ourmatplotlib.py | d93c5bd1a724a796269d21222c281372ce67e6d7 | [] | no_license | CINF/cinfdata | 6c60371cdca69409be139dd1f0eab9288da422c0 | d91b0e292095ee2ba748ebd803b794c00be37d43 | refs/heads/master | 2023-08-17T11:35:01.321323 | 2023-08-11T06:54:37 | 2023-08-11T06:54:37 | 58,733,415 | 0 | 3 | null | 2023-08-11T06:54:38 | 2016-05-13T11:23:33 | Python | UTF-8 | Python | false | false | 16,407 | py | #!/usr/bin/python
"""
This file is part of the CINF Data Presentation Website
Copyright (C) 2012 Robert Jensen, Thomas Andersen and Kenneth Nielsen
The CINF Data Presentation Website is free software: you can
redistribute it and/or modify it under the terms of the GNU
General Public License as published by the Free S... | [
"k.nielsen81@gmail.com"
] | k.nielsen81@gmail.com |
b8212889d6b20712d6dc7e09b2af346ddbf3babd | 13a954fed4bced90c325e5508900b0f8665d0f08 | /day_2/list_iterate.py | 80d62d57c8fcf03d73a7af678bee6a0920c0d396 | [
"MIT"
] | permissive | anishLearnsToCode/ml-workshop-wac-2 | 64b84589fa0b45057bf36bd1f073f12a17a8eba2 | 9992acd30f4b74ce2debf0d5ff3d8a1b78b1163f | refs/heads/main | 2023-02-21T02:36:06.542630 | 2021-01-19T17:38:48 | 2021-01-19T17:38:48 | 327,333,663 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 81 | py | numbers = [2, 3, 5, 7, 11, 13, 19, 23]
for number in numbers:
print(number)
| [
"anish_@outlook.com"
] | anish_@outlook.com |
c170aaa2633ce3220690a016a2aefaf01660220e | c72b6b2e7b7421505b88489d6026f8c5226fbf31 | /Chapter8/ex8.6.py | 26ea69e57888cb4004b40d33b910e1c7343b4608 | [] | no_license | amadjarov/thinkPython | 1185fe8ee5d47ecba56c251f0c5d537fe82b5b18 | 7e8fb3a96fa6607587efac07abff04a342c15f96 | refs/heads/master | 2021-01-22T16:25:18.790251 | 2014-05-29T09:54:11 | 2014-05-29T09:54:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | def find(word, letter, index):
index = index
while index < len(word):
if word[index] == letter:
print index
break
index += 1
else:
print - 1
def count_v2 (word, letter, start):
how_many = 0
index = find(word, letter, start)
if index == ... | [
"amadjarov@melontech.com"
] | amadjarov@melontech.com |
84620c7a9c9a4148a5440e5110ee1abccb676b0a | ffa1cc65fea1d2e1998f41684e687610179f9b27 | /pinyin/pinyin.py | e9bc5ad36dc3df7936ae2b5c3556e89cf1496d63 | [] | no_license | geodge831012/learning_example | e9b419e6e7a3cbb31c36a01786e3f15bd2a7b54f | 40061b52f4c3c62486d8e0575088bd561c78171e | refs/heads/master | 2021-07-22T07:09:53.264766 | 2020-09-17T02:46:24 | 2020-09-17T02:46:24 | 215,983,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | # -*- coding: utf-8 -*-
from xpinyin import Pinyin
p = Pinyin()
a = p.get_pinyin(u"上海")
print(a)
print(type(a))
b = p.get_pinyin(u"上海", tone_marks='marks')
print(b)
print(type(b))
c = p.get_pinyin(u"上海", '')
print(c)
print(type(c))
| [
"191771508@qq.com"
] | 191771508@qq.com |
c477ff81c9b1feba08d0ef6621a1c2c2e4a1acac | b5c5c27d71348937322b77b24fe9e581cdd3a6c4 | /tests/pyutils/test_is_invalid.py | d39c12e2c935eb05fc776988bbe838d3d98d9059 | [
"MIT"
] | permissive | dfee/graphql-core-next | 92bc6b4e5a39bd43def8397bbb2d5b924d5436d9 | 1ada7146bd0510171ae931b68f6c77dbdf5d5c63 | refs/heads/master | 2020-03-27T10:30:43.486607 | 2018-08-30T20:26:42 | 2018-08-30T20:26:42 | 146,425,198 | 0 | 0 | MIT | 2018-08-28T09:40:09 | 2018-08-28T09:40:09 | null | UTF-8 | Python | false | false | 865 | py | from math import inf, nan
from graphql.error import INVALID
from graphql.pyutils import is_invalid
def describe_is_invalid():
def null_is_not_invalid():
assert is_invalid(None) is False
def falsy_objects_are_not_invalid():
assert is_invalid('') is False
assert is_invalid(0) is False... | [
"cito@online.de"
] | cito@online.de |
2f816bb890383cc7f178bf5be4d2290e2fbdfa61 | 4e81512b34223788559ea1c84acb2ef0aa4d899d | /booktracker/settings.py | 6831cbc70ea526b979e29eb6fc1e105511cae832 | [] | no_license | arsummers/book-tracker-django | 75a2e559c5dd05be67287a40514533a699889368 | 012fa821288ee99f45665e017bc8b7ab4db54a1f | refs/heads/master | 2022-12-11T16:28:27.393199 | 2019-10-15T21:28:37 | 2019-10-15T21:28:37 | 209,672,800 | 0 | 0 | null | 2022-12-08T06:38:29 | 2019-09-20T00:37:11 | Python | UTF-8 | Python | false | false | 3,428 | py | """
Django settings for booktracker project.
Generated by 'django-admin startproject' using Django 2.2.5.
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 o... | [
"aliyasummers1@gmail.com"
] | aliyasummers1@gmail.com |
1c48b42dfc347ccae1fca77e710bbdde6f730db7 | 47b6ae75b73b6ae5f29532e4d0edf2eae5a45428 | /manage.py | 0ff1f58ae4235767d7c39f80fdd2692283fc6665 | [] | no_license | smartwy/blog | f2844972fe7135b5e752713b1b4065ead1f5a7c2 | 83bd4aeb94c90a5e61d3d7f7fbf11db78a3f6a15 | refs/heads/master | 2020-04-08T07:06:24.128586 | 2018-11-26T07:18:29 | 2018-11-26T07:18:29 | 159,126,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'blog_cmdb.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Ar... | [
"wangye1989_0226@163.com"
] | wangye1989_0226@163.com |
2d6556b603b8f16cc9085de0d0c0a7fd73b0eb82 | fcbad89386611fe3b0d49fa5276d3759dac69edc | /Assigment05.py | e005f9745c4621996708aeeb28a122905b47b730 | [] | no_license | killmerjason/IntroToProg-Python | 2f0da3149229d11e6f538e6a29bd54cb9586b2e9 | c80cfc5551359e71bc6c2a5beafa08662624663b | refs/heads/main | 2023-03-14T08:38:27.551461 | 2021-02-18T02:33:31 | 2021-02-18T02:33:31 | 339,881,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,176 | py | # ------------------------------------------------------------------------ #
# Title: Assignment 05
# Description: Working with Dictionaries and Files
# When the program starts, load each "row" of data
# in "ToDoToDoList.txt" into a python Dictionary.
# Add the each dictionar... | [
"noreply@github.com"
] | noreply@github.com |
5628b540ad53bf7290b179cb3f6de1f245706da2 | bd3528cc321dc37f8c47ac63e57561fd6432c7cc | /transformer/tensor2tensor/models/xception.py | 2452a7d4ff23d06b687e61f5eea6106e13c22930 | [
"MIT",
"Apache-2.0"
] | permissive | oskopek/cil | 92bbf52f130a1ed89bbe93b74eef74027bb2b37e | 4c1fd464b5af52aff7a0509f56e21a2671fb8ce8 | refs/heads/master | 2023-04-15T10:23:57.056162 | 2021-01-31T14:51:51 | 2021-01-31T14:51:51 | 139,629,560 | 2 | 5 | MIT | 2023-03-24T22:34:39 | 2018-07-03T19:35:24 | Python | UTF-8 | Python | false | false | 5,857 | py | # coding=utf-8
# Copyright 2018 The Tensor2Tensor 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... | [
"lukas.jendele@gmail.com"
] | lukas.jendele@gmail.com |
2dc35c3d2292ced1188d4f111a89b631a2105445 | 2b8d9e0b27f69a05e4b1e0bbdf5b392d4d41a806 | /taskapp/models.py | daaaf1b7bdab2d7fcbb1b50c739d5da2cfe2e23f | [] | no_license | michaellamarnorman/Websites | bcfb60caceb87189ccffb6b7825cb8045242ca2e | e0952dad74795d9fb6ce2db5217499d693ec3bba | refs/heads/master | 2021-01-18T14:18:45.156095 | 2014-11-02T20:50:44 | 2014-11-02T20:50:44 | 24,086,271 | 0 | 1 | null | 2020-10-16T14:26:22 | 2014-09-16T05:10:51 | Python | UTF-8 | Python | false | false | 390 | py | __author__ = 'admin'
from views import db
class Task(db.Model):
__tablename__ = 'tasks'
task_id = db.Column(db.Integer, primary_key=True)
task = db.Column(db.String, nullable=False)
status = db.Column(db.Integer)
def __init__(self, task, status):
self.task = task
self.status = ... | [
"mike@mlnorman.com"
] | mike@mlnorman.com |
f4d448ee717a71c1efa39105c22ee21a96515b5d | 8ef6e8aa3377d99c6dd4114856dc8cad5f806eb0 | /server.py | c7de2feb94e46a8fdf0db63c9baad649f88308f3 | [
"MIT"
] | permissive | kevinastock/iot-sensor | c1f9810845da984c5fde4ee95bff54d991922e1a | 5869bb7ce24aad0a7c7144ccfe6106ae6eaa09cb | refs/heads/master | 2020-03-27T09:45:28.977153 | 2018-08-28T00:35:00 | 2018-08-28T00:35:00 | 146,369,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 953 | py | #!/usr/bin/env python3
from collections import namedtuple
import psycopg2
import socketserver
import struct
Reading = namedtuple('Reading', ['lux', 'pressure', 'temperature', 'humidity', 'tvoc', 'eco2', 'full', 'ir', 'gain', 'timing', 'mic_min', 'mic_max', 'x_min', 'x_max', 'y_min', 'y_max', 'z_min', 'z_max'])
DB = ... | [
"kevin@kevinstock.org"
] | kevin@kevinstock.org |
edbd64f05bc9add46fb8a202427244573c403ad7 | 4b95ced83232d8edbd15faa9f48162fc973c3e86 | /mmdet/models/roi_heads/dynamic_roi_head.py | e7c2ad0018bed70c7c97155b0bad60472b9a26e8 | [
"Apache-2.0"
] | permissive | DongshuoYin/garbage_dump_detection | 7849b0071429b27fe0afd7050821f77023a4a7f0 | 0b78e855e579dee5234c2a672b95ce350b3b3489 | refs/heads/main | 2023-04-11T05:11:25.411396 | 2022-09-17T06:56:46 | 2022-09-17T06:56:46 | 473,835,255 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,621 | py | import numpy as np
import torch
from mmdet.core import bbox2roi
from mmdet.models.losses import SmoothL1Loss
from ..builder import HEADS
from .standard_roi_head import StandardRoIHead
EPS = 1e-15
@HEADS.register_module()
class DynamicRoIHead(StandardRoIHead):
"""RoI head for `Dynamic R-CNN <https://arxiv.org/ab... | [
"389164605@qq.com"
] | 389164605@qq.com |
11f06725aa8b271658da33356bbe96e61d525ff9 | 27e6a1ef07d8a52763b6e8f66460fa277a297232 | /Python HW Link/output_config.py | e86517ac6c1bc5ed5ba848ddd261888d4db9598a | [] | no_license | bnepethomas/bne-arduino-flight-simulator-interfaces | 0354c02de1bc822db7f668880d2079aaaa2bfaae | ba784eea1bc920d13a9a6cb4ec484726fbf421ce | refs/heads/master | 2023-08-31T14:09:03.964669 | 2023-08-20T06:16:05 | 2023-08-20T06:16:05 | 57,860,939 | 15 | 2 | null | null | null | null | UTF-8 | Python | false | false | 38 | py | learning = True
AircraftType = 'A10C'
| [
"pethomas@cisco.com"
] | pethomas@cisco.com |
11836edf6c90ff6bf879c37b7be53abadf8674b5 | 27aa730834cb731f4cd9fdfd1e12a443fa717c5b | /blog/migrations/0001_initial.py | a85bc42edc973d4b7f946d37420cef3827089637 | [] | no_license | vishwakarmad1999/my-blog | 1570b0d8c5ec47242ed5380cf0dd3dd59974f168 | d8210c9624a7094ab7dc7bdec943b8feef67e957 | refs/heads/master | 2020-04-14T23:31:12.315102 | 2019-12-03T10:46:33 | 2019-12-03T10:46:33 | 164,205,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 932 | py | # Generated by Django 2.1.4 on 2019-01-05 10:14
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... | [
"vishwakarmad1999@gmail.com"
] | vishwakarmad1999@gmail.com |
efc47731f179a6c98925d1f31746cfcda3f8de07 | ada9440f62fd46b81233e9faa50f4d6f109c10b8 | /Maths-Pro-NEA-TESTING/NEA Programming/Stage 1 Creating GUI/Registeration (Sqlite3).py | 3188fe04317e88fa51da161e7ebb9ffc2888adfc | [] | no_license | WolfAuto/Maths-Pro | a8df2e70196baf69fb134e2b5d23ad024027b3b6 | 2560633a1a6d38615345b9ee072a9063a8369f83 | refs/heads/master | 2020-04-15T13:56:29.265589 | 2020-02-03T14:37:13 | 2020-02-03T14:37:13 | 164,737,979 | 0 | 0 | null | 2020-02-03T14:38:35 | 2019-01-08T21:42:46 | Python | UTF-8 | Python | false | false | 6,754 | py | import sqlite3
import tkinter as tk
from tkinter import ttk
class MathsPro(tk.Tk): # Creating a class that inherits from tk.Tk
def __init__(self, *args, **kwargs): # intialises the object
tk.Tk.__init__(self, *args, **kwargs) # intialises the object as a tkinter frame
# tk.Tk.iconbitmap(self,... | [
"noreply@github.com"
] | noreply@github.com |
81e26930666b720bd531d102ba34160f29b59198 | be5fa730da0aa1b45c748decf695c47ab536f806 | /indicator.py | c87a3ebea72bcf523e0e09b65e527a1726950585 | [] | no_license | academo/gp-okta-linux | 6e502a54d214c9d3630fa0dc79eb610d0fc0f117 | 63f236bab8f559cdfaeb06e16cd01aaa27be9304 | refs/heads/master | 2022-10-02T00:50:17.991981 | 2020-06-05T15:21:45 | 2020-06-05T15:21:45 | 269,683,241 | 2 | 0 | null | 2020-06-05T15:24:55 | 2020-06-05T15:24:54 | null | UTF-8 | Python | false | false | 4,884 | py | #!/usr/bin/env python3
"""gp-okta-indicator.py: A GlobalProtect VPN with Okta 2FA indicator applet"""
__author__ = "Jeff Channell"
__copyright__ = "Copyright 2019, Jeff Channell"
__credits__ = ["Jeff Channell"]
__license__ = "GPL"
__version__ = "0.0.1"
__maintainer__ = "Jeff Channell"
__email__ = "me@jeffchannell.com... | [
"me@jeffchannell.com"
] | me@jeffchannell.com |
3981a101ac67bb48c3abaf31d8209d0d40274ca4 | 29a7b7cf040366358beeb8e7116791d0aa31e99a | /indexer.py | 17f1a0af0d9ef492c70518a85549036b0cdaf5f8 | [] | no_license | gale2307/Jarvis | acf82cd3062fe6fb813d5fb23808392d4021cbd8 | 1a43d865cd1ac0180377e0088d55a631d69ad3cf | refs/heads/master | 2023-03-23T23:17:42.279377 | 2021-03-22T04:43:11 | 2021-03-22T04:43:11 | 330,080,718 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,499 | py | import os.path
import whoosh.index as index
from whoosh.analysis import StemmingAnalyzer
from whoosh.fields import *
#List of stopwords for the analyzer applied to page content
stops = frozenset(['and', 'is', 'it', 'an', 'as', 'at', 'have', 'in', 'yet', 'if', 'from', 'for', 'when', 'by', 'to', 'you', 'be', 'we',... | [
"noreply@github.com"
] | noreply@github.com |
a74660e8b225a828ac81ad3fe78a75e878478a32 | ddf5332b1f2e5f485e2ee4b8307ecf1766e3ac54 | /productivityTools/asgi.py | deb35cb4ef3c151c0510cd5b7d81d328293c9d50 | [] | no_license | Muzammiluddin-Syed-ECE/productivityTools | 3743965b3ff2187f4fcc9667aa0c63b376ec9c41 | 8f52c058f46721e6b6cb01123b4729fc61c0526d | refs/heads/master | 2022-12-01T11:50:36.995017 | 2020-08-18T22:14:13 | 2020-08-18T22:14:13 | 288,567,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | """
ASGI config for productivityTools project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJ... | [
"55665739+Muzammiluddin-Syed-ECE@users.noreply.github.com"
] | 55665739+Muzammiluddin-Syed-ECE@users.noreply.github.com |
5ac388b69a2ab3c163d4dd86e79293977f264fc7 | aa1e637de90f69f9ae742d42d5b777421617d10c | /nitro/resource/config/cs/csvserver_cspolicy_binding.py | e6035fde5b4e240edfc80048627a63609ec4ab92 | [
"Apache-2.0",
"Python-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | km0420j/nitro-python | db7fcb49fcad3e7a1ae0a99e4fc8675665da29ba | d03eb11f492a35a2a8b2a140322fbce22d25a8f7 | refs/heads/master | 2021-10-21T18:12:50.218465 | 2019-03-05T14:00:15 | 2019-03-05T15:35:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,684 | py | #
# Copyright (c) 2008-2015 Citrix Systems, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License")
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | [
"lennart.weller@hansemerkur.de"
] | lennart.weller@hansemerkur.de |
db07bde569060c63017b9cc87cbbd1dba54730f0 | 63bfbc2cdfcf45c868401b7e83d6065ffe6a14f9 | /math2/2581_find_prime_number2.py | 2ccf956b7c067841e703ec204f13ea1e7bf5ad9b | [] | no_license | minseop-kim/Beakjoon | c1011a712ae00655a5380140ff051e8c8d092377 | 07ccfb73bf9c07feb2fb35a64f9126082d5d22fa | refs/heads/master | 2020-09-03T09:12:02.965834 | 2019-11-18T10:28:59 | 2019-11-18T10:28:59 | 219,433,092 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | m = int(input())
n = int(input())
sosu = [0 for i in range(n-m+1)]
def check_sosu(n):
if n == 1:
return 0
else:
for i in range(2, n):
if n % i == 0:
return 0
return 1
for i in range(len(sosu)):
sosu[i] = check_sosu(i+m)
if 1 not in sosu:
print('-1'... | [
"slatjq@naver.com"
] | slatjq@naver.com |
fef62cf65b04092023dfb0175155eaecc766cf9d | a8e3abd78187690a757a3387059adae4566e3a5e | /day02/solution.py | f135efd5ea0f78de4749439872eb8e3e8072bdb0 | [] | no_license | beatrizwang/advent_of_code_2020 | f149305438d2113b13cc0a9dc3ef59a90e10143a | 8b019bfd901a069a2e0dadf6109e109ffb96f37b | refs/heads/master | 2023-02-12T10:31:24.674013 | 2021-01-09T22:07:52 | 2021-01-09T22:07:52 | 326,070,948 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,488 | py | import re
import pprint
def get_lines():
with open('day02\input.txt', 'r') as input_file:
lines = [line.rstrip().split(':') for line in input_file]
return lines
def count_valid_passwords_by_letter_count(lines):
count_valid_pass = 0;
for line in lines:
required_letter = line[0][-1]... | [
"luping.wx@gmail.com"
] | luping.wx@gmail.com |
83bd0237bba7855fe2a35fb36e2c4190f014c5f1 | 5a6716ac1c7c5745b25781c7dbfb192e593c5ae4 | /client/staas/extend_exist_storage.py | 6433d6918d687f27e458c29302843e2fe97f8b60 | [] | no_license | tej1996/molecularC | 9eecfe3a48ffa5e2803117cafbab958fe366980b | 17d4c305de7bd642c0e1ee388f0597408fbdd212 | refs/heads/master | 2020-01-19T21:08:40.800301 | 2017-06-23T10:00:03 | 2017-06-23T10:00:03 | 94,209,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 745 | py | #!/usr/bin/python
import getpass, socket,time, sys,os,commands
sock= socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
SERVER_IP="192.168.122.152"
SERVER_PORT=8000
drive_name=raw_input("Enter the drive name: ")
drive_size=raw_input("Enter the drive size to be extended(in MB : eg. 1000,500, any size):")
sock.sendto(dr... | [
"tej1996@gmail.com"
] | tej1996@gmail.com |
fae8926483b5d96a39e1fe038a84851bf29c2e75 | b3e3c2437f44f234ca5a00826557ba637d50c55a | /mascota/views.py | 548201e8af69bd8495e53922d84512ff79627648 | [] | no_license | fedebelve/mascotas | 92dc343ad65348ddaa75dc69a67a02002515e99a | a76458d0acce82ea49e5314f0f1531ea3929df8f | refs/heads/master | 2023-09-01T16:29:22.411608 | 2020-05-10T21:51:14 | 2020-05-10T21:51:14 | 262,845,470 | 0 | 0 | null | 2021-09-22T18:59:43 | 2020-05-10T18:01:02 | Python | UTF-8 | Python | false | false | 2,223 | py | from django.shortcuts import render, redirect, get_object_or_404
from django.http import HttpResponse
# Create your views here.
from django.urls import reverse_lazy
from django.views.generic import ListView, CreateView, UpdateView, DeleteView
from mascota.forms import MascotaForm
from mascota.models import Mascota
#... | [
"federico.belvedere@gmail.com"
] | federico.belvedere@gmail.com |
64e5aaded7f8c4ba2ef53e2eec133197072029a0 | 280ae2419f935e1d30866fae0efb7d15005c8bf7 | /LIKAN_HEATMAP_52BESTUN/Actual/Create_realData_Actual.py | 29e24ae893fd8ebe8afbaa3681331335ab7cc875 | [] | no_license | johanngunnar/ATVR | 2a25cc8c8a34bee11737f9f5633bc01142c86713 | 6c82b6c8bfbbef8ac5d4eda8b5230e689b930ba9 | refs/heads/master | 2020-04-23T21:33:38.667824 | 2019-05-15T10:47:20 | 2019-05-15T10:47:20 | 171,473,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,383 | py | import psycopg2
from datetime import datetime
from Functions.Select_function import Select_string
from Functions.Write_Vendor_data import Write_vendor_data
from Functions.Write_sendingarVendorar_data import Write_sendingar_data
#Connection to SQL
host = 'localhost'
dbname = 'atvr2'
username = 'postgres'
pw = 'postgre... | [
"hannesr17@ru.is"
] | hannesr17@ru.is |
c77a6b9e8035fcce367ab1e8750ee354760ca8c4 | 4a3df93a88f231cc5aa75cdcee1c8a2f07e95f56 | /src/stubtool/types/pkg_resources.py | 2529587e3376e1975af22de979813251d5d3671f | [] | no_license | moreati/stubtool | 4e5d1f9560abd58764a490e30ae1dddf4c50bff9 | 549abe25c13d9c7a05354055444f9be5277aa9e1 | refs/heads/master | 2021-01-14T12:35:47.647415 | 2015-11-15T00:36:52 | 2015-11-15T00:36:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | from __future__ import absolute_import
import pkg_resources._vendor.packaging._structures
Infinity = type(pkg_resources._vendor.packaging._structures.Infinity)
NegativeInfinity = type(pkg_resources._vendor.packaging._structures.NegativeInfinity)
| [
"b.r.longbons@gmail.com"
] | b.r.longbons@gmail.com |
57edf19b3571ac2f3999d957dd0aae9ec33deb9c | 1ae0d8eb0cd5db0bd886b40912b910bbba908b70 | /swap1,py | 90718d99c64d33935f9a3da82974c8e7ce54bef3 | [] | no_license | keerthanachinna/beginnerset3 | fae07713eac49f121e103b118e495019bf4102af | 1cc4fe785d35035a184f128865019acb17ccf4e5 | refs/heads/master | 2020-03-21T09:55:59.035254 | 2018-08-08T15:56:26 | 2018-08-08T15:56:26 | 138,424,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | x = 150
y = 160
temp = x
x = y
y = temp
print('The value of x after swapping: {}'.format(x))
print('The value of y after swapping: {}'.format(y))
| [
"noreply@github.com"
] | noreply@github.com | |
183d371c867e94d1a9c47d759689a27dc9d9a6f1 | 1253ece44b8b59bab091ab785df590fbec54f57a | /f0004_model.py | 3dd82ec4c183574ad8d417558010b2db765fc615 | [] | no_license | edyadan/calidad | 10ab1cf56ef098197e324d5925355a7464227622 | e8705fc47b4519c6fcd15cece1985af9f531dfab | refs/heads/master | 2022-07-12T21:54:25.754478 | 2019-08-04T20:26:53 | 2019-08-04T20:26:53 | 200,537,556 | 1 | 0 | null | 2022-06-21T22:27:56 | 2019-08-04T20:17:24 | Python | UTF-8 | Python | false | false | 2,626 | py | from aplication import db
from wtforms import Form, StringField, SelectField, validators, IntegerField
from sqlalchemy import Table, Column, Integer, ForeignKey
from sqlalchemy.orm import relationship
from sqlalchemy import UniqueConstraint, exc
class f0004(db.Model):
__tablename__ = "f0004"
__table_args... | [
"noreply@github.com"
] | noreply@github.com |
82c5347dab115be9855b892071b7b06b72a8d9b1 | e9a5950b1b95da07e553c16bfcd8abb99e85f44d | /utils.py | e9c81e0f7c299a69e3922db4f7008941d17bf6da | [] | no_license | guneetsk99/ArgumentMining_SharedTask | c2a1aba3d335af2d95ebcdd85412ecd6d06b110b | 468f0439b13825ad39fdd14c38b1d86f6f1fff41 | refs/heads/main | 2023-06-18T19:17:57.948714 | 2021-07-18T21:05:39 | 2021-07-18T21:05:39 | 387,261,981 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,325 | py | import multiprocessing
import pickle
import numpy as np
import sklearn
from typing import List, Tuple, Any
from transformers import *
import torch.nn as nn
from termcolor import colored
import os
from collections import defaultdict
import itertools
context_models = {
'bert-base-uncased' : {"model": BertModel, "tok... | [
"noreply@github.com"
] | noreply@github.com |
78f8c0f4f850229e0b5bb96e3f8fc5abdf9a63ca | 9e5efb1c1aacd95b382d710f9978e08d72635c82 | /DIY_LSTM.py | e50b6643796cf77b5f05f210d86d24a777ec5de6 | [] | no_license | 2018-summer-DL-training-program/Lab-2-Image-Captioning | d00cf34e934621ddbe5f8002b1dc26c97648eb24 | efe81f1a2cb8428e5e4c3587a9dadd34bc38e41f | refs/heads/master | 2020-03-26T08:00:31.143666 | 2018-08-15T12:01:19 | 2018-08-15T12:01:19 | 144,681,769 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,308 | py | import math
import torch
import warnings
import itertools
import numbers
from torch.nn.modules.module import Module
from torch.nn.parameter import Parameter
from torch.nn.utils.rnn import PackedSequence
from torch.nn import init
import torch.nn as nn
class my_LSTM(nn.Module):
def __init__(self, input_size, hidden_si... | [
"a88575847@gmail.com"
] | a88575847@gmail.com |
459acc3568c8d550b4a508be06eede9ec81e9d93 | b055c6a1610ad7780d2a86506b773cb62eebc076 | /Django ve MongoDb ile Telefon Rehberi Uygulaması/rehber/models.py | e69ee2de476baabd4f8d5ef1ed53bf4f01b7c630 | [] | no_license | kadircan23/DjangoileTelefonRehberi | 201870a39b4fa853173679ac79d6bb4225645bea | cedeff950c30f6952a97f98827759cf51387435b | refs/heads/master | 2023-03-05T00:32:25.928412 | 2021-02-21T12:19:47 | 2021-02-21T12:19:47 | 340,893,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | from django.db import models
from django.urls import reverse
from django.core.validators import RegexValidator
# Create your models here.
class rehber(models.Model):
name=models.CharField(max_length=120, verbose_name='Adı')
surname=models.CharField(max_length=120, verbose_name='Soyadı')
number=models.Positi... | [
"kdircan23@gmail.com"
] | kdircan23@gmail.com |
c683dd17778e50627255cb6099eefeb30f9b9b3b | 521e98d2dfcea3f8476dd2af0371516eccd76f72 | /query_pets.py | c7b43b804b95928e7b7dde0dabbc7ef6c0f5c75a | [] | no_license | jf4rr3ll/IS211_Assignment10 | 8e2546bbb13143ce8b196a3c9e12878f0e7f83bc | 41a381a26cfcd44bd7d25f20646f7d6e6e23c4f3 | refs/heads/master | 2020-12-24T10:40:46.120458 | 2016-11-08T03:30:50 | 2016-11-08T03:30:50 | 73,137,164 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 736 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""This module queries the pets database"""
import sqlite3 as lite
import sys
person_ID = raw_input("Input Person ID: ")
con = lite.connect('pets.db')
with con:
cur = con.cursor()
cur.execute("SELECT * FROM pet "
"INNER JOIN person_pet"
... | [
"jf4rr3ll@gmail.com"
] | jf4rr3ll@gmail.com |
1a11640edd46dab731b7bd9127b9f70bd3668848 | be0a1ea576ae3d3f1e931547cbc971db5cb51239 | /imge.py | a2852ebc0bc1ad33f8aecfd31fabf36e9fc2de96 | [] | no_license | jiyoonpark05/python | 819ddce77d3006ae981b59a86b39073dcb446bd4 | e6450a141dfd7ebf5ec0374c0280867a0e00b8f3 | refs/heads/master | 2022-12-24T15:25:26.349641 | 2020-10-03T17:50:01 | 2020-10-03T17:50:01 | 300,571,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | import dload
from bs4 import BeautifulSoup
from selenium import webdriver
import time
driver = webdriver.Chrome('./chromedriver')
driver.get("https://search.daum.net/search?w=img&nil_search=btn&DA=NTB&enc=utf8&q=%EC%95%84%EB%9D%BC%EC%8B%9C")
time.sleep(5)
req = driver.page_source
soup = BeautifulSoup(req,'html.parse... | [
"jiyoonpark05@gmail.com"
] | jiyoonpark05@gmail.com |
b0474ec6fe305a889b8e4b892c09bb1184658bf3 | 4171c500f453fcab5e76521a3b27ee95c55dc600 | /app.py | 4dbb5287a6902fb6e4c7e121fa1d7899a9977dfd | [] | no_license | Namyalg/streamlit-share | 8642b74b3ec1f25ca7d1c0179af9f04182db2038 | 25927c7f36f5eba684069f18214edae197740081 | refs/heads/main | 2023-04-30T13:03:26.426903 | 2021-05-11T16:25:03 | 2021-05-11T16:25:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | from multiapp import MultiApp
import streamlit as st
from enter_case import enter_text
from pdf import upload_file
app = MultiApp()
app.add_app("Enter the text of the case content", enter_text)
app.add_app("Upload the case file", upload_file)
app.run()
| [
"namyalg@gmail.com"
] | namyalg@gmail.com |
5a87147a18bb02b3dac68c82bd10d6619a7aafe8 | 9f03d5172562193695f9a6d44e0f1fb3e264e194 | /day01/code/myscript.py | 354b691882c718558dd15be12104d489b5d9094e | [] | no_license | Easonchar/Pythondata-notebook | 99ef3a9ac2efd3ed485704033764b6fa780b862d | 672de7b0ddd40b19556e5f01d50550203b62236d | refs/heads/master | 2020-04-13T18:08:24.945621 | 2018-12-28T04:46:22 | 2018-12-28T04:46:22 | 163,365,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | import random
def foo(n):
x = 0
for i in range(n):
x += random.randint(0,100)
return x
A = 'abc' | [
"1009560311"
] | 1009560311 |
8d8b37634b63379e721b8c5f3bda2467d2438749 | de19677d79cbafda1af531565d1ca1f52392e61c | /backEnd/python250/migrations/versions/52b3cdee5568_.py | cd93fd9cf54ee64cc935691a33fb7b94e60eb678 | [] | no_license | jingnanzh/EvolveU | c2175fd01e21aa7b3f5d8ba5bb9d52abe3ef7048 | c1d77f11ec9aa41ddc8ee5c114e1f632bb8f1db6 | refs/heads/master | 2023-01-12T13:50:44.959914 | 2019-07-25T20:18:06 | 2019-07-25T20:18:06 | 198,889,855 | 0 | 0 | null | 2023-01-04T05:24:13 | 2019-07-25T19:27:22 | JavaScript | UTF-8 | Python | false | false | 735 | py | """empty message
Revision ID: 52b3cdee5568
Revises: 62c2747a5145
Create Date: 2019-07-20 22:51:07.162561
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '52b3cdee5568'
down_revision = '62c2747a5145'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"jingnanzh0417@gmail.com"
] | jingnanzh0417@gmail.com |
3d7f8ce94144fef6f93f6d36fff9b1cb7645c9b0 | e5321bd212801b41183e3227a2b7a58edb5caddf | /002_python_built-in-function/004_raw_flaot.py | c7788f04b2697e5e354b93cedd0414bcc7bc4dbf | [] | no_license | anjan111/Arun_pavan | 79081c55a16250098c49ad16ce5a6368392eb92c | fe292f74046a315dcff36bf71e45b26f3777faef | refs/heads/master | 2020-07-22T02:56:14.286587 | 2019-11-27T03:55:46 | 2019-11-27T03:55:46 | 207,054,018 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | # raw_input===> float
a = raw_input("enter float : ")
print "data in a : ",a
print(type(a))
print "memory : ",id(a)
print "**********************"
a = float(a)
print "data in a : ",a
print(type(a))
print "memory : ",id(a)
# write remaining 7 programs for each program introduce new datatype function
... | [
"noreply@github.com"
] | noreply@github.com |
f33e40785123417f2d60f24fefa651fd1737244d | accb745d7c03f1ef71d48720ca68087a96570b64 | /JUAPP/apps.py | 56daec438f27d5f572f56dc55385afde3e220a86 | [] | no_license | krishmi/django | e5acc94ca8c87fe5aabcfe4faaa4cb238393d0ff | 1ee341d6a9f978c9886218b29226560dd6c7be2d | refs/heads/master | 2020-04-04T03:37:08.473935 | 2018-11-01T15:37:15 | 2018-11-01T15:37:15 | 155,719,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | from django.apps import AppConfig
class JuappConfig(AppConfig):
name = 'JUAPP'
| [
"krishmi139@gmail.com"
] | krishmi139@gmail.com |
1287e5a813ace00140f4612e94c9a6f43b1c6cfe | 3594dd22f5bd51b088ab94cfe420f5d1965413fc | /accounts/forms.py | 999c7a559f2ce6ee34ee764a1c18ff587c83c931 | [] | no_license | sgd122/django-site-v1 | 953d04f5722d59c60efeb21a641c44e1affb51ff | 76f905c6bd198ce4b7cd16f9ab424d8da65b6116 | refs/heads/master | 2023-02-01T10:03:40.010716 | 2020-12-19T10:17:21 | 2020-12-19T10:17:21 | 322,818,018 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,171 | py | from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth import (
password_validation,
)
from . import models
class LoginForm(forms.Form):
email = forms.EmailField(widget=forms.EmailInput(attrs={"placeholder": "Email"}))
password = forms.CharField(
... | [
"sgd0947@gmail.com"
] | sgd0947@gmail.com |
9f1f7c56dd3528ca30ea5de6164a333b6133d35e | ca07c7c71d595221d4524fc8801cb71ec9f6f321 | /Features/source_features.py | fd63afd8d7c27e52a1b14f259d2e28a93bc96b84 | [] | no_license | srush/tf-fork | 0abd47fcb4da213ed4cbf08d12fdfb9c421ee3a2 | e362b8847333eec356ca1f17c4b5b6cdd7bd42ba | refs/heads/master | 2021-01-21T23:04:00.449323 | 2010-11-05T19:12:24 | 2010-11-05T19:12:24 | 1,013,104 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 22 | py | class SourceFeature()
| [
"srush@srush-laptop.(none)"
] | srush@srush-laptop.(none) |
5748492e1ac68fbb9456a149c63bf5d73cb70cb7 | 1edb8304c6429729ffc2bab8a13f4123e19d2b32 | /azure-export/settings.py | c35f8f6b2df73b7a2759d73c4be11b093fe95853 | [] | no_license | watchdogpolska/docker-images | d8292fc03df806f5be3a976cf87272f2d46e0b13 | 7a569e1d0cef4a4f57517daeac0456a59a25d021 | refs/heads/master | 2021-09-22T00:26:11.317526 | 2021-08-14T02:40:43 | 2021-08-14T02:41:33 | 157,301,522 | 0 | 4 | null | 2021-07-15T23:54:21 | 2018-11-13T01:26:54 | Python | UTF-8 | Python | false | false | 1,023 | py | import os
import dataset
from azure.mgmt.storage import StorageManagementClient
from azure.mgmt.resource import ResourceManagementClient
from msrestazure.azure_active_directory import ServicePrincipalCredentials
# $ az ad sp create-for-rbac --name "MY-PRINCIPAL-NAME2" --password "XXX" --verbose
# $ az role assignment ... | [
"naczelnik@jawnosc.tk"
] | naczelnik@jawnosc.tk |
5931de956c0b0fe468509dbf0163d394084dd9b0 | f6d23c9e3bd4e9870fc304a3c1012cc63d128e4b | /SentimentOfTrend/SentimentOfTrend/venv/bin/pip3.7 | 7d6bbeb6f47a973a2fc3dbc1c91e025374e90859 | [] | no_license | AimersUom/TrendAnalysis | e4e5dbb9f0bb2d0fa8c09b974ead864e33ac2111 | c3f40d36295715aa2387ccab13caeff6b39c23ed | refs/heads/master | 2020-04-27T11:24:17.050070 | 2019-03-10T09:14:29 | 2019-03-10T09:14:29 | 174,294,259 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 423 | 7 | #!/Users/kaumadisamarathunga/PycharmProjects/GetTWEETS/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.7'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', s... | [
"sumuduuluwitike@gmail.com"
] | sumuduuluwitike@gmail.com |
d8e032b3398ca8b4d5089d70996f8278fc086e9d | 123cf58c5dc4800d5d50fd2934cc63be1080e093 | /models/string_cluster_model/encoder_network.py | 33989eff917210d26d9f229c5dc93a45db8912b7 | [] | no_license | nitishgupta/char-encode-decode | dd303a9aa77a3af9000e275bcb86abb18d0b7d84 | eb4bbb8be701c3cbb4476a779094c45458a1daef | refs/heads/master | 2021-04-30T23:25:49.895472 | 2017-09-03T06:37:55 | 2017-09-03T06:37:55 | 66,794,519 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,167 | py | import time
import tensorflow as tf
import numpy as np
from models.base import Model
class EncoderModel(Model):
"""Unsupervised Clustering using Discrete-State VAE"""
def __init__(self, num_layers, batch_size, h_dim, input_batch, input_lengths,
char_embeddings, scope_name, dropout_keep_prob=1.0)... | [
"gnnitish@gmail.com"
] | gnnitish@gmail.com |
009ad8e83368f5d9aba96f1b9c1b389734d8abee | 1f151bf72d930066ca8153c11a6e22c0ca4c27d4 | /GCD.py | 579adcbd868e063f62381655169d75505dcbed44 | [] | no_license | prasadyacham/BackendAutomation | 0f03ac7e7d363c7225f2460c10bb6985059dc452 | 333384f4084a4da8388a71662da062f3fec10202 | refs/heads/master | 2023-08-01T11:05:18.157634 | 2021-09-10T20:08:07 | 2021-09-10T20:08:07 | 405,200,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | import sys
def _greatest_common_divisor_euclid(p,q):
if q==0:
return p
else:
remainder = p%q
return _greatest_common_divisor_euclid(q,remainder)
if __name__ == "__main__":
input = sys.stdin.read()
a, b = map (int, input.split())
print (_greatest_common_divisor_euclid(a,b)) | [
"prasadyacham@gmail.com"
] | prasadyacham@gmail.com |
b3c0b84433b5431d0077dba3b06e3bd573900130 | c8cb561638de5c86580719521cfd2ceee817e6e3 | /project/serializer.py | 1a7b17a57bf16c8241811c1959a3596feed3a7d4 | [
"MIT"
] | permissive | KitsuneNoctus/myCity | d60634eda94f20f21be50bab04c6993637611f9b | 977aa39fe605e4cd5707557292906571ab608884 | refs/heads/master | 2022-11-17T23:18:05.716239 | 2020-07-16T18:52:17 | 2020-07-16T18:52:17 | 270,813,523 | 0 | 0 | MIT | 2020-06-08T20:15:41 | 2020-06-08T20:15:40 | null | UTF-8 | Python | false | false | 2,167 | py | from django.contrib.auth.models import User, Group
# from users.models import CustomUser as User
from rest_framework import routers, generics, serializers, viewsets, permissions
from Pages.models import Page
# from Utils.models import Photo
from rest_framework import serializers
class PageSerializer(serializers.Model... | [
"chris.barnes.2000@me.com"
] | chris.barnes.2000@me.com |
b5056e893180c51f75de1fd397027e135c255cff | fe4b84171ecc8ba1e169d4f4f985df4ee448a093 | /UNet_neum/UNet.py | 8334678ecf787844c3dd727d2263614725bd13fe | [
"BSD-3-Clause"
] | permissive | shenw33/generate_CFD | 3507e896e2ac64717e01a2bd3d85f8d2c50ce5f9 | 578c3901bcfd961b0c4ceaf6688244923c002ca3 | refs/heads/master | 2023-04-11T18:46:47.811778 | 2022-01-18T18:43:45 | 2022-01-18T18:43:45 | 212,940,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,914 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
import numpy as np
import matplotlib.pyplot as plt
def conv_loss(domain_size=32):
"convolutional loss function based on steady heat equation"
"Neumann condition version"
h = L / (domain_size-3)
kernel = torch... | [
"shw515@lehigh.edu"
] | shw515@lehigh.edu |
f8225fef502d1b9392e1df50f78fc03ce0842a56 | 85690414e489c1f3473c261c25a53cb888b58a52 | /prototypes/password.py | 23b6446fa29506eae6e1f7c4df0caeec8ed335bb | [
"MIT"
] | permissive | ivanleoncz/PythonEggs | eb95c16b8632fd7782f707defca2295c871c06ff | 540843dcf6fba4b3fe0d6d57dd19654f33cccb74 | refs/heads/master | 2022-01-13T06:15:04.315564 | 2019-06-06T05:40:11 | 2019-06-06T05:40:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,365 | py | #!/usr/bin/python3
""" Encrypting and validating passwords."""
from getpass import getpass
__author__ = "@ivanleoncz"
import bcrypt
def encrypt(p):
"""
Concept:
Encrypts plain text password into a hash.
Parameter:
p: Plain text password.
Return:
Plai... | [
"ivanlmj@gmail.com"
] | ivanlmj@gmail.com |
2b3c16897a3b35cc9e66306da93eacb32c23e5ef | 0d5de943909877c01b485d8a918d8bef0cf9e196 | /plugins/CompleteLikeEclipse/scribes/edit/complete_like_eclipse/__init__.py | 1bf51577114ffc6ae996e45832814ec68d606743 | [
"MIT"
] | permissive | baverman/scribes-goodies | 31e2017d81f04cc01e9738e96ceb19f872a3d280 | f6ebfe62e5103d5337929648109b4e610950bced | refs/heads/master | 2021-01-21T10:13:08.397980 | 2013-09-25T16:33:05 | 2013-09-25T16:33:05 | 854,207 | 2 | 1 | null | 2013-09-25T16:33:05 | 2010-08-22T03:12:39 | Python | UTF-8 | Python | false | false | 4,949 | py | from gettext import gettext as _
from string import whitespace
from scribes.helpers import TriggerManager, Trigger, connect_external, connect_all
from signals import Signals
from IndexerProcessManager import Manager as IndexerProcessManager
from DictionaryManager import Manager as DictionaryManager
from ProcessCo... | [
"bobrov@vl.ru"
] | bobrov@vl.ru |
0478e749c690f7d3c89ba75c1b9d3880465808f4 | 6e309bc7a2facb9d06dcadd6843471b14d0981b3 | /correlate_image.py | 8fd5157762a3bd2c2a5cd894bd2feacd518125a4 | [] | no_license | HaohuiHU/IVUS | d6841acc20ccf3e3e002448e31c078b1d113d316 | ccbd22707936f2ec63446c7c73e42d0a3e2ef22b | refs/heads/master | 2023-03-21T20:00:13.238324 | 2020-02-13T22:42:25 | 2020-02-13T22:42:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,696 | py | # this function computes the correlation between two polar domain images
# The images should have been shifted so that the lumen is removed
# image1 and image2 are arrays of format(no. images, depth, angle)
import numpy as np
from matplotlib import pyplot as plt
def compute(image1, image2, step):
# ensure that t... | [
"dmolony@emory.edu"
] | dmolony@emory.edu |
865863231c1bcff849f7fb8c7a024438ae3a314c | 0ee42b307fc252acabc1acba23300b8b51184ecb | /plot_filtered_aerosol.py | 9b1a70df7e332cd6dc9c51437b98a0b5522c071d | [] | no_license | KimDube/Masters-O3-Aerosol-Temp | 5689a1b9fad1d5a12672e7e31ce44e630065d106 | 38e16adea952ffdd1ba504e36cf557471e944fbe | refs/heads/master | 2020-03-20T15:08:57.122807 | 2018-08-21T20:38:49 | 2018-08-21T20:38:49 | 137,504,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,413 | py | import matplotlib.pyplot as plt
import seaborn as sns
import datetime
import numpy as np
import pandas as pd
from Code_TimeSeriesAnalysis import SolarData
alts = np.arange(19500, 35500, 1000) / 1000
mg_02to15 = SolarData.loadmg2(2002, 1, 1, 2015, 12, 31)
mganomaly = (mg_02to15 - np.nanmean(mg_02to15)) / np.nanmean(m... | [
"krd020@mail.usask.ca"
] | krd020@mail.usask.ca |
410f343e06b5a2e46e0ac58189f5fc2337669859 | 15a992391375efd487b6442daf4e9dd963167379 | /monai/networks/nets/__init__.py | cd9329f61baf93158a6a3aa20992150937c07ed3 | [
"Apache-2.0"
] | permissive | Bala93/MONAI | b0e68e1b513adcd20eab5158d4a0e5c56347a2cd | e0a7eff5066da307a73df9145077f6f1fec7a514 | refs/heads/master | 2022-08-22T18:01:25.892982 | 2022-08-12T18:13:53 | 2022-08-12T18:13:53 | 259,398,958 | 2 | 0 | null | 2020-04-27T17:09:12 | 2020-04-27T17:09:11 | null | UTF-8 | Python | false | false | 2,805 | py | # Copyright (c) MONAI Consortium
# 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, so... | [
"noreply@github.com"
] | noreply@github.com |
abc9ebe106b0c81f49934c11bac422b6b1e820d1 | 7f41b1033707cacc37d4dfed781ea367e866a428 | /myapi/urls.py | 296da9ec5e571a60b56b726ceaca6234b7fc80de | [] | no_license | kushagrasgupta/ApiFetchPostDjango | 57f496bbe2aca5bd13b79d2099a24bf3682c0b33 | bdc4f89029d625f2d0301e2a2043bb3191e1c21d | refs/heads/main | 2023-07-13T00:08:09.663732 | 2021-08-16T13:16:09 | 2021-08-16T13:16:09 | 396,801,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | from django.contrib import admin
from django.urls import path
from myapi import views
from rest_framework.urlpatterns import format_suffix_patterns
from django.views.static import serve
urlpatterns = [
path('admin/', admin.site.urls),
path('userinfo/', views.ImageViewSet.as_view()),
url('media/(?P<path>.*... | [
"kushagrasgupta@gmail.com"
] | kushagrasgupta@gmail.com |
90c3ead82a6a27450a7f5146d6da0898e67ada34 | e6cee4336f354e76695bee438b902df5e9053427 | /proTwo/proTwo/appTwo/urls.py | a0c5d71df9dfe25559cf4b1382a893af027b3e86 | [] | no_license | stark019/Django_tutorial_work | 56d58efcea36d737c5b24342369b20b6a8f0d485 | 97511d80326f58863e77d591a187447379a4ca3d | refs/heads/master | 2020-05-26T08:16:57.715655 | 2019-06-12T14:35:15 | 2019-06-12T14:35:15 | 188,163,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py | from django.conf.urls import url
from appTwo import views
urlpatterns = [
url(r'^$',views.users,name='users'),
] | [
"meettonihal@gmail.com"
] | meettonihal@gmail.com |
189234dba477920e20978a90104fe63bbe85f33a | ccce57307a499b49b14c8b16706166b08df1c5c1 | /database.py | e454dfecf3c38702f9373d274b585f469e9ff64e | [
"MIT"
] | permissive | simrit1/CubeTimer | 6ea1ca4549865317c947a3a91d3a57f1786f198c | b226ae875cde35fb573c618d70a408421e0e9f07 | refs/heads/master | 2023-07-01T20:38:20.983300 | 2021-07-18T02:04:33 | 2021-07-18T02:04:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,306 | py | import sqlite3
from CubeUtilities import Time, MultiPhaseTime
class Database:
def __init__(self, table_name, db_dir):
self.database_path = db_dir
self.table_name = table_name
self.closed = False
try:
self.conn = sqlite3.connect(self.database_path)
except sqlite3.Error:
raise Exception(f... | [
"noreply@github.com"
] | noreply@github.com |
50757308714e1748bc154ae1b6b8a9944dfd0fca | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/7/sxj.py | 95c3a20eebf162044696cda87af0444abb3afeb2 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
5115b3a9bc8cd124a75b834992a50d198be0fbdd | d99187b8b27cc3c56fef7883487dfcc82ea235c2 | /setdefault-fun.py | a44932b8d823b666db5bf2bfc90a45701dec1401 | [] | no_license | SanketGawande27/Chapter1--Automate-the-Boring-Stuff-With-Python | 898fdd1e6537b84b1f42dbc2f7de38a24c27e902 | 74727c7cfed855e0f32b1cfe51085fedaeb264b4 | refs/heads/master | 2022-12-02T09:14:51.831936 | 2020-08-13T09:14:38 | 2020-08-13T09:14:38 | 274,306,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | message = 'Hello Friendss ... I am sanket. This program is for setdefault () function...'
count = {}
for character in message:
count.setdefault(character, 0)
count[character] = count[character] + 1
print(count)
| [
"noreply@github.com"
] | noreply@github.com |
5a4102380ceda801c33ba27df61c91998ba24ab0 | c4943748c504f26e197ce391c747bb5a4c146be2 | /trade_data_get/future_daily_point_data.py | 242777b92ad8080f11fc2e523a24c024c3dba7a1 | [] | no_license | NewLanded/security_data_store | 88919c233d6bd22b20d0d9918c8e2ffcafc33c3e | d23c68777e6ecb0641cb5c6f7061b1c11d208886 | refs/heads/master | 2021-07-21T12:55:47.650454 | 2021-06-30T07:32:00 | 2021-06-30T07:32:00 | 133,665,767 | 1 | 0 | null | 2018-05-16T13:03:35 | 2018-05-16T12:56:05 | null | UTF-8 | Python | false | false | 1,715 | py | import datetime
import time
import tushare as ts
from conf import PRO_KEY
from util_base.date_util import convert_datetime_to_str, convert_str_to_datetime, get_date_range
from util_base.db_util import engine
from util_base.db_util import store_failed_message
from util_data.date import Date
ts.set_token(PRO_KEY)
pro ... | [
"l1141041@163.com"
] | l1141041@163.com |
6b2ed7d805f5d1bc63de6352fa85ee532c59ff14 | 2cbd9b29cc91236df0034325cdb2416d5eca997b | /tests/selenium/delete_devices/login_test_emf.py | 94f8492b8bbf164444527c6a986ffd9e32962929 | [
"MIT"
] | permissive | sivaanil/laravel | 6cce9d3272be1313abc99c7fae40954b4c0e9488 | 14900b071a514379f0161c5fd7bea05300dee083 | refs/heads/master | 2021-01-11T17:36:18.115702 | 2017-02-20T13:57:51 | 2017-02-20T13:57:51 | 82,559,033 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,657 | py | # -*- coding: utf-8 -*-
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import Select
from selenium.common.exceptions import NoSuchElementException
from selenium.common.exceptions import NoAlertPresentException... | [
"sivakrishna.alapati@yesgnome.com"
] | sivakrishna.alapati@yesgnome.com |
b19697dd2141337e43e8637db3d1b3194c5727c4 | 2db2eecff0095a55b057bdf3df012ad92f6c11a7 | /keras_explain/deep_viz_keras/visual_backprop.py | 79f0abcf1c308c75a6d90703299f3442bb93407a | [
"MIT"
] | permissive | PrimozGodec/keras-explain | b83ed45f85d53b4a7b26f0d4697ffd98c7a214d6 | 692785e881dc12a1500a9e651b07c7ff6fef6f9d | refs/heads/master | 2020-03-26T23:52:55.062767 | 2020-02-19T18:34:51 | 2020-02-19T18:34:51 | 145,574,595 | 18 | 7 | MIT | 2020-02-19T18:34:53 | 2018-08-21T14:21:33 | Python | UTF-8 | Python | false | false | 2,437 | py | import keras.backend as K
import numpy as np
from keras.initializers import Ones, Zeros
from keras.layers import Input, Conv2DTranspose
from keras.models import Model
from keras_explain.deep_viz_keras.saliency import SaliencyMask
class VisualBackprop(SaliencyMask):
"""A SaliencyMask class that computes saliency ... | [
"p.godec9@gmail.com"
] | p.godec9@gmail.com |
cc004fdb9d5cd9911bf6ba3f0a30d66c4afac7bd | 4a59ac4c2d94785ee9458627da964bac70c1deba | /sentences/migrations/0001_initial.py | 3921bbfeb72a6a59eaa673ff1f10a60f62cb6887 | [] | no_license | showerbugs/acidrain-api | f7d9ced324383719569a64ef01172699ed9db0da | 91f5e38390e67db78186478d13dd7b0535023835 | refs/heads/master | 2022-12-18T22:38:15.081982 | 2017-08-13T08:57:00 | 2017-08-13T08:57:00 | 99,404,448 | 0 | 0 | null | 2022-12-08T00:42:09 | 2017-08-05T06:38:13 | Python | UTF-8 | Python | false | false | 795 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-08-05 07:51
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Senten... | [
"waitingforqodot@gmail.com"
] | waitingforqodot@gmail.com |
fcf155feccc0ab8f84ca6c573909d2fba3b7aea2 | 959a88c0b91c86ff3e78f9be60b1d9aafb2e2d3c | /tweetme/urls.py | 6d45da2cf23f46a5f0f737f3fb486daafcf26a24 | [] | no_license | 19sanchit19/Twitter-Mini | 90c2d7f21a24cfa62092077b5319ec698bf96e71 | dda70c7cc19a3b4c639620b98edbd64ef5fc73db | refs/heads/master | 2022-11-23T21:10:25.533486 | 2020-07-24T22:53:26 | 2020-07-24T22:53:26 | 282,317,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,976 | py | """tweetme URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.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-based... | [
"sanchitcn@gmail.com"
] | sanchitcn@gmail.com |
ae256cc65559aa8a3d48b4544878f3e404989090 | c61d358bcbfffb141c3394c38e72d62dc03d2ada | /23ListelerinveDemetlerinMetotlari.py | d76a89eef85768ff9e2f35ca2a357829033349d3 | [] | no_license | sahinbesinci/Python | 75e2e81a897ca4cbe478981d49fc7bb77e247a20 | a8e0ca1214bfb49f2a7c016391197d57ed2b6f5f | refs/heads/master | 2020-07-02T14:23:01.123843 | 2019-09-05T21:37:34 | 2019-09-05T21:37:34 | 201,555,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,990 | py | #
#
# Listelerin ve Demetlerin Metotları
#
#
#
# Listelerin Metotları
#
>>> dir(list)
>>> dir([])
['__add__', '__class__', '__contains__', '__delattr__', '__delitem__',
'__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__',
'__getitem__', '__gt__', '__hash__', '__iadd__', '__imu... | [
"sbesinci@ubuntu.empra4vdrldehkkuhwt3fipuec.bx.internal.cloudapp.net"
] | sbesinci@ubuntu.empra4vdrldehkkuhwt3fipuec.bx.internal.cloudapp.net |
29b781906de5f2fb4d497b7821cbd335e7a08c7b | a9665726d599cdaabae562dde51e4dfa6f36f9f9 | /manage.py | 3b915dbc96f0a8e68ca4986a9cc826ca4a331c97 | [
"BSD-3-Clause"
] | permissive | gh0stsh0t/TwitterSlave | fda50864e8e5c3e78d323f27a14355e3896bf337 | b6f272cab45b7e2aff9781e6ddacfccbb32c53a2 | refs/heads/master | 2022-05-04T06:32:43.999800 | 2020-07-20T06:29:55 | 2020-07-20T06:29:55 | 66,742,577 | 0 | 1 | BSD-3-Clause | 2022-04-22T20:50:44 | 2016-08-28T00:59:03 | Python | UTF-8 | Python | false | false | 251 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "TwitterSlave.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"rjperias0213@gmail.com"
] | rjperias0213@gmail.com |
bc232bb3094a7b2072b027fedf93271713aef6b9 | 884fecb1be9b97483301d76ad5c45491290b817b | /iaproject/portfolio/migrations/0012_auto_20200204_0900.py | d2b5c0dd6c171a1f80dbf36b866144e7e0eb1fb7 | [] | no_license | Code-Institute-Submissions/interior-architect | de9989769927a99d608f394b90d792560f87af8c | 0fcb1dd6f4bb2558f1f16b490f1b2f29f592d76a | refs/heads/master | 2021-02-07T17:15:35.757591 | 2020-02-29T23:04:27 | 2020-02-29T23:04:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | # Generated by Django 2.2.9 on 2020-02-04 09:00
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('portfolio', '0011_auto_20200129_1649'),
]
operations = [
migrations.RemoveField(
model_name='section',
name='image_landscape... | [
"nospam@firville.com"
] | nospam@firville.com |
c74942de61e4a32ff2a0a0be62da3f16bf3c27a3 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/BuildLinks1.10/test_input/CJ_16_2/16_2_1_anthrocoder_digits.py | 595c608a01ecda0f5fcd93bfb768e0ff0aab1314 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 944 | py | import sys
try:
f = open(sys.argv[1])
out = open(sys.argv[1].rpartition("\\")[2]+".out", 'w')
numTests = int(f.readline())
for i in range (0, numTests):
note = f.readline()
# print (note)
phoneNo = ""
zeros = note.count("Z")
# print ("found zeros: " + str(zeros))
twos = note.co... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
739262093cf0e020865d48af35d7a705fda23d30 | 8e73a76ddc32b2587592a21aa9feeb1b1b6a8517 | /tkinter/text.py | c08f8c2755041562468b52938a77d0cf37448fc6 | [] | no_license | bjavier9/python-curso | d754c6b771d3c1f77c515bbbb290317aff68700d | f5ea25c36e2fc2ed0e9c78e9d5aee0a562bf8772 | refs/heads/master | 2020-04-14T22:36:34.678645 | 2019-01-21T19:22:52 | 2019-01-21T19:22:52 | 164,169,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | from tkinter import *
root = Tk()
texto = Text(root)
texto.pack()
texto.config(width=30, height=10, font=("Consolas",12), padx=15, pady=15, selectbackground="red")
root.mainloop() | [
"noreply@github.com"
] | noreply@github.com |
658188357a420a967626a633ab73119b6a6a95f5 | f89b26d9c53b1d5cc6b14d7f20c57772c98fb53d | /plus minus.py | 3620c88e652db9cf30d344d0e8462e9fc3708813 | [] | no_license | Mityun/Analitic_of_my_book | 9be73824b0d218f87619e938ef0b0ceeb57e1310 | dd9842925205b3ec55179ae00df798031dcf8c26 | refs/heads/main | 2023-08-14T10:41:33.105877 | 2021-10-10T07:32:23 | 2021-10-10T07:32:23 | 326,292,671 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | q = float(input())
w = float(input())
e = input()
if e == "-" and w != 0:
print(q - w)
elif e == "+" and w != 0:
print(q + w)
elif e == "*" and w != 0:
print(q * w)
elif e == "/" and w != 0:
print(q / w)
elif e != "+" and e != "-" and e != "*" and e != "/":
print(888888)
elif w == 0:
print(88888... | [
"you@example.com"
] | you@example.com |
d8f72a29e4debb13f575d834a3fd85f7a8f5a2f5 | 6ce98e2d496adc66e8b96e695b6ff75e87b17461 | /hello/urls.py | 4a248afa04cdb0f27ca0e17bdc19dacafa4b9e03 | [] | no_license | devrajkakoty/Django_first | 58e4c7c385092cae15f4fe836b4b72f68ed9f5a3 | cdd10fdca6237310459e392ed46d8b95e0dbd4bf | refs/heads/master | 2022-11-15T21:54:37.449226 | 2020-07-19T08:12:58 | 2020-07-19T08:12:58 | 280,639,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 928 | py | """hello 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 v... | [
"devraj.kakoty@gmail.com"
] | devraj.kakoty@gmail.com |
950ffaae1721bda634c1e0426402fff9e8f5e767 | 95e2d468721f90d3c5969259c287d467bd7acd02 | /plugins/mirrorTablePlugin.py | 4251065d4a7edadc7135da64e1d71771e76ff31d | [
"BSD-3-Clause"
] | permissive | jonntd/studioLibrary | 64b49abc4bc8e5c026825031d9ea6f3f7f035368 | 98fc9f3a26690bf884537a93956d66701b837af3 | refs/heads/master | 2020-12-25T05:29:37.170103 | 2014-11-25T22:16:44 | 2014-11-25T22:16:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,685 | py | #Embedded file name: C:/Users/hovel/Dropbox/packages/studioLibrary/1.5.8/build27/studioLibrary\plugins\mirrorTablePlugin.py
"""
# Released subject to the BSD License
# Please visit http://www.voidspace.org.uk/python/license.shtml
#
# Copyright (c) 2014, Kurt Rathjen
# All rights reserved.
# Comments, suggestions and bu... | [
"mjmvisser@gmail.com"
] | mjmvisser@gmail.com |
df05476a55d74eac175c02cf47d0431568781b2d | a84e1ed67ef2592cf22f7d19cdddaf16700d6a8e | /graveyard/web/VNET/branches/vnf/vnf/components/NeutronExperiment.py | 8fd30a324c74a91f7ace04f9b8a10a6528a0f084 | [] | no_license | danse-inelastic/inelastic-svn | dda998d7b9f1249149821d1bd3c23c71859971cc | 807f16aa9510d45a45360d8f59f34f75bb74414f | refs/heads/master | 2016-08-11T13:40:16.607694 | 2016-02-25T17:58:35 | 2016-02-25T17:58:35 | 52,544,337 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 24,209 | py | #!/usr/bin/env python
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Jiao Lin
# California Institute of Technology
# (C) 2007 All Rights Reserved
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | [
"yxqd@users.noreply.github.com"
] | yxqd@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.