blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
38a8e20fc7ef3ca1544ce24c9cc622c673959db8 | 889567668a39d069793bec6fc91b7a8b7b998f3a | /courses/migrations/0007_video_learn_times.py | 51e4cfd6a6a2544fb32c9710d99878ee20ec0edc | [] | no_license | SheriffHood/yxonline | 4b5637fd685492bb8d99b9228ac182b2bc7b7dfd | 476d864ecfc924d392ae5478f9f68493057f37fa | refs/heads/master | 2020-03-23T17:26:14.331322 | 2019-01-13T13:42:16 | 2019-01-13T13:42:16 | 141,859,919 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | # Generated by Django 2.0.7 on 2018-10-30 22:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('courses', '0006_auto_20181023_0612'),
]
operations = [
migrations.AddField(
model_name='video',
name='learn_times',
... | [
"h77max@163.com"
] | h77max@163.com |
bf342befc93f6e874f5a82c83db670ea0dcd7f9b | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/numpy/2016/8/system_info.py | 014223b745ac3bc735add615d462bac5093d83af | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 84,885 | py | #!/bin/env python
"""
This file defines a set of system_info classes for getting
information about various resources (libraries, library directories,
include directories, etc.) in the system. Currently, the following
classes are available:
atlas_info
atlas_threads_info
atlas_blas_info
atlas_blas_threads_info
... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
3ad2e3be5bbf20a847adee6493f968ebf3c1c699 | f3685b0ec3ed8302d92e8b3d7cb6984bf6b4ec2f | /black_jack_auto.py | a6a5b0f7b58a8168eb2fcd76313fcdbe1f65d45b | [
"Unlicense"
] | permissive | TomareUtsuZo/python_learning | 86a9ff97ebe129e31f78b1dfa39ca1a9ac89d928 | fb73abc4efb8d2352a2280c3043c43af6746491b | refs/heads/main | 2023-07-07T23:36:08.837648 | 2021-08-07T14:05:57 | 2021-08-07T14:05:57 | 389,968,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,010 | py | from random import shuffle
def cls(): print ("\n" * 100)
BLACK_JACK_PAYS = 2.0
class Player:
def __init__(self, name, hand=[], money=100):
self.name = name
self.hand = hand
self.score = 0
self.money = money
self.bet = 0
def __str__(self):
print(f'... | [
"noreply@github.com"
] | TomareUtsuZo.noreply@github.com |
ca72163d672b64afaf83f1f5891e2c4f1c2d573c | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Shapely_numpy/source/numpy/doc/structured_arrays.py | 5289e6d0bd859f00231e416fc338c3c4d6e6ee3e | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 11,442 | py | """
=================
Structured Arrays
=================
Introduction
============
NumPy provides powerful capabilities to create arrays of structured datatype.
These arrays permit one to manipulate the data by named fields. A simple
example will show what is meant.: ::
>>> x = np.array([(1,2.,'Hello'), (2,3.,"Wo... | [
"ryfeus@gmail.com"
] | ryfeus@gmail.com |
d5102b50bc26edc64a913b2c41843f190397541c | 6a710916cf2b49e1210b108e03b114779967a5a8 | /crop-AI/cropAI/dashboard/views.py | a82d4760a6a32cff30464e999dfb41c4527fcafa | [
"MIT"
] | permissive | selvvm/crop-recommendation-system | 58f2b83f7ceba01fa35fe49adf22570734268a72 | bc8f91cb222ebce36aec881f72fdd85e5054e528 | refs/heads/main | 2022-12-30T22:27:00.253575 | 2020-10-16T21:07:00 | 2020-10-16T21:07:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | from django.shortcuts import render
# Create your views here.
def index(request):
return render(request, 'dashboard/landingpage.html') | [
"sanket.mhatre@vit.edu.in"
] | sanket.mhatre@vit.edu.in |
5d9e0075253122f9ebcf9e7151e8c02a54560e84 | 6ae747b190fd05491a865b55a5c8c5577b9c3e88 | /options.py | 058e1888bd7b6f1b214ec9d1915026f9ba99fb4d | [] | no_license | Ponts/MAESTRO | c720938317ef6bd1ce9a4d3f4ff13ffde6fbaff4 | cea40e3ff0bd59fea19deec07f1f7f9797e90b33 | refs/heads/master | 2020-04-30T12:49:56.920146 | 2019-06-14T06:43:44 | 2019-06-14T06:43:44 | 176,836,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 681 | py | options = {
"filter_width": 2,
"sample_rate": 16000,
"dilations": [1, 2, 4, 8, 16, 32, 64, 128, 256, 512,
1, 2, 4, 8, 16, 32, 64, 128, 256, 512,
1, 2, 4, 8, 16, 32, 64, 128, 256, 512,
1, 2, 4, 8, 16, 32, 64, 128, 256, 512,
1, 2, 4, 8, 16, 32, 64, 128, 256, 512],
"residual_channels": 32,
... | [
"pbrink@kth.se"
] | pbrink@kth.se |
4fd59a1ac585a5f6e6b546108569a098170199e8 | 3c8df871fe6d24872bc0fdf8d43d4b8e25cc7a79 | /SkillFile1.py | 8ddef8cd615412b598c7ddbd2df0ad6d2b15ddaa | [] | no_license | Wechtomka/SkillBox | 218ac19718db00e99e80ca3ae342a0a3ab407e6e | 31eb2ee03ce5267c8b766ad9e5acb4d5e640364e | refs/heads/master | 2021-03-05T01:12:59.659956 | 2020-03-09T15:44:25 | 2020-03-09T15:44:25 | 246,083,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | import random
n=25
a= [0]*n
for i in range (n):
a[i]= random.randint(0,10000)
print(a)
# vot
| [
"valeravechtomov@gmail.com"
] | valeravechtomov@gmail.com |
3198301171ba3b98d74bf2f7f604ae48fff451a0 | 80dde7133759f3f7f006babc90c377edfbda2390 | /what conv layers see/Activation_maximization_using_keras_vis_toolkit.py | d8804b86e356cf285603839dee3e6c0041ff6abf | [] | no_license | akash027/CNN | b8146e062e8901557edbc473a8c2607cf736adeb | 79cab06e12cf5da52c7c9c32456c791e4df2c9e2 | refs/heads/master | 2021-05-23T09:51:35.662520 | 2020-07-16T13:16:49 | 2020-07-16T13:16:49 | 253,229,652 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,086 | py | import numpy as np
import keras
from keras.datasets import mnist
from keras.models import Sequential, Model
from keras.layers import Dense, Dropout, Flatten, Activation, Input
from keras.layers import Conv2D, MaxPooling2D
from keras import backend as K
batch_size = 128
num_classes = 10
epochs =1
#input image dimensi... | [
"noreply@github.com"
] | akash027.noreply@github.com |
a582091097bfd7e00fa4a9f6681f38995dda1943 | 37313e86e23cd6ad46afa84ca5399c7535079dd7 | /TheLab_03_TextInput/main.py | 100caf6ce96b04119c4991b15929bf3887a42744 | [] | no_license | liloFashion/TheLab_firstSteps | 5d84234c514fceb92735062145f657f460acd24e | c41632f928f2211902aeb53bbd2926985c9c48dc | refs/heads/master | 2023-08-26T12:10:01.128075 | 2021-11-11T11:05:24 | 2021-11-11T11:05:24 | 426,171,357 | 0 | 0 | null | 2021-11-11T11:05:25 | 2021-11-09T09:44:06 | Python | UTF-8 | Python | false | false | 1,529 | py | # from io import StringIO
import os
import sys
from pathlib import Path
from kivy.app import App
from kivy.uix.gridlayout import GridLayout
# from kivy.uix.togglebutton import ToggleButton
from kivy.properties import StringProperty, BooleanProperty
root_path: Path = os.path.split((os.path.dirname(__file__)))[0]
sys.... | [
"lisaloerinci@gmail.com"
] | lisaloerinci@gmail.com |
7b55e1953289ae47bc0cf1c4b4d91e477896cb45 | c9638b7a7898ffdd86ec31a778b0e52ded5fb68a | /Assignment05_Starter.py | ab4bf12633cd67e6ad0df25da7af61c8ec3eb8e4 | [] | no_license | roslynm/IntroToProg-Python | 9660469365ef78fceddafb328f7ae806af154467 | 6c5db22811b5c47bf67e3fc862ddd7c86d5100e1 | refs/heads/master | 2022-07-13T22:05:28.399021 | 2020-05-16T18:24:33 | 2020-05-16T18:24:33 | 264,487,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,862 | py | # ------------------------------------------------------------------------ #
# Title: Assignment 05
# Description: Working with Dictionaries and Files
# When the program starts, load each "row" of data
# in "ToDoToDoList.txt" into a python Dictionary.
# Add the each dictionary "ro... | [
"noreply@github.com"
] | roslynm.noreply@github.com |
a0b40c1e4cfc595d8bc11fa49ffb5e77e2d600c3 | 238ebc43c3d54d2842de75fd8ddf0b0b0261906e | /SimulateData.py | eb704550b17512faa02f5b718ec6ed67b6f373b5 | [] | no_license | johndowen/CrossMgr | 17c114ab80382b24ce0cdd228782bd000f513ea8 | fc9eaf8ae5d4919cef3f1a3680c169be70cf356b | refs/heads/master | 2021-06-28T03:14:41.682880 | 2017-09-17T00:35:26 | 2017-09-17T00:35:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,686 | py | import random
import bisect
from Names import GetNameTeam
def SimulateData( riders=200 ):
# Generate random rider events.
random.seed( 10101021 )
raceMinutes = 8
mean = 8*60.0 / 8 # Average lap time.
var = mean/20.0 # Variance between riders.
lapsTotal = int(raceMinutes * 60 / mean + 3)
raceTime = mean * laps... | [
"edward.sitarski@gmail.com"
] | edward.sitarski@gmail.com |
4638fdbdc7160647895db0fde527788b32829a33 | bc95e6b5d5edbde9cdb9ea06cc51f2a171eb1939 | /Ejercicios_Lambda/ejercicios3.py | 00ebf77d94b422f7d5ade7993eee360c19c05cdf | [] | no_license | Pradas137/Python | 18e0418c735765da5964319cbe85bed9ac9cce6b | ccd3624bf95ca2379593ef7c9085abd122b5dd37 | refs/heads/main | 2023-03-12T01:54:24.463332 | 2021-03-02T20:00:18 | 2021-03-02T20:00:18 | 338,836,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | """
Ordenar una llista de strings per la segona lletra de cada string, utilitzant el mètode sort/sorted i la funció lambda:
Exemple:
mesos = ['gener', 'març', 'abril', 'juny', 'agost']
SOLUCIO:
mesos = ['març', 'abril', 'gener', 'agost', 'juny']
"""
mesos = ['gener', 'març', 'abril', 'juny', 'ag... | [
"pradas137@gmail.com"
] | pradas137@gmail.com |
07acda20de91fccf2fd365140062d327451bc05f | d6ea1431a1809ca532b4ac61e4e1191abe129e45 | /flaskr/blog.py | 5836f95edabbf05ea162617ac548afe9e3c380cf | [] | no_license | jpeter17/Blog-Flask-MongoDB | 414b4556d4e492185c5deefe4b90d747cb7e7aa9 | 4a5ddd967517726fe0a9658683781b70a4524f3d | refs/heads/master | 2020-05-18T20:32:54.690536 | 2019-05-05T02:49:02 | 2019-05-05T02:49:02 | 184,637,267 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,602 | py | from flask import (
Blueprint, flash, g, redirect, render_template, request, url_for
)
from werkzeug.exceptions import abort
from flaskr.auth import login_required
from flaskr.db import get_db
import datetime
from bson import ObjectId
bp = Blueprint('blog', __name__)
@bp.route('/')
def index():
db = get_db... | [
"jakepetersen1221@gmail.com"
] | jakepetersen1221@gmail.com |
62b3e8c98f69413f4928500748c9d216dbf81623 | 9ac31b906922cfddc223354f90aea8d9c2d91877 | /puntuacionCondicional.py | a3435ff1de3bccdf74dff03a3bdf673bdfe8f86a | [] | no_license | VAEH/TiempoLibre | 93210c80e2457d358500b790ac795975997fc7f3 | 0994cd3abb9f815cd8e9eaa485f53135f46088ca | refs/heads/master | 2023-05-01T16:42:23.355973 | 2021-05-17T06:25:08 | 2021-05-17T06:25:08 | 298,337,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | try:
score = float (input("Enter Score: "))
if score >= 0.0 and score <=1.0:
if score>=0.9:
print('A')
elif score >=0.8:
print('B')
elif score >= 0.7:
print('C')
elif score >= 0.6:
print('D')
else:
print('F... | [
"jpnewton12@gmail.com"
] | jpnewton12@gmail.com |
f954afca286ead0f30eadda260fb7ed77017edd1 | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/FJZJJMM/YW_FJZJJMM_SZSJ_258.py | e1df1921dc57e77398bc293709c609467ced5724 | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,338 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test/service")
from ServiceConfig import *
from mainService import *
from QueryStkPriceQty import *
from log import *
sys.path.append("/h... | [
"418033945@qq.com"
] | 418033945@qq.com |
bdb391dcd7e614ad7a0fca39d8eb44b3a36c675e | d4a2ec804605c3adc1748be482d9f4ada770d2f0 | /packaging/models.py | 8a86a591afd49ca1fc61fb0fe2b0a5ec45213393 | [] | no_license | premierrufus/localbrewery | 2af9cc568f7fbdbf1c5e90a066d567859c626e9c | 58d87be09877dd0966cb1e291fa5c90449bb8a8d | refs/heads/master | 2021-09-06T18:26:38.693888 | 2018-02-09T17:10:00 | 2018-02-09T17:10:00 | 119,450,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,760 | py | from django.db import models
from django.utils import timezone
from decimal import *
from brewing.models import BrewingEvent
# Global Variables
SEP = ' | '
# Methods
def to_bbl(f, q):
"""
Takes two arguments: format(f), quantity(q)
Returns value(v) as a Decimal object, rounded to two places.... | [
"banded.gabriel@gmail.com"
] | banded.gabriel@gmail.com |
7933e38da4d9057e66aacf8c9acc9ba0b3e8b4e3 | af61c369e3550643d47fba2445d9f279e412e15c | /basicSprite.py | 2f0bfb2df06b261977e9f782873c230385348b8d | [] | no_license | Rabidza/pygame_learningpython | 45e900b5a8458a14e7df317de16a9e7cd18737fa | ef58d9ca977e2ea1406200ce04c3a32a440be66a | refs/heads/master | 2020-06-03T15:13:38.419015 | 2015-02-18T16:16:30 | 2015-02-18T16:16:30 | 30,924,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 738 | py | import pygame
from helpers import *
class Sprite(pygame.sprite.Sprite):
def __init__(self, centerPoint, image):
pygame.sprite.Sprite.__init__(self)
# Set the image and the rect
self.image = image
self.rect = image.get_rect()
# Move the rect into the correct positio... | [
"neillhenning@gmail.com"
] | neillhenning@gmail.com |
5ef27843efde23d377b3ecb8efc33cea986f42d5 | 498b0eb2c59efa970fe7d7d1ef9e99511ddae4ce | /server/vcr-server/subscriptions/utils.py | ac1c99a20c0050e2c685850b2cf26e12a7d33124 | [
"Apache-2.0"
] | permissive | nrempel/indy-catalyst | dba130879f88de00ef137d85242d1f4209c53d98 | c54e8258d49b6cad5d9f175d6b2beddbb80d16f7 | refs/heads/master | 2021-07-23T03:41:30.394817 | 2020-05-19T22:18:04 | 2020-05-19T22:18:04 | 168,226,204 | 2 | 0 | Apache-2.0 | 2020-01-13T18:57:49 | 2019-01-29T20:48:15 | Python | UTF-8 | Python | false | false | 1,757 | py | import logging
import os
import threading
from enum import Enum
from .models.CredentialHookStats import CredentialHookStats
LOGGER = logging.getLogger(__name__)
class HookStep(Enum):
FIRST_ATTEMPT = "first_attempt"
RETRY = "retry_attempt"
RETRY_FAIL = "retry_fail"
class TooManyRetriesException(Excepti... | [
"emiliano.sune@gmail.com"
] | emiliano.sune@gmail.com |
6b36768e7c4ad8bb652b0eac3b2eef7fd91dc64a | dfd43751bc89a8662a3ee37120412176992bb5e4 | /codes/flower_cls/solver.py | 8694129db89b8e2bdbfd9a8530cd30c27bfa29d7 | [] | no_license | AbinayaKumar25/pytorch-exercise | 90ea7c20bd07a90a204eb78f8785c1f876a65879 | 219d8818703687687a4de562c737c833e6fe534d | refs/heads/master | 2022-05-27T12:24:32.338401 | 2020-05-03T15:24:48 | 2020-05-03T15:24:48 | 258,814,500 | 0 | 0 | null | 2020-04-25T15:51:54 | 2020-04-25T15:51:53 | null | UTF-8 | Python | false | false | 3,087 | py | import os
import numpy as np
import torch
from torch.utils.data import DataLoader
from net import Net
from dataset import Dataset
class Solver():
def __init__(self, args):
# prepare a dataset
self.train_data = Dataset(train=True,
data_root=args.data_root,
... | [
"nmhkahn@gmail.com"
] | nmhkahn@gmail.com |
7ceab98892b6175d04fc3b8f5a0ecab1b1ebf58c | 102c11d9412f54eb8eddb987c45785a2fb78a45a | /cnn_lstm.py | 278826b04b88f494da336244bdaff9b109caee29 | [] | no_license | hujianhang2996/neural_style_transfer_tensorflow | fd83ea2161225eacf016587f7f2e25e892e7fdf9 | 27075fb38872b96284ca31fc8061e380ddee08bc | refs/heads/master | 2021-05-14T00:35:51.041463 | 2018-02-07T12:15:41 | 2018-02-07T12:15:41 | 116,544,479 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,589 | py | import tensorflow as tf
import numpy as np
from tensorflow.contrib.rnn import BasicLSTMCell
seq_length = 48
X = np.random.rand(10, seq_length, 1)
Y = np.random.rand(10, 2, 1)
df_graph = tf.Graph()
with df_graph.as_default():
batch_size = tf.placeholder(tf.int32, [])
input_X = tf.placeholder(tf.float32, (None... | [
"hujianhang2996@sina.com"
] | hujianhang2996@sina.com |
91a0cbaa942ca70868ca7d37008a1923d0fb2ee7 | 9a8ee2d10e54229b0a7d528133398bff95456dcb | /Python/Desafio015.py | 3e221c43332407f0d788e30c81692f323327d333 | [] | no_license | ArielKollross/curso_em_video | c7a381e4caa1ee4a0e5fda7d87d71fe83b5fe2c7 | 978b5d77359edf046977f722c215eaf435723716 | refs/heads/master | 2020-07-04T19:38:52.017538 | 2020-02-14T02:44:16 | 2020-02-14T02:44:16 | 202,391,908 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | # Desafio 015: leia quantidade de dias e Km rodado, o custo R$ 60/dia além do custo de R$ 0.15/km
dias = int(input('Numero de dias utilizados: '))
km = float(input('Numero de Km rodados: '))
alugel = 60*dias + km*0.15
print('O valor total a ser pago é de: {:.2f}'.format(alugel)) | [
"noreply@github.com"
] | ArielKollross.noreply@github.com |
a6a29c15db48347b902092bbe69ff4cf8a047f4b | 5346d8161e1cfcc57da37b09736f46d00fc58460 | /fasta_majority_consensus_DIR.py | 57e1eac74bb11d9f9c1b84700745f1d366b6ba09 | [] | no_license | mscharmann/tools | b4dbf7a99f9609ea7968faf3acf0808898aa2202 | 8c7fad9e38ece5b8f57176db6e605ea6a520fffd | refs/heads/master | 2022-10-26T13:50:36.869517 | 2022-09-27T15:47:26 | 2022-09-27T15:47:26 | 130,751,495 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,321 | py |
import sys, os
def read_fasta (infile):
fasta_dict = {}
seq = ""
name = "dummy"
with open(infile, "r") as F:
for line in F:
if line.startswith(">"):
fasta_dict[name] = seq
name = line.lstrip(">").rstrip("\n")
seq = ""
else:
seq += line.strip("\n")
# last record:
fasta_dict[name] = seq... | [
"scharmann@Papyrus-Scharmann.local"
] | scharmann@Papyrus-Scharmann.local |
b4d58ab6626006d3f890942f673b4ca330f006bd | 8144255b44c1c1f8cab341606a7a611fca201f3e | /e3.py | 7af04d458309c8379d5d6f08a63d23dc19272d45 | [
"Apache-2.0"
] | permissive | piyushptiwari/python-programs | 720e9c28e3fd4bceddc9795c699c869ee6e9a06c | 5dba0ef4e77f1d2528f510327de4224b60b1d4ba | refs/heads/master | 2021-09-17T09:56:11.141134 | 2018-06-30T10:55:41 | 2018-06-30T10:55:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | try:
raise NameError("hi there") #Raise Error
except NameError:
print("an exception")
| [
"noreply@github.com"
] | piyushptiwari.noreply@github.com |
343b803e15102a3375ee6ccb4bb67ca91238249e | 562c79cf793f4f138cff206d718b5ce4a48f2add | /Catalog/urls.py | 3059dc2b7a9a20e23a43caa37b26b7a7780a3ecc | [] | no_license | iamhunter/Worthwhile_Django | 5bd151b13503809a6076ae3bba23b267ad9b299c | a7f72dab288637e5d107331bde76850656593188 | refs/heads/master | 2021-01-21T11:24:00.939507 | 2017-03-02T19:15:26 | 2017-03-02T19:15:26 | 83,571,339 | 0 | 0 | null | 2017-03-01T19:24:23 | 2017-03-01T15:42:08 | Python | UTF-8 | Python | false | false | 463 | py | from django.conf.urls import url
from django.conf import settings
from django.conf.urls.static import static
from . import views
urlpatterns = [
url(r'^courses/$', views.index, name='index'),
url(r'^add/$', views.add, name='add'),
url(r'^courses/(?P<course_id>[0-9]+)$', views.detail, name='detail'),
... | [
"andr3whunter@gmail.com"
] | andr3whunter@gmail.com |
49359e0023eda45fba60e91197856055de571f96 | aa9f771c21c6d6b40be5f079f7ad7144a5129a7a | /optimus/input/variable_input_type_adapter.py | efbc561a4f6450b9933a5ffc9fff30bce4fe70de | [
"MIT"
] | permissive | sobhanlenka/optimus | 9b9476519c6c31c29fdb62ef8637f39f9eeae084 | ed02bffc4afdde2c80db29e1ac3356f27e8d5475 | refs/heads/master | 2022-10-31T16:34:48.068594 | 2018-06-22T18:33:41 | 2018-06-22T18:33:41 | 138,263,902 | 0 | 1 | MIT | 2022-10-20T13:49:25 | 2018-06-22T06:30:00 | Python | UTF-8 | Python | false | false | 1,890 | py | from __future__ import unicode_literals
from optimus.input import InputAdapter
from optimus.conversation import Statement
class VariableInputTypeAdapter(InputAdapter):
JSON = 'json'
TEXT = 'text'
OBJECT = 'object'
VALID_FORMATS = (JSON, TEXT, OBJECT, )
def detect_type(self, statement):
i... | [
"sobhanlenka@gmail.com"
] | sobhanlenka@gmail.com |
a6016ad52f16aa6305c950af46cef83b7d1156de | 220c292659676409854d9b35f23cefd31ea418d5 | /JAN 19/Assignment/Conditional statement & Loop/Q6.py | 400d0c8e759e53478e421a2e8fbe2873932638fe | [] | no_license | nisheshthakuri/Python-Workshop | df096c3de717b91ec4452341e8de77e54778f53d | 22fb9522076042551a6028d9b0a306d1917f21dc | refs/heads/master | 2021-10-21T02:50:04.406258 | 2019-03-02T13:59:10 | 2019-03-02T13:59:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | Q.Program which takes two digits m (row) and n (column) as input and
generates a two-dimensional array. The element value in the i-th row and j-th column of the
array should be i*j.
Solution:
row_m = int(input("Input number of rows: "))
col_n = int(input("Input number of columns: "))
_list = [[0 for col in rang... | [
"noreply@github.com"
] | nisheshthakuri.noreply@github.com |
67a20ce0e3e82ec860d6764209e162fd4fe77b4d | 00cb405170a6a9572bef0ec8f373813eada08c03 | /Game Structure/geometry/version5/myentitygroup.py | 48d7e8cdcb9636189cb9f36e9451420877bcb85d | [] | no_license | MarcPartensky/Python-Games | c0ad2857be5832d6029642bb0a96bc8e403a12e3 | ebfcaaf4a028eddb36bbc99184eb3f7a86eb24ed | refs/heads/master | 2022-09-03T00:04:16.402288 | 2022-08-12T17:10:22 | 2022-08-12T17:10:22 | 166,606,022 | 2 | 1 | null | 2021-03-07T16:20:15 | 2019-01-19T23:56:04 | Python | UTF-8 | Python | false | false | 11,746 | py | from mymanager import Manager
from myentity import Entity
from mymotion import Motion
from mygroup import Group
import numpy as np
import random
class EntityGroup(Group):
"""An entity group is a group of entities. Entity specific features are added."""
@staticmethod
def getCollided(group1, group2):
... | [
"marc.partensky@gmail.com"
] | marc.partensky@gmail.com |
39622383718672dada6c3f167d95412716c9fdcf | 0e9bb62e0d964fd9019b5e03d624a0990901d554 | /misc/Final_Merge/merge_method.py | 99413132862c38c4ff1519e56ec6d8c73b2d822a | [] | no_license | faramarzmunshi/app_classification | d99c4d85b25870d966fccd6e837a45baa14111fc | 81161bf808ff505a9ef2d8221d05f6fff6b8e15f | refs/heads/master | 2021-08-28T08:21:27.277145 | 2017-12-11T17:40:25 | 2017-12-11T17:40:25 | 113,754,780 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,830 | py | # ************************************************ Import Libraries ****************************************************
import numpy as np
import random
np.random.seed(813306)
from pprint import pprint
from keras.models import Model
from keras.layers import Input, Dense, Dropout
from keras.utils import np_utils
imp... | [
"faramarzmunshi@gmail.com"
] | faramarzmunshi@gmail.com |
2ef45d0901e7aa9952c147ec2d1daccaef373028 | e5d130e183b5dea1b7aad23a047c703fa0d2b3bf | /lightbus/transports/pool.py | b680ac6858890624f59a6c14e96bddbe072a9cae | [
"Apache-2.0"
] | permissive | adamcharnock/lightbus | 4a86428b8203bfe98f77a32375ac961ef398ce16 | cf892779a9a9a8f69c789ffa83c24acfb7f9a336 | refs/heads/master | 2023-08-26T04:19:39.395735 | 2023-08-23T11:07:44 | 2023-08-23T11:07:44 | 94,617,214 | 193 | 22 | Apache-2.0 | 2023-08-10T21:21:51 | 2017-06-17T10:39:23 | Python | UTF-8 | Python | false | false | 7,438 | py | import threading
from inspect import iscoroutinefunction, isasyncgenfunction
from typing import NamedTuple, List, TypeVar, Type, Generic, TYPE_CHECKING
from lightbus.exceptions import (
TransportPoolIsClosed,
CannotShrinkEmptyPool,
CannotProxySynchronousMethod,
CannotProxyPrivateMethod,
CannotProxy... | [
"adam@adamcharnock.com"
] | adam@adamcharnock.com |
3e3bc699374bb3c06ea7bdac37bd5b7b1e0caeac | 95947b689079ef8af9a9233e244599b3f5b06300 | /install.py | 083d661404384a50be5bbcaa7e13be68346d0604 | [] | no_license | DaveDaCoda/YAKSR | 87f96ba526ec4bb14ab48f26a64c6508f886df75 | 7201c0ed6a24fe6f1b4520016f75ae2fdffc7c22 | refs/heads/master | 2021-01-01T06:19:00.828800 | 2017-07-07T21:03:06 | 2017-07-07T21:03:06 | 97,404,700 | 2 | 0 | null | 2017-07-16T19:03:51 | 2017-07-16T19:03:51 | null | UTF-8 | Python | false | false | 846 | py | #!/usr/bin/python
import os
from subprocess import call
currentdir=os.getcwd()
os.chdir(str(currentdir))
os.system("chmod +777 AptGetInstalls.sh")
call(["sh", "AptGetInstalls.sh"])
if (os.path.isdir(str(currentdir)+"/ToolBox")) is False:
os.makedirs(str(currentdir)+"/ToolBox")
os.chdir(str(currentdir)+ "/Lists")
... | [
"noreply@github.com"
] | DaveDaCoda.noreply@github.com |
cce96bf74aaa3c84217177403fdeb84fb37ffa2d | f066cdd363fcf0c90575cc7c6ed3931c9687077f | /pow.py | c920234683e60a75a88f3e862a6d0cbb01fec281 | [] | no_license | kalaiselvikandasamy/python | 33efa21d031625be6805e61ebdf43e842f88ece4 | 6eaef0a72d9cc58fc38bedae2f35ddca00b85db4 | refs/heads/master | 2020-06-28T09:06:32.208812 | 2019-08-16T09:01:00 | 2019-08-16T09:01:00 | 200,194,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | x=int(input("enter the number:"))
n=int(input("enter the times:"))
z=pow(x,n)
print("the value:",z)
| [
"noreply@github.com"
] | kalaiselvikandasamy.noreply@github.com |
b7455aa65c1f8d4d64eb46619c21e6a3c2fc508c | 29adee7d539002d8adf56b9772958c2fec1e66a0 | /datascience/farToCel.py | 69cecc9a23031b5941aa20e9ad5e13adeb6676aa | [] | no_license | ChivukulaVirinchi/python-virinchi | 4e71227c162b8d8eac2796187f257e136b710038 | 5e7a39f42b42900ecf54fe169100764b7ac79d23 | refs/heads/master | 2022-04-23T10:23:24.090397 | 2020-04-18T11:55:26 | 2020-04-18T11:55:26 | 256,741,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | far = float(input('Enter the temperature in Farenheit\n>>>'))
cel = (far - 32) *5//9
print('You entered Farenheit as', far, 'and the celcius value is', cel) | [
"virinchi@gurujada.com"
] | virinchi@gurujada.com |
5570b7f2b7f760b10e2f1f04b14e793a57114f75 | 2635ed5a8fef847f4740ae6d40769ff859563a45 | /python-tooling/2-handlerror-tool/handlerror | 06e13e559927ecdb4d59089d378903e80e1fd92a | [] | no_license | LuisDio/Cloud-infra-templating | 19db9c5000f5b5a24fd283f287f4c530021e7d68 | dee785290e1d0dc2d1fa4cd463febf9a47f259ef | refs/heads/master | 2022-10-18T22:53:49.646853 | 2020-06-12T20:05:43 | 2020-06-12T20:05:43 | 259,060,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 808 | #!/usr/bin/env python3.6
import argparse
# Build Parser object
parser = argparse.ArgumentParser(description='Read a file in reverse')
parser.add_argument('filename', help='the file to read')
parser.add_argument('--limit', '-l', type=int, help='the number of lines to read')
parser.add_argument('--version', '-v', action... | [
"luis.diolindo@gmail.com"
] | luis.diolindo@gmail.com | |
18ae13ab5fe9a37d93a1481fdd931968fef0aec0 | 76393fbde45bf9261ee884f61a3f1caa3ee4ecc4 | /Assignment2_AustinGailey.py | af5bb122262763b70625885757a2013cfcd12eab | [] | no_license | AustinGailey/CS3120 | ff3f410cf1d10541cff776eafe39134c897102cd | 0767cb0bcab763f176584192f445ee9d8d46e52b | refs/heads/main | 2023-06-25T10:10:14.452775 | 2021-07-31T00:52:43 | 2021-07-31T00:52:43 | 362,570,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,949 | py | # HW 2
# Austin Gailey
# 03/16/21
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from sklearn.linear_model import LogisticRegression
from sklearn.model_selection import train_test_split
from sklearn import metrics
from sklearn.metrics import precision_score
from sklearn.metrics import confusion_... | [
"austingailey@yahoo.com"
] | austingailey@yahoo.com |
23d6d5c985449a9537a51ae1e5dcbd2e1c388212 | 893a83cf9b42ebd6b66d92fe037af10952ac671b | /PythonPC/catchdy/into_mysql.py | 3e84fd1954ed02e07bd03aecdcff9110e5f30968 | [] | no_license | Nigihayamiim/StudyPython | 777f3cd7b55eaafb08f0f8e227a59fe1e87efafd | d2fe2e1fed74df8fdee30839d575421e0e0856fe | refs/heads/master | 2023-01-08T12:55:47.726155 | 2020-11-11T08:57:16 | 2020-11-11T08:57:16 | 264,388,409 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,727 | py | import re
import warnings
from queue import Queue
from threading import Thread
from time import sleep
from random import randint
import pymysql as pymysql
import requests
from fake_useragent import UserAgent
class CrawlInfo1(Thread):
def __init__(self, url_queue):
Thread.__init__(self)
self.url_q... | [
"xzyim@outlook.com"
] | xzyim@outlook.com |
3799a3db294967a1c44716bf46c71fb49f651f0c | 3f1c4553c1b2e39351a501148022a66b6f5e884a | /blog/migrations/0001_initial.py | 8e4f641285bbce9294bec4b4b8cf16432c4a5e6b | [] | no_license | 6110110556/3SB04 | 94ccf5b1ecd69fe33d2c66d02913e20b99197ef8 | 46291a04a057b697d48df62de214480e630ac6ec | refs/heads/master | 2023-02-19T04:46:35.500450 | 2021-01-23T13:46:18 | 2021-01-23T13:46:18 | 332,205,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 987 | py | # Generated by Django 2.2.17 on 2021-01-23 11:58
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AU... | [
"6110110556@psu.ac.th"
] | 6110110556@psu.ac.th |
a7259e3e503b786aac94055c070c70da31487417 | 5af1b57c6e883b62f51de0def33cf5a313f9e549 | /add_bottle.py | 91e5a5fd40f3ab4a38092e7efd6f18e728697d97 | [] | no_license | jayanth0906/testscriptsims | ad32a8beab707e8defb35a86e7b1ae534a0611bd | c6cc0ae2091e0bf92eb9d86ecabb50135b57093c | refs/heads/master | 2020-10-02T02:17:13.834030 | 2019-12-12T19:12:09 | 2019-12-12T19:12:09 | 227,678,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,867 | py | import unittest
import time
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.common.exceptions import NoSuchElementException
class ims_Test6(unittest.TestCase):
def setUp(self):
self.driver = webdriver.Chrome()
d... | [
"42557399+jayanth0906@users.noreply.github.com"
] | 42557399+jayanth0906@users.noreply.github.com |
e8e2543ebf127df609e14150e7d324f892000270 | 899d52ea074189f5b55c0085a614217692c5d1ba | /Hand-Drawing-Classification-on-Google-Quick-Draw--master/resnet.py | d058be242ff22f73ff39c977d1be6826c3bbcacb | [] | no_license | robert-huang/stat441-project-quickdraw-classification | 7191b48e5250b15a451475e732e0cd3d2debd6d3 | ee80926f55e7904ab1a1390bec9db9308cc86cfe | refs/heads/master | 2022-12-02T04:41:37.454068 | 2020-08-15T06:35:44 | 2020-08-15T06:35:44 | 287,683,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,627 | py | import torch
from torch import nn
from torch import autograd
class ResNet(nn.Module):
def __init__(self, num_stages=4, blocks_per_stage=4, block_size=2,
fc_size=512, init_num_filters=32, img_dim=28, num_classes=10):
super().__init__()
kernel_sizes = [11, 5, 3]
def consume_kerne... | [
"robert054321@hotmail.com"
] | robert054321@hotmail.com |
18a0d9873f18f71f270141f43088cee487f49f14 | 73ccbb899ab326bfa8c244cd81537fb584cafeca | /beetlebag.py | fc6e7fe223cdafaffe8c179f131f1b4de1ce4f93 | [] | no_license | nebulaf91/ieeextreme-11.0-codes | 725dc3df477364ba4c83515b1b825872a6eb2d17 | 559611b7278d406e892887934bdc09145032a306 | refs/heads/master | 2021-07-16T02:38:11.380849 | 2017-10-15T15:03:27 | 2017-10-15T15:03:27 | 107,022,137 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 581 | py | # not enough time. use simple greedy to try luck
import numpy as np
t = int(input())
for tt in range(t):
out = 0
c, n = map(int, input().split())
weights = np.zeros(n, dtype=int)
power = np.zeros(n, dtype=int)
for i in range(n):
weights[i], power[i] = map(int, input().split())
# print(power)
while(p... | [
"stopf91@163.com"
] | stopf91@163.com |
c8da18d00d1a1e9fb12e345f57a5586080b20056 | 212ad01b0951118001eb7a1643441f6492e5e070 | /ask.py | d7971de0d936f76d9756bd1e16fd4f5920895afb | [] | no_license | przywartya/sms-web | f4ca036f783e61cdbe0b05838396eb4509a2ff6b | a2d371703d8dfdbf8411eef957718ba9ea6787a2 | refs/heads/master | 2021-01-10T04:42:15.745098 | 2016-03-20T16:50:20 | 2016-03-20T16:50:20 | 54,328,152 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,507 | py | """ Main part of Ask """
from werkzeug.wrappers import Request, Response
import logging
import requests
from reply import get_reply
# Set up output file for logs
logging.basicConfig(filename='/Apps/MAMP/logs/request.log', level=logging.INFO)
# Make requests output only warnings or errors
logging.getLogger('requests')... | [
"przywarty.it@gmail.com"
] | przywarty.it@gmail.com |
3902901ad6c2c5b863e4a15e058503566e01aac6 | 4a82bea4e903b35be80f8a8a9196a0193ee5769e | /test_arduino_serial.py | 745f7a16815ea20cb26cd64d36a6de7da0da94da | [] | no_license | yunzhongxicao/mmwave_radar | a3e56376678de6e4c6ee20c8f461f97c1bd2bd4b | 67f69bc6b1d860537f4a91b7f204abd52ef1a241 | refs/heads/master | 2023-04-03T10:56:56.955040 | 2021-03-29T02:13:17 | 2021-03-29T02:13:17 | 336,739,823 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 482 | py | """
@File :test_arduino_serial.py
@Author:dfc
@Date :2021/3/1220:25
@Desc :这里只是测试利用python进行串口通信可行性
"""
import serial
# 打开串口
serialPort = "COM6"
baudRate = 9600
ser = serial.Serial(serialPort, baudRate, timeout=0.5)
demo1 = b'0'
demo2 = b'1'
demo3 = b'2'
while 1:
c = input('请输入指令:')
c = int(c)
if c == ... | [
"yunzhongxicao@sjtu.edu.cn"
] | yunzhongxicao@sjtu.edu.cn |
6f9cd1e5b7498d442628bca6592c84f90f1d02c0 | 82f993631da2871933edf83f7648deb6c59fd7e4 | /w1/L1/12.py | 4e40656a6ec9bba93b7855da255ff4c9ddd100ee | [] | no_license | bobur554396/PPII2021Summer | 298f26ea0e74c199af7b57a5d40f65e20049ecdd | 7ef38fb4ad4f606940d2ba3daaa47cbd9ca8bcd2 | refs/heads/master | 2023-06-26T05:42:08.523345 | 2021-07-24T12:40:05 | 2021-07-24T12:40:05 | 380,511,125 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | # line = input()
# print(len(line))
'''
4
4 10 -1 100
'''
n = int(input())
# [<returning iter val> for <iter> in <list> condition ]
numbers = [int(n) for n in input().split()]
print(numbers)
# nums = []
# for n in numbers:
# nums.append(int(n))
# print(nums)
s = 0
for i in numbers:
if i > 0:
s += i
# pr... | [
"bobur.muhsimbaev@gmail.com"
] | bobur.muhsimbaev@gmail.com |
198db17b001f33aab6e03aa2f14284c01d52a729 | 046b40b6b5640b1779f8d42d84531e0b92433242 | /user.py | cc3c572c1170b0295827af795020dbefa92940b4 | [] | no_license | hawksuperguru/python-waitercaller | 3ea5303e1f8b7b768a8efbcc068a0077166707ce | 976eac7818978b16124b7875e8b13be9264d88d2 | refs/heads/master | 2021-05-07T16:19:48.873640 | 2017-10-30T10:44:18 | 2017-10-30T10:44:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | class User:
def __init__(self, email):
self.email = email
def get_id(self):
return self.email
def is_active(self):
return True
def is_anonymous(self):
return False
def is_authenticated(self):
return True | [
"falcon.laravguru@yandex.com"
] | falcon.laravguru@yandex.com |
baef0557dc2c63efaa59504149f8588fef1e4309 | fd174bf1ef86d5cbf33ed7ce174a55274b0e327b | /Rescue/recieve.py | 96ab418df43fbe8af6a8c70b8399e60237638a55 | [] | no_license | pachicourse/IidaLab2017 | 470fc7b011906d7e316c51d5bedce6fd5e512263 | e18fd495d4165a08a7de9af400cb2db9dba2d142 | refs/heads/master | 2021-01-25T06:44:33.982408 | 2018-01-24T08:47:45 | 2018-01-24T08:47:45 | 93,598,137 | 0 | 0 | null | 2018-01-21T11:44:48 | 2017-06-07T06:00:11 | HTML | UTF-8 | Python | false | false | 1,700 | py | # WANと接続されている端末用プログラム
from flask import Flask, render_template, request
from email.mime.text import MIMEText
import os
import requests
import json
import smtplib
import datetime
GMAIL_ADDRESS = os.environ.get('GMAIL_ADDRESS')
GMAIL_PASS = os.environ.get('GMAIL_PASS')
app = Flask(__name__)
@app.route('/rescue', meth... | [
"ddds78199500825@gmail.com"
] | ddds78199500825@gmail.com |
f7b7f9b07e860a94ff88ebb5c890928fd62d151a | fe7edf8a87c51d15f9b13e9a3a2bf165daa1de33 | /cacert.py | ad29a5d683894bf2870ca903dbddfc8ce0966cbc | [] | no_license | artizzle/pimail | f404cc0906d198d31ebef617336b2a9d3dde6bbe | 5957870a6e1a17a5218181d54d7421f1f3d27b38 | refs/heads/master | 2021-06-10T18:26:50.985165 | 2016-11-10T23:36:06 | 2016-11-10T23:36:06 | 73,429,215 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,297 | py | import subprocess
import fileinput
def cacert():
"""Get a new certificate from CAcert.org."""
name = input("What's your name?\n")
#Generate a private key.
wait = input("Generate a private key. Press enter.")
subprocess.call(['openssl', 'genrsa', '-out', name+'private.key', '4096'])
... | [
"noreply@github.com"
] | artizzle.noreply@github.com |
563dfccd2fd271a2ae0edc1613952e7947965a62 | 58afefdde86346760bea40690b1675c6639c8b84 | /leetcode/global-and-local-inversions/288943653.py | 0f1c892c5fa61990ec2ad92c40c0f4af8ae7abd2 | [] | no_license | ausaki/data_structures_and_algorithms | aaa563f713cbab3c34a9465039d52b853f95548e | 4f5f5124534bd4423356a5f5572b8a39b7828d80 | refs/heads/master | 2021-06-21T10:44:44.549601 | 2021-04-06T11:30:21 | 2021-04-06T11:30:21 | 201,942,771 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 712 | py | # title: global-and-local-inversions
# detail: https://leetcode.com/submissions/detail/288943653/
# datetime: Fri Dec 27 19:09:22 2019
# runtime: 388 ms
# memory: 13.4 MB
class Solution:
def isIdealPermutation(self, A: List[int]) -> bool:
N = len(A)
k = -1
i = 0
while i < N:
... | [
"ljm51689@gmail.com"
] | ljm51689@gmail.com |
3cb9259d4f4214fc9346777f14b80e8f08b66957 | e34dfe70b30e584d8b1992377b1b4f8a08235824 | /cloudmesh/common/console.py | 7042af40082ed1d6fcf2d07ae6ca9ec0509d795b | [
"Python-2.0",
"Apache-2.0"
] | permissive | juaco77/cloudmesh-common | 09efd91310f1d6fc5d34f60f4c34e63e8c6fc9ae | 0bb330da363b8edb9e509a8138a3054978a8a390 | refs/heads/master | 2020-06-08T05:04:18.070674 | 2019-05-17T10:33:13 | 2019-05-17T10:33:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,233 | py | """
Printing messages in a console
"""
from __future__ import print_function
import textwrap
import traceback
import colorama
from colorama import Fore, Back, Style
colorama.init()
def indent(text, indent=2, width=128):
"""
indents the given text by the indent specified and wrapping to the given width
... | [
"laszewski@gmail.com"
] | laszewski@gmail.com |
d0b687546ac4f7f9e863239bf7175a5f4728cf41 | ed2524c630a6991e6e8fa000216fbbd1d86a9aeb | /sum/urls.py | d9be7e088defea6f539a0cf3e91dc15d08cc50ed | [] | no_license | Subhramohanty/postman | e1435c6ed7c2034bccfbd93e1a4212f7cf148596 | 5bbb927222964960698c140f30d837e0fd06db47 | refs/heads/main | 2023-02-07T02:47:11.826908 | 2020-12-29T12:15:34 | 2020-12-29T12:15:34 | 325,278,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,002 | py | """sum 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-based vie... | [
"subhramohanty008@gmail.com"
] | subhramohanty008@gmail.com |
18a2999613176a92592cf6e5e50bea83d2cfe61a | 8caee92caccb21668129b3dd7545d7f6db5da383 | /exploring/find_ms_id_by_label.py | ef0a8e19e53dcf60744adb5060e07db649818b37 | [] | no_license | OlivierValette/fibot | c097974bf42df01ee1ccb5f8d4c1bf0cadbcefb0 | 501306ddc8acb8a59a0f70a58267456515c52a14 | refs/heads/master | 2020-04-21T13:26:06.808314 | 2019-06-04T14:03:18 | 2019-06-04T14:03:18 | 169,598,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,163 | py | import requests
from bs4 import BeautifulSoup
# TODO: parameter to be stored in the database
MS_SEARCH_URL = "http://www.morningstar.fr/fr/funds/SecuritySearchResults.aspx?search="
# Search for an asset's Morningstar ID
def find_ms_id_by_label(label):
target = MS_SEARCH_URL + label
# fetch url
pageresp... | [
"olivier.valette@spi10.com"
] | olivier.valette@spi10.com |
a8f04dab50ef5c54b203ebdac62eb2fe2957caa3 | b9922a20ba706bbd1e74e99f76822e365fc4398a | /estrutura_de_repeticao/numero_impar.py | 0b3415a5657fb93d303143f09a2fb21e55d04b60 | [] | no_license | adelyalbuquerque/projetos_adely | 6a95a0064705fe7530616cd8833d17286ab82797 | d0d7bd23b5fac90165f6a12c1acb11263b7021fb | refs/heads/master | 2021-01-19T04:10:32.541863 | 2016-07-22T19:28:51 | 2016-07-22T19:28:51 | 63,546,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | numero = input("Digite um numero inteiro: ")
while numero != 0:
if (numero % 1) != 0 and (numero % numero) != 0:
print("Primo")
else:
print("Nao eh primo")
| [
"adely.albuquerque@gmail.com"
] | adely.albuquerque@gmail.com |
c9f4b189afc4ddbb247738162482210f8d229886 | 05e905fa3ca30fba051a8e8cce47895075ac03e3 | /ex47/game.py | b985c7183f885568b89b4f33a2b67b9fbbcf1a7c | [] | no_license | gitrobike/ex47 | b5396e35c75b5fad7d1cf135c80f76e9200c98f9 | 5d5c287e8ea6a5508868e5a5128cebe65421acde | refs/heads/master | 2021-01-10T10:47:08.076449 | 2016-01-19T07:19:15 | 2016-01-19T07:19:15 | 49,685,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | # -*- coding: utf-8 -*-
class Room(object):
def __init__(self, name, description):
self.name = name
self.description = description
self.paths = {}
def go(self, direction):
#传入房间名,进入房间,获取value值。
return self.paths.get(direction)
# return self.paths.get(direction,... | [
"497125399@qq.com"
] | 497125399@qq.com |
26cadb013cdd14f5324e9d6d73ca1a8a0f3d8c8f | 4e008e556495839a15100262c39f35cbdbd25e65 | /v12 Condicionales III/practica_condicionales.py | f8d213b430199cb77c5b8ec395169b4d0a952d09 | [] | no_license | cmolinagithub/cursoPython | c2300c76570d653153e543cb02cc848be5ceb0fd | 3e47d787dd2be151281c22f5d8d4bdb04a11d76a | refs/heads/master | 2020-05-16T19:27:45.110116 | 2019-07-23T21:32:07 | 2019-07-23T21:32:07 | 183,261,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | '''edad=7
if edad <100:
print("Edad es correcta")
else:
print("Edad incorrecta")
'''
##concatenacion de condiciones
#edad=-7
edad=145
if 0<edad<100:
print("edad es correta")
else:
print("edad incorrecta") | [
"cmolinabastidas@gmail.com"
] | cmolinabastidas@gmail.com |
c89f26e98a6adf9060a8e28bdaa0c0c2e2e8c5a2 | dcc386509491b843c7ca264b96cdb08ec91d1f93 | /3_variables_and_memory/garbage_collection.py | a5ae5388057eb480e35d13b2361f8f826c8bab9c | [] | no_license | RuddleTime/python3_deep_dive1_udemy | 669d876b1da60a905cdea1d369979c3899e46c0f | 8acff41dfbc2dc334892e62084509dda79a7b17b | refs/heads/master | 2020-06-18T10:54:11.831239 | 2019-07-26T22:32:03 | 2019-07-26T22:32:03 | 196,278,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,930 | py | import ctypes
import gc # garbage collection module
def ref_count(address):
return ctypes.c_long.from_address(address).value
def object_by_id(object_id):
# Go through every object in the garbage collector
for obj in gc.get_objects():
if id(obj) == object_id:
return "Object exists in g... | [
"ruddlec@tcd.ie"
] | ruddlec@tcd.ie |
6be597b3f45df0dfaa61db71a171b3239f97b0a9 | cb309ee241803ff4b87a05c579060027d953d71c | /collector/models.py | 7ac275247bcbec5f3bba88f4c245910d46af74fb | [] | no_license | bio-it/ImpedanceServer | 7c549cd946e8afa96b007c4e2e17d8db8ca2ac65 | a165c1dedaf93d3ce9883afd8123faf28491ea95 | refs/heads/master | 2021-02-09T17:35:45.517861 | 2020-03-03T06:27:31 | 2020-03-03T06:27:31 | 244,308,076 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,122 | py | from __future__ import unicode_literals
from django.db import models
# Model for dwf
class DwfResultData(models.Model):
dataCounter = models.IntegerField(primary_key=True, default=0)
startTime = models.DateTimeField(blank=True, null=True)
targetTime = models.DateTimeField(blank=True, null=True)
period = models.... | [
"mauver@naver.com"
] | mauver@naver.com |
d0e654a18ca12052dea42d78b42a73852453c9ec | 07cf39100198fbd18a78afa99054f1bf6b19ad47 | /signac/synced_collections/validators.py | 910c2474040f70c566527948a75f58541f2cfbf5 | [
"BSD-3-Clause"
] | permissive | jennyfothergill/signac | 3e603526722611ccf31bda48dcd963e4c923ea90 | f506f720095aac6f91cc9086c1adde5d8acbdacc | refs/heads/master | 2023-03-06T17:58:25.594670 | 2021-06-14T11:21:40 | 2021-06-14T11:21:40 | 214,242,631 | 0 | 0 | BSD-3-Clause | 2023-03-01T00:57:30 | 2019-10-10T17:18:48 | Python | UTF-8 | Python | false | false | 4,676 | py | # Copyright (c) 2020 The Regents of the University of Michigan
# All rights reserved.
# This software is licensed under the BSD 3-Clause License.
"""Validators for SyncedCollection API.
A validator is any callable that raises Exceptions when called with invalid data.
Validators should act recursively for nested data s... | [
"noreply@github.com"
] | jennyfothergill.noreply@github.com |
33d0c570a0b5580573dfbdaff8adf62a2607badd | eb743ef136f3ad28ba6c9c90df436720a8d59d09 | /main/extractorchong.py | 4b5bebae2f55575b614036c004b31b67d8096358 | [] | no_license | Cindie00/P2_1A_5 | 438dad0b3ad9c0baf9e31fa44616bcf2e7a6e788 | b49fbf039c392cd4b73261cbe9abc195fe987fb2 | refs/heads/main | 2023-04-23T01:26:27.832109 | 2021-05-10T10:44:30 | 2021-05-10T10:44:30 | 351,902,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,300 | py | #############################
#
# Extracteur de donnés de Chong de l'exercice 2. ce qui équivaut à la Question 4 sur le site
#
#########################################################################################################@
import sqlite3
conn = sqlite3.connect('Base.sqlite')
cursor= conn.cursor()
data=l... | [
"noreply@github.com"
] | Cindie00.noreply@github.com |
a921eb511127c4a8abd19099fdc2c956713a1868 | bc62493ec74497a3ed4d3f20a2f284ed7c5c310e | /bot.py | 6dc1de2556ade9f6d2ef611cc05b7593e48e4e3e | [] | no_license | tnwaps/youtube_tg_bot | 34a2a4f8411f061f8ef694437a91e89d0a0b97ce | 68bce5a9988821c123f473b96a6799262fe5218a | refs/heads/master | 2022-11-08T02:30:31.387231 | 2020-06-13T08:37:52 | 2020-06-13T08:37:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,318 | py | from telegram import Update
from telegram.ext import CallbackContext
from telegram.ext import Updater
from selenium import webdriver
from telegram.ext import Filters
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_condit... | [
"abusaid.manap@gmail.com"
] | abusaid.manap@gmail.com |
c40388cde769fb9ada70d3cfdd7ebacb5039179f | e22f12667ce20387a689e41c145efff91a184df1 | /tests/asserts/for.py | 565e80e94fb67656c3a995e7ac7b0f3f37718e9a | [] | no_license | liwt31/NPython | d6246b6bd7a58865a3c32763a8766d296cc38f07 | 1159715bb6d4ff9502e9fa4466ddc6f36a8b63d2 | refs/heads/master | 2020-04-13T02:22:53.516945 | 2019-02-19T09:19:17 | 2019-02-19T09:19:17 | 162,900,818 | 21 | 1 | null | null | null | null | UTF-8 | Python | false | false | 68 | py | j = 0
for i in [1,2,3]:
j = j + i
assert j == 6
print("ok")
| [
"liwt31@163.com"
] | liwt31@163.com |
bc588af7165c518b2b39df077d944a19465b635e | b2a312acad1062ed7e35eaedc90eede1b6aee7f0 | /pyramid_admin2/views/model_view.py | 731b9b440c694a46da5d0d338b2df519f9526883 | [] | no_license | tarzanjw/pyramid_admin2 | 93060ca0697359c956a525ea12f1951d1e94e849 | 479d0df566bd0577c485695c6940415d644f3ee2 | refs/heads/master | 2016-08-04T18:49:52.497474 | 2014-10-14T05:02:43 | 2014-10-14T05:02:43 | 24,974,500 | 1 | 0 | null | 2014-10-14T04:59:52 | 2014-10-09T05:08:57 | Python | UTF-8 | Python | false | false | 8,012 | py | __author__ = 'tarzan'
import six
if six.PY2:
from urllib import urlencode
else:
from urllib.parse import urlencode
import inspect
import deform
from pyramid.httpexceptions import HTTPFound
from pyramid.view import view_config
from ..helpers import cell_datatype
from .. import resources as _rsr, admin_manager
i... | [
"hoc3010@gmail.com"
] | hoc3010@gmail.com |
275c145e3d67fab7b8eaa04044d410a9e813dbdd | a77f57098198d816b2fcc18fe12ade248d794a00 | /sim/simpheno.py | 264a3c30fa47de60585de9c2022ff3a809105ee6 | [] | no_license | huwenboshi/blabbertools | 60efea77fe9e46af993ca060cd25ea759db87fb6 | bef8187b3e8811e3d25d4b4ba4b7686f448b2a1d | refs/heads/master | 2020-12-07T13:31:46.292849 | 2014-10-08T02:36:16 | 2014-10-08T02:36:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,521 | py | #!/usr/bin/python
"""
python script to simulate phenotypes
input data: haplotypes, legend
output data: simulated phenotypes
author: huwenbo shi
"""
from optparse import OptionParser
import sys
import math
import os
import random
import numpy as np
# get command line
parser = OptionParser(add_help_option=False)
par... | [
"shihuwenboinus@gmail.com"
] | shihuwenboinus@gmail.com |
cad96b87c39da0d07e675e341783273ea03f36a4 | 633e2347ae46bbbb3bb68533407a32777017596f | /hook/zmes_hook_helpers/__init__.py | 8025431701ffdb4bc25244ba1da39133aa836ae9 | [
"MIT"
] | permissive | nmeylan/zmeventnotification | 1366c9120b2c0050219f4dedf19cc98a7338a195 | 1ec30a342745f5221a49f05ba8da7d4eed5bce20 | refs/heads/master | 2022-11-29T16:39:25.235847 | 2020-07-24T13:18:54 | 2020-07-28T15:24:18 | 282,207,149 | 0 | 0 | null | 2020-07-24T11:52:44 | 2020-07-24T11:52:44 | null | UTF-8 | Python | false | false | 43 | py | __version__ = "5.15.7"
VERSION=__version__
| [
"pliablepixels@gmail.com"
] | pliablepixels@gmail.com |
f0fd806301f11b38e6d5b561fd94db8760f5f48a | 051ab476fe9e5076c999ec18b452248d30ae13dd | /conftest.py | fe2c0e9459c0e3a504f437ab19adf755897252a7 | [] | no_license | art161qa/final_project_stepic_QA | 075028d48a5e5954d8161da586c6ee5676e63ffa | f3e561cb548ccc00a337042ffea08af6633cf3b6 | refs/heads/master | 2022-12-21T01:50:01.251411 | 2020-09-25T15:47:34 | 2020-09-25T15:47:34 | 294,165,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,162 | py | import pytest
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
def pytest_addoption(parser):
parser.addoption('--browser_name', action='store', default='chrome', help='Choose browser')
parser.addoption('--language', action='store', default='en', help='Choose language')
@pyte... | [
"massiveframe@gmail.com"
] | massiveframe@gmail.com |
9304946f7f5ed9562d7a3dbb6c52486fd296a7a1 | 9ef502b92bd218e919c65513e835c15c32667e8f | /samsung_load_0113.py | 75e8319216cf77777569806bc31afb952c0b80c3 | [] | no_license | YoungriKIM/samsung_stock | 034bc586440ab04531bb8d0b951747377c340966 | f15b6a3ebc3db76f960fc8f138dba7e43e345ef4 | refs/heads/main | 2023-04-14T03:20:51.169497 | 2021-03-25T08:35:48 | 2021-03-25T08:35:48 | 351,362,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 794 | py | import numpy as np
x_train = np.load('../data/npy/samsung_x_train.npy')
y_train = np.load('../data/npy/samsung_y_train.npy')
x_val = np.load('../data/npy/samsung_x_val.npy')
y_val = np.load('../data/npy/samsung_y_val.npy')
x_test = np.load('../data/npy/samsung_x_test.npy')
y_test = np.load('../data/npy/samsung_y_test.... | [
"lemontleo0311@gmail.com"
] | lemontleo0311@gmail.com |
e9ac73578b1341f9b3e00b0301d3a37672230a11 | ac7cab5a22fe8b73c03fb155028d19085d4b0f26 | /rango/models.py | 5bca5a21cdaeade75a0a20bb24baeffa8c2e6471 | [] | no_license | FullStackPeterPAN/tango_with_django_project | c0d5838b61cdf91489a7f5af0d504130ccf90212 | a7ac005bb7b9e01440770e68bc478b4f3559539b | refs/heads/master | 2022-11-01T21:34:18.128669 | 2018-03-18T10:13:09 | 2018-03-19T16:46:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,311 | py | from django.db import models
from django.utils.encoding import python_2_unicode_compatible
from django.template.defaultfilters import slugify
from django.contrib.auth.models import User
import datetime
from django.db import models
from django.utils import timezone
class Category(models.Model):
name = models.Char... | [
"2294163p@student.gla.ac.uk"
] | 2294163p@student.gla.ac.uk |
4973e7282b46d9706ed15045ac25c1ccdd76851e | aa4c5d11d168eb02e5596e55c3b6d2741eca69f6 | /manage.py | 06fb8bcb4a5a64027466f9f0e0f64f99f474a6a0 | [] | no_license | bigwboy/SystemManager20 | 3c07531c2e02af43bfbc0d94898e1073bfa50f29 | 2096831341dc84cb94a729ac559d6a0c4a75258f | refs/heads/master | 2021-05-05T18:47:36.016106 | 2018-01-30T05:21:11 | 2018-01-30T05:21:11 | 117,636,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "SystemManager20.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Djan... | [
"kevinliu830829@163.com"
] | kevinliu830829@163.com |
45ae89103552d5b6241450ebb6673d4b04d148c3 | 49856b872815dc9d1a623a72bad081dd40cc23ca | /src/ai/__init__.py | a41be53344c106111871c751111e83c61e4bca41 | [
"BSD-2-Clause"
] | permissive | calcu16/GenericBoardGameAI | 06eece1eb5857e50384a01ea5de38b4ec4963491 | 69dc99a0988703eccb72879443dbfaaf3ddb21fc | refs/heads/main | 2023-01-23T04:50:28.350264 | 2020-11-29T23:29:01 | 2020-11-29T23:29:01 | 311,138,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13 | py | # ai package
| [
"acarter@linkedin.com"
] | acarter@linkedin.com |
e6ba2e66f4df8af86c5e31215b5c3d8973ecf055 | 81302ee42c1b3c25ce1566d70a782ab5525c7892 | /nr/nr_band_matching/autocorrelation_full_chain.py | aba89bd8971c7b2b106fb1a5a0ea7d38951568ae | [] | no_license | mdanthony17/neriX | 5dd8ce673cd340888d3d5e4d992f7296702c6407 | 2c4ddbb0b64e7ca54f30333ba4fb8f601bbcc32e | refs/heads/master | 2020-04-04T06:01:25.200835 | 2018-06-05T00:37:08 | 2018-06-05T00:46:11 | 49,095,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,812 | py | #!/usr/bin/python
import sys, array, os
#sys.path.insert(0, '..')
import ROOT as root
from rootpy.plotting import Hist, Hist2D, Canvas, Legend
import nr_band_config
import numpy as np
import corner
import cPickle as pickle
import time, emcee
if len(sys.argv) != 5:
print 'Use is python perform_full_matching.py <filen... | [
"mda2149@columbia.edu"
] | mda2149@columbia.edu |
2220d983c98baec53a5ea75b6be2345d77c622c7 | 075a9186a43041b062ce883604a125484db64c71 | /source_code/dependencies/Python_MyoSim/half_sarcomere/myofilaments/forces.py | 07a9188d61ec2c2469269e9ab35951bcd3fba925 | [] | no_license | mmoth-kurtis/MMotH-Vent | 0c4afa14f882e3d6fff6aa3c354d142bc00ab906 | b1caff62bfdc60000e429a35fb4a4327dfbed4ea | refs/heads/master | 2023-02-24T00:02:09.078654 | 2021-01-29T19:19:25 | 2021-01-29T19:19:25 | 233,081,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,807 | py | # Functions relating to forces
import numpy as np
import scipy.optimize as opt
def set_myofilament_forces(self):
self.cb_force = return_cb_force(self, 0.0)
self.pas_force = return_passive_force(self, 0.0)
self.total_force = self.cb_force + self.pas_force
def check_myofilament_forces(self, delta_hsl):
... | [
"ckma224@g.uky.edu"
] | ckma224@g.uky.edu |
21599d7a7e64dcf0db7985ec616eb3690bd43f39 | 774e24bd32a36dd448a9390149c5fb531718fd96 | /venv/bin/django-admin | 11d6199337351c0713d5d018dd99d84c772f9f5a | [] | no_license | reetshrivastava/autoTextSummarizer | 69e3c54f7ea25d53196797a9a258d137b8020f3e | 03dde3dc8161fbe1181a0a0b4dcd10a6c3e042dd | refs/heads/master | 2021-01-10T05:06:36.277145 | 2016-04-16T05:41:06 | 2016-04-16T05:41:06 | 52,152,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | #!/home/hasher/finalYearProject/autoTextSummarizer/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"reet.shrivastava@hashedin.com"
] | reet.shrivastava@hashedin.com | |
037cd1bbb07e278e8e22db1424ee0da288599866 | b6d3a2cd9ced1e411f4d9a7815492c0070bf5691 | /Code/tunneler/PubSubAgent/Main.py | 62430f0a978c8896a1abb201aecb62e9b5d3215a | [] | no_license | FIU-SCIS-Senior-Projects/Addigy4 | b9241c90107da3a0f1cdf70ec83809183b2a09d6 | fc4f87f0097047d872cd9f775d98765b50c17257 | refs/heads/master | 2020-04-10T16:28:20.132129 | 2015-12-18T19:26:06 | 2015-12-18T19:26:09 | 41,682,638 | 2 | 1 | null | 2015-11-02T06:18:48 | 2015-08-31T15:12:40 | JavaScript | UTF-8 | Python | false | false | 8,454 | py | import shlex
import getpass
from threading import Thread
import webbrowser
__author__ = 'cruiz1391'
import json
import os, sys, traceback, subprocess
import pubsub
ChannelName = "DemoTest"
ServerAdd = 'addigy-dev.cis.fiu.edu'
ServerPort = 5672
PubSubId = "0c86c7ef-f579-4115-8137-289b8a257803"
connected = True
messag... | [
"cruiz1391@gmail.com"
] | cruiz1391@gmail.com |
4c372b72b1e7e834e9fa8c9bde95f42de65c174c | 8d86cad6e7eda824f3405c297a2245496beeed5c | /geometrycalculator.py | 549c2860e4d8a31bd377f1ae05ee97e4bb3d16a7 | [] | no_license | sstappa/automatic-spoon | 94b303388955c16d6879e037710a1b2cf7945aef | 8dd17c0409920e3cee4e729eda7b0391e9de3973 | refs/heads/master | 2021-01-01T18:04:52.977333 | 2017-08-03T16:16:15 | 2017-08-03T16:16:15 | 98,240,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,175 | py | #GPA Calculator
#Shane Tappa
#7/30/17
def rectangle_calc():
height = 0.0
width = 0.0
area = 0.0
while True:
try:
height = float(raw_input("Enter the height of your rectangle: "))
break
except ValueError:
print("Oops! That was no va... | [
"noreply@github.com"
] | sstappa.noreply@github.com |
911baf07b0630491c0a4b906152bb42fcb0be366 | 9b72de4f01c77b92ef23cf0433d7f806802bb419 | /SPOJ/MOZPAS - Prangon and String/Prangon and String.py | a0ea818736818271596dc598de0e73defcb7acca | [] | no_license | GitPistachio/Competitive-programming | ddffdbc447669a2f8ade6118dfe4981bae948669 | f8a73f5152b2016b1603a64b7037602d2ab2c06e | refs/heads/master | 2023-05-01T20:55:18.808645 | 2023-04-21T20:45:08 | 2023-04-21T20:45:08 | 167,733,575 | 8 | 4 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | # Project name : SPOJ: MOZPAS - Prangon and String
# Author : Wojciech Raszka
# E-mail : gitpistachio@gmail.com
# Date created : 2019-04-21
# Description :
# Status : Accepted (23669618)
# Tags : python
# Comment :
import string
n, m = map(int, input().split())
prangon = ''
for l in s... | [
"gitpistachio@gmail.com"
] | gitpistachio@gmail.com |
72952881d9b154e46425045a1436cf7b055e6414 | 68ce9d89a8cd3ebf1f1a011f5f039fcf287f2d7e | /Practica07_KohonenSOM/codigoFuente/UI/external_widgets/points_input.py | defb869f8f06837d4bd126d0e6fa9cd2c6c1c189 | [
"MIT"
] | permissive | CodeRevenge/practicas_ia_2 | 3ada6f951a7d635451676920aeccb20d47cd0fd6 | b81e3b68680b61785918b19360cb0afc5b14c26e | refs/heads/master | 2023-02-09T13:56:30.807621 | 2019-11-26T18:17:01 | 2019-11-26T18:17:01 | 205,444,362 | 1 | 0 | MIT | 2021-01-05T15:52:27 | 2019-08-30T19:25:21 | Python | UTF-8 | Python | false | false | 2,842 | py | # ------------------------------------------------------
# -------------------- points_input.py --------------------
# ------------------------------------------------------
import sys
from PyQt5.QtWidgets import QVBoxLayout, QWidget
from matplotlib.backends.backend_qt5agg import FigureCanvas
import matplotlib.pylab a... | [
"mas.arley2009@hotmail.com"
] | mas.arley2009@hotmail.com |
4d9b59df5f0fe4ca4796d0121a12dc0208a93d3e | f5b7b87d0de1459c284b6ebf3aa21c6a96e52207 | /broadgauge/views/auth.py | 8d91aca9aa0d2097097fb9062d97b809ab2611b1 | [] | no_license | iambibhas/broadgauge | cfbce9bbebdc5337918df7b378810a53c9a68f8b | 381816cb9c288b071b44f189d662611cdc57e58b | refs/heads/master | 2021-01-18T09:01:32.155941 | 2014-08-15T11:42:58 | 2014-08-15T11:42:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,323 | py | import web
import json
from .. import account
from .. import oauth
from .. import forms
from ..sendmail import sendmail
from ..flash import flash
from ..models import User, Organization
from ..template import render_template
urls = (
"/login", "login",
"/logout", "logout",
"/oauth/(github|google|facebook)... | [
"anandology@gmail.com"
] | anandology@gmail.com |
5ed249054576d9eaccecd2490d226c49e0b83bf6 | 00f4298b6714f34e6d56b19bc309e7ac8d824dd7 | /Twitter/Files/TwitterStream.py~ | 6074db0b3c10de4e6d5ff4cf4eb86b8c23446a1f | [] | no_license | pbarker/pytwit | 27c108836e66dbce1b2d481094c14e437d85c2e7 | f1de663108917895bc83fd17016fcfa9669e4f47 | refs/heads/master | 2021-05-27T23:53:13.608008 | 2014-11-26T02:46:33 | 2014-11-26T02:46:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,788 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright (C) 2012 Gustav Arngården
# 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 3 of the License, or
# (at your option) any later... | [
"patrickbarkerco@gmail.com"
] | patrickbarkerco@gmail.com | |
51fa31d3f1c84dfee4fc19b997797bb617257a33 | 4bcc2f4b4608d2674f5d3923e39d1cc01a067059 | /Object Oriented Programming/11_grumpy.py | 35d5d375af4ec43bf61e2898fa426cd6c80e0d61 | [] | no_license | bettercallkyaw/All-Python-Fields | 6f57274c43631c29f6f9219b5b84c0529b9c04c0 | 3d67d48e5ee4f18d95a6d2ff6783fed1164b9e88 | refs/heads/master | 2023-08-20T12:45:46.860786 | 2021-10-23T13:59:25 | 2021-10-23T13:59:25 | 330,874,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | class GrumpyDict(dict):
def __repr__(self):
print('NONE OF YOUR BUNISESS')
return super().__repr__()
def __missing__(self,key):
print(f'YOU WANT {key}? WELL IT AINT HERE!')
def __setitem__(self,key,value):
print('YOU WANT OT CHANGE THE DICTIONARY?')
print('OK FINE..... | [
"bettercallkyaw@outlook.com"
] | bettercallkyaw@outlook.com |
38cf24e5c595728a7f5c72b09f8b2db1e0c29f92 | bf93e278bf9325742f4e549ce4232ee8ff9e47e0 | /courses/courses/spiders/courses.py | 2cf17211f612b0b2054706cfe60a4b329a794647 | [] | no_license | Chawwie/coursetree | 4d3b8bfb1c9981485730e1952989a3903411db51 | ec76e24a797d1a9a88bae0f50cce4d68e83e79e4 | refs/heads/master | 2021-02-09T11:40:52.277015 | 2019-11-06T05:42:28 | 2019-11-06T05:42:28 | 244,278,323 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,210 | py | # -*- coding: utf-8 -*-
import scrapy
from scrapy.spiders import CrawlSpider, Rule
from scrapy.linkextractors import LinkExtractor
class CoursesSpider(CrawlSpider):
name = 'courses'
# allowed_domains = ['my.uq.edu.au/']
# start_urls = ['https://my.uq.edu.au/programs-courses/search.html?keywords=CSSE&sear... | [
"charleliliu@gmail.com"
] | charleliliu@gmail.com |
190737f57812491eab4446e604fdb63bd82f089d | 2157782cf5875767f8d1fe0bb07243da2e87600d | /爬虫scrapy/demo/demo/settings.py | b03be2592fc5c78edd56253e6976c5315fe8d916 | [] | no_license | mouday/SomeCodeForPython | 9bc79e40ed9ed851ac11ff6144ea080020e01fcd | ddf6bbd8a5bd78f90437ffa718ab7f17faf3c34b | refs/heads/master | 2021-05-09T22:24:47.394175 | 2018-05-11T15:34:22 | 2018-05-11T15:34:22 | 118,750,143 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,104 | py | # -*- coding: utf-8 -*-
# Scrapy settings for demo project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readthedocs.org/en/latest/to... | [
"pengshiyuyx@gmail.com"
] | pengshiyuyx@gmail.com |
d8a4deaa1d129acc6acc55bdfa0977a1412baca8 | 8f61479fb88ed79e5860aba7b797e7e3a6c33f25 | /api/__init__.py | 2ed2b96f09d19931e718ccff9f7795925e8f81fc | [
"MIT"
] | permissive | Lemon-cc-hang/proxiespool | c29ca1e598a263632aa13ed7f09f72afe9868f0a | 6af74b5aa507fbded9199979e7f0f9b1610ee274 | refs/heads/master | 2022-11-25T10:24:59.724242 | 2020-07-31T08:01:37 | 2020-07-31T08:01:37 | 279,520,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | # -*- coding: utf-8 -*-
"""
-------------------------------------------------
File Name: __init__.py.py
Description :
Author : lemoncc
date: 2020/7/19
-------------------------------------------------
"""
__author__ = 'lemoncc' | [
"a1029516811@gmail.com"
] | a1029516811@gmail.com |
788b2a61a5404d4ca362cc99744810d225ec6ba4 | 4f990e1c80ba34942aab43c6f51d5d263516c3cd | /test/test_loss.py | 56522a563c0668d160ae98ce1dd241d5ddbaae68 | [] | no_license | EmiyaNing/paddle-yolov5 | 3e7a6003a65323e07d425b769b26a865b9f327b7 | c39eb331d07049a0b884ed6d856f45c77dc5c007 | refs/heads/master | 2023-05-05T11:40:55.972433 | 2021-06-03T06:49:45 | 2021-06-03T06:49:45 | 366,685,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 917 | py | import sys
import paddle
import numpy as np
sys.path.append("..")
from utils.loss import ComputeLoss
from models.yolo_head import Detect_head
def test_loss():
p3 = paddle.to_tensor(np.random.rand(4, 512, 7, 7, 85), dtype='float32')
p4 = paddle.to_tensor(np.random.rand(4, 256, 14, 14, 85), dtype='float32')
... | [
"ningkangl@icloud.com"
] | ningkangl@icloud.com |
0a19c136e099464b3aa596b8aa85c466256d422b | 88105415f122ff7ac7c36e682a0d35928a84c6cc | /pullRequests/seriedeeuler.py | bf4d1622079e26be04c089e7d84d16633d54ba1a | [] | no_license | drknssAndrey/github-course | 37edac6e8aeafa9207d042d0915662911517bbfc | 19090ecdcce2e1f0c8a525db8725f319a06b2aec | refs/heads/master | 2020-05-29T17:48:18.906923 | 2020-04-12T13:22:37 | 2020-04-12T13:22:37 | 189,283,761 | 1 | 3 | null | 2019-10-24T00:11:21 | 2019-05-29T19:10:22 | C | UTF-8 | Python | false | false | 161 | py | def fat(a):
if a == 0:
return 1
else:
return a * fat(a-1)
s = 0
x = int(input())
for c in range(x):
s += 1/fat(c)
print("%.15f"%s)
| [
"noreply@github.com"
] | drknssAndrey.noreply@github.com |
77b6612c1c5ec7062621dabb8c700e0cb21a286f | 847c8bda0bcf43e0b47928b9c8de0e9e351e8c84 | /testsuite/tests/Q226-004__python_no_check_comment/src/space_after.py | 546da9b085691944c8c7c2ecb941f8105c6350ac | [] | no_license | Tubbz-alt/style_checker | 6c40644bcc92b8b0594ad796dfe3a12958814dee | e9aae5837983879487986ea6b062fc8b00cb97ab | refs/heads/master | 2023-01-22T13:21:55.714986 | 2020-12-02T04:33:42 | 2020-12-02T04:34:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | # No_Style_Check
"""The No_Style_Check comment above has trailing spaces, and this should
cause the style_checker to ignore that comment, and therefore perform
style checks.
"""
space_before_paren ()
| [
"brobecker@adacore.com"
] | brobecker@adacore.com |
3b555d902fbfedb62e681121fb36f092cbbc0ef5 | 4e4218d4dfa5cd72c6855b3819cae20d6d9e2527 | /MatBuilder/processIago.py | b9e08936155919482512c1f0d34739e891bff9b0 | [] | no_license | boldstelvis/PocketStudio | 8d60241929cb8a9592138f12619ab8862bdee678 | 8229f9f9cfa5e5b9bbf546cddc061bae5234cd55 | refs/heads/master | 2023-03-20T08:06:02.722711 | 2021-03-03T16:22:39 | 2021-03-03T16:22:39 | 344,145,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | import build
build.MatBuild('/Users/stuartaitken/Dropbox/Projects/RT_Destiny/Assets/Iago/textures')
| [
"bold.stelvis@gmail.com"
] | bold.stelvis@gmail.com |
c54b5c58d02b449322e21a4c7e7645c6e992197f | 3150a03e5c0e3897b91472b750ab1de9751138c5 | /ppdet/metrics/mot_eval_utils.py | 8b0a03a13027995e2644cfa1159768faed8b1299 | [
"Apache-2.0"
] | permissive | lazyand/ccccAI | 95c66c7c732b3a447330acd7456e76e3e6152e8c | 2d279a0ef261d10ef051b3685e041223193f81b5 | refs/heads/main | 2023-07-01T12:27:05.361219 | 2021-08-02T10:35:22 | 2021-08-02T10:35:22 | 407,152,836 | 1 | 0 | Apache-2.0 | 2021-09-16T12:17:22 | 2021-09-16T12:17:22 | null | UTF-8 | Python | false | false | 6,589 | py | # Copyright (c) 2021 PaddlePaddle 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 appli... | [
"1429392157@qq.com"
] | 1429392157@qq.com |
27f1d1e42412bfb3574bdec543ba0703469f2fce | 82f6a6c50a1fef2d7522a43cc4f60e5ff80b37a8 | /solutions/Missing Number/solution.py | 0bf89957ba6d64c0deea0d059f647ac75434429a | [
"MIT"
] | permissive | nilax97/leetcode-solutions | ca0f9545ce70975617738f053e0935fac00b04d4 | d3c12f2b289662d199510e0431e177bbf3cda121 | refs/heads/master | 2023-05-14T02:21:48.893716 | 2021-06-08T13:16:53 | 2021-06-08T13:16:53 | 374,466,870 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | class Solution:
def missingNumber(self, nums: List[int]) -> int:
return (len(nums) * (len(nums)+1))//2 - sum(nums)
| [
"agarwal.nilaksh@gmail.com"
] | agarwal.nilaksh@gmail.com |
06491f782e441082256441de2f3aeea57b0a811b | 5d2033405239dd7e64b4229689ed83410b35f2dc | /src/network3.py | ac6405a49ce95d4d22cecef136171de2cc205f84 | [
"MIT"
] | permissive | mtasende/Neural-Networks-and-Deep-Learning-Nielsen | 860d8fefca52b38a423191b73f3b3178c2bc131d | 3e78ca22d20b53fd5d87ba5c7e33da4d9e8814a5 | refs/heads/master | 2021-01-13T03:09:16.552176 | 2016-12-27T00:50:26 | 2016-12-27T00:50:26 | 77,407,621 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 13,096 | py | """network3.py
~~~~~~~~~~~~~~
A Theano-based program for training and running simple neural
networks.
Supports several layer types (fully connected, convolutional, max
pooling, softmax), and activation functions (sigmoid, tanh, and
rectified linear units, with more easily added).
When run on a CPU, this program is m... | [
"miguel.tasende@gmail.com"
] | miguel.tasende@gmail.com |
d070578127809bf040bfcd1729dc053505ef1ce1 | 42afba2982753b5826d2cbbd402dc56e9d17f33c | /hyperwords/corpus2sgns_params.py | 24e5984464554bb6c34e3c96ee879bdedbc570c7 | [] | no_license | AlexanderRubinstein/InterpretableEmbeddings | c8431ef50f16b39e6f2fd64b68f154ac7476e711 | cd0d214aac410b1e93c40d50bb89d2d72c11b59c | refs/heads/master | 2022-03-28T03:23:16.398398 | 2019-12-21T20:01:56 | 2019-12-21T20:01:56 | 229,467,488 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,884 | py | from docopt import docopt
# noinspection PyListCreation
def main():
args = docopt("""
Usage:
corpus2sgns.sh [options] <corpus> <output_dir>
Options:
--thr NUM The minimal word count for being in the vocabulary [default: 100]
--win NUM Window size [default: 2]
--p... | [
"rubalex14@gmail.com"
] | rubalex14@gmail.com |
db528857acb2029c8fdeafbe7e33b01213e19c3b | 9dfda0c510b7a5c2511baf6620d33e722d9089ab | /config.py | cbc1c0d3350c49139cd98e1e4e8198725de297fe | [] | no_license | MikeWise2718/flask-mpld2 | 736a0f2a323084e35e064024016a9c8034ad00ca | 0227602da480361d67473b6bf6fc1a53d6853745 | refs/heads/master | 2022-12-07T02:31:19.465049 | 2020-08-27T11:17:33 | 2020-08-27T11:17:33 | 290,755,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | py | # config.py
NODE_NAME = 'absol'
# Cosmos data base encdpoints - leaving this in here for now in case I need something like this
CDB_ENDPOINT = 'https://vafsp-cdb-sqlapi.documents.azure.com:443/',
CDB_PRIMARYKEY = 'Xt7s6YDIeph4ekvHzmjQQaWWrXB08W7A8Z0DVAYrJhw0WGcKiUSUlYAZfEM88NLQZyVJi5dRLNIXsD1g2u9Hlw==',
| [
"mwise@microsoft.com"
] | mwise@microsoft.com |
630c9af1fd5f87769d2cd87621e901ba2e383c7c | 99c4d4a6592fded0e8e59652484ab226ac0bd38c | /code/batch-2/dn13 - objektni minobot/M-17021-1547.py | e7ab6dbf8eecabc84d9990edc02404615aaba381 | [] | no_license | benquick123/code-profiling | 23e9aa5aecb91753e2f1fecdc3f6d62049a990d5 | 0d496d649247776d121683d10019ec2a7cba574c | refs/heads/master | 2021-10-08T02:53:50.107036 | 2018-12-06T22:56:38 | 2018-12-06T22:56:38 | 126,011,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,849 | py | class Minobot:
def __init__(self):
self.x=0
self.y=0
self.direction=90
self.tab=[]
def koordinate(self):
return self.x,self.y
def naprej(self, d):
self.tab.append(['naprej',d])
if self.direction == 0 or self.direction == 360:
... | [
"benjamin.fele@gmail.com"
] | benjamin.fele@gmail.com |
173de47073bcfee2292415ce0e9b944d48e315cb | d912423117d96cd67d23bab87c0773a07d962cc1 | /backend/socket_chat/consumers/main.py | a923f06cb91d42b37282f3545803320df8b675de | [] | no_license | modekano/ChatApp | b98f9081235c976642d024d56d1531b5120a04cf | 22cca9f3d4c25a93ca255d6616f61773da757d18 | refs/heads/master | 2020-08-19T06:03:45.010063 | 2019-10-17T11:17:07 | 2019-10-17T11:17:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,557 | py | from backend.socket_chat.consumers.base import BaseConsumer
from channels.db import database_sync_to_async
from backend.profiles.models import Profile
from backend.socket_chat.consumers.dialog import DialogConsumer
class MainConsumer(DialogConsumer, BaseConsumer):
def __init__(self, *args, **kwargs):
sup... | [
"kostya.nik.3854@gmail.com"
] | kostya.nik.3854@gmail.com |
16c2ae91567af5e69813f720ed12596e55149529 | 5ff3234e9cae154b2f63cf8bfd1a79c6b6584202 | /url_shorter/settings.py | 42c9da9b71f742a4b5c2404c9e2d5ee985aa5bc5 | [] | no_license | OleksiySitnik/aiohttp-urlshortener | 76542494e9c76d66b1a61fe9d4e19ee350b7e48e | a2f2e9960857ce18f98885f235330845dee4b4b2 | refs/heads/master | 2022-12-24T22:31:40.852382 | 2019-05-26T11:33:24 | 2019-05-26T11:33:24 | 188,674,816 | 0 | 1 | null | 2022-12-14T23:36:49 | 2019-05-26T11:33:11 | Python | UTF-8 | Python | false | false | 331 | py | from pathlib import Path
import trafaret as t
from aiohttp import web
import yaml
BASE_DIR = Path(__file__).parent.parent
CONFIG_DIR = BASE_DIR / 'config'
def load_config(config_file):
with open(CONFIG_DIR / config_file, 'r') as f:
config = yaml.safe_load(f)
return config
CONFIG = load_config('co... | [
"bomchikimmmm@gmail.com"
] | bomchikimmmm@gmail.com |
8fa92d1105c004f189b6eced9adea6d7afe7208d | bb9a4f11e61e3b81bbf73912248c6e649d49ee48 | /venv/Lib/site-packages/pyowm/utils/geo.py | e15e019ebf2188ceffa3afd2ede2022b866a4fb5 | [
"MIT"
] | permissive | samuel-c/SlackBot-2020 | 0def47df1c4b499ce801e139f32767450a56bb2a | 2350fcfe63a52d5e64cc5b467e760be7a7cee6bf | refs/heads/master | 2020-12-21T22:48:53.516313 | 2020-02-06T01:55:51 | 2020-02-06T01:55:51 | 236,590,180 | 1 | 1 | MIT | 2020-02-05T05:03:04 | 2020-01-27T20:42:04 | Python | UTF-8 | Python | false | false | 13,215 | py |
import json
import math
import geojson
EARTH_RADIUS_KM = 6378.1
# utilities
def assert_is_lat(val):
"""
Checks it the given value is a feasible decimal latitude
:param val: value to be checked
:type val: int of float
:returns: `None`
:raises: *ValueError* if value is out of latitude boun... | [
"42325107+Deep4569@users.noreply.github.com"
] | 42325107+Deep4569@users.noreply.github.com |
c593f5e09c932fe741aed482b1e7e5edd836f652 | c9b1487d663563d596c13533b6a09f588d824a33 | /youtubedata.py | ae56de117f1e43b30328b95cc7f9f94a93cea88d | [] | no_license | kdm0904/Project | 8d301c645c001eac2ceab341b0315867f3a50a91 | ff36c46c79b046521f95d87b02b1aba8ac607f37 | refs/heads/master | 2020-04-11T11:03:49.737844 | 2019-05-08T08:33:35 | 2019-05-08T08:33:35 | 161,735,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,839 | py | from bs4 import BeautifulSoup as bs
def gettitle(div):
title2 = div.find("div", {"id" : "title-wrapper"})
title1 = title2.find("h3", {"class":"title-and-badge style-scope ytd-video-renderer"})
title = title1.find("a", {"id":"video-title"})
return title.text
def getyoutuber(div):
Youtuber1... | [
"noreply@github.com"
] | kdm0904.noreply@github.com |
bfe1897197b6c105575cd8e14a5f14ce2b3e933a | c56dd15329e1f1dde3c3598ac874ab628166e6ef | /malayalam chatbot/app.py | 16c6b6d124a43b7e854391bb38cefdbe01ff1422 | [
"MIT"
] | permissive | abinshoby/Auto-Suggestion-of-Malayalam-Question-using-LSTM | e9933e341571f5c9aad59f1dc84c568033381363 | 7f04f11d6d9a6b2b51450e519de8517199a640d4 | refs/heads/master | 2020-03-23T00:02:28.751720 | 2018-10-07T17:59:19 | 2018-10-07T17:59:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,029 | py | from flask import Flask
from flask import render_template
from predict_text_meaning import predict
from flask import *
import os
app = Flask(__name__)
o=""
#@app.route('/')
# def index():
# return render_template('index.html',pred=predict)
# @app.route('/pred', methods=['POST'])
# def pred():
# data=request... | [
"noreply@github.com"
] | abinshoby.noreply@github.com |
d4b371038a871ea6c4c51c8868534d2b5ff67817 | c333b3cfb05f4bc08a682ca5f4d70b212e9624ff | /punyty/objects.py | 45d95c22a7c1a12f50b8844fd42352e55fd3d51a | [
"MIT"
] | permissive | jsheedy/punyty | a450f7daaf9e8b2acf5d861ac258e07e762c46c6 | 34d5bffc4cf85985537e199567c5ba2aa9105a05 | refs/heads/master | 2020-05-09T19:58:37.665508 | 2019-12-25T18:22:00 | 2019-12-25T18:22:00 | 181,391,798 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,551 | py | from math import sqrt
import numpy as np
from .object3d import Object3D
class Tetrahedron(Object3D):
vertices = np.array([
[1, 1, 1],
[-1, -1, 1],
[1, -1, -1],
[-1, 1, -1],
], dtype=np.float64)
edges = (
(0, 1),
(1, 2),
(2, 3),
(1, 3),
... | [
"joseph.sheedy@gmail.com"
] | joseph.sheedy@gmail.com |
8c958e900b806f0503625aae951c03d030a5cea1 | ebd6f68d47e192da7f81c528312358cfe8052c8d | /swig/Examples/test-suite/python/template_typedef_cplx4_runme.py | 25ac851fbff3855719300e610179db627047c152 | [
"Apache-2.0",
"LicenseRef-scancode-swig",
"GPL-3.0-or-later",
"LicenseRef-scancode-unknown-license-reference",
"GPL-3.0-only"
] | permissive | inishchith/DeepSpeech | 965ad34d69eb4d150ddf996d30d02a1b29c97d25 | dcb7c716bc794d7690d96ed40179ed1996968a41 | refs/heads/master | 2021-01-16T16:16:05.282278 | 2020-05-19T08:00:33 | 2020-05-19T08:00:33 | 243,180,319 | 1 | 0 | Apache-2.0 | 2020-02-26T05:54:51 | 2020-02-26T05:54:50 | null | UTF-8 | Python | false | false | 431 | py | import string
from template_typedef_cplx4 import *
#
# this is OK
#
s = Sin()
s.get_base_value()
s.get_value()
s.get_arith_value()
my_func_r(s)
make_Multiplies_double_double_double_double(s, s)
z = CSin()
z.get_base_value()
z.get_value()
z.get_arith_value()
my_func_c(z)
make_Multiplies_complex_complex_complex_compl... | [
"inishchith@gmail.com"
] | inishchith@gmail.com |
584f70937fd6dd88eaa1f8f64e86437ca7008d88 | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/arc026/A/4566526.py | ac69b81f3ed3647b8383cbae78a92382afa0955c | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 61 | py | n,a,b=map(int,input().split());print(min(n,5)*b+max(n-5,0)*a) | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
93a07c1afd9c37dc9445fbf0acf76b1f042adfaa | 40cf4ad79c2e61ee7c1dbafc78449e4add6ba8ac | /Main.py | 265f644f5f6cc0c2189acd83c8cd33a5eabcb8c3 | [
"MIT"
] | permissive | Starrky/Problems-checker | d6bb06d5b01b0eb8ae44157a154b8d5e8b884d65 | be4c91e7c7190e12ff465c0da5a60812057f35bb | refs/heads/main | 2023-03-20T00:10:53.177760 | 2021-03-01T21:37:18 | 2021-03-01T21:37:18 | 333,546,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,106 | py | import configs as cfgs
import selenium
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
import glob
import os
import os.path
from os import path
import time
import csv
import openpyxl
from openpyxl import Workbook
from openpyxl import load_workbook
from os import listdir
from os.p... | [
"kuba19945@gmail.com"
] | kuba19945@gmail.com |
188b7d197ab77782771d8705118397eb1aae428b | 4724e33369de6f39cc7f7b1b3a7398e6080cc8f8 | /blog/views.py | 052f490f53deb4da1a222f23ce7deb930555463f | [] | no_license | aylensp/first-blog | cc28db61b5ef7d0a5d2fa1c0d58ddf1ab8aafbcd | 10bdd1725dac00ae1bdb705c284e89d2e78f880b | refs/heads/master | 2021-05-05T23:28:05.134950 | 2018-01-12T15:20:48 | 2018-01-12T15:20:48 | 116,718,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,826 | py | from django.contrib.auth.decorators import login_required
from django.shortcuts import render, get_object_or_404, redirect
from django.utils import timezone
from .forms import PostForm, CommentForm
from .models import Post, Comment
# Create your views here.
def post_list(request):
posts = Post.objects.filter(publi... | [
"aylenpresentado@gmail.com"
] | aylenpresentado@gmail.com |
84f11466840388f7cd822464925153da45672a52 | 3d870343f388fcd24be17be87f9c31a8267725e6 | /feature_1.py | d7b90d46cec24099222a0979c929053c320e8da6 | [] | no_license | jhaubrich/test_repo | bd29b6238cf2771bf241664d50be8e20e950297b | 6f58bf8ce8cdffa4e3fcc16fedde1f376bc889b3 | refs/heads/master | 2016-09-09T23:03:27.877455 | 2012-12-17T15:15:01 | 2012-12-17T15:15:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35 | py | #!/usr/bin/env
import antigravity
| [
"jesse.ctr.haubrich@faa.gov"
] | jesse.ctr.haubrich@faa.gov |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.