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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7a9c2a6a14bd879555bb2a0a59dd99834c73ebe6 | ac43c0aeae3d86018272f8cbbaca1c1a5a6f2ed6 | /tcp_logic.py | 7b23e4401b33243a91af87a4a60e47b9682a17f2 | [] | no_license | jeekMic/tcp_udp | b15ce1d1621bd52752ed7e5f01efb881b78cc38c | e76fa616bc638bc51ee961b948eeb771503206fb | refs/heads/master | 2020-03-22T00:19:10.170361 | 2018-09-08T00:51:16 | 2018-09-08T00:51:16 | 139,237,437 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 20,337 | py | import codecs
import os
from typing import Union
from PyQt5 import QtWidgets
from PyQt5.QtCore import QDir, Qt, QObject
from PyQt5.QtWidgets import QFileDialog
import tcp_udp_web_ui
import socket
import threading
import sys
import stopThreading
from callscan import MyDialog
from constant import Constant
import binasc... | [
"hongb@suchness.cn"
] | hongb@suchness.cn |
1b2e41d605317135cb1b0f6791105af3b45236f1 | f9334d8747001e2cd0dcbd7b4f91da862ac0972c | /hints/parameters.py | 64d351c1f3922957f2f2ea79481b941b07744d52 | [] | no_license | hassanshamim/PyCon2018-Luigi | b93c79d0458e15bfd74b46c8a70aa0fd079ca77a | 1808f82bc541ab32cfa5fadd015e79d0cae8a0cf | refs/heads/master | 2020-03-16T21:21:43.587186 | 2018-05-12T04:41:39 | 2018-05-12T04:41:39 | 132,995,693 | 0 | 0 | null | 2018-05-11T05:57:00 | 2018-05-11T05:57:00 | null | UTF-8 | Python | false | false | 581 | py | import datetime
import luigi
# check out all the parameters: http://luigi.readthedocs.io/en/stable/api/luigi.parameter.html
class ParameterizedTask(luigi.Task):
example_str = luigi.Parameter(default='foo')
example_bool = luigi.BoolParameter(default=True)
example_int = luigi.IntParameter(default=0)
ex... | [
"aehacker@us.ibm.com"
] | aehacker@us.ibm.com |
e9be9725fc7b0b9fa3f7aa5a0ec8cd44eea5c3eb | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Keras_tensorflow_nightly/source2.7/tensorflow/contrib/model_pruning/python/layers/layers.py | 466daf204a1ae86a7f37107342046305ea7249fc | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 15,360 | py | # Copyright 2017 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 applica... | [
"ryfeus@gmail.com"
] | ryfeus@gmail.com |
fe6a4f75903b214d2729c47e622c6bb31e86b8e4 | 10165fce7cd9ee32a488c1fbf36b17b4951bc6f6 | /form_template/migrations/0002_alter_template_created.py | 4ca195858c13f124e750dee248c7cf52e2d36e59 | [] | no_license | silvareal/formplus_backend_test | 3a08839f6f35dabcffba5683fb3f606b344d0999 | 2df537462abcead48591737cae1b833fa4011b56 | refs/heads/master | 2023-07-21T04:49:30.004838 | 2021-09-05T12:55:48 | 2021-09-05T12:55:48 | 399,594,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | # Generated by Django 3.2.6 on 2021-08-28 08:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('form_template', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='template',
name='created',
... | [
"sylvernus@glade.ng"
] | sylvernus@glade.ng |
2832317445d8bab858ee91119facaec6ec590920 | 0ed7c1e25a7fbaadcfb92a265319aabe24a6a13b | /qualitative2.py | 79074b14a223b087627a11ecaff2246127b2ca5b | [] | no_license | Charles1104/General_Assembly | af9d59b720b3914706d04789ca0bee20fb31eb1f | 50e7f389440d3e3914a885c833bce0a8131f51d0 | refs/heads/master | 2021-01-01T04:04:24.460197 | 2017-07-14T13:23:41 | 2017-07-14T13:23:41 | 97,118,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | import pandas as pd
import numpy as np
import plotly.plotly as py
import plotly.graph_objs as go
import pandas as pd
import matplotlib.pyplot as plt
import thinkplot
import thinkstats2
from scipy import stats
# Read the data file
data = pd.read_csv('dataset.csv', encoding="ISO-8859-1")
data['status_binary'] = data.st... | [
"charles.xavier.verleyen@gmail.com"
] | charles.xavier.verleyen@gmail.com |
327f2f2026f9430ca3193723156557269c394afc | 5829832fde945839791862325ba65f5dcf572bf1 | /lib/api_lib/teacher/teacher_zsq_urls.py | 16e5d8ef21dcd50968f7d20e4043b1fb7c34ded5 | [] | no_license | tianyantao/utm | 3a8d177918611f8084cfca28073e59b59607b949 | fd10f371a6aeb3699876fb823e6f705ab24110e4 | refs/heads/master | 2023-01-19T09:53:26.735929 | 2020-11-23T12:52:18 | 2020-11-23T12:52:18 | 315,312,748 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,730 | py | from config.config_case import ConfigCase
class TeacherZsqUrls:
def init_zsq_urls(self):
configcase = ConfigCase()
baseurl = "{}://{}".format(configcase.PROTOCOL, configcase.HOST_WEB)
edu_baseurl = "{}://{}".format(configcase.PROTOCOL, configcase.HOST_TEACHER)
'''新高一'''
s... | [
"tianyantao@mistong.com"
] | tianyantao@mistong.com |
feb9633db3d20c6b74ee61d787c50bb6d7521d87 | 55e414fe2c3c89bc6c9eae702ff8fb6373d5fad8 | /tests/source_test.py | 6a94d8e8d90c35697ca82e61bad45e0f2675cf8b | [
"MIT"
] | permissive | rashidaysher/news-app | ab7ae5e9d474ec9cac1b135a742ec151997a5800 | 9e63fb2308f11d119631cfeaec1720fb25928f7c | refs/heads/master | 2023-08-10T21:49:19.299945 | 2021-09-20T06:43:34 | 2021-09-20T06:43:34 | 405,065,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | import unittest
from app.models import Sources
class SourceTest(unittest.TestCase):
"""
Test class to test the behaviour of the news class
"""
def setUp(self):
"""
"""
self.new_source = Sources('Test id','Test name','Test description','Test author', 'Test publishedAt', 'Test ... | [
"aisha.ahmed@student.moringaschool.com"
] | aisha.ahmed@student.moringaschool.com |
89a79c876ce5c4c0c52c8afbef6bf3a4c8319b64 | 8f38ebd83a5d4f6c5c6355e0f93628ae24ae14e1 | /pdf_image1.py | 5b809324196af5db7c872fba643d7cb92c83dfc9 | [] | no_license | muhammedhassanm/Deep_Learning | e05df2389f62a99295b146dc605d8380e007cf2a | bae9d17ed60ad184687e032744c723cb7af7dcdc | refs/heads/master | 2022-11-12T02:32:31.901599 | 2020-10-22T10:42:35 | 2020-10-22T10:42:35 | 222,718,082 | 0 | 0 | null | 2022-11-04T19:08:53 | 2019-11-19T14:42:03 | Jupyter Notebook | UTF-8 | Python | false | false | 879 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Dec 13 17:22:13 2019
@author: 100119
"""
import os
import time
import uuid
#import tempfile
from pdf2image import convert_from_path
start = time.time()
PDF_DIR = 'C:/Users/100119/Desktop/PRUDENTIAL/CREDIT_CARD_NO_MASKING/data/Forms'
save_dir ='C:/Users/100119/Desktop/PRUDENTI... | [
"31989237+muhammedhassanm@users.noreply.github.com"
] | 31989237+muhammedhassanm@users.noreply.github.com |
a7bde11c9a4a828fb8f86b1dac174e06132e0a01 | acd374bef15b7f826a2407bb7e7093967a48abda | /nsl/ast/__init__.py | f8acba9af38f3f7fc27a3e46350bd8a1e6196a7b | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | Anteru/nsl | 7402e8fe747a27c3cc564b86317ed9a92c61cc3a | a8c8ca793087c4bd33a6bc640ec58ee3f0a6ba12 | refs/heads/main | 2022-10-08T12:50:10.237980 | 2022-09-18T11:52:13 | 2022-09-18T11:52:13 | 134,078,943 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,816 | py | import collections
import collections.abc
from nsl import op, types, Visitor
from enum import Enum
import bisect
from typing import List
class SourceMapping:
def __init__(self, source, sourceName = '<unknown>'):
self.__sourceName = sourceName
self.__lineOffsets = []
currentOffset =... | [
"dev@anteru.net"
] | dev@anteru.net |
891b7f7087e5314bc894f00b4cca3d76f14503f0 | fcefc860dea5db4d1023779012fa8f598186cd63 | /MBIT/BACK-END/MBIT/settings.py | 0d19f3972ee31783f43746a124f0c8aea36f4932 | [] | no_license | POPCORN-DOG/web_project | 59a47c1e079e2be4c28d486305788391bb42c502 | 606e30d0ea47fcba291f3b1c6fe496eb2d89522e | refs/heads/main | 2023-04-09T16:18:02.369107 | 2021-04-28T18:04:50 | 2021-04-28T18:04:50 | 345,257,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,070 | py | """
Django settings for MBIT project.
Generated by 'django-admin startproject' using Django 3.1.7.
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/
"""
from pathlib im... | [
"dudwlsrla21@gmail.com"
] | dudwlsrla21@gmail.com |
b74c0bc34641278eb029a1c82ac27043e45d22a1 | 248a02bdf0b1d16c5edf98614f23c843efd78bed | /HW2/DecisionTreeClassifier.py | 5b6b70f06c87d518c9c992578657b59815e35649 | [] | no_license | kapilmulchandani/DataMining-CMPE255 | 24f0834c463799592295c96313323c9de2c2a2a9 | 7726cb77de8b2390180c1e6609011f8cf015899a | refs/heads/master | 2020-07-25T06:04:48.497675 | 2020-01-23T15:18:33 | 2020-01-23T15:18:33 | 208,190,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,280 | py | from sklearn.tree import DecisionTreeClassifier
from sklearn.model_selection import train_test_split
from sklearn.metrics import confusion_matrix
from sklearn.tree import export_graphviz
from sklearn.externals.six import StringIO
from IPython.display import Image
from pydot import graph_from_dot_data
import pandas as p... | [
"kapilchandralal.mulchandani@sjsu.edu"
] | kapilchandralal.mulchandani@sjsu.edu |
c37df82c03d8c388b9e3db8a43f0734c9ab53a55 | ce8afb1017926dda12fa9b586e0288886f9722a4 | /blog/decorators.py | 3e799c88871cd0dbc80f296963a0d8eb7e318750 | [] | no_license | Mortrest/Django-polls | fdfa3efc2a6ef902bbdd3a8a6e338af7d058fcd4 | c1986fa4125b7da829580e29ed8b5c34f6275996 | refs/heads/master | 2022-12-24T22:43:18.059860 | 2020-10-01T08:23:27 | 2020-10-01T08:23:27 | 299,570,189 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | from django.http import HttpResponse
from django.shortcuts import redirect
def unauth_user(view_func):
def wrapper_func(request, *args, **kwargs):
if request.user.is_authenticated:
return redirect ('home')
else:
return view_func(request, *args, **kwargs)
return wrapper_... | [
"ali80af@gmail.com"
] | ali80af@gmail.com |
9caf74e90af18319d33cec357cfbb4d17d4c4b7d | 20650b5dcfa43f28fa475738af62e74970836151 | /bulk_populate_profiles.py | f0bbefe1fb65c675c12098d5a3d23953d388ea19 | [] | no_license | lmachadopolettivalle/camels-database-schemas | 6fe6c0cb89cf8ca5388f8d38aaf1476a68f16d9b | a4ac3147b9eeebe68d008297c96159eaaf3ed4ae | refs/heads/main | 2023-06-15T20:50:46.005025 | 2021-06-29T09:03:04 | 2021-06-29T09:03:04 | 315,830,157 | 2 | 1 | null | 2021-06-29T09:03:05 | 2020-11-25T04:38:30 | Python | UTF-8 | Python | false | false | 302 | py | import os
import subprocess
filenames = os.listdir()
for filename in filenames:
if not filename.endswith(".npz"):
continue
command = f"""python3 populate_profile_data.py -f "sample.db" --profile_filename "{filename}" """
cmd = subprocess.run(command, shell=True)
print(cmd)
| [
"noreply@github.com"
] | lmachadopolettivalle.noreply@github.com |
f536843fd3e985980ccbd96c847fd641a3b73c45 | 7d33f3ffd3e8af75abb60959668d070b9d595e30 | /my_computer_vision/connected_component_clean.py | efd5858009d029e8c7a39f1c8c555a5eca195530 | [] | no_license | XuChongBo/pydemo | 33ad4615158b39b79ad81a92dcbf5d27fb60184f | ded0d15a22ed8c606deb35b83357fe7eeb9cb6af | refs/heads/master | 2021-06-13T09:11:57.564740 | 2020-09-13T11:24:32 | 2020-09-13T11:24:32 | 15,645,208 | 0 | 1 | null | 2021-03-19T22:24:58 | 2014-01-05T04:08:47 | HTML | UTF-8 | Python | false | false | 2,372 | py | from PIL import Image
from pylab import imshow,show,subplot,array,figure,gray,uint8,hist
import numpy as np
from pylab import jet
from skimage import filter
from scipy.ndimage import filters,measurements
from scipy import stats
#file_name='./data/das-0.jpg'
#file_name='./data/EngBill21.jpg'
#file_name='./data/sample1... | [
"xcbfreedom@gmail.com"
] | xcbfreedom@gmail.com |
d591f7b0205b9f53ea686b13c7b45b5cf9130cac | d0ff9af885dc01de43ae7bdd2d26d6370c7b7ab5 | /unsup_vvs/network_training/optimizer.py | 8a9074a8a6b8a52355defc3ceb1a37b7cea592c6 | [] | no_license | augix/unsup_vvs | a09f89c7d002006f59ffbe223c9469e959949e04 | 168ed0d068d27b7a7ca1dd5c1ebc28fbe84f8c7c | refs/heads/master | 2023-07-17T05:55:27.630844 | 2021-06-24T01:27:28 | 2021-06-24T01:27:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,966 | py | import os
import copy
import tensorflow as tf
import numpy as np
import logging
if 'TFUTILS_LOGFILE' in os.environ:
logging.basicConfig(filename=os.environ['TFUTILS_LOGFILE'])
print ("USING LOGFILE: %s" % os.environ['TFUTILS_LOGFILE'])
else:
logging.basicConfig()
log = logging.getLogger('tfutils')
log.set... | [
"chengxuz@node07-ccncluster.stanford.edu"
] | chengxuz@node07-ccncluster.stanford.edu |
296f3efdb1aeb0f6e2d0c8152bb030aa39addcb7 | f1c24389196ef2a5eefebaedc7abf684ea930733 | /serverQt.py | fe54b7f3a5c8c36dbb44c12d1aceb9ec2d72d4a3 | [] | no_license | SarathM1/PatientMonitoringSystem | d68d7ebf801fad9504a6462f370c8843d002ed25 | 720d18bbf825a212b5dd2553b8837f73775769d5 | refs/heads/master | 2021-01-01T05:49:51.969198 | 2015-02-21T09:58:40 | 2015-02-21T09:58:40 | 31,121,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,907 | py | from PyQt4.QtCore import *
from PyQt4.QtGui import *
import sys
import socket
from PyQt4 import uic
import socket
import threading
import gui
h='0.0.0.0'
p=5000
class myThread(threading.Thread):
def __init__(self, threadId, name, counter):
threading.Thread.__init__(self)
self.threadId = thread... | [
"sarathm00@gmail.com"
] | sarathm00@gmail.com |
64da5162935266d4ef9f51a50b0ab4a510b0c7ff | ed2bdbe14b7da9233634aad4f2f93ca0fc44d2dd | /python/python-crash-course/name_cases.py | dfe151347f609a8eafe18d7b363a443b624c24a8 | [] | no_license | klajdikume/CodingDojo | f76d1d4a0d16a257cfacd4a13c40466c367c3c5a | dc7c903b1f897968508c70bde10fdfa575ed9ecc | refs/heads/master | 2021-12-29T13:25:30.810864 | 2017-11-21T16:49:22 | 2017-11-21T16:49:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | # Strings
person = "Artur Bosch"
print("Hello, " + person + "! Do you want to learn some python today?")
print(person.title())
print(person.lower())
print(person.upper())
famous_person = "albert einstein"
quote = 'once said, "A person who never made a mistake never tried anything new."'
print(famous_person.title() ... | [
"arturbosch@gmx.de"
] | arturbosch@gmx.de |
e85e48e63bdb7736ebd61bba58ff16c6c00e16c1 | caee3d333a6f8115f99c7a33138d2a2a2d8e9678 | /arrayoperation.py | 6d8d24a1274272596933710c7c7c696571632f97 | [] | no_license | VishalGupta2597/batch89 | c24e004ce4beee075a0e75f740e1afdae724f992 | b11cfbcccb3884e06190938f8ca6272a41161366 | refs/heads/master | 2022-01-22T10:02:46.204693 | 2019-08-01T02:39:51 | 2019-08-01T02:39:51 | 197,910,034 | 2 | 1 | null | 2019-07-20T09:39:48 | 2019-07-20T09:39:47 | null | UTF-8 | Python | false | false | 521 | py | from numpy import *
import os
import time
arr = array([1,12,33,4,5])
print(arr)
arr = arr + 5
print(arr)
arr2 =ones(5)
print(arr2)
arr3 = arr + arr2
print(arr3)
'''for i in arr3:
time.sleep(1)
print(i)'''
arr4 = sqrt(arr)
print(arr4)
print("Min=",min(arr))
print("Max=",max(arr))
print("Sum=",sum(arr... | [
"aswanibtech@gmail.com"
] | aswanibtech@gmail.com |
7645534c3137ef86857d250e0eb979bdc9e7f7d7 | c1e6e7740bc3957d63597cbdcdc98b10e4b2321b | /config/get_config.py | 8c24e33e73472dc3127a05af819f8eacf8637dfe | [] | no_license | tungnkhust/Coverage-in-Wireless-Sensor-Networks | b05c11c32475d32b644d389e579d3d178e53227e | aa8f49e4a93ff0a5ef679d0a3548452d7f13baa5 | refs/heads/main | 2023-01-23T21:02:40.064232 | 2020-12-02T10:48:25 | 2020-12-02T10:48:25 | 309,088,005 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 651 | py | import yaml
import sys
ROOT_PATH = '/home/tungnk/Desktop/learning/20201/Evolution_Computing/Coverage-in-Wireless-Sensor-Networks'
with open(ROOT_PATH + '/config/config.yaml', 'r') as pf:
config = yaml.safe_load(pf)
NUM_TARGET = config['TARGET']['NUM_TARGET']
Q_MIN = config['TARGET']['Q_MIN']
Q_MAX = c... | [
"nguyenkytungcntt04@gmail.com"
] | nguyenkytungcntt04@gmail.com |
e85f6099b850b6c1da899cbe13646bea67e2ee69 | f1462223a09da151dc29ffeaf27c916d5c5afe1d | /setup.py | 6a831288cc761514fd014b53e27eae15a2a3bcab | [
"MIT"
] | permissive | RUalexeyusman/apache-airflow-providers-teradata | 30eed45b60478cfa8e8a815969a2b23e2f380efa | 08fc77595209f1d9220f3c9301f4fecc45a7c6e0 | refs/heads/main | 2023-02-22T01:42:02.356931 | 2021-01-24T14:56:20 | 2021-01-24T14:56:20 | 347,649,794 | 2 | 0 | MIT | 2021-03-14T13:51:01 | 2021-03-14T13:51:00 | null | UTF-8 | Python | false | false | 1,391 | py | #!/usr/bin/env python
"""The setup script."""
from setuptools import setup, find_namespace_packages
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
setup(
author="Felipe Lolas",
author_email='flolas@icloud.c... | [
"felipe.lolas@bci.cl"
] | felipe.lolas@bci.cl |
d21ed483315927392f91996b9887c804d6a8c19b | 26f6313772161851b3b28b32a4f8d255499b3974 | /Python/SetMatrixZeroes.py | 3864067eec769d1f7e01f4fd60be96322284154d | [] | no_license | here0009/LeetCode | 693e634a3096d929e5c842c5c5b989fa388e0fcd | f96a2273c6831a8035e1adacfa452f73c599ae16 | refs/heads/master | 2023-06-30T19:07:23.645941 | 2021-07-31T03:38:51 | 2021-07-31T03:38:51 | 266,287,834 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,533 | py | """
Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in-place.
Example 1:
Input:
[
[1,1,1],
[1,0,1],
[1,1,1]
]
Output:
[
[1,0,1],
[0,0,0],
[1,0,1]
]
Example 2:
Input:
[
[0,1,2,0],
[3,4,5,2],
[1,3,1,5]
]
Output:
[
[0,0,0,0],
[0,4,5,0],
[0,3,1,0]
]
Follow ... | [
"here0009@163.com"
] | here0009@163.com |
a8952a45d4005620456406f27a6f16c3f54825b7 | c5959b7e4fc5b752b54a6352449c1bb0d28d9115 | /bab/bab-4/while4.py | 63e1174ea481eb96df7ea0cf2938d8605d486f37 | [] | no_license | romanbatavi/kickstarter-python | f5592a371740b28c045ef99dd510d1c6a92ff8d1 | ed3eb692e09a3f44fd3e0b16ab7b042ee2658db6 | refs/heads/master | 2023-03-29T11:34:23.774873 | 2021-04-04T09:11:28 | 2021-04-04T09:11:28 | 354,500,208 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | ######################################################
# Nama file: while4.py
######################################################
def main():
# melakukan pengulangan dari indeks 'a' sampai 'e'
ch = 'a'
while ch <= 'e':
print("%c: Hello World!" % ch)
ch = chr(ord(ch) + 1)
if __name__ == "__main... | [
"romanbatavi98@gmail.com"
] | romanbatavi98@gmail.com |
91145a4cb8372af53e27d7179291e58fdfdc4f46 | 6c219c1cdc92a4e0c3fe7af02998ba964bbc74ed | /ORS/ctl/TimeTableListCtl.py | 88b4a939eae9c79beaf0e69e28a27e578beb4dde | [] | no_license | kanchansahu97/SOS_PROJECT | 983a89043280d952a5f08e3c91a3fa8f684118fa | c2ff948ef1ea578f2f6f7cc6dba5944d50b16e96 | refs/heads/main | 2023-03-02T00:56:28.926005 | 2021-02-02T12:26:31 | 2021-02-02T12:26:31 | 335,276,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,729 | py |
from django.http import HttpResponse
from .BaseCtl import BaseCtl
from django.shortcuts import render
from ORS.utility.DataValidator import DataValidator
from service.forms import TimeTableForm
from service.models import TimeTable
from service.service.TimeTableService import TimeTableService
class TimeTableListCtl(B... | [
"kanchansahuji97@gmail.com"
] | kanchansahuji97@gmail.com |
a54681f57124be8cfe5c0b63c97f65316051aece | cc2f3a665a9f4dec23db7e7810712122ccabf491 | /OnlineGameHall/OnlineGameHall/settings.py | 7abd984228654c9d25e7f7fa441fef70f30b6b90 | [] | no_license | MiaoPengPython/Python | de035981c868aec5a56655f5627137241303b23a | 84cbe5ae85edad5ae4d483f69d7fcde3ccb92cea | refs/heads/master | 2020-08-28T09:12:29.984812 | 2019-10-26T05:16:46 | 2019-10-26T05:16:46 | 217,658,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,835 | py | """
Django settings for OnlineGameHall project.
Generated by 'django-admin startproject' using Django 1.11.8.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
im... | [
"2651281713@qq.com"
] | 2651281713@qq.com |
f83dcc8ca7030d644bb4a42a4fd959abafeb8317 | c35e0abd098583e70d737761250a8e3ff6c52e16 | /MGLP_scan/process_Rad_omega_comb.py | 353da9a458853385ade9ea41fe53beccf9ac7741 | [] | no_license | Michael-Gong/emission_sup | a820c45498e6e31812964dc97b951d83adeb0e4b | e515371faf0759d676bf837a69bf4ab5943e9b4d | refs/heads/master | 2020-03-20T02:54:21.921790 | 2020-01-05T14:32:29 | 2020-01-05T14:32:29 | 137,128,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,773 | py | import sdf
import matplotlib
matplotlib.use('agg')
#%matplotlib inline
import matplotlib.pyplot as plt
import numpy as np
#from numpy import ma
from matplotlib import colors, ticker, cm
from matplotlib.mlab import bivariate_normal
from optparse import OptionParser
import os
import scipy.integrate as integrate
import sc... | [
"noreply@github.com"
] | Michael-Gong.noreply@github.com |
484fe49b65b57a90d4a0867e0ed54cdbf67a5642 | fe6e0a2cfb00d34b58f64f164a747e3df08e8a9d | /client/application/model/downloadModel.py | 942132358bcf5d897119d704c82000cf414bb740 | [] | no_license | huboqiao/kmvip | c141814666631c35b8adeec3d3beb5aca0d2d1cd | 11ae7e1f78943c8425516c4f06acf043a99acdcc | refs/heads/master | 2020-02-26T14:58:31.573602 | 2016-08-03T06:29:41 | 2016-08-03T06:29:41 | 64,809,269 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,788 | py | #coding:utf8
'''
Created on 2014年10月30日
@author: ivan
'''
from __future__ import division
import os
import sys
import ast
import time
import pickle
import struct
from socket import *
from PyQt4.QtGui import *
from PyQt4.QtCore import *
class VerCheck( QThread ):
'''检查版本'''
def __init__(se... | [
"42320756@qq.com"
] | 42320756@qq.com |
0e85144ea11e6dce439806aac93853f61cab7a4c | f7b918c573958f21dcd341cfa3fcd839b2f5ecd8 | /MMA/macro.orig.py | 9a28d5dbaf89ca286b699d008ce1c8090ed33972 | [] | no_license | lmaxwell/mma | 05504dbd86b45518cab70e36fd08f097950ad96b | 98ba26b1354df5ac48be5b08ff15456c0539b460 | refs/heads/master | 2022-12-26T23:25:07.893705 | 2020-10-05T00:40:12 | 2020-10-05T00:40:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,897 | py |
# macros.py
"""
This module is an integeral part of the program
MMA - Musical Midi Accompaniment.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option... | [
"karim.ratib@gmail.com"
] | karim.ratib@gmail.com |
a5363e09c885d6ccc0278f85192602da6cb8ccbc | abed0712f5e70fa3d27ca586edc4999aaa2086fa | /src/flow_to_image.py | 056f32784df4a78e13d3a9a6b679fffdd0e7a473 | [
"MIT"
] | permissive | ki-lm/flownet2-tf | 86e346c0e370a2fcd2e3ad55d856431cd77a0fa1 | 31cac0ab7dab01bf862e9faa93ffe1bfe045aa3c | refs/heads/master | 2020-07-08T13:41:53.258687 | 2019-10-11T07:33:24 | 2019-10-11T07:33:24 | 203,532,277 | 0 | 0 | MIT | 2019-08-21T07:38:46 | 2019-08-21T07:38:45 | null | UTF-8 | Python | false | false | 2,723 | py | # -*- coding: utf-8 -*-
# Copyright 2018 The Blueoil 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
#
# Unles... | [
"inoue+github@leapmind.io"
] | inoue+github@leapmind.io |
5e52c9ce72f0595241c4bde8969db30cd55b76ee | 3148c2786d41c6dbaae788c698839b37d5fbef07 | /myexamples/python_cpp_binding/src/python/bindings_test.py | ec78b4620a15c09138cde3f3ee96aa0f64a5faf1 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | fuhailin/show-me-cpp-code | 97b5b5ee8b05cfcb8204c7d4c948aa14a5decbdf | 40b41451bc7218c82c975a9feb65f8cc340446e7 | refs/heads/master | 2022-05-16T13:56:04.156171 | 2022-03-20T10:46:09 | 2022-03-20T10:46:09 | 128,388,041 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | from myexamples.python_cpp_binding.src.bindings import mycpplib
mycpplib.myPrint()
| [
"hailinfufu@outlook.com"
] | hailinfufu@outlook.com |
bdcfc429cc61c5228cff130c3c95a4af6e86377c | ad7495b3cb8669d2fabe530c60193e7069c68d7b | /pong/auth/views.py | 366ce76d4ad6179ed745cd423213bb88b62a3fd1 | [] | no_license | seanpreston/Pong | b0f81abecf692b6471b297547f5826eb22de0565 | fa9e18daa8097e1bf89b570234dd640e0c6186ea | refs/heads/master | 2016-09-10T09:31:49.983319 | 2014-11-29T12:13:30 | 2014-11-29T12:13:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 855 | py | # -*- coding: utf-8 -*-
from pong.request import api_call
import statsd
import logging
logger = logging.getLogger(__name__)
class RegistrationFailure(Exception):
pass
class LoginFailure(Exception):
pass
class AuthFailure(Exception):
pass
def _login_request(request, remember=True, *args, **kwargs):
... | [
"seanmpreston@gmail.com"
] | seanmpreston@gmail.com |
61d592d21fbcdc1ecbc009dd0f04c3e9032d4de0 | 878e61194469e37ee2052806d7829125215067bf | /Amadon/apps/apps.py | d69ad51b66f4cfd0782c92dcc8884289e9de0c1c | [] | no_license | kieranrege/Django-v3-CodingDojo | 65230606d1f919b42db28a40222a4abf55b3fc27 | d70b8c9006815fe322e8408b2d034ee956bce4c2 | refs/heads/master | 2020-04-01T12:47:22.928632 | 2018-10-16T20:52:40 | 2018-10-16T20:52:40 | 153,223,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | from __future__ import unicode_literals
from django.apps import AppConfig
class AmadonAppConfig(AppConfig):
name = 'amadon_app' | [
"noreply@github.com"
] | kieranrege.noreply@github.com |
2c3730600250ae421a16683729f969e0854b7f04 | 7407ad364fe48721d5018dd1a759e26bbd806df9 | /Graph_Algorithms/Graph_Algorithms.py | e0807c3f9f33f46790b01cfd42f1ba7336755589 | [] | no_license | pavelgolikov/Python-Code | 663a487f6f708207757ff5012a40dc36043dcf9d | f4346b1c706a16dc8b2271e220b84aa48ab41fda | refs/heads/master | 2020-03-28T08:10:57.843860 | 2018-09-10T14:46:40 | 2018-09-10T14:46:40 | 147,949,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,859 | py | """Graph questions"""
from Data_Structures.Disjoint_Set_Union_Rank_Path_Comp import makeset, find, union, combine_dsets
from Data_Structures.Stack import Stack
from copy import copy, deepcopy
import sys
inf = sys.maxsize
"""Graph questions"""
# def bfs(gnode: GNode) -> None:
# """Breadth first traversal of self... | [
"noreply@github.com"
] | pavelgolikov.noreply@github.com |
936b48ee81fd3a1af560c37d3d21098e5aa08a5a | 6a549c904abd31a0f9baafb2cde145eee92c8f9a | /virt/bin/pyrsa-sign | 06364ad7695f39d35a8eac3c7c989d05d706820e | [] | no_license | wnwanne/Celeb-Rekogntion-elasticbeanstalk-flask | 865d9b402ecae5807c0808d011ae151e22198fdf | 9d3d1a3f0cde46721c2a892a401846659f1c248b | refs/heads/master | 2022-12-27T04:17:52.745162 | 2020-10-02T15:48:13 | 2020-10-02T15:48:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | #!/Users/nwannw/Python/eb-flask/virt/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from rsa.cli import sign
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(sign())
| [
"wnwanne@gmail.com"
] | wnwanne@gmail.com | |
478b7883a15d785cb783879ce765ad4e80b129cc | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startCirq2159.py | f30bd1b9e7076d764cccf0b2f8633f2db406f693 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,780 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=4
# total number=31
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
from cirq.contrib.svg import SVGCircuit
# Symbols for... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
82a42c7bb24b95f394c0e9b6c27770954cf29f6c | 893efdd4adf81513bb34bf57ba90396b93adfa99 | /planner/models/__init__.py | 1dfb3cceea635daace465579db2f8c2bccd75a21 | [] | no_license | idvhfd/work-planner-api | 675be95366b71b311aecbacb7379a7214f61f795 | f0fa8c834a27ab0fd27f9319e04bcd7db73ec870 | refs/heads/main | 2023-03-17T05:21:41.859440 | 2021-03-08T10:37:07 | 2021-03-08T10:37:07 | 345,508,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | from planner.app import db
from planner.models.base import Base
from planner.models.shift import Shift
from planner.models.worker import Worker
from planner.models.worker_shift import WorkerShift
__all__ = [
'db', 'Base', 'Shift', 'Worker', 'WorkerShift'
]
| [
"napuras@yahoo.com"
] | napuras@yahoo.com |
3819d7c059301682d62aad45f0a1abdd331fb962 | 79f42fd0de70f0fea931af610faeca3205fd54d4 | /base_lib/ChartDirector/pythondemo_cgi/paramcurve.py | 57fbd78daa0eb63e76913fb967eb41f277fcb584 | [
"IJG"
] | permissive | fanwen390922198/ceph_pressure_test | a900a6dc20473ae3ff1241188ed012d22de2eace | b6a5b6d324e935915090e791d9722d921f659b26 | refs/heads/main | 2021-08-27T16:26:57.500359 | 2021-06-02T05:18:39 | 2021-06-02T05:18:39 | 115,672,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,571 | py | #!/usr/bin/python
from pychartdir import *
# The XY data of the first data series
dataX0 = [10, 35, 17, 4, 22, 29, 45, 52, 63, 39]
dataY0 = [2.0, 3.2, 2.7, 1.2, 2.8, 2.9, 3.1, 3.0, 2.3, 3.3]
# The XY data of the second data series
dataX1 = [30, 35, 17, 4, 22, 59, 43, 52, 63, 39]
dataY1 = [1.0, 1.3, 0.7, 0.6, 0.8, 3.0... | [
"fanwen@sscc.com"
] | fanwen@sscc.com |
23f873a81c26372241e78defd80acb0e77ecd5e4 | a520c0474e5375309a9aeaa80e24b8d260966b58 | /src/tools/command_calibration.py | cdfbe35966dd4b4562b0a81ae72782195069f322 | [] | no_license | CLAP-Framework/clap | 6caf7ca549f23f493a5197e08608495448b17fb3 | a14602323d63cccf62a12e6db2979205ff2efe30 | refs/heads/master | 2022-04-28T21:03:04.252498 | 2021-01-23T09:38:12 | 2021-01-23T09:38:12 | 253,822,544 | 13 | 6 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | import numpy as np
class LongitudinalCalibration():
"""
Calibrate the mapping from v,throttle,brake to acc/dec
"""
def __init__(self):
self.last_speed = None
pass
def run_step(self, target_speed, current_speed, debug=False, dt=0.05):
"""
target is not useful
... | [
"caozhong@0587403218.wireless.umich.net"
] | caozhong@0587403218.wireless.umich.net |
83bcbab51477d33600aadd5a6445baedef77b289 | 91a720fd23224a1f363c19c826852062e49b65ec | /Loop/test3.3.py | 69c3011fd45e741df366d97e24c3a3403e687ceb | [] | no_license | ronnapoom/python | d8d8b64ed8122841d7d4e28bdbaf02ba57b82625 | 1b02445a5932b220c11de74b6ff45cfd28525429 | refs/heads/master | 2023-03-09T21:09:24.245633 | 2021-02-20T10:31:51 | 2021-02-20T10:31:51 | 336,190,030 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | print("ป้อนชื่ออาหารสุดโปรดของคุณ หรือ exit เพื่อออกจากโปรแกรม")
food_fav = []
n = 0
while(True) :
n += 1
food = str(input("อาหารโปรดลำดับที่ {} :\t".format(n)))
food_fav.append(food)
if(food == "exit") :
break
for n in range (1,n) :
print(n,".",food_fav[n-1], end = " " )
| [
"ronnapoom.p@kkumail.com"
] | ronnapoom.p@kkumail.com |
d0131f28edd0dbb70f2227022124e8b134eb6603 | 6805e7e3535e03e8563beeae5c6bdd23a8d13166 | /Src/certificacion/admin.py | 1480579cdfb2773926aff3375c78520fa4bd359a | [] | no_license | natchz/auditoria | 0b00cbee29faa9b015bf399722c1cd9534b22fd3 | 9c9b66dbf68d702726386e8f894b509faa55d56c | refs/heads/master | 2022-12-19T19:30:58.813805 | 2016-10-23T03:05:55 | 2016-10-23T03:05:55 | 68,713,561 | 0 | 1 | null | 2022-12-18T01:37:38 | 2016-09-20T13:16:06 | Python | UTF-8 | Python | false | false | 728 | py | from django.contrib import admin
import nested_admin
from .models import *
class ControlInline(nested_admin.NestedTabularInline):
model = Control
extra = 0
class ObjetivoInline(nested_admin.NestedTabularInline):
model = Objetivo
extra = 0
inlines = [
ControlInline,
]
class DominioInline(nested_admin.NestedTa... | [
"luis.garciap@upb.edu.co"
] | luis.garciap@upb.edu.co |
19cba141ff8d1bd69e3aefcd565294ac906b246a | 13bb19cdcca1a7ebf10f5077650300e28ed75214 | /kmap_ids.py | 9e258edd7fc69a6a1803d13aa14906b393cc8d52 | [] | no_license | shanti-uva/shanti-texts-thl-migrate | 7172d777d26401e41daf2cc1c2d9c4aace1441d4 | b9b7d6ec17ab92b4685f31e60fa25c67668b1d52 | refs/heads/master | 2016-09-05T12:54:20.070233 | 2015-01-26T20:06:29 | 2015-01-26T20:06:29 | 28,922,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,650 | py | # Lists of some KMap IDs with documents
kmaps = {'places':[],'subjects':[]}
kmaps['places'] = [1, 179, 317, 433, 486, 516, 534, 570, 588, 634, 637, 674,
749, 782, 807, 838, 884, 1063, 1064, 1068, 1070, 1073, 1075, 1084, 1085, 1087,
1089, 1090, 1091, 1094, 1098, 1144, 1147, 1165, 1236, 2541, 2675, 3507, 3718,
3862, 38... | [
"ontoligent@gmail.com"
] | ontoligent@gmail.com |
606e6885dd12bc55c37b30f970e4fae09dbb24a5 | e2350b2f7408c109f19a3cae061826dd2dbec4b9 | /jsonrpcdb/tests/test_connection.py | 77745c7771eb8d0545e9f5781459b34d7ed73d1c | [
"MIT"
] | permissive | livestalker-archive/json-rpc-db | 3a0c7e794be3a97ae594bc844a9b8a1503e8dacd | f18067b0e38241a3b3c77358c16cddbc26b45127 | refs/heads/master | 2021-06-22T17:07:37.991647 | 2017-06-29T09:18:04 | 2017-06-29T09:18:04 | 94,331,081 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,445 | py | from unittest import TestCase
import jsonrpcdb as Database
from jsonrpcdb.auth import TokenAuth
from jsonrpcdb.error import ProgrammingError
class ConnectionTest(TestCase):
def test_empty_conn_params(self):
conn_params = {}
conn = Database.connect(**conn_params)
self.assertEqual('http://lo... | [
"mi.aleksio@gmail.com"
] | mi.aleksio@gmail.com |
73bf82bf1ab0ecd80b60da1489216bbcf7c8d918 | 2f9e5f3d98babc6e66027e97430104cc5489f930 | /tests/evse_tester.py | f07cd4aefb3d65ec1879c0c5e0d3da8a11504444 | [] | no_license | Tinkerforge/evse-bricklet | da6c0a8a703563d99e825df7a6a99fd3e94af16e | 889c852e75d63737b93859c25ddbd84ce6f8da8c | refs/heads/master | 2023-08-31T09:26:20.982738 | 2023-08-22T08:04:06 | 2023-08-22T08:04:06 | 251,574,386 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,346 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
HOST = "localhost"
PORT = 4223
UID_EVSE = None
UID_IDAI = "Mj8"
UID_IDO4 = "QXz"
UID_IDI4 = "QQ3"
UID_IQR1 = "FYF"
UID_IQR2 = "NWq"
UID_ICOU = "Gh4"
from tinkerforge.ip_connection import IPConnection
from tinkerforge.bricklet_evse import BrickletEVSE
from tinke... | [
"olaf@tinkerforge.com"
] | olaf@tinkerforge.com |
898a48b374106740cf5b5f8e87bb25430f272b68 | 43684c2ffcfe81ffb278450d603493b4994d5da4 | /Test/test.py | f37d21bc13407175efad464016887c10a40e77c3 | [
"MIT"
] | permissive | fengduqianhe/CANE-master | cc5b3a9dde9a00a17993c9a1b6626aaf0428435d | 4d94bbd0669ccb103292e1e1f2c51e7c7a961e54 | refs/heads/master | 2020-08-09T23:06:20.933118 | 2019-10-10T13:57:20 | 2019-10-10T13:57:20 | 214,196,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 969 | py | import tensorflow as tf
if __name__ == "__main__":
a = tf.placeholder(tf.int32, [2, 3], name='Ta')
b = tf.Variable(tf.truncated_normal([64, 200, 300, 1], stddev=0.3))
te = tf.Variable(tf.truncated_normal([1148, 300], stddev=0.3))
ta = tf.Variable(tf.ones([64, 300], tf.int32))
c = tf.Variable(tf.tru... | [
"www.qiaohezhe@foxmail.com"
] | www.qiaohezhe@foxmail.com |
5117725254eace3bbe900494720c70e983eceb81 | 0aa4698444bb67208173183dfa82bb71f1a5afd4 | /Matt/ClassifierNN/test.py | 564fee2bb11deb2742422e5284ac840ba37bdee0 | [
"MIT"
] | permissive | chrisburch96/LearningLAMOST | 3112091995f05ff95d7d6bbbb7f32a7d5d36589c | 082f1be6841828d6b62982cc11a043005d877668 | refs/heads/master | 2020-03-31T14:03:57.505144 | 2018-10-09T15:50:26 | 2018-10-09T15:50:26 | 152,278,431 | 0 | 0 | MIT | 2018-10-09T15:46:43 | 2018-10-09T15:46:42 | null | UTF-8 | Python | false | false | 445 | py | from sklearn.preprocessing import LabelEncoder
import numpy as np
import matplotlib.pyplot as plt
#import seaborn as sb
conf = np.loadtxt('Files/confusion.csv', delimiter = ',')
classes = ['STAR', 'GALAXY', 'QSO', 'Unknown']
actual = [[row[i] for row in conf] for i in range(len(classes))]
a = ['Matt', 'Chris', 'Ch... | [
"mrs493@star.sr.bham.ac.uk"
] | mrs493@star.sr.bham.ac.uk |
47676a71c2dc34ca35a0b79ab4fe7de096c69750 | b29a579166c607cf320ec052f1c20aa541430255 | /pythone 3sem/lab4-5/task_5_1d.py | ef810adb08800c1700e09bee1759215fec9093d4 | [] | no_license | TohsyrovD/-1 | 5acb84f33d7d88e65399f085b896821945f12d25 | ebf19ef09c7ed36bf75db9ec88d1a6b6e4ed40da | refs/heads/master | 2021-07-14T11:21:19.923417 | 2020-12-03T10:32:26 | 2020-12-03T10:32:26 | 242,962,809 | 0 | 0 | null | 2021-03-20T05:32:52 | 2020-02-25T09:40:10 | HTML | UTF-8 | Python | false | false | 1,691 | py | # -*- coding: utf-8 -*-
"""
Задание 5.1d
Переделать скрипт из задания 5.1c таким образом, чтобы, при запросе параметра,
пользователь мог вводить название параметра в любом регистре.
Пример выполнения скрипта:
$ python task_5_1d.py
Введите имя устройства: r1
Введите имя параметра (ios, model, vendor, location, ip): IO... | [
"noreply@github.com"
] | TohsyrovD.noreply@github.com |
5c51bce7be23ebb58823dcc2a25575d9423ff5aa | 79817d40829ae2a959a80aa90131335066d9f11c | /DiaryFi/apps.py | 13f956c234d0fbe00d7dc4546f3fb463d8e597ef | [] | no_license | kushardogra/diaryfi | 897ac8a31c35382a5a88ff40be7f7170716fa1e7 | 75162e1de8b2e9b0757264df25f1df827e306880 | refs/heads/master | 2023-07-16T14:31:55.931022 | 2021-09-03T13:12:11 | 2021-09-03T13:12:11 | 402,774,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | from django.apps import AppConfig
class DairyfiConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'DiaryFi'
| [
"dograkushar@gmail.com"
] | dograkushar@gmail.com |
26270846aa0b5d6f85b668e71c0056a950a5a7ba | 266841fa3d2bd39a042fa8e75c7766eac8d5c3e0 | /text_model.py | 307f36f8ac981e4fbf5c9a5aaa8e0cd96aa62485 | [] | no_license | xixiareone/scene-graph-image-retrieval | ee7dc77102305ac3bbc4e08976d21aa6f2e3c359 | 5602f48da69bf62fc6fa87615e8c1f80b7ec47c0 | refs/heads/main | 2023-01-09T07:12:01.573767 | 2020-11-07T12:01:57 | 2020-11-07T12:01:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,975 | py | # Copyright 2018 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | [
"revantteotia@gmail.com"
] | revantteotia@gmail.com |
a4d84d862a72f5ab47b575aa90a9c04a04ebc803 | ce7e1fdfe3c27edc11b8ebf3cc9ba3f04c534f99 | /dojo_moving.py | 0af5e1865673ec0585da77c2e19c457277a08cce | [] | no_license | sforaaleksander/rougelike | 3da792aeac473b594c5f3139e7822b43bc4f34b4 | 58d6882592620e03914f3e1394e6bd6925531817 | refs/heads/master | 2021-01-05T15:42:21.265768 | 2020-02-17T09:18:42 | 2020-02-17T09:18:42 | 241,064,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 941 | py | import os
os.system('clear')
def getch():
import sys, tty, termios
fd = sys.stdin.fileno()
old_settings = termios.tcgetattr(fd)
try:
tty.setraw(sys.stdin.fileno())
ch = sys.stdin.read(1)
finally:
termios.tcsetattr(fd, termios.TCSADRAIN, old_settings)
return ch
def dis... | [
"sforaaleksander@gmail.com"
] | sforaaleksander@gmail.com |
20f50a6fb34f4fcee24a7c178b4996af12e070cf | cb0c89bdb38203e5759a97737ac29026eb81be2f | /minesweeper/games/migrations/0005_cell_value.py | d4780f8ba8f1d9e5ba7df87b42789eaebd728462 | [] | no_license | lardissone/minesweeper-api | 632e84660120e900b7ffc1cd6b1cada0a3793dea | 86e43356fac8e37ad710be3ac18fa8b6164a5690 | refs/heads/master | 2020-09-15T00:18:52.643254 | 2019-11-22T02:26:46 | 2019-11-22T02:26:46 | 223,303,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | # Generated by Django 2.2.7 on 2019-11-19 04:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('games', '0004_auto_20191117_2142'),
]
operations = [
migrations.AddField(
model_name='cell',
name='value',
... | [
"lardissone@gmail.com"
] | lardissone@gmail.com |
d4dc295b5768bb0563e5e17ef7ffbd1df08b817a | e87e95c0f2c59b01afeb2d4b3d78da3e6e7e93be | /backend/backend/settings.py | 449efbdf91e0218edc6b4c0b32cecad13bd32894 | [] | no_license | ScrollPage/Test-Game | dbaf7efb2a5d752c09e42b01ba157e46a8903ab3 | a19293605751c016d183b654a0ff6f8d763d0aff | refs/heads/master | 2022-11-15T17:44:33.566285 | 2020-07-11T16:19:53 | 2020-07-11T16:19:53 | 278,646,939 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,661 | py | """
Django settings for backend project.
Generated by 'django-admin startproject' using Django 2.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
#... | [
"54814200+reqww@users.noreply.github.com"
] | 54814200+reqww@users.noreply.github.com |
aa693b18b335f055cd06055f996cb848047da2ac | 3c569047f2fb4d76d1ed4e5c9f749c717f13ebec | /doorTest.py | 3a10415c077106f6f6b55c31481a254bc39a33ae | [] | no_license | edb87/coop | 33599ee76f7aa113767acd59b8bbfa9001ba72d5 | 294b645369490772d3c6e8e30fd714fb62400d26 | refs/heads/master | 2021-01-20T13:56:29.655151 | 2017-05-07T15:18:29 | 2017-05-07T15:18:29 | 90,541,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 347 | py | from time import sleep
import Adafruit_BBIO.GPIO as GPIO
hallUpSensor = "P8_18"
hallDnSensor = "P8_19"
GPIO.setup(hallDnSensor, GPIO.IN)
GPIO.setup(hallUpSensor, GPIO.IN)
if not GPIO.input(hallDnSensor):
print "Door down!"
else :
print "Door NOT down..."
if not GPIO.input(hallUpSensor):
print "Door up!"
else :... | [
"ebeckstrom@gmail.com"
] | ebeckstrom@gmail.com |
26fc8b14b8964e884abdb3033be76bb1fa84a67a | c88420c9abf96c73139da0769f6eddbe6cf732dd | /tests_oval_graph/conftest.py | 30297732c79d5b28d2925ef852b8a3928442c711 | [
"Apache-2.0"
] | permissive | pombredanne/OVAL-visualization-as-graph | 0dcf077c6254e95f3f66ba00a805b5f09d1f21c3 | 64dcb9e14f58e3708022eda55ea3c4d3ec2b7b89 | refs/heads/master | 2023-01-20T09:21:31.215607 | 2022-01-31T17:08:56 | 2022-01-31T17:08:56 | 238,423,157 | 0 | 0 | Apache-2.0 | 2020-02-05T10:25:14 | 2020-02-05T10:25:13 | null | UTF-8 | Python | false | false | 345 | py | import os
from glob import glob
import pytest
@pytest.fixture()
def remove_generated_reports_in_root():
yield
path = os.getcwd()
pattern = os.path.join(
path, "graph-of-xccdf_org.ssgproject.content_rule_package_abrt_removed*")
for item in glob(pattern):
if not os.path.isdir(item):
... | [
"hony.com@seznam.cz"
] | hony.com@seznam.cz |
925c5a8ce8f7964a1d1f643ae348dd026d002811 | 9a2dba0314e25d57f80c248954ac374014e72e9c | /scripts/new_script.py | 6c9c64e2f3539af37635c078deb13116eac83a29 | [
"MIT"
] | permissive | Shreya869/minor-pro | bfb048ff0652be76e23714fc95c4dabb35af8016 | 06e30e70023c25b264d887820ad5aeec2a6ebb51 | refs/heads/main | 2023-02-11T04:42:32.134331 | 2021-01-15T20:07:33 | 2021-01-15T20:07:33 | 330,000,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 981 | py | import pandas as pa
import csv
import statistics as stat
#%%
dataset=pa.read_csv('old_datasets/value_data.csv')
#%%
#selecting the unique field value from the first column
e=dataset.drop_duplicates('Element')['Element']
#%%
#getting unique crops from the dataset
crops=dataset.drop_duplicates('Item')['Item']
crops=list(... | [
"noreply@github.com"
] | Shreya869.noreply@github.com |
adb7eb8524a2ca5b0cb525b97d8a07ddf158dabe | 5aedfa32410c58f48d683a71e85bfdd691acc6d5 | /advent_of_code/2016/day03/aoc_day_03_1.py | 38bddb042cecc017445b9d95f02e5ff74cb6cf28 | [
"MIT"
] | permissive | M0nica/advent_of_code | 344e6b4e26acc9c9f72919fef82783c177080e3d | ffa5de75cac7b62acc53a9fc3021820727137264 | refs/heads/master | 2020-09-22T11:59:26.741874 | 2019-11-06T15:01:58 | 2019-11-06T15:01:58 | 225,184,342 | 1 | 1 | MIT | 2019-12-01T15:33:27 | 2019-12-01T15:33:27 | null | UTF-8 | Python | false | false | 469 | py | #!/bin/python3
def squares_with_three_sides(sides):
perimeter = sum(sides)
for side in sides:
if side >= perimeter - side:
return False
return True
if __name__ == '__main__':
counter = 0
with open("aoc_day_03_input.txt", "r") as f:
for line in f:
proc... | [
"chris.s.cordero@gmail.com"
] | chris.s.cordero@gmail.com |
5da0a11ef51783812520ddf046cae1ad169b1090 | a66ab94dc7e9a86f702174eb64d3a278d452e893 | /set.py | 6e94e283e0b6fec43f5ca938610d165a92732900 | [] | no_license | SamridhiPathak/python-programs | a91a392cbf8db882ce3c01cd081f0e883920992a | 96d599ac273ee0b02123ae0e9320db0f34de3dd7 | refs/heads/master | 2023-04-13T14:57:09.595757 | 2021-04-16T14:48:03 | 2021-04-16T14:48:03 | 358,631,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | s1={"ria","pathak"}
s2={10,40,50,"ravi"}
print(s2)
for a in s2:
print(a)
s2.add(90)
print(s2)
s2.update([80,100,100])
print(s2)
s2.remove(40)
print(s2)
s3=s1.union(s2)
print(s3)
| [
"samridhipathak5@gmail.com"
] | samridhipathak5@gmail.com |
e801a8a7f5e1e1dd40400c3d1c43623c3b8b59de | c2612dce88769abf7e8fcb25b4703b07fea65bb6 | /4.py | 375ef5b06476cc76b840772ba8f1b621e05992ba | [] | no_license | Ye980226/leetcode_50_problem | c4784ae92325e50190f5b4492d29f6494471ab9b | 9768e6b45e6d1a3ce2f30a84c560382ec324e49f | refs/heads/main | 2023-02-22T01:23:50.102684 | 2021-01-29T11:24:42 | 2021-01-29T11:24:42 | 328,693,732 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | class Solution:
def findMedianSortedArrays(self, nums1: List[int], nums2: List[int]) -> float:
nums=nums1+nums2
nums.sort()
if len(nums)%2==0:
median=len(nums)//2
return (nums[median-1]+nums[median])/2
else:
return nums[len(nums)//2] | [
"18955993726@163.com"
] | 18955993726@163.com |
fde7aa4f808c9c5c4468d7ff10477a89b52e06d4 | 488793e256e72cfc99ef4df576e82364747dc41a | /Power.py | 08dfb796d35bfec70824ba1fab3ffb208780ff3d | [] | no_license | RobertH1999/CMPSCI-Projects | 72588a6c62dfd307431c44ff00e12f2136ceaf28 | b022c25e7d04d18e561fa8b6db493816047a80c6 | refs/heads/master | 2021-09-24T15:28:17.459537 | 2018-10-10T23:13:23 | 2018-10-10T23:13:23 | 105,831,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28 | py | def power(value, exp):
| [
"noreply@github.com"
] | RobertH1999.noreply@github.com |
41e4879179f6dec5fc9fca7ace3aa1000f1d3de0 | 580640e18ba218863db529236138e624b44a40e8 | /api/migrations/versions/61fa3cf3732a_.py | afcb55a92fd3a7759e521825610498d9231a1eae | [] | no_license | NatLibFi/Finto-suggestions | 2029612d288382ac469eb9119a4bbb502df519d6 | c6032aebf8fcfd2c3b7c6e2959353f2378c9da0e | refs/heads/master | 2021-06-11T01:12:00.173153 | 2020-03-30T09:06:49 | 2020-03-30T09:06:49 | 136,152,000 | 7 | 1 | null | 2021-01-05T02:26:54 | 2018-06-05T09:17:38 | Vue | UTF-8 | Python | false | false | 737 | py | """Add new field yse_term to suggestion table. Yse_term is used to link suggestion to yse.
Revision ID: 61fa3cf3732a
Revises: 6c8aa3d470ce
Create Date: 2019-02-06 13:44:39.612259
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '61fa3cf3732a'
down_revision = '6c... | [
"noreply@github.com"
] | NatLibFi.noreply@github.com |
b6e0fa5be2a4f5509e94be2a3035063e1bf778c9 | 90a1c09f8efb4f1e596a24983809693876536176 | /app/db/models/server.py | 5d0a019312f11ab3df5cb4143969653764661b7b | [] | no_license | vlmaksimuk/vscale | ff35ea4f913760fb89905080fd84e63e9eb0b40e | 8e52110971a824102f0d50d550fd908434784101 | refs/heads/main | 2023-03-27T04:18:43.631275 | 2021-03-30T13:41:37 | 2021-03-30T13:54:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,234 | py | from __future__ import annotations
from typing import List
from sqlalchemy import Column, Integer, DateTime, Boolean, String
from sqlalchemy.orm import relationship
from app.db.base_class import Base
from .key import Key
from ...vscale.schemas.vscale_api import (
ServerCreationResponse as Py_ServerCreationRespon... | [
"v.maksimuk@bsl.dev"
] | v.maksimuk@bsl.dev |
bd62df7ab529c5ae4a7ae5102451ecbd11384454 | 99078b5d47a6b9bb476bdf27cd466a4fb1e78538 | /src/command_modules/azure-cli-keyvault/azure/cli/command_modules/keyvault/_validators.py | ddd7a5f8ba52467bbaff76f0d76f957ee9e94b71 | [
"MIT"
] | permissive | enterstudio/azure-cli | 949c54464fbce7ff596665c6bcc3d4aeefe54b53 | b0504c3b634e17f1afc944a9572864a40da6bc18 | refs/heads/master | 2023-07-14T11:09:45.925689 | 2017-02-03T18:26:09 | 2017-02-03T18:26:09 | 81,024,949 | 0 | 0 | NOASSERTION | 2023-07-02T22:24:59 | 2017-02-05T21:53:49 | Python | UTF-8 | Python | false | false | 8,161 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | [
"noreply@github.com"
] | enterstudio.noreply@github.com |
558c4e8fc77a378de68de3e0159d6c9081411d0c | 1be4ed08d06d998ebd881bbfbc71869009a8145a | /nobel.py | 83408fdf7b47c7e5e78f2d49c2edfe4874e8eb97 | [] | no_license | sachniv1023/nobelrepo | 6284632ac5c61d118787459cf616b9a7f97f959e | a274dd1a2c18afcbbb5a3d9d8cf2d9ce3142a1b7 | refs/heads/master | 2023-06-21T23:32:44.756488 | 2021-07-28T19:11:46 | 2021-07-28T19:11:46 | 389,779,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,953 | py | from flask import Flask, json, render_template, request, redirect, url_for
import os
#create instance of Flask app
app = Flask(__name__)
#decorator
@app.route("/")
def echo_hello():
return "<p>Hello Nobel Prize Homepage - latest !</p>"
@app.route("/all")
def all():
json_url = os.path.join(app.static_folder,"",... | [
"sachniv1023@gmail.com"
] | sachniv1023@gmail.com |
90c1d58f868f907872d48955fb52e985cab10b2d | c4faec674beef1eeda556d0c5204a60100b2bfe8 | /00 pylec/00 samplecode/twspider.py | 0b0e59edd0fd22e3e7fb5ad41c68b9ab3d55cf15 | [
"MIT"
] | permissive | blueicy/Python-achieve | d6f410f57939ed6450f41d4e90974b7395a20bc1 | cbe7a0f898bef5f1d951d69cef0c305a62faaaf8 | refs/heads/master | 2020-04-12T14:27:28.222075 | 2019-01-03T13:40:46 | 2019-01-03T13:40:46 | 162,553,006 | 0 | 0 | MIT | 2018-12-20T10:07:45 | 2018-12-20T08:57:47 | Python | UTF-8 | Python | false | false | 1,975 | py | from urllib.request import urlopen
import urllib.error
import twurl
import json
import sqlite3
import ssl
TWITTER_URL = 'https://api.twitter.com/1.1/friends/list.json'
conn = sqlite3.connect('spider.sqlite')
cur = conn.cursor()
cur.execute('''
CREATE TABLE IF NOT EXISTS Twitter
(name TEXT, re... | [
"mba1@MacBook-Air.local"
] | mba1@MacBook-Air.local |
22b7fb52d07a5c1c4b7a3ae8b025922bce3fccd6 | cbdbb05b91a4463639deefd44169d564773cd1fb | /djangoproj/djangoproj/urls.py | b37249a73b0db9f156fd9c54b59a0984d3a60382 | [] | no_license | blazprog/py3 | e26ef36a485809334b1d5a1688777b12730ebf39 | e15659e5d5a8ced617283f096e82135dc32a8df1 | refs/heads/master | 2020-03-19T20:55:22.304074 | 2018-06-11T12:25:18 | 2018-06-11T12:25:18 | 136,922,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | from django.conf.urls import patterns, include, url
from django.contrib import admin
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'djangoproj.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^admin/', include(admin.site.urls)),
)
| [
"blaz.korosec@mentis.si"
] | blaz.korosec@mentis.si |
f8f7d41c6d7b8cd7ab66ab93d49bfbf94732ddce | 551599f7fe9e25dcff975866c5f96e3bbaed01aa | /testchild.py | 880394b42a3df26730fbb2bd59a6fdbf119070d7 | [] | no_license | ayeshasohail/testrepo | 44afde8775fa0d6beec3d3a4df7c6b316388e91f | baa6276ae67c7b4e17bac8e5bacb87deb17f409b | refs/heads/main | 2023-02-07T13:55:39.866564 | 2020-12-29T05:30:13 | 2020-12-29T05:30:13 | 325,193,301 | 0 | 0 | null | 2020-12-29T05:30:14 | 2020-12-29T05:20:07 | Python | UTF-8 | Python | false | false | 60 | py | ##Add file to the child branch
print(inside child branch)
| [
"noreply@github.com"
] | ayeshasohail.noreply@github.com |
2e74bf30d621cab8f44f17a276f8b431edb8fc82 | 701fb9aa5dc1d542064a26d525da46a4d0df7279 | /Python/DjangoAssignments/portfolio/apps/portfolio_app/views.py | f5ce54737b1a00c5a9b7d3d1820aa70774dbddc7 | [] | no_license | cahrock/DojoAssignment | 4611c6f0cf0bd8170398da3c00fd68f7607d3dcb | 5bd27f6f6ac9532c7cddae27b9bc3448f8d7b1ea | refs/heads/master | 2021-01-19T20:53:49.715577 | 2017-07-25T19:42:43 | 2017-07-25T19:42:43 | 88,570,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render
# Create your views here.
def index(request):
return render(request, 'portfolio_app/index.html')
def testimonials(request):
return render(request, 'portfolio_app/testimonials.html')
def about(request):
r... | [
"a.mustofa@gmail.com"
] | a.mustofa@gmail.com |
5753a55d0680745aa4502c9861778d315a83e807 | d788440376da3595f220aec43720aeac8716cb93 | /test_subject_matching_untrained_opentapioca.py | 7b1ef30c84982a44d7d34ca01f934b0dace7f496 | [
"Apache-2.0"
] | permissive | napoler/Wikidata2Text | ad2cb71a3402543f032b4ee97d976e607392a0c5 | 722b528451e92b3072bf57260fdb8f0962a89929 | refs/heads/main | 2023-07-22T19:03:23.665843 | 2021-08-28T13:55:50 | 2021-08-28T13:55:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | from mapping_estimation import *
input_file_name = 'data/output_common2.csv'
df = pd.read_csv(input_file_name, delimiter='#', dtype=dtypes, usecols=list(dtypes))
evaluate_subject_matching('opentapioca', df) # untrained
| [
"noreply@github.com"
] | napoler.noreply@github.com |
185b80d2c50f32d5cb5f2960d1ede0e9449ad5ef | a5a1e8d2957e4f6d5eeeacd259f2fd2adf04d76b | /HelixStudios.bundle/Contents/Code/__init__.py | 0067cec15c81a11a524b45b050279fe15ea9b628 | [
"MIT"
] | permissive | KobaTwelve/pgma | 4be7b07284c595bc3cece99cc2e4fa10a7d13d45 | 4c36ea4cf9ec9b5259f119417b764514fa383f87 | refs/heads/master | 2021-02-12T02:35:41.175665 | 2020-03-01T01:30:12 | 2020-03-01T01:30:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,511 | py | # HelixStudios
# Matches Scenes, Unsearchable Scenes, and DVDs (dvd's not the same)
#| Sk8 Boys.mp4 | 3392.mp4 | HXM087.mp4 |
#All metadata imported, with HD stills (yippee!)
import re, os, platform, urllib
from difflib import SequenceMatcher
#Fix HTTPS errors when connecting to F... | [
"acvigue@me.com"
] | acvigue@me.com |
7607199a480742182d3f45fef42297b97f7b2389 | e27333261b8e579564016c71d2061cc33972a8b8 | /.history/api/UnigramLanguageModelImplementation_20210809164353.py | 67ed4d1f068dd2d9a970c478e1d7c34e0ffdf7d3 | [] | no_license | Dustyik/NewsTweet_InformationRetrieval | 882e63dd20bc9101cbf48afa6c3302febf1989b1 | d9a6d92b51c288f5bcd21ea1cc54772910fa58f7 | refs/heads/master | 2023-07-01T09:12:53.215563 | 2021-08-12T08:28:33 | 2021-08-12T08:28:33 | 382,780,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,899 | py | import math
from IPython.display import display
from BM25implementation import QueryParsers
ALPHA = 0.75
NORMALIZE_PROBABILITY = True
class UnigramLanguageModel:
def __init__(self, tweets_data): #tweets is a pandas dataframe
self.tweets_data = tweets_data
self.wordsCollectionFrequencyDictionary =... | [
"chiayik_tan@mymail.sutd.edu.sg"
] | chiayik_tan@mymail.sutd.edu.sg |
594d38fa5e7c8b9c128496097f1f95439d847b5d | 81c395850e2c2e853d452d163ac5a81b99c73e3f | /Dotest2.py | a779c55f37f3807b2c97c1ab878a68b9aec70414 | [] | no_license | zyywinner123/python | 1caf82be5b6fd5c8c75b2d351efe871933f9f1e8 | a6c5e312bd4dde8b7a2e0a248cad2ab67c7dc4cf | refs/heads/master | 2020-04-03T01:45:22.644317 | 2020-03-24T02:59:31 | 2020-03-24T02:59:31 | 154,938,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,525 | py |
# coding:utf8
import os
import sys
import cv2
import numpy as np
import tensorflow as tf
sys.path.append("..")
from object_detection.utils import label_map_util
from object_detection.utils import visualization_utils as vis_util
from flask import Flask , make_response, request,json
class TOD(object):
def __init... | [
"574187554@qq.com"
] | 574187554@qq.com |
4267cf89e7b07731e078fee2a40119beef5a98c1 | 04df47fc60e16d3df1fdc9a19c2630b6c587c021 | /第10套/简单应用题/10-44.demo.py | 6d9b0a3fac9c9748f8b16a45c893b7b4b971d40b | [] | no_license | fxw97/NCRE2python | e7f464cf842bdb2919db55225b1db69e59acb947 | 2c412e77447053ddd4ee7179d84a0eed1716255b | refs/heads/main | 2023-08-02T21:18:09.168977 | 2021-09-24T05:29:45 | 2021-09-24T05:29:45 | 407,850,013 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | for i in range(0,4):
for j in range(0,4-i):
print(' ',end='')
print('*'*i)
for i in range(0,4):
for k in range(0,i):
print(' ', end = '')
print('*'*(4-i)) | [
"1550505935@qq.com"
] | 1550505935@qq.com |
d8f7d5c44d24c984e5949f45384627d0098dc78c | fa04f3cb23367d5bb0255170dbbff0f1697b16fa | /dymos/test/test_upgrade_guide.py | 81923054a49b06cd0ea2a5a306adf26d3cec1537 | [
"Apache-2.0"
] | permissive | johnjasa/dymos | 47895b23524d0bcdf5942a483a214aacec90903a | b6ecb8a24903271ba4681e3bd7471b79e5470e14 | refs/heads/master | 2023-08-28T16:33:16.414142 | 2023-03-07T23:00:44 | 2023-03-07T23:00:44 | 173,784,047 | 0 | 0 | Apache-2.0 | 2019-03-04T16:47:21 | 2019-03-04T16:47:20 | null | UTF-8 | Python | false | false | 34,041 | py | import os
import unittest
import openmdao.api as om
import dymos as dm
from openmdao.utils.assert_utils import assert_near_equal
from openmdao.utils.testing_utils import use_tempdirs, require_pyoptsparse
@use_tempdirs
class TestUpgrade_0_16_0(unittest.TestCase):
@require_pyoptsparse(optimizer='SLSQP')
def... | [
"noreply@github.com"
] | johnjasa.noreply@github.com |
523751e6e8961a085fb1b5cf1bba096980c6d848 | 8a56a194ccd95f761e75cf321e17cfa4e022672e | /Day1/HelloPython.py | 65831feb52e29334048c34ae869d671b5512cc95 | [] | no_license | Nagadath-Gummadi/Python | ac65242228f6d4dbff7b92f6f81e92224d819ae7 | be06d09f398b65c76da4a14e1d999b2b0344b823 | refs/heads/main | 2023-04-06T02:05:30.617549 | 2021-04-21T16:12:42 | 2021-04-21T16:12:42 | 355,996,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48 | py | print('Hello Python')
print('This is Nagadath')
| [
"noreply@github.com"
] | Nagadath-Gummadi.noreply@github.com |
b482070fbae3637bb4dd0ca363734f2f956ecc0b | da900dd1e472a9f97cef1fce2248071003ba7afd | /networks/legacy_resnet.py | fd411275083114560b1c03a78a86589ec1a4f006 | [] | no_license | Kitsunetic/motion-classification-dacon | aa6a7964107bc22380b646cd279f2cb460f8d098 | b9a20af6e2e10a8a86e8860b7533cce7cf8e24a1 | refs/heads/master | 2023-05-26T18:24:56.953163 | 2021-06-09T07:47:51 | 2021-06-09T07:47:51 | 334,885,231 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,971 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from .resnet import BasicBlock, BottleNeck
from .common import Activation
class LegacyResNet(nn.Module):
def __init__(self, block, layers):
super().__init__()
self.inchannels = 32
self.conv = nn.Sequential(
... | [
"kitsune.guru@gmail.com"
] | kitsune.guru@gmail.com |
0a7597e3d236cf1e48f13a9f3922e70e10cccc71 | 1d1bf4a38e497980b659959ba198034d12ef07da | /BinPacking_v2/main_tabu_search.py | c0b1392a5affaf0f95f35e34508f4c7714301584 | [] | no_license | IdrissHmz/Opt-BinPack-Resolver | b6542fffbb166cf818331251b9730b5aa3be9d96 | 558228bddefa2722d373eb67402fdc0aca2d0584 | refs/heads/main | 2023-07-31T17:48:58.993458 | 2021-09-21T14:12:30 | 2021-09-21T14:12:30 | 408,844,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,920 | py | from TabuSearch import TabuSearch
from GeneticAlgorithm import Item
from random import shuffle
from datetime import datetime
import json
def log(message, end=None):
print(message, flush=True, end=end)
if __name__ == '__main__':
datasets = [
{"name": "instances/Difficile/T_Moyenne_200/HARD0.txt", "so... | [
"noreply@github.com"
] | IdrissHmz.noreply@github.com |
2fda4647c5ff8473a142c6167a9441fd04805d55 | b9565415aba7b0e2e1d69c6f137b14718491ec9c | /picture.py | 45c5f5a8f286b7c44a77f2b23a85ed8940979578 | [] | no_license | JaclynNoga/Relativity_word_problems_2014 | d52258eecaa5556f18ca9cea0e2056fd72a67bdd | 4f7003d463d383089cb71b34b760187d0eada780 | refs/heads/master | 2016-09-13T04:13:48.113326 | 2016-05-23T22:20:01 | 2016-05-23T22:20:01 | 59,521,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,198 | py | from tkinter import *
import math
import sys
class Picture():
def __init__(self, param, param2=0, TITLE=None):
self.root = Tk()
if TITLE != None:
self.root.wm_title(TITLE)
self.frame = Frame(self.root, None, borderwidth=0)
self.frame.grid()
global canv... | [
"you@example.com"
] | you@example.com |
7f9fc2e64fb08cb1368a761ce9e1462217c76337 | 38c98758d1920411a148b137677f3de3a5baf2e1 | /lab3/imdbspider.py | bc3b5a9077e3facfc79fbdd047ed1b3e6034d6f5 | [] | no_license | ZombieCait/DR_DK | 253d91a4f281ef6ce5d8b10fce595860db552e50 | 2442acbe9ccd94c17cceb7596ec417cff869f061 | refs/heads/master | 2020-05-03T16:38:49.319347 | 2019-05-16T10:15:27 | 2019-05-16T10:15:27 | 178,727,697 | 0 | 0 | null | 2019-03-31T18:41:04 | 2019-03-31T18:41:03 | null | UTF-8 | Python | false | false | 1,372 | py | import scrapy
class ImdbSpider(scrapy.Spider):
name = 'imdbspider'
#Здесь нужно или получить массив фильмов из бд\файла, или получить параметр из командной строки
#и собрать URI
#Для примера подойдёт и константа
start_urls = ['https://www.imdb.com/title/tt0113243/']
def parse(self, response):
... | [
"caitzombie@gmail.com"
] | caitzombie@gmail.com |
2e421842c61db0a90cfcaab5402ef0c457e78b09 | ab0315bcded75c10c591076b22ed8ff664ee76af | /fig4/config_scf_10mods_merfish_200213.py | ba6e77af2db7ec33e2b3695646b1eb7070940d82 | [] | no_license | mukamel-lab/BICCN-Mouse-MOp | 389f62492986a2ffe4278ed16f59fc17dc75b767 | 8058ab8ae827c6e019fff719903b0ba5b400931d | refs/heads/master | 2021-07-06T11:14:25.401628 | 2020-09-30T04:54:27 | 2020-09-30T04:54:27 | 189,758,115 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,740 | py | #!/usr/bin/env python3
"""An example configuration file
"""
import sys
import os
# # Configs
name = 'mop_10mods_merfish_200213'
outdir = '/cndd/fangming/CEMBA/data/MOp_all/results'
output_pcX_all = outdir + '/pcX_all_{}.npy'.format(name)
output_cells_all = outdir + '/cells_all_{}.npy'.format(name)
output_imputed_dat... | [
"fmxie1993@gmail.com"
] | fmxie1993@gmail.com |
8e0869aa2e541a6c21a734341235e05957391c2f | 102fe58b8e9f3e89a5574516f235571683671b3e | /accounting_pdf_reports/reports/report_partner_ledger.py | ac41d6a174dfca1199d91d8204475af0fc819da0 | [] | no_license | kri-odoo/KRISTINACERT | 5febe050d1a289f6b76873c5dfa419eba8b21f0d | 3650e5bde431513c24f87917be5e06b6b61a744c | refs/heads/main | 2023-04-05T04:37:30.888377 | 2021-03-23T17:28:31 | 2021-03-23T17:28:31 | 341,990,378 | 2 | 0 | null | 2021-03-23T18:09:41 | 2021-02-24T18:06:18 | HTML | UTF-8 | Python | false | false | 6,117 | py | # -*- coding: utf-8 -*-
import time
from odoo import api, models, _
from odoo.exceptions import UserError
class ReportPartnerLedger(models.AbstractModel):
_name = 'report.accounting_pdf_reports.report_partnerledger'
_description = 'Partner Ledger Report'
def _lines(self, data, partner):
full_acc... | [
"75452389+kri-odoo@users.noreply.github.com"
] | 75452389+kri-odoo@users.noreply.github.com |
5316d909ad741bbc04a75ff44c8e12b383a2a949 | 3e5b2eb741f5ae52752328274a616b475dbb401a | /services/nris-api/backend/app/config.py | 3eca18d43e5b1ffb47a603ac32051306f6a22b77 | [
"Apache-2.0"
] | permissive | bcgov/mds | 165868f97d0002e6be38680fe4854319a9476ce3 | 60277f4d71f77857e40587307a2b2adb11575850 | refs/heads/develop | 2023-08-29T22:54:36.038070 | 2023-08-29T05:00:28 | 2023-08-29T05:00:28 | 131,050,605 | 29 | 63 | Apache-2.0 | 2023-09-14T21:40:25 | 2018-04-25T18:54:47 | JavaScript | UTF-8 | Python | false | false | 5,830 | py | import os
from dotenv import load_dotenv, find_dotenv
class Config(object):
# Environment config
SECRET_KEY = os.environ.get('SECRET_KEY', 'dev')
BASE_PATH = os.environ.get('BASE_PATH', '')
DB_HOST = os.environ.get('DB_HOST', 'localhost')
DB_USER = os.environ.get('DB_USER', 'user')
DB_PASS = ... | [
"noreply@github.com"
] | bcgov.noreply@github.com |
6b627b68b15a32b93f2b8954a731967727cf0f25 | df6369a5788deb67909529799057ed752d9f0a6a | /druckfeder.py | 70835819d2f5257311de2a01fc28a01b5469f71c | [
"MIT"
] | permissive | reox/cupspring_calculator | 7d3e1bba7a91c719d7b9917ae3384645a1e310a7 | 32adcad3a6b6865742733d2fe73bb9a82383870b | refs/heads/master | 2020-06-10T06:17:31.301187 | 2017-08-28T12:10:32 | 2017-08-28T12:10:32 | 76,056,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 582 | py | #!/usr/bin/env python3
import argparse
parser = argparse.ArgumentParser(description='Druckfedern')
parser.add_argument('-d', type=float, help='Drahtdurchmesser')
parser.add_argument('-D', type=float, help='Áussendurchmesser')
parser.add_argument('-n', type=float, help='Windungen')
parser.add_argument('-L', type=float,... | [
"me@free-minds.net"
] | me@free-minds.net |
3c1e7add6c081f205dd8fc5b45407cb372444311 | 03add099b03a81f196c6376c29ddb3d6bc0f33a7 | /Atividade Continua 03/1282impacTube.py | 795187c037a448484c9c3b1fe6884e12bd06457e | [] | no_license | felipperodri/Impacta-ads1D-lp-uri | 4d4852490577b2fa416abe1e3cd1e9a2fa4704cc | 58a52305a223b382d5f2ccd6d36ba6ce1fa6e74a | refs/heads/main | 2023-09-03T15:40:32.309268 | 2021-10-19T17:01:54 | 2021-10-19T17:01:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 853 | py | n = int(input())
temp = []
tabela = []
for canais in range(1, n + 1):
nome, inscritos, monet, premium = input().split(";")
inscritos = int(inscritos)
monet = float(monet)
temp.extend([nome, inscritos, monet, premium])
temp.append(0)
tabela.append(temp)
temp = []
fixo1 = float(input())
fixo... | [
"felipperodri@outlook.com"
] | felipperodri@outlook.com |
9b5e64bf554c4371804f8c6bd214ecb12aa4d700 | c797c2cf0de87f99ce67a5441d31950aab687bea | /15_flask-sess/app.py | 61285c7e94c021bb487bfb7b9e3e15ddd94571bd | [] | no_license | Saqif-Abedin/sabedin10 | 68135866623062aa0657d038362d18ab716bdb4a | 811874100cc2cd52068e58005e2258a8d3def06b | refs/heads/master | 2023-05-02T20:20:08.175971 | 2021-05-18T01:52:03 | 2021-05-18T01:52:03 | 298,570,595 | 0 | 0 | null | 2020-09-25T12:58:46 | 2020-09-25T12:46:36 | null | UTF-8 | Python | false | false | 1,557 | py | # Third Huge Freckled Elephant
# Ethan Shenker, Constance Chen, Andrew Jiang, Saqif Abedin
# K15 - Sessions Greetings
# 2020-12-12
from flask import Flask, render_template, request, session
import os
app = Flask(__name__)
app.secret_key = os.urandom(32)
username = "elephant"
password = "123pass"
@app.route("/")
def... | [
"57577209+Saqif-Abedin@users.noreply.github.com"
] | 57577209+Saqif-Abedin@users.noreply.github.com |
4a6e91b943b782e5aa145a70215ce37d67232dbe | 5da3246edb630f99582cf14f869e052bcc2192b1 | /wordhelper.py | 6c56b5792aa3236607e36c655672e12b2fea6e53 | [] | no_license | neonfrontier/wordhelper | e388b7c0fbb38fe8c1262770da26cee3a8b725e5 | fdf34d6df796c40d9a16f28db67757f991d6ab94 | refs/heads/master | 2020-04-27T00:56:28.995602 | 2014-08-13T00:11:13 | 2014-08-13T00:11:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,428 | py | """This is a module to facilitate iterative reading of letters in a list of words based on certain parameters, and match them to all in the master list.
In other words, it's a crossword etc word helper/finder.
The word list is courtesy of: http://en.wikipedia.org/wiki/Moby_Project"""
print("This is a word finder app d... | [
"enu1985@gmail.com"
] | enu1985@gmail.com |
8e5e6f6b19be1be8b32832473d53ac0cc01adc08 | c5872ecd38eb53c808deee5614c3ad5a2370e36b | /ssb-drive.py | 960b1194b0fc9d3580cd04aa7d46ae74114c832e | [
"MIT"
] | permissive | cn-uofbasel/ssbdrv | b880f4bc1ccac1d5e96a626de07c979e09baab82 | 1f7e6b11373ef6f73415f0e9c62f1ade29739251 | refs/heads/master | 2020-03-27T20:22:58.335522 | 2018-09-07T21:18:05 | 2018-09-07T21:18:05 | 147,065,346 | 68 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,206 | py | #!/usr/bin/env python3
# ssb-drive.py
# 2018-08-31 (c) <christian.tschudin@unibas.ch>
import array
from asyncio import gather, ensure_future, Task, get_event_loop
from datetime import datetime
import sys
from prompt_toolkit.application import Application
from prompt_toolkit.buffer import Buffer
from prompt_toolkit.... | [
"christian.tschudin@unibas.ch"
] | christian.tschudin@unibas.ch |
7283f193ecceac6428e1525188c272cfae1a4fd4 | 81d2e3b6fe042e70cc2abb7f549f60ba44928fdf | /nowcoder/company/0918-平安/02.py | 27e131270611e5cd79aafba5b6d5e0a7a36b61fb | [] | no_license | weizhixiaoyi/leetcode | a506faed3904342ed65234864df52071977d544d | 6114ebacc939f48a39a56d366646b0f28b4f6c1a | refs/heads/master | 2022-12-22T03:52:07.936800 | 2020-09-29T07:49:52 | 2020-09-29T07:49:52 | 202,662,720 | 5 | 2 | null | 2019-08-17T09:24:49 | 2019-08-16T05:16:08 | C++ | UTF-8 | Python | false | false | 1,064 | py | # -*- coding:utf-8 -*-
#
# 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可
#
# @param p float浮点型一维数组 第一个概率分布
# @param q float浮点型一维数组 四二个概率分布
# @return float浮点型
#
class Solution:
def cross_entropy(self, p, q):
# write code here
import math
nums_len = len(p)
sum = 0
hq = 0
for i... | [
"zhenhai.gl@gmail.com"
] | zhenhai.gl@gmail.com |
8dd33c1ba10039f3970d8ecca17789419a2127a2 | f9012c8e1d366b1158465604acf013b86632d02e | /42Gouraud/main.py | 3cde472a7885f922d7b13842d8d82f52ae79af20 | [] | no_license | pppppass/CGAssign | c549182dff10558c147c801a3979b2c1a73918c1 | 3c00238099bd355a1af706a5b6553c5ba6b92bfd | refs/heads/master | 2020-03-23T23:22:14.627296 | 2018-05-15T16:56:39 | 2018-05-15T16:56:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,494 | py | #! /usr/bin/env python3
import math
from time import time
import argparse
import numpy
import scipy.linalg
from OpenGL.GL import *
from OpenGL.GLU import *
from OpenGL.GLUT import *
parser = argparse.ArgumentParser(description="Show comparision about different shading models, including Gouraud shading")
parser.add_... | [
"lzh2016p@pku.edu.cn"
] | lzh2016p@pku.edu.cn |
3b35f1ac431f0f9b548f5e57cf6eef5321337655 | d67f75664303b9b01642294de69b2e25cbce5601 | /api/schemas/match.py | 515dfda7e1b36cabc4c6e9acda28af73dc122581 | [] | no_license | ianwestfall/tourneyman-fast | a60d3a9ce1ef4157df092956d7b40516d972f4fd | 08ab62a5e5b9415608d27eeafdbf72d76199e61a | refs/heads/master | 2023-04-23T13:36:37.761333 | 2021-05-02T23:25:53 | 2021-05-02T23:25:53 | 294,995,934 | 0 | 0 | null | 2021-02-21T23:52:55 | 2020-09-12T17:46:04 | Python | UTF-8 | Python | false | false | 408 | py | from typing import Optional
from pydantic import BaseModel
from api.schemas.competitor import Competitor
class Match(BaseModel):
id: int
ordinal: int
competitor_1: Optional[Competitor]
competitor_1_score: Optional[int]
competitor_2: Optional[Competitor]
competitor_2_score: Optional[int]
... | [
"ian.d.westfall@gmail.com"
] | ian.d.westfall@gmail.com |
7df91ac54c4e5eb6c3816105e95aa0dbb3414cae | 00a99462d65dc1fd950f9eab82e5139ddc211577 | /ZePMS/settings.py | a7001e45e7298cda64e6e6cd70605c3327e4c700 | [] | no_license | tkiran/ZePMS | 2cbf8d7f29b7ad01f59c9e6025080f0ef3d2cdb6 | fd221fd8c4c60ee667e726e524135a7ad952b4d7 | refs/heads/master | 2021-03-12T20:37:22.584514 | 2015-09-09T09:50:47 | 2015-09-09T09:50:47 | 42,112,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,635 | py | """
Django settings for ZePMS project.
Generated by 'django-admin startproject' using Django 1.8.4.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build paths ... | [
"tkiran@zeomega.com"
] | tkiran@zeomega.com |
e2a9622cde9d4a844a91ce9f7cb6c0aa4f350b1e | 93269e34160244fa3a61dc051def95a65f6e7569 | /Mark_2.py | 5e9d2f28a0156201f25dfb558b7e08f8add81e37 | [] | no_license | sgundu-doosratake/Python_Coding | 50e1959c640d6852d99d7cad95f27758c4c76c4e | 5faec8a4f11b3c5f4395ccb31915a459da023d2a | refs/heads/master | 2021-01-14T14:58:07.163661 | 2020-02-24T05:24:20 | 2020-02-24T05:24:20 | 242,653,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46 | py | x=10
y=5
x=x+y
y=x-y
x=x-y
print(x)
print(y)
| [
"saith.kumar@doosratake.com"
] | saith.kumar@doosratake.com |
74aa7974e8e788af2a8feac8d6626b6188b7ba99 | 3ce4c8195136b758a6ca20c34ded458fb21843dc | /dataset/qqpy/tradehk.py | 45cb1544e0564592a0cd308567b0898c73f00d99 | [] | no_license | davischan3168/packages | 4f280d8b054f67189392919bce2f30f492e9bf2f | 2136958cf4560cc183b072d89b756fad60e306bb | refs/heads/master | 2020-04-15T15:47:31.880065 | 2019-08-26T11:42:08 | 2019-08-26T11:42:08 | 164,808,713 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,475 | py | #!/usr/bin/env python3
# -*-coding:utf-8-*-
"""
获得公司的基本信息和财务信息
"""
import requests,json
from io import StringIO
import re,sys,os
from bs4 import BeautifulSoup
import pandas as pd
import lxml.html
from lxml import etree
import datetime as dt
import webdata.puse.qqpy.cont as wt
from webdata.util.hds import user_agent as ... | [
"racheal123@163.com"
] | racheal123@163.com |
9bdf8ef6748e5a686675673fb78fcc28c5f0ecf9 | 927923c2c750525dece887b4064036b6c4516d1d | /neural_net_class.py | bc0fcbde449acc99bb21eb0c55aff1792469040b | [] | no_license | adikr24/nn_from_scratch | 0c9b65aef897fbb308fad5f39b8b71097c1cf85c | 83add350c9448069d123b0d5056701e7bca932ca | refs/heads/master | 2020-05-03T06:51:47.896948 | 2019-03-30T03:44:26 | 2019-03-30T03:44:26 | 178,483,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,366 | py | import math
import numpy as np
X1 = 5
X1= np.array([X1])
#W1= np.random.rand(X1.shape[0])
W1= np.array([0.3])
A1= W1.dot([X1])
y_pred= sigmoid(A1)
Error = y_act - y_pred
lr =0.005
print(y_pred,W1)
y_act=1
##################################class
#### 5 layer NN
import numpy as np
X= np.array([[3],[2]])
W1 ... | [
"akumar24@uncc.edu"
] | akumar24@uncc.edu |
56d685f07100b7f4a857869f14e4508ceab47e75 | 0ff6f0242176bc80a5165e4bba21999df20d59bc | /17_String ends with.py | 61fa89e8737f9d6bf917cebd5c29c0ff119a58f7 | [] | no_license | Martin-Schnebbe/Coding_Challenges | b2358188827ff41dbf648850e89b45b3d2d6d300 | 5df097b9aad48f38ca7f30bab486cbdec7760f69 | refs/heads/master | 2020-09-04T16:30:24.957870 | 2020-01-20T14:36:00 | 2020-01-20T14:36:00 | 219,802,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | def solution(string, ending):
return string[len(string)-len(ending):] == ending
print(solution('abcde', 'cde'))
print(solution('abcde', 'abc')) | [
"martin.schnebbe@gmail.com"
] | martin.schnebbe@gmail.com |
970f2a170dcfb38b916b1907283370b221a1b0e0 | 129783d5c860eaea03c581d52f5efd41be0d8f59 | /main.py | 3fa256c73b8874a9a37cd2d6e694776cb6afe4d6 | [
"MIT"
] | permissive | msilvestro/dupin | 59b1206cc462f1ce81341cde1c124bac7b300220 | db06432cab6910c6965b9c35baaef96eb84f0d81 | refs/heads/main | 2023-04-14T07:53:24.227140 | 2021-04-28T22:23:07 | 2021-04-28T22:26:03 | 107,972,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,935 | py | """Extract the story graph of DoPPioGioco and perform some analysis."""
# pylint: disable=C0103
# %% Import all necessary modules.
from collections import defaultdict
import statistics
from interactive_story.dg_story_graph import DoppioGiocoStoryGraph
import matplotlib.pyplot as plt # to display plots
from IPython.dis... | [
"matteosilvestro@live.it"
] | matteosilvestro@live.it |
9e0dadddf8dcbe20c41a8217b3cf734f64324ffa | d069323121fc238a0d37c44ff831f30eaa12e8fe | /tjbot/template_helper.py | 07b26b90a50b94bec907affd354f45b7998484cf | [
"Apache-2.0"
] | permissive | m4scosta/TJBot | 6b6cf54ae7b48c191bdc90c4c5472637f69acc63 | e7e61bcfa892240aac0ca263e815bdf1d635436d | refs/heads/master | 2023-06-11T14:39:21.268913 | 2018-04-25T01:43:08 | 2018-04-25T01:43:08 | 79,977,725 | 0 | 0 | Apache-2.0 | 2021-07-02T08:14:15 | 2017-01-25T02:54:55 | Python | UTF-8 | Python | false | false | 415 | py | # coding: utf-8
from jinja2 import Template
from os import path
SRC_DIR = path.dirname(__file__)
TEMPLATE_DIR = path.join(SRC_DIR, 'templates')
def load_template(template_name):
with open(path.join(TEMPLATE_DIR, template_name)) as tpl:
return Template(tpl.read().decode('utf-8'))
def render(template_nam... | [
"costa.marcos.pro@gmail.com"
] | costa.marcos.pro@gmail.com |
2ee57090f97077d485e3927207d18c1f25b34416 | 34cba926e11f19e91495bb6fa304d007a2fa1372 | /pandasProject.py | d4658efeb1a5747798a317035ef9d2da37c6128a | [] | no_license | Tirupathi123/myProject | 5e5e2d5c8a47cb676fb3202e7e3580e22732ba5b | 9f65f527ff26a956fba718a99d93c6348a8ce1ec | refs/heads/master | 2020-07-31T00:23:06.414441 | 2019-09-24T10:22:08 | 2019-09-24T10:22:08 | 210,415,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | import pandas as pd
Data_frame=pd.read_csv('housing.csv')
a=Data_frame
#print(a) #to read and get all the dataframe
print('1 >',a.head(6)) #to get starting rows
print('2 >',a.tail(4)) #to get last rows
print('3 >',a[10:20]) #to get particular inBetween rows
print('4 ... | [
"noreply@github.com"
] | Tirupathi123.noreply@github.com |
5b8834be26df45996be97bd6406f26e940bca6a3 | 6614eaf58b6dee7a45181b584d93e3697983ddd0 | /utils/sendEmail.py | 7075dd10fa43de42a173d94386bf0d8cdc18cf49 | [] | no_license | simon-Hero/WAF | efa5e066a732b711366c57678554487ba6ed88bd | f04197b7c53ee00d6a289f89bee858262fe48dc1 | refs/heads/main | 2023-06-09T10:07:43.598561 | 2021-07-02T11:05:24 | 2021-07-02T11:05:24 | 380,387,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,279 | py | import smtplib
import time
from email.header import Header
from email.mime.text import MIMEText
class SendEmail():
def send_email(self, new_report):
# 读取测试报告中的内容作为邮件的内容
with open(new_report, 'r', encoding='utf8') as f:
mail_body = f.read()
# 发件人地址
send_addr = '338135068... | [
"2021037848@qq.com"
] | 2021037848@qq.com |
a3547f80e12607a57a895741736a1ed802ff72bb | 8b77caceda0387fb8c309e4768f0484dd796b5eb | /dev/TTSE/TimeComp.py | b812d2eda85af2e3bd86a1d25c3a0df14f94f9b7 | [
"MIT"
] | permissive | postmath/CoolProp | c51c70dfd5505e12c496bc49f4f639910d07113a | 4cb169ff6956268e8fa96c96dbddfe3b426a1bf4 | refs/heads/master | 2021-01-15T10:51:21.730069 | 2015-04-22T11:07:33 | 2015-04-22T11:07:33 | 34,334,674 | 0 | 0 | null | 2015-04-21T15:11:44 | 2015-04-21T15:11:44 | null | UTF-8 | Python | false | false | 66,979 | py | #!/usr/bin/python
# -*- coding: ascii -*-
#
from __future__ import print_function, division
import os, sys
from os import path
import numpy as np
import CoolProp
import glob
from warnings import warn
from time import clock
import CoolProp.constants
from CoolProp.CoolProp import PropsSI,generate_update_pair,get_paramet... | [
"jowr@mek.dtu.dk"
] | jowr@mek.dtu.dk |
6aeb5dd0d63bbbfa7c7a8309ee7d08cdd953b7f0 | 4aca8b5d8b06891f74ef3ebdd2c3371f0b32b62c | /employes/settings/base.py | 59510cec9c915adcdaf172d955ec24ee9bce36a5 | [] | no_license | javierjsv/employed-django | d125327babfcb3cfc7e7736f5408a85d6708495c | 83134788270e33154509ad04f9c0822263649e1b | refs/heads/master | 2023-02-28T11:06:57.084826 | 2021-02-06T17:56:35 | 2021-02-06T17:56:35 | 332,308,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,578 | py |
import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
# BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
from unipath import Path
BASE_DIR = Path(__file__).ancestor(3)
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.c... | [
"javiersolis@useitweb.com"
] | javiersolis@useitweb.com |
2a1ce9e27ded841f4a824d5a6be3f805758fb896 | e9ebcec0fcc99c7721b45a12c5315349d75ee158 | /211012_main.py | db023dd2f814f193076743c1e19bf5df308c300a | [] | no_license | pogn/gazua_sns | d7b119cdf5f30fa9c6acaf0eac73801c3102185a | 3053f127543940cbecdc637378bf196b3f0a5791 | refs/heads/main | 2023-08-22T04:16:29.277063 | 2021-10-18T12:20:19 | 2021-10-18T12:20:19 | 406,468,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,691 | py |
import pybithumb
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from datetime import datetime
import matplotlib as mpl
def get_ror_ji(ticker,start_date,end_date,k,target_vol,money,fee):
df = pybithumb.get_ohlcv(ticker)
df = df.loc[start_date:end_date]
#df = df.loc[start_date, '2021... | [
"ujungin1213@gmail.com"
] | ujungin1213@gmail.com |
7d78c58f4bc55af34e8f3df2884698d75d86cba7 | ec69032800a6f7328f88209b2590d512d6c8aa31 | /Python-SC106A-Assignment2-main/khansole_academy.py | bf9324236450b21318fe85efc74cd821dddf322f | [] | no_license | DianaTs1/SC106A-Assignments | 5bd24483a90023a2612b8115449b40c1dbfbde1e | dcb50704a98b95ff955db5656aeb7a2b9807ed69 | refs/heads/main | 2023-07-13T17:49:25.774903 | 2021-08-30T01:37:11 | 2021-08-30T01:37:11 | 373,280,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 850 | py | import random
MIN_NUMBER = 15
MAX_NUMBER = 95
def main():
number_of_users_correct_answer = 0
while number_of_users_correct_answer < 3:
first_number = random.randint(MIN_NUMBER, MAX_NUMBER)
second_number = random.randint(MIN_NUMBER, MAX_NUMBER)
print(f"What is {first_number} + {second_... | [
"noreply@github.com"
] | DianaTs1.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.