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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e3c00abbf51ea3d02290958907557724acacfb24 | 1f37752d3cd507725054f600ef019195ec960829 | /Círculo 1.py | 9588e90432605698fa1e832b0b774773eef5e0fe | [] | no_license | LuanRamalho/Circulo-1 | 5e07be16cb6cef194296fb4c237c91b27031dbe4 | 2d90afee14932dffb5175842e2d38696f7ae2e48 | refs/heads/main | 2023-04-10T18:17:49.405905 | 2021-04-23T22:26:29 | 2021-04-23T22:26:29 | 361,019,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,927 | py | # -*- coding: utf-8 -*-
import pygame
BLACK = (0, 0, 0)
WHITE = (255, 255, 255)
BLUE = (0, 0, 255)
DARK_BLUE = (0,5,157)
LIGHT_GREEN = (111,255,109)
GREEN = (0, 255, 0)
DARK_GREEN = (0,102,2)
LIGHT_RED = (255, 111, 97)
RED = (255, 0, 0)
DARK_RED = (137, 2, 0)
LIGHT_CYAN = (0, 255, 255)
CYAN = (0, 133, 24... | [
"noreply@github.com"
] | noreply@github.com |
89673dab3b31db6f717c71ecd57766d09fd3e49b | da23195cf4053dc8ec6b61b6ce4ffad86c943620 | /name.py | 27750bb3575d353164ac625c6ce8a03a0a822fcb | [] | no_license | baradiel54/CRex | 01b2a9743fc16b803fa281d015cbd3ccd8e6353d | 4d9adcb51ca8dbc730887475d19ea02065219bd2 | refs/heads/master | 2020-04-06T18:03:23.688863 | 2018-12-10T19:07:34 | 2018-12-10T19:07:34 | 157,683,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | from selenium import webdriver
from selenium.webdriver.chrome.options import Options
options = Options()
options.add_argument("-headless")
options.add_argument('--disable-gpu')
driver = webdriver.Chrome(chrome_options=options)
driver.get("https://statsroyale.com/tr/profile/2L299CRPP")
button = driver.find_element_by_x... | [
"42670509+baradiel54@users.noreply.github.com"
] | 42670509+baradiel54@users.noreply.github.com |
b85b77389b8994f59d4cb318c5d635f56232ca7d | e1e8e29d202b663be6d424a41aaf7c42f90c8ab3 | /ex40c1.py | 72888476074cfb401f36728067a2464107d84161 | [] | no_license | Amo95/Learning-coding-with-Python3 | 414f60d1b7da2fa41a4527034420c6ab34c6acb7 | c4527a670b01c55031eb1ad65403a032e545baac | refs/heads/master | 2020-12-15T19:20:12.266274 | 2020-01-21T18:12:58 | 2020-01-21T18:12:58 | 235,226,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | py | class MyStuff(object):
"""docstring for ClassName"""
def __init__(self):
self.tangerine = "I love coding in python"
print(self.tangerine)
def apple(self):
print("Coding OOP is amazing")
def main():
thing = MyStuff()
thing.apple()
if __name__ == '__main__':
main()
| [
"root@localhost.localdomain"
] | root@localhost.localdomain |
c04def4b5c87882e4cda68bfee1339fd1ca34a84 | daa75594c01a09c60cfcd0afa215ff6cc6676c09 | /detectron2/engine/hooks.py | 10359e534ce737a16d980fbc468f92700726afe7 | [
"Apache-2.0"
] | permissive | Samleo8/detectron2 | 3d0f8cbacf3f6386d4a9efd7ff0568a5a2981c34 | 488da8e86e4eb4ee2dc4e6d8dc032af4976bdc58 | refs/heads/master | 2023-02-28T10:40:05.339246 | 2021-02-01T22:31:52 | 2021-02-01T22:31:52 | 271,258,350 | 2 | 0 | Apache-2.0 | 2020-06-10T11:26:49 | 2020-06-10T11:26:48 | null | UTF-8 | Python | false | false | 15,070 | py | # -*- coding: utf-8 -*-
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import datetime
import itertools
import logging
import os
import tempfile
import time
from collections import Counter
import torch
from fvcore.common.checkpoint import PeriodicCheckpointer as _PeriodicCheckpointer
from fvcor... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
4c21520b8173c289c2ff06ddb64c2ac1bc4bf0d6 | b5369dd8b5a20b8ae6cbc9b67e38f56ea6ca94e9 | /detect_attention_video.py | 3deac8b2eba45846eb8422d9f7e289bcc04c94c3 | [] | no_license | statick88/attentionFinal | 754f6ff86684e2638140ef8821ca96be9fad55e3 | c8ae7e16fce0d2ae56ef7da013c8439d5ac5ce05 | refs/heads/main | 2023-07-25T19:41:09.132182 | 2021-03-22T20:38:44 | 2021-03-22T20:38:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,951 | py | # import the necessary packages
from tensorflow.keras.applications.mobilenet_v2 import preprocess_input
from tensorflow.keras.preprocessing.image import img_to_array
from tensorflow.keras.models import load_model
from imutils.video import VideoStream
import numpy as np
import imutils
import time
import cv2
import os
im... | [
"dsaavedra88@gmail.com"
] | dsaavedra88@gmail.com |
e8d09daa6404cb1701c26043cd0ec722b84e2ad5 | cf3fa8a58f695462dd87609777e54cdd40b9c66d | /decompressor.py | 8b5182a9ae7c3e49347a5818cd6e99c1dc434a40 | [] | no_license | atheer1985/DelayedTwitter | c0bfbb3a52af8c628cebec9a9a0ed9b8d8a80c61 | 0a0b03de74c03cfbf36877ffded0cb1312d59642 | refs/heads/master | 2023-05-10T16:13:01.838310 | 2019-06-15T23:09:58 | 2019-06-15T23:09:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,179 | py | #
# decompressor.py
#
# USAGE:
# $ python decompressor.py [brotli|zstd] [path_to_dictionary]
#
# With no arguments, this will decompress every compressed file with a
# .br or .zstd extention in the downloaded_tweets folder.
#
# If a dictionary is provided, it must be same dictionary that was used
# to compress the fi... | [
"julia.knight@tufts.edu"
] | julia.knight@tufts.edu |
9e439aa2203215a329bac34f106ea9ae0aaa38c5 | a3b306df800059a5b74975793251a28b8a5f49c7 | /Graphs/LX-2/molecule_otsu = False/BioImageXD-1.0/ITK/lib/InsightToolkit/WrapITK/lib/itkCropImageFilterPython.py | 0bb7d058f400eafaae2cf2ceb3959b1130ff9995 | [] | no_license | giacomo21/Image-analysis | dc17ba2b6eb53f48963fad931568576fda4e1349 | ea8bafa073de5090bd8f83fb4f5ca16669d0211f | refs/heads/master | 2016-09-06T21:42:13.530256 | 2013-07-22T09:35:56 | 2013-07-22T09:35:56 | 11,384,784 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 108,489 | py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 1.3.40
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _itkCropIm... | [
"fede.anne95@hotmail.it"
] | fede.anne95@hotmail.it |
26306fc13a2759dc8d39618d990a765d293540d4 | 49aa2eaeda287fdbbab6f83734473633f200b501 | /dataPlatform/go_platform/api/LibScootersOwners.py | 7172161c8125935f57716365ef901d7d05f770c6 | [] | no_license | petercheng168/My-account-automation | 9d41255bb18421a887a308345db94e973467bae5 | 31c29cc9a9b3f5a4b2c2b721a33df04c52b9d80a | refs/heads/master | 2023-03-13T10:14:00.896812 | 2020-09-11T06:26:44 | 2020-09-11T06:26:44 | 341,831,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,604 | py | import os
import sys
__dirname = os.path.dirname(os.path.abspath(__file__))
sys.path.append(os.path.join(__dirname, '../api'))
from _init_ import _init_
class LibScootersOwners(object):
def __init__(self):
self.init = _init_()
def scooters_owners_get(self, request_data_type=None, owner_ids= None, scoo... | [
"peter.yf.cheng@gogoro.com"
] | peter.yf.cheng@gogoro.com |
c21a9c3bdbb2e2e87213c9ecc827087c78bcb137 | 2e9913e98966a8def44a4afc4f903c6a0d682bb7 | /manage.py | 306ee1fa586a63b56d915a4e80664f230eea7050 | [] | no_license | Alejandroid17/django_sandbox | 9c3efdf59958e1c74b2bf4e20c28051d7c2a85ba | 9d14e8fb53547c930eb73c36c64676a1eb337ddd | refs/heads/master | 2023-04-10T18:32:22.563800 | 2023-03-31T19:29:40 | 2023-03-31T19:29:40 | 168,943,101 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 823 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'django_sandbox.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Djang... | [
"alejandrofernandezm94@gmail.com"
] | alejandrofernandezm94@gmail.com |
016861683eb38bdf6dc98d015f3a661609b4eb1b | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2019_07_01_preview/models/_models_py3.py | 48be276791f964e4836563a515cd28181ea518b3 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 122,736 | py | # coding=utf-8
# pylint: disable=too-many-lines
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"noreply@github.com"
] | noreply@github.com |
ff5931555cd0e7f462b95cc718c451e80fddd8bb | 458de9c2347837a468e56d9b9ea93d1f6fecafa6 | /Q3/Q3.py | 0b894a3cccfbd6fc6ad7160986a138319efa9fb5 | [] | no_license | ShiXianChua/AlgorithmAssignment | 055f288f725ed72fb433d9ab7ec1ef5c45558e78 | 27e476b59159e9ed452ce36380afb89d9c9ac307 | refs/heads/master | 2022-10-06T18:39:01.472521 | 2020-06-06T10:50:39 | 2020-06-06T10:50:39 | 269,941,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,642 | py | from geopy.geocoders import Nominatim
from geopy.distance import geodesic
import requests
geolocator = Nominatim(user_agent="my_apps")
cities = ["Kuala Lumpur, Malaysia", "Jakarta, Indonesia", "Bangkok, Thailand", "Taipei, Taiwan", "Hong Kong",
"Tokyo, Japan", "Beijing, China", "Seoul, South Korea"]
s... | [
"noreply@github.com"
] | noreply@github.com |
0d90d7520629427cebaf8797661ed1c60f762d17 | 30973e9ff57141234eba0b143d4d0671c0e5e446 | /iosystem.py | 9af55fd56074c59b35fd15d0225e7c64b89e38c2 | [] | no_license | leonluong1/Basic-Operating-System | 1d7ffa0cf44c3c075d0d43a004ce07b8efaa1d05 | 2de0d907ae56f72c93e394684de55a011a876831 | refs/heads/master | 2020-04-16T05:44:49.390766 | 2019-01-11T23:16:06 | 2019-01-11T23:16:06 | 165,319,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,571 | py | import struct
#FILE DESCRIPTORS: contained in first k disk blocks(ldisk[1:k])
#Each contains: length (bytes) and a list of 3 blocks (stores 192 bytes max)
#Represents a free fd by making length = 193 (or 1 + max length)
#fd contains four integers. fd 0 is reserved for directory
#BLOCK: contained in ldisk[k:6... | [
"noreply@github.com"
] | noreply@github.com |
804e6ed59e47ce32b7ebde8c676021a918c0aea3 | 6c284e48f344221e02016f0eb2a7f037945405a7 | /datafaker/dbs/hbasedb.py | 9ed8f1bf87b735124029d7921569781428d712bc | [
"Apache-2.0"
] | permissive | zgq346712481/datafaker | 762ad5eaa839f8b9b67e5b4fd69bad0d1bc55b8d | ad824b9e5406ccc2ead3b7b2c105c1e67b58abf1 | refs/heads/master | 2022-04-15T16:10:28.469021 | 2020-04-13T09:50:08 | 2020-04-13T09:50:08 | 258,990,570 | 1 | 0 | null | 2020-04-26T09:30:05 | 2020-04-26T09:30:05 | null | UTF-8 | Python | false | false | 1,197 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
from datafaker.dbs.basedb import BaseDB
from datafaker.exceptions import ParamError
import happybase
from datafaker.reg import reg_args
class HbaseDB(BaseDB):
def init(self):
host, port = self.args.connect.split(':')
connection = happybase.Connection... | [
"ligangc@zbj.com"
] | ligangc@zbj.com |
053dcdb9cda22f2346c27141f33ad74949b2a060 | b92325ab078a6a2f3cc715d7cfe7da3eee11c388 | /python | 7ab7d1baa3b2beff61edcdbb45cdc7fa9081f615 | [] | no_license | elliotthead11/testrepo | 7ff7d1aa9b04e77fae4fa18e8edfada3cb2a4bfc | 43948aba6a54ace71f46468cb9e7d37a07cf9ca8 | refs/heads/master | 2023-05-28T22:31:49.408782 | 2021-06-17T09:07:48 | 2021-06-17T09:07:48 | 377,357,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46 | #display the output
print ("New Python File")
| [
"noreply@github.com"
] | noreply@github.com | |
f9c70e002646db297a53c6316d27e1cd3b76a216 | 979b304ea0f8a32fafb841bc43e16f27ef11634f | /backend/download/service.py | a4271cb4572a149b95b5271356a33ed61847426c | [
"MIT"
] | permissive | nole23/UKS | d6d8c92c639dd35b94aee0497f6cfb57e729f0f7 | 27472c2c042d80c6968e0f579c068129105d96a1 | refs/heads/master | 2023-06-04T08:21:49.498533 | 2021-06-30T14:33:36 | 2021-06-30T14:33:36 | 329,396,081 | 0 | 0 | MIT | 2021-06-29T21:52:26 | 2021-01-13T18:24:01 | TypeScript | UTF-8 | Python | false | false | 503 | py | import shutil
from repository.models import Project
class DownloadService():
project = Project()
def download(self, user, project):
project = self.project.get_by_id(project)
if project is None:
return {"status": "FALSE", "data": None}
link = 'download/' + project.name
... | [
"dejan.jovanovic94@gmail.com"
] | dejan.jovanovic94@gmail.com |
29e71287fe48a5b6f7722a2cac26373b8fdbe652 | d6833270e21fc14d8dd9d6624f8906ed7fe3ae86 | /SoarUtils.py | 3944a872bd43b057c2eda986c0618db191e20328 | [
"MIT"
] | permissive | ChienDavid/pysoarlib | 0f9c91424f7900d43b39e401f91274b0fdf21540 | 3c722d163acf3dd35c5be914bf200e23369e169a | refs/heads/master | 2022-10-24T22:37:24.839494 | 2020-06-13T15:10:32 | 2020-06-13T15:10:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,783 | py | import Python_sml_ClientInterface as sml
from .SoarWME import SoarWME
class SoarUtils:
""" A Class containing static utility methods for dealing with Soar and working memory """
def update_wm_from_tree(root_id, root_name, input_dict, wme_table):
"""
Recursively update WMEs that have a sub-tre... | [
"mininger@umich.edu"
] | mininger@umich.edu |
4c6faa666901569d7528fcbd7329123b22b75e5a | 0c3b0974b098db7fa7a422f7fb33fd92128fdf25 | /argskwargs.py | 22e0c9283b6677bf380c8ccbd62f328a8a922643 | [] | no_license | silvervulpus/storage | d8aa94251652679b74debf2576d36ca86a89711a | 6ecea094b0ff1f8c24bebead208155163a1cdd44 | refs/heads/master | 2021-09-20T03:37:04.002400 | 2018-08-02T21:54:39 | 2018-08-02T21:54:39 | 112,366,688 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | def listing(*args):
a = (args)
list = []
for i in a:
list.append(i)
print(list)
print(len(list))
return list
f = 3
g = 2
h = "itemish"
listing(f, g, h)
def lister(*args, **kwargs):
a = (args, kwargs)
list = []
for i in a:
list.append(i)
print(li... | [
"noreply@github.com"
] | noreply@github.com |
e34d677b0cac1b57433848ef5733a503d581e1f8 | dcecb7be0914d4cd3481f86004c272ae76c9ca10 | /Project1/project1-3.py | d8d87e1661107117a991f6da089e999a912a2a94 | [] | no_license | dvu4/udacity | a1dcb399ec7638ab2a00412efcddb56c77f1f9f7 | 8ca0378fdde05c4ead5976dd27289feb803c771c | refs/heads/master | 2021-01-18T03:21:31.903446 | 2014-03-25T12:15:54 | 2014-03-25T12:15:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,056 | py | __author__ = 'user'
import numpy
import pandas
import statsmodels.api as sm
def custom_heuristic(file_path):
'''
You are given a list of Titantic passengers and their associating
information. More information about the data can be seen at the link below:
http://www.kaggle.com/c/titanic-gettingStarted/d... | [
"upjohnc@gmail.colm"
] | upjohnc@gmail.colm |
4ae2b30a775700da01d780a1828df5e8e77e9289 | 06fd78dccfec75b62a7d5b01054f613b05b238e0 | /main.py | 5ac47d4d2d8a018983d2a3ba8c48c59e5434891a | [] | no_license | ajrussell191/link-builderr | 8066f8b8b4f26ee8b44ce191d1462be7f2fa5289 | c654c2b2396843167e0f094e65c567d9d9f6e710 | refs/heads/master | 2020-05-16T01:23:21.356628 | 2019-04-22T01:20:43 | 2019-04-22T01:20:43 | 182,601,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,623 | py | import discord
import json
import random
import time
import requests
from discord.ext.commands import Bot
from discord.ext import commands
Client = discord.Client()
bot_prefix= "!"
client = commands.Bot(command_prefix=bot_prefix)
def split_list(alist, wanted_parts=1):
length = len(alist)
return [ alist[i*leng... | [
"noreply@github.com"
] | noreply@github.com |
62709982d859871a5afc773371024b1e6ffb3c1a | 9678c8990b1bfe09c020ba9090206b790e53752e | /scene_manager/settings/storage.py | 163720e177a4e7ca37a309a6be2f28f4fbefa9f4 | [
"MIT"
] | permissive | Bloodielie/scene_manager | d6d8b50dc6422d6a27533dcefa0d58df782716d3 | 45e33f151f2776ab59c744aad25b8d39ec2bf632 | refs/heads/master | 2023-04-26T12:23:54.526222 | 2020-06-22T11:22:19 | 2020-06-22T11:22:19 | 272,247,016 | 1 | 0 | MIT | 2021-05-13T20:55:59 | 2020-06-14T17:05:03 | Python | UTF-8 | Python | false | false | 513 | py | from typing import Optional, Union
from pydantic import BaseSettings, AnyUrl, Field
import ssl
class StorageSettings(BaseSettings):
storage_dsn: Union[AnyUrl, str] = Field("redis://localhost:6379", env="storage_dsn")
storage_ssl: Optional[ssl.SSLContext] = Field(None, env="storage_ssl")
storage_db: Optio... | [
"riopro2812@gmail.com"
] | riopro2812@gmail.com |
b43075304e3f3743babbc05752088d35d38d269f | 8370083dbbbd32740ad1862637809396dc7984e2 | /paresh60/a12.py | 673c08cc381941391743fa151ddb4784c6997b26 | [] | no_license | parshuramsail/PYTHON_LEARN | a919b14aab823e0f5e769d8936ddbfb357133db2 | 8c76720bf73f13cf96930e6d4d5128e6ba9aa535 | refs/heads/main | 2023-07-14T16:25:26.240555 | 2021-08-29T17:10:19 | 2021-08-29T17:10:19 | 401,095,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | # Method over-loading in python using default argument.
class A:
def first(self,f=None):
if f is not None:
print('Method',f)
else:
print('method without argument')
a=A()
a.first()
print(a.first('with argument'))
| [
"64275709+parshuramsail@users.noreply.github.com"
] | 64275709+parshuramsail@users.noreply.github.com |
443ff25b25e83dcaf34fc55c30bcd16265fe1233 | 67c312fe2e19afc22de4115c10d61261bc785f5c | /Sidekick_4.5/GromacsInterface.py | b89734133125a60cd621522bb92e6fe51752d4ff | [
"Apache-2.0"
] | permissive | hallba/Sidekick | 16fac85ce8b658aa1f066a94e0f78f6e1c93a149 | 2fbddc8e9bbc659b83aec18dc1eef89ef2a59f57 | refs/heads/master | 2023-03-31T08:44:57.536347 | 2023-03-06T16:22:11 | 2023-03-06T16:22:11 | 31,285,955 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 13,173 | py | #!/usr/bin/python
from __future__ import with_statement
import sys,os,pdbio
from HAConf import configuration,programs,debug_status
from LipidBox import add_solvent_dppc
from MDPGenerator import replace_seed, replace_steps, replace_pcoupling, replace_epsilon, replace_temperature, pmartini_update, pme_update
import Auto... | [
"benjamin@morbo.home"
] | benjamin@morbo.home |
ceb1883778ddd0a2c8c0827fd3ee230013717c7f | da370ba0df9700519139e1da54f3e7f38e9b7f5f | /.nox/tests/lib/python3.7/site-packages/tensorflow_probability/python/positive_semidefinite_kernels/positive_semidefinite_kernel.py | 79f834dc7218d03f27472a50abf01fcb1c2b97fa | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | antonevenepoel/open_spiel | 90e3c7c6611cf508f2872237412fd67cf6cd10e0 | f2f0c786410018675fc40e9a5b82c40814555fa8 | refs/heads/master | 2021-03-15T20:57:00.562672 | 2020-05-15T16:10:23 | 2020-05-15T16:10:23 | 246,877,171 | 0 | 0 | Apache-2.0 | 2020-03-12T16:07:42 | 2020-03-12T16:07:41 | null | UTF-8 | Python | false | false | 30,020 | py | # Copyright 2018 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"36889203+antonevenepoel@users.noreply.github.com"
] | 36889203+antonevenepoel@users.noreply.github.com |
99eeb45f72c7a9e794d9e89ea454f1df24382f7f | 62b8fd1f3ddb6228dbebe95e83a2b657f756c863 | /code/corpus_processing/arizona/arizona_prepare.py | c099662dae4bce5af291760c9762e4831893510d | [] | no_license | AlexZamioudis/PtyxiakiAlexandrosZamioudis | 901c4cb2a0b008e67cb621340acfcdcce738b360 | 246f7f39699bb439bb5190a873151f038cfd104a | refs/heads/master | 2020-06-05T12:20:03.038334 | 2019-06-18T00:38:43 | 2019-06-18T00:38:43 | 192,436,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,185 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Feb 21 16:10:25 2019
@author: Αλέξανδρος
"""
import os
if os.path.exists("1. texts\\arizona.txt"):
os.remove("1. texts\\arizona.txt")
if os.path.exists("1. annotations\\arizona.txt"):
os.remove("1. annotations\\arizona.txt")
output1 = open("1. texts\\... | [
"noreply@github.com"
] | noreply@github.com |
ddef81fd3c086cf81daf38afd6d99f6d68ceb988 | c79768d71505881a2cdcd6730b54e844b9ad38c6 | /accounts/forms.py | 52a676867b7831cbc84d18662681148b0a128599 | [] | no_license | karoakhgar82/karogamer82 | 58343302677cbe9376d90c702fe726860c30c6a7 | 6eb3209e6b1290a71bc279bc05d8e70fc6233c0e | refs/heads/master | 2022-09-18T21:54:29.269136 | 2020-06-04T12:35:46 | 2020-06-04T12:35:46 | 269,361,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,371 | py | from django import forms
from django.contrib.auth.models import User
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth import authenticate, get_user_model
from django.utils.text import capfirst
class CustomForm(forms.ModelForm):
error_messages = {
'password_mismatch': ("رمز ... | [
"karoakhgar82@gmail.com"
] | karoakhgar82@gmail.com |
185c49d50ad3fe91dd298d2e1b07e2b8b4705d1a | 53b6447da398945a7f9e918f6de3cf6b711a8b9a | /INF435/tp3/tp3.py | 6290ae10f315987cf0927601ea89598c63a3a423 | [] | no_license | malk321/master-python | 0642636e850f2f1f58fb98f3d976d4313fe5a43c | 42f13603eaa48213de3e47951d394199ad10ebcf | refs/heads/master | 2020-04-16T23:02:27.668865 | 2017-02-26T21:57:17 | 2017-02-26T21:57:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,471 | py | #!/usr/bin/python
# -*- coding: iso-8859-15 -*-
import graphviz
import diffusion
import measures
import k_cores
import random
## ----------------------------------
## Diffusion and centrality
## ----------------------------------
## --- GRAPH CONSTRUCTION ---
def create_node(listAdj, n_id):
"""insert the node n... | [
"porteboeuf.benoit@gmail.com"
] | porteboeuf.benoit@gmail.com |
44ae1b353c4c95c6209f6de8cde15112550f0a3b | f966c891c666db846d86406cb9c08a530902d032 | /algorithms/implementation/divisible_sum_pairs.py | 94ca67a38d2a2b8e609d8ed2769e0956df8b0853 | [] | no_license | rickharris-dev/hacker-rank | 36620a16894571e324422c83bd553440cf5bbeb1 | 2ad0fe4b496198bec1b900d2e396a0704bd0c6d4 | refs/heads/master | 2020-12-25T14:33:20.118325 | 2016-09-06T01:10:43 | 2016-09-06T01:10:43 | 67,264,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | #!/usr/bin/python
n,k = raw_input().strip().split(' ')
n,k = [int(n),int(k)]
a = map(int,raw_input().strip().split(' '))
count = 0
i = 0
for i in range(0,n):
j = i + 1
while j < n:
if (a[i] + a[j]) % k == 0:
count += 1
j += 1
print count
| [
"rickharris724@gmail.com"
] | rickharris724@gmail.com |
fed7ea83b02893993040ad5bd480bd4cc09eacf6 | 1ce14b585dbdca376b66f79043ed2b8333add777 | /mod_bpm.py | 76bb6d6f2086823d22a210d48a7a649a38505a1e | [] | no_license | DarelShroo/Spotify | 63c35ff5a9644fa656d44a8aa22447df0f54968a | b2373eac58d9b721e1dced71e425143ef857253b | refs/heads/main | 2023-06-14T07:04:39.732996 | 2021-06-30T15:48:32 | 2021-06-30T15:48:32 | 381,167,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | import sys
from spotify import Song
'''Information about headers in datafile
0: track name
1: artist name
2: genre
3: beats per minute
4: energy
5: danceability
6: length'''
__name__ == '__main__'
if __name__ == '__main__':
input_file = 'top50.csv'
output_file = 'top50_mod.csv'
relative_bpm ... | [
"cls18drl@gmail.com"
] | cls18drl@gmail.com |
0df7c7a476df01bd8c36a2cbf53f4a8ec887fceb | 90c0f2f4d4e9a8a5b756490f71bf5f1622d9da68 | /Totext/views.py | 799a51528ba9e1d6e7c8ec4d4ae72092f490e6c9 | [] | no_license | IRDjangoDeveloper/OCR | a0e54e904f477afa70f833e35f2913426468b01f | 42fea7470bedb2f0bcbe0428f701849e71998f07 | refs/heads/master | 2023-07-07T21:51:58.707667 | 2021-08-27T11:42:02 | 2021-08-27T11:42:02 | 392,982,490 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,114 | py | from django.http import JsonResponse
from django.shortcuts import render
# import pytesseract to convert text in image to string
import pytesseract
from .forms import imageForm, textinput
import os
# import Image from PIL to read image
from PIL import Image
from django.conf import settings
from .models import ImageUplo... | [
"iranianboy200017@gmail.com"
] | iranianboy200017@gmail.com |
8f8df82e8f10eae8a382750c473b56390d9cf50e | 52243c4a05a296e7c042663b5942faa47eb66aee | /common/plot_points_shp.py | 2f0e6e7945bf659016fd5b03ffaaa47015baf92c | [
"MIT"
] | permissive | joaoppadua/Pesquisas | fbe0311b59340c041732d6d1f7f4862fa6c53198 | 808d8b0ef9e432e05a4f284ce18778ed8b3acd96 | refs/heads/master | 2023-07-16T02:50:30.846205 | 2021-09-03T13:34:54 | 2021-09-03T13:34:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | import matplotlib.pyplot as plt, geopandas as gpd
from sklearn.preprocessing import MinMaxScaler
def plot_points_shape_file(
shape_file, list_values, list_longitude, list_latitude, title
):
scaler = MinMaxScaler(feature_range=(50, 1000))
list_final = scaler.fit_transform([[i] for i in (list_values)])
... | [
"danilopcarlotti@gmail.com"
] | danilopcarlotti@gmail.com |
7c1cdfe2059104bcb4fe2b5798b6b94022610a05 | 4642a6dd9603dc20ddf6d8723ca53ffbf910d17b | /se/Validators/OrganisationValidator.py | c38dc34f70fa1541f476e2193168a519c67cc5b5 | [] | no_license | ankurmishra1394/flask-idserver | 623acd2e004049c01f7d1fe2a19a05ce407a9831 | 9e0e4b094e03b117bf4e0410d0d4753da463ee10 | refs/heads/master | 2021-01-11T22:53:01.826008 | 2017-01-11T13:28:19 | 2017-01-11T13:28:19 | 78,518,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,215 | py | from flask import Flask
from validate_email import validate_email
class OrganisationValidator():
def __init__(self):
return
def register_organisation(self, data):
if 'name' not in data:
return False
if 'logo' not in data:
return False
if 'url' not in data:
return False
if 'type' not in data:
... | [
"ankur@sourceeasy.com"
] | ankur@sourceeasy.com |
f902d93f83ab260103f008df77d2ea158d8af130 | 71c515d8411c06dbab6e91f15a755aa2fe4094ef | /common/memcached.py | 678e66a668894db9ccbdc489edde3dd48b9662e1 | [] | no_license | mawentao007/swift | 6f54dc9e24db41d928b8f403bb18273d97d7f7aa | fc2de6d75f0e718f4a46bead57a71a19cdb0fb3e | refs/heads/master | 2021-03-12T20:18:48.961232 | 2013-10-29T14:14:47 | 2013-10-29T14:14:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,975 | py | # Copyright (c) 2010-2012 OpenStack, LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to ... | [
"marvin@PC.(none)"
] | marvin@PC.(none) |
85404e686fe6601424f46561d0938c179b5a1cb7 | dddbfd8eb6dff0bd3449bac87ee76b5c3e0bdfb1 | /icehouse-patches/neutron/dvr-patch/neutron/services/vpn/plugin.py | 74218e2ab6b6e6fecfba5e5f3a40c5d4d3e0f0af | [
"Apache-2.0"
] | permissive | joey5678/tricircle | 40897fed8fe9d6772e8878b4f06ba1a829636488 | e211f7efef129bbfb038cc05232ea1de33f82a97 | refs/heads/master | 2021-01-17T21:04:32.945469 | 2014-11-17T09:46:29 | 2014-11-17T10:10:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,525 | py |
# (c) Copyright 2013 Hewlett-Packard Development Company, L.P.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/license... | [
"joehuang@huawei.com"
] | joehuang@huawei.com |
64d1d215eb66bb8fe647dfa71e5b4e50a6e7d16d | f9e1d9c71d232aa0bcf03627259e6c9f88538b18 | /gs70PageExpiredAfter20Seconds/gs70/urls.py | 9912e105f6b2d0ea566a6baf3471f65ae0e3e527 | [] | no_license | nayan-gujju/Django-Practice | a7db202b6a3627a6a4e9f96953b61e43eaf68cb1 | eafa29e9321a1683867b2ea1d26ca74dfa6db12d | refs/heads/master | 2023-07-27T11:41:43.956705 | 2021-09-09T08:47:44 | 2021-09-09T08:47:44 | 403,917,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 879 | py | """gs70 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... | [
"nayangujarati007@gmail.com"
] | nayangujarati007@gmail.com |
f699c8d2fd041fde01881ad4113e5865e3ed446e | ce79d2aceb420b69d018fa8247f78ccb47fc529e | /python/ray/experimental/data/dataset.py | 3eb49bf0db6964977483a946be8dcf279d1d20fc | [
"MIT",
"Apache-2.0"
] | permissive | deepdad/ray | b8330eee645a96e257ba6bd89156cc9a02b82056 | 6bfa97eed77fb6332cb6ba5aa4aa37dd54764349 | refs/heads/master | 2023-06-03T06:20:44.521567 | 2021-06-26T01:45:13 | 2021-06-26T01:45:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,942 | py | from typing import List, Any, Callable, Iterator, Generic, TypeVar, \
Generator, Optional, Union, TYPE_CHECKING
if TYPE_CHECKING:
import pyarrow
import pandas
import modin
import dask
import pyspark
import ray.util.sgd
import ray
from ray.experimental.data.impl.compute import get_compute
f... | [
"noreply@github.com"
] | noreply@github.com |
91fdbc2c5ef420fbff5384956b1b1cbc60b68b5f | 1a08e2612f9eed51f39f46da0c5b68bd54f721f3 | /docs/scripts/generators/sample_generator.py | 01b77438028138a2cc211d1de8efbeaa79f7ba3d | [] | no_license | chutter/murinae-seq | 0c6ceea5cd84deda022e700b3097df955ac828f1 | 5498ce34aef7e295a0de18d0896c6168dd76246f | refs/heads/master | 2022-06-17T17:19:07.563145 | 2020-05-11T16:30:32 | 2020-05-11T16:30:32 | 254,720,221 | 0 | 0 | null | 2020-04-10T19:36:05 | 2020-04-10T19:36:04 | null | UTF-8 | Python | false | false | 3,314 | py | ############################################################
# For rodent web, 11.19
# This generates the file "samples.html"
############################################################
import sys, os
sys.path.append('..')
import lib.read_chunks as RC
######################
# HTML template
######################
ht... | [
"greggwct@gmail.com"
] | greggwct@gmail.com |
ebd3945c49a05c59563b485aca06b710dd755c3f | b1e3d66eb589a3a431492af1bf25445e4bab9f23 | /migrations/versions/5018177736d6_.py | 6f8d60731a5e3084449c8563d526b9169614d01e | [
"MIT"
] | permissive | excalibur1987/team-management | 6d1e8fa3a98f21614001f127fe6b74264f89d8f1 | ed6dfaf83280dad947edb31b404680d6083d7e62 | refs/heads/master | 2023-06-25T12:49:22.825114 | 2021-06-02T14:05:33 | 2021-06-02T14:05:33 | 369,986,315 | 0 | 0 | MIT | 2021-05-31T10:15:57 | 2021-05-23T07:16:50 | Python | UTF-8 | Python | false | false | 3,516 | py | """empty message
Revision ID: 5018177736d6
Revises: 0ffd29cae080
Create Date: 2021-05-31 13:56:23.029029
"""
import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
revision = "5018177736d6"
down_revision = "0ffd29cae080"
branch_labels = None
depends_on = None
def upgrade():
# #... | [
"excalibur1987@gmail.com"
] | excalibur1987@gmail.com |
881028d34f8ae09d7ee3fa9e047a5a4c55c4a893 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/CJ/16_0_3_54N_c.py | a900e884b099ed456e2e4f9878c7443257e54913 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 1,146 | py | #!/usr/bin/python
luts = []
def initlut():
for i in range(2,11):
l = []
for k in range(0,32):
l.append(i**k)
luts.append(l)
# stackoverflow
def is_prime(n):
if n == 2 or n == 3: return True, 0
# never happens in our case?
if n < 2: return False, 1
if n%2 == 0: return False, 2
if n < 9: return True... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
a30ebd6cd04518adb9a303c46b6480aa47a86b21 | 67cb6964f54cc8c2e5738fa1ceaf8da9119089a6 | /core/core/urls.py | 9738f02c26a4bd62be7b75ae86c63f82d2c85598 | [] | no_license | industrius/HW-D7.8 | b841cd959feba7018681b532e2273fcf717e5b42 | d8305172173d932165b5f9c8a8b11760412d6ffa | refs/heads/main | 2023-04-03T03:02:46.821039 | 2021-04-04T17:16:31 | 2021-04-04T17:16:31 | 354,597,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('app.urls')),
path('accounts/', include('allauth.urls'))
]
| [
"62104603+industrius@users.noreply.github.com"
] | 62104603+industrius@users.noreply.github.com |
9c527efa6aa8784136dce6876d0295ec7e027964 | 6351397d216f5efb0c019004b3599e067e871faa | /server/th/migrations/0001_initial.py | b820d11758c5f3bf12cd7f7e9b474deab8ef8b1c | [
"MIT"
] | permissive | jahona/bcsd_raspberrypi | 909473edeac87ebb4f1296701db386245a586305 | f1b160b6b40a10086fead1295dd67174ca9662bb | refs/heads/master | 2020-07-03T09:24:41.334700 | 2016-12-02T12:46:10 | 2016-12-02T12:46:10 | 74,184,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 645 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-11-13 08:58
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Log',
... | [
"jahona5240@gmail.com"
] | jahona5240@gmail.com |
2e4887488a3e63d926ffe03904eae1571df209d3 | 6f4aad804c2d3dc6854c84a216600a0d1ab87b56 | /app_restful.py | 62b82c6a8b431184326bf5b117662c3fbcd14c2f | [] | no_license | Jvbrandaoreis/dev_api | 962d7b9ab779e537f6ab955e3192082a239a33c9 | 322628539d713f61d3ee9b91e6204be12f047d41 | refs/heads/master | 2023-06-27T12:00:40.092051 | 2021-07-19T22:20:36 | 2021-07-19T22:20:36 | 387,599,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,655 | py | from flask import Flask, request
from flask_restful import Resource, Api
from habilidades import Habilidades
import json
app = Flask(__name__)
api = Api(app)
desenvolvedores = [
{
'id':'0',
'nome':'Joao',
'habilidades' : ['Python', 'Flask']
},
{
'id':'1',
'nome':'Victor',
'habili... | [
"joaosilva.3059@aluno.saojudas.br"
] | joaosilva.3059@aluno.saojudas.br |
582f6d0edfa258a43862afe5670b6e536394aa8b | 53faeba30d5fe1d0d45f226b97afd9b36e8b34f5 | /app.py | 7885cbe6a4ee74cb98ef428c59b9e57bf5592564 | [] | no_license | OthankQ/minitter | 9316697f054f0c8968abdd255729e242b275a9f8 | f225d1bc09f3e45e5d6bc8c0d1e1c9672cc11aa0 | refs/heads/master | 2020-05-24T16:47:14.187371 | 2019-05-21T12:57:00 | 2019-05-21T12:57:00 | 187,368,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,451 | py | from flask import Flask, request, jsonify
app = Flask(__name__)
app.id_count = 1
app.users = {}
app.tweets = []
@app.route("/ping", methods=['GET'])
def ping():
return "Pong"
# Sign-up
@app.route("/sign-up", methods=['POST'])
def sign_up():
new_user = request.json
new_user["id"] = app.id_count
app.u... | [
"kim1885@purdue.edu"
] | kim1885@purdue.edu |
f8d4a5baf13d2c0d38f798e145a9f6d34af78c8c | ddb9633d7850d4829803d695130c2fa707d276f0 | /Problems/Preprocessing/task.py | 1cd52abc08de53915922bbc86b59f7e9274f9b1a | [] | no_license | DDan7/CoffeeMachine | 16e25adf257346ef2a3d87020708d827e489d1fe | c8e12030d99292479664316e805f1ab961f380b2 | refs/heads/master | 2022-11-25T19:43:25.257509 | 2020-08-04T07:58:44 | 2020-08-04T07:58:44 | 284,916,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | random_input = input().lower()
random_input2 = random_input\
.replace(",", "")\
.replace(".", "")\
.replace("!", "")\
.replace("?", "")
print(random_input2.lower()) | [
"dobre.daniel07@gmail.com"
] | dobre.daniel07@gmail.com |
6379e7441d2097ea9b63513cc0147ffda5c21d41 | 0b787c2035c82207e53ce44708b2e59f178bc6d3 | /pitalk.py | 79c9f925a37df04ca91fd06bca93988b8f4923c0 | [
"MIT"
] | permissive | sbcshop/PiTalk_4 | afd9374aab87117609b5eb26872d8df4c135dbae | 449657f8cddd1949a5d45ac1206413920644f9f3 | refs/heads/master | 2020-03-17T15:15:59.798136 | 2019-09-18T04:47:55 | 2019-09-18T04:47:55 | 133,703,991 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 9,219 | py | #!/usr/bin/python3
import re, logging, time, threading
from serial_comm import SerialComm
class PiTalk(SerialComm):
""" Class for pitalk modem interaction """
# parsing AT command errors
CM_ERROR_REGEX = re.compile(r'^\+(CM[ES]) ERROR: (\d+)$')
# parsing signal strength query response\
CSQ_REGEX... | [
"noreply@github.com"
] | noreply@github.com |
16cac5e803f640d4ca511eefb60e7fe8ff4999f1 | 73cb6d22aa85f00808fdc58d5998e85b5ff7deea | /anunciotest/urls.py | 2d4965a2709628e794b96ce06c579ad62f2af6d6 | [] | no_license | juanshocl/anunciotest | d0edf8b2535f31cbd93dbfe9d075b346a2e1247c | 43e447038233456727bcd689f48f6440a80a6d3f | refs/heads/master | 2023-08-14T05:53:29.389870 | 2020-06-05T15:36:54 | 2020-06-05T15:36:54 | 269,683,683 | 0 | 0 | null | 2021-09-22T19:09:54 | 2020-06-05T15:26:09 | Python | UTF-8 | Python | false | false | 768 | py | """anunciotest URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Clas... | [
"cl.jmunoz@gmail.com"
] | cl.jmunoz@gmail.com |
f62bbc2de90bdb96f62fb167704d56c566014e47 | 7608a4c0e2252f53aa632e89b9dcab94ad195391 | /crop/migrations/0006_auto_20190228_1457.py | 0a55e97099db21409747add45ca79fa1fb32bfed | [] | no_license | gokulacko/agri | 505369099aab4098e8adcfee3ec2d9708be59d4e | 604bde1f3583456fcd6a1d83122e77cd688a9cad | refs/heads/master | 2020-04-30T16:29:14.225155 | 2019-04-03T13:53:17 | 2019-04-03T13:53:17 | 176,949,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | # Generated by Django 2.1.3 on 2019-02-28 14:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('crop', '0005_crop_ph'),
]
operations = [
migrations.AlterField(
model_name='crop',
name='month_plant',
f... | [
"gokulakrishna@admins-MacBook-Pro-6.local"
] | gokulakrishna@admins-MacBook-Pro-6.local |
e48b36e7b33b5a3f509501483b203a7092b2997a | f8abce3c460eac2ccbc9042cac11ed2ada219da8 | /homeassistant/components/lyric/config_flow.py | 12f91cfe20680b5c6d6ba2609e3edf69127eac86 | [
"Apache-2.0"
] | permissive | Knapoc/core | b3edc10529cf1eee65c38fe7466fbe49b6f5da5a | 4418e6c4b69cf5a49720e0a5c5e8147380e4e8f5 | refs/heads/master | 2023-03-10T08:52:58.562028 | 2022-07-10T21:33:08 | 2022-07-10T21:33:08 | 248,786,699 | 0 | 0 | Apache-2.0 | 2020-03-20T15:16:46 | 2020-03-20T15:16:45 | null | UTF-8 | Python | false | false | 1,579 | py | """Config flow for Honeywell Lyric."""
from collections.abc import Mapping
import logging
from typing import Any
from homeassistant.data_entry_flow import FlowResult
from homeassistant.helpers import config_entry_oauth2_flow
from .const import DOMAIN
class OAuth2FlowHandler(
config_entry_oauth2_flow.AbstractOAu... | [
"noreply@github.com"
] | noreply@github.com |
a73d86d3a4f951a81943d8e5269cbe679da0b96d | 7727187a009e4b9c46c2fe06609372ec8814cd23 | /freemix_akara/__init__.py | 91c164e4bb4284d6a3acfe41a1ff6a0104cecf65 | [] | no_license | govtmirror/freemix-akara | ebf204554f4effc0543e60083698f2ea012413b8 | 1d10c3f02afbd4268852e2c52afdf77809176bdd | refs/heads/master | 2021-01-12T07:47:08.183429 | 2014-06-05T18:53:56 | 2014-06-05T18:53:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 787 | py | import os
import sys
target_version = "5.0.0"
def build_version():
distance ="0"
try:
from subprocess import Popen, PIPE
prev_tag,distance,revision = Popen(["git", "describe", "--match", "[0-9]*", "--long"],
cwd=os.path.dirname(__file__),
... | [
"dfeeney@gmail.com"
] | dfeeney@gmail.com |
773a41d0dcc8b30a7a4ad88f2e2719f1d65a4822 | 3774a634f361e99bb7f0b8fb172290b106e4072e | /grafatko/__init__.py | 0a13235dd8109a9d55e4de6c7e60d27ea97b7288 | [
"MIT"
] | permissive | knut0815/Grafatko | 13a7300a25e5931e4b4106a6b6425b0e4dadace4 | 11f09c15567e34e37aee07d8356af25b679fb429 | refs/heads/master | 2023-04-24T18:54:28.239521 | 2021-05-14T16:27:33 | 2021-05-14T16:27:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,837 | py | import os
import sys
import webbrowser
import argparse
from importlib.machinery import SourceFileLoader
from functools import partial
from random import random
from math import pi
from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
from qtmodern import styles
from grafatko.controls import *
from g... | [
"tomas.slama.131@gmail.com"
] | tomas.slama.131@gmail.com |
771969e302c358daf5902e01dd971f13d64e96ac | cfa182c465768878c5dc1099a6ecec24a42e2390 | /leaphand/input/providers/leapfinger.py | 6553adb2be435c6bd518500483204e64464b4868 | [] | no_license | Zen-CODE/leaptracer | d9d9523be236067b09973f357c1e475905ee660e | 617316ae809673727b7bd03112a1abe21ecf24e5 | refs/heads/master | 2022-12-22T21:22:05.644670 | 2020-10-04T09:25:49 | 2020-10-04T09:25:49 | 294,440,906 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,510 | py | '''
Leap Motion - Finger only
=========================
This module provides access to the 10 finger inputs generated by the
LeapMotion input provider. The provider generates
:class:`~kivy.input.motionevent.MotionEvent`\s based
on the finger positions within the Leap Interaction box.
.. include:: ../../doc/sources/le... | [
"zenkey.zencode@gmail.com"
] | zenkey.zencode@gmail.com |
a84b7a646c506ace5b4d9bda5570cf3347949184 | 5108cab3be9952fb91aabf18209d3c3eccc23e11 | /src/dataSources/DataSource_rtlsdr.py | 0b609b77b13eae159dcb88232b0bf5ed2b5674da | [
"MIT"
] | permissive | danhamilt1/pyspectrum | b575f89d2831a1567f31d8d1b66c1b47c56157d5 | ca4fbff54e8d7e658ad66ae61a7d331782a53eb6 | refs/heads/master | 2022-11-24T01:35:30.821037 | 2020-07-09T19:39:50 | 2020-07-09T19:39:50 | 280,237,561 | 0 | 0 | null | 2020-07-16T19:13:21 | 2020-07-16T19:13:20 | null | UTF-8 | Python | false | false | 3,362 | py | """
RTLSDR class wrapper
Used with USB IP input
Requires librtlsdr to be installed, tested on Linux only
Requires pyrtlsdr to be installed - provides RtlSdr
"""
import numpy as np
from typing import Tuple
import logging
import time
from dataSources import DataSource
logger = logging.getLogger('spectr... | [
"najohns@gnuradio"
] | najohns@gnuradio |
b09b6faf12f4a4ca4b0c15e69bb14fb55025f71c | 23f6dbacd9b98fdfd08a6f358b876d3d371fc8f6 | /rootfs/usr/lib/pymodules/python2.6/orca/scripts/apps/Instantbird/script_utilities.py | 30ada4b76dc1afe520b58b72cbf76629cd6b7945 | [] | no_license | xinligg/trainmonitor | 07ed0fa99e54e2857b49ad3435546d13cc0eb17a | 938a8d8f56dc267fceeb65ef7b867f1cac343923 | refs/heads/master | 2021-09-24T15:52:43.195053 | 2018-10-11T07:12:25 | 2018-10-11T07:12:25 | 116,164,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69 | py | /usr/share/pyshared/orca/scripts/apps/Instantbird/script_utilities.py | [
"root@xinli.xinli"
] | root@xinli.xinli |
fcef7c598577b7c9cb66889250774d044c044662 | e2b4a433bffef64553724ad52c3d664b5e464e98 | /No6.py | a4e18843861ef2c1f58f307a59e02227b8225b33 | [] | no_license | kavin-lee/SwordRefersToOffer | 765a0ddc2d31c11a3454721e84bc9e587e2405c8 | cd4e34c4692135798cc91cd839cf09bbed7c4111 | refs/heads/master | 2022-01-08T15:05:22.021699 | 2019-07-21T09:24:38 | 2019-07-21T09:24:38 | 198,020,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,071 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# @Time : 2019/7/14 上午11:39
# @Author : Kavin-lee
# @Email : kavin_lee@yeah.net
# @File : No6.py
# @Software: PyCharm
'''
No.6 旋转数组的最小数字
题目描述
把一个数组最开始的若干个元素搬到数组的末尾,我们称之为数组的旋转。
输入一个非减排序的数组的一个旋转,输出旋转数组的最小元素。
例如数组{3,4,5,1,2}为{1,2,3,4,5}的一个旋转,该数组的最小值为1。
给出的所有元素都大于0,若数组大小... | [
"kavin_lee@yeah.net"
] | kavin_lee@yeah.net |
24706754a16d032f879d56e03ae82c6464a010e3 | eb9d676418bde3b72cb2e401dfa9c87fe58ea57a | /GamblersRuin/GamblersRuin.py | d6c6edd0d9be6a8e8d3027526ed44d68b97500b7 | [] | no_license | Michelle-Lee/Data-Science-Projects | 49e13c72b814b30837e3fb3a9b8a676cdf41b37a | 8d2648922753c55eeeb28f34b3fba0516e2689e3 | refs/heads/master | 2022-11-14T14:10:57.912955 | 2020-06-29T22:34:41 | 2020-06-29T22:34:41 | 202,648,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 732 | py | import numpy as np
def numToss(start, goal, trials):
alist=[]
for i in range (trials):
toss=0
balance=start
while (balance<goal and balance>0):
toss+=1
if (balance>0 and (balance*2)<=goal):
if (np.random.uniform(0,1) < 0.5):
ba... | [
"noreply@github.com"
] | noreply@github.com |
51d505136973973700a474101bc9016066049ff7 | 0cbbba1afa24abb1961147dc0c3af1d2c583091c | /Discord/Testing/Blacklist/BlacklistJSON.py | 3883250b84e753e8229d8456d26e4f9777c542d0 | [] | no_license | timmit99/TimBot | d685092683881c6f7112614da56fab6b5576a959 | 1979474fcda84812d2e3a7113601e6694994dad9 | refs/heads/master | 2021-01-10T02:37:04.980635 | 2016-02-26T10:56:07 | 2016-02-26T10:56:07 | 52,189,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,208 | py | import json
running = True;
botPrefix = "$";
blacklistOptions = ["view","add","remove"]
print("The syntax for this command is:")
print(botPrefix + "blacklist [" + '|'.join(blacklistOptions) + "] [_NAME_] ")
print("The users.json file is able to be opened in any text editor.")
while running:
userInput = input("... | [
"abrahamtr@verizon.net"
] | abrahamtr@verizon.net |
8e985f8d2dac77c0ac46c44f9a90236729a7797b | bffb16353124bdb02afb7d3ecff3850ccb00ebc6 | /prob_015.py | 337cbe7a4e776eb70d488e29f2724de09247401c | [] | no_license | lywgit/project-Euler | d0fa8237dff2485862060fed8fb97f09be98ce3b | cdd566d10a537b4a78528b503b16dae0315c952e | refs/heads/master | 2018-11-06T17:35:58.753790 | 2018-09-06T08:55:05 | 2018-09-06T08:55:05 | 103,355,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Sep 15 12:23:06 2017
Problem 15 Lattice paths
@author: lywang
"""
def factorial(i):
if i==0:
return 1
else:
return i * factorial(i-1)
def lattice_paths(shape):
n1 = shape[0]
n2 = shape[1]
return factorial(n1+n2) ... | [
"lywang@tiara.sinica.edu.tw"
] | lywang@tiara.sinica.edu.tw |
183cff2b462a6ee4487031c02e313163d080982d | f287ed8b9782494b9f5c572b252c92a1416a9fa7 | /api/admin.py | 770f2ff016da523684ce9fbced9b08776e9804c1 | [] | no_license | AbelMRobra/MovieRating-BackEnd | 176ce9d25c95178152056292dada677af90eba13 | 43961d373d4006cbfffcb88d0c1490a69c15ca79 | refs/heads/main | 2023-08-13T06:04:03.420564 | 2021-10-10T17:10:41 | 2021-10-10T17:10:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | from django.contrib import admin
from api.models import Movie, Rating
# Register your models here.
admin.site.register(Movie)
admin.site.register(Rating) | [
"64233723+AbelMRobra@users.noreply.github.com"
] | 64233723+AbelMRobra@users.noreply.github.com |
b3ad6f339b46e6ce65c1f88ef075bef05e6ff9b4 | 46e532efd2bdb415cc61dc1484ab3567ee3ad68a | /src/pizza/forms.py | 25ea1f24c893dea459237e8a4ffd79003612be2d | [] | no_license | bluehackrafestefano/NadiasGardenRestaurant-Django-Project | 45d08c995c215f694485df250c87269609011e05 | 327b7a3874b4183a46d7ee635f2b2c42875ca1d7 | refs/heads/main | 2023-03-11T12:19:15.658033 | 2021-03-04T05:31:18 | 2021-03-04T05:31:18 | 343,999,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,745 | py | from django import forms
from .models import Pizza, Size
# This is the first version:
# class PizzaForm(forms.Form):
# topping1 = forms.CharField(label='Topping 1', max_length=100)
# topping2 = forms.CharField(label='Topping 2', max_length=100)
# size = forms.ChoiceField(label='Size', choices=[('Small', 'S... | [
"stefanorafe@gmail.com"
] | stefanorafe@gmail.com |
b8e0ff0edae07d6f0b909a4657e141e44d0cba4f | d4079a161b9544369d6705884a110c678ec69f03 | /python/pika/consume.msg.py | 4a237c53665602a26b2145397c7c7634173356d7 | [] | no_license | rca0/playground | a31391ef0654f1408cc688a1f612f790a9276819 | 9a234a99165b70461041877e25a70dd6781b9215 | refs/heads/master | 2021-06-14T23:34:59.291761 | 2019-10-25T14:47:17 | 2019-10-25T14:47:17 | 132,924,808 | 0 | 0 | null | 2021-06-11T17:55:54 | 2018-05-10T16:11:12 | Elixir | UTF-8 | Python | false | false | 1,017 | py |
import os
import sys
import pika
import time
import config
MESSAGE = ' '.join(sys.argv[1:]) or "Hello World!"
pika_conn_params = pika.ConnectionParameters(
host=config.RABBITMQ_HOSTNAME,
port=config.RABBITMQ_PORT,
virtual_host=config.RABBITMQ_VHOST,
credentials=pika.credentials.PlainCredentials(
... | [
"ruanarcega@gmail.com"
] | ruanarcega@gmail.com |
e1b976030dc01ce3b6618b5d397f079d8b0ed23e | 8b829b6fb8382bc7bdc17125ad1e61d56eaa05ce | /Tests/SmokeTest_Medicine.py | 673aad284e1354c432297eefbf9fc2f7068c2679 | [
"WTFPL"
] | permissive | 8-god-cross-sea/PHL-Automated-UI-Test | eeaf43ca64dd85b974441aae1d0ffe8b80a5abd0 | f93407346c2cda5e29461686dfc22d1b5bb4a815 | refs/heads/master | 2021-04-03T01:29:38.921761 | 2018-04-02T04:28:33 | 2018-04-02T04:28:33 | 124,834,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | import unittest
import time
from selenium import webdriver
class SmokeTest_Medicine(unittest.TestCase):
def setUp(self):
self.driver=webdriver.Chrome()
def tearDown(self):
self.driver.close()
| [
"d_e_ddwing@hotmail.com"
] | d_e_ddwing@hotmail.com |
7db4799c11a382df9464fa14175955e915757662 | 6424a1cd8709269046ecbd54220ef524bd544a2a | /starting_Az_SDK.py | e3b5aab94863f2856fe04002563b78870867c5ab | [] | no_license | elaynejones/ml-practice | e3d62100c5c5aa1b7c5df38828f7ab1649970488 | 83a891114af018c4c6389c39775c0765eacedb3a | refs/heads/main | 2023-04-26T22:21:40.149225 | 2021-05-19T19:59:42 | 2021-05-19T19:59:42 | 349,521,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,902 | py | from azureml.core import Workspace
ws = Workspace.from_config()
print(ws.name, "loaded")
from azureml.core import Experiment
import pandas as pd
import matplotlib.pyplot as plt
%matplotlib inline
# Create an Azure ML experiment in your workspace
experiment = Experiment(workspace = ws, name = "diabetes-... | [
"noreply@github.com"
] | noreply@github.com |
2a87718535884ed7542b5b091ab25bf9c0463213 | 43e0cfda9c2ac5be1123f50723a79da1dd56195f | /python/paddle/fluid/tests/unittests/test_generate_proposals_v2_op.py | 506176d146c572f653a460b40608bbb55357141d | [
"Apache-2.0"
] | permissive | jiangjiajun/Paddle | 837f5a36e868a3c21006f5f7bb824055edae671f | 9b35f03572867bbca056da93698f36035106c1f3 | refs/heads/develop | 2022-08-23T11:12:04.503753 | 2022-08-11T14:40:07 | 2022-08-11T14:40:07 | 426,936,577 | 0 | 0 | Apache-2.0 | 2022-02-17T03:43:19 | 2021-11-11T09:09:28 | Python | UTF-8 | Python | false | false | 13,448 | py | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | [
"noreply@github.com"
] | noreply@github.com |
d2154d5d11051a3a0121f69907690b4c73bc46d3 | 40b0dbf955e8740430a90dc707ae11a8f84b512a | /search/search_index.json | 28fa1dcf3622317021958a38c88413d577a0e29a | [] | no_license | lazka/msys2.github.io | 6c6a719e83338b2e754d5b8a4d61714f5923b17a | 5fb819304581399bc6ff93595a0a180e492814bc | refs/heads/master | 2023-08-19T04:23:04.819036 | 2023-01-19T19:49:14 | 2023-01-19T19:49:14 | 250,075,112 | 0 | 0 | null | 2020-03-25T19:42:48 | 2020-03-25T19:42:47 | null | UTF-8 | Python | false | false | 210,505 | json | {"config":{"lang":["en"],"separator":"[\\s\\-]+","pipeline":["stopWordFilter"]},"docs":[{"location":"","title":"Getting Started","text":"MSYS2 Software Distribution and Building Platform for Windows <p>MSYS2 is a collection of tools and libraries providing you with an easy-to-use environment for building, installing an... | [
"lazka@users.noreply.github.com"
] | lazka@users.noreply.github.com |
7fdad9108d7510221612c6a1e57cbb895da7d1c5 | c204ae330559a4f1606b4935c2b063e7db5b4c8c | /flaskblog/routes.py | 4257fd7c44fff7db49ed6cd108e2693d4bd94780 | [] | no_license | tm4ce/finance-tracker20 | 8b9b4efc0fe3642391291bb52ce1f05fba80cab5 | 8699d2d7da45352e8dc684bfbe377fa7e823404b | refs/heads/master | 2022-10-29T12:16:39.334938 | 2020-06-20T01:17:42 | 2020-06-20T01:17:42 | 273,615,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,282 | py | import secrets
import os
from PIL import Image
from flask import render_template, url_for, flash, redirect, request, abort
from flaskblog import app, db, bcrypt, mail
from flaskblog.forms import (RegistrationForm, LoginForm, UpdateAccountForm, PostForm, DetailsForm,
RequestResetForm, ... | [
"noreply@github.com"
] | noreply@github.com |
187f4f4b9ff09c971b270c8960580dd52f6ea3da | f1cd0d3599a375e901324dd67ec09af64c377b03 | /app/controllers/product_details.py | 3168df4e0e1f0fdad0ba82069edb4299bb509949 | [
"MIT"
] | permissive | fr0zie-OpenClassrooms/Project5 | 51f307ee2e7fc0547bfdac2d54659d367cc6e5a2 | febc04ac0be9e11dae3ccdc34f551dc9fbf99058 | refs/heads/main | 2023-03-18T16:22:33.860331 | 2021-03-08T10:24:15 | 2021-03-08T10:24:15 | 327,833,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | from app.views.product_details import ProductDetailsView
class ProductDetailsController:
"""Class defining product controllers."""
def __init__(self, product, substitute):
"""Class initialization."""
self.view = ProductDetailsView()
self.model = self.view.model
self.model.pr... | [
"axel.rayet@outlook.com"
] | axel.rayet@outlook.com |
d7fa7d83178d31ccbe209913baecd26cf2b686b3 | 78bee622597e872fc527ea4e301be0c8e4371734 | /app/user/views.py | 53663eed38feb188d460e84b2b8f08a0c49e812e | [
"MIT"
] | permissive | klasinky/recipe-app-api | 44956c48a44287e6cba612d1aaf06716a5288f01 | 140f48dcd21955ccdc5cae58c302b9360ef94085 | refs/heads/main | 2023-03-08T19:18:53.211964 | 2021-02-25T11:49:41 | 2021-02-25T11:49:41 | 328,028,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 893 | py | from .serializers import UserSerializer, AuthTokenSerializer
from rest_framework import generics, authentication, permissions
from rest_framework.authtoken.views import ObtainAuthToken
from rest_framework.settings import api_settings
class CreateUserView(generics.CreateAPIView):
"""Create a new user in the system... | [
"pc@pop-os.localdomain"
] | pc@pop-os.localdomain |
57890d9d794f31ff3cc6678a1583001a24afb52d | 6cfe858b89f76552d0a7d544672cd1636b015101 | /akinator_anna_charlotte.py | 156a30a60dd12c44c85906c72bf940066b0a9458 | [] | no_license | Chachaz1998/Akinator | a4b64522ef9d3b7c74da0432999904540c01c79f | 96cf1dd4d9ed6418acf06de6870f4dfef1f8a863 | refs/heads/main | 2023-05-15T06:47:30.856446 | 2021-05-30T13:53:30 | 2021-05-30T13:53:30 | 372,002,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,041 | py | #import openpyxl and panda to run the program and read the excel-file
import openpyxl
import pandas as pd
#Read the excel-file with all the information about the famous people and the questions
df = pd.read_excel("Excel_Liste_buchstaben.xlsx")
#Read the columns headings
list_of_questions = df.columns
#Read the col... | [
"noreply@github.com"
] | noreply@github.com |
59e207f82953e41458c42fa57415d6d190031532 | e30de371d8fe544f202950747528b800b918a4fe | /scrummer/models/project_project.py | dc12fe9d2f3dd2ff9927a3cab38759098a2fe19d | [] | no_license | modoolar/scrummer | 10163744e2cbf0d589ad8873e7065c8b95b5110d | 2ba08662342a120967622ba7b85b6c4718eebaf5 | refs/heads/11.0 | 2020-03-19T09:17:34.730650 | 2018-11-19T11:17:17 | 2018-11-19T12:06:53 | 136,275,296 | 27 | 39 | null | 2018-11-19T12:06:55 | 2018-06-06T05:15:39 | CSS | UTF-8 | Python | false | false | 1,214 | py | # Copyright 2017 - 2018 Modoolar <info@modoolar.com>
# License LGPLv3.0 or later (https://www.gnu.org/licenses/lgpl-3.0.en.html).
from odoo import models, fields, api
class ProjectType(models.Model):
_inherit = "project.type"
_implements_syncer = True
task_type_ids = fields.Many2many(
comodel_na... | [
"aleksandar.gajic@modoolar.com"
] | aleksandar.gajic@modoolar.com |
b839707730f670e808bad0a62fbb3a68c7489e4f | aec1885e813d4ab8a3f7b004a43fb13cfcecee63 | /week12/p9.py | b180e7a115dabba31e34f2983325a3977ae3d0d6 | [] | no_license | WisTiCeJEnT/lectureCompro | 7ccb6607faa05321d25944643c491116405be50e | 0b27c1fe1638c60f9cc016f903e3da525b276c0f | refs/heads/master | 2021-01-20T22:54:56.284227 | 2017-12-08T01:41:16 | 2017-12-08T01:41:16 | 101,828,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | while True:
try:
num = int(input('Input the numerator: '))
den = int(input('Input the denomerator: '))
print('%d//%d = %d'%(num, den, num//den))
except Exception as e:
print('Exception occurs: ' + str(e))
print('Try next input..')
except ZeroDivisionError:
... | [
"nine.stay27@gmail.com"
] | nine.stay27@gmail.com |
d96e6be0d3c4396f5e30f1cc6c75a749ec031fc4 | 049647d73ccc74275ca7b8dc065d1c3113c4ceb8 | /kurtosis_client.py | 56528c7ad5fd19dc92c465a2e9376e24f228682b | [] | no_license | SDRAST/MCClient | 2298a4b07edb3c3e143e312a8ed086ccc98be5ab | 2a5ab02cefa9883cf1912849429c788319c32105 | refs/heads/main | 2023-01-22T21:44:27.704153 | 2020-12-08T19:57:29 | 2020-12-08T19:57:29 | 309,819,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,924 | py | # -*- coding: utf-8 -*-
"""
kurtosis_client - module for client to interact with kurtosis firmware
"""
import logging
module_logger = logging.getLogger(__name__)
class KurtosisClient():
"""
Class to interact with kurtosis logic on the server
This is used to read and write to registers in the kurtosis firmware... | [
"tbhkuiper@gmail.com"
] | tbhkuiper@gmail.com |
78cdadf950bc523bd3059b82a5f06067ddc9f83a | 9411128e65f5bc3420cfee21e479e237e0145d89 | /setup.py | 5dea6c3ef2fcf8202e6c295c745008fc9789321c | [] | no_license | tmckay/music-scales | 1da70d68a9db73f5c333afee47455f794226d18a | f42ee550364efb7309a57fc35aad6788ddebb867 | refs/heads/main | 2023-09-04T16:13:53.090010 | 2021-11-15T04:33:52 | 2021-11-15T04:33:52 | 390,609,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | from setuptools import setup
setup(
name='music-scales',
version='0.1dev',
packages=['music_scales',],
install_requires=[
]
)
| [
"taylormckay@gmail.com"
] | taylormckay@gmail.com |
b5c7056531134ea25102fd168f67ae10a0329d2b | 8fe2b08ea018a189b07106fd0ae75d23678dfe06 | /cart/urls.py | 9438417638ca3341445ac13f2cda97e4ae6e8e36 | [] | no_license | Shashish-Mishra/MyawesomeCart | 6d319d99dce18ec5d2cf905d025891c416c786d5 | 0ca068d70d47a16db07da1db4e28447ed3e51f6e | refs/heads/master | 2022-04-28T00:53:11.383372 | 2020-04-30T19:22:02 | 2020-04-30T19:22:02 | 260,298,792 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 926 | py | """cart URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.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... | [
"shashish.deepak@gmail.com"
] | shashish.deepak@gmail.com |
d0ba8f5d8f78fa372456c75b19d1d1a9ecdcdeff | 9aa76b41b86f61aece33b4bb60f53509f8154b5d | /ProyectoDjango/Recetas/Recetas/urls.py | 103bd34c8c4f56f95d9605110886f5bbd846f73d | [] | no_license | grGrimales/python | 98d81ce4e3fb5002409ea188a652e58f347ef04a | 70822ea73d82b17958649bc3e2420e6a7452a91a | refs/heads/master | 2023-01-19T19:44:10.251436 | 2020-11-29T17:15:36 | 2020-11-29T17:15:36 | 317,002,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 810 | py | """Recetas URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"guzmandata@gmail.com"
] | guzmandata@gmail.com |
35c6ebd0795c9a1996149fe55a06c1234f4f3016 | 08f0da04829eee13691151c1c1e0b537276aca17 | /AST/Enum.py | 122d98782e8588412730923984415302eec84aab | [] | no_license | hlindmark/TopCompiler | a8f168eec4b05c63e0a60bdf037010e162f1d2b6 | 2e8171d76f0aa63b7989a2cbb909981828689d98 | refs/heads/master | 2021-01-15T18:46:31.563111 | 2017-01-01T18:56:24 | 2017-01-01T18:56:24 | 78,851,512 | 1 | 0 | null | 2017-01-13T13:28:09 | 2017-01-13T13:28:09 | null | UTF-8 | Python | false | false | 604 | py | from .node import *
class Enum(Node):
def __init__(self, const, parser):
Node.__init__(self, parser)
self.const = const
self.package = parser.package
def compileToJS(self, codegen):
count = 0
for name in self.const:
codegen.append("function "+self.package+"_... | [
"lgoetz@islux.lu"
] | lgoetz@islux.lu |
543f98e378822d026624672325a7e5e70e01bdbb | 0103046cd77e9f86ccde477736de36bba766ceb6 | /src/sentry/projectoptions/manager.py | e0fea86bd8bc6dd142d90dbc9d5bf9ee8979bf40 | [
"BUSL-1.1",
"Apache-2.0"
] | permissive | kaozdl/sentry | ad41ada649a20300e9f2fe69050200cfbf738a63 | 63d698f5294f64a8c206b4c741e2a11be1f9a9be | refs/heads/master | 2021-06-21T18:24:21.713064 | 2021-03-04T19:45:20 | 2021-03-04T19:45:20 | 198,681,569 | 0 | 0 | BSD-3-Clause | 2019-07-24T17:32:29 | 2019-07-24T17:32:28 | null | UTF-8 | Python | false | false | 3,109 | py | import uuid
import bisect
from datetime import datetime
from pytz import utc
class WellKnownProjectOption:
def __init__(self, key, default=None, epoch_defaults=None):
self.key = key
self.default = default
self.epoch_defaults = epoch_defaults
self._epoch_default_list = sorted(epoch... | [
"noreply@github.com"
] | noreply@github.com |
ead7b1a0755191bb9b690a567988c0afb102bd9f | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /man/call_last_world_with_next_woman/want_last_case/come_new_hand/few_person.py | 61c2026eb36fe40fd1c4e1cefa0bcdb43a2f6891 | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py |
#! /usr/bin/env python
def group(str_arg):
thing(str_arg)
print('feel_company_by_week')
def thing(str_arg):
print(str_arg)
if __name__ == '__main__':
group('same_part')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
6e07aa31b5b184bb862aa1734879ecf458062543 | e5eb9c2908b6011a0764adaddb08f332eba50937 | /4-基于词嵌入的LSTM网络/19万影评下训练模型/lstm2.py | 78cfe1ab2dce9a6bc560a25ed24c47ba9166b949 | [] | no_license | BarryZM/AU331-MLproject-GuessCommentStars | fed64c13418974388cf684e3fd53adf066d13b2a | ac947c9f34b1aa9abec06cef3443a5226aa341f1 | refs/heads/master | 2020-07-29T06:36:37.406155 | 2019-07-04T14:16:42 | 2019-07-04T14:16:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,113 | py | from tensorflow.keras.models import Sequential, load_model
from tensorflow.keras.layers import Dropout, LSTM, Dense, Activation, Embedding
from tensorflow.keras import optimizers
from tensorflow.keras.callbacks import EarlyStopping
import tensorflow as tf
import numpy as np
from test_number_list import get_test_number... | [
"qimingliusjtu@gmail.com"
] | qimingliusjtu@gmail.com |
83e94e9ee4634f75c3b3eba443b4f977bf646376 | 193bd235afc45849ac2ca72e75506913c53fb96a | /a_star_arr.py | ffe6c4a8a02081ee5f35dc05103ae0e84843e946 | [] | no_license | mertlsarac/YapayZeka-1 | 12d64927b520a5675d6e1383d45c8da9732033ef | 52854ef3f6710d223d2c589a6a326ca7fbe9f983 | refs/heads/master | 2021-03-10T00:47:43.148825 | 2020-03-15T14:58:58 | 2020-03-15T14:58:58 | 246,400,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,913 | py | from PIL import Image
import numpy as np
from heap import Heap
import time
class Node():
"""A node class for A* Pathfinding"""
def __init__(self, parent=None, position=None):
self.parent = parent
self.position = position
self.g = 0
self.h = 0
self.f = 0... | [
"noreply@github.com"
] | noreply@github.com |
cd5e87e12d5ca70b0585b55a0251ac2a935823cf | 9f00150984e3577eea3225226250e156af6f7f68 | /web_platform/my_api/save_simple_case_api.py | 2da5dcd209c4adbc1d46ce5182a3cb65facd5d92 | [] | no_license | luhuiyu/Test_Platform_Code_refactoring | ad3ce0c895aab2e03ff24efeed1da74d99cecd38 | b02cb996e11c1beb72f6524facff7de7af673ad7 | refs/heads/master | 2020-03-21T00:06:31.390883 | 2018-09-06T09:48:15 | 2018-09-06T09:48:15 | 137,878,017 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,878 | py | from rest_framework.views import APIView
from rest_framework.response import Response
from web_platform.models import *
from web_platform.my_api.basic_api import get_request_data
from web_platform.my_forms.my_project_form import *
from web_platform.models import *
class save_simple_case_api(APIView):
'''
... | [
"luhuiyu@126.com"
] | luhuiyu@126.com |
5f2e41e94fa8a61c1b4f595effefb03c9fc03988 | 2f8153220e107463fd21eefdcb05f32530ef5699 | /edr/edcargoreader.py | b80f4a776496610ca52d4b7e9874b70e42b8a4d0 | [
"Apache-2.0"
] | permissive | lekeno/edr | f99f4bc88cdee0b067aad1f4759eea8f808e5214 | f880361b03457a88198b95b18065878d04161db7 | refs/heads/master | 2023-07-09T08:29:00.959248 | 2023-05-31T03:19:40 | 2023-05-31T03:19:40 | 110,667,911 | 85 | 16 | Apache-2.0 | 2023-07-08T05:48:01 | 2017-11-14T09:17:17 | Python | UTF-8 | Python | false | false | 760 | py | from __future__ import absolute_import
import json
from os.path import join
from config import config
from edrlog import EDRLog
EDRLOG = EDRLog()
class EDCargoReader(object):
def __init__(self):
self.journal_location = config.get_str('journaldir') or config.default_journal_dir
def process(self):
... | [
"33626494+lekeno@users.noreply.github.com"
] | 33626494+lekeno@users.noreply.github.com |
b674e61eba02c91b4cbc5268db41cc86e6f55ca5 | fa5d7a9c34c47e18d7cf7f9baa2fa0862b8e4bc6 | /test_flatten_array.py | 71f0cb94a04864bae2f106e924ff7caf93cd2118 | [] | no_license | mlee4242/Coding-Questions | 75baaaf57e2e4e4cdeab2ceb68dbe620896c8f6c | fa5c10d395df92e06adb79a9a87be100a0e027c8 | refs/heads/master | 2020-03-28T10:11:55.861928 | 2018-09-10T05:42:38 | 2018-09-10T05:42:38 | 148,090,208 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 898 | py | import unittest
from flatten_array import flatten_array
#test cases for flatten_array.py
class FlattenArrayTestCases(unittest.TestCase):
#test example given in email
def test_example_in_email(self):
self.assertEqual(flatten_array([[1,2,[3]],4]), [1,2,3,4])
#test empty array
def test_... | [
"noreply@github.com"
] | noreply@github.com |
07abeb853173fc2e69c1a3dea3176bc3904f1b83 | cdb186ad49bba1406c81f634b936e73f8cb04009 | /ARC/002/a2.py | b88ac58257608a246949e7fe5a812d771b81e63d | [] | no_license | ToshikiShimizu/AtCoder | 9e46f5581f2c1f5149ce1394d61d652cda6256a3 | 41fe6408c20c59bbf1b5d7ee9db2e132f48ad1ac | refs/heads/master | 2023-07-26T22:45:51.965088 | 2023-07-10T14:11:35 | 2023-07-10T14:11:35 | 148,154,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | #coding:utf-8
y = int(input())
if (y%400==0):
print ("YES")
elif (y%100==0):
print ("NO")
elif (y%4==0):
print ("YES")
else:
print ("NO") | [
"tamreff3290@gmail.com"
] | tamreff3290@gmail.com |
8157c49f8ace0332501658b6f859ebeb68f5f74b | 821ca45c2982a4d101395ce0f26f667ac28d81f2 | /djangogirls/blog/views.py | 9a420c26ff36ca7c64b30b4a494c849f37d759a6 | [] | no_license | Aleksandra-Polakowska/First_django_project | ae691a4d2a9e3d713ad2a4310e11dcd8d6999cd0 | be5d90b91a427f716a7c075f4e9a41e070810814 | refs/heads/master | 2021-06-27T01:48:21.301822 | 2017-09-17T13:06:52 | 2017-09-17T13:06:52 | 103,828,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,488 | py | from django.shortcuts import render
from django.shortcuts import redirect
from django.utils import timezone
from .models import Post
from django.shortcuts import render, get_object_or_404
from .forms import PostForm
def post_list(request):
posts = Post.objects.filter(published_date__lte=timezone.now()).order_by('... | [
"aleksandrapl209@gmail.com"
] | aleksandrapl209@gmail.com |
a44fffc08a145a5561b8d42a81463a1e79e918c3 | cb449fa8670b19168010e86202495c595c8865c2 | /mining-social/python/the_tweet__tweet_tagcloud_code.py | 50742072a13ffa16f24c1a92172b7f97c56510b5 | [] | no_license | scorpioliu/mlclass | 9975ce446d1e7fb50922e5eae9b04080d1a55031 | 1930babac393bea90a22c89eacc385dce14af329 | refs/heads/master | 2016-08-03T23:03:48.389541 | 2012-10-14T23:45:46 | 2012-10-14T23:45:46 | 5,560,995 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,587 | py | # -*- coding: utf-8 -*-
'''
example code to create a tag cloud
by scorpioLiu
created on 2012.9.7
'''
import os
import sys
import webbrowser
import json
from math import log
def checkWord(w):
if len(w) < 2 or '/' in w or w == 'of': return False
flag = False
for c in w:
if c in stopchar: return Fa... | [
"greatprojectsanji1234567890@gmail.com"
] | greatprojectsanji1234567890@gmail.com |
d2004d8e68741301c502305b263147f20710d51e | ef821468b081ef2a0b81bf08596a2c81e1c1ef1a | /PythonWebBasics_Django/Django_Web_Basics/Django_Web_Basics_2/migrations/0007_auto_20210130_1511.py | c45bf61e0b3924a636cba22def0c3c357974ec4f | [] | no_license | Ivaylo-Atanasov93/The-Learning-Process | 71db22cd79f6d961b9852f140f4285ef7820dd80 | 354844e2c686335345f6a54b3af86b78541ed3f3 | refs/heads/master | 2023-03-30T20:59:34.304207 | 2021-03-29T15:23:05 | 2021-03-29T15:23:05 | 294,181,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | # Generated by Django 3.1.5 on 2021-01-30 15:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Django_Web_Basics_2', '0006_auto_20210130_1456'),
]
operations = [
migrations.AlterField(
model_name='game',
name='l... | [
"ivailo.atanasov93@gmail.com"
] | ivailo.atanasov93@gmail.com |
22a649ab3c8c6c88cce0de679a179e1d0ce5ef0d | df7a75554ea97bd309ffef917cada9a0f4db6997 | /apps/login_reg/urls.py | b1ac71e57600a30a55deab38ca674258b3e2d8dd | [] | no_license | jsha15034/loginReg | c3602fdaba070689ac53c1f404dc6c41cead46c1 | 13dd3776eb4d9776cb434784b18d4fd87ebd15c5 | refs/heads/master | 2023-02-06T10:54:58.523565 | 2021-01-01T20:06:18 | 2021-01-01T20:06:18 | 326,047,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | from django.conf.urls import url
from . import views
urlpatterns = [
#render
url(r'^$', views.index),
url(r'^main$', views.main),
#redirect
url(r'^register$', views.register),
url(r'^login$', views.login),
url(r'^logout$', views.logout)
] | [
"jsha15034@gmail.com"
] | jsha15034@gmail.com |
eee328f692ea3d4fb15ac3373558e1879d8ef286 | d0fff53e51e07456440fef0a005e13506f4dec13 | /codeMatrix/matrix/inverse_index_lab.py | b47bb64a0a924094bd3eb28094ec120e6012d706 | [] | no_license | zhouwubai/coursera | 961ea190e87244cc684502b309ec02dca72dc68d | e921a99a971c91a29862d4aa186798e164b222f4 | refs/heads/master | 2016-09-06T05:03:28.426915 | 2014-11-03T17:10:03 | 2014-11-03T17:10:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,932 | py | from random import randint
from dictutil import *
## Task 1
def movie_review(name):
"""
Input: the name of a movie
Output: a string (one of the review options), selected at random using randint
"""
review_options = ["See it!", "A gem!", "Ideological claptrap!"]
return review_options[randint(0,l... | [
"zhouwubai@gmail.com"
] | zhouwubai@gmail.com |
1a1cb129232e0e97be0322ccfb3ff3d58cbee9bc | d94b6845aeeb412aac6850b70e22628bc84d1d6d | /readtwice/models/narrative_qa/preprocess_lib.py | c4826fd2778991d70acaaa4911bced36be5f44de | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | ishine/google-research | 541aea114a68ced68736340e037fc0f8257d1ea2 | c1ae273841592fce4c993bf35cdd0a6424e73da4 | refs/heads/master | 2023-06-08T23:02:25.502203 | 2023-05-31T01:00:56 | 2023-05-31T01:06:45 | 242,478,569 | 0 | 0 | Apache-2.0 | 2020-06-23T01:55:11 | 2020-02-23T07:59:42 | Jupyter Notebook | UTF-8 | Python | false | false | 32,958 | py | # coding=utf-8
# Copyright 2023 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
fcb54036d7d28cdaa0c0f2500a5c9cea90274b3b | f0ad86bb8184a4c27c09db056400072364345999 | /src/lab8/data_helpers.py | bf8fe4e10949beaa391aa9eb74a3d8259e53a1ea | [] | no_license | llostris/pjn | 9b3cea14a6891899f2f402ca6023d34e31f6f58e | b5665ad97a78547f50dc6e666bfaf57978014dc1 | refs/heads/master | 2021-01-22T01:51:19.426947 | 2015-11-29T10:28:29 | 2015-11-29T10:28:29 | 56,620,124 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 929 | py | from collections import defaultdict
import re
__author__ = 'Magda'
def load_flexive_map(flexive_forms_file, encoding, ignored_characters):
inflection_dict = {}
with open(flexive_forms_file, encoding=encoding) as f:
for line in f:
# print("AAA:" + line)
splitted = line.lower().... | [
"deiidrell@gmail.com"
] | deiidrell@gmail.com |
a9617016af138a8744cd4ab32de42682c82f62a9 | 6f44214567f1fe9c5534ea3d55800e9aaabaa390 | /evergreen_requests.py | 73c97ef056f55049281e3fcfd2f921c5cf23debe | [
"BSD-2-Clause"
] | permissive | saghul/evergreen-requests | c3505c1f669834b997a3b15907cd25a1d88b08f1 | 4df9e7564492d82d9850399ad6b0c83e59e30423 | refs/heads/master | 2016-09-06T05:53:26.345690 | 2013-05-14T21:36:22 | 2013-05-14T21:36:22 | 10,063,878 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,433 | py |
from functools import partial
from operator import methodcaller
from evergreen import futures, patcher
# Monkey-patch.
requests = patcher.import_patched('requests')
__version__ = '0.0.1'
__all__ = ['map', 'imap', 'get', 'options', 'head', 'post', 'put', 'patch', 'delete', 'request', '__version__']
# Export same i... | [
"saghul@gmail.com"
] | saghul@gmail.com |
dfe0a2db2d16dc78e0eb017b8f6c709d04330980 | b02406fe1d207ac003fb2745590c080c728870a6 | /spacyapi/settings.py | 26f315a2ee81695be8bbfd3c3656bdbcc7a8d863 | [] | no_license | bmbigbang/spacyapi | a2f6f72e68b202c30bd97f5a68858549d551c6df | f743b166d02680642117303703e4653b2cda8bd3 | refs/heads/master | 2021-01-18T21:06:21.566777 | 2016-02-25T09:08:11 | 2016-02-25T09:08:11 | 52,510,985 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,642 | py | """
Django settings for spacyapi project.
Generated by 'django-admin startproject' using Django 1.8.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build paths... | [
"root@vps227424.ovh.net"
] | root@vps227424.ovh.net |
4239220b436172ceb1cbf0ec06ca4b2009619649 | 64d71f5456fbc8d1c3c2f4d3b7f1971dbfe75646 | /apps/mail/urls.py | 3cded2a611f24df39a59c09975e1c7cfe36af22f | [] | no_license | littleq0903/chenkmail | b963f641f4043d8c675155420e77a8c7c1366cc9 | 2dd881295b3942d57b926a142c0a7b5534955b4f | refs/heads/master | 2016-09-05T13:23:55.306908 | 2011-10-07T18:54:29 | 2011-10-07T18:54:29 | 2,494,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | from django.conf.urls.defaults import *
from django.conf import *
urlpatterns = patterns('mail.views',
url(r'^$', 'index'),
)
urlpatterns += patterns('mail.ajax',
url(r'^ajax/sendmail$', 'sendmail'),
)
urlpatterns += patterns('',
url(r'^login/$', 'django.contrib.auth.views.logi... | [
"littleq0903@gmail.com"
] | littleq0903@gmail.com |
49a77cedb05e803ca8d7ffcf1c9653a4e7484593 | 8ea3a5bf942d45a148786a8803ad9fe49a64226b | /work/test.py | 1cca3d02885470b7cc3039baea4833fc2ac11784 | [] | no_license | azn8n/WebApp-MBTA | e3d43be842c4bd027373a7d4cd860776a9020a62 | 5c2476ab8170151414f492c36514ef5774e273f9 | refs/heads/master | 2023-03-26T19:39:02.609131 | 2021-03-29T03:10:29 | 2021-03-29T03:10:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | import urllib.request
import json
from pprint import pprint
MAPQUEST_API_KEY = 'dhANeaokhav1ia769QwVc7kfZWYbLYlI'
url = f'http://www.mapquestapi.com/geocoding/v1/address?key={MAPQUEST_API_KEY}&location=Babson%20College'
f = urllib.request.urlopen(url)
response_text = f.read().decode('utf-8')
response_data = json.load... | [
"77366141+azn8n@users.noreply.github.com"
] | 77366141+azn8n@users.noreply.github.com |
1b80a38d4d60f748aa2653852fbdb698e7ce4bf2 | ed9345989bd0d11f46dc66ec8a04a2824dd1152e | /checkPrime.py | e190709089fdb8a133142e44103b172caa4b0266 | [] | no_license | ayanmukhopadhyay/Cloud | ea5cd4f9d50d35687693f61adeda8f55a3c17161 | 376620c73da4f7aef38fd5736f905ae3f7bc963c | refs/heads/master | 2021-01-14T11:12:36.291419 | 2015-10-21T02:40:21 | 2015-10-21T02:40:21 | 43,228,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | from math import ceil
import sys
def isNumberPrime (number):
for counter in range(2, int(ceil(number/2))):
if number%counter == 0:
return False
return True
if __name__ == '__main__':
print isNumberPrime(int(sys.argv[1]))
| [
"ayan.mukhopadhyay@vanderbilt.edu"
] | ayan.mukhopadhyay@vanderbilt.edu |
fac6f9787eff8ddee8d08ce2aa3f4dd9a064fa8c | 731c146145000f8d19eb7d2efe0a2745b02a0d38 | /4-1ReadingFiles/writeList.py | 8a25cca1c385cac989296c70a8ac5f870f9836bc | [] | no_license | RamonAguilar-lpsr/class-samples | 2d65e2aa8509a4dc15470961ed0d95a17c63ffa4 | 4bd840b20f69728564507dc11d32e897eb154888 | refs/heads/master | 2021-01-18T21:46:09.685403 | 2016-06-13T04:23:59 | 2016-06-13T04:23:59 | 48,007,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | # open a file for writing
# second argument:
# r is for reading
# r+ is for reading/writing (existing file)
# w is for writing (be careful! starts writing from the beginning)
# a is append - writing *from the end*
myFile = open("numlist.txt", "w")
# create a list to write to my file
nums = range(1,501)
# write each ite... | [
"rc.aguilar.ramon@leadps.org"
] | rc.aguilar.ramon@leadps.org |
74d2611f4c0cf3cd8a8fdd3b7424f91a8b200cea | 76defd231e7c51e1ecb47d09be9a724e49c0535c | /ProxyPool-crawler/verify_process/verify_ip.py | d20366049d81b1883380394ab4b41fbe53cfa568 | [] | no_license | xxpasswd/python-core-programming | ae31a1c700633e5918aa6a046f9a6346dbf261c6 | 18c93607e2dd8958494d830daeb535a3dd4bc763 | refs/heads/master | 2022-11-30T18:05:01.324839 | 2019-07-16T10:37:14 | 2019-07-16T10:37:14 | 105,234,521 | 0 | 0 | null | 2022-11-22T02:20:55 | 2017-09-29T05:46:13 | Python | UTF-8 | Python | false | false | 1,257 | py | # coding: utf-8
"""
验证ip的有效性,并进行处理
"""
from threading import Thread
import requests
class VerifyIp(Thread):
def __init__(self, ip_list, res):
super(VerifyIp, self).__init__()
self.ip_list = ip_list
self.res = res
def run(self):
while self.ip_list:
self._process_ip... | [
"1490621113@qq.com"
] | 1490621113@qq.com |
9d1bacf2d285d03c6b0e9833f8312e466f55d99b | ab1dc918276518680e870b5f4e83001f9cb08746 | /weixin/page/app.py | dbcfc5bc268c0e10b0d0d399959b05457c5dbebb | [] | no_license | songdd1/python_appium | 4519afbd36bdeed41be9385c595993b468efb704 | f015e9e00889acb9dd00f668ce7ea09cd7664f2c | refs/heads/master | 2022-12-30T11:48:24.172385 | 2020-10-24T03:34:06 | 2020-10-24T03:34:06 | 285,580,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,319 | py | #from appium import webdriver
from appium import webdriver
from weixin.page.base_page import BasePage
from weixin.page.main_page import MainPage
class App(BasePage):
'''
app启动页面
'''
def start(self):
if self.driver == None:
des_apb = {}
des_apb['platformName'] = 'andro... | [
"songdongdong@192.168.0.107"
] | songdongdong@192.168.0.107 |
904f4833bc8ad4f64f1746e01505095165df0314 | 67f503cfa03e1297aedf7065896a27e386188338 | /python_sol/problem_set2/2_8.py | 729917a2fdac6a058900683798dbc9d35ef082e1 | [] | no_license | Reshma-Elizabeth/Python | 5bcb39b8a3ae5a574cb1bd12a03cf6da80313910 | 0389a274ac5707506e87ab11d292f9e9fa12f354 | refs/heads/master | 2021-08-23T07:27:54.153647 | 2017-12-04T04:29:41 | 2017-12-04T04:29:41 | 112,994,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | '''
Name:Reshma
Description:prob set 2
Question no:8
'''
import math
try:
def eval_loop(s):
last=0
e=eval('%s' % s)
last=last + e
print e
a=raw_input("do u want to evaluate or else type done?")
if(a=='done'):
print "the value of the last expression evaluated "+str(last)
... | [
"noreply@github.com"
] | noreply@github.com |
15d5bdafb51af6fcdfeac9a579b565c163f0b1ed | ba8dd9635e4a14c4573cb7250129a5d3d73f0633 | /flask_backend/app/extensions.py | 23e31098803186cde51203a85217f75f3a3d8c02 | [] | no_license | thomascmurphy/draft | e9d77534d993f4d0b8ef3f98b9a47dc1ddae6bc7 | 820c510a66f008ae0d5b1e84b1a4db07e39cbb0e | refs/heads/master | 2021-01-20T06:58:10.470857 | 2018-04-28T19:06:34 | 2018-04-28T19:06:34 | 101,522,324 | 0 | 0 | null | 2017-08-31T14:56:29 | 2017-08-27T01:11:55 | Python | UTF-8 | Python | false | false | 214 | py | from .models import Card, Deck, PackCard, Pack, Player, Pod, Set
card_class = Card()
deck_class = Deck()
pack_card_class = PackCard()
pack_class = Pack()
player_class = Player()
pod_class = Pod()
set_class = Set()
| [
"tmurphy@alteryx.com"
] | tmurphy@alteryx.com |
cf3fde1e92f30234f03259580d338b0fc8a49ef0 | 94a4388cee6dfeaa1674fba20423e8a3f8f6dd42 | /backend/game_mdoe_18873/urls.py | d4b0c3f0622dafe5bd8ba458e4c2793e11cd2878 | [] | no_license | crowdbotics-apps/game-mdoe-18873 | 0dc5c1e1827f382d5a84847697d0b1b05191066d | 8bcbe6c9b116fa1294b8104018c9cd36b1536c13 | refs/heads/master | 2022-11-15T17:29:36.126851 | 2020-07-13T22:23:28 | 2020-07-13T22:23:28 | 279,423,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,058 | py | """game_mdoe_18873 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.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')
Cla... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.