blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
65652e1063e82634e4fdc2f3a31ef4a64f108db3 | 64734dce0e290095599e31d0c80920bc58d2779b | /intro to test/test.py | b98f4767518c68a9384f688ef5ff0bcbe25311bc | [] | no_license | satyamsingh2/developers-suitcase | 33f6e9fe6b8660621aa27439c320b252db322f32 | bb0651fc6b85c2249459d383e67a68147df19e44 | refs/heads/main | 2023-07-10T14:21:12.544243 | 2021-08-06T05:08:22 | 2021-08-06T05:08:22 | 360,185,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,089 | py | from demo import *
import unittest
# a unit test is required to be defined inside a class
class TestArea(unittest.TestCase):
def setUp(self):
pass
#runs before running test used as preparation method before test
def test_area_of_rect(self):
self.assertEqual(area_of_rect(5,6), 30)
#ba... | [
"noreply@github.com"
] | noreply@github.com |
52339edf02f3ab2499baae92bfcd98d8aca6a7e2 | e86de5af089798890fae230fad381ca5a84fa562 | /rssant_feedlib/reader.py | 4b3ef65d52ba94cb18dbc3e72c7a306030e97ffe | [
"BSD-3-Clause"
] | permissive | RustamYasaviev/rssant | 853508adfbb269d3ce91d4b4a122b8c65537ee51 | 25a66e136a6154b4ce3ef4004e562c7d0be67ec0 | refs/heads/master | 2022-12-30T23:57:42.546833 | 2020-10-23T11:08:26 | 2020-10-23T11:08:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,566 | py | import re
import socket
import ssl
import ipaddress
import logging
from urllib.parse import urlparse
from http import HTTPStatus
import requests
from rssant_common.dns_service import DNSService, DNS_SERVICE
from .response import FeedResponse, FeedResponseStatus
from .response_builder import FeedResponseBuilder
from .... | [
"guyskk@qq.com"
] | guyskk@qq.com |
7de9beaf1b472d91a1800e9205dae33702e2e645 | 6810201a040c7a77f1e5e9a93882f34717aaa4a4 | /find disappear number.py | d431c337db4b5747d8305a1f36522d7172795e5a | [] | no_license | phyllis-jia/array-practice | b848bfa52a82d1508b11ad946ba168a58e668030 | 3c1974866489384992d3e76307d90e5127edaf6f | refs/heads/master | 2020-11-29T06:15:29.915254 | 2020-01-11T07:04:57 | 2020-01-11T07:04:57 | 230,043,151 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | ###Find All Numbers Disappeared in an Array
##Given an array of integers where 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once.Find all the elements of [1, n] inclusive that do not appear in this array.Could you do it without extra space and in O(n) runtime? You may assume the return... | [
"54754413+490232987@users.noreply.github.com"
] | 54754413+490232987@users.noreply.github.com |
c46422aa62a585b2fef203ad5395901b118ea3da | d1cd97730d5ed4f7bec147d237cfe9ac9b2f6134 | /app.py | 9ef7c1d9e2022174e85c07cdc30742e823d87014 | [] | no_license | tsungic/MVP-backend | b5354c6fb13bfdfbc33ad7d85b98b195c90a1be1 | 2c371f4a10e36799c8c26cac933b55caff86ff72 | refs/heads/master | 2023-04-01T20:35:46.341005 | 2021-04-14T22:17:31 | 2021-04-14T22:17:31 | 349,769,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,489 | py | from flask import Flask, request, Response
from flask_cors import CORS
import dbcreds
import mariadb
import json
import secrets
app = Flask(__name__)
CORS(app)
@app.route("/api/users", methods=["GET","POST","PATCH","DELETE"])
def users():
if request.method =="GET":
user_id = request.args.get("userId")
... | [
"you@example.com"
] | you@example.com |
9dae38ac98dd54958fae339efd2fc043865b9d73 | 279ed7207ac2c407487416b595e12f573049dd72 | /pybvk/libbvk/input-generators/syspy/Tb | 25afd282481bd5e76e39d4bbee45aa72e6cada06 | [] | no_license | danse-inelastic/pybvk | 30388455e211fec69130930f2925fe16abe455bd | 922c8c0a8c50a9fabd619fa06e005cacc2d13a15 | refs/heads/master | 2016-09-15T22:21:13.131688 | 2014-06-25T17:12:34 | 2014-06-25T17:12:34 | 34,995,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,595 | #!/usr/bin/python
# Terbium
import System
from math import sqrt
# a and c are lattice parameters for hex
a=sqrt(3)
c=(5.696/3.599)*a # Article, page 3943
# c=(5.70/3.60)*a # LB
m=2.639017e-25 # atomic (average IUPAC) mass in kg
cell=[
a*sqrt(3)/2,-a/2,0,
0,a,0,
0,0,c... | [
"mkresch.caltech@gmail.com"
] | mkresch.caltech@gmail.com | |
f7c552759f66e732e862f5d4c641e014c42fc6ef | 8ceb07890ad7c6b64a2224e863aedccd17d51cfa | /TechnicalCodingExamples/PythonTechnicalExamples/PythonPrograms/feb/feb1.py | 3459145f99b62ef5edb301021e59ea363491eea9 | [] | no_license | sagarreddyg/PythonTechnicalExamplesProject | af1fa8d0e70885f1df82cc3bdf72beb771927396 | dd5072370b8e43490f1fe9463d189ba6c97fe51d | refs/heads/master | 2020-03-21T13:06:25.675727 | 2018-07-05T11:48:52 | 2018-07-05T11:48:52 | 138,588,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | a, b = 0, 1
for i in range(100):
if a <= 100:
print(a, end=" ")
a, b = b, a
b += a
| [
"gantasagarreddy467@gmail.com"
] | gantasagarreddy467@gmail.com |
0f7f0dd51238abea947caf09e24c2ee1e7230cc6 | 40df3950daf64e8c580fa6f7c3bab9ab57dc8dcf | /keido/urls.py | 65c99a55e74e5b839ca71ab3a846ffdf07cab227 | [] | no_license | azymv/clustering | 5f018a1efabe684081f6c1b1cddae607af112c30 | 0ec54e472c5ef525aeca5a9e91734b51cbb561f3 | refs/heads/master | 2020-07-09T11:57:58.053512 | 2019-08-23T09:27:18 | 2019-08-23T09:27:18 | 203,963,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 809 | py | """keido URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.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')
Class-based v... | [
"timurazymov@Timurs-MacBook-Pro.local"
] | timurazymov@Timurs-MacBook-Pro.local |
533d9a3aba0fddd5fedf95a5119260c435870c14 | 941688a0f6e382a28130b7f254fa302b0285182e | /Mind controlled drone/getAlpha_noPlotly.py | 38107a4c391789e3431a37846fb70809dcd08066 | [] | no_license | Hugo-W/Imperial-festival | d8575bad194700bf817e8b705ff2b4782a8ca652 | 930f05104d2487c76c9a242c06e8db7db79f3992 | refs/heads/master | 2021-01-19T15:34:03.739562 | 2015-05-12T10:30:48 | 2015-05-12T10:30:48 | 35,057,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,623 | py | # This is an example of popping a packet from the Emotiv class's packet queue
# and printing the gyro x and y values to the console.
from emokit.emotiv import Emotiv
import platform
if platform.system() == "Windows":
import socket # Needed to prevent gevent crashing on Windows. (surfly / gevent issue #459) / UDP... | [
"hugo.weissbart@gmail.com"
] | hugo.weissbart@gmail.com |
3b5873aab4eec5bf799b98a457ec157fe794c642 | a4cbe5263e4bf62f37fe4aa1117a84e74af357b5 | /classification_synthetic/synthetic_classification_rs.py | 6e8c333ff9e92dd9775aa56133858bcb52ad3f7d | [] | no_license | andressp05/bayopt_spn | 639b660671938dcca95a80a22ed5599fd7287caf | 36a57d04405befe9f05a32564bd781c0da647483 | refs/heads/master | 2023-06-19T00:48:14.672018 | 2021-07-14T18:35:33 | 2021-07-14T18:35:33 | 376,756,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,585 | py | # Debug Option
import pdb
# General Imports
import sys
import math
from sklearn.metrics import accuracy_score
from sklearn.model_selection import KFold
import numpy as np
import pandas as pd
# Imports SPN
from spn.algorithms.LearningWrappers import learn_parametric, learn_classifier
from spn.structure.leaves.parametr... | [
"asalaspena@gmail.com"
] | asalaspena@gmail.com |
b296990cc4eb26731b584ca00d04d1379ab8adda | d0787de1b8957b42e7bea12befd4e6d28a42bf9d | /question_b.py | b5d502c33cd245f956ac23a1d9a0e92550fb93f5 | [] | no_license | jucarrier/Justin-Carrier-Test | c88f3b012fefad327e3a131393b999a6d3285e10 | b5a1956be45c7355dbcbb2f8c030c22110c4b32a | refs/heads/master | 2020-05-24T03:26:50.838097 | 2019-05-17T14:29:10 | 2019-05-17T14:29:21 | 187,072,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,546 | py | import re
def sanitize_input(str):
# Remove superfluous separators
str = " ".join(re.split("\s+", str, flags=re.UNICODE))
str = " ".join(re.split(",{2,}", str, flags=re.UNICODE))
if str.count(',') > 1 or str.count(' ') > 1:
return "You must only enter two numbers"
try:
if ',' in st... | [
"justind.carrier@gmail.com"
] | justind.carrier@gmail.com |
418adfe62158fd425838f6516db8796311d443e5 | 101e4ffbb876fbb255014b03b685d52cdbb45103 | /flask/lib/python2.7/site-packages/pbr/tests/test_wsgi.py | 0bdf178f0e9a485bee0545bade56581f341846a0 | [] | no_license | cherryshen/cherryblog | 23d008c634542c47a965510efd77b4ff166f6ad7 | f401570f0ddc663185932265fc2c8fee11d6f771 | refs/heads/master | 2020-12-01T19:05:06.692396 | 2016-09-06T04:40:03 | 2016-09-06T04:40:03 | 66,790,200 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,470 | py | # Copyright (c) 2015 Hewlett-Packard Development Company, L.P. (HP)
#
# 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 ... | [
"cshen@wellesley.edu"
] | cshen@wellesley.edu |
1d5c74667e175aaa2beed57eccdd0fd63940fc90 | 8512f25ed1829b321c276b98c5cd388f048778b1 | /Jeu/Tetris.py | c248d23d98e46501d7b25353cc2abba66454aea6 | [] | no_license | VL74/ProjetTetris | 9ad953708013bb0c6f890c2d37ea45aeb8796c27 | a8ecf7e350bfaeec0cb48aa2606214d3cee265c2 | refs/heads/main | 2023-04-04T16:21:59.406050 | 2021-03-31T09:59:13 | 2021-03-31T09:59:13 | 353,256,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,802 | py | from Jeu.Figure import Figure
from Jeu.Joueur import Joueur
class Tetris:
level = 2
grab = 1
state = "start"
field = []
hauteur = 0
longueur = 0
score = 0
x = 100
y = 60
zoom = 20
figure = None
Joueur1 = Joueur()
def __init__(self, hauteur, longueur):
self... | [
"vincentlapierre74@gmail.com"
] | vincentlapierre74@gmail.com |
07a0c742bac229ea4e7fc786a234c4da7d784306 | df0544a0da4e5c16c7e18eeb898e24bac6db76ca | /object/animal_reflect.py | ddd7cfe68dabb7be8b41f1b7b478e18f576e3df4 | [] | no_license | Xu-Guo/python | c37227bde318647daf6eafdd36a7356232fed46e | 54ea35470916e63c00b0a5ce2c265a9b3868fd3f | refs/heads/master | 2020-04-05T23:21:51.994207 | 2015-07-28T22:29:30 | 2015-07-28T22:29:30 | 39,860,612 | 0 | 0 | null | 2015-07-28T22:22:37 | 2015-07-28T22:22:36 | null | UTF-8 | Python | false | false | 1,358 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import types
class Animal(object):
def __init__(self, age=9):
self.age = age
print "Animal constructor is called"
def run(self):
print 'Animal is running...'
def __old__(self):
return self.age
def __len__(self):
re... | [
"qguan@itu.edu"
] | qguan@itu.edu |
81270c4b09a1d3528f7e7da50545fdb98d9f0426 | 2ade7afe274e3f6252bcfc38c17639fc31379002 | /checkio.org/Elementary/popular_words.py | fc9c1bcbd795b9b52e02106d5b35a8974fedf37e | [] | no_license | dunaldo/checkio-solutions | 78c6922efb6b7f321476be1e15d56beafe5efc8b | a8ed7ac072d43d185f95149473f0e529d41e1d6c | refs/heads/master | 2020-03-29T09:23:43.521483 | 2019-02-07T20:28:40 | 2019-02-07T20:28:40 | 149,756,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 929 | py | from collections import Counter
def popular_words(text, words):
# your code here
text = dict(Counter(text.replace(',', '').lower().replace('.', '').split()))
newtext = text.fromkeys(words, 0)
for key, value in text.items():
if key in newtext:
newtext[key] = text[key]
... | [
"noreply@github.com"
] | noreply@github.com |
d9ee8a40fc8b7250e6a9fa0183f5948f79759ff5 | 93ab4c0dc6da2eba2d10ac290090ddd528f0f001 | /gpt2_robustness/argparser.py | 5a40514cc5a2d99bf0a940d2490fd42f142aea58 | [] | no_license | hansonhl/GenerativeCommonsenseQA | 849ef3a2c0b702d7d4b993462f6dc2ec97848662 | 875a0ff76f752adcd7ef9d926216aa5123cc16e4 | refs/heads/main | 2023-05-11T23:20:09.454626 | 2021-06-02T22:19:18 | 2021-06-02T22:19:18 | 373,312,262 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,423 | py | import configargparse
def get_ansgen_args(parser):
parser.add_argument("-c", "--configs", is_config_file=True)
parser.add_argument('--preprocessed_dir', type=str)
parser.add_argument('--graph_info_dir', type=str)
parser.add_argument('--save_dir', type=str)
parser.add_argument("--protoqa_data_path",... | [
"hansonlu.hl@gmail.com"
] | hansonlu.hl@gmail.com |
d6f5168e7ed6ddd0d588ee89ae179faafdae37c6 | d78dfc5089717fc242bbd7097f507d811abb4260 | /USA/script.icechannel.Thevideome.settings/default.py | b7d904cce475928faec807af89e23a0002229f7a | [] | no_license | tustxk/AddOnRepo | 995b980a9ec737e2c25bed423fc83f710c697e40 | 6b86a06cb37e6e10b4119584dd7311ebc2318e54 | refs/heads/master | 2022-10-08T21:34:34.632346 | 2016-10-28T09:48:01 | 2016-10-28T09:48:01 | 70,684,775 | 1 | 1 | null | 2022-10-01T16:27:13 | 2016-10-12T09:31:16 | Python | UTF-8 | Python | false | false | 169 | py | addon_id="script.icechannel.Thevideome.settings"
addon_name="iStream - Thevideome - Settings"
import xbmcaddon
addon = xbmcaddon.Addon(id=addon_id)
addon.openSettings()
| [
"ke.xiao@netxeon.com"
] | ke.xiao@netxeon.com |
026929ec24e1f7081f6395d8e0f8da89463f35df | 9733d4f36767ace1c9b6461961244377b0fc9e21 | /Set Country on TimerA.py | 36c94a4e7ee4fd9e3280883daf070dc704350e55 | [] | no_license | kshish/phantom | 8ae08c40f8c180f28bfb7a4841332deeac699fd5 | e99fbd0173210529174bb667b1dd01112c9528d1 | refs/heads/main | 2023-08-17T23:19:41.876473 | 2023-08-15T19:42:17 | 2023-08-15T19:42:17 | 158,777,184 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,017 | py | """
Sets the cn CEF field to country. Normally this might be set by a ip lookup action.
"""
import phantom.rules as phantom
import json
from datetime import datetime, timedelta
def on_start(container):
phantom.debug('on_start() called')
# call 'add_country_code' block
add_country_code(container=conta... | [
"churyn@splunk.com"
] | churyn@splunk.com |
f5f2341e86aed45355014d8c3d539a2db0d20206 | c92e99036c323d918da008b3a44638d71096e699 | /root_project/urls.py | b000a7db11150ebe0e8a67c0e3b1a25e3fc7c518 | [] | no_license | yassinerahhaui/OnlineStoreBackend | c274853e3246333524423f26a7edf4652895c930 | 3d3ccb491cb3218ee0b56f584c2bbc84f127363c | refs/heads/main | 2023-08-10T18:42:25.284987 | 2021-09-26T20:52:14 | 2021-09-26T20:52:14 | 410,339,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,059 | py | """root_project 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')
Class-... | [
"yassinerahhaoui12@gmail.com"
] | yassinerahhaoui12@gmail.com |
b0c48fdf943b96e8c06a8f538c857d9906b9c978 | 62e0b8df8b42a80947acbc629f2d263e3e3d19da | /app.py | f9c2b98719581e5dbcacab1a9212615af6ae0d3a | [] | no_license | JCRamzz/ketogram | 1583fd3bedacaafb914a52020b2be01c1616a5fd | 009ca935950087640c4c887d762d95d4209af722 | refs/heads/master | 2020-05-09T16:12:21.074036 | 2019-04-14T04:51:02 | 2019-04-14T04:51:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | from flask import Flask, request
from twilio.twiml.messaging_response import MessagingResponse
from tags import get_relevant_tags
app = Flask(__name__)
@app.route('/sms', methods=['POST'])
def sms_reply():
# Create a MessagingResponse object to generate TwiML.
resp = MessagingResponse()
... | [
"austrebertog@gmail.com"
] | austrebertog@gmail.com |
472ff802c1037734a5f3e314bbf726dac432fdc5 | 299de1f7c4fcf94c83664abdb1886dcde12e228f | /101/test-index.py | 87916251a3ecdeb0ef9cdc1e66e726877c358247 | [] | no_license | abijr/master-python101 | a57c5d255ab592ff17aa08e60fad688f3c30417b | 4677d2a4796bcc7ffeb2e19b701286d1900d624b | refs/heads/master | 2023-01-20T20:35:30.623563 | 2020-11-17T19:02:25 | 2020-11-17T19:02:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 964 | py |
try:
i = 1
while i == 1:
phrase = str(input("Do you want to Calculate again? "))
if phrase.lower() in "yes":
print("YES was detected")
i -= 1
elif phrase.lower() in "no":
print("NO was detected, bye bye.")
i -= 1
else:
... | [
"alex.israel.mtz@gmail.com"
] | alex.israel.mtz@gmail.com |
b23fb0ea79b091e827b32b87afc9de90eca3a541 | a41bef47b72e7bc3a34d6de106d97805d54de51f | /main.py | ca9d8946b6794001fbc389d50c7c40b8a6b0ef46 | [] | no_license | samKM/hangman_game | 7af8f642e53a328a5f034b0a05a420ced802a7d3 | 11af044c47b19124df4ea0ffa80b8228943cd6fb | refs/heads/master | 2022-11-24T11:50:18.057021 | 2020-07-19T15:16:49 | 2020-07-19T15:16:49 | 280,496,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,017 | py | # Inspired by the Hangman game.
#
# Author: Samuel K.
import random
import urllib.request
game_options = {"nw": "guess a New Word", "qg": "Quit Game", "he": "show Help message", "sw": "show Secret Word"}
# Initialize a new game.
def new_game(secret_word: str, number_of_tries: int, word_progress: str) -> list:
s... | [
"karanjasamuel49@gmail.com"
] | karanjasamuel49@gmail.com |
424005c2fa2abfd76faec29f6fc8fdec1ca62428 | 7ac2139aad3bae34cd81236401c5d10051dde01e | /bikeshare.py | 64212035267cf5743ef7c57860ee1ef8e622dc3c | [] | no_license | tschwartz11/pdsnd_github | 3df2c45b46f9f51d038ea7ffee42e9072c117f5e | 8e1daa75227e164041343090fd51237580246876 | refs/heads/master | 2022-06-05T15:42:01.972702 | 2020-04-30T06:45:29 | 2020-04-30T14:58:06 | 260,051,455 | 0 | 0 | null | 2020-04-29T21:37:55 | 2020-04-29T21:37:54 | null | UTF-8 | Python | false | false | 8,216 | py | import time
import pandas as pd
import numpy as np
CITY_DATA = { 'chicago': 'chicago.csv',
'new york city': 'new_york_city.csv',
'washington': 'washington.csv' }
def get_filters():
"""
Asks user to specify a city, month, and day to analyze.
Returns:
(str) city - name o... | [
"ts2083@att.com"
] | ts2083@att.com |
0661e0edba59217cb141f3c37b121546ca3d25c9 | 80fd53a27d0c4b4053671a24678aeb67e7c67d04 | /Digit_recognition_sci_kit_learn_Test.py | 663d288c8a26a91d2bb193c7cec6ed1fd83bd111 | [] | no_license | S-shubham/Sci_Kit_learn- | 39b065d03b99b52823b9d0aa69ca9406ac6d322a | 9d1a98ee79b2913be5f8606175b58dff0dd4b2ea | refs/heads/master | 2020-04-03T05:46:06.644526 | 2018-11-26T07:49:54 | 2018-11-26T07:49:54 | 155,055,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
2+3
# In[3]:
from sklearn import datasets as ds
# In[5]:
digit=ds.load_digits()
# In[6]:
from sklearn import svm
# In[7]:
clf=svm.SVC(gamma=0.001,C=100.)
# In[10]:
clf.fit(digit.data[:-1],digit.target[:-1])
# In[12]:
clf.predict(digit.data[-1:])
... | [
"noreply@github.com"
] | noreply@github.com |
430d6f6cc8946f4f5860ce89df1dfa1f2c8701bd | 048b7b25e9fb1df918260bc716b9a81a26ee2797 | /test/integration/stomp/publisher/create_request_test.py | bfcd29b588c3af44977f8425aff0621ed7d53043 | [
"MIT"
] | permissive | devopstoday11/beer-garden | 996ae2ae167a22664a458a86004114bad6290cae | 566fa3cd00d931fa18cbc399aa4f8af6177dd17d | refs/heads/master | 2023-04-21T07:03:26.295320 | 2021-04-23T19:11:33 | 2021-04-23T19:11:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,334 | py | import signal
import stomp
from brewtils.models import Operation, Request
from brewtils.schema_parser import SchemaParser
import pytest
import time
import json
from brewtils.errors import ValidationError
try:
from helper import delete_plugins
from helper.assertion import assert_system_running
from helper... | [
"5104941+TheBurchLog@users.noreply.github.com"
] | 5104941+TheBurchLog@users.noreply.github.com |
c0d7b5c19139292f18d5335e11240ff1d3223dbe | 3acabf7db0dd4bf7eb45343f9d08a39b22d03e2a | /practice/BST.py | e2eba25a077a39719d20b4a1fb375c4aa3cef095 | [] | no_license | kanishkaverma/python_data_science | f6b8c9d7a21f6b7219c043bce03a76e3ec7ba725 | 7f9e22319e03658e0d65f1629953a549f41a7087 | refs/heads/main | 2023-02-17T08:08:38.931941 | 2021-01-14T20:50:02 | 2021-01-14T20:50:02 | 325,627,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 761 | py | class BST:
def __init__(self, head):
self.head = head
def inorder(self, node):
if node:
self.inorder(node.left)
print(node.data, end=" ")
self.inorder(node.right)
def insert(self, node, val):
if not node:
return Node(val)
els... | [
"kanishkaverma@users.noreply.github.com"
] | kanishkaverma@users.noreply.github.com |
57adbfd2865b7cf8540897ff6ca3685bbaf4dfb0 | 164457b943d0b426e9a5e2eb57779e4e37f2d1bb | /the_tale/accounts/workers/accounts_manager.py | 84d4482f67e8a0b8ffab01b81c7cb415dffd6c34 | [
"BSD-2-Clause-Views"
] | permissive | lshestov/the-tale | 64334fd99a442ad736d9e8a38e8f0fb52d0ebab6 | 6229edfec6420307975269be9926c68ecdefb930 | refs/heads/master | 2021-01-18T08:38:44.147294 | 2015-10-27T18:43:10 | 2015-10-27T18:43:10 | 50,228,827 | 0 | 0 | null | 2016-01-23T07:38:54 | 2016-01-23T07:38:54 | null | UTF-8 | Python | false | false | 3,166 | py | # coding: utf-8
import time
import datetime
from dext.settings import settings
from the_tale.common.utils.workers import BaseWorker
from the_tale.common import postponed_tasks
from the_tale.accounts.prototypes import AccountPrototype, RandomPremiumRequestPrototype
from the_tale.accounts.conf import accounts_settings... | [
"a.eletsky@gmail.com"
] | a.eletsky@gmail.com |
0ca21397231f4da1931b6ef1d6d598b2818e374d | 9cf16029d98395866ca28858881cccee41579e5d | /shrink_machine_ros/scripts/get_transform.py | 9805053f85f55e4e011ec468165a53abfdeac63e | [] | no_license | marek-kolodziejczak98/ProjektTS2021 | 52f7b7ebce8c5cad40b4e30553a038b521871830 | 1f6b0f634afeb1142d57175f6b55b81cd00b4f2c | refs/heads/main | 2023-04-16T02:35:17.357725 | 2021-04-20T21:37:33 | 2021-04-20T21:37:33 | 344,146,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 716 | py | #!/usr/bin/env python
import roslib
#roslib.load_manifest('tf_tutorial')
import rospy
import math
import tf
import geometry_msgs.msg
import tf2_msgs.msg
import turtlesim.srv
if __name__ == '__main__':
rospy.init_node('tf_listener')
listener = tf.TransformListener()
listener.waitForTransform('/base_link'... | [
"radekgoralewski@gmail.com"
] | radekgoralewski@gmail.com |
7cf3515e7f6034a2c7c8f4d75546e29fa79cc092 | 1e58c8aaff5bb1273caaa73c49c07fd61ebd4439 | /wavencoder/__init__.py | ff0dd47ac2d71605c97213e27e6d38be784f8314 | [
"MIT"
] | permissive | samsudinng/wavencoder | 9870d6dd86cb126b170c9a6af93acee4acbbd633 | a64e16444ed25b5491fd2ba0c9f1409671e12e5e | refs/heads/master | 2023-03-01T22:42:42.477643 | 2021-02-08T11:23:00 | 2021-02-08T11:23:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,024 | py | __version__ = '0.0.6'
from wavencoder.models.wav2vec import Wav2Vec
from wavencoder.models.wav2vec2 import Wav2Vec2Model
from wavencoder.models.sincnet import SincNet, SincConvLayer
from wavencoder.models.lstm_classifier import LSTM_Classifier
from wavencoder.models.lstm_classifier import LSTM_Attn_Classifier
from w... | [
"shangethrajaa@gmail.com"
] | shangethrajaa@gmail.com |
ac47410c081854dcc9bc0251f7925ae5e152c61f | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/fv/poddhcpserverinfo.py | 578744b8cd584e1c2bc24ce6e7cb39c73bd5bc04 | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 7,213 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
3b730197144fb7ea0165d2a58ba7c067ef881f75 | 30f22113cfb7ccf8a41d7306dd2cb4a0a1fadcfd | /2017/20170802 - ocr bancario - python/test_problem.py | 2abede7592d765b822ef77c758830efc42b06939 | [] | no_license | dojorio/dojo-centro | bb6b120ec13c405a870053ec018006ca6fe08bc0 | ba33a57d49b829dab7c4431aaf1294affe8e1e38 | refs/heads/master | 2021-05-22T11:36:38.940437 | 2020-05-16T22:20:28 | 2020-05-16T22:20:28 | 2,847,726 | 62 | 12 | null | 2020-05-16T22:20:29 | 2011-11-25T04:51:49 | PHP | UTF-8 | Python | false | false | 2,185 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# http://www.dojopuzzles.com/problemas/exibe/ocr-bancario/
# _ _ _ _ _ _ _
# | _| _| |_| |_ |_ | |_| |_|
# | |_ _| | _| |_| | |_| _|
import unittest
from problem import *
class TestProblem(unittest.TestCase):
def test_1(self):
... | [
"dojo-rio@googlegroups.com"
] | dojo-rio@googlegroups.com |
147fa6ee422999deb6e56fd3b135c96d12daf294 | c84a503f851b6e7b618906257107aae61580627f | /client.py | c5bf1adf5dcfd6998d42a4c8124fb311ac8308f4 | [] | no_license | PetrutiuPaul/ConferenceRoomManager | f20e88fbf007a3bfae094a00721f166b3efa71be | abf506bed01d3b5defc998b36a0019457bd5266c | refs/heads/master | 2021-08-15T01:53:46.215588 | 2017-11-17T06:18:19 | 2017-11-17T06:18:19 | 108,638,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,394 | py | '''
Created on Oct 28, 2016
@author: Bogdan Boboc (bogdanboboc97@gmail.com) && Florin Tamas (tamasflorin@live.com)
'''
import requests
import RPi.GPIO as GPIO
import time
import sys
import subprocess
from socket import *
import Adafruit_DHT as dht
# Set input GPIO
INPUT_GPIO = 37
INPUT_TEMPERATURE_GPIO = 23
# GPIO ... | [
"paul970410@gmail.com"
] | paul970410@gmail.com |
8bea41c46829027576c6822593b56edbc8748d46 | 739373ca3a5fe5bc9b495b040a96ec5653a1ba45 | /Introdução a Ciencia da Computação com Python - PII/w3_Pytest_Cubo.py | 1c8a31d0d81f80833211a98301f05bfee6d7a3f9 | [] | no_license | emanuelgustavo/pythonscripts | e7e9999ad91b4c97d13ade81d2907f596479863f | 4ac7c1522407602406ce0b875493daefdcacc8b9 | refs/heads/master | 2020-06-25T11:54:05.638587 | 2020-03-05T10:18:04 | 2020-03-05T10:18:04 | 199,301,121 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | import pytest
import w3_Cubo
class Test_Cubo:
@pytest.fixture
def cubo(self):
return w3_Cubo.Cubo()
@pytest.mark.parametrize('entrada, esperado', [
(0,0),
(1,1),
(2,8),
(-1,-1),
(-2, -8),
(10, 1000),
(-3, -27)
])
def tes... | [
"emanuelgustavovierne@gmail.com"
] | emanuelgustavovierne@gmail.com |
9c7e7b63521c3bf5d1e627c65dd8859b9c9aa682 | 60991b8e8a4a4d09f27cd45b77a1fa087edabf83 | /sz_c6_svm.py | cac0fb0d3cd26ba38a022ce776434770de9d540f | [] | no_license | yueqiyisheng/-_- | 20474877cdcbea46620054cd8bbffccf983003d7 | fa9e9c8c7e6eebc70c9bad9ed8fc426ec03f8245 | refs/heads/master | 2021-04-15T15:26:11.446435 | 2018-03-06T05:41:37 | 2018-03-06T05:41:37 | 126,168,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,692 | py | # 机器学习实战 学习记录
# Chapter 6 支持向量机 SVM
# SVM本身是二分类问题,对多类问题需要修改代码
# coding='UTF-8'
'''
基于最大间隔进行分类
思路:先找到具有最小间隔的数据点,然后对该间隔进行最大化
'''
'''
SVM的主要任务就是找到那些使得目标函数成立的alpha
SMO(序列最小化,坐标上升法的进步版)就是完成上述任务的算法,即主要来训练SVM
1)简化版SMO:选择alpha对时,首先在数据集上遍历每一个alpha,然后在剩下的alpha集合中随机选择另一个alpha
2)完整版:外循环确定要优化的最佳alpha对
'''
# 简化版SMO
## SMO辅助函数
#... | [
"zhangyue9405@buaa.edu.cn"
] | zhangyue9405@buaa.edu.cn |
fb41380c2348b8810a81495d373016be0606ee17 | e4f97f0e9bb48fde6c25e1dd628d79b2cf905111 | /setup.py | a2d6e8503f371d24394168159549bf9a049e4af7 | [
"MIT"
] | permissive | DarthThomas/poolvr.py | 7a167f3c35b1d3d86b5f56cc4cf5770dd9bf2bd6 | 2e983c8c48995eeece82ea4abbda4628cb23285c | refs/heads/master | 2020-12-03T21:30:48.057200 | 2019-08-24T23:36:23 | 2019-08-24T23:36:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,389 | py | #!/bin/env python
from setuptools import setup
from codecs import open
from os import path, listdir
here = path.dirname(path.abspath(__file__))
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='poolvr.py',
version='0.0.1',
description='Python VR ... | [
"jeffrey.zitelli@gmail.com"
] | jeffrey.zitelli@gmail.com |
7ad34a71cf548ff1303f903e8c1a5ba7ad27e6e8 | 631b074ba6b901ba5fb709f8e24acb84a596e777 | /cinder/tests/api/openstack/volume/test_volumes.py | 9563989a91bfa3d21b06cacf38d01659d5bf1120 | [
"Apache-2.0"
] | permissive | matiu2/cinder | 5ee188a834eea06883103ab97cee50a9ee3a21bb | 1c52fb3041df5661756246705942c60b4b1448d5 | refs/heads/master | 2021-01-18T13:54:34.159533 | 2012-05-04T04:45:20 | 2012-05-04T04:45:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,490 | py | # Copyright 2013 Josh Durgin
# 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 a... | [
"mordred@inaugust.com"
] | mordred@inaugust.com |
3dd165507fdace1d24cfa246d10ef7add40abda8 | 1d287bf5657eaaaad2c40a7fa9be8f3422cd5705 | /web/basic_app/migrations/0003_auto_20190613_2322.py | 7a8eec02dee61037ffabb91603f0aa8a7ba7e6ce | [] | no_license | chibike/gclipboard | fd2c93d4c4f553880b44e552d929e55ee4e32139 | 2a0dea280478a96b2a561e5c34b22a8ec85a7ac1 | refs/heads/master | 2022-12-26T22:24:23.049325 | 2019-09-01T19:14:07 | 2019-09-01T19:14:07 | 191,410,753 | 0 | 0 | null | 2022-12-09T07:40:53 | 2019-06-11T16:33:54 | CSS | UTF-8 | Python | false | false | 446 | py | # Generated by Django 2.1 on 2019-06-13 23:22
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('basic_app', '0002_auto_20190613_2302'),
]
operations = [
migrations.AlterField(
model_name='clipboard... | [
"cpraise@cryptoquantique.com"
] | cpraise@cryptoquantique.com |
a7308f24b2582950c56f5093db7eb9097e99654b | e3b9758687890727898876e1d12ca5b5b6db74be | /auth_public.py | 6d8059b44ff4265be6fcc6a29fe0c5c25445d25a | [
"MIT"
] | permissive | tinemakovecki/Drinks-and-things | 00af19ac0192f77be25d2f77869b09ae9c9a3956 | b6e0db38586b4261b192c5847ca7cde6d3d3785e | refs/heads/master | 2020-03-07T09:47:07.867902 | 2018-08-26T11:17:03 | 2018-08-26T11:17:03 | 127,415,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 90 | py | db = 'sem2018_tinem'
host = 'baza.fmf.uni-lj.si'
user = 'javnost'
password = 'javnogeslo'
| [
"tine.makovecki@gmail.com"
] | tine.makovecki@gmail.com |
60737ba91eebed515655c9cabd5b4b3f2cb24da1 | ce14ad881f246e7598b44bd480abea63f0bc715d | /gymtest.py | 7a23d4be40257e67b53d943f7299cebc2b5f961c | [] | no_license | KyubumShin/RLtutorial | f30586f5f315c5804a895b7eb2d6f27eff22505c | a107b233e93ea3e84f54316c4c012c4eb176d054 | refs/heads/master | 2022-12-10T06:11:59.789031 | 2020-09-29T12:31:21 | 2020-09-29T12:31:21 | 299,609,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 76 | py | import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
import torch
import gym
| [
"kbum0617@naver.com"
] | kbum0617@naver.com |
e0e67a92b613b2c4a25170960c968539324316a0 | c0b9727943ed437377bd672af6604256cd6c0f1e | /gen/datagen.py | e0fc2c912fe27881f9c629e89f24b9af08e402c9 | [] | no_license | phongngtuan/play-bank | 249b2f01ecbe2f7d0346231439292f76224354ac | ab999fcdeb4bf13d22a5a6141347780df0e530ae | refs/heads/master | 2020-06-20T03:57:35.733072 | 2019-07-14T14:46:07 | 2019-07-15T11:30:00 | 196,984,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,986 | py | #!/usr/bin/python
import sys
import argparse
import random
import re
parser = argparse.ArgumentParser(description='Generate random data samples')
parser.add_argument('-n', "--lines" , type=int, default=100, help="number of transactions")
parser.add_argument('--overdraft', type=int, default=0 , help="position ... | [
"phongnt.ptnk@gmail.com"
] | phongnt.ptnk@gmail.com |
0e70c6c78066e70de78e483e1497a1ffa9cf16f7 | b9b54e9c5b6f9cdb3e8eb449f359d4eda3c4f8c9 | /博物馆新闻采集分析子系统/museum_news_spider/museum_news_spider/middlewares.py | fbf6be80b16bbf7256b2085aada8da756aa69b5f | [] | no_license | Ice-Jeffrey/BUCTCS1703SECD | ac6fca3179a785df4247daff1e1729dea7b4b200 | 30808a6210e420969a1007c377fcf9a3a081fcbe | refs/heads/master | 2021-05-19T08:18:39.184517 | 2020-05-26T15:19:11 | 2020-05-26T15:19:11 | 251,601,687 | 0 | 1 | null | 2020-05-26T12:22:38 | 2020-03-31T12:51:35 | Jupyter Notebook | UTF-8 | Python | false | false | 4,114 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
from scrapy.downloadermiddlewares.useragent import UserAgentMiddleware
import random
class MyUserAgentMiddleware(UserAgent... | [
"735429132@qq.com"
] | 735429132@qq.com |
2d1f1b95797134d0c07deb8b229840725d5ccbfb | 7e5c4bb68fe9e4f1eb03938e93d82434985664ff | /fed/crawl/crawl.py | ac1fa84858c8e8fee31e7a83102d3f13556342df | [] | no_license | LongHouTin/Data533_Project | 3ddc9bebd6256eb86dc09411df755f84e39aee49 | 60769a38709138a9194dbeb42f54a79de2a83aa3 | refs/heads/master | 2022-03-24T08:30:55.558859 | 2019-12-11T23:50:28 | 2019-12-11T23:50:28 | 226,991,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,672 | py | #!/usr/bin/env python
# coding: utf-8
# In[15]:
def webcrawl():
import urllib.request
from bs4 import BeautifulSoup as bs
import lxml, html5lib
import time
from xlrd import open_workbook
from xlutils.copy import copy
import xlrd,xlrd,xlwt
varname=["FEDPURCHASE","FEDSALE","CBOE_VIX","... | [
"lsam8910@gmail.com"
] | lsam8910@gmail.com |
36e595e072cea6da8c645f8f5f5746541a76a31f | 5a7dbdc62ca61cdd6c588de30153067f2825acc7 | /littlebrother/test/__init__.py | e22c44b1d769151e73a90636b1aac847505a0194 | [
"MIT"
] | permissive | kxz/littlebrother | 87bf12b74990c249dfb3d10af2aa71fa2f5dc86b | af9ec9af5c0de9a74796bb7e16a6b836286e8b9f | refs/heads/master | 2020-12-24T07:52:25.897158 | 2016-06-02T06:09:44 | 2016-06-02T06:09:44 | 39,976,488 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37 | py | """Unit tests for Little Brother."""
| [
"blankplacement@gmail.com"
] | blankplacement@gmail.com |
cf6c588bc60fd68481a1cf1759277191155b510b | 08ab013d0cad5d18481498f5361314e72955a331 | /tetrisboard.py | 3f533fbb90dc528867234135ce846ae78bee9853 | [] | no_license | gil9red/tetris-py | 0d56b9fafd245899ccf7fd8f835eefa04e957053 | fbd7bc16a0def25f5447d7388a84f87925684846 | refs/heads/master | 2022-06-26T16:55:58.958731 | 2022-05-30T14:04:03 | 2022-05-30T14:04:03 | 32,170,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,121 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = 'ipetrash'
from PySide.QtGui import *
from PySide.QtCore import *
from tetrispiece import TetrisPiece, TetrisShape
# TODO: закончить портирование
class TetrisBoard(QFrame):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)... | [
"ip1992@inbox.ru"
] | ip1992@inbox.ru |
e09138090d3aa5f88c738829adae8bed852b4eb4 | fec19fc5d71eed972ab620c50df64252e29e6f32 | /marquote/shakespeare/views.py | 61155f2941bf96448e56a0a0a89df4a182303bd7 | [] | no_license | rixx/marquote-frontend | 8468b8f67a356be804fc906b3bd4bf1a646b7ac0 | 70f86f2ffe9d9963dd662ec84aeec0d86bc23f16 | refs/heads/master | 2021-01-21T13:26:11.924620 | 2016-05-19T23:20:21 | 2016-05-20T23:20:21 | 50,210,297 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | from django.shortcuts import render
from django.views.generic import View
from shakespeare.models import ShakespeareSequence
class IndexView(View):
template_name = 'shakespeare/index.html'
def get(self, request):
context = {'project': ShakespeareSequence.get_or_create_project()}
return rende... | [
"tobias.kunze@ax-semantics.com"
] | tobias.kunze@ax-semantics.com |
283ddf0cecb6580e015b84c826afada6ef5234d6 | a0f579bc6b1dd310b232982240e15b3aeda8c80f | /apps.py | 729d0bb5df7cb1ae7664be531fccf28a02613b39 | [] | no_license | megala18/task | 886e944fc1b59dbd6fbb2485a38ae4bc00dee186 | 1bbe3b27f4a42be57507b34b3fccbf04a2ae02e5 | refs/heads/main | 2023-08-18T23:39:53.532379 | 2021-10-06T10:56:01 | 2021-10-06T10:56:01 | 414,173,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | from django.apps import AppConfig
class CrudappConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'crudApp'
| [
"noreply@github.com"
] | noreply@github.com |
e1ffaef3f1c5494dae189261a3623efe91eafab0 | b2ba5f361d4ec5e08110ae2db62b8adb6c7eee9a | /blog/urls.py | e02a111da4c881ff28c53768395ed7741d0f1b2a | [] | no_license | hariomvyas/simpleblogwebapp | b9622fbfaa3c440e170efa0512db42c5318e0e42 | dae3acd10cf0a808888ec86bfd385a6ad1f898dc | refs/heads/master | 2022-12-14T19:46:04.139128 | 2020-09-09T10:05:07 | 2020-09-09T10:05:07 | 294,068,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | from django.urls import path
from .views import (
PostListView,
PostDetailView,
PostCreateView,
PostUpdateView,
PostDeleteView,
UserPostListView
)
from . import views
urlpatterns = [
path('', PostListView.as_view(),name='blog-home'),
path('user/<str:username>', UserPostListView.as_view(),name='user-posts'),
... | [
"hariomkvyas@gmail.com"
] | hariomkvyas@gmail.com |
2d3681ee37212f46320404bae0172762348ebf5f | ae2113a464cde44de13849ca92e316b93e9fdbb9 | /GSL/main_supervised_ilab.py | 9ad83699aefa0d3ead7b564d19a2efa302adfd9a | [] | no_license | gyhandy/GSL-Video | 7002e250fbab5eaee0f2ffca2a3583054fca3539 | 1a8d7e55c72a1758dce6c0db4c1d88f98531b223 | refs/heads/master | 2022-12-19T00:36:03.603444 | 2020-09-28T18:30:15 | 2020-09-28T18:30:15 | 290,236,604 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,090 | py | """main.py"""
import argparse
import numpy as np
import torch
from solver_supervised_ilab import Solver
from utils import str2bool
torch.backends.cudnn.enabled = True
torch.backends.cudnn.benchmark = True
def main(args):
seed = args.seed
torch.manual_seed(seed)
torch.cuda.manual_seed(seed)
np.rand... | [
"andy@ilab34.usc.edu"
] | andy@ilab34.usc.edu |
870491e6e7fdfe32d0764417af358bf3738cdaf5 | d34b9e080458861b0851c402eae49680a43b78fa | /codejam/2018/qualifier/cubic-ufo/cubic-ufo.py | e00a7ef2d4cedd7a7d9b00fce505f7cec5f045cb | [] | no_license | bambielli/jspractice | 92cd3853a45d931cdb6c6178474f62e6eea086a7 | ae1afa37b2e38ad80f0e812ce9f6ab4ea75e8e7e | refs/heads/master | 2021-01-17T06:39:42.655067 | 2019-02-03T20:27:16 | 2019-02-03T20:27:16 | 55,311,945 | 0 | 0 | null | 2017-06-14T04:07:30 | 2016-04-02T19:16:26 | JavaScript | UTF-8 | Python | false | false | 3,093 | py | """
Problem
A mysterious cubic alien ship has appeared in the sky over Toronto! In this problem, Toronto is a plane in three-dimensional space that is parallel to the xz plane at y = -3 km. The alien ship is a solid cube with side length 1 km, centered at (0 km, 0 km, 0 km), with its eight corners at (+/- 0.5 km, +/- 0... | [
"brian.ambielli@gmail.com"
] | brian.ambielli@gmail.com |
a729aa764e5639efa79e31ee6bdf1885b4467c45 | b9d3ec9c6bc976c5a05f4fbd32a56b42ed6db624 | /modules/PaloAltoNetworks/Panorama/Templates/Network_Templates/GlobalProtect/GlobalProtect.py | d2d257dd9c4563888771341f84f56edfcc4f2ac4 | [] | no_license | nachieket/Phantom | 207a07dad5460564f81e0c80d05d575751420b3c | 2bd0cdac563bbe8d7e12b9a801ea2ce0e35cce84 | refs/heads/master | 2022-08-22T03:24:20.894297 | 2020-05-19T12:07:13 | 2020-05-19T12:07:13 | 176,566,019 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | #!/usr/bin/env /Library/Frameworks/Python.framework/Versions/3.6/bin/python3
from .Portals.Portals import GlobalProtectPortal
from .Gateways.Gateways import GlobalProtectGateway
class GlobalProtect(GlobalProtectPortal, GlobalProtectGateway):
"""
GlobalProtect Class
"""
def __init__(self, panorama_ip, api_key):
... | [
"nachiketj@outlook.com"
] | nachiketj@outlook.com |
9f948546652be4760b5d078808483f504f292773 | d1ab86d9a87c0f22a8a266455e130ce41c7bce30 | /codekata/string.py | 329d461f9f5528dd7ebf412dc116fa174b624b09 | [] | no_license | madhankmr/guvi | 0a4cca09aa449d352feedbfc8f2312b2e164de2b | eea3ff1e3f02fe2cd003432417924a9548f12cb9 | refs/heads/master | 2020-06-03T08:24:22.988728 | 2019-07-09T10:32:25 | 2019-07-09T10:32:25 | 191,355,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | S1,S2=input().split()
if (S1>=S2):
print(S1)
else:
print(S2)
| [
"noreply@github.com"
] | noreply@github.com |
cda8f45c33a9727867c324be9b68dea6af8eccae | db3a007479d33725e1944bed3dc78c101c825c1f | /6DoF_CNN/data_preprocessing.py | e21cf85067c1adffe2c316cf0bd4aaf70c21891b | [] | no_license | tse-hou/tomm20_TMIV | 1079d03b2028bab1da44b2ee19a7342b4f730d7d | 9cf28add29828ce5d0dd591295a2247edf621a72 | refs/heads/main | 2023-04-12T00:44:21.906256 | 2021-05-03T06:04:44 | 2021-05-03T06:04:44 | 360,378,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,485 | py | # This script is used to produce traning and testing dataset/label
# training (testing) dataset compose of:
# source view (texture) : 7
# source view (depth) : 7
# orientation diff. (Yaw) : 7
# orientation diff. (Pitch) : 7
# orientation diff. (Row) : 7
# position diff. (x) : 7
# position diff. (y... | [
"zackl852l@gmail.com"
] | zackl852l@gmail.com |
6c8b062cee0cd780d80f6ae73dd3510bd18e1fcc | 6eb097cccbc0e040eb940663f85ce7eacb2be95b | /Desafio061.py | fe389e9b9bf333e9d84a854ccc59923d3a836ef6 | [] | no_license | figueiredorodrigo/Exercicios-Guanabara | c7cdb534b3f7c2db0e2bffc2b4376af035213b3a | 621000882ab3aa080415bb04336fd1713ab85b5d | refs/heads/main | 2023-06-02T07:10:22.555624 | 2021-06-15T16:33:26 | 2021-06-15T16:33:26 | 376,381,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | #Progressão aritmética com comand while
p1 = int(input('Primeeiro termo: '))
rz = int(input('Informe a razão da P.A: '))
tr = p1
cont = 1
while cont <= 10:
print(f' {tr} -> ', end= '')
tr += rz
cont += 1 | [
"noreply@github.com"
] | noreply@github.com |
640d43fb3cede03c64b09ac5e1455b53828ac1db | 94967d680586b2a727fc93483d32d38d1ed5a30f | /wed_test/post/urls.py | 00dd243ffcc7164f0f0987dde8c5b1e74f53ecc1 | [] | no_license | gangbok119/wed_test | 93379695fc62cfd6b6012022a342c9a64adf139f | 08a46402b6d414a29dcd8d321f7ad898bba81b54 | refs/heads/master | 2021-07-13T22:05:14.907466 | 2017-10-18T02:59:02 | 2017-10-18T02:59:02 | 107,340,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | from django.conf.urls import url
from .views import post_list, post_detail, post_create, post_delete
urlpatterns = [
url(r'post/$', post_list, name='post_list'),
url(r'post/(?P<pk>\d+)/$',post_detail, name='post_detail'),
url(r'post/create',post_create,name='post_create'),
url(r'post/delete/(?P<pk>\d+... | [
"gangbok119@gmail.com"
] | gangbok119@gmail.com |
70456061b62a6c44867abca2486de5c1e3cbbd30 | 2316ce8a21d44a5d09284968ef42530633dc10d2 | /sample_code/ep264/rev04/t.py | bb11896bd80b2ae0441665c1f237b272afbbc397 | [] | no_license | AlexanderWinkelmeier/explains | 160de2c41fc5fc0156b482b41f89644dc585c4f3 | d47ec53e384e4303a2d8e71fab9073a1a8d2d6bc | refs/heads/master | 2023-07-30T04:55:31.234482 | 2021-09-15T02:59:42 | 2021-09-15T02:59:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | import os.path
import tempfile
SOME_FILE = 'foo.txt'
fd, temp_path = tempfile.mkstemp(dir=os.path.dirname(SOME_FILE))
try:
with open(fd, 'w') as f:
f.write('these are the new contents\n')
os.replace(temp_path, SOME_FILE)
except BaseException:
os.remove(temp_path)
raise
| [
"int3l@users.noreply.github.com"
] | int3l@users.noreply.github.com |
965f17a1aaf3ff1e2f6716cbbb9d4fe6820df128 | b906e5e26dfd67ce3a2ede2b4ae0163d166c7ff4 | /test/test_systems.py | 3f1d159e20688b7e6058eb1c1ed03bd670dca24c | [] | no_license | DPCN-US/dpcn-config | f7513a68d1e8ca4ad297c5122d4d8da092ec5c96 | 00781f2f89f450da5f06c2b11b739156871dbc53 | refs/heads/master | 2020-12-22T00:08:04.837572 | 2020-01-29T23:48:54 | 2020-01-29T23:48:54 | 236,610,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,297 | py | import json
import os
import unittest
from const import GROUP_CALL, PRIVATE_ID_MAX, PRIVATE_CALL, GROUP_ID_MAX, SYSTEM_DIR, CONTACT_TYPES
from util import gen_id
class TestSystems(unittest.TestCase):
def setUp(self):
self.systems = []
systems = [f for f in os.listdir(SYSTEM_DIR) if os.path.isfil... | [
"p.rosenberg-watt@cablelabs.com"
] | p.rosenberg-watt@cablelabs.com |
5ff54b552765c5b276453da88a68b974732c1129 | 61d6d68f098f9f2f177227ef8e4ab3c526d007a2 | /pony/social/oauth.py | dcf078c899f76e8bb6201bd1d7432e12a385dc2b | [] | no_license | skotcarruth/pony | 4185471222884825e09fa362f98a23735ebde213 | e2ed5690b8ec0642b821492b87d57cfe2a5f8197 | refs/heads/master | 2021-01-25T09:00:17.351117 | 2010-12-05T02:10:32 | 2010-12-05T02:10:32 | 1,038,517 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,873 | py | import json
import oauth2 as oauth
import urllib
import urlparse
from django.conf import settings
class HandlerException(Exception):
pass
class MissingRequestToken(HandlerException):
pass
class MissingAccessToken(HandlerException):
pass
class ServiceError(HandlerException):
pass
class TwitterOAut... | [
"jmschenck@gmail.com"
] | jmschenck@gmail.com |
d87f665c92a1532d0fdb4ce5b3a9363650a05057 | dc828d51874752625cb40466c870a613333dbb73 | /advanced_section/advcbv/basic_app/migrations/0001_initial.py | dbd08956b8c886e11dbebca4767b1399c85cbdf8 | [] | no_license | Pyot/django-udemy | 55c4907f75fa5fb05219880bf59e62ac82a59b6b | 2401a7231c681d33f5fd231392b487e15253e54f | refs/heads/master | 2020-12-30T10:11:47.282402 | 2017-08-22T14:15:24 | 2017-08-22T14:15:24 | 99,236,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,191 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-08-21 13:42
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Crea... | [
"piotr.a.ludwig@gmail.com"
] | piotr.a.ludwig@gmail.com |
47c2380c0dfc291c77d5e3ba1266a146f6eb86eb | 3c4f5b7a01638ba2e7a18567634c5998120354d8 | /source/test_build.py | 03e80315df6080d19501ec82b58974201e7c2320 | [] | no_license | zakf/dehr | d97ebaafa44388cb105b104bd271e1058dea6619 | 18d6bd6b0cb06d4ac02ff21c5ccbfbf5c450b008 | refs/heads/master | 2021-01-20T22:29:34.952985 | 2016-06-23T16:45:35 | 2016-06-23T16:45:35 | 61,582,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,525 | py | # File test_build.py
import unittest
from build import *
class InitialTest(unittest.TestCase):
def test_platform_versions(self):
check_versions()
class AllPageDataTest(unittest.TestCase):
def test_all_page_data_part_init(self):
with self.assertRaisesRegexp(BuildError, 'NEEDS a Boolean'):
... | [
"zakf@mit.edu"
] | zakf@mit.edu |
0457cef64ea7b68406f6e46a7669f6fc1dce58d8 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2518/49823/278350.py | 2cb366ad69dc313778213eda8c71db7c66cfe53f | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | def al(a,b):
l=[]
a=sorted(a)
b=sorted(b)
p,r=0,0
for i in range(len(a)):
while(b[p]<a[i] and p<len(b)-1):
p+=1
if(p==0):
d=abs(b[p]-a[i])
else:
d=min(abs(a[i]-b[p-1]),abs(b[p]-a[i]))
r=max(r,d)
print(r)
if __name__ == '__main_... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
a0f4e9d01aa2e0ae53881a6ab6188054d056db7c | c39b768f9b1d4b63ba90e9d6f5f0f8644ab2cee8 | /problem4.py | b13e27b8f428518a6e5fa16e64c8d2c5559c70ff | [
"MIT"
] | permissive | doubrtom/project-euler-solutions | 9f46c65bb1c2f5571878c43ffdc553ef1364c8ad | 1c6e97d1d519d96419c924150196cbc5d6198547 | refs/heads/master | 2021-09-12T11:07:40.320153 | 2018-04-16T08:29:20 | 2018-04-16T08:29:20 | 113,043,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,570 | py | import time
def is_palindrom(x):
rev_x = int(str(x)[::-1])
return x - rev_x == 0
def find_palindrom_version_a():
"""Find palindrom. Basic version."""
max_palindrome = 0
for a in range(999, 99, -1):
for b in range(999, 99, -1):
mul = a * b
if is_palindrom(mul) and... | [
"doubravskytomas@gmail.com"
] | doubravskytomas@gmail.com |
e75108296d253c026ab723812805fca3e0782f7f | 388edd237d63c25851327d6dbd1b47ade07592f2 | /benchcloud/drivers/dropbox_driver.py | 83aacd177485816763dc93f99a4ac91346790ca1 | [
"Apache-2.0"
] | permissive | zenja/benchmarking-cloud-storage-systems | d63db5d0d6e3746a5ef998755787c87bcdf231ec | d5df1760c66aee2c641af7c777922dff2bb7cbbd | refs/heads/master | 2022-08-21T18:19:53.253620 | 2014-10-12T07:26:17 | 2014-10-12T07:28:01 | 18,504,616 | 2 | 0 | Apache-2.0 | 2022-07-07T22:55:42 | 2014-04-07T02:33:00 | Python | UTF-8 | Python | false | false | 3,602 | py | import dropbox
from driver import Driver
class DropboxDriver(Driver):
def __init__(self):
super(DropboxDriver, self).__init__()
self.app_key = self.parser.get("dropbox", "app_key")
self.app_secret = self.parser.get("dropbox", "app_secret")
def connect(self, include_guest=False):
... | [
"zenja.wang@gmail.com"
] | zenja.wang@gmail.com |
675e01ef775c7565dc433efce7f5f97e1b532ad7 | d5966d109ace494481513304439a0bd738565dc9 | /tornado/test/web_test.py | 137516fb99023461f1167ad5f9d98a13df903e2f | [
"Apache-2.0"
] | permissive | nottombrown/tornado | 33dc9ed845ae9288e2226d06f8a872f4880eb596 | d2b05aea0b68338ab21279ced867cb637df0ffae | refs/heads/master | 2021-01-17T22:04:25.014115 | 2011-08-04T18:08:44 | 2011-08-04T18:08:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,433 | py | from tornado.escape import json_decode, utf8, to_unicode, recursive_unicode, native_str
from tornado.iostream import IOStream
from tornado.template import DictLoader
from tornado.testing import LogTrapTestCase, AsyncHTTPTestCase
from tornado.util import b, bytes_type
from tornado.web import RequestHandler, _O, authenti... | [
"ben@bendarnell.com"
] | ben@bendarnell.com |
abe2ef7281f30eb1f7a5c1cf37d8dbdf6f438ee4 | a0b0eb383ecfeaeed3d2b0271657a0c32472bf8e | /51nod/1124.py | d33a8352381c7a94d03f500bb8556591843573aa | [
"Apache-2.0"
] | permissive | tangjz/acm-icpc | 45764d717611d545976309f10bebf79c81182b57 | f1f3f15f7ed12c0ece39ad0dd044bfe35df9136d | refs/heads/master | 2023-04-07T10:23:07.075717 | 2022-12-24T15:30:19 | 2022-12-26T06:22:53 | 13,367,317 | 53 | 20 | Apache-2.0 | 2022-12-26T06:22:54 | 2013-10-06T18:57:09 | C++ | UTF-8 | Python | false | false | 383 | py | t = int(input())
for tt in range(t) :
n = int(input())
if n == 1 :
print(1)
continue
r, e = 1, 0
while n > 0 :
for i in range(n % 5) :
r = r * (i + 1) % 5
n = n // 5
if n & 1 :
r = 5 - r
e = (e + n) & 3
for i in range(e) :
... | [
"t251346744@gmail.com"
] | t251346744@gmail.com |
d624f0f31475e20cf326c3801557efd950c56e71 | 616af66b01ecf3f605a5b37ccc2551029abce4fd | /env/bin/django-admin | 253eb2edd74a48e005b3fb5d4fbf10e6e16ce1c0 | [] | no_license | akshatconsult/django | 63702391ea9fd7a313d814a9a031fc1525315823 | 92f57a93a9443fd2e5b180e03d0350483cff8106 | refs/heads/main | 2023-08-31T16:53:12.756726 | 2021-08-03T06:56:07 | 2021-08-03T06:56:07 | 391,746,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | #!/Users/dota/Documents/python-training-master/django/env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"87183864+akshatconsult@users.noreply.github.com"
] | 87183864+akshatconsult@users.noreply.github.com | |
8babad0b3861b25d13449ece6a04d57d9d8be14c | e4129c12d4a23759db0f3f0dcf52f837459fdc96 | /Taller.py | 8c99ee21017724369fbd6e6f670fea29f9a24d59 | [] | no_license | ddizoya/taller | f442ffb6727013a7cd47861b67e80c99e90df04a | 9401696b9460278bfb23f004fd709335891ef363 | refs/heads/master | 2020-05-29T11:45:06.842021 | 2016-04-04T20:34:02 | 2016-04-04T20:34:02 | 55,224,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,120 | py | import sqlite3 as dbapi
from gi.repository import Gtk, Gdk
import Generarpdf as pdf
class Taller:
"""
La clase Taller, contiene todos los metodos de consultas a la base de datos,
el treeview, y todos los metodos necesarios para el funcionamiento del programa
Este cursor, genera la tabla en la ... | [
"davidpazolopez@gmail.com"
] | davidpazolopez@gmail.com |
2236a5e5f32a1ba386ed2514c85ada3d8fbcf015 | 4e82810f034d3a9950c10997ba33fddfc06fcc8f | /MyDoom/cfg_generator.py | 18888eb9e6867c7c80263afc548a873fb594ecfd | [] | no_license | henriknero/DV2579_project | bb226e1ae27b9188cae03a4037d42741673719ae | 68883b379c7b33416623fd41d1a38e6e071c0671 | refs/heads/master | 2020-12-03T19:04:48.025224 | 2020-01-07T14:03:53 | 2020-01-07T14:03:53 | 231,441,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | import angr
import logging
logging.getLogger('angr').setLevel('ERROR')
target = 0x004A3DB0
p = angr.Project('strip-girl-2.0bdcom_patches.exe', auto_load_libs=True)
print('Generating CFGEmulated')
cfg = p.analyses.CFGEmulated(keep_state=True)
print('Generating CDG')
cdg = p.analyses.CDG(cfg)
print('Generating DDG')
... | [
"henriknero@gmail.com"
] | henriknero@gmail.com |
53e96ad958d483b7b85fb9c3119b9e98031ef73c | 922b6d67ca8dcc1573bddd0aa7193107f42b6207 | /dms/web/base.py | 4d5a1c7e76049df5a818300081908190a9e6437b | [
"MIT"
] | permissive | zhmsg/dms | 40c91ea3945fd8dfcd0b056f4bcf324774c4e88c | a1ae1430893d9dde8f45bba0e50818f0224fcd8a | refs/heads/master | 2023-09-03T23:00:44.615748 | 2023-08-25T00:13:59 | 2023-08-25T00:13:59 | 42,572,830 | 0 | 2 | MIT | 2022-07-06T19:54:32 | 2015-09-16T07:50:17 | JavaScript | UTF-8 | Python | false | false | 3,419 | py | # !/usr/bin/env python
# coding: utf-8
from flask import Blueprint, g, Response, jsonify, redirect
from flask_login import login_required
import functools
from flask_helper.view import View as OView
from dms.utils.log import getLogger
from dms.utils.manager import Explorer
__author__ = 'zhouhenglc'
class RegisterD... | [
"zhouhenglc@inspur.com"
] | zhouhenglc@inspur.com |
87d5ac6dbfe5558297a98172e06f7a77e461a57f | cb56e1554f43ef93b470019e5a36ddc26680d837 | /DjangoAyushh/first_site/first_site/wsgi.py | 2ae3b1b5a0a4a9042a3af49b19677cd72ff23d53 | [] | no_license | Ayush900/initiating-django | 6790ed4fde82a18af661922a7e3f7165a6d10b98 | ea7a2c3f3467dc92f229468fb3de274e1143a3c8 | refs/heads/master | 2020-07-05T20:52:05.169025 | 2019-08-16T18:14:49 | 2019-08-16T18:14:49 | 202,770,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
WSGI config for first_site 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/dev/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SE... | [
"ayush.mehrotra900@gmail.com"
] | ayush.mehrotra900@gmail.com |
573df83ec52893cb5a1e6a6100cf8d39238f3f64 | b85899190bb2d3cea186547c9b5f6fb0557fa1b0 | /monster.py | e0209ffc62525c32b7877fd44c00a17058849328 | [] | no_license | chansen22/dnd | 0ac80ee5159f3f710033a9e0def3fdff5b017349 | 375f1366b82d8f0825da6e72506da76300da4447 | refs/heads/master | 2021-01-10T19:40:29.544369 | 2012-05-09T04:06:31 | 2012-05-09T04:06:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | class Monster:
def __init__(self, data):
self.monsterId = data[0]
self.monsterType = data[1]
self.monsterHits = data[2]
def display(self):
print("Type:", self.monsterType, "Id:", self.monsterId, "Hits:", self.monsterHits)
def displayId(self):
return self.monsterId
| [
"moosekid5@gmail.com"
] | moosekid5@gmail.com |
5f5ff7ca8f54dedb5109c21d04fda2d9c944d44b | 717e6e71a173c41e6d5ee7f7644a999f68905be1 | /src/dialogue_system/disease_classifier.py | 980adb7b8ba2ef640cf29b283714bd26ea790a1b | [] | no_license | york2210/MedicalChatbot-HRL | 30d2b4ea4731a13f2e883dd1037bc84d6c6ac696 | 73004d3dbda3b9ead972db125fda53a788cf1157 | refs/heads/master | 2022-09-25T02:50:00.385905 | 2020-06-02T08:44:55 | 2020-06-02T08:44:55 | 267,846,504 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,139 | py | import torch
import torch.nn.functional
import os
import numpy as np
from collections import namedtuple
import pickle
import copy
import random
class Model(torch.nn.Module):
"""
DQN model with one fully connected layer, written in pytorch.
"""
def __init__(self, input_size, hidden_size, ou... | [
"lkeb2210@gmail.com"
] | lkeb2210@gmail.com |
3b368f4bde0884863f26ff8302e96f97e0254648 | 5897a1b176f9c404fe421c61342f20820f685c07 | /RIS/OSL/zbrush/normalMap.py | 0d231757d9fd9b6a6e7b2b9114f427cc59a996c7 | [] | no_license | NCCA/Renderman | d3269e0c7b5e58a69d8744051100013339516ad0 | ebf17298e0ee56899a3288a3ff8eb4c4a0f806e8 | refs/heads/master | 2023-06-09T07:51:29.251270 | 2023-05-25T11:13:37 | 2023-05-25T11:13:37 | 51,373,926 | 17 | 11 | null | null | null | null | UTF-8 | Python | false | false | 3,215 | py | #!/usr/bin/python
import prman
# import the python functions
import sys
sys.path.append("../../common")
from functions import drawTeapot
import Obj
from Camera import Camera
from Vec4 import Vec4
from Transformation import *
import random
ri = prman.Ri() # create an instance of the RenderMan interface
filename = ... | [
"jmacey@bournemouth.ac.uk"
] | jmacey@bournemouth.ac.uk |
ffe3990f711621b831344228f34dd8c71b7f39c8 | bc4c1b3388b9bcc7fdab65699c5ae1f6dbc5531f | /jtVAE/molvae/pretrain.py | 8f3e19fc8ffc56b18063dd65cc8948877933ee3a | [
"MIT"
] | permissive | JennyW5/ComparisonsDGM | fd7235fc5a5e49424a3bc39df483fbafa0582d3d | 0a26e9f9d9aba7df0525a22da6eeab376464d19d | refs/heads/master | 2023-01-07T05:00:27.958540 | 2020-09-16T16:14:35 | 2020-09-16T17:15:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,935 | py | import torch
import torch.nn as nn
import torch.optim as optim
import torch.optim.lr_scheduler as lr_scheduler
from torch.utils.data import DataLoader
from torch.autograd import Variable
import math, random, sys
from optparse import OptionParser
from collections import deque
from jtnn import *
import rdkit
lg = rdki... | [
"davider1994@gmail.com"
] | davider1994@gmail.com |
82913e44e04e182fb860e0677d0f68fddef97a1d | a0d6a944cb47024bffe439ad233b1f07cb4830d0 | /main.py | 116384fe249e2c17bfb76f3c0b7a53f728273b7f | [] | no_license | ImtiazVision/Calculator | 3b8e5b4d1844a5889b9d7175a38293438b120b4e | d4570cf121b06ca9a74a1db084b8c4ca43e27bfb | refs/heads/master | 2023-01-24T00:53:21.820121 | 2020-12-06T18:04:58 | 2020-12-06T18:04:58 | 319,098,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | #If the bill was $150.00, split between 5 people, with 12% tip.
#Each person should pay (150.00 / 5) * 1.12 = 33.6
#Round the result to 2 decimal places.
print("Welcome to the tip calculator!")
bill = float(input("What was the total bill? $"))
tip = int(input("How much tip would you like to give? 10, 12, or 15? "))
pe... | [
"ahmedimtiaz.ahmed@gmail.com"
] | ahmedimtiaz.ahmed@gmail.com |
6dd5e90c13cbc8921188a2a55e954bfeb8c45d71 | 21b5ad37b812ed78799d4efc1649579cc83d32fb | /pro/migrations/0007_auto_20200222_1157.py | 4b4329dc3c21c4faddc276aeb4688a4472386e24 | [] | no_license | SaifulAbir/django-js-api | b6f18c319f8109884e71095ad49e08e50485bb25 | fbf174b9cde2e7d25b4898f511df9c6f96d406cf | refs/heads/master | 2023-02-12T16:09:21.508702 | 2021-01-14T09:05:15 | 2021-01-14T09:05:15 | 329,713,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 642 | py | # Generated by Django 3.0.3 on 2020-02-22 11:57
from django.db import migrations, models
import p7.validators
class Migration(migrations.Migration):
dependencies = [
('pro', '0006_merge_20200222_1117'),
]
operations = [
migrations.RenameField(
model_name='professional',
... | [
"rashed@ishraak.com"
] | rashed@ishraak.com |
e7c95327204dbb298ab53f6b4b0716bf482e9e08 | c031e29827db8c9794059a5839ab151959de5bef | /csvreader.py | a1e676678debb7dade709ec8616487aef4247419 | [] | no_license | Sebelino/InstantBoss2 | f97d0f6205f91b1b4c1f4e4b2d25a169c415972f | 0c58cddf8d72defaa29e6f50b5794336838cf49b | refs/heads/master | 2016-09-06T17:51:34.338951 | 2014-11-09T11:41:38 | 2014-11-09T11:41:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,121 | py | #!/bin/python2
import sys,time,thread,os,argparse,select,csv,datetime,re
""" :returns A processed representation of the csv file. """
def readcsv(path):
with open(path,'r') as csvfile:
reader = csv.reader(csvfile)
fmt = "%Y-%m-%dT%H:%M:%S"
totime = lambda t: datetime.datetime.fromtimestamp... | [
"sebelino@hotmail.com"
] | sebelino@hotmail.com |
9cb6004c3307089e00b452b54ce70d0c4b4dbc6f | 2a3a7b50e02677417994b8784e2d21b92acf7ecc | /best-time-to-buy-and-sell-stock/best-time-to-buy-and-sell-stock.py | 921b289eb6205f9dd669ddfcbbaf4e82b0322c1b | [] | no_license | yiswang/LeetCode | 0c263e8b5a22b8542582b48e02eecd77b18bd365 | c349a4da002071d43a4c4230d1ac776289488f0e | refs/heads/master | 2021-01-11T20:20:39.772212 | 2017-03-26T17:16:17 | 2017-03-26T17:16:17 | 78,953,041 | 1 | 0 | null | 2017-01-14T17:25:45 | 2017-01-14T16:51:29 | null | UTF-8 | Python | false | false | 2,200 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
###############################################################################
#
# Author: Yishan Wang <wangys8807@gmail.com>
# File: best-time-to-buy-and-sell-stock.py
# Create Date: 2017-02-06
# Usage: best-time-to-buy-and-sell-stock.py
# Description:
#
# ... | [
"wangys8807@gmail.com"
] | wangys8807@gmail.com |
0663ca2468470dd94deb42af8ca3dab1a2cc3333 | 8e97cb7c8668a9061683ea3ba893dab32029fac9 | /pytorch_toolkit/person_reidentification/data/datamanager.py | 75b80c905990d162e028c8e00d6e2abce522f5de | [
"Apache-2.0"
] | permissive | DmitriySidnev/openvino_training_extensions | e01703bea292f11ffc20d50a1a06f0565059d5c7 | c553a56088f0055baba838b68c9299e19683227e | refs/heads/develop | 2021-06-14T06:32:12.373813 | 2020-05-13T13:25:15 | 2020-05-13T13:25:15 | 180,546,423 | 0 | 1 | Apache-2.0 | 2019-04-15T13:39:48 | 2019-04-10T09:17:55 | Python | UTF-8 | Python | false | false | 5,895 | py | """
MIT License
Copyright (c) 2018 Kaiyang Zhou
Copyright (c) 2019 Intel Corporation
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... | [
"48012821+AlexanderDokuchaev@users.noreply.github.com"
] | 48012821+AlexanderDokuchaev@users.noreply.github.com |
0534417e3ceeed9e4e7b1c8de0b0730066e5cbe3 | a81844069bce15b04bde230c245e1cbd03ceb066 | /remind/TxtConvert.py | 92d60aabba901202a74fd627ab25ddcee2cf773a | [] | no_license | haichaoyuan/python | 612632323af2044414c9261dedc524dcb7c24283 | 030078b187decf36cfce922cd4d829f2f962b06b | refs/heads/master | 2020-12-30T14:20:22.072388 | 2017-08-31T14:56:57 | 2017-08-31T14:56:57 | 91,312,403 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | import codecs # 用于读取文件
import re
# 文件读写,字符串判断存在字符串,截取
file2Read = codecs.open("res/dataForConvert", 'r', 'utf-8')
file2Write = codecs.open("res/dataForConvert2", 'w', 'utf-8')
try:
txts = file2Read.readlines( )
for seg in txts:
seg = seg.replace('\r', '').replace('\n', '').replace('\t', '')
i... | [
"944951213@qq.com"
] | 944951213@qq.com |
f7fd2302cfd2960183ff0937e126697563b69460 | 5292096eb43fd55513c3e834ad491876a1ddddcf | /chapter10/github.py | 4e4f9ed5cf32a88de8ff75ed3c0c529fe4103b23 | [] | no_license | gabearwin/spider | 1c4da0dc0629bd31512de53c00bdf63a77f1fb39 | 94260f03e6fc0c08b5c890ebcf1946e6dbc3b75e | refs/heads/master | 2020-05-03T10:22:39.472486 | 2019-11-07T16:13:40 | 2019-11-07T16:13:40 | 178,577,824 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,359 | py | # -*- coding: UTF-8 -*-
import requests
from lxml import etree
class Login(object):
def __init__(self):
self.headers = {
'Referer': 'https://github.com/',
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safar... | [
"gaxiong@ebay.com"
] | gaxiong@ebay.com |
14b3e84322e0a33ba7d78e86df79a56d7711239c | 56c8655e0d08fec848376b841f655b79765d19e0 | /sample-config/_etc_kangaroo/kangaroo-api-gunicorn.py | b16eae33a455a691f2272bef3de2782ff50e4950 | [] | no_license | nikitamarchenko/kangaroo | 37215109599ba9434ce8a1dca6c746affd5e8733 | 6100dad9757fd64c7f1d5c880982a19979b5e62f | refs/heads/master | 2021-01-10T06:22:19.538758 | 2015-11-09T18:04:44 | 2015-11-09T18:04:44 | 45,856,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | host = '0.0.0.0'
port = '8080'
workers = 1
#worker_class = 'gevent'
bind = "{}:{}".format(host, port)
| [
"nmarchenko@mirantis.com"
] | nmarchenko@mirantis.com |
3959a8164572c0798f563048759f116819dcb744 | f167eb1ea15ffb0f0809fab7e6cd08492c109b32 | /爬虫反爬/7.1.12selenium前进后退.py | 23f1e3fa98b34c0bb727562fe1aed34129ea594f | [] | no_license | miaoJianKang-cyber/2021 | 92ad3846e8a546d096acc50a1ce10897a2b08e2b | 5ece3ecfec5ee0cf814b9c90bec5ac954d7fc580 | refs/heads/master | 2023-03-22T08:38:45.716011 | 2021-03-02T03:41:21 | 2021-03-02T03:41:21 | 341,480,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | # coding:utf-8
import time
from selenium import webdriver
browser = webdriver.Chrome()
browser.get("https://www.zhihu.com")
browser.get("https://www.taobao.com")
browser.get("https://www.python.com")
browser.back()
time.sleep(5)
browser.forward()
browser.close() | [
"miaojiankang"
] | miaojiankang |
fd57ba8957343492c0b209bc9b119fae7100d90b | 6ee9cb1649a50a8877e73fe94d5e05f62cfd941d | /main/settings.py | d1c29127fb6bb698cbea7fce07ce52e9a9fc0381 | [] | no_license | jaechoi15/myapp | 9fd56364cd3082e190c4c62714ee602179294dd7 | af87f597cd39f8f056251a9a25bbcdac17589f07 | refs/heads/master | 2021-04-15T08:03:25.095770 | 2018-03-25T04:48:10 | 2018-03-25T04:48:10 | 126,645,269 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,109 | py | """
Django settings for main project.
Generated by 'django-admin startproject' using Django 1.11.11.
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/
"""
import os
... | [
"jchoi625@gmail.com"
] | jchoi625@gmail.com |
cf1e3075185cefc817f86f6636ba6ca84b9a73ae | 2ff7e53d5e512cd762217ca54317982e07a2bb0c | /eve/devtools/script/behaviortools/clientdebugadaptors.py | 2a22a85a0875ed2b83664cddb9e4a59eb4130b2b | [] | no_license | nanxijw/Clara-Pretty-One-Dick | 66d3d69426642b79e8fd4cc8e0bec23adeeca6d6 | 50de3488a2140343c364efc2615cf6e67f152be0 | refs/heads/master | 2021-01-19T09:25:07.555284 | 2015-02-17T21:49:33 | 2015-02-17T21:49:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,637 | py | #Embedded file name: eve/devtools/script/behaviortools\clientdebugadaptors.py
import logging
from brennivin.messenger import Messenger
import eve.common.script.net.eveMoniker as moniker
from eve.devtools.script.behaviortools.debugwindow import BehaviorDebugWindow
import uthread2
logger = logging.getLogger(__name__)
EVE... | [
"billchang.e@gmail.com"
] | billchang.e@gmail.com |
b456868220f259dd731baa03574cdb1f809808e0 | c446814f3eb63b24b33e0de31a5a401fcc18b771 | /bs_converter/data_converter.py | a5898d2eda2f3869982e9b68d1735a63fb399b9e | [] | no_license | ScriptonBasestar-toolbox/sb-tools-py2 | c7a23215b6a392d0b156965329fa627d01378f03 | ddc2cc6ce0eb34025e1911b66c39a7bd3743f570 | refs/heads/master | 2021-05-27T02:13:55.985419 | 2014-03-13T14:10:41 | 2014-03-13T14:10:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | __author__ = 'archmagece'
def to_number(num_str):
if len(str().strip()) == 0:
return 0
else:
try:
return int(num_str)
except:
try:
return float(num_str)
except:
return None
pass
| [
"archmagece@gmail.com"
] | archmagece@gmail.com |
6383995e35ee51c384da1285d358de91724811e2 | 2432996ac1615cd36d61f0feeff8a359d2b438d8 | /env/lib/python3.8/site-packages/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-rdflib.py | 1ef29499af98b492b37a7bc902fb9532e1abc901 | [
"GPL-1.0-or-later",
"GPL-2.0-or-later",
"GPL-2.0-only",
"Apache-2.0"
] | permissive | Parveshdhull/AutoTyper | dd65d53ece7c13fbc1ead7ce372947483e05e2e3 | 7fabb30e15b770d790b69c2e4eaf9bbf5a4d180c | refs/heads/main | 2023-05-08T14:10:35.404160 | 2023-05-07T20:43:15 | 2023-05-07T20:43:15 | 315,415,751 | 26 | 18 | Apache-2.0 | 2023-05-07T20:43:16 | 2020-11-23T19:13:05 | Python | UTF-8 | Python | false | false | 539 | py | # ------------------------------------------------------------------
# Copyright (c) 2020 PyInstaller Development Team.
#
# This file is distributed under the terms of the GNU General Public
# License (version 2.0 or later).
#
# The full license is available in LICENSE.GPL.txt, distributed with
# this software.
#
# SPD... | [
"parvesh.dhullmonu@gmail.com"
] | parvesh.dhullmonu@gmail.com |
e8c8c284cf95755e802be1ad7317c1c03acd6ab9 | a5ef36079edf4571d954878558f231b624bbc3d8 | /ch5_ifStatements/tryItYourself/2_tryitYourSelf_5-34567.py | 426f6ad394e1d55dd4fc0ccfb04942e6e0240d44 | [] | no_license | kingzLoFitness/pythonCrashCourse | da82817a51103de4f5e9937eea25e8df3adbd7a5 | fb27d31ab3b85e7b727dc17f7ce430f856ddbd79 | refs/heads/main | 2023-05-28T13:52:38.365000 | 2023-03-14T11:59:39 | 2023-03-14T11:59:39 | 116,973,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,075 | py | # Try it YourSelf
'''
5-3. Alien Colors #1: Imagine an alien was just shot down in a game. Create a variable called alien_color and assign it a value of 'green', 'yellow', or 'red'.
- Write an if statement to test whether the alien's color is green. If it is,print a message that the player just earned 5 points.
- W... | [
"kingzlofitness@gmail.com"
] | kingzlofitness@gmail.com |
688a128e075f30a70a6ea08efe7cec90924ed7f7 | 8a42f54d67b564f86c49bedebcda16f9612ef537 | /nycc | 7ff8147f8fbb5e99e78fbc66c6fa9238b73f6130 | [] | no_license | franzbertani/yeelightController | 69c1818e8a4c02423bbae20d9fd0f5b0ae116f17 | a59d8f85bad6e11d57744c4c6beba7fecc5b98ff | refs/heads/master | 2020-03-14T11:36:52.833967 | 2018-06-08T11:51:20 | 2018-06-08T11:51:20 | 131,593,978 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,080 | #!/usr/bin/env python3
import getopt
import json
import os.path
import sys
from os.path import expanduser, dirname
from os import listdir, makedirs
from yeelight import *
def usage():
print("Usage:")
print("-i --init IP_ADDRESS")
print("-c --color HEX_COLOR or -t --temperature COLOR_TEMPERATURE; color s... | [
"franz.bertani@gmail.com"
] | franz.bertani@gmail.com | |
a8530152d2ad2eb77244acfea224f23b463e6157 | 07ecd4aa29475b7fff8249e00666d3bd4474f6fb | /venv/bin/fonttools | 953d52a3f7001fd88c40338e43e81ce0275574ce | [] | no_license | davelab6/overlapping-axis-test | 756d5e2cb40a6a1a01980b1f7e6ccca572ce3c2c | a7564b70e36c97141f3ef896c3412c93b3f406cb | refs/heads/master | 2022-07-18T05:41:29.037691 | 2020-05-21T20:13:25 | 2020-05-21T20:13:25 | 266,013,570 | 1 | 0 | null | 2020-05-22T03:57:53 | 2020-05-22T03:57:52 | null | UTF-8 | Python | false | false | 273 | #!/Users/stephennixon/type-repos/overlapping-axis-test/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from fontTools.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"arrowtypeco@gmail.com"
] | arrowtypeco@gmail.com | |
5fa49bd76440f4bf39b4a40212e258923dd20e15 | 033c99e6c2dfdbb86ad45c156a94b2ac83672174 | /com/maoyan/study/basic/basic5_if.py | b07be7b0823bd1af09e893dca7ab7867e091e9cb | [] | no_license | dlnu123/python_study | 6c326ee57349efd72fd40a46632d1e5ae07d27db | 15b8bbe768a37d7138e210ed95d652fb59345dca | refs/heads/master | 2020-07-08T04:18:08.907097 | 2019-09-26T07:33:10 | 2019-09-26T07:33:10 | 203,562,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | birth = input('birth: ')
if int(birth) < 2000:
print('00前')
else:
print('00后')
height = 1.75
weight = 80.5
bmi = weight / height**2
if bmi < 18.5:
print("过轻")
elif 18.5 <= bmi < 25:
print("正常")
elif bmi >= 25 and bmi < 28:
print("过重")
elif bmi >= 28 and bmi < 32:
print("肥胖")
elif bmi >= 32:
... | [
"wangliang30@maoyan.com"
] | wangliang30@maoyan.com |
4d407f6e2bc77a4f4273d0d427cba9b0bc1a9305 | 565ae0e4b864a79d661c7fa476c9f470b0662f89 | /python/hw10/1000_rolls.py | 4f38e8ebe140705cf4b898c98426afdf7070f9c9 | [] | no_license | chjlarson/Classwork | 4a01e46bd22fb0aee1d58f2132e66d8306ebe39f | 59bef084c0eeb643c24f6b4b2d5b536fdf788cf1 | refs/heads/master | 2021-07-11T22:44:50.048804 | 2017-10-10T20:51:10 | 2017-10-10T20:51:10 | 106,466,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | # Christopher Larson
# CSCI 238 Homework #10, PRoblem #2
# 1000_rolls.[y
# 11/03/13
#
# This program will roll 2 die objects 1000 times and count how any times a sum
# of 2, 3, or 12 is rolled.
import dice
NUM_ROLLS = 1000
def main():
print('This program rolls a pair of dice repeatedly %d times'\
% NUM_R... | [
"chjlarson@gmail.com"
] | chjlarson@gmail.com |
18e808289e997474a40dcc860d3943fab7f4d180 | 4b73f0ac2f227d6b1f4482b381fd725b0b522f9f | /ansible_playbook_wrapper/__init__.py | faf1eee54fcc9868cf1cba6e1f660ea8d418466c | [
"MIT"
] | permissive | succhiello/ansible-playbook-wrapper | c78fe76f9863adb4ff9dedf518dae1b67672dd20 | 6bb7181a30f9818d86b50ce2d916a13c673c0929 | refs/heads/master | 2020-05-20T10:59:16.258976 | 2013-09-01T13:29:46 | 2013-09-01T13:29:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | # -*- coding: utf-8 -*-
from argparse import ArgumentParser
from ansible_playbook_wrapper.command.play import PlayCommand
def main():
parser = ArgumentParser()
sub_parsers = parser.add_subparsers(help='commands')
play_parser = sub_parsers.add_parser('play', help='play playbook')
for arg_info in P... | [
"satoshi_ebihara@xica.net"
] | satoshi_ebihara@xica.net |
e4d908501733dc04ceeb22eb54cc350fb16fdbe7 | 37a6915af48fbd2f00bb61a2445a998bdbba0ba3 | /homework03_B05505004.py | 68cb1d1e1b2b1b85e41a31034654260a0648b986 | [] | no_license | bdalan/ESOE-CS101-2016 | 7e926f7054b59c83af64adb31ed3dc7935ab108a | fcfd9fe3567258aa41d3178dff10679b607fe045 | refs/heads/master | 2021-01-18T05:27:36.595688 | 2017-01-06T19:27:01 | 2017-01-06T19:27:01 | 68,806,006 | 1 | 0 | null | 2016-09-21T10:25:16 | 2016-09-21T10:25:16 | null | UTF-8 | Python | false | false | 4,230 | py | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
# 繳交日期:2016.10.17
# 作業內容:
# 1. 請閱讀 Wikipedia 維基百科 IEEE754 條目 (https://zh.wikipedia.org/wiki/IEEE_754)
# 2. 請試玩 http://armorgames.com/play/17826/logical-element
# 3. 請利用以下空白範本設計一支程式。程式可輸入一段字串,並自動計算出字串中包括空白字元出現的機率。
# 並由高排到低。
from operator import itemgetter #... | [
"james60708@gmail.com"
] | james60708@gmail.com |
bad0141d830a8379daeaf2e3cb693b8206344569 | f539c6b009b9e7964e8cd7b44963afef7b36b2e5 | /scripts/pose_aruco.py | e8378930bbe156d0c2d4ada6bf65384575e65d47 | [] | no_license | danielmessi13/pose_msgs | 8144eaf1c838a3178babd2ddfc8327a38863a7b7 | 990f18a9737e740d13adf6d40f955bac94298724 | refs/heads/master | 2020-08-22T14:16:51.892139 | 2019-10-20T19:12:05 | 2019-10-20T19:12:05 | 216,413,082 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,690 | py | #!/usr/bin/env python3
from pose_msgs.msg import TransformStampedCertainty
import rospy
from std_msgs.msg import Float64
from tf2_msgs.msg import TFMessage
import math
l_pose_x = 0
l_pose_y = 0
pose_x = 0
pose_y = 0
theta = 0
def callback(data):
# print("ID: " + data.transforms[0].child_frame_id)
# print("X... | [
"noreply@github.com"
] | noreply@github.com |
10b3183e7d5be00c176ded1f3607756e2cd3966a | 52fc2d772dd76ea0b727a81b27213bddd4a0efc8 | /forum/settings.py | 0fab39257bf33c0cd99b86311ec8f86cac579112 | [] | no_license | sqab/forum | a149524dc8dc38512bda13398fba45979026154a | d5c3a3e8728170603fd2e93cf6e6a2f10c0f4595 | refs/heads/master | 2020-04-02T00:49:41.980494 | 2018-10-19T18:11:18 | 2018-10-19T18:11:18 | 153,823,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,601 | py | """
Django settings for forum project.
Generated by 'django-admin startproject' using Django 2.1.2.
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
# B... | [
"sqab169@gmail.com"
] | sqab169@gmail.com |
3a024094c06a4a9fd5e957e56d10e8ca361b9331 | d6eb6561c706e374e34f950f7daba24e9cda97bc | /src/cnn_models/models/gan_models/gan_mnist.py | 10b83086ba645901420124b4f998d1fd52634b49 | [] | no_license | filip141/ML_Models | 8c472d0bb0d531b8b9487c8ef5ba08c5358eabe5 | 69527eca80108776341cd6eeffc8f73f0e2970c3 | refs/heads/master | 2021-09-05T09:13:45.645496 | 2018-01-25T23:49:36 | 2018-01-25T23:49:36 | 103,442,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,188 | py | import logging
import numpy as np
from simple_network.models import GANScheme
from simple_network.layers import DeconvolutionLayer, FullyConnectedLayer, ConvolutionalLayer, ReshapeLayer, \
LeakyReluLayer, BatchNormalizationLayer, DropoutLayer, Flatten, TanhLayer, LinearLayer, MiniBatchDiscrimination, \
SpatialD... | [
"filip141@gmail.com"
] | filip141@gmail.com |
e60c607287bab75ad3c8bd40437cacd67838444e | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/streamanalytics/v20200301/input.py | 3a86e730433d5039270923b5be2f82279ac23e72 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 10,175 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | noreply@github.com |
e563ba0992313e308df0576b38087655e601304c | 3a18da31e4870d660dbf18ff6fc56413e5a1239c | /syntaxerror.py | 11a0bcdb9049143d9d8b0e0bb5d7045187e962a4 | [] | no_license | suvarnalaxmi/Industrialtraining_10Aug2021 | 04c5406275759271fd2a211aab232a55d5ade855 | 3ed06f3eaff1d6920c11c4132c052e98c21789f8 | refs/heads/main | 2023-07-28T20:59:29.457329 | 2021-09-15T12:46:38 | 2021-09-15T12:46:38 | 394,552,770 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | #syntax error
a = 10000
try:
if(a > 2000)
print(a,"is greater than 2000")
except:
print("This is syntax error") | [
"suvarnalaxmi25@gmail.com"
] | suvarnalaxmi25@gmail.com |
5a18ee4bd9a21f0a951f474c8837dc8a9b3f6414 | 551d781ca39059a756c85297071413532a31fbb3 | /Basic-IO.py | 50a89c0ba038b7991bd9e46312ec8469d4cf64bb | [] | no_license | VDLE/Test-Location | f9484f10d2041efdf3306c978056e48564a9d47c | 7f62c5338a005acfd6a0316c2dc73b62923152e8 | refs/heads/master | 2020-03-11T23:33:11.902992 | 2018-04-20T07:41:39 | 2018-04-20T07:41:39 | 130,324,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27 | py | import csv
# Connor sucks
| [
"vdacle@gmail.com"
] | vdacle@gmail.com |
4ac21bfa5c8507abc4cb0dd4aba87afea74a988a | 1da112d29c98d7ed16d1eadff407a3801f8e9085 | /modeling/backbone_all/common.py | 3df13a2e92ef75e0eae067c53144d0c43f16087d | [] | no_license | Kelvin-001/Semantic-segmentation | 80529d5167810dcf073f1611cf311a8c61f6d71f | 3a57bb7049ba9a50729f3d3121aa079d2bc2affb | refs/heads/main | 2023-03-22T12:29:51.432593 | 2021-03-17T14:21:11 | 2021-03-17T14:21:11 | 348,682,887 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 19,038 | py | import math
from inspect import isfunction
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.nn import Linear, Conv2d, BatchNorm1d, BatchNorm2d, PReLU, ReLU, Sigmoid, Dropout, MaxPool2d, \
AdaptiveAvgPool2d, Sequential, Module
from collections import namedtuple
class Swish(nn.Module):
... | [
"noreply@github.com"
] | noreply@github.com |
2be17deb37ca708c239c897ac25062d7ce0a84ec | 6960dcdd51b2ff4d0e1ea5e721310b82ec0df3c5 | /DeepBeliefNetwork/settings.py | 9e279ea78c674a685c72d0d0100539904a229be3 | [] | no_license | WalidKhelifa/Deep-belief-network-for-pneumonia-detection | 4f908b11c8fcffbeda6ca0b707f1aef24b9c7488 | 64046cf79c0cec0abb48a7a93d5e42303b5e04ab | refs/heads/master | 2023-01-10T08:07:51.444014 | 2020-11-16T14:34:20 | 2020-11-16T14:34:20 | 313,324,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,334 | py | """
Django settings for DeepBeliefNetwork project.
Generated by 'django-admin startproject' using Django 3.0.8.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
im... | [
"56236244+WalidKhelifa@users.noreply.github.com"
] | 56236244+WalidKhelifa@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.