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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
244f75e62fee8f8b35e9746f07e2afee7fd1090b | 03499bffca838f407e3a22b216df0d1807fe8c97 | /dive/customserializer.py | 6ec8bb14312c7cc3ddf3f6986a2bc9beda769819 | [] | no_license | tsukit2/mypythonlearning | 54dfe9845937f1e678db91f154ed66f32d995289 | a8a85bf25fe91b0fc12c8a43f701552bacd8acbe | refs/heads/master | 2021-01-10T19:55:32.598001 | 2011-03-17T23:46:10 | 2011-03-17T23:46:10 | 32,286,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | import time
def to_json(python_object):
if isinstance(python_object, time.struct_time):
return {'__class__': 'time.asctime',
'__value__': time.asctime(python_object)}
if isinstance(python_object, bytes):
return {'__class__': 'bytes',
'__value__': list(python_object)}
ra... | [
"tsukit@135c47a1-433c-b587-80eb-c937e1a09c14"
] | tsukit@135c47a1-433c-b587-80eb-c937e1a09c14 |
c6d010f69671e1eab1e3fee2a0b591e19cbad069 | ea356efac5279de4e5926b5eeb6ecf477146fa12 | /bookmart/views.py | 93f481efd29562bcaf2b9d1ab6360a57c7c0094a | [] | no_license | ndneighbor/bookshop | 75581b72aba9f0bd462249545492789af63e7355 | 6a47166dcd441c27c062184016141c7adb1d0fbb | refs/heads/master | 2020-03-29T04:00:15.924221 | 2018-11-22T01:54:35 | 2018-11-22T01:54:35 | 149,510,812 | 0 | 4 | null | 2018-11-22T03:03:44 | 2018-09-19T20:51:42 | JavaScript | UTF-8 | Python | false | false | 379 | py | from django.views.generic.list import ListView
from books.models import Book
class HomePageView(ListView):
model = Book
template_name = "index.html"
def get_context_data(self, **kwargs):
context = super(HomePageView, self).get_context_data(**kwargs)
context['latest_books'] = Book.objects.... | [
"asara019@fiu.edu"
] | asara019@fiu.edu |
ccda4da05cc51efda1da87649564874afc8467cc | ef68be7662c2f189e381682b08ec6f41bdf374b3 | /path_finding/scripts/plan_path.py | 559f2efe363625bb24040a838736b09ccad2354f | [] | no_license | DudekPL/tiago | 65ef3e8863d27308ea6d45cb8aa1e7f024998426 | 5fdea4a34e3fb5b9cc3045ac9c7dafb6936072fa | refs/heads/master | 2023-02-21T20:20:28.925499 | 2021-01-26T22:25:27 | 2021-01-26T22:25:27 | 329,358,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,146 | py | #!/usr/bin/env python
import rospkg
import sqlite3 as sql
import rospy
from path_finding.srv import Plan_path, Plan_pathResponse
from path_finding.msg import Point
import itertools as itt
import random
start_point = 'spawn'
class Object:
def __init__(self, _name, _expiring, _priority):
self.name = _name... | [
""
] | |
39c7e75594ee71653f29814148eeebb5b8a2bc8e | b4024a1b406361542d3e91e4cae1ad02ec238b7b | /VideoGameMarket/VideoGameMarket/urls.py | acd8d89d55dbb94f55a61280803ddb4806aa102e | [] | no_license | oscargarza356/UIGameMarket | 2a52b19597bed3e7788a601ceb52a416b2a8aa33 | a5e75be1f9f198e4eeea08e27fde2d0523e019f7 | refs/heads/master | 2020-04-04T20:57:35.385940 | 2018-12-11T21:11:29 | 2018-12-11T21:11:29 | 156,266,965 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,104 | py | """VideoGameMarket URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
... | [
"oscar35689@hotmail.com"
] | oscar35689@hotmail.com |
7cbba5c870078f20312a03fa2521edf549d6b736 | ade562bdcf0c1c0cc06e0c19984b04edeb29cf0c | /swarooop_c_h/a_byte_of_python_russian/world/__init__.py | 5fd989663d759471fcb6c3be3a30b699040de390 | [] | no_license | FoctoDev/Learning_Python_3 | f6a0b9bd805f60fa6519c587c7b12c7aaecddc3a | 7e4b6e847b1831477bec1b9a88cf8f70c7f198b8 | refs/heads/master | 2022-11-11T09:18:47.072687 | 2020-07-05T08:45:37 | 2020-07-05T08:45:37 | 263,550,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | # Пакет world содержит субпакеты africa И asia
| [
"foctodev@gmail.com"
] | foctodev@gmail.com |
5cd98bad4ada4798b10dc59ca7971861b1bb8d7b | dad3a74ca26e0fa955a8a199f771af07f5465635 | /train_options.py | b154cc770eb0538cd0d5140228a547fda84ec939 | [] | no_license | mujtaba-hike/canny_dlib_semantic_maps | 92b3d503971c7af9fa602f311dec0b5c480ac612 | f87e50a1bc235f0f55c599f1a584be2575bb0c68 | refs/heads/master | 2021-01-04T08:57:59.016331 | 2020-02-14T10:19:27 | 2020-02-14T10:19:27 | 240,477,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,223 | py | from base_options import BaseOptions
class TrainOptions(BaseOptions):
def initialize(self):
BaseOptions.initialize(self)
self.parser.add_argument('--display_freq', type=int, default=100, help='frequency of showing training results on screen')
self.parser.add_argument('--print_freq', type=i... | [
"noreply@github.com"
] | mujtaba-hike.noreply@github.com |
b9e099fbd31518d084e13449c5d6d6f2991e681e | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/cv/classification/Gluon_ResNet50_v1c_for_PyTorch/timm/models/hardcorenas.py | af5cfed312b0317f6a062e08f0427637cf188e9d | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later",
"CC-BY-NC-4.0",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 8,655 | py | # Copyright 2019 Ross Wightman
# Copyright 2021 Huawei Technologies Co., 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... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
d1fcc2af5073643edff19b55c7c399a98d88cac1 | e79e28d847df55aa46374888ac20e351c8a58b9b | /LongestSubstringNoRepeats.py | 67cbd951c25ddc8f8bfe7b52d2811c8a40662ae5 | [] | no_license | anderskswanson/lc | 2adeedaaf99b2ae0ddb1865ec0efb262e1872134 | f38e2a1d2680f3e5240e06775707722825ba5e0f | refs/heads/master | 2020-03-23T04:16:53.363927 | 2018-07-25T04:18:06 | 2018-07-25T04:18:06 | 141,074,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | class Solution(object):
def lengthOfLongestSubstring(self, s):
"""
:type s: str
:rtype: int
"""
start = 0
bestlength = 0
chars = dict()
n = len(s)
for i in range(n):
if s[i] in chars and start <= chars[s[i]]:
start ... | [
"anders@AnderPC.localdomain"
] | anders@AnderPC.localdomain |
23801067b7034dc6aae9117c4c155c9e03938021 | e59a742c56cb4671dff31b044adbcf93b2341670 | /packages/sdk/odahuflow/sdk/models/user_info.py | 274f340938588ce93c3f76a33113a8b3e8e72826 | [
"Apache-2.0"
] | permissive | odahu/odahu-flow | c90f638dfb6a03942d6f1686ec4d95564e073915 | 58c3220a266a61bb893cf79c4b994569e3445097 | refs/heads/develop | 2023-03-06T22:47:21.215830 | 2022-04-27T11:14:36 | 2022-04-27T11:14:36 | 219,930,786 | 12 | 4 | Apache-2.0 | 2023-02-25T03:18:51 | 2019-11-06T06:50:47 | Go | UTF-8 | Python | false | false | 2,134 | py | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from odahuflow.sdk.models.base_model_ import Model
from odahuflow.sdk.models import util
class UserInfo(Model):
"""NOTE: This class is auto generated by the swagg... | [
"noreply@github.com"
] | odahu.noreply@github.com |
481330b2b92ea8b4d3678661c58325f6c3a0c8a0 | 3cf249eb18fe5b60bc581c4570a3de6a4a28c1dc | /httpserver.py | ad45fc6f9da0ed8b0564d42a1f1dc8baa683eae9 | [] | no_license | nandix/BasicPythonServer | a59e73dfd2a34022f5c5b34afe391bb973a8e14a | 53cd684cd05aa7860da0af4c4e5f48509c14bafc | refs/heads/master | 2021-01-14T12:56:55.300555 | 2014-03-05T03:13:51 | 2014-03-05T03:13:51 | 17,293,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,760 | py | '''
Name: prog1_server.py
Brief: This program acts as a simple python server
and responds to http get requests.
By: Daniel Nix
Date: 2/28/2014
For: Networking (CSC 492)
Description:
This python script acts as a server to
send html files using http protocols.
It sets up a socket at port 9876 and ... | [
"dan@localhost.localdomain"
] | dan@localhost.localdomain |
83cc7cd16e0edfaed53c3e05ce4cc3b73b988e29 | 57074435fcf3b2779376bdd43b937a4d250f6b6e | /2_Vigenere/GUI_Vigenere.py | a9f1ef988058a365c9c66a1c8844d9c0e76f9a11 | [] | no_license | NickLc/Ciphers | f9854c7b8ba1433e9a59e47048c72b753c19285d | 3bf58042327bd4d04dd4d9191c9111f93b79c7f3 | refs/heads/master | 2022-11-11T20:35:20.165964 | 2020-07-04T02:34:33 | 2020-07-04T02:34:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,694 | py | import tkinter as tk
from tkinter import Spinbox
from tkinter.ttk import Combobox
from tkinter import scrolledtext
from tkinter import Frame
from tkinter import Entry
from tkinter import messagebox
class Vigenere:
def __init__(self, abc="ABCDEFGHIJKLMNOPQRSTUVWXYZÑÁÉÍÓÚ"):
self.abc = abc
def encriptar... | [
"edsonlc_007@hotmail.com"
] | edsonlc_007@hotmail.com |
13572e80382af8809f09917252cdbee893598358 | 824ddb497551887f04d2f70fe89666b67b4515e0 | /02_OldCustLossing_Model/construction_featrues.py | b87f9011f0c244ac813c4a01a5b070943915be9f | [] | no_license | luzhonghe999/WorkDemo-MachineLearning | 75ae40d91210f44b7391457268b46a8ae45c85a3 | 0298277e5b66be3259ae0ceb00c4f315609ecc82 | refs/heads/master | 2021-04-06T10:31:49.443602 | 2018-04-09T07:24:31 | 2018-04-09T07:24:31 | 125,346,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,948 | py | import numpy as np
import pandas as pd
class construction_featrues:
'''
用于计算衍生指标,输出衍生指标dataframe
'''
def __init__(self,data):
self.data = data
def cal_featrues(self):
df = self.data
df = df[(df['TARGET'] == 1) | (df['TARGET'] == 0)]
#(3.2) asset
df['asset_up... | [
"luzhonghe999@gmail.com"
] | luzhonghe999@gmail.com |
1c7724ee37d22d1684aed42520fca9c81429947f | e70a17e8a37847a961f19b136f3bbe74393fa2af | /PC/build/turtlebot3_gazebo/catkin_generated/installspace/_setup_util.py | 99c7bb3b668de77abd4ff88f2cc163915ae0ae5e | [
"MIT"
] | permissive | Mondiegus/ROS-4x4-CAR-AI | 1413ead6f46a8b16005abeea3e0b215caa45f27e | 124efe39168ce96eec13d57e644f4ddb6dfe2364 | refs/heads/Master | 2023-07-14T23:56:53.519082 | 2021-03-27T17:28:45 | 2021-03-27T17:28:45 | 334,233,839 | 0 | 0 | MIT | 2021-02-02T13:00:30 | 2021-01-29T18:46:16 | Makefile | UTF-8 | Python | false | false | 13,337 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# Software License Agreement (BSD License)
#
# Copyright (c) 2012, Willow Garage, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistri... | [
"Mondiegus9@gmail.com"
] | Mondiegus9@gmail.com |
b6587d832b17a5f3e431610d1d4d49eadc8e30f6 | a3d9701d8074ba66edf51a54038707acb9e0e9b6 | /food_express/wsgi.py | bd72fa0536afffa0ebcdbb1da2c4547e6e16b67c | [] | no_license | jdshah98/Food-Express | 2e6b5cc7e0e6bc26f35a12b1a1bb2e336b756187 | 3b152239be47228540556e5de96586f7618d7de5 | refs/heads/master | 2020-06-19T04:13:04.258793 | 2019-09-10T07:36:01 | 2019-09-10T07:36:01 | 196,556,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
WSGI config for food_express project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_... | [
"jdshahstudio@gmail.com"
] | jdshahstudio@gmail.com |
d55910c880d0c3d1a2f34f4cbfb944fd9d8adc4e | 06268dbf15a1ef8e1e522977dad6e9f52e04ee40 | /src/deploy/osp_deployer/sah.py | 0dfa9fec1e499484dd3cfaa07660760c09c71594 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | juliovp01/JetPack | a909b0d66fa0054bf5074922280c286779129efe | 88ab3a50cc5f7e6581b006954b722d113924a96c | refs/heads/master | 2021-07-22T23:44:07.747074 | 2017-11-01T21:17:52 | 2017-11-01T21:17:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,244 | py | #!/usr/bin/env python
# Copyright (c) 2015-2017 Dell Inc. or its subsidiaries.
#
# 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 r... | [
"gael01@gmail.com"
] | gael01@gmail.com |
2451db96195a6ccf741363e24b3bd80870964b28 | d317a0828f8aa49d0a29a67251e221a642fd90c0 | /content/migrations/0002_auto_20160511_0822.py | d6d1229dbe2a5def7591a6dc386d99969cfda4df | [] | no_license | ntuckovic/simple_cms | 45136d65703e789656aa7ae44c3bb85c3cae88a3 | 4d484ae4b47ba088c9af04c8df8626548e64dc63 | refs/heads/master | 2016-09-12T16:24:53.307081 | 2016-05-20T18:40:59 | 2016-05-20T18:40:59 | 58,266,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-05-11 06:22
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('content', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
... | [
"nikola.tuckovic@styria.hr"
] | nikola.tuckovic@styria.hr |
8c493f0ad40467553ef929410b4c2e22d271f3a9 | 07f932c30bec781f383c16ccaa4bb0188bbeb719 | /class4/exercise1.py | f76d5047c5234de093cbcf30c62f73384d4af26e | [] | no_license | mrreyes512/pynet_ansible | 1e4b8381080a393ef74fce35a2cd31c2e7a43011 | 98d773443dd224c580ed60fc089ce9352cae9547 | refs/heads/master | 2021-01-11T03:29:13.879845 | 2017-01-19T07:08:17 | 2017-01-19T07:08:17 | 71,002,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 811 | py | #!/usr/bin/env python
"""
Use Paramiko to retrieve the entire 'show version' output from pynet-rtr2.
"""
import paramiko
from getpass import getpass
ip_addr = '184.105.247.71'
port = 22
username = 'pyclass'
#password = getpass()
password = '88newclass'
remote_conn_pre=paramiko.SSHClient()
#remote_conn_pre.load_system... | [
"mark.reyes@twcable.com"
] | mark.reyes@twcable.com |
e72041dd1699534744c115c7c5505d836205fc6e | 9ee4692e9e0c6d9b9ccd865ecb26d97f682d34c7 | /factorial_restocking.py | 67abdcd7c48e7ab646fadebcbc0803c28d49139c | [] | no_license | yanickdi/clsc_numeric | d752f2ff028ea97db307c9978ecd7136c4c75bac | e58a2de81ae29949cfc5ebcf8297cb5e61763fb4 | refs/heads/master | 2021-01-23T04:45:26.794805 | 2018-03-19T10:53:15 | 2018-03-19T10:53:15 | 92,942,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,028 | py | import sys, os.path, re
from statistics import mean
from jinja2 import Template
from solver import SolverProxy, Parameter, MODEL_2, MODEL_NB, ModelNBSolver
LATEX_SUBS = (
(re.compile(r'\\'), r'\\textbackslash'),
(re.compile(r'([{}_#%&$])'), r'\\\1'),
(re.compile(r'~'), r'\~{}'),
(re.compile(r'\^'), r'... | [
"yanick.dickbauer@uni-graz.at"
] | yanick.dickbauer@uni-graz.at |
3cbf8df1e8e863b25afe9f35429a2b205af7ac9c | 795cb0b80b5f8cf709a07843dbfb93adf2ad8942 | /ghmirror/app/__init__.py | f19c3fdc4744f2cfc0482d7886d6f26bc7ff7dd8 | [] | no_license | maorfr/github-mirror | 8ff2db7a8c9a085fe7a599586697def1f0a5c849 | 1a282fe7028aab61e307372edf93f909500c7bbc | refs/heads/master | 2022-11-15T01:16:51.462768 | 2020-02-10T17:05:01 | 2020-02-10T17:15:09 | 239,732,236 | 0 | 0 | null | 2020-02-11T10:14:23 | 2020-02-11T10:14:22 | null | UTF-8 | Python | false | false | 4,224 | py | # 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) any later version.
#
# This program is distributed in the hope that it will be useful,
# bu... | [
"apahim@redhat.com"
] | apahim@redhat.com |
9e0ede3a2753d931b34906babaf3125fe709eebd | 34975bd680962abba1ecd970c7320c8454a3a3b7 | /05_List/05_List_14.py | 787d2dc923ee345a234957bf1fcb339d5adfb754 | [] | no_license | miello/com_prog | 64df2dfa57f7f65cacef2d737e3639fa9b656fdf | 074241646f42f05c117649a94651eb2916fb468e | refs/heads/master | 2023-01-07T19:03:31.781243 | 2020-11-15T18:21:24 | 2020-11-15T18:21:24 | 288,693,402 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | inp = [int(e) for e in input().split()]
co = 0
for p in range(1, len(inp) - 1):
if inp[p - 1] < inp[p] and inp[p] > inp[p + 1]:
co += 1
print(co)
| [
"partearth1212@gmail.com"
] | partearth1212@gmail.com |
22793485a0f7007c064110e5272ecbb694f25b5c | 07b0a4cb98d79295ebd26bb8c8d7a46afdfb083c | /解答/14文字列操作_回答例/14_3.py | d40d5363c6b17d027c1d528d2b13d0e5e45894d9 | [] | no_license | kubotaaaaaaaaaa/python | a9d023a4ae4c3eee0e96e1f1c38ee2f96dc307ba | aa8a4239e56d2101101db6c8ff0d6657c7475877 | refs/heads/master | 2023-08-01T13:23:45.927737 | 2021-09-22T02:21:09 | 2021-09-22T02:21:09 | 409,025,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | # 入力された文字列が11文字以上だったら10文字目以降は削除して表示
# 文字列を入力
in_str = input("文字列を入力:")
# 11文字以上だったら10文字目以降は削除する
if len(in_str) > 10:
in_str = in_str[0:10]
# 文字数を表示
print("結果文字列:", in_str, sep="")
| [
"ykh2135212@stu.o-hara.ac.jp"
] | ykh2135212@stu.o-hara.ac.jp |
c38d87877d10582f005561fd99d0f442d987576d | 27f13ed7130ac753111beb3025e406b8e6ecee5d | /amazon/books.py | e03fd1d037ba27a230b5a545df42e37195f3d556 | [] | no_license | jonzingale/jonzingale.github.io | 85d4da81a49bf18765c3fbfbcc22f8b6c14b53ea | 15cb257adb5b9f9b3982c380666a6bd3b5737e37 | refs/heads/master | 2023-06-21T15:29:21.552683 | 2023-06-14T04:43:15 | 2023-06-14T04:43:15 | 139,901,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,297 | py | # import urllib3
# from bs4 import BeautifulSoup
from pdb import set_trace as st
import json
import csv
# urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
# Parse Amazon purchases, and display books
# in a clever way. Consider using LCC for classification.
class Graph:
def __init__(self):
se... | [
"jonzingale@gmail.com"
] | jonzingale@gmail.com |
0036b7e44c99c4b71575861c0070e88fcab5cc22 | 484f4ff9103a0f997eaa9a84efa35a12377d6540 | /rfc_record.py | a65074e6adc0633c9071480e991d973c6cfcd959 | [] | no_license | ruturajvy/P2P-Distributed-Index | 85199b62deb658d2bbf472894a2814db0d53a754 | 6e77d3aebdba65d0144f54fb93234bb8de21bdd8 | refs/heads/master | 2020-04-12T11:54:19.670334 | 2018-12-19T18:32:47 | 2018-12-19T18:32:47 | 162,475,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | class rfc_record:
'''Class that describes each record of RFC index'''
def __init__(self, id, title, hostname, ttl = 7200):
self.id = id
self.title = title
self.hostname = hostname
self.ttl = ttl
def rfc_rec_string(self):
sep ='*'
rfc_rec_str = str(self.id)... | [
"ruturaj8396@gmail.com"
] | ruturaj8396@gmail.com |
d22000aa293a9346c4dc46c9a669f81b8433ecd2 | 896717bb0762e5a6c259dd9194726ba2a84e8f42 | /beg95.py | 024b6b31cd53191c2b532676d18afffd6b3c118b | [] | no_license | sarureddi/floorvalue | d0cb81db0f0081091f9cfadf1d85230035f34593 | 27105728d260f236460cce0e59da74bdcd4c5fe6 | refs/heads/master | 2020-06-03T19:42:58.872883 | 2019-06-13T06:50:02 | 2019-06-13T06:50:02 | 191,707,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 75 | py | Pr1,Ti1,Rt1=map(int,input().split())
i1=Pr1*Ti1*Rt1
si1=i1//100
print(si1)
| [
"noreply@github.com"
] | sarureddi.noreply@github.com |
72e69dc8ecc9b944bfda48844915f1c3a7db0ec0 | 5daee2edd3f676ad0d1cebf223a1ecc6bc251e14 | /Course4FinalProject/controller2d.py | b12979bea5fc2ffc962b39433022c2716bca4e40 | [] | no_license | Aniket-Gujarathi/Motion-Planning-for-Self-Driving-Cars | 48d4fc06b7d0afeea5a509d44051eaee6811be3c | a446341b71ab5abf3b21b7ca7b31a2ca7fe00ea3 | refs/heads/master | 2020-12-14T22:20:51.778698 | 2020-03-30T15:26:08 | 2020-03-30T15:26:08 | 234,890,721 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 9,393 | py | #!/usr/bin/env python3
"""
2D Controller Class to be used for the CARLA waypoint follower demo.
"""
import cutils
import numpy as np
class Controller2D(object):
def __init__(self, waypoints):
self.vars = cutils.CUtils()
self._lookahead_distance = 2.0
self... | [
"aniketg.vnit@gmail.com"
] | aniketg.vnit@gmail.com |
1cd5e48e7a21108e144335c0a8f255ad91eded7d | a4f3e7f4f0d28f2c072a6378487760a067e838e6 | /Webmap_with_folium/webmap_main.py | aa5facae500ca7d8e6aaed7a1025d0b1f2b1c919 | [] | no_license | algebra-det/Python | 50cacdb517a863ef914dd8ce8b835091f28aa9f6 | c4506f4df0c2ec103b1bcebcfedca78cbe705541 | refs/heads/master | 2020-12-14T15:35:26.727430 | 2020-05-01T10:21:09 | 2020-05-01T10:21:09 | 234,789,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,188 | py | from folium import *
import pandas
# For Volcanoes
data = pandas.read_csv("Volcanoes_USA.txt")
lat = list(data["LAT"])
lon = list(data["LON"])
elev = list(data["ELEV"])
name_v = list(data["NAME"])
# For airport
data_airports = pandas.read_csv("airport.txt")
cor = list(data_airports["coordinates"]) # as in a... | [
"noreply@github.com"
] | algebra-det.noreply@github.com |
b6ae1fdd6178033aedd235ce4f78cc3d7e1cd15f | 7477865482948b6206c89df9e6fed64e1b92e879 | /flowretrieval.py | a30932dfafc6b0b1977a75ff84b681ac68979054 | [] | no_license | mann8352/Multipath-routing-using-SDN | fb6250b60181d57d31314e93fd3144b6540e7ae7 | 5811f83c1f64da448947a069d0ae72358403510b | refs/heads/master | 2021-04-15T12:38:51.382381 | 2016-08-02T12:53:13 | 2016-08-02T12:53:13 | 62,341,284 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,567 | py |
import json
import httplib2
import traceback
class FlowRetrieval:
"""Retrives all details of flow of each switch"""
def __init__(self):
pass
def retrieveFlow(self, switch):
"""retrieves flows"""
h = httplib2.Http(".cache")
h.add_credentials('admin', 'admin')
base_url='http://localhost:8181/restconf/o... | [
"mann8352@gmail.com"
] | mann8352@gmail.com |
c366dc8950f6732516f2639a9e4367e64256fa62 | 665a7b06935defb8e7b36b7dd91c3901f997aa22 | /build/test_python.py | 750882ee8e40def5dfd4c3a40393a88b833f5c62 | [] | no_license | SemQ20/CppPython | 1512a80e432b8e06c5cb0f6971218df4cc3d79b6 | 463c626cf505c30c6fca318e70907839065d708e | refs/heads/master | 2023-03-09T10:26:54.036735 | 2021-02-09T18:33:18 | 2021-02-09T18:33:18 | 260,982,255 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | def sum_one(a,b,d):
c = a + b + d
return c
def sum(a,b,d):
c = sum_one(a, b, d)
return c
| [
"goodsk1llomg@gmail.com"
] | goodsk1llomg@gmail.com |
e5f1c102be91be7d06c912ccc3583ef91985a394 | 067078390e2250174f9cf9ce42da7c3770940ef8 | /src/modules/user_input_handle_block_action.py | 5f43bfb2d20d6936ad89dc3e34c8b57f4c3c52d9 | [
"MIT"
] | permissive | AndreasVikke-School/ComputerScience-Final | 0444e93fb500efe724f59af82b0ebb6f5f239e41 | 52d09a5876bfde661a00736712db6e3d19be877d | refs/heads/master | 2023-02-10T16:38:13.171988 | 2021-01-15T11:21:25 | 2021-01-15T11:21:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,670 | py | """
Processes user input block action from slack
:license: MIT
"""
import json
from typing import Dict, List
from src.modules.private_metedata import read_metadata
from src.modules.slack_template_parts import (
create_checkbox, create_checkboxes_with_initial_values,
create_select_for_drop_down, create_... | [
"andreasvikke@gmail.com"
] | andreasvikke@gmail.com |
2831a8999135f4fcca2518ad672cebed6c20e6a6 | 08bfc8a1f8e44adc624d1f1c6250a3d9635f99de | /SDKs/swig/Examples/python/import_template/runme.py | 21a876dcc50a33ed51ef5728620bd028545ae124 | [] | no_license | Personwithhat/CE_SDKs | cd998a2181fcbc9e3de8c58c7cc7b2156ca21d02 | 7afbd2f7767c9c5e95912a1af42b37c24d57f0d4 | refs/heads/master | 2020-04-09T22:14:56.917176 | 2019-07-04T00:19:11 | 2019-07-04T00:19:11 | 160,623,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:6e7ca728db56fe89feafc30fb2c2d46f69a2f7d25eb2e7eb8c294346908c389c
size 1744
| [
"personwithhats2@Gmail.com"
] | personwithhats2@Gmail.com |
6aa52154d3a60b6b0b2211e5fdf177377d5dfcc3 | f82757475ea13965581c2147ff57123b361c5d62 | /gi-stubs/repository/ICal/recurrencetype_frequency.py | f35061c4dcfda7a3be139e19b0a60512a84f5e30 | [] | no_license | ttys3/pygobject-stubs | 9b15d1b473db06f47e5ffba5ad0a31d6d1becb57 | d0e6e93399212aada4386d2ce80344eb9a31db48 | refs/heads/master | 2022-09-23T12:58:44.526554 | 2020-06-06T04:15:00 | 2020-06-06T04:15:00 | 269,693,287 | 8 | 2 | null | 2020-06-05T15:57:54 | 2020-06-05T15:57:54 | null | UTF-8 | Python | false | false | 13,990 | py | # encoding: utf-8
# module gi.repository.ICal
# from /usr/lib64/girepository-1.0/ICal-3.0.typelib
# by generator 1.147
"""
An object which wraps an introspection typelib.
This wrapping creates a python module like representation of the typelib
using gi repository as a foundation. Accessing attributes of the mo... | [
"ttys3@outlook.com"
] | ttys3@outlook.com |
fc4f948f429da2c1ee07543726234d782b8fdc93 | 3d55f067e6645cc7d073f57b16318253c34bed75 | /build_network_for_autoencoder.py | ca5a73da0e7bf3099b26eea3905f0b0f5a8ba09e | [] | no_license | ibrahimkaya754/modules2import | 73ebde4db0704bf035d5b369abe6bae676934909 | 746fd65b6b93d1e420168b3b6c17939456988e32 | refs/heads/master | 2023-01-01T21:02:24.695663 | 2020-02-24T10:43:52 | 2020-02-24T10:43:52 | 242,708,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,536 | py | from import_modules import *
from helper_functions import *
class prepare_inputs:
def __init__(self, data_splitted, list_tests, list_params,
feature_keys, target_keys,cnn=False):
###############################################################################################... | [
"noreply@github.com"
] | ibrahimkaya754.noreply@github.com |
16ccc3251632fa54c80b6e90631f62c807be6e4a | 8094d7c7270ebb59a7b63444e429de2fd8e0d4fc | /algo/bin/easy_install | fec17cc0315dded7dc28bf66ece53d35b9585910 | [
"MIT"
] | permissive | Ge0f3/Algo_comparision | 8a347b04db287da1f2a475b5b64d3e9671ee7c4d | d55087c3273030f8a8e7005a97c15424ea244f38 | refs/heads/master | 2021-08-06T08:11:58.851584 | 2018-11-28T02:19:32 | 2018-11-28T02:19:32 | 145,577,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | #!/Users/geoffreygeo/Documents/workspace/Projects/algorithm_comp/algo/bin/python3.7
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"geoffrey.geofe@gmail.com"
] | geoffrey.geofe@gmail.com | |
8466595a464939367e4ea3817124ca9719941ac2 | 682449f5dcc61c85eda4e673c6404b1af1ebec45 | /horses/spiders/horseids_spider.py | 20e28171c352ffa5ad17112e2f3dc5392d8581cd | [] | no_license | anailis/dressage-horses | 2e712eb9e6984dc7d2ebe6732774d0ec78d67238 | 64cf94a6e47c11a56ef79f761b961e6c5dcc0e36 | refs/heads/master | 2022-12-10T04:06:06.039667 | 2020-08-22T15:42:52 | 2020-08-22T15:42:52 | 264,661,423 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 587 | py | import scrapy
class HorseIDSpider(scrapy.Spider):
name = "horseids"
def start_requests(self):
urls = [
'http://webcache.googleusercontent.com/search?q=cache:https://data.fei.org/Ranking/Search.aspx?rankingCode=D_WR',
]
for url in urls:
yield scrapy.Request(url=... | [
"s1533194@ed.ac.uk"
] | s1533194@ed.ac.uk |
9b760a64c9099644c16228671bf11e44fb1e847c | adf7c2bb565e0fff5086f762fd3e1f078574d9db | /test/core/1-main/batch/batch_request_test.py | ecbc1c3e97f6ce8a7ed638059576dbc8fbe2723f | [
"Apache-2.0"
] | permissive | midnightlynx/py2neo | cf7af2a43bf7b4ace8662e683ac18dff42a6ab12 | 3b8a18ad5ac594d16a8fb3be75c7ca64a9aed5bf | refs/heads/release/2.0.9 | 2021-01-22T00:24:21.726398 | 2015-10-02T12:56:32 | 2015-10-02T12:56:32 | 44,700,090 | 0 | 0 | null | 2015-10-21T19:45:40 | 2015-10-21T19:45:40 | null | UTF-8 | Python | false | false | 1,631 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
# Copyright 2011-2014, 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@nigelsmall.com"
] | nigel@nigelsmall.com |
d94af8a81ede6c35e19c00d438187b27fe6e7346 | c195fcc28afdb912ba37de325ee0ab740e0964ca | /python/tests/test_euler005.py | 5462c8fa00fe23b5ce0d2a41dd6effc83cc865f8 | [] | no_license | gfcharles/euler | f979ec77692bf40a59e3ce97d94ce9a319c9e8a1 | 08dc8d6fed8806d0ac72b394ea582dd62e50e61b | refs/heads/master | 2023-07-04T01:01:03.335968 | 2023-06-19T16:39:31 | 2023-06-19T16:39:31 | 65,490,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | from euler005 import euler005
from tests.test_euler import TestEuler, TestEulerSetup
class TestEuler005(TestEulerSetup, TestEuler):
problem_number = 5
function = euler005
| [
"gregcharles@javaranch.com"
] | gregcharles@javaranch.com |
e1a48dad8fe4cf914dd8dbcd3a3ad21b261b2037 | 91cbf0598b824f3936981e40dcd94b17d9644a79 | /zclassifiershiftedae/ctrl_gen_model.py | 1f0125bc49b713d1126c10d7eb76630da19f8a26 | [
"Apache-2.0"
] | permissive | VAShibaev/text_style_transfer | c9bcaa17e199c7d24c0bd26ac7a9ec9c010cc675 | 42a4a653d7c47b5f04fe8c2b043f70a28b924e1f | refs/heads/master | 2021-07-21T08:21:54.010645 | 2020-08-14T11:57:04 | 2020-08-14T11:57:04 | 205,176,809 | 45 | 5 | null | null | null | null | UTF-8 | Python | false | false | 10,613 | py | # -*- coding: utf-8 -*-
# Copyright 2019 "Style Transfer for Texts: to Err is Human, but Error Margins Matter" Authors. All Rights Reserved.
#
# It's a modified code from
# Toward Controlled Generation of Text, ICML2017
# Zhiting Hu, Zichao Yang, Xiaodan Liang, Ruslan Salakhutdinov, Eric Xing
# https://github.com/asym... | [
"noreply@github.com"
] | VAShibaev.noreply@github.com |
1457deb196fdf8459944ff741a9f967060cc1345 | ef54d37f8a3303013ca7469871a320d303957ed7 | /robo4.2/fusion/FusionLibrary/__init__.py | afedb07962f29a037d08a6de6e4e364cf357fca4 | [] | no_license | richa92/Jenkin_Regression_Testing | d18badfcf16bda682dfe7bcbbd66f54a9a27a58d | 24a74926170cbdfafa47e972644e2fe5b627d8ff | refs/heads/master | 2020-07-12T10:01:59.099137 | 2019-08-27T12:14:53 | 2019-08-27T12:14:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,541 | py | """
FusionLibrary instance
"""
from dateutil.parser import parse as parse_date
from dateutil import tz
import datetime
from collections import namedtuple
from git import Repo
import socket
from time import sleep
import json
from Queue import Queue
from threading import Thread
import os
import uuid
from SSHLibrary impor... | [
"akul@SAC0MKUVCQ.asiapacific.hpqcorp.net"
] | akul@SAC0MKUVCQ.asiapacific.hpqcorp.net |
6545437c315e183c27122cfafa9f1822e292430d | 96884ea775ca5dc138e328710cdb7f7a0095530a | /django_lesson_5/mysite/article/migrations/0005_article_description_en.py | 5375de4d3ffecb9ede5ecdd14313ed736a5b2e7b | [] | no_license | rudneff13/python-course-alphabet | 2ec370274ba4bfa46ca36b739854e7f4b3b9bc76 | d8f50b46919655ec9ac4337551165e1a029b880b | refs/heads/master | 2020-05-09T14:58:22.419700 | 2019-07-20T13:20:42 | 2019-07-20T13:20:42 | 181,216,097 | 1 | 0 | null | 2019-06-20T10:43:20 | 2019-04-13T18:59:17 | Python | UTF-8 | Python | false | false | 456 | py | # Generated by Django 2.2.2 on 2019-07-02 17:03
import ckeditor_uploader.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('article', '0004_auto_20190628_1720'),
]
operations = [
migrations.AddField(
model_name='article',
... | [
"ali@echoua.com"
] | ali@echoua.com |
804d650c334596fa3f2252bb27787f4cce9f4663 | 0687bdd028d25829ac424a847a6389bdc9159975 | /client/delivery/migrations/0001_initial.py | 78027523fa7bf54cf8618c4cc23c1257a742f827 | [
"Apache-2.0"
] | permissive | daniel-waruo/e-commerse-api | a9fbea57348c3295d1092b906e201fe10c6d1b3e | 6b080039398fb4099a34335317d649dd67783f63 | refs/heads/master | 2020-08-04T07:09:41.840976 | 2020-06-19T16:41:13 | 2020-06-19T16:41:13 | 212,050,169 | 6 | 0 | Apache-2.0 | 2020-03-15T10:17:53 | 2019-10-01T08:45:04 | Python | UTF-8 | Python | false | false | 977 | py | # Generated by Django 3.0.3 on 2020-02-18 07:07
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import utils.phone_number_field
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.... | [
"warudaniel@gmail.com"
] | warudaniel@gmail.com |
63168dc4fe2a4edf82b769b7d765f861cbb60ccf | ab323e14ea148257439dd32ea96dc3c815b1660a | /house/__init__.py | d9e800339eb9bae0b03dee59ff6323462747fd31 | [] | no_license | SuperTapood/Discord-Bots | b12081180acde2ef1dcb70aaf9329d52e42be096 | 7353766b991ada442cead3ad36dd9f5f1f529ad0 | refs/heads/main | 2023-03-24T19:50:35.516065 | 2021-03-24T20:33:11 | 2021-03-24T20:33:11 | 329,584,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30 | py | from house.house import House
| [
"yoav.o252@gmail.com"
] | yoav.o252@gmail.com |
b61f84a91f0e0a85dcf189a6d9a80abcab47f3a5 | a586a86f2e04eea667ceb9ce85ae260bfb4e6cc0 | /main.py | 58d75dbbbb70383a5ca0b4319344cbcbf728b1a3 | [] | no_license | OlafMerkert/avpy | 87b3dcc3a67c84228d543a80bca662fc0008303f | 7db08483a2175b529df12101c1673747f341ec54 | refs/heads/master | 2021-01-19T08:29:04.600235 | 2011-08-26T16:38:30 | 2011-08-26T16:38:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = "Olaf Merkert"
import sys
from PyQt4 import QtGui
import ui.data_entry_forms as forms
import data.models
import data.daten as daten
from ui.data_display import AssistentenTabelle, TaetigkeitenTabelle, AssistentEntryUi, TaetigkeitEntryUi
if __name__ == '__ma... | [
"olaf@m-merkert.de"
] | olaf@m-merkert.de |
8cb048e720abbdf1ceb6f19fe5ccc17db88c7fe4 | 247d3f01f609062410004228297307c42fdf7e52 | /Stock_Prediction_SM.py | 2613dba4d925846f65336c2886ca7d987770fc22 | [] | no_license | SomnathMukherjee88/Apple-Stock-Price-Prediction | 24dffc8814f02cfeb412b8a136ca89130d12f663 | 0101b9ab585bfe1da027013cfc4d4e8a637ac02e | refs/heads/main | 2023-07-19T12:52:09.171646 | 2021-09-04T10:26:44 | 2021-09-04T10:26:44 | 403,026,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,172 | py | import pandas as pd
apple = pd.read_csv("AAPL.csv")
print(apple.head())
import matplotlib.pyplot as plt
import seaborn as sns
sns.set()
plt.figure(figsize=(10, 4))
plt.title("Apple's Stock Price")
plt.xlabel("Days")
plt.ylabel("Close Price USD ($)")
plt.plot(apple["Close Price"])
plt.show()
apple = apple[["... | [
"noreply@github.com"
] | SomnathMukherjee88.noreply@github.com |
b0fcb097793bbd9511da6ebe8abcf120b17237e0 | a5cfb7f657c59cae663a20630d6b8c755ab4f48a | /root_numpy/tmva/tests.py | f3a04f6f4a1044fc5a2fe0eca5e2f8d282bcc82b | [
"MIT"
] | permissive | w-c/root_numpy | ef916f8ed5ea963c53dc39aea8f10da0502f2c2f | 42302b41fa81d5a13cff12556468e08a5698a506 | refs/heads/master | 2021-01-12T14:43:58.161670 | 2016-03-18T01:23:01 | 2016-03-18T01:23:01 | 54,745,729 | 1 | 0 | null | 2016-03-25T20:27:52 | 2016-03-25T20:27:52 | null | UTF-8 | Python | false | false | 10,042 | py | import os
import tempfile
import shutil
from array import array
import atexit
import numpy as np
from numpy.testing import assert_array_equal
from numpy.random import RandomState
import ROOT
from ROOT import TFile, TCut, TMVA
import root_numpy as rnp
from nose.tools import assert_raises, assert_true, assert_equal
... | [
"noel.dawe@gmail.com"
] | noel.dawe@gmail.com |
ab497be63b96de1653e351973f94ca5afe61d49d | 6751b8da62c0e862599e7b56f3e4bbc646047e7e | /convertImg.py | aee175b0607d32db4c8170f6da759b872123a280 | [] | no_license | jinlongwang/pic2word | 2b00dc8d28b1ee6066c160f8862d8eeeac663099 | a92128edcf33f477218870556bb7010364da036d | refs/heads/master | 2020-04-06T06:16:05.276615 | 2015-06-18T03:48:09 | 2015-06-18T03:48:09 | 37,451,733 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,585 | py | # -*- coding=utf-8 -*-
from PIL import Image
def convertImg(src):
res = []
img = Image.open(src)
img = img.convert("L")
img.save("tem.jpg")
pixel = img.load()
#print list(img.getdata())
h = img.size[0]
w = img.size[1]
if h != w:
raise Exception("error")
print "hight: %s, ... | [
"jinlongwang89@gmail.com"
] | jinlongwang89@gmail.com |
4ec31459287dc5c81a8a93a1536b9bf25e9cd3d0 | 105360f2e39a0d53c95341f8edd3cb2d6de135f3 | /Assignment 4 plotting and Extension.py | 9d18142d649b6f24a32e0c277ac28540613b80ea | [] | no_license | haicizh/Assignment-4 | 0a56b1326b65b1ac99081c53a126aa9692417c2e | a0e4141c907168d74ab9c5a72ee887e05fe3ceac | refs/heads/master | 2020-05-09T18:03:50.244146 | 2019-04-14T15:10:02 | 2019-04-14T15:10:02 | 181,325,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,180 | py |
# coding: utf-8
# In[1]:
import os
import pandas as pd
import numpy as np
import random
get_ipython().run_line_magic('matplotlib', 'inline')
import matplotlib.pyplot as plt
plt.style.use('seaborn-whitegrid')
# In[2]:
os.chdir(r"D:\Shiny\Machine Learning\Assignment 4")
# In[3]:
sm_value = pd.read_csv("SM_va... | [
"noreply@github.com"
] | haicizh.noreply@github.com |
e9f46372c63c6378dc0057561505e5256b7b4bc4 | bd49c7977fb9fa6c1cd3bf040396eaec077b5b22 | /items.py | 91c95f18944ef7e3fb343b5fbb8027c280cd5a23 | [
"MIT"
] | permissive | Jasper2-0/scrape-fontaneljobs | d1be5d91f3fa71bb79b4017ba5e64210d3605790 | f174e42cc2b352302e7432a57a5bad42ea3ee8b0 | refs/heads/master | 2020-11-27T05:24:59.322340 | 2019-12-22T22:47:50 | 2019-12-22T22:47:50 | 229,321,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 793 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class ScrapeFontaneljobsItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
pass
class CompanyItem(scr... | [
"jasper@jasperschelling.com"
] | jasper@jasperschelling.com |
a18e8dceb99b923a3e54ae3ca00e5fcb3d665c0b | 7663f23c3edf3026bbf729adf5a75a6b954fb940 | /Project_2/test_gilded_rose.py | b24b7cefdf1f4148b22d66ab656c7da1ae9948a1 | [] | no_license | mehraj24158/gilded-rose | b330274932609ece1482bdb95ea6b6265c4bad89 | f4c7c7a8ae6bd232a0aad84a1b2133ad3a1f5f12 | refs/heads/master | 2023-01-05T09:00:34.823937 | 2020-11-03T02:44:43 | 2020-11-03T02:44:43 | 299,934,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,790 | py | import pytest
from Refactor.gilded_rose import *
"""
Global item list for testing.
"""
items = [
Item(name="+5 Dexterity Vest", sell_in=10, quality=20),
Aged(name="Aged Brie", sell_in=2, quality=0),
Item(name="Elixir of the Mongoose", sell_in=5, quality=7),
LegendaryItem(name="Sulfuras... | [
"mehraj24158@gmail.com"
] | mehraj24158@gmail.com |
1c68155f88d608d49cc19d91519520eeaafcb002 | d88ad64b1dfaba11f55e8da2934541b02f75bbde | /arduino.py | 1adae7dd26a84a3ad9a85a4535c5bddd898f0a21 | [] | no_license | Chusa007/Face_Recognition | cb4838bfb3dc0bc255722002a1a83ab4cf5b0b9f | bfd552f026ae895475688a8c820eed68caffaf25 | refs/heads/master | 2021-10-03T10:05:32.400469 | 2018-12-02T11:49:15 | 2018-12-02T11:49:15 | 159,300,861 | 1 | 1 | null | 2018-12-01T21:36:35 | 2018-11-27T08:24:53 | JavaScript | UTF-8 | Python | false | false | 167 | py | import serial
import time
ser = serial.Serial('/dev/ttyACM0')
ser.baudrate = 9600
# ser = serial.Serial('COM3', 9600)
time.sleep(2)
ser.write(str.encode("Unknown#"))
| [
"chusa007@mail.ru"
] | chusa007@mail.ru |
e3dbc85560e90e24e1d68b173e25f658e8bf6a7d | eaf67c8d08ac7fb3437e521c90abaeda290488b9 | /tensorflow_federated/python/core/impl/executors/cardinalities_utils.py | 023d459538f8cebaf8b83e97183cfce3c388a662 | [
"Apache-2.0"
] | permissive | mhalawad/federated | a89194a4b03205fa272b29931bb56e6d0603aaca | d683db15d87eb545e3df6530a698ba1c785ebe79 | refs/heads/master | 2022-12-22T00:18:43.005904 | 2020-08-26T20:34:43 | 2020-08-26T20:35:15 | 290,794,371 | 1 | 0 | Apache-2.0 | 2020-08-27T14:15:56 | 2020-08-27T14:15:55 | null | UTF-8 | Python | false | false | 3,380 | py | # Copyright 2019, The TensorFlow Federated Authors.
#
# 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 o... | [
"tensorflow.copybara@gmail.com"
] | tensorflow.copybara@gmail.com |
9f747d70aee6ad7ca96404b2a149820dd89c86a2 | d38328298ffa320bac87f0ec08df6c04d75cde41 | /testing_main.py | ec8de6cacbf6a6e6b5dc6c76e2ea4f8e7a758897 | [] | no_license | Wang3960/deep_learning_for_demosaicing | 0bc5a3886f52d74052318f51b369b614c4945f35 | 6ef83c2763ce06ae2df18c4ac7fb1c26881f352d | refs/heads/main | 2023-04-21T20:34:17.657950 | 2021-05-12T01:12:36 | 2021-05-12T01:12:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,413 | py | import os
import math
from tqdm import tqdm
from PIL import Image
import pickle
import torch
import torch.nn as nn
import numpy as np
import argparse
from testing_model import test_model
from model import Net_Superresolution,REDNet_model,SRCNN,model_with_upsampling,VDSR_Net
from model_utils import str2bool
device = to... | [
"lauhoiyangladys@gmail.com"
] | lauhoiyangladys@gmail.com |
4331304248d90d998e7b9838a4f4c35eae4055d5 | a46b064486b703b5424a5e59fb6d567a0c08d480 | /setup.py | 30e73a7ef6a7a63f779f7f363b895ca7e75aae22 | [
"MIT"
] | permissive | nick-youngblut/pushmsg | 1dd3ca23dbfa8277f92b7261c5eabeb6ea5bd3c6 | 389cd22476077198593bd4b4af3900fd1644da65 | refs/heads/master | 2022-07-23T14:52:46.886835 | 2020-05-23T19:21:22 | 2020-05-23T19:21:22 | 71,820,460 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 776 | py | from setuptools import setup, find_packages
import os
import pushmsg
VERSION = pushmsg.__version__
install_reqs = [
'ipython',
'configparser',
'pushbullet.py>=0.10.0'
]
desc = """An IPython magic extension for sending notifications with Pushbullet.
It is useful for setting notfications for the completion of long job... | [
"nicholas.youngblut@tuebingen.mpg.de"
] | nicholas.youngblut@tuebingen.mpg.de |
2d70297ee8e965de82220eaf045dfbba8bb59865 | 17cd34729422f7f22c8b71c715d57954bcd1577e | /events.py | 9472826c1178b99c34fbb733973f83f35f31db79 | [] | no_license | ehsan108190/shinytouch | 4de4a0e5cbd4f43b1b26f925bfc641d3cf0d62fa | 57f7e3e99c2b739192c58119cc5e9b2f8602312e | refs/heads/master | 2021-01-01T20:41:03.132467 | 2010-01-17T02:10:32 | 2010-01-17T02:10:32 | 37,240,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,458 | py | import tuio
import math
oxd, oyd = 0, 0
#import mouse
#mousectl = mouse.MouseControl()
#mousedown = False
#lastcoord = (0,0)
#lasttime = 0
def dist(x1, y1, x2, y2):
return math.sqrt((x2-x1)*(x2-x1) + (y2-y1)*(y2-y1))
def handle_touch(x, y):
global width, height
#THE MOUSE CONTROLS ON LINUX ONLY
#THIS ... | [
"antimatter15@56b13c6e-67d3-11de-a84c-2f1c77ec4fbd"
] | antimatter15@56b13c6e-67d3-11de-a84c-2f1c77ec4fbd |
aba58cfea3f786c3c26480ea8a19b55e513c103f | 0b27f0352a75035a8e9bdabb67d137195d3ec789 | /conv_network.py | 235b9d8064716033592d67f4571e95e5a43a6f47 | [] | no_license | mneis1/caption_net | b7ced16396abad724ddcc02d8d1dcd843b5ed36e | 6c4fb619d78cd80f5f0ea8914f2690965d48598f | refs/heads/master | 2020-05-24T13:31:04.087451 | 2019-05-22T03:59:00 | 2019-05-22T03:59:00 | 187,290,479 | 0 | 0 | null | 2019-05-22T03:56:48 | 2019-05-17T22:54:04 | Python | UTF-8 | Python | false | false | 2,775 | py | from keras.applications import vgg16, inception_v3
from keras.models import Model
from keras.preprocessing import image
from PIL import Image
import numpy as np
import os
import pickle
class conv_network:
def __init__(self, imgnet_model_name):
self.model_name = imgnet_model_name
self.imgnet_model,... | [
"marcneisser@Marcs-MacBook-Pro.local"
] | marcneisser@Marcs-MacBook-Pro.local |
4a0be4007c24f7b752c819eb6e9f9fa481354984 | d0d8ca85502ab9f336ca22ee7a6e9fcd0e522ea3 | /壁纸爬虫/pic.py | 197e20aed216ff06d5126b77023cc58ec6253ede | [] | no_license | 0xl2oot/notes | 7d752a643cde157bce21a50f1a7eb6c35066d809 | 2e0b2ef6a95085cbf0297a837948de0c753c3365 | refs/heads/master | 2021-05-09T11:35:30.717905 | 2019-03-20T10:18:57 | 2019-03-20T10:18:57 | 118,992,872 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,216 | py | import urllib.request as u
import os,re
from bs4 import BeautifulSoup
def str_del(string):
#处理字符串
ban = ['\\','/',':','*','','"','<','>','|']
for i in string:
if i in ban:
string = string.replace(i,'')
return string
def save_pic(pic_urls,title):
title = str_del(title)
#保存图... | [
"yonghongwang@163.com"
] | yonghongwang@163.com |
30eaa5f3c004cf9d6014266444ad0822593e74ca | 3d6dcf456d17aaae71e650f90c7d70e52699403f | /mnist/plot.py | 77fa5b960cd3afbbd069c96a0cd11e038207df8f | [] | no_license | CNLHC/ai_accelerator_2020 | bbcf82593e3f9ed470f620b0037e06d33af2f57a | 298c97ce83bf4830e3e8c07f62bc5fdc42661420 | refs/heads/master | 2023-01-05T05:03:53.294053 | 2020-11-02T09:28:37 | 2020-11-02T09:28:37 | 301,689,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | import matplotlib.pyplot as plt
import matplotlib
def main():
def toFloat(x):
try:
return float(x)
except:
return None
li = [toFloat(x) for x in open("./assets/loss",'r').readlines()]
li = [x for x in li if x is not None]
plt.figure(figsize=(35,20))
matplotl... | [
"cn_lhc@qq.com"
] | cn_lhc@qq.com |
e45daa193b93ee9c1ee5767173a49870d4d8145a | b20fde97e70b20c8301d844ad0b07facb70af9b3 | /hello-flask/main.py | 0c56546b1e0802e1d5aa5ca3e8e96a03a39dab80 | [] | no_license | krgirard33/lc101_2018 | a42ea56cba9119d097c7e8884d90b07db235adfc | 2603fd0e13e4e537a847a389ef2287764b6d582f | refs/heads/master | 2021-05-01T08:48:44.962435 | 2018-04-24T00:38:50 | 2018-04-24T00:38:50 | 121,175,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 591 | py | from flask import Flask, request, redirect, render_template
import cgi
import os
import jinja2
import tasklist.py
template_dir = os.path.join(os.path.dirname(__file__),
'templates')
jinja_env = jinja2.Environment(
loader = jinja2.FileSystemLoader(template_dir), autoescape=True
)
app = Flask(__name__)
app.con... | [
"ken.girard@gmail.com"
] | ken.girard@gmail.com |
5006858f56019a73a6dd2128541e817171e202e9 | 0d7308b8fe87b61a8294688f61fd3100c3be5bd4 | /src/star_sampler1.py | 5b95b7744697cb6c280b646b8798dc68e0232421 | [] | no_license | mlm2299/StoneMallernee | 2ff07091dbdfcd1d0c475ed2e48669aad2eb5252 | 80d738f8ad7824db04fb08365afac033a84bad49 | refs/heads/master | 2021-05-08T00:39:02.532420 | 2017-10-20T15:43:40 | 2017-10-20T15:43:40 | 107,691,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,689 | py | '''
Created on June 16, 2015
@author: Maggie Mallernee
To sample stellar orbits assuming isotropy and spherical distribution, with angles in DEGREES
'''
#from scipy import constants as c
import random
from math import cos, asin, degrees
import anomaly_convert as ac
#Function that calculates the radius of influence ... | [
"mlm2299@columbia.edu"
] | mlm2299@columbia.edu |
929a7e390ef29badc40568612ddcfd1a26849d40 | f7c482bd2a5af72d56f7506219fd3ae81ea0eb69 | /venv/Scripts/rst2man.py | 7d48736a4a76bbf70945812b4d7034e56a46d001 | [] | no_license | Shakikhanli/Repo-Finder | d80ab19f8a5c5e4b421b1eaf376ffa9fce195fc8 | f922ab491d77dd7eacb574bdfd2f4117d1c62aa0 | refs/heads/master | 2022-11-12T14:22:33.165194 | 2020-07-07T10:10:42 | 2020-07-07T10:10:42 | 277,782,498 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | #!C:\MPF\Programming\Python Projects\Github Repo Finder\venv\Scripts\python.exe
# Author:
# Contact: grubert@users.sf.net
# Copyright: This module has been placed in the public domain.
"""
man.py
======
This module provides a simple command line interface that uses the
man page writer to output from ReStructuredTex... | [
"shekikhanli@gmail.com"
] | shekikhanli@gmail.com |
94f6e0c71843c2dce709f89a98354f01226fc707 | 07e69d44a874884678297a668632c040b7df8eef | /dataAnalysis.py | ba5677b5601721850dc94f13953a5cefd82d9ffa | [] | no_license | maigahurairah15/Hurairah-GWC-2018 | 178e10e719ec8803fe4bd46a12450265c02aaa70 | b55f32fd887c5ab149aab129a2ff3589ee04dbc5 | refs/heads/master | 2020-03-26T16:48:50.181435 | 2018-08-17T13:50:08 | 2018-08-17T13:50:08 | 145,124,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | import school_scores
list_of_records = school_scores.get_all()
print(list_of_records[0])
for i in list_of_records:
print(i["State"]["Name"],i["Gender"]["Female"],i["Score Ranges"]["Between 600 to 700"]["Math"])
| [
"noreply@github.com"
] | maigahurairah15.noreply@github.com |
ccd19b0b85e78710f0ee8289121587e93d8b0e6f | ee96b1349c9a8926836e8a00ecd99af9ae3fd9d3 | /fetch_scrapy/fetch/pipelines/__init__.py | 75d7ec22cde0a75d82b15426f61ed511b6fe07be | [] | no_license | aiportal/zb123 | f201e701e6dff4e4e957410f9df0cadb8feb9d51 | 7316880e2444a8af02e2f44af38dd7ae708ccbb6 | refs/heads/master | 2023-08-06T13:23:47.421260 | 2018-08-14T03:03:49 | 2018-08-14T03:03:49 | 170,792,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | from .mysql import MysqlPipeline
from .sqlite import SQLitePipeline
from .zip import ZipPackagePipeline
from .csv import CsvFilePipeline
| [
"bfbd@163.com"
] | bfbd@163.com |
0f4121425d642124405d6605b83f29e697901a2e | 84de064b2994516f14950cd31e815a410bce1433 | /week5/FileDownload1.py | 042f9d092bd6be38f952a7e61a93e80a5fe366c3 | [] | no_license | stefancoe/uw_python | 442697d6d815a6b3a3f8ec87c8bbff54b480a243 | 1bd7cd1a15fd994c7690f04e7b55984df68bd173 | refs/heads/master | 2020-05-29T13:42:15.806345 | 2012-02-29T03:02:55 | 2012-02-29T03:02:55 | 3,099,659 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 776 | py | import urllib2
from BeautifulSoup import BeautifulSoup
from urlparse import *
from urllib import urlretrieve
import os
import sys
site = 'http://jon-jacky.github.com/uw_python/winter_2012/index.html'
page = urllib2.urlopen(site).read()
soup = BeautifulSoup(page)
anchors = soup.findAll('a')
o = urlparse(site)
print ... | [
"coestefan@gmail.com"
] | coestefan@gmail.com |
acfb84dcfe41a00d92a140f5dee85df17a52d2a9 | afa377c993ac69c03d8cfd9c587409a5616ce9b9 | /recursividad.py | e0c9e2d7918751e016c174c6f5a97371ee872b9c | [] | no_license | ealexisaraujo/basicoPython | 45b01237ad184535d51ce745dc11dc3284e930f7 | 8419595e2884569224207deabd24006d4fa922f6 | refs/heads/master | 2023-05-29T01:53:43.954711 | 2020-03-15T14:46:23 | 2020-03-15T14:46:23 | 245,044,203 | 0 | 0 | null | 2023-05-22T21:38:57 | 2020-03-05T01:47:04 | Python | UTF-8 | Python | false | false | 362 | py | # -*- coding: utf-8 -*-
def sumrec(number):
if number == 1:
return 1
return number + sumrec(number-1)
def run():
number = int(input('Ingresa el número a sumar: '))
res = sumrec(number)
print('El resultado de la suma recursiva, tomando como base el {} es :{}'.format(
number, res)... | [
"ala1289@gmail.com"
] | ala1289@gmail.com |
aff53125e814dfb37ed5e60ec9904b09180fa0fe | 86beb084541d582c7547ca8fabafd326a150a8a9 | /ReviewPython/linting/better_hello.py | 5b490b9eef19a012b485c709e8a7fbd044ec6126 | [] | no_license | Computational-Physics-Research/CompPhys | ea8e806a0f79560c21aad7969337b0a1e97f2fbd | 7ae65dc1ba754c8b6addd8fbde3f7beff4f00523 | refs/heads/main | 2023-04-19T00:14:41.369953 | 2021-04-02T17:35:10 | 2021-04-05T19:16:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py |
"""
This is the hello world module
"""
def hello():
""" My Hello World program """
print("Hello World")
| [
"thomay@buffalo.edu"
] | thomay@buffalo.edu |
d1155513c9c21f51d0829ee7664d1e093062b6cf | e40933249f51eaf43b85ea183bb4ee12d4c32828 | /pipeline/binaries/evaluation.py | b21b4b9e6d8dc710e5aff1bf223860375cb0b2ed | [] | no_license | stage-comprection/pipeline | 3b34447b4f043fcdee9f078197014848ad89a8db | 1dcf55bffdc3bb8a0aeee0117eba66cb847c9e76 | refs/heads/master | 2021-01-10T03:25:58.911767 | 2016-03-23T16:33:07 | 2016-03-23T16:33:07 | 51,996,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,499 | py | """
Functions to evaluate the results of correction using the evaluation pipeline.
Parameters are given using a .ini file instead of command-line arguments.
"""
from ..settings import *
import os
def generate_settings_file(settings):
"""
Generates an .ini file used by the evaluation pipeline to initialize
... | [
"romain.feron@evobio.eu"
] | romain.feron@evobio.eu |
97a01674c332bb5bad4dc14ea5e57e111626b8d6 | d7704c107f9cb0cdb92a4c864863ff087fcfda35 | /etl.py | b4bda19b21d5a6ddc698677133fee1276b02070c | [] | no_license | maullaina/Data_Modeling_with_Postgres | 0c8d21d1f5e7fae7b51e73ebf3ebef6ddbc85f3f | 4111743da6f66456890126f5adc77c67a38ea3bb | refs/heads/main | 2023-08-19T12:21:43.530703 | 2021-10-20T10:41:22 | 2021-10-20T10:41:22 | 419,286,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,133 | py | import os
import glob
import psycopg2
import pandas as pd
from sql_queries import *
from datetime import datetime
def process_song_file(cur, filepath):
""" Get information about songs and artists from raw data and introduce it
in the SQL tables.
Arguments:
cur {object}: element that w... | [
"noreply@github.com"
] | maullaina.noreply@github.com |
71443d75a70b60067dca5151d9f4b254511d4d0a | 1cba599fd19adf5c83dcaa68394f47f78dd15039 | /store/migrations/0002_rename_price_product_unit_price.py | 212285c394a257f2157a6935639367c08124a7b6 | [] | no_license | I-am-vishalmaurya/Django_Store_Backend | f0b957d79fbad90d1d258b65934797f32911e7df | db910d606cdd751c467a4c0ddc6a5f02c1aa1ec6 | refs/heads/master | 2023-08-11T16:09:59.677089 | 2021-10-15T03:10:00 | 2021-10-15T03:10:00 | 393,366,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | # Generated by Django 3.2.5 on 2021-08-01 10:44
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('store', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='product',
old_name='price',
new_na... | [
"vishalmaurya3112@gmail.com"
] | vishalmaurya3112@gmail.com |
515d67d4076f5ef6779953138fa64a6a4359a46f | 3b6e75ae5390abf9a47c22867fc967683e257301 | /opnet_aa/baselines/tracking_utils.py | b55119fea4c22594c47cd133e1acfed477768fbe | [] | no_license | GakkiChen/OPNet-AA | fd24c591128559856c0c66104401fafee1708168 | ca764439f24d7e1249a5ff6609b1e3dcb2343e88 | refs/heads/main | 2023-07-05T21:28:39.624750 | 2021-08-11T03:18:32 | 2021-08-11T03:18:32 | 390,297,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,953 | py | import json
from pathlib import Path
from typing import List, Dict, Tuple
import pandas as pd
import numpy as np
import cv2
class VideoHandling(object):
def __init__(self, vid_path: str, output_path: str = None):
self.vid_path = vid_path
self.output_path = output_path
self.cap: cv2.VideoC... | [
"noreply@github.com"
] | GakkiChen.noreply@github.com |
7622759d9e9e7476c8de41b06c5d38bac544425b | 782a3a5dfd619edf015e3000f9bcd6607dd9a027 | /MISC/mainDNN.py | 636f6ef4c420a586628bc13819a24f63f7096198 | [] | no_license | yujianyuanhaha/BerPredict | b0ee5d0ad9b3f7e90f49bab0954d0ba903db89a4 | 57f3d15e04399ac114fd0188c35670de791e30fe | refs/heads/master | 2022-04-21T20:34:09.211610 | 2020-04-20T14:12:31 | 2020-04-20T14:12:31 | 214,231,021 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,849 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Jul 12 11:09:17 2019
@author: Jet
1. TODO, lack of early stop, likely overfit
"""
import time
import os
import math
os.environ["KMP_DUPLICATE_LIB_OK"] = "1" # sometime make "1" for Mac
import keras
from keras.models import Sequential
from keras... | [
"cherry.figh0918@gmail.com"
] | cherry.figh0918@gmail.com |
bcd167bec77fb09db4e886c1b90754f3a3fb8aaf | c150eb515e39f81b7e324bb27b1a506ecd2e35a0 | /project-base/album/migrations/0004_auto_20180401_1945.py | d885ade1352a1494f55c5cfa04449bc4da93e9d2 | [] | no_license | anwar03/PhotoShare | 194a7ecc7663e14ab64355f9a203ae946f6239a5 | 6851945948be08176ca863f9a722f4168fc917a2 | refs/heads/master | 2020-03-07T09:41:37.218387 | 2018-04-05T13:38:30 | 2018-04-05T13:38:30 | 127,413,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,995 | py | # Generated by Django 2.0.3 on 2018-04-01 19:45
import album.models
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"anwarazim03@gmail.com"
] | anwarazim03@gmail.com |
1f5383f1a0601d5509be673f0da83b08ffd1c253 | 8a025f191ccfee9ffa05af4b0fa03110ab09d777 | /tests.py | 0f8fa65a9c15bc266631310491598ab31f919992 | [
"MIT"
] | permissive | quentinguidee/todo-cli | 3c68451794d8d24e228ee2f8a8b5d97b2190650d | 7e91579a9046ef6ce7720835550410ef068bbfbb | refs/heads/main | 2023-06-01T23:57:53.959091 | 2021-06-20T13:01:47 | 2021-06-20T13:04:35 | 376,773,183 | 5 | 2 | MIT | 2021-06-19T08:51:10 | 2021-06-14T09:42:57 | Python | UTF-8 | Python | false | false | 949 | py | import sys
import unittest
from tests.e2e.test_e2e import TestE2E
from tests.unit_tests.test_storage import TestStorage
from tests.unit_tests.test_task import TestTask
from tests.unit_tests.test_task import TestTaskStatus
from tests.unit_tests.test_event import TestEvent
from tests.unit_tests.test_time import TestTim... | [
"quentin.guidee@gmail.com"
] | quentin.guidee@gmail.com |
10d13a7fa211f2e897ffa0cba4545edf6a108753 | 97ae9eb19037ad15943baa5298a12a5dabcd86b5 | /gridworld.py | 12e26c19db0a00d1a6153ffb1e2b35108d923ed7 | [] | no_license | shunzh/Keepaway | 2f6bf608a67e9163b6b8544761fdbfd63f120090 | 056ba40c7ad5e0c99f705b02e06cd4423f2f15d0 | refs/heads/master | 2021-01-21T13:17:52.518043 | 2016-04-18T23:42:32 | 2016-04-18T23:42:32 | 54,331,895 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,924 | py | # gridworld.py
# ------------
# Licensing Information: Please do not distribute or publish solutions to this
# project. You are free to use and extend these projects for educational
# purposes. The Pacman AI projects were developed at UC Berkeley, primarily by
# John DeNero (denero@cs.berkeley.edu) and Dan Klein (klein... | [
"menie482@gmail.com"
] | menie482@gmail.com |
4de8d566f66a8afe643d08ee77b4a4f754c26a21 | a6fe3f180d4c7d418579e4b8186a80ba569d999d | /django/blog/blogproject/views.py | ef19f4980221b15f591a86fb7dfead53e3e217e9 | [] | no_license | 15871687941/PyCode | 0f773038ee713b6a16ab9ab7ae7b6823b9b85b3e | 61f8c0a7aa41574e31765155142d8c16e5759582 | refs/heads/master | 2020-04-02T09:24:58.258959 | 2018-10-23T08:12:31 | 2018-10-23T08:12:31 | 154,288,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | from django.shortcuts import render
# Create your views here.
from django.http import HttpResponse
from .models import Post
def index(request):
post_list = Post.objects.all()
return render(request, 'blog/index.html', context={'title': '博客', 'post_list': post_list})
| [
"1806521378@qq.com"
] | 1806521378@qq.com |
093225e40403e92a439ffb6fbb4fd88116bf79bf | ddfc0775cbd90f8fff2ee11c7e6b17e72f26b273 | /crawler/zip_5o_miles.py | e4a4aef966869a9c64286e477746cce3e4e3645b | [] | no_license | akshaytanmane150294/Dealer_scraper | b73389a8e34a6564b176eced9056bdae8494b44d | 82bbf2f2e2a82c934e14616aa2462ee8a5cfc40d | refs/heads/master | 2020-07-16T13:38:15.977340 | 2019-09-02T07:39:52 | 2019-09-02T07:39:52 | 205,798,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,926 | py | from _dbus_bindings import String
def _zip():
arr = ["17087","95666","53936","83330","17006","42157","57562","28349","85743","38471","81212","82058","84721","62469","97635","87943","58561","95421","24211","47930","64761","56025","49635","28376","69128","84766","30454","59230","32350","12969","31312","12455","65263",... | [
"noreply@github.com"
] | akshaytanmane150294.noreply@github.com |
35fa9008f4968f017ed8097fed6ae73e343e2a9b | bdbb6000355a717ce55cabd45525700643ab5b5f | /Version 2a 050321/mycopi_default_programme.py | 329bbc638e1aaf77898a5d63f82b2b7cf190a139 | [] | no_license | Trober-Llemchit/MyCoPi | abf8c4817f00541d029e9d695728b5176cd7549a | 71913d64e9b136417c525243bfba2732bf63fa79 | refs/heads/main | 2023-03-15T15:46:18.515042 | 2021-03-05T12:54:24 | 2021-03-05T12:54:24 | 344,796,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,649 | py | #mycopi_default_programme.py
import mycopi_convert
def address_plus_1(address):
dec_address=int(address,16)
dec_address+=1
hex_address=hex(dec_address)
address=hex_address[2:].upper()
return address
def details():
print("1110: ex.13: count")
print("1101: ex.3: AD/PWM")
print("1011: ex.4: random")
print("011... | [
"noreply@github.com"
] | Trober-Llemchit.noreply@github.com |
6acd05799d3e1f656cf1508204ec1ca8480faba4 | a33d41d895912c7c15f3430f2fee9ff638234e84 | /ReportCreatorGui/XmlAnalysis.py | d4427787fcd86aed36ab53028f55750169cf503a | [] | no_license | qbvn/PyCharm-Projects | 9047f6ba0582c801fc41eba23108189a723d9c84 | da1e00fa478f641732e86bf71342abbbeba975c7 | refs/heads/master | 2021-07-23T20:23:16.522792 | 2021-05-06T11:14:05 | 2021-05-06T11:14:05 | 64,391,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,663 | py | # -*- coding: utf-8 -*-
import os.path
import sys
# import wx
from datetime import datetime
from docx import Document, opc
from docx.shared import Pt, RGBColor
from NiXml import StimulusProfile, Testrun, ErrorElements
import XmlParser
class ReportGenerate:
def __init__(self, xml_file, ms_word_file):
"""
... | [
"quocbinhtrinh@gmail.com"
] | quocbinhtrinh@gmail.com |
8cc9ca36a5d4db817f08b76168f2d46d98b3a192 | 220058941fd9810a580b66198c0f921ec95c1650 | /walmart/pipelines.py | c57e3846edf0ce00e167808ada5f5b0ea5b70f13 | [] | no_license | githubmaster1987/walmart_scrapy | d6b3ce9afacc785258bd66f64f8aafcc7e729c26 | 5801aedf0374f0de247f6c8f0cdba92cb103826b | refs/heads/master | 2020-05-20T19:32:24.142306 | 2017-03-10T03:15:13 | 2017-03-10T03:15:13 | 84,512,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,918 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
import spiders.config_scrapy as config
import MySQLdb as mdb
import numbers
import random
import json
from datetime import date... | [
"silverstart1987913@yahoo.com"
] | silverstart1987913@yahoo.com |
252bc4abf7927c6d07ff920723e8ad236a229b65 | ee49b6c2dbe0f163737d79ffd88264541d304951 | /eventwarning/views.py | a1238402443440cd0d6136ae5c60672e75ac2fff | [] | no_license | duplico/event-traffic-warning | 4b2b19a76a399f6fd85e8ea2fbfbfdaba3c320c9 | b2533170d72fccc2abbc010163503d188f84a4e6 | refs/heads/master | 2023-05-12T09:40:40.682219 | 2014-01-30T04:59:29 | 2014-01-30T04:59:29 | 277,707,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,978 | py | from datetime import datetime
from flask import request, make_response, render_template, url_for, flash
from flask import redirect
import flask
import danger_backend as danger
#danger.VERBOSE = False
from eventwarning import app
from eventwarning import models
from eventwarning import executor, running_fu... | [
"duplico@dupli.co"
] | duplico@dupli.co |
8d729913131bff94532ce64ca9ca5e50f25f2cc7 | dbf7d177d2fa11314b81806ed1e0187133b8da9d | /play_50.py | 76c186df7f8764e60091c1750c0e6353097b427b | [] | no_license | sushmithanat/player_guvi | 79ed4aab807715f4bf8d975225242d0a72dbfd8d | 56e8a09d695b63b6b318b515ecfb9138164371ca | refs/heads/master | 2020-03-28T09:36:47.491591 | 2018-06-12T05:56:24 | 2018-06-12T05:56:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | def play_50():
n=int(input('Enter n:'))
for i in range(2,n//2):
if n%i==0:
return "yes"
return "no"
play_50()
| [
"noreply@github.com"
] | sushmithanat.noreply@github.com |
eebc60e0ac20e673cf5883a22b54ac1bd9e9efb0 | 4c1ca80e3897e0af4ff3f16771e6e54eb52dfe9f | /restaurants/api/serializers.py | a410e69b5f71211260f9607b0e96cc13524638f1 | [] | no_license | vpatel85/gas-up | 7a7185a29aaf013cfa8fc7099d2edc2731428b58 | 973d41da4e8f2dff81f0d3705fa0331d6b1d0419 | refs/heads/master | 2021-01-13T02:11:27.725433 | 2014-11-10T22:24:33 | 2014-11-10T22:24:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,314 | py | from rest_framework import serializers
from django.contrib.auth.models import User
from restaurants.models import UserProfile, Restaurant, Comment, SubComment
class SubCommentSerializer(serializers.ModelSerializer):
class Meta:
model = SubComment
fields = ('parent', 'comment')
class CommentSeriali... | [
"vpatel@visual-a.com"
] | vpatel@visual-a.com |
a41d7cf025c623d35ced20217816991bbf758202 | 1566af780ae7342760609d194bc50512777c9a44 | /pyNastran/op2/op2_interface/op2_scalar.py | 771c8fafb29cac8410e40224e97fe3f460b0bf70 | [] | no_license | JamesdeanP/pyNastran | 61bb43127601a2f1ba09166bfca1783e989afbe3 | c7a9a72c6b4d1778ef2f72c5f6f67e5df4b0233e | refs/heads/master | 2020-09-24T04:50:33.559676 | 2019-11-29T22:27:23 | 2019-11-29T22:27:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79,315 | py | #pylint: disable=R0913
"""
Defines the sub-OP2 class. This should never be called outisde of the OP2 class.
- OP2_Scalar(debug=False, log=None, debug_file=None)
**Methods**
- set_subcases(subcases=None)
- set_transient_times(times)
- read_op2(op2_filename=None, combine=False)
- set_additional_general... | [
"mesheb82@gmail.com"
] | mesheb82@gmail.com |
231c5670a7b9101a97de1e024359e17b16341b00 | 26f6313772161851b3b28b32a4f8d255499b3974 | /Python/480_SlidingWindowMedian.py | 2cd4bf46c6091ce083662f732c6a2cd957c5e801 | [] | 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 | 5,531 | py |
"""
Median is the middle value in an ordered integer list. If the size of the list is even, there is no middle value. So the median is the mean of the two middle value.
Examples:
[2,3,4] , the median is 3
[2,3], the median is (2 + 3) / 2 = 2.5
Given an array nums, there is a sliding window of size k which is moving... | [
"here0009@163.com"
] | here0009@163.com |
1d80cf91b20248fcd2018eb5e08868d720f55b3e | 336dfb6b67520a04e71e2ef58fff1ab5794c63d9 | /Tweet_streaming_crawler_20170519J.py | 7d268714aa83a22fc5ce62902bf33ecdca4b3d77 | [] | no_license | pil0706/Tweet_Crawler_with_Jin | 9e61230625f7c6e9d9af606d9d2b04c59403c987 | 8543bbb1fa6b258e2dcbd2545d9c6108ecaf8fe3 | refs/heads/master | 2021-01-21T19:02:05.586954 | 2017-05-23T05:52:56 | 2017-05-23T05:52:56 | 92,110,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,613 | py | #-*- coding: utf-8 -*-
from tweepy import StreamListener
from tweepy import Stream
import json
import tweepy
import sys
import jsonpickle
import datetime
#
consumer_key = 'TcSyTjO8ycNRXWUIxxP0rbBFG'
consumer_secret = 'm6uNwnPkMwJkMqWwB4DPqRNlpmfdnEHyJcgiQUsI0tYjpiHaBi'
access_token = '142620900-cOv68WHjBU6WPxPRTGVcxbI... | [
"pil0706@gmail.com"
] | pil0706@gmail.com |
ca84b99a622c454d4e778aa201ee5b822cb49cff | c63aeed37436715b06a0e0c98c05dbf426a51817 | /CODEUP/recursion/ex1901.py | 3a7554c83944e12a932fd64405cff8371290b47b | [
"MIT"
] | permissive | FridayAlgorithm/taesong_study | 8fca9fa6a14b7dfadf984ce2efcb00038ae6ad07 | 50c07ee6ead0fb5bb80e0decb03b801cbbbabf9c | refs/heads/main | 2023-05-14T21:06:17.595287 | 2021-06-06T15:00:34 | 2021-06-06T15:00:34 | 323,922,637 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | n = int(input()) # 정수 n을 입력 받음
def integer_print(a): # 재귀 함수
if a == 0: # 종료 조건
return
else:
print(n-a+1) # 순서대로 출력
integer_print(a-1) # 자기 자신 호출
integer_print(n) # 함수 호출
| [
"taesongweb@gmail.com"
] | taesongweb@gmail.com |
24d3e0b3de437c4336060cee7f12b0c827c09418 | 6533df70738b94e44e98c36f1fb1b087598054c1 | /roosterize/ml/onmt/MultiSourceInputFeedRNNDecoder.py | a2eb3f1ccddb665eb05840eda5238f8b581f55d0 | [
"MIT"
] | permissive | Desperatesonic/roosterize | 579989a838a591289f7ed6f67d017f538260d4b9 | 2990f7bdef8889045a26f3e9aaaca96d9c92e0bc | refs/heads/master | 2023-01-22T03:24:31.595188 | 2020-11-23T16:18:33 | 2020-11-23T16:18:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,379 | py | from typing import *
from roosterize.ml.onmt.MultiSourceGlobalAttention import MultiSourceGlobalAttention
from onmt.decoders.decoder import DecoderBase
from onmt.models.stacked_rnn import StackedLSTM, StackedGRU
from onmt.modules import context_gate_factory, GlobalAttention
from onmt.utils.misc import aeq
import torch... | [
"prodigy.sov@gmail.com"
] | prodigy.sov@gmail.com |
034340941526fdd10366317b3ece8cc1ffa4281b | 7ec9ed419217eb3b313659c44dbda90eb2ddcb87 | /util/visual.py | 0913a2e8238055856b53c2a78c7a8ca83d90a172 | [] | no_license | adityapurohit1996/6DOF_arm | 823db8bd7c3236aeb980149f348104180f387169 | 9193f9efeb92d9b2bf2004820ae9d653c59f5521 | refs/heads/master | 2021-01-14T04:03:32.207942 | 2019-10-07T02:14:41 | 2019-10-07T02:14:41 | 242,593,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,605 | py | import time
import numpy as np
import tp_test
import matplotlib.pyplot as plt
tp = tp_test.TrajectoryPlanner()
waypoints = np.array([[ 0.0, 0.0, 0.0, 0.0, 0.0],
[ 1.0, 0.8, 1.0, 0.5, 1.0],
[-1.0,-0.8,-1.0,-0.5, -1.0],
[-1.0, 0.8, 1.0, 0.5, 1.0],
... | [
"shihchil@umich.edu"
] | shihchil@umich.edu |
431801fd48391f0e3cf3900712086036292262cd | 07b043cd032ac348b44220823cb2ac3cf0d7f5a7 | /DJANGO_ADMIN_CSV/urls.py | 393dd8d1a3d5111b58d9b14db437da9febc2e326 | [] | no_license | muhtomakin/DJANGO_ADMIN_CSV | 73439a5822805fb15d5fc6b863f5b0f388bd80e8 | 5ad210afeb7e636a7c6add67e42aeeee3b587424 | refs/heads/main | 2023-08-23T02:32:48.482946 | 2021-11-05T19:28:16 | 2021-11-05T19:28:16 | 425,062,226 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 758 | py | """DJANGO_ADMIN_CSV URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Cl... | [
"muhtomakin@gmail.com"
] | muhtomakin@gmail.com |
68c981f552ca351da797b3fb8d65913ca2acff6c | ac0d651b78ded1de9f0bf5c8aa8350627deea063 | /tests/box_sim.py | 87ea6b3dd669d265e072d2b8c1e631962dc9c526 | [] | no_license | cbott/PiWeatherBox | 5d67e677028e314c0c720c3b5c904646fd680e5c | 04b0056dd4711f3be73aeebe63fa09c99cc5156c | refs/heads/master | 2023-04-07T06:02:16.747034 | 2023-03-25T21:02:30 | 2023-03-25T21:02:30 | 92,607,849 | 0 | 0 | null | 2021-03-07T01:43:33 | 2017-05-27T15:39:48 | Python | UTF-8 | Python | false | false | 2,938 | py | import tkinter as tk
import tkinter.font
from collections import namedtuple
from typing import Callable
# Duplicated from hardware.LED to avoid needing to import
Color = namedtuple('Color', ['Red', 'Green', 'Blue'])
def duty_cycle_to_intensity(duty_cycle: float) -> int:
"""
Converts a 0-100 duty cycle to a 0... | [
"cbott6@gmail.com"
] | cbott6@gmail.com |
a4d60ee0f64911922d9ab22391fb998f01caa2d6 | 34998c0baf6922a5dfd11ad239077ab6c06fb0b0 | /FetchMaker.py | 67bfb11e1a2636e7208d4fa130db1404c212b5b2 | [] | no_license | amanm063/codecademy-practice | ac449b31235c872caba38945044fa4e80b27cdce | 6260b6447e3997c662b976b16936607c50cc997b | refs/heads/main | 2023-03-22T05:37:31.169092 | 2021-03-12T05:21:19 | 2021-03-12T05:21:19 | 330,562,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,565 | py | """Congratulations! You’ve just started working at the hottest new tech startup, FetchMaker. FetchMaker’s mission is to match up prospective dog owners with their perfect pet. FetchMaker has been collecting data on their adoptable dogs, and it’s your job to analyze some of that data."""
# Import libraries
import numpy ... | [
"65498402+amanm063@users.noreply.github.com"
] | 65498402+amanm063@users.noreply.github.com |
db0413d8e67dc999e25725427036dbe9057a3f23 | 93e2b70ed42261423e8cabd482b10e0087f00832 | /ClassicalField/Laplace/LaplacePy/LaplaceExample.py | 4218854d0ecc9d8b19a2d4a68c5137af499cae4e | [] | no_license | JessicaJor/examples | b4cb68250cdb6b976a7aedbfb19f70791e3b57b2 | 146b3cab0c88760e9687b99a5bdc2325615be39e | refs/heads/master | 2021-01-18T09:40:24.095806 | 2011-12-09T10:13:28 | 2011-12-09T10:13:28 | 2,258,279 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,651 | py | #!/usr/bin/env python
# Add Python bindings directory to PATH
import sys, os
sys.path.append(os.sep.join((os.environ['OPENCMISS_ROOT'],'cm','bindings','python')))
# Intialise OpenCMISS
from opencmiss import CMISS
# Set problem parameters
height = 1.0
width = 2.0
length = 3.0
(coordinateSystemUserNumber,
regionU... | [
"aree035@aucklanduni.ac.nz"
] | aree035@aucklanduni.ac.nz |
27b5cc635f28293b0be825c39684f54d3fae813c | 99b7f63fc1fc3a69177ac4f8f3f6ea510f67c7d2 | /top100/python/medium/309_Best_Time_to_Buy_and_Sell_Stock_with_Cooldown.py | d4e0c9e575c980a181e5aa2c6822332bd4f6d9b2 | [] | no_license | zbw0034/coding-practise | 5e030e61faaf6addedf0896be7355dfae1faa564 | 9a749ea81b353ed41993bd03dae4bceb46d795a2 | refs/heads/master | 2022-04-26T22:17:32.458145 | 2020-04-29T12:47:40 | 2020-04-29T12:47:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 786 | py | """
Jesse@FDU-VTS-MIA
created by 2019/12/23
"""
from typing import List
class Solution:
def maxProfit(self, prices: List[int]) -> int:
dp = [[0 for _ in range(2)] for _ in range(len(prices)+1)] # 初始化状态转移矩阵
dp[0][1] = float('-inf') # 不可能持有股票,置为负无穷
for i in range... | [
"jesse_ecnu@126.com"
] | jesse_ecnu@126.com |
c216e210a3cd4f60ddcd94220107bcf6a2f2ad58 | 290fa984448c3350fa4059fa8852f8a1321109ab | /services/users/src/tests/test_admin.py | c5485a60d9b67dc9cad9af5833edad25ca6b1003 | [] | no_license | testdrivenio/flask-react-aws | 673a612ae3368e7a9dcd7ddb50c0ea03e3221928 | 365f0771d5234b0b4dfe05d59bab29a03845af4f | refs/heads/master | 2023-07-19T19:45:14.042103 | 2022-05-04T16:08:52 | 2022-05-04T16:08:52 | 198,724,692 | 29 | 21 | null | 2023-07-19T14:39:18 | 2019-07-24T23:54:07 | Python | UTF-8 | Python | false | false | 984 | py | import os
from src import create_app, db
def test_admin_view_dev():
os.environ["FLASK_ENV"] = "development"
assert os.getenv("FLASK_ENV") == "development"
app = create_app()
app.config.from_object("src.config.TestingConfig")
with app.app_context():
db.session.remove()
db.drop_all... | [
"hermanmu@gmail.com"
] | hermanmu@gmail.com |
05c74d4ba9f7b0c9cc53d7982072cb98b41192d7 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/226/users/4146/codes/1585_1571.py | 3c1bfbd4a36765c09fbb267862444daf795d8032 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | # Teste seu codigo aos poucos.
# Nao teste tudo no final, pois fica mais dificil de identificar erros.
# Nao se intimide com as mensagens de erro. Elas ajudam a corrigir seu codigo.
texto = input("Digite a string: ")
print(texto.upper())
| [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
6471dcb5fcce92aba50f34df3aa21e8ac3868163 | ae03a82147b154e037ba088174b342acd334262e | /external_teachers/manage.py | f01a9f6c2ff5b678e45804eb6cfa7e8f5963236b | [] | no_license | samfcmc/manage_external_teachers | d0f23e55495510a9c6243f9b7080b30bd7a09c63 | fc63d5b152e636a85ffe0a4a6c7a5894b5bdc732 | refs/heads/master | 2021-01-10T19:03:26.153753 | 2015-02-06T15:08:38 | 2015-02-06T15:08:38 | 16,146,008 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "external_teachers.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"samuelfcmc@gmail.com"
] | samuelfcmc@gmail.com |
975f7015b7ddf2009c5828c36b1d817a6d76d931 | 508661f0dbb012eecd6f6c1aaeac0a7cc86aa667 | /Praktikum 6/DemoQComboBox/DemoQComboBox.py | 1761d23c17dc4d7f85185687532da71bd9ee622c | [] | no_license | anggeralmasih/Pemrograman-dan-Praktikum-GUI_19104073_Anggeralmasih-WR_S1SE03B | e060fb99dc4d6b0c2d94f27ebb6b82621f2370f2 | edc865581ecbe8136fea50f8d73219231089663d | refs/heads/main | 2023-06-29T08:03:54.501644 | 2021-07-11T08:42:54 | 2021-07-11T08:42:54 | 356,132,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | import sys
from PyQt5.QtGui import *
from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
class MainForm(QWidget):
def __init__(self):
super().__init__()
self.setupUi()
def setupUi(self):
self.resize(300, 100)
self.move(300, 300)
self.setWindowTitle('Demo Q... | [
"noreply@github.com"
] | anggeralmasih.noreply@github.com |
49610d80d561c60ef23817e11e2e344424d7bc74 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/dev/nlp/FairSeq_Transformer_ID0496_for_PyTorch/examples/noisychannel/rerank_utils.py | 3056f54bfef9a854ae562221701e982f9ad82220 | [
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 29,170 | py | #
# BSD 3-Clause License
#
# Copyright (c) 2017 xxxx
# All rights reserved.
# Copyright 2021 Huawei Technologies Co., Ltd
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
ea6c1da884dcbb87f7983256016e00195b4d66b2 | dd2d29b326d9adb5743f6588d4248f8358b82d8d | /torchaudio/backend/utils.py | cb53b3e02ff24dfc1f4e55dc13b198af41d13bba | [
"BSD-2-Clause"
] | permissive | mmxgn/audio | 0e6bc06a738db3b353e88d70e1fed3964ee70a58 | 24741fdb97b9257868ae1caf593207aa7e581b6d | refs/heads/master | 2022-11-21T23:55:12.584975 | 2020-07-18T10:16:32 | 2020-07-18T10:16:32 | 267,539,108 | 0 | 0 | BSD-2-Clause | 2020-05-28T08:46:43 | 2020-05-28T08:46:42 | null | UTF-8 | Python | false | false | 2,265 | py | """Defines utilities for switching audio backends"""
import warnings
from typing import Optional, List
import torchaudio
from torchaudio._internal.module_utils import is_module_available
from . import (
no_backend,
sox_backend,
sox_io_backend,
soundfile_backend,
)
__all__ = [
'list_audio_backends'... | [
"noreply@github.com"
] | mmxgn.noreply@github.com |
7c2f3314655e6df4b85ee81a43b4a4f4a3751002 | d8edd97f8f8dea3f9f02da6c40d331682bb43113 | /train_wgangp_augment2_weightinit_noxy_singlegp.py | addd4121f7df27acdf60083943957ec45428d914 | [] | no_license | mdubouch/noise-gan | bdd5b2fff3aff70d5f464150443d51c2192eeafd | 639859ec4a2aa809d17eb6998a5a7d217559888a | refs/heads/master | 2023-07-15T09:37:57.631656 | 2021-08-27T11:02:45 | 2021-08-27T11:02:45 | 284,072,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,790 | py | #!/usr/bin/python3
#$ -P P_comet
#$ -j y
#$ -cwd
#$ -M m.dubouchet18@imperial.ac.uk
#$ -m be
#$ -q mc_gpu_long
#$ -pe multicores_gpu 4
#$ -l sps=1,GPU=1,GPUtype=V100
import os
import sys
sys.path.append(os.getcwd())
import argparse
import logging
import os
import numpy as np
import torch
import torch.nn as nn
import ... | [
"m.dubouchet18@imperial.ac.uk"
] | m.dubouchet18@imperial.ac.uk |
6a4bdafbf51409445c87afc8b35917d30df7031b | c167c5a7cd73dc4296520544dac20833f4b61ffd | /src/GridSearchCV.py | 5cdbc58085608fefae38b87dff7218c1ea8383a8 | [] | no_license | gvisani/enzyme_promiscuity | b63f7a89f9000e57dca01292a658b078ca8a02ad | fd27a4e515b5af96fed4bbed2568b12ed10b74fa | refs/heads/master | 2021-05-23T11:39:11.515508 | 2020-07-30T19:27:34 | 2020-07-30T19:27:34 | 253,266,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,547 | py | import numpy as np
import sklearn
class GridSearchCV(object):
def __init__(self,
estimator,
param_grid,
cv=5,
proba=False):
self.estimator = estimator
self.num_folds = cv
self.param_grid = param_grid
s... | [
"gian_marco.visani@tufts.edu"
] | gian_marco.visani@tufts.edu |
ed8eeaa3cf57ec9beead485077c332fd71a176d6 | dd2b4d26d44774b0dd4b5bb52af4923300398d43 | /src/bvexp201007/first_order/first_order_sensels.py | 017eab59c0fe8a5f82096cf02dbe31ebfa8448a4 | [] | no_license | AndreaCensi/bvexp201007 | 7fe6e4c428c7face83383bbdc91d14c286029b08 | 0030d19f2914329f1d93c560b83f711b07ed0313 | refs/heads/master | 2021-01-21T00:45:23.108676 | 2011-05-29T17:53:58 | 2011-05-29T17:53:58 | 916,496 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | from numpy import zeros
from pybv.utils import weighted_average, outer
class FirstorderSensels:
def __init__(self, config):
n = config.num_sensels
k = config.num_commands
self.T = zeros((k, n, n))
self.num_samples = 0
def process_data(self, data):
y = d... | [
"andrea@cds.caltech.edu"
] | andrea@cds.caltech.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.