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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
27d1abea71bdeb076db7ac9774dd3e0a4cea63bc | 972830069346a40be765dacc9546b95ecc89cd52 | /2017/d06.py | d79011bf3d3cf66016dd288f6c1de1ceab6e6c7f | [
"MIT"
] | permissive | m1el/advent-of-code | 5f1d1aff0a4d68f5f4bc2758d5b4c49f0ab70e44 | 9799fdc0400ffe95ca4470ea85e4d33e3293fcca | refs/heads/master | 2022-07-11T00:07:44.712952 | 2022-07-04T15:04:50 | 2022-07-04T15:04:50 | 160,532,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | with open('06.txt') as fd:
data = [int(n) for n in fd.readline().strip().split('\t')]
def highest():
mx = -1
ix = -1
for (i, x) in enumerate(data):
if mx < x:
(ix, mx) = (i, x)
return (ix, mx)
def stri():
return tuple(data)
seen = {}
c = 0
l = len(data)
while True:
s = stri(... | [
"m1el.2027@gmail.com"
] | m1el.2027@gmail.com |
3e2d392f64eaf656545c2de8d9542e97c6bf0913 | 5612563b8f0d65b51c62e860e8b56219a01fda8f | /assopy/dataaccess.py | 606480f606f91fbd3dc31d24116b0b8bdcb0d18e | [
"BSD-2-Clause"
] | permissive | borjaayerdi/assopy | 59830b46e3540a3c413bfd28d87f14b47489587e | 72ec74d3e5715d34cb72d3d41f3cb05e8bdb1064 | refs/heads/master | 2021-01-17T21:39:43.903150 | 2015-02-18T19:57:15 | 2015-02-18T19:57:15 | 30,884,518 | 0 | 0 | null | 2015-02-16T19:34:06 | 2015-02-16T19:34:05 | null | UTF-8 | Python | false | false | 4,502 | py | # -*- coding: UTF-8 -*-
from assopy import models
from conference import cachef
from conference.models import Ticket
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
from django.db.models import Q
cache_me = cachef.CacheFunction(prefix='assopy:')
def user_data(u):
return {
... | [
"dvd@develer.com"
] | dvd@develer.com |
382f5f8646b4091b64a3993e4837f70508663a68 | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/gensim/2018/12/keyedvectors.py | 0b2be1d732c1683206a01a2df672c98c0f737f6a | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 85,738 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Author: Shiva Manne <manneshiva@gmail.com>
# Copyright (C) 2018 RaRe Technologies s.r.o.
# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html
"""This module implements word vectors and their similarity look-ups.
Since trained word vectors are ind... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
05f1ff75aaabab4662ce058ba8b8a86649d0ea4c | 294c7d1f1e4ff7f359acfa38f6f690d3fee53e42 | /.c9/metadata/preview-/changemedemo/changemedemo/lambda_function.py | 0ba8a7addbeafb8dc2b5bb26f59f219fb88f1ef6 | [] | no_license | edeediong/AWS-Lambda-Intro | 6b19a854175a03aadbb570f47761d7245cf6eccb | ceeec2ed40e9ffbe8a755ff9a388717a788a77dd | refs/heads/master | 2022-11-07T09:31:38.615833 | 2020-06-25T08:31:17 | 2020-06-25T08:31:17 | 274,862,878 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 967 | py | {"changed":false,"filter":false,"title":"[P] /changemedemo/changemedemo/lambda_function.py","value":"","undoManager":{"mark":-1,"position":-1,"stack":[]},"preview":{"path":"/changemedemo/changemedemo/lambda_function.py","previewer":"lambdaInvoke","mode":"apigateway-local","form":{"lambda-remote":{},"lambda-local":{"fun... | [
"ec2-user@ip-172-31-57-182.ec2.internal"
] | ec2-user@ip-172-31-57-182.ec2.internal |
81e6ea9344173308819145981481d23f540ea99a | 83a72b31b0f6e2b6eb4a2bf0890b07134a840dc2 | /searchInRotatedArray.py | 776e6c03026a269781ed2e7a49d0b99ea60424fa | [] | no_license | JaySDSU/LeetCode | 2e5fa780dcc26599266399d4fce30ffb77966834 | 2ea5e7b491af094ea5db8e5074a4de50238373fc | refs/heads/master | 2023-07-23T07:25:15.092215 | 2021-08-09T05:49:19 | 2021-08-09T05:49:19 | 392,009,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 781 | py | class Solution:
def searchList(self, nums : List[int], target:int) -> int:
if not nums:
return -1
start = 0
end = len(nums)-1
while start<=end:
mid = (start + end) // 2
if nums[mid] == target:
return mid
... | [
"pateljay13061998@gmail.com"
] | pateljay13061998@gmail.com |
2ee1568c351b94eecfd0c415e968348cfa926b88 | 92df29fde52063157df675c0d3affaee5b51f7f7 | /test/test_live_cases.py | 92c24ea368e83b785c2a14a7c744f90c99706ded | [] | no_license | neilmarshall/book_log | ffd005721ef243df9c52c14f0e06a6fd4e111fd2 | 9395a369f6fe3fa538fad94a2f92c338858ca1ea | refs/heads/master | 2021-08-26T06:41:52.210748 | 2017-11-21T23:39:45 | 2017-11-21T23:39:45 | 109,895,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,799 | py | """
Test module for selected actual cases - validates cases work generically
"""
import datetime
import os
import sqlite3
import unittest
from book_log.add_record import parse_command_line
from book_log.db_functions import create_record
class Test_entry_1(unittest.TestCase):
def setUp(self):
self.input... | [
"neil.marshall@dunelm.org.uk"
] | neil.marshall@dunelm.org.uk |
987910fba58c39ee57d441d3328788e4b7c65ed1 | 0f0330ca4549d630e343b0d24e531d7693161017 | /client_area/forms.py | 53edd8af789fd015ab2f03dda8269ce1ad8c3353 | [] | no_license | EricHanLiu/sparkview | 3e98026c660b1583a7aa1f9c52f063566078df43 | 7ab6d7a089d281b45c3788116018e97a90b81b92 | refs/heads/master | 2022-11-29T02:29:03.132206 | 2020-08-10T21:55:49 | 2020-08-10T21:55:49 | 286,585,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,247 | py | from django import forms
from client_area.models import Industry, Service, Language, ClientType
from user_management.models import Member, Team
# Only used for validation, form will be created manually
class NewClientForm(forms.Form):
account_name = forms.CharField(label='Account name', max_length=100, required=... | [
"s.creamer@hotmail.com"
] | s.creamer@hotmail.com |
9681317187fa25d9b5637c216754f9aac240555b | f457942f0921e2c4be6245113db20ae014f0d709 | /src/othermodules/instructions.py | 6b325e58e7d4b1415c2631efe3fc280fb2195080 | [] | no_license | vilkiida/ot-harjoitustyo | de75882347d80264655259c94f949cad9b6a405f | 38736914bad77e233b871c8984bd0db153150fc5 | refs/heads/master | 2023-04-28T14:32:21.751309 | 2021-05-16T20:52:02 | 2021-05-16T20:52:02 | 349,999,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,022 | py | """ Moduuli, joka sisältää luokan Instruction
"""
import pygame
class Instruction:
""" Luokka, joka vastaa peliohjesivusta
Attributes:
running: boolean-arvo, joka kuvaa onko peliohje sivu käynnissä
screen_height: Lukuarvo, joka kuvaa ruudun korkeutta pikseleinä.
screen_width: Lukuarvo, j... | [
"iida.vilkkinen@gmail.com"
] | iida.vilkkinen@gmail.com |
2a1118f1bef8183c361ef0d97d6432e3d17c3d9a | 68a18bb95884d99c183c1d3f50dac6e91c32a99c | /libs/utils/android/workloads/youtube.py | 018bc036716d1e4f7eff83be76ac6fad6045085e | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | JaviMerino/lisa | 805daf6926bc4d5795dbc2bde62cdf7756b73195 | e28056b66558111914bc916197fe2d6c40406a7c | refs/heads/master | 2020-04-07T15:57:45.294861 | 2016-08-12T17:41:05 | 2016-08-12T17:41:40 | 50,348,082 | 0 | 0 | null | 2016-01-25T12:06:31 | 2016-01-25T12:06:31 | null | UTF-8 | Python | false | false | 3,196 | py | # SPDX-License-Identifier: Apache-2.0
#
# Copyright (C) 2015, ARM Limited and contributors.
#
# 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
#
# ... | [
"patrick.bellasi@arm.com"
] | patrick.bellasi@arm.com |
2d66aa32e8f41d6cbbe0abe2b660d434c7706083 | 4fd9d9d63454c3c7fdc5e3df35616f495a652b9c | /main.py | e0020edd27189e92c1826da119c6967acf3030f0 | [] | no_license | osmandi/flask-todos | 0786e816b21b9618b0f3def2392111541d551d2b | e0cf8f63947a08b7fd694ac35b07f62a7e89c2aa | refs/heads/master | 2020-07-07T02:12:34.969449 | 2019-08-19T16:46:43 | 2019-08-19T16:46:43 | 203,212,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,536 | py | from flask import Flask, request, make_response, redirect, render_template, session, url_for, flash
import unittest
from flask_login import login_required, current_user
from app import create_app
from app.forms import LoginForm
from app.forms import TodoForm, DeleteTodoForm, UpdateTodoForm
from app.sqlite_service impo... | [
"tito@pop-os.localdomain"
] | tito@pop-os.localdomain |
e4974ae3e1ebb948ad5046cd078b7652cec19a7d | 98bd568f250878fb44a461d7dda589d94eba5e81 | /IRIS/User/migrations/0001_initial.py | da70519d6ee1b81c26c3c500d049fdbab0f8c3c6 | [] | no_license | ashueep/IRIS-191CS111-Django | fdf3f5711ebd7a9cd9bd652c40e63e85e5504e9e | 87c853a4c4de7fa6bb9310ceb50a0f5b6b48c576 | refs/heads/main | 2023-05-09T09:29:48.492133 | 2021-05-27T08:28:27 | 2021-05-27T08:28:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,652 | py | # Generated by Django 3.2.3 on 2021-05-19 11:42
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',
fields=[
('id', models.BigAutoField(... | [
"ashuanand29@gmail.com"
] | ashuanand29@gmail.com |
f8198ef03651058885633642782553f4587f8206 | 3ed50abe83f5050e48f98529d5f79d1033ad3739 | /Project 1 - regression models from scratch/assess_forest.py | 98f482f1a42e459558f7048b638d10801f2af709 | [] | no_license | michalis-theodosiou/machine-learning-coursework | c5358f129338a0801040499bed1995fac597f6cf | a157c8b472e7dc526c034afc782c0c7f3bb9613a | refs/heads/main | 2023-05-20T01:34:18.221544 | 2021-06-10T20:27:00 | 2021-06-10T20:27:00 | 375,707,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,099 | py | import numpy as np
def predict(point, rules):
prediction = None
while prediction is None:
feature, threshold = rules['feature'], rules['threshold']
if point[feature] < threshold:
rules = rules['left']
else:
rules = rules['right']
prediction = rules.get('... | [
"theod.michalis@gmail.com"
] | theod.michalis@gmail.com |
d76f3e749052741e35f1ba9c159c66e03c6db855 | 04e43e0217b160bf46a49f7626c4ccdb87aca693 | /kaggle-digit-recognizer/scripts/search-annoy-svd.py | 3f014540f0b5c8a361f28ed3d039c4368c37b028 | [] | no_license | stefansavev/random-projections-talk | d8656100c4c06e086ae243a02f357067f914a7d6 | 82da8a6a6f9c0df447cb28efec3f3f0538fc2723 | refs/heads/master | 2020-04-17T15:53:56.031501 | 2015-06-16T17:33:54 | 2015-06-16T17:33:54 | 29,430,583 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | #!/home/stefan2/anaconda/bin/python
from annoy import AnnoyIndex
#from annoy import AnnoyIndexEuclidean
num_features = 100
num_points = 42000
num_nn = 100 #number of nearest neighbors
f='../data/index.annoy'
index = AnnoyIndex(num_features)
index.load(f)
results = open('../data/annoy-results.train.txt', 'w')
print... | [
"st.savev@gmail.com"
] | st.savev@gmail.com |
3637ccba37f2b455eff1a19a62599fdc457753b2 | c36dae60873dfe6a201a0fad64bfef788491a078 | /blog/users/forms.py | 310957748e4e9767fbc5e10dacfe6a3151c52e02 | [] | no_license | Catalyst-J/flask-social_company_blog | 0cf32191835bfaf3585852404a385aba9e1c8b31 | aadda1cdd5e29326ffc26b01476ef032795505f2 | refs/heads/master | 2022-12-13T00:38:26.153348 | 2020-08-28T12:33:47 | 2020-08-28T12:33:47 | 289,460,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,208 | py | # Create, Update and Delete Users
# Profile Image Handler
# For the forms itself
from flask_wtf import FlaskForm
# Form structure and validators
from wtforms import StringField, PasswordField, SubmitField
from wtforms.validators import DataRequired, Email, EqualTo
from wtforms import ValidationError
# This is used f... | [
"43449794+developer-jx@users.noreply.github.com"
] | 43449794+developer-jx@users.noreply.github.com |
2e7ad78c77bba2ab4ebdb19f307369b7750b6e3c | 02d38aee7f2614cc6676079d0533345b9aefcb02 | /day_03.py | 9740d84912810658ed425b25cae9a3eac892f79b | [] | no_license | ohmycloud/advent_of_code_2016 | 2cc51ead145184ef0be0ee0b4dbd5b7d5e92fc0c | 5e529c94e34a35ddd7aa13112a5bdd3965b6c2c5 | refs/heads/master | 2020-04-08T20:09:08.199736 | 2017-10-03T14:57:27 | 2017-10-03T14:57:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 869 | py | from itertools import chain
with open('./sources/03 - Squares With Three Sides.txt', 'r') as infile:
puzzle = infile.readlines()
horizontal = [[int(value) for value in row.split()] for row in puzzle]
vertical = list(chain.from_iterable(zip(*horizontal)))
def is_triangle(sides):
a, b, c = sorted(sides)
r... | [
"miran.tuhtan+git@gmail.com"
] | miran.tuhtan+git@gmail.com |
32fcfff7d028f265f33080ecadc38f96f6a6f3a0 | a7903bfc232a6b3a7a7c0ddba6b26811ed2f97c0 | /Week_04/05_word_ladder.py | e6bdb177618721e960bab8b70e5e25f8861449b1 | [] | no_license | 30bruce/algorithm009-class02 | cc836712c25793683ced9feb591a86578d0871cf | 62fd740b2308fbfe3647d1298b044e4cc75362bb | refs/heads/master | 2022-12-11T14:59:55.467254 | 2020-07-26T15:13:59 | 2020-07-26T15:13:59 | 264,802,001 | 0 | 0 | null | 2020-05-18T02:15:52 | 2020-05-18T02:15:51 | null | UTF-8 | Python | false | false | 1,591 | py | # -*- coding: utf-8 -*-
# Created at 2020-06-14
from collections import defaultdict
class Solution(object):
def ladderLength(self, beginWord, endWord, wordList):
"""
:type beginWord: str
:type endWord: str
:type wordList: List[str]
:rtype: int
"""
if endWo... | [
"snowball0@qq.com"
] | snowball0@qq.com |
6b1aa93217555661b6d06a531a5e4ed97537083f | 59932cacaf1e5f16f628022a17efa6ddb4cae03d | /beh.py | 58d9892f0af565f1bbdf2af160d260b4aa8299e5 | [] | no_license | sevta/justsTestPhp | 55b105049d3918560d431f98ed9c75bca62df365 | 9f5d850a1a3a5179a2dfacb99f2fb8c9e4398bf4 | refs/heads/master | 2020-03-31T21:21:18.811657 | 2018-10-11T16:33:48 | 2018-10-11T16:33:48 | 152,577,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37 | py | bintang = {
"usernmae" : "tesi"
} | [
"septa.saputra@aitindo.com"
] | septa.saputra@aitindo.com |
7c6a75b1e01c377e5be40459363ca602d8c7bc15 | ccf649526d34ba7ca68468ef6037de483c26a308 | /ApiTestCases/test_Signup.py | 7c382537e7b3b6004ec3532e632ca185ef05131d | [] | no_license | engineer4automation/PytestApiAutomation | 79c4e0063591da4a139651f56b9af48f6e9b855e | 39b32e738da825c725f81acdb59c854704208f08 | refs/heads/master | 2023-02-05T12:33:58.233426 | 2020-12-21T10:10:30 | 2020-12-21T10:10:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,924 | py | import json
import jsonpath
import pytest
from Utils.Calls import SignupApiCall
from Utils.Calls import GenericMethods as Data
@pytest.mark.order(1)
def test_create_new_user_invalid_email():
response = SignupApiCall.signup_user(Data.get_config('INVALID_EMAIL'), Data.get_config('VALID_PASSWORD'),
... | [
"arslan@kinzoo.com"
] | arslan@kinzoo.com |
4c53b27213a853c5561cddf5b2adc97b3796de69 | 0e40099ea6c1506c5e77403170b06e796dffb443 | /blog/urls.py | 276fdeaeaad722f16bc7988b711f577b55f9c4d2 | [] | no_license | sevenstarchen/Django-Blog | b33e2f4621272a12cec652736c6dc936eb204c64 | 03246a49ec18ac89c3f1313ea6c8a4ff0d714811 | refs/heads/master | 2020-03-21T16:26:23.898884 | 2018-06-27T13:37:43 | 2018-06-27T13:37:43 | 138,769,796 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,154 | py | """myblog URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"1124195636@qq.com"
] | 1124195636@qq.com |
e9ec52b3a17bacb2dda1181371225ad96a07f778 | 90e4fe85b70221ae82f99ca6930da980ef8f674a | /Anul_1/Semestru_1/FundamentalsOfProg/Seminar/s08p1_I6/src/store/ui/console.py | e9bdf474e451dc086c98f9ea7956991ddff0ca45 | [] | no_license | stefangeorgescu970/university-assignments | 108235e047b963efb6cd1b952f6b96849e1dc3d3 | 9253cc084b74a62035c96a4a2accfbba43812c16 | refs/heads/master | 2022-12-10T14:49:20.299356 | 2020-04-28T14:05:41 | 2020-04-28T14:05:41 | 259,648,446 | 0 | 0 | null | 2022-12-07T20:33:05 | 2020-04-28T13:43:02 | C++ | UTF-8 | Python | false | false | 2,116 | py | """
@author: radu
"""
import traceback
from store.domain.dto import OrderDTO
from store.domain.validators import StoreException
from util.common import MyUtil
class Console(object):
def __init__(self, product_controller, order_controller, statistics_controller):
self.__product_controller = product_cont... | [
"stefan.georgescu.970@gmail.com"
] | stefan.georgescu.970@gmail.com |
b0d49ede7fcb4f77322316bd569c845ef365b8fe | b572d4143100cb1d3ad4f5268552251ca7839c39 | /logistic_regression.py | 9a0cd11f2d06b772d2c1668a3c18265ae91e7f1e | [] | no_license | y3nk0/Neural-Networks | b45e621b2ae0e23e586036a00954123cae62c67d | ec35f12744213331e8996c5f036f8f5f5551f57e | refs/heads/master | 2021-01-10T01:12:09.541935 | 2015-10-05T12:52:01 | 2015-10-05T12:52:01 | 43,013,341 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,229 | py | import numpy as np
import matplotlib.pyplot as plt
from decision_boundary import *
from baseFunctions import *
from polynomial_transform import *
# Load the dataset
dataset = 'double_moon'
#dataset = 'linearly_separable'
# Load the dataset
with np.load('./' + dataset + '.npz') as data:
X = data['X']
... | [
"rob.cs.aueb@gmail.com"
] | rob.cs.aueb@gmail.com |
5ecc58eede111c0aea4fbec6ac226823454e5ee5 | 74ba62a3e00dedb7b6bc51ae0c334d49fb76cdbd | /venv/Scripts/rst2odt.py | 872f444da9d9e17f0ffa73ad2158c4abc10a4e01 | [] | no_license | venkateshgaddam/Python-AWS | 28a1caf18dd01e21d62ebcff334970839c5395df | 26545bc6a60ad924f4d6b82ba88410c9bc085d16 | refs/heads/master | 2020-07-03T05:34:27.594668 | 2019-08-11T18:46:37 | 2019-08-11T18:46:37 | 201,801,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | #!C:\Users\vgaddam\PycharmProjects\Python-AWS\venv\Scripts\python.exe
# $Id: rst2odt.py 5839 2009-01-07 19:09:28Z dkuhlman $
# Author: Dave Kuhlman <dkuhlman@rexx.com>
# Copyright: This module has been placed in the public domain.
"""
A front end to the Docutils Publisher, producing OpenOffice documents.
"""
import ... | [
"venkateshgaddam29@gmail.com"
] | venkateshgaddam29@gmail.com |
5896f534020b7c81303b7f84f245396e5cd528c9 | 12b23e6286de773900cbebb0aa4834c0be2f5c2e | /motiondetect.py | 47007cb6646dfac519ae928557d6669c26e62847 | [] | no_license | uname/smilecheck | b8b6a8d18dc282323be1f59213412b426d07059e | 7214beca56a7410edcc67bebbac46f29a314ead9 | refs/heads/master | 2021-01-20T13:03:51.379413 | 2017-02-22T13:21:22 | 2017-02-22T13:21:22 | 82,675,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,462 | py | #-*- coding: utf-8 -*-
import cv2
import time
import json
import urllib2
import urllib
wx_server_url = "http://115.159.213.156/motion"
motion_limit_value = 123000
limit_value_count = 5
def on_motion_detected():
print "motion detected"
res = urllib2.urlopen(wx_server_url + "?motion_str=19", timeou... | [
"apache@tencent.com"
] | apache@tencent.com |
79a2402194ecbbae6abc5d2b85955e68b39c8c39 | 19da1d10316f8e62165fa4c89d2bdf6f98fd2487 | /booksapp/tests.py | b50e0ad4d629935ec634a99db812d7d4edcb8afd | [] | no_license | zhalelov/booksapp | 6aab6698f9cd6d0535ecd4b2b2e92df8f4e85791 | 231a6720a7d3d7e8605c8929bf38b925695bb5eb | refs/heads/master | 2022-12-25T03:39:01.545375 | 2020-01-14T14:37:40 | 2020-01-14T14:37:40 | 229,946,402 | 0 | 1 | null | 2022-12-12T07:36:27 | 2019-12-24T13:25:24 | Python | UTF-8 | Python | false | false | 44 | py | from booksapp.models import Book_info
dir()
| [
"e.zhalelov@gmail.com"
] | e.zhalelov@gmail.com |
3f6d392bfce47bee3d26b87900dc849e588e0e65 | eb48193b6619b9c07b73826e8223e3fde87b4a8c | /s3upload.py | 1f5f2b03ab6c6e288d176a01a74ea9695e108ba8 | [] | no_license | Boomerangz/izzzmusic | 4cfc00058cc67062ad85c1ec88d1725e0d2bb73f | c51390f2c83b3b57d2c37a4d62a38949c10bd5f0 | refs/heads/master | 2016-09-01T05:39:25.745898 | 2016-01-07T08:05:33 | 2016-01-07T08:05:33 | 48,540,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 784 | py | import boto
AWS_ACCESS_KEY_ID = 'AKIAJGXZ2FRDRQHCDFIA'
AWS_SECRET_ACCESS_KEY = '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'
path = '/Users/igorzygin/Dropbox/developing/python/MyMusic/mymusic/media/music/audio-file-ITCZJ-6121552141.mp3'
name = path.split('/')[-1]
bucket_name = 'izzmusic1'
conn = boto.connect_s3(AWS_ACC... | [
"igorzygin@Igors-iMac.local"
] | igorzygin@Igors-iMac.local |
f8ec34675fd061a45780e4b7f1acf32caf7d32ba | 6e28774db9a88decf243469df950a2fb3d0f5a77 | /space/earth/migrations/0002_auto_20170501_1722.py | 65e888499614a3c2a197df51d87db42ee8f8a950 | [] | no_license | gregory888/test | 04142c0a9a3835e6f6cd6b18d176b0908dc74820 | af7e86f1e2f579e362832451420171172d1e4399 | refs/heads/master | 2021-01-20T08:29:33.302514 | 2017-05-03T13:14:49 | 2017-05-03T13:14:49 | 90,150,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,655 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-05-01 17:22
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('earth', '0001_initial'),
]
operations = [
migrations.AddField(
... | [
"bomzik.bomzara@gmail.com"
] | bomzik.bomzara@gmail.com |
490e204bc88e69d4ea255b9c9b4e172ee01ae582 | eb26f2a53339cc9880c193225919bd37078113aa | /flask/mysite/app.py | 1ce6098bfcafb1745e57a8640c7e316044ddd05d | [] | no_license | nnyong/TIL-c9 | c2590ea94c13221a45f274beb22a0f03b09bf6d4 | 2e2803ee60467ffbad7d9a704b0029476ebead0b | refs/heads/master | 2020-04-17T17:17:53.798516 | 2019-05-02T03:08:56 | 2019-05-02T03:08:56 | 166,777,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,614 | py | import os, csv
from flask import Flask, render_template, request
app=Flask(__name__)
@app.route('/')
def index():
return 'Hello World!'
@app.route('/greeting/<string:name>')
def greeting(name):
return f'반갑습니다! {name}님!'
@app.route('/cube/<int:num>')
def cube(num):
result=num**3
return str(res... | [
"jo.youthful@gmail.com"
] | jo.youthful@gmail.com |
f54381f1ffebcda59b4c3040578e48856029dbe0 | bcc9614479e4e534f7d8bd751d0c3b13e20c8fc0 | /imdbMovies.py | b4f6b23e54869d31c0b41ac7e6bbeafddbea04b4 | [] | no_license | moizsiraj/IMDb-Web-Scrapper | cb701cc40cc10c1c9b7b9dcc843b1fa53d8fb169 | 027a39c913417dfb9dab49ee6fe5458ef80e70c4 | refs/heads/master | 2023-02-01T14:40:11.776219 | 2020-12-17T08:52:43 | 2020-12-17T08:52:43 | 322,027,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,269 | py | from selenium import webdriver
from bs4 import BeautifulSoup as Soup
import re
import csv
driver = webdriver.Chrome(
'D:/Google Drive/University/7 Sem/DW/Assignments/web scrapping/chromedriver_win32/chromedriver')
file = open('yearly movies.txt', 'r')
Lines = file.readlines()
with open('MovieDetails.csv', mode='w... | [
"abdulmoiz68@gmail.com"
] | abdulmoiz68@gmail.com |
0e2f192fbff7d35982953c8757b783be7302cd2e | ae3da81fd9847f96c06dbd53368d6a6c85a785dc | /sampleRate_44100_32000.py | fd195483b15bb0c5735e13b2cb263e8f2ff5072a | [] | no_license | jiangpen/sampleRate_convert | d31cf0aa75d97909df75b912dc85e0051f233d3f | dbebed096cd7bb9e4b47f2ac3b18be2631b74026 | refs/heads/master | 2020-05-18T20:33:21.881482 | 2016-09-26T06:39:28 | 2016-09-26T06:39:28 | 41,794,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,327 | py |
from scipy.signal import kaiserord, lfilter, firwin, freqz
import scipy.signal as signal
import numpy as np
import pyaudio
import wave
import sys
from scipy.io import wavfile
import array
CHUNK=88
CHUNK32=64
fsin = 44100;
fsout = 32000;
N = 33;
upN = 8;
downN = 11;
taps = firwin(N, 1/upN)
#input data is 64 array o... | [
"Peng.Jiang@SSPTHNBPJ.sensear.lan"
] | Peng.Jiang@SSPTHNBPJ.sensear.lan |
b5282e15de95acb394286be12e7fbb957b775276 | aadb8b01cf1876f9ef4cdcb77ca4387d5283769a | /src/PtpUploader/Source/TorrentLeech.py | 86328afd44893a3190d42f7ff03350edfff30713 | [] | no_license | TnS-hun/PtpUploader | 5e645188302c2cc8d533f1e454494a85e33591db | 37f9e02bad9ea1de83f65b02b06ee56ac7504118 | refs/heads/master | 2022-04-30T11:22:10.587389 | 2022-04-14T12:57:17 | 2022-04-14T12:57:17 | 32,221,486 | 68 | 47 | null | 2018-09-15T22:47:11 | 2015-03-14T16:40:23 | Python | UTF-8 | Python | false | false | 7,480 | py | from Job.JobRunningState import JobRunningState
from Source.SourceBase import SourceBase
from Helper import DecodeHtmlEntities, GetSizeFromText
from MyGlobals import MyGlobals
from NfoParser import NfoParser
from PtpUploaderException import *
from ReleaseExtractor import ReleaseExtractor
from ReleaseInfo import Relea... | [
"TnS-hun@users.noreply.github.com"
] | TnS-hun@users.noreply.github.com |
796f9e94404bfbd727ea9d55ffaf12f66cef079a | e20af51c561a8f70c0d0e7658aeea460b7d5c96c | /appdirect/items.py | f433a1aaea249d071c9feeb02736829d7e53ae85 | [] | no_license | digtaltech/appdirect_parse | 8632c9c6adff496bee16583cd16f257686d3287a | 9472a69bddaa1dbb4cd23625516cfd9207e8a04f | refs/heads/master | 2023-03-23T07:46:33.895813 | 2021-03-08T00:00:35 | 2021-03-08T00:00:35 | 345,481,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | # Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html
import scrapy
class Urls(scrapy.Item):
url = scrapy.Field()
title = scrapy.Field()
path = scrapy.Field()
| [
"kirill.bodunoff@gmail.com"
] | kirill.bodunoff@gmail.com |
d196ace40d3e50bc4d73393b32fbfb8e088262e0 | 65f41c699be36c8783ad4ae7c14b36dffd14df41 | /Source/Executor.py | 4292ae5d489cefd2b091d4d97eadd7d8a38342b0 | [] | no_license | ThiepTruong/MyTestFramework | 25366188ba9f38d248b76ebceefecf53cf4d5bab | 1489a7cc861139699bfd6ae885c2ba1b9d11d125 | refs/heads/master | 2020-12-24T10:23:37.003804 | 2016-12-12T12:30:17 | 2016-12-12T12:30:17 | 73,086,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | #!/usr/bin/python
from Utility import WebDriver, MyLogger
import logging
#===============================================================================
# driver = WebDriver.MyWebDriver("IE", "../Driver/")
# driver.driver.get("https://tinhte.vn")
#=====================================================================... | [
"thieptruong@kms.com.vn"
] | thieptruong@kms.com.vn |
ce27677fbf940d9b39afe95eb10d9af615d08643 | 7649e3fd748111f87fd3a69d1401760bb4d112c8 | /tensorflow/lee_transsformer.py | 8f08004d354fdcb6a8fda6409b5f5c9e88fb01a4 | [] | no_license | scape1989/Bert-Coref-Resolution-Lee- | 5d5aad963528f85a846d0b0de252a95a610cebec | e8838a83581c7d99034f978d2712be60f3d5ba8a | refs/heads/master | 2022-03-15T19:11:47.893545 | 2019-10-15T23:50:20 | 2019-10-15T23:50:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,434 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
import operator
import random
import math
import json
import threading
import numpy as np
import tensorflow as tf
import tensorflow_hub as hub
import h5py
import util
import coref_ops
import conll
im... | [
"priyankpathak50@gmail.com"
] | priyankpathak50@gmail.com |
b718a4df2d5379ce056838e8b0e3bbc7f8ed09da | 2a8682d96f1d039327c6713113d7b023dd40ff3f | /stemmer.py | cf074aeb19b592e87c92b6a925f16b0dbdc34238 | [] | no_license | geniss/Search_Engine | 60ec01408e622a27878deb80fe920d5d3b7cefa4 | 2b8a4bf0c1eac86b766876b91bcee36ab1170282 | refs/heads/master | 2023-02-16T11:08:03.856419 | 2021-01-17T18:17:24 | 2021-01-17T18:17:24 | 330,404,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 738 | py | from nltk.stem.porter import PorterStemmer
class Stemmer:
__slots__ = ['stemmer', 'do_stem']
def __init__(self, do_stem):
self.stemmer = PorterStemmer()
self.do_stem = do_stem
def stem_term(self, token):
"""
This function stem a token
:param token: string of a tok... | [
"gshauli99@gmail.com"
] | gshauli99@gmail.com |
47f9a880fa119ec660ece666063f4d9ad4042def | 26e69047e16f093533667861f2bbe867fb285308 | /platforms/leetcode/island-perimeter.py | d105e007fc336dfb5e5c5b3e98f5eece72c8423a | [] | no_license | sahityakmr/Radon | 21d2fb2c53d6464b9f26c254c3823d675f8fdc79 | 081e9de7938c86e4844e9ee3466364852d6db6f7 | refs/heads/master | 2023-08-18T16:38:50.308787 | 2021-10-19T18:23:57 | 2021-10-19T18:23:57 | 390,397,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 670 | py | def getNeighbor(grid, r, c):
R = len(grid)
C = len(grid[0])
sum = 0
if 0 <= r - 1 < R and 0 <= c < C and grid[r - 1][c] == 1:
sum += 1
if 0 <= r < R and 0 <= c - 1 < C and grid[r][c - 1] == 1:
sum += 1
if 0 <= r + 1 < R and 0 <= c < C and grid[r + 1][c] == 1:
sum += 1
... | [
"sahityakmr28@gmail.com"
] | sahityakmr28@gmail.com |
e1916f9e3a6f58bbfda3315299c134f88ae2d779 | 3c374b8a32358064f4f278479090a5dee1cf1133 | /testCases/test_searchCustomer.py | 0300a9844960563362485cbbea55c518720765c4 | [] | no_license | YathishSV/nopeCommerce-Hybrid | a9bfc6badc7c2eda4ed8d96a4a977b75f12d6c37 | 543ed226726bbb1108a359e9c087f95efd5f4bfb | refs/heads/master | 2023-03-01T10:11:14.434854 | 2021-02-04T09:41:09 | 2021-02-04T09:41:09 | 335,900,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,282 | py | import pytest
from utilities.readProperties import ReadConfigProperty
from pageObjects.LoginPage import Login
from pageObjects.addCustomer import AddNewCustomer
from pageObjects.searchCustomerPage import SearchCustomer
import time
class Test_004_SearchCustomer:
baseURL = ReadConfigProperty.getapplicationURL()
... | [
"yathish.sv@sabre.com"
] | yathish.sv@sabre.com |
5a6fbc40b1f22cc8e365e8d44ec273e43bf6ec61 | 144ac2c06f9accd60d80042c45f436a17883599e | /train.py | ec5b87b9e43f5de7534ad343fb57ce67a9341cee | [] | no_license | nicshackle/TinyML_ContinuousMotionClassification | b338ce357e06c3b6133ae22017454d2fa5905204 | a10232f1e4ef143d98d38e80380ee0b0c3ef4b33 | refs/heads/main | 2023-06-19T21:55:53.524829 | 2021-07-11T06:26:05 | 2021-07-11T06:26:05 | 384,704,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,928 | py | import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import tensorflow as tf
# the list of motions that data is available for
MOTIONS = [
"walking",
"still",
]
SAMPLES_PER_MOTION = 119
NUM_MOTIONS = len(MOTIONS)
# create a one-hot encoded matrix that is used in the output
ONE_HOT_ENCODED_M... | [
"nic@yoco.com"
] | nic@yoco.com |
6360a9712a3746c4381c61861786c1a86a82ba49 | f3d160865d846c8e93f6667726c6b5d2ddd73e7b | /assignment-1-practice-designing-models-gabbyvasquez/code/POTS_system/bokchoy.py | 6ff6fea6403140fd827534422375a7df04182e5a | [] | no_license | IDS6145-18Spring/assignment-1-practice-designing-models-gabbyvasquez | ac3b678a8f28cfcb4fbfc58b8eb5202c5ec88a2c | 9f63d08f256e861f1a0c11f79609417899850d6b | refs/heads/master | 2021-05-12T18:09:15.693955 | 2018-01-19T04:59:52 | 2018-01-19T04:59:52 | 117,061,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | import math
from vegtable import vegtable
class bokchoy(vegtable):
'''This is a string bean'''
def __init__(self, n, s, w, wet, c, a, b):
'''Intializes the vegtable'''
self.length = 1.0 # start as baby string bean
self.radius = 0.11
vegtable.__init__(self,n, s, w, we... | [
"noreply@github.com"
] | noreply@github.com |
9d3e2f36a7d162edacd87753b00abcfe6e81f3bc | 02e0beb258530b0bb806cfe9bbd5647de43abed4 | /lib/lib_template.py | 4aab96330c1d890a987bfc07c92a0cad229388eb | [] | no_license | guppychen/OLT | 4ba5d88aa5004ca29ca0c4558c7e61d9162d0f1a | fafd9733d99133d0b47beacdb9de5a8898809d6a | refs/heads/master | 2020-04-17T08:36:13.224419 | 2019-01-31T07:06:49 | 2019-01-31T07:06:49 | 166,418,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30 | py | #add python test libray here
| [
"guppy.chen@calix.com"
] | guppy.chen@calix.com |
91052ce796abcf033b4917906f7e756fa0046eba | eb240876f27f1b8b8fcd8c668bf043efd4a17165 | /projects/deterministic-round-multipath/tools/run_project.py | 76c4eb35be2289a7480f52990ac5844534ddd7b5 | [] | no_license | lucasbfernandes/p4-dev | e489227b16e5e65d5029a9e32ef98a63598a6dd3 | 572b60e5757bcbcab50f034a780feb4a5d799fc5 | refs/heads/master | 2021-03-16T07:45:56.509175 | 2019-08-11T23:42:03 | 2019-08-11T23:42:03 | 92,182,376 | 2 | 1 | null | 2019-08-11T23:42:04 | 2017-05-23T14:27:09 | Python | UTF-8 | Python | false | false | 651 | py | #!/usr/bin/env python
import sys
import os
sys.path.append(os.path.dirname(os.path.abspath(__file__)) + "/../../../core/tools/")
import defaults
import helpers
def run_mininet(project_name):
path = defaults.PROJECTS_PATH + project_name + "/"
commands = [
[
"sudo", "python",
defaults.PROJECT_MININET_NAME +... | [
"lucasbfernandes94@gmail.com"
] | lucasbfernandes94@gmail.com |
fa0571a6e96c9aeba1159fd7ee3ca7cb1737bf60 | 481bbccd92fdb7ca08830bd450b1bbbda8956b0b | /gym_adserver/agents/ucb1_agent.py | 4839b186766015d640aaea8c4f4d9a6ee5a39c9f | [
"MIT"
] | permissive | Miinky-adServer/gym-adserver | 6f12b1d57640d78a4ebc576e1a8e86f12730a91a | 9886a63ebc7735b849c90a0f8bbe1faf533f4e85 | refs/heads/master | 2023-02-26T04:55:09.171803 | 2021-01-30T20:13:15 | 2021-01-30T20:13:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,977 | py | import argparse
import sys
import time
import math
import numpy as np
from numpy.random.mtrand import RandomState
import gym
from gym import wrappers, logger
import gym_adserver
class UCB1Agent(object):
def __init__(self, action_space, seed, c, max_impressions):
self.name = "UCB1 Agent"
self.val... | [
"26248823+falox@users.noreply.github.com"
] | 26248823+falox@users.noreply.github.com |
b65f85e32d7186281a2604cc160bd674c86d13a5 | 7aecab27c231c5207f26a1682543b0d6c5093c06 | /server/dancedeets/util/korean_dates.py | c6c4fe2fe48b14f79ae353c0f2e1153c24e04d9e | [] | no_license | mikelambert/dancedeets-monorepo | 685ed9a0258ea2f9439ae4ed47ebf68bb5f89256 | 4eff1034b9afd3417d168750ea3acfaecd20adc6 | refs/heads/master | 2022-08-10T07:16:32.427913 | 2018-04-15T22:05:58 | 2018-04-15T22:05:58 | 75,126,334 | 24 | 2 | null | 2022-07-29T22:28:45 | 2016-11-29T22:04:44 | Python | UTF-8 | Python | false | false | 2,382 | py | # -*-*- encoding: utf-8 -*-*-
import datetime
import re
DAWN = 6 # sun rises at 6am-ish
_DATETIME_SPAN_SEPARATOR = ur'(?:~|/|부터)' # '부터' = 'from'
_D_DATE = ur'(?P<day>\d+)[일\(]'
_MD_DATE = ur'(?:(?P<month>\d+)월\s*)?' + _D_DATE
_YMD_DATE = ur'(?:(?P<year>\d+)[년녀]\s*)?' + _MD_DATE
# WEEKDAY = r'(?:\(.\)| ..일)?'
_... | [
"mlambert@gmail.com"
] | mlambert@gmail.com |
b4d8f818d49eb5a88661832145d7031b28ad5269 | 2df90745fc70a9d89bf6fd6921a51da3a86317b8 | /facebull/tasks.py | 8a3e91e54d8eb05d1bf102e2b4602e2312a905a3 | [] | no_license | alex-run-code/facebull | 4864afcee9dd6728a92c17ce70a77ebc2182d10f | 467b607465c5c5ca4b4392c162e78cc3f516b226 | refs/heads/master | 2023-05-06T06:13:05.273844 | 2021-05-27T14:03:16 | 2021-05-27T14:03:16 | 371,384,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,044 | py | from celery.decorators import task
import requests
from celery.utils.log import get_task_logger
from .models import User
from django.utils.timezone import datetime
logger = get_task_logger(__name__)
def enrich_user(email):
user = User.objects.get(email=email)
response = requests.get("https://ipgeolocation.abs... | [
"megalex97@hotmail.com"
] | megalex97@hotmail.com |
66c3328ec755153a4cb76049b29251cb03925f04 | 549f1a013ef290c8a0dd1bd9c68488bb51bd95b8 | /Introduction to Using MongoDB for Data Science in Py/02. Working with Distinct Values and Sets.py | e5a51103f22633f406c0bc270f7e8c60ec6300da | [] | no_license | arslanugur/db | 1522243a8101bbb7b94c24665d9302a36b9cb5ce | a8286b10f29d9c990626aa22aaa379ac2c832997 | refs/heads/master | 2023-08-11T02:22:33.175122 | 2021-09-21T14:52:20 | 2021-09-21T14:52:20 | 361,018,458 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,999 | py | 2. Working with Distinct Values and Sets
"""Now you have a sense of the data's structure. This chapter is about dipping your toes into the pools of values for various fields.
You'll collect distinct values, test for membership in sets, and match values to patterns."""
2.1. Survey Distinct Values
1. The distinct() ... | [
"noreply@github.com"
] | noreply@github.com |
45be20b01af4c42a0d4326d66a3977eb22455919 | f8b8e20f2034a01c5258d7771fff74b28ad3142e | /backend/companies/migrations/0002_auto_20210506_1326.py | 029a558bcc75a790cec98ebe10287b6c1fe68532 | [] | no_license | Danutu89/Exam | eaff401ab0becba3d2b1672b480f25947a38c3c5 | 8eec92f219f51d52357191a2859d12e50c24ed34 | refs/heads/main | 2023-04-12T11:29:43.467422 | 2021-05-12T12:54:28 | 2021-05-12T12:54:28 | 366,672,269 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,071 | py | # Generated by Django 3.2 on 2021-05-06 13:26
from django.db import migrations, models
import shortuuidfield.fields
class Migration(migrations.Migration):
dependencies = [
('companies', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Category',
fi... | [
"dany89yt@yahoo.com"
] | dany89yt@yahoo.com |
219de91e7efebdee151be72ea0490b3c3dbe3679 | cba33579055ba0e961d7d5aa971066940ae4aaa3 | /brdashsite/batchrecords/utils.py | 607fa6851a870108d9dd38b1cfc92c5e89d37b63 | [
"MIT"
] | permissive | JNDib/brdashproject | b8106c8cedb05af6b974b8f3a7b45026344d9c9e | f9a7cb543024bfb6bb3556b9affdcddb46add2e1 | refs/heads/master | 2020-05-07T11:38:24.573877 | 2019-04-10T00:25:21 | 2019-04-10T00:25:21 | 180,468,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | import io
from xhtml2pdf import pisa
from django.template.loader import get_template
from django.template import Context
from django.http import HttpResponse
from cgi import escape
def render_to_pdf(template_src, context_dict):
template = get_template(template_src)
context = Context(context_dict)
html = template.... | [
"jdiblin@gmail.com"
] | jdiblin@gmail.com |
ac259e5132d2631a722d297f484762c960dfd679 | 720ab137647a45f090c43fce53b87b2e6603fac0 | /dyk/urls.py | a5c2a85cd8b3f466f8bda24d0a4fb6e5d7de91ac | [] | no_license | jperals/dyk | be51085608020b85db599e0195b0daa56ab80c5e | 301717c850768cd22dfa0c56c00bf60557f7984f | refs/heads/master | 2022-05-01T19:25:35.585246 | 2019-09-03T20:48:14 | 2019-09-03T20:48:14 | 146,928,283 | 1 | 0 | null | 2022-04-22T22:06:09 | 2018-08-31T18:21:33 | Python | UTF-8 | Python | false | false | 793 | py | """dyk URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based vie... | [
"joan.perals@ixds.com"
] | joan.perals@ixds.com |
5bcaa8c4905e015b50956ce7787323baa927c017 | dd02b96b28041b74baa7f78935e501c2146fbf38 | /app.py | a84d6d9dd36539cadc05b577fb4e660ad451a468 | [] | no_license | Adi7290/Html_CSS_Practice | 77f3020b1ee54eca836925338d07b3a99b8ece23 | 28207b57c2789ec9be118bcd49ff7a5b6099e0f2 | refs/heads/main | 2023-03-07T09:15:28.314673 | 2021-02-25T12:42:06 | 2021-02-25T12:42:06 | 342,240,293 | 0 | 0 | null | 2021-02-25T12:43:29 | 2021-02-25T12:39:50 | HTML | UTF-8 | Python | false | false | 148 | py | from flask import Flask
app = Flask(__name__)
@app.route('/')
def index():
return 'Hello, World!'
if __name__ == '__main__':
app.run() | [
"noreply@github.com"
] | noreply@github.com |
51fa1e8368d016f4508cb3f4fad859ccecc85170 | 31a71fde12f8914dd417d3c19cea0f1c7d0c38b5 | /custom/enikshay/integrations/nikshay/urls.py | 5211b90aad2510fd8eb533218a85bd69af9368a8 | [] | no_license | krsdimagi/commcare-hq | d9fa6777ddd20609adcd54500e82889a5d3194f0 | 4d367d279476b04c030f59155e98870e98631ea7 | refs/heads/master | 2021-01-09T05:59:29.132728 | 2017-02-03T15:00:20 | 2017-02-03T15:00:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | from django.conf.urls import url
from custom.enikshay.integrations.nikshay.views import RegisterNikshayPatientRepeaterView
urlpatterns = [
url(
r'^new_register_patient_repeater$',
RegisterNikshayPatientRepeaterView.as_view(),
{'repeater_type': 'NikshayRegisterPatientRepeater'},
nam... | [
"mkangia@dimagi.com"
] | mkangia@dimagi.com |
26ea85dc9baf97526ab0814ac0e6364be3581783 | e34cf899de4ba2a99c40049500bd4f435422f129 | /lib/sqlalchemymonitor/__init__.py | be5bd0da4869862c1257e155324636bc564eaf68 | [
"MIT"
] | permissive | limeiralucas/sqlalchemymonitor | 8589c36317417e25d77ca89c01a7f587269c7aee | 830cbd1cfb4dcbefa04b531066ad3293ca79ba79 | refs/heads/master | 2022-01-04T14:33:55.768292 | 2020-01-29T14:03:55 | 2020-01-29T14:03:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | from .handler import SqlAchemyLogHandler
import logging
__version__ = '0.1'
def init_sql_alchemy_monitor(default_action, on_select=None, on_insert=None, on_update=None, on_not_recognized=None, logger_name='sqlalchemy.engine.base.Engine'):
handler = SqlAchemyLogHandler(default_action, on_select, on_insert, on_upd... | [
"lucasalveslm@gmail.com"
] | lucasalveslm@gmail.com |
b04305f109a7f6222d39d666b9d65f277cae3196 | ce972e94fcdf19d6809d94c2a73595233d1f741d | /catkin_ws/build/tf/cmake/tf-genmsg-context.py | 552ade3ed0568d977725f0742c6cd2ff5e746bcd | [] | no_license | WilliamZipanHe/reward_shaping_ttr | cfa0e26579f31837c61af3e09621b4dad7eaaba2 | df56cc0153147bb067bc3a0eee0e1e4e1044407f | refs/heads/master | 2022-02-23T05:02:00.120626 | 2019-08-07T21:52:50 | 2019-08-07T21:52:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | # generated from genmsg/cmake/pkg-genmsg.context.in
messages_str = "/local-scratch/xlv/catkin_ws/src/geometry/tf/msg/tfMessage.msg"
services_str = "/local-scratch/xlv/catkin_ws/src/geometry/tf/srv/FrameGraph.srv"
pkg_name = "tf"
dependencies_str = "geometry_msgs;sensor_msgs;std_msgs"
langs = "gencpp;geneus;genlisp;gen... | [
"xlv@cs-mars-01.cmpt.sfu.ca"
] | xlv@cs-mars-01.cmpt.sfu.ca |
220ac4e18bfaea6b2a5fc122ae8bcc38836508db | fafb89a3552e4dbb47d134966462ef5f3f37f576 | /KEMP/v0.6_ovelap_ok/fdtd3d/cpu/test/pbc_multi_plot.py | 218f06c00053697b3fa19d4b987ec597ccaa7b61 | [] | no_license | EMinsight/fdtd_accelerate | 78fa1546df5264550d12fba3cf964838b560711d | a566c60753932eeb646c4a3dea7ed25c7b059256 | refs/heads/master | 2021-12-14T03:26:52.070069 | 2012-07-25T08:25:21 | 2012-07-25T08:25:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,528 | py | import numpy as np
import sys, os
sys.path.append( os.path.expanduser('~') )
from kemp.fdtd3d.cpu import QueueTask, Fields, Core, Pbc, IncidentDirect
tmax = 150
tfunc = lambda tstep: np.sin(0.05 * tstep)
# plot
import matplotlib.pyplot as plt
import matplotlib as mpl
mpl.rc('image', interpolation='nearest', origin=... | [
"kh.kim@kiaps.org"
] | kh.kim@kiaps.org |
ede19815e880082d79936d9cd70e6f8e3e80d2d2 | 0ceb9ffeb2c087b8ae75c1a1179387fe36379f17 | /test_users.py | 31f33f5ba427527d4314a2b07fc4c576bc50f3d0 | [] | no_license | chetat/eveno | 47a3a99ebe4c5ea10252e1a21c45129e61b3e2ba | dbc138cde6e48039614cea52d3dc7bcad869a1dd | refs/heads/master | 2022-12-09T13:51:46.923622 | 2021-03-09T10:21:25 | 2021-03-09T10:21:25 | 224,212,711 | 0 | 0 | null | 2022-09-16T18:20:10 | 2019-11-26T14:34:12 | Python | UTF-8 | Python | false | false | 1,623 | py | import os
import json
from app import create_app, sqlalchemy as db
from sqlalchemy import create_engine, text
from flask_sqlalchemy import SQLAlchemy
from app.config import TestingConfig
from models import initialize_db
import unittest
class UsersTestCase(unittest.TestCase):
"""This class represents the Event App... | [
"yekuwilfred@gmail.com"
] | yekuwilfred@gmail.com |
b7db7bebacef33f9cf334ee6848e4c3bd1bdbefa | 68ee54252868881a0ff6fc62d55e57be3d64b621 | /nginx/gitlab-ci-scripts/promote.py | 8abae6360fc295cb888080cc562b0213fb8358ab | [] | no_license | Udyrfrykte/devoxx-demo | 54936a8684693ccf6d4d6f6a4c4a610ea0bea688 | 2b37dd7d5b0559cc83e6d3ef523d6bbfcc380ec1 | refs/heads/master | 2021-07-22T14:55:33.318257 | 2017-11-08T22:02:01 | 2017-11-08T22:02:01 | 110,041,386 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,594 | py | #!/usr/bin/env python3
# encoding: utf-8
from urllib.request import Request, urlopen
import json
import pprint
import sys
import argparse
#token="fN5oMTp2ZmsLVULA94P7"
#base_url="https://gitlab.udd.bogops.io"
#source_project="devs/manifests"
#target_project="admins/manifests"
#source_branch="metrics-app"
#target_bra... | [
"Udyrfrykte@users.noreply.github.com"
] | Udyrfrykte@users.noreply.github.com |
3bee8bf4160edbf4350cc884d130840340234b34 | 22f5c42fe249122cc36dfc4e17a210d6a37007f1 | /hackerrank problems python/Make It Anagram/Make It Anagram.py | 809b5a87d65253bc340b581756af36839e17f714 | [] | no_license | sidhanthapoddar99/Competetive-coding | 19d8c8fd23ece9845a59312f44dfee6614bf9fef | 24ad8913fdb71d81f3391ef4143c175b2752d851 | refs/heads/master | 2023-02-17T15:31:54.520136 | 2021-01-19T18:02:43 | 2021-01-19T18:02:43 | 268,529,357 | 0 | 3 | null | 2020-10-04T08:10:16 | 2020-06-01T13:25:24 | C++ | UTF-8 | Python | false | false | 198 | py | w1 = raw_input()
w2 = raw_input()
total = 0
for letter in "abcdefghijklmnopqrstuvwxyz":
total += abs(len([ 1 for i in w1 if i==letter])-len([ 1 for i in w2 if i==letter]))
print total | [
"sidhanthapoddar99@gmail.com"
] | sidhanthapoddar99@gmail.com |
c1f2cdad0c15be0461cfad4fc0ce8cad5a672d6f | eca90951b53822740812e40572e209728f71c261 | /models.py | a109ee157f955568d9590b918a0010e3fee55a02 | [] | no_license | tungvx/reporting | b7117879be773fccd90dbdb36a9e1220edc1d202 | 98f54c821aad761c0ab0ab83a8faad232ece1b41 | refs/heads/master | 2021-01-16T18:20:46.613907 | 2012-03-25T13:42:06 | 2012-03-25T13:42:06 | 3,491,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,661 | py | # -*- coding: utf-8 -*-
import datetime
from django.db import models
from django import forms
class Upload(models.Model): #Upload files table in databases
filename = models.CharField(max_length=255)
upload_time = models.DateTimeField('time uploaded')
description = models.Cha... | [
"toilatung90@gmail.com"
] | toilatung90@gmail.com |
d85d0550346009bba023b20f0860ca904684f096 | 1cefb3cff787b179baa684ac6fd759cf2f5a434b | /tscsRL/environments/RadiiTSCSEnv.py | 8cef84ea29bd38cb512b3e07224375b9d8b510c6 | [] | no_license | DiuLaMaX/Reinforcement-Learning-Applied-To-Metamaterial-Design | 79b1abac916da7feabf55dd86ed2e7918a4ede97 | b3d3ac092f46ae92c2ceb1edd44155fc84ccd884 | refs/heads/master | 2023-06-16T13:53:56.068237 | 2021-07-04T16:28:16 | 2021-07-04T16:28:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,658 | py | from tscsRL.environments.TSCSEnv import BaseTSCSEnv
from tscsRL.utils import rtpairs
import torch
import matlab
import gym
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.patches import Circle
from PIL import Image
import io
class BaseRadiiTSCSEnv(BaseTSCSEnv):
"""docstring for BaseRadiiTSCSEnv"""... | [
"123.tristan.shah@gmail.com"
] | 123.tristan.shah@gmail.com |
e1f8fcafc1beeeabe6530ac0563b90b23859e6f4 | d958beddc22644249156844e5cc476721d30b8a4 | /src/day17.py | dc88ee2772fa747e8e954f3b1c99a5f539debcab | [] | no_license | seeba8/advent_of_code_2018 | 68cc9441ee7ea572c9d886e6acfefba06d339635 | c1f5990abce7b41e4a10cd94618928ce403b664f | refs/heads/master | 2020-04-12T21:15:00.346726 | 2019-03-23T23:42:04 | 2019-03-23T23:42:04 | 162,758,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,964 | py | import re
class STATES:
SAND = 0
CLAY = 1
STILL_WATER = 2
FLOWING_WATER = 3
SPRING = 4
OUT_OF_BOUNDS = -1
class Arctic:
def __init__(self, w, h, spring_x, spring_y):
self.ground = [STATES.SAND] * w * h
self.w = w
self.h = h
self.moving = set()
self... | [
"ober.sebastian@googlemail.com"
] | ober.sebastian@googlemail.com |
ba265bb9d96f3ceeec3b311c1c36ce36f9c18206 | f50114692187a054bf2627695c6380d5ac79a20c | /q0028.py | 26642f410f3a67d77ed2d7e0af65fad57a49ecc3 | [] | no_license | petitepirate/interviewQuestions | c0cb8775932f90ff5c8e4ef80be468ef4155052f | 209322c1f1ddbe8111dc2c5e9c35aaf787e0196a | refs/heads/master | 2023-07-17T12:15:22.847440 | 2021-06-14T02:32:39 | 2021-06-14T02:32:39 | 286,884,022 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,685 | py | # This problem was asked by Palantir.
# Write an algorithm to justify text. Given a sequence of words and an integer line length
# k, return a list of strings which represents each line, fully justified.
# More specifically, you should have as many words as possible in each line. There should
# be at least one ... | [
"msmeganmcmanus@gmail.com"
] | msmeganmcmanus@gmail.com |
11f1d76b4e086305e4e4a2a36419be02ba47ce95 | 222b221878eeec7f5c1e61e4b5cdb9f83aff7ffa | /modules/app/schemas/address.py | f1c48fc55c686e233dcb7fc5e7867b68ede73234 | [] | no_license | sumaikun/flaskApi | d85ed25297245610333d689074bfc05af451155c | 97446277a63dba6d33388558af4111239f675106 | refs/heads/master | 2022-10-12T01:33:30.328853 | 2020-06-09T16:56:44 | 2020-06-09T16:56:44 | 271,062,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,166 | py | from jsonschema import validate
from jsonschema.exceptions import ValidationError
from jsonschema.exceptions import SchemaError
address_schema = {
"type": "object",
"properties": {
"city": {
"type": "string",
},
"country":{
"type": "string"
},
"pr... | [
"ventas.javc@gmail.com"
] | ventas.javc@gmail.com |
14fae3132d30eb687a966988fcbb3f2a788e9de5 | 247ed85b891edd371f5fc957417bc6003cff69ff | /meshscraper/scraper.py | c81c1469307d1bc38ee859b377aadf2289c279bf | [] | no_license | achenxu/mesh-scraper | 613d22651dce33b5cc6ce11afba422346013c259 | d439da8af0185de7209e16474fadf70cffaadc01 | refs/heads/master | 2020-03-18T08:42:51.729197 | 2018-05-20T06:58:36 | 2018-05-20T06:58:36 | 134,524,155 | 5 | 2 | null | 2018-05-23T06:32:13 | 2018-05-23T06:32:13 | null | UTF-8 | Python | false | false | 3,238 | py | from queue import Queue
import threading
import time
from meshscraper.util import convert_to_pid, create_logger
from meshscraper.scrapehandler import ScrapeHandler
from meshscraper.poster import Poster
from meshscraper.saver import Saver
class Scraper(threading.Thread):
"""Create and control collection checker(sc... | [
"idontcop@gmail.com"
] | idontcop@gmail.com |
85c78d4660cc78ae84d9016627643af0ae840fbc | da348f525a4256c95bee7c71358fd3441e5189ca | /章15/15.1-15.3/random_walk_2.py | f649d1be530e17017816a7385c98838b9eda2c17 | [] | no_license | bwz3891923/LearningLog | 5c7aa4a0f08fc5523f8642af41e4cf56ad3f83ec | 742cff9dfac50aa5266a4996ea65e980f8c66282 | refs/heads/master | 2020-04-23T13:39:26.123005 | 2019-02-20T07:32:02 | 2019-02-20T07:32:02 | 171,204,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 809 | py | from random import choice
class RandomWalk():
def __init__(self,num_points=5000):
self.num_points=num_points
self.x_values=[0]
self.y_values=[0]
def fill_walk(self):
while len(self.x_values)<self.num_points:
x_step=self.get_step()
y_step... | [
"noreply@github.com"
] | noreply@github.com |
93ec3d2ea48c1385a38a8b7ceeee9acbb8f10be1 | fa0f12a6d63be22b588133bfb9c130f1eeecab3d | /myvenv/lib/python3.7/site-packages/pip/_internal/operations/freeze.py | 6d6ca7f62ca26deb7b07837a5ea2382969478da6 | [] | no_license | 8th-caulion/high-hat | 6b2c455be14b5e617bf993cfb67c68975df3aa65 | fc1f9793747892b7b58f066c45ab95d3f0269db9 | refs/heads/master | 2023-08-02T12:07:36.540488 | 2020-06-03T17:36:32 | 2020-06-03T17:36:32 | 267,542,957 | 0 | 6 | null | 2021-09-22T19:09:26 | 2020-05-28T09:04:29 | Python | UTF-8 | Python | false | false | 14,660 | py | <<<<<<< HEAD
# The following comment should be removed at some point in the future.
# mypy: strict-optional=False
# mypy: disallow-untyped-defs=False
=======
>>>>>>> 71358189c5e72ee2ac9883b408a2f540a7f5745e
from __future__ import absolute_import
import collections
import logging
import os
<<<<<<< HEAD
=======
import ... | [
"rldnjs9347@gmail.com"
] | rldnjs9347@gmail.com |
694c9e252cceb994dcb65e0a0c42be5b6500d395 | 10e89eb922a5c122079a55234169e5b0e7af0819 | /histore/cli/base.py | 06f81c1b370a21633cbbc13230aeb3a0d81faa09 | [
"BSD-3-Clause"
] | permissive | Sandy4321/histore | 5753dd0008d1ae3400506181f22789aa9fdb43ba | d600052514a1c5f672137f76a6e1388184b17cd4 | refs/heads/master | 2023-04-15T07:57:49.762415 | 2021-04-28T11:12:31 | 2021-04-28T11:12:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,101 | py | # This file is part of the History Store (histore).
#
# Copyright (C) 2018-2021 New York University.
#
# The History Store (histore) is released under the Revised BSD License. See
# file LICENSE for full license details.
"""Command line interface to interact with a manager for archives on the local
file system.
"""
i... | [
"heiko.muller@gmail.com"
] | heiko.muller@gmail.com |
150cd355067ec7d2b31ccd7602084de2e5d33e9a | 005bbef9de33552823f738d5b5033b1914295ec7 | /mysite/settings.py | f3440d2138b2dde6dbf2a08e083d3bcb8ec95d96 | [] | no_license | subjoooo/my-first-blog | 12388fca1ffd710c758486bff4bda71bd23be18f | 4a0605c56cf577b7164bdcdb8e0fec3987075d48 | refs/heads/master | 2020-06-29T21:34:11.079905 | 2019-08-05T11:00:30 | 2019-08-05T11:00:30 | 200,630,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,188 | py | """
Django settings for mysite 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
#... | [
"seongwhan106@naver.com"
] | seongwhan106@naver.com |
ac19e584ba3f246006ecee4a4204482d58b8c9f4 | 1d4061bc020d36af1cfea41ee28ffb03831ad62f | /monster_encounter_randomizer/files/lib/random_encounter_for_gui.py | de2b58c327ae4f1afc2b836020e43fde0621a6e6 | [] | no_license | Pentrimex333/DND_Tools_and_Libraries_1 | b6cb49a2c568af2113e3f7c31cf0ea38ba40eceb | 0845429a56218ad6cc8fc5f296a8880a2421f548 | refs/heads/master | 2022-07-15T15:24:55.371862 | 2022-07-07T22:29:09 | 2022-07-07T22:29:09 | 238,807,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,901 | py | # Function that produces a group of monsters that a party can fight
import json
from random import choice, randint
from lib import monster_search as monsters
from lib import mon_xp_modifier as xp_mod
def encounter(party_size, xp_threshold, mon_type, min_xp=0,
max_xp=160000, location=''):
#'''T... | [
"noreply@github.com"
] | noreply@github.com |
755cace209dee6ddbfb2f3b305e5c59a6d1438b7 | 204550bca20d023e46abfdd1504d7905722e1496 | /Red_White_Blue.py | 32c1755d88d4f27a60d53cd055c1f38d4e5b351d | [] | no_license | BenjaRogers/finance | 432a506d28ca7ff083c53f0158971dcb9f11e224 | 309a48c39ec967353217bc91d56adbae91ad56c3 | refs/heads/main | 2023-02-05T23:33:57.381802 | 2020-12-28T21:25:50 | 2020-12-28T21:25:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,510 | py | import datetime as dt
from pandas_datareader import data as pdr
import yfinance as yf
import pandas as pd
symbol_list = pd.read_csv('bats_symbols.csv')
yf.pdr_override()
EMA_USED = [3,5,8,10,12,15,30,40,45,50,60]
now = dt.datetime.now()
start = dt.datetime(now.year-1, now.month, now.day)
def get_rwb_li... | [
"noreply@github.com"
] | noreply@github.com |
c8ddccca52adc5db2481375fed03e00824280b87 | b6da4b5578a545b4ed72913e04770238cf595fb3 | /hackathon/parser.py | f91259d92a7764b0c03dfa16d8d4649a4857dd1d | [] | no_license | basnetbik/SocietyRecommenderSystem | d3837520f34cf6f0e0d48dbd635b03a59d5ab164 | 6e9bd14d5f6eef095952d3f862d6ca4d86354ea4 | refs/heads/master | 2021-01-10T19:38:57.434689 | 2014-08-01T05:10:21 | 2014-08-01T05:10:21 | 22,495,810 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | """
Parse the world bank data country-wise
"""
import csv
def dump_csv(data):
with open('Countries/%s.csv'%(data[0]['Country Name']),'wb') as outfile:
csvwriter = csv.DictWriter(outfile, data[0].keys())
outfile.write(','.join(data[0].keys())+'\n')
for i in data:
csvwriter.write... | [
"basnet.bik@gmail.com"
] | basnet.bik@gmail.com |
976fe04075eb0ae35fbceb4cf4f95288fd19f182 | 9a0ada115978e9600ad7f1eab65fcc8825f637cf | /work_in_progress/kezhi_paper/classification/intermedia_classification_WT_new.py | 23736c730b2fe6d41790fd9dfaa294059b6a9fd6 | [] | no_license | ver228/work-in-progress | c1971f8d72b9685f688a10e4c5a1b150fa0812da | ef5baecc324da4550f81edb0513d38f039ee3429 | refs/heads/master | 2018-12-16T22:18:55.457290 | 2018-09-14T09:27:49 | 2018-09-14T09:27:49 | 56,165,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,223 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jun 06 16:16:01 2017
@author: kezhili
"""
import numpy as np
import tables
from sklearn.ensemble import RandomForestClassifier
from sklearn.model_selection import cross_val_score
no_neuron = 1040 # step size in the mesh
no_fea = 30
fea_no = 30
names = ["Near... | [
"ver228@gmail.com"
] | ver228@gmail.com |
abd1cf269880279ea91f1ef5fd333d7a9efbd17d | 8f9daf08250f09269aeb8d57fcbb6f335e2d985a | /Algorithms&DataStructures/reverse_array_in-place.py | eb3f0bc935b2a40f280fdb8b85c26243b7484cf5 | [] | no_license | Extomvi/GDGUnilag | 0927a213e43fc4c463e6866e5ca4dbf137311b91 | e8ac9c61af43bb99542c5bd6dcfe35fa64fee957 | refs/heads/master | 2023-06-22T06:32:53.793377 | 2023-06-14T08:15:39 | 2023-06-14T08:15:39 | 100,798,237 | 2 | 0 | null | 2023-04-04T16:43:17 | 2017-08-19T14:05:15 | Jupyter Notebook | UTF-8 | Python | false | false | 310 | py | """Reversing an array in-place"""
def reverse_array(nums):
start = 0
end = len(nums) - 1
while start<end:
nums[start], nums[end] = nums[end], nums[start]
start += 1
end -= 1
return nums
if __name__ == "__main__":
nums = [1,2,3,4,5]
print(reverse_array(nums)) | [
"exceltadedokun@gmail.com"
] | exceltadedokun@gmail.com |
01aa4accd9d56ede58cc7d689aec16d99e03379c | cd469e5295fabba07efad622533c5ff900db6f53 | /reload.py | ed90c804a17305364cf459c8b280c0131e013f44 | [
"MIT"
] | permissive | aspyct/shout | f8f8d74e8e1ee4b329c608e1ef863fba75479250 | 38853fddfb051412e1847a0e479b9b82510f88e2 | refs/heads/master | 2021-01-02T08:45:18.166142 | 2014-07-07T17:54:18 | 2014-07-07T17:59:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 658 | py | import os
import os.path
import sys
import time
import subprocess
args = sys.argv[:]
this_script = args.pop(0)
target_script = args.pop(0)
if not os.path.isfile(target_script):
print("Not a file: " + target_script)
sys.exit(0)
def run():
command = [sys.executable, target_script]
command.extend(args)
... | [
"antoine@Antoines-MacBook-Pro.local"
] | antoine@Antoines-MacBook-Pro.local |
0cc046943de4f6e8e84509edc6055886e1602b1e | 024a515e8741ecc88b4cc20c067a5ef7785375f2 | /preproc_dataset.py | 0241efc2f5bb8f421152bf5b2a64df8c226e9aa6 | [
"MIT"
] | permissive | PCJohn/maml | e3752a842557210e955f68479e0a056766647d54 | 17362ed5f9d85863ead5774c3e08e163c260bd16 | refs/heads/master | 2020-03-28T11:37:42.014350 | 2018-10-01T17:08:12 | 2018-10-01T17:08:12 | 148,232,484 | 0 | 0 | null | 2018-09-10T23:35:04 | 2018-09-10T23:35:03 | null | UTF-8 | Python | false | false | 1,756 | py | import os
import numpy as np
from PIL import Image
dataset = 'miniimagenet'
train_count = 10 # train samples per class
val_count = 590 # val samples per class
mnist_dir = '/home/prithvi/dsets/MNIST/trainingSet/'
omniglot_dir = '/home/prithvi/dsets/Omniglot/train'
miniimagenet_dir = '/home/prithvi/dsets/miniimagenet/t... | [
"prithvichakra@gmail.com"
] | prithvichakra@gmail.com |
58e05b15043f77a989ebc6a6c0a5e86af3ff2053 | e4ea9d3a1acf2395acd57848fbbef9e7a68624ca | /features/I-cities/__init__.py | 3712f2f1e5b3edacaa8cc0915f7e93964b77fe78 | [] | no_license | khoshsoroor/Product-Test | 6f49694ddf0298d4a0033633b25c6e4e71ca9c0b | b3e9b2b0eb223dade9378db43d30c8eb35ff1991 | refs/heads/master | 2020-09-28T15:40:39.344422 | 2019-12-09T07:13:04 | 2019-12-09T07:13:04 | 226,807,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,891 | py | from aloe import *
from aloe import tools
import requests
from .. import config, logger
from .. import call
# region city list is empty
@step(r'Get the list of all city and specify city (\S+)')
def get_not_found_city_list(_, city_slug):
call.delete_cities()
res = requests.get(f"{config.base_api_uri}/cities")
... | [
"noreply@github.com"
] | noreply@github.com |
a9359767d8ff682c41a5a4a8e2ea83cd12d1942f | e07bac74a16f99a3efdeac388eb6fb45617bb952 | /test1./maximum.py | 6312fa8cf8ed99819a7f1fa5f57f357f4c729904 | [] | no_license | SIVAPRASATH101/GUVI-CODING | b27cebe488349b6677d87a5dd6897a7745546919 | 2df069c819130d51f525fd7fa8676642c979a4db | refs/heads/master | 2020-05-28T02:28:28.985167 | 2019-06-08T07:23:49 | 2019-06-08T07:23:49 | 188,854,291 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 54 | py | l=[int(x) for x in input().split()]
a=max(l)
print(a)
| [
"noreply@github.com"
] | noreply@github.com |
155e8c87cb6505d3c4c342a6f963eff4ceba8679 | 446d5ab35d8d57fa1589530d1f702c4b3c46ba0d | /TrainDetails/TrainInfo/migrations/0001_initial.py | 1ccaf29a56f42a1aaade87133b680e86aa449469 | [] | no_license | krishanchetiwal/Train-Information-Project | 3ba5b44984db94b9d0a0ea019c2a823dce51b137 | 5be9b9b760ec669cbb727a9faf3b4c072e06c0c8 | refs/heads/master | 2020-04-14T17:27:51.198146 | 2019-01-03T14:26:15 | 2019-01-03T14:26:15 | 163,981,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,381 | py | # Generated by Django 2.1.3 on 2018-12-21 15:33
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Sysdiagrams',
fields=[
('na... | [
"noreply@github.com"
] | noreply@github.com |
93386444824de36660862624f86cf8f1086943d5 | 3f6bc5034691e52ff5fe4d8c6666539c87ae1594 | /pbar.py | ac5e4c2356ef8af60fff1e9b32daa96a0520becd | [] | no_license | andresthor/pbar | 34696e6e05ebc6b8433e1c35240f5e8e087e97d8 | 403946d15ad9a7c9aab660c0fe514078288ec2d8 | refs/heads/master | 2021-01-21T21:05:48.934162 | 2017-06-20T10:57:44 | 2017-06-20T10:57:44 | 94,774,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,650 | py | #!/usr/bin/env python
# ==============================================================================
# Title: Progress bar
# File: pbar.py
# Author: Andres Saemundsson, andresthor@gmail.com
#
# Description: Create a simple progress bar that displays on the terminal. The
# appearance of the progress bar ... | [
"andressa@axis.com"
] | andressa@axis.com |
b6cf52d52680484324e288071e2fd55acfdf94f2 | a02275767a7e4abeef8bb79bf1466599b03e98cf | /Code/SRCNN/model_sam.py | 39896b443171c843e126139196f6201020a7f85e | [] | no_license | XinyiYing/SAM | f145bae019ea617739fe62d3576b2f5fbbd87166 | 78e68686cf37484303cf4e9ce96f758a5395e9b5 | refs/heads/master | 2022-12-24T12:27:37.164041 | 2022-12-12T13:46:12 | 2022-12-12T13:46:12 | 239,094,857 | 52 | 12 | null | 2020-04-14T04:40:30 | 2020-02-08T08:40:21 | Python | UTF-8 | Python | false | false | 4,450 | py | from torch import nn
import torch
class Net_SAM(nn.Module):
def __init__(self, num_channels=1):
super(Net_SAM, self).__init__()
self.conv1 = nn.Conv2d(num_channels, 64, kernel_size=9, padding=9 // 2)
self.conv2 = nn.Conv2d(64, 32, kernel_size=5, padding=5 // 2)
self.conv3 = ... | [
"noreply@github.com"
] | noreply@github.com |
560fdb3d52af6376d45501eee8ac244cb1ef5a7f | e52a2f9b4db1348afe8f32c76f7e327ad3d25ce3 | /RUMS/Python_files/Deep_Neural_Network.py | 34409e78a6aa77454343d08001ba3fc55d32a594 | [] | no_license | takaya0/Institutional-paper2019 | b614a15839ac13bbf3ced889c6a7a51ff847f531 | 485e516c6d881c8b38b19317c30e28ac4152d021 | refs/heads/master | 2021-07-24T06:23:45.985669 | 2020-06-20T14:55:51 | 2020-06-20T14:55:51 | 188,521,059 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 603 | py | import numpy as np
from matplotlib import pyplot as plt
class activation():
def Sigmoid(self, x):
return 1/(1 + np.exp(-x))
def ReLU(self, x):
return np.max(x, 0)
def leaky_ReLU(self, a, x):
return np.max(a * x, 0)
def identity(self, x):
return x
class Neural_Netwo... | [
"yataka@yatakanoMacBook-Pro.local"
] | yataka@yatakanoMacBook-Pro.local |
a6687c9ad18d1bab96a4cd5b3a1d2c60f4ba81dc | 1267940f420c4378ad0a8ecf9f6fd23b4526b9a0 | /tests/q3_2_3.py | 2409e6ae1c24d85acaaca92e0cbb75b3e299563d | [] | no_license | citlallivillarreal/movie-classifier | 27a168740b569c18c8a6efc840f08f01f143578c | cff62584cf71b47c9fd3a7062eb1a726a170c2e2 | refs/heads/master | 2023-06-06T07:58:08.193339 | 2021-06-16T02:23:56 | 2021-06-16T02:23:56 | 377,346,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 888 | py | test = {
'name': 'Question 3.2.3',
'points': 3,
'suites': [
{
'cases': [
{
'code': r"""
>>> check(0)
True
>>> check(1)
True
>>> check(2)
True
>>> check(3)
True
>>> check(4)
True
... | [
"citlallicgutierrez@outlook.com"
] | citlallicgutierrez@outlook.com |
6c264fb862c23b5fa93f7539724f224842f39b3f | 87fca6e0bcedf27acddd3f329f710d8bfd15b9a1 | /dp/differential_privacy/privacy_accountant/tf/accountant.py | a1a5cb7001cceb8232fc5a90daf25c2400350bf1 | [] | no_license | saramccarthy/DP_federatedlearning | 31fb5fe09f86a607a403e745e8de80bd27e2464a | 1a2adddc74bf8821e4bc1f5aa65c86bf43cb3b57 | refs/heads/master | 2021-09-12T16:49:29.796968 | 2018-04-18T23:54:36 | 2018-04-18T23:54:36 | 111,263,675 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,960 | py | # Copyright 2016 The TensorFlow 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
#
# Unless required by... | [
"sara.m.mccarthy@gmail.com"
] | sara.m.mccarthy@gmail.com |
b933996beccf98942c4493de2f34fce12b01d4db | 4ca9e34daf2b700246888050c4cc2d2170ad8a52 | /app/events/serializers.py | 586d82b8594f16298fa2db4db003770e7fa457eb | [] | no_license | combios/covid19-backend | c9619e831b819ddf581b06429911dc2826989691 | 819acc94c67e199c2324dcef9fd4d8698d2efdf1 | refs/heads/master | 2023-08-06T06:47:14.417942 | 2020-04-01T18:59:45 | 2020-04-01T18:59:45 | 250,376,209 | 1 | 3 | null | 2021-09-22T18:56:06 | 2020-03-26T21:32:02 | Python | UTF-8 | Python | false | false | 486 | py | from rest_framework import serializers
from .models import *
class QuestionnaireResponseItemSerializer(serializers.ModelSerializer):
class Meta:
model = QuestionnaireResponseItem
fields = ['code','value',]
class QuestionnaireResponseSerializer(serializers.ModelSerializer):
answers = Questionn... | [
"1499698+wjforero@users.noreply.github.com"
] | 1499698+wjforero@users.noreply.github.com |
504b3aed95121b7d1c9739af685bf627afa773aa | a18cb87400d3e7929daaa2440d729aa81e01d31d | /recikeep/lib/__init__.py | 5d30369fd761fbe943113f6a82eba3f06ea4172e | [] | no_license | juliomistral/recikeep | ecbfd222b5efedce00632c1c82e322239994d0f9 | 79ea280be97c05f8ef896f36b39c520b435a45e1 | refs/heads/master | 2016-09-06T00:36:51.490052 | 2013-02-01T18:01:57 | 2013-02-01T18:01:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | from unittest import TestCase
class BaseException(Exception):
def __init__(self, value=None):
self.value = value
def __str__(self):
return repr(self.value) | [
"jmistral@grio.com"
] | jmistral@grio.com |
03d8d151bc1223cad792f68132b3f16cdc1fc9f3 | 7f4393da71b78b26ec8aa9d3eae63d675f118620 | /posts/views.py | 910e1606d75d800588a34c436067bd53357c7692 | [] | no_license | Moriango/blog-clone | 0bcb87b2c85ee97c4a55d4cb1d783a2ea9509ea6 | 2c766bc10c63ebd1b0767bc46d57a487683b63f4 | refs/heads/master | 2022-04-21T00:38:21.698726 | 2020-04-23T22:02:11 | 2020-04-23T22:02:11 | 258,340,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,589 | py | from django.shortcuts import render, redirect
from django.contrib.auth.mixins import LoginRequiredMixin
from django.urls import reverse_lazy
from django.contrib import messages
from django.views import generic
from django.http import Http404
from braces.views import SelectRelatedMixin
from . import models
from . imp... | [
"toddnealstallworth@gmail.com"
] | toddnealstallworth@gmail.com |
2e8f924b05c6e8e8cef867d8da3e3b6134fb8fa5 | 14f20e3b066a16be1ccea690d235ad0e7792aa6b | /preprocessing/DictionaryImporter.py | ce9d1fba100876d4618ac8ab22c98ec0fcc8c4aa | [] | no_license | molybdaen/Sentiment | 9fb8cc9137166336451f4bd0ee84c46d3b59d39a | 8c5c44581f19b2b016f7ea39b3821a17aa594834 | refs/heads/master | 2020-04-05T23:44:16.051110 | 2014-03-16T14:37:07 | 2014-03-16T14:37:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,433 | py | __author__ = 'Johannes'
import os
import json
import numpy as np
from sklearn.neural_network import BernoulliRBM
class DictionaryImporter(object):
chars = {'\'':0, 'a':1, 'b':2, 'c':3, 'd':4, 'e':5, 'f':6, 'g':7, 'h':8, 'i':9, 'j':10, 'k':11, 'l':12, 'm':13, 'n':14, 'o':15, 'p':16, 'q':17, 'r':18, 's':19, 't':20... | [
"j.jurgovsky@web.de"
] | j.jurgovsky@web.de |
fee1fee1846bf026d468c1ece6e948cbdc4af9f9 | a41857a9caf09e5afe370c2222b12f907cfe526f | /robot.py | b696669fda05369ad1b2c71e7e66381fe1c7484e | [] | no_license | josearchi15/IPC2_Proyecto1_201314386 | f2fe38b0a731ea2b6cba46c200f99b6015723030 | f3cfc8c2f720b328b934ac0faeb16bf0a14de591 | refs/heads/main | 2023-07-15T15:39:39.338985 | 2021-08-28T23:54:51 | 2021-08-28T23:54:51 | 393,745,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,986 | py | from listaSimpleEnlazada import ListaNoOrdenada
from dijkstra import dijkstra
class Robot:
def __init__(self,nombre,terreno): #constructor (nombre, objeto terreno)
self.nombre = nombre
self.terreno = terreno
self.listaVertices = {}
self.listaDeAdyacencia = {}
def setVericesMat... | [
"chijolx3@gmail.com"
] | chijolx3@gmail.com |
8c8c0f407803a6d1d73f88221236034dfd1a132e | 7325479ff4074cb71096a1b192cb8bfce9729189 | /19 Python Built-in Functions/Python bytearray.py | 6fecd53cd7405429ce7c0fbcf99041653ae82c6a | [] | no_license | riyadhswe/Python_Javatpoint | 2220ab3818d7eb9b25f07e3b70e5c9f46f3cccbc | e42953c3fe0567040de850dddd0656b3ed1a17c2 | refs/heads/master | 2023-02-02T02:56:07.974814 | 2020-12-15T11:45:38 | 2020-12-15T11:45:38 | 293,787,032 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | string = "Python is programming language."
# string with encoding 'utf-8'
arr = bytearray(string, 'utf-8')
print(arr) | [
"riyadhswe@gmail.com"
] | riyadhswe@gmail.com |
7f808fe64232d40adb579077f74dc031e6c4267e | 2c4cd47c12f1bf3880c97a42a8444556a2b4aca8 | /excel.py | 00f89c3abff7e2694b198c877bdc4917f52cc854 | [] | no_license | urkup/Pulling-information-from-json-to-excel | 8db0c5432a869054f3c076dd0d1ae3b75206fdc8 | 8caad834ad619745e99dd6ce627113d84ef2140c | refs/heads/main | 2023-03-21T19:08:27.663408 | 2021-03-20T20:58:46 | 2021-03-20T20:58:46 | 349,833,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | import json
import csv
with open("./users10.json") as file:
data = json.load(file)
fname = "output3.csv"
with open(fname, "w") as file:
csv_file = csv.writer(file)
csv_file.writerow(["first_name","custom_email","username"])
for item in data["results"]:
csv_file.writerow([item["first... | [
"noreply@github.com"
] | noreply@github.com |
c7164b11022960dd940302fb45717e389b9a42c7 | 081207834468897520a327260165c64466aefb8a | /contrib/devtools/test-security-check.py | 5c69ef133e47fffed65b4c6ebca7bdab130923ff | [
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | gotaproblem/AuxPowCoin | eb61cd8dc03d021d3317ffb178ea6a685c74cb7c | eea038edf893677e85ca45eed047ff81092d3a0f | refs/heads/master | 2021-12-12T17:46:50.535108 | 2021-12-11T07:23:48 | 2021-12-11T07:23:48 | 227,309,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,643 | py | #!/usr/bin/env python2
# Copyright (c) 2015-2016 The Apcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
'''
Test script for security-check.py
'''
from __future__ import division,print_function
import subprocess
... | [
"steve664npc@gmail.com"
] | steve664npc@gmail.com |
460f9023457721eeccd00d823d1f460ffb2421dc | f8a3b942c8dd7ce3bed181f03a5f853a335a96c5 | /packages/ml_api/tests/conftest.py | 7c55d2bb9b35b6a6ad9559891eb5ff82da0c5173 | [
"BSD-3-Clause"
] | permissive | djoguns/testing-and-monitoring-ml-deployments | 2b9e2b7382635842cd0a6942cb54e9c04e2c23d2 | 9a1e5b17a71e7be700a93a3467f24f94f0df03e9 | refs/heads/master | 2020-11-26T14:29:57.676961 | 2019-12-15T17:22:54 | 2019-12-15T17:22:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | import pytest
from api.config import TestingConfig
from api.app import create_app
@pytest.fixture
def app():
app = create_app(config_object=TestingConfig()).app
with app.app_context():
yield app
@pytest.fixture
def client(app):
with app.test_client() as client:
yield client # Has to be... | [
"christopher.samiullah@gmail.com"
] | christopher.samiullah@gmail.com |
e8a65b29d8f745add8ba7f64dbbc7c7044bb8505 | 25004e75b2461c85b506ffbbe41bd1daed964198 | /task7.py | d473daa1702ad51a531867cf1699bc71b1470f31 | [] | no_license | IslyamUmarov/STP_tasks | 605fdb1f5083514bdb905e5e5e1f17610840459a | 072e9968ef3dc78f04a3480fb55c5548905c0d8f | refs/heads/main | 2023-05-10T19:07:40.331761 | 2021-06-02T16:39:36 | 2021-06-02T16:39:36 | 373,237,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,225 | py | import math
def getNumber01(num):
while type:
getNumber = input('Введите число ' + num + ': ')
try:
getTempNumber = int(getNumber)
except ValueError:
print('"' + getNumber + '"' + ' - не является числом')
else:
break
return int(ge... | [
"noreply@github.com"
] | noreply@github.com |
6013dd2ddd2bf166f6079ab2bc6d3a45189aff07 | c771478ca39417f41b0ffd5093dc8e6463f62524 | /Baseline/bin/p_classification/p_train.py | 35eadedc6752927a79b16e307181baeaa2f699f2 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | CharlotteSean/HDU-AILab | a6c1b4b70d6954d3db1c7ad0a56ba61cdf680b7d | 0e9672b37afd2342af52f8de92fc0176ac958739 | refs/heads/master | 2020-05-07T18:29:37.388689 | 2019-04-15T12:54:14 | 2019-04-15T12:54:14 | 180,769,008 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,819 | py | # -*- coding: utf-8 -*-
########################################################
# Copyright (c) 2019, Baidu 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
#
# ht... | [
"2308798518@qq.com"
] | 2308798518@qq.com |
f23109c9200a2ba579cae9bc17af8668d3da8123 | 59c6728976844b8003d4fc61cc9942b086df10d4 | /39/p39.py | ef99cb8e64aa8dc81e6823611321d8a6a4114552 | [] | no_license | hacatu/project-euler | dcafa013c3f9d630fe007357716f1408a31876ba | af43ffc5c1cd0f59fb1eea8215d4a5d48bdfc808 | refs/heads/master | 2022-06-19T21:43:52.693907 | 2022-03-08T09:29:30 | 2022-03-08T09:29:30 | 23,130,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | from math import sqrt
p=[]
for a in range(1,999):
for b in range(1,min(a,1001-2*a)):
c=sqrt(a*a+b*b)
if c%1==0:
p.append((a,b,c,a+b+c))
p.sort(key=lambda t:t[3])
v=p[0][3]
l=0
m=0
n=0
for t in p:
if t[3]!=v:
if l>m:
m=l
n=v
l=0
v=t[3]
l+=1
print(n)
| [
"hacatu5000@gmail.com"
] | hacatu5000@gmail.com |
f1b0e64e128c29c8a8b410a5640b304254597c00 | 718cfe57ab0930d0f9c9e46deed51caa3231b676 | /docs/_ext/djangodocs.py | f9ff6ffcbf37ef50f800fed0e90747707edaf825 | [
"BSD-3-Clause"
] | permissive | allanice001/django | 146886d4195fc8b0641d3f48c30eaa4175c96b49 | aac75fa30af22965f993c6dd8da8cd9882ba2f21 | refs/heads/master | 2020-03-28T17:07:04.061584 | 2018-09-14T08:30:27 | 2018-09-14T08:30:27 | 148,759,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,014 | py | """
Sphinx plugins for Django documentation.
"""
import json
import os
import re
from docutils import nodes
from docutils.parsers.rst import Directive, directives
from sphinx import addnodes
from sphinx.builders.html import StandaloneHTMLBuilder
from sphinx.util.console import bold
from sphinx.util.nodes import set_so... | [
"allanice001@gmail.com"
] | allanice001@gmail.com |
d40c0da8a02749008fbb1299986e327792b6b037 | 096eb739e8abfcfc387e21f416db023c184696cf | /django_test/mysite/apps/blog/models.py | 1a1cc2f36d0f7b79f0f1d5b7a758d4ba21f1b1a5 | [
"MIT"
] | permissive | Muix2015/Personal_Website | 34d8f2a30a01543688ca036b184f827e3d09e144 | 87f6247046a84cb524691f512775673eeeb25a5d | refs/heads/master | 2020-06-23T23:28:43.426689 | 2019-08-02T02:42:58 | 2019-08-02T02:42:58 | 198,784,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,058 | py | from django.db import models
from django.conf import settings
# Create your models here.
# 文章分类model
class Catalogue(models.Model):
name = models.CharField('分类名称', max_length=20)
slug = models.SlugField('唯一标识', unique=True, default='cata_slug_default(请修改)')
disc = models.TextField('分类介绍', max_... | [
"mixer2010@126.com"
] | mixer2010@126.com |
d605f5ceb43331ec9fadb7f52b44bb25329cddd3 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03860/s390012203.py | a8bd0d3f0f60bc1222c64af89e721898ed697180 | [] | 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 | 68 | py | a = input()
initial_middle = a[8]
print('A'+ initial_middle +'C')
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
7d88372dbdd8eded47db730d15016ad14104f03f | be6ce03d62c4fb79550fd83395729594ce8b5299 | /02_python_core_programming/03_network_programming/04_concurrent_server_http/09_gevent_coroutine.py | 51992feb5412f6f8f4198ceea5b589d7eeeeaaeb | [] | no_license | gutianyu520/python_test_demo | b407dabfc974e4ed42578565355ddd13a0429fa6 | 708edb2acbc701074e882de5fc975e11426114de | refs/heads/master | 2023-02-28T19:48:10.512796 | 2021-02-13T10:46:14 | 2021-02-13T10:46:14 | 334,833,946 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 981 | py | # -*- coding: utf-8 -*-
# @Time : 2021/2/5 21:03
# @Author : Lim Yoona
# @Site :
# @File : 09_gevent_coroutine.py
# @Software: PyCharm
from gevent import monkey
import gevent
from urllib import request
"""
协程--gevent
在greenlet基础上实现了自动切换
调用gevent.sleep()实现自由切换
"""
def f(n):
for... | [
"965238929@qq.com"
] | 965238929@qq.com |
9629e60fd5a07f4f2ca46385317661d71bf72660 | 26d5c795d8aa83bf5cb3f228675ff51e2f704f57 | /scripts/s3stream-dl | 7676dcc4c1287bba92fbf83a97df5657a705d475 | [] | no_license | binarymachines/mercury | 8e13bb10c67a056fe88e02f558d73f1f1b95d028 | db3e2425f4e77a44a97c740f7fff90312a1bd33f | refs/heads/master | 2023-07-08T11:35:26.867494 | 2023-06-25T00:46:23 | 2023-06-25T00:46:23 | 94,708,610 | 2 | 6 | null | 2023-02-15T21:50:06 | 2017-06-18T19:31:50 | Python | UTF-8 | Python | false | false | 8,504 | #!/usr/bin/env python
'''
Usage:
s3stream-dl --manifest_uri <s3_uri> --format=<fmt> --list
s3stream-dl --manifest_uri <s3_uri> --format=<fmt> [--delimiter=<delimiter>]
s3stream-dl [-p] --path <s3_uri> --pfx <prefix> --format <fmt> [--d=<delimiter>] --xcfg=<xfile_cfg> --xmap=<xfile_map> --ncfg=<ngst_cfg> ... | [
"binarymachineshop@gmail.com"
] | binarymachineshop@gmail.com | |
b4a2c09e170cf0fe85da7a4f9de778ac91b5b3cf | 898349df123c9a7c18f00d205ef1ca9169edbb7c | /map_composition_to_crossover_depths.py | f0dbfd945f98eec7f82b94b8d8e94faf146e1a1f | [] | no_license | ScottHull/analyze_exoplanet_pocketknife_results | 13b5fb7d60c63bb43b4b634c65352d4849d10063 | 979a6d3a29bfb8d56d8e09f2de02c09f5ce70506 | refs/heads/master | 2023-05-17T04:19:08.305820 | 2021-06-05T03:25:31 | 2021-06-05T03:25:31 | 274,940,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,757 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from src.atomic import Convert
# BSP temperature, MORB F temperature, MORB temperature
runs = [
(1600, 1600, 1600),
(1600, 1600, 1400),
(1600, 1600, 1200),
(1600, 1400, 1400),
(1600, 1400, 1200),
(1400, 1400, 1400),
(140... | [
"scottdhull21@gmail.com"
] | scottdhull21@gmail.com |
7b4029c8b2039d20fcfa67a38e0af84120540d04 | 21e35e3889cd0064474343a3b84aa289a01f8fac | /third_example_flask_app/classes.py | 89d5863ab289c20518eb2bebec2bf9439ba3ca5f | [] | no_license | EricSchles/learn_python | b8fbc2b38647efb8e7176ac0d20708ffe1691007 | 8a5eb76aa333253a6c01f76d36dacad6bcf931ea | refs/heads/master | 2021-01-13T16:45:53.606240 | 2017-01-31T21:10:53 | 2017-01-31T21:10:53 | 77,006,920 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | class Integer:
def __init__(self,number):
self.number = number
def add(self,other_integer):
self.number += other_integer
def subtract(self,other_integer):
self.number -= other_integer
def __str__(self):
return repr(self.number)
if __name__ == '__main__':
number =... | [
"ericschles@gmail.com"
] | ericschles@gmail.com |
2958ed47b882930510e522479343667bd0f70966 | 3843da3c397cc4f251cc8558b10486cb2dbffd45 | /Fibonacci/Aplicacion_Fibonacci.py | 98274d9436365bfa09dba2a26ccf82e6ceb33017 | [] | no_license | manolosierra99/FIBONACCI | e6736db4ac2164cce8ae5fc1b19cf1cfeb27a4a8 | 5eb8c0f1275b6c2c593203627f1a594e01f0de54 | refs/heads/master | 2020-01-23T21:16:42.865984 | 2016-11-23T10:36:54 | 2016-11-23T10:36:54 | 74,568,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | '''
Created on 23 nov. 2016
@author: usuario
'''
from Fibonacci_package.Funcion_Fibonacci import Fibonacci
if __name__ =="__main__":
numero=int(input("Escribe un numero sobre el que desea saber la funcion de Fibonacci:"))
print(Fibonacci(numero))
| [
"manolo.sierra99@gmail.com"
] | manolo.sierra99@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.