blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M โ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a2f60424443851a68456f041d72edb87239c0e99 | 241b898f62c427c985cb46b17a5ff5321c100d01 | /validateunderlay.py | 60e4fb27fae4eb0d2b2ae4d6faea85931f2f89eb | [] | no_license | rosia/dcloud-auto-script | c1861068522ce39f7770befd062c2a7aa631398e | 5784758eec312f79816cdded503f041f98628106 | refs/heads/main | 2023-04-22T20:54:51.521994 | 2021-05-04T07:02:49 | 2021-05-04T07:02:49 | 324,029,984 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,432 | py | import paramiko
from paramiko import SSHClient
#
switches = {'Sharedservices':'198.18.128.100', 'Fusion':'198.18.128.101', 'Core':'198.18.128.103',
'Edge1':'198.18.128.102', 'Edge2':'198.18.128.104'}
client = SSHClient()
# For loop throught the dictionary KV pairs
for switchname,switchip in switches.items():
print(... | [
"rosia@cisco.com"
] | rosia@cisco.com |
1c4d2891a75da6332a6c50325e24b19b854723a3 | 53a9b20319d3c4a8819a3d7e49241263754f031e | /markpad/config.py | 0c59a8d8ec0dfb1094b48d96d438c80775fab0dc | [
"MIT"
] | permissive | ololduck/markpad | a1a51b2b4e8b535e4122b3c6797dfa8a51ae7517 | 4214d543cd27c5bcfa5a5805890b151f57eb276c | refs/heads/master | 2021-12-25T20:59:16.591084 | 2013-11-02T15:09:40 | 2013-11-02T15:09:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | import os
basedir = os.path.abspath(os.path.dirname(__file__))
MARKDOWN_EXTS = [
'extra',
'nl2br',
'wikilinks',
'headerid',
'codehilite',
'admonition'
]
SQLALCHEMY_DATABASE_URI = os.environ.get("DATABASE_URL",
'sqlite:///' + os.path.join(basedir, 'markpad.db'))
if('DATABASE_URL' in os.envi... | [
"contact@paulollivier.fr"
] | contact@paulollivier.fr |
d3803c693837af821705394d60822fd89719a8cc | 55ea654eb5227819a7a2b7629f89caea164d48c1 | /2018/06.01/Send_Mail.py | 404813976dd44a93ed5bde21164fc5d7e1360386 | [
"MIT"
] | permissive | Yokan-Study/study | 63161ae508943a750782be17f5df225543cdfdfc | 0aaee83b21e67301435ace7c71dd25fc1b9be7b4 | refs/heads/master | 2022-12-10T00:54:09.807867 | 2018-08-14T02:25:08 | 2018-08-14T02:25:08 | 107,958,865 | 1 | 5 | MIT | 2022-12-07T23:50:56 | 2017-10-23T09:15:22 | JavaScript | UTF-8 | Python | false | false | 20,519 | py | import pystache, requests, smtplib
import pystache.defaults
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
headers = {'Authorization': 'Basic {key}'}
text = '''
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<title></title>
</head>
<body... | [
"jya9055@gmail.com"
] | jya9055@gmail.com |
ffa39f22831b11734d04b3e3eea7856437400115 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/templates/_algorithms_challenges/leetcode/LeetcodePythonProject_with_solution/leetcode_0401_0450/LeetCode422_ValidWordSquare.py | ee694477735ad1d5c38aa096a5f0bfdceae3713d | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 449 | py | '''
Created on Apr 13, 2017
@author: MT
'''
c_ Solution(o..
___ validWordSquare words
__ n.. words: r.. F..
___ i, word1 __ e..(words
word2 ''
___ j __ r..(l..(word1:
__ j >_ l..(words
r.. F..
__ i >_ l..(words[j]
... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
8e8d6e02afe119d471e20a1ce2cf4091b144d836 | f045faa2ce09bebd4f878b1219fc4983587c8c79 | /flearn/models/femnist/cnn2.py | d180ebb0906dc9c036d8928bea56241b44227a69 | [] | no_license | eepLearning/federated-learning | 9db7babb9453fd20dc0dcac0202d4a806287754f | b647689bb035929f2661ebe3e8a3b0c94423bcf2 | refs/heads/master | 2023-01-12T19:13:56.108284 | 2020-08-06T15:35:56 | 2020-08-06T15:35:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,708 | py | import tensorflow as tf
import tqdm
import numpy as np
from flearn.models.base_model import BaseModel
class Model(BaseModel):
def __init__(self, num_classes, image_size, options, optimizer, seed=1):
# params
self.num_classes = num_classes
self.image_size = image_size
# ไฝฟ็จ mini-bat... | [
"wangshu214@live.cn"
] | wangshu214@live.cn |
73cde5a4de955ce5c4d0711c334f2238ee76c8f0 | 6cef66753d9f4ddd66174ea5669ec859a22c7806 | /setup.py | 4e9f4dc5eb87ca8743856a1d269ab587a0d8db43 | [] | no_license | Deli-Slicer/CatBurglar | 3948922a177d1d521a72320781b1d1c09104c59b | 6c952cc4ceba4cce552f5a26151f31eb07baa72a | refs/heads/main | 2023-04-08T12:47:39.232056 | 2021-04-04T05:47:15 | 2021-04-04T05:47:15 | 352,229,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | from setuptools import setup, find_packages
install_requires = ['arcade>=2.5.6']
with open("README.md", "r") as longfile:
long_description = longfile.read()
setup(
name='CatBurglar',
version='0.0.1',
install_requires=install_requires,
packages=find_packages(),
long_description=long_descriptio... | [
"36696816+pushfoo@users.noreply.github.com"
] | 36696816+pushfoo@users.noreply.github.com |
be55ff4fce3f0b3de5b3ef9bcc3905593fd75c05 | c48d63562727404de8679351122e060e723f7af3 | /program20.py | 66e75763a4a1897f08c53166b6eb354320ec5583 | [] | no_license | stephinsr/codekata | 04352cb96599186184fdb530bbfba8226dbd5cfa | 99a078e68904370bd175f97b5ce98b8984ab5e64 | refs/heads/master | 2020-04-21T16:08:20.759242 | 2019-02-19T08:49:48 | 2019-02-19T08:49:48 | 169,690,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57 | py |
c=int(raw_input())
for i in range(1,6):
print(i*c),
| [
"noreply@github.com"
] | noreply@github.com |
76ab8b67c75a9a98e5ba698b432ab49c43cc137c | 189d75fa820ee1549e8ca90687e9a1711d9f8ded | /BinaryTree.py | 0753a7dccf7ab2489afb698ef589de0e9d1eeda0 | [] | no_license | TijanaSekaric/SP-Homework07 | f513dedcfe63842e1cc8001c0807983962154605 | bf84a89df32520b453db5694680f9d4dd5a72bca | refs/heads/master | 2020-04-11T09:15:14.462812 | 2018-12-13T18:16:31 | 2018-12-13T18:16:31 | 161,670,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py |
from Tree import Tree
class BinaryTree(Tree):
def left(self, p):
raise NotImplementedError( 'must be implemented by subclass' )
def right(self, p):
raise NotImplementedError( 'must be implemented by subclass' )
def sibling(self, p):
parent = self.parent(p)
if parent is N... | [
"tijana.sekaric@udg.edu.me"
] | tijana.sekaric@udg.edu.me |
05c4b8df052bc124bbaab8e69c5bf48121ecea0f | aa3cc4eb303c4dccc9ab28bea8fb476b18ad0305 | /problems_2022/22.py | 2d961e10b7e8192c9715efd269cc386e73a9eaa1 | [] | no_license | alexander-yu/adventofcode | 855cc8db5f47fc53a71f3cc9ec81d255847dabdc | 25268c3906d07761b149c2710362c8b80869d778 | refs/heads/master | 2023-01-12T05:07:56.360504 | 2022-12-30T19:45:39 | 2022-12-30T19:45:39 | 227,441,688 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 4,784 | py | import collections
import re
from utils import Vector2D
import utils
def get_data():
*points, _, path = utils.get_input(cast=str, delimiter=None)
start, grid, points_by_x, points_by_y = get_grid(points)
path = [
int(move) if move.isnumeric() else move
for move in re.findall(r'\d+|L|R', p... | [
"yu.alex96@gmail.com"
] | yu.alex96@gmail.com |
ae9cf46ec0943498f6e3e7c67cc2ce07c8324700 | e12a76e98d38eaa37eecca7776afac13b56dea70 | /my_site/views.py | 705b2f7b16ae97087d6a755e012406bfdbd91ce7 | [] | no_license | ZeHakim/Django_repo_cours | a579be88fe1945efcc7954549967cc5414c502ba | 6aa4381dcba906f413fb61fb90c8fbf4dde1f4e8 | refs/heads/master | 2020-07-22T16:05:29.539483 | 2019-09-09T22:37:37 | 2019-09-09T22:37:37 | 207,255,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | from django.http import HttpResponse
from django.shortcuts import render
def home_page_view(request):
return HttpResponse('Hello world !')
def home_page_view_with_render(request):
return render(request, "index.html")
def sign_up_page(request):
if request.method == "POST":
print(request.POST)
... | [
"noreply@github.com"
] | noreply@github.com |
7a9135f75da2c2ffcd0c78979c1b7baf4d1c6c2a | bbcca03c8e248cd78c7b06dbafe3b3197404ff2e | /blogrobot/__init__.py | cdbdef445a90900ca114846c965bdef7154dafea | [] | no_license | pigga/blogrobot | 4fed63882639707ed604d8cae14b0ac13b8492e4 | f330aef2f6bfda67d30b3b65075b2ae492e9a3bb | refs/heads/master | 2020-04-13T05:09:11.673005 | 2019-02-21T07:43:58 | 2019-02-21T07:43:58 | 162,982,998 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | #! /usr/bin/env python
# -*- coding:utf-8 -*-
# ====#====#====#====
# __author__ = "Yannis"
# FileName: *.py
# Version:1.0.0
# ====#====#====#==== | [
"chenyanqing@tuscloud.io"
] | chenyanqing@tuscloud.io |
23936645c5429dbbbaad5e2fbb69f5df836ab631 | dd4d1a61ec680a86d4b569490bf2a898ea0d7557 | /appengine/predator/common/model/chrome_crash_analysis.py | 4473ea72c94ffcc660fa5ff6418f3923faf801aa | [
"BSD-3-Clause"
] | permissive | mcgreevy/chromium-infra | f1a68914b47bcbe3cd8a424f43741dd74fedddf4 | 09064105713603f7bf75c772e8354800a1bfa256 | refs/heads/master | 2022-10-29T23:21:46.894543 | 2017-05-16T06:22:50 | 2017-05-16T06:22:50 | 91,423,078 | 1 | 1 | BSD-3-Clause | 2022-10-01T18:48:03 | 2017-05-16T06:23:34 | Python | UTF-8 | Python | false | false | 1,079 | py | # Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from google.appengine.ext import ndb
from common.model.crash_analysis import CrashAnalysis
class ChromeCrashAnalysis(CrashAnalysis): # pylint: disable=W0... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
38c15c39a97e7ab3d51118f6386f186dda7696d8 | a0f1bfea522d5917ae6f18d3a4ab980870feac77 | /modules/hs/analysis/instruction.py | 9c6896ba3c8d225b4552a2b47164300ff9cdddce | [
"MIT"
] | permissive | sinsai/Sahana_eden | 1d9768d19266010caf2753b66d17925fe708007a | 798688dcf206fc81d586d9af1c57a99e6f1573c5 | refs/heads/master | 2020-06-07T21:10:17.416723 | 2011-06-10T08:57:23 | 2011-06-10T08:57:23 | 1,659,383 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,114 | py | """
Healthscapes Geolytics Module
... | [
"fran@aidiq.com"
] | fran@aidiq.com |
e6d02d6d4900746c204ca3813f00d3443fdfdc65 | abfe82e06aeeaec902b38d12788eb43e1481c873 | /encode/migrations/0004_auto_20210115_0615.py | c388cabdc2664a9b194c89538e45742e72653d0a | [] | no_license | arushisingla/recognific_web | 14195d4ad912e972761446115e24f4ff704a2c6e | 79c6d7b34d34c8f22ba02d6a6288e827322ffe48 | refs/heads/master | 2023-03-18T17:01:52.681635 | 2021-02-19T08:35:52 | 2021-02-19T08:35:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | # Generated by Django 3.1.4 on 2021-01-15 06:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('encode', '0003_auto_20210115_0523'),
]
operations = [
migrations.RemoveField(
model_name='student',
name='classname'... | [
"muskanvaswan@gmail.com"
] | muskanvaswan@gmail.com |
d926c78d9ca4a0ffd80d8aefc3bac5797f7db7a1 | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/model_control/detailed/transf_BoxCox/model_control_one_enabled_BoxCox_LinearTrend_BestCycle_AR.py | b8625fb2fc2806fe6e615c6b2e4052c583dac9c1 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 155 | py | import pyaf.tests.model_control.test_ozone_custom_models_enabled as testmod
testmod.build_model( ['BoxCox'] , ['LinearTrend'] , ['BestCycle'] , ['AR'] ); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
15968c155a2959bf322fa384c8dc1a5eec3f0010 | ed7e10f95b34185bf8f71c931cd99ff90f5d4093 | /funktown/vector.py | 5351854c8a3f7f79e3fb9288a81555dd1379b7df | [
"MIT"
] | permissive | seanjensengrey/funktown | 3bc6e0713a048e716bf597575f87f2a9bba4ebc2 | 1149254d214717165a8692e2f8437949a8a4939a | refs/heads/master | 2021-01-17T23:12:01.090854 | 2011-12-24T19:16:58 | 2011-12-24T19:16:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,481 | py | from .lookuptree import LookupTree
from itertools import islice
class ImmutableVector:
def __init__(self, initvalues=None):
if not initvalues: initvalues = []
self.tree = LookupTree(initvalues)
self._length = len(initvalues)
def assoc(self, index, value):
newvec = ImmutableVector()
newvec.tree = self.tre... | [
"zhehao.mao@gmail.com"
] | zhehao.mao@gmail.com |
1e607f9d441198acc3026f56bf81f596458e8c7b | c01fcf93c9e24d739f67fbd976b56e01e7518df7 | /Bully Algorithm/member.py | 2972bb7a57f9515e7c2f99b5c3558141a38bd5c2 | [] | no_license | asupekar/Distributed-Systems-1 | 6104e2e6774b501ce033dc162695f5254f09403b | 34d88cd79b7e6e7c3039b5ef5fb4d6c8c43e428b | refs/heads/master | 2022-04-17T23:30:54.409414 | 2020-04-20T18:50:40 | 2020-04-20T18:50:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,408 | py | """
CPSC 5520, Seattle University
This is free and unencumbered software released into the public domain.
:Authors: Kevin Lundeen
:Version: f19-02
"""
import pickle
import socketserver
import sys
BUF_SZ = 1024 # tcp receive buffer size
class GroupMember(socketserver.BaseRequestHandler):
"""
A Group Member th... | [
"mhatrenishig@seattleu.edu"
] | mhatrenishig@seattleu.edu |
19cb3366f04a6d183e67d0215b58bc5700aa5fe6 | 167c6820c0c3fc17d27fb231d4fde03b560e7508 | /users/migrations/0005_auto_20200411_1028.py | f67f53d3692d02446f243f01e71ea8551cbad9f9 | [] | no_license | Camilo-Quiceno/Personal_Blog | 6c9756b8f28cbfdae641ba1bb7180699903b8763 | d8dc7b56eb172dcd98d4c87c03595e607f09f54c | refs/heads/master | 2021-06-14T05:50:16.761481 | 2020-04-16T21:01:31 | 2020-04-16T21:01:31 | 254,473,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 482 | py | # Generated by Django 3.0.5 on 2020-04-11 15:28
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('users', '0004_auto_20200411_0844'),
]
operations = [
migrations.AlterField(
model_name='post',
... | [
"camilo.quiceno.q@gmail.com"
] | camilo.quiceno.q@gmail.com |
f4710e3c72b1ac6c26e7439cfabb274dd1bde506 | 3f342f06bedddd77c5fc9ad683d28f4b6fcf7079 | /Apps/Talleres/views.py | a8a4f8e1369a5596bd10f1c88abece99b9912029 | [] | no_license | FelipeASA/WebTalleres-Django | dfc293b4b23319777f1fdfde8496eb1d9182a206 | 9b6f2acc1dc89ad424f576d7622978923c55cc0a | refs/heads/master | 2020-05-29T08:35:33.951756 | 2019-05-28T14:16:09 | 2019-05-28T14:16:09 | 189,042,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,747 | py | from django.shortcuts import render, redirect
from django.http import HttpResponse, JsonResponse
from django.core import serializers
from Apps.Talleres.models import TalleresModelo
from Apps.Talleres.forms import TallerCrearForm
# Create your views here.
def talleres_listar(request):
datos = TalleresModelo.objec... | [
"f.saavedra16@gmail.com"
] | f.saavedra16@gmail.com |
50ac2e045886d2069bb686e25b1fb783ace85abf | 97f38bc0dff9498c43d13f15f4b26000874a840f | /pysp/plugins/ecksteincombettesextension.py | 36809dee8e435aa6869ed8d825e77d580a587f94 | [
"BSD-3-Clause"
] | permissive | tayucanjujieyihan/pysp | 2975330f3a7f1c2aa56d9a69be2bdd08a632d3e9 | 98dbc9f6d500b0b2485a89bb22813e6c51b64411 | refs/heads/main | 2023-05-06T17:33:07.306607 | 2021-05-26T22:44:28 | 2021-05-26T22:44:28 | 442,712,534 | 1 | 0 | NOASSERTION | 2021-12-29T08:43:26 | 2021-12-29T08:43:26 | null | UTF-8 | Python | false | false | 25,631 | py | # ___________________________________________________________________________
#
# Pyomo: Python Optimization Modeling Objects
# Copyright 2017 National Technology and Engineering Solutions of Sandia, LLC
# Under the terms of Contract DE-NA0003525 with National Technology and
# Engineering Solutions of Sandia, LLC,... | [
"jsiirola@users.noreply.github.com"
] | jsiirola@users.noreply.github.com |
2f6a3a8bbb54b868acd53f5024a87f6195389eaf | 1d7d8631eba89a4024b8a1beab3b82ede7e9afb8 | /venv/bin/easy_install | 02e067915e4683226e6e7f15ee4b5f41d4b01c5e | [] | no_license | alexander-chernyshev/PythonCodeReview1 | 74390d00c79cf984ea569d1a7ec866e1d1f41cd3 | ca552c71cde46f58dac61e3b686e9aaecb315eb0 | refs/heads/master | 2020-05-19T09:07:07.269295 | 2019-05-05T22:34:17 | 2019-05-05T22:34:17 | 184,939,496 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | #!/home/alexander/Workspace/PythonCodeReview1/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe... | [
"alexander.a.chernyshev@gmail.com"
] | alexander.a.chernyshev@gmail.com | |
3804bef51dde3f7326084636ad7fb6315c6f8a5e | 8fd421e609b679a51c9debfd851e5e6caead7a02 | /src/todobackend/urls.py | 0e7a90a28804cbda0199311e01ba5f2e33c5be9c | [] | no_license | mangroa/docker-ansible | ca41328c2e783c7db8e3fe8d0dc7c5526a4e3412 | 11cb8958cf01dba091b18e644e7312ad621483c4 | refs/heads/master | 2020-04-07T18:43:45.613669 | 2018-11-22T01:20:46 | 2018-11-22T01:20:46 | 158,621,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 836 | py | """todobackend URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Clas... | [
"alan.mangroo@gmail.com"
] | alan.mangroo@gmail.com |
7f0f45503dc28887ddebb17492cd8a814db6b9ef | 6c2fbfc3e93641c50436632735c3f142fbc0d386 | /lda22ldamt.py | f030973a54089fad297014044f9c8f1e4d183748 | [] | no_license | bayegy/MetaGenome | eb4abb1a28a753ee139dbbee0ad8e7a38104b9cf | b028b0a76e9d548812d5606430ec5ff69ba802c1 | refs/heads/master | 2021-06-19T07:34:17.469472 | 2021-01-13T10:17:28 | 2021-01-13T10:17:28 | 159,475,278 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | #!/usr/bin/env python3.8
import sys
sp, lda2, lda4, thresh = sys.argv
with open(lda2) as lda2, open(lda4, 'w') as lda4:
for line in lda2:
feature, raw_lda, sig_group, adj_lda, p_value = line.strip().split('\t')
if adj_lda == "" or float(adj_lda) >= float(thresh):
lda4.write(line)
... | [
"947366452@qq.com"
] | 947366452@qq.com |
983ab87b3a7b3a5a7429a711fb8752d2043ed42d | c9e3ecbb0055fc9871bca18b78f9605ce02177e7 | /contrib/errorprone/src/python/pants/contrib/errorprone/register.py | 1731d2f45f37014fb6125df7fdf86ba1ffddc605 | [
"Apache-2.0"
] | permissive | foursquare/pants | 2349434a8f1882adf8136e87772d3c13152898c2 | f0627cfa6ab05fc9a10686a499d1fb1d6ebdb68b | refs/heads/1.7.0+fsX | 2023-07-19T23:51:41.257372 | 2021-02-12T13:11:16 | 2021-02-15T08:28:37 | 24,210,090 | 1 | 1 | Apache-2.0 | 2023-07-11T08:41:59 | 2014-09-19T00:28:00 | Python | UTF-8 | Python | false | false | 514 | py | # coding=utf-8
# Copyright 2017 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)
from pants.goal.task... | [
"noreply@github.com"
] | noreply@github.com |
e650793603ccf2cefac008d1c76270721b8d1367 | 57061e611a549f9afe4f5201730a85d76a7e505f | /setup.py | 5323723ba2f8215b16c769148b156602f63760fc | [
"MIT"
] | permissive | briostack/chrome-printtopdf | 35ee5da836878107f7586a7e61f1adf6b7d8c4cb | 6b4f91ab50cbc3570c27cfd8511f3964387c356e | refs/heads/master | 2022-03-08T14:58:51.843698 | 2022-03-01T22:32:14 | 2022-03-01T22:32:14 | 94,803,813 | 1 | 0 | null | 2017-06-19T17:38:03 | 2017-06-19T17:38:03 | null | UTF-8 | Python | false | false | 1,069 | py | #!/usr/bin/env python
from __future__ import print_function
import os
import codecs
from setuptools import setup, find_packages
def read(*parts):
filename = os.path.join(os.path.dirname(__file__), *parts)
with codecs.open(filename, encoding='utf-8') as fp:
return fp.read()
setup(
name="chrome... | [
"mail@stefanwehrmeyer.com"
] | mail@stefanwehrmeyer.com |
c579f470c806a9dc5380e7a37861e02db96a8346 | a107fa9b6393bb5344e7bb9dfc5ffa2ac871347e | /client.py | fdd37575ccb4fc3952feb4788f77ca1222fe1c76 | [] | no_license | Stoney290/Clip-to-Clip | f3b129b653c57ea015e19fd56e990612966098a4 | 935abc43bd574956b8bf282521a2f9dac0f55b23 | refs/heads/master | 2021-02-05T22:29:55.935929 | 2020-05-31T18:00:50 | 2020-05-31T18:00:50 | 243,843,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | import sys
import requests
from requests.auth import HTTPBasicAuth
Backend = 'http://localhost:10000/clipboard'
if len(sys.argv) == 5:
Program, User, Pwd, Content, Expiry = sys.argv
Expiry = int(Expiry)
payload = {
'User':User,
'Pwd':Pwd,
'Content':Content,
'Expiry':Expiry
}
elif len(sys.ar... | [
"noreply@github.com"
] | noreply@github.com |
3ab6f6aff44401651bf7b863eb662e61d3e37e89 | 00d640cf9cfd50bf9c7952bdad781f63ee6ad1ab | /light control algorithms/light_control_functions.py | f43bc673e7bafabf3a2a92453361c0e219bea9f0 | [] | no_license | samdonnelly/Light-Control-Box | ec79490a0bef1c74fa5be84062a3fc9bd188797b | c8f2c7b4d081c896b9edbafeb1d5af579d219fb8 | refs/heads/main | 2023-09-02T13:21:59.455146 | 2021-11-10T05:27:21 | 2021-11-10T05:27:21 | 425,306,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,055 | py | """
Author: Sam Donnelly
Project: Desktop Christmas Tree
Date Created: October 16, 2021
Date Last Modified: October 16, 2021
Purpose:
- Functions to support the light_control_algorithms.py script
"""
# ---------------------------------------------------------------------------
# Import Libraries
# ----------------... | [
"samueldonnelly11@gmail.com"
] | samueldonnelly11@gmail.com |
ddc2c9668a4817787ff82b7eaead68fea1c20256 | 6cbd0925ae093de808966cf954049127b545476d | /CRM/URLS/permissions/urls.py | 294bde0c7b9d98ca022009f38d024911dd520d0e | [] | no_license | sauditore/FCRM | 7c788475f5425550359d3055386fdd8cebe8767d | 14851d828d58bf8d2dcd464176a1d6861249458a | refs/heads/master | 2021-05-22T13:21:09.835709 | 2020-04-05T06:55:31 | 2020-04-05T06:55:31 | 252,943,883 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,360 | py | __author__ = 'Administrator'
from django.conf.urls import patterns, url
from CRM.Processors.Permission.FrmDeletePermission import delete_permission
from CRM.Processors.Permission.ShowPermissions import show_perms
from CRM.Processors.Permission.FrmCreatePermission import create_permission
from CRM.Processors.Permis... | [
"root@nobody.localdomain"
] | root@nobody.localdomain |
803331d02c81b15dd9eeeb88fb58de707d4c9897 | 287c663c97e7840239794fbe84ce285773b72985 | /virtual/bin/mako-render | ff06d7a97fb70f3f26a64dd2325bf6138e8c7d31 | [
"MIT"
] | permissive | mzazakeith/flask-blog | ea8e5b2da9a581eb026564c1b9e500fa0532ee88 | 2833404cc5e96ffdbfb767f35b9caf2bdcce7997 | refs/heads/master | 2020-03-21T21:24:57.296282 | 2018-07-02T20:20:24 | 2018-07-02T20:20:24 | 139,062,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | #!/home/mzaza/Desktop/flask_blog/virtual/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from mako.cmd import cmdline
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(cmdline())
| [
"mzazakeith@gmail.com"
] | mzazakeith@gmail.com | |
a98066fa4f1f205b8d832995d43348b27b4b8bfa | 0b896bd19730a6b44990b921a11e361f4b1dff71 | /src/exceptions.py | 1c4ccf2627decd1ad83d7f6f8ff0a784e8bec471 | [] | no_license | sunarium/cs4920Project | fc527ffd52a0af3189820b4f817dffde86968089 | 0e879bece96198ea3883a499622d9afe0b360528 | refs/heads/master | 2020-08-06T10:11:54.383173 | 2019-11-25T07:10:51 | 2019-11-25T07:10:51 | 212,938,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | class IllegalPlayerActionError(Exception):
pass
class NetworkError(Exception):
pass | [
"m.yu@student.unsw.edu.au"
] | m.yu@student.unsw.edu.au |
19565566b932905e442427320118dae6bb6dc750 | 48f0dcb6209561a0ae9a41310afab3e723a05160 | /.config/qtile/default_config.py | 6eefa29a174c314d3d381d61285bf166444515d4 | [] | no_license | voreille/dotfiles | 6bd9709d8b5eeefd29fc04ef323c4a97a00e0a18 | fa2f452b10aaf0f124295c04dd564ee76af86474 | refs/heads/main | 2023-04-15T07:22:34.480569 | 2021-04-30T12:44:04 | 2021-04-30T12:44:04 | 340,158,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,428 | py | # Copyright (c) 2010 Aldo Cortesi
# Copyright (c) 2010, 2014 dequis
# Copyright (c) 2012 Randall Ma
# Copyright (c) 2012-2014 Tycho Andersen
# Copyright (c) 2012 Craig Barnes
# Copyright (c) 2013 horsik
# Copyright (c) 2013 Tao Sauvage
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# o... | [
"valentin.oreiller@gmail.com"
] | valentin.oreiller@gmail.com |
a794b38e5b1c9bc25dfef36a9d955d9cf54a7d8b | 2f0aa66e14c6595289f6a0de2bdf71e9922052a7 | /nextApi/user/migrations/0003_auto_20200818_2008.py | 6d6e0a8b8d3ab39d197ff070024c08b0dd3e56ff | [] | no_license | aimethierry/NextApi | 8f83a2b0f499fdf5118eb930baa051584cfd9aa5 | 90884ee6d900ce71116b40276dda0e97bec0b521 | refs/heads/master | 2022-12-11T09:03:54.981284 | 2020-09-19T12:40:36 | 2020-09-19T12:40:36 | 296,866,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 943 | py | # Generated by Django 3.1 on 2020-08-18 18:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user', '0002_companyacc'),
]
operations = [
migrations.AddField(
model_name='companyacc',
name='email',
fi... | [
"aime.thierry97@gmail.com"
] | aime.thierry97@gmail.com |
2067d0e3fe17457409fb06a1f32336009d091972 | 34f45b51f8d115bc183748b81b8dbea3e398eede | /case/macroit.py | 0ef0fcad8c2a6af5f093ba86be3e5e8389c4806d | [] | no_license | MaxMorais/Code2Case | 5e2d33fab907dee93600f7792904da0a0a0e7d4c | 2c4137db8c7cdb9ec398900c7c42de8281900ace | refs/heads/master | 2021-01-01T16:50:37.103541 | 2013-10-18T14:07:58 | 2013-10-18T14:07:58 | 5,938,878 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,911 | py | #!/usr/bin/python
"""
Interpreter of Python function
* Does not support exceptions
"""
import dis
import new
def get_cell_value(cell):
def make_closure_that_returns_value(use_this_value):
def closure_that_returns_value():
return use_this_value
return closure_that_returns_value
dummy... | [
"max.morais.dmm@gmail.com"
] | max.morais.dmm@gmail.com |
edf2ee5f33b2c47b39839784db6d3eeb8d864c12 | a8c41ff849b1048d0ac553b8c1ef2fdd9af6eb0d | /bspwm/bspwm/scripts/bctl | b75a1f073ff63499e9ec976c35c1e61460112493 | [] | no_license | sohamb117/YukinoConf | 5e950f407744b7891053bff8dc49a3eaf270fe4e | 14d9ec55a700345267e1c87c81da9d8fa1e884e5 | refs/heads/master | 2023-03-06T21:00:39.391107 | 2021-02-19T18:51:44 | 2021-02-19T18:51:44 | 340,459,366 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,337 | #!/usr/bin/env python3
import subprocess
import os
import time
pwr = subprocess.check_output("bluetoothctl show", shell=True)
pwr = 'Powered: yes' in pwr.decode("utf-8")
if pwr:
dl = subprocess.check_output("bluetoothctl paired-devices", shell=True)
dl = list(dl.decode("utf-8").strip().split('\n'))
ds = '... | [
"sohamb117@gmail.com"
] | sohamb117@gmail.com | |
d205eeabe1230372e52454c55429cccf3659b362 | 614cad3588af9c0e51e0bb98963075e3195e92f5 | /utils/completeness.py | bd6b0845fa36983abbad225f1ed473385db12e64 | [] | no_license | dragonlong/haoi-pose | 2810dae7f9afd0a26b3d0a5962fd9ae8a5abac58 | 43388efd911feecde588b27a753de353b8e28265 | refs/heads/master | 2023-07-01T14:18:29.029484 | 2021-08-10T10:57:42 | 2021-08-10T10:57:42 | 294,602,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,738 | py | import argparse
import os
import torch
import numpy as np
from scipy.spatial import cKDTree as KDTree
import trimesh
import glob
from joblib import Parallel, delayed
def directed_hausdorff(point_cloud1:torch.Tensor, point_cloud2:torch.Tensor, reduce_mean=True):
"""
:param point_cloud1: (B, 3, N)
:param p... | [
"lxiaol9@vt.edu"
] | lxiaol9@vt.edu |
c1f1d4db23e064ffee1b6dbda44258ba6713a638 | b246fc0d9f51cdcdf9f539635aaecf54a238eb5c | /py_src/mltk_qualia/task_config.py | a927de1eaa078d18a8897405a44b61c34da8be86 | [] | no_license | yv/MLTK_Qualia | 0168227f9747e13bb7265453b98a09543f551ce1 | 05a77f38295b53ce0fa83697a19607f28ad035dd | refs/heads/master | 2020-07-08T10:48:34.631353 | 2013-09-13T14:29:25 | 2013-09-13T14:29:25 | 203,649,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,291 | py | import codecs
import re
import optparse
import sys
from collections import defaultdict
from alphabet import CPPUniAlphabet
from pcfg_site_config import get_config_var
from pynlp.de.smor_pos import get_morphs
__all__=['all_tasks','get_task_pos_pairs','get_task_pos_tags',
'get_pair_alphs_by_pos', 'get_word_alph... | [
"versley@sfs.uni-tuebingen.de"
] | versley@sfs.uni-tuebingen.de |
cd933faabaaa6dca60203eed2ccdf2f8d8771302 | b756852d989065c180d48b8b8d084eabc6abb696 | /tp01/ex02-missionaries-cannibals/ex02_c_iddfs.py | 1b720852298884faecc14284c252f0c0a8e2a81a | [] | no_license | goncaloacteixeira/feup-iart | 02ab7d5827db8fb59336e848bc07cec97083d6a1 | e53ce8319d201d55c614596d70e356c642f4c13e | refs/heads/master | 2023-08-23T08:55:02.116116 | 2021-02-27T02:24:35 | 2021-02-27T02:24:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,711 | py | from State import *
from Utils import *
# Iterative Deepening Depth First Search
def iddfs(state: State, goal: tuple = (0, 0, -1), max_depth: int = 11):
current_max_depth = 1
while current_max_depth != max_depth:
root = Node(state)
stack = [root]
tree = Tree(root)
# if the st... | [
"goncalo.ac.teixeira@gmail.com"
] | goncalo.ac.teixeira@gmail.com |
bcc75cc2bb8799b57c6a1917372e53bda74144e0 | a43e24eca5ec318c6e32349541e34ae8dda79eda | /eCom/models.py | 94f86d1b196c10babdfc81106e911b33ae7fe711 | [] | no_license | Aziz-T/django-ile-E-Ticaret-Sitesi-projesi--E-Commerce-Web-Site-with-django | 374f14f2b47881876db90235ee2ea5a064918f48 | cef5e2da46d7b5bc2abbc3d642797518d1b82c33 | refs/heads/master | 2023-03-27T17:05:31.152851 | 2021-03-30T12:19:03 | 2021-03-30T12:19:03 | 321,477,176 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,475 | py | from django.db import models
# Create your models here.
class Customer(models.Model):
name = models.CharField(max_length=200, null=True)
email = models.CharField(max_length=200,null=True)
class Product(models.Model):
name= models.CharField(max_length=200,null=True)
price=models.FloatField()
digi... | [
"one@users.noreply.github.com"
] | one@users.noreply.github.com |
92983595364b9d6233a635a1ee97a58b611411bc | 81dd26abbbf276313ce3947fa5146970796cc471 | /discum/start/login.py | 20d6d9a04fb3fc4329734f9caee81f620a19543f | [
"MIT"
] | permissive | LYZEN77/Discord-S.C.U.M | f6e6a4a4c44f2bd3cb177411eed68a81ba8384c2 | 40a5c04fb17b74ad3877d792db926800d03bccc9 | refs/heads/master | 2023-02-11T16:48:52.058529 | 2021-01-09T15:59:06 | 2021-01-09T15:59:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,220 | py | from ..RESTapiwrap import *
class Login:
'''
Manages HTTP authentication
'''
def __init__(self, s, discordurl, user_email, user_password, log):
self.s = s
self.discord = discordurl
self.__user_email = user_email
self.__user_password = user_password
self.log = log... | [
"68355905+arandomnewaccount@users.noreply.github.com"
] | 68355905+arandomnewaccount@users.noreply.github.com |
6e295ce0c99120e307b1f78f4a7793a23ab243da | 709bf40a52d3aae34a2563f3cf4fdfa53b9cf1a9 | /backup.py | bb4fb3edb89257ff5021bf11017450d0c8300c38 | [] | no_license | DanielR59/twitchHossBotsDB | 26fc7f915eb757d41b134b2b4d2280fa64831d9d | 5ed8efccc4cfe0615cbda5dcef258434e83db8d8 | refs/heads/main | 2023-08-07T07:41:09.351594 | 2021-10-01T05:42:50 | 2021-10-01T05:42:50 | 405,424,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,651 | py | import sys
import shutil
import sys
def read_to_list(file : str) -> list:
with open(file,'r') as f:
file_list = f.read()
file_list = file_list.split(sep='\n')
file_list = list(filter(None,file_list))
file_list.remove("BANLISTEND")
return file_list
def backup_updater(origina... | [
"daniel_pumas_59@hotmail.com"
] | daniel_pumas_59@hotmail.com |
4020c3b3e7e7165b0196c1585615c9b95e9e33fd | 11211916f39b9d98027b64d778e52743d0c519a1 | /L3/tmp/assignments/outline.py | e7bba9d3d9acf2c3e969914fff659f06fe1cd781 | [] | no_license | mantasruigys3000/Group-Task | 87baf1bc2747323c0508f6f32ef733c3f4b50978 | 6790d74ae7fa0fe6b13733efcd75a9f4aca70ab0 | refs/heads/master | 2020-04-23T20:54:09.696659 | 2019-02-22T01:29:53 | 2019-02-22T01:29:53 | 171,454,102 | 0 | 0 | null | 2019-02-19T10:31:09 | 2019-02-19T10:31:08 | null | UTF-8 | Python | false | false | 343 | py | Amet velit etincidunt porro est quaerat etincidunt.
Velit ut velit dolor consectetur est dolor.
Voluptatem quisquam quiquia quisquam sed ut.
Non voluptatem voluptatem etincidunt.
Username: Marcus
Password: titten
Dolorem velit labore velit amet ipsum ipsum adipisci.
Quaerat labore est dolore quaerat aliquam.
Amet sit c... | [
"mantasruigys101@gmail.com"
] | mantasruigys101@gmail.com |
3a471239801b8078837935c47ac052742afca2fb | 0e61a484a3a4fc61fe2b660e25fad5744232773b | /avx2-hps4096821/bitpermutations/applications/squaring_mod_GF2N.py | 993a88bdda647d86ccc7491da1dc512403d8093f | [
"CC0-1.0"
] | permissive | OussamaDanba/ntru | 3278dae5bd18ddc9d93acb9eb4221bfec3e7ca06 | da413076b3b0fb377c3174c331462c3293193580 | refs/heads/master | 2020-04-24T08:17:40.665914 | 2019-08-31T17:11:35 | 2019-08-31T17:11:35 | 171,826,066 | 0 | 0 | CC0-1.0 | 2019-02-21T07:55:03 | 2019-02-21T07:55:01 | Python | UTF-8 | Python | false | false | 11,740 | py | from bitpermutations.data import (ONE, ZERO,
Register, Mask, IndicesMask, MaskRegister,
AllocationError)
import bitpermutations.instructions as x86
from bitpermutations.printing import print_memfunc
from bitpermutations.utils import reg_to_memfunc, spl... | [
"jschanck@uwaterloo.ca"
] | jschanck@uwaterloo.ca |
d6252c8443b948c869fb4eba3936535398536b9d | 079383fd8753b9900fe9db5d74de5c883f15ccf1 | /posts/migrations/0003_auto_20191210_2116.py | 013483f4bae29cec1b780e3db2e376dce0133ade | [] | no_license | amreges/Blog | 497a6ea9cc9d9472d21c97c726606e36ed9f1c4f | 386d852f0c800a7d83bfa1214f7e55dcfa83b84a | refs/heads/master | 2021-09-28T14:19:07.170381 | 2019-12-11T00:22:14 | 2019-12-11T00:22:14 | 227,240,535 | 0 | 0 | null | 2021-09-22T18:06:35 | 2019-12-11T00:18:35 | Python | UTF-8 | Python | false | false | 365 | py | # Generated by Django 3.0 on 2019-12-11 00:16
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('posts', '0002_auto_20191210_1927'),
]
operations = [
migrations.RenameField(
model_name='pedido',
old_name='Pagamento',
... | [
"reges.amanda1@gmail.com"
] | reges.amanda1@gmail.com |
0c3fe24ba0db11201013ae26551e6603037ee311 | 777070dee16cf88afe691c02e6272add54466f78 | /vagrant/flask_ajax2/app.py | 8ca05c470dc88d15fa9bda672bbd666752f1082d | [] | no_license | Swojak-A/Flask_Test_apps | 97b62f8aa613e085fe3216b89d64f92a2c094d48 | 3fd4c0480902abdee144a7233f303fcc37f10dcc | refs/heads/master | 2022-10-22T09:03:11.584528 | 2018-07-26T14:10:06 | 2018-07-26T14:10:06 | 141,889,349 | 1 | 1 | null | 2022-10-11T22:28:14 | 2018-07-22T11:18:24 | Python | UTF-8 | Python | false | false | 3,021 | py | from flask import Flask, render_template, request, jsonify
from flask_sqlalchemy import SQLAlchemy
class ConfigClass(object):
SECRET_KEY = 'This is an INSECURE secret!! DO NOT use this in production!!'
SQLALCHEMY_DATABASE_URI = 'sqlite:///fungus.db' # File-based SQL database
SQLALCHEMY_TRACK_MODIFICATION... | [
"swojak.a@gmail.com"
] | swojak.a@gmail.com |
aa28f1b3a188e5b90f854c9b413ac02404822933 | 2b410d4f7eb48427cb0205295f6e8a65f4c2562f | /core/schema.py | d6858eaab466f5cd5c76fac74d601ff7fd95f0f6 | [] | no_license | eavbinary/otus_pyweb_site | 27c3218dd4c0fdf9c235daca19ea9b124b7962a8 | 982cbcf01d5aed114002bce7783c3495e3f9bf3c | refs/heads/master | 2023-07-14T05:59:31.018553 | 2021-08-31T13:17:21 | 2021-08-31T13:17:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,486 | py | import graphene
from django.contrib.auth.models import User
from graphene_django import DjangoObjectType
from .models import People, Course, StudentGroup, PeopleInGroup, Schedule
class UserType(DjangoObjectType):
class Meta:
model = User
fields = ('id', 'username', 'first_name', 'last_name', 'ema... | [
"eav.binary@ya.ru"
] | eav.binary@ya.ru |
ea5b92d695adaa4957a531b8fcb3cf4771a1f942 | aeda2662a40c97bed9512ef5d6e958c430287bce | /trying/website/forms.py | 46714dba53b2aee078c1eb004bc2418afeed311b | [] | no_license | generationzcode/sns | cfe60319132e29561cf58ea018852c81c8d23a59 | a0dc0942f8393502ff4dbba89af8501e2118d14f | refs/heads/master | 2020-09-21T05:34:17.616675 | 2019-11-28T17:02:46 | 2019-11-28T17:02:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | from django import forms
from .models import Roast
from django.utils import timezone
class RoastForm(forms.Form):
roast = forms.CharField(label='roast', max_length=1000) | [
"arjunarastogi@gmail.com"
] | arjunarastogi@gmail.com |
611dd71d44e7e6ece714b4e93db36c19f786ff1c | d6d90091f5a3434deae0f834794649d8b0f77071 | /shuffleNumber.py | 02813622ffd8702ce2964cbea8e2c459876e96ca | [] | no_license | rhyep/Automate-the-Boring-Stuff-with-Python | e1a7be3e2487bf384669abc7bd47df032982546a | 91c7583f40363c37bb768cd02cae859defaeab5c | refs/heads/master | 2020-03-28T12:23:14.693695 | 2018-09-14T05:53:59 | 2018-09-14T05:53:59 | 148,292,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | # This is a guess the number game.
import random
print('Hello. What is your name?')
name = input()
print('Well, ' + name + ', I am thinking of a number between 1 and 20.')
secretNumber = random.randint(1, 58)
secretNumber1 = random.randint(1, 58)
secretNumber2 = random.randint(1, 58)
secretNumber3 = random.randint(1... | [
"rhym.sugar@gmail.com"
] | rhym.sugar@gmail.com |
40b606a75f2a3ea6ee7f290d627b798e157e9894 | 2b31366107bd56244564c196c852f39ff024e278 | /example.py | 095c2818d3c45494ec74d905b086705256aa66a9 | [
"BSD-3-Clause"
] | permissive | toastdriven/pubsubittyhub | 444a7b0d5b26abf0a1cd820d3d57a1d92346a4c4 | 8d3a0b135b0a284f52234c06cfc586cc5e6f5c6d | refs/heads/master | 2020-05-05T01:39:51.073435 | 2009-12-17T09:22:31 | 2009-12-17T09:22:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | import urllib2
import sys
from urllib import urlencode
try:
import json
except ImportError:
import simplejson as json
print 'Testing index...'
content = urllib2.urlopen('http://localhost:8080/').read()
print 'Creating a channel...'
content = urllib2.urlopen('http://localhost:8080/channels', data={}).read()
pr... | [
"daniel@toastdriven.com"
] | daniel@toastdriven.com |
60796983cfa596e187827dbca6f9c21de957b2ab | eb06bf6726829dba01b2f5f1bb10727166865b4e | /evaluation.py | a0499df819c14bfba15a3b7e316779dc301222e9 | [] | no_license | kaveri-nadhamuni/xray-pytorch | 38d0a7e24c2041e690ef964ddea89543b06d6855 | 29d1d127e9acc53a90a988901ddb0722a5311a2d | refs/heads/master | 2020-04-20T17:05:45.226372 | 2020-04-19T21:44:13 | 2020-04-19T21:44:13 | 168,978,876 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,805 | py | import numpy
import torch
from datasets import load_dataset
from tools import encode_sentences, encode_images
def evalrank(model, data, split='dev'):
"""
Evaluate a trained model on either dev ortest
"""
print 'Loading dataset'
if split == 'dev':
X = load_dataset(data)[1]
else:
... | [
"kaveri@mit.edu"
] | kaveri@mit.edu |
ee66c9dd4a0d630c6ecb661c22a3acf967691125 | 58ce8a45d03ec24b89e7502f149bef42d77ad777 | /tests/test_models_artist.py | 96a9afac325c6d5076dbf3cec399a9ae628b3fc7 | [
"MIT"
] | permissive | AndyTempel/spotify.py | db9ba8523d6dbd9bf233f963ea04fac4bf555d5e | d5a18ee59ddffd9026b36f510b45b4cc391ac557 | refs/heads/master | 2022-12-12T14:46:41.780249 | 2020-08-28T23:35:09 | 2020-08-28T23:35:09 | 291,162,036 | 0 | 0 | MIT | 2020-08-28T23:02:23 | 2020-08-28T23:02:22 | null | UTF-8 | Python | false | false | 618 | py | import asyncio
import unittest
from types import ModuleType
from common import *
class TestArtist(unittest.TestCase):
@async_with_client(SPOTIFY_CLIENT_ID, SPOTIFY_CLIENT_SECRET)
async def test_artist(self, *, client):
for artist_uri in TEST_ARTISTS:
artist = await client.get_artist(artis... | [
"m3nta1@yahoo.com"
] | m3nta1@yahoo.com |
07bd5abf6da70de6c220abe83c4631da983520bc | cf8c8118c16e7f38a190bc4a96b28d8c4b89ff58 | /mmdet3d/core/bbox/assigners/__init__.py | 44f51fc0f336ef0b15d9090d3b6017873f6aa83a | [
"Apache-2.0"
] | permissive | encore-zhou/mmdetection3d | a7a5e21c0ec8f99843301b89b1e9b079f0a983c5 | c3d7f97baecd1beff1e9757d51523778c38f118b | refs/heads/master | 2023-03-21T17:03:22.723259 | 2020-09-22T07:08:45 | 2020-09-22T07:08:45 | 283,723,083 | 1 | 1 | Apache-2.0 | 2020-09-22T07:08:46 | 2020-07-30T09:07:38 | Python | UTF-8 | Python | false | false | 133 | py | from mmdet.core.bbox import AssignResult, BaseAssigner, MaxIoUAssigner
__all__ = ['BaseAssigner', 'MaxIoUAssigner', 'AssignResult']
| [
"wayne.zw@outlook.com"
] | wayne.zw@outlook.com |
f5b5532ccdc4dc030b0b591b8d0a3875537e6a09 | 750f3e0bbb91e7cc850d5d901d27f6e298bc86f6 | /BattlegroundPolls.py | 6157363d244e2cc15a946b12490cf4849a8050f3 | [] | no_license | vandanaprabhu2000/PresidentialPolls | 6b20a3ec44f02245fcf232465e76bdc2d3f2d8dc | f057395399b69669ea3c2bc08cdbf95c7b297b6e | refs/heads/master | 2022-12-08T21:11:42.712328 | 2020-09-02T02:15:09 | 2020-09-02T02:15:09 | 291,191,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | from rcp import get_polls
battleground_states = [
"Wisconsin",
"Florida",
"Michigan",
"Pennsylvania",
"North Carolina",
"Arizona",
]
for state in battleground_states:
polls = get_polls(candidate="Trump", state=state)
for poll in polls:
print(poll) | [
"vandanaprabhu2000@gmail.com"
] | vandanaprabhu2000@gmail.com |
e4dd882dee464e497e99ac05ba9d79af0ff95fbd | ff999ce591e1f4f06964bb2cf9f159a07468c9fa | /project/app/models.py | d10a0a3a4550a29c185c69348410b831bde3de9e | [] | no_license | Ganapathy7204/corona-django | f95bfee3a6a373a47206d92b23a616d510161899 | cdff58c5573603185fc6f9e0edee5ac55c2c1461 | refs/heads/master | 2022-12-05T11:45:51.381384 | 2020-08-20T10:13:39 | 2020-08-20T10:13:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,023 | py | from django.db import models
# Create your models here.
class Contact(models.Model):
name=models.CharField(max_length=30)
email=models.EmailField()
phone=models.IntegerField()
desc=models.TextField()
def __str__(self):
return self.name
class Friendspost(models.Model):
sno=models.Au... | [
"aneesurrehman423@gmail.com"
] | aneesurrehman423@gmail.com |
b2763a3a3c9318b24e36592eed8791533faf27d4 | 4786216d2a8e9221cc3624366152f47ae513e5c7 | /ๅไบฌๆฟๅฑไบคๆ/00.py | 3738ce39b9fbe67fc5d1c47c31d9d290e2cc619a | [] | no_license | injuredangel/- | b6a2502ee026320b96947d41c223edebe3ec65cc | 7988c6aa5e825504ff59b006c37d4383b3bb1da8 | refs/heads/master | 2020-05-25T02:21:15.654253 | 2019-05-20T06:27:42 | 2019-05-20T06:27:42 | 187,575,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,050 | py |
import requests
from bs4 import BeautifulSoup
url = 'http://www.bjjs.gov.cn/bjjs/fwgl/fdcjy/fwjy/index.shtml'
headers = {
'Accept':'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8',
'Accept-Encoding':'gzip, deflate',
'Accept-Language':'zh-CN,z... | [
"you@example.com"
] | you@example.com |
e2a285f5d90bbec70f34426e66342056d7e21018 | 87fe6ec76a16f1fb4712df0b6a497f0df75bd5d1 | /shell_test/test.py | 4e31a078b82ed4e85452a1cdd85dfcb6c7d29690 | [] | no_license | Angel888/suanfa | 48d4f6f425d0075111517e7ea635a74b79df97a6 | 4a27fdd976268bf4daf8eee447efd754f1e0bb02 | refs/heads/master | 2023-05-09T06:29:44.649587 | 2021-05-29T00:45:33 | 2021-05-29T00:45:33 | 371,849,036 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | import functools
with open('bb', 'r') as f:
data = f.readlines()
print(data)
data = sorted(data, key = functools.cmp_to_key(lambda x,y: 1 if len(x)> len(y) else -1))
print(data)
# todo https://www.cnblogs.com/apeway/p/10764597.html ๆฐ็ปไธญๆชๅบ็ฐ็ๆๅฐๆญฃๆดๆฐ
def smallest_num(num_list):
num_list.sort()
for... | [
"wei.liangjie@mintegral.com"
] | wei.liangjie@mintegral.com |
da6cf0b5706d9aff92391ad04e8b0982ed654063 | 819875a388d7caf6795941db8104f4bf72677b90 | /chrome/test/functional/chromoting_basic.py | 5b8a46d3bbbd9714a1c930b48013acd6a76d1bd1 | [
"BSD-3-Clause"
] | permissive | gx1997/chrome-loongson | 07b763eb1d0724bf0d2e0a3c2b0eb274e9a2fb4c | 1cb7e00e627422577e8b7085c2d2892eda8590ae | refs/heads/master | 2020-04-28T02:04:13.872019 | 2012-08-16T10:09:25 | 2012-08-16T10:09:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,488 | py | #!/usr/bin/env python
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import os
import pyauto_functional # Must come before chromoting and pyauto.
import chromoting
import pyauto
class ChromotingBa... | [
"loongson@Loong.(none)"
] | loongson@Loong.(none) |
07e55ee3fd2c3c2e3b690cf0132a7e10a918ba60 | 5b3d8f56f4d18dc8809f9f5aa7d2a7089cdbf489 | /.c9/metadata/workspace/Interview/InterviewRQ3.py | 7e7c06281c2528a512f1728fa32de5e30a67c06d | [] | no_license | heyliljill/edpsych-cloned | 89ba1a827ed66651b7387b25bc2c188ff344e8d1 | ba02e4789e390bb6488b11608b994ee5678a4b30 | refs/heads/master | 2020-07-26T00:51:41.004018 | 2019-09-14T17:26:45 | 2019-09-14T17:26:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | {"filter":false,"title":"InterviewRQ3.py","tooltip":"/Interview/InterviewRQ3.py","ace":{"folds":[],"scrolltop":186,"scrollleft":909,"selection":{"start":{"row":38,"column":26},"end":{"row":38,"column":325},"isBackwards":false},"options":{"guessTabSize":true,"useWrapMode":false,"wrapToView":true},"firstLineState":0},"ha... | [
"jillyma@gmail.com"
] | jillyma@gmail.com |
1210ed8c74d75308a92987b11c01cc0c7b84f9d4 | 3e17606da0f946a2a5f9f0d2949b1a08c015252b | /Paiza_Prac/SkillChallenge/D-Rank/D-53_ใใชใใฏใชใขใใชใผใ/D-53_TrickOrTreat.py | 5462b419771a59147b08efdfa70b7f78a2f03483 | [] | no_license | nao-j3ster-koha/Py3_Practice | 03a5ba57acdb4df964fcfc6b15afdd2f0d833ef1 | 4f64ddc022449060a67f7b0273c65d8f1ff8c680 | refs/heads/master | 2021-10-09T11:04:03.047530 | 2018-10-16T09:15:59 | 2018-10-16T09:15:59 | 103,068,457 | 0 | 0 | null | 2018-10-16T08:47:04 | 2017-09-10T23:12:42 | Python | UTF-8 | Python | false | false | 182 | py | str = input()
while (int(len(str)) < 1 or int(len(str)) > 20):
str = input()
if ( str == 'chocolate' or str == 'candy'):
rslt = 'Thanks!'
else:
rslt = 'No!'
print(rslt) | [
"sdvr.nao@gmail.com"
] | sdvr.nao@gmail.com |
515985f9c365e4f7a75fbacff4880c8cf4311440 | 84e14fa47a457c67a64d5c6fd6a1e37bd55de6e1 | /mynumpy/mynumpy.py | c55e5649673ffcfcedebf56ca4c34272d9262c88 | [] | no_license | python-2019/python-data-analysis | 0f5d47b9bd3166a84ddab6f4a0ea0e746a9901a0 | bf133979c5e342b5ec109b091d3473eadbf53651 | refs/heads/master | 2020-07-15T23:57:46.783095 | 2019-09-16T11:11:46 | 2019-09-16T11:11:46 | 205,677,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,278 | py | import numpy as np
class mynumpy:
@staticmethod
def desc():
print("่ฟๆฏnumpy็ไธไบๆต่ฏ")
@staticmethod
def base1():
# ็ๆ ๆฐ็ป [0 1 2 3 4 5]
arr1 = np.arange(6)
# ๅๅฒ ไธ็ปดๆฐ็ป ไธบ ไบ็ปดๆฐ็ป [[0 1 2] [3 4 5]]
arr2 = arr1.reshape((2, 3))
# ๆฐ็ป ็็ฎๆฏ่ฟ็ฎ [[2 3 4] [5 6 7]]
... | [
"854731306@QQ.com"
] | 854731306@QQ.com |
d1e535da617f09a037448c3df23b3b182bcedd53 | c0578b14ebaef889ffc75551ebcc7e5c80b6069e | /src/811_subdomain_visit_count.py | 87eb66cd63973d2c0ce2d010c3afb1f86145ce1f | [] | no_license | BrianQcq/LeetCode | 88ee122aa2b358c61d6980c159008e8ccac6cc8c | 127ca7d82fa15214da8d5e9fbc461831cdb6b60b | refs/heads/master | 2020-06-10T04:20:33.798787 | 2019-11-12T07:56:58 | 2019-11-12T07:56:58 | 193,580,067 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py |
class Solution(object):
def subdomainVisit(self, cpdomains):
d = {}
for item in cpdomains:
n, domains = item.split()
n, domains = int(n), domains.split('.')
for i in range(len(domains)):
temp = '.'.join(domains[i:])
d[temp] = d[temp] + n if temp in d else n
return [str(d[i]) + ' ' + i for i ... | [
"qiuchuanqin@gmail.com"
] | qiuchuanqin@gmail.com |
b934c3888b04e8b3f176a880a569f036ad34e3b6 | 05551338203763bad453a2264c5b6582d725ed3d | /MusicAnalyser/settings.py | 5e2d64f8d5926c6d80a9e58570461a3facf1b76d | [] | no_license | ShivayaDevs/MusicAnalyser | 51e553c138ee5e05b9b9c8ec19e10e5594a6d05d | b86abceebb1c11e938af43747dca4512ecb00ca3 | refs/heads/master | 2021-01-22T18:23:31.125100 | 2017-03-17T19:05:33 | 2017-03-17T19:05:33 | 85,077,721 | 5 | 2 | null | 2017-03-17T06:19:51 | 2017-03-15T13:47:18 | Python | UTF-8 | Python | false | false | 3,133 | py | """
Django settings for MusicAnalyser project.
Generated by 'django-admin startproject' using Django 1.10.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
imp... | [
"verma.yash8@gmail.com"
] | verma.yash8@gmail.com |
a4b161d665baf8d27aecbdb191e60e06308b2f62 | 8c7fba506eb022e627537e6017b97508ca453b65 | /models/dbsetup.py | 7b7c8e89cda78eb02cff7f6496740a112f1c6dcd | [
"MIT"
] | permissive | laminko/wBlog | 4a6851ba159c5cf30461fd08b428647c14622c14 | c2bdecede8bf589eabb57bd080e90d995261aafd | refs/heads/master | 2020-04-06T07:05:22.722787 | 2016-09-15T09:01:34 | 2016-09-15T09:01:34 | 65,677,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,885 | py | from datetime import datetime
SYM_PAGE_BREAKER = " {LMK:PAGE-BREAK} "
SINGLE_SPACE = " "
# Tables
db.define_table('post',
Field('title', 'string'),
Field('body', 'text'),
Field('body_pagebreak',
compute=lambda r: (
r['bod... | [
"="
] | = |
d41c719892923ffb1f64eb2111db4b88f6752e4b | 5564382abc0a9ea1f19a1df063ed95c85fd241d8 | /organdonationwebapp/API/Authenticator.py | 3a24d0358a6e5906ef0a28f98daa3d88ad914e7f | [] | no_license | pratikkapoor90/Organ-Donation-App | 83dade2ee26ea4f7dc34748f785fc968640aa852 | 36a628a2b5406f6795cb37006153131240b29bde | refs/heads/master | 2022-12-17T14:35:24.661770 | 2018-11-06T17:23:06 | 2018-11-06T17:23:06 | 156,418,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 771 | py |
import organdonationwebapp.API.UserTypeFactory as factory
class Authenticator(object):
def __init__(self,loginJson, logger):
self.usertype = loginJson['logintype'] if 'logintype' in loginJson else None
self.email = loginJson['emailID'] if 'emailID' in loginJson else None
self.password = lo... | [
"pratik.kapoor@dal.ca"
] | pratik.kapoor@dal.ca |
360662ab4716ef28923524956a306b1e9ae36d00 | 2f2334477bce67f116a3547683192710761ac21e | /happy_python/happy_config.py | 3629798b6da17f58f6d0a7a19e6ceda5c4781e35 | [
"MIT"
] | permissive | geekcampchina/happy-python | ca00ddce75c3f8b5a50430c824628b5b6d178487 | c2b555fc3c90e91258d1145b99e266f9219f45f3 | refs/heads/master | 2023-08-18T02:02:03.568370 | 2023-08-10T07:09:35 | 2023-08-10T07:09:35 | 198,445,592 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,349 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
"""
้
็ฝฎๆไปถ๏ผINI๏ผ่ฝฌๆข็ฑป
"""
import os
from abc import ABCMeta
from dataclasses import dataclass
from happy_python import HappyPyException
@dataclass
class HappyConfigXListNode:
prefix: str
keys: list[str]
@dataclass
class HappyConfigXList:
section: str
nod... | [
"fifilyu@gmail.com"
] | fifilyu@gmail.com |
a883876441ca09c7cd5b24217de749b9af164355 | c3768b8bbf3c35bd6cc353b97a5c979239cbd8d2 | /String Reversal through stack.py | 245dd1cb686de9846c67b32a05fab84690107c82 | [] | no_license | iAnas19/Data-Structure-Assignments | 0fbd5b933b0045526c7937e54ace83f8ef4cbd3d | 51f876ce26807b49593fe5fa1438f37bcf081c9e | refs/heads/master | 2023-07-17T02:21:31.407895 | 2021-09-04T14:26:02 | 2021-09-04T14:26:02 | 402,455,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 611 | py | Stack = []
def isEmpty(stack):
if(stack == []):
return True
else:
False
def push(stack, item):
stack.append(item)
def pop(stack):
if(isEmpty(stack)):
return False
else:
s = stack.pop()
return s
def reverse(stack):
n = len(stack)
emptyStk = []
... | [
"anasarif216@gmail.com"
] | anasarif216@gmail.com |
285153a37535e81f1417b628a44f7dafe148b5f3 | dc66c0cf24c5f741b6288f3d73e6436752432dad | /Backend/blog/views.py | 203ade87be2962509d27279ad4a6c6d0e529d7a3 | [
"MIT"
] | permissive | Linzecong/LPOJ | bdcf79f5e751419c0cff14c818512d5509fd849f | 2f7ce194f1d510d8d006c2a35fdaa272f20ef1f3 | refs/heads/master | 2023-01-20T15:42:12.865669 | 2022-01-05T15:05:55 | 2022-01-05T15:05:55 | 164,289,923 | 236 | 79 | MIT | 2023-01-14T00:55:14 | 2019-01-06T08:41:36 | Vue | UTF-8 | Python | false | false | 1,365 | py | from django.shortcuts import render
from rest_framework import viewsets
from rest_framework.pagination import LimitOffsetPagination
from rest_framework.throttling import ScopedRateThrottle
from .models import OJMessage, Blog,Banner
from .serializers import OJMessageSerializer, BlogSerializer,BannerSerializer
from .perm... | [
"504603913@qq.com"
] | 504603913@qq.com |
22d902c49c825a300ee0d725ec6a94278a89d037 | da96d86eac60f0148b58c1a2a35d26981806a85a | /analysis/predictor_eval/metrics_disprot/metrics_disprot.py | 3016a0c83218bbbf64face6d288f9180542decb7 | [] | no_license | QiWenL/predIDR | 4d0efdfc38ff05f269701a91e76e478451d96533 | 7f5dde489fc12afdea45d3da32a136f907a7b60b | refs/heads/master | 2023-07-18T16:03:03.580240 | 2021-09-01T16:33:31 | 2021-09-01T16:33:31 | 298,642,410 | 0 | 0 | null | 2020-09-25T17:48:12 | 2020-09-25T17:48:11 | null | UTF-8 | Python | false | false | 1,711 | py | """Calculate metrics for all predictors against the DisProt dataset."""
import src.metrics as metrics
y_label_paths = [('aucpred_profile', '../../predictor_eval/aucpredp_disprot/out/aucpredp_labels.fasta'),
('aucpred_seq', '../../predictor_eval/aucpreds_disprot/out/aucpreds_labels.fasta'),
... | [
"marcsingleton@berkeley.edu"
] | marcsingleton@berkeley.edu |
dbfc45ee797d3708c6e32e2317b9d91c3383dcc9 | ee0403cb47394a3dfe78f41e674fd7146262c805 | /src/main/python/pitInput.py | 125b6e4aeb902b48fa3edb7c4216e07d4ad7bdee | [] | no_license | BREAD5940/ScoutingBase | 0d9fa2bf04ec1e1cc1b0306e6be0dd5f0b151425 | 558b83b4c1b3dfe4de87a07baedb178a1adf932a | refs/heads/master | 2020-04-30T20:39:04.250657 | 2019-11-03T23:57:50 | 2019-11-03T23:57:50 | 177,072,958 | 1 | 2 | null | 2019-10-07T00:33:44 | 2019-03-22T04:47:36 | Java | UTF-8 | Python | false | false | 8,545 | py | import PySimpleGUI as sg
# import main
# as dumb as it sounds, this is linked in with the rest of the base. line 165 (ish)
robotColumnTwoElectricBoogaloo = [
[sg.Text(' '), sg.Checkbox('Climbs')],
[sg.Text("\t\tLevel:", size=(19, 1)), sg.Radio('2', 'LVL'), sg.Radio('3', 'LVL'), sg.Rad... | [
"45951442+unduli-attacked@users.noreply.github.com"
] | 45951442+unduli-attacked@users.noreply.github.com |
36d766acb64d266f4988a64145c619c6d89a0910 | 17331ee8285a1f19e4ca1abd89dac64da381959d | /03-accessing-web-data/reading-webpages.py | 537e39244e68328b3514cbd9f43c78a7595785c4 | [] | no_license | chaochaocodes/PY4E | 3681367ce548fe9a423adb895fe76efda60521bb | 09930f6187c3388b61903680bcd4a1533b0b4f82 | refs/heads/main | 2023-03-28T11:29:09.209120 | 2021-04-01T02:34:58 | 2021-04-01T02:34:58 | 333,506,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | '''
Reading Webpages like Files using urllib
'''
import urllib.request, urllib.parse, urllib.error
# 1. Read like a File
fhand = urllib.request.urlopen('http://data.pr4e.org/romeo.txt')
for line in fhand:
print(line.decode().strip())
# reads the HTML file!
# returns header + body, but header not returne... | [
"57464564+chaochaocodes@users.noreply.github.com"
] | 57464564+chaochaocodes@users.noreply.github.com |
5e15489107b3c51fb2cfad091143fbf0e6ceb0fc | 9009ad47bc1d6adf8ee6d0f2f2b3125dea44c0aa | /cf-540-a.py | 44dd74a1dc85a6de815348507461f004dcdbb3da | [] | no_license | luctivud/Coding-Trash | 42e880624f39a826bcaab9b6194add2c9b3d71fc | 35422253f6169cc98e099bf83c650b1fb3acdb75 | refs/heads/master | 2022-12-12T00:20:49.630749 | 2020-09-12T17:38:30 | 2020-09-12T17:38:30 | 241,000,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,017 | py | # JAI SHREE RAM
import math; from collections import *
import sys; from functools import reduce
# sys.setrecursionlimit(10**6)
def get_ints(): return map(int, input().strip().split())
def get_list(): return list(get_ints())
def get_string(): return list(input().strip().split())
def printxsp(*... | [
"luctivud@gmail.com"
] | luctivud@gmail.com |
0f320858fc3f8e67f6f3bf1cd4c3a96c6ca87654 | df4729527451f50435e564d2e01ad95dab5d5c38 | /booster/datastruct/__init__.py | 22630ff113d550bb283535ae4a50793bedef54e1 | [
"MIT"
] | permissive | sajadn/booster-pytorch | 5d97a21a6a84efe99c80d31fb154fabb93347628 | a8f447160c30224112731a25f90f6f97126a34b2 | refs/heads/master | 2022-11-06T05:52:51.168983 | 2020-06-22T20:25:24 | 2020-06-22T20:25:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69 | py | from .aggregator import Aggregator
from .diagnostic import Diagnostic | [
"valentin.lievin@gmail.com"
] | valentin.lievin@gmail.com |
f7881b2609d4092aa8e483ad9b8bc0d585901f87 | 67d8173a716da10a7350213d98938aae9f2115ce | /ProgrammingCourses/CS61A/project/maps/data/__init__.py | 41d0dcae71d4be63e17e6aabe7e0795053028508 | [] | no_license | jxie0755/Learning_Python | 94490d41bdf93acf8396f843328e38b6da310b0f | 143422321cbc3715ca08f6c3af8f960a55887ced | refs/heads/master | 2021-11-02T22:47:35.790239 | 2021-09-26T04:26:23 | 2021-09-26T04:26:23 | 101,445,132 | 0 | 2 | null | 2019-02-19T15:48:44 | 2017-08-25T22:00:16 | Python | UTF-8 | Python | false | false | 3,054 | py | import collections
import os
from abstractions import *
import data.jsonl
DATA_DIRECTORY = "data"
USER_DIRECTORY = "users"
def load_data(user_dataset, review_dataset, restaurant_dataset):
with open(os.path.join(DATA_DIRECTORY, user_dataset)) as f:
user_data = jsonl.load(f)
with open(os.path.join(DATA... | [
"30805062+jxie0755@users.noreply.github.com"
] | 30805062+jxie0755@users.noreply.github.com |
a38a7b826119a66c0fcc3963011aa4e1dcb57c07 | 5db480d7addf69f16c0dffd6b4ad3200503d28c9 | /portfolio/models.py | c911dbad0454dbe6babb12eab348b3e4a8603685 | [] | no_license | sgupta117/portfolio_app | e32683848289dfde04a4b1294dc856f584b23514 | 9408c0eca15f6d5496a9aedf823040f21875a7e2 | refs/heads/master | 2023-01-01T06:37:09.432621 | 2020-10-26T19:34:23 | 2020-10-26T19:34:23 | 301,767,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | from django.db import models
class Projects:
id:int
img: str
name: str
desc: str
liveDemo: str
codeLink: str
class Blogs:
id:int
img:str
name:str
desc:str
link:str
| [
"kamalpant2024@gmail.com"
] | kamalpant2024@gmail.com |
28eb45f482d06d92de0f4c0516e1235d4457e02e | bbc917543e639deaf0e01bed83dc2b21b45e6c79 | /IzVerifier/izspecs/izproperties.py | b93536327bd3c9f085d04d564407f45989163fa2 | [
"MIT"
] | permissive | Python3pkg/IzVerifier | 904f27e2ced718d01082590146bc117df65f1e90 | 124c68baf66ee4978d824af376859190ec2d6ed5 | refs/heads/master | 2021-01-21T17:37:29.970116 | 2017-05-21T15:38:37 | 2017-05-21T15:38:37 | 91,968,090 | 0 | 0 | null | 2017-05-21T15:38:35 | 2017-05-21T15:38:35 | null | UTF-8 | Python | false | false | 2,650 | py | from bs4 import BeautifulSoup
import re
__author__ = 'fcanas'
class IzProperties(dict):
"""
Responsible for parsing and containing any properties used by IzPack's installation spec files.
"""
def __init__(self, path):
"""
Initialize paths to properties and begin parsing.
"""
... | [
"fcanas@redhat.com"
] | fcanas@redhat.com |
04caf4c0da09c56e9866004490cb2a798b19d1f9 | 20fae8a286f151f91311b3611cd8c1cb7d314892 | /predictor.py | b731b799de42b1d6080e80b466a1258c9a565079 | [] | no_license | Justus-Nithushan-mitrai/Neural-style-transfer | 5f3b8173cd41e0130de4ec37fc8a6a2fcca20147 | 0b3bea5bdf977b9c658af2483b33b2488ac20dbe | refs/heads/master | 2020-04-10T21:17:56.127248 | 2018-12-11T07:14:18 | 2018-12-11T07:14:18 | 161,292,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,134 | py | import io
import os
import flask
import json
import pandas as pd
import numpy
from flask import request
from flask import send_file
import base64
from keras.models import load_model
import pickle
from io import StringIO
import sys
import signal
import traceback
from sklearn.preprocessing import MinMaxScaler
from sklea... | [
"noreply@github.com"
] | noreply@github.com |
81b2518e870ffcb3af3a4398b5110cde62a69870 | 86d165d547ca57f8be675c6d60cbe943bd0330e2 | /consumers/faust_stream.py | 0a9b0ab66d2b6b013f6db7e0d67b2a79bbf1a479 | [] | no_license | guhgg/optimizing-public-transportation-udacity | c557831cef32f40eeed01e1650ad2778d0b9b746 | a93e60c4260a8a9d0f1732fb608da39533e1e22d | refs/heads/master | 2023-04-16T16:17:13.392122 | 2021-03-28T18:22:37 | 2021-03-28T18:22:37 | 352,405,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,195 | py | import logging
import faust
logger = logging.getLogger(__name__)
class Station(faust.Record):
stop_id: int
direction_id: str
stop_name: str
station_name: str
station_descriptive_name: str
station_id: str
order: int
red: bool
blue: bool
green: bool
class TransformedStation(fau... | [
"gustavo42.sg@gmail.com"
] | gustavo42.sg@gmail.com |
e87d996a02ddd0d6019da925d9e3fd743ff87f67 | 16f2e819ff0483f498428f9cd2dd81ca5515d5f8 | /image_processing/jpg_conversion.py | 515b9f1a5b025952da2265e96f6c5d5da3ea214f | [] | no_license | biosemantics/Authors-Utilities | 5253537581573790b0e2ab8bae29b56b4674eaba | 2ab8f353cf5ba71dd9e3fe670111566e7025e3fb | refs/heads/master | 2023-04-23T03:15:19.435920 | 2021-05-12T18:09:12 | 2021-05-12T18:09:12 | 295,469,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 939 | py | from PIL import Image
import os
import shutil
directory = os.getcwd() + '/full_res/'
for filename in os.listdir(directory):
if filename.endswith('.png'):
print(filename)
img = Image.open(directory + filename)
img.load() # required for img.split()
# replace alpha channel bac... | [
"nwgiebink@gmail.com"
] | nwgiebink@gmail.com |
488762cf517b1c0a114fa3e63e1b519f905591ff | 3bcf2e79a5739f214f2d35c2543307ad99935a49 | /FirstPythonEnv/Scripts/easy_install-3.8-script.py | 1b346c49698b9ebed3221aff92428a15172e9489 | [] | no_license | ap1536/FirstPython | f30b5aed8f09851f834cc15464ef3441539ce867 | 076c059ae95e3d0fe6b8f070398510a49f62737c | refs/heads/master | 2020-08-22T05:09:24.963214 | 2019-10-20T17:52:09 | 2019-10-20T17:52:09 | 216,323,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | #!C:\Users\apabbathi2\PycharmProjects\FirstPython\FirstPythonEnv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.8'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.... | [
"aravind.pabbathi@gmail.com"
] | aravind.pabbathi@gmail.com |
ac553a17ecdc2e6c6a318f37d66896296ee0679b | 445098fb6d20f7280156119586cf7c4f07cbafa9 | /Python/stringmanipulation.py | 54c78749b4d411bdd77777cfcb1dd6d5e18cc66a | [] | no_license | Patwaris/DataScience | e2b1bd86a927db9efe6f701b6c5c830c6af2dda7 | 3a73acb1c1d1ed5b186e427d6fcda3842a9d4f1a | refs/heads/master | 2020-05-18T15:54:09.998438 | 2019-05-29T03:32:03 | 2019-05-29T03:32:03 | 184,512,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | # -*- coding: utf-8 -*-
"""
Created on Fri May 3 08:45:49 2019
@author: BharathPatwari
"""
#Strings
name1="Bharath Patwari"
name2='abc'
print(type(name1))
print(type(name2))
#modify string content
print(name1[1])
name1[0]='A' #'str' object does not support item assignment
name2=name1+'Hyd'
print(name2)
name1=nam... | [
"bharath35@gmail.com"
] | bharath35@gmail.com |
d3c366292f09c31949649f09f59f18df63e790be | 1cad3fa574350c9be29282f518f4927efb26e18f | /http_api/api_intro.py | 0c1edd60bc8199386fc7a5c103448f64018fc4dc | [] | no_license | EvgeniyBudaev/python_learn | c72fdc2c5a84dae03bfd6e5afc5453b795ada17f | 1a5385e3412832dd9017536dad1140138143600e | refs/heads/main | 2023-05-27T04:41:50.754525 | 2021-05-27T02:11:18 | 2021-05-27T02:11:18 | 337,162,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | import requests
# url = 'https://earthquake.usgs.gov/fdsnws/event/1/query?format=geojson&starttime=2014-01-01&endtime=2014-01-02'
# response = requests.get(url, headers={'Accept':'application/json'})
url = 'https://earthquake.usgs.gov/fdsnws/event/1/query?'
response = requests.get(url, headers={'Accept':'application/... | [
"49036840+EvgeniyBudaev@users.noreply.github.com"
] | 49036840+EvgeniyBudaev@users.noreply.github.com |
ca2d6c48dc06478aaaafd6c9257868331e9f456c | 4682536471f05076557f7f76f8a8dabad2bb135d | /alambre/polls/models.py | 1364143bc36fb6ec53642ca4717543fe71388409 | [] | no_license | alamtellez/Actividades-Django | c3e876e8c2ffd0a21846a2b26e4cdf10c1dbfcf3 | a71f29db14ac43058c9912a821b250b7ad681f5e | refs/heads/master | 2021-06-10T12:51:09.107970 | 2017-02-14T00:15:55 | 2017-02-14T00:15:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | from __future__ import unicode_literals
import datetime
from django.db import models
from django.utils import timezone
class Question(models.Model):
question_text = models.CharField(max_length=200)
pub_date = models.DateTimeField('date published')
def __str__(self):
return self.question_text
... | [
"A01205569@itesm.mx"
] | A01205569@itesm.mx |
556bda8140b851daec5eec1f491991432059f048 | a350534eaff612558bb2dd116f2fb924259b9938 | /.ipynb_checkpoints/orphanfinalfind_2-checkpoint.py | 39621fb9d0d7eb6743a552b82ce81ed9cb66860b | [] | no_license | zhengyun0215/mock | e8be8cb5b0efab7f74d49eeaa818deb04641480d | 211b303740df55b38a8c0c603178fb7ed23f5d5e | refs/heads/master | 2023-04-09T16:50:19.052204 | 2020-12-01T07:39:46 | 2020-12-01T07:39:46 | 312,835,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,526 | py | import h5py
import numpy as np
import time
import multiprocessing as mp
def selection(x):
print("Start! :)")
start = time.time()
print('The snapshot id is %s'%x)
orpnum = np.loadtxt('/home/yunzheng/mock/orphan_new/orphantabel_new/snapshot_%s/fsnapnum.txt'%x)
vel_ratio = np.load('/home/yunzheng/moc... | [
"yunzheng@sjtu.edu.cn"
] | yunzheng@sjtu.edu.cn |
6fb67619459eec708bf1dd4d7a8bb3558f39f0ba | 27a9efc061c6f4dea8e9f68c1d7117a3398ff144 | /python/basics/pipeg.py | 25af32aed90818cbccaebde1e970bd5869aa225a | [] | no_license | SpyderScrypt/Cheatsheets | 55cda3a33f196dc6701ff5648760a44f9ba78992 | ddc657ef0e829f978a65bf11347ae3e66a475e4a | refs/heads/master | 2023-01-14T08:53:51.389527 | 2019-06-25T09:48:58 | 2019-06-25T09:48:58 | 167,225,725 | 0 | 0 | null | 2023-01-04T01:02:58 | 2019-01-23T17:37:47 | HTML | UTF-8 | Python | false | false | 221 | py | # sudo python3.6 -m pip install camelcase
# pip version pip 8.1.1
# to see location of installed package eg - pip3 show beautifulsoup4
import camelcase
c = camelcase.CamelCase()
txt = "hello world"
print(c.hump(txt))
| [
"spiderscrypt@gmail.com"
] | spiderscrypt@gmail.com |
27666c2894fd7ea88d376a028d199719a60a7064 | c3c9f94ab2723a145ed6a6417d7fbeb035aa0ec0 | /patients/forms.py | 2e49b116d7c6586cf72a837ab0fb07d1c0e3cf89 | [] | no_license | Amisiyah/cabinetMedical | 53e75a3d8c35aedcc5c4fc5e5fba638aa28c8621 | 4b4fc837c2738332e854fafcb461298dcf4e09cf | refs/heads/master | 2020-04-12T12:08:30.633622 | 2018-12-19T19:41:57 | 2018-12-19T19:41:57 | 157,517,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | from django import forms
from .models import Patient
class PatientForm(forms.ModelForm):
class Meta:
fields = ['first_name', 'middle_name', 'last_name', 'email', 'pin', 'address', 'city', 'country']
model = Patient
| [
"bogdy.ponta@gmail.com"
] | bogdy.ponta@gmail.com |
896e5366094a1ea2ac97ff558135f0349a7a0671 | f0606525fe4c431fed42a7c6c06d6720a602cdd7 | /proyecto3/hw3_clustering.py | b79f6b0b21072440a2e7fba8882105fd64a39fbd | [] | no_license | yagocasasnovas/cursoML | c1567fbdedb61fe070e00a22d2c9c62e33678b14 | c0e382881612a5d9600082312885271a9e1a6b40 | refs/heads/master | 2021-08-22T08:41:30.584915 | 2017-11-29T19:36:00 | 2017-11-29T19:36:00 | 104,351,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,502 | py | #proyecto3
#5 clusters
#10 iterations
from __future__ import division
import numpy as np
import sys
import math
from random import randint
import copy
import csv
from scipy.stats import multivariate_normal
#import time
#start_time = time.time()
def prob(x, mean, std, size):
inversecov = np.linalg.inv(std)
tor... | [
"yago.casasnovas@gmail.com"
] | yago.casasnovas@gmail.com |
9301f373603392c31e4ef37ab57d6eace6eb163f | cf470f7d3fd0ea481970bcdedcd869258f692d05 | /aces_1.2/python/bin/create_aces_config | 198eabe513ced3b60c560b6793299b56d29d36e7 | [
"LicenseRef-scancode-unknown-license-reference",
"AMPAS"
] | permissive | colour-science/OpenColorIO-Configs | 3acef083127b698eb3252b45d724dfd4f5346c1a | b0a3ae218c24ed452e01ac1282d0b40e31dede6e | refs/heads/master | 2023-09-03T11:51:31.862794 | 2022-04-14T20:17:13 | 2022-04-14T20:17:13 | 54,505,320 | 619 | 440 | NOASSERTION | 2022-04-14T20:17:14 | 2016-03-22T20:06:48 | Roff | UTF-8 | Python | false | false | 802 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# SPDX-License-Identifier: AMPAS
# Copyright Academy of Motion Picture Arts and Sciences
"""
Creates the *ACES* configuration.
"""
from __future__ import division
import os
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
from aces_ocio.generate... | [
"thomas.mansencal@gmail.com"
] | thomas.mansencal@gmail.com | |
a973b42be8042a611914d525d8716e478b9d9886 | 6ae42cd7589829a5a6b130392b650c9f9e96bfcf | /MCMC/mcmc | 91c5f47ad001eba780c523aae4705be4b59924aa | [] | no_license | kearnsw/MachineLearning | c77afecea67da39d3c37116436cb93d14a577b9c | 5560c5b5e960cf1f21a6295572abfe66c3586d04 | refs/heads/master | 2021-01-17T20:00:14.939749 | 2017-08-04T20:59:04 | 2017-08-04T20:59:04 | 53,383,293 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,646 | #!/usr/bin/env python
import argparse
import numpy as np
import math
from decimal import Decimal
def parse_args():
cli = argparse.ArgumentParser()
cli.add_argument("--mu", default=None, type=Decimal, help="initial guess at mean of distribution")
cli.add_argument("--mu_min", type=Decimal, help="mean minimu... | [
"kearns391@gmail.com"
] | kearns391@gmail.com | |
4b67d3a8af902f3a7d173e51e4a21538664b3e5c | e173b0905c22dd874817aaf020d96d4aa3d394b2 | /web_flask/8-cities_by_states.py | bff886a79778e0a6d9196798cf5629628f812d0b | [] | no_license | HermesBoots/AirBnB_clone_v2 | c771caf7c38e778e2cfaed17a47d88decbe5b0c5 | 9bedb1610f4618711bdc07568e323b389140014b | refs/heads/master | 2020-07-06T19:23:50.688273 | 2019-09-03T22:21:20 | 2019-09-03T22:21:20 | 203,115,957 | 0 | 0 | null | 2019-08-19T06:57:01 | 2019-08-19T06:56:59 | null | UTF-8 | Python | false | false | 666 | py | #!/usr/bin/python3
"""A simple Flask server using our real HBNB data"""
from flask import Flask, render_template
import models
site = Flask(__name__)
site.url_map.strict_slashes = False
@site.teardown_appcontext
def closeStorageAfterRequest(error):
"""Close and reload the storage engine between requests"""
... | [
"701@holbertonschool.com"
] | 701@holbertonschool.com |
d05ce141ecc9bf14ab3e7757f48348f9ccdd9d61 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/59/usersdata/171/61531/submittedfiles/testes.py | 0394990bdadaa06eebff3565e0697e79fea81b66 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | # -*- coding: utf-8 -*-
import math
#COMECE AQUI ABAIXO
def media(a):
soma=0
for i in range(0,len(a),1):
soma=soma+a[i]
media=soma/(len(a))
return(media)
n=int(input('digite numero de elementos da lista:'))
a=[]
for i in range(0,n,1):
numero=float(input('digite numero รก ser inserido na lista... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
951a4225099034a69b144669861e4bec80886d22 | 953bca4a31fab48d932917418c4c3739c9a6f002 | /Scripts/django-admin.py | 782fb780d8635a8d880b211bf5bbad24ba1f9493 | [] | no_license | loganAlambke/League1 | 75c03066152da9c21006d54d752cbcdb88299c0d | 519e70f746393665768666fd945b21290a155f76 | refs/heads/master | 2022-12-16T05:29:53.080044 | 2018-04-28T18:35:15 | 2018-04-28T18:35:15 | 131,349,512 | 0 | 0 | null | 2022-12-08T00:57:03 | 2018-04-27T22:13:37 | Tcl | UTF-8 | Python | false | false | 161 | py | #!c:\users\loganl~1\enviro~1\league\scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"loganalambke@gmail.com"
] | loganalambke@gmail.com |
e58b36b05c142642d3001d70c865a8a112804449 | 75dcb56e318688499bdab789262839e7f58bd4f6 | /_algorithms_challenges/projecteuler/ProjectEuler-master(2)/ProjectEuler-master/156.py | aafe0dea8075d2124fd3dc79cbb842ba780bd38f | [] | no_license | syurskyi/Algorithms_and_Data_Structure | 9a1f358577e51e89c862d0f93f373b7f20ddd261 | 929dde1723fb2f54870c8a9badc80fc23e8400d3 | refs/heads/master | 2023-02-22T17:55:55.453535 | 2022-12-23T03:15:00 | 2022-12-23T03:15:00 | 226,243,987 | 4 | 1 | null | 2023-02-07T21:01:45 | 2019-12-06T04:14:10 | Jupyter Notebook | UTF-8 | Python | false | false | 2,015 | py | import sys
class Problem():
def __init__(self):
self.found = None
def solve(self):
count = 0
for digit in range(1, 10):
solution_sum = self.s(digit)
print(digit, solution_sum)
count += solution_sum
print(count)
def s(self, digit... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
a297e90f9d69e0e6b7d21b4e9b3f3fc54b33f6ba | a0a19aa93b76eb81c3969b5390d3d05c8c06a042 | /test_files/testss/api_test.py | 36496c3804ff0f0613fd849bc83d2a2663f40e1b | [] | no_license | DavidRoldan523/inbound_marketing_clean | 0d36db0e708ee233d0c100d049ac7a88090a5f83 | 543c21895d4e046cb19d8a5503049a452a74beee | refs/heads/master | 2020-06-10T23:50:24.887764 | 2019-06-28T16:52:41 | 2019-06-28T16:52:41 | 193,794,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | import requests
if __name__ == '__main__':
list_emails_test = ['cjgalvisc@unal.edu.co',
'millenn96@gmail.com',
'hdhdhd@hjh.com',
'millenxxn96@gmail.com',
'cristian@yopmail.com',
'xzkgkfkfkrrkr@yo... | [
"cjgalvisc@unal.edu.co"
] | cjgalvisc@unal.edu.co |
e393b34c2c3d876a6b586e70e401e7d575d74237 | 608c5693def02fda0c5319bf044cfc6883e1cce6 | /islandsNumber200.py | 8770218c77f2d9d3c1a4b48f0032b74c78528b01 | [] | no_license | chandini21/DFS-2 | cf4903c992f220336a8b7997705a4149f5e2cc04 | 9c8d84e427a7af76f23e5144bf92739fd88b330f | refs/heads/master | 2023-04-12T22:44:28.712831 | 2021-04-19T22:00:32 | 2021-04-19T22:00:32 | 359,203,017 | 0 | 0 | null | 2021-04-18T16:55:41 | 2021-04-18T16:55:40 | null | UTF-8 | Python | false | false | 1,340 | py | """
Approach - BFS
TC - O(m*n)
SC - O(m*n)
"""
class Solution:
def numIslands(self, grid: List[List[str]]) -> int:
if (not grid or len(grid) == 0):
return 0
rows = len(grid)
columns = len(grid[0])
count = 0
queue = []
for r in range(rows):
... | [
"chandinisri.805@gmail.com"
] | chandinisri.805@gmail.com |
b34734bccd0addbe7a3f95e5866fe250ba44c343 | e6ebd1f9e3968f6ed613e9f35e46716115e6e9c3 | /chapter4/demo2.py | 9d025bcb4070abbf880ddf67f5d49444fcbfdbdb | [] | no_license | huwanping001/Python | 897046d3d6d1b420befeefcaa2b9544efa7d1881 | 3c76278f7a9b216b28b8880e0108af3c550b9372 | refs/heads/main | 2023-08-21T00:45:17.991833 | 2021-10-18T13:47:52 | 2021-10-18T13:47:52 | 409,586,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 692 | py | # ๅญฆๆ ก๏ผๅๅท่ฝปๅๅทฅๅคงๅญฆ
# ๅญฆ้ข๏ผ่ชไฟกๅญฆ้ข
# ๅญฆ็๏ผ่กไธๅนณ
# ๅผๅๆถ้ด๏ผ2021/9/18 9:54
#ๆต่ฏๅฏน่ฑก็boolๅผ
print(bool(False)) #False
print(bool(0)) #False
print(bool(0.0)) #False
print(bool(None)) #False
print(bool('')) #False
print(bool("")) #False
print(bool(list())) #็ฉบๅ่กจ False
print(bool([])) #็ฉบๅ่กจ False
print(bool(())) #็ฉบๅ
็ป False
prin... | [
"noreply@github.com"
] | noreply@github.com |
3df69c8078977d9b51a98b936360a4cf6bcf6b89 | 1260ce7869ce32d6b434afbf273273b7b1ebea2d | /lorentz_equivariant_gnn/architectures/EquivariantGNN/egnn_base.py | ddcd258aec9bfcb6cb6915b699a963195d25437c | [] | no_license | savvy379/Lorentz-Equivariant-GNN | b3b30e964cfa9af39adcb4e8b73bc78b4f8b7b5e | 3d1c74081bdd43387a7c530bce73580db379d22d | refs/heads/master | 2023-08-01T06:43:13.229014 | 2021-09-22T18:35:15 | 2021-09-22T18:35:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,499 | py | import sys, os
import logging
import pytorch_lightning as pl
from pytorch_lightning import LightningModule
import torch.nn.functional as F
from torch.nn import Linear
from torch_geometric.data import DataLoader
import torch
import numpy as np
from sklearn.metrics import roc_auc_score, roc_curve
from .utils import loa... | [
"murnanedaniel@hotmail.com"
] | murnanedaniel@hotmail.com |
9cb0e2bb1bc7d746dadb931b170dd4cf089919b3 | 31ac7e8edbf74e795a0e4cb5c27b354ff730703d | /cleaners/stock_data_cleaner_remove_invalid_rows.py | d920d7276445b26a41327ad0d4eee8dcf5436953 | [] | no_license | webclinic017/operation_get_rich | 9cbd9d2432ac6e6f3b40242b8fb76881c8b86ac4 | d6aa1bd5a8399c0eee0ede2265f2eb4a43b09331 | refs/heads/master | 2023-06-01T09:25:15.619531 | 2021-06-24T18:33:12 | 2021-06-24T18:33:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | """
Some rows has a row like
"open close low high volume"
This cleaner cleans it
"""
import pandas
from pandas import DataFrame
FILENAME = '../stock_price_small.csv'
stock_price_df = pandas.read_csv(FILENAME) # type: DataFrame
stock_price_df.drop(
stock_price_df[stock_price_df['open'] == 'open'].index,
inpl... | [
"fkamili@thezebra.com"
] | fkamili@thezebra.com |
346a548b4981de4e2a5053a36edeae361dac28e9 | 345d9371a3e8703fe49214484a44f3bf3da9709f | /virtual/bin/easy_install-3.7 | 3b3f1b0d5584c943a814832f6aee3029301e7b43 | [
"MIT"
] | permissive | Atsalibram/Instagram | 456c69d699ae5eb145aa0123a1baafa13bb4b121 | d01ea60341686fb6ff2f1e6213ce255b6f03c101 | refs/heads/master | 2023-03-29T10:08:50.422674 | 2021-04-03T15:10:19 | 2021-04-03T15:10:19 | 351,752,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | 7 | #!/home/moringaaccess/Desktop/Django/Instagram/virtual/bin/python3.7
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"atsalibaram@gmail.com"
] | atsalibaram@gmail.com |
300dc5d3cf9ec6b7d67dca8ceb272fa0ad0e6d80 | 6a7e9e0e9c08132166f566bd88ae1c46ff8f9c0a | /azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/security_rule_py3.py | 0f8b6dc1a56b4743ed087bfac58ebfdafeb3318d | [
"MIT"
] | permissive | ashirey-msft/azure-sdk-for-python | d92381d11c48f194ec9f989f5f803db614fb73f2 | e04778e13306dad2e8fb044970215bad6296afb6 | refs/heads/master | 2020-03-23T06:05:39.283442 | 2018-09-15T00:18:26 | 2018-09-15T00:18:26 | 141,188,192 | 0 | 1 | MIT | 2018-07-16T20:02:52 | 2018-07-16T20:02:52 | null | UTF-8 | Python | false | false | 7,668 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"noreply@github.com"
] | noreply@github.com |
4d30fa003a27138c61cb2b4d5177b1b5ec2f06c1 | f51430dab7b2189f05b1c884bfdfe3431b83ee54 | /test.py | 3f7eab105d6defde841af1a4d1f04c6f2bba2864 | [] | no_license | tsnaomi/echo-server | 6ce3bb5fadeeb3269208c5bd97c82f5411d898be | c9e071fc429685a037bed8167c7abbeca0a12583 | refs/heads/master | 2021-05-30T09:57:22.598162 | 2014-03-30T22:35:56 | 2014-03-30T22:35:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 648 | py | #!/usr/bin/env python
import unittest
import socket
import echo_client
class TestEchoChamber(unittest.TestCase):
def test_short(self):
short_message = "darling"
self.assertEqual(short_message, echo_client.echo_client(short_message))
def test_long(self):
long_message = "3.141592653589... | [
"tsnaomi@users.noreply.github.com"
] | tsnaomi@users.noreply.github.com |
8ddf94de860845ad1dc832ae0a985b79738970d0 | 1acfd11ff9b30fb9392bac1e6afe9fc2b715b21e | /gst.py | 9b5a74a347cc1d7bde5faba48235fdf566ace141 | [
"BSD-3-Clause"
] | permissive | Volvagia356/mobile-gst | e06d82334df4d43da71e8b93ca677fe71c1ca2f4 | 0887c2f412a3ab0a92ed04ba91645df4383e739b | refs/heads/master | 2021-01-23T11:47:49.981069 | 2016-03-01T02:03:26 | 2016-03-01T02:03:26 | 34,137,357 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,180 | py | import requests
from time import time
from bs4 import BeautifulSoup
class FWDC(requests.Session):
def __init__(self, *args, **kwargs):
self.fwdc_data = {}
self.fwdc_data['FAST_CLIENT_WINDOW__'] = "FWDC.WND-0000-0000-0000"
self.fwdc_data['FAST_CLIENT_AJAX_ID__'] = 0
super(FWDC, self)... | [
"volvagia356@gmail.com"
] | volvagia356@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.