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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f86b93be73c5c731fcb859c52d812a7e36b71d4e | 62bb0a92dd45198769e9ffa16eeb468039db7486 | /PM/p3dx_mover/nodes/Circumnavigation_old.py | df1d0a1bf19da62c445a4435160590d73dd31fba | [] | no_license | softelli/dissertacao-mestrado | 1080e2f0891b8c47e3d30e9fecab1a0fa5840857 | f94031ba4d9781cc55706ae8fbc383cbe103ef98 | refs/heads/master | 2020-12-31T07:59:08.487364 | 2019-05-03T13:00:29 | 2019-05-03T13:00:29 | 51,708,733 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,168 | py | from __future__ import division
from LocalObject import LocalObject
import math
import random
import numpy as np
#static parameters
from ParametersServer import staticParameters
sp = staticParameters
class circum:
def __init__(self):
#forca
self.force = 1.0
#Forca dos coeficientes sobre o Robo
self.coeff... | [
"softelli@gmail.com"
] | softelli@gmail.com |
8fac5461e02a1eeb7aab7205d72609f915b89331 | 59a593f54ab281b6d270d18a62ac03a902687a67 | /DocumentSimilarity.py | 795b58721f49d3684c1dd12ca1406f097c85f826 | [] | no_license | ROHITHKUMARN/Document-Similarity | 7e873543b48146eb1120032fc2f16dda16dcfb00 | 980b07e0528209fd911f828334db60c793736e1b | refs/heads/master | 2021-05-16T09:56:14.287673 | 2017-02-24T06:03:58 | 2017-02-24T06:03:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,357 | py | import sys
import os
import math
from math import*
from decimal import Decimal
from sklearn.decomposition import PCA
import numpy as np
f = open(os.path.abspath(sys.argv[1]))
document = []
vocabulary = []
uniqueWords = []
vector = []
tf = []
dict_idf = {}
idf = []
d = []
manhattan = []
euclidean = []
supremum = []
co... | [
"pallavitiagi@gmail.com"
] | pallavitiagi@gmail.com |
d520b650baaa41da31c71fb1fde1bdb7eff97fb3 | 329146e5d07a34acffe08c8d138a12c03f27474c | /server/node_modules/sqlite3/build/config.gypi | f6a1f154c98ef8b08335e4590d8008801edede6a | [
"BSD-3-Clause"
] | permissive | ZhenyiZhang/full-stack-graphQL | a60430fae1af3a9fa925786baf35536a713faba0 | 0cad30c44df82329b533487a38a56eb1db4ef3c2 | refs/heads/main | 2023-01-15T21:29:39.885086 | 2020-11-26T22:37:09 | 2020-11-26T22:37:09 | 316,108,361 | 0 | 0 | null | 2020-11-26T22:37:10 | 2020-11-26T02:59:09 | JavaScript | UTF-8 | Python | false | false | 6,206 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"build_v8_with_gn": "false",
"coverage": "false",
"dcheck_al... | [
"brucezhangpro@hotmail.com"
] | brucezhangpro@hotmail.com |
bc3798906716aa41be8beb4ecc2a2c58459a8f86 | dc767b48d46e2f6b9851ce61914e880fc95fe520 | /myshop/shop/migrations/0001_initial.py | cca6008d38c1c259f458a69c4f61f46f334c2252 | [] | no_license | EdmilsonSantana/django-by-example | c06081a1a3915aaf3996d017fea91c8273cbe2e0 | 7c895b55b8f6fcc05a2d5cd2181bf207dc9256fc | refs/heads/master | 2021-01-12T02:58:49.261515 | 2017-02-28T20:05:29 | 2017-02-28T20:05:29 | 78,144,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,044 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-01-16 23:59
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Crea... | [
"edmilsonsantana2@hotmail.com"
] | edmilsonsantana2@hotmail.com |
a63da102a2acf98b669db92d9339476678717586 | b19b7924906ae27393624f0eff48d7acd0808776 | /chromedriver/Lesson 2.3 step 6.py | ed9f9cd75fdc395b27e9ea43c094542ee4a4383c | [] | no_license | VladislavEkimov/QAtesting | ac9059699a17de89a09547a13caf250ffc5d4148 | a2e501af5b8f8421f12e74f9d9061409a7074f51 | refs/heads/master | 2023-07-28T17:15:47.213178 | 2021-09-14T09:32:24 | 2021-09-14T09:32:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 713 | py | import os
from selenium import webdriver
import time
import math
try:
browser = webdriver.Chrome()
url = 'http://suninjuly.github.io/redirect_accept.html'
browser.get(url)
button = browser.find_element_by_css_selector("[type='submit']")
button.click()
new_window = browser.window_handl... | [
"33995288+vlaf27449@users.noreply.github.com"
] | 33995288+vlaf27449@users.noreply.github.com |
23e8eaf1eb2c77ceaad174fae6cf8fcf18768993 | cac5f68c601f9f834aa2b0de9fb00d22e1f80239 | /floyd_test.py | 64106a310c07591944d87c67cd8b23302fe08b30 | [] | no_license | imosk72/graph_python_task | f915cdc246b02c084730d00a771247bfab5f6880 | 0581774741ad766c97f47fbbcd8e9eb5aa473438 | refs/heads/master | 2023-04-30T23:44:13.639760 | 2021-05-19T09:25:59 | 2021-05-19T09:25:59 | 364,354,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | import generators
import measurement
import weighted_graph
def measure_floyd():
f = open("floyd.txt", "w")
for i in range(1, 100):
print(i)
f.write(str(i) + " " + "%.6f" % measurement.test(20, weighted_graph.WeightedGraph(i, generators.generate_graph(i, True, True), True).floyd) + "\n")
f.... | [
"imoskovchenko72@gmail.com"
] | imoskovchenko72@gmail.com |
4dbb490667e510006a9631a51f82564848df9b9f | 18c699d61a7ead0c8d29efdddacd71468c227221 | /pyspark-distinct-to-drop-duplicates.py | 154bc0ea92950a02fb50fc46c18ec406f57704fb | [] | no_license | devs-93/Saprk-Common-Operation | 7847f009dca3466cd5a793bb81f1468e7ef6698b | b9ed874dcc8d059622bc63ef942925b1198c906d | refs/heads/main | 2023-08-28T09:39:15.355336 | 2021-11-12T10:19:21 | 2021-11-12T10:19:21 | 427,312,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,152 | py | import pyspark
from pyspark.sql import SparkSession
from pyspark.sql.functions import expr
spark = SparkSession.builder.appName('SparkByExamples.com').getOrCreate()
data = [("James1", "Sales1", 3000),
("James1", "Sales1", 3000),
("Michael", "Sales", 4600),
("Robert", "Sales", 4100),
(... | [
"noreply@github.com"
] | devs-93.noreply@github.com |
52793a05086193090d0b2d2851abe1075600a7d7 | 649417ac89aa4917eeecf00ad7aa2d9ddaa15bf6 | /PhaseMatchingBiphotonFWM.py | b4c39e2c3123be323950df49fef38a7e65ef84ab | [] | no_license | damienbonneau/sources | 70bb514e384571f922b044306f6dfd81ac459bed | 60d0aa605bbd6f9e6ea30e4a369d12dd4ed1a83b | refs/heads/master | 2021-01-20T21:15:45.454573 | 2016-08-04T18:01:49 | 2016-08-04T18:01:49 | 64,950,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54,609 | py | # -*- coding: utf-8 -*-
from numpy import *
import matplotlib as mpl
from matplotlib import cm,colors
import matplotlib.pyplot as plt
from matplotlib.ticker import MaxNLocator
from scipy.optimize import leastsq
import os,time
# -----------------------------------------------------------------------------#... | [
"noreply@github.com"
] | damienbonneau.noreply@github.com |
cd50ec0cada7b4aa014f574bfb9d1be7b604142f | 95d7a2e316f6cc5fd0120086bd0b00a3d1dd7ac7 | /simple_trainer/pipeline.py | 55cddbdfed42e6f13ed1420b0e3c6bc498a7842e | [
"MIT"
] | permissive | akshaybadola/simple_trainer | cf2012ada1889719f48812f0bf1dc8a3405885c1 | f6a2c7739722b334c1f619220f40917d71b044ba | refs/heads/master | 2022-11-15T10:20:48.864405 | 2022-06-24T20:21:41 | 2022-06-24T20:21:41 | 222,618,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,790 | py | from typing import List, Dict, Callable, Union, Optional
import abc
import types
import logging
from functools import partial
from contextlib import ExitStack
from common_pyutil.functional import first, maybe_then
def partial_or_func_name(x: Callable, describe: bool = False):
return maybe_then(x, [partial, types.... | [
"akshay.badola.cs@gmail.com"
] | akshay.badola.cs@gmail.com |
ba190de8b4de0297f1e0b734184bf21440191948 | 31cdde2bda93df838399f26fd4fcf0f2f7989a5c | /budget/migrations/0006_auto__add_field_budgetuser_coop.py | 495a4e661790ba21a7819cec4a769a2b2936fc84 | [] | no_license | SteveXian/budget_app | e2ca586db1de8d2af392cfb254a0222059262f10 | 3c610eddfd0aa447cc0299c96762321ce1e2b397 | refs/heads/master | 2021-01-01T19:21:18.127896 | 2013-12-02T12:11:12 | 2013-12-02T12:11:12 | 12,254,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,383 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'BudgetUser.coop'
db.add_column(u'budget_budgetuser', 'coop',
self.gf('... | [
"monkxly@gmail.com"
] | monkxly@gmail.com |
7deca9544c4ccb6f9be27d733f45ecdc1a27b058 | 861bbf5978790bf721bb643516a5a484a8c31b38 | /knn_risk_predictor.py | 8fd4b0d2cf132068503f27d32bc0e401d9dfe0a0 | [] | no_license | ericgao1997/CMPT-353-Final | a1cd5d47e6e4aa3ec19558348d3a87db4cf3d460 | 2b0e3b398cb0057ad75f81c0cc0039ee3ed7087f | refs/heads/master | 2023-02-19T12:41:53.661689 | 2021-01-05T18:51:26 | 2021-01-05T18:51:26 | 320,167,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,550 | py | import numpy as np
import pandas as pd
from sklearn.neighbors import KNeighborsRegressor
from scipy import stats
import sys
neigh = KNeighborsRegressor(n_neighbors=10, weights='distance')
wider_neigh = KNeighborsRegressor(n_neighbors=3, weights='distance')
def risk_calc(row):
base_risk = row['medical'] + row['foo... | [
"31947627+ericgao1997@users.noreply.github.com"
] | 31947627+ericgao1997@users.noreply.github.com |
7a01fcb135254742a291c46f01e581aad4cca8c0 | 54b09aac1d5dcb7f1310a9eaf63e81a09c4fb7f2 | /getting-started-with-python/hello.py | 133fd4d9df09fb7864ab09d5c01a6a4a5086f531 | [] | no_license | nikhildarocha/coursera_py4e | 3f239d89ad26a1f148e2c70c7d2ed484db3df49d | b4ebe1bc5e7607b5780427df5dedcca5b8e03351 | refs/heads/master | 2023-04-05T01:05:51.525492 | 2021-04-14T09:50:30 | 2021-04-14T09:50:30 | 357,854,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31 | py | print('Hello World Everyone!')
| [
"niks77883@gmail.com"
] | niks77883@gmail.com |
237921523213c4beab3bebd982ca877c4dbba96d | 2884f45d89a5cd378ac44d236fc7c11ff01f2d8b | /main.py | 2ff64ce7e8ed859549778e58b852b52894611199 | [] | no_license | UCSD-CSE-SPIS-2021/practice-Jodi-R | 32ea94de9d3c845403c183fc4d153a8e93f2572a | 849fe54f9cbb7ceb11c570a87cd87e133e878256 | refs/heads/master | 2023-07-04T23:42:38.973082 | 2021-08-02T23:08:50 | 2021-08-02T23:08:50 | 392,114,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50 | py | #Jodi Roe for CSE SPIS 2021
print('Hello, World!') | [
"88351397+jodiiroe@users.noreply.github.com"
] | 88351397+jodiiroe@users.noreply.github.com |
93ff846d9e696fd2a04801945c98c805d84766e0 | 08bc071c11338a2a1fd05e9c8bb1505d16492a14 | /tests/test_basic.py | 8a891581c7a26f98819983fea640ca23af02b154 | [
"MIT"
] | permissive | flingflingfling/flasky | f3a33b7423a47a497ea43e1dcff84de29477c0f4 | 7117023bf69180b8eacae9dde69c621668ddf11d | refs/heads/master | 2021-06-04T06:04:30.094170 | 2016-07-17T11:29:58 | 2016-07-17T11:29:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 783 | py | #coding:utf8
'''
this is a unittest demo,
it is just a simply testing program
have fun
'''
import unittest
from flask import current_app
from app import create_app, db
class BasicsTestCase(unittest.TestCase):
def setUp(self): # create a new test config env and db
self.app = create_app('testing')
... | [
"fly@purplemapledb.maple"
] | fly@purplemapledb.maple |
f19537278b9f16af0b07993b1df771c449dc7e10 | b70bf06a7b8289ee4508da0c28a49bc1d22ec4a2 | /Reliancestore/reliancefresh/apps.py | d5e6486b2b5b9191760bc075b88be2bf934f17cf | [] | no_license | kondlepumanikanta/djangobt6 | 7cde78e6b47806fc1634aff943549e6be2f89942 | 6fa5ef9fef1959b17b23204ac76d4881e495b431 | refs/heads/master | 2020-03-22T20:22:58.558692 | 2018-07-18T17:34:04 | 2018-07-18T17:34:04 | 139,739,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.apps import AppConfig
class ReliancefreshConfig(AppConfig):
name = 'reliancefresh'
| [
"manikantakondlepu2244@gmail.com"
] | manikantakondlepu2244@gmail.com |
ef14a9785ed07e3532880cdcce6fc0279460ecb9 | 6bea11a8b7368124f7b50f6a0775da838532ec98 | /Dbase/Sql/cleardb.py | 5af10cd91ee941e95e1e2345144cf5f47d584570 | [] | no_license | wenhanglei/PP4E-practice | aaab31a4e602902277a6cf49a63aaed04cf57d3c | b46c4029addd7a67fa0f625695f09c2e7a833546 | refs/heads/master | 2021-01-20T06:07:19.142580 | 2017-07-22T07:17:49 | 2017-07-22T07:17:49 | 89,846,018 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | """
清除表中的数据
"""
import sys
if input('Are you sure?').lower() not in ('y', 'yes'):
sys.exit()
dbname = sys.argv[1] if len(sys.argv) > 1 else 'dbase1'
table = sys.argv[2] if len(sys.argv) > 2 else 'people'
from loaddb import login
conn, curs = login(dbname)
curs.execute('delete from ' + table)
#print(curs.rowcount,... | [
"3188744608@qq.com"
] | 3188744608@qq.com |
777367c186790c4562a46fd27243d541e08d8501 | 0596f538c3055c9f215c32cd364c716e716d8e47 | /exercicios/ex029.py | b410b300366a19e68982e1f58f9eca2ab091c3bb | [
"MIT"
] | permissive | RicardoAugusto-RCD/exercicios_python | 6d2435a001966d180092374ff35a4fda232f5812 | 8a803f9cbc8b2ad0b5a6d61f0e7b6c2bc615b5ff | refs/heads/main | 2023-07-10T18:15:24.837331 | 2021-08-18T12:27:00 | 2021-08-18T12:27:00 | 388,438,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 512 | py |
# Escreva um programa que leia a velocidade de um carro.
# Se ele ultrapassar 80km/h, mostre uma mensagem dizendo que ele foi multado.
# A multa vai custar R$7,00 por cada km acima do limite.
velocidade = float(input('Digite uma velocidade em km/h: '))
if velocidade <= 80:
print('Você estava dentro da velocidade... | [
"ricardoaugusto.rcd@gmail.com"
] | ricardoaugusto.rcd@gmail.com |
5aae57ca5da47c5876a5d1998f846871038a0fa0 | 009cca46aed9599d633441b044987ae78b60685a | /scripts/submitJLabJob_sample.py | 51c99e1ea1f8794af4f950771c0051f69c129d25 | [] | no_license | cipriangal/QweakG4DD | 0de40f6c2693021db44916e03d8d55703aa37387 | 5c8f55be4ba0ec3a3898a40c4e1ff8eb42c550ad | refs/heads/master | 2021-01-23T10:29:53.163237 | 2018-06-25T19:03:24 | 2018-06-25T19:03:24 | 29,534,503 | 0 | 4 | null | 2017-03-27T21:06:14 | 2015-01-20T14:45:37 | C++ | UTF-8 | Python | false | false | 5,539 | py | #!/usr/bin/python
from subprocess import call
import sys,os,time
def main():
#center, x,y,z=0,335,560
_xP=0.
_yP=335.0
_zP=560.
_Px=0.#deg
_Py=0.
_beamE=1160#MeV
_email="ciprian@jlab.org"
_source="/lustre/expphy/work/hallc/qweak/ciprian/simCodeG410/QweakG4DD"
_directory="/l... | [
"ciprian@jlab.org"
] | ciprian@jlab.org |
26eb004d0f44e7ffb5285a806f4ef704d73d851b | 861327f7758b7ee3447584041e4918145b72d97f | /lmvelisa2.py | 89404e350f0262c57a9b38306e4e10b1eec935da | [] | no_license | tsamartino/ELISA | 3b8df19b2fd9c82ac6bb4c25447ac04b266aebf5 | 799b409e284bdb2387d5260ce2d86981652ca9ed | refs/heads/master | 2021-01-01T18:11:29.877640 | 2015-06-19T21:58:53 | 2015-06-19T21:58:53 | 37,539,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,440 | py | import statistics
import os
source = "0633-1.txt"
#Open plate and print name
plate = open(source, 'r')
plate_name = "15-"
for char in source:
if char == ".":
break
else:
plate_name += char
print ("Plate name:", plate_name)
plate.readline()
plate.readline()
plate.readline()
#Creates dictionary sorted by row
#To... | [
"tsamartino@gmail.com"
] | tsamartino@gmail.com |
e7cc031b91f1dbc8e5774610579c7d6f5a97b643 | e14b70a36e096ee24074b76253ac1334be66d903 | /extranet/modules/oauthprovider/controllers/authorize.py | bf79ab060b0d595e21d02d8c7a86fecda8b7a4e4 | [] | no_license | lodi-g/extranet | e3df378222567f6831b4b8ee4545403bffb2462a | 9252e13364574cbd0c6a9aa53de91a323115c776 | refs/heads/master | 2021-08-08T07:46:55.758088 | 2017-11-09T00:44:12 | 2017-11-09T01:16:34 | 110,174,987 | 0 | 0 | null | 2017-11-09T22:49:14 | 2017-11-09T22:49:14 | null | UTF-8 | Python | false | false | 1,637 | py | from flask import render_template, request, flash, session
from flask_login import login_required, current_user, login_fresh
from werkzeug.security import gen_salt
from extranet import usm
from extranet.modules.oauthprovider import bp
from extranet.connections.extranet import provider as extranet_provider
from extrane... | [
"jordan.demaison@gmail.com"
] | jordan.demaison@gmail.com |
8a7df27444a69a45468f9ca79c391874c7e44342 | f6fd01eaa74ace15ffc085065a51681565bf2740 | /api_test/api/user.py | 63fa52bd6a00572a8fbe028ee2e82684c1645a62 | [] | no_license | emmashen6786/api_test | d05c89a718b7441bb7f4d099792f873afa782056 | 51486a4c05548b410e360777c2e93d1c954bfa06 | refs/heads/master | 2020-05-15T03:10:40.762906 | 2019-04-19T02:25:08 | 2019-04-19T02:25:08 | 182,062,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,316 | py | from rest_framework import parsers, renderers
from rest_framework.authtoken.models import Token
from rest_framework.authtoken.serializers import AuthTokenSerializer
from rest_framework.views import APIView
from api_test.serializers import TokenSerializer
from api_test.common.api_response import JsonResponse
class Ob... | [
"shanshan.shen@dianrong.com"
] | shanshan.shen@dianrong.com |
b00f6542c6e1995eda6a3909f6de3a865280c095 | 16147da7fb23a54e3604bcf046b418755d92e9fe | /src/run_treemask.py | 603d2c4aa870f8133b26b76e934608503c022dc4 | [] | no_license | tcc7496/veggie_code | 28861e0274231f220b7c72fd678731590d45b8c6 | 5fb3fb0a7f6c32d3c56774183dea731601c9b972 | refs/heads/master | 2023-08-05T02:06:49.283707 | 2021-09-17T16:47:42 | 2021-09-17T16:47:42 | 352,734,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 697 | py | '''
A script to extract the tree mask from the plant species map
'''
#######################################
from tree_mask import *
import click
@click.command()
@click.argument('file', type=click.Path(exists=True), help = 'full filepath to input plant species map')
@click.argument('outfile', type=click.Path(), he... | [
"tcc78128@gmail.com"
] | tcc78128@gmail.com |
ab31f35f9772ff24371b4e4edd9c0ee518c224a7 | 3820d5b11619a2205426b0203f937495eea45611 | /learnOne.py | 68f21de50199a61a76112210598d18afb8fdde57 | [] | no_license | rwq9866/learnPython | 1f490418ec51de2885a60b10f5d160d541712fb3 | fbc9fc05bf47dccedfbe4b78ee130e81706f4ed2 | refs/heads/master | 2020-06-15T05:23:43.850012 | 2019-07-04T09:44:09 | 2019-07-04T09:44:09 | 195,214,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,531 | py | # -*- coding: utf-8 -*-
# 输出
print("hello world!!!") # 自动换行输出
print("hello python!!!", end="这里面想写啥写啥 空格什么的 怎么喜欢怎么来 ") # 不换行输出
# 输入
demo = input("请输入您的姓名,按enter键结束: ")
print(demo, ",欢迎来到Python的世界!")
# 数字类型 不可变
# 1. 整数 1
# 2. 浮点数 1.1 1.6e9(1.6 * 10的9次方)
# 3. 布尔型 True(1) False(0)
# 4. 复数 eg: 1 + 1j
# 加减乘除算法时... | [
"841557177@qq.com"
] | 841557177@qq.com |
c5ec95c66cfe71d29bb1d882b8fb66830103b339 | 8fb32802501815a06728c438d1485ded121e2fc8 | /py/blender/TimerScript.py | 8a0698dbdb5e731dd0c377ef28a2ee60ce3c8b87 | [
"MIT"
] | permissive | grimlock-/randomscripts | c5121d05a2dc80cffda410d9f3eb9245763c763d | b3ee95e0abdaf1320318d87b37f15b5ccee220f4 | refs/heads/master | 2022-02-28T10:47:51.617810 | 2019-08-07T05:22:02 | 2019-08-07T05:22:02 | 36,908,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,598 | py | #This script is used to create a timer when making a video in the Blender VSE.
#When executed, the script grabs every marker on the timeline and groups them
#in pairs by name. Markers should be named in the pattern <sectionname>.Start
#and <sectionname>.End and there can be no more than two markers per section.
#Every ... | [
"gtm.mason@gmail.com"
] | gtm.mason@gmail.com |
13f14dc7b1dd99b30978cce555abb5bec03d63be | e98064e3b51cbfdef409bca9642bea32d772bc77 | /hw2/2.1/src/plot.py | d2f2fc35bc953624d39c9e51cde21463209c2669 | [] | no_license | KUAN-HSUN-LI/SDML | b59b26ec1f71689d0bb16d6c34c05b59f3fc3004 | be84492fed6e4712d9a86dc1cef481954aefe22f | refs/heads/master | 2021-06-23T07:56:34.050666 | 2019-11-18T05:50:29 | 2019-11-18T05:50:29 | 210,079,111 | 1 | 0 | null | 2021-04-06T01:33:18 | 2019-09-22T02:25:29 | Jupyter Notebook | UTF-8 | Python | false | false | 704 | py | import matplotlib.pyplot as plt
%matplotlib inline
with open('model/history.json', 'r') as f:
history = json.loads(f.read())
train_loss = [l['loss'] for l in history['train']]
valid_loss = [l['loss'] for l in history['valid']]
train_f1 = [l['acc'] for l in history['train']]
valid_f1 = [l['acc'] for l in history['... | [
"b06209027.ntu.edu.tw"
] | b06209027.ntu.edu.tw |
a17a3398d51c31dd07c12aac53b64feea4bb01a3 | 871e1e8e8e4a13d930ad25b24bdd9cd9fefa3c49 | /accounts/views.py | f9e9c6428fed13fdd8754a44b995edc5383f24d9 | [] | no_license | namitgpta/Django-projects | 6c9d7be5f8de358f7b7130716833ce0a31e6a54e | 642438a8700809547b742e6427677fb410c67317 | refs/heads/master | 2023-04-16T15:57:35.024649 | 2021-05-02T17:40:38 | 2021-05-02T17:40:38 | 363,646,729 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,916 | py | from django.shortcuts import render, redirect
from django.contrib import messages
from django.contrib.auth.models import User, auth
# Create your views here.
def login(request):
if request.method == 'POST':
username = request.POST['username']
password = request.POST['password']
user = auth... | [
"namitg677@gmail.com"
] | namitg677@gmail.com |
78a758b50b7c3ecb4bb6e5761d61565d2eb317a5 | 2c5b25d0b5d6ba66d013251f93ebf4c642fd787b | /wrong_answer_codes/Contiguous_Array/Contiguous Array_324757576.py | 1c620fdc45f25037006caf70d00f3c54a4797b19 | [] | no_license | abhinay-b/Leetcode-Submissions | da8099ac54b5d36ae23db42580064d0f9d9bc63b | d034705813f3f908f555f1d1677b827af751bf42 | refs/heads/master | 2022-10-15T22:09:36.328967 | 2020-06-14T15:39:17 | 2020-06-14T15:39:17 | 259,984,100 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 787 | py | class Solution:
def findMaxLength(self, nums: List[int]) -> int:
count = [0]*2
start = end = 0
maxVal = 0
for idx,num in enumerate(nums):
count[num] += 1
diff = abs(count[0] - count[1])
# print(diff,start,end)
if diff > 1:
... | [
"abhinayb.sssihl@gmail.com"
] | abhinayb.sssihl@gmail.com |
edcb724454b921fe8dc091a316470e10f89459df | 6cea6b8cfeef78b433e296c38ef11f4637609f20 | /src/collectors/ipmisensor/test/testipmisensor.py | 66a79164c5d9b0f45141583e0676c31a4b5b8902 | [
"MIT"
] | permissive | philipcristiano/Diamond | b659d577ec054c06ab99308d6c2ba3163de84e1a | 577270ea820af597458aa5d3325367608cd37845 | refs/heads/master | 2021-01-18T10:04:59.057835 | 2012-08-02T04:08:02 | 2012-08-02T04:08:02 | 3,140,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,392 | py | #!/usr/bin/python
################################################################################
from test import *
from diamond.collector import Collector
from ipmisensor import IPMISensorCollector
################################################################################
class TestIPMISensorCollector(Coll... | [
"kormoc@gmail.com"
] | kormoc@gmail.com |
5dfe38fc03c0375b3b51d023a6dd2aa1cca6b25d | ac42f1d918bdbd229968cea0954ed75250acd55c | /admin/dashboard/openstack_dashboard/dashboards/physical/hosts/compute/tests.py | 47aa906803025be9db313abb19823b19ec492fcc | [
"Apache-2.0"
] | permissive | naanal/product | 016e18fd2f35608a0d8b8e5d2f75b653bac7111a | bbaa4cd60d4f2cdda6ce4ba3d36312c1757deac7 | refs/heads/master | 2020-04-03T22:40:48.712243 | 2016-11-15T11:22:00 | 2016-11-15T11:22:00 | 57,004,514 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,056 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under th... | [
"rajagopalx@gmail.com"
] | rajagopalx@gmail.com |
74889d0b7d3a2f0c76254b7c7f76fed2298d71da | 39d9bc0bdf069700aa44c3cc8cb4127f5770431d | /2nd Place/geopose/models/heads.py | 3ee102a6931f81050fd427f0dffeea2d68386d05 | [
"MIT"
] | permissive | personx000/overhead-geopose-challenge | 5189d7dd6e385b4e9c0b0b238168f66dd0a60033 | f32b5763ae01627519c9080224b8be97ebe7f3e2 | refs/heads/main | 2023-08-30T08:01:04.820481 | 2021-11-05T13:45:52 | 2021-11-05T13:45:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,143 | py | from typing import List
import torch
import torch.nn.functional as F
from pytorch_toolbelt.modules import (
ACT_RELU,
instantiate_activation_block,
GlobalAvgPool2d,
FPNFuseSum,
ResidualDeconvolutionUpsample2d,
conv1x1,
)
from torch import nn
from ..dataset import (
OUTPUT_VFLOW_DIRECTION,
... | [
"klwetstone@gmail.com"
] | klwetstone@gmail.com |
7975a24774fc1e6eb1d6b45c1bbbc4badcec3213 | 8d6bde798a6103fe43c4ba4e231d4f90411d68f0 | /day-34/quizzler-app/ui.py | bd77df45aa224b737faf1a7fcfa8c5428ac36f9a | [] | no_license | lhserafim/python-100-days-of-code-monorepo | 66dd3545e264224af84a1d3b7694681c44e391f1 | de03d0979bb4c1c770cd79b5f01dda72ae2bb375 | refs/heads/master | 2023-05-30T10:28:06.206198 | 2021-06-14T14:56:33 | 2021-06-14T14:56:33 | 363,091,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,570 | py | from tkinter import *
from quiz_brain import QuizBrain
THEME_COLOR = "#375362"
class QuizInterface:
# DICA. Estou atribuindo um tipo para o meu parâmetro. Isto é opcional mas ajuda no autocomplete.
# Isto é similar ao TypeScript
def __init__(self, quiz_brain: QuizBrain):
self.quiz = quiz_brain
... | [
"a29061@somoseducacao.com.br"
] | a29061@somoseducacao.com.br |
52b9f542a153e979406b22d48c38a86711d3273c | ee8ec2e94586e676440c85da0721c4ba7dcfc5bf | /fc_community/fcuser/views.py | e979ceb39a951fa5a594f6408e6afbeb381107cf | [] | no_license | simbyungki/fc_django | acc97c48db082fd2d5a52833fa704bad241667dd | 99332b0bfa2ec4d8bbf7e0c153926dbe07b4ae46 | refs/heads/master | 2023-01-02T15:47:42.352510 | 2020-11-02T10:02:46 | 2020-11-02T10:02:46 | 307,319,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,582 | py | from django.http import HttpResponse
from django.shortcuts import render, redirect
from django.contrib.auth.hashers import make_password, check_password
from .models import Fcuser
from .forms import LoginForm
def index(request) :
res_data = {}
user_id = request.session.get('user')
if user_id :
fcuser = Fcuser.ob... | [
"dung8524@gmail.com"
] | dung8524@gmail.com |
195a6562afd3acd4081df6c6e6f645bbeae2f17a | 2171efa295b695a485d0125ebc91158122f46493 | /django_intro/venv/bin/easy_install-3.8 | a35674f13453445504009d021be0014136107cc1 | [] | no_license | bennami/django-intro | a4b0fa7488a7abeb687e178f56b8f4543a8c8f73 | 97deb170908823717dfe63388288e8836dd88c98 | refs/heads/master | 2022-11-16T12:44:37.625401 | 2020-07-07T12:33:57 | 2020-07-07T12:33:57 | 277,811,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | 8 | #!/home/imane/PycharmProjects/django_intro/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"benbenimane@hotmail.com"
] | benbenimane@hotmail.com |
a4bcbc3ea13c6d7161096668057371a82bc97ec8 | e7ea544475ebfa70ebdf5d5949bde9e23edc60ba | /gbp/scripts/common/buildpackage.py | e1edfb29587dfad1895660c095e2fe13141cba7b | [] | no_license | dcoshea/git-buildpackage | 80cb7d890222488663a09e3d790fc5e985f791b9 | f4aa76bfcda1ded4649cd071b123ef8d7bf2344d | refs/heads/master | 2020-05-26T21:05:37.574986 | 2017-02-19T13:17:11 | 2017-02-19T13:17:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,061 | py | # vim: set fileencoding=utf-8 :
#
# (C) 2006-2011, 2016 Guido Guenther <agx@sigxcpu.org>
# (C) 2012 Intel Corporation <markus.lehtonen@linux.intel.com>
# This program 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 Softwa... | [
"agx@sigxcpu.org"
] | agx@sigxcpu.org |
5426dbbd4f55d07a5a4548122f515314529345e8 | 9a8fd017aa2ca45d423d09434a6574eb7d1fe734 | /Natural_Language_Processing_544/Finite State Machine/french_count.py | cbb8eed0b6f051405f669c2ba1777bba8ffb7a9f | [] | no_license | mzy-ray/AI_Programming | d29395f33c86f28afb366f3bb72b1966ef3d3a7f | 9069e2e635815142f0379424f492e52cc370ab7e | refs/heads/master | 2020-03-28T04:44:14.845900 | 2018-10-02T06:53:20 | 2018-10-02T06:53:20 | 147,734,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,553 | py | import sys
from fst import FST
from fsmutils import composewords
kFRENCH_TRANS = {0: "zero", 1: "un", 2: "deux", 3: "trois", 4:
"quatre", 5: "cinq", 6: "six", 7: "sept", 8: "huit",
9: "neuf", 10: "dix", 11: "onze", 12: "douze", 13:
"treize", 14: "quatorze", 15: "quinz... | [
"mzy.ray@gmail.com"
] | mzy.ray@gmail.com |
1781619b0a8abd1d3cb474a67ee1c1d84f0bd6c4 | 080688b23a9114a41594a4483b07a8896f106102 | /app.py | 3373c706cfc92661c50d138bb12a87ac3122f194 | [
"Apache-2.0"
] | permissive | ashishqm/sept | 3160e9498190a8b60d93fc604394ab4d9c9e67ee | 0772c20417bb3d1331f3960016e4e6d861acf8ec | refs/heads/master | 2020-03-27T21:23:48.242448 | 2018-09-03T02:16:25 | 2018-09-03T02:16:25 | 147,140,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,418 | py | #!/usr/bin/env python
import urllib
import json
import os
from flask import Flask
from flask import request
from flask import make_response
# Flask app should start in global layout
app = Flask(__name__)
@app.route('/static_reply', methods=['POST'])
def static_reply():
req = request.get_json(silent=True, force=... | [
"noreply@github.com"
] | ashishqm.noreply@github.com |
a46afda8041485109144a60243600a990bd2b7d1 | c0d5b7f8e48a26c6ddc63c76c43ab5b397c00028 | /tests/columns/test_array.py | 731e15ff8b962d66534e989094fe5f8cbef23a93 | [
"MIT"
] | permissive | aminalaee/piccolo | f6c5e5e1c128568f7ccb9ad1dfb4746acedae262 | af8d2d45294dcd84f4f9b6028752aa45b699ec15 | refs/heads/master | 2023-07-14T09:44:04.160116 | 2021-07-11T22:56:27 | 2021-07-11T22:56:27 | 386,398,401 | 0 | 0 | MIT | 2021-07-15T19:32:50 | 2021-07-15T19:08:17 | null | UTF-8 | Python | false | false | 2,199 | py | from unittest import TestCase
from piccolo.table import Table
from piccolo.columns.column_types import Array, Integer
from tests.base import postgres_only
class MyTable(Table):
value = Array(base_column=Integer())
class TestArrayPostgres(TestCase):
"""
Make sure an Array column can be created.
"""
... | [
"dan@dantownsend.co.uk"
] | dan@dantownsend.co.uk |
31abc275139c5e9004c2b45bc340bbde3de00afd | e5d4ce431548bea004fad8db462467bbce210492 | /accounts/urls.py | a7a46f5cd6ff1d7bb8d1f15d4cf6e96535790b5f | [] | no_license | emirmaydemir/blogprojesiCepMarketim | 6f95e307c8cb870b1601d43179420ecd53a5d1c7 | 47635e00ae72355c170deb5c5cab4c8939fafe07 | refs/heads/master | 2023-02-05T10:51:54.476227 | 2020-12-22T11:34:48 | 2020-12-22T11:34:48 | 323,609,292 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 331 | py |
from django.urls import path
from .views import *
from post.views import post_index, post_detail
from django.urls import re_path
app_name='accounts'
urlpatterns = [
re_path(r'login/$',login_view,name='login'),
re_path(r'register/$', register_view, name='register'),
re_path(r'logout/$', logout_view, name='... | [
"emirmaydemir@gmail.com"
] | emirmaydemir@gmail.com |
3f259779a113f38727e5e331c041593a3830edfe | caaf56727714f8c03be38710bc7d0434c3ec5b11 | /tests/components/telegram/test_notify.py | 7488db49d9ea58db8f78e93cab0842fa686ee119 | [
"Apache-2.0"
] | permissive | tchellomello/home-assistant | c8db86880619d7467901fd145f27e0f2f1a79acc | ed4ab403deaed9e8c95e0db728477fcb012bf4fa | refs/heads/dev | 2023-01-27T23:48:17.550374 | 2020-09-18T01:18:55 | 2020-09-18T01:18:55 | 62,690,461 | 8 | 1 | Apache-2.0 | 2023-01-13T06:02:03 | 2016-07-06T04:13:49 | Python | UTF-8 | Python | false | false | 1,598 | py | """The tests for the telegram.notify platform."""
from os import path
from homeassistant import config as hass_config
import homeassistant.components.notify as notify
from homeassistant.components.telegram import DOMAIN
from homeassistant.const import SERVICE_RELOAD
from homeassistant.setup import async_setup_componen... | [
"noreply@github.com"
] | tchellomello.noreply@github.com |
496d7306eb09257e9b34d99372293f4febf58eda | ae912cfda71c89db5cb9d01e87ffc54c1dcb328d | /jobs/migrations/0002_project_project_tech.py | a98c0c0da537a40a8c78c8ff8d2ce677e0df106b | [] | no_license | harshitksrivastava/portfolio-project | af6aa973d04a7be02c4984c657904ffb8302ba2e | ff36b186091e5382b2fb0567e90313aad71224fe | refs/heads/master | 2022-12-12T19:10:49.182860 | 2020-12-17T12:07:49 | 2020-12-17T12:07:49 | 199,324,804 | 0 | 0 | null | 2022-11-22T06:36:29 | 2019-07-28T18:46:15 | JavaScript | UTF-8 | Python | false | false | 477 | py | # Generated by Django 3.0.8 on 2020-08-02 12:54
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('jobs', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='project',
... | [
"harsh0311@gmail.com"
] | harsh0311@gmail.com |
3169f03ad1a82380f124de333e6a15857ecf1ae8 | 4fc21c3f8dca563ce8fe0975b5d60f68d882768d | /GodwillOnyewuchi/Phase 1/Python Basic 2/day 12 task/task10.py | a4924e40fbc8159a266fbfd0579729acab934db6 | [
"MIT"
] | permissive | Uche-Clare/python-challenge-solutions | 17e53dbedbff2f33e242cf8011696b3059cd96e9 | 49ede6204ee0a82d5507a19fbc7590a1ae10f058 | refs/heads/master | 2022-11-13T15:06:52.846937 | 2020-07-10T20:59:37 | 2020-07-10T20:59:37 | 266,404,840 | 1 | 0 | MIT | 2020-05-23T19:24:56 | 2020-05-23T19:24:55 | null | UTF-8 | Python | false | false | 290 | py | # Python program to get numbers divisible by fifteen from a list using an anonymous function
def divisibleby15(lists):
newList = []
for i in lists:
if i % 15 == 0:
newList.append(i)
return newList
print(divisibleby15([23, 56, 12, 15, 45, 23, 70, 678, 90])) | [
"godwillonyewuchii@gmail.com"
] | godwillonyewuchii@gmail.com |
08f80bf55016aa228f9cc5eb54a1e81918a05532 | 87645df4118bc0c7c63bb4cca5d38cc2967fa6ba | /assignment18.py | 9842084f08b0fe1127e3b6f908fcfc5ddf2e51e6 | [] | no_license | manpreet01multani/acadview_assignments | e0559f140d95b293759b59b5284782b1950ed567 | 52fc9e97396147f50aea3b3025fa2975a75a1756 | refs/heads/master | 2020-03-19T11:22:13.006177 | 2018-06-24T11:15:09 | 2018-06-24T11:15:09 | 136,450,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 722 | py | #1.
from tkinter import *
r=Tk()
d={"Meet":789,"jeet":456,"heer":786,"reet":234,"geet":987,"geen":675,"reet":345}
label=Label(r,text="Name",font='size,10')
label.pack(side="bottom")
label=Label(r,text="phone number")
label.pack(side="top")
def handleList(event):
label3=mn.get(ACTIVE)
print(label3)
ph=d.get... | [
"manpreet01multani@gmail.com"
] | manpreet01multani@gmail.com |
e224dafd3e35959feffd1ace01599c5833048a0b | 627d40980db4fbcec59249831e5f7d04f6dcc767 | /For_Lopp.py | e06ef50d7c5a5e7cf1248c5b317ca962559352f9 | [] | no_license | Shantha-Kumar-A/yuvarepo | 33a151c7241c2b3bd6a1c1d3fac14b015e73172b | 574811bad1b573bd19912a27001a47bca0832a60 | refs/heads/master | 2022-06-11T07:37:50.471032 | 2020-05-09T10:07:43 | 2020-05-09T10:07:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | x = ['Yuvaraj','hi',298]
for i in x:
print(i)
x = 'Yuvaraj'
for i in x:
print(i)
for i in range(10):
print(i)
for i in range(11,20):
print(i)
for i in range(20,10,-1):
print(i)
| [
"noreply@github.com"
] | Shantha-Kumar-A.noreply@github.com |
ce6667dc95fdefc8be193b41ae44902d4600a89a | 7a9c01f7029e74c697100e244d26c72d0e283d47 | /models/amenity.py | 9adbf8d9f5418e8b43eeb584cccd1acbde12617c | [] | no_license | toyugo/holbertonschool-AirBnB_clone | 63321296ecee98b1a0cda39c7b155cc2ea5ececb | 5edaeafb6516130f2027b505fe8b168f6f9de174 | refs/heads/main | 2023-03-21T06:32:18.728878 | 2021-03-04T13:08:56 | 2021-03-04T13:08:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | #!/usr/bin/python3
""" Module Amenity """
from models.base_model import BaseModel
class Amenity(BaseModel):
""" Class Amenity base en BaseModel """
name = ""
| [
"you@example.com"
] | you@example.com |
d1c7e21291310553bb972a82567ec40099308797 | f777e7b52b4fe2839b1c487e1f1d901e67906705 | /galeria/admin.py | 2d9d0bb64375ca9d372a9be1e472be83545618e2 | [] | no_license | dxviidmg/LosArquetiposDeJung | 4e438e08f1664532cf2dfb2c5d1dcda733e84ee6 | ce8caf64464be20b64c9c7e5924028560552557b | refs/heads/master | 2020-07-15T14:03:37.851172 | 2017-03-08T03:13:44 | 2017-03-08T03:13:44 | 66,895,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 81 | py | from django.contrib import admin
from .models import *
admin.site.register(Foto) | [
"david@david-Lenovo-U310"
] | david@david-Lenovo-U310 |
c4b2fcaa8f6499cdca69575ead3662b305b1ccd5 | 4ed33dba672aa6aaef42698ef8437c872b078d37 | /backend/home/migrations/0001_load_initial_data.py | e78b5b69ad3761f691200103468335142fc62434 | [] | no_license | crowdbotics-apps/flat-heart-27928 | aecb93c66e39e94e01cef7fe9506effe994cde18 | ce209de8910b1e9f006814b58a05aed1eeada32d | refs/heads/master | 2023-05-26T14:51:41.045373 | 2021-06-11T20:01:34 | 2021-06-11T20:01:34 | 376,130,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | from django.db import migrations
def create_site(apps, schema_editor):
Site = apps.get_model("sites", "Site")
custom_domain = "flat-heart-27928.botics.co"
site_params = {
"name": "Flat Heart",
}
if custom_domain:
site_params["domain"] = custom_domain
Site.objects.update_or_cr... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
fb3c0ac7bfa0dcea0555b2ff32f1485a6926b6e0 | 033fc1b8735f5631c712c639abccea610277a0d7 | /Configuration.py | 07a486d50b58e37f3c7e0a25870d5c836fc56e51 | [] | no_license | MolotovCherry/Yandere-Simulator-Skin-Switcher | a7e70fb85b124eb90b4637ccac834d797afd16ea | 6b17eeb1aa0cd2b2f70ad0f7553d6a599e7576ff | refs/heads/master | 2022-11-25T09:02:01.167000 | 2020-07-30T09:09:42 | 2020-07-30T09:09:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,033 | py | import os
import sys
from configparser import ConfigParser
def singleton(cls):
def inner(*args, **kwargs):
try:
return cls.__instance
except AttributeError:
__instance = cls(*args, **kwargs)
cls.__instance = __instance
return __instance
return in... | [
"cherryleafroad@gmail.com"
] | cherryleafroad@gmail.com |
d4904493099383546f82db50de128bdb52234ea6 | 6e6e27192e3fe888af95a0f11bec5aebe06a74d8 | /ArrayAndString/L209_minimum-size-subarray-sum.py | c657e576fd24315abd9ce7f7772c46aa5390fdef | [] | no_license | lihujun101/LeetCode | af51a7eeec4b64f9d04b439285e2d0444c7fdf7e | 96e847591aa6ea7ea285dbcfc1c9bcfc32026de5 | refs/heads/master | 2021-07-22T11:00:59.387428 | 2019-01-01T12:40:43 | 2019-01-01T12:40:43 | 146,878,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 875 | py | class Solution:
def minSubArrayLen(self, s, nums):
"""
:type s: int
:type nums: List[int]
:rtype: int
"""
# O(n)的方法:
# 1、sum和s对比,sum滚动计算,向右加,向左减
if len(nums) == 0:
return 0
i, j = 0, 0
sum, count, min_count = 0, 0, float("in... | [
"lihujun101@163.com"
] | lihujun101@163.com |
a1e1f711eb8af4ca585330198a42446ff9f904ef | 8afeb5e41d1efbce2b8feb8f557f263120db91d3 | /api/search_rest.py | 736b8df13c0c8c9d8ca68368185325e599ceb723 | [] | no_license | panos1995/msccs-t23 | 7bbe9ed4c9172f3f72c2ce47e14db639a95b054b | 228aaa71640f186ceb8e85c295c13d9df36611a5 | refs/heads/master | 2020-04-03T15:23:35.299920 | 2018-11-05T15:44:07 | 2018-11-05T15:44:07 | 155,361,035 | 0 | 0 | null | 2018-10-30T09:48:21 | 2018-10-30T09:48:21 | null | UTF-8 | Python | false | false | 1,162 | py | import datetime
import time
import tweepy
import pymongo
import sys
import json
from bson import json_util, ObjectId
def query_search(query):
access_token = "IHpSjYd5AuCdDRZTaGiMOwHUJ"
access_token_secret = "FNUvxez9N9vBzY72HiZcukHQqVqO0ZiV498qyaYDxaV5nKFSgu"
auth = tweepy.AppAuthHandler(acces... | [
"noreply@github.com"
] | panos1995.noreply@github.com |
6bc05f1c24acd83be18b9337a531c43c42f39d63 | 6e928e1651713f945c980bca6d6c02ac5dce249a | /task1/5.py | 64b92c59d071daed1a062f5bbc9c61742d9564d9 | [] | no_license | Akzhan12/pp2 | 97334158b442383df32583ee6c0b9cab92a3ef45 | 56e33fd9119955ea8349172bf3f2cc5fbd814142 | refs/heads/main | 2023-06-28T08:30:11.068397 | 2021-07-29T08:34:43 | 2021-07-29T08:34:43 | 337,359,826 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | a = list(map(int,input().split()))
n = int(input()) % len(a)
if n < 0:
n = abs(n)
print(*a[n:],end = " ")
print(*a[0:n])
else:
n = abs(n)
print(*a[-n:],end = " ")
print(*a[0:-n]) | [
"noreply@github.com"
] | Akzhan12.noreply@github.com |
0c1a13795be34e0ee6d38ececfad4eb66f28e0c7 | c37cb658a5c5fb3dc1aafa959c86866dc1ed9e39 | /第八章/2-sock_server_client.py | 5e8660e8bdc147a7b1892295f041d469c57d1598 | [] | no_license | Dragonet-D/python3-study | 6fe7a7f049dd8067593c865e58d125e12b1de55a | b057d75a2421798d27e2d15e0eee35d9eb8dbf27 | refs/heads/master | 2021-10-10T21:18:30.319066 | 2021-10-01T07:52:27 | 2021-10-01T07:52:27 | 98,364,215 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | import socket
client = socket.socket()
client.connect(('localhost', 9999))
while True:
cmd = input('>>:').strip()
if len(cmd) == 0: continue
client.send(cmd)
cmd_res = client.recv(1024)
print(cmd_res)
client.close()
| [
"Dragonet-D@163.com"
] | Dragonet-D@163.com |
b1571f62c847a20ecf7624a5be9945287afced54 | 704976ea552111c6a5af9cd7cb62b9d9abaf3996 | /pypy/module/zlib/test/test_zlib.py | 35fd7147de34051908c2d1acb58fc941e3703da9 | [
"BSD-3-Clause"
] | permissive | mesalock-linux/mesapy | 4f02c5819ce7f2f6e249d34840f1aa097577645d | ed546d59a21b36feb93e2309d5c6b75aa0ad95c9 | refs/heads/mesapy2.7 | 2023-08-16T21:33:02.239581 | 2019-08-13T10:29:43 | 2019-08-13T18:06:45 | 136,080,721 | 396 | 33 | NOASSERTION | 2020-04-01T03:05:18 | 2018-06-04T20:45:17 | Python | UTF-8 | Python | false | false | 10,362 | py | """
Tests for the zlib module.
"""
import sys
try:
import zlib
except ImportError:
import py; py.test.skip("no zlib module on this host Python")
try:
from pypy.module.zlib import interp_zlib
except ImportError:
import py; py.test.skip("no zlib C library on this machine")
def test_unsigned_to_signed_3... | [
"mssun@mesalock-linux.org"
] | mssun@mesalock-linux.org |
0697999540cfd3dabcd8c47abe2e699e561d6cca | 396a7d442f1b9d4b6734f90ce73fb35cd1f2293b | /src/ashild_grotan_ex/ex01/comp_to_loop.py | 432a11967f2578cc9738e0891bdaa2d763854df7 | [] | no_license | ashildgrotan/INF200-2019-Exersices | 46d40d814f39ce6900bb057ce9ca7275f47a6d2c | 70dbac6d92d29f78c0aac8c72c7a9d1f8b42b72a | refs/heads/master | 2020-07-21T06:11:59.676983 | 2019-11-13T19:12:01 | 2019-11-13T19:12:01 | 206,767,955 | 0 | 0 | null | 2019-11-03T13:41:10 | 2019-09-06T10:10:53 | Jupyter Notebook | UTF-8 | Python | false | false | 348 | py | """
ex_01, task B.
"""
def squares_by_comp(n):
return [k ** 2 for k in range(n) if k % 3 == 1]
def squares_by_loop(n):
squares = []
for k in range(n):
if k % 3 == 1:
squares.append(k ** 2)
return squares
if __name__ == "__main__":
if squares_by_comp(10) != squares_by_loop(1... | [
"ashild.grotan@nmbu.no"
] | ashild.grotan@nmbu.no |
30d22e648e82216e843989a09b25df3c9431291e | 747f759311d404af31c0f80029e88098193f6269 | /addons/library/library_editor_supplier.py | d50451b7ea1eab1cf3f62f26950986f7861e6e54 | [] | no_license | sgeerish/sirr_production | 9b0d0f7804a928c0c582ddb4ccb7fcc084469a18 | 1081f3a5ff8864a31b2dcd89406fac076a908e78 | refs/heads/master | 2020-05-19T07:21:37.047958 | 2013-09-15T13:03:36 | 2013-09-15T13:03:36 | 9,648,444 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 72 | py | /home/openerp/production/extra-addons/library/library_editor_supplier.py | [
"geerish@omerp.net"
] | geerish@omerp.net |
02d83f4fd8430f4c51e99d05bd82592703152010 | 6e870a237de0a55f5b04f0ef4f2689e7b6084287 | /administrator/forms.py | 63c3f42b05a45d84ff4d0619e68354b6d39f9110 | [
"MIT"
] | permissive | Arose114/e-learning-with-django | 0acaba610632a31688249ae2dbdaab629444ae07 | bb463204e1d3c4a7bca5b7d4836adb06a85403fb | refs/heads/main | 2023-06-27T17:24:32.188585 | 2021-07-20T08:36:02 | 2021-07-20T08:36:02 | 375,014,280 | 0 | 0 | MIT | 2021-06-08T13:13:13 | 2021-06-08T13:13:13 | null | UTF-8 | Python | false | false | 1,829 | py | from account.forms import FormSettings
from student.models import *
from staff.models import Staff
from django import forms
from .models import Settings
class AddCourseForm(FormSettings):
class Meta:
model = Course
fields = "__all__"
class AddDepartmentForm(FormSettings):
class Meta:
... | [
"jobowonubi@gmail.com"
] | jobowonubi@gmail.com |
e418afb3c244e5d140f09bc3ff9dec3f541a546d | c864086ea38c3cfe4819fabcd71137db79a52f2f | /drugi.py | 53ebf8955dcf91801d076323c4f94518bebc5a1a | [] | no_license | kaczmarekmichal/nauka_pythona | acee5d99bd19e66d8d6fe19f71c5fd8b6d3b9b71 | d9ac839fa5290d8f7b5cb7b31e6c66d199ae8b89 | refs/heads/master | 2020-04-10T12:18:59.731505 | 2019-01-19T10:47:40 | 2019-01-19T10:47:40 | 161,018,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | marka ='Peugeot'
marka2 = 'Audi'
ilosc_drzwi = 5
pojemnosc =1.3
marka_up = marka.upper()
marka_low = marka.lower()
print ("Samochod " + marka + " ma " + str(ilosc_drzwi) + " drzwi")
print (marka_low)
print("pojemnosc po zmianach " + str(pojemnosc*2))
marka_swap=marka.swapcase()
print(marka_swap)
if ilosc_drzwi >3... | [
"kaczmarekmichal@users.noreply.github.com"
] | kaczmarekmichal@users.noreply.github.com |
42b7d6c70484231c6bb27005121f31b13a66df8b | 5d87e9864168ef07f49693ebf94c83dedfdde4ed | /setup.py | 829e7337c8b5f700daac0f6c36457913d1d6eb85 | [
"BSD-3-Clause"
] | permissive | cavestruz/spa | 34b852b63932a296009b8ee58abd50efe1f3d35a | 4f147694601e0b88f97794c8851ccdd615c73ea4 | refs/heads/master | 2022-11-05T23:04:52.604040 | 2020-06-19T16:47:22 | 2020-06-19T16:47:22 | 269,761,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | from setuptools import setup
setup(name='spa',
version='0.1',
description='Tests of spa measurements on 300 sims',
url='http://github.com/cavestruz/spa',
author='Camille Avestruz',
author_email='cavestru@umich.edu',
license='BSD3',
packages=['spa'],
zip_safe=False)
| [
"cavestru@umich.edu"
] | cavestru@umich.edu |
73a7c6f6c221eea8f7d32240e74cb094dffad3f5 | 755e8c18b6877cfc750d49f65a9b31a1380c3862 | /main.py | d9c43cf8ae9297d4dc9d3e2bbb75cb11efa38514 | [] | no_license | nope2jope/sooth_seer | 36b9382c69a64837e2ae57689dba395c3f0191e7 | 7bda629c33c1b778041a24bc3a2df041efe434f4 | refs/heads/master | 2023-07-15T12:14:23.576191 | 2021-09-01T16:48:51 | 2021-09-01T16:48:51 | 387,584,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,554 | py | from sooth_sayer import croupier, deck_writer
from pprint import pprint
import os.path
from flask import Flask, render_template, redirect, url_for, request
from flask_bootstrap import Bootstrap
import os
app = Flask(__name__)
app.config['SECRET_KEY'] = os.environ['ENV_SECRET_KEY']
Bootstrap(app)
# checks to see if cs... | [
"josephkisbye@gmail.com"
] | josephkisbye@gmail.com |
3a18512d569b9063b5ddbac6e2d4e18eff02ff34 | dab13cee0dbdd13ee891e8f81378255e91e8cf34 | /Blog/bin/django-admin.py | b6ae43ff66464d4bc2b6889378afad55c4348ed4 | [] | no_license | aaron-gl94/blog | 1dd5f5664cca268cfb92e0b118d1ef4732224b1e | b955825c51782501745b7377a731d0c3de131d80 | refs/heads/master | 2021-01-20T18:36:04.147224 | 2016-07-29T15:35:02 | 2016-07-29T15:35:02 | 64,489,270 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | #!/home/syscorp/Backend/Blog/bin/python3
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"aaron_admb94@hotmail.com"
] | aaron_admb94@hotmail.com |
70bba7946ac7f7477975d7e1e539ba54fb5208fd | 918becd643a9d0fec941f89c0da3eb5295fa7104 | /i3/i3-quickterm/i3-quickterm~ | 2d013f3485864f0f1bbce8e99794609154fb5c29 | [] | no_license | xircon/Scripts-dots | 2790dc6f7825302ee66d8cc58dd768b0ddc394a7 | ef27d11e4163ddb223a2a4cb9ed47af71974cd81 | refs/heads/master | 2021-01-20T03:09:26.086417 | 2018-10-13T14:26:15 | 2018-10-13T14:26:15 | 89,503,757 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,845 | #!/usr/bin/env python3
import argparse
import copy
import fcntl
import json
import os
import shlex
import subprocess
import sys
from contextlib import contextmanager, suppress
from pathlib import Path
import i3ipc
MARK_QT_PATTERN = 'quickterm_.*'
MARK_QT = 'quickterm_{}'
DEFAULT_CONF = {
'menu': 'rofi -dmenu... | [
"xirconuk@gmail.com"
] | xirconuk@gmail.com | |
e5ab44dc776222c231274dd703bcd5aebdb8b110 | f207586e34b37b13ee6012ea08f174e302fa0078 | /mimo/util/decorate.py | cf41979d6dfcac6b024ecd468df4e0901d8627e7 | [
"MIT"
] | permissive | pnickl/mimo | 92b7858108e077ff43082f15f635d1205120b143 | 81c4bbd2594e2136445009eae752ab8a1602a1cf | refs/heads/master | 2022-12-24T02:10:34.838878 | 2020-08-04T19:24:21 | 2020-08-04T19:24:21 | 302,394,694 | 2 | 0 | MIT | 2020-10-08T16:07:26 | 2020-10-08T16:07:25 | null | UTF-8 | Python | false | false | 1,796 | py | def pass_obs_arg(f):
def wrapper(self, obs=None, **kwargs):
if obs is None:
assert self.has_data()
obs = [_obs for _obs in self.obs]
else:
obs = obs if isinstance(obs, list) else [obs]
return f(self, obs, **kwargs)
return wrapper
def pass_obs_and_la... | [
"abdulsamad@ias.informatik.tu-darmstadt.de"
] | abdulsamad@ias.informatik.tu-darmstadt.de |
da6bbc90bc3f5eb9cc318bf4a17e5c13343bd2a6 | ed7e9c15fa0ddf5fa45e5c9392cd032dcc41c160 | /miro_name_funktion.py | b5b52789bbb8f0dced89a7797deee3d25cf1b8b2 | [] | no_license | ZiggyStarProgrammer/kyh-practice | acefd043572a8d8ac03ea6e06544f485c32c2349 | d253ddb1e39e99bf5528096541d4b978a7e7d289 | refs/heads/master | 2023-01-13T13:04:13.948295 | 2020-11-30T09:04:02 | 2020-11-30T09:04:02 | 291,671,537 | 0 | 0 | null | 2020-09-01T08:18:56 | 2020-08-31T09:25:50 | Python | UTF-8 | Python | false | false | 148 | py | import random
def hello(name):
rnd_age = random.randint(1, 150)
print(f"Hell {name} age {rnd_age}")
result = hello("Olof")
print(result) | [
"hugo.ojdal@gmail.com"
] | hugo.ojdal@gmail.com |
de2ccc054448a523050c34b2aa361df702f2bc2a | 1bb13fc75aa56c00ad17a16d7c590060aa71b188 | /src/test/test_orders.py | c26ae7182c118076d8e92b747ca0cc0bbcd37172 | [
"MIT"
] | permissive | TheEpicBigBoss/pytr | add4df656943b1179c7539d6b70ebd3be0255e2c | 7673f049e7ea635af47d11d8450db18c27b43104 | refs/heads/master | 2023-01-24T13:29:49.839121 | 2020-12-04T15:08:51 | 2020-12-04T15:24:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,089 | py | import asyncio
import pprint
import json
import logging
from py_tr import TradeRepublicApi
tr = TradeRepublicApi()
def save_to_file(file, response):
with open(file, 'w') as outfile:
json.dump(response, outfile)
async def find_best_warrants():
logging.info("async started")
underlying_isin = "US0... | [
"guilhermehott@gmail.com"
] | guilhermehott@gmail.com |
25116899b20f17da29b4c7bd6836e9e76144abd0 | 0ed5a3e86e3ed2a597a479db9f3dcd8208263393 | /Project_Euler/P004_largest_palindromic_product.py | ead6e3325d6d350018a3029c85de25cb8a2600d5 | [] | no_license | justanotherguy-0/my_files | 3eded569652e3eac963fad4fa971f400b682b1fc | 9fb6960003224529b9433ea81eaddcc1bf37206a | refs/heads/master | 2021-05-19T16:34:26.912930 | 2020-10-09T00:50:59 | 2020-10-09T00:50:59 | 252,029,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | n=999999
nn=999
def max_poldr(n):
while n>10000:
if n==int(str(n)[::-1]):
nn=999
while nn>100:
if n/nn <=999 and n/nn>=101 and n/nn==int(n/nn):
print('tugfa')
return(nn,' times ', n//nn,' is ', n )
... | [
"noreply@github.com"
] | justanotherguy-0.noreply@github.com |
cc2703f83d745a4127e40e6b080d631591948f77 | 83aaf1e569e931cc2398301bb3238f834d8e7b67 | /Teste/client.py | 0fe88fcf9745b4b35514634f8754dda11516017c | [] | no_license | Lucaspvo/CI061_RedesDeComputadoresII | e4e6f0e2d7988ff5e1a3864df14c653a45893d74 | 7e05c64f58128936af2bb5941449ea49e4327cf7 | refs/heads/master | 2021-01-12T04:11:33.957778 | 2016-12-28T23:21:06 | 2016-12-28T23:21:06 | 77,536,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | #!/usr/bin/python # This is client.py file
# -*- coding: utf-8 -*-
import socket # Import socket module
import sys
sys.path.append( 'Teste' )
from Transmition import *
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # Create a socket object
host = socket.gethostna... | [
"lucaspazello@gmail.com"
] | lucaspazello@gmail.com |
59294bd41c7d4e0de58d33c5fd3f37a16597be89 | 34a95dd5bf5c1339d6a1ba55a5c8085e62152bac | /quantumlounge/http/api/users/users.py | e1620b646be3d09e44a8100b03250618a8a39e63 | [] | no_license | mrtopf/QuantumLounge | fa082fd34bad54a9ed3dfdcd358a57590d43bfcc | ce9854dc47e7a07c3b59a165c10ee8da61d05db4 | refs/heads/master | 2021-01-19T14:32:50.048076 | 2011-09-29T10:27:10 | 2011-09-29T10:27:10 | 838,102 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,397 | py | from quantumlounge.framework import Handler, json, html, RESTfulHandler
import werkzeug
import simplejson
import quantumlounge.usermanager.errors as errors
class Users(RESTfulHandler):
"""handle a collection of Users
**Allowed Methods**: ALL
TODO: More documentation in Sphinx about it
"""
... | [
"mrtopf@gmail.com"
] | mrtopf@gmail.com |
7c09a10f61384d6fed01557b413b08956ae5ed19 | e0a2774cebdb4974e5a6c1363f3bc4e01cbe7915 | /Chondokotha/apps.py | ded1f15d4575e672b78748aeb548e54a83e58f74 | [] | no_license | Julfikar-Haidar/Django-Vue-Apicall-advanced-search | cbc91970557848e41bbca127c12615a316ed5fe0 | e5ff7180e43a7b9ef37847298395ebce5cee3a06 | refs/heads/master | 2021-09-27T08:01:08.041435 | 2020-03-18T06:22:08 | 2020-03-18T06:22:08 | 247,681,078 | 1 | 0 | null | 2021-09-22T18:45:47 | 2020-03-16T11:07:22 | Python | UTF-8 | Python | false | false | 97 | py | from django.apps import AppConfig
class ChondokothaConfig(AppConfig):
name = 'Chondokotha'
| [
"julfikar6262@gmail.com"
] | julfikar6262@gmail.com |
3f54caa0e55508ce17876cc1465946e0635ab1b6 | caf34f9e5b3f9ea60a4481331004a17a278bfd55 | /django_scrapy/quote/apps.py | bbcbdc2376edb935c31606c84860113c35a5518f | [] | no_license | ArielLahiany/django_scrapy | a827cfa737263bd4aa1d52f3c39ac2c1180b7d6c | fa2b0376b5e1aa0da306612a915d5193b194ad9e | refs/heads/master | 2023-03-26T10:50:52.569171 | 2021-03-24T21:20:12 | 2021-03-24T21:20:12 | 351,224,986 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | # Django modules
from django.apps import AppConfig
class QuoteConfig(AppConfig):
name = 'django_scrapy.quote'
verbose_name = "Quote"
| [
"ariel.lahiany@gmail.com"
] | ariel.lahiany@gmail.com |
8902f9f1b1e2cecf529e9c659f9b3c92b3b8ed33 | 7a60d48c403a98e0065d701602a9ec0eae136c35 | /algorithmic_toolbox/PA4_divide_and_conquer/3_sorting.py | f0204b96a893a06eb391e4e8444b05b078c56b4d | [] | no_license | themillipede/data-structures-and-algorithms | 691a20ec4239f43c3f3f597b8f803097dc691d30 | 4a64a10d8f5e02921a83d37c48fd3871dd91ced8 | refs/heads/master | 2020-03-13T05:20:24.990413 | 2019-12-28T20:13:02 | 2019-12-28T20:13:02 | 130,981,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,283 | py | # Uses python3
"""
3. Improving quick sort
Introduction: The goal in this problem is to redesign the randomized quick sort algorithm so that it works
fast even on sequences containing many equal elements.
Task: Replace the 2-way partition with a 3-way partition to enable the quick sort algorithm to efficiently
... | [
"katherine.e.millican@gmail.com"
] | katherine.e.millican@gmail.com |
b9c5ca1798fcaffb1707909fd79abe2418769bda | 04ac33f68827aeef7d5bc441d10979143828ef1a | /contactSpider.py | 037682c5a672fc9a935a9454eaef442e24e5a338 | [] | no_license | samshultz/realtor_agent_spider | a06e99af15fc78902c5f44fcb91dd6d55490b14f | 4550301a9e4733ad19bd6fd904e079037847bbf7 | refs/heads/master | 2021-07-05T04:28:17.703484 | 2017-09-30T02:22:34 | 2017-09-30T02:22:34 | 105,333,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,933 | py | import scrapy
class ContactSpider(scrapy.Spider):
# name of the spider
name = "contacts"
# the url to start scraping from
start_urls = [
"https://www.realtor.com/realestateagents/Los-Angeles_CA"
]
def parse(self, response):
# check the page for the name of the agent...
... | [
"taiwogabrielsamuel@gmail.com"
] | taiwogabrielsamuel@gmail.com |
883646eb7ce3edd5796ff15d1b6dfccf9f746abe | 8662ed271890dfc310c3854359d4663bfb051529 | /Q7_b.py | 49a34b843f33d45a87bb233727108f2531daed5b | [] | no_license | zahraDehghanian97/Football_Player_Classification | daf10145fafbd8d542b3a17f0364b6eebb9d2651 | 7bc8f9685cc00b630c8c95b0a7c98daa494bee5c | refs/heads/master | 2020-09-07T21:09:54.848689 | 2019-11-11T06:15:40 | 2019-11-11T06:15:40 | 220,913,642 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,103 | py | import csv
import matplotlib.pyplot as plt
import statistics
import numpy as np
data = []
with open('first_half_logs.csv') as csv_file:
csv_reader = csv.reader(csv_file, delimiter=',')
line_count = 0
for row in csv_reader:
if line_count == 0:
line_count += 1
else:
da... | [
"z.dehghanian@aut.ac.ir"
] | z.dehghanian@aut.ac.ir |
43078cfccfee9f2bbde2f0af3de46006b564a128 | 0725ed7ab6be91dfc0b16fef12a8871c08917465 | /tree/is_bst.py | 26ed670c86a2703f7550da0fa62852b62ed81d7b | [] | no_license | siddhism/leetcode | 8cb194156893fd6e9681ef50c84f0355d09e9026 | 877933424e6d2c590d6ac53db18bee951a3d9de4 | refs/heads/master | 2023-03-28T08:14:12.927995 | 2021-03-24T10:46:20 | 2021-03-24T10:46:20 | 212,151,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 716 | py | # A binary tree node
import sys
class Node:
# Constructor to create a new node
def __init__(self, data):
self.data = data
self.left = None
self.right = None
def is_bst(node, min_limit, max_limit):
if not node:
return True
if not (min_limit < node.data < max_limit):
... | [
"siddhesh@hackerearth.com"
] | siddhesh@hackerearth.com |
0110676b8f2a531de2bd3d355df08326b97bf65d | 3619115e1d476864885ca8d78bc17f19cba490f7 | /Precis/Precis/Data/precis_formula.py | 588e68dfeae38b9aad521418e8cfa28af2b866ae | [] | no_license | ssaha6/Precis | bc9a1c975a5f024304770fc600a134e9f9890453 | c2c59b1f126876a38f41036ecb2b0912e009dc89 | refs/heads/master | 2020-09-25T08:44:25.223012 | 2019-12-04T22:01:14 | 2019-12-04T22:01:14 | 225,965,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,288 | py | from z3 import *
import re
class PrecisFormula:
# formulaZ3: Z3ExprRef; variable of Z3 version ---> more precisely should be BoolRef
formulaZ3 = None
# formula is string representation of formula
formula = ""
# string rep of formula
def __init__(self, varZ3):
self.formulaZ3 = varZ3
... | [
"angello.astorga@gmail.com"
] | angello.astorga@gmail.com |
6744d1aea0d953c74743d2d88e6ac66ed6aa086c | bfdaaee87c9383d3192dc308ba3e7ec1365dbd25 | /mobiliseclient.py | 254be5eaed56419b5fc044ab7ac20966d5d81421 | [
"Apache-2.0"
] | permissive | benwatson528/data-warehouse-client | 622f2de12ad78236b66d7c21a08dd0d59dd8b6d0 | 927354e1e33dee80992b3dee7b555dd23d1bddec | refs/heads/master | 2023-01-04T23:58:13.641844 | 2020-10-29T15:58:43 | 2020-10-29T15:58:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,533 | py | #
# All client code in a single file for event data access
#
import json
import requests
#
# Subset of the e-SC datatypes necessary to fetch event data
#
class EscEvent:
def __init__(self):
self.eventType = ""
self.timestamp = 0
self.metadata = {}
self.data = {}
def parseDict(... | [
"noreply@github.com"
] | benwatson528.noreply@github.com |
b1a2cc010714c4d2270279ddfa921fa64a88c943 | 54beda9490ef3f8f1e2c89fc995e1840385bc527 | /app/models.py | c730a00fa9e78a9f2ea7755c3ada601bc6729217 | [] | no_license | strengthnotes/web | f2c7302a112222c8882b0804daef1c35ab59d2c6 | ac3e1c1bc4b81417bc85b5c5419d93dc84885137 | refs/heads/master | 2021-12-28T06:25:15.104421 | 2017-03-12T21:44:44 | 2017-03-12T21:44:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,915 | py | from werkzeug.security import generate_password_hash, check_password_hash
from itsdangerous import TimedJSONWebSignatureSerializer as Serializer
from flask import current_app
from flask_login import UserMixin
from . import db, login_manager
class Role(db.Model):
__tablename__ = 'roles'
id = db.Column(db.Integ... | [
"jtaylo78@gmail.com"
] | jtaylo78@gmail.com |
b77cbf626196e076ca7cd12c221754afd3fca90e | ff8847da0e311e097fb2662535e2235f090fb6c8 | /examples/test_rotcube.py | cbba7d2ddd564fb217203105e88ee22bc80be276 | [
"Apache-2.0"
] | permissive | donghaozhang/SWC2VTK | 222eda519fed7fcc9f668382db2ca4ccf812a136 | 285e4981a3f1f54b8f819f3490f2e451569ce541 | refs/heads/master | 2020-07-07T04:33:58.381671 | 2019-08-20T14:56:38 | 2019-08-20T14:56:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 719 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Jun 11 14:49:53 2016
@author: nebula
"""
import numpy as np
from swc2vtk.vtkgenerator import VtkGenerator
if __name__ == '__main__':
filename = 'rot_cube.vtk'
vtkgen = VtkGenerator()
pi = 3.141592
# pos = np.array([[0, 0, 0], [0, 2, 0], [4, 2, 0], [5, 5, 5]... | [
"miyamoto@brain.imi.i.u-tokyo.ac.jp"
] | miyamoto@brain.imi.i.u-tokyo.ac.jp |
3987405f70f48d91c8ac18c9912585cb8b9c44d3 | 5ba345bc16519d892fb533451eeface7c76a7d48 | /Classification/Logistic-Regression/LogisticRegression.py | 33ac92c5f131dde88d715d277e16cca84ae2164e | [] | no_license | sayands/machine-learning-projects | 337fd2aeb63814b6c47c9b2597bfe1ce4399a1f1 | 8e516c0ac3a96a4058d063b86559ded9be654c35 | refs/heads/master | 2021-05-06T16:26:37.008873 | 2018-08-02T20:27:20 | 2018-08-02T20:27:20 | 113,749,745 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,653 | py | #Logistic Regression
#Importing libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
#Importing the dataset
dataset = pd.read_csv('Social_Network_Ads.csv')
X = dataset.iloc[:, 2:4].values
Y = dataset.iloc[:, 4].values
#Splitting the dataset into the Training Set and Test set
from sklearn... | [
"sayandsarkar.1997@gmail.com"
] | sayandsarkar.1997@gmail.com |
d9917661d0f20a96f2d7b647b9a499c5ee7da8b6 | fbd06dea5dc8b0e538ff7d5bda3429d2de6b461c | /api/handler.py | 8e5eb097671cae3936314635042d2ea5af9bde75 | [] | no_license | LessioGuilherme/pa004_health_insurance_cross_sell | 713a78a71768bc505a77eb9672b5e3111a132fec | 91ace7fffe89b2e785f10f23f160b63d523e18ec | refs/heads/main | 2023-03-27T21:28:35.754093 | 2021-03-29T22:25:03 | 2021-03-29T22:25:03 | 328,284,147 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,212 | py | import os
import pickle
import pandas as pd
from flask import Flask, request, Response
from insurancevehicle.Insurancevehicle import Insurancevehicle
model = pickle.load( open('C:/Users/Guilherme/Repos/pa004_health_insurance_cross_sell/model/model_lgbm.pkl', 'rb'))
app = Flask (__name__)
@app.route( '/insurancevehic... | [
"guilhermelessio@gmail.com"
] | guilhermelessio@gmail.com |
4e5784eb3aa014b7f5494320c32dd4b3d0a53444 | 2997a8d56f74e0cc4e949fb20ff7d17be75b2599 | /百度无人驾驶比赛模型/scnn/scnn.py | 62fcd8de6c3881491f31d3120f7f99a61881cd53 | [] | no_license | GuangyanZhang/Paddle-Paddle_SCNN-Deeplabv3-bisenet-icnet | 039b3856ed67e177d351cbe83e73f352a4a97696 | 326439194bb24ec112c74d9de2b6196add5a76c0 | refs/heads/master | 2020-04-30T09:17:23.010395 | 2019-04-07T07:13:33 | 2019-04-07T07:13:33 | 176,742,644 | 18 | 4 | null | null | null | null | UTF-8 | Python | false | false | 23,219 | py | import random
import cv2
import numpy as np
import paddle
import PIL.Image
import paddle.fluid as fluid
import time
import os
os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID"
os.environ["CUDA_VISIBLE_DEVICES"] = "0"
os.environ["TF_CPP_MIN_LOG_LEVEL"] = "2"
def resize_image(img, target_size1, target_size2):
# img ... | [
"1174548879@qq.com"
] | 1174548879@qq.com |
515c690329c1f5626a96c8abcf86ef28a3639bdb | 1a04f833bcc5598f78d0c9febb32cbf7e636dbf3 | /console/django_scantron/results/urls.py | d2d6e9bfe1a743ff2c4087e4d06291153c7fb176 | [
"Apache-2.0"
] | permissive | opsdisk/scantron | be56c09912763a9dfd62121c686d781e5cd45713 | aad5b0a8b5c863294703baf22cfb2a5b8f8619af | refs/heads/master | 2022-02-04T20:01:44.494099 | 2022-01-17T23:14:42 | 2022-01-17T23:14:42 | 395,031,583 | 138 | 22 | Apache-2.0 | 2022-01-17T23:27:32 | 2021-08-11T15:14:27 | Python | UTF-8 | Python | false | false | 176 | py | from django.conf.urls import url
from django_scantron.results import views
urlpatterns = [url(r"^results/(?P<id>\d+)$", views.retrieve_scan_file, name="retrieve_scan_file")]
| [
"brennon.thomas@rackspace.com"
] | brennon.thomas@rackspace.com |
fc5d1edb3647e18a663c8c43b897809c51abbf89 | 4c2a391f2f4d7361f2c7111b6d63edf67056f327 | /model/oauth.py | 4c650a7683108b8d5c4e420c7b90b52c00c2172a | [] | no_license | niyoufa/tnd_server | 6d69db32ceb5a6a14417b3e8b0f021fdc0e7e79c | 59c9ac6769773573685be215b4674d77545fe127 | refs/heads/master | 2020-06-23T15:43:28.891619 | 2016-08-26T03:44:01 | 2016-08-26T03:44:01 | 66,613,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | # -*- coding: utf-8 -*-
"""
author : youfaNi
date : 2016-07-13
"""
from bson.son import SON
import renren.model.model as model
import renren.libs.mongolib as mongo
import renren.consts as consts
import renren.libs.utils as utils
class OauthModel(model.BaseModel,model.Singleton):
__name = "renren.oauth_cl... | [
"1061794187@qq.com"
] | 1061794187@qq.com |
ea71dcf4271de4375a1cd100421e6cb04179b2a8 | ae1d96991a256b905ab8793ebc6063a9628cef02 | /muddery/combat/normal_combat_handler.py | f572690ce4f9a5ce3b3ed3411737fa890fdf193b | [
"BSD-3-Clause"
] | permissive | FWiner/muddery | bd2028e431dbeae16d6db9806cd2e9a7f4c5f22d | f6daa5fab6007e7c830e301718154fbc7b78b2bb | refs/heads/master | 2020-07-31T23:02:54.165362 | 2019-09-04T13:29:59 | 2019-09-04T13:29:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,083 | py | """
Combat handler.
"""
from django.conf import settings
from muddery.utils import defines
from muddery.utils.builder import delete_object
from muddery.combat.base_combat_handler import BaseCombatHandler
class NormalCombatHandler(BaseCombatHandler):
"""
This implements the normal combat handler.
"""
... | [
"luyijun999@gmail.com"
] | luyijun999@gmail.com |
f3a56eab63df2e25ca7185b2b359bdc948581b9a | f20f3ab827eab5ad6a3f97b35d10d7afe2f118d5 | /__init__.py | e910486ed0e4b8b6f2fb6655c4441fbbf9959a91 | [
"MIT"
] | permissive | bradparks/Sprytile__blender_add_on_sprite_sheets_tile_maps | 9adb618bbd0e1f4e9334b8f4e534cff6fa9cc9d7 | 421c7efe3ea9ebd7e0f8dca7fb797eca597964d2 | refs/heads/master | 2021-05-08T04:37:22.745456 | 2017-10-12T15:59:17 | 2017-10-12T15:59:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,891 | py | bl_info = {
"name": "Sprytile Painter",
"author": "Jeiel Aranal",
"version": (0, 4, 24),
"blender": (2, 7, 7),
"description": "A utility for creating tile based low spec scenes with paint/map editor tools",
"location": "View3D > UI panel > Sprytile",
"wiki_url": "https://chemikhazi.github.io... | [
"jeiel.aranal@gmail.com"
] | jeiel.aranal@gmail.com |
bbf11f6525ae7e8077064cc40b92fa787c203531 | 5cc74872fc45943f27578f6bd647f77d1bd03f0b | /ppf/wsgi.py | 1b26faa1eed919e95fb8543ab4cab990f745e940 | [] | no_license | johnnyliu1992/midterm-project | 7aa00012612b00c2baea1f28431924c5b2d0ee9e | 516ccceb415d120ea9f138ba7828e0556cafe964 | refs/heads/master | 2021-07-22T14:48:17.702329 | 2017-11-05T20:46:25 | 2017-11-05T20:46:25 | 109,615,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | """
WSGI config for ppf project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS... | [
"liujiannanself@gmail.com"
] | liujiannanself@gmail.com |
ef279fb67bd4928a2129abf2c49b78475fe31e9e | 8803c894db96609c05dcc3cdabc68a702124f07d | /djangochat/urls.py | 91e43f4f8b902dbafc15f0c8e17aa37a17d7b851 | [] | no_license | JonathaCnB/django-essential | 4531d449100f6a7c3fd11bbb0920e7e33db88300 | 182e973a70497702f630ce5acd6352be30fb421f | refs/heads/main | 2023-08-01T07:41:29.683967 | 2021-09-25T01:58:00 | 2021-09-25T01:58:00 | 398,795,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | from django.urls import path
from .views import check_view, get_messages_view, send_view, to_enter, view_room
urlpatterns = [
path("", to_enter, name="to_enter"),
path("check-room/", check_view, name="checkview"),
path("send/", send_view, name="send"),
path("get_messages/<str:room>/", get_messages_vie... | [
"jotacarlosftb@gmail.com"
] | jotacarlosftb@gmail.com |
a919599073e4f2964287ff10984860b610212766 | e1d1d2f008e8284e109d851a87826d943c095dd0 | /TicTacToe.py | 9b33a0f59f733fa06cbcbeafffd3d06e46b488ae | [
"MIT"
] | permissive | mayamau/Tic-Tac-Toe | 2f8e82a20429e595225566180171a19898614361 | f0488d0d82382f6202d77f8c6fc0c53e89bb89f3 | refs/heads/master | 2022-07-09T10:54:13.762065 | 2021-09-29T19:16:00 | 2021-09-29T19:16:00 | 123,813,512 | 0 | 0 | MIT | 2022-06-22T04:25:10 | 2018-03-04T17:50:17 | Python | UTF-8 | Python | false | false | 13,935 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Feb 28 23:52:33 2018
@author: maya
"""
# import
from tkinter import *
import tkinter.messagebox
from random import randint
import time
import numpy as np
# functions
def restartGame(button):
global currentPlayer
global x
global TTTArray
currentPlayer = x
... | [
"mayamau@users.noreply.github.com"
] | mayamau@users.noreply.github.com |
9aefb0ae5bd605c4dae7ca200d14f1508eb9fb11 | f0755c0ca52a0a278d75b76ee5d9b547d9668c0e | /atcoder.jp/abc084/abc084_d/Main.py | 672f72253da43a227e962b8055a0caa9001017ec | [] | no_license | nasama/procon | 7b70c9a67732d7d92775c40535fd54c0a5e91e25 | cd012065162650b8a5250a30a7acb1c853955b90 | refs/heads/master | 2022-07-28T12:37:21.113636 | 2020-05-19T14:11:30 | 2020-05-19T14:11:30 | 263,695,345 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 567 | py | def primes(n):
is_prime = [1]*(n+1)
is_prime[0] = 0
is_prime[1] = 0
for i in range(2, int(n**0.5) + 1):
if not is_prime[i]:
continue
for j in range(i*2,n+1,i):
is_prime[j] = 0
return is_prime
max = 100001
prime = primes(max)
a = [0]*max
for i in range(max):
... | [
"g1620535@is.ocha.ac.jp"
] | g1620535@is.ocha.ac.jp |
d1bbae8eca99d9390cad48e10dfc1865ab044bb6 | 3f51c53b0e4c07b09cf73971c269376d8d544c89 | /Monthly_Expenditure.py | ce4410db348f4636f833baa36706e2319671bcfe | [] | no_license | Veena-Wanjari/Monthly_Expenditure_Track | 131f394ac03033e9e6f7b9e297a2e8fbb487c01e | 6487096b47378c0947f8361084a81581468f45dd | refs/heads/master | 2022-12-21T21:37:56.681610 | 2020-09-26T11:11:05 | 2020-09-26T11:11:05 | 298,792,370 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,800 | py | import tkinter as tk
from tkinter import ttk
from tkcalendar import Calendar
from csv import DictWriter
import os
window = tk.Tk()
window.title("Monthly Expenditure")
window.geometry("450x550")
window.resizable(width = False, height = False)
#create Items Name label
name_label = ttk.Label(window, text = "Purchased it... | [
"veena.wanjari@gmail.com"
] | veena.wanjari@gmail.com |
b3bf37fd0d5fc6221eac493c999c50c201736d44 | 14dd622ef84b3f48c2d66d8ab873084634cfb6d4 | /PythonLearning/Learning Matplotlib/TestMatplotlib2.py | 34726ae3448e8c7248ac9e600a5fa700cc2f8a8e | [] | no_license | ByronGe/Python-base-Learning | 648cbbf1c7a8431dece3638dfb4de754623bc84e | 7ade3250c4abc4b5e47e39080bf1ad8d53b04d78 | refs/heads/master | 2020-04-15T20:18:24.134950 | 2019-01-10T04:00:51 | 2019-01-10T04:00:51 | 164,987,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 578 | py | import matplotlib.pyplot as plt
import numpy as np
x = np.linspace(-3,3,50)
y1 = 2*x+1
y2 = x**2
plt.plot(x,y1)
plt.plot(x,y2,color='red',linewidth=3,linestyle='--')
x_tick = np.linspace(-2,2,6)
plt.xlabel('i am xlabel')
plt.xticks(x_tick)
plt.yticks([0,2,4,7,8],[r'$terrible$','bad','normal','good','really good'])
a... | [
"2450894732@qq.com"
] | 2450894732@qq.com |
fb95a962370d7b4bb6c6d781611394a5ad69f45a | e3fe234510d19c120d56f9a2876b7d508d306212 | /17tensorflow/5_lm/ngram/ngram.py | 6146628f947c8ebec2603563c38c067b7d61b32d | [
"Apache-2.0"
] | permissive | KEVINYZY/python-tutorial | 78b348fb2fa2eb1c8c55d016affb6a9534332997 | ae43536908eb8af56c34865f52a6e8644edc4fa3 | refs/heads/master | 2020-03-30T02:11:03.394073 | 2019-12-03T00:52:10 | 2019-12-03T00:52:10 | 150,617,875 | 0 | 0 | Apache-2.0 | 2018-09-27T16:39:29 | 2018-09-27T16:39:28 | null | UTF-8 | Python | false | false | 3,057 | py | # -*- coding: utf-8 -*-
# Author: XuMing <shibing624@126.com>
# Data: 17/11/29
# Brief:
"""读取语料 生成 n-gram 模型"""
from collections import Counter, defaultdict
from pprint import pprint
from random import random
import jieba
N = 2 # N元模型
START = '$$' # 句首的 token
BREAK = '。!?' # 作为句子结束的符号
IGNORE = '\n “”"《》〈〉()*' # ... | [
"507153809@qq.com"
] | 507153809@qq.com |
0c28c8c4901757f77ea916c729c5f15e0fa6aaee | a9205fccfcb73dc1d113f7ed5650ac625082b593 | /Repositorio.py | fa08d70fc2f808521f4e0f9ab0899e0733ec40ec | [] | no_license | Fradyzz/CORPCITI | 2b198e9bd9c0b6523832003d8557865e37d5c43c | 0c937c39d5006694e9ad3c42a3018e29d3a9495b | refs/heads/master | 2021-04-05T19:53:00.734812 | 2020-04-01T00:01:59 | 2020-04-01T00:01:59 | 248,594,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,426 | py | import pandas as pd;
from pandas import ExcelWriter;
from openpyxl.writer.excel import ExcelWriter
class Repos():
eventos=[]; usuarios=[]; admins=[];
def __init__(self, eventos=[], usuarios=[], admins=[]):
self.eventos=eventos;
self.usuarios=usuarios;
self.admins=admins;
def... | [
"noreply@github.com"
] | Fradyzz.noreply@github.com |
61ac459e07e5e8d0716e7ab4fe58cee3e73a3f15 | 0ae7422b9cf684d04fd8581c46008207c57a0ead | /portfolio/resume/views.py | 97d788e80203c051ac6dc1039606d0fda7596f9c | [] | no_license | santom11/Portfolio | 7fb394aa6c7f2cebb0f47c041d373c30e13aa538 | b58ec8d5f2e119f0e6c9584d693b9d9931043eeb | refs/heads/master | 2022-11-23T19:03:34.399415 | 2020-07-18T13:42:15 | 2020-07-18T13:42:15 | 280,661,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | from django.shortcuts import render
from .models import Project
def all_projects(request):
projects = Project.objects.all()
return render(request, 'resume/all_projects.html', {'projects': projects})
def project_detail(request, pk):
project = Project.objects.get(pk=pk)
return render(request, 'resume/... | [
"Santosh.Mohan@dell.com"
] | Santosh.Mohan@dell.com |
b8c4e05691d3a6bcb98ea81c533c3e2d9b3ec506 | 638bfb68541bf88fe7ed09a89b67d7e7f4f2b13f | /informacion/migrations/0003_comentario_autor.py | bb5c6f8cb4c20c69ca64fe623b6a28ef8c0bd612 | [] | no_license | LuOfLuck/perfil-sholl | 748420734050acdda18afc4402852f6b0a4df00d | 58ae5c649b9590d58f5fed238b548efb12180bdb | refs/heads/master | 2023-04-16T21:10:06.545946 | 2021-05-03T19:52:51 | 2021-05-03T19:52:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 599 | py | # Generated by Django 2.2.3 on 2020-12-30 01:03
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('informacion', '0002_come... | [
"lcas83539@gmail.com"
] | lcas83539@gmail.com |
5630da04cc30441eabf72f420f1a24217fbaba01 | e2423781704811bf0a0ecc07f9cb29d0a044ac48 | /tensorflow_datasets/image/bccd/dummy_data_generation.py | bddde3b24d939e2a794def3d52ba9eee64bd8de6 | [
"Apache-2.0"
] | permissive | mbbessa/datasets | af2506a8cf5c46c33143d6e0266ba50d8b4c3fcc | 2a7e8e793197637948ea0e0be4aa02a6aa2f7f55 | refs/heads/master | 2021-11-30T22:28:55.825453 | 2021-11-19T20:49:49 | 2021-11-19T20:52:42 | 171,528,015 | 0 | 0 | Apache-2.0 | 2019-02-19T18:34:26 | 2019-02-19T18:34:26 | null | UTF-8 | Python | false | false | 5,387 | py | # coding=utf-8
# Copyright 2021 The TensorFlow Datasets 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 appl... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
a3a464a3725d720d8633759081deeaade26c896e | 2b08c18c5ac84dc170eefb05d69e24800d34983e | /venv/Lib/site-packages/django/middleware/common.py | 56c625910901fce91163a3d3838946257ba5a88b | [] | no_license | wottan32/website | fda48f2f9c177f2aaf008c7b9bd94fbb06cb1de4 | db05b866badab8d046ea9eeb8c061d2e66312f98 | refs/heads/main | 2023-06-17T00:51:28.821850 | 2021-07-14T17:50:41 | 2021-07-14T17:50:41 | 385,640,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,372 | py | import re
from urllib.parse import urlparse
from django.conf import settings
from django.core.exceptions import PermissionDenied
from django.core.mail import mail_managers
from django.http import HttpResponsePermanentRedirect
from django.urls import is_valid_path
from django.utils.deprecation import MiddlewareMixin
fr... | [
"mariotorreslagos@gmail.com"
] | mariotorreslagos@gmail.com |
a1cc5cf11e5624b2b3f89755554f97571fd1a25b | f759188e90610e08b4d85358abeaf27f2796964e | /tinyos-main/apps/PIR_Sensor/util/Listener.py | 464d97ddd4475819140e31d39a6f13222a0dc46e | [] | no_license | SoftwareDefinedBuildings/KetiMotes | 5555626231edb1cb76cb96bb4134a52d1d88bbb1 | b6dfea4b7d3dd384dd78a91ce62e7990cd337009 | refs/heads/master | 2020-04-06T23:55:42.151717 | 2014-09-11T18:25:17 | 2014-09-11T18:25:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,595 | py |
import socket
import UdpReport
import re
import sys
import time
import threading
port = 7000
stats = {}
class PrintStats(threading.Thread):
def __init__(self):
threading.Thread.__init__(self)
self.daemon = True
def run(self):
while True:
self.print_stats()
tim... | [
"gtfierro225@gmail.com"
] | gtfierro225@gmail.com |
4e37bfb94d6849a43ef3c3a4db4716b780471c11 | 2db757415502dc57376ba2f652069f55d5537c00 | /ipython_memory_usage/perf_process.py | 3c825c335c93bc30a747be33faa79e4b451bc2eb | [
"BSD-2-Clause"
] | permissive | jni/numpy-skimage-tutorial | 9391fbc9757e56e302e98709b641978f826d6a08 | 609350a8693ae3350f49ed98734d500657bb8205 | refs/heads/master | 2020-05-17T00:10:55.969572 | 2014-11-26T14:02:20 | 2014-11-26T14:02:20 | 27,123,958 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,823 | py | """"""
from __future__ import division # 1/2 == 0.5, as in Py3
from __future__ import absolute_import # avoid hiding global modules with locals
from __future__ import print_function # force use of print("hello")
from __future__ import unicode_literals # force unadorned strings "" to be unicode without prepending u"... | [
"juan.n@unimelb.edu.au"
] | juan.n@unimelb.edu.au |
3ac86f71fb5162f00646cca9ac8f61ca39c0d2c3 | e543f59a476a8c17ca660e727b5170dadaed81f3 | /CrossValidation.py | a9721254488c6598096c14f88666d26c06139430 | [] | no_license | AbhinavJhanwar/Data-Processing-Techniques | f49768b4f2d77ee0870ab6d2bd63f3e3a9b5557b | 77a7f27489caa4166e836a6e4247065aee5398d1 | refs/heads/master | 2021-06-13T21:05:57.210284 | 2021-03-19T09:09:21 | 2021-03-19T09:09:21 | 168,096,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,862 | py | '''
Created on Aug 3, 2017
@author: abhinav.jhanwar
'''
import pandas as pd
import numpy as np
from sklearn.model_selection import train_test_split
from sklearn.neighbors import KNeighborsClassifier
from sklearn.linear_model import LinearRegression
from sklearn import metrics
from sklearn.model_selection import KFold,... | [
"abhinav.jhanwar@accenture.com"
] | abhinav.jhanwar@accenture.com |
c3b0f249410fb61263335e29c50e31b18b701255 | 30ff67c55ca0b87cf250cc9c526dde3b25d3f24e | /BMpro/QueAns/migrations/0001_initial.py | 2b619dd79c39d7036c7017dcff30868996bf5053 | [] | no_license | nerajshrm/QueAnsDj | 17ea43dad05e125e0c2df603157cacfadf953e93 | e64cc56402e66fabffca160af1a6a17f7df7ac6b | refs/heads/master | 2020-03-28T07:33:16.284237 | 2018-09-08T06:10:57 | 2018-09-08T06:10:57 | 147,909,312 | 0 | 0 | null | 2018-09-08T06:49:49 | 2018-09-08T06:49:48 | null | UTF-8 | Python | false | false | 569 | py | # Generated by Django 2.0.5 on 2018-09-07 06:42
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='QuesModel',
fields=[
('id',... | [
"noreply@github.com"
] | nerajshrm.noreply@github.com |
1e016af907e1c4eb4ab696ffded7dc703b9d20bf | 6b359431d1fe4141b3ecdb52a23a99ede37b8044 | /workouts/migrations/0001_initial.py | b279d5eaa1d12eaef436115f081f51bcdfae1b84 | [] | no_license | sergiga/fitness-backend | f6cdc48bd55a23da8eb671f7ffe84ac9b92c5e3e | a328c6c0b34a0c63e4e223ad873d1a61cf54fdeb | refs/heads/master | 2022-12-24T18:03:52.293142 | 2019-12-29T14:05:23 | 2019-12-29T14:05:23 | 227,165,726 | 0 | 0 | null | 2022-12-08T03:17:25 | 2019-12-10T16:24:36 | Python | UTF-8 | Python | false | false | 4,598 | py | # Generated by Django 3.0 on 2019-12-08 17:19
import core.utils
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='ExerciseInSet',
... | [
"srgarcia91@gmail.com"
] | srgarcia91@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.