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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
822472fe328593a9877481bba85b7d87cd7b60d3 | 642aff81fc7dcf253bd9d714234d6ad0b7f08e5f | /pymaginopolis/chunkyfile/common.py | bc0ea16a27a85a8436f019292d8d166d889a145a | [
"MIT"
] | permissive | frrabelo/pymaginopolis | b4a1d2707eb20eb942bb9c176614ab38136db491 | 022651ab9f6a809c754a5554114f5d1a3eca369b | refs/heads/master | 2023-03-18T01:40:32.747153 | 2021-02-28T03:57:31 | 2021-02-28T03:57:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,180 | py | import struct
from pymaginopolis.chunkyfile import model as model
from pymaginopolis.chunkyfile.model import Endianness, CharacterSet
GRPB_HEADER_SIZE = 20
CHARACTER_SETS = {
model.CharacterSet.ANSI: "latin1",
model.CharacterSet.UTF16LE: "utf-16le"
}
def get_string_size_format(characterset):
# FUTURE: ... | [
"1490287+benstone@users.noreply.github.com"
] | 1490287+benstone@users.noreply.github.com |
a930b53c0f8ebd9f8fefa2ec7b113c3b4b1fd605 | 152782c6c30fd7723204e1458546f8bc56a4f04c | /nvtabular/loader/tensorflow.py | 479f6ecc57998c12671a286700f1730d36e95563 | [
"Apache-2.0"
] | permissive | yingcanw/NVTabular | c09a6cecb84d97be094ad8ecbba3c9331cc03bb9 | 372e3bb1c8057aa497f8971466642170630571a4 | refs/heads/main | 2023-03-30T23:49:42.102664 | 2021-03-24T23:06:32 | 2021-03-24T23:06:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,674 | py | #
# Copyright (c) 2021, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | [
"noreply@github.com"
] | yingcanw.noreply@github.com |
57869410b2cbb065c033061ca98fbdb7a1a23ac8 | e0034258aa9d279edf2a1d61a9cb7734f3b785d8 | /data_gui.py | eb26a8f11eaec80e24ea1fb20eb13ed70b8a4aef | [] | no_license | bernduwiesner/GenLotteryQt5 | b9aaaaa6f5bbdc2ad500e53178bd5e0fab1b96ff | 35a25b9b53f1543f5d66f6d05710965186934ece | refs/heads/master | 2020-06-24T16:23:49.233158 | 2019-07-26T12:44:09 | 2019-07-26T12:44:09 | 199,014,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,611 | py | from PyQt5.QtWidgets import (QDesktopWidget,
QDialog,
QLabel,
QLayout,
QVBoxLayout,
QPushButton,
)
from PyQt5.QtCore import Qt
from common import ... | [
"bernduwiesner@yahoo.co.uk"
] | bernduwiesner@yahoo.co.uk |
a671c11a8cb33a56a991823ae0f4142848d9c74a | 003718246d9bf247b76242ce419adf430f9da3f6 | /VMtranslator/CodeWriter.py | 43152f7c3f48137d04f2e145fee0d9b1a968a199 | [] | no_license | talashaked/Nand | 029a3ecca29df2e2aeb49b62bca5fc84f09288d7 | 1b7d37deb024939e27be86617b942f55169ec743 | refs/heads/main | 2023-03-26T06:30:10.265729 | 2021-03-24T10:45:03 | 2021-03-24T10:45:03 | 351,038,856 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,751 | py | import os
class CodeWriter:
def __init__(self, ofileStr):
self.ofile = open(ofileStr,'w')
self.ArithmeticCommand = ['add', 'sub', 'neg', 'eq', 'gt', 'lt', 'and', 'or', 'not']
self.count =0 ## for the labels in the arithmetic functions
self.countCall = 0
self.curFuncNa... | [
"noreply@github.com"
] | talashaked.noreply@github.com |
9f38297ffcb415afd27671f80d18b3c3ccc487db | cb57a9ea4622b94207d12ea90eab9dd5b13e9e29 | /lc/python/1768_merge_strings_alternately.py | 32222174bc34d1567b034641491b8b2e157d8c7a | [] | no_license | boknowswiki/mytraning | b59585e1e255a7a47c2b28bf2e591aef4af2f09a | 5e2f6ceacf5dec8260ce87e9a5f4e28e86ceba7a | refs/heads/master | 2023-08-16T03:28:51.881848 | 2023-08-10T04:28:54 | 2023-08-10T04:28:54 | 124,834,433 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,459 | py | # string and two pointers
# time O(max(m,n))
# space O(1)
class Solution:
def mergeAlternately(self, word1: str, word2: str) -> str:
ret = []
n = len(word1)
m = len(word2)
if n == 0:
return word2
if m == 0:
return word1
i, j = 0, 0
id... | [
"noreply@github.com"
] | boknowswiki.noreply@github.com |
91550b4f5fdd38d817fb48cbdf64b89d252cf433 | a42dc61014a8d81d93a7a3403b94dab0c48e3b4c | /IB/code/option_chain_example_1_tws.py | e5ff27d6a19cc261fe0d3d4fcca97c6693c877bd | [] | no_license | AndSemenoff/andsemenoff.github.io | 2e3ae881dd2ec93dc58f04a12e6b533fd857aca6 | 154ef0cb9f1d304631e90268e443ca9c0b81b696 | refs/heads/master | 2023-08-18T05:00:57.731584 | 2023-08-11T17:47:50 | 2023-08-11T17:47:50 | 41,863,663 | 0 | 2 | null | 2015-11-22T16:04:19 | 2015-09-03T14:16:33 | JavaScript | UTF-8 | Python | false | false | 1,171 | py | from ibapi.client import EClient
from ibapi.wrapper import EWrapper
from ibapi.contract import Contract
from threading import Timer
class TestApp(EWrapper, EClient):
def __init__(self):
EClient.__init__(self, self)
def error(self, reqId, errorCode, errorString):
print("Error: ", reqId, " ", er... | [
"andsemenoff@yandex.ru"
] | andsemenoff@yandex.ru |
7aa41765cd6860e2540b6f799c4551cd82d47f48 | 34148545a20f0b9fe07860d1107e6aab2ec1f75d | /info_spider/Scrapy_History_Hanchao_V1_01/build/lib/Scrapy_History_Hanchao_V1_01/spiders/Zhuixue_01.py | 139bef56439c9928931b6c7045a6f1948b1c9a0b | [] | no_license | tangzhutao/chf | 9bb9fa9b6ad75f1b587364e1005922c5bdddb4ca | 4b249aee9689d3669306bbf020ad7fbb7e6b92bc | refs/heads/master | 2022-12-03T03:55:17.308231 | 2020-08-21T09:57:47 | 2020-08-21T09:57:47 | 288,969,437 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,641 | py | # -*- coding: utf-8 -*-
import scrapy, time, re
from scrapy.utils import request
from Scrapy_History_Hanchao_V1_01.items import InfoItem
import requests
from urllib3 import encode_multipart_formdata
from Scrapy_History_Hanchao_V1_01.ApolloConfig import IMAGES_STORE, SPIDER_NAME, UPLOADURL
class Zhuixue01Spider(scrapy... | [
"18819492919@163.com"
] | 18819492919@163.com |
754f3df17792c7911d0f110efed7a7832bb5de48 | f4b2d9a0de1f7a26a8fd5afe25446e62dfa0fdb5 | /Python/base_algorithm/base_sum.py | b3db43265b69011967ccd5ef53c5613268a1b43e | [] | no_license | Alexanderklau/LeetCode | e675425cca0b4e2e6f94d8c1ce6df92bbec32ac7 | 6090fa602ab29aef40d41661e473058eaaec490d | refs/heads/master | 2021-06-23T17:41:53.309882 | 2020-12-01T14:36:00 | 2020-12-01T14:36:00 | 148,267,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | # coding: utf-8
__author__ = "lau.wenbo"
"""
高斯解法
"""
def sum_of_n(n):
the_sum = 0
for i in range(1, n+1):
the_sum = the_sum + i
return the_sum
print(sum_of_n(100)) | [
"429095816@qq.com"
] | 429095816@qq.com |
41124f0b638323fe0d56147e5d6b6fd13511885f | 2334ce5d9f1a151262ca6822e166ae5074f7e7b8 | /boj_lecture/dp/part1/boj11053.py | 806fa42aa23a6337c459809c32edb39aac068e07 | [] | no_license | passionCodingTest/Injeong | 6c9330360c7ef11d6dc05b1990db7d5b20bf3443 | b812f19b8733bc64e319ad81ee53edaf5290989f | refs/heads/main | 2023-06-22T16:33:22.509163 | 2021-07-27T12:55:31 | 2021-07-27T12:55:31 | 341,564,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | import sys
input = sys.stdin.readline
n = int(input())
req = list(map(int, input().split()))
dp = [1 for _ in range(n)]
for i in range(n):
for j in range(i):
if req[i] > req[j]:
dp[i] = max(dp[i], dp[j] + 1)
print(max(dp)) | [
"injeong410@gmail.com"
] | injeong410@gmail.com |
19a7c46c69e57295cfca3ac8ae09ffd075ac82a6 | c005eb04da66147c2e7e7de7e5d106ad6bb114c2 | /codes/exercise.py | a30dad2f78d8fd1cb7b1044806fbc1096b114586 | [] | no_license | maydaycha/thesis | 9bc9875599827ab421f6dc9349cb9f698161115b | 2a5b2c33d8c4b0dc18bf18a846c5b291b4d1fa11 | refs/heads/master | 2021-05-03T10:02:23.620563 | 2015-07-23T18:16:08 | 2015-07-23T18:16:08 | 32,448,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,664 | py | """
================================
SVM Exercise
================================
A tutorial exercise for using different SVM kernels.
This exercise is used in the :ref:`using_kernels_tut` part of the
:ref:`supervised_learning_tut` section of the :ref:`stat_learn_tut_index`.
"""
print(__doc__)
import numpy as np
i... | [
"maydaychaaaa@gmail.com"
] | maydaychaaaa@gmail.com |
2611064c93404e81e4be7e68a57d13a328ad1024 | 948d3b8c03e2fecc4f852cd8b4120e1b3378bfaf | /API/PYTHON/django/blogTest/blogTest/settings.py | e3f303742bd651ae7b04c05744ae3c35b65c17f0 | [] | no_license | ezhuo/ezhuo.github.io | e370abb4bfbbfcc5750a5f9fafa2b995bb1d7d48 | 977f3ecdd5dee4eb0f10a42572aaecb335145313 | refs/heads/master | 2021-05-05T20:13:35.446537 | 2019-01-26T08:39:26 | 2019-01-26T08:39:26 | 115,300,126 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,242 | py | """
Django settings for blogTest 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
... | [
"hi371@qq.com"
] | hi371@qq.com |
ca674d56b645b5721ff9210287a3026a3c86b84d | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2801/58758/256072.py | 829cc7621c561a24efea43b99bb9b2ba608d94f2 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | n = int(input())
nums = [int(x) for x in input().split()]
nums.sort()
flag = False
for i in range(0, len(nums)-2):
if nums[i] + nums[i+1] > nums[i+2]:
flag = True
break
if flag:
print('YES')
else:
print('NO')
| [
"1069583789@qq.com"
] | 1069583789@qq.com |
4db543d1def850a08bae32fd819afa667f24aa08 | 31ac8f22185155729c66f0197ad619291a75c577 | /physics.py | 9a25fd307452791a1aebf3d4d4e518d1278c6462 | [] | no_license | RebeccaEEMartin/hackathongame | 9408dcba178104adc92a86e679e864ca21346698 | a02bf47b30d3040d8dcdc3517215283e4c6dffb1 | refs/heads/master | 2021-07-22T05:20:10.744194 | 2017-10-29T13:45:46 | 2017-10-29T13:45:46 | 108,660,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,217 | py | from math import pi
import random
import pygame
import PyParticles
(width, height) = (400, 400)
screen = pygame.display.set_mode((width, height))
pygame.display.set_caption('Springs')
universe = PyParticles.Environment((width, height))
universe.colour = (255,255,255)
universe.addFunctions(['move', 'bounce', 'collide'... | [
"kelvinfowler168@gmail.com"
] | kelvinfowler168@gmail.com |
4018b0516499f17330c42c31ae7da61a6d32fc32 | 32ecfb8792c3ddbf44263e69d5ab4432f4072a8c | /rootfs_wifi/root/lwm2m.py | 5aafd5aa2fae6cbc7a6b05c66835afa4de422ca6 | [] | no_license | scw-92/151_wifi_rootfs | 314ac7f22fa06e3d348143b26025178870c19f6f | 7575fb33d6623cd2fbee56366671a710770f7db6 | refs/heads/master | 2020-04-17T07:24:20.660142 | 2019-01-18T08:16:06 | 2019-01-18T08:16:06 | 166,367,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,238 | py | # -*- coding: utf-8 -*-
import serial
import os
from time import sleep
class IotLwm2m(object):
"""IotLwm2m 使用方法 """
def __init__(self, name="aplex",serial_name = "/dev/ttyUSB0" ):
self.name = name #公司的名字
self.Power_on_init_list = ["at+miplver?","AT+MIPLCR... | [
"1142344150@qq.com"
] | 1142344150@qq.com |
89bfad9927cab9ec96b3795aa8887564a390caf1 | 6234d711a6352c694bb69946ff673e4829ab6916 | /feelings/groups/views/company.py | 91f38b17afdc2b90f2c6a890c1149c612963a773 | [
"MIT"
] | permissive | treehouse/livestream-django-feelings | c816beb4557d52d5aafb5f11a40f5e6a0c0f6ba5 | a246e456bb28f736cfb670486a1534e2d18efc78 | refs/heads/master | 2021-01-13T12:51:04.730505 | 2019-02-21T15:25:38 | 2019-02-21T15:25:38 | 78,469,589 | 32 | 24 | null | 2017-02-23T22:10:10 | 2017-01-09T21:14:02 | Python | UTF-8 | Python | false | false | 3,596 | py | from django.contrib.auth.mixins import LoginRequiredMixin
from django.shortcuts import get_object_or_404
from django.urls import reverse, reverse_lazy
from django.views import generic
from braces.views import SetHeadlineMixin
from .. import forms
from .. import models
class Create(LoginRequiredMixin, SetHeadlineMix... | [
"kenneth@gigantuan.net"
] | kenneth@gigantuan.net |
9b6642bb5a5146592391c89f3af0816da42b6a2a | c5e6e7aacb62fb236e421f77dd1bedaa27d7a555 | /test/test_nodes_node_internal_ip_address.py | 4514364bdbcbe521ab1c38e06cad49e5d0fdf383 | [
"MIT"
] | permissive | tenortim/isilon_sdk_python | 4a8ff70f46d31d797d201023ea3150e36faf4f3f | 8cc40a294c04feddf6b4eddb1d710d20dc6b4c87 | refs/heads/v8.2.1 | 2021-05-21T23:50:42.669164 | 2020-01-07T10:31:43 | 2020-01-07T10:31:43 | 252,866,640 | 0 | 0 | null | 2020-04-03T23:44:27 | 2020-04-03T23:44:18 | null | UTF-8 | Python | false | false | 996 | py | # coding: utf-8
"""
Isilon SDK
Isilon SDK - Language bindings for the OneFS API # noqa: E501
OpenAPI spec version: 8
Contact: sdk@isilon.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import isi_sdk_8_2_1
from i... | [
"nalinkanwar@users.noreply.github.com"
] | nalinkanwar@users.noreply.github.com |
a5e90c758d9db85ca4fb26d6193b20b07ffc150c | b75c24fe09dfcf2ab544f4209e282c6bd43b0a23 | /salalql/salalql/schema.py | 744ee165d584c34b787666cbc4beef802bb45bde | [] | no_license | Majdi-evet/GraphQL | 8786f5bd00f74f68ac5d7ab083dae0594eaff40f | 936c18bde356238be3094dc8fc0d0e2e018cb657 | refs/heads/master | 2021-06-16T23:16:08.418710 | 2019-09-10T12:22:39 | 2019-09-10T12:22:39 | 207,552,320 | 0 | 0 | null | 2021-06-09T18:25:07 | 2019-09-10T12:23:18 | Python | UTF-8 | Python | false | false | 273 | py | import graphene
import salgql.schema
class Query(salgql.schema.Query, graphene.ObjectType):
pass
schema = graphene.Schema(query=Query)
class Mutation(salgql.schema.Mutation, graphene.ObjectType):
pass
schema = graphene.Schema(query=Query, mutation=Mutation) | [
"majdi.mohammad.git@gmail.com"
] | majdi.mohammad.git@gmail.com |
234615d0dfa6ec1b4bb50bbc470a76d507001e80 | 58be8fc8996b98b624fb9784527b2dc588d4587c | /pybamm/models/submodels/active_material/stress_driven_active_material.py | 61fbe41ec0392883bec8138e4988b5b026f60706 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | gwhite09/PyBaMM | b9f7b6b06bb37b6819e306356f5b8e90df8affff | 033ad6384582a3e5d29ad48eeaa7fe92b98e2a29 | refs/heads/main | 2023-08-22T19:49:26.112089 | 2021-09-17T17:02:34 | 2021-09-17T17:02:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,401 | py | #
# Class for varying active material volume fraction, driven by stress
#
import pybamm
from .base_active_material import BaseModel
class StressDriven(BaseModel):
"""Submodel for varying active material volume fraction, driven by stress, from
[1]_ and [2]_.
Parameters
----------
param : paramete... | [
"valentinsulzer@hotmail.com"
] | valentinsulzer@hotmail.com |
d9363243e94bbffc5dd60c4a6cb2b671408379da | 0b8f70df4468a24e3ab18b642d47772fbb0d5f10 | /Lista1/l1q26.py | cc6a05e918d9f3b9b91a5ed429402ebbe1e44592 | [] | no_license | lucasebs/EstruturaDeDados2017.1 | e2ab55e6dfd86d7da8b196e2bd1e22f08c2af737 | 9a8f8a0cd2a881db2705e6484efd7837d0f3e947 | refs/heads/master | 2020-12-13T12:53:28.453845 | 2017-10-02T15:53:11 | 2017-10-02T15:53:11 | 95,600,142 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | from l1q25 import Pessoa
pessoas = [None]*2
for i in range(0, len(pessoas)):
pNome = raw_input("Primeiro Nome: ")
sNome = raw_input("Sobrenome: ")
cpf = int(input("CPF: "))
anoNasc = int(input("Ano de Nascimento: "))
pessoaTemp = Pessoa()
pessoaTemp.primeiroNome = pNome
pessoaTemp.sobrenome = sNome
pessoaTe... | [
"noreply@github.com"
] | lucasebs.noreply@github.com |
d2244420117df6de6ae154e421a909ba1ed92d7f | 2132a3c68624e545858e343bb11768e69cf84e28 | /battlesystem2.py | 22dec3fc23dea9d40b3e6ecba18a16001836ef26 | [] | no_license | tovoispovo/Text-based-RPG-combat-system | cbbf6678ade4e8663a993616fc8d739c647bb2e6 | 5614312727c7faa69240b7b7fb79770ece0b8a6f | refs/heads/master | 2022-01-02T08:41:08.299705 | 2018-02-20T05:10:51 | 2018-02-20T05:10:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,709 | py | import random
class Dice():
def d10(self):
number = random.randint(0, 9)
return number
def d20(self):
number = random.randint(1, 20)
return number
class Player:
def __init__(self, name, health, attack, heal, maxhealth, healed, enemy):
self.name =... | [
"noreply@github.com"
] | tovoispovo.noreply@github.com |
412a015cd3a9f1493754a63bfb89444017dbccf6 | 588bd797932ebb4745e394955ee4ccdf35cda7ed | /beans/__init__.py | 64cd5eba99cc4673b35e0be13da3d3dc0c4c6f3c | [] | no_license | Bobo1553/ais_crude_oil_extract | fa6f2f762fca26e208f2a69bd03801c7a8724804 | cc78d19c8754d35080a2bed737cea59fc405ee15 | refs/heads/main | 2023-04-27T02:02:08.980771 | 2021-05-09T09:37:41 | 2021-05-09T09:37:41 | 349,096,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 78 | py | # -*- encoding: utf -*-
"""
Create on 2020/10/25 16:01
@author: Xiao Yijia
""" | [
"646851868@qq.com"
] | 646851868@qq.com |
0598b8fd9500c32a0495c33197d6df04676bd050 | fe771c763cfad64820b6954f63999b325525d003 | /app/models.py | 8c8b83fe60c7167e30011de961e387c6654af341 | [
"MIT"
] | permissive | plenario/plenario | 69c5c1f87ce398a6c501a1aab8797bf539c9f0a6 | 0808cd90b88c37f11a40445bd200d4740dd4dfa9 | refs/heads/master | 2021-11-13T07:42:34.499848 | 2021-11-11T02:54:26 | 2021-11-11T02:54:26 | 97,568,258 | 68 | 14 | MIT | 2020-05-06T01:09:15 | 2017-07-18T07:33:59 | HTML | UTF-8 | Python | false | false | 1,273 | py | from app import db
from sqlalchemy.dialects.postgresql import JSON
import enum
class VoteType(enum.Enum):
__tablename__ = 'votetype'
positive = "A favor"
negative = "Contra"
absence = "Ausência"
abstention = "Abstenção"
class Senator(db.Model):
__tablename__ = 'senator'
id = db.Column(db... | [
"schwendler@gmail.com"
] | schwendler@gmail.com |
05ccf79be44a26f4b837408790aa157ee894c2d0 | 3a68dab676a753545f8fcfd83c6a684d2b52f237 | /models/cnn.py | 23e1887a1703c0deff7eb612dccd0cbe16fbada0 | [] | no_license | dongxy1014/part2-pytorch | ea517bc894bdf4e7dbdf4dce9225b41740193b2f | a3460f6a1978d6c5b1f9ab23b5ff8085ba4edb7b | refs/heads/main | 2023-08-24T00:50:31.513105 | 2021-09-28T07:59:06 | 2021-09-28T07:59:06 | 411,155,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,618 | py | """
Vanilla CNN model. (c) 2021 Georgia Tech
Copyright 2021, Georgia Institute of Technology (Georgia Tech)
Atlanta, Georgia 30332
All Rights Reserved
Template code for CS 7643 Deep Learning
Georgia Tech asserts copyright ownership of this template and all derivative
works, including solutions to the projects assig... | [
"xdong77@gatech.edu"
] | xdong77@gatech.edu |
c66cffd0f099505fe925881a7201e8e6fdd53225 | e906902a1993bc23034bd4e492d8eda3fe10ef7f | /final/platforms.py | dd4093f850c93be1af6d81ad08995bb99a09ee30 | [] | no_license | bkwmt/PBC109-1RunningGame | 007922d39e10a1037370ce249ce011828408528f | 9e23147772dd62d1267b8e78d77182173614c89a | refs/heads/main | 2023-08-11T08:00:59.554673 | 2021-09-08T12:45:33 | 2021-09-08T12:45:33 | 319,727,708 | 0 | 0 | null | 2020-12-27T17:53:35 | 2020-12-08T18:34:39 | Python | UTF-8 | Python | false | false | 6,201 | py | import random
import pygame as pg
from settings import *
class Ground(pg.sprite.Sprite):
def __init__(self, x, y, w, h):
pg.sprite.Sprite.__init__(self)
self.image = pg.Surface((w, h)) # 設定地板在某寬度與高度
self.image.fill(GOLDENROD)
self.rect = self.image.get_rect()
self.rect.... | [
"75352803+bkwmt@users.noreply.github.com"
] | 75352803+bkwmt@users.noreply.github.com |
34ee73eb008e29b9a16e36a650b80a2252b3d80b | f0579ea5564f6ce72b1c61570f253df907e54f71 | /webspider.py | 8fab6e75cfcbf4c6e0e8cc5a8352b4fbb1630240 | [] | no_license | EatCodeCat/github | 8d88b9ca80eeb309a79a3b31ca05b72fe8c8310f | b8ce8b1e5774d53fe62f905cef53d818d5e0e2ca | refs/heads/master | 2020-05-31T00:54:06.290052 | 2017-05-08T17:26:14 | 2017-05-08T17:26:14 | 7,825,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | # coding=utf-8
__author__ = 'think'
import requests
class WebSpider:
def __init__(self, headers):
self.headers = {
'accept-encoding': 'gzip, deflate, sdch, br',
'accept-language': 'zh-CN,zh;q=0.8,en;q=0.6,ja;q=0.4,nb;q=0.2,sk;q=0.2,zh-TW;q=0.2',
'user-agent': 'Mozilla/5... | [
"17387575@qq.com"
] | 17387575@qq.com |
a374eddfa244d01cfba90dd3490a58a45e1a0b6a | efef2e4202b5f4355647c11e180cdf91779b2026 | /tests/testScriptSingleTimeseries.py | 7d92ad259810d3bf5ed5ce7deb60c31ba7bb19ab | [] | no_license | adityan619/tslib | 78eb86f0b0bb1d88bfb3d16b50d21a91488e2113 | 693f18305cad76cced370c5f7ccd5983dd922ab3 | refs/heads/master | 2020-04-19T10:05:48.867301 | 2018-10-10T02:38:12 | 2018-10-10T02:38:12 | 168,130,123 | 1 | 0 | null | 2019-01-29T09:46:04 | 2019-01-29T09:46:01 | null | UTF-8 | Python | false | false | 8,144 | py | #############################################################
#
# Single-Dimensional Time Series Imputation and Forecasting
#
# You need to ensure that this script is called from
# the tslib/ parent directory or tslib/tests/ directory:
#
# 1. python tests/testScriptSingleTimeseries.py
# 2. python testScriptSingleTimese... | [
"jehangiramjad@gmail.com"
] | jehangiramjad@gmail.com |
741609ccba647bdbc3c39638902316fcde154de0 | b069ee3fdc74a37c515935644ec36c133f2342c6 | /Baekjoon_Bronze/2562.py | 5cfe082af7f1c988778d693d5f5dc6abd0fcee04 | [] | no_license | gparkkii/Baekjoon_Challenge | 097a06df95d4b4c76058d8bfc48c71679d392dad | bd09081b21c60f825d52b795674cf3350bd91954 | refs/heads/master | 2023-01-12T15:59:42.364616 | 2020-11-11T09:23:04 | 2020-11-11T09:23:04 | 303,383,379 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 778 | py | #9개의 서로 다른 자연수가 주어질 때, 이들 중 최댓값을 찾고 그 최댓값이 몇 번째 수인지를 구하는 프로그램을 작성하시오.
#예를 들어, 서로 다른 9개의 자연수 "3, 29, 38, 12, 57, 74, 40, 85, 61" 이 주어지면, 이들 중 최댓값은 85이고, 이 값은 8번째 수이다.
# 입력 : 첫째 줄부터 아홉 번째 줄까지 한 줄에 하나의 자연수가 주어진다. 주어지는 자연수는 100 보다 작다.
# 출력 : 첫째 줄에 최댓값을 출력하고, 둘째 줄에 최댓값이 몇 번째 수인지를 출력한다.
my_list = []
for i in range(9):
... | [
"jyp933@gmail.com"
] | jyp933@gmail.com |
754cb3332d03cd2aaadbafc442d09e0ca759ffc1 | 2dbaf907dc625f79a70cae0e1e2b5b7d575c82fe | /BookTicketApp/migrations/0001_initial.py | df03751b7d27267032a023e757721e6980e86044 | [] | no_license | rominbusa/myTMS | 5277ac20a716587ab7c551858ad597abc60aa176 | f7e2d9c47dcdd92bbc841254a23dbd1681011fcd | refs/heads/master | 2020-03-08T15:43:50.497400 | 2018-04-06T09:35:12 | 2018-04-06T09:35:12 | 128,219,697 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,753 | py | # Generated by Django 2.0.2 on 2018-04-06 03:17
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('SignupApp', '0001_initial'),
]
operations = [
migrations.CreateModel(
name=... | [
"rominbusa0@gmail.com"
] | rominbusa0@gmail.com |
e95fae2b71d041eff7090fe472700f65339ffa56 | 3b7474148c07df7f4755106a3d0ada9b2de5efdc | /training/c31_pattern_design/e04_callback.py | b608b4cea7865efac231c64f8fa6e7dd59efcde1 | [] | 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 | 922 | py | class Provider:
def get(self, path, cbf):
with open(path) as file:
text = file.read()
result = self.analyze(text)
cbf(result)
def word_count(self, text):
split_text = text.lower().split(' ')
words = len(set(split_text))
count = len(split_t... | [
"juan.c.sosa.p@gmail.com"
] | juan.c.sosa.p@gmail.com |
7f64617c1f9ffa09fcadfbe29ce329539eae983a | 0f074e5adef64fa16e88dc2499e76f08b4c33c02 | /matplotlib/ipython and pylab/03 改变线条颜色和粗细.py | 5536a6d7b75055db76aeaa13f86025196647c11b | [] | no_license | guozhenjiang/Python | 0ac39adaf72df0bfee51795fabcfd959a69b1862 | 44b07bd767f3f2a947331111ab920200ac2412c6 | refs/heads/master | 2021-05-19T16:54:40.725132 | 2020-11-19T16:26:26 | 2020-11-19T16:27:11 | 252,035,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,154 | py | # 导入 matplotlib 的所有内容(nympy 可以用 np 这个名字来使用)
from pylab import *
# 创建一个 8 * 6 点(point)的图,并设置分辨率为 80
# figure(figsize=(8,6), dpi=80)
figure(figsize=(10,6), dpi=80)
# 创建一个新的 1 * 1 的子图,接下来的图样绘制在其中的第 1 块(也是唯一的一块)
subplot(1,1,1)
X = np.linspace(-np.pi, np.pi, 256,endpoint=True)
C,S = np.cos(X), np.sin(X)
# 绘制余弦曲线,使用蓝色的、连... | [
"guo_zhen_jiang@163.com"
] | guo_zhen_jiang@163.com |
8a698f42edefb1e3b2656c09e16d2aab030f6ad5 | 8ab9184b9cfbfe4a8b8ecbc777b6cfc6df3c95fd | /wrangle_mall.py | 4746ff1ca8e6f37e7c105e9506d4e55a4cb8b2bf | [] | no_license | mariamnaqvi/clustering-exercises | 14265493cae83751abff45a62a1f6f018e3e98f0 | 3dfed7c22be3486606266091d741f249ca1cfdcf | refs/heads/main | 2023-06-06T10:48:59.785524 | 2021-06-21T21:10:33 | 2021-06-21T21:10:33 | 377,687,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,767 | py | import pandas as pd
import numpy as np
import os
from sklearn.preprocessing import MinMaxScaler
import scipy.stats as stats
# use get_db_url function to connect to the codeup db
from env import get_db_url
from sklearn.model_selection import train_test_split
# Acquire Data
def get_mallcustomer_data():
df = pd.... | [
"naqvi.mariam01@gmail.com"
] | naqvi.mariam01@gmail.com |
d4def9555dab98c62b9164fd9cc1759780f1f230 | dfe151428bc948f80cb8254fa7b8828b884cb4d1 | /nxGraphAlgorithms/Functions/__pycache__/bool_functions.py | 0fd7c2f7b83c85a6586a6a6408db1387ac38ed39 | [] | no_license | Phi51/nxGraphAlgorithms | a892cda7bdb054880c89ed6fc2ea6ceb56385b02 | eb0f7daa4079d4b9c8b7bcd5da2bc07046dfa76b | refs/heads/master | 2020-05-17T05:06:42.339746 | 2019-05-07T23:38:45 | 2019-05-07T23:38:45 | 183,524,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 820 | py | from global_properties import V
from local_properties import neighbors
def is_independent (G, S):
for v in S:
N = neighbors(G, v)
if list(set(N) & set(S)) !=[]:
return False
return True
def is_dominating(G, S):
S_complement = list(set(V(G))-set(S))
for v in S_co... | [
"noreply@github.com"
] | Phi51.noreply@github.com |
75518d3e48ac30e892078c31e389903bc2d1a912 | d91906a0ace8979685b3dcd0d8ce91c7e9df4c58 | /db/admin.py | 9496142568cd9f039498fc51d0d6047c0659f624 | [] | no_license | charikova/SWP_project | 1f75a5219cf6b569308bdde5fc1b604914f0358a | 8bbdeeb57e5d576a1de303021c4df24351026aae | refs/heads/master | 2020-05-03T21:03:31.291044 | 2019-03-31T12:55:20 | 2019-03-31T12:55:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,463 | py | from django.contrib import admin
from django.contrib.auth.models import Group
from .models import Faculty, Auditorium, AdditionalProperties, Course, Preferences
from django.urls import path
from django.http import HttpResponseRedirect
from django.core.mail import EmailMessage, send_mail
from django_version import setti... | [
"nnigmat@gmail.com"
] | nnigmat@gmail.com |
f14308e3fd66781d5cbdd827da378221a727e027 | bccbb5244947574c63992dc812b5ef44519ec161 | /tests/test_command_runner.py | fcb536ca809e16f5103fd66573f5e2e7dd3eeea3 | [] | no_license | hal1932/pysvn | d4fab12dbb07838d947292146ca49e9a31119deb | a579744543765b574655377a2e1ada5be961e8d8 | refs/heads/master | 2020-03-14T06:35:46.835307 | 2018-05-01T16:17:10 | 2018-05-01T16:17:10 | 131,487,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 939 | py | # coding: utf-8
from __future__ import print_function, unicode_literals
import unittest as ut
import xml.etree.ElementTree as et
from svn.command_runner import CommandRunner
class TestCommandRunner(ut.TestCase):
def setUp(self):
self.__runner = CommandRunner()
self.__runner.current_directory = '... | [
"yu.arai.19@gmail.com"
] | yu.arai.19@gmail.com |
1ee42e0fa0fd0e830473f4079c9058dd6869c849 | 7ab85ba79a6553659f0b324ecebb4bb39f8a8a1c | /shallow copy.py | 827e08006334256c38c0ceb955c5a8fd2ff5b596 | [] | no_license | subinmun1997/my_python | b75db77a035fa8f531d9872bf33a1818a002206a | 634acc948e7758f5d26084536c506e7da45cd53c | refs/heads/master | 2022-12-28T21:11:40.173378 | 2020-10-16T08:02:18 | 2020-10-16T08:02:18 | 292,875,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | r1=['John',('man','USA'),[175,23]]
r2=list(r1)
print(r1 is r2)
print(r1[0] is r2[0])
print(r1[1] is r2[1])
print(r1[2] is r2[2]) | [
"qzxy812@gmail.com"
] | qzxy812@gmail.com |
e750c6d345b925cbc4af78c7184243b8a8c6fdb0 | e881401a3c7b258b491eb5cb4f1f0ea8ba7e9f84 | /Part 2 - Regression/Section 6 - Polynomial Regression/Regresion polinomica.py | da2751c306a568535caec7f17178db44fa893344 | [] | no_license | kronenflex/Machine-Learning-Personal-Projects | 77a0b54e9329e2b6b4296f2375a1ec9687106167 | 281bbf8f772839250b2cd5756f750d15bf5a78f9 | refs/heads/master | 2022-11-26T04:55:19.163276 | 2020-08-04T02:12:16 | 2020-08-04T02:12:16 | 279,182,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,680 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jun 29 20:41:13 2020
@author: DiegoIgnacioPavezOla
"""
#Regresion polinomica
import pandas as pd
import numpy as np
import matplotlib as plt
#importar el data set
dataset = pd.read_csv('Position_Salaries.csv')
# elegir las variables
X = dataset.iloc[:, 1:2].values
y = datas... | [
"diego.pavezo@usach.cl"
] | diego.pavezo@usach.cl |
bc24c290276bfbed509b530f38753792aafca2b5 | 0ce1cb643e73a8421fe4c980b269ef0661132792 | /marksmol.py | 42094978c76c298657c6ab9f57ee570346dbbc70 | [] | no_license | lukakostic/marksmol | e757dab00938acaed5b2f7b29cabfe9e6370bb2b | 34f39a549fd7a7f6b7512de90cf03ebd75a514db | refs/heads/master | 2020-05-17T11:55:19.458363 | 2019-04-29T19:39:34 | 2019-04-29T19:39:34 | 183,698,002 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,540 | py | import sys
import os
import pathlib
def parse(t,path,debug = False):
os.chdir(path)
#Current strings
code = ''
word = ''
line = ''
#State trackers
inQuotes = 0
inComment = 0 #not bool so it can have comments in comments
escapeNext = False
#Indentation/Parent tracking
... | [
"41348897+lukakostic@users.noreply.github.com"
] | 41348897+lukakostic@users.noreply.github.com |
8a14e9d9f3f99b3ada59c746306ae6b9972fac4f | 85a4004de49ad0dce506792f50e4ee842bd3dfbb | /src/main/python/apache/aurora/executor/common/status_checker.py | d491ef909b171e4fee5d9e52deb04d9106e2cea4 | [
"MIT",
"Apache-2.0"
] | permissive | aurora-scheduler/client | 042e5858e8decf7898cf92551a34dadf97d49dc4 | 67644c82a90f1b0eb80c419a25677a7de034749a | refs/heads/master | 2021-01-07T18:14:49.637481 | 2020-05-07T23:55:05 | 2020-05-07T23:55:05 | 241,779,671 | 0 | 2 | Apache-2.0 | 2020-06-16T01:47:03 | 2020-02-20T02:59:47 | Python | UTF-8 | Python | false | false | 5,070 | py | #
# 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 agreed to in writing, software
# distributed under ... | [
"commit@ridv.xyz"
] | commit@ridv.xyz |
a4e14eb7af4471dc7ffa08f96007adf70020137c | 6bce0864840badbbd2016b1b2818b016347038e6 | /Drawing_dora.py | 8e89eb96398ebfaddd0af4e18230d75b9615e0a6 | [] | no_license | Emorznice/Louplus | e80327bdd0ce7eddb65054d337e8f84cd02a0108 | 2586898644c86df3b92faf5207a73df2e4a100d6 | refs/heads/master | 2023-08-30T13:24:10.755288 | 2021-11-03T10:55:12 | 2021-11-03T10:55:12 | 423,103,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,014 | py | from turtle import *
# 设置窗口大小
setup(500, 500)
# 设置画笔
speed(10)
shape('turtle')
colormode(255)
# 绘制圆
def drawRound(size, filled):
pendown()
if filled == True:
begin_fill()
setheading(180)
circle(size, 360)
if filled == True:
end_fill()
# 绘制矩形
def drawRect(length, width, filled):
... | [
"2856987204@qq.com"
] | 2856987204@qq.com |
52e48652c1ede98d55d64ed3b5c70975a9d90a48 | a7d7685f10c1f67e511bafb2240d50f9a8445c35 | /openmrsapi/tests/test_user.py | 8278343e5eff4302547f59368e2ca3e8d873702f | [
"MIT"
] | permissive | isears/openmrsapi | f8aeb4783da93fbcc40195deb16b6adf4c4c5162 | 50e5329b1ecc74f8e4d94f71e4b0e0207ac705d6 | refs/heads/master | 2020-03-10T22:51:29.689390 | 2018-04-22T15:45:59 | 2018-04-22T15:46:07 | 129,628,010 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 985 | py | import unittest
import openmrsapi
class TestUser(unittest.TestCase):
def setUp(self):
self.created_user_uuids = list()
def tearDown(self):
for uuid in self.created_user_uuids:
openmrsapi.user.remove(uuid)
def test_create(self):
new_user = openmrsapi.user.add(
... | [
"isaac.j.sears@gmail.com"
] | isaac.j.sears@gmail.com |
0457440b4e3f996aaa557313efda6c7f2d6e1a76 | 069ce71ee1ca85988ebf5bc179bcafbbd3d04f7f | /golib/views.py | 70f41659f6d03852008364558b13e70346ea68e7 | [] | no_license | 9gix/golib | 21a1376b553a83b743c68f418f82a488c9964c1a | fbcfe0a9c5e0523c7b2e85f46cb0d18a4ac85db5 | refs/heads/master | 2021-03-12T19:57:59.971214 | 2012-11-04T17:22:59 | 2012-11-04T17:22:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | from django.shortcuts import redirect, render
from django.core.urlresolvers import reverse
def index(request):
if request.user.is_authenticated():
return redirect(reverse('catalog:book_list'))
return render(request, 'index.html', {})
| [
"yeo.eugene.oey@gmail.com"
] | yeo.eugene.oey@gmail.com |
8527a82984c2cd8a19d450dc69773a45da4c0b51 | 79bc9a420df5c706b2ae06f4b75bf2bd2ba9646e | /emission/net/ext_service/push/query/trip_metrics.py | bad51c6afb3acaf63183dd918f4250efd1da085d | [
"BSD-3-Clause"
] | permissive | Andrew-Tan/e-mission-server | 7022786a13b4be87be62cfc2cc6d82543d063e5d | 91d59bee86e63d803e401f10f4b6a2502effedda | refs/heads/master | 2021-01-16T18:25:17.860723 | 2017-11-21T19:24:40 | 2017-11-21T19:24:40 | 100,073,534 | 0 | 0 | BSD-3-Clause | 2018-05-05T18:26:36 | 2017-08-11T22:13:44 | Jupyter Notebook | UTF-8 | Python | false | false | 4,279 | py | # Input spec sample at
# emission/net/ext_service/push/sample.specs/trip_metrics.query.sample sample
# finds all users who have at least one day in Feb 2017 with no more than 10
# walk sections and a walk distance of at least 1km during the evening commute
# hours
# Input: query spec
# Output: list of uuids
#
import ... | [
"shankari@eecs.berkeley.edu"
] | shankari@eecs.berkeley.edu |
b4c0472ccadd94cd2d5b8635aa3af2ec2da7fb48 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/476/usersdata/321/110683/submittedfiles/Av2_Parte3.py | 871c02d88b4454cc7f87fe1b0a0f024a5aa1caa1 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | # -*- coding: utf-8 -*-
qa= int(input('Quantidade de elementos de a: '))
qb= int(input('Quantidade de elementos de b: '))
a= []
b= []
for i in range(qa):
a.append(int(input('Digite o valor%d de a: ' % i)))
for i in range(qb):
b.append(int(input('Digite o valor%d de b: ' % i)))
soma= 0
while a[i] == b[i]:
s... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
cce05380b5ad5dd37f8144e502887aaf138de2ed | 5d3ac45872e312ad99c7d316665c66d28663fbfd | /loader.py | 98760d21d05c36e6cb7a6cd310a440457af64766 | [] | no_license | hueich/7-wonders | 3a26b9b7dfab6470d404a10d42ca64fb0bb75e05 | 9f62bc4f41ee5074df7f199596cdfdbb24eade7e | refs/heads/master | 2021-01-15T19:45:22.408161 | 2015-02-09T02:56:36 | 2015-02-09T03:11:23 | 11,115,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,013 | py | import json
import bonus as bonus_lib
import card as card_lib
import constants
import enum
import exception
import wonder as wonder_lib
def loadAssets(fp):
output = json.load(fp)
assets = {
constants.CARDS_KEY: _parseCards(output[constants.CARDS_KEY]),
constants.WONDERS_KEY: _parseWonders(output[constants... | [
"addison.luh@gmail.com"
] | addison.luh@gmail.com |
9d617e8e56b480d3f2c9796faf890e935037a64c | 90419da201cd4948a27d3612f0b482c68026c96f | /sdk/python/pulumi_azure_nextgen/network/v20180701/get_network_watcher.py | a1c1900c872cb4134a105e35685ba9cbea6c876c | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | test-wiz-sec/pulumi-azure-nextgen | cd4bee5d70cb0d332c04f16bb54e17d016d2adaf | 20a695af0d020b34b0f1c336e1b69702755174cc | refs/heads/master | 2023-06-08T02:35:52.639773 | 2020-11-06T22:39:06 | 2020-11-06T22:39:06 | 312,993,761 | 0 | 0 | Apache-2.0 | 2023-06-02T06:47:28 | 2020-11-15T09:04:00 | null | UTF-8 | Python | false | false | 4,324 | 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
from ... import _utilities, _tables
__a... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
ab027e68d8e9f198dc5982b75f821c4069c2f8e4 | 878ad1a51e764be295372d53ee779e52b2d3bc08 | /dataset.py | fa29de7e15234e9f0ff5b70c53364ca19a2a0894 | [] | no_license | thomasopsomer/Plume | cc991ca18e8ef86a36c1a06dcd6eebfb7b565ca7 | 357649a2dc89886ad685981449b2cf02ba4d378e | refs/heads/master | 2021-03-27T06:29:01.880538 | 2017-02-21T14:20:32 | 2017-02-21T14:20:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,234 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from collections import defaultdict
import pandas as pd
import numpy as np
from math import floor
cols = {
"temporal": [
u'precipintensity',
u'precipprobability',
u'temperature',
u'cloudcover',
u'pressure',
u'windbearing... | [
"thomasopsomer.enpc@gmail.com"
] | thomasopsomer.enpc@gmail.com |
ee4b744b380f5efdea8e61700fb39461f20c0ec9 | 38aecb10c177a6458df8eebad3d8dc7a631a8c11 | /tv-script-generation/dlnd_tv_script_generation-predict.py | dfec9d139788e12e05cef249d4bb6a11c1cf75a7 | [
"MIT"
] | permissive | laozhuang727/udacity-deep-learning | d81f28c39393ab54ca37b86f378b5f5a523bf338 | f7bee830ecbcbccbef40d5091928380fc314e22b | refs/heads/master | 2021-01-21T16:11:08.314545 | 2017-05-20T11:48:51 | 2017-05-20T11:48:51 | 85,368,112 | 0 | 0 | null | 2017-03-23T02:06:21 | 2017-03-18T01:39:30 | Jupyter Notebook | UTF-8 | Python | false | false | 4,567 | py | # coding: utf-8
"""
DON'T MODIFY ANYTHING IN THIS CELL
"""
import tensorflow as tf
import numpy as np
import helper
import problem_unittests as tests
_, vocab_to_int, int_to_vocab, token_dict = helper.load_preprocess()
seq_length, load_dir = helper.load_params()
# ## Implement Generate Functions
# ### Get Tensors
#... | [
"laozhuang727@hotmail.com"
] | laozhuang727@hotmail.com |
6ff8cf46f9afbcf4558f4fc7c0f57921fcc8d9d4 | 68577bb693fe01cddce56da36a43702c6bdedc07 | /Programming/python/threads/events.001.py | a7ef176267b372f3242e604881eb1b4acfb8801b | [] | no_license | ceccopierangiolieugenio/scripts | 480ab9b94c135d47c4d7c916e35df537cfabbed3 | fe0eca7d76733e204c1c702e03b9ccc11ee421fd | refs/heads/master | 2023-03-31T16:57:37.064553 | 2023-03-26T13:21:36 | 2023-03-26T13:21:36 | 99,695,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,212 | py | # Example from:
# https://www.bogotobogo.com/python/Multithread/python_multithreading_Event_Objects_between_Threads.php
import threading
import time
import logging
logging.basicConfig(level=logging.DEBUG,
format='(%(threadName)-9s) %(message)s',)
def wait_for_event(e):
logging.debug('wait_for... | [
"ceccopierangiolieugenio@googlemail.com"
] | ceccopierangiolieugenio@googlemail.com |
306efc4d66d57b80b9a10c625c04f08557d7f834 | 8adcfe7485ea04bc1f83cac7d92bb51b97582f64 | /ALGORITHM/210531/프로그래머스 타겟 넘버.py | c31258c8edf6e3e7fa3b78f33fb5b9e9aed6108b | [] | no_license | NoJeong/TIL | fdceb6efc5d2d56f8dd2e27271ea0faacfe336ae | c79c34b84f025aa40cd3a8e28fd0898bcb40b608 | refs/heads/master | 2023-06-24T22:18:50.665917 | 2021-07-23T06:21:21 | 2021-07-23T06:21:21 | 280,307,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 543 | py | import sys
sys.stdin = open('프로그래머스 타겟 넘버.txt')
def solution(numbers, target):
answer = 0
def dfs(numbers, target, index):
nonlocal answer
if index < len(numbers):
numbers[index] *= 1
dfs(numbers, target, index + 1)
numbers[index] *= -1
dfs(num... | [
"op032@naver.com"
] | op032@naver.com |
ba59c94ed8fcead956fc3cac427eacf397080203 | fe977ee36551016186c72b18fe3dd3e252bca66a | /AMCProjectAPI0.3/api/migrations/0003_auto_20200914_1946.py | 3c86aa6e4000c806cc7d37be021bdfbb5c3ea2fd | [] | no_license | ConnorDetlefsen/AMCProject_Django | 1cb4bc360f26bed1b1599b11bd91871d077b0ffa | 4c00eaaac95cbf2b1b4a6f890e06031e7bd51304 | refs/heads/master | 2022-12-19T12:18:15.174340 | 2020-09-29T05:41:56 | 2020-09-29T05:41:56 | 295,041,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | # Generated by Django 3.1.1 on 2020-09-14 19:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0002_question_questiontype'),
]
operations = [
migrations.AlterField(
model_name='answerlist2',
name='answer1... | [
"Detlefsen@chapman.edu"
] | Detlefsen@chapman.edu |
963115c00a45d5b8816066abe1c66e770a21c361 | 2b41d89e57023b759192ba78901646fe22e5692a | /Google IT Automation with Python/Google - Using Python to Interact with the Operating System/email_test.py | 51e661f119e16d4ae33568f226ece0516c2e8a31 | [
"Apache-2.0"
] | permissive | avillanm/Courses- | 0fd9a925a3603b7815b23842ab0cefa2df3c21bd | 88a8fc9c1abe22e3dd2989e6cb97a8f229a521b9 | refs/heads/master | 2022-12-13T10:58:37.241800 | 2020-09-11T05:22:59 | 2020-09-11T05:22:59 | 295,307,529 | 1 | 0 | Apache-2.0 | 2020-09-14T04:53:36 | 2020-09-14T04:53:35 | null | UTF-8 | Python | false | false | 633 | py | #!/usr/bin/env python3
import unittest
from emails import find_email
class EmailsTest(unittest.TestCase):
def test_basic(self):
testcase = [None, "Bree", "Campbell"]
expected = "breee@abc.edu"
self.assertEqual(find_email(testcase), expected)
def test_one_name(self):
testcase = [None... | [
"noreply@github.com"
] | avillanm.noreply@github.com |
ccdd1734fc9702b0ed8d1756a44062042bd3ab70 | ed346f01861dc28a4c5ccb065ae1e1ea6131fa4d | /file_samples/pract13_ex3.py | c9851c77854f4b771da6122967607fcb68266a4e | [] | no_license | lucabianco78/QCBsciprolab | 69122534138ad32466c674b298b22421566f9817 | 9afc46563559acf5b75f3a8e48ad90e1b921bc1a | refs/heads/master | 2022-07-27T23:30:05.964541 | 2020-09-11T18:43:33 | 2020-09-11T18:43:33 | 148,633,966 | 0 | 0 | null | 2022-07-06T19:53:17 | 2018-09-13T12:25:39 | Jupyter Notebook | UTF-8 | Python | false | false | 1,842 | py | import random
import unittest
def sortCSV(mystr):
tmp = mystr.split(",")
tmp.sort(reverse=True)
return ",".join(tmp)
class Testing(unittest.TestCase):
def __init__(self, *args, **kwargs):
super(Testing, self).__init__(*args, **kwargs)
#create a random string
self.alphabet = "... | [
"luca.bianco@fmach.it"
] | luca.bianco@fmach.it |
49a3ea622e52e19166cdf0f8105d210aa6a70f4b | f342108e7ca3d6eb094e7e243e25ceeaa24c335c | /main.py | 8300a32468e2edfe310e9a734f6c16213e8fbe63 | [] | no_license | Telekurysh/Looking-for-films | 80ef4bb3982fe90e3786e384cc66c3b3d09b0cc3 | 3fb914097f2d57d5c174021f29c593d0f65e9183 | refs/heads/master | 2023-07-19T19:03:40.765172 | 2020-01-07T14:09:47 | 2020-01-07T14:09:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,537 | py | import sys
from PyQt5.QtWidgets import QApplication, QMainWindow, QTableWidgetItem
from UI import Ui
import sqlite3
class MyWidget(QMainWindow, Ui):
def __init__(self):
super().__init__()
self.setupUi(self)
self.con = sqlite3.connect("films.db")
self.pushButton.clicked.connect(self... | [
"noreply@github.com"
] | Telekurysh.noreply@github.com |
853cd9f91bd66aa8cb7c3785f5159eb5d757c4cd | 2da8347ee485eba61c72c5394a839c16bcbce835 | /src/__init__.py | 3201c1d604ee4134fd689df62ed5b517770ad24c | [] | no_license | svox1/PiconsTestConverter | 0abd288bf04515e7fe367bfa8a068603987a5e29 | f8ded7b74bede4cda57369ffbd391d5646daf061 | refs/heads/master | 2020-06-04T13:20:52.592127 | 2014-01-07T01:15:51 | 2014-01-07T01:15:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 933 | py | # -*- coding: UTF-8 -*-
#######################################################################
#
# PiconsTestConverter
# Copyright (C) 2013 by svox
#
# In case of reuse of this source code please do not remove this copyright.
#
# This program is free software: you can redistribute it and/or modify
# it ... | [
"mail@sebastian-wichmann.de"
] | mail@sebastian-wichmann.de |
f926b65b43588da453f042c7a401954e4f3e86e5 | 7ce2dd7b4b0671c8b051855e4bf1f6e85e8f7567 | /2018202147/src/scripts/Project3/TrafficsignClf.py | 65bd7db5b7eed8a524ef7e054fa7cd8a8a87055b | [] | no_license | weimingtom/ai20projects | b63286df9c5d72cb6ed2c188a2d58e80f82e4ca9 | ca6f993cfa569250b3116921f4b481d01de36197 | refs/heads/master | 2023-02-08T04:59:19.719235 | 2020-12-30T00:22:36 | 2020-12-30T00:22:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,708 | py | import os
from torchvision import transforms,models
import torch.nn as nn
import torch
import PIL
# 用来预测的分类器
class TrafficsignClf():
# 构造函数
# 参数:
# model_path: 模型所在**绝对**路径
def __init__(self, model_path):
# 有 8 类
self.classes = ['speed_limit_30', 'speed_limit_40',
'go_straight', 'turn_left', 'turn_right',... | [
"cuiguanyu2000@126.com"
] | cuiguanyu2000@126.com |
a29f1f6b1182042af906093e312c851c26cba225 | 354bc81b676cbf73e6ed883f24d11d600f1321d3 | /odoo/my_env/bin/rst2html.py | 365b7980e819f45da70d5acfdf0b54f29438ece4 | [] | no_license | anand-ichh/Odoo | 866bf09c99065d7821740735573be23a872e759f | c596eda039a2d6c2cec29195b28cfc155c95deed | refs/heads/main | 2023-06-14T07:15:14.866217 | 2021-07-12T10:44:21 | 2021-07-12T10:44:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | #!/opt/odoo/my_env/bin/python3.8
# $Id: rst2html.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing HTML.
"""
try:
import locale
locale.setlocale(locale... | [
"root@oddoerpservernm@ichhapurti.com"
] | root@oddoerpservernm@ichhapurti.com |
f4faeed009587fb8b26970859dabc3f70ff065e1 | 077aa7e969f2359b986ae7d70904510165ddc5fc | /.venv/lib/python3.6/dist-packages/aws_cdk/aws_ec2/_jsii/__init__.py | 14560b1b6206f580fd32e3b90c122f1d257d4fd1 | [] | no_license | lilitiny/pipe | 8fd483815d899d460a184a74a3b44b66669e833f | 5c840a3e9c51ca13338153a1245757cbaf76f7b2 | refs/heads/master | 2023-01-30T23:14:47.094481 | 2020-12-10T14:47:23 | 2020-12-10T14:47:23 | 320,216,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | import abc
import builtins
import datetime
import enum
import typing
import jsii
import publication
import typing_extensions
import aws_cdk.assets._jsii
import aws_cdk.aws_cloudwatch._jsii
import aws_cdk.aws_iam._jsii
import aws_cdk.aws_kms._jsii
import aws_cdk.aws_logs._jsii
import aws_cdk.aws_s3._jsii
import aws_cd... | [
"ec2-user@ip-172-31-28-125.ec2.internal"
] | ec2-user@ip-172-31-28-125.ec2.internal |
95cc3c807b14ed682f8a1c433a4b589994a6caed | f34a61d20773c705270d379782c64c36c574cfe4 | /mrcnn/model.py | 85d35fec18e1013c0b20aa4fabdbd85d1da40be8 | [
"MIT"
] | permissive | MarMarhoun/Cascade-MRCNN | b2d4544bd9cf3922baca5a4d82fbabc660c0dba8 | 56fc8611b1623cda4f061d101f508184964be86e | refs/heads/master | 2023-08-28T13:15:33.794261 | 2021-10-03T19:02:15 | 2021-10-03T19:02:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135,905 | py | """
Mask R-CNN
The main Mask R-CNN model implementation.
Copyright (c) 2017 Matterport, Inc.
Licensed under the MIT License (see LICENSE for details)
Written by Waleed Abdulla
"""
import os
import random
import datetime
import re
import math
import logging
from collections import OrderedDict
import multiprocessing
im... | [
"kanishgarg428@gmail.com"
] | kanishgarg428@gmail.com |
880021a654f4a378b35d60a2a77a416c09380f13 | 9bdcef7dcac5b20ee065f6fc2d3d1e4bf9505b8b | /src/no_pml.py | c7d5937bd29ab717304af07a5ac43f2045149159 | [] | no_license | gernot-ohner/fdtd | 2242f493ba4f59a87dad1032e451b2e2607cf510 | b927c124bf0dd8d5d00c5d63c60239afcfcfff2b | refs/heads/master | 2023-08-28T08:20:39.050319 | 2021-10-23T15:57:02 | 2021-10-23T15:57:02 | 420,452,184 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,763 | py | import scipy.constants as const
def calculate_constants(dx, dy, dt):
"""
Calculates the constants used in the updates equations for a vacuum.
:param dx: float
:param dy: float
:param dt: float
:return: List[4 floats]
"""
eps = const.epsilon_0
mu = const.mu_0
cex = dt / (eps * ... | [
"gernot.ohner@gmail.com"
] | gernot.ohner@gmail.com |
e9c8a8e78424da203b64fe5bca78bb96704607eb | b30175445668d7a0be6b867c781ce7e6e64e8f51 | /code/tfspkl_main.py | 8c14293de3aa0c5275267377a062535dbccd9431 | [] | no_license | PrincetonCompMemLab/247-pickling | 266eb7f7bd8aa6f314e07174cdd92d41298ba637 | 20c513ff13ab1813d985f8ac2c90d9a6e4d0222f | refs/heads/main | 2023-04-02T06:35:40.923881 | 2021-04-14T05:35:15 | 2021-04-14T05:35:15 | 357,971,138 | 0 | 0 | null | 2021-04-14T16:26:24 | 2021-04-14T16:26:24 | null | UTF-8 | Python | false | false | 10,553 | py | '''
Filename: /scratch/gpfs/hgazula/247-project/tfs_pickling.py
Path: /scratch/gpfs/hgazula/247-project
Created Date: Tuesday, December 1st 2020, 8:19:27 pm
Author: Harshvardhan Gazula
Description: Contains code to pickle 247 data
Copyright (c) 2020 Your Company
'''
import os
import pickle
import numpy as np
import p... | [
"hvgazula@umich.edu"
] | hvgazula@umich.edu |
21ce8528825c4e522f40d39c4685443bcdbcdac4 | 76f4443972ba066e9a3239d96416b8e807800d8f | /tensorflow/contrib/seq2seq/python/ops/helper.py | 46d0563fe08b03a7eb96dfec092949761666d563 | [
"Apache-2.0"
] | permissive | ravyg/tensorflow | 34702f5c0003b602431471987fe50b5ffb6d1912 | 2a83490455f0f02ea05fc447551cacea1c1b8cb6 | refs/heads/master | 2021-01-17T11:46:47.552165 | 2017-02-23T22:21:57 | 2017-02-23T22:21:57 | 60,307,856 | 3 | 2 | null | 2016-08-28T21:03:23 | 2016-06-03T01:07:06 | C++ | UTF-8 | Python | false | false | 14,187 | py | # Copyright 2016 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 |
a5200b8cedea8db38dacd15c3aed4a169279d957 | f300750089a04502dcb6257ee0bd840637f7bc81 | /深度学习入门练习/matplotlib练习/imread.py | 2b0642e1c8740bc1315ef27aa248d39a8e992b32 | [] | no_license | flymysql/flypython | 84ecedc3a70a38f2ac926ca94cf211dbfa10a243 | 065da9a5fb0dce5793d757dbdebdc491c1b8e7e1 | refs/heads/master | 2020-04-05T17:58:51.100923 | 2019-06-03T07:16:36 | 2019-06-03T07:16:36 | 157,083,722 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | import matplotlib.pyplot as plt
from matplotlib.image import imread
img = imread('test.png') # 读入图像
plt.imshow(img)
plt.show() | [
"flyphp@outlook.com"
] | flyphp@outlook.com |
d407e6efe97070be75014a8bc45c966906c9cd14 | e707164df1aa8edb5d276179538bd1eb1805f759 | /CODE/fedora_application/env/lib/python2.7/site-packages/fedmsg/config.py | bcb6258cc6c1c0570c5a144728cc39fb87d6c893 | [] | no_license | beckastar/cleaner_markov | af5816c14c94a8cb7924728179470e7db9ed2bc0 | a6de3fd87db77c0d80789cbce0ff409c222b4e67 | refs/heads/master | 2021-01-02T22:52:08.989862 | 2013-11-10T04:51:04 | 2013-11-10T04:51:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,936 | py | # This file is part of fedmsg.
# Copyright (C) 2012 Red Hat, Inc.
#
# fedmsg is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#... | [
"rebecca.robbins.et@gmail.com"
] | rebecca.robbins.et@gmail.com |
2a9b120d2b44a4f7fdfcd4a45e7c52f4354d5c9b | 87aef9e41fe73d69ca5ccc9e28a4fac0c13457c6 | /stmpemail.py | 7ac47afefba2ba80054d503783d4163de1a60bea | [] | no_license | BillKiller/Newpos | be0a83b84ff055d31c96f5ec73f9da2ef82dbd71 | 9912e11bd63bc3f59a0ca1167bfead427d696568 | refs/heads/master | 2020-07-17T21:38:48.770133 | 2017-06-19T15:32:02 | 2017-06-19T15:32:02 | 94,324,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,507 | py | #coding:utf-8 #强制使用utf-8编码格式
import smtplib #加载smtplib模块
from email.mime.text import MIMEText
from email.utils import formataddr
my_sender='###747441355@163.com' #发件人邮箱账号,为了后面易于维护,所以写成了变量
my_user='###747441355@163.com' #收件人邮箱账号,为了后面易于维护,所以写成了变量
def mail():
ret=True
try:
msg=MIMEText('填写邮件内容','plain',... | [
"747441355@qq.com"
] | 747441355@qq.com |
474b42b6750eb01cac86bb98978ade8ef0d017fb | 32cb456abbc05673ab8f31caf437ebc75bfa7c6f | /follow_alicate.py | b0ccd52383245c3243343a75e26b512fadf1e751 | [] | no_license | rodrimaia/follow-alicate | d915126bbb027957a28eedd6eaec74cc7bb0e4b2 | 8bcbf726a73da6b8f3ffe3bef5a59ebab03bdcbd | refs/heads/master | 2021-05-29T05:27:13.742671 | 2015-05-29T16:50:22 | 2015-05-29T16:50:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py |
def main():
print 'ei'
if __name__ == "__main__":
main()
| [
"rodrigo.maia.pereira@gmail.com"
] | rodrigo.maia.pereira@gmail.com |
936baa9a603ebaf11d6c5adc98fecc3cf562f6cc | 952abfc855d0fca89200f1e428aac9a87f1d3295 | /tf114/tf09_mv2.py | 6e8e7a3f054efe4bf5163d9aaf09c665b95a2f75 | [] | no_license | TaeYeon-kim-ai/STUDY_1.py | 7570b4510bf8d9791447efe3a97a9668a1cabe06 | e14392c706b7e51e40f1ac68555e26558e25b38f | refs/heads/master | 2023-06-03T09:04:13.498591 | 2021-06-21T17:10:47 | 2021-06-21T17:10:47 | 329,834,933 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,710 | py | #과제
# 차원 형태 내용
#스칼라 1
#벡터 [1,2,3]
#행렬 [[1,2],[2,3]]
#텐서 [[[1,2],[1,2,3]]]
# x * W 두개의 사이즈가 맞아야함
# x = 5, 3
# W = 3, 1(2,3,4,되던 상관없음) + b와 더할 수 있는 shape가 동일해야함.
# (5, 3) x (3, 1) = (5, 1) #앞에 열과 뒤에 행만 맞으면 행렬 연산할 수 있음
# (3, 2) x (2, 3) = (3, 3)
# [실습] 만들... | [
"noreply@github.com"
] | TaeYeon-kim-ai.noreply@github.com |
6dc0a1d0e1425a823db217876fa1cdd142790f91 | e684304acc713dd5a0f47947bbf42dbea49dd1ec | /run.py | 5adab088518aa4a43504dd44028ceee9cb922456 | [
"MIT"
] | permissive | pranavaddepalli/filterbot | b5025cf734dabfabc0981052e8b2b0b4f1d044b2 | d6a4b0f4ac16b54eb63b1140f0ddc29a7da6d3e5 | refs/heads/master | 2022-12-07T16:25:28.512476 | 2020-08-31T17:15:21 | 2020-08-31T17:15:21 | 291,506,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,467 | py | import discord
import os
client = discord.Client()
banned = []
custom_responses = {}
custom_replyto = {}
@client.event
async def on_ready():
print('We have logged in as {0.user}'.format(client))
@client.event
async def on_message(message):
global banned
global custom_responses
global custom_replyto
... | [
"pranav.addepalli@gmail.com"
] | pranav.addepalli@gmail.com |
0961a55413c0854c2148a4c91bfb17bbb9891d86 | 3122ac39f1ce0a882b48293a77195476299c2a3b | /clients/python-flask/generated/openapi_server/models/pipeline_run_node.py | f205f70d61ad88141b09f4ad9bdc2cfd5a55b15f | [
"MIT"
] | permissive | miao1007/swaggy-jenkins | 4e6fe28470eda2428cbc584dcd365a21caa606ef | af79438c120dd47702b50d51c42548b4db7fd109 | refs/heads/master | 2020-08-30T16:50:27.474383 | 2019-04-10T13:47:17 | 2019-04-10T13:47:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,765 | py | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from openapi_server.models.base_model_ import Model
from openapi_server.models.pipeline_run_nodeedges import PipelineRunNodeedges # noqa: F401,E501
from openapi_server... | [
"cliffano@gmail.com"
] | cliffano@gmail.com |
a31c47466a63ebe9f2458043468b38fdab092b6d | 825b45bc5c8402abb0041bf7e33fc1c92948cd4e | /ecommerce_app/ecommerce/store/migrations/0003_auto_20201025_1739.py | 975ec0eea86750d49b413d51e7617e7f6801d3c9 | [] | no_license | wambuic/Ecommerce_Website | 8d2cbf4448c9576614faf22410be6196a6ed8e57 | 08cab454e01f544b0a70b1b4b6cedf3bd2067ef0 | refs/heads/master | 2023-01-01T07:14:24.056172 | 2020-10-26T20:42:13 | 2020-10-26T20:42:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | # Generated by Django 3.1.1 on 2020-10-25 14:39
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('store', '0002_product_image'),
]
operations = [
migrations.AlterField(
model_name='product',
name='price',
... | [
"consolatawambuimacharia@gmail.com"
] | consolatawambuimacharia@gmail.com |
aab890378fb0a5a2fca1102a0b1220f988bed7af | 03cab35935538a7049e7c9006c56d1bc6a339142 | /Recursion/Problems/permutation.py | e5f50184e73e667058341fc4dcb189f2684149bf | [
"MIT"
] | permissive | kannan5/Algorithms-And-DataStructures | a9cc8695f8f848f30c223275f51024a379dcb732 | 5d962bc123ecc51899894faac02214e296cc55d8 | refs/heads/master | 2023-03-13T15:29:11.702298 | 2021-03-10T08:38:13 | 2021-03-10T08:38:13 | 284,735,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 547 | py |
def Permutation(input_list, partial, used):
input_len = len(input_list)
if len(partial) == input_len:
print(partial)
else:
for i in range(0, input_len):
if not used[i] and not (input_list[i] == input_list[i - 1] and not used[i - 1]):
used[i] = True
... | [
"kannanhlr@gmail.com"
] | kannanhlr@gmail.com |
7119dff524629f1ceea380a082865772286b6886 | 60ab0c50a338ae5f444bbb1210f5f840419851f3 | /zqz_tmp/devel/lib/python2.7/dist-packages/bsplines/__init__.py | 2d40ede40c4a5a744f71dec9598bc33fc1baf069 | [] | no_license | zhang-quanzhe/NvidiaNX_SLAM | df9789a230bf5b9ebcb888a8db8bd8fdba498b08 | c7a7cf8c460a7fe53c0e90d9fb699263681033fc | refs/heads/master | 2023-07-09T16:37:41.249915 | 2021-08-21T07:59:55 | 2021-08-21T07:59:55 | 398,501,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,066 | py | # -*- coding: utf-8 -*-
# generated from catkin/cmake/template/__init__.py.in
# keep symbol table as clean as possible by deleting all unnecessary symbols
from os import path as os_path
from pkgutil import extend_path
from sys import path as sys_path
__extended_path = '/home/nvidia/zqz_tmp/src/kalibr/aslam_nonparamet... | [
"zhumingjie0206@163.com"
] | zhumingjie0206@163.com |
45dcf488356f131c81b6360b7d7b82addfcb891f | 27ae4f742aeb8300d29414983b9c708c3868a154 | /get_coupon_to_mysql.py | 56f10a620be7eba4d323255101ecc60be8c8dcb4 | [] | no_license | Jun10546027/python_get_coupon | 6f545b7ec2cb5d1b61811e1b9c7c00cf93b8d954 | 651a127fcef25e30c36d808171981183d5515c43 | refs/heads/master | 2020-05-19T21:06:40.238929 | 2019-05-19T14:20:53 | 2019-05-19T14:20:53 | 185,216,137 | 0 | 0 | null | null | null | null | BIG5 | Python | false | false | 7,342 | py | import requests
from bs4 import BeautifulSoup
import os
from urllib.request import urlretrieve
import pandas as pd
#資料庫存檔
import mysql.connector
from insert_mysql import prevent_duplicate
#--------這行只是要輸入密碼----------------
from password import My_password
#建立資料庫連線
mydb = mysql.connector.connect(
user='root',
... | [
"10546027@ntub.edu.tw"
] | 10546027@ntub.edu.tw |
843da81a8ffb5a42c03e04f0275721a829f06491 | e35f24e01a7f8888e30bb7fb6b758b03c56f9266 | /py/goiot/dataserver/views.py | def522155add1b9dea5d4ff0e6b2bcce74013516 | [] | no_license | huayunfly/repo | 7256a554c06f7c2d17823640a451a9a760ea78d3 | 6f5bc720ca425ae725cd2968e56ebb50cddbfd51 | refs/heads/master | 2020-04-06T06:35:02.952400 | 2018-09-05T06:58:01 | 2018-09-05T06:58:01 | 51,144,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,191 | py | # -*- coding: utf-8 -*-
"""
@summary: View definition
@author: Yun Hua, yun_hua@yashentech.com
@date: 2017.01.04
"""
from datetime import datetime
from django.shortcuts import render
from django.http import HttpRequest
from django.http import JsonResponse
from dataserver.models import DataSource
DA_Q_KEY = 'key'
... | [
"cuiguoxia@sohu.com"
] | cuiguoxia@sohu.com |
df7859b3968e2e07fe6d573c3c0175bb0d06485b | 72dbf8366cf17b6a81ab37e72af667726e3f2661 | /store/migrations/0016_auto_20201104_1719.py | 31c0e9e8bf2783c9b201a665dd614b048aa7b44d | [] | no_license | Rayhun/Django_E-Commerce_website | 3aef732ffa0a41509be95ced3c33b845233903a7 | 1a5f7e31f942914256e49ba7da1f7367a799f097 | refs/heads/main | 2023-05-23T18:18:27.875328 | 2021-04-30T19:29:06 | 2021-04-30T19:29:06 | 306,414,778 | 3 | 1 | null | 2021-04-30T19:28:58 | 2020-10-22T17:41:57 | CSS | UTF-8 | Python | false | false | 505 | py | # Generated by Django 3.1.1 on 2020-11-04 11:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('store', '0015_remove_product_product_name'),
]
operations = [
migrations.AlterField(
model_name='customer',
name='ge... | [
"rayhunkhan27@gmail.com"
] | rayhunkhan27@gmail.com |
d7e990e744dac5ef71e3c0c35c59023144364306 | 4aa84729b3d84760433af7d96a2b7bad634abad3 | /code/data-creation/stage0.py | 9d17caab3cfb9be5121f3528524dbfc843488d12 | [] | no_license | shashankg7/rnnsm | 11326c3462f31be85dabd637a62b647d8dec8023 | 15f487ede38557e7bd2c48e89ee80b2bcd5a102c | refs/heads/master | 2020-10-01T21:05:08.702395 | 2018-01-22T21:00:46 | 2018-01-22T21:00:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,047 | py | import sys
sys.path.insert(0, '../utils')
from dataPiping import makeunixtime
import pandas as pd
import numpy as np
from multiprocessing import Pool
def createStage0():
df = loadData()
df = parallelizeDataframe(df, convertTimeCols)
return df
# read raw data
def loadData():
"""Loads data into df
... | [
"grobgl+github@gmail.com"
] | grobgl+github@gmail.com |
f58474a9aea0941e1addfa44edfbeac7a7c4e547 | 2c20f40a25c7e718e031db18901a6900527ea757 | /vedo/pyplot.py | c22cef53b499069a54ae9c2281be4877bf49d19b | [
"OFL-1.1",
"MIT",
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | sariths/vtkPlotter | a09653c6aa862ff7932aef8ba417349f1b82288e | f5b84f9b3ef202353c85e0b18f2e2e1a5d72183c | refs/heads/master | 2021-12-11T02:51:47.300710 | 2021-11-10T10:42:50 | 2021-11-10T10:42:50 | 137,873,932 | 0 | 0 | MIT | 2018-07-09T13:09:21 | 2018-06-19T10:03:55 | Python | UTF-8 | Python | false | false | 98,743 | py | import vtk
import numpy as np
import vedo
import vedo.settings as settings
import vedo.utils as utils
import vedo.colors as colors
import vedo.shapes as shapes
import vedo.addons as addons
from vedo.assembly import Assembly
from vedo.mesh import Mesh, merge
from vedo.plotter import show # not used, but useful to import... | [
"marco.musy@gmail.com"
] | marco.musy@gmail.com |
4e4336b975c5ee46eb7645c1b114c235d4303c50 | 989f011a784015e1a33c41362ab4ec06e92b3339 | /examples/07_functions/func_args_unpacking.py | 1e837181f73877fce4b28831c45f757f1b3da290 | [] | no_license | yevgeniy-voloshin/pyneng-online-jun-jul-2017 | b0be9df7d379e24b654172c1bc3f5cc0bdbbcd2f | 050e43d7f582528189005c1b7c34970352e968f1 | refs/heads/master | 2021-01-21T16:22:27.347769 | 2017-05-19T17:35:16 | 2017-05-19T17:35:16 | 91,885,650 | 1 | 0 | null | 2017-05-20T11:46:28 | 2017-05-20T11:46:28 | null | UTF-8 | Python | false | false | 3,132 | py |
# Unpacking positional arguments
def config_interface(intf_name, ip_address, cidr_mask):
interface = 'interface %s'
no_shut = 'no shutdown'
ip_addr = 'ip address %s %s'
result = []
result.append(interface % intf_name)
result.append(no_shut)
mask_bits = int(cidr_mask.split('/')[-1])
bi... | [
"pyneng.course@gmail.com"
] | pyneng.course@gmail.com |
0741736e6535eab3dc9df61cad2e63d918311716 | e961e47a7d835b41a1a3e579d2feb96cc9504e92 | /demo/GetUrl.py | 03bd87da189ed7af035976b2f3e8e0e240b634a9 | [] | no_license | asw5757257/Py- | 917ab77aea080029a7daf1467df4829ac3d0dff1 | 7720040d120c3bac1d194d7aaf7cb211ace56367 | refs/heads/master | 2020-07-23T08:20:55.682206 | 2019-09-10T08:01:26 | 2019-09-10T08:01:26 | 207,497,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py |
url="https://movie.douban.com/top250?start=%d&filter="
def Get_Data_Url(p):
url_page = url%p
print(url_page)
return url_page
if __name__ == '__main__':
for i in range(0, 249, 25):
p = i
Get_Data_Url(p)
pass
pass
| [
"207656645@qq.com"
] | 207656645@qq.com |
75af37c7035fa42e49638ffc2f8b9d925f49ea7e | ee00ebe5e71c36b05fbff993b19e9723b963313f | /35_inserted_position.py | f5142c9a3ab2c24b65c81f2721f1dd7ad04a16e3 | [] | no_license | 26XINXIN/leetcode | f365560d93604a28abf399707b333f3c11f924ec | 78ed11f34fd03e9a188c9c6cb352e883016d05d9 | refs/heads/master | 2021-06-28T16:31:45.103879 | 2020-09-19T20:33:55 | 2020-09-19T20:33:55 | 144,975,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | class Solution:
def searchInsert(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: int
"""
ans = self.binary_search(nums, 0, len(nums)-1, target)
if ans == len(nums)-1 and target > nums[-1]:
ans += 1
return ans
... | [
"yangxin.nlp@bytedance.com"
] | yangxin.nlp@bytedance.com |
e22b0e93c405f52d9224ce7ce21d4d8440b85f62 | 03b0ab88a42a9dd5b86ff98d0409f522428cc014 | /gui/tiles/end_level.py | a4162710c4e2e0073d0d4a5a375d9e421e7fed66 | [] | no_license | anis-campos/macgyver | d6a3e78353d3c4aa68f9bc6d67d4738f75bf1b04 | 64bbaf2d8751d92f089f51d11f1ee063e389a7cf | refs/heads/master | 2021-01-08T02:52:10.731734 | 2020-02-24T15:25:14 | 2020-02-24T15:25:14 | 241,890,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 651 | py | import pygame
from gui import WHITE
class EndLevel(pygame.sprite.Sprite):
def __init__(self, width, height):
super().__init__()
self.image = pygame.Surface((width,height))
self.rect = self.image.get_rect()
self.draw_text('YOU ESCAPED, WELL DONE !', 50, width/2, height/2)
font... | [
"yocorporation@hotmail.com"
] | yocorporation@hotmail.com |
649781f4b1fe097b8c83013e3163486cc5e28b6d | cbe9bca15a67c1d5603f4aab7a67d9ffbc9a043b | /refresh_token.py | 0dcc712a76eb96c46b2d938215dd48e65bbe7d68 | [] | no_license | nicolashi/tal_baidu_test | adf6eb1e5754fc6709b5b4b55563da3d3c8faeff | b9a4a76e8ebebc16bb72410107c9d2fc59e9c7b8 | refs/heads/master | 2022-01-27T02:14:58.184075 | 2019-05-08T07:13:10 | 2019-05-08T07:13:10 | 180,771,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | #
# generate new token using refresh token
#
import urllib, urllib2, sys
try:
import urllib.request as urllib2
except ImportError:
import urllib2
import ssl
# api key
client_id = "xDI1sdxGBAqDXmP1SN854oXx"
# secret key
client_secret = "j051S00hqjGdm8CEXDm4ZaYsAqQ2Ddmv"
refresh_token = "25.8e3b... | [
"nicola.shi@tufts.edu"
] | nicola.shi@tufts.edu |
ea72d2acaaac6dc2ec9c32732f3da94c4e0f077e | fa27041fe8f82971af6114d1eed2be03b5d3be51 | /1-report-repair/report-repair.py | 660dbf4b6cfb5b44d3e66ca2756c90213e221179 | [
"MIT"
] | permissive | RealOrangeOne/advent-of-code-2020 | 89e64d435958e74008600d7ddbafa8a547b8c6c2 | ca3cce3becec8ea3a62e040ff107a150e4b39588 | refs/heads/main | 2023-02-03T23:10:48.256449 | 2020-12-15T17:22:19 | 2020-12-15T17:22:19 | 318,804,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | from itertools import product
from math import prod
from pathlib import Path
with Path(__file__).parent.joinpath("data.txt").open() as f:
data = list(map(int, f.readlines()))
for repeat in [2, 3]:
for vals in product(data, repeat=repeat):
if sum(vals) == 2020:
print(repeat, prod(vals))
... | [
"git@theorangeone.net"
] | git@theorangeone.net |
c11be51346e8d98da85297b74e11d3f6223ea0f5 | 1d673ccf96a80bf9e8474b92332d91a916c9ea90 | /PyZMQCommunicator/MissionDesigner - 180522.py | 586926d49d054f3c0e09a86212496a349a57e08e | [] | no_license | Seunghwan17/ZMQCommunicator | 6309c0dc7c4c2f7b4fd9e0a61e1265ba3ff6a56f | 65686436435cacfb868b09275be0e0c18a0aeee8 | refs/heads/master | 2020-03-23T04:33:32.332919 | 2018-07-16T05:16:32 | 2018-07-16T05:16:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,888 | py | from dronekit import Command, CommandSequence
from DroneCommander import *
from pymavlink import *
def load_mission(drones, homePosition, fileName):
missionFile = open(fileName, 'r')
lines = missionFile.readlines()
for drone in drones:
clear_mission(drone)
count=1
for line in line... | [
"dehan2@naver.com"
] | dehan2@naver.com |
ec296fd81ac29f1b34a8df5f07bf89b73e9fd1f4 | 5cb5caf2955e8bab1dc9cfd07100c7bf5781ec90 | /linear_Regression/Ruebenpreis.py | f72d311a4606580ca73c99263142dc3a75ad6eb1 | [] | no_license | Raketenpete/Ruebenpreis | 934b22df29aee86b5c8b30e93f75b71997e0834c | 952b2e7f0b1e3435f946df329ea13bea91f729cf | refs/heads/master | 2022-04-17T14:42:48.580810 | 2020-04-16T13:18:44 | 2020-04-16T13:18:44 | 256,186,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,042 | py | import numpy as np
np.set_printoptions(threshold=np.inf)
import pandas as pd
from sklearn.linear_model import LinearRegression
import warnings
warnings.filterwarnings(action="ignore", module="sklearn", message="^internal gelsd")
def linearizer(lowerLimit, upperLimit): # untere und obere Grenze
upperLimit += 1
... | [
"mueller.tristan.91@gmail.com"
] | mueller.tristan.91@gmail.com |
59ff54f14f345d3754b2facbe16b2913a6ca90c5 | 4ef553f103f5373b4eb0dbb8985eaa6f0427aa81 | /xiaolingdangvenv/bin/flask | 02393711deb8ae9e163495e7243a77b45eaeb817 | [] | no_license | amateurlee/xiaolingdang | 2f5a3d5c5392e7cba4c84177c536d86b40b3d694 | ef35c8b504835c5e3bd090750743c3cdcf53a40f | refs/heads/master | 2020-03-08T20:19:50.533380 | 2018-07-04T17:15:22 | 2018-07-04T17:15:22 | 128,379,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | #!/root/xiaolingdang/xiaolingdangvenv/bin/python2
# -*- coding: utf-8 -*-
import re
import sys
from flask.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"amateurlee@126.com"
] | amateurlee@126.com | |
39ce5936fbd983e8024c5dcb8f9878eedec786a4 | 45c32c7e725b5e4d9dbe2fc92160ded14827d2dc | /app/ota_repo/tc_policy_wt.py | a4bc885685a9655587f0d41e0aaf13af1d5619be | [] | no_license | a413107719/tourbillon | 3b68b088d07ca75044a12aa8ec6d928b580a8dd9 | c645ce586b3fb21dc6029fe0bbae3116e3531cae | refs/heads/main | 2023-06-16T01:31:45.738712 | 2021-07-16T06:10:29 | 2021-07-16T06:10:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,427 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# pylint: disable=invalid-name, too-many-arguments, broad-except, anomalous-backslash-in-string
# pylint: disable=missing-docstring, line-too-long, too-few-public-methods
"""
# @Author : wxt
# @Software: PyCharm
同程政策拉取订单模式
万途公司定制
"""
import datetime
import base64
from ..... | [
"xiaoixiao1989@163.com"
] | xiaoixiao1989@163.com |
097dd5898600765c7f6cb2a2c800a9d2703ba7f9 | 3a88ccc2835e4a88c93d3401926b4ce991b61168 | /run_horovod.py | f5216f600e3705381e01d5f1c0fc3fb992426dca | [] | no_license | Shiner11/bd18f-Noori2 | adf779f441fac2e1b22e8df535bb7f5983121ea1 | df4221e406cc714c85cac54ac448276c6f8847f1 | refs/heads/master | 2020-04-10T11:45:02.645773 | 2018-12-09T08:37:04 | 2018-12-09T08:37:04 | 161,001,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,734 | py | """
Example command for running this script:
mpirun --mca btl_vader_single_copy_mechanism none --allow-run-as-root -bind-to none -map-by slot -mca orte_base_help_aggregate 0 -x NCCL_DEBUG=INFO -np 2 -H localhost:2 python run_horovod.py --max_steps=100
Example command for examining the checkpoint file:
python <PARALLAX... | [
"noreply@github.com"
] | Shiner11.noreply@github.com |
d0db1cd6164cae8da09acb05bc8dac99df5d4ccf | 3daea618967bb99858472837390d7d8cbc32807e | /modules/student.py | 03b54200697fd812bd67e1c97aa86d327e255bd2 | [
"LicenseRef-scancode-public-domain"
] | permissive | ergaurav2/placement-portal | f360559816c7378422131c1d8cf5eb24157f180f | 87b84828ca7ef18b4380eb14853a863dcfa1a935 | refs/heads/master | 2016-09-05T23:31:17.249989 | 2014-03-11T17:11:43 | 2014-03-11T17:11:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,181 | py | #!/usr/bin/env python
# coding: utf8
from gluon import *
class Student:
rollno=""
firstname=""
lastname=""
birth_date=""
gender=""
emailid=""
pwd=""
course=""
mobile=""
peradd=""
curradd=""
ext_emailid=""
fathername=""
def createbasicstudent(self,obj):
sel... | [
"ergaurav2@gmail.com"
] | ergaurav2@gmail.com |
408cd967099fe900471e4103edf3f71c8f1f8cd8 | 12e04c219d6911d06a048c913f8d8d6c00dad857 | /chendian/api/blog/views.py | 5deab03ba38adced720c0e0764230d3bc891c9a2 | [
"MIT"
] | permissive | mozillazg/chendian-plus | 928e98beb77f351e08b25a5ba9671ad648dac4b5 | 893c62b4b855879006d4cb378faeb9d1c6635923 | refs/heads/master | 2023-09-04T09:58:58.112022 | 2017-04-04T09:44:28 | 2017-04-04T09:44:28 | 31,481,576 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,155 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
from django.shortcuts import get_object_or_404
from rest_framework.views import APIView
from rest_framework.permissions import IsAdminUser
from rest_framework.response import Response
from rest_framew... | [
"opensource.mozillazg@gmail.com"
] | opensource.mozillazg@gmail.com |
f524011728bfd4542c5c10736a8bbdf82778f96d | 5307ad6ec7c218c04383a613642c698bd16bb12c | /src/loan_admin/tests/test_loan_term_notification.py | 672e0fd45bf97c5a2cc1a691a8a9bb6f079b54b6 | [] | no_license | DrZedd42/constant-loan-api | 8cece9d2f4a71bbe9771357b54979463bc18ae8d | 71f003815a96e36e04d386fc7a07795f3ba8cd34 | refs/heads/master | 2021-10-19T07:39:56.378194 | 2019-02-19T08:53:41 | 2019-02-19T08:53:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 734 | py | from django.urls import reverse
from rest_framework import status
from rest_framework.test import APITestCase
from common.test_utils import AuthenticationUtils
from loan.factories import LoanTermNotificationFactory
class ListLoanTermTests(APITestCase):
def setUp(self):
self.auth_utils = AuthenticationUti... | [
"khoa@autonomous.nyc"
] | khoa@autonomous.nyc |
767e56a2ed2fe2b567278f720273e1bc40ffebb5 | 060e4121c5c33d3df81f1a707735e20fc8f5717e | /plot_utilities.py | e8166865aa544d25c06dadc3f85481a6d5463240 | [] | no_license | drthomasbalzer/mmf_2020 | 15edd53d802606b05b706ba8dad0e88d83adad0d | a838d645a3d66e47281985606ca2e67598bb4520 | refs/heads/master | 2023-01-19T08:00:24.642150 | 2020-11-24T21:37:24 | 2020-11-24T21:37:24 | 293,277,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,309 | py | ################
## Author: Thomas Balzer
## (c) 2020
## Material for MMF Stochastic Analysis - Fall 2020
################
import matplotlib.pyplot as plt
def min_max_axis(y):
t_min = 100
t_max = -100.
t_min = min( [min(t_min, min(y_k)) for y_k in y] )
t_max = max( [max(t_max, max(y_k)) for y_k in y... | [
"thomas.balzer@gmail.com"
] | thomas.balzer@gmail.com |
ab2ef61c7be69927178e04d9011d650cc23a1a87 | 2322b5a1e6443715d14029ed09d9091d221e4569 | /tests/test_dfply_select.py | 718f55fd119c9ec68b7fdbd216d3fa859c7dd4e2 | [
"MIT"
] | permissive | zdelrosario/py_grama | 1e86454cb67dde055a332de023aab8a52eeb0d87 | d5edbcd3c8dc8705362eb36d437890962851da1d | refs/heads/master | 2023-09-05T01:44:57.707310 | 2023-08-29T12:51:56 | 2023-08-29T12:51:56 | 173,464,075 | 19 | 9 | MIT | 2023-08-16T20:14:08 | 2019-03-02T15:25:43 | Jupyter Notebook | UTF-8 | Python | false | false | 14,801 | py | import numpy as np
import pandas as pd
from scipy.stats import norm
import unittest
from context import grama as gr
from context import data
X = gr.Intention()
##==============================================================================
## select and drop test functions
##========================================... | [
"zdelrosario@outlook.com"
] | zdelrosario@outlook.com |
278f20ab0afd45446b591cebd052df3a7798927e | 3529a89ec8c127d8b1bf8d37f9ae08be31077881 | /bootstrap_example_1.py | 7bf5ac9d16054101fba22b688a435144dfa54af1 | [] | no_license | momchi93/Bootstrapp | 6a4df5a9c04587d2e98fab4c0bdaa0a5add75cbc | 1a550419d647a771f274629167a5b9958cb5d572 | refs/heads/master | 2020-04-07T04:42:18.065056 | 2019-02-14T14:55:50 | 2019-02-14T14:55:50 | 158,066,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,329 | py | import numpy as np
import matplotlib.pyplot as plt
from statsmodels.tsa.arima_process import ArmaProcess
import time
# Function Defintions
def generate_ar_process(N, ar):
ar_process = ArmaProcess(np.r_[1, -ar], np.array([1]))
X = ar_process.generate_sample(N)
return X
def get_I_XX(X, N):
T = X.si... | [
"momchi93@gmail.com"
] | momchi93@gmail.com |
c3276098bbfeed6b97b1c4291af58b7939b17082 | d94b6845aeeb412aac6850b70e22628bc84d1d6d | /multiple_user_representations/models/task.py | 05df7200848d01a702e2184141f95464a2814410 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | ishine/google-research | 541aea114a68ced68736340e037fc0f8257d1ea2 | c1ae273841592fce4c993bf35cdd0a6424e73da4 | refs/heads/master | 2023-06-08T23:02:25.502203 | 2023-05-31T01:00:56 | 2023-05-31T01:06:45 | 242,478,569 | 0 | 0 | Apache-2.0 | 2020-06-23T01:55:11 | 2020-02-23T07:59:42 | Jupyter Notebook | UTF-8 | Python | false | false | 10,488 | py | # coding=utf-8
# Copyright 2023 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
d1dd82562e95e8748af9c0c79c4d56582c205ee7 | 612858007a347433f85c62ef0d82818be37a39b7 | /fileupload/migrations/0002_auto_20160720_0937.py | 792fc8e3033fd5feae2da495c85689ff815db646 | [] | no_license | zidan9011/python_git | ea3ccae2c9e147924437f5cdf916b4d4dc12a601 | 26925086003f03c7cd6dc3ef8cc694e546aed62a | refs/heads/master | 2020-05-29T16:09:00.227910 | 2016-12-13T06:54:35 | 2016-12-13T06:54:35 | 60,998,588 | 0 | 2 | null | 2016-12-13T06:54:36 | 2016-06-13T01:33:35 | JavaScript | UTF-8 | Python | false | false | 31,086 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import datetime
class Migration(migrations.Migration):
dependencies = [
('fileupload', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='report_detail'... | [
"yezitt@163.com"
] | yezitt@163.com |
36c86d678f066fe77a212a885efefd8f088686e3 | 3ad2fb33160bd7e47e620e33921d3174f39715fb | /src/motor_driver/dummy.py | e924a4b618cfdb6e1dfe06fb0b3504f130568bb1 | [
"MIT"
] | permissive | kazet/cnc | 24453cdf10dcd57eb4baf134437bde287710354b | 8e207a71616a9a13bac57df85631714235589891 | refs/heads/master | 2023-05-28T14:19:30.470077 | 2020-03-25T16:59:16 | 2020-03-25T16:59:16 | 164,492,847 | 0 | 0 | MIT | 2023-05-01T20:32:20 | 2019-01-07T20:45:54 | Python | UTF-8 | Python | false | false | 1,586 | py | from typeguard import typechecked
from utils.typing import Numeric
from motor_driver.base import BaseMotorDriver
class DummyMotorDriver(BaseMotorDriver):
"""
A dummy implementation of BaseMotorDriver that raises NotImplementedError on any command.
"""
def __init__(self, *unused_args, **unused_kwargs)... | [
"krzysztof.zajac2@gmail.com"
] | krzysztof.zajac2@gmail.com |
79f421b971ae6350edb574cc28e1f5ea9378a75f | 8386d5bccc331ab0a55fcf72fb2d70cf66dd179a | /chpt1/os-example-6.py | ce1d0acd8e66aca78c5f42cf54ce971856e6f6a0 | [] | no_license | makeabug/PythonStandardLib | 215daf1c87508e5643f09670f9d5f7ea1b20d9a0 | 584b69daa410d092c1e71f638b99947abca8fc19 | refs/heads/master | 2021-01-22T19:30:53.433425 | 2013-09-11T03:09:01 | 2013-09-11T03:09:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | import os
os.makedirs("samples/test/level2/tmp")
fp = open("samples/test/level2/tmp/file", "w")
fp.write("inspector praline")
fp.close()
os.remove("samples/test/level2/tmp/file")
os.removedirs("samples/test/level2/tmp")
| [
"dw@example.com"
] | dw@example.com |
da6a8938b7bf45fce3a7ec152f61296f754997c9 | 2bcadbb06c7783d73e7f546ada90c6ff4ec32aa0 | /catalog/views.py | 750d1e37eec922490ab6748d39b64b63301139e6 | [
"MIT"
] | permissive | RafaelGreen1/django_local_library | b5a259e1dd15efe4f1b750b3a9ed66c3de9d2304 | 8eb9ad35ac71e35671ebb78c9157374fda1b17e2 | refs/heads/main | 2022-12-27T04:22:12.897395 | 2020-10-13T06:33:49 | 2020-10-13T06:33:49 | 303,576,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,464 | py | from django.shortcuts import render
# Create your views here.
from catalog.models import Book, Author, BookInstance, Genre
def index(request):
"""View function for home page of site."""
# Generate counts of some of the main objects
num_books = Book.objects.all().count()
num_books_with_the_word_n... | [
"arpaxad1@gmail.com"
] | arpaxad1@gmail.com |
e8535cca01d9895b10308330ab51999192cb4c42 | b6357755916f2dcf465301f721dd18f19441d1d7 | /examples/pbsquerynodes.py | 8bac1bc5b82fc5e131ba78db0a07a83418e4d8e7 | [] | no_license | prehensilecode/qstatviewer | b9731bf604834604c39c794326fa798f14c4db0c | 696cf077fcac29a0a34a380ed3fdcf35c003e29f | refs/heads/master | 2020-05-17T18:40:11.826440 | 2014-02-11T04:53:29 | 2014-02-11T04:53:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | #!/usr/bin/env python
import sys
import os
import re
from PBSQuery import PBSQuery
def main():
pq = PBSQuery()
nodes = pq.getnodes()
for k,v in sorted(nodes.iteritems()):
print k, v['state']
if __name__ == '__main__':
main()
| [
"david.w.h.chin@gmail.com"
] | david.w.h.chin@gmail.com |
65dc4ad278c73ef066d397bcc5220e4f2824e5aa | 63a0597d1d5f7a2e7a5c36e4b2c568ec35a5fc19 | /tests/terraform_helper.py | 35acd107dd68004380f9cfb326ebdc014da36819 | [] | no_license | melon-ruet/lambda-testing-localstack | b80db545272c01fd526f3339502f636b0cf9a2b2 | a307f4c3dcabd9c5f3c323caa68b8f0bc66317ad | refs/heads/master | 2022-12-04T11:05:47.681169 | 2020-08-26T20:58:04 | 2020-08-26T20:58:04 | 290,556,093 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,073 | py | import subprocess
import os
TERRAFORM_DIR_PATH = os.path.dirname(os.path.realpath(__file__)) + "/../terraform/"
def terraform_init():
"""Terraform init command"""
tf_init = ["terraform", "init", TERRAFORM_DIR_PATH]
subprocess.check_call(tf_init)
def create_resources():
"""Create a tf resource."""
... | [
"m.melon@m2amedia.tv"
] | m.melon@m2amedia.tv |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.