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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3396d6c761448a379ff7daa72b1bf3da2deb0c49 | 00d7e9321d418a2d9a607fb9376b862119f2bd4e | /utils/appendix_figure_renderer.py | 3b234fb896d68ad1a3003e3c74ea40a594132ff7 | [
"MIT"
] | permissive | baluneboy/pims | 92b9b1f64ed658867186e44b92526867696e1923 | 5a07e02588b1b7c8ebf7458b10e81b8ecf84ad13 | refs/heads/master | 2021-11-16T01:55:39.223910 | 2021-08-13T15:19:48 | 2021-08-13T15:19:48 | 33,029,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,405 | py | #!/usr/bin/env python
import os
from collections import OrderedDict
from pims.files.pdfs.pdfjam import PdfjamCommand
from pims.files.pdfs.pdftk import convert_odt2pdf, PdftkCommand
from pims.files.pdfs.pdfjam import CpdfScalePageCommand, CpdfStampCommand
from pims.files.utils import listdir_filename_pattern
from appy.... | [
"silversnoopy2002@gmail.com"
] | silversnoopy2002@gmail.com |
96f235f5684df134779fb924924785ed85bf2164 | e7b30d912e69f7b1d6a6f774ae4573c06859af2d | /Htube/wsgi.py | a2a9de939e8a4b8789ff4e74879fef8dc28be112 | [] | no_license | haiderAli62/Htube-video-streaming-django | ff4f2eb3b1a204caa5920f741f8538a90f201f88 | 3400ddb9ae7689a329f2932c20e25f051ddc6be2 | refs/heads/master | 2020-06-15T05:09:42.340309 | 2019-07-04T09:59:24 | 2019-07-04T09:59:24 | 195,211,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | """
WSGI config for Htube project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('D... | [
"noreply@github.com"
] | haiderAli62.noreply@github.com |
ac914612ce2117c1765de9ca6321750ef3079aef | 838b09e0e25280cccf754e788af8febbfb1275f7 | /app/__init__.py | f460a89951f37c5aa6fabc5ec077d2699df1e3c1 | [] | no_license | Pincenti/fakebook-march | acf1dcb0cb16770353026f3e7f112709cda8bc5e | 46be080bcc26ea661817bcb295804ff443a02b6d | refs/heads/main | 2023-04-09T05:06:16.000529 | 2021-04-23T19:02:10 | 2021-04-23T19:02:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 75 | py | from flask import Flask
app = Flask(__name__)
from .import routes, models | [
"derekh@codingtemple.com"
] | derekh@codingtemple.com |
93fcbf474fda2d35b532f00d1d4261cb7d961531 | 145c9faee52e69f1f7b1cf6b9ac84facf7819911 | /userSorter/user_file_builder.py | faa2b4a28e1e66eb4218d67769ca900d976cb69a | [] | no_license | zafodB/HealthData | 63ddde8efa6e6ceb2f924502b6eb714381d4e935 | 2359b9997816c6b5ae39879641e99eb0c09384be | refs/heads/master | 2022-04-04T18:05:43.394547 | 2020-01-29T20:07:54 | 2020-01-29T20:07:54 | 201,798,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,096 | py | '''
Structure:
{
"username":"someone",
"url":"123465",
"status":"very eHealthy"
"weburl": "http://..."
"posts":{
"342823":{
"date":"23-11-2011",
"title":"pregnancy problem",
"text":"this is a sample post",
"category":"pregnancy",
"status":"newPost"
... | [
"filiplama@gmail.com"
] | filiplama@gmail.com |
bcf3423ae08422d25b002fef9f89225e22e04cd2 | f1cf923e6e819edf2444d3ae74e1f400415075ab | /dftbpp.py | 5ee69ec3b24091c6bc1b8b5edc70800d173cfd54 | [] | no_license | fbonafe/realtimedftb | f62b66883100f2161bb3aace70ef8edfb23d2c21 | 7e186bd03ac058751ec85799a94c1f04f5c62841 | refs/heads/master | 2020-03-25T00:33:31.114419 | 2018-08-01T18:31:11 | 2018-08-01T18:31:11 | 143,192,312 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,583 | py | import numpy as np
import os
class mycoords:
""" Object to accumulate coordinates, each in an (natoms x nsteps) array"""
def __init__(self, x, y, z, name, time=None, vels=None):
self.name = name
self.x = x
self.y = y
self.z = z
self.nframes = x.shape[1]
self.nato... | [
"fbonafe@unc.edu.ar"
] | fbonafe@unc.edu.ar |
c7a04b037644a21f6b2eb0ec0be6fbe5139ab9fe | d029f315bc22fd48566df819ec8f5e28b2c11cbc | /wave_app/uploader/urls.py | 59824ba2cbae2ad55ab4547d4731a1136450c775 | [] | no_license | Onjrew/se-challenge | 35a9fbc7a05d39c9a2460a00bc32047beed9c420 | c18e46a7198511c9bc1ddc40c9b80e772bd15287 | refs/heads/master | 2020-06-12T16:03:03.294338 | 2016-12-07T03:31:48 | 2016-12-07T03:31:48 | 75,795,894 | 0 | 0 | null | 2016-12-07T03:32:45 | 2016-12-07T03:32:45 | null | UTF-8 | Python | false | false | 299 | py | from django.conf.urls import url
from . import views
app_name = 'uploader'
urlpatterns = [
url(r'^$', views.index, name='index'),
url(r'^upload', views.upload, name='upload'),
url(r'^totals', views.totals, name='totals'),
url(r'^parse_csv', views.parse_csv, name='parse_csv'),
]
| [
"andrew.scott.ferguson@gmail.com"
] | andrew.scott.ferguson@gmail.com |
03b2064a1b169b166d88744f2437bf69ef5cbf8d | c7e37db2fb70358d8ad178efa0a2862161ef1af4 | /backend/migrations/versions/522c2917c182_.py | fa4ddf2deb33dd7ea6d5cc72a5992aaabd1e84c4 | [
"MIT"
] | permissive | JohnDamilola/URL-Shortener-2.0 | 9ef2b5af096b842f0d1763a143bf840908c98c82 | 7413928b7de6acb0230c09e5d3eaa748ebb6287b | refs/heads/main | 2023-04-14T00:09:41.708237 | 2022-12-06T03:04:01 | 2022-12-06T03:04:01 | 561,389,222 | 1 | 1 | MIT | 2022-12-04T20:09:51 | 2022-11-03T15:29:17 | TypeScript | UTF-8 | Python | false | false | 1,865 | py | """empty message
Revision ID: 522c2917c182
Revises: ca5354b4cc9e
Create Date: 2022-11-23 12:52:31.176215
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
revision = '522c2917c182'
down_revision = 'ca5354b4cc9e'
branch_labels = None... | [
"johndamilola03@gmail.com"
] | johndamilola03@gmail.com |
23946605d8fdc78913a7ec206ccf8d74fde4c824 | c9ce0cf9c193ebe35c31b39bba11d698a950bbf1 | /nico/test_nico.py | 384754e971255ba9dcd2e6bbf432961aff323068 | [] | no_license | KhlopotovAI/codewars-py | 93f89e3f62edd92acf76faa7ba212029206cc4f6 | 16a1eee25f35f7ccaead595e011963f0911dda4c | refs/heads/master | 2020-04-26T04:21:32.730010 | 2019-07-13T07:17:29 | 2019-07-13T07:17:29 | 173,299,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | from unittest import TestCase
from .kata import nico
class TestNico(TestCase):
def test_nico(self):
self.assertEqual("cseerntiofarmit on ", nico("crazy", "secretinformation"))
self.assertEqual("abcd ", nico("abc", "abcd"))
self.assertEqual("2143658709", nico("ba", "1234567890"))
... | [
"akhlopotov@list.ru"
] | akhlopotov@list.ru |
b2a671dfca5e7fc447b993c10a529875dc54603f | c7061fb106b801c12fb40ff331d927a5bb24da80 | /BasicExerciseAndKnowledge/w3cschool/n16_format_datetime.py | b0f4e62a46fdd8c480a544be789ecdafb00a1d3a | [
"MIT"
] | permissive | Jonathan1214/learn-python | 34e6b5612beeb1a46b5964b0a4e306656355fe84 | 19d0299b30e953069f19402bff5c464c4d5580be | refs/heads/master | 2020-03-27T09:03:16.785034 | 2018-08-31T02:48:34 | 2018-08-31T02:48:34 | 146,310,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | #coding:utf-8
# 题目:输出指定格式的日期
import time
import datetime
# 目的在于熟悉这个模块
print time.ctime() # localtime
print time.asctime(time.localtime())
print time.asctime(time.gmtime()) # gmt
print datetime.datetime(2018, 8, 12)
# print datetime.tzinfo
print datetime.date.today()
print datetime.date.fromtime... | [
"jonathan1214@foxmail.com"
] | jonathan1214@foxmail.com |
86cf72e4ffc437f064a8671c622efbf1c3f9babd | 5c34abe10630b23da8ba7d1cbce38bda53a4b6fa | /RootIo/SConscript | b7f1d62057e6edcdd59cf22dde00c661fb1f03ec | [] | no_license | fermi-lat/GlastRelease-scons-old | cde76202f706b1c8edbf47b52ff46fe6204ee608 | 95f1daa22299272314025a350f0c6ef66eceda08 | refs/heads/master | 2021-07-23T02:41:48.198247 | 2017-05-09T17:27:58 | 2017-05-09T17:27:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,046 | # -*- python -*-
# $Header$
# Authors: Heather Kelly <heather@milkyway.gsfc.nasa.gov>, David Chamont <chamont@poly.in2p3.fr>
# Version: RootIo-26-01-03
Import('baseEnv')
Import('listFiles')
Import('packages')
progEnv = baseEnv.Clone()
libEnv = baseEnv.Clone()
libEnv.Tool('addLinkDeps', package='RootIo', toBuild='comp... | [
""
] | ||
68b03c73feb62075825cdf3e27d8073937e5af7c | 79ecfdc98e9d44cf9c7d698f057a66f2c2cad2f7 | /main.py | 8e13e343f031c4e5d9029b68c43e901c06e96f4b | [] | no_license | bohunicka14/Automorphism-and-symmetries | d099a5be4d8aa02ef2db3c2b5449dfd7baafe666 | c3307fe1db87f81026c6250c4988d93284939b8a | refs/heads/master | 2021-07-24T16:07:37.509945 | 2019-03-27T15:11:24 | 2019-03-27T15:11:24 | 174,871,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,678 | py |
class Node(object):
def __init__(self, value, children = []):
self.value = value
self.children = children
def __str__(self, level=0):
ret = "\t"*level+repr(self.value)+"\n"
for child in self.children:
ret += child.__str__(level+1)
return ret
def is_leaf... | [
"bohunicka.ingrid@gmail.com"
] | bohunicka.ingrid@gmail.com |
3d98ad2af60c8f5391c53f249b2be5d49e4a5712 | 28df46f33feb507577e41f1140334d27f14f510c | /forgerock-auth-filters/branches/1.3/forgerock-authn-filter/forgerock-jaspi-robot-tests/variables.py | 564207c3a023a5345207442a7d10072b5d4d1b10 | [] | no_license | deepakchanalia/forgerock-commons | 3dc5c0ac6c541ac2f5fbbe8fdf79b21e90bc8a5e | dd83127c17428e9397a568b3eaac46a72d1aa087 | refs/heads/master | 2021-01-11T21:00:12.193770 | 2015-07-23T22:46:14 | 2015-07-23T22:46:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,118 | py | ###########################
# MANDATORY CUSTOMISATION #
###########################
# location of JASPI runtime jar
JASPI_TEST_SERVER_WAR_PATH = '/Users/Phill/ForgeRockDev/tmp-old-repos/forgerock-commons-auth-filters-1.3.0/forgerock-commons-auth-filters-1.3.0/forgerock-authn-filter/forgerock-jaspi-test-server/target/j... | [
"phillcunnington@ca16bcf9-9eb2-46e4-97b8-9b07c30c95dc"
] | phillcunnington@ca16bcf9-9eb2-46e4-97b8-9b07c30c95dc |
08e5a9b538fd82c4fcfea17f6b179b383278f0a9 | 3499ea55947cb8d71202a1ea795af1480ed61f32 | /venv/Scripts/pip3.7-script.py | 17fc0769f266a67dd72333fd5491f6596b371936 | [] | no_license | qianhuideng/BankCard | 67ef424940f5f059cf2d0de41a2544cb84ac899a | 9b898b2cc1d71088ad1230ca8459a65cc3e78202 | refs/heads/master | 2020-12-04T08:53:31.917798 | 2020-10-10T02:23:23 | 2020-10-10T02:23:23 | 231,702,502 | 1 | 0 | null | null | null | null | WINDOWS-1256 | Python | false | false | 432 | py | #!C:\Users\22018\Desktop\deng\بي¼±\BankCard\venv\Scripts\python.exe -x
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.7'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '',... | [
"2201891435@qq.com"
] | 2201891435@qq.com |
b63d3a9b7793acce97e3ced2c4196729f5895884 | 22e2a4e9392f8a33d18823ef039220ffdb5856d4 | /basic/wordcount.py | 423ee85665a2f24565d5cb65ec9f8daccfa5a920 | [
"Apache-2.0"
] | permissive | inyoka/google-python-exercises | 176961a2b69132d068c2c1731101ed26b9bde98b | 466b532a13d4634144bcdce361b1619a50b0152e | refs/heads/master | 2021-08-24T13:21:01.286377 | 2017-11-21T08:09:09 | 2017-11-21T08:09:09 | 111,513,334 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,166 | py | #!/usr/bin/python -tt
# Copyright 2010 Google Inc.
# Licensed under the Apache License, Version 2.0
# http://www.apache.org/licenses/LICENSE-2.0
# Google's Python Class
# http://code.google.com/edu/languages/google-python-class/
"""Wordcount exercise
Google's Python class
The main() below is already defined and comp... | [
"simonmarkholland@gmail.com"
] | simonmarkholland@gmail.com |
377669007b7547803f582137ed3be4c23f4a71d3 | f7b1bd000d9483343f915f057ac8e36a2de78334 | /experiment-2/BiDirectionalLSTM.py | cc69df9abe5f2ea80a07b3795efeb7b9a28f60fe | [] | no_license | spencergritton/Time-Series-Predictions | 511ded04f88e296eb4d30b98f58ac29c9d7e4668 | 76dcc7c61cd61b7c231796abee6ea5b3c4f870d8 | refs/heads/master | 2021-09-28T06:01:57.439727 | 2020-05-13T04:07:56 | 2020-05-13T04:07:56 | 251,520,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,916 | py | import os
import os.path
import numpy as np
from matplotlib import pyplot as plt
import matplotlib.patches as mpatches
import pickle
import time
import random
import pandas as pd
import tensorflow as tf
from tensorflow.keras.models import Sequential, Model
from tensorflow.keras.layers import LSTM, Dense, Bidirectional... | [
"SpencerGritton@Spencers-MBP.lan"
] | SpencerGritton@Spencers-MBP.lan |
49f0bec871aede1626dd9b0823050f24018b7413 | c703b8ac3b5545857f6c95efa2d61eaf7a664021 | /iPERCore/tools/human_digitalizer/deformers/__init__.py | e0d6c7b177b6946f7ec4806e5c0de347eece34a1 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | iPERDance/iPERCore | d29681d229b3098b3517b1abf4f7ea65f579de73 | fcf9a18ffd66bf3fdd3eea4153a3bc4785131848 | refs/heads/main | 2023-07-30T15:04:15.835396 | 2023-04-12T14:21:23 | 2023-04-12T14:21:23 | 313,664,064 | 2,520 | 339 | Apache-2.0 | 2023-05-12T03:26:52 | 2020-11-17T15:36:25 | Python | UTF-8 | Python | false | false | 1,117 | py | # Copyright (c) 2020-2021 impersonator.org authors (Wen Liu and Zhixin Piao). All rights reserved.
import torch
from .sil_deformer import SilhouetteDeformer
from .clothlinks_deformer import ClothSmplLinkDeformer
def run_sil2smpl_offsets(obs_sils, init_smpls, image_size, device=torch.device("cuda:0"),
... | [
"liuwen@shanghaitech.edu.cn"
] | liuwen@shanghaitech.edu.cn |
259e4f08f748d01aa87961620832501edc5c97b5 | 473c5ab1373df90836a5ce127f7c71209464603b | /Machine learning/Decision Tree/12.6.Bagging.py | 36cd3cff03c4749b86a734d97d994af5049f39d5 | [] | no_license | LN512/hello-liu | 025b7f47e8070fd0290b413a92721829fc30576d | 77c94870af9a0b66d6b0f179a61a760fe0985f6f | refs/heads/master | 2021-06-16T12:52:08.171134 | 2021-01-12T01:25:09 | 2021-01-12T01:25:09 | 89,233,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,988 | py | # /usr/bin/python
# -*- encoding:utf-8 -*-
import numpy as np
import matplotlib.pyplot as plt
import matplotlib as mpl
from sklearn.linear_model import RidgeCV
from sklearn.ensemble import BaggingRegressor
from sklearn.tree import DecisionTreeRegressor
from sklearn.pipeline import Pipeline
from sklearn.prepr... | [
"noreply@github.com"
] | LN512.noreply@github.com |
46f4c190ec307f397e873c46ac6abca7c00b6cba | e616ea35ead674ebb4e67cae54768aaaeb7d89c9 | /project/alma/disciplines/migrations/0001_initial.py | cd2f83a805a6561b60a83706fe7cba9576acbc37 | [] | no_license | VWApplications/VWAlmaAPI | 12bb1888533cf987739b0e069737afa6337141e1 | 3a8009b17518384c269dfee3c8fe44cbe2567cc0 | refs/heads/master | 2022-04-02T10:26:49.832202 | 2020-02-12T04:46:31 | 2020-02-12T04:46:31 | 161,098,215 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,490 | py | # Generated by Django 2.1.4 on 2019-09-21 20:17
from django.conf import settings
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import re
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(s... | [
"victorhad@gmail.com"
] | victorhad@gmail.com |
85baa7b9dbc58edbbe2aa259e9295d59cbff831e | c7d98beb689410cbba2c712a01c25863f267b5dc | /scripts/python/experiments/cocktail_party/postprocessing/results_summary_helpers.py | de9dd4f0f44dc5b0a55a88047c2b7567c76adab6 | [] | no_license | ml4ai/hamlet_experiment_py2 | 2b8d5b21e9c3c62bc17409da4971869aaf13f705 | 2d49f797d0ee0baa0447e0965468e7c15e796bb7 | refs/heads/master | 2021-03-27T11:41:43.494446 | 2017-11-06T14:31:18 | 2017-11-06T14:31:18 | 61,496,702 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,207 | py | __author__ = 'clayton'
import collections
import os
import sys
import prettytable
from utilities import util
def append_data_to_dict(d, data_set_name, data_set_LT, data_set_LT_num, value):
# print d
if data_set_name not in d:
d[data_set_name] = collections.OrderedDict()
d[data_set_name][dat... | [
"claytonm@email.arizona.edu"
] | claytonm@email.arizona.edu |
322b370d6d03d1c9bfafe46a87d7b9c8a55eaae6 | ce0f8956c4c308c67bd700d31fe8d5a17b16ac08 | /Python3/src/23 Miscellaneous Topics/PDF Manipulation/02_createWatermark.py | b055027b0fc51eb03efc7fb7e50e4af5484af4a7 | [] | no_license | seddon-software/python3 | 795ae8d22a172eea074b71d6cd49d79e388d8cc6 | d5e6db1509a25c1a3040d5ae82d757539a2ff730 | refs/heads/master | 2021-07-10T15:48:31.893757 | 2020-07-16T20:29:22 | 2020-07-16T20:29:22 | 175,872,757 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | from reportlab.pdfgen import canvas
point = 10
inch = 72
TEXT = "watermark"
def make_pdf_file(output_filename):
title = output_filename
h = 8.5 * inch
v = 11 * inch
grey = 0.9
c = canvas.Canvas(output_filename, pagesize=(h, v))
c.setStrokeColorRGB(0,0,0)
c.setFillColorRGB(grey, grey, grey... | [
"seddon-software@keme.co.uk"
] | seddon-software@keme.co.uk |
070cbe186db031be4d2e8086716849f26489871d | c3eaf59008279c05e4b7c72169ba3be762f5cce6 | /.venv/lib/python3.7/site-packages/sampledata/mixins/text_mixin.py | 739fae95a255c3a3fe117727dafae7e0ebb21a41 | [] | no_license | bogdanKukliuk/niceTest | b5e53fb9f313e3746dc93650eee9fb8caa74dd3d | 6c4ba8399959e6c0bca6b5a44a4914990f644773 | refs/heads/main | 2023-03-28T08:35:50.493460 | 2021-03-17T21:15:50 | 2021-03-17T21:15:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,537 | py | import random
import string
from ..exceptions import ParameterError
from sampledata import loremipsum
class TextMixin(object):
def word(self):
"""Random text with 1 word."""
return loremipsum.words(1, common=False)
def words(self, min_words=1, max_words=5):
"""Random text with 1 word... | [
"ec2-user@ip-172-31-20-100.us-east-2.compute.internal"
] | ec2-user@ip-172-31-20-100.us-east-2.compute.internal |
6117d1e662033b69ada4163ef95dad63dd91fca1 | 059c3bb5e0e8552f09768c3442b7af8614ca72f6 | /Lab7/CodingBat/Warmup-1/sum_double.py | 0bfcd81918208702cae91b103672123c1d6e5f38 | [] | no_license | tdinaraa/WebDev | 04ac88369cdf14e199841caf08a90723e73b4ccf | b99bdb93756b6a63b2835c0eee5b8d24309f7e00 | refs/heads/master | 2023-01-22T08:32:06.405670 | 2020-04-22T04:32:53 | 2020-04-22T04:32:53 | 240,984,305 | 0 | 0 | null | 2023-01-07T21:54:04 | 2020-02-16T23:41:57 | null | UTF-8 | Python | false | false | 90 | py | def sum_double(a, b):
sum = a + b
if a == b:
sum = sum * 2
return sum | [
"45028995+tdinaraa@users.noreply.github.com"
] | 45028995+tdinaraa@users.noreply.github.com |
dd1d15c77bbed78ecbb276388312c71711b89b76 | 20bb1ae805cd796a7c377e55966633441d1d9fd5 | /CodeForces/Problems/887B Cubes for Masha/cubes.py | 7e511bea378f4a51b6295ec6b24c35eb89ef6910 | [] | no_license | nathantheinventor/solved-problems | 1791c9588aefe2ebdc9293eb3d58317346d88e83 | c738e203fa77ae931b0ec613e5a00f9a8f7ff845 | refs/heads/master | 2022-10-27T08:58:23.860159 | 2022-10-13T20:18:43 | 2022-10-13T20:18:43 | 122,110,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 972 | py | cubes = [input().split() for _ in range(int(input()))]
def canMake(s):
if len(s) == 1:
for cube in cubes:
if s in cube:
return True
return False
elif len(s) == 2:
for i, cube1 in enumerate(cubes):
if s[0] in cube1:
for j, cube2 in ... | [
"nathantheinventor@gmail.com"
] | nathantheinventor@gmail.com |
a1f44f892947d2880844171869bd61cf7fc59208 | 50cc8ba16cf08ecd5850440d34058c1abb05157b | /xml-parser-barrapunto.py | dda7852af16da98776f48ee23a4223e73602785b | [] | no_license | imfar/X-Serv-XML-Barrapunto | 243c648662a879689445156de9ccb37a9beb5197 | d796ab9e0f7eb15a10893d9f991b9fafe457d303 | refs/heads/master | 2020-03-13T14:32:59.020377 | 2018-04-26T18:25:44 | 2018-04-26T18:25:44 | 131,160,679 | 0 | 0 | null | 2018-04-26T13:35:24 | 2018-04-26T13:35:23 | null | UTF-8 | Python | false | false | 1,691 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Simple XML parser for the RSS channel from BarraPunto
# Jesus M. Gonzalez-Barahona
# jgb @ gsyc.es
# TSAI and SAT subjects (Universidad Rey Juan Carlos)
# September 2009
#
# Just prints the news (and urls) in BarraPunto.com,
# after reading the corresponding RSS channel.
... | [
"far9508@gmail.com"
] | far9508@gmail.com |
8ac2ee19d3ffee62c28321a1125e6adee92ee362 | 6f15695787ca5fa482c0b95d79b24ad787e75e18 | /optimization.py | 153d71dde50e6e50f06c2ca4dfc4454db3df2e3e | [] | no_license | ingez/Programming_Collective_Intelligence | 04925e6776f3048ec8de452323dae4bf9ff2fd22 | d3062831a838f8546fb3ef05e5d051e5ccd3a480 | refs/heads/master | 2021-01-10T09:47:48.504799 | 2015-12-07T09:23:51 | 2015-12-07T09:23:51 | 44,954,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,168 | py | import time
import random
import math
people = [('Seymour', 'BOS'),
('Franny', 'DAL'),
('Zooey', 'CAK'),
('Walt', 'MIA'),
('Buddy', 'ORD'),
('Les', 'OMA')]
#LaFuradia AirPort in NewYork
destination = 'IGA'
flights = { }
for line in file('schedule.txt'):
origin, dest, depart, arrive, price = line.strip().... | [
"hznge@qq.com"
] | hznge@qq.com |
d2046b818de8b7a3c2f53e781304184aa893fe05 | 8f3d0b74f335d3238d4cbbb8c78d7c8c1ce83351 | /data/process_doc2vec.py | 27e632c8a900ae63c4e94352bbfa3ea32b903a1a | [
"Apache-2.0"
] | permissive | LauJames/key_phrase_extract | 6255e444a5260f4e356cd2d733a4dfde3ce759a9 | 5c93353e5f0d7641ce9390f4621b1cedc20220c3 | refs/heads/master | 2020-04-26T22:01:53.834838 | 2019-03-30T11:30:08 | 2019-03-30T11:30:08 | 173,859,205 | 1 | 1 | Apache-2.0 | 2019-03-13T01:54:54 | 2019-03-05T02:38:36 | Python | UTF-8 | Python | false | false | 17,074 | py | #! /user/bin/evn python
# -*- coding:utf8 -*-
import os
import re
import numpy as np
from numpy import linalg
import time, datetime
import gensim
import gensim.models as g
from ir.config import Config
from ir.search import Search
from data import data_IO, evaluate
# 使用es获取指定文档数量的topn篇相关文档(相似性计算文档)
def get_es_results(a... | [
"LauJames_work@163.com"
] | LauJames_work@163.com |
71bbfff45e7ae85a6330b07e06dfb3bae056f560 | c7e9ee96c2a890aff28a0370146007d1ee62150e | /moviesite/analysitcs/models.py | fccd0d685a19a5e498813f58dce46017ddcd0428 | [] | no_license | ishikawa407/Moviesite | 768761724b4519d4ee2d4990adbf92d646f76573 | 56d2f04be9dc8b2f828a1a2444866ee90d726ed2 | refs/heads/master | 2022-12-10T10:15:46.109292 | 2019-07-14T15:27:37 | 2019-07-14T15:27:37 | 196,013,042 | 0 | 0 | null | 2022-12-08T01:22:36 | 2019-07-09T13:20:52 | HTML | UTF-8 | Python | false | false | 683 | py | from django.db import models
class Rating(models.Model):
user_id = models.CharField(max_length=16)
movie_id = models.CharField(max_length=16)
rating = models.DecimalField(decimal_places=2, max_digits=4)
rating_timestamp = models.DateTimeField()
type = models.CharField(max_length=8, default='explic... | [
"shimeng407@gmail.com"
] | shimeng407@gmail.com |
f3413ede669ea92f934c279806562794428aa483 | f853f2ebabba72f4df8b6334e4f20d0517021440 | /rec_datasets.py | 6930f14e188a16717073fd9d576c7d5eadc447f7 | [] | no_license | gpapadop79/ml-recsys-thesis | 782e6bc6a6e0f486e20ae2c359bdfe12962c9c5c | 2d4da1e82ad757e9b915816c62f5e3a770713fee | refs/heads/master | 2021-05-24T01:24:26.851173 | 2020-12-17T09:24:55 | 2020-12-17T09:24:55 | 83,094,158 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,005 | py | # -*- coding: utf-8 -*-
"""
Created on Tue May 10 23:46:00 2016
@author: George
Reads a dataset by it's name
"""
import pandas as pd
import numpy as np
def load_dataset(data_path, dataset):
""" Reads a dataset """
if dataset == 'ml-100k':
folder = r'ml-100k\u.data'
separator = '\t'
... | [
"gpapadop2012-git@yahoo.gr"
] | gpapadop2012-git@yahoo.gr |
564e7ae6d142c78bcd5de942b9a6a69facdfb9d0 | 8e0cdf235cd82e422c62fee3e6d044e4f4ee7614 | /feedback/migrations/0004_remove_translation.py | f0d087297b5ccce43ab6fa90c2ef41ed6fab4ac5 | [
"BSD-3-Clause"
] | permissive | stevecassidy/signbank-feedback | 4ae1c58a95a27428d11ef4a692c52738e9a4fb6f | d4cb8a7f445ca42c90a69d565d43875f50251aa8 | refs/heads/master | 2022-01-14T05:07:31.474605 | 2022-01-12T04:18:42 | 2022-01-12T04:18:42 | 78,930,468 | 1 | 1 | null | 2017-01-14T09:10:43 | 2017-01-14T09:10:43 | null | UTF-8 | Python | false | false | 407 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2017-09-17 13:44
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('feedback', '0003_map_translation'),
]
operations = [
migrations.RemoveField(
... | [
"steve.cassidy@mq.edu.au"
] | steve.cassidy@mq.edu.au |
3b73a76ea650e307485d4229dbb14ddf636707d2 | 82916e7e06fd55a9326560de0aeb31e213a0172e | /ConversorTemCaFui.pyw | 782bf96c4e5768759d31e85897273f3997c1768b | [] | no_license | pazmanuelo/PyQt-Converterapp | 54e6f87669b9b3e345fa5999bebdfd0d625e21a5 | 18c08a4c2ccdf04167072b107bb7c0e93f3c8a98 | refs/heads/master | 2021-01-12T09:16:16.306407 | 2016-12-19T20:39:05 | 2016-12-19T20:39:05 | 76,812,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 957 | pyw | import sys
from PyQt5.QtWidgets import QApplication, QMainWindow, QMessageBox, QLineEdit, QLabel, QPushButton, QGridLayout
from PyQt5 import uic
from PyQt5.QtGui import QFont
from PyQt5.QtCore import Qt
class Ventana(QMainWindow):
def __init__(self):
QMainWindow.__init__(self)
uic.loadUi("... | [
"noreply@github.com"
] | pazmanuelo.noreply@github.com |
d44cc064e0d441102cb7f749ba51da30194382e0 | 9808471fbc87c24439111d3e14f7d63dbd8231f1 | /Hacker/Mul_Client.py | d83f78dd16bd060d316bf9388b515607cf5686c0 | [] | no_license | sreekanthreddyv/CodeFiles | e2794f754394b256ce8efe4328bed673a8d909f8 | ce20ae55196bae21940ffd5dc9ab08256d091ae6 | refs/heads/master | 2020-11-26T11:23:11.445889 | 2020-01-15T07:09:21 | 2020-01-15T07:09:21 | 229,057,106 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | from multiprocessing.connection import Client
from array import array
address = ('localhost', 6000)
with Client(address, authkey=b'hacker') as conn:
print(conn.recv())
print(conn.recv_bytes())
| [
"sreekanthreddy.v@live.com"
] | sreekanthreddy.v@live.com |
d70ef292f9b8407850d0be8b2861610269e132d6 | 0de17c84dec8448d9063ed45b36bb16c4702b499 | /impyute/imputation/cs/em.py | 184962a31d0e9efd0d5644cfc1608fde5cfa1ae2 | [] | no_license | aureole222/Auto_ML | 1732b51ec9a8b93085747dbba3ae74d5886b9c1e | 427c1e97168d5978aeeb559fe050efba499fc3e3 | refs/heads/master | 2022-12-01T04:18:14.176425 | 2020-08-14T01:31:19 | 2020-08-14T01:31:19 | 283,636,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,511 | py | import numpy as np
from impyute.ops import matrix
from impyute.ops import wrapper
@wrapper.wrappers
@wrapper.checks
def em(data, loops=50):
""" Imputes given data using expectation maximization.
E-step: Calculates the expected complete data log likelihood ratio.
M-step: Finds the parameters that maximize ... | [
"xiaruizhe@Xias-iMac.local"
] | xiaruizhe@Xias-iMac.local |
9b9ac8d68ee4e75b58e72cede9cacace96c23920 | 7c55a0d083ad0d26ebd21587b3c5d7512c3e527f | /1132.py | f34412ca23eb4222f8eeb8b36f05109f5f9bd855 | [] | no_license | gabriias/uri_solutions_python | 1f2a9f4391b18719112d9fa91c152310ec8138fe | cb24e7f9fbf746e68a247c7639e886bd36644b90 | refs/heads/master | 2022-03-09T18:33:58.029999 | 2022-02-26T02:29:20 | 2022-02-26T02:29:20 | 125,661,581 | 2 | 2 | null | 2019-10-05T15:15:38 | 2018-03-17T19:17:33 | Python | UTF-8 | Python | false | false | 145 | py | x, y = int(input()), int(input())
soma = 0
if x>y:
x,y = y,x
for cont in range(x,y+1):
if cont % 13 != 0:
soma+=cont
print(soma)
| [
"gabrielamatias60@gmail.com"
] | gabrielamatias60@gmail.com |
4944013970022784952c3f3c979c04980c1ff25f | bc404af610ca8cd55222c5983f15592e284e25c6 | /car/migrations/0004_auto_20200814_1432.py | 34436eb0082a73f4f654ac96b37f53b23d44e02e | [] | no_license | mmgl/DjangoCars | a748cc29f44ab9bc9d093b56835c2760bae902f6 | 841f5c1a038a422115a899d825ddc182e263bc0c | refs/heads/master | 2022-12-06T19:04:54.505371 | 2020-08-23T22:12:33 | 2020-08-23T22:12:33 | 280,905,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | # Generated by Django 3.0.8 on 2020-08-14 11:32
import ckeditor_uploader.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('car', '0003_images'),
]
operations = [
migrations.AlterField(
model_name='car',
name='detail... | [
"muhammedmustafagull@gmail.com"
] | muhammedmustafagull@gmail.com |
07c2f1b1292181ff3cb89e02ba4f326110af2ecc | b9b701d6661af48c19411b355a4d3da51e184d0b | /79-zgz-pytorch-yolo2-master/utils.py | 64aebf3db02515f8bd0b6b61b89f2929046ffa19 | [] | no_license | TzuRen/APDM_REM | 4099adc27dc82280b566408ba3827e8bf8df4634 | 5fbe8202aa5677a1d82302246d0260671681c4f7 | refs/heads/master | 2022-11-03T03:46:59.785270 | 2020-06-15T11:01:19 | 2020-06-15T11:01:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,400 | py | #encoding=utf-8
import sys
import os
import time
import math
import torch
import numpy as np
from PIL import Image, ImageDraw, ImageFont
from torch.autograd import Variable
import struct # get_image_size
import imghdr # get_image_size
def sigmoid(x):
return 1.0/(math.exp(-x)+1.)
def softmax(x):
x = torch.exp... | [
"18765330178@163.com"
] | 18765330178@163.com |
71895a10c1b2c7e904d98028e8c8589a2d8b0dc4 | 66ce62faf87aa9f5e6446c6ea0827fec580385ce | /ABCapp/apps.py | 2b9b65b9b2758de921a8bd3510af8c722bf32b2c | [] | no_license | gunjan-prog/project | 1fb0c763223325283d75acaca1c1ac49b1f41b83 | 9b8c74ed0dc9ed18ee5e89ead030db97f520eefc | refs/heads/master | 2022-08-15T12:37:44.411830 | 2020-05-18T08:01:11 | 2020-05-18T08:01:11 | 264,861,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | from django.apps import AppConfig
class AbcappConfig(AppConfig):
name = 'ABCapp'
| [
"noreply@github.com"
] | gunjan-prog.noreply@github.com |
5d339191de8e177da4fd0c015a83e2fab14cadf4 | 2a32d7e35ce7e8e8e669fe69ec81cca28ebed176 | /blackjack.py | 48740e1501fae015d517323bc6976cfa1c5c3578 | [] | no_license | ntrut/Blackjack | 311efa472ab7a570bf3ed78945d869894ca44381 | db10784099bb0fcd6802abfbb14474646edec2d7 | refs/heads/main | 2023-08-22T16:28:08.489762 | 2021-10-22T13:23:43 | 2021-10-22T13:23:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,819 | py | import random
import tkinter
from PIL.Image import Image
mainWindow = tkinter.Tk()
def load_images(card_images):
suits = ['H', 'C', 'D', 'S']
face_cards = ['J', 'Q', 'K', 'A']
for suit in suits:
for card in range(2, 11):
name = 'PNG/{}{}.png'.format(str(card), suit)
... | [
"noreply@github.com"
] | ntrut.noreply@github.com |
9dcf040005180edb2313c6d17b6c9fa1e1b66bc2 | 74be65db9505041017863eb7b880cd4420164913 | /Recursion.py | 0e868ceb13e34f19e3173fef73234f70ee1de844 | [] | no_license | jackx99/Python-Tutorial | 4dd21d7993376fd8e96e9f62ef0d2c2b80c8b8bf | 0fcdc529094dbebc675dde84847d8c285b536fe3 | refs/heads/master | 2022-07-02T19:23:07.894768 | 2020-05-09T03:14:14 | 2020-05-09T03:14:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,424 | py | # Hello Guys
# When you know the program to use iterative way (while loop, for in loop) but there is a other way
# Learn Recursion the process of solving a problem by reducing it to successively small versions of itself.
# Execute code by small chunks of itself.
# Recursive definition has
# one or more base case(s)... | [
"geek.mohsen@gmail.com"
] | geek.mohsen@gmail.com |
0f000b6128b9efe08f58ca0df022b6cff521951f | ec002f4e1a9d98e2fff2b8d6af0eaaf15fb044ee | /Web/CrawlMasPic/Bing/revoke.py | 2689c52bff43756c661b871adc6003b1c13502b9 | [] | no_license | SeaEagleI/Python | 40fb5c3edf0016f730f4938c03ac9eb29591797b | eda3fd7b590816851894795efd23a58f2cd49dfb | refs/heads/master | 2021-07-15T07:28:33.790788 | 2020-05-17T08:48:49 | 2020-05-17T08:48:49 | 148,288,877 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | # -*- coding: utf-8 -*-
from config import *
from tqdm import tqdm
cp_lines = [line.split('\t')[-1]+'.jpg' for line in LoadTxtToLines(cp_path) if 'Failed' not in line]
| [
"38852917+SeaEagleI@users.noreply.github.com"
] | 38852917+SeaEagleI@users.noreply.github.com |
c536b65e7478d8edb1d6e8355ea96b32a2dda8e6 | 7703d7dddeeefb770b75a4a411d1cb9f807d79b0 | /runserver.py | f87354bc72e630d6ae8922589f7d28aca3fe5cae | [] | no_license | Travaill/Project-Management-System-server | d67e7bdcc53c41fe345416f89c694c3515c85052 | ccb29e8abfff0a32f1197b81449df84f006e1906 | refs/heads/master | 2020-03-26T22:58:15.577936 | 2018-08-21T03:13:31 | 2018-08-21T03:13:31 | 145,500,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,472 | py | from flask import Flask
from flask import render_template
from flask import request
from flask import url_for
from flask_cors import *
from login import *
from user import *
from project import *
from manage import *
app=Flask(__name__)
key = "JLUIE487"
CORS(app, resources=r'/*')
@app.route('/login', methods=['POST']... | [
"2329677945@qq.com"
] | 2329677945@qq.com |
a1d117f90824e00c627b17fadd9f17e197db1136 | d348b7062212459b7c3b22c6e1ef0976b3c791f2 | /db.py | 0415fb08710484dee9cccd115d3f7d4f9c725ec1 | [] | no_license | dmitriipolushin/deliverInnoBot | 54d6936880c069fd5f49510e8d656ca18cb3a2a8 | 4ad9a0d35ad17bc0fd96fcf62fbec4e2e3af59a5 | refs/heads/master | 2023-02-15T07:35:36.251169 | 2020-11-11T19:14:11 | 2020-11-11T19:14:11 | 307,364,407 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,846 | py | from pymongo import MongoClient
connection = MongoClient()
db = connection.users_information
def new_user(chat_id, alias):
"""Function to add new user to database
Args:
chat_id (string): id of new user in telegram
alias (string): alias of new user
"""
user_info = {'_id': chat_id,
... | [
"dmitriipolushin@pop-os.localdomain"
] | dmitriipolushin@pop-os.localdomain |
50972c24f80116bd960f7350abeb6b01cde72fdf | 4b7806dd0ea8f7eb54bec25eb5afcdfdc02d91cf | /NEURON/izhiGUI.py | 7b966f77d36f4b185374e9a3d30eb777ae9d16a8 | [] | permissive | OpenSourceBrain/IzhikevichModel | ab6018e8392b073d17cb4e29c68108a4397f098a | 83fe93ea390bb240f31e7352f6a4ad744dec43ca | refs/heads/master | 2023-08-31T00:01:19.985460 | 2023-08-18T15:13:31 | 2023-08-18T15:13:31 | 4,956,319 | 23 | 10 | BSD-3-Clause | 2023-09-04T11:06:46 | 2012-07-09T10:41:31 | Jupyter Notebook | UTF-8 | Python | false | false | 15,133 | py | """
izh.py
Python/NEURON GUI for the different celltypes of Izhikevich neuron (versions from 2 publications).
* 2003 Izhikevich artificial neuron model from
EM Izhikevich "Simple Model of Spiking Neurons"
IEEE Transactions On Neural Networks, Vol. 14, No. 6, November 2003 pp 1569-1572
* 2007 Izhikevich artificial ... | [
"p.gleeson@gmail.com"
] | p.gleeson@gmail.com |
cb836705f68c0926ca5a50e930949c6f02ab4f2e | 1b3d2752ced80ab6dee1ef314d2f66cd39160117 | /zero-cross.py | 2562e37424e81ee74ede0c69b3b2018e53fc10d0 | [] | no_license | MaxPilgrim/r_peak_detection | 2c93e024d3662c31419f6e33a7c3fb7a953129de | f064ffa4f0f087321e5453f304e58e6d5f6cfa6d | refs/heads/master | 2016-08-07T14:40:47.895533 | 2015-06-10T20:50:10 | 2015-06-10T20:50:10 | 37,219,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,194 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import time
import shutil
import os
import codecs
import sys
import math
import matplotlib.pyplot as plt
DATA_PATH = 'data/data_1.in'
FILTER_PATH = 'filter/FIR_kernel_27.in'
n = 6000
lambda_k = 0.99
c_k = 4
lambda_D = 0.99
lambda_Th = 0.99
filterDelay = 14
filterN = 27... | [
"maxpilgrim94@gmail.com"
] | maxpilgrim94@gmail.com |
69cc105ffb1b88b37b4962ce32f29a3d2366625d | 1af1f89eb9a178b95d1ba023b209b7538fb151f0 | /Algorithms/498. Diagonal Traverse.py | a78694dcbb277726c2c4bc88dabf90747eadcb45 | [] | no_license | 0xtinyuk/LeetCode | 77d690161cc52738e63a4c4b6595a6012fa5c21e | 08bc96a0fc2b672282cda348c833c02218c356f1 | refs/heads/master | 2023-02-21T16:58:39.881908 | 2021-01-25T08:00:13 | 2021-01-25T08:00:13 | 292,037,842 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 712 | py | class Solution:
def findDiagonalOrder(self, matrix: List[List[int]]) -> List[int]:
sx = 0
sy = 0
m = len(matrix)
if m==0:
return []
n = len(matrix[0])
if n==0:
return []
ans = []
reverse = False
while sx<m and sy<n:
... | [
"xliu301@uottawa.ca"
] | xliu301@uottawa.ca |
6c1d1eae9b949ccb140ce5643a6b76cfb45e170b | 9beaf19f08859a3706602bb014128e0df83c9223 | /dic_ex4 | 68febee4833f70cbaacfc422313e0bc668c14386 | [] | no_license | 1912souravi/Python | ba8b63f988f658578d327a8ea0421bbc98245edf | cdf3606a321f562bcde41850f08a15e76bf28079 | refs/heads/master | 2021-01-20T23:47:34.365081 | 2017-10-10T01:18:11 | 2017-10-10T01:18:11 | 101,852,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 570 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Oct 4 08:13:01 2017
@author: souravi
"""
lst=[]
dic_day={}
max_v=0
max_k=0
file=open("/Users/souravi/Documents/Python/romeo.txt")
'''1'''
for line in file:
line=line.rstrip()
lst=line.split()
if lst[0]=='From':
dom=lst[5].split(':'... | [
"noreply@github.com"
] | 1912souravi.noreply@github.com | |
21a493288805c9f4249815db526a22a557cd0946 | 45e7ede656fa223ea3b5c359ccd8f9bdcdb0e357 | /Ayudantía 8/23tree.py | d65fb9dbc95ab7b6a051355afd254d142f27e34c | [
"MIT"
] | permissive | JohnBidwellB/EDD-2018-1 | a4d6b4ecb36e9dc716c398e2efd24cd7bf809470 | 2f50c75aa55e643d33db43cd10e33421b69aaca2 | refs/heads/master | 2021-09-16T09:49:14.587741 | 2018-06-19T04:16:25 | 2018-06-19T04:16:25 | 125,936,571 | 10 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,434 | py | class Node:
def __init__(self, value):
self.data = [value]
self.parent = None
self.child = []
def __str__(self):
if self.parent:
return str(self.parent.data) + " : " + str(self.data)
return "Root: " + str(self.data)
def _is_leaf(self):
return len... | [
"johnbidwellb@gmail.com"
] | johnbidwellb@gmail.com |
a06f4cacd3ceb7788c1165cbd743fe875f3f06ec | 3387493ac3c18d8d7a1e36f9f268bbaf9a494cf1 | /Find longest subset with sum 0.py | 9b13825c75110628a0dbb3f41f2d580575e44a38 | [] | no_license | Shaurya-L/Data-Structures-and-Algorithms-in-Python | 8b4ca1c23f84c02b1bab4469180c199154bade02 | 1da445905663dcd7035dcd78cc4d56695a32d6fa | refs/heads/master | 2020-09-26T12:22:08.854564 | 2020-01-27T16:27:16 | 2020-01-27T16:27:16 | 226,254,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | def subsetSum(l):
#Implement Your Code Here
d = {}
max_len = 0
curr_sum = 0
for i in range(n):
curr_sum += l[i]
if l[i]==0 and max_len == 0:
max_len = 1
if curr_sum is 0:
max_len = i + 1
if curr_sum in d:
max_len = max(max_len, i ... | [
"noreply@github.com"
] | Shaurya-L.noreply@github.com |
56984e71ca46bff6d41242ea2239873e9f30a22c | 3369b534949fc10edbc956de5514424e2d225438 | /KR-WordRank-master/krwordrank/graph/__init__.py | 492ec1a6696ef383c6e6cc27211dc7dbb3b970bc | [] | no_license | huo223gg/mynote | d7db940d70163cadb84f9eca3652e1fab0c8bf96 | 7d6800ad582951e6f0cac9f42b1fa58e378c8823 | refs/heads/master | 2020-05-20T18:26:28.466468 | 2019-05-09T02:09:46 | 2019-05-09T02:09:46 | 185,706,744 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 23 | py | from ._rank import hits | [
"44153293+huo223gg@users.noreply.github.com"
] | 44153293+huo223gg@users.noreply.github.com |
17f3f3381b7ad68625cfcd987954b1e8ea98b8f8 | d16ae20e90bfabb6aeef16fd5b19d71fcc45e29f | /confess/forms.py | 432edcb5affdbc904f2f5aa6621a339fcbe1d0fb | [
"MIT"
] | permissive | amartinez1/confessions | 49012af3f7fd8862c592b54c0b5d5a9a5ec4861d | 8c66700525d47e3657ffbcc0aacb11d238519126 | refs/heads/master | 2021-01-02T09:19:11.074743 | 2014-06-16T14:38:25 | 2014-06-16T14:38:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | from .models import Post
from django import forms
from django.forms import ModelForm
class ConfessForm(ModelForm):
class Meta:
model = Post
fields = ['title','text']
| [
"ncorecarbon@gmail.com"
] | ncorecarbon@gmail.com |
70730442f0974d53e608141b631786d816b8d1a1 | a49aa485318e499950130a6f9bf2c565dc4ccdf3 | /script.py | d2a8c07172bacd443603463a3f6ce0682ebcc60e | [] | no_license | NguyenThanhDat-GitHub/Tower_Of_Hanoi | 886b1721db887533054ec00fbf15b43530f14895 | eda64ac99b1f1e86677c533b81bd5c47d14f5715 | refs/heads/master | 2022-12-28T23:35:10.687522 | 2020-10-14T04:07:50 | 2020-10-14T04:07:50 | 303,898,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,809 | py | from stack import Stack
print("\nLet's play Towers of Hanoi!!")
#Create the Stacks
stacks = []
left_stack = Stack("Left")
middle_stack = Stack("Middle")
right_stack = Stack("Right")
stacks.append(left_stack)
stacks.append(middle_stack)
stacks.append(right_stack)
#Set up the Game
num_disks = int(input("\nHow many d... | [
"noreply@github.com"
] | NguyenThanhDat-GitHub.noreply@github.com |
759c45def54042c121a663b109de8f3c61c67d6e | 8af2c447bdde781f8016608b7dab0b2a2d975354 | /server/dive_server/views_annotation.py | 1e8a9d0494ca33ec42e7661d78fa882f9f6b1029 | [
"Apache-2.0"
] | permissive | acproject/dive | b8f580bb62bc0eda9d3fb3a6e33c0fd9edb74cf0 | 224f8c8814d306fcaf1191b2bc08851904e64577 | refs/heads/main | 2023-08-11T01:57:00.605940 | 2021-10-05T16:25:03 | 2021-10-05T16:25:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,554 | py | from typing import List, Optional
from girder.api import access
from girder.api.describe import Description, autoDescribeRoute
from girder.api.rest import Resource, setContentDisposition
from girder.constants import AccessType, TokenScope
from girder.models.folder import Folder
from . import crud, crud_annotation
Da... | [
"noreply@github.com"
] | acproject.noreply@github.com |
67142483d36d0db80900abc7955171ba9822c98b | 68cd659b44f57adf266dd37789bd1da31f61670d | /swea/덧셈.py | e5b8ab0ac443bc65fe5936e0ac9141aab0492675 | [] | no_license | 01090841589/solved_problem | c0c6f5a46e4d48860dccb3b0288aa5b56868fbca | bbea2f31e5fe36cad100bc514eacd83545fb25b1 | refs/heads/master | 2023-07-02T23:55:51.631478 | 2021-08-04T13:57:00 | 2021-08-04T13:57:00 | 197,157,830 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py |
def summ(k, scr):
if scr == num:
result = []
for j in range(N):
if visited[j]:
result.append(j+1)
print(result)
return
if scr > num:
return
if k >= N:
return
visited[k] = arr[k]
summ(k+1, scr+arr[k])
visited[k] = 0
... | [
"chanchanhwan@naver.com"
] | chanchanhwan@naver.com |
c9b5dc584f87539fc823344d500800f12cf0d1b8 | 21fe7a80b6dd30281bf045620723d6648150224f | /node_modules/mongoskin/node_modules/mongodb/node_modules/bson/build/config.gypi | b50bf85cfcefc7b35cb007ba470cbc796e955055 | [
"MIT",
"Apache-2.0"
] | permissive | artalgame/chat-node-js | cdc6fe98e9dddef79b588a35b692d278e790e5b1 | 3ad689f81149b2d817abc229fc600eb187bb6a43 | refs/heads/master | 2021-01-20T11:25:59.101449 | 2013-12-15T00:29:53 | 2013-12-15T00:29:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,455 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 0,
"gcc_version": 44,
"host_arch": "x64",
"node_install_npm": ... | [
"artalgs@gmail.com"
] | artalgs@gmail.com |
3b522ad5c1bc3e9b2c00cb9dae382a3145c20fd4 | 7cd8ee14711eaf33cee0d9e06e78a974fc579242 | /PIFramework/juicer/spiders/desk_customer_browse.py | e02c7f424af19bcbefa4456451ba138e83a60a4e | [] | no_license | Chandler-Song/pi | c618117dfdd9a7496a57c69f029851e94787f591 | aebc6d65b79ed43c66e7e1bf16d6d9f31b470372 | refs/heads/master | 2022-03-13T02:44:30.452673 | 2019-02-19T09:38:45 | 2019-02-19T09:38:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,849 | py | from juicer.utils import *
from w3lib.http import basic_auth_header
class deskcustomerbrowse(JuicerSpider):
name = "desk_customer_browse"
start_urls = ('https://www.desk.com/',)
def __init__(self, *args, **kwargs):
super(deskcustomerbrowse, self).__init__(*args, **kwargs)
self.auth = basic_auth_header('chetan.... | [
"aravind@headrun.com"
] | aravind@headrun.com |
bdde1733e3aad7d31e2d6f9dcb889e9c085df1f7 | f1117bf18739dba62a5a50bd86f0fdbf9827434f | /MyQuickSort.py | d5de0db1f857977075bcdcfcc09925b15caf1c25 | [] | no_license | Sohaib-50/MyQuickSort | 9fe8c6b22fa66d8db400fff9d519316893bcc8ef | 7affb3b1346e4266ab392aa1d4172cafabdc90e1 | refs/heads/main | 2023-01-23T22:38:10.330858 | 2020-12-04T15:42:12 | 2020-12-04T15:42:12 | 318,557,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,562 | py | from stackwithlist import mystack
def QuickSort(lst):
if len(lst) == 1:
return
stack = mystack()
stack.push( (0, len(lst) - 1) )
while not stack.isEmpty():
current_range = stack.pop()
left, right = current_range # tuple unpack
loc = left # selecting first element ... | [
"i.am_sa@Yahoo.com"
] | i.am_sa@Yahoo.com |
d704be6d1bfc2c06b2ff9f30222c54c1b0b1c0fe | 555fc06192df6d4375dbbc2d17f38c5783c6ef05 | /Lesson03/case05.py | 976c24b2285a32c23c7849f85ef260aeec546145 | [] | no_license | tina8860035/yzu_python | d658e3c6da8f132f054adbeb155c4794c606fc1e | f069efd191dfdb1802068cab1f976ef8a15c3a37 | refs/heads/master | 2021-05-26T10:14:04.770271 | 2020-06-10T13:34:21 | 2020-06-10T13:34:21 | 254,091,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | def mask(money):
x = money // 5
size = "成人"
return x, size
my_x, my_size = mask(120)
print(my_x, my_size)
| [
"52558635+tina8860035@users.noreply.github.com"
] | 52558635+tina8860035@users.noreply.github.com |
df6d16af59ecc459d304d7406ac8442ed9b48f06 | 26771494974942f4ab18d2cd8247506c344e1d14 | /117-populatingNextRightPointersinEachNodeII.py | 9b9e705cd655c6bfec49ca57ca65aa58890158d4 | [] | no_license | wangyunpengbio/LeetCode | 9f4c6076e067c5e847d662679483f737d40e8ca5 | cec1fd11fe43177abb2d4236782c0f116e6e8bce | refs/heads/master | 2020-04-29T22:28:25.899420 | 2020-04-03T07:37:26 | 2020-04-03T07:37:26 | 176,448,957 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,312 | py | """
# Definition for a Node.
class Node:
def __init__(self, val, left, right, next):
self.val = val
self.left = left
self.right = right
self.next = next
"""
class Solution:
def connect(self, root: 'Node') -> 'Node':
if root == None:
return None
queue =... | [
"wangyunpeng_bio@qq.com"
] | wangyunpeng_bio@qq.com |
ead80ff7e262f85fb9e82c38864ce01ba505bf46 | f1d2332045791d155ac712169c51e3d0157a9040 | /dana/app_dana/admin.py | 0caa616abff9e8a625d6c0502f697a2c0aad8186 | [] | no_license | bulikkk/DanaPage | 97631d65fa83256b0853c483cf1bd08b4bfb4d0a | 316c048b51b769c65bea1ddf3bdcf61764d71cae | refs/heads/master | 2021-01-20T14:28:32.245003 | 2017-07-18T20:31:18 | 2017-07-18T20:31:18 | 90,613,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | from django.contrib import admin
from .models import Banner, Project
# Register your models here.
@admin.register(Project)
class ProjectAdmin(admin.ModelAdmin):
fields = ('title', 'description', 'type', 'image', 'new')
@admin.register(Banner)
class BannerAdmin(admin.ModelAdmin):
fields = ('title', 'time', ... | [
"bulik.piotr@gmail.com"
] | bulik.piotr@gmail.com |
8603f1ec9bc1cebdababdfa6e7596867c7eec586 | bad4fb6e47603f356d14ea7c4228ffbd20427e6c | /local/lpcevento/evento/models.py | 83ec691569bf2637c7351ac8c762d8494b5f7b74 | [] | no_license | lucas62/trabalhoG1 | 1bc106f100d765b39664b6b701febe3d2f0abc25 | 4591e827875a65fb9ddf86930ee93807825be189 | refs/heads/master | 2021-06-25T15:13:14.592680 | 2017-09-11T20:34:41 | 2017-09-11T20:34:41 | 103,184,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,951 | py | from django.db import models
# Create your models here.
class Pessoa(models.Model):
nome = models.CharField(max_length=150)
email = models.CharField(max_length=150)
def __str__(self):
return self.nome
class PessoaFisica(Pessoa):
cpf = models.CharField(max_length=11)
def __str__(self):... | [
"lucas.pires100.la@gmail.com"
] | lucas.pires100.la@gmail.com |
b78332e426db0c012566299a4099427eb04b134f | 9b87f57ca5934a3aaaaf40fb467a279c88c83da4 | /account/urls.py | ee4c841ef120ec4414ac1c0f027f53662358b558 | [] | no_license | TechlopersWork/techDjango | b3e1edb8a80239d0da0679728a075879e1349506 | b3dc2e11f25ab8983b35aa64a9ba76b0b7c1f09a | refs/heads/master | 2023-08-13T18:21:16.335711 | 2020-05-14T02:15:42 | 2020-05-14T02:15:42 | 263,793,558 | 0 | 0 | null | 2021-09-22T19:01:15 | 2020-05-14T02:20:13 | Python | UTF-8 | Python | false | false | 147 | py | from django.urls import path
from . import views
urlpatterns = [
path('techlopian/', views.techlopian),
path('clients/', views.client),
]
| [
"techloperswork@gmail.com"
] | techloperswork@gmail.com |
472e2678e5a33ac3ef0f0b99023128e995f69fe6 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/cv/detection/DBpp_ID4145_for_PyTorch/mmocr/apis/train.py | dd009ec1a6e189694585385e994c91ebbb28894e | [
"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 | 11,120 | py | # -*- coding: utf-8 -*-
# BSD 3-Clause License
#
# Copyright (c) 2017
# All rights reserved.
# Copyright 2022 Huawei Technologies Co., Ltd
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
dce98cca1fcd4e0ddd6d4fa4399422fe437fba37 | 9da37920bec0710a594bf0c426216894cabfc8d7 | /log_handler.py | f8fdbc7b9ff19fdc4222eea64a4c8aa3a817c87e | [] | no_license | nathansikora/CamDuino | 54875870073b22a6a5fbc566b4914c1bbfbbde7f | 9b9f62cea4714f34e1c1f406dec5314bc22f2651 | refs/heads/main | 2023-06-05T03:17:52.207525 | 2021-06-30T18:17:06 | 2021-06-30T18:17:06 | 320,819,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | from time import asctime
LOG_FILE = 'log.txt'
IS_LOG_TO_FILE = True
LOG_STR = '{0} : {1}\n'
class Logger:
@staticmethod
def log(msg, path=LOG_FILE, is_log_to_file=IS_LOG_TO_FILE):
msg = LOG_STR.format(asctime(), msg)
print(msg)
if is_log_to_file:
with open(path, 'a') a... | [
"nathanikora@gmail.com"
] | nathanikora@gmail.com |
c37e90516146a963e73064dbae83398fa95b20e3 | 1d48ddd72477de7d9ad98eef61bdfb406859b31c | /04. asyncio/web_scraping/test_pg.py | 31752e74e37bf55d125a66ca1feeb9777c26d7ae | [] | no_license | alexshchegretsov/async_techniques | b68d27de58bc2393520eb080838b2c72d356d2f3 | 42118504a39ccbd0bebad4ed41eba4b5c2e3d5dd | refs/heads/master | 2020-12-04T06:40:34.712114 | 2020-01-06T20:59:58 | 2020-01-06T20:59:58 | 231,661,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | # -*- coding: utf-8 -*-
import asyncio
import asyncpg
async def run():
# conn = await asyncpg.connect(user="async", password="Dexter89!", database="async_db", host="127.0.0.1", port="5432")
conn = await asyncpg.connect("postgresql://async:Dexter89!@localhost/async_db")
values = await conn.fetch("""select ... | [
"nydollz77@gmail.com"
] | nydollz77@gmail.com |
c0a4781c6bcf405595b392c0498e6a3e26ee1b42 | fc3564bc78effa5daf09c582b21c8cbc79a68e4b | /leetcode/rotateRight.py | f59e78fc9598b054fcc113ba4d643cd71d4234cb | [] | no_license | TimiLikesJava/interview-prep | f567d79ff066aab31468405e5ee107641756ebad | a7071ebe89e173a95b3708265e3c95fb43f1fb19 | refs/heads/master | 2022-11-26T03:55:07.775927 | 2020-07-28T12:30:16 | 2020-07-28T12:30:16 | 271,274,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 906 | py | def rotateRight(self, head: ListNode, k: int) -> ListNode:
if(head is None):
return
if(k == 0):
return head
count = 0
curr = head
while curr is not None:
count += 1
curr = curr.next
if(count == 1):
return head
... | [
"noreply@github.com"
] | TimiLikesJava.noreply@github.com |
6c1bf8a8173f069af524c50af7366e3150d5b5a6 | 5adb0e3bce712efb68b241421cd12e71d0401d98 | /tasks/ehco.py | acf54d41b71c3edc251e2ea7866628ff0119bf2b | [
"MIT"
] | permissive | librestar/backend | 8e945c3953ec59b4717704a5ebfc613ed756cba1 | 9060453d140d4c1785b370fd548be519d04047d4 | refs/heads/main | 2023-02-11T03:36:33.584588 | 2021-01-14T07:34:08 | 2021-01-14T07:34:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,372 | py | import json
import typing as t
import ansible_runner
from uuid import uuid4
from app.db.session import SessionLocal
from app.db.models.port import Port
from app.db.models.user import User
from app.db.models.server import Server
from app.db.models.port_forward import PortForwardRule
from app.db.crud.server import get_s... | [
"me@leishi.io"
] | me@leishi.io |
fde84b7f86fe2e5414ad0afb303c5772a3a2bfbf | 0769e74f495d697266407e84054a52ea5da7ad49 | /old/src/YoutubeParseHandler.py | bc82f59feb37b5fa99724bf234172d9268943c5c | [
"MIT"
] | permissive | richard-duong/GuessTheClass | 960082dc212d7c8190f6d605735e0a3afb7d486a | e68c2a0a2fbb7b488450d27b36b52f2b4259e0b1 | refs/heads/main | 2023-05-08T04:03:44.594539 | 2021-05-14T22:59:16 | 2021-05-14T22:59:16 | 340,517,890 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 762 | py | import re
import YoutubeRegex
class YoutubeParseHandler:
def __init__(self):
self.__wordsList = []
def __parseFile(self, transcript):
with open(transcript, "r") as inFile:
text = inFile.read()
text = re.sub(YoutubeRegex.BASIC_FILTER + "|" + YoutubeRegex.ACTION + "|"
... | [
"rduon008@ucr.edu"
] | rduon008@ucr.edu |
08e0cb2008377b5bf7623e9235abde9b1ed3838c | f43a35dd0aab1bdbcf4f281281db2f5b2fdfbd5f | /Machine Learning practice/regression.py | 1139a60862f8ab27ce12788267bba239d79f1432 | [] | no_license | ganzhiruyi/Machine-Learning | 8d75ce5f37db9bec426a136cbfbaf4301bdd8a06 | 66dcba15bb41ce4613b055ec673547f429627dcf | refs/heads/master | 2021-01-18T10:03:40.321880 | 2016-03-03T14:43:19 | 2016-03-03T14:43:19 | 39,997,167 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,453 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date : 2016-01-19 10:57:07
# @Author : ganzhiruyi (ganzhiruyi0@gmail.com)
# @Link : https://github.com/ganzhiruyi
# @Version : $1.0$
from numpy import *
import numpy as np
import matplotlib.pyplot as plt
def loadDataSet(filePath):
# 导入数据,数据每行的最后一个是Y值
X ... | [
"ganzhiruyi0@gmail.com"
] | ganzhiruyi0@gmail.com |
dc020b3930bd8abb2cf10b358f9075e9aea0aab2 | e5c24e5c810a99bd326384a0d222bc8af0ac3bd9 | /chat_analyzer/models/chat_data.py | 1cd716d120105ae8437a4851d56ebc8ca1970df2 | [] | no_license | sechlol/whatsapp-chat-analyzer | aaaef061de9bd1776204a5e603df98677879a051 | e9506b5a482e9f29e80b0039702df648c5dd0312 | refs/heads/master | 2022-11-27T08:25:23.732721 | 2022-11-20T17:53:45 | 2022-11-20T17:53:45 | 218,354,333 | 0 | 0 | null | 2022-11-20T17:54:33 | 2019-10-29T18:20:02 | Python | UTF-8 | Python | false | false | 1,865 | py | from dataclasses import dataclass, field
from datetime import datetime, date
from typing import List, Dict
from chat_analyzer.models.chat_schemas import ChatMessageStatSchema, StatsWrapperSchema
@dataclass
class Message:
sender: str
date: datetime
text: str
@dataclass
class Chat:
name: str
part... | [
"ccardin.sech@gmail.com"
] | ccardin.sech@gmail.com |
d00b698f5834c6af3e0263f050a51ecf6db3b475 | f040ec51ef570adbd8240555eba1d0cd9709bb6e | /GstExample/basic-tutorial-4.py | 906bb080d1074246a75c505dd7c2248ca9b035a3 | [] | no_license | WassabiVl/WebServerGstreamer | 7d1c8b6a0670bdc60789308237d2c27700fcd573 | 77d8522e297dc04b64a1dfc2dd8fcef539f65778 | refs/heads/master | 2020-03-20T06:23:17.669426 | 2018-08-27T09:48:12 | 2018-08-27T09:48:12 | 137,247,763 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,871 | py | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
# GStreamer SDK Tutorials in Python
#
# basic-tutorial-4
#
"""
basic-tutorial-4: Time management
http://docs.gstreamer.com/display/GstSDK/Basic+tutorial+4%3A+Time+management
"""
import sys
import gi
gi.require_version('Gst', '1.0')
from gi.repository import Gst
Gst.i... | [
"wa@lombego.de"
] | wa@lombego.de |
53f341d9c5602b342cdf23b6be69e940832f7e46 | dc150d7be2cc82a28aea96b963ea15c6dc146df1 | /app/readtest.py | fb90774bfeeec30bcbd2735885b7863d0c38005f | [] | no_license | pboavida/aztraproject | 2605884d53918d3066f58dfbafe7174a5c035bb2 | c4d59bba9d2e5d5d0b4f2ed676590022014aaea8 | refs/heads/master | 2021-01-08T20:57:38.536908 | 2020-02-21T13:04:31 | 2020-02-21T13:04:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,551 | py | import requests
import json
from os import getenv
# this file was created to test if all the data needed for the tables is obtainable from the api requests
#the data as obtained in the print statements below is not necessarily ready to be entered directly in the tables.
# some data needs to be parsed, such as the depo... | [
"pedrom2boavida@gmail.com"
] | pedrom2boavida@gmail.com |
63406186486569e40cecf5de8a6cae1dc00ae400 | f54070cd3048a3645cb25f301592a904d387a1c9 | /python_prgrams/testpython/class.py | d90814e0b94bcc93934d6f3342591b4b93ec4eaa | [] | no_license | mak705/Python_interview | 02bded60417f1e6e2d81e1f6cde6961d95da2a8e | aff2d6018fd539dbcde9e3a6b3f8a69167ffca0d | refs/heads/master | 2020-03-22T21:03:34.018919 | 2019-11-15T08:51:34 | 2019-11-15T08:51:34 | 140,653,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | class PartyAnimal:
x = 0
def party(self):
self.x = self.x + 1
print "so far ", self.x
an = PartyAnimal()
an.party()
an.party()
an.party()
print "Type", type(an)
print "Dir", dir(an)
#PartyAnimal.party(an)
| [
"mak705@gmail.com"
] | mak705@gmail.com |
f4d86205e1bdc26657ecf48b6f002cbc9c14fb93 | 0c7299e097391daefd66d55d3e5e8ed11aa3519e | /helloworld.py | bb18c60a5eb60b7db8cd4e5eaf3f1af6413c09c1 | [] | no_license | shola/caltrain-dashboard | c4560e71a1a3b81bd0ec119e6d1bb17514e7d48c | 289b88c7c9d10cbdfbddc23fdf04bbd6ccef4d2f | refs/heads/master | 2021-01-16T20:48:36.683416 | 2015-06-16T19:52:39 | 2015-06-16T19:52:39 | 37,552,559 | 0 | 0 | null | 2015-06-16T19:52:18 | 2015-06-16T19:52:18 | null | UTF-8 | Python | false | false | 12 | py | merge hell!
| [
"bchoi@splunk.com"
] | bchoi@splunk.com |
dace21adfb00aaf1f2863a3e40f9256a2a67b538 | 2d6d24c0bfee13fc4682dee52075e78a552a8d1c | /tests/io/test_scanners.py | 88b4c30ae125ae42fe97d5aa7678fd851b13a7be | [
"MIT"
] | permissive | sbiradarctr/pyTenable | b890875c5df3a1da676cebd57af51bc49666a7d2 | 2a6930cd7b29036780c291581d89ab33c0fd6679 | refs/heads/master | 2023-05-06T09:20:43.580412 | 2021-05-31T09:05:11 | 2021-05-31T09:05:11 | 371,701,521 | 0 | 0 | MIT | 2021-05-28T12:58:52 | 2021-05-28T12:58:52 | null | UTF-8 | Python | false | false | 7,003 | py | from tenable.errors import *
from ..checker import check, single
import uuid, pytest
@pytest.mark.vcr()
def test_scanner_control_scans_scanner_id_typeerror(api):
with pytest.raises(TypeError):
api.scanners.control_scan('nope', str(uuid.uuid4()), 'stop')
@pytest.mark.vcr()
def test_scanner_control_scans_sc... | [
"steve@chigeek.com"
] | steve@chigeek.com |
6c41461da6b1f280e4708e60c3c8f1ec4ac26eb0 | 94fb9ca84285fa6e570c21208e2e5b2d3ac201db | /Observer/Observer_Controller.py | 28e42cbcfa8ba19b567b11f5d020779f2adb8fb5 | [] | no_license | kmu-cs-swp2-2018/class-01-Kimmyeonghwan | ba3bf280ef7646bf2c9b20305c3bff916d7e918c | b2e77485b257e3e64c3a550a2e757e135d1de73b | refs/heads/master | 2022-12-03T00:40:30.468292 | 2018-11-21T12:17:05 | 2018-11-21T12:17:05 | 146,683,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,046 | py | from Observer_View import View
from Observer_Model import Model
def Main():
re = 0
model = Model()
view = View()
while(re != 9):
print("현재 시간 : {}년 {}월 {}일 {}시 {}분 {}초".format(view.ts.tm_year, view.ts.tm_mon, view.ts.tm_mday, view.ts.tm_hour, view.ts.tm_min, view.ts.tm_sec))
print("현재... | [
"myeonghwan2@kookmin.ac.kr"
] | myeonghwan2@kookmin.ac.kr |
c749c633bdfd24a7f053d5758c163cb270b8c78a | e4c7bb2f81c305939c94ded69d3a425a53ed5985 | /mundo-2/ex-055.py | eeda2a43d83b6a5b18bbf66b50c1b4abdb22f50d | [
"MIT"
] | permissive | guilhermesm28/python-curso-em-video | 22eecd84fef24bcadbcb04bbfc9a2386dfe526a9 | 50ab4e76b1903e62d4daa579699c5908329b26c8 | refs/heads/master | 2022-10-13T05:45:31.961161 | 2020-06-11T22:59:24 | 2020-06-11T22:59:24 | 267,751,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | # Faça um programa que leia o peso de cinco pessoas. No final, mostre qual foi o maior e o menor peso lidos.
print('-' * 100)
print('{: ^100}'.format('EXERCÍCIO 055 - MAIOR E MENOR DA SEQUÊNCIA'))
print('-' * 100)
maior = 0
menor = 0
for i in range(1,6):
peso = float(input(f'Peso da {i}ª pessoa: '))
if i == ... | [
"devguilhermemoreira@gmail.com"
] | devguilhermemoreira@gmail.com |
c9a3a0c61090dc5a0df06daf9966f3d68d3b0fd0 | b53071f631a030df707197f7403d55d7bbd5b1d1 | /src/utils/label_smoothing_loss.py | 1bd3e03468758014997df6cb3c680003e713b5eb | [] | no_license | JJoving/SMLAT | 4d2baba38a9b0cdc4d5cf307ed1729255500142a | 4bec314ea4ad7b67db1e4b78e3ec1a2fa8d866ba | refs/heads/master | 2020-06-29T07:56:14.371708 | 2019-10-28T12:38:21 | 2019-10-28T12:38:21 | 200,479,610 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,048 | py | import torch
from torch import nn
class LabelSmoothingLoss(nn.Module):
"""Label-smoothing loss
:param int size: the number of class
:param int padding_idx: ignored class id
:param float smoothing: smoothing rate (0.0 means the conventional CE)
:param bool normalize_length: normalize loss by sequen... | [
"732585148@qq.com"
] | 732585148@qq.com |
ab6a077030d7e71350326b60b2622c761eac3670 | ca539b0df7ca5a91f80b2e2f64e7379e69243298 | /87.py | 219641b62a1f8827bc7e6a09e66208ccf7bb59c1 | [] | no_license | yorick76ee/leetcode | 9a9e5d696f3e32d9854c2ed9804bd0f98b03c228 | d9880892fe15f9bb2916beed3abb654869945468 | refs/heads/master | 2020-03-18T22:59:29.687669 | 2016-07-18T19:56:55 | 2016-07-18T19:56:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,452 | py | class Solution(object):
def lettercount(self,s1,s2):
dict1,dict2={},{}
for i in range(len(s1)):
if s1[i] not in dict1:
dict1[s1[i]] = 1
else:
dict1[s1[i]] += 1
if s2[i] not in dict2:
dict2[s2[i]] = 1
else... | [
"641614152@qq.com"
] | 641614152@qq.com |
f61a8aa843d980025a0559ae59a7f1b2df92821a | c122279ed10ecf9a5b7b91789591179a30f2e543 | /src/group.py | 95d0f7b9f5a852501c7aa37d47d1e19e3fafcb5f | [
"MIT"
] | permissive | MrCamoga/Finite-Groups-2 | 15fa54fa9008d29ca1362d952b5744f279e19577 | 5e52102a423a8ff4eed0cbf59617b6fe999e7ef3 | refs/heads/master | 2021-02-16T22:37:00.047213 | 2020-11-11T14:15:25 | 2020-11-11T14:15:25 | 245,049,648 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,292 | py | from functools import reduce
from sympy import isprime, gcd, lcm, factorint
from operator import itemgetter
from random import randint
import typing
"""
TODO:
isNormal ✓
Inn(G) ... | [
"mrcamoga@gmail.com"
] | mrcamoga@gmail.com |
a3bb3ecefb0daf9c42cee95e85b7561e754a16d4 | 19126b16eb2678164c1bc282e5b9c86216b483aa | /process.py | f9f46504f1d9b85e4d31638e02b6fde00cc7fe34 | [] | no_license | lucjon/unescape | 366e5ef6914533bf4a6b85391fb7681ce1500203 | cf618144a0efc5fb3f94ed6e5c472322ef223ab2 | refs/heads/master | 2020-03-30T06:42:46.411895 | 2010-12-07T21:16:05 | 2010-12-07T21:16:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | print 'var _entities = {'
f = open('entities')
for entity in f:
s = entity.split('\t')
print '\t"%s": "%s",' % (s[0], s[1])
f.close()
print '};'
| [
"lucas@lucasjones.co.uk"
] | lucas@lucasjones.co.uk |
682e551baae2d8218700c8db937894c61af7b8fa | 3a0747429d28a4027aa84c051d73aa42b8adf69d | /sakuzu32/hov_wh04_sa.py | 5cfb7e66416a0c61a166eedc7783190f6812092e | [] | no_license | shukubota/b4 | ee06f1b49b2e99d96b1b0e4434d1976e9507bbda | 765ab46c763ced72c70c97ea8c4f38370688af4b | refs/heads/master | 2021-01-11T05:55:15.513100 | 2018-11-08T08:12:06 | 2018-11-08T08:12:06 | 94,946,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,941 | py | #coding:utf-8
import sys
sys.path.append('/home/kubotashu/kubota/labo/sakuzu/sakuzu/sakuzu09/')
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.basemap import Basemap
from function import *
import os.path
import matplotlib.cm as cm
#####################
#fileのサイズ
#########################
lon1=-90... | [
"noreply@github.com"
] | shukubota.noreply@github.com |
3e8fbc487395171405ee2db183f9bb360c8ad542 | 60c8d2e77bd7c4c646f33d09aca6cc2fae143c3d | /tools_SSD.py | 942be797a37d39410fa57fd0ab9fe9490d7bc377 | [] | no_license | dynamicguy/tools | 866eb881d601866b0a528613773763dfd4dec36c | e718ff9c118d2a9081d532929ba631be95627fcf | refs/heads/main | 2023-03-26T11:03:04.656851 | 2021-03-06T19:45:16 | 2021-03-06T19:45:16 | 345,179,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,608 | py | import numpy
import cv2
import tools_image
# ----------------------------------------------------------------------------------------------------------------------
import tools_YOLO
from keras.layers import Input
# -------------------------------------------------------------------------------------------------------... | [
"nurul@ferdo.us"
] | nurul@ferdo.us |
df3910edec0018e22e73d750172933db0402f750 | 6a22b7e73dc2ff6c089b727d0a3858241846f8df | /Systems/esh-spring-2015.git/src/plugins/systemInfo_test.py | 79044de0ccade054d72a819f02d293037742a7cd | [
"MIT"
] | permissive | mikefeneley/school | fe48ee989ac83d4836ce93538cbe51496f709abe | 5156f4537ca76782e7ad6df3c5ffe7b9fb5038da | refs/heads/master | 2021-06-10T01:52:21.148937 | 2016-12-23T12:39:32 | 2016-12-23T12:39:32 | 72,551,482 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,458 | py | import sys, imp, atexit, os
sys.path.append("/home/courses/cs3214/software/pexpect-dpty/");
import pexpect, shellio, signal, time, os, re, proc_check
# Determine the path this file is in
thisdir = os.path.dirname(os.path.realpath(__file__))
#Ensure the shell process is terminated
def force_shell_termination(shell_pr... | [
"michael.j.feneley@gmail.com"
] | michael.j.feneley@gmail.com |
b48fc36d7a90ec6c3bce9e94507a3efc2825d9b0 | ce51279f51070a954054a28bdbdecde3aa1f182b | /Move Zeroes.py | c0b7e2cf77667832411213b3426cb2ca5f283d6f | [] | no_license | unswjasonhu/leetcode | bc060283fb9cb3d995710591588007d4a87fde2a | dd32ec3425f40461e62c58125e2e078dae236ee1 | refs/heads/master | 2016-08-08T23:54:10.542840 | 2016-01-21T05:00:07 | 2016-01-21T05:00:07 | 46,773,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | __author__ = 'Jason'
class Solution(object):
def moveZeroes(self, nums):
"""
:type nums: List[int]
:rtype: void Do not return anything, modify nums in-place instead.
"""
for i in range(len(nums)):
j = 0
if nums[i] == 0:
nums.append(0)
... | [
"jasonhu.au2"
] | jasonhu.au2 |
fa2acf3dc47b01789ae0535085f48b6e22aff68d | 3e5695a1e80d3696cea8b902d06078f9b77387a7 | /demesdraw/size_history.py | 3b967b152a6b2e700e522df64d6afa7c80562c82 | [] | no_license | apragsdale/demesdraw | 9a3312db81ee58e343272a6b9b517538b0078682 | 26f817a66a7f8fe00c99e41f1b774c501c5a8d3b | refs/heads/main | 2023-03-20T22:09:38.588301 | 2021-03-11T19:51:37 | 2021-03-11T19:51:37 | 346,859,777 | 0 | 0 | null | 2021-03-11T22:42:17 | 2021-03-11T22:42:17 | null | UTF-8 | Python | false | false | 10,190 | py | import demes
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
from demesdraw import utils
def size_history(
graph: demes.Graph,
ax: matplotlib.axes.Axes = None,
inf_ratio: float = 0.1,
inf_label: bool = False,
invert_x: bool = False,
num_exp_points: int = 100,
annotate... | [
"graham.gower@gmail.com"
] | graham.gower@gmail.com |
c07d3081696dfc63bf3149aacfa29ae61b1791ba | cc69873bda24115753417a962773798662585c5e | /AnagramSolver/AnagramSolver/views.py | 3b4baf3c7805c920deb1198154a27eda7878990b | [] | no_license | nguyenvinh2/AnagramSolver | e6930096a81b3c0280ab85c0b78232d13c0967be | f6deba01622fe6b298eab3a32a1e1e9633e4c6d7 | refs/heads/master | 2020-04-14T06:45:49.357938 | 2019-01-03T19:44:28 | 2019-01-03T19:44:28 | 163,695,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,803 | py | """
Routes and views for the flask application.
"""
from datetime import datetime
from flask import render_template
from AnagramSolver import app
from flask import Flask, request
import json
import requests
class Word():
def __init__(self, word, definition):
self.word = word
self.definition = definition
#g... | [
"nguyenv2@outlook.com"
] | nguyenv2@outlook.com |
1f90a89e25da62b6b5d3becb16bd2ca8c3045f98 | c48d431c5b7ac7e242d1637b314dc6e13585724d | /for loop test.py | 283b801b84f3cfc00c5cce761570c8bd1dd254b3 | [] | no_license | tytim12/Test-Res | d5bb5b21a325b84ec1016eb68b0f2bbc058cda2f | 1b43897cb770c12ee59342146599d1a32888150d | refs/heads/master | 2021-09-10T09:30:53.365617 | 2018-03-23T15:41:46 | 2018-03-23T15:41:46 | 119,928,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | def prime(max):
list = []
for num in range(2,max):
for n in range(2,num):
if num % n == 0:
break
else:
list.append(num)
return list
numList = prime(100)
print(numList) | [
"tanyuan@Dev.chngalaxy.com"
] | tanyuan@Dev.chngalaxy.com |
365f848ad8dde1db19f683afd8439f0362e34fb7 | e3a674666de18e3b722bfd36e54d6a32e3f0b726 | /html/default.py | 6971548d1f71ed3f49da66c818ddae27850fbfbf | [] | no_license | sauloaldocker/lamp | 92d52c3105cd1d00d816138a64de66643fda67c3 | 9088f899e9a4e7e04941518041e10630cfdf71f1 | refs/heads/master | 2021-01-20T04:36:21.783064 | 2017-04-02T13:22:02 | 2017-04-02T13:22:02 | 21,629,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-# enable debugging
import cgitb
import os
import sys
cgitb.enable()
print "Content-Type: text/html;charset=utf-8"
print
print "<h1>argv</h1>"
print "<table>"
for k in sys.argv:
print "<tr><td>%s</td></tr>" % (k)
print "</table>"
print "<h1>environ</h1>"
print "<table>"
for... | [
"sauloal@gmail.com"
] | sauloal@gmail.com |
953f9fc2f8c41cae91dcb576a328561653318abd | 989e16ccb5569cd514a2a0cd41c04392248eeae3 | /airtest/utils/logwraper.py | b86b7d8d0ddf1ce8712d67747ccd8b44f6875b34 | [
"Apache-2.0"
] | permissive | wb-qiujuli/Airtest | 1dc98e385efae4aa18a8ffc879ad6ec7a8f7dbac | 4f73a03a62f11a8010769eda4b53a53a74a8d16c | refs/heads/master | 2020-03-19T01:09:53.709209 | 2018-05-31T01:31:04 | 2018-05-31T01:31:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,116 | py | # _*_ coding:UTF-8 _*_
import os
import sys
import json
import time
import functools
import traceback
from .logger import get_logger
LOGGING = get_logger(__name__)
class AirtestLogger(object):
"""logger """
def __init__(self, logfile, debug=False):
super(AirtestLogger, self).__init__()
self.lo... | [
"gzliuxin@corp.netease.com"
] | gzliuxin@corp.netease.com |
cd30dee9c2e39d4d74f5da68dd97c87656ac6d03 | ecd27923efba50703a7bfbfa2ba37a8cc78560ea | /automatic_scraper/config/bid/liriqing/shandong_taian_ggzy_config.py | bd234c5293803ff68ced61e5c97669fc19eb8d3a | [] | no_license | yougecn/work | fb691b072a736731083777e489712dee199e6c75 | 1b58525e5ee8a3bdecca87fdee35a80e93d89856 | refs/heads/master | 2022-03-03T19:14:17.234929 | 2018-04-17T12:29:19 | 2018-04-17T12:29:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,631 | py | # coding: utf-8
import time
import logging
import re
logger = logging.getLogger(__name__)
author = "liriqing"
web_title = u"泰安市公共资源交易网"
data_source = 'http://www.taggzyjy.com.cn'
start_urls = [
##政府
#招标
"http://www.taggzyjy.com.cn/Front/jyxx/075002/075002001/075002001001/",
"http://www.taggzyjy.com.cn... | [
"iwechen123@gmail.com"
] | iwechen123@gmail.com |
0d7725141ae936d59ae566697940703666446737 | 1f5022b8edfda8f1226a608cb0028e8e057704ce | /excript/app-comerciais-kivy/aulas/entradaDados.py | 56b87cfceba451818625686f075146f328708615 | [] | no_license | felipecechin/python | 75372545c96cb79826861dca40c8211e4108e687 | 194932b0e93947ba2ba17bdbcdf5dc11de98f195 | refs/heads/master | 2022-01-11T18:05:55.058248 | 2019-06-04T03:21:16 | 2019-06-04T03:21:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | login = input("Login:")
senha = input("Senha:")
print("Login:",login,"senha:",senha)
print("Login: %s senha: %s" %(login,senha)) | [
"ficechin@hotmail.com"
] | ficechin@hotmail.com |
801c42a9cc2b11ec0ce7278cd4201251a3d8cf7d | 02f1f32827119f086baed04eb8db9ac230b6ba97 | /Classification/KNN/knn.py | 2e9bb85ba3f325dad8b705f7d51e5b366f3998fd | [] | no_license | HsiangHung/Machine_Learning_Note | 82182bcff2f67e9b933d447a384aa8ec7e52b53b | 300f2bba5edaca25e66dcce0c4edd3203c8f22fb | refs/heads/master | 2023-09-01T13:40:57.636906 | 2023-08-31T05:32:23 | 2023-08-31T05:32:23 | 163,471,072 | 4 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,620 | py | '''
sklearn: https://stackabuse.com/k-nearest-neighbors-algorithm-in-python-and-scikit-learn/
Python from scratch: https://machinelearningmastery.com/tutorial-to-implement-k-nearest-neighbors-in-python-from-scratch/
NOTE: we should standardize data if necessary
'''
import numpy as np
import heapq
class KnnClassifie... | [
"Hsiang.Hung2015@gmail.com"
] | Hsiang.Hung2015@gmail.com |
51b0ecc3f68e0a7f94297a54e5a5c33b9f699b5b | 658e2e3cb8a4d5343a125f7deed19c9ebf06fa68 | /course_DE/udacity-data-engineering-projects-master/Project 5 - Data Pipelines with Airflow/exercises/dags/3_ex3_subdags/subdag.py | 2751def0ecb6a5a10629e528018801bbdaf2210a | [] | no_license | yennanliu/analysis | 3f0018809cdc2403f4fbfe4b245df1ad73fa08a5 | 643ad3fed41961cddd006fadceb0e927f1db1f23 | refs/heads/master | 2021-01-23T21:48:58.572269 | 2020-10-13T22:47:12 | 2020-10-13T22:47:12 | 57,648,676 | 11 | 9 | null | null | null | null | UTF-8 | Python | false | false | 1,649 | py | # Instructions
# In this exercise, we’ll place our S3 to RedShift Copy operations into a SubDag.
# 1 - Consolidate HasRowsOperator into the SubDag
# 2 - Reorder the tasks to take advantage of the SubDag Operators
import datetime
from airflow import DAG
from airflow.operators.postgres_operator import PostgresOperator
... | [
"f339339@gmail.com"
] | f339339@gmail.com |
20b19b2536c1fbeefe644e9d821ef833bc2bd42b | 4a11d12d4b3da1efca5638d552cdc9faf9850fbd | /web/views/ach.py | 9a153ef8d184963a71e60d2814b907dc8924ea25 | [
"MIT"
] | permissive | tjcsl/wedge | fc0c46a4bb1d3e993e44fbe58dc5b353a232b7cd | 69a7b0d3cfb5b35544a47522e736cac47fd815e6 | refs/heads/master | 2020-04-07T11:42:13.762935 | 2013-11-10T15:57:42 | 2013-11-10T15:57:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | from web.auth import loginrequired
from web.ach import *
from flask import session, request, render_template
@loginrequired
def ach():
name = session["username"] if "username" not in request.args else request.args["username"]
ach = get_user_achievements(name)
return render_template("ach.html", name=name, ... | [
"fwilson@fwilson.me"
] | fwilson@fwilson.me |
7e91cea1d6c02d21774bddccf502f877e6aac5ae | 3798583928530b4c5366e2dace526a4ce3e0c9bd | /rqrobot/core/strategy_universe.py | 9f6c7cbcb319583c13b92cd86e0453a277ec07bd | [
"Apache-2.0"
] | permissive | luhouxiang/rqrobot | bc80a5458f8a8c0631e566d781db1497939b641f | 0b0094b0e2d061e628c570a06a7620e5fb48d342 | refs/heads/master | 2020-05-17T14:40:04.495201 | 2019-05-04T13:17:04 | 2019-05-04T13:17:04 | 183,768,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,974 | py | # -*- coding: utf-8 -*-
#
# Copyright 2017 Ricequant, 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 ... | [
"luhouxiang@hotmail.com"
] | luhouxiang@hotmail.com |
ea9fc8459914a36ea8f7d384de549505288b7582 | 7463892195fa479a41dad3029eb55fb5e5dbcaa8 | /Railway/railway_book/views.py | 94ca3dd03c7ebddcf1cc1430ba395476e88f42d9 | [] | no_license | Theskyspace/Monorail-DBMS-investo- | c613af02d822bc69d943aef995e2527d09bfb811 | beee5044ea9da1035f16722effb30d00e18b18db | refs/heads/main | 2023-02-20T13:08:22.828151 | 2021-01-20T04:50:23 | 2021-01-20T04:50:23 | 331,196,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,955 | py | from django.shortcuts import render,HttpResponse
from .models import search
file_in = open('search.txt','wt')
#BULLSHIT
CHEM_S = ['0600', '0622', '0644', '0706', '0728', '0750', '0812', '0834', '0856', '0918', '0940', '1002', '1024', '1046', '1108', '1130', '1152', '1214', '1236', '1258', '1320', '1342', '1404', '14... | [
"akashrockzz411@gmail.com"
] | akashrockzz411@gmail.com |
ca9a92d1612494dd95fd85bed22d1c0fab8da6d2 | 1c9aa8f755f0a4beb60db8e006a36d56ab8d8d68 | /src/common.py | cb5930b381480ac553db62c28919722b1349cf92 | [] | no_license | silverfield/repertoire-mng | 1e7b457014b75b66d42a8008570f0582eb395da1 | a99c9937269f07773458aa312fc18ba34f165e31 | refs/heads/master | 2021-01-01T08:05:01.118859 | 2020-11-22T20:54:10 | 2020-11-22T20:54:10 | 239,187,849 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,997 | py | import os
import json
cur_dir = os.path.dirname(os.path.abspath(__file__))
DATA_DIR = f'{cur_dir}/../data'
OUTPUT_DIR = f'{cur_dir}/../output'
TYPE_BT = 'bt'
TYPE_NBT = 'nbt'
ON_LINUX = os.path.exists('/opt')
PREFIX = '/d'
if not ON_LINUX:
PREFIX = 'G:'
PDF_DIRS = [f'{PREFIX}/music/akordy/chords', f'{PREFIX}/m... | [
"ferohajnovic@gmail.com"
] | ferohajnovic@gmail.com |
c86e29c92067ee462f7e3e49e7c314b4b5687ea7 | dd7766e4a31c6907ca77c448fe953d7d7e936501 | /account/urls.py | 73aeed4b606ef4c044a21546e84270d00394a5f3 | [] | no_license | Randomnation/blogV2 | 2ece1ad596e4699e63f42eab351837262c2baf5a | 5f7f54bab3fb811cc57b313a608e79329f31eb8c | refs/heads/master | 2021-04-06T11:14:52.398442 | 2018-03-30T02:33:39 | 2018-03-30T02:33:39 | 125,216,311 | 0 | 0 | null | 2021-03-30T04:33:50 | 2018-03-14T13:25:33 | Python | UTF-8 | Python | false | false | 905 | py | from django.urls import path, include
from django.contrib.auth.views import login, logout
from account import views
app_name = "account"
urlpatterns = [
path('login/', login, {'template_name': 'account/login.html'}, name='login'),
path('logout/', logout, {'template_name': 'account/logout.html'}, name='logout'... | [
"krammtacular@gmail.com"
] | krammtacular@gmail.com |
6a754571b917d56a2e08e0f91d054b9346da7e34 | f3bca43b2e703408110cd405e469064442086a32 | /app/Router/ErrorHandling.py | 14b9c9dece1f89033b89ac78f30499bf16655061 | [] | no_license | Simon-whale/FastAPI | 37b40f3fd67d5219db809c73ab7981e6b216d278 | dd22a0a3bad03a6c463bf1b4babd2315d252d0f3 | refs/heads/master | 2023-05-29T16:36:00.894550 | 2021-06-14T18:56:32 | 2021-06-14T18:56:32 | 365,352,991 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 931 | py | from fastapi import APIRouter, HTTPException
from fastapi.responses import JSONResponse
from app.Models.Message import Message
from app.Models.Item import Item
router = APIRouter()
@router.get('/blowsup/{item_no}', tags=["Errors"])
def she_gonna_blow(item_no: int):
if item_no >= 100:
# Here on purpose w... | [
"83454878+Simon-whale@users.noreply.github.com"
] | 83454878+Simon-whale@users.noreply.github.com |
36d6859f91412f1d9bc50c8d9093e25601f1b157 | 854b94d7be92582bd191a7cb63143a95e5b5c337 | /hyfetch/distros/postmarketos_small.py | 4dc2bd42a651c2a3c7f18c7ef7c07c17cd241449 | [
"MIT"
] | permissive | hykilpikonna/hyfetch | 673c0c999d0f3f542349824495ad6004f450ebac | 98863df16d70b030696f4b94080d114396320f35 | refs/heads/master | 2023-08-17T10:41:10.289997 | 2023-08-17T03:37:23 | 2023-08-17T03:37:23 | 479,913,941 | 447 | 78 | MIT | 2023-09-14T14:39:18 | 2022-04-10T04:38:15 | Shell | UTF-8 | Python | false | false | 325 | py | # This file is automatically generated. Please do not modify.
from . import AsciiArt
postmarketos_small = AsciiArt(match=r'''"postmarketos_small"''', color='2 7', ascii=r"""
${c1} /\
/ \
/ \
\__ \
/\__ \ _\
/ / \/ __
/ / ____/ \
/ \ \ \
/_____/ /________\
""")... | [
"me@hydev.org"
] | me@hydev.org |
ca962831629656a8d9a0b99cd1a750b6fb3b06eb | 24a7c711c15c70fc2961ce9bdbada50ac0aafa01 | /src/blockchain/miner/services/transaction_listener.py | cb927614faee5331135afdf80a4c4a9f4fa58e09 | [] | no_license | thaolt/blockchain | bad75f4eea2d2886e23e69429bc0dedf99fe1b0e | 582ecb10c0ecb97583c8d814242fca5ef1100b23 | refs/heads/master | 2020-04-02T22:10:37.233766 | 2018-04-01T09:33:46 | 2018-04-01T09:33:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,667 | py | from socket import *
from threading import Thread
import logging
import sys
from blockchain.common.utils import bytes_to_text
from blockchain.common.encoders import transaction_decode
SERVICE_NAME = 'Transaction Listener'
BUFFER_SIZE = 1024 * 1024
BACKLOG_SIZE = 3
class TransactionListener(Thread):
def __init__(s... | [
"rob@codebox.org.uk"
] | rob@codebox.org.uk |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.