blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ce5e395c97010fdd84a122457059c236fb9f4faa | 06345c4cb33d5735e7d0893f0892d9bd1de30495 | /webservice/main.py | 35bd3c5433feb15ab02c627a62ccb43a7c658c86 | [] | no_license | hiko2msp/single_sign_on | 805a1ec226af2a1b6b370d1090aaa9a02bd9e005 | 78e70c27691aa8d6b280d8fbdbc76432eae5666c | refs/heads/master | 2022-12-15T17:10:01.816822 | 2020-09-13T23:32:49 | 2020-09-13T23:32:49 | 295,256,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,432 | py | from fastapi import FastAPI
from fastapi.responses import HTMLResponse
app = FastAPI()
@app.get("/")
def read_root():
return {"Hello": "World"}
@app.get("/login", response_class=HTMLResponse)
async def read_login_page():
return '''
<html>
<head>
<title>WebService</title>
... | [
"iam4570@yahoo.co.jp"
] | iam4570@yahoo.co.jp |
ee2d685b30f2cc02ae06dc9f61a71fb82adf6363 | 6066b2af4b4f6ab967cfb8af8ec3b8ee68545ab9 | /nyenyenye/main.py | fb4d33da1a846dda10914eb8bab04e0886a20720 | [] | no_license | zsbati/PycharmProjects | 7b29b210b4878af42baf288c585675d0203b9805 | c13b05901c5ff8ea6fc7bcb61c70aa40940daa56 | refs/heads/main | 2023-09-04T09:01:19.315655 | 2021-10-24T16:24:43 | 2021-10-24T16:24:43 | 401,172,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | # import string library function
import string
# Storing the value in variable result
result = string.digits
# Printing the value
print(help(string.digits))
'''print("I am = I'm")
print("I have = I've")
print("I have = I've")
print("I had / would = I'd")'''
| [
"zbati123@gmail.com"
] | zbati123@gmail.com |
5a0514166417cfcf07b4e5bd79d4dc3fefe912d2 | 4bb31b4cb7b1872933d73dc15b5a2569a70bfad5 | /marktex/marktex.py | 58772ce680b2e33239a2c29d08cef2eb5eb16736 | [] | no_license | chthub/MarkTex | bf27aa402d5bd75d27d6a8b2cf5df19b9035a3d7 | e998a03a5e607524c14bf8ea1c1f79c34e2110f8 | refs/heads/master | 2020-07-04T03:27:25.095562 | 2019-08-02T02:24:30 | 2019-08-02T02:24:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,788 | py | import argparse,sys,os
APP_DESC="""
MarkTex is used to convert markdown document into tex format.
输出位置可以选择:
- 在各自的md文件下 default,最低优先级
- 统一输出到一个目录下 -o "path" ,第二优先级
- 在各自给定的目录下 -e "",优先级最高
输出到对应文件的 "文件名" 所在的目录下:
marktex a.md b.md ...
输出到一个同一的文件夹下:
marktex a.md b.md ... -o "path"
指定输出到各自文件夹,必须保证路径个数和文件个数相同:... | [
"sailist@outlook.com"
] | sailist@outlook.com |
6a7bb26e8deb722fae9305656632919847dad149 | 2c3d73d3e5ad89b10981f167315539aff2237c35 | /analysis/essay/plot_convergency.py | 24eb6287b904f1659d78d5c3aec49b0e9708706f | [] | no_license | oychao/paper | 5f2d87cfe4ccf6c86b4db74f80238ea45cd6fac4 | 958093674836118a7c1020b3da4ae0afcb258561 | refs/heads/master | 2021-06-14T11:14:40.828065 | 2017-03-31T00:48:35 | 2017-03-31T00:48:35 | 60,524,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,953 | py | # -*- coding: utf-8 -*-
import matplotlib.pyplot as plt
import matplotlib
import data
# 设置字体大小
matplotlib.rcParams.update({'font.size': 11})
if __name__ == '__main__':
data_set1 = []
data_set2 = []
data_set3 = []
data_set4 = []
data_set5 = []
data_set6 = []
for index in range(1, 21):
... | [
"ch.k.ouyang@gmail.com"
] | ch.k.ouyang@gmail.com |
feaec6a941322726aff0c413db16fbef3d5688a6 | 8fc64518f69f09c4994f35cdafe8bfc6de802dc6 | /src/examples/hadoop/hadoop_node.py | e9e5d6daf9669382b1a0b71d729c7ebcfb8f1095 | [
"MIT"
] | permissive | haxsaw/actuator | a89378bb9f4f3850175afaac117793e6a521db9a | ac2ff590bb27830a3068d9a5a7b8869f28eda161 | refs/heads/master | 2021-06-23T09:48:44.187318 | 2015-03-03T16:09:27 | 2015-03-03T16:09:27 | 23,829,913 | 21 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,524 | py | #
# Copyright (c) 2015 Tom Carroll
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, dis... | [
"tcarroll@pobox.com"
] | tcarroll@pobox.com |
fe9d900ddf672433c7aab61886618fa4fbecd0ef | e3bb7c26a8bcdc9a241feaa8d1c7b4edf936ec21 | /mini服务器/装饰器/01.无参数无返回值的装饰器.py | af894c7d4b84efbf7dc5e4fa1c986c93ddbb9665 | [] | no_license | hezudao25/learnpython | a3b797caf72017c16455ed014824fe6cd0fdb36d | 1a9dbe02ac442ab8d2077a002e6a635c58bbce04 | refs/heads/master | 2020-04-24T07:44:34.664354 | 2019-07-26T05:50:05 | 2019-07-26T05:50:05 | 171,807,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | import time
def set_func(func):
def call_func():
start_time = time.time()
func()
stop_time = time.time()
print("alltimeis %f" % (stop_time - start_time))
return call_func
@set_func # 等价于 test1 = set_func(test1)
def test1():
print("----test1-----")
for i in range(10000)... | [
"hezudao@msn.cn"
] | hezudao@msn.cn |
8b279338ed20386759c69d0309066bcbcc446e53 | 6aa581498844a9bd5fdcff7efb80cb97646eef28 | /app/manage.py | aadd00f3245ce9f842f46968c2a68e20a181fb80 | [] | no_license | jgj1018/HouseholdLedger | 5325b892610f438fd28957a3ac90a277dede5f49 | 6f756e03fe7ac3ef2b7f1cbea67951a0c3347826 | refs/heads/master | 2022-12-11T00:20:49.282474 | 2018-09-27T14:40:17 | 2018-09-27T14:40:17 | 124,239,980 | 0 | 0 | null | 2022-12-08T00:59:38 | 2018-03-07T13:28:38 | Python | UTF-8 | Python | false | false | 547 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "HouseholdLedger.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Djan... | [
"pjw6454@hotmail.com"
] | pjw6454@hotmail.com |
434dfb226ae83ee062a932c226dcb7676dc57321 | f4811e0f0f733b2f322d7185155bc8801e8a9bce | /Codigos/model.py | a543d1c92bea4f2946fbc5050b531bed2ac8587c | [] | no_license | PedroUnifor/TCC | 68adc07bc2814634fa150e235d46e69fb1fa1ffe | af41190dfde6ea30abc23977628862160f5ad109 | refs/heads/master | 2020-05-27T09:57:57.613491 | 2019-06-10T12:43:03 | 2019-06-10T12:43:03 | 188,575,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,559 | py | import pandas as pd
import numpy as np
from sklearn.model_selection import train_test_split
from keras.models import Sequential
from keras.optimizers import Adam
from keras.callbacks import ModelCheckpoint
from keras.layers import Lambda, Conv2D, MaxPooling2D, Dropout, Dense, Flatten
from utils import INPUT_SHAPE, batc... | [
"32526712+PedroUnifor@users.noreply.github.com"
] | 32526712+PedroUnifor@users.noreply.github.com |
7585c00baf81bf1752d0c1d4e0b33157be2afcab | 43129b1d1d1f5bb82705e7ba840472f05d17a4d3 | /Python/spider/Scrapy/豆瓣/douban/douban/douban/settings.py | 7915ba12286be6296d78f83239ba53d2835b0c9f | [] | no_license | parwjs/funny | b9c05dafcfc1f91e93b80a0437b5388ce1d3f71a | 5503ffaad3c429fa2c5de30083566d489c94160a | refs/heads/master | 2020-07-01T19:07:21.514800 | 2019-12-17T14:55:52 | 2019-12-17T14:55:52 | 201,266,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,200 | py | # -*- coding: utf-8 -*-
# Scrapy settings for douban project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readthedocs.org/en/latest/... | [
"perwjs@163.com"
] | perwjs@163.com |
0f4cc016fdd3ffb3f81e2fcc48923b09c75c1b34 | 54a9b1d648e4fb2d43a953b19ee7fa572114de96 | /bin/pymodules/circuits/net/protocols/irc.py | a7189da174cbc5652312dd48252a5dc48646c8fd | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | jesterKing/naali | 02f834c4ccf37cc7f1fb2a0a74774addb9561a21 | 98baf592637d0edc684f21ab6488783a8b008c81 | refs/heads/master | 2021-01-18T08:02:25.655961 | 2010-04-27T10:26:53 | 2010-04-27T10:28:08 | 746,307 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 19,966 | py | # Module: irc
# Date: 04th August 2004
# Author: James Mills <prologic@shortcircuit.net.au>
"""Internet Relay Chat Protocol
This module implements the Internet Relay Chat Protocol
or commonly known as IRC.
This module can be used in both server and client
implementations.
"""
import re
import time
from cir... | [
"antont@5b2332b8-efa3-11de-8684-7d64432d61a3"
] | antont@5b2332b8-efa3-11de-8684-7d64432d61a3 |
27815ecf5221b5fac3ff1af7eb7996d09148026c | 7f0e330cf3efab4e7487e5a7b00a01e099f93922 | /othello/player_prog/script/Nov.21_script/copy2.py | 5336c3d6ec646c75674e7b4aa7f4ceeff8c0b748 | [] | no_license | shukai9/takao_prosym | 79385866d5b9d0db37b44f03a10617d37b22f452 | 9268c3b1e5432ade8e45200572ec5684f3a530e2 | refs/heads/master | 2020-04-02T12:31:42.655270 | 2018-11-22T00:44:01 | 2018-11-22T00:44:01 | 154,437,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 762 | py | # python 2.7.10
# -*- coding: utf-8 -*-
board_data = [641, 795, 433, 411, 184, 530, 334, 798, 722, 204, 505, 587, 215, 82, 453, 856, 201, 598, 676, 74, 616, 719, 980, 600, 123, 583, 432, 994, 333, 585, 464, 4, 53, 738, 812, 70, 69, 442, 537, 644, 963, 683, 388, 133, 354, 861, 152, 335, 465, 904, 953, 64, 230, 832, 834... | [
"shukai3264@gmail.com"
] | shukai3264@gmail.com |
0c33e9bbe8b36c3a0676bca201898fcecad7e191 | e36225e61d95adfabfd4ac3111ec7631d9efadb7 | /problems/CR/auto/problem220_CR.py | b03a0e4f5f53ef2573a1700d9c1d7cd085e3998f | [
"BSD-3-Clause"
] | permissive | sunandita/ICAPS_Summer_School_RAE_2020 | d2ab6be94ac508e227624040283e8cc6a37651f1 | a496b62185bcfdd2c76eb7986ae99cfa85708d28 | refs/heads/main | 2023-01-01T02:06:40.848068 | 2020-10-15T17:25:01 | 2020-10-15T17:25:01 | 301,263,711 | 5 | 2 | BSD-3-Clause | 2020-10-15T17:25:03 | 2020-10-05T01:24:08 | Python | UTF-8 | Python | false | false | 1,071 | py | __author__ = 'patras'
from domain_chargeableRobot import *
from timer import DURATION
from state import state
DURATION.TIME = {
'put': 2,
'take': 2,
'perceive': 2,
'charge': 2,
'move': 2,
'moveToEmergency': 2,
'moveCharger': 2,
'addressEmergency': 2,
'wait': 2,
}
DURATION.COUNTER =... | [
"sunandita.patra@gmail.com"
] | sunandita.patra@gmail.com |
76053fb1af51e163c0e4570dcc0525880192b3b8 | 15f5aa397c614138948d328fc17462f8baef3413 | /pytest_demo/venv/bin/easy_install-3.8 | 13379919985afc467daf9704f81fd13b04582649 | [] | no_license | xyqiang/Jenkins_test | a210f2d00f6174feaf45d04442166678881b3618 | 52d880ea58d6fdf6f878bfe1bef84b762e0ea145 | refs/heads/master | 2022-11-18T10:02:58.140608 | 2020-07-17T03:23:57 | 2020-07-17T03:23:57 | 280,315,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | 8 | #!/Users/xyq/Documents/Study/pytest_demo/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"xyq@XYQdeMBP.lan"
] | xyq@XYQdeMBP.lan |
f9ee0e4095188a538b77e1bf3334f8d98d7da304 | 552ba1ede64e20980227e70c2e7fe2ee9c5f6a33 | /tiny_tf/transformer.py | 47a90c0c5bb0a861c6b97626d45ea30ca68c8398 | [
"MIT"
] | permissive | felixvd/tiny_tf | b7f5f3a573bbcd1ac15082e9fb0c53277aaf3a1a | d8f2c75e0da935450c4f7be1c87f79b2a75d1278 | refs/heads/master | 2020-05-16T03:19:38.460245 | 2019-09-04T07:45:54 | 2019-09-04T07:45:54 | 182,678,256 | 0 | 0 | null | 2019-04-22T08:48:31 | 2019-04-22T08:48:31 | null | UTF-8 | Python | false | false | 2,956 | py | from .tf import *
import numpy as np
from . import transformations as tft
from collections import namedtuple
from . import geometry_msgs
class Transformer(TFTree):
"""
This class implements the same interfaces as the ROS tf.TransformListener().
"""
def __init__(self):
super(Transformer, self).... | [
"FvDrigalski@gmail.com"
] | FvDrigalski@gmail.com |
89b2ed2a19339c16c57af10bafb39f0f2d9fe6c9 | 34a5f5b1624231fe953c913b012ac8a9d83dbaab | /tests/conftest.py | 3a76ad0a2777e2db4f551cd430d9c4f2389c1e1e | [
"MIT"
] | permissive | isprojects/djangorestframework-inclusions | af13cc17b07a674c91c43004f8f27278ac8c5e65 | c2ff654254e4ef7dbadd264004b70e0efce44327 | refs/heads/master | 2022-07-25T00:44:29.344113 | 2022-07-11T10:44:25 | 2022-07-11T10:44:25 | 205,416,015 | 1 | 1 | MIT | 2023-08-22T19:17:12 | 2019-08-30T16:10:25 | Python | UTF-8 | Python | false | false | 84 | py | # import pytest
# @pytest.fixture
# def some_fixture(request):
# return 'foo'
| [
"sergei@maykinmedia.nl"
] | sergei@maykinmedia.nl |
348ffb795cd5205f45251bbb0d85b5d6a542b63a | 25445f9e3ad9440a3ef3757b96933c33ac1b1daa | /cloudmesh_client/api/__init__.py | 86b9d2a8081d0dfbc8f272aad0700707a090bdca | [
"Apache-2.0"
] | permissive | cloudmesh/client | 9d0d024b5f48ef59f8f02a2619fc34ed65cbfa17 | a5fc7dbaf2c51f1227cff346aedea4bf7f563fa9 | refs/heads/master | 2022-10-13T13:59:12.201306 | 2019-02-08T21:04:50 | 2019-02-08T21:04:50 | 37,379,872 | 3 | 19 | NOASSERTION | 2022-09-16T19:34:16 | 2015-06-13T16:56:22 | Python | UTF-8 | Python | false | false | 3,756 | py | """
This module defines the main API for operating with cloudmesh.
"""
from abc import ABCMeta, abstractmethod, abstractproperty
from cloudmesh_client.common.ConfigDict import ConfigDict
from cloudmesh_client import CloudmeshDatabase
class Config(object):
"""
The Cloudmesh configuration
"""
__meta... | [
"abdulwahidc@gmail.com"
] | abdulwahidc@gmail.com |
2d4187ac5a2bb89a4ea71572a2eb8fa109f2ac2d | 6972fbeb81d2f890b8eac09cd993e50b493b2aa3 | /core.py | 7389d800c0e9291e3e98df0e1dd34de8e885aae4 | [] | no_license | rauljordan/PhotovoltaicMoleculesKaggle | f713884744afe454517f33840d76c18c75242758 | 22d4315d2b7c7049f6590958aec2bfc5db594c7d | refs/heads/master | 2021-01-10T05:00:16.034504 | 2016-02-10T16:13:57 | 2016-02-10T16:13:57 | 51,279,151 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | import pandas as pd
import numpy as np
import os
import matplotlib.pyplot as plt
from sklearn.linear_model import LinearRegression
from sklearn.ensemble import RandomForestRegressor
"""
Read in train and test as Pandas DataFrames
"""
__location__ = os.path.realpath(
os.path.join(os.getcwd(), os.path.dirname(__fil... | [
"raulitojordan@gmail.com"
] | raulitojordan@gmail.com |
3fc99229bf3656efd2aab7b028bbc899cb02bae4 | e1555eb22c173ffdc4d670b8e590cafd83d47080 | /orders/urls.py | dbdbc0c9d841ce45b67244c811cbe3f8d3eb6e03 | [] | no_license | rohitrock97/pizza-online-ordering-app | a47f90ba6dd037144f168e9a2e1406dc45729d1f | 218515ab2a9e1e5d09b1a9cdf22bc496752ad3b4 | refs/heads/master | 2022-09-28T09:09:36.930440 | 2020-04-28T14:12:23 | 2020-04-28T14:12:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | from django.urls import path
from . import views
urlpatterns = [
path("", views.home, name="home"),
path("loginUser/", views.loginUser, name="loginUser"),
path("logoutUser/", views.logoutUser, name="logoutUser"),
path("signupUser/", views.signupUser, name="signupUser"),
path("menu/", views.menu, n... | [
"49836470+Shvejan@users.noreply.github.com"
] | 49836470+Shvejan@users.noreply.github.com |
a2c508ad7151b2721bd977a375212ace036c9aee | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/matrix-org_synapse/synapse-master/synapse/util/distributor.py | e68f94ce77728d0cc5352cc5c70b8de90ef915b5 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 4,894 | py | # -*- coding: utf-8 -*-
# Copyright 2014-2016 OpenMarket Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"659338505@qq.com"
] | 659338505@qq.com |
5edbc74a36ee5fca184555521fade160e9cbcf49 | 19c7ea8e1a9af1b1ab6ee7b543aaf39acc0ce2e4 | /whois.py | 4d476d93ad155e2ce649e1c36eed47997454b793 | [] | no_license | yanbozz/Webscanner | c8a230dba8082891bb700a061f69150d9c1888fb | 0771d3cf97c04acde62f21430c73d5011c6f4488 | refs/heads/master | 2022-11-05T09:48:37.389407 | 2020-06-17T03:59:40 | 2020-06-17T03:59:40 | 272,873,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | import os
def get_whois(url):
command = 'whois ' + url
process = os.popen(command)
results = str(process.read())
return results
| [
"yanbozhao1994@gmail.com"
] | yanbozhao1994@gmail.com |
f60c32358ba29e0c6f5f181e16c9a9be15c3a970 | 7275f7454ce7c3ce519aba81b3c99994d81a56d3 | /sp1/python数据采集/数据采集基础/数据采集基本操作.py | a785c16fafcc2c6f8a703fe2c97dc5fc18c6eb6d | [] | no_license | chengqiangaoci/back | b4c964b17fb4b9e97ab7bf0e607bdc13e2724f06 | a26da4e4f088afb57c4122eedb0cd42bb3052b16 | refs/heads/master | 2020-03-22T08:36:48.360430 | 2018-08-10T03:53:55 | 2018-08-10T03:53:55 | 139,777,994 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,274 | py | import requests
from bs4 import BeautifulSoup
#基本操作
# url = "http://www.pythonscraping.com/pages/page1.html"
# response = requests.get(url)
# soup = BeautifulSoup(response.text,"html.parser")
# print(soup)
# url = "http://www.pythonscraping.com/pages/warandpeace.html"
# response = requests.get(url)
# soup = Beautifu... | [
"2395618655@qq.com"
] | 2395618655@qq.com |
c45355be043706c3b108e644263eb2047a00c5a7 | 5b9e3b34d00fb6c050e527f8bcb04e1a8eb7d01b | /strangeflix/room/migrations/0002_delete_userroomdetails.py | 1eb3f32432703247190726af449873ad543d8c87 | [] | no_license | su050300/webster2020 | e062c74db6a534045da21427e45e28e5f15dca08 | 1936fc879d0d6cd5f47e067e3eb8649220b079ba | refs/heads/master | 2023-02-26T08:32:30.516664 | 2021-01-21T14:32:36 | 2021-01-21T14:32:36 | 309,585,083 | 3 | 0 | null | 2021-01-21T14:32:37 | 2020-11-03T05:38:46 | null | UTF-8 | Python | false | false | 290 | py | # Generated by Django 3.1.2 on 2020-10-27 00:23
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('room', '0001_initial'),
]
operations = [
migrations.DeleteModel(
name='UserRoomDetails',
),
]
| [
"sgrocket6@gmail.com"
] | sgrocket6@gmail.com |
0ea79a0637669191c554462793253dbd14d0b598 | 675502fc568d21f3bca2ec5faa94569a3eeaf625 | /app/test.py | d2f7a70a085c1d6b05aec1354807dd3aa5af009a | [] | no_license | tianyangit008/interfacerequest | 78de3af2696868cb6a5431846f5353b44cfd946f | 2dc0de50907030840d9d8f44f2dff5fe698ddfbb | refs/heads/master | 2020-06-03T21:34:58.746025 | 2019-06-13T10:20:08 | 2019-06-13T10:20:08 | 191,739,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17 | py | def j():
pass | [
"tianyanlsf@163.com"
] | tianyanlsf@163.com |
d6b9b87dc0ed9d99ee881951dfc88458945e2338 | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/fv/rsnodeatt.py | c5291275b6bf8c7b5bc74f6ce6e28e5a557006b0 | [] | 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 | 11,117 | 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 |
5ed22d3d1d4427ec9c8f9271a9d3a1527abcafc4 | 2b6963855abd7f81feac8a27bcdd00c31af2ef75 | /doc/conf.py | 6946b813bb2dc45dda5ee1bc1c24c109b73e2d0c | [] | no_license | jute1728/project-juteminder2 | fdf45e6689b88ff493da6b2f55a48d09a55bc610 | 137dcb797add8aa497c3bcc95eee95e86b31ed12 | refs/heads/master | 2020-04-03T22:27:52.416524 | 2018-10-31T18:09:13 | 2018-10-31T18:09:13 | 155,603,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,027 | py | # -*- coding: utf-8 -*-
#
# project-template documentation build configuration file, created by
# sphinx-quickstart on Mon Jan 18 14:44:12 2016.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated fi... | [
"jedwards@ziggo.nl"
] | jedwards@ziggo.nl |
1b2cbcdf8cbd74d19c9b1c21e3a7b338517052e2 | 863bc319e092b5127037db0ead15e627e4b0ac72 | /Uncertainty/data/case-ln/case_ln_134.py | 01644cbd293c6c88784a140d75aec16a9f2e23fd | [
"MIT"
] | permissive | thanever/SOC | ea349e61eebef7f31c610765cd5db1be14b60800 | 7dc33e9f4713d012f206385452987579f46b63eb | refs/heads/master | 2023-08-27T04:57:38.825111 | 2023-08-07T03:20:42 | 2023-08-07T03:20:42 | 212,486,054 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 321,690 | py | from numpy import array
def case_ln_134():
ppc = {"version": '2'}
ppc["baseMVA"] = 100.0
ppc["bus"] = array([
[1.0, 1.0, 71.1786, 18.981, 0.0, 0.0, 1.0, 1.0, 0.0, 220.0, 1.0, 1.1, 0.95, 0.6, 10 ],
[2.0, 1.0, 0.0, 0.0, 0.0, 0.0, ... | [
"hantong.eee@gmail.com"
] | hantong.eee@gmail.com |
648ec20881e6205706e9004b58be17d71026e232 | 3532d18022b8a0180a16d387cdcb5d02bceb7e7f | /src/citrinedemo/units/hour.py | b4e8ffe69a6bdcabb8eafe62c7245c48a87e45d1 | [] | no_license | sk8erwitskil/citrinechallenge | b16c14782514940cee1f8ffffa6fc7cacdc243cd | 81d725df648d748adcf7f725bf89d6450ea18a24 | refs/heads/master | 2020-03-12T07:55:26.152677 | 2018-04-21T23:23:59 | 2018-04-21T23:23:59 | 130,516,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | from base import TimeUnit
class Hour(TimeUnit):
@property
def name(self):
return 'hour'
@property
def symbol(self):
return 'h'
@property
def si_unit_conversion(self):
return 3600
| [
"klaplante@twitter.com"
] | klaplante@twitter.com |
23199cefabfc0667a66a3670c327578df91e30ce | 17d775a9e36b38c2052c0f8741927067b4efade5 | /lab1/threads_basics/sequential_vs_multithreaded_CPUbound.py | cfac92255a4c3a9c14285d72befbfeb73a77e787 | [] | no_license | DAC-hub-101/Software_Academy_Python_Course_Semester_2 | e27308f99fa324637ba14cf0e024872bf7965e63 | d7a0b7c30fcd94544d5d8cc2581fd996267f3bfa | refs/heads/main | 2023-05-25T09:37:47.547412 | 2021-06-13T14:38:16 | 2021-06-13T14:38:16 | 376,520,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,091 | py | import threading
import time
max_range = 100_000_000
max_range_half = max_range//2
def worker(r):
tid = threading.currentThread().name
# do some hard and time consuming work:
global result
res = 0
for i in r:
res += i
result += res
print(f"Worker {tid} is working with {r}")
#############################... | [
"ivawebcourses@gmail.com"
] | ivawebcourses@gmail.com |
254cfb11f499f91c88e065d67f9d232f7e5373f5 | e3372811e34edd1f8d79b2a858c5c92c3e6ef187 | /tools/infer_simple.py | b700782f5aa69a983dbdb8ddf3edb90dff12e94e | [] | no_license | zhangjunyi1225054736/--object-detection | 632481351246acaef6b0cc6aa71962c318d46a8a | d99f6f57cdb457ec3f2df489addfde43ab2910fc | refs/heads/master | 2020-05-29T21:22:28.211748 | 2019-06-06T13:08:52 | 2019-06-06T13:08:52 | 189,377,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,301 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import argparse
import distutils.util
import os
import sys
import pprint
import subprocess
from collections import defaultdict
from six.moves import xrange
# Use a non-interactive backend
import matplotlib
mat... | [
"1225054736@qq.com"
] | 1225054736@qq.com |
1d88899b17ec83de60e1fb314afe0fec7edabe65 | 3a78a91edbc260830a741b4364c7620b2b2002ab | /Flask/IoT_Web/models.py | c9a24ebc77cc610a8bc910277366328426ee2cdc | [] | no_license | jasonswords/IOT-Honeynet-Framework | 21fdba34e543c05d7564e61d65027cddc6f63845 | 5a3bed782d0d7a498e7484422e51f0b9a9b56610 | refs/heads/master | 2021-07-14T21:21:07.656454 | 2019-05-23T06:33:53 | 2019-05-23T06:33:53 | 188,012,963 | 0 | 1 | null | 2020-07-26T01:41:55 | 2019-05-22T10:06:40 | Python | UTF-8 | Python | false | false | 1,432 | py | from datetime import datetime
from IoT_Web import db, login_manager #imports db = SQLAlchemy(app) from __init__.py file to create a db
from flask_login import UserMixin #UserMixin is a class that contains the following attributes IsAuthenticated, IsActive, IsAnonymous, GetId
@login_manager.user_loader
def load_user(us... | [
"iot-honey-net@outlook.com"
] | iot-honey-net@outlook.com |
9edea30fdcfb24b83501e46b750cc44855127836 | 9dbf5214bfad628dba528d63087156de78ec0746 | /datumaro/plugins/imagenet_txt_format.py | ec771b5170bde757a706e540e97171b03df61998 | [
"MIT"
] | permissive | azhavoro/datumaro | c76ef754773c74963da3db60b59435c90476fc3f | 6fe1d68281d06cedac850b93c92ffb1da14bd9ae | refs/heads/develop | 2023-08-19T11:41:46.229402 | 2021-10-07T10:07:33 | 2021-10-07T10:07:33 | 414,547,125 | 1 | 0 | MIT | 2021-10-07T10:05:04 | 2021-10-07T09:57:58 | null | UTF-8 | Python | false | false | 5,065 | py | # Copyright (C) 2020-2021 Intel Corporation
#
# SPDX-License-Identifier: MIT
import os
import os.path as osp
from datumaro.components.annotation import (
AnnotationType, Label, LabelCategories,
)
from datumaro.components.cli_plugin import CliPlugin
from datumaro.components.converter import Converter
from datumaro... | [
"noreply@github.com"
] | azhavoro.noreply@github.com |
28f9e049ec91d5c2e0ec93c0191bb5cc0c0a637a | d52413173437ba73ecdf822ca895e659f00a8ce7 | /kiwibackend/doc/python/PBMailOperationMessage_PBRequest.py | f070f6913cf1cd1e944af7681f07a4ce67799865 | [] | no_license | whiteprism/mywork | 2329b3459c967c079d6185c5acabd6df80cab8ea | a8e568e89744ca7acbc59e4744aff2a0756d7252 | refs/heads/master | 2021-01-21T11:15:49.090408 | 2017-03-31T03:28:13 | 2017-03-31T03:28:13 | 83,540,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | class PBMailOperationMessage_PBRequest():
def __init__(self):
self.category = -1
self.ids = []
self._type = -1
| [
"snoster@163.com"
] | snoster@163.com |
6b28d8019957b930b545ce7d6c99012d529704f9 | 6dab391923b7d12fde1c78abe0051e0042fa8138 | /replit_practice2.py | 23c28b7c7836583cfe6bd143b826aa56253d7e1e | [] | no_license | MelodyChu/Juni-Python-Practice | d38406662b6d6a48fe5ca15d2f18ab1bf90fe6fe | bda5456f86a950aa72664cccd6895309d1aaef07 | refs/heads/master | 2020-03-17T19:33:36.782488 | 2018-05-17T21:07:57 | 2018-05-17T21:07:57 | 133,868,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,608 | py | """a = int(input()) # 1234
b = a % 10 # =4
c = ((a - b)/10) % 10 # 1230/10 = 123; 123/10 % = 3
print (c*10 + b) """
"""# Find tens digit
a = int(input())
b = a % 10 #single digit
c = ((a - b)/10) % 10 #1230
print (c) """
"""
# Given 3 digit number find sum of digits
a = int(input()) # 123
b = a % 10 # single digit # ... | [
"melodychu@macbook-pro-31.dhcp.thefacebook.com"
] | melodychu@macbook-pro-31.dhcp.thefacebook.com |
967a6a973ca7b215239de6349600711273192b4a | d487530a7450798387f24e52a8fbff662d0eb876 | /google_python/05교시/pycrypto_aes256_sample.py | 7ae985d3b0b946a2f2235f0fea6cfb1ad9799190 | [] | no_license | diligejy/PythonData | f1be4e0e1d0cedf71128ecd9029b6bbd6c8e414a | b83cb96cb76fc0203c7ea978bcef1f5c18bab0d2 | refs/heads/master | 2020-06-13T04:31:30.960657 | 2020-04-11T04:38:33 | 2020-04-11T04:38:33 | 194,534,144 | 6 | 1 | null | 2019-08-31T07:57:38 | 2019-06-30T15:52:18 | Jupyter Notebook | UTF-8 | Python | false | false | 1,744 | py | # 모듈을 불러옵니다.
import base64
import hashlib
from Crypto import Random
from Crypto.Cipher import AES
# 암호화할 문자열을 일정 크기로 나누기 위해서, 모자란 경우 크기를 채워줍니다.
BS = 16
pad = lambda s: s + (BS - len(s) % BS) * chr(BS - len(s) % BS).encode()
unpad = lambda s : s[0:-s[-1]]
# 암호화를 담당할 클래스 입니다.
class AESCipher:
# 클래스 초기화 - 전달 받은 키... | [
"noreply@github.com"
] | diligejy.noreply@github.com |
13f8c4aaec2537d3182c958f623f0606aed4b79b | a4d647f7cd0a872aa50997a2dd86d3e5248eee22 | /cst236_lab7/source/answer.py | 05a4074499b7380f9351b1aceee6646d54e73ac9 | [] | no_license | Derek132435/CST-236-Lab-7 | e16ecc41fc6f9532ca6b4bbb00f2f00aaa394bfc | ec9490817b3d9f25c25b4cefd8cbbd052c5fd664 | refs/heads/master | 2021-01-10T18:05:11.809067 | 2016-03-09T19:18:18 | 2016-03-09T19:18:18 | 53,429,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,127 | py | """
Source code for job stories
disabled pylint R0911: complete restructuring of logic_gate() required
disabled pylint R0912: complete restructuring of logic_gate() required
disabled pylint W0612: loop iterators for get_pi() and make_pi() have use as iterators
"""
# pylint: disable=R0911
# pylint: disable=R0912
# pylin... | [
"derek.edwards@oit.edu"
] | derek.edwards@oit.edu |
bf30ecc1bf45598458cd4f916f08fbc522ff63ba | 535e5dc366e341735a41eb238edb7947cd7b50ac | /lifelearn/patient/migrations/0002_auto_20160508_1642.py | 8bcc72079adfac46df8016b6efd21b63d811a381 | [] | no_license | cmcgorrill/LifeLearn | 4cea2db81566c5e3812f491dd8e30591044eafed | 766a23409d8f593ee0511d236ec68db59fa92cd6 | refs/heads/master | 2016-08-11T16:13:54.368889 | 2016-05-09T03:54:37 | 2016-05-09T03:54:37 | 54,943,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('patient', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='patient',
name='thera... | [
"roux.jesse@gmail.com"
] | roux.jesse@gmail.com |
982d4f6e3023e6001ed7e0fcb6cc57c492932ecc | d441c2ce07f716136ac8bfe58ca9c006f4704267 | /venv/Scripts/pip3-script.py | 27ab1ea95db1b78851381ff3965a533a4d693a4a | [] | no_license | a8990/RENTALO-TEST | f8969480b441813c5e4bd06fae4f3625c2fc5908 | 34a1ea40dce824cfb2e47d5e3296e14ca0e431fa | refs/heads/master | 2023-03-26T21:12:35.924438 | 2021-03-26T04:41:26 | 2021-03-26T04:41:26 | 314,912,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | #!"D:\Projects\Automation\Robot Framewrok\YAY\Public Site\SW\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.e... | [
"acontreras@yaymaker.com"
] | acontreras@yaymaker.com |
358df6fc85ad927aeb093c8a168989032af842fc | de375ee015b1a509d067ab1bf1ea2c942f1a02d6 | /utils/threshold_optim.py | 50c7b5435f38275ec05c9a64ae414c7328e08bdf | [] | no_license | StanHannebelle/US_Census | d615ab31bff578a9fd5ef325ccf738c99bd5e63f | fe0681c68f3667d570f4f52e3d01250f09067faf | refs/heads/main | 2022-12-23T13:29:08.380797 | 2020-10-05T18:07:01 | 2020-10-05T18:07:01 | 301,467,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | from sklearn.metrics import f1_score
import numpy as np
def from_proba_to_class(prediction, threshold):
if prediction < threshold:
return(0)
else:
return(1)
def threshold_optim(y_true, y_pred_proba):
f1_scores = []
thresholds = []
for threshold in np.arange(start=0.02, stop=1.0, ... | [
"stanislashannebelle@macbook-de-mso.home"
] | stanislashannebelle@macbook-de-mso.home |
82a5172ce5765b4a00ab899931ce861b85df356b | a74a4c55c4968ab5473aab0eaf946d2d01f44cbf | /hw1/dataloaders.py | cf3474dd6bb247e25a43d06b456aa0edf710136b | [] | no_license | Orisz/236781_deep_learning_hw1 | c99fa95c13a544423e121ba5705d3deea7727173 | a71ed85a8b4b0b54723a91b9cd34d8df0f2be8cb | refs/heads/master | 2020-11-26T14:41:20.901247 | 2019-12-19T17:46:01 | 2019-12-19T17:46:01 | 229,108,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,221 | py | import math
import numpy as np
import torch
import torch.utils.data.sampler as sampler
from torch.utils.data import Dataset
def create_train_validation_loaders(dataset: Dataset, validation_ratio,
batch_size=100, num_workers=2):
"""
Splits a dataset into a train and validat... | [
"noreply@github.com"
] | Orisz.noreply@github.com |
cff687a347f49ee8992090cf8a85cbf4532d8cb3 | 5088dd2452791e7e0de4f04058b8614498807a25 | /polls/views.py | ef258b11a257dbf95cdec0e8ad08247b2061c485 | [
"BSD-3-Clause"
] | permissive | Jsalaz1989/django-polls | f085b0d2de2cf0dc804c8bf9fbc0d7d5f28a190f | 58627ca9ae4ac60a37fa7d78625fc494c299a3b3 | refs/heads/master | 2020-08-26T15:50:36.933420 | 2019-10-23T13:17:42 | 2019-10-23T13:17:42 | 217,061,895 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,801 | py | from django.http import HttpResponseRedirect
from django.shortcuts import get_object_or_404, render
from django.urls import reverse
from django.views import generic
from django.utils import timezone
from .models import Choice, Question
class IndexView(generic.ListView):
template_name = 'polls/index.html'
co... | [
"jsalaz1989@gmail.com"
] | jsalaz1989@gmail.com |
5b883448d05f81d0162e29a3c7b9d303457da1de | 8d14aa6d59b3f48564149ead80f3bee5c8709bff | /newsApp/scripts/ht_news_link_scrapper.py | 09cc9f499d5a2697c152d5aaf1b9c6a276c040a5 | [] | no_license | hiteshrexwal/newsApp | 938f1b12c286fda49c837c8209582109f9797c38 | a50afd86509d460c1fa9faba6772e2fa25bbe2e9 | refs/heads/master | 2020-09-11T23:58:01.506034 | 2019-12-28T11:46:04 | 2019-12-28T11:46:04 | 222,233,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,470 | py | from django.conf import settings
import os,sys,django,json
from selenium import webdriver
from bs4 import BeautifulSoup
import pandas as pd
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'newsApp.config.settings')
ROOT_FOLDER = os.path.realpath(os.path.dirname(__file__))
ROOT_FOLDER = ROOT_FOLDER[:ROOT_FOLDER.rind... | [
"hiteshrexwal03@gmail.com"
] | hiteshrexwal03@gmail.com |
f90e35118bc900eb7fd7bae46ae226fb1c0c5d5b | 18fd2d9e1d191fef2f5f91150e02e28968c2e648 | /acousticsim/analysis/praat/wrapper.py | 281cac24338bbe9c2b0d64f529a1ec4c09a2873d | [
"MIT"
] | permissive | JoFrhwld/python-acoustic-similarity | 8f69366f1d8d019d7a6e8ebc489f54817f9640a3 | 50f71835532010b2fedf14b0ca3a52d88a9ab380 | refs/heads/master | 2021-01-21T12:49:36.635149 | 2017-05-15T23:38:28 | 2017-05-15T23:38:28 | 91,800,742 | 5 | 2 | null | 2017-05-19T11:50:00 | 2017-05-19T11:50:00 | null | UTF-8 | Python | false | false | 1,721 | py |
import os
from subprocess import Popen, PIPE
import re
from acousticsim.exceptions import AcousticSimPraatError
def run_script(praat_path, script_path, *args):
com = [praat_path]
if praat_path.endswith('con.exe'):
com += ['-a']
com +=[script_path] + list(map(str,args))
err = ''
text = '... | [
"michael.e.mcauliffe@gmail.com"
] | michael.e.mcauliffe@gmail.com |
4393f83676e7b9b87b4294e70af1dc4d3d9147e6 | fdbfd06bab128dd242b39fc8b2cb4291f14df2b2 | /55knock_py/knock_48.py | 1710a246c90f187b91fee54a52e0e891ee0c81db | [] | no_license | yuukou3333/study-python | c76823fc0df1ff859b225bfce90dfc36d863796f | a32dea6c64b948fa59c56496777d46a86405773a | refs/heads/main | 2023-02-19T09:37:16.757645 | 2021-01-23T01:19:14 | 2021-01-23T01:19:14 | 328,935,813 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | # 例外処理(try/except)
a = 0
b = 5
try:
print(a/b)
except:
print('zero division')
try:
print(b/a)
except:
print('zero division')
# 例外処理 ======================
# try:の下には行いたい処理を、
# except:の下にはraiseしたい回避策を。
# division・・・分け目
# except・・・例外
| [
""
] | |
e426a85f55e1f02841322d007b104aa78431c036 | 61d542f73c7906a114a7c2cf4f1500f5974c7eeb | /api/loader/apps.py | f6251984f34e5826cec2901c9d3c1926e67e9cff | [] | no_license | Santana-macharia/Disease-outbreak-prediction | 72fe22f8e17986d0db45ba4b4a079c9bcb97c87a | a97e011a7eceb4c8e8f5b12670c53f0ed1b9adcd | refs/heads/master | 2022-11-26T08:05:39.393183 | 2019-12-27T11:47:07 | 2019-12-27T11:47:07 | 167,023,897 | 0 | 1 | null | 2022-11-11T07:26:21 | 2019-01-22T16:06:43 | Python | UTF-8 | Python | false | false | 96 | py | from django.apps import AppConfig
class LoaderConfig(AppConfig):
name = 'api.loader'
| [
"root@DESKTOP-SNM.localdomain"
] | root@DESKTOP-SNM.localdomain |
f7d40a3b765a85931bf3b7925c51d531f1077f63 | 4a3ca65ba2228c20e3f04f3ab1538dd00f87e976 | /test/functional/interface_bitcoin_cli.py | 6557778c25bd257608b908cd051d40e465b6bd8a | [
"MIT"
] | permissive | bonoproject/Bonorum | dd5b29a80b41a8e9fc0e0311b11730b5bf6fb3c2 | d0dede6c416b812398a6c88cb2f54dad049c932e | refs/heads/master | 2020-12-20T16:41:40.978500 | 2020-06-08T12:04:16 | 2020-06-08T12:04:16 | 236,138,813 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,906 | py | #!/usr/bin/env python3
# Copyright (c) 2017 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test bonorumcoin-cli"""
from test_framework.test_framework import BitcoinTestFramework
from test_framework.u... | [
"60004952+bonoproject@users.noreply.github.com"
] | 60004952+bonoproject@users.noreply.github.com |
e03958b15c21ba4d88cb19941e55e1bc98cd51b9 | 3117c5e4a69b8486697c589ab3a033353be29f06 | /sRNAtoolboxweb/setup.py | fccede6fdb81e7f682d6f6ecc24eac6bafc6499d | [] | no_license | sert23/toolbox | 963f301e1af883a55dc11db9ac6372023d85de91 | a9af88a3164c5a6b5ace6a84a6b95d63265edf99 | refs/heads/master | 2023-09-01T01:46:05.808848 | 2021-11-19T16:41:25 | 2021-11-19T16:41:25 | 89,683,230 | 1 | 7 | null | 2022-12-26T19:46:46 | 2017-04-28T08:04:16 | Python | UTF-8 | Python | false | false | 1,113 | py | import os
from setuptools import find_packages, setup
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='srnatoolboxweb',
version='2.0.0',
packages=find_packages(),
python_modules=['manage'],
include_package_data=Tru... | [
"antonio.rueda-martin@genomicsengland.co.uk"
] | antonio.rueda-martin@genomicsengland.co.uk |
e7ad1f4287990ac072589fe752fdebb752383696 | e19b6cad1e0035307dc06fce3cca195cf9b2882d | /assignment7/denoised.py | cff11fe6abf6273dec54f42cfe13fdfe44520948 | [] | no_license | ghrahul/Computer-Vision-Practical-CS4111 | 13cf5b00ad3b1f515e47312989b7c0468761167b | f02aa3a4aa3396aa8857b4dece040052bda554aa | refs/heads/master | 2020-04-17T03:11:09.676417 | 2019-04-25T07:22:38 | 2019-04-25T07:22:38 | 166,170,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 707 | py | import cv2
import numpy as np
from matplotlib import pyplot as plt
img = cv2.imread('index.jpg',0)
#img = cv2.GaussianBlur(img,(5,5),0)
ret,th1 = cv2.threshold(img,127,255,cv2.THRESH_BINARY)
th2 = cv2.adaptiveThreshold(img,255,cv2.ADAPTIVE_THRESH_MEAN_C,\
cv2.THRESH_BINARY,11,2)
th3 = cv2.adaptiveThreshol... | [
"ghrahul2016@gmail.com"
] | ghrahul2016@gmail.com |
ff3b8c788d9f8fb092eb5e9315de1af5c03c17ca | c259bd9e4a570a1fa37949655530d778e5f5c46d | /mysite/.history/api/views_20211014221913.py | 04b9cb96204ba7896ab0e5bc6b0b85d122af5423 | [] | no_license | ritikalohia/django-rest-students | 0cc56f435b7b2af881adfd7cace54eef98213c57 | ca5f9f466fcd74fef8ce91f019bcb6e7d83c8e20 | refs/heads/main | 2023-08-15T21:51:18.988691 | 2021-10-14T18:19:04 | 2021-10-14T18:19:04 | 417,219,011 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,259 | py | from django.shortcuts import render
# Create your views here.
from rest_framework.decorators import api_view
from rest_framework.response import Response
from .serializers import NoteSerializer
from .models import Student
from api import serializers
@api_view(['GET'])
def getRoutes(request):
routes = [
{
... | [
"rtklohia@gmail.com"
] | rtklohia@gmail.com |
4531d971cc1af5696eecf76e03d098762f85a47e | 2481d562b7351633ec7c90f1ccbfd4127fd7b3e7 | /src/log_FQT.py | 7fad463d6e4ea68dc2dcb0f6e388fcfb4c375fc9 | [] | no_license | marshalltekell/stockmayerPE | 4f5353f18920112fc1e9b04a8ae25378bfbef97d | 78bf3723b24e207766b6b2c04799ab07b1ca756d | refs/heads/master | 2023-06-08T23:31:24.821357 | 2021-06-24T14:06:16 | 2021-06-24T14:06:16 | 310,038,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,364 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Jul 29 21:11:45 2020
@author: marshalltekell
Calculate the self intermediate scattering function for log time sampling
"""
# Import packages and scripts
import numpy as np
import cfunctions
from analysis_functions import gen_q
from analysis_functions... | [
"marshalltekell@dyn-160-39-131-105.dyn.columbia.edu"
] | marshalltekell@dyn-160-39-131-105.dyn.columbia.edu |
1654ef69bd67a4753dd53975077127580d391a60 | 4bc5afd38e6ecbe5fd5bbbafcbd15b7a68689ce3 | /python/assi2.py | 5fb2f1512d5fdddad57c5276b84747ecb199640e | [] | no_license | aman0511/software | 71ae7db43d422d63f58fc5b4e7e49c4d986bc399 | 76fdb551e5b4df00aa6ac5804f342ee1c9940be3 | refs/heads/master | 2016-08-12T06:06:36.290495 | 2013-11-11T14:43:09 | 2013-11-11T14:43:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | balance=int(raw_input())
annualInterestRate=float(raw_input())
monthlyinterestRate=annualInterestRate/12
lowest=0
while balance>lowest:
month=1
while month<=12:
unpaidbalance=balance-lowest
interest=unpaidbalance*monthlyinterestRate
balance=interest+unpaidbalance
month=month+1
... | [
"amankumar0511@gmail.com"
] | amankumar0511@gmail.com |
a4ec36815eec0ec5bc342d2d73f2e5500117525e | d8ec2af00801fc0705ebc7ca3d975356f8f489e1 | /estimators/utils.py | 89bd2697a3158c50f1ce1df7a6aa66452996f837 | [
"MIT"
] | permissive | stevenwong/time_varying_neural_network | 8c1275a5ce34293d29680cce2dd0bf7e1eaa5231 | d804a027db7804d8db1351bf750e6f29710a1bc3 | refs/heads/master | 2022-11-19T06:44:15.154764 | 2020-07-16T12:38:58 | 2020-07-16T12:38:58 | 279,851,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,811 | py | """ utils
Copyright (C) 2020 Steven Wong <steven.ykwong87@gmail.com>
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to u... | [
"steven.ykwong87@gmail.com"
] | steven.ykwong87@gmail.com |
9380dca2adb065f28eb1dc5d0c6de4b883c6b82f | 1d032d8c525ba8102044d84093a1d22a70b9519e | /bungie_net_api/utility.py | 4d0a33fdd98e75f18ec21ec2dfed3eadadcecb8b | [
"MIT"
] | permissive | xirdneh1968/bungie_net_api | 0facc0d453d13649ede582860670fa5f944192d9 | eb47fadff9c17ff0e68623bf34c6944604a897ee | refs/heads/master | 2020-09-10T15:11:27.582927 | 2019-11-14T23:56:57 | 2019-11-14T23:56:57 | 221,734,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | def handleArgs():
parser = argparse.ArgumentParser(description='Place your application description here.')
# parser.add_argument('-n','--name', help='display name from www.bungie.net',required=True)
# parser.add_argument('-c','--character_class', help='Destiny character class [titan|warlock|hunter]',require... | [
"bret@zumina.com"
] | bret@zumina.com |
4f3b225cd061b97dbd5cab67c1e7df50c8b08d6d | 5fd2d395b9f61765d327b2cdf1b02355c48f9c00 | /code/gl/matrix_list.py | be717f6a0166fe617f718cc82f0c495ed81413c5 | [
"Apache-2.0"
] | permissive | 1801573781/wind | 4a65122f7456a27f4711daa53e14a7b2c23e3851 | f7eaa84a9d98d081bf170f6ef6bff3c94a999c86 | refs/heads/master | 2023-03-19T05:00:20.492999 | 2021-03-15T14:08:22 | 2021-03-15T14:08:22 | 327,647,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | """
Function:matrix-list 互相转换
Author:lzb
Date:2021.02.20
"""
import numpy as np
def list_2_matrix(lst):
"""
将 list 转换为 matrix, row = lst.len, col = 1
:param lst: 待转换的 list
:return: 转换后的 matrix
"""
count = len(lst)
arr = np.zeros([count, 1])
for i in range(0, count):
arr[i][0... | [
"1801573781@qq.com"
] | 1801573781@qq.com |
c8faa940d1300603c0b8f53403c63ad49cba435f | 3b2263338270b13ba4c6a637b0696ed731af5497 | /python/hrpsys-plot/old/plotter.py | 4b2806c9b27e01d5d3a84b3d45947f91b27306f9 | [] | no_license | eisoku9618/kuroiwa_demos | c124f48160d21b91ec4e809f4a1b2cc160626861 | dc2362d38d84e5476793a97494c38fcc90df8490 | refs/heads/master | 2020-12-12T23:36:52.086657 | 2020-06-01T13:34:09 | 2020-06-01T13:34:09 | 44,500,420 | 0 | 6 | null | 2020-06-01T13:34:12 | 2015-10-18T23:09:43 | Jupyter Notebook | UTF-8 | Python | false | false | 18,013 | py | #!/usr/bin/env python
import matplotlib.pyplot as plt
from matplotlib.backends.backend_pdf import PdfPages
import csv, argparse, numpy, math, time, struct
class DataloggerLogParserController:
def __init__(self, fname, title, hand_name, ljn):
self.fname = fname
self.portList = ['RobotHardware0_q', ... | [
"kuroiwa@jsk.imi.i.u-tokyo.ac.jp"
] | kuroiwa@jsk.imi.i.u-tokyo.ac.jp |
a0f95763669e8ca1b47951e4233273126773b10d | 26b707bbb23a5899f21c7c606ce5fc3539abb9a7 | /meterpreter/windows_x86/scode64.py | 8333bf1531a12b9e32eaaf8069536e5c693665df | [
"MIT"
] | permissive | cobranail/redteam | 6e9178270eafdc63288f3354f5256779f67735a6 | a21091ac0aef289b61dd05771fff7296fb7c4e7e | refs/heads/master | 2021-03-05T00:09:45.913384 | 2021-02-03T15:15:33 | 2021-02-03T15:15:33 | 246,078,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,651 | py | import struct, socket, binascii, ctypes, random, time
shellcodepy, var1 = None, None
def func1():
try:
global var1
global datapack
var1 = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
var1.bind(('0.0.0.0', 8432))
var1.listen(1)
datapack,_ = var1.accept()
datahandler = struct.pack('<i', datapack.filen... | [
"cobranail@gmail.com"
] | cobranail@gmail.com |
119c2188cf82e3c567bfc1b76fd3046149fe81dc | f7970c453ff203978830068ec1d43af82b9cdd9d | /orgplist.py | 91eddd29b3c207001b6aab396d18b97a72e278f4 | [
"MIT"
] | permissive | Varriount/orgextended | fd8546f6ac2cdbc12ffaa6ffefb0183d074e028c | 10eb19c934c6b524d37d019df58a96910010a3b2 | refs/heads/master | 2023-05-06T16:54:10.046347 | 2021-06-06T18:29:14 | 2021-06-06T18:29:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,462 | py | import sublime
import sublime_plugin
import os
import base64
import urllib.request
import OrgExtended.asettings as sets
import OrgExtended.orgutil.util as util
import uuid
import re
import logging
from OrgExtended.orgutil.addmethod import *
log = logging.getLogger(__name__)
class ExclusivityLists:
def __init__... | [
"ihdavids@gmail.com"
] | ihdavids@gmail.com |
a5e14ad2c061f0da44911042f3f9e6acc294beed | 97dfe708031ce9d52c3309b41a8c458d7846096c | /setup.py | 0ca4d1e6521e23a70ad2dd4b4444b1d1c1098d50 | [] | no_license | trainapi/trainxtract | 2af79a9dbb7a35a374934d1968591c32fbb23f0b | f5c5078a20c702d0399906bbb3c07f61058a1c72 | refs/heads/master | 2021-08-19T07:42:26.091190 | 2017-11-25T08:02:44 | 2017-11-25T08:02:44 | 111,971,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | from setuptools import setup, find_packages
import itertools
options = dict(
name='trainxtract',
version='0.0.1',
packages=find_packages(),
license='MIT',
install_requires = ['pandas', 'click'],
entry_points = {
'console_scripts' : [
'trainxtract = trainxtract:run_app',
... | [
"jan.pipek@gmail.com"
] | jan.pipek@gmail.com |
f3c4838fca44de0a9cae738f16a1206c3fece75b | 4985ea8eeacb3199dd9ff3df510fbf5ea7ff8159 | /setup.py | 024d3c7908bbc24bf1c30c2e196722c3c00538e3 | [
"BSD-3-Clause"
] | permissive | maxschalz/scripts | 9b9a72af56f5eadbbb58a6ca7f88978968c06789 | e29207b276a07d4ed221b184142961459aa044f1 | refs/heads/main | 2023-08-25T12:38:21.780709 | 2021-09-03T07:52:04 | 2021-09-03T07:52:04 | 384,754,445 | 0 | 1 | BSD-3-Clause | 2021-09-03T07:52:05 | 2021-07-10T17:29:28 | Python | UTF-8 | Python | false | false | 749 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from setuptools import setup
def main():
"""Main function."""
setup(
name="scripts",
version="0.1",
description="Scripts to generate Python and other scripts",
author="Max Schalz",
url="https://github.com/maxschalz/scripts... | [
"58850267+maxschalz@users.noreply.github.com"
] | 58850267+maxschalz@users.noreply.github.com |
e94bbb6a791401e2764951035b0805e4e59c5088 | e38f7b5d46fd8a65c15e49488fc075e5c62943c9 | /pychron/hardware/tasks/hardware_preferences.py | dc6f92027d74b684f471ec51b37f7c612eac702b | [] | no_license | INGPAN/pychron | 3e13f9d15667e62c347f5b40af366096ee41c051 | 8592f9fc722f037a61b0b783d587633e22f11f2f | refs/heads/master | 2021-08-15T00:50:21.392117 | 2015-01-19T20:07:41 | 2015-01-19T20:07:41 | 111,054,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,953 | py | #===============================================================================
# Copyright 2013 Jake Ross
#
# 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/license... | [
"jirhiker@gmail.com"
] | jirhiker@gmail.com |
4759bfad0918d252da4aefd66942980c7a6a4d52 | f74bb16bb01f4081e0cbacbd31c6497d7be3c292 | /Iple/urls.py | 9078c5f96569d758ad00a8602012928b39617272 | [] | no_license | Iple5153/Iple | 3e7a857a2df2256ffa1f599034b73eb0f8aa99aa | a7535cddc71dc61c12e4c72d70bb2e63d0e2360e | refs/heads/master | 2020-07-11T18:01:24.233837 | 2019-08-27T03:13:49 | 2019-08-27T03:13:49 | 204,610,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | from django.conf.urls import url, include
from django.contrib import admin
from Iple import views as Iple_views
urlpatterns = [
url(r'^account/', include("accounts.urls")),
url(r'^$',Iple_views.login_redirect, name='login_redirect'),
url(r'^admin/', admin.site.urls),
] | [
"maxi_5153@hotmail.com"
] | maxi_5153@hotmail.com |
fd7417f444e9f44605e2f25b00a05262943ad7b6 | 19336357b8d5529937fa39851e779bc60b329fe5 | /timar_verkefni/sequence.py | 405c64012554cacb915433092fc8ddd3c6919499 | [] | no_license | gudmundurgh/Forritun | 5c3b671352e2bb6b58f5d14fdd82771c70a64a1e | b5ad31c414f3aadd3c8c4eeb37c5cdaa6b354ef1 | refs/heads/master | 2020-07-20T10:31:57.514082 | 2019-09-05T19:07:08 | 2019-09-05T19:07:08 | 206,625,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | #design an algorithm that generates the first n
#numbers in the following sequence 1,2,3,6,11,20,37, ... , ...
#Sequence where first three are known 0,1,2. each after that is
#sum of last three
#ask for a number to determine the length of the sequence
#start with first three that are known and print them out
#itera... | [
"gudmundurgisli@gmail.com"
] | gudmundurgisli@gmail.com |
d6d626923ef04bf689ed1c94acefc6e1aeede14f | 7acd9a2b7fb7ed41f6a07767f3aebb22f71f1cf7 | /commands/Setup.py | 9f32bc9d2f34088001bfabc0cbed6412daf5b840 | [
"MIT"
] | permissive | mlregester/DiscordCalendarBot | d009c9afc4db9ac702535b85653d0adda452a75b | 6fe3e05f0e9313f79380a8cf6a41758863fb5d97 | refs/heads/master | 2023-05-30T06:27:03.544756 | 2021-03-18T11:57:45 | 2021-03-18T11:57:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,088 | py | import discord
from .CommandBase import CommandBase
import sqlite3
class Setup(CommandBase):
"""
Class that contains all commands regarding Setup
- new, update
"""
_commandsManager = None
_bot = None
def __init__(self, commandsManager):
self._commandsManager = commandsMana... | [
"papsop@outlook.com"
] | papsop@outlook.com |
11a438d687059099c0b913d63e20da702467ec71 | bb3829688d62cdb81579a3eeef28562f80129a97 | /General Problems/sok.py | f934c364f195765fb265e435ce7a28d93f4d0919 | [] | no_license | ScienceMoo/Kattis | 818aca914de3f31b5d3e94c613c1bf0f4c25ee74 | fa3146d5ab099ffa8256c5aee7a00327673788b7 | refs/heads/main | 2023-08-02T07:07:19.792394 | 2021-09-10T14:27:52 | 2021-09-10T14:27:52 | 302,513,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | A, B, C = map(int, input().split())
I, J, K = map(int, input().split())
max_drinks = min((A / I), (B / J), (C / K))
result = ((A - (I * max_drinks)), (B - (J * max_drinks)), (C - (K * max_drinks)))
print("%.6f %.6f %.6f" % result)
| [
"marie.cornellier@mail.mcgill.ca"
] | marie.cornellier@mail.mcgill.ca |
dce9b598c5fdda61c98c27196ecb87fbc9e076f9 | fcf390e916156bd85d32d36e55ce42d7bbfdf10f | /greedy/p_96_1.py | cbab26cfbaf09706434036cabb39d51273f3ced7 | [] | no_license | mingmang17/Algorithm-Team-Notes | 54857766dd951121a2627b2cd51e25166b0a39c1 | 7d2c354f8c360ed57142d867fc5c1a6d0b8287f5 | refs/heads/main | 2023-02-25T16:14:23.888273 | 2021-02-04T12:37:32 | 2021-02-04T12:37:32 | 329,576,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | #숫자 카드게임, 각 행마다 작은수를 뽑아 그중에 제일 큰 수 구하기
#n == 행, m == 열
n , m = map(int, input().split())
result = 0
for i in range(n):
data = list(map(int, input().split()))
min_value = min(data)
result = max(result, min_value)
print(result) | [
"noreply@github.com"
] | mingmang17.noreply@github.com |
cb99d9c11afa3381a3ffef4cf37286743cd3c301 | 7fcb2ea78301f4d1f1e81192a8cbdeeff993fe9d | /Innovaccer.py | 595820b44ad68f039fc764d822f9b6ef4b4edc0f | [] | no_license | Anupam13/Innovaccer-Analytics-Assignment | aae9efb687be528e362bbea9a93b67525b05bdc5 | defe0a98570e3be79ba878de9765f5a84cee5416 | refs/heads/master | 2021-04-28T07:02:35.615011 | 2018-02-20T19:19:51 | 2018-02-20T19:19:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | #import pandas library
import pandas as pd
x = pd.read_csv('input.csv')
#Separating strings for first and last name, and then taking the first part of each string .
last = x.ln.str.split('\s+').str[0]
first= x.fn.str.split('\s+').str[0]
#creating a column 'name' and adding it to dataframe.
name = first + ' ' + ... | [
"noreply@github.com"
] | Anupam13.noreply@github.com |
8d67c3ff4bde0f3beed1d1933e2bba0fb90b5dde | 1f2204bb09d5191b72fe6abfd2b335fba425d749 | /Programmaers/Level1/2016년/Solution.py | 585bce8e281578ecb6c19118acbe6042a41aa7a5 | [] | no_license | KimJinHye0n/python | 328b126ab575425eb9a9706a47956928185cc73e | 82036225beb24c999b1b3251fc9eacf1385cb789 | refs/heads/master | 2023-06-18T18:05:07.923077 | 2021-07-06T03:45:43 | 2021-07-06T03:45:43 | 272,677,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | def solution(a, b):
day = ['THU', 'FRI', 'SAT','SUN', 'MON', 'TUE', 'WED']
days = [31,29,31,30,31,30,31,31,30,31,30,31]
x = 0
for i in range(1,a) :
x+=days[i-1]
x = x+b
y = x % 7
answer = day[y]
return answer | [
"63627253+KimJinHye0n@users.noreply.github.com"
] | 63627253+KimJinHye0n@users.noreply.github.com |
3d71477099cbc4b93820335d2b9ffb4a7e41a779 | 9972675f285280948dd6becc466bc2f2d7efee8a | /swea/tree/practice/hip.py | 3c7f86ee2afdab51a626dd8238d055f109a873ee | [] | no_license | dowookims/ProblemSolving | 308793055e8c1c247b7e00cb89d954d9a5eacf25 | 2183965b222afc7b5b316b9f53b04119384f8b24 | refs/heads/master | 2020-04-23T13:02:47.548120 | 2019-04-04T09:02:52 | 2019-04-04T09:02:52 | 171,189,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 823 | py | '''
선형 자료구조에서 priority queue 는 선형 자료에서 O(n^2)를 차지해서 이를 대체하기 위해 나온데 힙
힙은 두가지 조건이 맞춰줘야 하는데
1. 구조적인 모습이 완전 이진트리여야 함(앞에서부터 완전히 채워져야 함)
2. 내부 논리 모습은 부모의 노드가 자식보다 항상 크거나 작아야 함(일관성)
최대 힙 : 키 값이 가장 큰 노드를 찾기 위한 완전이진트리
루트가 가장 큰 값을 가지고 있음.
최소 힙 : 최대 힙의 반대
삽입, 삭제가 존재하고, 구조를 유지시켜주게 만들어야 하는게 개발자의 숙명
힙은 프라이어티를 ... | [
"kaei2574@gmail.com"
] | kaei2574@gmail.com |
f66c5cd282231fa309042fb5276288e8aaf1d7d6 | 5fa70b6456e48c8489fb9dd91d15154260b67515 | /labs/lab-9/lab-9.1-implementing-a-restricted-boltzmann-machine/9.1-implementing-a-restricted-boltzmann-machine.py | 395dc142f873e3f8423f28dbb69ba495a17621ad | [
"MIT"
] | permissive | rubenandrebarreiro/fct-nova-deep-learning-labs | 4d56a1cd662ee594fa8846e7e5177ffc188bf46b | c17316f3cea56a6d6a17c769828a9a5985753edf | refs/heads/main | 2023-04-28T14:50:59.083805 | 2021-05-26T13:19:43 | 2021-05-26T13:19:43 | 348,350,440 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,192 | py | """
Lab 9.1 - Implementing a Restricted Boltzmann Machine (R.B.M.)
Author:
- Rodrigo Jorge Ribeiro (rj.ribeiro@campus.fct.unl.pt)
- Ruben Andre Barreiro (r.barreiro@campus.fct.unl.pt)
"""
# Import the Libraries and Packages
# Import the Operative System Library as operative_system
import os as operative_system
# D... | [
"r.barreiro@campus.fct.unl.pt"
] | r.barreiro@campus.fct.unl.pt |
614f98f72413a877c4fe9ce352b029a4c7c75b3e | c72b6b2e7b7421505b88489d6026f8c5226fbf31 | /workspace/config/testt.py | 1bdb97227584c696187a10a8df60aed275cf6b00 | [] | no_license | amadjarov/thinkPython | 1185fe8ee5d47ecba56c251f0c5d537fe82b5b18 | 7e8fb3a96fa6607587efac07abff04a342c15f96 | refs/heads/master | 2021-01-22T16:25:18.790251 | 2014-05-29T09:54:11 | 2014-05-29T09:54:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | class DoesNotCompute(Exception):
""" Easy to understand naming conventions work best! """
pass
def this_function(x):
""" This function only works on numbers."""
try:
print x ** x
except TypeError:
raise DoesNotCompute
this_function("g") | [
"amadjarov@melontech.com"
] | amadjarov@melontech.com |
2a931a2b128cd6b214a57ea37919bb9593f4ce8c | 2b09e6e7d25eadf68b8827a5e61b2c6167a2d6bb | /场景识别/run3/train_all.py | 5920a9e1369f7ab0cc34a817cc455ad1872e9cd5 | [] | no_license | Yogurt404/ML-exercise | dc14cdfe8720b1b5914567ff20de5871135df9ae | 8e709ca0aadf840fbd7c27fc848842e76130747a | refs/heads/master | 2022-11-22T11:45:53.959147 | 2020-07-16T23:16:52 | 2020-07-16T23:16:52 | 277,318,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,226 | py | import glob
import numpy as np
import tensorflow as tf
from data_loader import DataProvider
from model import ResNet50, VGG19
def logits_accuracy(logits, ys):
pred = tf.nn.softmax(logits)
pred_argmax = np.argmax(pred, -1)
ys = np.argmax(ys, -1)
accuracy = np.mean(np.equal(pred_argmax, ys))... | [
"noreply@github.com"
] | Yogurt404.noreply@github.com |
b6a70862a3afa6a53a390ca607604748cf30a4c9 | b28ccf3661c7e30b25844924c11b6cb4b175a8dd | /quickstart/migrations/0016_auto_20210312_0145.py | 09d4e7d4be8278710119e5167ac9acf3cc4c4ec1 | [] | no_license | TranCongMinh3006/new_recommendation_system_api | 2dbb4f965692025e6f1323942dcb83d5bd8a57fa | 4141429e4759a936b9d488a4b6c551aaaa7629ea | refs/heads/master | 2023-03-26T02:53:40.642325 | 2021-03-23T05:19:45 | 2021-03-23T05:19:45 | 348,642,260 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 719 | py | # Generated by Django 3.1.2 on 2021-03-11 18:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('quickstart', '0015_auto_20210312_0118'),
]
operations = [
migrations.CreateModel(
name='Article_Tags',
fields=[
... | [
"minhlinhtinhtp@gmail.com"
] | minhlinhtinhtp@gmail.com |
7478d3f5255910a2c4f89ab0b4e2d8e85a403c5e | eb2998606d9b8e6ad9ecdb5a602f2060cb9f5d55 | /scripts/diffScripts/diffDiagnostic.py | 735aee01bffb7deb54401bc8aeffd1e1f0c47435 | [] | no_license | hirokimoto/CodeAnalysis | 5faa2fdf8ce2502c2d9434e2127fa0871f85e941 | 5f8bc2962dfc366c5eafdfac17801f56decc857a | refs/heads/master | 2021-01-19T15:50:02.866043 | 2017-04-14T18:39:10 | 2017-04-14T18:39:10 | 88,230,836 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,014 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
#===================================================================================================
# This script checks if the diff method has a likelihood of mismatches
# It does so by doing a sort of all filenames, and for each filename
# Finding its match, and i... | [
"hiroki.moto.pro@outlook.com"
] | hiroki.moto.pro@outlook.com |
988d982f36e8a57ee5970b6516e61e75ee50e644 | 7f5a302eb7d93dc528f5c3a39d74f98995babbe4 | /simplemoc/urls.py | eb8ee858fffb3a085d38a3d2fa2efe50e68cb49b | [] | no_license | dennyerikson/simplemoc | d03a11eb63959890648c5801df3bb8a93cb1b490 | e4199dab66e3cbe23d39765b30dcd79d5eae31bb | refs/heads/master | 2020-03-23T22:54:00.859623 | 2018-07-31T19:33:35 | 2018-07-31T19:33:35 | 142,205,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 905 | py | """simplemoc URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-b... | [
"dennyeriks00on@gmail.com"
] | dennyeriks00on@gmail.com |
393bf9e0c5b1a2eeb5a1205774b81bb40ec05e5d | 4c1e1961b93ef217f60970861a80683406937853 | /NLP/wsgi.py | a071f7a73d36c89c69d51b3e3d2dee564e58df01 | [] | no_license | RajatSran/News_analytics | 91d0cbe126ad5ce80c716eac7199bde5af888628 | c675a82e5d5abb49b0453dcfb0ca27a2c3d8cc37 | refs/heads/master | 2023-06-12T03:07:19.183348 | 2021-07-09T04:28:30 | 2021-07-09T04:28:30 | 384,320,287 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for NLP 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/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJA... | [
"rajatsran27@gmail.com"
] | rajatsran27@gmail.com |
857bfc2483daf1a2e52e74bddecde55c78c698f1 | 334d0a4652c44d0c313e11b6dcf8fb89829c6dbe | /checkov/dockerfile/checks/RootUser.py | 8989d2c4ec635876e77148d43dddbbd0dbf81b70 | [
"Apache-2.0"
] | permissive | schosterbarak/checkov | 4131e03b88ae91d82b2fa211f17e370a6f881157 | ea6d697de4de2083c8f6a7aa9ceceffd6b621b58 | refs/heads/master | 2022-05-22T18:12:40.994315 | 2022-04-28T07:44:05 | 2022-04-28T07:59:17 | 233,451,426 | 0 | 0 | Apache-2.0 | 2020-03-23T12:12:23 | 2020-01-12T20:07:15 | Python | UTF-8 | Python | false | false | 723 | py | from checkov.common.models.enums import CheckCategories, CheckResult
from checkov.dockerfile.base_dockerfile_check import BaseDockerfileCheck
class RootUser(BaseDockerfileCheck):
def __init__(self):
name = "Ensure the last USER is not root"
id = "CKV_DOCKER_8"
supported_instructions = ["US... | [
"noreply@github.com"
] | schosterbarak.noreply@github.com |
94008038e6585d268e8b9b63aee85701c8d54241 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03035/s756178683.py | 4862307df990f7a47b56172da80c6d031f7cc917 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | A, B = map(int, input().split())
if A >= 13: print(B)
elif 6 <= A <= 12: print(B // 2)
else: print(0) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
152796a4eb72834615b2b8ae280d205cf0ef3217 | b7f4bd91af74cf75991ff31c39d7eddbb77062d6 | /tallerDeLaSemana/ejercicio de semana.py | 8e68d7be9e82e1d63d7353fea11a2de967c633a8 | [] | no_license | andresf20031/TrallerDeLaSemana | 3a0efe1ee69d380600fcac5c5892b10880e70a0d | 8f8d4f56b5fc90812ff197b65794679dc022f590 | refs/heads/main | 2023-03-29T06:45:37.653130 | 2021-04-07T03:26:39 | 2021-04-07T03:26:39 | 355,399,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 983 | py | nombre = input("digite su nombre: ")
Edad = float(input("digite su edad: "))
if Edad > 5:
print("1 suma/ 2 resta / 3 multiplicacion / 4 division")
tipoOpe = float(input("que tipo de operacion desea realizar: "))
num1 = float(input("digite el primer numero: "))
num2 = float(input("digite el segun... | [
"noreply@github.com"
] | andresf20031.noreply@github.com |
3de61b26accc3bdb5e548e58de7fb98fff68e27d | d4bfdb9a39f520c35db5e0557387cdc1c8599de3 | /speakeasy/winenv/defs/windows/windows.py | 3cb8f6a85ab08bb31371eee64c69c367ea4b4c09 | [
"MIT"
] | permissive | Ju-87/speakeasy | 4953e720a07843db940a84360241b3397607e8fb | 5bf4ead5630a14442a4bf9b387e2bdfe4128c5a9 | refs/heads/master | 2022-12-14T15:25:20.192702 | 2020-08-26T22:13:37 | 2020-08-26T22:13:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,905 | py | # Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
from speakeasy.struct import EmuStruct, Ptr
import ctypes as ct
NULL = 0
ERROR_SUCCESS = 0
ERROR_FILE_NOT_FOUND = 2
ERROR_PATH_NOT_FOUND = 3
ERROR_ACCESS_DENIED = 5
ERROR_INVALID_HANDLE = 6
ERROR_FILE_EXISTS = 80
ERROR_INVALID_PARAMETER = 87
ERROR_INSUFFICIENT_... | [
"10660782+drewvis@users.noreply.github.com"
] | 10660782+drewvis@users.noreply.github.com |
ee6e0078648f5af14f5e6850f8790d9047604a60 | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /google/ads/googleads/v8/googleads-py/google/ads/googleads/v8/services/types/keyword_plan_ad_group_service.py | 00babde924868763787da18ec7df0fa0a2c36c13 | [
"Apache-2.0"
] | permissive | oltoco/googleapis-gen | bf40cfad61b4217aca07068bd4922a86e3bbd2d5 | 00ca50bdde80906d6f62314ef4f7630b8cdb6e15 | refs/heads/master | 2023-07-17T22:11:47.848185 | 2021-08-29T20:39:47 | 2021-08-29T20:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,844 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
c64c3f771f72a0083093070bd3a23e358982cbb0 | faccafd17f9d03e098c11229afd02372364fa3a2 | /tsplib95/tsplib95/distances.py | 34a7875c3ffb14df60d8bf07556a170f414107d2 | [
"Apache-2.0"
] | permissive | michael-ritter/assignments-ma4502-S2019 | e43f7f7bc441005f1e159d4d97d69c18154830df | dd40371d72a2cc8c8c3b505d073e02dbe1bbec49 | refs/heads/master | 2023-01-07T12:13:25.768040 | 2021-10-11T14:34:06 | 2021-10-11T14:34:06 | 192,584,481 | 0 | 0 | Apache-2.0 | 2022-12-26T20:39:15 | 2019-06-18T17:26:26 | JavaScript | UTF-8 | Python | false | false | 4,101 | py | # -*- coding: utf-8 -*-
import functools
import math
from . import utils
def euclidean(start, end, round=utils.nint):
"""Return the Euclidean distance between start and end.
:param tuple start: *n*-dimensional coordinate
:param tuple end: *n*-dimensional coordinate
:param callable round: function to... | [
"michael.ritter@tum.de"
] | michael.ritter@tum.de |
17c6e9dadfb79ac29f61359f0601cadb2695f515 | 44e7b37532866e32ecc64bc39a435fee07604409 | /Backend/accessdb.py | 41e62c5edb9bc0ad200574768ff1bac45fc84205 | [] | no_license | saanville/gpt3-text-generation | 4e4a4d271c8b8e1d4648e52df5018c3d57f15970 | a4e63c93f5150676f08f9426f6a3599a310f7890 | refs/heads/master | 2023-06-29T17:32:50.771737 | 2021-08-03T07:12:13 | 2021-08-03T07:15:36 | 392,225,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | import sqlite3
conn = sqlite3.connect('res.db') # You can create a new database by changing the name within the quotes
c = conn.cursor() # The database will be saved in the location where your 'py' file is saved
cursor = conn.execute("SELECT * FROM RESPONSES")
for row in cursor:
print("ID = ", row[0])
... | [
"hassaan.butt9999@outlook.com"
] | hassaan.butt9999@outlook.com |
760d6d158cc7cb0dbb7d6a1b679e2e04aef1b9cf | 13faa0d553ed6c6a57791db3dfdb2a0580a1695b | /codeforces/509-B/509-B-9647351.py | cc802213c7c9331abad058b7e8f889c9c36ca6d2 | [] | no_license | kautsiitd/Competitive_Programming | ba968a4764ba7b5f2531d03fb9c53dc1621c2d44 | a0d8ae16646d73c346d9ce334e5b5b09bff67f67 | refs/heads/master | 2021-01-17T13:29:52.407558 | 2017-10-01T09:58:23 | 2017-10-01T09:58:23 | 59,496,650 | 0 | 0 | null | 2017-05-20T17:27:18 | 2016-05-23T15:56:55 | HTML | UTF-8 | Python | false | false | 287 | py | n,k=map(int,raw_input().split())
a=map(int,raw_input().split())
l=min(a)
if(max(a)-min(a)>k):
print "NO"
else:
print "YES"
for i in range(n):
for j in range(l):
print 1,
for j in range(l,a[i]):
print j-l+1,
print "" | [
"kautsiitd@gmail.com"
] | kautsiitd@gmail.com |
200263997717b99b17f743c02a8f34453f4f5c84 | a2d36e471988e0fae32e9a9d559204ebb065ab7f | /huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_value_list_request_body.py | 4bc66144328d7383b9ed3acc25cc45db5dd9dbba | [
"Apache-2.0"
] | permissive | zhouxy666/huaweicloud-sdk-python-v3 | 4d878a90b8e003875fc803a61414788e5e4c2c34 | cc6f10a53205be4cb111d3ecfef8135ea804fa15 | refs/heads/master | 2023-09-02T07:41:12.605394 | 2021-11-12T03:20:11 | 2021-11-12T03:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,143 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class CreateValueListRequestBody:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict):... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
f0fff6f409a250fa5d4ec64918ee04069119729b | 3189baaebb1886cd1ad0c95190bf9f474c32fedf | /tf_throttle/build/catkin_generated/generate_cached_setup.py | f758534ead4a148a333ca4102bec7180fee8258d | [
"MIT"
] | permissive | xplorer-robot/xplorer | e43064aaa38e1fc3ee199c515c0560abe1dc94e0 | 51e43613017455331864a166b1bb830819e823a0 | refs/heads/master | 2020-04-10T11:23:18.328166 | 2018-12-09T00:48:19 | 2018-12-09T00:48:19 | 160,607,123 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,347 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/kinetic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.... | [
"xplorer.wvu@gmail.com"
] | xplorer.wvu@gmail.com |
f710559225cd704dfaef2768d72c3a02a7523ec9 | 87871363fac34680ea2a1a1fbe5ac37beca38f40 | /chapter 2/chapter2.py | 882a468ddb6f25d9ba48a70158270ff690f1b0cf | [] | no_license | summitwolf/PYExplore | f2495d5253eb77a3e949574cb5c5cbcb62b7b895 | 5fb98580beff1041c73c55be133d30f8645ad5cb | refs/heads/master | 2020-04-20T09:52:21.821504 | 2019-02-09T00:21:05 | 2019-02-09T00:21:05 | 168,776,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | hours = int(input("Hours worked: "))
rate = int(input("Hourly rate: "))
print("Gross pay: " + str(hours*rate))
| [
"noreply@github.com"
] | summitwolf.noreply@github.com |
1aefe7317d6774d38cf1df3bcdd761e9c29e18c4 | 84042dbca99df46a707e50a988169391e7be9d4b | /1353_a.py | e017d7eb509a153c4abb7d05e155f3794298745b | [] | no_license | alex216/codeforce | d166d51985363f7d9f458a65c3a08171580da998 | 9d01b8e0f59bca9b769c4b2ce88d6fe36f8d3efb | refs/heads/master | 2023-07-23T19:39:18.914372 | 2023-07-12T02:04:39 | 2023-07-12T02:04:39 | 264,169,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | t = int(input())
while t:
n,m = map(int,input().split())
if n == 1:
print(0)
elif n == 2:
print(m)
else:
print(2*m)
t -= 1
| [
"yyliu0907@gmail.com"
] | yyliu0907@gmail.com |
c49023ff5224e1af90c7b2a2674dea123f28e695 | 30227ff573bcec32644fca1cca42ef4cdd612c3e | /leetcode/array_and_string/array/plus_one.py | 44d2298d96b9ab1d4be89d99d9d0bc0f3e2f88eb | [] | no_license | saurabh-pandey/AlgoAndDS | bc55864422c93e6c93b8432e483394f286ce8ef2 | dad11dedea9ceb4904d6c2dea801ce0172abfc81 | refs/heads/master | 2023-07-01T09:12:57.951949 | 2023-06-15T12:16:36 | 2023-06-15T12:16:36 | 88,239,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,690 | py | #URL: https://leetcode.com/explore/learn/card/array-and-string/201/introduction-to-array/1148/
#Description
"""
Given a non-empty array of decimal digits representing a non-negative integer, increment one to the
integer.
The digits are stored such that the most significant digit is at the head of the list, and each
e... | [
"saurabhpandey85@gmail.com"
] | saurabhpandey85@gmail.com |
721a5e56f58dfe99a600b26d64f8e6ed0832dcf9 | c14c4eefc276bed3524724b8ca6a265e6ade8019 | /WebPipeline/runserver.py | 79844aaa5e5b590e31e2287389011fcd36659c04 | [] | no_license | romankylian/dev6b | 64315cf418cc1d69cb89333e999bf1235e5c92c4 | 81c6f4aa16c22d6cf877542e439e991eb1f2e899 | refs/heads/master | 2021-06-15T00:43:27.529398 | 2017-03-24T09:58:23 | 2017-03-24T09:58:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
This script runs the WebPipeline application using a development server.
"""
from os import environ
from WebPipeline import app
if __name__ == '__main__':
HOST = environ.get('SERVER_HOST', 'localhost')
try:
PORT = int(environ.get('SERVER_PORT', '5555'))
except ValueError:
PORT = 5555
... | [
"romanr@hotmail.nl"
] | romanr@hotmail.nl |
036a2e26605dcb8adca9e12f913f0e989a923bfb | aaad70e69d37f92c160c07e4ca03de80becf2c51 | /filesystem/usr/lib/python3.6/_pyio.py | b805c49e9f62dd53e7b3ff719af305f55238b214 | [] | no_license | OSWatcher/ubuntu-server | 9b4dcad9ced1bff52ec9cdb4f96d4bdba0ad3bb9 | 17cb333124c8d48cf47bb9cec1b4e1305626b17a | refs/heads/master | 2023-02-10T18:39:43.682708 | 2020-12-26T01:02:54 | 2020-12-26T01:02:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | {
"MIME": "text/plain",
"inode_type": "REG",
"magic_type": "Python script, ASCII text executable",
"mode": "-rw-r--r--",
"sha1": "f88fc8316a266e9690fc63943b95eb39ae884d95"
} | [
"mathieu.tarral@protonmail.com"
] | mathieu.tarral@protonmail.com |
3171446e524b21ed7612930789ea3980882ec432 | 45b0a75342b3af99039f7848f9556bcc5701ed16 | /setup.py | d03825defd08bac677de6254ed364bf9fd539856 | [
"BSD-3-Clause"
] | permissive | simodalla/pympa-affarigenerali-OLD | acb18e18e68716bde99ecc9dafa67724cce81970 | ab3c885d34a8eebcca76ccd62c3f559baede8c6d | refs/heads/master | 2020-06-05T18:50:54.156687 | 2014-11-15T07:50:10 | 2014-11-15T07:50:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,526 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import organigrammi
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
version = organigrammi.__version__
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
print("You probabl... | [
"simodalla@gmail.com"
] | simodalla@gmail.com |
26b36d6ba89a1fe7cd91b14bb3fb33ce22480d57 | 2ed34164b303be44f53692cba21d689caf427dc4 | /Model 5/plot_L(N).py | de74add859af063b43d93306c29e85cf77465cf0 | [] | no_license | klaragolob/civilizacije | 9da3821470f08e4d4141b084d6569c7571c95e6d | 4d58f0a07218e660b8d489d8871aef212d495939 | refs/heads/master | 2020-08-24T05:29:14.945955 | 2020-05-13T23:39:44 | 2020-05-13T23:39:44 | 216,768,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,071 | py | from libraries.IO import readData
from libraries.IO import saveData
from matplotlib import cm
import matplotlib.pyplot as plt
import numpy as np
from mpl_toolkits.mplot3d import Axes3D
import scipy.ndimage.filters as fl
from libraries.StandardizeDistribution import StandardizeDistributionW
a = 2
if a == 2:
bin_no ... | [
"klara.golob19@gmail.com"
] | klara.golob19@gmail.com |
59c8926505d7125c3cf883b57c2b7715a524db7b | eeee5fc0fec37b0640f08431bc8f94da75b062fc | /Hello.py | 970706745255224be2cc85e4d6e16e23dd4c249a | [] | no_license | prabhas-nallan/python- | aa4737e50498f9a38dc34b3066fa7fed31c9bb1b | ab0f67c1713242baadc5bd2d99ff9cbfb5e2ddbf | refs/heads/master | 2022-12-07T12:52:29.898376 | 2020-09-08T04:53:18 | 2020-09-08T04:53:18 | 293,701,103 | 0 | 1 | null | 2020-09-08T13:56:33 | 2020-09-08T04:30:40 | Python | UTF-8 | Python | false | false | 23 | py | print("Hello Prabhas")
| [
"noreply@github.com"
] | prabhas-nallan.noreply@github.com |
7c15b9536eb43122f435abd77e7f22404733fd0b | 9861218f60ab23d6ac3bc6b400c220abf4e64fb5 | /atividade_d/atividade 'd' lucas neves/q6.py | bf7faf95dd6744f9c3889cd5c8eea96d37cd1c16 | [] | no_license | rogeriosilva-ifpi/adsi-algoritmos-2016.1 | a0b0709eb783110a9b335c8364aa41ce4f90fb24 | 1714e2480b80e46be4d96049e878bf17b692320b | refs/heads/master | 2021-06-06T18:25:00.836715 | 2016-09-07T02:02:30 | 2016-09-07T02:02:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | # Nao sao estas as questoes...
# -*- coding: utf-8 -8-
"""6. Leia uma velocidade em km/h, calcule e escreva esta velocidade em m/s. (Vm/s = Vkm/h / 3.6)"""
velokm = input("Insira um velocidade em k/h: ")
veloms = velokm / 3.6
print "%.1f km/h equivale a %.1f m/s" % (velokm, veloms) | [
"rogerio.silva@ifpi.edu.br"
] | rogerio.silva@ifpi.edu.br |
65f740bb52de4a120c6bff93c428eac9418d78ce | 09b8f13dceadcb4f9482bb2aa1b807a070e58928 | /src/python/modular/utils.py | e363f975d80ff9e6c92efc386a60812c7c5e6491 | [] | no_license | luisguiserrano/sklearn-modular | e84d84c7263c09067c7601fc10917003e1ce66b5 | 98562a2f877f16622214d0df8d4457b247433577 | refs/heads/master | 2022-12-01T01:01:12.653111 | 2020-08-15T00:16:10 | 2020-08-15T00:16:10 | 285,043,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,335 | py | """
Copyright Zapata Computing, Inc. All rights reserved.
"""
import json
import pandas as pd
import numpy as np
from pkg_resources import resource_string
def save_json(result, filename) -> None:
"""
Saves data as JSON.
Args:
result (ditc): of data to save.
filenames (str): file name to ... | [
"luisgui.serrano@gmail.com"
] | luisgui.serrano@gmail.com |
af856742793badd66aae7991c8d84b5f5cde6610 | bd0fb8404d7a746f85aadad3abe26ed04de3d268 | /CodeForces/CONTESTS/Round 711/B. Box Fitting.py | 44dfbe53704a0fa5ff84f513603b81264f5a8057 | [
"MIT"
] | permissive | IshanManchanda/competitive-python | 6dbbbca084408663573ea58d295d4715dbdd96f9 | cd219eda9fe2ea6dbdbbba754fb4d355182ead38 | refs/heads/master | 2023-08-21T09:35:40.266146 | 2023-08-12T18:26:02 | 2023-08-12T18:26:02 | 184,058,056 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | def main():
from sys import stdin, stdout
from collections import Counter
rl = stdin.readline
wl = stdout.write
for _ in range(int(rl())):
n, w = map(int, rl().split())
a = Counter(int(x) for x in rl().split())
a = dict(a.most_common())
keys = sorted(a.keys(), reverse=True)
h = -1
while True:
cur =... | [
"ishanmanchanda70@gmail.com"
] | ishanmanchanda70@gmail.com |
a9d2fa168a0a5f2ddd174dc041e5ce763e9f696c | 603284928313c2245b426ab66fff1c237019b55a | /2.78/Sets/toolplus_scene/ops_layer.py | ae6f94b1a86c2f57b404ca80b3d4f1cbc9a301ec | [] | no_license | Pumpkin-Studios/ToolPlus | d663239e61aa1a2676c14c8494c19e4d09de9ffc | fc59449c33358d1087fe798bbdae71cc7bf20778 | refs/heads/master | 2020-04-03T17:55:54.804723 | 2017-12-10T19:30:28 | 2017-12-10T19:30:28 | 155,464,330 | 1 | 0 | null | 2018-10-30T22:57:13 | 2018-10-30T22:26:52 | Python | UTF-8 | Python | false | false | 291,405 | py | # ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distrib... | [
"cgdroste@gmail.com"
] | cgdroste@gmail.com |
af35ad3f11739d5c2b7b7ae1a7baa8dc9171d806 | 8d6a252d6801ab83f749821e25e7eb50f3c18072 | /calculator/settings.py | bbfdd34553330dc5296809ddb66ffbc91a90292a | [] | no_license | DeadPixel99/webapp1 | bb6ea6e94834fe0ed93bc68ed57b277da4d25c3f | 382eb898ed92047caa5258cb332809bb1196dcf5 | refs/heads/main | 2023-05-03T23:57:25.104125 | 2021-05-26T11:39:56 | 2021-05-26T11:39:56 | 371,012,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,315 | py | """
Django settings for calculator project.
Generated by 'django-admin startproject' using Django 2.1.3.
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... | [
"antonnnnn13@gmail.com"
] | antonnnnn13@gmail.com |
473b9f9a9271ec67bdeb7ba8f50ec9d6a3b791e8 | 3b7474148c07df7f4755106a3d0ada9b2de5efdc | /django/projects/src/backup/www/views.py | ea9233e355201b26cb5f6e7b1d346d901de37605 | [] | no_license | juancsosap/pythontraining | 7f67466846138f32d55361d64de81e74a946b484 | 1441d6fc9544042bc404d5c7efffd119fce33aa7 | refs/heads/master | 2021-08-26T05:37:15.851025 | 2021-08-11T22:35:23 | 2021-08-11T22:35:23 | 129,974,006 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def index(request):
return HttpResponse('<h1>This is the Root</h1>') | [
"juan.c.sosa.p@gmail.com"
] | juan.c.sosa.p@gmail.com |
93be1cd42df6b6d7eb07e70bbcbcf046809e5ee2 | 8389edf9cef84ece5f94e92eee2e5efeab7fdd83 | /AmazonWishlistScraper/pipelines.py | 07d8b2d0af0c17bf494f389c4d078d97e66c9c98 | [
"MIT"
] | permissive | scotm/AmazonUKWishlistScraper | 7eb6d6f7d6e408852742a55e2eadb09a626e1e99 | 2bb95e31a3204d6a92fed35a71063a3ca9c3dd35 | refs/heads/master | 2020-12-25T15:28:57.233678 | 2016-09-05T11:29:31 | 2016-09-05T11:29:31 | 17,141,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 675 | py | # Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/topics/item-pipeline.html
from scrapy.contrib.exporter import CsvItemExporter
def remove_goop(text):
return " ".join(text.split())
class AmazonCSVExport(CsvItemExporter):
fields_to_... | [
"scott.scotm@gmail.com"
] | scott.scotm@gmail.com |
1cce594db7b6482e1817294ada70e94e1373c088 | b61fc74b720633e3d996734d336fc6dfb1055cde | /course_notes/network_program/src/udptest1.py | 1a5dd2ae062d57794c4d1619d13e0ec805f5d995 | [] | no_license | freshklauser/fresh-notespool | 275d15039f9ecc6120be7c58d309c56b2f95067d | 4611717e6a9ddeee12d61bcb217a8424c40c20eb | refs/heads/master | 2021-08-17T01:10:14.039456 | 2020-06-08T15:37:25 | 2020-06-08T15:37:25 | 205,203,960 | 0 | 1 | null | 2020-06-08T15:37:26 | 2019-08-29T16:20:06 | Jupyter Notebook | UTF-8 | Python | false | false | 711 | py | # -*- coding: utf-8 -*-
# @Author: klaus
# @Date: 2019-07-27 11:43:16
# @Last Modified by: klaus
# @Last Modified time: 2019-07-27 15:39:43
from socket import *
udpSocket = socket(AF_INET, SOCK_DGRAM)
# 绑定udp信息 -- 一般都是接收方的ip和port需要绑定
udpSocket.bind(("", 7789))
sendData = "Today is Saturday星期六!" # 需要encod... | [
"junsnikylv@foxmail.com"
] | junsnikylv@foxmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.