blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9cbf92bcd66291c9f8ba2ec9fc26d46465e85b7c | 149d7c1312b8fdd04be2a1550302853599891276 | /shadowsocks/utils.py | 31c427a5c753d8049d356d274717948a0ebe4095 | [
"Apache-2.0"
] | permissive | jaylon-valoroso/sss-valor | 750c44b4236150e7fb145a60b73b622cafc6c9db | 7997696fbf8b11051caaa78fbe3ab7adb65ed3db | refs/heads/master | 2020-03-24T20:27:51.613507 | 2018-08-01T07:49:02 | 2018-08-01T07:49:02 | 142,979,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,246 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2015 clowwindy
#
# 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 b... | [
"jaylon.cheng@valorosoltd.com"
] | jaylon.cheng@valorosoltd.com |
88515e3139b985720606d7cb5eea30c1eadba8ea | 5cf4d4c29f4e7848a0eb3f6f542e7b28abbd1814 | /ramulator-NVMain/MemControl/BEAR/SConscript | c3981c6484cb5b40bcfc6f5fe935031d6adda22e | [] | no_license | xiaosanxian/ramulator-NVMain | d2cd34c974ff546f2d513c2e9c66840cdbefb5a5 | dca6bdf6407b81c7e1b708f245a7a9742d7ec248 | refs/heads/master | 2021-06-14T11:14:44.842935 | 2017-03-31T03:23:27 | 2017-03-31T03:23:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,985 | # Copyright (c) 2012-2013, The Microsystems Design Labratory (MDL)
# Department of Computer Science and Engineering, The Pennsylvania State University
# All rights reserved.
#
# This source code is part of NVMain - A cycle accurate timing, bit accurate
# energy simulator for both volatile (e.g., DRAM) and non-volatile... | [
"1902552434@qq.com"
] | 1902552434@qq.com | |
f0dc05a9822af19ce717dfe2a66cfb5333836437 | 1da58342267e4e1a1200fd1fa2e5483f0bcde56c | /Rezolvari-Laboratoare/Laborator_5/Problema_4.py | 2720f1bf2b73f42fc5d124109ddf49b4eb83daa4 | [] | no_license | FlorescuMiruna/PA-Labs-Python | 1738432769d66a8a8d5f9f9b95eeedbd138e2e41 | 1454a037377c99e13f4564d6e46fdc02a2f0cdde | refs/heads/main | 2023-03-25T10:55:48.303240 | 2021-03-20T13:21:27 | 2021-03-20T13:21:27 | 349,728,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | f = open("bani.txt")
monede = f.readline()
monede = [int(x) for x in monede.split()]
moede = monede.reverse()
suma = int(f.readline())
sir = str(suma) + " = "
indice = 0
plata = []
while suma != 0:
moneda = monede[indice]
nr = 0
while suma - monede[indice] >= 0:
suma -= monede[indi... | [
"noreply@github.com"
] | FlorescuMiruna.noreply@github.com |
99e182cd90fbca4d0b157953b735f008f9d6a1d8 | 8be4b123cb12dfa852857d9df756c74365980168 | /douban/douban/spiders/minyao.py | 69c7ae9a945d7f2ae92b0abfa85664d30acc0175 | [] | no_license | tongwenfeng/scrapy | 56dc4e38aabeb3ed4445493e361cb3db51b0c1c9 | 351f832ae06735801403d885b73da26151a5e6b9 | refs/heads/master | 2020-03-28T18:54:34.669396 | 2014-03-20T03:31:53 | 2014-03-20T03:31:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,576 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
import re
import json
import pymongo
from scrapy.contrib.spiders import CrawlSpider, Rule
from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor as sle
from scrapy.selector import HtmlXPathSelector
from scrapy.http import Request
from douban.items import Dou... | [
"iie@ubuntu.ubuntu-domain"
] | iie@ubuntu.ubuntu-domain |
70d959fa5f6f46528ac3299453bc740ddffdd677 | 5ead41be5c8086fcdd68e5ce0f397eab0ac4e5f1 | /CSCI-University of Minnesota Work/UMN-1133/Labs/selectionSort.py | 1c3262dded447a4071aa784bf49683faae92899e | [] | no_license | jkelly37/Jack-kelly-portfolio | 5ddc1dc510950b5f60c2db4bbf83f6ba66fba743 | d77bc68382d319cb5cc251704e4b78528fe48cc3 | refs/heads/master | 2020-08-03T00:12:38.010069 | 2019-09-28T20:57:57 | 2019-09-28T20:57:57 | 211,557,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | def main():
intstring = input("enter list of integers with spaces inbetween:").replace(" ","")
intList = [0] * len(intstring)
p = 0
while p<len(intstring):
intList[p] = int(intstring[p])
p = p+1
for i in range(len(intstring)):
min = i
for j in range(i+1, len(intL... | [
"kell2425@umn.edu"
] | kell2425@umn.edu |
1a0ee41c37a828d819fde744e632bb8c99a5d50b | eb762d14de67a355442ff81b6c4ba82e4c8ea847 | /app/services/slack/tests/main/conftest.py | 7285b7cef6311fc7684a56ecac2ef5fe88be2d6a | [] | no_license | klapcsik/aws-sns-to-slack | d1074f47a1b093ff1065121355fa3551016b5909 | c1f8e9360d34225029d140631cf90cc10dbfc91c | refs/heads/main | 2023-06-26T09:03:24.619711 | 2021-07-13T10:51:34 | 2021-07-13T10:51:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | import os
def pytest_sessionstart(session):
"""
Called after the Session object has been created and
before performing collection and entering the run test loop.
"""
os.environ['SLACK_HOOK_URL'] = ''
| [
"tomerlevi1983@gmail.com"
] | tomerlevi1983@gmail.com |
2608ee5e6792179976939c1be55b154390218004 | b22205aa21ac51c7b14dfaab556eea1f8902a922 | /bin/foamEnsightSeries.py | 01d2f508c95d5486890b9bdce863d8a4e78b81d5 | [] | no_license | ewquon/pylib | a1c6a64a0127c5078e19f190ec252ccd00b5035e | c34afb2a13fc0075f95a43bac99219b25b3984a2 | refs/heads/master | 2023-07-12T11:32:31.671093 | 2023-06-21T15:59:15 | 2023-06-21T15:59:15 | 41,262,844 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,037 | py | #!/usr/bin/env python
#
# Create symbolic links for specified directories to form a single Ensight .case
# file with the complete time series
#
from __future__ import print_function
import sys
import os
import glob
import numpy as np
# HARD CODE INPUTS FOR NOW
prefixMeshFile = '_U.mesh'
prefixSolnFile = '_U.000.U'
pre... | [
"eliot.quon@nrel.gov"
] | eliot.quon@nrel.gov |
8804b3bdb95212c5305df70bde327009eef115c8 | 5ebfced62f59052560c6adf89bfd2f249877cc75 | /webcomics/comments/forms.py | de875c024ad559e011a4e79c4027de7216f51378 | [] | no_license | lumenwrites/webcomics | 537c9bd0337ebd087dacdee7b72797b658481f8c | 34200eaf19021147c561bf140a685e398156589e | refs/heads/master | 2021-06-10T17:12:50.317113 | 2017-02-19T09:28:57 | 2017-02-19T09:28:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | from django.forms import ModelForm
from django import forms
from .models import Comment
class CommentForm(ModelForm):
class Meta:
model = Comment
fields = ['body']
| [
"raymestalez@gmail.com"
] | raymestalez@gmail.com |
9ed0e03a0c054036f454866ea42cdc8cc1220f3a | df42a3fbc9e6f5702d0da7fc9e859e9ff163a456 | /petstagram/accounts/forms.py | c12d1f25bfa151fe89dc93334a5785a45a3e71fa | [] | no_license | RadkaValkova/Petstagram-application | c4ef007f42329d4587b814d4a898a1fbfe4c8450 | 1e930d7fdbe9fa0a0d7a9b4e002bcab7edcfe40c | refs/heads/main | 2023-06-18T19:23:46.845318 | 2021-07-20T16:24:53 | 2021-07-20T16:24:53 | 386,993,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 826 | py | from django import forms
from django.contrib.auth import authenticate, get_user_model
from django.contrib.auth.forms import AuthenticationForm, UserCreationForm
from django.core.exceptions import ValidationError
UserModel = get_user_model()
class LoginForm(forms.Form):
user = None
email = forms.EmailField(
... | [
"76747070+RadkaValkova@users.noreply.github.com"
] | 76747070+RadkaValkova@users.noreply.github.com |
7a4e4ebbcd27cd8101a911cc5ab7a990485e1878 | 17f0874efc711c11108b110519d9912804b08a11 | /tf3d/layers/sparse_voxel_hourglass.py | 63911f34d73c856bf2211f556eb010309571ff6f | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | HuiBinR/google-research | d7b2ea82cfda230084cf1c4adddab1452b4a87a0 | 02f86fec9c8d343f645299c7be78533355608d51 | refs/heads/master | 2023-01-28T11:36:28.441552 | 2020-12-03T19:42:45 | 2020-12-03T19:50:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,489 | py | # coding=utf-8
# Copyright 2020 The Google Research 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 applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
2ae99a0805b0ac0482001efbc1e402cc7d2beee8 | 982324b6228f82ed01951b52df5b2813909f4cad | /athlete_sort/athlete_sort.py | 3485a8890b173195bed7486b59aaa4ab63654c64 | [] | no_license | ndina/Hackerrank-Python | 5f14bae9f570978a860d489bc556f54a111e81d6 | e8e9ea62f8cb04cf6997b126d66eafede8d6a645 | refs/heads/master | 2020-05-31T10:36:34.158818 | 2019-06-09T23:46:45 | 2019-06-09T23:46:45 | 190,244,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | table = list(map(int, input().split()))
arr = list()
for i in range(table[0]):
arr.append(list(map(int, input().split())))
k = int(input())
sorte = sorted(arr, key=lambda record: record[k])
for i in sorte:
print(*i)
#30pt | [
"dbom12360@gmail.com"
] | dbom12360@gmail.com |
b71cf5e234217b3fdabdeaea5c732b0fb43cfd03 | a1e00921dba2a1ebb572407e935a3c884e9ea83a | /scratch/day0_scratch.py | 47a54cc1ebd215a6ee703b97f6d1f568612f119a | [
"MIT"
] | permissive | notsambeck/civicu-machine-learning | bef2a876714b3d7ba27fa0de2af432330183adaa | 591f241ed420f26292cae0241a38e07604ce7ef3 | refs/heads/master | 2021-07-23T01:21:25.536000 | 2017-11-03T01:17:56 | 2017-11-03T01:17:56 | 104,957,122 | 0 | 0 | null | 2017-09-27T01:35:22 | 2017-09-27T01:35:22 | null | UTF-8 | Python | false | false | 3,319 | py | ''' assignment for Thursday:
use height and weight as independent variables to predict gender
(inluding logistic regression function for genders)
'''
import pandas as pd
import matplotlib.pyplot as plt
from sklearn.linear_model import LinearRegression, LogisticRegression
df = pd.read_csv('lessons/shared-resources/heig... | [
"thesamuelbeck@gmail.com"
] | thesamuelbeck@gmail.com |
4b1cf36c4b7da5c518e8e2275a09cc77dc696c63 | 4d220dfc5482f822ae08410e0f92e9335a1f22c1 | /leetcode_china/company/demo4.py | 65e736b4f5dddfb98b5afe30d9d33b53ddeb69f3 | [] | no_license | DaiJitao/algorithm | 8539441cc2d70abdd0de025c16ba2a197b770db0 | 2a4b1f8fe54308ef2818c4baf0284bc00ff382a9 | refs/heads/master | 2023-05-26T03:44:07.701094 | 2023-05-23T08:53:46 | 2023-05-23T08:53:46 | 209,712,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 903 | py | from typing import List, Optional
"""
对一个有n个元素的数组,求最大的连续子数组的和,并求其开始、结束下标。
数组的元素必然有正数也有负数才有意义,如果全是正数,那最大的子数组就是本身;如果全部为负数,应该是一个最大的元素。
"""
def demo(nums):
if nums is None or len(nums) == 1:
return None if nums is None else nums[0]
n = len(nums)
temp = 0
maxp = 0
startIndex = 0
endIndex =... | [
"976185561@qq.com"
] | 976185561@qq.com |
dadcb76a3882141c9c96fdca9eba067550e22da8 | 55678fed60529ff04c5559fe909a1175223c21d5 | /median.py | 7a5482a2059f687c26bcd5bb5722e3f9f2c7cf2f | [] | no_license | MrIndia9211/C-104 | 999cba81f0492c6bf37e45f95dbe40f4154139c4 | 9970ed6236a78f8b8a4ac00eac9d85fccc2c8a59 | refs/heads/main | 2023-08-15T15:46:01.047223 | 2021-09-29T10:26:05 | 2021-09-29T10:26:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | import csv
with open ('height-weight.csv',newline='') as f:
reader=csv.reader(f)
file_data=list(reader)
file_data.pop(0)
new_data=[]
for i in range(len(file_data)):
num=file_data[i][1]
new_data.append(float(num))
n=len(new_data)
new_data.sort()
if n % 2 == 0 :
median1 =float(new... | [
"noreply@github.com"
] | MrIndia9211.noreply@github.com |
341ecc567eb26f00c94c4a007afaf4024e338d91 | c6e7bcdf0d111666a9f3e63b66c11d6f2f4013dc | /run.py | 2c66e36a88edcce200a00850d209b1aec02d9205 | [] | no_license | samo1petar/segmentator | 75c54c26be4a3b830583ff7d2d7a0f257a13a5df | 5c65c620bb56aa6e3f57617415b6710f0c4cebe9 | refs/heads/master | 2023-05-26T18:56:13.767391 | 2022-06-26T19:16:25 | 2022-06-26T19:16:25 | 297,342,236 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,431 | py | import argparse
from params import Definition, params
# from lib.execution.eval import eval
from lib.execution.train import train
def run():
parser = argparse.ArgumentParser()
parser.add_argument(
'--mode',
dest = 'mode',
type = str,
default = 'train',
help = '... | [
"pero356@gmail.com"
] | pero356@gmail.com |
5e30f00d471b8de960a34c14da5f963b3033d2a4 | bc24adb2c6c0fd4f540b76552bbe0c61a3f496ce | /django_project/blog/urls.py | e1d81b61e872db726c07e7e23a4d369f42282f95 | [] | no_license | stefank-29/BlogApp-Django | 86e95343aae315a7ec3d9329941847ccadcdaec3 | 1f220d3f0ad3f21c6e2c31de3496438ebe43f071 | refs/heads/master | 2023-05-23T00:24:33.154694 | 2021-06-10T17:27:21 | 2021-06-10T17:27:21 | 321,454,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 741 | py | from django.urls import path
from .views import BlogListView, BlogDetailView, BlogCreateView, BlogUpdateView, BlogDeleteView, MyBlogsListView
from . import views
urlpatterns = [
path('', BlogListView.as_view(), name='blog-home'),
path('blogs/', BlogListView.as_view(), name='blog-blogs'),
path('myblogs/', M... | [
"stefankaraferovic@gmail.com"
] | stefankaraferovic@gmail.com |
b02e8ecc999de4688439cb589adba563cbf01b41 | f51bf78ebea69a0b125a68b427aa7b30b3d4549c | /crawl_web_completed.py | 55c7fdb98cbff2207b88037be0df0242a8f1a162 | [] | no_license | ariakerstein/Python-Udacity | 9b8449599be2d6e0b232f73b08a34db7a2f614ac | b182072a2734b83e6562be0ff7188ba6e99a737e | refs/heads/master | 2020-06-30T04:13:36.514688 | 2015-01-11T18:35:03 | 2015-01-11T18:35:03 | 29,083,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | def crawl_web(seed):
tocrawl = [seed]
crawled = []
index = []
while tocrawl:
page = tocrawl.pop()
if page not in crawled:
add_page_to_index(index, page, content)
union(tocrawl,get_all_links(content))
crawled.append(page)
return index | [
"ariakerstein@gmail.com"
] | ariakerstein@gmail.com |
7f6c1d3c8cd6dd1ea150b48f282f0596da323d94 | d5572ae1dace6ffad6c7aed6152cc329869a89b3 | /similar_recommend/output.py | 0a53aeb3f777a176584345791be7dba79c78e80b | [] | no_license | pxl-a/position_recommend | 26125d73a62513bcb8da1a4049f5f2acdd1a8e89 | 33b4c1223c9193b263aaf1e9a108d5e66d992680 | refs/heads/master | 2022-03-08T05:03:47.165391 | 2019-03-07T12:45:58 | 2019-03-07T12:45:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 603 | py | from mysql import mysql
from similar_recommend import similar_recommend
import re
import jieba
import logging
from gensim import corpora, models, similarities
# sql = mysql()
#str = ""
# results = sql .work_experience_require("3-5年")
# results1 = sql.edu_background_require("博士",results)
#
# for r in results1:
# pri... | [
"email@example.com"
] | email@example.com |
3543dd7f06a8d0e28deb512c2d25605c0c3ff766 | c0239d75a8199ec84ad683f945c21785c1b59386 | /dingtalk/api/rest/OapiServiceActivateSuiteRequest.py | eae5a257d0d9438a61cc25e1207617c492821574 | [] | no_license | luss613/oauth_dingtalk | 9f253a75ce914c577dbabfb84e97fd883e80e04b | 1e2554642d2b16c642a031670d08efa4a74e8252 | refs/heads/master | 2023-04-23T01:16:33.450821 | 2020-06-18T08:22:57 | 2020-06-18T08:22:57 | 264,966,287 | 1 | 1 | null | 2020-06-18T08:31:24 | 2020-05-18T14:33:25 | Python | UTF-8 | Python | false | false | 397 | py | '''
Created by auto_sdk on 2018.07.25
'''
from dingtalk.api.base import RestApi
class OapiServiceActivateSuiteRequest(RestApi):
def __init__(self,url=None):
RestApi.__init__(self,url)
self.auth_corpid = None
self.permanent_code = None
self.suite_key = None
def getHttpMethod(self):
return 'POST'... | [
"paul.lu@belstar.com.cn"
] | paul.lu@belstar.com.cn |
e94b263df58a78ccd663c7420fea1827788a8a8a | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/224/users/4354/codes/1650_869.py | 0e425860e6f08d42daa86b93734dc4dfbb96f754 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | # Teste seu código aos poucos.
# Não teste tudo no final, pois fica mais difícil de identificar erros.
# Use as mensagens de erro para corrigir seu código.
preco = float(input("digite o preco: "))
| [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
fc75db4a0b8955e7775a7532d067773d13501111 | c27b02ece1348d2f504baeb1b9c15fc3fc693bd8 | /src/models/championship.py | fd0b22b446bd5d322a8f50c5912241df5be604b7 | [] | no_license | jfly/cubingusa-org | 60b7119b6f52d2ad6732f83dc2d123cb3277c616 | f843cae7a30ec5f39d93519f965a3a18b352107f | refs/heads/master | 2021-09-02T05:45:01.251015 | 2017-12-30T20:51:03 | 2017-12-30T20:51:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | from google.appengine.ext import ndb
from src.models.region import Region
from src.models.state import State
from src.models.wca.competition import Competition
class Championship(ndb.Model):
national_championship = ndb.BooleanProperty()
region = ndb.KeyProperty(kind=Region)
state = ndb.KeyProperty(kind=State)
... | [
"timbreynolds@gmail.com"
] | timbreynolds@gmail.com |
7ba855193a81c0a99787d5bdf4a164e27fb6267e | 5fe8ecd17245782838c836560139380de3b8f947 | /cf/practice/471b.py | a270ff07ef90698fe565c226d2ae2fc98583801c | [] | no_license | pyramidsnail/practice | 2ac48ec6fac45c39b3eb52b08910daca1a6fccec | de33ed00c74574941a27fc0495fa9fe8b0a79b67 | refs/heads/master | 2020-04-06T04:00:36.038416 | 2015-02-05T15:04:30 | 2015-02-05T15:04:30 | 15,498,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 604 | py | import math
n = int(raw_input())
h = [int(x) for x in raw_input().split()]
total = 1
for a in set(h):
total *= math.factorial(h.count(a))
if total<3:
print 'NO'
exit()
task = sorted((h[i],i) for i in xrange(n))
para = []
for i in xrange(n-1):
if task[i][0]==task[i+1][0]:
para.append(i)
print... | [
"wangli@tbi-hm01.inet.dkfz-heidelberg.de"
] | wangli@tbi-hm01.inet.dkfz-heidelberg.de |
446a073387f469521c65d83a2a44564de2ecdf9f | f8757ad3e70d9a85cdb70d5059b06fcfaa2f23db | /parser/parser_oggetti&distrutti_2.1.py | e50bb03a55ad2da055ca4d2a9b1c70e97d62e409 | [] | no_license | LG965/1LifeCampaign | 63282f292a840593b8ccce3aeece641b5959ddf9 | 27da72cc8ae2899ff398747d7637fc337c0f5368 | refs/heads/master | 2023-05-03T00:55:59.226366 | 2021-05-09T17:36:28 | 2021-05-09T17:36:28 | 362,393,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,627 | py | # legge il log di missione e restituisce tre file txt contenenti tutti gli oggetti.txt e gli oggetti_distrutti.txt
import os.path
import re
print("#################################################################################################################\n")
print("Inserisci il nome del file es: missionReport(20... | [
"ellegi965@gmail.com"
] | ellegi965@gmail.com |
31423afd7843125e573616a7df9b3fa38287ee1f | b782e5ae244003c2c3539353147ffb8d8c2363e1 | /lib/gazpacho/uimstate.py | ce1a6f8039b6c432df85eff19cb5ede3ce320da2 | [] | no_license | dsaran/packagehelper | 5e75c364b0c571737fcd5cfc6349891513378c55 | 516784f6891a99a92285314797dc12b721bceba0 | refs/heads/master | 2020-05-07T15:45:03.023492 | 2013-06-20T19:27:20 | 2013-06-20T19:27:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,529 | py | import gettext
import gtk
from gazpacho.app.bars import bar_manager
from gazpacho.clipboard import clipboard
from gazpacho.commandmanager import command_manager
from gazpacho.constants import STOCK_SIZEGROUP
from gazpacho.placeholder import Placeholder
from gazpacho.sizegroupeditor import add_sizegroup_gadgets
from g... | [
"danielsaran@gmail.com"
] | danielsaran@gmail.com |
54761c345cc041913fea12ff29f09b94c6270005 | dd7c7f19d1599669dd39af3e9b6e2bd198ad4ed4 | /backend/blockchain/blockchain.py | 4961a46770cdda2d7aa31e97554aa30c9cf49596 | [] | no_license | komfysach/komfykrypto-pychain | 46fe47d337ba6aff804f6c810cebeb94e15578d4 | 119c3978b819d8def705f7d35074b9334c596770 | refs/heads/main | 2023-05-06T13:30:40.344383 | 2021-05-24T09:30:21 | 2021-05-24T09:30:21 | 370,708,574 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,453 | py | from backend.wallet.wallet import Wallet
from backend.config import MINING_REWARD_INPUT
from backend.wallet.transactions import Transaction
from backend.blockchain.block import Block
class Blockchain:
"""
Blockchain: a public ledger of transactions
Implemented as a list of blocks - data sets of transaction... | [
"sach@getkomfy.net"
] | sach@getkomfy.net |
a2806a04afe0d4b965ba15eb778367f7a0bf8841 | 49296c69348c743f234807ff6390687079b6b5d9 | /client/server_lib/omero_model_Line_ice.py | 174821e4ec0c8ea8913b5a645fd4f9e0041c9605 | [] | no_license | crs4/omero.biobank-docker | 2cb4b00f37115916d5b140cbdaf24c12bd8be9ef | e332a6eccad44384cd6a3a12e6da17eb89a6cd96 | refs/heads/master | 2023-09-02T04:36:21.401597 | 2014-12-07T17:34:27 | 2014-12-07T17:34:27 | 26,125,831 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,746 | py | # **********************************************************************
#
# Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved.
#
# This copy of Ice is licensed to you under the terms described in the
# ICE_LICENSE file included in this distribution.
#
# ***********************************************************... | [
"gmauro@crs4.it"
] | gmauro@crs4.it |
15ea9a03ffec118e4fc925a147ce04b0a8945cfa | a9a16c414d7370b2ca6442b8125d6b6f9b3d6556 | /chapter_16_Exam_Statistics/08_Standard_Deviation.py | 118eb2847f27737167f15d03010d0d0c460c5020 | [] | no_license | dennisnderitu254/CodeCademy-Py | 99f1cb9fa011f1586d543650c5001de17f04b8b2 | 758067dc53fdb442ab18dd922dacd13cc8846ebb | refs/heads/master | 2021-07-12T10:01:58.854222 | 2017-10-12T20:03:56 | 2017-10-12T20:03:56 | 106,739,488 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | grades = [100, 100, 90, 40, 80, 100, 85, 70, 90, 65, 90, 85, 50.5]
def print_grades(grades):
for grade in grades:
print grade
def grades_sum(grades):
total = 0
for grade in grades:
total += grade
return total
def grades_average(grades):
sum_of_grades = grades_sum(grades)
avera... | [
"dknderitu@gmail.com"
] | dknderitu@gmail.com |
2b37b81ae2ee016f14e0faf33e65a896113b51bb | 5a91ebb01e3eab6e9851789e15a37731b2d8c051 | /DjangoPracticeProject-master/mysite_2/article/migrations/0004_comment.py | 83dc6de72baaf6be2c9e5e6d605e70fe7471ee83 | [] | no_license | jianzonggaoshou/python_book_code | 463a16918ea1699fb5bd29c5c8e822ca6a74f894 | f31ab1a031c7eace2c29f5ced93f070e513d27d2 | refs/heads/master | 2021-06-17T02:47:20.206413 | 2019-07-07T03:23:44 | 2019-07-07T03:23:44 | 191,194,290 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 892 | py | # Generated by Django 2.2 on 2018-12-13 06:56
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('article', '0003_auto_20181213_1335'),
]
operations = [
migrations.CreateModel(
name='Comment',
... | [
"xuzhen0913@163.com"
] | xuzhen0913@163.com |
98b926ea45f3575cfe9161a65a10d6b73fb0c7c1 | 3376f2dfa3be8bad53f1fa4d36de94bbc997765a | /sgt_test.py | c3336f423c84f676d1404dfe99b1858d8edf9b7c | [] | no_license | mvlvrd/smoothing | 59f1aff9567a105194cdb653c7fe6972c9af0c6b | 211c05f2623a54633da1efdff75aa263036804f7 | refs/heads/master | 2020-03-28T21:10:13.235574 | 2018-06-02T14:46:31 | 2018-09-17T14:02:41 | 129,372,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 709 | py | from smoothing import simple_good_turing
def _isclose(a, b, rel_tol=1e-09, abs_tol=0.0):
return abs(a-b) <= max(rel_tol * max(abs(a), abs(b)), abs_tol)
def test_file(fileName):
in_dict = {}
word = 0
with open(fileName, "r") as inFile:
for line in inFile:
r, n_r = [int(_) for _ in l... | [
"manolo.valverde@gmail.com"
] | manolo.valverde@gmail.com |
f5fbef25f2ef941a32b9b89b6c2cfa9eb46bb066 | ba699e4fa14cc8ef62db21647df7c8dce66c03e9 | /tests/scheduler/instructions/test_repeat.py | 930bcba26aafb02cfd9b94998941fcf771c73d10 | [] | no_license | mattconway1984/pluto | d089da44fbea4b62ac21cbc74f0464292033ff07 | 3752360a37fc168995c5906a2a92a2c8182e8bfd | refs/heads/master | 2020-06-13T13:46:56.453916 | 2020-03-11T11:07:29 | 2020-03-11T11:07:29 | 161,771,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,335 | py | """
Unit tests for the Repeat instruction
"""
#pylint:disable=missing-docstring
#pylint: disable=no-self-use
from unittest import TestCase
from unittest.mock import MagicMock
from time import sleep
from time import time as timenow
from fake_instruction import FakeInstruction, SillyError
from pluto.exceptions.excepti... | [
"matthew.conway@owlstone.co.uk"
] | matthew.conway@owlstone.co.uk |
ab66a7260154732cfdde6a27b5af3b653c0cda52 | fcfb225ccaaef5e6312cad278320de1b19aa1dfd | /samples/client/petstore/python/test/test_category.py | 793fbdf41b053abb4bfd2a8c388bfc8afba22a8d | [
"Apache-2.0"
] | permissive | PrinceMerluza/swagger-codegen | 2346df19c64ef358374c37036c67b930fa0e4b81 | 45c14614f261d020b6b1c10e8620a9f48a72700f | refs/heads/master | 2023-09-01T20:06:21.448932 | 2021-05-11T08:31:59 | 2021-05-11T08:31:59 | 355,461,876 | 1 | 0 | NOASSERTION | 2023-09-13T17:10:02 | 2021-04-07T08:04:06 | null | UTF-8 | Python | false | false | 1,197 | py | # coding: utf-8
"""
Copyright 2016 SmartBear Software
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable l... | [
"scott.rw93@gmail.com"
] | scott.rw93@gmail.com |
0d64a0f3deba73b241e73e5880aff279501f72f7 | 202d1d737233eb1aa37cee07d76fc1804df1252d | /models/vgg.py | 4c29d3bd4a9701c9614e9bad978f6d82b992a2f3 | [
"MIT"
] | permissive | bityangke/2D-kinectics | d116688e243f6da2fd839aaf118b0b84d202de5e | 2ac4241b05ba34d3e182ea7b451a1a7a520a6028 | refs/heads/master | 2021-05-06T01:34:04.779115 | 2017-12-13T13:56:00 | 2017-12-13T13:56:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,513 | py | """
Copyright (c) 2017, Gurkirt Singh
This code and is available
under the terms of MIT License provided in LICENSE.
Please retain this notice and LICENSE if you use
this file (or any portion of it) in your project.
---------------------------------------------------------
Purpose of this ... | [
"guru094@gmail.com"
] | guru094@gmail.com |
06b808e1cc46921c2b2f8f31cc8fc08b130c7b6e | 9720714621636c2ef30d99427d3e99cad591d7fb | /Trabajos/deletrador.py | 14d059250c8a953b567cd3923c08d37cd6f674f5 | [] | no_license | diegonavarrosanz1/1evaluacion | dbacabbdd887f8b62dfccc962bcd2393000ccb5b | 285465da8b27f71a75867349f36ed600c74e529a | refs/heads/master | 2021-08-20T05:59:26.183350 | 2017-11-28T10:51:36 | 2017-11-28T10:51:36 | 111,536,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | def deletrador():
nombre= raw_input("dime una palabra")
print "la palabra tiene", len(nombre), "letras"
vocales=u
for cont in range (0,len(nombre),1):
if nombre[cont]=='a'or nombre[cont]=='e'or nombre[cont]=='i'or nombre[cont]=='o'or nombre[cont]=='u':
vocales= vocales+1
p... | [
"noreply@github.com"
] | diegonavarrosanz1.noreply@github.com |
62578354b1389fd4459c0cc9d9e9b69928c37080 | 1f42df2bc6f7f6a67e4253b200af779602d9f83d | /mymap/serializers.py | 9e0ec8b79384c6fa0efccc104b3c22a30bbe26d8 | [] | no_license | JingshiPeter/B512 | 812edae7395608b125d26c8c73565ca1fb98503c | 86a97ad3307f30aa32cb16a530bdc7278f7b71a7 | refs/heads/master | 2016-09-15T12:45:18.159134 | 2015-12-01T11:59:45 | 2015-12-01T11:59:45 | 44,842,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,519 | py | from rest_framework import serializers
from django.contrib.auth.models import User
from mymap.models import Customer, Order
class CustomerSerializer(serializers.HyperlinkedModelSerializer):
owner= serializers.ReadOnlyField(source='owner.username')
owner_id= serializers.ReadOnlyField(source='owner.id')
# ow... | [
"hanzi@utexas.edu"
] | hanzi@utexas.edu |
b4dce8f7776b27512b6d77626d6b3c06b1e117aa | d2b3af2914bcf5fa4c9b6a2a97af99c8dab5380c | /dqclibs/libs/libcint/testsuite/test_3c2e.py | 0a8bd0578e87d0044f2adb9e6833e299b6a4c50a | [
"GPL-1.0-or-later",
"GPL-3.0-only",
"BSD-2-Clause",
"Apache-2.0"
] | permissive | diffqc/dqclibs | 291044a96077b8b936bec584d9e19a7cb677c43f | 6b0b2311217129f7d65190cab74557d01f974560 | refs/heads/main | 2023-07-15T16:39:13.051478 | 2023-06-27T14:50:35 | 2023-06-27T14:50:35 | 374,606,696 | 0 | 2 | Apache-2.0 | 2023-06-27T14:50:37 | 2021-06-07T09:22:16 | C | UTF-8 | Python | false | false | 9,957 | py | #!/usr/bin/env python
# $Id$
# -*- coding: utf-8
from __future__ import print_function
'''
test libcint
'''
__author__ = "Qiming Sun <osirpt.sun@gmail.com>"
import sys
import os
import ctypes
import numpy
_cint = numpy.ctypeslib.load_library('libcint', '.')
PTR_LIGHT_SPEED = 0
PTR_COMMON_ORIG = 1
PTR_SHIELD... | [
"firman.kasim@gmail.com"
] | firman.kasim@gmail.com |
0707541654c4db1973b921facf3cb8fe979f8f29 | 9fc80c5a9521c0b95dfbd96f8d0ee7dfe9959a5b | /hermes.py | 0ada278e8587efd9258aefa43e3ea5b7aee24455 | [
"MIT"
] | permissive | vihanchaudhry/hermes | e444a6b33971a5381ee51b077d4dbb57bbe00c67 | 87ffd6867a0a4ab64738fee68ab2e8cd35d61428 | refs/heads/master | 2021-01-18T09:55:57.188526 | 2016-03-05T06:39:41 | 2016-03-05T06:39:41 | 52,680,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | from run import app
from utils import geo
from utils import lyft
# get ArcGIS API token
arcgis_token = geo.get_token()
# geocode address - get address from frontend
locations = geo.geocode(arcgis_token, "Empire State Building")
# get 2-legged lyft token
lyft_public_token = lyft.get_public_token()
# get cost and ETA... | [
"vihanchaudhry@gmail.com"
] | vihanchaudhry@gmail.com |
eb57ae2ffaf8eead62cb3066e056d86e4847ff16 | 09605a517c51f9538c6b6132e1fc95a57944ba8c | /src/flask_rest/models.py | 0ae62c222d84446a05939dbcef22c77e1c003995 | [] | no_license | alex-pro27/flask-rest | d27272c0eae527da7470e8b43b98ef828c1265f3 | 711ed2b3600a10a2b37f2e5867a61fc10908f462 | refs/heads/master | 2020-04-18T08:47:52.854494 | 2019-01-24T17:37:07 | 2019-01-24T17:37:07 | 167,333,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,424 | py | import binascii
import datetime
import os
import mongoengine
from werkzeug.security import generate_password_hash, check_password_hash
from werkzeug.utils import cached_property
class Role(mongoengine.Document):
name = mongoengine.IntField(required=True, unique=True)
permissions = mongoengine.ListField()
... | [
"al.pro@mail.ru"
] | al.pro@mail.ru |
87ab42ad572197a04432b2035cd17f730119665d | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/225/users/4312/codes/1745_3089.py | aeb925668ea927a90f7ef556434e6c5f25b40379 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | x = int(input("Insira um numero: "))
soma = 0
x = x
while(x != 0):
soma = soma + x
x = int(input("insira um numero: "))
print(soma)
if(soma > 0):
soma = "Direita"
elif(soma == 0):
soma = "Inicial"
else:
soma = "Esquerda"
print(soma) | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
918f199c07f0dc30ea9455812cb769708d264449 | febe91c2fd51d990657a9d7c15ac267bd9488076 | /ejercicio2.py | 0654df64598f68071ac14a201e9a869feb36714f | [] | no_license | jeancarlos96/Examen-Bimestral-Grupo-1 | cc8b9097b7a4924076bdc90e2d6646175d6ffb22 | 51951cd103afd281023c8f4339658f59b16021d8 | refs/heads/master | 2021-01-17T11:40:19.445635 | 2016-06-09T15:02:35 | 2016-06-09T15:02:35 | 60,771,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | #Ejercicio 2
import math
def multiplos():
x= int(input("Ingrese el numero del cual desea conocer los multiplos: "))
cont= x
for i in range(x,1000):
if (i%x==0):
cont=x+i
print(cont)
else: i=x
archi=open('ejercicio2.txt','w')
archi.close()
archi=open('ejercicio2.txt','a')
archi.write("Lo... | [
"michu.arias17@hotmail.es"
] | michu.arias17@hotmail.es |
27bed4b3b9d5ab8a62d085ec97357fdbee16a0be | d1ddb9e9e75d42986eba239550364cff3d8f5203 | /google-cloud-sdk/lib/surface/functions/logs/read.py | 453e5d6d9593c450adddcbdd3b842106e95fa20d | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | bopopescu/searchparty | 8ecd702af0d610a7ad3a8df9c4d448f76f46c450 | afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6 | refs/heads/master | 2022-11-19T14:44:55.421926 | 2017-07-28T14:55:43 | 2017-07-28T14:55:43 | 282,495,798 | 0 | 0 | Apache-2.0 | 2020-07-25T17:48:53 | 2020-07-25T17:48:52 | null | UTF-8 | Python | false | false | 5,713 | py | # Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"vinvivo@users.noreply.github.com"
] | vinvivo@users.noreply.github.com |
bc89c6ed17eebba6e4b047a95db871b13a6b6d58 | b4a39144b697ec14804ebf1fa686a72b7175d012 | /venv/lib/python3.9/site-packages/consolekit/_types.py | 9e82da0df2c87f42ec48b3dfb22e639dda174de1 | [] | no_license | felipe1297/networkPacketGetter | 4993aacf840db7fef7c474b78da8b875c6a4ad46 | 64c071d6d53576e0fa6ed0fe544bbc4811546991 | refs/heads/master | 2023-04-09T13:50:23.722774 | 2021-04-13T04:52:31 | 2021-04-13T04:52:31 | 357,424,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,507 | py | #!/usr/bin/env python3
#
# _types.py
#
# Copyright © 2020 Dominic Davis-Foster <dominic@davis-foster.co.uk>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, includi... | [
"48300568+felipe1297@users.noreply.github.com"
] | 48300568+felipe1297@users.noreply.github.com |
7b3dcba50763bb0d726e643e12be3630fd5d272c | 0ad217b3be6b7c63ba1d8890f74f30a81f7234e0 | /meta_stra_framwork/src/params_1.py | d0dc5a405b1c1040bc4fba6a4095baad95e24451 | [] | no_license | fagan2888/big | c1bf2cd01d405674482850f9ff7ad18d160c02cb | c0cc8c57b90f4b1da2d023abeea4c42f06cf242e | refs/heads/master | 2022-11-17T21:45:23.436124 | 2020-07-11T14:15:09 | 2020-07-11T14:15:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,386 | py | import sys,os
from collections import defaultdict
import tushare as ts
import pandas as pd
def get_code_list():
code_list = ts.get_hs300s()['code']
for i in range(len(code_list)):
if(str(code_list[i])[0]=='6'):
code_list[i] = str(code_list[i]) + '.XSHG'
else:
code_list[i... | [
"lishangzhe@wordemotion.com"
] | lishangzhe@wordemotion.com |
b806946c1c6cd57f9c8fd6e0f0ee5c97cdae8692 | 6965d39e13b608527fa5d2db28aa0c5b91fe3c8a | /examples/compressor/train_comp.py | 04a64389edfd5a94169df8e110a071c2f273826b | [
"Apache-2.0"
] | permissive | leoauri/auraloss | 91b8d269879c1185988f2c37d5b5e2392c8b21a6 | 0e3362674ae1b53aa61c6a631fb4e6970c5683c1 | refs/heads/main | 2023-07-27T21:16:00.305450 | 2021-09-12T14:38:33 | 2021-09-12T14:38:33 | 405,451,607 | 0 | 0 | Apache-2.0 | 2021-09-11T18:15:45 | 2021-09-11T18:15:45 | null | UTF-8 | Python | false | false | 2,693 | py | import os
import glob
import torch
import torchsummary
import pytorch_lightning as pl
from argparse import ArgumentParser
from tcn import TCNModel
from data import SignalTrainLA2ADataset
parser = ArgumentParser()
# add PROGRAM level args
parser.add_argument("--root_dir", type=str, default="./data")
parser.add_argume... | [
"csteinmetz1@gmail.com"
] | csteinmetz1@gmail.com |
ca1df705d15891320e03b64b9fdbeac9ac2ae78f | c71f0640577457cfd541499279e8427a06be343b | /ittest.py | 7de2a72fb7301bc63fed292187e8302df6eb2df1 | [] | no_license | HanChinese-LIURUI/Weixin_1.0 | 9b0e63d913e45a067803c8d28d36dfce08ab3311 | 6267bda94e0424b281f8526ca14018366ebb149b | refs/heads/master | 2021-02-18T09:47:16.600726 | 2020-03-05T14:22:44 | 2020-03-05T14:22:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | import itchat
# 自动回复
@itchat.msg_register(itchat.content.TEXT)
def text_reply(msg):
return "东小东回复数据:" + msg["Text"]
# 登入
itchat.auto_login()
# 保持运行
itchat.run()
| [
"1090339852@qq.com"
] | 1090339852@qq.com |
a1358efa1de189154c790b436ed12842e2a89408 | 348db1509ec31496ff86ceb59cea497e76c18102 | /the_wall/app_wall/urls.py | 196f4729905410819145582c909322f4e3ce8fd7 | [] | no_license | D-pitz/python_django | 70973c0d2d8cd6036da723b26bc389087594dbbf | 66a5f3f944f59bdd6e62c4eb92c257a707b6a34b | refs/heads/main | 2023-06-19T02:11:08.837634 | 2021-06-28T22:07:51 | 2021-06-28T22:07:51 | 381,124,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.the_wall),
path('message', views.post_message),
path('comment/post/<int:post_id>', views.post_comment),
path('destroy/message/<int:post_id>', views.destroy_message),
path('destroy/comment/<int:comment_id>', views.destr... | [
"80120174+D-pitz@users.noreply.github.com"
] | 80120174+D-pitz@users.noreply.github.com |
b0a5d5218c38b5027071ca4e22ab890c410cd4f8 | 8ddcebf0b4cb3277acbbb1aba4b2961d166a220f | /filelen.py | 0b19a4d40568790dd3952bde579ea5032dfe486d | [] | no_license | ShwetaMuthiyan/shweta1 | 25d34cceb57bf3dc294ca5c1d67ff81b1da83ef1 | 1bea075fdd26b84e1d26a350dc1a82b562e2bd58 | refs/heads/master | 2020-04-28T15:17:41.000617 | 2019-05-13T08:57:47 | 2019-05-13T08:57:47 | 175,367,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | #!/usr/bin/python
import io
f=input("enter file name:")
fd= io.FileIO(f)
line=fd.readline()
maxline= fd.readline()
minline=maxline
maxline=fd.readline()
if maxline>minline:
print(maxline)
else:
print(minline)
while line!= b'':
print(line)
line=fd.readline()
print("maxline is:",maxline)
print("minline is:",... | [
"noreply@github.com"
] | ShwetaMuthiyan.noreply@github.com |
580f7ba9ed0f5454dc4f1d8e0dfc93b457eec68b | ef31cc9260ba23cbe3d986becccc87b6df368b0f | /forBreakout2.py | df9e8a471133339d22a3ffab334ed92c318eb608 | [] | no_license | Whulph/Introduction | e810a0a5ef25082c37a384bffda70cdc054e43c0 | 2add70ae805fdf7348a51cb8c6ed66aa65cb5a42 | refs/heads/main | 2023-05-27T23:09:45.671258 | 2021-06-21T20:07:48 | 2021-06-21T20:07:48 | 376,899,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jun 14 15:44:50 2021
@author: Tyler
"""
import random
for i in range(1000):
print(random.choices('TH')) | [
"tylerwolf2290@gmail.com"
] | tylerwolf2290@gmail.com |
b3d951b5a7e7e7a8a0901753cca8c90b55b906c5 | 2927dcbbb0723e8e76710040407c5561fb6b0121 | /01024/linux/entro.py/entro_macosx.py | 1703d338ca7dc3f955f50acae7e6d29296bdd364 | [] | no_license | cafferta10/hardcode | 9583599825010c16d46e199aaff9b15834730c65 | 2033e906d3a7850f88dda431f15a70f0981729b9 | refs/heads/master | 2021-05-22T01:06:19.072005 | 2019-10-26T03:28:44 | 2019-10-26T03:28:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,871 | py | #!/usr/bin/env python
import sys
try:
from OpenGL.GL import *
from OpenGL.GLUT import *
except ImportError:
print "It seems that you don't have OpenGL.GL/GLUT bindings. Please install PyOpenGL."
sys.exit(1)
from math import *
from time import *
from AppKit import NSSound
from threading import *
p=[]
t=l=q=i=j=0
R=[... | [
"youngthug@youngthug.com"
] | youngthug@youngthug.com |
3f151497a953c9cf780d199b58d23a21c0d27cca | ffb05b145989e01da075e2a607fb291955251f46 | /pypers/pep318/moduledec.py | ccaa73c25a8ebde3ed0eb1ad03a259d4ddc48a02 | [] | no_license | micheles/papers | a5e7f2fa0cf305cd3f8face7c7ecc0db70ce7cc7 | be9070f8b7e8192b84a102444b1238266bdc55a0 | refs/heads/master | 2023-06-07T16:46:46.306040 | 2018-07-14T04:17:51 | 2018-07-14T04:17:51 | 32,264,461 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,550 | py |
err=file('err','w')
def printerr(*args):
"For debugging purposes"
for a in args: print >> err, a,
print >> err
def importmodule(name,dic):
"""Given a module name and a dictionary, executes the module in a copy
of the dictionary ... | [
"michele.simionato@gmail.com"
] | michele.simionato@gmail.com |
830ec9e09303acb6d7a5d9ff2f7333cca0f90993 | f130e20fe2a24c0d3747a7454e79f669a90fb08c | /Project 1 Opencv_FaceRecog/Step3_FaceRecog.py | 278d9728a3fbcc288950149398d890464492265d | [] | no_license | Khoanguyen99/Tot-Nghiep | d23794643c25d4db175b2dee9dd1c6d2ab80faef | faf269564aa19b91441f075b8e38de9279f831c2 | refs/heads/main | 2023-04-15T22:17:48.404909 | 2021-05-04T12:45:57 | 2021-05-04T12:45:57 | 352,339,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,316 | py | import cv2
import numpy as np
import os
import sqlite3
from PIL import Image
# Doi chieu hình ảnh nhận diện với Thư viện nhận diện khuôn mặt
#Khuôn mặt ở đâu trên cam
face_cascade = cv2.CascadeClassifier('C:\opencv\sources\data\haarcascades\haarcascade_frontalface_default.xml')
#Khuôn mặt đấy là ai
recognizer = cv2.... | [
"59419833+kingpantsu123@users.noreply.github.com"
] | 59419833+kingpantsu123@users.noreply.github.com |
2e96e1276564e7f9b1df94b124a76859c1a9dacf | fa39a125126fc11fdf03405bef21fc25508629bd | /helpers.py | 6651c2668fd68e0c6bad56aa32c7043e0f122e59 | [] | no_license | tenebrius1/finance | 60ed4fd2696b936f9b0255c2a753bfb76fa4c0d6 | 6c6cf0bf4ae7a333f2623eead29617457e43fb45 | refs/heads/master | 2023-07-10T05:55:45.424323 | 2021-08-16T04:28:30 | 2021-08-16T04:28:30 | 228,144,285 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,711 | py | import os
import requests
import urllib.parse
from flask import redirect, render_template, request, session
from functools import wraps
import pyEX as p
def apology(message, code=400):
"""Render message as an apology to user."""
def escape(s):
"""
Escape special characters.
https://g... | [
"noreply@github.com"
] | tenebrius1.noreply@github.com |
29447c019f83150cc8687ebfea6b9b70a41a69d7 | 81f72a2972dde1268895f583bce16e99da02a9e3 | /syntax_analysis/temp.py | eed8140a3607c5d1b8fc6bf952f74a096c60a5e3 | [] | no_license | hanayashiki/mars_compiler | 976abdf274da0cb3ef3292daed6c3f874ada708c | e833400cdf66c77cb415690cfc91ec061ed49f14 | refs/heads/master | 2021-01-20T22:44:31.881427 | 2017-09-08T06:32:18 | 2017-09-08T06:32:18 | 101,821,029 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | from syntax_analysis.symbol import *
from syntax_analysis.defsutils import *
class Temps:
num = 0
def new_name(self):
self.num += 1
return "%"+str(self.num-1)
def new_temp(self, type_name):
tmp_id = Id()
temp_type = Type()
temp_type.value = type_name
temp_... | [
"494450105@qq.com"
] | 494450105@qq.com |
3d8982230e8bdc4e17f11cbd343469360d470201 | 26aeb2bf74bed12c5226e72b63997530161b3d21 | /model.py | 2ed3b8357a79a6cc4cd152098cacba50c2835f23 | [] | no_license | zsb87/MyResNet | b9a77976546a8a5a1488d42f7b93d441c8e47815 | 533084825a309ed84d992ee5a611af00d4559afa | refs/heads/master | 2020-03-19T15:33:19.886291 | 2018-06-09T18:57:09 | 2018-06-09T18:57:09 | 136,675,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,765 | py | import utils
import math
import torch
import torch.nn as nn
import torch.nn.functional as F
from torchvision import models
from torch.autograd import Variable
import torch.utils.model_zoo as model_zoo
__all__ = ['ResNet', 'resnet18', 'resnet34', 'resnet50', 'resnet101',
'resnet152']
model_urls = {
'r... | [
"zhangshibo87@gmail.com"
] | zhangshibo87@gmail.com |
82281a71a622fc349f51c3b775734e0788b1413b | e0700dffa6299630a2fa275933beea8b223436c2 | /classbased/first/forms.py | 179f7f9bd91e4d323a16b2d00c8ea23d0100f811 | [] | no_license | kushalkombe/django_projects | e526a10de07c77c9f6c05e7c4fd711ddafc546c2 | 9ad5e241621ee2779e077e7a26e012137ce3f36e | refs/heads/master | 2023-01-07T20:34:42.627526 | 2020-11-13T11:27:16 | 2020-11-13T11:27:16 | 283,565,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | from django import forms
from first.models import Emp
class EmpForm(forms.ModelForm):
class Meta:
model = Emp
fields = '__all__'
| [
"kushalkombe@gmail.com"
] | kushalkombe@gmail.com |
1851dbc045fb64fd79266d7da8ca836f31797c87 | c29e15cc3cc6d98671e2ceaf4e11a6db45970790 | /C/tests.py | fba961fa519ab7443cb7d61770198a76d1de261c | [] | no_license | perminovs/yandex-contest-2019-10 | c889e0387ac839e04d6fb91e4864c5641340c473 | f86cc6cbcd2c80057f0675bad75acb46ac465a60 | refs/heads/master | 2020-08-28T10:59:40.025389 | 2019-11-24T18:39:54 | 2019-11-24T18:39:54 | 217,679,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,970 | py | import pytest
from .solution import build_minimum_spanning_tree, convert_graph, solve
@pytest.mark.parametrize(
('graph', 'expected_tree'),
[
(
# (1)--10--(2)
# \ /
# 40 20
# \ /
# (3)
[
(10, 1,... | [
"perminov-s-i@yandex.ru"
] | perminov-s-i@yandex.ru |
f454c9a3b4832592cf16f765dfe612cc195d9739 | 87278e84fb4cd4b8dedd4a42cf3a51d48e749ec4 | /ch04/sort2.py | 061b1e80b0625e2c24d03590d1e6fe35152b103d | [] | no_license | dykim822/Python | 083a6fb9be51e6cb3725a73ea8184f813f572abc | f6bd67d14e3a3a16934650cff6234e9cbad9ebce | refs/heads/main | 2023-07-09T23:50:05.059533 | 2021-07-28T05:07:35 | 2021-07-28T05:07:35 | 369,375,985 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | l1 = [2, 7, 3, 6]
# l1.sort(): list 데이터가 변경
l2 = sorted(l1) # 원본 데이터는 변경하지 않고 정렬된 결과를 l2에 저장
print("원본", l1)
print("오름차순", l2)
l3 = sorted(l1, reverse=True) # 원본 데이터는 변경x
print("원본", l1)
print("내림차순", l3)
# l1.reverse(): 원본 데이터 순서를 반대로 한다-> 데이터가 바뀐다
l1.sort(reverse=True) # 원본 데이터를 내림차순으로 변경-> 데이터가 바뀐다
print("원본... | [
"dykim822@gmail.com"
] | dykim822@gmail.com |
40ef10b9e7807ef116efeda069823fd6a235a2b2 | 06b25df867b9a4741b4ca803eceb254aa50758e9 | /editor_api/database/output/waterbal.py | 59483bc0d08b19050c91bc1643fd841409a0191d | [
"MIT"
] | permissive | jphuart/swatplus-automatic-workflow | e5ceaa745096926176d9fc45042f836e628d0504 | dd2eeb7f882eb2d4ab7e1e5265c10b9beb93ddc4 | refs/heads/master | 2023-08-15T02:47:40.742352 | 2021-10-05T14:57:19 | 2021-10-05T14:57:19 | 282,170,706 | 0 | 0 | null | 2020-07-24T08:52:25 | 2020-07-24T08:52:24 | null | UTF-8 | Python | false | false | 1,612 | py | from peewee import *
from .base import OutputBase
class Waterbal(OutputBase):
precip = DoubleField(null=True)
snofall = DoubleField(null=True)
snomlt = DoubleField(null=True)
surq_gen = DoubleField(null=True)
latq = DoubleField(null=True)
wateryld = DoubleField(null=True)
perc = DoubleField(null=True)
et = Do... | [
"celray.chawanda@outlook.com"
] | celray.chawanda@outlook.com |
db6fd40b23b2542124d03db026c6380c71e726e7 | 82205dd92ccb49f644f7e42ac4b0e9d3c8c1936e | /pdfmix/_version.py | 2070d51ebd7636f5aa284f97fce49fb2827ed12b | [
"BSD-3-Clause"
] | permissive | st3107/PDFmix | 056a59602fd0f8bc49956abb7bd88ca31af6c933 | 10afc66e7829c7d275eda0746395aa612de6d8d6 | refs/heads/main | 2023-07-28T03:16:21.928751 | 2021-09-13T23:31:19 | 2021-09-13T23:31:19 | 395,450,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,454 | py | # This file helps to compute a version number in source trees obtained from
# git-archive tarball (such as those provided by githubs download-from-tag
# feature). Distribution tarballs (built by setup.py sdist) and build
# directories (produced by setup.py build) will contain a much shorter file
# that just contains th... | [
"st3107@columbia.edu"
] | st3107@columbia.edu |
5e74db6a3fe9fc60ffb7ba48edbaa73cd7968d65 | 987a68b9c196f39ba1810a2261cd4a08c35416a3 | /Tree/337-house-robber-iii.py | 68fa0b80ac4156e7a87dd92d22f656440755db24 | [] | no_license | xizhang77/LeetCode | c26e4699fbe1f2d2c4706b2e5ee82131be066ee5 | ce68f5af57f772185211f4e81952d0345a6d23cb | refs/heads/master | 2021-06-05T15:33:22.318833 | 2019-11-19T06:53:24 | 2019-11-19T06:53:24 | 135,076,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | # -*- coding: utf-8 -*-
'''
https://leetcode.com/problems/house-robber-iii/
'''
# Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
# Time and Space: O(n) where n is number if nodes
class Solution(o... | [
"xizhang1@cs.stonybrook.edu"
] | xizhang1@cs.stonybrook.edu |
86035528d529d138acd929937c57cc6d6804c6cc | c671b96c8fa648d81575b97881c1377340d02b8f | /pk_keras/image_classifier.py | 2a0b16c0a1575467d2da705cd3f7a04cd4136e62 | [] | no_license | qiuqi06/python | 2e7e6e850f5178c3c015c2224678d1a47e803008 | 1b8d039471464bc7863fed395b2338fd36201c76 | refs/heads/master | 2022-12-06T00:00:29.936309 | 2020-12-04T10:30:48 | 2020-12-04T10:30:48 | 160,703,195 | 0 | 0 | null | 2022-11-21T22:27:26 | 2018-12-06T16:40:10 | Python | UTF-8 | Python | false | false | 1,026 | py | import numpy as np
from keras.datasets import mnist
from keras.models import Sequential
from keras.layers import Dense, Activation
from keras.optimizers import RMSprop
from keras.utils import np_utils
np.random.seed(1337) # from reproducibility
(x_train, y_train), (x_test, y_test) = mnist.load_data()
x_train = x_tr... | [
"714106661@qq.com"
] | 714106661@qq.com |
b4ef64857f5b4a0a131b001d1de4e655547d119b | fc0fbd4012da11c283d2087b55aea43bd0b68650 | /Problems/Guessing game/task.py | 1fc6c22a6213142cc71543124a95fd26883e0acd | [] | no_license | cht-tsang/zookeeper | ad41e268f9401af51a858461e5b37692b47fe6d5 | 48ed0b766b3e5983c36a99a7a18628dd30f86972 | refs/heads/master | 2022-11-30T09:26:58.071229 | 2020-08-03T22:02:19 | 2020-08-03T22:02:19 | 274,208,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | set_number = 6557
a = int(input())
b = int(input())
print(set_number == (a * b))
| [
"cht.chihungtsang@gmail.com"
] | cht.chihungtsang@gmail.com |
612a7404d4bb9f8ae55e9bfa2df2d6da0b975d36 | 376ef0073d0ab38f6735462cf64ac723d07e6499 | /apps/bank/CipherUtil.py | 66bd41e401c24775fb2483349b887b096cff62b3 | [] | no_license | Nautilus1993/NetworkSecurity | f6074628fe6a595cc49a78bad95804d0062bcec1 | 359f49d718643a788b812c0bc2eb2c9759463910 | refs/heads/master | 2020-07-20T21:06:27.358554 | 2019-06-02T10:16:26 | 2019-06-02T10:16:26 | 73,742,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,624 | py | '''
Created on Mar 29, 2014
@author: sethjn
'''
import sys
sys.path.append("../..")
from Crypto.Signature import PKCS1_v1_5
from Crypto.Hash import SHA, HMAC
from Crypto.Protocol.KDF import PBKDF2
from Crypto.PublicKey import RSA
from Crypto.Cipher import AES
from playground.crypto import X509Certificate, Pkcs7Paddin... | [
"2271275281@qq.com"
] | 2271275281@qq.com |
514c26d2c69b256dc7f73c676859b0254a445a40 | bd553d50a233c043878e4209e0376eab1eb7176f | /Examples/1Intro/DataTypes/3List/sortDemo2.py | 033cfb4f8a05487e54503d8fb5c46fd34aedcabe | [] | no_license | jainendrak/python-training | 3610434926774bca9c711a5e6c675d3ce28893ef | 336221aab9aaa9624ad0f5ad046c44195105249e | refs/heads/master | 2020-05-27T13:59:17.656236 | 2019-05-27T06:21:46 | 2019-05-27T06:21:46 | 188,648,975 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | li=[{'fname':'Sachin','lname':'Tendulkar','centuries':100},
{'fname':'Rahul','lname':'Dravid','centuries':88},
{'fname':'Saurav','lname':'Ganguly','centuries':62}]
li.sort(key=lambda d:d['fname'],reverse=True) | [
"jainendra.kumar@oracle.com"
] | jainendra.kumar@oracle.com |
9ae38f37629909e6511e8131e234e91163c22e51 | d0bab7ad4ff9fbc54e0a64ca6a06873e888b0fc9 | /src/libs/blueprint/python/py_src/mesh/examples/__init__.py | 9036ffd31e8e7817976e6bebd7e5e4c086cc1fe4 | [
"BSD-3-Clause"
] | permissive | LLNL-Collaboration/conduit | 4295469c73247b246be86c087397a99c9a760148 | e80464ed6cd3706b39408d61499f8dcfcd41c2f3 | refs/heads/master | 2021-01-09T05:24:44.513812 | 2017-04-26T03:51:08 | 2017-04-26T03:51:08 | 80,760,783 | 2 | 1 | null | 2017-02-02T19:29:55 | 2017-02-02T19:29:55 | null | UTF-8 | Python | false | false | 2,325 | py | ###############################################################################
# Copyright (c) 2014-2017, Lawrence Livermore National Security, LLC.
#
# Produced at the Lawrence Livermore National Laboratory
#
# LLNL-CODE-666778
#
# All rights reserved.
#
# This file is part of Conduit.
#
# For details, see: htt... | [
"noreply@github.com"
] | LLNL-Collaboration.noreply@github.com |
fc4c169a3beac0967ff6a68a00b06432855ab674 | 46a12eb54a26cb00082f44b533d42dba35504482 | /todo/models.py | 4a5dafbe8485947b8a58f971cb5c6ba9a68145b4 | [] | no_license | Chrisss09/Django_todo | 5cd14b0e75c112edc9efafafcb7604c9d67d84ff | 83a616d40a284449f42e80f7c5b1cc341b66ef1d | refs/heads/master | 2022-12-22T20:47:12.260440 | 2019-09-12T18:26:16 | 2019-09-12T18:26:16 | 207,083,922 | 0 | 0 | null | 2022-12-08T05:21:38 | 2019-09-08T08:33:32 | Python | UTF-8 | Python | false | false | 258 | py | from django.db import models
class Item(models.Model):
name = models.CharField(max_length=30, blank=False)
done = models.BooleanField(blank=False, default=False)
# Creating user friendly headings
def __str__(self):
return self.name
| [
"chris.fowler73@hotmail.co.uk"
] | chris.fowler73@hotmail.co.uk |
dbe107e88bb307cd80fc4a1dd6efb29c55c50dd0 | 6b8c5b03cf12797eb36c952f88d97ee33725b1ae | /Python/examples/EXAMPLES/db_postgres_basics.py | 29391563512c44dd67c2f01384236f8fcaeb660f | [] | no_license | a8ksh4/junk | f1b6100afb5873e0b4931cd233ccee12b975222c | 4535ccc5d9bd82104d0f5d3799bb006b205cb370 | refs/heads/master | 2021-01-23T13:36:55.992346 | 2017-04-29T01:19:09 | 2017-04-29T01:19:09 | 14,162,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | #!/usr/bin/env python
import sys
import psycopg2
pgconn = psycopg2.connect(
host="localhost",
dbname="jstrick",
user="scripts",
password='scripts',
)
pgcursor = pgconn.cursor()
# select first name, last name from all presidents
pgcursor.execute('''
select lname, fname
from presidents
''')
print... | [
"drnorris@DRNORRIS-MOBL.amr.corp.intel.com"
] | drnorris@DRNORRIS-MOBL.amr.corp.intel.com |
82f3fdc558f648a4cdba85bda400e50af17edc39 | 1f0690fd6780f44ba46076e958f56ba395dcbc20 | /test/test_raw_shape_map.py | dc71bb7546d9a1fd64fd27f8b2838c45a900f988 | [
"Apache-2.0"
] | permissive | DaniFdezAlvarez/shexerp3 | 196ee4d20b4b92b64a71256571c06de3b4a5cf78 | 80c3bdaac856a88d53359f5996477994774d34e2 | refs/heads/develop | 2021-06-13T14:03:12.494569 | 2021-04-26T11:38:36 | 2021-04-26T11:38:36 | 187,663,813 | 3 | 2 | Apache-2.0 | 2020-03-27T19:38:33 | 2019-05-20T15:07:48 | Python | UTF-8 | Python | false | false | 4,183 | py | import unittest
from shexer.shaper import Shaper
from test.const import G1, BASE_FILES, default_namespaces
from test.t_utils import file_vs_str_tunned_comparison
from shexer.consts import TURTLE
_BASE_DIR = BASE_FILES + "shape_map\\"
class TestRawShapeMap(unittest.TestCase):
def test_node(self):
shape_m... | [
"danifdezalvarez@gmail.com"
] | danifdezalvarez@gmail.com |
df2f8a2cddaf79d3a1bcaed210fca4b55266aba4 | 1ecd2e7bebfc9ffbb01c09c88517b98841166abd | /Group Assignment 2/Group Assignment 2.py | 49d5021e059365828dfa7b514f8b1796ef9ff21b | [
"MIT"
] | permissive | brandonlee503/Algorithms-Assignments | 4a375c704646396c8303d501fafc4e7cfdc1c4c5 | 4dee06bf4a675511db2269fa2e2c794dbaf3fbcc | refs/heads/master | 2021-01-20T06:31:28.184357 | 2015-12-01T06:06:31 | 2015-12-01T06:06:31 | 43,657,395 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,898 | py | import numpy as np
import sys
# Initialize read/write files
try:
filename = sys.argv[1]
inFile = open(filename, "r")
outFile = open("best-output.txt", "w+")
except:
print("Error: Must provide valid filename as a command line argument")
raise
try:
inArr = [int(x) for x in inFile.read().split()]... | [
"leebran@onid.oregonstate.edu"
] | leebran@onid.oregonstate.edu |
370aad777b941f210c80d12c9d3732f007826792 | 438d98c64fe30602c320370cda5d84b4fd88733c | /apps/lotracker/migrations/0002_lot_site_type.py | d96cd221b9d49eb13988d2421b8949d5a3b52031 | [] | no_license | alishermuxtarov/lotracker | 5d550eaa2558abed1c9629e19ec630bdb2ce39d4 | 1dd6074c64e2742cbe70fd85f56597d12b611489 | refs/heads/master | 2023-07-25T10:57:18.393095 | 2021-09-01T15:23:25 | 2021-09-01T15:23:25 | 402,108,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | # Generated by Django 3.0.2 on 2020-01-28 22:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('lotracker', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='lot',
name='site_type',
f... | [
"alishermuxtarov@gmail.com"
] | alishermuxtarov@gmail.com |
9364cc969fff6da2dac4ca1b658984f1e30657cf | f7cddc360ae090c16724df372042b17fc0480e53 | /Bounce_Game.py | 887349c2df9c7bab13e2ea290ed8048a65a16193 | [] | no_license | LRBeaver/Udemy_Game | ebccf5d7263d194ad692093400daf9442275ab1a | 2cc55dde0bb08180dd1d2bca518281fbd394713f | refs/heads/master | 2021-01-01T03:58:08.685661 | 2016-04-14T12:47:29 | 2016-04-14T12:47:29 | 56,236,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,520 | py | __author__ = 'lyndsay.beaver'
from tkinter import *
import random
import time
tk = Tk()
tk.title("Bounce")
tk.resizable(0, 0)
tk.wm_attributes("-topmost", 1)
canvas = Canvas(tk, width=501, height=501, bd=0, highlightthickness=0)
canvas.pack()
tk.update()
class Ball:
def __init__(self, canvas, paddle... | [
"lrbeaver@gmail.com"
] | lrbeaver@gmail.com |
2eae88c0931c5308aff462f6129a717f741e927d | 7037e16b5ee5f2cdff8f759d4ffcbed4cad3d3f5 | /files/openingFiles.py | 79f08e13944655d60ee64f089d2dc2cce86ac572 | [] | no_license | michalkasiarz/automate-the-boring-stuff-with-python | 1fe0d3af7c5e57746d2d37aa110a5f1bd45ecf30 | 8fdd4c6945f116c3889000f2ad7357cacdf6ed16 | refs/heads/master | 2021-05-17T00:19:31.454433 | 2020-04-03T12:38:12 | 2020-04-03T12:38:12 | 250,532,982 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 920 | py | import os
# opening files
helloFile = open(r"C:\Users\micha\Documents\Training\Hello.txt")
content = helloFile.read()
# printing file content to the console
print(content)
# closing the file
helloFile.close()
# readlines() method - returns a list of Strings
helloFile = open(r"C:\Users\micha\Documents\Training\Hel... | [
"michal.kasiarz@post.com"
] | michal.kasiarz@post.com |
d6eedd18bdb612e2388f9af8c6da6d95d9fdc575 | b27cb13b6a543aa1d1727df455edd0224f31d837 | /MinMaxPlayer.py | 9793976447e604c474a6fe7636a0e80e3bb93959 | [] | no_license | esh4/TicTacToeRevisited | 16cc74f5c72ea7fb88b2b6295ed2768a11231ae6 | 12a532b2fd89c69a7005b0f5b471a587864323be | refs/heads/master | 2020-05-29T20:42:42.784486 | 2019-06-02T07:12:19 | 2019-06-02T07:12:19 | 189,360,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,206 | py | from Player import Player
from inspect import getouterframes, currentframe
from GameBoard import GameBoard
class MinMaxPlayer(Player):
def __init__(self, name):
super().__init__(name)
self.mark = 'O'
def take_turn(self, board):
return {self.calculate_best_move(board): self.mark}
... | [
"eshel.sinclair@gmail.com"
] | eshel.sinclair@gmail.com |
cc4a055133966cef99cd6c84d82bc1cddacd4b3b | 0181618f60c66b124eb57d1b8fe5a63b69e28f67 | /Conference/migrations/0008_auto_20210502_1131.py | f326e0f0a9be6e559becc1a83eeb5240411f7643 | [] | no_license | Ronaldrani21/Event | eeb52936ee04c25916885c8f20acf195cab87f60 | fa55e7f3bd956b887cb172175d46eb782b0bc044 | refs/heads/master | 2023-05-04T14:05:20.725560 | 2021-05-24T16:39:46 | 2021-05-24T16:39:46 | 363,681,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 780 | py | # Generated by Django 3.1.7 on 2021-05-02 18:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Conference', '0007_auto_20210502_1116'),
]
operations = [
migrations.AddField(
model_name='registrationform',
name='... | [
"ronaldrani72@gmail.com"
] | ronaldrani72@gmail.com |
2bfe56446043b1d834e53efbeb0f640a27694bd2 | 95d32a98d0715816fd763c6df356069d91d74f33 | /088.py | e79d78627a877069876425669e8c9e792ba9fd75 | [] | no_license | jod35/coding-challenges | 1f65d08d92c143004f44eafd4922ec0dcb652a1f | 21cfa2853dac70055d2b20155e03dff1c235ee02 | refs/heads/master | 2022-12-14T22:31:37.344450 | 2020-09-18T19:47:51 | 2020-09-18T19:47:51 | 291,939,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | sales_records={
"John":{"N":3056,"S":8465,"E":2694,"W":2964},
"Tom":{"N":4832,"S":6786,"E":4737,"W":3612},
"Anne":{"N":3904,"S":4802,"E":5820,"W":1859},
"Fiona":{"N":3904,"S":3645,"E":8821,"W":2451}
}
name=input("Enter a name whose datavyou would like to view: ")
print(sales_re... | [
"jodestrevin@gmail.com"
] | jodestrevin@gmail.com |
37199a230ddb408cf68ecd267319ed3c6880457e | 12a18fd3ec8103a49de6dd0cc4cb4208a05092e5 | /env/bin/easy_install | bb68c12434f288a721e62f002ba86993b691110d | [] | no_license | LucasBarletta/FrontTemporario | 8bbbc6f765eb8b1d32025718a0f14624fefdd046 | ac4a5c9be09bcd169bf6d54d7692d88e2cc72804 | refs/heads/master | 2023-01-20T22:30:40.802508 | 2019-10-25T18:54:08 | 2019-10-25T18:54:08 | 217,597,121 | 0 | 0 | null | 2023-01-04T12:42:58 | 2019-10-25T18:56:41 | JavaScript | UTF-8 | Python | false | false | 279 | #!/home/ubuntu/Downloads/Passa_pra_Frente-master/env/bin/python3
# -*- 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())
| [
"lubarlettamunhoz@gmail.com"
] | lubarlettamunhoz@gmail.com | |
fb6be4f95db9881ac7bf6895a4874398b79461a5 | 64ce1850c481d5ce3a7515d6220d18566f603998 | /MegaRest/IProtocol.py | 6b8d781443923690c9d607fe1e04e3ec1366a38f | [] | no_license | mvleandro/desafiohu1 | 6b70a956f7a6ab055aad7c91eb5becffa238c571 | bd94a43e3f90f0495864e1be65e8f4cdb31d4352 | refs/heads/master | 2020-12-29T00:56:12.104209 | 2015-08-03T00:54:25 | 2015-08-03T00:54:25 | 39,531,632 | 0 | 1 | null | 2017-11-11T17:05:53 | 2015-07-22T21:38:44 | CSS | UTF-8 | Python | false | false | 805 | py | __author__ = 'mvleandro'
from abc import ABCMeta, abstractmethod
class IProtocol:
__metaclass__ = ABCMeta
action = ''
data = ''
client = tuple()
connection = object()
@abstractmethod
def request(self):
pass
@abstractmethod
def reply(self):
pass
@abstractmet... | [
"mvleandro@gmail.com"
] | mvleandro@gmail.com |
c48d40beb14d7f2e88db8a78df0dc2265ba00d1c | 66fda6586a902f8043b1f5e9532699babc7b591a | /lib_openshift/models/v1beta1_horizontal_pod_autoscaler.py | a1482453514234a535ecb09168dbe187eec0dfbe | [
"Apache-2.0"
] | permissive | chouseknecht/lib_openshift | 86eff74b4659f05dfbab1f07d2d7f42b21e2252d | 02b0e4348631e088e72a982a55c214b30a4ab9d9 | refs/heads/master | 2020-12-11T05:23:17.081794 | 2016-07-28T20:15:39 | 2016-07-28T20:15:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,794 | py | # coding: utf-8
"""
OpenAPI spec version:
Generated by: https://github.com/swagger-api/swagger-codegen.git
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
... | [
"jdetiber@redhat.com"
] | jdetiber@redhat.com |
dd830a9bc53b903c706b7302302a1779a2f3eeec | ade271a57663f04ceff4d57e67c9315cd7069f9d | /migrations/versions/bd8d579d40d5_.py | 8591e5f320dd8d3d0a906d537871d7866ba9babb | [] | no_license | shreyaasridhar/TodoApplication | 95290d0a56b62d9810253fa3ce000758dc245bc3 | da2adf5063059510376df8517735d55d56f4b9bb | refs/heads/master | 2022-06-17T23:48:07.333898 | 2020-05-10T16:26:29 | 2020-05-10T16:26:29 | 261,658,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 719 | py | """empty message
Revision ID: bd8d579d40d5
Revises:
Create Date: 2020-05-07 04:57:15.245093
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'bd8d579d40d5'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto gene... | [
"shreyanju@gmail.com"
] | shreyanju@gmail.com |
81422ecd3aa4b76f78a73d2d066ee2f67a5ea59e | 12ddac230bba06fafb34e68924a40ff201423763 | /ghost/GAME.py | 6db710e6adebb0fda0c13ff0eed2532179d826eb | [
"MIT"
] | permissive | HesselTjeerdsma/PacmanFInder | 4fc4ca66614138b7599171b102250c5b54d93933 | efb1fbb0a9d39626ab0fc46732ba21b260d942b6 | refs/heads/master | 2022-11-07T17:34:49.589109 | 2017-12-04T12:41:07 | 2017-12-04T12:41:07 | 110,368,241 | 0 | 1 | MIT | 2022-10-28T11:36:25 | 2017-11-11T18:07:53 | Python | UTF-8 | Python | false | false | 2,512 | py | from PACMAN import *
from SERVER_LIB import *
from POZYX import *
from time import sleep
import os
import json
import socket
import _thread
import pypozyx
if __name__ == "__main__":
#Our player name
GAME.set_name("BIERoT");
#GAME.set_name(fish)
#Start HTTP server
Web = WebServer(ADDR,PORT);
GAME.set_Web(Web)... | [
"md.tuinstra@gmail.com"
] | md.tuinstra@gmail.com |
9da52726d92eb4935ff30dec325e71fc4fd40381 | 0ab9e007c7dd11420e671785f584031f47f1504b | /assets/src/ba_data/python/ba/_analytics.py | a3c25e81b1f640ccbe32f352db98842cffc130c3 | [
"MIT"
] | permissive | Dliwk/ballistica | 7872e1e8d0f3a2d92c9a6c211acade3961cbafdd | 73b18e449838c19c87fb86147a253300836cfe89 | refs/heads/master | 2023-07-21T23:28:43.380564 | 2023-01-18T18:40:44 | 2023-01-18T18:40:44 | 254,022,422 | 0 | 0 | MIT | 2020-04-09T12:20:04 | 2020-04-08T07:58:10 | Python | UTF-8 | Python | false | false | 3,120 | py | # Released under the MIT License. See LICENSE for details.
#
"""Functionality related to analytics."""
from __future__ import annotations
from typing import TYPE_CHECKING
import _ba
if TYPE_CHECKING:
pass
def game_begin_analytics() -> None:
"""Update analytics events for the start of a game."""
# pyli... | [
"ericfroemling@gmail.com"
] | ericfroemling@gmail.com |
4b42170da5ff383b63f41803e63cb31e922a1d65 | 9f9082b2d84da1ade9952c829b8ec99e23db2b98 | /server/fandogh/service/migrations/0002_auto_20180604_1712.py | c4663219ffab0aa5a8b0f31af7c44a5fec2bdaae | [
"MIT"
] | permissive | RezaHaidari/fandogh | 384c79fe7eb26e3a7e7f4bf4597e99fa90227921 | 6173ab9dee0e5b9756edf31149aad9af0e0d3564 | refs/heads/master | 2020-03-22T22:53:09.004039 | 2018-07-09T11:36:26 | 2018-07-09T11:36:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | # Generated by Django 2.0.4 on 2018-06-04 17:12
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('service', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='service',
name='owner',
),
m... | [
"soroosh.sarabadani@gmail.com"
] | soroosh.sarabadani@gmail.com |
e761f5af56824db03b23922f9187f9265a112bfd | 772f8d041f460f7e720309e6f494898ca7f884b2 | /chatbot/settings.py | 926c2bccef6a10b78e2dd414aa72af541c159622 | [] | no_license | jhonathascesar232/chatbot-com-python-e-django | 47be582f5336270f6940c80f3304664b3f021c7b | 26a078ac5a69908f2cf30dfb456ee56c6ead2de8 | refs/heads/master | 2020-12-15T16:34:54.942463 | 2019-12-12T05:23:03 | 2019-12-12T05:23:03 | 235,180,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,167 | py | """
Django settings for chatbot project.
Generated by 'django-admin startproject' using Django 2.0.13.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
... | [
"jhonathascesar232@gmail.com"
] | jhonathascesar232@gmail.com |
e0b90753082c999c680e1f29dd17c9d662a4eb71 | 4472e40c53ca3e1df4f9e477a6268133309b7597 | /src/ensae_teaching_cs/special/einstein_prolog.py | 72ce4e82ae5d15698400a18b21625248df9deedc | [
"MIT"
] | permissive | amoussoubaruch/ensae_teaching_cs | 289729742608da064f07a79b10cf6cce48de1b51 | 313a6ccb8756dbaa4c52724839b69af8a5f4476e | refs/heads/master | 2021-01-16T19:31:49.734583 | 2016-09-09T08:29:58 | 2016-09-09T08:29:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,691 | py | #-*- coding: utf-8 -*-
"""
@file
@brief This programs solves `Einstein's riddle <http://en.wikipedia.org/wiki/Zebra_Puzzle>`_ ou en
Français `Intégramme <http://fr.wikipedia.org/wiki/Int%C3%A9gramme>`_. The algorithm is based
on logic and its `clause <http://en.wikipedia.org/wiki/Clause_(logic)>`_.
"""
import copy
#:... | [
"xavier.dupre@ensae.fr"
] | xavier.dupre@ensae.fr |
9b605c3191e034f487afcc1a57fce6a43125702b | d93638facfff67c79e7f446973dcfdb3a041e096 | /week2/hrwros_ws/build/ur_description/catkin_generated/pkg.installspace.context.pc.py | a0b8d15bec21f31dbd7731805100ca81d3fc2942 | [] | no_license | MarzanShuvo/ROS | 9f5b10826530bec0b63c0485d6d8e91c295fb1d7 | 5ec53e56d7e2437a078ee1c40c369b9d79669559 | refs/heads/master | 2021-05-21T23:26:49.734472 | 2020-04-16T09:24:37 | 2020-04-16T09:24:37 | 252,854,763 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "ur_description"
PROJECT_SPACE_DIR = "... | [
"marzanalam3@gmail.com"
] | marzanalam3@gmail.com |
257d15ffc6e4081017ba0fe7004899c110edcd28 | eea690c8eea02f9d5d1145f79159952d8187d7be | /Projet/sonde3.py | d92be1c70b7ba54af7e44077900bb75a0c2a849d | [] | no_license | qLex7/Administration-systeme | 3ce7d121842dd16769ef2ea5c1aabba2d814794c | 6046f58c85a3f426f3aff7ffa217ba6e07b51c4e | refs/heads/master | 2020-03-13T21:39:56.155971 | 2018-04-30T12:02:22 | 2018-04-30T12:02:22 | 131,301,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,246 | py | #!/usr/bin/python
# -*-coding: Latin-1 -*-
import os, sys
import subprocess as sp
import time
def sonde3():
data=list()
#------------------Nom machine------------------------
p=sp.Popen(["hostname"],stdout=sp.PIPE, stdin=sp.PIPE)
data.append(p.stdout.readline())
#----------... | [
"noreply@github.com"
] | qLex7.noreply@github.com |
cb92f14781465954db7435d74a0554aab3ad2cee | 6632037358152602fab2c79abde181369bfeeae9 | /Python Projects 2020/HankeyAH7.py | 3bf92b13a39dde7dfa550c884032a3187270378c | [] | no_license | abbihankey/Software-Development-Portfolio | d6a1c0df2ac6dd8ab2a8f874d368966a73936782 | 6bafd65b0689a6f480e5142c49eaa21e7366289a | refs/heads/main | 2023-02-27T03:39:32.299641 | 2021-01-26T23:24:49 | 2021-01-26T23:24:49 | 332,872,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,515 | py | CD_RW_PRICE = 16.50
DVD_RW_PRICE = 21.75
def main():
cd_customers_counter = 0
dvd_customers_counter = 0
total_payment_due = 0
print("Customer Name \tCode\tSpindle\tPayment Due")
print('')
try:
infile = open ("/users/abbih/desktop/disks.txt",'r')
customer_name = infile.readline()
while... | [
"67207650+abbihankey@users.noreply.github.com"
] | 67207650+abbihankey@users.noreply.github.com |
033bcfd7db1fedf6e783f877671237695994b969 | 8217a1afb688085e647194d6858cd8fd6a61fe6c | /apps/bq/__init__.py | bb57c0744c3eeb8a6679e9c31425b39a01324a90 | [] | no_license | subin-shrestha/serp | a351b6e6d2150cf4776e40bbe836b77faec20d8f | 12c3afb89fcfdcbd12bcccb4d8800451d1ba90b3 | refs/heads/master | 2023-06-11T17:03:43.150090 | 2021-07-11T17:12:20 | 2021-07-11T17:12:20 | 384,876,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27 | py | from .base import BigQuery
| [
"developer.shrestha@gmail.com"
] | developer.shrestha@gmail.com |
3d32ebb00bb6348dc738fcf15c63cb0e9e5a4f2f | ef0a3d92fcf3c9594164dd0403060fb4b6f8906c | /public/DemoFilterStudy/python/flask_app.py | be79699151e99af4c607a9097dda8c12590b8815 | [
"MIT"
] | permissive | npmcdn-to-unpkg-bot/showroom | a009574d7e5348893cd7834242226b62a7541638 | 82b510bb5f0b90e3812c5cef74a8641f4c63ba09 | refs/heads/master | 2020-12-31T03:16:49.004089 | 2016-09-02T03:26:46 | 2016-09-02T03:26:46 | 67,319,361 | 0 | 0 | null | 2016-09-04T01:19:39 | 2016-09-04T01:19:39 | null | UTF-8 | Python | false | false | 6,913 | py | import flask, tempfile, json
import numpy as np
from numpy.polynomial import Polynomial
import CP
# import skrf as rf
def WriteString2TempFile(text):
fp = tempfile.SpooledTemporaryFile(max_size=10000000, mode='r')
fp.write(text)
fp.seek(0)
return fp
app = flask.Flask(__name__)
app.debug = True
@app.r... | [
"gongfan99@hotmail.com"
] | gongfan99@hotmail.com |
24ca64c791a6363b0fb20221fb90310f5b2726a0 | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/cpinfra/smmhbprofile.py | f5a14103adc0a12a62409586a352062bfa85ab3b | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 4,962 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
bb2a8f31ab415392935e863391ce83b2fb47d10b | fdf2ed095c39c6e8a0c6427208e27fd54ec78567 | /20160311 - 027/config.py | ba43c9306c00bf8274410887be334c0c438de817 | [] | no_license | emithongle/AddressSegmentation | f23278248ce3075dfd652f6382ac3d6805bb36be | 101d5b38fa3f72e60f269819e3b69232d511870d | refs/heads/master | 2021-01-10T12:38:41.734617 | 2016-03-31T03:00:32 | 2016-03-31T03:00:32 | 52,435,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,381 | py | __author__ = 'Thong_Le'
import json
import datetime
def readFile(file):
strList = []
infile = open(file, encoding="utf-8")
for line in infile:
strList.append(line)
return strList
def loadJson(file):
try:
return json.loads(''.join(readFile(file + '.json')))
except:
retu... | [
"thong.le@emichat.com"
] | thong.le@emichat.com |
b46e4fb148f61daad9e93cfd7197d5964cefc117 | 8dd8f2221364d595608ba9b35bfb45de940f7f42 | /hth/music/tests/test_admin.py | 2a05fb9586a10f9d7ef53cab08df0df2baa433c2 | [
"MIT"
] | permissive | bhrutledge/jahhills.com | b7311a4cc2c9b7b640a71b70f009f42721f48b95 | 41446cd2c560bbc544798c424ef0ddc97bc2d2f5 | refs/heads/master | 2023-08-17T23:25:15.620046 | 2023-08-04T20:38:25 | 2023-08-04T20:38:25 | 22,381,151 | 1 | 1 | MIT | 2023-02-11T01:09:40 | 2014-07-29T13:40:46 | Python | UTF-8 | Python | false | false | 11,361 | py | import vcr
from hth.core.tests.utils import date_format, from_today
from hth.core.tests.selenium import AdminTestCase
from .factories import PublishedReleaseFactory
class ReleaseTestCase(AdminTestCase):
def test_can_create_release(self):
# Ryan logs into the admin
self.adminLogin()
# ... | [
"bhrutledge@gmail.com"
] | bhrutledge@gmail.com |
de4412cd89477a7a2bece3e61b2cd12e8c48dd4c | e33561bdec2fe3dec476fc5b2ebcd3ae99cfddc3 | /3_match_making/match_making.py | 07d5f26ee5dd94bdf3b8d185bb0ad8abb6a0a877 | [] | no_license | gustavolio/algorithm_project_exercicies | b5b1ccfdcfdecff54befc29eb849ac1533048642 | 64baf4ab397170d6b77fb6965436263f181b7948 | refs/heads/master | 2023-05-14T15:05:16.680610 | 2021-06-04T19:56:08 | 2021-06-04T19:56:08 | 366,484,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,426 | py | __author__ = "Gustavo Lima de Oliveira"
__copyright__ = "Copyright 2021"
__license__ = "GPL"
__version__ = "1.0"
__email__ = "g.cdcomp@gmail.com"
import numpy as np
import sys
matrix = []
input_string = sys.stdin.read()
input_string = input_string.split("\n")
input_string = input_string[:-1]
for line in input_stri... | [
"g.cdcomp@gmail.com"
] | g.cdcomp@gmail.com |
9c25eba5c4be4760d0bee0bd5f91c3e14c2723e6 | 7d19fc76ca4ab8dd65630888b2010737df40de03 | /backend/pyramid/v1/www/www/app/core/session/providers/postgresql.py | 245890275ee4a16e5f63dff5a33a2bf2739ce0c7 | [] | no_license | beowulf1416/mura | a75f1694c5b3e015bc1919a7ee5ed252b9331664 | a56ed637428d39eb20fff67811a44a07cd064453 | refs/heads/master | 2020-04-16T14:36:45.378756 | 2019-03-03T14:36:24 | 2019-03-03T14:36:24 | 165,673,771 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,987 | py | import logging
log = logging.getLogger(__name__)
from www.app.core.data.providers.postgresql import PostgreSQL
class SessionPostgreSQL(PostgreSQL):
def __init__(self, connection):
log.debug('SessionPostgreSQL::__init__()')
super().__init__(connection)
def session_create(self, session_id):
... | [
"beowulf1416@gmail.com"
] | beowulf1416@gmail.com |
08c0bf47856f23c7c5a4d9a6dd0c2054d7874622 | 21fb2e8c6d7a3a7d0fdfc14433e1ddc5968e010e | /vitor_django_admin_user_profile/mysite/core/migrations/0001_initial.py | 255561ee4b2826a009877c6b7f17cb7603ec7d6b | [
"MIT"
] | permissive | alicanakarin/django_projects | 45d1703492622075347ce740738400bbbf1b02af | 03ad88ddf83c632b7009494c6e53711495916d47 | refs/heads/master | 2023-01-23T07:39:10.250108 | 2020-11-30T12:07:32 | 2020-11-30T12:07:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,169 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-11-23 13:34
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migratio... | [
"selcukakarin@novumare.com.tr"
] | selcukakarin@novumare.com.tr |
19fa3ca24c4c2105a2dca826a476a7cfd62e1408 | 8494d080f8523695d5fd96bc4dec493784b97088 | /experiments/migrations/0001_initial.py | ff0f69e7783cb0e6cc8e0a2efd5ac5f01450f651 | [] | no_license | mumbihere/mrt | 8c6be6a7e72332654b6cbec43546634ea03da97d | 6c6b806661909c78fec92dff4c8b89937c4f2f2b | refs/heads/master | 2021-09-10T18:46:57.274518 | 2018-03-30T23:49:34 | 2018-03-30T23:49:34 | 108,175,265 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,588 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-11-07 05:16
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operation... | [
"monicahwambugu@gmail.com"
] | monicahwambugu@gmail.com |
d23a62be77841be567bbf45f1f607f06ec29e2f6 | 4f9e30387653a61cdc7c02fa1731c02aaea8aa59 | /CS370/HackerRank-Crossword-Puzzle/crossword_puzzle.py | f5a7c3f130ba0bc7758c4d18462340bb41ada8f9 | [] | no_license | jcafiero/Courses | 03a09e9f32e156b37de6da2a0b052ded99ca4d07 | c82bc4bbc5657643dabc3a01fadfd961c33ebf5e | refs/heads/master | 2022-02-17T14:40:27.073191 | 2019-10-06T23:58:23 | 2019-10-06T23:58:23 | 103,605,315 | 1 | 1 | null | 2019-10-07T00:05:39 | 2017-09-15T02:36:30 | JavaScript | UTF-8 | Python | false | false | 4,191 | py | # Catherine Javadian, Jennifer Cafiero, and Jordana Approvato
# We pledge our honor that we have abided by the Stevens Honor System
solution = []
spaces = []
blanks = []
class Space:
def __init__(self, start, length, vertical, taken):
self.start = start
self.length = length
se... | [
"noreply@github.com"
] | jcafiero.noreply@github.com |
4bb831825988c63924d86c83523c9a9c0d21813d | abc1a497c41ddd8669c8c41da18af65d08ca54e4 | /AnalysisE/fit/Cs137/1ns/delay_spectra_temp/2exprecomb/fit.py | ae8a15093edd6f37f5e6c5c42797d72bf20226e6 | [] | no_license | gerakolt/direxeno_privet | fcef5e3b654720e277c48935acc168472dfd8ecc | 75e88fb1ed44fce32fce02677f64106121259f6d | refs/heads/master | 2022-12-20T22:01:30.825891 | 2020-10-04T06:01:07 | 2020-10-04T06:01:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,907 | py | import numpy as np
import matplotlib.pyplot as plt
import time
import os
from fun import Sim, q0_model, make_P, model_area, Sim2, make_3D
import sys
from scipy.optimize import minimize
from scipy.stats import poisson, binom
from scipy.special import erf as erf
import warnings
from minimize import minimize, make_ps
pm... | [
"gerakolt@gmail.com"
] | gerakolt@gmail.com |
cf78300fe5a02b86bd8f9b37a4c8f65fc3eeb741 | 8353773fb3d8a544e3f0011ca6b78b3d194d2ce6 | /pics/urls.py | 1241168509927bbfc698e38a92b455dc840fef37 | [] | no_license | skbhagat40/picApp | 36e9dfcf7b5ec560a0217d861990757ebe7a1b66 | de48c6362eee705a3d5238c13f0bf5120e9f4780 | refs/heads/master | 2022-12-12T04:59:45.137332 | 2019-05-05T04:37:36 | 2019-05-05T04:37:36 | 180,146,647 | 0 | 0 | null | 2022-11-22T03:13:51 | 2019-04-08T12:42:33 | Python | UTF-8 | Python | false | false | 1,214 | py | from django.conf.urls import url,include
from django.contrib import admin
from django.urls import path
import pics.views as views
app_name = 'pics'
urlpatterns = [
url(r'^$',views.index,name='home'),
path('login',views.login_function,name='login'),
path('register',views.register,name='register'),
path(... | [
"skbhagat40@gmail.com"
] | skbhagat40@gmail.com |
3632d5c1b6ba9dc034f506f109c23baf9c7f3278 | 385ee88b22895d939c63e14c7b05efb1cf2ff49d | /conibtoky.py | 487fe13675a909c5d010f2c9304400fbbe8adcff | [] | no_license | ibikimam/mosh | f197f16df549684efefb3b025036bcd25ab29268 | b9e28da720ba341778eb9186a5ae44002174b285 | refs/heads/master | 2020-06-05T10:09:48.418309 | 2019-07-23T20:08:06 | 2019-07-23T20:08:06 | 192,404,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 652 | py | """ weight = input('please type your weight \n')
w = int(weight)
unit = input('please select (L)Lbs or (K)Kg \n')
u = unit
if u == "l" or "L":
total_weight= w*0.45
print(f"your weight in Kgs is {total_weight}Kg")
elif u == "k" or "K":
total_weight= w*(1/0.45)
print(f"your weight in pounds is {total_w... | [
"ibik.imam@gmail.com"
] | ibik.imam@gmail.com |
8509361ecb36488d762ab9ea47cef6800b8fbbc9 | 4d70309ad7b3618d70217f6a26fd0100920b8da7 | /TutoDjango/admin.py | 0319b52de16aff38f7df6d1d83f6b43c9ce7a5a4 | [] | no_license | loicowatta/TutoDjango2 | d4e6aee5ef948e75045be6c2a5ca18dc4b5d0c3e | e803b6801eb6a58c24a3688006c5b8b6096ed3ae | refs/heads/master | 2021-04-26T23:12:06.427404 | 2018-03-05T16:58:59 | 2018-03-05T16:58:59 | 123,946,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | '''
Created on 26 févr. 2018
@author: loico
'''
from django.contrib import admin
from TutoDjango.models import Faculty, Campus, Job, Cursus,\
Employee, Student, Message
admin.site.register(Faculty)
admin.site.register(Campus)
admin.site.register(Job)
admin.site.register(Cursus)
admin.site.register(Em... | [
"'loic.owatta@wattys-conseil.com'"
] | 'loic.owatta@wattys-conseil.com' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.