blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0e5455f961d5cf3417746f87eb7886aacaeac5ac | 53522e77824385c45a61a960e0d1b3b4975c6f98 | /软件第九次作业/软件161/陈晓莉2016021007/首次使用jieba.py | 9f8b87ab417da5192626f06a3df8d1a22e54aa5d | [] | no_license | ZAKERR/-16-python- | f5ab4789f83b37975612844cb645dea411facd86 | e9e91c5217a2583ea2f05ec2dc1365eed989a8ce | refs/heads/master | 2020-03-28T15:59:08.472526 | 2019-04-10T13:36:33 | 2019-04-10T13:36:33 | 148,646,442 | 13 | 14 | null | 2019-03-15T09:39:49 | 2018-09-13T14:02:27 | Python | UTF-8 | Python | false | false | 1,283 | py | import jieba
from collections import Counter
from wordcloud import WordCloud
from matplotlib import pyplot as plt
from PIL import Image
import numpy as np
#分词
with open("西游记.txt",'r',encoding='utf-8') as f:
article=f.read()
words=jieba.cut(article)
wordlist=list(words)
'''
#统计词频
c=Counter(words).most... | [
"noreply@github.com"
] | noreply@github.com |
1b64bbbf63d56a87bdaaedc8d78df89b1ed56b1a | 15c214b5885fceed927e478d2946070f2870bdef | /TG-LSTM.py | e2e322521ab26b92bc1c320cbea44111aeeaf793 | [] | no_license | huihuid/TG-LSTM-network-for-time-series-prediction | 247cfe25851d06e0f35b62a4a4f9ab5fecef5d8d | 4f166ed9b43aa9a6b9dd52f5c37d9c40402daee0 | refs/heads/master | 2022-07-02T17:10:51.983931 | 2020-04-26T23:17:09 | 2020-04-26T23:17:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,992 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Nov 10 10:31:40 2018
@author: Wendong Zheng
"""
from math import sqrt
from numpy import concatenate
import numpy as np
from matplotlib import pyplot
from pandas import read_csv
from pandas import DataFrame
from pandas import concat
from sklearn.preprocessing im... | [
"noreply@github.com"
] | noreply@github.com |
3c3a9f520cc8333b8fc3da19fc215ff5873b8cdd | 137337f800c10d6657803cf2745aaf4c7136a5c3 | /mainapp/migrations/0035_auto_20210207_2240.py | a84d821b4f13b3ea80b36810ac9f07c8c7bbc47d | [] | no_license | deft727/Django-ecommerce | c82d4cf691cb75354b474f3f58fc3dac5b696803 | f9c04a30fa7af60d59d05fe89f6e15f123efcddb | refs/heads/main | 2023-03-07T05:05:02.285901 | 2021-02-18T19:12:33 | 2021-02-18T19:12:33 | 339,198,625 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 690 | py | # Generated by Django 3.0.8 on 2021-02-07 20:40
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mainapp', '0034_auto_20210205_2013'),
]
operations = [
migrations.AlterField(
model_name='order',
name='status_pay',... | [
"deft727@gmail.com"
] | deft727@gmail.com |
88d039f99f633131187e0d42444fb21b95fb6709 | 0a7e7dafe1f2a75f15bf6e1908616863e6a9db4c | /Task 5/gameparser.py | 3d853e677cdd39688049d95ae8ae2b64cd30b676 | [] | no_license | EuanMorgan70/GameTemplates | f564e05a9233ec5c35524c13e027917ea07abf2a | ae1aa2eee2db82a8ccb3e47f74d8a84a70d11186 | refs/heads/master | 2020-04-01T21:17:58.661197 | 2018-10-19T09:49:51 | 2018-10-19T09:49:51 | 153,648,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,312 | py | import string
# List of "unimportant" words (feel free to add more)
skip_words = ['a', 'about', 'all', 'an', 'another', 'any', 'around', 'at',
'bad', 'beautiful', 'been', 'better', 'big', 'can', 'every', 'for',
'from', 'good', 'have', 'her', 'here', 'hers', 'his', 'how',
'i', ... | [
"noreply@github.com"
] | noreply@github.com |
73268d8e78be08959b7a0ae204f64a99e367dc91 | ac47074bcf749273941ab01213bb6d1f59c40c99 | /project/multi_factor/alpha_model/exposure/alpha_factor_dividend_12m.py | 578ecd49441115d3a844ec792f25ce7045c363c4 | [] | no_license | xuzhihua95/quant | c5561e2b08370610f58662f2871f1f1490681be2 | c7e312c70d5f400b7e777d2ff4c9f6f223eabfee | refs/heads/master | 2020-05-19T17:04:08.796981 | 2019-04-24T02:50:29 | 2019-04-24T02:50:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,149 | py | from quant.stock.date import Date
from quant.stock.stock import Stock
from quant.project.multi_factor.alpha_model.exposure.alpha_factor import AlphaFactor
class AlphaDividend12m(AlphaFactor):
"""
因子说明: 最近12月股息率, 根据最新财报更新数据
披露日期 为 最近财报
表明因子估值能力
"""
def __init__(self):
AlphaFactor.__i... | [
"1119332482@qq.com"
] | 1119332482@qq.com |
3a338b3bce0ae7855f28acdbf3a14a2360a75451 | 0de28d10ee8ed7d3615413584fb59a968593fb68 | /tests/auth_token/commands/test_authenticate_token_command.py | c94c6dff4948670cfd6469f2066ba2a5ba07cf47 | [
"MIT"
] | permissive | westofpluto/django_custom_auth_user | e501aeb28709bae26042031e9ca10c9a569c3f38 | e8dd1bbbdf943982d68a3183b4931a34b2b2c3f5 | refs/heads/master | 2020-03-09T14:38:50.859972 | 2018-05-03T01:41:08 | 2018-05-03T01:41:08 | 128,839,664 | 0 | 0 | MIT | 2018-05-03T01:41:09 | 2018-04-09T22:10:29 | Python | UTF-8 | Python | false | false | 1,725 | py | # -*- coding: utf-8
# Core
import pytest
from mixer.backend.django import mixer
# Models
from custom_auth_user.models import User
from custom_auth_user.models import AuthToken
# Store
from custom_auth_user.auth_token.store import AuthTokenStore
# Commands
from custom_auth_user.auth_token.commands.authenticate_token_... | [
"anthon.alindada.435@gmail.com"
] | anthon.alindada.435@gmail.com |
83df69486edacf78980c1b67c388516b4134c5e6 | 29dd3c6fcb20252ada254a342eae87367e55e010 | /manage.py | ea2e7224478317d5b7b73667027a3e389d23d694 | [] | no_license | Lazi-Algorithm/DjangoBlogApp | b4caa17c341a87f9c0b76a5be1d122f0f9c134e0 | 6f4f6cef67dca0f216afaae6bd72be80c0c91255 | refs/heads/main | 2023-04-18T00:38:43.567342 | 2021-04-27T20:53:20 | 2021-04-27T20:53:20 | 362,244,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'ablog.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise... | [
"eloghosaefficiency@gmail.com"
] | eloghosaefficiency@gmail.com |
7f23664b7bbc4be12bd5c23a8f685cf41f098106 | f6aac61a48a87743be9c40fecdc24344bae4d263 | /scripts/gfs/gfs2iemre.py | 062adac7a62c91781a649ef342cf23c96977f333 | [
"MIT"
] | permissive | akrherz/iem | 8714d99b371c8818f7cdde73dd24639e9fc7d42b | 178015584b7fb5b585f65be6013eaf16fb6db0c7 | refs/heads/main | 2023-08-19T02:58:24.507782 | 2023-08-18T12:08:31 | 2023-08-18T12:08:31 | 4,253,774 | 118 | 74 | MIT | 2023-09-14T18:28:41 | 2012-05-07T20:32:59 | Python | UTF-8 | Python | false | false | 6,702 | py | """Copy GFS grib data to IEMRE grid...
Run from RUN_50_AFTER.sh
"""
import shutil
import subprocess
import sys
from datetime import date, timedelta
import numpy as np
import pygrib
from pyiem import iemre
from pyiem.util import logger, ncopen, utc
from scipy.interpolate import NearestNDInterpolator
LOG = logger()
... | [
"akrherz@iastate.edu"
] | akrherz@iastate.edu |
250227ba416df11e77fe26a382553f1b41650339 | 40041373c9d34ffcde9e3f713a3b4154498f39a8 | /cl_main.py | 32adf6737a361475a2a7d5d3fa5d1561737259be | [] | no_license | Justprogramer/text_information_extraction_ch | 421c15b9efbe2fe2f3150bcac660f10b600f4bfe | 9038076bd400c0edc80d04288a7ef26fb7bbfb54 | refs/heads/master | 2020-06-14T12:07:16.147892 | 2019-07-16T06:32:01 | 2019-07-16T06:32:01 | 195,000,359 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,404 | py | # -*-coding:utf-8-*-
import argparse
import os
import pickle
import torch
import torchtext.data as data
from torchtext.vocab import Vectors
import cl_dataset
import cl_model
import cl_train
from ner_tool import ner_tool
parser = argparse.ArgumentParser(description='TextCNN text classifier')
# learning
parser.add_ar... | [
"whupenger@gmail.com"
] | whupenger@gmail.com |
b3fdd146da4c2235de6f496facc12824508d4d65 | 9d0e04a3f0c5819baf0c942e55507453c7079705 | /documentation/__manifest__.py | 23e06387e0cafbe541b8c1ce699829334e708ffb | [
"Apache-2.0"
] | permissive | ElNahoko/HSE_ARNOSH | 491517e87887a1042c69f3fedb0445388f0235e8 | 1a8661db454e6a9e7f775a3ffd58a3936a43bb59 | refs/heads/master | 2020-06-26T17:57:35.516056 | 2019-09-19T21:34:37 | 2019-09-19T21:34:37 | 199,706,193 | 1 | 2 | Apache-2.0 | 2019-08-19T15:55:10 | 2019-07-30T18:28:12 | Python | UTF-8 | Python | false | false | 1,033 | py | # -*- coding: utf-8 -*-
{
'name': "Documentation des STANDARDS HSE",
'summary': """
Short (1 phrase/line) summary of the module's purpose, used as
subtitle on modules listing or apps.openerp.com""",
'description': """
Long description of module's purpose
""",
'author': "My... | [
"noreply@github.com"
] | noreply@github.com |
6c6752a5145547271c14366dbb8732b389e118dc | 715a29d762c7f6ea5ba2e2273d6463ebbfabcb39 | /10/compileSubroutineDec.py | b24d0f478e8a5f553c0b39d243175355f169c257 | [
"MIT"
] | permissive | zivshacham/Nand2Tetris_clone | c72781a9a849a7bb371251dfba0a998e2e0725a7 | 5f91805823b7572263bc31b0b4537aed14d6b4e7 | refs/heads/master | 2023-03-19T23:37:30.344530 | 2020-02-16T13:30:51 | 2020-02-16T13:30:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,323 | py | import compileSubroutineBody
import compileParameterList
import handleXML
import verifyXMLline
def compile2xml(text, index):
labelClass = handleXML.writeLabelPairs('subroutineDec')
startIndex = index
currentIndex = index
listIndex = ()
output = []
# Add: <subroutineDec>.
output.append(lab... | [
"5583771+Bozar@users.noreply.github.com"
] | 5583771+Bozar@users.noreply.github.com |
2c9a215099b4f34fbcc0cb91065ff3b3496cab1a | 27077b17fd9149195de9161351319ee24544016e | /eventex/core/migrations/0004_auto_20161011_1421.py | 05d70349ea5b094b1981a25e0b6182947f2cb075 | [] | no_license | rpadilha/eventex | 69a5f57bd30405a1d2da994871357600bc147762 | b89387f9a229476df7592a06e9b2c97008cac31b | refs/heads/master | 2020-04-11T00:12:19.622336 | 2016-11-03T02:53:46 | 2016-11-03T02:53:46 | 68,050,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,104 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2016-10-11 14:21
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0003_contact'),
]
operations = [
m... | [
"padilha@renatoair.local"
] | padilha@renatoair.local |
865ee216e6cfc9d792037c307d5b7a7160b8a831 | cec2ef5ae03f994aa618be4fe5df61619a12257b | /GRLTest/IndicatortargetmorethanworsT/IndicatortargetmorethanworsT/IndicatortargetmorethanworsT.py | a428bcfdfc9ca73c6aa5981371f35e3750851f5e | [] | no_license | m81092/GRLToMath | 40052eb6b4e8ecff544a2d18af408366c1465c8e | 6bd13adeea09700ce738412895c6b81af0456fc5 | refs/heads/master | 2020-06-19T14:02:55.387404 | 2018-06-20T21:57:05 | 2018-06-20T21:57:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | def IndicatortargetmorethanworsT( Indicator1):
expr = ((100.0) if (Indicator1 >= 300.0) else (((50.0*abs(0.01*Indicator1 - 2.0) + 50.0) if (Indicator1 >= 200.0) else (((-50.0*abs(0.00588235294117647*Indicator1 - 1.17647058823529) + 50.0) if (Indicator1 > 30.0) else (((0) if (True) else None)))))))
return expr
| [
"filuwan@gmail.com"
] | filuwan@gmail.com |
0a3826ebc48e9ed2fae489ac94d5db8824694b1a | 2c1f4b2f03bbe6704c04a06b5eea1bbb4f21752d | /sliced/base.py | 7f3837515f416e9053d906fd06a5b640704024d8 | [
"MIT"
] | permissive | sofianehaddad/sliced | 54eb49920f57b560090bf7da84087c7c622e7bf0 | 243bde236d8c615f9563279a0a2095e2fa2f4650 | refs/heads/master | 2021-05-23T19:05:00.513782 | 2018-06-18T19:38:54 | 2018-06-18T19:38:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,679 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from pkg_resources import parse_version
import warnings
import numpy as np
import scipy.linalg as linalg
NUMPY_UNIQUE_COUNTS_VERSION = '1.9.0'
def is_multioutput(y):
"""Whether the target y is multi-o... | [
"jloyal25@gmail.com"
] | jloyal25@gmail.com |
ca20f677e85788ae5a2d6c3252f6ebbd0cc52688 | 0e3b4f7ef8ff40391fa21c6d5b1e7c8f12179b03 | /codeforces/F.py | db421dbf1a1183d0c8c568bad10866660d8f0c71 | [
"MIT"
] | permissive | pavponn/machine-learning | c5bcc82bfe1cd03409321e5ba7e540f9b69bbc20 | 95ab573556a72fb5d16761cb8136d2896ae55263 | refs/heads/master | 2023-02-06T05:09:59.815128 | 2020-12-22T22:09:38 | 2020-12-22T22:09:38 | 296,904,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,756 | py | from typing import Dict, Tuple, Set
import math
EPS = 1e-10
def calculate_likelihood_probabilities(k: int, alpha: int, classes_num: Dict[int, int], all_words: Set[str],
word_in_class_k: Dict[Tuple[str, int], int]) -> Dict[Tuple[str, int], Tuple[float, float]]:
likelihood_p... | [
"pavponn@yandex.ru"
] | pavponn@yandex.ru |
112a913a50c7b49e221c725f44b22096245022c1 | 2fa102b151d19cf6fc2cfe5a42df17e8ba90eb9d | /task-management-api/app/main/controller/TaskController.py | d1230092cba559c568070210823291b9815d2cf9 | [] | no_license | sbsanjaybharti/tms | 36fdb49a122b0bfdf612c05956ff6c266c54e7aa | a9140f1eac2627ecec67a8e821095349608a3436 | refs/heads/master | 2023-02-08T01:28:35.424785 | 2020-05-25T05:29:33 | 2020-05-25T05:29:33 | 226,490,976 | 0 | 0 | null | 2023-02-02T06:41:44 | 2019-12-07T10:08:58 | Python | UTF-8 | Python | false | false | 3,305 | py | import http.client
import os, json
import requests
from flask import request, session, jsonify, Flask
from flask_cors import cross_origin
from flask_restplus import Resource
from ..decorator.AuthDecorator import token_required
from ..utility.ErrorHandler import responseData
from ..utility.validation import Validation
... | [
"sanjay@cynixlabs.com"
] | sanjay@cynixlabs.com |
1fbf18053d3044b77888255824e709eae15f86dd | 33169e8e3a3b7aac2ac2e66ee3a5156729424190 | /CSES/problem3.py | 1f1627f98bcbe03e76f3c9389a6ba34370111275 | [] | no_license | gilleseulemans/CSES-problems | 167717a88ae8d8e88258706fe6b4e1b472562b02 | 5d830940f2908850b2d93d7f9f6fb7ee70f39c7b | refs/heads/main | 2023-07-30T04:44:58.788853 | 2021-09-11T12:01:41 | 2021-09-11T12:01:41 | 405,367,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | def main():
n = input()
list1 = []
list2 = [1]
counter = 1
for i in n:
list1.append(i)
current = list1[0]
for i in range(len(list1) - 1):
if current == list1[i+1]:
counter += 1
list2.append(counter)
else:
... | [
"noreply@github.com"
] | noreply@github.com |
dc57e4b3c1c4954f61c5cb315bb48277c0c10ea5 | 42e85e88b8936942eb9e5ed068034c9579384586 | /pipeline_logic/omop/python/schemas.py | 7d87b889016dcae33fda3424b828096f1cafdd78 | [] | no_license | dr-you-group/Data-Ingestion-and-Harmonization | 55b634d8a7abe22cc7f06b3b0bce27467c6720ca | 145aec62daa5df450c94180d5252dd3bc23f0eae | refs/heads/master | 2023-08-25T15:25:59.934816 | 2021-10-07T15:27:07 | 2021-10-07T15:27:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,408 | py | from collections import OrderedDict
from pyspark.sql import types as T
from pyspark.sql.types import StructType, StructField
def schema_dict_to_struct(schema_dict, all_string_type):
field_list = []
for col_name, col_type in schema_dict.items():
if all_string_type:
field_list.append(StructF... | [
"stephanie.hong@jhu.edu"
] | stephanie.hong@jhu.edu |
6417ec0d6ce8a4da8cedd2d42a6c46f353d902ef | 91de8c735941b523148df362b956a11b6693c0a0 | /dashboard/routes.py | 539a0c356e59de2353d4684ce161f96e49e44afd | [] | no_license | adeoti-ade/worldbank_dashboard | 96891903e24d6725927fb8ca99b7a4acaa8c4679 | 0acb63b2d77575f7c0aa85bcbbd8335a6650b650 | refs/heads/master | 2022-04-22T19:57:29.129306 | 2020-04-22T17:53:25 | 2020-04-22T17:53:25 | 252,763,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | from dashboard import app
# from flask import Flask
# app = Flask(__name__)
from flask import render_template
@app.route("/")
def index():
return render_template('index.html')
# @app.route("/")
# def get_news():
# return "no news is good news"
if __name__ == '__main__':
app.run(port=5000, debug=True) | [
"gboyega.a@credpal.com"
] | gboyega.a@credpal.com |
a4fdd6567140f0f569eb565c51d1dbe9bb4152a3 | 49484b879d6c7117ceb1e72dd92621ca7626406d | /old_rank.py | db91c73c446980ac0fabae08102a1796eb06b8af | [] | no_license | magicray/magicray.github.io | b1d29dcdbfc0011f2b43e0dd5df97e3952f0fc70 | 18b757c83a25f61832c34177da2d4a449f72a09c | refs/heads/master | 2023-08-23T15:25:32.209025 | 2023-08-23T00:42:36 | 2023-08-23T00:42:36 | 180,509,807 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,675 | py | import re
import bs4
import math
import json
import time
import argparse
import requests
from logging import critical as log
value_screen = ('903587/value', '5ruq9mkugbh7rqdi6q022ld8ji8zg5ki')
growth_screen = ('879125/growth', 'bbv9rqsz9qblhxhp4efhtv5qvjah7mof')
quality_screen = ('878969/quality', '36g81fd47dtp2sfxv18... | [
"bhsingh@gmail.com"
] | bhsingh@gmail.com |
a3596d0458068c035f819299c4c073136628a1bd | af4f73a15837c2b06f632611eac07a3f44110007 | /client/node_modules/webpack-dev-server/node_modules/fsevents/build/config.gypi | a949df6fc8d73bb3bcc9c963214059ab8b226f28 | [
"MIT"
] | permissive | m3mber/ES_2020_2021 | 6664e9cee0665f304c4ad6d200ed00115c5ed6bc | a57a0384c905295af4f518283ffd8f93c121f11f | refs/heads/main | 2023-06-01T06:38:45.396519 | 2021-06-30T01:15:01 | 2021-06-30T01:15:01 | 369,866,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,493 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"build_v8_with_gn": "false",
"coverage": "false",
"debug_ngh... | [
"valentino.vukadinovic013@gmail.com"
] | valentino.vukadinovic013@gmail.com |
8c5396bc02f8374ca2fdbef23af507552d0e8a17 | 75c2b6336b06d1dc2ac2fd49d6554f75708a7fe0 | /Compare Images/compare.py | 50777400106786cbad05667121c13f7a8114c1de | [] | no_license | SanjayKumarTS/Computer-Vision | c3fd8e377b43928077219bea342ced7a606e38da | 23099db4f500bc4d2c011dcfa945ddf62bd9e80e | refs/heads/master | 2020-04-18T06:15:50.912097 | 2019-01-24T06:12:09 | 2019-01-24T06:12:09 | 167,310,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,363 | py | # import the necessary packages
from skimage.measure import compare_ssim
import argparse
import imutils
import cv2
from skimage import feature
import matplotlib.pyplot as plt
# construct the argument parse and parse the arguments
ap = argparse.ArgumentParser()
ap.add_argument("-f", "--first", required=True,
... | [
"32599300+SanjayKumarTS@users.noreply.github.com"
] | 32599300+SanjayKumarTS@users.noreply.github.com |
da325578a57f0f5949a3625ee61b64b1612a13c1 | 04f948d94cf288eafccf2b513078aeed77e3faef | /prof.py | a35159b88b3feed2074e0fcec867c1df8d0ddf85 | [
"Apache-2.0"
] | permissive | jdily/qpth | a9d0e5a662c407e6b6a92a25962040f0a2834ce8 | 296c01775ac82e7890aa688839f39fff6a6cb681 | refs/heads/master | 2021-01-21T12:58:33.373545 | 2017-05-16T15:02:12 | 2017-05-16T15:02:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,433 | py | #!/usr/bin/env python3
import argparse
import sys
import numpy as np
import numpy.random as npr
import qpth.solvers.pdipm.single as pdipm_s
import qpth.solvers.pdipm.batch as pdipm_b
import itertools
import time
import torch
import gurobipy as gpy
from IPython.core import ultratb
sys.excepthook = ultratb.Formatt... | [
"bamos@cs.cmu.edu"
] | bamos@cs.cmu.edu |
959d18ae3024dfaa89aa2fc9610817389fe4a1cb | 62ec7aa1361416c29583a1ca247fd54f2bd185a4 | /test_fr/settings.py | fdf2b5c69bbf075bb6849b2bcdafb808d154737d | [] | no_license | xinchao-bojan/test_fr | 20d3bea5908646c0320ab10a829984a385ec94e2 | e023cfb06041613aca7fe24cc7d02875367dbc41 | refs/heads/main | 2023-05-27T01:47:19.984770 | 2021-06-13T10:23:52 | 2021-06-13T10:23:52 | 376,494,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,361 | py | """
Django settings for test_fr project.
Generated by 'django-admin startproject' using Django 3.2.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
import os
fro... | [
"sk.schooldude@gmail.com"
] | sk.schooldude@gmail.com |
c1d4d9b077db0b1868665eae4933ae3061f14e62 | e2deae038ca17daad3e496fe8c517acc77bd7175 | /protein-translation/protein_translation.py | 4036d77aef47aa9d344d84be018844ba942c90cc | [] | no_license | eureka84/exercism-python | d2bb9248d4eeb9ab9ccefc4f847a595d1401d7eb | 3cf0e2abccc866469f9b126217906065b5bb9eb0 | refs/heads/master | 2020-04-28T01:50:10.636420 | 2019-03-29T18:40:58 | 2019-03-29T18:40:58 | 174,874,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 855 | py | from itertools import takewhile
aminoAcidsDictionary = dict([
("AUG", "Methionine"),
("UUU", "Phenylalanine"),
("UUC", "Phenylalanine"),
("UUA", "Leucine"),
("UUG", "Leucine"),
("UCU", "Serine"),
("UCC", "Serine"),
("UCA", "Serine"),
("UCG", "Serine"),
("UAU", "Tyrosine"),
(... | [
"angelosciarra@ymail.com"
] | angelosciarra@ymail.com |
d6e78f5990e9b9bcb0a179d6107e7ba267053399 | ad13e1c4fb65b810cd6d7232ab618e29d864a3d9 | /data_analysis/data_group.py | 48b65b398dd9cde9c7d74b6d5f3f178c9d065c22 | [] | no_license | shuaiyin/pystudy | 688994f728e6a8e678325e63b3d8caa446caae20 | fe017cb94582b5e3af68807915447ea99983b742 | refs/heads/master | 2021-01-13T10:27:53.808830 | 2017-05-07T08:17:03 | 2017-05-07T08:17:03 | 63,121,870 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,092 | py | #coding=utf-8
from pandas import DataFrame,Series
import pandas as pd
import numpy as np
import sys
df = DataFrame({'key1':['a','a','b','b','a'],
'key2':['one','two','one','two','one'],
'data1':np.random.randn(5)})
print df
#group by key1 and calculate the average value of column data1
groupd = df['dat... | [
"yshuaicode@gmail.com"
] | yshuaicode@gmail.com |
875c0f821af2f07ad32cab2bdcedef57dd82e2a5 | a26ecf8a24ed20ed9ee4728fa189cc9168f4416b | /library/__init__.py | 09902a0aa53c4e5e72e8ac4cf82bc0737e8102b8 | [] | no_license | mfa/addition_seq2seq_allennlp | c3cf543c65a939aa33ed7aa74f9bf0457f913530 | e8176b33cd6ce375f13d9e720aa4d92a4f210912 | refs/heads/master | 2020-04-25T23:41:27.294094 | 2019-03-10T13:25:15 | 2019-03-10T13:25:15 | 173,153,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54 | py | from library.data import AdditionSeq2SeqDatasetReader
| [
"andreas@madflex.de"
] | andreas@madflex.de |
44e428fed52f42a36ffdae0738e5c259ee1aec43 | eafd1a20588db93fce6d6b0fe13bf9be5ea36293 | /make_plots.py | 3aafa8a0ebd5d5fcb019518b40c89fd4ce39ca8c | [] | no_license | isaakh12/final_project | 885124d50ec66b2dad647a562aaa12b98c1c4128 | 70b85de1ef90072860a480db5accb1dca425567c | refs/heads/master | 2023-05-04T06:02:13.540575 | 2021-05-26T06:58:21 | 2021-05-26T06:58:21 | 362,218,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,540 | py | def make_plots(subset_df, interp_df1, interp_df2, transect_number, var, min_var, max_var):
'''
Makes interpolation and raw data plots
Input: Subset dataframe, interpolation grid, transect number, variable, minimum value, maximum values
Output: Raw data figure, Interpolation figure
'''
from matpl... | [
"ihaberman@mlml.calstate.edu"
] | ihaberman@mlml.calstate.edu |
1f1c6c2bd258f7cf84354d7bf9675b2f2e93c4d1 | 3e6592da31da5ab872a20ab9b97daef85d183d4e | /cryspy/B_parent_classes/preocedures.py | 66f1faa79b5b4aa7388c65c3b9a5e92674da25f3 | [
"MIT"
] | permissive | ikibalin/cryspy | 248b821d8e63cc1ffff07caee5b4b0591a3d5fa6 | 7452415b87f948bb75fb5af96fe414fb1165c71e | refs/heads/master | 2023-07-22T04:14:11.153574 | 2022-11-25T13:48:33 | 2022-11-25T13:48:33 | 178,411,703 | 5 | 2 | NOASSERTION | 2022-04-15T14:26:37 | 2019-03-29T13:36:00 | Python | UTF-8 | Python | false | false | 353 | py | from .cl_3_data import DataN
def take_items_by_class(global_obj, l_class) -> list:
l_res = []
for item in global_obj.items:
if isinstance(item, l_class):
l_res.append(item)
elif isinstance(item, DataN):
l_res_data = take_items_by_class(item, l_class)
l_res.ex... | [
"noreply@github.com"
] | noreply@github.com |
3d3444f908c3d7439d1aa9465070c7661a020e8b | e7eaf928ecf661b62ba5a8814fe3fdf6dfc85c82 | /parallel/update_fam.py | 0bb27d259c652ce0da242e5c910155ab43de88d4 | [] | no_license | kannz6/cchmcProjects | 8ac820c21a943c5937bf6efc8dc290b201c890c5 | e7dc4b50578488a43804c5873b1192cf48dca78e | refs/heads/master | 2021-04-30T16:31:03.965864 | 2017-08-18T17:20:09 | 2017-08-18T17:20:09 | 80,047,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,517 | py | #!/usr/bin/env python
#Andrew Rupert 4-6-17
import fileinput
import os
import re
import sys
######################
#bulk vcf (yale)
######################
# r_parse_base_id=re.compile(r'^(.*?)(-\d\d)?$')
# new_columns = []
path = "tmp_fam.txt"
# tmpFamFileWriter = open("tmp_fam.txt", "w+")
# for line in fileinput.inpu... | [
"bryan.kanu@cchmc.org"
] | bryan.kanu@cchmc.org |
3f6e2abacfeac461a57ba7a45a1cf5a7fed12415 | a275c7e4161c89ed3ee6289b75ad1d017634baab | /kontrollbank/pipelines.py | fb4ba7933de52e17d5cffd84c31fac2ff44fb0a5 | [] | no_license | SimeonYS/Oesterreichische-Kontrollbank-AG | c277d179aa41990458fbed76143fb48c0d8346d2 | f2aa83979c1faa52fdc18fb2802222af0de2d0e3 | refs/heads/main | 2023-04-18T01:17:55.803542 | 2021-04-29T06:34:11 | 2021-04-29T06:34:11 | 339,081,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,298 | py | # Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html
# useful for handling different item types with a single interface
from itemadapter import ItemAdapter
import sqlite3
class KontrollbankPipeline:
... | [
"simeon.simeonov@ADPVT.com"
] | simeon.simeonov@ADPVT.com |
24c9e6984a30f735e585bc692d8a87a374630a02 | 88f5893f223949c2db7b30d44205482384c4e855 | /hardnet/text_detector.py | 447abe3b14017ec41eb2bf0d3128da0aa5732ca5 | [] | no_license | Danee-wawawa/myhardnet | 4bcd132653331d4738cbe3e94a73c07ee3517cf5 | a1828495570da8260f625757c47f8c7791424271 | refs/heads/master | 2021-10-10T23:57:31.651980 | 2019-01-19T11:43:06 | 2019-01-19T11:43:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,469 | py | import copy
import random
import argparse
from rcnn.config import default, generate_config
from rcnn.symbol import *
from rcnn.utils.load_model import load_param
from rcnn.core.module import MutableModule
from rcnn.processing.bbox_transform import nonlinear_pred, clip_boxes
from rcnn.processing.nms import py_nms_wrappe... | [
"sdldd520@163.com"
] | sdldd520@163.com |
368836164c10f8ad6ad4d6a65f978972ca0679ef | 66627d6bd2241be0bd0d7ccc7774ff4b003ea942 | /voicescore/voicescore.py | d0e402909b037ab58ec4ca54789ceee49787f355 | [
"MIT"
] | permissive | ThePheonixGuy/ThePhoenixCogs | 72173b8057b308feb7312d66151f2ce07a6dc4d3 | dec9508955037fde4edf60e0f724fd66fb4eb257 | refs/heads/master | 2021-01-11T13:50:45.306067 | 2017-05-25T20:19:11 | 2017-05-25T20:19:11 | 86,629,943 | 1 | 0 | null | 2017-04-11T22:51:40 | 2017-03-29T21:13:27 | Python | UTF-8 | Python | false | false | 9,350 | py | import discord
import os
from discord.ext import commands
from cogs.utils.dataIO import dataIO
from copy import deepcopy
import time
import asyncio
import datetime
class VoiceScore:
def __init__(self,bot):
self.bot=bot
self.settings_path = "data/voicescore/settings.json"
self.settings = dataIO.load_json(self.... | [
"reynolds.j.a.119@gmail.com"
] | reynolds.j.a.119@gmail.com |
6e8025869d890b774b88472415b3371f8dcb6d48 | b457143523c492ac5293df24adfe8b6f9a667ee3 | /abc/ABC121/c.py | d51b777fd365e52fc482f9273e22bb9bb5c49079 | [] | no_license | d-yuji/atcoder_study | a9cb39ff9808321d8984cfb5f6a38ba1f543b880 | ea59b8f3709aa2286de1809b4e999f0c7f108e0f | refs/heads/master | 2020-05-03T22:55:45.791737 | 2019-05-26T10:04:40 | 2019-05-26T10:04:40 | 178,853,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | # coding:utf-8
def main():
N,M = map(int,input().split())
stores = []
cost = 0
number = 0
for i in range(N):
A,B = map(int,input().split())
stores.append([A,B])
stores.sort()
for store in stores:
if number + store[1] >= M:
cost += (M - number)*store[0]
... | [
"d.yuji.fm@gmail.com"
] | d.yuji.fm@gmail.com |
99c86317623eebc3408c6fbd9cbef298f9049dc0 | 7d1bd4868e4a9ef612003ba15e34bf247cf1a42c | /swp/manage.py | be1f3aa4f4e273d633e8263d8119311e124f02cd | [] | no_license | Student-Welfare-Portal/Web-App-Django | 45f7569ce1b5c67deb54231864a49017d2d86831 | f51b791aed2746fe525e4633c9538837a1a35585 | refs/heads/master | 2020-03-31T20:24:37.089227 | 2019-01-20T10:30:58 | 2019-01-20T10:30:58 | 152,539,070 | 0 | 6 | null | 2018-12-11T03:15:51 | 2018-10-11T06:04:02 | HTML | UTF-8 | Python | false | false | 801 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "swp.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that the
... | [
"="
] | = |
64cab81a648693fce875315066c566357a973b30 | 6a9a8921671d4d0c69f901993043f95bf1859b3d | /manage.py | a828b75b5152660801b21204a5e8b13afd30ab4f | [] | no_license | leedj93/ggaggoong | 061d02fcbf20e7fc3f5ca55a45ead55941a63521 | 749c97d58b8ba67b2c64c83d9d944f421e7c8ab6 | refs/heads/master | 2023-09-06T09:40:04.806505 | 2021-11-09T06:59:19 | 2021-11-09T06:59:19 | 422,127,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'ggaggoong.settings')
try:
from django.core.management import execute_from_command_line
except Im... | [
"taewankim0925@likelion.org"
] | taewankim0925@likelion.org |
d4e5bd956f39f41ddb8b283bb4e69983f46cd8a8 | cd8b12c1c4f512336b3ea5c7a87e8623c1f80c79 | /services/amundsen/amundsendatabuilder/databuilder/extractor/dashboard/tableau/tableau_dashboard_extractor.py | 4bbac12c592aa4ae988334997b92ec80c18cbfb5 | [
"Apache-2.0"
] | permissive | irvcaza/datalake4os | c9c29d38997e0fc01b29852fde61d608521f96f6 | bfe9152e9527ecc3a4928e0d93df1118152025e2 | refs/heads/main | 2023-04-05T16:47:52.547573 | 2021-04-13T18:28:23 | 2021-04-13T18:28:23 | 341,649,613 | 0 | 0 | Apache-2.0 | 2021-02-23T18:23:35 | 2021-02-23T18:23:35 | null | UTF-8 | Python | false | false | 5,754 | py | # Copyright Contributors to the Amundsen project.
# SPDX-License-Identifier: Apache-2.0
import logging
from typing import (
Any, Dict, Iterator, List,
)
from pyhocon import ConfigFactory, ConfigTree
import databuilder.extractor.dashboard.tableau.tableau_dashboard_constants as const
from databuilder import Scoped... | [
"abxda@outlook.com"
] | abxda@outlook.com |
f6c0293401098e66a36e782ca564cf4be1bf6bdc | 67bae06a2f69735fd39d1e0c0cda1e5d59559a8e | /prog1/hw1.py | caa3349e0348c8d86b35b947a93f5fd378753fe7 | [] | no_license | andrewlkraft/cs165b | 0e60fe9d345a105cdebe57eb94fee2e02c0c2d8a | f90b5fc8918ba53132eaf4036be837ade6c1c4fb | refs/heads/main | 2023-02-28T08:50:52.886231 | 2021-01-31T21:44:09 | 2021-01-31T21:44:09 | 306,977,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,722 | py | import numpy as np, time, matplotlib.pyplot as plt
TAKE_AVG = True
KXVAL = 8
EPOCHS = 300
EPSILON = 0.0001
class SGDSolver():
def __init__(self, path):
""" load input dataset specified in path and split data into train and validation. Hint: you can
store both training and testing features and targ... | [
"43654559+AndrewKraft@users.noreply.github.com"
] | 43654559+AndrewKraft@users.noreply.github.com |
2f0f93ea3526d06951c7ec1abdf4d5cdba900116 | d3384e773b4cd82d7c422654176a1c141ecc45ac | /RNNTutorials/NonLinearApproximation_MIMO_Chaos.py | d3d214162e9e2877ad0c389d700abd7905ba0d44 | [
"MIT"
] | permissive | brandonbraun653/ValkyrieRNN | fd724ee9615c2dd61da987324c8c05f963ac27a2 | 532d2f9b1251d151a7f7ef1324ae3250b496193b | refs/heads/master | 2021-05-08T10:53:17.594626 | 2018-03-20T15:21:17 | 2018-03-20T15:21:17 | 119,868,433 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,359 | py | from __future__ import division, print_function, absolute_import
import tflearn
from tflearn.layers.normalization import batch_normalization
import numpy as np
import pandas as pd
import math
import matplotlib
matplotlib.use('TkAgg') # use('Agg') for saving to file and use('TkAgg') for interactive plot
import matplo... | [
"brandonbraun653@gmail.com"
] | brandonbraun653@gmail.com |
4c2cd3335e0930d20697d6176e63bc3d97ace879 | 2bb9159e1466ad4f2635a57bea1ffe97f08d2899 | /src/xlibris/tex.py | 99ce0e2b83404b7b39ca235f806ea54a6e8c1668 | [] | no_license | geodynamics-liberation-front/xlibris | 31da3980df7cea209f8610619aab5fdb1b3c9055 | b473d28a684c08da6c60c887043ab8f35e8669eb | refs/heads/master | 2021-01-23T03:12:29.265803 | 2013-07-14T00:57:02 | 2013-07-14T00:57:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,888 | py | import pkg_resources
import cPickle as pickle
from unidecode import unidecode
from . import LOG
U_T_L=pickle.load(pkg_resources.resource_stream(__name__,"utl.p"))
MONTHS=['jan','feb','mar','apr','may','jun','jul','aug','sep','oct','nov','dec']
BIBTEX_KEY=u'{article.authors[0].surname}{article.earliest_publication.yea... | [
"rpetersen@ucsd.edu"
] | rpetersen@ucsd.edu |
853a2c3e89c802451284a5cd194c08367509c856 | 720c931cea25d5aea9d03331a505ff3a03190cd7 | /common/utils.py | 80245a112cd2ae1f2d0b448963b66e9d24d5ed86 | [] | no_license | xijiali/WEBAN | 977a7507e2eeb7b83fbc26fa76cd741ca22f1864 | 6359ea2f1c3e99472eb682560a3ea76bdcc077fe | refs/heads/master | 2022-12-29T15:00:59.525989 | 2020-10-14T02:19:45 | 2020-10-14T02:19:45 | 303,879,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,761 | py | import torch
import numpy as np
from torchvision import datasets
from torchvision import transforms
from torch.utils.data.sampler import SubsetRandomSampler
"""
Utility function for loading and returning train and valid
multi-process iterators over the CIFAR-10 dataset. A sample
9x9 grid of the images can... | [
"xjl@IT-FVFSMHUYH3QD.local"
] | xjl@IT-FVFSMHUYH3QD.local |
855f4f7bb00f0fad2b5d4834ac54a2168322b3cd | 5f6adaf9a8927bd598e25d96040e4a5d34d905fb | /v2/python-crash-course/projects/django/learning_log/ll_env/bin/pip3 | 7ebde5d78b4113b92b25fde2c912493cacadba49 | [] | no_license | jsore/notes | 10d9da625dd8f6d1c1731c6aad40c6bdbf15a23f | 09b658d7425e2f6c0653810a2a73d8b001fb9288 | refs/heads/master | 2021-10-12T17:55:30.501885 | 2021-10-11T21:48:27 | 2021-10-11T21:48:27 | 158,454,447 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 302 | #!/Users/justin/Core/Dev/Pub/notes/v2/python-crash-course/projects/django/learning_log/ll_env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"jus.a.sorensen@gmail.com"
] | jus.a.sorensen@gmail.com | |
3dde995ff788492c63b56d27a881fa0f305b2539 | cedb40e20aa78ea97b70a3e73f636bc04501d626 | /professor.py | 47033ca33a39362c18153b425a518542ebd1bb47 | [
"MIT"
] | permissive | iansandes/school-system | ce6218dd3fd5f9e8a8ca8dc0ea56c183b66670a9 | 20d0ae41e136452bddbf853d41db1913d3daddc1 | refs/heads/master | 2020-05-24T18:11:33.434490 | 2019-05-30T17:37:06 | 2019-05-30T17:37:06 | 187,404,187 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,333 | py | from funcionário import Funcionario
import pickle
class Professor(Funcionario):
def __init__(self):
self.formacao = ""
self.nivel = ""
self.disciplina = ""
super().__init__()
def cadastrarProfessor(self):
dados_funcionario = super().cadastrarFuncionario()
self.... | [
"iansandes15@gmail.com"
] | iansandes15@gmail.com |
b5acca52f06eebd8391f62eef405b92ed82b36ff | 7449282d4d50b3481aa2d272cc218c27682fd6cd | /mnasnet/cifar10/bottlenecks/Sim/f_sim.py | 44e245b360795f776d311493c9ab77a29c4af2ed | [] | no_license | compstruct/fusion-timeloop-model | 3f18b1beb819e71fa45a0b79d01ad3819b48fbc7 | ab4a7ef7140dfa47e3394ed293d223fecff691c5 | refs/heads/main | 2023-06-11T17:26:41.369904 | 2021-06-30T15:54:32 | 2021-06-30T15:54:32 | 381,750,736 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,335 | py | import numpy as np
import sys
import pandas
import os
import subprocess
import time
import yaml
import ResMaker.fusion as fusion
#*****Configurations********
#simulator configs
DELAY = 20
pred_mapper_pars = []
pred_dw_mapper_pars = []
main_mapper_pars = []
#fusion acc. config
F_PEs = 128
X_PEs = 8
PRED_SPATIAL_GLB ... | [
"mohamad.ol95@gmail.com"
] | mohamad.ol95@gmail.com |
13015e14dea26ea82a75341fbe98b78d0ab4190d | 10c46fbb1f8b5229a485b015366f27738c487acd | /Testing_Project.py | 6cc8fc9509897dbc8a4e0ad6ef27961f62e202c2 | [] | no_license | EugeoKirito/Flask_Blueprint_Testing | d238ceae6a50d4ef1562e38ddda82e4c6e35ec2d | f7318580d5e63e30f5b4a3f2f1f11637ff727928 | refs/heads/master | 2020-05-09T22:44:40.409376 | 2019-04-15T12:22:00 | 2019-04-15T12:22:00 | 181,480,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | import json
import unittest
from manage import app
class LoginTest(unittest.TestCase):
def setUp(self):
self.client=app.test_client()
def test_empty_username_password(self):
# client=app.test_client()
# ret=client.post('/login',data={})
ret=self.client.post('/login',data={}... | [
"44084753+EugeoKirito@users.noreply.github.com"
] | 44084753+EugeoKirito@users.noreply.github.com |
9482857d3b8deefcb5786bfe6b8a01f54785c5a3 | 98c137031262565b975a1c6673adef47ff82456b | /utils/setting.py | ae74d73e72a65ef815406d9c85001790147006a2 | [] | no_license | zhulinyi422/huxiuwang_blog | 4708beeed37704a9e604914e15ad2eda007e9496 | 6f96f4d234e526582c3bbf09bd0c17d8dbab81eb | refs/heads/master | 2020-03-23T22:11:53.732396 | 2018-07-26T07:28:34 | 2018-07-26T07:28:34 | 142,159,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | import os
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
UPLOAD_DIR = os.path.join(os.path.join(BASE_DIR,'static'),'upload')
| [
"536555895@qq.com"
] | 536555895@qq.com |
63b06ada39b3e650e67c14cb068f5523fdad5075 | cff720e5f1c214b864544dc29e69f97a1341500f | /mysite/settings.py | e3b6074d649704561f13d27322227a948af8821d | [] | no_license | buront11/my-first-blog | 22e005b9cae42432215561abbff49149e3663edd | 9cbef6948c5e246f8d2636ab5ddb4f49bd326b3c | refs/heads/master | 2020-12-23T12:12:21.993978 | 2020-02-06T02:18:39 | 2020-02-06T02:18:39 | 237,147,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,198 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.2.9.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
# ... | [
"ysk.s_0220@outlook.com"
] | ysk.s_0220@outlook.com |
c01905023c84bc877eca4fa09077170f3c508b6c | 21ca09e275a8c9086e57728213b186b96477b48d | /BkgdSub_v1.py | 0d152d2c127f05c341c33cba58bb2f7d982a0564 | [] | no_license | aflevel/FlyCourtship | 48a110045c86ea61ab07522629b35e948bf6ae88 | 612cd3a7a32ddf39ed5500163e25da8f1a63b0b9 | refs/heads/master | 2020-04-21T10:48:14.769598 | 2019-02-07T00:22:59 | 2019-02-07T00:22:59 | 169,497,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,320 | py | #!/usr/bin/python
import sys
import os
import numpy as np
import cv2
import datetime
from moviepy.video.io.ffmpeg_reader import FFMPEG_VideoReader
#sys.argv=['','359_CTMxCTF_6.mp4',2]
cap = cv2.VideoCapture(sys.argv[1])
rec = FFMPEG_VideoReader(sys.argv[1],True)
rec.initialize()
frameWidth = int(cap.get(3))
frameH... | [
"noreply@github.com"
] | noreply@github.com |
19f06cd1078d337384ddc3da7c6e980f4f9cebf3 | 2328a25664cd427f2043164ad815698bbb021c34 | /ProfilerApp/ProfilerApp/__init__.py | 304131b26aa01fa05bbc7b96a95f61758190e504 | [] | no_license | Dishan765/Automated-Cybercrime-Profiling | 7f7f017c8d4614ddffd5f662dc7e279a8d40608e | 31a7f89be7a2ed06444bda7cb0ece52854d4e7e7 | refs/heads/master | 2023-07-04T19:35:07.333739 | 2021-08-21T19:44:41 | 2021-08-21T19:44:41 | 347,069,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,076 | py | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_bcrypt import Bcrypt
from flask_login import LoginManager
from ProfilerApp.config import Config
from flask_mail import Mail
db = SQLAlchemy()
bcrypt = Bcrypt()
login_manager = LoginManager()
login_manager.login_view = 'users.login'
login_manag... | [
"you@example.com"
] | you@example.com |
6e1ca7af00fb94efbfc0f9b99bfc5ebd843edbdf | 52c87bbb67acac57fc2a06b0a53c3b2aa95fad08 | /portal/migrations/0007_data_deduct_limits.py | c25b6e73ad5973c80ee06dadc6133e2ad169bf0f | [] | no_license | gBobCodes/insurance | c6b6a44edde8f9f91304bb64b7433553c92fbb7f | 940d44443026c97c302093aacbe17944f1595988 | refs/heads/master | 2021-06-07T12:16:21.329579 | 2016-10-08T13:26:27 | 2016-10-08T13:26:27 | 70,332,465 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,788 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2016-09-17 11:58
from __future__ import unicode_literals
from django.db import migrations
def connect_deductibles_limits(apps, schema_editor):
'''Connect Deductibles to liability Limits.'''
Deductible = apps.get_model('portal', 'deductible')
DeductibleLimit ... | [
"bcollins@foregroundsecurity.com"
] | bcollins@foregroundsecurity.com |
be94b685e25130e55324861a9920dd3906984a0c | 5285cba52bbcdb34bdd8893bdcd95a6c5628dbd5 | /hillandgertner/pages/views.py | 16d0992f6c6c620fe014697497e1d1049435a5d5 | [] | no_license | chemcnabb/hill-gertner | fae389ad8b12fc6c8d9be6d78a469aa231d6a8ae | 6920971c7fc7d7298dfa91b670d8d085c73c4e73 | refs/heads/master | 2021-09-14T01:10:11.820597 | 2018-01-08T00:42:11 | 2018-01-08T00:42:11 | 109,914,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,065 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.http import HttpResponse
from django.shortcuts import render
from django.views.generic import TemplateView
from hillandgertner.pages.models import Page
from hillandgertner.protected_pages.models import ProtectedPage
debug=False
if not debug:
... | [
"che.mcnabb@sgsco.com"
] | che.mcnabb@sgsco.com |
50b9260ebbf8a1f583eaf4f101ca5bb2e43e63f0 | 99f9ecdb35c9927698f3a3e8b5864dd7f5b8aef7 | /thingsboard_gateway/connectors/request/request_uplink_converter.py | fd6b5b3a26888c39d5c2e9274c43f6f01eef19bd | [
"Apache-2.0"
] | permissive | luxiaosu/thingsboard-gateway | 43bd4af5f7944c68a403c8bdb125e7536e202c2b | 646bc6bb64a05aac8710c9a3e736db6ec8d5864b | refs/heads/master | 2023-07-30T13:23:18.783011 | 2021-10-07T15:41:20 | 2021-10-07T15:41:20 | 408,509,478 | 0 | 0 | Apache-2.0 | 2021-09-20T16:01:15 | 2021-09-20T16:01:14 | null | UTF-8 | Python | false | false | 810 | py | # Copyright 2021. ThingsBoard
#
# 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 ... | [
"ibarkov.ua@gmail.com"
] | ibarkov.ua@gmail.com |
bfadc639c8f6aae941ff458f195d340f9719f26e | e9f90d1ba4247c01f59c313179f1ef005885aaba | /khovanhanh/urls.py | f37c115a2c071219be44e80929fecb2c871f9537 | [] | no_license | hangockhue/khovanhanh | aef9ad39822902dea621512b97a485bc7d123bee | d5b3ca103abd4e20a80db8f43768a68d7adab9dc | refs/heads/master | 2022-04-17T18:02:11.526517 | 2020-04-20T08:06:11 | 2020-04-20T08:06:11 | 231,758,102 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py |
from django.contrib import admin
from django.urls import path, include
from django.contrib.staticfiles.urls import static
import khovanhanh.settings as settings
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('khofront.urls'))
]
urlpatterns += static(settings.MEDIA_URL, document_root=settin... | [
"khueha@nhaphangmy.com"
] | khueha@nhaphangmy.com |
65cdabf8faee54817569aebc2ce8097e24679139 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03089/s621337044.py | f7964c4a3f01cff6041508b36017d68bb3b4e4ed | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | N=int(input())
*A,=map(int,input().split())
ans=[]
for a in A:
if len(ans)<a-1:
ans=[-1]
break
else:
ans.insert(a-1,a)
for x in ans:
print(x) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
78fbc97608fb1ad31a7ee890841003439b9de511 | 5d717ea633b4d1ffc25fd9c4248e893d05ddc2a9 | /scripts/trimm_model.py | 63b297adbc70f61b19be39707db27704a16dcf8c | [
"MIT"
] | permissive | migp11/csm4cobra | 0ea92af0ebf91d56fe6fcd0c0c953203fb9ee47b | af1b9ed03935180e936d3faa3b2cb0bf77764255 | refs/heads/master | 2020-06-22T03:16:42.780918 | 2019-07-18T16:09:00 | 2019-07-18T16:09:00 | 197,619,124 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,460 | py | #!/usr/bin/env python3
import argparse
import os
from cobra.flux_analysis import find_blocked_reactions
from cobra.io import read_sbml_model
from cobra.io import write_sbml_model
from csm4cobra.io import read_json
from csm4cobra.manipulate import set_medium
def create_parser():
parser = argparse.ArgumentPa... | [
"miguelponcedeleon@gmail.com"
] | miguelponcedeleon@gmail.com |
f114db5dc6c302ab1e88603c39a5c95c1668865c | 3496588e6cc763a429184b55db6d401095a59229 | /alien_invasion/alien_invasion/scoreboard.py | c99da0b08ec572cb4eea5b6b93dda82e02f4e6bd | [] | no_license | DamonTan/Python-Crash-Course | c1f63c19f5c2c476baec015c39d09facd21977d1 | 49a35426467288ed1dfd823ef409c234ad22675f | refs/heads/master | 2020-03-14T06:12:20.998384 | 2018-05-10T14:23:33 | 2018-05-10T14:23:33 | 130,567,227 | 0 | 0 | null | null | null | null | GB18030 | Python | false | false | 2,879 | py | #coding=utf-8
import pygame.font
from pygame.sprite import Group
from ship import Ship
class Scoreboard():
#显示得分信息的类
def __init__(self, ai_settings, screen, stats):
#初始化显示得分涉及的属性
self.screen = screen
self.screen_rect = screen.get_rect()
self.ai_settings = ai_s... | [
"noreply@github.com"
] | noreply@github.com |
c945be5ade7d7d7bd3d244f0f621168994f71939 | be8bdc6bf059f7ca62e0a2fffe936ed481326380 | /shrello_web/shrello_web/urls.py | f0ade18c41bb77eef3e626431116317d9ac62d4e | [] | no_license | dhaivat28/shrello | b9a218fb3b9d0615b3c01a0a0353c1304277644b | 415a300005338e75fb9d047c6f4d51802beadf49 | refs/heads/master | 2021-01-02T09:03:14.383967 | 2017-01-06T19:24:13 | 2017-01-06T19:24:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 822 | py | """shrello_web URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class... | [
"siddharth2395@gmail.com"
] | siddharth2395@gmail.com |
9e01e282f678e3fac997ccaed9c5abcb7ebd2853 | b502a61dae00f9fbfed7a89b693ba9352e016756 | /Python/plotly1.py | cef9a52d973d954a1bd86e24eb2e70dc63ce131c | [] | no_license | VIJAYAYERUVA/100DaysOfCode | 4971fadd8a9583a79a3b66723db91d9d0b1cfd2a | 637bfd559e0a50181902cc31cfe062de20615b53 | refs/heads/main | 2023-03-27T06:06:14.725721 | 2021-03-27T22:09:41 | 2021-03-27T22:09:41 | 322,189,808 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | import pandas as pd
import plotly.offline as pyo
import numpy as np
# create fake data:
df = pd.DataFrame(np.random.randn(100, 4), columns='A B C D'.split())
pyo.plot([{
'x': df.index,
'y': df[col],
'name': col
} for col in df.columns], filename='data/output/plotlyPlots/plotly1.html')
| [
"VIJAYAYERUVA@users.noreply.github.com"
] | VIJAYAYERUVA@users.noreply.github.com |
655ae72ebf093d06618bf11f5e378743c4d56783 | 2b8c8272d723f8ddc3fc1299828a72d7fbfe3cbe | /tails/settings/local.py | 3f2559df0d07b6ac3657813b1a6ae56ff95f5748 | [] | no_license | yusufertekin/tails-assignment | 041e0b7d46eac7558dba5cbe92dfca58f956fa25 | 23856026d45536b614d4beb00c577bdf04d642ac | refs/heads/master | 2022-04-29T16:38:07.930888 | 2019-09-24T02:12:54 | 2019-09-24T02:12:54 | 210,486,137 | 0 | 0 | null | 2022-04-22T22:19:37 | 2019-09-24T01:37:44 | Python | UTF-8 | Python | false | false | 251 | py | from tails.settings.base import *
# Database
# https://docs.djangoproject.com/en/2.2/ref/settings/#databases
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
}
}
| [
"yusuf@ertekin.net"
] | yusuf@ertekin.net |
5a6eb0cb2eb972dee48c7e91616bf75ba288e65f | 101d866f8e2f84dc8f76181341180c13b38e0ecf | /utils/tes.py | 1937dc4f93ef482fe7fa346571d89d6792137995 | [] | no_license | cming091/autotest | 1d9a6f5f750c04b043a6bc45efa423f2e730b3aa | 0f6fe31a27de9bcf0697c28574b97555fe36d1e1 | refs/heads/master | 2023-06-02T18:22:24.971786 | 2021-06-21T08:52:47 | 2021-06-21T08:52:47 | 378,858,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,257 | py | import json
import requests
import logging
from utils import cfg
def register(warehouse_name):
url = cfg.G_CONFIG_DICT['base.url_base'] + '/tes/api/warehouse/register'
result = 'fail'
warehouseID = ''
try:
data = {
'userID': "111",
'warehouseName': warehouse_name,
... | [
"349152234@qq.com"
] | 349152234@qq.com |
970b4c6d8c568ca1a1a604bcefbed31891b3cdbc | fd8fd645c93c6ed556f8d1792b4aeaf5a9f740b3 | /carts/migrations/0003_cartitem_lin_item_total.py | 2108370424b7d86f623e6fb89e7cf3e890567790 | [] | no_license | joincs/DjangoEcommerce | 5c921f07c4933c02018bb9bd2e7e8d8864ec58d4 | 06b4aa536001c49beb71293b958c1b52980ebcdb | refs/heads/master | 2022-12-03T23:52:14.490046 | 2020-08-20T17:08:48 | 2020-08-20T17:08:48 | 289,061,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | # Generated by Django 3.0.8 on 2020-08-17 06:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('carts', '0002_auto_20200817_1021'),
]
operations = [
migrations.AddField(
model_name='cartitem',
name='lin_item_tota... | [
"codingspark786@gmail.com"
] | codingspark786@gmail.com |
2bfb6bf038bd261aebbd37bb9bafc0467a2f4652 | f67314456882a5e55e2ee57e0c0571dd36062e8b | /tests/test_players.py | 84099d2e0a4725964c9ec0b28d2c8942d7cb194d | [
"MIT"
] | permissive | gunnardag/spoppy | a571eebdd9aec689696f706a4a361823bcc1aa2d | ebf8df43cb45241c9e674124ce3562cca0522247 | refs/heads/master | 2020-12-11T07:31:31.285062 | 2016-04-27T01:15:44 | 2016-04-27T01:15:44 | 57,172,688 | 0 | 0 | null | 2016-04-27T01:07:20 | 2016-04-27T01:07:20 | null | UTF-8 | Python | false | false | 19,842 | py | import unittest
from collections import namedtuple
from mock import MagicMock, Mock, patch
import spotify
from spoppy import players, responses
from . import utils
class TestPlayer(unittest.TestCase):
def setUp(self):
self.navigation = Mock()
self.player = players.Player(self.navigation)
... | [
"sindrigudmundsson@gmail.com"
] | sindrigudmundsson@gmail.com |
abbe58cde2af999e63f1c1ece5b0ad34b39ee2b7 | 7e6dc15dd2455f0913db62ada1d666a64f35660f | /wxgui.py | fc5ef7cfffd7817115489afcc13a27e8134a820c | [] | no_license | johnpm-12/tunneler | 5cb602695238074a509de3647b69f69bc0d5ba80 | 5f5515f9ddfb088b78862ff625f3f6fda797910e | refs/heads/master | 2022-09-13T16:21:58.809945 | 2018-08-21T22:59:58 | 2018-08-21T22:59:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,722 | py | # -*- coding: utf-8 -*-
###########################################################################
## Python code generated with wxFormBuilder (version Jan 23 2018)
## http://www.wxformbuilder.org/
##
## PLEASE DO *NOT* EDIT THIS FILE!
###########################################################################
impo... | [
"39016062+whatsyourgithub@users.noreply.github.com"
] | 39016062+whatsyourgithub@users.noreply.github.com |
40caab98def245cb3c4d05ebd2fc31b31a1ee555 | 8ca52d458dda5b1a557828003240942ed02e19d9 | /4_6_4.py | e5089bcc2e205cbdc7aabdf73f0bfe4462b4cd77 | [
"MIT"
] | permissive | rursvd/pynumerical2 | 48c8a7707c4327bfb88d0b747344cc1d71b80b69 | 4b2d33125b64a39099ac8eddef885e0ea11b237d | refs/heads/master | 2020-04-19T04:15:34.457065 | 2019-12-06T04:12:16 | 2019-12-06T04:12:16 | 167,957,944 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | n = 2
m = 3
for i in range(n):
for j in range(m):
print(i,j)
| [
"noreply@github.com"
] | noreply@github.com |
16e88bccfc754c5e287e656e2f5a5f3fa71e2a5f | 99f9f92a0e6508d85feabe31e4004772491f9258 | /templates/api/hydrofunctions/hydrofunctions.py | fb6bee0146d9b7880cb34ebfb64e69de35a7ead7 | [
"MIT"
] | permissive | edgewize/flask-dashboard | ab8bf24b983b6a35b50ce0012dc6120d10c347f2 | 55143a467b92f7ca48402907844d11358985d765 | refs/heads/master | 2023-01-08T03:51:07.317555 | 2020-09-27T15:00:30 | 2020-09-27T15:00:30 | 233,483,190 | 0 | 0 | null | 2023-01-06T01:25:28 | 2020-01-13T00:56:47 | Python | UTF-8 | Python | false | false | 27,023 | py | """
hydrofunctions.hydrofunctions
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This module contains the main functions used in an interactive session.
-----
"""
from __future__ import absolute_import, print_function, division, unicode_literals
import requests
import numpy as np
import pandas as pd
import json
import py... | [
"tayloredginton@localhost.localdomain"
] | tayloredginton@localhost.localdomain |
a5f1cbaaa1e56547b3fe505e75e3e829a2a2c67c | 0ebc71b91c5135eba413ae91df67e378b9642080 | /tests/system/test_base.py | 8af851e2abbf91656d06798f074bff2755b74a28 | [
"Apache-2.0"
] | permissive | yaule/cloudwatchmetricbeat | c1193557c52567b9ea8fee0205c13f9cc3b08f53 | a1162cf17f4b3f61d0f6413518fd4a28435d7234 | refs/heads/master | 2020-04-12T15:54:39.027320 | 2018-06-21T15:25:08 | 2018-06-21T15:25:08 | 162,593,585 | 0 | 0 | NOASSERTION | 2018-12-20T14:55:22 | 2018-12-20T14:55:21 | null | UTF-8 | Python | false | false | 531 | py | from cloudwatchmetricbeat import BaseTest
import os
class Test(BaseTest):
def test_base(self):
"""
Basic test with exiting Cloudwatchmetricbeat normally
"""
self.render_config_template(
path=os.path.abspath(self.working_dir) + "/log/*"
)
cloudwatchmet... | [
"phillip@narmitech.com"
] | phillip@narmitech.com |
f51c72b4fc63f1560f1e39df2271ba5c5dd65d7a | 91bba081bc796dabb15cf93d8a4e9f15463efe7f | /Models/LSTMClassifier/main.py | 8edddcf353d2ec568272f02d97795893736a2a23 | [] | no_license | duyvuleo/scientific-paper-summarisation | 719b0a9473d66d4465b89bfeedd9861de67cb593 | 60bb9d2300b42c86c42a81b639c48fb90ef4a6c4 | refs/heads/master | 2020-07-12T15:32:04.369169 | 2017-06-12T17:46:23 | 2017-06-12T17:46:23 | 94,280,947 | 1 | 1 | null | 2017-06-14T02:42:59 | 2017-06-14T02:42:58 | null | UTF-8 | Python | false | false | 11,981 | py | from __future__ import print_function, division
import os
import dill
import pickle
import sys
import random
sys.path.insert(0, "/Users/edcollins/Documents/CS/4thYearProject/Code")
from operator import itemgetter
from Dev.DataTools import useful_functions
from Dev.DataTools.useful_functions import wait, printlist, num2... | [
"edward.g.collins.1995@gmail.com"
] | edward.g.collins.1995@gmail.com |
a678ce0647f4fcc50b8dfa7d82c5c516efdabcc1 | 53262ee5b8437d208a80de997a8de5074a92426a | /root_numpy/tmva/__init__.py | 8286f5266882d4967b02669008fcb582b4da83cb | [
"BSD-3-Clause"
] | permissive | scikit-hep/root_numpy | bb2c7280a5e9e15df91c86ff3c6d9bfe3464c754 | 049e487879d70dd93c97e323ba6b71c56d4759e8 | refs/heads/master | 2023-04-07T11:25:50.080999 | 2023-01-06T17:57:30 | 2023-01-06T17:57:30 | 3,823,872 | 87 | 25 | BSD-3-Clause | 2021-02-27T10:02:21 | 2012-03-25T11:40:22 | Python | UTF-8 | Python | false | false | 544 | py | try:
from . import _libtmvanumpy
except ImportError: # pragma: no cover
import warnings
warnings.warn(
"root_numpy.tmva requires that you install root_numpy with "
"the tmva interface enabled", ImportWarning)
__all__ = []
else:
from ._data import add_classification_events, add_re... | [
"noel.dawe@gmail.com"
] | noel.dawe@gmail.com |
dc45b52c698d138d42ece2f31f39783f33253a7d | 3f842384062b9280826e83fd973a6d048e061dc2 | /Computer-Networks-Lab/Lab8/udpserverfilewrite.py | b0d639fcea9d1ac72b3c3d32a6414f2802a1b669 | [] | no_license | AbstractXan/Thats-all-codes | 7ad65620a5bf2178a53d7c9b52740b596f774659 | 5108da180b3cebd7ea3a6d6c6bff3198fcaaa46f | refs/heads/master | 2021-04-09T13:30:21.424293 | 2019-09-16T06:21:26 | 2019-09-16T06:21:26 | 125,702,276 | 0 | 0 | null | 2018-04-18T05:57:34 | 2018-03-18T07:31:30 | C++ | UTF-8 | Python | false | false | 500 | py | import socket
import sys
print ('IP entered: ',str(sys.argv[1]),'\nFile name to writeto: ', str(sys.argv[2]))
port = 1234
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.bind((str(sys.argv[1]),port))
print("sock is listening")
while True:
data,addr = sock.recvfrom(1024*1024)
#print(" recieved data is "... | [
"noreply@github.com"
] | noreply@github.com |
f959c6b7d70748d3b06d683b8f1d5192a6878ead | a0df4c9a95fd9546c78c30bb400446097aaa124a | /5620/ex15_17/dc_leapfrog_exper.py | 606cf31e95ddc3de6d1cff1f02afb07fe1bdd1da | [] | no_license | weizhanguio/INF5620 | 22ad4382c3d1b3fd0b56ee8bc2f91cfd0c2cf889 | 178cb0077d1081de8e00f25cf55e57bdc45b1bfd | refs/heads/master | 2016-09-06T04:55:05.554385 | 2013-01-07T18:51:32 | 2013-01-07T18:51:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,106 | py | from numpy import *
from matplotlib.pyplot import *
import nose.tools as nt
def solver(I,a,b,T,dt,theta):
dt=float(dt)
N=int(round(T/dt))
T = N*dt
u=zeros(N+1)
t=linspace(0,T,N+1)
u[0]=I
u[1]=dt*(-a(t[0])*I+b(t[0]))+I
for n in range(1,N):
u[n+1]=(u[n-1]+2*dt*( (theta-1)*a(t[n])*u[n]+(1-theta)*b... | [
"weizhang@student.matnat.uio.no"
] | weizhang@student.matnat.uio.no |
ba38f6e77064e01ad0bb128110e9dfe5425b2ef8 | 9a5368dbbcaa9aa81e9aacf94ab4d17f9cc78eae | /dbcsv/csv_seed.py | fbea298bab7d02624d4c21a85c3517176ecec18f | [] | no_license | medtech-proj/alvin | 38a7c98ca5d15e09772c144ad8050c035203716d | 3154e717d0aa7348bd613bbae39e6200e5c792bc | refs/heads/master | 2021-01-23T02:16:14.255843 | 2017-05-17T03:16:01 | 2017-05-17T03:16:01 | 85,980,840 | 0 | 2 | null | 2017-05-17T03:16:02 | 2017-03-23T17:54:14 | CSS | UTF-8 | Python | false | false | 1,254 | py | import psycopg2
from psycopg2.extras import RealDictCursor
import csv
database = 'test'
connection = psycopg2.connect(dbname=database)
#create cursor factory
connection.set_isolation_level(psycopg2.extensions.ISOLATION_LEVEL_AUTOCOMMIT)
cursor = connection.cursor()
with open("facilities.csv") as facilities_data:
... | [
"lgibson212@users.noreply.github.com"
] | lgibson212@users.noreply.github.com |
dfe3cae5f71902afac7daead48a6342cb66ce9a0 | 0655da8f317b889c973ffcdd401438b9354677ed | /Python Standard Library - Usage/Random.py | 424f88eb5cddee1c73a60dbda796cde9954ed3ea | [] | no_license | SniperBuddy101/learno | e8efd727a0a45991cdfdac76e445291460d1dd21 | 5944e7c94bbaf1b6d8c5ddc1ade42825a33a76d7 | refs/heads/master | 2021-05-18T02:09:08.821873 | 2020-04-14T20:28:28 | 2020-04-14T20:28:28 | 251,059,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | # Randomizing :)
import random
print(f"A random floating point number: {random.random()}")
print(f"A random integer: {random.randint(2, 56)}")
print(f"A random item from a list {random.choice([2, 3, 4, 'Yes'])}")
print(f"2 random items from a list {random.choices([5, 6, 7, 8, 9], k=2)}")
print(f"Joining items in an ... | [
"karnik.shreyash@gmail.com"
] | karnik.shreyash@gmail.com |
258edd999e0db3cc2ad5351c7e9e8cdc1c1ed982 | 5a6cd9da73ad197e6ca29cce0436640797991096 | /bench/app/benchmark/domain/events.py | c8fc479dc237e953e01e35e4401de6e5233af4a9 | [] | no_license | in-void/flask-ddd-ca | 1c944f040f7001318ac2e73a3bfb8b36271424e6 | 201246cdd003c08b89d8bee08790db2afd9f0b72 | refs/heads/master | 2023-05-27T19:39:06.290935 | 2019-08-27T15:51:08 | 2019-08-27T15:51:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | # -*- coding: utf-8 -*-
from bench.app.core.domain.events_dispatcher import DomainEvent
class ComparativeBenchmarkFinished(DomainEvent):
name: str = 'benchmark.comparative_benchmark_finished'
def __init__(self, benchmark_id: str) -> None:
super().__init__()
self.benchmark_id = benchmark_id... | [
"barnard.kano@gmail.com"
] | barnard.kano@gmail.com |
50d49eda3d0f6a9bf8a2664a0489184a0a528b18 | efcd21234f3291e8fc561f49a7c88fc57a63e952 | /tartiflette/execution/nodes/variable_definition.py | d39c40f25262e260c7aa9a9a91e664a5891a9398 | [
"MIT"
] | permissive | tartiflette/tartiflette | 146214a43847d2f423bf74594643c1fdefc746f1 | 421c1e937f553d6a5bf2f30154022c0d77053cfb | refs/heads/master | 2023-09-01T02:40:05.974025 | 2022-01-20T14:55:31 | 2022-01-20T14:55:31 | 119,035,565 | 586 | 39 | MIT | 2023-09-11T07:49:27 | 2018-01-26T09:56:10 | Python | UTF-8 | Python | false | false | 2,799 | py | from functools import partial
from typing import Any, Callable
from tartiflette.coercers.inputs.compute import get_input_coercer
from tartiflette.coercers.literals.compute import get_literal_coercer
from tartiflette.coercers.variables import variable_coercer
from tartiflette.constants import UNDEFINED_VALUE
from tarti... | [
"raulic.maximilien@gmail.com"
] | raulic.maximilien@gmail.com |
073bd0379e046cf8083fef89f310e2b630edf7cf | 7aab493a5289b92f141e568d9029131f6e044638 | /Lesson 1 - Iterations/Python/BinaryGap.py | 8a1a9a310d1e290979a01c7d0a58b146b83fa993 | [] | no_license | domheb/codility-solutions | fad664737cb154bed69177e9e36dec6876c87707 | 5017c401948e41f96effc5e484402b3e4d162265 | refs/heads/master | 2021-08-08T21:10:27.119758 | 2020-04-30T21:44:00 | 2020-04-30T21:44:00 | 168,657,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,284 | py | """
Written using Python 3.6
Compiled on Linux Manjaro 18
"""
def solution(N):
#Create useful variables
bin_number = []
#Check additional conditions:
if not isinstance(N, int): #N is not an intiger
return(-1)
if N == 1 or N == 0: #N is equal to 0 or 1 so no gap
return(0)
else:
bin_number.append(1)... | [
"noreply@github.com"
] | noreply@github.com |
2de246307e5de016353b9bef9801df50e562fcac | 7ce2cc0df74e24d1bb7c860c689407affe2db856 | /day27/breast_cancer.py | 75e061c4f99f33c4920e3347a8a71fee9910a8da | [] | no_license | puneetb97/Python_course | 6cf1ef98b208959324e6b5bd6316b1a0818a9501 | 238011ccf5443b90948d8877507982dcf78f401c | refs/heads/master | 2020-04-27T00:40:50.975729 | 2019-06-06T09:02:46 | 2019-06-06T09:02:46 | 173,941,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,382 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Jun 1 15:46:25 2019
@author: Puneet
"""
import pandas as pd
import numpy as np
#extracting data from csv file
df = pd.read_csv("breast_cancer.csv")
df.isnull().any()
#dealing with null values
df["G"] = df["G"].fillna(method = "ffill")
df.isnull().any()
features = df.iloc[... | [
"puneetb006@gmial.com"
] | puneetb006@gmial.com |
caf42ea5c4f339c679802201ca4b249411d33da5 | 69bb82b7df793da03d2599eb7c3b81e56824234f | /tableau.py | 0c7d9b7c8c67f7321204fe6466830e0db4faace3 | [] | no_license | scottfits/tableau-scraper | c093da0f647755f9895cafab3727a189ff3fc5bb | bf416e53029f649fdec353b1229c3b0262bcb9ff | refs/heads/master | 2022-12-24T10:05:15.454925 | 2020-09-24T20:53:10 | 2020-09-24T20:53:10 | 298,392,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,169 | py | import requests
from bs4 import BeautifulSoup
import json
import re
url = "https://tableau.ons.org.br/vizql/w/COVID-19Deaths/v/Deaths/bootstrapSession/sessions/"
url = "https://tableau.azdhs.gov/views/COVID-19Deaths/Deaths"
r = requests.get(
url,
params= {
":embed":"y",
":showAppBanner":"false... | [
"scott@airgara.ge"
] | scott@airgara.ge |
458dc8884ad6649d49359f7b856a3c5baf07039e | 24d8cf871b092b2d60fc85d5320e1bc761a7cbe2 | /wicd/rev519-537/right-branch-537/wicd/wicd-client.py | 96cef4b2cc9a14ce6f3fefe19abd026d2c623630 | [] | no_license | joliebig/featurehouse_fstmerge_examples | af1b963537839d13e834f829cf51f8ad5e6ffe76 | 1a99c1788f0eb9f1e5d8c2ced3892d00cd9449ad | refs/heads/master | 2016-09-05T10:24:50.974902 | 2013-03-28T16:28:47 | 2013-03-28T16:28:47 | 9,080,611 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 25,485 | py | """ wicd - wireless connection daemon frontend implementation
This module implements a usermode frontend for wicd. It updates connection
information, provides an (optional) tray icon, and allows for launching of
the wicd GUI and Wired Profile Chooser.
class TrayIcon() -- Parent class of TrayIconGUI and IconConnectionI... | [
"joliebig@fim.uni-passau.de"
] | joliebig@fim.uni-passau.de |
4b673bc37665e0a54a1b1b9e16dbed3ba4276ef8 | bb577626da01bf55398b760ab7079673df92050f | /app/migrations/0003_auto_20200804_1759.py | 57293dfe2e16ddb631e057402d1c9b6d10184484 | [
"MIT"
] | permissive | AngelaGua/group2_CTFLab | d07e481a72c93a47866e7efdbdfdf16da56099ed | 5b492ce46875ea37a57701686897bd9613e2dd13 | refs/heads/master | 2023-01-03T09:19:01.573443 | 2020-10-06T15:15:15 | 2020-10-06T15:15:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,399 | py | # Generated by Django 2.1.15 on 2020-08-04 17:59
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('app', '0002_lab_args'),
]
operations = [
migrations.RemoveField(
model_name='lab',
... | [
"msn@mapoetto.net"
] | msn@mapoetto.net |
aab962d480479195e95fbf6f6f89de69c6e05402 | 73aca8a8c9c0a197e99af31bd124681b1b68e2bf | /franka-emppi-data/Simulations/franka-cabinet/vis-sim.py | d082141616db4d124cf1aafc29316c79e4fefabd | [] | no_license | i-abr/EnsembleMPPI | a4f7013fa990f997c6c0ce94647aa733bf78da86 | b3fd5bccf720fd218cdb71880b6661306dbf7a14 | refs/heads/master | 2023-06-24T18:17:40.798344 | 2020-08-20T03:52:01 | 2020-08-20T03:52:01 | 274,959,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | #!/usr/bin/env python3
import numpy as np
from mujoco_py import load_model_from_path, MjSim, MjViewer
model_path = 'assets/franka-door.xml'
model = load_model_from_path(model_path)
sim = MjSim(model)
viewer = MjViewer(sim)
door_bid = model.body_name2id('Door')
t_model_path = 'assets/franka-cabinet.xml'
t_model = lo... | [
"iabr4073@gmail.com"
] | iabr4073@gmail.com |
b34289eaf185e4d32c68ce971ed745443c0712dd | 9c6837404b15c71ef13b0615701dbde49806ffa3 | /app/app.py | 48f35b56eba471c5966b68c407bbd4fabbf14d2f | [
"MIT"
] | permissive | gladunvv/send-messages-service | d43bd68af892aeb268e2f75b91756eaa5eed1976 | a467f2daab77feb5ad9c72e02d5aa12741fc20b7 | refs/heads/master | 2020-09-17T07:10:48.814024 | 2019-12-09T20:25:37 | 2019-12-09T20:25:37 | 224,031,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | import flask
import os
app = flask.Flask(__name__)
app.config["DEBUG"] = True
import routes
if __name__ == "__main__":
app.run(debug=True)
| [
"bincha.1997@gmail.com"
] | bincha.1997@gmail.com |
0fac912558de9a1141bb62d3223f1aa8fd825e70 | 1b9075ffea7d4b846d42981b41be44238c371202 | /2008/devel/desktop/xfce4/goodies/xfce4-notifyd/actions.py | 0be89f389aad103384a5f9e18a9beb460910be54 | [] | no_license | pars-linux/contrib | bf630d4be77f4e484b8c6c8b0698a5b34b3371f4 | 908210110796ef9461a1f9b080b6171fa022e56a | refs/heads/master | 2020-05-26T20:35:58.697670 | 2011-07-11T11:16:38 | 2011-07-11T11:16:38 | 82,484,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
def setup():
autotools.configure('... | [
"MeW@a748b760-f2fe-475f-8849-a8a11d7a3cd2"
] | MeW@a748b760-f2fe-475f-8849-a8a11d7a3cd2 |
33ed125671b5ae7caf921093bc582b018e9e6f48 | 52e2588508fe1161cd393550b275f2eedd85c5a3 | /SixthA(OOP).py | cfa716e3005bede65be3a22192892b35673e9959 | [] | no_license | evgenygamza/MagicWand | ea0caf7706f0a767bf01ec9345d1e57b3c5baad8 | 9b28775ab19bc4b58ad20d2c3341b26defb9ec4c | refs/heads/master | 2023-05-12T06:51:20.458683 | 2021-05-26T18:58:45 | 2021-05-26T18:58:45 | 371,141,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | # -*- coding: cp1251 -*-
__Author__ = 'Gamza'
class Hui:
def __init__(self, days_after_shaving, days_after_bath, active_days):
self.volosatost = 2 * days_after_shaving
self.aromat = 3 * days_after_bath * active_days
class NemutuiHui(Hui):
def __init__(self, a, b, c):
Hui.__init__(sel... | [
"1i4m5g2@#$"
] | 1i4m5g2@#$ |
e32da698d05d799a03cf900f64916a0071fc5c50 | 7f315bfdd51ad2d2fd1872b0118da7121491e6dd | /shujujiegou/03_select_sort.py | 2f9bb64eabf4ab1358548562a463c3c8629dc3e5 | [
"MIT"
] | permissive | summerliu1024/PythonExercises | 6c868f72e2dffedcfb996ef272ccbd843a3e9100 | 43e07998540a73f0112538646ded37b39e8da88b | refs/heads/master | 2020-06-15T13:38:37.564283 | 2019-07-09T02:56:00 | 2019-07-09T02:56:00 | 195,314,994 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | def select_sort(alist):
"""选择排序"""
n = len(alist)
for j in range(n-1):
min_index = j
for i in range(j+1, n):
if alist[i] < alist[min_index]:
min_index = i
if j != min_index:
alist[j], alist[min_index] = alist[min_index], alist[j]
if __name__ =... | [
"948605548@qq.com"
] | 948605548@qq.com |
8850ac4d33cbe4f2fe5c64ab1bbb490703182870 | 18f6e4c3de87a3edabaaca80bff14b0c0f83fe30 | /rabo_converter_qif_v2.py | 288b5b43c180b8c3ef44c07dc8c92cbe4b97dfd4 | [
"MIT"
] | permissive | Deinara/rabotoqif | 54acf2c00a040d2344aadabf7ee8d4744a879335 | 3c54cda47c101c961a78b12f7799e7fd915f11ec | refs/heads/master | 2022-01-11T13:12:43.173012 | 2019-07-20T08:33:09 | 2019-07-20T08:33:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,930 | py | #!/usr/bin/env python3
"""Converts Rabobank CSV to QIF"""
import datetime as dt
import os
import pandas as pd
from qifparse import qif
def main():
today = str(dt.date.today())
# format_str required for interpretating date by qifparse
format_str = "%Y-%m-%d"
# check current directory for matching fil... | [
"wdunnes@gmail.com"
] | wdunnes@gmail.com |
89c7405aa647f7ce532b1ebeb9b37e2d8f6f0f5d | 63658f67fcc8d8fe376a4bfe327be6a3bef15a7d | /spark/Entrega2/05/05.old.py | 7099fe50a61ad90d2bc25a4ae83e856e7f510741 | [] | no_license | JonathanLoscalzo/catedra-big-data | 2e7399e7042e08de678dfe8894bebbc2fdee065a | c128bc24282a17c51ef0e6bf9acc8b031baebd72 | refs/heads/master | 2021-07-19T17:47:14.894079 | 2018-12-19T11:30:36 | 2018-12-19T11:30:36 | 146,965,681 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,550 | py | from pyspark import SparkConf, SparkContext
from pyspark.sql import Row
import sys
conf = SparkConf().setMaster("local").setAppName("cantidad_viajes")
sc = SparkContext(conf=conf)
if len(sys.argv) < 4:
sys.exit(
"\nPRIMER PARAMETRO ARCHIVO DE ENTRADA \n"
+ "SEGUNDO PARAMETRO DIRECTORIO DE SALIDA\n... | [
"jonathan.r.loscalzo@gmail.com"
] | jonathan.r.loscalzo@gmail.com |
d6ee7fda37973ff33a434afd1575004b50819c0a | 751d837b8a4445877bb2f0d1e97ce41cd39ce1bd | /codegolf/hello-world-rainbow.py | 0e86441c738f717c2150798dc6f368cbd9961c53 | [
"MIT"
] | permissive | qeedquan/challenges | d55146f784a3619caa4541ac6f2b670b0a3dd8ba | 56823e77cf502bdea68cce0e1221f5add3d64d6a | refs/heads/master | 2023-08-11T20:35:09.726571 | 2023-08-11T13:02:43 | 2023-08-11T13:02:43 | 115,886,967 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,321 | py | #!/usr/bin/env python
"""
Dealing with colors in non-markup languages often complicates things. I would like to see some variations of how color is used in different languages.
The object of this competition is to output 'Hello World' in the seven colors of the rainbow.
According to Wikipedia, these are the 7 color... | [
"qeed.quan@gmail.com"
] | qeed.quan@gmail.com |
3dd8cd2f2c00f88ab7caac08556912691b878f5a | 50013097521c08e66aa6351ede5f4c46de84f429 | /blog/models/Post.py | 32a37ac2dc97119651d640671af5699617844f34 | [] | no_license | DrAzraelTod/webChao | 5318a55e08e96a3559094071089c0078855890b0 | 3cb348e017edf48118f1e6f054cff6d0667bded1 | refs/heads/master | 2016-09-06T18:32:10.749909 | 2016-02-23T12:29:21 | 2016-02-23T12:29:21 | 6,939,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,935 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from django.db import models
from UserProfile import UserProfile
from Tag import Tag
from django.core.urlresolvers import reverse
POST_STATUS = (
(1, 'gelöscht'),
(2, 'Veröffentlichen'),
(0, 'Entwurf'),
)
class Post(models.Model):
text = models.TextField('Inhalt')... | [
"dat-git@g33ky.de"
] | dat-git@g33ky.de |
ab6c34d16beb64feafd2396054dc2b98364402c5 | d1616f1cabd87c64fba9630ad7db070b1e7caa2c | /model.py | c7c0944f7273442e493b96ac1290e74792bb4d7f | [] | no_license | deligentfool/Population_based_training_pytorch | b60e24f509db81e0724820f7714c2476984ac02a | 1b80a79ead0778997cf6393aa7941b6b909ae75b | refs/heads/master | 2022-11-16T14:17:02.215898 | 2020-07-15T02:44:15 | 2020-07-15T02:44:15 | 279,745,126 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,229 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
import random
import numpy as np
import gym
from collections import deque
from torch.distributions import Categorical
from torch.utils.tensorboard import SummaryWriter
from net import policy_net, value_net
from buffer import trajectory_buffer
... | [
"1027660817@qq.com"
] | 1027660817@qq.com |
4e078c68276aaed1c1699174d8b734d478bb44ce | ff85002de8fc3e8d38b96753f7358ea1dc8055af | /Infinite_sequence.py | 105c8cc00705bdc188dbf46bca2fbd0d97a61125 | [] | no_license | xlax007/Collection-of-Algorithms | d0ef8277e4f6dd5a27ed2a67bb720c3d867cbec9 | 4fe4d69f60b3b6f49624be135750f074216aacb9 | refs/heads/master | 2022-12-12T23:15:39.991983 | 2020-09-09T23:36:26 | 2020-09-09T23:36:26 | 294,251,463 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 732 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Apr 9 20:27:27 2020
@author: alexi
"""
#https://codeforces.com/problemset/problem/675/A --- Alexis Galvan
def infinite_sequence():
numbers = list(map(int, input().split()))
if numbers[0] == numbers[1] or (numbers[0]+numbers[2]) == numbe... | [
"noreply@github.com"
] | noreply@github.com |
2b9b23cdd7914f0a4c717c566c36b4670d9924ad | f737ab2c0ec0fbecec740b155e005f6c433cb5e2 | /src/main/python/model/display.py | 2310d22e7e94ef2d3019afd49725ad3abe17e729 | [
"MIT"
] | permissive | senilix/pypolarmap | d6c366dbf739d1f484970a0e1d78a8101f880ed6 | 348249fc2a06cce5675b3b0d286f853ab27d4ba0 | refs/heads/master | 2020-08-03T13:56:25.504783 | 2018-09-29T20:28:56 | 2018-09-29T20:28:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,924 | py | from PyQt5.QtWidgets import QDialog, QDialogButtonBox
from model.preferences import DISPLAY_DB_RANGE, DISPLAY_COLOUR_MAP, DISPLAY_POLAR_360
from ui.display import Ui_displayControlsDialog
class DisplayModel:
'''
Parameters to feed into how a chart should be displayed.
'''
def __init__(self, preferen... | [
"mattkhan@gmail.com"
] | mattkhan@gmail.com |
2ad1d1e156288780892eb4a16b3b3b4f46fac3bc | 524432657f857970cbd7c3dd506734c75b5878bf | /venv/Scripts/pip3-script.py | 7c9f7a85de8f2a94dd6c3e3d67d7aef63f91e602 | [] | no_license | breno29silva/Metodos-II | a75e7e0aafa44488ec875f77458aebeb24bcd070 | a63b0ea010565f3e64f8e30af25681f161af3a84 | refs/heads/master | 2022-04-13T05:37:22.454670 | 2020-04-02T17:15:52 | 2020-04-02T17:15:52 | 251,729,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | #!C:\Users\Breno\PycharmProjects\Metodo_numerico_2\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '',... | [
"breno.silva.2903@gmail.com"
] | breno.silva.2903@gmail.com |
82c03e966e820471b4b51300b640e67822c1908d | fd133e75a1dfda1e38b5241a33147622fa07eea4 | /peopleFinder/apps.py | 9bfc589f902de3616a048d1f63921d3a3f2b5a2e | [] | no_license | TheWildUnicorn/GrandDrape | 39642c887ef046447a0c03f625fe15a1fd703573 | d7e30fd6732454ead073ca6ecea7b8e8ffdd09e9 | refs/heads/master | 2021-01-19T22:20:58.739069 | 2017-05-01T00:43:57 | 2017-05-01T00:43:57 | 88,796,273 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | from django.apps import AppConfig
class PeoplefinderConfig(AppConfig):
name = 'peopleFinder'
| [
"jaydon134@me.com"
] | jaydon134@me.com |
307fe34057a5441ac99c86b9d36f636a49e70675 | 54892b54ebb2f492093c48781d0e25eb5b9ecfc2 | /Aula01/aula01DesviosCondicionais3.py | 04aa044d464de8ec09ded39724b69a034a3f5e13 | [
"MIT"
] | permissive | sartorileonardo/Curso-Intro-Python-Univali | f6c6c3d8379ab375ed469d00fef8bbaaa4eaf897 | 7f2a7c46b8ddf72391e58f22099d3d8ec91cbf7b | refs/heads/master | 2021-08-14T14:38:18.928647 | 2017-11-16T01:41:27 | 2017-11-16T01:41:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | print("Test IF/ELSE")
grade1 = input("Entre com sua nota:")
grade1 = int(grade1)
if grade1 >= 7:
print("Você passou!")
if(grade1 >= 9):
print("Sua nota é A")
elif grade1 >= 8:
print("Sua nota é B")
elif grade1 >= 7:
print("Sua nota é C")
else:
print("Não passou!")
| [
"noreply@github.com"
] | noreply@github.com |
dbf95929d8d6ee23c4ba280b0087426af2f2d6a7 | f966c891c666db846d86406cb9c08a530902d032 | /algorithms/implementation/larrys_array.py | 463216acec541b8c6a7c8847fad3576cde14e85c | [] | no_license | rickharris-dev/hacker-rank | 36620a16894571e324422c83bd553440cf5bbeb1 | 2ad0fe4b496198bec1b900d2e396a0704bd0c6d4 | refs/heads/master | 2020-12-25T14:33:20.118325 | 2016-09-06T01:10:43 | 2016-09-06T01:10:43 | 67,264,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | #!/usr/bin/python
t = int(raw_input().strip())
for i in range(0,t):
n = int(raw_input().strip())
a = map(int,raw_input().strip().split(' '))
inversions = 0
for j in range(0,n):
inversions += abs(a[j] - (j + 1))
while j > 0:
if a[j - 1] > a[j]:
swap = a[j]
... | [
"rickharris724@gmail.com"
] | rickharris724@gmail.com |
911428d5455577a205d978c0b62f024af2f59acb | c33d1754fca5079113023c5e94323fce080f3bb4 | /webapp/webapp/webapp/urls.py | f159223d03888d4eb66c063593774258c0486233 | [] | no_license | arpitgupta1906/scientific_chart_reader | 12a45643d6182f2b69f4dbc330232a2e11d05147 | fcdee1b6a24ac1ef87014e276f6d11d24183c7a2 | refs/heads/master | 2022-12-11T01:55:07.533245 | 2021-01-12T19:05:24 | 2021-01-12T19:05:24 | 237,563,534 | 3 | 1 | null | 2022-12-08T11:20:30 | 2020-02-01T04:49:09 | Python | UTF-8 | Python | false | false | 971 | py | """webapp URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"gupta.25.iitj.ac.in"
] | gupta.25.iitj.ac.in |
00100d269f830789446f2c2dec2b09e8f48e9b1a | 7823d31688879b2d4dcfd2e3c11fb2c862f35a23 | /image_retrieval/server/algorithm/__init__.py | 54615a50ab3d115940cbce7402700f464f4a7c66 | [] | no_license | FMsunyh/dlfive | 7637631f54520673e4ec417b3c02b5334ecdf026 | ffae48aac5ece4de5ff9afccc69b093a72e09637 | refs/heads/master | 2021-09-19T05:59:51.040214 | 2018-07-24T06:29:40 | 2018-07-24T06:29:40 | 108,929,499 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 12/7/2017 9:32 AM
# @Author : sunyonghai
# @File : __init__.py.py
# @Software: BG_AI
# ========================================================= | [
"fmsunyh@gmail.com"
] | fmsunyh@gmail.com |
b7f3405dd102d34eed117d70ad67c2746d477d49 | 66af5573eef648ba76fcf0156de41b411ca38c6c | /sikuli-ide/test-scripts/linux-basic.sikuli/linux-basic.py | 181ef6d214d253f05603b2aa890850cefc3a0f8c | [
"MIT"
] | permissive | sikuli/sikuli | 5221f35a5fb9114bcaaab12d75fcf67ae341966b | 4adaab7880d2f3e14702ca7287ae9c9e4f4de9ab | refs/heads/develop | 2023-08-28T09:39:58.135194 | 2019-10-27T08:34:31 | 2019-10-27T08:34:31 | 2,393,437 | 1,486 | 302 | MIT | 2018-10-04T11:47:59 | 2011-09-15T15:47:51 | HTML | UTF-8 | Python | false | false | 101 | py | find("1265075160887.png")
d = VDict()
d["1265075226698.png"] = "OK"
print d["1265075226698.png"][0]
| [
"vgod@mit.edu"
] | vgod@mit.edu |
65980ffd9b7eac7b38bc414af33e2b19415c581d | c4789b87d3a86795be92f9d328aad00ddc0da2a7 | /web/biassite/biassite/wsgi.py | 4b6a46823bd4028965619450ef54161afbc93085 | [] | no_license | eroberts20/bias_crawler | e0ce3cc5b2c76fb64ba8249be838f3aa0908f38f | 774388604d70e561a29621a75134981f9a5f9afb | refs/heads/master | 2021-01-19T11:20:52.341771 | 2017-05-16T11:07:45 | 2017-05-16T11:07:45 | 82,237,482 | 4 | 2 | null | 2020-07-23T12:35:41 | 2017-02-16T23:50:34 | Python | UTF-8 | Python | false | false | 394 | py | """
WSGI config for biassite 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/1.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SET... | [
"eroberts20@mail.csuchico.edu"
] | eroberts20@mail.csuchico.edu |
bdb0a54a4124c2fb7c3bf8a4609ace0492123ef6 | 8e9d48d5a085334fff34d3c841617dc2b2dd1cff | /TF1_Project/simple_resnet.py | c231ee82f52306ff5eff227711b7b27bf5761ce3 | [] | no_license | OTapio/demo_projects | 4a74cf229192fcf1357c143dfda83bbb9ecdd1e0 | c184fba9f9130a9cdcc5facddf9adbea3db3ab0f | refs/heads/master | 2022-05-21T05:22:11.877561 | 2022-05-01T16:23:55 | 2022-05-01T16:23:55 | 228,912,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,057 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
import os
#import tensorflow as tf
import time
from datetime import datetime
import matplotlib.pyplot as plt
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
import math
impor... | [
"ossi.tapio@iki.fi"
] | ossi.tapio@iki.fi |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.