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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b09e483727dc8717cd45a0f85c80edd42152255e | ec09ccf35bcc968b7b1b6cd2aec5a150ecbc2e01 | /test/hpa_test.py | 475e98ef79603c23cd3ba21807622bbec5f1fd3a | [
"CC0-1.0"
] | permissive | ssupdoc/k8-simulation | 1717b35d8aa1b6ab0076ceadacdfe475f81afcd3 | 7834d3faaed3e86b547554c6228540c316621011 | refs/heads/master | 2022-12-23T21:58:27.083986 | 2020-10-04T01:05:24 | 2020-10-04T01:05:24 | 285,696,159 | 1 | 0 | CC0-1.0 | 2020-10-04T01:05:25 | 2020-08-07T00:03:20 | Python | UTF-8 | Python | false | false | 1,068 | py | from src.api_server import APIServer
from src.load_balancer import LoadBalancer
from src.hpa import HPA
from src.pod import Pod
import unittest
DEPLOYMENT_INFO = ['Deployment_AA', 2, 2]
HPA_INFO = ['Deployment_AA', 75, 10, 5]
_hpaCtlLoop = 2
apiServer = APIServer()
apiServer.CreateDeployment(DEPLOYMENT_INFO)
deployme... | [
"sriramemailsyou@gmail.com"
] | sriramemailsyou@gmail.com |
a6630d2aeb6791c9a89d193f911eb7ef74dbe858 | b9da0a46452a67d4d2e1c6e76d982295b8e9bec4 | /double_joint_arm/robot/robot_state_ideal_speed.py | 402873c81f5f1c2078042928112a15291143bf68 | [] | no_license | lessthantrue/RobotProjects | d68d0cfba090ca0e117c78baae7afdc13203ec6c | e84069ad90dca9e3d4873febe1bcb40f396d656e | refs/heads/master | 2023-02-06T00:02:02.070109 | 2020-12-27T06:00:33 | 2020-12-27T06:00:33 | 291,508,533 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,331 | py | import numpy as np
import kinematics
from matrix_utils import *
def close(v1, v2, tol=0.0001):
return abs(np.linalg.norm(v1-v2)) < tol
class Robot():
def __init__(self, t1_0, t2_0, x0=1, y0=1):
self.len1 = 1
self.len2 = 2
# frames
self.Rw_0 = translation2d(x0, y0)
... | [
"nickm@outofthisworld.net"
] | nickm@outofthisworld.net |
26b05b882a260c212c2dd400b26cb5baa8526671 | f1a91c56cef7f8f21c0e154118278f394acf8a0c | /app/util/import_util.py | ca363568c8866118a1bc41ab376ad7e8f2b11b6a | [] | no_license | imsazzad/fastapi-python-template | ad5935d556a4798a2504deaebf6b6a3a03ebb0a3 | ec28b908e0cf419083ce1ec8235a71ee542d85c8 | refs/heads/main | 2023-08-21T00:09:21.482963 | 2021-10-01T05:24:17 | 2021-10-01T05:24:17 | 412,339,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | import glob
import importlib
import os
import pathlib
import sys
class ImportUtil:
@staticmethod
def import_modules_from_directory_as_list(module_directory: str) -> list:
sys.path.append(module_directory)
py_files: list = glob.glob(os.path.join(module_directory, '*.py'))
modules: list ... | [
"abdu.hasib@Infolytx.com"
] | abdu.hasib@Infolytx.com |
003433cb893cff17a7ae9e5807ff49deed068997 | 0cc4eb3cb54f8394c127ace62d3108fdb5230c85 | /.spack-env/view/lib/python3.7/site-packages/jedi/third_party/typeshed/stdlib/2/dircache.pyi | 523b850bc3e93f867de75c9bef0100e3b6d22c54 | [] | no_license | jacobmerson/spack-develop-env | 5b2d76f58c0b64ae97c64f77a3c4d33a770c71c8 | 5fca20ca343b1a76f05fc635c87f94ed25417d94 | refs/heads/master | 2022-07-04T02:22:50.264727 | 2020-05-06T05:13:50 | 2020-05-06T05:13:50 | 261,657,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | pyi | /lore/mersoj/spack/spack/opt/spack/linux-rhel7-x86_64/gcc-7.3.0/py-jedi-0.17.0-zugnvpgjfmuk5x4rfhhxlsknl2g226yt/lib/python3.7/site-packages/jedi/third_party/typeshed/stdlib/2/dircache.pyi | [
"mersoj@rpi.edu"
] | mersoj@rpi.edu |
f23530b0fcab203fccb0a43b9d3560015edbb1df | 07504838d12c6328da093dce3726e8ed096cecdb | /pylon/resources/properties/safExtCnfg.py | f32c8cf1cee106166c91aab4c960446be0295d8e | [] | no_license | lcoppa/fiat-lux | 9caaa7f3105e692a149fdd384ec590676f06bf00 | 7c166bcc08768da67c241078b397570de159e240 | refs/heads/master | 2020-04-04T02:47:19.917668 | 2013-10-10T10:22:51 | 2013-10-10T10:22:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,213 | py | """safExtCnfg standard property type, originally defined in resource file set
standard 00:00:00:00:00:00:00:00-0."""
# Copyright (C) 2013 Echelon Corporation. All Rights Reserved.
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (th... | [
"lcoppa@rocketmail.com"
] | lcoppa@rocketmail.com |
f34d29f947502d325641f91a58d256f2f869ef4f | c106ec4af915b485d625bfa835f769c2af1d34e3 | /trainxgb.py | 0f43497d436d2b81bd39167a3f8480667b78e5cf | [] | no_license | Men0x/aobd_project | 6820f38f13f2d9ce4c175a035aa4ef30e7925495 | d5dcf419775527cfe9025f8d87317ed5a10cd8db | refs/heads/master | 2023-01-04T05:34:43.768099 | 2020-10-30T21:45:06 | 2020-10-30T21:45:06 | 306,396,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,296 | py | import os
import warnings
import sys
import pandas as pd
import numpy as np
from sklearn.preprocessing import LabelEncoder
from sklearn.metrics import precision_recall_fscore_support as score
from sklearn.metrics import accuracy_score
from sklearn.model_selection import train_test_split
import xgboost as xgb
from xgb... | [
"38214356+Men0x@users.noreply.github.com"
] | 38214356+Men0x@users.noreply.github.com |
1ba87cd411f46c264b9fd8759ef716c3d9e27938 | c06efd90533c51c2b29b7e92cd13723388de25ee | /actions/patchStorageV1beta1StorageClass.py | a57bbce258efa5ad9e6ef149ec1d897e8648932f | [] | no_license | ajohnstone/stackstorm-kubernetes | 490e4a73daad3713d7c5b5b639d5f30ff1ab3e58 | 99ffad27f5947583a2ab1b56e80c06003d014c47 | refs/heads/master | 2021-01-11T23:29:49.642435 | 2016-12-07T13:20:34 | 2016-12-07T13:20:34 | 78,588,572 | 0 | 0 | null | 2017-01-11T00:48:59 | 2017-01-11T00:48:59 | null | UTF-8 | Python | false | false | 746 | py | from lib import k8s
from st2actions.runners.pythonrunner import Action
class patchStorageV1beta1StorageClass(Action):
def run(self,body,name,config_override=None,pretty=None):
myk8s = k8s.K8sClient(self.config)
args = {}
if body is not None:
args['body'] = body
else:
... | [
"andy@impulsed.net"
] | andy@impulsed.net |
ea5f7a09a051a8dfce6a47bf73c4c80e1df83072 | 146e54c9b4654ae24cf61e7bdc63ec974034b6a4 | /kafka/getFromSQS_kafka.py | 10907cec0257a337a69700a4b20cef6cbca0af78 | [] | no_license | sajal50/twittTrends | 094e86712428e4fc394bb698a70c5574485bb09c | e2b1c2e1ab2f71c14a78a2bc2e37e6282898133a | refs/heads/master | 2020-06-20T12:08:47.926582 | 2017-01-15T12:26:02 | 2017-01-15T12:26:02 | 74,866,195 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,599 | py | from multiprocessing import Pool, TimeoutError, Lock
import threading
import time
import os
import multiprocessing
from watson_developer_cloud import AlchemyLanguageV1
import boto3
import config as Config #Using config file to read the config settings from a separate config file.
from kafka import KafkaConsumer
import ... | [
"sajal50@gmail.com"
] | sajal50@gmail.com |
a82e3b55c739f26cf5bb75daf2ce5b13f71cf467 | 7997c79e65a20e80ba76887181378ad110389121 | /making_queries/apps.py | c21846fc2f0c4688682d053d2abe910725fe1e01 | [] | no_license | caerang/django-practice | 68b7940087fdab51dc2e4ab589e0d1bab3e469e6 | cd9497053ec16f19c70daba03c0117d710a8b64b | refs/heads/master | 2022-12-06T04:32:33.084302 | 2022-11-28T07:09:46 | 2022-11-28T07:09:46 | 80,974,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | from django.apps import AppConfig
class MakingQueriesConfig(AppConfig):
name = 'making_queries'
| [
"mylovercorea@gmail.com"
] | mylovercorea@gmail.com |
571fa44c13cd529ee4eb84aca37e4931096a4b98 | d22dc2f7cbf5370c7afc381b27efffcdf8a7d00a | /prob05.py3 | 42e2e8b5719a19f62ba366bbaed5041b56a6acbd | [] | no_license | xorkevin/CodeWarsHP2016 | 13150154f969bb1765ecf4206c7f5106f93e8089 | 2732c3944e2431d43d574428b70b0e48a1e623ee | refs/heads/master | 2021-01-10T01:21:43.580960 | 2016-03-05T20:11:12 | 2016-03-05T20:11:12 | 53,221,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | py3 | import sys
f = sys.stdin.read()
f = f.split('\n')
f.pop(0)
f.pop()
for line in f:
x, y = line.split(' ')
x = int(x)
y = list(enumerate(y))
y = list(filter(lambda tup: tup[0]%x != 0, y))
k = ''
for tup in y:
k += tup[1]
print('' + str(k) + ' ' + str(len(k))) | [
"wangkevin448@gmail.com"
] | wangkevin448@gmail.com |
5e67a2f09a383a84ad7ca7dd67a4e00604fb28ab | 313869ac13ee6cfdaf2de5cb76adf3dec981513f | /venv/Lib/site-packages/pandas/core/groupby/groupby.py | 580a12327ddf5080bc0457a1effcbeade1d3ea69 | [] | no_license | praful-pra1/Machine-Learning-GMCA | c4a5a4fa49b17bd0461d17b40dc169970ee2acde | f93dcf2b8557be4c57ea99f4e8a3756140d2ba6c | refs/heads/master | 2022-12-25T01:09:08.318614 | 2020-10-04T04:57:45 | 2020-10-04T04:57:45 | 301,042,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95,215 | py | """
Provide the groupby split-apply-combine paradigm. Define the GroupBy
class providing the base-class of operations.
The SeriesGroupBy and DataFrameGroupBy sub-class
(defined in pandas.core.groupby.generic)
expose these user-facing objects to provide specific functionality.
"""
from contextlib import conte... | [
"prafulpar"
] | prafulpar |
1a07d3114e74fadea676842c7d35a5dae102c80b | 96fd91e48b5e08987206616d4a476f7fcb629742 | /packaging_project/pkg1/imported_module.py | b6a2cba73091d758f76b88bec7b639c917176043 | [
"MIT"
] | permissive | QikaiYang/ultimate-utils | 048efc2dd0812bd9fc9d24206acc753b288594bf | 50db0b96f2b3144ef008e29757990c688615951d | refs/heads/master | 2023-03-31T13:23:17.856199 | 2021-03-30T21:25:03 | 2021-03-30T21:25:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | print('\n------> you are importing: imported_module.py\n')
def func_from_imported_module():
print("I'm a function from func_from_imported_module") | [
"miranda9@illinois.edu"
] | miranda9@illinois.edu |
df760f3fb2bae9441d342cf168781c8ce3d3cf92 | 261fa6004234ccae2b1a4ff455ae54aefecbb172 | /ui_extensions/content_export/views.py | cc9e021e8399ec531eb798666ee498596ae79847 | [
"Apache-2.0"
] | permissive | svang001/cloudbolt-forge | 671575eecd54e1207b7dde144db2fdb6c43c9ddf | 3796900115876f8a9ee333b75f45e3d60d7705d7 | refs/heads/master | 2023-02-23T23:03:33.225739 | 2021-01-19T20:09:21 | 2021-01-19T20:09:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,587 | py | import requests
from django.contrib import messages
from django.http import HttpResponseRedirect
from django.shortcuts import render
from django.urls import reverse
from django.utils.html import mark_safe
from cbhooks.models import (
HookPointAction, RecurringActionJob, ServerAction, ResourceAction, TriggerPoint
... | [
"klaratta@cloudboltsoftware.com"
] | klaratta@cloudboltsoftware.com |
c0f8ac78473e82ea1426614dacf74fc4180ef9e9 | dd44f2823b7ea9c8e20dce41844627d9371989d8 | /macroPCA-old.py | 2495a1fe23fc8434df5096a63eaf432a0cd4f3a4 | [] | no_license | jmfreeland/macroAnalysis | affa7a3432f76bcee3d968bfd3ec701a7b3c1871 | 4a0e551832f4f2de7fbd2e4060e69ae7e7096068 | refs/heads/master | 2022-12-05T01:28:11.669592 | 2020-08-27T08:04:39 | 2020-08-27T08:04:39 | 257,497,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,371 | py | # -*- coding: utf-8 -*-
"""
Macro PCA:
Objective: Identify high-level drivers of movement in a collection of macro-sensitive tradable securities
outputs: PCA loadings, time-series of factor movements
todo: try with fractionally differenced series because why not
-Find stationary series for factor 1 and adjust risk ... | [
"josh.freeland@gmail.com"
] | josh.freeland@gmail.com |
54d614a2458bb581353bf4aeba881b56472296c9 | 4d69d32a3dd1c45d3e0dafc9bacd4f1de5c6ea6d | /tests/handlers/test_sync.py | a01ab471f5944031638f4f1ffee6f8dc07131890 | [
"Apache-2.0"
] | permissive | codemonk-sunhui/synapse | 6fd1ab9359cbd0c84852cbce5c65858d98c60e66 | 7824a751a769e692113d0dc19fe9a3ba99007940 | refs/heads/master | 2020-03-27T06:52:49.273620 | 2018-11-23T10:19:46 | 2018-11-23T10:19:46 | 146,142,219 | 0 | 0 | Apache-2.0 | 2018-08-26T01:33:32 | 2018-08-26T01:33:32 | null | UTF-8 | Python | false | false | 2,628 | py | # -*- coding: utf-8 -*-
# Copyright 2018 New Vector Ltd
#
# 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 la... | [
"neil@matrix.org"
] | neil@matrix.org |
490fcdfb16141de4f142150d27b614173af087da | 2f0cb310e2ec8fb176ee240aa964a7eef5ed23b4 | /giico/quality_control_and_material_testing/doctype/bulk_density_of_masonary/bulk_density_of_masonary.py | 682281f533740a8c16ef57cb3acb6c2e523d8ca2 | [
"MIT"
] | permissive | thispl/giico | b96cf6b707f361275f8723d15f8ea1f95f908c9c | 14c5631639ab56a586a7962be9871d722c20e205 | refs/heads/master | 2021-06-18T03:56:02.928303 | 2021-04-27T06:42:59 | 2021-04-27T06:42:59 | 200,183,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2021, VHRS and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
# import frappe
from frappe.model.document import Document
class BulkDensityOfmasonary(Document):
pass
| [
"hereabdulla@gmail.com"
] | hereabdulla@gmail.com |
b6415094da921188a6c07160bf88440442a8f16d | 049e2fab5e9e8f248e537cbada15d60d60536990 | /environment/env_multi.py | be5637dedf9dd6ef8320973bbc255ebc9740da5c | [
"MIT"
] | permissive | RubenPants/RobotSimulator2D | adfd8c16ec48b34419cae096d16e5e6714410407 | 334d7b9cab0edb22d4670cfaf39fbed76c351758 | refs/heads/master | 2023-05-14T20:09:44.604695 | 2020-07-11T14:16:58 | 2020-07-11T14:16:58 | 223,198,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,070 | py | """
env_multi.py
Environment where a single genome gets evaluated over multiple games. This environment will be called in a process.
"""
import sys
from config import Config
from environment.entities.game import get_game
from population.population import Population
from utils.dictionary import D_DONE, D_SENSOR_LIST
... | [
"broekxruben@gmail.com"
] | broekxruben@gmail.com |
5da1e0d740b5a0dba162b287dd9c836577381ca3 | 753410fcbb13267827464af08120543279a4d7dc | /ride_height.py | 5c20d103670047c48b5352f7cd5e4c0247ce6284 | [] | no_license | donour/sharks | 93b18c34419bbd408d5022188f3f7baae233785c | d243408cb68cda18f8121d39ada393d49a01af91 | refs/heads/master | 2020-06-02T07:50:35.925352 | 2013-11-16T21:07:02 | 2013-11-16T21:07:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,157 | py | #!/usr/bin/python
import quick2wire.i2c as i2c
bus = i2c.I2CMaster()
adc_address1 = 0x68
adc_address2 = 0x69
varDivisior = 16 # from pdf sheet on adc addresses and config
varMultiplier = (2.4705882/varDivisior)/1000
def changechannel(address, adcConfig):
bus.transaction(i2c.writing_bytes(address, adcConfig))
... | [
"donour@cs.unm.edu"
] | donour@cs.unm.edu |
574587cc19a341530f3d079bed48ec4e649f274e | 07efa2ec19ec3a4090e20be1dff7576a98fd341c | /Project Euler/p36.py | 94de73e6225875ad388c90bf18f65be784051b97 | [] | no_license | raywong220/Backyard | ff3678d208857b63728fd9ebe744884b00ee947b | eab91b3c122aa24c68fc547c485ed3681c8bf5b1 | refs/heads/master | 2023-02-03T16:52:52.141134 | 2020-12-21T11:06:49 | 2020-12-21T11:06:49 | 254,303,111 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | # The decimal number, 585 = 10010010012 (binary), is palindromic in both bases.
# Find the sum of all numbers, less than one million, which are palindromic in base 10 and base 2.
from time import process_time
sum = 0
# Since even number always ends with 0 in binary, not Palindromic
for i in range(1, 1000001,... | [
"noreply@github.com"
] | raywong220.noreply@github.com |
2d8bdf85ce1a62bcce86f423043b095ebdfff032 | 851d55b8423069abef9e51bf8f41c522ab5b1be1 | /models/YOLO_small_tf.py | f645c280358ebc80469092fb2000b454cf5fd391 | [] | no_license | cid2105/car-counter | 8905f9e69bcb4ccd7412a89623814525a3b413eb | 5a0d02895ca49fd953c813268d1d9431fbe07383 | refs/heads/master | 2020-07-11T23:49:56.254873 | 2016-11-17T05:04:48 | 2016-11-17T05:05:27 | 73,991,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,381 | py | import urllib
import os
import numpy as np
import tensorflow as tf
import cv2
import time
import sys
class YOLO_TF:
disp_console = True
weights_file = 'models/weights/YOLO_small.ckpt'
alpha = 0.1
threshold = 0.2
iou_threshold = 0.5
num_class = 20
num_box = 2
grid_size = 7
classes = ["aeroplane", "bicycle", "... | [
"cole.ian.diamond@gmail.com"
] | cole.ian.diamond@gmail.com |
1a4a25bdcf44d7428170dabdff37efd293eeb2bd | 290c4de61df3c6c1abe3bdf0203145fbe520225c | /celestia/utility/config.py | 1045050afb8152d5fa1e78d2a4ac779c33a1158a | [
"BSD-2-Clause"
] | permissive | kidaak/CelestiaSunrise | e1634b9daf620528a9713ba01a4561de8fa82170 | 5ace8cbf517e09e198a62e6dd1733de588ae2cfb | refs/heads/master | 2021-01-24T21:19:47.927620 | 2015-08-01T03:52:38 | 2015-08-01T03:52:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 911 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# File: config.py
# by Arzaroth Lekva
# arzaroth@arzaroth.com
#
import sys
import json
from clint import resources
CONFIG_FILE = "config.json"
BASE_CONFIG = {
"startup_check": False
}
class ClassProperty(property):
def __get__(self, cls, owner):
return ... | [
"lekva@arzaroth.com"
] | lekva@arzaroth.com |
0e4607a31bfe4d869574f4f1f64d51451bfc2ea9 | 386e9bf84397502fea2662df723f4b04ea1703c9 | /03_01_find_the_access_codes/answer.py | 19a52eed9d02b49a5efadc33b604fb4f8eba07e7 | [] | no_license | w9/google-foobar | 1f1b3e33519e41dc779a93efdf0514ab12848cfc | 92c9eacfd5eb3f41539bd94e842ea9567a264976 | refs/heads/master | 2021-01-23T19:25:44.403029 | 2017-09-09T23:46:49 | 2017-09-09T23:46:49 | 102,820,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | from itertools import repeat
from functools import partial
def transition(m, a):
""" Matrix-vector multiplication.
"""
return [sum([a[i] for i in r]) for r in m]
def get_trans_mat(l):
""" *Divisible and preceeding in list* is a partial order.
This function gives the transition matrix of the corr... | [
"zhuxun2@gmail.com"
] | zhuxun2@gmail.com |
acdf56c82a6bb37ed814ba0a5223a77421137d5c | ef78bd58d61002f45778a40da7759ed0b1998cd3 | /code/transforms/univariategaussianization.py | 85eb0ed34aec6c919cee82f5578985a62cf4bd41 | [
"MIT"
] | permissive | afcarl/isa | 61e85c0c790c7cc357e0c29fc5bda948e9c77ce4 | f0497c0cc7bd72e0de7f4f9a8da40e214c22abe9 | refs/heads/master | 2020-03-19T21:36:06.716167 | 2013-01-28T18:32:30 | 2013-01-28T18:32:30 | 136,944,562 | 1 | 0 | null | 2018-06-11T15:20:45 | 2018-06-11T15:20:44 | null | UTF-8 | Python | false | false | 1,634 | py | __license__ = 'MIT License <http://www.opensource.org/licenses/mit-license.php>'
__author__ = 'Lucas Theis <lucas@theis.io>'
__docformat__ = 'epytext'
from scipy.special import erf, erfinv
from scipy.stats import norm
from scipy.optimize import bisect
from numpy import mean, sqrt, asarray, max, min, any
from transform... | [
"lucas@theis.io"
] | lucas@theis.io |
56ab994254b3b1de4c46198dd4067152d1c0b8b9 | 47703c8cfd6b6cbbec7ceb2509da1bc049dd621f | /udoy_013.py | de28dafdc46a3bbd08f2137b5bbcbf693cf22f3f | [] | no_license | udoy382/PyCode | 0638a646bd4cac4095a58135aea97ba4ccfd5535 | 69efde580f019cd41061501554b6193688a0a06f | refs/heads/main | 2023-03-26T17:45:15.943887 | 2021-03-25T14:22:42 | 2021-03-25T14:22:42 | 324,485,735 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | # Short Hand If Else Notation In Python #22
a = int(input("enter a\n"))
b = int(input("enter b\n"))
# 1st
# if a>b: print("A B se bada hai bhai")
# 2nd
# print("B A se bada hai bhai") if a<b else print("A B se bada hai bhai") | [
"srudoy436@gmail.com"
] | srudoy436@gmail.com |
a32469f383f73a5e739265066cfc490c1b37b63d | 82eba08b9a7ee1bd1a5f83c3176bf3c0826a3a32 | /ZmailServer/src/python/pylibs/conf.py | 7077b51dcd1f57e8b2f178471fe6c88beda587ce | [
"MIT"
] | permissive | keramist/zmailserver | d01187fb6086bf3784fe180bea2e1c0854c83f3f | 762642b77c8f559a57e93c9f89b1473d6858c159 | refs/heads/master | 2021-01-21T05:56:25.642425 | 2013-10-21T11:27:05 | 2013-10-22T12:48:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,913 | py | #
# ***** BEGIN LICENSE BLOCK *****
# Zimbra Collaboration Suite Server
# Copyright (C) 2010, 2011, 2012 VMware, Inc.
#
# The contents of this file are subject to the Zimbra Public License
# Version 1.3 ("License"); you may not use this file except in
# compliance with the License. You may obtain a copy of the Licens... | [
"bourgerie.quentin@gmail.com"
] | bourgerie.quentin@gmail.com |
c93bf244e3f0b22a16f1e79d6056e4dbe376e1f5 | acba9be504eb44718edd8daa10bd7e36e6d9f3ee | /dstbasic/l4_uname_file.py | 1b9dc4220b8027c17d931d4763e74bb5dc1f46dc | [] | no_license | coderdr31/DNote | 48901b3bb7fb38b0e041eb6f33d547ac44f31b78 | 23d43792befd6457a68f1d3f986d72fdfcdffdad | refs/heads/master | 2021-10-08T02:33:02.484256 | 2018-12-06T14:03:16 | 2018-12-06T14:03:16 | 114,640,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | #!/usr/bin/python3
# coding: utf-8
##################################################################
## uname 查看版本
uname -m # i686-32位系统, x86_64-64位系统
##################################################################
## file 判断文件类型和文件编码格式
file -b # 列出文件辨识结果时,不显示文件名称
| [
"1683751393@qq.com"
] | 1683751393@qq.com |
7a9f19d6dac53a9f4248d28a1a6b381ab89c9614 | 120adb67cd33c128025793c37de4ba7b2f2d9f3e | /todolist/todoapp/tests/test_views.py | 14544f6d209b374424eca2edc3e6cc85b2c9006d | [] | no_license | ga0125/todolist-2 | 5da0fd61a0a0332929c9559181133914173387cf | dd78879eacd1796a931c4f8ca4c0b6b523e17a88 | refs/heads/master | 2022-12-10T17:34:23.063327 | 2019-09-17T16:16:40 | 2019-09-17T16:16:40 | 209,096,283 | 0 | 0 | null | 2022-12-08T06:10:24 | 2019-09-17T15:54:00 | CSS | UTF-8 | Python | false | false | 1,509 | py | from django.test import TestCase, Client
from django.urls import reverse
from datetime import datetime
class TestViews(TestCase):
def setUp(self):
self.client = Client()
self.task_url = reverse('api')
self.add_task_url = reverse('add-task')
self.done_task_url = reverse('done-task'... | [
"gabriel.zbrg@gmail.com"
] | gabriel.zbrg@gmail.com |
8b270e8421c100145ef9f17d0acf3038abfbca70 | 8ee17f972d788231ea9f3ac40f1596e22834726a | /3rd/boost_1_66_0/tools/build/test/project_root_rule.py | a123d1ab31e980d911f4f9d869162f33a1ad617c | [
"BSL-1.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | tulingwangbo/cefMultiBrowser | 585a04ee2903aad5ade8b32decf4e28391b1b1f1 | 459a459021da080d39a518bfe4417f69b689342f | refs/heads/master | 2020-04-04T16:36:51.262515 | 2018-11-04T14:38:06 | 2018-11-04T14:38:06 | 156,085,167 | 5 | 4 | null | null | null | null | UTF-8 | Python | false | false | 796 | py | #!/usr/bin/python
# Copyright (C) Vladimir Prus 2005.
# 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)
# Tests that we can declare a rule in Jamroot that will be can be called in
# child Jamfile to declare ... | [
"tulingwangbo@163.com"
] | tulingwangbo@163.com |
d62b71cee786178eddaf065c8d8850790282de38 | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /DaVinci_v36r1p3/InstallArea/x86_64-slc6-gcc48-opt/python/StrippingArchive/Stripping20r0p2/Beauty2Charm_Lb2XBuilder.py | c4d358fa0c53e8008b7e6ea45f0cfda3390b17fc | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,053 | py | #\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\#
from copy import deepcopy
from Gaudi.Configuration import *
from GaudiConfUtils.ConfigurableGenerators import CombineParticles
from PhysSelPython.Wrappers import Selection
from Beauty2Charm_LoKiCuts import LoKiCuts
from Beauty2Charm_Utils ... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
4316cce4e442be02266ab44c5875235bff98b3af | 62244ade4bfc240d45612b5aee8db70815e5aaea | /application/routes.py | d83ff1a106a3d6b1990ab5e7b9b3103267fd578f | [] | no_license | Michiboi29/testtuto | 6c9a0f0afa7be5a1b4798a6d0276fee065f3a16c | 46bf4e861ef005f56c3c77309474591105b02108 | refs/heads/master | 2022-04-15T06:52:22.335495 | 2020-03-20T05:47:27 | 2020-03-20T05:47:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 942 | py | from application import app
from flask import render_template, flash, redirect, url_for, request
from application.forms import LoginForm
from Api.sql_fonctions import sql_read, sql_insert
@app.route('/')
@app.route('/index')
def index():
toi = LoginForm().username.data
if toi is None:
toi = 'inconnu'
... | [
"emichaud29@gmail.com"
] | emichaud29@gmail.com |
bb9898b19c06b48df34befa014ed0e706c793736 | c88e82e24d79d4e6eed5313883239ee5cf7fab8d | /untitled/manage.py | e2803dae0e77da757ffafab6cc275fa3a5728fad | [
"MIT"
] | permissive | SamuelPhases/Django-bootcamp | b0a5274eeef85b31362bf1577a13eea5fd7b6692 | ff6dbeb9e1470fe1d003c0e170426bfaf7912060 | refs/heads/master | 2020-08-05T16:45:09.751611 | 2019-10-22T16:14:52 | 2019-10-22T16:14:52 | 212,619,651 | 0 | 0 | MIT | 2019-10-22T16:14:53 | 2019-10-03T15:55:53 | Python | UTF-8 | Python | false | false | 628 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'untitled.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Impor... | [
"obajisamuelekene@gmail.com"
] | obajisamuelekene@gmail.com |
e4261450da05009ae1e965dc60840264ffe2a1e9 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa3/sample/stmt_for_list_nested-32.py | 8e5e853af19d4b97d79508438d9d61dc0c5fdca2 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | x:int = 0
y:int = 0
z:[int] = None
$ID = [1, 2, 3]
for x in z:
for y in z:
print(x * y)
| [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
3c3531fcca3bf7881653a8e2610025a878c3f1a6 | d6e455eea3b83eec62d90b9e604ef7edc1de9e82 | /convolve/convolve_image.py | 6914c742059f29b754c15703d599151fc4e007b8 | [
"Apache-2.0"
] | permissive | xcamilox/frastro | 5fbb2b0ed86a7d348b46ea899ebc11efc452c419 | 437236350277e986d1c1787d9ff35c9ebbe09513 | refs/heads/master | 2023-05-25T12:30:20.186121 | 2023-05-21T16:10:04 | 2023-05-21T16:10:04 | 143,422,405 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,703 | py | from astropy.wcs import wcs
from scipy import signal
import matplotlib.pyplot as plt
from astropy.io import fits
import numpy as np
from scipy.ndimage import gaussian_filter
from frastro import PSFexUtil, ImageUtils, FITSFile
from frastro.core.data.photometry.photometry_util import PhotometryUtil
from photutils import... | [
"camilojimenez@Camilos-MacBook-Pro.local"
] | camilojimenez@Camilos-MacBook-Pro.local |
b8f63ea3515df7f39484f014ce96150b58d8aa72 | 3c9602bea3281a331f1a5a1ede75e576a27e358c | /ir/HW4/util.py | 3b03a681fbf8bbb30eeb9255420e37334f3de919 | [] | no_license | paradite/schoolwork | 61bf5b9312f326416a5c5d38e5cdb7129de9a5fb | 024a95eb0e5c929c2924af240998c8b07e66f8a7 | refs/heads/master | 2021-01-10T06:04:29.626520 | 2016-11-01T15:10:42 | 2016-11-01T15:10:42 | 51,366,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,599 | py | #!/use/bin/env python3
import os
import glob
import math
import string
from itertools import islice
from nltk.tokenize import sent_tokenize
from nltk.stem.porter import PorterStemmer
from nltk.corpus import XMLCorpusReader
# file containing length and terms information of each patent document
# generated in indexing... | [
"zhuliangg11@gmail.com"
] | zhuliangg11@gmail.com |
4fe85ae61e7e304422ef59491436b0173b986aac | 149441474fc85adebd3137c1c12d6f6a50f9b160 | /docs/conf.py | 7f387c11630449d531a82ccf559262ec94dd1bd7 | [
"MIT"
] | permissive | kepsic/moitoi_docker_hive | c5374de083a215e2d5d1f64a067175a467875eee | 95b38795ecf3a69bb2199e6136264767761df6a3 | refs/heads/master | 2023-01-08T05:38:45.528048 | 2020-01-02T12:09:10 | 2020-01-02T12:09:10 | 230,942,542 | 0 | 0 | MIT | 2019-12-30T16:50:45 | 2019-12-30T15:58:12 | Python | UTF-8 | Python | false | false | 4,924 | py | #!/usr/bin/env python
#
# moitoi_docker_hive documentation build configuration file, created by
# sphinx-quickstart on Fri Jun 9 13:47:02 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated fi... | [
"andres@kepler.ee"
] | andres@kepler.ee |
84fcbd3b1daafb67a7a0524e66461a5381ad7ced | b10c133ad4dea2635d405a4c19d663f9ac0ccafe | /testrobot/test.py | 40967633caa040b45d3c30ffecb501d31f2d41cc | [] | no_license | andyandymike/pythonArea | 45da924a6286e617bfddb2cae7dab9b23df24f88 | bdbe86dc375981e9163571ca9efa1f69c7f56700 | refs/heads/master | 2020-04-10T05:33:30.390914 | 2017-12-21T06:36:55 | 2017-12-21T06:36:55 | 68,115,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | class Chain(object):
def __init__(self, path='GET '):
self._path = path
def __getattr__(self, path):
return Chain('%s/%s' % (self._path, path))
def __call__(self,path):
return Chain('%s/%s' % (self._path, path))
def __str__(self):
return self._path
__repr__ = __s... | [
"564458508@qq.com"
] | 564458508@qq.com |
16deb8404da8048f8c259386524f2b4355b34af3 | 075a9186a43041b062ce883604a125484db64c71 | /plot_tools/twitch_ca_overlay.py | 8f8493bfb2cd3e0f887354470a8a3922143e4717 | [] | no_license | mmoth-kurtis/MMotH-Vent | 0c4afa14f882e3d6fff6aa3c354d142bc00ab906 | b1caff62bfdc60000e429a35fb4a4327dfbed4ea | refs/heads/master | 2023-02-24T00:02:09.078654 | 2021-01-29T19:19:25 | 2021-01-29T19:19:25 | 233,081,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 756 | py | import numpy as np
import matplotlib.pyplot as plt
original_stress = np.load('og_stress.npy')
original_stress = original_stress[0:701,0]
#stress_loaded = np.load('stress_array.npy')
stress_loaded = np.loadtxt('active_stress.csv',delimiter=',')
stress = stress_loaded[:,0]
#ca = np.load('calcium.npy')
#ca = ca[:,0]
#tim... | [
"ckma224@g.uky.edu"
] | ckma224@g.uky.edu |
0fad881d4404f4193a1f47164fedb70cc2bd82b9 | 551a047ce33028e2d62d11cdd98dd9882ceed641 | /kic/kic/urls.py | 3e45e00a1753f7ea83aec940ec8e53cfc944319c | [] | no_license | AMfalme/Kids-In-Charge | 7b03f05d6979b85a797bed535bf15ecaff4bc7e4 | 73d617e931cee5f0813a7c7d4bf5b030b514fe1d | refs/heads/master | 2023-03-12T09:03:14.968311 | 2021-03-06T12:43:52 | 2021-03-06T12:43:52 | 288,979,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,334 | py | from django.conf import settings
from django.conf.urls import include, url
from django.contrib import admin
from wagtail.admin import urls as wagtailadmin_urls
from wagtail.core import urls as wagtail_urls
from wagtail.documents import urls as wagtaildocs_urls
from search import views as search_views
from contact im... | [
"gmfalme@mizizi.io"
] | gmfalme@mizizi.io |
ea1f6012027177dfbab004ab8bf20e0541775ee1 | 540e4d8e4092f2418a683170759eafe7b4b84d94 | /get_difference.py | 1d6cb471b9cbce9c16126c5f09fc4c9ac9543f7b | [] | no_license | reshmarameshbabu/Cattle-Tracking | 3d314bc3d3da174cb069d446e9a20ba434713dcc | 908fe27091744a571dede44eb5d2a8030d235bbe | refs/heads/master | 2023-01-20T06:33:53.855912 | 2020-11-26T09:26:11 | 2020-11-26T09:26:11 | 274,412,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | rows = open("urls.txt").read().strip().split("\n")
rows1 = open("urls1.txt").read().strip().split("\n")
total = 0
print("urls",len(rows))
print("urls",len(rows1))
l = []
# loop the URLs
for url in rows1:
if url not in rows:
l.append(url)
print(len(l))
#with open('new_urls.txt', 'w') as f:
# for item in l... | [
"reshmaraemshbabu@gmail.com"
] | reshmaraemshbabu@gmail.com |
fd1369c47b58abeec8559d0b4b7d8a05650b30d4 | fe5cce1d566dd35809f45e4b07c9cbb14d15eff6 | /lexemize.py | 3c23bbb397d2840d08ca52aa3daa25ea2615cd75 | [] | no_license | Mersanko/stringtokenizer | 40053117e735f2879a926081221bc28ee953fa3e | 96f5cb74ccb1b6697c8dcf845b8176ebd3dbe1f1 | refs/heads/master | 2023-01-08T22:16:29.293841 | 2020-11-15T13:10:22 | 2020-11-15T13:10:22 | 313,016,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,795 | py | import tkinter as tk
from tkinter import *
from tkinter import ttk
from tkinter import messagebox
class GUI():
def __init__(self,title):
self.title = title
self.window =Tk()
self.inputVar = StringVar()
self.outputVar = StringVar()
self.window.geometry('600x350')
self.window.title(self.title)
self.inpu... | [
"mersanjr.canonigo@g.msuiit.edu.ph"
] | mersanjr.canonigo@g.msuiit.edu.ph |
a88f046366e59b9019ba58620dd77522a9c42a0a | 616cc6c05f525dd2cb67916601f6ecd2c8242f24 | /homework/hw01/problems/client/cli/ok.py | 66ac72252d323b4bd4a142ddda60f52f67f70359 | [] | no_license | cookieli/cs61a_li | 6f1d51aad7cd32fb27f64c855b3803bd2f8d9aad | 6ee0df9c64842bde9e30a0484e661abf04212358 | refs/heads/master | 2020-04-07T14:32:38.337554 | 2018-03-07T10:18:03 | 2018-03-07T10:18:03 | 124,218,933 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,952 | py | """ok is an autograder that you can use to run tests, back up your work, and
submit assignments.
You can run all tests with
python3 ok
There are several "options" you can give ok to modify its behavior. These
options generally have both a short form (preceded by a single dash, like -q)
or a long form (preceded b... | [
"you@example.com"
] | you@example.com |
68ef7ecd6ae99081df59c4cda272a675767819fa | 2c6ad479836272e776a72e0728185a81bc08a32f | /project/peer-review/Mseddi Mahdi/utils.py | 6928595029f67890060107dd760de35f93c8e57e | [] | no_license | lxwvictor/natural-language-processing | 7777b277dcd96cd3e2586f25a7c42b61bef795b6 | 94e5c7813269e1d4979e3639bf63b0a759919913 | refs/heads/master | 2021-06-29T21:57:20.931810 | 2021-02-01T09:26:07 | 2021-02-01T09:26:07 | 202,828,639 | 0 | 0 | null | 2019-08-17T03:08:56 | 2019-08-17T03:08:56 | null | UTF-8 | Python | false | false | 2,692 | py | import nltk
import pickle
import re
import numpy as np
import csv
nltk.download('stopwords')
from nltk.corpus import stopwords
# Paths for all resources for the bot.
RESOURCE_PATH = {
'INTENT_RECOGNIZER': 'intent_recognizer.pkl',
'TAG_CLASSIFIER': 'tag_classifier.pkl',
'TFIDF_VECTORIZER': 'tfidf_vectorize... | [
"lxwvictor@gmail.com"
] | lxwvictor@gmail.com |
09df25783a1779637e452c6e382451df52245c37 | bcd9da8c2a8489ed32ab6e28ae66f51d390a18c1 | /src/comment/tests.py | 413e4aeb2d8fb09168072afebf7837f15d8f8bf6 | [] | no_license | Rysbai/digiskills | 34b6b8e08882ee73f2016068ee122739880e947e | 39a205c5cb5d278b3a65a8ea4cd94660b2db97fc | refs/heads/master | 2022-12-13T16:01:01.220566 | 2020-01-30T11:36:06 | 2020-01-30T11:36:06 | 223,612,366 | 0 | 0 | null | 2022-12-08T03:18:38 | 2019-11-23T15:41:07 | API Blueprint | UTF-8 | Python | false | false | 1,712 | py | from django.urls import reverse
from rest_framework import status
from unittest import mock
from django.test import TestCase
from comment.serializers import CommentSerializers
from comment.factory import CommentFactory
class CommentAPITest(TestCase):
def test_should_return_list_of_all_comments(self):
pat... | [
"rysbai.coder@gmail.com"
] | rysbai.coder@gmail.com |
0e30d4d43c35797513445fa870cd4464563789fd | b5e145c952b36029ce52d0ad7dec50cb3b9783bd | /MemoryPuzzle.py | a6f83048842c8a1c5db6b400bd05d69d93514b3e | [] | no_license | heidili19/Home-Projects | e41ce9837a9ce7585fe2faf2ee289f9e1d4ed168 | 2f04b349ca1f36696443fcbb90c02f67818b462f | refs/heads/master | 2021-01-13T12:50:49.915064 | 2017-01-10T15:46:01 | 2017-01-10T15:46:01 | 78,471,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,063 | py | # Memory Puzzle
# By Al Sweigart al@inventwithpython.com
# http://inventwithpython.com/pygame
# Released under a "Simplified BSD" license
import random
import pygame
import sys
from pygame.locals import *
FPS = 30 # frames per second, the general speed of the program
WINDOWWIDTH = 640 # size of window's width in pixe... | [
"heidili19@gmail.com"
] | heidili19@gmail.com |
1c7565818774d402fe19003d4c5d53d5e779f919 | e770e46365ea19abd2d87d34f8f573a52312e823 | /proy_2.py | 39a2f572f5c2bb2a5dc73c0e3080e68addfbfa7a | [] | no_license | gusbeca/ProyectoHAR | d62b8d6eca5619a44cbbdca0f37c0c9d5f9c72e7 | d60d5cf8f23cdfaad0fbff40772c7cc2eb98a2c3 | refs/heads/master | 2020-06-13T17:37:25.498271 | 2019-07-01T20:07:26 | 2019-07-01T20:07:26 | 194,734,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,261 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Jun 30 17:46:36 2019
@author: Edgar Alberto Cañón
"""
import pandas as pd
import numpy as np
import seaborn as sns
import matplotlib as plt
from scipy.stats import mode
from sklearn.model_selection import train_test_split
from sklearn.ensemble import RandomFores... | [
"noreply@github.com"
] | gusbeca.noreply@github.com |
45b817d4a75f46e4e626eb9c9fb88a7376806c4e | 0805420ce1890c36aa9e0cc1a782945464433ef6 | /client/videoplayer/__init__.py | b55a1624352086133c05f65c066095386a59df16 | [] | no_license | cnrat/dec-eve-serenity | 4ebc3b2ab8faa6e6714dbb72b7ebcf92c4b2d75c | 37519e66a5fbb0d7c417d5cf9778636991efbed8 | refs/heads/master | 2021-01-21T03:39:48.969227 | 2016-08-10T05:25:07 | 2016-08-10T05:25:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\packages\videoplayer\__init__.py
from _videoplayer import * | [
"victorique.de.blois@asu.edu"
] | victorique.de.blois@asu.edu |
c2651c28d0497dedcdaabee35edb1d9456ca059e | 23dc8e94d88ebb45b5ec3bc6ab69d008042191b7 | /post/admin.py | 23c526414bf414b16c539dbf0220fbde975d6557 | [] | no_license | KorsPav/social-network-api | 220d04ffbe16f8f09a91e758f28ffb38136862c4 | 81a1c619c0f7bd8724daad44f9d700b9670b7e2d | refs/heads/main | 2023-05-31T19:05:31.041770 | 2021-06-22T17:02:11 | 2021-06-22T17:02:11 | 377,595,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | from django.contrib import admin
from post.models import Post, Like
class PostAdmin(admin.ModelAdmin):
prepopulated_fields = {"slug": ("title",)}
admin.site.register(Post, PostAdmin)
admin.site.register(Like)
| [
"pavel.korshikov@gmail.com"
] | pavel.korshikov@gmail.com |
b3717813e643005c192685476f9ee92b411fe642 | 0c5cdf2e5bc2e3018945eec35bb2c3f4a97f218e | /dataset/create_dataset.py | 066e316f8c0a3488b6eec37c9fbd77722a6a0ed3 | [
"Apache-2.0"
] | permissive | Kuanch/tf2.0-model_lib | c3c570e5b38726bd86882f671d6f873255ffda3e | d131101cdc5b2de3fbe24f5f8276d43e93c5f5f2 | refs/heads/master | 2020-05-19T16:36:53.661785 | 2019-05-15T09:59:41 | 2019-05-15T09:59:41 | 185,114,963 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,351 | py | from __future__ import absolute_import, division, print_function
import tensorflow as tf
def create_dataset(tfrecord_path, num_label, preprocess_fn, batch_size=32, num_epoch=1,
train_image_size=224, shuffle_buffer=100,
is_training=True, cifar10_mode=False):
if cifar10_mode:... | [
"sixigma6@gmail.com"
] | sixigma6@gmail.com |
d0ab0caeb92a58b3bd990e5cd29d3c0615018d0d | 3591fb0c79787d8d8ef1185d4164ac1916c0746c | /PyCast3/test_PyCast3.py | 8d30967b8a312b159e7986986eb6481cd249ed8e | [
"MIT"
] | permissive | Arthelon/PyCast3 | a7b4c1f1e753d6386d26887d130e7602cdb2af5c | 03c17b4e614ba4387ad4fe0d9ef50ccb27b39c5f | refs/heads/master | 2021-01-13T00:53:55.150391 | 2016-04-22T10:22:59 | 2016-04-22T10:22:59 | 51,683,121 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | import pytest, requests, json
from .PyCast3 import get_data
def test_get_data():
with pytest.raises(requests.exceptions.ConnectionError):
get_data('https://foo.bar')
with pytest.raises(SystemExit):
get_data('http://www.google.com/barfoo')
assert isinstance(get_data('http://jsonip.com/'), d... | [
"hsing.daniel@gmail.com"
] | hsing.daniel@gmail.com |
2fff3390b23f34ecccaa20ba3b41671bdfaebfa5 | e3cd9de7d7e68e5995680a297fa25652487b0d02 | /tests/sum_squares_test.py | b2ef648f012073ee2f9ded722f3ce60b17d76950 | [
"Apache-2.0"
] | permissive | bsaghafi/erdos | 2293993bb336d0a9466a17cc15236390c379d8f8 | ac27a9607f2550bbac999a0c5fb36c84c2860d2e | refs/heads/master | 2020-08-21T02:11:06.982785 | 2019-06-26T23:55:44 | 2019-06-26T23:55:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,222 | py | from __future__ import print_function
from absl import app
from absl import flags
import numpy as np
from erdos.data_stream import DataStream
from erdos.message import Message
import erdos.graph
from erdos.op import Op
from erdos.timestamp import Timestamp
from erdos.utils import frequency
FLAGS = flags.FLAGS
flags.... | [
"gogionel@gmail.com"
] | gogionel@gmail.com |
2ceaf520d25be23c194e7703c0676f8517cb5e3a | 1b307344a0dd5590e204529b7cc7557bed02d2b9 | /eng/mgmt/automation/sdk_generate.py | 832ab0a93ce28a66d728da5804309b2c53731cd4 | [
"LGPL-2.1-or-later",
"BSD-3-Clause",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference",
"CC0-1.0",
"LicenseRef-scancode-generic-cla"
] | permissive | alzimmermsft/azure-sdk-for-java | 7e72a194e488dd441e44e1fd12c0d4c1cacb1726 | 9f5c9b2fd43c2f9f74c4f79d386ae00600dd1bf4 | refs/heads/main | 2023-09-01T00:13:48.628043 | 2023-03-27T09:00:31 | 2023-03-27T09:00:31 | 176,596,152 | 4 | 0 | MIT | 2023-03-08T18:13:24 | 2019-03-19T20:49:38 | Java | UTF-8 | Python | false | false | 10,599 | py | #!/usr/bin/env python3
import os
import re
import sys
import json
import glob
import logging
import argparse
from typing import List
pwd = os.getcwd()
os.chdir(os.path.abspath(os.path.dirname(sys.argv[0])))
from parameters import *
from utils import set_or_increase_version
from generate_data import (
get_or_update... | [
"noreply@github.com"
] | alzimmermsft.noreply@github.com |
8933ca2ec3a2423458fe5b42177d75cc4c418d06 | 160372edc77dee6664e9030d693eab21c0125e2f | /utils.py | 2ec2dc89de7fc30121c4b3b60a381595b7f0f085 | [] | no_license | juju-w/Image-Denoise-using-Wasserstein-GAN | 2c8ebd894071fea6d27cfac6716b70317d5ea4d7 | ba912daaa858e6aef5067cc3ce5fa660763daa90 | refs/heads/main | 2023-08-29T12:21:03.335661 | 2021-09-10T14:19:46 | 2021-09-10T14:19:46 | 363,647,564 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 9,302 | py | # -*- coding: utf-8 -*-
"""
@Time : 2020/11/21 16:05
@Auth : kuiju_wang
@File :utils.py.py
@IDE :PyCharm
"""
import tensorflow as tf
import os
import cv2
import numpy as np
from tensorflow.keras.losses import MSE
from skimage.filters import gaussian
import random
from config import *
def batch_ssim_psnr_sum(batch_tu... | [
"847459455@qq.com"
] | 847459455@qq.com |
0fce395d84bb32bd832c506593f6cb5c31c596aa | 128c4788a33fc51dd244badcfc2053eac3cc3b3b | /servos/controller.py | 1dc01f90aaabcd69ef85fed1bae686a08394c00b | [] | no_license | krixoalejo/backend_domotic_house | e66ad91d9a329bd56cedbf60b5c6945f4a4481e5 | 0a8fcb30e1c9ead3b757ae16bc3e6f63cc7c6e60 | refs/heads/master | 2020-04-07T19:17:02.454563 | 2018-11-22T04:30:24 | 2018-11-22T04:30:24 | 158,642,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,413 | py | from flask import request, jsonify,Blueprint, abort
from flask.views import MethodView
from RPi import GPIO
from time import sleep
servosRoute = Blueprint('servosRoute', __name__)
from main import app
@servosRoute.route('/abrirPersiana1', methods=['GET'])
def abrirPersiana1():
#GPIO
PIN = 12
cant = 1
... | [
"krixoalejo@gmail.com"
] | krixoalejo@gmail.com |
4a13ba1319edbfe715b0595a65cffb4119942d5b | b84c89d0ade21bf8c2df9d0cf8f94d7a27c2824b | /test/integration/test_cursor.py | fc9dc209577a61eeb75a497eb6aa8552833b627a | [
"Apache-2.0"
] | permissive | srlabUsask/py2neo | 931b06678561201d56a36ec10da7ad4614ab6c87 | 80d3cf1ab0b4cfb03b7824fd7a407b33c95a1e8f | refs/heads/master | 2022-11-16T21:17:42.319698 | 2020-07-12T23:00:29 | 2020-07-12T23:00:29 | 279,281,481 | 0 | 0 | Apache-2.0 | 2020-07-13T11:17:53 | 2020-07-13T11:17:50 | null | UTF-8 | Python | false | false | 5,453 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
# Copyright 2011-2020, Nigel Small
#
# 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
#
# Unle... | [
"nigel@neo4j.com"
] | nigel@neo4j.com |
46bf955e07557ee8530320380cf68eb939581578 | 227539d0906cdfbb7cd19f16599c35d5bd09abfd | /Stepik_Adaptive_Python/adaptive-python-en-master/Step 070 Riddle.py | 5762e4cba5be9ed1142cc7c9eba781abb385451a | [] | no_license | solomonli/PycharmProjects | cceb92a11ec1f9e7fef25bca552d8264c75228a0 | 31673627487db1370424f5b0aeee3e20bb23b47a | refs/heads/master | 2021-06-24T11:59:36.365496 | 2019-07-08T09:53:18 | 2019-07-08T09:53:18 | 148,558,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | riddle = '''
{0} and {1} sat in the tree.
{0} had fallen, {1} was stolen.
What's remaining in the tree?
'''
print(riddle.format(input(), input()))
| [
"richdad.solomon@gmail.com"
] | richdad.solomon@gmail.com |
c9480092605bb55570bbb1146231d8c1d3809ae8 | 02aa73d429b15d7369f558708dfd56007f0644cf | /csu-sample2/logan.py | 766d1166969e89e38f44c87a141258b4143a6915 | [] | no_license | ripom/pulumi-projects | 0107c3a2915e997238130bb1ab60f57f4853cab5 | 3f3384a28b6ceafddaae009f75dc895e81c85c28 | refs/heads/master | 2022-11-21T00:39:31.619753 | 2020-07-25T13:58:33 | 2020-07-25T13:58:33 | 281,229,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | import pulumi
import pulumi_azure as azure
def logan(rg_name,rg_location):
example_analytics_workspace = azure.operationalinsights.AnalyticsWorkspace("logworkspace",
location=rg_location,
resource_group_name=rg_name,
sku="PerGB2018",
retention_in_days=30)
return example_analytic... | [
"riccardopomato@hotmail.com"
] | riccardopomato@hotmail.com |
fb4551a5cb98b91e4fc032fac6cb75e762397dab | e8a9acb44199832e1f88cd69bcbae6a70eaeb47f | /src/SquareLattice1.py | cdb466604dfc176e2d35d1ac2843b57a01ac7c80 | [
"MIT"
] | permissive | juampabonilla1/summer-project-2021 | df81b2448cf6acda4f09bf493f5c5970f6323998 | 4b1f8148f2094228438202e7e6268c4dde19c537 | refs/heads/master | 2023-03-10T09:34:16.957483 | 2021-02-18T23:16:38 | 2021-02-18T23:16:38 | 340,182,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,120 | py | import Qubit
import Plaquette
class SquareLattice1:
def __init__(self, size):
"""
Initialisation of LxL periodic toric code lattice.
Notes:
* The dimension L of the LxL lattice must be even.
* The lattice has alternating parity/colour plaquettes.
Chessboard-like... | [
"juampabonilla1@hotmail.com"
] | juampabonilla1@hotmail.com |
fb0325e25eb512db1670e504520644a0e3367d85 | d1cda1783411b2794608b5e8d36cf558cdb9be0a | /jtk/listfiles.py | f6ac7807dfe1125a5875d379d30df57cb93f510d | [] | no_license | joeledwards/jtk | 68a9ade47a736b4b6822878ba440585e8f39ae4f | 703857280ada8f5bc3d310de97afa828ff921fcd | refs/heads/master | 2020-05-23T15:07:10.855766 | 2014-11-11T21:53:28 | 2014-11-11T21:53:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,610 | py | #!/usr/bin/env python
import glob
import optparse
import os
import re
import stat
import sys
"""
A simple tool, similar to the ls command, which provides the biggest missing feature:
prefixing of listed files with their relative or canonical path
"""
PATHS_NONE = 0
PATHS_ABSOLUTE = 1
PATHS_CANONICAL = 2
cla... | [
"joeledwards@customercentrix.com"
] | joeledwards@customercentrix.com |
6716dd63b9b62ad8b5ceac1c7b269df4a58df92d | 595c9c7aeacbe536525356207ae1ef1d85f9f12f | /bert/bm25_top100_test_write_results.py | e917d774b142cb15edab0ead66a76a11e0bfd3b0 | [
"BSD-3-Clause"
] | permissive | berkayalkan/cmpe493-term | 8d529f8123be6fbcbcf92de744b6f6c9c91894cf | 51662c1cf54fbb287c2547e74ac9066084d19812 | refs/heads/master | 2023-03-13T14:10:27.257833 | 2021-03-07T23:47:10 | 2021-03-07T23:47:10 | 325,397,556 | 0 | 0 | null | 2021-03-07T23:45:52 | 2020-12-29T22:13:15 | Python | UTF-8 | Python | false | false | 601 | py | import pickle
from file_operation import write_results
if __name__=="__main__":
f = open("input/bm25_all.pickle", "rb")
bm25_dict = pickle.load(f)
f.close()
bm25_top100_test_dict = {}
for i in range(2, 51, 2):
temp_bm25_dict = bm25_dict[str(i)]
sorted_bm25 = list(dict(sorted(temp_b... | [
"brkyalkn13@gmail.com"
] | brkyalkn13@gmail.com |
8a59a7dae5539de775b44ce14fd2617c4935163f | 32289f142a2e47bbb9470607886782036bdadc09 | /looping 7 - to find that number is a palindrome or not.py | 8a220f0f32916507321734d1321e4aab2b0dbd96 | [] | no_license | chakomash/python-3.0-basic-programs | a95178589bae432e9087cb28e3d6686b3e1510fb | 6dc5799d9518ffae6e544a6f1fe6d1b7665026d1 | refs/heads/master | 2022-08-03T11:28:00.977796 | 2020-05-29T18:45:29 | 2020-05-29T18:45:29 | 267,926,977 | 0 | 0 | null | 2020-05-29T18:22:36 | 2020-05-29T18:22:35 | null | UTF-8 | Python | false | false | 221 | py | n=int(input("enter a number"))
s=0
a=n
r=0
while(n!=0):
r=n%10
s=s*10+r
n=int(n/10)
if(a==s):
print("the number is a palindrome")
else:
print ("the number is not a palindrome")
| [
"noreply@github.com"
] | chakomash.noreply@github.com |
9b7334738193809ecf0fbf775654704d33b0a53f | e3ce8d42bf2afecc3ef94995386f0731610e2b5e | /exercicio4.py | c1b2820ff4fe33aafe6f037d0279920b17cd3c9e | [] | no_license | luanafortiz/aula3 | 26d150f3eba86cad5bf960b1ba050ad8407c987c | d521c9e711c86f828a6c8b5a9c9d2aca1cea9c91 | refs/heads/master | 2021-01-06T18:33:46.767696 | 2020-02-20T18:40:15 | 2020-02-20T18:40:15 | 241,441,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | x = 1
caracter = input('digite um caracter: ')
caracter1 = caracter
degrau = int(input ('digite a quantidade de degraus desejada: '))
while x <= degrau:
print(caracter1)
caracter1 = caracter1 + caracter
x += 1 | [
"luanadfortiz@gmail.com"
] | luanadfortiz@gmail.com |
7722060d91d7e85a924b668264b02a69f3cc3e46 | d15286610e015856f8530850afbf39e08c59a4d8 | /manage.py | 0eb14eafbedc6c3794afdfbfb1bbf6d92b7fa143 | [] | no_license | GiaEla/kalmia | 4389d82e92e802a685c13c68b7ccd3c108884801 | a97432482976137fe05251772ae6fda78b52990c | refs/heads/master | 2021-07-13T07:31:33.845770 | 2017-10-19T21:12:37 | 2017-10-19T21:12:37 | 107,043,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "kalmia.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that the
... | [
"lavricevaspela@gmail.com"
] | lavricevaspela@gmail.com |
42443cb6499ce86d0a03310e71cda7aa7d0de443 | 04ede512c840b6b65362f5b3d952ffd52a213d7a | /Basics/pernicious.py | c289bb96e4430128ce3bcf21533e3b9b1d78b5f9 | [] | no_license | not-an-anagram-lover/Python-Hello-World | 758407ede47a5e89f14d744c19a25dfb79c60017 | 689127b25aef9207a168723065b03fbccf575ab2 | refs/heads/master | 2021-09-17T13:10:58.337069 | 2018-07-02T07:07:29 | 2018-07-02T07:07:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 564 | py | #https://stackoverflow.com/questions/699866/python-int-to-binary?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
"""a=int(input('enter a number'))
print(a)
a=bin(a)
print(a)"""
b=int(input('enter another'))
x=format(b,'b')#not working
print(x)
x=int(x)
g=x
sum=0
while(x!=0)... | [
"noreply@github.com"
] | not-an-anagram-lover.noreply@github.com |
69093d96a03fc2ddc7f4fd1fb870114f283018ca | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03574/s625136603.py | 8c1ddbc3ce968e40601728c96995e7838eb37d66 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | h,w=map(int, input().split())
w1=['.'*(w+2)]
s=w1+['.'+input()+'.' for _ in range(h)]+w1
for i in range(1,h+1):
for j in range(1,w+1):
if s[i][j]=='.':
t=s[i-1][j-1:j+2]+s[i][j-1:j+2]+s[i+1][j-1:j+2]
s[i]=s[i][:j]+str(t.count('#'))+s[i][j+1:]
print(s[i][1:-1]) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ac8fab18e142bacb7e320a1eb8d9591f98d2df8b | fcc87644263c563a36e19a76ec7cbad168fd36ed | /dataset/stemToFile.py | a8e08816dec979ced694d39a6e41d4fd9191684a | [] | no_license | theonlydo/naive-bayes | f1a20226f4ae063d508f5a4367e10f3a42fd638b | c59deaf9a87a59b028ff11dbe50a07256048dc78 | refs/heads/master | 2022-07-04T18:49:35.384608 | 2020-05-16T12:47:11 | 2020-05-16T12:47:11 | 264,302,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 843 | py | import csv
from Sastrawi.Stemmer.StemmerFactory import StemmerFactory
from Sastrawi.StopWordRemover.StopWordRemoverFactory import StopWordRemoverFactory, StopWordRemover, ArrayDictionary
# create stemmer
factory = StemmerFactory()
stemmer = factory.create_stemmer()
factory = StopWordRemoverFactory()
stopwords = facto... | [
"ridho.adep@gmail.com"
] | ridho.adep@gmail.com |
bf6422eb78f6c700211eaab310ce54a6a70d1a4b | 22c56d6cb744a0b7a5879376bed0f8e12abbf357 | /14_xi/04_ParallelogramVOn4Lines.py | 3137178f0acbda5f06e2778f3972f981a83f2fb7 | [
"MIT"
] | permissive | mirefek/py_euclidea | 8854bd648e4e5cbadaca9d48fffb6f31d5a3447e | 8e400cbf36e3c8919fcc0032b7a95ce55012416e | refs/heads/master | 2023-08-30T14:12:28.195003 | 2021-11-16T21:02:20 | 2021-11-16T21:02:20 | 215,083,101 | 7 | 3 | null | 2021-10-05T15:56:38 | 2019-10-14T15:45:21 | Python | UTF-8 | Python | false | false | 1,105 | py | from constructions import *
def init(env):
A = env.add_free(263.0, 116.0, hidden = True)
B = env.add_free(488.5, 335.0, hidden = True)
C = env.add_free(140.0, 335.0, hidden = True)
X = env.add_free(280.0, 181.5, hidden = True)
l1 = env.add_line(A,B)
l2 = env.add_line(A,C)
l3 = env.add_line(... | [
"mirek@olsak.net"
] | mirek@olsak.net |
ee977d4256e3ec68006d3288301f797322b991c0 | 5308f19fa60215f2d44aa4530230075c245b3dad | /odoo/openerp/addons/base/res/res_config.py | 9f1963148f337367bb8ba5a626a6e991f8a33de9 | [] | no_license | ihyf/raspberry_pi | c5c5fe791f021de4356a442717450c815f858a81 | d8a531ae9ade5f3e1f49c7d1b21583fbe1b8c09e | refs/heads/master | 2020-06-11T07:57:19.140772 | 2017-01-04T12:00:59 | 2017-01-04T12:00:59 | 75,728,400 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,652 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of ... | [
"huangyingfei@hollywant.com"
] | huangyingfei@hollywant.com |
6e4322ec20aaed33338dac27baee5d5754f94362 | e04496844a7ba69196da845c965a3c04c297eacc | /power_bayes3.py | a80211b5b56329ed03603227976c53067c09440b | [] | no_license | jiangzhongkai/python_1 | 909857ac3b688421debb5c901b1d0ab6f8778f48 | 4289de470762c112f489bbc7b62046c67af12193 | refs/heads/master | 2020-03-17T05:07:44.938770 | 2018-05-22T05:13:39 | 2018-05-22T05:13:39 | 133,303,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,171 | py | # coding: utf-8
import numpy as np
import power_demand4 as pod4
import matplotlib.pyplot as plt
import math
import random
from sklearn.metrics import roc_curve
'''
本代码文件是利用误差数据来进行分类的,属于LSTM+Bayes的Bayes预测部分
1.根据之前power_demand4得到的误差数据集,连接训练集和测试集误差数据集。
2.再将纯误差数据和误差数据的标签合并,同时将训练的正常车辆数据集和测试的异常车辆数据集合并。
3.为了使得模型更加健壮,因此需要打乱数... | [
"865268033@qq.com"
] | 865268033@qq.com |
957ec6a92fdd50434b0a0f700c5efd39369d088b | 9607703f72032511f8d4ef3aae780fef487ce832 | /speechsyn/speaker.py | 6b9dcbcddbfc74a87991dd8580acf71196e51cb2 | [
"Apache-2.0"
] | permissive | sokolegg/speechsyn | 991879705c0714961d021650a6fd2b9915f1894b | 7d63d052b3d0b8dddf16f367594989ead5e35d9a | refs/heads/master | 2020-09-22T12:41:16.824864 | 2020-02-04T12:38:40 | 2020-02-04T12:38:40 | 225,198,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,056 | py | from __future__ import print_function
from speechsyn import hyperparams
from speechsyn.hyperparams import hyperparams as hp
import tqdm
from speechsyn.data_load import load_from_lines, load_vocab
import tensorflow as tf
from speechsyn.train import Graph
from speechsyn.utils import spectrogram2wav, plot_test_alignment
f... | [
"sokolegg@yandex.ru"
] | sokolegg@yandex.ru |
53502d11c495fd0841e4a3d9985b568cf2ef3613 | 5cfe4ee704f2362f33e9310a7344911c921ae41b | /src/app.py | b1fd8d6299c8a01b29adf2061fed1633557afb95 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Azure-Samples/azurite-tox-automation | 7136fe733b8188c0780d301d35115729eedbe502 | b124ccc1030c79500564f9ac322877796c8d93ff | refs/heads/main | 2023-09-02T05:49:09.159454 | 2021-11-20T15:40:08 | 2021-11-20T15:40:08 | 426,317,514 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,592 | py | from typing import List
from azure.storage.blob.aio import BlobClient, BlobServiceClient
from fastapi import APIRouter
import os
from dotenv import load_dotenv
BASE_DIR = os.path.abspath(os.path.dirname(__file__))
load_dotenv(dotenv_path=os.path.join(BASE_DIR, ".env"))
router = APIRouter(
prefix = "/api",
ta... | [
"gldnblgty@hotmail.com"
] | gldnblgty@hotmail.com |
f3fcbba0237d608e49a75d1fa5647d4f603bfbd2 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/request/KoubeiCateringPosPaymodeModifyRequest.py | 61eb98611f3cf9308bdfa7fdf4eec6bb8fc78aa6 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 3,979 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.KoubeiCateringPosPaymodeModifyModel import KoubeiCateringPosPaymodeModifyModel
class KoubeiCateringPosPaymodeModifyRequest(object):
... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
a639b163a4c5627eae8fd869de652c166d73a57b | c3661f55954d4255424ce4e6b5c26e0f6b69be6d | /gfx2/pycv/raster_ops.py | d216c4e6f0dbde6e68c5315c5e17fa393f4b08bb | [] | no_license | keithlegg/pyrender | 58413b0f9ee664d399f8570f30d737a6dc79c386 | 2ee1a66fab3d5bdc05a55c0c552fdbdc0d887393 | refs/heads/master | 2021-01-16T18:26:28.480423 | 2018-12-06T00:44:59 | 2018-12-06T00:44:59 | 100,080,373 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,563 | py | #!/usr/local/bin/python3
import os, sys, math
from PIL import Image, ImageOps
from pycv.constants import *
from pycv.point_ops import PointGen2D
class RasterObj(object):
def __init__(self):
self.ptgen = PointGen2D()
self.debug_msg = False
self.res_x = None
self.res_y = ... | [
"noreply@github.com"
] | keithlegg.noreply@github.com |
c6a75258bb5ae3ae1815a675b53e477103f5dc57 | 8f65eca40a8988bb2602ec0e13f2a94c4ef85459 | /models/google_model.py | 77c84e9a46f57c53b9cba3f62fbbbc7612da9e90 | [] | no_license | tonylearn09/emobot_server | 414a5de0d1cc2c0e29be312ba78a6d23cd546ae9 | a0dd6f37305f0b5fada61751df970519344f5f12 | refs/heads/master | 2021-08-23T05:05:44.277331 | 2017-12-03T14:24:13 | 2017-12-03T14:24:13 | 112,908,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 861 | py | from __future__ import print_function
import os, sys
from google.cloud import language
from google.cloud.language import enums
from google.cloud.language import types
import json
def google_eval(dialog, sentence_level=False):
"""Evaluate emotion with ibm Waston
Args:
dialog: a list of conversation (... | [
"tonyhung09@gmail.com"
] | tonyhung09@gmail.com |
779b6c677b3b9b513d6f6864adc0b7c4741437db | ea59827f3fcba3a030d2d665d7a6ddbf7c0e6903 | /dl/dltest/test_numpy.py | 48d37faa5ff03ae8cb69e35ae6c478f3b9e59793 | [] | no_license | PPPokerFace/FaceFinal | 23164522d9ac7fbc58757261dc2c049e3a7e8664 | 4d28a3bb093200669f2f7b337a907f035b650032 | refs/heads/master | 2020-04-15T01:43:16.048558 | 2019-06-17T16:07:16 | 2019-06-17T16:07:16 | 164,288,774 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 783 | py | import numpy as np
import json
import sys
sys.path.append("..")
import base64
def base64_encode_image(a):
# base64 encode the input NumPy array
return base64.b64encode(a).decode("utf-8")
def base64_decode_image(a, dtype, shape):
# if this is Python 3, we need the extra step of encoding the
# serial... | [
"653297351@qq.com"
] | 653297351@qq.com |
c2df6d6c9916fde341abb0d235790b8577ee05b0 | 2c838d3ffee6e357014dd0cd543ef841503d6647 | /src/Watcher/transforms/client2manufact.py | 96618403f6e2beb9ec4a0730b0ab2fe62594ced8 | [] | no_license | catalyst256/Watcher | 079bb0ffead77c46a814e01e851cf1b6a33b2678 | 14123f501643475fc97b64093284c1b509897550 | refs/heads/master | 2021-01-25T10:29:18.110796 | 2015-01-16T07:43:44 | 2015-01-16T07:43:44 | 14,232,782 | 21 | 6 | null | null | null | null | UTF-8 | Python | false | false | 1,333 | py | #!/usr/bin/env python
import sqlite3 as lite
from common.entities import WirelessClient, Vendor
from canari.maltego.message import UIMessage
from canari.framework import configure #, superuser
__author__ = 'catalyst256'
__copyright__ = 'Copyright 2013, Watcher Project'
__credits__ = []
__license__ = 'GPL'
__version__... | [
"catalyst256@gmail.com"
] | catalyst256@gmail.com |
7700fffdae40275608253f363c62056ca68e7520 | fbe5a5796c6caccf506220fd31da9ab2123cf70b | /hello_app/views.py | ee95d7678b713bd567458039562e2a7a7af3853c | [] | no_license | bhavanapamulaparthi/travello | af7d756151d993a70b5be2a8e7751407a7293172 | 318800aa1fb3f22bf1b4fa9e7b7c0bc88001adb6 | refs/heads/master | 2022-11-22T10:30:41.331128 | 2020-07-23T13:59:50 | 2020-07-23T13:59:50 | 281,964,890 | 0 | 1 | null | 2020-07-23T13:59:52 | 2020-07-23T13:51:47 | Python | UTF-8 | Python | false | false | 138 | py | from django.shortcuts import render
# Create your views here.
def home(request):
return render(request,'s.html',{'name':'bhavana'})
| [
"harish@Harishs-MacBook-Air.local"
] | harish@Harishs-MacBook-Air.local |
2777ad6217765b315c2d108e6d524be00b797a6b | 8a1fe2825d030710e85e9cf9e8f96e962f0f11af | /2.1_svm_mnist.py | efc647fc22ba271a5702815471cd3eaa151bc259 | [] | no_license | LeoSf/svm_py | 3e14ead2d57e3d0e94489b41b7a0556dee925961 | c897808e2be843badd6854ec1c93ae0801233f05 | refs/heads/master | 2022-11-16T06:27:02.314318 | 2020-07-14T06:33:40 | 2020-07-14T06:33:40 | 275,107,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,163 | py | # sklearn.svm: Support Vector Machines
# svm.SVC(*[, C, kernel, degree, gamma, …])
# C-Support Vector Classification.
from __future__ import print_function, division
from builtins import range
from sklearn.svm import SVC
from util import getKaggleMNIST
from datetime import datetime
# get the data: https://www.kaggle... | [
"leomedus@gmail.com"
] | leomedus@gmail.com |
574eb714f6cbcbcb773e632a2d27edc0432402d6 | 655f30959e533a831c2005572517f0deef57b0a9 | /train_test_split.py | 100735941add1f9524c2cb2c0459ee32d8322cdb | [
"MIT"
] | permissive | sdsmnc221/object_detection_demo | 83c14168810c665a36a7920594a8a0a540237fea | b8f3694becf0f43c06f0c1d3a4c4c0bcf0348f25 | refs/heads/master | 2020-08-09T18:42:17.341791 | 2019-10-10T16:08:29 | 2019-10-10T16:08:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,240 | py |
# Copyright 2014-2017 Bert Carremans
# Author: Bert Carremans <bertcarremans.be>
#
# License: BSD 3 clause
import os
import random
from shutil import copyfile
def img_train_test_split(img_source_dir, train_size):
"""
Randomly splits images over a train and test folder, while preserving the folder structure
... | [
"antr.2201@gmail.com"
] | antr.2201@gmail.com |
a3143b698f1c73cdafd04e395e97248c88d0e310 | 1ae19fcd224100d4e03a4243209e126f353c956c | /calendar/views.py | 013a2ca51795b3c38aed142d5e60611fdd8f9b68 | [] | no_license | pianojet/fyfitness | 9610813399023dcba340652672275ae003af56f0 | 93f3d826fd258e6f7155b25e88aa342e44a819e9 | refs/heads/master | 2021-01-21T07:54:10.048220 | 2014-04-17T20:48:48 | 2014-04-17T20:48:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | from utils import profile_required, hp_profile_required, tnc_required, goal_required
from datetime import datetime, time, timedelta, date
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.http import HttpResponse, HttpResponseRedirect, HttpResponseForbidden
fr... | [
"pianojet@gmail.com"
] | pianojet@gmail.com |
a3f7c14e2c8ac3418bce0802b0f6f7996aba29cc | 84d210947c6928ca347a6254670edd516ff8df4a | /Python/Grapher.py | b9015c968d3392236a5ada1954e0fecade5536bf | [] | no_license | husinthewei/SHT75-Humidity | 1e3bff63a92e0f294ae109defae07301af3b56c6 | b6cf55933d4ebff70b35532e5e9609f7e2d009e6 | refs/heads/master | 2021-01-11T05:29:12.122266 | 2016-10-21T21:27:25 | 2016-10-21T21:27:25 | 71,508,056 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,079 | py | import collections
from pyqtgraph.Qt import QtGui, QtCore
import numpy as np
import time
import pyqtgraph as pg
import matplotlib.pyplot as plt
import FileWriter
import datetime
from matplotlib.backends.backend_pdf import PdfPages
class Grapher:
#Displays the past 8640 samples.
#8640 samples represents 24 hour... | [
"wae3wae@yahoo.com"
] | wae3wae@yahoo.com |
c8b4d1a8b1b915b38b7ef0e64bf0488d364797c4 | 9b64a675635199c838bd7407b0ed17c1f08df2b8 | /Home/views.py | 8c8298443b3923f7f447b0d4b38e9465d53e02a2 | [] | no_license | prasetyaa/MVC_pythonanywhere | e15d4bbe86e92ab7433e7167a24c789d8ffbbe2a | a42c3f131910e446d1d14ea3ac812c25c82d0641 | refs/heads/master | 2020-04-22T14:11:02.883252 | 2019-02-15T04:19:07 | 2019-02-15T04:19:07 | 170,434,389 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | #from __future__ import unicode_literals
from django.shortcuts import render
# Create your views here.
def kegiatan_kegiatan_ATA(request):
return render(request, 'rumah/kegiatan_kegiatan_ATA.html', {}) | [
"intan@alphatech.id"
] | intan@alphatech.id |
e29899992d7b9d372aed601eae6f1f6896db9247 | a83dc7ccce7962addbb7a7d3f45eea1dac000a21 | /10day/2.py | 8d49febd380f81aa32131265dce0dbbe43835e22 | [] | no_license | liruixiong/1808 | 879bb90587db0a7073e1a9b5b6c98e7d754feaf9 | 45f67f0ea8b25a7a68efd07272f6f361eae625c3 | refs/heads/master | 2020-03-25T19:34:37.676624 | 2018-08-22T01:49:04 | 2018-08-22T01:49:04 | 144,089,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py |
at =float(input(" "))
y = float(input(" "))
mo = input("+-*/")
if mo == "+":
print(at+y)
elif mo == "-":
print(at-y)
elif mo == "*":
print(at*y)
elif mo == "/":
print(at/y)
| [
"1356703763@qq.com"
] | 1356703763@qq.com |
31fe631c72c7f275c3d385b76ac97806f3f3636c | ddcc03cb7e9e69fa297cd1287bb99c3973605160 | /Aula 9/ex2.py | 4069b62ee8f8f0933aa3c4d6cfb9ee871b72416b | [] | no_license | GabrielRomanoo/Python | eb9a3e9ba8228eab071ded942fac67e98c1418a8 | 495fc682de0f28cedb57c084ad1cb801bb316a3a | refs/heads/master | 2021-07-05T13:53:49.693326 | 2021-01-07T22:46:33 | 2021-01-07T22:46:33 | 219,529,712 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | # Faça uma função que retorne a quantidade de
# espaços presentes em uma string.
from functools import reduce
x = 'Universidade Catolica de Santos'
espaco = list(filter(lambda s: s==' ', x))
#filter(funcao, sequencia)
#Retorna lista que pode ser de tamanho diferente da
#sequencia original. Retorna na ve... | [
"noreply@github.com"
] | GabrielRomanoo.noreply@github.com |
cf1742ba9dff8be93530c38000c10e8be2674bf8 | 694832900728bc843113da521135567b12336029 | /LIST/反转链表2.py | ae3a345b09a7a7b7ea9bbcbf2471fc9ee0cc264e | [] | no_license | earsonlau/westworld | 42b47804d1af18325e7c7785663e57805787bce4 | 60b1618f999d713d97514b9e512f70a53b46a2c8 | refs/heads/master | 2023-08-05T05:53:00.476355 | 2023-08-01T11:27:15 | 2023-08-01T11:27:15 | 255,011,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,198 | py | # 反转从位置 m 到 n 的链表。请使用一趟扫描完成反转。
#
# 说明:
# 1 ≤ m ≤ n ≤ 链表长度。
#
# 示例:
#
# 输入: 1->2->3->4->5->NULL, m = 2, n = 4
# 输出: 1->4->3->2->5->NULL
# 思路:
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
# 反转以 head 为起点的 n 个节点,返回新的头节点
def reverseN(self,head,n):
... | [
"earsonlau@gmail.com"
] | earsonlau@gmail.com |
b023906757f0266c579b3042d843bdd4da38d017 | 8126291334a4288f51b1116ea31e953debf07039 | /SRC/engine/IO/propertyoutput.spy | 11311550633bb57671c61075db7d567d2fda3223 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | jumpingyu/OOF2 | 846a7dd506f029535153834607b698ce32dc155d | 31a25398b046c1963859dd96785329d2a9af8681 | refs/heads/master | 2020-05-21T09:12:07.013560 | 2019-04-02T21:05:49 | 2019-04-02T21:05:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,216 | spy | # -*- python -*-
# This software was produced by NIST, an agency of the U.S. government,
# and by statute is not subject to copyright in the United States.
# Recipients of this software assume all responsibilities associated
# with its operation, modification and maintenance. However, to
# facilitate maintenance we a... | [
"lnz5@rosie.nist.gov"
] | lnz5@rosie.nist.gov |
7ccfd14dead95056845a44a35d88d23563fec52b | 489bec15ce120ee8bb28a251cee4625da1e9a5f8 | /mimiron/vendor/dockerhub.py | bb792bc5f07e56878bd13dfb9e8bbadc19283aa9 | [
"MIT"
] | permissive | Nirovision/mimiron | 1fc40b3077a2852fec17ba282e1a359e109cd3c7 | adba1e762b1ae272c833f1843b179f3438f20774 | refs/heads/master | 2022-03-20T02:49:48.623595 | 2018-01-18T04:33:30 | 2018-01-18T04:33:30 | 80,687,010 | 0 | 0 | MIT | 2019-10-22T23:51:38 | 2017-02-02T02:42:18 | Python | UTF-8 | Python | false | false | 2,353 | py | # -*- coding: utf-8 -*-
import requests
import json
from mimiron.exceptions.vendor import InvalidDockerHubCredentials
from mimiron.exceptions.vendor import DockerConnectionError
class DockerHubAuthentication(object):
def __init__(self, username, password, org, generate_token=True):
self.username = userna... | [
"david.vuong256@gmail.com"
] | david.vuong256@gmail.com |
45ab33b9b716d44339d032313a4da2826ad54d87 | 3f140decb8daedf23dbb09aa7da2a8203f76ce70 | /json_utils.py | aba290327cb01f5fb9fb056f72f7f9f627416be2 | [] | no_license | amazingsmash/OSM-LiDAR-Segmenter | 9c3e61b33ce3506640f5226debe8d0a8217608df | 527679e4d1de803e3572259f5f1127865c24cf26 | refs/heads/master | 2022-07-17T07:30:59.112367 | 2020-05-21T11:21:20 | 2020-05-21T11:21:20 | 233,594,238 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | import json
import os
def read_json(filename):
with open(filename) as data_file:
data = json.load(data_file)
return data
def write_json(data, filename):
folder = os.path.dirname(filename)
if len(folder) > 0 and not os.path.isdir(folder):
os.makedirs(folder)
with open(filename, ... | [
"josemiguelsn@Joses-MacBook-Pro.local"
] | josemiguelsn@Joses-MacBook-Pro.local |
17dee18492f3cda5da9d9d51a334e3a9d30cb7b9 | 9f28c77deec48ca899f560d41029297ae8d5deb0 | /coreConcepts/coreconcepts.py | 06f0c3ab743fcdd18f63172fcb270e80e02a056c | [] | no_license | saralafia/cc-arcpy | 83374b11ce54b0df8234c622b7abe5b4f6d71e95 | f48586af573ad50955a3119b53831d1c151ca376 | refs/heads/master | 2021-05-31T01:15:36.340914 | 2016-01-30T00:59:23 | 2016-01-30T00:59:26 | 50,746,419 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,993 | py | # -*- coding: utf-8 -*-
from fields import *
from utils import *
class CcField(object):
"""
Class defining abstract field.
Based on Field.hs
"""
def __init__(self, fieldFunction, geoObject, geoEvent):
""" Define appropriate parameters for construction of the concrete object """
# ... | [
"thomasahervey@gmail.com"
] | thomasahervey@gmail.com |
441ae3e5ed84cdfb6b25ea33d6dd5ef965f496a4 | 64f4567440971011d62c01dd06c11d4231bf7075 | /exceptionHandling/exception.py | 03f83b0c23da789249ba7b721a9a457ef992e725 | [] | no_license | harisankarkr/luminarpython | 4301f9e4833d69c9edd8e9ca67ac82c6b38fa388 | 203f22e676448869be61382214f0e6bbe78992d2 | refs/heads/master | 2023-02-20T21:13:32.889044 | 2021-01-25T03:05:19 | 2021-01-25T03:05:19 | 315,543,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | no1=int(input("enter number one:"))
no2=int(input("enter number two:"))
try:
res=no1/no2
print(res)
except:
print("division is not possible for this number")
try:
res=no1+no2
print(res)
except:
print("addition is not possible")
finally:
print("thank you")
print("visit again") | [
"you@sankarhari165@gmail.com"
] | you@sankarhari165@gmail.com |
d00cc988246416b08ae75b55b63a8621cb26a24a | eded209ea550e624a5d55e0c510dbedad43ae2d0 | /ds_save_manager.py | 1aed05b7e41c4746e3fe0ce1e9d47694de0093e4 | [
"MIT"
] | permissive | kurtamohler/ds-save-manager | 9b941b06fd1182ba5369dc11daa1ffc16b1d447d | 99bcd15fc744357513590777a2d2ab8d16e5b540 | refs/heads/main | 2022-11-13T09:02:07.326142 | 2020-07-09T01:03:37 | 2020-07-09T01:03:37 | 278,220,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,018 | py | #!/usr/bin/env python
import argparse
import os
import sys
import distutils.dir_util
import datetime
import warnings
def get_env_var_path(var_name, default_path_from_home):
path = os.environ.get(var_name)
if path is None:
home_dir = os.environ.get("HOME")
if home_dir is not None:
pa... | [
"kurtamohler@gmail.com"
] | kurtamohler@gmail.com |
5f95567bceaf7b570e56328ed86f10ff0b772f05 | 940d7b93fb27e8eead9b6e52bc5c7444666744dd | /python/src/Demo/cgi/cgi2.py | d956f6538c63219fc0c7486a6b8aec4cd0f38de9 | [
"GPL-1.0-or-later",
"LicenseRef-scancode-other-copyleft",
"Python-2.0",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-python-cwi",
"Apache-2.0"
] | permissive | pilotx45/sl4a | d446531d310cc17d93f24aab7271a0813e8f628d | 150e3e46b5103a9b9a391034ef3fbc5bd5160d0f | refs/heads/master | 2022-03-24T19:48:30.340479 | 2022-03-08T16:23:58 | 2022-03-08T16:23:58 | 277,016,574 | 1 | 0 | Apache-2.0 | 2022-03-08T16:23:59 | 2020-07-04T01:25:36 | null | UTF-8 | Python | false | false | 472 | py | #!/usr/local/bin/python
"""CGI test 2 - basic use of cgi module."""
import cgitb; cgitb.enable()
import cgi
def main():
form = cgi.FieldStorage()
print "Content-type: text/html"
print
if not form:
print "<h1>No Form Keys</h1>"
else:
print "<h1>Form Keys</h1>"
for key in f... | [
"damonkohler@gmail.com"
] | damonkohler@gmail.com |
b6bde677aac4f26f15c0fe037c8ece62d778b970 | f4de413ad77ffaa9b2e7d65e1579a8d2696c0c42 | /classifier/rnn.py | 93be5b6baf981193a36d1dee3fc2ddf89ffa91f5 | [] | no_license | BinbinBian/Parable | b4d93d4fef2bb02f19cb3571501c8a8162045ff1 | f2ceb0b9a5749db7578c95edcbd2a26adb7249cf | refs/heads/master | 2021-01-17T18:44:06.129814 | 2016-05-07T06:13:35 | 2016-05-07T06:13:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | from rnn_layers import *
import theano
import numpy as np
class RNNEncoderDecoder(object):
"""
A RNN Encoder-Decoder Framework
"""
class StochasticRNN(object):
"""
RNN that can encode arbitrarily long sequence
(thousands of time steps)
(best for QA, Paragraph chunking tasks)
""" | [
"leo.niecn@gmail.com"
] | leo.niecn@gmail.com |
7125e25c38dacab3919c4bba09801be80cb2f3c3 | bc20e62ae6d256e599d1f8d5c87508bab71f6b64 | /input.py | ed8d222f66f44b2a4e60b511cdc83945718a5865 | [
"MIT"
] | permissive | MichealGoldman/python_samples | efe5d67eb1f3160fd7499b86a40ebddcaa9086a2 | c4cd8af3cee99a5199dd2231f182240c35984b97 | refs/heads/master | 2021-09-07T03:23:41.933049 | 2018-02-16T14:43:56 | 2018-02-16T14:43:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,060 | py |
def firstArg():
print("\tPlease choose environment to push to:\n")
print("\t1 - Production")
print("\t2 - QA")
return getFirstResponse()
def secondArg():
print("\tEnter full path to file\n")
return getSecondResponse()
def getFirstResponse():
try:
env = int(raw... | [
"noreply@github.com"
] | MichealGoldman.noreply@github.com |
0fd72ad87e2508744a10dd94eab65a8c9f0ac602 | bf76258e4c95a76c10942332d96eb22c1b149511 | /project/register/migrations/0001_initial.py | 8e9948ab078b010b6cfa86ceddb7fb5ab46f56d3 | [] | no_license | sahilchhillar/Shake-Bike-Sharing-website | bd59361fb467e6fa0cc872d81773af81e4507e8b | 0b55274294805a14ea15b486757fe779d4cd1cc4 | refs/heads/master | 2023-09-05T17:32:17.187503 | 2021-11-17T23:55:31 | 2021-11-17T23:55:31 | 420,390,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | # Generated by Django 3.1.7 on 2021-10-14 12:12
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Register',
fields=[
('id', ... | [
"panchalchh@outlook.com"
] | panchalchh@outlook.com |
42931988a9e68bd1b649befed66096c6e42a742e | 66d79bfbee00191ea54a3cf762f8de0d359758e9 | /src/models.py | 7948e0dfe7178b673734f0b0da0d04cce7c32ed7 | [
"MIT"
] | permissive | personads/smu | 19bb748d77da82042d4eae5316044f90760384c9 | e954b17a55c2ccbeaa7030b67d7ff5e3e6cda1fe | refs/heads/master | 2021-05-13T11:50:16.986621 | 2018-01-11T19:18:56 | 2018-01-11T19:18:56 | 117,137,779 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 13,499 | py | '''
SMT Tools
'''
from utils import *
from math import log, exp
from collections import defaultdict
from sys import stdout
#
# functions
#
def train_model1(corpus, iterations, verbose=False) :
'''
EM training function according to IBM Model 1
returns the translation probabilit... | [
"work@personads.me"
] | work@personads.me |
484968ae72d6124a5b058424f30e432f7844d3b0 | 77a5332852c30c6cc52378e39d1a87a93b0d614a | /scripts/get_windows_temperature.py | 2234ba4554f4fd9969f8588596e39ab0f0bb2b29 | [] | no_license | alexandre-mazel/electronoos | b6798bd81e5d81490fa6b7c906cdb753f0149682 | 12217d53c68a2fc3c1f9b74876fc2699e764fcba | refs/heads/master | 2023-08-17T11:04:51.920710 | 2023-08-14T11:54:31 | 2023-08-14T11:54:31 | 30,472,238 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,369 | py | #way to get temperature on windows but:
# nothing works on my ms4
import ctypes
import ctypes.wintypes as wintypes
from ctypes import windll
def othermethod():
import wmi
w = wmi.WMI()
print(dir(w))
print(w.Win32_TemperatureProbe())
#print(w.Win32_TemperatureProbe()[0].CurrentReading) # not filled ... | [
"amazel@aldebaran.com"
] | amazel@aldebaran.com |
38c1b97f98e55e8fc3eab0cdf5da3c49433ad9ee | 37974a660f49b583c91e889a69bfae096e18a012 | /twoSumHash.py | e8f1041e8146ab5d2ba57d55a1753996cb95a488 | [] | no_license | ShamikBasu/Basic-Interview-Codes | 223aef9824513a5d3d8ace2c3c80777d2df6ee5e | 12d55c60b356321e8955c2a6ea2419fb6b04bbf8 | refs/heads/main | 2023-04-27T01:39:30.815182 | 2023-04-17T13:11:28 | 2023-04-17T13:11:28 | 302,637,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | n=int(input("ENTER THE LENGTH"))
a=[]
for i in range(0,n):
a.append(int(input()))
nums={}
t=int(input("ENTER THE Target"))
for num in a:
if t-num in nums:
print([t-num,num])
else:
nums[num]=True | [
"noreply@github.com"
] | ShamikBasu.noreply@github.com |
35727edd3e3b18e4298f87b750ad406076489f4c | a3e1283726b1b9e0c6280d193f9d29d129060981 | /server/speedy-notifier/dev.conf | 2bb01b320d320e5b25b62b5053144d68da36f2c8 | [
"Apache-2.0"
] | permissive | michaelmaguire/twosidedsearch | f3d89811e5ce5ba99f717fd2d3e1058fc35fb2ea | 67ec32c92ffdeb222b7fdf69cb0d9c8270dbcd0e | refs/heads/master | 2021-01-10T06:31:18.018244 | 2015-11-09T02:33:54 | 2015-11-09T02:33:54 | 45,808,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | conf | # -*- Mode: Python -*-
#
# This is the configuration file for 'speedy_notifier'.
GOOGLE_BATCH_SIZE=50
GOOGLE_MAX_REQUESTS_PER_SECOND=1
GOOGLE_INITIAL_BACKOFF=1
GOOGLE_MAX_BACKOFF=60
GOOGLE_API_KEY="AIzaSyDlHRufS28XTavwzHFjj6eSlPeiT3dgN9k"
APPLE_BATCH_SIZE=100
APPLE_MAX_REQUESTS_PER_SECOND=1
APPLE_INITIAL_BACKOFF=1
AP... | [
"munro@ip9.org"
] | munro@ip9.org |
89a1524551dcef2f11f6d445427877eb4b1450a4 | 21609f44b26d68aeffe9547b38735043c1940159 | /list03.py | 90b63ee1bb770db4565bbf961512ea4bce84162e | [] | no_license | rlatmdwn01/Python | 85a8a6a7612cc2fbdb166518f285223970ce21f3 | 21b405aab9f4f532d780ebc66fc05b8267eae3c6 | refs/heads/main | 2023-01-20T03:33:19.670856 | 2020-11-18T08:58:17 | 2020-11-18T08:58:17 | 313,662,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | list_a=[0,1,2,3,4,5]
print("#리스트의 요소 하나 제거하기")
#제거 방법[1]-del
del list_a[1]
print("del list_a[1]:", list_a)
#제거 방법[2]-pop()
list_a.pop(2)
print("pop(2):",list_a) | [
"noreply@github.com"
] | rlatmdwn01.noreply@github.com |
bb5b811d9537528cae86fecc4041513611da8c81 | 89f77da07bddeea68d7a4af3f0bf7ba6ae88de80 | /cgi_programming/launching_jupyter.cgi | 8f09ff8158be623fbe32211f3e13221e1767f8e9 | [] | no_license | Harshhg/Python | f865c9c727c288d85c961fc8faff4079bfb46e01 | 0322737d0d94bf2fe0886317f5087b405db4eddb | refs/heads/master | 2020-04-27T01:53:00.908413 | 2020-01-08T13:18:29 | 2020-01-08T13:18:29 | 173,977,881 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | cgi | import cgi,subprocess
import cgi
import cgitb
import os
import time
import webbrowser
cgitb.enable()
print("Content-type:text/html")
print("")
web=cgi.FieldStorage()
data=web.getvalue('install')
print("Jupyter is installing and running")
subprocess.getoutput('sudo pip3 install jupyter')
os.system("jupyter-notebook... | [
"noreply@github.com"
] | Harshhg.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.