blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b6e23b796920b4e5237bf8b263682ce0cf67e12a | ae6ff638fd598b2afac03de53fc3f14e2d748662 | /Moscow Olimp 2021/Zaoch/D.py | b781db45faadc7b467556308b154861caaf2b954 | [] | no_license | Agvantibo/olimp | 85c6794ebb986748c7e1fed90a4357337ca79391 | 29e31cd661a7c9403e9808759cdd837532bf4dd9 | refs/heads/master | 2023-03-11T09:17:30.620640 | 2021-02-22T11:35:41 | 2021-02-22T11:35:41 | 326,656,029 | 1 | 0 | null | 2021-01-06T17:48:27 | 2021-01-04T11:03:43 | Python | UTF-8 | Python | false | false | 31 | py | #!/bin/pypy3
n = int(input())
| [
"derez08@yandex.ru"
] | derez08@yandex.ru |
bf76e0359b1a4692dc1ff3838a9a59921766a101 | b03ea7c641f1c1eed556130d61e153c8314406b1 | /backup_code/mapbuilder_vLOCAL.py | 9d538b10974662b4315a02b09fcae38c360dbfba | [] | no_license | starloft3/tod | deb33cd45d024a6861fbb27404083fa7ed414efb | c88d4f0b4de690a752092ab586f85323511329eb | refs/heads/master | 2022-06-08T11:52:06.532772 | 2020-05-07T18:13:17 | 2020-05-07T18:13:17 | 255,937,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151,304 | py | import pygame, sys, time, copy
from pygame.locals import *
import csv
import MySQLdb
#DATABASE VARIABLES
host_var="localhost"
user_var="root"
passwd_var="sniper67"
db_var="warcraft"
#create local data copies
#define globals
#CATEGORYLIST
CATEGORY_EXTERIOR_SIEGE=0
CATEGORY_RANGED=1
CATEGORY_EXPERT=2
CATEGORY_MELEE=3
... | [
"jwc912@gmail.com"
] | jwc912@gmail.com |
d07d642565edc59e0b0d20bb90ff23ec5090a9c4 | 835adeea55324fb9bf0f2c466ba7b740d9d35970 | /react_d/todo/todo/urls.py | 5018d5027738b9c1f8aa7c6956ee4a7267b39a52 | [] | no_license | golammahmud/react-practices-repository | 4f3524832fbcda1bd32508b9dda5d84e4920750f | 5bc3b9ee6142a9152f7ac223358c94ceb43a7ed2 | refs/heads/master | 2023-08-19T18:37:56.417089 | 2021-10-07T12:21:26 | 2021-10-07T12:21:26 | 414,583,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 855 | py | """todo 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-based vi... | [
"golam.mahmud99@gmail.com"
] | golam.mahmud99@gmail.com |
6fc7fe19d077ec3eaab79547ea523f435f89af02 | 104006c02c78c2d773d80a4760cff015f7e21a34 | /TJCTF-2018/Cryptography/Caesars-Complication-20/words.py | e2187613fcd63eb44f6eeea01d88d28e299e3805 | [
"MIT"
] | permissive | chiumax/CTF-Writeups | 9a8ea5b69f3e92356d0753601480d60163817265 | d726c4634354ada261ffefddbdc6d00215f81f16 | refs/heads/master | 2022-04-25T07:13:30.978192 | 2020-04-29T05:18:00 | 2020-04-29T05:18:00 | 129,627,611 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,543 | py | from collections import namedtuple
import sys
solutions=['tjctf']
def brute_force_decrypt(ciphertext):
for n in range(1,27):
s1=""
m = n % 26 if n > 26 else n
for c in ciphertext:
if c.isalpha():
x = ord(c) - m
if c.islower():
c = chr... | [
"move2234@gmail.com"
] | move2234@gmail.com |
1f852c2b0f5513529cfc6704d2c97b41e3789c9e | 71a6b2d96cc00b7682241f1de77f4d740e810701 | /manage.py | 5161ada7f0b2c48e36964e647c21bb195c12426c | [] | no_license | crowdbotics-apps/app1-19382 | 170e191b6d91b3e4caca7ad8227230f173bea3bd | 71d47dfcf473b48ea0285295ea5e8d37af529779 | refs/heads/master | 2022-12-01T17:29:19.786547 | 2020-08-05T00:18:25 | 2020-08-05T00:18:25 | 285,132,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | 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', 'app1_19382.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Imp... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
c3a4281367d9ec8ca55b76c6e9e1b375bb13d036 | 6053bb25f87a01b55660d07acef8a67de76bd179 | /src/py/flwr_tool/init_py_check.py | 8a016a46490b509f886dbf120684af905f8ddb43 | [
"Apache-2.0"
] | permissive | GaryYe/flower | 87c352a38698062a5f55aee62a2dc47bff0f89f7 | c47ad4532070f0ac2137a6191151fe39c59f103f | refs/heads/main | 2023-04-30T12:09:47.519081 | 2021-05-24T17:04:37 | 2021-05-24T17:04:37 | 370,049,658 | 1 | 0 | Apache-2.0 | 2021-05-23T12:39:58 | 2021-05-23T12:39:57 | null | UTF-8 | Python | false | false | 1,552 | py | # Copyright 2020 Adap GmbH. All Rights Reserved.
"""Check provided directory and sub-directories for missing __init__.py files.
Example:
python -m flwr_tool.init_py_check src/py/flwr
"""
import os
import re
import sys
def check_missing_init_files(absolute_path: str) -> None:
"""Searches through the specifi... | [
"noreply@github.com"
] | noreply@github.com |
4cbadf96fedab1c09a4b39b33bbe809cad5469b1 | 1450b93cf402661054ec4ce21cc80bf555ae370e | /core/scanner.py | c0609ba496bd8100305af4b0f96acc96f3cfe49f | [] | no_license | lambder/dupeguru | 05adee5f743071efee039b932af572d173c9c3d3 | 78db58e0995b6e9584141ab37c5c727f22c2a198 | refs/heads/master | 2020-03-30T05:40:33.973328 | 2014-11-19T16:52:19 | 2014-11-19T16:52:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,738 | py | # Created By: Virgil Dupras
# Created On: 2006/03/03
# Copyright 2014 Hardcoded Software (http://www.hardcoded.net)
#
# This software is licensed under the "BSD" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.hardcoded.net/licenses/... | [
"hsoft@hardcoded.net"
] | hsoft@hardcoded.net |
e0e0eea7cb3571d8cbadd1765f706f2f523e8e39 | b840818d8042b2c21a698b04156e33850186716a | /programs/6.4.py | bc4ee3e7344d8f8f5b3cca3b9bbee7835f239408 | [] | no_license | IanFinlayson/exploring-cs | bc29b37fb57cd8a2ea436f0c8ba827da2c61de4b | af536a76c450bf48788b63e96d680f23b4d1e14a | refs/heads/master | 2023-06-23T17:12:29.596809 | 2023-06-09T19:15:14 | 2023-06-09T19:15:14 | 190,763,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | # get the first number
number = int(input("What's the first number? "))
total = number
# keep going until they enter 0
while number != 0:
print("Running total is", total)
number = int(input("Next: "))
total = total + number
# print the final result
print("The total is", total)
| [
"ifinlay@umw.edu"
] | ifinlay@umw.edu |
53d9ef02fe7ce6d3b380a46bbce9d167dbce99e6 | 6826569ba4c90ae076c00db3032c52d86e898373 | /blog/models.py | 4851d059429b44851ea75c04676f14a0d56001b1 | [] | no_license | Jongseong-Won/my-first-blog | 2ac2a757e30e4d3368737205efee08f2b59832b1 | 0d741872cf3e3dcc37626e5a456b827219df9701 | refs/heads/master | 2021-01-12T08:40:53.149473 | 2016-12-17T07:07:48 | 2016-12-17T07:07:48 | 76,661,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | from django.db import models
from django.utils import timezone
class Post(models.Model):
author = models.ForeignKey('auth.User')
title = models.CharField(max_length=200)
text = models.TextField()
create_date = models.DateTimeField(default=timezone.now)
published_date = models.DateTimeField(blank = True, null = Tr... | [
"psbabo@hanyang.ac.kr"
] | psbabo@hanyang.ac.kr |
b74329c16ec3f147c67e6bc97e21d08367627f3c | 332144f791ac46e40229ea2f608cca8c40403f9f | /__init__.py | d0e3082a0ffae85e35abba64d464b78c6e0bcfd7 | [] | no_license | YaohuaZang/HawkesProcesses | 0d4fbd7db9b78d14cf22ad69fc32e28dae4d79c7 | 96e988f1e97ec440326ec8b661c1d392e44684fc | refs/heads/master | 2021-01-20T13:06:38.296543 | 2016-08-15T20:23:57 | 2016-08-15T20:23:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | from .numba_univariate import NumbaHawkesProcess
from .multivariate import MultivariateHawkesProcess
from .univariate import HawkesProcess
from .twitter_wrapper import get_tweets_arrival_process | [
"adrien.corenflos@gmail.com"
] | adrien.corenflos@gmail.com |
15e13c8ab53deb3a2c6582da163090ac97079d67 | c117c8e590ac30382a48b0c3413f9d29c0e9076f | /app/quoteGenerator.py | f6f9525a0f3a2a495108b16978599163278e3691 | [] | no_license | SludgeSlug/bookProj | 5614a7431716df8608d931fffe8c3119e8a85bdd | 49cefc04803cc6be5eaaf347349cd301b3fb0aac | refs/heads/master | 2021-01-23T07:17:00.312247 | 2015-11-04T11:57:50 | 2015-11-04T11:57:50 | 35,540,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,300 | py | import os, zipfile, re, json, urllib
import wordReplacer
APP_DIR = os.path.dirname(os.path.abspath(__file__))
class QuoteGenerator:
def __init__(self, replacementWords, db):
self.replacementWords = replacementWords
self.db = db
def getQuote(self, index, bookId):
paragraph... | [
"philip.wheldon@nhs.net"
] | philip.wheldon@nhs.net |
90f6def6ba82476ad075138d6ad2ef24823c9290 | 54b70a42523e324b73209300e097382f31edf2d8 | /app/run.py | 22588140766b5f4552d598b648b7153a3181ad63 | [
"MIT"
] | permissive | nandinihegde/disaster-response-pipeline | 6026b7811e10aa88ce9682c3a9d0c3c09d51e968 | bdfae0cdffacef9db1d6e7d1ec306b91c267a070 | refs/heads/master | 2023-01-09T05:10:44.042573 | 2020-11-08T06:11:06 | 2020-11-08T06:11:06 | 310,498,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,439 | py | import json
import plotly
import pandas as pd
from nltk.stem import WordNetLemmatizer
from nltk.tokenize import word_tokenize
from nltk import pos_tag, word_tokenize
import nltk
nltk.download('punkt')
nltk.download('wordnet')
nltk.download('averaged_perceptron_tagger')
from sklearn.base import BaseEstimator, Transform... | [
"hegdenandini@gmail.com"
] | hegdenandini@gmail.com |
b93eb51420c923511ffebfa38184384c977e2e83 | 89f50c3c399904c46f3fc04505c5d11536ff2751 | /migrations/versions/4961d6a0cfd4_.py | 06e2bc07b3a9027f49a3288fccad25bb145b65e2 | [] | no_license | dev-siot/mjuTime | 1d7f4bceb78ccbfefec500a6114fc3798c306b77 | 4717cffc7b017ba10eb297343ae4563a527b5112 | refs/heads/master | 2021-05-27T11:20:48.283697 | 2014-10-22T20:14:07 | 2014-10-22T20:14:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 734 | py | """empty message
Revision ID: 4961d6a0cfd4
Revises: None
Create Date: 2014-10-12 04:03:46.090000
"""
# revision identifiers, used by Alembic.
revision = '4961d6a0cfd4'
down_revision = None
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic - please adjust! ###... | [
"wwww432@lycos.co.kr"
] | wwww432@lycos.co.kr |
3c34e3492214868ce50a304ccd2a7d4813a9e59b | 2281bfc4d07b6044a02c1db9f265e5cdf522dcbe | /config_files/lexical_knowledge_datasets_nguyen.py | 10077e57ab2cfb69f0c0616855732923029921c2 | [
"Apache-2.0"
] | permissive | s-mizuki-nlp/hierarchical_code_learning | 49178c8a1edaa4ec4ff1b170981b6c92c953cb13 | e1ffe3f5d9b38e53c067a697e4d9a6fd5222fba6 | refs/heads/master | 2021-06-13T16:40:29.411924 | 2020-07-29T06:29:01 | 2020-07-29T06:29:28 | 200,662,203 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,961 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
from __future__ import absolute_import
from __future__ import unicode_literals
from __future__ import division
from __future__ import print_function
import os
import numpy as np
from dataset.transform import FieldTypeConverter
_distance_str_to_float = FieldTypeConverter(dic... | [
"mizuki.s.aa@m.titech.ac.jp"
] | mizuki.s.aa@m.titech.ac.jp |
ec5e35cc94416f945e4008dd473d237955e8039e | 9f617fad009b35740d1864dace7631aed2492b13 | /rootfs/opt/fs-watcher/fs-watcher.py | a2dc596d205ec67922af307efb964dd60c228ed4 | [] | no_license | ehudkaldor/mopidy | b62fdcbeb26e647ced343741959c949c375b9d88 | 1a46172907b0229adc8280c6456e95ec56aaef4d | refs/heads/master | 2021-05-14T15:09:26.081673 | 2019-07-25T00:38:30 | 2019-07-25T00:38:30 | 115,986,659 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,193 | py | from inotify_simple import INotify, flags
import os
import sys
import subprocess
def recursively_watch(inotify, root_folder, flags):
"""Recursively watch all files and directories under the given root folder, not
following links. Returns a dictionary that maps watch descriptors to filepaths."""
watches = {... | [
"ehud@UnfairFunction.org"
] | ehud@UnfairFunction.org |
285310cf1d4edc5a1443def90668c7c840468d8e | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/model_control/detailed/transf_BoxCox/model_control_one_enabled_BoxCox_PolyTrend_Seasonal_DayOfMonth_ARX.py | 1d28284256ded9da5f673fdeaad18a79bbde2158 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 164 | py | import pyaf.tests.model_control.test_ozone_custom_models_enabled as testmod
testmod.build_model( ['BoxCox'] , ['PolyTrend'] , ['Seasonal_DayOfMonth'] , ['ARX'] ); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
9e4f4b0bd91e9881e0c2b65bfc2072e361de6a75 | 0e538d58825dc3862556b5c68227a32b01db6ebf | /hackerrank/counter_game.py | 08e6d478959d8c86fe372faff900043538a182c0 | [] | no_license | nghiattran/playground | ac6f1e724153df4b84b7e1221765dd60638478fd | 6dfa0b9660ece8d51d439d26afc9d338b1547823 | refs/heads/master | 2021-01-12T09:21:03.068081 | 2017-08-06T22:36:29 | 2017-08-06T22:36:29 | 76,141,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | def solve(n):
turn = 0
while n != 1:
if n & (n - 1) == 0:
n >>= 1
else:
hi = len(bin(n)) - 3
n -= 1 << hi
turn = (turn + 1) % 2
return 'Louise' if turn == 1 else 'Richard'
def test(n, expected):
res = solve(n)
assert res == expected
# n = 1
# expected = 'Richard'
# test(n, exp... | [
"nghiattran3@gmail.com"
] | nghiattran3@gmail.com |
1b9bd280df247b82d29e37ee4e5661bfce9930cb | 6c2f76a3ec51c7264068656dd02c70758afdfe0b | /ocr_text.py | d7becc72b5c2a489eff6ff15c287a540a30efc8f | [] | no_license | austinbernard21/ocr_image_to_text | c3ae25e136f5cb52e894eeb09512dac37ef2d8da | 038defe16a8072febd72a08bab1b0887169547fe | refs/heads/master | 2022-04-14T01:35:52.272392 | 2020-04-12T00:05:28 | 2020-04-12T00:05:28 | 254,779,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,756 | py | #!/usr/bin/env python
# coding: utf-8
import os
import numpy as np
import cv2
import logging
import click
import pytesseract
import pdf2image
from textblob import TextBlob
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
@click.command()
@click.option('filepath', '--filepath', help='pat... | [
"abernar1@mail.sfsu.edu"
] | abernar1@mail.sfsu.edu |
6b3e5a77b83a686c7b566d4ffdf9acb5655b26c2 | ff4f55422bb5601755ba8bcb740a0cbd22a71a7c | /day8/part1.py | ffc32d384c765f54a58cc3a14c12ec3be97aa4a1 | [] | no_license | meganesu/advent-of-code-2017 | 710cff3b226e706a2dbbd4efa3e09b3d03dc348f | 07e21ead74c95c8dddb9fde79409415dc5de4fb7 | refs/heads/master | 2021-05-06T22:22:51.855072 | 2018-10-25T23:16:56 | 2018-10-25T23:16:56 | 112,786,473 | 0 | 0 | null | 2018-10-25T23:16:57 | 2017-12-01T21:01:37 | Python | UTF-8 | Python | false | false | 3,748 | py | import operator
class Condition:
def __init__(self, register_name, comparison_operator, amount):
self.register = register_name
self.comparison_operator = comparison_operator
self.amount = amount
def evaluate(self, registers):
'''
import operator
add = {"+": oper... | [
"msulliv@thoughtworks.com"
] | msulliv@thoughtworks.com |
ee342e5ada539945de7df3fc00fb1518cbefc6df | 2735c5f1a9b1f1a3d2468f0838fc0f20725cbe31 | /usr/lib/pymodules/python2.7/numpy/setupscons.py | 3717a5340ad26ee42bed928d742ef6d52c0bb19e | [] | no_license | sanyaade-iot/rpi-sysroot | f202b9188fd99c372d28b59ebe1b8fcabbfb7a67 | 6e13f05b5b2b44b29ead66c96230a17f077d5198 | refs/heads/master | 2020-04-08T16:14:25.745147 | 2014-03-21T06:27:54 | 2014-03-21T09:47:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39 | py | /usr/share/pyshared/numpy/setupscons.py | [
"weitjong@gmail.com"
] | weitjong@gmail.com |
f3e45faf72876ac874810fcfd1b653c0396a3d30 | 779dbdc49a435df4041bb6669340b749b87a989c | /main.py | 43db1de9998c52064aeeb23ae006b30821d689eb | [] | no_license | hbg/clarifai_tutorial | 6ff1827145ac00384c13bc39577453357c15441c | 7863b5989f9a9d1cc453be5536c8a142ac745568 | refs/heads/master | 2021-02-03T22:30:35.765311 | 2020-03-09T15:57:53 | 2020-03-09T15:57:53 | 243,560,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,350 | py | from clarifai.rest import ClarifaiApp
from clarifai.rest import Image as ClImage
from glob import glob
import os
ROOT = os.getcwd() + '/training/'
ROOT_PREDICTION = os.getcwd() + '/prediction/'
app = ClarifaiApp(api_key="c52037fe09f14d559e2e11857bfba297")
def train():
app.inputs.delete_all()
folders = ["superman", "... | [
"noreply@github.com"
] | noreply@github.com |
24e2cb1a1c69d31fb99966a4a899517620e09ead | d35b79c24289c5322401de31bd75b07c7b6c2324 | /window.py | 48e8d701978413b98001500f73b8e592b73a8a89 | [] | no_license | kangyiS/pythonScript | 2703f0664096fd8a8f6266bdd67e0657f21a2b15 | 64af2fa536fe9a512ad3c4b71f4bbf0a6f171474 | refs/heads/master | 2020-03-27T07:05:36.608476 | 2018-08-26T08:09:32 | 2018-08-26T08:09:32 | 146,161,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,675 | py | import tkinter as tk
from tkinter import ttk
from tkinter import *
import serial
#import serial.tools.list_ports
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
import time
from math import *
from tkinter import messagebox as tkMessageBox
from tkinter import file... | [
"734042654@qq.com"
] | 734042654@qq.com |
6c5ffdb56f09572c2478e8ae7551da1736e3eaaf | 4e72444a5d4b95c0057c5907b6b7ec13d01c518c | /PytorchCNN1V3.py | 286636a7f0b5560620adfa1b57d5e6cd87b6b5d7 | [] | no_license | omnissian/pytroch_my | 59141f9fe02f2869561adfa84359e1733c26eea4 | 515001cffe16d6b264ce89dbdb5c6b3851062696 | refs/heads/master | 2020-08-01T04:41:55.293661 | 2019-10-28T11:52:20 | 2019-10-28T11:52:20 | 210,867,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,903 | py | # Absolut Halal
# https://www.deeplearningwizard.com/deep_learning/practical_pytorch/pytorch_feedforward_neuralnetwork/
#----------------------
import torch
import torch.nn as nn
import torchvision.transforms as transforms
import torchvision.datasets as dsets
import matplotlib.pyplot as plt
import random
train_datase... | [
"noreply@github.com"
] | noreply@github.com |
bdbf66f680b1ea39771b59a2f8431b1111cdba9b | 6eddce1e728afade439a2eae69cb63bcfddd4591 | /PyCad/ObjectGroup.py | 4f7fd3b1db3fee0143f779be257de9e2c2adca98 | [] | no_license | jfu334/PyCad | 7f4858325b152adbe1e6395d577f9f4fbd8bfe7a | 29fe2de4b5a26161623c92d2903af7d2241e24c4 | refs/heads/master | 2020-11-26T16:56:43.436654 | 2019-12-21T19:43:22 | 2019-12-21T19:43:22 | 229,147,618 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 543 | py |
class ObjectGroup:
def __init__(self, *args, color=None):
self._objects=list(args)
if(color is not None):
for i in self._objects:
i.setColor(color)
def addObject(self, object_):
self._objects.append(object_)
def objects(self):
return list(self._objects)
def copy(self):
return ObjectGro... | [
"you@example.com"
] | you@example.com |
ec524db8094797858482e4b156fb2e86ceb48272 | b7d21016a61826cee136c1861cc4a33cf209d7d1 | /payment/models.py | 72402955215ae794dd64db762162bcf7762d247d | [] | no_license | Amit-031296/Volshebny_9-10-2019- | c40770d56b6e8fbef9e4e650a0a2030f13e3da0f | 7f95f2e4a323edfe02a6b07154995a9c3cfca042 | refs/heads/master | 2020-08-08T16:19:24.726070 | 2019-10-16T11:32:46 | 2019-10-16T11:32:46 | 213,868,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,907 | py | #<---------Django Imported Libraries--------->
from django.db import models
from django.contrib.auth.models import AbstractUser
from django.utils import timezone
from datetime import datetime
#</---------Django Imported Libraries--------->
#<---------External Libraries--------->
from model_utils.managers import Inheri... | [
"amitv.mumbaii@gmail.com"
] | amitv.mumbaii@gmail.com |
831dac4a79f62329474e05a2fdc0da30194dc4be | 7578b1780e0e0a9e88d1834da4a3ca380747b83b | /gaepythonCallBack/WeatherProxy.py | 7fc8a350091eb01df573e84ae5e634aedac0e061 | [
"MIT"
] | permissive | xuechong87/JQsimpleWeather | 4f45f7b3ff9318b0ea714c160796a74445f437a0 | 58934353e02fd645b15fb17462b940e457518e8b | refs/heads/master | 2021-01-20T11:57:52.663603 | 2014-01-24T07:36:21 | 2014-01-24T07:36:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,005 | py | from google.appengine.ext import webapp
import urllib2
import logging
class WeatherProxy(webapp.RequestHandler):
def get(self):
logging.info("get")
self.response.headers['Content-Type'] = 'text/javascript'
param = self.request.get
write = self.response.out.write
callBac... | [
"xuechong87@gmail.com"
] | xuechong87@gmail.com |
d0cd842e8bb16c6c209c3cc94098b0e03846618e | b121b4135f0edf0e39c1ae7343c7df19f56a077f | /mysite/yaml_creator/models/deprecated/SingleFlux.py | 405936402b779d8e5d7652b7830c8ade95feced6 | [] | no_license | MPIBGC-TEE/bgc-md | 25379c03d2333481bd385211f49aff6351e5dd05 | 8912a26d1b7e404ed3ebee4d4799a3518f507756 | refs/heads/master | 2021-05-08T19:07:46.930394 | 2020-10-21T12:08:53 | 2020-10-21T12:08:53 | 119,548,100 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | from django.db import models
from . Variable import Variable
#class SingleFlux(models.Model):
class SingleFlux(models.Model):
expr=models.CharField(max_length=200)
source=models.ForeignKey('Variable',related_name='donating',on_delete=models.CASCADE)
target=models.ForeignKey('Variable',related_name='receivi... | [
"markus.mueller.1.g@googlemail.com"
] | markus.mueller.1.g@googlemail.com |
51b2b47743dfbef33af0b10e672f757cd09a740d | b2e53c3b14152dfe64df1ec58795aefa562bdb34 | /Python/exercise1_starter/exercise starter files/coordinate.py | 2ed628bc5c147fe35f588b92d50ba38ef35d0e5b | [] | no_license | SirLegolot/SSP | 3e0ea6acc232e0ff92cc937fedd9193c2533429b | 2c1eccdbc315e552b317c07fe1e13dbab8735f96 | refs/heads/master | 2022-12-04T09:24:07.050728 | 2020-08-14T00:06:44 | 2020-08-14T00:06:44 | 287,394,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,041 | py | # exercise
# exercise 2
# 6/23/2017
# Neel Gandhi
from math import pi, radians, degrees, sin, cos, asin, acos, atan2
# DEFINE FUNCTION CONVERTING HA AND DEC TO ALTITUDE AND AZIMUTH HERE
# note: to have a function return two values, just do: return value1, value2
lat = radians(34.0727)
def altazi(HADegrees, decDegrees... | [
"ngong2020@gmail.com"
] | ngong2020@gmail.com |
e774be21610a5d70962088fab4fa554c4ae685ca | ab5343aa4eb64f077c9e90aac147d96bd6c4c924 | /routing/settings.py | 851a0661c0de5efa23ce28119641ad84b8cb3f28 | [] | no_license | isossa/fast-routing | c9cb702888204d6b4c5c2cfb6be2125ecbde018e | 431510293727cc5e88757dd68348510308240100 | refs/heads/master | 2023-08-04T04:47:33.286828 | 2021-09-15T17:30:18 | 2021-09-15T17:30:18 | 360,698,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,216 | py | """
Django settings for routing project.
Generated by 'django-admin startproject' using Django 3.0.10.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
... | [
"sossajeovanis@gmail.com"
] | sossajeovanis@gmail.com |
b3fefee9ca9e00799e91045a7894b93e8d9ee7b6 | 972fce6b6ae5518063689a7a3abc03fb05a15328 | /Algorithms/baselines-master/baselines/ddpg/test_smoke.py | b5bf86637fc3a9ac585ab73b71796fa7a75bebf6 | [
"MIT"
] | permissive | xuxiyang1993/gym-guidance-collision-avoidance-single | fd85a5f5f16bdbfc8036df3199e277017e769ba8 | 2a532a5d86ac1e0ae31d36fa1ad7fb379ac9c932 | refs/heads/master | 2021-07-20T17:11:49.360300 | 2020-05-20T20:14:58 | 2020-05-20T20:14:58 | 164,495,031 | 6 | 3 | MIT | 2019-03-16T05:19:18 | 2019-01-07T21:00:52 | Python | UTF-8 | Python | false | false | 405 | py | from baselines.run import main as M
def _run(argstr):
M(('--alg=ddpg --env=Pendulum-v0 --num_timesteps=0 ' + argstr).split(' '))
def test_popart():
_run('--normalize_returns=True --popart=True')
def test_noise_normal():
_run('--noise_type=normal_0.1')
def test_noise_ou():
_run('--noise_type=ou_0.1')... | [
"xuxiyang1993@gmail.com"
] | xuxiyang1993@gmail.com |
fd10d2e175e33215ed8b81921acfc5bbffb9ea03 | 9b48180597e9a27f9765795858f523be03c018a2 | /src/my_cube.py | d4abf6d02dff12924fab42b6e711a818c1e6aa79 | [] | no_license | DanW1ll1ams/git_lesson | 8154012d6b243f28bdc77a475c041414173addc9 | e0b9f0fef7aec53385e83f4607c602fe1d6aea3d | refs/heads/master | 2020-12-02T11:21:55.683887 | 2017-07-09T18:34:50 | 2017-07-09T18:34:50 | 96,632,122 | 0 | 0 | null | 2017-07-09T18:34:51 | 2017-07-08T16:56:17 | Python | UTF-8 | Python | false | false | 80 | py | def my_cube(x):
#returns the cube of a number
return x ** 3
print(my_cube(2)) | [
"danwilliams23.dw@gmail.com"
] | danwilliams23.dw@gmail.com |
149a46642e9693a31f64149f977898857f644375 | 1af1c22de6fe8f1d3df09fdacc8efcb8adfc8f21 | /pylib/extract.py | 1ed77dce7f20c9b724eb14096b47481ed1f7c9a3 | [] | no_license | metatab-packages/civicknowledge.com-census-demosearch | baf1770d7bab92823e2214613924236d4f0cd83e | 274c0995a80eb525d9775597912fc47a8b0f135f | refs/heads/master | 2023-05-15T03:39:11.758064 | 2021-06-08T14:08:02 | 2021-06-08T14:08:02 | 333,870,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,797 | py | """
"""
import logging
from functools import reduce
from itertools import chain
from pathlib import Path
from auto_tqdm import tqdm
import metapack as mp
import pandas as pd
from demosearch import FileCache
logger = logging.getLogger(__name__)
class LPError(Exception):
pass
aggregates = {
'male_u18': ['b... | [
"eric@civicknowledge.com"
] | eric@civicknowledge.com |
f41dde6eead080d1c4e3165b21de9df42acdfcf3 | fe3b4e3b5af507a8b24d596f9baa8c5c324aa1b0 | /census/migrations/0009_contactform_verify.py | 299bfb11116d0705d2d8ec148713362c67cf8563 | [
"MIT"
] | permissive | senderle/bookcensus | 64915d4e3980ba0cf0a5d7cb223e095c423fa6c1 | 46435d068437da3beebe594bb4faf9791e2690f1 | refs/heads/main | 2023-04-05T08:25:04.362536 | 2020-11-20T23:30:37 | 2020-11-20T23:30:37 | 271,890,073 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-07-27 19:40
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('census', '0008_auto_20180716_2014'),
]
operations = [
migrations.AddField(... | [
"[marivega@sas.upenn.edu]"
] | [marivega@sas.upenn.edu] |
b69b8b1aaa96cdd0e13fa44bc90c32ab1df36981 | 96b595e2dc172f067b922e6f1dfc1486519454cf | /LinkedList/doubly_linked_list.py | a720ec40b6ad5c671d5fe59a8fd87fe7271d3932 | [
"MIT"
] | permissive | twistedmove/data-structures | d5e117f877ffc18b306e9c125fab2af0adeddcb7 | 35037983206ede38ece51706a81390529b9f885f | refs/heads/master | 2021-08-14T08:19:54.636692 | 2017-11-15T03:44:48 | 2017-11-15T03:44:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,979 | py | #!/usr/bin/env python3
# Node class to represent data contained
# within a doubly linked list
class Node():
data, prev, next_ = None, None, None
def __init__(self, data, prev, next_):
self.data = data
self.prev = prev
self.next_ = next_
def __str__(self):
return str(self.data)
class ... | [
"fisetwill@gmail.com"
] | fisetwill@gmail.com |
46519bfa56ede49cd6af6ad77abced12dc33b167 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/222/users/4079/codes/1846_1277.py | 484bb8fd32564afb1a3ff017b573748a9c0be05e | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | from numpy import*
from numpy.linalg import*
tab=array ([[0,2,11,6,15,11,1],[2,0,7,12,4,2,15],[11,7,0,11,8,3,13],[6,12,11,0,10,2,1],[15,4,8,10,0,5,13],[11,2,3,2,5,0,14],[1,15,13,1,13,14,0]])
c1= int(input("Digite o numero da 1o cidade: "))
c2=int(input("Digite o numero da 2o cidade: "))
a= int((c1/111)-1)
b=int((c2/... | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
9d5d960f0cb7b0a22c1a7ca86b1bc89bbad3fd06 | 12237ff528f00cf2b8e2637fcd411a4faaaeb76d | /mysite/thrifts/views.py | 980a909d6d166dbdb757420e0169ca7d5188088c | [] | no_license | Augyu/Thrift-Store-Website | 85fa4d6e8667e4a4e7740456da7e908e05cf306d | ec0256722de3083f23d873ef6601c75714284667 | refs/heads/master | 2023-02-01T07:07:47.664879 | 2020-12-17T00:44:55 | 2020-12-17T00:44:55 | 297,088,650 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,920 | py | from django.http import HttpResponse, JsonResponse
from django.shortcuts import render, redirect
from django.template import loader
from django.contrib import messages
from django.contrib.auth.models import User
from django.contrib.humanize.templatetags.humanize import naturaltime
from google.cloud import vision
from .... | [
"yuhsuan@vt.edu"
] | yuhsuan@vt.edu |
6b0b580bae506af7769c5f437f2bce97f3f01644 | 5cb5ef5787d8d71001907a1a96cc2cfcbc17ea0b | /hw-2/code/stoogesort_graphs.py | 0732d9a47aa28d1d19385b5569137f499c5bc03d | [] | no_license | leedre/CS-325 | 92db6a943047bb82a39de9bbd74eac45374e68a6 | b079a3c5e3b832de2785d7de702d6168fdd742fd | refs/heads/master | 2020-03-26T20:08:16.667826 | 2017-12-03T18:32:57 | 2017-12-03T18:32:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,200 | py | '''
Jon-Eric Cook
CS-325
Homework #2
This program demonstrates the stooge sort algorithm. It does this by first
checking if the first element is larger that the element at the end. If this is
true then it swaps them. If there are 3 or more elements in the array, it
proceeds to sort the first 2/3s of the array. It then ... | [
"mrjec@protonmail.com"
] | mrjec@protonmail.com |
54554d98ca238264abde999f0e4ee0385bc5025e | efe84fb893b5f5a8601177a83a8ca4fa5a493b5c | /UsersRegistration/views.py | ab7c1da85a28741576180a062e7d259ce830f4ae | [] | no_license | unnatimishra15/DietDiversity_unnati | 6394558e823c72e17c5a3488740aca791a056148 | 9c78fa10b9d001488b094ac884e4c1f2d766c3d6 | refs/heads/master | 2022-12-30T06:36:18.296917 | 2020-10-23T07:17:23 | 2020-10-23T07:17:23 | 287,897,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,144 | py | import csv,io
from csv import reader
from django.shortcuts import render,redirect
from django.contrib import messages
from django.db import transaction
from django.urls import reverse
from django.contrib.auth.decorators import permission_required
from django.contrib.auth.models import User
from .models import UserType
... | [
"unnatimishra15@gmail.com"
] | unnatimishra15@gmail.com |
b3d5949aaaed9090fc7dbf35e980559ebd50eccf | 757bdf042b3f3f7c2f5af8b9a322cabbf44d1a0f | /katago/board.py | 45c09126651a5aadb0a4eb720ddc39ebcff55777 | [] | no_license | fallcat/go-review-matcher | cfedcee1edc320dab3e0c13a45eee9b1a58c0ed6 | 426159c2a942f2bff1767ab68c63576605e1a5ac | refs/heads/master | 2023-01-27T11:06:15.127069 | 2020-12-12T04:49:59 | 2020-12-12T04:49:59 | 292,391,369 | 0 | 0 | null | 2020-12-11T04:47:42 | 2020-09-02T20:47:39 | Python | UTF-8 | Python | false | false | 60,244 | py | """
Borrowed from KataGo https://github.com/lightvector/KataGo
"""
import sys
import random
import numpy as np
import time
class IllegalMoveError(ValueError):
pass
#Implements legal moves without superko
class Board:
EMPTY = 0
BLACK = 1
WHITE = 2
WALL = 3
ZOBRIST_STONE = [[],[],[],[]]
ZOBRIST_PLA = []... | [
"rachel_you@outlook.com"
] | rachel_you@outlook.com |
59652d86eab75508d519c117ae8b2225756b4a14 | 759aea17c91ca41a634adbd4612da66fa4e3b024 | /imageRecignition/imageDestection.py | 5182d87bc3dcd898a7f29118451bb763b14d6c01 | [] | no_license | BruceClark406/LaserTracker | d621f7eb2c70805f4d37761115dc83f8f50fe1bb | 5c5e063eaf9bc16e9738e8e38a31a003f00ab98e | refs/heads/master | 2020-04-17T13:47:53.724652 | 2019-02-28T01:07:12 | 2019-02-28T01:07:12 | 166,630,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | import numpy as np
import cv2 as cv
face_cascade = cv.CascadeClassifier('C:/Users/bruce/Downloads/opencv/sources/data/haarcascades/haarcascade_frontalface_default.xml')
eye_cascade = cv.CascadeClassifier('C:/Users/bruce/Downloads/opencv/sources/data/haarcascades/haarcascade_eye.xml')
img = cv.imread('maddieBruce.jpg')
... | [
"brucewestonmt@gmail.com"
] | brucewestonmt@gmail.com |
241795e754b69a808a8db37a5e2743761b068ad1 | 291151f8a66b2b28a78874b916527a1659e96c21 | /kgera/apps/core/admin.py | a720c7f316a52c1c1d15a0ebf91c607e629801df | [] | no_license | JayBeloved/estatemanager | 0589722faa36695f57014d2d6c740c8b818c7e92 | 2b43ead5b601b49924363d051422e73ee3936a71 | refs/heads/main | 2023-08-16T00:38:55.296512 | 2021-10-20T17:18:06 | 2021-10-20T17:18:06 | 412,392,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | from django.contrib import admin
# Register your models here.
admin.site.site_header = "Kgera Super Admin"
admin.site.site_title = "Kgera Super Admin Area"
admin.site.index_title = "Welcome to the Kgera Manager Super Admin Area"
| [
"jophilip79@gmail.com"
] | jophilip79@gmail.com |
1f1f41c8b074a3e5842ed3130bfb69c1c7b7bb3a | 583af34338da1f9aa238b5c25bfeaff86a95f506 | /cz4042/project2b_q3.py | ea78c046cf342576b179323172f3d13d855daf5a | [
"MIT"
] | permissive | jeanellechek/ntu | d881377a3b0754d88afc0236e935829c2a82caa5 | 8025fcb98e9d2528e180223da1a02b5f7f6c2a21 | refs/heads/master | 2020-04-05T21:19:47.124985 | 2017-12-25T08:54:20 | 2017-12-25T08:54:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,259 | py | import numpy as np
import os
import pylab
import tensorflow as tf
from load import mnist
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
os.environ['CUDA_VISIBLE_DEVICES'] = '0'
np.random.seed(123)
def init_w(n_visible, n_hidden):
return np.asarray(
np.random.uniform(
low=-4 * np.sqrt(6. / (n_hidden... | [
"xingzhao0321@gmail.com"
] | xingzhao0321@gmail.com |
65fe121e163bb535d489ac05df663c58e7ebede3 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2289/60752/278304.py | cdacd943998c206e86876081ac33d814c666414b | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 872 | py | class node:
val=0
left=None
right=None
def __init__(self,val,l,r):
self.val=val
self.left=l
self.right=r
def makeTree(s,n):
if len(s)>=2:
left=node(s[0],None,None)
n.left=left
right=node(s[len(s)-1],None,None)
n.right=right
makeTree(... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
3b4411da64d01e73cf5a1701bb3ba6854faa60e3 | 7b6d428f81671f52c4f3f6ec55359df392ef80c6 | /FootDetector/ProcessFunc.py | 4b6e489d4ccaee7b9f7c6c0571ce27c1830265fc | [] | no_license | msliu3/FrontTracking | de7df1d5fa820cc10ccfd11ee80b4a6140d780b8 | 43decdbff97a8c2b216261b1f5f69c61efb23305 | refs/heads/master | 2020-08-07T10:16:03.771044 | 2020-06-30T06:50:54 | 2020-06-30T06:50:54 | 213,405,920 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,000 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
@File : ProcessFunc.py
@Contact : liumingshanneo@163.com
@Modify Time @Author @Version
------------ ------- --------
2019/10/29 20:08 msliu 1.0
@Description
------------
这个文件提供各种函数
"""
import numpy as np
import cv2 as cv
impor... | [
"liumingshanneo@163.com"
] | liumingshanneo@163.com |
64cedd6905c3b5c5571647679f6486b5717aeb03 | 54692bc3d8a3796261f118562d2ddb3ceefe046d | /PyWebSystem/customtags/pw_findelement.py | be714d9ee4ca5e4ddb8b5c0776e25b11d6bea284 | [] | no_license | anji-a/PyWebSystem | 381d29969329830d1921329109eb12e9806259ec | 58c7f823b4865e7130ae880ad0e13ffd59c75c3e | refs/heads/master | 2021-08-18T22:15:56.930880 | 2020-04-05T01:34:40 | 2020-04-05T01:34:40 | 154,214,849 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,285 | py | from django.core.cache import cache
from PyWebSystem.PyUtil.pw_logger import logmessage
from PyWebSystem.Samples.layoutSettings import layoutSettings
from PyWebSystem.db import models
import json
def findelement(context, *args, **kwargs):
logmessage("findelement", "warning", context["ElementPrimary"])
Element... | [
"37981135+anji-a@users.noreply.github.com"
] | 37981135+anji-a@users.noreply.github.com |
5bcd78c45a52aff7a00ba35139634822d22c4fbf | e369c7b16495b0d913f46a1a3e293d7ff5368d92 | /contrib/devtools/optimize-pngs.py | 1554488e331b7175ced1eda535e8d82d69befb41 | [] | no_license | giracoin/girauno | be459789d8e00e424f4a6b881b27008479ab3276 | cee08e12174831a08967c6764f612ba73cf0d7e8 | refs/heads/master | 2020-03-17T06:19:37.157684 | 2018-05-14T11:34:54 | 2018-05-14T11:34:54 | 133,350,681 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,393 | py | #!/usr/bin/env python
# Copyright (c) 2014-2015 The Giracoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
'''
Run this script every time you change one of the png files. Using pngcrush, it will optimize the png f... | [
"info@giracoin.com"
] | info@giracoin.com |
67537176f5ab1516b7056cbf95febe4282ac6d9a | a7b0909327758d592c2eac825a9b633085d65e75 | /Numbers/nextPrimeNumber.py | f6622d40436c59d4545978542e1bdbda82d903d8 | [] | no_license | rrpff/Projects | d0c06040523ff18d1ec645be1230b0f0e6673ea7 | 9f2490eb3603ab59dc199308136d928eb25a03c1 | refs/heads/master | 2021-05-28T03:05:31.690146 | 2014-04-21T14:58:40 | 2014-04-21T14:58:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | # Have the program find prime numbers until the user chooses to stop asking for the next one.
import sys, os
def main():
# Code here
if __name__ == "__main__":
main() | [
"richardfost@gmail.com"
] | richardfost@gmail.com |
274566fce46a6280d28f9f7c957d24cf9e03f19a | 8c8ea797b0821400c3176add36dd59f866b8ac3d | /atcoder/abc/abc022/a.py | a814867704153dafef7a4e1a1a682abdf91841f2 | [] | no_license | fushime2/competitive | d3d6d8e095842a97d4cad9ca1246ee120d21789f | b2a0f5957d8ae758330f5450306b629006651ad5 | refs/heads/master | 2021-01-21T16:00:57.337828 | 2017-05-20T06:45:46 | 2017-05-20T06:45:46 | 78,257,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | def readints(): return list(map(int,input().split()))
n, s, t = readints()
w = ans = 0
for i in range(n):
a = int(input())
w += a
if s <= w <= t:
ans += 1
print(ans)
| [
"okmt52@gmail.com"
] | okmt52@gmail.com |
baa994917bf2bbdd2f99ca742fbcbd0a1ca8f181 | 1a1146b5704dc96450aa2493b97204e2c979360b | /projectmed/index/views.py | 81b06f31b28ecd032d95c8e8d36d160b16f21eaf | [] | no_license | Gurucharan-G/medway | f21d06281b9d30edfac9c7dc964819c5786d9219 | 37fbb53559242df8fd6aceab25fac11688cca529 | refs/heads/master | 2023-02-02T22:19:34.840699 | 2020-12-25T04:26:38 | 2020-12-25T04:26:38 | 324,284,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | from django.shortcuts import render
# Create your views here.
def index(request):
return render(request,'index.html')
def login(request):
return render(request,'home.html') | [
"gurucharan9499@gmail.com"
] | gurucharan9499@gmail.com |
08b76b891d3c49e3451f42e68c8681bce8002f78 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_318/ch20_2019_03_26_19_49_33_893196.py | 80c686275aaf34ab2f779dc196621516c51e36bc | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | nome=input('qual eh o seu nome')
if(nome=='chris'):
print('todo mundo odeia o chris')
else:
print('ola,',nome)
| [
"you@example.com"
] | you@example.com |
00ebba6ecd000b875cb9953fa73fecf8d5bfae53 | c171d1b819d599c294afe67d17f09f7ef5e358af | /Heuristic_Search/A_Star.py | eaacbe6a34a0e5ee678385235cf792707a68df63 | [] | no_license | bawejagb/Artificial_Intelligence | 0e18e9f9cb0ee2663ae5d3ffd4ad9b2560295947 | 9caafe026e93cd50a0d01d3d83e079ce221c5a9d | refs/heads/main | 2023-04-21T19:20:49.713415 | 2021-05-04T15:54:48 | 2021-05-04T15:54:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,659 | py | '''
Q1- 8 puzzle problem (A*)
Made By: Gaurav Baweja
'''
import copy as cp
def Show(arr):
print("------")
for lis in arr:
for elm in lis:
print(elm,end="|")
print()
print("------")
def Position(val,arr):
for i in range(len(arr)):
for j in range(len(arr[i])):
... | [
"gaurav.baweja2508@gmail.com"
] | gaurav.baweja2508@gmail.com |
f73722c8ef30cdd85f7eb639adec46689efd3824 | 56ab31a72740e7f0e5ba7f16819ae8404def9933 | /ifs/lib.py | fc276da6eca5fa34305a31f93548abb936739da2 | [
"ISC"
] | permissive | cbednarski/ifs-python | 2ea05c0073cd5b8bc371e96125a542178b716801 | 9629ba857b1c397fc1a1f13eeee46e5427fb2744 | refs/heads/master | 2021-01-17T11:07:53.156840 | 2016-11-08T23:35:16 | 2016-11-08T23:35:16 | 20,079,303 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,309 | py | from __future__ import print_function
import glob
import imp
import importlib
import os
import re
import subprocess
import time
import sys
if sys.version_info[0] == 2:
from urllib import urlretrieve
else:
from urllib.request import urlretrieve
import click
# We want this to persist across reboots so do not ... | [
"banzaimonkey@gmail.com"
] | banzaimonkey@gmail.com |
0917d52a61f1820c7b6062854f5aa8d42e5e0eb8 | 47620780edd768237d82d9ddebc965b782e81646 | /src/crawler/leave_crawler.py | 8317fab16f3ed0654291fd462eddd3ce128370bd | [
"MIT"
] | permissive | takidog/NKUST-AP-API | b93ae77816e9439e7d314d06837a79c16fa9453f | 25d99c86e3c6c0d6856a59ecf2dce98b60830c17 | refs/heads/master | 2020-11-24T14:18:36.526420 | 2019-12-02T03:18:04 | 2019-12-02T03:18:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,581 | py | import requests
from lxml import etree
from utils import config, error_code
import datetime
def login(session, username, password):
"""login to leave system
Args:
session ([request.session]): requests session
username ([str]): username of NKUST ap system, actually your NKUST student id.
... | [
"wow@taki.dog"
] | wow@taki.dog |
33a1cc1c344ad3c9fa5f1b6df0f2ee4d06d48db3 | aa3632b84dd85a357c567be6c5598d717442045c | /files/imports_project/app.py | 8a7e0cb96823b57cd50e9bb21e7ff0bb269bc641 | [] | no_license | shussey98/learning | 960031db856d3d7649df9e160560609f58afa72b | c709f935f8e4ad676663fb229f6258fd2690f39e | refs/heads/master | 2022-11-25T12:56:30.635143 | 2020-07-28T11:19:28 | 2020-07-28T11:19:28 | 282,874,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | #import utils.file_operations
#utils.file_operations.save_to_file('Rolf','data.txt')
from utils.common.file_operations import save_to_file, read_file
save_to_file('Rolf','data.txt')
print(read_file('data.txt'))
print(__name__)
| [
"sharleenhussey@hotmail.com"
] | sharleenhussey@hotmail.com |
6967616f2061f266eebbc6a436057d94be0e4454 | 88cc3cadf2718133eeb8b9ebcec8c6827ba21cb3 | /Lesson2/fixtures/example3-fixture-features/test_beta.py | e352e629e03357fb4f92feb31288602fb696a3b0 | [] | no_license | misamoylov/otus-qa | 5324ceb26baec55697f02dcd54d4fd529c098057 | 2ad73495dcedb42e8e4eb7893d0bbd088eed3d2b | refs/heads/master | 2020-05-02T16:06:51.753814 | 2019-07-29T17:03:40 | 2019-07-29T17:03:40 | 178,060,763 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | import unittest
import pytest
class BetaTest(unittest.TestCase):
def test_unit_beta_1(self):
print('\nIn test_unit_beta_1()')
@pytest.mark.usefixtures('some_resource')
def test_unit_beta_2(self):
print('\nIn test_unit_beta_2()')
| [
"msamoylov@mirantis.com"
] | msamoylov@mirantis.com |
7fa851f9852e401dac4e118026bd631192bb0a54 | ff8d00c161e7120d965c353f10f10871c1dabc5c | /provided_code/network_functions.py | 433b6c5a9b4f758fad117894ce2f35cc60ac97f9 | [] | no_license | Scu-sen/AAPM2020_open_kbp | b6c4dd0cbce958f8174bf18ef74e94cfdd1dd51e | 2db52d7186c8fe788994c7a5fd70dc9052e0ff8e | refs/heads/main | 2023-07-16T09:15:43.018031 | 2021-08-02T09:04:26 | 2021-08-02T09:04:26 | 391,871,924 | 26 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,832 | py | """ This class inherits a network architecture and performs various functions on a define architecture like training
and predicting"""
import os
import numpy as np
import pandas as pd
import tqdm
from tensorflow.keras.models import load_model
from tensorflow.keras.optimizers import Adam
from provided_code.general_f... | [
"scusenyang@tencent.com"
] | scusenyang@tencent.com |
cdd84b031f21dd9293221d581ec2b9caa2f2befc | 50ce180f7a165364f91f4eee73dd7891f33b4206 | /src/reiare/blog/templatetags/blog_extras.py | 28fe2a52130e9bc1693274fe58ccd9b14306d921 | [] | no_license | tactactad/reiare | 31def8154b9d59265e38de2c82484a887e183592 | fc810fd4647551711636958e60d4b06fd85fee82 | refs/heads/master | 2021-01-01T17:52:10.513478 | 2014-03-05T13:41:12 | 2014-03-05T13:41:12 | 1,293,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,060 | py | # -*- coding: utf-8 -*-
import random, urllib, re, datetime
from xml.etree import ElementTree
from django import template
from django.conf import settings
from django.contrib.flatpages.models import FlatPage
from django.core.cache import cache
from django.utils.encoding import force_unicode
from blog.models import En... | [
"tac@reiare.net"
] | tac@reiare.net |
959ca9706c121d1735858ee1bcfcbe59ef9df097 | 7ada75712766a185ed29f144fad334a3f07b3982 | /bstadd.py | fbcb5f9631aa7090532c6d522523c125877bf266 | [] | no_license | michberr/code-challenges | d77d5c2ac71f4d47d36f12c95057734d82cdd000 | 1966548bf21642c2d8003c993eeb460f9f0f0250 | refs/heads/master | 2021-01-22T20:03:06.003472 | 2017-04-14T05:29:05 | 2017-04-14T05:29:05 | 85,279,141 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,733 | py | """
We'll start with this tree::
4
2 7
1 3 5 8
like this::
>>> t = Node(4,
... Node(2, Node(1), Node(3)),
... Node(7, Node(5), Node(8))
... )
Adding 0 should end up on the far left::
4
2 7
... | [
"michberr8@gmail.com"
] | michberr8@gmail.com |
fda25cd04a77bf1bfc47c634a5515d90cae9a5a2 | e6e0e108758213a96e73e836f032f27dc69c9fee | /leetcode/isomorphic_strings.py | 9bbfb794daaf54b284204b1e608626d91804b8fa | [] | no_license | kristogj/alg_dat | 1a41e70b8b169c79eb05c5e5f44f5de0e50bd9b9 | 7865bcce0f2aa858ff4329301b788fac5de2cd08 | refs/heads/master | 2020-03-30T05:26:36.536544 | 2018-10-06T22:06:45 | 2018-10-06T22:06:45 | 150,799,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | class Solution(object):
def isIsomorphic(self, s, t):
"""
:type s: str
:type t: str
:rtype: bool
"""
if len(s) != len(t):
return False
m,n = {},{}
for x in range(len(s)):
if s[x] in m.keys():
if m[s[x]] != t[x]:... | [
"kristoffergjerde@gmail.com"
] | kristoffergjerde@gmail.com |
fecfc37d79eccee1527a2fb3a5003db15971b0ca | 2ffbcc3ea6610c5a6fc1a2a5ea44daed82007245 | /utils/checkNan.py | 7c71609b9451ed81cbcb8d67802dd5313734cf2c | [] | no_license | caidish/NeuralRG | 322a5ef24b5378e01e83dc9f2c5555c0199e0a16 | 039c98f708474a57387c0439c318075890b306f0 | refs/heads/master | 2020-03-22T23:38:20.445973 | 2018-06-27T12:22:02 | 2018-06-27T12:22:02 | 140,820,993 | 2 | 0 | null | 2018-07-13T08:38:56 | 2018-07-13T08:38:55 | null | UTF-8 | Python | false | false | 87 | py | import torch
def checkNan(x):
assert torch.isnan(x).sum().item() == 0
return x | [
"li012589li@outlook.com"
] | li012589li@outlook.com |
ab4c4b4bd0a3ccc555139b5410e85394b27166d0 | 2825bf6479e08dfead428ff9f29f28d5c23d953e | /25_2/25_6.py | 16ee0a2a14b274729d3136e9a7323e8b35aeabb8 | [] | no_license | zedaster/ImaevIntensive | bc459187dace7946d8ad75a04e058748134aeac4 | b91760fa23f25ce2d19778781f35416c177ab881 | refs/heads/main | 2023-06-22T00:24:47.039208 | 2021-07-20T10:40:54 | 2021-07-20T10:40:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | # for n in range(400_000_000, 600_000_000+1):
# x = n
# while x % 4 == 0:
# x //= 4
# while x % 9 == 0:
# x //= 9
# if x == 3:
# print(n, end=' ')
for m in range(2, 31, 2):
for n in range(1, 20, 2):
number = (2**m) * (3**n)
if 400_000_000 <= number <= 600_000_... | [
"serzh.kazantseff@gmail.com"
] | serzh.kazantseff@gmail.com |
0ac79f7f2b33abcad28faed27eef58c672924601 | 4fb28287b62edb89f2917382bbd72e5da5604c5d | /src/utils/times.py | e92632c2bc8e74ad7f017e8121f8c936eca1bf01 | [] | no_license | koml12/okupy | 52508a1ec9bbb605cf2ae34b2b4b7383f7f1d1e0 | 990f2199b5ca73b6a2ac5db8effecc436ca358e2 | refs/heads/master | 2020-03-18T01:48:24.422782 | 2018-06-22T23:23:28 | 2018-06-22T23:23:28 | 134,160,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,220 | py | """
Function(s) for dealing with time.
"""
def str_to_secs(timestr):
"""Converts a time string (i.e. 30s) to a number of seconds (i.e. 30)
Arguments:
timestr {str} -- string representation of the time.
Returns:
{int} -- number of seconds given by the time string input.
"""
length =... | [
"mok3112@gmail.com"
] | mok3112@gmail.com |
c26b3c94c0530106416646bec062344879b35438 | d1c962d84f50fcc90d6e01a0fcc3cd78d56f7422 | /yatube/posts/apps.py | 9acee4b3dd3332ef07e61a4cdd6a4eeb653d5edd | [] | no_license | nefourmat/mvp_hw05_final | a90adcaf039deed5ddbc772a9056cb6086ca5e4e | d9cb1e2a6c996cbfd3d831ffea2d748065f7f8ad | refs/heads/master | 2023-07-09T13:07:29.211048 | 2021-08-17T15:54:16 | 2021-08-17T15:54:16 | 392,626,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | from django.apps import AppConfig
class PostConfig(AppConfig):
name = 'posts'
verbose_name = 'Публикации'
| [
"nefourmat0@gmail.com"
] | nefourmat0@gmail.com |
6d1143e2e0b876707062552ad3390997d15eb1be | 7c2003d4f4ad20e5b6e8e63d4ef14da04617446e | /django_project/blog/views.py | 37e9c74fb682bb4498432bced944cd6df76d6f03 | [] | no_license | Sneha-Singh09/Python-Django | 18f5eae4cf962191f081a089f68d5301423326e5 | c901af96af83c9bfa88c5ad194de1807b95f44de | refs/heads/master | 2023-06-20T20:06:41.915408 | 2021-07-30T20:10:33 | 2021-07-30T20:10:33 | 291,924,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,053 | py | from django.shortcuts import render,get_object_or_404
from django.views.generic import (
ListView,
DetailView,
CreateView,
UpdateView,
DeleteView
)
from django.contrib.auth.models import User
from .models import Post
from django.urls import reverse_lazy
from django.contrib.auth.mixins imp... | [
"noreply@github.com"
] | noreply@github.com |
33044e78defc698dc49c4fea0b1c284f1468bfb2 | b4c2578b5fa968f44111f2161758826043ef0737 | /RocketClasses.py | bae3932ff5ffd44d947f3c417ee4554290e25436 | [] | no_license | bshep23/Final-Project | 49598b709a890fb6eca46f2ab7a581a646aba209 | fe7e4823e235a42819a0a0c7e8a2c8e7bdc9aac7 | refs/heads/master | 2020-06-29T03:00:11.366846 | 2019-08-09T04:31:19 | 2019-08-09T04:31:19 | 200,419,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,157 | py | # -------------------------------------------------
# Name: Blake Shepherd
# Filename: Rocket and Engine Classes.py
# Date: August 3rd, 2019
# Description: Rocket-Classes
#
# -------------------------------------------------
import time
import math
# from scipy.integrate import quad
... | [
"bshepherd2019@gmail.com"
] | bshepherd2019@gmail.com |
f343c44be230a73661978ff4efac93a1865c281c | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nncollater.py | bd1acbb286e2abcb24a97161cfeae579485f506d | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 780 | py | ii = [('BentJDO2.py', 1), ('RogePAV2.py', 5), ('CoolWHM2.py', 1), ('RogePAV.py', 1), ('SadlMLP.py', 1), ('WilbRLW.py', 1), ('ProuWCM.py', 1), ('AubePRP2.py', 3), ('CookGHP.py', 2), ('WilkJMC3.py', 1), ('AdamWEP.py', 1), ('FitzRNS3.py', 1), ('CoopJBT2.py', 1), ('CoolWHM.py', 2), ('DibdTRL2.py', 4), ('WadeJEB.py', 5), ('... | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
5ad51621745ad1b92c6c4317a64a84429bfce044 | 3b7750d2d289f1c38cab66499e3b0de87758d202 | /TryHackMe/Bolt/exploit.py | 234ef4022921def0c9f78e0493926341664f13fa | [] | no_license | bittenmonkey/OSCP-PWK-1 | bac16d60ac628305562d4d9a1dd1fb2960a10a64 | d2345207fc639e596b11a11b4b8c29368b52b37a | refs/heads/master | 2023-06-26T04:19:43.301827 | 2021-07-29T04:25:58 | 2021-07-29T04:25:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,423 | py | #!/usr/bin/python
import requests
import sys
import warnings
import re
import os
from bs4 import BeautifulSoup
from colorama import init
from termcolor import colored
init()
#pip install -r requirements.txt
print(colored('''
▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄ ▄▄ ... | [
"alvinsmith.nz@gmail.com"
] | alvinsmith.nz@gmail.com |
8bf658fd8055616d84540dde70593b6141fede9d | 2ddd72f5cb69343d98909a8beb0d5c39522f5e2a | /spacy_processing/spacy_tagging.py | 9e5fee1aea4d921f22cecfb2ab0c108dbae598a7 | [
"MIT",
"CC-BY-SA-3.0",
"Apache-2.0"
] | permissive | apmoore1/bl-19-books | 17da453c88a7e16ab651118e7fe0bda494f032b2 | 4e858acf8b7c1b4847ab12ed7a5b023da063523c | refs/heads/main | 2023-07-17T12:09:37.576923 | 2021-09-03T11:29:23 | 2021-09-03T11:29:23 | 304,556,724 | 0 | 0 | Apache-2.0 | 2020-10-21T13:36:57 | 2020-10-16T07:47:58 | null | UTF-8 | Python | false | false | 8,583 | py | import csv
import enum
import json
from typing import List, Dict, Iterable, Tuple
from pathlib import Path
import typer
import en_core_web_md
@enum.unique
class ComponentNames(str, enum.Enum):
NER = "ner"
POS = "tagger"
LEMMA = "lemmatizer"
#PARSER = "parser" not to be included at the moment
app = t... | [
"andrew.p.moore94@gmail.com"
] | andrew.p.moore94@gmail.com |
b4e95242ea14eb530c65ccc4018164d860333073 | 55712c0507003282375dfa8fecfbe20ee9ff2ace | /packages/JuliaManager/JwCvZ/jlm/src/jlm/tests/test_cli.py | bdbcd2ef270296859f0bf93c573149ea2aa74107 | [
"MIT"
] | permissive | gazfaris/dot_julia | 9873339a70fe82ac70bac0c0ee948b04ee0b59d0 | 16556fb0b477220d92568078bfcb4f569594a947 | refs/heads/master | 2023-07-15T22:31:16.873041 | 2021-05-11T23:55:17 | 2021-05-11T23:55:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,727 | py | import os
import subprocess
import sys
import pytest
from .. import cli
from ..utils import ApplicationError, dlext, pathstr
from .testing import changingdir
def test_init(initialized):
assert (initialized / ".jlm").is_dir()
@pytest.mark.parametrize(
"args",
[
["install-backend"],
["cr... | [
"watsona4@gmail.com"
] | watsona4@gmail.com |
9c18918454db6d0be2e861cb4eb03d60b6dd2c23 | 0ad32551e7314c970b28c2f294d67b029d2ea20b | /shen/entity/baseClass.py | be23239216c986f35e777008150d13d1c0c20b9a | [
"MIT"
] | permissive | Hyperion-shuo/Agent-Ticket | 476b657f9d64ab4cf3308f222ad7819392d9439b | c9df0eba1250ac5c0b8372c191374c020f586b42 | refs/heads/master | 2021-01-15T06:35:10.030630 | 2020-03-04T12:02:15 | 2020-03-04T12:02:15 | 242,902,512 | 6 | 0 | MIT | 2020-03-04T12:02:25 | 2020-02-25T03:40:29 | Python | UTF-8 | Python | false | false | 3,663 | py |
class Money:
moneyId : int
money : int
today: str
days: int
def setMoneyId(self, moneyId):
self.moneyId = moneyId
def setMoney(self, money):
self.money = money
def setToday(self, today):
self.today = today
def setDays(self, days):
self.days = days... | [
"1258207729@qq.com"
] | 1258207729@qq.com |
447f57eef984d0213db679a3bc84dab36f34fb91 | 17bbc046b9108d43aff34cc550e27e290a27f13a | /app_TV/views.py | 5aec508affd94d0fffdf7859ceae2bbce1e0eceb | [] | no_license | jamestina18/tv_show | b3ddb54bd90598a58726c5104106f490af17ece9 | 87c530228c8c4bd78bc7d603ad33e816918c0cb0 | refs/heads/main | 2023-05-25T06:07:31.340440 | 2021-06-02T21:25:40 | 2021-06-02T21:25:40 | 373,170,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,536 | py | from django.shortcuts import render, redirect
from .models import Show
# Create your views here.
def index(request):
context = {
'shows': Show.objects.all()
}
return render(request,'shows.html', context)
def new(request):
return render(request,'new.html')
def create(request):
Show.... | [
"jamestina18@gmail.com"
] | jamestina18@gmail.com |
e0d83808c99c3b34ba0f64d827b155299a6f5b65 | 1fe07f975a641daa3591f5dcc5481909eb866f32 | /utils/FileUtil.py | e4652581a809f7ef33ac25f082e6bbfc5f4fbe65 | [] | no_license | LynnHsu/dir_statistic | 60fec0b8ce30f6ee5b20b8a739211baabc5c6cdb | 6d334ff29208c5d695fe483e63d16d75aa291f3b | refs/heads/master | 2022-12-16T03:59:22.626350 | 2020-09-17T09:35:29 | 2020-09-17T09:35:29 | 296,248,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
# 文件大小格式化, M
def format2MB(byte_size):
return round(byte_size / float(1024 * 1024), 2)
| [
"xu.liyin@lifecycle.cn"
] | xu.liyin@lifecycle.cn |
fcb29968ff25048429de573c8d216fe0ec29ad6d | 23429b71e4e8469d2db0b85aa7d1047fd41b0058 | /Anandbabu/wsgi.py | f20973f1faa02860535b7a2127ab6a8f782ba277 | [] | no_license | ramohan/project1 | 0cd2943a0e7c2512b9db273c629ee4046c3cb4b6 | 7c7168809f9a92b13201ea1371c0d608c3938617 | refs/heads/master | 2021-01-16T21:19:55.227357 | 2015-02-05T05:20:29 | 2015-02-05T05:20:29 | 30,008,205 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
WSGI config for Anandbabu project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "Anandbabu.settings")
from django.co... | [
"ramamohan20@yahoo.com"
] | ramamohan20@yahoo.com |
9bd027e2de97b2cf85f9359bd0dfee20171e6f07 | 5a0bfb3db46eb2cc90c1b1721169674119808730 | /Finding_Roots/newton_raphson.py | 9d6d0de9b9fb41d07c62822808b82f9800f267d1 | [] | no_license | gabrielrmachado/NumericalMethods | fe9c1a826f61ac4776a13a20f28d44ad68e11be0 | 7f8b86bd327c287953cc208324575a93542c310d | refs/heads/master | 2020-06-22T10:48:04.422413 | 2019-09-10T16:03:32 | 2019-09-10T16:03:32 | 197,110,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,208 | py | import math
def function(x):
# return math.pow(math.e, -x) * math.cos(x)
# return math.pow(math.e, x)
# return 4 * math.pow(x, 3) + 3 * math.pow(x, 2) - 7*x
# return ((math.pow(x,3)) - (7*math.pow(x,2)) + (14*x) - 6)
# return (x * math.pow(math.e, x) - math.sin(8*x) - 1)
... | [
"gabriel.rmachado10@gmail.com"
] | gabriel.rmachado10@gmail.com |
efe3809629fe4b220147b0ae384eeac7e9b9e97e | 342f1c82e4b4546cc752f77eeb25203a1bd9b08b | /vae/utils_vae.py | f12ffa639d229f783f9d1aa59c33a75e608b8064 | [] | no_license | kaushikb258/Habitat_RL | a4a8d9a9054bb2984f2d4d7f6241bdf542cae87e | d8a7c7d0c6c8910506eed633b071a004786e5805 | refs/heads/master | 2020-09-22T07:31:45.484489 | 2019-12-14T02:49:29 | 2019-12-14T02:49:29 | 225,105,631 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 924 | py | import numpy as np
import glob
import sys
import PIL
from PIL import Image
RGB_PATH = '/home/kb/habitat_experiments/code/imgs_Quantico/rgb/*.npy'
DEPTH_PATH = '/home/kb/habitat_experiments/code/imgs_Quantico/depth/*.npy'
def get_rgb():
img_paths = glob.glob(RGB_PATH)
N = len(img_paths)
d = np.zero... | [
"kaushikb258@gmail.com"
] | kaushikb258@gmail.com |
9caa035649ff81f8aaa6588c7a3506367df1d1db | 03f30b0cf13beb6c80c26af3c40b9334ce5b063c | /SW모의역량테스트/차량 정비소.py | 39bb0fe6a4a8cfda8d7bef01caa63c6d5a1fdd7e | [] | no_license | yunakim2/Algorithm_Python | 41887147dd412596cd5813283e96f68113a4c43d | e8fde2bd7206903b6b4f3c321c3ed5651b484cc7 | refs/heads/master | 2023-08-25T23:13:58.544439 | 2021-11-13T09:08:17 | 2021-11-13T09:08:17 | 295,153,209 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,968 | py | from collections import deque
if __name__ == '__main__':
T = int(input())
# 여러개의 테스트 케이스가 주어지므로, 각각을 처리합니다.
for test_case in range(1, T + 1):
N,M,K,A,B = map(int,input().split())
A -= 1
B -= 1
a = list(map(int, input().split()))
b = list(map(int,input().split()))
... | [
"98_02@naver.com"
] | 98_02@naver.com |
35b61c2526ec18f2ecae05df53b22bb490d85942 | bd24d76360761b2166520ebd98260e282f904ae2 | /models.py | 0115dd9b0b4cd26847a73ae926a783e2263d3719 | [] | no_license | arhumsavera/fakenewschallenge | 4c54464d3a68355c99a62c9872d6d3c7675ef5fd | 6f901277fee2750f816b02200633a4cfd3fa3590 | refs/heads/master | 2020-03-17T12:20:25.864464 | 2018-05-15T23:31:20 | 2018-05-15T23:31:20 | 133,584,195 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,496 | py | import torch
from torch import nn
import torch.nn.functional as F
import numpy as np
from tqdm import tqdm
class FakeNet(torch.nn.Module):
def __init__(self):
super(FakeNet, self).__init__()
self.input = torch.nn.Linear(444, 256)
self.hl1 = torch.nn.Linear(256, 64)
self.hl2 = torch.... | [
"arhumsavera@1x-nat-vl931-172-30-171-230.wireless.umass.edu"
] | arhumsavera@1x-nat-vl931-172-30-171-230.wireless.umass.edu |
1de21caab9aee4f13d90e975dcd7db1bf61cc8e3 | d67dc4eb91889563ed4504afe88652aa3a8384c0 | /test/test_KG/merge_complexity.py | 166046668917b3b076edd1d108d808fd2fb9478e | [] | no_license | zijuzhang/py_ofdm_cs | fa7f3c9b96296fb99b7e0f013463b7b5be4decc5 | 89aea7236b656360650cbde013bf269c1710cbf6 | refs/heads/master | 2021-09-10T12:21:25.732752 | 2018-03-26T07:35:57 | 2018-03-26T07:35:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,857 | py | # -*- coding: utf-8 -*-
import sys
import os
import datetime
import matplotlib.pyplot as plt
from numpy import zeros
sys.path.append('../../src')
from KG import sampling_RSSI,sampling_phase,quantize_phase,quantize_ASBG_1bit,remain,merge
os.system('cls')
plt.close('all')
''' 参数 '''
sampling_period = 1
sampling_t... | [
"511470840@qq.com"
] | 511470840@qq.com |
ebc09264107bd2c835bfab5d8dc931486a7c5508 | 498d4745d82a54ad8cbcf908901b0584febdb062 | /Python/softheon/enterprise/api/client/models/get_definition_model.py | c1b10e87aa85640f3df66b3ff0505391fd719912 | [] | no_license | michaelalvin/EnterpriseAPIClients | eb0f26620be3cb2c274777c14cefac0a0a2f6b26 | e7ab0ac18d9fc4af8f78393940b4cf38f9baafaa | refs/heads/master | 2020-03-20T10:05:30.937970 | 2018-05-14T16:00:11 | 2018-05-14T16:00:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,198 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from ... | [
"skonyk@softheon.com"
] | skonyk@softheon.com |
d7b3582b4c52e7fb88539c13be1c092caeaff812 | a6e4a6f0a73d24a6ba957277899adbd9b84bd594 | /sdk/python/pulumi_azure_native/mixedreality/_inputs.py | e3ee76ba7c0e562f01879921a0d3d73612de3188 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | MisinformedDNA/pulumi-azure-native | 9cbd75306e9c8f92abc25be3f73c113cb93865e9 | de974fd984f7e98649951dbe80b4fc0603d03356 | refs/heads/master | 2023-03-24T22:02:03.842935 | 2021-03-08T21:16:19 | 2021-03-08T21:16:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,326 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from .. import _utilities, _tables
from ... | [
"noreply@github.com"
] | noreply@github.com |
a7b163e64f0508a803c95006a05796f82eeeb569 | 86341b1ec55e57b9d05068bc44cb3647e89d2e44 | /CircleOfSquares.py | 4e79aba0db55dc1d7a7ef6fa4678c9a3c8bbec06 | [] | no_license | lotwij/DrawingASquid | 539e4dda533ad70e090d70737486ab30bffcea8b | 161d1d77ae0465a340baea02068e3146fdb1375e | refs/heads/master | 2020-04-17T09:34:49.787357 | 2019-01-20T10:07:32 | 2019-01-20T10:07:32 | 166,464,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | import turtle
square = turtle.Turtle()
my_turtle = turtle.Turtle()
my_turtle.speed(0)
def square(length, angle):
for i in range(4):
my_turtle.forward(length)
my_turtle.right(angle)
for i in range(100):
square(100, 90)
my_turtle.right(11)
turtle.Screen().mainloop() | [
"Mormeltje4!"
] | Mormeltje4! |
ce92586470483837f6477b0a75a40dce98aa8f9a | a652f89c88fcecb3aa665cf20212064049e9a16f | /models/aos_questions_and_answer/dataset/elective_courses_questions/artificial_intelligence/ai_elective_questions.py | c7a2b24914c91838a6347b4bcede3ccf62a582a8 | [] | no_license | princelewis/Elective-Course-Recommender-System | cba3743d914a664145fda3ae060f4cf80bdfbbed | 9e5f165878f7521ce8967c72daa8b538252d0ae8 | refs/heads/master | 2020-05-19T08:19:39.793382 | 2019-03-29T11:50:00 | 2019-03-29T11:50:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,679 | py | # Importing required modules
import pandas as pd
from models.aos_questions_and_answer.dataset.elective_courses_questions.artificial_intelligence \
.procesing_ai_elective_courses import \
Util
# Initializing variables
ai_correct = 0
ai_failed = 0
se_correct = 0
se_failed = 0
cn_correct = 0
cn_failed = 0
sye_co... | [
"emmaldini12@gmail.com"
] | emmaldini12@gmail.com |
9d449527cdaa26e79a17950d62dcc6a2bdc7d18c | 34f1b1fc2fbca6b61858a83cbdf498fe99648209 | /scripts/create_metadata.py | 7da66e6aad7430fd22dfd617cee183a90212288c | [
"Apache-2.0"
] | permissive | firth/radcomp | 88a97b2918b3e0683d181085d10e3f8a78549e93 | a855a66189b1d7867a6c373d3fdc6ce67f6d3c01 | refs/heads/master | 2020-12-25T02:25:32.772407 | 2020-10-07T02:43:18 | 2020-10-07T02:43:18 | 41,178,899 | 0 | 0 | null | 2020-10-07T02:43:19 | 2015-08-21T21:49:04 | Python | UTF-8 | Python | false | false | 2,840 | py | """ Create the auxillary JSON metadata that goes with this production
{"meta": {"vcp": 212, "product": "N0Q", "valid": "2014-06-25T20:43:55Z",
"site": "DMX"}}
This magic requires that some modifications were done to nex2img to get this
information included in the GEMPAK log file
--- a/gempak/source/programs/upc/prog... | [
"akrherz@iastate.edu"
] | akrherz@iastate.edu |
6a29c983b088874d6ea595b9f7246b12079535a2 | 4ebbcf9606bdce13b4abc141f7e83c2e4d5cd86a | /data/analysis/delay_prediction/test_learn.py | 21a555c4b9b938d0e99e529519b49580fa84ae95 | [] | no_license | JustinWayneOlson/Air-Traffic-Analysis | 84cd3de5b7dfe9221840d07e007b31e87c48c543 | 2296348dc22c66f4e51de6cec132c9e6c95ca70b | refs/heads/master | 2021-01-12T12:36:18.568886 | 2017-05-06T05:26:08 | 2017-05-06T05:26:08 | 69,614,701 | 4 | 1 | null | 2017-05-05T23:54:21 | 2016-09-29T23:02:29 | JavaScript | UTF-8 | Python | false | false | 3,513 | py | '''
In each row, here is the key for indexes:
[1] Quarter
[2] Month
[3] Day
[4] Day of Week (1=Monday)
[6] Carrier
[7] Airline ID
[9] Tail Number
[10] Flight Number
[11] Origin Airport ID
[14] Origin Airport Code (3 letter)
[21] Destination Airport ID
[24] Destination Airport Code (3 letter)
[31] CRS Listed departure t... | [
"mitchtz@gmail.com"
] | mitchtz@gmail.com |
442d0e63f1e5def314fa4cbc48f46ed7fb2a8dc9 | e01cb2790be0a5932b168a5dd18e76e9b41c0f70 | /train_2.py | 4afa995a40a0ecdc472161e88af69eea19cbb4c4 | [] | no_license | miguel3010/tensorflow_2_MNIST_example | 67e2d57da0e347e8cbda8e1eb82d6fa4663f1cd9 | 70a7d2053dfac6edad72ec07ba7a953448031d82 | refs/heads/master | 2020-09-14T15:29:31.744024 | 2019-11-21T12:36:25 | 2019-11-21T12:36:25 | 223,169,522 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,822 | py | from __future__ import print_function
import tensorflow.keras
from tensorflow.keras.datasets import mnist
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense, Dropout, Flatten, Input
from tensorflow.keras.layers import Conv2D, MaxPooling2D
from tensorflow.keras import backend as K
i... | [
"miammiel@hotmail.com"
] | miammiel@hotmail.com |
d76118cc5d83e63d278249327e7f4cc4b67fb273 | 0a41cae5642970ae5f0cd559a08badc03a8d787f | /tests/test.py | 8dc19b26c261ea532f753177845a3802aac6815f | [] | no_license | cwalsh94/assignment3 | a77c048404628bc0f7f4579495b4e05a16874704 | dec81805840bf6e89a5576c9a255abb69726c589 | refs/heads/master | 2021-01-21T10:30:37.555710 | 2017-03-02T16:45:44 | 2017-03-02T16:45:44 | 83,445,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 873 | py | '''
Created on Feb 28, 2017
@author: Claire
'''
from nose.tools import *
from Claire.main import *
def test_read_url():
fileName ="http://claritytrec.ucd.ie/~alawlor/comp30670/input_assign3.txt"
eq_(read(fileName)[:4], "1000", "Files don't match")
def test_read_file():
fileName = "../data/in... | [
"Claire@dhcp-892bf92e.ucd.ie"
] | Claire@dhcp-892bf92e.ucd.ie |
77c22e56f408318d93650946b5f8db830afafc77 | 2ba4905b4d720cc6b8152a917ad5b50b596fd400 | /python/vanilla/analyze.py | ddcdc7a8993498364d4d67a26b0fc6ac961c3788 | [] | no_license | ghlecl/prog_as_a_tool_support | f49347fdeafe68af97d8772a61a07751ba73055d | 54bc270104bdf317a73bedf865f831487e7505c0 | refs/heads/master | 2022-05-28T23:47:03.913857 | 2022-05-20T14:57:21 | 2022-05-20T14:57:21 | 58,670,360 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,583 | py | # -*- coding: utf-8 -*-
# 2016 - Ghyslain Leclerc (ghleclerc@gmail.com)
from lib import *
#===============================================================================
if __name__ == '__main__':
from math import floor
import sys
import os.path
# read data
files = []
if len( sys.argv ) == 1:
... | [
"ghleclerc@gmail.com"
] | ghleclerc@gmail.com |
af35d9e3ecf3fb8d84581752c65f3cf3e9dc1c7d | 237db09490a4fc5976e6f8a8eb783b928bde1cac | /lib/exabgp/version.py | 3ea942e734182c2966ab29fa48eb5abce8e67786 | [] | no_license | brijohn/exabgp | c80a348035ff104b8d9e9c44ae07f97bf8e33728 | 788bde2842f2c2bc22580d0641003f2e93ff56ac | refs/heads/master | 2020-12-25T17:56:51.444190 | 2017-05-30T16:14:59 | 2017-05-30T16:14:59 | 65,487,232 | 0 | 0 | null | 2016-08-11T17:11:12 | 2016-08-11T17:11:12 | null | UTF-8 | Python | false | false | 245 | py | import os
release = "4.0.0-0478a014"
json = "4.0.0"
text = "4.0.0"
version = os.environ.get('EXABGP_VERSION',release)
# Do not change the first line as it is parsed by scripts
if __name__ == '__main__':
import sys
sys.stdout.write(version)
| [
"thomas.mangin@exa-networks.co.uk"
] | thomas.mangin@exa-networks.co.uk |
830119ca0f445e1c9f7c2814ad6d6a62e581b7a6 | 3d5928864ddf7c2ea4139a5648812bccdc4d57ea | /src/signups/migrations/0006_auto__add_sarticle.py | 7d526f82e5dc4238f5d1da0b1f8c921fdd20cd7b | [] | no_license | kyokura/yuelanji | 657a01f806a6f5c5c34ecca2d4f2a1e1d1118d58 | e790c7e5f8dc7e1297543135acab3df7abf5244b | refs/heads/master | 2021-01-10T08:04:38.092545 | 2015-05-29T04:15:49 | 2015-05-29T04:15:49 | 36,480,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,981 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Sarticle'
db.create_table(u'signups_sarticle', (
... | [
"jingrouxl@gmail.com"
] | jingrouxl@gmail.com |
565ce778268c48441d3672c4b4c61589bde924b6 | 92540d258d4204dc5fc253b64d9d30febfab8f10 | /logincorrect.py | 7dcfdc7d4d21b1771d6cf761963ceb742fb93db6 | [] | no_license | Minofdo/COHDSE182F031 | f62ffe5c1c429e5dd0dc9ecb417207f1db778bb7 | e86ae5cc92c0e12f71cbac6c2ccf31c7d3fb2ede | refs/heads/master | 2020-04-04T14:34:29.822148 | 2018-11-16T18:10:34 | 2018-11-16T18:10:34 | 156,003,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | import pymongo
client = pymongo.MongoClient("mongodb://localhost:27017/")
db = client["test"]
collection = db["login"]
user_name = input("Enter user name : ")
password = input("Enter password : ")
for x in collection.find({},{"userName":1,"password":1}):
name=str(x["userName"])
password=str(x["passwor... | [
"noreply@github.com"
] | noreply@github.com |
906a16dd531791cae45ed790f6b7e81666439588 | 85113790f22927d59317da798b4c514323557c56 | /Project 5/parsers/car_parser.py | a720a9b904028d906e81041e7c9765b3e4bbf8a9 | [] | no_license | digrinev/skillfactory_rds | 054dd35d4b0dbd4fe67b62f78d1af092299cab9c | 2e506ad8a23d20f946e0a535f7996e9eea792778 | refs/heads/master | 2022-12-12T10:12:02.101815 | 2021-11-21T12:38:43 | 2021-11-21T12:38:43 | 248,849,981 | 0 | 0 | null | 2022-12-08T12:59:10 | 2020-03-20T20:53:08 | Jupyter Notebook | UTF-8 | Python | false | false | 11,188 | py | import requests
from bs4 import BeautifulSoup
import os
import json
from tqdm import tqdm
from threading import Thread
import concurrent.futures
def get_data_async(start_year=1960, marks=None):
if marks is None:
raise Exception('Marks have to be set!')
with concurrent.futures.ThreadPoolExecutor() as ... | [
"digrinev@gmail.com"
] | digrinev@gmail.com |
117663f63eba5664eef442b92b3cb121cc4a1cb5 | c673a02296e8d8ad72e15f682339815922916cb2 | /Trees/IdenticalBinaryTrees.py | 0b69d9e4c35b9bb7817adb7e19ba69c144a617ab | [] | no_license | bwallace94/InterviewPrep | c686f3813276fe5e07ca45ed66065d5284e463d5 | e64af3a6678db338f1236ed7a42a1f344a8b24dd | refs/heads/master | 2020-06-26T21:31:38.330372 | 2017-07-26T07:53:15 | 2017-07-26T07:53:15 | 97,029,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,433 | py | # Definition for a binary tree node
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
# @param A : root node of tree
# @param B : root node of tree
# @return an integer
def isSameTree(self, A, B):
if A =... | [
"brwallace@groupon.com"
] | brwallace@groupon.com |
bc414fb5c3b962d247d3f738cb115895adaf0c0e | 62f38779d7c229e5fb7cdee0acd2060c631db4dd | /Hstore/asgi.py | cc369843fcc692a1e0bcf3f93df3dd4db454665e | [] | no_license | yangseongyeal2/HealthFit | de648cb40915f590fb08b9ef0c912cde20ffb916 | 747f78fc57a7ed95949c17377d294e2b2bf4b3d0 | refs/heads/master | 2023-03-10T00:49:59.453757 | 2021-02-24T11:04:10 | 2021-02-24T11:04:10 | 333,447,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
ASGI config for Hstore 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.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTIN... | [
"61301184+yangseongyeal@users.noreply.github.com"
] | 61301184+yangseongyeal@users.noreply.github.com |
b9c8d7a9c6232c275a5107c2add35722879d6e01 | 550a25760ec3ce910c83c71e51ef1068830d36c8 | /sensible_data_platform/accounts/migrations/0004_auto__add_cprnumber__chg_field_child_cpr__add_index_child_cpr__add_uni.py | 64dbfb28947be9aa3a48015cc822b7c16650da39 | [
"MIT"
] | permissive | RaduGatej/SensibleData-Platform | 25174ce7b3b3b6f75e292062e037e347a65ae3e3 | c7829539366771d1b354a2070a6970c8ffa3866a | refs/heads/master | 2021-01-16T17:44:39.925319 | 2015-10-23T18:04:27 | 2015-10-23T18:04:27 | 30,457,106 | 0 | 0 | null | 2015-02-07T13:51:42 | 2015-02-07T13:51:41 | null | UTF-8 | Python | false | false | 7,881 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'CPRNumber'
db.create_table(u'accounts_cprnumber', (
... | [
"radu.gatej@gmail.com"
] | radu.gatej@gmail.com |
ac3c8fd1b2c5ca8a63b43733a60b7fdafd20968b | 8146d0de49c21da7dc42b70b6a419ee72698a860 | /polls/urls.py | 84fa61f6fe9af537b92b744bdc5d3cc86851fe6b | [] | no_license | iamferreirajp/GCS01 | b05ad456a13b9865ccaa3306e80f608138b0476c | 5967766e0944b1ac9f601b0c883358ce8b16903f | refs/heads/master | 2021-01-20T08:46:32.614842 | 2017-08-28T01:01:25 | 2017-08-28T02:23:25 | 101,573,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | from django.conf.urls import url
from . import views
app_name = 'polls'
urlpatterns = [
url(r'^$',
views.IndexView.as_view(), name='index'),
url(r'^(?P<pk>[0-9]+)/$',
views.DetailView.as_view(), name='detail'),
url(r'^(?P<pk>[0-9]+)/results/$',
views.ResultsView.as_view(), name='re... | [
"iamferreirajp@gmail.com"
] | iamferreirajp@gmail.com |
af43670a0bf22f1f36000b9825988a5bb6650721 | 63f0c65102782144015a9292c2a254f166f71dfd | /lab3/worker.py | 7279c2ef29c86661a23b1f48dcc8bd7cef45e9a4 | [] | no_license | MaxLand13/labs_bd2 | 960cf896e112ff7018b4e26d018583f5ee4ebd0f | 234c81626e6c60592b00141f9d5f9f80f8e5917e | refs/heads/master | 2023-06-09T05:52:54.922314 | 2021-06-16T22:05:23 | 2021-06-16T22:05:23 | 377,617,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,723 | py | from datetime import datetime
from threading import Thread
from random import randint, random
from time import sleep as wait
import logging
from neo import neo4j
from DB import connection
logging.basicConfig(filename="logs.txt", level=logging.INFO)
class EventListener(Thread):
def __init__(self, _connection):
... | [
"max.kp83@gmail.com"
] | max.kp83@gmail.com |
b41f860f79cebf18ac7c855afa9974b460e389d5 | c4e4ffbdfcfca00cc339ad20a05ae5e7e2b6b0fc | /accounts/filters.py | 46a8a161d3340d430b55cde10932148c2ceba584 | [] | no_license | jumabekovs/E-commerce-site-on-templates | 9eea95fa4c581b06a93999d26a41486800bbdadc | 786cd069c348857515ced9ae596cbd0bdf064ab5 | refs/heads/main | 2023-01-07T15:42:24.749173 | 2020-11-05T12:45:14 | 2020-11-05T12:45:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | import django_filters
from django_filters import DateFilter, CharFilter
from .models import *
class OrderFilter(django_filters.FilterSet):
start_date = DateFilter(field_name="date_created", lookup_expr='gte')
end_date = DateFilter(field_name="date_created", lookup_expr='lte')
note = CharFilter(field_name... | [
"so.fly.azash@gmail.com"
] | so.fly.azash@gmail.com |
cbf2d20f9d06675ecac9e0b9787b448329de3e05 | ffbf95857fe0c176be5bf57b1bb3591a2b8017e3 | /homeassistant/components/sensibo/coordinator.py | 4a03b5321495d761b986fe89e401d248a0536ff1 | [
"Apache-2.0"
] | permissive | nickovs/home-assistant | dcba4f6f06e071acf10f17ff6311cb74b602e483 | 9d42a425fc6d88482161d93f78c5125a3f6059eb | refs/heads/dev | 2023-03-10T18:43:22.069977 | 2022-03-07T17:58:29 | 2022-03-07T17:58:29 | 90,393,188 | 0 | 0 | Apache-2.0 | 2023-02-22T06:17:11 | 2017-05-05T15:57:37 | Python | UTF-8 | Python | false | false | 7,001 | py | """DataUpdateCoordinator for the Sensibo integration."""
from __future__ import annotations
from dataclasses import dataclass
from datetime import timedelta
from typing import Any
from pysensibo import SensiboClient
from pysensibo.exceptions import AuthenticationError, SensiboError
from homeassistant.config_entries ... | [
"noreply@github.com"
] | noreply@github.com |
d71ef1491f538375a7394794f9c90a3bcfc6318c | f3994a9c5c1fd94da4c92273a1053bdbb920acea | /189. Rotate Array/solution.py | e22b365fa1d66226e12f579b2d7ca6d0d86a1b6e | [] | no_license | hwang018/Leetcode | acc83cf028851d5086f7ebb9da5f04885836c8ab | 3fd3c447713fc890539fd31381f1f10e0aa3a4f6 | refs/heads/master | 2022-12-26T02:35:50.269879 | 2020-09-21T13:39:52 | 2020-09-21T13:39:52 | 261,061,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | class Solution:
def rotate(self, nums: List[int], k: int) -> None:
"""
Do not return anything, modify nums in-place instead.
"""
while k>0:
k-=1
temp = nums.pop()
nums.insert(0,temp)
return None | [
"goinfrerie@gmail.com"
] | goinfrerie@gmail.com |
198e9d1ccf06652376cec667659e83c694b12771 | 3d1ee3ddb516f0b499f6272fbc7fbd6eefb88a63 | /jpackages/oss/1.0/actions/process.configure.py | a26799fc2992b053ec26cda45d6f47eafac6c365 | [] | no_license | despiegk/jp_serverapps | e72005004273db9dc01d1e64ddfcb28d06137f1f | 82ecc0b56ac85b2fb2d1eb02a80ab4ac99026f47 | refs/heads/master | 2016-09-06T16:06:39.529847 | 2014-08-17T10:17:03 | 2014-08-17T10:17:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,243 | py | def main(j,jp):
pass
#configure the application to autostart
# jp.log("set autostart $(jp.name)")
#numprocesses: if more than 1 process, will be started in tmux as $name_$nr
#ports: tcpports
#autostart: does this app start auto
#stopcmd: if special command to stop
#check: check... | [
"kristof@incubaid.com"
] | kristof@incubaid.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.