blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6811c35128a21908b5e7d9975bb069e9cf91036d | efcf8a7309aab135dd127f9466ce5110556b5fbc | /chat_app/urls.py | ca3fe12efbf63cbf00cb953fc9cb23087bb54222 | [] | no_license | garizs/chatApp | 62371d035b32c80cd1322848ecc4c82ea91a3d1b | 8eb3d5b509f317cb40295e7d4d37f14c0bd2d855 | refs/heads/master | 2023-07-08T18:55:50.504650 | 2021-08-23T08:39:24 | 2021-08-23T08:39:24 | 395,544,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('<str:room_name>/', views.room, name='room')
]
| [
"i.kolesnikov@ritg.ru"
] | i.kolesnikov@ritg.ru |
98244b23e0ce113db9acb33b85781abda3504fab | 82115f52db1783a2ce963e2621bf185c61ceb419 | /Teoría/03 Widgets para formularios/3-1 Etiquetas/programa.py | f824e536fbaa1c1de04e3356c2ce610ec1b992ff | [] | no_license | lesclaz/curso-qt-pyside-udemy | ce227df451a7cff40d90543ee6c892ea1a6b131c | 8b9bbf5d45e916f1d7db9411728b2759b30d2fd9 | refs/heads/master | 2023-07-01T18:11:47.959668 | 2021-08-03T09:38:12 | 2021-08-03T09:38:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,020 | py | from PySide6.QtWidgets import QApplication, QMainWindow, QLabel
from PySide6.QtCore import QSize, Qt
from PySide6.QtGui import QFont, QPixmap
from pathlib import Path
import sys
def absPath(file):
# Devuelve la ruta absoluta a un fichero desde el propio script
return str(Path(__file__).parent.absolute() / fil... | [
"hcostaguzman@gmail.com"
] | hcostaguzman@gmail.com |
4067ade06122e3a02c1b9d764ce69d8d86e992ac | 833c09e68b7dca5b71bee89c81578404d05feaf0 | /ch5/a57.py | 1e9c4188b3d65218c2ba064780cbfee244d370d7 | [] | no_license | muu4649/NLP100nock2020 | 669fa68f2f3b7f7a7deb4402cdaf7d9fd8aaf372 | 0031ac9b82135a81787dc3e5c77728a6d30c06c6 | refs/heads/master | 2022-10-24T22:27:30.785381 | 2020-06-11T22:31:06 | 2020-06-11T22:31:06 | 268,445,835 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 748 | py | #52で学習したロジスティック回帰モデルの中で,重みの高い特徴量トップ10と,重みの低い特徴量トップ10を確認せよ.
import pandas as pd
import joblib
from sklearn.linear_model import LogisticRegression
from sklearn.metrics import confusion_matrix
#X_train = pd.read_table('train.feature.txt', header=None)
#y_train = pd.read_table('train2.txt', header=None)[1]
clf = joblib.... | [
"noreply@github.com"
] | muu4649.noreply@github.com |
6576a596822baf4eb435a1fe47e11d479398497b | fd878bcdaa9489883894c942aae5e316a15c2085 | /tests/dataset_readers/sst_test.py | 477e1a51ec7a5efbd55ddd0006bc58ee474d6ddc | [] | no_license | Shuailong/SPM | a12d18baa39a72a9243ad9cd4238168ab42b96d1 | 0105dae90a4acdebfc875001efab7439b3eb8259 | refs/heads/master | 2020-04-26T04:51:14.279859 | 2019-06-24T03:55:11 | 2019-06-24T03:55:11 | 173,315,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,551 | py | # pylint: disable=no-self-use,invalid-name
import pytest
import pathlib
import random
import os
from allennlp.common import Params
from allennlp.common.util import ensure_list
from allennlp.common.testing import ModelTestCase
from allennlp.data.dataset import Batch
from allennlp.data.fields import TextField
from allen... | [
"liangshuailong@gmail.com"
] | liangshuailong@gmail.com |
80c27b9d221f59ad4887eeb126cb5bc7715df2fd | 0bb0bf1326fb0111816c92193de5bf83201f5895 | /Desafio 2 (Lista telefonica)/Resolução Python/telefonica.py | 8402e49621faa8f1c714a52e6490c6ca9cdb535d | [] | no_license | pipefep/EstruturaDeDados | 3c668d014f7979fae1e4a3720caafbbc24f4ed80 | 4c05263b76d5d6fbbe20d8cf88e9c25107f74e83 | refs/heads/master | 2020-08-02T16:07:55.823833 | 2019-03-05T21:02:59 | 2019-03-05T21:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,718 | py | # Versão: Python 3.6.7
from os import system # Importa da biblioteca OS a função System, para atividades usando o sistema operacional.
vetA = [] # Declarar que existe um vetor/lista em "vetA".
# Função para imprimir uma linha.
def linha():
print("----------------")
# Função para adicionar o número da pessoa.
de... | [
"noreply@github.com"
] | pipefep.noreply@github.com |
bda2afa73a058eb395fe5552b635d84a6d2f2e4d | c8e365146804863c90d0d37114008078514ab3df | /db_creation/rules/cluster_category_stats.smk | 72e47686e0c94208e5c59aba2cba652aa7d7b683 | [] | no_license | nvt-1009/agnostos-wf | 67fc9ac7e20af82d2ee4244debb66a6cb0657dd4 | ece12b0cb2b55f67f4e468cb55b60dbddd11fc41 | refs/heads/master | 2023-04-25T19:45:06.315050 | 2021-06-06T11:08:58 | 2021-06-06T11:08:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,142 | smk | rule cluster_category_stats:
input:
k_db = config["rdir"] + "/cluster_category_DB/k_cons.index",
cl_cat = config["rdir"] + "/cluster_categories/cluster_ids_categ.tsv",
threads: 28
params:
mmseqs_bin = config["mmseqs_bin"],
kaiju_bin = config["kaiju_bin"],
mpi_runner =... | [
"chiara.vanni5@gmail.com"
] | chiara.vanni5@gmail.com |
36a1be7242226800cc31878126d2dc7d4c40a3c6 | 5ae1aff4d4b8c6e7d8aa0cb2065cdd42335c9250 | /a.pyw | 5f9d312fb6ef84c3e6c0383715f2a857102234eb | [] | no_license | ShadowMaker07/Python-Keylogger | 108d6a4991e7170f202f620119f0882ce1ba90a3 | eaa22f43b9aacdc35556762b994d69f15d838936 | refs/heads/main | 2023-07-12T00:51:33.486743 | 2021-08-12T03:35:28 | 2021-08-12T03:35:28 | 395,184,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | pyw | from pynput.keyboard import Listener
def anonymous(key):
key = str(key)
if key == "Key.f12":
raise SystemExit(0)
if key == "Key.enter":
key = "\n"
if key == "Key.alt":
key = "\n"
key = key.replace("'", "")
with open("log.txt", "a") as file:
file.write(key)
print(key)
with Listener(on_p... | [
"noreply@github.com"
] | ShadowMaker07.noreply@github.com |
0fcc5a13fd81c3f9c2206bd9e4d9545b3032f2f3 | 7954a82026c982aba15c5195317fb49231cc6937 | /code/SSVIUnconstrained.py | 5f23dfa3b6d45d64e1b951977f0ee1677293ac2b | [
"BSD-3-Clause"
] | permissive | mChataign/Beyond-Surrogate-Modeling-Learning-the-Local-Volatility-Via-Shape-Constraints | 81c7f2639e9ac3d57d2c29ba10be0596a6514ce9 | 63304824c5775927b7495383ec2c9cd0277e5845 | refs/heads/Marc/GP | 2023-05-25T04:48:45.665335 | 2021-06-15T10:06:59 | 2021-06-15T10:06:59 | 314,231,951 | 17 | 10 | BSD-3-Clause | 2021-04-14T17:20:15 | 2020-11-19T11:48:47 | Jupyter Notebook | UTF-8 | Python | false | false | 39,035 | py |
import numpy as np
import pandas as pd
import scipy
import matplotlib.pyplot as plt
import scipy.optimize as opt
from sklearn.metrics import mean_squared_error
from datetime import datetime
from scipy.optimize import minimize
from scipy import integrate
import BS
import bootstrapping
import sys, os
import time
imp... | [
"marc.chataign@gmail.com"
] | marc.chataign@gmail.com |
25eaf0a29411821417765885863acfd5166a02e3 | 7298d1692c6948f0880e550d6100c63a64ce3ea1 | /deriva-annotations/catalog99/catalog-configs/Vocab/ihm_residues_not_modeled_reason.py | 9a62ee7fbe832a6a342ee44c46b17d4607a9f500 | [] | no_license | informatics-isi-edu/protein-database | b7684b3d08dbf22c1e7c4a4b8460248c6f0d2c6d | ce4be1bf13e6b1c22f3fccbb513824782609991f | refs/heads/master | 2023-08-16T10:24:10.206574 | 2023-07-25T23:10:42 | 2023-07-25T23:10:42 | 174,095,941 | 2 | 0 | null | 2023-06-16T19:44:43 | 2019-03-06T07:39:14 | Python | UTF-8 | Python | false | false | 5,585 | py | import argparse
from deriva.core import ErmrestCatalog, AttrDict, get_credential
import deriva.core.ermrest_model as em
from deriva.core.ermrest_config import tag as chaise_tags
from deriva.utils.catalog.manage.update_catalog import CatalogUpdater, parse_args
groups = {
'pdb-reader': 'https://auth.globus.org/8875a... | [
"brinda.vallat@rcsb.org"
] | brinda.vallat@rcsb.org |
f4144879abb95c5a24464b291c1a13b6c973d8f5 | 9ca1ed4689a90b880c2ffcf18661bccedc62e8d6 | /BeautifulSoup1.py | c714f658017e46b5fa77706a6ce92e554085bcfe | [] | no_license | Beena1995/hello-world | c7e77a6b1569cbf7988f21f8dd4a4509a080ac60 | 1fd207bc2fb49dd7ae537645cffe17fc6900e41c | refs/heads/master | 2021-05-03T12:15:08.527619 | 2016-10-06T08:17:26 | 2016-10-06T08:17:26 | 70,133,029 | 0 | 0 | null | 2016-10-06T08:14:15 | 2016-10-06T07:39:03 | null | UTF-8 | Python | false | false | 292 | py | import urllib
from BeautifulSoup import*
url=raw_input('Enter url:')
html=urllib.urlopen(url).read()
soup=BeautifulSoup(html)
tags=soup('a')
for tag in tags:
print 'TAG:',tag
print 'URL:',tag.get('href',None)
print 'Content:',tag.contents[0]
print 'Attrs:',tag.attrs | [
"noreply@github.com"
] | Beena1995.noreply@github.com |
24c9430411ba12db5d1fb7f0ac009a54a6d48284 | f69aa4ac2d92102a2cc9081f6acde24f5a1125ae | /base/session5_dict.py | c9db5095044fdba3c2658c0bb787834a39e60224 | [] | no_license | jobpool/python_learning | 9af5fd102c7698b417763c6c80947a276fc3db89 | 4e4c96d9eb1be31339c5675b6878f7ca4be83d09 | refs/heads/master | 2022-12-08T13:15:16.586731 | 2020-09-05T03:52:23 | 2020-09-05T03:52:23 | 287,920,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 906 | py | # #字典的定义
# d1 = {"a":1,"b":2}
# print(type(d1),d1)
# #键值是唯一的
# d2 = {"a":1,"b":2,"a":3}
# print(d2)
# #键值为字符串、数字、元组,不能是列表,要求不可变数据类型
# d3 = {"a":1,2:"b",(3,4):"c"}
# print(d3)
# #访问字典
# d4= {"a":1,"b":2}
# # print(d4["c"])
# # print(d4.get("c",0))
# print(d4)
# print(d4.pop("b"))
# print(d4)
# #添加键值到字典
# d5 = {"a":... | [
"feilongs@microsoft.com"
] | feilongs@microsoft.com |
7d8b85fbd6ee38f75738a568080c51ef08cbef54 | 2499c41e3c8cee44cdf5fed3ac917b921306c537 | /features/environment.py | d0b7b79184a56b0bab57707c098a15764dfc3126 | [
"BSD-3-Clause"
] | permissive | aduston-snaplogic/nextbus_client | 27fb4f45f5b9ab6b0b8d0af532db192235d17c81 | b9f69e38683d22a832d93bbd98f561a1b7e51358 | refs/heads/master | 2021-09-03T09:14:41.069777 | 2018-01-08T00:47:50 | 2018-01-08T00:47:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,502 | py | """
environment.py - Set up the environment for the behave tests.
"""
import nextbus_client
import pickle
def before_all(context):
# Configure the client
context.client = nextbus_client.Client()
context.base_url = context.client.api_url
context.headers = context.client.headers
def before_feature... | [
"adamduston@gmail.com"
] | adamduston@gmail.com |
fdad88fdb6c73ddb643e0f4ef0fbe3221a259018 | 7afbfd3bd0f6c205546b5b159a03f5a10637d28e | /Part2B_hsn1017_eunzle95.py | 7e3b94be6a3fae139fffd3c35ca501ab8e2d8529 | [] | no_license | eunzle95/Project1_blog | 9bbf84707502701f9b94457d03f40b9809f6e232 | 71a97fc48658dcae31db212520f857ea18869ee8 | refs/heads/master | 2020-08-11T07:02:12.054980 | 2019-10-11T21:42:14 | 2019-10-11T21:42:14 | 214,514,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,039 | py | import re
symbols = ['AAPL', 'HP', 'IBM', 'AMZN', 'MSFT', 'GOOGL', 'INTC', 'CSCO', 'ORCL', 'QCOM']
# example input
# (34 AAPL shares buy at max 780, 24 IN shares sell at min 228) for account Hokie123
# (AAPL shares cancelled, IBM shares cancelled) for account Hokie123
s = raw_input()
# trades = 34 AAPL shares buy a... | [
"hsn1017@vt.edu"
] | hsn1017@vt.edu |
b83f94235e23af5608c2cf8417a4d8a871840a23 | ae8e406cd4ece587f124895193661da66ae051d7 | /Bigflow/BranchExp/tasks.py | f8feb188a780afaf447db6e29870528e7ff4c46d | [] | no_license | vigneashvicky/Bigflow | 9dfaa4b94426973ef2f2972e84ed87dfeda93771 | eec202312b482f191dd40111c473e636e0aa6978 | refs/heads/master | 2022-12-12T00:14:04.619978 | 2020-03-17T09:43:10 | 2020-03-17T09:43:10 | 235,542,581 | 0 | 0 | null | 2022-12-08T01:05:14 | 2020-01-22T09:47:31 | HTML | UTF-8 | Python | false | false | 558 | py | from __future__ import absolute_import, unicode_literals
from celery import task
from django.db import connection
import pandas as pd
@task()
def task_number_one():
cursor = connection.cursor()
parameters = ('SUPPLIER_DETAILS',2,1, '')
parameters = ('COLUMN', 'ECF_INSERT', '{}', 'Y',
'{"Entity_Gid": [1]}'... | [
"vigneasraju@gmail.com"
] | vigneasraju@gmail.com |
6b671ac29a86fe4af2a6cb41bb64ef17873657cf | c82e0c7ccb30e4f36c58957799e3a771efaff489 | /btre/btre/settings.py | a71715265daa4ef05e5fe3d6ebfebc1bf7ad5098 | [] | no_license | kneeyaa/btre | 36bf54811281d8c1a9918e9f39a44e9096324cb5 | c3973e0c231d0f3d28c00b193e742a82408e0d29 | refs/heads/master | 2022-03-29T11:09:14.263730 | 2019-11-03T07:17:26 | 2019-11-03T07:17:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,955 | py | """
Django settings for btre project.
Generated by 'django-admin startproject' using Django 2.2.6.
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/
"""
from django.con... | [
"220497+KrNiYa@users.noreply.github.com"
] | 220497+KrNiYa@users.noreply.github.com |
9b73734f9b2847b7b4edc6471bd2b3c3589280cf | 94e210718afb2e9d5b4babc938adf89cd387bae7 | /Una_Quest/users/models.py | 62dc738dd4521ecb83a5907786b0af4d63aa7fc1 | [] | no_license | davidapdf/UnaQuest | 8c1da0a553a580846eaab839dd3d49ae9b3c8f38 | c725caaab5d79499e540d612f500d99bf409005a | refs/heads/master | 2022-11-02T15:06:18.254716 | 2020-06-15T23:46:01 | 2020-06-15T23:46:01 | 263,780,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,169 | py | from django.db import models
from django.contrib.auth.models import User
from django.contrib import admin
from django.forms import CheckboxSelectMultiple
class Unidade(models.Model):
cidade = models.CharField(max_length = 200)
estado = models.CharField(max_length = 2)
descricao = models.TextField()
... | [
"davidalexandre@live.com"
] | davidalexandre@live.com |
e752a0802891174af75fc03ead6bf8975f0782ba | 19274b29218a3bff5342c725cd667992fb6bb449 | /stage1_classify/classfication.py | 966db8a36f2e554e0684602416064a7e37538a8b | [] | no_license | qvbit/News-Event-Extraction-System | 64dcae715fce5e33503f039734c8c218bce6630e | e592917891bcfb361c367ddad7c13247e95378ef | refs/heads/master | 2020-04-05T20:47:22.779473 | 2019-02-04T14:54:12 | 2019-02-04T14:54:12 | 157,195,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,378 | py | import pandas as pd
import numpy as np
import pickle
import itertools
import functools
import collections
import random
from sklearn.linear_model import LogisticRegression
from sklearn import svm
from sklearn import tree
from sklearn.ensemble import RandomForestClassifier
from sklearn.model_selection import Stratified... | [
"noreply@github.com"
] | qvbit.noreply@github.com |
d3ae04ec689b0df5817ece49cecea5ae6c4698d0 | 54fb38832e2f06a376c02d0fb106b5a9321279c9 | /korwin.py | 201dbde8a11525196493caad24f9bfb329365908 | [
"Unlicense"
] | permissive | sqbi-q/korwin | 6c73cbf5c93fe6a0cdebb68505ebfa3d4e364849 | c3762e1c9210710c59d7d59644bd023ab7ea4856 | refs/heads/master | 2023-01-23T03:40:57.526261 | 2020-12-04T08:38:14 | 2020-12-04T08:38:14 | 261,270,327 | 0 | 0 | Unlicense | 2020-05-04T18:57:21 | 2020-05-04T18:57:20 | null | UTF-8 | Python | false | false | 6,051 | py | from random import choice
parts = [
[
"Proszę zwrócić uwagę, że",
"I tak mam trzy razy mniej czasu, więc prosze pozwolić mi powiedzieć:",
"Państwo się śmieją, ale",
"Ja nie potrzebowałem edukacji seksualnej, żeby wiedzieć, że",
"No niestety:",
"Gdzie leży przyczyna p... | [
"stefankar1000@gmail.com"
] | stefankar1000@gmail.com |
4b28b8979101e0dd287e1c26d062c0b3d58b0f82 | 6ebe5412b16bb48d89b9e7e3268dc5712a05bc75 | /app.py | 8a1442f41d1d633179a3f29ae8847204b1becb0e | [] | no_license | Nishanbuyo/car_prediction | d850cf2f6d61ea181a27ed17e31a1c991e71937f | d7f7552db39e5b54950f6f39679e13d3f2c42149 | refs/heads/master | 2023-01-12T15:47:14.556471 | 2020-11-06T11:31:57 | 2020-11-06T11:31:57 | 310,578,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,021 | py | from flask import Flask, render_template, request
import jsonify
import requests
import joblib
import numpy as np
import sklearn
from sklearn.preprocessing import StandardScaler
app = Flask(__name__)
model = joblib.load('linear-regressor.joblib')
@app.route('/',methods=['GET'])
def Home():
return render_template('... | [
"nishanbuyo05@gmail.com"
] | nishanbuyo05@gmail.com |
f0170ac151345298ff4e2d5ba825617e0b46da30 | 597c0143c3ff325f2bd13e915623f6b5b29dcec9 | /p35.py | fdb51ee0232a5b205bdcf312e25061b3b43391d0 | [] | no_license | jpgerek/projecteuler | 77949426d629c0be629857958c28f451961d1608 | 79e35a8e6149946769149714607556238bfe12ed | refs/heads/master | 2016-09-05T14:09:45.821755 | 2013-02-01T19:34:41 | 2013-02-01T19:34:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | import math
import itertools
from euler import is_prime, gen_primes
def is_circular_prime(prime):
digits = [c for c in str(prime)]
for x in xrange(0,len(digits)):
digits.append(digits.pop(0))
rotated_num = int(''.join(digits))
if not is_prime(rotated_num):
return False
return True
print len([prime for pr... | [
"juanpablo@guereca.com"
] | juanpablo@guereca.com |
d8eaaea2b3882116225b2f51d86ed91ade2b2d10 | 3df6fe86c55315e4c29a06c7ce010999ef2bd219 | /my_app/migrations/0005_auto_20200814_1856.py | 8d45533ee18d59287d6c27ddcb3ce598782e00fa | [] | no_license | sjyothip/my_projects | 05ae591717caa95da598f23cfc93868cd380855b | 3755854519221ab08e89e7b0de3cff04ce8bc418 | refs/heads/master | 2022-12-08T09:38:44.878420 | 2020-08-31T11:52:38 | 2020-08-31T11:52:38 | 290,250,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 584 | py | # Generated by Django 3.1 on 2020-08-14 13:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('my_app', '0004_messages'),
]
operations = [
migrations.AddField(
model_name='messages',
name='profile_pic',
... | [
"jyothis1304@gmail.com"
] | jyothis1304@gmail.com |
8b5ba43ea0cb1a80285b264a1c64c0896cc7703c | 6f7e55851425097567637e0667d8407a6c7c6666 | /tweets/migrations/0009_auto_20210602_2211.py | 128ac2f934c458857c1952004d640810e5b88369 | [] | no_license | sumit9mishra/tweeter-clone | 00733e7aa4c92c13b55abd79bb0703bbe7570428 | 0b64e50907eb32c07dc0099b9144514af18a13ef | refs/heads/main | 2023-05-07T08:00:22.068384 | 2021-06-02T23:42:20 | 2021-06-02T23:42:20 | 372,466,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | # Generated by Django 3.0 on 2021-06-02 16:41
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('tweets', '0008_auto_20210602_2159'),
]
operations = [
migrations.AlterField(
model_name='tweet',
... | [
"sumitmishrab@gmail.com"
] | sumitmishrab@gmail.com |
8e04da130720a7160ddbfe0643e293f23d80cc2b | f158e45c3359882b68b00bdf11b44ed5e2ef509e | /myvenv/bin/markdown_py | 5448d827bfe118ca7bacdac8c5f8d872d1e48159 | [] | no_license | idie11/delevery | 65b7ce7682f0e5e403df244407fdc3ad2d51a588 | 9f0715e53a4d09f02477a5f3629ce9a13d9db86b | refs/heads/master | 2023-06-04T02:41:25.280341 | 2021-06-23T14:39:15 | 2021-06-23T14:39:15 | 379,633,695 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | #!/home/idie/Desktop/delevery/myvenv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from markdown.__main__ import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"aidaitazabekova@gmail.com"
] | aidaitazabekova@gmail.com | |
f204104b60002eee4665f79f8e218ef2c862bc5a | 9cb6c9f95449e6321566d65081d7b83ad1923ed7 | /src/item_recommender.py | 68d9f4b3968e50eeea4336c2300de43009684722 | [] | no_license | yamasjose11/tedtalk-recommendation-system | 8bf866c5cc697c6e8b81572368e1c77afa629524 | 8d37dbbced9987d02c1af3f3403106994608cfa4 | refs/heads/main | 2023-02-24T22:42:02.336433 | 2021-02-02T18:18:19 | 2021-02-02T18:18:19 | 333,611,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,835 | py | from sklearn.metrics.pairwise import cosine_similarity
import pandas as pd
import numpy as np
class ItemRecommender():
'''
Content based item recommender
'''
def __init__(self, similarity_measure=None):
self.similarity_matrix = None
self.item_names = None
if similarity_measure ... | [
"yamasjose11@gmail.com"
] | yamasjose11@gmail.com |
ff6e723cffc4626cbc971d1900ff2668dc155b64 | 5ea8955f860a3a664a8c778e7cf41f024949b73d | /blog/migrations/0001_initial.py | fe1ace398611955eb95b0e25c016002fb3ec2724 | [] | no_license | deolands/my-first-blog | 3a881c4a1051442cf424a9724d728fdc3528d8e0 | b14051d8ca336d813d68cc92207dc19d3c703771 | refs/heads/master | 2020-06-19T11:58:55.592977 | 2016-11-27T20:58:51 | 2016-11-27T20:58:51 | 74,906,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,051 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-11-27 18:22
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
depe... | [
"deolands@gmail.com"
] | deolands@gmail.com |
51655665cb92a20e135645e272c7062cdcbd2bed | cf2fa0441e83e246c406afacd153b060069da757 | /setup.py | 842336cf8a796d8bd5d3270b0496cc9c20739777 | [] | no_license | NSO-developer/ncs_pycli | c41b7d586bc4ba5fd24f9cdfb95dd9324be9360e | 1a2415136c3f2d2495d7f28b06a2a36831592a67 | refs/heads/master | 2022-09-04T06:12:02.889927 | 2022-08-08T05:31:13 | 2022-08-08T05:31:13 | 137,266,751 | 21 | 6 | null | 2022-08-08T05:31:14 | 2018-06-13T20:25:20 | Python | UTF-8 | Python | false | false | 1,662 | py | from setuptools import setup, find_packages
from os import path
from io import open
here = path.abspath(path.dirname(__file__))
reqs = []
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
with open(path.join(here, '.version'), encoding='utf-8') as f:
version = f.read... | [
"kirankotari@live.com"
] | kirankotari@live.com |
d403e1d92d5fada8b340149b66f4add0b2857bc3 | 3e9830b5db4e2a51885e4481f75f8b367ef90c69 | /app/app/seeder/seed_pasien.py | 772366ed47c3bb30a666208844adfdd70198b406 | [] | no_license | dickymahfudin/sistem-rumah-sakit | 280c2b296440798da85109b57b7033a18e57a1cd | b1ff1c146b666e04258ce7fc34c389b4c261691e | refs/heads/master | 2023-04-05T16:49:08.790493 | 2021-04-22T05:21:24 | 2021-04-22T05:21:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | import random
from sqlalchemy.orm import Session
from .base_seeder import faker
from ..crud.crud_pasien import crud_pasien
from ..schemas.pasien import PasienCreate
def seed_pasien(iter, db):
for i in range(iter):
pasien = PasienCreate(
nama=faker.name(),
alamat=faker.address(),
tanggal_lahir=f... | [
"hadyanadamn@gmail.com"
] | hadyanadamn@gmail.com |
d2a83892c3da43a12e920ca1f2e2c8d6ddbaa060 | 0578860df5538f6e3ab6d65809566fd19012923f | /drf_demo/settings.py | acbb4408afe336945960369b6294efc2e557b23d | [] | no_license | otykhonruk/drf_demo | 735e7686003ed3c8ec95ebec735b350a111beb12 | 8037492519b205b7601d01a9cc2dc319a85cff1e | refs/heads/master | 2022-07-20T15:16:28.178062 | 2016-07-26T13:39:25 | 2016-07-26T13:39:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,209 | py | """
Django settings for drf_demo project.
Generated by 'django-admin startproject' using Django 1.9.8.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import os
... | [
"a.tihonruk@gmail.com"
] | a.tihonruk@gmail.com |
87029e6698765d7c798ef1ff788ce84fbba0d878 | e120a272e3a94170f013af5a8f763519ccedc725 | /backend/api/tests/tests_user.py | 4afc7b7014801b58142611a9c71b4f85eeac039a | [
"MIT"
] | permissive | ardilom/project_template | e318248fc4182fbb32819f255543c65e30bc4103 | e42fbf73da7037074f160a31201cae70d7a027dc | refs/heads/master | 2022-12-11T13:29:49.072417 | 2020-09-13T12:31:08 | 2020-09-13T12:31:08 | 295,138,469 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | # django
from django.urls import reverse
# models
from backend.api.models import User
# django rest
from rest_framework.test import APITestCase
class OKUserCreationTestCase(APITestCase):
def setUp(self):
self.name = "Test"
self.last_name = "User"
self.email = "testuser@gmail.com"
... | [
"fardila120@gmail.com"
] | fardila120@gmail.com |
beed92594803d776a2364c3b3f53324fd5b2ace0 | 2d6940c2560d89f2fc9bf2015c502ad0f1946824 | /Class_Python.py | 5be935c66354d4f43af8c77ac38c4d164dc59259 | [] | no_license | 101guptaji/Python-programmes | 40b12de60d75f31254ec9a52580142a17ea3f214 | 81a5d8ea8ce498e4e1f2884818a0e39762832fa2 | refs/heads/main | 2023-04-02T06:42:39.177640 | 2021-03-23T18:01:02 | 2021-03-23T18:01:02 | 350,808,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | class Apple:
def __init__(self, color, flavor):
self.color = color
self.flavor = flavor
def __str__(self):
return "This apple is {} and its flavor is {}".format(self.color, self.flavor)
myapple=Apple("red", "sweet")
myapple.color="blue"
print(myapple) | [
"noreply@github.com"
] | 101guptaji.noreply@github.com |
c2f4971c5d784ab25b2d6261a4fdee728004dbae | 92a69414a998830520d8b3de2eb708f61e472249 | /venv/Scripts/pip-script.py | d6835ac03f979f48e608277442cd85665aa3fe10 | [] | no_license | DiegoMeruoca/Python5-Funcoes | cb8e78e8312f0c0d9dc0534d1cdfe5cf50c6bf82 | b5f3def59daa2d5bbf4139eb2670be9214af6409 | refs/heads/master | 2021-01-26T10:55:07.963072 | 2020-02-27T02:30:48 | 2020-02-27T02:30:48 | 243,412,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | #!D:\ETEC\DS1\Exemplos\Funcoes\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip'
__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)?$', '', sys.argv[0])... | [
"diegomeruoca@gmail.com"
] | diegomeruoca@gmail.com |
24b2aea0aa16cdbdddcd6e00440f47ffd682e8d4 | ddb48f204fefb1886818d8f337e64b608a874f78 | /mymodule.py | 4bb8392762ed4a6703e01012adc7cba9421d76ba | [] | no_license | AlexandrKarpov712/Projects | 71edb63b6a3bafdbf20e4ce274ecbbee89f5f74d | 057c3f78245b3fcf2edb4155067692a8b11b4b49 | refs/heads/main | 2023-03-26T01:49:20.622688 | 2021-03-28T20:06:27 | 2021-03-28T20:06:27 | 345,642,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,617 | py | """Module for the most frequently used operations in homeworks.
Classes: TreeNode
Functions: text(g), write_to_file(data, filename="./text.txt"),
read_from_file(filename="./text.txt"),
choose_task(step, func1, func2), __init__(self, value),
choose_task_3(step, func1, func2, func3)
"""
def text(g... | [
"noreply@github.com"
] | AlexandrKarpov712.noreply@github.com |
2e730b1cf94aef703f29d97960597a7988937916 | 110287a9411047697fdb1371a7034f8781363562 | /f2c_file_read_write.py | a392fc974d2deb44fd6599367d9e620dfe4290c3 | [] | no_license | chipperrip/IN1900 | d791c04f94607cedfe5a4ae5fb34b83475cb73cf | 76603e6a6cbf1022913e435a217a45032c02b6fc | refs/heads/master | 2020-03-29T09:30:57.714458 | 2020-02-03T17:23:30 | 2020-02-03T17:23:30 | 149,761,841 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | infile = open('Fdeg.dat', 'r')
for i in range (3):
infile.readline()
Fdegrees = []
Cdegrees = []
for line in infile:
F = line.split()[-1]
F = float(F)
C = (F-32)*5.0/9
Fdegrees.append(F)
Cdegrees.append(C)
print (Fdegrees)
print (Cdegrees)
infile.close()
outfile = open('F2C.txt', 'w')
fo... | [
"36035495+chipperrip@users.noreply.github.com"
] | 36035495+chipperrip@users.noreply.github.com |
53b3420227436ab63200c35eefa33a3bff01cdd4 | ab933602ef9f962e7626edc2b4a600be4bc15a31 | /test/test.py | dff54603e85627ff201e11d4de530ded9236d0d6 | [] | no_license | ksahlin/scaffolder | 0f0d2c00214c103937b8e8d2e44f3fa156caa2b5 | cd4f12aa974e352359a8be8b631c83a5b1a358f7 | refs/heads/master | 2020-03-30T10:31:08.149995 | 2014-01-05T20:09:27 | 2014-01-05T20:09:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,865 | py | from besst.sequence import Scaffold
from besst.sequence import SubSequence as ss
from besst.sequence import Contig
from besst import score
from besst import interval
from besst.graph import SequenceGraph as g
from besst.graph import LinearPath
from besst.util import parse_input
# we are reading lines from a file with ... | [
"kr_sahlin@hotmail.com"
] | kr_sahlin@hotmail.com |
be25ea7ab890f57eea2e7098823dc03d47143732 | 473ecdb25e6b877cacc66028b9834f1cef7b4ffa | /C_extractor.py | 6b3ee513f489ac53d579239b23812f6ffefc5e34 | [] | no_license | Charlie-Toro/automate-Python | 0affa1b173eb0025572c60bb2bd1be97b6267c4d | 373621b21ac16ab88a4fd149e46789527c54613c | refs/heads/master | 2021-01-23T10:44:32.788218 | 2017-06-05T01:40:37 | 2017-06-05T01:40:37 | 93,088,842 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | # Contact Extractor
# Caleb Bell
# Extracts phone number and email address from text
import re,pyperclip
class Extractor:
"""uses regular expressions to extract data from clipboard"""
def __init__(self):
def email_extract(text):
phone_regex = re.compile(r'\d{3}-\d{3}-\d{4}')
| [
"charles_toro@mail.com"
] | charles_toro@mail.com |
9bc0203a5ad7b9018aa6800ff71449d5b924bcca | d34f3c73c4ed804f48fbed476f22013e5d951daa | /web/django_poll/polls/urls.py | ad26bb531c0dfb24ffe05ff50e2e6a77acc9fa63 | [] | no_license | brxue/sandbox | 7ad7ea76130f0edc2ff9fc62c192131fce1242d1 | a9cc9edd9e2233b1b90c822edd43c3c480385c58 | refs/heads/master | 2021-06-18T17:14:18.698560 | 2017-06-19T15:25:53 | 2017-06-19T15:25:53 | 13,215,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | from django.conf.urls import patterns, url
from polls import views
urlpatterns = patterns('',
# example: /polls/
url(r'^$', views.index, name='index'),
# example: /polls/5/
url(r'^(?P<question_id>\d+)/$', views.detail, name='detail'),
# example: /polls/5/results/
url(r'^(?P<question_id>\d+)/res... | [
"brxue@outlook.com"
] | brxue@outlook.com |
bf77986a8e164ee56fb39537757225beeb6c2aff | ad8de5acb466940c53c92fdd08f3003581e76f56 | /BookStore/admin/models.py | 9cb346042f295eae21bfc9c2ed130bc7a37d6f1b | [
"Apache-2.0"
] | permissive | peter-dinh/Bookstore | 0343e3be9aff079589c728f6e97fa53e27b16a7c | b46b2d6a74f7182128f37ad86afc594ef888a153 | refs/heads/master | 2022-12-11T16:03:47.745078 | 2019-01-14T18:19:36 | 2019-01-14T18:19:36 | 162,212,257 | 0 | 0 | Apache-2.0 | 2022-12-08T01:30:12 | 2018-12-18T01:26:36 | JavaScript | UTF-8 | Python | false | false | 313 | py | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Account(User):
display_name = models.CharField(max_length=200)
phone = models.CharField(max_length=10)
address = models.CharField(max_length=200)
is_admin = models.BooleanField(default=False) | [
"dinhtruong018@gmail.com"
] | dinhtruong018@gmail.com |
73cf7cad52d0463b57d1ecf16f881b12da289fbd | 102f42fc41326e89ff2cfdfb227d57e122c78800 | /prime.py | 04aef932140d124e6731a95f3f03b0590956fdd7 | [] | no_license | yamatharman/guvi | ca741917385cc6c4ef8631308397f8ca5865060f | 3351ab1af30a62c052ba9a385679f0b6b33cf47b | refs/heads/master | 2020-03-27T17:42:43.390166 | 2019-02-20T05:48:28 | 2019-02-20T05:48:28 | 146,868,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | #prime.py
num = int(input())
if num > 1:
for i in range(2,num):
if (num % i) == 0:
print("no")
break
else:
print("yes")
else:
print("Invalid")
| [
"noreply@github.com"
] | yamatharman.noreply@github.com |
26604b1e653b586dcc138356474bf5459ea54e2e | 604fdb2c4fa24237d206e7c8835bb2c21b0a2fb7 | /ari/v1/client.py | 0f438dfd979c9fed793cc6fef8f04f0b37e2bc6d | [
"Apache-2.0"
] | permissive | SibghatullahSheikh/python-ari | d8d87d213c1a52b0ed46a8ea50362b93c772325b | f4a6f870513bc74bf96606168e0d2173ed2f2ebb | refs/heads/master | 2021-01-22T00:13:37.707863 | 2014-01-29T21:06:52 | 2014-01-29T21:06:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,344 | py | # -*- coding: utf-8 -*-
# Copyright 2012 OpenStack LLC.
# Copyright (c) 2013 PolyBeacon, 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.... | [
"paul.belanger@polybeacon.com"
] | paul.belanger@polybeacon.com |
635432b0aa0919407d0eb764a68554525275005c | fb1e23ceaccb3d4b5b648bdc8b6996ad17e46b38 | /murr/settings.py | af9ec47dc3d9835d5ca1ff3537ba312861af195f | [] | no_license | 100ika/murr | 91e7fb6c39ab505a5f883995db0195ac34f1b047 | cc60b95fdac9416a2ce3d00ec2589ae1a99444d9 | refs/heads/master | 2021-09-23T12:23:11.952888 | 2020-02-04T17:41:48 | 2020-02-04T17:41:48 | 238,261,720 | 0 | 0 | null | 2021-09-22T18:30:27 | 2020-02-04T17:15:42 | Python | UTF-8 | Python | false | false | 3,082 | py | """
Django settings for murr project.
Generated by 'django-admin startproject' using Django 3.0.2.
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
# Bu... | [
"59304702+100ika@users.noreply.github.com"
] | 59304702+100ika@users.noreply.github.com |
7421d257613858f51cd4d9f3382df003b0be3f51 | e7ea4919d8663b0c69c57106be2d1e2c0d1aecb6 | /greedy_20.py | 5e7732f22d3a30b7451c097dd5b3689c541cd0a3 | [] | no_license | johnrso/new_170_proj | 74ad6a0b6be53583e1b284bed57365ecc6798483 | d73676947e8059c9f6d5129e474f698b8f21ced2 | refs/heads/main | 2023-01-22T07:05:10.798575 | 2020-12-07T00:20:11 | 2020-12-07T00:20:11 | 319,007,434 | 0 | 1 | null | 2020-12-06T11:11:49 | 2020-12-06T10:35:42 | Python | UTF-8 | Python | false | false | 3,800 | py | import sys
import os
import getopt
import glob
import math
import timeit
import random
import multiprocessing as mp
from utils import *
from parse import *
from os.path import *
ITERATIONS = 10 ** 5
def greedy_solve_20(G, s):
curr = {}
rooms = {}
best_happiness = 0
for i in range(20):
curr... | [
""
] | |
e6ae49348338fd374b8ee8d340fdec8e4ded1ca5 | 76655119513727111fa16890640a46ec143f3290 | /Lab-4/lab4.py | 58fcd8952c64803676011d63ab109c2567193084 | [] | no_license | HovishBalgobin/SYSC3010_Hovish_Balgobin | 6daac4edc0d291fb20fb5d65af8917302c417282 | 4bb2305fdbaebb59b3a498082861bac0d0bda757 | refs/heads/master | 2022-12-26T21:02:48.841069 | 2020-10-09T19:08:05 | 2020-10-09T19:08:05 | 295,850,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,219 | py | from sense_hat import SenseHat
from time import sleep
counter = 0
sense = SenseHat()
## creating a variable to make use of the SenseHat in-built functions
sense.clear()
## clearing the display
purple = (148,0,211)
##creating purple using the RGB values
def show_H():
sense.show_letter("H",back_colour= purple)
#... | [
"hovishbalgobin@cmail.carleton.ca"
] | hovishbalgobin@cmail.carleton.ca |
a74af5013611c1d1945d2e4250a4c532a725e0bd | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_6404600001200128_0/Python/kawasaki/solve.py | 13028d9808e7f822dbd94054186f11d1384f2212 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | T = int(raw_input())
for test_index in xrange(T):
N = int(raw_input())
m = map(int, raw_input().split())
y = 0
for i in xrange(N - 1):
y += max(m[i] - m[i + 1], 0)
d = max(max(m[i] - m[i + 1], 0) for i in xrange(N - 1))
z = 0
for i in xrange(N - 1):
z += min(d, m[i])
pr... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
cc1215a5f8506aa20763f0de669445ebd84802b5 | d76b52cdddad23c0c5746a71e16978350c84d359 | /src/model/inception_v4.py | 7cdf540d3a1903548d01bb3c53fc22b1b1846f77 | [] | no_license | Mahedi-61/kaggle_dogs_vs_cats | af24454c9bcf3ae21657a4fa2c98394791fd3878 | 2604d5ffef0f347c55030c741fbd99789b435b1e | refs/heads/master | 2021-09-07T06:07:00.960617 | 2018-02-18T13:45:33 | 2018-02-18T13:45:33 | 118,255,946 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,613 | py | '''
Copyright 2017 TensorFlow Authors and Kent Sommer
'''
#########################################################################################
# Implements the Inception Network v4 (http://arxiv.org/pdf/1602.07261v1.pdf) in Keras. #
#############################################################################... | [
"mahedi0803061@gmail.com"
] | mahedi0803061@gmail.com |
68416e62dea54f46e7ba4cf6455434a962307eaf | a079a2b493095b354d3f5ec09a9fccddd4de0a6a | /youtubetracker/management/commands/populate_viewsapi.py | b222d8b0289179e5433387a662063abd4caf6022 | [] | no_license | benjo430/youtube-tracker | 96d5f2798f93214abd9d61e1b5a6925a3c4c5186 | 9392df7406b55cb72fad7a7eedd476c4ef0ec761 | refs/heads/master | 2021-01-19T08:46:16.332966 | 2017-04-11T03:34:35 | 2017-04-11T03:34:35 | 87,673,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,728 | py | from django.core.management.base import BaseCommand
from youtubetracker.models import Video, Viewcount
import requests
from lxml import html
import time
import datetime
import urlparse
import json
from parse import *
from datetime import timedelta
class Command(BaseCommand):
# This class allows us to run database pop... | [
"benjo430@gmail.com"
] | benjo430@gmail.com |
a304c942ed7c7626de03bb882fa1f3874e28c124 | c9aa803d2aac3f68f8b7b43e1cb4b7eeeb808292 | /framework/interface_expert.py | bb183a46ad71a0111191c8f58940e5f44731cd7b | [] | no_license | JannisWolf/deep_q_learning_trader | 6bc1e60aba61a82005025b0827746551ba1816ce | 5daa9b7c28b884d261674a499455ea2face0776a | refs/heads/master | 2022-11-25T07:59:41.659295 | 2020-05-17T12:15:39 | 2020-05-17T12:15:39 | 199,337,826 | 5 | 2 | null | 2022-11-21T21:31:56 | 2019-07-28T21:14:07 | Python | UTF-8 | Python | false | false | 594 | py | from abc import ABC, abstractmethod
from framework.stock_data import StockData
from framework.vote import Vote
class IExpert(ABC):
"""
Expert interface (abstract base class), that forces experts to have a vote method
"""
@abstractmethod
def vote(self, data: StockData) -> Vote:
... | [
"jannis.wolf@fau.de"
] | jannis.wolf@fau.de |
4263c48ffd860e12a9590234e84baa57b8698a54 | 1d49dd44b5cadc173bacbfbbbfc8facd5665066f | /utils/preprocessing.py | b03f803fee123f87d685d033c90c89344bf5c714 | [] | no_license | anushalihala/text_analytics_propaganda_detection | eee34d23589c4fdb2580ddfabb9b54c828137424 | bf6d64ed84d8ab79e5509c63bec7844b395b4436 | refs/heads/master | 2021-05-23T08:53:03.200357 | 2020-04-12T13:24:43 | 2020-04-12T13:24:43 | 253,207,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,665 | py | import numpy as np
from nltk.tokenize import sent_tokenize
from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer
def map_target(df, col_name='target'):
return df[col_name].map({'propaganda':1,'non-propaganda':0})
def tokenize_text(text, word_to_idx):
text = text.lower()
tokens = word_tokenize... | [
"35848893+anushalihala@users.noreply.github.com"
] | 35848893+anushalihala@users.noreply.github.com |
31c62fc913b614a426a1d11bfdb7c02603bd6e2b | 6096f62297b072c566a6572ac460eb75c4e439f3 | /人工神经网络实现/opencv预处理.py | fe350e967ffe833fedcbaa55a2d309d7a41056a6 | [] | no_license | kenan666/learngit | 7397810dc76b5fa5ec9d24ae060a7f8528f687f7 | e8da383991c21ae0e1ec28510d04f0cc76f1c729 | refs/heads/master | 2020-04-07T08:07:23.430761 | 2019-01-06T09:04:40 | 2019-01-06T09:04:40 | 158,199,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,061 | py | # 步骤 -》 load xml 文件 -》 load 图片 -》灰度处理 -》 检测 -> 遍历并标注
import cv2
import numpy as np
# load xml file
face_xml = cv2.CascadeClassifier('haarcascade_frontalface_default.xml')
eye_xml = cv2.CascadeClassifier('haarcascade_eye.xml')
# load jpg file
img = cv2.imread('face.jpg')
cv2.imshow('src',img)
#... | [
"1746740633@qq.com"
] | 1746740633@qq.com |
5d64b3ec43f8f8706fbb5bc2f4c1dea3573739ee | d6d87140d929262b5228659f89a69571c8669ec1 | /airbyte-connector-builder-server/connector_builder/generated/models/stream_slicer.py | 56c37db2c82d4d65076de8f3b5e19e85d772378d | [
"MIT",
"Elastic-2.0"
] | permissive | gasparakos/airbyte | b2bb2246ec6a10e1f86293da9d86c61fc4a4ac65 | 17c77fc819ef3732fb1b20fa4c1932be258f0ee9 | refs/heads/master | 2023-02-22T20:42:45.400851 | 2023-02-09T07:43:24 | 2023-02-09T07:43:24 | 303,604,219 | 0 | 0 | MIT | 2020-10-13T06:18:04 | 2020-10-13T06:06:17 | null | UTF-8 | Python | false | false | 527 | py | # coding: utf-8
from __future__ import annotations
from datetime import date, datetime # noqa: F401
import re # noqa: F401
from typing import Any, Dict, List, Optional # noqa: F401
from pydantic import AnyUrl, BaseModel, EmailStr, Field, validator # noqa: F401
class StreamSlicer(BaseModel):
"""NOTE: This c... | [
"noreply@github.com"
] | gasparakos.noreply@github.com |
7cb9bdbdeb9ae40bcb7cd2e41b2b4ef986fe95bb | 2cfe7df2684bae48175bc5fcdf9a56bc0f07f27f | /dm/tags/models.py | 89033b9a2f01152d593e75a1f0ea9ee606e44414 | [] | no_license | naveen0492/digital | b1bedc6fb99c54eddd681bc9a24dc134374310ad | 5eefb59314de3b8d6f5d5ea791d10826170e8f87 | refs/heads/master | 2021-01-01T07:40:38.746977 | 2017-08-07T20:48:53 | 2017-08-07T20:48:53 | 97,566,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,492 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
from django.db.models.signals import pre_save, post_save
from django.core.urlresolvers import reverse
from django.utils.text import slugify
# Create your models here.
from products.models import Product
class TagQuerySet(mo... | [
"naveen0492"
] | naveen0492 |
dd2e5c7bb3b8cf73d47ad7e62b333762de574f25 | 7a7b8dc77ce5f1a59270fb6d262e354f998175f5 | /old_contrib/v2/my_models.py | 29561edb0331873edf23b6889734b36d63eb8bb1 | [] | no_license | ismail0T/CE7454_project | 2b8f686f4e631293d0206b4edd62cadbd2d676b7 | d4c247d06633dcbd95c99fd00a83693103636a22 | refs/heads/master | 2020-08-01T22:40:29.072696 | 2019-11-17T03:53:37 | 2019-11-17T03:53:37 | 211,141,219 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 32,052 | py | import random
import torch
import torch.nn as nn
import torch.nn.functional as F
from tcn import TemporalConvNet
class ConvSimple(nn.Module):
def __init__(self):
super(ConvSimple, self).__init__()
self.n_classes = 5
self.conv1 = nn.Conv1d(1, 32, kernel_size=10, padding=1, stride=3)
... | [
"ict.lotfi@gmail.com"
] | ict.lotfi@gmail.com |
de883cc1f5cdb1aea8cfe37ce4a51db19552238b | 0937aff71737318be1535917deed0b87987c40f7 | /training_model.py | db69e61b187f571bf71b7b6e659790a3dd2e89f2 | [] | no_license | smemadi/aws_test | 6d6d90fa7f7c06bfafe68495b7d44a7e18e1db08 | 248818b0ad89217d29a3ecbb66d40c2e07bab15f | refs/heads/master | 2023-08-02T16:43:58.945227 | 2021-09-11T14:12:39 | 2021-09-11T14:12:39 | 405,395,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,108 | py | import pandas as pd
import numpy as np
df=pd.read_csv("train.csv")
df_test=pd.read_csv("test.csv")
def get_title(name):
if "." in name:
return name.split(",")[1].split(".")[0].strip()
else:
return "No title"
titles=set([x for x in df.Name.map(lambda x: get_title(x))])
def shorter_titles(x):
... | [
"sid.emadi@gmail.com"
] | sid.emadi@gmail.com |
deda890d588f085cc6b869fe7ddee7392ab6638d | 6dd524bf9d7879db62f86a62cceff3c5525fb2df | /setup.py | 3690959e6d5cf0d67db6cfa9e455099ee10f14b4 | [] | no_license | ecbaldwin/git-replay | 77a50ebc435f1d77f5f2f40bab8fb60aafc35236 | dbc6da675542c77ff6fd95d073bb637677987bb1 | refs/heads/master | 2020-04-03T23:52:50.085883 | 2018-11-01T02:27:10 | 2018-11-01T02:27:10 | 155,632,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 771 | py | #!/usr/bin/env python
# https://setuptools.readthedocs.io/en/latest/setuptools.html
from setuptools import find_packages
from setuptools import setup
setup(name="git-replay",
version="0.1",
description="Prototype utility to track a change in git",
author="Carl Baldwin",
author_email="carl@e... | [
"carl@ecbaldwin.net"
] | carl@ecbaldwin.net |
b0af8012a757037991610dc7af5768f0004a892a | d40aa60243a9c378adf7fee3e4a48639ac8d293c | /Session2/homework2/turtle2.py | 00df8f2bb6ee2130b3cab15669efea67221049b4 | [] | no_license | peekachoo/dangthuhuyen-fundamental-c4e25 | 0bc0a83b515518d1a50bf2bbf67d628c1eeae990 | 372b17e65fc19d1c80da85e8ca94c0579904c0ae | refs/heads/master | 2020-04-13T09:10:06.250844 | 2019-01-04T17:01:20 | 2019-01-04T17:01:20 | 163,103,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | from turtle import *
pencolor('red')
for i in range(4):
left(90)
forward(100)
for i in range(5):
left(60)
forward(100)
pencolor('blue')
left(120)
forward(100)
right(120)
forward(100)
left(132)
for i in range(4):
forward(100)
left(72)
mainloop() | [
"dhuyen135@gmail.com"
] | dhuyen135@gmail.com |
e188fe3e8363af471d648137e1b454dd8bea97e5 | bc9ecde6f62bf8b8f1217737c0b14d87c5e52ce2 | /ANN.py | f906cf0326f626712e9759bf56153486158d2673 | [] | no_license | Akshusharma7/Air_Quality_prediction | b2806c366b0e69a111f51858e00eac4e13f04fd1 | e90160446a4c2e1412679f46706d68ae814d7ae5 | refs/heads/master | 2020-09-23T14:29:35.506005 | 2020-02-23T12:42:35 | 2020-02-23T12:42:35 | 225,521,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,277 | py | #Importing library
import keras
from keras.models import Sequential
from keras.layers import Dense
from keras.layers import LeakyReLU,PReLU,ELU
from keras.layers import Dropout
NN_model = Sequential()
#The Input Layer:
NN_model.add(Dense(128,kernal_initializer='normal',input_dim= X_shape[1]))
#The Hidden Layers:
NN... | [
"noreply@github.com"
] | Akshusharma7.noreply@github.com |
e5d021f764bf2a500658c2a962784f56ffc0f864 | 2b167e29ba07e9f577c20c54cb943861d0ccfa69 | /numerical_analysis_backup/small-scale-multiobj/pod100_sa/pareto_arch2/pareto_ff/pareto8.py | c934f4633c223ab3a0093473ad66da38262a6453 | [] | no_license | LiYan1988/kthOld_OFC | 17aeeed21e195d1a9a3262ec2e67d6b1d3f9ff0f | b1237577ea68ad735a65981bf29584ebd889132b | refs/heads/master | 2021-01-11T17:27:25.574431 | 2017-01-23T05:32:35 | 2017-01-23T05:32:35 | 79,773,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,048 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Aug 4 15:15:10 2016
@author: li
optimize both throughput and connections
"""
#import sys
#sys.path.insert(0, '/home/li/Dropbox/KTH/numerical_analysis/ILPs')
import csv
from gurobipy import *
import numpy as np
from arch2_decomposition_new import Arch2_decompose
np.random... | [
"li.yan.ly414@gmail.com"
] | li.yan.ly414@gmail.com |
e49a598e24fcb2f3fe8cef6e157406fdbc6f48e5 | b87cb4f34de3e02232b2a55d655f9942a7b545c7 | /get_alerts_config.py | a83f4c76a76e52df9afb6603e3fe1c856fb90615 | [] | no_license | flowness/python | 9aa787f4e17b2d32288209a8e883242a91e310ad | 3c1c6a08daecdfcf828c4b6df9569ec51ac289ec | refs/heads/master | 2020-03-18T06:20:45.459224 | 2018-06-11T16:35:26 | 2018-06-11T16:35:26 | 134,390,320 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 882 | py | from __future__ import print_function
import json
import boto3
import get_alerts_utils
dynamo = boto3.client('dynamodb')
def respond(err, res=None):
print ("res"+ str(res))
print ("json res"+ json.dumps(res))
return {
'statusCode': '400' if err else '200',
'body': err.message if err else j... | [
"noreply@github.com"
] | flowness.noreply@github.com |
469f0de51f71a670c2c97c116840ceeee506d79d | 896f619c7a0ec175dc982c6741f3f5339972170f | /SuningPhones/SNPhones/settings.py | 63c7930b1467b33a3fe662ee2e3c76f4ad7e2227 | [] | no_license | guowee/Spiders | f80c360e1a31a5fad99875b4114f913b26fa4c95 | 6a0eca5aae8bb967e3ae2f91184884411328960c | refs/heads/master | 2021-05-31T03:03:47.003915 | 2016-02-24T08:09:49 | 2016-02-24T08:09:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,004 | py | # -*- coding: utf-8 -*-
# Scrapy settings for SNPhones project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readthedocs.org/en/lates... | [
"guowei@hipad.com"
] | guowei@hipad.com |
7912f7822fc55994073ac442f700ada40f6fe975 | 0cdd98e4ca426b38797781b37cee4cf059cd0500 | /heapqo.py | 2c700b2871ebc515540a4977e4746a18d676e575 | [] | no_license | SeanTKeegan/DeepCompression | 0c205ec45d6f7f3daf6730360e8e47c48a93aa33 | d0f9aa6c7d5173f21ae4dd93d0b772aaa6eb2c27 | refs/heads/master | 2020-04-09T09:02:55.374889 | 2019-05-22T08:29:25 | 2019-05-22T08:29:25 | 160,218,908 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,485 | py | from __future__ import print_function, absolute_import
import functools
import heapq
__all__ = ["Heap"]
def _with_docstring(source):
@functools.wraps(source)
def _with_docstring_wrap(target):
target.__doc__ = source.__doc__
return target
return _with_docstring_wrap
clas... | [
"noreply@github.com"
] | SeanTKeegan.noreply@github.com |
04a004618f6c38d9bfac1befca74c661217cb50f | d300d3953fb55eb271c8afcf5cf03b2635ca4e4c | /D A/python/关联apriori.py | 6e25145eb90fe4fa307a0e7441fb41434e8005b2 | [] | no_license | JamesBrowns/data-analysis | fc1bc61d797f0d7e985280b62e617c86322a3ea3 | 119adb5570ab68560744dd516577b07f947ca1aa | refs/heads/master | 2020-03-18T04:29:51.185087 | 2018-03-08T07:18:12 | 2018-03-08T07:18:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,735 | py | #coding=utf-8
import pandas as pd
from sklearn.cluster import KMeans
'''
#聚类离散化
datafile='chapter8/demo/data/data.xls'
outputfile='chapter8/out/processed_data.xls'
typelabel ={u'肝气郁结证型系数':'A', u'热毒蕴结证型系数':'B', u'冲任失调证型系数':'C', u'气血两虚证型系数':'D', u'脾胃虚弱证型系数':'E', u'肝肾阴虚证型系数':'F'}
k=4
#读取数据并进行聚类分析
data=pd.rea... | [
"noreply@github.com"
] | JamesBrowns.noreply@github.com |
5913393d13501aaea1b1b337a3fd465a3da7f4a5 | 9fbc93493617fb4d5b1c18ee3771095928ac917a | /association_model_and_GAN/evaluate_cross_model.py | f1b2d49bdf65d850ab48404c782dd385d44624dc | [
"MIT"
] | permissive | CorneliusHsiao/FoodMethodGAN | 0883ab6e09ff71544f9d067ee3a0288646ca8c83 | 9e68dfabd48afe337ac95189a728dfdab075afe5 | refs/heads/master | 2020-09-04T08:51:35.506411 | 2019-12-26T10:57:44 | 2019-12-26T10:57:44 | 219,697,249 | 0 | 1 | MIT | 2019-12-06T04:54:00 | 2019-11-05T08:42:58 | Jupyter Notebook | UTF-8 | Python | false | false | 3,749 | py | import os
import json
import numpy as np
import torch
from torch import nn
from torch.utils.data import DataLoader
from tqdm import tqdm
from args import args
from networks import TextEncoder, ImageEncoder
from utils import transform, Dataset, rank
######################################################
# preproc... | [
"apple@appledeair-3.home"
] | apple@appledeair-3.home |
0332f7b4ea3e1b6e128be195810588f7d85744a6 | e2affa48dd79a57b06e6ef14900e4b527597fa25 | /src/delegation_module_tests/goal_wrappers_unit_test.py | 89d8966d91b834218b7e7d58c82018f45f9cba7d | [] | no_license | ros-hybrid-behaviour-planner/delegation_module | 0119983dc36f0d1ed81b362b79606695a081f99c | 2b88fef67dacf2b46bc443ce8e66cdaec01e3e2c | refs/heads/master | 2020-07-01T01:51:09.973767 | 2019-08-25T21:34:32 | 2019-08-25T21:34:32 | 201,012,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,182 | py | """
Unit tests for the GoalWrapper
@author: Mengers
"""
import unittest
from delegation_components.goal_wrappers import GoalWrapperBase
class GoalWrapper(GoalWrapperBase):
"""
Version of the GoalWrapper without abstract methods
"""
def get_goal_representation(self):
return
def send_goa... | [
"v.mengers@campus.tu-berlin.de"
] | v.mengers@campus.tu-berlin.de |
0df2bc1b85cc7cc16ad4f5c3476a7bcbe79fa94c | d50a7ffef5fde766e6d97b9b1f8cc49ad2b54630 | /latplan/puzzles/model/hanoi.py | 0630f6eeb9128a8caaac80ab6272c3defe37f66d | [] | no_license | pucrs-automated-planning/latplan | 3c31527bacd49cbe4501a9a13be8d02e3547747b | fadeaee0a49da92263dd72fb171b7f114b1cffd1 | refs/heads/master | 2021-07-15T19:16:44.571705 | 2019-01-24T17:38:00 | 2019-01-24T17:38:00 | 111,113,712 | 3 | 2 | null | 2018-09-10T17:20:09 | 2017-11-17T14:39:13 | Python | UTF-8 | Python | false | false | 1,771 | py | #!/usr/bin/env python3
import numpy as np
# config encoding:
# A config is a sequence of x-positions (towers)
# [0,2,1,2,1,0]
# since there is an implicit order that is enforced,
# the assignments of each disk to some tower defines a unique, valid state
# [0,2,1,2,1,0] == [[05][24][13]]
# random config is available ... | [
"leonardo@lsa.pucrs.br"
] | leonardo@lsa.pucrs.br |
60c88d77b0d2bfbd373891e2dbb359a5c6e1d25c | 95c1d95350a9c2741b99ff8ac2e0bdfcbe638c6d | /leads/migrations/0008_contactus.py | fc677ccd8c95a5796d0104803901dfe083bb884a | [] | no_license | jeevanc161/leadapp | 67e0aa4e371878296a96447556294d04e1c5c4c0 | 8f801bdc02cc9a5ac136936b098ab747ae026173 | refs/heads/master | 2023-06-16T07:36:34.113816 | 2021-07-12T06:06:24 | 2021-07-12T06:06:24 | 380,223,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | # Generated by Django 3.1.2 on 2021-07-11 13:03
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('leads', '0007_auto_20210615_1002'),
]
operations = [
migrations.CreateModel(
name='Contactus',
fields=[
... | [
"jeevanc162@gmail.com"
] | jeevanc162@gmail.com |
0d316c17ae6205c8d67b07880fd12e2b2f84359c | 76ce1e3f85aff9fcd5e7a902b535af352922a9c5 | /main.py | 404c9fcd147cb256e475dc78941c04b772de1e16 | [
"MIT"
] | permissive | f-grimaldi/CivTableGame | 3d8900417382bb0c890a1c1b994428d1083086bc | e4f73098f74db6f45f6e57faf0260c20c0c13a1e | refs/heads/main | 2022-12-31T20:30:28.567302 | 2020-10-20T14:06:30 | 2020-10-20T14:06:30 | 305,722,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,077 | py | import src.Table as Table
import src.Player as pl
import numpy as np
import pygame
import time
def plain_load_icons(player_number, resolution):
size = get_cell_size(player_number, resolution)
water_icon = pygame.transform.scale(pygame.image.load('imgs/water.png'), size)
mountain_icon = pygam... | [
"f.grimaldi.94@gmail.com"
] | f.grimaldi.94@gmail.com |
94f78ff7515cedf224519e07f552630acac3127a | a857d1911a118b8aa62ffeaa8f154c8325cdc939 | /toontown/estate/DistributedFireworksCannon.py | d5691917f5a2a6d4d53e4cdd97782a58257a8ec5 | [
"MIT"
] | permissive | DioExtreme/TT-CL-Edition | 761d3463c829ec51f6bd2818a28b667c670c44b6 | 6b85ca8352a57e11f89337e1c381754d45af02ea | refs/heads/main | 2023-06-01T16:37:49.924935 | 2021-06-24T02:25:22 | 2021-06-24T02:25:22 | 379,310,849 | 0 | 0 | MIT | 2021-06-22T15:07:31 | 2021-06-22T15:07:30 | null | UTF-8 | Python | false | false | 4,308 | py | from toontown.toonbase.ToontownGlobals import *
from direct.interval.IntervalGlobal import *
from direct.distributed.ClockDelta import *
from HouseGlobals import *
from toontown.effects import DistributedFireworkShow
from toontown.toonbase import ToontownGlobals
from toontown.toonbase import TTLocalizer
from panda3d.co... | [
"devinhall4@gmail.com"
] | devinhall4@gmail.com |
fc07069a46f82e9a773e82a5a7eb0fb9601e5399 | 6782adf725cd62576310e3b017be4c8e9703efea | /users/views.py | 7d3046389893cfb666bd52f4ef2a4b01d3a19a78 | [] | no_license | momentum-team-4/django-final-project-jacqueline-harrison | e2b566dd28221e4f3ccf3bb5d58a267a05f39f21 | 355d6e14914cb1c9126dddc7b351834713c7d29e | refs/heads/master | 2023-07-31T22:13:12.027385 | 2020-10-01T17:11:45 | 2020-10-01T17:11:45 | 298,834,657 | 0 | 0 | null | 2021-09-22T19:43:35 | 2020-09-26T14:44:18 | Python | UTF-8 | Python | false | false | 1,273 | py | from django.shortcuts import render, redirect
from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.decorators import login_required
from django.contrib.messages import success, error
from .forms import UserCreationForm
from .models import User
def create_user(request):
if request.m... | [
"jacqueline_25@hotmail.com"
] | jacqueline_25@hotmail.com |
173430881189eee39a6784e04ac5bea75aad27ec | 683bf84a00834a946416c96a0c311f6c8a56825a | /4.7_working_with_files.py | 9da5d0da773269ceb98f36ea7e6246a1f0664f2b | [] | no_license | ravinder79/python-exercises | 39404cbd3cf1259d13cd51afa4dd92a98afdbd19 | 0db0499486f393b4957b72114aa6fc572043e55e | refs/heads/master | 2021-01-06T18:04:02.977079 | 2020-11-03T02:30:12 | 2020-11-03T02:30:12 | 241,430,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,755 | py | #Print out every line in the file.
#Print out every line in the file, but add a line numbers
with open('4.6_import_exercises.py', 'r') as f:
data = f.readlines()
for i, line in enumerate(data):
print(i+1, line)
#Print out every line in the file, but add a line numbers
#count = 0
# with open('4.... | [
"ravinder79@gmail.com"
] | ravinder79@gmail.com |
b9948cf1676e6d0a8275b85e3147d5465083dffc | b89ce172f2a793924f3a159ab15541342d4c989e | /hw5/best.py | 063dc3d08f6206a32384219d2855c68308d06e1f | [] | no_license | KiyoM99/ML2019SPRING | 42e63cc06136f4db673ad3940ae35d83ce5046e6 | a9157759f00bb3f36be785513c969027cfe2dca7 | refs/heads/master | 2020-04-24T07:18:44.353378 | 2019-06-07T14:53:33 | 2019-06-07T14:53:33 | 171,795,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,603 | py |
# coding: utf-8
# In[1]:
from PIL import Image
import numpy as np
import pickle as pk
import torch
from torch.autograd import Variable
import torch.nn.functional as F
import torch.nn as nn
import torch.utils.data
import random as ran
import time
import torchvision.transforms as transforms
import sy... | [
"noreply@github.com"
] | KiyoM99.noreply@github.com |
6b97a43edfe028b659923528eaadd406c208290f | 71501709864eff17c873abbb97ffabbeba4cb5e3 | /llvm13.0.0/lldb/test/API/functionalities/completion/TestCompletion.py | 11f0e387245e0fc659032f8b1323c5e4f7f230db | [
"NCSA",
"Apache-2.0",
"LLVM-exception"
] | permissive | LEA0317/LLVM-VideoCore4 | d08ba6e6f26f7893709d3285bdbd67442b3e1651 | 7ae2304339760685e8b5556aacc7e9eee91de05c | refs/heads/master | 2022-06-22T15:15:52.112867 | 2022-06-09T08:45:24 | 2022-06-09T08:45:24 | 189,765,789 | 1 | 0 | NOASSERTION | 2019-06-01T18:31:29 | 2019-06-01T18:31:29 | null | UTF-8 | Python | false | false | 33,655 | py | """
Test the lldb command line completion mechanism.
"""
import os
from multiprocessing import Process
import lldb
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
from lldbsuite.test import lldbplatform
from lldbsuite.test import lldbutil
class CommandLineCompletionTestCase(TestBase):... | [
"kontoshi0317@gmail.com"
] | kontoshi0317@gmail.com |
d6d0d58f05ad22c9474ef9804ec088549a68f841 | 5b6b2018ab45cc4710cc5146040bb917fbce985f | /200_longest-palindromic-substring/longest-palindromic-substring.py | 60710ba54ef2ad0d3d20d4f30fd1db4aec65a148 | [] | no_license | ultimate010/codes_and_notes | 6d7c7d42dcfd84354e6fcb5a2c65c6029353a328 | 30aaa34cb1c840f7cf4e0f1345240ac88b8cb45c | refs/heads/master | 2021-01-11T06:56:11.401869 | 2016-10-30T13:46:39 | 2016-10-30T13:46:39 | 72,351,982 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,016 | py | # coding:utf-8
'''
@Copyright:LintCode
@Author: ultimate010
@Problem: http://www.lintcode.com/problem/longest-palindromic-substring
@Language: Python
@Datetime: 16-06-28 14:08
'''
class Solution:
# @param {string} s input string
# @return {string} the longest palindromic substring
def longestPalindro... | [
"ultimate010@gmail.com"
] | ultimate010@gmail.com |
3fa5ddad1d1612a8b0d4168c59f4f0549f95f6ff | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02937/s033330652.py | 6b68eb0299616b86752097386250b1b8f9320039 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | import bisect
s = input()
t = input()
n = len(s)
m = len(t)
indices = [[] for _ in range(26)]
for i in range(n):
indices[ord(s[i]) - ord('a')].append(i)
for i in range(n):
indices[ord(s[i]) - ord('a')].append(i + n)
ans = 0
p = 0
for i in range(m):
c = ord(t[i]) - ord('a')
if len(indices[c]) == 0:
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ab53f17683a218aa029fd6013d35ccf0601a5433 | 91cce084c57639a636c5e4ddae7f8d9e5db3b3ab | /starter_code/migrations/versions/108af48a152f_.py | 7c5f8777c1633a0e797b9060869f40a15286d16e | [] | no_license | Aishwarya1403/Udacity-Fyyur_project-FullStack | 42209286b59d3164381b532e02b2822d4dde5f5f | 721d5d8af835b13ad87b2670856a9fb221618d36 | refs/heads/master | 2022-11-26T22:15:43.680217 | 2020-08-05T09:45:39 | 2020-08-05T09:45:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 828 | py | """empty message
Revision ID: 108af48a152f
Revises: 6acad7d52248
Create Date: 2020-05-19 04:05:39.462836
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
revision = '108af48a152f'
down_revision = '6acad7d52248'
branch_labels = None... | [
"a.srivastava1403@gmail.com"
] | a.srivastava1403@gmail.com |
8e1c89bb6ae45adc09778546ef4ded2df3e23d3a | 287118f0a80d4cc07cf40c4c2cd08734a792bf90 | /python/manage.py | 3f154b0e92a0525b01db81a5024af2f3673463c5 | [] | no_license | bfincher/bfim | 13818acd272fbacf677f16b21ee76a9d2ed55051 | cabfa434a9daedb47be4786fb7e980379407296b | refs/heads/master | 2020-07-13T21:37:20.736140 | 2015-06-30T01:26:03 | 2015-06-30T01:26:03 | 73,883,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "bfim_site.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"brian@fincherhome.com"
] | brian@fincherhome.com |
58eef740f0a71ad36123660a1cea5be91fcd8b15 | fdee1ecf7cdf11c15771bd325897775060fed64c | /app/errors/__init__.py | f139f1d53be91d9cbf4e98a335b4ca7ab36b4c6d | [] | no_license | SIRLA-FJULIS/LIS-Lib-Shift-Arrangement-System | 67feda105c16e085b28bbd64fec048c92e5c2dec | 707644ab48df857630a404c4d017b19d786d6694 | refs/heads/master | 2020-05-22T04:49:07.575629 | 2020-04-10T09:40:05 | 2020-04-10T09:40:05 | 186,222,486 | 1 | 0 | null | 2021-01-23T09:01:20 | 2019-05-12T06:59:36 | Python | UTF-8 | Python | false | false | 100 | py | from flask import Blueprint
errors = Blueprint('errors', __name__)
from app.errors import handlers | [
"opp40519@gmail.com"
] | opp40519@gmail.com |
ffcfbf0bf4d986773c415aa90c4c6801a6d49e20 | ef50f38a4bba1f34ae1bc8f74b962088e2cce6e7 | /form.py | 71bd8903253793e0f6020dd12b8158731d712203 | [] | no_license | PeterSanctus/Slave_Success-V2 | b71f340cc76d41f542f45836ea70881c920e3090 | 2d9212612199562f5c243c157a1efaaa917be6e4 | refs/heads/master | 2020-03-06T22:45:48.483387 | 2018-03-28T08:04:50 | 2018-03-28T08:04:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,152 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'form.ui'
#
# Created by: PyQt5 UI code generator 5.10.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.... | [
"plsm.mail@gmail.com"
] | plsm.mail@gmail.com |
267f051b5e058cd2c27f5c5f7de155cd7f7c48c0 | 142c458d4e9fee7f5dd810d75763903d6789ad34 | /classfy_id_new.py | 1fde20b270abe1550c51dee27fb75d9d257cef70 | [] | no_license | Pengfight/testfile | c5bfb5fbc2cc77072f48521a85b1e7b6cec9c456 | c067995495f5a119f7cea4ddd49bb14dd40e9a3d | refs/heads/master | 2021-04-26T22:14:13.598400 | 2018-03-24T02:32:08 | 2018-03-24T02:32:08 | 124,047,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,789 | py | import json
import os
class lda_learning():
def classfy_city_data(self):
'''
Divide the data set according to the number of days of trip,
divided into 4 days, 4-5 days, 6-7 days, 8-10 days,
10 days and above,five kinds of situations.
the format of each line:id tri... | [
"noreply@github.com"
] | Pengfight.noreply@github.com |
5b9637487e45d95d05cd2fac74ca279bc4cf8938 | d0befba20015501fbd57888abf78eeb24389ac40 | /prac1b.py | 5530fe3d9cd1635b5ae73798c763acd3f7587816 | [] | no_license | satyamthaker/Data-Structure | 0de59a24cbcdf9472a3546c52dc2c534b1c947df | fdbbc2c7b601037e71e482dcf08bf02ae69641ef | refs/heads/master | 2023-01-03T05:26:33.761829 | 2020-10-29T05:01:55 | 2020-10-29T05:01:55 | 295,732,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | m1 = [[1,2,3],
[4 ,5,6],
[7 ,8,9]]
m2 = [[10,11,12,13],
[14,15,16,17],
[18,19,20,21]]
res = [[0,0,0,0],
[0,0,0,0],
[0,0,0,0]]
for i in range(len(m1)):
for j in range(len(m2[0])):
for k in range(len(m2)):
res[i][j] += m1[i][k] * m2... | [
"noreply@github.com"
] | satyamthaker.noreply@github.com |
7b1f422a0751188ab3254f50f1c2e5c5b56b4a51 | 41e69a2c4802e038841948f49854f6e72c472179 | /bin/pip | 7f00391542197da72f764c63753ec02da696125b | [] | no_license | edisonik/artesanato_brasileiro.github.io | 6d4246ef9cafac0e749d6c1e44afd0a1e28cca77 | 2ad99cadf5ab6c6afe5544fcc267975b230add96 | refs/heads/master | 2020-05-07T13:57:46.227961 | 2019-07-15T02:19:22 | 2019-07-15T02:19:22 | 180,570,562 | 1 | 0 | null | 2019-07-15T23:55:29 | 2019-04-10T11:50:12 | Python | UTF-8 | Python | false | false | 241 | #!/var/www/artesanato_brasileiro/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"root@ip-172-31-6-208.sa-east-1.compute.internal"
] | root@ip-172-31-6-208.sa-east-1.compute.internal | |
8166e51901c32ec077752710fc5398034116a218 | 8665fe18231acd4dd591391a10215616f861a307 | /backend/todo/forms.py | 9c425349de6409986124a82b6b101c088bfea330 | [] | no_license | MrZhengXin/database_td_lte | 40bf74a4714ce16a1d177b870c770f3b72ceb5fb | 7c41e4f713fd8347b3b5a72eecb71ab7ada772d9 | refs/heads/master | 2022-12-12T01:45:52.318358 | 2020-08-10T08:43:24 | 2020-08-10T08:43:24 | 282,181,665 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | from django import forms
from .models import Post
class PostForm(forms.ModelForm):
class Meta:
model = Post
fields = ['file'] | [
"510546841@qq.com"
] | 510546841@qq.com |
2170705885ec02edbec127709a97f58b54329cc5 | dba6e34fa96ca6ea478a9f877b26ab0da4c72b94 | /main.py | 7bd96bbd7b1ec79c0b156ba4f655ddf2141469b7 | [] | no_license | acekun141/getreq | 7a5bd0dfc7701c275ea2f8da0ee238cbed2c1264 | bd8635bce2181bf767232198914d532a262dde35 | refs/heads/master | 2020-06-16T14:19:02.155166 | 2019-07-10T14:20:29 | 2019-07-10T14:20:29 | 195,606,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,797 | py | import requests
import time
import json
import bot
from bot import telegram_bot
with open('config.json') as config_file:
data = json.load(config_file)
list_urls = [
{
'link':'http://127.0.0.1:8000/Page1',
'name':'Page1'
},
{
'link':'http://127.0.0.1:8000',
'name':'Home... | [
"acekun141@gmail.com"
] | acekun141@gmail.com |
45ff2731d524714c05b51daf9bc57ef935b6cb18 | d26a82e8e72bb945a45082f69c19e571c9b49240 | /yohanneswebsite/settings.py | bb397b409ed51085af6859339cdac6a489bdfac9 | [] | no_license | Yohannes27/mathias | cc5fab8a0830f7a81a653a3eee618123afd24487 | 6beea7ddb293f1f9dc7d8f5d17dbe2407584f7fa | refs/heads/master | 2023-05-31T20:11:57.551715 | 2021-07-15T20:52:32 | 2021-07-15T20:52:32 | 386,419,673 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,616 | py | """
Django settings for yohanneswebsite project.
Generated by 'django-admin startproject' using Django 3.0.
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... | [
"joelawro@gmail.com"
] | joelawro@gmail.com |
c07eaaf18f9a7002308b7ea958242eb11f4115bc | b1d7310f3b9199b582251b2b2de72593e27c5e02 | /env_utils.py | c1c645398addccf10f2bb56ffade6b38fd659bab | [
"MIT"
] | permissive | Louiealbp/ContrastiveLearningGoalReaching | c753081e4ab8c886b87a8498a0d84bc676db6ea1 | 4ef3e22cb8276a8c2f4f313e2b27138b9cd361b3 | refs/heads/main | 2023-07-23T05:18:48.126964 | 2021-09-03T21:49:31 | 2021-09-03T21:49:31 | 402,890,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,705 | py | import numpy as np
import gym
import os, sys
from arguments import get_args
from mpi4py import MPI
from rl_modules.ddpg_agent import ddpg_agent
import random
import torch
import dmc2gym
from collections import deque
def get_state(env):
##Gets the current state of the environment to allow for true reward calculatio... | [
"noreply@github.com"
] | Louiealbp.noreply@github.com |
d0caa854e9e28624cdfc1352f608b8d07a7986a3 | 6267694634f09f7bb4372e3c335bc805fa1bde6c | /fig_3/prej_prej_8.py | 268d0540319d020e5ccb5a0bb016c443ec82ce07 | [] | no_license | deep-inder/prejudice_model | 3707a9814bbe0fff7b9b885281aaefe3f0778b4a | 6a1cd4df38b297d7bd39cfbd760a8f50dccc0e1f | refs/heads/master | 2023-06-07T00:00:28.668466 | 2021-06-27T19:08:53 | 2021-06-27T19:08:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,388 | py | import os,sys,inspect
currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
parentdir = os.path.dirname(currentdir)
sys.path.insert(0,parentdir)
from twoGroups.baseClass import *
from twoGroups.biasedAgent import *
from twoGroups.unbiasedAgent import *
from twoGroups.tftAgent import *
... | [
"mohan.deepinder@qgmail.com"
] | mohan.deepinder@qgmail.com |
ca5197c4632cb5c88a4dbc9e707acb06e8f609c7 | 406b08dac8f90b855309be77c3ad3a7926aaa02e | /iron2/admin.py | 5cb81a061b1b344c54a53bd1209b388c353df3a6 | [] | no_license | DragonovAk47/SocialQuery1 | 46cdb51dc137cc9f739f2f778bcf2bdaf6cff8dd | 2d20bc48f04f1bdbcc3eddfe57a1bb1e9278cb21 | refs/heads/master | 2020-06-24T06:29:39.179380 | 2019-07-25T18:00:06 | 2019-07-25T18:00:06 | 198,880,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | from django.contrib import admin
from iron2.models import UserProfile
# Register your models here
# .
class UserProfileAdmin(admin.ModelAdmin):
list_display=('user','Website','Mobile','user_info')
search_list=('Mobile','description',)
list_display_links=('user_info',)
list_editable=('Website',)
def user_inf... | [
"35777944+DragonovAk47@users.noreply.github.com"
] | 35777944+DragonovAk47@users.noreply.github.com |
77825d5d7d96d2954670502979e01b35cbeae203 | 3cb4f8e967cd21bad7c0f026c9799d901bc1fb73 | /gutter/artist.py | d36f6223c3628f0bc120ba575bbfbbf60eb18838 | [] | no_license | OEP/gutter | ffbba9c69ac92cbc2c3dae31ad62f8a9b24fd1fd | 747092561359f4c9da59c7609232dd8abbc1c7b6 | refs/heads/master | 2021-01-16T18:07:49.844498 | 2013-07-16T12:53:40 | 2013-07-16T12:53:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,924 | py | import album
import song
class RainwaveArtist(object):
'''A :class:`RainwaveArtist` object represents one artist.
.. note::
You should not instantiate an object of this class directly, but rather
obtain one from :attr:`RainwaveChannel.artists` or
:attr:`RainwaveSong.artists`.
'''... | [
"william@subtlecoolness.com"
] | william@subtlecoolness.com |
26b5572ac0a822370e8ce622fbd232f24cebdcaa | 51521862877916257fb965dcf6114f5402fa8b35 | /code/test55.py | 659dccfd09b71613c95709701dab0a194e2ceec9 | [] | no_license | 404akhan/proj3-math | 592170e032ea7f55830a3c66eaff3c01a02af34b | bdccf3d769e3d7c0ab6ea923e3442dd304edc002 | refs/heads/master | 2021-01-21T17:28:30.531798 | 2017-05-21T20:34:33 | 2017-05-21T20:34:33 | 91,953,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,417 | py | # lasso
from helpers import *
import matplotlib.pyplot as plt
top = 70
train, test = get_tr_cv()
cells = pickle.load(open('data/very_new_cells_one_hot-%d.p'%top, 'rb'))
print train.shape
print cells.shape
print 'top', top
version = 67
lr = 0.03
aver_loss, aver_corr = None, None
bsize = 10000
arr_loss = []
for lamb... | [
"404akhan"
] | 404akhan |
ff3754cab9ef652c3ac4d38fae0ec01e44e120e9 | c7c7faf8e30e45cd9c74e86f467eff5bc6aab34d | /mulgen.py | 2cd03430b30da1f339034fdc5a0981d481e8ff4c | [] | no_license | linaaan/Graduation-design | 0cc9329916ad723965511b50689b2805d2e01bfc | 0180cc013c38da40ccccac74e4922c0d17192547 | refs/heads/main | 2023-04-12T04:00:47.917844 | 2021-05-11T11:53:01 | 2021-05-11T11:53:01 | 366,047,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | import RandomInitialPoint as RI
import GenerationNode as GN
import numpy as np
def multgr(n, v):
# n 是圈数 v是速度
i = 0
x = []
y = []
for i in range(n):
x1, y1 = RI.InitialPoint(v)
x1, y1 = GN.Generation(x1, y1, v)
x = np.append(x, x1)
y = np.append(y, y1)
return(x,... | [
"807605729@qq.com"
] | 807605729@qq.com |
889ae073854d8de68add087030c54420209502d8 | 89a1e4e9d928ee3b0f962fa7f8e20ffbbc34c941 | /quest_extension/migrations/0035_correctlyansweredquestion_time_modified.py | 72f45bde31c766673acacda3121bb720bc81e344 | [] | no_license | tdesai2017/Akamai_Quest_Extension_Training_Application | ff24b161cf7d0ca831dad56a010aa203e2c50ee7 | 97b8501a49e4c316c7859e3679f46d344db971cd | refs/heads/master | 2022-12-12T17:09:34.295929 | 2019-11-04T19:42:38 | 2019-11-04T19:42:38 | 182,309,352 | 0 | 0 | null | 2022-12-08T05:14:45 | 2019-04-19T18:33:44 | Python | UTF-8 | Python | false | false | 423 | py | # Generated by Django 2.0.13 on 2019-06-19 13:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('quest_extension', '0034_auto_20190613_1447'),
]
operations = [
migrations.AddField(
model_name='correctlyansweredquestion',
... | [
"tdesai@prod-gtm-app10.bos01.corp.akamai.com"
] | tdesai@prod-gtm-app10.bos01.corp.akamai.com |
171918eacf53dc68cdf837f4e9b33d81ba426350 | a533010ba7e74422c5c7c0193ea2d880e427cb9d | /Python_auto_operation/bin/mlogvis | 69b36f81947475e66d1dde10eb0cb5c3e1d112c6 | [] | no_license | gateray/learning_python | 727b3effe4875f27c86c3e5e66655905f3d5d681 | bc08a58f3a5c1f1db884398efa9d27834514199f | refs/heads/master | 2021-01-19T06:31:01.616421 | 2016-06-30T07:39:23 | 2016-06-30T07:39:23 | 62,290,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | #!/home/gateray/PycharmProjects/Python_auto_operation/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'mtools==1.1.9','console_scripts','mlogvis'
__requires__ = 'mtools==1.1.9'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('mtools==1.1.9', 'console_scri... | [
"gateray.example.com"
] | gateray.example.com | |
fbf6bf8a92fdbb61a7f72ca93c5ac06aaadfbe41 | 997c24e536f27d3871c293d1f14abc2410e1ae39 | /config/settings/local.py | f67a181d9a2eccb02377cb2f7fe5a2731c62e63c | [
"MIT"
] | permissive | arsenalstriker14/imagetraccloud | 4b195e407cfd7dec41115c8cf5cb931dcc35cbd0 | 04004d5eabc82e85596bc9e110c9250d5f882e17 | refs/heads/master | 2021-01-11T16:58:48.619218 | 2017-02-02T22:18:31 | 2017-02-02T22:18:31 | 79,710,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,263 | py | # -*- coding: utf-8 -*-
"""
Local settings
- Run in Debug mode
- Use console backend for emails
- Add Django Debug Toolbar
- Add django-extensions as app
"""
import socket
import os
from .common import * # noqa
# DEBUG
# ------------------------------------------------------------------------------
DEBUG = env.bo... | [
"accounts@chukesinteractive.com"
] | accounts@chukesinteractive.com |
a6e3f9ad5215ff8793eca41e06d25c666424ff69 | 18567c0f5d32d220939bf249c53d046b43aa5acb | /crypto_test/check_user_password.py | 21de9f1f3435dce019b373e2e6f94f311f0eda74 | [] | no_license | MARConthemove/covid-test-web-site | aaf618227da0ffc920ee57ccd42f3c6d1cc63589 | e926368a3563d8b43fb8a3a207770d0e8e0e6dab | refs/heads/master | 2022-12-29T10:14:51.574318 | 2020-10-05T18:10:53 | 2020-10-05T18:10:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,016 | py | #!/usr/bin/python3
# Let's assume a user has entered this data on the result query web form
form_data = {
"barcode": "ABCDEF",
"password": "ErikasPW"
}
# Here is how to check whether the password is valid
import binascii, hashlib
hashes_found = set()
with open( "test.csv" ) as f:
for line in f:
barcode, time... | [
"sanders@fs.tum.de"
] | sanders@fs.tum.de |
32f6b9fff9acce58bdc331e9f0ec63770932d681 | 0a639bda0058ac76cca97d6123f6c39229f202f1 | /companies/models.py | 9092279495371d6cf60c4e5d5b187922621a9bb7 | [] | no_license | sanchitbareja/occuhunt-web | bb86e630c2caff5815b164435464424b5cf83375 | fab152e2ebae3f4dd5c8357696893065bdd30504 | refs/heads/master | 2020-05-21T01:15:48.973953 | 2015-01-13T04:03:18 | 2015-01-13T04:03:18 | 12,552,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,089 | py | from django.db import models
import datetime
# Create your models here.
class CompanyType(models.Model):
type = models.CharField(max_length = 256)
def __unicode__(self):
return self.type
ORGANIZATION_TYPES_LIST = (
('Accounting Services', 'Accounting Services'),
('Aerospace/Defense', 'Aerospace/Defense'),
('... | [
"sanchitbareja@gmail.com"
] | sanchitbareja@gmail.com |
5ee18fe1c627d044dd94b31a4ae22fcca29f5c5f | f228c0aedc6d66676d52a87a4780cad43ca1af68 | /manage.py | f92873d395d95c58e73995b20873d7ef0d4177f0 | [] | no_license | MdShohoan/Django-Curd-operation | 2e749c86d97b685e19a245c9063771376452b7d3 | d62470a26b72368b9759a494ed881531e7b2beb0 | refs/heads/main | 2023-01-25T03:07:27.141933 | 2020-12-07T05:52:51 | 2020-12-07T05:52:51 | 319,217,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | #!/usr/bin/env python3
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Django_rest.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise I... | [
"shohoankhan@gmail.com"
] | shohoankhan@gmail.com |
af2bbcc8ef30479f1f105c85962d48fc4fbeaac4 | d5e134c4287e2a8e6e676ee6877418c9727e06e3 | /LINDE799_FinalProject.py | e47f61c91a2815d440da0d9025feb8237885717f | [] | no_license | ErikLindeman12/CSCI_1133 | 6fcc93f047d0d0ee199a628a4d854070f6da19be | 91d8ff08b7a327427c9a274442e6ab951f0731ee | refs/heads/master | 2020-03-28T14:54:00.870836 | 2018-09-12T19:57:29 | 2018-09-12T19:57:29 | 148,532,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,117 | py | #Final Project
#Erik Lindeman, LINDE799, 5424984
#CSCI 1133
import turtle
class County:
def __init__(self,name,population):
#setting up instance variables
self.name = name
self.population = population
#Finding which population was the highest for scaling, checks each population to ... | [
"eriklindeman12@gmail.com"
] | eriklindeman12@gmail.com |
90fd031fae54e494378fc6f6718d5c9db90f9693 | 254a8334ec71770310173137e5b57b7daf9e8294 | /launchlist/urls.py | 9d37ad64892fc68cb6ed9d96c05df81baf841222 | [
"MIT"
] | permissive | Mabvuto/LaunchList | 15931793d10120c53865fd5e0653013f5677fd62 | 7018c139e029f87db11e32a2397b186a82950487 | refs/heads/master | 2021-01-12T22:14:38.023734 | 2015-04-13T05:02:52 | 2015-04-13T05:02:52 | 64,088,903 | 1 | 0 | null | 2016-07-24T22:44:03 | 2016-07-24T22:44:03 | null | UTF-8 | Python | false | false | 723 | py | from django.conf.urls import patterns, include, url
from django.contrib import admin
from launchlist.views import *
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'launchlist.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
# URLs for testing
# url(r'^admin/', include(admin... | [
"tachk@rocketeeringetc.net"
] | tachk@rocketeeringetc.net |
d04d6b9893f5f78f3475521db16a4084f2eb7651 | 1ddacfc9d8e1096799d3e29d03f48a11b0d9b1cc | /compare_directories.py | 806bfc49e967309193ef0b0e4eed850e9903c354 | [] | no_license | fladd/CompareDirectories | 275dece69ce8e1063bf49d9f77629ec5dda6af2e | f65a4f2b25de11135e358b098703c41e5cd1b22c | refs/heads/master | 2021-01-01T03:59:29.730206 | 2016-05-04T12:41:31 | 2016-05-04T12:41:31 | 57,979,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,754 | py | """
Compare Directories.
This tool will binary compare all files of a directory recursively to all
files of a reference directory. Erroneous (not readable), differing, missing,
new and identical files are reported.
"""
__author__ = "Florian Krause <fladd@fladd.de>"
__version__ = "0.1.0"
import sys
import os
impor... | [
"fladd@web.de"
] | fladd@web.de |
1c165f1ccad36c215f56ef5613cea7ee2101c812 | 1facfd9d94b0f08ddde2834c717bda55359c2e35 | /Python programming for the absolute beginner - Michael Dawson/Chapter 8 - OOP beginning/8.3.py | 58bad4a7400168c26ceaa2894583a1b3bd76ba4e | [] | no_license | echpochmak/ppftab | 9160383c1d34a559b039af5cd1451a18f2584549 | f5747d87051d837eca431f782491ec9ba3b44626 | refs/heads/master | 2021-09-15T07:23:06.581750 | 2018-05-28T14:33:13 | 2018-05-28T14:33:13 | 261,880,781 | 1 | 0 | null | 2020-05-06T21:18:13 | 2020-05-06T21:18:13 | null | UTF-8 | Python | false | false | 3,000 | py | # The material form the book in polish
# Opiekun zwierzaka
# Wirtualny pupil, którym należy się opiekować
class Critter(object):
"""Wirtualny pupil"""
def __init__(self, name, hunger = 0, boredom = 0):
self.name = name
self.hunger = hunger
self.boredom = boredom
def __str__(self):... | [
"mateuszszpakowski@wp.pl"
] | mateuszszpakowski@wp.pl |
d3001ec4f08bd4736214ae79c2c8e5734486bf4c | a4266b32b04df49a7d6251b5e125ef92369cbea8 | /projects/01_fyyur/starter_code/migrations/versions/8d395419b3cd_.py | da0bc42269b7c95e489d73d4441a617333480d18 | [] | no_license | Crazychukz/udacity-fyyur | 9fed779f82bf406ea80d9c79710318cc4b95f708 | 7cda6fe4bf7490cfe00707c1e06dd43f2959bc49 | refs/heads/main | 2023-02-20T17:13:39.050992 | 2021-01-22T05:20:22 | 2021-01-22T05:20:22 | 329,382,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 656 | py | """empty message
Revision ID: 8d395419b3cd
Revises: 4192c431ec89
Create Date: 2021-01-19 13:00:11.229361
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '8d395419b3cd'
down_revision = '4192c431ec89'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"chukwuemekacharles88@gmail.com"
] | chukwuemekacharles88@gmail.com |
26aa690ec62cb1867208234cd0c19ab8f7a9663a | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/S/stefanw/kommunalverwaltung_nrw.py | aef5bdefc3a1b54035f7bc556bd8da592cd801c6 | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,508 | py | import scraperwiki
import lxml.html as lh
from lxml import etree
LIST_URL = 'http://www3.chamaeleon.de/komnav/kundensuchergebnis.php?Ort=&PLZ=%s&OBGM=&Bundesland=Nordrhein-Westfalen&anfrage=imnrw'
DETAIL_URL = 'http://www3.chamaeleon.de/komnav/kundensuchedetail.php?schluessel=%s&anfrage=imnrw&PLZ=%s&Ort=&Bundesland=N... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.