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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8a10050f70298d563c999770fddf230090176a46 | 7fd1d9e5ab08a2623d8b57379ad3bcac99723c32 | /pretty_print.py | 365f3d512f07f0ca9724a8d85d9b49b3dd3e35d8 | [] | no_license | siderealsasquatch/udacity-bikeshare | 4bf78089d5b87f164aacd59bbea4e4765829d20d | 0d360b5ab363eaebff0e34583d842d052df5a051 | refs/heads/master | 2021-04-03T08:24:02.301492 | 2018-03-12T08:22:16 | 2018-03-12T08:22:16 | 124,857,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,684 | py | #
# pretty_print.py - Contains the PrettyPrint class that takes the stats from
# DataStats objects and displays them in a pleasing manner.
#
import datetime as dt
class PrettyPrint:
'''
A class that handles displaying the stats from a DataStats object.
'''
def __init__(self):
'''
... | [
"fnugraha@gmail.com"
] | fnugraha@gmail.com |
954e1a81cae9daf62bf9cb9cf0f83299c3e8a038 | 8b942cbd6a0da0a61f68c468956ba318c7f1603d | /dynamic_programming/0053_maximum_subarray.py | 4ed3786dd1ebedf430bdbe2dfaceed01c1a79c9e | [
"MIT"
] | permissive | MartinMa28/Algorithms_review | 080bd608b0e0c6f39c45f28402e5181791af4766 | 3f2297038c00f5a560941360ca702e6868530f34 | refs/heads/master | 2022-04-13T03:56:56.932788 | 2020-04-06T03:41:33 | 2020-04-06T03:41:33 | 203,349,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | class Solution:
def maxSubArray(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
# Each slot means the sum of the max-subarray that ends at this index
dp = [float('-inf')] * len(nums)
"""
dp[i] = max((nums[i], dp[i - 1] + nums[i]))
... | [
"1135485226@qq.com"
] | 1135485226@qq.com |
591a8001dd6fb6074150b61ebb6e5a9e83f44891 | aee769f44a00d08a885ae7487191e6ad825a5b82 | /lstm_py/mtop1.py | 9e834fa9607d436671d68258169bb48c923bee0c | [] | no_license | mspr666/Human-Action-Recognition-from-Skeleton-Data | efaccb58e0856c2de71486ae78db2db385bb5b6d | 0a2594accd9b3d4d47ea99222a41d7cc5ace9841 | refs/heads/master | 2022-01-17T00:54:24.224505 | 2019-05-14T13:43:31 | 2019-05-14T13:43:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,425 | py | import numpy as np
import scipy.io
from PIL import Image
import cv2
import os,os.path,shutil
import re
from scipy.interpolate import interp1d
##save file size(3,60,25)
timestep_size=60
def find_martrix_min_value(data_matrix):
'''
功能:找到矩阵最小值
'''
new_data=[]
for i in range(len(d... | [
"noreply@github.com"
] | mspr666.noreply@github.com |
14d21c43b94c2a3d1c3ef51fa6289ed09bb9e429 | d59435e4cbf38a2f3ea1bd09cba5e945a347ce05 | /quizserv.py | d99ae3844bd4df427602e9e65d9997c36a39ed1c | [] | no_license | akshatj427/Python_codes | c943a9d42bae7e43707dd67b7c93943fa3385c3f | 5abbd193532e90f64ddbdcff1191b35879aa1b82 | refs/heads/master | 2021-01-09T20:37:52.406567 | 2016-07-20T18:50:54 | 2016-07-20T18:50:54 | 63,805,253 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | import socket, pickle
HOST = 'localhost'
PORT = 5006
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.bind((HOST, PORT))
s.listen(5)
conn, addr = s.accept()
print('Connected by', addr)
work = []
while 1:
data1 = conn.recv(2048)
print("receiving")
data2 = conn.recv(2048)
print("receiving")
da... | [
"akshatjain427@gmail.com"
] | akshatjain427@gmail.com |
a399301c523887d5bcc02002c2d2c1ac09e638a1 | 07cf86733b110a13224ef91e94ea5862a8f5d0d5 | /permutations/permutations.py | 9adc376b32f889d512681c06e31fc88b05902f97 | [] | no_license | karsevar/Code_Challenge_Practice | 2d96964ed2601b3beb324d08dd3692c3d566b223 | 88d4587041a76cfd539c0698771420974ffaf60b | refs/heads/master | 2023-01-23T17:20:33.967020 | 2020-12-14T18:29:49 | 2020-12-14T18:29:49 | 261,813,079 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,179 | py | # First attempt most test cases didn't pass. Perhaps I miss read the permutation
# requirements for this problem.
class Solution:
def permute(self, nums):
# create a permutations array that will hold all the possible
# permutations
# create a recursive function that will... | [
"masonkarsevar@gmail.com"
] | masonkarsevar@gmail.com |
257aa8d1f68e6c7580b34aa3188372ce47c07185 | 51f887286aa3bd2c3dbe4c616ad306ce08976441 | /pybind/nos/v7_2_0/rbridge_id/router/router_bgp/address_family/ipv4/ipv4_unicast/default_vrf/af_common_cmds_holder/maximum_paths/__init__.py | d3f779d9b38079c6a063f8e88fe16bb0211a6131 | [
"Apache-2.0"
] | permissive | b2220333/pybind | a8c06460fd66a97a78c243bf144488eb88d7732a | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | refs/heads/master | 2020-03-18T09:09:29.574226 | 2018-04-03T20:09:50 | 2018-04-03T20:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,029 | py |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | [
"badaniya@brocade.com"
] | badaniya@brocade.com |
588ff9f9d1fd2b83d89b92f998ad98b57b5b6142 | ec513ac551fc0bbb6c8af5b30330445bf52c6c7f | /location_monitor/src/location_monitor_node.py | e907ab747f1eb280bbd66076673f3279e2518249 | [] | no_license | ChuChuIgbokwe/me495_tutorials | b88c4833f35e50b51a4ccaa1a4bae5a1916e12bf | b03e74605cf469d818c4533f3d563622e7d14552 | refs/heads/master | 2020-04-06T07:06:08.360123 | 2016-09-18T08:46:01 | 2016-09-18T08:46:01 | 64,951,342 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,896 | py | #!/usr/bin/env python
# # -*- coding: utf-8 -*-
# #Created by Chukwunyere Igbokwe on July 27, 2016 by 2:23 PM
# import rospy
# import math
# from nav_msgs.msg import Odometry
# from location_monitor.msg import LandmarkDistance
# def distance(x1, y1, x2, y2):
# xd = x1 - x2
# yd = y1 - y2
# return math.sqrt(xd*xd +... | [
"chukwunyereigbokwe2015@u.northwestern.edu"
] | chukwunyereigbokwe2015@u.northwestern.edu |
eff583088563f012c5c2fc7c5e24f3d09b7a51aa | 8b962051e578f2690445db71984898dfe53c72d0 | /lambda/lambda_handler.py | 7abd251f3c47e3ff079fe921269dd89396e3a7e3 | [] | no_license | kgisl/alexa-airplane-spotter | 7dd3c9f323e674ce9e234daeb1bb8397ee2d5e3e | 39bcdad829495797598a89c87d5463dad3d60aaf | refs/heads/master | 2020-12-02T06:37:21.629670 | 2017-06-21T00:47:24 | 2017-06-21T00:47:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,173 | py | from __future__ import print_function
from lambda_settings import app_id, speech_endpoint
import requests
import json
def is_valid_app(event):
return event['session']['application']['applicationId'] == app_id
def get_output_speech():
r = requests.get(speech_endpoint)
output = json.loads(r.text)['response'... | [
"nsypteras@gmail.com"
] | nsypteras@gmail.com |
676a328a27e04da5cef3ca29ec3a68efa764656f | 53fc3f163a02b0f06df05ad385ad175cc057e10a | /tests/storage/backends/__init__.py | 070bca911a8e5202ee6f64804bd2daed29ed170c | [
"MIT"
] | permissive | Kotaimen/stonemason | 15284d7ca800186b9972d176ff1232ef7f0372e8 | ebbfab294a9e412cc7d04ea1dcb163e45c0de5d2 | refs/heads/develop | 2021-12-10T09:57:46.453283 | 2018-02-15T10:21:35 | 2018-02-15T10:21:35 | 28,327,740 | 5 | 1 | null | 2015-11-10T02:25:45 | 2014-12-22T06:44:58 | Python | UTF-8 | Python | false | false | 69 | py | # -*- encoding: utf-8 -*-
__author__ = 'ray'
__date__ = '10/27/15'
| [
"gliese.q@gmail.com"
] | gliese.q@gmail.com |
e558ab87f49ba00d98d7e8b8b17a2aa5cf3b37b4 | d4420fd262ec96662e0ca4de22b8ca21e160ab7e | /app/blogengen/manage.py | 35db533ba2aa964ffbce3f02eae4cb300c1966c3 | [] | no_license | Burnashev-d/Django | c6e5a7111adb3b1bf77d49617b3f1d3847916710 | 858fdc83e82404bbea5f7a09388b54e4b0dbcb8e | refs/heads/master | 2020-03-31T08:09:56.968074 | 2018-10-08T08:54:22 | 2018-10-08T08:54:22 | 152,048,466 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 807 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "blogengen.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that th... | [
"burnashev_d@iuca.kg"
] | burnashev_d@iuca.kg |
ce3939b31af53ec8878573c1cb3b1fed53b2672e | fb081aa5746bf65511aa8d7f6cca9bf1bbd959bb | /day5/day5.py | 3ca9dc3876d6d862a8bee28e825de4e245e3d392 | [] | no_license | bronemos/aoc-2020 | 4d11faea956b3809499a3780b10f97d21ad01808 | 11d6ae058f8e4c79b10a543d770663ca2dbea1e1 | refs/heads/master | 2023-01-24T16:21:26.223648 | 2020-12-16T14:57:14 | 2020-12-16T14:57:14 | 318,328,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | with open('input5.txt', 'r') as f:
# pt1
print(max(seats := [int(x.strip().replace('F', '0').replace('B', '1').replace('L', '0').replace('R', '1'), 2) for x in f.readlines()]))
# pt 2
print((set(range(min(seats), max(seats))) - set(seats)).pop())
| [
"spieglb@gmail.com"
] | spieglb@gmail.com |
6ae54d9ccc133969c04088f132d6ef7883c2e260 | 3d9825900eb1546de8ad5d13cae893eb0d6a9b14 | /AutoWorkup/SEMTools/utilities/brains.py | a9f06b8bfcc070f02a886a1a7dbbda143a65d219 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | rtkarcher/BRAINSTools | 20d69f96e6d5ca92adaeb06aa4fe6556b5e7b268 | 961135366450400409cece431423ed480855d34c | refs/heads/master | 2021-01-15T08:53:48.961607 | 2013-06-26T19:09:34 | 2013-06-26T19:09:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39,809 | py | # -*- coding: utf8 -*-
"""Autogenerated file - DO NOT EDIT
If you spot a bug, please report it on the mailing list and/or change the generator."""
from nipype.interfaces.base import CommandLine, CommandLineInputSpec, SEMLikeCommandLine, TraitedSpec, File, Directory, traits, isdefined, InputMultiPath, OutputMultiPath
i... | [
"hans-johnson@uiowa.edu"
] | hans-johnson@uiowa.edu |
361231f4f9ecc36c3b9bf839a9c626d54b60867b | dbb052631187f2124ea1f888b212cc753bff84c5 | /Spine/img/Test Phases/1/test1.py | a157c0ace5ea573936f2f0c4e95fe4eca666811a | [] | no_license | umutnaderi/Constructing-a-3D-Model-by-Using-2D-Parameters | 610bfe12d40e600cb6cffa7e512f02ef1d591ef8 | 13b872b63ef7bcefbde9316bd33de68573ba9441 | refs/heads/master | 2023-06-17T00:28:39.996675 | 2021-07-14T12:26:13 | 2021-07-14T12:26:13 | 260,132,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,253 | py | App.newDocument("Project")
App.setActiveDocument("Project")
from FreeCAD import Base
import Part,PartGui,Draft
sketch01 = App.activeDocument().addObject('Sketcher::SketchObject','Sketch01')
sketch01.Placement = App.Placement(App.Vector(0.000000,0.000000,0.000000),App.Rotation(0.000000,0.000000,0.000000,1.000000))
sk... | [
"naderiumut@gmail.com"
] | naderiumut@gmail.com |
202384744bc82b1b11a8752e20a41b61b8c14117 | 30ab9750e6ca334941934d1727c85ad59e6b9c8a | /zentral/contrib/monolith/management/commands/rebuild_manifest_enrollment_packages.py | 4311863e71bf807a69d5cdb8a2dda5713092f8ef | [
"Apache-2.0"
] | permissive | ankurvaishley/zentral | 57e7961db65278a0e614975e484927f0391eeadd | a54769f18305c3fc71bae678ed823524aaa8bb06 | refs/heads/main | 2023-05-31T02:56:40.309854 | 2021-07-01T07:51:31 | 2021-07-01T14:15:34 | 382,346,360 | 1 | 0 | Apache-2.0 | 2021-07-02T12:55:47 | 2021-07-02T12:55:47 | null | UTF-8 | Python | false | false | 484 | py | from django.core.management.base import BaseCommand
from zentral.contrib.monolith.models import ManifestEnrollmentPackage
from zentral.contrib.monolith.utils import build_manifest_enrollment_package
class Command(BaseCommand):
help = 'Rebuild monolith manifest enrollment packages.'
def handle(self, *args, **... | [
"eric.falconnier@112hz.com"
] | eric.falconnier@112hz.com |
fe3ceb1528d5007e0d71fd374886c29a337dc22d | 310c88aed28df25637f60e41a067885371d0c644 | /ejerciciosSql/Evaluacion2/Pregunta2_salarioEmpleado/empleadoSalario.py | 55797e32160f7fc82ca07da96f8b0039968f458b | [] | no_license | juankgp/pythonPoo2 | 1757644d2db98827d3fb49e0782435d2408d170c | eb06240f17a64666be7f1161503c0117dd3d97aa | refs/heads/master | 2022-12-30T20:43:29.020081 | 2020-10-24T03:27:15 | 2020-10-24T03:27:15 | 282,591,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,868 | py | #Pregunta 2: Utilizando los métodos de property and Setter se requiere:
#Controlar los datos del empleado se hereden a la clase empleado salario
#Considere un método para calcular el salario con y sin horas extras imprima resultados
# Considere otro método para imprimir la información del empleado
# Considere 2 obj... | [
"jukyarosinc@gmail.com"
] | jukyarosinc@gmail.com |
bdbf224d07f9a5aeceb878a2ff696537cb9fd117 | 3633bab8066f576c8bf9e7908afe30bb070d0b70 | /Hack-tenth-week/cinema/website/management/commands/populate_db.py | f9afe0316b2236021528fb773fea671a5c9bdfe8 | [] | no_license | 6desislava6/Hack-Bulgaria | 099c195e45a443cf4a3342eff6612ac2aa66565b | de4bf7baae35e21d6a7b27d4bde68247bb85b67a | refs/heads/master | 2021-01-20T11:57:29.027595 | 2015-06-02T17:36:59 | 2015-06-02T17:36:59 | 32,828,816 | 4 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,035 | py | from django.core.management.base import BaseCommand
from website.models import Movie, Projection, Reservation
class Command(BaseCommand):
def _add_movies(self):
Movie.add_movie(name='The Green Mile', rating=9.0)
Movie.add_movie(name='Stay Alive', rating=6.0)
Movie.add_movie(name='Twenty-S... | [
"desislavatsvetkova@mail.bg"
] | desislavatsvetkova@mail.bg |
7dd17508882af8c84bfb02e4148f1e3a2d90fe46 | 8b255ad3a41c68f61b6c2d48243b1f40f8d57ef7 | /numpy practice/validatetest.py | b02e6cdf39aa0fe51a71111d02184c1db733c3d9 | [
"MIT"
] | permissive | raelyz/machinelearning | 1f2e7ec5d03a0e2ba82d963e619eb6e7df2e9c5b | 3ad08cf243940df6d4dde146a6619508e4a7ee0a | refs/heads/main | 2023-03-08T03:36:22.196011 | 2021-02-24T08:16:46 | 2021-02-24T08:16:46 | 341,826,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,252 | py | #@title Import modules
import numpy as np
import pandas as pd
import tensorflow as tf
from matplotlib import pyplot as plt
pd.options.display.max_rows = 10
pd.options.display.float_format = "{:.1f}".format
train_df = pd.read_csv("https://download.mlcc.google.com/mledu-datasets/california_housing_train.csv")
test_df =... | [
"73516102+raelyz@users.noreply.github.com"
] | 73516102+raelyz@users.noreply.github.com |
f8f840e459d0bc531124d1a8a90d4404fcea99e9 | 6a7f5fcb172f3605aa1cdc9066ce2208226b73a7 | /IntelliDataSmart/groups/migrations/0011_remove_group_groupid.py | 35f964b451d8c92837c2df5737917166c29e0ae4 | [] | no_license | svjt78/IntelliDataSmart | 86473758e9fa2096c9e9b5ec26a336ec2586d19d | 3e8a3194f2affac923e85b65de089370d3b89b6f | refs/heads/master | 2022-11-13T04:45:30.481401 | 2020-07-07T02:52:13 | 2020-07-07T02:52:13 | 270,714,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2020-06-08 23:15
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('groups', '0010_group_groupid'),
]
operations = [
migrations.RemoveField(
... | [
"svjt78@gmail.com"
] | svjt78@gmail.com |
27cf5a45cc0007eca5ae08b58351524a5f0614f9 | 327ef08986ee981bf08471131d723c2aff011269 | /Firmware-url-Detection/url_classfication/trainer_zgd_TFIDF.py | 373f6b89c89a82f71429b536122c37a4312be5cd | [] | no_license | Homewm/firmware-url-detection | 0f9741e76987a1332ae8f8da34b12b021cd24e8a | 55160820041b8c89491559b2224b5ecfb77a37ba | refs/heads/master | 2020-06-13T21:21:13.222730 | 2019-07-02T05:05:14 | 2019-07-02T05:05:14 | 194,791,385 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,654 | py | # -*- coding:utf-8 -*-
import numpy as np
import pandas as pd
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LogisticRegression
from sklearn.externals import jo... | [
"1663462979@qq.com"
] | 1663462979@qq.com |
c084bf927837edbff9f1738b44a08d195446fec2 | 35fa8925e63f2b0f62ef6bfc1ff4e03cf42bd923 | /tests/models/output/definitions/test_output_definition.py | dc3f2047a98052437876efa3ed6a308349469e6b | [
"Apache-2.0"
] | permissive | TheLabbingProject/django_analyses | 9e6f8b9bd2a84e8efe6dda6a15de6a3ecdf48ec1 | 5642579660fd09dde4a23bf02ec98a7ec264bceb | refs/heads/master | 2023-02-26T07:53:53.142552 | 2023-02-17T08:12:17 | 2023-02-17T08:12:17 | 225,623,958 | 1 | 2 | Apache-2.0 | 2023-02-17T08:12:18 | 2019-12-03T13:15:29 | Python | UTF-8 | Python | false | false | 5,861 | py | from django.core.exceptions import ValidationError
from django.test import TestCase
from django_analyses.models.input.definitions.file_input_definition import \
FileInputDefinition
from django_analyses.models.managers.output_definition import \
OutputDefinitionManager
from django_analyses.models.output.definiti... | [
"z.baratz@gmail.com"
] | z.baratz@gmail.com |
eecfca54a2533f8145259bdd583c8d2fe95b525a | 16f647884c16426dd485dcf485341217dc4df8ce | /test.py | 16567b4b7954afcdf7b3b59f72b7c95ddc37394f | [] | no_license | digitechVidya1/test | 5cba6f57a9d50fbf7f1490ae931820ff40a6ba36 | 44482956133fd5d01f9249a38bdba856a358100e | refs/heads/master | 2023-02-15T22:54:32.208698 | 2021-01-09T15:03:29 | 2021-01-09T15:03:29 | 327,050,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | """
It provides some very useful features for Machine Learning projects like:
Noun phrase extraction
Part-of-speech tagging
Sentiment analysis
Classification
Tokenization
Word and phrase frequencies
"""
from textblob import TextBlob
words = ["deta","analyeis"]
correct_word = []
for i in words:
correct_word.ap... | [
"digitechsocial@gmail.com"
] | digitechsocial@gmail.com |
af9bf4858b5793e1641a6963e2f7e683b1de3f12 | 1adc548f1865c0e4fcb3b3ff1049789fa0c72b12 | /tests/observes/test_column_property.py | 058383a5651f5433d39e0d4606bda3d52d6f5663 | [] | no_license | wujuguang/sqlalchemy-utils | ca826a81acdc70168e0b85820aaf8fe1604d6b0a | b6871980a412f2ebd16ec08be3127814b42ba64e | refs/heads/master | 2021-01-12T20:59:48.692539 | 2016-01-15T08:06:48 | 2016-01-18T18:52:12 | 48,418,840 | 0 | 0 | null | 2015-12-22T08:05:48 | 2015-12-22T08:05:47 | null | UTF-8 | Python | false | false | 1,582 | py | import sqlalchemy as sa
from pytest import raises
from sqlalchemy_utils.observer import observes
from tests import TestCase
class TestObservesForColumn(TestCase):
dns = 'postgres://postgres@localhost/sqlalchemy_utils_test'
def create_models(self):
class Product(self.Base):
__tablename__ ... | [
"konsta.vesterinen@gmail.com"
] | konsta.vesterinen@gmail.com |
1c067814153122d6afb026459cbc5c5d408445b1 | 5dfeb98f5fa0ff6717af22f034341e849a09abff | /Lesson_11/HW11_3.py | aff33f68b07f320f471cf24486dfd1db3940a03a | [] | no_license | Krasniy23/Hillel_Krasnoshchok | 2ceb85405fe25067f25ea992debd27d3f3c07a3f | 66bb2e6c7c64f222201d01f1f5b712852b6d692f | refs/heads/master | 2023-01-02T15:59:19.475009 | 2020-10-19T13:47:42 | 2020-10-19T13:47:42 | 291,098,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | st = input('enter string: ').split()
count = 0
for i in st:
if len(i) > count:
count = len(i)
word = i
print('the longest word is: ', word)
| [
"54262807+Krasniy23@users.noreply.github.com"
] | 54262807+Krasniy23@users.noreply.github.com |
7b4ace09f0a0ae5c2539329a63e377c94c153453 | eed0308536458462df010ec02c7cd18276d9fb67 | /curriculum/migrations/0007_merge_20180705_0012.py | dd42f20ebadc2df4d230b5853ffc3487320f767f | [] | no_license | deep-ideas/taught-me-django | 66e8a3ff711ef4141e6d821781a18f7021c50b35 | 3b7a9366f57009d7542fd2e1506c362dcc3b9065 | refs/heads/master | 2022-12-12T11:56:18.084214 | 2018-07-06T10:30:21 | 2018-07-06T10:30:21 | 138,504,265 | 0 | 0 | null | 2022-12-08T00:58:27 | 2018-06-24T18:02:59 | JavaScript | UTF-8 | Python | false | false | 279 | py | # Generated by Django 2.0.2 on 2018-07-05 00:12
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('curriculum', '0006_auto_20180703_0648'),
('curriculum', '0006_auto_20180629_2352'),
]
operations = [
]
| [
"onyariantoprapanca@gmail.com"
] | onyariantoprapanca@gmail.com |
919218c42d0db4b6de64d6cb4572d3c055f3218f | 8d135b4d19e4d08d813ae384fe05e79b3359f7da | /helpers.py | ee23b5e93e8f097d94991ae1d9d1cefdddc283f5 | [] | no_license | maxscheiber/projecteuler | 429748abdf8fd6af19a16d933100db4c955a14b4 | 57a43c4094ab2a51ec303bd38d75478db3d15634 | refs/heads/master | 2020-04-11T09:46:41.519677 | 2013-07-28T20:19:36 | 2013-07-28T20:19:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | from math import log
def sieve(n):
primeBools = [True for i in range(n+2)] # primes[i] represents the number i
for i in range(2, n):
for j in range(2*i, n, i):
primeBools[j] = False
primes = []
for i in range(2, n):
if primeBools[i]:
primes.append(i)
return p... | [
"keasbeynumb@gmail.com"
] | keasbeynumb@gmail.com |
69e05d4c935c7c51b0514fa07f636691f6091bbd | 02fbc6a1358efee2bb9f2bad1375764d6977de73 | /tensorflow_study3_placeholder.py | d0e3c3dce17d694dbf0c46fb5054ad09ae749743 | [
"Apache-2.0"
] | permissive | TerryBryant/tensorflow | 6828510ad52c8723b0efbd9fc022301db64cfcf0 | 6e4727f861091d61dae00f4a79918e85750016d1 | refs/heads/master | 2021-05-07T01:03:07.953706 | 2017-11-15T00:55:50 | 2017-11-15T00:55:50 | 110,197,393 | 0 | 0 | null | 2017-11-10T03:23:06 | 2017-11-10T03:23:06 | null | UTF-8 | Python | false | false | 311 | py | import tensorflow as tf
#input1 = tf.placeholder(tf.float32, [2, 2])
input1 = tf.placeholder(tf.float32)
input2 = tf.placeholder(tf.float32)
output = tf.multiply(input1, input2)
with tf.Session() as sess:
print(sess.run(output, feed_dict={input1:[7.], input2:[2.]})) #运行的时候再指定值 | [
"noreply@github.com"
] | TerryBryant.noreply@github.com |
c2e9ac93f8629983cb977f8a65caf9dee5bfceaa | 80760d4c8a6b2c45b4b529bdd98d33c9c5509438 | /Practice/atcoder/ABC/054/src/c2.py | 007ef8de5fd091ec21679eb96f94eb5ea1f9c5f2 | [] | no_license | prrn-pg/Shojin | f1f46f8df932df0be90082b475ec02b52ddd882e | 3a20f1122d8bf7d95d9ecd205a62fc36168953d2 | refs/heads/master | 2022-12-30T22:26:41.020473 | 2020-10-17T13:53:52 | 2020-10-17T13:53:52 | 93,830,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | # 全域木?っていうんだっけ?でもコストは関係ないか
# 適当に隣接リストでもってしてDFSする
N, M = map(int, input().split())
Neighbor_list = [[] for _ in range(N)]
for _ in range(M):
s, t = map(int, input().split())
Neighbor_list[s-1].append(t-1)
Neighbor_list[t-1].append(s-1)
def dfs(cur, path):
if len(path) == N:
return 1... | [
"hjod1172@yahoo.co.jp"
] | hjod1172@yahoo.co.jp |
cd53fdab752cc6628b086d089002c796748479b8 | e09bbdc53af6be9281795189f26f6e59997abf68 | /tests/test_forex.py | eeb783520060d238446a4a97fba67b6f1d7c96a9 | [
"Apache-2.0"
] | permissive | jag787/ppQuanTrade | 620ce72c7875bb730708c48ae0481376b43e501b | 9a6da7522d281da130a2c459e2e614a75daa543d | refs/heads/master | 2021-01-11T13:53:40.583710 | 2013-12-20T10:43:58 | 2013-12-20T10:43:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,100 | py | #
# Copyright 2013 Xavier Bruhiere
#
# 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... | [
"xavier.bruhiere@gmail.com"
] | xavier.bruhiere@gmail.com |
6af8eb5d346add6ed2018a0a659d580796d4f1cd | 963cd89184cef2edb8c78dc349c81db7bdc32642 | /Plots/Olympicbarchart.py | 516bf1ea4922c2c4d313626672d80e3baa884fec | [] | no_license | dpmessen/PythonDash | d458b6495dad055ca43bf4365157d52de1781e49 | 0d1633efe85600fd2b75b8ef638a0795a932fdf1 | refs/heads/master | 2021-05-18T22:16:16.762829 | 2020-04-02T20:44:05 | 2020-04-02T20:44:05 | 251,449,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | import pandas as pd
import plotly.offline as pyo
import plotly.graph_objs as go
# Load CSV file from Datasets folder
df = pd.read_csv('../Datasets/Olympic2016Rio.csv')
# Sorting values and select first 20 states
df = df.sort_values(by=['Total'], ascending=[False]).head(20)
# Preparing data
data = [go.Bar(x=df['NOC']... | [
"noreply@github.com"
] | dpmessen.noreply@github.com |
838a1a224339fe920c49a50a2b316a3903af131c | fca7958875d4650c6daeec7049fef02139db9eb1 | /mi/dataset/parser/test/test_parad_k_stc_imodem.py | e220343f8e3a8ebed36ef5cb7da6e5a3da97baf2 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | oceanobservatories/mi-dataset | 36f08a076b24c40f91abd0a97e47a72ec85fc5e6 | 93aa7289f5f4788727f3b32f11d62f30ad88fd2f | refs/heads/master | 2020-04-04T04:25:22.372472 | 2017-02-24T17:06:23 | 2017-02-24T17:06:23 | 24,067,634 | 1 | 9 | null | 2016-06-29T23:24:46 | 2014-09-15T18:15:01 | Python | UTF-8 | Python | false | false | 26,149 | py | #!/usr/bin/env python
"""
@package mi.dataset.parser.test.test_parad_k_stc_imodem
@file marine-integrations/mi/dataset/parser/test/test_parad_k_stc_imodem.py
@author Mike Nicoletti, Steve Myerson (recovered)
@brief Test code for a Parad_k_stc_imodem data parser
"""
import struct, ntplib
from StringIO import S... | [
"petercable@gmail.com"
] | petercable@gmail.com |
e41c3be1ab5cd471a4b71712a1195862fd907064 | 01b991bdae435e0651c73e2149834f1b9abf22f5 | /ros_test/src/ball_follower/src/drive_wheels.py | 60bff2a209da822138a537e6e969ac365fc1567c | [] | no_license | virati/turtlebot_journeys | 85b7f18787dad4b794d098bf3c2316107ecff81b | ae84a8078381747388aa59cb412f2d75c5428c29 | refs/heads/master | 2020-03-27T08:36:39.369793 | 2019-12-16T05:33:06 | 2019-12-16T05:33:06 | 146,270,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,605 | py | #!/usr/bin/env python
#Vineet Tiruvadi
#Lab 2 for Intro Robotics
import rospy
from geometry_msgs.msg import Twist, Point
import numpy as np
import sys, select, termios, tty
class Driver:
sendVel = np.array([0,0,0])
def __init__(self):
self.ballSub = rospy.Subscriber("/ball_loc",Point,self.mover)
self.VelPub ... | [
"vtiruva@emory.edu"
] | vtiruva@emory.edu |
d33acdb878b87e27c9f0a589c4e886de95aab2ed | 15f2f06a1261d9981d57fcf75db1ae1f456cbbe4 | /blogProject/blogProject/settings.py | 6498019bb31952909a949585aa9e5c9077aeb122 | [] | no_license | rigvedpatki/django-basics-to-advance | f4ffa372802d35e3a76057b189d9ce985a63ff24 | d6d7864c34fa10e03668951384d6fbcb4e355d29 | refs/heads/master | 2021-04-15T10:11:06.399153 | 2018-05-04T11:31:41 | 2018-05-04T11:31:41 | 126,586,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,103 | py | """
Django settings for blogProject project.
Generated by 'django-admin startproject' using Django 2.0.3.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import o... | [
"rigved.patki@gmail.com"
] | rigved.patki@gmail.com |
857f096c6a217514c93fef42ae3a2f36f97fa43d | 84f5e405e3a8fd902b7d67c692c42ff966e1bdaf | /venv/Lib/site-packages/pandas/tests/resample/test_resampler_grouper.py | 155d704ca64b0cf2dfc15eecf8812a41509db34a | [] | no_license | Davey1993/FYP | da976feab1c524fac1db609fa230d000b35671e0 | 39b4a21085329528942273efec030441ff8f3230 | refs/heads/master | 2023-04-11T05:52:20.388934 | 2021-04-21T10:24:11 | 2021-04-21T10:24:11 | 298,893,919 | 1 | 0 | null | 2021-03-19T22:21:05 | 2020-09-26T20:24:36 | Python | UTF-8 | Python | false | false | 11,248 | py | from textwrap import dedent
import numpy as np
import pytest
from pandas.util._test_decorators import async_mark
import pandas as pd
from pandas import DataFrame, Series, Timestamp, compat
import pandas._testing as tm
from pandas.core.indexes.datetimes import date_range
test_frame = DataFrame(
{"A"... | [
"david.dunleavy93@gmail.com"
] | david.dunleavy93@gmail.com |
e32fadc710671ee0d561a5192a3e0c6875072673 | ac7e039a70ba627f6d9a7a02c9a8849ed5e18a89 | /unep.project-database/tags/0.2/content/Project.py | d13c620db2288f39c6b8598a0df372dc144dd473 | [] | no_license | jean/project-database | 65a2559844175350351ba87e820d25c3037b5fb2 | e818d322ec11d950f2770cd5324fbcd1acaa734d | refs/heads/master | 2021-01-01T06:27:24.528764 | 2014-01-31T11:11:45 | 2014-01-31T11:11:45 | 32,125,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,359 | py | # -*- coding: utf-8 -*-
#
# File: Project.py
#
# Copyright (c) 2008 by []
# Generator: ArchGenXML Version 2.0
# http://plone.org/products/archgenxml
#
# GNU General Public License (GPL)
#
__author__ = """Jean Jordaan <jean.jordaan@gmail.com>, Jurgen Blignaut
<jurgen.blignaut@gmail.com>"""
__docformat__ = 'p... | [
"jurgen.blignaut@61ed036f-b72b-0410-9ea5-b9ec1d72d98d"
] | jurgen.blignaut@61ed036f-b72b-0410-9ea5-b9ec1d72d98d |
80cf0e2f70e7d2a6dede620d309918c419a3e68c | 7f92f493d09cd69bb6f446f74bce0796d2d5918a | /fileSelfWrite/Others/test.py | 5529c8205779f62486cec4ea0a34529fdf2a7e22 | [
"MIT"
] | permissive | usamaahsan93/mischief-managed | 79efafde06cd57205e22d0bb200961a98df0e147 | 824022ecaeda46450ca1029bceb39f194c363138 | refs/heads/main | 2023-07-11T23:40:52.974430 | 2021-07-26T10:43:38 | 2021-07-26T10:43:38 | 387,379,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 574 | py | import re, fileinput, time, subprocess,sys, os
time.sleep(1)
with open ("code2.py", "r+") as f:
for line in fileinput.input("code2.py"):
if "#counter:" in line :
t=int(re.search("[\d]+",line).group(0))
if t>=5:
print("greater than 5")
break
else:
f.write(line.replace("#counter:"+str(t)... | [
"noreply@github.com"
] | usamaahsan93.noreply@github.com |
4f599b8dfbd69a5f176a51a7c15b40ac767c1900 | caaf1b0754db1e676c37a6f1e58f19183754e654 | /sdk/network/azure-mgmt-network/generated_samples/virtual_network_peering_delete.py | 532bf47b34961b57f4acac61960084e27f172f18 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | rdomenzain/azure-sdk-for-python | 45dfb39121a0abda048c22e7309733a56259f525 | 58984255aeb904346b6958c5ba742749a2cc7d1b | refs/heads/master | 2023-07-07T06:53:12.967120 | 2023-07-04T16:27:37 | 2023-07-04T16:27:37 | 258,050,134 | 0 | 0 | MIT | 2020-04-23T00:12:14 | 2020-04-23T00:12:13 | null | UTF-8 | Python | false | false | 1,583 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | rdomenzain.noreply@github.com |
f65558cf904521d0f2d1c51ab51fa35f551c22b9 | 89696c8e71bb95df8ed4b870aaebcfb67d90407f | /tester.py | 15c26d7694335b76781d7f0b7ce597a662ec3fb3 | [
"MIT"
] | permissive | darkLord19/GraphColoringPy | 147b6d121e28f0dbf61aefc4a9f1241b7eb7e8c4 | 2cc2ef74ff6eb4eb53d6392dd6f18d5939a9a0ef | refs/heads/master | 2020-03-29T15:42:33.775667 | 2018-10-07T17:42:16 | 2018-10-07T17:42:16 | 150,076,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,933 | py | from greedy_coloring import *
from backtracking import *
from graph import Graph
import networkx as nx
import matplotlib.pyplot as plt
colors = ['red', 'green', 'blue', 'yellow', 'orange']
n = int(input('Enter number of vertex: '))
e = int(input('Enter number of edges: '))
# n = int(in_arr[0].split(' ')[0])
# e = in... | [
"umangjparmar@gmail.com"
] | umangjparmar@gmail.com |
4405bbc5d0120b144c0fd81f2acda78c3b3d1e57 | b3c7a8a771ea108aacce1e35842766709a0e2c21 | /2018/J1/J1.py | 464798abab511c3e276bbc4bfeb7fcec5eb2da4b | [] | no_license | vishnupsatish/CCC-practice | 0e2a6baca0d64380c32afec8220232cbc046eb1b | a1837d56f734c352a050b37d60f591e9f5461cb5 | refs/heads/master | 2021-07-10T16:27:32.433858 | 2021-03-07T02:06:59 | 2021-03-07T02:06:59 | 236,358,317 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | numbers = [int(input()) for i in range(4)]
if (numbers[0] >= 8) and (numbers[3] >= 8) and (numbers[1] == numbers[2]):
print("ignore")
else:
print("answer") | [
"vishnupavan.satish@gmail.com"
] | vishnupavan.satish@gmail.com |
c6ecbc433345ab2e029640fa9fca42b81f210b42 | 33cba98daf992b91867be58de0c6cca14bd9c563 | /knn/knn.py | 61b5c94343d2203220f6a291967334d62cd43405 | [] | no_license | niucheng1991/Machine-Learning | c27d97d320a8b4130d7a071f6898ff43c644a0bb | 1f8742e6ac270809d5808c13faeecf2a76a3eb9a | refs/heads/master | 2020-04-07T05:17:57.415456 | 2018-11-25T16:03:50 | 2018-11-25T16:03:50 | 158,091,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 902 | py | #-*- coding: utf-8 -*-
import numpy as np
class KNN():
def __init__(self, k=6):
self.k = k
def predict(self, X_test, X_train, y_train):
y_pred = np.empty(X_test.shape[0])
m_sample = np.shape(X_train[0])
distance = []
for i, test_sample in enumerate(X_test):
... | [
"niucheng1991@gmail.com"
] | niucheng1991@gmail.com |
24606d612bfe57df9133c52158fa43cb8df4b0fd | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02554/s686857894.py | 2b0827ac913366bf60ab8e65803058621790719e | [] | 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 | 69 | py | N = int(input())
print(((10**N) - 2*(9**N) + (8**N)) % ((10**9)+7))
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
beb2b9f87eefb7acd3e3c7aa875cf9145c98f7c6 | 1fe10b41ac29e0e4a419bc24b39879d27121f7f6 | /lab4_11.py | 0fe07bb98921399c5e3458a888fd74e2b9ea8a28 | [] | no_license | gibum1228/Python_Study | dad24328f01129fafafce687802fc0ffd6dd0bb2 | e3e38f0041574d259e738960e51afc71e103248b | refs/heads/master | 2020-04-03T16:51:12.367850 | 2019-05-09T03:46:09 | 2019-05-09T03:46:09 | 155,421,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | """
챕터: Day 4
주제: 반복문(for 문)
문제:
사용자로부터 5개의 숫자를 입력받아, 이를 리스트에 저장한 후 합과 평균을 구하여 출력한다.
작성자: 김기범
작성일: 2018.09.27.
"""
l = [] # l 초기화
sum = 0 # sum 초기화
for i in range(0, 5) : # i는 0부터 4
l.append(int(input())) # l에 입력받은 수를 저장
for add in l : # add에 l 값 대입
sum += add # sum에 add 더하기
average = sum / len(l) # 평균 구하기
... | [
"gibum1228@naver.com"
] | gibum1228@naver.com |
3cc568bb219b3dd743add2ae47a099388fa0706c | b70d665dfd0bdd67c0c5a3285ee196ce95fa274f | /Image_Analysis/Mod1/Excercice03_/Matemathic_morphology.py | e595ad082ecb637c6e62eb1ee7d15389e0e40a5e | [
"MIT"
] | permissive | PabloWually/computer_vision | ec6e8ecf34b85c72f05c9d0dd8dc9c185f67395b | bab05c39573341c931ea3d8b1f0ed4685e07a7ca | refs/heads/master | 2022-07-30T13:47:24.694489 | 2020-05-20T15:24:14 | 2020-05-20T15:24:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,036 | py | import numpy as np
from skimage import morphology as sk_mm
from matplotlib import pyplot as plt
square = np.array([[0, 0, 0, 0, 0],
[0, 1, 1, 1, 0],
[0, 1, 1, 1, 0],
[0, 1, 1, 1, 0],
[0, 0, 0, 0, 0]], dtype=np.uint8)
struct_element = sk_mm.se... | [
"pablomp250@gmail.com"
] | pablomp250@gmail.com |
e87143ae62be3d76aca75336e2253b797cd931a1 | 9fd800815a2502dc5405a4e4e144b0a86a07e908 | /apps/user/migrations/0002_auto_20210225_1902.py | d5917ac86dea787d3bf4351b3a738b85e87e8892 | [] | no_license | ailvaanderson13/unir-dev | 6c02c40ed6facb12f6567201c132852b24c8c6ce | 0e12ce2de99d98671644f3a6451700c20bffaa57 | refs/heads/master | 2023-03-13T18:16:16.723085 | 2021-02-25T23:54:45 | 2021-02-25T23:54:45 | 341,449,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | # Generated by Django 3.1.7 on 2021-02-25 22:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='user',
name='motorista',
field... | [
"asilva130498@gmail.com"
] | asilva130498@gmail.com |
b377218bd232e3b0882d187c3146fe6e98122d09 | bd404cd2b293fe1dda4797b1c10c0691dea72541 | /resources/plop_proj/web.wsgi | e6fc4e8132197b75fba48e8b1064d9150c3438ca | [] | no_license | nubela/plop-plop | 55f4af5bec320cbe3d885457e39b870a8abdb712 | 56a62f24071bb0fa3d62da3b0c58650cb74d02f7 | refs/heads/master | 2021-01-10T19:53:38.769944 | 2014-01-13T05:48:17 | 2014-01-13T05:48:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | wsgi | import sys, os
cwd = os.path.dirname(os.path.realpath(__file__))
sys.path.append(cwd)
activate_this = os.path.join(cwd, "v_env/bin/activate_this.py")
execfile(activate_this, dict(__file__=activate_this))
from web.plop import app
application = app | [
"nubela@gmail.com"
] | nubela@gmail.com |
66063ce1957d90287e9f2a1bee636fb5b0c4935c | d655d21069c05f9ce5924f38f0fc5b152d606172 | /flight_processor.py | d7719400c52c7aee8f95d958bcf94ecb30f9dc79 | [] | no_license | mt4g16/IP-Flight-Protocol | 28de7a4c3e74d5d830b51fe2f1a171f7d85fe2b6 | 6b804b4f61c3d43a6501e6a03622a9ab3df7f6b7 | refs/heads/main | 2023-03-06T23:11:08.363895 | 2021-02-07T15:46:01 | 2021-02-07T15:46:01 | 336,823,069 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Feb 16 22:59:19 2020
@author: Matteo
"""
from tlog_interpreter import process_tlog
from data_processor import process_data
from data_plots import make_plots
from data_panels import make_panels
def process_flight():
process_tlog()
process_data()
ma... | [
"noreply@github.com"
] | mt4g16.noreply@github.com |
fe01077c57dd86fca77c5595c967b8212455bb72 | 5a1c31771de586f2b55d689dfc49fae69e8181f6 | /Desicion_tree/treePlotter.py | 4046c194bc6cedc5effc663209ae583247298b14 | [] | no_license | Lv11223311/ML_combat | feea37cb99b65159827cc82db406e81b90863557 | cb709fab9b9412890a8ed3dfaa087d47a92a8062 | refs/heads/master | 2020-04-18T18:26:22.291035 | 2019-02-20T11:49:11 | 2019-02-20T11:49:11 | 167,683,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,874 | py | # -*- coding: utf-8 -*-
from matplotlib import pyplot as plt
# 设置全局变量,决策单元,分支单元,和连接的样式
decisionNode = dict(boxstyle='sawtooth', fc='0.8')
leafNode = dict(boxstyle='round', fc='0.8')
arrow_args = dict(arrowstyle='<-')
# 注解单元,利用上面的全局变量设置整个图得样式
def plotNode(nodeTxt, centerPt, parentPt, nodeType):
createPlot.ax1.a... | [
"2695484680@qq.com"
] | 2695484680@qq.com |
2a4e109b863e0a4319bfe85562be993edc93a2a9 | 72aaf95c620add84cae41151a36e7e15de8a5cd4 | /0618/py/test1.py | 8f0431ee75ba524f31088d19d7c9200381c1bb7c | [] | no_license | uZJl/CodeZjl | 687b9324a59840702a2a970561e79262c02f5000 | 1355f7698ba8193cb05f1971bce25b6994ea0500 | refs/heads/master | 2023-07-29T08:35:08.280229 | 2021-08-29T14:58:44 | 2021-08-29T14:58:44 | 312,001,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | from selenium import webdriver
import os
import time
from selenium.webdriver.common.action_chains import ActionChains
driver = webdriver.Chrome()
file="file:///" + os.path.abspath("C:/Users/21173/Desktop/pyhtml/level_locate.html")
driver.get(file)
driver.maximize_window()
time.sleep(2)
driver.find_element_by_link_text... | [
"1969643139@qq.com"
] | 1969643139@qq.com |
212ee2ca759bdbfa84b1176d260a19504b87e9ac | 1ccfc8fd6d502714e2c3059f346ccde635ca4a98 | /discord/permissions.py | 51c39fec25c6808cb2fbb16ade451480df18725d | [
"MIT"
] | permissive | joymalya31/nextcord | 0c58991f03cb200fe9cb742c9d9e1d1828ecf24b | c9a17374ac3568dc704e46bb856811d3a85038d3 | refs/heads/master | 2023-09-01T17:15:13.788281 | 2021-10-30T06:48:31 | 2021-10-30T06:48:31 | 422,811,073 | 0 | 0 | NOASSERTION | 2021-10-30T07:12:35 | 2021-10-30T07:12:34 | null | UTF-8 | Python | false | false | 1,603 | py | """
The MIT License (MIT)
Copyright (c) 2015-present Rapptz
Copyright (c) 2021-present tag-epic
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
t... | [
"noreply@github.com"
] | joymalya31.noreply@github.com |
7db66557bd3a0b24ca156b7d9d1adc8dd2bb1036 | 2f63746b12651e78c4ce8728289b2c3c619cc88b | /tests/test_rebuild_overlap_groups.py | 0784cfeb5fa5bc63fa95d6c0c44ce772220c204f | [
"MIT"
] | permissive | WillieMaddox/Airbus_SDC_dup | 0729f42365ad30a857efc09de4710747ab37f7f6 | 09be904cf3c8050086f07538f5e2954282de5d62 | refs/heads/master | 2020-04-29T06:28:10.841952 | 2020-01-25T05:11:59 | 2020-01-25T05:11:59 | 175,917,002 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | import pytest
from pytest import fixture
import json
from sdcdup.rebuild_overlap_groups import PrettyEncoder
def test_PrettyEncoder():
test_dict = {"filename.jpg": {'d82542ac6.jpg': (0, 0), '7b836bdec.jpg': (1, 0)}}
true_json = '{\n "filename.jpg": {\n "7b836bdec.jpg": [1, 0], \n "d82542ac6.jpg": [0, ... | [
"willie.maddox@gmail.com"
] | willie.maddox@gmail.com |
fa9c4e8d7c168d8362c39b5b10eb21a795cf526d | 0a8ce2729cc5d4a0610899ce051c19dd1710c65f | /playground/stitching/stitch.py | bb81800763b4b7a1e18fad58c4e82b39c2424580 | [] | no_license | niarm/smart-mic | 84f7b165b5d4f7b5e1eef3f0bcbc47d8356bbce2 | 2f4ab4966280ff99b32204ea168fcc81d5d21977 | refs/heads/master | 2020-04-01T13:22:56.821640 | 2018-10-16T08:35:55 | 2018-10-16T08:35:55 | 153,250,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | import cv2
stitcher = cv2.createStitcher(False)
image_1 = cv2.imread("r0-c0.png")
image_2 = cv2.imread("r0-c1.png")
image_3 = cv2.imread("r0-c2.png")
result = stitcher.stitch((image_1,image_2, image_3))
cv2.imwrite("result.jpg", result[1]) | [
"niklas.armbruster@deutschebahn.com"
] | niklas.armbruster@deutschebahn.com |
546a1f441b55eb2b590148a3340a3cf794aca817 | f70b6d2a0a2b3beb4c416d90611254e68c7cd02e | /newspaper_project/users/forms.py | 0ceb844abcd6bdd7d3ab1b242bd86f5d37b10bb8 | [] | no_license | poojaurkude/newsapp | 11681d3b8b8f57b150f7acb8e0bb5f27fe19e48f | f42d95538c9c5025a5097481f85971ba5a591a82 | refs/heads/master | 2021-01-06T09:46:47.700196 | 2020-02-18T05:58:05 | 2020-02-18T05:58:05 | 241,284,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | from django import forms
from django.contrib.auth.forms import UserCreationForm, UserChangeForm
from .models import CustomUser
class CustomUserCreationForm(UserCreationForm):
class Meta(UserCreationForm.Meta):
model = CustomUser
fields = ('username','email','age',)
class CustomUserChangeForm(U... | [
"pooja11urkude@gmail.com"
] | pooja11urkude@gmail.com |
3e3160aa14fa7ceee7753a704491419a0573c1b1 | 853f732a548a78441164d55572f9ed2f822c8f6d | /src/tradutor.py | 7df124c97ad7b50c1c13019bb808b7d0fa2abe17 | [] | no_license | schaiana/tradutor | 460d5ea0b7377ba70554cd19474ea8a2d4dea8d3 | c8b8541a23d039a5b24d7f9149102baf307c9229 | refs/heads/master | 2023-05-11T11:01:26.918070 | 2020-06-29T19:20:56 | 2020-06-29T19:20:56 | 222,506,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,824 | py | import math
import re
algarismo_para_extenso = {
0: "zero",
1: "um",
2: "dois",
3: "três",
4: "quatro",
5: "cinco",
6: "seis",
7: "sete",
8: "oito",
9: "nove",
10: "dez",
11: "onze",
12: "doze",
13: "treze",
14: "quatorze",
15: "quinze",
16: "dezesseis",
17: "dezessete",
18: "dezo... | [
"schaianasonaglio@gmail.com"
] | schaianasonaglio@gmail.com |
914ad708786f3d23eb277aa6f3ba40c9aaf15a81 | 92adc05640d66eec8fc3f2cda4ee7621af1c456a | /homeworks/markov-decision-processes/agents.py | afbb6c8101184947038cab5418c223e3d3993822 | [] | no_license | artificial-intelligence-class/artificial-intelligence-class.github.io | 5ef0911f08754a9d4fae2f75555d25a7bb9724db | 7e3383a803fe9a456dee73a6848f2cc02b0207c8 | refs/heads/master | 2023-02-21T08:43:36.430394 | 2023-02-12T14:02:27 | 2023-02-12T14:02:27 | 136,362,611 | 9 | 22 | null | 2020-11-02T09:35:25 | 2018-06-06T17:24:53 | Python | UTF-8 | Python | false | false | 3,283 | py | # Include your imports here, if any are used.
student_name = "Type your full name here."
# 1. Value Iteration
class ValueIterationAgent:
"""Implement Value Iteration Agent using Bellman Equations."""
def __init__(self, game, discount):
"""Store game object and discount value into the agent o... | [
"admin@superfashi.com"
] | admin@superfashi.com |
66fa92e9025251b90129308bd92a3f521649690c | 753a70bc416e8dced2853f278b08ef60cdb3c768 | /models/research/domain_adaptation/domain_separation/dsn_test.py | 3d687398a9b9356455f739417bc96ddb2ca5ad40 | [
"MIT",
"Apache-2.0"
] | permissive | finnickniu/tensorflow_object_detection_tflite | ef94158e5350613590641880cb3c1062f7dd0efb | a115d918f6894a69586174653172be0b5d1de952 | refs/heads/master | 2023-04-06T04:59:24.985923 | 2022-09-20T16:29:08 | 2022-09-20T16:29:08 | 230,891,552 | 60 | 19 | MIT | 2023-03-25T00:31:18 | 2019-12-30T09:58:41 | C++ | UTF-8 | Python | false | false | 6,027 | py | # Copyright 2016 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 applicab... | [
"finn.niu@apptech.com.hk"
] | finn.niu@apptech.com.hk |
abde9955cdf401538f6a48140cc38c426eea896a | 8e29c21c631d2b3a21f18a210a2c0bbab0d1f347 | /python/pfs/drp/stella/datamodel/pfsTargetSpectra.py | 37983859c2a5a41486dce2a196d966979720b153 | [] | no_license | Subaru-PFS/drp_stella | 630d25118dcc074cf14629f2f1389fad21a023a8 | 85602eea2485ac24e0831046dc74f1b2d1a3d89f | refs/heads/master | 2023-09-01T06:23:57.661286 | 2023-08-23T21:22:25 | 2023-08-23T21:22:25 | 53,125,359 | 3 | 1 | null | 2023-09-07T05:52:04 | 2016-03-04T09:51:39 | Python | UTF-8 | Python | false | false | 13,208 | py | from collections.abc import Mapping
from typing import Dict, Iterator, Iterable, List, Type
import astropy.io.fits
import numpy as np
import yaml
from astropy.io.fits import BinTableHDU, Column, HDUList, ImageHDU
from pfs.datamodel.drp import PfsSingleNotes, PfsSingle, PfsObjectNotes, PfsObject
from pfs.datamodel.mask... | [
"price@astro.princeton.edu"
] | price@astro.princeton.edu |
a57b4e402cd6c093da4ebc82e7bcd1cd994a4a06 | f7d9e3c2c31acc023335331ca1cce940b1d054a3 | /demo_pythond_jango/booktest/views.py | f8c9f80431449bcce7d63e6193f890914b773a15 | [] | no_license | ht5678/yzh-learn | ed6fc6d1ef7497bcc44c18d0af3f017388da8521 | c58ffe44b7b568c61164e1f9daf0ffea09ee3771 | refs/heads/master | 2023-02-25T12:09:04.037844 | 2022-08-23T16:19:21 | 2022-08-23T16:19:21 | 144,949,753 | 0 | 1 | null | 2023-02-22T02:43:39 | 2018-08-16T06:59:39 | Java | UTF-8 | Python | false | false | 2,260 | py | from django.shortcuts import render
from django.http import HttpResponse,HttpResponseRedirect
from django.template import loader,RequestContext
from django.shortcuts import render,redirect
from booktest.models import BookInfo
from datetime import date
def myRender(request,templatePath , contextDict={}):
'''使用模板文件... | [
"yuezh2@lenovo.com"
] | yuezh2@lenovo.com |
176d0b6229b4f26e00bbaa4c702c2b0b5598691c | 1b9e4843268255b643fb365039fa69b4a9097b38 | /src/pieltk/alphabet/xcr.py | cf2961091028b0f55f1a6e942331427db4d39d99 | [
"MIT"
] | permissive | caiogeraldes/pieltk | 1e6e4ddbf30b03ef7f0947b12e4c83289df7472a | 205c2c030fce5f82551fe36fb48eef1040c7e496 | refs/heads/main | 2023-08-04T14:44:02.932297 | 2021-09-15T13:21:47 | 2021-09-15T13:21:47 | 403,777,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,211 | py | """The Carian alphabet. Sources:
- `<https://www.unicode.org/charts/PDF/U102A0.pdf>`
- Adiego, Ignacio, J. (2007) The Carian Language
"""
__author__ = [
"Caio Geraldes <caio.geraldes@usp.br>"]
VOWELS = [
"\U000102A0", # 𐊠 CARIAN LETTER A
"\U000102A7", # 𐊧 CARIAN LETTER A2
"\U000102AB", # 𐊫 CAR... | [
"caioaguida@protonmail.com"
] | caioaguida@protonmail.com |
a69b2c11900d6d7328f335f6420a6b344ad49c97 | 0ddcaee809d93e4d5b12d8269964cafd7dd8333d | /__init__.py | f2285368ce87d1d0884809647b24e4f7d8dca542 | [] | no_license | tin2tin/Text_Editor_Reworked | 63db1ebde254104700158011228654f417f76a1a | 5504b57d6e34a905cd009be825baacd8b5a2edb8 | refs/heads/master | 2020-06-06T10:12:28.655841 | 2019-06-19T12:25:58 | 2019-06-19T12:25:58 | 192,710,657 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,156 | py | # ##### BEGIN GPL LICENSE BLOCK #####
#
# This program 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 2
# of the License, or (at your option) any later version.
#
# This program is ... | [
"noreply@github.com"
] | tin2tin.noreply@github.com |
310a2ff7d5c25b08fd026424c91c406d6dce04a7 | 8e4a5e0a81fc9401fc0b6e55dd55e8d6e29c3ed6 | /PycharmProjects/licamb/licamb/db.py | 56e07023c14dd0a9ab4cc3e86d345f33321735e3 | [] | no_license | rogeriodelphi/portifolio | 1fb16c8c723b97f20cdd305224b660a1657f3913 | 5c704305ce26576afb4efd1e410f691971f06fac | refs/heads/master | 2023-08-11T05:33:37.539047 | 2021-09-26T01:57:02 | 2021-09-26T01:57:02 | 284,164,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | import os
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SQLITE = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
}
}
# DATABASES = {
# 'default': {
# 'ENGINE': 'django.db.backends.sqlite3',
# 'NA... | [
"rogeriodelphi@gmail.com"
] | rogeriodelphi@gmail.com |
bd979fbfdf99268a25aa04c104f5e1b6c5f056af | beba93bfd1ef7506ffac19e93e7e14abfc6b9aa6 | /category/admin.py | c0fb99b4ed7c5acc71ed8fc24bc55c05aa8b1bdc | [] | no_license | Glazzko/reccomendation-system | 9fde738ecfdefbba4fb13447bda8dd202869c5a7 | 199a7a1347d93955cdc3da5e50d005d8002b72e1 | refs/heads/master | 2023-05-31T22:56:17.872071 | 2021-06-12T22:18:34 | 2021-06-12T22:18:34 | 375,421,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | from django.contrib import admin
from category.models import Category
@admin.register(Category)
class CategoryAdmin(admin.ModelAdmin):
list_display = ("label",)
search_fields = ("label",)
| [
"rimas.juzeliunas@panko.lt"
] | rimas.juzeliunas@panko.lt |
075d9d7617dfb64faaea57e301f6784de40b09c2 | d78766f66557c424a2e3b85286a95e621ea1f345 | /windaq.py | cacc8052fb2c78122754423b5095721be464a086 | [] | no_license | aguiarla/windaq3 | d5550a3ee5b076a510ea29bca5d7c0deb65fca55 | 8b07a02f71efef8f3d749c3300491c6114ce2c69 | refs/heads/master | 2022-01-09T04:36:23.999147 | 2019-05-02T13:40:38 | 2019-05-02T13:40:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,181 | py | '''
Created on Febuary, 2019
@author: samper
Windaq class object to work directly with .wdq files
Python 3 Version
'''
#!/usr/bin/python
import struct
import datetime
class windaq(object):
'''
Read windaq files (.wdq extension) without having to convert them to .csv or other human readable text
Cod... | [
"17242713+sdp8483@users.noreply.github.com"
] | 17242713+sdp8483@users.noreply.github.com |
e610e2ff68b9264be3b2f2e6659c8a516cad7e27 | eb136fec7f6dfcb11834cc0cd4d3daec1d7a4dc6 | /fiasco_api/expenses/migrations/0001_initial.py | 40ad410a30d5561dfacbc245e35bd26e587ef388 | [
"MIT"
] | permissive | xelnod/fiasco_backend | 4635cff2fd220585c4433010e64208dfebbf2441 | edeca8cac8c7b1a1cc53051d4443cc2996eba37c | refs/heads/master | 2020-09-21T13:37:37.971952 | 2020-09-15T19:38:37 | 2020-09-15T19:38:37 | 224,804,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,396 | py | # Generated by Django 3.1.1 on 2020-09-13 21:03
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('categories', '0001_initial'),
('channels', '0001_initial'),
]
operations = [
mi... | [
"s.zench@yandex.ru"
] | s.zench@yandex.ru |
9a703574fa19dba5c5f356bbf2eb597785ed8295 | 99f46a281afb98f76ac4cc2bd6e7d419d99baa5b | /train.py | 1fa353c2c5c881b119e28c0e10e986703e02eef2 | [
"MIT"
] | permissive | mattdangerw/keras-text-generation | 5fc1951760851cdd9678ce963cdad9e0cf43c277 | b04ac44bf68e9f68520b1492d7f30864b1862fb3 | refs/heads/master | 2023-04-06T16:23:01.756861 | 2020-11-09T07:53:02 | 2020-11-09T08:32:00 | 94,829,643 | 24 | 10 | MIT | 2023-03-25T00:21:17 | 2017-06-19T23:33:23 | Python | UTF-8 | Python | false | false | 1,932 | py | # -*- coding: utf-8 -*-
from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter
from model import MetaModel, save
def main():
parser = ArgumentParser(formatter_class=ArgumentDefaultsHelpFormatter)
parser.add_argument('--data-dir', type=str, default='data/tinyshakespeare',
... | [
"mattdangerw@gmail.com"
] | mattdangerw@gmail.com |
236dd011739d70280f592f42aa12d08407006032 | 2ea8277bf5a0bb496616c35cfecdf7ad9871c361 | /examples/TimoBeam/homo-nn-T3-mesh1/calculate_traction.py | 10e8deb7ddad73be670938164b288110fb4aff48 | [] | no_license | J-Mounir/multiscale-homogenization | f7f7c9e9f2567bc07c4ab0b830e85dc539f709f3 | 36b51abc91847ad10726c94600f57577eca27d02 | refs/heads/master | 2023-06-16T12:45:52.768027 | 2021-07-14T09:31:44 | 2021-07-14T09:31:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,541 | py | import numpy as np
thickness = 1
nodes = np.array([
[713, 20.0, 0.0],
[712, 20.0, 0.384615391],
[711, 20.0, 0.769230783],
[710, 20.0, 1.15384614],
[709, 20.0, 1.53846157],
[708, 20.0, 1.92307687],
[707, 20.0, 2.30769229],
[706, 20.0, 2.69230771],
[705, 20.0, 3.07692313],
[704, 20.0, 3.46... | [
"ntvminh286@gmail.com"
] | ntvminh286@gmail.com |
bcb6a7fd57fa30d196aa43d973ea34ee9f191570 | 96d0a7fc3deee438749fc59fcb6951eb0bc1affe | /blockchain.py | 451f012e9c3fa3bd6957343f25d09fdefe8a5fb8 | [] | no_license | Kay-Wilkinson/smallBlockchainProject | 5530d8ef4794d4f42736b6933c64a27ae3f96ad7 | 730ef4af6b6de2094c61a22afd2e17b201fbd5af | refs/heads/master | 2020-03-28T18:48:19.998887 | 2018-09-15T15:22:38 | 2018-09-15T15:22:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,818 | py | import hashlib
from hashlib import sha256
import json
from time import time
from urllib.parse import urlparse
from uuid import uuid4
from textwrap import dedent
import requests
from flask import Flask, jsonify, request
class Blockchain(object):
def _init_(self):
self.chain = []
self.current_transactions = []
... | [
"noreply@github.com"
] | Kay-Wilkinson.noreply@github.com |
b39ad6bd4903fbdc886c9de6c9f08c51f8e9bf92 | 81a1e1f5907f34126cf26468e93c9b03d564a139 | /blog/views.py | 286b0ee315dcaa0bfa2e5021a85d5ccb3ec15ac5 | [] | no_license | cxrlover/Email | 27e559b7135e67aba93ae3ca3cc5fe8c8cd8999f | 54b685ab5feab4d7075cd08088a395b087e9632a | refs/heads/master | 2022-02-01T11:15:32.147519 | 2019-07-21T03:46:50 | 2019-07-21T03:46:50 | 198,010,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,402 | py | from django.core.mail import send_mail
from django.shortcuts import render, get_object_or_404
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from .models import Post
from .forms import EmailPostForm
# Create your views here.
def share_post(req, post_id):
post = get_object_or_404(Post, ... | [
"1107849083@qq.com"
] | 1107849083@qq.com |
92d34b6fea3257a43a8012c3d157b1864b4eb4cf | 1893db5fbfb57a6d73c1e3c684e8e5dbcd4b58cb | /textRnn_embedding_tf2.py | 2723ac4c6fe46b5514517b1491a2184efafa036f | [] | no_license | crespo18/tf2.0 | 69a72097e34239d49a0eca9b5e7dcf14172a0f3a | 36cea7b11b3bff04116ef482845eed0cba9c3cb8 | refs/heads/main | 2023-04-03T13:33:09.967634 | 2021-03-23T07:05:54 | 2021-03-23T07:05:54 | 325,563,049 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,485 | py | #!/usr/bin/env python
#!-*- coding:utf-8 -*-
import jieba
import tensorflow as tf
from tensorflow import keras
from tensorflow.keras import layers
from tensorflow.keras import Input,Model
from tensorflow.keras import preprocessing
class TextRnnTag:
def __init__(self, user_name):
self.user_name = user_name... | [
"noreply@github.com"
] | crespo18.noreply@github.com |
2837c0365e573379cc39e4415dca0ab8792aed7e | a54e2d0b5edb4be2a1cb676b124f6f3b18d02728 | /hxzxLogin.py | 7bd2d090b5b50e796ffe16a1e931c5bf5cd9b73d | [] | no_license | lz023231/untitled | 1161baec0a311bdc782ca5f373a9b17e2bdb9db0 | 9a43d2b428eec41d13559f22c6f08e5367cf9fc2 | refs/heads/master | 2020-09-10T23:12:25.643632 | 2020-03-16T09:12:55 | 2020-03-16T09:12:55 | 221,407,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,057 | py | from selenium.webdriver.common.keys import Keys
import time
import re
import requests
import pytesseract
from PIL import Image,ImageEnhance
from selenium import webdriver
from selenium.webdriver.common.by import By
class Login():
def login(self, driver, username, password):
driver.find_element_by_xpath('... | [
"1449775115@qq.com"
] | 1449775115@qq.com |
52de1d8032b9889325355b2972e6a94348c16981 | 23f59d8c524be424bd5d5b8047f22341c769fd3e | /Week 02/id_624/LeetCode_105_624.py | 1010d927a4eff43a32d927da021088efcc84d881 | [] | no_license | cboopen/algorithm004-04 | 59ef7609eb0f8d5f36839c546b0943e84d727960 | f564806bd8e18831eeb20f2fd4bdd2d4aaa829ce | refs/heads/master | 2020-08-11T12:30:04.843364 | 2019-12-08T13:21:38 | 2019-12-08T13:21:38 | 214,565,309 | 2 | 0 | null | 2019-10-12T02:44:08 | 2019-10-12T02:44:08 | null | UTF-8 | Python | false | false | 1,258 | py | #
# @lc app=leetcode.cn id=105 lang=python3
#
# [105] 从前序与中序遍历序列构造二叉树
#
# https://leetcode-cn.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/description/
#
# algorithms
# Medium (61.89%)
# Likes: 261
# Dislikes: 0
# Total Accepted: 28K
# Total Submissions: 45.1K
# Testcase Example: '[3,9,... | [
"haozhenyi@58.com"
] | haozhenyi@58.com |
ce380d3589392eb45c41c9531c47bd45cd60d350 | 31d43b73e8104cd8aef3d97e39666022f2946223 | /run_all_banim.py | ef93f88c9cad345baeb4a1f638669943af4a7b6e | [] | no_license | kgelber1/SSX-Python | 2ed6b5e6b7b3775779464a7f624a70155ec8f657 | 4f5cded3acec68e24206af90ef5611db9adb1ac3 | refs/heads/master | 2020-06-24T07:08:33.486962 | 2019-10-24T18:11:18 | 2019-10-24T18:11:18 | 198,890,544 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 829 | py | from __future__ import division, print_function, absolute_import
import anim_bfield_merging_nBT as an
import anim_bfield_merging as a
import numpy as np
def main():
"""Just a place to specifiy variables"""
day ='073019'
first_shot = 12
# last_shot = 44
last_shot = 43
bad_shots = [27]
al... | [
"kgelber1@swarthmore.edu"
] | kgelber1@swarthmore.edu |
12ef2b38944a242344c1c84f46b2cbb486d937cf | b8dc89452b3c42a38e027d0344ba13f2850563cd | /Models/model-NN-reg-all.py | d2916e4d4428d977520fc8a30f3bd15445dd3786 | [] | no_license | sn06/Stock_Efficiency_Fundamental | c925d2bd55ad0fa8ca1fe16d62490052e7cc4c29 | 1e1abba14a1fc97ab3263c9abe5fe01520c1fa50 | refs/heads/master | 2020-03-29T13:45:02.453979 | 2018-09-23T12:03:00 | 2018-09-23T12:03:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,785 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jun 05 19:56:14 2018
@author: sn06
"""
import numpy as np
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
from datetime import date
from sklearn import preprocessing
from sklearn.metrics import r2_score
from keras.models import Sequentia... | [
"noreply@github.com"
] | sn06.noreply@github.com |
95f80931ce3e1950630bdcb0e3f55094940a17ea | 772c8cba17bcb20e8b143c17f7858e028c6b7890 | /backend/src/lambdas/http/getPlayer.py | 9f9b178e38fb0d372a92c2c7ade4889b9b99db03 | [] | no_license | carlos4ndre/xadrez | 9ff22ca09639b73d15e4358f8403e17a4867c828 | 853a8c629715b9f3280ca9283e95eceebe7ceef4 | refs/heads/master | 2023-02-16T11:41:03.308833 | 2021-05-08T19:29:28 | 2021-05-08T21:41:44 | 222,162,846 | 2 | 0 | null | 2023-01-24T01:00:51 | 2019-11-16T21:42:10 | TypeScript | UTF-8 | Python | false | false | 751 | py | import logging
from src.helpers.aws import create_aws_lambda_response
from src.bussiness_logic.player import get_player
logger = logging.getLogger(__name__)
def handler(event, context):
logger.info("Parse event")
data, err = parse_event(event)
if err:
return create_aws_lambda_response(500, err)
... | [
"carlos.ulrich@gmail.com"
] | carlos.ulrich@gmail.com |
039c153355a6c5ae71a3ea378489b51370de832a | be474fede1befd306ff40b99b0941832ef358b06 | /setup.py | 738abc2333b1b8488c194521c75e09b4102d1cdd | [] | no_license | tomcusack1/peer | 0ce26ac30212181e035a3620747fb10757907149 | 39ade61afb22756d337aecc7d3619f012543634f | refs/heads/develop | 2020-03-29T14:00:15.188911 | 2018-09-23T15:15:44 | 2018-09-23T15:15:44 | 149,993,884 | 2 | 0 | null | 2018-09-23T15:16:27 | 2018-09-23T14:48:55 | Python | UTF-8 | Python | false | false | 212 | py | from setuptools import setup
setup(
name='peer',
version='0.0.1',
description='',
author='Tom Cusack',
author_email='tom@cusack-huang.com',
packages=['peer'],
install_requires=[],
)
| [
"tom@tom-cusack.com"
] | tom@tom-cusack.com |
d261e5485de52a7c82d1b984a5572442fe270d2e | 1186a5add1e1d5688f2de34980fbb8bfbb0f07a7 | /onlineshop/onlineshop/urls.py | 45075ce5732e4a6c8afca7909c96634e71e7fd16 | [] | no_license | wzj1143/Einkaufsseit | 9c381ba0ca04552f16a426c688f1207750b6c8d3 | a2c528881f943ae510033ea3b46509704ec718ba | refs/heads/master | 2023-02-28T18:10:52.574042 | 2021-02-10T08:00:45 | 2021-02-10T08:00:45 | 314,256,996 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,455 | py | """onlineshop URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-ba... | [
"zwang@campus.uni-paderborn.de"
] | zwang@campus.uni-paderborn.de |
895a6ff291a61e66f00fd311bf599cf8fdb80ba1 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/list_workspaceusers_request.py | 03fe5cb9797831a7a33f080679f078e6c5bedd22 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 4,633 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ListWorkspaceusersRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is at... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
a35ab8bb6703f50081e6b72e486a8a6e088e5397 | 08dec3427326ce10e694aa7f27ac4a3a47c1a7b4 | /zulip_bots/zulip_bots/bots/merels/test/test_interface.py | a8e571d64c87fe42d4a5cf3fc2dd8085ff8c9bd0 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | Soumi7/python-zulip-api | 967b289eb635a5a8c339d9a9109de8200ca3e126 | dffc09fe9f60f7dac277bb65e476138fa1d620fe | refs/heads/master | 2023-04-07T23:59:54.655885 | 2020-04-27T07:35:44 | 2020-04-27T07:35:44 | 257,053,623 | 1 | 0 | Apache-2.0 | 2023-04-04T00:25:13 | 2020-04-19T16:55:24 | Python | UTF-8 | Python | false | false | 3,180 | py | import unittest
from libraries import interface
class BoardLayoutTest(unittest.TestCase):
def test_empty_layout_arrangement(self):
grid = interface.construct_grid("NNNNNNNNNNNNNNNNNNNNNNNN")
self.assertEqual(interface.graph_grid(grid), '''` 0 1 2 3 4 5 6
0 [ ]---... | [
"robhoenig@gmail.com"
] | robhoenig@gmail.com |
fb387c1fd927c61dc479cb1b8fee7dd4729268d6 | a73635203629fef49ac22b8c9fabb2e6728f502f | /connect.py | f16adb45cfec42e0ccbdca8768b8890dfc93c606 | [] | no_license | megavas/PersonalAutoparking | 82cab852b459f3f2e916006b760872317fe933f8 | d7c499d9f14424748d2b8dfc20ea5708301e14e7 | refs/heads/main | 2023-08-24T20:49:33.475324 | 2021-09-23T04:59:25 | 2021-09-23T04:59:25 | 409,298,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 936 | py | import psycopg2
from config import config
def connect(query):
""" Connect to the PostgreSQL database server """
conn = None
try:
# read connection parameters
params = config()
# connect to the PostgreSQL server
print('Connecting to the PostgreSQL database...')
conn... | [
"megavas@outlook.com"
] | megavas@outlook.com |
a80bce838dadbf03c0eef1018dc976737190f523 | af5e059dfab3b81ba349f7d2c1206ef3f2dba88f | /Solutions/Objective 03 - Portfolio grade problem.py | 3a01bf12f3a834b224ae81024e2969543df84686 | [] | no_license | Wither-Bane/intro-to-python | e5518f341589a58a8a54f115888d68af2db069cc | 61233f32bd7edca2d23db76f9cdaaa4c8c980983 | refs/heads/master | 2022-12-31T04:18:53.758872 | 2020-10-24T19:24:53 | 2020-10-24T19:24:53 | 297,266,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,516 | py | #Objective 4 - Portfolio grade challenge
analysis = int(input("Enter the analysis mark:"))
design = int(input("Enter the design mark:"))
implementation = int(input("Enter the implementation mark:"))
evaluation = int(input("Enter the evaluation mark:"))
total = analysis + design + implementation + evaluation
if total... | [
"dipo106@gmail.com"
] | dipo106@gmail.com |
b5bfc185e3c0e76fb33a254d444155ab0931f2c8 | f723b36a64d7c5ccd2a4937d02f05279fc9e907c | /calls/urls.py | 48317b35fa4b2d6bacf2ee72c3c3734774b5c08e | [] | no_license | DmitrySham/grand-django-site | 92259098d209954ee5f5c994989f6c1f7c9826f4 | e65988c441e9fb37fd15126d28301c47643b501d | refs/heads/master | 2023-01-22T08:37:08.921212 | 2023-01-13T15:05:30 | 2023-01-13T15:05:30 | 184,014,992 | 0 | 0 | null | 2022-12-04T20:45:03 | 2019-04-29T06:44:37 | JavaScript | UTF-8 | Python | false | false | 145 | py | from django.urls import path
from calls import views
urlpatterns = [
path('ajax/call/request/', views.call_request, name='calls_request')
]
| [
"tggrmi@gmail.com"
] | tggrmi@gmail.com |
13a72a827d1ac449f36e7b71d4401cc38f34e16e | 2e4c0c2dfc17156b293dd70fe03587351e6b7da9 | /src/execute_setting.py | cbb33da75b01a41cf89d1eef888465202249c3c2 | [] | no_license | MarCheMath/thesis-code | 7f76f410976396daeeba75e1fe53c37407965a77 | 0fb2883dcdf2ae1b92f180fb2eb13311e1df8255 | refs/heads/master | 2020-09-17T08:21:12.812587 | 2019-11-25T21:35:16 | 2019-11-25T21:35:16 | 224,050,315 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,140 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
import os
from argparse import ArgumentParser
import time
import itertools
def main(hparams):
base = [
" --num-input-images 64",
" --batch-size 64",
" --mloss1_weight 0.0",
" --mloss2_weight 1.0",
" --dloss1_weight 0",
" --dloss2_weight 0.0",
... | [
"50325379+MarCheMath@users.noreply.github.com"
] | 50325379+MarCheMath@users.noreply.github.com |
00fbc42cca0c3841578397974668d121651b7c39 | 4a1a33ad18d87dde4b13261e2cda21cdda959ee7 | /app/api/wrappers/post.py | 0956130b554c3cb0eb10b644236851be27ebf977 | [] | no_license | lazarusvc/microservices_template | 8fb8e807576f3a72df3d11cdffc38d95eabbed5a | d50a6e9bee678ad84aff68fb0ac7308ad931367d | refs/heads/master | 2023-04-28T00:59:45.867699 | 2017-07-31T17:52:18 | 2017-07-31T17:52:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | from flask import session
from app import db
from app.models import Api
#************************
#=> POST manager
class PostManager(object):
def __init__(self):
pass
@staticmethod
def post_req(request):
data = request.args.get('data')
meta_data = request.args.get('meta_data')
... | [
"austin.lazarus@gmail.com"
] | austin.lazarus@gmail.com |
018026601e8c6997eb1a8665d1c7bc1d5937f020 | ee02370d1870bd5b19a1c96ef9fd73c563d2a003 | /run_coupled_fault_SP.py | 79d563abc23c4200b17324281b0e12502ed3a809 | [] | no_license | SiccarPoint/stochastic-delta | df956c8a7af7324a9d053939d2b36bfda22f6601 | 68b8d1667fb3e333e8a6364a27d6d52c96c44e99 | refs/heads/master | 2021-01-19T11:02:11.786856 | 2018-10-25T09:31:07 | 2018-10-25T09:31:07 | 41,691,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,953 | py | from delta_obj2 import delta
import numpy as np
from matplotlib.pyplot import figure, plot, show, legend
import matplotlib.pyplot as plt
from matplotlib import cm
from copy import deepcopy
import cPickle as pickle
# import the real params
# all are in standard units of meters; fluxes in m**3
num_pres_strata = 1600
ch... | [
"daniel@dhmac.geol.cf.ac.uk"
] | daniel@dhmac.geol.cf.ac.uk |
059a6e527608807195b529860ad584d8239d5b7c | 6d3720fdd723710a4e2f0c0f41a8329b959a3be4 | /database/subject.py | 34ea275614e3a59e864ca4b5f55119a266a48f43 | [] | no_license | lazyplatypus/natcar-server | f5b86675ffc118aae1ff9f002d8f1d22c02fee40 | 31c824c3466d8605c0c335db913448e4e84c4a4e | refs/heads/master | 2020-04-21T23:32:47.871440 | 2019-02-10T08:01:14 | 2019-02-10T08:01:14 | 169,950,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,901 | py | # TODO all saves should go to ES
import re
import uuid
from schemas.subject import schema as subject_schema
from database.util import deliver_fields
from database.entity_base import save_entity_to_es
from database.util import insert_row, save_row, get_row, list_rows
from modules.util import convert_slug_to_uuid, conv... | [
"dgkim@ucdavis.edu"
] | dgkim@ucdavis.edu |
86b082d38e2f308f0a9eb3f9b74eb82523828273 | b478d1e63cce432b6fd3692c0aa7a84f411ae9dc | /meta_py3/main.py | b2fcdb9da12e44315b927e032eb6c0442104b5d4 | [] | no_license | yiqing95/py_study | 8d414aa00b4ac31070fe5667a98815980eee46d0 | 6ce6b46ad729a795bc9253d6339169e62ef47766 | refs/heads/master | 2016-09-06T17:45:26.081269 | 2015-01-12T15:22:29 | 2015-01-12T15:22:29 | 20,810,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | from meta_py3 import example2
__author__ = 'yiqing'
from meta_py3.example import *
from meta_py3.helper import printHr
p = Point(3,4)
print(p.x)
printHr()
obj = example2.MyClass(3)
print(obj.x)
| [
"yiqing-95@qq.com"
] | yiqing-95@qq.com |
6dd32ff3379c39cecf5e238ed5eb616c60e199dd | 3f574dc4937965029c5b342849a71afe45e89e5d | /blog/migrations/0002_auto_20200911_1005.py | 18b15546d7373514a47ade34b9fb391720120443 | [] | no_license | geihar/mini_blog | a5fa326c513444d3788ee9c327d9faedcea72a4f | 2ae22f6765a20182565d5b66722ff311fe0242b0 | refs/heads/master | 2022-12-17T14:59:53.336269 | 2020-09-17T12:08:41 | 2020-09-17T12:08:41 | 294,717,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 789 | py | # Generated by Django 3.1.1 on 2020-09-11 10:05
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
("blog... | [
"l0635968488@gmail.com"
] | l0635968488@gmail.com |
bfb2219c3b7f01806926849541c2ebcaa6f0d79c | 9de5c748145962520a0180521acdec063e14f789 | /DJango-FLOR-CERDAN/Semana06/Caso Biblioteca/EliminarRegistrosEditorial.py | c3933a9ee57ab1746e70feaa68f3ebc12ad91afd | [] | no_license | CritianChipana/DJango- | fe83dd09b923be380906e74bc5d4db3940b18cfa | 930f74570e1a5e1f6f476c51a4fe56310d7a123c | refs/heads/master | 2023-05-29T03:54:26.690202 | 2021-01-14T05:10:09 | 2021-01-14T05:10:09 | 322,924,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | import sqlite3
conexion = sqlite3.connect("bdbiblioteca.db")
cursor = conexion.cursor()
consulta = """
DELETE FROM EDITORIAL
WHERE
IDEDITORIAL = 5
"""
cursor = conexion.cursor()
cursor.execute(consulta)
conexion.commit()
conexion.close() | [
"cristianchipanahuaman@gmail.com"
] | cristianchipanahuaman@gmail.com |
47c04dbadee3061503e71a0c7e9a0557ba1e95e6 | 9495498e3275aef4de17963f679dab1ada3148a2 | /experiments/karla/diplomski-rad/blade/pb/datasets/n3-all/done-model-testing-4.py | 66098df78fd968879613bad54f51c5496e1962e8 | [
"MIT"
] | permissive | lvrcek/consensus-net | 131a4b378b8cc7704c033882560953442773fd74 | 560957f315751822e1ddf8c097eb7b712ceadff3 | refs/heads/master | 2020-04-13T02:09:00.435155 | 2018-12-17T18:53:43 | 2018-12-17T18:53:43 | 162,894,761 | 0 | 0 | MIT | 2018-12-23T13:50:29 | 2018-12-23T13:50:28 | null | UTF-8 | Python | false | false | 1,496 | py | from comet_ml import Experiment
experiment = Experiment(api_key="oda8KKpxlDgWmJG5KsYrrhmIV", project_name="consensusnet")
import numpy as np
from keras.models import Model
from keras.layers import Dense, Dropout, Activation, Flatten, BatchNormalization, Input
from keras.layers import Conv1D, MaxPooling1D, Conv2D, Max... | [
"juric.antonio@hotmail.com"
] | juric.antonio@hotmail.com |
17e37b200e4daabdb7bde731b5f7ece860ff30f5 | 9f440599da392a55d7d5b2b7ce571bc3f2dc881e | /rhea/cores/usbext/fpgalink/__init__.py | 40502351eaf29688fab9e182e67fd1cd214d5167 | [
"MIT"
] | permissive | zignig/rhea | 713559f688f85e1304ab43c2b871553da3bf01ae | e0d04ff4fcbd57dfeb6f84fa8f87d6b03caee590 | refs/heads/master | 2020-04-06T06:53:33.541215 | 2016-03-15T12:45:23 | 2016-03-15T12:45:23 | 53,943,632 | 1 | 0 | null | 2016-03-15T12:42:06 | 2016-03-15T12:42:06 | null | UTF-8 | Python | false | false | 196 | py |
from __future__ import absolute_import
from . import _fpgalink_fx2 as fpgalink
from ._fpgalink_fx2 import get_interfaces
from ._fpgalink_fx2 import fpgalink_fx2
from ._fl_convert import convert
| [
"chris.felton@gmail.com"
] | chris.felton@gmail.com |
fd214189a62abb5078e581b8a3d09b1ae4134238 | b7f6108f9105a169250c824e6db407f6f45b5aa9 | /Fizzbuzz.py | ef1b851a7b813a65fd28cb4b08e26cda02109e0f | [] | no_license | FlowerbeanAnsh/python_problems_2 | fa478a6443a0e25fee4f30fc3b761abc22304e14 | e5ccb94034f88215462711bfe42f8a3bbf124c08 | refs/heads/master | 2023-02-10T11:07:01.984622 | 2021-01-07T05:07:42 | 2021-01-07T05:07:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | def fizzbuzz(n):
if n % 3 == 0 and n % 5 == 0:
return 'FizzBuzz'
elif n % 3 == 0:
return 'Fizz'
elif n % 5 == 0:
return 'Buzz'
else:
return str(n)
n=int(input("enter number"))
print((fizzbuzz(n) for n in range(1, 15))
| [
"60190254+anshsaxena5621@users.noreply.github.com"
] | 60190254+anshsaxena5621@users.noreply.github.com |
f911e8ca80e57210a5d75e86e8fabdcae495d772 | 1ee5e693c0e5054682d625d1cfd68b26bb0ae3a6 | /test_sql1.py | 4b41cf49230d46006e79070599a5ec68a18300c4 | [] | no_license | Genskill2/03-bootcamp-sql-Praveen45-max | 792e2ce711523a0e13d95cbf871159a9b6efa818 | 2fc91ef6a597ef30b87f4e49ceffbf569aec781a | refs/heads/master | 2023-06-01T16:36:28.672536 | 2021-06-20T11:14:21 | 2021-06-20T11:14:21 | 377,354,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,470 | py | import sqlite3
import os.path
import pytest
@pytest.fixture(scope="package")
def db():
if os.path.exists("db.sqlite"):
os.unlink("db.sqlite")
f = sqlite3.connect("db.sqlite")
c = f.cursor()
c.execute("PRAGMA foreign_keys = ON;")
c.close()
return f
def run_query(dbconn, statement):
... | [
"noreply@github.com"
] | Genskill2.noreply@github.com |
09fdfef1f34be76e6985aa38562d9fca58cd5f9d | 9cfc9f2b1401f172fd67a136cee2f6a47de397f9 | /python_oop/player.py | c2385cc357290dd8953dad831d43cc3cae6858f1 | [] | no_license | wathiwut193/project_code_backup- | 523668080ee8c175b584943cfc7fd61445da4e63 | b4ba2e73ffb3e463fcf4a8a42c94037df9785530 | refs/heads/master | 2020-05-15T11:27:27.087387 | 2019-04-19T08:13:34 | 2019-04-19T08:13:34 | 182,227,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | class Player:
def __init__(self):
self.fname = ""
self.lname = ""
self.number = ""
class Player2:
def __init__(self, fname, lname, number):
self.fname = fname
self.lname = lname
self.number = number
if __name__ == '__main__':
p1 = Player()
p1.fname = "... | [
"wathiwut193@gmail.com"
] | wathiwut193@gmail.com |
4781a8d60651487049551717065223d80d10326a | 3b2e96799191cfe33a9a26415f81b750098a188f | /recipe/app/management/commands/wait_for_db.py | a846e1e393454f8db81ffab96ed09371398170f6 | [
"MIT"
] | permissive | DeMT/django-rest-API-recipe-project | 75c1e226c1e3acbdbf88c479ee583ae66b402a2f | f19c4a6a124927780ae5029a6fdbd96325d2567c | refs/heads/master | 2020-08-05T21:03:01.547847 | 2019-12-29T14:17:31 | 2019-12-29T14:17:31 | 212,709,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | import time
from django.db import connections
from django.db.utils import OperationalError
from django.core.management.base import BaseCommand
class Command(BaseCommand):
""" Django command to pause excution until database is available."""
def handle(self, *args, **options):
self.stdout.write('waitin... | [
"gn00468461@gmail.com"
] | gn00468461@gmail.com |
383b72a994b731a49eb57b0fb8c8e8ce459d58b8 | 01187998930aa81bb15729cc7883a4a55cf64bce | /article/views.py | 873e860f24c208a4bb964130b908877fe6daf287 | [] | no_license | todokku/django_blog_heroku | 1c8af4a0f678c0a182423ca6e8c0f2a2632e996d | d16c90908ec2cb39ae4699641303bfef9116775e | refs/heads/master | 2022-06-10T12:19:11.201293 | 2020-05-10T07:38:37 | 2020-05-10T07:38:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,221 | py | import markdown
from markdown.extensions.toc import TocExtension
from django.shortcuts import render
from django.views.generic.base import View
from django.utils.text import slugify
from .models import Post, Category, Tag
# Create your views here.
class IndexView(View):
"""
首页视图
"""
def get(self, re... | [
"893821635@qq.com"
] | 893821635@qq.com |
cda9bea59192db09772dbd4a7ed517e620d10c63 | 54b562f272e6d9759256f1f0d5219940aff0d6e3 | /modules/Message.py | 9141a1b0f8c9f81a51dc2406efc71ea481689c45 | [
"Apache-2.0"
] | permissive | duan602728596/48Live | e5c93248dd8de40f7c057e1c05bf348289438da4 | ccf68a05bf504612132c16d741d901a013a480cb | refs/heads/master | 2021-09-10T14:46:47.912114 | 2018-03-28T01:57:01 | 2018-03-28T01:57:11 | 86,576,208 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | """
提示框类
warn: 警告
"""
from PyQt5 import QtWidgets
class Message:
def __init__(self):
self.messageBox = QtWidgets.QMessageBox
# 警告框
def warn(self, text):
msg = self.messageBox(self.messageBox.Warning, u'警告', text)
msg.exec_()
message = Message() | [
"duanhaochen@126.com"
] | duanhaochen@126.com |
8ca2092b35c528787dbaeb02d872ef9ddec3146c | 04ba0f47c055a6839b12e62a6c50e885d041124a | /internshipcontract/urls.py | a4272dcf147a34c4b5afc510999f4871453c8327 | [] | no_license | Anurodhyadav/contractofreduct | cd7aa760659064eef5cf2565c361cdad78588f05 | 769176017f44b29ddf94847841e3174342f5b5dd | refs/heads/master | 2022-11-04T14:44:20.258156 | 2020-06-18T05:41:20 | 2020-06-18T05:41:20 | 273,150,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,034 | py | """internshipcontract URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
... | [
"anurodhyadav072@gmail.com"
] | anurodhyadav072@gmail.com |
14f72ef3edf0e3c9535949575581519b8e43e50c | 31b7c7e67095ca779dbf26d9dc5a26d4fd57b054 | /JOHNY.py | 1a9fe3b34b920231de70528e41b4c817ddc77a96 | [] | no_license | ayusinghi96/CodeChefPrograms | 938d2aafb4c2b6f72d47a1318703f314c2e9d00d | 471dc369bb59ea6a8d2bc4c1931a3166a3100a80 | refs/heads/master | 2020-03-16T08:17:28.332269 | 2018-05-27T18:41:58 | 2018-05-27T18:41:58 | 132,593,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | t = int(input())
for i in range(t):
n = int(input())
a = list(map(int,input().split()))
k = int(input())
store = a[k-1]
a.sort()
for i in range(n):
if a[i] == store:
print(i+1)
| [
"ayusinghi96@gmail.com"
] | ayusinghi96@gmail.com |
63a704c73f1c4393d8e54d3e901f86d996919a73 | 565875f01529123b23f4f80fc3368542f1096b99 | /crawler.py | c0ee88df6d2a78770c5a85db52c1e6753f3e6078 | [] | no_license | infinitewhim/python_collection | 3a2c9062b9c703380aa5b38c7b85d91c9915f226 | 71b7fc27adb4d2fcccdc66887270848d8630add2 | refs/heads/master | 2021-05-05T09:42:30.737764 | 2018-04-19T15:48:38 | 2018-04-19T15:48:38 | 103,911,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | import requests
import os
from bs4 import BeautifulSoup
url = 'https://www.irishtimes.com/'
source = requests.get(url).text
soup = BeautifulSoup(source,'lxml')
f = open('/home/vagrant/Desktop/python/news.txt', 'a')
for link in soup.findAll('span',class_='h2'):
#strip() can remove whitespace from the beginning and ... | [
"noreply@github.com"
] | infinitewhim.noreply@github.com |
da05e683451316dbe9fccd0198ed9243a80cc710 | 831f8e39c95d706fa440054d53ed61aa8f0e435c | /portfolio/settings.py | 39801b7a1ed2c84b40bcdc61b4aa010db759badc | [] | no_license | x14119641/portfolio_project | 274d56503cea8ed3863bd805b85f86fd5cf5c43c | f114ecd7f0a25307b3289a6bcd68b954c50558dd | refs/heads/master | 2020-04-07T00:11:18.564673 | 2018-11-19T18:22:58 | 2018-11-19T18:22:58 | 157,894,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,436 | py | """
Django settings for portfolio project.
Generated by 'django-admin startproject' using Django 2.1.3.
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
... | [
"dgilromero@bloomberg.net"
] | dgilromero@bloomberg.net |
c084c779769711bfd5a13c5d81c33ad53c92a8e4 | 3357cf3ac92b582aeacab694b325110ddffcc2fe | /app.py | 28ffd59854dddd72d1846ed3d8c3a49ea56c1391 | [] | no_license | reficashabong/appforheroku | eef687becef3a7cbb6b9c7ce8b40fd4eb9b93969 | 4aeeb517f2bb63a2bb2794a0caa3fbbdfd76137f | refs/heads/master | 2022-12-16T22:56:31.738859 | 2020-09-05T08:31:13 | 2020-09-05T08:31:13 | 293,031,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 993 | py | import pandas as pd
import numpy as np
from flask import Flask, request, render_template
import pickle
app = Flask(__name__)
model = pickle.load(open('model.pkl','rb'))
@app.route('/')
def home():
return render_template('form.html')
@app.route('/predict',methods=['POST','GET'])
def predict():
input_features... | [
"noreply@github.com"
] | reficashabong.noreply@github.com |
7f2c7d176ea3859cfed71a6a2c41bf13a5fd8d3c | 61ac1b89ad090a41d41be1de178a26ae89711dd2 | /solutions/985.py | 5c16323850249b54e3e27b5d3cf1406ad6b81290 | [] | no_license | zszzlmt/leetcode | ea0bdc24248075e35094d036520f729e699f7d7e | daee4df1850740438e3860b993aa32b45c03812e | refs/heads/master | 2023-07-16T18:55:21.418378 | 2021-05-10T07:24:05 | 2021-05-10T07:24:05 | 119,399,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,083 | py | class Solution:
def sumEvenAfterQueries(self, A: List[int], queries: List[List[int]]) -> List[int]:
def get_sum(A):
result = 0
for value in A:
if abs(value) % 2 == 0:
result += value
return result
def is_even(num):
... | [
"zpu@pku.edu.cn"
] | zpu@pku.edu.cn |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.