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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
19be8b6c4c007ebf196a7104c0cdbb961d2390cb | eb52196014aee900e199bcc702a7167e76b2ac39 | /templates/cdk.master.auth-webhook.py | 0b31e7f8b203b8a9526497a97423a4068146d347 | [
"Apache-2.0"
] | permissive | brettmilford/charm-kubernetes-master | 8d275ea7b9896d4042a7653f79e950fd04730ebe | 36db4e9e26deff4575e15e1a86ec9427dfd0c089 | refs/heads/master | 2023-04-25T12:21:15.899664 | 2020-09-04T15:07:33 | 2020-09-04T15:07:33 | 295,054,632 | 0 | 0 | NOASSERTION | 2020-09-13T01:13:48 | 2020-09-13T01:13:47 | null | UTF-8 | Python | false | false | 10,072 | py | #!/usr/bin/env python3
import csv
import json
import logging
import requests
from base64 import b64decode
from copy import deepcopy
from flask import Flask, request, jsonify
from pathlib import Path
from subprocess import check_call, check_output, CalledProcessError, TimeoutExpired
from yaml import safe_load
app = Fla... | [
"noreply@github.com"
] | noreply@github.com |
b30c29490b3bfcd912aa6b26c917ef42fb7e4f57 | a5cbc22c96e87ba39c6786838091da90e46240d2 | /hello_django/urls.py | f05a3e234cae5a25f59be32a9ad4c7b244c0930d | [] | no_license | s9891326/django-tutorial-for-programmers | 85d68d0dff46accfc2229fb7108d46fcd4aae1dc | 690b59b5aa62bfd74e9c48e1b34b1502c97ee367 | refs/heads/main | 2023-06-27T21:29:06.729885 | 2021-07-16T14:31:21 | 2021-07-16T14:31:21 | 384,690,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,188 | py | """hello_django 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-... | [
"eddy15201@gmail.com"
] | eddy15201@gmail.com |
afdcdfa82047f3ed6fc8839f8f8735e96c7b5cd2 | 800ec411fe296212564d291c1cd888c1ab6d20d3 | /while loop/whi1.py | 78cfca754bbdefe2c2565a2d2cb1a4835b088e59 | [] | no_license | Ruchitghadiya9558/python-program | 510135210aea4de94ecd10c0971223dae30596a0 | ae1bcf19a3b3cc175e2b63e4c5f49a8adedc6aea | refs/heads/master | 2023-06-27T23:42:52.157240 | 2021-07-27T10:55:51 | 2021-07-27T10:55:51 | 389,961,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | #123 = 3+2+1=6 sum
x=int(input("enter the number:"))
box=0
while x>0:
rem=x % 10 #last digit
box=box+rem #store
x = int (x / 10) #remove last digit
print("sum=",box)
| [
"ruchitghadiya99@gmail.com"
] | ruchitghadiya99@gmail.com |
572dc0d997ba40c9ecea8b58cecbb724f5f841f2 | 6f2edaca3830ea275a3d4a9d79d086bb648d5fad | /rotations.py | c07c74191beca8d5d5f908c41d0bc379444f4ee8 | [] | no_license | MosheMikhael/work-speeding | 97aa00ce84acb67b5bbfc3fc1f445c7000bf529f | 2f21970e5ca1e82658bef01db0557347f4ba036b | refs/heads/master | 2020-04-10T21:54:25.486403 | 2018-12-11T12:14:17 | 2018-12-11T12:14:17 | 161,309,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,793 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Sep 5 14:55:13 2018
@author: moshe.f
"""
import cv2
import draw
import numpy as np
import test_courners_finder as cf
import base_classes as bc
import sys
import time
import collections
import MAIN as mn
import os
import point_at_infinity as pai
import service_functions as s... | [
"MosheMikhael@users.noreply.github.com"
] | MosheMikhael@users.noreply.github.com |
68610b598eed9b0e1b5dc771fb16b5f3735fb967 | 86e61e476faed7c303da06e99b2ab0f2213ae267 | /python/remove_outermost_parentheses.py | 21a81f75af7db754ca3b486415a2ba7cd55538fe | [] | no_license | JBielan/leetcode-py-js | 7e5777e0850788d3218e4a56e8be23dc484c1079 | 35a0f74fa843cc12c3c74c100a17df383963c6af | refs/heads/master | 2020-05-03T09:12:24.205578 | 2020-01-31T12:29:49 | 2020-01-31T12:29:49 | 178,548,166 | 51 | 5 | null | null | null | null | UTF-8 | Python | false | false | 1,005 | py | class Solution:
def removeOuterParentheses(self, S: str) -> str:
parts = []
left_n = 0
right_n = 0
# [j+1:i] will be slice getting parts without beginning and end
j = 0
for i in range(len(S)):
if S[i] == "(":
left_n += 1 # add 1 when lef... | [
"jkbielan@gmail.com"
] | jkbielan@gmail.com |
d07b9ec027e3387ad373a6fcb4dc243fa3964750 | 3f763cf893b09a3be562858613c928703ff349e4 | /client/verta/verta/_swagger/_public/modeldb/metadata/model/MetadataGetLabelsRequestResponse.py | 18ffa3ba5b5186c19c9a7ab2962468b46c703524 | [
"Apache-2.0"
] | permissive | VertaAI/modeldb | 636e46fc025b01a514d599b10e228c8735503357 | ec9ac7712500adb13fd815dfd476ce9f536c6921 | refs/heads/main | 2023-08-31T00:45:37.220628 | 2023-08-30T18:45:13 | 2023-08-30T18:45:13 | 71,305,435 | 844 | 142 | Apache-2.0 | 2023-09-14T19:24:13 | 2016-10-19T01:07:26 | Java | UTF-8 | Python | false | false | 566 | py | # THIS FILE IS AUTO-GENERATED. DO NOT EDIT
from verta._swagger.base_type import BaseType
class MetadataGetLabelsRequestResponse(BaseType):
def __init__(self, labels=None):
required = {
"labels": False,
}
self.labels = labels
for k, v in required.items():
if self[k] is None and v:
... | [
"noreply@github.com"
] | noreply@github.com |
7c79dc9fc7a73da8dbaa46e617aa02e1400a73a7 | ae8f61a8c0c4a569f00529c3f07c73dbfc884f71 | /tiled/server/models.py | f46b8b543646104f2e61cef8595a3bcd5815ac21 | [
"BSD-3-Clause"
] | permissive | untzag/tiled | 1ba705303193312711d8ac75b977a26d6d9e7571 | 43a8ba82660ce3be077f2b6b060bdd2a23cf956b | refs/heads/main | 2023-04-18T18:34:13.545139 | 2021-04-28T21:27:59 | 2021-04-28T21:27:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,385 | py | import enum
import pydantic
import pydantic.dataclasses
import pydantic.generics
from typing import Any, Dict, Generic, List, Optional, TypeVar
DataT = TypeVar("DataT")
class Error(pydantic.BaseModel):
code: int
message: str
class Response(pydantic.generics.GenericModel, Generic[DataT]):
data: Optiona... | [
"dallan@bnl.gov"
] | dallan@bnl.gov |
a704a370c9e363c594417fa98996bfedf489aabf | 3a8eda7c96a54da41cf9f00eec97a63b57f033d0 | /utils/__init__.py | 565d9ec421112f11ceabc5628af9092003d9ba34 | [] | no_license | mehta-smit/imdb-movie | db588ec893d27bf5112b9307a97b5b392db9f47d | 19b923d46ea42e2134d424a2dab65c25fd43ff68 | refs/heads/master | 2023-03-20T13:13:49.741029 | 2021-03-10T06:19:50 | 2021-03-10T06:19:50 | 346,146,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 90 | py | from .resource_exception import handle_exceptions
from .identity import authorize_request
| [
"smit@sensibol.com"
] | smit@sensibol.com |
30211b7b149f673918fc4dcc89a44378fc7d9bf2 | 44eb227f1654c2dcc1114815deb3c59d03045172 | /bubble_sort.py | 4f295f0eca2d39d30db2ab74a73514a393b88289 | [] | no_license | sanidhyamangal/daa_practicals | 38117d0980dc364b055e90eee9209ad11d1f4a49 | aaa32c4b5685d632cdef1b7fa91d26d908601016 | refs/heads/master | 2020-03-28T12:30:20.803201 | 2018-10-23T10:53:05 | 2018-10-23T10:53:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | array = [4,5,3,1,2,6]
print("Intermediate steps of array sorting")
for i in range(len(array)):
for j in range(i+1,len(array)):
if(array[j] < array[i]):
array[i], array[j] = array[j], array[i]
print("Pass {} sorted array {} ".format(i,array))
print("Array after completely sorting")
prin... | [
"sandyrockstar19@gmail.com"
] | sandyrockstar19@gmail.com |
59adab0821f1430ea959b75d348899e4ba223c78 | 182d7636f01f49f4919f6e0694f37eda2d0b2d2e | /mysite/sdp/admin.py | a0c93e13a4081ef43001f004ccba410341d66087 | [] | no_license | stand-staples/site1 | 55c38f46934826fd2cc8707693af12025c6b1d92 | f27aaecc91bf6f5c8ddca076d9673d0ca21b3aa0 | refs/heads/master | 2021-01-10T03:26:09.211145 | 2016-01-09T22:47:51 | 2016-01-09T22:47:51 | 49,232,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | # from django.contrib import admin
# # Register your models here.
# from .models import User, Post, Photo
# # class PatientAdmin(admin.ModelAdmin):
# # list_display = ['patient_name','phone_number','default_price','comments']
# # class Meta:
# # model = Patient
# # class TreatmentAdmin(admin.ModelAdmin):
# # ... | [
"liad.email@gmail.com"
] | liad.email@gmail.com |
61c8d435101d292a60169d7b7e60c7fbe348a7c7 | bc67442cced76953de9e82fafadff6e677de23a3 | /src/config.py | 2281bf3a62304a973598cdc5c94c6c6704978ce0 | [] | no_license | nirhaike/MobileVPN | a4fe31bb0eea3f0d7dbcb96b8d66bbc8bf56e9d6 | 0f359557440798fb603aa99fcd45e45853fcb036 | refs/heads/master | 2021-01-20T03:21:15.120046 | 2017-07-11T16:10:10 | 2017-07-11T16:10:10 | 89,524,565 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 19,871 | py | ###################################################################
#
# Python Network Tunnel
# Configuration Handler
#
# Author: Nir Haike
#
###################################################################
import traceback
import random
import hashlib
import urllib
import ... | [
"niruser12@gmail.com"
] | niruser12@gmail.com |
6f25a2b4ee719c4b762cd152d6d9568f65dab427 | 038bc1231f8e1ff7acf08157f7ff7353c09ee4dc | /esm_utils_2/src/esm_utils_2/hello.py | 8c6b452f64a7d91ae02315f024a1f30e4f9e2314 | [] | no_license | HALtheWise/comprobo17 | 5a37f5f469eea8367575792d08135af9e0c921d4 | 1c15182097cfaef4fce377d2a49bedae141009b0 | refs/heads/master | 2021-01-11T18:44:54.238419 | 2017-02-24T06:36:18 | 2017-02-24T06:36:18 | 79,616,125 | 0 | 0 | null | 2017-01-21T01:46:18 | 2017-01-21T01:46:18 | null | UTF-8 | Python | false | false | 52 | py | def say():
print "Hello, welcome to the world!"
| [
"eric@legoaces.org"
] | eric@legoaces.org |
4ff57b467cb10b6a8d1edeee63807f9315312bd6 | 530da049b21b9463aed77df066d619214116e7db | /orders/models.py | 02d33ef0e447ee29d73b50158202ee9a5178a125 | [] | no_license | IliaYusov/DJ-15-Thesis | ba5f7c85c1e5ed184f08456287f220fe6943ac34 | fd2fe10aadba5e0643b9125c5235c6a76e75a545 | refs/heads/master | 2023-03-31T12:41:27.659378 | 2021-03-31T22:00:38 | 2021-03-31T22:00:38 | 350,161,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,051 | py | from django.conf import settings
from django.db import models
from products.models import Product
class OrderStatusChoices(models.TextChoices):
"""Статусы заказов."""
NEW = "NEW", "Новый"
IN_PROGRESS = "IN_PROGRESS", "В работе"
DONE = "DONE", "Закрыт"
class OrderPositions(models.Model):
"""Проме... | [
"ouster2k@gmail.com"
] | ouster2k@gmail.com |
51cbf596ebc778a532ab71e8d4bc5c3334d54fc2 | 6fe477a55bd565c78b55e5ec79ae704186e2c1fc | /chatgui.py | aceede2560445b3cbe0b67e7c8c2db77c079ae00 | [] | no_license | jayz6/chatboty | 4f7ef8ea0105394230b076261f0f5a4828abfcde | e419faac730c9644269b6093e35bc375e2f723b8 | refs/heads/master | 2023-06-15T14:45:36.542008 | 2021-07-11T12:27:29 | 2021-07-11T12:27:29 | 374,563,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,646 | py | import nltk
from nltk.stem import WordNetLemmatizer
lemmatizer = WordNetLemmatizer()
import pickle
import numpy as np
from keras.models import load_model
model = load_model('chatbot_model.h5')
import json
import random
intents = json.loads(open('intents.json').read())
words = pickle.load(open('words.pkl','rb'))
classe... | [
"you@example.com"
] | you@example.com |
73a8566ca9337540913110bc5745344ad9c88dd8 | aa9d182056c88fae59d906e92c0e35219b33aea0 | /manage.py | 70d87c01d51e587a1f9a8770b4645082920447f6 | [] | no_license | iraynovskyy/website | 1c765b05f33d64c1c980a36e5327b4a96820847e | ba65422cbaaad550c46cce61b06575c17d27ed01 | refs/heads/master | 2023-08-19T03:48:03.172476 | 2020-07-05T13:29:41 | 2020-07-05T13:29:41 | 275,931,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 545 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "DjangoYoutube.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django... | [
"ihor.raynovskyy@gmail.com"
] | ihor.raynovskyy@gmail.com |
8f58f47389b583a8842fcbed357e85a26805ec3a | 8435a07013121fa649d1bf22469529a155120db7 | /src/pulsebox/codeblocks.py | 715da2962543258c290b7bce933eb02a964a9150 | [
"MIT"
] | permissive | rhosak/pulsebox | f62fd5d6b93377b92ca793752c2d563b229c15db | f2ce859ac5cd968bcd85a1e0eedf320414602a40 | refs/heads/master | 2021-12-09T16:14:46.841706 | 2021-08-25T11:35:33 | 2021-08-25T11:35:33 | 120,015,239 | 3 | 0 | MIT | 2021-07-21T13:43:20 | 2018-02-02T18:15:56 | Python | UTF-8 | Python | false | false | 7,284 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""codeblocks.py
Contains code blocks for the Arduino Due pulsebox.
Radim Hošák <hosak(at)optics.upol.cz>
2021 Quantum Optics Lab Olomouc
"""
from . import config
from functools import reduce
from pulsebox.config import pulsebox_pins, pulsebox_pincount
def header(msg... | [
"hosak@optics.upol.cz"
] | hosak@optics.upol.cz |
f26ae1a2d7caf2b6a4728ba049c57c968ff21f74 | 3489d87be92b43d98a079f3a5a073d74caeead6c | /NewQuant/Handler/Analysis.py | 9d5672814ac941bac830e4f7898f503839ddbe25 | [] | no_license | hotquant/NewQuant | 3fde0d6976a85ddb7453572b73fa81881e8e5402 | b64780eda5f4f3a591caad77d39084694dcefb1d | refs/heads/master | 2020-06-23T23:46:49.447827 | 2019-07-25T08:11:42 | 2019-07-25T08:11:42 | 198,787,007 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | # -*- coding: utf-8 -*-
import numpy
import pandas as pd
class Analysis(object):
def __init__(self,bars):
self._bars=bars
| [
"noreply@github.com"
] | noreply@github.com |
808c4ec297fe02c4849e4ad2d8562f28cd8a4e8c | 55a9b1b294d5a402c63848f9f7386e3bf93645da | /docker/src/clawpack-5.3.1/visclaw/src/python/visclaw/data.py | 83a00cc67a98eecde9d7e4e3d64ae7a12ff2a277 | [
"LicenseRef-scancode-public-domain",
"CC-BY-4.0",
"MIT"
] | permissive | geohackweek/visualization | b606cfade5d31f59cc38602df05930aed6e19b17 | 5d29fa5b69d69ee5c18ffaef2d902bd51f5807c8 | refs/heads/gh-pages | 2021-01-21T13:34:44.622039 | 2019-09-06T23:28:08 | 2019-09-06T23:28:08 | 68,648,198 | 11 | 13 | NOASSERTION | 2019-09-06T23:28:09 | 2016-09-19T21:27:33 | Jupyter Notebook | UTF-8 | Python | false | false | 39,350 | py | """
Plotting Data Module
Contains the general class definition and the subclasses of the Clawpack
data objects specific to plotting.
"""
import os
import copy
import numpy as np
import re
import logging
import clawpack.clawutil.data as clawdata
import gaugetools
import time
import clawpack.pyclaw.controller
# ======... | [
"arendta@uw.edu"
] | arendta@uw.edu |
35158da1826aabad91db3133dc976b5eb93761e9 | 170302829705dccdec8ca9602c437e249f5b657a | /app/flask/logic/horarios.py | 1b138784436315a470bfec1828ae5437ca1b8af6 | [
"MIT"
] | permissive | s3np41k1r1t0/GeradorHorarios2.0 | a163cdf00f01aa0e360f80818fc1c5cbc432836a | 400436146edb2d34b276a700f078115a0b717f7b | refs/heads/master | 2023-03-02T01:54:23.971043 | 2021-02-07T16:35:21 | 2021-02-07T16:35:21 | 293,865,683 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 882 | py | import sys
import urllib
from logic.tt_parser import *
from logic.tt_generator import *
from logic.tt_prettyprinter import *
from logic.tt_errorprinter import *
def is_url(arg):
return arg[0:4] == "http"
def generate(argv):
lesson_blocks = []
for arg in argv:
if is_url(arg):
current_c... | [
"brunomendes2001@gmail.com"
] | brunomendes2001@gmail.com |
8e2003ef611967b96014df8887640a61c064a3c5 | 00150e25ae86468e8d1daad50c4acc53f87eb769 | /clize/tests/__init__.py | 36782fa62a7699f0a76678f54e98616e8cfd4b7a | [
"MIT"
] | permissive | scholer/clize | b564a3f95fc950e414cc266216412752112d1d21 | bc15fc510fa6fb1cc27b1d27ea1b5653e61d2fff | refs/heads/master | 2020-04-08T07:30:55.231228 | 2018-11-26T09:19:03 | 2018-11-26T09:19:03 | 159,141,080 | 0 | 0 | NOASSERTION | 2018-11-26T09:10:27 | 2018-11-26T09:10:27 | null | UTF-8 | Python | false | false | 151 | py | # clize -- A command-line argument parser for Python
# Copyright (C) 2011-2016 by Yann Kaiser and contributors. See AUTHORS and
# COPYING for details.
| [
"kaiser.yann@gmail.com"
] | kaiser.yann@gmail.com |
1a10088829b8cfe23a43fced6370425b3394cc17 | 9cecf4879a2d20bd1c74dbd245325e034170a83b | /Array/practice.py | ba48bfe2d5ea69b256830b776b571b0772922cea | [] | no_license | rani-solanki/DSA_hyperverge | f3619545c5cc93c9ad1715482b15534983cb3b7f | f17e688c33a3e341cf6365706ab8de0dfa1db5eb | refs/heads/master | 2023-05-03T01:40:01.157075 | 2021-05-09T07:56:48 | 2021-05-09T07:56:48 | 349,314,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | def removeDuplicates(list):
# list = list.sort()
i = 0
deplicat = []
for i in range(len(list)):
if (list[i] not in deplicat):
deplicat.append(list[i])
return deplicat
list = [2,3,4,2,3,7,8,9]
print(removeDuplicates(list))
| [
"rani19@navgurukul.org"
] | rani19@navgurukul.org |
c6510e3e56a558052400dcf459b0d818a68199c4 | 61cf43fb0def489469023e55fab05e0d3c96668d | /tutoringapp/match/forms.py | 981f084b4a31bc4ffcad6ae6f08cebb30a32519d | [] | no_license | akhaku/lcstutoring | fd23a56f95cbab446fadc454deb20c095dbe5525 | 925eb6f89cc69733d05a14d05654ad9725b7eea7 | refs/heads/master | 2018-12-28T05:27:22.139803 | 2013-01-17T05:57:40 | 2013-01-17T05:57:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | from django.forms import ValidationError
from match.models import Match
from tmsutil.forms import TmsModelForm
from tmsutil.constants import DAY_CHOICES
from tmsutil.timewidget import SelectTimeWidget
class MatchForm(TmsModelForm):
_day_choices = [val[0] for val in DAY_CHOICES]
class Meta:
model =... | [
"ammar.khaku@gmail.com"
] | ammar.khaku@gmail.com |
e645f20f99c24c87060c5a4a3a6fa4f34e131fc5 | dd2e35cdf181ba6c9919738e1812f39393aaf828 | /build/rosserial/rosserial_mbed/catkin_generated/pkg.develspace.context.pc.py | d6319803d3d79b669567fd524033aa47e9c4bf83 | [] | no_license | ramakumarks/PIR_CSE598 | a75b77789eb1e824dc0f1491af93df6b84f06ff0 | 4d852746961b45ad20631cacae57bb0b98cd7e55 | refs/heads/master | 2020-03-16T13:03:03.950551 | 2018-05-09T01:24:56 | 2018-05-09T01:24:56 | 132,680,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/ramakuma/catkin_ws/devel/include".split(';') if "/home/ramakuma/catkin_ws/devel/include" != "" else []
PROJECT_CATKIN_DEPENDS = "message_runtime".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFI... | [
"ramakuma@asu.edu"
] | ramakuma@asu.edu |
e190c96d22210b65697f37fbe7e167c7812f4e25 | 8c4f170185f626eba12ef56c41660ca597d454f9 | /Pro5/ChatSession.py | 875f906e63fd07589ae7a79d2613e9f7290e67d1 | [] | no_license | wangxing0608/PythonBasic | e7c50767c51ac804ab4b61d2be14655b56ea91cb | 9421c4e311cc7cf260984994e5108b9fdb043b06 | refs/heads/master | 2021-07-12T14:02:38.037722 | 2017-10-13T03:56:23 | 2017-10-13T03:56:23 | 106,375,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,029 | py | # _*_ coding: utf-8 _*_
from asyncore import dispatcher
from asynchat import async_chat
import socket
import asyncore
PORT = 5005
class ChatSession(async_chat):
def __init__(self, sock):
async_chat.__init__(self, sock)
self.set_terminator("\r\n")
self.data = []
def collect_incoming... | [
"wangxing0608@gmail.com"
] | wangxing0608@gmail.com |
e99dd85e1f058f54beede6d60e8a291aa7cccccd | e38f7b5d46fd8a65c15e49488fc075e5c62943c9 | /pychron/processing/vcs_data/vcs_manager.py | 56048e37f366b487a7135bf49ed42f78aeb4bc64 | [] | no_license | INGPAN/pychron | 3e13f9d15667e62c347f5b40af366096ee41c051 | 8592f9fc722f037a61b0b783d587633e22f11f2f | refs/heads/master | 2021-08-15T00:50:21.392117 | 2015-01-19T20:07:41 | 2015-01-19T20:07:41 | 111,054,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,622 | py | # #===============================================================================
# # Copyright 2013 Jake Ross
# #
# # 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.ap... | [
"jirhiker@gmail.com"
] | jirhiker@gmail.com |
68f126765106459abddb4cc4738f1811fa5205fa | e431c96b98da9d61592cfbf394d1dd2ca97088b9 | /m3/tests/test_move_to_location2.py | 01ff5e7fcab431d4264b3ce5247ff8d2558e6558 | [] | no_license | rachel619/paths-to-cs-public | 7059af66e776bf59994329c249299e03274fe23a | 87731a21840ebc060379caafee18326e78482443 | refs/heads/master | 2021-01-18T06:48:47.331035 | 2016-03-14T23:15:57 | 2016-03-14T23:15:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,569 | py | import unittest, pprint
import StringIO
import sys
from random import randrange
from util import *
from test_assets import *
from hw3.simulator import *
class TestMoveToLocation(unittest.TestCase):
def setUp(self):
####Intercept Standard Output.
#### This way students can use print and not be conf... | [
"bederson@gmail.com"
] | bederson@gmail.com |
408df962b97cfeeb22d6bd8877223f600cbcaf2e | 3ee982b28adec7154777a9962dacae5c17fbebe0 | /data3/hadoop-2/PageRank1/PageRank.py | 86f0a067ab8c03d973c7f59125f0f7d6d44aa98d | [] | no_license | nycdatasci/aetna | 406a5194b0ffff6b78c2ce1d34c2b090c3d82840 | 095c476210ebe4fef0a702a6a0a56981fe91c8ff | refs/heads/master | 2020-04-24T05:40:48.464871 | 2019-03-15T15:06:42 | 2019-03-15T15:06:42 | 171,737,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 875 | py | #!/usr/bin/env python
import os
from sys import argv
script, input_file, iters = argv
iters = int(iters)
streaming = '''hadoop jar $HADOOP_HOME/share/hadoop/tools/lib/hadoop-streaming-*.jar \
-files PageRankMap.py,PageRankReduce.py \
-input %s \
-output PageRankOutput \
-mapper PageRankMap.py \
-reducer PageRankReduc... | [
"yanshu.usc@gmail.com"
] | yanshu.usc@gmail.com |
cb6ba944a67dfe03aa6c87c723c706223cde0989 | a981eab3c637d5a50b3804a385dade5937ccfada | /tests/abs/test_kagami_mochi.py | c825779e3e23866d8545d343d9a98516c429bcd6 | [
"MIT"
] | permissive | powerpenguincat/practice-atcoder | 05620aac46bcab1d9762bf9e84bcb5e1602b507b | 6c656d0ebe3fc12d7df50112af2ef5c946bbaf46 | refs/heads/main | 2023-07-12T02:37:34.557457 | 2021-08-14T13:37:02 | 2021-08-14T13:37:02 | 383,154,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | import pytest
from practice_atcoder.abs.kagami_mochi import question
class Test(object):
@pytest.mark.parametrize("n,dn,expect", [
("4", ["10", "8", "8", "6"], "3"),
("3", ["15", "15", "15"], "1"),
("7", ["50", "30", "50", "100", "50", "80", "30"], "4"),
])
def test(self, n, dn, e... | [
"ppc.develop@gmail.com"
] | ppc.develop@gmail.com |
7d1953fb1da45033d63049d7b07cc49f0cbb273e | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/e93cdecef17fe3027247389bba5934607c63372e-<run>-fix.py | 358973030efe43d7b9bb143ecbcf224ff7f0da99 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,366 | py | def run(self, tmp=None, task_vars=None):
if (self._play_context.connection != 'local'):
return dict(failed=True, msg=('invalid connection specified, expected connection=local, got %s' % self._play_context.connection))
module = module_loader._load_module_source(self._task.action, module_loader.find_plugi... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
ce556dfa2eda7bbc8c2c6a3250a2d755c8055a6d | a522db3d0b8bbfbf1daa24869a73aaadd0eee2df | /ComputeRelatedArticles.py | 59260dc86517c4e410c3e36f1ec1603674e69d24 | [] | no_license | theconceptualist/Algorithms | c8af8338f0dc127356bc35515de90804f064ec62 | a5857187850119d66f371e5ca40b21be548e396b | refs/heads/master | 2022-11-09T00:08:36.746281 | 2020-06-23T18:21:37 | 2020-06-23T18:21:37 | 274,477,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,162 | py | @task(name="update_related_articles_async")
def update_related_articles_async():
#Collect list of article texts
articles = Article.objects.filter(published=True)
texts = []
for article in articles:
texts.append(article.content.replace("~~~", ""))
#Attain similarity matrix
tfidf = Tfid... | [
"noreply@github.com"
] | noreply@github.com |
c936f1c418ea6c456cf0dd6c2b5cec291e39acf2 | 905f40a4ad8e17bb4871cf87b6ee184a76a77c2a | /BCM/management/commands/remove_templates.py | bd73841db58291945cf21bda90d4758966cf6519 | [] | no_license | sai9912/mypyton | 5e1f7ca278051d5f588af1d9accae5fd1780020b | 338fd6396dbdce971bc542718fbb9608bdcfc2a7 | refs/heads/master | 2022-12-16T05:04:34.590818 | 2019-04-18T09:18:06 | 2019-04-18T09:18:06 | 176,324,427 | 0 | 0 | null | 2022-12-08T02:31:10 | 2019-03-18T16:16:56 | Python | UTF-8 | Python | false | false | 1,975 | py | from django.core.management import BaseCommand
from member_organisations.models import MemberOrganisation, ProductTemplate, ProductAttribute, ProductPackaging
IMPORT_DEBUG = True
class Command(BaseCommand):
"""
python manage.py remove_templates
"""
def add_arguments(self, parser):
parser.ad... | [
"root@ip-172-31-29-10.ap-south-1.compute.internal"
] | root@ip-172-31-29-10.ap-south-1.compute.internal |
ee8c77dba273a0e9a1c6420678e56bcf3d22ec53 | 1c859d75ef777168d111f6dc7e5aa51d89d3028f | /chat/chat/settings.py | 93c20778383bf2f1dd96ee766ec9b2ca502da9ef | [] | no_license | Alex-proktor/Chat | ae8e34c2cccc2a687742e784f79413b96bbe3c4b | f561cfa308fdded6cdadf77316be905bd7b94495 | refs/heads/master | 2021-04-27T19:41:43.692910 | 2018-03-03T15:42:42 | 2018-03-03T15:42:42 | 122,362,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,192 | py | """
Django settings for chat project.
Generated by 'django-admin startproject' using Django 2.0.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
# Bu... | [
"a.ivanov@dunice.net"
] | a.ivanov@dunice.net |
cf07e66321d5838f6f31df3ab2a4da9ebab42371 | 29119e6261e32045f7d26e20ac7c8e9ec5812c3a | /v4_softmax/v7_softmax_mobilenetv2.py | d60826293113e1bc288a556ce727a965f5043e35 | [] | no_license | dkluffy/UGB | dc559b4717f52179ee15ddcbe679c777137c8298 | ac9b8bfe2580198a02f1ccb4e32c2662b95a8f8b | refs/heads/master | 2020-12-09T05:27:06.388991 | 2020-02-21T13:43:13 | 2020-02-21T13:43:13 | 233,205,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,910 | py | # -*- coding: utf-8 -*-
"""v7_softmax_mobilenetv2.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1NqVkxJMu5pgsMvwHck0Zi8tDFhtZgPX4
"""
# Commented out IPython magic to ensure Python compatibility.
# %tensorflow_version 2.x
import os
import ten... | [
"dkluffy@gmail.com"
] | dkluffy@gmail.com |
a0bb2dd4a72b7f004884bdda564b3762452634f9 | c2d681e9a4c7b1be07e9d581ad3ac00a5c783604 | /classes.py | f9cca27f147dc0814ed33409926ddb4d9e4d635e | [] | no_license | DennisMufasa/PythoneCode | 6291ddf2d08a8361fe82e81bc5747eb0123848f6 | d9b74205de0c60fec2c088e1b6c2b0b7a91c1273 | refs/heads/master | 2021-04-05T23:45:50.256668 | 2019-04-07T16:17:20 | 2019-04-07T16:17:20 | 124,888,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | class Mufasa:
def __init__(self,name,age,profession,health):
self.name=name
self.age=age
self.profession=profession
self.health=health
def career(self):
if self.profession=='Developer':
print(self.name,' is a developer.')
else:
print(self... | [
"denny.muasa@gmail.com"
] | denny.muasa@gmail.com |
57d40551fc9f4ca9800d2477a1e6e2b553e71ba5 | 6f94c568091f20ed615ea71cf7125950b2078ad4 | /main.py | edbf0e75014e3ab806e2defe66ccd0865f6cf615 | [] | no_license | MayakaHodges/web-caesar | 444a711979244592f262341db20a33cac6254340 | e9b4eede30cc4f2ec328b797d8f4db99dad20b44 | refs/heads/master | 2020-04-01T17:40:25.550168 | 2018-10-19T01:20:54 | 2018-10-19T01:20:54 | 153,443,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,526 | py | #from flask import Flask: this imports the Flask class from the flask module.
#Added request to the import statement to recieve information
from flask import Flask, request
# imports the rotate_string function from the caesar file.
from caesar import rotate_string
#app = Flask(__name__): app will be the object created... | [
"mayakahodges@outlook.com"
] | mayakahodges@outlook.com |
f39d46e44da9f8ac1a4c3bf2cfeb1dcbf4e8ff9e | 70d6f39fd26f9a5085b57462db79c01d8d6fcf6b | /comment/models.py | aef75ffe9c1496789a16701ea8c8de84091dec2d | [] | no_license | Jayd73/Contentify-backend | ae901af0308b95541b1311c5925a14c1c08a1248 | 5136de85e1e6dd0f2005e3a21dd056969dd58d29 | refs/heads/master | 2023-08-16T12:51:20.217686 | 2021-09-16T13:29:55 | 2021-09-16T13:29:55 | 352,626,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 688 | py | from django.db import models
from django.utils import timezone
from channel.models import Channel
from user_post.models import UserPost
from multimedia.models import Video, Audio
class Comment(models.Model):
text = models.TextField(blank=True)
posted_date = models.DateTimeField(default=timezone.now)
likes ... | [
"jayeshdhuri777@gmail.com"
] | jayeshdhuri777@gmail.com |
e0a72376fe9662ef8bfed527e4fcc7e02b763610 | e862f268f97fe9bfb8eeed1501c31294ce1be126 | /RSP.py | b49a3585add4a2bd4567aac534cfcc271fe2699e | [] | no_license | WetternekTeacaZaharia/Poze | 260a6523f976528865b7bdca678623aab04a42f6 | efbe35c8ebbafdf560f327bece956703a0bcb057 | refs/heads/main | 2023-05-01T12:21:13.580083 | 2021-05-20T10:25:21 | 2021-05-20T10:25:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,616 | py | from tkinter import *
#main fereastra
root= Tk()
root.title("Rock Scissors Paper") #titlu fereastra
root.configure(background= "purple")
#pentru poze (instalare pip in terminal)
piatra_img = ImageTk.PhotoImage(Image.open("piatra.png"))
hartie_img = ImageTk.PhotoImage(Image.ope... | [
"noreply@github.com"
] | noreply@github.com |
cbb395b73b0e3a59bdde8ddb2bf1079e1ab00aa6 | bffd3ca3c6539b96b71cda5f13eb7c7ea2fc4564 | /custom_components/shelly/const.py | f19334b4496b63e9eaadcbff9f300d3de4524ccd | [
"MIT"
] | permissive | SeppPenner/ShellyForHASS | d3acdfa1d6e7cbef57da5ed490e4b896b2aa4853 | 5919f24e68c578c6f8f64f5ddd14146454af8a55 | refs/heads/master | 2022-11-06T11:41:44.156857 | 2020-06-04T21:49:00 | 2020-06-04T21:49:00 | 273,237,069 | 1 | 0 | MIT | 2020-06-18T12:51:37 | 2020-06-18T12:51:37 | null | UTF-8 | Python | false | false | 8,556 | py | """
"""
from datetime import timedelta
from homeassistant.const import (
DEVICE_CLASS_HUMIDITY,
DEVICE_CLASS_BATTERY,
DEVICE_CLASS_ILLUMINANCE,
DEVICE_CLASS_TEMPERATURE,
DEVICE_CLASS_POWER,
TEMP_CELSIUS,
POWER_WATT,
ENERGY_WATT_HOUR
)
from homeassistant.components.bina... | [
"hakan@tarra.se"
] | hakan@tarra.se |
5e3e566ccb7fda8c89a16e07961b0763cc37555c | db8b6ee4f1ac2c9dc55101068db9554f253f3233 | /pygest/cmdline/split.py | 473a20a53fa6e9c2259ad1d5c98f18ba7efed397 | [
"MIT"
] | permissive | mfschmidt/PyGEST | 38a6574fa4ddddd1a9126ceed51483326144cba9 | 3d5e9f5f29ad3d51d3786ea8c39ac89ae792db3b | refs/heads/master | 2021-08-19T15:39:53.193739 | 2021-01-23T02:19:34 | 2021-01-23T02:19:34 | 122,769,786 | 0 | 0 | MIT | 2021-01-23T02:19:35 | 2018-02-24T18:55:56 | Python | UTF-8 | Python | false | false | 8,749 | py | import os
import csv
import pandas as pd
import numpy as np
from pygest.convenience import path_to, split_file_name
from pygest.rawdata.glasser import glasser_parcel_map
from pygest.cmdline.command import Command
class Split(Command):
"""The Split class implements the split command within pygest.
:param ar... | [
"mikeschmidt@schmidtgracen.com"
] | mikeschmidt@schmidtgracen.com |
b0bc0536d1a5b6199407ba4478c70b2d59f9b3fb | 9059312c9564b8946464d50e94a61db58a554b3e | /textproc/jwordcombiner.py | ef69176a6f92dfbfe0c93c09c4342c3cc7ea4528 | [] | no_license | xiaolanchong/ichimoku | 8cdcc02322ebf7e26954db90b3bd8eff431d9489 | dbd75935e6284239e5e0dfbc87ef92718640f505 | refs/heads/master | 2021-01-10T01:18:55.017452 | 2016-02-26T20:56:22 | 2019-05-09T09:39:26 | 52,631,507 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from . import combiner
from .intwordinfo import IntermediateWordInfo
class JWordCombiner(combiner.Combiner):
def __init__(self, dictionary, combineRules):
self.combineRules = combineRules
self.dictionary = dictionary
def isDelimi... | [
"heuretic@mail.ru"
] | heuretic@mail.ru |
e772c8886cb376be4c127bf28013a9fc58b59e69 | 2eff2b24d5b6f5dffc42c9cbde6102ec9317502f | /src/Bits.py | 49ff824b30bb9cf591b4e5c06713a9fefbb9b567 | [] | no_license | JakobKallestad/Python-Kattis | 599a14e71a8d5c52aae779b8db3d35f0e4d01e88 | 51656964e79cc861e53f574785aacb213ef10b46 | refs/heads/master | 2022-10-24T23:12:45.599813 | 2021-12-08T12:31:54 | 2021-12-08T12:31:54 | 156,881,692 | 2 | 1 | null | 2022-10-02T12:36:57 | 2018-11-09T15:34:09 | Python | UTF-8 | Python | false | false | 231 | py | n_test_cases = int(input())
for _ in range(n_test_cases):
line = input()
max_bits = 0
for i in range(1, len(line)+1):
num = bin(int(line[:i]))
max_bits = max(max_bits, num.count('1'))
print(max_bits) | [
"Jakob.Kallestad@student.uib.no"
] | Jakob.Kallestad@student.uib.no |
fc4df0ccb699e0a3cf057e77a6bb802d0f98abc8 | cda35d88fed0571f6f0d8e3a69d2d737958f76c6 | /hero/migrations/0001_initial.py | 7d007b52e351d47aa182f0d06bee5531c51c2c12 | [] | no_license | dgaramos/heroapp-api | 61bd0b806235012c17f45dd82c437b3bc1c8a277 | c167ee3c04eb634d788c1a5dce8a160b87778ccf | refs/heads/master | 2020-07-26T11:59:38.030313 | 2019-09-16T02:07:27 | 2019-09-16T02:07:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 728 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.24 on 2019-09-15 16:42
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Hero'... | [
"dgaramos@gmail.com"
] | dgaramos@gmail.com |
366f49da65062ae544ae376cf1e673e77f78b922 | 080529b6dcc745c0dbbb95080a47575e15de5ee5 | /mysite/projectManager/migrations/0061_datalist_variable.py | 4b617f3a3de33ede9bd9a97caccbadfec964f300 | [] | no_license | paryoja/expManager | 2a5a33e2bed710069e08c81d27715f91bee0ebd1 | 162205ba0e2474871cdc92118122a0678bce0f5c | refs/heads/master | 2021-01-11T18:31:04.508688 | 2017-09-01T07:12:36 | 2017-09-01T07:12:36 | 79,559,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 483 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-07-20 01:43
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('projectManager', '0060_auto_20170719_2022'),
]
operations = [
migrations.Ad... | [
"yjpark@kdd.snu.ac.kr"
] | yjpark@kdd.snu.ac.kr |
475dfbfd1951c56f7fcfb2db2e55aa95c697dc56 | b516d013751163c33e377a3c4198aef572795692 | /chart.py | fb42f1029dc0b3a55e9c4c8777e0947e8059f3e6 | [] | no_license | slaxit32/stepID | e0363bf14079ba22774d38e771db13f86c3695f5 | b318b49f233dbe318daf0862230e9d7e03a0ea39 | refs/heads/master | 2021-06-12T13:02:12.415653 | 2017-04-25T16:32:45 | 2017-04-25T16:32:45 | 87,836,733 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 726 | py | import plotly.offline as poff
import plotly.tools as tls
import plotly.graph_objs as go
import pandas as pd
df = pd.read_csv("t1.csv")
x1=df.timeS
y1=df.x
x2=df.timeS
y2=df.y
x3=[300, 400, 500]
y3=[600, 700, 800]
x4=[4000, 5000, 6000]
y4=[7000, 8000, 9000]
fig = tls.make_subplots(rows=2, cols=2,vertical_spacing=0.... | [
"dilushait@gmail.com"
] | dilushait@gmail.com |
333e2d9c71891a92076e4079d53a7535e7c41267 | 9ee1df667d51f929a260272dfdc8a9b3d7af78c4 | /mk_install_lines.py | d727217bc6510da220e37363c1097d18efccb4c4 | [] | no_license | bmlam/OraChgDetectBuild | b3b20a8d1d0f20ef0ac75e50d87e6027998f6310 | 63c61d3f55e14c412e2b5eb4b96c9419c021a8c9 | refs/heads/master | 2021-08-16T20:13:28.006741 | 2021-07-16T09:04:29 | 2021-07-16T09:04:29 | 248,539,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,028 | py | #! /c/Users/bonlam/AppData/Local/Programs/Python/Python37-32/python3
""" Assuming that PLSQP and SLQ scripts are organzized in a specific structure, this script
will generate a master install script per schema based on the files changed in a given branch.
"""
import argparse, inspect, os, re, subprocess, sys, tempfi... | [
"bmlam@sefrowo.com"
] | bmlam@sefrowo.com |
a04ef908392a402d41fe90499306a7c8d326b53a | 9307d42ca27c8f07115197851a4d2355a7492abc | /shared/views.py | ef3b27912011c7aa2b20c022011f458b65b3a524 | [] | no_license | dkutelov/djangoevents | 2a1c05d187a32557d4e5195cbe349efb05611ce4 | 9b6c4c9db366d7e282542cb853123dcca6191f8e | refs/heads/master | 2023-01-29T15:37:47.664373 | 2020-12-13T13:17:58 | 2020-12-13T13:17:58 | 314,523,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 593 | py | from django.core.exceptions import PermissionDenied
class GroupRequiredMixin:
groups = None
def dispatch(self, request, *args, **kwargs):
user = request.user
if not user.is_authenticated:
raise PermissionDenied
groups_set = set(self.groups or [])
raw_groups = use... | [
"dari.k@abv.bg"
] | dari.k@abv.bg |
93299d749c7539168ad6f37ec1888e40fdb909fd | 9af139d51cd33bd5d905fb1ef50516a85909349b | /server/datalab/wsgi.py | a4f10c82003c0cf2f42bec3b54681c2c4168b0f3 | [] | no_license | avh2ag/vamt-data | 6a4c97d7f48adcb85f9d09f1e7ac1a406c54592a | 530558278cc69fbcced51335c62db97f1d735360 | refs/heads/master | 2021-05-16T07:35:17.019813 | 2017-10-29T22:10:24 | 2017-10-29T22:10:24 | 103,783,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
WSGI config for datalab 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.7/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "datalab.settings")
from django.core.w... | [
"alex.harasty@thehumangeo.com"
] | alex.harasty@thehumangeo.com |
87ef8424d3bcafc6c8139c4a2288854763307cef | 9a57549602549023127969069984e4390278e771 | /pastebing/app/pastebing/main/__init__.py | 2a3d8cc6e5efc4d125900a81d6e825aa5cad7dfd | [] | no_license | ns-agency/bing | 959b9621cf5babac2341d0d6bde558a7e5c760de | 2775f8b3c181d54cae415926078ef63a6e5e5ece | refs/heads/master | 2022-12-04T03:01:22.441349 | 2019-04-18T14:46:03 | 2019-04-18T14:46:03 | 182,104,210 | 1 | 1 | null | 2022-12-03T06:23:20 | 2019-04-18T14:36:23 | Python | UTF-8 | Python | false | false | 192 | py | #!/usr/bin/env python3
from flask import Blueprint
bp = Blueprint("main", __name__, template_folder="templates", static_folder="static", static_url_path="/static/main")
from . import views
| [
"zain.afz@gmail.com"
] | zain.afz@gmail.com |
e9cdc4ae77fecdbb0421ffa2a8da67c5833881db | f9a2e67dd2f40b37d8ff81bf6cdce47c38d2dee4 | /.c9/metadata/environment/fb_post_learning/fb_post/utils/get_reaction_metrics.py | 6e0d0e0bfcaaef57360b9dcf368f1f57eab9341b | [] | no_license | mohan277/backend_repo | 4eae065cf0fffa29866a2b549028cb8df4c97643 | 25dbb4d0f1c174b6da95f4c73737e49db9978429 | refs/heads/master | 2022-11-13T00:08:37.600743 | 2020-07-09T04:36:44 | 2020-07-09T04:36:44 | 278,259,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | {"filter":false,"title":"get_reaction_metrics.py","tooltip":"/fb_post_learning/fb_post/utils/get_reaction_metrics.py","undoManager":{"mark":1,"position":1,"stack":[[{"start":{"row":6,"column":1},"end":{"row":6,"column":2},"action":"insert","lines":["u"],"id":12}],[{"start":{"row":6,"column":1},"end":{"row":6,"column":2... | [
"senammohanakrishna@gmail.com"
] | senammohanakrishna@gmail.com |
ba81538486b9e5e9d59a3a2cf1d31a3f79e4893b | 43e2fd4c65238205abf1b9db5c5c9f9db7de03b1 | /layers.py | 960d37babafddbaab565bfb2493706c26a4a1f86 | [] | no_license | dcrescim/NN | b6b86f2126f280ccb4dc0f93769674a4a572d3a9 | bbdb4de99baa529651d5f012dc5da8055cd31d5a | refs/heads/master | 2021-01-10T19:59:15.411325 | 2014-07-01T05:15:25 | 2014-07-01T05:15:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,646 | py | import numpy as np
from numpy import dot, transpose, multiply
from scipy.signal import convolve2d, correlate2d, convolve, correlate
from skimage.measure import block_reduce
from functions import *
import operator
'''
Ideas for other layers
0. SoftMaxLayer
1. Reshape layer (Function on the whole ndarray)
2. Max ... | [
"dcrmls@gmail.com"
] | dcrmls@gmail.com |
3b1e921abc6c26f06087feebab1a1ddae0b9e4b4 | 26e4a943cd31cd2dd901455c824709e17e1c1458 | /Topics/Methods and attributes/Lightbulb/main.py | 153ea265d3c3baffa683088f71df173393facf8a | [
"MIT"
] | permissive | the-rennegade/jet-brains-coffee-machine | 1f98fa1d8ac5974df98b1d3e0f959de733197c93 | cd7c395d748e951b2fd9c724a8121d0f076a4633 | refs/heads/main | 2023-08-18T18:28:56.805450 | 2021-10-07T20:22:07 | 2021-10-07T20:22:07 | 414,745,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | class Lightbulb:
def __init__(self):
self.state = "off"
def change_state(self):
if self.state == "off":
self.state = "on"
print("Turning the light on")
else:
self.state = "off"
print("Turning the light off")
| [
"ryan.renn@contractor.prometric.com"
] | ryan.renn@contractor.prometric.com |
79ecffd0003b8f52b8e02699f96264b491844e07 | d66818f4b951943553826a5f64413e90120e1fae | /hackerearth/Algorithms/Palindromes/solution.py | 2287b35b7d8a759993933e56e1c6c55558875c88 | [
"MIT"
] | permissive | HBinhCT/Q-project | 0f80cd15c9945c43e2e17072416ddb6e4745e7fa | 19923cbaa3c83c670527899ece5c3ad31bcebe65 | refs/heads/master | 2023-08-30T08:59:16.006567 | 2023-08-29T15:30:21 | 2023-08-29T15:30:21 | 247,630,603 | 8 | 1 | MIT | 2020-07-22T01:20:23 | 2020-03-16T06:48:02 | Python | UTF-8 | Python | false | false | 418 | py | """
# Sample code to perform I/O:
name = input() # Reading input from STDIN
print('Hi, %s.' % name) # Writing output to STDOUT
# Warning: Printing unwanted or ill-formatted data to output will cause the test cases to fail
"""
# Write your code here
s = input().strip()
temp = s
if len(set(s))... | [
"hbinhct@gmail.com"
] | hbinhct@gmail.com |
8247fa9e84f663f63f12d9d0831d658d3371cafa | 97d4d5fb5a9ac735ad3f80fdbf46d847369e250f | /comments/models.py | 3371daa12817bd9707ff98acfc9c76e808e63dec | [] | no_license | BexultanOtegen/quizbackendsocialnetworkdjango | d8b6dd33394e4fd53fe19c0ea4942c2e378abaf7 | 0310928f6fd0836811ab20137714eef6f0ec1ea5 | refs/heads/master | 2020-05-02T13:41:58.351082 | 2019-03-27T12:38:14 | 2019-03-27T12:38:14 | 177,990,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,824 | py | from django.db import models
from django.contrib.contenttypes.models import ContentType
from django.contrib.contenttypes import generic
import datetime
from solutioner.users.models import Ownership
from solutioner.events.models import Event
from solutioner.rbac.models import RBACRole, RBACOperation, RBACGenericPermissi... | [
"noreply@github.com"
] | noreply@github.com |
b87de63d52cd89a15514001f3bbf8a2a67535bff | 5eedf15c15f53c42474b5e1516d07c1e0e8fe399 | /HW1/P1_differential_flatness.py | a2f9bb62ffb26459f0ad2ad16662dbe34609551b | [] | no_license | kjeppesen1/AA274A_HW2 | f606fa39d98b0bb5658d8a2de0b2c4b1c74cec71 | affd935a1eb8537856b2f29359ba919e18282991 | refs/heads/master | 2022-12-27T14:51:58.272941 | 2020-10-06T04:57:02 | 2020-10-06T04:57:02 | 300,162,851 | 0 | 0 | null | 2020-10-01T05:55:20 | 2020-10-01T05:55:20 | null | UTF-8 | Python | false | false | 11,833 | py | import numpy as np
import math
from numpy import linalg
from scipy.integrate import cumtrapz
import matplotlib.pyplot as plt
from utils import *
class State:
def __init__(self,x,y,V,th):
self.x = x
self.y = y
self.V = V
self.th = th
@property
def xd(self):
return se... | [
"kadenj@stanford.edu"
] | kadenj@stanford.edu |
fb927b21b0e0f86f012f417714127990ae799569 | 67df2927ba603c4740374288e6a94eb1ee1d1317 | /Django/Django_intro/Ninja_Gold/Ninja_Gold/urls.py | c0b20b703cbacf36685e6ec09fbb08afecffe2ab | [] | no_license | BrandonBigham/Python | 7b8db774c50860cb5ef3a3638239b62d790f9ce0 | f8a646e013b957ed1e3b449cde96436439321fe2 | refs/heads/master | 2022-04-27T15:41:06.677156 | 2020-04-15T23:48:04 | 2020-04-15T23:48:04 | 256,064,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 736 | py | """Ninja_Gold 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-ba... | [
"sixten117@live.com"
] | sixten117@live.com |
90a2df92f2f7c3fbf6c29a1d42bb305edf250d74 | a32c2ee4e6b2b1c6f8db02320c4bd50b17940af5 | /modules/AlipayDepostIII/AlipayDepostIII.py | 361f92c906504347a3178c30def95f38e7ca6b45 | [] | no_license | wszg5/studyGit | 93d670884d4cba7445c4df3a5def8085e5bf9ac0 | bebfc90bc38689990c2ddf52e5a2f7a02649ea00 | refs/heads/master | 2020-04-05T02:55:17.367722 | 2018-11-07T06:01:03 | 2018-11-07T06:01:03 | 156,494,390 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 26,351 | py | # coding:utf-8
import logging
from PIL.ImageShow import show
from uiautomator import Device
from Repo import *
import os, datetime, string, random
from zservice import ZDevice
import sys
from PIL import Image
import colorsys
from Inventory import *
class AlipayDepostIII:
def __init__(self):
self.repo = Rep... | [
"you@example.com"
] | you@example.com |
87246ed855fd1c717d02a675a44f57f8c0824fef | 3995505d38cb4f9b25a0481676a273a92122922b | /books/migrations/0008_auto_20190613_2046.py | b6beabcbeb579726cc3edc887757d4058efd1056 | [
"MIT"
] | permissive | MySuperSoul/BookTradeWeb | 57c90f105c71adb474fb41cc313968446228afbc | 0414e7674aded9580d5d90a0ac364d60b6e79cba | refs/heads/master | 2023-05-30T05:29:05.976806 | 2019-07-04T13:56:10 | 2019-07-04T13:56:10 | 187,504,740 | 0 | 0 | null | 2023-05-22T22:16:15 | 2019-05-19T17:02:23 | JavaScript | UTF-8 | Python | false | false | 547 | py | # Generated by Django 2.2.1 on 2019-06-13 12:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('books', '0007_bookoffer'),
]
operations = [
migrations.AddField(
model_name='bookoffer',
name='complete_book_num',
... | [
"1144358492@qq.com"
] | 1144358492@qq.com |
a2cbe41e3329dfba2c6fc71feb9b9dd8b0077421 | c90874651817484ed86a0a62150cacc71eedd832 | /Week3/.py | 1a8ce9c850369d4283ed5bcde71a25ecb6b9614b | [] | no_license | susanphone/csci127 | 88c9f3c49575423b35fb3b765485127209d34006 | 6a2e890a892e10b98258345546111c0a7c943b3d | refs/heads/master | 2022-12-25T10:52:34.077978 | 2020-10-02T19:23:16 | 2020-10-02T19:23:16 | 239,412,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | import random
rand_num = random.random()
rand_num
# gives same number
randrange(1,100,2)
random.choice()
randint(1, 100, 2)
random.sample()
rand_int = randrange(1, 101, 2)
| [
"susan.a.mccartney12@gmail.com"
] | susan.a.mccartney12@gmail.com |
cb562c030925d53e60921baf828940abd0b5d04e | 335d148a862678b2b53a4cc33e535e567c5f81df | /blog/admin.py | 9ec07922b8f741ded996eac1c419dbc577a5db09 | [] | no_license | anettekankode/my-first-blog | 715903b54dfefd54ffcf461fe19ea0b31e354790 | 905d3dd022b85275766c4d81d55f0ea9203c3ebd | refs/heads/master | 2020-04-23T12:15:23.001634 | 2019-02-25T19:12:41 | 2019-02-25T19:12:41 | 171,162,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | from django.contrib import admin
from .models import Post
from .models import Customer
from .models import Meal
admin.site.register(Post)
admin.site.register(Customer)
admin.site.register(Meal) | [
"anetsan@stud.ntnu.no"
] | anetsan@stud.ntnu.no |
a05fdb67bbc4bb36e2c0025b1ef19f00e38ce7b5 | ab3d183975b7c955651f6491ea84e3577d8ba0d8 | /terminator/hash_table.py | 98647b6a9c4b7ffcf6419ee0b066e53b1cef89dc | [] | no_license | thisisrohan/binder_terminator | 4a82220c990e68a5b60a8785d70c0b413d97d0fe | b1046eff1a397f613476e8c2a00c6eee8f20fc12 | refs/heads/master | 2022-12-03T02:32:02.277578 | 2020-08-26T06:25:21 | 2020-08-26T06:25:21 | 290,358,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,733 | py | import numpy as np
from numba import njit
@njit
def initialize_seg_ht(seg_ht_cap, seg_ht_arr, segments, num_segs):
for i in range(num_segs):
v1 = segments[i, 0]
v2 = segments[i, 1]
key = (v1 + 1)*(v2 + 1)
h_index = key % seg_ht_cap
while True:
if seg_ht_arr[h_i... | [
"rohankaushik@hotmail.com"
] | rohankaushik@hotmail.com |
6395b467cd2de44fccf0acbc35949adb1f09a174 | 57c6d71cb82f00d51705e25e1d8b1c2a130cf7f7 | /ex09_03.py | 8d8b366e81a33258ad56062d6ddb31b992a531c1 | [] | no_license | jgramelb/Python-learning | 80fda893324ce13ebe2657f69452c8a41c573ba4 | ecc371178846686a659b06af9b1336b3ee5aaa47 | refs/heads/master | 2021-09-07T16:07:56.935425 | 2018-02-25T20:26:51 | 2018-02-25T20:26:51 | 109,454,537 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | #write a program to read through a mail log,
#build a histogram using a dictionary to count how many messages
#have come from each email address, and print the dictionary
fname = input('Enter a file name: ')
try:
fhandle = open(fname)
except:
print('File cannot be read', fname)
exit()
cou... | [
"noreply@github.com"
] | noreply@github.com |
78d395d7d0df8c79329cfeaa0f2ae3172b088d4b | 5f9a36d17071ed90ca9d54d26f74a98cf4f3e6e2 | /xgboost_sklearn.py | 8f90c0071f54d90e5f15c4304c2c1a04d3a06ea3 | [] | no_license | franciszchen/medicial_prediction | 7b90e66380819174a03f87b189327c7032e38eab | 6c46426af4d918649b5a294288425048b34e3781 | refs/heads/master | 2020-03-27T14:59:49.347252 | 2018-08-28T14:11:13 | 2018-08-28T14:11:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,782 | py | from sklearn.model_selection import train_test_split
from sklearn import metrics
from sklearn.datasets import make_hastie_10_2
from sklearn.model_selection import KFold, cross_val_score
from sklearn.preprocessing import normalize, MinMaxScaler
import xgboost as xgb
import time
import numpy as np
import random
import ma... | [
"double_ying@outlook.com"
] | double_ying@outlook.com |
9b91e29abf68f415cf60457217c7a1675c76b233 | 29994cac84bc16f89df465295fd778ad6914219f | /frontend/apps/urls.py | 8db3d618e6f510bcd4aa6ca65ba3e5ffa15f5c6e | [] | no_license | anubhav-xebia/Scrummage | 6aba736390293d218fc1e69629aae23d2b373728 | bc506f437b4e75724365c3987391b3f5df898a67 | refs/heads/master | 2016-09-09T21:10:43.691058 | 2012-03-29T16:09:55 | 2012-03-29T16:09:55 | 3,153,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 743 | py | from django.conf.urls import patterns, include, url
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'apps.views.home', name='home'),
# url(r'^apps/', include('apps.foo.urls')),
# Uncomme... | [
"anubhava@xebia.com"
] | anubhava@xebia.com |
a912a4fb22e61d07fb9b85a0b5abd3ce80e0c6a9 | 95f70cfc2dd6552b2ef3988314fa923391e7114c | /src/Filter/settings.py | ab5e51330184edabd714b4c8fb74b0d99b64987f | [] | no_license | suraj8848mt/FilterForm | ec79e241cb5b84e7d47cde9f9173ed089d99a435 | ebfeb0298f5d77ecff510a3dcc4fff33642c8649 | refs/heads/master | 2021-09-24T06:08:38.902946 | 2020-02-21T12:32:35 | 2020-02-21T12:32:35 | 241,982,266 | 0 | 0 | null | 2021-09-22T18:36:32 | 2020-02-20T20:24:57 | JavaScript | UTF-8 | Python | false | false | 3,266 | py | """
Django settings for Filter project.
Generated by 'django-admin startproject' using Django 3.0.3.
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
# ... | [
"suraj.iwacademy@gmail.com"
] | suraj.iwacademy@gmail.com |
644400cc50052b08c364c1f2f950b52d631c448a | cd5746f8cc7aee1f20606a65b4fae0d5e8ee78dc | /Python Books/Athena/training/exercises/exercises/software_craftsmanship/fancy_math/fancy_math_solution.py | f6812946aeb6e236e271e1b69504b96c23643970 | [] | no_license | theGreenJedi/Path | df24fca355590efef0c6cb5c52e7216c6b5d2464 | b5ed2805dbb046480929e49e550bfd8af5bb4d6f | refs/heads/master | 2023-07-27T14:23:37.694546 | 2021-07-16T01:38:55 | 2021-07-16T01:38:55 | 87,686,563 | 8 | 2 | null | 2023-07-11T22:49:03 | 2017-04-09T05:57:30 | Jupyter Notebook | UTF-8 | Python | false | false | 1,523 | py | """ Test Driven Development Example
Write a function called `slope` that calculates the slope
between two points. A point is specified by a two element
sequence of (x,y) coordinates.
>>> pt1 = [0.0, 0.0]
>>> pt2 = [1.0, 2.0]
>>> slope(pt1, pt2)
2.0
Use Test D... | [
"GreenJedi@protonmail.com"
] | GreenJedi@protonmail.com |
07df13182cded5aef2f07b55ba967b99a7d489ff | 79f8eb28327a92c21454b610c39ad2cf057d60ce | /analyser_tools/EmailDataFrame.py | 247b811ea5671e8e295cac85262c6f78bb40727c | [] | no_license | jaytouz/pyMboxAnalyser | 9a4bdc6c31ced4bcf964b73dde34192a903b4142 | 1f52ff3a6c189f05204210d97c15b924639916c8 | refs/heads/master | 2022-12-26T00:04:08.175389 | 2020-10-09T16:23:34 | 2020-10-09T16:23:34 | 290,229,860 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,793 | py | """EmailDataFrame.py: Class principal. Chaque class est construite pour interagir avec un dataframe particulier, soit de
email, d'url, un corpus ou un document term matrix (les deux derniers sont pour l'analyse des mots dans le texte).
__author__ = "Jérémie Tousignant"
__copyright__ = "Copyright 2020, Radio-Can... | [
"tousijer@gmail.com"
] | tousijer@gmail.com |
e6cb99d31e269deb4b326ea98500e15ca9b8b6b6 | 4526dfc364330b95110cf987fc75ed9cc4bb1a8f | /reviews/migrations/0003_alter_review_review_text.py | ae339616632d83c75bebe5d95be1e91b9218c773 | [] | no_license | kenwals/BoWood-Audio | e65f72533770d228407224f6a35d23c0e829eeb4 | 7046b030fdef95f745fbd389fa3f2140ad09ece4 | refs/heads/main | 2023-07-16T13:23:53.245462 | 2021-08-19T19:52:31 | 2021-08-19T19:52:31 | 387,548,996 | 0 | 2 | null | 2021-08-19T19:47:50 | 2021-07-19T17:47:11 | HTML | UTF-8 | Python | false | false | 378 | py | # Generated by Django 3.2.6 on 2021-08-13 13:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('reviews', '0002_auto_20210809_1927'),
]
operations = [
migrations.AlterField(
model_name='review',
name='review_text... | [
"kenwals@gmail.com"
] | kenwals@gmail.com |
6bb6dada3e6b38e1742a390c821856e3edb5dc4f | e805006d7b03954f5df3d054a4eb7fbdb6c24ea7 | /DecissionTrees/BasicParams_DT.py | 28cca674178f340ae647997d732371839d0aa212 | [] | no_license | Gani024/Gani024 | d38be7fedf0e3cc49a68298026c76e919e4ab0a0 | 55183c2c6f6080990be3d43ae293f7659788a556 | refs/heads/master | 2021-01-14T23:37:43.535221 | 2020-02-24T19:07:49 | 2020-02-24T19:07:49 | 242,798,382 | 0 | 0 | null | 2020-02-24T18:32:35 | 2020-02-24T17:26:15 | null | UTF-8 | Python | false | false | 1,492 | py | # -*- coding: utf-8 -*-
"""
@author: Ganesh Balla
"""
#DecissionTree and Predict methods are very important in this example. This is the real starting/building of ML
#Here we will be playing with more columns. However DecisionTreeClassifier algorithm works only on numeric/continuous data/columns
#Henceforth we need to ... | [
"noreply@github.com"
] | noreply@github.com |
00e57703d4fb52705b05baa8653d972a0c79ed4c | 4a101172cdcbd5e1556b48a7142f3f5492ba6418 | /mysite/blog/migrations/0001_initial.py | 8d29a091aa2ff399500c27e2518ffffebdb08e2a | [] | no_license | andi140317/my-first-blog | b0db5491277747d14d5bb4d7ac380619cb652a68 | 38aae9840de59dd8df0faf50d3195ac67f1785f0 | refs/heads/master | 2020-06-30T01:17:49.491633 | 2016-11-22T16:52:27 | 2016-11-22T16:52:27 | 74,400,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,049 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-11-17 15:58
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
depend... | [
"andi140317@gmail.com"
] | andi140317@gmail.com |
7a0aeb784f48ac50a11ff241029eb320d9cab45a | 4fc21c3f8dca563ce8fe0975b5d60f68d882768d | /ObasiEmmanuel/Phase 1/Python Basic 1/Day 3 task/day3(1).py | e35ea1e8e4a973ba595cee1cd1af2b7fb22289e1 | [
"MIT"
] | permissive | Uche-Clare/python-challenge-solutions | 17e53dbedbff2f33e242cf8011696b3059cd96e9 | 49ede6204ee0a82d5507a19fbc7590a1ae10f058 | refs/heads/master | 2022-11-13T15:06:52.846937 | 2020-07-10T20:59:37 | 2020-07-10T20:59:37 | 266,404,840 | 1 | 0 | MIT | 2020-05-23T19:24:56 | 2020-05-23T19:24:55 | null | UTF-8 | Python | false | false | 36 | py | a=abs(-10)
print(a)
print(help(abs)) | [
"obasiemmanuel28@gmail.com"
] | obasiemmanuel28@gmail.com |
f3b268991c4522ba57f9aa869c1ae1dbea8c1e1f | eb866a8af39391d70d9687d26cfb96372f1fe1e4 | /error_handling_exercise_2.py | 5ab7833986764cef575ee74e19bf9c5f86bea4ac | [] | no_license | FlorinCiocirlan/Dojos | bc319ba17927343bf5b82992670155bcfeb94929 | 405e79b80b1d26af4be9e1487b9fdb2c65ea7820 | refs/heads/master | 2020-08-30T22:26:49.774354 | 2020-02-12T14:58:03 | 2020-02-12T14:58:03 | 218,507,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | def add_to_list_in_dict(thedict, listname, element):
try:
if listname in thedict:
l = thedict[listname]
print("%s already has %d elements." % (listname, len(l)))
else:
thedict[listname] = []
print("Created %s." % listname)
except KeyError:
... | [
"florineless@gmail.com"
] | florineless@gmail.com |
2c39cc52f99d75ea6b23c229f944c15c670da36e | 15e162cd7750419d1e4c24f957ce82f7858cf78c | /demodrowserselenium.py | 39ca2a886a42e031e5e00c4a3f3a24b1d09feabe | [] | no_license | sadhanaauti93/pythonDemo | 3ce916a14c761f0cf7108ed7b02b02527b18863d | 99f8faf29a7d9858eeb0069ac7e678ccc4a36590 | refs/heads/master | 2022-11-19T05:56:55.278768 | 2020-07-22T09:09:02 | 2020-07-22T09:09:02 | 281,627,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,669 | py |
#Chorme
#from selenium import webdriver
from selenium import webdriver
#browser exposes and executable file
#Througt selenium test we need to invoke the executable file which will then invoke actual browers
driver = webdriver.Chrome(executable_path="C:\\chromedriver_win32\\chromedriver.exe")
#driver.maximize_windows... | [
"sadhanaauti93@gmail.com"
] | sadhanaauti93@gmail.com |
f2c2d3c940e43a84443f8bade7bb05ee7008383a | 69106966b0d4ab114b74692b61848ecbd444b3e8 | /textutils/views.py | 43781b38760f340d06ec19211b4660f5f2cd5e09 | [] | no_license | satishsharmaapo/TextUtilities | 11a069f0f6cac566591bb0fb1a8ee1f4fca1442c | b414ccb4193fd687bea975c5457cd69fdfdae84a | refs/heads/master | 2022-09-21T16:13:56.997637 | 2020-06-05T12:23:14 | 2020-06-05T12:23:14 | 269,626,774 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,635 | py | from django.http import HttpResponse
from django.shortcuts import render # this is for render
def index(request):
return render(request,"index.html")
def analyze(request):
textcontent=request.GET.get('text','default')
# print(request.GET.get('text','default'))
param={'name':'analyzer','conten... | [
"satishsharma.0311@gmail.com"
] | satishsharma.0311@gmail.com |
a6dcfa74a351b0a3634b8bce175389862c2ed141 | 88d96bfe8060c9686eb3f30d3bf6f0a3761b5b54 | /LotteryNumbers.py | 3ff4ac98c75e4ef0a67bfcb4b71e69caa7a82ea7 | [] | no_license | FedericoSala/Python | dbf5a5e354aa92c68bb5d8de8c9072fdc49e5a64 | b7450108eee88a2b8131fe9a7618175424ec750b | refs/heads/master | 2022-04-10T15:01:24.879429 | 2022-03-08T14:00:47 | 2022-03-08T14:00:47 | 247,667,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | import random
lottery_tickets_list = []
print("creating 100 random lottery tickets")
for i in range(100):
lottery_tickets_list.append(random.randrange(1, 400))
winners = random.sample(lottery_tickets_list, 2)
print("Lucky 2 lottery tickets are", winners) | [
"57963229+FedericoSala@users.noreply.github.com"
] | 57963229+FedericoSala@users.noreply.github.com |
387e099c4bd771eae8b41a1b0168202680e46074 | 31747dd8c61085421d7bd4166f7bd4f9429cf914 | /tests/test_visitors/test_tokenize/test_keywords/test_starts_with_dot.py | 71c475e0052d8cbb4394f153df8ed6fd363f4019 | [
"MIT"
] | permissive | edytagarbarz/wemake-python-styleguide | 0e9ed4080a13a6727b8e80785e113b8407409352 | 74b86156d73c2a4fe9c755138f6953fec41fab3b | refs/heads/master | 2021-03-03T19:21:54.807089 | 2020-03-07T23:35:15 | 2020-03-07T23:35:15 | 245,981,718 | 1 | 1 | MIT | 2020-03-09T08:31:55 | 2020-03-09T08:31:54 | null | UTF-8 | Python | false | false | 1,483 | py | import pytest
from wemake_python_styleguide.violations.consistency import (
LineStartsWithDotViolation,
)
from wemake_python_styleguide.visitors.tokenize.syntax import (
WrongKeywordTokenVisitor,
)
# Correct:
correct_dot_attr = """
some_line = some.attr(
some.other,
)
"""
correct_elipsis = """
first[
... | [
"mail@sobolevn.me"
] | mail@sobolevn.me |
9011a37eb04c6721945ab409a2515d8afea63aa0 | e3a9c5cb5ee04692131210e1d1f2943cabc137a8 | /DBPKAHOOT/KAHOOTPROJECT/venv/Scripts/pip3.7-script.py | 7cf36d89d760de0f3283c5af969656c0e7afe944 | [] | no_license | FJ98/DBPKAHOOT | 39be7ed0e192d3a0780c8edeb552c32f9c8875e6 | 6f2c510cc861d59bc3497ba99b9861fc0e1cadb4 | refs/heads/master | 2020-04-01T22:45:44.555387 | 2018-11-06T13:55:40 | 2018-11-06T13:55:40 | 153,683,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | #!C:\Users\felix\cs2b01\workspace\felix.solano\MyChat_Web\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.7'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe... | [
"felix.solano@utec.edu.pe"
] | felix.solano@utec.edu.pe |
a2b5ab6969944d6e63cf3afa864f65c9e8bd202b | bc2d396ad9ce23b045437e95184948a7a64f0ca1 | /engine.py | e70a7ed05cfbb7d810e3a736512fc2a4f0c215cf | [] | no_license | einrone/AST1100 | 8dd97443e323753fb9d272a3a41428317cc58afb | 1a3fec59eecf97cbc7d5fbfde8612963ff6f0560 | refs/heads/master | 2021-01-12T13:25:34.152558 | 2016-11-14T04:05:03 | 2016-11-14T04:05:03 | 69,805,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,962 | py | from __future__ import division
from numpy import *
import random as r
from matplotlib.pyplot import *
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.animation as animation
from scipy.constants import k
from AST1100SolarSystem import AST1100SolarSystem
myStarSystem = AST1100SolarSystem(23078)
mass... | [
"noreply@github.com"
] | noreply@github.com |
9279b9597b2d931243c3d65c194b852ce3653de4 | a58cf1db6bca184c47a84e8f88290f80d6f012ec | /scrape_mars.py | 5d2692d4cd92398181ca3ec94e5ab8617d132b66 | [] | no_license | juzhangdata/marsproject | ed272b73a12df7e3f4ef8955197c74c100cb7205 | b99046d4e3721a0de096808faaa0bdb94f9191e1 | refs/heads/master | 2020-03-23T01:19:41.210779 | 2018-07-21T02:32:13 | 2018-07-21T02:32:13 | 140,911,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,644 | py |
# coding: utf-8
# In[1]:
def scrape():
# Dependencies
import pandas as pd
from bs4 import BeautifulSoup as bs
import requests
from splinter import Browser
# -----------------------------------------------------------------------------------------------------
# NASA Mars News
# Scrap... | [
"juzhang2008@gmail.com"
] | juzhang2008@gmail.com |
25c5217e5d12a8af8f78be0b6b050e94d56d9462 | 7e53ebbbe711bf6554774b96abb94354c0eb1c3a | /src/arcresthelper/portalautomation.py | a225035bccd9115825ee70423f79bd4d19618ee4 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | lpsnyd/ArcREST | 0ac59f5d70a97fa603769b6bb7fa8f8f2529497a | b0366ced8cd20e59431373211aa484409c5359c0 | refs/heads/master | 2021-01-18T02:02:03.437015 | 2015-11-03T00:04:02 | 2015-11-03T00:04:02 | 45,482,870 | 0 | 0 | null | 2015-11-03T17:21:47 | 2015-11-03T17:21:47 | null | UTF-8 | Python | false | false | 24,821 | py | """
@author: ArcGIS for Utilities
@contact: ArcGISTeamUtilities@esri.com
@company: Esri
@version: 1.2
@description: Used to create reports, maps and apps
@requirements: Python 2.7.x, ArcGIS 10.2
@copyright: Esri, 2015
"""
import gc
import sys, os, datetime
import json
import csv
from arcpy... | [
"mmiller@esri.com"
] | mmiller@esri.com |
dd1a0683c4b2359b45e198f6ad8cf7f51618df45 | aa3cee4c9a1c7397fd47a3da4e9dae9433e0841e | /usercodex/assistant/secret.py | a05e14d7dd81644a6de3abc5864c4917c6d1f2aa | [
"BSD-3-Clause"
] | permissive | aryazakaria01/CodeX | b10c862511381e249b94fb9cfbf85f7e036a5fae | 78a43ea3720d8b51c2f1b5644de4ef9d25c0eaa8 | refs/heads/master | 2023-07-15T08:22:21.439555 | 2021-08-25T03:31:16 | 2021-08-25T03:31:16 | 399,324,220 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,055 | py | import json
import os
import re
from telethon.events import CallbackQuery
from usercodex import codex
@codex.tgbot.on(CallbackQuery(data=re.compile(b"secret_(.*)")))
async def on_plug_in_callback_query_handler(event):
timestamp = int(event.pattern_match.group(1).decode("UTF-8"))
if os.path.exists("./usercod... | [
"84753790+aryazakaria01@users.noreply.github.com"
] | 84753790+aryazakaria01@users.noreply.github.com |
07798d1d4d3c997bfa94b65f575e5923c36fe8f3 | a99c5022580386661f8f2f24587b90771dcdfc12 | /drone/calcRx.py | b7ed2e397fe441962501f38c943abbb44854dbf6 | [] | no_license | nitomoki/multi-variable_control_theory_1 | a9e2f3be1923876a66df3fd7c1f75d12e34c911c | 7ad0c6d1fc0f10e0f728cdc922bba0894c74977c | refs/heads/main | 2023-05-30T10:20:29.122817 | 2021-06-25T03:59:48 | 2021-06-25T03:59:48 | 376,756,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | import numpy as np
import math
def calcRx(theta):
c = math.cos(theta)
s = math.sin(theta)
Rx = np.matrix([[1.,0.,0.], [0.,c,-s], [0.,s,c]])
return Rx
| [
"nitomoki.2@gmail.com"
] | nitomoki.2@gmail.com |
d2ac1295a7aa655103e5cf42122ce6466fccc3ea | 9fa8a2b98988975f5d2ec7b371f63edd71fdc40b | /class_test/classtools.py | 8a1f52b5e86a61ea34b81543fe79e127a966ad33 | [] | no_license | iClearly/pyLearning | 535b5a315b7b47361bba62b38b335fa5d4972f1c | b7cd84bc988c1d6405601e15ef4f60af6930f9a5 | refs/heads/master | 2020-07-31T05:07:51.898249 | 2016-11-16T16:54:06 | 2016-11-16T16:54:06 | 73,607,301 | 0 | 0 | null | 2016-11-16T16:54:06 | 2016-11-13T09:52:12 | Python | UTF-8 | Python | false | false | 821 | py | #! /usr/bin/env python
# _*_ coding:UTF-8 _*_
class AttrDisplay:
def getherAttrs(self):
attrs = []
for key in sorted(self.__dict__):
attrs.append('%s=%s' % (key, getattr(self, key)))
return ', '.join(attrs)
def __str__(self):
return '[%s : %s]' % (self.__class__.__... | [
"iClearly@hotmail.com"
] | iClearly@hotmail.com |
d5436a4447ed68a78e245b607684a05ba985de04 | 9bd4ff41d89ef05596bae2803dc6073cfdc8fce8 | /private.py | 99c19ef9243cafa80c85ba0c8e813ecedbf9baf9 | [
"MIT"
] | permissive | russjr08/lwimw | 0073d6f0f7c606c1395bb1b06679891e02bdab9d | 0bb06622882deb41c496301cd8a17a32c992d9df | refs/heads/master | 2021-01-18T04:04:08.875860 | 2014-07-14T20:13:10 | 2014-07-14T20:13:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 76 | py | SECRET_KEY = 'checkoutmysecretkey'
POSTMARK_API_KEY = 'checkoutmysecretkey'
| [
"dvcolgan@gmail.com"
] | dvcolgan@gmail.com |
7af9d20303a6cb0534c7e8fa34538d9028d47d3a | e40381a0aa3320616e5a5b82533c2c5cfe0fa2ce | /Dark_Scripts/plot_ValidationScores-LoopSeeds.py | 40dc9786c4c96c2cd21b3edd21e4a9bd9de57c82 | [
"MIT"
] | permissive | zmlabe/predictGMSTrate | 7220b26f86839699635fe2f04e45348095183bc7 | ac4238c7f1c33dc9d30382e4dbdc26a2f63352f5 | refs/heads/main | 2023-04-10T03:46:16.053123 | 2023-01-11T14:08:27 | 2023-01-11T14:08:27 | 396,942,451 | 4 | 3 | MIT | 2022-01-19T22:15:19 | 2021-08-16T19:30:55 | Python | UTF-8 | Python | false | false | 5,612 | py | """
Create plots to show validation scores for different seeds
Author : Zachary M. Labe
Date : 27 September 2021
Version : 2 (mostly for testing)
"""
### Import packages
import sys
import matplotlib.pyplot as plt
import matplotlib.colors as c
import numpy as np
### Plotting defaults
plt.rc('text',usete... | [
"zmlabe@rams.colostate.edu"
] | zmlabe@rams.colostate.edu |
4f46af4623980dfed5ef5e43361b601accc1d49c | 5ad6bc3e60f9c80c881bd4ed0a874a78e8743d64 | /tests/large/results/processData.py | 52b3c597ee5d3e2d58ce26fa337905b03a65ae9b | [] | no_license | truszk/gtprob | b8e2ac6540563cd242409387c1457b73e1537d2c | 94d4a9943eeee376024e0eea51a551d706938ff0 | refs/heads/master | 2021-08-07T15:06:00.072682 | 2020-08-04T20:39:31 | 2020-08-04T20:39:31 | 207,050,137 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,382 | py | import sys
import math
from math import log,exp
import os
import subprocess
def get_res_params(filename):
tokens=filename.split('.')
nsp=int(tokens[1][2:])
ngps=int(tokens[2][3:])
bl=float(str(tokens[3][-1])+'.'+tokens[4].split('ind')[0])
ind=int(tokens[4][-1])
stells=('nonums' in filename)*1
if ('outch' in fil... | [
"jakub.truszkowski@gmail.com"
] | jakub.truszkowski@gmail.com |
1f5daea1330f87aa9b9cd043ded13bb173fe74da | d4c1fd85c6adca214d2e2c6c8083fcdb8c5bd25f | /python/benchmark.py | 87b591b1110af40973025808cf3b0bc95f13312f | [
"MIT"
] | permissive | altunyurt/regex-benchmark | 92f66b0c0f7191657bfc54e5a4d205cbe1a525f7 | 71fd001e1d2b64a96ef333676f5f1d24ba919554 | refs/heads/master | 2022-05-28T03:28:26.355312 | 2020-05-03T09:40:31 | 2020-05-03T09:40:31 | 257,912,800 | 0 | 0 | MIT | 2020-04-22T13:40:36 | 2020-04-22T13:40:35 | null | UTF-8 | Python | false | false | 706 | py | import sys
import re
from timeit import default_timer as timer
if len(sys.argv) != 2:
print('Usage: python benchmark.py <filename>')
sys.exit(1)
def measure(data, pattern):
start_time = timer()
regex = re.compile(pattern)
matches = re.findall(regex, data)
elapsed_time = timer() - start_time
... | [
"mario@mjp.one"
] | mario@mjp.one |
3c4c4bd059ad7f485fbdafcc13c14e596443465a | b6816f219f8ec8175edea9630a2306a03c7cb215 | /portfolio/models.py | bd452bba0d6b784c6fc0cc574db182583a9d2a8a | [] | no_license | meetpatel09/personal-portfolio-django3 | 5763ee418407487c9bff00603581e011eb1e2484 | 147d97ab759a4d1e026286970e3f41905f39a946 | refs/heads/main | 2023-01-01T12:33:24.557436 | 2020-10-28T06:23:54 | 2020-10-28T06:23:54 | 307,924,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | from django.db import models
class Project(models.Model):
title = models.CharField(max_length=100)
description = models.CharField(max_length=250)
image = models.ImageField(upload_to='portfolio/image/')
url = models.URLField(blank=True)
def __str__(self):
return self.title
| [
"meetvalod@gmail.com"
] | meetvalod@gmail.com |
d01d7e703469570c7fefa77db8579c1d5cf058a4 | 9dcd31a653809746e6fec010ff588909ec85594c | /Version4/AlgoRecuit.py | 306d84d06d7c618779654fab1f12c6e4e2fd5a81 | [] | no_license | Saint-Venant/optimisation_cocktails | 4a9d4cd85cf47bda0694c30b83529a391c5f6fbb | 76ff594175d8b5e230249ce3cce34fb757fb1ca3 | refs/heads/master | 2021-09-15T04:07:01.240057 | 2018-05-25T12:00:59 | 2018-05-25T12:00:59 | 126,009,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,988 | py | from StructuresProduction import *
import GlobalParam as gp
import numpy as np
## Vérification du respect des contraintes
'''
Fonction permettant de vérifier si un plan de production donné respecte les contraintes
'''
def verifieContraintes(plan):
#suppose que la mise à jour des variables intermédiaires calculé... | [
"matthieu.roux92@gmail.com"
] | matthieu.roux92@gmail.com |
3a9838e0b0b1f0c0f2607a79f314e14c1480b180 | 67e6c26efd28115b16a839bc81aba57bfc803b1e | /rango/migrations/0004_auto_20210730_0636.py | 0f13835ba45f8411b13e1eb375c067725660a531 | [] | no_license | franksy0719/tango_with_django_project | 32b8a154e91fb1e4592af0296acaad75d38c1119 | 513f869aad515792417a03d26f32a0a3cbda3b63 | refs/heads/master | 2023-06-26T02:12:42.753224 | 2021-07-30T14:20:22 | 2021-07-30T14:20:22 | 390,060,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | # Generated by Django 2.1.5 on 2021-07-29 22:36
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('rango', '0003_category_slug'),
]
operations = [
migrations.AlterField(
model_name='category',
name='slug',
... | [
"2589296s@student.gla.ac.uk"
] | 2589296s@student.gla.ac.uk |
c15dab840bb91105f6d3e4d0a04e7c5660596f0d | 828cdf754dade6bcd9838e722eafdec967fc4bb6 | /problem/PlanB.py | dfe8f66fb294d5b52ac2a976853686aca11ffa47 | [] | no_license | noppakorn-11417/psit-2019 | b6e6daece90fa58151c21a091b9c90ed7069d5a7 | c60156ee81b9a8306b29601bc4127b2a36d380fc | refs/heads/master | 2020-09-14T15:03:46.438812 | 2019-11-21T17:16:10 | 2019-11-21T17:16:10 | 223,163,478 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | """pair"""
def main(score):
"""basic if else"""
return print("Pass" if score >= 450 else "Fail"), print("Process is terminated")
main(float(input()))
| [
"noppakorn11417555@gmail.com"
] | noppakorn11417555@gmail.com |
0eed0918a4ff23c0712bbf2008fe5f89c44bc94a | 55ec19fb94cdac54b597fbb3d2e9abe14cd79d65 | /functest/ftest2.py | 2b6b7f41d5bbf2f121f5e27492687c2b2cd227b8 | [] | no_license | minjjjae/pythoncode | f2980214498c618416c9876e72e1f96a21dc0cd6 | ed419bc830b8da9a921c366d380b7fcf384310b7 | refs/heads/master | 2022-11-21T13:49:41.145910 | 2020-07-14T08:31:26 | 2020-07-14T08:31:26 | 276,516,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | a = 1
def vartest():
global a
a = a+1
print(a)
vartest()
print(a)
| [
"csu05065@naver.com"
] | csu05065@naver.com |
809ebe3f5a7cc3d02884b5701e599a271628bae9 | f000056efb36f4eb8eeaf196bb99a6dccb97b68b | /packages/FaceRecognition/facemod.py | c9dbfb9c0e86a8697b35742dbabd73082d291a5f | [] | no_license | bahoang271199/JASS | f5827d59ddeebd62f53a9fc5189f64c976a1df1f | e3de8e7b7e5ff52071c2d19dbaf588c96df116ed | refs/heads/main | 2023-01-19T02:28:58.806729 | 2020-11-28T06:56:50 | 2020-11-28T06:56:50 | 315,850,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,306 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
from subprocess import Popen, PIPE
import tensorflow as tf
import numpy as np
from scipy import misc
from sklearn.model_selection import KFold
from scipy import interpolate
from tensorflow.python.trai... | [
"bahoang271199@gmail.com"
] | bahoang271199@gmail.com |
dc5ac02dbad9fad036deb806d817ca3602455601 | ae84e92a2d1f6eb10403b80d9502888182a5287e | /tfomics/saliency.py | 65da82b7a32a208f284865b7a2716463b95301c1 | [] | no_license | panand87/tfomics | 26defd8077004d6a048a59894fb39ed2df9f4b1c | 75815bd56e2da3cc7f7fa2234d3163cf332fc2e5 | refs/heads/master | 2021-01-19T05:48:10.623868 | 2017-04-07T18:36:53 | 2017-04-07T18:36:53 | 87,452,025 | 0 | 0 | null | 2017-04-06T16:36:03 | 2017-04-06T16:36:03 | null | UTF-8 | Python | false | false | 6,781 | py | from __future__ import print_function
import os, sys, time
import numpy as np
import tensorflow as tf
from tfomics import neuralnetwork as nn
from tfomics import utils
from tensorflow.python.framework import ops
from tensorflow.python.ops import gen_nn_ops
# ---------------------------------------------------------... | [
"peter_koo@harvard.edu"
] | peter_koo@harvard.edu |
568daa23ad5b1b99a52e9703eba7609c5bf07d94 | 73251724d0eec63ee310b081a1d1eb37fa0d0ecb | /st01.Python기초/py12패키지/mylib/operation/run.py | ac8db80e54c9097e7498711a6f9d8c3d304552d5 | [] | no_license | bakjee/Python20200322 | 921a077d2d248f861e2509dba0e706661cc79799 | b72458b8661db90628020e019ab8827b31a9ede8 | refs/heads/master | 2021-04-12T19:25:32.387867 | 2020-04-26T09:38:03 | 2020-04-26T09:38:03 | 249,103,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | # run.py
from ..sound.echo import echo_test
def render_test():
result = None
try:
print("render")
echo_test()
except Exception as ex:
pass
return result
if __name__ == "__main__":
render_test()
| [
"adsf@asdf.com"
] | adsf@asdf.com |
2de8bd9190c270572f7a9f849e18aa8f8b33d462 | a2edf936e9f03f7ad4f5d6d26cdd0e202ede9278 | /venv/bin/isort | ae6c21a1891964b6c016cb49d2e20949ca40c20c | [] | no_license | MichaelRandall/py_lotto | 68c1f83fd3b0efba71d0595e33a4b1fb27732012 | 61c91c72cd4d2e7f22e35ce30bcd6be7d9f3fc6f | refs/heads/master | 2020-04-12T07:56:42.425894 | 2019-01-03T19:50:26 | 2019-01-03T19:50:26 | 162,376,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | #!/Users/michaelrandall/dev/py_lotto/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from isort.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"m_ran66@hotmail.com"
] | m_ran66@hotmail.com | |
14b359d92f3e1da24aa1a431953c9de91141cae3 | 449f6888bff99d7e4fd86fa6ffa6b3316084e34e | /Solutions/248.py | febd366352a6f0c6d1e9f9292f83bc6b4f1906f7 | [
"MIT"
] | permissive | All3yp/Daily-Coding-Problem-Solutions | e94679a5858b8a83ffe58d14b824fe80de21a694 | 199b9606474edb45bd14b20b511b691ada437586 | refs/heads/master | 2023-03-18T21:06:30.675503 | 2021-03-13T03:52:31 | 2021-03-13T03:52:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | """
Problem:
Find the maximum of two numbers without using any if-else statements, branching, or
direct comparisons.
"""
def get_max(num1: int, num2: int) -> int:
return num1 ^ ((num1 ^ num2) & -(num1 < num2))
if __name__ == "__main__":
print(get_max(1, 5))
print(get_max(4, 3))
print(get_max(-3, 6)... | [
"ruppysuppy@gmail.com"
] | ruppysuppy@gmail.com |
053e779a7c7db637c48463a94d01d9522186d99c | d52b11bd06b1d7aa8fe120a32b98cce9a1c27279 | /NeuralNetworks/NN_train_1a.py | 2a733dd6e36ec81bf0eab82f2793b21aed964b71 | [] | no_license | diksha16017/MLForBeginners | 5afd24b8f34b89860c37acec4ae91ff895716230 | 7c4724ee282d08a1a6673b1e919d9c139a213cf3 | refs/heads/master | 2020-03-15T19:25:10.706034 | 2018-05-05T19:19:37 | 2018-05-05T19:19:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,954 | py | # from MultiLayerNN import NeuralNetwork
# from MultiLayerNN_softmax import NeuralNetwork
from MultiLayerNN_RELU import NeuralNetwork
import h5py
import numpy as np
from sklearn.externals import joblib
import h5py
import idx2numpy
from sklearn.model_selection import KFold
import matplotlib.pyplot as plt
# Load the ... | [
"jhambneha30@gmail.com"
] | jhambneha30@gmail.com |
e6a1108027db15942af53df134952dc623e50d4f | b0db03e3d92ed1c3f041bc97c1202b55bae58f7f | /Guess_the_Number.py | 9614a6af56e10fd3131b98c6e1e2e6fc4c385ab3 | [] | no_license | sania-dsouza/Python_DIYProject_1 | 23148a7ec431834d2cc70c41054e697ff0682e7f | c02b06cb3be8df46b52472e566cc332b9506c3f8 | refs/heads/master | 2020-08-30T12:15:00.403396 | 2019-12-03T21:22:15 | 2019-12-03T21:22:15 | 218,377,455 | 1 | 0 | null | 2019-11-07T14:37:08 | 2019-10-29T20:28:28 | Python | UTF-8 | Python | false | false | 1,238 | py | #This is the Guess the number game which allows the user to guess a number between 0 and 20.
#When the user selects a number, the computer tells the user if the guess was "too high" or "too low"
import random
def isInputInvalid(r2):
if(r2>20 or 0>r2):
return True
else:
return False
# generat... | [
"sania.d@myplanet.com"
] | sania.d@myplanet.com |
3353b9c62c88039bc5b7b3036ae3f8330de3af89 | 1de45f22e8fb03c471b3cc334709fc4bd951f574 | /categories/migrations/0001_initial.py | 14a66ae377aa32e9ce88db533f271d10ba688a58 | [] | no_license | kotik98/Django_project | 1d541ba50fd185d91b4a26bf8b1c0e0092ad2c5f | 8a38251866634fc78326cb2f24b1180d4cd11d27 | refs/heads/master | 2020-03-18T04:28:31.800675 | 2018-06-27T02:39:15 | 2018-06-27T02:39:15 | 134,289,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 567 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2018-05-20 22:01
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Categ... | [
"zaharin.98@mail.ru"
] | zaharin.98@mail.ru |
51ab32e7659ebbeda4353ccf8bf2fb016e46f5c5 | 15c5405f241bdf4f66fcb0b3326caf1ea68d5b28 | /users/views.py | 7fd8b3d762069dcbba28b450e67547403b86c038 | [] | no_license | iamakshatthakur/finalproject | 58bbcba9713d1e44225e5b898aef4cbe9843ebc8 | a5db4148b2a79867528a4d9a8a53a05c22d89dcb | refs/heads/main | 2023-09-01T20:03:13.244647 | 2021-09-22T17:26:39 | 2021-09-22T17:26:39 | 397,888,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,634 | py | from django.shortcuts import render, redirect
from django.contrib.auth.models import User, auth
from django.contrib import messages
from django.http import Http404, HttpResponse, HttpResponseRedirect
from django.urls import reverse
from django.core.mail import send_mail
import re
regex1=re.compile('[@_!#$%^&*()<>?/\|}{... | [
"88833921+iamakshatthakur@users.noreply.github.com"
] | 88833921+iamakshatthakur@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.