blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ef7317dea244070c4acc131772bde1098dc30efb | 09da41a4f4b8032f92ceeaae631f3274aa834921 | /hello.py | 4d3005d090ae27c92520d5086a1ddda463c7d05b | [
"BSD-2-Clause"
] | permissive | green10-syntra-ab-python-adv/cloudnative-ch01 | 04845118fb296caf90ec70fa2671ccc0969a893a | eb9342004f81f81358dbb6e4f78eed1e9e733e66 | refs/heads/master | 2022-04-30T13:51:36.455655 | 2022-03-08T18:16:20 | 2022-03-08T18:16:20 | 218,303,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello World of Syntra-AB!"
if __name__ == '__main__':
app.run(host='0.0.0.0', port=5000, debug=True)
| [
"hans.vandenbogaerde@gmail.com"
] | hans.vandenbogaerde@gmail.com |
9a8733f429c6c5da8b7bfb76da18290b5c0b8a08 | e5ee8e4f142d42f69473ba4191dd58817fc111f7 | /config.py | 0d5c60843aa9c895c69e173d88bb46a19711250f | [] | no_license | pxch/script_model | f23691ca20b2371624af5139319b8ed0a9d1eae1 | c8206b46a7dcdc3e0a10df8a65fc1b5375dbf540 | refs/heads/master | 2021-09-11T23:34:01.050638 | 2018-04-13T02:18:39 | 2018-04-13T02:18:39 | 104,591,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,485 | py | import platform
import socket
from os.path import dirname, join, realpath
class DefaultConfig(object):
# absolute path to the root of this repository
repo_root = dirname(realpath(__file__))
# path to the data directory
@property
def data_path(self):
return join(self.repo_root, 'dataset/da... | [
"pxcheng@utexas.edu"
] | pxcheng@utexas.edu |
e9b797ee2dc708b4d5b228546e0c2efc78a60f0b | 2a7e989154abbff264b46f12990d7caf62876da0 | /wikiprereq_finder.py | 56e343b5b367bfe7519766973a2a6a0ada19b032 | [
"MIT"
] | permissive | arunbalachandran/DocumentPrereqAnalysis | 54bcfc345e94bf26aa670e0b0aaa6b120a433739 | 50df4c78b7bb2d59547b86d156fdd7917b19bb15 | refs/heads/master | 2021-01-20T09:55:11.968731 | 2017-06-14T20:28:04 | 2017-06-14T20:28:04 | 90,301,834 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,182 | py | import json
import subprocess, shlex
import sys
import os
with open('title_links_noenglish.json') as title_link_dict:
title_links = json.load(title_link_dict)
system_encoding = sys.stdout.encoding
def weights(conceptA, conceptB):
if (conceptA in title_links[conceptB]):
return 1
return 0
def relat... | [
"balachandran.arun94@gmail.com"
] | balachandran.arun94@gmail.com |
81bd565ffe7d12d279ab0249323224c34927c333 | f5b936c57a82a479983a2adc71c2abe7d6b3ec9b | /HackerRank/Implementation/findDigits.py | f205a873b0afd9f50b9a46805062dd8e971b2db7 | [] | no_license | FranciscoThiesen/OldProblems | 002e2099fcb7f0c874f3d8927a60d1644521bbdf | 809747fceb5a75127aae832697d6f91b63d234f5 | refs/heads/master | 2021-08-31T16:20:28.969377 | 2017-12-22T02:07:05 | 2017-12-22T02:07:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | from math import *
i = int(raw_input())
j = 0
while(j < i):
total = 0
num1 = int(input())
num = str(num1)
q = map(int,num)
for x in q:
if x != 0 and num1%x == 0:
total = total + 1
print(total)
j = j + 1
| [
"francisco@MacBook-Pro-de-francisco.local"
] | francisco@MacBook-Pro-de-francisco.local |
c459f64e1807df8a30a789284087c6e1ec564b20 | 5f233df8e5d3ad962920c9891c6490dcf62bcbc0 | /Disaggregation-Ukdale/VRNN_theano_version/models/vrnn_gmm_aggVS1_mseFocused.py | c088fa794ce04e75172b3455954ce7de582f230c | [] | no_license | oneway3124/disaggregation-vrnn | 3113a79bf082b28ef671abeb3abdc4f5b566f05c | d4bc620278f3a4ce33521f23c6632ab512a38de9 | refs/heads/master | 2022-12-04T15:24:34.005913 | 2018-11-10T01:01:12 | 2018-11-10T01:01:12 | 289,849,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,072 | py | import ipdb
import numpy as np
import theano
import theano.tensor as T
import datetime
import shutil
import os
from cle.cle.cost import BiGMM, KLGaussianGaussian, GMM
from cle.cle.data import Iterator
from cle.cle.models import Model
from cle.cle.layers import InitCell
from cle.cle.layers.feedforward import FullyConne... | [
"gissemari@gmail.com"
] | gissemari@gmail.com |
07e0a3f5263b42f5cfbf6a40d74adadb61a31aac | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03836/s870323568.py | ad0d20b04f7d66288bd881e8921f6962e16fadd5 | [] | 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 | 516 | py | def main():
sx, sy, tx, ty = map(int, input().split())
x = tx - sx
y = ty - sy
s = ""
for i in range(2):
tmp = ""
if i:
tmp += "D"
tmp += "R"*(x+1)
tmp += "U"*(y+1)
tmp += "L"
else:
tmp += "R"*x
tmp += "... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
2aa1ae4d150ed24a64366443fb9b2d8849508527 | daaee41b0fae1453a9a3716f61e4f129031aefd2 | /task5_2.py | f5f9647005ce634e3656f40a7d9d4095c163ec66 | [] | no_license | willnight/PythonHomeWork | 335ce7fab365f132d23d54162489ac027ee3a406 | bae08ee91b9a4417f9550f05808756c5f122246b | refs/heads/master | 2023-01-19T00:28:37.163476 | 2020-11-27T19:31:58 | 2020-11-27T19:31:58 | 309,486,164 | 0 | 0 | null | 2020-12-02T15:23:34 | 2020-11-02T20:24:28 | Python | UTF-8 | Python | false | false | 326 | py | from utils import f_path
with open(f"{f_path}count_me.txt", "r", encoding='utf-8') as f_obj:
content = f_obj.readlines()
print(f"Кол-во строк в файле {f_obj.name} - {len(content)}")
print("-" * 30)
for num, line in enumerate(content, start=1):
print(f"{num}: {len(line.split(' '))}")
| [
"dmitrofanova@outlook.com"
] | dmitrofanova@outlook.com |
d7c480c1e7b1e541f1c460b215f39a1e4d16d84d | 3227d718331a096ce5f6b72babf2946644a2d845 | /Server/db_init.py | d5435a2b68303949f725cd56f90ff99caac70bef | [] | no_license | ziaoang/CustomCS | 0a403bcf6d149cfe60be9f427e0280623d27b227 | 6f6e8091c038cb7bafd31555d87d6d3171bf19e6 | refs/heads/master | 2020-12-30T18:02:23.247881 | 2017-06-05T09:35:57 | 2017-06-05T09:35:57 | 90,941,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | # encoding=utf-8
import sys
reload(sys)
sys.setdefaultencoding("utf8")
from index import db, as_dict, md5, User
def init_user():
userList = []
for line in open('data.txt'):
t = line.strip().split('\t')
user = User()
user.username = t[0]
user.password_hash = md5('123456')
user.max_score = int(t... | [
"ziaoang@gmail.com"
] | ziaoang@gmail.com |
63bfd9f43ed9970ab5788f329283691ae2cb726d | c4c2b7ab6760bdb5acbc21c6dda6b3351217dd98 | /junbo/LC_670.py | eaf78b5c97366d0c7024e389c29b806d29fd5912 | [] | no_license | JunboChen94/Leetcode | 2de3c5f499b6e25ea4799dfbab276ee728c64993 | 5aa06207856ac6d44629bed76709387b356d565f | refs/heads/master | 2023-01-06T13:31:55.456009 | 2020-11-02T03:03:30 | 2020-11-02T03:03:30 | 291,859,519 | 2 | 3 | null | 2020-09-02T03:09:15 | 2020-09-01T00:56:55 | Python | UTF-8 | Python | false | false | 601 | py | class Solution:
def maximumSwap(self, num: int) -> int:
# help random access digit and swap
i, D = 1, list(str(num))
# first first decreasing
while i < len(D) and D[i-1] >= D[i]:
i += 1
# swap A, B: A in [:i], B in [i:]
# B is the rightest duplicate of th... | [
"jc4648@columbia.edu"
] | jc4648@columbia.edu |
5f61ac00c9bc6094a0e98a2a712db02aa7f68b95 | fe4ae5b66476425bf298049f8176512c9137dec7 | /color_average.py | fa4ecacd1b7dcaa24bc7117c98f29123b085f76e | [] | no_license | trisetiobr/detektif-tomat | 20685fc1298659f3a85566494502f081f70f9049 | b9503f0a261c42198c0b24c471558af4efefcb9a | refs/heads/master | 2021-05-01T22:30:59.107205 | 2017-01-11T10:46:47 | 2017-01-11T10:46:47 | 77,390,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | import numpy as np
def getAverage(image):
average_color_per_row = np.average(image, axis = 0)
average_color = np.round(np.average(average_color_per_row, axis = 0))
output = [average_color[0], average_color[1], average_color[2]]
return output
| [
"trisetiobr@gmail.com"
] | trisetiobr@gmail.com |
9139c93e7b26ce8b64bd9f7b056725ae4ff4a3c5 | 80a9bc980d6b71bf991abe303f6f6f9e042e0fc3 | /trunk/src/nemoversion/repository/svncommand.py | b886d4c489feaabfbc53e517eb08b8ec15471859 | [] | no_license | BackupTheBerlios/nemoversion-svn | 218a080b25f0ae8f9e0ddbe3a1de08bc465d80c2 | ca153ae44d294b37dcf67e3bf7ad88cb2be4e83f | refs/heads/master | 2020-05-07T12:59:54.838710 | 2008-02-26T14:56:57 | 2008-02-26T14:56:57 | 40,823,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,230 | py | import commands
class Command(object):
def __init__(self, file):
self.output = None
self.__file = file
def outputFormatedAsDict(self):
return {"status":self.output[0], "output":self.output[1]}
def getFile(self):
return self.__file.get_uri()[7:]
#TODO: ... | [
"marcosmachado@e640259a-e338-0410-83ff-e42d3441542b"
] | marcosmachado@e640259a-e338-0410-83ff-e42d3441542b |
d66db28298be6a2199d7c88640fdf9e79b0785eb | d1a58bd58111db63c9d59cf70153a100a3c262b3 | /model/__init__.py | 5e4c28f1e4a88d5ccc0754a786abcad4f355d046 | [] | no_license | zhenfeng021/feng | 007f15401acaeb37084da6a46575f6baf6e7164c | 91c59e84238568f003e23fca55f2bb13f6f84363 | refs/heads/master | 2020-05-21T09:19:34.008768 | 2019-05-10T15:32:29 | 2019-05-10T15:32:29 | 185,995,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 973 | py | #!/usr/bin/env python
# encoding: utf-8
__author__ = 'ethan'
from resource.config import DB as conf
from peewee import MySQLDatabase
from playhouse.signals import Model, pre_save, post_save
db = MySQLDatabase(database=conf['database'],
host=conf["host"],
port=conf['port'],
... | [
"zhenfeng@live.cn"
] | zhenfeng@live.cn |
4396a793bab21b4ed475acccc31b662595b289c2 | 75c769c12b9f4df8c7b373b60bbc7b8a8e2881d8 | /django/smartcam/cam/views.py | d03c9aa580f783dad74b38ad47bad01ceb4a8263 | [] | no_license | Eddytor/ba-smart-cam | c8bb55b7d79c133dfee45b23193b9dfb4c9a746a | e529eb55042accbe98a4e9cf3221828983b958dd | refs/heads/main | 2023-04-03T20:03:37.719466 | 2021-04-07T08:01:38 | 2021-04-07T08:01:38 | 355,450,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,865 | py | from django.shortcuts import render
from django.http import HttpResponse
from django.db import connection
from django.http import JsonResponse
from django.core.files.uploadedfile import SimpleUploadedFile
from django.shortcuts import render
from django import forms
from PIL import Image
from .forms import ImageForm
fro... | [
"schroeder.eduard@gmail.com"
] | schroeder.eduard@gmail.com |
ebca5a69981b65a76fc4c5c52dc7719fe9aabee3 | 0529196c4d0f8ac25afa8d657413d4fc1e6dd241 | /runnie0427/13015/13015.py2.py | 93bae9ee407b969a75da385bdc1739a27aa9d784 | [] | no_license | riyuna/boj | af9e1054737816ec64cbef5df4927c749808d04e | 06420dd38d4ac8e7faa9e26172b30c9a3d4e7f91 | refs/heads/master | 2023-03-17T17:47:37.198570 | 2021-03-09T06:11:41 | 2021-03-09T06:11:41 | 345,656,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,370 | py | <!DOCTYPE html>
<html lang="ko">
<head>
<title>Baekjoon Online Judge</title><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta charset="utf-8"><meta name="author" content="스타트링크 (Startlink)"><meta name="keywords" content="ACM-ICPC, ICPC, 프로그래밍, 온라인 저지, 정보올림피아드, 코딩, 알고리즘, 대회, 올림피아드, 자료구조"><meta... | [
"riyuna0427@gmail.com"
] | riyuna0427@gmail.com |
a6f5d2df9f60004210cd8da9b253e7f9e055e0ba | c92fe7e2898c10001928bf8c3dc07dc1587b6575 | /Programs/inheritance.py | 50716a2003559e36accb55b00806739897f7d3ff | [] | no_license | NithinNitz12/ProgrammingLab-Python | 1b2a59961d99a10ea3d4ac9f073b68ceff1bc5ce | 17c29e125821f20bc0e58986592e57237dbee657 | refs/heads/main | 2023-03-22T18:22:08.381848 | 2021-03-18T11:58:50 | 2021-03-18T11:58:50 | 315,343,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | class Student:
#information about the class
def getdata(self,roll,name,course):
self.roll = roll
self.name = name
self.course = course
def display(self):
print("Roll no=",self.roll)
print("Name=",self.name)
print("Course Name=",self.course)
class Test(Student)... | [
"nithinraj10@hotmail.com"
] | nithinraj10@hotmail.com |
57ecb81883b3069b011a2cd07ec7f784e51400d9 | 0c3e6efcdc4c2d51facbd3a9641ef4dff8b23a2b | /Instanssi/arkisto/models.py | 3f7435ad71e9d998eefecd2a4cce61499e8a42b9 | [
"MIT"
] | permissive | maakuth/Instanssi.org | 62fefb83daa458ca6b37d1d8329c1dc3ad905161 | 0a4ff37c1afef24b65ec3f25bee348c38597b90d | refs/heads/master | 2020-12-24T17:54:06.560578 | 2012-02-22T20:05:50 | 2012-02-22T20:05:50 | 3,518,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,255 | py | # -*- coding: utf-8 -*-
from django.db import models
from django.contrib import admin
from imagekit.models import ImageSpec
from imagekit.processors import resize
class Tag(models.Model):
name = models.CharField('Tag', max_length=32)
def __unicode__(self):
return self.name
class Meta:
... | [
"tuomas.virtanen@jyu.fi"
] | tuomas.virtanen@jyu.fi |
244725f21a56f4c6e7d4aa22e8ee7ec9b95c9b80 | 4e5274116a41570906319af4cdf0f2f40db4e869 | /src/cross-val/roc.py | 7b593a207bf47029e02e00d0c7438f3aa89e8384 | [] | no_license | sienaguerrero/Brain-Computer-Interfaces-Project | fb570aab4b26a4489d824901b249e6edabb813c6 | daa764eb289853a24169a649540883ee05644de9 | refs/heads/master | 2020-05-20T09:08:34.002904 | 2019-05-06T12:28:56 | 2019-05-06T12:28:56 | 185,493,390 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | import numpy as np
import matplotlib.pyplot as plt
from sklearn.metrics import roc_curve, auc
# Test with function from randomized search
def cv_roc(n, fit_function, Ytest, Xtest):
probas = fit_function.predict_proba(Xtest)
| [
"garpchoo@gmail.com"
] | garpchoo@gmail.com |
e5c14b65bc335fba0c7eb7ed0be656e3fb64f366 | 1031e4bfcf3f2b6a5576a7ad6910c2f6612cb75f | /src/plain_code/day8.py | 0e215e500028791c5084a8700c8acb4ad11f11c1 | [
"MIT"
] | permissive | czf0613/python-tutorial | c6b4aa5fc8aef7d076baafa953402c9612762c20 | 10680e7c3c1fce544af447e446a2fd98bc455fb3 | refs/heads/main | 2023-03-08T18:29:08.875700 | 2021-02-19T15:39:10 | 2021-02-19T15:39:10 | 333,831,091 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | # set类型
a = set()
a.add('hello')
a.add('nope')
a.add('hello')
print(a)
a.remove('hello')
print(a)
a = set('hello') # a = {'hello'} 不能用a = {}来初始化空集合
b = set('world')
print(a, b)
print(a & b)
print(a | b)
c=set('hello world')
print(c - a)
| [
"1354016594@qq.com"
] | 1354016594@qq.com |
92764ee5fa04ada4b84d89a4c40d1645710675ca | afc8d5a9b1c2dd476ea59a7211b455732806fdfd | /Configurations/WW/FullRunII/Full2017_v9/njets/plot.py | b869826b875f6efbb25b48b65c4cd12b7f151232 | [] | no_license | latinos/PlotsConfigurations | 6d88a5ad828dde4a7f45c68765081ed182fcda21 | 02417839021e2112e740607b0fb78e09b58c930f | refs/heads/master | 2023-08-18T20:39:31.954943 | 2023-08-18T09:23:34 | 2023-08-18T09:23:34 | 39,819,875 | 10 | 63 | null | 2023-08-10T14:08:04 | 2015-07-28T07:36:50 | Python | UTF-8 | Python | false | false | 5,738 | py | # plot configuration
nbins = 4
# groupPlot = {}
#
# Groups of samples to improve the plots.
# If not defined, normal plots is used
#
groupPlot['top'] = {
'nameHR' : 'tW and t#bar{t}',
'isSignal' : 0,
'color': 400, # kYellow
'samples' : [... | [
"saumya.phor4252@gmail.com"
] | saumya.phor4252@gmail.com |
018440f84f40bfcb4de4dbd4916932d807d54935 | 2c7f025568bceb560888d26828aef30e5ae23393 | /src/home-20170804/migrations/0015_auto_20170601_1925.py | aac40a81d41a1db348df5d1c203aa4f5437164e5 | [] | no_license | GustavoCruz12/educacao | 6271ebc71830ee1964f8311d3ef21ec8abf58e50 | d0faa633ed1d588d84c74a3e15ccf5fa4dd9839e | refs/heads/master | 2022-12-08T09:34:42.066372 | 2018-08-03T06:38:49 | 2018-08-03T06:38:49 | 143,387,426 | 0 | 0 | null | 2022-12-08T00:01:52 | 2018-08-03T06:31:03 | Python | UTF-8 | Python | false | false | 493 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-06-01 19:25
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('home', '0014_auto_20170601_1923'),
]
operations = [
migrations.AlterField(
... | [
"gustavocruz201419@gmail.com"
] | gustavocruz201419@gmail.com |
4c59848d671ab8c62cfb1602235eb339772320fb | 1f27c4697ffd787eb709dc6560823e8d42196342 | /motorhome/migrations/0003_auto_20200305_1050.py | ea566cb7010e86a1e1a441f6f7356fc50cab025e | [
"MIT"
] | permissive | Forestriver/Motorhome | 965f387b32919efc57ba28bba292e9f444e8bb97 | 14e2998e06b3063897e4ff8d01eef6a129bec017 | refs/heads/master | 2022-11-14T20:12:03.147399 | 2020-07-09T20:30:34 | 2020-07-09T20:30:34 | 83,025,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | # Generated by Django 2.2.5 on 2020-03-05 08:50
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('motorhome', '0002_auto_20200305_0138'),
]
operations = [
migrations.AlterModelOptions(
name='choice',
options={'verbose_name... | [
"vitaly.romas1@gmail.com"
] | vitaly.romas1@gmail.com |
7c720b9d543c458945310c10348f41a006a16bdb | 72900b002fc2c27ea92564da10a87b4c9ab75f63 | /contracts/tests/test_schedule_metadata.py | 66fe05df5396217794d2f39d48bc50611e0b4899 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | firefoxxy8/calc | f495443d28f7fd71da5e881a6d05d92aad2ba0fd | 7ceb2fcadd67bc9fbcb64cdaba50dbbdead0e803 | refs/heads/master | 2020-03-27T19:19:24.127137 | 2018-08-20T22:23:33 | 2018-08-20T22:23:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,230 | py | from django.core.management import call_command
from django.test import SimpleTestCase, TestCase
from django.utils.safestring import SafeText
from contracts.models import ScheduleMetadata
def populate_schedule_metadata():
# This is SUPER weird. Previous TransactionTestCase runs (usually
# the result of a Liv... | [
"varmaa@gmail.com"
] | varmaa@gmail.com |
975e0f1699dee999f8a1eb00d40e816bc38b0714 | 9ec849da0df382fe8a2ae25fc45e37b2d532a0d4 | /ubereats/ubereats/constants/.ipynb_checkpoints/trip-checkpoint.py | d8b68853191ef54b05545c4de3cc0ecf33e336de | [
"MIT"
] | permissive | macchino/delivery-analisys | b71cf06eb9c4f33064cdee192cffb69ecb6e6cf7 | 7d0507580532e87143c49d91693ee25aaf504a0b | refs/heads/master | 2023-02-15T03:00:00.591446 | 2021-01-10T22:55:23 | 2021-01-10T22:55:23 | 328,191,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | BASE_DOMAIN = "partners.uber.com"
BASE_URL = "https://" + BASE_DOMAIN
WEEKLY_EARNINGS_BASE_URL = BASE_URL + "/p3/payments/weekly-earnings"
| [
"mac.kimitoshi@gmial.com"
] | mac.kimitoshi@gmial.com |
27427752ce84e5dac6ccb005952ec43a5fca4ec5 | 744b4cb836c7a11b0054e7d2e5b0efabd18ab5da | /app.py | f0e7a118c060c4831d3ec33c9a682e964ad40833 | [] | no_license | EpicRowan/Flask_Rest_API | fbf4b4684a45c7fb4c1ee1cc5fb6a8684ce70a19 | 218498fc41ab37e2dd4e807671c7bec033b0f119 | refs/heads/master | 2022-10-16T22:09:24.945878 | 2020-06-11T20:48:49 | 2020-06-11T20:48:49 | 271,582,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,405 | py | from flask import Flask, request, jsonify
from flask_sqlalchemy import SQLAlchemy
from flask_marshmallow import Marshmallow
import os
app = Flask(__name__)
# make sure we can correcly locate the db file
basedir =os.path.abspath(os.path.dirname(__file__))
# will look for a db called sqlite in current folder
app.conf... | [
"shepherd.rowan.k@gmail.com"
] | shepherd.rowan.k@gmail.com |
d97ba30c0f806dbaabd1c57dff019379eb9ecf95 | 03e88bfb88da079b1198ff236ab76b8722e4516f | /apps/belt_app/migrations/0003_user_friend.py | 786e62f5ed5180fb9b8bec4c98bc60e0858942e6 | [] | no_license | derberbaby/book_reviews | 72cf5dde0c27d971833dfb90d0a0a12c298e14a5 | 997191b6ae3cbca7511b04b952c7fac433dec6ba | refs/heads/master | 2021-06-18T03:07:17.079925 | 2017-06-27T01:27:27 | 2017-06-27T01:27:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2017-06-27 00:00
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('belt_app', '0002_review_comment'),
]
operations = [
migrations.AddField(
... | [
"debbiewang@gmail.com"
] | debbiewang@gmail.com |
9ed3621af43e4f23d160e89f19f6d78356630961 | 3940b4a507789e1fbbaffeb200149aee215f655a | /lc/145.BinaryTreePostorderTraversal.py | cea3a772e720331356728cbbd39b0eca590101ba | [] | no_license | akimi-yano/algorithm-practice | 15f52022ec79542d218c6f901a54396a62080445 | 1abc28919abb55b93d3879860ac9c1297d493d09 | refs/heads/master | 2023-06-11T13:17:56.971791 | 2023-06-10T05:17:56 | 2023-06-10T05:17:56 | 239,395,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,915 | py | # 145. Binary Tree Postorder Traversal
# Medium
# 2416
# 112
# Add to List
# Share
# Given the root of a binary tree, return the postorder traversal of its nodes' values.
# Example 1:
# Input: root = [1,null,2,3]
# Output: [3,2,1]
# Example 2:
# Input: root = []
# Output: []
# Example 3:
# Input: root = [1]... | [
"akimi.mimi.yano@gmail.com"
] | akimi.mimi.yano@gmail.com |
62481b0b9929d2fac20216833eac2a7e88fc36a4 | 776754df08b3f286e26b2cddb97730fe3eaff471 | /populate_domain.py | e8e40283b183c99cc5bca269806bc1cfde7dc254 | [] | no_license | kimjungsoo2/testhub2 | 8cffb9cb887092d9f353b7292404d45080e2aed9 | f1159b47c3d610fa002a25a6d972b602d6ace5b9 | refs/heads/master | 2016-09-02T00:59:27.326597 | 2015-08-18T21:03:33 | 2015-08-18T21:03:33 | 40,996,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,821 | py | #!/usr/bin/env python
import os
def populate():
p = add_primary('BAP Nuke')
p = add_primary('Big Red Button')
p = add_primary('Carrier')
add_secondary(primary=p, name='E2E')
add_secondary(primary=p, name='Network')
p = add_primary('CAS')
add_secondary(primary=p, name='CAS Server')
... | [
"kim.jungsoo2@gmail.com"
] | kim.jungsoo2@gmail.com |
3abf9558a0e5b8b9236e52a66eeb09cacc7a7629 | f492c69e6cd7e25f11fe72750a8ce2bda676d730 | /day_1/ex3_4.py | cff9e2bc1b380d7b4d6d194c3536ca3ecb3ba046 | [] | no_license | conrongvang/exercises-python | c0fab80061eba3013cb5c4cb5177d48ed2d80f5e | 090913c5d870831813cc585d69f4a6433c0fde8e | refs/heads/master | 2023-05-28T15:36:24.335916 | 2021-06-22T17:13:10 | 2021-06-22T17:13:10 | 378,943,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 999 | py | #!/usr/bin/env python3
"""
Viết chương trình loại bỏ phần mở rộng của một tên file bất kỳ.
Ví dụ::
input_data = '....slsslslsls...sls'
output = '....slsslslsls..'
input_data = 'maria.data.mp9'
output = 'maria.data'
Read: https://docs.python.org/3/library/stdtypes.html#str.rfind
"""
def solve(input_data):... | [
"42422284+conrongvang@users.noreply.github.com"
] | 42422284+conrongvang@users.noreply.github.com |
5c249391962088fad4694ffcfc8086656191c01d | 9038394d643b33b37cec8fe6c50332d9f669fd95 | /main.py | 62d3f3a12a1c40b61d2cd43dd71af63d975361b3 | [] | no_license | whimo/gitspector | 25a19be521cb57d93c5e2c64e8eea32889180750 | d57c4d03f343e0991521c68bcb0a2db8282c0ee5 | refs/heads/master | 2020-03-17T23:23:35.303364 | 2018-05-20T15:56:34 | 2018-05-20T15:56:34 | 134,042,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | from app import app
app.run(app.config['HOST'], app.config['PORT'], app.config['DEBUG']) | [
"Qwertygid@gmail.com"
] | Qwertygid@gmail.com |
9fe0f29f1163433f9c350a27ea282131f40f2550 | 61b998663888131beaa84674f4819f0542d173ae | /userproject/app2/admin.py | f083077dd1a3ef115583c703de3879d1ea568742 | [] | no_license | getvishalprajapati/test | 0205a85fdf5dfc6a2994a5fe4fc66d2ddb6826a5 | c052d065dcf968e40f63a2c70a40dbc858c5908d | refs/heads/master | 2023-02-06T05:45:05.453184 | 2020-12-23T13:57:40 | 2020-12-23T13:57:40 | 323,915,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | from django.contrib import admin
# Register your models here.
from .models import student
admin.site.register(student) | [
"getvishalprajapati@gmail.com"
] | getvishalprajapati@gmail.com |
6e646ddab273f1e1a7db8cda9f93e205ce0b8405 | eb4d858113cb6395fc1d8a7ee7a431ca09b3043d | /models/tripletext2seq.py | 0acb6fba6545f2d4aa82b9de988e7d5d45c795cc | [
"MIT"
] | permissive | Joyce-Ng/Zeroshot-QuestionGeneration | b2788bb0da72fb71f3201c72a3c89478c332d11a | e02eb38adb047f7b50bc861f3a3383af87ae7079 | refs/heads/master | 2021-09-11T19:33:12.281250 | 2018-04-11T15:02:57 | 2018-04-11T15:02:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,034 | py | from __future__ import print_function
import time
import math
import pickle
import tensorflow as tf
from tensorflow.python.layers.core import Dense
import numpy as np
class TripleText2SeqModel():
"""
This Model is called triples sequences to sequence model
model takes a single triple and multiple sequence... | [
"noreply@github.com"
] | noreply@github.com |
3f0136ea75534bfb93dcc9eee9be0a1bae63cfb0 | 0e26bc132e251360c10e76715f4e7e802eefc823 | /indexacion.py | 48469369461e430a93b3e6a3a7d16b82597d7061 | [] | no_license | juanmendoza31/t08_mendoza.anacleto | e0726cfb04d5a61a47da34d0b6179af28335bcf1 | 80a65bfdcda9012b17f2b66083d6a57b306c0d13 | refs/heads/master | 2020-11-24T00:45:34.851707 | 2019-12-13T18:14:52 | 2019-12-13T18:14:52 | 227,889,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,164 | py | #EJERCICIO 01
# 0 10 20 30
# 01234567890123456789012345678901
msj="HOLA FELICINDA"
print(msj[8])
#EJERCICIO 02
# 0 10 20 30
# 01234567890123456789012345678901
msj="LA RISA ES LA MEJOR MEDICINA"
print(msj[23])
#EJERCICIO 03
# 0 10 20 30
#... | [
"jmendozaan@unprg.edu.pe"
] | jmendozaan@unprg.edu.pe |
eac099b088137656f9ed7c3baaaaad7af9cd21e1 | 1c67b46208a8756e978ac2bbbcfe88c11c3f45d2 | /0x0C-python-almost_a_circle/tests/test_models/test_rectangle.py | 019d3da26f38bd0028ae6339e2f8398b181a4985 | [] | no_license | FatChicken277/holbertonschool-higher_level_programming | eb5de8cb61961461ae351549f140e4caccdc3898 | 520d6310a5e2a874f8c5f5185d0fb769b6412e7c | refs/heads/master | 2022-12-18T23:40:44.484883 | 2020-09-27T20:45:24 | 2020-09-27T20:45:24 | 259,402,379 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 14,264 | py | #!/usr/bin/python3
"""This module constains a class that test rectangle class.
"""
import io
import pep8
import unittest
from models.base import Base
from models.rectangle import Rectangle
from contextlib import redirect_stdout as out
class TestRectangle(unittest.TestCase):
"""Tester class.
"""
def setUp... | [
"1637@holbertonschool.com"
] | 1637@holbertonschool.com |
35897f40e8b2c67f13adecfaf1673d09f16913b5 | 7b93650a756aa4d05f7894f5a978d76fb3c4384f | /frontend.py | 235e82f2c4f904b3ec3fdd2f61867ce3884d6c39 | [] | no_license | igor27g/Database_application | 8c72271ba59ef8591952f7e224463b30eb0cf494 | 56a9a5e90e16987dab6a438d18f71e026e065700 | refs/heads/master | 2020-04-02T09:11:30.250385 | 2018-10-23T07:58:36 | 2018-10-23T07:58:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,611 | py | from tkinter import *
import backend
def get_selected_row(event):
try:
global selected_tuple
index=list1.curselection()[0]
selected_tuple=list1.get(index)
e1.delete(0,END)
e1.insert(END,selected_tuple[1])
e2.delete(0,END)
e2.insert(END,selected_tuple[2])
e3.delete(0,END)
e3.insert... | [
"igor.piotr.grabowski@gmail.com"
] | igor.piotr.grabowski@gmail.com |
93d27555c7c2ec318b321b018d63a96077aec83b | a03033b483a90ab9705b15fb658e288ca9ad5329 | /venv/bin/pip | 3469214cb1058cc0fd4968bfd53ea7dda04b9348 | [] | no_license | DrekStyler/BI_Tool | bae31892238b66c900582adb05e0bd58ee513825 | 6de0ed229a1291d528d3271890e00e37e2030666 | refs/heads/master | 2020-07-25T20:22:17.207247 | 2016-11-14T16:17:17 | 2016-11-14T16:17:17 | 73,650,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | #!/Users/derekstyer/galvanize/unit-3/week5/fishin_Analytics/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"dmstyer@gmail.com"
] | dmstyer@gmail.com | |
b49bb19316f64f19646ae7823fee45bc6bf781df | 12904afb9fe3b58d7dde4b390a3b8c29373cc194 | /test/test_genre.py | da20f17ba268a98539072f1913d63b61dc7362ad | [] | no_license | adito0/AditiFlix | 9e46d2ed0ba0b19a944fc78012c0a8ded4a05020 | d43866d1d3287cf78760cab3a055167c2760e81d | refs/heads/master | 2022-12-28T00:46:38.773372 | 2020-09-03T19:43:37 | 2020-09-03T19:43:37 | 292,663,671 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,604 | py | from domainmodel.genre import Genre
import pytest
@pytest.fixture
def genre():
return Genre('Drama')
def test_init(genre):
assert genre.genre_name == 'Drama'
genre1 = Genre("Comedy")
assert repr(genre1) == "<Genre Comedy>"
genre2 = Genre("")
assert genre2.genre_name is None
genre3 = Gen... | [
"aditi.ramalingam@outlook.com"
] | aditi.ramalingam@outlook.com |
662e95d8ce8427a597398fbeb8540cae4e74d908 | d5ea81e376bc7043752672498862fd8c44d23aba | /Schema/schema_insert.py | fec91fdf0ab229c39da1051b8eb67536bde13941 | [] | no_license | NatnaelT/biograkn-covid | 3a0885d7ecf60ee16a73a4571219b98f8b09a000 | 1771c010f0b061145d5fba1fa0b47c448167905f | refs/heads/master | 2022-11-18T09:01:56.881435 | 2020-07-14T14:59:00 | 2020-07-14T14:59:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | from grakn.client import GraknClient
import csv
import os
def insertSchema(uri, keyspace):
client = GraknClient(uri=uri)
session = client.session(keyspace=keyspace)
print('.....')
print('Inserting schema...')
print('.....')
with open("../biograkn-covid/Schema/biograkn-covid.gql", "r") as graql_file:
schema = ... | [
"tomas@grakn.ai"
] | tomas@grakn.ai |
dd7c07a09e6b06c03da104c70355e5d84aa90c57 | c2fb83340f389b9209cd7d16231eb97a7fc28fb8 | /JJEhr/event/form.py | be1bc4d58c51e0869e292cd7623760ea6d4f1a3a | [] | no_license | shalocfolmos/JJEhr | f642df216c3fd1a47ccccf227d336c69a02d9a6e | 71e8b1049366dd1be78b362a00d2e5370218b288 | refs/heads/master | 2020-12-30T10:36:25.796334 | 2012-12-05T12:50:58 | 2012-12-05T12:50:58 | 3,364,314 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | #-*- coding: UTF-8 -*-
from django.forms.models import ModelForm
from JJEhr.event.models import EventType
class AddEventTypeForm(ModelForm):
class Meta:
model = EventType
| [
"shalocfolmos@gmail.com"
] | shalocfolmos@gmail.com |
a490e7f1e6b2c65087dfabc08bfafafeb3f0052c | 5e9576c368e98927e2965bd2fb23bd35d9993d69 | /featuretools/primitives/standard/aggregation/time_since_last_false.py | da04a8d96f2ab98be1971c71fbac3b5a5bab51cb | [
"BSD-3-Clause"
] | permissive | alteryx/featuretools | c6e319e063e8e84e7684bf232376f95dc5272160 | c284c2d27a95b81e0bae913ac90df2b02c8f3b37 | refs/heads/main | 2023-08-25T12:21:33.945418 | 2023-08-23T16:30:25 | 2023-08-23T16:30:25 | 102,908,804 | 1,783 | 201 | BSD-3-Clause | 2023-09-07T18:53:19 | 2017-09-08T22:15:17 | Python | UTF-8 | Python | false | false | 2,223 | py | import numpy as np
import pandas as pd
from woodwork.column_schema import ColumnSchema
from woodwork.logical_types import Boolean, BooleanNullable, Datetime, Double
from featuretools.primitives.base import AggregationPrimitive
class TimeSinceLastFalse(AggregationPrimitive):
"""Calculates the time since the last ... | [
"noreply@github.com"
] | noreply@github.com |
4b70f2149f976820d7d9d778768e9d465458d548 | 1c697fe4acf4bf93214c1bec5e0a4c595ea255c8 | /build/lib.linux-x86_64-3.6/CRADLE/CorrectBias/vari.py | 750ee4a04fe8be88c5cc33c2b75b918ac014df17 | [
"MIT"
] | permissive | Young-Sook/CRADLE | b7ec17147a8af26bc12b020eb1427b2accb20aa1 | af0c807d2f894de211cb3d914abe9885cb43fef8 | refs/heads/master | 2021-06-27T21:11:09.271078 | 2020-12-01T18:14:22 | 2020-12-01T18:14:22 | 194,312,322 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 74,889 | py | import os
import math
import numpy as np
import sys
import multiprocessing
import pyBigWig
def setGlobalVariables(args):
### input bigwig files
setInputFiles(args.ctrlbw, args.expbw)
setOutputDirectory(args.o)
setBiasFiles(args)
setFragLen(args.l)
setAnlaysisRegion(args.r, args.bl)
setFilterCriteria(args.mi)
... | [
"kys91240@gmail.com"
] | kys91240@gmail.com |
a1ee59e5d9561ba069c0ab6680b4a2eece618c8f | b15ee3b26319177114e2f8d53d3d4c9ea9a86a96 | /IoT/Shelf 10/submitBook.py | 889eab400664706c4df368c975891c695d36d2b9 | [] | no_license | pmanaktala/Smart-Library | e54f932833e163d064a27c5128cce71b38a8ff01 | c01e0bf250f48c5f1763530b21f1a68b171bccf8 | refs/heads/master | 2023-01-10T15:29:44.807824 | 2020-09-30T18:46:43 | 2020-09-30T18:46:43 | 179,119,846 | 0 | 1 | null | 2023-01-04T13:01:31 | 2019-04-02T16:43:46 | Python | UTF-8 | Python | false | false | 1,753 | py | import requests
import json
#Specify here the shelf number of the RFID READER
shelf_number = 10
def loadData():
url = "https://fv3md359db.execute-api.ap-south-1.amazonaws.com/final/readrecords"
r = requests.get(url)
data=json.loads(r.text)
return data
def findNameFromTag(tag):
for i in range(0, N... | [
"parthmanaktala@Parths-MacBook-Pro-7.local"
] | parthmanaktala@Parths-MacBook-Pro-7.local |
50b62a9b11b632703ea4b8d30ae6468d1be6f240 | 949ab04894f44f8c6c2c224cb92834518fa3069b | /mairie/mairie/wsgi.py | 7a9ea27c9f5a55058b8d4d6a149dd8ec0e258e66 | [] | no_license | yeroSambaKa/Mairie | 9575126bacb0e3d4a8419f0d20c948942ee70b09 | dc0d03f89e42c26917242f11685e7bb38219b7d4 | refs/heads/master | 2023-07-16T04:52:12.477249 | 2021-08-30T13:17:31 | 2021-08-30T13:17:31 | 400,856,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
WSGI config for mairie 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/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTIN... | [
"yeroka1394@gmail.com"
] | yeroka1394@gmail.com |
7155f91558771fee29787a17d166ff3b58a5b822 | a4198750ef81e7afa3af26f5b9fb71947425954a | /src/python_smallfbx/package/setup.py | e92ffda94b9d2690f3e4ba4152b07ce2dafa774f | [
"BSD-2-Clause"
] | permissive | think-biq/verwandlung | 007be76c1936501d834d8031819a626011c33953 | d2403ea68e74624db93479e82595011588f0fc4f | refs/heads/master | 2023-03-26T19:35:32.301974 | 2021-03-28T23:34:14 | 2021-03-28T23:34:14 | 350,286,650 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,375 | py | """
Utility to inspect FBX files.
2021-∞ (c) blurryroots innovation qanat OÜ. All rights reserved.
See license.md for details.
https://think-biq.com
"""
import setuptools
import setuptools.dist
import os
from src import version
PROJECT_PATH = os.path.dirname(os.path.realpath(__file__))
with op... | [
"blurryroots@posteo.de"
] | blurryroots@posteo.de |
5681e155f9ce07761b62f8ab53053d972cf701c9 | d102fef03c29acc3fda106c8f85312aa58348a2b | /scripts/cloudReceiver.py | 4b6020f8b3b4e992c608ac1a91ca86b5ec789e3e | [] | no_license | pyrosnowman24/sensor_dist_ros | f92d01779c638ed038baa352f96e7cf3ff709072 | 8673c3ba041a5b8734d54321e54d40b68c14bc9e | refs/heads/master | 2020-06-20T08:29:31.787875 | 2020-02-20T19:55:54 | 2020-02-20T19:55:54 | 197,059,322 | 0 | 0 | null | 2020-02-20T19:55:56 | 2019-07-15T19:26:19 | Python | UTF-8 | Python | false | false | 2,116 | py | #!/usr/bin/#!/usr/bin/env python
import pika
import yaml
import json
import signal
import time
import rospy
from sensor_dist_ros.msg import floatArray as floatArray2
from sensor_dist_ros.msg import sens as Data
global r0,r1,r2,r3
rospy.init_node('rosCloudReciever',anonymous=True)
r0 = rospy.Publisher("/robot0/poses",Da... | [
"s.ackels@yahoo.com"
] | s.ackels@yahoo.com |
91fabff6ba01b5eacf95c4e1a5b3bc139c470d85 | e4afcdf78f64b39cde9f5156eb205820a7aff978 | /test/perf_test/generate_perf_report.py | 3672ad725e9c137444b0b1e4996d62695e00e11e | [
"BSD-3-Clause",
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-x11-hanson",
"CC0-1.0",
"ISC",
"Apache-2.0",
"BSD-2-Clause",
"MPL-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | Amrinder-Singh29/azure-storage-fuse | e18b67ff535feedf413d29642383038dc37495db | 771f66b78f162bd5348a49f737cc6b780e8b82bf | refs/heads/main | 2023-04-12T20:31:21.542901 | 2023-03-22T05:26:02 | 2023-03-22T05:26:02 | 349,494,035 | 0 | 0 | MIT | 2021-03-19T16:52:22 | 2021-03-19T16:52:21 | null | UTF-8 | Python | false | false | 1,845 | py | # Python program to read
# json file
import json
import argparse
import sys
import os
import math
def compare_numbers(job_one, job_two, metrics_list, log_file):
f = open(log_file, mode='r+')
data = json.load(f)
result = {'performance_diff':{}}
for i in metrics_list:
metric_value = math.floor(... | [
"noreply@github.com"
] | noreply@github.com |
d69efc6966a7a0dd85157fa1130e54581402b0c7 | 2feb8dfebbf10ffd03f02bea643195c942ed6739 | /list_doublesplits.py | e6f81a0f131079bc59c5d382b3d93bc6415a1860 | [] | no_license | Prads16/PythonForEverybodyCourseraSpecialization | f961648eb1c92fe7cc41468c278589b151e59cab | 997056b3de23ed1d01f6bb1c94c6b850c114368e | refs/heads/master | 2021-04-12T05:02:42.912896 | 2018-03-27T18:53:26 | 2018-03-27T18:53:26 | 125,952,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 807 | py | #Open the file mbox-short.txt and read it line by line. When you find a line that
#starts with 'From ' like the following line:
#From stephen.marquard@uct.ac.za Sat Jan 5 09:14:16 2008
#You will parse the From line using split() and print out the second word in the
#line (i.e. the entire address of the person who sent... | [
"pradnya.ambre16@gmail.com"
] | pradnya.ambre16@gmail.com |
27eaa975a85aedbd978087f69ba9b732ee63ca0e | e58828e074174cbaed80938713ba19536269c871 | /wildcard.py | fde6f353715e472cb222722a1c1ca88087896bbe | [] | no_license | aberke/search_engine_2 | e9cb7dda44c8c9e5154fda3e5830e269c96637d1 | 951ac513482e93b58a82a4c5aed1ef83fab1f083 | refs/heads/master | 2016-09-11T05:51:57.949383 | 2013-05-04T00:59:27 | 2013-05-04T00:59:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,163 | py | # file that minipulates loaded dictionary into a permuterm index btree --- deals with the handling of WildCard queries
from BTrees.OOBTree import OOBTree
# takes in term that has been rotated around the $ at the end of term -- want to get back orinal term
# input: rotated permuterm index term from which we want to ret... | [
"Alexandra@Alexandras-MacBook-Pro.local"
] | Alexandra@Alexandras-MacBook-Pro.local |
0bdb300392b9da3373e9e581a46570bf5a315763 | 4b7dce428c7bd29f3446725a502377ed24e2af7d | /Source Code/Main_Window.py | 85e2f4c25a392cf37418c13a447c7d6d80cf74a0 | [] | no_license | umairtehami/Twitter-Social-Capital | 24b569a67cd71335ea60fabe98cd054023b1abc7 | a09007472f4a6a6e179c02f3d9d30167b94dcb28 | refs/heads/main | 2023-08-23T21:04:46.965665 | 2021-10-27T15:42:20 | 2021-10-27T15:42:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64,465 | py | from PyQt5.QtGui import QIcon
from Feedback import Feedback
from New_Credentials import *
from New_Project import *
from PyQt5.QtCore import QThread, QObject, pyqtSignal, QTime
from List import *
from OAuth1 import *
from OAuth2 import *
from Project import *
from Unweighted import *
from Weighted import *
... | [
"noreply@github.com"
] | noreply@github.com |
64511342517f2c7c03f1974b08febe0281fca0ef | cd673d9f3c2d0169381478f12661402f5d9b07b9 | /scripts/clamsmtp-action.py | ab110007d1ecd01d92ae2e76de3913abbc705436 | [] | no_license | jamespo/commandmisc | 86316740a63a70beaa6ee739e05a5f514d973e8f | d0f3f3b8562172c88eed484a0e60a8fa239ed059 | refs/heads/master | 2023-09-01T18:07:07.783622 | 2023-08-23T09:08:41 | 2023-08-23T09:08:41 | 9,041,431 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,483 | py | #!/usr/bin/env python
# clamsmtp-action.py - VirusAction script for clamsmtp
# based on smtpsend.py
import smtplib
from optparse import OptionParser
import sys
import os
from email.mime.text import MIMEText
def send_mail():
parser = OptionParser()
parser.add_option("-t", help="to", action="store", dest="to")... | [
"jamespo@gmail.com"
] | jamespo@gmail.com |
6d80c5e6129e225209760595077355c9ae9cdaac | 38c10c01007624cd2056884f25e0d6ab85442194 | /chrome/chrome_dll_bundle.gypi | 2a7c412d6691d2476d794c627214953543ac1abe | [
"BSD-3-Clause"
] | permissive | zenoalbisser/chromium | 6ecf37b6c030c84f1b26282bc4ef95769c62a9b2 | e71f21b9b4b9b839f5093301974a45545dad2691 | refs/heads/master | 2022-12-25T14:23:18.568575 | 2016-07-14T21:49:52 | 2016-07-23T08:02:51 | 63,980,627 | 0 | 2 | BSD-3-Clause | 2022-12-12T12:43:41 | 2016-07-22T20:14:04 | null | UTF-8 | Python | false | false | 9,533 | gypi | # Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# This file contains resources for the main Mac chromium bundle.
{
# The main browser executable's name is <(mac_product_name).
# Certain things will... | [
"zeno.albisser@hemispherian.com"
] | zeno.albisser@hemispherian.com |
3566933b344b6d9ec731005106a6c955325df31e | da7d57fc316b7d54663f59103159610d4d50c051 | /pangram.py | 56dad673ec77786017ba60a15caa8833ece19373 | [] | no_license | rmdes/pthw | b2c65e762d2b95d5da91af203ffef67c7d5768b7 | 000842ca08db0487850a4a4f8b60151aaf6fee61 | refs/heads/main | 2023-09-04T10:23:28.237087 | 2021-11-04T08:44:16 | 2021-11-04T09:05:46 | 424,525,697 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | import string
def isPangram(str1, alphabet = string.ascii_lowercase):
dict = {}
for i in alphabet:
dict[i] = 0
str1 = str1.lower()
str1 = str1.replace(" ","")
for character in str1:
if(dict[character] == 0):
dict[character] = 1
for i in alphabet:
if(dict[i] =... | [
"rick@armada.digital"
] | rick@armada.digital |
a2a6057ec3be0d2b9ce1d28725370142f3ac55c8 | 8276834724f8672b7fea13fb8c6d717763091506 | /fmget.py | 4ea9f29bce41ad3cc85be265010a734d48972a7e | [] | no_license | yijiemkii/Pyquant | 782876ac4e9ee314c6cfc971c30e4faf1d282b6b | ed6b5b2c73fd9b56730dca54be002c2ee3b44aa6 | refs/heads/main | 2023-07-04T03:41:41.408707 | 2021-08-14T01:27:01 | 2021-08-14T01:27:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,690 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import datetime as dt
from datetime import timedelta
from pandas.api.types import is_string_dtype
from pandas.api.types import is_numeric_dtype
import yfinance as yf
import time
import requests, pandas, lxml
from lxml import html
from fredapi import... | [
"aljgutier@yahoo.com"
] | aljgutier@yahoo.com |
2cbe45d9beb5015b6e9b7bdfe21f6840efca9502 | 6ac10eb79b9b44bb6c8be78f9b09a13f584dcabc | /Chapter04/chapter_04_example_01.py | c16e787ec3c68e1213449a116dbd093de499d47b | [] | no_license | javonnii/magenta | 0231fec36fe814720b17e445bc8ffaafd24aed8b | 8eaf176dcfe0cf5fe04f6de816d52d4ea7a30e45 | refs/heads/main | 2023-02-01T03:40:52.613846 | 2020-12-19T10:08:08 | 2020-12-19T10:08:08 | 322,817,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,624 | py | """
This example shows how to sample, interpolate and humanize a drums sequence
using MusicVAE and various configurations.
"""
import os
from typing import List
import magenta.music as mm
import tensorflow as tf
from magenta.models.music_vae import TrainedModel, configs
from magenta.music import DEFAULT_STEPS_PER_BAR... | [
"noreply@github.com"
] | noreply@github.com |
1b3b643a9de2d0688ccc6fd43534603d811be2eb | 927b50cdaf1c384c8bbf6f13816d0ba465852fd8 | /machine_learning_models/ctscan_covid_prediction/cnn.py | 61c6c1a50ac8a0e672cbe76c993cee29544e1ef9 | [
"MIT"
] | permissive | jhabarsingh/DOCMED | f37d336483cffd874b0a7db43677c08a47bd639c | 8a831886d3dd415020699491687fb73893e674c5 | refs/heads/main | 2023-04-26T06:45:10.409633 | 2021-05-19T14:37:53 | 2021-05-19T14:37:53 | 316,683,855 | 3 | 5 | MIT | 2021-02-21T13:32:33 | 2020-11-28T07:51:22 | JavaScript | UTF-8 | Python | false | false | 2,926 | py | import tensorflow as tf
import keras
import pandas as pd
import numpy as np
import zipfile
import os
from random import randint
from keras.layers import Dense,Flatten,MaxPool2D,Conv2D,Dropout,GlobalAveragePooling2D
from keras.losses import binary_crossentropy,categorical_crossentropy
from keras.models import Model,Sequ... | [
"jhabarsinghbhati23@gmail.com"
] | jhabarsinghbhati23@gmail.com |
2220cb20fe57b707982d3591ab2714ae3b8e8482 | d869ade18e20dd793f0043ab8094a4106310f3b1 | /blog/migrations/0015_auto_20201019_1904.py | 07d3ee9110dcf65ccbedd14b74c4d7d14c5402d0 | [] | no_license | krishnajhapate/icoder | e474de880ae4792c64ccd640924c13a8976c4f4b | a966940e501eb94ded082371fcc04be094412e09 | refs/heads/main | 2023-06-04T01:55:05.428576 | 2021-06-28T18:42:25 | 2021-06-28T18:42:25 | 304,909,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | # Generated by Django 3.1.1 on 2020-10-19 13:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0014_auto_20201019_1904'),
]
operations = [
migrations.AlterField(
model_name='post',
name='author',
... | [
"ki54.jhapate@gmail.com"
] | ki54.jhapate@gmail.com |
a41ea17f1416f18dd662cef71f7c460afc86a41a | 7139333bea24651be4d7d65ffc7106edcc5f6b7b | /article/migrations/0005_likes.py | 6246bf0b67469c79635dde05167bdc80f16b9133 | [] | no_license | xiaoweiOvO/my_blog | 4ac2dc0aaa2393d0e4b8a284bf4476aabcc313ed | 0da9a2e9d8bd4615f2a5bf661ce75f8428456e05 | refs/heads/master | 2022-12-22T01:46:04.145390 | 2020-06-03T01:52:57 | 2020-06-03T01:52:57 | 247,701,499 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 875 | py | # Generated by Django 3.0.4 on 2020-03-29 08:05
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),
('article', '0004_remove_a... | [
"2283940851@qq.com"
] | 2283940851@qq.com |
1034bd77edf5af5ae781950bbc82b7b3ac584294 | f06557f1b2ee2add10e99be6dfe5870e703ee384 | /services/migrations/0003_businesshour.py | 927da1f0e6ffa151a345525aa670af82dc9ffd04 | [] | no_license | jonathan-odonnell/well-groomed-woofers | 2dbff2d4672944c2d5664008967680aad23c7a8a | c8a61c9e840e5b03b975615c947ee75dd188583b | refs/heads/master | 2023-07-19T00:58:29.539488 | 2021-09-08T15:44:58 | 2021-09-08T15:44:58 | 389,753,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | # Generated by Django 3.1.3 on 2021-08-01 23:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('services', '0002_service_size'),
]
operations = [
migrations.CreateModel(
name='BusinessHour',
fields=[
... | [
"jonathanodonnell1994@gmail.com"
] | jonathanodonnell1994@gmail.com |
e23b7df01fd1ad5179934574661d3b12abd07a70 | 6eaf41b83d66447fdae025f2d69a10a5c0be6f28 | /password.py | 3d4964598643c3f03b9a7f507c69cb57812a33ef | [] | no_license | DrazThan/PassGenerator | 083561695bc94b4a8af78396af65dfe71c6bd862 | e85c2a97aae2adc57853854202fccf85df8217bb | refs/heads/main | 2023-07-27T14:53:17.562048 | 2021-09-10T03:44:02 | 2021-09-10T03:44:02 | 403,714,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,414 | py | from tkinter import *
from random import randint
root = Tk()
root.title('Strong PassWord Generator')
root.geometry("500x300")
def new_rand():
# Clear entry box
pw_entry.delete(0, END)
# Get PW length and convert to integer
pw_length = int(my_entry.get())
# create a variable to hold our password
my_password... | [
"oz.tal000@gmail.com"
] | oz.tal000@gmail.com |
19a630f6b4d8fa9361865e00c7183aa26c84182f | 5abb082407832749f418c803d875b1798a457be6 | /gui/demo_gui/eel/venv/Scripts/pip3-script.py | 5f9d917576d499f51a12898a2f02047bd1fe3eff | [] | no_license | darkflake/ASDAS | 63b4593d77d09132a7365518a1e10db3a40e1c75 | 9dbb63c7f0279270dcd321b7a4456ec55f70bf6f | refs/heads/master | 2022-05-26T11:26:26.497155 | 2020-04-27T15:58:35 | 2020-04-27T15:58:35 | 259,531,939 | 0 | 0 | null | 2020-04-28T04:34:55 | 2020-04-28T04:34:55 | null | UTF-8 | Python | false | false | 406 | py | #!C:\Users\HP\PycharmProjects\eel\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
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])
... | [
"siddhiasonar@gmail.com"
] | siddhiasonar@gmail.com |
259eb83402332534b5d99c0a6e094279776f1915 | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-gsn-edf/gsn-edf_ut=3.5_rd=0.65_rw=0.04_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=73/params.py | 885ca21da69a7e1b42cd2a69b712f6a68b7f435e | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | {'cpus': 4,
'duration': 30,
'final_util': '3.532857',
'max_util': '3.5',
'periods': 'harmonic-2',
'release_master': False,
'res_distr': '0.65',
'res_nmb': '4',
'res_weight': '0.04',
'scheduler': 'GSN-EDF',
'trial': 73,
'utils': 'uni-medium-3'}
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
878f4a818f04d4f9ab83b2f46874ac368fb98eca | a5c87282656e6b30bdb05a172cf62dba30753118 | /wan7.py | 274842d9e137ef4bb97a7ddb3cf861b9f6dd46aa | [] | no_license | NAMWANHEE/data_mining_in_school | 3cfb7ea79f06fe50c79b55aa871e7efb4d6ea6b4 | 14fb21851061835f0149b94f20c7e65405e5c523 | refs/heads/master | 2023-03-08T12:53:02.663958 | 2021-02-24T09:20:29 | 2021-02-24T09:20:29 | 341,083,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,236 | py | import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
from sklearn.datasets import load_iris
iris = load_iris()
a = pd.DataFrame(iris.data,columns=iris.feature_names)
a['target'] = iris.target
a['targetName'] = np.where(a['target'] ==0,"setosa",np.where(a['target'] == 1,"versicolor","virginica... | [
"xjffla12@naver.com"
] | xjffla12@naver.com |
cf28652acd3c0bf0723346e3d5df428c6ed15679 | 70b8d3b6c8530950a70e6550325d60dc981d2807 | /assets/code/python_code/dt_data/dt_gen_csv.py | 108585e606c1bdc78f6bbbb9d437acff0a16b080 | [
"MIT"
] | permissive | zanghu/gitbook_notebook | 85898713e2b74c7da908d73588691878f64b5b1c | 9bf90c2ed192c1037eadad9324f26db30c11c927 | refs/heads/master | 2023-06-27T20:17:55.395183 | 2023-06-08T07:52:21 | 2023-06-08T07:52:21 | 116,573,098 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,791 | py | #coding=utf-8
#!/usr/bin/env python
"""
1.以下几项操作都有统一的(不区分操作物品)表中记录
评论
关注
收藏
2.以下几项操作只能在与物品相关的表中获得
赞
踩
回复
作者
"""
import os
import pickle
import numpy
import time
import pandas
# "用户-物品"矩阵的元素格式
# [赞, 踩, 关注, 收藏, 评论, 回复, 浏览, 作者, ]
g_element_labels = ['like', 'dislike', 'follow', 'collect', 'comment', 'reply', 'seen', '... | [
"anonymous@gitbook.com"
] | anonymous@gitbook.com |
745bcadbece4be250f6c1d6a9990da5454da9590 | e79d0a9a8143e03705979d2f8ce78e278d2078c0 | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2017_11_01/aio/operations/_virtual_network_gateways_operations.py | 867d69b692014f5561a8e8d194099242c85628cf | [
"LGPL-2.1-or-later",
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | dannysijia/azure-sdk-for-python | f2c276600d1ba48620e8d1c73b57eb8e3c73e35a | 71bd202f5261e7ce8b2db38bb9b6802f1a55a5dc | refs/heads/main | 2023-08-22T04:15:24.519733 | 2021-11-01T08:25:59 | 2021-11-01T08:25:59 | 423,389,780 | 0 | 0 | MIT | 2021-11-01T08:25:28 | 2021-11-01T08:25:28 | null | UTF-8 | Python | false | false | 83,933 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | noreply@github.com |
7d7cada6debb9f178ad60a991eb6e7cb110ccb8e | dcda5ba16474dd8ff650e04e7f4a9bf700f6a9ff | /shop/admin.py | 35ea34c67b82499abed52b603a899222fbc1937b | [] | no_license | 007vict/shopbyexample | 2084d6e53faafb5c7e856cc8b3a5ff43bc3a82e2 | bc7dcfe5818499731c3cbf956c9c0b95cf3791da | refs/heads/master | 2022-12-21T13:05:08.425653 | 2019-04-10T10:30:41 | 2019-04-10T10:30:41 | 177,291,341 | 0 | 0 | null | 2022-12-08T04:58:00 | 2019-03-23T13:18:59 | JavaScript | UTF-8 | Python | false | false | 667 | py | from django.contrib import admin
from .models import Category, Product
from parler.admin import TranslatableAdmin
@admin.register(Category)
class CategoryAdmin(TranslatableAdmin):
list_display = ['name', 'slug']
def get_prepopulated_fields(self, request, obj=None):
return {'slug': ('name',)}
@admin.r... | [
"super_vg@bk.ru"
] | super_vg@bk.ru |
c7bf6347a9483578c151ba6fdf82003fc374d7ff | f3b233e5053e28fa95c549017bd75a30456eb50c | /ptp1b_input/L82/82-80_MD_NVT_rerun/set_2.py | 418a71c6ac0ba7775d409fa90b0c3d5147873a7b | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 741 | py | import os
dir = '/mnt/scratch/songlin3/run/ptp1b/L82/MD_NVT_rerun/ti_one-step/82_80/'
filesdir = dir + 'files/'
temp_prodin = filesdir + 'temp_prod_2.in'
temp_pbs = filesdir + 'temp_2.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for j in la... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
616df77085bb95807dd89413c1aa21dd7e7250a7 | 442ccaa620eb22d51378a45941d021b44d7cde98 | /src/courses/admin.py | daed5cd7fc1160232f05616b0ed9cc628995f6df | [] | no_license | achiengcindy/supreme-school | 43884b3c34fcac51d8f6ab4df38ee923f473fec9 | c3777cb5f63ec41a167f87f0c7ec6a575e88ff0b | refs/heads/master | 2021-01-16T01:57:01.590225 | 2020-03-26T01:40:14 | 2020-03-26T01:40:14 | 242,935,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 587 | py | from django.contrib import admin
from .models import Subject, Course, Module
# Register your models here.
@admin.register(Subject)
class SubjectAdmin(admin.ModelAdmin):
list_display = ['title', 'slug']
prepopulated_fields = {'slug': ('title',)}
class ModuleInline(admin.StackedInline):
model = Module
@adm... | [
"achiengcindy36@gmail.com"
] | achiengcindy36@gmail.com |
9f31dcd636246865c64704e13cfc9ea76c727b6e | ccd21ace0d4b33a26e15e28292b67a9d01e3775f | /venv/Lib/site-packages/verify_email/confirm.py | d56ba7688c51a62ddff41cd5704fb8acc05283d2 | [] | no_license | Sofia7311/djangoProjectcopy | 68237e4181f1e7e3883552863dc4bef9f5a6971e | f061ac6423a9a280d1995f1d2818e03b71695c40 | refs/heads/master | 2023-03-28T16:25:51.021092 | 2021-03-24T12:28:51 | 2021-03-24T12:28:51 | 351,071,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,413 | py | from base64 import urlsafe_b64decode
from binascii import Error as BASE64ERROR
from django.contrib.auth import get_user_model
from django.utils import timezone
from django.contrib.auth.tokens import default_token_generator
class _UserActivationProcess:
"""
This class is pretty self.explanatory...
"""
... | [
"Sofiadevi.Vajravel@redeemertech.co.uk"
] | Sofiadevi.Vajravel@redeemertech.co.uk |
ae70d5109c5dcd25b68d33b38404401d72960843 | ad972f9baebfa69eafa7e4cea7aae5e76c3ab285 | /venue/views.py | 3cbea475579ca6689c96f9b74dfc4018c9207846 | [] | no_license | KevinZhengNCU/software_enigeering | cce3380d0f5964f9cc301113d70392b76d608fe1 | 270627dec5c7539d16050dfd19a325270978cb7b | refs/heads/master | 2022-04-16T08:24:14.370222 | 2020-03-31T04:31:02 | 2020-03-31T04:31:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,005 | py | from django.shortcuts import render
import urllib.request
from .models import Venue
from django.db.models import Q
import urllib.request
import ssl
ssl._create_default_https_context = ssl._create_unverified_context
response = urllib.request.urlopen('https://www.python.org')
# Create your views here.
#gmaps.configure... | [
"v123830153@gmail.com"
] | v123830153@gmail.com |
5510844e24aaa869228afa3b3dcb1837115eef51 | 1cd160b33e71611d7d9e6cb961fc94fac6c3b9ce | /cadastro_de_valore.py | 7ee561383a06184f4af9b05a81e092f02d78edbf | [] | no_license | lhaislla/Introducao-a-programacao | ea5dd6c6e1bb507e60434ccb9386688a7f4cb668 | 92ed641ff69f306832ffb80abc7ca89a81b2a0e5 | refs/heads/master | 2022-04-12T20:24:45.155800 | 2020-03-31T19:57:59 | 2020-03-31T19:57:59 | 207,156,155 | 0 | 0 | null | 2020-03-31T19:58:00 | 2019-09-08T18:34:26 | Python | UTF-8 | Python | false | false | 380 | py | lista = list()
while True:
valor = int(input('Digite um valor: '))
if valor not in lista:
lista.append(valor)
print('Adicionado com sucesso...')
else:
print('Valor duplicado! não vou adicionar...')
r = str(input('Quer continuar? [S/N] ')).upper()
if r in 'Nn':
break
... | [
"noreply@github.com"
] | noreply@github.com |
c51faf4d59a67910bf2fc594e9563bf8055c494a | bf8ade7a8ece3c4a68bdc66dc7ef8988fcd9f631 | /sem_seg/organise_apple_tree.py | 1aedd41117f4661479c961f46696a1b58f9fd00c | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | artzet-s/pointnet | b28e1c3a1a323e3b25bb92cf71703a87daaa959a | 5b49b61d630e791406d8132cebb0e616aaa0ec07 | refs/heads/master | 2020-09-26T01:50:46.078262 | 2020-02-28T13:10:18 | 2020-02-28T13:10:18 | 226,134,784 | 0 | 0 | NOASSERTION | 2019-12-05T15:39:38 | 2019-12-05T15:39:38 | null | UTF-8 | Python | false | false | 8,603 | py | import os
import numpy
import sys
import glob
# ==============================================================================
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
ROOT_DIR = os.path.dirname(BASE_DIR)
sys.path.append(BASE_DIR)
sys.path.append(os.path.join(ROOT_DIR, 'utils'))
import shutil
import rando... | [
"simon.artzet@gmail.com"
] | simon.artzet@gmail.com |
0a8945f414d4b72d4de7965d496a29bfd79bf9cd | f47991b692697f29a468c9a8d3a3d80ca8bda055 | /HG/GAN_mnist/cycleGAN.py | 62f3e17598c735767fd47032a97d560aa94d6dbe | [] | no_license | hogunkee/CanWeDeep | 10dd4cd2ef5d61ba82772373caf50790229735e6 | 24dbc3cbd1fc7121a873066b3e6eb39ca4ce7094 | refs/heads/master | 2021-04-18T19:31:09.664515 | 2020-12-23T04:05:24 | 2020-12-23T04:05:24 | 126,709,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,299 | py | import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
plt.switch_backend('agg')
from tensorflow.examples.tutorials.mnist import input_data
# data loader
mnist = input_data.read_data_sets("./sample/MNIST_data/")
train_x = mnist.train.images
train_y = mnist.train.labels
print(train_x.shape, train_y.... | [
"hogunhogun@naver.com"
] | hogunhogun@naver.com |
68b3cec1b5512d4fcda2395d608d5ebd33c2902e | 3284ba582d3f43a2e4ec7ae8e024bea77cc28a1f | /venv/Scripts/easy_install-script.py | 3fb5bc1ddb5edb3ae60e2577ce2967b7a1e385f0 | [] | no_license | Rubensrvsc/Search-keyword | f00b9687a607cde169abef1bb73c4d6bf6ba07d6 | b7f0c31d0157d9784dfbe5be9140072b8dcbabb1 | refs/heads/master | 2020-03-29T20:52:45.826118 | 2018-10-02T18:26:32 | 2018-10-02T18:26:32 | 150,336,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | #!C:\Users\ruben\PycharmProjects\Search-keyword\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.... | [
"Rubensspfc100@gmail.com"
] | Rubensspfc100@gmail.com |
54abea1cc77082c2d7a2b55605468c8af6661b87 | ba435f72e6ccad30cb5577455f2b913479a6b9c1 | /week4.py | 42f33b3cd1978c9aa12cc1e917f803d7778d22da | [] | no_license | MuxBee/alds | bc16e58d98dab70a3052eb9679f84decd204e256 | d3bf85ca1167b920c019bcd7b1b7b079b57c74ac | refs/heads/master | 2021-01-19T12:46:18.125846 | 2017-01-12T00:45:09 | 2017-01-12T00:45:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,328 | py | import sys
class Hash:
def __init__(self):
self.len = 1
self.table = [set()]
self.used = 0
def __repr__(self):
message = ""
count = 0
for i in self.table:
message += str(count) + ":"
count += 1
message += str(i) + "\n"
... | [
"smartcat007@hotmail.com"
] | smartcat007@hotmail.com |
05648e98861f7242f3e9a0fefa5d5293dc55f54e | 4aada682def251d936d304d6c0cca956c64c121e | /registration/models.py | 528eb8e3705e27e7da7fe7a4127a4be48a50cb22 | [] | no_license | kayethano/howmuch | dfb5f45b25b5f98ffc06e55ca764e485f2affed6 | fac90c01e60ff9bf2d271de1e7a723de129cc864 | refs/heads/master | 2020-05-30T18:44:59.684356 | 2013-06-03T20:55:26 | 2013-06-03T20:55:26 | 8,377,273 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,166 | py | import datetime
import random
import re
from django.conf import settings
from django.contrib.auth.models import User
from django.db import models
from django.db import transaction
from django.template.loader import render_to_string
from django.utils.hashcompat import sha_constructor
from django.utils.translation impor... | [
"kayethano@gmail.com"
] | kayethano@gmail.com |
8c63790e46698adacad84c7b80f0afe8e85aec72 | c1d88dcb0a7efa8249a20aadb2e4afdeb9c26fcb | /discrete_mathematics/projects/final_project_method2.py | ecfb756556edbf7e316230608c5b6e24b3b13fe3 | [] | no_license | gadr1on/computer_science_major | 6de8396989d1d4fc314d341c1c7254a7768148a7 | b5bcf34bbcb1228126f9dc6d7cdd6305f8c0ca20 | refs/heads/master | 2021-05-22T22:19:46.913315 | 2020-04-06T08:45:43 | 2020-04-06T08:45:43 | 253,122,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,020 | py | import scipy.spatial.distance as ssd
import scipy.cluster.hierarchy as sch
import matplotlib.pyplot as plt
distMatrix = [[ 0 , 31 , 58 , 27 , 12 , 10 , 34 , 64 , 44 ],
[ 31 , 0 , 83 , 21 , 36 , 45 , 35 , 92 , 102],
[ 58 , 83 , 0 , 66 , 11 , 78 , 28 , 39 , 94... | [
"gadrionpr@gmail.com"
] | gadrionpr@gmail.com |
ec2eb0aa2df734cf02d1c1f59fc5ac432f487b0f | e4427b40760354593a9c1b923825640bc7b2dd4e | /reports/general/confirmedusers.py | cd91b597f209dddd6aad5b9369caeb133f451168 | [
"LicenseRef-scancode-public-domain"
] | permissive | legoktm/database-reports | a04a4d4b00fcf658b1777c5413a3586cecf90891 | f1ead4d4e8d256e5bfd4988914171f31cc845193 | refs/heads/master | 2021-01-16T20:35:15.793256 | 2013-05-05T01:30:42 | 2013-05-05T01:30:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,551 | py | # Copyright 2009, 2013 bjweeks, MZMcBride, Tim Landscheidt
# 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 Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This prog... | [
"tim@tim-landscheidt.de"
] | tim@tim-landscheidt.de |
4b22873ba2b86ee6f8f353268dab2f9cda56c13c | d77c8e7d5ec57940a2e1ee0e9836fb6181b0e051 | /user.py | ff88009a1f188531003aede35af3ba5cdd19b583 | [] | no_license | ultralegendary/Git-RPG | 6111ea5bb25ecbd5d86d4a577935e8aa0fc40f15 | db3caeea635a56303a971a4ee6488de7963a5aa2 | refs/heads/master | 2023-03-21T14:15:18.612195 | 2021-03-14T14:06:57 | 2021-03-14T14:06:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,458 | py | import sqlite3
import os
"""Db structure:
{
user_name = ...
file_path = ...
level = {
lvl_no: ["init","commit",....],
}
"""
basepath = os.path.join(os.path.dirname(os.path.realpath(__file__)), "user.sqlite3")
class User:
def __init__(self, path=None):
"""Takes a file-path"""
... | [
"npc203@users.noreply.github.com"
] | npc203@users.noreply.github.com |
60f83e7f42ce5330dc0e5d4b308975dca448fe8a | 2330c7c518bd42eddcad9d46a6c8c5747b72fe3a | /intent/apps/query/migrations/0005_auto__add_dailystat.py | a8c0d7be15e0dbc4d49ca59f2eb77ecba3d9ebc3 | [] | no_license | ktundwal/intent | f2873b172a9e8439378c668539780277026c7655 | 605c7dfa4a8257f87fb93b5f7d984e0c95434b22 | refs/heads/master | 2023-06-08T09:06:14.965357 | 2013-12-29T05:32:17 | 2013-12-29T05:32:17 | 380,635,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,329 | 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 model 'DailyStat'
db.create_table('query_dailystat', (
('id', self.gf('django.db.models... | [
"kapil@cruxly.com"
] | kapil@cruxly.com |
422b89a625e8ed71bceb6edd8df9b18591547f09 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/templates/_algorithms_challenges/codeabbey/_CodeAbbeyPythonSolutions-master/matching_brackets.py | 6e1fa02b64da38699b6c5780bcf0007efcd986dd | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 745 | py | _______ __
amount_values i..(input
results # list
___ is_matching(word
word __.sub _ [^()[\]{}<>]","",word)
open_brackets ["[","(","{","<"]
close_brackets ["]",")","}",">"]
open_brackets_in_word = # list
___ i __ word:
__(i __ open_brackets
open_brackets_in_word.a..(i)
... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
d381508d7d996ad00cf41f20960b069d5bad79c3 | 9a4dc899928a2fbce0bc7501adc4590f17f855fb | /demeter/demeter/settings.py | 770bfb71ab8d5506c6843fe1b3fd7660507019f0 | [] | no_license | kstroevsky/parf_test | 697fe705b9dc3ade3377eaf076839378233acd21 | 1c756bab32a6212fd916238780ee61eb12e5b1ff | refs/heads/master | 2020-09-17T04:12:17.511723 | 2019-12-10T20:07:08 | 2019-12-10T20:07:08 | 223,984,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,102 | py | """
Django settings for demeter project.
Generated by 'django-admin startproject' using Django 2.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
#... | [
"38957112+kstroevsky@users.noreply.github.com"
] | 38957112+kstroevsky@users.noreply.github.com |
6f16a1c2b4dac3fc4a91743e308c6b7a3bc0d011 | c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd | /google/cloud/bigquery/storage/v1/bigquery-storage-v1-py/setup.py | f20749fb5fe943b8d9cce3d3b649c3f8f26a9e70 | [
"Apache-2.0"
] | permissive | dizcology/googleapis-gen | 74a72b655fba2565233e5a289cfaea6dc7b91e1a | 478f36572d7bcf1dc66038d0e76b9b3fa2abae63 | refs/heads/master | 2023-06-04T15:51:18.380826 | 2021-06-16T20:42:38 | 2021-06-16T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,802 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# 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... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
90c78d722c19c585af06e26253b4db4d10aea893 | e1e128b3a0aa886010d964b0176ea9fb86d6304b | /progetto1/Grafici/Errore-w-vs-u.py | d99b3e79511b1a7c4dab1edcdeab304112d44909 | [] | no_license | CostantiniMatteo/progetto-mcs | cfbc97959588737c13e77548f84e7f623fac10df | dea973b3cce9fd3a8c9f75ec232c2493356ba661 | refs/heads/master | 2020-03-12T14:29:59.197222 | 2018-06-07T13:23:52 | 2018-06-07T13:23:52 | 130,668,716 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,846 | py | import matplotlib.pyplot as plt
import pandas as pd
dt = pd.read_csv(
"../logs/res2.csv",
sep=',',
encoding="utf-8-sig",
)
# tableau20[2] arancione
# tableau20[4] verde
# tableau20[6] rosso
# tableau20[8] viola
# tableau20[10] marrone
# tableau20[12] rosa
# tableau20[14] grigio
# tableau20[16] verdino
# t... | [
"d.gerosa6@campus.unimib.it"
] | d.gerosa6@campus.unimib.it |
3f52dd08607f49f62ba2a9fcf0763299051fc089 | 4c7fc810eb442b386969bf345b4dc6ef3152c783 | /src/transformers/models/pegasus/configuration_pegasus.py | ae5f8f007573b77a2c22f667698e25ef5bd39b3e | [
"Apache-2.0"
] | permissive | newcodevelop/transformers | fbcef5d703b12febf6e76e84e3f0493769fb9d37 | e8d1bd7427021d2114ec159b2c90c6b1fcddeae7 | refs/heads/main | 2023-03-15T11:45:09.906184 | 2022-08-30T07:26:17 | 2022-08-30T07:26:17 | 254,360,734 | 0 | 1 | Apache-2.0 | 2020-04-09T12:07:09 | 2020-04-09T12:07:08 | null | UTF-8 | Python | false | false | 7,868 | py | # coding=utf-8
# Copyright 2021, Google and The HuggingFace Inc. team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
... | [
"noreply@github.com"
] | noreply@github.com |
3e4de2fc6d9d8b76fb50b968c3ddd51ec32bf16e | 5aa910b8eb3c5ec0ffedfef7e4956c04da5e803a | /python/tensorflow/basic/basic_usage.py | 75eb4694b575d4a9b5a5c011f74ca9d7ca548ab0 | [
"MIT"
] | permissive | gdsglgf/tutorials | 67b01a0594310c867bea5d6f6e32c26238c70b3d | bacb2b901cca778e8d4439a363bca25981074fed | refs/heads/master | 2020-06-21T05:45:34.970214 | 2017-10-31T11:39:40 | 2017-10-31T11:39:40 | 74,804,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,361 | py | import tensorflow as tf
# Create a Constant op that produces a 1x2 matrix. The op is
# added as a node to the default graph.
#
# The value returned by the constructor represents the output
# of the Constant op.
matrix1 = tf.constant([[3., 3.]])
# Create another Constant that produces a 2x1 matrix.
matrix2 = tf.const... | [
"wzguofulgz@126.com"
] | wzguofulgz@126.com |
a75b582f20ec9f0efc3cc68fe0333cda99140118 | a7a5207842249c3e957632351068bf15f76b2cac | /jobhound/wsgi.py | 398e62e29c7d3ced1003fc0aa9ddf67680a1a241 | [] | no_license | smileservices/jobhound | 4baaf19e45bb7a72f3d08069863be66077158a31 | d4b2e3905e0be4de9db061894d152332cc3387ed | refs/heads/master | 2022-12-11T11:32:27.004271 | 2020-04-16T05:05:16 | 2020-04-16T05:05:16 | 187,748,962 | 0 | 0 | null | 2022-12-08T05:28:02 | 2019-05-21T02:41:44 | CSS | UTF-8 | Python | false | false | 393 | py | """
WSGI config for jobhound project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETT... | [
"vladimir.gorea@gmail.com"
] | vladimir.gorea@gmail.com |
77166de9586f0a39eb537a623054fb5db15a323e | bc8ba8ac83c5e585b67ae56c589bbdde94f9905e | /courseraTrain/courseraTrain/apps/page/views.py | 97dc4827d7cb5728659804dfcdbf9f50bbb87e00 | [] | no_license | Arilonchik/Learning-python | ec7138d9a80f7e569a2097cb4b2e168e19e91694 | bf92f0cfa7b18bb5c413cf39b92cab72cd726cc9 | refs/heads/master | 2021-09-25T11:40:11.818306 | 2020-08-04T15:38:49 | 2020-08-04T15:38:49 | 246,258,987 | 0 | 0 | null | 2021-09-22T19:02:52 | 2020-03-10T09:29:50 | JavaScript | UTF-8 | Python | false | false | 341 | py | from django.shortcuts import render
def main_page(request):
return render(request, 'page/main.html')
def logreg(request):
return render(request, 'page/logreg.html')
def userdetail(request, id):
return render(request, 'page/user_details.html')
def tag_news(request, tag):
return render(request, 'p... | [
"egorreal2011@gmail.com"
] | egorreal2011@gmail.com |
79800ea4bb344a36419d35687696ac0d9d4ee791 | 96f5c4513a2b41f0ddb8ef9df64d82359d4df257 | /ex15.py | cbd935a956e954fa77d1c162b7d1f69a4a52a7a7 | [] | no_license | whatrocks/lpthw | d6fa8d0542d9fcd302986aaefd7e83cc7f28736f | bf32fbde2a142215bb18c66d2aa2dc834e35d6bc | refs/heads/master | 2021-07-20T04:13:31.518575 | 2017-10-24T03:37:54 | 2017-10-24T03:37:54 | 107,930,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | from sys import argv
script, filename = argv
txt = open(filename)
print(f"Here's your file {filename}: ")
print(txt.read())
print("Type the file name again:")
file_again = input("> ")
txt_again = open(file_again)
print(txt_again.read())
| [
"charlie@whatrocks.org"
] | charlie@whatrocks.org |
9dfd5420cc45c7fcf91fcb36723e5cb455c5338e | bb33e75a3c448c5acd9872b4f8644e3fc39377c4 | /WeTube/Audio/views.py | 544fa6cac2ec98f4ab56e463b3b631814da12de6 | [] | no_license | Andre-Oliveira/WeTube | bb051cdc6d5bd8b760f2d25734384fdbfa120d06 | 17458e23504d0ba3d8c8dc1e5931b75295c5b286 | refs/heads/main | 2023-01-11T05:53:44.653386 | 2020-11-06T17:48:15 | 2020-11-06T17:48:15 | 310,369,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def index(request):
return HttpResponse("Hello, there. You're at the Main Audio page.") | [
"andre.a.c.oliveira@outlook.com"
] | andre.a.c.oliveira@outlook.com |
793ed4dfcd35b1914cd21aae2a1c9b91367c20b2 | 84f96ab7cfa47b35f6b41bb673cea4d7d87f510e | /polls/migrations/0001_initial.py | 24f5f5fb7c63a84e723b74017c8e619b78274dfe | [] | no_license | duhq123/testDjango | bd2f644565ac8594f3ee54bc55235b6b06c41011 | d64321ad2d6ae9a5652a39eb82d389bd8f7c4c31 | refs/heads/master | 2021-08-17T16:45:20.755460 | 2020-04-03T09:00:19 | 2020-04-03T09:00:19 | 150,550,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,165 | py | # Generated by Django 2.0.7 on 2018-07-23 10:48
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Choice',
fields=[
... | [
"m15104611003@163.com"
] | m15104611003@163.com |
b73f68257023c1fa8bc857f401cec846ef532ede | cc04c3894d5e7f45bcbef0754bf51a63afa8d427 | /python/advanced_python_regex.py | 8e369633db03291f3a2a2ba3e46cb3bd2a6ee080 | [] | no_license | ejm714/dsp | 7c45bcf03896371c0ca917d44613e181252bc4b7 | 77415232a32b6eea3ec8cc0a630b2f83e94749b9 | refs/heads/master | 2021-01-22T19:42:11.299548 | 2017-04-09T01:48:25 | 2017-04-09T01:48:25 | 85,230,132 | 0 | 0 | null | 2017-03-16T18:41:11 | 2017-03-16T18:41:11 | null | UTF-8 | Python | false | false | 741 | py | ## Q1
import pandas as pd
from collections import Counter
df = pd.read_csv('https://raw.githubusercontent.com/ejm714/dsp/master/python/faculty.csv')
print(df.columns.tolist())
df.columns = df.columns.str.strip()
degrees = df['degree'].str.strip().str.replace('.', '').str.split()
degree_counts = Counter(degrees.sum())
... | [
"noreply@github.com"
] | noreply@github.com |
e24e7df4f317e6c628e16a871d55ad7159b7cdb3 | f96637ce5bfd50c3db0943d347dc42cea0db2dee | /account/urls.py | a053d252966a6815332734bf42f7821a208f45d7 | [] | no_license | Kusbek/django2-tutorial2 | 9cb2ec0fe5dacaa50829d33560ee4ec11ec3c07f | ab300d74434f08ef9fa42a9c3a2580f36e73a7fd | refs/heads/master | 2020-08-16T05:34:31.831674 | 2019-10-16T08:43:04 | 2019-10-16T08:43:04 | 215,461,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.account, name = 'account'),
path('signup/', views.signup, name = 'signup'),
path('login/', views.login, name = 'login'),
path('logout/', views.logout, name = 'logout'),
] | [
"kusbek1994@gmail.com"
] | kusbek1994@gmail.com |
44410ba2601a87b586811b7cbc3f750b9218370e | 121d91d5a32fcf1425cb0f84e0f529e24e210f1e | /books/books_app/models.py | 40940667c98e41ebb018de88e1d3d5c9dc423bef | [] | no_license | Nouran-yehia/DjangoLab4_DB_routes | e613e26161ab9dc1b883b252c661500cade3c1f8 | 1b15d2f3cf4627535eb749374fa44988292587e7 | refs/heads/master | 2022-04-13T00:56:16.641785 | 2020-04-11T13:22:37 | 2020-04-11T13:22:37 | 254,870,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | from django.db import models
class Author(models.Model):
name = models.CharField(max_length=50)
def __str__(self):
return self.name
class Books(models.Model):
name = models.CharField(max_length=50)
details = models.TextField(max_length=100)
image = models.FileField(max_length=50, defa... | [
"nourayehia1994@gmail.com"
] | nourayehia1994@gmail.com |
b4b943042458d5e9106737ab01e2e43af95406b8 | 5ee994967ada4d1154bad6569f736313f50dc17c | /common/models_db.py | a9e8b3391844bd3b69622069254036a0b6712f66 | [] | no_license | justefg/chat | faa4a6e9f3473a1021946f4e93e1697fb569788b | 5713105211f64ebf30bca5d6354b8ff00311bc9d | refs/heads/master | 2021-05-31T07:30:14.460566 | 2016-04-26T14:23:48 | 2016-04-26T14:24:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 833 | py | from sqlalchemy import Column, ForeignKey, Integer, DateTime, String, PickleType, \
Text, BigInteger, UniqueConstraint, Boolean
from sqlalchemy.ext.declarative import declarative_base, declared_attr
Base = declarative_base()
class Message(Base):
__tablename__ = "messages"
id = Column(B... | [
"theluckyemil@gmail.com"
] | theluckyemil@gmail.com |
d942c24bdc09d730a660133aa3a56186f2630840 | cf024f84c3fac53fb2ce5e6304509ec869509b52 | /NumPy/code.py | 2a9b7b7477a51750682369c65c814f98f744b6dc | [
"MIT"
] | permissive | pratik0917/greyatom-python-for-data-science | 20bedb37842355e692ddda945796a8fe7ead7a5a | 929cfd6d408885beae66a556c11f4b8eee9b2114 | refs/heads/master | 2020-06-16T17:43:28.756239 | 2019-07-07T13:30:16 | 2019-07-07T13:30:16 | 195,653,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,180 | py | # --------------
# Importing header files
import numpy as np
# Path of the file has been stored in variable called 'path'
data=np.genfromtxt(path,delimiter=",",skip_header=1)
print(data)
print(type(data))
#New record
new_record=np.array([[50, 9, 4, 1, 0, 0, 40, 0]])
print(new_record)
census=np.concat... | [
"pratik0917@gmail.com"
] | pratik0917@gmail.com |
d1090c80d748a3d4b9afb55fd64452dbaaf49f43 | be44e062f00a728f9c4add0873ce9dc925c67630 | /js/google/closure_linter/2.3.9/setup.py | 5169f53bfc589894f375edaacc6bdac5d78bb72d | [] | no_license | aaren-cordova/un_squadron | c2e5e1a7f91d38df14cb39de7995a7e7a6350566 | 0172976086dc456ddc17a5d7d41ec9c7191d9f00 | refs/heads/master | 2020-04-25T05:44:40.090788 | 2014-12-18T20:03:40 | 2014-12-18T20:03:40 | 20,908,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,323 | py | #!/usr/bin/env python
#
# Copyright 2010 The Closure Linter Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#... | [
"aaren.cordova@demandmedia.com"
] | aaren.cordova@demandmedia.com |
530fe8d77ce4622a1d97b4e820ba312ea94d142f | ca25fa25d7b936d46975a3463bf81ea4c07daa7b | /myvenv/lib/python3.7/site-packages/chartjs/views/pie.py | 65bce86be48e5aca7d89f158a781be9a82ba7c11 | [
"MIT"
] | permissive | lasher85/AirCheck | 25b870a280d6681642350e3872a24a8f135069d2 | 52b2f78c7d797999df4952b1bcac9f7d2c12b42c | refs/heads/master | 2022-05-03T15:52:23.574362 | 2019-07-12T16:53:31 | 2019-07-12T16:53:31 | 196,597,675 | 0 | 0 | MIT | 2022-04-22T21:52:24 | 2019-07-12T14:56:05 | Python | UTF-8 | Python | false | false | 924 | py | from . import HighChartsView
class HighChartPieView(HighChartsView):
def get_context_data(self, **kwargs):
data = super(HighChartPieView, self).get_context_data(**kwargs)
data['series'] = self.get_series()
return data
def get_series(self):
series = super(HighChartPieView, sel... | [
"lasher85@gmail.com"
] | lasher85@gmail.com |
6d2611fe31d3a15dbde4884f4dcd16f59a19f9db | 2664d89b460c53d1e56e2ac4123bf149c51bf1fb | /accounts/migrations/0022_auto_20200419_0744.py | 8d090500f789ea7246a84359c878ac8e586a0fa0 | [] | no_license | jmvillegasjr/Tuffy-Library-Management-System | 7ec1bc5a778e8a31e5405456a40316a03cfe780f | ab6f3a676e647aa90317885465bc21e71b87bdcd | refs/heads/master | 2023-01-06T11:24:45.573841 | 2020-10-14T05:39:24 | 2020-10-14T05:39:24 | 303,908,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,670 | py | # Generated by Django 3.0 on 2020-04-19 07:44
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('accounts', '0021_auto_20200414_0006'),
]
operations = [
migrations.CreateModel(
name='IssueOrder'... | [
"58552487+jmvillegasjr@users.noreply.github.com"
] | 58552487+jmvillegasjr@users.noreply.github.com |
194577f9c7fa24cccb61ff28186440bd3dbb1c36 | e2de8e9d819d1dda25da7083eb6c26ec6364d796 | /me/urls.py | a5ad87014a4f1ebbf6f02cd6cb1aceaccac246af | [] | no_license | losh1/django_blog | e677e999b06c6c93254549cd075aaedf9790480d | a7ee44af7436e076a9dc0fd6ab87ee7007097935 | refs/heads/master | 2021-01-20T20:21:07.659252 | 2016-08-05T02:40:25 | 2016-08-05T02:40:25 | 64,943,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 814 | py | """me URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based vi... | [
"patokalosh@gmail.com"
] | patokalosh@gmail.com |
b7620b9604af7465bdcd1f9a1d2439bb39b84b3f | a431804e091bd9b110b90e542af5ee433f4a7a64 | /calc-2/arithmetic.py | 64f3e3e4c97b7b69cd1ca42637382f61789a3a86 | [] | no_license | ErikaAzabache/hackbright-lessons | 77cf3869ccefc4eed15717fcb8cdc8324ea3e712 | 1f0ce38fa46c30012f5add141f173e058ab0c438 | refs/heads/master | 2021-01-23T03:34:11.025843 | 2017-03-24T17:41:50 | 2017-03-24T17:41:50 | 86,094,325 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,142 | py | def add(list_o_nums):
answer = 0
for num in list_o_nums:
answer += num
return answer
def subtract(list_o_nums):
answer = list_o_nums[0]
for num in list_o_nums[1:]:
answer -= num
return answer
def multiply(list_o_nums):
answer = 1
for num in list_o_nums:
answer... | [
"erika@doravel.me"
] | erika@doravel.me |
34fd3a4d47ceb40a08144bd8450f24f59c31cc6f | d2bc43b1c029f18226cd77440de1dad574c19499 | /mvn/models/v2v_net.py | a8adb2cd5488f58cc88104f5733eea2b51940777 | [] | no_license | TrendingTechnology/ContextPose-PyTorch-release | 5552bfcf1866200fbb416786f3a1837c096466bd | 3057e71e49860e701373e788d9cbecde82240052 | refs/heads/master | 2023-04-18T12:40:57.003850 | 2021-04-30T15:30:06 | 2021-04-30T15:30:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,013 | py | # Reference: https://github.com/dragonbook/V2V-PoseNet-pytorch
import torch
import torch.nn as nn
import torch.nn.functional as F
from .attention_conv_layer import AttentionConv3D
import argparse
from torch.nn.parallel import DistributedDataParallel
import os
class Basic3DBlock(nn.Module):
def __init__... | [
"maxiaoxuan@pku.edu.cn"
] | maxiaoxuan@pku.edu.cn |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.