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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
368d3a8e796916e2e6cadcf0e634c978a7ef2699 | ae7ba9c83692cfcb39e95483d84610715930fe9e | /martinkersner/train-CRF-RNN/crfasrnn.py | 472a86f853e687aa057de49dcc8aa8957733f63d | [] | no_license | xenron/sandbox-github-clone | 364721769ea0784fb82827b07196eaa32190126b | 5eccdd8631f8bad78eb88bb89144972dbabc109c | refs/heads/master | 2022-05-01T21:18:43.101664 | 2016-09-12T12:38:32 | 2016-09-12T12:38:32 | 65,951,766 | 5 | 7 | null | null | null | null | UTF-8 | Python | false | false | 3,462 | py | #!/usr/bin/env python
# Martin Kersner, m.kersner@gmail.com
# 2016/03/03
from __future__ import print_function
caffe_root = '../caffe-crfrnn/'
import sys
sys.path.insert(0, caffe_root + 'python')
import os
import cPickle
import logging
import numpy as np
import pandas as pd
from PIL import Image as PILImage
import cS... | [
"xenron@outlook.com"
] | xenron@outlook.com |
f0ee9e58c7029957af4366c984e9861db7dfc8e2 | 6ffed3351dd608ce311a7c04d813e4cbcc283d6f | /djongo_project/files/api/serializers.py | e0c2ca3d77901c61c0d12799e99a053ec5653fad | [] | no_license | navill/ai_2-1 | bc2311dd5e8839c6bd4112965b7348252408785a | 7dd782b93286b7a407c433aa55a3b8f3f626fe89 | refs/heads/master | 2023-01-06T19:09:26.051130 | 2020-10-07T02:08:15 | 2020-10-07T02:08:15 | 290,131,119 | 0 | 0 | null | 2020-10-08T14:45:37 | 2020-08-25T06:20:46 | Python | UTF-8 | Python | false | false | 1,396 | py | from typing import *
from rest_framework import serializers
from rest_framework.reverse import reverse
from accounts.models import CommonUser
from utilities.file_utils import EncryptHandler
from files.models import CommonFile
class FileManageSerializer(serializers.ModelSerializer):
user = serializers.PrimaryKey... | [
"blue_jihoon@naver.com"
] | blue_jihoon@naver.com |
98648afb1168eb37ec156f7995980e16668f754b | 276be25104b8dd68aa45fb6bb5d0ff289dcad539 | /testing/Belinda/app2.py | 9602db1abe2ffd2f7da83ed45f26ed450721f7d9 | [] | no_license | CC196/Project-2 | 77ea2411607e84f9b75d55f1bfd0cd2b2240d553 | fd3ca26703468443fec889e0e6e2d64dfd8214eb | refs/heads/main | 2023-01-07T00:31:52.129842 | 2020-11-11T04:05:20 | 2020-11-11T04:05:20 | 302,524,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,321 | py | import numpy as np
import sqlalchemy
from sqlalchemy.ext.automap import automap_base
from sqlalchemy.orm import Session
from sqlalchemy import create_engine, func
from flask import Flask, jsonify
# from flask_cors import CORS
#################################################
# Database Setup
#######################... | [
"qinqin.zha@gmail.com"
] | qinqin.zha@gmail.com |
0ab766f09b072cf8494f45960dfbd183965b6d10 | 6b971e3401fba1498d8b4f3e1b4a46971ca6d0a9 | /examples/scroll_area_dynamic_content_layouts.py | 82af4fc9d3357c0a602b0d880ee3a28e95f86fec | [] | no_license | brent-stone/PySide6 | 1e41d76363343bfd238c60a93e11b4a9ac58d57c | 2927ddbba51b677e4a0eb502b287b8a8d9e964ad | refs/heads/main | 2023-08-14T23:09:29.669245 | 2021-09-05T00:50:41 | 2021-09-05T00:50:41 | 403,183,019 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,731 | py | from PySide6.QtWidgets import *
import sys
class MainWindow(QMainWindow):
def __init__(self):
QMainWindow.__init__(self, None)
self.setWindowTitle("My GUI")
self.resize(300, 400)
self.scroll = QScrollArea()
self.scroll.setWidgetResizable(True) # CRITICAL
self.inn... | [
"brent.jk.stone@gmail.com"
] | brent.jk.stone@gmail.com |
c7198b3709f26fddaf360a7db559d549f4583b89 | a65e5dc54092a318fc469543c3b96f6699d0c60b | /Personel/Sandesh/Python/23feb/reverse_string.py | 5666f30c06762d1e26e632121ba09969fd9dc1f1 | [] | no_license | shankar7791/MI-10-DevOps | e15bfda460ffd0afce63274f2f430445d04261fe | f0b9e8c5be7b28298eb6d3fb6badf11cd033881d | refs/heads/main | 2023-07-04T15:25:08.673757 | 2021-08-12T09:12:37 | 2021-08-12T09:12:37 | 339,016,230 | 1 | 0 | null | 2021-08-12T09:12:37 | 2021-02-15T08:50:08 | JavaScript | UTF-8 | Python | false | false | 96 | py | string = input("Plearse enter a string : ")
print("Reverse of string is : ")
print(string[::-1]) | [
"sandeshpatekar20@gmail.com"
] | sandeshpatekar20@gmail.com |
7b6b855791edd206f5db635b20e927ab22d10a3d | d670ceefd62a673d7f071ad8255ea1ced2d1be1f | /python/example/udp_client.py | 424b47e0953f4aab5a8c34f7f73840dff577d7b1 | [] | no_license | wang-jinfeng/bigdata | 2bfaecefd4aaac83c81e1dbce44cd596da717673 | b031a5fb2d06c7a2c2942a19d8c818f50ec9b8f6 | refs/heads/master | 2022-12-01T22:55:23.425409 | 2021-01-20T10:08:56 | 2021-01-20T10:08:56 | 199,104,425 | 0 | 0 | null | 2022-11-16T01:56:42 | 2019-07-27T02:18:29 | Scala | UTF-8 | Python | false | false | 294 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import socket
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
for data in [b'Michael', b'Tracy', b'Sarah']:
# 发送数据:
s.sendto(data, ('127.0.0.1', 9998))
# 接收数据:
print(s.recv(1024).decode('utf-8'))
s.close()
| [
"jinfeng.wang@mobvista.com"
] | jinfeng.wang@mobvista.com |
f5586a51b83a59377fbf0ba3e1c1f7cbfca452e3 | 0fd0495f194bc22f0322d02ebabe8add9bf5814c | /python_concept_references/excel.py | a0cd93b32a6802edc9ce767d467a37f6082774d4 | [] | no_license | WorldPierce/Automate_the_Boring_Stuff_With_Python | bd6982bddefa712598dc5e6eb4cf2a2aa87b2c1f | a0bc6ba49d92b25f4fbe8d4fdd9385f294567e4c | refs/heads/master | 2020-12-30T09:58:38.341981 | 2017-08-05T19:51:10 | 2017-08-05T19:51:10 | 99,248,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | # install openpyxl to open spreadsheets
import openpyxl, os
os.chdir('c:\\wffpi\\documents')
workbook = openpyxl.load_workbook('example.xlsx')
type(workbook)
sheet = workbook.get_sheet_by_name('Sheet1')
type(sheet)
workbook.get_sheet_names()
cell = sheet['A1'] # gets cell object for cell A 1
cell.value # gives you c... | [
"bildo316@gmail.com"
] | bildo316@gmail.com |
6849e3aa107e6582238894eb5ace39b380d9102b | 74ddb61b608bf47b1320a3a66a13c0896bff4444 | /samples/openapi3/client/petstore/python-experimental/petstore_api/models/whale.py | f39c28174404f4f3c268c11125743f22f796eebc | [
"Apache-2.0"
] | permissive | ShakedH/openapi-generator | 616f873dc29edf49e44c4685ebb7f46184ce62fd | 07647b1a310410a28c95f8b4a9661c0ddeaf1db8 | refs/heads/master | 2022-09-08T07:40:44.550163 | 2020-05-28T13:43:38 | 2020-05-28T13:43:38 | 267,639,665 | 0 | 0 | Apache-2.0 | 2020-05-28T16:26:44 | 2020-05-28T16:26:44 | null | UTF-8 | Python | false | false | 6,430 | py | # coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
"""
... | [
"noreply@github.com"
] | ShakedH.noreply@github.com |
8f948f5da2515448b700d72a799435448074270c | 7eeb873b01b1da3401d5b8a802438bcc0e22de22 | /61_Sets/main.py | 447df8aecab79571c7d8207257ce7002d3b8894b | [] | no_license | Bhushan2581/Python-tuts | ed5f1606f23aa1d4370d4ed2e4171c25cfc1f206 | 4f2acc839874fcbc3407ba1e0dc6e2d44d6e6179 | refs/heads/master | 2022-07-29T22:38:17.831404 | 2020-05-17T03:48:24 | 2020-05-17T03:48:24 | 264,577,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | pythonlist = ["C", "Python", "Java"]
print(pythonlist[1])
pythonlist = ["C", "Python", "Java"]
print(pythonlist[-1])
pythonlist = ["java", "C", "C++", "PHP", "HTML", "Ruby", "C#"]
print(pythonlist[2:5])
pythonlist = ["java", "C", "C++", "PHP", "HTML", "Ruby", "C#"]
pythonlist[1] = "Laravel"
print(pythonlist)
pytho... | [
"noreply@github.com"
] | Bhushan2581.noreply@github.com |
3e2af68956ab395d7d6c3ee1a4238c837c4b51cc | b2472967910be9c12576f0f97d33bca0576a8667 | /atcoder-old/2019/0901_abc139/d.py | 0f4f619ee2e61c90c3c79b0e44b9d3a7b51c02c3 | [] | no_license | ykmc/contest | 85c3d1231e553d37d1235e1b0fd2c6c23f06c1e4 | 69a73da70f7f987eb3e85da503ea6da0744544bd | refs/heads/master | 2020-09-01T22:56:10.444803 | 2020-07-14T11:36:43 | 2020-07-14T11:36:43 | 217,307,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | # Python3 (3.4.3)
import sys
input = sys.stdin.readline
# -------------------------------------------------------------
# function
# -------------------------------------------------------------
# -------------------------------------------------------------
# main
# -------------------------------------------------... | [
"34961813+ykmc@users.noreply.github.com"
] | 34961813+ykmc@users.noreply.github.com |
12770caef27bc3fef998f1a1f8d9898aefccdd3f | aee126bb9fae134662e0ca2eab4c8d7483ab3ec6 | /server/flaskApp/templates/app.py | ba8c62f877a5dff068fa88fd4b7552ad2099ed36 | [] | no_license | collier-watkins/DeafDoorbell | 3479cc5da661b10c53981a30775ec28cfcb1524e | c8d8601a159a1469ccec3c9884012dc5d0b872f7 | refs/heads/master | 2020-05-04T01:09:32.807947 | 2019-05-27T01:41:53 | 2019-05-27T01:41:53 | 178,899,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,767 | py | from flask import Flask, render_template, url_for, flash, request
from forms import MessageForm
from wtforms.widgets import html_params, HTMLString
from flask_socketio import SocketIO
#import subprocess
app = Flask(__name__)
app.config['SECRET_KEY'] = '3985723043u208uj23022039rue'
socketio = SocketIO(app)
client... | [
"collier.watkins.chc@gmail.com"
] | collier.watkins.chc@gmail.com |
71ca8542c4f7c61d9328341ec14b583e4d30c82d | e4920c4fe4290bde524e0c141189f80fddfe44b7 | /info/migrations/0023_remove_message_recaptcha.py | 85b4c72c01e9b2dc98df1f027f92d51e1b879720 | [] | no_license | ShahadatShuvo/Django_portfolio | 42af2b0aa686bff08730cdb105f95d6b63adb620 | 795ed7cbb6444245af08582ea63f57a0f32679a0 | refs/heads/master | 2023-05-30T01:43:50.409584 | 2021-06-14T08:29:18 | 2021-06-14T08:29:18 | 376,372,632 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | # Generated by Django 2.2.16 on 2020-12-22 17:04
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('info', '0022_auto_20201222_1655'),
]
operations = [
migrations.RemoveField(
model_name='message',
name='recaptcha',
... | [
"shahadat@baiust.edu.bd"
] | shahadat@baiust.edu.bd |
d2d223dd5e9968b7af2c5e4232ccc82f887bf845 | d3709ef033ddf881449c515936b448370a2625ee | /leetcode/058.Length of Last Word/common.py | 58b6c30db0277230261076d8bd602b61eac1e818 | [] | no_license | xjhuang1993/PythonExercise | e7d7b12497986798184fa78a4e44764961237a56 | 444db0876295ee2dca2bd2c6103eb5fca4d643be | refs/heads/master | 2020-03-19T01:03:26.988279 | 2018-06-06T01:53:35 | 2018-06-06T01:53:35 | 135,518,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | """
Accepted
"""
def func(s):
if not s:
return 0
result_list = s.strip().split(" ")
result = len(result_list[-1])
return result
if __name__ == "__main__":
s = "Hello World"
print(func(s))
| [
"398478432@qq.com"
] | 398478432@qq.com |
b483194ef410722c853543abfba98d1e36b2fa5b | 1c2ae618653041b4dc739ad550f1749f2f5eeb81 | /James-Script/Discovery/smtp-enum.py | cd88f4eb98a9ea6388fd0b7210f6882883b2a028 | [] | no_license | ubriggsl/OSEC-PWK | b50a5b1c8902fafb217d6766a960de90008d0af4 | 64c2dc943fde87457b835c98c6d409689d20bf3c | refs/heads/master | 2021-01-20T00:08:29.484029 | 2017-05-15T02:33:14 | 2017-05-15T02:33:14 | 89,084,644 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | #!/usr/bin/python
import argparse
import socket
import sys
a = argparse.ArgumentParser()
a.add_argument('user')
a.add_argument('target')
a.add_argument('-p',dest='port',default='25')
args = a.parse_args()
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
try:
connect = s.connect((args.target,int(args.port)))
... | [
"james@briggsconsulting.com"
] | james@briggsconsulting.com |
4e99a7acd3bcf8e67dc4a408c2fc47b15569d91a | 72f59717e1e878005e31281c0fd09a4cf0c2f69b | /github_2fa.py | d85ef49c971ea1ac160bd894b11286db624b60cc | [] | no_license | daguy666/api | 7627daf8f195d97119277c9e3fb219f1e93aeda7 | c2097813564b63d4034d2f64d0ae3aeea9a220b8 | refs/heads/master | 2020-04-21T11:55:46.153919 | 2014-11-06T19:34:04 | 2014-11-06T19:34:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 893 | py | #!/usr/bin/env python
#
#github_2fa.py
#This will detect users who are in a specified
#org that have 2fa disabled
############################################
import json
import urllib2
import getpass
import sys
pw = getpass.getpass("Please enter a token: ")
org = raw_input("Org to search: ")
org_url = "https://api.g... | [
"jpistonejr@gmail.com"
] | jpistonejr@gmail.com |
9e7202b2d72c068da23e38e2765dd64abbe128ce | 52953b88fd65e64d13c0b8ebeae5d468305c01ea | /schema.py | cc90f9184c3d88b61fbb852d2641f19a86a0a955 | [] | no_license | antdood/EmojiCounter | ed77a77d032bda93e4f4cffc1145a5f74d90d7d3 | e3aace43cf7da57eb57f9603ab9c8d2c28762310 | refs/heads/main | 2023-03-28T16:26:11.846775 | 2021-04-10T23:59:08 | 2021-04-10T23:59:08 | 350,259,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | CREATE TABLE emoji_usages
(
channel BIGINT UNSIGNED,
user BIGINT UNSIGNED,
emoji VARCHAR(255),
type ENUM('original', 'custom'),
time TIMESTAMP
);
| [
"antawck@gmail.com"
] | antawck@gmail.com |
94bb8b2a0fb2fd8136b0743980291df09b163012 | 850001831b1fcdd4d27e328b356fc34909ca2917 | /tests/test_map.py | 77237924f7d6561097ffea685bfbe60e67c465bc | [
"BSD-3-Clause"
] | permissive | yidiq7/pathos | b337353ccfe447866c46a4a784a7908c2f3fe31e | 7e4fef911dc0283e245189df4683eea65bfd90f0 | refs/heads/master | 2022-08-24T08:43:34.009115 | 2020-05-27T12:18:21 | 2020-05-27T12:18:21 | 267,310,390 | 0 | 0 | NOASSERTION | 2020-05-27T12:14:50 | 2020-05-27T12:14:47 | null | UTF-8 | Python | false | false | 2,170 | py | #!/usr/bin/env python
#
# Author: Mike McKerns (mmckerns @caltech and @uqfoundation)
# Copyright (c) 1997-2016 California Institute of Technology.
# Copyright (c) 2016-2020 The Uncertainty Quantification Foundation.
# License: 3-clause BSD. The full license text is available at:
# - https://github.com/uqfoundation/pa... | [
"mmckerns@8bfda07e-5b16-0410-ab1d-fd04ec2748df"
] | mmckerns@8bfda07e-5b16-0410-ab1d-fd04ec2748df |
f76b563996fa4bd26228b5de39272a5ff2b2f5bf | 7407b5a2bfad54bc9767c70c47d205164ffa337f | /models/db1.py | 28d949a5077a8f9c4c8eccedeebe92588ac8d9c0 | [
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | abdulhalim-cu/motor-control-system | 9397bb191fa22fceb66e88ccdb4ea80de774eb33 | 70d276d63163269c378620a85d46db8374b1a836 | refs/heads/master | 2021-01-01T18:31:42.750124 | 2017-08-01T01:51:27 | 2017-08-01T01:51:27 | 98,357,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,416 | py | # -*- coding: utf-8 -*-
db.define_table('Device',
Field('device_id', 'string'),
Field('device_name', 'string'),
Field('model', 'string'),
Field('location', 'string')
)
db.Device.device_id.requires = [IS_NOT_EMPTY(),IS_NOT_IN_DB(db, 'Device... | [
"abdulhalim.cu10@gmail.com"
] | abdulhalim.cu10@gmail.com |
413948050ddee82de99cfae896398e6cdd3de69b | b252c3b7a78b37f8da3d5edca023e2bc38b368d4 | /python_spider/learn_urllib.py | f35177e5ca0fc7636e025d24da4b8e810ec17bae | [] | no_license | xianke5200/Python_spider_test | 868447e48ae136314ba08a7c06440ba27951b201 | 7674ff2b4bcdc35248718d02245e968a5ca61add | refs/heads/master | 2021-12-16T04:18:45.263926 | 2021-12-13T06:01:03 | 2021-12-13T06:01:03 | 234,503,928 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 822 | py | import urllib
from urllib import request,parse
import ssl
#response = urllib.request.urlopen('http://192.168.1.153/bugfree/index.php/site/login')
#print(response.read().decode('utf-8'))
#context = ssl._create_unverified_context()
url = 'http://192.168.1.153/bugfree/index.php/site/login'
headers = {
'User-Agent':'... | [
"1833907216@qq.com"
] | 1833907216@qq.com |
8c1baaf7bc0b2f574388dc5f64e36e1918a8a0b1 | 15b3d2c324748b2a9a96813fd7e0919cc4e249ae | /dashboard/dashboard/urls.py | 3645e421490b14c597b18f35ad34efbc033bda4d | [] | no_license | pzjc/dashboard-django | c1fb6fd7e8fa56ec10d714c0ea1607544f31f5fa | bb0dc34fb76cc768c9ef0d5f651a4112ddea73ec | refs/heads/master | 2021-07-01T12:09:53.631999 | 2017-09-22T20:29:34 | 2017-09-22T20:29:34 | 104,480,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | """dashboard 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')
Class-... | [
"jz762@cornell.edu"
] | jz762@cornell.edu |
039ddde1464386c3829683361c65b4dcf614072b | fe5eb98a1fa9a1bd194e7d859fddc9fc62ed842e | /modified_2/run_both_multi.py | a58183743d8e5d737bc79c5f36c4bae074557f77 | [] | no_license | TaehoLi/Capstone | 862d27a819c455fcfa8da598a976d3bf1e9c9570 | 9329d7910c24d32b04598f373899819694f856e4 | refs/heads/master | 2020-04-18T08:11:52.207623 | 2019-12-26T12:04:32 | 2019-12-26T12:04:32 | 167,387,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,279 | py | # -*- coding: utf-8 -*-
import argparse
import logging
import time
import cv2
import numpy as np
import matplotlib.pyplot as plt
#matplotlib auto
from tf_pose.estimator import TfPoseEstimator
from tf_pose.networks import get_graph_path, model_wh
from datetime import datetime
logger1 = logging.getLogger('TfPoseEst... | [
"noreply@github.com"
] | TaehoLi.noreply@github.com |
1c81bdca5dc92eada6417d4615dab19cc148a555 | 1f61e06271f8e9582669686457c40336235d1eee | /Module 1/Chapter 9/edge_detector.py | a7221300b04f62e04e673c71daddfa906d6eaed5 | [
"MIT"
] | permissive | PacktPublishing/Python-Real-World-Machine-Learning | f1747fdd73937544a243059ac7476bfbfac6d113 | 669e793cf80c35b6d2028f74bff2cd87b9458791 | refs/heads/master | 2023-04-13T11:48:13.459731 | 2023-01-30T09:21:10 | 2023-01-30T09:21:10 | 70,907,139 | 108 | 111 | MIT | 2023-04-04T14:38:41 | 2016-10-14T12:13:47 | Jupyter Notebook | UTF-8 | Python | false | false | 598 | py | import sys
import cv2
import numpy as np
# Load the input image -- 'chair.jpg'
# Convert it to grayscale
input_file = sys.argv[1]
img = cv2.imread(input_file, cv2.IMREAD_GRAYSCALE)
h, w = img.shape
sobel_horizontal = cv2.Sobel(img, cv2.CV_64F, 1, 0, ksize=5)
sobel_vertical = cv2.Sobel(img, cv2.CV_64F, 0, 1, ksize=5... | [
"eganl@packtpub.com"
] | eganl@packtpub.com |
3e8640eb434a281e1b988d45b8387af02a0249b2 | a3bdf69d3c5b8e422aae70eb21f3ae5f776e2ff9 | /utils/excel_utils.py | 5db791dbd899c620a96d16e483a8feaaa2a2cb18 | [] | no_license | cyssxt/data-sym-scrapy | 6ce9d8d60869f89dc5f892984c113fdfeb52aefb | 5fd92a42ec8a59fead315e2c63fc4d750de24c68 | refs/heads/master | 2021-08-23T18:41:02.036963 | 2017-12-06T02:47:39 | 2017-12-06T02:47:39 | 111,883,444 | 0 | 0 | null | 2017-11-24T06:22:27 | 2017-11-24T06:22:27 | null | UTF-8 | Python | false | false | 2,437 | py | import xlrd
from xlutils3.copy import copy
class ExcelParse(object):
"""
path:excel路径
sheet:excel中的sheet下表
head_index:excel标题头所在的行数
callback:遍历每一行的回掉
offset:内容体遍历的起始位置
limit:遍历的总记录数
descName:最终生成的excel
"""
def __init__(self, path, sheet=0, head_index... | [
"cyssxt@163.com"
] | cyssxt@163.com |
59f182eac7ff61fa54275583dd65186678b519c5 | ef34e68712fb4aa9a1320c4e1e370a24de34fcb4 | /nlu/utils/environment/authentication.py | 31b46bde24d6ece7e8670f0fe028b52bcba4a11a | [
"Apache-2.0"
] | permissive | milyiyo/nlu | dd656e77eedf2c831482edfd4ec59490b25d3954 | d209ed11c6a84639c268f08435552248391c5573 | refs/heads/master | 2023-08-16T00:03:10.326392 | 2021-10-16T03:05:49 | 2021-10-16T03:05:49 | 414,223,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,823 | py | from nlu.utils.environment.env_utils import *
def install_and_import_healthcare(JSL_SECRET):
""" Install Spark-NLP-Healthcare PyPI Package in current enviroment if it cannot be imported and liscense provided"""
import importlib
try:
importlib.import_module('sparknlp_jsl')
except ImportError:
... | [
"christian.kasim.loan@gmail.com"
] | christian.kasim.loan@gmail.com |
97a9d2f3330873200fc4325d845a1d95fc6e784d | 6a1fad01f41de94587c03c3904eaf087610a7422 | /train.py | 7499035720d29fae46c0d72b467b0cdca3c9fc9f | [] | no_license | acids-ircam/ddsp_pytorch | 1972c98f3d709d97df3606ef7f55cd724ac40c76 | aaaf17d939ffbf7e6e4c848994204d07d62721a1 | refs/heads/master | 2021-12-12T00:48:31.743973 | 2021-09-07T07:46:51 | 2021-09-07T07:46:51 | 213,240,778 | 381 | 49 | null | 2021-11-26T21:18:46 | 2019-10-06T20:42:51 | C | UTF-8 | Python | false | false | 3,338 | py | import torch
from torch.utils.tensorboard import SummaryWriter
import yaml
from ddsp.model import DDSP
from effortless_config import Config
from os import path
from preprocess import Dataset
from tqdm import tqdm
from ddsp.core import multiscale_fft, safe_log, mean_std_loudness
import soundfile as sf
from einops import... | [
"caillon@ircam.fr"
] | caillon@ircam.fr |
e8720a42e2d433fa822311add8bf6a44faced378 | bda32ee120fd07499fad1e5e973249ac15861200 | /ValidSudoku.py | 5996590c78e0207e3f98330665a34507963f42cf | [] | no_license | congyingTech/leetcode | 5f76d11a283115e46fdf4f295cf0279f53e692a1 | 35ff5db1ee6abcb3cf1144a9bf5420758e31e6ec | refs/heads/master | 2021-01-21T04:41:20.195451 | 2016-06-16T07:03:09 | 2016-06-16T07:03:09 | 54,643,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,772 | py | #-*- coding:utf-8 -*-
'''
Created on Mar 30, 2016
@author: congyingw
'''
#Sudoku的要求有三条:每行的数只出现一次,每列的数只出现一次,每个九宫格数只出现一次。
#所以我们要验证这三个条件逐个遍历一遍。
class Solution:
def isValidSudoku(self, board):
for i in range(0, 9):
#第i行(固定的行)j列 or 第j行i列(固定的列)
if not self.isValidList([board[i][j] ... | [
"congyingTech@163.com"
] | congyingTech@163.com |
e93d618ef2a5f5ad993261c09a6a1b7b73293570 | 0fa1d839550f4bfb1d9d0860915770071422f2cd | /parrot.py | 51dd4bbc1ed740272deb7e105a164b4e9cb6f887 | [] | no_license | crystalDf/Python-Crash-Course-2nd-Edition-Chapter-07-Input | b996d5b5bfbf20be039ac2e2314e51d6a51545a1 | a8838fe405e4ce70e827a6ace98f3502b3a57f45 | refs/heads/master | 2023-06-10T08:12:07.675473 | 2021-06-20T14:45:01 | 2021-06-20T14:45:01 | 378,668,714 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | message = input("Tell me something, and I will repeat it back to you: ")
print(message)
prompt = "\nTell me something, and I will repeat it back to you:"
prompt += "\nEnter 'quit' to end the program. "
message = ""
while message != 'quit':
message = input(prompt)
if message != 'quit':
print(message)
... | [
"chendong333@gmail.com"
] | chendong333@gmail.com |
fa459c1d43ee6d8f2cdbb69fcdada36ad5305039 | ee239ee6ead1f612fde7bec99be27c02afd11dd4 | /sentimentanalyzer.py | 8993e1ccb851c52fd63098f05ac298bcc7c21c68 | [] | no_license | vaitheeswarang/SentimentAnalyzer | fc5a597b6cf37e4b8726f4a559f46ce8fd4751e8 | 426b0e06a33a52b333a1631b66151bdde42eb715 | refs/heads/master | 2020-03-27T21:46:03.343604 | 2018-12-07T08:38:00 | 2018-12-07T08:38:00 | 147,174,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,898 | py | from nltk.corpus import stopwords
from nltk.tokenize import word_tokenize
print("*"*50)
#textt="the touch is not bad. the product is not a bad. i love this mobile fisrt. the product is awesome. it is easy to use. cost is too high to buy. camera is not good. comparing with other the quality is very bad. bad mobile.... | [
"noreply@github.com"
] | vaitheeswarang.noreply@github.com |
37ed82c45df03e22c5d1a9edd666017218ee89f1 | c9500ad778b8521aaa85cb7fe3239989efaa4799 | /plugins/zscaler/icon_zscaler/util/helpers.py | 3a839a924b1fefd1411e0082e08af7540ce22557 | [
"MIT"
] | permissive | rapid7/insightconnect-plugins | 5a6465e720f114d71b1a82fe14e42e94db104a0b | 718d15ca36c57231bb89df0aebc53d0210db400c | refs/heads/master | 2023-09-01T09:21:27.143980 | 2023-08-31T10:25:36 | 2023-08-31T10:25:36 | 190,435,635 | 61 | 60 | MIT | 2023-09-14T08:47:37 | 2019-06-05T17:05:12 | Python | UTF-8 | Python | false | false | 4,440 | py | from insightconnect_plugin_runtime.exceptions import PluginException
from re import sub, match, split
from typing import Union, Any, Dict
from icon_zscaler.util.constants import Assistance, Cause
CAMEL_CASE_REGEX = r"\b[a-z0-9]+([A-Z][a-z]+[0-9]*)*\b"
PASCAL_CASE_REGEX = r"\b[A-Z][a-z]+[0-9]*([A-Z][a-z]+[0-9]*)*\b"
CA... | [
"noreply@github.com"
] | rapid7.noreply@github.com |
7bfbdeac3b9d9dcaf8e91951da6cda2e2c7d6ce8 | 7daf78ed6ddc52c46b7d83db865cb6bd57a451ac | /spi_test.py | bac96a76c0db60104f1b5eb8cbb731cffd3ffb3f | [] | no_license | bitbytebitco/radpc_ai | 684b038fb14d117afec189e4871160fb021d2186 | cacf80efa37acd6bf563ec27697b3fd594ed4720 | refs/heads/master | 2023-06-29T01:50:43.178256 | 2021-08-05T02:59:21 | 2021-08-05T02:59:21 | 365,015,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,423 | py | import os
import spidev
import time
import RPi.GPIO as GPIO
# GPIO init
GPIO.setmode(GPIO.BCM)
GPIO.setup(23,GPIO.IN, pull_up_down=GPIO.PUD_UP)
# SPI init
spi_bus =0
spi_device = 0
spi = spidev.SpiDev()
spi.open(spi_bus, spi_device)
#spi.max_speed_hz = 4000
#spi.max_speed_hz = 151000
spi.max_speed_hz = 145000 ... | [
"bitbytebitco@gmail.com"
] | bitbytebitco@gmail.com |
74b1acca6c71d5a2a04373300690f2d2ca2e9bbd | 1bd47bb8cffa81a8e7d578d3826a420e9750e161 | /main.py | 86049ea3a70e311a4e73e8ccc283d6a0a5982466 | [] | no_license | Damir10165/TableAndTree | 24d8a5ef0afa4938ee05d833351d74d624ebe7aa | 94fb3933066570c0ded7db5670ca1cc8abf22428 | refs/heads/main | 2023-08-17T10:58:39.704553 | 2021-07-16T12:43:26 | 2021-07-16T12:43:26 | 386,104,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,339 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
from PyQt5.QtWidgets import (QApplication, QWidget, QToolBar, QPushButton,
QMainWindow, QAction, QTextEdit, QGridLayout,
QTableView)
from PyQt5 import QtSql
import random
import sys
import os
DATABASE_N... | [
"noreply@github.com"
] | Damir10165.noreply@github.com |
e3cb34e969e398b08d9c43935908f7b26d4014f0 | 000a4b227d970cdc6c8db192f4437698cb782721 | /python/helpers/typeshed/stubs/stripe/stripe/api_resources/charge.pyi | 2e3467e67bc5e6b90113fd9988cf281a375bde2c | [
"Apache-2.0",
"MIT"
] | permissive | trinhanhngoc/intellij-community | 2eb2f66a2a3a9456e7a0c5e7be1eaba03c38815d | 1d4a962cfda308a73e0a7ef75186aaa4b15d1e17 | refs/heads/master | 2022-11-03T21:50:47.859675 | 2022-10-19T16:39:57 | 2022-10-19T23:25:35 | 205,765,945 | 1 | 0 | Apache-2.0 | 2019-09-02T02:55:15 | 2019-09-02T02:55:15 | null | UTF-8 | Python | false | false | 851 | pyi | from typing import Any
from stripe import api_requestor as api_requestor
from stripe.api_resources.abstract import (
CreateableAPIResource as CreateableAPIResource,
ListableAPIResource as ListableAPIResource,
UpdateableAPIResource as UpdateableAPIResource,
custom_method as custom_method,
)
class Charg... | [
"intellij-monorepo-bot-no-reply@jetbrains.com"
] | intellij-monorepo-bot-no-reply@jetbrains.com |
ecff5efbd76a2dde9d681d2784b800b6663f9127 | b7c3511bf4293c12510f0eab72f6d2bffd05be19 | /web_chat/chat/tests.py | 4b658e6522c77c5c9eb85d331569b99c4f7bd68e | [] | no_license | vramos1/backend-arquitectura | ab7e8831f899a038902c83c3bef89b202c432abb | 159bad5b1e454328df6981d8935c909a8204e36d | refs/heads/master | 2023-01-29T21:14:50.188507 | 2020-11-23T21:04:13 | 2020-11-23T21:04:13 | 310,602,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,265 | py | from django.test import TestCase
from web_chat.chat.models import Room, Chat, Apply
from django.contrib.auth.models import User
# Create your tests here.
class ChatTest(TestCase):
def setUp(self):
self.user = User.objects.create(
is_superuser=False, password="test", username="test"
)
... | [
"vramos1@uc.cl"
] | vramos1@uc.cl |
5a42411bbb622d7b2f01c712aad314bdfc8d9c6f | 953b15ef3ff7d2a1b12d86dbf13f15af7eb8aa4a | /a3c_training_thread.py | a050c771ade48fcefdb98c1de9d1693718ecc548 | [
"Apache-2.0"
] | permissive | MightyChaos/async_transfer_rl | 2fe213dda375f3df165dbe277aa656319997eb34 | 000601773d2e226848a49eb71cfc9d89cc6df9bb | refs/heads/master | 2021-01-20T04:47:55.741247 | 2017-04-29T03:16:10 | 2017-04-29T03:16:10 | 89,735,265 | 0 | 0 | null | 2017-04-28T18:46:26 | 2017-04-28T18:46:26 | null | UTF-8 | Python | false | false | 6,143 | py | # -*- coding: utf-8 -*-
import tensorflow as tf
import numpy as np
import random
import time
import sys
from game_state import GameState
from game_state import ACTION_SIZE
from game_ac_network import GameACFFNetwork, GameACLSTMNetwork
from constants import GAMMA
from constants import LOCAL_T_MAX
from constants import... | [
"yangluonaluna@gmail.com"
] | yangluonaluna@gmail.com |
ca93607b79207cc78004efd8c339bc2ab7e9d567 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5670465267826688_0/Python/yagao0o/dijkstra.py | 96ca68f0bdc39cf5943ae362656074c360209c95 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,207 | py | # author: yagoa0o
# date : 2015/04/11
class Solution():
multi_square = {'1': {'1': '1', 'i': 'i', 'j': 'j', 'k': 'k'},
'i': {'1': 'i', 'i': '-1', 'j': 'k', 'k': '-j'},
'j': {'1': 'j', 'i': '-k', 'j': '-1', 'k': 'i'},
'k': {'1': 'k', 'i': 'j', 'j': ... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
7f3bf8c6c37f51045aadb727540f9a198debe4ce | a08670c23f1a8fed994fb781df93ce87a1ffc422 | /web/base/__init__.py | 658f51a797e95a51bb9111273933bf7998f7c2a2 | [] | no_license | roenfun/selenium-demo | 962d53a459756716dea5bc81bdbc82105f619f61 | 7d5e46d8472cc22617d00df17f0fd272df19dff3 | refs/heads/master | 2023-03-21T13:27:49.707425 | 2021-03-15T03:23:37 | 2021-03-15T03:23:37 | 266,483,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | # @File : __init__.py.py
# @Author : Chad
# @Time : 2020-05-23
# coding:utf-8
| [
"Chad.long@vipshop.com"
] | Chad.long@vipshop.com |
0bea2a6533e2180f7d91076749f8da9dd71d235f | 774df3c9bbb64889ae97b13363baf49709ad3f6c | /menwith/network.py | 62d8a64f388a8a7199a6d71ab04d2a051c1d36ff | [] | no_license | gmr/menwith | 39095b8730d7ae87cd3d679bb65f3c6f1e775635 | e03f51ccfa8db4db036f2f6e0fa640c579f1e150 | refs/heads/master | 2020-04-26T22:21:24.168247 | 2011-11-28T04:03:21 | 2011-11-28T04:03:21 | 173,705 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,961 | py | """
Main PCAP interface for listening on the NIC for data
"""
import logging
import pcap
from socket import ntohs, IPPROTO_TCP, IPPROTO_UDP
import struct
from . import memcache
# Ethernet constants
_ETHERTYPE_IPV4 = '\x08\x00'
# IPv4 Constants
_IPV4_BASE_HEADER_SIZE = 20 # Default IPv4 header size
_IPV4_OPTIONS_OFF... | [
"gmr@myyearbook.com"
] | gmr@myyearbook.com |
b1d967e610d4020d110343b3a61c6a12bb491305 | 709522eb6c9730f2095df3d0f89b02b658e93e18 | /run.py | 6d7679064d87dd38d491dcc181560356ff89813e | [] | no_license | haracewiat/MultiplayerGame | 1bb549c4bae6655ece3f5c2386d33a2a042ac7d7 | 4896626da59c280a7a8ae22026cd33dd0818095f | refs/heads/master | 2023-07-20T02:12:27.227911 | 2020-03-11T17:41:54 | 2020-03-11T17:41:54 | 246,146,985 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | from game import Game
if __name__ == "__main__":
print("run")
g = game.Game()
g.run()
| [
"b.haracewiat@gmail.com"
] | b.haracewiat@gmail.com |
d8827844e462a3b2f1b7a4bfea42cf1fa45b6f4e | a080b5cb90d0e274b5a7aec3adb9bfdf4d5b8cd5 | /jpgtopng.py | c01fa5b2f05dab9aa03590a67748832f4389f50d | [] | no_license | nickcodes-py/JPGtoPNG-Converter | df2025855c87558c054de4dee7c73885d973b77a | c521cdba80008a2e0d3e0572b1bb7360020642b2 | refs/heads/master | 2020-12-04T20:55:37.693165 | 2020-01-05T10:18:14 | 2020-01-05T10:18:14 | 231,899,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | import sys
import os
from PIL import Image, ImageFilter
#Grab Current and New Folder
image_folder = sys.argv[1]
output_folder = sys.argv[2]
#Check if New exist, or create
if not os.path.exists(output_folder):
os.makedirs(output_folder)
#Loop through folder, convert images to PNG
for filename in os.listdir(image_... | [
"nikunj.dutt@outlook.com"
] | nikunj.dutt@outlook.com |
224730f81d5c198b3bf51777919019a771f07a63 | 71c47b4c8f35279c1f875c499ecae3c2eaf65432 | /Module_1/homework/100NSqrt.py | 5976441d21bd1b5d6e2749fc5d97916fb9033217 | [] | no_license | isemiguk/Python_Coursera | e53ead7ed966a0b11a9c43667caa00f9c4504328 | ce7d5904a91dfadd57d9a2bb4fb413d4c23c7a3c | refs/heads/master | 2022-11-06T13:56:50.926356 | 2020-07-01T19:12:22 | 2020-07-01T19:12:22 | 266,181,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36 | py | a = input()
print(int(a * 100)**2)
| [
"igorsemiguk@gmail.com"
] | igorsemiguk@gmail.com |
ce95dbf6fcaaaf9619bb3af852fd822f2f11193d | aa74d22568d80866488a321026c369a12346484f | /microblog/app/venv/bin/flask | ffb649ae118d9a9f02968aa474a905ff4e264b54 | [] | no_license | nptravis/python-studies | 0ca5e3d804beb2b9b7e3484606753324c9151bab | d649ac614bf9efdce1cc50e015f9252d1eba371c | refs/heads/master | 2021-09-03T13:18:27.621292 | 2018-01-09T09:43:39 | 2018-01-09T09:43:39 | 114,952,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | #!/Users/Nic/Documents/projects/cs50/python/microblog/app/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from flask.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"nptravis@yahoo.com"
] | nptravis@yahoo.com | |
9148b220bb576626f27c0f2cfb3cb25ebbcd7139 | ad13583673551857615498b9605d9dcab63bb2c3 | /output/models/ms_data/datatypes/facets/byte/byte_max_inclusive001_xsd/__init__.py | 0444a6966ba5abae09b921e38485930982799bb6 | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 173 | py | from output.models.ms_data.datatypes.facets.byte.byte_max_inclusive001_xsd.byte_max_inclusive001 import (
FooType,
Test,
)
__all__ = [
"FooType",
"Test",
]
| [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
ec4b7992e11399e05868bd6cd613c86cd686efa1 | bf02d48baebee89a95b2c637b6d017ca300039ef | /tictactoe/settings.py | f9e2d7ba7de9bf3f09d6d21562d2bce0679fe770 | [] | no_license | maheshwars/Tic-Tac-Toe | c4014b9d0c833e4d0648066f319b42a60e6d589e | b2ea1c5f0b84f8fbd5e360e323d4030e8fc82589 | refs/heads/master | 2022-12-09T12:41:50.696273 | 2020-09-09T21:30:27 | 2020-09-09T21:30:27 | 294,225,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,509 | py | """
Django settings for tictactoe project.
Generated by 'django-admin startproject' using Django 3.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
... | [
"noreply@github.com"
] | maheshwars.noreply@github.com |
8c891499686c46192eb6e8fdbff3d1ff45edece6 | d40b1042ab0c3506a35c65889f0df73405fb66b0 | /namespaces.py | 639b3bac194dbcc687399605a172bbb5c8b7d97f | [] | no_license | juanique/ucursos-rdf | 18a7e92789eb5f035e798d12128458bd6133af57 | 93c6c78876b99ecb253e0e98144e11ec39d9903e | refs/heads/master | 2020-05-31T06:24:25.110260 | 2012-05-03T03:01:52 | 2012-05-03T03:01:52 | 4,177,485 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | from rdflib import Namespace
NFO = Namespace('http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#')
NIE = Namespace('http://www.semanticdesktop.org/ontologies/2007/01/19/nie#')
RDFS = Namespace('http://www.w3.org/2000/01/rdf-schema#')
RDF = Namespace('http://www.w3.org/1999/02/22-rdf-syntax-ns#')
CLIP = Namespac... | [
"juanique@ubuntu.(none)"
] | juanique@ubuntu.(none) |
61c9e42c66d7a8db5e32e7b93993184e39839ae7 | 69310bc4a04d4f9cbbb27a4c322c5d7d8fb3d0c3 | /Tests/test_PopulationSample.py | bd4a0e308ae4df676de830ec8d97e519ca0cd2d5 | [] | no_license | jaylakhani14/statcalc | 15ea52e787cb75cd767d6e3564fcefd7d06d7536 | e28a233c06ff236b157494d2df31dea15c8dc328 | refs/heads/master | 2023-03-31T19:39:41.400843 | 2021-03-23T01:16:08 | 2021-03-23T01:16:08 | 344,951,449 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 676 | py | import unittest
import numpy as np
import scipy
from PopulationSampling.simpleRandom import Sample
from PopulationSampling.confidence import Confidence
class MyTestCase(unittest.TestCase):
def test_simple_random_sample(self):
mylist = ["apple", "banana", "cherry"]
Sample.sample(mylist, 2)
d... | [
"fjt7@njit.edu"
] | fjt7@njit.edu |
9b3c43e2159eccae5ed0ba80f67a626831e04c62 | 722d8f2aa69095dbdbe32ecdeebb4bcf20e2ea3c | /tests/test_issue10_17.py | e54ddd56630de1e5e811d12e7ec3f3da0d804333 | [] | permissive | clach04/pyqrcodeNG | 1bad85bea9c2a5ca9bcda8849e35af51f8e394f3 | 8033a915eca1946537002b8b271ea2cddb4e004b | refs/heads/master | 2022-04-23T00:18:36.478138 | 2020-01-21T22:28:44 | 2020-01-21T22:28:44 | 259,402,644 | 0 | 0 | BSD-3-Clause | 2020-04-27T17:24:36 | 2020-04-27T17:24:35 | null | UTF-8 | Python | false | false | 424 | py | # -*- coding: utf-8 -*-
"""\
Tests against <https://github.com/mnooner256/pyqrcode/issues/17> and
<https://github.com/heuer/pyqrcode/issues/10>
Unicode issues.
"""
from __future__ import unicode_literals
import pyqrcodeng as pyqrcode
def test_issue_10_17():
qr = pyqrcode.create('John’s Pizza')
assert qr
... | [
"heuer@semagia.com"
] | heuer@semagia.com |
a6db5964253e81c368fcf13b0b31ecd3de6e3376 | 4eeb7257a706967a049ea0e020bdd8d05f987c21 | /working/kub-nginx.py | f5b3cb82ed777fedc2d42f605087d169d7903549 | [] | no_license | monolive/airflow-dags | 6e1451261f370ec9707a3226ad2ea4498d628faa | e1191d2193ca428f331c7ac0d09c89056893f891 | refs/heads/master | 2020-04-10T13:32:33.789760 | 2019-02-25T08:59:57 | 2019-02-25T08:59:57 | 161,053,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,569 | py | #from airflow.contrib.operators import KubernetesOperator
from datetime import datetime, timedelta
from airflow import DAG
from airflow.operators.dummy_operator import DummyOperator
from airflow.contrib.operators.kubernetes_pod_operator import KubernetesPodOperator
from airflow.contrib.kubernetes.secret import Sec... | [
"Olivier.Renault@vanquisbank.co.uk"
] | Olivier.Renault@vanquisbank.co.uk |
ae28eeb606bc9e3c7a1b0a8586dd6305705295bb | add83856f85c4134a524671121212e32e9a0ade2 | /aula4.py | 6fb7f45e441fefbeecbb28f0bed9ee88a5a5bf73 | [] | no_license | priscilasvn10/Estudando_Python | 671e3842c7b4e4de29e86cd7abe23f307d4a2ab8 | ffef655a9c3282ac158435b3263928cd6cb531bd | refs/heads/master | 2022-11-06T20:57:46.375239 | 2020-06-11T11:54:16 | 2020-06-11T11:54:16 | 271,512,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | a = int(input('Digite o primeito valor: '))
b = int(input('Digite o primeito valor: '))
soma = a + b
media = soma/2
print('O valor da soma é: {soma}'.format(soma=soma))
print('\n A média é {}'.format(media))
| [
"noreply@github.com"
] | priscilasvn10.noreply@github.com |
b9d57dfeaf96a51267c065beaf179dce02cef79a | d5905c424264e9376fb80871749865140fbd3fb1 | /MPCNN-sentence-similarity-tensorflow/embedding.py | cdf6713bff57f004be2f5dcc433e2611a2f190a8 | [] | no_license | eric-seekas/sentence_similarity | 456e29ecb53e63a6f0ab804acfc6e919e1a1458c | 647e90b1c43ab838fe857f87d3a2d5364112ff9b | refs/heads/master | 2021-02-08T18:20:45.443720 | 2018-05-22T10:50:17 | 2018-05-22T10:50:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,310 | py | """
A toolkit you may find useful for mapping sentences to embeddings.
Download and unzip the standard GloVe embeddings to use this.
Skip-thoughts use unigram/bigram information from the Children Book dataset.
"""
from __future__ import print_function
import numpy as np
class Embedder(object):
""" Generic em... | [
"cbj_love@126.com"
] | cbj_love@126.com |
0292b72004bd85deca84805fc86f18693d557717 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /JFLADuABfkeoz8mqN_5.py | 418dc4c327c7b6b0b704d40cb3c93aa5c599e590 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py |
class Person:
def __init__(self, name, age):
self.name = name
self.age = age
def compare_age(self, other):
modifier = ''
if self.age < other.age:
modifier = 'older than'
elif self.age == other.age:
modifier = 'the same age as'
else:
modifier = 'younger than'
... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
fbc8f567fc64ca0f8626efc764da3297fb9e5918 | b5a9d42f7ea5e26cd82b3be2b26c324d5da79ba1 | /tensorflow/contrib/tensor_forest/hybrid/python/models/stochastic_soft_decisions_to_data_then_nn.py | e916a8734c524c83772576e38418e6667fa6b0c9 | [
"Apache-2.0"
] | permissive | uve/tensorflow | e48cb29f39ed24ee27e81afd1687960682e1fbef | e08079463bf43e5963acc41da1f57e95603f8080 | refs/heads/master | 2020-11-29T11:30:40.391232 | 2020-01-11T13:43:10 | 2020-01-11T13:43:10 | 230,088,347 | 0 | 0 | Apache-2.0 | 2019-12-25T10:49:15 | 2019-12-25T10:49:14 | null | UTF-8 | Python | false | false | 1,954 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"v-grniki@microsoft.com"
] | v-grniki@microsoft.com |
46a326cd6ade0459a980a6bbdfafd899baf525e5 | 0208cbf2f0ea3c5405f2f8e3e74367df3916b999 | /venv/bin/easy_install-3.6 | cb43565f07cca22102c5e0b7d32db2c448086c7c | [
"MIT"
] | permissive | BHushanRathod/ecolibrium-assessment | aaa111ea7ba5e495f7deff5f2e59c2a7816dfd2e | b7a4f1ebb69094bcb0c2d39fc94df3cd93c73fb0 | refs/heads/master | 2022-05-02T14:45:36.088566 | 2021-07-12T10:20:51 | 2021-07-12T10:20:51 | 172,217,130 | 0 | 0 | MIT | 2022-04-22T21:01:35 | 2019-02-23T13:23:35 | Python | UTF-8 | Python | false | false | 468 | 6 | #!/Users/bhushan/Truso1.0/Experiment/ecolibrium_assessment/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.6'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-s... | [
"abhushanprathod@gmail.com"
] | abhushanprathod@gmail.com |
25a420ee9e5512309aafd20ed676820b038209ea | b86608b6de44642ed29cd88bba4acbbdd31a0b04 | /tools/agile-machine-learning-api/codes/trainer/launch_demo.py | 8bd90b27237627cf0a348cdc757db624b062bda7 | [
"Apache-2.0"
] | permissive | MCRen88/professional-services | a514a926dd23e3c4ac6dadb656faed22c3d91d5d | d7bc3b194159ffdb149c9507890bb1fbae7a8d88 | refs/heads/master | 2020-12-15T16:38:17.860940 | 2020-01-06T19:29:47 | 2020-01-06T19:29:47 | 235,181,173 | 1 | 0 | Apache-2.0 | 2020-01-20T19:26:15 | 2020-01-20T19:26:14 | null | UTF-8 | Python | false | false | 21,978 | py | # Copyright 2019 Google LLC
#
# 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, ... | [
"jferriero@google.com"
] | jferriero@google.com |
90db28e0b00420ae8ba6a75d46a68285b150f3e2 | bd7cbd805417429af1a6636eff86857b28162525 | /encapsulation.py | c4a5fe1d25ea847720f29c90dc5c902265b1d92c | [] | no_license | Qannaf/Python | d92cb9bad34de2a6814520f6487d548e93bfb52c | b8d23cdda6f5901bd176a4274f1b8d389267dc85 | refs/heads/main | 2023-04-28T09:03:30.854096 | 2021-05-22T08:35:51 | 2021-05-22T08:35:51 | 356,817,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | #coding:utf-8
#voila mon 12émé code en python
class Humain:
""""Classe qui définit un humain"""
def __init__(self,nom ,age): #constrecture
self.nom = nom
self._age = age
def _getage(self):
#print("Récupération interdite")
if self._age<= 1:
return "{} ... | [
"qannafalsahmi@gmail.com"
] | qannafalsahmi@gmail.com |
f519f8ae0d7bee8960df8f6c8053f6c930b0db76 | a98eab432108d65c8546c44cded7808463b844a4 | /common/libs/UploadService.py | 1855eb6afd457e0dd62cbeb931b35ad635c2e266 | [] | no_license | RocketWill/Qamar | 287ec3d5ad2ec7b3435c93def2d85bbe7d94d928 | 63e41d333559baf52a9010850bc4c2713ac0b93d | refs/heads/master | 2020-04-21T23:55:59.459620 | 2019-03-19T12:00:02 | 2019-03-19T12:00:02 | 169,962,064 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,359 | py | # -*- coding: utf-8 -*-
from werkzeug.utils import secure_filename
from application import app, db
import os, stat, uuid
from common.libs.Helper import getCurrentDate
from common.models.Image import Image
class UploadService():
@staticmethod
def uploadByFile(file):
config_upload = app.config['UPLOAD']... | [
"willcy1006@163.com"
] | willcy1006@163.com |
29ddf0ad878bb01613933dec9c0ea4d5d69f4d37 | e88de870db4ed98a39a1e7661f4662ba9d465b84 | /fixture/session.py | 2ab29c2141001defd40b5ad6e7da6669a31fc3a5 | [] | no_license | TatianaMoskvina/PainPoints | f11c371115e21da284e3375581ff4a485b38e495 | 291782aab76bc7b7b1cbdd493a0837b25c65a92c | refs/heads/master | 2020-04-13T04:02:43.248112 | 2019-01-24T05:59:02 | 2019-01-24T05:59:02 | 162,949,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,490 | py |
class SessionHelper:
def __init__(self, app):
self.app = app
def log_out(self):
# log out
wd = self.app.wd
wd.find_element_by_id("myProfile").click()
wd.find_element_by_link_text("Log Out").click()
def ensure_logout(self):
wd = self.app.wd
if s... | [
"moskvina.tania.vit@gmail.com"
] | moskvina.tania.vit@gmail.com |
50c51970784b45eb11a6e6b9407324632f40fbe4 | 5fc1bb8df5af751e855ccdb224a37a7afb473d6e | /setup.py | 0af5652144881f9fac8ad445e1c7b171c6d9d2ed | [
"BSD-3-Clause"
] | permissive | areagle-stripe/SimpleML | c316ddaba7cac8dc709c4d9030e0de1897dc007a | 10a2167a73570bc923c202930fa75ba56d46c504 | refs/heads/master | 2020-03-14T14:31:29.949925 | 2018-04-09T02:37:06 | 2018-04-09T02:37:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 647 | py | from setuptools import setup, find_packages
setup(
name='simpleml',
version='0.1',
description='Simplified Machine Learning',
author='Elisha Yadgaran',
author_email='ElishaY@alum.mit.edu',
license='BSD-3',
url='https://github.com/eyadgaran/SimpleML',
download_url='https://github.com/eya... | [
"ElishaY@alum.mit.edu"
] | ElishaY@alum.mit.edu |
b6d557a679a01d00df7d8e053588222bcee90375 | 4b100e0519f3362554bac7434baac61a1d08ddd2 | /third_party/ros_aarch64/lib/python2.7/dist-packages/dynamic_reconfigure/cfg/TestConfig.py | 8cb1e13bddbb1e0b79add5109e2837449bfbccae | [
"Apache-2.0"
] | permissive | YapingLiao/apollo1.0 | 17002fefaf01e0ee9f79713fd436c8c3386208b6 | 6e725e8dd5013b769efa18f43e5ae675f4847fbd | refs/heads/master | 2020-06-18T13:04:52.019242 | 2018-01-29T01:50:43 | 2018-01-29T01:50:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,004 | py | ## *********************************************************
##
## File autogenerated for the dynamic_reconfigure_test package
## by the dynamic_reconfigure package.
## Please do not edit.
##
## ********************************************************/
from dynamic_reconfigure.encoding import extract_params
inf = ... | [
"14552258@qq.com"
] | 14552258@qq.com |
52ff178dec4c0fecc3a4ec0097dbff7f0a46b8ed | 0062da4c92b6a621343347a36ee32128838c09ec | /hw6/hw66.py | d53ded6c0933a977859a413ec67f23285fc1ca50 | [] | no_license | Skotmak/Homeworks | d3bb39e1d6d960ec3ad1c5c74a0eb5508f1f1e15 | 071e3c3a9d1341b28dd3a4828788f422fd943367 | refs/heads/master | 2022-05-13T07:50:45.869093 | 2022-05-03T17:19:53 | 2022-05-03T17:19:53 | 226,465,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 599 | py | class First:
color = "red"
form = "circle"
style = "cool"
def changecolor(self,newcolor):
self.color = newcolor
def changeform(self,newform):
self.form = newform
def changestyle(self,newstyle):
self.style = newstyle
class Second:
color = "red"
def changecolor(sel... | [
"belok9999@yandex.ru"
] | belok9999@yandex.ru |
274befd704407b98b615b5efb59b5c392ba2d396 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/sql/outbound_firewall_rule.py | 5a8309fc8ccaf95892a167a53395faad58b8bd6a | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 7,974 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__a... | [
"noreply@github.com"
] | morrell.noreply@github.com |
94d8d69b957710067f870841aeea79b4d0747e2f | 7dbe84760c95ee2ef15b28724bc73c173fab1f1a | /download2-8-1.py | c2c0a4db78e9230a650e421f354d1c8aceb7af0c | [] | no_license | seil3377/python_section2 | f0af3342df24d2317f21081d59a4f5f42e4f0d32 | eb5af490480cd53031e93d833ed74d20e7367933 | refs/heads/master | 2020-03-27T13:06:33.114567 | 2018-09-18T08:11:26 | 2018-09-18T08:11:26 | 146,586,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,262 | py | from bs4 import BeautifulSoup
import urllib.request as req
import urllib.parse as rep
import sys
import io
import os
sys.stdout = io.TextIOWrapper(sys.stdout.detach(), encoding = 'utf-8')
sys.stderr = io.TextIOWrapper(sys.stderr.detach(), encoding = 'utf-8')
#403error : 헤더(Header)정보를 심어서 User-agent 정보를 같이 보내는 코드를 통해 ... | [
"seil3377@naver.com"
] | seil3377@naver.com |
5d7dcefc5473baa7b1829179e02b456b2dc7a467 | 1526f23c4a847768a5fc1c2ba596275d5d7ec0d5 | /assgn2/pr7.py | 16044b8670c8a1a1d63e463e2a9b0422df3600da | [] | no_license | gitank007/python-assignmnet | d07e7d222242f13dbfe7bd5d1f7a75ddb8be9aa7 | 7b7588927a17c46dfea2b141c7ccf91b4b5f3949 | refs/heads/master | 2023-02-28T17:02:45.217169 | 2021-02-11T08:03:57 | 2021-02-11T08:03:57 | 333,665,413 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | ''' nature of roots
step 1: if d=b^2 -4ac =0 ==>real and equal roots
step 2 if d>0 then they are rel roots
step 3 if d<0 then it is imaginary rots
'''
x,y,z=[int(x) for x in input("enter the space seprating values of cofficients of ax^2+bx+c values will be considered in repective manner: ").split()]
print("a={} ,b=... | [
"noreply@github.com"
] | gitank007.noreply@github.com |
290d3ea467c81eb4adcf2a72c26529c2a9e07eb4 | 1a2ca64839723ede3134a0781128b0dc0b5f6ab8 | /ExtractFeatures/Data/jsinix/Problem10.py | 8f8dd302f291fb441406f1d44ec06aae2c72032e | [] | no_license | vivekaxl/LexisNexis | bc8ee0b92ae95a200c41bd077082212243ee248c | 5fa3a818c3d41bd9c3eb25122e1d376c8910269c | refs/heads/master | 2021-01-13T01:44:41.814348 | 2015-07-08T15:42:35 | 2015-07-08T15:42:35 | 29,705,371 | 9 | 3 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | # Question: Summation of primes
# Problem 10
# The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17.
# Find the sum of all the primes below two million.
# Answer: 142913828922
#!/usr/bin/python
def is_prime(num):
for j in range(2,num):
if (num % j) == 0:
return False
return True
list1 = [... | [
"vivekaxl@gmail.com"
] | vivekaxl@gmail.com |
0ac33827a9a2da4ec675edc41ce481fc5157e0f5 | a7f43722f91b6cc75b46924daa08d856e9c4793c | /env/bin/pip3 | 8ad698ab09c3dd8b9c007b1e05cada42de0aee9b | [] | no_license | bodevone/django-blog | b226b998d609dd6726053857fd38c5abc2c98734 | ee4e5dbafa94b2fe18261cf229ace3c741c97203 | refs/heads/master | 2020-05-03T10:11:02.256327 | 2019-03-30T15:08:28 | 2019-03-30T15:08:28 | 178,573,157 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | #!/home/bodevan/Documents/coding/django-blog/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"aliby.bbb@gmail.com"
] | aliby.bbb@gmail.com | |
da8b517d85a513db952f23fb60cba730404ee688 | 3c8cc407d7547f8702bfe06deb5f1c9087778ce3 | /hiword/dataloader.py | 4d6c1c1a4918a7d6da18e55b56ca7658f88ceae8 | [
"Apache-2.0"
] | permissive | jadbin/hiword | accaebbdee899e8e3ed11e024d6c488bca36c445 | 7789412747a2b6b59ee974f2a2efd57e355e3282 | refs/heads/master | 2023-04-06T21:57:17.260338 | 2023-03-15T16:21:49 | 2023-03-15T16:21:49 | 166,003,998 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,158 | py | import os
from collections import defaultdict
from os import listdir
from os.path import join, dirname, isdir
class DictLoader:
def __init__(self):
self.dict = self._load_dict()
def word_freq(self, word):
return self.dict[word]
@staticmethod
def _load_dict():
res = defaultdic... | [
"jadbin.com@hotmail.com"
] | jadbin.com@hotmail.com |
0335df4074ddc3d154d3724fb2fef2df225be97f | 76f05bd66e0585d1f0ef9c6829be936332706f2a | /yibanApi/__init__.py | 30d7de0a0830f48a6a09d044d0cf34b8149d0bad | [
"MIT"
] | permissive | vincijy/yibanApi | b48da529b962b176f08c9e4227727d0499836caa | 57bf9b821fb5b5154e8df7a3f7f4bdb2245dfcbf | refs/heads/master | 2020-03-13T20:03:36.363584 | 2018-05-02T10:29:24 | 2018-05-02T10:29:24 | 131,266,046 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39 | py |
from .yibanApi import AccessToken, api | [
"awefight@qq.com"
] | awefight@qq.com |
8095b9c0a7bae6822334409e1ce923939046e30c | 141b42d9d72636c869ff2ce7a2a9f7b9b24f508b | /myvenv/Lib/site-packages/cairosvg/colors.py | d77cb275f83cb564c24eb127821c4d38243acfbb | [
"BSD-3-Clause"
] | permissive | Fa67/saleor-shop | 105e1147e60396ddab6f006337436dcbf18e8fe1 | 76110349162c54c8bfcae61983bb59ba8fb0f778 | refs/heads/master | 2021-06-08T23:51:12.251457 | 2018-07-24T08:14:33 | 2018-07-24T08:14:33 | 168,561,915 | 1 | 0 | BSD-3-Clause | 2021-04-18T07:59:12 | 2019-01-31T17:00:39 | Python | UTF-8 | Python | false | false | 11,254 | py | # This file is part of CairoSVG
# Copyright © 2010-2015 Kozea
#
# This library is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the Free
# Software Foundation, either version 3 of the License, or (at your option) any
# later version.
#... | [
"gruzdevasch@gmail.com"
] | gruzdevasch@gmail.com |
1153e48fb209a9481fc4f3d804857ae10cbf9c27 | 21264264d3323c2d801042ffe3aeecb97c393251 | /regimens/tests/test_forms.py | e3402a9f38a01eb7015a07c85eb153af54a1a05f | [
"MIT"
] | permissive | michael-xander/communique-webapp | a5dd45b3c1019d40ca02fea587ade35dbf16c0d0 | 85b450d7f6d0313c5e5ef53a262a850b7e93c3d6 | refs/heads/master | 2021-05-01T15:34:06.013729 | 2016-11-19T19:15:31 | 2016-11-19T19:15:31 | 63,105,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,502 | py | from django.test import TestCase
import datetime
from regimens.forms import RegimenForm
from regimens.models import Drug
from patients.models import Patient
class RegimenFormTestCase(TestCase):
"""
Test cases for the regimen create form.
"""
def setUp(self):
Patient.objects.create(other_name... | [
"michaelkyeyune01@gmail.com"
] | michaelkyeyune01@gmail.com |
97c39494d2c4397abe0b8e90109bb32a2af8219e | 6730a45a5dcf89b7e9868f0a88e47541a5f30dc6 | /tests/task_stat/test.py | c7a34f168b428d9a9ce28b1724701f1d8398d95e | [
"BSD-2-Clause-Views",
"BSD-2-Clause"
] | permissive | dontkme/rmats-turbo | def1ca43c88b9c22827ef9652420d71d12f0f11f | 8a2ad659717a1ccd6dbecd593dc1370ba7c30621 | refs/heads/master | 2023-08-24T11:19:14.177599 | 2021-08-03T12:50:52 | 2021-08-03T12:50:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,997 | py | import collections
import os.path
import shutil
import subprocess
import sys
import unittest
import tests.base_test
import tests.output_parser as output_parser
import tests.test_config
import tests.util
class Test(tests.base_test.BaseTest):
def setUp(self):
super().setUp()
self._test_base_dir = ... | [
"noreply@github.com"
] | dontkme.noreply@github.com |
16bdf1311ec0dd7bb5b4d66680fad7469efdf356 | 2f4b95f4b17337f02c21f33f7aa2ce11476898ff | /superlists/lists/tests/test_models.py | 17334b2a932fbd11564264621a19bfdffdf5f4b6 | [] | no_license | Wowip/EjerciciosTDD | 6c891d03250462408dbb25d5d36004c092d6dbe2 | 940c0fcae6a95998c1c013a35f92e659167de67b | refs/heads/master | 2020-08-01T02:13:03.887136 | 2016-11-20T19:18:49 | 2016-11-20T19:18:49 | 73,586,488 | 0 | 0 | null | 2016-11-18T06:59:20 | 2016-11-13T00:21:46 | Python | UTF-8 | Python | false | false | 1,914 | py | from django.core.exceptions import ValidationError
from django.test import TestCase
from lists.models import Item, List
class ItemModelTest(TestCase):
def test_default_text(self):
item = Item()
self.assertEqual(item.text, '')
def test_item_is_related_to_list(self):
list_ = List.obje... | [
"arturoinosencio@gmail.com"
] | arturoinosencio@gmail.com |
abdf25273170a0e464ee6c988a08c42a21bbd8b0 | f3a1629a46f5c3cbf7314c54fc36be3156146517 | /venv/bin/sqlformat | f01aa4e0e6285b25c7aec0571805920953267bed | [] | no_license | AlexsandroMO/qualiy_applications | ec4cdbcbacc9f403d7d34ca9573af44df9c9230a | 08656c8368f10d54e5b9c8e4a758989239224dc6 | refs/heads/main | 2023-01-13T03:50:21.779274 | 2020-11-14T19:05:20 | 2020-11-14T19:05:20 | 305,471,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | #!/Users/alexsandromonteiro/Desktop/Prog_Python/qualiy_applications/venv/bin/python3.8
# -*- coding: utf-8 -*-
import re
import sys
from sqlparse.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"sandrobass@hotmail.com"
] | sandrobass@hotmail.com | |
9193f6aad6ce7c106a99eac8bfc6eb8b4001266e | 5f6fd8232989e9d033506c84083b909117d0086b | /thread/thread_listen_coding - 副本.py | bb7a3b4a7b13fe86e6a603f4739d428959d85913 | [] | no_license | seryte/int_python_pro | a4a9fd085c21adf6161bc8173f77b6b4c191adb2 | fc0a1bc8d64f01d07cc63690f4bad04c7a20b07f | refs/heads/master | 2020-03-09T06:02:35.139890 | 2018-05-16T03:42:20 | 2018-05-16T03:42:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 996 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date : 2018-04-17 20:04:07
# @Author : Your Name (you@example.org)
# @Link : http://example.org
# @Version : $Id$
import threading,time
def listen(name,now):
print("listening:%s %s" %(name,now))
time.sleep(2)
print("listening 执行结束 %s"%time.strftime("%Y-%m-%d... | [
"382643558@qq.com"
] | 382643558@qq.com |
5540e36a51a6dfcea256b55d35fa3fa736c86e2e | e96bab82cc398aec30b8969288def8403c033207 | /36_Data types function.py | dcceb7b9db3682f5ce76e3d3a2bec556373faceb | [] | no_license | shiyanshirani/w3s-150-questions | 125c7df920d6cc04e71232f0d994673aaa0d8d15 | 3d532ab7a70767d905f86423185e2abbee6d7c2b | refs/heads/master | 2022-11-05T03:30:19.738858 | 2020-06-27T14:17:50 | 2020-06-27T14:17:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | def typesfunction(a, b):
if type(a)==int and type(b)==int:
print(a+b)
else:
print("Different types")
typesfunction("google", 5)
typesfunction(111,0) | [
"shiyan99@gmail.com"
] | shiyan99@gmail.com |
db0ec3865a75078674e752309dad2296cd1bbd26 | f305f84ea6f721c2391300f0a60e21d2ce14f2a5 | /19_数学/计算几何/直线/practice/面试题 16.14. 最佳直线 copy.py | 9a95efaf08f17ae51ca4cf2e9edb0dae3b4f6f05 | [] | no_license | 981377660LMT/algorithm-study | f2ada3e6959338ae1bc21934a84f7314a8ecff82 | 7e79e26bb8f641868561b186e34c1127ed63c9e0 | refs/heads/master | 2023-09-01T18:26:16.525579 | 2023-09-01T12:21:58 | 2023-09-01T12:21:58 | 385,861,235 | 225 | 24 | null | null | null | null | UTF-8 | Python | false | false | 3,033 | py | from typing import List
from collections import defaultdict
def gcd(a, b):
return b if a == 0 else gcd(b % a, b)
class Solution:
def bestLine(self, points: List[List[int]]) -> List[int]:
n = len(points)
res = []
maxCount = 0
for i in range(n):
x1, ... | [
"lmt2818088@gmail.com"
] | lmt2818088@gmail.com |
f2d017f5816dc45eeaf51e3c46e9eea79e6f4cc8 | 56fd010ffa40a8496a61ca4974ab136c55add8f6 | /Bruit_TrafficRoutier/Zone_bruit.py | 3635ac3c5a55fd3a7bc5b31513c5c08989a2ec68 | [] | no_license | BarAmina/Python_ArcPy | 1f185894888acf1d8cab20d17b3cbd65b09a82e9 | ffe5db519ddf60838096b27acb283c3fb44f1ac6 | refs/heads/master | 2020-08-04T22:25:03.955430 | 2019-10-11T21:34:23 | 2019-10-11T21:34:23 | 212,297,771 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,602 | py | # -*- coding: utf-8 -*-
#-------------------------------------------------------------------------------
# Nom du script : Zone_bruit.py
# Objet : Génération de zones d'exposition au bruit du traffic routier
#-------------------------------------------------------------------------------
# Import... | [
"noreply@github.com"
] | BarAmina.noreply@github.com |
c4501bbe8f20b230b42ebcc48b2dc670340da586 | 573307ca913f2bc73bcc498efee67cf61fc29800 | /lessThanList.py | dbe067a8601c65e27c6c6b186513e280875254e8 | [] | no_license | JstD/PPL_FP | 553d7af369f19a98e7c20d2a37216f253d01a2aa | e45e6d7412e60528d1faef9f9ccf09acdb57d30a | refs/heads/master | 2023-03-29T20:12:34.713100 | 2021-04-03T07:00:39 | 2021-04-03T07:00:39 | 354,223,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | def lessThan(lst,num):
return [x for x in lst if x<num]
print(lessThan([1,2,3,4,5],4))
| [
"dung.truong2000@hcmut.edu.vn"
] | dung.truong2000@hcmut.edu.vn |
72f4df5dc0c06e943c09f1516ec2cc3850c46820 | a6ceb9e0429f02275159d95142e515b01a6d47b5 | /bmi3d/open_hdf_tables.py | ca29b86e76d62db2388d3ccfc665e2a6865cca1f | [] | no_license | m-nolan/aopy_dev | 0e699236ea0b82deed1781cf8dcecbe9ecc56c27 | 794200222e0ac73dc98cf2adc28c63b8e4f18040 | refs/heads/main | 2023-04-02T13:15:21.098852 | 2021-03-30T20:01:39 | 2021-03-30T20:01:39 | 344,970,001 | 0 | 0 | null | 2021-03-25T23:11:58 | 2021-03-06T00:35:16 | Python | UTF-8 | Python | false | false | 566 | py | import tables
import numpy
import matplotlib.pyplot as plt
#replace this with your hdf filename
#fname = 'c:\\Users\\Si Jia\\AppData\\Local\\Temp\\tmp9fswwtwp.h5'
fname = '/tmp/tmpdcbqn2zo.h5'
hdffile = tables.open_file(fname,'r') #read-onl
print(hdffile)
#get table information
# more methods refer to this
# https:... | [
"manolan@uw.edu"
] | manolan@uw.edu |
fcc0647cba72938ea38d2263d8274cac61efb22f | e29713b4e094b17ee6e0fdc88624825cd649abc4 | /Python Codes 2/phone_letters.py | 48a727c375ee1bb9e2ec702d9ca9f5aa6f0cae22 | [] | no_license | debolina-ca/my-projects | 272fca1c961cc68b85e28226a2afc6d4929ba26e | b8c433d5a35645da8ad2fcb28238a40daa18bc9b | refs/heads/master | 2020-12-27T18:42:06.248234 | 2020-02-03T19:31:31 | 2020-02-03T19:31:31 | 238,008,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | # Phone Letters
phone_letters = [
"1 = ''", "2 = 'ABC'", "3 = 'DEF'",
"4 = 'GHI'", "5 = 'JKL'", "6 = 'MNO'",
"7 = 'PQRS'", "8 = 'TUV'", "9 = 'WXYZ'",
"*", "0 = ' '", "#"
]
print(phone_letters[0:3])
print(phone_letters[3:6])
print(phone_letters[6:9])
print(phone_letters[9:12])
| [
"noreply@github.com"
] | debolina-ca.noreply@github.com |
6831b0fbb7a6dadcaef55a6df4497df57ec91df1 | 2b45cbccd03fb09be78b2241d05beeae171a2e18 | /字节跳动测试开发工程师面试准备/reverseList.py | 58fa0f6880134d2ea79618baafedb614640d8d8f | [] | no_license | MaoningGuan/LeetCode | c90f78ce87a8116458a86c49dbe32e172036f7b4 | 62419b49000e79962bcdc99cd98afd2fb82ea345 | refs/heads/master | 2023-01-03T14:52:04.278708 | 2020-11-01T12:15:41 | 2020-11-01T12:15:41 | 282,859,997 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,567 | py | # -*- coding: utf-8 -*-
"""
206. 反转链表
反转一个单链表。
示例:
输入: 1->2->3->4->5->NULL
输出: 5->4->3->2->1->NULL
进阶:
你可以迭代或递归地反转链表。你能否用两种方法解决这道题?
"""
# Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
def generateList(l: list) -> ListNode:
prenode = ... | [
"1812711281@qq.com"
] | 1812711281@qq.com |
935fa502303057323606ce4a66327440a1ef0018 | f150f2dce61cdbaaa244e118c9e81e83a4886458 | /eigenpro/training.py | 5b296f7d919e0d707bb159e6248c2a240aa00f39 | [
"MIT"
] | permissive | johannespitz/kernel-overfitting | e060ca00fef7f7e563616dcc68909737a4449b5a | a654aaa49afc302d4e96a99cafebed0f5bbbd825 | refs/heads/master | 2020-05-23T22:34:07.844753 | 2020-04-24T19:50:19 | 2020-04-24T19:50:19 | 186,976,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,093 | py | #!/usr/bin/env python
# coding: utf-8
# In[28]:
'''
Modified version of https://github.com/EigenPro/EigenPro-tensorflow
in particular run_expr.py
'''
from __future__ import print_function
import keras
import numpy as np
import time
import warnings
from dataclasses import dataclass
from scipy.stats import... | [
"johannes.pitz@tum.de"
] | johannes.pitz@tum.de |
3c8054330d2faa9eac755a30f468ca9a147bf06a | 673f1a46e00cd3239e459138d9e592ce34dc5b26 | /demo/migrations/0001_initial.py | 90360a97867d16368e68e66a47ba3821b8256616 | [] | no_license | jw1174184386/rolemanage | 59db121dfc91fb557d036c8066f7328a9df3c87a | e0f844b6890c70702d3c4333741336570b6a384f | refs/heads/master | 2020-04-15T12:13:19.330381 | 2019-01-08T14:24:08 | 2019-01-08T14:24:08 | 164,665,320 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,849 | py | # Generated by Django 2.1.2 on 2019-01-08 03:47
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Action',
fields=[
... | [
"jw1174184386@163.com"
] | jw1174184386@163.com |
29274b90fb731a1e2a67393d3e011a6ce556f727 | 965a462e251e705dee793cc2ab9ef2acaa1f2b1f | /SCons_zipit.py | 752f39714f7581bb78d9b78fe6771c68640fcc24 | [] | no_license | Embedded-Systems-Spring-2020/lab4 | 786e4dca964c6294b606ae136ce151ef26d64e6b | 916539dbe90fd11e869fa20c6233359d20f640b9 | refs/heads/master | 2021-01-02T12:55:17.007775 | 2020-02-24T17:03:27 | 2020-02-24T17:03:27 | 239,633,582 | 0 | 1 | null | 2020-02-24T05:06:52 | 2020-02-10T23:15:58 | C | UTF-8 | Python | false | false | 2,355 | py | # .. "Copyright (c) 2008 Robert B. Reese, Bryan A. Jones, J. W. Bruce ("AUTHORS")"
# All rights reserved.
# (R. Reese, reese_AT_ece.msstate.edu, Mississippi State University)
# (B. A. Jones, bjones_AT_ece.msstate.edu, Mississippi State University)
# (J. W. Bruce, jwbruce_AT_ece.msstate.edu, Mississippi Stat... | [
"49951619+ryan-shoemake@users.noreply.github.com"
] | 49951619+ryan-shoemake@users.noreply.github.com |
e5159573514325ddff9f0569957cbbf720a52f0e | a34ec07c3464369a88e68c9006fa1115f5b61e5f | /B_HashTable/Basic/L1_2593_Find_Score_of_an_Array_After_Marking_All_Elements.py | c21970e05cffcfd0aa4f1a71aaa041f071a3ed8a | [] | no_license | 824zzy/Leetcode | 9220f2fb13e03d601d2b471b5cfa0c2364dbdf41 | 93b7f4448a366a709214c271a570c3399f5fc4d3 | refs/heads/master | 2023-06-27T02:53:51.812177 | 2023-06-16T16:25:39 | 2023-06-16T16:25:39 | 69,733,624 | 14 | 3 | null | 2022-05-25T06:48:38 | 2016-10-01T10:56:07 | Python | UTF-8 | Python | false | false | 493 | py | """ https://leetcode.com/problems/find-score-of-an-array-after-marking-all-elements/
Implement the problem description using a seen array
"""
from header import *
class Solution:
def findScore(self, A: List[int]) -> int:
seen = [0]*(len(A)+2)
ans = 0
for i, x in sorted(enumerate(A), key=lam... | [
"zhengyuan.zhu@mavs.uta.edu"
] | zhengyuan.zhu@mavs.uta.edu |
574a978e3031c00ce0d37a59ee379800c4f2d854 | a3b306df800059a5b74975793251a28b8a5f49c7 | /Graphs/LX-2/molecule_otsu = False/BioImageXD-1.0/ITK/lib/InsightToolkit/WrapITK/Configuration/Languages/SwigInterface/pygccxml-1.0.0/pygccxml/parser/scanner.py | 967c877a080cf5e421a7027aab7eb78b513ab7b5 | [
"BSL-1.0"
] | permissive | giacomo21/Image-analysis | dc17ba2b6eb53f48963fad931568576fda4e1349 | ea8bafa073de5090bd8f83fb4f5ca16669d0211f | refs/heads/master | 2016-09-06T21:42:13.530256 | 2013-07-22T09:35:56 | 2013-07-22T09:35:56 | 11,384,784 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 21,301 | py | # Copyright 2004-2008 Roman Yakovenko.
# Distributed under the Boost Software License, Version 1.0. (See
# accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
import os
import types
import pprint
import xml.sax
import warnings
import xml.sax.handler
from pygccxml.declaration... | [
"fede.anne95@hotmail.it"
] | fede.anne95@hotmail.it |
d1d2cb8fa62f4abf11d0f3c031e100adb3008d82 | 6ed01f4503fc9de234a561c945adff7cf4b1c81b | /ncar_lib/incites_authors/incites_people_reporter.py | 24328f4c760673ff83a6c2cbdde1365ae3f9d3f8 | [] | no_license | ostwald/python-lib | b851943c913a68424a05ce3c7b42878ff9519f68 | 9acd97ffaa2f57b3e9e632e1b75016549beb29e5 | refs/heads/master | 2021-10-28T06:33:34.156095 | 2021-10-21T23:54:49 | 2021-10-21T23:54:49 | 69,060,616 | 0 | 1 | null | 2018-06-21T16:05:30 | 2016-09-23T21:04:46 | Roff | UTF-8 | Python | false | false | 5,465 | py | """
"""
import os, sys
from UserList import UserList
from find_person import PersonFinder, resolveFullName
from data_filter import FilteredAuthorData
from HyperText.HTML40 import *
from html import HtmlDocument
class InCitesAuthorInfo:
def __init__ (self, id, finder, matches):
"""
names are derived from inCites... | [
"ostwald@ucar.edu"
] | ostwald@ucar.edu |
f6a2b705d388a7c343310c3da3e8ed2698926621 | 14e3ecd6a5bfc4cba3b990d561a3d6db70f43430 | /UDA/main.py | 37d29c6ca6da7c86a831b725c3200b77e446e89d | [] | no_license | zuiwufenghua/Multi-Cell_LSTM | 61d487645e1c2d3f93f95bda2e8f46fabd8a3b3a | c4938222a559d93aa8377d4e1a46a27aff86457c | refs/heads/master | 2023-01-23T06:20:56.883335 | 2020-12-02T09:41:32 | 2020-12-02T09:41:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,861 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import time
import sys
import math
import argparse
import random
import torch
import gc
import torch.nn as nn
import torch.optim as optim
import numpy as np
from utils.metric import get_ner_fmeasure
from model.seqlabel import SeqLabel
from model.sentclassi... | [
"noreply@github.com"
] | zuiwufenghua.noreply@github.com |
aba125b8f91634b95df90b074b7664738b3c06a0 | 7f74e34fedf47766fdb280404eed5336b03c1461 | /MII/Sede/forms.py | 25cc0808ceaa6031fca8e2d8956257d290b79a8c | [] | no_license | ExiledGod/Universidad | bcbdd6a11b6cbb134064792701380419ac290ca0 | bb6cc13b83630b63b0ac594b3bee436a0a21eabe | refs/heads/master | 2022-12-14T16:15:25.261425 | 2020-08-27T05:28:23 | 2020-08-27T05:28:23 | 290,684,166 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 722 | py | from Sede.models import Sede, DireccionSede
from django import forms
class Sede_form(forms.ModelForm):
model = Sede
fields = [
'nombre',
]
labels = {
'nombre': 'Nombre: ',
}
class DireccionForm(forms.ModelForm):
class Meta:
model = DireccionSede
fields = [
'region',
'provincia',
'comuna',
'd... | [
"66937061+ExiledGod@users.noreply.github.com"
] | 66937061+ExiledGod@users.noreply.github.com |
2d11d716b8d9b87ddcac994061c1cbae63557549 | b2599eaa38eb035555b1aebab1cb188fa4e01cbe | /whileloop.py | 37e3b220880f685cb4263dcc38659e66243c34a4 | [] | no_license | surut555/basicpython | c1f14c136480f4cda92eae1eeecdf407f974b6fb | 7ae86bfb488c91243a802760646d1f3f0441435f | refs/heads/main | 2023-01-04T02:42:20.987473 | 2020-11-01T02:33:46 | 2020-11-01T02:33:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | i = 1
while i <= 10:
if i == 10:
print(i)
else:
print(i, end=',')
i = i+1
a = 1
while True: # infinity loop
print(a)
a = a+1
| [
"63528254+surut555@users.noreply.github.com"
] | 63528254+surut555@users.noreply.github.com |
94ef4b15b8b61bb1acb9913ad5c3069aaed77362 | e1b6cce87a76d967817cb979a9de8713abe66764 | /forwards/pc_0.py | 6a538d8b6afa2c7462bbdaed91bf2d20f0207c06 | [] | no_license | MaxAndrewNZ/AutonomousNavigation | 816c773461f96446c02df23c2dbaacfa2448a35c | b70474c4f1f315c4609482fa3156430c64be7003 | refs/heads/main | 2023-02-02T05:26:52.874174 | 2020-12-07T22:46:03 | 2020-12-07T22:46:03 | 317,351,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,668 | py | import sys
sys.path.insert(1, '../side_camera_test/')
import time,zmq,pickle
import numpy as np
import pyrealsense2 as rs
import open3d as o3d
import vehicle as veh
import pointcloud as pc
import visualise_pointclouds as visualise
import display_information as display
import cv2
import math
import random
import os
de... | [
"mla138@uclive.ac.nz"
] | mla138@uclive.ac.nz |
9484689e364e1a12491127ddc0afa4929c215d8d | 9f541271263dceb0b7b0134ab6cff5ed324c6444 | /json/conf.py | cb6e2722d1f1194238a9bb9841615fcfe3adf803 | [] | no_license | shannondec/bonaventureli.github.io | bd0fa5286ab4077b690f2621425ddd78f16e72dc | ab442ff704dc539b5c9da1d7cacb826256392c17 | refs/heads/main | 2023-06-04T10:34:40.224571 | 2021-06-29T08:38:53 | 2021-06-29T08:38:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,837 | py | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | [
"lfwendula@msn.cn"
] | lfwendula@msn.cn |
60cda957b628771dede0236cb5bbb72670ae6f12 | e95d6f6842e7d32a2933676e12d73cbe8cf9d7d4 | /JSON_BOOK_Programs/1_Theano_example.py | 505d5f01450e75013c437208ed149f090545f781 | [] | no_license | MehreenTariq12/mehru | 87acda07c564f37107aa8a3e2da247216c734d35 | af5da763197696394dfe751d2c54e3caab7d3f62 | refs/heads/master | 2022-06-24T03:59:54.542892 | 2020-05-10T06:03:05 | 2020-05-10T06:03:05 | 256,930,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | import theano
from theano import tensor
a = tensor.dscalar()
b = tensor.dscalar()
c = a + b
f = theano.function([a, b], c)
result = f(1, 2)
print(result) | [
"noreply@github.com"
] | MehreenTariq12.noreply@github.com |
c137360796290d8e49d6e99af906017dcf7bd04d | 8908ac4efbb943e05cda86d84b11264f4e31a59e | /addons/to_paypal_unsupported_currencies/models/account_payment.py | a39199982bd52ca42d5d1361dcf480db69ee07a3 | [
"Unlicense"
] | permissive | kit9/vocal_v12 | c38c17921a647c16a839110d3452dddcaf3f0036 | 480990e919c9410903e06e7813ee92800bd6a569 | refs/heads/master | 2023-02-01T15:55:13.461862 | 2020-12-15T12:06:06 | 2020-12-15T12:06:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,057 | py | from odoo import models, fields
class AccountPayment(models.Model):
_inherit = 'account.payment'
paypal_original_unsupported_currency_id = fields.Many2one('res.currency', string='Paypal Original Unsupported Currency',
help="A technical field to st... | [
"vijay+admin@wearme.me"
] | vijay+admin@wearme.me |
e5349826b1bf5d97988e22e049ad10187fab4a4b | 677869880e88f669a436c78cd77dc3eee2a66569 | /pythonkatas/primefactors/main.py | 6ec728df598d050073646ad580f72a03c1689277 | [] | no_license | ErinLMoore/CodeKatas | 36c6b5a860ee374497f1509b49adab4713e34de1 | a6e77e0ecdc3c54e84901eabeff9270c65a96e1b | refs/heads/master | 2020-04-06T07:02:12.463774 | 2016-09-29T02:23:26 | 2016-09-29T02:23:26 | 53,079,444 | 0 | 1 | null | 2016-07-06T15:56:13 | 2016-03-03T20:05:00 | HTML | UTF-8 | Python | false | false | 196 | py | import sys
sys.path.append('~/workspace/CodeKatas/pythonkatas/src')
from src.primefactors import primeFactors
class main():
int_to_factor = int(sys.argv[1])
print (primeFactors(int_to_factor))
| [
"emoore@pillartechnology.com"
] | emoore@pillartechnology.com |
91a53658d1e9736bda6759fad4317665e4ce9a63 | 796654a4e4961a764b2d7e036971da049a3b3cae | /project_2/bayes.py | f92b6ac248af1dce8b40d01e11b6b5a9c33f129f | [] | no_license | nattip/CIS678 | 9cfe6ab6fbec855456140e98234b2ed358c20403 | aceffe9144577727e10feb40a7e8ae9e2948e4a5 | refs/heads/master | 2022-07-09T11:12:45.863383 | 2020-04-02T15:15:25 | 2020-04-02T15:15:25 | 231,259,734 | 0 | 1 | null | 2022-06-22T01:15:18 | 2020-01-01T20:20:40 | Python | UTF-8 | Python | false | false | 11,604 | py | # Written by Natalie Tipton
# February 2, 20202
# CIS 678 - Machine Learning
# Dr. Greg Wolffe
# Spam/Ham Classification of text messages using
# the Naive Bayes algorithm
from collections import Counter
import string
import math
import heapq
import matplotlib.pyplot as plt
import numpy as np
######################... | [
"tiptonna@mail.gvsu.edu"
] | tiptonna@mail.gvsu.edu |
26c93247ee4200baadf6355f694c14262a0ea35e | 0d09e32620e2e82f243ba86e2cc7bec19e521b1b | /Exercises/01-Sequential-Structure/ex06.py | ac27e05e4d8dd83905a5665183e94f38cefa3c27 | [] | no_license | hikarocarvalho/Python_Wiki | 401f7466377f2053cda8bfa850afd0bd64cce047 | 01f755ecc18de13a9ded794ece9e7a8bd4ad7d9e | refs/heads/main | 2023-06-14T08:37:10.728067 | 2021-07-12T20:24:41 | 2021-07-12T20:24:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | #the user gives the ray value
#o usuário dá o valor do raio
ray = float(input("Enter with the ray value: "))
#calculate the area of a circle
#calcula a área do circulo
area = ray**2 * 3.14
#Show the result
#mostra o resultado
print("The area of this circle is:",area) | [
"hikarofcarvalho@gmail.com"
] | hikarofcarvalho@gmail.com |
a54d47e36ae5a6c355b6eeb86ee81846d8e817a5 | 206f9385bcb87bf59f5a577043c0abfed8ab0066 | /Asynchronous_IO/event_loop_dif_thread.py | 13ad2d93012b41d1f008674bf0294785baf6e367 | [] | no_license | XiangSugar/Python | 7bca1ea5a90d880f1ed4f0b3dd4fc3310caf7fdc | 2356dc3342dbc9c474cf0d9f25b1dc7930bc8814 | refs/heads/master | 2021-04-12T01:51:26.751494 | 2018-09-04T01:25:48 | 2018-09-04T01:25:48 | 125,846,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 890 | py | # coding = utf-8
from threading import Thread, currentThread
import asyncio
import time
now = lambda: time.time()
def start_loop(loop):
asyncio.set_event_loop(loop)
loop.run_forever()
def more_work(x):
print('%s' % currentThread())
print('More work {}'.format(x))
time.sleep(x)
print('Finish... | [
"suxiang@hust.edu.cn"
] | suxiang@hust.edu.cn |
9c39ba0a267b3fb8b32d1167382688f2d07176a5 | 5950e578d3c6239987bc189951334cc87ca1a966 | /198. House Robber.py | fc45a3e04b49703b17b6b5bbbecf92e6bf7d5771 | [] | no_license | a5135324/leetcode | 0aa5ddc42569f9a619394197afcd1b29e856687e | c3eb9000154859669ed18054eca04c44023ef496 | refs/heads/master | 2021-02-14T14:40:52.336373 | 2020-12-27T09:03:59 | 2020-12-27T09:03:59 | 244,812,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | '''
Detail:
Runtime: 20 ms, faster than 98.54% of Python3 online submissions for House Robber.
Memory Usage: 12.8 MB, less than 100.00% of Python3 online submissions for House Robber.
Submit time: 2020/03/06 13:37(UTC+8)
'''
class Solution:
def rob(self, nums: List[int]) -> int:
n = len(nums)
dp ... | [
"a5135324@gmail.com"
] | a5135324@gmail.com |
dcebdc63fede722d67b16b2fb6757f67c3e20076 | 59f03c7528c9c806e3e25b9864db89f25dfa73c2 | /tests/conftest.py | 340ea85a5b213e3a629d9ba903138e93c3473583 | [
"MIT"
] | permissive | OneGov/onegov-cloud | 8d8cd6d0378991ebc2333b62337246719102e723 | c706b38d5b67692b4146cdf14ef24d971a32c6b8 | refs/heads/master | 2023-08-24T15:37:52.536958 | 2023-08-24T14:15:54 | 2023-08-24T14:15:54 | 189,431,418 | 17 | 4 | MIT | 2023-09-14T20:39:37 | 2019-05-30T14:47:14 | Python | UTF-8 | Python | false | false | 34 | py | pytest_plugins = ['tests.shared']
| [
"denis.krienbuehl@seantis.ch"
] | denis.krienbuehl@seantis.ch |
9918758e1b829eee564875e4744dd8f4094f8f34 | bbefc4e1252b984625bc5b94b244d2e9838e4100 | /neuralnetwork/neuralNetwork.py | e8bd07d938d8993b0597b093db7adf1cad62f94b | [] | no_license | ckethan0429/Machine-Learning | 5a8add0a8c56695b1d874c9f4bc44236b39dcd2d | d6d1b5fb2ceda866e8334a0a6d2a8bf5df864a3c | refs/heads/master | 2020-05-03T13:36:22.147819 | 2019-04-02T11:54:33 | 2019-04-02T11:54:33 | 178,656,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,641 | py | import numpy
from scipy.special import expit
import pandas as pd
class neuralNetwork:
#신경망 초기화하기
def __init__(self, inputnodes, hiddennodes, outputnodes, learningrate, path = None):
#입력, 은닉, 출력 계층의 노드 개수 설정
self.inodes = inputnodes
self.hnodes = hiddennodes
self.onodes = outpu... | [
"oops0429@gmail.com"
] | oops0429@gmail.com |
65e75880a88ed030115589f4646788aa413fd91e | 7f7213fe407f252b2323025c9b9e381a73474b7d | /drag_sheet/sds/check_files.py | 077feba9a15d97280ae0c711e7c9b67f9866a925 | [] | no_license | ahy3nz/graphene_build | 0ce62c2123b8c39248048d2cafbd0aafdd06ff9a | 44590b8db799136929fc06e490151f450ad30029 | refs/heads/master | 2021-06-20T07:28:20.958807 | 2019-07-03T19:48:24 | 2019-07-03T19:48:24 | 135,504,561 | 0 | 1 | null | 2018-08-06T21:47:17 | 2018-05-30T22:40:17 | Python | UTF-8 | Python | false | false | 572 | py | import os
import itertools as it
curr_dir = os.getcwd()
sds_folders = ['10sds', '20sds', '30sds', '40sds', '50sds', '60sds',
'70sds', '80sds', '90sds', '100sds']
k_folders = ['k50']
angle_folders = ['0']
trials = ['a', 'b', 'c']
for combo in it.product(sds_folders, k_folders, angle_folders,trials):
si... | [
"alexander.h.yang@vanderbilt.edu"
] | alexander.h.yang@vanderbilt.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.