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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
17ea649302209301276ebc8d0f8557d76d1c8a3c | 1b41f2e37d16576cd67343727ad62c8ce469ac3a | /files_and_directories.py | 65de912a296053ff6cb3be85cefe11a23f0e1286 | [] | no_license | Cuncis/Crawler | dc28f3f6351e057e5dc96d1094483737700dd4b4 | d49d140d8d540c84107bd056ca1fcc00df1ae754 | refs/heads/master | 2023-01-27T18:43:15.866071 | 2020-12-08T07:26:52 | 2020-12-08T07:26:52 | 319,517,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 482 | py | import requests
def request(url):
try:
return requests.get("http://" + url)
except requests.exceptions.ConnectionError:
pass
target_url = "192.168.1.107/DVWA/"
with open("/home/cuncis/Downloads/files-and-dirs-wordlist.txt", "r") as word_list:
for line in word_list:
word = line.st... | [
"karang.reksa@gmail.com"
] | karang.reksa@gmail.com |
1eefbf817b5f26087963e2a6eb5e6723b81af48e | 299638e691d263fd90aa75d2b58bac7f9935eb23 | /40 Challenging Python Programs/1_letter_counter.py | 2a0777c30ce51135e3b690e8553beca6536a23d6 | [] | no_license | ankitbanerjee0211/Python_Programming | d650c0dd508e7c51da0a6571d6674f13119f7c26 | 1013384f7bf90eba536b3218892ec9d6d6033739 | refs/heads/main | 2023-06-09T05:54:42.208083 | 2021-06-25T12:59:32 | 2021-06-25T12:59:32 | 379,597,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 724 | py | print("||| Welcome to the Letter Counter App |||\n")
name = input("What is yout name:").title()
print("Hello " + name + "!")
print("I will count the number of times that a specific letter occur in a message. \n")
message = input("Please enter a message: ")
letter = input("Which letter you like to count the occurrence... | [
"64202442+sanakkgec@users.noreply.github.com"
] | 64202442+sanakkgec@users.noreply.github.com |
c119987946003ffee661f92e47bec4950eb56b4a | 40c890270ff8dcdcce4006b4cfbc2ce9d7488992 | /accounts/migrations/0003_remove_city_city_id.py | 679ebf454dbd3248bef81a12d3ac1de9b949daab | [] | no_license | khanansha/Concierge_healthcare | d084cabcb0ad5a8fe6914357f31df26a678bfbbd | a7178797233ccccc2918b4f602eb2086239c1e3a | refs/heads/master | 2022-08-15T23:33:46.492016 | 2020-06-01T05:15:46 | 2020-06-01T05:15:46 | 264,127,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | # Generated by Django 2.0.2 on 2020-05-05 08:11
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('accounts', '0002_city'),
]
operations = [
migrations.RemoveField(
model_name='city',
name='city_id',
),
]
| [
"anjumkhan88987@gmail.com"
] | anjumkhan88987@gmail.com |
43f97e33e7e0ffe81805cf0f366dc587951fd7a7 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03242/s186722755.py | 1e12736a618aee1a0f1febb374b8dc0561b0b758 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | #k = int(input())
#s = input()
#a, b = map(int, input().split())
#s, t = map(str, input().split())
#l = list(map(int, input().split()))
#l = [list(map(int,input().split())) for i in range(n)]
#a = [list(input()) for _ in range(n)]
#a = [input() for _ in range(n)]
n = input()
for i in range(3):
if n[i] == "9":
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
92fdbccdfd0fc9f6975c00ee840161f5e714294f | 965ef7770b0efdf28ba1ab74e72598353060d256 | /ex19.2.py | bba7bf0979f9673338439ffb38f22e4cdda3d9a1 | [] | no_license | DikranHachikyan/CPYT210409-PLDA | 87dfca698212905b33b50a0564ae904911d7ff00 | 7ec99a7ef6082e8b58d5a79a66a7875837520d21 | refs/heads/master | 2023-04-18T04:46:38.231406 | 2021-04-28T10:05:08 | 2021-04-28T10:05:08 | 356,246,772 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 145 | py |
if __name__ == '__main__':
tp = 11, 12, 34, 56, 66
for value in tp:
print(f'value = {value}')
print('--- ---') | [
"dhachikian@expert-bg.org"
] | dhachikian@expert-bg.org |
911df8b2116e5e341cb8eff0e2c58d4698aca3cd | fa626683a115597a0a07853fbaaf58fa3b1b811e | /SPRINT1.py | a88d870e2464a6e956ddaa049b79e6171ca233a2 | [] | no_license | AndreChacham/laboratorio_medicao | 1f76500fcc7d5da994875e390b4b3d88f86b4850 | c9f55f91d5990d3a2872ecc8524674dd650aee82 | refs/heads/master | 2021-01-04T15:11:36.112445 | 2020-02-20T18:43:30 | 2020-02-20T18:43:30 | 240,607,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | import json
import requests
url = 'https://api.github.com/graphql'
api_token = 'dce3b4447251158c91e118c30a92e322df444650'
data = '{"query": "{ search(query:\\"stars:>100\\", type:REPOSITORY, first:100){ nodes { ... on Repository {nameWithOwner url createdAt updatedAt pullRequests{ totalCount } releases{ totalCo... | [
"noreply@github.com"
] | noreply@github.com |
d257b5b87299f18aed6ffda8d0085bb46c30103e | 0c6f666fdf7e2ba22f5a3ae16748920a3b8583ff | /main/forms.py | 7ec71db826a82359caf4bdd5587cf98660550eba | [] | no_license | rrabit42/Seoul1ro | 8e9f07fab5bbe247998beeea6b2776fb1e6016d5 | fdb30ef184cba553d3baaaabcceca2644c9dea78 | refs/heads/master | 2023-04-30T12:20:11.785273 | 2021-05-24T12:22:59 | 2021-05-24T12:22:59 | 369,833,280 | 1 | 3 | null | 2021-09-19T16:42:52 | 2021-05-22T14:49:04 | CSS | UTF-8 | Python | false | false | 159 | py | from django import forms
from main.models import Search
class InputForm(forms.ModelForm):
class Meta:
model = Search
fields = '__all__'
| [
"gegiraffe@gmail.com"
] | gegiraffe@gmail.com |
3addc44ed61563041a7beab364802e1122bf1d00 | ff7169873cc477d9e42da6fb8722470ea3d46cc6 | /RNG/models.py | 4a1a0f8bc2da33e1e9f565d80970e973881c3386 | [] | no_license | ross-johnstone/Rate-New-Games-RNG | 897a2d79373b1e1529c8f6d1dd09d9665a6f33a9 | 441e265c3ea20847740a60382ce1ada22374728c | refs/heads/master | 2022-09-26T11:54:39.726582 | 2020-06-03T17:05:46 | 2020-06-03T17:05:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,172 | py | #IMPORTS
from django.db import models
from django.db.models import Avg
from django.utils import timezone
from django.template.defaultfilters import slugify
from django.contrib.auth.models import AbstractUser
from django.core.validators import MaxValueValidator, MinValueValidator
class UserProfile(AbstractUser):
# ... | [
"noreply@github.com"
] | noreply@github.com |
e11d0d42a33fda8aee0452f8d655ef433ef90e97 | 388dc47e42b3974d69ec4d32f425a3a34d460427 | /config.py | de83d9cf357351850adeeb5346b0f5e768d793af | [] | no_license | cdgrubbs/IEX | fafec89e5455326bfa831a2bac02b10e40b3a3a1 | f66480b08a98beb71cd9ab866091828c1b2c48dd | refs/heads/master | 2022-10-05T05:20:47.224668 | 2020-06-07T05:42:08 | 2020-06-07T05:42:08 | 270,126,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | import os
sandbox_url = "https://sandbox.iexapis.com/stable/"
sandbox_sse_url = "https://sandbox-sse.iexapis.com/stable/"
base_url = "https://cloud.iexapis.com/stable/"
base_sse_url = "https://cloud-sse.iexapis.com/stable"
url = base_url
url_sse = base_sse_url
token = os.getenv("IEX_TOKEN") | [
"cdgrubbs@umich.edu"
] | cdgrubbs@umich.edu |
b86471df44987ddad8ca5a9469c749f17edd71fa | 901448fd6629adfde26585f5508cc2dd6c69b525 | /history_actions/models.py | dbb974a5e4b96debc792be80f5e5d83a6e5c8c71 | [
"MIT"
] | permissive | marcosschroh/django-history-actions | f55b769a5210a184ab6b80144f562d719612e4fb | fc29eee29ed4f6ba71a366783fefdbe223cbed21 | refs/heads/master | 2023-01-09T00:50:49.596978 | 2018-09-14T20:53:09 | 2018-09-14T20:53:09 | 147,671,830 | 2 | 0 | MIT | 2022-12-26T20:38:14 | 2018-09-06T12:41:32 | Python | UTF-8 | Python | false | false | 1,521 | py | # -*- coding: utf-8 -*-
from django.utils.translation import ugettext_lazy as _
from django.db import models
from model_utils.models import TimeStampedModel
class HistoryActions(TimeStampedModel):
author = models.CharField(max_length=64, help_text='Author of the action. Is username or System.')
actor = mode... | [
"schrohm@gmail.com"
] | schrohm@gmail.com |
374b70d5fab60f17e4bacda27c7848d32c4ce390 | 71f489472dcd3077f5dcb383926fa18f2b622c1c | /SerialCom.py | 182a6fd15ecb41c176e6b0b1d132bc469b16c1a2 | [] | no_license | Keaneo/VoiceActivatedRGBLights | 0bd3236c7b3cea736b151b6750aaa6a67b97ef7b | 3d0360e88329716d03ee8ae7d2d46f2ecd3c2ff1 | refs/heads/master | 2020-12-19T18:40:37.205604 | 2020-01-23T14:56:12 | 2020-01-23T14:56:12 | 235,817,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,432 | py | import serial
import time
import speech_recognition as sr
from pocketsphinx import LiveSpeech, get_model_path
import os
model_path = get_model_path()
s = serial.Serial('COM6')
time.sleep(2)
#s.write("g".encode())
def parse(text):
text.lower()
if "make the lights go" in text:
if "red" in ... | [
"noreply@github.com"
] | noreply@github.com |
924e9fbd74e4c31d7ce34382de6547c325b63046 | d54e09626e0ab0df63dae9a0afa2030b96964177 | /app/models.py | cada3e90e5f7e8db9d3df48b780c8d25a81454d0 | [] | no_license | naimahassan/news_api | 7c84c8b3d2d79e0a90f6cad253ad5175f8c30282 | 8831436a91493aa88b66b0514703d640a198fe27 | refs/heads/master | 2021-05-08T22:33:58.699471 | 2018-01-31T13:10:12 | 2018-01-31T13:10:12 | 119,046,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | class News:
'''
News object to define News object
'''
def __init__(self,source,author,title,description,url,urlToImage,publishedAt):
self.source = source
self.author = author
self.title = title
self.description = description
self.url = url
self.urlToImage ... | [
"hassannaima77@gmail.com"
] | hassannaima77@gmail.com |
0a34dd857a7b93bf5b7bda441a669b2fd4af80c6 | a189360771d93aa4bcfdfb9f7a794f770b557528 | /ch04/04math.py | 1e27e49063acd87d3434ea09921f2e113d401a0d | [] | no_license | kevin510610/Book_Python-Tensorflow_PoWen-Ko | 88402a6a9ae3da9fdba7858e56f9c364264854c0 | cbeede8ab566214da8fa5c5953f8ab85c2d23bb8 | refs/heads/master | 2023-04-04T05:37:52.283802 | 2021-04-13T03:09:24 | 2021-04-13T03:09:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | #!/usr/bin/env
__author__ = "Powen Ko, www.powenko.com"
a=5
b=2.2
print(a+b)
print(a-b)
print(a*2)
print(a/2)
print(a<<1)
print(a>>1)
print(a%3)
d=4.3
print(d/3)
print(d//3)
| [
"kevin510610@gmail.com"
] | kevin510610@gmail.com |
552d36c21e0d556ffc437bf7e0151e04ca3cfd8c | 50429847751c9c37779cc0f6db81a351a788a6bb | /venv/Scripts/tchai/tchai1.py | b7db525d7a70540e0794771787cfe0fc59dd0328 | [] | no_license | anaismn/TCHAI-ANAIS-MARDAMA | e2058e573a533023d1713413724f683d734eacd7 | 9b456e6207f5d99265a4ab76a37e6842e7790ac6 | refs/heads/master | 2023-02-23T10:37:21.584143 | 2021-01-26T19:30:37 | 2021-01-26T19:30:37 | 332,715,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,876 | py | from flask import *
import datetime
import operator
app = Flask(__name__)
transactions = []
#
# class Transaction:
# def __init__(self, P1, P2, a, t):
# self.P1 = P1 # Personne 1
# self.P2 = P2 # Personne 2
# self.a = a # somme d'agent transféré
# self.t = t # moment t
#
# tuple1 = ("abc", 34, True, 40, "male... | [
"a.mardama@rt-iut.re"
] | a.mardama@rt-iut.re |
9ecb7d2b9c852e7c36585d64fafb4e7a769fb649 | fe24b009913d625f8dca547cf5a3956514678e04 | /supervisely_lib/geometry/pointcloud.py | 0833d6de928cda9c829e1b76ffb1c1f49f53bf6d | [] | no_license | ai-motive/supervisely | 6fed135b27afe166627c24bbee811d07053bd0e0 | f6ef26cbb8a5f3457f97b2db600a442aa03aa5d2 | refs/heads/master | 2023-07-13T21:36:00.541608 | 2021-08-24T03:05:07 | 2021-08-24T03:05:07 | 372,686,196 | 1 | 0 | null | 2021-06-01T03:05:10 | 2021-06-01T03:05:09 | null | UTF-8 | Python | false | false | 1,335 | py | # coding: utf-8
from supervisely_lib.geometry.constants import LABELER_LOGIN, UPDATED_AT, CREATED_AT, ID, CLASS_ID, INDICES
from supervisely_lib.geometry.geometry import Geometry
class Pointcloud(Geometry):
@staticmethod
def geometry_name():
return 'point_cloud'
def __init__(self, indices, sly_i... | [
"max@supervise.ly"
] | max@supervise.ly |
4e2e690cffc6ea0a5b52591b5a5e0a009dcd358c | 882c2b3c410b838372d43e431d1ccd6e02ba45f6 | /CE/AlMgSiX_FCC/fit_normal_ce.py | 511a540b3be842951dfe083c03285d25100530dc | [] | no_license | davidkleiven/GPAWTutorial | d46f7b8750172ba5ff36ccc27f97089cac94fd95 | 0bffc300df1d048142559855d3ccb9d0d8074d2e | refs/heads/master | 2021-06-08T05:44:42.784850 | 2021-02-25T10:23:28 | 2021-02-25T10:23:28 | 98,557,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,425 | py | from clease.data_manager import CorrFuncEnergyDataManager
from clease import PhysicalRidge
from clease.physical_ridge import random_cv_hyper_opt
import numpy as np
import re
import json
db_name = "data/almgsiX_clease_voldep.db"
manager = CorrFuncEnergyDataManager(
db_name, "binary_linear_cf"
)
X, y = manager.get_... | [
"davidkleiven446@gmail.com"
] | davidkleiven446@gmail.com |
ae7c02d0634e195e2f5f16fff2e7f39cf0af80bf | a2b7fba22a16f379ccca2e38d9d6291b9562abc3 | /Graph Theory/Shortest Path/Dijkstra_Adj_List.py | 5c2f782bdc48fbbc9154089714557f45d4c33b37 | [] | no_license | neelamy/Algorithm | 565c1cea72715745653e90a3dabbba1e9e283fd8 | 7c9f53ff27bcb840b9dbc20d520f003f4d76fe17 | refs/heads/master | 2020-06-10T15:53:12.967832 | 2017-07-18T07:59:32 | 2017-07-18T07:59:32 | 75,953,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,384 | py | # Python program for Dijkstra algorithm to find shortest path
# from source in undirected graph
# The program is for adjacency list representation of the graph
#Complexity : O(V(V+E))
from collections import defaultdict
#Class to represent a graph
class Graph:
def __init__(self,vertices):
self.V= vertices #No. o... | [
"neelamyadav.jss@gmail.com"
] | neelamyadav.jss@gmail.com |
8c718a33f548a45817a6cd05154b9cb7c371f9bf | 1af49694004c6fbc31deada5618dae37255ce978 | /build/fuchsia/common_args.py | f23e8eb74946cbee6e9fc4235e82efbcc3bc8002 | [
"BSD-3-Clause"
] | permissive | sadrulhc/chromium | 59682b173a00269ed036eee5ebfa317ba3a770cc | a4b950c23db47a0fdd63549cccf9ac8acd8e2c41 | refs/heads/master | 2023-02-02T07:59:20.295144 | 2020-12-01T21:32:32 | 2020-12-01T21:32:32 | 317,678,056 | 3 | 0 | BSD-3-Clause | 2020-12-01T21:56:26 | 2020-12-01T21:56:25 | null | UTF-8 | Python | false | false | 6,550 | py | # Copyright 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import argparse
import importlib
import logging
import os
import sys
from common import GetHostArchFromPlatform
def _AddTargetSpecificationArgs(arg_parser... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
9a29514981517e14e9d56da464497502f36a5b60 | fbe787892572c911a3dad0aacf11e0edf42bec25 | /actor_critic/actor_critic_baselines.py | 0b5e89ed012a03428429125bc460bb332b73c42f | [] | no_license | vwxyzjn/tensorflow-beginner | edebed5238cc687d96bd2cd5120de0a135a159a5 | 4b76d2dae96ca57ac90a4a6cf0c2935d6f390be8 | refs/heads/master | 2020-05-09T23:23:17.459116 | 2019-04-15T14:21:29 | 2019-04-15T14:21:29 | 181,499,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,402 | py | import argparse
import gym
import numpy as np
from stable_baselines.deepq import DQN, MlpPolicy
def callback(lcl, _glb):
"""
The callback function for logging and saving
:param lcl: (dict) the local variables
:param _glb: (dict) the global variables
:return: (bool) is solved
"""
# stop t... | [
"costa.huang@outlook.com"
] | costa.huang@outlook.com |
1a06be868e7f03b26651d74384037251d4927bf7 | cd84e972860704f1f371c7b0fe29cfa94c71e659 | /pretreatment.py | 5b59e53884603d75544102f08cacbdc9b861bc27 | [] | no_license | KennChow/GaitRecognition | 33bbbbb148a7b036fe652c2f88daa9860cd10389 | 1366cac7eee1a09c04ef08e1a49e0c0e8133cebf | refs/heads/master | 2023-06-30T22:49:19.820881 | 2021-07-31T13:58:17 | 2021-07-31T13:58:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,217 | py | # -*- coding: utf-8 -*-
# @Author : Abner
# @Time : 2018/12/19
import os
from scipy import misc as scisc
import cv2
import numpy as np
from warnings import warn
from time import sleep
import argparse
from multiprocessing import Pool
from multiprocessing import TimeoutError as MP_TimeoutError
START = "START"
FINI... | [
"qs418209696@163.com"
] | qs418209696@163.com |
284205ed4218df19567049e306fd5c73017a212c | e66619a4062a292ba7ee9889cbd26f24fd4c22b5 | /examples/simple_gap_follower.py | dc7213033d40f46db07deb954a9a9a116357ce38 | [
"MIT"
] | permissive | RuiqiZhang99/racecar_gym | 7d590db8f298663791da7fffe91697d1a1031408 | 84cbfad84b282149400f7e944ae309084adaeab2 | refs/heads/main | 2023-06-28T03:19:20.104357 | 2021-08-01T05:02:43 | 2021-08-01T05:02:43 | 370,091,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 729 | py | from agents.gap_follower import GapFollower
from time import sleep
from racecar_gym import MultiAgentScenario
from racecar_gym.envs import MultiAgentRaceEnv
scenario = MultiAgentScenario.from_spec("scenarios/custom.yml", rendering=True)
env = MultiAgentRaceEnv(scenario=scenario)
agent = GapFollower(fixed_speed=False)... | [
"1854136@tongji.edu.cn"
] | 1854136@tongji.edu.cn |
cbe2f4fb4bc9585cb7d499ad66ecb249f6693441 | be7949a09fa8526299b42c4c27adbe72d59d2201 | /cnns/nnlib/robustness/channels/channels_svd_examples.py | 2a1d990426dabdcc224b92b08bdf79151201e3ba | [
"Apache-2.0"
] | permissive | adam-dziedzic/bandlimited-cnns | 375b5cccc7ab0f23d2fbdec4dead3bf81019f0b4 | 81aaa27f1dd9ea3d7d62b661dac40cac6c1ef77a | refs/heads/master | 2022-11-25T05:40:55.044920 | 2020-06-07T16:14:34 | 2020-06-07T16:14:34 | 125,884,603 | 17 | 5 | Apache-2.0 | 2022-11-21T21:01:46 | 2018-03-19T16:02:57 | Jupyter Notebook | UTF-8 | Python | false | false | 419 | py | import sys
import numpy
import foolbox
from numpy.linalg import svd
numpy.set_printoptions(threshold=sys.maxsize)
image, label = foolbox.utils.samples(
dataset='cifar10', index=0, batchsize=1, data_format='channels_first')
image = image / 255 # # division by 255 to convert [0, 255] to [0, 1]
u, s, vh = svd(a=ima... | [
"adam.dziedzi@gmail.com"
] | adam.dziedzi@gmail.com |
3b2c55f9cec27451d0b1b40d9a02dae00b56f406 | 3592ab954f1c6222488f98145611b31c65e4cbb1 | /ark/are/state_service.py | d48b2c2b3f392d470283ae36167d17281fb60663 | [
"MIT"
] | permissive | xia7410/ARK | e76c083dfa3ccb55023a82238cc3602e1be73cf0 | 1242969c03e113ea03e25d245a0c9a448c8fa9b4 | refs/heads/master | 2020-04-14T10:48:53.839135 | 2018-12-28T09:13:42 | 2018-12-28T09:13:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,181 | py | # -*- coding: UTF-8 -*-
################################################################################
#
# Copyright (c) 2018 Baidu.com, Inc. All Rights Reserved
#
################################################################################
"""
**state_service** 状态展示模块,用于对支持中的状态进行展示,返回json数据
.. Note:: 当前只提供了根据op... | [
"noreply@github.com"
] | noreply@github.com |
31aec23ecdfa187a48c29120276e4f8366771eae | 038af1bfd275530413a7b4e28bf0e40eddf632c6 | /parsifal/apps/reviews/migrations/0032_auto_20151006_0619.py | 1bbe293f14044c44f5fc91de120586c344cc84f0 | [
"MIT"
] | permissive | vitorfs/parsifal | 5c5345ff75b48c5596977c8e0a9c4c537ed4726c | 68c3ce3623a210a9c649a27f9d21ae6130541ea9 | refs/heads/dev | 2023-05-24T16:34:31.899776 | 2022-08-14T16:30:06 | 2022-08-14T16:30:06 | 11,648,402 | 410 | 223 | MIT | 2023-05-22T10:47:20 | 2013-07-25T00:27:21 | Python | UTF-8 | Python | false | false | 456 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('reviews', '0031_article_selection_criteria'),
]
operations = [
migrations.RemoveField(
model_name='customarticle... | [
"vitorfs@gmail.com"
] | vitorfs@gmail.com |
90d030e0aa07b3e43d0a019006b657649c9e1a90 | 69bf012ca88897cd87535701369f2b87c6522d57 | /modules/templates/Turkey/controllers.py | 116b2c9dde78a45c4e7ab6f6036bd9c90510e8ba | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | sahana/eden | e2cc73f6b34a2ab6579094da09367a9f0be10fd1 | 1cb5a76f36fb45fa636577e2ee5a9aa39f35b391 | refs/heads/master | 2023-08-20T20:56:57.404752 | 2023-02-24T17:16:47 | 2023-02-24T17:16:47 | 3,021,325 | 227 | 253 | NOASSERTION | 2023-01-10T10:32:33 | 2011-12-20T17:49:16 | Python | UTF-8 | Python | false | false | 2,364 | py | # -*- coding: utf-8 -*-
from gluon import *
from s3 import S3CustomController
THEME = "Turkey"
# =============================================================================
class index(S3CustomController):
""" Custom Home Page """
def __call__(self):
output = {}
# Allow editing of page c... | [
"fran@aidiq.com"
] | fran@aidiq.com |
c77cb9f8ed781540b7ae2a5781be24fdeea65338 | 7bef52a1ea2e2b616201a58912c2cab05f1aba9e | /discordbot.py | 9ca4211398b967c9f0d4f81910908c225d0f3b24 | [
"MIT"
] | permissive | andresindlp/strava-club-mileage | 51eaf990dac6c1f4556c847239775adceafd89e1 | ab65be593b7640f59f7ad62471cb4e72ef51d94d | refs/heads/main | 2023-04-06T23:21:02.735866 | 2021-04-14T20:19:08 | 2021-04-14T20:19:08 | 357,991,798 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,817 | py | import os
import json
import time
import discord
from discord.ext import commands
import webbrowser
import requests
from requests.structures import CaseInsensitiveDict
# Strava API Key
api_key = os.environ.get('strava-api', None)
# Bot Prefix
bot = commands.Bot(command_prefix='!')
# Club Codes
codesF... | [
"noreply@github.com"
] | noreply@github.com |
0849a504d391855b21f71a7e72cfc0ad9a862c6e | eb7df45ee652d07612220ff49ae5d33729e9ef8c | /Gifts_Fixing.py | a632ae30f63dbad0295591a16d7af75be153a0de | [] | no_license | sameershaikh8991/codeforce | e916c9a0af1161f8af4cbd93c06e8f3bf422aafe | f85d8b24ee7fed07d9fdecb48303f81884253dbf | refs/heads/main | 2023-06-27T05:23:41.224475 | 2021-08-02T05:05:47 | 2021-08-02T05:05:47 | 353,930,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | for t in range(int(input())):
g =int(input())
a = list(map(int, input().split()))
b = list(map(int, input().split()))
min_a = min(a)
min_b = min(b)
d1= 0
d2 =0
total=0
for i in range(g):
d1 = a[i] - min_a
d2 = b[i] - min_b
total+= max(d1,d2)
print(total)
| [
"sameershaikh8991@gmail.com"
] | sameershaikh8991@gmail.com |
4911aa2d0d900d248648eafe69addf6919b82d92 | 5e5a8270f07ac3ca2017b2c4c0fdc903bb4fc25e | /src/pybel/parser/parse_control.py | 68c6188e7122a05ea42131ba5919233217c87b46 | [
"Apache-2.0"
] | permissive | nsoranzo/pybel | 37f2553103ba721925d49a7fafbd1b0b3177a936 | 3663d24614124509871043d9d411ed400ddba385 | refs/heads/master | 2021-01-18T11:33:28.069016 | 2017-03-08T00:00:32 | 2017-03-08T00:00:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,538 | py | # -*- coding: utf-8 -*-
"""
Control Parser
~~~~~~~~~~~~~~
This module handles parsing control statement, which add annotations and namespaces to the document.
See: https://wiki.openbel.org/display/BLD/Control+Records
"""
import logging
import re
from pyparsing import Suppress, MatchFirst
from pyparsing import pypar... | [
"cthoyt@gmail.com"
] | cthoyt@gmail.com |
27c3cf0cfc2899972cb9c466686a6a8e0a9822a2 | 385295df7d11f258efb0500401e9e2837e143b37 | /django/st01/blog/views.py | 1458eb2af3cc920c3659e93203de4397bf806b03 | [] | no_license | ysjwdaypm/study | 7f4b2a032f30ee6c9481ef3d9f180f947c8167c1 | 61059a4363928e023f3a0fa9f7b3ea726b953f96 | refs/heads/master | 2020-12-25T05:54:56.392792 | 2016-07-06T08:24:39 | 2016-07-06T08:24:39 | 62,702,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,503 | py | # coding=utf-8
from django.shortcuts import render,render_to_response
from django.http import HttpResponse
from django.template import loader,Context,Template
import json,time,sys
import pytz, datetime
from models import Person,BagManager
from django.template import RequestContext
# Create your views here.
reload(sy... | [
"ysjwdaypm@163.com"
] | ysjwdaypm@163.com |
d47af164395da6a73696a7a6dc1a44971a13c482 | 3dfee0fa334b8a638885e5a55a6ba390d7092cb3 | /intro.py | c7ecd807a72c069d1632abdfb73336e14cc0fc2e | [] | no_license | ardnerann/py_practice | 507dddfa14cd9cef7573eaf3207819188ee48b65 | 53f42f7222ab9e50fbc7b737cfc2f45a892106bd | refs/heads/master | 2020-07-14T01:58:13.592659 | 2019-08-30T02:15:02 | 2019-08-30T02:15:02 | 205,207,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | # Ini str
# nama = 'Andi'
# print(nama)
# print(type(nama))
# Ini int
# usia = 22
# usia = 32
# print(usia)
# print(type(usia))
jomblo = True
jomblo = False
print(jomblo)
print(type(jomblo)) | [
"noreply@github.com"
] | noreply@github.com |
16cbf53b9b2896f6a1a05e460cdd75c007ab83a6 | 575c63255ce7a70c6f382391967d130e51e1d2e5 | /beginner/pandas_foundation/summary/exploratory.py | 2875024e3f1a25487c0dd8f532208be82058f18b | [] | no_license | grommy/data_science_tutorial | 23896fe8876fb1152b6215aa07f898ade1e3544c | 0b92f9402b62baf6402913fe30a1c7266d6c982f | refs/heads/master | 2021-01-01T20:42:51.257309 | 2018-01-20T20:16:32 | 2018-01-20T20:16:32 | 98,913,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,897 | py | # Import pandas
import pandas as pd
data_file = "../DataSets/NOAA_QCLCD_2011_hourly_13904.txt"
# Read in the data file: df
df = pd.read_csv(data_file)
# Print the output of df.head()
print(df.head())
# Read in the data file with header=None: df_headers
df_headers = pd.read_csv(data_file, header=None)
column_labels... | [
"kondratyev.n@gmail.com"
] | kondratyev.n@gmail.com |
4cc68d27a0e50d93ab08c5b5ade518c323cee973 | 2e4a2ffeb69d5e1760fc10821fc7450ee46a443b | /DRF_Example/settings.py | 18b3ba39f6afe7d9fe29065ec66504e3df61dadc | [] | no_license | techcure/DRF_Example | f6593e45a5155c58422256e5c669e9821b7350da | 87c2fe41eeb8f55132e5e704a1555c73736f0298 | refs/heads/master | 2023-01-31T19:31:55.836298 | 2020-12-12T15:14:51 | 2020-12-12T15:14:51 | 320,022,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,493 | py | """
Django settings for DRF_Example project.
Generated by 'django-admin startproject' using Django 3.0.7.
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 o... | [
"gpendare@gmail.com"
] | gpendare@gmail.com |
0cb52ee927bbaca21461d7e6b79f25b72b7c9b48 | b0552feef2ec4e0304746ada1f4e0959fd45bda1 | /app/models/config.py | 41c79adc8ff2b8344b10bbb547a7c860d9fc2b32 | [] | no_license | TimothyWang56/game-board-backend | 388a73ff8cd96c6d5a53375114a10af3927897e9 | 0e2480c22d498b53e5fac925a9c7725e3e2e1764 | refs/heads/master | 2023-01-14T16:12:07.108745 | 2020-11-16T22:08:14 | 2020-11-16T22:08:14 | 308,168,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29 | py | SECRET_KEY = "imthesecretkey" | [
"timothywang56@gmail.com"
] | timothywang56@gmail.com |
b5ee338248c1b7f869dddec99ed5846f3f607ab1 | 150165e567dae5107613d8c910de12d4e538a9c9 | /butler/wsgi.py | 2e32db0383a5fb55364e1156b0f607a7e9655aae | [] | no_license | sephbin/butler | 18060e514cfd0c90220bd72e678161c3d9af61c1 | 161b8ef85a8a18f7968b4b63b480d87a3b80f3fb | refs/heads/master | 2020-07-22T01:59:23.360749 | 2019-09-08T00:39:51 | 2019-09-08T00:39:51 | 207,040,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
WSGI config for butler project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTIN... | [
"sephbin@gmail.com"
] | sephbin@gmail.com |
54fe171c7b2fb4aa6626430d354987d29a20d42b | c3c51ba1a2981bba05f2a82ff3b536bbcc6e72b5 | /owtf/managers/plugin.py | 78817a192682a39cc3ee50a48a75030a9b1e062a | [
"BSD-3-Clause"
] | permissive | alienus/owtf | 83761a501e21f768eba7a2dc272d03e6bd201be1 | b6d81fac83c324c2b8c6fe2a974c036881c1fcd0 | refs/heads/master | 2021-04-28T09:06:41.048563 | 2018-02-20T05:27:57 | 2018-02-20T05:27:57 | 122,031,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,507 | py | """
owtf.db.plugin_manager
This module manages the plugins and their dependencies
"""
import imp
import json
import os
from sqlalchemy import or_
from owtf.db import models
from owtf.settings import PLUGINS_DIR
from owtf.utils.error import abort_framework
from owtf.utils.file import FileOperations
from owtf.utils.t... | [
"bradleywitcher@gmail.com"
] | bradleywitcher@gmail.com |
fa7015c18173c8a931ff6c751751a7239af9abaa | 5f2d8eb2bc6f792b0b5af3a134ba074e8986e9de | /[6]CaesarEncryptedTcpChat/caesarTcpClient.py | 409d8b291a37669cd5426ee2af927582a77afa59 | [] | no_license | StupidSexyFlanders/100-Red-Team-Projects | 6582b7f736695361ffb6f5bf4ea16592c9afddf4 | 6f6a6f56542c12b38f2b040c82f2293e4fc606ad | refs/heads/main | 2023-08-27T05:03:37.787739 | 2021-11-06T15:03:42 | 2021-11-06T15:03:42 | 415,486,655 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,521 | py | import socket
import select
import sys
import json
base_alphabet = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', ' ']
specialCharacters = ['!', '@', '#', '$', '%', '^', '&', '*', '(', ')', '_', '-', '+', '=', '{', '}', '\\', ',', '|',... | [
"nicholasoxw@gmail.com"
] | nicholasoxw@gmail.com |
5db3656720a59735381b95f41d8889a181cf6f3d | 25022cc3cff8a31cead2dc17b5c40fef1f9825c2 | /0x0F-python-object_relational_mapping/8-model_state_fetch_first.py | 125392bf53ffc8ea74e919d553bc723e92ec6bc5 | [] | no_license | 821-N/holbertonschool-higher_level_programming | 699032f42d5a94065c63c453774c532945e5807c | bfd43a2919c1d2cf63d964a1ded41e2252e83ccd | refs/heads/master | 2020-07-23T18:38:49.325003 | 2020-02-14T04:56:43 | 2020-02-14T04:56:43 | 207,669,574 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | #!/usr/bin/python3
"""
get all states
"""
import sys
from model_state import Base, State
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
if __name__ == "__main__":
engine = create_engine(
"mysql+mysqldb://" + sys.argv[1] +
":" + sys.argv[2] +
"@localhost/"... | [
"nathaniel.marofsky@gmail.com"
] | nathaniel.marofsky@gmail.com |
6902402d47e80bdddb3c714445dac8397b4ca256 | 98f05737c7bbf70351ef7977ae74696d980deac9 | /PythonGame/Noose_Experiments/GameFunctions.py | f6983b3e9aa45fe59a22260dfb713d2b86d25838 | [] | no_license | steelbath/gameMitPlebs | 3b16adf6b19fb2044697538f2ad4c543e6cbb7a8 | 925f9bfe20ff25c12bde180956e0258ae9c75bc3 | refs/heads/master | 2020-12-29T09:25:18.450045 | 2020-02-21T17:26:47 | 2020-02-21T17:26:47 | 238,554,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,606 | py | import pygame as pg
import sys
#compare signs true if same
def csign(a,b):
return a >= 0 and b >= 0 or a < 0 and b < 0
def check_events(P1):
for event in pg.event.get():
if event.type==pg.QUIT:
sys.exit()
if event.type == pg.KEYDOWN:
if event.key == pg.K_... | [
"horizonation@gmx.de"
] | horizonation@gmx.de |
1e83c198941a4a3cbebc5e75d32f923862905ece | c6c8e0d339afedf0e9c4a979999e557af5f3ae0e | /CIFAR10_RESNET18_GRADCAM/models/model_s7.py | 272c4af16429ca85881c405b7ad08c1937a670d5 | [] | no_license | nkanungo/EVA6 | 8073e16270fdd69e8384f8a7ef55263b78c10b48 | 31aada41d3274960eeac846fcf4f4d41377810c1 | refs/heads/main | 2023-08-15T13:39:27.534039 | 2021-10-03T17:43:02 | 2021-10-03T17:43:02 | 362,521,315 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,071 | py | import torch.nn as nn
import torch.nn.functional as F
class Net(nn.Module):
def __init__(self):
super(Net, self).__init__()
dropout_prob=0.025
self.conv1 = nn.Sequential(
nn.Conv2d(3, 64, 3, padding=1, bias=False), # Output= 32, RF=3, Jump =1
nn.ReLU(),
... | [
"nihar.kanungo@gmail.com"
] | nihar.kanungo@gmail.com |
9e606134713ad0f151b6ce09024be7a2e237d1a0 | f22c6db8ff0258f9c7a901fc4c1e59e7ef402ab7 | /dictionary.py | bcd28648ad7a01773e7329d39df97a548fbf12a7 | [] | no_license | Alt3mplar/Aqua_Bot | 05acace1fb4f664072b18e6186575f5edf8ebbbf | a8074b378208202734ed73ee14ec9669a1c9c76d | refs/heads/master | 2020-12-13T13:33:24.026335 | 2020-01-17T21:39:02 | 2020-01-17T21:39:02 | 234,433,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | from bs4 import BeautifulSoup as bs
import re
from requests import get
class Dictionary:
def remove_non_ascii(self,text):
return re.sub(r'[^\x00-\x7F]+','', text)
def get_soup(self,url):
raw = self.remove_non_ascii(get(url).content)
soup = bs(raw)
return soup.select("#MainTxt")[0].select('.ds-sing... | [
"noreply@github.com"
] | noreply@github.com |
398f50ba12325754c88d67918a5cfdd8abb18a4b | 39561c2ea15f05ff047d99ec46f1064b65701f7d | /assignment1.py | 6850e352d29b8eaa43ec2ad260769ffd5261ee15 | [] | no_license | Elpida99/Credit-Card-Fraud-Neural-Network | d9d4870159261132627c45af24e82e66712a2410 | ae0e39de09e08b329ddbaa7b0522e1d0d9c0aaeb | refs/heads/main | 2023-06-01T23:34:58.290543 | 2021-06-15T14:36:54 | 2021-06-15T14:36:54 | 317,616,044 | 0 | 0 | null | 2021-06-15T14:37:32 | 2020-12-01T17:22:52 | Python | UTF-8 | Python | false | false | 3,088 | py | """
Elpida Makri - it21735
"""
import pandas as pd
import numpy as np
from sklearn.model_selection import train_test_split
from sklearn.metrics import precision_score, recall_score, f1_score, accuracy_score
from sklearn.preprocessing import StandardScaler
from tensorflow import keras
from tensorflow.keras import layers... | [
"noreply@github.com"
] | noreply@github.com |
d51b2da556546507346d30ed8f04cc8ce3657fb9 | 0852b622ab77a1ada93493a5956d0548882f10ea | /Scripts/Fig5/make_VBC_dict_fromModel_Apr1.py | 5c1a4a12d36c1162afe0c23a2d34a112b81c3657 | [] | no_license | GMichlits/VBC-Score-old1st_Submission | 2f1e44fe20f675d0f02e7d05890eafa68285f73d | 03a9f7528b6a9a0c9b2911737fe0a20b473a78f8 | refs/heads/master | 2020-05-15T11:24:18.322697 | 2019-10-08T13:45:58 | 2019-10-08T13:45:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,108 | py |
__author__ = 'georg.michlits'
import matplotlib.pyplot as plt
import numpy as np
import pickle
import os
from scipy import stats
from sklearn.linear_model import LinearRegression
from sklearn.model_selection import train_test_split
Species = 'Hm'
model_input = 'all_rel.sav'
Output_name = Species + '_make_Apr1_VBC_sc... | [
"noreply@github.com"
] | noreply@github.com |
315b6d979f8dec48f81072a99a75bf1e879cb166 | 71f02f65abed2b410f002918918a31dcb0d16601 | /Python程序/pillow操作图片/转变图片格式.py | 68362d7fa01df63276026bb45fadc37f0fda41ce | [] | no_license | 142296/- | bd9db28e9000b3e01cba986716963c24e8bd24fc | 23ba488189a797cea0e8fbda7e65a3274968ba80 | refs/heads/master | 2023-03-28T12:17:51.425946 | 2021-03-25T02:25:39 | 2021-03-25T02:25:39 | 351,279,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | with open('1.jpg','rb') as fr:
with open('new.ico','wb') as fw:
fw.write(fr.read())
| [
"1422968413@qq.com"
] | 1422968413@qq.com |
3b02e4354f8172061f5b2d9d2ae89dda05f623b3 | 967054c5f0b1730fe689d9af1536d89d0eaa8a5c | /ClassViews_django/urls.py | bea2724c59769d75dc537591d2d37b5b327025ac | [] | no_license | laharikaneelam/CRUD_using_views | ba9e26c25a5cf6ec3f9b13eb3a7486ad0d6d715d | edbbcb81e57d17ad4b1247ee6f497a4bc94b7e14 | refs/heads/master | 2023-04-23T01:42:51.938166 | 2021-04-27T10:30:52 | 2021-04-27T10:30:52 | 362,064,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 800 | py | """ClassViews_django 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')
C... | [
""
] | |
27310725b137f566a801d836a1ffa7e49a7b46f5 | d25d171afaacab350af541e6d96fc4f326ab741c | /cloneapp/apps.py | 612595b4b1415e9859cd57d81a0dea8948154218 | [
"MIT"
] | permissive | Daniel-Muruthi/instagramclone | 9ac2db249acc936546b220e04f81438c913f089b | 02438446f50dab7003b0606ad197efeabd5b19ff | refs/heads/master | 2023-08-19T16:08:56.397266 | 2021-10-23T21:17:15 | 2021-10-23T21:17:15 | 417,392,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | from django.apps import AppConfig
class CloneappConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'cloneapp'
| [
"daniel.muruthi@student.moringaschool.com"
] | daniel.muruthi@student.moringaschool.com |
1c1222818c68a996b6662592e5625b50f0d1d55d | f8443d09e0e57f68bf7d3ab71935164e34bff2a3 | /screenwriter/data_utils.py | d737a48f0d5697ca7b4a78d99881302c155f7ca8 | [] | no_license | vipermu/screenwriter | 3bc389d7a5aef89c246bd9b5936769e7bb92f9da | b2053d62e52369ab660e881bca3da1291ab5c221 | refs/heads/master | 2023-01-29T05:30:56.009083 | 2020-11-28T15:38:15 | 2020-11-28T15:38:15 | 297,672,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,629 | py | import re
from typing import *
punctuation = ['?', '!', '...', '-']
def remove_pagination(text: str,) -> str:
"""
Removes pagination if exist from the input text.
Args:
text (str): text to processs.
Returns:
str: processed text.
"""
processed_text = re.sub("^\d+\.", "", text... | [
"vipermu97@gmail.com"
] | vipermu97@gmail.com |
3ce72250025b94e8864b7f1f307db8f7b8c7ef73 | 3a0430831f3f9fc551ce02f625318754c17a5357 | /app/database/tables.py | e26bf8c2f915d4db3512c9b8a8e20ed0ced8fc7a | [
"Apache-2.0",
"MIT"
] | permissive | victor-iyi/heart-disease | 8589409388495029a2219c08fad57e0941bfbff1 | 06540b582e8752d2bb6a32366077872d32d7c0e4 | refs/heads/master | 2023-08-03T11:18:37.711933 | 2021-09-19T16:30:05 | 2021-09-19T16:30:05 | 363,746,469 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,535 | py | # Copyright 2021 Victor I. Afolabi
#
# 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 in wri... | [
"javafolabi@gmail.com"
] | javafolabi@gmail.com |
1d66174523025aff8645ae370b76a48e039bd57f | 3de6f7f6d8497e728101c368ec778e67f769bd6c | /notes/algo-ds-practice/problems/list/copy_list_random_pointer.py | 50fdca295a2b01ae01f62fd4ce46c8ebe212ba04 | [
"MIT"
] | permissive | arnabs542/interview-notes | 1fceae0cafa74ef23d0ce434e2bc8e85c4c76fdd | 65af75e2b5725894fa5e13bb5cd9ecf152a0d652 | refs/heads/master | 2023-01-03T06:38:59.410704 | 2020-10-25T06:49:43 | 2020-10-25T06:49:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,522 | py | '''
You are given a linked list with one pointer of each node pointing to the next node just like the usual.
Every node, however, also has a second pointer that can point to any node in the list.
Now write a program to deep copy this list.
Solution 1:
First backup all the nodes' next pointers node to another array.
n... | [
"ajaggi@linkedin.com"
] | ajaggi@linkedin.com |
7e453e33d11ca70dd0c0e0a8a68f330cc872b8d5 | c2e5ca44dc8d9121afa1d393f920e821efa031d1 | /Main.py | a63bcba8e90c6f68e8a6a191f9d3a0a7a2fad345 | [] | no_license | 394481125/GRU-attention-Form | bec5c09abc0990cb4b93dfa16d28ab59ca3b6d64 | b7e30240fb5e0145688ee7b9ba5743c1765b6793 | refs/heads/main | 2023-04-21T16:36:10.215141 | 2021-05-10T08:06:37 | 2021-05-10T08:06:37 | 361,757,296 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 12,441 | py | from Dataset import VideoDataset
import torchvision.transforms as transforms
import torch
from torch.autograd import Variable
from Models import Spatial_TemporalNet
import torch.backends.cudnn as cudnn
import time
import os
import datetime
import numpy as np
import pandas as pd
import torch.nn as nn
from tqdm import tq... | [
"394481125@qq.com"
] | 394481125@qq.com |
d542d7644c15f2169d56072743bb5b79dbcf26b2 | b33ffd0be52cecb2b829b4df15f2fe8e1e65c4e6 | /bruteforce.py | eb335cfbf49aa94fbafc66281ac112bdd512894c | [
"MIT"
] | permissive | Sneak71/ROT13-Cracker | 31f75a154c9db6b995b99361ab0da8fbe67cac98 | 4e80628e7182e61241aabc8705f80d1773713fda | refs/heads/master | 2022-10-13T17:05:04.317158 | 2020-06-14T10:10:52 | 2020-06-14T10:10:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | # Created by LimerBoy
import core.rot13 as rot13
message = input("[?] Please enter ROT13 encoded message to bruteforce: ")
for char in range(1, 26):
result = rot13.decode(message, char)
print(f"[{char}] {result}")
| [
"noreply@github.com"
] | noreply@github.com |
f6ce1bc3f61411540a92492e7f4bae6f025ff830 | 207beb8f407046ab8064c4034acc1add663e2930 | /Hlwbks/Hlwbks/settings.py | 550364c8f62dee72ba4df7cf0e234247035f4440 | [] | no_license | hl920825/hlwbk | 14da25f7b9cebf848115427071d04e7dc84b62c7 | 96006e6c9d1d29971ee46c18122c8c7b061badfa | refs/heads/master | 2020-04-22T00:04:12.451904 | 2019-02-16T09:01:31 | 2019-02-16T09:01:31 | 169,966,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,603 | py | """
Django settings for Hlwbks project.
Generated by 'django-admin startproject' using Django 1.11.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
#... | [
"451727279@qq.com"
] | 451727279@qq.com |
9b24dfb34e040ff3f6c8690de5fca712918e0417 | 6ef9974159b04cb1fa7372a275b362149021f2c6 | /1N1TOne_EYE/GooGle_Bot.py | 5d3ec390661962a6de910060b826710e9570ba13 | [] | no_license | zakriper/1N1TOne_EYE | c4ae395969aec888030335c46d34096842036a91 | 4a727f67d866bdcac31766d2e1e27594e1088d27 | refs/heads/main | 2023-07-10T23:10:56.404633 | 2021-08-08T21:58:48 | 2021-08-08T21:58:48 | 393,958,870 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,639 | py | import requests
from bs4 import BeautifulSoup
from Color import bcolors
import re
import urllib3
urllib3.disable_warnings()
class Google_search:
email_list = []
facebook = []
instagram = []
def __init__(self , Target):
self.Target = Target
self.r = requests.get("https://www.google.c... | [
"noreply@github.com"
] | noreply@github.com |
a05cefc70437a8bb293652c67336bd96ea8c40c0 | 5bb548bb917566426e70f5bb953b52f39d21c15f | /wiki/bin/jp.py | b1a7c8a99b40d49a74f4e25ccc4d13620cb6ed6d | [] | no_license | Czzzk/final-project | e903b28aae644e945d3c1cc6586b6408cfb37812 | 5881cf9b4761bc6422a04fe530951f48d0461ca8 | refs/heads/master | 2022-12-24T08:43:42.514037 | 2020-07-25T15:22:33 | 2020-07-25T15:22:33 | 282,343,880 | 0 | 0 | null | 2022-12-16T07:16:32 | 2020-07-25T00:55:05 | Python | UTF-8 | Python | false | false | 1,729 | py | #!/home/ec2-user/environment/wiki/venv/bin/python3.6
import sys
import json
import argparse
from pprint import pformat
import jmespath
from jmespath import exceptions
def main():
parser = argparse.ArgumentParser()
parser.add_argument('expression')
parser.add_argument('-f', '--filename',
... | [
"ec2-user@ip-172-31-33-26.us-east-2.compute.internal"
] | ec2-user@ip-172-31-33-26.us-east-2.compute.internal |
d81ba1121f927eb37d7eca505433372e6f982dce | bcff6ec2243b598f9180befa0f7b4cf26b5fb196 | /Test/testreport/report003.py | d7751a1a06372debd0001a1c348b2ee44872c815 | [] | no_license | mkesky/mySelenium | 9cc9e9a512723fd77fa78b799eef113f4500f3a5 | 41fd7b0f8702a72351cfc806db82f3064b678ce2 | refs/heads/master | 2020-03-08T02:44:05.498921 | 2018-04-04T01:51:26 | 2018-04-04T01:51:26 | 127,869,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,350 | py | from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.keys import Keys
from time import *
import unittest
from HTMLTestRunner import HTMLTestRunner
class woshidai(unittest.TestCase):
'''沃时贷测试'''
def setUp(self):
self.driver = webd... | [
"lu.guiqiang@njswtz.com"
] | lu.guiqiang@njswtz.com |
07e7f53c7699137a17221e73867c4e4d8e7ec740 | f979894f2c043c7b68a1def700841ed3d981d685 | /sth2.py | 836064675062f98d2b663702211bc85defdc3db5 | [] | no_license | NALCORPallhat/GHOST | 59c8f8c4de100ee8492b3701b4d931d4d4b9bbe1 | 6534fa2bfea80d59c2ea17cf22a3d95d045fdde9 | refs/heads/master | 2020-03-15T19:32:51.424741 | 2018-04-26T18:26:32 | 2018-04-26T18:26:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,008 | py |
def inheriter(self, data, rel, searchFormats):
rel = relatedlist.copy()
if data in rel: rel.remove(data)
#this maps the related que to data
dataMap = [self.mapStrings(data, rel[x]) for x in range(len(rel))]
#this uses the datamap to turn the individual que to ... | [
"joshua3christianx@gmail.com"
] | joshua3christianx@gmail.com |
c4276d2ecbae3eb80023e9e70542fc5391274f87 | b2263199c2407c20f6afb236c9e1bc62a19b1723 | /0001_0010/problem_0010_slow.py | 7fe626fc11e4f21457ecb05150de018ee1e939fc | [] | no_license | timothyha/project-euler | 5ab37cff611849db74447567f4b199cc32750aa0 | 31d4abd5f7522b9ceda4914e8c4e427797743c56 | refs/heads/master | 2016-09-05T20:40:51.215201 | 2014-12-19T14:25:04 | 2014-12-19T14:25:04 | 27,395,590 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,350 | py | # https://projecteuler.net/problem=10
# The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. Find the sum of all the primes below two million.
# some mathematical reasoning: each next prime number P is the first number which cannot be divided by any of the previously calculated prime numbers which are >=2 and <=squa... | [
"timothyha@gmail.com"
] | timothyha@gmail.com |
9a4567fd105675d1aa7ac9f551cfec322b443cde | 9e98411e29dde5c007bf7117be0893e6ed77a780 | /MachineLearning/co2Emissions.py | 2009540ef6b858cd7dcf3abe5c67a8d5a31d3e0d | [] | no_license | vishnupandey-work/testAutomation | 78fb35661efc592a30499c2042331284dc9e085c | 05fe3c8fe0f9f51afc5bd42b369de274c647aa10 | refs/heads/master | 2023-08-20T09:25:37.298214 | 2021-10-25T13:17:09 | 2021-10-25T13:17:09 | 413,718,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | '''
Created on 18 Sep, 2020
@author: VishnuDesktop
'''
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from sklearn import linear_model
#read csv
data = pd.read_csv("C:\\Users\\VishnuDesktop\\Desktop\\MachineLearning\\FuelConsumptionCo2.csv")
data.head()
| [
"VishnuDesktop@DESKTOP-Vishnu"
] | VishnuDesktop@DESKTOP-Vishnu |
ce416465e55d04ead1c6f433df8ae91d18f552de | 1897fc20ae9b19ed37dbe136e83bb99e028afffa | /users/migrations/0022_ride_rider_mobile.py | 254d4beae71da671b728834af40eb638f8e8b312 | [] | no_license | j4jithinj/lift-share-carpooling-website-django-travel | 9944bd750c12ec098a26e68f95a815dc459ab315 | 1bcdc2eae4f1823bae5615a4eb6014ec2038155f | refs/heads/main | 2023-07-06T23:07:44.024844 | 2021-08-04T06:39:44 | 2021-08-04T06:39:44 | 389,090,131 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | # Generated by Django 3.1.7 on 2021-05-16 16:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0021_auto_20210516_2130'),
]
operations = [
migrations.AddField(
model_name='ride',
name='rider_mobile',
... | [
"j4jithinj@gmail.com"
] | j4jithinj@gmail.com |
bfcdf6012776e1d4338fa6be7aa0fda529fdc6d5 | 886b90452021cc5fd622fa4305c73d9908c22db7 | /venv/Scripts/easy_install-script.py | 6f2e6cf752f93db5fa628bbee18464a15ae1455f | [] | no_license | Alan-0524/Mymood | e4d1c487816bd4931de48a0c9372dfb59c8096bb | ecd61746cdfe7b059db41f0cddb4b80525de5e26 | refs/heads/master | 2022-12-14T18:43:04.581546 | 2018-11-07T08:16:06 | 2018-11-07T08:16:06 | 149,567,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | #!D:\PycharmProjects\Mymood\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', ... | [
"119241066@163.com"
] | 119241066@163.com |
7a1bca066dfba606be86c23c1c2103412cf7dbee | 9abdf71e6fd5e97a317356ce3ce60cca940af8fd | /Problems/FizzBuzz/task.py | 287aad4add26519546b6c1160d96bc774e426e02 | [] | no_license | Omkar-M/Coffee-Machine | 4184ac289c1bf36e855bb21c4115dbce4e492b6f | a21a0cb43a0ab52669619af88e1e82050029c8b5 | refs/heads/master | 2022-11-25T14:32:47.155087 | 2020-08-01T20:51:54 | 2020-08-01T20:51:54 | 274,185,317 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | for x in range(1, 101):
a = (x % 3 == 0)
b = (x % 5 == 0)
print("FizzBuzz" if a and b else "Fizz" if a else "Buzz" if b else x)
| [
"62263578+Omkar-M@users.noreply.github.com"
] | 62263578+Omkar-M@users.noreply.github.com |
957ddc67fd48e0a06e8b0490b553c4de0834ecb0 | bd596c82c500bd2d5db6e8686b845b1ca97ac720 | /blog/models.py | 533ba2cfca9110a1e9e1c7e49c4cd9f4285c6af5 | [] | no_license | PMKanyora/my_first_blog | e3c093ec9cc84f996d59ee5722ca665ba278d20c | 57d0da0fea9c1c9983bbe7603ffba7ca7fdce66f | refs/heads/master | 2020-05-05T02:45:25.364862 | 2019-04-05T08:33:12 | 2019-04-05T08:33:12 | 179,649,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | from django.conf import settings
from django.db import models
from django.utils import timezone
class Post(models.Model):
author = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE)
title = models.CharField(max_length=200)
text = models.TextField()
created_date = models.DateTimeFiel... | [
"peterkanyora341@gmail.com"
] | peterkanyora341@gmail.com |
fc72c5f77158ed529b83fce979f781addca1c3e1 | 4fdde19f3b08d45981de3f07c4635c54ebaca7dd | /getVocabList.py | d9678ef0b9183893513395fb00e52bc40f246bc5 | [
"MIT"
] | permissive | askayastha/twss | 7049184143151f2282f078c690d9d9763bab74be | 049a89adc47c55d8809486657a4046e9b5cc2c60 | refs/heads/master | 2022-01-20T21:24:24.915133 | 2018-07-24T14:41:59 | 2018-07-24T14:41:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | def getVocabList():
'''reads the fixed vocabulary list in vocab.txt and returns a dictionary mapping strings to integers'''
# Read the fixed vocabulary list
fid = open('data/vocab.txt')
vocabArray = fid.readlines()
# use dictionary to map the strings => integers
vocabList = {}
for i,vocab in enumerate(... | [
"srjoseph@hawaii.edu"
] | srjoseph@hawaii.edu |
210584bd6d6c063d2901bfc6bfd97577749d7d89 | cd3c9415d279d2545106f559ab3117aa55ed17ef | /L02 运算符、if判断、while、for循环、字符串相关函数/课件/09 while循环例子.py | e459f1ef6baee3d648ec9554d6743e82ccb0c891 | [] | no_license | yuanchangwang/yuan | ad418609e6415a6b186b3d95a48e2bd341f2d07f | 22a43c09af559e9f6bdf6e8e3727c1b290bc27d4 | refs/heads/master | 2020-08-27T02:17:40.544162 | 2019-11-19T10:25:51 | 2019-11-19T10:25:51 | 217,216,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,924 | py | # (1)打印一行十个小星星
#**********
i = 0
while i<10:
print("*",end="")
i+=1
#help 查看帮助文档 help(print)
# help(print)
# (2)用一个变量打印出一行十个小星星 (十个小星星塞在一个变量中,最后达因变量)
print("<===>")
i = 0
strvar = ''
while i<10:
strvar += "*"
i+=1
# strvar = strvar + "*" + "*" + "*"
print(strvar)
# (3)打印一行十个小星星 奇数个打印★ 偶数个打印☆
'''
0 % 2 = 0
1 % 2 =... | [
"991552699@qq.com"
] | 991552699@qq.com |
92120815b75b6833b187a12790beedaf7ec15d4a | 9628f2c4ba20d5e488002a7f64118be5b9a6f50b | /Proj_03_Emotions/functions/add_extra_feature.py | 4e27fe1108d5623b09f0bd6668cb3a16a6d6cb91 | [] | no_license | alhaol/ds-projects | 3707f6c2a9d759698528307aeee1f40a68fa6f0e | 14ffbf1e10896b06c7834c2b8cd6bafb1077615e | refs/heads/main | 2023-02-16T04:49:43.439067 | 2021-01-14T15:20:05 | 2021-01-14T15:20:05 | 320,578,604 | 1 | 29 | null | null | null | null | UTF-8 | Python | false | false | 836 | py | def add_extra_feature(df, tweet_column):
# Print Number of Exclamation
#length_of_excl = (len(re.findall(r'!', string)))
df['number_of_exclamation'] = tweet_column.apply(lambda x: (len(re.findall(r'!', x))))
# Number of ?
#length_of_questionmark = (len(re.findall(r'?', string)))
df['number_of_... | [
"sphinx44@gmail.com"
] | sphinx44@gmail.com |
beb6775aa5ca621105111e31de977880c717c748 | 4e96bf1edefe39543f3bde370c76a22e1134f9da | /get_auc.py | 7480e19c2013d3d057c1226115a5544b1b448f2e | [] | no_license | xyumong/the-best-parameters-of-complex-network-for-similarity-indexes-based-on-PSO | d46678f4f6375674883b2c34dd634f7c7d31aa34 | 748072ec80776f3420e6781b9c81af629b9f9d9b | refs/heads/master | 2020-03-15T11:46:13.189966 | 2018-05-04T10:28:19 | 2018-05-04T10:28:19 | 132,127,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,334 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Mar 24 14:14:10 2018
@author: Administrator
regart:计算文件的AUC值
"""
from __future__ import division#精确除法(使用'/'时,保留小数)
from Evaluation_Indicators import Calculation_AUC
import similarity_indicators.LHN_I
import similarity_indicators.PA
import similarity_indicators.mixture_inde... | [
"xyumong@users.noreply.github.com"
] | xyumong@users.noreply.github.com |
4dbcf5f58bc7f571039a107c6c8356cee82e1aec | 2b091333ad33bb0e6381729b0fea8b0833183ce9 | /RBFN.py | 995e4c89c0dca791f3b166f2d44b873e1726016b | [
"MIT"
] | permissive | LiaoSteve/RBF-NN | dca9ac62bd2008b22bdf05772a3f18d4c719547a | dfb236996cddc9129bf4116038767e30d8c69992 | refs/heads/master | 2020-09-06T11:05:28.356862 | 2020-01-01T02:31:09 | 2020-01-01T02:31:09 | 220,406,844 | 9 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,733 | py | import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as animation
from mpl_toolkits.mplot3d import Axes3D
import timeit
import time
import datetime
from tqdm import tqdm
import os
def sigmoid(x):
return 1/(1+np.exp(-x))
def Gaussian(input_array, m, sigma):
return np.exp( - np.li... | [
"steveliao1688@gmail.com"
] | steveliao1688@gmail.com |
380faaa6dc0c82de1898a9482c4a243ee77b0846 | 6024bc06e870d3c09a2a026ed2c984ba3523fd93 | /src/main/resources/plugin_name/UpdateRecord.py | d74a0af15d6e09892739a180630b599da4a83792 | [] | no_license | gsajwan/XL-plugin-skelton | bdba6d40b370d70f27e667f49f78919b3ace7c4d | 634261703c80ab61cd99af86b27f159b48440e2b | refs/heads/master | 2021-01-23T06:15:40.577768 | 2017-03-27T17:46:20 | 2017-03-27T17:46:20 | 86,348,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,165 | py | #
# THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS
# FOR A PARTICULAR PURPOSE. THIS CODE AND INFORMATION ARE NOT SUPPORTED BY XEBIALABS.
#
import sys, string, time, traceba... | [
"gauravsajwan30@gmail.com"
] | gauravsajwan30@gmail.com |
7063e3a2f690e52339d69ce4edbc432271d79b30 | 223f8feb7b9ff6334ca7d047636fbbcb598c824c | /src/web/web/settings.py | bfdabc775015d1c9cde45d4c5489e1882893226d | [] | no_license | cluster311/backend.cluster311.com | 169b3c621c7f0231844c4e9b6ad51a9feada4608 | f5ab1ebbd220d3ab4bae253cc61fddbe1153f8d8 | refs/heads/master | 2023-08-06T20:01:00.563492 | 2020-04-10T20:02:22 | 2020-04-10T20:02:22 | 254,720,332 | 0 | 0 | null | 2021-09-22T18:52:07 | 2020-04-10T19:36:39 | Python | UTF-8 | Python | false | false | 3,079 | py | """
Django settings for web project.
Generated by 'django-admin startproject' using Django 3.0.5.
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
# Bui... | [
"andres@data99.com.ar"
] | andres@data99.com.ar |
7f764971c27bf6c8ae3b8851db9e74a9788e7e26 | 82cbac0b64d73c94d3a12a237318b6e878fdc82e | /ex_4.py | 596d855f826190a07ac041a931285a70ebe138e8 | [] | no_license | TarasenkoLS/Python | 2422125508e9061b915a93b53869909c29a8af00 | 24968a38f801b564ca45cdf5819633e13ad83181 | refs/heads/main | 2023-04-16T15:34:04.508316 | 2021-05-07T13:40:13 | 2021-05-07T13:40:13 | 365,204,892 | 0 | 0 | null | 2021-05-07T12:35:56 | 2021-05-07T11:00:31 | null | UTF-8 | Python | false | false | 143 | py | my_list = input('Введите слова через пробел ').split()
for ind, el in enumerate(my_list, 1):
print(ind, el[:10])
| [
"noreply@github.com"
] | noreply@github.com |
529a74564a9c687dedc1725cbfc6def260d9a60a | 19b9bc401df28ede4b4a5f6fa00ee17042299719 | /archive/To09-21/09-20/jingu_09-20.py | 2d7c1e7772718168c0bd098434ad722efb59e353 | [] | no_license | kibitzing/FluentPython | fb0c21c164e0bf7a543e8c3c0d92c6f6c303ebb6 | 75c743ce4c5e65c2d891babd23f0e4b873924000 | refs/heads/master | 2021-07-10T23:42:58.224235 | 2019-02-12T14:24:06 | 2019-02-12T14:24:06 | 147,219,835 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 833 | py | """
created by jingu kang on 2018-09-20
"""
class whoweare(dict):
def __missing__(self,key):
if isinstance(key ,str):
raise KeyError(key)
return self[str(key)]
def get(self, key, default='normal person'):
try:
return self[key]
except KeyError:
... | [
"truebread@naver.com"
] | truebread@naver.com |
70ce5a9e091f1d7323f0f1c69db613637b2a687f | 7fabe9edd01c5b2b114c02d80513528ffcfe5319 | /vams/settings.py | d95caf9279f5e95725d766f697bda507a8300b21 | [] | no_license | mdsoyaib/vaccine | b280204ed0cb1a3b86144a2203fe83f3882ad1cd | f5ee30cf99d3bdc6f5ccb11b20081538723ccc74 | refs/heads/main | 2023-05-09T14:48:21.570244 | 2021-05-28T13:06:44 | 2021-05-28T13:06:44 | 371,669,767 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,444 | py | """
Django settings for vams project.
Generated by 'django-admin startproject' using Django 3.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
import os
from p... | [
"mdsoyaib2025@gmail.com"
] | mdsoyaib2025@gmail.com |
528b14dfcb491864e05ebf063da0f90fb820507c | 4f08d2dd7901ae5dfbb8e1ecb1e58da9a4875f50 | /planilla/models/planilla_gratificacion.py | 3764c91c533d50300a28e9d28ddbc3e1594145a6 | [] | no_license | azvolamza/erp | 65bdc025b6cbe4f3053618d471c998c4abc883cb | 7f9671b98bd0a9e70464d08c1ef53516fdd8e665 | refs/heads/master | 2023-05-11T22:09:24.673095 | 2021-01-28T14:34:55 | 2021-01-28T14:34:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,122 | py | # -*- coding: utf-8 -*-
from odoo import models, fields, api
from odoo.exceptions import ValidationError
from odoo.addons.base.res.res_request import referenceable_models
from datetime import datetime, date, timedelta
from dateutil.relativedelta import relativedelta
from odoo.exceptions import UserError
import sys
impo... | [
"lmillan131@gmail.com"
] | lmillan131@gmail.com |
80e46d30ab05b2895d952c71dce8447f1266d6a9 | 78d23de227a4c9f2ee6eb422e379b913c06dfcb8 | /LeetCode/41.py | 4121f226d68d1e982fa42e6e49ff768f1509886a | [] | no_license | siddharthcurious/Pythonic3-Feel | df145293a3f1a7627d08c4bedd7e22dfed9892c0 | 898b402b7a65073d58c280589342fc8c156a5cb1 | refs/heads/master | 2020-03-25T05:07:42.372477 | 2019-09-12T06:26:45 | 2019-09-12T06:26:45 | 143,430,534 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | from typing import List
class Solution:
def firstMissingPositive(self, nums: List[int]) -> int:
minimum = nums[0]
maximum = nums[0]
for e in nums:
if e > maximum:
maximum = e
if e < minimum:
minimum = e
print(maximum, minimum)... | [
"sandhyalalkumar@gmail.com"
] | sandhyalalkumar@gmail.com |
9815dae1a781a0753475d33dc8c2dfb696bc31a4 | 97e37192d4a695777c538596086c0be826b721e1 | /vedastr/lr_schedulers/base.py | 95d0f2e637e52d41a0e3cddfded57efb211e5a7c | [
"Apache-2.0"
] | permissive | Sayyam-Jain/vedastr | 1b587adc1ff4dc79ab7acc71d7ee08fe600c8933 | 83511a408b68c264561a30daff5154cd0148bebd | refs/heads/master | 2022-12-13T08:06:21.304845 | 2020-09-10T05:05:50 | 2020-09-10T05:05:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,825 | py | import warnings
import weakref
from functools import wraps
import numpy as np
from torch.optim import Optimizer
class _Iter_LRScheduler(object):
def __init__(self, optimizer, niter_per_epoch, last_iter=-1, iter_based=True):
self._iter_based = iter_based
if not isinstance(optimizer, Optimizer):
... | [
"jun.sun@media-smart.cn"
] | jun.sun@media-smart.cn |
75355aa0dedd2f1e760238c81a740bd8527917a5 | 01580c991cd98b4c3549ce60208a8b0313a940e2 | /Tkinter Library/test.py | 992eab7cfe01a30b4028dd1e1fb01d94f6009d53 | [
"MIT"
] | permissive | ssergiuk/codes | 25d1f64074d869caccce33edc8d3edffb135290d | ea1dea9cf3985228dacb02d31de01bc929fda939 | refs/heads/master | 2020-09-26T22:47:55.024758 | 2019-12-06T15:54:08 | 2019-12-06T15:54:08 | 226,359,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | from backend import *
print(search(year = "1918"))
| [
"noreply@github.com"
] | noreply@github.com |
e1aeb0e1ad461ad5059db9d4c8e6558daaee8881 | 4c5f46db1897d2e3e3fa1379f88400be2ad5bb27 | /arrayPattern.py | 86d079bf5b8742b343226d807d9c08d18b46380a | [] | no_license | globalize9/mfe2020 | 5e46e2b455f776f48040af6fbae04e9a9767c013 | 222b4fb8a9d1be253405c87a55e1f2313236fb62 | refs/heads/master | 2023-03-03T17:08:36.110083 | 2023-02-27T00:47:38 | 2023-02-27T00:47:38 | 225,072,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,154 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Dec 25 19:26:23 2019
@author: yushi
"""
import numpy as np
n = 6
matrix = np.zeros(shape=(n,n))
#for i in range(n):
# matrix[i,:] = list(map(int,input().split()))
matrix = ([1,1,1,0,0,0],
[0,1,0,0,0,0],
[1,1,1,0,0,0],
[0,0,0,0,0,0],
... | [
"58374480+globalize9@users.noreply.github.com"
] | 58374480+globalize9@users.noreply.github.com |
6a3cb227f2c7fd440f8f0b33afad0a0464c8ea58 | 5421324e7e2bcaca1585a1cd4322b3fec8bf5b84 | /MyProject/settings.py | 9bbd458ac181b8cb0d40a853b20223e6dd25cbc8 | [] | no_license | Humma2/phase1 | ba2c89d299e860e27d0921f8a9a08753a869c647 | 87ce438f85b239f737f7f10d6dbe0b4c5881f99d | refs/heads/master | 2020-05-17T18:13:08.181775 | 2019-04-28T08:45:17 | 2019-04-28T08:45:17 | 183,878,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,425 | py | """
Django settings for MyProject project.
Generated by 'django-admin startproject' using Django 2.1.4.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
... | [
"bitf15m529@pucit.edu.pk"
] | bitf15m529@pucit.edu.pk |
7b9546ea42511a379a687f6f75933df6f7d029ff | bf3af1535dbcdb0981f76a38874a58851f4e55e0 | /AI/Assignment 3/submit.py | a9d8108ce849d7d6fb195cd93f17ddb1a958aff5 | [] | no_license | rbhansali7/Fall2017 | 2de83b5f02debcd4b990ee98603e32d1abc97c8d | c2d9637e41887aa9804931ef1c353c9483c44b99 | refs/heads/master | 2021-09-18T13:11:38.442856 | 2018-07-14T18:31:13 | 2018-07-14T18:31:13 | 118,552,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,331 | py | #do not modify the function names
#You are given L and M as input
#Each of your functions should return the minimum possible L value alongside the marker positions
#Or return -1,[] if no solution exists for the given L
#Your backtracking function implementation
finalList = []
finalLen = 9999999999999999
finalListFC= ... | [
"rbhansali@cs.stonybrook.edu"
] | rbhansali@cs.stonybrook.edu |
758237f387f0ed09696e3ddefa728eaadd792a79 | 4aa7a4d0525095725eb99843c83827ba4806ceb1 | /tf/tf08_mv2.py | 07920ed1a465784c7cf577b6538dd87eef4b0862 | [] | no_license | seonukim/Study | 65a70f5bdfad68f643abc3086d5c7484bb2439d4 | a5f2538f9ae8b5fc93b5149dd51704e8881f0a80 | refs/heads/master | 2022-12-04T17:04:31.489771 | 2020-08-21T00:35:15 | 2020-08-21T00:35:15 | 260,144,755 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,251 | py | # mv : Multi Variables
import os
import tensorflow as tf
path = 'D:/Study/data/csv/'
os.chdir(path)
tf.compat.v1.set_random_seed(777)
x_data = [[73., 51., 65.],
[92., 98., 11.],
[89., 31., 33.],
[99., 33., 100.],
[17., 66., 79.]]
y_data = [[152.],
[185.],
[1... | [
"92.seoonooo@gmail.com"
] | 92.seoonooo@gmail.com |
46d7bd0ffb7dacf3d099719065b0e35c4511fd12 | c82abb7ed9a3d3051fc75ae70cc5749807e75ae8 | /code.py | 57578641cf0061140e6d99a301edbae85f741870 | [] | no_license | fede2cr/circuitpython-zapoteco | 974f6960af56bad942978489d6fa6c74c4d6cd50 | 746575f2649b47d16e8334d0fc2866beb72a9297 | refs/heads/master | 2020-04-22T08:31:42.079320 | 2019-03-22T23:58:32 | 2019-03-22T23:58:32 | 170,245,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | import mesoamericano
print (funcion.traductor("zapoteco",5))
print (funcion.traductor("bribri",2))
marcador = 0
while True:
marcador = funcion.quiz("zapoteco", marcador)
print ("Su marcador es: ", marcador)
| [
"alvaro@greencore.co.cr"
] | alvaro@greencore.co.cr |
514a5704f9a4a1100c22a9b3fbcd4a5d3497cfb4 | d66a5f2c42c0fcf1ad61ad23dad6aca2fa50a3e4 | /scripts/audfprint/dpwe_matcher.py | 541a80eca7d42b3681ac9abf2d45b911781fb216 | [
"MIT"
] | permissive | BadIdeaFactory/contextubot-api | 2f4d22bc1b11bdd90fe1342d85e49cbaf3713df5 | f43c556bf71d02278677c3e9f1e743f72c6b775d | refs/heads/master | 2021-01-20T05:58:50.943523 | 2018-04-15T00:50:41 | 2018-04-15T00:50:41 | 101,476,505 | 1 | 1 | MIT | 2019-06-01T02:40:17 | 2017-08-26T09:34:00 | Python | UTF-8 | Python | false | false | 2,565 | py | #!/usr/bin/env python
# dpwe_matcher.py
#
# Fingerprint database matcher for MIREX 2014 audio fingerprint competition
#
# 2014-09-06 Dan Ellis dpwe@ee.columbia.edu
# From http://www.music-ir.org/mirex/wiki/2014:Audio_Fingerprinting#Time_and_hardware_limits
# 2. Matcher
# Command format:
# matcher %fileList4query% %... | [
"laurian@gridinoc.name"
] | laurian@gridinoc.name |
30b8677941dafba525a06bf773593a0852b3b768 | f6786f5f51c0a71a09213e2f729766d1a04dffa2 | /두근두근_파이썬/11_File/Labs/328_hangman_game.py | 50ceef354db69f90bce3e63a80c529b8ec789d86 | [] | no_license | SuperstarterJaeeun/Learn-Programming-Book | 4f075fdec386a0449da8d0d08bb8f1b6d6b2f304 | f768acfffcb20b9fc97946ca491f6ffb20671896 | refs/heads/master | 2023-07-24T07:13:24.374240 | 2021-09-06T14:56:02 | 2021-09-06T14:56:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 713 | py | import random
guesses = ''
turns = 10
infile = open("word.txt", "r", encoding="UTF8")
lines = infile.readlines()
word = random.choice(lines)
while turns > 0 :
failed = 0
for char in word :
if char in guesses :
print(char, end = "")
else :
print("_", end = "")
... | [
"danghyeona0113@gmail.com"
] | danghyeona0113@gmail.com |
7bc8151289ec59feecad2dda19ea8f99e5c30580 | 22ffa2a2df4218c12d6324fe602ec20617445dc1 | /draw/nn/__init__.py | 335db6fbd6c550347ba81e70b0e29f943221d53b | [] | no_license | musyoku/convolutional-draw | 367f0269f2df69ac6480d1de7edf2bdf80259ef0 | 3f384feb7b0d1a2138bd758713ed2745c216df3c | refs/heads/master | 2020-03-21T08:55:18.630043 | 2018-10-09T05:19:17 | 2018-10-09T05:19:17 | 138,373,875 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 50 | py | from . import single_layer
from . import functions | [
"musyoku@users.noreply.github.com"
] | musyoku@users.noreply.github.com |
65170cc573edbdadf48b082d5608f476dc506d46 | 6c4db56105e930e2c3bf9658e1594c7689c43ae1 | /week3/logistic_regression/data_index.py | 85cc7ccf6fee6fa29703c6d59644ee18995b882a | [] | no_license | itfobos/mlpractice | 55544c67e00f3d102601c3d623f57e4a0c00625c | 2b4862bed54218b172c9c398da0608468835cfc2 | refs/heads/master | 2020-07-19T20:44:12.561461 | 2019-11-25T00:43:07 | 2019-11-25T00:43:07 | 206,512,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | from enum import IntEnum
class DataIndex(IntEnum):
Y = 0,
X1 = 1,
X2 = 2
| [
"tr.wolfer@gmail.com"
] | tr.wolfer@gmail.com |
c7139cdba6d0bdc5caf556866c895ed914db146f | 6a96d6c5ba06ef175ebeed773fc925fcad7ddbd2 | /MaLongHui_Django/apps/users/urls.py | 0a64e123fc1b9b6346ce505192f5960b68fa429a | [] | no_license | AmirHuang/MaLongHui_Django | 38934c3de34f705a70458ff8c644efce69854435 | 0bcff7f0311d6bddd504d088ad52e8217f5c8c74 | refs/heads/master | 2020-05-04T04:48:10.149549 | 2019-04-02T01:24:01 | 2019-04-02T01:24:01 | 178,974,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 868 | py | # _*_ coding: utf-8 _*_
# @time : 2019/03/30
# @Author : Amir
# @Site :
# @File : urls.py
# @Software : PyCharm
from django.urls import path
from rest_framework import routers
from . import views
from rest_framework_jwt.views import obtain_jwt_token
routers = routers.DefaultRouter()
routers.register(r... | [
"429771087@qq.com"
] | 429771087@qq.com |
7f50a7eb2baaa36bbb5788559aa5d2a0cacfecc5 | 2a16e08663bde5ced908d48b644e2ee80df51efe | /Parser.py | acbf89d4cb297459c48a64158328f6719eff6bef | [] | no_license | KwesiD/Mnemosyne | 8b61728fd1c4b2176283cdad8cf86b9509da728d | 8bc14abb9906da15b0750b5c32670dde1a314c3b | refs/heads/master | 2021-01-01T04:28:24.570145 | 2017-07-14T07:14:56 | 2017-07-14T07:14:56 | 97,171,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,646 | py | import nltk
from Special_Values import *
import string
import pprint
def parse(corpus):
frequency_table = {"$t@rt":{}} #a dictionary containing the bigrams and their frequencies
tag_table = {"$t@rt":{}} #a table of POS tags and words of that tag and their frequenies - POS Bigrams
word_tag_table = {"$t@rt":{}} #a ta... | [
"kfd233@nyu.edu"
] | kfd233@nyu.edu |
c8014a758b3a175f52c3012fcc28b6369c99270a | e415e4cdab3d1cd04a4aa587f7ddc59e71977972 | /builtin/comprehension_syntax.py | fa9db9d682556dea663d08cffe6ccd076c54a921 | [] | no_license | nixawk/hello-python3 | 8c3ebba577b39f545d4a67f3da9b8bb6122d12ea | e0680eb49d260c5e3f06f9690c558f95a851f87c | refs/heads/master | 2022-03-31T23:02:30.225702 | 2019-12-02T10:15:55 | 2019-12-02T10:15:55 | 84,066,942 | 5 | 7 | null | null | null | null | UTF-8 | Python | false | false | 740 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Comprehension Syntax
# A very common programming task is to produce one series of values based upon
# the processing of another series. Often, this task can be accomplished quite
# simply in Python using what is known as a comprehension syntax.
# [k * k for k in range... | [
"hap.ddup@gmail.com"
] | hap.ddup@gmail.com |
b03c85ec0b19ed17e7711bfd7f6c30e0bcc3f683 | 54d8d6c44f2befb635064ceeb7fc1bc16f877f33 | /setup.py | 163ddac7953780e8e3fb0af8c4266de746f67c0d | [
"Apache-2.0"
] | permissive | hayesgb/mlrun_connect | 6d2b8896d77cb5913ebeefabc7ead163f1690e16 | ddc51243780711dfd8c727297ad66c8710fa5566 | refs/heads/main | 2023-08-04T07:09:33.184269 | 2021-09-23T21:12:24 | 2021-09-23T21:12:24 | 404,713,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,133 | py | #!/usr/bin/env python
from os.path import exists
from setuptools import setup
import versioneer
setup(
name="mlrun_connect",
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
description="Utilities for connection mlrun to cloud services",
url="https://github.com/hayesgb/mlrun_c... | [
"gregory.hayes@ecolab.com"
] | gregory.hayes@ecolab.com |
ff40095f45e1ccca7b27d17b2d0dac4606979175 | 453302ff0c16614eb820c7153835bb549d903ebe | /build/wheeltec_robot_urdf/catkin_generated/pkg.installspace.context.pc.py | 311427dd50139dbb9bc857bdff6fe2d65c145f8e | [] | no_license | SimonSongg/catkin_ws | 591a8bee4864b2e31cc2abb041c082e2d4dc9d83 | afbf5346be2fdfa5aace7ed949d5023b3016363d | refs/heads/main | 2023-07-13T13:28:00.827983 | 2021-08-22T07:18:01 | 2021-08-22T07:18:01 | 380,931,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "wheeltec_robot_urdf"
PROJECT_SPACE_DI... | [
"sf995511sf@qq.com"
] | sf995511sf@qq.com |
2bf00a8ed589a18872f9d333e9cc37d561796270 | 70508a7ffeb73913c58b9fab30675a71c9434d43 | /01.basis/for_loop.py | 844aef4a161765f5aed3ca92e8a567638312187c | [] | no_license | skxeve/PythonForPHPer | a7515324f94f7eb61f3808f5cb3887ec0a25457e | 5ed069d8221240f2d5704d7a9abcb9e794cec413 | refs/heads/master | 2020-04-19T18:00:49.738670 | 2019-02-01T12:37:54 | 2019-02-01T12:37:54 | 168,350,948 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | # encoding=utf8
jobs = {
"John": "Guitar",
"Paul": "Guitar",
"George": "Bass",
"Ringo": "Drums",
}
for name, job in jobs.items():
print("{}: {}".format(name, job))
names = ["John", "Paul", "George", "Ringo"]
for index, name in enumerate(names):
print("{}: {}".format(index, names[index]))
for... | [
"skxeve@gmail.com"
] | skxeve@gmail.com |
7844b4ec436c7ee1c5f1511e0f4683496400320b | 016ffab091089772c399c568553c3db8473236b2 | /updated/Part 1 - Artificial Neural Networks (ANN)/classification_template.py | 86bf97f33fb92fc461cb9da546291c6f4b86ebf5 | [
"CC0-1.0"
] | permissive | joanby/deeplearning-az | a295d0dcee45b2c22b1b2f4bbf0936d55e7fd1b0 | 4a0b11c5f659abdf362c2bb87d58b0813feef6d1 | refs/heads/master | 2023-08-17T05:19:59.298181 | 2023-08-15T10:21:31 | 2023-08-15T10:21:31 | 231,743,906 | 438 | 273 | CC0-1.0 | 2022-04-10T21:17:06 | 2020-01-04T10:18:37 | Jupyter Notebook | UTF-8 | Python | false | false | 2,538 | py | # Classification template
# Importing the libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# Importing the dataset
dataset = pd.read_csv('Social_Network_Ads.csv')
X = dataset.iloc[:, [2, 3]].values
y = dataset.iloc[:, 4].values
# Splitting the dataset into the Training set and Test se... | [
"juangabriel@frogames.es"
] | juangabriel@frogames.es |
aeb2545c3f2c32cb71a27bb3b351ee9fe6f26dbe | 6bf999bcb18b1141ab4749aae5a1545dca7254a1 | /spin_words.py | 41f75cb65726fe46c27ee36038336e92abd80a2c | [] | no_license | AphroditesChild/Codewars-Katas | 3db5441336f15bc813cfd1575a4bb9e44e856ac4 | a3c7063d491e53702581782feaa34f2de022ad4d | refs/heads/main | 2023-02-14T19:42:38.238710 | 2020-12-30T18:29:59 | 2020-12-30T18:29:59 | 325,619,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,033 | py | def spin_words(sentence):
LST1 = [list(word) for word in sentence.split()]
LST2 = [word[::-1] if len(word) >= 5 else word[0::] for word in sentence.split()]
LST3 = ["".join(revWord) for revWord in LST2]
print(LST1)
print(LST2)
print(LST3) # a = [ ['a', 'b', '... | [
"noreply@github.com"
] | noreply@github.com |
c931b04984d75634b1fec7f4d39faa9e5b5b2a41 | a47155172d99be8eb53a0abb243d1dc9d7cb7ded | /keras_train.py | 96b2bbab9cbb833287a455f5ee65f418d32b0e43 | [] | no_license | mizzzzzzz/Keras-OCR | 8df7d631a0d4cee6910c7cd9a6b48bc8f05e6dc1 | 03cd7f290a926a02b755587c94d6681e72545461 | refs/heads/master | 2020-03-30T23:48:11.057327 | 2018-10-08T15:16:20 | 2018-10-08T15:16:20 | 151,713,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,988 | py |
from PIL import Image, ImageDraw, ImageFont
import numpy as np
from keras.models import Sequential
from keras.models import load_model
from keras.models import Model
from keras.layers import Input, Dense, Dropout, Flatten, Conv2D, MaxPooling2D
from keras.layers.normalization import BatchNormalization
from keras.utils ... | [
"miz1205@gmail.com"
] | miz1205@gmail.com |
f3160aa3816ebc02c238be8912e8832ab564e611 | e0f4a83edfc1f4066fd7768767ac5c16f2eba34d | /facecam.py | 2f31c0d4b99f45adeefa18bb7e49447597e53892 | [] | no_license | kimchoo/robot-therapist | cafd659c8455f7cafb06a6e13f16eaeaac46673d | 32d4b22d6b3f31c0f5fea1e5f5b5dcaf9796e1d9 | refs/heads/master | 2020-05-23T20:25:54.259334 | 2019-05-17T23:49:43 | 2019-05-17T23:49:43 | 186,931,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 356 | py | import numpy as np
import cv2
def cam_snap():
cam = cv2.VideoCapture(0)
face_cascade = cv2.CascadeClassifier('haarcascade_frontalface.xml')
rnt, image = cam.read()
grayImage = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
faces = face_cascade.detectMultiScale(grayImage)
cv2.waitKey(0)
cam.rel... | [
"noreply@github.com"
] | noreply@github.com |
29835473741df9689a8730a89fdabc9f29e04122 | 1f5604957c4b6e455dce65a4ded15189cca4d7f1 | /tests/thermostat/test_set_day_program.py | c586f93e5148df088384292f67d151513f86d3cb | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ahmedalshamary/radiotherm | a0c65e84ae7e39c661ae37699a8538cd910c4b0f | 614a2516b8bdb1d3c1b8cf3c641a9034c5adcf55 | refs/heads/master | 2023-07-30T12:36:14.797483 | 2021-01-19T01:55:37 | 2021-01-19T01:55:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | import json
try:
from mock import patch
except ImportError:
from unittest.mock import patch
from tests.base_test_case import BaseTestCase
from radiotherm.thermostat import CommonThermostat
PROGRAM = {1:[480,73,1380,70,1380,70,1380,70]}
class TestSetDayProgram(BaseTestCase):
@patch('radiotherm.thermostat... | [
"mhrivnak@hrivnak.org"
] | mhrivnak@hrivnak.org |
54298b423bc85959236f26052ac6589f74b4f165 | b57e098523ed045df87960ea77caacdfccaf4563 | /Courts/Sikkim.py | 0d0c2fc44de283ef6f9ec8ed201082738a095a15 | [] | no_license | abhishekjain12/CourtScrappingWebApp | 4e92be8fd99a74da334eecadb4d3438540afa389 | 810fdaad597f82539d739c442291783a5a489b8e | refs/heads/master | 2021-06-21T10:25:55.907439 | 2019-07-14T19:38:35 | 2019-07-14T19:38:35 | 145,399,257 | 0 | 0 | null | 2019-02-24T08:09:30 | 2018-08-20T09:53:40 | Python | UTF-8 | Python | false | false | 8,899 | py | import json
import os
from datetime import datetime
import requests
import traceback
import logging
from pdfminer.pdfinterp import PDFResourceManager, PDFPageInterpreter
from pdfminer.pdfpage import PDFPage
from pdfminer.converter import TextConverter
from pdfminer.layout import LAParams
from io import StringIO
from... | [
"jabhi1210@gmail.com"
] | jabhi1210@gmail.com |
8ed39440987cd7210e336bd6c911e6298e677679 | 777280dfb0387ebd03c8243975b9b8c56a61ed14 | /Python/variables.py | 0215ab03fb6096df79e95ddd65b4cd06c083859b | [] | no_license | wilsonwuux/Lenguajes2.0 | c067f84495d7c4571b2f89244dd851df58656509 | 13e74230e4ec6d5410116ea44730ed2f931427ed | refs/heads/master | 2023-06-11T17:00:09.543126 | 2021-06-28T13:49:23 | 2021-06-28T13:49:23 | 359,957,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | Variable1="texto"
CONSTANTE=33
print(CONSTANTE)
CONSTANTE=44
def nueva2():
return Variable1
print(CONSTANTE) | [
"https://wilsonwuux@github.com"
] | https://wilsonwuux@github.com |
22fa7fd308cb347454c38a2c10099d6d3dcc2398 | 81fce3064fb94b23cab9665f39ed65b130a5f37b | /python/knight-Dailer-v2.py | ab4ca576fef812ae164c8fcbddc80d9d22dea9bd | [] | no_license | zhanghaofeng/junos-automation | ddeb3a7fd64b5f2c40c0b8227f788996fdcf2c1a | e6e86fa39213185b4e0611f66eaee679c0a537b8 | refs/heads/master | 2022-07-17T04:46:40.223959 | 2022-06-05T18:41:00 | 2022-06-05T18:41:00 | 49,191,151 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,604 | py | # https://leetcode.com/problems/knight-dialer/
# Meaningful discussion: https://alexgolec.dev/google-interview-questions-deconstructed-the-knights-dialer/
class Solution:
# this solution works if n==4
# def currentPossibilities(self, position, repeat):
# NEIGHBORS_MAP = {
# 1: (6, 8),
... | [
"hfzhang.cn@gmail.com"
] | hfzhang.cn@gmail.com |
7ada2586a0ccebebfa6b784143f3f8ab5e1602f0 | 63bacb52d016cf7a237dacd79ba2861842c49ca9 | /zuora_client/models/get_entities_user_accessible_response_type.py | cd250a178562f5a663b37538120c230860fcc65e | [] | no_license | arundharumar-optimizely/zuora-client-python | ee9667956b32b64b456920ad6246e02528fe6645 | a529a01364e41844c91f39df300c85c8d332912a | refs/heads/master | 2020-07-05T23:09:20.081816 | 2019-07-30T21:46:47 | 2019-07-30T21:46:47 | 202,811,594 | 0 | 0 | null | 2019-08-16T23:26:52 | 2019-08-16T23:26:52 | null | UTF-8 | Python | false | false | 43,810 | py | # coding: utf-8
"""
Zuora API Reference
# Introduction Welcome to the reference for the Zuora REST API! <a href=\"http://en.wikipedia.org/wiki/REST_API\" target=\"_blank\">REST</a> is a web-service protocol that lends itself to rapid development by using everyday HTTP and JSON technology. The Zuora REST A... | [
"brian.lucas@optimizely.com"
] | brian.lucas@optimizely.com |
bec544c21b92fffbb165689f9ecb0a684c657958 | 156c6c4bc8f90211e3b5bd6e1943d7930362e7a3 | /3rdparty/spirv-headers/include/spirv/unified1/spirv.py | 4a32b29c5e78c1b8ba37b1ea0171e6bc9889d544 | [
"BSD-2-Clause",
"MIT",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | BorisShir/bgfx | a67bb1f6440cc4b613a3ef9a193c024e6e13545d | 1dc0074cacef437a131ce810e646615ed7c15521 | refs/heads/master | 2020-09-25T04:35:54.699006 | 2020-06-30T15:29:07 | 2020-06-30T15:29:07 | 225,917,957 | 1 | 0 | BSD-2-Clause | 2019-12-04T17:09:13 | 2019-12-04T17:09:12 | null | UTF-8 | Python | false | false | 53,796 | py | # Copyright (c) 2014-2020 The Khronos Group Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and/or associated documentation files (the "Materials"),
# to deal in the Materials without restriction, including without limitation
# the rights to use, copy, modify, m... | [
"branimirkaradzic@gmail.com"
] | branimirkaradzic@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.