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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0094d1f5bf3946022c0877e2eee2cf4d2e9cbb9a | 8edfd2bee6eafa8c37cdebff5b5e47c88a2375bf | /processing.py | 0ecc8bb27f7e3a10d96ed0567ca4673d3b1ac396 | [] | no_license | carlahy/carbon-calculator | ca205cd2920d1d7603cc154b3a663fe0fd5afc48 | cae2a4cc0673350bde7eed8f998e02024e87d25b | refs/heads/master | 2021-01-11T14:55:22.482258 | 2017-04-28T14:38:57 | 2017-04-28T14:38:57 | 80,251,478 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,693 | py | '''
This python script formats the CSV output of the RADAR model
'''
#!/usr/bin/python
import sys, json
import pandas as pd
import numpy as np
from sklearn import preprocessing
# Remove beginning of radar csv output
def parseCSV(mfile):
details = pd.read_csv(mfile, error_bad_lines=False, warn_bad_lines=False)
... | [
"carla.hyenne@gmail.com"
] | carla.hyenne@gmail.com |
cb91956ee3bbf7e511b24dfb594c6244b79c7014 | 5b79e8fc342c68c0cae1866e6bf25d7c8a223fe9 | /exam3/exam3/wsgi.py | 3f65f1941975f485fb4459195a74bc1c0f4b6ce0 | [] | no_license | mnw247/Python | 357502ceeaa522795e2e0ad27d84fe7add807181 | 9da0c4178bfb41b008751ee55667f19f582def1e | refs/heads/master | 2020-04-30T20:35:22.753753 | 2019-03-22T03:43:00 | 2019-03-22T03:43:00 | 176,868,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | """
WSGI config for exam3 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTIN... | [
"mnw247@gmail.com"
] | mnw247@gmail.com |
b0405c56be777cb4d67775820663ac7ac5c2a17e | c9b88924141bec00db32c601fe24163f49612973 | /venv/bin/pilconvert.py | 28008917b30d004194eaae23407c8f200babff39 | [] | no_license | cameronccohen/satirev | 23c70ecb9a5c6b60e3671ebde372fc0c3ca9b2b4 | 9e7d7cc9fdedc99ff274f332c86f7e82e2731f19 | refs/heads/master | 2021-03-27T16:47:33.026071 | 2019-10-24T02:44:12 | 2019-10-24T02:44:12 | 77,879,360 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,352 | py | #!/Users/Cameron/satirev/venv/bin/python
#
# The Python Imaging Library.
# $Id$
#
# convert image files
#
# History:
# 0.1 96-04-20 fl Created
# 0.2 96-10-04 fl Use draft mode when converting images
# 0.3 96-12-30 fl Optimize output (PNG, JPEG)
# 0.4 97-01-18 fl Made optimize an option (PNG, JPE... | [
"cameron.c.cohen@gmail.com"
] | cameron.c.cohen@gmail.com |
b006d9d305260c635ceea0dbeff8ee13497e9ff3 | 1e8465b285acc46ab99187ee726c1c860720ee8d | /raft3d/blocks/gru.py | dfd9919e28e1accbc4eda882f4553f5c5d244595 | [
"BSD-3-Clause"
] | permissive | cv-stuttgart/RAFT-3D | bde1c9a654619748e07ee90d8e3971eca88f6cf8 | 285da377ea4c08dc1bfee8cfa78b5ca168df5d3d | refs/heads/master | 2023-08-20T14:47:01.597414 | 2021-10-29T06:36:32 | 2021-10-29T06:36:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,220 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
class ConvGRU(nn.Module):
def __init__(self, hidden_dim=128, input_dim=192+128, dilation=4):
super(ConvGRU, self).__init__()
self.hidden_dim = hidden_dim
self.convz1 = nn.Conv2d(hidden_dim, hidden_dim, 3, padding=1)
... | [
"zachteed@gmail.com"
] | zachteed@gmail.com |
457ba8dbc83eec19f55e79ee17cc5696a7c1040c | db4a08028f7d1d65752c82abed17a5532f4637a4 | /bicycle.py | b2488e9dad3730039d1c88e0e8b15b06df122be5 | [] | no_license | mukuld/python | a80efaaa6b7c361c96cb9e6b756d96ee01c66ffa | 3acfcf8a4244ab8a6890d24bdb71d2ac8b60e76b | refs/heads/master | 2023-08-18T04:34:31.715644 | 2023-01-06T07:19:03 | 2023-01-06T07:19:03 | 119,087,903 | 0 | 1 | null | 2023-07-25T21:01:33 | 2018-01-26T18:26:57 | Python | UTF-8 | Python | false | false | 2,532 | py | # Python Programme Number 93
# Class Generation: Inheritance
# Programmer: Mukul Dharwadkar
# Date: 30 July 2010
import cPickle, shelve
class Bicycle(object):
"""A bicycle creating class"""
total = 0
def __init__(self, name, cadence=0, speed=0, gear=1):
print "A new bicycle is manufactu... | [
"mukul.dharwadkar@gmail.com"
] | mukul.dharwadkar@gmail.com |
45ae1dae1c475f8954d6e7fadf494fc1317ddd86 | db0fa7d3d7cc1ebf99a84bbcbc31cc8329ffd343 | /Activity15.py | 30f0e86320d265b271304bab575c5d4dbd2dc1eb | [] | no_license | MansiSadhwani/PythonSDET | 0457d58971eafdf2062c0add0445bb169f26a493 | 41d6a2baa286b7d8947a89cd38a35b3807eb518a | refs/heads/master | 2022-12-09T07:17:17.905343 | 2020-09-12T20:37:38 | 2020-09-12T20:37:38 | 292,818,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | try:
print(x)
except NameError:
print("NameError!!!!")
finally:
print("Have a great day")
| [
"noreply@github.com"
] | MansiSadhwani.noreply@github.com |
3040177c86a7ba3cd484843a0188b3dff3126388 | 60c6b8efe7ac85ac99fb727a44ec51ca9e9069df | /python/lswrc.py | bcf4cbfaea718a29c144b4e146b9c64b9b332673 | [
"Apache-2.0"
] | permissive | misslibra/algorithms | f3681130fc9af2f7cc9b4fb91d6cd81b2c14f595 | 31648ee7a25710ff5340595222525721116f7e84 | refs/heads/master | 2020-04-17T22:12:15.209907 | 2019-01-14T11:17:01 | 2019-01-14T11:17:01 | 166,984,498 | 1 | 0 | Apache-2.0 | 2019-01-22T11:45:29 | 2019-01-22T11:45:29 | null | UTF-8 | Python | false | false | 1,496 | py | #!/usr/bin/env python
# encoding: utf-8
# author: cappyclearl
class Solution(object):
def lengthOfLongestSubstring(self, s):
"""
:type s: str
:rtype: int
"""
if len(s) is 0:
return len(s)
# 字符之前出现的位置
char_position = dict()
# s[i-1]为末尾的最长无... | [
"cappyclear@gmail.com"
] | cappyclear@gmail.com |
9486528191ec0a06295e59e2bb33d70bb834e027 | 38e17443f16041025392e9090ba5553efb130a6a | /geston_materiel/apps.py | 580ee11053a4380baa5ddf023a2415cd63da12d3 | [] | no_license | z3r033/gest_mater | 9df6f67b9e20e12f14aad06af1d6f419d0f24a11 | b131f194719e7db99a12965c1d6009d6523d3742 | refs/heads/master | 2023-04-14T01:27:08.497369 | 2021-04-27T18:48:16 | 2021-04-27T18:48:16 | 362,219,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | from django.apps import AppConfig
class GestonMaterielConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'geston_materiel'
| [
"saad19551945@gmail.com"
] | saad19551945@gmail.com |
d78dae8aa293992ac876084340178bc18620f645 | 9b617418cfadc6b6deb10c675723485ae49fb221 | /code/resources/users.py | 86659c752c29c1bed0415d2aab2b25db6338b7ac | [
"MIT"
] | permissive | borko81/flask_udemy | 455a555b3892da6d9fee04ba53ea2408dfe23f2b | e8f9192feda1458d1ea44b62d2485e911f16acef | refs/heads/main | 2023-08-07T14:33:47.697962 | 2021-10-08T14:01:13 | 2021-10-08T14:01:13 | 411,242,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,374 | py | import sqlite3
from flask_restful import Resource, reqparse
from models.user import UserModel
class UserRegister(Resource):
"""
Register class, usinf reqparse from flask_restful
:validation from unique username in form and db too
"""
parser = reqparse.RequestParser()
parser.add_argu... | [
"bstoilov81@gmail.com"
] | bstoilov81@gmail.com |
397ddd8cad079923bf3b58de4cb4c4fdc4e6fb5d | 50976dccd8ecb8184263d4ab488f8d54bfe2ba1b | /codemakery-django/codemakery_site/blog/migrations/0002_post_picture.py | 315fadbd3b6269d34a2184626fbd2aee06ba917a | [] | no_license | dattran96/Order-Pizza-Meeo | 487aec06a489be6e5989ccddac1055f6d9444ec8 | 7e3bf1a66934596abdc16525932483fa97c1e69d | refs/heads/main | 2023-03-02T11:49:34.330840 | 2021-02-06T16:56:16 | 2021-02-06T16:56:16 | 336,534,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | # Generated by Django 3.1.4 on 2021-01-03 16:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='post',
name='picture',
field=m... | [
"t.ng.t.dat@gmail.com"
] | t.ng.t.dat@gmail.com |
ff37f2f29dc53274b7defddb55f14d56de94ae3d | 1a042e236d7bcce549be8ac08b79923da532286b | /simple2_flask/instance/tools/__init__.py | 8a5e174d050b932e20127316681287abea9dc5ab | [] | no_license | aleimu/Julyfire | 3eff3bb39e5c0df14c71c00cbdbcd6710bf227da | 7c22849862316baa8cfdd563bbeafdb5c8e34864 | refs/heads/master | 2022-12-18T16:34:26.806956 | 2019-11-14T09:17:54 | 2019-11-14T09:17:54 | 139,806,191 | 0 | 1 | null | 2022-09-16T17:49:31 | 2018-07-05T06:42:46 | HTML | UTF-8 | Python | false | false | 52 | py | # -*- coding:utf-8 -*-
print("__name__", __name__)
| [
"01551462@yto.net.cn"
] | 01551462@yto.net.cn |
90e903a2c4638da2f2e712a8b1508d07d6020b50 | 37e178fc62d70c6a8604020ab7fe6c6489aabe70 | /ScratchWork/classes_constructors_attributes.py | 5829885fd735f221c36f3648d28cbadddb2081cf | [] | no_license | camadog/learn-arcade-work | a5008dff730a99187c5a2ac1e7154ec14b9ad124 | ebaff2fe902e975f6519058d5464c9da8149b00f | refs/heads/master | 2023-02-05T03:40:09.678838 | 2020-12-31T20:30:39 | 2020-12-31T20:30:39 | 299,750,993 | 0 | 0 | null | 2020-09-29T22:21:15 | 2020-09-29T22:21:14 | null | UTF-8 | Python | false | false | 1,740 | py | """
Normal way:
class Address:
def __init__(self,
name: str = "",
line1: str = "",
line2: str = "",
city: str = "",
state: str = "",
zip_code: str = ""
):
self.name: str = name
self.line1: str = line1
self.line2: str = line2
se... | [
"deadwar@gmail.com"
] | deadwar@gmail.com |
64183ac4cc465a42829ec69748f9176d1f426207 | d66818f4b951943553826a5f64413e90120e1fae | /hackerearth/Algorithms/Match makers/test.py | e518e3812e5879cbd0b0cddd6bd1e2e5c19ffda8 | [
"MIT"
] | permissive | HBinhCT/Q-project | 0f80cd15c9945c43e2e17072416ddb6e4745e7fa | 19923cbaa3c83c670527899ece5c3ad31bcebe65 | refs/heads/master | 2023-08-30T08:59:16.006567 | 2023-08-29T15:30:21 | 2023-08-29T15:30:21 | 247,630,603 | 8 | 1 | MIT | 2020-07-22T01:20:23 | 2020-03-16T06:48:02 | Python | UTF-8 | Python | false | false | 606 | py | import io
import unittest
from contextlib import redirect_stdout
from unittest.mock import patch
class TestQ(unittest.TestCase):
@patch('builtins.input', side_effect=[
'2',
'4',
'1 6 9 12',
'4 12 3 9',
'4',
'2 2 2 2',
'2 2 2 2',
])
def test_case_0(se... | [
"hbinhct@gmail.com"
] | hbinhct@gmail.com |
869738a8fa6678dc5fc0d5c150e28ec1a2bc1392 | e980abd72cc1291ce571883ca88714b2182f991a | /instagram_crawl_hashtag/spiders/insta_spider.py | ac5ed89760bcde4b95aef34f2c770f836a3496b2 | [] | no_license | seoulblanc/instagram_crawl_hashtag | 0993bfe7a1ec50d0003ea590ea22f53fadd540f9 | 5b9e15627fdef1ddcdbd0072f328e30fcff13275 | refs/heads/master | 2020-03-21T15:10:33.380478 | 2018-06-26T04:11:06 | 2018-06-26T04:11:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,079 | py | import re
import scrapy
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.keys... | [
"leejihee950430@gmail.com"
] | leejihee950430@gmail.com |
1cc1d640e21ab0f100c76bc623beac7409d3eb4f | 2b01f8f7ee7e841f64629f88896478d3b4221480 | /flatpages_i18n/middleware.py | 70654537b556fffc508c62e7155e802524587996 | [
"BSD-3-Clause"
] | permissive | PragmaticMates/django-flatpages-i18n | fde6821774419c1a3cbafe317c5c3c91730339a5 | 434903e60518e0c1a54f0aea24e1d3e8eb0449bd | refs/heads/master | 2023-06-09T18:13:11.192887 | 2023-06-05T07:32:10 | 2023-06-05T07:32:10 | 6,462,420 | 16 | 19 | BSD-3-Clause | 2019-07-12T07:03:15 | 2012-10-30T18:40:25 | Python | UTF-8 | Python | false | false | 817 | py | # from django.conf import settings
# from django.http import Http404
# from django.utils.deprecation import MiddlewareMixin
#
# from flatpages_i18n.views import flatpage
#
#
# class FlatpageFallbackMiddleware(MiddlewareMixin):
# def process_response(self, request, response):
# if response.status_code != 404... | [
"erik.telepovsky@gmail.com"
] | erik.telepovsky@gmail.com |
072e40a242d378c1a17f9f2a3f62a08178177a55 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_202/64.py | 65c7985126860c68e994a7482a5134f0be8da6ab | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,998 | py | q = int(input())
for case in range(1,q+1):
n,m = [int(x) for x in input().split()]
cols = [0]*n
rows = [0]*n
firstrow_plus = [0]*n
orgmatrix = [[0]*n for _ in range(n)]
matrix = [[0]*n for _ in range(n)]
backwards = [0]*(2*n-1)
forwards = [0]*(2*n-1)
points = 0
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
6c02877e13746bdf4d82c317b3033d423649db66 | c479096ea602d145f50f6b6d9f40fd23a59bace1 | /blog/sblog/forms.py | 34a4e069c6aeee73bc1a9d4034f0b0580a8c7a6e | [] | no_license | lnever/a-silly-blog | 99cb6ca9c37b432dfefab3650a7c2e2e916617da | c274f90ef3d927cdb7c6d077602afa5faab3b0bf | refs/heads/master | 2021-01-21T13:48:07.909909 | 2016-05-26T12:54:20 | 2016-05-26T12:54:20 | 55,614,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | from django import forms
class BlogForm(forms.Form):
caption = forms.CharField(label='title', max_length=100)
content = forms.CharField(widget=forms.Textarea) | [
"root@lnever.com"
] | root@lnever.com |
1eb98f2d844650b882428fefa03f6399e0a06394 | 8ebcb068da208128e4a3e1e7931c21ef43407eae | /udemyPython/udemyTest1.py | 3de1db1925de51bbc90486cf1ef041b9b0c8b592 | [] | no_license | orakinahmed/Python-Practice | f09d33d6d22a4d957d88a855d895174828ef1270 | a4cadfc4933108497e9ad431ee1e5f2839024b2a | refs/heads/master | 2023-06-12T07:21:31.741876 | 2021-07-07T19:21:05 | 2021-07-07T19:21:05 | 383,206,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,336 | py | # Variables
x = 15
price = 9.99
discount = 0.2
result = price * (1-discount)
print(result)
name = "rakin"
name = "bob"
print(name)
print(name*2)
print(name + name)
a = 25
b = a
print(a)
print(b)
a = 30
b = 17
print(a)
print(b)
#String Formatting
name = "Rakin"
greeting = f"Hello {name}"
print(greeting)
name =... | [
"rakin.ahammed@gmail.com"
] | rakin.ahammed@gmail.com |
146bec9203e68c0fa200167c79b103029ee2fab6 | d8a4bef9926d751e6246ade415cbb27e584f8a8d | /Dev/trydjango/bin/django-admin | 738f0a00eba24161bd9b031b6ef5f9cc3f0d08a6 | [] | no_license | KannanK-creator/trydjango | ad8b31a832f9b990ba44f5e9e0dbcd6fa163ed7f | 399b601144be5d2481d0bef5328891c33809b7e1 | refs/heads/main | 2023-06-30T12:07:08.428767 | 2021-07-30T23:20:16 | 2021-07-30T23:20:16 | 391,206,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | #!/Users/kannankathiresan/Dev/trydjango/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())
| [
"kkannan171280@gmail.com"
] | kkannan171280@gmail.com | |
2c124750cf41e1dc6bc757d9cae7b1b23fa31c3b | 0b45866a6129e1036abb45d1cf4d9b0b4ebd0b97 | /ikinciGun/fonksiyon.py | 358eedf08b2c9e7fe0067e48aeddaee8042de595 | [] | no_license | anilyilmazz/Python101 | 34c45f347dbf9425aee2209f47df92a0d66e2413 | 0dc66857e363840cef5305c524fb64cabe08949f | refs/heads/master | 2020-05-16T06:47:37.019304 | 2019-04-22T19:56:55 | 2019-04-22T19:56:55 | 182,858,133 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | ad = "ali"
soyad = "duru"
def yazdir(kAd,kSoyad):
print(kAd,kSoyad)
def topla(sayi1,sayi2):
return (sayi1 + sayi2)
toplam = topla(5,6)
print(toplam)
def sayilar(sayi1,sayi2,sayi3):
print(sayi1,sayi2,sayi3)
| [
"incelefon@gmail.com"
] | incelefon@gmail.com |
9acb63c62d9c40269b4f7b23cd136dd4b6813020 | 07f5e9a645b00e74b6a399a4447d683829e6d63a | /alveo/examples/tensorflow/getModels.py | f003537d31926639659c4891be7e97bfed9e8b94 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | asirasa-xilinx/Vitis-AI | 3b29dd7d99192d532a1cf81093c5c81de00ec3b5 | 2ea756d2946d66266c111b09b85f4bcf7fc60764 | refs/heads/master | 2020-09-23T12:08:31.647341 | 2019-12-03T00:19:28 | 2019-12-03T00:19:28 | 225,497,465 | 0 | 0 | NOASSERTION | 2019-12-03T00:46:26 | 2019-12-03T00:46:25 | null | UTF-8 | Python | false | false | 2,171 | py | '''
Copyright 2019 Xilinx Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... | [
"bryanloz@xilinx.com"
] | bryanloz@xilinx.com |
ea98d8e05cb4511ae32a5753decfa4383195e542 | f50d5362778942d0940ff4e46f23e861696762a7 | /P1-Linear_Regression/P1-Linear_Regression.py | 824e8188e0b0b7624a88a64e49f323f711cd243e | [] | no_license | yairg98/Frequentist-Machine-Learning | 384750a7a607e2f0858d02be384efc763a6ebd5f | 6fac5550833f60e5357cb346b5aa8aec3ef5065c | refs/heads/master | 2023-01-01T04:01:09.361109 | 2020-10-27T01:56:38 | 2020-10-27T01:56:38 | 277,397,910 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,495 | py | import numpy as np
import pandas as pd
import math
import matplotlib.pyplot as plt
from sklearn import linear_model
training = 'https://raw.githubusercontent.com/yairg98/Freq-ML/master/P1-Linear_Regression/Construction_Training.csv'
validation = 'https://raw.githubusercontent.com/yairg98/Freq-ML/master/P1-Lin... | [
"noreply@github.com"
] | yairg98.noreply@github.com |
2590c023d108e24d8b87283bf38c9ad7246bd708 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_testifying.py | 54d585fa8f0db28a02a10621604b7a87579812f2 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py |
from xai.brain.wordbase.verbs._testify import _TESTIFY
#calss header
class _TESTIFYING(_TESTIFY, ):
def __init__(self,):
_TESTIFY.__init__(self)
self.name = "TESTIFYING"
self.specie = 'verbs'
self.basic = "testify"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
d8514ec6a03384c4d4b66ddbce1e0512079e660a | d085aa771a6f280dd80988e9df03e702c35be9c8 | /aayu/asgi.py | cc77094c9e795b9078c311de933fafb93bc1ee42 | [] | no_license | aayu1401/Coding-Culture | 6aa9c9c039e8e0e8a3f83438a99bf2110ea7109e | a2be2229cbaa93d83acd6242362a462376d6ce6a | refs/heads/master | 2022-12-22T21:17:20.643462 | 2020-09-28T16:47:29 | 2020-09-28T16:47:29 | 299,355,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | """
ASGI config for aayu project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTINGS... | [
"aayushi_m@me.iitr.ac.in"
] | aayushi_m@me.iitr.ac.in |
9681691a7788b78ef14b32a5b113a09e94d2ee99 | 08860bc6569c6413508dc0c6321a109092b8e316 | /ukbb_cardiac/common/image_utils.py | 2019879a4bf05e98ef660d8e563a62585d8f1d32 | [] | no_license | aborowska/LVgeometry-prediction | bfea7cd9aa910ba52a5465077cccbfa39ee7c2c8 | 6d82948a83207080d8f02b2b23ed058075a80398 | refs/heads/main | 2023-01-08T11:10:07.290127 | 2020-11-06T13:08:21 | 2020-11-06T13:08:21 | 310,598,433 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,683 | py | # Copyright 2017, Wenjia Bai. 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 applicable law or ... | [
"agnborowska@gmail.com"
] | agnborowska@gmail.com |
065f85c6bc7ddd4d0f966870cc2e196bbbf305c5 | baeb6e78133f012d136bbf8f763e3f9d8cb2a235 | /Youtube/11_Oops_1.py | 82de1540571c1352cf67f61d44c346fdfb197bbf | [] | no_license | vipsinha/Python | 7ad36ff9277ac870b07c660ccdace06b92efcba8 | b5acb5ad3e3d319f57220b337becddec14ec4e4d | refs/heads/main | 2023-02-02T13:53:18.389118 | 2020-12-22T19:45:22 | 2020-12-22T19:45:22 | 276,215,002 | 1 | 0 | null | 2020-12-22T19:45:24 | 2020-06-30T21:44:17 | Python | UTF-8 | Python | false | false | 1,473 | py | # Classes 1
print('####Classes_1#####')
class Employee_1:
pass
emp_1 = Employee_1()
emp_2 = Employee_1()
print(emp_1)
print(emp_2)
emp_1.first = 'Vipul'
emp_1.last = 'Sinha'
emp_1.email = 'Vipul.Sinha@company.com'
emp_1.pay = 80000
emp_2.first = 'Check'
emp_2.last = 'Mate'
emp_2.email = 'Check.Mate@company.com... | [
"vipul.sinha@elektrobit.com"
] | vipul.sinha@elektrobit.com |
0545ee61a9229fd783190028974b2e8ab8a055d7 | 46de5c99419f112b4507fd386f398769626ad328 | /Leetcode/217.ContainsDuplicate.py | b9f5965a72946935daa2bbc5e1b0c172cd04859d | [] | no_license | sanu11/Codes | 20a7903d95d600078db8b0bf0e12a3731615c3c1 | dd58a5577b51ade54f95c96003fc2c99609c15eb | refs/heads/master | 2021-01-21T04:50:36.855876 | 2019-07-09T05:12:56 | 2019-07-09T05:12:56 | 48,174,017 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | class Solution(object):
def containsDuplicate(self, nums):
"""
:type nums: List[int]
:rtype: bool
"""
if len(nums) == len(set(nums)):
return False
else:
return True
| [
"sanikashah1110@gmail.com"
] | sanikashah1110@gmail.com |
a80c67c55e906249141c396955f378a5e71e0c84 | 232c25bb3a419073a46e6dcffe25e4765a1f8dcf | /venv/bin/pip3.8 | 620535e0863a9ca8874d17e9a22511b88873965f | [] | no_license | erm989/COP4814_Project4 | bac6c15660ad4922912b4a6abbadf5e5aa385e3a | d87ee17877c9d33c6bff13e822efeb2a16b79ee6 | refs/heads/master | 2023-01-13T07:33:36.241507 | 2020-11-16T18:54:41 | 2020-11-16T18:54:41 | 313,397,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | 8 | #!/Users/ernstrod/PycharmProjects/AQI_WebApp/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"erm989@yahoo.es"
] | erm989@yahoo.es |
68f8a48b2c8fe732d16c7e88d7f6aabe310eab73 | b671ed28ebb5f9ce6d3fd945fb596d66366469b8 | /client_list_person_server.py | f58aadf856ff956d0cd8e23e018ee4ac45365426 | [] | no_license | robtreacycollege/College_Day3 | d66c215f7248b6141ef91491035e757435afcf8d | 87fbf75d44313160d550448b7f1a00ca98f0905d | refs/heads/master | 2021-01-15T17:09:43.165972 | 2015-03-11T22:32:55 | 2015-03-11T22:32:55 | 32,019,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | __author__ = 'anngordon'
import time
import addressbook_pb2
_ONE_DAY_IN_SECONDS = 60 * 60 * 24
_FILE_NAME = 'output'
class Client_List_Person_From_File(addressbook_pb2.EarlyAdopterClient_List_Person_From_FileServicer):
def Client_List_Person(self, request, context):
print("On server before print out deta... | [
"robtreacywork@gmail.com"
] | robtreacywork@gmail.com |
0feb26db0b3e1ad462a9a055b1f25937d285fe82 | 3f327d2654b85b922909925b9f475315d78f4652 | /Backend/newsapi/lib/python2.7/site-packages/newsapi/sources.py | a2865f6348bc04ca28a13159efcf5462a1d5167c | [
"MIT"
] | permissive | brianwang1217/SelfImprovementWebApp | 8db45914027537aee9614f9d218c93cc08dc90f8 | 7892fc4ee5434307b74b14257b29a5f05a0a0dd7 | refs/heads/master | 2022-12-13T15:01:08.595735 | 2018-06-23T04:46:06 | 2018-06-23T04:46:06 | 137,548,289 | 1 | 1 | MIT | 2022-05-25T01:28:29 | 2018-06-16T02:48:52 | Python | UTF-8 | Python | false | false | 4,265 | py | from newsapi.base_news import BaseNews
class Sources(BaseNews):
def __init__(self, API_KEY):
super(Sources, self).__init__(API_KEY)
self.endpoint = "https://newsapi.org/v1/sources"
self.sources = []
self.sources_base_info = {}
self.sources_id_info = {}
sel... | [
"talk2shreyas@gmail.com"
] | talk2shreyas@gmail.com |
c8742c451b8f04a368affdf326423791bc8e12b1 | 92237641f61e9b35ff6af6294153a75074757bec | /Algorithm/programmers/lv1_약수의 합.py | efcd4bdb217f84c5119f9de34b91c09be9bd7a7f | [] | no_license | taepd/study | 8ded115765c4f804813e255d9272b727bf41ec80 | 846d3f2a5a4100225b750f00f992a640e9287d9c | refs/heads/master | 2023-03-08T13:56:57.366577 | 2022-05-08T15:24:35 | 2022-05-08T15:24:35 | 245,838,600 | 0 | 1 | null | 2023-03-05T23:54:41 | 2020-03-08T15:25:15 | JavaScript | UTF-8 | Python | false | false | 513 | py | """
문제 설명
정수 n을 입력받아 n의 약수를 모두 더한 값을 리턴하는 함수, solution을 완성해주세요.
제한 사항
n은 0 이상 3000이하인 정수입니다.
입출력 예
n return
12 28
5 6
입출력 예 설명
입출력 예 #1
12의 약수는 1, 2, 3, 4, 6, 12입니다. 이를 모두 더하면 28입니다.
입출력 예 #2
5의 약수는 1, 5입니다. 이를 모두 더하면 6입니다.
"""
def solution(n):
return sum([i for i in range(1, n//2+1) if n % i == 0]) + n | [
"taepd1@gmail.com"
] | taepd1@gmail.com |
b5313a0c332b254b40ee3fd6b665c6bb16563be2 | b073515d29bf4decba48a09afa469809067d45fd | /api/backend/script/age_detection/script.py | 2fb8f25b780e06f86da694b1e7afd49487e5e359 | [] | no_license | NgTuanLoc/Photoshop_Webapp | 9b4e520f41da2f6e551fbe22d24a94d56c47037f | 44bc0492be36afad55ca85ae245abcf2af22994a | refs/heads/master | 2023-08-28T06:19:22.814371 | 2021-11-12T08:21:43 | 2021-11-12T08:21:43 | 415,539,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | from tensorflow import keras
import cv2 as cv
import numpy as np
model = keras.models.load_model('./Age_sex_detection.h5')
def read_image(image_path):
image=cv.imread(image_path)
image = cv.cvtColor(image, cv.COLOR_BGR2RGB)
image= cv.resize(image,(48,48))
return image
def predict_image(image, Model):... | [
"18521011@gm.uit.edu.vn"
] | 18521011@gm.uit.edu.vn |
ab47dbb17dc6be7a3c2cff8263f826ceab05d21e | 5dfeb8a662456ad770aa19ea97174a8a9fd1670e | /test_python/test_scalar_tc.py | 49d74fd5416c5a1e4ac4a39d8b97024ac49605fd | [
"Apache-2.0"
] | permissive | moskomule/TensorComprehensions | ce2e7368c0977a45381fdc906a84d7fd115e98a3 | c215ae2bbe1cf0424a65b1848dec486aa2d2eafa | refs/heads/master | 2021-01-25T14:05:04.242217 | 2018-03-02T22:05:53 | 2018-03-02T22:05:53 | 123,654,128 | 0 | 0 | Apache-2.0 | 2018-03-03T03:05:31 | 2018-03-03T03:05:31 | null | UTF-8 | Python | false | false | 2,577 | py | # Copyright (c) 2017-present, Facebook, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed... | [
"priy2201@gmail.com"
] | priy2201@gmail.com |
46cfeab80121bbdda4dcb118d85592bc0c74ef1b | 38811cb30ca7c9250ad4e8f187f954c95a496fed | /matcher/wsgi.py | 3e827806bd071b8ff6bc3b49e5dca65ec08bb447 | [] | no_license | NoiCoh/candidatesMatcher | 6ca233dff2d63a36b21c24bc92987fbcf4f4ae5b | 1acb0d9c39eead160fe7c96983ec228efc40469d | refs/heads/main | 2023-03-18T19:01:24.352835 | 2021-03-05T11:52:56 | 2021-03-05T11:52:56 | 344,746,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | """
WSGI config for matcher project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETT... | [
"noi.cohen@ibm.com"
] | noi.cohen@ibm.com |
62e7ba5ac0d2286b1b931a447d1ceec84e1c04cb | 337bd9d63fd003d4a125dabf0c5e822f4559b0d1 | /stacks_queue_deques/stacks.py | 2a299e17ea448efb653e749b4aa9ad6db8bccb39 | [] | no_license | ferryleaf/GitPythonPrgms | d06c28dc78c03b110158b406238d8211fc09fb8d | 92e6bac29cf28569df0fb66ead74a418db270c03 | refs/heads/master | 2021-08-07T05:14:37.317217 | 2021-08-06T02:03:16 | 2021-08-06T02:03:16 | 239,133,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,034 | py | '''
Create Basic Stack & it's functionalities
STACK: LIFO[LAST-IN-FAST-OUT]
FUNCTIONALITY:
1. PUSH
2. POP
3. IS_EMPTY
4. LENGTH
5. TOP
'''
class Empty(Exception):
pass
class stack:
def __init__(self):
self.__list=[]
def push(self,val):
self.__list.append(val)
... | [
"abhijit.mohapatra@lowes.com"
] | abhijit.mohapatra@lowes.com |
6d2bf13154ad6fdcf5d59e30141b1b138adf553d | d8c3167deb6865b3f6ba5caa3d641ebb77be4382 | /fanlytiks.py | 0cfdd05b89fd71bc4931e44f6b633714ebbb1b6b | [] | no_license | milanmenezes/fanlytiks | 490f72201e931c39fe4cb60a42b72528cd8184b0 | 6c83e06a44f3d8d25a73fd75ceeda838dbb9590a | refs/heads/master | 2020-03-18T16:35:41.401066 | 2018-06-01T13:35:07 | 2018-06-01T13:35:07 | 134,975,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,990 | py | from flask import Flask, render_template, request, send_from_directory
import requests
import psycopg2
import sys
reload(sys)
sys.setdefaultencoding('utf8')
app = Flask(__name__)
# @app.route('/sitemap.xml')
# def static_from_root():
# return send_from_directory(app.static_folder, request.path[1:])
@app.route('... | [
"milanmenezes@gmail.com"
] | milanmenezes@gmail.com |
d8b8bd60e41caf83734e3c90563d6e80ca23a67d | 903534cec856db92d4d08c783c7584ce7cba632a | /caixaemail/caixaemail/wsgi.py | edfb0f46c6b40bc44b0a591464186f6d8afc078e | [] | no_license | paulovpereira/caixaEmail | 2fd619231c894a35f48ee486d0f2ffdb478ce0d0 | 854c397d6b62d949e5173663ef804bc209eb9cc2 | refs/heads/master | 2016-08-03T16:59:13.835180 | 2014-03-07T17:01:07 | 2014-03-07T17:01:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
WSGI config for caixaemail project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "caixaemail.settings")
from django.... | [
"paulo.vinicius117@gmail.com"
] | paulo.vinicius117@gmail.com |
cf8a4e8ee9ab5bec84107722532d44c30bb836ac | 0494c9caa519b27f3ed6390046fde03a313d2868 | /commit-queue/tests/buildbot_json_test.py | 561e59a3ca46c6615888e6b6922332b1b8423227 | [
"BSD-3-Clause"
] | permissive | mhcchang/chromium30 | 9e9649bec6fb19fe0dc2c8b94c27c9d1fa69da2c | 516718f9b7b95c4280257b2d319638d4728a90e1 | refs/heads/master | 2023-03-17T00:33:40.437560 | 2017-08-01T01:13:12 | 2017-08-01T01:13:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,606 | 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.
"""Unit tests for buildbot_json.py."""
import json
import logging
import os
import cStringIO
import StringIO
import sys
import uni... | [
"1990zhaoshuang@163.com"
] | 1990zhaoshuang@163.com |
683af85af45c093f614fd0b945ea0c517881aa42 | 3154395d10ff2f8d85d90758f2fa6d2dc9addfd0 | /autotest/test_gwt_mst01.py | ef1e2a2f19183db4c6c1a5de9523115d2a28e249 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | jtwhite79/modflow6 | 40507e5ce5a08f56e8a8029094b4cf147048e5c0 | 95ff014a1bddcee2d5d35859350571ba4fd9fb2f | refs/heads/master | 2023-05-27T11:29:53.421941 | 2021-02-18T18:00:23 | 2021-02-18T18:00:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,465 | py | import os
import sys
import numpy as np
try:
import pymake
except:
msg = 'Error. Pymake package is not available.\n'
msg += 'Try installing using the following command:\n'
msg += ' pip install https://github.com/modflowpy/pymake/zipball/master'
raise Exception(msg)
try:
import flopy
except:
... | [
"noreply@github.com"
] | jtwhite79.noreply@github.com |
c89ee79327c7d095b6dc5eaf86fa82a7e432dbd6 | ef38e5fe75027168292d5fc3709944fb079e8186 | /爬虫案例/爬虫3/案例6-添加手机请求头.py | c8544f69bb65e4933f46974fb454a7231f6d00f3 | [] | no_license | s123-x/Spider1907 | a6122cb5f310483aa94f6c559a6c546a0462888c | 14bca857d666b6e20455efc0951abc796b38f40a | refs/heads/master | 2022-12-01T01:04:34.982652 | 2020-08-13T03:36:12 | 2020-08-13T03:36:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | '''
添加手机请求头,模拟手机浏览器
'''
from urllib import request,parse
url = 'http://httpbin.org/post'
dict = {'name': 'admin'}
# 参数转化为byte
data = bytes(parse.urlencode(dict), encoding='utf8')
headers={
'User-Agent': 'Mozilla/5.0(iPhone;U;CPUiPhoneOS4_3_3likeMacOSX;en-us)AppleWebKit/533.17.9(KHTML,likeGecko)Version/5.0.2Mobil... | [
"zhengyang-zhou@163.com"
] | zhengyang-zhou@163.com |
e283d2eaac245457c58845b49053713b3b32828d | 97e825f4a28e2f37d96aaf090e48167985abb6be | /manage.py | 325fa0b238a6500742983ab085283db3c4c69ff5 | [] | no_license | miohsu/GaeaShop | 5fa9a07e0c3e40f3c7a763210cbd1db4f6c55553 | 074d7bd39f7be7f833ee78f5fa93783717fc8c0f | refs/heads/master | 2020-04-13T02:39:47.930540 | 2019-01-04T16:18:47 | 2019-01-04T16:18:47 | 162,909,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'GaeaShop.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are... | [
"kunieshow@163.com"
] | kunieshow@163.com |
24b6a32a2f199199b4ed496fe7d3303761afda58 | e8486731cced94056574e92f8d7fb11b36d49518 | /zzh/build/lib/zzh/middlewares.py | 84d6db246ac9ac44c166bc471d9cdca82d66bae4 | [] | no_license | jinuoA/spider_zzh | 3bef91350b0794ef22dc60a261e890b82c08e99b | 3db097b28679b520d2abedac05e544f98b0b89e2 | refs/heads/master | 2022-12-11T10:01:12.685038 | 2019-05-06T03:05:45 | 2019-05-06T03:05:45 | 185,114,452 | 0 | 0 | null | 2022-12-08T01:45:15 | 2019-05-06T03:04:27 | Python | UTF-8 | Python | false | false | 3,269 | py | # encoding=utf-8
import random
import scrapy
from scrapy import log
import time
import os
from scrapy.downloadermiddlewares.useragent import UserAgentMiddleware
from .conf.user_agents import (
agents
)
# logger = logging.getLogger()
class ProxyMiddleWare(object):
"""docstring for ProxyMiddleWare"""
def ... | [
"wangjun@zhengzihui.com"
] | wangjun@zhengzihui.com |
48f118a8e7d7219a984a8b2601ee89cd22b87f28 | 15fe288d5f8983a6c185cd0bcb7e0deac97efb62 | /mylib/my_logger.py | 360720637e4d244a922015b757bf66e90e528ec7 | [] | no_license | oyucube/traffic | 98955cd37e1b64bed752c94e3e0f442afbd7fadd | 6f4bc3873281b6c8cce91a904836f887947de0f2 | refs/heads/master | 2020-03-20T12:56:52.718451 | 2019-02-08T05:56:13 | 2019-02-08T05:56:13 | 137,444,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,291 | py | import numpy as np
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
class LOGGER:
def __init__(self, log_file_path, file_id, log_mode=0, n_epoch=30):
self.log_file_path = log_file_path
self.file_id = file_id
self.log_mode = log_mode
self.log_buf = []
... | [
"y-murata@ist.osaka-u.ac.jp"
] | y-murata@ist.osaka-u.ac.jp |
14f52a34bc9255f5bb49c7dae494fd7834405746 | 1c6283303ceb883add8de4ee07c5ffcfc2e93fab | /Jinja2/lib/python3.7/site-packages/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocolstack/ancprange_5c7b16a33b225110a96fb24def386cf1.py | c5c1d643faab09f0a08e0e592081cf841b68970c | [] | no_license | pdobrinskiy/devcore | 0f5b3dfc2f3bf1e44abd716f008a01c443e14f18 | 580c7df6f5db8c118990cf01bc2b986285b9718b | refs/heads/main | 2023-07-29T20:28:49.035475 | 2021-09-14T10:02:16 | 2021-09-14T10:02:16 | 405,919,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123,256 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, ... | [
"pdobrinskiy@yahoo.com"
] | pdobrinskiy@yahoo.com |
79a1d1b99544c0df6ff3fa556be040c933b22cd8 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /4AtqpqKdXAFofa566_16.py | ea18541665d34bf4ba2b25fbe302826b6e09da0e | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,005 | py | """
Create a function that takes in a _number as a string_ `n` and returns the
number **without trailing and leading zeros**.
* **Trailing Zeros** are the zeros _after_ a decimal point which _don't affect the value_ (e.g. the _last three_ zeros in `3.4000` and `3.04000`).
* **Leading Zeros** are the zeros _be... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
c47c8f25ef0a16065acb3db10db7b20ecfff2d6a | 4a9f283c74df2f8113ab2c0841a06905f9191d49 | /hummingbird/ml/operator_converters/_tree_commons.py | 941a021ea341d090c891145c88230809f8f995b4 | [
"BSD-3-Clause",
"MIT"
] | permissive | hannahaih/hummingbird | 8c02abc63c243b357d3a20c931de8384dbaa14ad | b8ec670b3c90ec7e87d3ae4a2b268075bd5eae65 | refs/heads/main | 2023-02-11T01:38:08.603018 | 2020-12-23T23:50:35 | 2020-12-23T23:50:35 | 325,285,418 | 1 | 0 | MIT | 2020-12-29T12:48:35 | 2020-12-29T12:48:34 | null | UTF-8 | Python | false | false | 14,836 | py | # -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
"""
Colle... | [
"noreply@github.com"
] | hannahaih.noreply@github.com |
37e9be961201df01808e80969b39de4b082dcbb1 | c4b87e23c0ca100fe42a3f63ddf5ae0f914b08d6 | /utils/feedparser.py | 92419bc4d0729ac2e923e9876c8d333470a48f7d | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | TinLe/NewsBlur | 4cfc14952b03ff207b00ca85cf59a804a53d0179 | 881e558071bbd0048a65ed67d63d4366ee05cbe8 | refs/heads/master | 2023-05-27T02:35:16.183150 | 2022-11-22T16:09:05 | 2022-11-22T16:09:05 | 98,898,911 | 0 | 0 | MIT | 2023-05-22T21:41:15 | 2017-07-31T14:37:45 | Python | UTF-8 | Python | false | false | 160,115 | py | """Universal feed parser
Handles RSS 0.9x, RSS 1.0, RSS 2.0, CDF, Atom 0.3, and Atom 1.0 feeds
Visit https://code.google.com/p/feedparser/ for the latest version
Visit http://packages.python.org/feedparser/ for the latest documentation
Required: Python 2.4 or later
Recommended: iconv_codec <http://cjkpython.i18n.org... | [
"samuel@ofbrooklyn.com"
] | samuel@ofbrooklyn.com |
c007ccf8587ac826643490259c09190cf077d7f4 | 9b90ceae11afc920638bdb8c088467cef4cdd382 | /src/aggregator/.ipynb_checkpoints/aggregator-checkpoint.py | 69eb36cfe668be1df9e8b7a8732b5984e38e7569 | [] | no_license | nikamanthab/Federated_Pneumonia | d95059d5994b1c4322c72d551914c6f777562c37 | 165a05059c8312d2639b18a0da67df3f399ea156 | refs/heads/main | 2023-03-30T19:23:35.409387 | 2021-03-23T10:46:51 | 2021-03-23T10:46:51 | 317,647,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,102 | py | import torch
import torch.optim as optim
import numpy as np
import random
from modelloader import getModelArchitecture, loadModel
from collections import OrderedDict
def weights_to_array(model):
'''
input: pytorch model
output: array of tensors of model weights
'''
model_weights = []
fo... | [
"nitinnikamanth@gmail.com"
] | nitinnikamanth@gmail.com |
27600bf7b38a736a715d6aae79dc799b4bd9ca2c | effaaadf8205b4dbfbc82f463f35f48a008c757a | /ipython_config.py | abc4c0363f4fa355f009d41769bd572c6e69c952 | [] | no_license | JPHammonds/mirrorLabBluesky | 5f12f1bd791e5ecfb3ecebdac11c59a827ad5299 | b0f145c39dd8d4f65c3507d95c97414ec5be1582 | refs/heads/master | 2020-04-08T20:22:13.913171 | 2019-04-18T20:52:25 | 2019-04-18T20:52:25 | 159,694,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,284 | py | # Configuration file for ipython.
#------------------------------------------------------------------------------
# InteractiveShellApp(Configurable) configuration
#------------------------------------------------------------------------------
## A Mixin for applications that start InteractiveShell instances.
#
# ... | [
"JPHammonds@anl.gov"
] | JPHammonds@anl.gov |
227c8e7d7c7faf708582ddde5050af8f34a85ecd | 7bededcada9271d92f34da6dae7088f3faf61c02 | /pypureclient/flashblade/FB_2_4/models/smtp_server_get_response.py | b9d7c1f33db6e8adf4bc96d6abeba9d4958fb2b7 | [
"BSD-2-Clause"
] | permissive | PureStorage-OpenConnect/py-pure-client | a5348c6a153f8c809d6e3cf734d95d6946c5f659 | 7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e | refs/heads/master | 2023-09-04T10:59:03.009972 | 2023-08-25T07:40:41 | 2023-08-25T07:40:41 | 160,391,444 | 18 | 29 | BSD-2-Clause | 2023-09-08T09:08:30 | 2018-12-04T17:02:51 | Python | UTF-8 | Python | false | false | 4,221 | py | # coding: utf-8
"""
FlashBlade REST API
A lightweight client for FlashBlade REST API 2.4, developed by Pure Storage, Inc. (http://www.purestorage.com/).
OpenAPI spec version: 2.4
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import typ... | [
"tlewis@purestorage.com"
] | tlewis@purestorage.com |
f36ffffea1f4374ec233376ec27a22b0aaeb5bf5 | 43c24c890221d6c98e4a45cd63dba4f1aa859f55 | /test/tests/thread_contention_test.py | 518e5dcd40cd8122d86907338a77f8d5d156ebea | [
"Python-2.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | jmgc/pyston | c8e4df03c33c6b81d20b7d51a781d9e10148238e | 9f672c1bbb75710ac17dd3d9107da05c8e9e8e8f | refs/heads/master | 2020-12-11T07:51:58.968440 | 2020-09-11T14:38:38 | 2020-09-11T14:38:38 | 39,242,644 | 0 | 0 | NOASSERTION | 2020-09-11T14:38:39 | 2015-07-17T08:09:31 | Python | UTF-8 | Python | false | false | 416 | py | from thread import start_new_thread
import time
work = []
done = []
def run(num):
for i in xrange(num):
t = work.pop()
work.append(t - 1)
done.append(num)
print "starting!"
nthreads = 2
N = 100000
for i in xrange(nthreads):
work.append(N)
for i in xrange(nthreads):
t = start_new_threa... | [
"kmod@dropbox.com"
] | kmod@dropbox.com |
c22bb676af4bf8987e668237e5832b7722486a63 | b05a988bf177ffb8a1681cd076337d94e13143f4 | /Project 3/readfile.py | 7107be0510b933df0c6ea796557054331692a325 | [] | no_license | jeetsj/Nondeterministic-Search | 132f6746a39a67766ec05acfd2cc6ca91e035a35 | 819de2f5b3a7de4924a13fa6a2f85214372482c5 | refs/heads/master | 2022-11-27T21:39:45.011038 | 2020-08-10T05:41:17 | 2020-08-10T05:41:17 | 286,385,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 965 | py | import numpy as np
def read2():
grid_matrix = np.array([])
instance_of_file = open("read.txt", "r")
statement = instance_of_file.readlines()
noise = []
gamma = 0
grid_size = 0
c = 0
for i in range(len(statement)):
if statement[i].startswith("#"):
continue
eli... | [
"jeetshahj12375@gmail.com"
] | jeetshahj12375@gmail.com |
6bc2942ee50f0ca3ef7b8716b1cba548694911f7 | 8aac0c857e42edd091349e7ae4b4b4187658cf15 | /calculator.py | d13b49bfe41d6181dd620b6edb0e1926b4789d57 | [] | no_license | StefanBursac/Console_Calculator | 53d749b8a782b95eceae84dc486415b606ed00f2 | 3ad21ccc0c57a4a7c34f9460f4ed8cc2800d9936 | refs/heads/master | 2023-03-25T01:16:49.797607 | 2021-03-20T09:14:26 | 2021-03-20T09:14:26 | 349,673,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | class Calculator:
first_number = 0
second_number = 0
def sum(self):
return self.first_number + self.second_number
def sub(self):
return self.first_number - self.second_number
def multiply(self):
return self.first_number * self.second_number
def divide... | [
"stefanbursac@hotmail.com"
] | stefanbursac@hotmail.com |
daf8d5ad2294acacea18991dbde1dae62e2c8bc1 | c70eabeeb13c417dc561511638ae66ccbc6355de | /src/mizore/ParallelTaskRunner/_evaluation_task.py | 07c65ee72307376608c3361b3b36609b11b561f1 | [] | no_license | doomspec/Mizore-dev | 9adbd33a45dba4ec2f14d0be3975d5b32b653b31 | 428c5308cdc8b2d6a5fd6638cce030ed65b4157a | refs/heads/master | 2022-12-29T14:29:01.796808 | 2020-10-20T14:39:28 | 2020-10-20T14:39:28 | 303,202,314 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | from ._task import Task
from ..Blocks import BlockCircuit
from ..Objective._objective import CostFunction
class EvaluationTask(Task):
def __init__(self, circuit: BlockCircuit, cost: CostFunction):
Task.__init__(self)
self.circuit = circuit
self.cost = cost
def run(self):
retur... | [
"doomspec@outlook.com"
] | doomspec@outlook.com |
480b66b9bf6235fd6ee95a1c3b59e9e460df29f9 | 65824d551fce1915ea1f6776eb8736297c6c1b5b | /app/blog/models.py | 4d5d5120bb4305272c454a6b8845804e93c69d73 | [] | no_license | moonpeter/wps-ci | 10020966b41b0e0fb2c7f60e319fb4db9db92bd8 | 52352b59e0948dcda753dd3817c85045724c1eea | refs/heads/master | 2021-03-18T01:32:57.449475 | 2020-03-13T12:21:58 | 2020-03-13T12:21:58 | 247,035,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | from django.db import models
class Post(models.Model):
title = models.CharField(max_length=50)
content = models.TextField(blank=True)
def __str__(self):
return self.title | [
"moonpeter@kakao.com"
] | moonpeter@kakao.com |
46b43aae14e1edbb429984d0ea5f710a308d5c7d | 7433bb9a3e3a1ea89314c05a0ca22f52323eb33a | /task_LSTM_inbuild/step3_evaluate_line.py | a40d65169d18b78db2ed6db0a1619992e589b2ea | [
"Apache-2.0"
] | permissive | tianyunzqs/text_classifier_tasks | 685a70c70216865c28204d48bdbf9a1239edea86 | 444ac6676547f4e3ee0ccd5fb36439e8e02f56a9 | refs/heads/master | 2022-11-05T00:31:09.070088 | 2022-10-17T02:46:38 | 2022-10-17T02:46:38 | 175,388,072 | 10 | 6 | null | null | null | null | UTF-8 | Python | false | false | 3,879 | py | # -*- coding: utf-8 -*-
# @Time : 2019/7/26 10:18
# @Author : tianyunzqs
# @Description :
import os
import sys
import numpy as np
import tensorflow as tf
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from task_LSTM_inbuild.data_helper import Vocab, CategoryDict
from task_L... | [
"qszhu@fiberhome.com"
] | qszhu@fiberhome.com |
6fbca07b27a87449c7acd2d6444c8bfcb0e98204 | 805a6391789e8102be18437e1d78467d6b6265ec | /python_algo/skearn_learning/example/lassoModel_secection.py | b0effd36314bfed46097823c8da79eb80271547c | [] | no_license | zhongyoub/algoStudy | 0cef82bf5db4624f67ec59817b69011b3757fe2a | 3b61bb074f6be87de921af9e2a0eb2eb6da3c948 | refs/heads/master | 2021-06-20T05:40:25.534773 | 2021-06-17T07:10:39 | 2021-06-17T07:10:39 | 211,616,457 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,654 | py | '''
稀疏模型的选择:使用cross-validation/AIC/BIC 选择最优的规则化参数alpha
AIC:依赖于自由度的何时估计,适用于大样本,并且假设模型是正确的
'''
import time
import numpy as np
import matplotlib.pyplot as plt
from sklearn.linear_model import LassoCV, LassoLarsCV, LassoLarsIC
from sklearn import datasets
# This is to avoid division by zero while doing n... | [
"wangyouzhan@sina.com"
] | wangyouzhan@sina.com |
dbe872211a4755d36304647f012be4e14b572c81 | 8da76aabcf9cfea3478f56037edbb5fa1513140b | /maisemapaikka/dev_jt_01/maisemapaikka/apps/geomaps/widgets.py | c1ab884dc936bd34d6cf3c3c038d530f9564201b | [] | no_license | mikanyman/.virtualenvs-legacy | 039479f31f2ca9f9a3d3544d8837429ddd0a7492 | 5486128b5b3b7ddb9ec81d43e3bb601a23b4025a | refs/heads/master | 2020-12-31T07:10:07.018881 | 2017-02-01T02:16:55 | 2017-02-01T02:16:55 | 80,566,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,118 | py | from django import forms
from django.db import models
from django.conf import settings
class LocationPickerWidget(forms.TextInput):
class Media:
css = {
'all': (
settings.ADMIN_MEDIA_PREFIX + 'css/location_picker.css',
)
}
js = (
'htt... | [
"mika.nyman@synapse-computing.com"
] | mika.nyman@synapse-computing.com |
b4016e7c6e33dd9a9fafde823146997383e0735b | ce59f19d7a0583b25988b86f9f2df7bf28ef2fcc | /posts/datos.py | 6e30fcbd911cf840052d2dfb8bd003530039ea47 | [] | no_license | Jose-Guachun/CursoDjango | c8607b6f056c2da164dd025b39ecd809499a0b9e | fda4a01589a7d1fe7ddbd54162253a2a90240eaa | refs/heads/master | 2022-10-12T23:42:15.591864 | 2020-06-12T02:49:33 | 2020-06-12T02:49:33 | 260,287,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 834 | py | from datetime import date
users=[
{'email':'juan@gmail.com',
'first_name':'juan',
'last_name':'lazo',
'password':'fdf334',
'is_Admin':True,
'birthdate':date(1996,12,12),
'bio':"todo el mundo esta loco",
},
{'email':'victor@gmail.com',
'first_name':'Victor',
'last_name':'Perez... | [
"joseguachuns@hotmail.com"
] | joseguachuns@hotmail.com |
9d8e222d52ca885945f85faa76a3499f86d5ffff | 1a664d6e1cc988d9461af4d3f6da569506b0e494 | /Generators_Python/CHAPTER 1/ch01_04.py | da180d122b800b46f487456aebba1dde515eaf84 | [] | no_license | Lingesh2311/Python-Basics | ff937e0c6160ce113a78750cac134d7100075df1 | 63af5b5ca4d4d0178d3c67423ceef5f12c270aa7 | refs/heads/master | 2022-10-09T11:17:49.978508 | 2021-09-17T20:48:38 | 2021-09-17T20:48:38 | 171,347,508 | 0 | 0 | null | 2022-09-30T18:46:37 | 2019-02-18T19:58:11 | Jupyter Notebook | UTF-8 | Python | false | false | 95 | py | # Passing a generator expression into a for loop
for n in (i for i in range(10)):
print(n)
| [
"lingesh.k.2311@gmail.com"
] | lingesh.k.2311@gmail.com |
90a13f11139815176ad1aaebb85d4c1923639bc8 | fad849438bda739feba05b5d1a6057fc4e05496e | /ProxyObtainer/src/writeListToSQLite.py | 0781881809810909e6a1740a8b01c2c297632824 | [] | no_license | vondevil666/ProxyObtainer | 52158be9307a7eb736ac009b28d9e2e7cb6c1cd4 | 15e46db4c7c826af6478f507808ed622c1db131b | refs/heads/master | 2021-03-31T01:26:43.904044 | 2018-04-26T01:45:42 | 2018-04-26T01:45:42 | 124,353,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 698 | py | import sqlite3
import os
def writeListToSQLite(proxyList,db):
if not os.path.exists(db):
print('data base not found')
return
try:
conn=sqlite3.connect(db)
cursor=conn.cursor()
for proxy in proxyList:
print(proxy)
cursor.execute('insert... | [
"noreply@github.com"
] | vondevil666.noreply@github.com |
7103df8bf2cbccce6a5d025716c6cbec038be47d | f00a79c2de456cb7a2d33a3ccb6cbfbab4ea4dd1 | /django/mozapp/home/models.py | eb5b036920093de527596f83428f26a976f59d0b | [] | no_license | de-nuke/Mosapp | 6775758ba54ce28cfd0361ca46aa8d8a545c5717 | 397b4133467d06d0c499dffc51be2ab9fbaf4d8b | refs/heads/master | 2020-03-12T02:20:36.226590 | 2018-05-17T00:43:20 | 2018-05-17T00:43:20 | 130,399,870 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | from django.db import models
# Create your models here.
class MainImage(models.Model):
photo = models.ImageField(blank=False, null=False)
# def __str__(self):
| [
"sut.michal@gmail.com"
] | sut.michal@gmail.com |
eb646210d6936da473672d4cb75c1b2a0998a606 | bcbdc64b65e40241ce8f09280a9aec64c1560da9 | /train.py | 9e238aa46854ed536bdbc516212d859a32ec8fe2 | [] | no_license | gistarrr/mrc-level2-nlp-02 | 86c922d20bc738f23cb9f82bd08053cc0ddca764 | 11a2fdd6d4655ab079c0f81bd8a836d64b6f896f | refs/heads/main | 2023-08-28T16:07:20.263172 | 2021-11-07T13:41:46 | 2021-11-07T13:41:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,836 | py | import logging
import os
import sys
import math
import torch
import pandas as pd
from typing import NoReturn
from datasets import load_metric, load_from_disk, Dataset, DatasetDict
from transformers import AutoConfig, AutoModelForQuestionAnswering
from transformers import (
DataCollatorWithPadding,
EvalPredict... | [
"ghy546@naver.com"
] | ghy546@naver.com |
1da2e624120594b03a58fd0253262dd9d3ce45bb | cb836bde47c790c7ad990d44d86d60c13f43a2a0 | /markdown_it/token.py | 0c03ac1fc8f64c41339533f0ce672a0994fe315f | [
"MIT"
] | permissive | iooxa/markdown-it-py | 133028a981af715ce244554e26b92b16fc4443ac | 21837dfa0ce9be249de372bb10733a534f8e0a50 | refs/heads/master | 2022-11-19T14:23:23.618106 | 2020-07-20T15:57:16 | 2020-07-20T15:57:16 | 281,160,226 | 0 | 0 | MIT | 2020-07-20T15:57:17 | 2020-07-20T15:50:02 | null | UTF-8 | Python | false | false | 5,690 | py | from typing import List, Optional, Tuple, Union
import attr
@attr.s(slots=True)
class Token:
# Type of the token (string, e.g. "paragraph_open")
type: str = attr.ib()
# html tag name, e.g. "p"
tag: str = attr.ib()
# Level change (number in {-1, 0, 1} set), where:
# - `1` means the tag is ope... | [
"chrisj_sewell@hotmail.com"
] | chrisj_sewell@hotmail.com |
4edd3ef83f97822be9f7eb321fee8a3a4fb2f35f | b9b5adc079bae0d0336d53cd9d50db63b409d0b6 | /web/migrations/0001_initial.py | 1a5ad873af21ef2682ff09d8043bf9fdb66d2aef | [] | no_license | aliaqalotfi/bestoon | 1ed7e9669513ae0958dd64aae609b799aaf7d348 | 1f1ba383dad5242c3f6114de3c8206d46807a71e | refs/heads/master | 2023-01-30T17:17:25.460587 | 2020-12-17T14:34:22 | 2020-12-17T14:34:22 | 322,316,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 843 | py | # Generated by Django 3.1.4 on 2020-12-17 13:05
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"alilotfi256@gmail.com"
] | alilotfi256@gmail.com |
af2cdd1c26e179c0a29265111b7faf87bdaef28e | b67a1db269ecca8350380f012f32d3b67a656b91 | /cars/migrations/0003_remove_truck_перегруз.py | 940f5e10a1874033d2da3e2f68873aacb698354a | [] | no_license | serexam/dump-trucks-tracking | 2ef5ba5704502765fe9471e5bb7d1ce380ad38f2 | 00d0d7489d0694e09c2d0003f50263ba2e104afc | refs/heads/master | 2020-03-31T05:02:30.729146 | 2018-10-09T20:20:42 | 2018-10-09T20:20:42 | 151,930,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | # Generated by Django 2.1.2 on 2018-10-05 21:26
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('cars', '0002_auto_20181005_2023'),
]
operations = [
migrations.RemoveField(
model_name='truck',
name='перегруз',
),
... | [
"serexam@yandex.ru"
] | serexam@yandex.ru |
9f74aeb473b3300665abe3798f28d8ac6314c8e8 | fc6a33b0d8b165c7db6d0cd99438b14b859311b7 | /correspondencia/report/correspondencia_correspondencia_report.py | 627aa15f21b2192a02c4fbc72ff39fa291549e8a | [] | no_license | Zyktons/Zyks-Prueba | c340d8afa8ca8e9d6f7545f369cdfb0076fcae69 | 07408d9b48c05d6cc1b8c9319c77933bd09a5792 | refs/heads/master | 2021-01-18T14:06:08.645458 | 2015-11-17T15:22:00 | 2015-11-17T15:22:00 | 12,795,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 991 | py | # -*- encoding: utf-8 -*-
from openerp.osv import osv
import time
from openerp.report import report_sxw
from datetime import datetime
class correspondencia_correspondencia_report(report_sxw.rml_parse):
def __init__(self, cr, uid, name, context):
super(correspondencia_correspondencia_report,self).__init__(... | [
"jhonattanm3@gmail.com"
] | jhonattanm3@gmail.com |
15d9c6e481c1d9b965560d3df63219323f610f49 | a9705eab2cdb33a6becf0da664fda0a8ed20bd2d | /zipex.py | 4c9e346ddb6ed3ef825ac0e184f13eab13e5cf38 | [] | no_license | mercyspirit/pythonexamplecode | 764b465942915ba73f6bae542e868ec5f039325b | 5c48f98b4744e5e805fc47d39ad96f5c64a2d26b | refs/heads/master | 2021-05-13T19:08:03.058516 | 2018-01-10T00:09:54 | 2018-01-10T00:09:54 | 116,885,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | x = [1,2,3]
y = [4,5,6]
for i in zip(x,y):
print(i)
a = [1,2,3,4,5]
b = [2,2,10,1,1]
for pair in zip(a,b):
print(max(pair))
l = map(lambda pair: max(pair), zip(a,b))
print(l)
x = [1,2,3]
y = [4,5,6,7]
print(zip(x,y))
d1 = {'a':1,'b':2}
d2 = {'c':4,'d':5}
def switcharoo(d1,d2):
dout = {}
for d1key,d2val in... | [
"ziying.qiu@gmail.com"
] | ziying.qiu@gmail.com |
79294e21fe6ae410327fa4256ef718a86e85aebc | 6bc0a4211eb73c4e6b89246960d6ed7e5f712113 | /webmap/webmap.py | e9a9c4d4b848837abe1287def8dc64dc587e04d6 | [] | no_license | jspolsdoff/python-learning-projects | ea53c9516f153798719cc959253a0d7f5f04f07d | 2b4457fa64f649831ca4c1631c14005b3405f550 | refs/heads/master | 2020-04-19T18:40:30.202347 | 2019-02-21T02:41:25 | 2019-02-21T02:41:25 | 168,369,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,183 | py | # was not able to initially install the folium due to python 2.x
# changed path to new python 3 using the following commmands
# $ sudo mv /usr/bin/python /usr/bin/python2
# $ sudo ln -s /usr/bin/python3 /usr/bin/python
# finally check version with python --version
# was then able to install folum via pip
#Import Libra... | [
"jspolsdoff@gmail.com"
] | jspolsdoff@gmail.com |
bd61409e71446d7121362e7e08f92a5804f58507 | 34d8b44f06c9b6e2ba35ef5d5e5cbf35b7113e7c | /jump.py | b70fb86d1b677db4b0054097a5e5eb76e2a17982 | [] | no_license | bremiy/shiyanlou-code | ac67ae07a030d0fe1a668d80e7bdc92aad7e26c8 | 1e7f9a7980c897ec784360fdf3916a82ff4b046f | refs/heads/master | 2020-06-23T09:42:02.653885 | 2019-08-21T15:23:40 | 2019-08-21T15:23:40 | 198,587,681 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | a = 1
while a<101:
if a%7 ==0:
pass
elif a//10 == 7:
pass
elif a%10 == 7:
pass
a = a+1
continue
else:
print(a,end = ' ')
a = a+1
| [
"luliu@vip.qq.com"
] | luliu@vip.qq.com |
e6cdba46aeece3e020f759b8414108b144310136 | 255dc7ff8fb676027021a674bd624fb6587fa2f7 | /compiler/tests/22_sram_func_test.py | 3a7ff5a3e9521545a1be95c25171bfa119148a16 | [
"BSD-3-Clause"
] | permissive | orbe7947/OpenRAM | 80b40462fb7c1044fdacf34908432820b71f6092 | 29c5ab48f0a82972337f4b17ee90695ff1f8f825 | refs/heads/master | 2021-08-16T11:35:10.528368 | 2017-11-14T21:24:14 | 2017-11-14T21:24:14 | 110,760,794 | 0 | 0 | null | 2017-11-15T00:14:12 | 2017-11-15T00:14:12 | null | UTF-8 | Python | false | false | 1,788 | py | #!/usr/bin/env python2.7
"""
Run a regresion test on various srams
"""
import unittest
from testutils import header
import sys,os
sys.path.append(os.path.join(sys.path[0],".."))
import globals
import debug
import calibre
OPTS = globals.get_opts()
#@unittest.skip("SKIPPING 21_timing_sram_test")
class sram_func_test... | [
"mrg@ucsc.edu"
] | mrg@ucsc.edu |
3d817787469b94efb5701656e528c260991baace | d5751e2f2b2128079d3473cf14b02c67515dba72 | /flask_fundamentals/2.form_test/server.py | e5183bece53a77565141c9f57f8e5f49966d5057 | [] | no_license | seymakara/dojo_python | 814ed49b561703e3a993a1ade0f084c234e82b13 | ff8a56020d9ab337d930ec4ce4039f0bca2cfead | refs/heads/master | 2021-05-13T20:44:27.327035 | 2018-01-10T06:32:27 | 2018-01-10T06:32:27 | 116,917,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 655 | py | from flask import Flask, render_template, request, redirect
app = Flask(__name__)
# our index route will handle rendering our form
@app.route('/')
def index():
return render_template("index.html")
# this route will handle our form submission
# notice how we defined which HTTP methods are allowed by this route
@app.... | [
"seymakara88@gmail.com"
] | seymakara88@gmail.com |
7db57ad73f463212dfa9e2f4bdd9e6cb8e6bd7fb | 4dca4f8f95f1a76465107562e56f8aa63e6be52f | /mg.py | 733217152432a305cac2e689912a62d89eff5fa0 | [] | no_license | Akashmallareddy/mini-tool | 09a964539c69587d65daffd1d3c696528b6ea224 | a52120f8a13f6ff30329c741a72ad8efe621fd4b | refs/heads/master | 2023-01-28T04:16:13.843270 | 2020-12-08T14:28:25 | 2020-12-08T14:28:25 | 300,680,936 | 1 | 0 | null | 2020-12-08T14:28:26 | 2020-10-02T16:55:30 | Python | UTF-8 | Python | false | false | 1,897 | py | import sqlite3
def pwd_manager_display():
c=cur.execute('select * from mana')
x=c.fetchall()
if len(x)!=0:
for i in range(len(x)):
print(x[i][0],end=" ")
print()
n=input('Enter the folder for with we need to show the password: ')
for i in range(len(x)):
if x[i][0]==n:
print(x[i][1])
else:
print(... | [
"noreply@github.com"
] | Akashmallareddy.noreply@github.com |
f9c790eb2cc47ba5039ad06c28c4aece60bbd206 | 8e0149f00f82f57216584b53180ec02870dee7e8 | /python/linked_list/heap/lc23.py | 80140fd3c24babfcf1832732796fa94aec1ba01e | [] | no_license | chao-ji/LeetCode | 5880e0fa91d84ad70b5abd47e24ac75646fdcdf9 | 69a960dd8f39e9c8435a3678852071e1085fcb72 | refs/heads/master | 2020-12-13T03:35:42.009204 | 2019-06-15T04:45:38 | 2019-06-15T04:45:38 | 51,043,575 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,748 | py | """23. Merge k Sorted Lists
Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity.
Example:
Input:
[
1->4->5,
1->3->4,
2->6
]
Output: 1->1->2->3->4->4->5->6
"""
import heapq
# Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
#... | [
"chocobo1985@gmail.com"
] | chocobo1985@gmail.com |
8d336839c0340f9d218b0b5cb45a4b141e984ef1 | 4b62bfd3c5c795485766ee6090e60e1d69beac1d | /src/ia/redneuronal.py | 8192b5d951004837597d0cd43f8b2e5d724e35e3 | [] | no_license | pspompey/ia_cartas | a70ee25424ea007d26fa719f463c093cbcfffc68 | fcff9299f2f5490bb20885098fd65a49532552fd | refs/heads/main | 2023-08-25T08:33:16.067641 | 2021-10-23T16:17:07 | 2021-10-23T16:17:07 | 418,564,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,236 | py | #!/usr/bin/python3
import numpy as np
import tensorflow as tf
import pandas as pd
from matplotlib import pyplot as plt
from sklearn.metrics import classification_report, confusion_matrix
from config import config
from IPython.display import display
from keras.utils.vis_utils import plot_model
from sklearn.model_select... | [
"pompeypabl@frba.utn.edu.ar"
] | pompeypabl@frba.utn.edu.ar |
93aebeb5570c4ac7b74ee5d8a4515f28e033073e | f174106b86de83b5bc781d065a0c605ffa667995 | /yeahyeah_plugins/clockify_plugin/parameters.py | ddf73c6d7cea1933d22597910ea3d48acdb9cc88 | [
"MIT"
] | permissive | sjoerdk/yeahyeah | 89616c23b8d8762f9f92bfae1fc11be5795f4f08 | aa637fed01b3d0d8b018ae2d18a0008cbe93e26b | refs/heads/master | 2023-09-04T06:27:48.106765 | 2022-01-03T09:37:53 | 2022-01-03T09:37:53 | 176,755,000 | 0 | 1 | MIT | 2023-09-14T14:25:40 | 2019-03-20T14:44:53 | Python | UTF-8 | Python | false | false | 2,248 | py | """Custom click data types"""
import datetime
import re
import click
from yeahyeah_plugins.clockify_plugin.time import now_local
class TimeParamType(click.ParamType):
"""A parameter to indicate the time. Time zone aware.
Is either an absolute time like 14:54
Or a relative time like +10 (in 10 minutes) ... | [
"sjoerd.kerkstra@radboudumc.nl"
] | sjoerd.kerkstra@radboudumc.nl |
b6723850310e650934ca18886791a71dee495084 | 2fd8f1cafdabfdf9507a1a7e232e13ac7756767f | /data/data_models.py | ca393ea6ffc156bcc2ffa70f40a7fab6b96bb7a7 | [] | no_license | dewmal/fx_agent_sma | 34f3571fe37bfc18c72b8f9ec101dbbe5610a0bb | 7ecec6ab432d8d43daa6d9cb4a838b1ade1e0c13 | refs/heads/master | 2020-06-16T10:16:20.359791 | 2019-07-17T06:09:52 | 2019-07-17T06:09:52 | 195,536,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,508 | py | import datetime
from utils import round_time
class TickStream:
__type__ = "tick_stream"
symbol: str
ask: float
bid: float
quote: float
epoch: int
value: float
def __init__(self, tickId, symbol, ask, bid, quote, epoch, version="1.0") -> None:
super().__init__()
self.ti... | [
"dewmalnilanka@gmail.com"
] | dewmalnilanka@gmail.com |
3622942b7c93de7b6819004d190c5034570c3137 | eb33957e7b140c762fb77e5c83e5bba14aaeb8d3 | /jam/server/api/v1/namespace.py | 67e81b1ea025c04385aaeeced47b442bdb4acd19 | [] | no_license | AndrewSallans/jamdb | 8a4a9d5ec03ca77bd0ad45404f8031b558898270 | 6eb4c0b465034e7ef5a648873be2353c4093c863 | refs/heads/develop | 2021-01-15T11:19:59.679368 | 2016-03-04T23:37:02 | 2016-03-04T23:37:02 | 53,345,931 | 0 | 0 | null | 2016-03-07T17:46:52 | 2016-03-07T17:46:49 | HTML | UTF-8 | Python | false | false | 2,996 | py | import operator
import functools
from jam import Q
from jam import NamespaceManager
from jam.auth import Permissions
from jam.server.api.v1.base import View
from jam.server.api.v1.base import Serializer
from jam.server.api.v1.base import Relationship
class NamespaceView(View):
name = 'namespace'
plural = 'n... | [
"chriskseto@gmail.com"
] | chriskseto@gmail.com |
a5dee138ceab6d1d3ae0ec45f88fb16bb712f909 | 86f255ecb4271634e3c44a25bcd510d2e2254d43 | /net_class.py | c15c6cf11f00c15b90255b95b31b36ddd0de6d13 | [] | no_license | psharma7600/OCR-Scratch | 5cb189cc4ccfaf350e76afb07a33bc2a4666c6e9 | 842f53c2127778a8cd5c6808165ff6e55dd81b98 | refs/heads/master | 2023-07-19T18:55:52.455924 | 2019-05-16T16:11:11 | 2019-05-16T16:11:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,344 | py | import numpy as np
@np.vectorize
def sigmoid(x):
tmp = 1/(1+np.e**-x)
return tmp;
activation_function = sigmoid
class NeuralNetwork:
#Constructor for initializing parameters of neural net
def __init__(self,numInNodes,numOutNodes,numHiddenNodes,learningRate,bias = None):
self.num... | [
"noreply@github.com"
] | psharma7600.noreply@github.com |
6aaab26b75b53923e8a74876b16f34d30fbe0c44 | 3c5657492c401994eaaebcf16c2b13a5ebc0efd8 | /cresthh/tools/reduceSWW.py | 768a6bf1a89c6bb4c6c7d17e1ebe895143fd9d7a | [] | no_license | peggypan0411/CREST-iMAP | 0b01d1123f7be7806971ead4835ea2e7f61f81a9 | b2d80e2c3eb3fb575c678915fd89a96bdb30dbde | refs/heads/master | 2023-07-16T08:11:26.736833 | 2021-04-14T21:44:02 | 2021-04-14T21:44:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,949 | py | #!/home/ZhiLi/CRESTHH/python2/bin/python2
'''
A command line tool to get reduced geotiffs quickly
__author__: Zhi Li
__Date__: 2021/02/07
'''
import argparse
import numpy as np
import sys
sys.path.append('/home/ZhiLi/CRESTHH')
from cresthh.anuga.file_conversion.sww2dem import sww2dem
from cresthh.anuga import SWW_plo... | [
"chrimerss@gmail.com"
] | chrimerss@gmail.com |
cd94742c9c7694054d5b7b202660c0becf1c5052 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_136/1700.py | 4c068771cbd023f47f2d94b37f052921066dddfa | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 603 | py | def data(filename):
fi = open(filename,'r')
o = open(filename+".out",'w')
tests = fi.readline().strip()
a = fi.readlines()
for i in range(0,int(tests)):
c,f,x = map(float,a[i].strip().split())
nf = 1
t1 = x/2
t2 = c/2+x/(2+nf*f)
while (t1-t2 > 10**-7... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
676ffc81763e6a3443496232ee3ef7931d559ff3 | 17c5ac762d0b225e58d28e7aa9928b8115ae74e2 | /ExW36.py | 7cff450fd6ec7683d70ce98810d4ac86492ad80a | [] | no_license | ashleynguci/pythonproj | f8bcb573ac884bf1194819a2d7f4b520e94c805c | 3daac17bc045014039afad446e3ec18c00eb7a22 | refs/heads/master | 2020-03-31T03:09:16.083559 | 2018-11-05T14:29:51 | 2018-11-05T14:29:51 | 151,854,990 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,465 | py | Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 26 2018, 23:26:24)
[Clang 6.0 (clang-600.0.57)] on darwin
Type "copyright", "credits" or "license()" for more information.
>>> #Calculate 53*27 divided by 2.5*3-1
>>> 53*27/(2.5*3-1)
220.15384615384616
>>> #Calculate 2 raised to 100
>>> 2**100
1267650600228229401496703205376
>>> va... | [
"noreply@github.com"
] | ashleynguci.noreply@github.com |
879908ff606bb11ce596146341cd9c6c1e40f77c | a51c6ff164b38a1620f86df9e4ea335ae3513cc8 | /code/datasets/modality_builders/ModalityBuilder.py | e3bbc77bd08e3f3a3c7ba9dc5dc8cea31f2d43fc | [
"MIT"
] | permissive | Zelgunn/Video-Latent-Lerp | 86742c22104220e45216a0fce037716990cd0154 | c479a26c0be5174543268667bde09f1154d2ff79 | refs/heads/master | 2023-05-11T20:23:21.166049 | 2021-06-05T07:30:27 | 2021-06-05T07:30:27 | 290,194,626 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,851 | py | import numpy as np
from abc import ABC, abstractmethod
from typing import Type, Dict, Union, Iterable, Optional
from modalities import Modality, ModalityCollection, RawVideo, RawAudio, DoG, OpticalFlow
from misc_utils.misc_utils import int_ceil, int_floor
EPSILON = 1e-5
class ModalityBuilder(ABC):
def __init__(... | [
"valentin.durand-de-gevigney@irisa.fr"
] | valentin.durand-de-gevigney@irisa.fr |
b1a30bcbe57d1cc94597c661a84b86dcba232cbc | 34301251486d79caf7d07bfacf241cec57e30c61 | /Menu.py | 1431f2baae76866702c6d16efab43c5e55e282e9 | [] | no_license | quirogaluistomas/PythonTest | 055255551459e818c878f49666dde37c3c0eee77 | 612478923f365573b0b313907f184c439df8dad5 | refs/heads/master | 2022-12-26T12:43:17.358500 | 2020-10-15T13:44:19 | 2020-10-15T13:44:19 | 288,061,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,908 | py | from tkinter import *
from tkinter import messagebox
root = Tk()
def infoAdicional(): #Creamos la funcion que crea la ventana
messagebox.showinfo("Procesador de Lucho", "Procesador de texto 2020")
def avisoLicencia():
messagebox.showwarning("Licencia", "Producto bajo licencua GNU")
def salirAplicacion():
... | [
"quirogaluistomas@gmail.com"
] | quirogaluistomas@gmail.com |
3af1081650185d189c925685098f51c3a7e73a2e | 358c37c30776fa5cea5cc5d780cf3ada56e1f0ac | /array_int_sum.py | 1afeb4f34bc6a5b3c8ac1b76d7a49691bbba50ce | [] | no_license | hmswrth/guvi-codekata | 0e7c0d3d179221c1e749943d224d7948379c790e | 73ca22e642716bc0f3dd5b964798ee0851b64f28 | refs/heads/master | 2020-05-03T09:31:51.808713 | 2019-08-17T19:08:20 | 2019-08-17T19:08:20 | 178,556,431 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | def func(arr,n,k):
sum=0
for i in (range(k)):
sum=sum+int(arr[i])
print(sum)
n=list(input().split())
n=n[0]
k=int(n[1])
arr=list(input())
func(arr,n,k)
| [
"mudra.hemanth@gmail.com"
] | mudra.hemanth@gmail.com |
bd8b64ed6732af4514f87181d91e95ee7a9d5c2f | 1753904a3afbda2ca2e116a95aa268cd64b7e25e | /notification_scripts/html_email_test.py | 652b6e8787c58754246ffef5d2a344189cb313ca | [] | no_license | MikeStrenk/SP500-Stock-Quote-App | 15d8e17aabde07290ca9384b3dc2c82d6e7419a9 | 595946bd5653b05c6c763ac4ac17c010f486ee07 | refs/heads/master | 2022-12-10T01:27:17.067127 | 2019-02-21T12:39:47 | 2019-02-21T12:39:47 | 125,895,770 | 0 | 0 | null | 2022-12-08T02:48:35 | 2018-03-19T17:30:28 | Python | UTF-8 | Python | false | false | 1,331 | py | import smtplib
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from email.mime.image import MIMEImage
from config import sender, username, password
from email_template import text_template, html_template
# Create message container - the correct MIME type is multipart/alternative.... | [
"mikestrenk@gmail.com"
] | mikestrenk@gmail.com |
bbcfffa92431f13ed5671ea46ddab2025d80f149 | f9e65aa331e63afb60632c8ca6b0672095f086b6 | /Lab1_vigenere/vigenere_cryptoanalysis.py | 57b18803adc66af2e28b37077c1c055331bc7e94 | [] | no_license | roma-vinn/CryptographyLabs | e3660c3b01ee742157065451a54e23f2ae8f3c05 | 4c5c741a969f06113029246901e0ba49973477ed | refs/heads/master | 2022-10-21T01:06:34.461248 | 2020-06-15T02:58:34 | 2020-06-15T02:58:34 | 272,328,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,589 | py | from Lab1_vigenere.vigenere_cipher import encrypt, decrypt, ALPHABET
from Lab1_vigenere.hist import get_frequency, prepare_text
from collections import Counter
# import pickle
UKR_IC = 0.0575
UKR_FREQ = {'а': 0.074, 'б': 0.018, 'в': 0.054, 'г': 0.016, 'ґ': 0.001, 'д': 0.036,
'е': 0.017, 'є': 0.008, 'ж': 0.... | [
"roma.vinn@gmail.com"
] | roma.vinn@gmail.com |
453f857d48ab1384317239903eb37512c6373f79 | 2cb5442f660d20ad7db24c0880bffd58056324a2 | /game/multi_metric_pet.py | c57f4efdcfb4fddccf712097394a18560ed14eee | [] | no_license | citymonkeymao/Tamagotchi | 00d2107f0c365e975a56783a4079d3d990e13766 | 8236106faa731d19367101b59c44a847db95182d | refs/heads/master | 2021-07-09T02:13:39.432585 | 2017-10-09T00:17:26 | 2017-10-09T00:17:26 | 106,058,626 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 654 | py | from koala import Koala
from metric import Metric
from death_metric import DeathMetric
from decorators import sync, sleep_check,death_check
class MultiMetricPet(Koala):
def __init__(self):
super(MultiMetricPet,self).__init__()
self.sleep_after = 18
self.metrics['happiness'] = Metric(value=2... | [
"weiyiju@live.cn"
] | weiyiju@live.cn |
efe61a21c9f1bc3913c57d20faea0e919a860f99 | 52f7e5d5e6e68b18c64f3541166d1b197123ac0a | /foobarcodechallenge/ransomNotelc.py | 5b97ec28eaf2c2662199068f118714a706274bd1 | [] | no_license | Abhinav2903/foobarandleetccode | defe15583336c6420be249997239d3a911dadd9a | 6e8df9c570a89a21f5ab708354a792b998335b75 | refs/heads/master | 2022-10-06T14:45:55.948049 | 2020-06-09T07:15:05 | 2020-06-09T07:15:05 | 264,185,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py |
###
#print(canConstruct("",""))
#Input:
##"fihjjjjei"
#"hjibagacbhadfaefdjaeaebgi"
def canConstruct(self, ransomNote: str, magazine: str) -> bool:
mg={i : magazine.count(i) for i in set(magazine)}
rN={i : ransomNote.count(i) for i in set(ransomNote)}
#x=False
... | [
"noreply@github.com"
] | Abhinav2903.noreply@github.com |
4d0cc35c3ee94c36c5be459a31e90f2096fc7346 | defe2c5f6d405fb5f83bd0a8ab70afddb0dcfa3c | /src/clean.py | e532c30086d55da7f1ce9a3f6da4002af4547e84 | [] | no_license | WSullivan98/Capstone2_M-A_Customer_Analytics | 351746cb46956fe9a10eb25cf04fbb6c26be0ebf | 45e7f0d1417f5b214ce51af0f573c12b8c18426f | refs/heads/main | 2023-04-02T21:53:29.934609 | 2021-04-02T09:55:49 | 2021-04-02T09:55:49 | 353,041,170 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,236 | py | import pandas as pd
import numpy as np
def drop_cols(df, columns_to_drop):
df.drop(columns_to_drop, inplace=True, axis=1)
return df
def breakout_year_month(df, col):
df[col] = pd.to_datetime(df[col])
df['Year'] = df[col].dt.year
# df['Year'] = pd.to_datetime(df["Year"])
df['Month'] = df[col].d... | [
"willsullivan@wills-mbp.lan"
] | willsullivan@wills-mbp.lan |
d2c0be537b266e7b741920df715f2b942cf343bb | 3437f523434b86af02476fc0056030a67feaa9a5 | /examples/mpc_linear_svm/launcher.py | d88a1d33341b60a05cf1faa29f11c82ceea9e982 | [
"MIT"
] | permissive | facebookresearch/CrypTen | 481d0bfc94582eedef8b3510d91fd6b3ce253097 | 99c3a046b705c9d69d7a10fcab59a444ffbee39a | refs/heads/main | 2023-09-04T21:10:29.331999 | 2023-08-25T22:11:00 | 2023-08-25T22:11:00 | 202,443,088 | 1,388 | 323 | MIT | 2023-09-01T16:34:22 | 2019-08-15T00:00:31 | Python | UTF-8 | Python | false | false | 2,518 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""
To run mpc_linear_svm example in multiprocess mode:
$ python3 examples/mpc_linear_svm/launcher.py --multiprocess
... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
87155ba69b3993877098cd4c1a86686d114bf2a5 | b0d0999c972fd0845e91bd50046929f6c9814782 | /lmtool.py | a426fd95b19e69f4bf7ea67849b23a66a7fd929d | [] | no_license | julianss/lmtool | cc34e89b6a6e6355c8fe5fa94f64bc94b79d9226 | af9a1829e229223091a59106e45b6c6a15f817bf | refs/heads/master | 2021-01-10T09:32:07.662432 | 2015-10-29T17:59:25 | 2015-10-29T17:59:25 | 45,198,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,649 | py | #-*- coding: utf-8 -*-
import requests
import sys
import re
import shutil
import os
def get_dict(path):
#Mandar petición
files = {'corpus': open(path, 'rb')}
params = {'formtype': 'simple'}
url = "http://www.speech.cs.cmu.edu/cgi-bin/tools/lmtool/run"
headers = {'User-Agent': 'Mozilla/5.0 (Wi... | [
"jsolorzanos@hotmail.com"
] | jsolorzanos@hotmail.com |
5946885ec6f3939a9179fc17d81946ceffca4406 | 3bed4155835b73f954c797494118664610d41f8f | /synchro/person/templatetags/person_tags.py | b4f3c2a598a789873fede90e5792ce47f2e8b8de | [] | no_license | Vicarium/synchronl | 8ea7be956419d3c8477739e65c3e73d4a0517395 | 3e5637f07c9337273b08a645bab64cea36333e2e | refs/heads/master | 2022-12-13T13:15:34.354943 | 2020-09-15T21:00:58 | 2020-09-15T21:00:58 | 41,763,768 | 1 | 0 | null | 2022-09-20T19:47:46 | 2015-09-01T21:15:23 | JavaScript | UTF-8 | Python | false | false | 499 | py | from django import template
from person.models import PersonPage, Page
register = template.Library()
# Person feed
@register.inclusion_tag(
'person/tags/person_listing.html',
takes_context=True
)
def person_listing(context, count=2):
people = PersonPage.objects.live().order_by('?')
return {
... | [
"tylervey@gmail.com"
] | tylervey@gmail.com |
07bb559416ed8224c864fa9a2bb1f68c07498fe2 | 978d79b2c9258849afb0f05f480ef4f0dea0f450 | /src/tools.py | d2fd67c4d2fe452064eb2f7a2394418160cea6f9 | [] | no_license | So1itarius/Polus | 0d8b387193d28c7ddfc15c662dd3c8548845cc8d | ba1ad48528d7a3cd2f1f380aa1a28df7f6d5d72e | refs/heads/master | 2020-03-27T23:40:09.012011 | 2018-09-04T12:04:35 | 2018-09-04T12:04:35 | 147,337,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 975 | py | import re
from decimal import Decimal
from datetime import datetime, timedelta
import time
class Tools():
def clear(self, string):
if string is None or string.strip() == '':
return None
return re.sub(' +',' ', string.strip().replace('\n','').replace('\r','').replace('\t',''))
def t... | [
"pavellarionov93@mail.ru"
] | pavellarionov93@mail.ru |
1134ad933897057f755105484a1308dbcf08609a | 0359f88664c0952e69b45c0bf76bccd6f0862529 | /app.py | 13dbaf39b4d4fcb54442a4ac5d481ab68b8fcd10 | [] | no_license | yangz10/DesignChallenge | 5eede83ca5c6321874599159a8f280bd583b9aeb | fe78d74b6072b2e0889356492a27cbaddcb84f5a | refs/heads/master | 2020-03-19T09:05:30.437718 | 2018-06-06T17:13:03 | 2018-06-06T17:13:03 | 136,259,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | from __future__ import unicode_literals
# Load Flask Packages
from flask import Flask
from flask import render_template
from flask import request
# You need to input the interface path for this folder
rootPath = '/Users/ValarMorghulis/Projects/DesignChallenge'
flask_app = Flask(__name__,static_url_path='',root_path=... | [
"zijiang.yang.shufe@hotmail.com"
] | zijiang.yang.shufe@hotmail.com |
e891311091337dac136c802ec93fdfbf7ded80dd | da76d4ae7f4470569d1658edfb0c4cf1027bcdc3 | /app.py | ec02f62377da09739d38dfd7d4b138990490dc85 | [] | no_license | BigBina/SlackBot | e40fa77c5fd4f9ada1b7db5d548c10c01e1ac3bd | 4becff2e987ccb01d8a4999644eef6374f3b739c | refs/heads/master | 2022-12-24T09:36:05.833981 | 2022-01-25T17:52:01 | 2022-01-25T17:52:01 | 219,884,293 | 0 | 0 | null | 2022-12-11T19:58:20 | 2019-11-06T01:21:45 | Python | UTF-8 | Python | false | false | 5,972 | py | """
This program performs the following action:
1. uses /question command to send a user a create question button
2. create a dialog box to capture user question
3. Sends to public channel
Pending
1. Creating a Text file for loading static enviroment variables and tokens
2. Retrieve user ID from /question endpoint i.... | [
"emeka@Emekas-MacBook-Pro.local"
] | emeka@Emekas-MacBook-Pro.local |
5fa010236a627f1b551b305811e14892a2655e61 | 4875f7018eda5c3b2546c885cbc07e761bd21575 | /mutualfriends/core/controller.py | f4f6b32d3b0d9da2fbda50728d38dbb7079be02b | [
"MIT"
] | permissive | stanfordnlp/cocoa | 916fb787e08db894e7f0c19590e369b600c20372 | 52fb2d47a28537c7892f146a8972a75bcde4812c | refs/heads/master | 2023-08-11T00:45:49.702771 | 2022-04-19T16:34:29 | 2022-04-19T16:34:29 | 65,188,526 | 167 | 67 | MIT | 2022-10-04T17:30:31 | 2016-08-08T08:52:02 | Python | UTF-8 | Python | false | false | 884 | py | from cocoa.core.controller import Controller as BaseController
class Controller(BaseController):
def __init__(self, scenario, sessions, chat_id=None):
super(Controller, self).__init__(scenario, sessions, chat_id, allow_cross_talk=True)
self.selections = [None, None]
def event_callback(self, ev... | [
"hhe.xiy@gmail.com"
] | hhe.xiy@gmail.com |
48ebcedbb765b56bbf526654918ab08d7df871bd | 4bd565ceff9bb83dc037a34a114c9dad676b7dcb | /functions/event-vm-clone/handler.py | e4f69c072bd19609936ff8b5e7d94238a361e9e0 | [] | no_license | davlloyd/openfaas-gitops | e78e0136e8f124115a1c0d76f31bf849edf7614d | 63059d1cb9328e71a624afc2256bfeb429565475 | refs/heads/master | 2020-04-17T16:33:49.435578 | 2019-03-19T01:44:05 | 2019-03-19T01:44:05 | 166,745,708 | 3 | 1 | null | 2019-01-22T04:51:02 | 2019-01-21T03:58:13 | Python | UTF-8 | Python | false | false | 1,008 | py | import requests
import json
def read_secret(secret):
f = open('/var/openfaas/secrets/' + secret)
val = f.read()
if val is None:
raise Exception("Requires {0} secret in function namespace".format(secret))
f.close()
return val
def handle(req):
"""
Capture VM event
"""
g... | [
"davidlloyd0@gmail.com"
] | davidlloyd0@gmail.com |
e9dbfe8104201e8d10606f7234b30f1427f85c8c | c39f999cae8825afe2cdf1518d93ba31bd4c0e95 | /PYME/DSView/LUT/__init__.py | ad67a04cf4d26dc2ca675547218211dd1692f45c | [] | no_license | WilliamRo/CLipPYME | 0b69860136a9b2533f2f29fc29408d7471cb934d | 6596167034c727ad7dad0a741dd59e0e48f6852a | refs/heads/master | 2023-05-11T09:50:58.605989 | 2023-05-09T02:17:47 | 2023-05-09T02:17:47 | 60,789,741 | 3 | 1 | null | 2016-06-17T08:52:44 | 2016-06-09T16:30:14 | Python | UTF-8 | Python | false | false | 1,089 | py | #!/usr/bin/python
##################
# __init__.py
#
# Copyright David Baddeley, 2009
# d.baddeley@auckland.ac.nz
#
# 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 Licen... | [
"willi4m@zju.edu.cn"
] | willi4m@zju.edu.cn |
000b51ea813c731414b5535c3827bdb01971c385 | 98867a6625fc664d0dafa0668dc8f1d507a071e2 | /wof/woflist.py | ad4e785e55234d45cba61401596eef8702464f28 | [
"ISC"
] | permissive | tekktonic/programming | 4b81efc115108bfdfc4a70a0d3b9157c1b91c8c0 | 139959ab9934912d4c531e5ee8b1f39094a6823c | refs/heads/master | 2021-05-11T03:24:47.507478 | 2018-01-18T01:16:38 | 2018-01-18T01:16:38 | 80,262,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,843 | py | #!/usr/bin/env python
"""Copyright (c) 2012, Daniel Wilkins
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of... | [
"tekk@parlementum.net"
] | tekk@parlementum.net |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.