blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 41 | license_type stringclasses 2
values | repo_name stringlengths 7 96 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 58
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 12.7k 662M ⌀ | star_events_count int64 0 35.5k | fork_events_count int64 0 20.6k | gha_license_id stringclasses 11
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 43
values | src_encoding stringclasses 9
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 5.88M | extension stringclasses 30
values | content stringlengths 7 5.88M | authors listlengths 1 1 | author stringlengths 0 73 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
79a91706bf96b9abcd40c27b0c9b989e0f98d43c | a226186de42abb44e426e54b2dd03ccfc882fd75 | /courses/settings.py | d32737c62dc4fd969901f042bbe18662f1dca84b | [] | no_license | KristoD/Courses-Python2-Django | 87ad0b54aae9007407929033545a9d8fe0b3e380 | 371bafcc1239e21c4c839b8158b3339b43e16937 | refs/heads/master | 2020-03-26T00:40:56.025046 | 2018-08-10T21:03:44 | 2018-08-10T21:03:44 | 144,332,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,116 | py | """
Django settings for courses project.
Generated by 'django-admin startproject' using Django 1.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import os
... | [
"chrisdedeian@gmail.com"
] | chrisdedeian@gmail.com |
adfbeffea9979a517b0969fbc17f9bae8accd85f | 3a0da75df781481b054ab885a251361b4559aea2 | /superlists/lists/tests/test_views.py | 5dddcf23566e246c908c0e5de6b485b245fcef5f | [] | no_license | vickiev305/mhcjterm2016 | 03bc92bd1404e60b69a80b12cf7b4ee09ac3bc7f | 6dfdb5098a9883d947f78e8522821882c395ffac | refs/heads/master | 2021-01-10T02:10:27.405891 | 2016-01-15T16:50:46 | 2016-01-15T16:50:46 | 49,726,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,127 | py | from django.core.urlresolvers import resolve
from django.utils.html import escape
from django.template.loader import render_to_string
from django.test import TestCase
from lists.views import home_page
from django.http import HttpRequest
from lists.models import Item, List
class HomePageTest(TestCase):
def test_ro... | [
"victo22v@mtholyoke.edu"
] | victo22v@mtholyoke.edu |
2e6db1095be14073089b39307e04d983490684cd | 5e32c5c4db30edfbbd8016325dd0d48ddf672d4f | /integrationtest/vm/hybrid/test_stub.py | f611a2d19a6a0efa47dc907892e8d11930e7e680 | [
"Apache-2.0"
] | permissive | welldoer/zstack-woodpecker | 7519e0cffe98cba84b7774c8e8b296c2d1318615 | e0cea9672c764858fc124fa0b02111fc31b2af0f | refs/heads/master | 2020-03-28T22:11:50.431319 | 2018-09-14T10:08:27 | 2018-09-14T10:08:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51,442 | py | '''
Create an unified test_stub to share test operations
@author: Youyk
'''
import os
import sys
import time
import random
import commands
import threading
import urllib2
import functools
import zstacklib.utils.ssh as ssh
import zstackwoodpecker.test_lib as test_lib
import zstackwoodpecker.test_util as test_util
imp... | [
"legion.xiong@gmail.com"
] | legion.xiong@gmail.com |
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 |
85b2dfa0de69e2abae6ac8a76301db1e6d1b3290 | 8d97668e0666f0b7e7c82b52bae13ece76435612 | /examples/python/bufr_ecc-448.py | a864aeb6e297b4686e900660b7ed80a888dd6d04 | [
"Apache-2.0"
] | permissive | jdkloe/eccodes | 83e5e6df5100d53a4274c706f5cb6fb07ca23743 | 66700b02d8a74722deafa085dab76e99e9b44fca | refs/heads/master | 2021-12-15T01:35:24.387814 | 2021-12-01T15:55:14 | 2021-12-01T15:55:14 | 243,985,448 | 0 | 0 | NOASSERTION | 2020-02-29T14:42:08 | 2020-02-29T14:42:07 | null | UTF-8 | Python | false | false | 1,838 | py | # (C) Copyright 2005- ECMWF.
#
# This software is licensed under the terms of the Apache Licence Version 2.0
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
#
# In applying this licence, ECMWF does not waive the privileges and immunities
# granted to it by virtue of its status as an intergovernme... | [
"masn@ecmwf.int"
] | masn@ecmwf.int |
e42b09c7276cceed3af5975712adab3f66799982 | 6893b439bdc5243058fecf5769bd587fd9f56ec9 | /anchorhub/validation/validate_overwrite.py | 4140b4dee9eb3fb3229ea9d94af2b09806dec4fb | [
"Apache-2.0"
] | permissive | samjabrahams/anchorhub | 15f73a5bf3425c2558647d5a5c6eac95ef93c0ef | 5ade359b08297d4003a5f477389c01de9e634b54 | refs/heads/master | 2021-01-10T04:02:42.770945 | 2016-03-04T19:45:52 | 2016-11-18T19:17:50 | 50,009,409 | 9 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,447 | py | """
Functions for validating the overwrite argument in combination with other
arguments
"""
import os.path as path
from anchorhub.exceptions.validationexception import ValidationException
from anchorhub.util.hasattrs import hasattrs
def validate(opts):
"""
Client facing overwrite validation. Checks to see i... | [
"sjabraha@gmail.com"
] | sjabraha@gmail.com |
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 |
8af1f2b9b43cf26c7d092f16479f3b479eed5d23 | 90f52d0348aa0f82dc1f9013faeb7041c8f04cf8 | /wxPython3.0 Docs and Demos/wxPython/samples/wxPIA_book/Chapter-10/popupmenu.py | 5226849ca7224afab2ef1c1e69a3aae5158a74d5 | [] | no_license | resource-jason-org/python-wxPythonTool | 93a25ad93c768ca8b69ba783543cddf7deaf396b | fab6ec3155e6c1ae08ea30a23310006a32d08c36 | refs/heads/master | 2021-06-15T10:58:35.924543 | 2017-04-14T03:39:27 | 2017-04-14T03:39:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,388 | py | import wx
class MyFrame(wx.Frame):
def __init__(self):
wx.Frame.__init__(self, None, -1,
"Popup Menu Example")
self.panel = p = wx.Panel(self)
menu = wx.Menu()
exit = menu.Append(-1, "Exit")
self.Bind(wx.EVT_MENU, self.OnExit, exit)
... | [
"869999860@qq.com"
] | 869999860@qq.com |
61bd905871c3846fa56e4ddc6b4a859a88c8a0fc | f9081d54071a499736ccc00fe11c58ab2ebe9f89 | /subagents.py | ede9ffee62f605615ec02742792d8a1a9efd0461 | [] | no_license | moridinamael/subagents | 6970f332840620a49cf3b85ce5f1ec63c2fabd61 | 57c654a092ba1e5a72212406b6f4a384f3d8b02c | refs/heads/master | 2020-05-21T12:49:26.518696 | 2019-07-09T03:49:30 | 2019-07-09T03:49:30 | 186,050,878 | 5 | 1 | null | 2019-07-09T03:49:31 | 2019-05-10T20:32:42 | Python | UTF-8 | Python | false | false | 22,894 | py | # -*- coding: utf-8 -*-
"""
Created on Fri May 10 14:09:30 2019
@author: Matt
"""
# -*- coding: utf-8 -*-
"""
Created on Thu Apr 04 09:26:27 2019
@author: mfreeman
"""
import random
import math
import matplotlib.pyplot as plt
import copy
class position():
def __init__(self,x,y):
self._x = x
sel... | [
"tamuic@gmail.com"
] | tamuic@gmail.com |
55cadd97907633b2c24c61b2e9a54c14c2564999 | bcbddf91c1a59438e5508f9d92cb213a39df3448 | /imagegen/nodes/noise_node.py | d3561f86d50ba9e26840adb7fe51def634148d82 | [] | no_license | nfactorial/imagegen | 1323b9a1112a79c39a153df428345155f7feb048 | 7420f8cdcea12fddb92bb8dadfc8e0bb6bc0f165 | refs/heads/master | 2021-01-10T07:09:12.470665 | 2016-03-02T17:25:48 | 2016-03-02T17:25:48 | 52,427,109 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,730 | py | """
Copyright 2016 nfactorial
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 agreed to in writing, software
dis... | [
"nfactorial@btopenworld.com"
] | nfactorial@btopenworld.com |
fbe0979bb9bfd1111ac0cd12f14a2aecde30e551 | 892266713e500efa5ac04e1b8de812200410c956 | /devset.py | cd8b6e2d344c504aedbc001fde9be6ebc8fc85de | [
"BSD-2-Clause"
] | permissive | martinphellwig/django-g11n | 972eb95128637ec0b21efabad6b40ba02c30356c | 94eb9da7d7027061873cd44356fdf3378cdb3820 | refs/heads/master | 2020-08-29T12:24:04.687019 | 2016-10-10T15:54:32 | 2016-10-10T15:54:32 | 218,030,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,315 | py | #! /usr/bin/env python
"""
Developer Reset.
"""
import os
APP = 'django_g11n'
DIR = os.path.dirname(os.path.abspath(__file__))
def get_last_migration_file():
"Fetch the latest migration file."
_ = os.path.join(DIR, APP, 'migrations')
_ = [os.path.join(_, item) for item in os.listdir(_) if not item.starts... | [
"martin@localhost"
] | martin@localhost |
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 |
1077e3a359f70ea9f79c9681b0bc59bf455afbb9 | 616f5d438c7662d2fedc5b55ec616e702a57cf1a | /downtime.py | 33c4fec10f960e751be99c4b6253e2a17ac818d0 | [
"MIT"
] | permissive | mozilla-it/security-patching | d07015c77bc768c0ae67e224ef23783dc5f51801 | 23cbbf39c5b5ccc47c6a818f8137abaeb55d49f1 | refs/heads/master | 2021-07-03T16:42:12.875642 | 2020-08-04T19:41:46 | 2020-08-04T19:41:46 | 95,240,563 | 0 | 1 | MIT | 2020-08-04T19:41:48 | 2017-06-23T17:11:59 | Python | UTF-8 | Python | false | false | 3,650 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
'''
downtimes.py
'''
import os
import re
import sys
import socket, ssl
sys.dont_write_bytecode = True
from argparse import ArgumentParser, RawDescriptionHelpFormatter
from ConfigParser import SafeConfigParser
class IRC(object):
def __init__(self, network, port, nick... | [
"scott.a.idler@gmail.com"
] | scott.a.idler@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 |
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 |
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 |
956a8c2e6f77f02477e08eab6172881f93d5b37c | 5ae3fb122408210fdd99aa02f3fb187059d8e4bf | /django_realtime/wsgi.py | 64a9d66a0a48710b2dcf33ec2a4708641545ec5c | [] | no_license | Tee-py/django_realtime | 1e129a738567eced96ac92b95e128b6f0bb9426b | 65dd68aa1215a2dcf08430bfa54ac26e4f71d528 | refs/heads/master | 2023-01-11T10:37:46.689473 | 2020-11-05T03:26:06 | 2020-11-05T03:26:06 | 310,178,740 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | """
WSGI config for django_realtime project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJAN... | [
"emmanueloluwatobi2000@gmail.com"
] | emmanueloluwatobi2000@gmail.com |
e3e7ebee71f69fdbdd0c48659e3990cb42319055 | 513913bb77fc7f8f71e67de53d99bc8b33deb04e | /myDict.py | 4c71faa73b213c7bd4cbe1c7b0dd843304bd3dfe | [] | no_license | jmhughes018/camp-game | 3314e883f99a59269ea57b4fe9180f237f874104 | d72bc021ff89474fb2ee209f4ab37772d927126c | refs/heads/master | 2020-04-10T12:20:27.055457 | 2016-09-15T17:24:23 | 2016-09-15T17:24:23 | 68,007,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,782 | py | myPhrases = ['CACTUS PACT', 'SIMPLE DIMPLE', 'RIP VAN WRINKLE', 'BLUE FISH RED FISH', 'WILDLY MILD', 'TURBO BLURB', 'PORK AND STORK', 'ELMOS ELBOW', 'GIMPY BLIMP', 'BANG BANG SHRIMP', 'MOCHA CHA CHA', 'ORANGE MOCHA FRAP', 'BUMMER SUMMER', 'WINTER LINT', 'FALL WATERFALL', 'DING DONG STAY', 'SPRING DYNASTY', 'EPSOM SALT'... | [
"joshhughes@Flint-Michigan.local"
] | joshhughes@Flint-Michigan.local |
0709557c1f679fa1a41d7157bfe2c991f6adadfc | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/NTWS-AP-IF-MIB.py | d9da09616db8ef8ddc0d2db88e651ab9fd3c63d5 | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 5,408 | py | #
# PySNMP MIB module NTWS-AP-IF-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/NTWS-AP-IF-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 20:16:00 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.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 |
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 |
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 |
7db90b76ad8b3755f314e61da0f7b4ddf29bd341 | ce196aba0adde47ea2767eae1d7983a1ef548bb8 | /lambda单行表达式_0.py | dd751c9cc43d2361811c60ac8ee87e8da1b77fb7 | [] | no_license | xiang-daode/Python3_codes | 5d2639ffd5d65065b98d029e79b8f3608a37cf0b | 06c64f85ce2c299aef7f9311e9473e0203a05b09 | refs/heads/main | 2023-08-30T14:59:55.123128 | 2021-11-03T05:12:24 | 2021-11-03T05:12:24 | 333,632,892 | 0 | 2 | null | null | null | null | GB18030 | Python | false | false | 500 | py | #!/usr/bin/python
# -*- coding: cp936 -*-
b= [x for x in range(2,100) if not[y for y in range(2,int(x**0.5)) if not x%y]]
print("100以内的全部质数是:",b)
c= [y for y in range(2,36)]
print('2--35全部输出',c)
b= [x for x in range(2,24) if True]
print('2--23全部输出',b)
d= [x for x in range(2,24) if False]
print('无返回: ',... | [
"noreply@github.com"
] | noreply@github.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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
f5a2ef71015d9c0200dc92159cec1251c7167ddd | b611b928dc02348a83fadb70d363d273cfb1f36a | /latent_bot/latent_dec.py | d4e83341dcc8d7f60caf49c6a1f9cf3141ebf403 | [] | no_license | m0n0ph1/malware_analysis | 5e1d8e6ae88a92c0806305ccfcebf3fc753e3240 | 817d2f6e8575f3308326062fa3af28c4b06c77bd | refs/heads/master | 2021-01-04T11:37:54.525465 | 2019-07-23T18:02:00 | 2019-07-23T18:02:00 | 240,529,928 | 2 | 0 | null | 2020-02-14T14:44:53 | 2020-02-14T14:44:53 | null | UTF-8 | Python | false | false | 3,178 | py | """latent_dec.py: Script for IDA Pro decoding Latent Bot's strings"""
__author__ = "hasherezade"
import idautils
lookup_table = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x3E\x00\x00\x00\... | [
"hasherezade@op.pl"
] | hasherezade@op.pl |
6eaca6a201451c63a49e92fe9a8c3d1051b56082 | 9727810fb355e3d047bc02f006248eee45be5ebe | /experiments/test2.py | 74929f8bf2704e253433658905cc5a4e70211128 | [] | no_license | scipioni/cherry | e00d4433fdf173ed6259d9e141050b0c7f2132d3 | 14432503533723626a79063b5663b48b1b5a4ae5 | refs/heads/master | 2021-12-02T15:30:09.424412 | 2017-06-29T13:03:34 | 2017-06-29T13:03:34 | 90,058,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,237 | py | """
white balance: 2500 (no auto)
"""
import numpy as np
import cv2
import time
from picamera.array import PiRGBArray
from picamera import PiCamera
import argparse
import collections
def draw_text(img, text, y=75, x=10, color=(255,255,0)):
cv2.putText(img, str(text), (x, y), cv2.FONT_HERSHEY_SIMPLEX, 0.8, c... | [
"scipio.it@gmail.com"
] | scipio.it@gmail.com |
014e8f1ddcd99487d99ffa878a6e6cfa7d50ed6c | d55bda4c4ba4e09951ffae40584f2187da3c6f67 | /h/admin/views/groups.py | 0caffe6dcf887350fc17bfffc50c9f1ecc8b64bc | [
"BSD-3-Clause",
"BSD-2-Clause-Views",
"BSD-2-Clause",
"MIT"
] | permissive | ficolo/h | 3d12f78fe95843b2a8f4fc37231363aa7c2868d9 | 31ac733d37e77c190f359c7ef5d59ebc9992e531 | refs/heads/master | 2021-01-15T21:08:17.554764 | 2016-06-09T15:42:01 | 2016-06-09T15:42:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,234 | py | # -*- coding: utf-8 -*-
from pyramid.view import view_config
from h import models
from h import paginator
@view_config(route_name='admin_groups',
request_method='GET',
renderer='h:templates/admin/groups.html.jinja2',
permission='admin_groups')
@paginator.paginate
def groups_in... | [
"nick@whiteink.com"
] | nick@whiteink.com |
4ac8a081e46391eeea55282689febe7c06212c68 | 5d9dedd551118449844767da7aa6493dd5efe542 | /selenium_trio/extras/javascript/js_scripts.py | 204825912f77ff029dd97e3791430d64f5e0968b | [
"MIT"
] | permissive | birkin/selenium-trio | 9e3c542ed4fd72c0804841ed9cc40ca2232f7e5b | 3295ba313837d7b1993acf042bad1c7cadb1bfdf | refs/heads/main | 2023-03-23T05:24:06.021387 | 2021-01-25T22:57:46 | 2021-01-25T22:57:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,723 | py |
PAGE_HEIGHT_JS = """
var body = document.body;
var html = document.documentElement;
var height = Math.max(body.scrollHeight, body.offsetHeight, html.clientHeight, html.scrollHeight, html.offsetHeight);
return height;
"""
CLEAR_CANVAS_JS = """
var canvas = document.getElementById("myCanvas");
... | [
"digiology@gmail.com"
] | digiology@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 |
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 |
446d33ef9eb76038d095c98939f9b31af266e4c5 | 26d76543052c86359ab25e78eac9ddd950220670 | /session1/addition.py | 204b1cf7d21576dede795f4fc2790afab276f192 | [] | no_license | HarshMaurya-coder/pythonbasics | ee67d1c2c61c01f188bba2a25d052385deb142a6 | 916af7678b9068ec1d641b9b3bd1bcd1e89c9611 | refs/heads/main | 2023-02-19T17:16:46.109718 | 2021-01-12T16:04:04 | 2021-01-12T16:04:04 | 328,421,112 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | num1 = int(input("Enter first number: "))
num2 = int(input("Enter second number: "))
print("press 1 for addition")
operator = input()
if operator == "1":
print(num1 + num2)
| [
"ramkumarpagal1@gmail.com"
] | ramkumarpagal1@gmail.com |
c8551e2daf0a9f2f18a67975e6278b4397c7c41d | ef6629579799f113825076462a833d58044696f2 | /log.py | e70068ec45088aaa12d0270443bda684cf10815a | [] | no_license | shivamgupta97/ML-ALGO- | b1eb886ba6bf8b64b70626e83828cf46cfeeada9 | 2ce806fbdae2b55b6d0e0fa91b68ff29061a74b7 | refs/heads/master | 2020-03-22T22:14:05.005517 | 2018-07-12T16:55:55 | 2018-07-12T16:55:55 | 140,741,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,528 | py | import numpy as np
#import panda as pd
from sklearn import datasets
class log:
def __init__(self, lr=0.01 ,it=10000,fit_int=True, verbose=False):
self.lr=lr
self.it=it
self.fit_int=fit_int
def add_int(self,d):
x=np.asarray(d)
inter=np.ones((x.shape[0],1))
print(np.concatenate((inter, x), ... | [
"noreply@github.com"
] | noreply@github.com |
b9aeff68654c2ed50000a30879c2e21c640d81e5 | 0206ac23a29673ee52c367b103dfe59e7733cdc1 | /src/nemo/compare_2nemo_simulations.py | 041bbfd0229b247c34b4796abf04bc639b9483ae | [] | no_license | guziy/RPN | 2304a93f9ced626ae5fc8abfcc079e33159ae56a | 71b94f4c73d4100345d29a6fbfa9fa108d8027b5 | refs/heads/master | 2021-11-27T07:18:22.705921 | 2021-11-27T00:54:03 | 2021-11-27T00:54:03 | 2,078,454 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,484 | py | from collections import namedtuple
from pathlib import Path
from matplotlib import cm
from matplotlib.gridspec import GridSpec
from nemo.nemo_yearly_files_manager import NemoYearlyFilesManager
__author__ = 'huziy'
# Compare 2 Nemo outputs
import matplotlib.pyplot as plt
import numpy as np
def main_compare_max_year... | [
"guziy.sasha@gmail.com"
] | guziy.sasha@gmail.com |
18b07d81056da8370a9d8501f88b08674c67ba74 | ac28fd7497b2ce1fdd95441aa54706baf8a2123c | /GoogleAppEngine/ascii_chan/main.py | 5e619775f9776d39ae4b5c1f44a4dd9c015445ef | [] | no_license | rollersitch/All_my_code | 6b6defbb5620372f6fdefc094acd8d73ff2a9def | 964ba36b10d6b5b79b57e42a335643347b229106 | refs/heads/master | 2021-04-28T23:17:52.550381 | 2017-09-13T15:30:30 | 2017-09-13T15:30:30 | 77,738,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,222 | py | import webapp2
import jinja2
import os
import urllib2
import sys
import logging
from google.appengine.ext import db
from google.appengine.api import memcache
from xml.dom import minidom
template_dir = os.path.join(os.path.dirname(__file__), 'templates')
jinja_env = jinja2.Environment(loader=jinja2.FileSystemLoader(te... | [
"dany88vai@gmail.com"
] | dany88vai@gmail.com |
0693ea164d0f55d55cd10b0b62feb9852c3317d9 | 548fe32bf338f9ef270add39cd849f31c26de107 | /2016/day1.py | 77c9fdefaf54184e7139ac7debc1d9e91a523b4a | [] | no_license | JamesWalter/AdventOfCode | 764799fe1cb3c6657945140c597d3b01247a91d3 | 3e203d9c95721b93c5e2308c9c1703c9743cf110 | refs/heads/master | 2021-09-03T17:15:55.765822 | 2018-01-10T17:06:26 | 2018-01-10T17:06:26 | 112,657,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,108 | py | """Advent of Code 2016 Day 1 No Time for a Taxicab"""
# Santa's sleigh uses a very high-precision clock to guide its movements,
# and the clock's oscillator is regulated by stars. Unfortunately, the stars
# have been stolen... by the Easter Bunny. To save Christmas, Santa needs
# you to retrieve all fifty stars by Dece... | [
"james.walter@grainger.com"
] | james.walter@grainger.com |
92e85c7b6e66817ecaf916d920cc1d86019397c2 | fe9573bad2f6452ad3e2e64539361b8bc92c1030 | /scapy_code/sniif_packet.py | 97cbf240c0083c9937735a47714341cd1d7da111 | [] | no_license | OceanicSix/Python_program | e74c593e2e360ae22a52371af6514fcad0e8f41f | 2716646ce02db00306b475bad97105b260b6cd75 | refs/heads/master | 2022-01-25T16:59:31.212507 | 2022-01-09T02:01:58 | 2022-01-09T02:01:58 | 149,686,276 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | from scapy.all import *
def print_pkt(pkt):
print("---------------this is a new packet----------------------")
new_pkt = pkt[IP]
if new_pkt[ICMP]:
new_pkt.show()
sniff(filter= "icmp" , prn=print_pkt)
| [
"byan0007@student.monash.edu"
] | byan0007@student.monash.edu |
ac829ac73598a0d0da9c3829ae92352cec0d73c6 | 1fbf278cca477451d6b3bae4ecba31b018ced42e | /tlssecondopinion/wsgi.py | d580ee045afb8b460834bd4044b5cc19e4dfa13f | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | MiWCryptAnalytics/tlssecondopinion | 2451049a3c553aa1fa4ff5ef6357cdcb9f3a8259 | f1eebf753cc898ba546bf1371f3ce1ea848d17d6 | refs/heads/master | 2016-09-06T07:39:45.921966 | 2015-08-31T14:23:39 | 2015-08-31T14:23:39 | 41,423,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | """
WSGI config for tlssecondopinion 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.8/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJA... | [
"MiWCryptAnalytics@gmail.com"
] | MiWCryptAnalytics@gmail.com |
9e22f5283f06022fe6da4ddeb1f1e16516a673c8 | de6bc17d71706ff030926c273f7f3435082ede9b | /tutorial/snippets/models.py | 114d28c48670ff91859764281348acf974bd6ffa | [
"MIT"
] | permissive | PabloSuarez/API_django | c1054a4103b6a0bc460bb92a484db3d2bf5f9bcb | 522cc5b052c13c38fc7ef95353b8e3640126feaa | refs/heads/master | 2021-01-15T14:43:09.911839 | 2015-09-23T21:17:59 | 2015-09-23T21:17:59 | 42,883,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,601 | py | from django.db import models
from pygments.lexers import get_all_lexers
from pygments.styles import get_all_styles
#add to save method
from pygments.lexers import get_lexer_by_name
from pygments.formatters.html import HtmlFormatter
from pygments import highlight
LEXERS = [item for item in get_all_lexers() if item[1]]
... | [
"hostsuarezpablo@gmail.com"
] | hostsuarezpablo@gmail.com |
87db78fc9bb040bc77eeeb14ffba6ee78b8c43fa | 42394bd8cd674dcd0822ae288ddb4f4e749a6ed6 | /fluent_blogs/sitemaps.py | 97da332b7a014536107d1f7fe042d295b321ac83 | [
"Apache-2.0"
] | permissive | mmggbj/django-fluent-blogs | 4bca6e7effeca8b4cee3fdf4f8bb4eb4d192dfbe | 7fc3220d6609fe0615ad6ab44044c671d17d06a3 | refs/heads/master | 2021-05-08T13:02:51.896360 | 2018-01-31T21:54:27 | 2018-01-31T21:54:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,647 | py | from django.conf import settings
from django.contrib.auth import get_user_model
from django.contrib.contenttypes.models import ContentType
from django.contrib.sitemaps import Sitemap
from fluent_blogs.models import get_entry_model, get_category_model
from fluent_blogs.urlresolvers import blog_reverse
from parler.models... | [
"vdboor@edoburu.nl"
] | vdboor@edoburu.nl |
c693954cad97f78d72668a79087d4930ccea1091 | a8b37bd399dd0bad27d3abd386ace85a6b70ef28 | /airbyte-integrations/connectors/source-opsgenie/source_opsgenie/source.py | 743694d15b54b6ca441b6e91b3a528af43f6b85c | [
"MIT",
"LicenseRef-scancode-free-unknown",
"Elastic-2.0"
] | permissive | thomas-vl/airbyte | 5da2ba9d189ba0b202feb952cadfb550c5050871 | 258a8eb683634a9f9b7821c9a92d1b70c5389a10 | refs/heads/master | 2023-09-01T17:49:23.761569 | 2023-08-25T13:13:11 | 2023-08-25T13:13:11 | 327,604,451 | 1 | 0 | MIT | 2021-01-07T12:24:20 | 2021-01-07T12:24:19 | null | UTF-8 | Python | false | false | 1,870 | py | #
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
#
from typing import Any, List, Mapping, Tuple
import requests
from airbyte_cdk.sources import AbstractSource
from airbyte_cdk.sources.streams import Stream
from airbyte_cdk.sources.streams.http.requests_native_auth import TokenAuthenticator
from .streams i... | [
"noreply@github.com"
] | noreply@github.com |
83a912f2fd9bb92402ffe65df2ebaf7a667edd7e | e590449a05b20712d777fc5f0fa52097678c089b | /python-client/test/test_stash_appscode_com_v1alpha1_api.py | 58eaf340d2c3e2c403e782c27e9854d90c2f4271 | [
"Apache-2.0"
] | permissive | Hardeep18/kube-openapi-generator | 2563d72d9f95196f8ef795896c08e8e21cd1a08e | 6607d1e208965e3a09a0ee6d1f2de7e462939150 | refs/heads/master | 2020-04-11T03:30:18.786896 | 2018-05-05T20:57:51 | 2018-05-05T20:57:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,173 | py | # coding: utf-8
"""
stash-server
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: v0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unit... | [
"tamal@appscode.com"
] | tamal@appscode.com |
c23fda02795ce8062a1ea9feb8f8170ac4d0bc95 | 31dff1fae6d31d84a442c8af5dc75fa7f98d3570 | /main.py | 1d4ed854e5cb6b7f060fca5b4785c734180ab50a | [] | no_license | jblakeh1/circuit-playground-lamp | e1e7fdd7227d18d44d273cc93c7d0ed93b1435a5 | 71949de0f7569596b4c11ec69e8ba74a1388bc4d | refs/heads/master | 2020-06-22T06:14:33.443595 | 2019-07-18T20:50:30 | 2019-07-18T20:50:30 | 197,654,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,282 | py | # digital rothko
# January 15, 2019
# J. Blake Harris
# Display two colors on a string of neopixels based
# on sound and light sensors
# on the Adafruit Playground Express
from simpleio import map_range
from analogio import AnalogIn
from digitalio import DigitalInOut, Direction, Pull
import array
import au... | [
"noreply@github.com"
] | noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.