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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a4efdc368ce9c0168642c7aa9bfae67cbdc36f99 | decf31fb4ee58c8abb7892a3a4b1891863567461 | /batchgenerators/examples/brats2017/brats2017_dataloader_3D.py | 6eece8c96ef4e66af7201c0ff14748ca05311e11 | [
"Apache-2.0"
] | permissive | justusschock/batchgenerators | 7f9a3aa57aa4046d37dd5d4cbe181fe5ab48b078 | 6d31e5c79871f2a33ed6f9947bfbdf6c8e1a538e | refs/heads/master | 2020-06-04T20:29:45.870365 | 2019-06-16T11:03:56 | 2019-06-16T11:03:56 | 165,810,390 | 0 | 0 | Apache-2.0 | 2019-01-15T08:06:08 | 2019-01-15T08:06:08 | null | UTF-8 | Python | false | false | 11,498 | py | from time import time
from batchgenerators.augmentations.crop_and_pad_augmentations import crop
from batchgenerators.dataloading import MultiThreadedAugmenter
from batchgenerators.examples.brats2017.config import brats_preprocessed_folder, num_threads_for_brats_example
from batchgenerators.transforms import Compose
fro... | [
"f.isensee@dkfz-heidelberg.de"
] | f.isensee@dkfz-heidelberg.de |
c2561953ef098004bb6a320a8cec415081a19e7a | 6b579dcde8214b6f47d669311fe5c5607ae8be6c | /MIT_6.00.1x_EDX_Code/ProblemSet4/ps4b.py | 1af8b51f28b4754fe44cca0be0f24b6affad5eab | [
"Giftware"
] | permissive | ulankford/python | e9eda397bd6e4831c86e79149d6930a20397737b | 36d72dd825201a7faf049effda0d4237d9d0f6de | refs/heads/master | 2023-01-24T05:41:16.222390 | 2020-11-18T03:22:33 | 2020-11-18T03:22:33 | 313,809,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,011 | py | from ps4a import *
import time
#
#
# Problem #6: Computer chooses a word
#
#
def compChooseWord(hand, wordList, n):
"""
Given a hand and a wordList, find the word that gives
the maximum value score, and return it.
This word should be calculated by considering all the words
in the wordList.
... | [
"u_lankford@yahoo.com"
] | u_lankford@yahoo.com |
748b1a4c649433f18bc779c59fa3d4da540bf330 | bd185738ea6a74d1e76d9fc9d8cbc59f94990842 | /onadata/libs/pagination.py | f3aaf30a3bad15075443aa054f66f133a9d41638 | [
"BSD-2-Clause"
] | permissive | aondiaye/myhelpline | c4ad9e812b3a13c6c3c8bc65028a3d3567fd6a98 | d72120ee31b6713cbaec79f299f5ee8bcb7ea429 | refs/heads/master | 2020-12-22T05:32:59.576519 | 2019-10-29T08:52:55 | 2019-10-29T08:52:55 | 236,683,448 | 1 | 0 | NOASSERTION | 2020-01-28T07:50:18 | 2020-01-28T07:50:17 | null | UTF-8 | Python | false | false | 206 | py | from rest_framework.pagination import PageNumberPagination
class StandardPageNumberPagination(PageNumberPagination):
page_size = 1000
page_size_query_param = 'page_size'
max_page_size = 10000
| [
"patrickmithamo@gmail.com"
] | patrickmithamo@gmail.com |
fc435a020a77c3ed5c0f0d15795d7431a52254f3 | 6b6cff01c462ae67765315dbe50c9c4aa6711cf8 | /tests/test_page_loader.py | c43db17e27b5a0d2a170b66b508575cafb031008 | [] | no_license | LyuPo7/python-project-lvl3 | cbc49ceb9d1845831aa0edbd873a1cce496517b0 | cf8248b1a11f9b2bcce31365ae3d20487ade403c | refs/heads/main | 2023-04-16T23:10:58.859114 | 2021-05-04T12:43:04 | 2021-05-04T12:43:04 | 304,558,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,644 | py | # -*- coding:utf-8 -*-
"""Tests for page-loader."""
import os
import pytest
import requests
import tempfile
import requests_mock
from page_loader import page
from page_loader import path
from bs4 import BeautifulSoup as bs
LINK = 'https://pythonjobs.github.io'
HTML = './tests/fixtures/source/pythonjobs-github-io.htm... | [
"lport@frtk.ru"
] | lport@frtk.ru |
0779a1edd54738654a758385bdb33e9439b926a2 | a833546104577c7edf624f390224289b429ca551 | /data_py/test/studyClass.py | 2e0a03994a505b54eb6dfc9a74b907b688c8bf11 | [] | no_license | xiaof-github/stocklist | 2867f85bf8d9d6a72e7ff15be18df3a0635115c3 | dc43498ec25498bae12cd47893d58e424820b9dd | refs/heads/master | 2021-01-09T06:30:19.580554 | 2017-09-13T15:14:41 | 2017-09-13T15:14:41 | 80,996,398 | 3 | 0 | null | 2017-09-13T14:54:56 | 2017-02-05T13:58:10 | JavaScript | UTF-8 | Python | false | false | 1,334 | py | class Student(object):
count = 0
books = []
def __init__(self, name, age):
self.name = name
self.age = age
pass
Student.books.extend(["python", "javascript"])
print "Student book list: %s" % Student.books
# class can add class attribute after class defination
Student.hobbies = ["readin... | [
"xffit@163.com"
] | xffit@163.com |
41a58d08aeb1f5f3ee5fbd1e3067dbcc9eefbc43 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/sieve-big-3540.py | a875472b054493c30d3909c9a4a41429a81f0434 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,742 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
b70b5c7cf84e0b280ac098442bbcf016824aff58 | 358720a705bb79fd22d8d6d7a54219ea875272e9 | /src/searchml.py | 78750da7afbc7222401aeadaaee856d5983e02bf | [
"MIT"
] | permissive | gbrian/naive-machine-learning | 4aabba3af76c190ad4254f7281e5d1f9c80daea8 | 2f31be1111f3cb94e8fa8df00837000fdf30dac1 | refs/heads/master | 2021-01-09T20:19:27.145016 | 2016-07-29T08:08:39 | 2016-07-29T08:08:39 | 64,289,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,683 | py | # http://chrisstrelioff.ws/sandbox/2015/06/08/decision_trees_in_python_with_scikit_learn_and_pandas.html
from __future__ import print_function
import pickle
import os
import subprocess
from optparse import OptionParser
import pandas as pd
from sklearn.tree import DecisionTreeClassifier, export_graphviz
# Pa... | [
"Ramones77"
] | Ramones77 |
713bb962b877fb213095665a6b71f9e0de8414e9 | cb4de1e6e0ceb4a8221b69c65443fb3d2e98978e | /users/forms.py | 78e2c493dca6f991c03aab3f41759756c8de157b | [] | no_license | jm5833/TTP-FS | b7ffc5b5f89910e6859a25dfbd189b9b6d665740 | 3dfeca71acc58bbfdea7e060b488ed2f2dd499e0 | refs/heads/master | 2020-07-01T21:32:04.818288 | 2019-08-17T01:56:59 | 2019-08-17T01:56:59 | 201,306,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,371 | py | from django import forms
from users.models import User
from django.contrib.auth.forms import UserCreationForm
#create a custom usercreationform
class RegistrationForm(UserCreationForm):
email = forms.EmailField()
class Meta:
model = User
fields = (
'first_name',
... | [
"jm5833@nyu.edu"
] | jm5833@nyu.edu |
1f970ca9cf4bace4e59a2748dfe36151bf58600f | 330db133f16c294b8d0f4bb7213bbafc18a86d55 | /tests/test_find_command.py | 6c56992ff984d16d04e47bcf0e1cbebdf3168e13 | [
"MIT"
] | permissive | bgschiller/clickthrough | 612cedf070f1599ef140c720ee18e62a760a8dd9 | ea68a1412cc54ba6ec40d0a760c6a93c8cf57255 | refs/heads/master | 2020-05-18T01:53:44.135760 | 2014-07-13T22:32:01 | 2014-07-13T22:32:01 | 21,776,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | import clickthrough
import os
import shutil
from nose.tools import with_setup, assert_raises
def test_find_command():
clickthrough.get_command('hello')
clickthrough.get_command('hello.hello')
def test_find_on_bad_command():
assert_raises(Exception, #should be more specific...
clickthrough.get_co... | [
"brian@topopps.com"
] | brian@topopps.com |
18970aa0b8d05531fef6be6422178c963d0f2565 | d7fe48137c22a1a75fc671b3a6d27e16a6006318 | /tools/updateeventlist.py | 935c56ae2d3e08a2ef4c82cee4b33a477edc18b1 | [] | no_license | kcsfelty1337/demoinfo-csgo-python | ea180e0925b970ee966b443ea29283aba67c79dd | 9803b698142ede15402938044538f4d22981f15f | refs/heads/master | 2021-05-28T10:24:16.878136 | 2014-07-17T00:31:58 | 2014-07-17T00:31:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,631 | py | '''
Creates a formatted list of game events
Created on Jul 12, 2014
@author: Chris
'''
from demoinfocsgo.demodump import DemoDump
from demoinfocsgo.proto.netmessages_public_pb2 import svc_GameEventList, CSVCMsg_GameEventList
import sys
import json
import collections
events = {}
_GAMEEVENT_TYPES = {2:"s... | [
"chris.m@live.nl"
] | chris.m@live.nl |
37c1c3091247a88ff307abacfcd63fbc7b304bb5 | 8cce087dfd5c623c2f763f073c1f390a21838f0e | /projects/versioneer/test.py | 32fd79d45d8ce3d9b488d3feae6bca952e983ac1 | [
"Unlicense"
] | permissive | quinn-dougherty/python-on-nix | b2ae42761bccf7b3766999b27a4674310e276fd8 | 910d3f6554acd4a4ef0425ebccd31104dccb283c | refs/heads/main | 2023-08-23T11:57:55.988175 | 2021-09-24T05:55:00 | 2021-09-24T05:55:00 | 414,799,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18 | py | import versioneer
| [
"kamadorueda@gmail.com"
] | kamadorueda@gmail.com |
d05adb9e8f3b23791f785e4edd6a3ae0c8f2c18d | 0bad0c8529bac119d0c1d6ed9dc2891a50b62918 | /test.py | 21936eb46fa6f9ecabf0bffff14698c691c938bb | [] | no_license | devthakkar/nbahack | ec1d9711528bbff2df3258096dc783456ad50960 | cbfbe09037d503fb058eb363ddd9d6c1f21a3f0d | refs/heads/master | 2020-04-04T13:18:13.259558 | 2019-08-10T18:46:03 | 2019-08-10T18:46:03 | 155,956,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,171 | py | from nba_api.stats.endpoints import commonplayerinfo
from nba_api.stats.endpoints import playerdashboardbylastngames
from nba_api.stats.static import players
player_info = commonplayerinfo.CommonPlayerInfo(2544, "00")
lebron_dict = player_info.common_player_info.get_dict()
# lebron_log = playergamelog.PlayerGameLog(25... | [
"theo.shiao@gmail.com"
] | theo.shiao@gmail.com |
8949fd27f20bac7ca8fa3e52863191da0940371b | 98fbbd0518b5618746e28d4e86d1ea5d1107759f | /home/migrations/0011_auto_20190321_1456.py | 667175809b0645abd674bdfb8877ce774ca8e5c1 | [] | no_license | fabriciolc/tupperTools | 2670f3baa203cb20cf4af13b0f7ad4603a1b6562 | 93bc4fbe9cdab6ae113304b99d5decfc23315d16 | refs/heads/master | 2020-05-01T01:02:20.893023 | 2019-04-30T17:05:08 | 2019-04-30T17:05:08 | 177,185,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | # Generated by Django 2.1.7 on 2019-03-21 14:56
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('home', '0010_auto_20190321_1419'),
]
operations = [
migrations.RemoveField(
model_name='ocorrencia',
name='codigo_consultora... | [
"fabri_mu@hotmail.com"
] | fabri_mu@hotmail.com |
9372d896b7050b2587a7d13762a113a2e9af5b33 | cfa2417f07259e512a1bbface4f1f4ccd66502c6 | /test/test_Likelihood/test_LensLikelihood/test_base_lens_likelihood.py | 6ecb7556a125e7d02dc4226cdb44037390dd4b9d | [
"BSD-3-Clause"
] | permissive | jiwoncpark/hierArc | 3779439533d3c9c5fe2e687f4bdf737dfc7673e8 | 3f31c0ae7540387fe98f778035d415c3cff38756 | refs/heads/master | 2021-05-18T21:32:45.590675 | 2020-12-23T00:01:01 | 2020-12-23T00:01:01 | 251,431,028 | 0 | 0 | NOASSERTION | 2020-03-30T21:20:08 | 2020-03-30T21:20:08 | null | UTF-8 | Python | false | false | 4,045 | py | import numpy as np
import pytest
import unittest
from hierarc.Likelihood.LensLikelihood.base_lens_likelihood import LensLikelihoodBase
class TestLensLikelihood(object):
def setup(self):
np.random.seed(seed=41)
self.z_lens = 0.8
self.z_source = 3.0
num_samples = 10000
ddt_s... | [
"sibirrer@gmail.com"
] | sibirrer@gmail.com |
8e9785baac8ff556a581e1e9f2f3a55fba065370 | 771de2d30593f78ec171e11adcf6c5c2e27650a4 | /model/albert/cnn.py | 07eeaaf3bd9d0a3d8901e72f4ca22d0887a4ac98 | [] | no_license | hsuehkuan-lu/sentiment-classification | e32af916d801b221bb0645e2884dcd0257ee6582 | 0b206e2d9a7d1212b707b8157a963c42122cb151 | refs/heads/main | 2023-06-13T23:42:06.461165 | 2021-07-11T07:12:37 | 2021-07-11T07:12:37 | 376,563,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,561 | py | import torch
import torch.nn as nn
from model.base import ModelBase
from transformers import AlbertModel
class Model(ModelBase):
def __init__(self, bert_hidden_size, hidden_size, kernel_size, dropout, pretrained_model, *args, **kwargs):
super(Model, self).__init__()
# [B x L] -> [B x L x D], [B x ... | [
"s810142000@gmail.com"
] | s810142000@gmail.com |
f186738e39d4f69aeca3c6b07920c064c8ae49d8 | 9b83834db424c4ae525ae161ccf40dd8ac2c17ba | /tools/pdf-req-parser/autosar_pdf_parser/__init__.py | a9ffe51834f557d8e38b9ab5c35d3d72c5fec889 | [
"MIT"
] | permissive | mmyszke/AUTOSAR-Adaptive | cc2e5ba6462a2de78f87a49dccefd73be4c136b2 | c45550b9e1e450de34b2ea756443d296bdbb9928 | refs/heads/master | 2022-11-30T00:58:46.007731 | 2020-08-07T06:59:46 | 2020-08-07T06:59:46 | 267,556,525 | 0 | 0 | MIT | 2020-05-29T12:13:07 | 2020-05-28T10:08:46 | null | UTF-8 | Python | false | false | 2,883 | py | import os
import simplejson
from PyPDF2 import PdfFileReader
class SimpleRequirementsParser(object):
def __init__(self, path, verbose=False):
self.input_directory = path
self.input_list_file = '{}/input.json'.format(path)
self.input_list = SimpleRequirementsParser.get_input_list(self.input... | [
"noreply@github.com"
] | noreply@github.com |
fff1cffde4038a400c759755602b96895cbcf9a8 | 322b5f31448bd45a000d50c98006ab2702ad763c | /scripts/launchpad | d4b3dea461dc4072bee6968203fd63f8ff2102dd | [] | no_license | kdpuvvadi/pop | 0217464c3a86efd802da318361c78d8e757d745f | 63825e3336f925fc9a1f03e232524f1e6b7b8b7b | refs/heads/master | 2022-12-04T12:44:50.383299 | 2020-07-16T20:39:35 | 2020-07-16T20:39:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,331 | #!/usr/bin/env python3
import argparse
from debian.changelog import Version
from debian.deb822 import Deb822, Sources
from os import path
import shutil
from subprocess import check_call
import sys
from lib import foreach_repo, launchpad, launchpad_anon
parser = argparse.ArgumentParser(description="Upload packages to... | [
"jeremy@system76.com"
] | jeremy@system76.com | |
fbcc54fea5b182b3e2383026e517dcaa50974606 | f20516958c39123f204e2bc442c91df7df1cc34a | /amqpstorm/exchange.py | 865a03bd8e75475a400c5bdf1d4068945cb5fa0b | [
"BSD-3-Clause"
] | permissive | bradparks/ReadableWebProxy | 3c2732cff64007afa8318b5b159616a529068322 | 81fbce3083471126942d2e2a298dba9eaf1092b1 | refs/heads/master | 2020-05-29T11:48:40.189530 | 2016-08-25T15:17:14 | 2016-08-25T15:17:14 | 66,568,996 | 0 | 0 | null | 2016-08-25T15:13:39 | 2016-08-25T15:13:39 | null | UTF-8 | Python | false | false | 5,689 | py | """AMQP-Storm Channel.Exchange."""
import logging
from pamqp.specification import Exchange as pamqp_exchange
from amqpstorm import compatibility
from amqpstorm.base import Handler
from amqpstorm.exception import AMQPInvalidArgument
LOGGER = logging.getLogger(__name__)
class Exchange(Handler):
"""AMQP Channel.... | [
"something@fake-url.com"
] | something@fake-url.com |
f28e72b2529f3e6f641908d677f59d1829fa37be | 5cdc56d480380ba519be89a6f25bc7a2b306ce7c | /watson-framework-archive/imcrypt/app.py | 77f6431232a874ce0a4b892469340710fd2b8299 | [
"BSD-2-Clause"
] | permissive | sigmundv/encrypt-image | c94d05d294565a0f5c2248022eea54a73f7c96f6 | b37bc93b56be1cc7934c44705df3ba52906fe18e | refs/heads/master | 2020-12-02T23:57:40.171386 | 2017-07-22T15:20:04 | 2017-07-22T15:20:04 | 95,965,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | # -*- coding: utf-8 -*-
from watson.framework import applications
from imcrypt.config import base as config
application = applications.Http(config)
| [
"sigmundv@gmail.com"
] | sigmundv@gmail.com |
65bdc4f9eb4bdbd64aa2920720db1f17d5831c9b | c7c0bcbeb06a00531795cefdcdb033cfdc25d273 | /chapter-11/orders/setup.py | 5fab50bb1de07e80c29fb2b5bada47e2046c7096 | [
"Apache-2.0",
"MIT"
] | permissive | wallacei/microservices-in-action-copy | c05a9405e9312576a260b8e001d0c9ea2f1fde18 | f9840464a1f9ec40622989e9e5377742246244f3 | refs/heads/main | 2023-05-31T06:42:13.535322 | 2021-06-19T19:23:16 | 2021-06-19T19:23:16 | 377,201,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,856 | py | from setuptools import setup, find_packages
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='orders',
version='0.0.1',
description='Orders microservice',
... | [
"iwallace1975@gmail.com"
] | iwallace1975@gmail.com |
234d3f7663e86886eea126cca3488d474d5b0a96 | cbf4e6e92f4cbb4b56002de0c7cdf369a7e5a2d0 | /vote/urls.py | b13e5e8247a898de89519bf0b98c5e44dc67987b | [] | no_license | sasha361322/vote_site | b1c827284a1bf214e1a35533fcadfee11d4c44e1 | 2e641a96e0efb1b82bbcb49c87bbb4f58ab3fa38 | refs/heads/master | 2020-04-05T23:16:54.352591 | 2016-01-12T19:15:33 | 2016-01-12T19:15:33 | 49,219,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | from django.conf.urls import patterns, include, url
from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^vote/get/(?P<vote_id>\d+)/$', 'vote.views.vote'),
url(r'^vote/addanswer/(?P<vote_id>\d+)/(?P<answer_id>\d+)/$', 'vote.views.addanswer'),
url(r'^vote/addvote/$', 'vote.views.... | [
"sasha361322@gmail.com"
] | sasha361322@gmail.com |
e9fd1db94e460e5bc79127bf14a7e482c47db36f | 448dbe8c9006de73839a1444da7175de4381a903 | /src/GUI_MainWindow/DockElements/ScriptWidget.py | 42b31866cbd92231d80b930f9a6268e301b88ec2 | [] | no_license | GuillaumeReinisch/Impact | 2e5f75b48647e1431e65fc23da03506d38851e77 | 5a7f727f7f07591c24e28a44a89ab7da31b989d6 | refs/heads/master | 2021-01-25T07:19:18.010080 | 2014-01-31T12:22:37 | 2014-01-31T12:22:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,274 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Aug 1 14:33:31 2013
@author: chico
"""
import sys, functools
from PySide import QtCore, QtGui
from TreeModels import *
from DockElements.PythonConsole import *
from DockElements.PythonHighlighter import *
class OutLog:
""" Writer of python's out streams into a QTextE... | [
"reinisch.gui@gmail.com"
] | reinisch.gui@gmail.com |
df4e0d2623d4485a4a60b229bf38edd8181200c1 | e5fc822c86c0257397ba472f4e841fa00402af8f | /parserforsentiment.py | c86109f27f4a4fc0699052735b8e9372d9fd3acf | [] | no_license | nuttea/jupyter | 274869b05c4bd3b3b6649cac0c1b298eee02b0d1 | 19f315714aecb4fb860a92bd811561de5b6a7a06 | refs/heads/master | 2021-01-12T08:23:28.513208 | 2016-12-15T13:26:41 | 2016-12-15T13:26:41 | 76,561,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,282 | py | import csv
from nltk.corpus import stopwords
import re
import string
stop = stopwords.words('english')
inter1 = []
posts_clean = []
posts = []
posts_found_with_brand = []
limited_post = []
limited_post2 = []
with open('edmunds_extraction.csv') as f:
rows = csv.reader(f, delimiter = ',')
for row in rows:
... | [
"nuttea@gmail.com"
] | nuttea@gmail.com |
80ed617f49dd786e0529d9c3caf25960f00a657b | 9d2a4be0db964ca2061aeae5cc469c19fcbc4c45 | /Language-Day-EL.py | 5c85fed474e17c85f9361857c4fb528a0060b580 | [
"Apache-2.0"
] | permissive | athenian-ct-projects/Language-Day-EL | 464f0242d70f3957aae617a7d6da22d67371d7b5 | 4f8c135e6574335891610b90dac87f8a75f60073 | refs/heads/master | 2021-03-31T15:53:01.021244 | 2020-03-18T02:30:42 | 2020-03-18T02:30:42 | 248,117,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,919 | py | # DO NOT RUN THIS CELL WHILE PLAYING GAME (IT RESETS PROGRESS)
# This sets list to nothing at start of game
fs=[]
# Vowel function:
# Checks if the input (that is a noun) starts with a vowel and inserts a or an
# depending on what it starts with. It also adds the input to the end of the
# list (fs).
def vowel():
i... | [
"noreply@github.com"
] | noreply@github.com |
c7f974d728172a7299772df1316b74e2b84e35f1 | d0daad3c1afb5ad08f98ba123b20b3b011387b55 | /21-tkinter/02-textos.py | a2242a017b8092a8c456dfc08d4db6c55749fdef | [] | no_license | RubennCastilloo/master-python | a0c17201f947e19905aea9f8bf991395456e2d3d | a12a6fb4bf6884df6df3615a5f4494777cbbbabd | refs/heads/main | 2023-08-12T17:03:09.124907 | 2021-09-16T18:55:38 | 2021-09-16T18:55:38 | 370,833,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | from tkinter import *
ventana = Tk()
ventana.geometry("700x500")
texto = Label(ventana, text="=>Bienvenido a mi programa<=")
texto.config(
fg="white",
bg="#000000",
padx=50,
pady=20,
font=("Fira Code", 30),
justify=RIGHT
)
texto.pack(anchor=W)
def pruebas(nombre, apellidos, pais):
return ... | [
"rcastillo@raivtech.com"
] | rcastillo@raivtech.com |
aa5a6d6bffb3faf7cd5237c368d24247a9cfb507 | 0c4b71fcf867fbd32148f84f228fd510cc4e46d9 | /lastmile/migrations/0016_actor_agreement.py | e62c961eff152a77250d9ac1484ef3150b292af7 | [] | no_license | acounsel/lastmile | 0f4a88c767752b0fd160d536024895250b5cb633 | e54ec5357d03cf083ea3bbff0a8f1ccd5ccd832b | refs/heads/master | 2021-08-26T00:39:58.089921 | 2021-08-13T18:25:58 | 2021-08-13T18:25:58 | 242,027,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | # Generated by Django 3.0.5 on 2020-05-13 03:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('lastmile', '0015_agreement_slug'),
]
operations = [
migrations.AddField(
model_name='actor',
name='agreement',
... | [
"sarrabi@gmail.com"
] | sarrabi@gmail.com |
7d785f758a09bb73456db84de1934fe4b7496de3 | 625a50a9d6664e10578094fc943a5f0595d6d41c | /mysite/travel/apps.py | bc26ab87a4ea6ee6855bb07c27973878728c74c0 | [] | no_license | jll2884/testing | 92b325d089b370600bc5bfbf5125a88ba4b229f2 | 067afb97ec2d94160550a9a452b580c222f199aa | refs/heads/master | 2020-04-23T19:56:03.723730 | 2019-02-19T06:53:59 | 2019-02-19T06:53:59 | 171,422,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | from django.apps import AppConfig
class travelConfig(AppConfig):
name = 'travel'
| [
"Simplylopez7@gmail.com"
] | Simplylopez7@gmail.com |
5d2b2a4d2b4b746f879dd700bf735501568d8707 | bcafa5ae72554aa70868f8d6c3a5a25b40924e21 | /models/retrieval/model.py | b6c9a742113e70d3583eddf5397e55e22386cc04 | [] | no_license | pxu4114/Generative_CVS | 0f100bb12bdfbd94e238a8b4f154a22f8573ec66 | 399ff7bc919becef0c02fa01d6d1be917ff05690 | refs/heads/master | 2020-07-03T18:44:38.133990 | 2019-10-24T15:28:26 | 2019-10-24T15:28:26 | 202,008,724 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,624 | py | import tensorflow as tf
from tensorflow.contrib import slim
# from flip_gradient import flip_gradient
tf.set_random_seed(999)
def visual_feature_embed(X, emb_dim, is_training=True, reuse=False,dropout_ratio=0.5):
with slim.arg_scope([slim.fully_connected], activation_fn=None, reuse=reuse):
net = tf.... | [
"pxu4114@rit.edu"
] | pxu4114@rit.edu |
0a295fa014ecd07653abfe29e4748732058d94cd | bcc78f8113cbaaa14aeaea5dd3a88f46a636c8d4 | /CircuitPlaygroundExpress_LightSensor.py | fc3ed4907b11afe46877e394a4b8dd506f3ce877 | [] | no_license | bribrown/CircuitPython | 6ae59a800202a76741e686758b87c94added23ee | e37d50ae18d97ea54b158f54629ff0eda8a1e10d | refs/heads/master | 2022-04-01T02:55:46.786629 | 2020-01-30T02:31:42 | 2020-01-30T02:31:42 | 116,894,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | # CircuitPlaygroundExpress_LightSensor
# reads the on-board light sensor and graphs the brighness with NeoPixels
from simpleio import map_range
from analogio import AnalogIn
import board
import neopixel
import time
pixels = neopixel.NeoPixel(board.NEOPIXEL, 10, auto_write=0, brightness=.05)
pixels.fill((0,0,0))
pixel... | [
"noreply@github.com"
] | noreply@github.com |
b249358dff9c245fe79b7fef88d3504beacff288 | 7783f5498bc0d5a4bc141e54f30a76c74d19ee07 | /web/webserver.py | c4af9a5ec7b2a21606c38a38640bc7c43807d51e | [] | no_license | danhamilt1/muons | 14d9205c973f6e228c012f7cb6de7abf55ba60db | 4e372572d2e821175f898edb15e437dec8aa0f32 | refs/heads/master | 2020-12-26T02:39:41.168946 | 2014-11-05T20:07:29 | 2014-11-05T20:07:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,257 | py | # from XRootD import client
from flask import Flask, render_template, url_for, send_from_directory
from datetime import datetime
# import pygal
# from pygal.style import LightSolarizedStyle
# from detector import Event
import random
app = Flask(__name__)
@app.route("/")
def home():
now = datetime.now()
timeS... | [
"justin2.salmon@live.uwe.ac.uk"
] | justin2.salmon@live.uwe.ac.uk |
9bf257fa6c138050306f2d742f190f5687aa2ada | af6c649718b518e20bd8c5b1f26a3780f8babd1c | /time_planner.py | 00d9ca1149338f838e8980b97c6a2eba478010c3 | [] | no_license | quanewang/public | 31274d9c3f6cd96a62872620d7d4f81957734ecd | 7593f887ca54f8b393bbd0b196e498665663d665 | refs/heads/master | 2022-01-04T08:09:51.940244 | 2022-01-04T02:23:14 | 2022-01-04T02:23:14 | 119,501,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,213 | py | """
--LESSON
--- [b[0], a[1]]=>[b[0], min(a[1], b[1])]
--- i += 1 => j += 1
--- [max(a[0], b[0]), min(a[1], b[1])]
Time Planner
Implement a function meetingPlanner that given the availability, slotsA and slotsB, of two people and a meeting duration dur, returns the earliest time slot that works for both of them and is... | [
"Quan.Wang@cambiahealth.com"
] | Quan.Wang@cambiahealth.com |
ecf6ce05ca13be717536bba2b129acced9e3020d | 3cb844c60d1397cb04b9fa5584e0f932fac9fbc3 | /cluster.py | 856c77918f547c8344a3944a918b1518832df5a8 | [] | no_license | vijayaramagopalan/Emotion-age-and-ethinicity-recognition | f1dee371abf37adba996e2b6e0d087f5c48183dd | 93a96575a967a9ba15b9d4938ae1c694b84b3903 | refs/heads/master | 2020-07-10T23:23:35.526308 | 2019-08-26T10:51:46 | 2019-08-26T10:51:46 | 204,395,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,089 | py |
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from scipy import misc
import tensorflow as tf
import numpy as np
import os
import sys
import argparse
import facenet
import align.detect_face
from sklearn.cluster import DBSCAN
def main(args):
pnet, rn... | [
"noreply@github.com"
] | noreply@github.com |
197947df3f6c3b552f542cad538188861870d86f | 95c027e7302751b335b33d287e0efac7483edfc3 | /boj/BOJ_평균.py | aaf5066b2ef4cd7f9d8f10ec2c10ff292124ceba | [] | no_license | kimchaelin13/Algorithm | 01bd4bcb24c58d5d82714e60272d5af91d2d9ce8 | 53f7f3cff5a141cf705af3c9f31cdb9ae997caff | refs/heads/master | 2023-02-03T08:58:26.660299 | 2020-12-20T17:01:16 | 2020-12-20T17:01:16 | 296,996,924 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | import sys
sys.stdin = open("input.txt", "r")
s = []
for i in range(5):
s.append(int(input()))
for j in range(len(s)):
if s[j] < 40:
s[j]=40
print(round(sum(s)/len(s))) | [
"kimchaelin13@gmail.com"
] | kimchaelin13@gmail.com |
9c9da1e97169f478d6774822d571de995bc96c6f | baf1dddb1e1dd4ff878438726c4f78736895e994 | /reddwarf/tests/api/mgmt/instances_actions.py | 08e895727dc550af5aefd92c704584dbb2ecc15a | [] | no_license | SlickNik/reddwarf | a8bd0a5e9431ff9bcba02e9134ab42f9ac1ab4c6 | 267e29477909f237ccf06e4c86e63be7ba54bd07 | refs/heads/master | 2020-04-06T04:52:30.684626 | 2013-04-30T20:25:13 | 2013-04-30T20:26:00 | 8,933,765 | 0 | 0 | null | 2015-11-10T14:36:18 | 2013-03-21T16:56:17 | Python | UTF-8 | Python | false | false | 4,700 | py | # Copyright 2013 OpenStack LLC
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"jcruz7@gmail.com"
] | jcruz7@gmail.com |
fc852f88b4e0c78bbfc8a6e3ef6906da90cd2fdc | 5e152949f9df4a2821cf0b5973af0b525dd895fc | /train.py | 480b50f3426accd2e1d4a00def40b477d64518f8 | [] | no_license | Chunlinx/WSAN4SNLI | 04ab4392219c02fe2e19923064ac154e7fc4ff3e | f331e587902934a5ec578a2df2dc0d8033e9a60f | refs/heads/master | 2020-03-28T03:53:13.354186 | 2018-08-30T09:06:32 | 2018-08-30T09:06:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,230 | py | # coding: utf-8
# author: huang ting
# created time: 2018-04-28-23:14
import tensorflow as tf
import pickle as pkl
import numpy as np
import models
import time
import os
import math
import sys
import utils
from scipy.stats import spearmanr, pearsonr
np.random.seed(1234567)
# os.environ["CUDA_VISIBLE_DEVIC... | [
"huangting@sensetime.com"
] | huangting@sensetime.com |
d192679b29b6356a0584a298b3f3bd1b5f8b88c7 | 0bebea87a84635978aead5294a1d366c92821582 | /conf/settings/deploy.py | 7502aac5db41169a6a9eb58ce8d33b17878fec6c | [] | no_license | uibeom96/uibeom96test | 8bdffbed53cbacc08eabbc0cc28f9a12bdbe2a77 | 489cd8af10a69ee6a10369a366ea595c1f77d7f0 | refs/heads/master | 2023-04-18T06:20:25.788686 | 2021-04-21T12:50:36 | 2021-04-21T12:50:36 | 360,168,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | from conf.settings.base import *
import dj_database_url
DEBUG = False
ALLOWED_HOSTS = ["*"]
DATABASES = {
'default': {
'ENGINE': get_secret_key("DB_DP_ENGINE"),
'NAME': get_secret_key("DB_DP_NAME"),
"USER": get_secret_key("DB_DP_USER"),
"PASSWORD": get_secret_key("DB_DP... | [
"dmlqja7570@daum.net"
] | dmlqja7570@daum.net |
0c6f4a482144c0528ccfe935a6c4a8422cf0bd92 | 04ff52cae8e6645ce14347933a429081ae12d055 | /Chapter 2/21211 Sara.py | b4b237555ee82121723f5236016a8e39df1a33ee | [] | no_license | smaxwell953/PythonLabs | d0518ef038f586ce75fbc5cd9fb4827be9396381 | d29e7e0cffe86ac2ed64664e851c1d4b3798b057 | refs/heads/master | 2021-07-04T19:13:53.260126 | 2021-04-26T01:49:46 | 2021-04-26T01:49:46 | 233,175,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 212 | py | #Write a one-line piece of code, using the print() function, as well as the newline and escape characters, to match the expected result outputted on three lines.
print('"I\'m"\n''""learning""\n''"""Python"""')
| [
"noreply@github.com"
] | noreply@github.com |
70b79e0772e5b3d392cca2ec29ce149af520b38c | 583e9099d4905a554bbd8a59e1fce6ebe16f34a7 | /coords.py | 615f56a2e8089d22d9718f5d7396f88a1cd019b0 | [] | no_license | App24/Minecraft-Coordinate-Convertor | f74c2e2bb1f9cd93012bf077dd5805601ef0cd18 | 343f6e5f6d08fb8efa76225ec74e58c17194e355 | refs/heads/master | 2022-12-23T05:16:29.589715 | 2020-09-30T05:29:19 | 2020-09-30T05:29:19 | 299,817,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,009 | py | import tkinter #Tkinter is a module that comes with python
from tkinter.font import * #Prevents doing tkinter.font.Font
def popup(title,_text,_fg="black"):
toplevel = tkinter.Toplevel()
#Setting Icon
icon=tkinter.PhotoImage(file="icon.gif")
toplevel.tk.call("wm","iconphoto", toplevel._w, icon)
#Set... | [
"kado.fofinho2@gmail.com"
] | kado.fofinho2@gmail.com |
a9ab497015525833279bb4f7cb7b294f7e35efe7 | 5fd401dbc7b9ac782d387067c43a559971de5028 | /modules/file/upload.py | 5ad9b4a030323d70e88e69b37d7ef047af896c60 | [] | no_license | SagaieNet/weevely3 | 0b41be1bbd08a8ebde1e236775462483ad175c6e | c169bbf24807a581b3f61a455b9a43a5d48c8f52 | refs/heads/master | 2021-01-22T15:00:19.838734 | 2014-09-30T20:00:07 | 2014-09-30T20:00:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,139 | py | from core.vectors import PhpCmd, ModuleCmd
from core.module import Module
from core import messages
from core.loggers import log
import random
import hashlib
import base64
class Upload(Module):
"""Upload file to remote filesystem."""
def init(self):
self.register_info(
{
... | [
"emilio.pinn@gmail.com"
] | emilio.pinn@gmail.com |
f8aa9cc771efab36e523016cc18be7dd92b8bf88 | 43ab33b2f50e47f5dbe322daa03c86a99e5ee77c | /test/test_study_group_values_controller_api.py | 671f7e874460bcd47617d26a420f26a608131ef4 | [] | no_license | Sage-Bionetworks/rcc-client | c770432de2d2950e00f7c7bd2bac22f3a81c2061 | 57c4a621aecd3a2f3f9faaa94f53b2727992a01a | refs/heads/main | 2023-02-23T05:55:39.279352 | 2021-01-21T02:06:08 | 2021-01-21T02:06:08 | 331,486,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,603 | py | # coding: utf-8
"""
nPhase REST Resource
REDCap REST API v.2 # noqa: E501
The version of the OpenAPI document: 2.0
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import rcc
from rcc.api.study_group_values_controller_api import StudyGroupVa... | [
"thomas.yu@sagebase.org"
] | thomas.yu@sagebase.org |
3f728415282774230325f355da06cc6b4cb449c8 | ee1ad2c3fbd433f0a75034c7f90944bf6c7d80e6 | /main.py | 0048758b5e1b7bba1762c8bf719381b3cd390431 | [] | no_license | carolnesso/MD-project | 74499bbe66264ae45e6e0059e8284d5b988726ae | 9e261e4e98d46667b9bdfde3ddf429caad131bc7 | refs/heads/master | 2020-07-07T17:35:25.519437 | 2019-08-20T20:32:14 | 2019-08-20T20:32:14 | 203,423,485 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,391 | py | """
ARQUIVO PRINCIPAL (main.py)
"""
import prime
import keys
import mdc
import dictionaryies
import exp_modular
import savefile
def encrypt(code_msg, n, e):
"""
Recebe uma sequencia numerica (onde cada numero representa um caractere
digitado pelo usuario na messagem original), o valor 'n' e o expoente 'e'... | [
"noreply@github.com"
] | noreply@github.com |
a87547d63b4adbc33bfb07abc7b24c84b7af332a | a330851a2b5036ed83e3bdc49041d117af184d50 | /pca/dataanalyzer.py | dcb165e1c51382f320eb84c43eb7277d950f54c6 | [
"MIT"
] | permissive | Wangwuhen/classification-of-encrypted-traffic | 9e28e62956d440fb7ebac334cdc32a7e7dbdf725 | 3c86e098aab58941f9339bb64945c1112ab556ef | refs/heads/master | 2020-04-15T04:10:29.786935 | 2018-06-23T18:20:08 | 2018-06-23T18:20:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,858 | py | import utils
import glob
import os
import pandas as pd
import numpy as np
import math
import pca as p
def getbytes(dataframe, payload_length=810):
values = dataframe['bytes'].values
bytes = np.zeros((values.shape[0], payload_length))
for i, v in enumerate(values):
payload = np.zeros(payload_length... | [
"saliklp@gmail.com"
] | saliklp@gmail.com |
c4c19d754d5ca8299ee238a2f3fe86ae2ca8ca8d | da650c454c9f961c38310de25dc9367d19873ae5 | /chalice/blog/models.py | 464b25b4bdeea57b7cd5695b1881c519ed97b021 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | andrimarjonsson/chalice | c356e39ae4fa11419d11725db8429482667b50da | e0140cf415372925aa97ef26ef306a868b66fd3e | refs/heads/master | 2021-03-12T22:08:15.976799 | 2013-04-04T18:14:14 | 2013-04-04T18:14:14 | 3,710,787 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,256 | py | from sqlalchemy.ext.hybrid import hybrid_property
from datetime import datetime
from chalice.extensions import db
from chalice.helpers import slugify
class Post(db.Model):
__tablename__ = 'posts'
# -- Columns
id = db.Column(db.Integer, primary_key = True)
_title = db.Column('title', db.String(255), n... | [
"andri.m.jonsson@gmail.com"
] | andri.m.jonsson@gmail.com |
98d38db48e4ed92aa5459825d91eb2f6629564f3 | 45ed991d87ff31797dc5ea692eea304a4c2ff07e | /faq/views.py | 2c9546b9416ee83f9c444dfd5129dad0da7af9d3 | [] | no_license | Hadian1989/FAQ | 4314686858c38895970bf5de176891974ca87b87 | e8e0bf44e681162ac767829868231993ba0de79a | refs/heads/main | 2023-07-31T18:41:34.210333 | 2021-09-09T15:26:25 | 2021-09-09T15:26:25 | 404,612,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | from django.shortcuts import render
from django.views.generic import TemplateView
from .models import *
# Create your views here.
def show_categories(request):
return render(request, "categories.html", {'categories': Category.objects.all()})
class HomePageView(TemplateView):
template_name = 'home.html'
| [
"ghazal.hadiyan@gmail.com"
] | ghazal.hadiyan@gmail.com |
a2475d2665bf611b955e1b272f6b4d90ee9bc82a | f5fb9b4eead0b32d51fd54c099c1b15d0551fca6 | /venv/grey_ct.py | 939983b9f3bf0c952c482216761965f5963504b0 | [
"Apache-2.0"
] | permissive | hellending/CT-conv2d_SVM_random-forest | 3ccbea45b40f1aeab0fc318eb5bbb4534dc0b3ff | 100807fadbb55297cad45ce2163ed9a14e3149ab | refs/heads/main | 2023-02-08T13:07:21.880205 | 2020-12-18T18:26:22 | 2020-12-18T18:26:22 | 321,894,912 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,881 | py | import tensorflow.compat.v1 as tf
from tensorflow.examples.tutorials.mnist import input_data
import numpy as np
import grey_picture as rd
import os,sys
from sklearn.model_selection import train_test_split
import time
os.environ['TF_CPP_MIN_LOG_LEVEL']='2'
tf.disable_eager_execution()
def creat_label(length,classficatio... | [
"1499983040@qq.com"
] | 1499983040@qq.com |
a08b6a7a99b0ab5b2de2ff6bf12388fbf6319a48 | c4bfd8ba4c4c0f21bd6a54a9131f0985a5a4fa56 | /crescent/resources/s3/bucket_policy/constants.py | 5ba83647b2baf057d3d871cc99288b7e11f8f64e | [
"Apache-2.0"
] | permissive | mpolatcan/crescent | 405936ec001002e88a8f62d73b0dc193bcd83010 | 2fd0b1b9b21613b5876a51fe8b5f9e3afbec1b67 | refs/heads/master | 2022-09-05T04:19:43.745557 | 2020-05-25T00:09:11 | 2020-05-25T00:09:11 | 244,903,370 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | from crescent.core.constants import get_values
class _RequiredProperties:
class BucketPolicy:
BUCKET = "Bucket"
POLICY_DOCUMENT = "PolicyDocument"
# --------------------------------------------------
class ResourceRequiredProperties:
BUCKET_POLICY = get_values(_RequiredProperties.BucketPol... | [
"mutlupolatcan@gmail.com"
] | mutlupolatcan@gmail.com |
3775521386c59304a0872b9053c2111fdfe7ca55 | da687718aa8ce62974090af63d25e057262e9dfe | /cap14-funcoes/extras/entrada.py | 8f9a269e72ba810cb2bb7d637f9fbdeaae697fbd | [] | no_license | frclasso/revisao_Python_modulo1 | 77928fa4409c97d49cc7deccdf291f44c337d290 | 1e83d0ef9657440db46a8e84b136ac5f9a7c556e | refs/heads/master | 2020-06-25T05:37:28.768343 | 2019-07-27T22:23:58 | 2019-07-27T22:23:58 | 199,217,969 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | def valida_inteiro(mensagem, minimo, maximo):
while True:
try:
v = int(input(mensagem))
if v >= minimo and v <= maximo:
return v
else:
print(f'Digite um valor entre {maximo} e {minimo}.')
except: print('Voce deve digitar um numero i... | [
"frcalsso@yahoo.com.br"
] | frcalsso@yahoo.com.br |
1c1842851e7ef3306eade4b5362a299e7a952d0f | 4cdf4e243891c0aa0b99dd5ee84f09a7ed6dd8c8 | /django2/bookmarks/bookmarks/settings.py | 8277bde8c3c7f242eb407532c2ef68e2c0ae896b | [
"MIT"
] | permissive | gozeon/code-collections | 464986c7765df5dca980ac5146b847416b750998 | 13f07176a6c7b6ac13586228cec4c1e2ed32cae4 | refs/heads/master | 2023-08-17T18:53:24.189958 | 2023-08-10T04:52:47 | 2023-08-10T04:52:47 | 99,432,793 | 1 | 0 | NOASSERTION | 2020-07-17T09:25:44 | 2017-08-05T15:56:53 | JavaScript | UTF-8 | Python | false | false | 3,367 | py | """
Django settings for bookmarks project.
Generated by 'django-admin startproject' using Django 2.0.8.
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
... | [
"goze.qiu@gmail.com"
] | goze.qiu@gmail.com |
51f09285da26065b74eaa493d4e20fead4fce30d | 0c7fa3405c5f85352737b97c6751cbf14de0be8c | /accounts/migrations/0001_initial.py | 42d6feef416669fcaffa2f85504db59fb08ded11 | [] | no_license | bhutton/TDD-with-Python | 307e77bc97e0c24e51fc5bc4d3e9cf640304226e | b7971fa8fad76808b49b2100afcc00c12985bf61 | refs/heads/master | 2021-01-12T15:01:58.491777 | 2017-01-21T01:23:36 | 2017-01-21T01:23:36 | 69,787,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',
fields=[
('email', models.EmailField(max... | [
"ben@benhutton.com.au"
] | ben@benhutton.com.au |
a232db2616848042691d1e7c825e015af8882aab | 5fe72bb13baf3649058ebe11aa86ad4fc56c69ed | /hard-gists/3409403/snippet.py | 0e119325f7fbab1ea9ab0c1fde4fd52135828a49 | [
"Apache-2.0"
] | permissive | dockerizeme/dockerizeme | 8825fed45ff0ce8fb1dbe34959237e8048900a29 | 408f3fa3d36542d8fc1236ba1cac804de6f14b0c | refs/heads/master | 2022-12-10T09:30:51.029846 | 2020-09-02T13:34:49 | 2020-09-02T13:34:49 | 144,501,661 | 24 | 20 | Apache-2.0 | 2022-11-21T12:34:29 | 2018-08-12T21:21:04 | Python | UTF-8 | Python | false | false | 547 | py | from google.appengine.ext import db, ndb
from google.appengine.datastore import entity_pb
def db_entity_to_protobuf(e):
return db.model_to_protobuf(e).Encode()
def protobuf_to_db_entity(pb):
# precondition: model class must be imported
return db.model_from_protobuf(entity_pb.EntityProto(pb))
def ndb_enti... | [
"42325807+dockerizeme@users.noreply.github.com"
] | 42325807+dockerizeme@users.noreply.github.com |
f7b9a0fc0cd5204982d3b8b58c4546e77a6110c1 | 8666a70d42be23f8b712228ced55c585a1c13899 | /saas_portal_start/controllers/main.py | 3c6e488b805ee0760f5b72a728bf1133fd7ddebf | [] | no_license | digitalliuzg/odoo-saas-tools | 4ea3a059903236dc3cb1ec6d42433cb4fb1da6cc | a7bead937ed39c8a1b41a848b2ee47064b1d2982 | refs/heads/master | 2021-01-21T16:21:42.393322 | 2015-04-15T16:01:12 | 2015-04-15T16:01:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 918 | py | # -*- coding: utf-8 -*-
import openerp
from openerp import SUPERUSER_ID
from openerp.addons.web import http
from openerp.addons.web.http import request
from openerp.addons.auth_oauth.controllers import main as oauth
import werkzeug
import simplejson
import uuid
import random
class SaasPortal(http.Controller):
@ht... | [
"ivann.exe@gmail.com"
] | ivann.exe@gmail.com |
4c1e7c5233cb21118ed12162d9ba099c0665a80a | e0980f704a573894350e285f66f4cf390837238e | /.history/flex/models_20201029143145.py | b68119b214fd032d442ee5cf1b7492154ab67eb2 | [] | no_license | rucpata/WagtailWebsite | 28008474ec779d12ef43bceb61827168274a8b61 | 5aa44f51592f49c9a708fc5515ad877c6a29dfd9 | refs/heads/main | 2023-02-09T15:30:02.133415 | 2021-01-05T14:55:45 | 2021-01-05T14:55:45 | 303,961,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,048 | py | from django.db import models
from wagtail.core.models import Page
from wagtail.core.fields import StreamField
from wagtail.admin.edit_handlers import StreamFieldPanel
from wagtail.snippets.blocks import SnippetChooserBlock
from wagtail.core import blocks as wagtail_
from streams import blocks
from home.models import n... | [
"rucinska.patrycja@gmail.com"
] | rucinska.patrycja@gmail.com |
ef04eda75ce46249309cb75b6cbb7b0c9858fbe3 | 9f3991f4e7b405c04f2ef03ac7747b5a69d26b4b | /openpyxl/csv_to_excel.py | 8efbab73e40cd93a497cd0cec0ccd755b3044f64 | [] | no_license | zcxyun/pythonDemo | f66eb5e6e4274db2137480786eae4d6ca7e73163 | adf18cf6b58282a7f2f9203aa09d5cb60ced2e35 | refs/heads/master | 2021-07-29T19:06:52.481792 | 2021-07-27T16:10:38 | 2021-07-27T16:10:38 | 101,542,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,467 | py | #!/usr/bin/env
# -*- coding: utf-8 -*-
import csv
import re
import openpyxl
import itertools
from datetime import datetime
# from openpyxl.utils import get_column_letter, column_index_from_string
money = []
payee = []
payeeNumber = []
firstPayDate = []
#with open('resource/example.csv', encoding='utf-8') as originFi... | [
"zcxyun@126.com"
] | zcxyun@126.com |
f44e8b9cc9f7f71f30989d3fa17f44eab4a692c2 | 40a87b8129861aae1a325e1e486d20ad1dd2d944 | /mime/envs/dog_navigation.py | 14d26163da993a543690f57ae71f87e2ba0d444d | [
"MIT"
] | permissive | mazpie/mime | e75cf7bcd62ea3fc20b19ab8deeee670cb7492a7 | b3e5a8a9e1815120eebc7ec4a5b70a8701f74317 | refs/heads/master | 2022-12-11T06:07:14.515893 | 2020-09-03T15:12:24 | 2020-09-03T15:12:24 | 292,435,985 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,406 | py | import gym
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
from gym import spaces
from gym.utils import seeding
class DogNavigation2D(gym.Env):
"""2D navigation problems, as described in [1]. The code is adapted from
https://github.com/cbfinn/maml_rl/blob/9c8e2ebd741cb0c7b... | [
"pietromazzaglia@gmail.com"
] | pietromazzaglia@gmail.com |
616ea5ba74efee01d8be2e72d9173f4321fde216 | 6c46dac1b14a6614fe2f28830cdf3e34a314b370 | /src/RouteWatch/ais_cleaning_script.py | 291e697fbc4ca8d17cfbf80421cdc34f10c483b2 | [] | no_license | christensenmichael0/christensenmichael0.github.io | 92d455d2fd4d84aad449244fc24bb319216f9137 | 899763a69a2ca9fbc5ed6e748f95e73a995f0b30 | refs/heads/master | 2020-12-24T10:59:01.765103 | 2017-04-02T16:15:03 | 2017-04-02T16:15:03 | 73,206,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,023 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Sep 28 10:32:29 2016
@author: Mike
"""
import os
import datetime
#Load the data
parent_dir='C:\Users\Mike\Documents\Python Scripts\AIS\HMI_AIS\Single_Day_Gulf'
in_file_name='AIS_data.csv'
full_file_path_in=os.path.join(parent_dir,in_file_name)
out_file_name='AIS_data_clean... | [
"christensenmichael0@gmail.com"
] | christensenmichael0@gmail.com |
6bd108b17991c69a5e2e6b32d15557bac57258d4 | 767621262f1c758713cd77630e5f3c1ce1027737 | /contrib/seeds/makeseeds.py | 545592aa188f967497074688fb619016e0bc6b1b | [
"MIT"
] | permissive | ckxxz/abacoin | 534b0ce7d6077df4c67ef113c8eccb05f649a8da | 089b3b0594ced2fed1ae576060e411455277b903 | refs/heads/master | 2020-03-28T15:24:35.448647 | 2018-08-03T04:33:32 | 2018-08-03T04:33:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,783 | py | #!/usr/bin/env python3
# Copyright (c) 2013-2017 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Generate seeds.txt from Pieter's DNS seeder
#
NSEEDS=512
MAX_SEEDS_PER_ASN=2
MIN_BLOCKS = 337600
#... | [
"abaglobal@nate.com"
] | abaglobal@nate.com |
bcbef73a96b7eff72d57d60eafee985375118ffe | c3a1f5a4680ea73c1b25a93efe21b6194374969f | /acronymb.py | f6b0a01485bb9053a5a832b3c37dee4f0e6aec83 | [] | no_license | tennyson-mccalla/PPaItCS | 753cf6071c617a6daccaf1a04d9a774559fe1454 | 39bf1a586cfd366ce1b6e86539bc1b40019a9b51 | refs/heads/master | 2021-09-03T23:40:46.474671 | 2018-01-12T22:50:14 | 2018-01-12T22:50:14 | 84,278,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | def main():
print("This program creates a file of acronyms from a")
print("file of phrases.")
infilePhrase = input("What file are the phrases in?: ")
outfilePhrase = input("What file do the acronyms go in?: ")
infile = open(infilePhrase, "r")
outfile = open(outfilePhrase, "w")
for phrase... | [
"Tennyson@Tennysons-MacBook-Pro.local"
] | Tennyson@Tennysons-MacBook-Pro.local |
f7110a137464572e9e7fbd78384c1320ae5d379b | a2438c4f8275daba0702e5c9618215cf867feb61 | /text to pdf.py | d526f12978114ce1ce6e971f2eb5dcefabc85914 | [] | no_license | ShivamSharmaDeveloper/Text-to-PDF-Convertor | e52e3b54d4f25748d9a73a914dc6baa1c52538bf | 5fadea1040e0574e620c87289457ef402529a381 | refs/heads/master | 2022-12-29T10:20:49.248527 | 2020-10-15T05:25:46 | 2020-10-15T05:25:46 | 304,218,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | from fpdf import FPDF
pdf = FPDF()
pdf.add_page()
pdf.set_font("Arial", size=15)
f = open("input.txt", "r") # change the input.pdf to your file name
for x in f:
pdf.cell(200, 10, txt=x, ln=1, align='C')
pdf.output("input.pdf") # change the name that u want as output name
| [
"shivsharma7821@gmail.com"
] | shivsharma7821@gmail.com |
6bf462112c68e100b92acc5b9b8ed814e8f09d27 | ef4a1748a5bfb5d02f29390d6a66f4a01643401c | /algorithm/new_teacher_algorithm/AD/도약.py | 5c781e9d4bc4c9a28efdc8ca127c58b5528ef92d | [] | no_license | websvey1/TIL | aa86c1b31d3efc177df45503d705b3e58b800f8e | 189e797ba44e2fd22a033d1024633f9e0128d5cf | refs/heads/master | 2023-01-12T10:23:45.677578 | 2019-12-09T07:26:59 | 2019-12-09T07:26:59 | 162,102,142 | 0 | 1 | null | 2022-12-11T16:31:08 | 2018-12-17T08:57:58 | Python | UTF-8 | Python | false | false | 2,093 | py | import sys
sys.stdin = open("도약.txt")
###########################################################
########################## 두개 쓰기 ########################
###########################################################
# def lowerSearch(s,e,f):
# # f 이상 중에서 가장 작은 값의 위치를 리턴
# sol = -1
# while s<=e:
# m ... | [
"websvey1@gmail.com"
] | websvey1@gmail.com |
990c0d14f1a9a11941085c4fae1209efd43555c4 | e9988eb38fd515baa386d8b06bb7cce30c34c50d | /sitevenv/lib/python2.7/site-packages/django/utils/translation/trans_real.py | 6ab071dabaf28cf2d985efd0f10d8189984cabaf | [] | no_license | Arrrrrrrpit/Hire_station | 8c2f293677925d1053a4db964ee504d78c3738d8 | f33f044628082f1e034484b5c702fd66478aa142 | refs/heads/master | 2020-07-01T01:24:18.190530 | 2016-09-25T20:33:05 | 2016-09-25T20:33:05 | 201,007,123 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,622 | py | """Translation helper functions."""
from __future__ import unicode_literals
import gettext as gettext_module
import os
import re
import sys
import warnings
from collections import OrderedDict
from threading import local
from django.apps import apps
from django.conf import settings
from django.conf.locale... | [
"kunal1510010@gmail.com"
] | kunal1510010@gmail.com |
f727576e82b9ff9f2f898058272f2325f2af2682 | 1d868fd27328f15f431fad1635824d0a12c35deb | /examples/examples/printf_options.py | 33be875f65ca298add92cfe985d324994ddf9a6d | [] | no_license | jjdenis/Create_web_Compy | 4568228c7b6dfe8212969f7801c1ae3c52dafb3f | b2a7b20513fe86eac59794dffa43b90e3f075d9d | refs/heads/master | 2021-01-10T09:10:32.765890 | 2016-01-10T16:50:24 | 2016-01-10T16:50:24 | 49,278,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,251 | py |
def my_program():
printf('Example of printf using a color number',color=17)
printf('And now using a color name', color='light-yellow')
printf()
printf('To leave a blank line, do not include anything inside the parenthesis', color='light-green')
printf()
printf('If no color is specified, p... | [
"jjdenis@gmail.com"
] | jjdenis@gmail.com |
b563da1a4aa94a36c4599e6482162f6ded7d93e9 | 5b2218208aef68cf06609bcc3bf42b499d99d5f6 | /docs/source/conf.py | e94bc7c7e29be180973b828865b19e7712c33ad6 | [
"MIT"
] | permissive | c137digital/unv_app_template | c36cacfff3e0be0b00ecad6365b20b434836ffe7 | a1d1f2463334afc668cbf4e8acbf1dcaacc93e80 | refs/heads/master | 2020-05-25T19:24:17.098451 | 2020-04-24T19:33:08 | 2020-04-24T19:33:08 | 187,950,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,816 | py | # -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/master/config
# -- Path setup ------------------------------------------------------------... | [
"morty.space@gmail.com"
] | morty.space@gmail.com |
9a3f3542a14276c1794492528c5d906908c7f791 | 6b9084d234c87d7597f97ec95808e13f599bf9a1 | /evaluation/logger/pytracking.py | 6e17451f77982c297479789660635ffca35a1ee4 | [] | no_license | LitingLin/ubiquitous-happiness | 4b46234ce0cb29c4d27b00ec5a60d3eeb52c26fc | aae2d764e136ca4a36c054212b361dd7e8b22cba | refs/heads/main | 2023-07-13T19:51:32.227633 | 2021-08-03T16:02:03 | 2021-08-03T16:02:03 | 316,664,903 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 606 | py | import numpy as np
import os
class PyTrackingLogger:
def __init__(self, output_path=None):
self.output_path = output_path
def log_sequence_result(self, name: str, predicted_bboxes: np.ndarray, **kwargs):
print(f'Sequence: {name}')
print(f'FPS: {kwargs["fps"]}')
predicted_bboxe... | [
"linliting06@live.com"
] | linliting06@live.com |
c91598dd70f6a8c8881bedebf5012d8f0cec9568 | 43cd2ed4873b194bb8726536f109eb3ad6a23251 | /server/hieratika/monitor.py | 2ede936f044cea6a4a537f785f1b6675953a9904 | [] | no_license | aneto0/hieratika | c08b23ee53fb50f28b58e1ca45efd741a34c78a6 | 6740a5a9b1f17eb8d0d4b75f31ac70a2d76bd061 | refs/heads/master | 2021-07-13T07:46:40.558337 | 2018-03-22T10:07:01 | 2018-03-22T10:07:01 | 101,903,167 | 1 | 3 | null | 2021-02-17T08:43:17 | 2017-08-30T16:16:11 | Python | UTF-8 | Python | false | false | 3,225 | py | #!/usr/bin/env python
__copyright__ = """
Copyright 2017 F4E | European Joint Undertaking for ITER and
the Development of Fusion Energy ('Fusion for Energy').
Licensed under the EUPL, Version 1.1 or - as soon they will be approved
by the European Commission - subsequent versions of the EUPL (the "Licenc... | [
"Andre.Neto@f4e.europa.eu"
] | Andre.Neto@f4e.europa.eu |
6822bcb3b1c87fd53497fffdb8c8b67432f9ece8 | 06f6f206858f6d20128aa58871a6b77b63296921 | /EXERCÍCIOS DE CLASS, POO, TKINTER, PYMYSQL/Exercicios de POO.CARROS.py | d396f628be5e7e5fc018017a51ba8d30f806373a | [
"MIT"
] | permissive | candido00/Python | cd9512c53e342dcd40154690bb21a02fd1a27256 | 4b6721d55828191ca2ede0c5a0c36f6f5afdad55 | refs/heads/master | 2020-08-13T02:06:35.639144 | 2019-10-13T20:18:38 | 2019-10-13T20:18:38 | 214,887,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,850 | py | import tkinter
janela = tkinter.Tk()
janela.geometry("400x500")
titulo= tkinter.Label(janela, text= "calculadora do prejuizo")
titulo.pack()
frameinserir= tkinter.Frame(janela)
frameinserir.pack()
taxaLabel= tkinter.Label(frameinserir,text=" Taxa de Juros:")
taxaLabel.pack(side="left")
InserirEntry1= tkinter.En... | [
"cleydson21_123_@hotmail.com"
] | cleydson21_123_@hotmail.com |
853d732eaf48491fce608ac8d9a44c9258a5567e | 3dca607dcc753d4ffc06b8c4e559becb02174e51 | /Querymaker/__init__.py | 2236651f7ff0edaf5f00f8f2c18dfc7591575090 | [] | no_license | michelsn1/query | e1b51c9f2107a9ec57fd7b010e823b2e2ad3549f | 04f5e8bec6c5deb6487c25c94fba040082dde08e | refs/heads/master | 2020-04-25T17:58:02.450538 | 2019-02-27T18:30:26 | 2019-02-27T18:30:26 | 172,967,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45 | py | from Querymaker.Querymaker import Querymaker
| [
"noreply@github.com"
] | noreply@github.com |
f6721ea11faae85216d3a60224be9c9ec0207242 | 3fc4bca70bb817d8c14c2e6eaf29cda765e8cf19 | /venv/bin/pip3.6 | 548512482798bf15606d78d042dcc9e3e66cd6e0 | [] | no_license | OseiasBeu/ExemploDjango | 4841412dca9e15613671951cdcb18ea8d18ff68a | 31e4dfb12b84d217ff989bd7fc0fa5636312b8c4 | refs/heads/master | 2020-03-28T16:05:10.873540 | 2018-09-13T15:22:59 | 2018-09-13T15:22:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | 6 | #!/home/OseiasBeu/Documents/LPs/django/projeto/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"oseiasbeu@outlook.com"
] | oseiasbeu@outlook.com |
5aadabb6bec3aec95c8f54c9736e197ced6a47ab | 0daf6763c960cd898e9bb5612b1314d7e34b8870 | /mnist_1/data.py | b1bf29e2af4aca2bbe3f70fd3c775cddef6107cf | [
"MIT"
] | permissive | evanthebouncy/nnhmm | a6ba2a1f0ed2c90a0188de8b5e162351e6668565 | acd76edaa1b3aa0c03d39f6a30e60d167359c6ad | refs/heads/master | 2021-01-12T02:27:32.814908 | 2017-04-01T05:01:24 | 2017-04-01T05:01:24 | 77,956,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,180 | py | import numpy as np
from scipy.misc import imresize
from scipy.ndimage.filters import gaussian_filter
from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets("MNIST_data/", one_hot=True)
X_L = 10
L = 14
N_BATCH = 50
OBS_SIZE = 20
KEEP = 0.6
# ---------------------------- helpers
d... | [
"evanthebouncy@gmail.com"
] | evanthebouncy@gmail.com |
cc5a08297b64e06ec98a66b7b3640257b6c4b479 | fd63b57b1aa6620e96d2803b27c0d626e086812e | /logic.py | 4ef8d1907a78b1f20cf1f2d4df99dd3dbaec1a72 | [] | no_license | amitkumarx86/scrap | d17e405b467c2ff671ea354fd2fce589ebdbb466 | 8c23b54223c1ae2e07eb17567fabda8a3a0ec5dc | refs/heads/master | 2021-01-20T19:14:25.144989 | 2016-06-02T18:32:06 | 2016-06-02T18:32:06 | 60,284,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,893 | py |
#who = sys.argv[1]
#a=1
#b=2
#c=who
#print a+":"+b+":"+who
import requests
import datetime
import re
import sys
from bs4 import BeautifulSoup
url = sys.argv[1]
url = url + 'issues'
#print url
# url = ' ' + 'issues'
# url = 'https://github.com/Shippable/cexec/' + 'issues'
r = requests.get(url)
soup = BeautifulSou... | [
"amitkumarx86@gmail.com"
] | amitkumarx86@gmail.com |
a5beb263c9fa0069b8b9ef256681716929079437 | 5ee8a69917ad64c2dd09b7840b7a8d03d92fd884 | /posts/views.py | 06e5beaecdefbea7305e8a43000876adbc5b9e27 | [] | no_license | ylavinia/SimpleSocialForum | 655d76599f31930813647e8e25e8a10d41e05595 | 97f905745277e345d1feb88899dec754769c230e | refs/heads/master | 2021-01-21T22:02:01.067175 | 2017-06-22T21:20:57 | 2017-06-22T21:20:57 | 95,152,805 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,172 | py | from django.shortcuts import render
from django.contrib import messages
# Create your views here.
from django.contrib.auth.mixins import LoginRequiredMixin
from django.core.urlresolvers import reverse_lazy
from django.http import Http404
from django.views import generic
from braces.views import SelectRelatedMixin
f... | [
"bluishgrayfin@gmail.com"
] | bluishgrayfin@gmail.com |
a6c62e3506967f5d10df06b53bdadb1dcb04ff74 | 540705d5879734cf5235b6fe892d6cb8f03a0a05 | /day1/dna_counts.py | afff5b1c7d0ebf0f0d288bf90d3cbdd6ef7b2365 | [] | no_license | ChenYongyan-uu/1 | 16e3f7e6944925f12494d0853fa73d0fc6cdb4d0 | 07c1b0ca5f04e6b84bf890400fc38e90a0acf0d3 | refs/heads/master | 2022-02-02T01:32:52.801289 | 2022-01-17T20:31:55 | 2022-01-17T20:31:55 | 226,325,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,400 | py | def dna_counts(the_file_name, your_name = "user"):
dna_file = open(the_file_name,"r")
dna_data = []
for line in dna_file:
line = line.rstrip()
dna_data += [line]
dna_file.close()
print("Hello " + your_name)
no_of_sequences = len(dna_data)
print... | [
"58593368+ChenYongyan-uu@users.noreply.github.com"
] | 58593368+ChenYongyan-uu@users.noreply.github.com |
882b159715ff76036db8533e308519b5fac19989 | 84bf5f6dcc31624624464a694626bff9a9985070 | /app/web_config.py | a21a9f61f76341109c168aa82c1d4e4e6689f28c | [
"MIT"
] | permissive | TrixiS/web-bot | 82346bab82dc1ed4b76f4e51d72d6b33aa68ad92 | 523d02deb30993eb8ab5071ad78111719becd7c7 | refs/heads/master | 2023-06-21T17:48:49.212662 | 2021-08-09T17:06:02 | 2021-08-09T17:06:02 | 392,773,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,560 | py | import json
from pathlib import Path
from typing import List
import aiofiles
from pydantic import BaseModel, Field
config_path = Path(__file__).parent / "../config.json"
class Config(BaseModel):
bot_token: str = Field(None, title="Токен бота")
command_prefixes: List[str] = Field(["!", "!!"], title="Префик... | [
"oficialmorozov@gmail.com"
] | oficialmorozov@gmail.com |
71bfd188e3307f50316b5807460e05e6b0dab81e | 0be27c0a583d3a8edd5d136c091e74a3df51b526 | /int_long.py | 09d9178607925a32fd93bcf2ea90ca80acb00f96 | [] | no_license | ssangitha/guvicode | 3d38942f5d5e27a7978e070e14be07a5269b01fe | ea960fb056cfe577eec81e83841929e41a31f72e | refs/heads/master | 2020-04-15T05:01:00.226391 | 2019-09-06T10:08:23 | 2019-09-06T10:08:23 | 164,405,935 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | n=int(input())
if(n>=-2**15+1 and n<=2**15+1):
print ("INT")
elif n>=-2**31+1 and n<=2**31+1:
print("LONG")
else:
print ("LONG LONG")
#..int,long...longlong
| [
"noreply@github.com"
] | noreply@github.com |
2dd695de592207a29117c4190a29f7a409cce12d | 3fc887bb0758437ec38d1bf91a5744b7dd869f80 | /migrations/versions/5a5d28dae37f_.py | 81e48e94f8fc201b949b2dd63c6eb0e655126ada | [] | no_license | row-yanbing/Job-back-end | 9ec3814fb90afbe1816615603c9101f1356c8dbb | 1df34a65758072d28d147b246acb82633faf9e53 | refs/heads/master | 2023-08-14T17:07:21.576143 | 2021-10-06T14:20:06 | 2021-10-06T14:20:06 | 338,720,165 | 0 | 0 | null | 2021-02-14T03:19:40 | 2021-02-14T03:19:39 | null | UTF-8 | Python | false | false | 860 | py | """empty message
Revision ID: 5a5d28dae37f
Revises: 00fd219bf242
Create Date: 2020-04-23 13:05:31.421385
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '5a5d28dae37f'
down_revision = '00fd219bf242'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"gang_bb@163.com"
] | gang_bb@163.com |
376c6cddc23a1d5dd07040e9421a45a40c23da74 | 64080a6f2d2504b5506f0be31e8ca4be04d00666 | /prek_score.py | 239aef69c33880112e1d1fb4c138eaa289e67a07 | [
"MIT"
] | permissive | nordme/nordme_work_repo | 77dcfb2a555e30417e896296b97067154d632a5e | d6bbb35a9fe15ccdfcf5774e4e5dd191db3c811c | refs/heads/master | 2022-03-08T17:02:18.336169 | 2022-02-23T07:26:57 | 2022-02-23T07:26:57 | 154,579,374 | 0 | 0 | MIT | 2018-10-25T00:34:57 | 2018-10-24T22:54:01 | Python | UTF-8 | Python | false | false | 5,045 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
import os.path as op
import mne
import numpy as np
from mnefun._paths import (get_raw_fnames, get_event_fnames)
import expyfun
# words = 1
# faces = 2
# cars = 3 (channels 1 and 2)
# alien = 4
def prek_score(p, subjects):
for si, subject in enumerate(subjects):
... | [
"nordme@uw.edu"
] | nordme@uw.edu |
1e3cd8346e9e5a4f5e2ac20f8de1707a62a60c29 | 34f91a492e1102d396f607e435586b2e610bf6cb | /tui_helper.py | 754f90dfe549e744e429b106fc3c3edd2add2490 | [] | no_license | billykong/python_cmd_timekeeper | 2986da76d8c772b0e700ae024ff5adf53de53a54 | 5139282092fda36d794df800829aa2d7651a9014 | refs/heads/master | 2021-01-20T07:43:12.436038 | 2017-05-02T13:24:40 | 2017-05-02T13:24:40 | 90,036,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,832 | py | import controller
from tabulate import tabulate
import lang
def display_menu():
menu = """
Please choose one of the followings:
1. Show all unended task
2. Show today's task
3. Start a task
4. End a task
"""
print(menu)
def get_menu_input():
try:
return int(input("Enter one ... | [
"billyklh@gmail.com"
] | billyklh@gmail.com |
89189e31f7eff193f8991a28da369417a28ae86d | 68cd659b44f57adf266dd37789bd1da31f61670d | /D2/D2_20190715파리퇴치.py | 37273d877cfb93458b8b8fdef4531e610039777c | [] | no_license | 01090841589/solved_problem | c0c6f5a46e4d48860dccb3b0288aa5b56868fbca | bbea2f31e5fe36cad100bc514eacd83545fb25b1 | refs/heads/master | 2023-07-02T23:55:51.631478 | 2021-08-04T13:57:00 | 2021-08-04T13:57:00 | 197,157,830 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | def arrr(N) :
for i in range(N) :
inp = input().split(' ')
inp = [int(j) for j in inp]
fly.append(inp)
return fly
def max_cal(fly,N,M):
sum_num = 0
max_num = 0
for i in range(N-M+1) :
for j in range(N-M+1) :
for l in range(M) :
for m in ra... | [
"chanchanhwan@naver.com"
] | chanchanhwan@naver.com |
1340d0d10842a305d175f3f789088bd4f7e18bf1 | 193a87875097e10bc518581a63ecaacb1f4bd131 | /Aula4 - Vetores e estrutura de repetição/usuarioSenha.py | ba39f74d45823f41cbf1b74808ac8446213da690 | [] | no_license | jaugustomachado/Curso-Next-Python | f9be5fabf445cc79bb252b811be237fb4d706548 | 2d50785b78781fb166b61dc586d6e60bf9504788 | refs/heads/main | 2023-08-13T13:47:15.171016 | 2021-10-01T21:09:09 | 2021-10-01T21:09:09 | 404,890,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | #Faça um programa que leia um nome de usuário e a sua senha e não aceite
#a senha igual ao nome do usuário, mostrando uma mensagem de erro
#e voltando a pedir as informações.
usuario=input('informe o usuário: ')
senha= input('informe a senha: ')
while usuario == senha:
print('usuário e senha não podem ser iguais,... | [
"jose.augusto.machado@hotmail.com"
] | jose.augusto.machado@hotmail.com |
5b8ac99e89351630dfc8090ec60540e6aca0a12d | 427bc8a6d7769ea2da8f86a41e704b3d3831a93a | /main.py | 83c95a472bcd0de905eb85e90d475788567bba5e | [
"Apache-2.0"
] | permissive | BoonWei/BPNN | 9ca168e9d43e79a769973286d5eb66864931936a | c5964064910110b5737535ad6ea2a4f79aa46e9b | refs/heads/master | 2023-08-24T05:26:50.363805 | 2021-09-17T04:03:54 | 2021-09-17T04:03:54 | 125,953,881 | 0 | 0 | null | 2021-07-25T08:17:30 | 2018-03-20T03:13:46 | Python | UTF-8 | Python | false | false | 1,459 | py | import pandas as pd
import createdata
import numpy as np
import bp
import random
import matplotlib.pyplot as plt
if __name__ == '__main__':
path = 'D:\homework\picture\picall'
createdata.createcsv(path)
f = open('labels.txt', 'r')
dataset = f.readlines()
f.close()
for i in range(... | [
"noreply@github.com"
] | noreply@github.com |
0b08075f38eedd6834e8eb3bf7563882dbd171af | 558af6d8842d3f8c5292346d76c01ed6ac246789 | /project1/wiki/encyclopedia/views.py | ae9d74cea1d834e4c144477e72f63f6d66da3c92 | [] | no_license | anhsirk0/CS50web-2020 | 81497bc0d594ae80f2a261ec06fc2be2f2f191d8 | eee1239bda5d9edc566460bd874fa65ea7ae67cb | refs/heads/master | 2023-04-12T02:18:06.763262 | 2021-05-20T05:45:01 | 2021-05-20T05:45:01 | 360,774,319 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,626 | py | import glob, random
import markdown2
from django.shortcuts import render, redirect
from django.http import HttpResponse
from . import util
def index(request):
return render(request, "encyclopedia/index.html", {
"entries": util.list_entries()
})
def entry(request, name):
ls = glob.glob("entries/... | [
"krishna404@yandex.com"
] | krishna404@yandex.com |
9e9a568dc83798a490c202672916072d2a5ffc5f | 858bb71172b2c68712f6b7646826352978b2c4aa | /logRegression.py | 304b4eeca572347fd103939e1b77e4acaa69f346 | [] | no_license | johnbridstrup/AndrewNgML_class | 83c5c54a4d633b3579a1893e3792923dc3e9b08c | 26dfa201e91bd8bd6076e03a96548c5742a54301 | refs/heads/master | 2023-02-20T23:53:40.208188 | 2021-01-22T01:03:17 | 2021-01-22T01:03:17 | 318,329,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,033 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from sklearn.preprocessing import MinMaxScaler
import scipy.optimize as opt
def formatData(data):
"""Format data with boolean values for categorical data"""
# Binary data first
binData = data.replace({'M':1, 'B':0})
# Category data
... | [
"john.bridstrup@gmail.com"
] | john.bridstrup@gmail.com |
e32bd0130a28604d940e0a1e7d79496057d8a0cb | 66a9c25cf0c53e2c3029b423018b856103d709d4 | /tests/live_test.py | b71930af68b02cc6137cb3b01a6f80f39c0ef9f3 | [
"MIT",
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | fritzy/SleekXMPP | 1b02d3e2b22efeb6bf3f8f487e6c0343b9b85baf | cc1d470397de768ffcc41d2ed5ac3118d19f09f5 | refs/heads/develop | 2020-05-22T04:14:58.568822 | 2020-02-18T22:54:57 | 2020-02-18T22:54:57 | 463,405 | 658 | 254 | NOASSERTION | 2023-06-27T20:05:54 | 2010-01-08T05:54:45 | Python | UTF-8 | Python | false | false | 3,422 | py | import logging
from sleekxmpp.test import *
class TestLiveStream(SleekTest):
"""
Test that we can test a live stanza stream.
"""
def tearDown(self):
self.stream_close()
def testClientConnection(self):
"""Test that we can interact with a live ClientXMPP instance."""
self.... | [
"lancestout@gmail.com"
] | lancestout@gmail.com |
fc6f533ffd3393babd0b23dfc5f218fbc7ec2c1d | 073ef7f965c7a559977aa43ff30e2c25a4988917 | /LearnNumpy.py | 76f9bc47569f9672c59659e41e99ec2ef420dba0 | [
"MIT"
] | permissive | HMurkute/PythonNumpy | d07aa463d126aaafcf37a5a5895f55d928aac17c | 48fe3d8215c488deae9a9ce570ab8dd9888b220d | refs/heads/master | 2020-03-09T07:55:30.079873 | 2018-04-08T20:00:59 | 2018-04-08T20:00:59 | 128,676,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | import numpy as np
a = np.array([(1, 2, 3),(4, 5, 6)])
print(a)
| [
"noreply@github.com"
] | noreply@github.com |
4ea71449b91168caffa64305b8f650b70a3ac9ca | c4e23b28025e7bcf1689a55a204f396b171bee25 | /nvdapi/wsgi.py | ba4a2dc35ecd9a67fe4650b90c5bd9d325f06c2c | [] | no_license | kieran-whittenburg/nvdapi | a0bfa2a35870bb93245df4550654a7768a09634e | ebf81ff0e6c5424dfb7a1656e596eda4605b1492 | refs/heads/master | 2021-08-31T08:10:12.932730 | 2017-12-20T18:35:06 | 2017-12-20T18:35:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | """
WSGI config for cps project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "nvdapi.settings")
from django.core.wsgi i... | [
"dvaca@hispasec.com"
] | dvaca@hispasec.com |
e569a90ff03f03092a46f2d626a94563286cbb95 | 4e33b745cbc5f93d0ea2aa6f5215dbf6f50ce060 | /split_file.py | 11b1306f734faad4780a500faf898a12bef67cd4 | [] | no_license | milizza90/yt_scarp | 0fad4a41d6e9a1236e9ac2a6966e4c3c7f5f0938 | e8717d50c29d7102c31fb3edda81a369d98a5293 | refs/heads/master | 2020-12-23T16:23:37.790144 | 2020-01-30T12:02:01 | 2020-01-30T12:02:01 | 237,202,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,003 | py | import os
import re
import wget
import numpy as np
from pytube import YouTube
from pydub import AudioSegment
dir_path = os.listdir(r'D:\wav')
os.chdir(r'D:\wav')
#dir_path = os.listdir(r'D:\Pycharmprojects\PycharmProjects\youtube_scarping\youtube_audios\audio\wav')
#os.chdir(r'D:\Pycharmprojects\PycharmProjects\youtub... | [
"milizza90@hootmail.com"
] | milizza90@hootmail.com |
f5058ccbcc8449198222100dc98b9d6777472a89 | 2f6d017dedc68588b2615d65c1e8ca8bcdd90446 | /api/deploy/write_json.py | 01f5c1cf3ca63b0de2e90ca19f9b694b331c12f5 | [] | no_license | hysunflower/benchmark | 70fc952a4eb1545208543627539d72e991cef78a | c14f99c15b4be9e11f56ea378ca15d9c3da23bab | refs/heads/master | 2022-06-30T07:04:14.986050 | 2022-06-15T02:43:04 | 2022-06-15T02:43:04 | 224,449,279 | 1 | 0 | null | 2019-11-27T14:29:29 | 2019-11-27T14:29:29 | null | UTF-8 | Python | false | false | 3,347 | py | #!/bin/python
# -*- coding: UTF-8 -*-
# Copyright (c) 2020 PaddlePaddle 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/... | [
"noreply@github.com"
] | noreply@github.com |
3b08e36e7f7169fea024e8286e004bf9c1c41426 | 7e97df668fdf4cf94c45a37a74523d431e54768f | /Code/researchproject/venv/bin/margins | 4e111af1e89758c5e0d004fc2d2a8ffbe5b75fcb | [] | no_license | liyi19950329/Research-Project | cb44079e99031ee9a4b71500b47c0439384d93bb | 9f98984042704bf6d5c80578a4121da43ca98df7 | refs/heads/master | 2021-02-14T21:51:50.343567 | 2020-09-09T22:20:24 | 2020-09-09T22:20:24 | 244,837,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | #!/Users/liyi/PycharmProjects/researchproject/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from xlutils.margins import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"2996460970@qq.com"
] | 2996460970@qq.com | |
430ada24ba2979d1dc90a260c575a23f647ee5a8 | 33d2f4a8ffa7df6cb3be2bd278b5b49b6cc258ac | /try-except.py | 2757c38554819c3a4a199777ca9cac9556a032d7 | [] | no_license | cjwo0817/0928 | 1580ef1e51f9bc3d86b7eb97ad9ad38a975756d4 | afefa56ee88096094b13aaed726cb326536126b7 | refs/heads/master | 2020-08-02T16:47:44.491202 | 2019-09-28T07:08:41 | 2019-09-28T07:08:41 | 211,434,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | def getMean(numericValue):
return sum (numericValue)/len(numericValue)
my_list2 = [1, 2, 3]
try:
result = getMean(my_list2)
except ZeroDivisionError as detail:
print("(Error): {}".format(float('nan')))
print("(Error): {}".format(detail))
else:
print("(The mean is): {}".format(result))
... | [
"noreply@github.com"
] | noreply@github.com |
b9d4afd84040448b1f03dc8701452126429a079b | 2ba3d16bf0aab3cb9478ba145749575724373d66 | /testingAndReadingSensors/ecReader.py | 7f4439edcb470a26fe298c6e7f559a5f7482bfce | [] | no_license | phadjian/hydroponics | 0316be4e094007dacb07d71f4f2ee373e101f874 | 41f2e9e9de91ef73a9159d6ec139fb755582dccf | refs/heads/master | 2021-02-16T17:49:15.426964 | 2020-05-04T19:20:26 | 2020-05-04T19:20:26 | 245,031,128 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | # ecReader.py
# Gia Trinh
# ecSim.py
# Gia Trinh
# Input: probe --> float
# Output: I2C --> float
# Input & output range: 0.07 - 500000 μS/cm
# Returns a value in μS/cm
def ec(value):
return value
| [
"noreply@github.com"
] | noreply@github.com |
f21360c68557a49b1b4e4413627b85cd6737f75c | 73c9211d5627594e0191510f0b4d70a907f5c4c5 | /nn/keras_dataguru/lesson2/work2.py | 4dcacb8f30dd2feaffbd330256b8915e94435bcf | [] | no_license | tigerxjtu/py3 | 35378f270363532fb30962da8674dbcee99eb5ff | 5d24cd074f51bd0f17f6cc4f5f1a6e7cf0d48779 | refs/heads/master | 2021-07-13T05:34:15.080119 | 2020-06-24T09:36:33 | 2020-06-24T09:36:33 | 159,121,100 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,149 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
import keras
import numpy as np
from keras.datasets import mnist
from keras.utils import np_utils
from keras.models import Sequential
from keras.layers import Dense
from keras.optimizers import SGD
# In[2]:
(x_train,y_train),(x_test,y_test)=mnist.load_data()
print('... | [
"liyin@16010.net"
] | liyin@16010.net |
2cc99d4c4c0a1b67ee46321cced5de73e72fae1a | 9ec55734202ff6aa36cf8dae51ba27d3b8afa0ea | /scripts/arguments.py | 5f3a9d82e9a3279e9428cab44ad7fd6b458cec5d | [
"MIT"
] | permissive | AymanMukh/superquadric_parsing | d46bd833b4ec286032121093e463374c81dfbc8a | 40750abdbb2e01c1ed3708bbcb901daed5e29348 | refs/heads/master | 2020-07-03T22:14:32.251669 | 2019-08-09T11:05:11 | 2019-08-09T11:05:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,314 | py |
def add_voxelizer_parameters(parser):
parser.add_argument(
"--voxelizer_factory",
choices=[
"occupancy_grid",
"tsdf_grid",
"image"
],
default="occupancy_grid",
help="The voxelizer factory to be used (default=occupancy_grid)"
)
par... | [
"paschalidoud@gmail.com"
] | paschalidoud@gmail.com |
294b4e24dbc704233648dbe74cabe2a45921a0c7 | 2c377e5b4f2e67cd02c24c253a038cf4bcf546e6 | /navbuilder/tests/test_admin.py | 724cdb0862fd25c9b2edbe01e160204d78113ea5 | [] | permissive | praekelt/django-navbuilder | 9694d3c3c65b0b7c2633e15712302b5f9cf1e47f | 0524aca22f2a8be2b1f55770cdc1b6c5dee9916d | refs/heads/develop | 2021-06-23T11:16:11.992949 | 2018-05-10T12:55:38 | 2018-05-10T12:55:38 | 65,980,831 | 0 | 0 | BSD-3-Clause | 2021-06-10T20:16:28 | 2016-08-18T08:45:28 | Python | UTF-8 | Python | false | false | 1,470 | py | from django.contrib.auth import get_user_model
from django.test import TestCase
from django.test.client import Client
from navbuilder.tests.test_base import load_fixtures
class AdminTestCase(TestCase):
def setUp(self):
load_fixtures(self)
self.client = Client()
self.editor = get_user_mode... | [
"jpbydendyk@gmail.com"
] | jpbydendyk@gmail.com |
a5ef54a9d6efffe51eb5934fc96e5ffe768014aa | 4f91c481cc946c2c45c5984322a00a5da9b22720 | /server/tests/test_login.py | 527905624197dc6fdb79459d845722d5eee76625 | [
"MIT"
] | permissive | JoeEmp/pi_web_file_system | 2d07ff95664ebfa154162c20df91d6713ae12800 | e252660c7b8f2d26853a43860da0a7fdd062e505 | refs/heads/main | 2023-05-30T15:41:25.913197 | 2021-06-13T15:26:01 | 2021-06-13T15:26:01 | 366,447,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | import unittest
import requests
class login_case(unittest.TestCase):
def test_error_username(self):
username = '1'
data = {"username": username, 'password': 'raspberry'}
r = requests.post('http://127.0.0.1/login', data=data)
self.assertEqual(r.json()['msg'], '不存在该用户')
def test... | [
"hemingjie"
] | hemingjie |
dab8ad37b3bcdea97ab8b66a925762df6eeb449e | b221feae2480d28cef546e48e3fe808b23784b46 | /Group10/untitled3.py | e87d5f0401c2102657be2b9039ecc97f209b8853 | [] | no_license | sumitkumar261/CS308_Project | ff5ead6380fa6f38273c3aa4330fedc148d130e8 | 24fca8af894ee08a3ef9ee483d207d8d330701ce | refs/heads/main | 2023-08-28T08:46:07.332030 | 2021-11-14T14:32:37 | 2021-11-14T14:32:37 | 427,312,164 | 0 | 0 | null | 2021-11-12T10:06:15 | 2021-11-12T10:06:14 | null | UTF-8 | Python | false | false | 2,915 | py | import numpy as np
import matplotlib.pyplot as plt
def plot(fosEmsRate, defEmsRate):
iniFossil = 6.88
iniDef = 1.3
goalConc = 938
upperConc = 953
lowerConc = 923
iniFromFossil = 5.9168
iniToFossil = 8.3936
iniFromDefor = 0.637
iniToDef = 2.015
iniConc = 769
... | [
"b19065@students.iitmandi.ac.in"
] | b19065@students.iitmandi.ac.in |
3b425803ed4b6c2b1925c1f13d5ef31cf452bcc1 | 1998571941ae4c0d228abc8fae56f6aa449740f2 | /INFOQ2/Projet final/intersection.py | bd569ab429ad45f4d355753d7f44c32c58cbd57e | [] | no_license | AndruOn/UCL-BAC1 | 4ca148c2154bb948eb0753391afe2581d7df2873 | d15f75d1c85d823814e4f5e47c0c671c83e15a1f | refs/heads/master | 2020-05-17T03:17:16.207133 | 2019-12-22T13:12:02 | 2019-12-22T13:12:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,914 | py |
def intersection(list):
def distance(v):
d=int((5000-v)**(1/2)) #une estimation de la distance (unités ??) du stylo à la bobine en fonction de la valeur renvoyée par l'arduino (entre 0 et 1024). On doit améliorer cette approximation !
return d
v1,v2,v3=0 #les valeurs renvoyés par l'ardui... | [
"noreply@github.com"
] | noreply@github.com |
2b7c70536116dcb39ab4b0364a36a7e6a1988010 | 1f5fd7307fc1147540d2eabcc0991fc20b2bbd65 | /Web/first/Django/project_test/project_test/urls.py | 6051d309b2f037122442fe299c9f8f373b694fe0 | [] | no_license | ShemyakinAV/3mpp1901_ShemyakinAV | 88848b80589767f04988ba26f65d9d4645a4c386 | 9b6431747d179df272563335f7a34875b4aac6ee | refs/heads/master | 2021-07-18T07:11:35.651756 | 2021-01-05T15:54:52 | 2021-01-05T15:54:52 | 229,125,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | """project_test URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/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-... | [
"antonshemyakin97@gmail.com"
] | antonshemyakin97@gmail.com |
273d052181259e811b893a7ea4d7ed8bdfabe902 | b9a86a79cd0e3fc7a287529f26755a6be4481dff | /tests/conftest.py | e2bb472b3746bf0d712f4b913c075acdd7d41290 | [] | no_license | crossanpdx/python-automation-example | 4de0b40103565f1a9aec5baeb44f942f07f0798b | cb8407d95b9f416753693636a988f66cb79a73b1 | refs/heads/main | 2023-08-01T00:21:32.046270 | 2021-09-21T15:11:11 | 2021-09-21T15:11:11 | 400,588,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,532 | py | import json
import allure
import pytest
from allure_commons.types import AttachmentType
from utils.driver_factory import DriverFactory
CONFIG_PATH = "../config.json"
DEFAULT_WAIT_TIME = 10
SUPPORTED_BROWSERS = ["chrome", "firefox", "edge"]
DEFAULT_WEBSITE = "http://www.google.com/"
@pytest.fixture(scope='session')
d... | [
"ryan.crossan@LT-40290.local"
] | ryan.crossan@LT-40290.local |
9049ee8a1909d30cd4468fc0ead2005d2df02c36 | df708c2eda9539f6f066fb6f448417ab9a392cb5 | /LinearRegression/Scikit_Linear_Validation.py | f658e3321035c632d1011faee637e861675e8514 | [] | no_license | TechMaster/LearnAI | bfc8c63e49ba0d70147cd0ff4be41b661e8f1cd0 | 490990a4647bef8f2b24a39b68a870c63c8e9a68 | refs/heads/master | 2020-07-05T20:13:45.973070 | 2019-09-18T14:28:49 | 2019-09-18T14:28:49 | 202,760,795 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LinearRegression
data = pd.read_csv('data_linear.csv').values
X = data[:, 0].reshape(-1, 1)
Y = data[:, 1].reshape(-1, 1)
test_size = 0.33
seed = 7
X_train, X_test, Y_train, Y_test = train_test_split(X, Y, test... | [
"cuong@techmaster.vn"
] | cuong@techmaster.vn |
9f719d70ff61b820cde1a602f393ba9c91b6514b | d83f50302702d6bf46c266b8117514c6d2e5d863 | /number-of-boomerangs.py | 7add2f05767711dbf020f6215cc8f92ec9b5a59c | [] | no_license | sfdye/leetcode | 19764a6bdb82de114a2c82986864b1b2210c6d90 | afc686acdda4168f4384e13fb730e17f4bdcd553 | refs/heads/master | 2020-03-20T07:58:52.128062 | 2019-05-05T08:10:41 | 2019-05-05T08:10:41 | 137,295,892 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | class Solution(object):
def numberOfBoomerangs(self, points):
"""
:type points: List[List[int]]
:rtype: int
"""
ans = 0
for p in points:
d = collections.defaultdict(int)
for q in points:
d[(p[0] - q[0]) ** 2 + (p[1] - q[1]) ** ... | [
"tsfdye@gmail.com"
] | tsfdye@gmail.com |
2e47d06edd2437531dd3a914f78047817501ac02 | 643f3af7cbc39b663e2d74b8c9d4c8920569e7cf | /postgres/app/languages.py | 11a73c510e42368272b2dd8a684d83cd4c278aea | [
"MIT"
] | permissive | r2k0/py-apps | a4df131ad7a96b87a4cbca2e4dd55a336c6bfa93 | 0df12629dd689b5d3e7f987ce35ee37a78f4a924 | refs/heads/master | 2020-03-28T18:49:38.605365 | 2014-10-22T05:38:19 | 2014-10-22T05:38:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 944 | py | import psycopg2
import sys
import psycopg2.extras
langs = (
(1,'Javascript',294832),
(2,'Java',176000),
(3,'CSS',151000),
(4,'Python',142272),
(5,'Ruby',132397)
)
con = None
try:
con = psycopg2.connect("dbname='testdb' user='vagrant'")
cur = con.cursor()
cur.execute("DROP TABLE IF EXISTS Languages")
cur... | [
"r2k0@outlook.com"
] | r2k0@outlook.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.