blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 41 | license_type stringclasses 2
values | repo_name stringlengths 7 96 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 58
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 12.7k 662M ⌀ | star_events_count int64 0 35.5k | fork_events_count int64 0 20.6k | gha_license_id stringclasses 11
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 43
values | src_encoding stringclasses 9
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 5.88M | extension stringclasses 30
values | content stringlengths 7 5.88M | authors listlengths 1 1 | author stringlengths 0 73 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
def552ff40437456847e9a0eed95a3aeaeaacfba | 36cd2d04eafe969726a5db3a6ede37e3bcc3ec61 | /unzip/aws-landing-zone-add-on-config-deployer/lib/params.py | cc8281bb4c70e12b37236a214ead3bef588dc311 | [] | no_license | XHPSi/landing-zone | 48fbe8db39f7850eaa7fc530cfc7f8cd3d37c2f3 | 1687581c9f43eb6f32386836e6407826f95cdca9 | refs/heads/master | 2021-02-05T15:56:09.624317 | 2020-03-02T23:19:37 | 2020-03-02T23:19:37 | 243,799,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,516 | py | from lib.ssm import SSM
from lib.sts import STS
from lib.ec2 import EC2
from lib.kms import KMS
from lib.assume_role_helper import AssumeRole
from lib.helper import sanitize
from os import environ
import random
import string
import time
import inspect
class ParamsHandler(object):
def __init__(self, logger):
... | [
"jan.weitz@devk.de"
] | jan.weitz@devk.de |
2d6a5abed2c76cfec59eb17ce5607c81c9fe669b | 0d22b1231fc1d66b0bcbda463a723dc44e1cd628 | /lesson_002/04_my_family.py | a1e7a012016ba479f00f52bf374c8691a6705209 | [] | no_license | Vladis90/pythonProject | 03133c59a77d2bbf1c20321f19fd8fbd970d4d2c | e3a306034e20fd7985b3e28b951c249306b4f5ee | refs/heads/master | 2023-08-19T19:50:32.046744 | 2021-10-29T16:01:35 | 2021-10-29T16:01:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 944 | py | # -*- coding: utf-8 -*-
# Создайте списки:
# моя семья (минимум 3 элемента, есть еще дедушки и бабушки, если что)
from typing import List, Tuple, Union
my_family = ['father', 'mother', 'son']
# список списков приблизителного роста членов вашей семьи
my_family_height = ['father', 183], ['mother', 165], ['son', 95]
... | [
"aa@gmail.com"
] | aa@gmail.com |
fd3c08bf7ff6f7e08533bb9129c270b01118af5b | 565c69222d1736f98cf83c1a4e2d88416091c0cf | /tests/test_sort_complex_number.py | 1277de1278615bff19345d2f440b4cf6729cf30d | [] | no_license | lnarasim/250_problems | 466e9ac0a8845eb83c275591992552c4c143645e | 561efe86f06aad8b2ce4b7659323be4d730bde3d | refs/heads/master | 2022-11-05T15:24:31.493816 | 2020-06-04T16:56:46 | 2020-06-04T16:56:46 | 264,413,351 | 0 | 1 | null | 2020-06-04T16:56:48 | 2020-05-16T10:33:28 | Python | UTF-8 | Python | false | false | 1,170 | py | from pyproblems.complex_number_sorter import sort_complex_numbers
import pytest
def test_sort_complex_number():
assert sort_complex_numbers(4+5j, 5+8j,3j,4) == (3j, (4+5j), 4, (5+8j))
assert sort_complex_numbers(1,2,4,5) == (1,2,4,5)
assert sort_complex_numbers(1+4j,2j,4.5 + 3j,5j) == (2j,5j,1+4j,4.5+3j)
... | [
"m.jmsudhan@gmail.com"
] | m.jmsudhan@gmail.com |
90c673e500897ed1e29191a096b9044e21532118 | 9af3dc963bf937b9320261eb74874661d97caa40 | /client.py | 8c27c1a8f741c22df535d6072988de2fe2728e63 | [] | no_license | Camp-Butterfly/backendAPI | 85ee68345908dbf199e2b8cc4b476fe49aca7215 | bf9ca3cb687ef050d5dca10a3ec77787bdeb13c2 | refs/heads/locally-working | 2022-12-10T17:12:39.521402 | 2019-12-17T20:36:18 | 2019-12-17T20:36:18 | 228,474,526 | 0 | 0 | null | 2022-12-08T03:19:07 | 2019-12-16T20:57:19 | Python | UTF-8 | Python | false | false | 2,718 | py | from flask import Flask
from flask import request
from flask_cors import CORS
from flask_cors import cross_origin
#from gevent.pywsgi import WSGIServer
import grpc
import numpy as np
import requests
import tensorflow as tf
import os
import base64
import io
import PIL
import json
from tensorflow_serving.apis import pr... | [
"stephenjk@optonline.net"
] | stephenjk@optonline.net |
480042958ddbf7fdce1f8de076f6e2e1849f75b3 | 1280843d603d367e589277fac54f571c0cb3a1e6 | /ML0101_Kmeans_clustering.py | 8aab80792065cd91806ab8813a3d3b4e89c6595d | [] | no_license | m-mgh/Project_DataScience | 8afa6b4fd61959e73a37862ecc927150b95cdabc | d674446d8615c45e309e95ad9e611892ea41ddc3 | refs/heads/master | 2023-01-03T19:07:31.169800 | 2020-10-28T02:18:05 | 2020-10-28T02:18:05 | 280,716,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,262 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Apr 27 23:12:13 2020
@author: Mercedeh_Mgh
"""
import random
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn.cluster import KMeans
from sklearn.datasets.samples_generator import make_blobs
#creating our own random data set
#first we need ... | [
"13066023+m-mgh@users.noreply.github.com"
] | 13066023+m-mgh@users.noreply.github.com |
d8e06bb45fd1f90be90bb45e0c0cc52f227b3187 | 551b75f52d28c0b5c8944d808a361470e2602654 | /huaweicloud-sdk-eps/huaweicloudsdkeps/v1/model/link.py | a9a92750cec83aea4939f5cad6e9fa7a51be5167 | [
"Apache-2.0"
] | permissive | wuchen-huawei/huaweicloud-sdk-python-v3 | 9d6597ce8ab666a9a297b3d936aeb85c55cf5877 | 3683d703f4320edb2b8516f36f16d485cff08fc2 | refs/heads/master | 2023-05-08T21:32:31.920300 | 2021-05-26T08:54:18 | 2021-05-26T08:54:18 | 370,898,764 | 0 | 0 | NOASSERTION | 2021-05-26T03:50:07 | 2021-05-26T03:50:07 | null | UTF-8 | Python | false | false | 3,044 | py | # coding: utf-8
import pprint
import re
import six
class Link:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key i... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
f5a23884d1ffe0ba6d5609805a5f59ad9e44b1d7 | eca7e12e50032db0fe77703449d8ba2247a9a75f | /spliter.py | 8693d1f914405e3b2726ce43c8cb93a360ef39f7 | [] | no_license | doannamthai/cpsc501-machine-learning | d44f563b010e7b54b16b6bffbc895fe094815a67 | 765d2cc7068d1a523a4c4465e878a39d3aad4cf6 | refs/heads/master | 2020-09-21T20:26:11.804869 | 2019-12-07T01:53:53 | 2019-12-07T01:53:53 | 224,916,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | import pandas as pd
import numpy as np
df = pd.read_csv('heart.csv')
msk = np.random.rand(len(df)) <= 0.8
train = df[msk]
test = df[~msk]
train.to_csv('heart_train.csv')
test.to_csv('heart_test.csv') | [
"doannamthai123@gmail.com"
] | doannamthai123@gmail.com |
2e445e4f56c622f6f5d41a6de407c6c9d92f5b20 | 83b8b30ebb633eecd29ca0a7a20cc43a293c9333 | /tests/basics/subclass_native2_list.py | 9ad0b77ef6dd1c7659097492eec0ebb77099b017 | [
"MIT",
"GPL-1.0-or-later"
] | permissive | adafruit/circuitpython | 430ec895149d1eb814b505db39b4977a35ee88a7 | 506dca71b0cbb7af749bb51f86b01021db5483b3 | refs/heads/main | 2023-08-21T16:30:46.781068 | 2023-08-20T00:39:44 | 2023-08-20T00:39:44 | 66,166,069 | 3,806 | 1,560 | MIT | 2023-09-14T19:23:51 | 2016-08-20T20:10:40 | C | UTF-8 | Python | false | false | 587 | py | class Base1:
def __init__(self, *args):
print("Base1.__init__", args)
class Clist1(Base1, list):
pass
a = Clist1()
print(len(a))
# Not compliant - list assignment should happen in list.__init__, which is not called
# because there's Base1.__init__, but we assign in list.__new__
#a = Clist1([1, 2, 3])
... | [
"pfalcon@users.sourceforge.net"
] | pfalcon@users.sourceforge.net |
8b1c1de589cf6f3b813d6b93b2000fe3d8819ce0 | 83dc061068ea8f83038d78178a04268e6b4d0e0d | /app.py | a153a650eb8e76f15b6552d77f4b4b009fe8da78 | [] | no_license | sanghunkang/scenario-autocompletion-service | 20a31c09c01cf8bcd42e8297d238b1afb2c3f157 | 2f42f9d279c15d6a163abeda03e963232b73b5c8 | refs/heads/master | 2023-01-14T17:06:11.497781 | 2019-12-23T14:20:24 | 2019-12-23T14:20:24 | 225,888,979 | 0 | 0 | null | 2023-01-05T03:16:39 | 2019-12-04T14:41:51 | JavaScript | UTF-8 | Python | false | false | 1,132 | py | from flask import Flask
from flask_api import status
from data_saver import save_data
from model_functions import Predictor
from data_management import DataManager
app = Flask(__name__)
# Load all data needed to provide service
predictor = Predictor(model_name=config["dataset_name"]) # TODO: Add env reader
# Rou... | [
"sanghunkang.dev@gmail.com"
] | sanghunkang.dev@gmail.com |
5a66a6cfa1ee27858fb8d075bb59744127503cf4 | a64a465700bbae8443ff3b38c45e6f37b89e2f59 | /overview/admin.py | a3e0735ba663daf92b009f7e9db2c312af3c3c7e | [] | no_license | Bencbabcock/4dafuture-website | 8debcdc8bf9bd8dab7407b976bced1fe7b7213bc | 73206b916699d9a1398e6af95036477c7fdeb236 | refs/heads/main | 2023-03-12T15:35:41.297864 | 2021-03-05T16:00:46 | 2021-03-05T16:00:46 | 344,527,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | from django.contrib import admin
from .models import Announcement
# Register your models here.
admin.site.register(Announcement)
| [
"bencbabcock01"
] | bencbabcock01 |
1943cb6e60e864e2e178eb3f9d8f20d70a05a0e5 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/securitydevops/azure-mgmt-securitydevops/generated_samples/azure_dev_ops_connector_get.py | c2e7527e4a6368c1b2ba061346255a98ba052933 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 1,627 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | noreply@github.com |
027ecc9822a4c10c051d49ba1e8e6de3e57e3d7e | bda338cf60a78da84a617f2b4bcaf34cca43d387 | /app.py | a8dcc9aed87c0a0d80af5f6e5ac6973dd6fae018 | [] | no_license | abitb/snacks-flask | 02189dc36033f8a6a87fd9047ad5c32488485e29 | 32658e63d545f49a0057c567dc98618fa781402f | refs/heads/master | 2021-04-15T17:11:31.860265 | 2018-03-27T03:22:39 | 2018-03-27T03:22:39 | 126,539,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,446 | py | from datetime import date
from flask import Flask, render_template, request, session, redirect, url_for, flash
from config import config
import webservice_client
import model
from forms import *
# Default port is 5000.
app = Flask(__name__)
# Take configuration from config.py.
app.config.from_object(co... | [
"fei.tang.web@gmail.com"
] | fei.tang.web@gmail.com |
33b06f62c68a5ba0684eed829b6c8036fced5339 | 6020d9fca971194717a50eb9d118374a80d3ca1c | /backend/user/urls.py | 9ab95535e219911b09b035de5d5185269d5aa0af | [] | no_license | eve-klopfenstein/krypstock | 8f4a3714adc44eabcf86dcf39862395ddd6a176a | 712e598286a596329f547f0f1ae8c47984f79eaa | refs/heads/main | 2023-04-28T15:48:32.372025 | 2021-04-23T08:49:35 | 2021-04-23T08:49:35 | 367,724,267 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | from django.urls import path
from user.views import MyUserView
urlpatterns = [
path('', MyUserView.as_view()),
] | [
"jumisan134@gmail.com"
] | jumisan134@gmail.com |
66e0564ca35bd073cd0e03d4d4e9c7c945624a01 | fe8aff6f59d7b96c3a78fa9a9f564ff0e0ccc036 | /Turtlebot_ROSSharp/ROS/src/unity_simulation_scene/scripts/odometry_publisher.py | c4dd7d83a2383e2b4e3b50fb67342cfa526f5e05 | [] | no_license | kjwoo31/ROS_unity | b2149539f9e9244be2bade7ab5826ecaa1784a57 | e8348eb1438cfb6d4c7dca6dc3fda6b1ab16e89a | refs/heads/main | 2023-07-10T09:57:20.015121 | 2021-08-19T09:24:14 | 2021-08-19T09:24:14 | 374,883,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 942 | py | #!/usr/bin/env python
import rospy
# Because of transformations
import tf_conversions
import tf2_ros
import geometry_msgs.msg
def publish_odom_frame(msg):
br = tf2_ros.TransformBroadcaster()
t = geometry_msgs.msg.TransformStamped()
t.header.stamp = rospy.Time.now()
t.header.frame_id = "odom"
t.... | [
"kjwoo31@postech.ac.kr"
] | kjwoo31@postech.ac.kr |
26e2176af4f3535cb88f8d4a8b4e890c0adf5c2a | 883c09284c28311371561b7b14a0494396d010a8 | /symkala_env/lib/python2.7/site-packages/tinys3/util.py | 3c95a282f80031d25c511eab72b12f45f73ab7fe | [
"Apache-2.0"
] | permissive | bopopescu/symkalaResearch | dd2e5c799aed2bef89c213fac9a84b7858b68ed4 | 5c2bc918f8f4598ed92e0ba482a77acca25ba3ba | refs/heads/master | 2022-09-30T15:18:58.028066 | 2019-12-03T00:17:30 | 2019-12-03T00:17:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,825 | py | import os
class LenWrapperStream(object):
"""
A simple class to wrap a stream and provide length capability
for streams like cStringIO
We do it because requests will try to fallback to chuncked transfer if
it can't extract the len attribute of the object it gets, and S3 doesn't
support chu... | [
"will@tulcolabs.com"
] | will@tulcolabs.com |
157e2681aa253486361337452c0f4aea6ef2ef86 | 4e3442af8867f09a16fe56b4523ddb5b068604e3 | /core/main.py | 98e24622fe1e1af62ff15a30302f52bdf0a9d46a | [
"MIT"
] | permissive | RakeshRam/service_mesh_poc | 58aca17318fb703bbb16aabe038cb98e57b0bed5 | 7285edba96e28b109d032641ece7bdd099184066 | refs/heads/main | 2023-04-07T01:06:53.323634 | 2021-04-24T15:48:18 | 2021-04-24T15:48:18 | 338,132,198 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,025 | py | import os
import sys
import random
import logging
import requests
from flask import Flask, request, render_template, jsonify, abort
from flask_cors import CORS
app = Flask(__name__, instance_relative_config=True)
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
app.config["SQLALCHEMY_DATABASE_URI"] = 'mysql://roo... | [
"rakesh.ram.ar@gmail.com"
] | rakesh.ram.ar@gmail.com |
f0923ac629aee511e023158bffcd945b408a625c | 04737b18f760915ea7753d45582b23d8cf39faac | /main.py | 9f0cff55fe96fb62359b5bbfa52cf2b70ecd612e | [] | no_license | Orange-Cake/Yandex | 81454cad98eb8e9f3c63b54033cf8c60693806eb | 8644b180a295dca22f3e6b0f0ee2710fa1217d98 | refs/heads/main | 2023-02-13T18:59:21.607287 | 2021-01-06T18:59:16 | 2021-01-06T18:59:16 | 327,401,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,257 | py | import sys
from PyQt5.QtWidgets import QWidget, QApplication, QPushButton
from PyQt5.QtGui import QPainter, QColor, QImage
from random import randint
class Example(QWidget):
def __init__(self):
super().__init__()
self.initUI()
def initUI(self):
self.resize(500, 500)
... | [
"noreply@github.com"
] | noreply@github.com |
34a1e201add585aa04483afc9282d5dd3ebcab53 | 60d5ea4f007d49768d250ef394003f554003e4d0 | /python/Linked List/148.Sort List.py | df0485a4e3990534fe5b2bb38f8196871282c2ac | [] | no_license | EvanJamesMG/Leetcode | dd7771beb119ea1250dbb3b147a09053298cd63b | fa638c7fda3802e9f4e0751a2c4c084edf09a441 | refs/heads/master | 2021-01-10T17:11:10.896393 | 2017-12-01T16:04:44 | 2017-12-01T16:04:44 | 46,968,756 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,437 | py | # coding=utf-8
'''
Sort a linked list in O(n log n) time using constant space complexity.
'''
# Definition for singly-linked list.
class ListNode(object):
def __init__(self, x):
self.val = x
self.next = None
'''
归并排序,最佳时间复杂度O(n log n) 最坏的时间复杂度O(n log n)
由于题目对时间复杂度和空间复杂度要求比较高,所以查看了各种解法,最好的解法就是归并排序,... | [
"Evan123mg@gmail.com"
] | Evan123mg@gmail.com |
23080bb922bfbab575f93190df5d6d3d056bfdf9 | a8790cc9fba25aa587bc1f11638917252acae49f | /RDS/layer3_central_services/research_manager/src/lib/EnumStatus.py | bf43573c3f417a3f140d9939be40ee3594794f32 | [
"MIT"
] | permissive | Sciebo-RDS/Sciebo-RDS | e4aa96cfbf93f6601272c5ff0ce38ff19c750393 | dea6b22e8fe0fe26a40b1ac158a40f5650c5a232 | refs/heads/develop | 2023-08-31T04:13:17.611973 | 2023-08-18T16:00:13 | 2023-08-18T16:00:13 | 221,629,298 | 14 | 8 | MIT | 2023-09-12T13:08:40 | 2019-11-14T06:38:51 | Python | UTF-8 | Python | false | false | 545 | py | from enum import Enum, auto
class Status(Enum):
"""
The order represents the workflow through the states. So the successor of each status is the next in line.
"""
CREATED = auto()
WORK = auto()
DONE = auto()
DELETED = auto()
def succ(self):
if self.hasNext():
retu... | [
"peter.heiss@uni-muenster.de"
] | peter.heiss@uni-muenster.de |
33edbe9b248dcf9ef45e2ae90adb5d10ee394dee | 76ae437d71e9bb3bf428d3e474dcd01cfa4309aa | /bme280.py | bdf409ce837d1ba56a52846c346f2e41b68c03f2 | [] | no_license | HaiQ31/Gartenhaus | df8a07fb50d87f59dfadfaeb3a23972ed1e562fd | 73abf8b813b12b772137fa032afd6b04599bf611 | refs/heads/master | 2020-03-17T21:38:55.825491 | 2018-07-20T15:46:21 | 2018-07-20T15:46:21 | 133,967,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,066 | py | #!/usr/bin/python
#--------------------------------------
# ___ ___ _ ____
# / _ \/ _ \(_) __/__ __ __
# / , _/ ___/ /\ \/ _ \/ // /
# /_/|_/_/ /_/___/ .__/\_, /
# /_/ /___/
#
# bme280.py
# Read data from a digital pressure sensor.
#
# Official datasheet available from :
# https:... | [
"noreply@github.com"
] | noreply@github.com |
2a2f3078f350a78d7f5ac02b2f4aff19d0095d41 | 38d9ac28d08b796fe8725e0f532cc326038ff562 | /venv/Scripts/pip3.6-script.py | b53249424812d97c603150bed5859402e9c26399 | [] | no_license | jgmanzanas/Prueba | fb3a68119a5dd38568310022de16dcb59080e381 | 2f6fc02dcc5368da64d6c7e9ee0c6e0e5b93bcf1 | refs/heads/master | 2020-03-07T07:22:43.172787 | 2018-03-29T21:09:26 | 2018-03-29T21:09:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | #!C:\Users\SrMan\PycharmProjects\Prueba\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.1','console_scripts','pip3.6'
__requires__ = 'pip==9.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0... | [
"jgmanzanas@visiotechsecurity.com"
] | jgmanzanas@visiotechsecurity.com |
15a2a90627d1501751f45454be341a000e2d5b91 | d7fe81d21b46706b427ba38def6d0f4d6dbbfc2a | /sample_code/node-test/node-test.py | 59420d6d5c3ec4acc9312ca2f1524d5e4b5e39a6 | [
"BSD-2-Clause"
] | permissive | pibara-utopian/asyncsteem | c9e7dc8272dace8a87c3dc99a78c44246da0d8d5 | c6a2c1ef7bcf15cf4a15bb7f2152dca506d26935 | refs/heads/master | 2021-05-10T19:31:09.173699 | 2020-05-29T13:03:13 | 2020-05-29T13:03:13 | 118,157,494 | 8 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,086 | py | #!/usr/bin/python
import sys
import json
import socket
from twisted.internet import reactor
from twisted.logger import Logger, textFileLogObserver
from asyncsteem import RpcClient
def process_account_info(event,client):
obj = json.loads(event[0]["json_metadata"])
candidates = []
for rep in obj["report"]:
... | [
"pibara@gmail.com"
] | pibara@gmail.com |
fd394c02d2b2cee07e518e829a25fca4ea11bebb | 39ac12bf42f5137562ed12f63fc3c4ff455501cc | /python-advanced/Shallow-deep-copying/shallow-deep-copy.py | de69542e4b605e0b3fc2d52d3ff8e0ff43d8309a | [] | no_license | tiwariutkarsh422/python-advanced | f4f545bac120e143c8f77d566bcda13065c36085 | 1567a727deb561a2a7446550dd619718ad5b779f | refs/heads/master | 2022-10-31T22:53:53.667154 | 2020-06-04T13:47:34 | 2020-06-04T13:47:34 | 267,061,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,602 | py | import copy
original_list = [2, 4 ,['ada lovelace'], 1965, [7,8,9], [11, 12, 13]]
''' Shallow copies can be created using factory function such as list(), dict() etc.
However shallow copies only create references to the child object present in the original lists.'''
shallow_copy_list = list(original_list)
print... | [
"noreply@github.com"
] | noreply@github.com |
6ed42cb0f9267d97d80c1b28fb1c9290a328327e | 09379dea7ec9f69ee34dab2c4e5f906d636848a2 | /GV_Catalogue_Gen.py | 76c08f706e665e5da58268bfa58cc5609a793bd4 | [
"MIT"
] | permissive | TheMonitorBeep/STADS---Star-Matching | 619f3dac073542536d28494bb0dcd2a224d7dd43 | 0a96885a168b8de86eb4f51ba401980969023452 | refs/heads/master | 2022-03-17T05:20:19.202165 | 2019-12-10T16:00:39 | 2019-12-10T16:00:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,694 | py | import numpy as np
import pandas as pd
import time, gc
pi = np.pi
cos = np.cos
sin = np.sin
acos = np.arccos
degrees = np.degrees
radians = np.radians
def angularDistance(row, col_names):
'''
Computes the angular distance (in degrees) between two points on the celestial
sphere with a given right-ascen... | [
"noreply@github.com"
] | noreply@github.com |
04e940e749fb6dd0721f27b24375989edc516388 | ed2dd2354d56c986857e1331fd9efce1fafa53e2 | /pat1106.py | ecf1c6f39248d5b92269bb1b34d27f18161990d8 | [] | no_license | aceDwill/PAT | f10f3bdb87ad01a6bc30582376a43a59cb5720f8 | 6c54630cd0f32cc9680c87debc5ff2de418c9a9b | refs/heads/master | 2021-01-01T18:40:30.578907 | 2018-11-26T06:55:40 | 2018-11-26T06:55:40 | 98,403,099 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 709 | py | """
思路:具体见pat1090
注:测试点2,3,5,6,7运行超时
"""
origin = input().split()
N = int(origin[0])
price = float(origin[1])
rate = float(origin[2]) / 100
tree = []
for i in range(N):
child = [int(x) for x in input().split()]
tree.append(child[1:])
min_depth = 100000
num = 0
def dfs(root, depth):
global min... | [
"uestcldl@gmail.com"
] | uestcldl@gmail.com |
3ecf9b834c4eb9b27f4030875f86d478ca91f7a7 | f8dd1dfb0f81de16b9c8f681c85c6995b63ce037 | /tensorflow/contrib/estimator/__init__.py | 6b9f9575b606f1822d760e8597c55994dd8af04c | [
"Apache-2.0"
] | permissive | DandelionCN/tensorflow | 74688926778ae06da1f406967baf6b251b3f3c4e | 1712002ad02f044f7569224bf465e0ea00e6a6c4 | refs/heads/master | 2020-03-06T19:10:37.847848 | 2018-03-27T17:11:49 | 2018-03-27T17:11:49 | 127,022,134 | 1 | 0 | Apache-2.0 | 2018-03-27T17:24:51 | 2018-03-27T17:24:51 | null | UTF-8 | Python | false | false | 2,130 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
f25ef6a9d029c2611592714256c32d631ad3e526 | bd48e5dc2c52a3d942b7b10f5bfd4f7563b8ed9a | /Python Essentials/Laura's solutions/String.py | 73c08430d2aff9da1b480a5794f1be97d96b5b72 | [] | no_license | yawwusugh/Enthought-Training-on-Demand | da8ea3d9339fc14c1e0dd7517702f47d3f20e95b | a19609d96efeb7efd2fe732ff91cf84bf741890a | refs/heads/master | 2022-11-16T08:24:08.644608 | 2015-06-29T20:18:59 | 2015-06-29T20:18:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | fst_name = 'Laura'
last_name = "Moretti"
h = "Hello"
print (h + " " + fst_name + " " + last_name)
number = len(h) + 1 + len(fst_name) + 1 + len(last_name)
print "="*number | [
"senne027@umn.edu"
] | senne027@umn.edu |
8fe0d5d5df785b0103ed4d20d458b03dd04298c1 | 3f80e93acf60049087a27bd7de80fbaca57a605d | /setup.py | d55b768d9a95e6b0950e9a235e111e7af91e16dc | [
"MIT"
] | permissive | prompteus/style-transfer | f66d8782be3c36280837c8ab5131d8c06e3e7a79 | 9ff06fd7a17494ac51a5d2ce238e164558985952 | refs/heads/main | 2023-06-28T00:06:48.090767 | 2021-07-30T12:28:43 | 2021-07-30T12:28:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | from setuptools import setup, find_packages
setup(
package_dir={'': 'src'},
packages=find_packages(where='src'),
)
| [
"makadlcik@gmail.com"
] | makadlcik@gmail.com |
0fe6b1643589f8e1b07a45256b6936a9e6d92168 | 73575daf314262e354b5839610fb59bbd922d229 | /projects/07/virtual_machine_part_1/write_file.py | 3ab9f7ebbd22d33e7e5d399f2ad4fa0ba72e281a | [] | no_license | hoosierEE/nand2tetris | d3a58cd2de441afc611bb8d9a641b970b0a2b415 | 5ca1ad8af654151bc5120890c6c78b62999c1d9f | refs/heads/master | 2023-03-15T23:31:39.546974 | 2015-10-09T21:42:17 | 2015-10-09T21:42:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | # import file parsing function
from parser import parse
def write_file(vmCode, filename):
# parses file and converts virtual machine to assembly
outputFilename = filename.replace('.vm', '.asm')
# write assembly to file
f = open(outputFilename, 'w')
f.write('\n'.join(vmCode))
f.close() | [
"richardartoul@gmail.com"
] | richardartoul@gmail.com |
0508b18ea031c12502a6dff30485a63fa71a0660 | d17a8870ff8ac77b82d0d37e20c85b23aa29ca74 | /lite/tests/unittest_py/pass/common/test_conv_scale_fuse_pass_base.py | a071233f2ff5d5725c9fc9aede18f373c5baff9c | [
"Apache-2.0"
] | permissive | PaddlePaddle/Paddle-Lite | 4ab49144073451d38da6f085a8c56822caecd5b2 | e241420f813bd91f5164f0d9ee0bc44166c0a172 | refs/heads/develop | 2023-09-02T05:28:14.017104 | 2023-09-01T10:32:39 | 2023-09-01T10:32:39 | 104,208,128 | 2,545 | 1,041 | Apache-2.0 | 2023-09-12T06:46:10 | 2017-09-20T11:41:42 | C++ | UTF-8 | Python | false | false | 3,376 | py | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"noreply@github.com"
] | noreply@github.com |
6f5f7cf02c38f40c6146cd65d7c587a38aa251a3 | 30f84b4fbd7832f9c8b1221b9b542dec65bcabb8 | /main.py | 07c1475887041bd64f226387b835ece61a2e88d0 | [] | no_license | egdw/crawler_weehui | 8c7235d0a4d3c8c77b1571c4f4d839f46298009e | b41bf28db10791b9d8132d49c8af51b8fbaff17b | refs/heads/master | 2020-03-27T05:50:59.460177 | 2018-08-25T07:21:40 | 2018-08-25T07:21:40 | 146,056,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,945 | py | import requests
import re
from bs4 import BeautifulSoup
import os
# 全局session
rq = requests.Session()
# 文章id
cartoon_id = None
# 登录
def login(username, password, cartoonUrl):
pattern = re.compile(r'[a-z 0-9]{32}')
id = pattern.search(cartoonUrl)
if id:
global cartoon_id
cartoon_id = id.gr... | [
"378759617@qq.com"
] | 378759617@qq.com |
859ea5495b24a8f17514422448cf086173fb93fa | 4ad464e04cb6d78d68ef79ebbfe7c848bee84248 | /setup.py | 8212e7ecbb5b6076215ad7cefeb8ac0ce45c1540 | [] | no_license | fpbattaglia/data_navigator | deecb2ea9f3ea2a23cde8f22ca40d95cc8bb036a | 9b2f4b0348bf589295e6dcace6fd5f76d15c47fa | refs/heads/master | 2020-05-04T23:15:10.978972 | 2019-04-10T16:28:31 | 2019-04-10T16:28:31 | 179,537,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | from setuptools import setup
setup(
name='data_navigator',
version='0.1',
packages=['data_navigator'],
url='https://www.github.com/fpbattaglia/data_navigator',
license='GPLv3',
author='Francesco Battaglia ',
author_email='fpbattaglia@gmail.com',
description='Basic data navigation facili... | [
"fpbattaglia@gmail.com"
] | fpbattaglia@gmail.com |
5b956d94c1dd1ae6bc83a24c5571ebfeaddcdeba | 0f1f580f7e0a68abe1a261b696206f5a1a723c45 | /Week 1/grok/samples/1b/20.visualising fits image.py | 02e914a010983d89dc2bd740fe19254420b059f2 | [
"MIT"
] | permissive | Alfiesan/Assignments-Data-Driven-Astronomy-from-University-of-sydney-on-coursera- | 0e5489a33c65f20870d3e5c28044eaacd4d4c403 | 58fab1c413d7ad5693b1d63f14be05b0f5ec448c | refs/heads/master | 2022-04-10T20:31:38.007417 | 2019-02-05T00:40:43 | 2019-02-05T00:40:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | from astropy.io import fits
import matplotlib.pyplot as plt
x = fits.open('image0.fits')
data = x[0].data
# Plot the 2D array
plt.imshow(data, cmap=plt.cm.viridis)
plt.xlabel('x-pixels (RA)')
plt.ylabel('y-pixels (Dec)')
plt.colorbar()
plt.show() | [
"noreply@github.com"
] | noreply@github.com |
fec483ec7ffc645dc6d83b08f1f7592805d9a5fc | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /Jx4mjwEoFdfYuF9ky_10.py | a723d6a308abbe962a25372403471fc9bbe9f518 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | """
Write a function that takes an integer and:
* If the number is a multiple of 3, return `"Hello"`.
* If the number is a multiple of 5, return `"World"`.
* If the number is a multiple of both 3 and 5, return `"Hello World"`.
### Examples
hello_world(3) ➞ "Hello"
hello_world(5) ➞ "World"
... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
da389f031fcf53136f23f5f78a7381189e3a6ea4 | 92c281a941fd1727723de9e086de29488a11a2bd | /CreateRatesInExcel.py | 2d7f973fd3c6b2d571339a1c6a627933ad20ad12 | [] | no_license | gtohill/MSOffice | 39c822434c4a0eb57780aada79c1d52540f58946 | 48b99e5717670d2084f019ae45fbe1502b05ef34 | refs/heads/master | 2021-07-09T01:35:20.022863 | 2019-02-04T15:00:57 | 2019-02-04T15:00:57 | 164,893,466 | 0 | 1 | null | 2020-07-23T08:26:45 | 2019-01-09T15:58:48 | Python | UTF-8 | Python | false | false | 1,529 | py | import names
from openpyxl import Workbook
from msxlsxparsing.Node import *
import random
def createExcelSpreadSheet():
wb = Workbook()
# grab the active worksheet
ws = wb.active
# Data can be assigned directly to cells
'''
ws['A1'] = 'Company'
ws['B1'] = '1 year'
ws['C1'] = '2 year'... | [
"Gt153328@"
] | Gt153328@ |
07d2f150b748c87902b6120e6bda4b00867f5af6 | ca554bba8b2796ef8863e79ac9db692f506dc85a | /src/pnl/__init__.py | 2be16fa8603fc1e712204627bceec6b195eef9ea | [] | no_license | gregasmaximus/pnl | 40cae446bf790ed39ead795758f11e7181553dde | 058fb0f13a3d0cc5821a264816c5a69705b4a9d7 | refs/heads/master | 2022-07-20T09:38:21.558882 | 2020-05-18T14:45:58 | 2020-05-18T14:45:58 | 262,369,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18 | py | from .pnl import * | [
"gregasmaximus@gmail.com"
] | gregasmaximus@gmail.com |
9094e4d07aed08c64e5414f70929e4734ab6bfb8 | 6864b1f7480d81328b3f4d7a837fca44ca86947b | /kNN-MapReduce-Journal-2014/perf2-noconflit/script/A3-pgbj-loadbalancing.py | 26e4ab00c86ce12007c977978cb6eb365e4f949b | [] | no_license | lea92/knn-MapReduce | f3ec5e6f971c729d1fb0ec4b42251c407e80fc44 | 9c824aa973809b803f9adb425ac80d1d2f7081e9 | refs/heads/master | 2021-08-28T15:01:59.305003 | 2017-12-12T14:20:00 | 2017-12-12T14:20:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,138 | py | #!/usr/bin/python
from pylab import *
from readfile import *
from mycolor import *
CPT=0
CPT_S=1
CPT_R=2
TIME=3
rc('font', size=26)
rc('legend', fontsize=21)
#-------------------------------------------------------------------------------
mark =['d','v','o','^','>','h','s','p','*','+']
colors = ['red','green','blue',... | [
"fabrice.huet@gmail.com"
] | fabrice.huet@gmail.com |
a182bb0f67bd066ba32c09ab3fab8ceb823c6aff | b35643fad3490b2b0f3ae69da035aa5da771a6b2 | /pages/urls.py | 7b806b7e5a94317792f561634c7dbf4d04e19c9e | [] | no_license | joohongkim1/Django | 78034abf83a59f0374785c6ab4258a994e31375b | 793b3ed82b6525f089fd065ea13a39a865ad7388 | refs/heads/master | 2020-07-23T23:59:41.586587 | 2019-09-11T06:56:51 | 2019-09-11T06:56:51 | 207,744,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | from django.urls import path
from . import views # 현재 디렉토리에서부터 views 를 가져옴
# domain.com/pages/____
urlpatterns = [
path('greeting/<str:name>/', views.greeting),
path('', views.index),
]
| [
"wnghd9938@naver.com"
] | wnghd9938@naver.com |
5f8c96a265627cec49242877fb003b478ceee9d7 | d1d6f64055caecf7b2833eb055d2c5b0dbe1ba9d | /src/leilao/principal.py | 39a1ac64a8bdef08b2befcda2194c76cdc168ae8 | [] | no_license | RodolfoSouza96/Leilao | 74154f69e1cea0cea6430526ae60aecd31ef7eee | 414d0c57aedd9098912365c7e0b45353c87b36b8 | refs/heads/master | 2023-09-03T22:32:50.315246 | 2021-11-08T20:28:26 | 2021-11-08T20:28:26 | 425,984,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | from dominio import Usuario, Lance, Leilao, Avaliador
gui = Usuario('Gui')
yuri = Usuario('Yuri')
lance_do_yuri = Lance(yuri, 100.0)
lance_do_gui = Lance(gui, 150.0)
leilao = Leilao('Celular')
leilao.lances.append(lance_do_yuri)
leilao.lances.append(lance_do_gui)
for lance in leilao.lances:
print(f'O usuario {... | [
"rodolfo.ls1996@outlook.com"
] | rodolfo.ls1996@outlook.com |
cb4da288a2ec492bb5cbfe83995a1a4b91336e75 | 94824c3e6d12ace4c88125930cc3539b718d2fa2 | /primes.py | ce47f52f30bb57b07e55bd4cc8dcefed4a9fbc92 | [] | no_license | ctwtruscottwatters/primes | 9bf832a9e2c8f8d06041f64343c5048d15ccf2a8 | 4c082b05246367328244be0c4b40df48e3d7ea43 | refs/heads/main | 2023-08-14T17:10:01.579213 | 2021-09-24T22:13:22 | 2021-09-24T22:13:22 | 410,114,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,685 | py | #!/usr/bin/python
# From my Python lectures. Trying to get a bit more practical by transfering from C/C++ to Python even to compile to an .EXE PORTABLE EXECUTABLE FORMAT BINARY
# Eager to learn pywin32 API, really drill down desktop GUI development and the real ins and outs of the Python standard library
# as well as ... | [
"noreply@github.com"
] | noreply@github.com |
d35bd9c2c278422fd660e3847b92ab37e1b9496e | 1b7530b4548a6d025cf250aa353ffd9fa75e44a5 | /main.py | 2884bf74ee7c5bc3552aeb21cc365aa084bae70c | [] | no_license | ReinieRSrtiboS/snake-master | 9c630838b962c50fb2f554070ff1e823f0b5dc71 | 5c7d0ce496ea91e0c29329fa9029b7073f0da368 | refs/heads/master | 2021-09-05T18:38:48.354701 | 2018-01-30T09:46:17 | 2018-01-30T09:46:17 | 117,999,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,204 | py | from tkinter import *
import time
from snake import Snake
from board import Board
root = None
canvas = None
scale = None
canvas_width = 800
canvas_height = 800
tics_per_second = 250
""" BEGIN GAME SETTINGS """
# Board width and height
board_width = 15
board_height = 15
# Maximum number of food blocks on the board
... | [
"r.h.stribos@student.utwente.nl"
] | r.h.stribos@student.utwente.nl |
4d1e52f60ebc4c8d4a60d85a6e0d46289da1a4c4 | f176975a314b6f8f4c7b931c6057caf20988d12d | /problems/uri_2448_postman/uri_2448_postman.py | dbf9f4c68510cb044c5e4c8853107f7c203b51a4 | [] | no_license | fgmacedo/problems_ads | 4b3226307e66a37fd1848dcc25f3fa6c78567d98 | d510a9f8788f99c2559efddd54235cb3a134989a | refs/heads/main | 2023-05-20T03:29:57.814018 | 2021-06-15T01:54:56 | 2021-06-15T01:54:56 | 352,163,858 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | #!/usr/bin/env python3
import sys
rl = sys.stdin.readline
rl() # discart n, m info
houses = {x: idx for idx, x in enumerate(rl().split())}
cum_time = 0
current_house_index = 0
for order in rl().split():
order_house_index = houses[order]
cum_time = cum_time + abs(order_house_index - current_house_index)
c... | [
"fgmacedo@gmail.com"
] | fgmacedo@gmail.com |
54d230e035660f1c04dc37607042960a7e45f3ef | 77175384fe787daf8b0c90ce4fdc4a42c528910b | /statistics/separatePreSex.py | 42d8ac5e9160e2e3ad0c41a1b2ac3d84ff2f35ae | [] | no_license | FloreU/MobileData | 837683b29180c14c464523b37da50a39744afbee | 7ab2709ff3506d5da7df1829f35a836bd30d6fed | refs/heads/master | 2021-01-19T21:40:59.102450 | 2018-01-03T04:41:16 | 2018-01-03T04:41:16 | 88,687,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 814 | py | # -*- coding: UTF-8 -*-
# 将性别总表分割成性别预分割表
import arcpy
import sys
from statistics import separate
reload(sys)
sys.setdefaultencoding('utf-8')
table_name = "GRID_SEX"
pre_table_name = [table_name + "_0_10",
table_name + "_11_20",
table_name + "_21_30"]
time_range_list = [["2016-06-01"... | [
"wangshulingxiao@163.com"
] | wangshulingxiao@163.com |
66c4b75268efaf39bcd2cb3ab76830c23863246a | df7267a5200400c18dd35d358d33fffcaf6d4623 | /crime_term_project/data.py | 5f8cf89870ada5695f33e660c733332c004ce5c5 | [
"MIT"
] | permissive | gSuranjan/eece2300_termproject | f4f3bf0ec07eba899b758b4989d95f39b4e8b3e6 | a4631409bbda347fbbc867f35059908ed558ec08 | refs/heads/master | 2020-04-02T03:10:19.305237 | 2018-10-20T13:05:25 | 2018-10-20T13:05:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,570 | py |
"""
Module for data handling. Specifically, Crime Dataset.
"""
import pandas as pd
import numpy as np
def load_data(filename):
"""
Function to load data and attribute
:param filename: raw data
:return: creates dataframe from raw data
"""
df = pd.read_csv(filename, header=None)
return (... | [
"cardelle.c@husky.neu.edu"
] | cardelle.c@husky.neu.edu |
110d8236d06e04f87bbdde93efe2a53ff6c8bc7d | 132bd3619b2ddd2fed5ffd96c63acba4c431b82d | /light-communication-signaling/src/utils/dtw.py | ead589a6b7b0536485c86e1f0cc74a13f2374203 | [] | no_license | TUM-cm/iPresence | 56927e326c2f8c6a15878bc11289613ea81f3ecc | 23bde5449817d2fb846f0e3ffe8ad1de28aeab68 | refs/heads/master | 2022-09-19T02:51:03.775798 | 2020-06-05T14:35:23 | 2020-06-05T14:35:23 | 267,056,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,046 | py | from __future__ import division
import numpy
import rpy2.robjects.numpy2ri
rpy2.robjects.numpy2ri.activate()
from rpy2.robjects import r
from rpy2.robjects.packages import importr
'''
To use external R packages in Conda you will install these packages in Conda.
If you install them from R you can't use them. To install... | [
"haus@in.tum.de"
] | haus@in.tum.de |
7f6b9f5f0f268f913fed26fad0d7a716a96b9d2b | 0dc66a62fcb12d393c2dc832c87baf184439017f | /skews/x5_5_extract_fig.py | 062e53b4c945dfc1ea4cfaef9434e762f5d344cd | [
"MIT"
] | permissive | Conxz/brainskew | bccd1863bf2ae2e08679f1ca41a91031c83ccff3 | 5b7ec6642f3f7440f201c3ac2005733e56cc0d71 | refs/heads/main | 2023-04-28T22:03:06.674219 | 2021-05-09T08:46:40 | 2021-05-09T08:46:40 | 365,706,284 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,902 | py |
import os
from glob import glob
import numpy as np
sidListFile = '../doc/sidList.txt'
sidList = [sid.strip() for sid in open(sidListFile)]
niiDir = '/data/clusterfs/lag/users/xiakon/torque/dat'
niiFileName = 'T1/T1_brain_to_MNIsymm_dof9.nii.gz'
outDir = '/data/clusterfs/lag/users/xiakon/torque/dat'
z_slice = 73
z_v... | [
"bnucon@gmail.com"
] | bnucon@gmail.com |
3b8c37a8c630f9d66a9ad1fb72a9cf67136da6b6 | 3371510b9bfb3afb15f0e0855cda1ad49eb1dd67 | /URI-ES/MATEMÁTICAS/1193 - Base Conversion.py | 91566b2e0f0037da89559a15de3b751f45d4d466 | [] | no_license | felipesdias/Extractor-URI-Online-Judge | 30d031dbf8d55b62a83124e7b20d121ff98fee92 | 74717bd2e51939e7be67b552802b1a1b9612849e | refs/heads/master | 2021-08-17T08:20:54.696524 | 2017-11-21T00:23:33 | 2017-11-21T00:23:33 | 111,474,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 707 | py | # Autor: Felipe Souza Dias <felipe.s.dias@outlook.com>
# Nome: Base Conversion
# Nível: %d
# Categoria: MATEMÁTICAS
# URL: https://www.urionlinejudge.com.br/judge/es/problems/view/1193
n = int(input())
case = 1
while n:
numero, tipo = input().split(' ')
print("Case {0}:".format(case))
if(tipo... | [
"felipe@dinnisoft.com.br"
] | felipe@dinnisoft.com.br |
5a1f74ad3676d0f2a76bd6d1585b841542c8d2f3 | 352373d78a863a9566b21c61e08a0b92fc3f37b8 | /Segundo proyecto/holaMundo/__init__.py | a70ae121e83b5cbccfa4d16335a5585e49a38f49 | [] | no_license | Unainigo/eclipsePortafolio | fd7af2efd44895b51847392a6971462b7424fdec | 64f87c3ec40838f4610d38d7e9193fe03d15f936 | refs/heads/master | 2023-04-14T03:56:13.662153 | 2021-04-22T22:30:26 | 2021-04-22T22:30:26 | 360,691,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82 | py | print("este es un proyecto para probar a subir dos proyectos diferentes a github") | [
"unainigo1@gmail.com"
] | unainigo1@gmail.com |
3f09cad1ee5ac1ecec7a509039e62e427a824490 | 388a76cc54c2e818298d58245cc47543d0e747ed | /wav2bin/src/draw_graph.py | 13803de7a48c625befc94c94760b5b370249dc8e | [
"MIT"
] | permissive | jvanderen1/WAV2BIN | f297884d8781dacda2fecf8356fba4281d6a0df2 | 84b60a984b66cc05c8811e799fffc7aa97ceb1a9 | refs/heads/master | 2021-09-08T01:54:58.069932 | 2018-03-05T17:46:38 | 2018-03-05T17:46:38 | 105,501,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,971 | py | import matplotlib
matplotlib.use('TkAgg')
from matplotlib import pyplot as plt
from matplotlib.backends.backend_pdf import PdfPages
import numpy as np
import scipy.signal
import warnings
from collections import OrderedDict
warnings.simplefilter('ignore', np.RankWarning) # Turns off warning for large polynomial deg... | [
"livetoscout@gmail.com"
] | livetoscout@gmail.com |
4e45a26e2453afb3dbb3328c6abf244953d7639c | e78d40f4a522dd11f631326002b2f4d417cc1ef0 | /neuro.py | 5c00ad01dcfae486e9f2b02c5828f4aa6dc74ebb | [
"MIT"
] | permissive | ParaDogs/predicting-coronawaves | 2fe7cc05f906b99392cc802ea3222e33f4097ad3 | 8db622dbd5c5f7c40e922bbae089639b42104d99 | refs/heads/master | 2022-04-16T12:13:52.059133 | 2020-04-19T13:16:29 | 2020-04-19T13:16:29 | 257,003,203 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,091 | py | import numpy as np
import scipy.special as sci
class NeuralNetwork:
def __init__(self, input_nodes, hidden_nodes, output_nodes, learning_rate):
# количество входных, скрытых, выходных узлов
self.inodes = input_nodes
self.hnodes = hidden_nodes
self.onodes = output_nodes
# коэффициент обучения
s... | [
"noreply@github.com"
] | noreply@github.com |
5e28b92bfbaa311a1a87374710b57a049c0ee5d1 | 9bb55f7bd1415f1840a4d380bb6d84447f1bae2f | /Aufgabe 2.9.1 copy.py | bb43354f312e2d5d3787d882636cd799c7f16a02 | [] | no_license | CodingPippo/TigerJython-Gturtle | 620f093178116501c986d698bab5d2082eed4547 | 603a41daeadf1f571363beb3d5876449232ec2fd | refs/heads/main | 2023-01-30T12:29:36.390433 | 2020-12-08T19:32:18 | 2020-12-08T19:32:18 | 319,739,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | """FigA ist eine last line recursion, da sie erst in der letzten zeile wieder aufgerufen wird.
FigB ist eine first line recursion, da sie schon auf der ersten zeile aufgerufen wird.
zudem fängt FigA innen an und ist spiegelverkehrt zu FigB"""
from gturtle import *
def figA(s):
if s > 200:
return
forwa... | [
"noreply@github.com"
] | noreply@github.com |
33176477beb2b5e2706c7d4663e92bbe43f7fe7a | 5bb1addbd71a7ea2d4c7e157cc49632e45fbe4dc | /django_test1/blog/admin.py | f544e1fa05702f804996d7f3b00d4427b9565406 | [] | no_license | KVVaisakh/django_test | 646c96e7692acea77c68cc0f9c0711f878b67b9b | b4665d71985cc9bf215a990801b01d65c4ca7984 | refs/heads/master | 2020-03-19T15:56:38.142012 | 2018-06-09T10:59:45 | 2018-06-09T10:59:45 | 136,692,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | from __future__ import unicode_literals
from django.contrib import admin
# Register your models here.
from .models import Post
admin.site.register(Post)
| [
"root@11CPU0274L.amritavidya.edu"
] | root@11CPU0274L.amritavidya.edu |
d9c4bcb42f64d9a0e02dffb96098a43012fe89b8 | 2f5010d8e459d05d8b299eb9d986067ceb1d2b04 | /utils/vect2d.py | 5c52dbfb6f2a246f916fcc572be1b8eae7be7800 | [] | no_license | santids/advgame | 68f1bd52669c4c6d42df5815b3ab7e331a1d1eb1 | 114db10c3b12acc69fc34b1fa4c1b577eabcfe6b | refs/heads/master | 2020-04-06T04:05:01.101285 | 2017-06-20T04:41:56 | 2017-06-20T04:41:56 | 83,057,081 | 1 | 0 | null | 2017-06-20T04:51:31 | 2017-02-24T15:47:32 | Python | UTF-8 | Python | false | false | 1,093 | py | #Common 2d vector function apply to tupples
from math import sqrt
class Vect:
def __init__((x,y)):
self.x = x
self.y = y
def tple(self):
"""Return a tuple representing the vect"""
return (self.x,self.y)
def suma(p1,p2):
"""Suma de dos vectores p1 y p2"""
if type(p1... | [
"santids97@gmail.com"
] | santids97@gmail.com |
6e85a5c512217490a88a8e92c2dbb8c7a4f6a8f0 | 4ae4f1957e34e42b63c913d6f824a6a2d3846ebf | /src/yunta/models.py | 4515d7c42616dd57f41fdd41623643e0dfbb91c9 | [] | no_license | pynef/yunta | a0f2a924b128600b20bc43541c005703f17b5063 | 6b571f3c1692a4bf85a8016c977c02d291782199 | refs/heads/master | 2022-12-03T03:52:18.777552 | 2019-12-13T20:35:08 | 2019-12-13T20:35:08 | 227,558,368 | 0 | 0 | null | 2022-11-22T04:54:43 | 2019-12-12T08:36:05 | JavaScript | UTF-8 | Python | false | false | 5,926 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from django.contrib.auth.models import User
from django.db import models
from .choices import TIPO_FRECUENCIA, GENERO_CHOICES
def generar_ruta_imagen(instance, filename):
return os.path.join("Profile", filename)
class Usuario(models.Model):
user = mode... | [
"nefinef@gmail.com"
] | nefinef@gmail.com |
3aa4f597847a981fc4c28f61c442c768e551b919 | 2d3aba0bf1d3a5e018ded78218859b31dd0930dd | /3.문자열/str_to_int.py | 253d92331801b779fa6170d23a73a965f2dfaee0 | [] | no_license | CS-for-non-CS/Data-Structure | 7018203de7d14a0be7da2308963082b93fac8e21 | efce4c13578bd3d143aa570e9317c505b6424c40 | refs/heads/master | 2022-12-17T14:04:05.521164 | 2020-09-21T02:18:24 | 2020-09-21T02:18:24 | 297,205,549 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 400 | py |
str1 = "123"
str2 = "12.3"
print(int(str1),type(int(str1))) # 123
print(float(str2),type(float(str2))) # 12.3
str3 = "1+2"
print(str3)
print(repr(str3))
print(eval(str3))
print(eval(repr(str3)))
print(eval(eval(repr(str3))))
num1 = 123
num2 = 12.3
print(str(num1),type(str(num1)))
print(repr(num1),type(... | [
"onsy2788@gmail.com"
] | onsy2788@gmail.com |
93fbe2030f9680ec93f24a90c8369df453beb9e8 | 4492bf5e04ada88ff8a230236ad424a3a2099660 | /buttonwood/MarketObjects/Events/OrderEvents.py | 76e29911334860534d6a3a6c94409d2c131733a0 | [
"MIT"
] | permissive | denhartog/Buttonwood | 135def28fd86be054cbec1fc464c01a0ef5cd193 | 478408d064246de990a4a51a0d407ab31c5b6c6b | refs/heads/master | 2022-04-06T18:53:25.050288 | 2020-02-20T21:42:44 | 2020-02-20T21:42:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,463 | py | """
This file is part of Buttonwood.
Buttonwood is a python software package created to help quickly create, (re)build, or
analyze markets, market structures, and market participants.
MIT License
Copyright (c) 2016-2019 Peter F. Nabicht
Permission is hereby granted, free of charge, to any person obtaining a copy
... | [
"nabicht@gmail.com"
] | nabicht@gmail.com |
fc7fd4340228c0eb18ca72833e39c6bde03e87cf | 174c6b81276e8816a2035a571bc1e15250a89f85 | /blog/views.py | ea02957b380323fa4bb353a63954aeb9367a133d | [] | no_license | Vanyali/personalportfolio | 36799bbd5c6e3719d6e9262c209ee2f5a0dd9cbb | ffcd25afd5989aaf58265beacfd6e22b57a3d035 | refs/heads/master | 2020-03-25T23:48:50.450996 | 2018-08-10T14:03:12 | 2018-08-10T14:03:12 | 144,294,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | from django.shortcuts import render, get_object_or_404
from .models import Blog
# Create your views here.
def allblogs(request):
blogs = Blog.objects
return render(request, 'blog/allblogs.html', {'blogs':blogs})
def detail(request, blog_id):
detailblog = get_object_or_404(Blog, pk=blog_id)
return rend... | [
"mouramachado64@gmail.com"
] | mouramachado64@gmail.com |
fac70365a8f81a9aa5b55a9cd5d7d9b6467d9779 | 70d7e6f3f08b4928d7b69148996550dc93c2423c | /2016/apr/code/distribution.py | 425881e0ecc966f0fc7ec109402e04e5d43b5126 | [] | no_license | pythonnortheast/slides | 5078145dcd670896b394c758ec21cd66084375ee | 076fd70462560e58a43e0db1577a1ca179dc5893 | refs/heads/master | 2021-06-05T01:44:31.627884 | 2017-12-19T08:59:29 | 2017-12-19T08:59:29 | 5,814,944 | 3 | 4 | null | 2017-12-19T08:59:30 | 2012-09-14T21:21:46 | Jupyter Notebook | UTF-8 | Python | false | false | 1,109 | py | #!/usr/bin/env python
"""
Visualisation - distribution.
"""
import pandas
import seaborn
seaborn.set_style("whitegrid")
seaborn.set_context("paper")
# read data from a CSV file
data = pandas.read_csv("january_2016.csv", skiprows=2, thousands=",")
# replace spaces in column names with underscores
data.columns = data... | [
"momat@blaszak"
] | momat@blaszak |
bc650166674848aae2e76eed7a9ef526e9a008f4 | c906e707a68c4314a8fd65321cef494b52cb3b8b | /2018/day2/PuzzleD2P2.py | 66d7db9dc30b81d564eb34eab30012d9f84f4d6d | [] | no_license | vladimir-ionita/AdventOfCode | 6306aedf2fec17a181d441e0490b8da10b1469eb | 3d825436f012c342034b5273e407ba0af5447fe3 | refs/heads/master | 2020-04-10T10:29:48.457561 | 2018-12-10T06:57:50 | 2018-12-10T06:57:50 | 160,324,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 952 | py | from utilities import FileUtilities
def get_difference(word_a, word_b):
difference = 0
for c in range(len(word_a)):
difference += 1 if word_a[c] != word_b[c] else 0
return difference
def get_similar_words(words):
for word_index_a in range(len(words)):
for word_index_b in range(word_i... | [
"ionita.vladimir@gmail.com"
] | ionita.vladimir@gmail.com |
4ffe88ba899c6533dbf898c44501f57ee3a17dcc | 714b28c006b3c60aa87714f8777a37486b94e995 | /accounts/migrations/0006_auto_20210522_1401.py | 992a110f8f0095db91399a635e9b3b4465af91f9 | [] | no_license | kyrios213/django_tutorial | 3f0bdce5c0e5faa4f7e08a238ac6d77bba35c92e | 771d209c4b198df9361254deefd1c9a49c4a0746 | refs/heads/main | 2023-04-25T23:11:06.356823 | 2021-05-30T05:31:32 | 2021-05-30T05:31:32 | 368,026,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | # Generated by Django 3.2.3 on 2021-05-22 06:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0005_auto_20210519_1035'),
]
operations = [
migrations.AddField(
model_name='order',
name='note',
... | [
"kyrios213@gmail.com"
] | kyrios213@gmail.com |
16a18aa3c5735f7fbeb02b8769f5d1279b47ec27 | 42e386e873fa0669bfb6dd05a71e0847dceacf4d | /tasks/color_constancy_multi/test.py | 3ae7c974d526170cf0e1e3e1b29c37c73fbbcea2 | [] | no_license | YiKeYaTu/Experiments | 93869acc312f9d88aa4fb188b28f7e8a8ff7d25f | 45b694b78a57f5b9ad81d66ee52178b7e26853dc | refs/heads/main | 2023-03-19T23:58:18.919005 | 2021-03-09T06:11:22 | 2021-03-09T06:11:22 | 307,280,892 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,271 | py |
from dataloaders.multi_color_constancy.ImageNet import ImageNet
from models.multi_color_constancy.StackedNCRF import StackedNCRF
from torch.utils.data import DataLoader
from constant import DEVICE, TMP_ROOT
from utils.StatisticalValue import StatisticalValue
from loss_functions.multi_angular_loss import multi_angular_... | [
"liangchen005005@163.com"
] | liangchen005005@163.com |
afe2e3497fcf2748a39df150b3000ee0cd199b92 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/documentdb/v20210301preview/get_sql_resource_sql_stored_procedure.py | ad0982c8a942b15814d0f916e6958ee808ba44f3 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,150 | 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 |
52bd7c4c86d98ce1b576f8ff77c0c657aedad1ad | a61caaadd55502c044d5719f0ac8f24d6ebed0a8 | /CollisionTypes/GameSetup.py | 6d8b6798698546aad8a866fdb06c5cdcea3bdb8f | [] | no_license | IcecreaO-omnfire/CollisionTypes | 454ef278d87ea2183f55dfba04e51f7b615fee8c | 5f58cb9d3e24a8459278d45de40eecc2be991fa7 | refs/heads/master | 2023-07-22T01:50:58.790937 | 2021-08-29T14:37:04 | 2021-08-29T14:37:04 | 401,060,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,771 | py | import GlobalVariables
import CharacterCollisionNode
class GameSetup():
def __init__(self):
self.customcollisions={}
self.game=GlobalVariables.ShowBase()
self.game.cTrav=GlobalVariables.CollisionTraverser()
self.queuegame=GlobalVariables.CollisionHandlerQueue()
taskMgr.doMeth... | [
"mseirpaspastry@gmail.com"
] | mseirpaspastry@gmail.com |
d615b760898802dc9155d05c5fee311838b3ece0 | 485be21ebe0a956b7f4a681968e160a463903ecc | /KnowledgedRank/BoePRFReranker.py | 59319910dfd622e0a334dfd716a1ba920c9b8fb2 | [] | no_license | xiongchenyan/cxPyLib | e49da79345006d75a4261a8bbd4cc9a7f730fad2 | 8d87f5a872458d56276a2a2b0533170ede4d5851 | refs/heads/master | 2021-01-10T20:43:20.147286 | 2016-01-14T04:02:45 | 2016-01-14T04:02:45 | 17,610,431 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,418 | py | '''
Created on Dec 7, 2015 7:24:56 PM
@author: cx
what I do:
I rerank doc in the BOE space
with simple PRF re-ranking
what's my input:
doc with hEntity
what's my output:
evaluation results
'''
import site
site.addsitedir('/bos/usr0/cx/PyCode/cxPyLib')
from cxBase.base import cxBaseC
from cxBase.Con... | [
"xiongchenyan@gmail.com"
] | xiongchenyan@gmail.com |
11d1d4f7de37fdfe1f4084bddb41715fac9c2fe2 | 48877f86e02cdd90deb7d44f2309037e5427f76a | /nerd2.py | e7820b7302c1c93292208e21c82798396f98363d | [] | no_license | pinetree408/apss | 46ec76cb5faa21236c610bdb83906aee6ca53750 | 6e12cce0b58cd6091daeae57dc930d121b9e9416 | refs/heads/master | 2021-07-14T14:43:45.179885 | 2020-06-08T07:35:09 | 2020-06-08T07:35:09 | 164,045,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,083 | py | import collections
def is_dominated(x, y, coords):
idx = 0
sorted_coords = collections.OrderedDict(sorted(coords.items()))
for i, key in enumerate(sorted_coords.keys()):
idx = i
if key > x:
break
if len(sorted_coords.keys()) == 0 or idx == len(sorted_coords.keys())-1:
... | [
"pinetree408@gmail.com"
] | pinetree408@gmail.com |
590397fe9381bcf57530d1bb9e192b13de61ebd2 | 3abff95fb50ecacf0c68d2f2a60890f4d3d5f50e | /build-c-ext.py | 313ae53c37cea0edcecc423e44931ffe98cd1d97 | [
"MIT"
] | permissive | orende/intro-till-python | bc8587fef11313f3d38fa4cc0f010c03ef836832 | d2fccc7aaeabf88d6b040b7e199326a748dee0fa | refs/heads/master | 2021-01-10T05:58:03.984026 | 2015-11-23T08:02:46 | 2015-11-23T08:02:46 | 45,859,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | from shell import shell
cmd1 = 'gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c spammodule.c -o spammodule.o'
result1 = shell(cmd1)
if result1.code != 0:
print result1.errors()
cmd2 = 'gcc -shared spammodule.o -L/usr/local/lib -o spammodule.so'
result2 = shell(cmd2)
if result2.code... | [
"1337decker@gmail.com"
] | 1337decker@gmail.com |
e8973cda288820446681e4f974d0c59e7a39bf3f | 7e6d3c6669181fd9314b051cad9a38781fb935a5 | /chapter3/3_5.py | 10c1a2b3da7400e3193e11ec1b72aacb44fb44e3 | [] | no_license | YMilton/data_mining | 1d3e6bcf1a0c73a4ece80651d82e06d001311c6d | 35e6890c222d8db2bcf4155daceba4efe21cd8f0 | refs/heads/master | 2020-04-11T23:04:00.120679 | 2019-04-03T13:23:34 | 2019-04-03T13:23:34 | 161,468,283 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,387 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
def LDA(positive, negative):
'''
Linear Discriminant Analysis, 线性判别分析
J = w.T*Sb*w/w.T*Sw*w
Sb = (mu0-mu1)*(mu0-mu1).T
Sw = sigma0+sigma1
w = Sw-1(mu0 - mu1)
:return:
'''
# the mean of positive and negative
m... | [
"278251850@qq.com"
] | 278251850@qq.com |
ec0e013992f3a32768a38fca75858408bb77e362 | 3c5ffbe12bda41cd96025ba4667f2236ec585751 | /05/fashion_masks.py | c1b1cf08631339764912cadaab92d001076a9d52 | [] | no_license | ericlief/deep-learning | 7a9fd64ac22cbc082290ba303db300756299c7d6 | 24fc0d2d5b0fe00baa5ea66f37e3a7f80faab198 | refs/heads/master | 2020-03-08T08:32:47.079825 | 2018-07-08T10:09:42 | 2018-07-08T10:09:42 | 128,024,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,817 | py | #!/usr/bin/env python3
#Team: Felipe Vianna and Yuu Sakagushi
# Felipe Vianna: 72ef319b-1ef9-11e8-9de3-00505601122b
# Yuu Sakagushi: d9fbf49b-1c71-11e8-9de3-00505601122b
import numpy as np
import tensorflow as tf
class Dataset:
def __init__(self, filename, shuffle_batches = True):
data = np.load(filenam... | [
"ericlief@bossa"
] | ericlief@bossa |
decc0276a133d3ca4d2bfdc0f34fc1ff7ee92055 | a1730de4b50c17ecd388a995a1526c2eab80cb7d | /Plugins/Aspose-Cells-Java-for-Python/setup.py | 49e93716140f94069b1d526135d2a7a8348415f5 | [
"MIT"
] | permissive | aspose-cells/Aspose.Cells-for-Java | 2dcba41fc99b0f4b3c089f2ff1a3bcd32591eea1 | 42d501da827058d07df7399ae104bb2eb88929c3 | refs/heads/master | 2023-09-04T21:35:15.198721 | 2023-08-10T09:26:41 | 2023-08-10T09:26:41 | 2,849,714 | 133 | 89 | MIT | 2023-03-07T09:39:29 | 2011-11-25T13:16:33 | Java | UTF-8 | Python | false | false | 705 | py | __author__ = 'fahadadeel'
from setuptools import setup, find_packages
setup(
name = 'aspose-cells-java-for-python',
packages = find_packages(),
version = '1.0',
description = 'Aspose.cells Java for Python is a project that demonstrates / provides the Aspose.Cells for Java API usage examples in Python.... | [
"fahadadeel@gmail.com"
] | fahadadeel@gmail.com |
9a497a06ee18928dfc7bc17f59d25523f920e47e | 671067c93d251635ed1360936c7ec84a59ece10c | /doublecop.py | 419ad0c817fd5955ddadc9233606416bb494dcd7 | [
"BSD-2-Clause"
] | permissive | nd1511/ccw_tutorial_theano | 48773052ec99da95aa50300399c943834ca29435 | f92aa8edbb567c9ac09149a382858f841a4a7749 | refs/heads/master | 2020-04-03T13:10:35.753232 | 2017-02-01T21:54:14 | 2017-02-01T21:54:14 | 155,276,374 | 1 | 0 | BSD-2-Clause | 2018-10-29T20:25:01 | 2018-10-29T20:25:01 | null | UTF-8 | Python | false | false | 577 | py | from theano import Apply
from theano.gof import COp
from theano.tensor import as_tensor_variable
class DoubleCOp(COp):
__props__ = ()
def __init__(self):
COp.__init__(self, ["doublecop.c"],
"APPLY_SPECIFIC(doublecop)")
def make_node(self, x):
x = as_tensor_variable(x)... | [
"abergeron@gmail.com"
] | abergeron@gmail.com |
fb6487f6c0dde6e50b419b0a00ed08704ef76d23 | c74ef12fa57c54de1ccfa4a63e91069aca5a245c | /mysite/polls/migrations/0001_initial.py | d04e17a799718a92ee9150db1a5d77117090b733 | [] | no_license | alex-mark/django-polls | c21ffcc4100c510d9bfb88edeae836f7a9a732c1 | cae1a456e9bb2d97a8a92b94783b02c33ef10173 | refs/heads/master | 2023-05-02T20:06:43.382588 | 2020-05-08T17:32:11 | 2020-05-08T17:32:11 | 184,925,766 | 0 | 0 | null | 2023-04-21T20:33:19 | 2019-05-04T17:35:26 | Python | UTF-8 | Python | false | false | 3,735 | py | # Generated by Django 2.2 on 2019-05-10 12:12
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth'... | [
"alexndr86@gmail.com"
] | alexndr86@gmail.com |
583582288cc22190bd1acb06dfb58b86cd717ddc | b1b4a323fd0c22a55c1ce88317a26041d37ec2cf | /w2/d5_stats_and_prob/test/.ipynb_checkpoints/question_01-checkpoint.py | c824e685054be622153266722c3148e68b3b80c3 | [] | no_license | LilaKelland/data_bootcamp | 5ee5cbadc879c30e8d70c9c923abbd4ffb2bbcb0 | 86cd887f940310589b76d7df74631ac96e26e29b | refs/heads/master | 2023-09-02T13:55:54.794979 | 2021-11-18T19:56:05 | 2021-11-18T19:56:05 | 406,582,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | """
Create a function that returns the mean of all digits.
Example:
mean(42) ➞ 3.0
mean(12345) ➞ 3.0
mean(666) ➞ 6.0
Notes:
- Function should always return float
"""
def mean(digits):
str_digits = str(digits)
split_digits = []
for dgt in str_digits:
int_dgt = int(dgt)
s... | [
"lila.kelland@gmail.com"
] | lila.kelland@gmail.com |
e758759b714c65ed9bcc448e5fe5615004c2826b | 336d52bb53eb24d09e8433018525fa54aa7f1592 | /Agents/Actor_Critic_Agents/DDPG.py | ad6aa0593f8c9d0c9925aaa9282afb929428cf7d | [] | no_license | crashmatt/Deep-Reinforcement-Learning-Algorithms-with-PyTorch | 8a1901344df0fc499731515cbd53670c77c9c677 | 9c487dc51a483d2130cb9bb2a4d771f9748949cb | refs/heads/master | 2020-05-16T06:20:14.048294 | 2019-04-22T16:38:02 | 2019-04-22T16:38:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,653 | py | import copy
import torch
import torch.nn.functional as functional
from nn_builder.pytorch.NN import NN
from torch import optim
from Base_Agent import Base_Agent
from Replay_Buffer import Replay_Buffer
from Utilities.OU_Noise import OU_Noise
class DDPG(Base_Agent):
"""A DDPG Agent"""
agent_name = "DDPG"
de... | [
"p.christodoulou2@gmail.com"
] | p.christodoulou2@gmail.com |
0980ec9b29cae8ca8eb4d166d4157dbe4b3c392b | 4ce5022078c53b3bd75493b12a38237618b52fc8 | /prodsys/migrations/0068_job_number_of_events.py | c18fcdcbc318a34d2627aee7d52bbe11aa900c43 | [] | no_license | virthead/COMPASS-ProdSys | 90180e32c3a23d9fd05b252a6f8ded234525a780 | 6dfaa3e9ca40845282d3004ac61f386db5abdbe9 | refs/heads/master | 2023-02-23T18:16:02.789709 | 2022-09-28T09:37:59 | 2022-09-28T09:37:59 | 144,685,667 | 0 | 1 | null | 2018-10-13T10:07:42 | 2018-08-14T07:38:34 | Python | UTF-8 | Python | false | false | 452 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-12-14 13:48
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('prodsys', '0067_task_files_source'),
]
operations = [
migrations.AddField(
... | [
"root@vm221-123.jinr.ru"
] | root@vm221-123.jinr.ru |
1dd1b3235d84748e650b23f239c85f7d7acee5dd | 18b0d83b5daadbc926a88e320c5a7b337649f824 | /K-means.py | 04158fd0125b731c9042dddff1dac84ef638b6c6 | [] | no_license | adityadas8888/k-means | e122c44895f612ed952ca3071c1d75956526b134 | 8ac21491d61e590d5745bbc0f24d0484cf346350 | refs/heads/master | 2021-08-27T21:39:32.577823 | 2021-08-14T03:07:56 | 2021-08-14T03:07:56 | 180,055,845 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,576 | py | import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import copy
def center_assignment(df, centers):
for i in centers.keys():
df['distance_from_{}'.format(i)] = (
np.sqrt(
(df['x'] - centers[i][0]) ** 2
+ (df['y'] - centers[i][1]) ** 2
... | [
"noreply@github.com"
] | noreply@github.com |
69e42ad3252722a86f3f6a0fc45ac5e791d360f7 | 2c4a278c9ee6f5ed3eb272e4117d2b5c01b94d61 | /homework/homework4/homework4.py | 322ea8a3237cef2967a83611427d7ecc589aca2c | [] | no_license | FimnOrde/Python_study_120191080618 | fc3fee00532d1f603da48428c05f54aac9e038f5 | 70fdeaacd10d28fa368ce99b26da87f608c0eadf | refs/heads/master | 2023-05-06T10:53:52.812151 | 2021-06-01T14:19:11 | 2021-06-01T14:19:11 | 343,657,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,148 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# file:homework4.py
# author:74049
# datetime:2021/4/6 15:14
# software: PyCharm
'''
this is functiondescription
'''
# import module your need
import base64
try:
with open("D:\\PythonTest\\Test\\homework4\\homework3\\account.txt", "r", encoding="utf-8") as file:
... | [
"740490659@qq.com"
] | 740490659@qq.com |
aa342583e7f64224e167db39abc398760268e22e | 187ec84de1e03e2fe1e154dcb128b5886b4d0547 | /chapter_05/exercises/05_alien_colors_3.py | bba30d284c7891d8e409c681d5c751e6804d47bc | [] | no_license | xerifeazeitona/PCC_Basics | fcbc1b8d5bc06e82794cd9ff0061e6ff1a38a64e | 81195f17e7466c416f97acbf7046d8084829f77b | refs/heads/main | 2023-03-01T07:50:02.317941 | 2021-01-27T21:08:28 | 2021-01-27T21:08:28 | 330,748,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,052 | py | # 5-5. Alien Colors #3
# Turn your if-else chain from Exercise 5-4 into an if-elif-else chain.
# If the alien is green, print a message that the player earned 5
# points.
alien_color = 'green'
if alien_color == 'green':
print('You just earned 5 points!')
elif alien_color == 'yellow':
print('You just earned 1... | [
"juliano.amaral@gmail.com"
] | juliano.amaral@gmail.com |
b6da5a066cbcb33172a12090e0a0c20860343965 | 1d2d18752af8fcd52e9721f55cf0301dea0d854d | /BTrees/btree.py | 8682c4fdcfee8c1cb6325070b9340b67a9e9f8a4 | [] | no_license | aazambrano2/CS3-Labs | ed74329de7483a084b4d5b2ebf60c241928caff9 | 7b8e8348c804f34104969407b441801935c16413 | refs/heads/master | 2023-01-02T06:34:08.335588 | 2020-10-15T22:13:32 | 2020-10-15T22:13:32 | 238,854,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,707 | py | # Code to implement a B-tree
# Programmed by Olac Fuentes and Diego Aguirre
import matplotlib.pyplot as plt
class BTreeNode:
# Constructor
def __init__(self, data, child=[], is_leaf=True, max_items=5):
self.data = data
self.child = child
self.is_leaf = is_leaf
self.max_items = ... | [
"aazambrano2@miners.utep.edu"
] | aazambrano2@miners.utep.edu |
bc7864fb55d1e465b06cece970a179dbcab5a044 | b25943e43fd6af97e9c3263454a19076622b849f | /core/migrations/0006_auto_20201210_1720.py | 1c3f65a91fcab874851dd5c4a03c6968c3b137ab | [] | no_license | jacksellers/cebarco | 26f7d3eb9074d0efa4fea77a94dbfb0e9cd129c9 | 34d37d4df154e534126df0dedb5784e1f25b1b95 | refs/heads/main | 2023-08-21T13:14:29.903816 | 2021-09-14T05:53:31 | 2021-09-14T05:53:31 | 311,674,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | # Generated by Django 3.1.4 on 2020-12-10 14:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0005_auto_20201210_1717'),
]
operations = [
migrations.AlterField(
model_name='executive',
name='rank',
... | [
"jackwsellers@gmail.com"
] | jackwsellers@gmail.com |
71ac3b38241ab179de7aa4edc58a6750b7cb02a3 | 4ddc6604f0c8160c7637d036b835faf974d48556 | /nova/policies/networks.py | a4d065f47d0a291902d07878202cf7f44eb9cdf1 | [
"Apache-2.0"
] | permissive | tjjh89017/nova | a8513a806f24ca0d1c60495fd1f192b7d402b05d | 49b85bd2e9c77c6e0bd8141b38cd49efa5c06dc2 | refs/heads/master | 2021-01-21T10:16:18.970238 | 2017-05-18T10:35:32 | 2017-05-18T10:35:32 | 91,682,422 | 1 | 0 | null | 2017-05-18T10:50:38 | 2017-05-18T10:50:38 | null | UTF-8 | Python | false | false | 1,072 | py | # Copyright 2016 Cloudbase Solutions Srl
# 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 r... | [
"cbelu@cloudbasesolutions.com"
] | cbelu@cloudbasesolutions.com |
26b37aef691158811a1419dac6cabceaeda69787 | 0faf46329fba9705f1ee818634c68315edfce308 | /Sudoko/My solution/solution_test.py | 7af786478a75a6b8757db2d216152f9d16c0b2f6 | [] | no_license | AdepojuJeremy/AI | 5c7f0f71827f5c1b87266fc490065332d89549dc | bd23e90a247bb2aebe91152710b50fd013ad84c5 | refs/heads/master | 2021-12-13T00:50:05.443680 | 2017-03-09T10:16:45 | 2017-03-09T10:16:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,724 | py | import solution
import unittest
class TestNakedTwins(unittest.TestCase):
before_naked_twins_1 = {'I6': '4', 'H9': '3', 'I2': '6', 'E8': '1', 'H3': '5', 'H7': '8', 'I7': '1', 'I4': '8',
'H5': '6', 'F9': '7', 'G7': '6', 'G6': '3', 'G5': '2', 'E1': '8', 'G3': '1', 'G2': '8',
... | [
"mikkelden@gmail.com"
] | mikkelden@gmail.com |
79acbaa2ac8fd0edb8c526d1179dfe06f152007e | 92714474b4390b8fa5d01a3df2e2ae610750e310 | /twill/other_packages/_mechanize_dist/_urllib2.py | 2bb68167b63e81b84553f5db4461f1698af787d5 | [
"MIT"
] | permissive | quokkaproject/twill | e7d95053de05b15114c758f09e3e56d1ad1e2f4a | 1fa51eb66c020b5d277a01063b2293c9e28f9cd0 | refs/heads/master | 2016-08-04T08:33:24.898947 | 2015-08-23T16:53:39 | 2015-08-23T16:53:39 | 35,701,946 | 1 | 1 | null | 2015-05-15T23:36:57 | 2015-05-15T23:36:57 | null | UTF-8 | Python | false | false | 1,382 | py | from urllib.error import URLError, HTTPError
# ...and from mechanize
from ._opener import OpenerDirector, \
SeekableResponseOpener, \
build_opener, install_opener, urlopen
from ._auth import \
HTTPPasswordMgr, \
HTTPPasswordMgrWithDefaultRealm, \
AbstractBasicAuthHandler, \
AbstractDigestA... | [
"alexandre_@fastmail.com"
] | alexandre_@fastmail.com |
f3af2ff83f2df45440a0273e53a8f1211089070c | 966444daf21c85de32822d0fcae649891de5ae18 | /core/market_data.py | 422f7e2efc01cb06d2be5b6e7fe98f9d673ce384 | [] | no_license | ianrerb/quant | 0bce5f18222caa2849b070776dce7108f2ad197e | 962aeefe2c60d59df2f5ec005f4e24bd1fb7ea55 | refs/heads/master | 2023-07-19T10:54:27.555039 | 2019-08-27T13:06:38 | 2019-08-27T13:06:38 | 194,100,056 | 1 | 0 | null | 2023-07-06T21:32:26 | 2019-06-27T13:24:54 | Python | UTF-8 | Python | false | false | 1,187 | py | import pandas as pd
MARKET_DATA_FILE = "quant_case_data/market_data.csv"
MIN_STOCKS = 100
COL_RENAME = {
"Date": "date",
"Ticker": "ticker",
"Total Return": "total_return",
"Market Cap": "market_cap",
"Daily Volume": "daily_volume",
}
class MarketData:
def __init__(self):
self._datas... | [
"ianrerb@gmail.com"
] | ianrerb@gmail.com |
ccb0ef815e13a42b110a0ee2e91d2ca924477203 | 105373a184a141e602f6840952737ff4abfd3026 | /code/src/demo.py | 61084192224fc63b2ca92db35367122a1ffc8c07 | [] | no_license | votranbaohieu/do-an-tot-nghiep | 2d8fc90d365055732916fbc6391d191027e6fcb3 | 4e4fe4ad3b456fa166cd68bfeb163e9325c5dc47 | refs/heads/master | 2022-10-31T15:31:36.561979 | 2020-06-19T15:44:57 | 2020-06-19T15:44:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,164 | py | import os
import pandas as pd
import json
import numpy as np
from pyvi import ViTokenizer
from bs4 import BeautifulSoup
DIR_PATH = os.path.dirname(os.path.realpath(__file__))
DATA_TRAIN_PATH = os.path.join(DIR_PATH, 'data/train/data.xlsx')
DATA_TRAIN_JSON = os.path.join(DIR_PATH, 'data/train/data.json')
STOP... | [
"ntl2898js@gmail.com"
] | ntl2898js@gmail.com |
6456afdcfb72444d01ad09e4f851c86cb9b4ddef | d3cabb25e9af022fa3ca7818668a3267c16f31ed | /queroMeiaWebapp/settings.py | 1501cd1e7a333c3b286235d56186badea80dcd3e | [] | no_license | fafaschiavo/mobileQueroMeiaWebapp | 6e8df6bdb17ad82b0d1c43a8d78f71e4fd4dccb4 | 83584cf81f7a28b36fa9a699986aaf111d4b3eb5 | refs/heads/master | 2021-01-09T20:52:37.544906 | 2016-07-11T16:31:49 | 2016-07-11T16:31:49 | 58,693,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,420 | py | """
Django settings for queroMeiaWebapp project.
Generated by 'django-admin startproject' using Django 1.10.dev20160307181939.
For more information on this file, see
https://docs.djangoproject.com/en/dev/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/dev/ref/se... | [
"fayschiavo@gmail.com"
] | fayschiavo@gmail.com |
55dc50f6b021443e36db8ccc7f89987fc5070e30 | 5cb522222e9a4b63d6266254aad9410465f7f701 | /data_generator.py | b0863e82bbc2066ec7caaa175b96a264cb1147b6 | [] | no_license | luuuucy/LIRD | 9a923c7c1e7a034b86fa5233ff1b60b06a16746e | 5946d51b248b2eca814ae9c72758d3fd6f15df4f | refs/heads/main | 2023-04-25T10:30:10.563445 | 2021-04-30T01:43:37 | 2021-04-30T01:43:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,759 | py | import pandas as pd
import random
class DataGenerator(object):
def __init__(self, datapath, itempath):
'''
Load data from the DB MovieLens
List the users and the items
List all the users historic
'''
self.data = self.load_datas(datapath, itempath)
self.users... | [
"norio-kosaka"
] | norio-kosaka |
6a03c1e5902c68fd96c4f242ec0ea67c24a7a41c | 41aaf6e897b2f84ba2036b7f372e6213572d0917 | /snake.py | 2f628f8e0a060f60b6c5101d7f9addb8bb9ea130 | [] | no_license | Saadcode/snake | b6957ab6717c5397a1619e1279da8697decfa0cc | bae2880963510f5db884476d36d849f300bc1a96 | refs/heads/master | 2022-04-21T02:44:30.612402 | 2020-04-13T15:36:52 | 2020-04-13T15:36:52 | 255,370,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,944 | py | import pygame
import sys
import random
pygame.init()
FPS = 15
BLACK = (0, 0, 0)
WHITE = (255, 255, 255)
GREEN = (0, 255, 0)
RED = (255, 0, 0)
BLUE = (0, 0, 255)
YELLOW = (255, 255, 0)
WINDOW_WIDTH = 600
WINDOW_HEIGHT = 600
VELOCITY = 10
SNAKE_WIDTH = 15
APPLE_SIZE = 20
TOP_WIDTH = 40
small_font = pygame.font.SysFont('... | [
"sssammoudi@gmail.com"
] | sssammoudi@gmail.com |
0b95068832384dd3ad74756b653d201da6d211bf | fd9c17e51ea6c4a3bd57ca1124eed8b9cb869a2e | /myshop1/payment/apps.py | c3d50177c0d56fc728462b44b44d8b6459616485 | [] | no_license | ankurpython/e-commerce_application- | 3eb05c231fa989976d3ffe1cca931775258f211f | 8efebb73dd394d729e6826aedd36662cb45d114c | refs/heads/master | 2020-07-13T05:23:34.667148 | 2019-08-28T18:54:37 | 2019-08-28T18:54:37 | 205,002,634 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | from django.apps import AppConfig
class PaymentConfig(AppConfig):
name = 'payment'
verbose_name = 'Payment'
def ready(self):
# import signal handlers
import payment.signals
| [
"shekhar.shs@gmail.com"
] | shekhar.shs@gmail.com |
30c836cb77e3af15c95d574f4dffbd05f972c98a | fee21a0de0a7e04d4cea385b9403fa9ba3109fc7 | /耿梦宇-2220172376.py | d85cb611dd895cd0b0c817262627f4f5fdb50750 | [
"MIT"
] | permissive | veritastry/trainee | 2e9123fe0dfb87e4dacf8de3eb9c53d5ff68281b | eb9f4be00e80fddd0ab3d3e6ea9a20c55f5bcab8 | refs/heads/master | 2023-02-17T20:44:39.660480 | 2021-01-18T14:29:33 | 2021-01-18T14:29:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,129 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Dec 10 21:02:04 2019
@author: Administrator
"""
#一、提取数据
import pandas as pd
data=pd.read_csv('./4s.csv',index_col=u'纳税人编号')
#二、数据探索分析
import matplotlib.pyplot as plt#导入
import matplotlib as mpl
fig,axes=plt.subplots(1,2)#创建画布
fig.set_size_inches(20,6)#设置画布大小
ax0,ax1=axes.fla... | [
"Lincoln@usa.com"
] | Lincoln@usa.com |
cf1c95226b738e88e5ece8b394896f8d6b81bf09 | d806dd4a6791382813d2136283a602207fb4b43c | /sirius/blueprints/api/remote_service/tula/passive/hospitalization/xform.py | e1eb90b2defe6e898e8d65d353d0acc7a8ea2d35 | [] | no_license | MarsStirner/sirius | 5bbf2a03dafb7248db481e13aff63ff989fabbc2 | 8839460726cca080ca8549bacd3a498e519c8f96 | refs/heads/master | 2021-03-24T12:09:14.673193 | 2017-06-06T16:28:53 | 2017-06-06T16:28:53 | 96,042,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | #! coding:utf-8
"""
@author: BARS Group
@date: 13.10.2016
"""
from sirius.lib.xform import XForm
from sirius.blueprints.api.remote_service.tula.entities import TulaEntityCode
from sirius.blueprints.api.remote_service.tula.passive.hospitalization.schemas import \
HospitalizationSchema
from sirius.models.system im... | [
"paschenko@bars-open.ru"
] | paschenko@bars-open.ru |
1258d1606b051cacf5126e91e913a29adab58b12 | 1dcc10454332be45f7165784d59b2d152d72a1c3 | /blog/migrations/0003_auto_20210119_2239.py | 662dc81979570efc1d091f9ab950fcf3dd9d6613 | [] | no_license | thabothibos/simple-django-blog-app | 72098c50baf68d58da4ce8cb1a80db6ccbf76dc4 | bc395e401251c19064f1d0e28c12f177efc700bb | refs/heads/main | 2023-03-05T05:29:04.054133 | 2021-02-09T16:46:36 | 2021-02-09T16:46:36 | 337,537,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | # Generated by Django 3.1.5 on 2021-01-19 22:39
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0002_post_post_date'),
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
('... | [
"thabothibosindlovu@gmail.com"
] | thabothibosindlovu@gmail.com |
cb9ae56a87e36096a294f2e4055d0886d4c602d5 | e52ca5e3806755857f4c4412f2d47cfadfd10e46 | /Star's Python Workspace/Web App/Distributed/CodEX/search/views.py | a263d74ad7830d60319e36fb382d66646695baab | [] | no_license | clmorgan111/Final-Year-Project | 0b96593d605bc1e3fd69e02e006cae271eed0f6b | dfdfb5755ef1da29c816c412e3f0d8a7a49f8b5d | refs/heads/master | 2020-04-15T13:03:07.732902 | 2018-07-20T12:06:25 | 2018-07-20T12:06:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,742 | py | # coding:utf-8
# @author: Star
# @time: 10-03-2018
import json
import hashlib
import redis
import time
from CodEX.config import configs
from search.supportings.network import Client
from search.supportings.communicator import CommunicationServer
from search.supportings.network import Server
import search.supportings.FC... | [
"7301121@qq.com"
] | 7301121@qq.com |
6c49714668856f4f031104e448854f10a72e4811 | 62d4c138577bbb862bb36ed2e0b29aa50715a673 | /problem7.py | c559f4cf8a7b28c66b8c40a7ccdbc3a5d2dfe80d | [] | no_license | paulkarayan/projecteuler | 06ff1d989b88d4bb4e0e2504f4cf68cf2911df3b | 5ce7e2ee9de399c701bddfdf6b1703a2fd4eeacc | refs/heads/master | 2021-01-22T00:51:49.018829 | 2018-10-19T14:59:39 | 2018-10-19T14:59:39 | 23,476,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,611 | py | #https://projecteuler.net/problem=7
import math
def findprimes(limit, sieve, plist, primelen): # sieve of eratosthenes w/ tricks
#print(limit, sieve, plist, "inputs")
if not plist:
sieve = [1] * int(math.sqrt(limit))
sieve[0] = sieve[1] = 0
start = 0
else:
... | [
"pk@addepar.com"
] | pk@addepar.com |
47480fc33fee1b1c7fe3c7862832d0468e611ad5 | 13c0f48030415ebd7b1a01ed2cf4003df3cc5293 | /colored_logs/models/color_config.py | 0dd8c6ee4524f47e4ba2ff3ef612a5c26b165ab5 | [
"MIT"
] | permissive | ravnicas/colored_logs | 7d17b0981f3fad49b01e6a6b92c4a2ca2d4eacb5 | 98182f8a2cc44d702300fe0a5388b42064f8d98d | refs/heads/master | 2022-07-23T13:19:14.059209 | 2020-05-04T18:52:57 | 2020-05-04T18:52:57 | 262,340,974 | 0 | 0 | null | 2020-05-08T14:11:30 | 2020-05-08T14:11:29 | null | UTF-8 | Python | false | false | 936 | py | from .color_pair import ColorPair
from .color import Color
class ColorConfig:
def __init__(
self,
info: str = ColorPair(foreground=Color.fromHex('#B4AEA8')),
success: str = ColorPair(foreground=Color.fromHex('#3EA966')),
fail: str = ColorPair(foreground=Color.fromHex('#C8553D')),
... | [
"kristof.kovacs@telenav.com"
] | kristof.kovacs@telenav.com |
400aaefe3b7bf92ebc46bb5965825b39726c5367 | d96b966f368bdc441f8791bf860bbd4f6d0c2951 | /editor/sound_editor.py | d1ff534876e20bd7365262de6fc63a05150c94cd | [] | no_license | CrisHu/game | 5949d4999275d8877602e2706afffa7e6a0b7372 | e7ffc7808e0b7a4d7c459b7e148338d316764dae | refs/heads/master | 2020-04-02T05:27:18.468096 | 2018-10-23T03:24:46 | 2018-10-23T03:24:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,261 | py | import pyxel
from pyxel.constants import AUDIO_SOUND_COUNT
from pyxel.ui import NumberPicker, ScrollBar
from pyxel.ui.constants import WIDGET_FRAME_COLOR
from .constants import EDITOR_IMAGE_X, EDITOR_IMAGE_Y
from .editor import Editor
class SoundEditor(Editor):
def __init__(self, parent):
super().__init_... | [
"weilehu@xiaohongshu.com"
] | weilehu@xiaohongshu.com |
22c4d7f96a6349a7d19d0b2069f885a37474aa47 | 010279e2ba272d09e9d2c4e903722e5faba2cf7a | /contrib/python/plotly/py2/plotly/validators/sankey/textfont/__init__.py | 7a16a4ec501428eb068d80f780f31eca40f57f29 | [
"MIT",
"Apache-2.0"
] | permissive | catboost/catboost | 854c1a1f439a96f1ae6b48e16644be20aa04dba2 | f5042e35b945aded77b23470ead62d7eacefde92 | refs/heads/master | 2023-09-01T12:14:14.174108 | 2023-09-01T10:01:01 | 2023-09-01T10:22:12 | 97,556,265 | 8,012 | 1,425 | Apache-2.0 | 2023-09-11T03:32:32 | 2017-07-18T05:29:04 | Python | UTF-8 | Python | false | false | 1,471 | py | import _plotly_utils.basevalidators
class SizeValidator(_plotly_utils.basevalidators.NumberValidator):
def __init__(self, plotly_name="size", parent_name="sankey.textfont", **kwargs):
super(SizeValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
... | [
"robot-piglet@yandex-team.com"
] | robot-piglet@yandex-team.com |
600fadd785148f4a7f668ac8599d5e3b6e2e67de | 3024235542ce7379b22e9a848316968e7abb51eb | /src/ExtGraph.py | 38974616adaa57d59e5daf5ad756d2a335202498 | [
"CC-BY-3.0"
] | permissive | harshakokel/JA-Walk-ER | 667efec9463e4ce34d7a8e6a021a8bcea6861a5e | d15adba5d9390bee43d0bca630ece0d0c73c522b | refs/heads/master | 2020-04-27T19:44:23.844569 | 2019-11-12T19:58:37 | 2019-11-12T19:58:37 | 174,631,519 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 17,407 | py | # coding=utf8
'''
Copyright (R) 2015 Vincent.H <forever.h@gmail.com>
Published under Apache 2.0 License (http://www.apache.org/licenses/LICENSE-2.0.html).
-------------------------------------------------------------------------------------
This module define the extended functions of graph data.
The core ... | [
"harshakokel@gmail.com"
] | harshakokel@gmail.com |
a83c3362a529d970c8d74dc9a41e928ad7f6aa12 | 36764bbdbe3dd6bb12cd8eb78e4b8f889bd65af0 | /mysortmat.py | b231fa573b16f020be2aaa0e3b636ee9e073a985 | [] | no_license | tristaaa/lcproblems | 18e01da857c16f69d33727fd7dcc821c09149842 | 167a196a9c36f0eaf3d94b07919f4ed138cf4728 | refs/heads/master | 2020-05-21T14:38:14.920465 | 2020-02-23T01:49:23 | 2020-02-23T01:49:23 | 186,085,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,274 | py | class Solution(object):
def mySortMat(self, mat):
"""
sort the input matrix, size of n*n, and the output should be in this order
[[9,8,6],
[7,5,3],
[4,2,1]]
:type mat: List[List[int]]
:rtype: List[List[int]]
"""
n = len(mat)
arr = []
for i in range(n):
arr+=mat[i]... | [
"tristaaa56@126.com"
] | tristaaa56@126.com |
060e4478c838487312c46740f0239fd29248b21d | e820f47d64b236860170a6daa2438074ce65743b | /accounts/migrations/0002_order_product.py | eb0ef7d85be167a439dabd171000fe1544f1cc43 | [] | no_license | shubham7413/django-project4 | 91a5732292ce58ce5a22bbd1e4ac521b14b9befd | 04b90b6f426f416fe59c97a24011bf3b9036196a | refs/heads/master | 2023-06-02T14:33:30.634561 | 2021-06-18T19:38:18 | 2021-06-18T19:38:18 | 378,123,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,195 | py | # Generated by Django 3.2 on 2021-05-11 06:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Order',
fields=[
('id', mod... | [
"shivbham2353@gmail.com"
] | shivbham2353@gmail.com |
9e7ecacbe29bae9c3f1c5c9fae36d189793ca0a3 | 83b1d3dd26a13631df76f3b68fcd14db5c04106e | /client.py | 5fe6c2dd73977e699d685138f6069dec21784006 | [] | no_license | ML273/flask_getting_started | b2b20a9b136eda927763b40fff734d86deae0151 | 6f23ef7fbfa10e40836d32943d4ab94463c571a6 | refs/heads/master | 2020-04-10T11:55:54.366143 | 2018-03-08T03:27:22 | 2018-03-08T03:27:22 | 124,272,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | import requests
r = requests.get("http://vcm-3502.vm.duke.edu:5000/")
print(r.text)
getname = requests.get("http://vcm-3502.vm.duke.edu:5000/name")
print(getname.json())
hello_name = requests.get("http://vcm-3502.vm.duke.edu:5000/hello/Marianne")
print(hello_name.json())
distance = requests.post("http://vcm-3502.vm.... | [
"vcm@vcm-3502.vm.duke.edu"
] | vcm@vcm-3502.vm.duke.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.