blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1eb0097e0c8cd468a65d150445c6869570bf0e9b | 4a8c1f7d9935609b780aff95c886ef7781967be0 | /atcoder/ABC/A/154_a.py | 8d5b91dddaa69962c59f8ea2171b704dc855ff16 | [] | no_license | recuraki/PythonJunkTest | d5e5f5957ac5dd0c539ef47759b1fe5ef7a2c52a | 2556c973d468a6988d307ce85c5f2f8ab15e759a | refs/heads/master | 2023-08-09T17:42:21.875768 | 2023-07-18T23:06:31 | 2023-07-18T23:06:31 | 13,790,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,015 | py | import sys
from io import StringIO
import unittest
import logging
logging.basicConfig(level=logging.DEBUG)
def resolve():
s, t = input().split()
a, b = map(int,input().split())
u = input()
d = dict()
d[s] = a
d[t] = b
d[u] -= 1
print("{0} {1}".format(d[s], d[t]))
class TestClass(unitte... | [
"glenda.kanai@gmail.com"
] | glenda.kanai@gmail.com |
3608562ae34b92bfa84cac700954eb53ae13340b | 917b080572da1d0572bd7322080962aae96c3534 | /wpscan_out_parse/parser/components/_parts/wp_item_version.py | e50b80afd9a950d6abf7ff93402ea09550db06f6 | [
"MIT"
] | permissive | tristanlatr/wpscan_out_parse | 90bff72cf43cc718eb6daa1c183180cb13c33e24 | 737a7e9b5f47c7e433351b7a9c0b55d76f173e25 | refs/heads/master | 2023-06-24T18:44:50.969064 | 2021-07-27T03:22:24 | 2021-07-27T03:22:24 | 287,036,975 | 8 | 5 | MIT | 2021-04-26T20:45:13 | 2020-08-12T14:34:46 | Python | UTF-8 | Python | false | false | 1,494 | py | from typing import Any, Dict, Sequence
from .finding import Finding
class WPItemVersion(Finding):
def __init__(self, data:Dict[str,Any], *args: Any, **kwargs: Any) -> None:
"""Themes, plugins and timthumbs Version. From:
https://github.com/wpscanteam/wpscan/blob/master/app/views/json/theme.erb
... | [
"tris.la.tr@gmail.com"
] | tris.la.tr@gmail.com |
26373103568f5bf47e748a3addd1fa83f8849293 | eeb1c9e26683f9d889b7b9dd36b872460570b20c | /day6/program11.py | 001c8ae84336fa27fbc5248e0818b6bbbaf36698 | [] | no_license | PiyushKumar0/tathastu_week_of_code | e103d7f343bda876ddf587971a0e6a53d4d7f608 | 7a12f1a17ea7ce26c4990fadba4b132c437a7c0b | refs/heads/master | 2022-08-19T13:58:39.085360 | 2020-05-25T17:46:55 | 2020-05-25T17:46:55 | 265,224,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | #https://www.linkedin.com/in/piyushkumar0/
size = int(input("Enter size of list: "))
ls = []
for i in range(size):
ls.append(int(input("Enter element " + str(i+1) + " : ")))
ls.sort()
print("\nLargest product of 3 nummbers in list is:", ls[-1]*ls[-2]*ls[-3])
| [
"noreply@github.com"
] | PiyushKumar0.noreply@github.com |
904c35da6fd52f687a268b76d5854921093b3f83 | c6e5d5ff2ee796fd42d7895edd86a49144998067 | /platform/coredb/tests/test_api/test_projects_serializers.py | 87469beef2281918ad7a46fe6d1fccf9c43e180d | [
"Apache-2.0"
] | permissive | zeyaddeeb/polyaxon | f4481059f93d8b70fb3d41840a244cd9aaa871e0 | 1f2b236f3ef36cf2aec4ad9ec78520dcc9ef4ee5 | refs/heads/master | 2023-01-19T05:15:34.334784 | 2020-11-27T17:08:35 | 2020-11-27T17:08:35 | 297,410,504 | 0 | 0 | Apache-2.0 | 2020-09-21T17:20:27 | 2020-09-21T17:20:26 | null | UTF-8 | Python | false | false | 2,458 | py | #!/usr/bin/python
#
# Copyright 2018-2020 Polyaxon, Inc.
#
# 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 ... | [
"mouradmourafiq@gmail.com"
] | mouradmourafiq@gmail.com |
f7f5375e94e82e817d562cf4d76c04cd6fd9cb62 | a59e13d5bdf7fa933229fdecee203a4e72fc01a2 | /ldcpy/plot.py | 6cce356c3b4a9733f848d4fb6aaf20f1c68966c3 | [] | no_license | mnlevy1981/ldcpy | 7fa331c8a5d1e5f2b1a4583f72928ea3ddcc5c56 | 2aa7285b7addf59116eeafa567094cf6f5113180 | refs/heads/master | 2020-08-18T22:45:11.450989 | 2019-10-18T19:59:28 | 2019-10-18T19:59:28 | 215,843,523 | 0 | 0 | null | 2019-10-17T16:59:52 | 2019-10-17T16:59:52 | null | UTF-8 | Python | false | false | 4,854 | py | import numpy as np
import matplotlib.pyplot as plt
#import matplotlib as mpl
import cartopy
import cartopy.crs as ccrs
import cmocean
from cartopy.util import add_cyclic_point
###############
def compare_mean(ds, varname, ens_o, ens_r, method_str, nlevs=24):
"""
visualize mean value at each grid point for ori... | [
"mike.levy.work@gmail.com"
] | mike.levy.work@gmail.com |
cd9ee91eaefcc759f583a3258f9ed8c6a10deef1 | 716c84588373d72e200df58301dace387a290a08 | /annotate_xml_gen.py | c17a021c0af4928f1da24bd032a01ca13278702f | [] | no_license | Yazkard/autonomy | c2a1a6706964332522c4e997731432c02e8ca07d | 8d1d5bbb15bdf677353a712b9d9223b5a743ad9f | refs/heads/master | 2020-04-17T08:09:08.449599 | 2019-01-18T13:29:03 | 2019-01-18T13:29:03 | 166,398,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,824 | py | import os
import cv2
from lxml import etree
import xml.etree.cElementTree as ET
def write_xml(folder, img, objects, tl, br, savedir):
if not os.path.isdir(savedir):
os.mkdir(savedir)
image = cv2.imread(img.path)
height, width, depth = image.shape
annotation = ET.Element('annotation')
ET.... | [
"jakubprzygodzki@gmail.com"
] | jakubprzygodzki@gmail.com |
eb9a50de88e516ed6f69c41390f76dc0a019f264 | e4e669c42287fa6b1f77a68fb5875ddcd09bd040 | /FeedbackAnalysis1/hotels/urls.py | 47d5d36017cee3cc9c3f0728d1a7966676c3f49e | [] | no_license | Ajanthy/Django_RAD | 6e69cb932733eff613df331a254c457c782d7cec | d241bc7055f8d4b77567e0e943768be90e1f7138 | refs/heads/master | 2022-01-11T09:23:39.854510 | 2019-08-10T12:10:39 | 2019-08-10T12:10:39 | 198,010,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | from django.urls import path
from . import views
urlpatterns = [
path('login/',views.login,name = "login"),
path('signup/',views.signup,name = "signup")
] | [
"ajanthyjaya@gmail.com"
] | ajanthyjaya@gmail.com |
700a5bd7c718ae55bda73826ce532108ac562ec7 | 56b2c2009c32a193ab461f0d78048231738c8dce | /data/serializers.py | 67ac1a5248994462545ee9635013230da811cf74 | [
"MIT"
] | permissive | howdoicomputer/calischools | ff14792f28f7c1eec8d3c3e5b60bae4251563fb9 | a5cd0ebf60cfc004193637c68d30c4ab5b5f0adb | refs/heads/master | 2021-01-20T16:03:46.008917 | 2015-10-23T17:21:25 | 2015-10-23T17:21:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,606 | py | import six
from django.utils.translation import ugettext_lazy as _
from rest_framework import serializers
from rest_framework.exceptions import ValidationError
from schools.models import SCHOOL_STATUS_CHOICES, School
class CountyCodeField(serializers.CharField):
def to_internal_value(self, data):
# We ne... | [
"me@jeev.io"
] | me@jeev.io |
c45763e5fa0e1be16b1a5c6db931a5ffc4b7c0af | bf033827dad5a47d2ab86b8de0d5d62db10c3da8 | /python-scripts/compose/EncodeToAttach | ddfc5608f2479eb02d75499d4fcb0df7d9a28334 | [] | no_license | BartekUR/Steganosaurus | 5305fa5f8cf7825a0d698f991143728fc8351433 | 5cf2638286ef5f39bd41f0eb3c000f99c7f3fcb9 | refs/heads/master | 2021-01-12T01:43:20.802644 | 2017-01-10T13:25:33 | 2017-01-10T13:29:02 | 78,421,850 | 3 | 1 | null | 2017-01-09T17:01:49 | 2017-01-09T11:14:32 | Python | UTF-8 | Python | false | false | 804 | # -*- coding: utf-8 -*-
import imp
from os.path import expanduser
imp.load_source("imgenc", expanduser("~/.claws-mail/python-scripts/tools/imgenc.py"))
from imgenc import encode
# pobierz caly tekst wiadomosci
buffer = clawsmail.compose_window.text.get_buffer()
# wykonuj tylko jesli istnieje zaznaczenie
if buffer.ge... | [
"iroedius@users.noreply.github.com"
] | iroedius@users.noreply.github.com | |
b99f002ee641d23ac3789b8edf96db250b0294b1 | 4ad94b71e30883d6df07a3277265bd6fb7457ba7 | /python/examples/doc_examples/data/fe_triangles1_nodemap.py | b0295380cdacfafb6240a3f7b0f9593d8553717a | [
"MIT"
] | permissive | Tecplot/handyscripts | 7cb1d4c80f323c785d06b0c8d37aeb0acb67f58c | 84a89bfecff5479a0319f08eb8aa9df465283830 | refs/heads/master | 2023-08-22T15:29:22.629644 | 2023-08-12T01:19:59 | 2023-08-12T01:19:59 | 149,826,165 | 89 | 64 | MIT | 2022-01-13T01:11:02 | 2018-09-21T22:47:23 | Jupyter Notebook | UTF-8 | Python | false | false | 2,588 | py | import tecplot as tp
from tecplot.constant import *
# Triangle 0
nodes0 = (
(0, 0, 0 ),
(1, 0, 0.5),
(0, 1, 0.5))
scalar_data0 = (0, 1, 2)
conn0 = ((0, 1, 2),)
neighbors0 = ((None, 0, None),)
neighbor_zones0 = ((None, 1, None),)
# Triangle 1
nodes1 = (
(1, 0, 0.5),
(0, 1, 0.5),
(1, 1, 1 ))
s... | [
"55457608+brandonmarkham@users.noreply.github.com"
] | 55457608+brandonmarkham@users.noreply.github.com |
f55827351df455a8b0d8b5c51ce37d76b515980f | 5eea120356afc15cc3edb71f8864d6771ad865c6 | /rl_trading/market_sim/_agents/__init__.py | c03253c2612328563c49661dbd99123580adc1c6 | [
"Apache-2.0"
] | permissive | ShubraChowdhury/Investment_Finance | 469d5e5a200616eee830be18cb4a86d54319a30b | 3da761d755278d3d2de8c201b56d4ff9cb23def4 | refs/heads/master | 2022-12-12T11:52:33.585329 | 2021-09-23T18:13:15 | 2021-09-23T18:13:15 | 153,317,318 | 2 | 0 | null | 2022-12-08T00:45:34 | 2018-10-16T16:22:56 | Jupyter Notebook | UTF-8 | Python | false | false | 445 | py | """
The __init__.py files are required to make Python treat the directories as
containing packages; this is done to prevent directories with a common name,
such as string, from unintentionally hiding valid modules that occur later
(deeper) on the module search path.
@author: ucaiado
Created on 08/19/2016
"""
from .ag... | [
"noreply@github.com"
] | ShubraChowdhury.noreply@github.com |
bc6aa28006763ba25c3816789e06e83fddd5584b | eb35d746c71cf524dc0be3acd557dc0d9adff3f3 | /elementos_modelo/recursos_humanos.py | 78821b87db68b59f57cd05204b09ed52d184c9e0 | [] | no_license | DavidRicardoGarcia/proyecto_final | 8c3da1c214dd008778585888784d6779e69f9577 | 8d337a0e57e9190b10f252f7a1b69ee68eb43aed | refs/heads/master | 2023-05-03T03:23:04.849114 | 2021-05-21T00:59:18 | 2021-05-21T00:59:18 | 337,512,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,887 | py | from datetime import timedelta, datetime
import random
from faker import Faker
import json
import os.path
class trabajador:
def __init__(self,id,nom_ape,email,telefono,empresa,estacion_trabajo):
self.id=id
self.nom_ape=nom_ape
self.email=email
self.telefono=telefono
self.em... | [
"davidnf.44@gmail.com"
] | davidnf.44@gmail.com |
62dff96b260a49f31cbe76d1e58c81bda60fd4f0 | 61699048dc567cd3a814e5b987599dae175bed19 | /Python/month02/day10/exercise03_server.py | 8a627c5c241d5ba129929658ea504a026f743174 | [] | no_license | Courage-GL/FileCode | 1d4769556a0fe0b9ed0bd02485bb4b5a89c9830b | 2d0caf3a422472604f073325c5c716ddd5945845 | refs/heads/main | 2022-12-31T17:20:59.245753 | 2020-10-27T01:42:50 | 2020-10-27T01:42:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | import socket
import pymysql
address = ('0.0.0.0', 45678)
db_socket = socket.socket(socket.AF_INET,
socket.SOCK_DGRAM)
db = pymysql.connect(host='192.168.196.128',
port=3306,
user='root',
password='123456',
da... | [
"1450030827@qq.com"
] | 1450030827@qq.com |
2aa5a26769a98095bac2decf04966187a013a65c | bd5de5a7aa43900e20a73c067916ee6273bf9f90 | /cream/migrations/0016_auto_20190305_1604.py | c2c0d2ee88a92dc44ddd7a65a3ff91fdb21ce04f | [] | no_license | Jeffmusa/De-o-clock | aa321fe194bc11354b1ccd6ff4519834b41b156d | d466253ef8e6de05f9c41fb742bfe0573fd7628c | refs/heads/master | 2020-04-29T03:50:07.318419 | 2019-03-15T14:01:51 | 2019-03-15T14:01:51 | 175,825,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 574 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-03-05 13:04
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cream', '0015_auto_20190305_1603'),
]
operations = [
migrations.RemoveField(
... | [
"jeffmusa@gmail.com"
] | jeffmusa@gmail.com |
c75ac440fddd44702dfc367a9490ae6977caa511 | ff2f56cadf3c28770ad435cf876242eb8d99f137 | /rate_limiter/timer.py | 8c8fddb31c8557c25488b6b607b5c62445454e1c | [] | no_license | yzhishko/rate-limiter | 09bec8b483bb09f803168bfa40275b714fd77a62 | 6677c9a30bceb76ee1ab4774654bd035463f3277 | refs/heads/master | 2022-10-27T15:02:42.811835 | 2020-06-15T01:07:10 | 2020-06-15T01:07:10 | 272,309,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | import time
from abc import ABC, abstractmethod
class Timer(ABC):
@abstractmethod
def next_tick_in_ms(self) -> int:
"""
:return: time in milliseconds from epoch
"""
pass
class SystemTimer(Timer):
"""
Generate system timestamp in milliseconds from epoch
"""
... | [
"yury.zhyshko@datarobot.com"
] | yury.zhyshko@datarobot.com |
5641fe7e250b313fa804fa4895cae9b6f58bb729 | 54a7120bd5b7f7326837a6463b08e784e293f4e9 | /project/preprocess.py | a4ff54ad44a2f24a17c1022763a253d78321f5c1 | [] | no_license | df424/drexel_INFO-T780 | f3c0b8dad9493e44e911cb6635bafd53129984a9 | 418410906761ccdaa9d603923864cef4a4f64633 | refs/heads/master | 2020-05-16T22:11:16.122110 | 2019-06-14T19:47:17 | 2019-06-14T19:47:17 | 183,327,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py |
import numpy as np
from skimage.transform import resize
from skimage import color
def scaleImg(img):
return resize(img, (88, 88), anti_aliasing=True)
def toGrayScale(img):
return color.rgb2gray(img)
if __name__=='__main__':
image = np.random.randint(0, 255, (160, 160, 3))
print(image.shape)
pri... | [
"d.l.flanagan01@gmail.com"
] | d.l.flanagan01@gmail.com |
00e0fe9c483a4afe979051a4f8bbfd9930efbc9c | 921c689451ff3b6e472cc6ae6a34774c4f57e68b | /llvm-2.8/tools/clang/bindings/python/clang/cindex.py | f0f81b5d6948c4e8a0360ca3022341a9fa5d892d | [
"NCSA"
] | permissive | xpic-toolchain/xpic_toolchain | 36cae905bbf675d26481bee19b420283eff90a79 | 9e6d4276cc8145a934c31b0d3292a382fc2e5e92 | refs/heads/master | 2021-01-21T04:37:18.963215 | 2016-05-19T12:34:11 | 2016-05-19T12:34:11 | 29,474,690 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,029 | py | #===- cindex.py - Python Indexing Library Bindings -----------*- python -*--===#
#
# The LLVM Compiler Infrastructure
#
# This file is distributed under the University of Illinois Open Source
# License. See LICENSE.TXT for details.
#
#===--------------------------------------------------------------... | [
"helmutmanck@5227c84a-046b-4545-895e-fca5577db8e1"
] | helmutmanck@5227c84a-046b-4545-895e-fca5577db8e1 |
bd27bc021e11b0220951a285f14747e85ca4b5c9 | 13320f608a2f5d64b06099e271e3491fdc029883 | /invest_management/invest/analysis_code/per_predict.py | 4d5cbb81b668d2484cc474ef88f24aa0b2a78b19 | [] | no_license | Mukai01/Invest-Management | c2c6ea0c03b6b87a994dffb4da9accf4627bc202 | cf4084a5d52975cdde2fe986a2f0eecbc3c8f42a | refs/heads/master | 2023-08-21T20:39:49.237099 | 2021-11-02T15:55:39 | 2021-11-02T15:55:39 | 415,962,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,145 | py | import pandas as pd
import matplotlib.pyplot as plt
from sklearn.ensemble import RandomForestRegressor
from sklearn.metrics import r2_score
from sklearn.model_selection import GridSearchCV
import mglearn
import numpy as np
import japanize_matplotlib
import numpy as np
from urllib import request
from bs4 import Beautifu... | [
"nakamukaiya@gmail.com"
] | nakamukaiya@gmail.com |
4280273f863bf6db33ef9b6e39f235c1147faeb2 | 6a07912090214567f77e9cd941fb92f1f3137ae6 | /cs101/Unit 2/21.py | 0e2c93050707e132334251d46f9f789d59f35a8d | [] | no_license | rrampage/udacity-code | 4ab042b591fa3e9adab0183d669a8df80265ed81 | bbe968cd27da7cc453eada5b2aa29176b0121c13 | refs/heads/master | 2020-04-18T08:46:00.580903 | 2012-08-25T08:44:24 | 2012-08-25T08:44:24 | 5,352,942 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | # cs101 ; Unit 2 ; 21
# Define a procedure, biggest, that takes three
# numbers as inputs and returns the largest of
# those three numbers.
def biggest():
#print biggest(3, 6, 9)
#>>> 9
#print biggest(6, 9, 3)
#>>> 9
#print biggest(9, 3, 6)
#>>> 9
#print biggest(3, 3, 9)
#>>> 9
#print biggest(9, 3, 9)
#>>> 9 | [
"raunak1001@gmail.com"
] | raunak1001@gmail.com |
4fa4b736036bbfe2740e9156de8bd98f704ed0d2 | 848b03400ae490d8820a562bc88083331dc5de1a | /Webappnondocker/Webappnondocker/settings.py | 9aafb1a2709c7e3dade6fac5acd3dc93ae361f0d | [] | no_license | naclhv/LitSearch | b9fc1d5c47bcc059e521ebe22bf9c1b14901ea5a | 5367468e2a74b45d46b2c1109a6d0541d378ad94 | refs/heads/master | 2020-04-10T21:22:59.260944 | 2018-12-11T08:09:09 | 2018-12-11T08:09:09 | 161,295,307 | 0 | 0 | null | 2018-12-11T08:09:10 | 2018-12-11T07:35:05 | Jupyter Notebook | UTF-8 | Python | false | false | 3,252 | py | """
Django settings for Webappnondocker 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/
"""
impo... | [
"nathanlee@pop-os.localdomain"
] | nathanlee@pop-os.localdomain |
30289cd6ca108a992ed0e2ea69fc290133a69895 | e51f208a853235588428b65bb6931136bfdfeed3 | /usr/lib/enigma2/python/Plugins/Extensions/RaedQuickSignal/logging.py | 663bf8bc6c0a7c02db5ca64e3813de1df6f9ab89 | [] | no_license | ostende/RaedQuickSignal | 04601e5e42124b820384e9459da5576eaabffb9e | 3307433280802ba41fda60cbba4c9aedc9c4249a | refs/heads/master | 2022-11-27T21:12:44.497786 | 2020-07-26T15:35:45 | 2020-07-26T15:35:45 | 282,678,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 808 | py | import os, sys, traceback
logFile='/tmp/RaedQuickSignal.log'
def trace_error():
try:
traceback.print_exc(file=sys.stdout)
traceback.print_exc(file=open(logFile, 'a'))
except:
pass
def logdata(label_name = '', data = None,mode='a'):
try:
data=str(data)
i... | [
"redouaneelrhachi@gmail.com"
] | redouaneelrhachi@gmail.com |
3ddeffe2b0b62d255e649df3e60789d17dfa27a8 | 48e463613924b9214cf1bd447d6dd4e240f7b595 | /registers/apps.py | 77493497492ff0efb84e22b8d963365debaf6b60 | [] | no_license | jjrubio/ObservatorioCIEC | e8d2ee128273a7755fa83893769b0110baf3fc6f | 131b9976bbbdf9fd2b640971500ce2cb68f3dddf | refs/heads/master | 2016-09-05T23:21:43.248432 | 2015-09-15T14:33:03 | 2015-09-15T14:33:03 | 18,084,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | from django.apps import AppConfig
class RegistersConfig(AppConfig):
name = 'registers'
verbose_name = "Registros" | [
"jefferson.jrubio@gmail.com"
] | jefferson.jrubio@gmail.com |
a05d341795df4bead5442dee170fa530a6f660b0 | a060c70f8fbacc8b2455efce7b08beeacc7e0e8a | /PythonCrashCourse/Chapter10/pi_string.py | 7c3790bd0e934eb9736faade4d0817ef03235729 | [] | no_license | mingqin-joy/python-crash-course | 091cb36ffd838fb8e9a9555c442c3a6994bd92aa | 31363d91d5cb9f28f145b5cc583a354bc08419ba | refs/heads/master | 2020-05-15T02:37:50.092231 | 2019-04-29T06:35:56 | 2019-04-29T06:35:56 | 182,052,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 740 | py | filename = 'C:/Users/MingqinZhou/Desktop/pi_digits.txt'
with open(filename) as file_object:
lines = file_object.readlines()
pi_string = ''
for line in lines:
pi_string += line.strip()
print(pi_string)
print(len(pi_string))
filename2 = 'C:/Users/MingqinZhou/Desktop/pi_million_digits.txt'
with open(filename2) as... | [
"mingqin-joy@outlook.com"
] | mingqin-joy@outlook.com |
68adc132a13b547082ae9bf93266f387975af7e3 | 55cbb7dc747477b72386cdf5ff836752753f8452 | /Downloader/file_clipper.py | fca1b2cd6860399b223135bc1ad18c4eb15bb495 | [] | no_license | MScatolin/W251_Final_Project_Say1-10 | 732fc2d494aef8ba18db3294371153f1a6a2891f | 15c0f4a88627f7a9e5888209ee8a8c5442596352 | refs/heads/master | 2023-04-07T03:43:42.815118 | 2019-08-25T23:49:37 | 2019-08-25T23:49:37 | 198,738,511 | 3 | 1 | null | 2023-03-24T21:54:46 | 2019-07-25T02:02:27 | Python | UTF-8 | Python | false | false | 5,020 | py | import os
import cv2
import math
import time
from pydub import AudioSegment
# verify files path
save_dir = "data/"
list_of_words = ["ZERO", "ONE", "TWO", "THREE", "FOUR", "FIVE", "SIX", "SEVEN", "EIGHT", "NINE"]
fps = 100 # according to dataset documentation
height = 640 # original height is 1920
width = 360 # orig... | [
"marceloscatolin.queiroz@gmail.com"
] | marceloscatolin.queiroz@gmail.com |
46dadfd93b119bf9ce928e5793491dcaf6946d38 | f63c4eb29ce57319441f5469d1d049b63bc220de | /swu_cycle_variance/run345.py | 2c0fb812bf7981a62a7013b0adf18e22cdad3021 | [] | no_license | a-co/diversion_models | 0237642153668b16035699e9e734ff0538568582 | 69eed2687b1cd2b48f5717d15919eccd24a0eabc | refs/heads/main | 2023-05-02T19:04:26.333677 | 2020-06-18T20:50:18 | 2020-06-18T20:50:18 | 216,904,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,362 | py | SIMULATION = {'simulation': {'agent': [{'name': 'deployer_military', 'prototype': 'military_deployer'}, {'name': 'deployer_civilian', 'prototype': 'civilian_deployer'}, {'name': 'deployer_shared', 'prototype': 'shared_deployer'}], 'archetypes': {'spec': [{'lib': 'cycamore', 'name': 'DeployInst'}, {'lib': 'cycamore', 'n... | [
"acaldwel@wellesley.edu"
] | acaldwel@wellesley.edu |
402064ca0456d37b5d3880b716a2b872d0626cfb | c4d24e33c688709fa6e96619d52f3be4af4cc72c | /pre_Net50.py | 6fa257b22fdd0259fcb94702070be9b2f5c9211c | [] | no_license | yangyi521/image_recognition | b7ef20ad0275cf547afcae11efe6ff94af6bbc0f | 638865186fc9db004091c6e714e702bb9247823a | refs/heads/master | 2020-03-08T02:43:06.768968 | 2018-04-22T07:59:00 | 2018-04-22T07:59:00 | 127,868,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,093 | py | from keras.models import load_model
from keras.preprocessing import image #从Keras中导入image模块 进行图片处理
from keras.applications.vgg16 import VGG16, preprocess_input
import numpy as np
import os
import random
from sklearn.preprocessing import LabelEncoder
from sklearn.model_selection import StratifiedShuffleSplit
my_model=l... | [
"yangyi521@163.com"
] | yangyi521@163.com |
28a783a5837335c8310dff6dfc3244031372e107 | 02a7e6c18f7cf6197efeddca2b89b227cc28c99d | /sandbox/settings/demo.py | 203bdf29b4543388710f6d38b2f632e0c15d4ec4 | [
"MIT"
] | permissive | ChangqiaoWang/djangocodemirror | c34f48d86cc8eb7914f62c9a8744fb38a8765126 | 02869149fb698315474b7f7544876def0e9fe21d | refs/heads/master | 2023-03-15T16:30:40.740257 | 2019-05-05T13:18:23 | 2019-05-05T13:18:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | """
Django settings for project demonstration (will not work for unittests)
Actually inherits from settings for Django 1.6. Intended to be used with
``make server``.
"""
import os, copy
from sandbox.settings.base import *
#
# DjangoCodemirror settings
#
from djangocodemirror.settings import *
# Keep default shipped... | [
"sveetch@gmail.com"
] | sveetch@gmail.com |
5d70031e2cb538656aadfb873d8d04524272ca7b | 76122e6a59deef5b2ca59553c7b7efb1ab3e0a3b | /main.py | 77161e7ce2aceef8c17494948d649b11af9548be | [] | no_license | lunaplush/star | 2d43c8f7589101d0998bce96774d20e6e8786b80 | b13f4383baa12e25f826cd11344789a737e2ac37 | refs/heads/master | 2020-03-30T12:09:17.169787 | 2019-02-13T06:36:17 | 2019-02-13T06:36:17 | 151,210,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,614 | py | import torch
import torch.utils.data as torchdata
import torch.nn as nn
import torch.optim as optim
import torch.nn.functional as F
import numpy as np
import matplotlib.pyplot as plt
import time
import csv
from sklearn.preprocessing import StandardScaler
import seaborn as sns
from sklearn.model_selection import Stratif... | [
"lunaplus@mail.ru"
] | lunaplus@mail.ru |
c6b64a5371c2b0fa60db0caa630c15cbb675b7bb | e9988eb38fd515baa386d8b06bb7cce30c34c50d | /sitevenv/lib/python2.7/site-packages/django/utils/dateformat.py | c417f6b146a02caca26d99923709ff5386a7db58 | [] | no_license | Arrrrrrrpit/Hire_station | 8c2f293677925d1053a4db964ee504d78c3738d8 | f33f044628082f1e034484b5c702fd66478aa142 | refs/heads/master | 2020-07-01T01:24:18.190530 | 2016-09-25T20:33:05 | 2016-09-25T20:33:05 | 201,007,123 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,263 | py | """
PHP date() style date formatting
See http://www.php.net/date for format strings
Usage:
>>> import datetime
>>> d = datetime.datetime.now()
>>> df = DateFormat(d)
>>> print(df.format('jS F Y H:i'))
7th October 2003 11:39
>>>
"""
from __future__ import unicode_literals
import calendar
import datetime... | [
"kunal1510010@gmail.com"
] | kunal1510010@gmail.com |
76bc6edf4843b543cc1807d9ab867ff6663da885 | bb4bc61520ba68aba6dbd66c9210ef2c9cf30402 | /u_net.py | 64561a5891b6e8e35fadea6ba4eb95d4489ff92a | [] | no_license | rollervan/PD2D | 815763a9e6327438bcaba9aaf64aa9137507072a | 7f8610b53df44748064449353daaebf2c106e266 | refs/heads/master | 2021-07-07T03:57:20.922494 | 2020-10-17T21:43:51 | 2020-10-17T21:43:51 | 200,839,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,839 | py | import tensorflow as tf
def unet(self,inputs,kernel_size,padding, training=False):
with tf.name_scope('UNet'):
if self.batch_norm:
preactivation = tf.layers.batch_normalization(inputs,training=training)
else:
preactivation = inputs
# Down
res1 = tf.layers.co... | [
"17121671+rollervan@users.noreply.github.com"
] | 17121671+rollervan@users.noreply.github.com |
f6d960bea038dcac875c5f80e5f262a69400f102 | 0e5291307525916f95faecaaa175fd7839eddbf8 | /SySeVR_docker/docker_build/home/SySeVR/softdir/py2neo-py2neo-2.0/test/core/1/neo4j_cast_test.py | cc070d56dc67b8a7f41fd44bad874245d3d0c1f2 | [
"Apache-2.0"
] | permissive | SySeVR/SySeVR | 9d7df721ac4964c4746e18938b4383e4a8142cc8 | 5e195d0bc63a76a298b65c9c3460fed0ee3082c7 | refs/heads/master | 2022-06-16T22:17:21.117906 | 2021-10-29T08:59:23 | 2021-10-29T08:59:23 | 141,377,750 | 255 | 125 | null | 2022-06-05T03:02:06 | 2018-07-18T03:45:49 | HTML | UTF-8 | Python | false | false | 1,937 | py | #/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2011-2014, Nigel Small
#
# 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 ... | [
"CGDdataset@126.com"
] | CGDdataset@126.com |
fac215a3e006406cdae14e047b25247876042968 | 2babf591c9d87adaeb32578c4b8624ba49e62b35 | /mmdet/models/dense_heads/light_rpn_headv2.py | 00e6c66d342a5368dcb3973cf31ca6e5479360a3 | [
"Apache-2.0"
] | permissive | TonojiKiobya/thundernet_mmdetection | c55cc2536f6999290ab119bdfc158545101a7d0a | 9430592316134c390d9094560cfdb848d3e195ac | refs/heads/master | 2023-03-19T01:38:12.919553 | 2021-02-20T09:52:47 | 2021-02-20T09:52:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,296 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from mmcv.cnn import normal_init
from mmcv.ops import batched_nms
from ..builder import HEADS
from .anchor_head import AnchorHead
from .rpn_test_mixin import RPNTestMixin
from mmdet.core import merge_aug_proposals, multi_apply
class h_sigmoid(nn.Modu... | [
"yanghuiyu@yanghuiyudeMacBook-Pro.local"
] | yanghuiyu@yanghuiyudeMacBook-Pro.local |
bf60457b7b6ba31dd0c6852c148dc769a2f29581 | 575c17073b44cac78ebbad6b1f5c5e629fee5dc3 | /DP_RFID/main_2.py | d08a18f94a39b57bb11d96b48e08da0f833c046a | [] | no_license | Parthgaba/dp-rfid | a707efe8b5bc3bae460e29bcc3650153295d65ec | 92b58e521096ff79c73943831757538a18d1eff4 | refs/heads/main | 2023-02-16T12:09:32.700904 | 2020-12-30T10:47:21 | 2020-12-30T10:47:21 | 325,523,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,185 | py | from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtGui import QIcon, QPixmap
import mysql.connector as con
import shutil
import database
import requests
import serial as ser
import threading
import serial.tools.list_ports
comlist = serial.tools.list_ports.comports()
connected = []
for element in com... | [
"noreply@github.com"
] | Parthgaba.noreply@github.com |
a066fc2995434fea778230d30bb6230153f10f38 | c41d75f9791970600a8d63c8b175bca47f9f290e | /main.py | 4cfe442d9c1f6f92295bae1aa633170bc8f1a0c5 | [] | no_license | jesse-chen-yuki/snakeGame | f8f20068eece7acc378845bcd8f0f2c42d831b7e | 013b9bf77c3b7e1b5af297710200b7a286641591 | refs/heads/master | 2023-05-02T16:09:03.795133 | 2021-05-26T03:01:27 | 2021-05-26T03:01:27 | 370,889,472 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,203 | py | # a snake game
import random
import pygame
import tkinter as tk
from tkinter import messagebox
class cube(object):
rows = 20
w = 500
def __init__(self, start, dirnx=1, dirny=0, color=(255, 0, 0)):
self.pos = start
self.dirnx = 1
self.dirny = 0
self.color = color
def ... | [
"jesse.chen@ualberta.ca"
] | jesse.chen@ualberta.ca |
d1531795a5292c3471408eef7862c551b90b8234 | 069f74659f8d8ab92560109e600ab175c81d449f | /meiduo_mall/celery_tasks/sms/yuntongxun/xmltojson.py | 256cbf43938e094647aa9326ded8ceacb6cff856 | [
"Apache-2.0"
] | permissive | ld-xy/VUE3.x-Django-cli4.x | e9d7a659750b8645820cf8353d02479d5d7f8540 | 17c662f5a5844c066fd0a59d64e43b4306f94cfd | refs/heads/main | 2023-06-24T02:00:53.018569 | 2021-07-31T08:59:38 | 2021-07-31T08:59:38 | 391,298,709 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,206 | py | import os
import xml.etree.ElementTree as ET
from xml.dom import minidom
import logging
logger = logging.getLogger('django')
class xmltojson:
# global var
# show log
SHOW_LOG = True
# XML file
XML_PATH = None
a = {}
m = []
def get_root(self, path):
'''parse the XML file,and g... | [
"1614030192@qq.com"
] | 1614030192@qq.com |
0dd44d8ea65004079b96c2e8cb51d5a1f17591d9 | 4fd6295b415c65a81f541b8ce94eb6f7a4f44829 | /LeetCode/gas-station.py | e6f9bdf7098eb6edf3e8e3440999f814b1e580e3 | [] | no_license | CWood994/ABC | e0e34c8a334c2fa3ac03d42eae965c2dfb8aa42b | 81abf2a3331a0097d278df327213d86ce3af90ca | refs/heads/master | 2021-05-07T04:16:38.522566 | 2018-02-26T21:35:11 | 2018-02-26T21:35:11 | 111,267,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | class Solution(object):
def canCompleteCircuit(self, gas, cost):
"""
:type gas: List[int]
:type cost: List[int]
:rtype: int
"""
if sum(gas) < sum(cost) or len(gas) != len(cost):
return -1
index = 0
left = 0
... | [
"connwood@cisco.com"
] | connwood@cisco.com |
38ca812feb5a61935672a65d6f86f79c928ffb60 | 3784495ba55d26e22302a803861c4ba197fd82c7 | /venv/lib/python3.6/site-packages/tensorflow_core/_api/v2/compat/v1/saved_model/constants/__init__.py | cc4fda4d17880c50607f1863aeb5f3dcd9d02668 | [
"MIT"
] | permissive | databill86/HyperFoods | cf7c31f5a6eb5c0d0ddb250fd045ca68eb5e0789 | 9267937c8c70fd84017c0f153c241d2686a356dd | refs/heads/master | 2021-01-06T17:08:48.736498 | 2020-02-11T05:02:18 | 2020-02-11T05:02:18 | 241,407,659 | 3 | 0 | MIT | 2020-02-18T16:15:48 | 2020-02-18T16:15:47 | null | UTF-8 | Python | false | false | 1,080 | py | # This file is MACHINE GENERATED! Do not edit.
# Generated by: tensorflow/python/tools/api/generator/create_python_api.py script.
"""Constants for SavedModel save and restore operations.
"""
from __future__ import print_function as _print_function
import sys as _sys
from tensorflow.python.saved_model.constants imp... | [
"luis20dr@gmail.com"
] | luis20dr@gmail.com |
c6069f5ac010ee31dcdeaa9b41fc91621e3f0016 | fc21f4b9b865bd6e6fda1885e5c1c392f413918e | /src/models.py | 299d850d6e7efcf1dc68542beb3d8aa7bb432385 | [
"MIT"
] | permissive | vishwa742/WebApp | 8d44a3d96a29456f661ef498aeba9a6d210c5047 | 28d626b463e043c8e11d22b368af39ddda98b6a8 | refs/heads/master | 2023-05-11T23:06:58.258714 | 2019-12-14T04:25:04 | 2019-12-14T04:25:04 | 226,716,091 | 0 | 1 | MIT | 2023-05-01T20:37:37 | 2019-12-08T18:57:43 | Python | UTF-8 | Python | false | false | 268 | py | import flask_sqlalchemy
db = flask_sqlalchemy.SQLAlchemy()
class Cats(db.Model):
__tablename__ = 'cats'
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(100))
price = db.Column(db.Integer)
breed = db.Column(db.String(100)) | [
"ezhilvishwanath@gmail.com"
] | ezhilvishwanath@gmail.com |
ff606b815720b309fbfb5d46398331bbd566a330 | 9dc8c299ee7d4a225002127cc03b4253c8a721fd | /config.py | ba04b01c88725efffc4982638a1496ea86151d3f | [] | no_license | namesuqi/strategy_corgi | 5df5d8c89bdf7a7c465c438048be20ef16120f4f | 557b8f8eabf034c2a57c25e6bc581858dd4f1b6e | refs/heads/master | 2020-03-07T04:00:18.313901 | 2018-03-29T07:50:50 | 2018-03-29T07:50:50 | 127,253,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,068 | py | #!/usr/bin/python
# coding=utf-8
# __author__ = JinYiFan
from libs.module.configs import *
from libs.module.files import *
from libs.module.onlines import *
from libs.module.peers import *
from libs.sdk.file import *
from libs.const.config import CPPC, PSIZE, DURATION, OPERATION, PLAY_TYPE, ERROR_TYPE
from libs.module... | [
"suqi_name@163.com"
] | suqi_name@163.com |
098c7a62a3bca39911339029a6b2f591f70f3fa5 | bdca9b7a57c3c6b1ddec8f78c457bc50fc9f0ef8 | /official/modeling/activations/__init__.py | 8bada46826e35f9834da9f59ebcfc5426584005e | [
"Apache-2.0"
] | permissive | cloud-annotations/models | 51c108646f82232e4009501f1bad68dd874a5a4f | 6b7c444123bc2508a192228a1ef470bdc0f8a4c6 | refs/heads/master | 2023-01-02T10:32:48.726913 | 2020-10-30T17:47:44 | 2020-10-30T17:47:44 | 295,465,958 | 1 | 2 | Apache-2.0 | 2020-10-30T17:47:45 | 2020-09-14T15:55:21 | null | UTF-8 | Python | false | false | 1,072 | py | # Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
31e1a6d6b4854cb7a59cfa8cff8e794a29d0d0b2 | 5a6ee374bdea5d10c391e7c462f268d2e6e3ee5b | /variant_diskstras_algorithm.py | 86c9e19fcdb6aa6938d38d82c89f3397de2459b3 | [] | no_license | revhea2/priority-based-resource-allocation | 20cf692d860081086de246a0fd935a677dcaebb3 | f6f333171f5fb54643ab80b446e4432a0c780d93 | refs/heads/main | 2023-07-08T07:47:37.774878 | 2021-08-04T06:52:00 | 2021-08-04T06:52:00 | 391,100,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,588 | py | class VDA:
def __init__(self, graph):
self.graph = [
[0, 0, 13, 0, 16, 8],
[0, 0, 0, 6, 0, 10],
[13, 0, 0, 16, 0, 11],
[0, 6, 16, 0, 5, 17],
[16, 0, 0, 5, 0, 7],
[8, 10, 11, 17, 7, 0],
]
self.band = None
self.pr... | [
"revhea2@gmail.com"
] | revhea2@gmail.com |
4e906e38f5f951b8cb0aeb99d8cbc81712bc513a | c8ba48b0b5fd9af22e741374423c6a80fb6ceb0c | /tareas/datosHalotipos.py | 6b6a0a513010e08ee8bff36860cad522469f32c3 | [] | no_license | EdelmiraUNISON/redes-neuronales | 967ba082568b008fbf5feb23a50a06b39c2a6c26 | 8405d15fc3c24a97d810eb1395eae7e00e4970bb | refs/heads/master | 2021-01-23T07:15:15.088788 | 2017-10-14T04:04:42 | 2017-10-14T04:04:42 | 102,504,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | # Neurona lineal (notebook de redes neuronales)#
import numpy as np
import os
import matplotlib.pyplot as plt
import pandas as pd
from feedforward import *
#bloque 2
# Lee los datos en un nd array llamado datos
#datos = np.loadtxt('datos/carretas.txt', comments='%', delimiter=',')
datos = pd.read_csv('datos/CHR-1.csv... | [
"edelmira_rguez_a@gmail.com"
] | edelmira_rguez_a@gmail.com |
c416d2ae92b6d036b3140b461889976c2fed96f9 | 287ac7f26f6e3e3f347bd713ac2742365b399754 | /practice.py | c5b8ccf673c2f519821921a379da86b6104c2c34 | [] | no_license | gaellou/MusicTrainingProject | 91f3d4295311d6fd83cadd01bc45358badc6478c | e048cd906cb7a44c7ac8018f827f48cb50f20d78 | refs/heads/master | 2020-09-23T19:55:56.992954 | 2020-04-20T13:04:50 | 2020-04-20T13:04:50 | 225,573,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,321 | py | import sys
import time
import random
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
from PyQt5.QtWidgets import QApplication, QWidget, QMainWindow, QAction, QVBoxLayout, QHBoxLayout, QLabel, QLineEdit, QSpacerItem, QSizePolicy, QPushButton, QMessageBox
from PyQt5.QtGui import QIco... | [
"gaelle.vallet58@gmail.com"
] | gaelle.vallet58@gmail.com |
68b7899911ae25733b3fdbd48e64faf7be9a7889 | eaffe18b1a63b86eea3b9a79da65137ba0ffef40 | /jobs/migrations/0001_initial.py | a90364cd4ca6f4b8be229bce31cf62ee040d9487 | [] | no_license | JoNowakowska/PortfolioWithDjango | a09dd42b8d8ddb181967bd6629c387280ef9161f | d673fd754d5ec7f6b5e6d00997ab23618b71b0a6 | refs/heads/main | 2023-02-16T09:26:27.210745 | 2021-01-10T19:50:17 | 2021-01-10T19:50:17 | 328,142,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | # Generated by Django 3.1.5 on 2021-01-09 12:15
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Job',
fields=[
('id', models.AutoField(auto... | [
"joanna.k.nowakowska@gmail.com"
] | joanna.k.nowakowska@gmail.com |
7d72256d6a89db72f3987acfe1878e5461c7adc2 | f361126ee099303113b5ed3cc0e838bd01a9e41b | /Semana1/exec_resolvido_7_4.py | ac1710b5f4ef54b065b8c4d97ce0755950441742 | [] | no_license | ju-c-lopes/Univesp_Algoritmos_II | e1ce5557d342ea75fe929cf7b207e633f9aa89cd | 5d4eec368be91c18f0ae5c17d342e6eb0f1c79be | refs/heads/master | 2023-06-05T11:09:25.415719 | 2021-07-07T22:26:53 | 2021-07-07T22:26:53 | 383,600,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 847 | py | from random import randint
print("Inicio do Programa\n")
N = 0
while N < 10 or N > 10000: # leitura de N
N = int(input("Digite N entre [10, 10000]: "))
cod = []
cont = 0
while cont < N: # laço para gerar a lista de códigos únicos
a = randint(10000, 50000)
if a not in cod: ... | [
"juliano.co.lopes@gmail.com"
] | juliano.co.lopes@gmail.com |
86bbdcae18d5cb2995c2a4e9bb3c45991c6e4f91 | 789410a3b131e42c69a1e81c47e83c008f2243d6 | /telegram_bot/request_db.py | 98a05131aeeabc0a8c494bc3a998640cfd470700 | [] | no_license | SerenadMurtazin/botassistant | be38bac73aea6c89c272ddd2672c7a61baf1cd4c | cf0a911d7e61515636a94425f5e397e4b8af8af9 | refs/heads/master | 2021-06-13T08:32:54.394143 | 2020-03-09T11:45:12 | 2020-03-09T11:45:12 | 193,751,599 | 1 | 0 | null | 2021-06-01T23:53:50 | 2019-06-25T17:13:59 | Python | UTF-8 | Python | false | false | 9,877 | py | from telegram_bot.helpers import cache, MyException
from telegram_bot.config import db_connect, COURSE_LIFE
class Base:
@property
def sql(self):
if not self.sql:
raise TypeError('Переменная с запросом пустая')
else:
return self.sql
@sql.setter
def sql(self, va... | [
"noreply@github.com"
] | SerenadMurtazin.noreply@github.com |
ceb6735bc39c4737f9d8efde27265df5679c07ef | 0fb891454b579242f17fe2879102a7c3b9231f26 | /api/urls.py | 39b41eb4aa09af800ef0a18bf254a4fb54abdd94 | [] | no_license | akm-y/pub_sns_api | 321e3bbf55f5dc32863749a55bd37da8ce150ca0 | 96eee80f03df450d63c3d9a3595baab47da4a82a | refs/heads/master | 2021-06-20T20:20:46.009554 | 2019-11-28T13:25:06 | 2019-11-28T13:25:06 | 224,618,441 | 0 | 0 | null | 2019-11-28T09:57:06 | 2019-11-28T09:35:40 | Python | UTF-8 | Python | false | false | 1,259 | py | """api URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based vie... | [
"y-akamatsu@hulicol.com"
] | y-akamatsu@hulicol.com |
678911b2bdd67c084970f11a3dbe2874f7fc11e5 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p3BR/R2/benchmark/startQiskit67.py | 336f9569db3796b23ea2018cebfc43fa75966169 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,401 | py | # qubit number=3
# total number=12
import numpy as np
from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ
from qiskit.visualization import plot_histogram
from typing import *
from pprint import pprint
from math import log2
from collections import Counter
from... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
5612c042b4bea48e600064b73d32a76b6fb55e04 | f53c1435d72400edc9fdb98e3ba4ba5523eb979b | /unorganized/abiba.py | 7849408ddc6766e4d83360f8346b01bae10cb257 | [] | no_license | tomaccosheep/teaching_unorganized | 2d8e6ed9779c3fb12b53ddcee5d6d1a805ed2789 | 0f36c883a28bacceaa1d36ec9d34a7de560e8364 | refs/heads/master | 2021-05-13T11:45:47.286426 | 2018-01-11T19:21:34 | 2018-01-11T19:21:34 | 117,139,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | import random
eyes = [';', ':']
nose = ['-', '>']
mouth = ['O', '|']
print(random.choice(nose) + random.choice(nose) + random.choice(mouth))
| [
"al.burns.email@gmail.com"
] | al.burns.email@gmail.com |
b0c3c75530d47e2c268b41bd787787a3917f7840 | c92f3868e5c292f5343f4c0034db6f816169c083 | /project/scipycon/registration/migrations/0006_auto__add_field_accommodation_accommodation_on_1st__add_field_accommod.py | 60df42aa941a33c7cf6cc41d8fba5246a9cb1fb6 | [] | no_license | FOSSEE/scipywebsite | 32742c1919f63bb61a4bbca5f15b608af51b0534 | f0d3f02052585a8bc84860b0ade2b08437acb15d | refs/heads/master | 2016-09-05T22:00:43.713530 | 2012-08-28T12:00:19 | 2012-08-28T12:00:19 | 5,585,048 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,161 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Accommodation.accommodation_on_1st'
db.add_column('registration_accommodation', 'accommoda... | [
"parth.buch.115@gmail.com"
] | parth.buch.115@gmail.com |
7e30673fb15721c04348180bf614306fe1b9bb58 | 364864d0364d983c85ef3bc973a4ec427dfeb592 | /decodewebshell.py | 09edcef3af28732f549a96fa54752d67bfd80250 | [
"Apache-2.0"
] | permissive | hahadaxia/webshellcat | c39337eaf8a2542046b71dc7d074d6ea45bc8254 | 0d27726897e10998bdc4117b3c23d87c7fc9aa44 | refs/heads/master | 2021-03-29T07:21:53.651113 | 2020-03-24T23:36:50 | 2020-03-24T23:36:50 | 247,931,008 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 78,745 | py | # -*- coding: utf-8 -*-
# @Time : 2020-03-24 15:25
# @Author : hahadaxia
# @Email : yzujk0502@126.com
# webshell from: http://www.lemontreechina.com/statisc/dist/css/x.txt
a= '''
eJzs/Xl3XNd5Jor/zazl73BUhlWAieHMAyHAOiMJDgAJgKRIUR
e3UCgAJRRQUFWBBEXxwzjqvlE77hVL1mDNtiTHsmRbiiTLjpe7
O+1O0p32z307QyfpTOv3PHufc+rUBIK... | [
"yzujk0502@126.com"
] | yzujk0502@126.com |
9fd4535d5ebfc3b94f60f25c3b9a3b465665dd97 | 5b51eac21b6a31b75dd4f27ce45ad5693aa48f24 | /samples/openapi3/client/petstore/python-experimental/test/test_file.py | 7154338bc7a512fec6e759e25a4938ff30af7a6f | [
"Apache-2.0"
] | permissive | smasala/openapi-generator | 55eef034d1269bd761c70406f6dbe7741d01769f | 13430247866cdb06ddedfb03ef02eebb1726fe78 | refs/heads/master | 2023-04-07T16:27:28.395275 | 2022-01-07T01:45:49 | 2022-01-07T01:45:49 | 151,086,316 | 0 | 0 | Apache-2.0 | 2023-03-13T15:02:50 | 2018-10-01T12:37:33 | Java | UTF-8 | Python | false | false | 782 | py | # coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
"""
... | [
"noreply@github.com"
] | smasala.noreply@github.com |
56ed11d9c88d8cf20702f59961d9a7c149c8951d | 8d1264d9257eba418f92dbbbc8aac6773c4ec715 | /apps/portfolios/forms.py | 08d1f5117a239c10b13568d5743028b66bc0ef97 | [
"MIT"
] | permissive | aldwyn/effigia | 5f3e9e37eb7d169983034b61c7455baedc2d8817 | eb456656949bf68934530bbec9c15ebc6d0236b8 | refs/heads/main | 2023-02-18T00:09:53.905711 | 2021-06-10T22:04:51 | 2021-06-10T22:04:51 | 96,387,903 | 1 | 1 | MIT | 2023-02-15T20:04:00 | 2017-07-06T04:21:09 | HTML | UTF-8 | Python | false | false | 344 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.forms.models import inlineformset_factory
from ..galleries.models import Gallery
from .models import Portfolio
PortfolioFormSet = inlineformset_factory(
Gallery, Portfolio, fields=['name', 'image'],
can_delete=False, extra=2, min_nu... | [
"aldwyn.up@gmail.com"
] | aldwyn.up@gmail.com |
86a41f1d8814055d01d5fa9c2a6bd1f586fa7096 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02716/s413939056.py | e2a9b7ed2cd69d088567f040cab32e9a129cbef5 | [] | 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 | 1,630 | py | N=int(input())
A=list(map(int,input().split()))
if N%2==0:
dp=[[-float("inf") for _ in range(2)] for _ in range(N+10)]
if N==2:
print(max(A[0],A[1]))
else:
for i in range(N):
if i==0:
dp[i][0]=A[0]
elif i==1:
dp[i][1]=A[1]
e... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
83256cd5d4633d53ea92de928e38688b663384b0 | f99629c2cc35985ca0cce20d431783672edda64e | /config/dev.py | 7c44d410abdbf5f3e767b23cf839a29fac2ca375 | [] | no_license | geokoshy89/book_catalog | 8f11295228ee39e86e4178412988ad38d19d1c69 | 4e2a2f1dce31d966570c0629195a34cad8f5f82c | refs/heads/master | 2023-06-29T01:11:37.404619 | 2021-08-08T05:02:08 | 2021-08-08T05:02:08 | 393,857,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | DEBUG = True
SECRET_KEY = 'topsecret'
SQLALCHEMY_DATABASE_URI = 'postgresql://<username>:<password>@host.docker.internal/catalog_db'
SQLALCHEMY_TRACK_MODIFICATIONS = False
| [
"geo.koshy89@gmail.com"
] | geo.koshy89@gmail.com |
a287eacb4951b936c9252d99383e31c0baec073c | d0c2c7289945159283f9bb53069b2365735d61ca | /test.py | ee2213fc599e193a58820413292e85c1ed534956 | [] | no_license | TinnaLong/python-study | 8ecf4e91257f8a4858489c4f427912fa9890cb3a | 03afe2b7caa9df4641d55e2a433572d0d4c4214b | refs/heads/master | 2021-08-28T21:27:48.667229 | 2017-12-13T02:46:57 | 2017-12-13T02:46:57 | 110,499,662 | 2 | 0 | null | 2017-11-13T04:21:24 | 2017-11-13T04:21:23 | null | UTF-8 | Python | false | false | 262 | py | # -*- coding: utf-8 -*-
print 'hello word 你好,世界!'
a =100
if a>=0:
print a
else:
print b
c = True
if c:
print c
listDemo = ["ting","quanke"]
print len(listDemo)
print listDemo
print listDemo[0]
print listDemo[-2]
listDemo.append() | [
"609319858@qq.com"
] | 609319858@qq.com |
d2ca5052afb25e04487cf66f330bc39cedbe691a | 507bf0deb2c2b9492e3c8c053dec391297d68548 | /LeetCode24/LeetCode24_way1.py | 4ab352361c34b70d7e02148b889b355c2196cdae | [] | no_license | daisy0x00/LeetCode_Python | e2be935a9e1897936186488bbe96b127fe4d65ab | 74c60cd07b30fd0d0153d337533f048bb7792326 | refs/heads/master | 2020-03-15T08:58:29.970858 | 2019-10-12T12:23:07 | 2019-10-12T12:23:07 | 132,064,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | #coding:utf-8
class ListNode():
def __init__(self, x):
self.val = x
self.next = None
class Solution():
def swapPairs(self, head):
"""
:param head: ListNode
:return: ListNode
"""
thead = ListNode(-1)
thead.next = head
c = head
wh... | [
"daisy@javabin.cn"
] | daisy@javabin.cn |
3eb2d2602b368ea404e9b5cf88b011b4981cf2e5 | 368d30baa4bd479c6f33923553bde653ab13e54c | /program12.py | c19acbfb449f5489968bf8e172aae85b92f75966 | [] | no_license | ParulProgrammingHub/assignment-1-pankilparikh | ff789efb798919efd0fa098b304f9520f42af4de | cdb5710c51c923900122492080061a269844dff0 | refs/heads/master | 2021-01-11T14:27:36.194880 | 2017-02-09T17:01:14 | 2017-02-09T17:01:14 | 81,424,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | principle=int(input(“enter the principle amount:”))
rate=int(input(“enter the rate:”))
time=int(input(“enter the time:”))
n=int(input(“enter the N:”))
def compound_interest(principle,time,rate,n):
r=(rate/100)
P=principle*(1+r/n)**(n*time)
Print(“total compound interest:”,P)
compound_interest(principle,time,rate,n)... | [
"noreply@github.com"
] | ParulProgrammingHub.noreply@github.com |
8805060e78429ac5d302b48abd787e6f83699ca3 | 35f1962d409ce47614e90f4f1887535899334181 | /Bay To Breakers/B2BViz.py | f8e2aa0a510280dea5ff225f2d4e55ec04a2e4e5 | [] | no_license | hmswaffles/Data-Analysis | 97452c65a62e1272e4738c48fd99bf1463adf097 | 13c6bd024652ad9fb410e581982fef8130b1495b | refs/heads/master | 2020-12-24T16:32:40.073149 | 2018-11-13T23:55:21 | 2018-11-13T23:55:21 | 20,163,187 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,840 | py |
#### Bay To Breakers Script ###
#SOME bay to breakers analysis
#first: Raw graphs - men and women
#second: distribution of record times for 2014 race - men and women
#correcting for course changes and shortening- can this be detected by mcmc methods?
from __future__ import division
import prettyplotlib as ppl
import... | [
"e.warfel@gmail.com"
] | e.warfel@gmail.com |
25698a53f3c48e8ca2f2ab97dd86c6560b86c715 | 08579903ae523e56179f7adc3f4fd14633850c92 | /app.py | 652f8cb954bd4ca2d7e0efc0afa6cefbc332fa41 | [] | no_license | nickchow2020/Blogly3 | f98a48660281a16a4f0fc9425367d45b4cbedd5d | f0cb299aa551fbb86a9fa53285f65a23bc5ccdc5 | refs/heads/main | 2023-04-06T10:32:52.111202 | 2021-04-21T18:09:46 | 2021-04-21T18:09:46 | 360,263,673 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,672 | py | """Blogly application."""
from flask import Flask,request,render_template,redirect
from flask_debugtoolbar import DebugToolbarExtension
from models import db, connect_db,User,Post,Tag,PostTag
app = Flask(__name__)
app.debug = True
app.config['SECRET_KEY'] = 'is so secret keys'
app.config['SQLALCHEMY_DATABASE_URI'] =... | [
"smz1680@gmail.com"
] | smz1680@gmail.com |
aa2bf794fbefc8ba02e7bd0690048b97c3187d48 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/63/usersdata/199/28126/submittedfiles/swamee.py | cd633465c8b21b1ffa6e4905d84c1c9aebe4d19e | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | # -*- coding: utf-8 -*-
import math
f = 0.2
L = 5000
Q = 0.65
DeltaH = 22
v = 0.000001
g = float(input('Digite o valor de g: '))
e = float (input('Digite o valor de e: '))
Pi = float (input('Digite o valor de Pi: '))
D = (8*f*L*Q*Q) / (Pi*Pi*g*DeltaH) * (8*f*L*Q*Q) / (Pi*Pi*g*DeltaH) * (8*f*L*Q*Q) / (Pi*Pi*g*DeltaH) * ... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
08eb52f772563b9f076ef02197e2496f8fe2e369 | cb82ff3240e4367902d8169c60444a6aa019ffb6 | /python2.7/site-packages/twisted/internet/iocpreactor/proactor.py | d0c56ee2b5ab91e535cfa2ef84414f6eb6cd0935 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Python-2.0",
"LicenseRef-scancode-python-cwi",
"LicenseRef-scancode-free-unknown",
"GPL-1.0-or-later",
"LicenseRef-scancode-other-copyleft"
] | permissive | icepaule/sslstrip-hsts-openwrt | 0a8097af96beef4c48fcfa0b858367829b4dffdc | d5a2a18d2ac1cdb9a64fbf47235b87b9ebc24536 | refs/heads/master | 2020-12-31T10:22:04.618312 | 2020-02-07T18:39:08 | 2020-02-07T18:39:08 | 238,998,188 | 0 | 0 | MIT | 2020-02-07T18:35:59 | 2020-02-07T18:35:58 | null | UTF-8 | Python | false | false | 4,269 | py | # Copyright (c) 2001-2004 Twisted Matrix Laboratories.
# See LICENSE for details.
from twisted.internet import defer, base, main
from twisted.internet.interfaces import IReactorTCP, IReactorUDP, IReactorMulticast, IReactorArbitrary, IReactorProcess
from twisted.python import threadable, log, reflect
from zope.interfa... | [
"adde88@gmail.com"
] | adde88@gmail.com |
4d112847a93a8c6994fe3cb73129d41c8234c14e | a86ca34e23afaf67fdf858df9e47847606b23e0c | /lib/temboo/Library/Google/AdSenseHost/AccountService/AssociateAccount.py | a2002b6589325ddb430399d9cbd790b035f02f78 | [] | no_license | miriammelnick/dont-get-mugged | 6026ad93c910baaecbc3f5477629b0322e116fa8 | 1613ee636c027ccc49c3f84a5f186e27de7f0f9d | refs/heads/master | 2021-01-13T02:18:39.599323 | 2012-08-12T23:25:47 | 2012-08-12T23:25:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,869 | py |
###############################################################################
#
# AssociateAccount
# Creates an association between the developer and the publisher. If an association already exists, the method does nothing.
#
# Python version 2.6
#
####################################################################... | [
"miriam@famulus"
] | miriam@famulus |
659418c4f4ce4f567043d1d3fbdcc25e67156f9d | fc6857211e26b64faa590160deaac800cb1d88f7 | /build/evaluation_tasks/catkin_generated/pkg.develspace.context.pc.py | 24b8f484c87a5fe3042f7d63d241d1977825ccea | [] | no_license | gogovberg/ros | b81beee1667571e2c9360e55bada73c89f41f383 | d0e2d48e7969716bbb22cde1d506ee7ccb3475ef | refs/heads/master | 2018-10-13T00:53:16.562502 | 2018-07-17T09:13:42 | 2018-07-17T09:13:42 | 109,824,103 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | 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 = "evaluation_tasks"
PROJECT_SPACE_DIR =... | [
"gogov91a@gmail.com"
] | gogov91a@gmail.com |
1678e91ce5ace5e40a3c35cb1e04ba57b28ca950 | 1fe8d4133981e53e88abf633046060b56fae883e | /venv/lib/python3.8/site-packages/scipy/fft/tests/test_fft_function.py | 835503e486dc0f4ab1d610bc47c359c5b66d3bf3 | [] | no_license | Akira331/flask-cifar10 | 6c49db8485038731ce67d23f0972b9574746c7a7 | 283e7a2867c77d4b6aba7aea9013bf241d35d76c | refs/heads/master | 2023-06-14T16:35:06.384755 | 2021-07-05T14:09:15 | 2021-07-05T14:09:15 | 382,864,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:51262535b88c6a0bcef89f60213a99cbef3acba3e2edfd888d594c685645fde5
size 1137
| [
"business030301@gmail.com"
] | business030301@gmail.com |
3513f7dc658ee9e5b6ebec3533b1c5084f078c7d | bed353201256a9589977f6331a1a104e2ef49c46 | /S03_Ground_sensor/controllers/S03_Ground_measurement/plot_gs.py | 7f44f5ad9cae2d538c72a20d3d48c62c9d5956da | [] | no_license | loriswit/robotics | 810529fc472ea1249ad08f4401dc30796e7df841 | e6bbc84e2209702600301127ff2b83d5af147679 | refs/heads/master | 2021-03-30T15:33:34.592272 | 2018-04-09T14:21:53 | 2018-04-09T14:21:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | #********************************************************************************************
# Calibration Plot Demo
#
# Description: Plot data from CSV file.
# Author: Beat Hirsbrunner, Julien Nembrini, Simon Studer (University of Fribourg)
# Version: 1.0 (2016-03-03)
#***********************************************... | [
"loris.wit@gmail.com"
] | loris.wit@gmail.com |
7d3e67fea8f8560ecfc0d49c34db2b098f5dc649 | 3ffee2f7569bac4d595dba7bd29f55cb8c69e34f | /crawler.py | b08d44e3bc1b4ee78e0e22799e516cc94bcba9fc | [] | no_license | ycw517/C001_PttCrawler | 32d30cb1043356195a0371540c4036b327d5280a | b3c98dba593f89463ecf38d6ab075a322541dd32 | refs/heads/master | 2022-12-16T16:18:01.663138 | 2020-09-15T09:44:58 | 2020-09-15T09:44:58 | 267,609,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,027 | py | #-*- coding: UTF-8 -*-
import sys
import concurrent.futures
import requests
import urllib3
import os
import logging
import uuid
from bs4 import BeautifulSoup
urllib3.disable_warnings()
logging.basicConfig(level=logging.WARNING)
HTTP_ERROR_MSG = 'HTTP error {res.status_code} - {res.reason}'
save_path = '/mnt/smb/PttImg... | [
"ycw517@gmail.com"
] | ycw517@gmail.com |
f2ef2bd6bf166763583d87003fe42f71739d3279 | c7953bb04fc89ca9d282765813030a2e2c0b6f74 | /Core/venv/Lib/site-packages/PySide2/QtNetwork.pyi | bde22f01b57ec0a34231e4c6c2778c6d93d64497 | [] | no_license | Lxdsmall/Serial-and-Linechart | 27259f7d5f1048f45af111ce80ee5d1ff3a8c56e | 4f2a180b3b6b0e84badec44abb63b2b3367a3eac | refs/heads/master | 2020-04-17T21:59:08.933491 | 2019-03-13T14:06:37 | 2019-03-13T14:06:37 | 166,974,912 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65,650 | pyi | # This Python file uses the following encoding: utf-8
#############################################################################
##
## Copyright (C) 2018 The Qt Company Ltd.
## Contact: https://www.qt.io/licensing/
##
## This file is part of Qt for Python.
##
## $QT_BEGIN_LICENSE:LGPL$
## Commercial License Usage
##... | [
"lxd91@126.com"
] | lxd91@126.com |
29ef13af1092d8821332b8a1261f99655f0dec60 | 6b973e8c50b2b0d77edf2644b2031b8d048dd102 | /hook/config.py | cfc7fc879d6b45b50c7a39b72000d55425626496 | [
"Apache-2.0"
] | permissive | bitxer/deployhook | 4fa470e8801ede7e12469c5ab2756a1188cb45a5 | 3203088fa963a85400c753fc6fb9f731316a12a1 | refs/heads/master | 2022-11-27T10:20:09.474076 | 2020-08-02T10:51:46 | 2020-08-02T10:51:46 | 266,549,053 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | import os
class Production:
DEBUG = False
TESTING = False
JSON_AS_ASCII = False
LOG_FOLDER = os.environ.get('LOG_FOLDER') or 'logs'
LOG_MAX_SIZE = os.environ.get('LOG_MAX_SIZE') or 100000
LOG_BACKUP_COUNT = os.environ.get('LOG_BACKUP_COUNT') or 5
REPO_CONFIG_FILE = os.environ.get('REPO_... | [
"24569832+bitxer@users.noreply.github.com"
] | 24569832+bitxer@users.noreply.github.com |
6db12a3b5e39bf46bd9d6e0b8f563b21fa3d3256 | 4798e150d4a1fec0ed5aafae2c653393065783fa | /Posts/migrations/0013_postmodel_p_com.py | 92594411be5ba66c447bceb940e69190131a288e | [] | no_license | mhdroshan/X-media | 166487bd89962fde7b70548994017db8739b7092 | 50127b29c107420e27683ccb683ffd3263746811 | refs/heads/main | 2023-06-19T11:10:41.053699 | 2021-07-13T20:27:14 | 2021-07-13T20:27:14 | 364,072,716 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | # Generated by Django 3.2 on 2021-06-14 11:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Posts', '0012_remove_postmodel_p_score'),
]
operations = [
migrations.AddField(
model_name='postmodel',
name='p_com',
... | [
"mhdroshan@users.noreply.github.com"
] | mhdroshan@users.noreply.github.com |
612187c9243fd0fa63a7c38cff42d676c8161667 | a3543845952c1e1a6c9c92baa53baa70020de964 | /xdtools/style/color_stroke.py | 7c9dd2df79c96a2b6ef6c7d8573724c66d78419b | [] | no_license | SamesOfAm/autocopy | b1eabf07622b5d8c0f920b709370a742dd665987 | 2f4abd8cb46ead1b9c7fe082890e89e53c34d776 | refs/heads/master | 2020-03-10T13:17:20.584300 | 2018-05-03T08:33:48 | 2018-05-03T08:33:48 | 129,396,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 617 | py | """
Contains the definition of ColorStroke.
"""
from xdtools.utils import Color
from .stroke import Stroke
class ColorStroke(Stroke):
"""Represents a ColorStroke Style."""
def __init__(self, width, align, r, g, b):
"""Instantiates this ColorStroke."""
super(ColorStroke, self).__init__(width,... | [
"fte@spreadshirt.net"
] | fte@spreadshirt.net |
b9fdd686850d40081c6bda4c4aa7d75f6fc7014f | 494be0602f251c383354ad94da4938c34bf0c1b7 | /all_new_rascar/2nd_assignment_main.py | 98f5e0723ba4e4832232b099014b2df6f87ae6d4 | [] | no_license | lsh9034/Rasberry_communication | bea2ea62a1eaa35c302f63889ec792b376ddcb0d | 99fac2059a391641757a02a83817a9e238f74bc0 | refs/heads/master | 2020-03-31T07:16:22.529591 | 2018-11-12T10:40:34 | 2018-11-12T10:40:34 | 152,014,958 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,835 | py | #########################################################################
# Date: 2018/10/02
# file name: 2nd_assignment_main.py
# Purpose: this code has been generated for the 4 wheel drive body
# moving object to perform the project with line detector
# this code is used for the student only
#########################... | [
"lsh9034@kookmin.ac.kr"
] | lsh9034@kookmin.ac.kr |
599705c8473e27b097e50850354d4ba5fba40869 | c8df74712f433d982f11c2124741f29f0376abb2 | /data_utils.py | 25cd8327f61d2f3cbdd69b78f59b8ace76a90e55 | [] | no_license | Slyne/tf_classification_sentiment | ef76acb7c8b3118638674b4c645bc50314707f5d | 46ebf30e54295c571ee3c4d8e09ff74710fd516e | refs/heads/master | 2021-01-22T05:37:42.091024 | 2017-05-26T07:18:19 | 2017-05-26T07:18:19 | 92,482,187 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,206 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import numpy as np
UNK = "$UNK$"
class ds(object):
def __init__(self, filename, processing_word=None, processing_tag=None,max_iter=None):
self.filename = filename
self.processing_word = processing_word
self.processing_tag = processing_tag
... | [
"dengyanlei"
] | dengyanlei |
727d7dc05520ba5e5ecd1c40e2fdb6461fc4905f | cf7fed790b733b9a21ec6c65970e9346dba103f5 | /opencv/hough_example.py | 7bf61b7090ff5e9ab02f188dfd8f6d141614479c | [
"MIT"
] | permissive | CospanDesign/python | a582050993efc1e6267683e38dd4665952ec6d40 | a3d81971621d8deed2f1fc738dce0e6eec0db3a7 | refs/heads/master | 2022-06-20T15:01:26.210331 | 2022-05-29T01:13:04 | 2022-05-29T01:13:04 | 43,620,126 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,887 | py | #! /usr/bin/env python
# Copyright (c) 2017 Dave McCoy (dave.mccoy@cospandesign.com)
#
# NAME is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# any later version.
#
# NAME ... | [
"cospan@gmail.com"
] | cospan@gmail.com |
06e007ef657e14348bc2573fc7cf73ba9709b34d | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/semantic_segmentation/DeeplabV3_for_Pytorch/configs/sem_fpn/fpn_r101_512x1024_80k_cityscapes.py | ec8dfb88c00c3f708db61db387378d4dd1774e05 | [
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 791 | py | # Copyright 2021 Huawei
# Copyright 2021 Huawei Technologies Co., Ltd
#
# 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.... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
a8b8c6b4bf3e5449c638bd5469b66e3c6786d6da | d6f20f87f514ad778f7c5eab3f9a9600eb5be5a1 | /ligh/users/forms.py | d6c555ff70ed88f5071692ea0174488bc74b2f80 | [
"MIT"
] | permissive | madhavan-raja/ligh | 76bd99e5254f4a25738c4202123c4a39a665d5a4 | d97cf32975a0709cda1de1e1c8cd7478c62932a2 | refs/heads/main | 2023-07-03T16:02:11.812223 | 2021-08-15T18:13:11 | 2021-08-15T18:13:11 | 337,949,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,731 | py | from flask_wtf import FlaskForm
from flask_wtf.file import FileField, FileAllowed
from wtforms import StringField, PasswordField, SubmitField, BooleanField
from wtforms.validators import DataRequired, Length, Email, EqualTo, ValidationError
from flask_login import current_user
from ligh.models import User
class Regist... | [
"madhavanraja99@gmail.com"
] | madhavanraja99@gmail.com |
8d44e6ccbd568c1791a469331ff71b3e193f7612 | 1f177b5e7bdaca49076c6ff806f5e2be9a86e834 | /algorithm/190225_queue/contact.py | 8eb0b2d8c4a7219eee839405aa12a2f56f342182 | [] | no_license | silverlyjoo/TIL | 9e19ba407a9dc82c231e66e352f1c7783e767782 | 98a139770a6d19598d787674bcf20d2fe744ced0 | refs/heads/master | 2021-08-17T02:10:35.101212 | 2019-08-26T08:21:32 | 2019-08-26T08:21:32 | 162,099,046 | 6 | 1 | null | 2021-06-10T21:20:36 | 2018-12-17T08:32:39 | Jupyter Notebook | UTF-8 | Python | false | false | 788 | py | import sys
sys.stdin = open("contact.txt")
def go(s):
visited = [0]*101
queue = [s]
result = []
while queue:
# print(queue)
i = queue.pop(0)
for j in R[i]:
if not visited[j]:
queue.append(j)
visited[j] = visited[i] + 1
return visi... | [
"silverlyjoo@gmail.com"
] | silverlyjoo@gmail.com |
e8ba407a20cc77436be5149fe041029cbd4dd5ca | 5879fa01d2c926a7d5dca6907b04d463fd6988cb | /src_code/chap3/trees.py | f17c58cb88b3b1c854e666dc167b15c4b439a09a | [] | no_license | TechInTech/CodesAboutMachineLearning | 572c22057fe2d0cbf89f6d4241079c74eb05b15c | b5128aaf7213be5921c11f3ed3789cc6716276f1 | refs/heads/master | 2020-05-03T12:31:55.405136 | 2019-03-31T01:48:12 | 2019-03-31T01:48:12 | 178,628,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,704 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2018/11/25 20:46
# @Author : Despicable Me
# @Site :
# @File : trees.py
# @Software: PyCharm
# @Explain :
from math import log
# 计算给定数据集的香农熵
def calcShannonEnt(dataSet):
numEntries = len(dataSet)
labelCount = {}
for feaVec in dataSet: ... | [
"wdw_bluesky@163.com"
] | wdw_bluesky@163.com |
99e6b65cb970ee70a101898e1143ac34a29d1dde | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03416/s489426371.py | 342af7a20233ed0b21d14286fef3a9ea3e5ecd65 | [] | 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 | 180 | py | a,b = map(int,input().split())
cnt = 0
for i in range(a,b+1):
lis_i = list(str(i))
lis_i.reverse()
rev_i = int(''.join(lis_i))
if rev_i == i:
cnt += 1
print(cnt)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e58fc4a89416dbd2ebed783b6a4f87c694d90ab6 | b4982d67d47aba7af285c0111794d84868b2718a | /SESimulation.py | 8dce78fee4348d23a81c022f7724bd4f85e3519d | [] | no_license | yashpatel5400/SESimulate | bee55bb03cea338f1c802cbb132fb4b57c563b08 | 189fec5e041b7e2b73626a89c03be77a09db781b | refs/heads/master | 2021-01-18T13:55:16.981459 | 2015-07-30T20:14:53 | 2015-07-30T20:14:53 | 37,669,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,955 | py | #####################################################################
# Name: Yash Patel #
# File: SESimulation.py #
# Description: Contains all the methods pertinent to producing the #
# simulation for modelling the relation ... | [
"ypatel@princeton.edu"
] | ypatel@princeton.edu |
be607dbbcbd2027645970f9fda8a91b67ed59e58 | 8294210e610aa9fbd52b2db48ad80c9e29ce43d1 | /source/MDclassic_games/resources/examples/farmers_app/kivymd/color_definitions.py | 3df1ba0596e5322d061d7cc9918777e762280d37 | [
"MIT",
"LicenseRef-scancode-proprietary-license"
] | permissive | osso73/classic_games | 4d80362e0288adfe167c755a07f8dea650bc84b9 | 50e80b876b35078ec4f7ba960c6d2d66e185f24d | refs/heads/main | 2023-07-14T16:56:23.128340 | 2021-08-16T18:00:06 | 2021-08-16T18:00:06 | 318,284,531 | 0 | 1 | MIT | 2020-12-08T12:05:52 | 2020-12-03T18:29:15 | Python | UTF-8 | Python | false | false | 18,315 | py | """
Color Definitions
=====
Copyright (c) 2015 Andrés Rodríguez and KivyMD contributors -
KivyMD library up to version 0.1.2
Copyright (c) 2019 Ivanov Yuri and KivyMD contributors -
KivyMD library version 0.1.3 and higher
For suggestions and questions:
<kivydevelopment@gmail.com>
This file is distributed und... | [
"osso@gmx.es"
] | osso@gmx.es |
e0b9a8fdf585de67f8a74f15a354b876691512cb | b7a2023b2ebfc182f0d282e8421a6218c7dda33f | /code/re/re_compile.py | 83c8de44f991f0949216f5ba0c93b5f2740db3f2 | [] | no_license | ly838070494/py | c71d9437b2ef4bf5bf18e54da18b3b4b29c323be | 44ab8d607b897c165ca143ddee2d00066135dc97 | refs/heads/master | 2020-03-09T10:16:37.624728 | 2018-05-17T05:57:39 | 2018-05-17T05:57:39 | 128,733,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | import re
content= """hello 12345 world_this
123 fan
"""
pattern =re.compile("hello.*fan",re.S) #将正则表达式编译成正则表达式对象,方便复用该正则表达式
result = re.match(pattern,content)
print(result)
print(result.group()) | [
"838070494@qq.com"
] | 838070494@qq.com |
428509923d84fff298c53ee4225a2ba5eb190637 | 560df0c3f859ae2d4c279f4669f9ab8758c486fb | /old/Euler132.py | 293bf34b3691f20d9f35e50109a76da02f72fd03 | [] | no_license | gronkyzog/Puzzles | 0e7cdd7fa5ab8139d63a721cac5ee30e80728c7a | cdc145857f123a98f1323c95b5744d36ce50355f | refs/heads/master | 2021-03-13T00:01:17.715403 | 2015-02-22T11:59:03 | 2015-02-22T11:59:03 | 17,100,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 773 | py | def primesieve(n):
# return all primes <= n
A = [0 for i in range(0,n+1)]
for i in range(4,n+1,2):
A[i]=1
for i in range(3,n+1,2):
if A[i]==1:
continue
else:
for j in range(2*i,n+1,i):
A[j]=1
return [i for i in range(2,n+1) if... | [
"smcnicol@gmail.com"
] | smcnicol@gmail.com |
4be465f992bf1d62c875bb644df075f40a8e9aee | 7af6fb83a5635a013597ff5c8d415f6d170d4fe5 | /django_alexa/internal/exceptions.py | 33cca2a4286c5c69f0b7a94e316c439871afa1f5 | [
"MIT"
] | permissive | pycontribs/django-alexa | cbc4677c64486b200e8d36390d9ffd0e3f84bd1f | 459f4ce21ebaadfd86ec62d23e50cafb140c6406 | refs/heads/master | 2023-08-28T16:43:40.523752 | 2020-02-17T13:45:20 | 2020-02-17T13:45:20 | 46,812,607 | 57 | 62 | MIT | 2021-04-20T17:54:25 | 2015-11-24T19:08:26 | Python | UTF-8 | Python | false | false | 41 | py | class InternalError(Exception):
pass
| [
"krockman@underarmour.com"
] | krockman@underarmour.com |
2220882eeaddd313ec536a31a5eca34d338afbf4 | bae050d8a221b82e17f1bb4b584dc89500496e0a | /Arduino/Servo.py | 936bf53cf7bb1ad47a2e8fc90fb9b195da0b728d | [] | no_license | miercat0424/AI | b2e2ee964c2f6fb9f08dd84bd03cb9614bc55f3a | fa8f0e6149413b64cefae157f9cb337c08949cbe | refs/heads/main | 2023-07-14T21:13:44.704549 | 2021-08-21T14:42:27 | 2021-08-21T14:42:27 | 395,982,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | from pyfirmata import Arduino , SERVO , util , o
import numpy as np
import time
board = Arduino("/dev/cu.usbmodem14401")
iterator = util.Iterator(board)
iterator.start()
board.digital[9].mode = SERVO
def rotate(pin , angle) :
board.digital[pin].write(angle)
result = [x for x in np.arange(10,180,2)]
for ... | [
"noreply@github.com"
] | miercat0424.noreply@github.com |
5dc9e4ff6222938971ed54e8334b540676ae9b2d | 9231896ecef60d482feab715681fe406119742e8 | /day5a.py | 49fe8e8544ef19089f0375e056df3dc52ca64731 | [] | no_license | alistairong/AdventOfCode2017 | 040a52ff9d44f48d2fc5a29bd8269699ce9be047 | d702d7a54921f867ee535d1f2d1d9f246d3fb7fe | refs/heads/master | 2021-09-02T04:29:14.336227 | 2017-12-30T09:47:45 | 2017-12-30T09:47:45 | 113,420,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,020 | py | myVar = """1
0
0
1
0
-3
-3
-6
0
-7
-9
0
-2
0
-8
-1
-15
-15
-4
-12
-19
-3
-12
-10
-3
-17
-17
-9
-18
-20
-1
-6
-29
-18
-5
-25
-13
-22
-33
2
-39
-40
-33
-33
-27
-7
-44
1
-20
-46
-41
0
-19
0
-10
-15
-21
-17
-52
-20
-45
-34
-30
-29
-40
-1
-18
-10
-19
-15
-64
-61
-53
-28
-45
-12
-73
-36
-36
-2
-30
-56
-63
-42
-8
-35
-32
-39
... | [
"ongalistair@gmail.com"
] | ongalistair@gmail.com |
31e367305ffae108012b7576f79357e3378ff782 | 8e5a5cb2e9130d3d13a4003110543aea46452254 | /pages/basket_page.py | 86b7f9f3e5a7efaf625951bc8184fb498fd9ea24 | [] | no_license | MaksIhn/seleniumPageObject | 1c7acd805a5f4de1eea9ba37c665800041404efe | 3a081aca369b3fc4c7f11eefe1f81f675c55187c | refs/heads/main | 2023-07-21T15:56:50.540826 | 2021-09-06T12:38:01 | 2021-09-06T12:38:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | from .base_page import BasePage
from .locators import BasketPageLocators
class BasketPage(BasePage):
def is_basket_empty(self):
assert self.is_not_element_present(*BasketPageLocators.BASKET_ITEMS),\
'Basket is not empty, but should be!'
def should_be_text_your_basket_is_empty(self):
... | [
"m.ignatyuk@mycredit.ua"
] | m.ignatyuk@mycredit.ua |
2e84b492e26ae1e2edbd1e26b00ceb9352d3bbe5 | 20a6bab33d3daec34c492353fc484cd4682e2612 | /2_train.py | 0cebeeaf80400997c8730f368080a17b9bc03388 | [] | no_license | Thiagobc23/Object_Detection | 32292a0fbbafa79e456c7d8ae6c353264871ae27 | 0573dac32a5b31cb5168dd9714f64635aefae61e | refs/heads/master | 2020-04-26T16:29:22.590152 | 2019-04-17T02:15:01 | 2019-04-17T02:15:01 | 173,680,452 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,584 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"noreply@github.com"
] | Thiagobc23.noreply@github.com |
f16426216b425d7e020cec62cc28db7667139050 | 6f0043258b0dba7f97ee26f771a807386935a2ad | /Old/xpdf_SG4.py | 3661ad3b1a1034a08e1580fdb95f05ca3aedfd29 | [] | no_license | KentaroTakagi-Eng/invoice | b061b4afe52c8b5bda9b334f0f7a7fa2fe11a069 | b91e7da52b7f0e11c924c2fca0bb88cf7e36d091 | refs/heads/main | 2023-04-22T05:04:06.432853 | 2021-05-08T12:53:17 | 2021-05-08T12:53:17 | 328,054,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,195 | py | """Python から Xpdf tools の pdftotext.exe を呼び出して抽出します。"""
from pathlib import Path
from subprocess import run, PIPE
def main():
"""メイン関数"""
# (1/7) PDF ファイルを決める
pdf_file = Path(r'C:\Users\kntrt\OneDrive\ドキュメント\Python Scripts\invoice\SG4.pdf')
##pdf_file = Path(r'C:\Users\kntrt\OneDrive\デスクトップ\Sample In... | [
"76652592+KentaroTakagi-Eng@users.noreply.github.com"
] | 76652592+KentaroTakagi-Eng@users.noreply.github.com |
7d0cbe1095c6e0de093283336eb35e1c95995730 | 9eea1fa0d661266547d47ca37f0f4d78b0c7d78e | /Chapter04/nlp35.py | 26c3895b835d02f1ace789de2f9d36af55d61eb3 | [
"MIT"
] | permissive | nomissbowling/PythonNLP100 | e8f8b302c12126b7b37b6d660993ec81db236d1a | c67148232fc942b1f8a72e69a2a5e7a3b76e99bd | refs/heads/master | 2022-01-25T15:22:55.077197 | 2018-12-10T11:57:38 | 2018-12-10T11:57:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,142 | py | import re
def analyze():
lines = []
sentence = []
with open('neko.txt.mecab', 'r', encoding='utf8') as fin:
for line in fin:
words = re.split(r'\t|,|\n', line)
if words[0] == 'EOS':
if sentence:
lines.append(sentence)
... | [
"gushwell@gmail.com"
] | gushwell@gmail.com |
21961203878995113d4e2ef984db6a54099a88ff | 483db682e030cf8ed70a6ee96a251ce1552cc9ca | /feynman/urls.py | 9a7d26d473d97d548d98384dd370132c560026cc | [] | no_license | valesark/feynman-old | 461f05e3a21f62539c725b67a4aee4397f1a7bc8 | b717cc419e7ec93b59e981cb1cc2f4e83738476a | refs/heads/master | 2022-01-10T22:38:53.995674 | 2016-05-09T07:14:08 | 2016-05-09T07:14:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 779 | py | # -*- Python -*-
# -*- coding: utf-8 -*-
#
# alec aivazis
#
# this file describes the primary url router for feynman
# django imports
from django.conf.urls import patterns, include, url
from django.contrib import admin
from django.conf.urls.static import static
from django.conf import settings
# import the feynmanapp... | [
"alec@aivazis.com"
] | alec@aivazis.com |
1dd30b00ad8341f2eac2642b2d7f4572c37ca7a9 | 055bf8f84dce19f237173f70cf7fda73c32993d4 | /api/models/skill.py | 38eebae949c855d9c6ca6340e92f9c5796a5f8d7 | [] | no_license | stevebrownlee/stevebrownlee | cd07bbbc8ae0cb5b890cabe97a81283253d196a2 | 6fa6904bb6cea5fe86428acb3a3677d5b6c863a8 | refs/heads/master | 2023-02-10T05:38:39.521896 | 2023-02-03T01:31:48 | 2023-02-03T01:31:48 | 100,879,319 | 0 | 1 | null | 2022-09-18T03:11:19 | 2017-08-20T17:58:53 | Python | UTF-8 | Python | false | false | 453 | py | """
Skill module
"""
from django.db import models
from django.core.validators import MinValueValidator, MaxValueValidator
class Skill(models.Model):
"""
Individual, technical skills
"""
name = models.CharField(max_length=55)
rank = models.PositiveSmallIntegerField(validators=[MinValueValidator(0),
... | [
"chortlehoort@gmail.com"
] | chortlehoort@gmail.com |
19acf2b6877b10a684d8042b9fce42582f486a51 | 21691453eb79cd2faa4408ba36315f6c2ed4dca6 | /django/study_server/model/migrations/0017_remove_plan_resume.py | f383c8e37dfe2cc0487df17e2bbcbcaf5a96a062 | [] | no_license | jhoncbuendia/study | fd42a9a4639f5d370692acb9a6044599032de4bc | b9658504aebc26755da790a67a50f89f1b3594f2 | refs/heads/master | 2021-01-16T23:53:45.123257 | 2016-10-20T10:35:01 | 2016-10-20T10:35:01 | 58,153,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('model', '0016_auto_20160922_0310'),
]
operations = [
migrations.RemoveField(
model_name='plan',
name... | [
"jhoncbuendia@MacBook-Pro-de-MacBook.local"
] | jhoncbuendia@MacBook-Pro-de-MacBook.local |
fc0a0793c4e15c722d379980b65d6033d6ba0cff | 7fde085ee99e0172d66587e221bbc5c73a7bd45a | /default/bin/clean | 4be4a221f11e813d0f0a38d2e36e78375afbdfd3 | [
"MIT"
] | permissive | shakfu/start-vm | 7e90d380f9b492b8172089173f9c54443d367349 | 3fe9dcd548f3b12a5e1a42f81b35fc7219b6837e | refs/heads/master | 2023-08-24T15:16:46.273334 | 2023-08-13T20:38:45 | 2023-08-13T20:38:45 | 79,735,400 | 0 | 0 | MIT | 2021-04-02T02:51:25 | 2017-01-22T18:11:54 | Lua | UTF-8 | Python | false | false | 8,923 | #!/usr/bin/env python
"""
This script recursively scans a given path and applies a cleaning 'action'
to matching files and folders. By default files and folders matching the
specified (.endswith) patterns are deleted. Alternatively, _quoted_ glob
patterns can used with the '-g' option.
By design, the script lists targ... | [
"shakeeb.alireza@gmail.com"
] | shakeeb.alireza@gmail.com | |
1256fab60bda09aedee0d097445b2331f0e1bd2a | 2bd068e2230bb9c154e3c4300054cf855d2a2865 | /Q4/neighborhood.py | e10b301d778308072fb7072bc036dae156f2ccd6 | [] | no_license | sven-wang/Netflix-Recommendation-System | c0d351a3410af399babf7bec8e427f0eaf1945fe | 4ce3dc6cca5425ea0239675881d356cefa32f11c | refs/heads/master | 2021-03-24T09:45:09.884866 | 2018-04-07T04:33:42 | 2018-04-07T04:33:42 | 80,990,006 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,725 | py | import numpy as np
from numpy.linalg import pinv
import pprint
pp = pprint.PrettyPrinter(indent=4)
R = np.matrix('5 0 5 4; 0 1 1 4; 4 1 2 4; 3 4 0 3; 1 5 3 0')
# R = np.matrix('5 2 0 3; 3 5 1 0; 5 0 4 2; 0 3 2 5')
# construct matrix A
c = []
sum = 0
count = 0
A = []
for i in range(R.shape[0]):
for j in range(R.sh... | [
"siyuanwang1123@gmail.com"
] | siyuanwang1123@gmail.com |
7bdf69a7bba360bbe3ba12405b8abf738c905cfb | b68479043dadd407a7f584e17d4a07a8addfccc4 | /cs125/labs/5/encode.py | 4dea78431f51581fa54467182a6a4234737d48e7 | [] | no_license | CarlStevenson/schoolwork | 6d454a01185053e916d5cc44a84cc3c8c78d6290 | bf4bfae0d3ca4c82253e36b95d03c773e5346631 | refs/heads/master | 2021-01-19T22:06:04.530989 | 2015-07-08T22:02:35 | 2015-07-08T22:02:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,344 | py | #File : encode.py
#Author : Carl Stevenson
#Date : 9/27/2012
#Purpose: To encode a message using a simple cipher.
def main():
#tell user what the program does and who wrote it
print()
print("This program will encode a message using")
print("a Caesar cipher.")
print("You will enter a key (number... | [
"carl.stevenson@wilkes.edu"
] | carl.stevenson@wilkes.edu |
7ddf5f8023c64318c374fefd6b8c65936893ce58 | 9c092cb6efaf802f79072e0d4b45c9a3ed7d9b72 | /shop/migrations/0002_alter_product_old_price.py | 09e8a9db580a78ba9feb6b0ebc9e8702f3d5c991 | [] | no_license | Blekrv/django_shop | 793de8664be925e4dc0627f8ec27918572ef8b1b | c4a6e6c3f29613d6c9bf1d3a0ab33d91b7049dd1 | refs/heads/main | 2023-08-06T08:44:20.413296 | 2021-10-05T18:36:02 | 2021-10-05T18:36:02 | 412,112,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | # Generated by Django 3.2.7 on 2021-09-30 17:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shop', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='product',
name='old_price',
... | [
"blekkrv@gmail.com"
] | blekkrv@gmail.com |
c082775555044a75f9f98446cdd06fa4a579d082 | ab2815cc7f7f3bba055e8a1c6be02642e91d9fbb | /music.py | db7e053a9a20bb593a3a2789fe502915b867a738 | [] | no_license | Dvshah13/Music-API-with-DB | de1f6ae0f97c1d3d51558eb78a4d5c25d7d3e259 | 138e0ee7f69d3a7229c7f3da50a105e57e210c5f | refs/heads/master | 2021-01-23T02:14:54.832559 | 2017-03-23T16:49:48 | 2017-03-23T16:49:48 | 85,974,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,809 | py | import json
import pycurl
import StringIO
import urllib
import mysql.connector
import sys
dbUser="root"
dbPass=""
dbHost="127.0.0.1"
dbName="music"
#I am using this API:
#http://www.theaudiodb.com/forum/viewtopic.php?t=7
def getAlbums(artistName):
url = "http://www.theaudiodb.com/api/v1/json/1/searchalbum.php?s=%... | [
"dvshah13@gmail.com"
] | dvshah13@gmail.com |
dc7f21ef26b9ae1c46a758e64e69930bca51e9e7 | 56909dea7e1a2352998f0d7c5488b2b269c7e380 | /20200605_段子+语音合成/spider.py | 16d4507c4721ac9ad86fe62aad4197751132ff26 | [] | no_license | Ding-736/Python_spider | 26b88703675f07cccf3de80e91522f40309d2032 | 6a6759c4fbae184c2c511761ab2ee2e1e08d2110 | refs/heads/master | 2022-10-16T17:00:10.065222 | 2020-06-06T07:45:30 | 2020-06-06T07:45:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 971 | py | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
# Author LQ6H
import requests
from baidu_api import baidu
from lxml import etree
headers = {
'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36'
}
def parse(url):
respo... | [
"noreply@github.com"
] | Ding-736.noreply@github.com |
b105364161c270fd99b43a39f304ab9495368ea5 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_27537.py | d6d73e52df8fc3f79f301e9ddbe24e47518a2c7d | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47 | py | # OLS Breusch Pagan test in Python
breushpagan
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.