blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ef98c254494f521be7c9abced196323637b851d9 | ea0829e544b87fe6b58ef84b96ba90e036eda438 | /Quicksort.py | 077cc0f3268c27a0066e60b7b7584b1526186ed3 | [] | no_license | Najones19746/Quicksort | 71bdf0fd0b770c6c1fef469c81a2dbbd3b19599c | 0de906218d3ae1b0078b1abd2e4ea802b409a292 | refs/heads/master | 2020-04-24T16:02:23.828684 | 2015-05-15T04:57:56 | 2015-05-15T04:57:56 | 35,654,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | __author__ = 'Nick Jones'
def quick(x):
less = []
pivotList = []
more = []
if len(x) <= 1:
return x
else:
pivot = x[0]
for number in x:
number = int(number)
if number < pivot:
less.append(number)
elif number > pivot:
... | [
"najones19746@pluto.dsu.edu"
] | najones19746@pluto.dsu.edu |
a08c74244ee8e9ac57ff5813274dc481cce384cf | 8cdb186042f7169053c663a197e5dc6540658b29 | /forms.py | 20e2ae1645465d44a560df4e6e9da8e0d0cd2769 | [] | no_license | jmc1284/flask-app | 5b95a55ace458b9c6b65929f852d29ae26f250cd | 5507a810ee6e64084d548bff4b8902d80f54656d | refs/heads/master | 2023-05-10T18:50:07.871494 | 2020-04-04T18:53:41 | 2020-04-04T18:53:41 | 252,254,726 | 0 | 0 | null | 2023-05-01T21:23:09 | 2020-04-01T18:24:37 | HTML | UTF-8 | Python | false | false | 1,199 | py | from flask_wtf import FlaskForm
from wtforms import IntegerField, SubmitField
from wtforms.validators import InputRequired, NumberRange
class BMIForm(FlaskForm):
height_ft = IntegerField('Height Feet', validators=[InputRequired(message='Please enter a valid integer'), NumberRange(min=1)])
height_in = IntegerF... | [
"jmc1284@msstate.edu"
] | jmc1284@msstate.edu |
2f377b00c1bfc78229f470886bc75aa3f8c9e3c5 | 6c13c12bc531992716aa4e291a9ddef4dcb65131 | /motsfinder/metric/discrete/metric.py | 2cfc05ad2505404e8638e29462a5df1d07c601d1 | [
"MIT"
] | permissive | daniel-dpk/distorted-motsfinder-public | 9846ed0eb7977b3d0c7ab8649b79eb64c9611e14 | 8c2eec174c755c55b26b568243e58c2956a35257 | refs/heads/master | 2021-06-11T07:13:21.288873 | 2021-04-14T14:28:53 | 2021-04-14T14:28:53 | 159,724,600 | 4 | 1 | MIT | 2021-04-01T08:41:18 | 2018-11-29T20:40:00 | Python | UTF-8 | Python | false | false | 13,522 | py | r"""@package motsfinder.metric.discrete.metric
Base class for discrete metrics.
The DiscreteMetric class is an abstract class implementing most of the
functionality required for a ..base._ThreeMetric. The missing part is the
definition of actual numerical data. There are currently two implementations
of this abstract... | [
"daniel.dpk@gmail.com"
] | daniel.dpk@gmail.com |
479f0b1077982bb0d93dca0a6bf8804036a0938c | f35d8c6617822bbde2769b268e9b7b0a533c0c53 | /main.py | f2540a4d999560074280fe56436804c0a29f5d22 | [] | no_license | DylanLaw03/CDDBot | decac51a936e921f9e95181bfdf5108cffd7f45f | f9ac8bf67c9374e65cbf5cd47783f814a28e44f5 | refs/heads/master | 2023-05-30T16:19:20.465471 | 2021-06-13T03:54:30 | 2021-06-13T03:54:30 | 375,544,789 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,629 | py | '''
This program will scrape a page from the website cheap digital download, to find potentially profiatble games.
Started on 6/9/21
'''
#import dependencies
from selenium import webdriver
import os
from datetime import date
row_xpath = '//*[@id="offer_offer"]'
HOME_STORE = 'G2A'
WORKING_DIRECTORY = 'c://Users//18022... | [
"Dylan"
] | Dylan |
934f1a319faf97d1f5baf73106ca6dc15b89d1e5 | dceda528f50ecdb744cc4a83f0ed53aead10ec88 | /Scraper.py | bc3dc680c3aaf755bf4585fbdb88653b9011ccea | [
"MIT"
] | permissive | alrightalrightalrightalrightalright/etsy-scraper | 4a03819d0b6245706ecdd8dcf61b0e616447eb7b | e77acbda8cee210ca95f08eafee5203e8d445026 | refs/heads/master | 2023-04-05T11:25:02.637038 | 2021-04-07T22:18:39 | 2021-04-07T22:18:39 | 353,975,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,231 | py | import requests
from bs4 import BeautifulSoup
import re
import db
import psycopg2
import Product
proxies = {
'http': 'http://178.62.95.218:8080',
'https': 'https://178.62.95.218:8080',
}
class Scraper:
_session= requests.Session()
_baseUrl="https://www.etsy.com"
_partialUrl="/uk/listing/593579116/... | [
"33198855+alrightalrightalrightalrightalright@users.noreply.github.com"
] | 33198855+alrightalrightalrightalrightalright@users.noreply.github.com |
c61c6f504d865b4d6caa828ddb7ebb7b0697cb9e | 15bb8feae971512613c27ea755068dcb78a4af74 | /locations/migrations/0001_initial.py | 2fbea7b973d5348933e04cd295c514dd73c494dd | [] | no_license | CalebNash/ccs-final-project | a20dfe4e95c5f60730c9255ecbe7965865b03cd1 | 83d94f58a14c07dc82f5e2aa47588b633b0b80bb | refs/heads/main | 2023-01-15T07:30:01.935037 | 2020-11-20T15:45:20 | 2020-11-20T15:45:20 | 307,705,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 873 | py | # Generated by Django 3.1.2 on 2020-11-03 19:12
import django.contrib.postgres.fields
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Location',
fields=[
... | [
"calebnash@Calebs-MacBook-Pro.local"
] | calebnash@Calebs-MacBook-Pro.local |
aef17ef6d1fcf70551b5b6d5eb30f70313fabed8 | 9d497fa82d4fe570c5c637dde3b1d0f4c8956c35 | /api/core/views.py | 4781290ae61ec1bed9c4b49047117cfd7c307110 | [
"MIT"
] | permissive | mmourafiq/polyaxon-api | 1160b4e9cef3de8975b36c23971e67e1453dc3b9 | 97eeb99b173f60593bb2302efe2bbcb11a82dc38 | refs/heads/master | 2022-09-02T04:16:25.459919 | 2017-07-14T10:03:32 | 2017-07-14T10:03:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,664 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
from rest_framework import status
from rest_framework.generics import ListAPIView, RetrieveAPIView, GenericAPIView, CreateAPIView
from rest_framework.response import Response
from rest_framework.views import APIView
from core.mod... | [
"mouradmourafiq@gmail.com"
] | mouradmourafiq@gmail.com |
9ed19b923204882ca4ac3b4e52c5170da91b35b8 | 7e07e6ab5144324dd3ff7e8be2c2085aa9c390d0 | /titanic.py | 18898580119555b6316532870675931082a2dfe3 | [] | no_license | todavis/kaggle-titanic | 65f66dbc3cd9c4191032a79b559d25d0044c0465 | 1d7ca537d46eb37363dc9bd043d6dd33e6cd379c | refs/heads/main | 2023-05-09T04:15:39.684032 | 2021-05-26T17:46:25 | 2021-05-26T17:46:25 | 371,120,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,310 | py | # %% [code] {"jupyter":{"outputs_hidden":false},"execution":{"iopub.status.busy":"2021-05-26T17:39:55.046848Z","iopub.execute_input":"2021-05-26T17:39:55.047357Z","iopub.status.idle":"2021-05-26T17:39:55.058384Z","shell.execute_reply.started":"2021-05-26T17:39:55.047247Z","shell.execute_reply":"2021-05-26T17:39:55.0573... | [
"noreply@github.com"
] | todavis.noreply@github.com |
2dbfce2b253fb4765bfa5b96f64df1e8997b18ff | a2c9edf20a9db52347e7aec7b6646bf110f4b922 | /scripts/factorio-dump-blueprint | 9404ba5b99cf503cd185ba8e7b84d4ff43bdbcf9 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | dmitmel/dotfiles | 02e7289efacd4da21f01bb3fca27f93f06b51ab2 | 9a8c24ff76b4c1ca13549d9ff383ca189ef00f5f | refs/heads/master | 2023-09-03T09:35:02.331334 | 2023-08-20T07:01:32 | 2023-08-20T07:01:32 | 117,337,066 | 88 | 17 | MIT | 2023-08-20T06:50:17 | 2018-01-13T11:10:25 | Lua | UTF-8 | Python | false | false | 445 | #!/usr/bin/env python3
# <https://wiki.factorio.com/Blueprint_string_format>
import base64
import json
import sys
import zlib
if __name__ == "__main__":
data: bytes = sys.stdin.buffer.read()
version, data = data[:1], data[1:]
if version != b"0":
raise Exception("unsupported blueprint string version")
data... | [
"dmytro.meleshko@gmail.com"
] | dmytro.meleshko@gmail.com | |
8914fa8c2aa7f4228c98ce1c0dd7ea0ba06f6b6f | cf0b976c4a07e57c74174909fc6507a5701f5b67 | /mkw_ghosts.py | 5f6634f8d602ceb31331b9e7ba38de123749ce98 | [] | no_license | william-texas/rksys-ghost-extractor | 820b4b166567bcf10152b3bf8a6cf4bb06e33a01 | bdf43c4560a3c0be7481e928c15226d9059e9a48 | refs/heads/main | 2023-05-01T00:05:27.643848 | 2021-05-11T13:52:03 | 2021-05-11T13:52:03 | 355,788,146 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,207 | py | # This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
import kaitaistruct
from kaitaistruct import KaitaiStruct, KaitaiStream, BytesIO
import binascii
from enum import Enum
class CTGPGhosts(KaitaiStruct):
class Controllers(Enum):
wii_wheel = 0
wii_remot... | [
"noreply@github.com"
] | william-texas.noreply@github.com |
82ca775d5001e2ba8db6afdbf60d535f7fe92d4e | ef8bd7e05d35e915b81338a7397447288a6fe703 | /ClassicalMechanics/solvers/rk.py | 740a1459a24fc1ce39fea7fdca8ea92a63d33a65 | [
"MIT"
] | permissive | phy6boy/pyphy6 | 57bfd441a5461b115f7d9100d51e61ee1f6e7715 | 46818eb405c283c563231d1816eab1f60f39b898 | refs/heads/master | 2023-03-06T01:15:27.660429 | 2021-02-26T14:12:13 | 2021-02-26T14:12:13 | 165,656,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | """
This script impliments Butcher tableu of different rk methods
available at :
https://en.wikipedia.org/wiki/List_of_Runge%E2%80%93Kutta_methods
"""
import numpy as np
def rk4():
"""
classical Runge Kutta 4th order
Butcher tableau
"""
c = np.array([0, 1/2, 1/2, 1])
A = np.array([[0., 0., 0.... | [
"muhsinibnalazeez@gmail.com"
] | muhsinibnalazeez@gmail.com |
bb81afe9b8dcf40c77f92402b61ba4bdfe5f19cc | d62460a108115ff6b1be0a8972c3dfb284b54d3c | /Main.py | 1efa0660b1a11ed6f5692332618b402d614acfa6 | [] | no_license | JJhuk/PythonGame | 66900d9881e4613089a75974a7b0c77d61fbd114 | 9cc338ec54f9b51182183fcd60b359e6473a2a74 | refs/heads/master | 2021-08-20T05:03:41.539823 | 2020-05-26T16:23:41 | 2020-05-26T16:23:41 | 185,246,673 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,935 | py |
import pygame
from pygame.color import Color
import random
from UFO_class import UFO
from Boss_class import BOSS
from time import sleep
from UFO_Monster import UFO_MONSTER
from Meteor import METEOR
from Boss_class_Attak import BOSS_ATTACK
FPS = 28
pad_width = 800
pad_height = 200
background_width = 800
WHITE = (255,2... | [
"ly0738@naver.com"
] | ly0738@naver.com |
6d45510b9974c91305c7cdc3f646051fb94cf87d | 809467f757aa55165fc1337bb7c169cc4d6a852b | /day09/Tencent/Tencent/settings.py | 2be96d567b9cc94c419cf1f29fef611307060651 | [] | no_license | rhlp/Python_Spider | 91e544593c598d1f6ce85f23131705bf034d8fd7 | 534161bf20b9d65434bebf3c1d851fce0c74bce5 | refs/heads/master | 2021-09-02T12:01:08.428834 | 2018-01-02T12:02:20 | 2018-01-02T12:02:20 | 115,380,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,464 | py | # -*- coding: utf-8 -*-
# Scrapy settings for Tencent project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readthedocs.org/en/latest... | [
"renhl1991@163.com"
] | renhl1991@163.com |
60d05e5f995152d5461a260c213345887637357c | 329cc042bb5829ab26a51d0b3a0bd310f05e0671 | /credentials.py | 680276870d334e695779b99d754d01d7480a139d | [] | no_license | bkhoward/WLC-PSK-Change | 53afe64e767889ce967679d8aeb798745166fa72 | 1b92fd1d5afae4bc64bfc61bc4935c635cca12f0 | refs/heads/master | 2023-03-25T01:33:53.765751 | 2021-03-11T18:59:03 | 2021-03-11T18:59:03 | 345,891,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | credentials = {
'username': 'bhoward99', 'password': 'Sh0tei02'
}
| [
"bkhoward@live.com"
] | bkhoward@live.com |
7ba089890ac03183b71de1929bde2b4e220606ac | 84f873e80bbe741aede99d42b3fe8ed79a354086 | /002_fun_coding_time/edunext_challenge_django_project/edunext_challenge_django_project/urls.py | 7af8affc2dd2bbc99cdb9b81882992417499c450 | [] | no_license | yeguacelestial/edunext-challenge | bd8f2e60ffbafcf6f48ac20695ea4cb503f50dbe | 113c6a556e0658a23194ef03aea74dc082ee26fa | refs/heads/master | 2022-12-05T14:29:28.963110 | 2020-08-06T04:13:03 | 2020-08-06T04:13:03 | 283,603,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 922 | py | """edunext_challenge_django_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home,... | [
"yeguacelestial@gmail.com"
] | yeguacelestial@gmail.com |
3012e9a0a6447b928a7cc74995256be4f5fe81df | 8d0f964650cb0e6a738b62771d1a69b14f24aec3 | /setup.py | 29395977261da34d89db48c441c1911e4a6bcab6 | [
"BSD-3-Clause"
] | permissive | InfinityMod/easyRedisCache | ed8aeec184fbea9dfbba2bcae35ce79c9afc702c | b79747e0134a3b1916a6b42bbdc1cd50aa8c8ff6 | refs/heads/master | 2021-01-11T15:11:45.263321 | 2017-01-30T11:11:13 | 2017-01-30T11:11:13 | 80,313,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 645 | py | # -*- coding: utf-8 -*-
from setuptools import find_packages, setup
setup(
name='easyRedisCache',
version='0.15',
author=u'David Ziegler',
author_email='webmaster@SpreadPost.de',
packages=find_packages(),
include_package_data=True,
url='https://github.com/InfinityMod/easyRedisCache',
li... | [
"solino.webtech@gmail.com"
] | solino.webtech@gmail.com |
69056781c3aa3764dffb60ad08403e8de4b6a3ee | f5b80ea1e60bae54985ade2c6a1d1d583e8d3040 | /binary-trees/is_balanced_binary_tree.py | 6c7ed26c31bdb4d7c36bd776ef75b678ba00f4d0 | [] | no_license | FicciTong/elements-of-programming-interviews | 4eda6b4568281a080ade9ddc5d10009bd250b86d | 9f8d52c85f1bef0feb20213798019594ee219a7d | refs/heads/master | 2021-07-05T00:35:37.505560 | 2017-09-27T19:42:57 | 2017-09-27T19:42:57 | 104,961,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,107 | py | class BinaryTreeNode:
def __init__(self, data=0, left=None, right=None):
self.data = data
self.left = left
self.right = right
def is_balanced_binary_tree(tree):
return True
def main():
root = BinaryTreeNode('A')
node_b = BinaryTreeNode('B')
node_c = BinaryTreeNode('C')
... | [
"FicciTong@me.com"
] | FicciTong@me.com |
701dd8791ae9747f4bc55c4bbcd9a6abd8d28bd9 | e77dcd2b991adbb204683fc76c655ffb90cebc6a | /archive/boj/21-30/9461.py | e9b9d8e3d3988fbf39fd6d9d4837e99e96fa5fa7 | [] | no_license | circlezero/Algorithm | 369d66e74fbab7e7c3dab065d4d602e2ee7e1f27 | 046ba418a612ee4f37ba1c6ff5a180f04b412deb | refs/heads/master | 2022-03-08T03:26:44.105406 | 2022-02-28T23:02:41 | 2022-02-28T23:02:41 | 155,205,100 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | import sys
input = sys.stdin.readline
t = int(input())
d = [0, 1, 1, 1] + [0] * 100
for i in range(4, 101):
d[i] = d[i-2] + d[i-3]
for i in range(t):
n = int(input())
print(d[n])
| [
"jwy0565@gmail.com"
] | jwy0565@gmail.com |
1483e7f92fdb8100aee88c12fdd838099e982d37 | 07e36f2548040e53bdf7bb418ff3f94081f42cb5 | /dataset-versioning/sim_modify_labels.py | ab3d734bebf9e95336cccdaebdcfd0fd8e3aa311 | [] | no_license | wandb/artifacts-examples | 99bd7e4c046d10a70c2861a7eb867617e1264cb9 | 9f38abfcd2b48af5c314f2346920abb99f1bb81f | refs/heads/master | 2023-02-08T14:18:15.813319 | 2023-02-02T02:01:00 | 2023-02-02T02:01:00 | 254,713,385 | 12 | 2 | null | 2023-02-02T00:38:29 | 2020-04-10T18:59:40 | Python | UTF-8 | Python | false | false | 768 | py | import argparse
from datetime import datetime
import glob
import json
import os
import sys
import data_library
parser = argparse.ArgumentParser(description='')
parser.add_argument('label_file', type=str, help='')
def main(argv):
args = parser.parse_args()
seg_labels = data_library.get_seg_labels()
box_l... | [
"shlewis@gmail.com"
] | shlewis@gmail.com |
4aaf6014bb2c69d740bc278b1697defe93f9b565 | a127ac15dc03271edfba3ee8a931718d70c452ad | /test/tests/decorators.py | 1eda3bec351b28f7da64016ccaf723447f2f1556 | [
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | josephwinston/pyston | 7e354580b3a011ebf768ef14d5b2d298a3a48427 | 7d703b0214ffc1c61598ba4e689abfc8c1658486 | refs/heads/master | 2021-01-11T10:05:19.995366 | 2014-07-23T12:08:57 | 2014-07-23T12:08:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | # expected: fail
# - decorators
def print_when_eval(x, msg):
print msg
return x
# Test the order that decorators and function defaults get evaluated
@print_when_eval(lambda f: print_when_eval(f, "calling decorator"), "evaluating decorator")
def f(x=print_when_eval(1, "evaluating default")):
pass
# Result:... | [
"kmod@dropbox.com"
] | kmod@dropbox.com |
4c6ae23fcdd718fc99eafebc9f28c35e27dbb990 | d0391c4f00ff41503489a45dc4ad0a3b4d084258 | /main.py | facf3565a096f08413e216bff31922fdfd782ac8 | [] | no_license | Pandawastaken1/LowestOpenArray | 5ea7532fb92dac6bfd7340d345f39130cf140de4 | 1642185c0868c17de0a0c43f9ed1a15003a37ba9 | refs/heads/master | 2022-12-06T09:17:13.148088 | 2020-08-28T23:26:57 | 2020-08-28T23:26:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | class bus:
#Constructor
def __init__(self,colorInput,numberOfSeats,engineHP,isbus):
self.bodyColor=colorInput
self.seats=numberOfSeats
self.engineSize=engineHP
self.bus=isbus
def driveoffintothesunset(self):
print("and this is just like a movie")
mybus=bus("black",40,3050.1,True)
pr... | [
"aaakashgamer45@outlook.com"
] | aaakashgamer45@outlook.com |
6a1f5008c2673861e1856c147fa293aceea2108a | 68486e67ac8fbf233d0c12f3b13412abe63d607d | /htmltest/views.py | f23ad9fe627fa2a15997dfe29b35e783d8875198 | [] | no_license | khs0806/the_project | f1632da64ddc198bb136601ba6dc515ed401fe9f | 41187c4ad81bb56f3efbdee22f49afddbe33ba07 | refs/heads/master | 2020-12-22T07:45:07.705328 | 2020-02-11T06:28:18 | 2020-02-11T06:28:18 | 236,713,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,218 | py |
from django.shortcuts import render, get_object_or_404
import pandas as pd
import folium
import json
from folium.features import DivIcon
from folium.plugins import MarkerCluster
from blog.models import Post
from django.utils import timezone
from django.shortcuts import redirect
from .forms import PostForm
# Create ... | [
"asdasqwex63hd65@naver.com"
] | asdasqwex63hd65@naver.com |
02ca018a3e7a5f451cf9c339a3b1dfa6e4534e59 | b95df751b39533cf4b194d47587210e226350087 | /led.py | 7d4247159609440387b8f8f2e2104c88f7f5f8ea | [] | no_license | gandipg/micropy_esp | dbbeaa214810f213a3ac05555515ae9c43bcab06 | c570a10689747812bacb0fb5bd8c64feee593cf6 | refs/heads/master | 2021-09-01T13:49:35.395670 | 2017-12-27T09:09:26 | 2017-12-27T09:09:26 | 115,424,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,580 | py | import socket
import machine
#HTML to send to browsers
html = """<!DOCTYPE html>
<html>
<head> <title>ESP8266 LED ON/OFF</title> </head>
<center><h2>A simple webserver for turning LED's on and off with Micropython</h2></center>
<center><h3>(for noobs to both the ESP8266 and Micropython)</h3></center>
<form>
LED0:
<... | [
"g.tsankov93@gmail.com"
] | g.tsankov93@gmail.com |
c03315fd9e075cf8664700e10adfaa229031f664 | 8110adff2bcb8ceb946682ad37fe3575ecdf3d01 | /website/urls.py | c08a1d07378381fe7a48a6da83e862b31a4b4932 | [] | no_license | captain-jbit/template_django_dentist | 2791505ddcb5748a170c64457175e9df79497b08 | 3fff49a6f0cde0c32edba5305fc784ebddcc85e2 | refs/heads/master | 2022-12-07T11:12:24.064023 | 2020-08-29T22:54:06 | 2020-08-29T22:54:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 846 | py | """djangoProject4 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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')
Clas... | [
"jake.yanov@gmail.com"
] | jake.yanov@gmail.com |
602406ee410725341876913303a2fb511aebf002 | ac1f286fb73e3fa866de88bc8b08cb9be02357f2 | /arena/tests/test_spatial_glimpse.py | 8a93223090b60716e57ac816883210182b8b29d2 | [] | no_license | flyers/Arena | 8a717184f37cd36b07ec28dbe9d667bc8f9fa8c2 | 6ed303c10eaefd7e4ee52ab56b1ced6b773de244 | refs/heads/master | 2020-04-27T20:44:58.091106 | 2016-10-10T08:58:53 | 2016-10-10T08:58:53 | 174,668,982 | 0 | 0 | null | 2019-03-09T08:37:46 | 2019-03-09T08:37:46 | null | UTF-8 | Python | false | false | 3,402 | py | import mxnet as mx
import mxnet.ndarray as nd
import numpy
from arena import Base
import cv2
import time
from arena.utils import *
def load_roi(path, height=360, width=480, num=100):
a = numpy.loadtxt(path, delimiter=',')
cx = a[:, ::2].mean(axis=1)
cy = a[:, 1::2].mean(axis=1)
sx = a[:, ::2].max(axis... | [
"xshiab@ust.hk"
] | xshiab@ust.hk |
fa3d11538f126d7e3f6428c997a19b45c6004eb3 | a19778f85fe30cc50f125049d3ef8928e3bf9fde | /backend/elittech_20991/wsgi.py | ec7d72a67fd3b1d8aa1d88fdac4c76a94f36b9c3 | [] | no_license | crowdbotics-apps/elittech-20991 | 6665ccb7c26cc7c10c82c7d3346abbd322212d2b | 75b5644a3ad9b1dca526c2b58beccaa50f1fd9a7 | refs/heads/master | 2022-12-24T14:52:47.574719 | 2020-10-02T21:52:36 | 2020-10-02T21:52:36 | 300,742,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
WSGI config for elittech_20991 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/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANG... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
ee31da0617681fbaf31fb79f4d0c7cf013b9a1b5 | 2f82c81b5c6d1033d5d79a1f41a853c84669d4d4 | /restaurant/restaurantApp/forms.py | 968b983255c425b08e285a78393fbd7a0c0644ae | [] | no_license | DarshanN1/UTSTuesdayG52021Aut | ba241c88126574cfdd39451468e19a2d68043966 | 345025e675f638e2d1b0a7419996e32c58d6e81a | refs/heads/main | 2023-06-16T08:05:48.230774 | 2021-07-15T02:49:39 | 2021-07-15T02:49:39 | 341,414,511 | 0 | 0 | null | 2021-07-08T12:11:00 | 2021-02-23T03:22:03 | HTML | UTF-8 | Python | false | false | 1,228 | py | from django.forms import ModelForm
from django.contrib.auth.models import User
from .models import StaffMember
from .models import Booking
from django.contrib.auth.forms import UserCreationForm
from datetimepicker.widgets import DateTimePicker
from django import forms
class CreateUserForm(UserCreationForm):
class ... | [
"dulyacsm15@gmail.com"
] | dulyacsm15@gmail.com |
92ca1c3921ccec559cdcd2de490cee6594ab9e6b | 431ff3094d36404793f9bbdec364e3f356fd259a | /env/bin/pip3 | 6c07383965d0228b315099e16950dcb07b37a0d3 | [] | no_license | Deaconjoe/djoePython | cd875e864a9c6d2a7d4f3a290fda58b24d15c681 | 99f4978954fb2e352841aac77e0f0407c25b5ff0 | refs/heads/master | 2020-08-06T09:09:57.954451 | 2019-11-15T19:50:01 | 2019-11-15T19:50:01 | 212,918,646 | 0 | 0 | null | 2019-11-15T20:10:03 | 2019-10-04T23:37:29 | Python | UTF-8 | Python | false | false | 234 | #!/home/yaw/flask-by-example/env/bin/python3.7
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"clouddjoe@gmail.com"
] | clouddjoe@gmail.com | |
30868fa93642295347293682bd6a79606261a641 | 28383bd346f6e5f1c499796fc39f14ae83b119e7 | /check_ckpt.py | c51cf30974934828e1423fcd2641c49872a87f90 | [] | no_license | Interactive-Context-Lab/Deeply-Supervised-Part-Feature | 25adfe201a4a7ff8f79a2730063eb25e84396a1d | 83245faea23c5984c83687cac3ec5b27a0b17882 | refs/heads/master | 2022-12-23T19:25:35.743628 | 2019-10-30T07:05:01 | 2019-10-30T07:05:01 | 215,671,821 | 1 | 0 | null | 2022-12-08T06:43:58 | 2019-10-17T00:49:08 | Python | UTF-8 | Python | false | false | 1,071 | py | import tensorflow as tf
# from tensorflow.python.tools.inspect_checkpoint import print_tensors_in_checkpoint_file
#
# print_tensors_in_checkpoint_file("senetmodel/Inception_resnet_v2.ckpt", all_tensors=False,
# all_tensor_names=True, tensor_name="")
# #
# print_tensors_in_checkpoint_fil... | [
"55469294+Interactive-Context-Lab@users.noreply.github.com"
] | 55469294+Interactive-Context-Lab@users.noreply.github.com |
02f13775b3c78236ce2ab80545def64ab6c36542 | c214ad7a04e581d81b42fec19d68f999169bfc33 | /EX_EstruturaDeDecisao/ex15.py | f542a34e11a1b9fdd6434f759cd998e323eb20ee | [] | no_license | leohck/python_exercises | 34f06df60d0a40f50466f0b2da3e91ec7026a47b | 85aafaa04ae395b3c722a7ad20aeb16de8c1eff4 | refs/heads/master | 2021-01-01T04:08:06.336740 | 2017-07-26T13:48:48 | 2017-07-26T13:48:48 | 97,128,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,349 | py | __author__ = 'leohck'
print('>.....----- EX 15 ----.....< ')
"""
Faça um Programa que peça os 3 lados de um triângulo.
O programa deverá informar se os valores podem ser um triângulo.
Indique, caso os lados formem um triângulo, se o mesmo é: equilátero, isósceles ou escaleno.
Dicas:
Três lados formam um triângu... | [
"noreply@github.com"
] | leohck.noreply@github.com |
ca4bf6c6f26579e696c768fafa5f991e395020a4 | 7fb469e93ff89b1c697d5a53a39188127e50d272 | /handler_analysis_mem.py | d8350f51c122249c5e1ee4d64b224614e132e714 | [] | no_license | seekplum/seekplum | fde98f93145a78fc030032a4499090583aba154a | 9e66f5e62214e566528003d434ef2b74877419fd | refs/heads/master | 2023-02-13T19:00:49.866130 | 2023-01-31T08:55:19 | 2023-02-02T04:33:45 | 182,075,292 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,178 | py | # -*- coding: utf-8 -*-
import json
import time
import logging
import gc
import random
import commands
import traceback
import objgraph
from schema import SchemaError
from tornado.options import options
from tornado.web import Finish, HTTPError
from tornado.web import RequestHandler
logger = logging.getLogger(__na... | [
"1131909224@qq.com"
] | 1131909224@qq.com |
3e991bfa498e16d0e475e2e791c91b0429f81aee | 7b197a7202325764578c4b75d40620953619656f | /p4u/2_dz/seo_marks.py | d31ee2a4a5fee52f4be39683e16f777f82ccf4db | [] | no_license | alekswatts/python | c2988eada23a5d110ffffc2e5c0223c2a6ad01ce | 4181d5261b22bb85a81a3c559bf506f3a56b37b7 | refs/heads/master | 2021-11-25T17:26:41.225469 | 2021-11-12T13:49:45 | 2021-11-12T13:49:45 | 220,013,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,466 | py | from pprint import pprint
from requests_html import HTMLSession
from collections import Counter
import collections
from django.core.validators import URLValidator
from django.core.exceptions import ValidationError
#
# url = input("Enter url: ")
# keyword = input("Enter keyword: ")
def validate(url):
govno = False... | [
"aleksmytiuk@gmail.com"
] | aleksmytiuk@gmail.com |
3bf9eff42eb7c3295f1de0066362595cbdbf6457 | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/model_control/detailed/transf_None/model_control_one_enabled_None_Lag1Trend_Seasonal_WeekOfYear_AR.py | 8afbe3ca79cc51f9a7c11d22afe462e2971627a4 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 156 | py | import tests.model_control.test_ozone_custom_models_enabled as testmod
testmod.build_model( ['None'] , ['Lag1Trend'] , ['Seasonal_WeekOfYear'] , ['AR'] ); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
da070c94835ae1212a8890d1c38aa48ab2b71766 | 1cf527dc684a3bd45d08bf51bba58741355ae08c | /SafeZone/forms.py | c750c90f77ee660c24d9d6d2d8dd7735f6a791f5 | [] | no_license | AboveColin/SafeZone | e163dea4bea6af617d29d0fa837dc7b07cd2b86e | 6691ae6bf1f690b5e9ff3d0a900a656568e37e88 | refs/heads/main | 2023-04-30T20:08:33.422760 | 2021-05-20T12:28:38 | 2021-05-20T12:28:38 | 346,729,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 785 | py | from flask_wtf import FlaskForm
from wtforms.validators import data_required, Email, EqualTo
from wtforms import ValidationError, StringField, PasswordField, SubmitField, SelectField
class Loginform(FlaskForm):
username = StringField("Gebruikersnaam", validators=[data_required()])
password = PasswordFiel... | [
"noreply@github.com"
] | AboveColin.noreply@github.com |
1366d05fccf6f662736817f516976c6e7e0a26a2 | 05cfbd1db4236507a2668d361b8027ae6d8f8f57 | /363.矩形区域不超过K的最大数值和.py | 4ff8c2f79bb35180aa5e14a0edccf6304e33a767 | [] | no_license | ChaosNyaruko/leetcode_cn | f9f27da6a1e2b078c5cd23df8d46c7bc794d8487 | 1233137cfb1196019e8d95407c2b8f18b6d6d2f8 | refs/heads/master | 2023-08-15T14:17:41.697164 | 2021-09-23T16:21:44 | 2021-09-23T16:21:44 | 302,867,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 698 | py | from sortedcontainers import SortedList
class Solution:
def maxSumSubmatrix(self, matrix: List[List[int]], k: int) -> int:
m, n = len(matrix), len(matrix[0])
ans = float("-inf")
for i in range(m):
sum_ = [0] * n
for j in range(i, m):
for c in range(n)... | [
"cabbageparadise@gmail.com"
] | cabbageparadise@gmail.com |
0b627bf66430243c5f7c50a2c931b1e3052bcdf5 | bda3d629a37df424d736af0a19f5b991364a5048 | /Database Systems/project 2 - implementation of queries using python GUI/codefiles/3.3.py | 79f1718dfdee95621de8784aea499ed4e26adaf1 | [] | no_license | YashwanthThota/Academic-Projects | 94dc194b3322e4c54175c7d8a7977128e96f420b | 03acf561a1b59f2b1b2c781b89713d448fdf91fe | refs/heads/master | 2018-12-20T19:13:15.995339 | 2018-09-18T03:59:51 | 2018-09-18T03:59:51 | 109,457,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | #Server Connection to MySQL:
import mysql.connector
cnx = mysql.connector.connect(user='root', password='yashwanth',
host='127.0.0.1',port='8080',database='final')
cursor = cnx.cursor()
print("please enter the table details \n")
print("\n")
print("enter the ownerid number: ")
own... | [
"noreply@github.com"
] | YashwanthThota.noreply@github.com |
f9342a84ad9076d61d854bc3e87604340d36fb40 | a01d7e10b70042140c401c5beb83663d958f1e69 | /AutoRCCar-master/raspberryPi/stream_client.py | 1cff6482c79e706109110ece4bdc8dc2c46b0e58 | [
"BSD-2-Clause"
] | permissive | remeoj/Navigational-System-For-Self-Driving-Cars | ac88edf119ab01abb759f06ed58d6944f20743e0 | 5aeae3f325176b21734ae18e73294a4b275852ee | refs/heads/master | 2022-01-18T22:12:49.496805 | 2019-04-25T23:53:31 | 2019-04-25T23:53:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,089 | py |
import io
import socket
import struct
import time
import picamera
# create socket and bind host
client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
client_socket.connect(('192.168.1.105', 65432))
connection = client_socket.makefile('wb')
try:
with picamera.PiCamera() as camera:
camera.reso... | [
"34356209+JoemerRamos@users.noreply.github.com"
] | 34356209+JoemerRamos@users.noreply.github.com |
62883f2fe8ea1f9b035e6c12dadf2c9bb658310f | b505998fea8f748638da5af2ed928f0080e73b3a | /30_parseBLAST_biopython.py | 16c2d856b9f0e98bc906741fb655a76095fbef01 | [] | no_license | wjidea/pythonExercise | eced655f9da1c42e14c8894fc7f0ea54651b2715 | 4fbc5eb7520faf8521e51ce9cab7c3a4b05c5120 | refs/heads/master | 2020-07-06T07:38:41.777452 | 2016-09-09T18:24:59 | 2016-09-09T18:24:59 | 67,801,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,385 | py | #! /usr/bin/python
# 30_parseBLAST_biopython.py
# blast populus transcript against arabdopsis transcript and extract evalue
# from blast resulsts (plain text) using biopython SearchIO.
# requirements for this script
# Write the output as Tab-delimited file, which includes:
# 1) Name of the blast database qResult.tar... | [
"wangj@Admins-MacBook-Air-2.local"
] | wangj@Admins-MacBook-Air-2.local |
e8df7529813c851e67d12faea01d688a29bda68e | a3fddbf8d953bce9b84173c1ba48780e849f86ef | /peaks_test.py | da212c465a697196c6fa1b6d15eca124ea6c4d5c | [] | no_license | rosswhitfield/wand | 79f99bef519ed9c334fddcb5396ab66d56f2903e | 562b1f89acb46749e220081117e2cbda2014df36 | refs/heads/master | 2021-06-02T05:38:00.741277 | 2021-04-14T13:19:18 | 2021-04-14T13:19:18 | 97,755,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | # import mantid algorithms, numpy and matplotlib
from mantid.simpleapi import *
import matplotlib.pyplot as plt
import numpy as np
ws=CreateSampleWorkspace()
peaks=CreatePeaksWorkspace(ws, 0)
SetUB(peaks, a=5, b=5, c=5)
peaks2=CreatePeaksWorkspace()
for vector in [[i,j,k] for i in (0,1) for j in (0,1) for k in (0,1)... | [
"whitfieldre@ornl.gov"
] | whitfieldre@ornl.gov |
0c88eaa0c9cf00e19e24b4dd48263ee4d5a04664 | c83d51af8d8036084aa96f4d8d3963b592e7b0d3 | /bayesian_config.py | dd43e5655353f3f63b4614531bcf627d98dd4401 | [
"MIT"
] | permissive | SulemanKhurram/ThesisExperiments | 4f40e52afba9eeabd02647273da41da45895cf65 | 4fdf7b6558c87a096dcdc374c35085ac946d3a58 | refs/heads/master | 2021-06-26T00:37:00.472747 | 2021-06-20T19:13:13 | 2021-06-20T19:13:13 | 160,214,643 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,210 | py | ############### Configuration file ###############
import math
start_epoch = 1
num_epochs = 60
batch_size = 8
optim_type = 'Adam'
lr = 0.00001
weight_decay = 0.0005
num_samples = 25
beta_type = "Blundell"
mean = {
'cifar10': (0.4914, 0.4822, 0.4465),
'cifar100': (0.5071, 0.4867, 0.4408),
'mnist': (0.1307... | [
"khurram@glasgow.kl.dfki.de"
] | khurram@glasgow.kl.dfki.de |
4b1a27172693270f1558822c59edcadc3229bbe7 | 45e46c8e850c98cd0ff7ec4cb7f040ead42355ae | /pilot/eventservice/droid.py | ca4f242ba68dcb7088691d2df485bfd6c1920fac | [
"Apache-2.0"
] | permissive | mlassnig/pilot2 | c76a24f0974b187d0514789439f0f1273fe06146 | 029e013dec888eecadb34c485f8d7498fccd000f | refs/heads/master | 2022-09-02T05:26:01.292402 | 2021-11-08T13:45:46 | 2021-11-08T13:45:46 | 79,211,086 | 0 | 2 | Apache-2.0 | 2022-07-27T11:47:21 | 2017-01-17T09:29:02 | Python | UTF-8 | Python | false | false | 431 | py | #!/usr/bin/env python
# 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
#
# Authors:
# - Paul Nilsson, paul.nilsson@cern.ch, 2018
import logging
log... | [
"paul.nilsson@cern.ch"
] | paul.nilsson@cern.ch |
85c85da8a51b5e8013989fa9849dba4ffec1fb96 | a90b05363448c303f4b8e47778eaa46388bc7592 | /python/firstAndLastPositions.py | e31d4e84bda93ef64b69398318370237e039ecda | [] | no_license | mongoosePK/leetcode | 4363dd5c6fe97f6105d2ea1b7b57349dcf069eaf | 6a7bd5db56c9c4c323ba58990e84d0ed891a8523 | refs/heads/main | 2023-09-01T17:11:39.558196 | 2021-10-30T16:19:21 | 2021-10-30T16:19:21 | 361,819,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 717 | py | # firstAndLastPositions.py
# william pulkownik
# Given an array of integers nums sorted in ascending order,
# find the starting and ending position of a given target value.
# If target is not found in the array, return [-1, -1].
# Follow up: Could you write an algorithm with O(log n) runtime complexity?
from bisect i... | [
"30559692+mongoosePK@users.noreply.github.com"
] | 30559692+mongoosePK@users.noreply.github.com |
2f0eac367ea2c16758bffafdcd0645073326ee05 | 25830ae6ebb4a9f0317fe4a15a0fc04ca284db95 | /my_face_recognition/biometric_functions.py | b104fec7432a1a52ceb2177551e1171b849483a1 | [] | no_license | IradNuriel/Final-Project | 3252bf7b10ba6284e337f113f7952ac745fbe4f2 | 4bbc72e3bb580f232b52ef053ef59c2c790385c1 | refs/heads/master | 2023-07-30T18:01:28.556570 | 2021-09-16T07:24:07 | 2021-09-16T07:24:07 | 396,351,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,321 | py | import gc
import os
import pickle
from numpy import expand_dims
from keras.preprocessing import image
from keras_vggface.utils import preprocess_input
from homomorphic_encryption_stuff.EncryptionStuff import hamming_dist, save_encrypted_binary_vector_in_memory, load_encrypted_binary_vector_from_memory
from homomorphic... | [
"irad9731@gmail.com"
] | irad9731@gmail.com |
025459fc2c308414b00fd045d3cb2a9f3f304fac | 609d5408f302c9188b723998762c2c1f7b883af9 | /.closet/jython.configurator.efr32/1.0.0.201606231656-435/rail_scripts/pyrmsvd/Package/pyrmsvd/rm/__init__.py | 6e14bc03c0cc968e005f33473d8dd8a50ada060e | [] | no_license | acvilla/Sundial-Beta | 6ea4fd44cbf7c2df8100128aff5c39b6faf24a82 | 9f84e3b5a1397998dfea5287949fa5b1f4c209a6 | refs/heads/master | 2021-01-15T15:36:19.394640 | 2016-08-31T20:15:16 | 2016-08-31T20:15:16 | 63,294,451 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47 | py |
from regmap import *
from regmap_io import *
| [
"acvilla@bu.edu"
] | acvilla@bu.edu |
eca09c73403d1c2de48e6499cd1a6553e7f8a47c | 8adf4c0c58cca870dc9e2e3fe790fb29634d00e9 | /source/main/settings.py | b3b7264698f8d3a438953a002691c551965b3290 | [] | no_license | yuburov/react_python_testing_project | bcecc58f97dbcdb7938cd3cda845c2094cb3237e | e44fc9ad4d10d8763ab094a43e2f2ec85335d393 | refs/heads/main | 2023-04-01T16:05:57.489968 | 2021-04-27T05:15:59 | 2021-04-27T05:15:59 | 361,722,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,690 | py | """
Django settings for main project.
Generated by 'django-admin startproject' using Django 3.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathlib impo... | [
"yubur.aziz@gmail.com"
] | yubur.aziz@gmail.com |
b4ae0449e6a250c2523aa5b98718aa43082d944d | e85d8e1fa15cc28fe799820ef69a962822a03b1d | /app/__init__.py | d9fddb6291ac1ed1dbe6a9ac6a5f2f0d672fdf34 | [] | no_license | tolyandrov/funnyrecipes | 5542ee89ff018e50e78001daf64799c1e2191fb9 | 81afa12b60838e9c4c9a4beb473e1965b8ca6602 | refs/heads/master | 2021-01-10T02:39:09.238179 | 2015-10-05T21:40:00 | 2015-10-05T21:40:00 | 43,608,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy
from flask.ext.login import LoginManager
app = Flask(__name__)
app.config.from_object('config')
db = SQLAlchemy(app)
from app import models, views
from app.models import User
lm = LoginManager()
lm.init_app(app)
lm.login_view = 'login'
@lm.user_loa... | [
"seeknowells@gmail.com"
] | seeknowells@gmail.com |
19b2867570f47add0d1c87112fd84c9703e937d8 | 590ff12865f0ce14594085ab7171da4d39a4a2ea | /polls/models.py | cf462f70c805fc6957e055b36cfdd609e3617a36 | [] | no_license | evan-woodworth/django_practice | 905b5cc136c0e347f75b16e19b0741b94366ddc0 | 38251de2f1a9fc2517ff167f51879746c7607925 | refs/heads/main | 2023-06-05T07:15:17.281380 | 2021-06-25T03:54:46 | 2021-06-25T03:54:46 | 379,729,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | import datetime
from django.db import models
from django.utils import timezone
class Question(models.Model):
question_text = models.CharField(max_length=200)
pub_date = models.DateTimeField('date published')
def __str__(self):
return self.question_text
def was_published_recently(self):
... | [
"evan.woodworth@gmail.com"
] | evan.woodworth@gmail.com |
a77a3f6e0a767251186344b21dbefd10dbf2193c | b86555764a4cde22a6dbd8cf368bc57ed96efb6c | /helloword/venv/Scripts/easy_install-3.8-script.py | 7d71f7db89bbc45b1abf4e12cd5ee43978ef818f | [] | no_license | mbebiano/exercicios-python | 5c089e8821a672b1634554f9e1edca143d070675 | a349d0f5c7c31f13e9fcc02a2cfdfa7b6742b54a | refs/heads/master | 2021-05-24T14:56:45.922418 | 2020-06-02T01:49:26 | 2020-06-02T01:49:26 | 253,615,190 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | #!C:\Users\matth\PycharmProjects\helloword\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.8'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.p... | [
"mattheus.bebiano@engenharia.ufjf.br"
] | mattheus.bebiano@engenharia.ufjf.br |
b5f8d0670cd215a6de141c410567a75dad38f0bd | 62faf5b8988430190c7579769427ced27db5df13 | /handlers/input_handler.py | 8a68a0572ae1e4e4b1a1c1969e843d3c8dc0b0b4 | [
"MIT"
] | permissive | pyladieshamburg/games_in_python | 06783b62962aad9c2991bc56c7e44e4a9289c0ed | 49a84ceaa3b0a3f322b02a8fccd44560e321e821 | refs/heads/master | 2020-04-10T16:17:44.602465 | 2019-01-02T08:46:16 | 2019-01-02T08:46:16 | 161,140,616 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 719 | py | """ input handlers: movement and others """
from pygame.locals import *
def keydown(event, game_obj1, game_obj2):
"""
Change the velocity of a game obj by pressing up or down arrows
:param event: game event loop
:param game_objX: gam object with velocity attribute
:return: None
"""
if even... | [
"alisa.dammer@gmail.com"
] | alisa.dammer@gmail.com |
6825d2e0fce31fe005e6ecf9ee418bd77551d70a | a4e1093cd868cc16cf909b8f7b84832a823a97bf | /explore_vae.py | 31e21694dd55f3ae5a68f22995167a4007d8e602 | [] | no_license | hermanprawiro/gan-playground | 8fb7eed54314661d9d1b908fe2cb1695eb1e3881 | bf4c270ad4696d61df0dbe2afb8c9ebafb9c2ba3 | refs/heads/master | 2020-09-06T19:43:22.685332 | 2019-12-24T10:45:12 | 2019-12-24T10:45:12 | 220,529,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,642 | py | import argparse
import os
import matplotlib.pyplot as plt
import torch
import torch.nn as nn
import torchvision
import torchvision.transforms as transforms
from torch.utils.data import DataLoader
from torchvision.utils import make_grid, save_image
from models import vae
from utils.criterion import VAELoss
device = t... | [
"herman.prawiro@gmail.com"
] | herman.prawiro@gmail.com |
ad05c42a7240dc72c2dcb38173fdee93f772ff82 | 7809d83384c286eae8fea42abbcd44471da0cf7a | /hello/big10.py | d586844cdd4a2071ef1af98acf62fc2e0d9517ab | [] | no_license | krohak/codeIT-suisse | dc04be7b86150d26726e2934f1b810ae72139780 | 785bb4e6d81153b053690bab1e65df897b694104 | refs/heads/master | 2021-05-16T10:29:18.343558 | 2017-09-24T20:11:57 | 2017-09-24T20:11:57 | 104,672,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,330 | py | from array import array
from collections import deque
import psyco
data = []
nrows = 0
px = py = 0
sdata = ""
ddata = ""
def init(board):
global data, nrows, sdata, ddata, px, py
data = filter(None, board.splitlines())
nrows = max(len(r) for r in data)
maps = {' ':' ', '*': '*', 'b':' ', '#':'#', 'o'... | [
"rohaksinghal14@gmail.com"
] | rohaksinghal14@gmail.com |
257aaddee8b51ae7ebf8f4e108a69c7203e246ec | 811ccdd2ffe95c871842407cc44d1fa44b363e6e | /squad/prepro.py | 452f53f3e5da03ca4abe71e06abd8845d14c70e6 | [
"Apache-2.0"
] | permissive | Jh-SYSU/Bi-Directional-Attention-Flow-for-Taidi | 69979a0c09f4f6befe49664703cd8097707f9f87 | 3eb5007af82f4fbacb486315c48bde06d8dd3d00 | refs/heads/master | 2020-03-10T21:59:11.181222 | 2018-04-15T12:33:27 | 2018-04-15T12:33:27 | 129,608,007 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,260 | py | import argparse
import json
import os
# data: q, cq, (dq), (pq), y, *x, *cx
# shared: x, cx, (dx), (px), word_counter, char_counter, word2vec
# no metadata
from collections import Counter
from tqdm import tqdm
from squad.utils import get_word_span, get_word_idx, process_tokens
def main():
args = get_args()
... | [
"raojh6@mail2.sysu.edu.cn"
] | raojh6@mail2.sysu.edu.cn |
311a6aa2da76abe9146ab35a0e532833d59b34ae | ca506bf32d8c3380264a2fa9e9fc2950a5df5613 | /python_arrays.py | 68d0d98308df4d8790fd75d1347a53cdd97a5755 | [
"MIT"
] | permissive | anspears/astr-119-hw-2 | 3a69b6023b803c9d6e7832763b73d5742cf3ec67 | 964a94ef7edcb0d2d707cbcfb83e398494e2585c | refs/heads/main | 2022-12-26T01:32:45.791410 | 2020-10-08T19:45:33 | 2020-10-08T19:45:33 | 302,409,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | x = [0.0, 3.0, 5.0, 2.5, 3.7] #define an array
print("When we start, x = ",x)
#remove the third element
x.pop(2)
print(x)
#remove the element equal to 2.5
x.remove(2.5)
print(x)
#add an element at the end
x.append(1.2)
print(x)
#get a copy
y = x.copy()
print(y)
#how many elements are equal to 0.... | [
"noreply@github.com"
] | anspears.noreply@github.com |
0a15bed3e14b90cd6ce31c2d80cb043468eb77c7 | 46b7d39fac4f22b04bc74acc2db61056c49db853 | /day3_puzzle2.py | 27001f78650cf218503bb27fb1f2abded2d64d7c | [] | no_license | antonforsstrom/adventofcode | e46e630cf346d1cd7653751233cd7cc8b8f0d38e | e087a2143fd5f4b131b520db0ab0ca4e88ac2988 | refs/heads/master | 2020-11-25T09:07:32.290709 | 2019-12-18T16:04:38 | 2019-12-18T16:04:38 | 228,586,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,025 | py | import day3_puzzle1
def steps(wire1, wire2):
"""Calculates most time efficient intersection, i.e. the one reached with the least total steps from origin"""
points1= day3_puzzle1.get_visited_points(wire1)
points2 = day3_puzzle1.get_visited_points(wire2)
intersections = day3_puzzle1.intersections(points... | [
"antf@C02Z6367LVDL.local"
] | antf@C02Z6367LVDL.local |
b9ab3134e2660cbd612f2de81377cf7567e58df6 | cff539edac9e5b2492fcbaa87b7a0f5cb5e33497 | /csv_test.py | efad46a4471bcb2e0e7056e044e92ae47301acb7 | [] | no_license | Charlie-Robot/csv-card-catalog | 1f70157764a34475ed3cca0368915ba31ac44187 | b7427c2e0bca4fa87d3f7b0d9b7188a18de042c9 | refs/heads/master | 2020-05-26T17:23:36.424839 | 2017-02-19T19:32:13 | 2017-02-19T19:32:13 | 82,483,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36,040 | py | import unittest, os, time
from sheet import Spreadsheet
class Unitest(unittest.TestCase):
def setUp(self):
self.FILE = 'test.csv'
self.FILE_1 = 'test_2.csv'
self.FILE_2 = 'test_3.csv'
self.HEADERS = ['First',
'Middle',
... | [
"noreply@github.com"
] | Charlie-Robot.noreply@github.com |
a67b58537018827a34978cad18fde383dd6c68c8 | 050c53f4930674674a8cb22790f39b0e87bdc580 | /lending/admin.py | c57f8967f6a12229031ba7aef247d250cb529ec8 | [
"BSD-3-Clause"
] | permissive | destos/toolhub.co | 44ca3391b4a40720370985c55d54ee48fb5eb4b9 | b51cf2cc2e0eb7c09c59684f985052c966943c0b | refs/heads/master | 2021-05-28T01:02:14.426904 | 2014-08-05T05:21:08 | 2014-08-05T05:21:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | from django.contrib import admin
from .models import Transaction, LendingAction
class TransactionAdmin(admin.ModelAdmin):
raw_id_fields = ('hub', 'tool', 'lendee', 'last_action')
class LendingActionAdmin(admin.ModelAdmin):
raw_id_fields = ('transaction',)
admin.site.register(Transaction, TransactionAdmin... | [
"patrick@forringer.com"
] | patrick@forringer.com |
579abdc1f2ddc32420aa68c54bebe2a82fde7f5f | 1adcabfb3bea9769e44306105a0ac403cca0836c | /smtp.py | a1c5548055567a8752b57dee2842ea5298db0e92 | [] | no_license | cab22/Computer-Networks | 20f1cf6f7a8269949cfea0d8e683695cbd7707c7 | 265243b423b27f4ccfba9ac95b85280bb085ca62 | refs/heads/master | 2021-01-21T01:43:30.380387 | 2016-07-25T16:31:34 | 2016-07-25T16:31:34 | 64,150,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,662 | py | from socket import *
import ssl
import base64
#Dados necessarios para enviar o email
msg = b'\r\nI love computer networks!'
endmsg = '\r\n.\r\n'
mailserver = 'smtp.gmail.com'
login=b'************'
senha=b'**************'
destinatario=b'**************'
clientSocket = socket(AF_INET, SOCK_STREAM)
# Número de porta ... | [
"noreply@github.com"
] | cab22.noreply@github.com |
e6f308f3e67e773bcecbfee624beff58d586a4c9 | 6409d2492f9bef0d0b7219fb067d278611be31ea | /setup.py | 4781b4f3c5c0e41a1636ac1ade5e616c64e22860 | [
"MIT"
] | permissive | Eugenio-Alcalde/CodonAdaptationIndex | d7b4fef98836f14c8bfa6483c2400e2278621fc2 | 568ee01d438d45a4527ddb6eda5fee429be40c2a | refs/heads/master | 2021-09-02T04:58:21.601563 | 2017-12-30T15:06:01 | 2017-12-30T15:06:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 611 | py | from setuptools import setup
setup(
name = 'CAI',
packages = ["CAI"],
version = '0.1.8',
description = 'Python implementation of codon adaptation index',
author = 'Benjamin Lee',
author_email = 'benjamin_lee@college.harvard.edu',
url = 'https://github.com/Benjamin-Lee/CodonAdaptationIndex',... | [
"benjamindlee@me.com"
] | benjamindlee@me.com |
43c5ac8e72eff42df3abd6890e31bd12da42a1c6 | 51981cdf4b36ac6bd5d2e9312c19fdd19c333c84 | /oddnuminter.py | 5bda0926057b5b9d686ea857216f0ee4f7e52df0 | [] | no_license | jasirknm/guvi | ac07b436294533dc758542a9ee4e5f6737ba63ee | 84c77d6dbeae6642ef81d6f2bba6d7b5060f45fb | refs/heads/master | 2020-04-21T16:08:23.085051 | 2019-02-08T05:35:30 | 2019-02-08T05:35:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | #srini
a=input().split()
n=int(a[0])
q=int(a[1])
for i in range(n+1,q):
if(i%2!=0):
print(i,end=" ")
| [
"noreply@github.com"
] | jasirknm.noreply@github.com |
8e032812208772cafa364fc657e132f45704b3c0 | bde5dbf63ce34f61b0e4dbe36c4ab49e7e1d7e9c | /old/resnet18_ex3.py | 3ba3595b4b4fefd44900e5eca214f59a24f7e446 | [
"Apache-2.0"
] | permissive | killf/pytorch-cifar10 | 13dda528bb8e7a3aba4107eecd9c20acc47ba304 | 2bf864eeed72fd6b2dcbc5513d83eb611d7d86ef | refs/heads/master | 2021-05-27T07:50:02.847634 | 2020-04-16T23:48:21 | 2020-04-16T23:48:21 | 254,237,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,067 | py | import os
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.optim.lr_scheduler import LambdaLR, MultiStepLR
from torch.utils.data import DataLoader
from torchvision.datasets.cifar import CIFAR10
import torchvision.transforms as transforms
from torchvision.models.resnet import resnet18
from t... | [
"killf@foxmail.com"
] | killf@foxmail.com |
a16c93879e70cb13937180f7c8eb02f8bc56a853 | 9ee26754de512df4ce7c8e4c48c66a8ac6916f18 | /DataLoader.py | 707c3158683d1fa6eb24444e8c402919038084a4 | [] | no_license | ryumaggs/ComplexNN | 4d0b0aa40aed3a59cbac473e4acd0c6d5daedbf0 | 2da891e2b2b57d860931ecdbe89c3498e5a2a095 | refs/heads/master | 2023-04-01T22:50:07.382224 | 2021-04-08T13:16:06 | 2021-04-08T13:16:06 | 281,153,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | import tensorflow as tf
def Load(path):
'''
'''
f_in = open(path, 'r')
line = f_in.readline()
x_real = []
x_imag = []
y_real = []
y_imag = []
while(line != ''):
line = line[:-1]
line = line.split(',')
x_real.append(float(line[0]))
x_imag.append(float(line[1]))
y_real.append(float(line[2]))
y_im... | [
"ryu@colgate.edu"
] | ryu@colgate.edu |
f3179f6636a833a4370ae01a7632477aa089ac9b | 934678d8886d9ca2472a7a6af5cdf7654fb2487f | /infer.py | d633534b24ac3ba2d30236c4f4040dbdc5956ee9 | [] | no_license | suchuhong/paddleYOLOv3 | 560be68f07c266695f65bcd18b7bc647656b3abf | 80942589324a23b23b9cd85a04f9ec99d770d3cb | refs/heads/master | 2020-05-27T19:58:12.894050 | 2019-05-27T04:24:35 | 2019-05-27T04:24:35 | 188,770,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,918 | py | import os
import numpy as np
import paddle.fluid as fluid
import box_utils
import reader
from models.yolov3 import YOLOv3
import xml.etree.ElementTree as ET
def infer():
use_gpu = False
input_size = 608
model = YOLOv3(is_train=False)
model.build_model()
outputs = model.get_pred()
place = fluid... | [
"noreply@github.com"
] | suchuhong.noreply@github.com |
1a6e80b9bb2bbbf88d2ca308404b79804e540972 | a46cd09c2b1a984fc8733beba630b32a0e7a04df | /pythonteste/desafio55.py | b1a7536dcb9a466f55e3aa434a8823880e381b9c | [
"MIT"
] | permissive | dangiotto/Python | 36c7a4af706fdf6e0b6f56f879b50a1f9a55506c | 29a9d18d7595a5c21e65dafc39f7fd4c55d8971c | refs/heads/main | 2022-12-29T11:50:07.470877 | 2020-09-29T22:43:06 | 2020-09-29T22:43:06 | 299,753,324 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | mais = 0
menos = 0
for c in range (1,6):
peso = float(input('Informe o peso da {}ª pessoa : '.format(c)))
if c == 1:
mais = peso
menos = peso
else:
if peso > mais:
mais = peso
else:
menos = peso
print('A pessoa mais pesada tem {} KG.'.format(mais))
pri... | [
"danilogiotto100@hotmail.com"
] | danilogiotto100@hotmail.com |
51ef258d29175cb7831bfaf2b78003466bcbc2ea | e27e9c484b90e74c5b292ac938a82d49121d683f | /tests/test_address.py | dfdb8146ff8853bcc9099e107127e294350dce5b | [] | no_license | mickeystone/cryptotools | ce99ba69b29a29f64792408d63b104290150b0b0 | d7e5e4f312776ede5f71b0ed1105e338974a5ac4 | refs/heads/master | 2020-03-24T12:51:55.182415 | 2018-07-06T10:55:34 | 2018-07-06T10:55:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,055 | py | import unittest
import secrets
import urllib.request
import urllib.parse
from lxml import etree
from btctools.address import pubkey_to_address, script_to_address, hash160, address_to_script, address_type, ADDRESS
from btctools.script import push, OP
from ECDSA.secp256k1 import generate_keypair, PrivateKey, PublicKey
f... | [
"mc-dallas@hotmail.com"
] | mc-dallas@hotmail.com |
5e1002e62f5ddda4dd97a0fba653878027f285ab | d1c53def818f9c7e1bd660e3303a754f297aff43 | /code/ch7/6_9_a.py | 87ff65160d0731629c3f3095c98607c6d2920708 | [] | no_license | khimacademy/c104 | dcdcae13499e5b68905f09ea009e1a2b9f552e1c | 83443858d5b85c23c107fa09cd672d17549776ee | refs/heads/master | 2020-03-26T10:57:52.536935 | 2018-08-25T06:17:04 | 2018-08-25T06:17:04 | 144,822,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 645 | py | '''
6-9. 좋아하는 장소
favorite_places 딕셔너리를 만드세요. 딕셔너리 키로 쓸 이름을 세 개 생각하고 각 사람마다 좋아하는 장소를 1~3개 저장하세요. 이 연습문제를 조금 더 흥미롭게 만들려면 친구에게 좋아하는 장소 이름을 물어보세요. 딕셔너리에 루프를 실행하고 각 사람 이름과 좋아하는 장소를 출력하세요.
Output:
ever likes the following places:
- mt. verstovia
- the playground
- south carolina
erin likes the following places:
- hawaii
- ... | [
"sarang.khim@gmail.com"
] | sarang.khim@gmail.com |
414ea8595217197e54c34419406b88bdadf5f87d | 6b29dbfe527d9e1950d53fde913e05e2a58758ab | /server/tasks/dast.py | dcbc7b141dcf21d665840953ca8301bc3884d601 | [
"Apache-2.0"
] | permissive | parijatsahai/camcops | d7b2843b77bedee87b8298138bc8a33fe66c5178 | 09c7000060b546ad22b908e4245b1ff02940dd63 | refs/heads/master | 2021-01-21T09:20:43.670032 | 2015-07-02T15:42:59 | 2015-07-02T15:42:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,241 | py | #!/usr/bin/python2.7
# -*- encoding: utf8 -*-
"""
Copyright (C) 2012-2015 Rudolf Cardinal (rudolf@pobox.com).
Department of Psychiatry, University of Cambridge.
Funded by the Wellcome Trust.
This file is part of CamCOPS.
Licensed under the Apache License, Version 2.0 (the "License");
you may ... | [
"rudolf@pobox.com"
] | rudolf@pobox.com |
a4c252bad6d3b3e3972ec02f656853437fe2997e | b1599f517e62c6651c930c28c430ac3ff7d52bb9 | /src/apps/api/tests/test_profiles.py | 1c95fc5d70cd665d96d44fe058618e9d3fd7b8ce | [
"Apache-2.0"
] | permissive | HunDeMingMingBaiBai/competitions-v2 | 4d9ef93f14a3bc43c582c67b62904c6bcf0c19fb | 745b56274ada40b78cda6e91dd762f2d547cd841 | refs/heads/develop | 2023-08-11T06:02:49.780503 | 2021-09-09T04:39:42 | 2021-09-09T04:39:42 | 377,348,778 | 0 | 0 | Apache-2.0 | 2021-06-16T02:32:30 | 2021-06-16T02:32:29 | null | UTF-8 | Python | false | false | 9,799 | py | from django.urls import reverse
from rest_framework.test import APITestCase
from json import dumps
from api.serializers.profiles import OrganizationSerializer
from factories import UserFactory, OrganizationFactory
from profiles.models import Membership
class OrganizationPermissionTests(APITestCase):
def setUp(sel... | [
"noreply@github.com"
] | HunDeMingMingBaiBai.noreply@github.com |
682ee65e3b3619ab3edb8cc875be5f533710d491 | 88be8d0532c4190f386409cbdb957682537826bb | /a2.py | c9aaeb503178383fa7b784d3c64e73553aa8c601 | [] | no_license | taoxlei/pythone-chanllenge-code | c9e84c39a6c786082b2dbe89de285d45ec23ff4f | b7d837c4a2a13bbdb61c8587394d8fb8c4d16eb4 | refs/heads/master | 2022-04-27T00:58:12.652800 | 2013-11-28T13:43:05 | 2013-11-28T13:43:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98,921 | py | orginStr='''
%%$@_$^__#)^)&!_+]!*@&^}@[@%]()%+$&[(_@%+%$*^@$^!+]!&_#)_*}{}}!}_]$[%}@[{_@#_^{*
@##&{#&{&)*%(]{{([*}@[@&]+!!*{)!}{%+{))])[!^})+)$]#{*+^((@^@}$[**$&^{$!@#$%)!@(&
+^!{%_$&@^!}$_${)$_#)!({@!)(^}!*^&!$%_&&}&_#&@{)]{+)%*{&*%*&@%$+]!*__(#!*){%&@++
!_)^$&&%#+)}!@!)&^}**#!_$([$!$}#*^}$+&#[{*{}{((#$]{[$[$$()_#}!@}... | [
"lingyunyumo@gmail.com"
] | lingyunyumo@gmail.com |
ac334cf5eb6b2d7571fd321354c1331013b2da2f | 453c2179ebd6bfe86e30fca3924671248cbff4f8 | /polls/views.py | b7473eb6320791798adf4fc14fe7e7693a0d7d5a | [] | no_license | oyty/mysite | b0875c721933fdcf3630d53d50aba1148df80db5 | 486cfb044566cde710edabd1d52190e92b62b601 | refs/heads/master | 2023-02-23T17:46:28.567404 | 2021-01-30T10:27:11 | 2021-01-30T10:27:11 | 333,329,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,909 | py | from django.shortcuts import render
# Create your views here.
from django.http import HttpResponse
from django.db.models import Q, Sum, Count
from polls.models import Product
def index(request):
# # 数据插入的两种方式
# Product.objects.create(name='oyty', weight='111g', size='120*75*77', type_id=1)
#
# p = P... | [
"cooloyty@gmail.com"
] | cooloyty@gmail.com |
db0dfd08395653a664dbd60963525a118e951acf | c7882a23ea89c05cd9d670ca713108da2e786f3b | /src/utilities/models/wrnet.py | 2ee496be038bdd7b0b5a88363418b979ceec8e8e | [] | no_license | c-w-m/ldpc-decoders | 7513871f28eb34113edf129b3072ce8a60dc43ca | 4f541efbc8dd20b59ccc0ae4284ddfc6e339f6e4 | refs/heads/master | 2023-04-18T05:17:23.351576 | 2021-04-16T16:50:24 | 2021-04-16T16:50:24 | 358,638,672 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,204 | py | '''
code taken from: https://github.com/arberzela/ImageNet32-tensorflow/blob/master/WRN_main.py
TF implementation of results in: https://arxiv.org/pdf/1707.08819.pdf
Number of parameters in following model: imagenet32 - 1,595,320
'''
import tensorflow as tf
_BATCH_NORM_DECAY = 0.9
_BATCH_NORM_EPSILON = 1e-4
def c... | [
"craig.william.miller@gmail.com"
] | craig.william.miller@gmail.com |
b7a3c7491ece3a1f29a9bd9a42c46b6fc1f0e7ee | 03b704c6daec8113b7845ac3f11a3d56df930000 | /1. Básico/27- PassEEllipsis.py | 6214ecca0a43b9d282cc8e4a8df4099dd0c373aa | [] | no_license | AmandaRH07/PythonUdemy | fc31eed99a42a97500462bc1507ee4215a271019 | 143fb382f55e4be7ede9bd994f442b24f8762c4e | refs/heads/master | 2023-02-08T14:15:41.382018 | 2021-01-05T15:04:07 | 2021-01-05T15:04:07 | 291,131,929 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | valor = True
if valor:
# pass voltar depois e escrever o código ou
...
else:
print("tchau") | [
"amandarafahass13@gmail.com"
] | amandarafahass13@gmail.com |
95a78e0697cb46280fd58d9e07fb637d9f1a6c0b | 8234a8657664f12831daa71cf265f6d6732010f2 | /ilc_tools/filters.py | b3bc729745cf78b52bc65a46c4b2db0879ad193b | [] | no_license | LBJ-Wade/SZ-Filtering | fb778fc164a981c164cf7a13bb66a5f1cca2736f | 4bcb8a2600bec7b363c07cf6ed077b05ed73040b | refs/heads/main | 2023-04-04T04:46:59.968331 | 2021-01-04T22:15:51 | 2021-01-04T22:15:51 | 356,129,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,915 | py | import matplotlib.pyplot as plt
import numpy as np
from astropy.io import fits
from ilc_tools import misc
from scipy import interpolate
from scipy import ndimage
from scipy import signal
from pymf import make_filter_map
from ilc_tools import data_tools
import nifty5 as ift
def radialprofile_cmb(data, rmax=100, nbins... | [
"rpinto@smail.uni-koeln.de"
] | rpinto@smail.uni-koeln.de |
b655d4f9b4db58e142ef260d81f513e74d101882 | ded2c619df771c28203fd855a337c4ccdff816a7 | /stapled/lib/__init__.py | a48b95256c330b00767c57e41c1e6dca5a0d940f | [
"Apache-2.0"
] | permissive | Surfndez/stapled | b65c2f02152e34a9045a1f48f84eb06641ed1ccc | 86b9272adaf07549b7f2ecbd7950d9d327a8d06f | refs/heads/master | 2023-05-10T06:28:44.374940 | 2019-10-01T08:49:54 | 2019-10-01T08:49:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,881 | py | """
Various functions to deal with locally installed libraries.__doc__
Contains functions that finds libraries in ``stapled/libs`` and return Various
listing forms and functions to add libs to the python path.
This is meant for libraries that have a free license and that are not available
as debian packages. We packa... | [
"chris@greenhost.nl"
] | chris@greenhost.nl |
1970d0316668952d2087e13cade39010d449d122 | 44dc61f79ed697b1f9207aecb72e129afc80bd64 | /kvt/losses/focal_loss.py | 9f95b993901de03738edfde7ca1a71277ef3d1bf | [
"BSD-2-Clause"
] | permissive | samlinxyz/kaggle-understanding-clouds | 37711ec0a07f29a3273a050b4ad7c96b863390de | 22213077ebe027a1cca73efd148e241f81181986 | refs/heads/master | 2022-11-30T09:03:25.865023 | 2020-08-14T01:23:59 | 2020-08-14T01:23:59 | 285,413,159 | 0 | 0 | BSD-2-Clause | 2020-08-05T21:57:38 | 2020-08-05T21:57:37 | null | UTF-8 | Python | false | false | 2,408 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
class FocalLoss(nn.Module):
def __init__(self, gamma=0, alpha=None, size_average=True):
super(FocalLoss, self).__init__()
self.gamma = gamma
self.alpha = alpha
self.size_average =... | [
"pudae81@gmail.com"
] | pudae81@gmail.com |
47c7662f968130690ed6765123e2e6505261ef44 | 9f79a52d647ae0727b9df967bf9779acfcb9d0a5 | /Random Drafts/prime factor.py | 864f13a80904bf006f6b6a66352eaa3906157a67 | [
"MIT"
] | permissive | Kevinskwk/ILP | 2c82e495a6877d4de08c80a1ecd38b8ebb3d792e | 7a3925a22232d486a5a8f5df8255f9297fd73fec | refs/heads/master | 2020-07-06T08:35:44.081946 | 2019-08-18T04:09:25 | 2019-08-18T04:09:25 | 202,956,903 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | n=int(input(':'))
listf=[]
listpf=[]
for x in range(1,n+1):
if n%x==0:
listf.append(x)
print listf
for y in listf:
l=[]
for z in range(1,y+1):
if y%z==0:
l.append(z)
if len(l)==2:
listpf.append(y)
print listpf
| [
"noreply@github.com"
] | Kevinskwk.noreply@github.com |
b4cf72a707ccebd5377a2a20a4a4ce2e728c7ff6 | e9543720e53de3e387133497e66af3b039129dd8 | /extra_apps/DjangoUeditor/test_try.py | f6ca687e0165e7dc854378e96768e445628342b0 | [] | no_license | weicunheng/BookStore | d0e5782e45578bf84a36c98c2e029dfc10582959 | d2fd226e130627ae3b39470260ef0961796900a4 | refs/heads/master | 2020-03-25T08:35:07.862245 | 2018-08-17T13:42:33 | 2018-08-17T13:42:33 | 143,620,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | # coding:utf-8
from trade.utils import FileSize
MF = FileSize("36723678")
print(MF)
| [
"1261360292@qq.com"
] | 1261360292@qq.com |
c6237d72e9716dbbb5e79d81d46c0273ac31e4bd | 7b38f0efcc222e28ddfacec16239ac57c6915cf8 | /PythonSelenium/locators.py | 5b1a266e113d624eabf82d57758fa856b7412914 | [] | no_license | ChaithanyaRepo/PythonTesting | e6bb728137013e3ecbdac69a88bd8a2453137ee4 | 00ed637e96572dc6fa9a8fd826dd3f14809f66e6 | refs/heads/master | 2022-04-18T13:54:08.847939 | 2020-04-17T02:30:43 | 2020-04-17T02:30:43 | 256,381,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,934 | py | from selenium import webdriver
from time import sleep
driver = webdriver.Chrome(executable_path='/home/chaitanya/Documents/software/drivers/chromedriver_linux64/chromedriver')
# driver = webdriver.Firefox(executable_path='/home/chaitanya/Documents/software/drivers/geckodriver-v0.26.0-linux64/geckodriver')
driver.get("... | [
"nayakchanakya88@gmail.com"
] | nayakchanakya88@gmail.com |
55b72c60ab6537917927db1260ce8688c7d61b4b | fa94acebd82a527654a228186ddc6e8aff067d14 | /flaskbb/themes/drpalms/blueprints/calendar/views.py | 1c99fb3e48d94d4a1fc3d5905c43ac329af487b4 | [
"BSD-3-Clause",
"MIT"
] | permissive | jtom343/flaskbb | fa3645402ed3d3796e5389683b288160a8ceae61 | 5294587f2afc49c228b2b66ddd32c8632ef33ed7 | refs/heads/master | 2022-12-13T00:48:14.412261 | 2019-10-01T03:58:25 | 2019-10-01T03:58:25 | 211,943,806 | 0 | 0 | NOASSERTION | 2022-11-22T03:58:38 | 2019-09-30T19:54:05 | C++ | UTF-8 | Python | false | false | 1,593 | py | from flask import (
Blueprint,
current_app,
render_template,
url_for,
request,
redirect,
flash,
)
from flask_login import login_required, current_user
from flask_babel import gettext as _
from config import settings
from lib.util_json import render_json
from snakeeyes.blueprints.billing.forms import Sub... | [
"jtom343@gmail.com"
] | jtom343@gmail.com |
0fb9eee149e8e1314707960d82b1858bab694364 | ccb54253ade49adce593c9d944e080d34a779e59 | /uploader.py | b838fc5b8c17ae477c0df7d4a4cab2aa6f4dd3c4 | [] | no_license | kirillkuzin/prekol-backend | 16de1162970386169f74c08b95ceb76b50649911 | 4e9696e151f32b2c68696355fadb07cd1855fe5a | refs/heads/master | 2023-04-13T19:43:37.113090 | 2021-03-28T08:01:27 | 2021-03-28T08:01:27 | 352,021,673 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,455 | py | import csv
import asyncio
from tqdm import tqdm
from data import db, get_cities, save_place
async def main():
await db.connect()
cities = {}
cities_data = await get_cities()
for city_data in cities_data:
cities.update({city_data['title']: city_data['id']})
print(cities)
with open(... | [
"offkirillkuzin@gmail.com"
] | offkirillkuzin@gmail.com |
a36015f5613612fa2f21854f55e993893eecaad2 | 553c0d835da8807a9abf9ead626f490c017a182b | /0x0F-python-object_relational_mapping/model_city.py | 0aeb8491ca999d10cd138f091bc83450521631ce | [] | no_license | robertrowe1013/holbertonschool-higher_level_programming | 49c7d47b533b579da5582dcf4afb009d8319355b | 0669d897f8dd156f11e8a26f0850bc78187b07a1 | refs/heads/master | 2022-12-19T13:00:07.040357 | 2020-09-25T03:35:39 | 2020-09-25T03:35:39 | 259,423,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | #!/usr/bin/python3
""" city model """
from sqlalchemy import Column, Integer, String, ForeignKey
from sqlalchemy.ext.declarative import declarative_base
from model_state import Base
class City(Base):
""" city class """
__tablename__ = 'cities'
id = Column(Integer, primary_key=True, nullable=False)
na... | [
"robertrowe1013@gmail.com"
] | robertrowe1013@gmail.com |
d5070d491cc56d77d14d2e53c3b438857d146d2b | b3101e2551ca152229619dea05272334a438f7ee | /dbcalculatorv2.py | f78bc113b761b802bef7ca526745d47a2aaefdb4 | [] | no_license | db1985/Python-Test-Scripts | bc499b8c7b472f3c24b990a4640fbb0492698bfa | 730c765ad6aeabfaaddc107f4d698b63bbbdb91b | refs/heads/master | 2022-09-22T15:50:22.688566 | 2020-06-05T09:49:00 | 2020-06-05T09:49:00 | 268,920,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | #create a basic calculator
num1 = int(input("Enter 1st number:"))
num2 = int(input("Enter 2nd number:"))
choice = input("Enter +, -, *, /:")
if choice == "+":
result = num1 + num2
elif choice == "-":
result = num1 - num2
elif choice == "*":
result = num1 * num2
elif choice == "/":
resul... | [
"noreply@github.com"
] | db1985.noreply@github.com |
a1f6800ccccb1a4261c386a81ed7d202ada35784 | d6b031991b9755d52e982a6db3fed8a6569988fa | /dio.py | f583874173e9328566f3f1a3e54055298523e4e3 | [
"Python-2.0"
] | permissive | shun60s/Python-WORLD-Win10 | bf7f940b6ac20106ae8992581ca23848f7b51f6f | 45630d486512b7ab8c1a92c91ce87b464796192a | refs/heads/master | 2020-04-03T01:31:38.406619 | 2019-02-13T12:55:31 | 2019-02-13T12:55:31 | 154,933,399 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,945 | py | #coding: utf-8
#---------------------------------------------------------------------------------------------
# Description: A method of F0 estimation
# Input
# x : input signal
# fs : sampling frequency
# option : user setting (f0_floor (Hz... | [
"shun@example.com"
] | shun@example.com |
2e57111a6646a9d8c29ab97a7c98307d19b2d161 | b5b7f63d33aa445516d77302857550cf8d335427 | /obstacle.py | 92ece1d802adf909030c46240bade5acc3c13f0b | [] | no_license | swastik24/JetpackJoyride | 92a714002bc7c4b1d5dcc87c0a840ba4be4e185b | c49085c64fd415582eaec36359c9f26a1da1cd8e | refs/heads/master | 2022-04-12T07:09:26.761701 | 2020-01-21T20:00:37 | 2020-01-21T20:00:37 | 235,408,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,726 | py | from background import *
from character import *
from coin import *
import random
class obstacle:
_shape=["|","-","/"]
_powerup_structure=["2","x"]
def removeobstacle(self):
for i in range(board.y):
for j in range(board.pointertomygame(),board.pointertomygame()+board.size):
... | [
"mswastik764@gmail.com"
] | mswastik764@gmail.com |
8c2ed71f3f6628ddcb19c8e8a467e02d3839d336 | 34e64e8fc12f0768fe3b48677e6941c2577aec0d | /index.py | f703098fdd0195af0267e64c455c3a442a992cd8 | [] | no_license | spettinichi/openlayers-test | 2c0090b36319e918e1ce5cd7408da88d45c5a951 | 24cef36c1b1d6610ec7d3e17ebfd99341a18af82 | refs/heads/master | 2021-06-13T05:44:17.166748 | 2017-03-07T23:30:41 | 2017-03-07T23:30:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | import random
import json
from sys import stdout
from time import sleep
coords = {
'latitude' : 0,
'longitude' : 0
}
while (1):
coords['latitude'] = random.randint(-90,90)
coords['longitude'] = random.randint(-180,180)
json_string = json.dumps(coords)
print(json_string)
stdout.flush()
sleep(1) | [
"root@vps80361.vps.ovh.ca"
] | root@vps80361.vps.ovh.ca |
be4635db09dd2d056c1526e212b767694daff46f | f7fc260a5c894d80b4c3d4e22d1ffe5f504ed480 | /groups/migrations/0002_initial.py | f22f02b73b74e834b240c16d47bf6fcbaedc2760 | [] | no_license | CodifyLaboratory/bishmeet_backend | dc689daec21a98de8239337895cecbd437660650 | c3033b02b7f1d128e1b822986f2bfa594bf0836a | refs/heads/main | 2023-07-08T19:07:36.538465 | 2021-08-21T07:39:14 | 2021-08-21T07:39:14 | 398,242,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 863 | py | # Generated by Django 3.2.6 on 2021-08-20 10:05
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('grou... | [
"desm606@gmail.com"
] | desm606@gmail.com |
6f181ca8fbe6e15c253a3aa487f9fe774d3f0a0a | 49c2daf810d71e05ed5433f9e1171e1cc1f9d52e | /dowser/__init__.py | 4b935f0658446276f40d0dc2369c48c47e1dd0ab | [
"MIT"
] | permissive | appknox/dowser-py3 | 4cb6bec94cc23e34f037b3006cd52f286f5d3c18 | d570fcac5c228d629ace7affdd14401e0d657769 | refs/heads/develop | 2021-07-21T14:13:48.182610 | 2015-11-24T09:48:25 | 2015-11-24T09:48:25 | 46,715,372 | 6 | 8 | NOASSERTION | 2021-01-28T12:59:50 | 2015-11-23T11:16:36 | Python | UTF-8 | Python | false | false | 53 | py | from dowser.dowser import Root, ReferrerTree # NOQA
| [
"dhilipsiva@gmail.com"
] | dhilipsiva@gmail.com |
e2a19d39fceb295a71113b961358b852d6fb51ec | b03f6ffa2077780bdf5b7a0090d0a57d443c02ba | /웹스크레이핑_실습.py | 12360b857a4860ca9bc24df0fedb2b861482ad05 | [] | no_license | SUDON-NOH/Python_data | 69f02df13ee6f7521405c203f2f5561aadaa1755 | 6e2bfb10ce0199fe17d6fa6b24068479441e91cc | refs/heads/master | 2021-07-16T21:27:57.521899 | 2020-08-06T07:17:19 | 2020-08-06T07:17:19 | 198,587,775 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,728 | py | # 웹스크레이핑실습문제.py
from bs4 import BeautifulSoup
import pandas as pd
import numpy as np
import urllib.request as REQ
import urllib
# import json
# import folium
# 1.1
print('1.1', '-' * 50)
baseurl = 'http://www.menupan.com'
murl = '/restaurant/bestrest/bestrest.asp?pt=rt&areacode=dj201'
response = REQ... | [
"noreply@github.com"
] | SUDON-NOH.noreply@github.com |
9711b1491693de81959da0049fe79087eb1ddf0a | 35645f8111faa8b4d87c1572a125aac36d24499d | /linshan_luoty/merge_zip_crime_earnings.py | 4be0682e47aef94aec66168e553c9cf86e8d88c4 | [] | no_license | nlouie/course-2016-spr-proj-two | af8d268eba417fe15981de0a015be1fe06210b16 | 098d9cfb75bc9d783cf768eb733abbf55901e334 | refs/heads/master | 2020-12-26T01:12:06.236993 | 2016-05-16T00:42:52 | 2016-05-16T00:42:52 | 55,449,019 | 0 | 0 | null | 2016-04-04T22:10:08 | 2016-04-04T22:10:07 | null | UTF-8 | Python | false | false | 4,411 | py | import json
import datetime
import pymongo
import prov.model
import provenance
import uuid
# Until a library is created, we just use the script directly.
exec(open('../pymongo_dm.py').read())
exec(open('get_repo.py').read())
zip_location_crimes_db = repo[auth['admin']['name']+'.'+'zip_location_crimes']
zip_avg_earnin... | [
"programmer.lty@gmail.com"
] | programmer.lty@gmail.com |
fd237d95c58094e30fc70370ad5e53d529408be5 | 57fc5d54f5df359c7a53020fb903f36479d3a322 | /controllers/.history/supervisor/supervisor_20201127165503.py | 870391013e28d07767d47598a75b41d93fd5df4f | [] | no_license | shenwuyue-xie/webots_testrobots | 929369b127258d85e66c5275c9366ce1a0eb17c7 | 56e476356f3cf666edad6449e2da874bb4fb4da3 | refs/heads/master | 2023-02-02T11:17:36.017289 | 2020-12-20T08:22:59 | 2020-12-20T08:22:59 | 323,032,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,392 | py | import math
import numpy as np
from numpy import random
from numpy.core.fromnumeric import size
from numpy.lib.function_base import meshgrid
import utilities as utils
from deepbots.supervisor.controllers.supervisor_emitter_receiver import \
SupervisorCSV
# # from deepbots.supervisor.wrappers.tensorboard_wrapper i... | [
"1092673859@qq.com"
] | 1092673859@qq.com |
6b453f03561951c446a8b40db6f1d6e5df813429 | 0a9d1aca6ceb6982e05440e29d8dbd6c3015b858 | /zogglio/main3.py | babcedd227c84f57828b9b72ef8e914684624430 | [
"MIT"
] | permissive | zogglio/Pil_RotateImages | 2062b5976b8d3d3f0d681b5c6d9a78c36fddd163 | 04c8d2fec8628d79cdd6abebe8288d3500d3efb8 | refs/heads/main | 2023-01-28T03:19:54.143215 | 2020-12-11T23:00:50 | 2020-12-11T23:00:50 | 320,702,249 | 1 | 0 | MIT | 2020-12-11T22:57:11 | 2020-12-11T22:57:11 | null | UTF-8 | Python | false | false | 343 | py | from PIL import Image
# Abrir a imagem existente
imageOriginal = Image.open('panda.jpg')
# fazer a rotação.FLIP_LEFT_RIGHT
imageEspelhada = imageOriginal.transpose(Image.FLIP_LEFT_RIFHT)
# Mostrar a imagem original
imageOriginal.show
# mostrar a imagem rotacionada
imageEsoelhada.show()
# Salvar a imagem
img.save(... | [
"noreply@github.com"
] | zogglio.noreply@github.com |
5437a37ac12a9facdf23c097ec5be008cfcce7b9 | 62f893ecff745802f53835520e871e671c4eb111 | /plugins/operators/stage_redshift.py | 6e766e48b70c4353d87ffd4447e88fef864a30df | [] | no_license | friendkak/etl_pipeline_with_airflow | a40dd7fbcc067a26ab03d73433775a9bac31c901 | 1fc8e7f402d31871dbf055461948a0977e92345e | refs/heads/master | 2022-05-07T21:39:27.000176 | 2019-12-10T16:20:15 | 2019-12-10T16:20:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,480 | py | from airflow.hooks.postgres_hook import PostgresHook
from airflow.contrib.hooks.aws_hook import AwsHook
from airflow.models import BaseOperator
from airflow.utils.decorators import apply_defaults
class StageToRedshiftOperator(BaseOperator):
ui_color = '#358140'
copy_sql_date = """
COPY {} FROM '{}... | [
"aabid0193@gmail.com"
] | aabid0193@gmail.com |
3f826143961dc6846f3be08a916d426280fe3b9f | ac216a2cc36f91625e440247986ead2cd8cce350 | /appengine/monorail/search/test/backendsearch_test.py | dd5ed18ba10efc6e7ee3e923957dd55faaa32484 | [
"BSD-3-Clause"
] | permissive | xinghun61/infra | b77cdc566d9a63c5d97f9e30e8d589982b1678ab | b5d4783f99461438ca9e6a477535617fadab6ba3 | refs/heads/master | 2023-01-12T21:36:49.360274 | 2019-10-01T18:09:22 | 2019-10-01T18:09:22 | 212,168,656 | 2 | 1 | BSD-3-Clause | 2023-01-07T10:18:03 | 2019-10-01T18:22:44 | Python | UTF-8 | Python | false | false | 4,815 | py | # Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file or at
# https://developers.google.com/open-source/licenses/bsd
"""Unittests for monorail.search.backendsearch."""
from __future__ import print_function
from _... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
b8106e5924340ad358a10d584a8ca0cdb6474b72 | 3204246c32efaa8341f552c13bf7135b322cb270 | /scripts/tentabot_drl/tentabot_drl_config.py | 627ad9de62679ccda11b7f31b2ff16de30ad33b6 | [] | no_license | RIVeR-Lab/tentabot | 9f74f480d0fb8a0460c4bee98ac396328229d121 | 9ce2ba857d56f73a1097b449202f670e1074af61 | refs/heads/master | 2023-06-09T10:58:08.891666 | 2023-06-02T16:08:04 | 2023-06-02T16:08:04 | 234,122,206 | 38 | 15 | null | 2022-05-17T23:33:43 | 2020-01-15T16:22:03 | C++ | UTF-8 | Python | false | false | 17,822 | py | #!/usr/bin/env python3
'''
LAST UPDATE: 2022.04.03
AUTHOR: Neset Unver Akmandor (NUA)
Eric Dusel (ED)
E-MAIL: akmandor.n@northeastern.edu
dusel.e@northeastern.edu
DESCRIPTION: TODO...
NUA TODO:
'''
import rospy
import rospkg
import csv
import numpy as np
'''
DESCRIPTION: TODO...
'''
def write_dat... | [
"akmandor.n@northeastern.edu"
] | akmandor.n@northeastern.edu |
a10de8be7a530cb8a968b65af316c038668a877b | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/470/usersdata/282/112149/submittedfiles/Av2_Parte3.py | 00981b0e1e62d56207807f1fb8f1f85ec3f1759a | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | # -*- coding: utf-8 -*-
m=(int(input('Digite a quantidade de listas: ))
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
3655ae88d7540d09282c06da474ddd9c6b0e7dad | 1e92a800a70698eeeaaf7c9c6a990e23707865dc | /pwned/__init__.py | 0c91a6872bc2d8084a6cbb6b9d3ae3de54f6a75a | [] | no_license | yuriifreire/pywned | 21ad85719428ed9d3946d8090720686bc9738533 | 8a6aa21d79131cc779a58c19a65155b340d34ff3 | refs/heads/master | 2020-03-18T07:37:16.344041 | 2018-05-22T19:27:43 | 2018-05-22T19:27:43 | 134,460,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31 | py | from .pwned import check, main
| [
"yuriifreire@gmail.com"
] | yuriifreire@gmail.com |
2918ca9901abd71a46c9c87ccb1de609a18f0b0c | e7a2f8cdcb6bd6fe4cc80e446ddb0d5a7b497bed | /run_async/utils.py | d69454d10fa80231f3d02c2e9e80b660f2181eff | [
"MIT"
] | permissive | leriomaggio/async-ipython-magic | eebbd3a2fd866b70314715647f89a2b7f2c7fd4e | 595d4aec8ea027eb23da0f0ae765e20adc987dc4 | refs/heads/master | 2022-08-27T00:53:14.787536 | 2020-12-04T14:18:29 | 2020-12-04T14:18:29 | 66,557,604 | 21 | 3 | MIT | 2022-08-23T17:10:28 | 2016-08-25T12:53:33 | Python | UTF-8 | Python | false | false | 2,673 | py | """
"""
# Author: Valerio Maggio <valeriomaggio@gmail.com>
# Copyright (c) 2015 Valerio Maggio <valeriomaggio@gmail.com>
# License: BSD 3 clause
from IPython.utils.coloransi import TermColors, color_templates
from .settings import SERVER_ADDR, SERVER_PORT, CONNECTION_ID_SEP
COLORS = [color[1] for color in color_templ... | [
"valerio.maggio@gmail.com"
] | valerio.maggio@gmail.com |
4cdce4ddb73b2165948e69cc8a58f22ae467e772 | 0add7953d3e3ce2df9e8265102be39b758579753 | /built-in/TensorFlow/Official/cv/image_classification/ResnetVariant_for_TensorFlow/automl/vega/algorithms/nas/sm_nas/mmdet_meta_cfgs/dataset.py | 24541f70042b7db556335340b2d21c2c1bf9c144 | [
"Apache-2.0",
"MIT"
] | permissive | Huawei-Ascend/modelzoo | ae161c0b4e581f8b62c77251e9204d958c4cf6c4 | df51ed9c1d6dbde1deef63f2a037a369f8554406 | refs/heads/master | 2023-04-08T08:17:40.058206 | 2020-12-07T08:04:57 | 2020-12-07T08:04:57 | 319,219,518 | 1 | 1 | Apache-2.0 | 2023-03-24T22:22:00 | 2020-12-07T06:01:32 | Python | UTF-8 | Python | false | false | 6,221 | py | """Modules for Dataset."""
import random
from ..utils import dict2str, str_warp
from .module import Module
class Dataset(Module):
"""Class of dataset."""
attr_space = {
'img_scale': [
{'train': (512, 512), 'val': (512, 512), 'test': (512, 512)},
{'train': (800, 600), 'val': ... | [
"1571856591@qq.com"
] | 1571856591@qq.com |
6ced258c763dc4524d1b9b2e0f77056a5adccb17 | ffb87018f36ee5f8d0025febd10156ab9d6a0459 | /05_Countries_Capitals_GUI_v2.py | ca1e2b029157f40ec2346cb83f9a4116979e3cba | [] | no_license | NathanM3/Quiz-Program | 9b8ba2058ae071c7edf34cc56841101a2a8a6e4f | 0dcc288cc34b66320eeb9370215f60e4a0c41a49 | refs/heads/main | 2023-07-26T02:31:22.665012 | 2021-09-09T23:09:29 | 2021-09-09T23:09:29 | 389,466,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,844 | py | """Based on 05_Countries_Capitals_GUI_v1.py
This version adds to the main menu GUI by dealing with duplicate windows.
Taking code from the 'Help' class as it already deals with duplicates
Lines 198-201 and lines 181-184. Added padding to label (line 227)
"""
# importing modules to use within program
# tkinter module u... | [
"morrisonn2@middleton.school.nz"
] | morrisonn2@middleton.school.nz |
8efa3223acd3a9a6487c682356b2e6cb3f33484a | ae08fbd406a3523107176471df149bbb1006637f | /qa/rpc-tests/bipdersig.py | 6c1849312cdc9e36997a2acbb41a84d51d8c8676 | [
"MIT"
] | permissive | mirzaei-ce/core-popbit | 9e7676c95f4d7cb9ad73be456fc98c9aaea4aba3 | e4230fcbfdf8a5bca54fb636e3019c42d40f0a14 | refs/heads/master | 2021-07-25T23:25:24.765814 | 2017-11-02T16:00:48 | 2017-11-02T16:00:48 | 109,287,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,128 | py | #!/usr/bin/env python2
# Copyright (c) 2014-2015 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Test the BIP66 changeover logic
#
from test_framework.test_framework import PopbitTestFramework
from... | [
"mirzaei@ce.sharif.edu"
] | mirzaei@ce.sharif.edu |
c3f2cf99a8af7fe6d4ea17d7e13306e113ac0c83 | ad4ec1f4f670de4ec801008f61399d47f5381174 | /05_Django/05_model_relation/manytomany/migrations/0001_initial.py | d5c72dca15c1c46e920eacb5f5a38b6a8021ad2d | [] | no_license | minseunghwang/TIL | b6c0ce67ac86465b331b7430f22c66795c0eb246 | 12d829e51a611e3c2d1118a0e82becbdc6d0d89b | refs/heads/master | 2022-12-27T06:59:46.853273 | 2019-11-27T07:34:47 | 2019-11-27T07:34:47 | 216,502,881 | 0 | 0 | null | 2022-04-22T22:38:55 | 2019-10-21T07:21:24 | Python | UTF-8 | Python | false | false | 841 | py | # Generated by Django 2.2.6 on 2019-11-12 07:25
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Doctor',
fields=[
('id', models.AutoField(a... | [
"49888816+minseunghwang@users.noreply.github.com"
] | 49888816+minseunghwang@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.