blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 41 | license_type stringclasses 2
values | repo_name stringlengths 7 96 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 58
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 12.7k 662M ⌀ | star_events_count int64 0 35.5k | fork_events_count int64 0 20.6k | gha_license_id stringclasses 11
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 43
values | src_encoding stringclasses 9
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 5.88M | extension stringclasses 30
values | content stringlengths 7 5.88M | authors listlengths 1 1 | author stringlengths 0 73 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f37d0de9c1c026676a9b32a6a3c62e1c94bb05b7 | 26a099ac59c43c0ff04d4d9cde8fc4d5cdb53278 | /note/advanced/classStudy.py | 570bdc97a69bb882f64f695b72dd6ba028937e97 | [] | no_license | lilycoco/Python_study | 1aefb79e44573e89c1f2a39fa878535a76af2528 | 4b3a5313ef126769713e8f528621ffe8c60836ca | refs/heads/master | 2022-12-10T22:17:19.667546 | 2019-07-22T11:25:44 | 2019-07-22T11:25:44 | 192,544,100 | 0 | 0 | null | 2022-12-08T05:48:41 | 2019-06-18T13:19:03 | Python | UTF-8 | Python | false | false | 3,354 | py | # クラスの定義
class MyClass(object):
pass
# クラスからインスタンスを生成
me = MyClass()
print(me) # => <__main__.MyClass object at 0x100799b00>
#*************************************************************************
# 何も要素を持たないクラス
class EmptyClass(object):
pass
# 要素を好きなように定義できるので、複数の変数をまとめた入れ物として扱える
holder = EmptyClass()
... | [
"ry.sep27@gmail.com"
] | ry.sep27@gmail.com |
6e612fc27d7649f13a714b1b7fa40c43d0d5b896 | 73c05ee0cbc54dd77177b964f3a72867138a1f0f | /interview/CyC2018_Interview-Notebook/剑指offer/51.py | 408a4c13dfda11d4265b29e3406ad5325b656c49 | [] | no_license | tb1over/datastruct_and_algorithms | 8be573953ca1cdcc2c768a7d9d93afa94cb417ae | 2b1c69f28ede16c5b8f2233db359fa4adeaf5021 | refs/heads/master | 2020-04-16T12:32:43.367617 | 2018-11-18T06:52:08 | 2018-11-18T06:52:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,475 | py | # -*- coding: utf-8 -*-
"""题目描述
在数组中的两个数字,如果前面一个数字大于后面的数字,则这两个数字组成一个逆序对。输入一个数组,求出这个数组中的逆序对的总数P。并将P对1000000007取模的结果输出。 即输出P%1000000007
"""
class Solution:
def __init__(self):
self.P = 0
self.tmp = []
def merge(self, data, l, m, h):
i, j, k = l, m + 1, l
while i <= m or j <= h:
... | [
"mitree@sina.com"
] | mitree@sina.com |
d863b10f7674734320f67fedb9f82fe932943d47 | 27d3ddb794d4c9c4521bf743ea02c399b2da908f | /create-deploy-instance.py | 7315da6f3f96f3f7fac87d5819515833e68949ab | [
"MIT"
] | permissive | alokshukla1978/HelloShiftLeft | e1b75c5ab17b465fb57e9f6d940fad218e816afc | 33e1433f46538149cc488701e3235cc2b3cd8473 | refs/heads/master | 2021-12-04T09:25:44.966195 | 2021-10-14T02:46:39 | 2021-10-14T02:46:39 | 151,323,552 | 0 | 6 | MIT | 2021-10-14T02:29:18 | 2018-10-02T21:07:16 | Java | UTF-8 | Python | false | false | 5,964 | py | !/usr/bin/env python
# Copyright 2015 Google Inc. 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... | [
"noreply@github.com"
] | noreply@github.com |
124b683dd0ebabc388ab990d5d1ed0d0b0288f5e | 052b4b7bd91de594776adb181ba7d7de3294e749 | /xanax/admin.py | 9fad29d745d2ddd0151f4b2750f94fb6b5542611 | [
"BSD-3-Clause"
] | permissive | rthtrmnsfbsd/django-xanax | cb5cff743e3306ab9507dfbc063edf9a5d8b74be | b2755efb35fdd007b29b08ec1e98d3c73bbacefb | refs/heads/master | 2021-05-28T02:07:05.398590 | 2013-04-26T06:49:35 | 2013-04-26T06:49:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,019 | py | # -*- coding: utf-8 -*-
import logging
try:
from cStringIO import StringIO
except ImportError:
from StringIO import StringIO
from functools import update_wrapper
from django.forms.formsets import all_valid
from django.contrib import admin
from django.core.files.uploadedfile import InMemoryUploadedFile
from dja... | [
"vishnevski.a@gmail.com"
] | vishnevski.a@gmail.com |
11b918d657294bca29a6ed6f976674caef840634 | dabace16dbdfffbd0f68c77c3d2489c4d7dc279c | /models/stock_transfer.py | d972331a048409956958344468170e6234505338 | [] | no_license | senthilnathang/stock_transfer | 632ec064e4d0b97f8b1a36e49517dd4ba124576a | f2f73ac70a2cc19f10853b7039383ca404686072 | refs/heads/master | 2020-04-27T17:13:45.739102 | 2019-03-12T11:25:15 | 2019-03-12T11:25:15 | 174,509,478 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,710 | py | # -*- coding: utf-8 -*-
from datetime import datetime
from openerp import api, fields, models, _, SUPERUSER_ID
from openerp.osv import osv
from openerp.tools import DEFAULT_SERVER_DATE_FORMAT
from openerp.tools import float_compare, float_is_zero
from openerp.tools.translate import _
from openerp import tools, SUPERUS... | [
"bornspy@gmail.com"
] | bornspy@gmail.com |
e490dd36619f5338792d064841f183cc96a4394f | af1d9fcd4790d55013a47704eef1ce550c51a8a6 | /Distributed_vector_computation/vector_addition.py | d3dce63d25979ecd051fcb4415887f3ec7d86890 | [] | no_license | SaikiranGS/Distributed-programming | 9906fd7ec9b7c87eab548975b177494b7391992d | 3313bccf80fc7ca95055e52376ce0cf16c5c78d9 | refs/heads/master | 2023-02-21T09:46:28.454623 | 2021-01-25T17:44:57 | 2021-01-25T17:44:57 | 134,693,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,346 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Apr 16 19:16:50 2018
@author: saikiran
"""
from mpi4py import MPI
import numpy as np
def divide_data(data,n):
split_data = np.split(data,n)
return split_data
comm = MPI.COMM_WORLD
rank = comm.rank
print("my rank is:", rank)
start_time = M... | [
"noreply@github.com"
] | noreply@github.com |
5a35f394e5ddaa9f9de976cd8e59f404f02a220e | 7bd5d09c716267de9f9bced383481d30611deee8 | /DC06.py | 85080fc62bdd422c3fec3b713683cbd65ff0e34c | [] | no_license | dinnguyen1495/daily-coding | 86642ef43b2d3835c2d01a4d270d3d0a799b3c57 | e51e7f54ef4ca175909f959c3b7803e5800d4ff6 | refs/heads/master | 2020-06-02T05:20:38.019247 | 2019-06-26T13:21:47 | 2019-06-26T13:21:47 | 191,051,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,863 | py | # Daily Coding 6:
# An XOR linked list is a more memory efficient doubly linked list.
# Instead of each node holding next and prev fields, it holds a field named both,
# which is an XOR of the next node and the previous node. Implement an XOR linked list;
# it has an add(element) which adds the element to the end, a... | [
"noreply@github.com"
] | noreply@github.com |
075e477b07c1b2ddf18f2af3b5d246d52a188490 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/1/usersdata/112/527/submittedfiles/formula.py | 8e216f832ce072ddd634a32c8b3c48556dc72c08 | [] | 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 | 197 | py | # -*- coding: utf-8 -*-
from __future__ import division
p=input('Digite o valor de P')
i=input('Digite o valor de i')
n=input('Digite o valor de n')
V=p*(((1+i)**n)-1)/i
print('Resultado: %.2f'%V) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
b2d05d5a04bf022bad5cca80c78c994edcf82561 | 6207c74ad38b15e0de1c58443df6052422b24dae | /Crawling/Crolling.py | bbdd17bc7fd4a09a4fc35863be1e2b8cd9199255 | [] | no_license | jeongeunjii/Database-B10 | 669c284b4a1714d97c3e66e51b949426c77a1718 | 440592555cbd795778ce35a96245aab1e459a752 | refs/heads/master | 2022-12-17T13:42:14.051526 | 2019-12-11T07:58:23 | 2019-12-11T07:58:23 | 220,905,676 | 1 | 1 | null | 2022-12-04T21:47:44 | 2019-11-11T05:11:48 | CSS | UTF-8 | Python | false | false | 2,956 | py | import requests
import copy
from bs4 import BeautifulSoup
date = '20191212'
url = 'http://www.cgv.co.kr/common/showtimes/iframeTheater.aspx?areacode=02&theatercode=0211&date='+date
respose = requests.get(url)
html = respose.text
soup = BeautifulSoup(html, 'html.parser')
movies = soup.find_all('div', class_='col-times'... | [
"bravokan7@gmail.com"
] | bravokan7@gmail.com |
977fb1b14c31d6daeab3d7cfa65ad85dfd2a7a32 | 08e6cfb5c60c350bad670d3d269395a3996f4483 | /Project-孟铃翔/PreProcessing/OJSpider2.py | b59384e49c6cfcaf965e2afe586f146e7ea9c3d6 | [] | no_license | Ice-Jeffrey/ProductionPractice | 92a9bc11aa09b1cb7ee3ce2f36107625f1e122f0 | ebb5c9a63154a53706c2e8afaee18d7a02043f0c | refs/heads/master | 2022-12-11T00:23:17.331349 | 2020-08-30T04:25:36 | 2020-08-30T04:25:36 | 276,920,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,212 | py | # 对buctoj中的重要信息进行爬取
import numpy as np
import pandas as pd
from bs4 import BeautifulSoup # 需要用到beautifulsoup对网站进行解析
import requests
import json, time
# 获取html网页中信息的函数
def getUrlText(url):
while True:
try:
html = requests.get(url)
html = html.text
break
except req... | [
"735429132@qq.com"
] | 735429132@qq.com |
538a456c5574a279e96d187281fccc04d446d12f | 7c15f211adc9e9eb9f66ccdd570c9f38dff7ea8d | /packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/aio/_xms_error_response_extensions.py | 7900fd57faf05a8991d659e93f9645a9c76ca103 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/autorest.python | cc4bfbf91ae11535731cad37cedd6b733edf1ebd | a00d7aaa3753ef05cb5a0d38c664a90869478d44 | refs/heads/main | 2023-09-03T06:58:44.246200 | 2023-08-31T20:11:51 | 2023-08-31T20:11:51 | 100,315,955 | 47 | 40 | MIT | 2023-09-14T21:00:21 | 2017-08-14T22:58:33 | Python | UTF-8 | Python | false | false | 3,294 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | noreply@github.com |
0c2b5f0a6a48df85b4ad9b6c2e22eebc494d44fa | 003c0dcde0ccc544b9164eba41af08a696ae9316 | /pfg/wsgi.py | d1c05f3c758fefe19b32db152c9b4754a4205314 | [] | no_license | yugle7/pfg | 11b176b99e77d0d415e631e15f75f8f4512a383d | 8c49dc3efe188d2bfc290f05b16c06d5d3fd9fc3 | refs/heads/master | 2020-03-23T00:47:49.721371 | 2018-07-13T19:36:06 | 2018-07-13T19:36:06 | 140,886,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | """
WSGI config for pfg project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_... | [
"gleb.yuzhakov@altarix.ru"
] | gleb.yuzhakov@altarix.ru |
c1f93f4d0365b611e681984fda84478a04b50e99 | 6008fee3e9311e34659ca1d8a82caf4cb1a1a782 | /lorenzo/write.py | 3d337b74a6602f9d9c29c39499ec1aafe7fd7d28 | [] | no_license | ssh-impatici/reply-2021-online | cd20eb08afe99f861b49eb7289474e5d4ef12107 | 182417fea57cfd577d71a8572c0378f2ab0f082a | refs/heads/main | 2023-03-20T18:38:37.934135 | 2021-03-11T19:39:01 | 2021-03-11T19:39:01 | 346,288,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | def write(path, output):
with open(path, "w") as file:
file.write(str(len(output)) + '\n')
for antenna in output:
file.write(str(antenna.antenna_id) + ' ' + str(antenna.x) + ' ' + str(antenna.y) + '\n')
| [
"dev.lorenzoconti@gmail.com"
] | dev.lorenzoconti@gmail.com |
99bba36d619be2ba8e8858671a4db086dd8ef12a | 4d49450b3c7a0daf35022012ec7906ca556dd9e8 | /cn/4 - interpolarea lagrange/metoda_newton_polinom.py | 45f45b360013cbbbb15685c66dcc248b23ef7ca2 | [] | no_license | rebecadiaconu/fmi | 3d3c7d977b8f61ee02a52b81c0cdc7ae0ccd31ae | 1ccee33441f6a1843bfe599eec6219b37c533c95 | refs/heads/master | 2023-04-14T08:39:11.996296 | 2021-04-22T08:49:55 | 2021-04-22T08:49:55 | 238,420,720 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,666 | py | import numpy as np
import matplotlib.pyplot as plt
def chebyshev(k):
x = np.cos(np.pi * ((N - k) / N))
return (left + right) / 2 + ((right - left) / 2) * x
def newton_pol():
coef = [y[0]]
def sum_before_k(k):
sum = coef[0]
for i in range(1, k):
sum += coef[i] * (np.prod(... | [
"rebeca.diaconu15@s.unibuc.ro"
] | rebeca.diaconu15@s.unibuc.ro |
d48bac0106ca936ec4eb19d102a03f04334de551 | 9cda2257468d0ef2f7706d4d07099a7b6d897f02 | /letecode/361-480/421-440/432.py | b9f9287e1319f6bb2ed97402466773fa1dc5ffb0 | [] | no_license | hshrimp/letecode_for_me | 4ba4031803687d7a309da9af4f003a328b48e53e | 6dc5b8968b6bef0186d3806e4aa35ee7b5d75ff2 | refs/heads/master | 2021-12-11T07:37:22.323713 | 2021-08-23T08:16:00 | 2021-08-23T08:16:00 | 204,437,378 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,170 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@author: wushaohong
@time: 2020/12/25 上午11:23
"""
"""432. 全 O(1) 的数据结构
请你实现一个数据结构支持以下操作:
Inc(key) - 插入一个新的值为 1 的 key。或者使一个存在的 key 增加一,保证 key 不为空字符串。
Dec(key) - 如果这个 key 的值是 1,那么把他从数据结构中移除掉。否则使一个存在的 key 值减一。如果这个 key 不存在,这个函数不做任何事情。key 保证不为空字符串。
GetMaxKey() - 返回 key 中值最大的任意一个。... | [
"wushaohong@zhongan.com"
] | wushaohong@zhongan.com |
8b1a96d0bf001748de966e5c045d1c1868f22f3d | bda53a5d99e36c37b6342b271274b7bcd9345a07 | /ML for identifying galaxy-type using classification/RandomForestClassifier.py | 0f4691ad200235c52aaf1158f76d4f7123bca076 | [] | no_license | jaiisrani/Data-driven-Astronomy | f795948253fae8582f1592912b60fcaf34e7670e | 1595871f1919929a513d9e16eda5f8dca163f53f | refs/heads/main | 2023-03-20T20:23:15.316439 | 2021-03-15T07:12:41 | 2021-03-15T07:12:41 | 325,173,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,463 | py | import numpy as np
from matplotlib import pyplot as plt
from sklearn.metrics import confusion_matrix
from sklearn.model_selection import cross_val_predict
from sklearn.ensemble import RandomForestClassifier
from support_functions import generate_features_targets, plot_confusion_matrix, calculate_accuracy
def generate_... | [
"noreply@github.com"
] | noreply@github.com |
47ece760b639cb445165e59afb0b7e178fec18c7 | b7c2d4c49fae0db5d50bfa856ff35e3683f05b6f | /node_modules/react-native/node_modules/ws/build/config.gypi | e8b9324b1aceb8f9f92cc01c013de10ddc31c471 | [
"MIT",
"BSD-3-Clause"
] | permissive | ee0pdt/GridIron | 450b9f49cdaa51d850b8a0c67866d5aed76f3643 | 3499d929898d475105e90a5ded06eaec36b589ec | refs/heads/master | 2020-04-06T06:40:45.308907 | 2015-04-20T08:16:49 | 2015-04-20T08:16:49 | 33,592,394 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,188 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 1,
"host_arch": "x64",
"node_install_npm": "false",
"node_pref... | [
"pete.thorne@ht2.co.uk"
] | pete.thorne@ht2.co.uk |
1612e3b1e218e768a20d537399c11768067ecb85 | e95fc8c562c050f47ecb6fb2639ce3024271a06d | /easy/374.猜数字大小.py | e89e381ee759492436ff5c4bd2ed2a1901c02859 | [] | no_license | w940853815/my_leetcode | 3fb56745b95fbcb4086465ff42ea377c1d9fc764 | 6d39fa76c0def4f1d57840c40ffb360678caa96e | refs/heads/master | 2023-05-25T03:39:32.304242 | 2023-05-22T01:46:43 | 2023-05-22T01:46:43 | 179,017,338 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,481 | py | #
# @lc app=leetcode.cn id=374 lang=python3
#
# [374] 猜数字大小
#
# https://leetcode-cn.com/problems/guess-number-higher-or-lower/description/
#
# algorithms
# Easy (44.49%)
# Likes: 78
# Dislikes: 0
# Total Accepted: 29.1K
# Total Submissions: 64.1K
# Testcase Example: '10\n6'
#
# 猜数字游戏的规则如下:
#
#
# 每轮游戏,系统都会从 1 到 n... | [
"ruidong.wang@tsingdata.com"
] | ruidong.wang@tsingdata.com |
1bc396752d5b197b1750cccc14d43be85471283e | 6d9e462cc6dbcfc1c7f0a5a79c89024c31e0dff0 | /app/__init__.py | 4f6d668ffeb849db0536da1950092c011ff6b57e | [] | no_license | GuillermoLB/Raspi | 4dc7f444c28ce38ed7916663b1635c5d7a4522b5 | db8f42d261f24fe94689a7c326665b671815e6c2 | refs/heads/master | 2022-12-05T22:08:02.773407 | 2020-08-27T10:01:11 | 2020-08-27T10:01:11 | 290,740,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,631 | py | from flask import Flask
from app.settings.config import Ajustes, ConexionMail
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
from flask_login import LoginManager
import logging
from logging.handlers import SMTPHandler
from flask_moment import Moment
app = Flask(__name__)
app.config... | [
"guillelb99@gmail.com"
] | guillelb99@gmail.com |
65fe0f152757f98862164d4919e75b86972b1dd6 | 2dc9ee4a8c39d00c255f52e8af2486e7c2891a98 | /sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_snapshots_operations.py | f26eb247d43f078753805fcc3cc88fec91d537f6 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | JoshuaLai/azure-sdk-for-python | fd780c2ab145a35ec0bf9519c4d08c928081e79c | 07614796a332bcfeed35dddee9dbfc2f5487a39f | refs/heads/master | 2023-04-04T17:49:58.177790 | 2021-04-06T21:31:48 | 2021-04-06T21:31:48 | 348,842,434 | 0 | 0 | MIT | 2021-03-17T20:24:55 | 2021-03-17T20:24:54 | null | UTF-8 | Python | false | false | 41,734 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | noreply@github.com |
0800085027434f0359df2c64edc4b158777e79e1 | 09d02f10fd186f5034d37cc2cff8c54613948e83 | /nlp054.py | f285d0e9e4559abff43ab1ffa6acd54df86d6a1f | [] | no_license | mathhun/nlp100 | fe7ac954372ea6dd521d3242864f7b7ff65de2fd | 33c2e8ec3fdd1a40b5591dd7b6b299a1eb5695a0 | refs/heads/master | 2021-01-01T17:52:00.382221 | 2015-12-21T14:19:12 | 2015-12-21T14:19:12 | 32,793,185 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | #!/usr/bin/env python
"""
54. 品詞タグ付け
Stanford Core NLPの解析結果XMLを読み込み,単語,レンマ,品詞をタブ区切り形式で出力せよ
"""
import sys
import xml.etree.ElementTree as etree
def main():
tree = etree.parse(sys.argv[1])
for token in tree.findall('//token'):
print('\t'.join([token.find('word').text, token.find('lemma').text, token.f... | [
"achemer@gmail.com"
] | achemer@gmail.com |
35278f3517de2a05388a384cfcb2871b0a5daae8 | 9a10d8e420abef9e7c5e6e78d84d19ecc4029895 | /tests/unit_tests/test_solution.py | 4ac27221d6b9e4d769f6f1d158f4c02c25239ca5 | [
"ISC"
] | permissive | zixzeus/Job_Shop_Schedule_Problem | d46d0178bf1215863789076e4914f087d933fe8d | d2b61b42bcf618533f2086a1f67fd743e3cf2946 | refs/heads/master | 2022-06-18T11:59:11.778312 | 2020-05-02T21:29:54 | 2020-05-02T21:29:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,009 | py | import pickle
import unittest
import numpy as np
from JSSP import solution
from JSSP.exception import IncompleteSolutionException, InfeasibleSolutionException
from tests.util import csv_data, tmp_dir, rm_tree
class TestSolution(unittest.TestCase):
def test_solution_equality(self):
solution_obj1 = solut... | [
"mcfadd34@uwm.edu"
] | mcfadd34@uwm.edu |
7af6233f73032ed008e7c3514e5a80b8ab1f4af6 | 2dd26e031162e75f37ecb1f7dd7f675eeb634c63 | /nemo/collections/nlp/data/dialogue/input_example/mellon_qa_input_example.py | e6576d40460bdc698bd7fbe8eede2c0a743fe6ed | [
"Apache-2.0"
] | permissive | NVIDIA/NeMo | 1b001fa2ae5d14defbfd02f3fe750c5a09e89dd1 | c20a16ea8aa2a9d8e31a98eb22178ddb9d5935e7 | refs/heads/main | 2023-08-21T15:28:04.447838 | 2023-08-21T00:49:36 | 2023-08-21T00:49:36 | 200,722,670 | 7,957 | 1,986 | Apache-2.0 | 2023-09-14T18:49:54 | 2019-08-05T20:16:42 | Python | UTF-8 | Python | false | false | 1,329 | py | # Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. 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 requ... | [
"noreply@github.com"
] | noreply@github.com |
55285d9fbb561a79de632bdc2da537402af92122 | 818ddd12e08a852f1bf814479647ef958803315e | /sync/migrations/0002_step.py | 7a223d65817cb842e0b538f936b232147f7c68c2 | [] | no_license | allandereal/rapidpro_api_intro | 599a560a2c89ec909d420133433d396433f56382 | 8f9136f6e0f113c494f7c6df1a258c32af8b08de | refs/heads/master | 2021-01-20T12:42:15.910476 | 2017-02-23T14:58:46 | 2017-02-23T14:58:46 | 82,667,014 | 0 | 0 | null | 2017-02-21T10:27:32 | 2017-02-21T10:27:31 | null | UTF-8 | Python | false | false | 613 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-21 13:08
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('sync', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | [
"ahullan@gmail.com"
] | ahullan@gmail.com |
199715b0f42276287762339e011a083d6e514ea9 | 3e7e501c6ddce2339a04dfe740af7ca4c561d7e5 | /src/Python/Lecture1/Exercise.DecipherTheText/decipher.py | 420cf58e48110dcd6586a9cbec2880f5df855ae0 | [] | no_license | eddigavell/Data-IT-security | b05ce56885390a28e8cb2422fc0e7d443351e9f3 | aeb0012d32be626ff1fa705217c2eb54b2ab6110 | refs/heads/main | 2023-02-20T02:08:54.509436 | 2021-01-22T13:02:28 | 2021-01-22T13:02:28 | 328,910,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,753 | py | from collections import Counter
def wordcount():
message = open('TextToDecipher.txt').read()
count = Counter(message)
words = message.split()
words = [word.replace(',', '') for word in words]
words = [word.replace('.', '') for word in words]
word_count = Counter(words)
#one_letter_words = ... | [
"eddi@live.se"
] | eddi@live.se |
3204194f55154ad67ef0e0b9c7f9c9b18b6dc89a | 53acff31eef0faa61045e6fb1c866d54207dfaf4 | /Recursion/convertBase.py | da53215a1a3f8dd59606fcde1a45006426c80fd4 | [] | no_license | nikspatel03/DataStructure | c71b5b44ced1667d74e10c4ab782c47be94b6d6b | c747011170f8b4acaac863a2a198378504ce2f03 | refs/heads/master | 2020-05-06T20:20:37.633204 | 2019-07-24T21:22:54 | 2019-07-24T21:22:54 | 180,233,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | """
convert base function using recursion
"""
def convertBase(num, base):
digits = "0123456789ABCDEF"
if num < base:
return digits[num]
else:
return convertBase(num // base, base) + str((num % base))
print(convertBase(25,2),"11001")
print(convertBase(10,2),"1010")
print(convertBase(25,16)... | [
"patel.nikul03@gmail.com"
] | patel.nikul03@gmail.com |
ec71567e9dde7a3d3f4c1bc86b7aed097e7ea20d | 20add5362207286794b67e62caad3b866394ff9d | /Controller.py | ccadf5c889b2274cb28b584e4c7afd18a05005db | [] | no_license | cappatar/LinkedInCrawler | 1c4ed517d4839991565ffea8a7626025c8ddf871 | fdd4ae7aceba21258e4dda0fef81e8e62422917c | refs/heads/master | 2016-08-06T14:14:16.973345 | 2015-03-01T09:55:06 | 2015-03-01T09:55:06 | 31,491,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,137 | py | from LinkedInCrawler.Crawler import Crawler
from LinkedInCrawler import Settings
from LinkedInCrawler.Writer import Writer
__author__ = 'Michelle'
class Controller:
def __init__(self):
self.crawler = Crawler()
self.people = []
self.Writer = Writer()
def write_people_to_file(self):
... | [
"cappatar@github.com"
] | cappatar@github.com |
8e9fa4e4f360c221ad8e353d4414d33924b0afcb | 3a1cd959017f6e80030d90ff19a09e8857400184 | /preprocessing/preprocess.py | fa680db1cf3cb94dcac6b46c8a277171845d4d3d | [] | no_license | beatboxerish/Delhi-Air-Pollution-PM-Characterization | 34cf530f681373809de284b1b831c5276cfbc2d2 | 53fd0902c06d28d306fa33aa30018e128e3b9e3d | refs/heads/master | 2023-05-07T17:27:47.801777 | 2021-05-14T15:46:55 | 2021-05-14T15:46:55 | 367,397,147 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,666 | py | # -*- coding: utf-8 -*-
import os
import sys
from dateutil import tz
import pytz
from datetime import datetime
import pickle
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
def read_file(date, data_dir = "./data/"):
"""
Reads in the data
"""
df = pd.read_csv(data_dir + date + "... | [
"ishan1996nangia@gmail.com"
] | ishan1996nangia@gmail.com |
a9b0bc1d4d4b90ba023df5a7c36186edb416a17e | 35bab6d7a5b88632b1a70a2d6bbe7459b320b527 | /algorithms/eightQueens.py | 3634bf0285a1ea5370f6d0a4a0c0402517668928 | [
"MIT"
] | permissive | asarenski/python-algos-examples | 975745119a46d5c8c2d7dad8eadaf48c1350d0ef | 992b76690500dcf792a43072cdf820d3e3085a72 | refs/heads/main | 2023-02-24T13:56:28.999449 | 2021-01-31T19:19:11 | 2021-01-31T19:19:11 | 330,254,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,746 | py | QUEEN_MARKER = 'X'
def printBoard(board):
for i in range(len(board)):
print(board[i])
def depthOneCopy(board):
nextboard = []
for i in range(len(board)):
row = board[i]
nextboard.append(row.copy())
return nextboard
def checkDiagLeft(board, row, col):
# check up and left
... | [
"asarenski@gmail.com"
] | asarenski@gmail.com |
f183c16f2e7c658e1db690f0ef26b14e0369164b | dbffff0e215fdcd91cda130dd97dc9240af3a896 | /utils/permissions.py | 2967b333bebbb8788b8bad5b34e801d18e9fa8be | [] | no_license | Hovhanes/to_do_list | 00885dc6378b73500293c302e31a5df203bac8ff | 90ac56835e070f24694927a269a4111b734c9d8c | refs/heads/master | 2022-12-02T19:18:49.469126 | 2020-08-27T13:20:09 | 2020-08-27T13:20:09 | 290,326,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | from rest_framework import permissions
class IsAdminOrOwner(permissions.BasePermission):
message = 'Permission denied.'
def has_object_permission(self, request, view, obj):
if request.user.is_superuser:
return True
elif request.user.id == obj.user.id:
return True
... | [
"27626hovo@gmail.com"
] | 27626hovo@gmail.com |
b689f1680d00844834565d0b05d916c70dd6faeb | 9ba6a1180382a102f3b9036537530faccddd16d4 | /wykop/posts/migrations/0006_auto_20190321_1924.py | 2407b6f7f4203f0e42ef7e45351d1ac3088c9ad5 | [] | no_license | jakubste/codebrainers_django_project | 5e320b93617ce947915baf7a9d382f370649ecdf | 20ef4283e9ab82c620e979b47cac9d68e2c1f2b6 | refs/heads/master | 2020-04-27T20:57:41.747889 | 2019-03-30T13:55:44 | 2019-03-30T13:55:44 | 174,677,904 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 617 | py | # Generated by Django 2.1.7 on 2019-03-21 19:24
from django.db import migrations, models
import embed_video.fields
class Migration(migrations.Migration):
dependencies = [
('posts', '0005_auto_20190321_1730'),
]
operations = [
migrations.AddField(
model_name='post',
... | [
"jakub.ste@gmail.com"
] | jakub.ste@gmail.com |
04401bfb5f1828c62df484ab6987ab5db2325a51 | a92791af063a998c49ac9f007ffb03392424ec2f | /exercise_python_koni/chapter_4/4_logic.py | d2bdef196fd724ae392a8ecf4b67784c05b6b00f | [] | no_license | kabaksh0507/exercise_python_koni | 0008197a5ba0dfbbf4d804cfb8fc98e31c86091c | 45e164d5c9ab10271500ceecaa5f41dd1bebe10a | refs/heads/main | 2023-02-25T06:12:40.608527 | 2021-02-09T00:45:23 | 2021-02-09T00:45:23 | 337,250,354 | 0 | 0 | null | 2021-02-09T00:39:24 | 2021-02-09T00:39:24 | null | UTF-8 | Python | false | false | 7,025 | py | #ex
# disaster = True
# if disaster:
# print("Woe!")
# else:
# print("Whee!")
#ex2
# color = "yellow"
# if color == "red":
# print("red")
# elif color == "blue":
# print("blue")
# elif color == "green":
# print("green")
# else:
# print("No just color:",color)
#while
# co... | [
"gts.0424.koni2@gmail.com"
] | gts.0424.koni2@gmail.com |
71e768aa9a2df2aa54807a4e47f8418d31ccfeb1 | 152916446f8c6e76fce9d465f7ef1a3477bac028 | /src/services/exceptions/unauthorized_user_error.py | d21a63d0d7b2adb3a2dcaee390ca51b9a1db01ef | [] | no_license | crpistillo/taller2-app-server | 08d6b43925e1ffaf40105ff503d86c35ccd7f693 | a04d56d5091545f7605fd1fa17bae516ed9c920a | refs/heads/master | 2022-11-26T01:29:09.067603 | 2020-07-30T15:20:56 | 2020-07-30T15:20:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54 | py | class UnauthorizedUserError(AttributeError):
pass | [
"giancafferata@hotmail.com"
] | giancafferata@hotmail.com |
47a5a84966e45f9d37bbb2a644fe993e521e52d8 | 28ef126452bf2c0c60d1095b91aff9db9e41c495 | /vacations/models.py | 6714df531c7932df3f4de7c3219c8602d6fcb2f2 | [] | no_license | Shravya9506/Assignment3_BonVoyage | 66d76c849fb6ce22700472032dac2aa6098e7aa6 | 7d4883d41965c5dc2657b67231a5ee04005c13f6 | refs/heads/master | 2023-01-13T05:01:19.537913 | 2020-11-16T04:08:52 | 2020-11-16T04:08:52 | 300,146,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,035 | py | from django.db import models, IntegrityError
from django.urls import reverse
from django.template.defaultfilters import slugify
class AutoSlugifyOnSaveModel(models.Model):
"""
Models that inherit from this class get an auto filled slug property based on the models name property.
Correctly handles duplicat... | [
"schandiri@unomaha.edu"
] | schandiri@unomaha.edu |
46197c4916106629fcc181d5dc86122be096b222 | fef7d3b7d72c05701f06c7a4a1699b01f576ea4d | /widgets/Pong.py | 9dd8f5285d4c0a5e0881e3fceb842bb8a13f0070 | [] | no_license | airtonchagas/ping-pong | 606773e04bdaaa47d049845ee3971a3c4f03254f | f0392ed07700efc0e6854bd615836b62a2988eb0 | refs/heads/master | 2022-12-04T08:19:20.137856 | 2020-08-28T19:05:27 | 2020-08-28T19:05:27 | 272,957,183 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,240 | py | from kivy.properties import ObjectProperty
from kivy.uix.widget import Widget
from kivy.clock import Clock
from kivy.core.window import Window
# Definição do
class Pong(Widget):
bola = ObjectProperty(None)
raquete_1 = ObjectProperty(None)
raquete_2 = ObjectProperty(None)
def __init__(self, screen_... | [
"airton_0208@live.com"
] | airton_0208@live.com |
79f42bc80ce442200cc1f108d2ecc383500f1906 | 2894c7f7c58290651c0fac48a8084371def3d7ba | /groups/models.py | 8badb586a6605eefb58626ef9fc3e0ae112f8b59 | [] | no_license | SanjayPJ/sg-update01 | 4bd08b62ee3e684f50173a96bb712f5512719fde | dc2d2db21ad58040c4ad10485872d33a457bf2a8 | refs/heads/master | 2020-03-30T09:49:43.043591 | 2018-10-02T11:43:29 | 2018-10-02T11:43:29 | 151,094,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 713 | py | from django.db import models
from django.contrib.auth.models import User
from django.urls import reverse
from django.template.defaultfilters import slugify
# Create your models here.
class Group(models.Model):
name = models.CharField(max_length=50)
description = models.TextField(blank=True, null=True)
us... | [
"sanjaypjayan2000@gmail.com"
] | sanjaypjayan2000@gmail.com |
a2cc050787256f59c75122d1f84766ba93159863 | 9bdfee02be0c22f1455ad56b5c1a060b76d46a95 | /dc8_pandas_foundations.py | 22aa4943fa49e20e38fdb8b82f267dca28caeaa2 | [] | no_license | elixias/kaggle-python | cfa30ed23123b98a56e6b0c9a9a91ec51ee39fa5 | 2aacce03d4dba7b2d0df8c1a88d80abe1a7d3fe2 | refs/heads/master | 2021-06-15T04:47:40.835039 | 2021-05-31T01:38:57 | 2021-05-31T01:38:57 | 201,199,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,833 | py | import numpy as np
#AAPL.iloc[::3,-1] = np.nan #Here, :: means every 3 rows
"""getting numerical entries of a series in a dataframe"""
#AAPL['low'].values
"""using dicts as df"""
data = {'weekday':['sun','sun','mon'],
'city':['austin','dallas','austin']
}
print(pd.DataFrame(data)) #keys are used as columns
"""bu... | [
"elixias@gmail.com"
] | elixias@gmail.com |
d3411fd0e54750291d4cbe45685cebda153daab4 | 6413fe58b04ac2a7efe1e56050ad42d0e688adc6 | /tempenv/lib/python3.7/site-packages/plotly/validators/scatter/_dx.py | 423b842fba4b12f2a02d34b9e3ba1d92b140d16f | [
"MIT"
] | permissive | tytechortz/Denver_temperature | 7f91e0ac649f9584147d59193568f6ec7efe3a77 | 9d9ea31cd7ec003e8431dcbb10a3320be272996d | refs/heads/master | 2022-12-09T06:22:14.963463 | 2019-10-09T16:30:52 | 2019-10-09T16:30:52 | 170,581,559 | 1 | 0 | MIT | 2022-06-21T23:04:21 | 2019-02-13T21:22:53 | Python | UTF-8 | Python | false | false | 470 | py | import _plotly_utils.basevalidators
class DxValidator(_plotly_utils.basevalidators.NumberValidator):
def __init__(self, plotly_name='dx', parent_name='scatter', **kwargs):
super(DxValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
anim=kwargs.... | [
"jmswank7@gmail.com"
] | jmswank7@gmail.com |
49559eab3904384ce934183fff7c4a0028ce89a2 | 4df1be2bca52241da7131c77acd737b7b84cd1d1 | /learn/urls.py | 9fe30c676e348613e30071eeac8618292d59740d | [] | no_license | codeGoogler/DgUserForLoginManager | 38353b3918dc9debe95990a54410f53da389a111 | 595569a2ef9f1f3f8e5efe5fcb670d42a42ec9d3 | refs/heads/master | 2021-10-27T03:00:42.210689 | 2019-04-15T15:33:23 | 2019-04-15T15:33:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | from django.urls import path
from learn import views as i_view
urlpatterns =[
path('test/',i_view.index),
path('test2/',i_view.index),
] | [
"yuyahao@futurelab.tv"
] | yuyahao@futurelab.tv |
bc898b2c2d078be2e2dfa31a9a5fb574b345a1b9 | d28a8156629f617fee81bb4532f43ee0de7a417c | /untitled folder/search1.py | 548f6b3be365a9684112c51a9cfc1cd97d44f6b7 | [] | no_license | karandeepbhardwaj/Pacman-Game | 733c661c8abd280ec694a05d5a705369e7b6734f | 5e0e43bc7c649a7d5b43ba4bc1c9c260cd94366b | refs/heads/main | 2022-12-29T06:39:16.474459 | 2020-10-16T17:00:32 | 2020-10-16T17:00:32 | 303,215,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,613 | py | # search.py
# ---------
# Licensing Information: You are free to use or extend these projects for
# educational purposes provided that (1) you do not distribute or publish
# solutions, (2) you retain this notice, and (3) you provide clear
# attribution to UC Berkeley, including a link to http://ai.berkeley.edu.
#
# A... | [
"karandeepbhardwaj@Karandeeps-MacBook-Pro.local"
] | karandeepbhardwaj@Karandeeps-MacBook-Pro.local |
8509e9faa4cf07c55342bdcb6c48066658494cca | e9afb95f54c25fb70e53fb544864515bd16d75a0 | /app/requests.py | 39907688861cea5dcdb7d8d6c6fa5413da6c0d35 | [
"MIT"
] | permissive | Irene-nandy/News-API | ffc82740af7399a374c28c35d27dd941e4c1b407 | 4ae96ef43bcb3fe380dd5c31aef1b8de73594de3 | refs/heads/master | 2022-12-17T13:31:53.567962 | 2020-09-15T13:50:55 | 2020-09-15T13:50:55 | 294,651,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,975 | py | import urllib.request
import json
from .models import Sources, Articles
from datetime import datetime
# Getting api key
api_key = None
# Getting the news base url
base_url = None
# Getting the articlces url
articles_url = None
def configure_request(app):
global api_key, base_url, articles_url
api_key = app... | [
"irenekasiva75@gmail.com"
] | irenekasiva75@gmail.com |
c4a69dbe00a8af252761190ce0db8e24624afb89 | 63d4ac8c703524cd46c50ce4b685321520f41302 | /saleor/accounts/expenses_pdf.py | e7824ecd2de1c2a6147c306c5cb8d15270e131ab | [
"BSD-2-Clause"
] | permissive | glosoftgroup/glosoftgroup-django-pos | a377939380261bec4a2e1471e10655c384c46c13 | b489c402939b9ebabd164c449e7da38fe849d550 | refs/heads/master | 2023-01-23T21:59:01.342184 | 2018-12-01T15:17:06 | 2018-12-01T15:17:06 | 94,298,377 | 2 | 1 | NOASSERTION | 2023-01-11T21:52:18 | 2017-06-14T06:41:16 | JavaScript | UTF-8 | Python | false | false | 2,084 | py | from django.db.models import Q
from django.http import HttpResponse
from .views import staff_member_required
from ..utils import render_to_pdf, default_logo
from datetime import date
from .models import ExpenseType, Expenses, PersonalExpenses
@staff_member_required
def pdf(request):
if request.is_ajax():
q = requ... | [
"alex.kiburu@glosoftgroup.com"
] | alex.kiburu@glosoftgroup.com |
ae2e5f7aa5365b8b00bdd95a11baef644feece61 | 248cd2229334518abb951860cfbd77a65d2a840d | /allcounter.py | 952280187cc950af734d3ac2008737ee4281047f | [] | no_license | sotolab/dataanalysis | b7edc59495b602fb9c15552535b573b215ad5694 | 798c4ff1fa81cc0b7d95de44eceaca8e640e9136 | refs/heads/main | 2022-12-31T18:50:20.611273 | 2020-10-21T13:04:55 | 2020-10-21T13:04:55 | 306,019,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,783 | py | # -*- coding: utf-8 -*-
# Run >> $ python allcounter.py
import sys
from wordcloud import WordCloud
import openpyxl
import pandas as pd
from pandas import DataFrame as df
import re
from konlpy.tag import Okt
from collections import Counter
import matplotlib.pyplot as plt
import matplotlib
from matplotlib im... | [
"noreply@github.com"
] | noreply@github.com |
5120fcaa1e2540dc1e068017b0f9962000a77019 | 640b2e13232bf94f182888357dba9b46dcb21520 | /czl_personal_site/personal_app/__init__.py | 72d22b8d76c0114f2a6f079fcf68cdf7cf7b0edf | [] | no_license | Clee2691/PersonalSite2020 | 281c48f88757ac5691518dab93ff0cffb3b5f8d8 | 94364d67546f03eefab6154e39ee9fb6a08579c3 | refs/heads/master | 2021-03-31T11:37:49.975590 | 2020-03-27T00:58:28 | 2020-03-27T00:58:28 | 248,104,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | from flask import Flask
site_app = Flask(__name__)
from personal_app import routes | [
"Clee2691@gmail.com"
] | Clee2691@gmail.com |
78485a505f1192c5c4ab32b7b883cb5620eea81a | 317dd88e5ec34edd22d7fed4a0238dcb7eef385d | /videoFrameRead.py | 5aa3454e818c1eff4ee3d36c444b19ee5306f60f | [] | no_license | hank-w/Driver-State-Facial-Recognition | 9822a1b47287290b6706c16f9b1a55933366c25c | 3225ad1525ac3d4294bba13b7487791572c38078 | refs/heads/master | 2022-11-17T06:04:21.062832 | 2020-07-14T15:34:43 | 2020-07-14T15:34:43 | 279,623,249 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,266 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
@author: @swiftbeagle (hank w)
"""
from scipy.spatial import distance as dist
import cv2
import numpy as np
from fastai import *
from fastai.vision import *
import pandas as pd
import argparse
import imutils
from imutils.video import FileVideoStream
import time
from im... | [
"j495wu@uwaterloo.ca"
] | j495wu@uwaterloo.ca |
bb43b40a1b82724a706860580a4a2a5fa0e0c136 | 2337351b228818e41be3002bd38f68f77c2aa074 | /sa/profiles/AlliedTelesis/AT9900/get_interface_properties.py | f819e1f9efb83b9a09d5dd0c591ad7528e93a9cd | [
"BSD-3-Clause"
] | permissive | nocproject/noc | 57d40c680a1499374463e472434f9595ed6d1374 | 6e6d71574e9b9d822bec572cc629a0ea73604a59 | refs/heads/master | 2023-08-31T01:11:33.544573 | 2023-08-30T17:31:11 | 2023-08-30T17:31:11 | 107,815,776 | 105 | 33 | BSD-3-Clause | 2023-07-31T07:57:45 | 2017-10-21T21:04:33 | Python | UTF-8 | Python | false | false | 566 | py | # ----------------------------------------------------------------------
# AlliedTelesis.AT9900.get_interface_properties script
# ----------------------------------------------------------------------
# Copyright (C) 2007-2020 The NOC Project
# See LICENSE for details
# -------------------------------------------------... | [
"dvolodin7@gmail.com"
] | dvolodin7@gmail.com |
0fa1e912d997a7e05629982474f909492f14c165 | fa8cd09f749d132a0130a0fe270891d8539c0d0f | /accounts/forms.py | 28c1f9083ed1dc7131e03137a9da5812b27958d4 | [
"Apache-2.0"
] | permissive | dhirajshah04/lstfnd | 717db47a13d562d8e592c53a57d03921cf5a05c8 | 25745d04753b4bbaedcbed915ca64b57eb780c54 | refs/heads/master | 2021-09-06T18:07:48.912751 | 2018-02-09T13:02:09 | 2018-02-09T13:02:09 | 111,217,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,629 | py | from django.contrib.auth.models import User
from django import forms
from django.contrib.auth import (
authenticate,
get_user_model,
login,
logout,
)
from .models import Profile
class UserRegistrationForm(forms.ModelForm):
password = forms.CharField(label='Password',
... | [
"dhiraj.shah04@gmail.com"
] | dhiraj.shah04@gmail.com |
6741d8c5e8d7dd1d5835f5002303e1d8702c8043 | 3d013c57d3031a3701de65d929277f8a62509207 | /ArgumentsTypeDemo.py | 1f7ff763d3900931ab748bc1916eaaba614ff877 | [] | no_license | Krushnarajsinh/MyPrograms | 576e98e03ce9fdc102ea649fac400362ab0aebb4 | 002244e34d02212630c12153b9e12110e29370df | refs/heads/master | 2023-01-09T10:15:01.751590 | 2020-11-07T07:51:00 | 2020-11-07T07:51:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,186 | py | def person(name,age): #Formal Arguments
print(name)
print(age+5)
person("Krushnarajsinh",15) #Actual Arguments
#person(15,"krushnarajsinh") #Exchange positions
#There are 4 types of Actual Argumnets: (1)Position (2)Keyword (3)Default (4)Variable Length
#(1)Position:-When We pass the values during function... | [
"rathodkrushnaraj8055@gmail.com"
] | rathodkrushnaraj8055@gmail.com |
06e069af4c1024ba7667ab2e723dd89d8100ba82 | cac090af84fae158a9e4c62a384578ba30b93c15 | /Week8/miniproject/bike_store_project/rent/models.py | 8557213dcdae8c2ce459e4f2f162cd21f2636a02 | [] | no_license | micnem/developers_institute | ed316a3754dd48ed54741387430ff1dd436ae1d9 | aea6154a896407336c665d4ad531f124078bc001 | refs/heads/main | 2023-02-06T00:53:41.078983 | 2020-12-31T14:04:07 | 2020-12-31T14:04:07 | 305,331,313 | 0 | 0 | null | 2020-10-22T11:18:21 | 2020-10-19T09:29:00 | CSS | UTF-8 | Python | false | false | 2,086 | py | from django.db import models
# Create your models here.
class Customer(models.Model):
first_name = models.CharField(max_length=30)
last_name = models.CharField(max_length=30)
email = models.EmailField(null= False, unique=True)
phone_number = models.CharField(max_length=50)
address = models.CharFiel... | [
"michael.nemni@gmail.com"
] | michael.nemni@gmail.com |
b820e183293542175e3ef54ff3a6205a679ae10a | 155a385fc01b4bf1e4f1fb5fd6dc982b2cac0964 | /model.py | 65229f15db11d7a31a9d936089ef56c1d9f8bc6c | [] | no_license | tylerwatkins101/DDPG_Reinforcement_Learning_Project | 87249034c2dbb95fc302cfd65a4f1450d018f9da | 6bdb3a4a021e555f6909ce8241cbe2edcb3e8548 | refs/heads/master | 2020-06-30T16:18:24.129662 | 2019-08-08T15:04:04 | 2019-08-08T15:04:04 | 200,881,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,835 | py | import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
def hidden_init(layer):
fan_in = layer.weight.data.size()[0]
lim = 1. / np.sqrt(fan_in)
return (-lim, lim)
class Actor(nn.Module):
"""Actor (Policy) Model."""
def __init__(self, state_size, action_size, seed, f... | [
"noreply@github.com"
] | noreply@github.com |
94cde8b36d97b83c312ec559fc00bfeff62a9959 | 059db785d835d15fb0102678b0c028c335d5bec5 | /nlp/library.py | 6d8919beb4af72543bdc85b6547e88412442b367 | [
"MIT"
] | permissive | xflows/cf_nlp | 9c64e727742d61a0feec748e0aed21cd92c0be9a | 3bb52f3715aa168a8b3b082a23fd3b22e27c65ab | refs/heads/master | 2021-01-21T14:19:44.798252 | 2019-09-05T11:40:46 | 2019-09-05T11:40:46 | 95,266,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59,345 | py | # -*- coding: utf-8 -*-
import nlp
import os
import base64
from services.webservice import WebService
from workflows.security import safeOpen
from requests import post
import json
import re
import itertools
import subprocess
from tweetcat import *
from time import sleep,time
import pandas as pd
import multiprocessing
f... | [
"matejmart@gmail.com"
] | matejmart@gmail.com |
30b3069a243643753361aef6c3cf91415baa3ecd | 5e6d44e8b068cea9783a429b5ef5149cb021a3f4 | /bin/suspend.py | d44a636da566df24b83d3467b3e7ef457b73e2f6 | [
"Apache-2.0"
] | permissive | polyvios/twAwler | a8644f836dfef82550ca9207cee7fd88f5d74f47 | 8e9f2064cad846177ed6547b9f56f053226a2d5e | refs/heads/master | 2021-06-24T10:17:20.221190 | 2020-11-11T17:21:36 | 2020-11-11T17:21:36 | 161,616,004 | 8 | 3 | Apache-2.0 | 2020-11-11T17:21:37 | 2018-12-13T09:34:03 | Python | UTF-8 | Python | false | false | 27 | py | ../twkit/crawler/suspend.py | [
"polyvios@ics.forth.gr"
] | polyvios@ics.forth.gr |
e0c2653407f8e1902e8a34cf7b31b66c2a6119cc | 1025f996a8521a4fa890addd5ede8d5e40905819 | /04_false_death.py | 547cca8a3bcf00261c8e6ac52b358c6c71d66b45 | [] | no_license | nicholustintzaw/sp_mis_stateregion | 2ae1e884773b659d9cc69f6cb9c50edc6fd61cfa | 5dcf3141e0a1fea120dc68d458f2412f24e0af98 | refs/heads/master | 2021-01-14T20:54:04.094706 | 2020-02-24T14:25:26 | 2020-02-24T14:25:26 | 242,756,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,193 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Nov 4 07:55:42 2019
@author: nicholustintzaw
"""
####################################################################################################
'''
project tite : social pension database - national level
purpose : ... | [
"noreply@github.com"
] | noreply@github.com |
eb2f553caf7f0012318af8e16f51e01be76194d2 | 08283bc49ce42b3694035ba5087a006594181753 | /ICA/Ch8Pt1.py | 16526d0229b78dc29a662a903e2397a7c2a02ca5 | [] | no_license | amriikk/CS31-Python | ed9afef49293e556c01c7a734d3fb1259321d6e2 | 6bddddb09dd6ae30fe62814c4307ed95e6e8a1e8 | refs/heads/master | 2023-05-31T20:16:57.874143 | 2021-07-05T06:59:26 | 2021-07-05T06:59:26 | 343,651,979 | 0 | 1 | null | 2021-05-06T05:00:21 | 2021-03-02T05:04:55 | Python | UTF-8 | Python | false | false | 862 | py | # Week 13, ICA 1
def main():
# Part 1
sum = 0
again = 'y'
while again == 'y' or again == 'Y':
nums = input('Enter sequence of numbers: ')
for ch in nums:
sum += int(ch)
print('Sum of digits in', nums, '=', sum)
sum = 0
again = input('Care to try again... | [
"amriikk@gmail.com"
] | amriikk@gmail.com |
175550e1de4d72064321eb9409756618ef056bc7 | e54b88cf4ec9c1a0106f3e69f1cb49f594217f81 | /envi/bin/django-admin.py | bd4f252b4ab91e3141bffaf2dba9d5b61dbbddca | [] | no_license | tejayerraballe/Recruitment | f30dfe57b5206e747d8e7aa9ebbe88e902875efe | 198cc8bd77d1fb6e7566c42de6806113b891137e | refs/heads/master | 2020-03-24T07:42:12.588108 | 2018-07-27T12:31:52 | 2018-07-27T12:31:52 | 142,572,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | #!/home/aspire/Desktop/recruitment/envi/bin/python
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"teja.yerraballe@aspiresys.com"
] | teja.yerraballe@aspiresys.com |
b1f7e245488f33794ab36743104ff1ae45b668b8 | 197ee9bb6d626992fec5dbd0d8de17d98a8fe4c7 | /config.py | 752b306f14af2d00aee96f527388dd7f3e5619c8 | [] | no_license | Aquanewbie/Local-Guacamole | 28faab2143f699b8e6db44c9ec8d0ac112af1e7e | a511161cf3e257af7245a3bb166770101be36f0e | refs/heads/master | 2020-12-05T21:59:56.475010 | 2020-03-31T07:29:05 | 2020-03-31T07:29:05 | 232,258,741 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | # Set Up Postgres Database by importing Postgres Data/Import_Postgres/GuacamoleCountries-Edited.csv into a Postgress Database
# Postgres Credentials
host='localhost'
dbname='Avocado'
user='postgres'
password='postgres'
| [
"BE_cornejo8@yahoo.com"
] | BE_cornejo8@yahoo.com |
8b2e5e7319aef71aacb32a255f41accd9d8694bb | 8f3cb53f495c22873a50d3e22e0ae26ef5a389b4 | /TestCase/testcase01.py | 3778b9255078434958af92de2e2ac5fa319b5247 | [] | no_license | yangwei211/AppiumPython | 4029e08668b296ef5ab9760bf25273e064cbc49b | ed89969f9e4776e452a67f002e3b56fcd2aa453e | refs/heads/master | 2020-03-26T11:50:34.169387 | 2018-08-15T14:19:13 | 2018-08-15T14:19:13 | 144,862,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,920 | py | # coding=utf-8
from common.base import BaseCommon
from Public.login import Mylogin
from selenium import webdriver
import unittest
import os
import time
from report import HTMLTestRunner
class Testlogin(unittest.TestCase):
def setUp(self):
self.driver = webdriver.Firefox()
self.driver.... | [
"yangchen211@126.com"
] | yangchen211@126.com |
963d3d60ad8cb4f594388d7db85a07a68e0b5861 | 7f5e39adc33b71e226a425c8e05012f9c449d834 | /bots/corona-charts-risklayer/risklayer_dashboard/risklayer_dashboard.py | c727379f6d5ee05071b2ab7af8639417414550e4 | [] | no_license | nzzdev/st-methods | a87eb4967b64bd1079a1a42e280fcf7679b6eb7d | fa12656afa043303ec99374b51c5e12762f20a35 | refs/heads/master | 2023-08-17T03:32:33.553268 | 2023-08-16T19:22:08 | 2023-08-16T19:22:08 | 107,977,306 | 52 | 8 | null | 2022-11-24T16:20:14 | 2017-10-23T12:12:52 | Jupyter Notebook | UTF-8 | Python | false | false | 10,918 | py | import os
import pandas as pd
import gspread
import sys
import json
from datetime import datetime, timedelta
from time import sleep
if __name__ == '__main__':
try:
# add parent directory to path so helpers file can be referenced
sys.path.append(os.path.dirname((os.path.dirname(__file__))))
... | [
"31181952+somm-doe@users.noreply.github.com"
] | 31181952+somm-doe@users.noreply.github.com |
dabf323db7db542c0af109320c3ef82625420025 | f81099738d3ab7d4a4773a04ed9e36e493632590 | /angelos-server/scripts/scriptlets.py | 8e67a21cb5f52e1b4c729063fe0a22272073f0b0 | [
"MIT"
] | permissive | kristoffer-paulsson/angelos | eff35753e4d7e4465d2aadac39265f206b09fcf9 | d789f47766fe3a63a6752b92e4ea955f420dbaf9 | refs/heads/master | 2022-05-05T15:16:59.340527 | 2022-03-27T16:05:51 | 2022-03-27T16:05:51 | 142,691,235 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,614 | py | #
# Copyright (c) 2018-2020 by Kristoffer Paulsson <kristoffer.paulsson@talenten.se>.
#
# This software is available under the terms of the MIT license. Parts are licensed under
# different terms if stated. The legal terms are attached to the LICENSE file and are
# made available on:
#
# https://opensource.org/lice... | [
"kristoffer.paulsson@talenten.se"
] | kristoffer.paulsson@talenten.se |
5207e2fe277102a4816b5464211aae69802fef1a | f63c4eb29ce57319441f5469d1d049b63bc220de | /swu_cycle_variance/run671.py | aded12c6c5cfe22af1f876f6a4907f4b1dcf3433 | [] | no_license | a-co/diversion_models | 0237642153668b16035699e9e734ff0538568582 | 69eed2687b1cd2b48f5717d15919eccd24a0eabc | refs/heads/main | 2023-05-02T19:04:26.333677 | 2020-06-18T20:50:18 | 2020-06-18T20:50:18 | 216,904,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,362 | py | SIMULATION = {'simulation': {'agent': [{'name': 'deployer_military', 'prototype': 'military_deployer'}, {'name': 'deployer_civilian', 'prototype': 'civilian_deployer'}, {'name': 'deployer_shared', 'prototype': 'shared_deployer'}], 'archetypes': {'spec': [{'lib': 'cycamore', 'name': 'DeployInst'}, {'lib': 'cycamore', 'n... | [
"acaldwel@wellesley.edu"
] | acaldwel@wellesley.edu |
c8e42c16e81852f668c4cafab9d26de10083ccb8 | 0baa30c66444dd6937cb9d10651688dd8a7ed3d7 | /Socratica/Classes_Objects.py | be27a0eefce17d99b4ea64f201504f54117a9da9 | [] | no_license | rajeshgokuls/Socratica-Learning | 06943d9a98db3b9c2c7b6e3925a1fc8b8110d5c1 | 16f5dc12560c19246f3659c6cebe8dc9d762ac81 | refs/heads/master | 2020-07-06T07:50:29.148659 | 2019-08-18T01:11:59 | 2019-08-18T01:11:59 | 202,945,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | #using class keyword
#we write a simplest class possible
class User:
pass #pass is way to type a line to does nothing
user1 = User()
user1.first_name ="DAVE"
user1.last_name = "BOWMAN"
print(user1.first_name)
print(user1.last_name)
first_name = "Arthur"
last_name = "Clarke"
print(first_name, last_name) | [
"noreply@github.com"
] | noreply@github.com |
2b9a97de395f4fc77376760d89f988897e87e1d4 | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-gsn-edf/gsn-edf_ut=2.5_rd=0.65_rw=0.04_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=93/sched.py | c3937279e8510f4da2fef29ff85908ec01e9b1b7 | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | -X FMLP -Q 0 -L 2 106 400
-X FMLP -Q 0 -L 2 76 300
-X FMLP -Q 0 -L 2 52 300
-X FMLP -Q 1 -L 1 47 400
-X FMLP -Q 1 -L 1 43 300
-X FMLP -Q 1 -L 1 35 300
-X FMLP -Q 2 -L 1 34 100
-X FMLP -Q 2 -L 1 27 125
-X FMLP -Q 3 -L 1 25 150
-X FMLP -Q 3 -L 1 24 100
20 175
19 175
16 175
15 150
10 200
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
dab23e001001cbdcec2ba4be3034eb5f756b2430 | 5275ad8abc39dc033119e0217b41eaab016ebb83 | /scripts/api-exploration/kindai-ocr/decoder.py | 08cad772d544c15812aeb5f2c84e657a33145971 | [] | no_license | amycfarrow/japanese_dictionaries | 0c042d610420e24827a30062e1d96927ad5e0c63 | 72be67e817490fb5235b4a13fd648706bb657bee | refs/heads/master | 2023-03-23T09:47:27.845066 | 2021-03-19T15:44:16 | 2021-03-19T15:44:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,821 | py | import torch
import torch.nn as nn
# two layers of GRU
class Gru_cond_layer(nn.Module):
def __init__(self, params):
super(Gru_cond_layer, self).__init__()
self.cuda = params['cuda']
# attention
self.conv_Ua = nn.Conv2d(params['D'], params['dim_attention'], kernel_size=1)
se... | [
"diegocrates@gmail.com"
] | diegocrates@gmail.com |
fd0671e95920ab6be217404063704a625e4abcbd | c14272849ea87cc96d4380b6fb93d5d58405c9aa | /commands/say.py | 05cff4c2ac07780ddbe89549fd444724faf8c048 | [] | no_license | ikuyarihS/Charlotte | 39634c3d0a41d95bc66fac5d7b32e3ebbe9e528c | 16a08cae674055960bc213630f7961d60c02e048 | refs/heads/master | 2020-05-01T03:04:51.587237 | 2019-03-17T17:32:33 | 2019-03-17T22:01:14 | 177,236,955 | 1 | 0 | null | 2019-03-23T02:57:30 | 2019-03-23T02:57:30 | null | UTF-8 | Python | false | false | 363 | py | from discord import Message
def say(command_message, database, what_to_say, *args):
"""Makes Charlotte say something.
Args:
what_to_say: The content of the message Charlotte will send.
Returns:
A discord message.
"""
response = Message(what_to_say, command_message.channel_id, "Ch... | [
"et.dsd.5175@gmail.com"
] | et.dsd.5175@gmail.com |
3d45027671db3cfe2941a98b184d4fab0adbf631 | 648132a9a8fef33c02be1b9109fd8f5ed0e88e5c | /monitor.py | af4190c98dc4516c426528d8980ed4a495acc224 | [] | no_license | mr-sk/pool-notification | f1532611d335ade2acccea535048e1d500c8f803 | 387190cc2f3818a58c5a143b412d8918cc622537 | refs/heads/master | 2021-01-01T06:50:01.515398 | 2013-05-11T15:25:38 | 2013-05-11T15:25:38 | 9,782,273 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,398 | py | #!/usr/bin/env python
# -----------------------------------------------------------------------------
# monitor.py
#
# Shoutz: All the BTC & LTC guys on the forums: zif, Delarock.
# efnet #innercircle, freenode #give-me-ltc
# Fuckz: MKEGuy <-- scammer!
#
# Author: sk / sk@mr-sk.com
# --------------------------... | [
"sk@mr-sk.com"
] | sk@mr-sk.com |
aec820532e0b36a76bbf9bea45ae7be6b568d53d | 2b3746d8c7416a22c9cda91f547af6db95896fa9 | /bdd/group_steps.py | da3680d82d30ed1f81d9da86f926080c88c7fe7d | [
"Apache-2.0"
] | permissive | Floskaa/python_training | 4bb5131ce693919164eafe7ddb16c10e6000a08f | 16e126678f0893465add925721a0238e00ae033f | refs/heads/master | 2023-04-06T15:39:59.519297 | 2021-04-15T10:09:51 | 2021-04-15T10:09:51 | 288,427,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,666 | py | from pytest_bdd import given, when, then
from model.group import Group
import random
@given("a group list")
def group_list(db):
return db.get_group_list()
@given("a group with <name>, <header> and <footer>")
def new_group(name, header, footer):
return Group(name=name, header=header, footer=footer)
@when("I... | [
"floskaa@gmail.com"
] | floskaa@gmail.com |
76924257ed453cc22baabe2db4fa3eea2c5677ca | c9be87c83eec1f2a0d6f4fce991b72bc3cb15bc2 | /examples/postman_echo/cookie_manipulation/set_delete_cookies_test.py | 371a5372b87ade34d40be270454b9a0aefae0e24 | [
"Apache-2.0"
] | permissive | yanghuizhi/httprunner | e65d95644bc6292e1078b8963b41d2b0d2db6632 | 2cdca180836d78a4005e914a3ee7b66df810a2d4 | refs/heads/master | 2022-06-19T06:48:44.824685 | 2022-04-28T12:35:13 | 2022-04-28T12:35:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,592 | py | # NOTE: Generated By HttpRunner v4.0.0-beta
# FROM: cookie_manipulation/set_delete_cookies.yml
from httprunner import HttpRunner, Config, Step, RunRequest, RunTestCase
class TestCaseSetDeleteCookies(HttpRunner):
config = (
Config("set & delete cookies.")
.variables(**{"foo1": "bar1", "foo2": "b... | [
"mail@debugtalk.com"
] | mail@debugtalk.com |
8309c49dbba8df1aeb689118f5b9c1a2892f3c63 | 0a3a0e619f2899dc2730223554ad63b269ff565f | /tests/test_node.py | ac151e1594553f39b7712bfa5d4d77e64ebc63a3 | [
"MIT"
] | permissive | andhus/scantree | 10b4c79217660e6f01fdba37a26875f5ea312a14 | 6f83758fc22db028b8b55aebf55c1db4697697bc | refs/heads/master | 2021-12-24T23:31:54.544064 | 2021-12-11T23:33:18 | 2021-12-11T23:33:18 | 175,146,501 | 11 | 3 | MIT | 2021-12-11T23:33:18 | 2019-03-12T06:09:49 | Python | UTF-8 | Python | false | false | 3,712 | py | from __future__ import print_function, division
import pytest
from scantree import (
RecursionPath,
DirNode,
LinkedDir,
CyclicLinkedDir
)
from scantree.test_utils import get_mock_recursion_path
def create_basic_entries(local_path):
d1 = local_path.join('d1')
d1.mkdir()
f1 = local_path.jo... | [
"noreply@github.com"
] | noreply@github.com |
bfc7bdefb066f9d97cd24b4d0a3d96d75ffd7301 | a62e9f76baaab0fa06b7a342b80e53a4afa9bfc7 | /shop/migrations/0004_contact.py | c25155b846f338875ad30349aa5e0c2e08f95565 | [] | no_license | mohakshines/My-Awesome-Cart | c7ffb5af6ccf37a7bfd2829cf8b9bd47e4e2efcc | 6adf2e66b757572ff6916b8e289272fe437600ae | refs/heads/main | 2023-02-12T00:19:27.440646 | 2021-01-07T12:29:25 | 2021-01-07T12:29:25 | 327,587,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 712 | py | # Generated by Django 3.1.1 on 2020-10-15 13:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shop', '0003_auto_20201015_0231'),
]
operations = [
migrations.CreateModel(
name='Contact',
fields=[
... | [
"noreply@github.com"
] | noreply@github.com |
3893666a24322d2307aa3aeefcc6c03747cf215c | 87ff4662af7401ed9a37f729dafbe413394b1592 | /By_Glove/data_helpers.py | 3d0c7cd03ffdad2c97399989eb2aebac73d78d1f | [] | no_license | mike1201/CNN_Topic_Classification | 0c449991f82ddd6ab4dc4530fb5a844c0b226155 | 50daea6cb322df90c9ea86bb66e64fbe0b585ed1 | refs/heads/master | 2021-09-01T10:31:25.429728 | 2017-12-26T13:40:16 | 2017-12-26T13:40:16 | 113,930,165 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,762 | py | import numpy as np
import re
import os
import itertools
from collections import Counter
def clean_str(string):
"""
Tokenization/string cleaning for all datasets except for SST.
Original taken from https://github.com/yoonkim/CNN_sentence/blob/master/process_data.py
"""
string = re.sub(r"[^A-Za-z0-9... | [
"noreply@github.com"
] | noreply@github.com |
1c356dac6d2345b8c54e24b077185a63696f6f3a | 9f844facbc5ae26fd601e4f94ecec9e78f068f6a | /PollApplication/chartHandling/charts.py | 03f8256171d492005c976cdfb8316f3418f63e7d | [] | no_license | Luksos9/PythonSQL | 78923e338f1bf4ea493471e83608da32243906ed | 2b5df36f8c274fb428e590121bd46399091679e9 | refs/heads/master | 2022-12-15T17:12:38.534535 | 2020-09-11T18:55:53 | 2020-09-11T18:55:53 | 288,772,329 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 927 | py | import matplotlib.pyplot as plt
def create_pie_chart(options):
figure = plt.figure()
axes = figure.add_subplot(1, 1, 1)
axes.pie(
[option[1] for option in options],
labels=[option[0] for option in options],
autopct="%1.1%%"
)
return figure
def create_bar_chart(polls):
... | [
"lukaszszumilas9@wp.pl"
] | lukaszszumilas9@wp.pl |
ebf6852a1c6b8b97a07825287c5b90b7c7403ed2 | dca0351e62f4e801fcf733f26cabcfe4bb0bff0b | /opm_data_analyze/gift_pack_type.py | 76ffcb73f06064dee58a1d87d78214b5d92675d5 | [] | no_license | lengye49/opm_data_analyzing_system | 8cefc639af89274363d7fdbd7280e22cc63fa65f | 85fc13425fab1dc561b0bbc49f859673551e7692 | refs/heads/main | 2023-06-22T16:23:59.242825 | 2021-07-23T11:36:38 | 2021-07-23T11:36:38 | 323,501,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,393 | py | # 这个脚本的目标是判断某个阶段玩家在缺某种类型的资源时应该在哪里付费
# 目前只考虑了giftpack相关的产出,todo 基金、通行证、月卡、周卡等系列产出
# todo 各礼包限制条件及玩家所处状态和可购买次数限制
# 目前尚未考虑活动道具转换为目标资源的途径
import pandas as pd
from datetime import datetime
def is_on_time(start, end):
# 判断礼包是否还是时间段内
start = str(start)
end = str(end)
_t = datetime.strptime(target_time, '%Y... | [
"lengye49@126.com"
] | lengye49@126.com |
4176072074b7adf073d715e672c081732fbb7b49 | 554b3239a0bfb5c898548625493655dfce9695b1 | /0x0F-python-object_relational_mapping/14-model_city_fetch_by_state.py | 1683382d0a9220058ff72a0645a5eafd2ff7a0dc | [] | no_license | jose120918/holbertonschool-higher_level_programming | 2e03ec12229a1e9f7fa35e95a96fb2d06836d017 | 470eb36fcf5e0cd996ad51c7dae26a1abf144984 | refs/heads/master | 2023-04-07T02:17:44.617525 | 2021-04-15T14:56:39 | 2021-04-15T14:56:39 | 319,470,766 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 921 | py | #!/usr/bin/python3
"""First usage of SLQAlchemy"""
from sys import argv
from model_state import Base, State
from model_city import City
from sqlalchemy import (create_engine)
from sqlalchemy.orm import sessionmaker, relationship
if __name__ == "__main__":
myU = argv[1]
myP = argv[2]
myDB = argv[3]
myH... | [
"jose.esteban0918@gmail.com"
] | jose.esteban0918@gmail.com |
3fc9fbce1f4a89f4653f600bd6a9cfa8b4c7af15 | 55f5c87e3a5206ff474f551bb886b6e62979c96a | /unsorted/Player.py | 660377b0682f8f7e0c4ad26533dcfae27492d868 | [] | no_license | robcecc27/miscellaneous_code | 8b2ba83e05dfa40dee93def81429b4aeb7c76fa6 | c528710ec0d51f8b4a90a6626991ec1d19e1b57a | refs/heads/master | 2020-03-29T20:09:03.590291 | 2018-09-26T18:10:22 | 2018-09-26T18:10:22 | 150,298,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,962 | py | from Snake import Game as game
import pygame
from pygame.locals import *
env = game()
env.reset()
action = -1
import random
goal_steps = 300
import tflearn
from tflearn.layers.core import input_data, dropout, fully_connected
from tflearn.layers.estimator import regression
from statistics import median, mean
from colle... | [
"rob.cecchini@gmail.com"
] | rob.cecchini@gmail.com |
4e01ac8a3419db9e9765ad01f7ada984c3377735 | ce0f43e330a32376ccf50559e175d1662b64cc2e | /deploy_driver.py | 2650804a5616085fa45552be7783fd26754130fc | [] | no_license | dannteMich/DriverTemplate | 6d8c4208c7efb7fc474c9afd10d67056b531d099 | 9d615a0b6e5dd7464319ce741ae42f4622185108 | refs/heads/master | 2023-02-17T04:44:15.134364 | 2021-01-16T19:38:52 | 2021-01-16T19:38:52 | 328,702,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,355 | py | import argparse
import subprocess
from os import path
import rpyc
from rpyc.utils.classic import DEFAULT_SERVER_PORT
# YOU should run on the target pc this (with admin): rpyc_classic.py -m threaded --host 0.0.0.0
DRIVER_FILE_TO_UPLOAD = 'sample.sys'
DRIVER_DEST_DIR = "C:\\"
PROJECT_DIR = path.dirname(__file__)
KERNE... | [
"dannte@gmail.com"
] | dannte@gmail.com |
30742a92f5d10eec0a4e654054344e547238e600 | 3f0a9d9ce56846a81120a71d5eca595524c8674b | /Remove Punctuation not spaces.py | de1f8cdf9b022d664b7ac4c6d1ade05934ba4a1d | [] | no_license | Harry212001/Cipher-Challenge-2018 | ae3f9929bc12e56ffb838a1e16e9994071a3e395 | 16827136f7844ce15fb088f8732cd5242a53dc7d | refs/heads/master | 2020-03-31T22:54:05.823955 | 2018-12-10T21:59:32 | 2018-12-10T21:59:32 | 152,635,228 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | ciphText = input('Input text: ')
plainText = ''
for lett in ciphText:
if (lett >= 'A' and lett <= 'Z') or lett == ' ':
plainText += lett
print(plainText) | [
"harry.mouat@gmail.com"
] | harry.mouat@gmail.com |
6f005e2ca978b50f19d6378a549b739e355f2ecb | d8010fd033ec0b36a87d9a058487d738befc3c17 | /detectron2/modeling/weaklygrounding/phrase_embedding_weakly.py | 5627de5ec2fd5621e2d8354ecd6da712dad9ff8c | [] | no_license | bobwan1995/ReIR-WeaklyGrounding.pytorch | 0efa0a616b18f9fa3d89f0afde1a6528efca1a8d | 2a962c335541c981149a042794ee508e0e7226f4 | refs/heads/main | 2023-08-11T12:55:42.977775 | 2021-10-09T00:25:15 | 2021-10-09T00:25:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,803 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from allennlp.modules.elmo import Elmo, batch_to_ids
from detectron2.config import global_cfg as cfg
import json
import numpy as np
import pickle
class PhraseEmbeddingPhr(torch.nn.Module):
def __init__(self, cfg, phrase_embed_dim=1024, bidirectio... | [
"liuyf3@shanghaitech.edu.cn"
] | liuyf3@shanghaitech.edu.cn |
eca23f8b65fb36e4ff4efb7bdb706dbf319c5292 | ffb98b376b030162ff04573ce012614db03bcc91 | /honeypot_app/honeypot_manager/opencanary/logger.py | a0660b28cbca8502aa5fc85107091e5dfec3012d | [] | no_license | tarunprakash/honeypotmanager | 586ce1c01f1234e234275bdcb46c1909f4840fa9 | 258938fe006a9abcd616e4a45b0d05559cda32a7 | refs/heads/master | 2023-07-11T08:01:02.839915 | 2021-08-13T16:36:50 | 2021-08-13T16:36:50 | 385,729,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,595 | py | from __future__ import generator_stop, print_function
import re
import simplejson as json
import logging.config
import socket
import hpfeeds
import sys
from datetime import datetime
from logging.handlers import SocketHandler
from twisted.internet import reactor
import requests
from opencanary.iphelper import *
class... | [
"tarunprakash343@gmail.com"
] | tarunprakash343@gmail.com |
ceb9c1360c669083360797d69f1da5dc4d25f04e | 6781180f6d0f5f2450650bebcacc3a6e01bc6e1f | /sum_recursive.py | 6b2a4aed3aae005135f3f155d0c1c39ee0af0c10 | [] | no_license | Arytur/Algorithms | cc927d6fdf95ef498f48db1bb4bb3ebc74994f03 | bc8566fb5ece1b5068291b7876741664117a9d13 | refs/heads/master | 2020-03-09T08:08:56.536317 | 2018-04-14T19:13:37 | 2018-04-14T19:13:37 | 128,682,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | def array_sum_recursive(array):
if not array:
return 0
else:
return array[0] + array_sum_recursive(array[1:])
print(array_sum_recursive([2, 14, 44, 101, 555]))
print(array_sum_recursive([202, 104, 44, 1201, 56]))
| [
"artur.kozera@gmail.com"
] | artur.kozera@gmail.com |
d7ebc25563c971e33598d6d4801017bceab2042f | a8609e6508254b33d0792ec8b3c2c9a29ca1018d | /app.py | 36f01d51ad4609fb3d5aeaecac7ffd1f9b93e5a4 | [] | no_license | coderguider/Data-Centric-Development-Mini-Project | 21ee7e6ed1b69d601601a8cda34024b18ab9d088 | 18a0ed9d19405b45fa7bc34d41f5dfe1cb622b2f | refs/heads/master | 2020-04-21T17:00:35.277770 | 2019-02-08T11:31:40 | 2019-02-08T11:31:40 | 169,722,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,106 | py | import os
from flask import Flask, render_template, redirect, request, url_for
from flask_pymongo import PyMongo
from bson.objectid import ObjectId
app = Flask(__name__)
app.config["MONGO_DBNAME"] = 'task_manager'
app.config["MONGO_URI"] = 'mongodb://coderguider:Joannag63@ds125125.mlab.com:25125/task_manager'
mongo =... | [
"con.guider@gmail.com"
] | con.guider@gmail.com |
086555baf9b1d577fe4ed21275782332790ea0aa | 4c0b8e3885de5ae5cbf0f1378443b3535ee7dab3 | /acme-large/tools/unetlab.py | cfae2b0d5cba06cc21ddd23144ffee8c89de4aab | [] | no_license | networkop/network-ci | f930028206727949aa75679d8849ccf2692a7956 | 8a0c5d7c636133ba4b101d926474fbfe7a6869fa | refs/heads/master | 2021-01-10T07:09:43.025745 | 2016-03-22T07:01:18 | 2016-03-22T07:01:18 | 51,913,133 | 13 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,746 | py | from restunl.unetlab import UnlServer
from restunl.device import Router, Switch
from globals import *
import file_io
import decorators
import os
class UNetLab(object):
def __init__(self, ip='', user='', pwd='', lab_name=''):
self.ip, self.user, self.pwd, self.lab_name = ip, user, pwd, lab_name
if... | [
"mmkashin@gmail.com"
] | mmkashin@gmail.com |
1fbffc44fe3a1f8dc22d4a1813e1688d61f401b8 | 5b8d0cd314fdd4537bc77ce9209ca903694b02e8 | /datasets/mkb/mkb.py | 80739ddae41ce478ce787a9c4c101b3f197adc14 | [
"CC-BY-4.0",
"CC-BY-SA-4.0",
"Apache-2.0"
] | permissive | amankhandelia/datasets | 97106f6d98b9cd17c50b1bf0c91f4ced6240dfd6 | 1a138f9bd2d1b62a255736375001bf918d36508d | refs/heads/master | 2023-06-21T01:08:25.212378 | 2021-07-26T13:27:59 | 2021-07-26T13:27:59 | 389,644,974 | 1 | 0 | Apache-2.0 | 2021-07-26T14:36:09 | 2021-07-26T13:36:08 | null | UTF-8 | Python | false | false | 3,951 | py | # coding=utf-8
# Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
#
# 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/lice... | [
"noreply@github.com"
] | noreply@github.com |
74d4254225644a5b1a14f0a45d3f7ce0f4fb4193 | 09f8a3825c5109a6cec94ae34ea17d9ace66f381 | /cohesity_management_sdk/models/feature_flag.py | 18ad38ff068262b38f7274aa79f43aa9b48b037c | [
"Apache-2.0"
] | permissive | cohesity/management-sdk-python | 103ee07b2f047da69d7b1edfae39d218295d1747 | e4973dfeb836266904d0369ea845513c7acf261e | refs/heads/master | 2023-08-04T06:30:37.551358 | 2023-07-19T12:02:12 | 2023-07-19T12:02:12 | 134,367,879 | 24 | 20 | Apache-2.0 | 2023-08-31T04:37:28 | 2018-05-22T06:04:19 | Python | UTF-8 | Python | false | false | 2,269 | py | # -*- coding: utf-8 -*-
# Copyright 2023 Cohesity Inc.
class FeatureFlag(object):
"""Implementation of the 'FeatureFlag' model.
Specify feature flag override status.
Attributes:
is_approved (bool): Specifies the overridden approval status.
is_ui_feature (bool): Specifies if it's a fron... | [
"naveena.maplelabs@cohesity.com"
] | naveena.maplelabs@cohesity.com |
83f6a062397608c339be3356e3db59f67d030bed | cc37d7b21bba0684b0965af67509059cef15295c | /lab_09/main.py | 34c92de124ac6d7e729a739306513f26a447a167 | [] | no_license | wasp-lahis/PED-1s2020 | 170d4272b84e5e9786cc6a2b5d8432d4ea749d6c | b8b6ee3c2e63c0ca37750eb3661f35c758028e81 | refs/heads/master | 2022-12-01T21:58:15.123065 | 2020-08-18T01:12:14 | 2020-08-18T01:12:14 | 286,138,192 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,981 | py | def tupla_float_int(x):
x = x[1:-1]
x = x.split(",")
f = float(x[0])
i = int(x[1])
return (f,i)
notas_laboratorio = [tupla_float_int(x) for x in input().split()]
prova1, prova2 = [float(x) for x in input().split()]
def med_lab(notas_laboratorio):
peso_labs = 0
nota_labs = 0
for notas in not... | [
"wasp@wasp.lahis"
] | wasp@wasp.lahis |
43e5fcfa1c598bd10c9bc6d8f75ac70622d698a0 | f05d749793086a85c9b41c06bb5843c851b08ea7 | /tests/test_hypothesis.py | 89953068fe1a9fd683ed2375c58077657c6b9601 | [
"MIT"
] | permissive | theaeolianmachine/hypothesis_1085_repro | adbec4b795dec6c06f0aa98c88d910b76b7d102a | 9d886ea8a8860eadd22767271d85786209f5abe6 | refs/heads/master | 2021-05-05T06:12:13.777721 | 2018-01-24T16:40:05 | 2018-01-24T16:40:05 | 118,790,203 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | # import unittest
# from hypothesis import given
# from hypothesis.strategies import integers
# from repro_package.hit_by_unittest import sum
# class TestSumHypothesis(unittest.TestCase):
# @given(x=integers(), y=integers())
# def test_add(self, x, y):
# self.assertEquals(sum(x, y), x + y)
# if _... | [
"jgoodnow@fastmail.com"
] | jgoodnow@fastmail.com |
e8e77bc84accacabe71c0788f0c0ff74d027d1a1 | 4982ab3e48f9e5c40b6a8edfd926901ca2b4cb23 | /LeetCode/17_letter_combinations.py | de9195e46345c4ff203d9f3c981b91f7d5131073 | [] | no_license | Kacper20/Algorithmic-Tasks | 17c55c365bce5f0bac5c86135d29d6aec3c833da | 38f5b9053e29808a95064ed23ecd4bc1d2d65f0b | refs/heads/master | 2020-04-18T22:06:59.142960 | 2016-11-09T22:38:30 | 2016-11-09T22:38:30 | 66,146,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 856 | py | class Solution(object):
def letterCombinations(self, digits):
def helper(dict, result, temp_string, digits, index):
if len(temp_string) == len(digits):
if len(temp_string) != 0:
result.append(temp_string)
return
current_char = digi... | [
"kacper.harasim@polidea.com"
] | kacper.harasim@polidea.com |
256cd50fecacde6339f36e2b1ead2f784278f38b | 1aeb828e57be9b046ee25433fff05956f01db53b | /python_bms/ALGORITHMS/1103/1531.투명.py | f3a9dec6c5174ae073dcdf772ae8d3165b85e665 | [] | no_license | LynnYeonjuLee/TIL_BMS2 | 11f2753e2e82c4898a782d6907a21e973c34cf69 | f363723391598caf5ec6b33925fcb8a13a252d9f | refs/heads/master | 2023-01-22T00:45:25.091512 | 2020-12-04T00:22:44 | 2020-12-04T00:22:44 | 290,238,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | paint = [[0]*100 for _ in range(100)]
N, M = map(int,input().split())
cnt = 0
for _ in range(N):
x1, y1, x2, y2 = list(map(int,input().split()))
for r in range(y1, y2+1):
for c in range(x1, x2+1):
paint[c][r] += 1
for r in range(y1, y2+1):
for c in range(x1, x2+1):... | [
"lynnlyj9@gmail.com"
] | lynnlyj9@gmail.com |
29869e3a2716f4098e3a5e8e9dcd9a17fbd7b539 | 90389bee115b79c8e187236b0509bdd372ca625f | /aws_lambda_powertools/utilities/data_classes/code_pipeline_job_event.py | e13d32fb169699797159dae04532038e443f60fa | [
"MIT-0",
"Apache-2.0"
] | permissive | pcolazurdo/aws-lambda-powertools-python | ebc7da963c09af69fcc32f34f0828f48df0ace0e | 4c41ec5c0b8f4864819561bc71494029131135c9 | refs/heads/develop | 2023-08-19T14:15:23.608733 | 2021-10-25T06:21:50 | 2021-10-25T06:21:50 | 360,665,741 | 0 | 0 | MIT-0 | 2021-05-17T14:29:17 | 2021-04-22T19:53:33 | Python | UTF-8 | Python | false | false | 7,124 | py | import json
import tempfile
import zipfile
from typing import Any, Dict, List, Optional
from urllib.parse import unquote_plus
import boto3
from aws_lambda_powertools.utilities.data_classes.common import DictWrapper
class CodePipelineConfiguration(DictWrapper):
@property
def function_name(self) -> str:
... | [
"noreply@github.com"
] | noreply@github.com |
725b1ecc0e3da1cae4765e332b02c4bac3fa7d1b | 01061bb17b26173a93b199d5988e3163e5516137 | /y2021/day07_align.py | b33ea433221b517804e772a0c1fbc204ae1c4a0f | [] | no_license | cathackk/advent-of-code | 514c337fc242414c6b82593b910614f0ba0f6e9b | 1886ec0092728fccb9da7dd9aaaf232059b661df | refs/heads/main | 2023-02-07T06:08:45.252807 | 2023-01-22T11:16:56 | 2023-01-22T11:16:56 | 231,619,831 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,366 | py | """
Advent of Code 2021
Day 7: The Treachery of Whales
https://adventofcode.com/2021/day/7
"""
from typing import Callable
from common.iteration import minmax
from meta.aoc_tools import data_path
def part_1(positions: list[int]) -> int:
"""
...
You quickly make a list of **the horizontal position of ea... | [
"cathack@gmail.com"
] | cathack@gmail.com |
bd73eb5364831ce6092cee4003958ccbd7521ec5 | 44523252201190e2ab2b5d2ea494651d2674ab85 | /app.py | 15d314973aff44f6d6dbdf067de9862ee7645d63 | [] | no_license | akhmetov-bulat/Sky_pro_test | 6e1716d5dab1be844e5978f909fd5638627e2453 | ee122de7f463cff0afa1b3eeb76bb8d0d800d301 | refs/heads/main | 2023-08-10T20:23:01.417725 | 2021-09-30T11:33:34 | 2021-09-30T11:33:34 | 412,019,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,252 | py | from flask import Flask, request, render_template
from utils import read_users, write_users
app = Flask(__name__)
users = read_users()
@app.route('/')
def index():
return render_template('index.html', users=users)
@app.route('/search', methods = ['GET', 'POST'])
def search_page():
if request.method == 'POS... | [
"akhmetov.bulat@gmail.com"
] | akhmetov.bulat@gmail.com |
64901ebc6d6a569b5f7dbafb2930b138ce233f0a | b8106a0cd1e1604de98ef2b4b5311ec3f36d122a | /ask-sdk-core/tests/unit/data/model_test_object_2.py | ddf7d881186a082e8197aeae149f29a137c0137f | [
"Apache-2.0"
] | permissive | alexa/alexa-skills-kit-sdk-for-python | b5e8288c6dd7a3ff6e13b19a7f0026561087ed93 | 7e13ca69b240985584dff6ec633a27598a154ca1 | refs/heads/master | 2023-06-26T02:01:58.858446 | 2023-06-08T18:20:05 | 2023-06-08T18:20:05 | 130,283,857 | 560 | 239 | Apache-2.0 | 2023-05-23T18:51:30 | 2018-04-19T23:40:46 | Python | UTF-8 | Python | false | false | 890 | py | # -*- coding: utf-8 -*-
#
# Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or i... | [
"nnky@amazon.com"
] | nnky@amazon.com |
e86c60d40b6e21775f17c40b7e188da5bf5f7913 | bb03266d7a2134e59ee300754e227e9e8d2b891b | /oblig4_2f.py | bc92927e7122109c46ae340c66922a6915876d95 | [] | no_license | linegpe/FYS3120 | 66cb1d01f81af2b5210f528cc41860794d6fc3f2 | 37f6bdb003b084b53d05127c4191f069393d2cc0 | refs/heads/master | 2021-01-19T10:25:32.543556 | 2017-02-19T21:52:06 | 2017-02-19T21:52:06 | 82,178,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 611 | py | import numpy as np
from pylab import meshgrid,cm,imshow,contour,clabel,colorbar,axis,title,show,xlabel,ylabel
m = 1
R = 1
g = 1
omega = 1.5
def Hamiltonian(theta,p):
return p**2/(2*m*R) - m*g*R*np.cos(theta) - 0.5*m*omega**2*R**2*(np.sin(theta))**2
x = np.arange(-np.pi,np.pi,0.1)
y = np.arange(-2.5,2.5,0.1)
X,Y = m... | [
"line.gaard.pedersen@gmail.com"
] | line.gaard.pedersen@gmail.com |
1f8fa2b568db0e9a6bdc909f701ec4e5457ce522 | 15f7312f0b18f8fc28bab1d81f3769d25556e85c | /zhihu/zhihu/views.py | 07ec87741d68968f29ec52929087edd26c85631f | [] | no_license | JatWaston/Django | 6a6b3f2ed5e79882ed0e1b6bc413e396ac105e93 | dfdcfc30a3722a2fae3fcf08528e2a515b954b34 | refs/heads/master | 2016-08-06T21:42:10.797625 | 2015-07-08T10:50:58 | 2015-07-08T10:50:58 | 38,563,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,638 | py | # -*- coding:UTF-8 -*-
__author__ = 'JatWaston'
from django.http import HttpResponse,Http404
from django.shortcuts import render_to_response
from daily.models import ZhDaily
import datetime
import time
import urllib2,urllib,cookielib
from bs4 import BeautifulSoup
from django.views.decorators.csrf import csrf_exempt
f... | [
"support@jatwaston.com"
] | support@jatwaston.com |
cf486499b4658c2ec1a1e82ef0354e5906243bcd | c373b35bb5b88f735326895af73504f8016055b8 | /manage.py | 2249dfb8ba1c0331ace470ed6c5f77c5cc3f80bf | [] | no_license | coylec/django_todo | 33f73b86ce87c400ae276e6136a2dd6c49373044 | 205eb457949c60bf2eb5d9bb6aedbc7c5d3f7702 | refs/heads/master | 2021-01-01T06:15:15.957807 | 2017-07-16T15:45:43 | 2017-07-16T15:45:43 | 97,393,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 814 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "todo_list_django.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure ... | [
"coylec@users.noreply.github.com"
] | coylec@users.noreply.github.com |
6bfdc00bf049b406898e609832d0b6620596ba3c | 9f541271263dceb0b7b0134ab6cff5ed324c6444 | /mqtt/conf.py | 39075bcb13bc4d5982cd9ed9e39b1f7124cd336e | [] | no_license | shannondec/bonaventureli.github.io | bd0fa5286ab4077b690f2621425ddd78f16e72dc | ab442ff704dc539b5c9da1d7cacb826256392c17 | refs/heads/main | 2023-06-04T10:34:40.224571 | 2021-06-29T08:38:53 | 2021-06-29T08:38:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,837 | py | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | [
"fei.li@ingeek.com"
] | fei.li@ingeek.com |
6b52fab4e9d87a86650d05adc02f08a5b581a36c | 847a03b24e3c2e9f99b66490ab1022cd3fc634a4 | /10 spectrum analyzer/msgeq7_read.py | d2cf1e9c41a8c292aaf2d449f1be390ba91be9a8 | [] | no_license | raspberry-pi-maker/RaspberryPi-For-Makers | a4f77a361bf86d32390e26ff39759f765e9f0d2e | 00b985ee3b4bd17a330fd7ba8278130c14f04b69 | refs/heads/master | 2022-12-24T20:40:51.944004 | 2022-12-18T11:54:05 | 2022-12-18T11:54:05 | 90,004,858 | 4 | 10 | null | null | null | null | UTF-8 | Python | false | false | 2,099 | py | #!/usr/bin/env python
#-*- coding: utf-8 -*-
#If this code works, it was written by Seunghyun Lee(www.bluebaynetworks.co.kr).
#If not, I don't know who wrote it
import spidev
import time
import os
import RPi.GPIO as GPIO
# 2개의 MSGEQ7으로부터 전달되는 아날로그 전압을 0번, 1번 채널을 이용해 읽을 것임
LEFT_AUDIO = 1
RIGHT_AUDIO = 0
... | [
"noreply@github.com"
] | noreply@github.com |
d82afcb1df18763a5ddb8124c7591f323607a15c | 045cb1a5638c3575296f83471758dc09a8065725 | /addons/account/models/account_move.py | 18f08e13ba1df4a68c9b07ef4dfad67d973a6b25 | [] | no_license | marionumza/saas | 7236842b0db98d1a0d0c3c88df32d268509629cb | 148dd95d991a348ebbaff9396759a7dd1fe6e101 | refs/heads/main | 2023-03-27T14:08:57.121601 | 2021-03-20T07:59:08 | 2021-03-20T07:59:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237,826 | py | # -*- coding: utf-8 -*-
from harpiya import api, fields, models, _
from harpiya.exceptions import RedirectWarning, UserError, ValidationError, AccessError
from harpiya.tools import float_is_zero, float_compare, safe_eval, date_utils, email_split, email_escape_char, email_re
from harpiya.tools.misc import formatLang, f... | [
"yasir@harpiya.com"
] | yasir@harpiya.com |
c7e8896c10d6a1b95cf8e0769fe1eabe54f788dc | fe890ad11644516bb9ec16a55b6c333373269c88 | /apps/users/admin.py | 535170fd0d7d4187d05578e85051ff2bc328a156 | [] | no_license | Arisfello/Student_registration | 82bb5fe5a50cea9f14e1aba7f9b275363015e44f | 14a7ea6a3845a20d5822c61e80188f4d9937fc7f | refs/heads/master | 2023-08-09T08:28:12.270156 | 2021-09-16T11:08:18 | 2021-09-16T11:08:18 | 402,364,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py |
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from .models import User, UserProfile
class UserAdmin(BaseUserAdmin):
list_display = ('email', 'is_staff', 'is_admin', 'is_student')
list_filter = ('is_student', 'is_admin',)
fieldsets = (
(None, {'f... | [
"felomwansa@mail.com"
] | felomwansa@mail.com |
f75f88386c94ecee651b580ccfe6db91dde4af10 | 31483d25a50bfb97ce28b2d9662af0bac0469bff | /OpenRTM_aist/test/test_Topic.py | bde2a5999b67286dc170ca0ca044d81150c9297d | [] | no_license | n-ando/OpenRTM-aist-Python | f4c4ecd56757fab1a58e2bc1edc7c2e68efea319 | 008447533261cb4f5d054630132f0a496e9deaab | refs/heads/master | 2021-07-07T12:40:14.889323 | 2018-11-21T08:50:39 | 2018-11-21T08:50:39 | 161,041,342 | 1 | 1 | null | 2020-07-26T04:09:39 | 2018-12-09T13:18:34 | Python | UTF-8 | Python | false | false | 8,022 | py | #!/usr/bin/env python
# -*- coding: euc-jp -*-
#
# \file test_Topic.py
# \brief
# \date $Date: $
# \author Nobuhiko Miyamoto
#
import sys
sys.path.insert(1,"../")
try:
import unittest2 as unittest
except (ImportError):
import unittest
import time
#from Manager import *
import OpenRTM_aist
import RTC, RTC... | [
"openrtm@openrtm.org"
] | openrtm@openrtm.org |
a3bb1eb015c0c06389061b47e44784f6e338ffa5 | 526d4626294ffd1e9d866972acfd7857845fe989 | /download_mars_control_pv02.py | af0937405d1d6337f5be0c5df84d01165d990214 | [] | no_license | EdurneMShadow/PrediccionSolarEnsembles | 0372c90b2b96c31bdf36a7eb8688f0af36b93b19 | debacd76c47dbc879062ac15ab767b537dc94cba | refs/heads/master | 2021-01-19T05:18:22.376802 | 2018-07-16T15:03:11 | 2018-07-16T15:03:11 | 87,425,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,062 | py | from ecmwfapi import ECMWFService
import os
import pandas as pd
from multiprocessing import Pool
def download_mars(d):
print(d)
if not os.path.isfile(
"pv_control_ensembles_{}.nc".format(d.strftime("%Y%m%d"))):
server.execute(
{
"class": "od",
"d... | [
"edurnecp22@gmail.com"
] | edurnecp22@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.