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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c18d60c101cf021cb7502e1ab795bc93b85c90b2 | d532b85841b459c61d88d380e88dd08d29836d43 | /solutions/816_ambiguous_coordinates.py | e8f3eaf9f85148b54de335d76a563d0903a82e39 | [
"MIT"
] | permissive | YiqunPeng/leetcode_pro | ad942468df5506de9dc48a4019933f658e2a3121 | 4a508a982b125a3a90ea893ae70863df7c99cc70 | refs/heads/master | 2022-05-15T09:32:02.699180 | 2022-05-14T16:32:17 | 2022-05-14T16:32:17 | 182,453,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 910 | py | class Solution:
def ambiguousCoordinates(self, S: str) -> List[str]:
"""String.
"""
res = []
for i in range(2, len(S) - 1):
l = self._add_decimal_point(S[1:i])
r = self._add_decimal_point(S[i:-1])
for ll in l:
for rr in r:
... | [
"ypeng1@andrew.cmu.edu"
] | ypeng1@andrew.cmu.edu |
9788da8b4de7ba916379740dfda4c000d6c2d7d2 | 1d674f917a8cc927caccad6379b520a76bd86b39 | /.c9/metadata/environment/products/models.py | dabed12159b671b696d4c9501f818613d245c7aa | [] | no_license | Code-Institute-Submissions/project_shop | 612c8d44f58465b7e10ad4eea292860f1111c2c4 | 8158199d7d8abc7b81ef8a1b96aae015dc29294c | refs/heads/master | 2021-02-07T13:28:07.713206 | 2020-02-29T19:41:21 | 2020-02-29T19:41:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | {"filter":false,"title":"models.py","tooltip":"/products/models.py","undoManager":{"mark":-1,"position":-1,"stack":[]},"ace":{"folds":[],"scrolltop":0,"scrollleft":0,"selection":{"start":{"row":2,"column":0},"end":{"row":2,"column":0},"isBackwards":false},"options":{"guessTabSize":true,"useWrapMode":false,"wrapToView":... | [
"ubuntu@ip-172-31-23-168.ec2.internal"
] | ubuntu@ip-172-31-23-168.ec2.internal |
de5b67bf4bede60f07a29e7e3795d1182bf15531 | 1df00826ff83bb8e7a6175b2594c09c78bb76c41 | /sim/mujoco_env/base_demonstration_env.py | a430f05d7b0afea7f209b173dd208df56cfe9a8b | [
"MIT"
] | permissive | SudeepDasari/video_prediction-1 | 71046223dba00300eed592359b829215f3a0805a | ef0953b514aa1b7a1f5e96fd30aebef01334fb2d | refs/heads/master | 2020-04-02T01:21:15.605474 | 2018-12-13T04:19:52 | 2018-12-13T04:19:52 | 153,851,075 | 1 | 0 | MIT | 2018-10-19T23:13:15 | 2018-10-19T23:13:14 | null | UTF-8 | Python | false | false | 1,281 | py | from .base_mujoco_env import BaseMujocoEnv
class BaseDemoEnv(BaseMujocoEnv):
"""
Wrapper class which allows easy creation of demonstration tuned environments w/ Multiple inheritance
- Pros:
* Easy code reuse
* Test demo enviornmnet once and easily apply to new Action Space... | [
"sdasari@berkeley.edu"
] | sdasari@berkeley.edu |
2c2c8903d403e44545c9590c7a95dbd2ab02cb17 | aeb427e7e779d030f914662e56a094cf745a8800 | /zmanim_bot/zmanim_api/models.py | 80867cd3d3b86b22a584417eca1182d1646f5fde | [] | no_license | kakamband/zmanim_bot | f1f908cd8f112a25646183a10c9fd1a8c1ab1131 | 2446da00d00bcf947905eaae0ccd0c7465bd2ae7 | refs/heads/master | 2023-03-10T03:49:43.481971 | 2020-11-13T06:51:39 | 2020-11-13T06:51:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,149 | py | from __future__ import annotations
from typing import List, Optional, Tuple
from datetime import datetime, time, date
from pydantic import BaseModel
__all__ = [
'Settings',
'SimpleSettings',
'AsurBeMelachaDay',
'DafYomi',
'RoshChodesh',
'Shabbat',
'YomTov',
'Holiday',
'Fast',
... | [
"benyomin.94@gmail.com"
] | benyomin.94@gmail.com |
fd7e3b565aecf3af65b29e1e7268d81ad6deed71 | 234951b11d5b7fdf254cd1e713fde9c6c1c9cb3e | /classes.py | b3615ab6afc29b6db08b42d0fb33a986566ccae2 | [] | no_license | gordon26827/tronV1 | 15bd584c01a0d2c57a7e4d1872dcae0a4cb5c835 | 09bd80cc1f34044c71f0b68161baf0d81b535b0a | refs/heads/main | 2023-02-22T01:52:09.530204 | 2021-01-20T23:33:27 | 2021-01-20T23:33:27 | 331,459,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,840 | py | import pygame
from random import randint
bike_n = pygame.image.load("bike_n.png")
bike_s = pygame.image.load("bike_s.png")
bike_e = pygame.image.load("bike_e.png")
bike_w = pygame.image.load("bike_w.png")
width = 983
height = 598
players = [(217, 155, 0), (42, 42, 247), (109, 41, 255), (240, 240, 240)]
d... | [
"noreply@github.com"
] | gordon26827.noreply@github.com |
c8085e831df6d6a5f6e73fc2cdf44b01e3d08513 | 3a58280e0bd417f306a357bbbc53680c66b1769c | /python/yasl/vendored_tsl2561/__init__.py | da809f77a5d2917d997e8d2facb8fe172d019a05 | [
"Apache-2.0"
] | permissive | chripell/yasl | e39974fdc9d2457c3e0fcacb097ed7b07f84292e | 1cc920be58873dc3ae6e62bde1bc949a7fe05f31 | refs/heads/master | 2021-11-30T02:53:18.342159 | 2021-11-28T18:58:21 | 2021-11-28T18:58:21 | 165,526,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,479 | py | # The MIT License (MIT)
#
# Copyright (c) 2017 Carter Nelson for Adafruit Industries
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the ri... | [
"chri@evolware.org"
] | chri@evolware.org |
25540607bf75631f4df2367961a0213d0954ed22 | 0f4a48cf7b1b6e23197e97b9771f25c160290fed | /quarry/forms/main.py | a1b6a8efbebc75b2cc33d7375b21f900977b1ee3 | [] | no_license | arfamzr/jmg | 170bb245c7a67febd4b04842a99f06c33dea30e8 | 136e5dd4767f5e738e0fc4358d23a5c0c57b152f | refs/heads/master | 2023-03-13T00:03:23.043873 | 2021-02-24T05:42:46 | 2021-02-24T05:42:46 | 341,754,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,232 | py | from crispy_forms.layout import Div
from django import forms
from django.forms import formsets
from django.forms.models import formset_factory, modelformset_factory
from crispy_forms.helper import FormHelper, Layout
from crispy_forms.bootstrap import Div
from account.widgets import XDSoftDatePickerInput
from ..models... | [
"ijat191999@gmail.com"
] | ijat191999@gmail.com |
8e0d31432bf24af9a1fbe66b548405b05ed44705 | 117d3d4dc9c0fc86965c6f2f428be399102b5f06 | /application/mainGUI.py | ce8ae9a04cead61c0a9dfda7d61127a872aa9d9b | [] | no_license | anakpindahan/cryptography-1 | bd9bda54112e7ef5b9713ddbf05f7685377def4b | 958ba2a8541ab83d919db32c9dcad79de27bcc26 | refs/heads/main | 2023-07-19T10:23:04.509932 | 2021-09-06T04:46:26 | 2021-09-06T04:46:26 | 403,188,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,653 | py | from tkinter import *
from tkinter import filedialog as fd
import cryptoCommands
root = Tk()
root.title("Encrypt It")
root.geometry('480x400')
frame = Frame(root)
frame.grid()
def cipher():
plainText = plainTextVar.get()
key = keyVar.get()
mKey = mKeyVar.get()
bKey = bKeyVar.get()
value = ciphe... | [
"akeylanaufal@gmail.com"
] | akeylanaufal@gmail.com |
1c20fdfddb14b598d6123898144923a14342543e | 6aeedd0cddbb72bcbec956d0911ad980f0de84dd | /keras_text_cnn.py | aa55ca2ceb1ffe182d5ebc4f3e1bcd6164c2e54e | [
"MIT"
] | permissive | fedelopez77/cnn-sentences-classification | 255c5622e26e485f66f2b9457ec74f6694fdc20f | c9cd89f0bdbd45e991742dda38c9e5343dbd5074 | refs/heads/master | 2020-03-12T01:04:09.674947 | 2018-05-17T07:37:38 | 2018-05-17T07:37:38 | 130,366,287 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,865 | py |
from keras.layers.embeddings import Embedding
from keras.layers.core import Reshape, Dense, Dropout
from keras.layers.convolutional import Conv2D, MaxPooling2D
from keras.layers.merge import Concatenate
from keras.models import Model
from keras.layers import Input
from keras import regularizers
from keras.callbacks im... | [
"fedelopez77@gmail.com"
] | fedelopez77@gmail.com |
4e6b5f54446ffc15fd3f9b680aaad9f785eeef70 | 76d29feb7e37d26df792f8584f79b3a36947f314 | /Desktop/cms/proTwo/settings.py | 5ef67b4a3e0eb53a74bb7b89f4adb2d7f6aed644 | [] | no_license | Nihaa21/test | 5dfc2bb16c09d913effc6ec9eb3a9bb8261898b2 | 8916442dddf2a336ddaa6b8b5d5afcdb573d8112 | refs/heads/master | 2023-03-02T06:36:48.872926 | 2021-02-03T11:18:41 | 2021-02-03T11:18:41 | 335,598,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,175 | py |
from pathlib import Path
import os
import django_heroku
import dj_database_url
from decouple import config
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
TEMPLATE_DIR= os.path.join(BASE_DIR,'templates')
STATIC_DIR = os.path.join(BASE_DIR,'static')
#... | [
"nihaghali554@gmail.com"
] | nihaghali554@gmail.com |
596d84deb4fdb9018e23cbe15c900d2818d55eb8 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /XrQnBBLaGRkXZuM8n_8.py | 113e0e0122b1a48f075923d4f4bd9b5bed92ad1c | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77 | py |
index_filter = lambda inx,string: "".join(string[i].lower() for i in inx);
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
d363763e565b0aa03eae97cfef6890a850266f45 | 63db5fa33cae990bf62a27ca53bbe027abe62df0 | /Transforms/GetIngressSource.py | 6a0f2a8a992dd8168259690b634220f78f29bdc8 | [] | no_license | znb/Elastic-Elephant | 92cf5178c1412e85199a4d98737c693cbd8df0cc | 51df26246c903e0ae6cce00b201b0888be456982 | refs/heads/master | 2020-04-06T04:31:02.173052 | 2017-06-05T14:21:52 | 2017-06-05T14:21:52 | 34,060,453 | 31 | 6 | null | null | null | null | UTF-8 | Python | false | false | 1,336 | py | #!/usr/bin/python
# Pull all the ingress sources attached to an ingress rule
from MaltegoTransform import *
import boto.ec2
import sys
from init import load_credentials
creds = load_credentials()
REGION = creds[2]
m = MaltegoTransform()
m.parseArguments(sys.argv)
ingress_src = m.getVar("GroupID")
try:
conn = bo... | [
"matt.erasmus@ticketmaster.co.uk"
] | matt.erasmus@ticketmaster.co.uk |
6cdb34336e4cac23410e1f13ecbba2c8c37a0f52 | 574b2f4137d9606dc347dda42428d7204eb6923a | /MVFF_Version2/mvff_rfcn/symbols/resnet_v1_101_motion_vector_rfcn.py | 95296f0098baa2a9f95e1d0270956d84b1b15ae8 | [
"MIT"
] | permissive | OrdinaryCrazy/mvff-sideversions | 09ad6e4522efeb236a4eab1c9f5da98872d71626 | 5ebdbf0187145abf53ad8e2c661938134296ae47 | refs/heads/master | 2020-07-04T22:46:49.946795 | 2019-09-15T03:32:47 | 2019-09-15T03:32:47 | 202,447,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 76,184 | py | # --------------------------------------------------------
# Rivulet
# Licensed under The MIT License [see LICENSE for details]
# Modified by Boyuan Feng
# --------------------------------------------------------
# --------------------------------------------------------
# Deep Feature Flow
# Copyright (c) 2017 Microso... | [
"zhangjingtun@gmail.com"
] | zhangjingtun@gmail.com |
a668d9bb5a7cb156f866167d1f2b3499bdb9adb9 | 1be23b236762d927f5a4ab97a177b57e4f26bac6 | /interface/zimp/ui/cligame.py | f7e1162670b697fb6053085b4c01f88f23bc78d8 | [] | no_license | rikkimax/zimp-interface | 74db39183982df5e472cd366f15af5a1bd85d491 | 0701e1ed53581fdd5fa4c564931c4603d1fdd646 | refs/heads/master | 2021-01-22T03:30:00.430807 | 2014-03-22T10:03:21 | 2014-03-22T10:03:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80 | py | from zimp.engine.gamestate import GameState
class CliGame(GameState):
pass | [
"alphaglosined@gmail.com"
] | alphaglosined@gmail.com |
845297b4a9a26e32a464c24deb23f097735ec0e6 | 699a147205ed3b59cfc05281896121675e1fe8fb | /properties/pipelines.py | ec6cf90e9b0f8b96a8a3e43958e295d188331081 | [] | no_license | FSund/finn_car_scraper | 9e1c04ec667cf912f6ac217b1767a35cdcf8e708 | 9d795f033dae1fe19964b81b1e059771ad474fad | refs/heads/master | 2022-12-03T14:20:15.441552 | 2020-08-16T07:13:29 | 2020-08-16T07:13:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 905 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html
import re
import locale
class PropertiesPipeline(object):
"""{"size": "111 m\u00b2", "price": "2\u00a0900\u00... | [
"filip.sund@gmail.com"
] | filip.sund@gmail.com |
933ba9394395b4ad2fe19c7f013fd1522c8d357b | 440f814f122cfec91152f7889f1f72e2865686ce | /generate/configure/extension/python/ccevent/npc/ttypes.py | 582acb07b04c6ebecdbaf7bccaf76b6bd1134483 | [] | no_license | hackerlank/buzz-server | af329efc839634d19686be2fbeb700b6562493b9 | f76de1d9718b31c95c0627fd728aba89c641eb1c | refs/heads/master | 2020-06-12T11:56:06.469620 | 2015-12-05T08:03:25 | 2015-12-05T08:03:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 5,043 | py | #
# Autogenerated by Thrift Compiler (0.9.0)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
# options string: py
#
from thrift.Thrift import TType, TMessageType, TException, TApplicationException
import ccevent.ttypes
from thrift.transport import TTransport
from thrift.protocol import TBinar... | [
"251729465@qq.com"
] | 251729465@qq.com |
fc9e72242eea798bc9571ab6336db70ebd20e5a0 | 51abb655fa400339fd54d91e660cc92f4d2a8f48 | /blog/app/forms.py | ec1335fa5c958caf69ac7258a283ea73c7cd1b67 | [] | no_license | 4LittleBlips/flask-project | b2951ee98e5e8d20b43f571cc6036f2ab300bd09 | 387328312f9449e035df0a88f4056249a1b2951e | refs/heads/master | 2022-12-16T01:59:36.696029 | 2020-09-25T13:52:31 | 2020-09-25T13:52:31 | 298,585,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,103 | py | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, BooleanField, SubmitField, TextAreaField, HiddenField
from wtforms.validators import DataRequired, Email, ValidationError, EqualTo, Length
from app.models import User
class LoginForm(FlaskForm):
username = StringField('Username', valid... | [
"samharb2002@hotmail.com"
] | samharb2002@hotmail.com |
6b1c9c319e7f9beb81ae9fbc9678d8a80adec444 | e1a3dc7fb567acc38886ac3b4f5521c5991585cf | /sampling_method.py | ef4a11d712fe79bcb293fa76785fc1cb2e8788e3 | [] | no_license | cdmaok/MinQuestion | 306c3b0def940483154528a0fd153b04b1003808 | d6fcce7920c27e031bf9877908a047ab5abb745a | refs/heads/master | 2021-01-11T17:58:19.837970 | 2017-04-20T12:20:34 | 2017-04-20T12:20:34 | 79,885,125 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,197 | py | # -*- coding: utf-8 -*-
from __future__ import division
import numpy as np
import random
import pandas as pd
import os
from collections import Counter
import math
import threading
from sklearn import tree
from sklearn.preprocessing import Imputer
from sklearn import linear_model
from sklearn.model_selection... | [
"398144247@qq.com"
] | 398144247@qq.com |
18d25718ec8d10097b4c9d0a54a03b783d240270 | f05396eba183ff093143416c95a0ccfc09870089 | /relay.py | dd5c12dea4c164fc54e543f3027d6692a8b97d2a | [] | no_license | uabryanblue/vhive-remote-vertical-farming | 8cbfaac127685c8ada7cf7a177b550d16e1a6151 | d0466c8d1a70a5ef119accf96f894e94cea78f2e | refs/heads/main | 2023-04-11T23:55:53.133951 | 2021-05-18T17:33:44 | 2021-05-18T17:33:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | # set up relays
from gpiozero import OutputDevice
import time
import sys
# devices specified by GPIO number
# gpiozero.OutputDevice(pin, *, active_high=True, initial_value=False, pin_factory=None)
air_pump = OutputDevice(18, False)
nutrient_pump = OutputDevice(23, False)
solenoid = OutputDevice(24, False)
l_board = Ou... | [
"noreply@github.com"
] | uabryanblue.noreply@github.com |
86fae73bd34898186a53fb9e90055e6d404664e8 | efae4a5ad2671d80b80c706cb8abe6521dba6627 | /clean_md_commodities.py | e05fc37872e4469ad0c4cf90781d321ec79b266f | [] | no_license | lweeks20/resourcespace-migration | 0d988eaa4ffdedb434d28e1119ed6597eb43922d | 526466cde1fd4b96f1d78e589746d57be400db8d | refs/heads/master | 2020-12-22T14:32:37.052616 | 2020-01-23T00:02:12 | 2020-01-23T00:02:12 | 236,824,931 | 0 | 0 | null | 2020-01-28T19:43:07 | 2020-01-28T19:43:06 | null | UTF-8 | Python | false | false | 1,090 | py | import pandas as pd
import numpy as np
import sys
np.set_printoptions(threshold=sys.maxsize)
# read in both excel files into pandas dataframes
md_files = pd.read_excel('G:\\datasets\\mining_district\\mining_district_files_12202019.xlsx')
commodities = pd.read_excel('G:\\datasets\\mining_district\\nv_commodities... | [
"noreply@github.com"
] | lweeks20.noreply@github.com |
404f340763feb5d585bb6a02180e22d960c4160b | 1dd72195bc08460df7e5bb82d3b7bac7a6673f49 | /api/app/utils/dewpoint.py | 83e9717eda039cd0cedfaf74f0cdd88dca5fba86 | [
"Apache-2.0",
"MIT"
] | permissive | bcgov/wps | c4347c39cadfad6711502d47776abc8d03895593 | 0ba707b0eddc280240964efa481988df92046e6a | refs/heads/main | 2023-08-19T00:56:39.286460 | 2023-08-16T18:03:06 | 2023-08-16T18:03:06 | 235,861,506 | 35 | 9 | Apache-2.0 | 2023-09-11T21:35:07 | 2020-01-23T18:42:10 | Python | UTF-8 | Python | false | false | 777 | py | """ This module contains functions related to dewpoint.
"""
import math
import logging
logger = logging.getLogger(__name__)
def compute_dewpoint(temp, relative_humidity):
""" Computes dewpoint based on code from the legacy system.
See: https://chat.developer.gov.bc.ca/channel/wildfire-wfwx?msg=vzjt28hWC... | [
"noreply@github.com"
] | bcgov.noreply@github.com |
444565106d7d6d7c0ba515f706b193908140e983 | 7eae6569ecbdfcd23976191cbce411567afaddff | /Command/composite_command.py | 1b079e16db06f31c58e968b73a05bb99e737a0d4 | [] | no_license | MihailMihaylov75/DesignPatterns | d016386d53ddbde604745b9937c580f0556b3f48 | 496918aeada2b8447e9e1441fc02a4a886262046 | refs/heads/master | 2023-01-13T03:27:57.700995 | 2020-11-23T18:00:02 | 2020-11-23T18:00:02 | 293,622,074 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,183 | py | __author__ = 'Mihail Mihaylov'
# Composite Command a.k.a. Macro
# also: Composite design pattern ;)
import unittest
from abc import ABC, abstractmethod
from enum import Enum
class BankAccount:
OVERDRAFT_LIMIT = -500
def __init__(self, balance=0):
self.balance = balance
def deposit(self, amount... | [
"chakala1975@gmail.com"
] | chakala1975@gmail.com |
c4a74100a95490a0390254c4f1815bbed38bad99 | a62d29004fe56d6d580044d1f4dc32a8f32e60de | /shared_functions.py | a0709d64371bffb20bdcde1a37c39b20889373ff | [] | no_license | Lianathanoj/table-tennis-automation | 19918981f1a358bfbce2e3d12a5ea576aaf301cc | f770b0033561fb2b4c1e1acadde5742de33aec15 | refs/heads/master | 2022-08-08T04:12:48.522997 | 2022-07-23T21:47:01 | 2022-07-23T21:47:01 | 102,046,862 | 0 | 0 | null | 2022-01-21T05:27:20 | 2017-08-31T21:26:27 | Python | UTF-8 | Python | false | false | 2,985 | py | from warnings import filterwarnings
filterwarnings("ignore")
import os, sys
from apiclient import errors
from oauth2client.file import Storage
from oauth2client import client
from oauth2client import tools
from re import split
try:
import argparse
flags = argparse.ArgumentParser(parents=[tools.argparser]).par... | [
"jlian@gatech.edu"
] | jlian@gatech.edu |
b60102d9bf012dfb2866d9309bb23d0adc4ee66e | a379686a0baf3824691edcb897c8ba2e02aebb17 | /dic.py | f7c5dc09d3576082ab278fb895e2bb613552f437 | [] | no_license | bas87/Hangman | e67a71770ccf1d3a568f6adaeddc1cd58d7a57ba | 1d342a78f1512f797fee5895991bc809d51c1e72 | refs/heads/master | 2016-08-11T22:11:23.043257 | 2015-12-13T18:20:09 | 2015-12-13T18:20:09 | 47,745,787 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,060 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import os, sys
import random,re
class WordReader:
default_words = u"airplane home school"
def __init__(self, filename, min_length = 5):
self.min_length = min_length
filename = os.path.join(os.path.dirname(os.path.realpath(__file__)), filename)
... | [
"toman@devzone.cz"
] | toman@devzone.cz |
fe96d782627bf563ef2b14a3f77efcccdcf594f1 | 92754bb891a128687f3fbc48a312aded752b6bcd | /Algorithms/Python3.x/463-Island_Perimeter.py | 34e7693ea8b1084994a2b09637c307905a7e1e11 | [] | no_license | daidai21/Leetcode | ddecaf0ffbc66604a464c3c9751f35f3abe5e7e5 | eb726b3411ed11e2bd00fee02dc41b77f35f2632 | refs/heads/master | 2023-03-24T21:13:31.128127 | 2023-03-08T16:11:43 | 2023-03-08T16:11:43 | 167,968,602 | 8 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,817 | py | # Runtime: 600 ms, faster than 47.41% of Python3 online submissions for Island Perimeter.
# Memory Usage: 13.8 MB, less than 25.00% of Python3 online submissions for Island Perimeter.
class Solution:
def islandPerimeter(self, grid: List[List[int]]) -> int:
perimeters = 0
len_row, len_col = len(... | [
"daidai4269@aliyun.com"
] | daidai4269@aliyun.com |
1269bac5e53b2f4357476eb85fc432e651d179db | 6f93efe976e1484fe526a6ba82c0cd277975f74f | /code/attack_perception.py | 64831ea85cc5c588411d6737b2c2e8b9423a320b | [] | no_license | JerishDansolBalala/FeatureSpaceAtk | 2629c8b63de8f25854371f065fc93d98957ce24d | fce2aedc511f925e8033c523e9a3a64a9a1abd17 | refs/heads/master | 2020-09-09T20:49:52.355462 | 2020-04-21T01:15:52 | 2020-04-21T01:15:52 | 221,565,952 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,013 | py | # Train the Style Transfer Net
from __future__ import print_function
import numpy as np
import sys
np.set_printoptions(threshold=sys.maxsize)
import tensorflow as tf
import os
import settings
task_name = "imperceptability"
data_set = "imagenet" # "imagenet"
model_name = "imagenet_normal"
decoder_name ... | [
"simpleword2014@gmail.com"
] | simpleword2014@gmail.com |
2c9f8b16f0b649a13821363189a71d563ab46156 | a082af407c1e049942ca3b08471b52924dd7ef70 | /serve.py | e19de82da4cba9ebcc45df3eccb33a975a147c28 | [] | no_license | ctb/meep | 57760f1a7adbb53050ecbe0ae7c30e7068723e0f | 2e15284b40a920acdc011a26c16f2adeb5bda653 | refs/heads/master | 2021-01-22T18:23:41.696558 | 2012-04-26T18:09:53 | 2012-04-26T18:09:53 | 3,142,298 | 0 | 24 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | from meep_example_app import MeepExampleApp, initialize
from wsgiref.simple_server import make_server
initialize()
app = MeepExampleApp()
httpd = make_server('', 8000, app)
print "Serving HTTP on port 8000..."
# Respond to requests until process is killed
httpd.serve_forever()
# Alternative: serve one request, then... | [
"titus@idyll.org"
] | titus@idyll.org |
9eb260f2bffd639a620f45023fb160561e99239c | 809582fe3345aff92faba9a179115d3c2806027a | /Manifest.py | c34fed896e2dacfb304938a80f0d17aa4884ec6d | [] | no_license | markfickett/gors | dd8e24f373563a48d1290e00b0d17409a939429d | 539ebba280dac29f22fa358400845a99433f48ae | refs/heads/master | 2020-05-13T06:34:28.667209 | 2012-10-12T04:51:46 | 2012-10-12T04:51:46 | 822,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | import logging
logging.basicConfig(
format='[%(levelname)s %(name)s] %(message)s',
level=logging.INFO)
import enum
import webbrowser, urllib2, xml, email, time, optparse, os
import plistlib
import threading
VERSION = (0, 1)
VERSION_STRING = '.'.join([str(v) for v in VERSION])
| [
"mark.fickett@gmail.com"
] | mark.fickett@gmail.com |
37fb97e45b8603215c2c999f3363dc847d0ee683 | edcd74f8f65119bdbe737360c2ca33b4a6da160a | /python/problem-matrix/special_positions_in_a_binary_matrix.py | 2c1cb53093621131e77d527d634a8374cfd560c9 | [] | no_license | hyunjun/practice | 72e83de6a1d5e04ddcd16526f16110ea2dd00373 | 5376dd48b1cefb4faba9d2ef6a8a497b6b1d6c67 | refs/heads/master | 2023-08-31T07:00:37.320351 | 2023-08-17T07:29:24 | 2023-08-17T07:29:24 | 2,704,126 | 3 | 2 | null | 2022-12-14T20:25:07 | 2011-11-03T18:28:44 | Python | UTF-8 | Python | false | false | 1,249 | py | # https://leetcode.com/problems/special-positions-in-a-binary-matrix
from typing import List
class Solution:
# runtime; 168ms, 100.00%
# memory; 14.2MB, 16.67%
def numSpecial(self, mat: List[List[int]]) -> int:
R, C, cnt = len(mat), len(mat[0]), 0
for r, m in enumerate(mat):
... | [
"hyunjun.chung@gmail.com"
] | hyunjun.chung@gmail.com |
e1c8d82aff4eaedf094895ca6212154433f582dd | 26d39d416573319c5b477ad70b8dd99bfea1a959 | /crm/apps.py | 7598b1416ae2ce7478ddbb1e7b44be33474931f0 | [] | no_license | Koha90/crm_fg | 59fcf280a110d39ccde2b379ae07476c16c8c717 | 2d97729e6f315a901ed153da90abc1cd44414aed | refs/heads/master | 2023-02-28T13:55:01.202036 | 2021-02-08T18:35:40 | 2021-02-08T18:35:40 | 335,657,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | from django.apps import AppConfig
class CrmConfig(AppConfig):
name = 'crm'
verbose_name = 'CRM'
| [
"aleksey.jake@gmail.com"
] | aleksey.jake@gmail.com |
7a508448a497c81e716884a0444d226477e22d83 | 6bb30e928513cda55a54c9d3880512ea9eba5f56 | /vps/vultr/regions.py | 7720d46cff610eb8f39f5fce85c02253f99ffd23 | [
"BSD-3-Clause"
] | permissive | germfue/vps-tools | 9f41a8c9da522c227d597140ea3fe637143c5887 | 90fa39403be747b6ec73697064a58bab8d575526 | refs/heads/master | 2021-06-15T18:14:50.026943 | 2017-03-26T15:45:28 | 2017-03-26T15:45:28 | 80,643,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,245 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2016, Germán Fuentes Capella <development@fuentescapella.com>
# BSD 3-Clause License
#
# Copyright (c) 2017, Germán Fuentes Capella
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the follo... | [
"github@gfc.33mail.com"
] | github@gfc.33mail.com |
65b3e86687880c869c80396e9b072a135c440d24 | ef87ad1790aed1a7f2f24a2cdedaf5d815309fef | /scripts/main_solo12_demo_estimator.py | a7807ada42edd50103e71a1cb90e7439a81bc9c0 | [
"BSD-2-Clause"
] | permissive | paLeziart/quadruped-reactive-walking | 4f9092205e31d7231ae094e17cbbe7438acdd055 | 2fd5429afc19a2a33aa8afc0bf16b750ad29c7f0 | refs/heads/devel | 2023-05-12T10:56:43.801864 | 2021-06-10T08:26:01 | 2021-06-10T08:26:01 | 322,542,716 | 7 | 4 | BSD-2-Clause | 2021-04-20T12:54:20 | 2020-12-18T09:02:42 | Python | UTF-8 | Python | false | false | 6,901 | py | # coding: utf8
from utils.logger import Logger
import tsid as tsid
import pinocchio as pin
import argparse
import numpy as np
from mpctsid.Estimator import Estimator
from utils.viewerClient import viewerClient, NonBlockingViewerFromRobot
import os
import sys
sys.path.insert(0, './mpctsid')
SIMULATION = True
LOGGING =... | [
"odri@furano.laas.fr"
] | odri@furano.laas.fr |
2b87db4e14f1272da1ee35b3bc1503ec082556a5 | d39d1a13750cfe8d4b117a22ce026a8e2d25c20e | /models.py | 76e3c0d6dfc304c47882ea8aba47cd59ca536975 | [] | no_license | pocket-j/Movie_ticket_booking_system | bd4b441c80f29142bf64e82b29f6fa7df048504b | bcaf0447feb1dbf8af4de932e4e5f620c1320c2d | refs/heads/main | 2023-07-12T19:39:24.319482 | 2021-08-19T21:16:03 | 2021-08-19T21:16:03 | 398,071,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,654 | py | import sqlite3
class database:
def __init__(self):
self.conn = sqlite3.connect('movies.db')
self.create_database()
self.populate_database()
def __del__(self):
self.conn.commit()
self.conn.close()
def create_database(self):
self.create_table_u... | [
"noreply@github.com"
] | pocket-j.noreply@github.com |
4d694cebc77c9de5da773ceb56aa01a9e6ec5e73 | 7950c4faf15ec1dc217391d839ddc21efd174ede | /leetcode-cn/0710.0_Random_Pick_with_Blacklist.py | 3b7bb299f5cb18c059cfea8c345313621ac0f66e | [] | no_license | lixiang2017/leetcode | f462ecd269c7157aa4f5854f8c1da97ca5375e39 | f93380721b8383817fe2b0d728deca1321c9ef45 | refs/heads/master | 2023-08-25T02:56:58.918792 | 2023-08-22T16:43:36 | 2023-08-22T16:43:36 | 153,090,613 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,892 | py | '''
66 / 68 个通过测试用例
状态:超出时间限制
'''
class Solution:
def __init__(self, n: int, blacklist: List[int]):
black = set(blacklist)
self.white = [i for i in range(n) if i not in black]
def pick(self) -> int:
return choice(self.white)
# Your Solution object will be instantiated and called as ... | [
"laoxing201314@outlook.com"
] | laoxing201314@outlook.com |
55d5c6d576016a5fcd1aa217737c43f2d162ca7e | bbbf80a7db71031a2e8608b1dc100f7d35e5316a | /SHINE_LIB/Evolution/Selector.py | 100989e0ff4acf9a5ff66ac83126f9da2e7a8fc4 | [] | no_license | ouaguenouni/Illuminated_Learning | 82d6404879b332688254ec8af07599507f6e8899 | 99e06f9af773dadf56fe71b4185a5caff6445c43 | refs/heads/master | 2023-02-14T13:28:50.293463 | 2021-01-14T11:51:47 | 2021-01-14T11:51:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,182 | py |
from .Archive import *
from deap import algorithms
from deap import base
from deap import benchmarks
from deap import creator
from deap import tools
from .grid_management import *
class Selector():
def __init__(self, archive_class, **kwargs):
self.archive = archive_class(k=kwargs["nov_k"], lambda_ = kwar... | [
"ouaguenouni.hachemi@gmail.com"
] | ouaguenouni.hachemi@gmail.com |
a06a2166be08f9c98592869160cbf1bc3e7f9086 | 4ce093f592839370ec677f6987d6d758cf3fd862 | /junk_trainer.py | 73c6dbb429468de1ff45b189d87c47bdab4a7d5d | [] | no_license | KonstantinPakulev/cohortney | 935c3db916197275dc1be9fa768f24b591251351 | 67973c7b60598572e4c792efca0623e712777ca6 | refs/heads/main | 2023-05-01T12:25:21.165347 | 2021-05-14T01:43:04 | 2021-05-14T01:43:04 | 367,213,053 | 0 | 0 | null | 2021-05-14T01:02:15 | 2021-05-14T01:02:15 | null | UTF-8 | Python | false | false | 37,248 | py | """
This file contains trainers, that conduct training of the model according to considered methods
"""
import time
import numpy as np
from src.utils.metrics import purity, info_score
import torch
import math
from sklearn.cluster import KMeans
from src.networks.lstm_pp import LSTMMultiplePointProcesses
class Trai... | [
"noreply@github.com"
] | KonstantinPakulev.noreply@github.com |
fe0d86c917fe8a4b58fe67ae395e3a0c4e53093e | 2d566fd55879a07940ed04189982932b37754349 | /portal_inbox/controllers/controllers.py | 034b80f9f75bc11cfe7812ebec0180660ff7f0d5 | [] | no_license | ETharwat/fogits | e3ab23c1ebc766e2094423552b08b0f986ebf42f | e96aa472cc272fe05b6dc1bd768db270ba753666 | refs/heads/main | 2023-04-14T05:32:58.513012 | 2021-04-09T23:53:14 | 2021-04-09T23:53:14 | 356,424,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,084 | py | # -*- coding: utf-8 -*-
from odoo import http, _, fields
from odoo.http import request
from odoo.addons.portal.controllers.portal import CustomerPortal
class MessagesPortal(CustomerPortal):
def _prepare_portal_layout_values(self):
values = super(MessagesPortal, self)._prepare_portal_layout_values()
... | [
"eslam.saber@peerless-tech.com"
] | eslam.saber@peerless-tech.com |
e5ca7c47c8ee2910e8d577565d2345ac0543ef91 | ab0ececf2fa5dac3996f5e3201e464a2933bbeb0 | /remainder/asgi.py | ff1ab612eff3185a46f015b16c7de7c60685033e | [] | no_license | dennisparathanathu/Reminder | 9546dae608490dcb3a054d4821e10ccb71b4af70 | 9768bcfb3d2ebcc9d58321885fa89b71ba81c6bf | refs/heads/master | 2023-08-01T06:44:05.993453 | 2020-08-02T18:18:37 | 2020-08-02T18:18:37 | 276,581,524 | 0 | 0 | null | 2021-09-22T19:32:49 | 2020-07-02T07:43:13 | Python | UTF-8 | Python | false | false | 395 | py | """
ASGI config for remainder project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SET... | [
"dennisparathanathu@gmail.com"
] | dennisparathanathu@gmail.com |
96e7f043698752f1e7cf913ff817a44ad45d2be3 | 9255876d33cefedbd7d60fe6528793ba262fc5ca | /publicfun/restartapp.py | 964b2ca965fac969e3e2719bd1202ee23df7fd8f | [] | no_license | xuguojun1989/studentautocodeunit1 | 6b041529ee39f9d64abbea6074f310a95c59e5e0 | bb226026fcbe697a4fa6ff424e86254bb6c8fd65 | refs/heads/master | 2022-09-27T03:07:23.478702 | 2020-06-02T07:15:16 | 2020-06-02T07:15:16 | 261,709,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | #coding=utf-8
from base.base_driver import BaseDriver
class RestartApp:
def restartandroid(self):
self.base_driver=BaseDriver()
self.base_driver.android_driver()
| [
"422486265@qq.com"
] | 422486265@qq.com |
c229ef5b98c6ec365c60ef63dcf42918dc310a98 | 78d64ff1782251900c2a001ab45655dafeaef3d6 | /rom_generator/spriteChangeHarvin.py | 98a6c0155c37447c623828243aed7b8c191ae236 | [
"MIT"
] | permissive | ikarth/game-boy-rom-generator | c86f0b2c2ca10bab6b8c02bfeff18599c17b92d9 | 29576a4bbe87a0032f80967d4b740059a65ea5c9 | refs/heads/main | 2023-06-26T20:25:47.317321 | 2021-08-04T14:32:21 | 2021-08-04T14:32:21 | 273,097,107 | 5 | 0 | MIT | 2021-08-04T21:24:27 | 2020-06-17T23:20:33 | Python | UTF-8 | Python | false | false | 4,856 | py | import argparse
import copy
import random
from generator import makeElement, makeBasicProject, addSpriteSheet, makeBackground, makeScene, makeActor, addSymmetricSceneConnections, makeMusic, reverse_direction, initializeGenerator, writeProjectToDisk, addSceneBackground, makeCol, makeColBorder
from background import getT... | [
"50000691+harvinparknight@users.noreply.github.com"
] | 50000691+harvinparknight@users.noreply.github.com |
fcaa93806b2495249b10a1d5255db9e391bacfeb | 3d5673feff1adbfe51e803eb3fa2a3525e602f18 | /cosmic-core/test/integration/smoke/test_secondary_storage.py | f50ff80648c5dc90995aa791402b5a0d9b84bb18 | [
"Apache-2.0"
] | permissive | maduhu/MissionCriticalCloud-cosmic | dcccb933fb93b2e17aa4fc8c9844f70895bac8aa | 099151372f56499a22744f49b0af05667eb18c11 | refs/heads/master | 2020-12-02T17:47:42.128140 | 2017-04-03T14:49:35 | 2017-04-03T14:49:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,271 | py | """ BVT tests for Secondary Storage
"""
# Import Local Modules
from marvin.cloudstackAPI import *
from marvin.cloudstackTestCase import *
from marvin.lib.base import *
from marvin.lib.common import *
from marvin.lib.utils import *
from nose.plugins.attrib import attr
# Import System modules
import time
_multiprocess_... | [
"miguelferreira@me.com"
] | miguelferreira@me.com |
07ff18e0d7c3d12f28a5c0e05d924539ab2888f3 | 2b4e133329a5ca1ee205b026a46606b027d3f205 | /Customer/migrations/0003_rename_watchlist_wishlist.py | 9994fea4d9934cf1641816d6a6a726a5d2f331c6 | [] | no_license | wadeeat786486962/bladerscenter.github.io- | 06884c5ad3e7b874ce761e21ab5c00c9ab74fcfc | 410d11feb6bc1885e614069a7bc5007521cf982d | refs/heads/main | 2023-06-16T04:24:23.697174 | 2021-07-11T18:05:14 | 2021-07-11T18:05:14 | 384,936,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | # Generated by Django 3.2.4 on 2021-06-27 16:27
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('Vendors', '0004_products_product_quantity'),
('Signup', '0003_customer_model_user_type'),
('Customer', '0002_watchlist'),
]
operations = [
... | [
"mohibullahsahi419@gmail.com"
] | mohibullahsahi419@gmail.com |
a9e51ecf5a370bc04793bb28f5311eb7f237491e | aa27f97fabdde7b6a5eeb15cf9459c56688dd2f3 | /searchSorting/quicksort.py | 6aa03d38e0bfe5a7a15c5ce975f2031492ddca19 | [] | no_license | djunh1/practice_algorithms | 8bbde53359bfc8a9ffe640774910a66d9f810675 | 74c45e9dafdb450046e116ad3853a813a7022d30 | refs/heads/master | 2020-09-09T21:21:56.531017 | 2019-11-14T00:12:15 | 2019-11-14T00:12:15 | 221,574,478 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py |
def partition(arr,low,high):
i = (low-1)
pivot = arr[high]
for j in range(low , high):
if arr[j] < pivot:
i = i+1
arr[i],arr[j] = arr[j],arr[i]
arr[i+1],arr[high] = arr[high],arr[i+1]
return ( i+1 )
def quickSort(arr,low,high):
if low < high:
pi = partition(arr,low,high)
quickSort(arr... | [
"djunh1@gmail.com"
] | djunh1@gmail.com |
d7bea8f0cb00c61dccf45124c3453b943dda0f78 | 2dfcb9c5cd6994b72fa6ac632c627ea05616d3c8 | /Python 编程/Chapter 8 函数/function_16_结合使用位置实参和任意数量实参.py | 2277ca263c6a1d20428ec5e406f23500792b8bef | [] | no_license | Summer-Xuan/PythonBasic | e41432ebb204475102715895f0bb2c3b50241a98 | 05807b615452bf0a886630bb78840975b8f05b39 | refs/heads/main | 2023-05-02T20:53:03.333265 | 2021-06-01T15:53:53 | 2021-06-01T15:53:53 | 332,984,381 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | """
如果要让函数接受不同类型的实参,必须在函数定义中将接纳任意数量实参的形参放在最后。
Python先匹配位置实参和关键字实参,再将余下的实参都收集到最后一个形参中*。
"""
def make_pizza(size, *toppings):
"""
概述要制作的披萨
Python将收到的第一个值存储在形参size中,并将其他的所有值都存储在元组toppings中。
"""
print("\nMaking a " + str(size) + "-inch pizza with the following toppings:")
for topping in toppings:
... | [
"xuanhsh@inspur.com"
] | xuanhsh@inspur.com |
941d44fe8b0574f0b5b9302f6739135ab4da3e96 | 10e5b1b2e42a2ff6ec998ed900071e8b5da2e74e | /bit_manipulation/0231_power_of_two/0231_power_of_two.py | ae8781e440f8895332fcb70dcf3368fa68b831db | [] | no_license | zdyxry/LeetCode | 1f71092d687316de1901156b74fbc03588f0b0a5 | b149d1e8a83b0dfc724bd9dc129a1cad407dd91f | refs/heads/master | 2023-01-29T11:59:14.162531 | 2023-01-26T03:20:23 | 2023-01-26T03:20:23 | 178,754,208 | 6 | 4 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | # -*- coding: utf-8 -*-
class Solution:
def isPowerOfTwo(self, n):
if n < 1:
return False
while n > 1:
if n % 2 == 1:
return False
n >>= 1
return True
print(Solution().isPowerOfTwo(5)) | [
"zdyxry@gmail.com"
] | zdyxry@gmail.com |
8bb122a561283d2bcf817bb5e04625d493544607 | 253477f2b8c771677d6f658b859667447b11c500 | /django01/autenticacao/forms.py | 94f1b01fdf53a27a265375d03cddf096e99cc5ba | [] | no_license | marianawerneck/DesenvWeb | 25716c6f7e9548b92b7ca125dc493a821f1d4b0f | 8cfd84d787a6b9bd23e5ca1dce85a03fb3e9bd33 | refs/heads/master | 2022-12-07T19:12:57.391340 | 2020-08-26T01:36:22 | 2020-08-26T01:36:22 | 289,738,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,197 | py | from django.contrib.auth.forms import AuthenticationForm, UserCreationForm
from django.contrib.auth.models import User
from django.core.exceptions import ValidationError
class AuthenticationFormCustomizado(AuthenticationForm):
error_messages = {
'invalid_login': 'Login inválido',
}
def __init__(... | [
"mwerneckroque00@gmail.com"
] | mwerneckroque00@gmail.com |
304268c55dfbf4b21b4a4b7e0ff53dde5449bcbd | 6cb1d8f1416af7b7c5c83ab35cb6928ea9955aff | /venv/Scripts/pip-script.py | eab8e523d3f70c83c893918b55582674ac186b2a | [] | no_license | lee-saint/practice-nlp | f68ccc3140f725f3edcd7048c324b847583b7f20 | 19003fcd5f55f4f110417a3950a32bb5fba1850c | refs/heads/master | 2020-12-01T20:05:15.014495 | 2020-01-21T09:22:18 | 2020-01-21T09:22:18 | 230,750,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | #!D:\dev\python\practice-nlp\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.e... | [
"plutorian131@gmail.com"
] | plutorian131@gmail.com |
94c2a2677d6c1a8fc2daf40364be8f4c3bd522dd | 7c8c6a09d7ac7941f75c05fc5bc7b8d772175783 | /orders/migrations/0022_auto_20181009_1407.py | f20979b1fdc1abd261e9a1ced9a0d5ec9cfd89ed | [] | no_license | firaan1/mypizzajoint | ee23e9a830fbe0ddd0ab87ee5e17241dd479b471 | 8cea3a2451a54fdba6f2a189c62dab9327f0ffa5 | refs/heads/master | 2020-03-26T04:02:20.211480 | 2018-10-09T21:39:05 | 2018-10-09T21:39:05 | 144,482,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,371 | py | # Generated by Django 2.0.3 on 2018-10-09 14:07
from django.conf import settings
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
... | [
"firaan1@gmail.com"
] | firaan1@gmail.com |
03d57170acf5fa701a3e80315decbefb2e79b42d | c81b633c452616636120daba9ef3fa9a2b2640b3 | /Class09/example_7_capitals_game.py | 5dcb895c4194ba612fb00358a37ee89ae83c23b3 | [] | no_license | formigaVie/SNWD_Works_201711 | ba3dca2ef4cf74166b8a5c7c804ea01ccc866876 | 16ec6c169a5828cadc515b7612dbfd8638ba7224 | refs/heads/master | 2021-09-07T03:41:36.674833 | 2018-02-16T18:58:47 | 2018-02-16T18:58:47 | 110,582,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,851 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -
import random
# define variable name
creator = "FormigaVIE"
current_points = 0
# print welcome to user
print "=" *80
print "Welcome to {} Capital Game" .format(creator)
print "=" *80
# Put Make string lower case to a personal greeting
user=raw_input("\nPlease enter your na... | [
"manfredg30@gmail.com"
] | manfredg30@gmail.com |
bf43e8f2a7d70fec6a75358ab9bb44c2ecd154cd | 8503102336e77f783e0393f3ce0657492322c619 | /perceptron.py | a0894df9f66332b94bffbf916418c54802e667bf | [] | no_license | panxiaobai/MachineLearning | a9344942eda9d9240afcda0746aba13bb85ca6f9 | b2c6747e665dfae4d75eccca7c12f17bfad8e006 | refs/heads/master | 2020-06-21T08:02:43.928549 | 2019-12-16T13:02:22 | 2019-12-16T13:02:22 | 197,389,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 898 | py | import numpy as np
def train(data,label,w,b,lr):
'''
:param data: data.shape=(data_num,data_length)
:param label: label.shape=(data_num,1)
:param w: w.shape=(data_length)
:param b:
:param lr: learning rate
:return:
'''
flag=True
while(flag):
flag=False
for i in ... | [
"panyucsu@163.com"
] | panyucsu@163.com |
22045d1896e3fb88a25a5ccafc8a837252aaefdd | 8732232026b0a42eb4912266cc8768f82fd85660 | /phonevoicecallASR.py | f73607d827ac38cbfcfe336e54d6b6f8ee8f0e76 | [] | no_license | KornbotDevUltimatorKraton/Phonecallwithspeechrecognition | b3b1b86ef15e860982abff3d40b5f4ee821e29b5 | 18aee657e98ce06a290122aae2e24786e1a58f23 | refs/heads/main | 2023-08-30T12:56:41.157409 | 2021-10-10T14:46:07 | 2021-10-10T14:46:07 | 414,650,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,396 | py | #!/usr/bin/env python3
# NOTE: this example requires PyAudio because it uses the Microphone class
import time
import math
import speech_recognition as sr
import itertools
import numpy as np
import serial #Serial communication talking to the GPRS module
from google_speech import*
from googletrans import Translat... | [
"noreply@github.com"
] | KornbotDevUltimatorKraton.noreply@github.com |
55bfbab6f1d81a7878499a97f644c7e7976e9b66 | b252d1f8ec5f68bf5f935c000e0bb011718ea691 | /virtualenvs/ninetyseven/src/savoy/contrib/bookmarks/importers/.svn/text-base/delicious.py.svn-base | f2573c2503f8a5502f3019290bedeaac227ec76a | [] | no_license | syncopated/97bottles | 2ceace7ed6a852bef61796733a08eb878b045152 | 08f4210e3de77c4564fcc8c1a2e9b47a0088249f | refs/heads/master | 2016-08-05T07:48:51.109089 | 2012-12-02T17:38:35 | 2012-12-02T17:38:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,783 | from savoy.utils.path import append_third_party_path
append_third_party_path()
import time
import datetime
import logging
import urllib
from django.conf import settings
from django.db import transaction
from django.utils.encoding import smart_unicode
from django.template.defaultfilters import slugify
from savoy.cont... | [
"keith@dkeithrobinson.com"
] | keith@dkeithrobinson.com | |
64a9a28bf53bda9c6982ef7d9822dfabd748ac21 | d317d92f2ce0f84bc59d3346956cbd6592f87374 | /src/session/key.py | c853cdeb4b712fada814c63993043e86d925cf83 | [] | no_license | osneven/cryptochat | b922a93ab07c38c3cf8668fc373aa8b821da1c5b | c4c31063ad30bed7caaeb9c306cc4aa4e0ccc99f | refs/heads/master | 2020-06-27T20:05:26.921264 | 2016-11-26T21:01:57 | 2016-11-26T21:01:57 | 74,518,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,257 | py | from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import hashes, serialization
from cryptography.hazmat.primitives.asymmetric import ec, rsa
from cryptography.hazmat.primitives.asymmetric.ec import EllipticCurvePublicKey, EllipticCurvePrivateKey
from cryptography.hazmat.primit... | [
"oliver@neven.dk"
] | oliver@neven.dk |
e7c21c0f616fcf16cb42efee43650f0ff92bf467 | 31a9d63d2cb4e0fded5347c3dd622befb7dacd5e | /app/views.py | 97f9547d886274b8cb2e85f6d90006a1dc1f22ce | [
"Apache-2.0"
] | permissive | xod442/pets-api-dev | 042f1ff834853d5c1f13f93565dfd8f1fc205252 | 226252effdad38f7921c208c878d3cae66fe39cb | refs/heads/main | 2023-04-08T20:03:32.533677 | 2021-04-13T00:58:05 | 2021-04-13T00:58:05 | 351,601,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | from flask import Blueprint
from app.api import AppAPI, AccessAPI
app_app = Blueprint('app_app', __name__)
# An app is a client like a username and password
app_view = AppAPI.as_view('app_api')
app_app.add_url_rule('/apps/', view_func=app_view, methods=['POST',])
access_view = AccessAPI.as_view('access_api')
app_app... | [
"rick@rickkauffman.com"
] | rick@rickkauffman.com |
35179409789ca93e4566a6b1b2dbf6a457f112ba | 372dac75d63a5fc179f848ed7235f27da928f435 | /triviaQuiz/decorators.py | ab0dc9b5f72747bfe5d4a9ec347d892cbbce975f | [] | no_license | Bradenm1/Django-quiz | 53034aa452a45ded8ece582576426641bee22987 | 58081fd46749e9ca5dea1597f479025c872bccfe | refs/heads/master | 2020-03-21T14:48:00.761396 | 2018-06-26T02:53:44 | 2018-06-26T02:53:44 | 138,676,378 | 0 | 1 | null | 2018-08-01T02:06:07 | 2018-06-26T02:50:17 | Python | UTF-8 | Python | false | false | 1,528 | py | from django.http import HttpResponseRedirect
from django.urls import reverse
from . import queries
""" Wrapper for caching users information """
def cache_user_information():
def _method_wrapper(f):
def _arguments_wrapper(request, *args, **kwargs):
# Get the tournament the user is on, if any
... | [
"bradenm650@gmail.com"
] | bradenm650@gmail.com |
f2a22a8a75c9bb883e81656961f74ba2e06ba952 | d41b7bee52cf71b3b1b5671f4a13e9e465587f96 | /Python/076.py | 0486c8e90e728e32d0bac3188701b6576e996d9a | [] | no_license | shramkoartem/Project-Euler | 8e53b2ffec0fff20b45cc95754097a7fbecaf32c | eb79f4b6cda553a05e0188b7e329332ea0282a01 | refs/heads/master | 2020-04-09T04:54:08.664240 | 2020-02-05T16:19:42 | 2020-02-05T16:19:42 | 160,042,484 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | # / 0 (k>n)
# p(k,n)={ 1 (k=n)
# \ p(k+1,n)+p(k,n-k) (k<n)
def partitions(k, n):
if k > n:
return 0
elif k == n:
return 1
else:
return partitions(k+1, n) + partitions(k, n-k)
ans = partitions(1,100)-1
| [
"noreply@github.com"
] | shramkoartem.noreply@github.com |
afaa56f6afbce9f9b3c9e475f523692567da978a | d35e3d18d7ef89b13e23a2156bc2df48342f02a6 | /常用函数/05-SimpleHttpServer.py | 3fbd50e84503522fcec45c40cf6c71484b90ee3c | [] | no_license | yingrinsing/python_grammar | a03359fac7a930cebfedaef96c5f78de93d584a1 | 53ffd56091e522d7f0051a0fe03a1611eacb84bb | refs/heads/master | 2023-08-30T02:17:33.874598 | 2023-08-28T02:24:01 | 2023-08-28T02:24:01 | 206,771,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
"""
Created on 2017-11-3
@author: laok@ArgusTech
@email: 1306743659@qq.com
@copyright: Apache License, Version 2.0
"""
import SimpleHTTPServer
import sys
import socket, webbrowser
#===============================================================================
#
#=====... | [
"guying@kuaishou.com"
] | guying@kuaishou.com |
7414ddeef6a10ebaef96b3d13637ceea3d975140 | bfe6c95fa8a2aae3c3998bd59555583fed72900a | /minSubsequence.py | a6e5cb2f3d82e1cab5da5bed032e54785c87360b | [] | no_license | zzz136454872/leetcode | f9534016388a1ba010599f4771c08a55748694b2 | b5ea6c21bff317884bdb3d7e873aa159b8c30215 | refs/heads/master | 2023-09-01T17:26:57.624117 | 2023-08-29T03:18:56 | 2023-08-29T03:18:56 | 240,464,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | from typing import List
class Solution:
def minSubsequence(self, nums: List[int]) -> List[int]:
s = sum(nums) / 2
nums.sort(reverse=True)
t = 0
for i in range(len(nums)):
t += nums[i]
if t > s:
nums = nums[:i + 1]
break
... | [
"zzz136454872@163.com"
] | zzz136454872@163.com |
859127b273296f4937decab8644e9d059d97f173 | 361b159f338b50d4f70cd036be160cca1c173589 | /Go-Data(Web-Source Code)/delete.py | 448d65e277b3fbb0a3dbabc723b10014c5d8ed5d | [] | no_license | kuberkaul/Go-Data | 5e99885fcca389bf45b5b3a335584932fdc9e574 | 7d77185e587ac28ded1460f7852ab8525eb78f9a | refs/heads/master | 2016-09-05T19:26:26.003982 | 2013-05-18T00:41:00 | 2013-05-18T00:41:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 836 | py | from google.appengine.api import users
from google.appengine.ext import blobstore
from google.appengine.ext import db
from google.appengine.ext import webapp
from google.appengine.ext.webapp import blobstore_handlers
from google.appengine.ext.webapp import template
from google.appengine.ext.webapp import util
from uplo... | [
"kuberkaul1989@gmail.com"
] | kuberkaul1989@gmail.com |
6194c5a6a36d1344d0da4e7773249ac6f48be3e6 | 1207ededfd1a64c590cfab8071381029eeb241d8 | /Assignment8/StartingPoint-QLearningMountainCar.py | 8487659a3a812455092643ba78788671912230d1 | [] | no_license | BigEggStudy/UW-CSEP-546-Au18-Machine-Learning | 32c680b8196ae2ae8ebcdf5574997e0116a59d95 | 68b2b1272b7f9b3552a65003f9c55a1a06a137f0 | refs/heads/master | 2020-04-05T01:53:52.917002 | 2018-12-14T01:24:35 | 2018-12-14T01:24:35 | 156,454,911 | 2 | 2 | null | 2018-12-05T22:40:20 | 2018-11-06T22:10:30 | Python | UTF-8 | Python | false | false | 13,931 | py | import numpy as np
import matplotlib.pyplot as plt
from joblib import Parallel, delayed
import random
import datetime
import gym
env = gym.make('MountainCar-v0')
import QLearning # your implementation goes here...
import Assignment7Support
# discountRate = 0.98 # Controls the discount rate for future rewar... | [
"cd_bigegg@hotmail.com"
] | cd_bigegg@hotmail.com |
68758229821a1941caa7d17367aaa5fe71853b4f | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /CK6mdHahiJBjuiDBi_3.py | 82944b6300ab8edf0127f1346cd7ee428df32e08 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py |
def can_fit(weights, bags):
sum = 0
for i in weights:
sum+=i
if (sum/bags)<=10:
return True
else:
return False
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
ab0ef9f0cccf83301597bd7448262e7b08cd2fe4 | 9d8fe7c15a8118053015973e08daca9402eed01d | /binding.gyp | 1ffebc940f76ca637370b793ec63ea6cbcd98b15 | [
"MIT"
] | permissive | adriankierman/teddybear | cf3aa7bd57c4d6c9b644f5b33fce217ea7dc738b | 9feb6ce75d88988c2cf79f69f74840f7119d27c0 | refs/heads/master | 2021-01-18T04:07:03.628165 | 2014-07-22T18:26:54 | 2014-07-22T18:26:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | gyp | {
'targets': [
{
'target_name': 'teddybear',
'sources': [ 'teddybear.cc' ]
}
]
} | [
"amwebdk@gmail.com"
] | amwebdk@gmail.com |
45b002d9e8437b28c679132060b3b6c24b6dc881 | bb893ddb702d744da8ce2b6c4f34ee50869d0e33 | /Laptop/Laptop_slam/build/hector_slam/hector_mapping/catkin_generated/pkg.develspace.context.pc.py | c975d742a73caad3f67a3960adc8f1e8bfb1e9d4 | [] | no_license | AndreWongZH/Alex-01-01-02 | 4d94ed455556f98a1b8bea60a845a9125a542281 | 8cff777cd5354c4758978f97178fc646e9183b47 | refs/heads/master | 2022-04-25T16:44:06.203253 | 2020-04-20T13:53:51 | 2020-04-20T13:53:51 | 246,491,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 731 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/cascasm/Desktop/slam/devel/include;/home/cascasm/Desktop/slam/src/hector_slam/hector_mapping/include;/usr/include/eigen3".split(';') if "/home/cascasm/Desktop/slam/devel/include;/home/cascasm/Des... | [
"wongandre98@gmail.com"
] | wongandre98@gmail.com |
ef1e75e6df1ee13cca3ab40c9ab43e756ca9fb75 | ce0108679fc6412e3811023b943b2c105899480b | /testing/hashing_timer.py | 99309230c08ba25d9cfe2e0e582bba247c4e0854 | [] | no_license | baka-rust/sign | 88fa95ae19aa8553916863e9ef9ff8f7a86f1891 | 18d3cd7608cf9def98a2321bb1532e1b959cc88b | refs/heads/master | 2020-07-28T01:23:48.719622 | 2016-12-06T00:31:03 | 2016-12-14T18:28:17 | 73,420,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | #!/usr/bin/env python3
import subprocess, shlex, timeit
from signer import sign_binary
num_iters = 20
for size in range(1, int(1e8), int(1e5)):
code = """static int array [""" + str(size) + """] = {5};
int main() {
return 0;
}
"""
with open("hashing_test_file.c", "w+") as file:
file.write(cod... | [
"ejvaughan@gmail.com"
] | ejvaughan@gmail.com |
1bc81e62e2c47c24403678d581bfbd2a56a4852b | 6f14cc7dedd69d640c0a3cc888d9a03d6eb45534 | /app-venv-pip/example_pkg/main.py | 791b7fde212b1d68bb29e5027bbaa00ae2248b99 | [
"MIT"
] | permissive | rosscoleman/python-templates | a995ff0d7e6f4c884aba75408e009372150a2a20 | 17e1b9b83f199c1f22eba953401776ef51665c28 | refs/heads/master | 2022-12-11T00:15:29.820884 | 2019-10-08T04:04:17 | 2019-10-08T04:05:44 | 211,236,967 | 1 | 0 | MIT | 2021-06-02T00:28:15 | 2019-09-27T04:35:21 | Python | UTF-8 | Python | false | false | 302 | py | import logging
import example_pkg.mylib as mylib
logging.basicConfig(level=logging.INFO)
log = logging.getLogger(__name__)
def main():
log.info("in main()")
log.info(mylib.person)
y = mylib.get_person()
log.info(y)
if __name__ == '__main__':
log.info("in __main__")
main()
| [
"rossco85@gmail.com"
] | rossco85@gmail.com |
31983bb849cc11d4305e91b71bb2e60d231fe4f8 | 4130d4def7653ce7cf05dc6ad752a88cb1dbc91b | /201003629-first-ex.py | b3cf70ea051123e81684d6f195471e5cb2dee58e | [] | no_license | siriusJinwooChoi/Algorithm_class | 930b168dd1baa7917b3e60f3fb68a3e8719fa2fe | 89195f844ed2c28ca1b3e8cced7f689a1d03de2d | refs/heads/master | 2020-07-17T20:08:36.345982 | 2016-09-07T01:51:31 | 2016-09-07T01:51:31 | 66,989,465 | 0 | 0 | null | null | null | null | UHC | Python | false | false | 74 | py | # -*- coding:utf-8 -*-
print '학번은 201003629'
print "안녕은 Hello" | [
"indra4812@gmail.com"
] | indra4812@gmail.com |
dc4f6e68eddb294df351bb90097058936ffae1e3 | eba2347c0f8f4805adfd33915ec81da141a1c026 | /Assignments/Assignment1/A1.py | 698a394e80e70133a184a0903065568da76fae8a | [] | no_license | R-Qu/DD2424-Deep-Learning-in-Data-Science | 9796967e1cc28d53175773d25c889d0ab3e0a439 | d64bb7a3e05bbb9d2b50d4dffb2fae79e871a953 | refs/heads/master | 2020-05-05T09:21:06.144454 | 2019-06-03T11:31:50 | 2019-06-03T11:31:50 | 179,900,609 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 10,219 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# author: RuiQu rqu@kth.se
import pickle
import numpy as np
import matplotlib.pyplot as plt
from math import floor, sqrt
from tqdm import tqdm
#Dataset layout, each batch contains a dictionary with DATA:10000*3072 numpy array 32*32*3(R,G,B), LABELS:10000numbers in r... | [
"noreply@github.com"
] | R-Qu.noreply@github.com |
2ddd2c7f2ca4f090480c6cfd552b181033c0daa5 | d81e533783d0188a632bcd4457faaeacafef50b5 | /prob7.py | 7c6d627096119c3a3838527badb9b3e9638d943f | [] | no_license | rcuhljr/MyEuler | 4f91d797604e40ba970f6308985ef9a7a06c044d | 5c03be90cf04b4e9f034d994e4e6f237be383aff | refs/heads/master | 2020-04-07T16:30:13.865951 | 2013-03-31T01:54:28 | 2013-03-31T01:54:28 | 3,154,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | import math
import cProfile
primes = [2]
def pumpPrime(x):
cutoff = math.sqrt(x)
for n in primes:
if x%n == 0:
return
elif n > cutoff:
break
primes.append(x)
def solve(x):
count = 3
while len(primes) < x:
pumpPrime(count)
... | [
"rcuhl@sep.com"
] | rcuhl@sep.com |
d82d741910853f672aa47410d5b6cd3deeb0a5b4 | e78154abbb8bacf5afccda9da371684cbeabad36 | /popego/popserver/popserver/lib/app_globals.py | 9d5e4446853d9c86f57be645c6ee6155079a3b73 | [
"BSD-3-Clause"
] | permissive | enterstudio/popego | 1a196fabc374c0f45764e5c74bd7752236424040 | 2d09e793d9d2f297139edb325b8a70ddda9b2705 | refs/heads/master | 2021-04-09T16:39:40.781634 | 2016-10-14T16:53:47 | 2016-10-14T16:53:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,978 | py | # -*- coding: utf-8 -*-
__docformat__='restructuredtext'
"""The application's Globals object"""
from pylons import config
import glob, os
from os.path import dirname, exists, join, abspath
class Globals(object):
"""Globals acts as a container for objects available throughout the
life of the application
"""... | [
"santisiri@gmail.com"
] | santisiri@gmail.com |
17333f888ef5aa2338e99e40500099d63f4041b7 | 58f745de327deb81144412b4b4b5ba7b0c48ad3c | /tests/test_day2.py | 2a3204ac7a52406d864fdd8518e2676d65a36d44 | [
"MIT"
] | permissive | aartitayade/predict | b1188aef60804bca81908f7e9adc4828663d7bf4 | 960141f30034649618468912b93afbac4c82e23f | refs/heads/master | 2022-06-06T10:17:28.012370 | 2020-05-03T15:27:01 | 2020-05-03T15:27:01 | 260,945,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | import pytest
from src.day2_copy import predict_cnt
def test_predict_cnt():
assert predict_cnt(0.229270,0.436957,0.186900)==2239
assert predict_cnt(0.363625,0.805833,0.160446)==2626
| [
"aartitayade96@gmail.com"
] | aartitayade96@gmail.com |
195a23658e0c693a4e1da301ddba5e4eb70f5682 | 6a700571d75e6ac131cc54b0f53937064fcd50fe | /CIFAR/cifar/vgg19.py | c6773a7d9514b5ef526aed804a7dccb2ad4c9ab3 | [] | no_license | destinyc/cifar | 6be9f4e71e2caccc1b5c6cda431c9565ef0cc16e | 62c8cd15385874b144a96cc9e60750566307d09a | refs/heads/master | 2020-06-17T13:00:47.085306 | 2019-07-09T04:25:37 | 2019-07-09T04:25:37 | 195,932,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,738 | py | # -*- coding:utf-8 -*-
import tensorflow as tf
import numpy as np
import time
import os
import sys
import pickle
import random
#from read_data import Read_cifar10
class_num = 10
image_size = 32
img_channels = 3
iterations = 200
batch_size = 250
total_epoch = 164
weight_decay = 0.0003
dropout_rate = 0.5
momentum_rate ... | [
"2608572577@qq.com"
] | 2608572577@qq.com |
16be7162f22c5585d5daaee411524b5ed067d518 | 09c4154c837e83d85ec9ed8d3b7c220f99f82645 | /PyCrawler/AppleCrawler.py | b7c011f67ed62237cad61e9da9d917ff5ca8561c | [] | no_license | AI5M/PublicOpinion | c8b7eb6f1842cd9558f3cf46cb18e856d56b66d5 | 9157048007cfbbb52b43b353bedc082ba470581f | refs/heads/master | 2020-03-18T07:12:33.280072 | 2018-05-30T15:58:35 | 2018-05-30T15:58:35 | 134,438,968 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,483 | py | import connDB
import config as cfg
import time
import traceback
import logging
import os
import requests as req
from urllib.parse import urljoin
from bs4 import BeautifulSoup as bs
from os import system
system("title AppleCrawler") #set cmd title
if(os.path.exists("./log/apple.log")):
os.remove("./log/apple.log")
de... | [
"alex856236@gmail.com"
] | alex856236@gmail.com |
72af6167e7ff140977ff5a8b7fac552dcbeb92bd | 1840ec7b62a479c652948d293c2f813a453380c6 | /blogapp/models.py | 675117dc25c8cc44e94963787a8c9396f5b7fed9 | [] | no_license | jervislam0911/Postgram | 0bb50547e845569b69b7e80f474c3b0f960ee399 | e00c389d32c231620719985fcd7cc317c777229f | refs/heads/master | 2020-06-23T19:31:34.711455 | 2016-10-14T15:13:29 | 2016-10-14T15:13:29 | 67,747,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,105 | py | from django.db import models
from django.contrib.auth.models import AbstractUser
from django.utils import timezone
PRIORITY_CHOICES = (('Python', 'Python'),
('Django', 'Django'),
('GitHub', 'GitHub'),
('Selenium', 'Selenium'))
# Create your models here.
cl... | [
"lin.jervis@yahoo.com"
] | lin.jervis@yahoo.com |
3f1a8ffa2740fae96cf29c212a01e1a98cc0cfdb | dce97c2bad511d0ba01fa52c1949e06a6946ac71 | /tp2/euler.py | f2acb0ddf0d87e095cd571cd3884b6a90348180c | [] | no_license | martinstd96/Analisis-Numerico1-7512 | 7d29dcaec75bb3b537551bb384a55f70b09cf4d6 | 1b8ec4f4895cb45c244738f346f9a88866525c2f | refs/heads/master | 2020-07-26T05:12:36.771716 | 2019-11-28T05:32:45 | 2019-11-28T05:32:45 | 208,545,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | def main():
print( euler(1000,1/999,1,y_prima))
#funcion y_prima
#y0 valor inicial
def euler(y0,h,x,funcion):
uk = y0
i = 0
while i<x:
uk = uk + h*funcion(uk,i)
i+=h
return uk
def y_prima(y,t):
return 0.7*y
main() | [
"jpdicomo@live.com"
] | jpdicomo@live.com |
f503bbdf229263c6210bbe2d35e1d0dbfcec1848 | e3a939d85f58a167bf4b91add18eb66dfa21fdaa | /login/migrations/0016_auto_20170326_2008.py | 031addde59312877dfd7190a3d20b688b8940cd8 | [
"Apache-2.0"
] | permissive | anilkumarmeena/Bitora | 3ca328a00505a0d72abe0c53b8d68dc61dac6aa0 | c8ccfa6c2369c9da4bd273dddb783f870c09889f | refs/heads/master | 2022-12-11T16:38:46.258490 | 2020-03-21T05:42:27 | 2020-03-21T05:42:27 | 168,194,931 | 0 | 2 | Apache-2.0 | 2022-12-07T23:54:15 | 2019-01-29T17:14:55 | JavaScript | UTF-8 | Python | false | false | 625 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-26 14:38
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('login', '0015_auto_20170326_1250'),
]
operations = [
migrations.AlterField(... | [
"anil98meena@gmail.com"
] | anil98meena@gmail.com |
22131b5d7a5a639409e4ac8f18241d4026439be0 | 5e3d8071719a38c878c08e15d5a9bb26db323d7f | /test/webapp_skel_test.py | b3133bbd1843a1ef54cdd47b0a032f11ad27a11f | [] | no_license | apostvav/webapp_skel | b8e645f78f9cc92df1196e2d739eb92989a10563 | 00a7962cff05fdf3a6592a9d7211f7077d3f40c2 | refs/heads/master | 2023-06-25T16:27:54.936311 | 2023-06-08T20:27:46 | 2023-06-08T20:27:46 | 92,541,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,344 | py | from flask import url_for
from flask_testing import TestCase
import webapp_skel
from webapp_skel.models import User, Article
class TestWebapp(TestCase):
def create_app(self):
return webapp_skel.create_app('test')
def setUp(self):
self.db = webapp_skel.db
self.db.create_all()
s... | [
"vitotol@gmail.com"
] | vitotol@gmail.com |
6b88cd00ac481c379f97b7407384b3593d72a780 | fec709734f524f1d9dfcb7cbd826b1a8dcbe081a | /calculator.py | 98baddbf09aeebc8e983418fa09917372e72dd4a | [
"MIT"
] | permissive | yaakovlom/tahara_calculator | c3116f3547bf34d447d17ecff00e9bf7b2215914 | 2c5794a4795a59806fc84a8848e54cdb20d8658b | refs/heads/main | 2023-07-11T02:22:40.606381 | 2021-08-16T09:30:33 | 2021-08-16T09:30:33 | 395,632,004 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,905 | py | from pyluach import dates, hebrewcal
import os
import sys
class Period:
def __init__(self, date, ona, haflaga=None):
self.date = date
self.ona = ona
self.weekday = date.weekday()
self.haflaga = haflaga
self.seclusion_list = []
@property
def seclusion_li... | [
"noreply@github.com"
] | yaakovlom.noreply@github.com |
ee499d4f8713d4cbcdd106d89b4218153b158201 | 5d4267bf377bea5beb50ee70e7a853b1d5be88d0 | /Kattis/Euler's Number.py | bc0123081a4a390f44cb05fc20176ae7194d6c9c | [] | no_license | Penguin-71630/Python-3 | 043b4d7b7525478f87c2404ff0d585d030d50d11 | fc3acf1a2b7a204282503d581cc61275b39911a4 | refs/heads/master | 2022-01-20T04:14:51.005757 | 2019-08-11T08:08:58 | 2019-08-11T08:08:58 | 198,004,811 | 0 | 0 | null | 2019-07-21T04:27:52 | 2019-07-21T02:52:04 | Python | UTF-8 | Python | false | false | 114 | py | total, deno = 1, 1
for i in range(1, int(input()) + 1):
deno *= i
total += 1 / deno
print(total)
| [
"noreply@github.com"
] | Penguin-71630.noreply@github.com |
ec6f2dcf95c86f6207dc7e001d328bd4279cd4fc | bd7d091565ba63c930351203ed912ff82461d540 | /dp_72_minDistanceOfEditing.py | 74d09689a717bd362a7ef359ab99b57ca3824e46 | [] | no_license | screnary/Algorithm_python | 6ea3ab571763b5c0a519bdb7eed64dd5b74e8a8f | 8290ad1c763d9f7c7f7bed63426b4769b34fd2fc | refs/heads/master | 2022-12-07T02:59:42.786259 | 2020-08-25T04:27:45 | 2020-08-25T04:27:45 | 258,499,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,028 | py | """给你两个单词 word1 和 word2,请你计算出将 word1 转换成 word2 所使用的最少操作数 。
你可以对一个单词进行如下三种操作:
插入一个字符
删除一个字符
替换一个字符
"""
class Solution:
def minDistance(self, word1: str, word2: str) -> int:
""" input| word1: str, word2: str
output| int
"""
m = len(word1)
n = len(word2)
dp = [[0] * ... | [
"screnary@qq.com"
] | screnary@qq.com |
d61f416f47cbbd230617c8716874d45fbadbfd0d | e7b199ce6e3ae0ed28d5edb943e8b35469808f7e | /manage.py | 92cadf718f1d58ba755d19c03b7d2dfb37041d57 | [
"MIT"
] | permissive | dankiki/sweetly | 4a2b38ea6a6a7c2994fb5d8deb44bfa4da06991d | a6cf05a9ff36704c9e753203d79d0ede60431f28 | refs/heads/master | 2020-09-08T00:37:15.777517 | 2019-11-11T11:15:07 | 2019-11-11T11:15:07 | 220,958,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'sweetly.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Import... | [
"daniel.kislyuk@gmail.com"
] | daniel.kislyuk@gmail.com |
ed1e477db5118c0ed1436a59bc6d9d6830bf5c93 | 3b983c1a990341d5e56f848e5b10d7834dd8fea8 | /game/intro.py | 9339d531588d51f7e0d43a0673e50face5165496 | [] | no_license | Crowbeak/LD26 | 5ccd40e7ed5594dbffdbb77d283db04c52271958 | fac5cc8cdb155044ea296825ff0ebb491129666b | refs/heads/master | 2020-05-18T07:10:06.318489 | 2013-12-22T08:30:43 | 2013-12-22T08:30:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | import pyglet
import resources
class Title(pyglet.sprite.Sprite):
def __init__(self, *args, **kwargs):
super(Title, self).__init__(img=resources.crow_logo, x=760, y=40,
*args, **kwargs)
self.game_title = pyglet.text.Label("Poke", font_size = 36,
... | [
"crowbeak@gmail.com"
] | crowbeak@gmail.com |
b03e484b92549f6640ea40fb5511f1647646fa81 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/comp/rcvdbyteshist1mo.py | c9563a2299d98cd5d31053c3b0fb2951568717e0 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,923 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
5fdb8b04700662ee8b20d6fdd178566241f4b87c | 01db5ec488b5a07c43fde6f6e718632c83b3d100 | /ecs-fargate-isolated/app.py | 09169eefd54219ce494f605c5c0cde1ea415f486 | [] | no_license | littlejo/cdk-examples | 0bce63d9eb54fef58b748f9f328bc6db4701ab67 | 22106de8373facebaa64f5e46cc20d3bf78fd2aa | refs/heads/master | 2023-07-13T05:53:41.158543 | 2020-12-07T09:03:20 | 2020-12-07T09:03:20 | 261,969,897 | 0 | 0 | null | 2023-06-22T20:42:11 | 2020-05-07T06:36:39 | Python | UTF-8 | Python | false | false | 1,487 | py | #!/usr/bin/env python3
from aws_cdk import core
import json
import os
from environment.environment_stack import EnvironmentStack
from ecr.task_ecr_stack import ECRStack
# Read global configuration file
with open('environment_conf.json') as config_file:
global_conf = json.load(config_file)
app = core.App()
sta... | [
"joseph.ligier@gmail.com"
] | joseph.ligier@gmail.com |
39fdeb0804fff370665a33ca7fbced711a6f15d5 | b2e727332b6f94f0844164bd972a7a48878f5292 | /uncategorized/minimum-absolute-difference-in-an-array.py | dfd39dec01988758aa250eaf654150186c0a5986 | [] | no_license | mzfr/Competitive-coding | 496024f940b9103a39b5b9affed70552b31e20b8 | 33074c9b21a240fd285d38d8320e4037defdd3eb | refs/heads/master | 2023-01-01T04:49:59.027502 | 2020-10-23T11:41:23 | 2020-10-23T11:41:23 | 265,234,568 | 2 | 0 | null | 2020-10-01T04:55:32 | 2020-05-19T11:58:34 | Python | UTF-8 | Python | false | false | 1,013 | py | """
https://www.hackerrank.com/challenges/minimum-absolute-difference-in-an-array
SOLUTION:
First I thought of using the itertools.combination to get all the combinations
and then find their minimum difference but that had a high complexity and some
of the test cases were failing so instead of that approach I did the... | [
"Mehtab.zafar98@gmail.com"
] | Mehtab.zafar98@gmail.com |
059d5a506246d959ae5d4dd9b7edbf7edaa4fcbe | 0d12b52791f4dbd63e7c4309bd8128430708a686 | /PCI/PCI_Code/chapter4/searchengine.py | f024a0fcdb0967828664c3d2d586a5fe45dc7c05 | [
"LicenseRef-scancode-oreilly-notice"
] | permissive | linzb-xyz/PCI_code | ac889a7fb72df513f42c59f3644f4fdc8c735799 | 02ec6d1a0dd6dda494999a568c499af1bb23ad1c | refs/heads/master | 2020-03-06T22:24:27.297313 | 2018-03-28T07:49:18 | 2018-03-28T07:49:18 | 127,102,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,161 | py | import urllib.request
from bs4 import *
from urllib.parse import urljoin
from sqlite3 import dbapi2 as sqlite
import nn
import re
mynet=nn.searchnet('nn.db')
# Create a list of words to ignore
ignorewords={'the':1,'of':1,'to':1,'and':1,'a':1,'in':1,'is':1,'it':1}
class crawler:
# Initialize the crawler with the na... | [
"756608359@qq.com"
] | 756608359@qq.com |
6403ebc410b0769ec59ad0a993e9b9d051316a35 | d4c761daffc30ae0c6478a084498d4d95fa713d8 | /app/admin.py | fbc59d61e386759369b8705a4a0429ef35f8cefd | [] | no_license | futter-krot/a | 351178a38b758a1080532fc743e025ba8c35d867 | d4a03727fdc4e35bc212866a9227c0f71ba44c1d | refs/heads/master | 2023-06-03T13:41:49.124471 | 2021-06-24T13:55:48 | 2021-06-24T13:55:48 | 356,860,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | from django.contrib import admin
from app.models import *
# Register your models here.
@admin.register(Post)
class PostAdmin(admin.ModelAdmin):
pass
@admin.register(Category)
class CategoryAdmin(admin.ModelAdmin):
pass | [
"futterbeta@gmail.com"
] | futterbeta@gmail.com |
601c3e834c1baf3a3c1b10fe80f1252c142e09ec | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/93/usersdata/230/54636/submittedfiles/atividade.py | 2b4b38d2a1c6b323bd65f982ed00e1f5274b16b5 | [] | 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 | 234 | py | # -*- coding: utf-8 -*-
import math
n=int(input('Digite valor de n: '))
x=int(input('Digite valor de x: '))
y=int(input('Digite valor de y: '))
soma=(x**2)+(y**2)
if x>=0 and y>=0 and soma<=1:
print('SIM')
else:
print('NAO')
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
4713ad776108a8d64f7f4932b2993264b4344ce6 | 991646dbb3427981ce1b6b246d829751027e6ef6 | /page/Login_page.py | 348d610df06f90a9ae813f02e51ee50c89099b97 | [] | no_license | jiaoyalei/Start_in_batches | 25f10cc2f44139ac876d6195e487e5e9217fab48 | 7c49f3ec4310bf02c7d8369bf92b933d398d024c | refs/heads/master | 2022-10-28T05:19:17.203897 | 2020-06-12T09:49:39 | 2020-06-12T09:49:39 | 266,676,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,686 | py | from common.base import Base
from selenium import webdriver
from common.common_rwcd import Common_Read
import time,os
class LoginPage():
'''登录类'''
def __init__(self,driver):
#获取浏览器句柄
self.driver = driver
#将被操作的excel文件路径,及具体工作薄
real_path = os.path.dirname(os.path.dirname(os.pat... | [
"719521314@qq.com"
] | 719521314@qq.com |
e55f3d7f6a822bd42e27124ffa5e1f3246a1bf07 | 06a50c3f425423bc054a585e563e92cc7e5db007 | /EPAM_python_tests/bin/classes/logs_operations.py | 54cb8a78f234cf32ec26e44302e721306a05a312 | [] | no_license | eugene-marchenko/pycharm | a4ee1729ef84510603902c128adb12ca67ab060c | c141873342e3c7a3e9f224e856cf1046ef2197eb | refs/heads/master | 2021-07-06T20:34:48.722600 | 2020-09-12T16:48:46 | 2020-09-12T16:48:46 | 31,311,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,566 | py | import os
import pytest
from time import gmtime, strftime
class LogsOperations(object):
"""
This class describes methods to operate with log files
"""
def __init__(self):
self.WORK_DIR = 'logs/'
self.EXTENSION = '.log'
self.timestamp = strftime('%Y%m%d_%H%M%S', gmtime())
de... | [
"3.marchenko@gmail.com"
] | 3.marchenko@gmail.com |
0bf886a5f0c1b6f91006568d96211ce1aa65d30b | 7c3f3749f28ce9252963b738003b415fda4d4c53 | /sources/test.py | 6f2d6357505a21fa03780341e90d83e7fe2bd95a | [
"MIT"
] | permissive | phunxv267/face_recognition | d725063771142c8dd05c685624d9ad892cdd79d8 | 67acf435c8ecf4c4e0bf8b641777d27209387330 | refs/heads/master | 2020-12-27T11:04:00.809524 | 2020-02-03T04:04:26 | 2020-02-03T04:04:26 | 237,879,637 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,173 | py | import argparse
import cv2
from sources.cv_modules import face_model
parser = argparse.ArgumentParser(description='face model test')
# general
parser.add_argument('--image-size', default='112,112', help='')
parser.add_argument('--model', default='../resources/models/model,0', help='path to load model.')
parser.add_arg... | [
"phunxv267@gmai.com"
] | phunxv267@gmai.com |
57d8f24d2896a24eff46d31b11ca4452558f04c1 | e50f65504f456d3e79549e332e58f416bc6b0871 | /predictfile.py | 9ac3e0b7831a1b9c70d372f90b37c76bc412f1d2 | [] | no_license | haruyasu/animalai | a087caceb76e61f8a8aa56ab9b4687196c588011 | 04e2adb5cadd820bc2d7fd10c2658e03003840f5 | refs/heads/master | 2020-07-15T06:28:03.715731 | 2019-08-31T05:36:15 | 2019-08-31T05:36:15 | 205,500,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,328 | py | import os
from flask import Flask, request, redirect, url_for
from werkzeug.utils import secure_filename
from keras.models import Sequential, load_model
import keras,sys
import numpy as np
from PIL import Image
classes = ["monkey","boar","crow"]
num_classes = len(classes)
image_size = 50
UPLOAD_FOLDER = './uploads'
... | [
"harukun2002@gmail.com"
] | harukun2002@gmail.com |
a8a7310d4438b0f180e6da82fd2129f48f1290df | 4a5f73bad1c81f25600d60e25c44651d849049df | /60ACuts/TrueCrossSectionAngleCuts.py | a61e7d596d0561d50289b7eec0c5ecc48c52a86c | [] | no_license | ElenaGramellini/LArIATTrackinRes | b304d652d47a7a5663d35b171d3ca93f195b13a5 | 2db82ccc1fe92a884f0beb27a573c2060f37c146 | refs/heads/master | 2020-03-16T04:39:10.213353 | 2018-05-13T03:14:49 | 2018-05-13T03:14:49 | 132,516,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,555 | py | from ROOT import *
import os
import math
import argparse
gStyle.SetOptStat(0);
# Truth 100 A
noAngleCutFile100A = TFile.Open("/Volumes/Seagate/Elena/TPC/AngleCut_100A_histo.root")
File_0083_100A = TFile.Open("AngleCut_0.08334_100Ahisto.root")
noAngleCut_Int100A = noAngleCutFile100A .Get("TrueXS... | [
"elena.gramellini@yale.edu"
] | elena.gramellini@yale.edu |
4aabc43f917c892939d2b4b254c5447a66b821fe | e763f24cb774ed67dc2248270ef5dc82109892f0 | /cpv_project/urls.py | 3cef10633def659d243c0a475d9de987fce5c728 | [] | no_license | ColinMaudry/cpv-app | 225bb182e4e5a31dd90084bcc834c1762bf89b7b | 20813748fe0f20747fe355d688945fd17524dd43 | refs/heads/main | 2023-08-15T02:11:01.316246 | 2021-08-27T15:36:40 | 2021-08-27T15:36:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 835 | py | """cpv_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-b... | [
"colin@maudry.com"
] | colin@maudry.com |
9164b3dde2d4d475219881f1f098955b70bba669 | c368b6e15b17d343afd3096627e377c654963b3b | /scripts/deploy.py | ea8877342b89b39e88756231ced10bb7559ef07e | [] | no_license | ymytheresa/CrowdCoin | 8091baa56e2ec5425fc3921b5e7e7f33d5ab8f55 | c606636f0c60ccb61bf5739a1e532d2b2dc51b06 | refs/heads/main | 2023-04-15T07:59:40.325389 | 2021-04-19T22:02:58 | 2021-04-19T22:02:58 | 351,365,004 | 1 | 0 | null | 2021-04-02T12:59:17 | 2021-03-25T08:42:21 | Solidity | UTF-8 | Python | false | false | 573 | py | import os
from brownie import *
import json
dev = accounts.add(os.getenv(config['wallets']['from_key']))
reward = Reward.deploy({'from': dev}, publish_source=True)
crowdcoin = CrowdCoin.deploy({'from': dev}, publish_source=True)
reward.set_coin(crowdcoin.address, {'from': dev})
def main():
print('crowdcoin :', cr... | [
"38038286+ymytheresa@users.noreply.github.com"
] | 38038286+ymytheresa@users.noreply.github.com |
5f292227a52f3c20c5a645732b51f1e72ff43146 | 35d5e6f5ea13c7a52435e19c503d785ce56db773 | /sign_data.py | 00063b13a24896495a172e0a77fc5c10dc985975 | [] | no_license | wanglinan1220/tcplocust-master | a292f2bd56f00927c8f340a8b26c24f2662ff95b | c4341aa2ea2a8e8562434040c3279e161cf122ba | refs/heads/master | 2023-05-13T21:54:42.155647 | 2021-06-09T09:52:39 | 2021-06-09T09:52:39 | 361,657,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | import hashlib
data ={
"useid":123123,
"appid":1934342034809,
"sid":234234234234
}
data =sorted(data.items(), key=lambda item:item[0])
for k,j in data:
print(k,j)
data = [("%s"+"="+"%s")% (k,v) for k,v in data ]
data = ("&").join(data)
md5=hashlib.md5()
sign = md5.update(data.encode('UTF-8')... | [
"1547118336@qq.com"
] | 1547118336@qq.com |
95838103359a78288a2b30f87614120db24561bf | 0f1272e5c93183b3c54a7ae0d840d49f172eaaed | /music player code.py | 3709a3f6bbae0783f84890af99b5e359800e5611 | [] | no_license | vaneet-hash/Music-Player-using-Python | 8a36b2802eef9f1936a471e299c0833a98e6463a | 3a56e7364dba671bb2f8f4642e42897c7e0eb6df | refs/heads/main | 2023-07-20T04:36:23.814326 | 2021-08-29T19:08:22 | 2021-08-29T19:08:22 | 401,120,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,100 | py | import os
import pygame
from tkinter import *
from tkinter.filedialog import askdirectory
pygame.mixer.init()
root=Tk()
root.title('Music Player')
root.minsize(350,300)
listbox = Listbox(root)
listbox.pack(fill = BOTH)
list_songs= []
def choose_directory():
directory = askdirectory()
os.c... | [
"noreply@github.com"
] | vaneet-hash.noreply@github.com |
ac919936e4c9da07a55faed852422220a5fd552a | c2e783091524ae9d7b09f76325e7e66189c839a1 | /backend/course/migrations/0001_initial.py | d37758e1ee7666d30db7dc78100db5a23e6a94e8 | [] | no_license | crowdbotics-apps/belled-20745 | 97246b9913fd908c188a2b728f3942bcd7bf1e06 | 7e14d156648abf3a3694cbeba2fe29df4755fbf2 | refs/heads/master | 2022-12-21T23:37:45.482269 | 2020-09-26T23:47:40 | 2020-09-26T23:47:40 | 298,918,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,323 | py | # Generated by Django 2.2.16 on 2020-09-26 23:46
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),
]
op... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
dc7064ae3fc0fb7dbe0e4d9d2d6c5020319510d3 | 94625f2cda3d734f84282bdff77732b99235e4ff | /saliency-detection/objectness_saliency.py | 1f091d8b68b146b1045462542eebb7dfb8469623 | [] | no_license | Walid-Ahmed/imageProcessing | 87b407532250df46dbcfd5bc830b1cdd411bef93 | c55ad8d325b44a9ef2cf5d734bc8e5c89d1f6e15 | refs/heads/master | 2020-09-01T20:18:31.973536 | 2020-05-10T01:40:56 | 2020-05-10T01:40:56 | 219,045,463 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,783 | py | # USAGE
# python objectness_saliency.py --model objectness_trained_model --image images/barcelona.jpg
#results are saved to folder results
# import the necessary packages
import numpy as np
import argparse
import cv2
import os
if not os.path.exists('Results'):
os.makedirs('Results')
# construct the argument par... | [
"walidahmed@Walids-MacBook-Air.local"
] | walidahmed@Walids-MacBook-Air.local |
6585890167300876eac529d4c55ac82e3476fb3e | 86872de85ce606df099cf2c7bb69bf2c682489bc | /welcome/settings.py | 9c717a5cf5dfe9e039c8bd6db889ad9a6bc28d09 | [] | no_license | mathengejoan/Python_project | 555091a031b94a5bab3bf63001c751cf9f95ccf2 | c8e82303a855f25911b174c5b9671075283c4ae9 | refs/heads/master | 2020-05-20T03:06:42.136944 | 2019-05-08T13:32:15 | 2019-05-08T13:32:15 | 185,346,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,222 | py | """
Django settings for welcome project.
Generated by 'django-admin startproject' using Django 2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
# B... | [
"mathengejoan971@gmail.com"
] | mathengejoan971@gmail.com |
b2e7d6e13551c158c1121c23199f3b25273d8cbc | 6863faabb955717cab25dca371f7fcfd99433343 | /edu_server/server/migrations/0038_auto_20180827_1122.py | 9b07274c121e221a21c405f04f8010bc9ccff319 | [] | no_license | kirkutirev/edu-server | 23342d7c062231c388f767fab6d9b0353faf1f79 | dae4476300dd9db536b848ec8629d1160c8976ce | refs/heads/master | 2020-07-05T05:05:42.260579 | 2018-08-30T16:57:56 | 2018-08-30T16:57:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 940 | py | # Generated by Django 2.0.7 on 2018-08-27 08:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('server', '0037_auto_20180820_1140'),
]
operations = [
migrations.AddField(
model_name='user',
name='expires_in',
... | [
"kutirev-k@mail.ru"
] | kutirev-k@mail.ru |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.