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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dfc5898e45b133126efd5196a4e5110b598558d3 | 8ee3da3d2c53203ab35277698f5a584be3c5b426 | /Login_Registration_belt/apps/users/views.py | 701e8cd6af67ec2e5193002638c19ebdef7542d3 | [] | no_license | jonkoerner/Python-Django | a07ad98c6fc1ec81b769004c8cdd06b0698317bd | 09c25ea7f26ea441ecb04896d39d622905e9041a | refs/heads/master | 2020-03-17T23:56:09.830310 | 2018-05-19T14:40:55 | 2018-05-19T14:40:55 | 134,068,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | from django.shortcuts import render, redirect
def index(request):
return render('users/new.html')
def new(request):
return render(request, '/users/new')
def create(request):
print request.post
if request.method == 'Post':
result = User.objects.validate_registration(request.POST)
print... | [
"koernerj8329@gmail.com"
] | koernerj8329@gmail.com |
fbf178a718858ced4106b9333d7c44d72192da25 | a91735023de0477edb0de17a9ff0d4e455f5ce04 | /Scripts/l10_if.py | fc8e9f6b12071e8a9f06120c7b3bc9843a6b4563 | [] | no_license | Ichtiostega/PythonLearning | 2c9679c61e06f41586eee5d11c4c60fb0026754d | b34f5b865db3ca809af2adddfc063c95b2d38b51 | refs/heads/master | 2020-06-20T22:46:03.037358 | 2019-07-25T13:54:03 | 2019-07-25T13:54:03 | 197,276,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 896 | py | import myHeaders
myHeaders.printl("If Statements", 10)
is_hot = bool(int(input('Is it warm? ')))
is_cold = bool(int(input('Is it cold? ')))
if is_hot:
print("It's a hot day")
print("Drink plenty of water")
elif is_cold:
print("It's a cold day\nWear warm clothes")
else:
print("It's a lovely day!")
prin... | [
"kkna102@gmail.com"
] | kkna102@gmail.com |
feb64c06c982a14449c43ee53cc8a6183106fe90 | 093b7b3ce929fa1383d5c1571271807f171aec23 | /rocket/entities/api/endpoint.py | 971b53d78b7948b93078e3f8e4b2b12806ebba05 | [] | no_license | takaaki-mizuno/smart-rocket-cli | fa728a13bc80781aea182922f7a0ee2c546518b1 | 1b4a522c54e94857803f9be246f0c480e50dae3d | refs/heads/master | 2020-03-21T02:06:54.115723 | 2018-06-25T22:43:32 | 2018-06-25T22:43:32 | 137,980,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 934 | py | from .parameter import Parameter
from .response import Reference
class Endpoint:
def __init__(self, path, method, definition, spec):
self.path = path
self.method = method
self.definition = definition
self.spec = spec
self.parameters = []
self.response = None
... | [
"takaaki.mizuno@gmail.com"
] | takaaki.mizuno@gmail.com |
7a0f39bf293d3a3bec9723fe29727b3e3878b714 | 3b7846b81149ae863053ab28878986133f4e5c72 | /cnn.py | a502b27cda85415e096dcd7ab81de95318145931 | [] | no_license | Ankush1099/Image_Recognition | 6b77fcbc2f837e06b53335ec7fb57dcf1b0e1a9e | 1c1d59357fe04f1b3d00dfa94e86961f58cdc524 | refs/heads/master | 2022-07-27T17:34:32.168990 | 2020-05-17T14:25:56 | 2020-05-17T14:25:56 | 264,680,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,098 | py | # Convolutional Neural Network
# Part 1 - Building the CNN
# Importing the Keras libraries and packages
from keras.models import Sequential
from keras.layers import Conv2D
from keras.layers import MaxPooling2D
from keras.layers import Flatten
from keras.layers import Dense
# Initialising the CNN
classifier = Sequent... | [
"noreply@github.com"
] | Ankush1099.noreply@github.com |
5adf4804a50da645b6c187bcd6792fd33a974c1f | 838b128e7da155f520a3044c22c6f68b703344a3 | /extension_CS151_Project8/after/growth.py | 1710268a1a8f8a6b96079219aa6aa1fc8d929a89 | [] | no_license | RPSeaman/refactoring | 7fb8c6a85d4dfb7acdba24568f96b754e6f18a78 | 9df437995b73f85202870fc83dae834f18fecd86 | refs/heads/main | 2023-09-02T14:15:26.091859 | 2021-11-21T00:37:08 | 2021-11-21T00:37:08 | 427,078,303 | 0 | 0 | null | 2021-11-11T16:59:43 | 2021-11-11T16:59:42 | null | UTF-8 | Python | false | false | 2,419 | py | '''
John Connors
Project 8
This code produces an image of a tree
growing. To run this code type py growth.py the names of the
2 L systems you want to use, the side length and the angle
into the For the first and second arguments use
systemML and systemLL in that order. Please use a length of 10
and an angle... | [
"noreply@github.com"
] | RPSeaman.noreply@github.com |
72482b5773be813af111f57f6c3a157c6eb7624c | 90c43c1425554723087a4e80cedaaba8ec74306d | /separated-by-dash.py | c332567a526f0fddeba39e488a9929babceed2bd | [] | no_license | otonielandrade7/a-python-newbie-things | 2fd119d6b1e16c696bbd74fd5448faf61adb1a76 | 7c09f3602a50292982f1fe7ad8dc56610b7349ac | refs/heads/master | 2023-03-04T09:00:11.914323 | 2021-02-15T02:21:11 | 2021-02-15T02:21:11 | 338,919,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | text = input("Introduce your text here\n")
responseText=""
for letter in text:
if letter == " ":
responseText+="-"
else:
responseText+=letter
print(responseText)
| [
"otonielandrade7@gmail.com"
] | otonielandrade7@gmail.com |
4f14c16247f080ab32ee34c41186c2005e1ab51a | d5d46a48eed6b98e0e7a573a715a150aaacbe3bc | /tests/utils/test_csv_file_writer.py | 2883c6fd912e202f354fa224c8da59db3b0eedd1 | [] | no_license | bitPogo/biomed-mlps | 1360697f93d3d2d7961d1e10972d6bad360ab365 | df1de425f53e6133028a03db894f3eb137f2c8c1 | refs/heads/main | 2022-12-27T09:24:57.971705 | 2020-10-06T01:59:12 | 2020-10-06T02:00:12 | 278,577,785 | 0 | 1 | null | 2020-09-30T10:01:48 | 2020-07-10T08:15:18 | Python | UTF-8 | Python | false | false | 5,413 | py | import unittest
from unittest.mock import patch, MagicMock
from biomed.utils.csv_file_writer import CSVFileWriter
from biomed.utils.file_writer import FileWriter
import csv
class CSVFileWriterSpec( unittest.TestCase ):
def setUp( self ):
self.__openM = patch( 'biomed.utils.csv_file_writer.open' )
s... | [
"geislemx@informatik.hu-berlin.de"
] | geislemx@informatik.hu-berlin.de |
b91b3a8d433eae43a3209853c13c1eba6542653f | c2d29753af6c439b882af02ea2669bdde4a67346 | /test_discount/models/account_move.py | 3df6ec068b263959febc4d98f10bb40195c1a191 | [] | no_license | HassanRafat95/Task1- | 3ca9a8518a5df4002fa1e1e10c82f984e223e26d | d53ba0b8d2f852c1dfc7e986e131460a0803fc74 | refs/heads/master | 2023-06-30T07:08:35.926996 | 2021-08-05T15:15:38 | 2021-08-05T15:15:38 | 384,973,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,672 | py | from odoo import fields, models ,api
class AccountMove(models.Model):
_inherit = 'account.move'
discount_account_id = fields.Many2one(related='company_id.allowed_discount_account_id')
discount_product_id = fields.Many2one(related='company_id.allowed_discount_product_id')
sub_total_discount_allowed = f... | [
"hassanrafat95@gmail.com"
] | hassanrafat95@gmail.com |
8f93c0d8749db98eebd878c2d3d78b2346bfdf7d | ca882b1c30806ed713b0c13e03038d7e2fde27b0 | /python1.py | 3e70442c4b0187c811086bcf6f8dd63603091705 | [] | no_license | hammad2008/FGSM | cebb07907da96f666bba943a11b2c14091b47d4d | 75c54a14f12f4d1a87a5ee1cd24519e00f0ce7b5 | refs/heads/main | 2023-01-24T08:04:22.963946 | 2020-12-10T10:05:01 | 2020-12-10T10:05:01 | 320,229,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,806 | py | import tensorflow as tf
import matplotlib as mpl
import matplotlib.pyplot as plt
mpl.rcParams['figure.figsize'] = (8, 8)
mpl.rcParams['axes.grid'] = False
pretrained_model = tf.keras.applications.MobileNetV2(include_top=True,
weights='imagenet')
pretrained_model.tra... | [
"noreply@github.com"
] | hammad2008.noreply@github.com |
723a4db6b224ae348bf3083736faa2693c91c591 | 0355a4fb1a173ec811b83e87f5995899cddd66e5 | /Jaydeep/PrimeNumber_while.py | 38b0bf5f409b61beed06e86a7b4667d792f8fc37 | [] | no_license | rahulgoyal223/python | 9d4d3e1574940689ea92e86f8a3db6a174546845 | 11e9ae2f5ecaf1747650b1cc7a68a45426deb8a7 | refs/heads/master | 2020-03-26T05:56:33.590856 | 2018-09-06T04:56:34 | 2018-09-06T04:56:34 | 144,581,857 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | py | i = 1
while (i<100):
j=2
while (j<=i):
#print j
if (i%j is 0 and i is not j):
break
else:
if (i-j == 1 or i-j is 0):
print(i)
break
else:
j = j+1
i = i+1
print("good bye") | [
"rahul.goyal223@live.com"
] | rahul.goyal223@live.com |
961c13a89b0b65dd59f3daff5f4332855fa9ee93 | ba3dd49a03969825058f838130c829d0b4a38a1e | /ground_station/iterative_graphing.py | 33f73a6056e0655d695fc0c2b82f15284d47a7da | [] | no_license | NUSTARS/2019-FDN | 9f25ca36e2064826cf54b36fd55ac12197112970 | 900e8c14782c641147d55f401314737c12e345ea | refs/heads/master | 2020-09-07T20:29:18.054090 | 2019-06-08T23:35:24 | 2019-06-08T23:35:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | import matplotlib.pyplot as plt
A = []
I = []
plt.ion()
fig = plt.figure()
ax = fig.add_subplot(111)
for i in range(10):
I.append(i)
A.append(i**2);
print(I)
print(A)
ax.plot(I, A)
fig.canvas.draw()
| [
"j.p.kuz41.3x@gmail.com"
] | j.p.kuz41.3x@gmail.com |
2d80362541e5e14973ad52c4b8c3098527442e3b | 1f7a6703ea7946b2585660186f0f3d592482502c | /scrape-bot.py | 3f4d034bbd49659dd3ce2b2fa5aa06f939e1c136 | [] | no_license | chlader/twitterbot | 8335812d9218e19efd6cf3bb259ce35f9dbe9c2a | 556b6510911efe547b7b6a36c490aeb2c8ae40f6 | refs/heads/master | 2020-03-25T01:03:24.808799 | 2018-08-01T23:55:45 | 2018-08-01T23:55:45 | 143,219,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 855 | py | # model scraping for themodelbot
import requests
from bs4 import BeautifulSoup as bs
import os
# website with model images
url = 'https://www.pexels.com/search/chicago/'
# download page for parsing
page = requests.get(url)
soup = bs(page.text, 'html.parser')
# locate all elements with image tag
image_tags = soup.fi... | [
"32153723+chlader@users.noreply.github.com"
] | 32153723+chlader@users.noreply.github.com |
b77b291e39b9b637540b074cc202c709fdb9bd6e | 0989cfc269da65d3d87ac882183bd1761f9e9f6d | /webscraper.py | 09882540b2790df0a798d579f3bdd575950cd548 | [] | no_license | stanleylai21/NYSDWebScraper | 0a7a339f0ef9df20668ca89db010e99552b8be54 | a24f513a2348647fb351951ec3732d0874a3ad4d | refs/heads/master | 2021-04-04T13:07:38.359943 | 2018-03-13T03:36:09 | 2018-03-13T03:36:09 | 124,987,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,582 | py | import datetime
from time import strptime
from requests import get
from bs4 import BeautifulSoup
import re
def create_datetime(times): #method for turning the time format given by the website into a datetime object
full_date = re.split(', ',times)
month_day = full_date[1].split()
month_name = str(... | [
"noreply@github.com"
] | stanleylai21.noreply@github.com |
4c48812c9a8062fd971839d5a3f2a64ff7b62188 | acc6c7ab843f620e99fc35c0342749e40bc37a4c | /env/lib/python3.7/sre_compile.py | 10787337f06553f81bd153e58fadb2f52d705fe0 | [] | no_license | asyrofist/TwitterSentimentAnalysis | b1cecae42558c500dfd0f27b34e6a20e96d9dbd3 | 68402dbcd566f0d02eff286a734ad46b1567dec6 | refs/heads/master | 2020-12-26T07:38:21.187197 | 2019-09-29T09:54:40 | 2019-09-29T09:54:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 62 | py | /Users/sushanthkurdekar/anaconda3/lib/python3.7/sre_compile.py | [
"sushanthkurdekar@Sushanths-MacBook-Air.local"
] | sushanthkurdekar@Sushanths-MacBook-Air.local |
533ca7f861f7a6a34ff0265d601d017f0f9835f7 | b6d82335dfe93f86977e4cbafe592eff32536712 | /src/aws_hashicorp_packer_reaper/schema.py | f028da830fb0a93c2da236b6aabc65f3a6ed1a36 | [
"Apache-2.0"
] | permissive | felixubierar/aws-hashicorp-packer-reaper | 2bb9709b3c95c53d519fa5d009cbafc48232b1b4 | 9b29f6896f43a01f47d2a894059e4afa191a8ff2 | refs/heads/master | 2023-05-19T17:01:23.872830 | 2021-06-14T08:57:50 | 2021-06-14T08:57:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,835 | py | import durations
from aws_hashicorp_packer_reaper.logger import log
from jsonschema.exceptions import ValidationError
from jsonschema import validators, Draft7Validator, FormatChecker, validators
schema = {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"mo... | [
"mark.van.holsteijn@gmail.com"
] | mark.van.holsteijn@gmail.com |
d74656c9578d8ba0e1508d50e3b518586272396c | c6aa40733b72a8336efdc87cc148a0a792f20501 | /python/redis_client.py | 5819c0228b99bbf946a7255db166d124c5a8cf67 | [] | no_license | lengxy/recsys | ec3f0b5c4cce26a8494fc272f50aa497a3494444 | 9e93c33ffe5d4af289429f9dcee3d331ab225be4 | refs/heads/master | 2016-08-09T23:38:55.984976 | 2015-11-22T13:36:20 | 2015-11-22T13:36:20 | 46,559,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | #encoding=utf-8
import getopt
import sys,os
import re
import glob
import math
from redis.sentinel import Sentinel
default_encoding = 'utf-8'
if sys.getdefaultencoding() != default_encoding:
reload(sys)
sys.setdefaultencoding(default_encoding)
def main():
sentinel = Sentinel([('localhost', 26379)], sock... | [
"xiaoyu@dev1.yuezhixing.cn"
] | xiaoyu@dev1.yuezhixing.cn |
11696d9acca897a78b9dddc9bf7afed5abdcc28f | 414a33cde8b5a3aa7463a79490fed93c43ae2fe3 | /vote/migrations/0024_auto_20201116_2128.py | b400a37c337ca6377c5061a713cb96f596a8e0e4 | [
"MIT"
] | permissive | bonomali/wahlfang | de88554956288a5144d292b6451108f394062246 | 1774bae3cfdf264d7eb1d846642ce983309f7835 | refs/heads/master | 2023-06-30T16:18:58.735851 | 2021-07-24T15:20:42 | 2021-07-24T15:20:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | # Generated by Django 3.1.2 on 2020-11-16 20:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('vote', '0023_election_disable_abstention'),
]
operations = [
migrations.AlterField(
model_name='election',
name='resu... | [
"tobias@juelg.net"
] | tobias@juelg.net |
8d5c12675fbee82c4d20320e48951b0b9f1842e2 | f716ec8240b775170283cb6d43da50d0ff3561b7 | /testkraken/testing_functions/check_output.py | 9eeb9c524b75d5c5bbe91ba9471dee63bc318ab0 | [] | no_license | jdkent/testkraken | 63493df89a5ae427dab9da14fc794de96cda6cef | 3b5d83f0eeaad7969902cfa867e6b4a1d4d7e691 | refs/heads/master | 2020-06-01T11:39:57.286709 | 2019-06-07T09:55:16 | 2019-06-07T09:55:16 | 190,766,540 | 0 | 0 | null | 2019-06-07T15:24:49 | 2019-06-07T15:24:49 | null | UTF-8 | Python | false | false | 3,766 | py | #/usr/bin/env python
from __future__ import division
import json
import os, inspect
from glob import glob
import pandas as pd
import numpy as np
import pdb
def creating_dataframe(files_list):
""" reads every json file from the files_list and creates one data frame """
outputmap = {0: 'voxels', 1: 'volume'}
... | [
"djarecka@gmail.com"
] | djarecka@gmail.com |
a429839600ba1936409a443177af72bb05d2cc6b | 5ad7122ff09df5b798beb89a352925743a92d5e7 | /analyze.py | a09af251ecb617d51d420474de5330d746b4ac94 | [] | no_license | ClarkWang1214/lda-2 | 1b7333a7b9bad9d86e29e8b966da9a86dfefe67a | 2bc19525dc6db314a6417824b8dcdfdeee593a6e | refs/heads/master | 2021-05-27T15:17:52.604521 | 2014-03-16T05:19:51 | 2014-03-16T05:19:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | filename='batch.txt'
outside=['mountain', 'opencountry', 'forest']
city=['insidecity', 'street', 'tallbuilding']
dist=dict()
test=list()
for line in open(filename):
res=line.strip().split()
''''
for idx in range(len(res)):
if res[idx] in outside:
res[idx]='outside'
if res[idx] in... | [
"wenzhouw1989@gmail.com"
] | wenzhouw1989@gmail.com |
0d433d2b2e0fae86e6e35ae79669c0219906427b | 66b39067e7c68b3e7aaa525537ab70b07891629b | /baseline_2/main.py | 2b0cc097d16719485503cd2f2dcf6c39fea57ca7 | [] | no_license | rinchenlama0075/MasterMind | 3b0ebb698e726af96e4b81b6b8a0fc9cad94bfc7 | 0bf6c98a2082ab406d193f22876c21c864c6b3d5 | refs/heads/main | 2023-05-07T02:46:30.994606 | 2021-04-21T19:36:20 | 2021-04-21T19:36:20 | 354,607,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,843 | py | # Main file to run game of Mastermind based on command-line arguments
# See example.ipynb for other ways to use the Mastermind representation
import sys
from scsa import *
from player import *
from mastermind import *
from fbi_B1 import B1Player
from fbi_B2 import Baseline2
def main():
if len(sys.arg... | [
"rinchenlama0075@gmail.com"
] | rinchenlama0075@gmail.com |
25c6b6759b3bcbb6209472e625e8708da931c208 | d466ef491b688f6134c05761484dff83fd4da80e | /test/test_resources.py | 492133d8a1572a248e11744845c2bce7bc02028a | [] | no_license | csiro-chris-m/marine_values | 370b8bc8f0e684b6edaea1bebe33d96b574d7ee8 | 93b5d9df2a664db94115e3b40aca037e71d14655 | refs/heads/master | 2021-01-13T03:34:04.359992 | 2017-11-16T06:40:56 | 2017-11-16T06:40:56 | 77,310,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,085 | py | # coding=utf-8
"""Resources test.
.. note:: This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
"""
__author__ = '... | [
"chris.moeseneder@csiro.au"
] | chris.moeseneder@csiro.au |
dd7863b3fccfeb68a73493c51a60650a5878a877 | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /DaVinciDev_v38r1p1/Phys/StrippingArchive/python/StrippingArchive/Stripping13/StrippingB0q2DplusMuX.py | 14901f74eb54b516839193dda755bc482337e0e4 | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,405 | py | # $Id: StrippingB0q2DplusMuX.py,v 1.6 2010-09-03 00:05:35 rlambert Exp $
"""
Module for constuction of B0q->DplusMuNuX lines
==== Description of the lines ====
B0q->DplusMuNuX0 with X0 being neutrino, gamma, pi0, whatever,
Dq->KKpi, as required for Afs analysis in semileptonics.
(Ds+->KKpi, D+->KKpi)
There are three... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
2a58af80f155244867970e5a9fa1b81b38c15d2c | 223ef6366bf28eda5ed7a51ebbe2615b1d76d969 | /myproxy.py | ad382eab082b618777393a3736a2a06152a560d7 | [] | no_license | wuxiaoling/myproxy | edab554ac6fd968840bc478016e048f4892ca048 | 95ab280e5a702832189bed734992fdc36172e661 | refs/heads/master | 2021-09-14T19:48:23.904647 | 2018-05-18T09:21:24 | 2018-05-18T09:21:24 | 112,447,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,938 | py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
import os, sys
from ReverseProxy import *
try:
from tkinter import *
from tkinter.scrolledtext import ScrolledText
except ImportError: #Python 2.x
PythonVersion = 2
from Tkinter import *
from tkFont import Font
from ttk import *
from tkMessageBox import *
from tkin... | [
"1047147327@qq.com"
] | 1047147327@qq.com |
a0a7fe20132a9485d8a061a454e13d25388613e3 | 6eaaad8447702972959b88d95f7354548bfa35d6 | /multi_table_test.py | f9379bcd2faafa57b6b7f8405680f6c4642c3342 | [] | no_license | sako1847/sample_app | 928a2b7d9eb41350637d6e5544c6cd5f5372332b | 075c62c601e6cd4a9bab102290d58dafed5728f4 | refs/heads/master | 2020-05-31T02:49:04.487413 | 2016-05-17T13:59:49 | 2016-05-17T13:59:49 | 40,514,716 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,366 | py | import time
import random
from ryu.base import app_manager
from ryu.controller import ofp_event
from ryu.controller.handler import CONFIG_DISPATCHER, MAIN_DISPATCHER
from ryu.controller.handler import set_ev_cls
from ryu.ofproto import ofproto_v1_3
from ryu.ofproto.ether import ETH_TYPE_IP
from ryu.lib.ofctl_v1_3 impor... | [
"kawai.sakiko@lab.ntt.co.jp"
] | kawai.sakiko@lab.ntt.co.jp |
fef86974ffa3cd0957b6545900f9fbacc432b248 | 6ed99600de4fd89b664f9c09ff05d58029db0870 | /annotator_client/api/__init__.py | 23d4cd4ddeefb76b1746a35b9481d575eefb03c1 | [
"MIT"
] | permissive | MaastrichtU-IDS/annotator-client | 172b681c25c478c571ea9457b857a3a9eb1b341d | d9d375f2888b8d9858f21a4ebf63cd311e8ea11b | refs/heads/master | 2022-11-07T18:56:49.818484 | 2020-06-24T15:55:19 | 2020-06-24T15:55:19 | 272,953,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 60 | py | from annotator_client.api import views
__all__ = ["views"]
| [
"t.hendriks@maastrichtuniversity.nl"
] | t.hendriks@maastrichtuniversity.nl |
3d6fae9b8527d4f8823a630b37b8fecb7d2d8207 | b9f21bc90eed396dde950c30a1b482be0fb8ba30 | /AtCoder/ABC/114-B_1.py | 85c142e193b383c2ee95f438be3c37a3edec97b1 | [] | no_license | nanigasi-san/nanigasi | 127a21db1b31759908fd74cebabe240e5abf8267 | 5e3c3e78344dd9558cafe439beb272b9a80d0f3a | refs/heads/master | 2020-04-03T18:57:40.132489 | 2019-06-19T15:03:38 | 2019-06-19T15:03:38 | 155,504,101 | 1 | 0 | null | 2019-02-20T09:40:05 | 2018-10-31T05:33:11 | Python | UTF-8 | Python | false | false | 155 | py | S = list(input())
list = []
for _ in range(len(S)-2):
Sx = S[_]+S[_+1]+S[_+2]
sa = int(Sx)-753
list.append(abs(sa))
list.sort()
print(list[0])
| [
"nanigasi.py@gmail.com"
] | nanigasi.py@gmail.com |
cfa7ea81a141b5612abe9b9a47279ebb7c59cbca | e85d0dee0c8de9b609fb43d25c2780e880417d1d | /Spark SQL-93.py | b9c3cc339e5e506f6ed469e745d44b8ea21e97a0 | [] | no_license | pranshu1921/Machine_Learning_Dataquest | f4a44c095480b53b2083fb58051aad060d54afc4 | 4eafa9768120ac2208166ffcf0ea4e4908f83aa0 | refs/heads/main | 2023-07-19T16:19:55.399106 | 2021-09-07T20:32:57 | 2021-09-07T20:32:57 | 303,797,262 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,362 | py | ## 2. Register the DataFrame as a Table ##
from pyspark.sql import SQLContext
sqlCtx = SQLContext(sc)
df = sqlCtx.read.json("census_2010.json")
df.registerTempTable('census2010')
tables = sqlCtx.tableNames()
print(tables)
## 3. Querying ##
sqlCtx.sql('select age from census2010').show()
## 4. Filtering ##
query ... | [
"noreply@github.com"
] | pranshu1921.noreply@github.com |
55cd6829443eff74f5355c68f65b9b11ca2a37db | 1ac99f8065a2646bdb8ea9003fd5930341fb0cf4 | /flow_of_controls/while_basicprogram.py | 5e2dae225febd8aa313d2dcaf587b41771c78bb9 | [] | no_license | krishnanunni-pr/Pyrhon-Django | 894547f3d4d22dce3fff14e88815122c12c145b5 | c59471f947ceb103bb27a19e8a2a160e8ada529b | refs/heads/master | 2023-07-29T19:40:38.199104 | 2021-09-09T18:12:24 | 2021-09-09T18:12:24 | 385,128,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47 | py | #print i
i=10
while i>0:
print(i)
i-=1 | [
"krishna@gmail.com"
] | krishna@gmail.com |
3e64be80aa4245763c665dfe41fb7d9fe6d9c13c | cf06e4d0af076cd73b8733b9f1142c435b047a31 | /tests/mock_external_services.py | 4af1a4271b886d0c6ce7d504790430341dd660f7 | [
"Apache-2.0"
] | permissive | arikkfir/deployster | 0e9117d47b9029c806b6245f16581b81dbb814b0 | b95fdb9cf150eee765f7ef3dbdee3666119e76f9 | refs/heads/master | 2021-03-21T23:56:26.609645 | 2018-04-18T23:25:51 | 2018-04-18T23:25:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,885 | py | import time
from pathlib import Path
from typing import Mapping, Sequence, Union, Any, Tuple
from docker import DockerInvoker
from external_services import ExternalServices, SqlExecutor
from util import Logger
class MockDockerInvoker(DockerInvoker):
def __init__(self,
volumes: Sequence[str] = N... | [
"arik@infolinks.com"
] | arik@infolinks.com |
e6744e1ee333c1330092b588cf31083ede957c96 | 9b6ed6877dba73771e33827ad16b781c32c70f52 | /venv/Scripts/pip3.7-script.py | f448a74def810a252672014e7288994096fefdb7 | [] | no_license | nongxl/DBsDiff | 2f964f9e10af32c7caf8bcfd5dfd1720e942bc7b | 6c172085a1c85f729dac83933cb3d88628681efb | refs/heads/master | 2023-02-12T20:59:42.865775 | 2021-01-07T09:18:08 | 2021-01-07T09:18:08 | 321,529,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | #!D:\workspace\PyCharm\DBsDiff\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.7'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
... | [
"nxiaoliang@outlook.com"
] | nxiaoliang@outlook.com |
671f43d908baa3c118b7e3e44c09aee84552f4d5 | ff58ba25d940ed34d9684efab04adef85d1e1c0f | /ENV/lib/python2.6/site-packages/gunicorn/app/pasterapp.py | 388478181468378e0cb86f5300a8946ea4738159 | [] | no_license | afsmith/Kneto-Sello | e9046a81ff83652531adc55aab3f90f77af5b5be | a1b12daf8a04ef485ddcaa2944b2d87878a8cdd0 | refs/heads/master | 2021-03-27T17:31:23.830989 | 2013-06-04T07:29:58 | 2013-06-04T07:29:58 | 6,720,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,270 | py | # -*- coding: utf-8 -
#
# This file is part of gunicorn released under the MIT license.
# See the NOTICE for more information.
import logging
import os
import pkg_resources
import sys
import ConfigParser
from paste.deploy import loadapp, loadwsgi
SERVER = loadwsgi.SERVER
from gunicorn.app.base import Application
fr... | [
"andrew.smith@kneto.fi"
] | andrew.smith@kneto.fi |
e28a917908d4aabdf1c6e15902a58fb97b9c0e88 | fbad7c78949095d94db6c4ecb073d5a842298490 | /valitation_topic_aware_2/src/valide_util.py | c86b8812b7a391448aa49ea12efdfc13e5bebe66 | [] | no_license | YangkeSUN/ECENTIME | 97f0b1678a285843231d230e164465a26a009861 | 545fc97c3f15c02d3cbb42d62aad99a5871dc8e9 | refs/heads/master | 2020-04-02T13:52:36.419215 | 2019-11-09T12:06:23 | 2019-11-09T12:06:23 | 154,500,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 948 | py | import gzip
import json
#def smart_open(file_path, *args):
#def smart_json_load(file_path):
#def text_save(content, filename, mode='a'):
#def text_read(filename):
def smart_open(file_path, *args):
if (file_path[-3:] == '.gz'):
return gzip.open(file_path, *args)
return open(file_path, *args)
#end def s... | [
"ysun@lri.fr"
] | ysun@lri.fr |
3316129328eef7da97fbbaee62c47d100800316a | 28e5ec12ade253a1e7a2a201cc561aa64a7dd25b | /0x03-python-data_structures/10-divisible_by_2.py | b5f9e3b460991887a26a708752f6ffb3977fb2c0 | [] | no_license | kiba0510/holbertonschool-higher_level_programming | b9de792ef67d13ee144a4f352609d78d3c1aa9ff | a66a248f9cc417ac662ed8e8cb0e57bd34185fa1 | refs/heads/main | 2023-05-08T07:39:21.760169 | 2021-05-12T19:37:09 | 2021-05-12T19:37:09 | 319,350,601 | 0 | 4 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | #!/usr/bin/python3
def divisible_by_2(my_list=[]):
bool_list = []
for x in my_list:
if (x % 2 == 0):
bool_list.append(True)
else:
bool_list.append(False)
return (bool_list)
| [
"kiba0510@gmail.com"
] | kiba0510@gmail.com |
13a07faedd24175a917c1ec663f9fd10ceb4d8f5 | 3b9b0ceb7c6562fe8070afd142e4c5645b22dde2 | /drive.py | 0dec417b427ab6c5d7935829284b9b3ab76f980b | [] | no_license | abhi092/Self-Driving-Car | afe7db2b35d8a889dadf65044d28801d667858e6 | ec788eb865802e9a6932207911eb68fd9b61157c | refs/heads/master | 2020-04-22T00:59:25.765126 | 2019-02-10T17:14:37 | 2019-02-10T17:14:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,376 | py | import socketio
import eventlet
import numpy as np
from flask import Flask
from keras.models import load_model
import base64
from io import BytesIO
from PIL import Image
import cv2
sio = socketio.Server()
app = Flask(__name__)
speed_limit = 10
def img_preprocess(img):
img = img[60:135,:,:]
im... | [
"noreply@github.com"
] | abhi092.noreply@github.com |
ca85ca075ec118603fee8fe2dc14a7d931cbba9a | 2eb6c4a1293094b63d7a9e204bdc1ba7578b7537 | /webium/webium/controls/link.py | 64e881e073bc6626304ec4397b6dc88778e4acc7 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | WandyYing/vscode-remote-webium | a60124e1b5439de9bf2cbae161513e73ad21455a | c6291cc6f72cbc9b323221a0ef4bbba3134f7f60 | refs/heads/master | 2020-12-14T23:51:21.499703 | 2020-02-04T11:04:13 | 2020-02-04T11:04:13 | 234,916,849 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | from webium.controls.click import Clickable
__author__ = 'Roman Syrtsov (r_syrtsov@wargaming.net)'
class Link(Clickable):
"""
Implements logic to work with UI elements of type Link
"""
def get_href(self):
return self.get_attribute('href')
| [
"wandy1208@gmail.com"
] | wandy1208@gmail.com |
8cd5027a87fcdb09f614c2db1a03edfc6e77d178 | 6e11bcf26babb32321411c68718cc0c552ed4ed1 | /src/__init__.py | d95f7d3b516222868a77cf6a485c52a55a795705 | [] | no_license | davidhoward/wanderlike | 524b2a6e1efa5e0cf29914cf01a6312f57b4ce2c | 2505abd9964bb88c8b990e5abf227b15fc206e64 | refs/heads/master | 2021-01-10T18:32:11.708541 | 2015-07-24T20:09:13 | 2015-07-24T20:09:13 | 39,654,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27 | py | import world
import player
| [
"howardd@HOWARDD.na.qualcomm.com"
] | howardd@HOWARDD.na.qualcomm.com |
395be8cde2beed5ed773424a8f09e10b7b4f2fad | 48e207e43cec2c7f55359006b60eba2e143b32f4 | /gridWebsite/ideas/migrations/0001_initial.py | 1509b0fb71fc67e59052fccfa978550bb78a95d2 | [] | no_license | romodulo/grid_project | c2085f749b0835a3403dc48ebf3172067d72dd2b | 86b571d235e8be4d00fb93e84f96b2eed88d209d | refs/heads/master | 2023-07-30T06:42:50.029876 | 2020-08-02T15:04:20 | 2020-08-02T15:04:20 | 279,479,862 | 0 | 0 | null | 2021-09-22T19:26:27 | 2020-07-14T04:18:51 | HTML | UTF-8 | Python | false | false | 483 | py | # Generated by Django 3.0.8 on 2020-07-24 10:13
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Log',
fields=[
('id', models.AutoField(auto... | [
"omelzg@gmail.com"
] | omelzg@gmail.com |
d6167ec8739120ceacad7129ba269a36c6dde22b | 660dc22179e5eb477cb587198b92d2d5b38f48b3 | /math.py | 3a66bbd4c7a7d5d869f37d2ec18fc42c9bed52ea | [] | no_license | YDrogunova/stepik---auto-tests-course | 6879b14ec104fc5de2a106b8a8646e121d3af0f5 | b3034f581db29f05021712ac61057f8bc5cea08d | refs/heads/master | 2021-05-25T08:36:26.769466 | 2020-04-07T15:25:07 | 2020-04-07T15:25:07 | 253,744,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | import math
x=780
a=str(math.log(abs(12*math.sin(int(x)))))
print (a)
def calc(x):
return str(math.log(abs(12*math.sin(int(x)))))
| [
"juli11dr@gmail.com"
] | juli11dr@gmail.com |
d62a1eec684838440cbae47e5aa64f957b475954 | 1bd29e0ac3395799ead1b01fa7f6318f1a7f7821 | /code/SAF_experiments/test_VGG11_bit1.py | e1e903f0766c578d0cee6e20783095c79caf3857 | [] | no_license | ALEXLANGLANG/ReRAM-Deep-Leanring | 1829fee71a097bdb7c312d7a517ac7bdf602c46c | 94d6686eba722ebb9d4995401e2d142df9d55982 | refs/heads/master | 2023-07-18T01:16:27.935150 | 2021-09-06T03:36:10 | 2021-09-06T03:36:10 | 400,015,776 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,780 | py | from __future__ import print_function
import math
import torch
import torch.nn as nn
import torch.nn.init as init
import matplotlib.pyplot as plt
import argparse
# import os
import shutil
import warnings
from copy import deepcopy
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as ... | [
"sunxian1107@gmail.com"
] | sunxian1107@gmail.com |
99fd1aa06e6ed67f859936767c53735ca584d528 | a754e8f40cc737b3c4d5764b503170f95be52c15 | /TrackValidation/step3_RAW2DIGI_RECO_VALIDATION_DQM.py | bf4ae15afa1589884f69dbc32e59e1e0ce267bfc | [] | no_license | OmarAlterkait/DeepTrack-CMS | ff3afde20bee13fe905858d7cb3aa6c61d73530f | 78a73c84d84ea0bc8d8d099a150a8dfd99881b8c | refs/heads/master | 2023-01-09T03:23:47.954269 | 2020-11-06T20:36:30 | 2020-11-06T20:36:30 | 288,772,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,597 | py | # Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: step3 --conditions auto:phase2_realistic_T14 -n 10 --era Phase2C8 --eventcontent RECOSIM,DQM --runUnscheduled -s RAW2DIGI,RECO:reconstructi... | [
"omal8805@colorado.edu"
] | omal8805@colorado.edu |
a4f92fc07660a377a8f5ca8b05dec21c348b7a8e | 2caa47f0bdb2f03469a847c3ba39496de315d992 | /Contest/ABC086/c/main.py | 1e87c7d1f6b031f11c2f42d5104c63354529a69a | [
"CC0-1.0"
] | permissive | mpses/AtCoder | 9023e44885dc67c4131762281193c24b69d3b6da | 9c101fcc0a1394754fcf2385af54b05c30a5ae2a | refs/heads/master | 2023-03-23T17:00:11.646508 | 2021-03-20T12:21:19 | 2021-03-20T12:21:19 | 287,489,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py | #!/usr/bin/env python3
n, *a = map(int, open(0).read().split())
a = [0]*3 + a
for i in range(n):
i *= 3
t, x, y = map(lambda j:abs(a[i+3+j]-a[i+j]), [0,1,2])
d = x+y
if d>t or d%2-t%2: print("No"); exit()
print("Yes") | [
"nsorangepv@gmail.com"
] | nsorangepv@gmail.com |
b58649e7f5144da8e04fa6f0ef5a4d47bcaf5b26 | b588992e1c1e81e315cecd5c99d07fc99e589eec | /prophyc/tests/test_model.py | 26db4438a9e9687ab2b360b6c8187082e30367f2 | [
"MIT"
] | permissive | KrzysztofKupka/prophy | 9a80cc5d80e6ea2a39cd2e4ba1d5a9e9124d8729 | ee3b9fc48d29457b43910b4e7fc97c9e083305e3 | refs/heads/master | 2021-01-17T23:55:41.260598 | 2014-09-03T08:46:41 | 2014-09-03T08:46:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,071 | py | from prophyc import model
def test_typedef_repr():
typedef = model.Typedef("my_typedef", "u8")
assert str(typedef) == "u8 my_typedef"
def test_struct_repr():
struct = model.Struct("MyStruct", [
model.StructMember("a", "u8"),
model.StructMember("b", "u16", bound = 'xlen'),
model.Str... | [
"krzysztof.laskowski@nsn.com"
] | krzysztof.laskowski@nsn.com |
4cc88ed87b6aaa38699ceb8033c67c89bfceda02 | fdafe3308a26359559c61cb8b561363771100788 | /src/models/cifir10_classification/data/DataImage.py | 1a6b74d8b32a380b0ebf61ed349777290783247e | [] | no_license | yyHaker/tensorflow_study | e18ff3107365081643f8ea8c48a99c82a60c2000 | 7ea658444db9aa37b9c2d9b1e71dabe7f493be7c | refs/heads/master | 2021-09-13T16:52:11.142932 | 2018-05-02T10:27:42 | 2018-05-02T10:27:42 | 115,399,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,047 | py | # -*- coding:utf-8 -*-
"""
read the image data from the data file
"""
import numpy as np
from scipy import misc
import matplotlib.pyplot as plt
import os
import cv2
import logging
import csv
import random
# reproduce
np.random.seed(1)
class DataImage(object):
"""the image data object
vocabs below:
self.... | [
"572176750@qq.com"
] | 572176750@qq.com |
16291f7291e7ead6e270a41e3cc62a5634ed2532 | d25a8b0e9f8a4f48504a49e094085f92d8d8e08a | /tests/__init__.py | f5c12299b95821cfd20dc9d1f9152536d6790db3 | [
"MIT"
] | permissive | William-Lake/doc_db | c7ad963bc0ff3a75b9a690bf44025e2aa6d1773b | 022b3e08d10d104fd838c7a094091e78d771ebe1 | refs/heads/master | 2020-03-31T01:34:59.815672 | 2019-01-30T18:36:39 | 2019-01-30T18:36:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61 | py | # -*- coding: utf-8 -*-
"""Unit test package for doc_db."""
| [
"noreply"
] | noreply |
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 |
46457feac6379131e225abdb2ed387ed94b23e28 | 03cd42c9a1b4a7bba4acc95513638d646d314356 | /tf_test.py | 1a9581766fe51e2cc23e58e0e33f8f1158ce05a5 | [] | no_license | jumpinjeffflash/TensorFlow_Cert_Learning | a53fec53632d68099cf6c5dc8b4a9f115f4e8c14 | ad8c1aa9fcb5cf41b7ebd77b9db6fc136e5b8240 | refs/heads/main | 2023-09-06T00:01:32.840965 | 2021-11-21T06:19:50 | 2021-11-21T06:19:50 | 456,998,182 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | import tensorflow as tf
import numpy as np
from tensorflow import keras
model = keras.Sequential([keras.layers.Dense(units=1, input_shape=([1]))])
model.compile(optimizer='sgd', loss='mean_squared_error')
xs = np.array([-1.0, 0.0, 1.0, 2.0, 3.0, 4.0], dtype=float)
ys = np.array([-3.0, -1.0, 1.0, 3.0, 5.0, 7.0], dtyp... | [
"kvirajdatt@gmail.com"
] | kvirajdatt@gmail.com |
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 |
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 |
606a08963bd2d62266cad42fe10e1dccb6ce244b | e5cd9e301d2f7daf222ec5f93935afdd639575ba | /src/orders/migrations/0001_initial.py | aeaaad7c06febdbfefb9348ba70c58a8d3f47133 | [] | no_license | 10featj/eCommerce | 5ba80f80e2af442e94017bab491e1714680db891 | b38d671d1571a31bd50a87d98948c290a2188bcf | refs/heads/master | 2022-11-10T08:04:45.825553 | 2018-04-17T15:36:15 | 2018-04-17T15:36:15 | 122,496,456 | 0 | 1 | null | 2022-10-10T20:59:32 | 2018-02-22T15:21:23 | Python | UTF-8 | Python | false | false | 1,131 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2018-04-05 13:35
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('carts', '0004_cart_sub_total'),
]
... | [
"jordanfeatherstone@gmail.com"
] | jordanfeatherstone@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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
1382dcbea411dd5c7a5227efcd1b1545775e46c7 | 8ecf97e0f12037ccd0b63f265fddd3bf84229d7a | /keras/inception_autoencoder_predict.py | 966fa0964b70a98e8e0ee7e382925390c8b2781a | [] | no_license | ArifSohaib/video_collission_detection | 158af02ce55d8e7f39b532417010b882106bdb2f | 79ac145f4a3d0386ffac4f4fc2cc6efda056e53f | refs/heads/master | 2021-09-11T01:36:09.085256 | 2018-04-05T19:44:40 | 2018-04-05T19:44:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,739 | py | from inception_autoencoder import build_autoencoder
import numpy as np
import pickle
import matplotlib.pyplot as plt
from sklearn import preprocessing
def main():
impact_data = np.loadtxt('../data/features/impacts_period1.npy')
full_data = np.loadtxt('../data/features/period1_full.npy')
min_max_scaler = p... | [
"arif_sohaib@outlook.com"
] | arif_sohaib@outlook.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 |
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 |
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 |
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 |
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 |
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 |
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 |
4f72bcef7cc395847e7ea5ec6b2c4eff48fbbfa5 | a5d73a41bd0af3b19e0e1d241e451c5d0833016f | /COCO_tools/coco_eval.py | 803742687e6eb9215d74c1bd9f98b9091ba0c5fa | [] | no_license | nihuo76/Osteoporosis | 8d0d9d3c4016d9c86386dc68fe135e4637e0bf15 | cdff32eff180e7613c6709fbd77195072aa4cc7a | refs/heads/main | 2023-01-13T22:31:39.606179 | 2020-11-23T17:03:18 | 2020-11-23T17:03:18 | 315,381,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,020 | py | import json
import tempfile
import numpy as np
import copy
import time
import torch
import torch._six
from pycocotools.cocoeval import COCOeval
from pycocotools.coco import COCO
import pycocotools.mask as mask_util
from collections import defaultdict
import COCO_tools.utils as utils
class CocoEvaluator(object):
... | [
"Bhx470711"
] | Bhx470711 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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"
] | IDS6145-18Spring.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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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"
] | Adi7290.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.